@accounter/client 0.0.7-alpha-20250919130226-04194378e3d94f96e264819321770fe3937320ef → 0.0.7-alpha-20250919131445-a9a65758bac5324d3e495c45cc75ec0e53f237b3

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/CHANGELOG.md CHANGED
@@ -1,6 +1,6 @@
1
1
  # @accounter/client
2
2
 
3
- ## 0.0.7-alpha-20250919130226-04194378e3d94f96e264819321770fe3937320ef
3
+ ## 0.0.7-alpha-20250919131445-a9a65758bac5324d3e495c45cc75ec0e53f237b3
4
4
 
5
5
  ### Patch Changes
6
6
 
@@ -253,6 +253,13 @@
253
253
  [`@tanstack/react-query@5.89.0` ↗︎](https://www.npmjs.com/package/@tanstack/react-query/v/5.89.0)
254
254
  (from `5.87.4`, in `dependencies`)
255
255
 
256
+ - [#2520](https://github.com/Urigo/accounter-fullstack/pull/2520)
257
+ [`a9a6575`](https://github.com/Urigo/accounter-fullstack/commit/a9a65758bac5324d3e495c45cc75ec0e53f237b3)
258
+ Thanks [@gilgardosh](https://github.com/gilgardosh)! - - **New Feature**: An 'Issue Document'
259
+ button has been added to the charge's extended information menu, providing a new action for users.
260
+ - **Modal Integration**: Clicking the new 'Issue Document' button now opens a
261
+ `PreviewDocumentModal`, allowing users to preview and manage documents related to the charge.
262
+
256
263
  - [#2466](https://github.com/Urigo/accounter-fullstack/pull/2466)
257
264
  [`afdc9bf`](https://github.com/Urigo/accounter-fullstack/commit/afdc9bf6def07a69893c8087f8635b3e86570bdf)
258
265
  Thanks [@gilgardosh](https://github.com/gilgardosh)! - - **Improved 404 Handling**: A dedicated
@@ -668,7 +668,7 @@ Set the \`cycles\` parameter to \`"ref"\` to resolve cyclical schemas with defs.
668
668
 
669
669
  If you want to hide the \`${t.titleName}\`, you can wrap it with our VisuallyHidden component.
670
670
 
671
- For more information, see https://radix-ui.com/primitives/docs/components/${t.docsSlug}`;return w.useEffect(()=>{e&&(document.getElementById(e)||console.error(n))},[n,e]),null},o7t="DialogDescriptionWarning",s7t=({contentRef:e,descriptionId:t})=>{const r=`Warning: Missing \`Description\` or \`aria-describedby={undefined}\` for {${THe(o7t).contentName}}.`;return w.useEffect(()=>{const i=e.current?.getAttribute("aria-describedby");t&&i&&(document.getElementById(t)||console.warn(r))},[r,e,t]),null},oL=gHe,qie=yHe,sL=xHe,lL=wHe,cL=kHe,l7t=CHe,c7t=NHe,OHe=FHe;function Ra({...e}){return d.jsx(oL,{"data-slot":"dialog",...e})}function Ac({...e}){return d.jsx(qie,{"data-slot":"dialog-trigger",...e})}function u7t({...e}){return d.jsx(sL,{"data-slot":"dialog-portal",...e})}function d7t({className:e,...t}){return d.jsx(lL,{"data-slot":"dialog-overlay",className:_t("data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 fixed inset-0 z-1001 bg-black/50",e),...t})}function $a({className:e,children:t,showCloseButton:n=!0,...r}){return d.jsxs(u7t,{"data-slot":"dialog-portal",children:[d.jsx(d7t,{}),d.jsxs(cL,{"data-slot":"dialog-content",className:_t("bg-white data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 fixed top-[50%] left-[50%] z-1001 grid w-full max-w-[calc(100%-2rem)] translate-x-[-50%] translate-y-[-50%] gap-4 rounded-lg border border-gray-200 p-6 shadow-lg duration-200 sm:max-w-lg dark:bg-gray-950 dark:border-gray-800",e),...r,children:[t,n&&d.jsxs(OHe,{"data-slot":"dialog-close",className:"ring-offset-white focus:ring-gray-950 data-[state=open]:bg-gray-100 data-[state=open]:text-gray-500 absolute top-4 right-4 rounded-xs opacity-70 transition-opacity hover:opacity-100 focus:ring-2 focus:ring-offset-2 focus:outline-hidden disabled:pointer-events-none [&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg:not([class*='size-'])]:size-4 dark:ring-offset-gray-950 dark:focus:ring-gray-300 dark:data-[state=open]:bg-gray-800 dark:data-[state=open]:text-gray-400",children:[d.jsx(Vx,{}),d.jsx("span",{className:"sr-only",children:"Close"})]})]})]})}function us({className:e,...t}){return d.jsx("div",{"data-slot":"dialog-header",className:_t("flex flex-col gap-2 text-center sm:text-left",e),...t})}function Uy({className:e,...t}){return d.jsx("div",{"data-slot":"dialog-footer",className:_t("flex flex-col-reverse gap-2 sm:flex-row sm:justify-end",e),...t})}function ds({className:e,...t}){return d.jsx(l7t,{"data-slot":"dialog-title",className:_t("text-lg leading-none font-semibold",e),...t})}function BHe({className:e,...t}){return d.jsx(c7t,{"data-slot":"dialog-description",className:_t("text-gray-500 text-sm dark:text-gray-400",e),...t})}function Td({labels:e={cancel:"Cancel",confirm:"Confirm"},title:t,onConfirm:n,onClose:r,children:i}){const[a,o]=w.useState(!1);return d.jsxs(Ra,{open:a,onOpenChange:o,children:[d.jsx(Ac,{asChild:!0,onClick:s=>{s.stopPropagation(),o(l=>!l)},children:i}),d.jsxs($a,{className:"sm:max-w-[425px]",children:[d.jsx(us,{children:t&&d.jsx(ds,{children:t})}),d.jsxs(Uy,{children:[d.jsx(Ge,{onClick:()=>{o(!1),r?.()},variant:"secondary",children:e.cancel}),d.jsx(Ge,{onClick:()=>{o(!1),n()},variant:"default",children:e.confirm})]})]})]})}function f7t(e){const{fetching:t,deleteDepreciationRecord:n}=_Ut(),r=w.useCallback(()=>{n({depreciationRecordId:e.depreciationRecordId}).then(()=>{e.onDelete?.()})},[e,n]);return d.jsx(Td,{onConfirm:r,title:"Are you sure you want to delete the depreciation record?",children:d.jsx(Vn,{label:"Remove Depreciation",children:d.jsx(Ge,{variant:"outline",size:"icon",className:"size-7.5 text-red-500",disabled:t,children:d.jsx(Hx,{className:"size-5"})})})})}const h7t=({data:e,onChange:t})=>{const n=$t(P2t,e),[r,i]=w.useState(!1),[{data:a,fetching:o},s]=rn({query:I3e,pause:!0}),{control:l,handleSubmit:c,formState:{dirtyFields:u}}=Ar({defaultValues:{id:n.id}}),{updateDepreciationRecord:f,fetching:h}=SUt(),m=A=>{const v=wg(A,u);v&&Object.keys(v).length>0&&f({fields:{...A,id:n.id}}).then(()=>{t?.(),i(!1)})},p=a?.depreciationCategories.map(A=>({value:A.id,label:A.name}));return w.useEffect(()=>{r&&!a&&s()},[r,a,s]),d.jsxs("tr",{children:[d.jsx("td",{children:d.jsx("form",{id:`form ${n.id}`,onSubmit:c(m),children:r?d.jsx(wt,{name:"amount",control:l,render:({field:A,fieldState:v})=>d.jsx(wt,{name:"currency",control:l,render:({field:y,fieldState:x})=>d.jsx(pa,{...A,defaultValue:n.amount?.raw??n.charge.totalAmount?.raw,value:A.value??void 0,error:v.error?.message||x.error?.message,label:"Amount",currencyCodeProps:{...y,label:"Currency",defaultValue:n.amount?.currency??n.charge.totalAmount?.currency}})})}):d.jsx("div",{children:n.amount?.formatted??n.charge.totalAmount?.formatted})})}),d.jsx("td",{children:d.jsx("div",{className:"flex flex-col gap-2 justify-center",children:r?d.jsx(wt,{name:"activationDate",control:l,defaultValue:n.activationDate,rules:{pattern:{value:ki,message:"Date must be im format yyyy-mm-dd"}},render:({field:{value:A,...v},fieldState:y})=>{const x=A?new Date(A):void 0;return d.jsx(Vi,{...v,form:`form ${n.id}`,onChange:k=>{const S=k?typeof k=="string"?k:Rt(k,"yyyy-MM-dd"):void 0;S!==A&&v.onChange(S)},value:x,label:"Activation Date",error:y.error?.message,popoverProps:{withinPortal:!0}})}}):d.jsx("div",{children:Rt(new Date(n.activationDate),"dd/MM/yy")})})}),d.jsx("td",{children:r?d.jsx(wt,{name:"categoryId",control:l,render:({field:A,fieldState:v})=>d.jsx(ri,{...A,form:`form ${n.id}`,disabled:o,data:p??[],label:"Category",placeholder:"Scroll to see all options",maxDropdownHeight:160,searchable:!0,error:v.error?.message,withinPortal:!0})}):d.jsxs("div",{children:[n.category.name," (",n.category.percentage,"%)"]})}),d.jsx("td",{children:r?d.jsx(wt,{name:"type",control:l,render:({field:A,fieldState:v})=>d.jsx(ri,{...A,form:`form ${n.id}`,data:IHe,value:A.value,label:"Type",placeholder:"Scroll to see all options",maxDropdownHeight:160,searchable:!0,error:v.error?.message,withinPortal:!0})}):d.jsx("div",{children:n.type})}),d.jsxs("td",{children:[d.jsx(Vn,{label:"Edit",children:d.jsx(Ge,{disabled:h||o,variant:r?"default":"outline",size:"icon",className:"size-7.5",onClick:A=>{A.stopPropagation(),i(v=>!v)},children:d.jsx(Tu,{className:"size-5"})})}),r&&d.jsx(Vn,{label:"Confirm Changes",children:d.jsx(Ge,{type:"submit",form:`form ${n.id}`,variant:"outline",size:"icon",className:"size-7.5 text-green-500",children:d.jsx(Ds,{className:"size-5"})})}),d.jsx(f7t,{depreciationRecordId:n.id,onDelete:t})]})]},n.id)},m7t=({chargeId:e,onChange:t})=>{const[{data:n,fetching:r}]=rn({query:DEt,variables:{chargeId:e}});return!r&&!n?.depreciationRecordsByCharge.length?d.jsx(wbe,{chargeId:e,onAdd:t}):r?d.jsx(ai,{className:"h-10 w-10 animate-spin mr-2 self-center"}):d.jsx("div",{className:"flex flex-col gap-2 mt-5",children:d.jsxs(go,{highlightOnHover:!0,withBorder:!0,children:[d.jsx("thead",{children:d.jsxs("tr",{children:[d.jsx("th",{children:"Amount"}),d.jsx("th",{children:"Activation Date"}),d.jsx("th",{children:"Category"}),d.jsx("th",{children:"Type"}),d.jsx("th",{})]})}),d.jsxs("tbody",{children:[n?.depreciationRecordsByCharge.map(i=>d.jsx(h7t,{data:i,onChange:t},i.id)),d.jsx("tr",{children:d.jsx("td",{colSpan:5,children:d.jsx(wbe,{chargeId:e,onAdd:t})})})]})]})})},IHe=Object.entries(n2t).map(([e,t])=>({value:t,label:e}));function p7t({chargeId:e,chargeType:t,setInsertDocument:n,setMatchDocuments:r,onChange:i,isIncome:a}){const{deleteCharge:o}=yUt(),[s,l]=w.useState(!1),[c,{open:u,close:f}]=as(!1),[h,m]=w.useState(!1),[p,{open:A,close:v}]=as(!1),[y,x]=w.useState(!1),[k,S]=w.useState(!1);function C(){o({chargeId:e}),i?.()}function N(){l(!1)}return d.jsxs(d.Fragment,{children:[d.jsxs(ji,{shadow:"md",width:200,opened:s,children:[d.jsx(ji.Target,{children:d.jsx(cne,{opened:s,onClick:E=>{E.stopPropagation(),l(D=>!D)}})}),d.jsxs(ji.Dropdown,{children:[d.jsx(ji.Label,{children:"Charge"}),d.jsx(Td,{onConfirm:C,title:"Are you sure you want to delete this charge?",children:d.jsx(ji.Item,{icon:d.jsx(Hx,{size:14}),children:"Delete Charge"})}),d.jsx(ji.Divider,{}),d.jsx(ji.Label,{children:"Documents"}),d.jsx(ji.Item,{icon:d.jsx(vp,{size:14}),onClick:E=>{E.stopPropagation(),n(),N()},children:"Insert Document"}),d.jsx(ji.Item,{icon:d.jsx(Wge,{size:14}),onClick:E=>{E.stopPropagation(),S(!0),N()},children:"Upload Documents"}),d.jsx(ji.Item,{icon:d.jsx(oLe,{size:14}),onClick:()=>{r(),N()},children:"Match Document"}),a&&d.jsx(ji.Item,{icon:d.jsx(vp,{size:14}),onClick:E=>{E.stopPropagation(),x(!0),N()},children:"Issue Document"}),d.jsx(ji.Divider,{}),d.jsx(ji.Label,{children:"Misc Expenses"}),d.jsx(ji.Item,{icon:d.jsx(vp,{size:14}),onClick:E=>{E.stopPropagation(),N(),m(!0)},children:"Add expense"}),t==="CommonCharge"&&d.jsxs(d.Fragment,{children:[d.jsx(ji.Divider,{}),d.jsx(ji.Label,{children:"Depreciation"}),d.jsx(ji.Item,{icon:d.jsx(qOt,{size:14}),onClick:E=>{E.stopPropagation(),u(),N()},children:"Depreciation"})]}),t==="SalaryCharge"&&d.jsxs(d.Fragment,{children:[d.jsx(ji.Divider,{}),d.jsx(ji.Label,{children:"Salaries"}),d.jsx(ji.Item,{icon:d.jsx(Wge,{size:14}),onClick:E=>{E.stopPropagation(),N(),A()},children:"Payroll file upload"})]})]})]}),d.jsx(_r,{withinPortal:!0,size:"xl",centered:!0,opened:c,onClose:f,title:"Depreciation",onClick:E=>E.stopPropagation(),children:d.jsx(m7t,{chargeId:e,onChange:()=>{f(),i?.()}})}),d.jsx(Ra,{open:h,onOpenChange:m,children:d.jsx($a,{className:"sm:max-w-[425px]",onClick:E=>E.stopPropagation(),children:d.jsx(kGe,{onDone:()=>{m(!1),i?.()},chargeId:e})})}),d.jsx(_r,{centered:!0,opened:p,onClose:v,title:"Upload Payroll File",onClick:E=>E.stopPropagation(),children:d.jsx(rtn,{onDone:()=>{v(),i?.()},chargeId:e})}),d.jsx(kYe,{open:k,onOpenChange:S,onChange:i,chargeId:e}),d.jsx(jE,{chargeId:e,open:y,setOpen:x})]})}function A7t(e){return Object.prototype.toString.call(e)==="[object Object]"}function Dbe(e){return A7t(e)||Array.isArray(e)}function g7t(){return!!(typeof window<"u"&&window.document&&window.document.createElement)}function Gie(e,t){const n=Object.keys(e),r=Object.keys(t);if(n.length!==r.length)return!1;const i=JSON.stringify(Object.keys(e.breakpoints||{})),a=JSON.stringify(Object.keys(t.breakpoints||{}));return i!==a?!1:n.every(o=>{const s=e[o],l=t[o];return typeof s=="function"?`${s}`==`${l}`:!Dbe(s)||!Dbe(l)?s===l:Gie(s,l)})}function Tbe(e){return e.concat().sort((t,n)=>t.name>n.name?1:-1).map(t=>t.options)}function v7t(e,t){if(e.length!==t.length)return!1;const n=Tbe(e),r=Tbe(t);return n.every((i,a)=>{const o=r[a];return Gie(i,o)})}function Wie(e){return typeof e=="number"}function lX(e){return typeof e=="string"}function uL(e){return typeof e=="boolean"}function Obe(e){return Object.prototype.toString.call(e)==="[object Object]"}function po(e){return Math.abs(e)}function Kie(e){return Math.sign(e)}function x2(e,t){return po(e-t)}function y7t(e,t){if(e===0||t===0||po(e)<=po(t))return 0;const n=x2(po(e),po(t));return po(n/e)}function b7t(e){return Math.round(e*100)/100}function yE(e){return bE(e).map(Number)}function Lh(e){return e[TD(e)]}function TD(e){return Math.max(0,e.length-1)}function Yie(e,t){return t===TD(e)}function Bbe(e,t=0){return Array.from(Array(e),(n,r)=>t+r)}function bE(e){return Object.keys(e)}function jHe(e,t){return[e,t].reduce((n,r)=>(bE(r).forEach(i=>{const a=n[i],o=r[i],s=Obe(a)&&Obe(o);n[i]=s?jHe(a,o):o}),n),{})}function cX(e,t){return typeof t.MouseEvent<"u"&&e instanceof t.MouseEvent}function x7t(e,t){const n={start:r,center:i,end:a};function r(){return 0}function i(l){return a(l)/2}function a(l){return t-l}function o(l,c){return lX(e)?n[e](l):e(t,l,c)}return{measure:o}}function xE(){let e=[];function t(i,a,o,s={passive:!0}){let l;if("addEventListener"in i)i.addEventListener(a,o,s),l=()=>i.removeEventListener(a,o,s);else{const c=i;c.addListener(o),l=()=>c.removeListener(o)}return e.push(l),r}function n(){e=e.filter(i=>i())}const r={add:t,clear:n};return r}function w7t(e,t,n,r){const i=xE(),a=1e3/60;let o=null,s=0,l=0;function c(){i.add(e,"visibilitychange",()=>{e.hidden&&p()})}function u(){m(),i.clear()}function f(v){if(!l)return;o||(o=v,n(),n());const y=v-o;for(o=v,s+=y;s>=a;)n(),s-=a;const x=s/a;r(x),l&&(l=t.requestAnimationFrame(f))}function h(){l||(l=t.requestAnimationFrame(f))}function m(){t.cancelAnimationFrame(l),o=null,s=0,l=0}function p(){o=null,s=0}return{init:c,destroy:u,start:h,stop:m,update:n,render:r}}function k7t(e,t){const n=t==="rtl",r=e==="y",i=r?"y":"x",a=r?"x":"y",o=!r&&n?-1:1,s=u(),l=f();function c(p){const{height:A,width:v}=p;return r?A:v}function u(){return r?"top":n?"right":"left"}function f(){return r?"bottom":n?"left":"right"}function h(p){return p*o}return{scroll:i,cross:a,startEdge:s,endEdge:l,measureSize:c,direction:h}}function dx(e=0,t=0){const n=po(e-t);function r(c){return c<e}function i(c){return c>t}function a(c){return r(c)||i(c)}function o(c){return a(c)?r(c)?e:t:c}function s(c){return n?c-n*Math.ceil((c-t)/n):c}return{length:n,max:t,min:e,constrain:o,reachedAny:a,reachedMax:i,reachedMin:r,removeOffset:s}}function PHe(e,t,n){const{constrain:r}=dx(0,e),i=e+1;let a=o(t);function o(h){return n?po((i+h)%i):r(h)}function s(){return a}function l(h){return a=o(h),f}function c(h){return u().set(s()+h)}function u(){return PHe(e,s(),n)}const f={get:s,set:l,add:c,clone:u};return f}function S7t(e,t,n,r,i,a,o,s,l,c,u,f,h,m,p,A,v,y,x){const{cross:k,direction:S}=e,C=["INPUT","SELECT","TEXTAREA"],N={passive:!1},E=xE(),D=xE(),T=dx(50,225).constrain(m.measure(20)),P={mouse:300,touch:400},O={mouse:500,touch:600},B=p?43:25;let M=!1,$=0,U=0,j=!1,V=!1,Q=!1,X=!1;function Z(J){if(!x)return;function Se(we){(uL(x)||x(J,we))&&re(we)}const be=t;E.add(be,"dragstart",we=>we.preventDefault(),N).add(be,"touchmove",()=>{},N).add(be,"touchend",()=>{}).add(be,"touchstart",Se).add(be,"mousedown",Se).add(be,"touchcancel",de).add(be,"contextmenu",de).add(be,"click",he,!0)}function le(){E.clear(),D.clear()}function H(){const J=X?n:t;D.add(J,"touchmove",ne,N).add(J,"touchend",de).add(J,"mousemove",ne,N).add(J,"mouseup",de)}function G(J){const Se=J.nodeName||"";return C.includes(Se)}function W(){return(p?O:P)[X?"mouse":"touch"]}function te(J,Se){const be=f.add(Kie(J)*-1),we=u.byDistance(J,!p).distance;return p||po(J)<T?we:v&&Se?we*.5:u.byIndex(be.get(),0).distance}function re(J){const Se=cX(J,r);X=Se,Q=p&&Se&&!J.buttons&&M,M=x2(i.get(),o.get())>=2,!(Se&&J.button!==0)&&(G(J.target)||(j=!0,a.pointerDown(J),c.useFriction(0).useDuration(0),i.set(o),H(),$=a.readPoint(J),U=a.readPoint(J,k),h.emit("pointerDown")))}function ne(J){if(!cX(J,r)&&J.touches.length>=2)return de(J);const be=a.readPoint(J),we=a.readPoint(J,k),me=x2(be,$),K=x2(we,U);if(!V&&!X&&(!J.cancelable||(V=me>K,!V)))return de(J);const ie=a.pointerMove(J);me>A&&(Q=!0),c.useFriction(.3).useDuration(.75),s.start(),i.add(S(ie)),J.preventDefault()}function de(J){const be=u.byDistance(0,!1).index!==f.get(),we=a.pointerUp(J)*W(),me=te(S(we),be),K=y7t(we,me),ie=B-10*K,ce=y+K/50;V=!1,j=!1,D.clear(),c.useDuration(ie).useFriction(ce),l.distance(me,!p),X=!1,h.emit("pointerUp")}function he(J){Q&&(J.stopPropagation(),J.preventDefault(),Q=!1)}function pe(){return j}return{init:Z,destroy:le,pointerDown:pe}}function C7t(e,t){let r,i;function a(f){return f.timeStamp}function o(f,h){const p=`client${(h||e.scroll)==="x"?"X":"Y"}`;return(cX(f,t)?f:f.touches[0])[p]}function s(f){return r=f,i=f,o(f)}function l(f){const h=o(f)-o(i),m=a(f)-a(r)>170;return i=f,m&&(r=f),h}function c(f){if(!r||!i)return 0;const h=o(i)-o(r),m=a(f)-a(r),p=a(f)-a(i)>170,A=h/m;return m&&!p&&po(A)>.1?A:0}return{pointerDown:s,pointerMove:l,pointerUp:c,readPoint:o}}function _7t(){function e(n){const{offsetTop:r,offsetLeft:i,offsetWidth:a,offsetHeight:o}=n;return{top:r,right:i+a,bottom:r+o,left:i,width:a,height:o}}return{measure:e}}function N7t(e){function t(r){return e*(r/100)}return{measure:t}}function E7t(e,t,n,r,i,a,o){const s=[e].concat(r);let l,c,u=[],f=!1;function h(v){return i.measureSize(o.measure(v))}function m(v){if(!a)return;c=h(e),u=r.map(h);function y(x){for(const k of x){if(f)return;const S=k.target===e,C=r.indexOf(k.target),N=S?c:u[C],E=h(S?e:r[C]);if(po(E-N)>=.5){v.reInit(),t.emit("resize");break}}}l=new ResizeObserver(x=>{(uL(a)||a(v,x))&&y(x)}),n.requestAnimationFrame(()=>{s.forEach(x=>l.observe(x))})}function p(){f=!0,l&&l.disconnect()}return{init:m,destroy:p}}function F7t(e,t,n,r,i,a){let o=0,s=0,l=i,c=a,u=e.get(),f=0;function h(){const N=r.get()-e.get(),E=!l;let D=0;return E?(o=0,n.set(r),e.set(r),D=N):(n.set(e),o+=N/l,o*=c,u+=o,e.add(o),D=u-f),s=Kie(D),f=u,C}function m(){const N=r.get()-t.get();return po(N)<.001}function p(){return l}function A(){return s}function v(){return o}function y(){return k(i)}function x(){return S(a)}function k(N){return l=N,C}function S(N){return c=N,C}const C={direction:A,duration:p,velocity:v,seek:h,settled:m,useBaseFriction:x,useBaseDuration:y,useFriction:S,useDuration:k};return C}function D7t(e,t,n,r,i){const a=i.measure(10),o=i.measure(50),s=dx(.1,.99);let l=!1;function c(){return!(l||!e.reachedAny(n.get())||!e.reachedAny(t.get()))}function u(m){if(!c())return;const p=e.reachedMin(t.get())?"min":"max",A=po(e[p]-t.get()),v=n.get()-t.get(),y=s.constrain(A/o);n.subtract(v*y),!m&&po(v)<a&&(n.set(e.constrain(n.get())),r.useDuration(25).useBaseFriction())}function f(m){l=!m}return{shouldConstrain:c,constrain:u,toggleActive:f}}function T7t(e,t,n,r,i){const a=dx(-t+e,0),o=f(),s=u(),l=h();function c(p,A){return x2(p,A)<=1}function u(){const p=o[0],A=Lh(o),v=o.lastIndexOf(p),y=o.indexOf(A)+1;return dx(v,y)}function f(){return n.map((p,A)=>{const{min:v,max:y}=a,x=a.constrain(p),k=!A,S=Yie(n,A);return k?y:S||c(v,x)?v:c(y,x)?y:x}).map(p=>parseFloat(p.toFixed(3)))}function h(){if(t<=e+i)return[a.max];if(r==="keepSnaps")return o;const{min:p,max:A}=s;return o.slice(p,A)}return{snapsContained:l,scrollContainLimit:s}}function O7t(e,t,n){const r=t[0],i=n?r-e:Lh(t);return{limit:dx(i,r)}}function B7t(e,t,n,r){const a=t.min+.1,o=t.max+.1,{reachedMin:s,reachedMax:l}=dx(a,o);function c(h){return h===1?l(n.get()):h===-1?s(n.get()):!1}function u(h){if(!c(h))return;const m=e*(h*-1);r.forEach(p=>p.add(m))}return{loop:u}}function I7t(e){const{max:t,length:n}=e;function r(a){const o=a-t;return n?o/-n:0}return{get:r}}function j7t(e,t,n,r,i){const{startEdge:a,endEdge:o}=e,{groupSlides:s}=i,l=f().map(t.measure),c=h(),u=m();function f(){return s(r).map(A=>Lh(A)[o]-A[0][a]).map(po)}function h(){return r.map(A=>n[a]-A[a]).map(A=>-po(A))}function m(){return s(c).map(A=>A[0]).map((A,v)=>A+l[v])}return{snaps:c,snapsAligned:u}}function P7t(e,t,n,r,i,a){const{groupSlides:o}=i,{min:s,max:l}=r,c=u();function u(){const h=o(a),m=!e||t==="keepSnaps";return n.length===1?[a]:m?h:h.slice(s,l).map((p,A,v)=>{const y=!A,x=Yie(v,A);if(y){const k=Lh(v[0])+1;return Bbe(k)}if(x){const k=TD(a)-Lh(v)[0]+1;return Bbe(k,Lh(v)[0])}return p})}return{slideRegistry:c}}function M7t(e,t,n,r,i){const{reachedAny:a,removeOffset:o,constrain:s}=r;function l(p){return p.concat().sort((A,v)=>po(A)-po(v))[0]}function c(p){const A=e?o(p):s(p),v=t.map((x,k)=>({diff:u(x-A,0),index:k})).sort((x,k)=>po(x.diff)-po(k.diff)),{index:y}=v[0];return{index:y,distance:A}}function u(p,A){const v=[p,p+n,p-n];if(!e)return p;if(!A)return l(v);const y=v.filter(x=>Kie(x)===A);return y.length?l(y):Lh(v)-n}function f(p,A){const v=t[p]-i.get(),y=u(v,A);return{index:p,distance:y}}function h(p,A){const v=i.get()+p,{index:y,distance:x}=c(v),k=!e&&a(v);if(!A||k)return{index:y,distance:p};const S=t[y]-x,C=p+u(S,0);return{index:y,distance:C}}return{byDistance:h,byIndex:f,shortcut:u}}function R7t(e,t,n,r,i,a,o){function s(f){const h=f.distance,m=f.index!==t.get();a.add(h),h&&(r.duration()?e.start():(e.update(),e.render(1),e.update())),m&&(n.set(t.get()),t.set(f.index),o.emit("select"))}function l(f,h){const m=i.byDistance(f,h);s(m)}function c(f,h){const m=t.clone().set(f),p=i.byIndex(m.get(),h);s(p)}return{distance:l,index:c}}function $7t(e,t,n,r,i,a,o,s){const l={passive:!0,capture:!0};let c=0;function u(m){if(!s)return;function p(A){if(new Date().getTime()-c>10)return;o.emit("slideFocusStart"),e.scrollLeft=0;const x=n.findIndex(k=>k.includes(A));Wie(x)&&(i.useDuration(0),r.index(x,0),o.emit("slideFocus"))}a.add(document,"keydown",f,!1),t.forEach((A,v)=>{a.add(A,"focus",y=>{(uL(s)||s(m,y))&&p(v)},l)})}function f(m){m.code==="Tab"&&(c=new Date().getTime())}return{init:u}}function zN(e){let t=e;function n(){return t}function r(l){t=o(l)}function i(l){t+=o(l)}function a(l){t-=o(l)}function o(l){return Wie(l)?l:l.get()}return{get:n,set:r,add:i,subtract:a}}function MHe(e,t){const n=e.scroll==="x"?o:s,r=t.style;let i=null,a=!1;function o(h){return`translate3d(${h}px,0px,0px)`}function s(h){return`translate3d(0px,${h}px,0px)`}function l(h){if(a)return;const m=b7t(e.direction(h));m!==i&&(r.transform=n(m),i=m)}function c(h){a=!h}function u(){a||(r.transform="",t.getAttribute("style")||t.removeAttribute("style"))}return{clear:u,to:l,toggleActive:c}}function L7t(e,t,n,r,i,a,o,s,l){const u=yE(i),f=yE(i).reverse(),h=y().concat(x());function m(E,D){return E.reduce((T,P)=>T-i[P],D)}function p(E,D){return E.reduce((T,P)=>m(T,D)>0?T.concat([P]):T,[])}function A(E){return a.map((D,T)=>({start:D-r[T]+.5+E,end:D+t-.5+E}))}function v(E,D,T){const P=A(D);return E.map(O=>{const B=T?0:-n,M=T?n:0,$=T?"end":"start",U=P[O][$];return{index:O,loopPoint:U,slideLocation:zN(-1),translate:MHe(e,l[O]),target:()=>s.get()>U?B:M}})}function y(){const E=o[0],D=p(f,E);return v(D,n,!1)}function x(){const E=t-o[0]-1,D=p(u,E);return v(D,-n,!0)}function k(){return h.every(({index:E})=>{const D=u.filter(T=>T!==E);return m(D,t)<=.1})}function S(){h.forEach(E=>{const{target:D,translate:T,slideLocation:P}=E,O=D();O!==P.get()&&(T.to(O),P.set(O))})}function C(){h.forEach(E=>E.translate.clear())}return{canLoop:k,clear:C,loop:S,loopPoints:h}}function U7t(e,t,n){let r,i=!1;function a(l){if(!n)return;function c(u){for(const f of u)if(f.type==="childList"){l.reInit(),t.emit("slidesChanged");break}}r=new MutationObserver(u=>{i||(uL(n)||n(l,u))&&c(u)}),r.observe(e,{childList:!0})}function o(){r&&r.disconnect(),i=!0}return{init:a,destroy:o}}function z7t(e,t,n,r){const i={};let a=null,o=null,s,l=!1;function c(){s=new IntersectionObserver(p=>{l||(p.forEach(A=>{const v=t.indexOf(A.target);i[v]=A}),a=null,o=null,n.emit("slidesInView"))},{root:e.parentElement,threshold:r}),t.forEach(p=>s.observe(p))}function u(){s&&s.disconnect(),l=!0}function f(p){return bE(i).reduce((A,v)=>{const y=parseInt(v),{isIntersecting:x}=i[y];return(p&&x||!p&&!x)&&A.push(y),A},[])}function h(p=!0){if(p&&a)return a;if(!p&&o)return o;const A=f(p);return p&&(a=A),p||(o=A),A}return{init:c,destroy:u,get:h}}function H7t(e,t,n,r,i,a){const{measureSize:o,startEdge:s,endEdge:l}=e,c=n[0]&&i,u=p(),f=A(),h=n.map(o),m=v();function p(){if(!c)return 0;const x=n[0];return po(t[s]-x[s])}function A(){if(!c)return 0;const x=a.getComputedStyle(Lh(r));return parseFloat(x.getPropertyValue(`margin-${l}`))}function v(){return n.map((x,k,S)=>{const C=!k,N=Yie(S,k);return C?h[k]+u:N?h[k]+f:S[k+1][s]-x[s]}).map(po)}return{slideSizes:h,slideSizesWithGaps:m,startGap:u,endGap:f}}function V7t(e,t,n,r,i,a,o,s,l){const{startEdge:c,endEdge:u,direction:f}=e,h=Wie(n);function m(y,x){return yE(y).filter(k=>k%x===0).map(k=>y.slice(k,k+x))}function p(y){return y.length?yE(y).reduce((x,k,S)=>{const C=Lh(x)||0,N=C===0,E=k===TD(y),D=i[c]-a[C][c],T=i[c]-a[k][u],P=!r&&N?f(o):0,O=!r&&E?f(s):0,B=po(T-O-(D+P));return S&&B>t+l&&x.push(k),E&&x.push(y.length),x},[]).map((x,k,S)=>{const C=Math.max(S[k-1]||0);return y.slice(C,x)}):[]}function A(y){return h?m(y,n):p(y)}return{groupSlides:A}}function Q7t(e,t,n,r,i,a,o){const{align:s,axis:l,direction:c,startIndex:u,loop:f,duration:h,dragFree:m,dragThreshold:p,inViewThreshold:A,slidesToScroll:v,skipSnaps:y,containScroll:x,watchResize:k,watchSlides:S,watchDrag:C,watchFocus:N}=a,E=2,D=_7t(),T=D.measure(t),P=n.map(D.measure),O=k7t(l,c),B=O.measureSize(T),M=N7t(B),$=x7t(s,B),U=!f&&!!x,j=f||!!x,{slideSizes:V,slideSizesWithGaps:Q,startGap:X,endGap:Z}=H7t(O,T,P,n,j,i),le=V7t(O,B,v,f,T,P,X,Z,E),{snaps:H,snapsAligned:G}=j7t(O,$,T,P,le),W=-Lh(H)+Lh(Q),{snapsContained:te,scrollContainLimit:re}=T7t(B,W,G,x,E),ne=U?te:G,{limit:de}=O7t(W,ne,f),he=PHe(TD(ne),u,f),pe=he.clone(),oe=yE(n),J=({dragHandler:Ae,scrollBody:ee,scrollBounds:se,options:{loop:_e}})=>{_e||se.constrain(Ae.pointerDown()),ee.seek()},Se=({scrollBody:Ae,translate:ee,location:se,offsetLocation:_e,previousLocation:Fe,scrollLooper:Ue,slideLooper:Te,dragHandler:Pe,animation:st,eventHandler:Xe,scrollBounds:it,options:{loop:lt}},Pt)=>{const Ft=Ae.settled(),St=!it.shouldConstrain(),cn=lt?Ft:Ft&&St,fn=cn&&!Pe.pointerDown();fn&&st.stop();const pn=se.get()*Pt+Fe.get()*(1-Pt);_e.set(pn),lt&&(Ue.loop(Ae.direction()),Te.loop()),ee.to(_e.get()),fn&&Xe.emit("settle"),cn||Xe.emit("scroll")},be=w7t(r,i,()=>J(vt),Ae=>Se(vt,Ae)),we=.68,me=ne[he.get()],K=zN(me),ie=zN(me),ce=zN(me),ue=zN(me),ve=F7t(K,ce,ie,ue,h,we),ke=M7t(f,ne,W,de,ue),Re=R7t(be,he,pe,ve,ke,ue,o),Me=I7t(de),$e=xE(),We=z7t(t,n,o,A),{slideRegistry:tt}=P7t(U,x,ne,re,le,oe),ot=$7t(e,n,tt,Re,ve,$e,o,N),vt={ownerDocument:r,ownerWindow:i,eventHandler:o,containerRect:T,slideRects:P,animation:be,axis:O,dragHandler:S7t(O,e,r,i,ue,C7t(O,i),K,be,Re,ve,ke,he,o,M,m,p,y,we,C),eventStore:$e,percentOfView:M,index:he,indexPrevious:pe,limit:de,location:K,offsetLocation:ce,previousLocation:ie,options:a,resizeHandler:E7t(t,o,i,n,O,k,D),scrollBody:ve,scrollBounds:D7t(de,ce,ue,ve,M),scrollLooper:B7t(W,de,ce,[K,ce,ie,ue]),scrollProgress:Me,scrollSnapList:ne.map(Me.get),scrollSnaps:ne,scrollTarget:ke,scrollTo:Re,slideLooper:L7t(O,B,W,V,Q,H,ne,ce,n),slideFocus:ot,slidesHandler:U7t(t,o,S),slidesInView:We,slideIndexes:oe,slideRegistry:tt,slidesToScroll:le,target:ue,translate:MHe(O,t)};return vt}function q7t(){let e={},t;function n(c){t=c}function r(c){return e[c]||[]}function i(c){return r(c).forEach(u=>u(t,c)),l}function a(c,u){return e[c]=r(c).concat([u]),l}function o(c,u){return e[c]=r(c).filter(f=>f!==u),l}function s(){e={}}const l={init:n,emit:i,off:o,on:a,clear:s};return l}const G7t={align:"center",axis:"x",container:null,slides:null,containScroll:"trimSnaps",direction:"ltr",slidesToScroll:1,inViewThreshold:0,breakpoints:{},dragFree:!1,dragThreshold:10,loop:!1,skipSnaps:!1,duration:25,startIndex:0,active:!0,watchDrag:!0,watchResize:!0,watchSlides:!0,watchFocus:!0};function W7t(e){function t(a,o){return jHe(a,o||{})}function n(a){const o=a.breakpoints||{},s=bE(o).filter(l=>e.matchMedia(l).matches).map(l=>o[l]).reduce((l,c)=>t(l,c),{});return t(a,s)}function r(a){return a.map(o=>bE(o.breakpoints||{})).reduce((o,s)=>o.concat(s),[]).map(e.matchMedia)}return{mergeOptions:t,optionsAtMedia:n,optionsMediaQueries:r}}function K7t(e){let t=[];function n(a,o){return t=o.filter(({options:s})=>e.optionsAtMedia(s).active!==!1),t.forEach(s=>s.init(a,e)),o.reduce((s,l)=>Object.assign(s,{[l.name]:l}),{})}function r(){t=t.filter(a=>a.destroy())}return{init:n,destroy:r}}function RM(e,t,n){const r=e.ownerDocument,i=r.defaultView,a=W7t(i),o=K7t(a),s=xE(),l=q7t(),{mergeOptions:c,optionsAtMedia:u,optionsMediaQueries:f}=a,{on:h,off:m,emit:p}=l,A=O;let v=!1,y,x=c(G7t,RM.globalOptions),k=c(x),S=[],C,N,E;function D(){const{container:oe,slides:J}=k;N=(lX(oe)?e.querySelector(oe):oe)||e.children[0];const be=lX(J)?N.querySelectorAll(J):J;E=[].slice.call(be||N.children)}function T(oe){const J=Q7t(e,N,E,r,i,oe,l);if(oe.loop&&!J.slideLooper.canLoop()){const Se=Object.assign({},oe,{loop:!1});return T(Se)}return J}function P(oe,J){v||(x=c(x,oe),k=u(x),S=J||S,D(),y=T(k),f([x,...S.map(({options:Se})=>Se)]).forEach(Se=>s.add(Se,"change",O)),k.active&&(y.translate.to(y.location.get()),y.animation.init(),y.slidesInView.init(),y.slideFocus.init(pe),y.eventHandler.init(pe),y.resizeHandler.init(pe),y.slidesHandler.init(pe),y.options.loop&&y.slideLooper.loop(),N.offsetParent&&E.length&&y.dragHandler.init(pe),C=o.init(pe,S)))}function O(oe,J){const Se=le();B(),P(c({startIndex:Se},oe),J),l.emit("reInit")}function B(){y.dragHandler.destroy(),y.eventStore.clear(),y.translate.clear(),y.slideLooper.clear(),y.resizeHandler.destroy(),y.slidesHandler.destroy(),y.slidesInView.destroy(),y.animation.destroy(),o.destroy(),s.clear()}function M(){v||(v=!0,s.clear(),B(),l.emit("destroy"),l.clear())}function $(oe,J,Se){!k.active||v||(y.scrollBody.useBaseFriction().useDuration(J===!0?0:k.duration),y.scrollTo.index(oe,Se||0))}function U(oe){const J=y.index.add(1).get();$(J,oe,-1)}function j(oe){const J=y.index.add(-1).get();$(J,oe,1)}function V(){return y.index.add(1).get()!==le()}function Q(){return y.index.add(-1).get()!==le()}function X(){return y.scrollSnapList}function Z(){return y.scrollProgress.get(y.offsetLocation.get())}function le(){return y.index.get()}function H(){return y.indexPrevious.get()}function G(){return y.slidesInView.get()}function W(){return y.slidesInView.get(!1)}function te(){return C}function re(){return y}function ne(){return e}function de(){return N}function he(){return E}const pe={canScrollNext:V,canScrollPrev:Q,containerNode:de,internalEngine:re,destroy:M,off:m,on:h,emit:p,plugins:te,previousScrollSnap:H,reInit:A,rootNode:ne,scrollNext:U,scrollPrev:j,scrollProgress:Z,scrollSnapList:X,scrollTo:$,selectedScrollSnap:le,slideNodes:he,slidesInView:G,slidesNotInView:W};return P(t,n),setTimeout(()=>l.emit("init"),0),pe}RM.globalOptions=void 0;function Xie(e={},t=[]){const n=w.useRef(e),r=w.useRef(t),[i,a]=w.useState(),[o,s]=w.useState(),l=w.useCallback(()=>{i&&i.reInit(n.current,r.current)},[i]);return w.useEffect(()=>{Gie(n.current,e)||(n.current=e,l())},[e,l]),w.useEffect(()=>{v7t(r.current,t)||(r.current=t,l())},[t,l]),w.useEffect(()=>{if(g7t()&&o){RM.globalOptions=Xie.globalOptions;const c=RM(o,n.current,r.current);return a(c),()=>c.destroy()}else a(void 0)},[o,a]),[s,i]}Xie.globalOptions=void 0;const Y7t={context:"[@mantine/carousel] Carousel.Slide was rendered outside of Carousel context"},[X7t,Z7t]=Qf(Y7t.context);var J7t=Object.defineProperty,ezt=Object.defineProperties,tzt=Object.getOwnPropertyDescriptors,Ibe=Object.getOwnPropertySymbols,nzt=Object.prototype.hasOwnProperty,rzt=Object.prototype.propertyIsEnumerable,jbe=(e,t,n)=>t in e?J7t(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,X9=(e,t)=>{for(var n in t||(t={}))nzt.call(t,n)&&jbe(e,n,t[n]);if(Ibe)for(var n of Ibe(t))rzt.call(t,n)&&jbe(e,n,t[n]);return e},izt=(e,t)=>ezt(e,tzt(t)),azt=ln((e,{controlSize:t,controlsOffset:n,orientation:r,height:i,includeGapInSize:a,breakpoints:o=[],slideGap:s})=>{const l=r==="horizontal",c=h=>{if(!a)return{};const m=Ot({size:h,sizes:e.spacing});return{[r==="horizontal"?"marginRight":"marginBottom"]:`calc(${m} * -1)`}},f=o.some(h=>typeof h.slideGap<"u"||typeof h.slideSize<"u")?gne(e,o).reduce((h,m)=>{const p="maxWidth"in m?"max-width":"min-width",A=Ot({size:p==="max-width"?m.maxWidth:m.minWidth,sizes:e.breakpoints}),v=typeof m.slideGap>"u"?void 0:Ve(m.slideGap),y=Vh(A)-(p==="max-width"?1:0);return h[`@media (${p}: ${Ve(y)})`]=c(v),h},{}):null;return{root:{position:"relative"},viewport:{height:Ve(i),overflow:"hidden"},container:X9(X9({display:"flex",flexDirection:l?"row":"column",height:Ve(i)},c(s)),f),controls:{position:"absolute",zIndex:1,left:l?0:`calc(50% - ${Ve(t)} / 2)`,right:l?0:void 0,top:l?`calc(50% - ${Ve(t)} / 2)`:0,bottom:l?void 0:0,display:"flex",flexDirection:l?"row":"column",alignItems:"center",justifyContent:"space-between",paddingLeft:l?Ot({size:n,sizes:e.spacing}):void 0,paddingRight:l?Ot({size:n,sizes:e.spacing}):void 0,paddingTop:l?void 0:Ot({size:n,sizes:e.spacing}),paddingBottom:l?void 0:Ot({size:n,sizes:e.spacing}),pointerEvents:"none"},control:izt(X9({display:"flex",justifyContent:"center",alignItems:"center",minWidth:Ve(t),minHeight:Ve(t),borderRadius:Ve(t),pointerEvents:"all",backgroundColor:e.white,color:e.black,boxShadow:e.shadows.md,opacity:e.colorScheme==="dark"?.65:.85,border:`${Ve(1)} solid ${e.colors.gray[3]}`,transition:`opacity 150ms ${e.transitionTimingFunction}`},e.fn.hover({opacity:1})),{"&:active":e.activeStyles}),indicators:{position:"absolute",bottom:l?e.spacing.md:0,top:l?void 0:0,left:l?0:void 0,right:l?0:e.spacing.md,display:"flex",flexDirection:l?"row":"column",justifyContent:"center",gap:Ve(8),pointerEvents:"none"},indicator:{pointerEvents:"all",width:Ve(l?25:5),height:Ve(l?5:25),borderRadius:e.radius.xl,backgroundColor:e.white,boxShadow:e.shadows.sm,opacity:.6,transition:`opacity 150ms ${e.transitionTimingFunction}`,"&[data-active]":{opacity:1}}}}),ozt=Object.defineProperty,Pbe=Object.getOwnPropertySymbols,szt=Object.prototype.hasOwnProperty,lzt=Object.prototype.propertyIsEnumerable,Mbe=(e,t,n)=>t in e?ozt(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,Z9=(e,t)=>{for(var n in t||(t={}))szt.call(t,n)&&Mbe(e,n,t[n]);if(Pbe)for(var n of Pbe(t))lzt.call(t,n)&&Mbe(e,n,t[n]);return e},czt=ln((e,{size:t,gap:n,orientation:r,includeGapInSize:i,breakpoints:a=[]})=>{const o=(c,u)=>{const f=Ot({size:c,sizes:e.spacing}),h=Ve(u),m=i?{[r==="horizontal"?"paddingRight":"paddingBottom"]:f}:{[r==="horizontal"?"marginRight":"marginBottom"]:f};return Z9({flex:`0 0 ${h}`},m)},l=a.some(c=>typeof c.slideGap<"u"||typeof c.slideSize<"u")?gne(e,a).reduce((c,u)=>{const f="maxWidth"in u?"max-width":"min-width",h=Ot({size:f==="max-width"?u.maxWidth:u.minWidth,sizes:e.breakpoints}),m=typeof u.slideGap>"u"?n:u.slideGap,p=Vh(h)-(f==="max-width"?1:0);return c[`@media (${f}: ${Ve(p)})`]=o(m,u.slideSize),c},{}):null;return{slide:Z9(Z9({position:"relative"},o(n,t)),l)}}),uzt=Object.defineProperty,$M=Object.getOwnPropertySymbols,RHe=Object.prototype.hasOwnProperty,$He=Object.prototype.propertyIsEnumerable,Rbe=(e,t,n)=>t in e?uzt(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,dzt=(e,t)=>{for(var n in t||(t={}))RHe.call(t,n)&&Rbe(e,n,t[n]);if($M)for(var n of $M(t))$He.call(t,n)&&Rbe(e,n,t[n]);return e},fzt=(e,t)=>{var n={};for(var r in e)RHe.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&$M)for(var r of $M(e))t.indexOf(r)<0&&$He.call(e,r)&&(n[r]=e[r]);return n};const LHe=w.forwardRef((e,t)=>{var n=e,{children:r,className:i,size:a,gap:o}=n,s=fzt(n,["children","className","size","gap"]);const l=Z7t(),{classes:c,cx:u}=czt({gap:typeof o>"u"?l.slideGap:o,size:typeof a>"u"?l.slideSize:a,orientation:l.orientation,includeGapInSize:l.includeGapInSize,breakpoints:l.breakpoints},{name:"Carousel",classNames:l.classNames,styles:l.styles,unstyled:l.unstyled,variant:l.variant});return L.createElement(Fn,dzt({className:u(c.slide,i),ref:t},s),r)});LHe.displayName="@mantine/carousel/CarouselSlide";function $be({dir:e,orientation:t,direction:n}){return n==="previous"?t==="horizontal"?90*(e==="ltr"?1:-1):-180:t==="horizontal"?90*(e==="ltr"?-1:1):0}var hzt=Object.defineProperty,LM=Object.getOwnPropertySymbols,UHe=Object.prototype.hasOwnProperty,zHe=Object.prototype.propertyIsEnumerable,Lbe=(e,t,n)=>t in e?hzt(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,mzt=(e,t)=>{for(var n in t||(t={}))UHe.call(t,n)&&Lbe(e,n,t[n]);if(LM)for(var n of LM(t))zHe.call(t,n)&&Lbe(e,n,t[n]);return e},pzt=(e,t)=>{var n={};for(var r in e)UHe.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&LM)for(var r of LM(e))t.indexOf(r)<0&&zHe.call(e,r)&&(n[r]=e[r]);return n};const Azt={controlSize:26,controlsOffset:"sm",slideSize:"100%",slideGap:0,orientation:"horizontal",align:"center",slidesToScroll:1,includeGapInSize:!0,draggable:!0,dragFree:!1,loop:!1,speed:10,initialSlide:0,inViewThreshold:0,withControls:!0,withIndicators:!1,skipSnaps:!1,containScroll:"",withKeyboardEvents:!0},Zie=w.forwardRef((e,t)=>{const n=Qt("Carousel",Azt,e),{children:r,className:i,getEmblaApi:a,onNextSlide:o,onPreviousSlide:s,onSlideChange:l,nextControlLabel:c,previousControlLabel:u,controlSize:f,controlsOffset:h,classNames:m,styles:p,unstyled:A,slideSize:v,slideGap:y,orientation:x,height:k,align:S,slidesToScroll:C,includeGapInSize:N,draggable:E,dragFree:D,loop:T,speed:P,initialSlide:O,inViewThreshold:B,withControls:M,withIndicators:$,plugins:U,nextControlIcon:j,previousControlIcon:V,breakpoints:Q,skipSnaps:X,containScroll:Z,withKeyboardEvents:le,variant:H}=n,G=pzt(n,["children","className","getEmblaApi","onNextSlide","onPreviousSlide","onSlideChange","nextControlLabel","previousControlLabel","controlSize","controlsOffset","classNames","styles","unstyled","slideSize","slideGap","orientation","height","align","slidesToScroll","includeGapInSize","draggable","dragFree","loop","speed","initialSlide","inViewThreshold","withControls","withIndicators","plugins","nextControlIcon","previousControlIcon","breakpoints","skipSnaps","containScroll","withKeyboardEvents","variant"]),{classes:W,cx:te,theme:re}=azt({controlSize:f,controlsOffset:h,orientation:x,height:k,includeGapInSize:N,breakpoints:Q,slideGap:y},{name:"Carousel",classNames:m,styles:p,unstyled:A,variant:H}),[ne,de]=Xie({axis:x==="horizontal"?"x":"y",direction:x==="horizontal"?re.dir:void 0,startIndex:O,loop:T,align:S,slidesToScroll:C,draggable:E,dragFree:D,speed:P,inViewThreshold:B,skipSnaps:X,containScroll:Z},U),[he,pe]=w.useState(0),[oe,J]=w.useState(0),Se=w.useCallback(ve=>de&&de.scrollTo(ve),[de]),be=w.useCallback(()=>{if(!de)return;const ve=de.selectedScrollSnap();pe(ve),l?.(ve)},[de,pe]),we=w.useCallback(()=>{de?.scrollPrev(),s?.()},[de]),me=w.useCallback(()=>{de?.scrollNext(),o?.()},[de]),K=w.useCallback(ve=>{le&&(ve.key==="ArrowRight"&&(ve.preventDefault(),me()),ve.key==="ArrowLeft"&&(ve.preventDefault(),we()))},[de]);w.useEffect(()=>{if(de)return a?.(de),be(),J(de.scrollSnapList().length),de.on("select",be),()=>{de.off("select",be)}},[de,C]),w.useEffect(()=>{de&&(de.reInit(),J(de.scrollSnapList().length),pe(ve=>y2(ve,0,w.Children.toArray(r).length-1)))},[w.Children.toArray(r).length,C]);const ie=de?.canScrollPrev()||!1,ce=de?.canScrollNext()||!1,ue=Array(oe).fill(0).map((ve,ke)=>L.createElement(bd,{key:ke,"data-active":ke===he||void 0,className:W.indicator,"aria-hidden":!0,tabIndex:-1,onClick:()=>Se(ke)}));return L.createElement(X7t,{value:{slideGap:y,slideSize:v,embla:de,orientation:x,includeGapInSize:N,breakpoints:Q,classNames:m,styles:p,unstyled:A,variant:H}},L.createElement(Fn,mzt({className:te(W.root,i),ref:t,onKeyDownCapture:K},G),L.createElement("div",{className:W.viewport,ref:ne},L.createElement("div",{className:W.container},r)),$&&L.createElement("div",{className:W.indicators},ue),M&&L.createElement("div",{className:W.controls},L.createElement(bd,{onClick:we,className:W.control,"aria-label":u,"data-inactive":!ie||void 0,tabIndex:ie?0:-1},typeof V<"u"?V:L.createElement(sE,{style:{transform:`rotate(${$be({dir:re.dir,orientation:x,direction:"previous"})}deg)`}})),L.createElement(bd,{onClick:me,className:W.control,"aria-label":c,"data-inactive":!ce||void 0,tabIndex:ce?0:-1},typeof j<"u"?j:L.createElement(sE,{style:{transform:`rotate(${$be({dir:re.dir,orientation:x,direction:"next"})}deg)`}})))))});Zie.Slide=LHe;Zie.displayName="@mantine/carousel/Carousel";const Ube=Zie,gzt=({chargeProps:e,onChange:t})=>{const{additionalDocuments:n}=$t(_3e,e),[r,i]=w.useState(void 0);return d.jsx("div",{className:"container mx-auto text-gray-600 body-font",children:n?.length>0?d.jsxs(d.Fragment,{children:[d.jsx("div",{className:"flex flex-wrap",children:d.jsx(Ube,{sx:{maxWidth:320},mx:"auto",align:"center",withControls:n.length>1,slideGap:0,withIndicators:!0,className:"[&>*>.mantine-Carousel-indicator]:bg-gray-500",children:n.map(a=>d.jsx(Ube.Slide,{children:d.jsxs("div",{className:"flex flex-col items-center",children:[d.jsx("h2",{className:"text-gray-900 text-base font-medium",children:"documentType"in a?a.documentType:"Unprocessed"}),d.jsx("button",{className:"mx-10",onClick:()=>i(a.id),children:d.jsx("div",{className:"flex rounded-lg h-full bg-gray-100 p-2 m-2 flex-col",children:d.jsx(oC,{src:a.image?.toString(),withPlaceholder:!0})})})]})},a.id))})}),d.jsx(ZWe,{documentId:r,onDone:()=>i(void 0),onChange:t})]}):d.jsx(MY,{color:"red",children:"No Documents Related"})})};/**
671
+ For more information, see https://radix-ui.com/primitives/docs/components/${t.docsSlug}`;return w.useEffect(()=>{e&&(document.getElementById(e)||console.error(n))},[n,e]),null},o7t="DialogDescriptionWarning",s7t=({contentRef:e,descriptionId:t})=>{const r=`Warning: Missing \`Description\` or \`aria-describedby={undefined}\` for {${THe(o7t).contentName}}.`;return w.useEffect(()=>{const i=e.current?.getAttribute("aria-describedby");t&&i&&(document.getElementById(t)||console.warn(r))},[r,e,t]),null},oL=gHe,qie=yHe,sL=xHe,lL=wHe,cL=kHe,l7t=CHe,c7t=NHe,OHe=FHe;function Ra({...e}){return d.jsx(oL,{"data-slot":"dialog",...e})}function Ac({...e}){return d.jsx(qie,{"data-slot":"dialog-trigger",...e})}function u7t({...e}){return d.jsx(sL,{"data-slot":"dialog-portal",...e})}function d7t({className:e,...t}){return d.jsx(lL,{"data-slot":"dialog-overlay",className:_t("data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 fixed inset-0 z-1001 bg-black/50",e),...t})}function $a({className:e,children:t,showCloseButton:n=!0,...r}){return d.jsxs(u7t,{"data-slot":"dialog-portal",children:[d.jsx(d7t,{}),d.jsxs(cL,{"data-slot":"dialog-content",className:_t("bg-white data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 fixed top-[50%] left-[50%] z-1001 grid w-full max-w-[calc(100%-2rem)] translate-x-[-50%] translate-y-[-50%] gap-4 rounded-lg border border-gray-200 p-6 shadow-lg duration-200 sm:max-w-lg dark:bg-gray-950 dark:border-gray-800",e),...r,children:[t,n&&d.jsxs(OHe,{"data-slot":"dialog-close",className:"ring-offset-white focus:ring-gray-950 data-[state=open]:bg-gray-100 data-[state=open]:text-gray-500 absolute top-4 right-4 rounded-xs opacity-70 transition-opacity hover:opacity-100 focus:ring-2 focus:ring-offset-2 focus:outline-hidden disabled:pointer-events-none [&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg:not([class*='size-'])]:size-4 dark:ring-offset-gray-950 dark:focus:ring-gray-300 dark:data-[state=open]:bg-gray-800 dark:data-[state=open]:text-gray-400",children:[d.jsx(Vx,{}),d.jsx("span",{className:"sr-only",children:"Close"})]})]})]})}function us({className:e,...t}){return d.jsx("div",{"data-slot":"dialog-header",className:_t("flex flex-col gap-2 text-center sm:text-left",e),...t})}function Uy({className:e,...t}){return d.jsx("div",{"data-slot":"dialog-footer",className:_t("flex flex-col-reverse gap-2 sm:flex-row sm:justify-end",e),...t})}function ds({className:e,...t}){return d.jsx(l7t,{"data-slot":"dialog-title",className:_t("text-lg leading-none font-semibold",e),...t})}function BHe({className:e,...t}){return d.jsx(c7t,{"data-slot":"dialog-description",className:_t("text-gray-500 text-sm dark:text-gray-400",e),...t})}function Td({labels:e={cancel:"Cancel",confirm:"Confirm"},title:t,onConfirm:n,onClose:r,children:i}){const[a,o]=w.useState(!1);return d.jsxs(Ra,{open:a,onOpenChange:o,children:[d.jsx(Ac,{asChild:!0,onClick:s=>{s.stopPropagation(),o(l=>!l)},children:i}),d.jsxs($a,{className:"sm:max-w-[425px]",children:[d.jsx(us,{children:t&&d.jsx(ds,{children:t})}),d.jsxs(Uy,{children:[d.jsx(Ge,{onClick:()=>{o(!1),r?.()},variant:"secondary",children:e.cancel}),d.jsx(Ge,{onClick:()=>{o(!1),n()},variant:"default",children:e.confirm})]})]})]})}function f7t(e){const{fetching:t,deleteDepreciationRecord:n}=_Ut(),r=w.useCallback(()=>{n({depreciationRecordId:e.depreciationRecordId}).then(()=>{e.onDelete?.()})},[e,n]);return d.jsx(Td,{onConfirm:r,title:"Are you sure you want to delete the depreciation record?",children:d.jsx(Vn,{label:"Remove Depreciation",children:d.jsx(Ge,{variant:"outline",size:"icon",className:"size-7.5 text-red-500",disabled:t,children:d.jsx(Hx,{className:"size-5"})})})})}const h7t=({data:e,onChange:t})=>{const n=$t(P2t,e),[r,i]=w.useState(!1),[{data:a,fetching:o},s]=rn({query:I3e,pause:!0}),{control:l,handleSubmit:c,formState:{dirtyFields:u}}=Ar({defaultValues:{id:n.id}}),{updateDepreciationRecord:f,fetching:h}=SUt(),m=A=>{const v=wg(A,u);v&&Object.keys(v).length>0&&f({fields:{...A,id:n.id}}).then(()=>{t?.(),i(!1)})},p=a?.depreciationCategories.map(A=>({value:A.id,label:A.name}));return w.useEffect(()=>{r&&!a&&s()},[r,a,s]),d.jsxs("tr",{children:[d.jsx("td",{children:d.jsx("form",{id:`form ${n.id}`,onSubmit:c(m),children:r?d.jsx(wt,{name:"amount",control:l,render:({field:A,fieldState:v})=>d.jsx(wt,{name:"currency",control:l,render:({field:y,fieldState:x})=>d.jsx(pa,{...A,defaultValue:n.amount?.raw??n.charge.totalAmount?.raw,value:A.value??void 0,error:v.error?.message||x.error?.message,label:"Amount",currencyCodeProps:{...y,label:"Currency",defaultValue:n.amount?.currency??n.charge.totalAmount?.currency}})})}):d.jsx("div",{children:n.amount?.formatted??n.charge.totalAmount?.formatted})})}),d.jsx("td",{children:d.jsx("div",{className:"flex flex-col gap-2 justify-center",children:r?d.jsx(wt,{name:"activationDate",control:l,defaultValue:n.activationDate,rules:{pattern:{value:ki,message:"Date must be im format yyyy-mm-dd"}},render:({field:{value:A,...v},fieldState:y})=>{const x=A?new Date(A):void 0;return d.jsx(Vi,{...v,form:`form ${n.id}`,onChange:k=>{const S=k?typeof k=="string"?k:Rt(k,"yyyy-MM-dd"):void 0;S!==A&&v.onChange(S)},value:x,label:"Activation Date",error:y.error?.message,popoverProps:{withinPortal:!0}})}}):d.jsx("div",{children:Rt(new Date(n.activationDate),"dd/MM/yy")})})}),d.jsx("td",{children:r?d.jsx(wt,{name:"categoryId",control:l,render:({field:A,fieldState:v})=>d.jsx(ri,{...A,form:`form ${n.id}`,disabled:o,data:p??[],label:"Category",placeholder:"Scroll to see all options",maxDropdownHeight:160,searchable:!0,error:v.error?.message,withinPortal:!0})}):d.jsxs("div",{children:[n.category.name," (",n.category.percentage,"%)"]})}),d.jsx("td",{children:r?d.jsx(wt,{name:"type",control:l,render:({field:A,fieldState:v})=>d.jsx(ri,{...A,form:`form ${n.id}`,data:IHe,value:A.value,label:"Type",placeholder:"Scroll to see all options",maxDropdownHeight:160,searchable:!0,error:v.error?.message,withinPortal:!0})}):d.jsx("div",{children:n.type})}),d.jsxs("td",{children:[d.jsx(Vn,{label:"Edit",children:d.jsx(Ge,{disabled:h||o,variant:r?"default":"outline",size:"icon",className:"size-7.5",onClick:A=>{A.stopPropagation(),i(v=>!v)},children:d.jsx(Tu,{className:"size-5"})})}),r&&d.jsx(Vn,{label:"Confirm Changes",children:d.jsx(Ge,{type:"submit",form:`form ${n.id}`,variant:"outline",size:"icon",className:"size-7.5 text-green-500",children:d.jsx(Ds,{className:"size-5"})})}),d.jsx(f7t,{depreciationRecordId:n.id,onDelete:t})]})]},n.id)},m7t=({chargeId:e,onChange:t})=>{const[{data:n,fetching:r}]=rn({query:DEt,variables:{chargeId:e}});return!r&&!n?.depreciationRecordsByCharge.length?d.jsx(wbe,{chargeId:e,onAdd:t}):r?d.jsx(ai,{className:"h-10 w-10 animate-spin mr-2 self-center"}):d.jsx("div",{className:"flex flex-col gap-2 mt-5",children:d.jsxs(go,{highlightOnHover:!0,withBorder:!0,children:[d.jsx("thead",{children:d.jsxs("tr",{children:[d.jsx("th",{children:"Amount"}),d.jsx("th",{children:"Activation Date"}),d.jsx("th",{children:"Category"}),d.jsx("th",{children:"Type"}),d.jsx("th",{})]})}),d.jsxs("tbody",{children:[n?.depreciationRecordsByCharge.map(i=>d.jsx(h7t,{data:i,onChange:t},i.id)),d.jsx("tr",{children:d.jsx("td",{colSpan:5,children:d.jsx(wbe,{chargeId:e,onAdd:t})})})]})]})})},IHe=Object.entries(n2t).map(([e,t])=>({value:t,label:e}));function p7t({chargeId:e,chargeType:t,setInsertDocument:n,setMatchDocuments:r,onChange:i,isIncome:a}){const{deleteCharge:o}=yUt(),[s,l]=w.useState(!1),[c,{open:u,close:f}]=as(!1),[h,m]=w.useState(!1),[p,{open:A,close:v}]=as(!1),[y,x]=w.useState(!1),[k,S]=w.useState(!1);function C(){o({chargeId:e}),i?.()}function N(){l(!1)}return d.jsxs(d.Fragment,{children:[d.jsxs(ji,{shadow:"md",width:200,opened:s,children:[d.jsx(ji.Target,{children:d.jsx(cne,{opened:s,onClick:E=>{E.stopPropagation(),l(D=>!D)}})}),d.jsxs(ji.Dropdown,{children:[d.jsx(ji.Label,{children:"Charge"}),d.jsx(Td,{onConfirm:C,title:"Are you sure you want to delete this charge?",children:d.jsx(ji.Item,{icon:d.jsx(Hx,{size:14}),children:"Delete Charge"})}),d.jsx(ji.Divider,{}),d.jsx(ji.Label,{children:"Documents"}),d.jsx(ji.Item,{icon:d.jsx(vp,{size:14}),onClick:E=>{E.stopPropagation(),n(),N()},children:"Insert Document"}),d.jsx(ji.Item,{icon:d.jsx(Wge,{size:14}),onClick:E=>{E.stopPropagation(),S(!0),N()},children:"Upload Documents"}),d.jsx(ji.Item,{icon:d.jsx(oLe,{size:14}),onClick:()=>{r(),N()},children:"Match Document"}),a&&d.jsx(ji.Item,{icon:d.jsx(vp,{size:14}),onClick:E=>{E.stopPropagation(),x(!0),N()},children:"Issue Document"}),d.jsx(ji.Divider,{}),d.jsx(ji.Label,{children:"Misc Expenses"}),d.jsx(ji.Item,{icon:d.jsx(vp,{size:14}),onClick:E=>{E.stopPropagation(),N(),m(!0)},children:"Add expense"}),t==="CommonCharge"&&d.jsxs(d.Fragment,{children:[d.jsx(ji.Divider,{}),d.jsx(ji.Label,{children:"Depreciation"}),d.jsx(ji.Item,{icon:d.jsx(qOt,{size:14}),onClick:E=>{E.stopPropagation(),u(),N()},children:"Depreciation"})]}),t==="SalaryCharge"&&d.jsxs(d.Fragment,{children:[d.jsx(ji.Divider,{}),d.jsx(ji.Label,{children:"Salaries"}),d.jsx(ji.Item,{icon:d.jsx(Wge,{size:14}),onClick:E=>{E.stopPropagation(),N(),A()},children:"Payroll file upload"})]})]})]}),d.jsx(_r,{withinPortal:!0,size:"xl",centered:!0,opened:c,onClose:f,title:"Depreciation",onClick:E=>E.stopPropagation(),children:d.jsx(m7t,{chargeId:e,onChange:()=>{f(),i?.()}})}),d.jsx(Ra,{open:h,onOpenChange:m,children:d.jsx($a,{className:"sm:max-w-[425px]",onClick:E=>E.stopPropagation(),children:d.jsx(kGe,{onDone:()=>{m(!1),i?.()},chargeId:e})})}),d.jsx(_r,{centered:!0,opened:p,onClose:v,title:"Upload Payroll File",onClick:E=>E.stopPropagation(),children:d.jsx(rtn,{onDone:()=>{v(),i?.()},chargeId:e})}),d.jsx(kYe,{open:k,onOpenChange:S,onChange:i,chargeId:e}),d.jsx(jE,{chargeId:e,open:y,setOpen:x,onDone:()=>i?.()})]})}function A7t(e){return Object.prototype.toString.call(e)==="[object Object]"}function Dbe(e){return A7t(e)||Array.isArray(e)}function g7t(){return!!(typeof window<"u"&&window.document&&window.document.createElement)}function Gie(e,t){const n=Object.keys(e),r=Object.keys(t);if(n.length!==r.length)return!1;const i=JSON.stringify(Object.keys(e.breakpoints||{})),a=JSON.stringify(Object.keys(t.breakpoints||{}));return i!==a?!1:n.every(o=>{const s=e[o],l=t[o];return typeof s=="function"?`${s}`==`${l}`:!Dbe(s)||!Dbe(l)?s===l:Gie(s,l)})}function Tbe(e){return e.concat().sort((t,n)=>t.name>n.name?1:-1).map(t=>t.options)}function v7t(e,t){if(e.length!==t.length)return!1;const n=Tbe(e),r=Tbe(t);return n.every((i,a)=>{const o=r[a];return Gie(i,o)})}function Wie(e){return typeof e=="number"}function lX(e){return typeof e=="string"}function uL(e){return typeof e=="boolean"}function Obe(e){return Object.prototype.toString.call(e)==="[object Object]"}function po(e){return Math.abs(e)}function Kie(e){return Math.sign(e)}function x2(e,t){return po(e-t)}function y7t(e,t){if(e===0||t===0||po(e)<=po(t))return 0;const n=x2(po(e),po(t));return po(n/e)}function b7t(e){return Math.round(e*100)/100}function yE(e){return bE(e).map(Number)}function Lh(e){return e[TD(e)]}function TD(e){return Math.max(0,e.length-1)}function Yie(e,t){return t===TD(e)}function Bbe(e,t=0){return Array.from(Array(e),(n,r)=>t+r)}function bE(e){return Object.keys(e)}function jHe(e,t){return[e,t].reduce((n,r)=>(bE(r).forEach(i=>{const a=n[i],o=r[i],s=Obe(a)&&Obe(o);n[i]=s?jHe(a,o):o}),n),{})}function cX(e,t){return typeof t.MouseEvent<"u"&&e instanceof t.MouseEvent}function x7t(e,t){const n={start:r,center:i,end:a};function r(){return 0}function i(l){return a(l)/2}function a(l){return t-l}function o(l,c){return lX(e)?n[e](l):e(t,l,c)}return{measure:o}}function xE(){let e=[];function t(i,a,o,s={passive:!0}){let l;if("addEventListener"in i)i.addEventListener(a,o,s),l=()=>i.removeEventListener(a,o,s);else{const c=i;c.addListener(o),l=()=>c.removeListener(o)}return e.push(l),r}function n(){e=e.filter(i=>i())}const r={add:t,clear:n};return r}function w7t(e,t,n,r){const i=xE(),a=1e3/60;let o=null,s=0,l=0;function c(){i.add(e,"visibilitychange",()=>{e.hidden&&p()})}function u(){m(),i.clear()}function f(v){if(!l)return;o||(o=v,n(),n());const y=v-o;for(o=v,s+=y;s>=a;)n(),s-=a;const x=s/a;r(x),l&&(l=t.requestAnimationFrame(f))}function h(){l||(l=t.requestAnimationFrame(f))}function m(){t.cancelAnimationFrame(l),o=null,s=0,l=0}function p(){o=null,s=0}return{init:c,destroy:u,start:h,stop:m,update:n,render:r}}function k7t(e,t){const n=t==="rtl",r=e==="y",i=r?"y":"x",a=r?"x":"y",o=!r&&n?-1:1,s=u(),l=f();function c(p){const{height:A,width:v}=p;return r?A:v}function u(){return r?"top":n?"right":"left"}function f(){return r?"bottom":n?"left":"right"}function h(p){return p*o}return{scroll:i,cross:a,startEdge:s,endEdge:l,measureSize:c,direction:h}}function dx(e=0,t=0){const n=po(e-t);function r(c){return c<e}function i(c){return c>t}function a(c){return r(c)||i(c)}function o(c){return a(c)?r(c)?e:t:c}function s(c){return n?c-n*Math.ceil((c-t)/n):c}return{length:n,max:t,min:e,constrain:o,reachedAny:a,reachedMax:i,reachedMin:r,removeOffset:s}}function PHe(e,t,n){const{constrain:r}=dx(0,e),i=e+1;let a=o(t);function o(h){return n?po((i+h)%i):r(h)}function s(){return a}function l(h){return a=o(h),f}function c(h){return u().set(s()+h)}function u(){return PHe(e,s(),n)}const f={get:s,set:l,add:c,clone:u};return f}function S7t(e,t,n,r,i,a,o,s,l,c,u,f,h,m,p,A,v,y,x){const{cross:k,direction:S}=e,C=["INPUT","SELECT","TEXTAREA"],N={passive:!1},E=xE(),D=xE(),T=dx(50,225).constrain(m.measure(20)),P={mouse:300,touch:400},O={mouse:500,touch:600},B=p?43:25;let M=!1,$=0,U=0,j=!1,V=!1,Q=!1,X=!1;function Z(J){if(!x)return;function Se(we){(uL(x)||x(J,we))&&re(we)}const be=t;E.add(be,"dragstart",we=>we.preventDefault(),N).add(be,"touchmove",()=>{},N).add(be,"touchend",()=>{}).add(be,"touchstart",Se).add(be,"mousedown",Se).add(be,"touchcancel",de).add(be,"contextmenu",de).add(be,"click",he,!0)}function le(){E.clear(),D.clear()}function H(){const J=X?n:t;D.add(J,"touchmove",ne,N).add(J,"touchend",de).add(J,"mousemove",ne,N).add(J,"mouseup",de)}function G(J){const Se=J.nodeName||"";return C.includes(Se)}function W(){return(p?O:P)[X?"mouse":"touch"]}function te(J,Se){const be=f.add(Kie(J)*-1),we=u.byDistance(J,!p).distance;return p||po(J)<T?we:v&&Se?we*.5:u.byIndex(be.get(),0).distance}function re(J){const Se=cX(J,r);X=Se,Q=p&&Se&&!J.buttons&&M,M=x2(i.get(),o.get())>=2,!(Se&&J.button!==0)&&(G(J.target)||(j=!0,a.pointerDown(J),c.useFriction(0).useDuration(0),i.set(o),H(),$=a.readPoint(J),U=a.readPoint(J,k),h.emit("pointerDown")))}function ne(J){if(!cX(J,r)&&J.touches.length>=2)return de(J);const be=a.readPoint(J),we=a.readPoint(J,k),me=x2(be,$),K=x2(we,U);if(!V&&!X&&(!J.cancelable||(V=me>K,!V)))return de(J);const ie=a.pointerMove(J);me>A&&(Q=!0),c.useFriction(.3).useDuration(.75),s.start(),i.add(S(ie)),J.preventDefault()}function de(J){const be=u.byDistance(0,!1).index!==f.get(),we=a.pointerUp(J)*W(),me=te(S(we),be),K=y7t(we,me),ie=B-10*K,ce=y+K/50;V=!1,j=!1,D.clear(),c.useDuration(ie).useFriction(ce),l.distance(me,!p),X=!1,h.emit("pointerUp")}function he(J){Q&&(J.stopPropagation(),J.preventDefault(),Q=!1)}function pe(){return j}return{init:Z,destroy:le,pointerDown:pe}}function C7t(e,t){let r,i;function a(f){return f.timeStamp}function o(f,h){const p=`client${(h||e.scroll)==="x"?"X":"Y"}`;return(cX(f,t)?f:f.touches[0])[p]}function s(f){return r=f,i=f,o(f)}function l(f){const h=o(f)-o(i),m=a(f)-a(r)>170;return i=f,m&&(r=f),h}function c(f){if(!r||!i)return 0;const h=o(i)-o(r),m=a(f)-a(r),p=a(f)-a(i)>170,A=h/m;return m&&!p&&po(A)>.1?A:0}return{pointerDown:s,pointerMove:l,pointerUp:c,readPoint:o}}function _7t(){function e(n){const{offsetTop:r,offsetLeft:i,offsetWidth:a,offsetHeight:o}=n;return{top:r,right:i+a,bottom:r+o,left:i,width:a,height:o}}return{measure:e}}function N7t(e){function t(r){return e*(r/100)}return{measure:t}}function E7t(e,t,n,r,i,a,o){const s=[e].concat(r);let l,c,u=[],f=!1;function h(v){return i.measureSize(o.measure(v))}function m(v){if(!a)return;c=h(e),u=r.map(h);function y(x){for(const k of x){if(f)return;const S=k.target===e,C=r.indexOf(k.target),N=S?c:u[C],E=h(S?e:r[C]);if(po(E-N)>=.5){v.reInit(),t.emit("resize");break}}}l=new ResizeObserver(x=>{(uL(a)||a(v,x))&&y(x)}),n.requestAnimationFrame(()=>{s.forEach(x=>l.observe(x))})}function p(){f=!0,l&&l.disconnect()}return{init:m,destroy:p}}function F7t(e,t,n,r,i,a){let o=0,s=0,l=i,c=a,u=e.get(),f=0;function h(){const N=r.get()-e.get(),E=!l;let D=0;return E?(o=0,n.set(r),e.set(r),D=N):(n.set(e),o+=N/l,o*=c,u+=o,e.add(o),D=u-f),s=Kie(D),f=u,C}function m(){const N=r.get()-t.get();return po(N)<.001}function p(){return l}function A(){return s}function v(){return o}function y(){return k(i)}function x(){return S(a)}function k(N){return l=N,C}function S(N){return c=N,C}const C={direction:A,duration:p,velocity:v,seek:h,settled:m,useBaseFriction:x,useBaseDuration:y,useFriction:S,useDuration:k};return C}function D7t(e,t,n,r,i){const a=i.measure(10),o=i.measure(50),s=dx(.1,.99);let l=!1;function c(){return!(l||!e.reachedAny(n.get())||!e.reachedAny(t.get()))}function u(m){if(!c())return;const p=e.reachedMin(t.get())?"min":"max",A=po(e[p]-t.get()),v=n.get()-t.get(),y=s.constrain(A/o);n.subtract(v*y),!m&&po(v)<a&&(n.set(e.constrain(n.get())),r.useDuration(25).useBaseFriction())}function f(m){l=!m}return{shouldConstrain:c,constrain:u,toggleActive:f}}function T7t(e,t,n,r,i){const a=dx(-t+e,0),o=f(),s=u(),l=h();function c(p,A){return x2(p,A)<=1}function u(){const p=o[0],A=Lh(o),v=o.lastIndexOf(p),y=o.indexOf(A)+1;return dx(v,y)}function f(){return n.map((p,A)=>{const{min:v,max:y}=a,x=a.constrain(p),k=!A,S=Yie(n,A);return k?y:S||c(v,x)?v:c(y,x)?y:x}).map(p=>parseFloat(p.toFixed(3)))}function h(){if(t<=e+i)return[a.max];if(r==="keepSnaps")return o;const{min:p,max:A}=s;return o.slice(p,A)}return{snapsContained:l,scrollContainLimit:s}}function O7t(e,t,n){const r=t[0],i=n?r-e:Lh(t);return{limit:dx(i,r)}}function B7t(e,t,n,r){const a=t.min+.1,o=t.max+.1,{reachedMin:s,reachedMax:l}=dx(a,o);function c(h){return h===1?l(n.get()):h===-1?s(n.get()):!1}function u(h){if(!c(h))return;const m=e*(h*-1);r.forEach(p=>p.add(m))}return{loop:u}}function I7t(e){const{max:t,length:n}=e;function r(a){const o=a-t;return n?o/-n:0}return{get:r}}function j7t(e,t,n,r,i){const{startEdge:a,endEdge:o}=e,{groupSlides:s}=i,l=f().map(t.measure),c=h(),u=m();function f(){return s(r).map(A=>Lh(A)[o]-A[0][a]).map(po)}function h(){return r.map(A=>n[a]-A[a]).map(A=>-po(A))}function m(){return s(c).map(A=>A[0]).map((A,v)=>A+l[v])}return{snaps:c,snapsAligned:u}}function P7t(e,t,n,r,i,a){const{groupSlides:o}=i,{min:s,max:l}=r,c=u();function u(){const h=o(a),m=!e||t==="keepSnaps";return n.length===1?[a]:m?h:h.slice(s,l).map((p,A,v)=>{const y=!A,x=Yie(v,A);if(y){const k=Lh(v[0])+1;return Bbe(k)}if(x){const k=TD(a)-Lh(v)[0]+1;return Bbe(k,Lh(v)[0])}return p})}return{slideRegistry:c}}function M7t(e,t,n,r,i){const{reachedAny:a,removeOffset:o,constrain:s}=r;function l(p){return p.concat().sort((A,v)=>po(A)-po(v))[0]}function c(p){const A=e?o(p):s(p),v=t.map((x,k)=>({diff:u(x-A,0),index:k})).sort((x,k)=>po(x.diff)-po(k.diff)),{index:y}=v[0];return{index:y,distance:A}}function u(p,A){const v=[p,p+n,p-n];if(!e)return p;if(!A)return l(v);const y=v.filter(x=>Kie(x)===A);return y.length?l(y):Lh(v)-n}function f(p,A){const v=t[p]-i.get(),y=u(v,A);return{index:p,distance:y}}function h(p,A){const v=i.get()+p,{index:y,distance:x}=c(v),k=!e&&a(v);if(!A||k)return{index:y,distance:p};const S=t[y]-x,C=p+u(S,0);return{index:y,distance:C}}return{byDistance:h,byIndex:f,shortcut:u}}function R7t(e,t,n,r,i,a,o){function s(f){const h=f.distance,m=f.index!==t.get();a.add(h),h&&(r.duration()?e.start():(e.update(),e.render(1),e.update())),m&&(n.set(t.get()),t.set(f.index),o.emit("select"))}function l(f,h){const m=i.byDistance(f,h);s(m)}function c(f,h){const m=t.clone().set(f),p=i.byIndex(m.get(),h);s(p)}return{distance:l,index:c}}function $7t(e,t,n,r,i,a,o,s){const l={passive:!0,capture:!0};let c=0;function u(m){if(!s)return;function p(A){if(new Date().getTime()-c>10)return;o.emit("slideFocusStart"),e.scrollLeft=0;const x=n.findIndex(k=>k.includes(A));Wie(x)&&(i.useDuration(0),r.index(x,0),o.emit("slideFocus"))}a.add(document,"keydown",f,!1),t.forEach((A,v)=>{a.add(A,"focus",y=>{(uL(s)||s(m,y))&&p(v)},l)})}function f(m){m.code==="Tab"&&(c=new Date().getTime())}return{init:u}}function zN(e){let t=e;function n(){return t}function r(l){t=o(l)}function i(l){t+=o(l)}function a(l){t-=o(l)}function o(l){return Wie(l)?l:l.get()}return{get:n,set:r,add:i,subtract:a}}function MHe(e,t){const n=e.scroll==="x"?o:s,r=t.style;let i=null,a=!1;function o(h){return`translate3d(${h}px,0px,0px)`}function s(h){return`translate3d(0px,${h}px,0px)`}function l(h){if(a)return;const m=b7t(e.direction(h));m!==i&&(r.transform=n(m),i=m)}function c(h){a=!h}function u(){a||(r.transform="",t.getAttribute("style")||t.removeAttribute("style"))}return{clear:u,to:l,toggleActive:c}}function L7t(e,t,n,r,i,a,o,s,l){const u=yE(i),f=yE(i).reverse(),h=y().concat(x());function m(E,D){return E.reduce((T,P)=>T-i[P],D)}function p(E,D){return E.reduce((T,P)=>m(T,D)>0?T.concat([P]):T,[])}function A(E){return a.map((D,T)=>({start:D-r[T]+.5+E,end:D+t-.5+E}))}function v(E,D,T){const P=A(D);return E.map(O=>{const B=T?0:-n,M=T?n:0,$=T?"end":"start",U=P[O][$];return{index:O,loopPoint:U,slideLocation:zN(-1),translate:MHe(e,l[O]),target:()=>s.get()>U?B:M}})}function y(){const E=o[0],D=p(f,E);return v(D,n,!1)}function x(){const E=t-o[0]-1,D=p(u,E);return v(D,-n,!0)}function k(){return h.every(({index:E})=>{const D=u.filter(T=>T!==E);return m(D,t)<=.1})}function S(){h.forEach(E=>{const{target:D,translate:T,slideLocation:P}=E,O=D();O!==P.get()&&(T.to(O),P.set(O))})}function C(){h.forEach(E=>E.translate.clear())}return{canLoop:k,clear:C,loop:S,loopPoints:h}}function U7t(e,t,n){let r,i=!1;function a(l){if(!n)return;function c(u){for(const f of u)if(f.type==="childList"){l.reInit(),t.emit("slidesChanged");break}}r=new MutationObserver(u=>{i||(uL(n)||n(l,u))&&c(u)}),r.observe(e,{childList:!0})}function o(){r&&r.disconnect(),i=!0}return{init:a,destroy:o}}function z7t(e,t,n,r){const i={};let a=null,o=null,s,l=!1;function c(){s=new IntersectionObserver(p=>{l||(p.forEach(A=>{const v=t.indexOf(A.target);i[v]=A}),a=null,o=null,n.emit("slidesInView"))},{root:e.parentElement,threshold:r}),t.forEach(p=>s.observe(p))}function u(){s&&s.disconnect(),l=!0}function f(p){return bE(i).reduce((A,v)=>{const y=parseInt(v),{isIntersecting:x}=i[y];return(p&&x||!p&&!x)&&A.push(y),A},[])}function h(p=!0){if(p&&a)return a;if(!p&&o)return o;const A=f(p);return p&&(a=A),p||(o=A),A}return{init:c,destroy:u,get:h}}function H7t(e,t,n,r,i,a){const{measureSize:o,startEdge:s,endEdge:l}=e,c=n[0]&&i,u=p(),f=A(),h=n.map(o),m=v();function p(){if(!c)return 0;const x=n[0];return po(t[s]-x[s])}function A(){if(!c)return 0;const x=a.getComputedStyle(Lh(r));return parseFloat(x.getPropertyValue(`margin-${l}`))}function v(){return n.map((x,k,S)=>{const C=!k,N=Yie(S,k);return C?h[k]+u:N?h[k]+f:S[k+1][s]-x[s]}).map(po)}return{slideSizes:h,slideSizesWithGaps:m,startGap:u,endGap:f}}function V7t(e,t,n,r,i,a,o,s,l){const{startEdge:c,endEdge:u,direction:f}=e,h=Wie(n);function m(y,x){return yE(y).filter(k=>k%x===0).map(k=>y.slice(k,k+x))}function p(y){return y.length?yE(y).reduce((x,k,S)=>{const C=Lh(x)||0,N=C===0,E=k===TD(y),D=i[c]-a[C][c],T=i[c]-a[k][u],P=!r&&N?f(o):0,O=!r&&E?f(s):0,B=po(T-O-(D+P));return S&&B>t+l&&x.push(k),E&&x.push(y.length),x},[]).map((x,k,S)=>{const C=Math.max(S[k-1]||0);return y.slice(C,x)}):[]}function A(y){return h?m(y,n):p(y)}return{groupSlides:A}}function Q7t(e,t,n,r,i,a,o){const{align:s,axis:l,direction:c,startIndex:u,loop:f,duration:h,dragFree:m,dragThreshold:p,inViewThreshold:A,slidesToScroll:v,skipSnaps:y,containScroll:x,watchResize:k,watchSlides:S,watchDrag:C,watchFocus:N}=a,E=2,D=_7t(),T=D.measure(t),P=n.map(D.measure),O=k7t(l,c),B=O.measureSize(T),M=N7t(B),$=x7t(s,B),U=!f&&!!x,j=f||!!x,{slideSizes:V,slideSizesWithGaps:Q,startGap:X,endGap:Z}=H7t(O,T,P,n,j,i),le=V7t(O,B,v,f,T,P,X,Z,E),{snaps:H,snapsAligned:G}=j7t(O,$,T,P,le),W=-Lh(H)+Lh(Q),{snapsContained:te,scrollContainLimit:re}=T7t(B,W,G,x,E),ne=U?te:G,{limit:de}=O7t(W,ne,f),he=PHe(TD(ne),u,f),pe=he.clone(),oe=yE(n),J=({dragHandler:Ae,scrollBody:ee,scrollBounds:se,options:{loop:_e}})=>{_e||se.constrain(Ae.pointerDown()),ee.seek()},Se=({scrollBody:Ae,translate:ee,location:se,offsetLocation:_e,previousLocation:Fe,scrollLooper:Ue,slideLooper:Te,dragHandler:Pe,animation:st,eventHandler:Xe,scrollBounds:it,options:{loop:lt}},Pt)=>{const Ft=Ae.settled(),St=!it.shouldConstrain(),cn=lt?Ft:Ft&&St,fn=cn&&!Pe.pointerDown();fn&&st.stop();const pn=se.get()*Pt+Fe.get()*(1-Pt);_e.set(pn),lt&&(Ue.loop(Ae.direction()),Te.loop()),ee.to(_e.get()),fn&&Xe.emit("settle"),cn||Xe.emit("scroll")},be=w7t(r,i,()=>J(vt),Ae=>Se(vt,Ae)),we=.68,me=ne[he.get()],K=zN(me),ie=zN(me),ce=zN(me),ue=zN(me),ve=F7t(K,ce,ie,ue,h,we),ke=M7t(f,ne,W,de,ue),Re=R7t(be,he,pe,ve,ke,ue,o),Me=I7t(de),$e=xE(),We=z7t(t,n,o,A),{slideRegistry:tt}=P7t(U,x,ne,re,le,oe),ot=$7t(e,n,tt,Re,ve,$e,o,N),vt={ownerDocument:r,ownerWindow:i,eventHandler:o,containerRect:T,slideRects:P,animation:be,axis:O,dragHandler:S7t(O,e,r,i,ue,C7t(O,i),K,be,Re,ve,ke,he,o,M,m,p,y,we,C),eventStore:$e,percentOfView:M,index:he,indexPrevious:pe,limit:de,location:K,offsetLocation:ce,previousLocation:ie,options:a,resizeHandler:E7t(t,o,i,n,O,k,D),scrollBody:ve,scrollBounds:D7t(de,ce,ue,ve,M),scrollLooper:B7t(W,de,ce,[K,ce,ie,ue]),scrollProgress:Me,scrollSnapList:ne.map(Me.get),scrollSnaps:ne,scrollTarget:ke,scrollTo:Re,slideLooper:L7t(O,B,W,V,Q,H,ne,ce,n),slideFocus:ot,slidesHandler:U7t(t,o,S),slidesInView:We,slideIndexes:oe,slideRegistry:tt,slidesToScroll:le,target:ue,translate:MHe(O,t)};return vt}function q7t(){let e={},t;function n(c){t=c}function r(c){return e[c]||[]}function i(c){return r(c).forEach(u=>u(t,c)),l}function a(c,u){return e[c]=r(c).concat([u]),l}function o(c,u){return e[c]=r(c).filter(f=>f!==u),l}function s(){e={}}const l={init:n,emit:i,off:o,on:a,clear:s};return l}const G7t={align:"center",axis:"x",container:null,slides:null,containScroll:"trimSnaps",direction:"ltr",slidesToScroll:1,inViewThreshold:0,breakpoints:{},dragFree:!1,dragThreshold:10,loop:!1,skipSnaps:!1,duration:25,startIndex:0,active:!0,watchDrag:!0,watchResize:!0,watchSlides:!0,watchFocus:!0};function W7t(e){function t(a,o){return jHe(a,o||{})}function n(a){const o=a.breakpoints||{},s=bE(o).filter(l=>e.matchMedia(l).matches).map(l=>o[l]).reduce((l,c)=>t(l,c),{});return t(a,s)}function r(a){return a.map(o=>bE(o.breakpoints||{})).reduce((o,s)=>o.concat(s),[]).map(e.matchMedia)}return{mergeOptions:t,optionsAtMedia:n,optionsMediaQueries:r}}function K7t(e){let t=[];function n(a,o){return t=o.filter(({options:s})=>e.optionsAtMedia(s).active!==!1),t.forEach(s=>s.init(a,e)),o.reduce((s,l)=>Object.assign(s,{[l.name]:l}),{})}function r(){t=t.filter(a=>a.destroy())}return{init:n,destroy:r}}function RM(e,t,n){const r=e.ownerDocument,i=r.defaultView,a=W7t(i),o=K7t(a),s=xE(),l=q7t(),{mergeOptions:c,optionsAtMedia:u,optionsMediaQueries:f}=a,{on:h,off:m,emit:p}=l,A=O;let v=!1,y,x=c(G7t,RM.globalOptions),k=c(x),S=[],C,N,E;function D(){const{container:oe,slides:J}=k;N=(lX(oe)?e.querySelector(oe):oe)||e.children[0];const be=lX(J)?N.querySelectorAll(J):J;E=[].slice.call(be||N.children)}function T(oe){const J=Q7t(e,N,E,r,i,oe,l);if(oe.loop&&!J.slideLooper.canLoop()){const Se=Object.assign({},oe,{loop:!1});return T(Se)}return J}function P(oe,J){v||(x=c(x,oe),k=u(x),S=J||S,D(),y=T(k),f([x,...S.map(({options:Se})=>Se)]).forEach(Se=>s.add(Se,"change",O)),k.active&&(y.translate.to(y.location.get()),y.animation.init(),y.slidesInView.init(),y.slideFocus.init(pe),y.eventHandler.init(pe),y.resizeHandler.init(pe),y.slidesHandler.init(pe),y.options.loop&&y.slideLooper.loop(),N.offsetParent&&E.length&&y.dragHandler.init(pe),C=o.init(pe,S)))}function O(oe,J){const Se=le();B(),P(c({startIndex:Se},oe),J),l.emit("reInit")}function B(){y.dragHandler.destroy(),y.eventStore.clear(),y.translate.clear(),y.slideLooper.clear(),y.resizeHandler.destroy(),y.slidesHandler.destroy(),y.slidesInView.destroy(),y.animation.destroy(),o.destroy(),s.clear()}function M(){v||(v=!0,s.clear(),B(),l.emit("destroy"),l.clear())}function $(oe,J,Se){!k.active||v||(y.scrollBody.useBaseFriction().useDuration(J===!0?0:k.duration),y.scrollTo.index(oe,Se||0))}function U(oe){const J=y.index.add(1).get();$(J,oe,-1)}function j(oe){const J=y.index.add(-1).get();$(J,oe,1)}function V(){return y.index.add(1).get()!==le()}function Q(){return y.index.add(-1).get()!==le()}function X(){return y.scrollSnapList}function Z(){return y.scrollProgress.get(y.offsetLocation.get())}function le(){return y.index.get()}function H(){return y.indexPrevious.get()}function G(){return y.slidesInView.get()}function W(){return y.slidesInView.get(!1)}function te(){return C}function re(){return y}function ne(){return e}function de(){return N}function he(){return E}const pe={canScrollNext:V,canScrollPrev:Q,containerNode:de,internalEngine:re,destroy:M,off:m,on:h,emit:p,plugins:te,previousScrollSnap:H,reInit:A,rootNode:ne,scrollNext:U,scrollPrev:j,scrollProgress:Z,scrollSnapList:X,scrollTo:$,selectedScrollSnap:le,slideNodes:he,slidesInView:G,slidesNotInView:W};return P(t,n),setTimeout(()=>l.emit("init"),0),pe}RM.globalOptions=void 0;function Xie(e={},t=[]){const n=w.useRef(e),r=w.useRef(t),[i,a]=w.useState(),[o,s]=w.useState(),l=w.useCallback(()=>{i&&i.reInit(n.current,r.current)},[i]);return w.useEffect(()=>{Gie(n.current,e)||(n.current=e,l())},[e,l]),w.useEffect(()=>{v7t(r.current,t)||(r.current=t,l())},[t,l]),w.useEffect(()=>{if(g7t()&&o){RM.globalOptions=Xie.globalOptions;const c=RM(o,n.current,r.current);return a(c),()=>c.destroy()}else a(void 0)},[o,a]),[s,i]}Xie.globalOptions=void 0;const Y7t={context:"[@mantine/carousel] Carousel.Slide was rendered outside of Carousel context"},[X7t,Z7t]=Qf(Y7t.context);var J7t=Object.defineProperty,ezt=Object.defineProperties,tzt=Object.getOwnPropertyDescriptors,Ibe=Object.getOwnPropertySymbols,nzt=Object.prototype.hasOwnProperty,rzt=Object.prototype.propertyIsEnumerable,jbe=(e,t,n)=>t in e?J7t(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,X9=(e,t)=>{for(var n in t||(t={}))nzt.call(t,n)&&jbe(e,n,t[n]);if(Ibe)for(var n of Ibe(t))rzt.call(t,n)&&jbe(e,n,t[n]);return e},izt=(e,t)=>ezt(e,tzt(t)),azt=ln((e,{controlSize:t,controlsOffset:n,orientation:r,height:i,includeGapInSize:a,breakpoints:o=[],slideGap:s})=>{const l=r==="horizontal",c=h=>{if(!a)return{};const m=Ot({size:h,sizes:e.spacing});return{[r==="horizontal"?"marginRight":"marginBottom"]:`calc(${m} * -1)`}},f=o.some(h=>typeof h.slideGap<"u"||typeof h.slideSize<"u")?gne(e,o).reduce((h,m)=>{const p="maxWidth"in m?"max-width":"min-width",A=Ot({size:p==="max-width"?m.maxWidth:m.minWidth,sizes:e.breakpoints}),v=typeof m.slideGap>"u"?void 0:Ve(m.slideGap),y=Vh(A)-(p==="max-width"?1:0);return h[`@media (${p}: ${Ve(y)})`]=c(v),h},{}):null;return{root:{position:"relative"},viewport:{height:Ve(i),overflow:"hidden"},container:X9(X9({display:"flex",flexDirection:l?"row":"column",height:Ve(i)},c(s)),f),controls:{position:"absolute",zIndex:1,left:l?0:`calc(50% - ${Ve(t)} / 2)`,right:l?0:void 0,top:l?`calc(50% - ${Ve(t)} / 2)`:0,bottom:l?void 0:0,display:"flex",flexDirection:l?"row":"column",alignItems:"center",justifyContent:"space-between",paddingLeft:l?Ot({size:n,sizes:e.spacing}):void 0,paddingRight:l?Ot({size:n,sizes:e.spacing}):void 0,paddingTop:l?void 0:Ot({size:n,sizes:e.spacing}),paddingBottom:l?void 0:Ot({size:n,sizes:e.spacing}),pointerEvents:"none"},control:izt(X9({display:"flex",justifyContent:"center",alignItems:"center",minWidth:Ve(t),minHeight:Ve(t),borderRadius:Ve(t),pointerEvents:"all",backgroundColor:e.white,color:e.black,boxShadow:e.shadows.md,opacity:e.colorScheme==="dark"?.65:.85,border:`${Ve(1)} solid ${e.colors.gray[3]}`,transition:`opacity 150ms ${e.transitionTimingFunction}`},e.fn.hover({opacity:1})),{"&:active":e.activeStyles}),indicators:{position:"absolute",bottom:l?e.spacing.md:0,top:l?void 0:0,left:l?0:void 0,right:l?0:e.spacing.md,display:"flex",flexDirection:l?"row":"column",justifyContent:"center",gap:Ve(8),pointerEvents:"none"},indicator:{pointerEvents:"all",width:Ve(l?25:5),height:Ve(l?5:25),borderRadius:e.radius.xl,backgroundColor:e.white,boxShadow:e.shadows.sm,opacity:.6,transition:`opacity 150ms ${e.transitionTimingFunction}`,"&[data-active]":{opacity:1}}}}),ozt=Object.defineProperty,Pbe=Object.getOwnPropertySymbols,szt=Object.prototype.hasOwnProperty,lzt=Object.prototype.propertyIsEnumerable,Mbe=(e,t,n)=>t in e?ozt(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,Z9=(e,t)=>{for(var n in t||(t={}))szt.call(t,n)&&Mbe(e,n,t[n]);if(Pbe)for(var n of Pbe(t))lzt.call(t,n)&&Mbe(e,n,t[n]);return e},czt=ln((e,{size:t,gap:n,orientation:r,includeGapInSize:i,breakpoints:a=[]})=>{const o=(c,u)=>{const f=Ot({size:c,sizes:e.spacing}),h=Ve(u),m=i?{[r==="horizontal"?"paddingRight":"paddingBottom"]:f}:{[r==="horizontal"?"marginRight":"marginBottom"]:f};return Z9({flex:`0 0 ${h}`},m)},l=a.some(c=>typeof c.slideGap<"u"||typeof c.slideSize<"u")?gne(e,a).reduce((c,u)=>{const f="maxWidth"in u?"max-width":"min-width",h=Ot({size:f==="max-width"?u.maxWidth:u.minWidth,sizes:e.breakpoints}),m=typeof u.slideGap>"u"?n:u.slideGap,p=Vh(h)-(f==="max-width"?1:0);return c[`@media (${f}: ${Ve(p)})`]=o(m,u.slideSize),c},{}):null;return{slide:Z9(Z9({position:"relative"},o(n,t)),l)}}),uzt=Object.defineProperty,$M=Object.getOwnPropertySymbols,RHe=Object.prototype.hasOwnProperty,$He=Object.prototype.propertyIsEnumerable,Rbe=(e,t,n)=>t in e?uzt(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,dzt=(e,t)=>{for(var n in t||(t={}))RHe.call(t,n)&&Rbe(e,n,t[n]);if($M)for(var n of $M(t))$He.call(t,n)&&Rbe(e,n,t[n]);return e},fzt=(e,t)=>{var n={};for(var r in e)RHe.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&$M)for(var r of $M(e))t.indexOf(r)<0&&$He.call(e,r)&&(n[r]=e[r]);return n};const LHe=w.forwardRef((e,t)=>{var n=e,{children:r,className:i,size:a,gap:o}=n,s=fzt(n,["children","className","size","gap"]);const l=Z7t(),{classes:c,cx:u}=czt({gap:typeof o>"u"?l.slideGap:o,size:typeof a>"u"?l.slideSize:a,orientation:l.orientation,includeGapInSize:l.includeGapInSize,breakpoints:l.breakpoints},{name:"Carousel",classNames:l.classNames,styles:l.styles,unstyled:l.unstyled,variant:l.variant});return L.createElement(Fn,dzt({className:u(c.slide,i),ref:t},s),r)});LHe.displayName="@mantine/carousel/CarouselSlide";function $be({dir:e,orientation:t,direction:n}){return n==="previous"?t==="horizontal"?90*(e==="ltr"?1:-1):-180:t==="horizontal"?90*(e==="ltr"?-1:1):0}var hzt=Object.defineProperty,LM=Object.getOwnPropertySymbols,UHe=Object.prototype.hasOwnProperty,zHe=Object.prototype.propertyIsEnumerable,Lbe=(e,t,n)=>t in e?hzt(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,mzt=(e,t)=>{for(var n in t||(t={}))UHe.call(t,n)&&Lbe(e,n,t[n]);if(LM)for(var n of LM(t))zHe.call(t,n)&&Lbe(e,n,t[n]);return e},pzt=(e,t)=>{var n={};for(var r in e)UHe.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&LM)for(var r of LM(e))t.indexOf(r)<0&&zHe.call(e,r)&&(n[r]=e[r]);return n};const Azt={controlSize:26,controlsOffset:"sm",slideSize:"100%",slideGap:0,orientation:"horizontal",align:"center",slidesToScroll:1,includeGapInSize:!0,draggable:!0,dragFree:!1,loop:!1,speed:10,initialSlide:0,inViewThreshold:0,withControls:!0,withIndicators:!1,skipSnaps:!1,containScroll:"",withKeyboardEvents:!0},Zie=w.forwardRef((e,t)=>{const n=Qt("Carousel",Azt,e),{children:r,className:i,getEmblaApi:a,onNextSlide:o,onPreviousSlide:s,onSlideChange:l,nextControlLabel:c,previousControlLabel:u,controlSize:f,controlsOffset:h,classNames:m,styles:p,unstyled:A,slideSize:v,slideGap:y,orientation:x,height:k,align:S,slidesToScroll:C,includeGapInSize:N,draggable:E,dragFree:D,loop:T,speed:P,initialSlide:O,inViewThreshold:B,withControls:M,withIndicators:$,plugins:U,nextControlIcon:j,previousControlIcon:V,breakpoints:Q,skipSnaps:X,containScroll:Z,withKeyboardEvents:le,variant:H}=n,G=pzt(n,["children","className","getEmblaApi","onNextSlide","onPreviousSlide","onSlideChange","nextControlLabel","previousControlLabel","controlSize","controlsOffset","classNames","styles","unstyled","slideSize","slideGap","orientation","height","align","slidesToScroll","includeGapInSize","draggable","dragFree","loop","speed","initialSlide","inViewThreshold","withControls","withIndicators","plugins","nextControlIcon","previousControlIcon","breakpoints","skipSnaps","containScroll","withKeyboardEvents","variant"]),{classes:W,cx:te,theme:re}=azt({controlSize:f,controlsOffset:h,orientation:x,height:k,includeGapInSize:N,breakpoints:Q,slideGap:y},{name:"Carousel",classNames:m,styles:p,unstyled:A,variant:H}),[ne,de]=Xie({axis:x==="horizontal"?"x":"y",direction:x==="horizontal"?re.dir:void 0,startIndex:O,loop:T,align:S,slidesToScroll:C,draggable:E,dragFree:D,speed:P,inViewThreshold:B,skipSnaps:X,containScroll:Z},U),[he,pe]=w.useState(0),[oe,J]=w.useState(0),Se=w.useCallback(ve=>de&&de.scrollTo(ve),[de]),be=w.useCallback(()=>{if(!de)return;const ve=de.selectedScrollSnap();pe(ve),l?.(ve)},[de,pe]),we=w.useCallback(()=>{de?.scrollPrev(),s?.()},[de]),me=w.useCallback(()=>{de?.scrollNext(),o?.()},[de]),K=w.useCallback(ve=>{le&&(ve.key==="ArrowRight"&&(ve.preventDefault(),me()),ve.key==="ArrowLeft"&&(ve.preventDefault(),we()))},[de]);w.useEffect(()=>{if(de)return a?.(de),be(),J(de.scrollSnapList().length),de.on("select",be),()=>{de.off("select",be)}},[de,C]),w.useEffect(()=>{de&&(de.reInit(),J(de.scrollSnapList().length),pe(ve=>y2(ve,0,w.Children.toArray(r).length-1)))},[w.Children.toArray(r).length,C]);const ie=de?.canScrollPrev()||!1,ce=de?.canScrollNext()||!1,ue=Array(oe).fill(0).map((ve,ke)=>L.createElement(bd,{key:ke,"data-active":ke===he||void 0,className:W.indicator,"aria-hidden":!0,tabIndex:-1,onClick:()=>Se(ke)}));return L.createElement(X7t,{value:{slideGap:y,slideSize:v,embla:de,orientation:x,includeGapInSize:N,breakpoints:Q,classNames:m,styles:p,unstyled:A,variant:H}},L.createElement(Fn,mzt({className:te(W.root,i),ref:t,onKeyDownCapture:K},G),L.createElement("div",{className:W.viewport,ref:ne},L.createElement("div",{className:W.container},r)),$&&L.createElement("div",{className:W.indicators},ue),M&&L.createElement("div",{className:W.controls},L.createElement(bd,{onClick:we,className:W.control,"aria-label":u,"data-inactive":!ie||void 0,tabIndex:ie?0:-1},typeof V<"u"?V:L.createElement(sE,{style:{transform:`rotate(${$be({dir:re.dir,orientation:x,direction:"previous"})}deg)`}})),L.createElement(bd,{onClick:me,className:W.control,"aria-label":c,"data-inactive":!ce||void 0,tabIndex:ce?0:-1},typeof j<"u"?j:L.createElement(sE,{style:{transform:`rotate(${$be({dir:re.dir,orientation:x,direction:"next"})}deg)`}})))))});Zie.Slide=LHe;Zie.displayName="@mantine/carousel/Carousel";const Ube=Zie,gzt=({chargeProps:e,onChange:t})=>{const{additionalDocuments:n}=$t(_3e,e),[r,i]=w.useState(void 0);return d.jsx("div",{className:"container mx-auto text-gray-600 body-font",children:n?.length>0?d.jsxs(d.Fragment,{children:[d.jsx("div",{className:"flex flex-wrap",children:d.jsx(Ube,{sx:{maxWidth:320},mx:"auto",align:"center",withControls:n.length>1,slideGap:0,withIndicators:!0,className:"[&>*>.mantine-Carousel-indicator]:bg-gray-500",children:n.map(a=>d.jsx(Ube.Slide,{children:d.jsxs("div",{className:"flex flex-col items-center",children:[d.jsx("h2",{className:"text-gray-900 text-base font-medium",children:"documentType"in a?a.documentType:"Unprocessed"}),d.jsx("button",{className:"mx-10",onClick:()=>i(a.id),children:d.jsx("div",{className:"flex rounded-lg h-full bg-gray-100 p-2 m-2 flex-col",children:d.jsx(oC,{src:a.image?.toString(),withPlaceholder:!0})})})]})},a.id))})}),d.jsx(ZWe,{documentId:r,onDone:()=>i(void 0),onChange:t})]}):d.jsx(MY,{color:"red",children:"No Documents Related"})})};/**
672
672
  * table-core
673
673
  *
674
674
  * Copyright (c) TanStack
@@ -812,7 +812,7 @@ T* `):Y.join(` Tj
812
812
  endobj\r
813
813
  `},n.outline.count_r=function(r,i){for(var a=0;a<i.children.length;a++)r.count++,this.count_r(r,i.children[a]);return r.count}}])})(Wn.API),(function(e){var t=[192,193,194,195,196,197,198,199];e.processJPEG=function(n,r,i,a,o,s){var l,c=this.decode.DCT_DECODE,u=null;if(typeof n=="string"||this.__addimage__.isArrayBuffer(n)||this.__addimage__.isArrayBufferView(n)){switch(n=o||n,n=this.__addimage__.isArrayBuffer(n)?new Uint8Array(n):n,l=(function(f){for(var h,m=256*f.charCodeAt(4)+f.charCodeAt(5),p=f.length,A={width:0,height:0,numcomponents:1},v=4;v<p;v+=2){if(v+=m,t.indexOf(f.charCodeAt(v+1))!==-1){h=256*f.charCodeAt(v+5)+f.charCodeAt(v+6),A={width:256*f.charCodeAt(v+7)+f.charCodeAt(v+8),height:h,numcomponents:f.charCodeAt(v+9)};break}m=256*f.charCodeAt(v+2)+f.charCodeAt(v+3)}return A})(n=this.__addimage__.isArrayBufferView(n)?this.__addimage__.arrayBufferToBinaryString(n):n),l.numcomponents){case 1:s=this.color_spaces.DEVICE_GRAY;break;case 4:s=this.color_spaces.DEVICE_CMYK;break;case 3:s=this.color_spaces.DEVICE_RGB}u={data:n,width:l.width,height:l.height,colorSpace:s,bitsPerComponent:8,filter:c,index:r,alias:i}}return u}})(Wn.API),Wn.API.processPNG=function(e,t,n,r){if(this.__addimage__.isArrayBuffer(e)&&(e=new Uint8Array(e)),this.__addimage__.isArrayBufferView(e)){var i,a=bZt(e,{checkCrc:!0}),o=a.width,s=a.height,l=a.channels,c=a.palette,u=a.depth;i=c&&l===1?(function(E){for(var D=E.width,T=E.height,P=E.data,O=E.palette,B=E.depth,M=!1,$=[],U=[],j=void 0,V=!1,Q=0,X=0;X<O.length;X++){var Z=t1e(O[X],4),le=Z[0],H=Z[1],G=Z[2],W=Z[3];$.push(le,H,G),W!=null&&(W===0?(Q++,U.length<1&&U.push(X)):W<255&&(V=!0))}if(V||Q>1){M=!0,U=void 0;var te=D*T;j=new Uint8Array(te);for(var re=new DataView(P.buffer),ne=0;ne<te;ne++){var de=KH(re,ne,B),he=t1e(O[de],4)[3];j[ne]=he}}return{colorSpace:"Indexed",colorsPerPixel:1,colorBytes:P,alphaBytes:j,needSMask:M,palette:$,mask:U}})(a):l===2||l===4?(function(E){for(var D=E.data,T=E.width,P=E.height,O=E.channels,B=E.depth,M=O===2?"DeviceGray":"DeviceRGB",$=O-1,U=T*P,j=$,V=U*j,Q=1*U,X=Math.ceil(V*B/8),Z=Math.ceil(Q*B/8),le=new Uint8Array(X),H=new Uint8Array(Z),G=new DataView(D.buffer),W=new DataView(le.buffer),te=new DataView(H.buffer),re=!1,ne=0;ne<U;ne++){for(var de=ne*O,he=0;he<j;he++)owe(W,KH(G,de+he,B),ne*j+he,B);var pe=KH(G,de+j,B);pe<(1<<B)-1&&(re=!0),owe(te,pe,1*ne,B)}return{colorSpace:M,colorsPerPixel:$,colorBytes:le,alphaBytes:H,needSMask:re}})(a):(function(E){var D=E.data,T=E.channels===1?"DeviceGray":"DeviceRGB";return{colorSpace:T,colorsPerPixel:T==="DeviceGray"?1:3,colorBytes:D instanceof Uint8Array?D:new Uint8Array(D.buffer),needSMask:!1}})(a);var f,h,m,p=i,A=p.colorSpace,v=p.colorsPerPixel,y=p.colorBytes,x=p.alphaBytes,k=p.needSMask,S=p.palette,C=p.mask,N=null;return r!==Wn.API.image_compression.NONE&&typeof qX=="function"?(N=(function(E){var D;switch(E){case Wn.API.image_compression.FAST:D=11;break;case Wn.API.image_compression.MEDIUM:D=13;break;case Wn.API.image_compression.SLOW:D=14;break;default:D=12}return D})(r),f=this.decode.FLATE_DECODE,h="/Predictor ".concat(N," "),e=twe(y,o*v,v,r),k&&(m=twe(x,o,1,r))):(f=void 0,h="",e=y,k&&(m=x)),h+="/Colors ".concat(v," /BitsPerComponent ").concat(u," /Columns ").concat(o),(this.__addimage__.isArrayBuffer(e)||this.__addimage__.isArrayBufferView(e))&&(e=this.__addimage__.arrayBufferToBinaryString(e)),(m&&this.__addimage__.isArrayBuffer(m)||this.__addimage__.isArrayBufferView(m))&&(m=this.__addimage__.arrayBufferToBinaryString(m)),{alias:n,data:e,index:t,filter:f,decodeParameters:h,transparency:C,palette:S,sMask:m,predictor:N,width:o,height:s,bitsPerComponent:u,colorSpace:A}}},(function(e){e.processGIF89A=function(t,n,r,i){var a=new UZt(t),o=a.width,s=a.height,l=[];a.decodeAndBlitFrameRGBA(0,l);var c={data:l,width:o,height:s},u=new YH(100).encode(c,100);return e.processJPEG.call(this,u,n,r,i)},e.processGIF87A=e.processGIF89A})(Wn.API),xh.prototype.parseHeader=function(){if(this.fileSize=this.datav.getUint32(this.pos,!0),this.pos+=4,this.reserved=this.datav.getUint32(this.pos,!0),this.pos+=4,this.offset=this.datav.getUint32(this.pos,!0),this.pos+=4,this.headerSize=this.datav.getUint32(this.pos,!0),this.pos+=4,this.width=this.datav.getUint32(this.pos,!0),this.pos+=4,this.height=this.datav.getInt32(this.pos,!0),this.pos+=4,this.planes=this.datav.getUint16(this.pos,!0),this.pos+=2,this.bitPP=this.datav.getUint16(this.pos,!0),this.pos+=2,this.compress=this.datav.getUint32(this.pos,!0),this.pos+=4,this.rawSize=this.datav.getUint32(this.pos,!0),this.pos+=4,this.hr=this.datav.getUint32(this.pos,!0),this.pos+=4,this.vr=this.datav.getUint32(this.pos,!0),this.pos+=4,this.colors=this.datav.getUint32(this.pos,!0),this.pos+=4,this.importantColors=this.datav.getUint32(this.pos,!0),this.pos+=4,this.bitPP===16&&this.is_with_alpha&&(this.bitPP=15),this.bitPP<15){var e=this.colors===0?1<<this.bitPP:this.colors;this.palette=new Array(e);for(var t=0;t<e;t++){var n=this.datav.getUint8(this.pos++,!0),r=this.datav.getUint8(this.pos++,!0),i=this.datav.getUint8(this.pos++,!0),a=this.datav.getUint8(this.pos++,!0);this.palette[t]={red:i,green:r,blue:n,quad:a}}}this.height<0&&(this.height*=-1,this.bottom_up=!1)},xh.prototype.parseBGR=function(){this.pos=this.offset;try{var e="bit"+this.bitPP,t=this.width*this.height*4;this.data=new Uint8Array(t),this[e]()}catch(n){ma.log("bit decode error:"+n)}},xh.prototype.bit1=function(){var e,t=Math.ceil(this.width/8),n=t%4;for(e=this.height-1;e>=0;e--){for(var r=this.bottom_up?e:this.height-1-e,i=0;i<t;i++)for(var a=this.datav.getUint8(this.pos++,!0),o=r*this.width*4+8*i*4,s=0;s<8&&8*i+s<this.width;s++){var l=this.palette[a>>7-s&1];this.data[o+4*s]=l.blue,this.data[o+4*s+1]=l.green,this.data[o+4*s+2]=l.red,this.data[o+4*s+3]=255}n!==0&&(this.pos+=4-n)}},xh.prototype.bit4=function(){for(var e=Math.ceil(this.width/2),t=e%4,n=this.height-1;n>=0;n--){for(var r=this.bottom_up?n:this.height-1-n,i=0;i<e;i++){var a=this.datav.getUint8(this.pos++,!0),o=r*this.width*4+2*i*4,s=a>>4,l=15&a,c=this.palette[s];if(this.data[o]=c.blue,this.data[o+1]=c.green,this.data[o+2]=c.red,this.data[o+3]=255,2*i+1>=this.width)break;c=this.palette[l],this.data[o+4]=c.blue,this.data[o+4+1]=c.green,this.data[o+4+2]=c.red,this.data[o+4+3]=255}t!==0&&(this.pos+=4-t)}},xh.prototype.bit8=function(){for(var e=this.width%4,t=this.height-1;t>=0;t--){for(var n=this.bottom_up?t:this.height-1-t,r=0;r<this.width;r++){var i=this.datav.getUint8(this.pos++,!0),a=n*this.width*4+4*r;if(i<this.palette.length){var o=this.palette[i];this.data[a]=o.red,this.data[a+1]=o.green,this.data[a+2]=o.blue,this.data[a+3]=255}else this.data[a]=255,this.data[a+1]=255,this.data[a+2]=255,this.data[a+3]=255}e!==0&&(this.pos+=4-e)}},xh.prototype.bit15=function(){for(var e=this.width%3,t=parseInt("11111",2),n=this.height-1;n>=0;n--){for(var r=this.bottom_up?n:this.height-1-n,i=0;i<this.width;i++){var a=this.datav.getUint16(this.pos,!0);this.pos+=2;var o=(a&t)/t*255|0,s=(a>>5&t)/t*255|0,l=(a>>10&t)/t*255|0,c=a>>15?255:0,u=r*this.width*4+4*i;this.data[u]=l,this.data[u+1]=s,this.data[u+2]=o,this.data[u+3]=c}this.pos+=e}},xh.prototype.bit16=function(){for(var e=this.width%3,t=parseInt("11111",2),n=parseInt("111111",2),r=this.height-1;r>=0;r--){for(var i=this.bottom_up?r:this.height-1-r,a=0;a<this.width;a++){var o=this.datav.getUint16(this.pos,!0);this.pos+=2;var s=(o&t)/t*255|0,l=(o>>5&n)/n*255|0,c=(o>>11)/t*255|0,u=i*this.width*4+4*a;this.data[u]=c,this.data[u+1]=l,this.data[u+2]=s,this.data[u+3]=255}this.pos+=e}},xh.prototype.bit24=function(){for(var e=this.height-1;e>=0;e--){for(var t=this.bottom_up?e:this.height-1-e,n=0;n<this.width;n++){var r=this.datav.getUint8(this.pos++,!0),i=this.datav.getUint8(this.pos++,!0),a=this.datav.getUint8(this.pos++,!0),o=t*this.width*4+4*n;this.data[o]=a,this.data[o+1]=i,this.data[o+2]=r,this.data[o+3]=255}this.pos+=this.width%4}},xh.prototype.bit32=function(){for(var e=this.height-1;e>=0;e--)for(var t=this.bottom_up?e:this.height-1-e,n=0;n<this.width;n++){var r=this.datav.getUint8(this.pos++,!0),i=this.datav.getUint8(this.pos++,!0),a=this.datav.getUint8(this.pos++,!0),o=this.datav.getUint8(this.pos++,!0),s=t*this.width*4+4*n;this.data[s]=a,this.data[s+1]=i,this.data[s+2]=r,this.data[s+3]=o}},xh.prototype.getData=function(){return this.data},(function(e){e.processBMP=function(t,n,r,i){var a=new xh(t,!1),o=a.width,s=a.height,l={data:a.getData(),width:o,height:s},c=new YH(100).encode(l,100);return e.processJPEG.call(this,c,n,r,i)}})(Wn.API),lwe.prototype.getData=function(){return this.data},(function(e){e.processWEBP=function(t,n,r,i){var a=new lwe(t),o=a.width,s=a.height,l={data:a.getData(),width:o,height:s},c=new YH(100).encode(l,100);return e.processJPEG.call(this,c,n,r,i)}})(Wn.API),Wn.API.processRGBA=function(e,t,n){for(var r=e.data,i=r.length,a=new Uint8Array(i/4*3),o=new Uint8Array(i/4),s=0,l=0,c=0;c<i;c+=4){var u=r[c],f=r[c+1],h=r[c+2],m=r[c+3];a[s++]=u,a[s++]=f,a[s++]=h,o[l++]=m}var p=this.__addimage__.arrayBufferToBinaryString(a);return{alpha:this.__addimage__.arrayBufferToBinaryString(o),data:p,index:t,alias:n,colorSpace:"DeviceRGB",bitsPerComponent:8,width:e.width,height:e.height}},Wn.API.setLanguage=function(e){return this.internal.languageSettings===void 0&&(this.internal.languageSettings={},this.internal.languageSettings.isSubscribed=!1),{af:"Afrikaans",sq:"Albanian",ar:"Arabic (Standard)","ar-DZ":"Arabic (Algeria)","ar-BH":"Arabic (Bahrain)","ar-EG":"Arabic (Egypt)","ar-IQ":"Arabic (Iraq)","ar-JO":"Arabic (Jordan)","ar-KW":"Arabic (Kuwait)","ar-LB":"Arabic (Lebanon)","ar-LY":"Arabic (Libya)","ar-MA":"Arabic (Morocco)","ar-OM":"Arabic (Oman)","ar-QA":"Arabic (Qatar)","ar-SA":"Arabic (Saudi Arabia)","ar-SY":"Arabic (Syria)","ar-TN":"Arabic (Tunisia)","ar-AE":"Arabic (U.A.E.)","ar-YE":"Arabic (Yemen)",an:"Aragonese",hy:"Armenian",as:"Assamese",ast:"Asturian",az:"Azerbaijani",eu:"Basque",be:"Belarusian",bn:"Bengali",bs:"Bosnian",br:"Breton",bg:"Bulgarian",my:"Burmese",ca:"Catalan",ch:"Chamorro",ce:"Chechen",zh:"Chinese","zh-HK":"Chinese (Hong Kong)","zh-CN":"Chinese (PRC)","zh-SG":"Chinese (Singapore)","zh-TW":"Chinese (Taiwan)",cv:"Chuvash",co:"Corsican",cr:"Cree",hr:"Croatian",cs:"Czech",da:"Danish",nl:"Dutch (Standard)","nl-BE":"Dutch (Belgian)",en:"English","en-AU":"English (Australia)","en-BZ":"English (Belize)","en-CA":"English (Canada)","en-IE":"English (Ireland)","en-JM":"English (Jamaica)","en-NZ":"English (New Zealand)","en-PH":"English (Philippines)","en-ZA":"English (South Africa)","en-TT":"English (Trinidad & Tobago)","en-GB":"English (United Kingdom)","en-US":"English (United States)","en-ZW":"English (Zimbabwe)",eo:"Esperanto",et:"Estonian",fo:"Faeroese",fj:"Fijian",fi:"Finnish",fr:"French (Standard)","fr-BE":"French (Belgium)","fr-CA":"French (Canada)","fr-FR":"French (France)","fr-LU":"French (Luxembourg)","fr-MC":"French (Monaco)","fr-CH":"French (Switzerland)",fy:"Frisian",fur:"Friulian",gd:"Gaelic (Scots)","gd-IE":"Gaelic (Irish)",gl:"Galacian",ka:"Georgian",de:"German (Standard)","de-AT":"German (Austria)","de-DE":"German (Germany)","de-LI":"German (Liechtenstein)","de-LU":"German (Luxembourg)","de-CH":"German (Switzerland)",el:"Greek",gu:"Gujurati",ht:"Haitian",he:"Hebrew",hi:"Hindi",hu:"Hungarian",is:"Icelandic",id:"Indonesian",iu:"Inuktitut",ga:"Irish",it:"Italian (Standard)","it-CH":"Italian (Switzerland)",ja:"Japanese",kn:"Kannada",ks:"Kashmiri",kk:"Kazakh",km:"Khmer",ky:"Kirghiz",tlh:"Klingon",ko:"Korean","ko-KP":"Korean (North Korea)","ko-KR":"Korean (South Korea)",la:"Latin",lv:"Latvian",lt:"Lithuanian",lb:"Luxembourgish",mk:"North Macedonia",ms:"Malay",ml:"Malayalam",mt:"Maltese",mi:"Maori",mr:"Marathi",mo:"Moldavian",nv:"Navajo",ng:"Ndonga",ne:"Nepali",no:"Norwegian",nb:"Norwegian (Bokmal)",nn:"Norwegian (Nynorsk)",oc:"Occitan",or:"Oriya",om:"Oromo",fa:"Persian","fa-IR":"Persian/Iran",pl:"Polish",pt:"Portuguese","pt-BR":"Portuguese (Brazil)",pa:"Punjabi","pa-IN":"Punjabi (India)","pa-PK":"Punjabi (Pakistan)",qu:"Quechua",rm:"Rhaeto-Romanic",ro:"Romanian","ro-MO":"Romanian (Moldavia)",ru:"Russian","ru-MO":"Russian (Moldavia)",sz:"Sami (Lappish)",sg:"Sango",sa:"Sanskrit",sc:"Sardinian",sd:"Sindhi",si:"Singhalese",sr:"Serbian",sk:"Slovak",sl:"Slovenian",so:"Somani",sb:"Sorbian",es:"Spanish","es-AR":"Spanish (Argentina)","es-BO":"Spanish (Bolivia)","es-CL":"Spanish (Chile)","es-CO":"Spanish (Colombia)","es-CR":"Spanish (Costa Rica)","es-DO":"Spanish (Dominican Republic)","es-EC":"Spanish (Ecuador)","es-SV":"Spanish (El Salvador)","es-GT":"Spanish (Guatemala)","es-HN":"Spanish (Honduras)","es-MX":"Spanish (Mexico)","es-NI":"Spanish (Nicaragua)","es-PA":"Spanish (Panama)","es-PY":"Spanish (Paraguay)","es-PE":"Spanish (Peru)","es-PR":"Spanish (Puerto Rico)","es-ES":"Spanish (Spain)","es-UY":"Spanish (Uruguay)","es-VE":"Spanish (Venezuela)",sx:"Sutu",sw:"Swahili",sv:"Swedish","sv-FI":"Swedish (Finland)","sv-SV":"Swedish (Sweden)",ta:"Tamil",tt:"Tatar",te:"Teluga",th:"Thai",tig:"Tigre",ts:"Tsonga",tn:"Tswana",tr:"Turkish",tk:"Turkmen",uk:"Ukrainian",hsb:"Upper Sorbian",ur:"Urdu",ve:"Venda",vi:"Vietnamese",vo:"Volapuk",wa:"Walloon",cy:"Welsh",xh:"Xhosa",ji:"Yiddish",zu:"Zulu"}[e]!==void 0&&(this.internal.languageSettings.languageCode=e,this.internal.languageSettings.isSubscribed===!1&&(this.internal.events.subscribe("putCatalog",function(){this.internal.write("/Lang ("+this.internal.languageSettings.languageCode+")")}),this.internal.languageSettings.isSubscribed=!0)),this},gw=Wn.API,gB=gw.getCharWidthsArray=function(e,t){var n,r,i=(t=t||{}).font||this.internal.getFont(),a=t.fontSize||this.internal.getFontSize(),o=t.charSpace||this.internal.getCharSpace(),s=t.widths?t.widths:i.metadata.Unicode.widths,l=s.fof?s.fof:1,c=t.kerning?t.kerning:i.metadata.Unicode.kerning,u=c.fof?c.fof:1,f=t.doKerning!==!1,h=0,m=e.length,p=0,A=s[0]||l,v=[];for(n=0;n<m;n++)r=e.charCodeAt(n),typeof i.metadata.widthOfString=="function"?v.push((i.metadata.widthOfGlyph(i.metadata.characterToGlyph(r))+o*(1e3/a)||0)/1e3):(h=f&&Zi(c[r])==="object"&&!isNaN(parseInt(c[r][p],10))?c[r][p]/u:0,v.push((s[r]||A)/l+h)),p=r;return v},Z1e=gw.getStringUnitWidth=function(e,t){var n=(t=t||{}).fontSize||this.internal.getFontSize(),r=t.font||this.internal.getFont(),i=t.charSpace||this.internal.getCharSpace();return gw.processArabic&&(e=gw.processArabic(e)),typeof r.metadata.widthOfString=="function"?r.metadata.widthOfString(e,n,i)/n:gB.apply(this,arguments).reduce(function(a,o){return a+o},0)},J1e=function(e,t,n,r){for(var i=[],a=0,o=e.length,s=0;a!==o&&s+t[a]<n;)s+=t[a],a++;i.push(e.slice(0,a));var l=a;for(s=0;a!==o;)s+t[a]>r&&(i.push(e.slice(l,a)),s=0,l=a),s+=t[a],a++;return l!==a&&i.push(e.slice(l,a)),i},ewe=function(e,t,n){n||(n={});var r,i,a,o,s,l,c,u=[],f=[u],h=n.textIndent||0,m=0,p=0,A=e.split(" "),v=gB.apply(this,[" ",n])[0];if(l=n.lineIndent===-1?A[0].length+2:n.lineIndent||0){var y=Array(l).join(" "),x=[];A.map(function(S){(S=S.split(/\s*\n/)).length>1?x=x.concat(S.map(function(C,N){return(N&&C.length?`
814
814
  `:"")+C})):x.push(S[0])}),A=x,l=Z1e.apply(this,[y,n])}for(a=0,o=A.length;a<o;a++){var k=0;if(r=A[a],l&&r[0]==`
815
- `&&(r=r.substr(1),k=1),h+m+(p=(i=gB.apply(this,[r,n])).reduce(function(S,C){return S+C},0))>t||k){if(p>t){for(s=J1e.apply(this,[r,i,t-(h+m),t]),u.push(s.shift()),u=[s.pop()];s.length;)f.push([s.shift()]);p=i.slice(r.length-(u[0]?u[0].length:0)).reduce(function(S,C){return S+C},0)}else u=[r];f.push(u),h=p+l,m=v}else u.push(r),h+=m+p,m=v}return c=l?function(S,C){return(C?y:"")+S.join(" ")}:function(S){return S.join(" ")},f.map(c)},gw.splitTextToSize=function(e,t,n){var r,i=(n=n||{}).fontSize||this.internal.getFontSize(),a=(function(u){if(u.widths&&u.kerning)return{widths:u.widths,kerning:u.kerning};var f=this.internal.getFont(u.fontName,u.fontStyle),h="Unicode";return f.metadata[h]?{widths:f.metadata[h].widths||{0:1},kerning:f.metadata[h].kerning||{}}:{font:f.metadata,fontSize:this.internal.getFontSize(),charSpace:this.internal.getCharSpace()}}).call(this,n);r=Array.isArray(e)?e:String(e).split(/\r?\n/);var o=1*this.internal.scaleFactor*t/i;a.textIndent=n.textIndent?1*n.textIndent*this.internal.scaleFactor/i:0,a.lineIndent=n.lineIndent;var s,l,c=[];for(s=0,l=r.length;s<l;s++)c=c.concat(ewe.apply(this,[r[s],o,a]));return c},(function(e){e.__fontmetrics__=e.__fontmetrics__||{};for(var t="0123456789abcdef",n="klmnopqrstuvwxyz",r={},i={},a=0;a<16;a++)r[n[a]]=t[a],i[t[a]]=n[a];var o=function(h){return"0x"+parseInt(h,10).toString(16)},s=e.__fontmetrics__.compress=function(h){var m,p,A,v,y=["{"];for(var x in h){if(m=h[x],isNaN(parseInt(x,10))?p="'"+x+"'":(x=parseInt(x,10),p=(p=o(x).slice(2)).slice(0,-1)+i[p.slice(-1)]),typeof m=="number")m<0?(A=o(m).slice(3),v="-"):(A=o(m).slice(2),v=""),A=v+A.slice(0,-1)+i[A.slice(-1)];else{if(Zi(m)!=="object")throw new Error("Don't know what to do with value type "+Zi(m)+".");A=s(m)}y.push(p+A)}return y.push("}"),y.join("")},l=e.__fontmetrics__.uncompress=function(h){if(typeof h!="string")throw new Error("Invalid argument passed to uncompress.");for(var m,p,A,v,y={},x=1,k=y,S=[],C="",N="",E=h.length-1,D=1;D<E;D+=1)(v=h[D])=="'"?m?(A=m.join(""),m=void 0):m=[]:m?m.push(v):v=="{"?(S.push([k,A]),k={},A=void 0):v=="}"?((p=S.pop())[0][p[1]]=k,A=void 0,k=p[0]):v=="-"?x=-1:A===void 0?r.hasOwnProperty(v)?(C+=r[v],A=parseInt(C,16)*x,x=1,C=""):C+=v:r.hasOwnProperty(v)?(N+=r[v],k[A]=parseInt(N,16)*x,x=1,A=void 0,N=""):N+=v;return y},c={codePages:["WinAnsiEncoding"],WinAnsiEncoding:l("{19m8n201n9q201o9r201s9l201t9m201u8m201w9n201x9o201y8o202k8q202l8r202m9p202q8p20aw8k203k8t203t8v203u9v2cq8s212m9t15m8w15n9w2dw9s16k8u16l9u17s9z17x8y17y9y}")},u={Unicode:{Courier:c,"Courier-Bold":c,"Courier-BoldOblique":c,"Courier-Oblique":c,Helvetica:c,"Helvetica-Bold":c,"Helvetica-BoldOblique":c,"Helvetica-Oblique":c,"Times-Roman":c,"Times-Bold":c,"Times-BoldItalic":c,"Times-Italic":c}},f={Unicode:{"Courier-Oblique":l("{'widths'{k3w'fof'6o}'kerning'{'fof'-6o}}"),"Times-BoldItalic":l("{'widths'{k3o2q4ycx2r201n3m201o6o201s2l201t2l201u2l201w3m201x3m201y3m2k1t2l2r202m2n2n3m2o3m2p5n202q6o2r1w2s2l2t2l2u3m2v3t2w1t2x2l2y1t2z1w3k3m3l3m3m3m3n3m3o3m3p3m3q3m3r3m3s3m203t2l203u2l3v2l3w3t3x3t3y3t3z3m4k5n4l4m4m4m4n4m4o4s4p4m4q4m4r4s4s4y4t2r4u3m4v4m4w3x4x5t4y4s4z4s5k3x5l4s5m4m5n3r5o3x5p4s5q4m5r5t5s4m5t3x5u3x5v2l5w1w5x2l5y3t5z3m6k2l6l3m6m3m6n2w6o3m6p2w6q2l6r3m6s3r6t1w6u1w6v3m6w1w6x4y6y3r6z3m7k3m7l3m7m2r7n2r7o1w7p3r7q2w7r4m7s3m7t2w7u2r7v2n7w1q7x2n7y3t202l3mcl4mal2ram3man3mao3map3mar3mas2lat4uau1uav3maw3way4uaz2lbk2sbl3t'fof'6obo2lbp3tbq3mbr1tbs2lbu1ybv3mbz3mck4m202k3mcm4mcn4mco4mcp4mcq5ycr4mcs4mct4mcu4mcv4mcw2r2m3rcy2rcz2rdl4sdm4sdn4sdo4sdp4sdq4sds4sdt4sdu4sdv4sdw4sdz3mek3mel3mem3men3meo3mep3meq4ser2wes2wet2weu2wev2wew1wex1wey1wez1wfl3rfm3mfn3mfo3mfp3mfq3mfr3tfs3mft3rfu3rfv3rfw3rfz2w203k6o212m6o2dw2l2cq2l3t3m3u2l17s3x19m3m}'kerning'{cl{4qu5kt5qt5rs17ss5ts}201s{201ss}201t{cks4lscmscnscoscpscls2wu2yu201ts}201x{2wu2yu}2k{201ts}2w{4qx5kx5ou5qx5rs17su5tu}2x{17su5tu5ou}2y{4qx5kx5ou5qx5rs17ss5ts}'fof'-6ofn{17sw5tw5ou5qw5rs}7t{cksclscmscnscoscps4ls}3u{17su5tu5os5qs}3v{17su5tu5os5qs}7p{17su5tu}ck{4qu5kt5qt5rs17ss5ts}4l{4qu5kt5qt5rs17ss5ts}cm{4qu5kt5qt5rs17ss5ts}cn{4qu5kt5qt5rs17ss5ts}co{4qu5kt5qt5rs17ss5ts}cp{4qu5kt5qt5rs17ss5ts}6l{4qu5ou5qw5rt17su5tu}5q{ckuclucmucnucoucpu4lu}5r{ckuclucmucnucoucpu4lu}7q{cksclscmscnscoscps4ls}6p{4qu5ou5qw5rt17sw5tw}ek{4qu5ou5qw5rt17su5tu}el{4qu5ou5qw5rt17su5tu}em{4qu5ou5qw5rt17su5tu}en{4qu5ou5qw5rt17su5tu}eo{4qu5ou5qw5rt17su5tu}ep{4qu5ou5qw5rt17su5tu}es{17ss5ts5qs4qu}et{4qu5ou5qw5rt17sw5tw}eu{4qu5ou5qw5rt17ss5ts}ev{17ss5ts5qs4qu}6z{17sw5tw5ou5qw5rs}fm{17sw5tw5ou5qw5rs}7n{201ts}fo{17sw5tw5ou5qw5rs}fp{17sw5tw5ou5qw5rs}fq{17sw5tw5ou5qw5rs}7r{cksclscmscnscoscps4ls}fs{17sw5tw5ou5qw5rs}ft{17su5tu}fu{17su5tu}fv{17su5tu}fw{17su5tu}fz{cksclscmscnscoscps4ls}}}"),"Helvetica-Bold":l("{'widths'{k3s2q4scx1w201n3r201o6o201s1w201t1w201u1w201w3m201x3m201y3m2k1w2l2l202m2n2n3r2o3r2p5t202q6o2r1s2s2l2t2l2u2r2v3u2w1w2x2l2y1w2z1w3k3r3l3r3m3r3n3r3o3r3p3r3q3r3r3r3s3r203t2l203u2l3v2l3w3u3x3u3y3u3z3x4k6l4l4s4m4s4n4s4o4s4p4m4q3x4r4y4s4s4t1w4u3r4v4s4w3x4x5n4y4s4z4y5k4m5l4y5m4s5n4m5o3x5p4s5q4m5r5y5s4m5t4m5u3x5v2l5w1w5x2l5y3u5z3r6k2l6l3r6m3x6n3r6o3x6p3r6q2l6r3x6s3x6t1w6u1w6v3r6w1w6x5t6y3x6z3x7k3x7l3x7m2r7n3r7o2l7p3x7q3r7r4y7s3r7t3r7u3m7v2r7w1w7x2r7y3u202l3rcl4sal2lam3ran3rao3rap3rar3ras2lat4tau2pav3raw3uay4taz2lbk2sbl3u'fof'6obo2lbp3xbq3rbr1wbs2lbu2obv3rbz3xck4s202k3rcm4scn4sco4scp4scq6ocr4scs4mct4mcu4mcv4mcw1w2m2zcy1wcz1wdl4sdm4ydn4ydo4ydp4ydq4yds4ydt4sdu4sdv4sdw4sdz3xek3rel3rem3ren3reo3rep3req5ter3res3ret3reu3rev3rew1wex1wey1wez1wfl3xfm3xfn3xfo3xfp3xfq3xfr3ufs3xft3xfu3xfv3xfw3xfz3r203k6o212m6o2dw2l2cq2l3t3r3u2l17s4m19m3r}'kerning'{cl{4qs5ku5ot5qs17sv5tv}201t{2ww4wy2yw}201w{2ks}201x{2ww4wy2yw}2k{201ts201xs}2w{7qs4qu5kw5os5qw5rs17su5tu7tsfzs}2x{5ow5qs}2y{7qs4qu5kw5os5qw5rs17su5tu7tsfzs}'fof'-6o7p{17su5tu5ot}ck{4qs5ku5ot5qs17sv5tv}4l{4qs5ku5ot5qs17sv5tv}cm{4qs5ku5ot5qs17sv5tv}cn{4qs5ku5ot5qs17sv5tv}co{4qs5ku5ot5qs17sv5tv}cp{4qs5ku5ot5qs17sv5tv}6l{17st5tt5os}17s{2kwclvcmvcnvcovcpv4lv4wwckv}5o{2kucltcmtcntcotcpt4lt4wtckt}5q{2ksclscmscnscoscps4ls4wvcks}5r{2ks4ws}5t{2kwclvcmvcnvcovcpv4lv4wwckv}eo{17st5tt5os}fu{17su5tu5ot}6p{17ss5ts}ek{17st5tt5os}el{17st5tt5os}em{17st5tt5os}en{17st5tt5os}6o{201ts}ep{17st5tt5os}es{17ss5ts}et{17ss5ts}eu{17ss5ts}ev{17ss5ts}6z{17su5tu5os5qt}fm{17su5tu5os5qt}fn{17su5tu5os5qt}fo{17su5tu5os5qt}fp{17su5tu5os5qt}fq{17su5tu5os5qt}fs{17su5tu5os5qt}ft{17su5tu5ot}7m{5os}fv{17su5tu5ot}fw{17su5tu5ot}}}"),Courier:l("{'widths'{k3w'fof'6o}'kerning'{'fof'-6o}}"),"Courier-BoldOblique":l("{'widths'{k3w'fof'6o}'kerning'{'fof'-6o}}"),"Times-Bold":l("{'widths'{k3q2q5ncx2r201n3m201o6o201s2l201t2l201u2l201w3m201x3m201y3m2k1t2l2l202m2n2n3m2o3m2p6o202q6o2r1w2s2l2t2l2u3m2v3t2w1t2x2l2y1t2z1w3k3m3l3m3m3m3n3m3o3m3p3m3q3m3r3m3s3m203t2l203u2l3v2l3w3t3x3t3y3t3z3m4k5x4l4s4m4m4n4s4o4s4p4m4q3x4r4y4s4y4t2r4u3m4v4y4w4m4x5y4y4s4z4y5k3x5l4y5m4s5n3r5o4m5p4s5q4s5r6o5s4s5t4s5u4m5v2l5w1w5x2l5y3u5z3m6k2l6l3m6m3r6n2w6o3r6p2w6q2l6r3m6s3r6t1w6u2l6v3r6w1w6x5n6y3r6z3m7k3r7l3r7m2w7n2r7o2l7p3r7q3m7r4s7s3m7t3m7u2w7v2r7w1q7x2r7y3o202l3mcl4sal2lam3man3mao3map3mar3mas2lat4uau1yav3maw3tay4uaz2lbk2sbl3t'fof'6obo2lbp3rbr1tbs2lbu2lbv3mbz3mck4s202k3mcm4scn4sco4scp4scq6ocr4scs4mct4mcu4mcv4mcw2r2m3rcy2rcz2rdl4sdm4ydn4ydo4ydp4ydq4yds4ydt4sdu4sdv4sdw4sdz3rek3mel3mem3men3meo3mep3meq4ser2wes2wet2weu2wev2wew1wex1wey1wez1wfl3rfm3mfn3mfo3mfp3mfq3mfr3tfs3mft3rfu3rfv3rfw3rfz3m203k6o212m6o2dw2l2cq2l3t3m3u2l17s4s19m3m}'kerning'{cl{4qt5ks5ot5qy5rw17sv5tv}201t{cks4lscmscnscoscpscls4wv}2k{201ts}2w{4qu5ku7mu5os5qx5ru17su5tu}2x{17su5tu5ou5qs}2y{4qv5kv7mu5ot5qz5ru17su5tu}'fof'-6o7t{cksclscmscnscoscps4ls}3u{17su5tu5os5qu}3v{17su5tu5os5qu}fu{17su5tu5ou5qu}7p{17su5tu5ou5qu}ck{4qt5ks5ot5qy5rw17sv5tv}4l{4qt5ks5ot5qy5rw17sv5tv}cm{4qt5ks5ot5qy5rw17sv5tv}cn{4qt5ks5ot5qy5rw17sv5tv}co{4qt5ks5ot5qy5rw17sv5tv}cp{4qt5ks5ot5qy5rw17sv5tv}6l{17st5tt5ou5qu}17s{ckuclucmucnucoucpu4lu4wu}5o{ckuclucmucnucoucpu4lu4wu}5q{ckzclzcmzcnzcozcpz4lz4wu}5r{ckxclxcmxcnxcoxcpx4lx4wu}5t{ckuclucmucnucoucpu4lu4wu}7q{ckuclucmucnucoucpu4lu}6p{17sw5tw5ou5qu}ek{17st5tt5qu}el{17st5tt5ou5qu}em{17st5tt5qu}en{17st5tt5qu}eo{17st5tt5qu}ep{17st5tt5ou5qu}es{17ss5ts5qu}et{17sw5tw5ou5qu}eu{17sw5tw5ou5qu}ev{17ss5ts5qu}6z{17sw5tw5ou5qu5rs}fm{17sw5tw5ou5qu5rs}fn{17sw5tw5ou5qu5rs}fo{17sw5tw5ou5qu5rs}fp{17sw5tw5ou5qu5rs}fq{17sw5tw5ou5qu5rs}7r{cktcltcmtcntcotcpt4lt5os}fs{17sw5tw5ou5qu5rs}ft{17su5tu5ou5qu}7m{5os}fv{17su5tu5ou5qu}fw{17su5tu5ou5qu}fz{cksclscmscnscoscps4ls}}}"),Symbol:l("{'widths'{k3uaw4r19m3m2k1t2l2l202m2y2n3m2p5n202q6o3k3m2s2l2t2l2v3r2w1t3m3m2y1t2z1wbk2sbl3r'fof'6o3n3m3o3m3p3m3q3m3r3m3s3m3t3m3u1w3v1w3w3r3x3r3y3r3z2wbp3t3l3m5v2l5x2l5z3m2q4yfr3r7v3k7w1o7x3k}'kerning'{'fof'-6o}}"),Helvetica:l("{'widths'{k3p2q4mcx1w201n3r201o6o201s1q201t1q201u1q201w2l201x2l201y2l2k1w2l1w202m2n2n3r2o3r2p5t202q6o2r1n2s2l2t2l2u2r2v3u2w1w2x2l2y1w2z1w3k3r3l3r3m3r3n3r3o3r3p3r3q3r3r3r3s3r203t2l203u2l3v1w3w3u3x3u3y3u3z3r4k6p4l4m4m4m4n4s4o4s4p4m4q3x4r4y4s4s4t1w4u3m4v4m4w3r4x5n4y4s4z4y5k4m5l4y5m4s5n4m5o3x5p4s5q4m5r5y5s4m5t4m5u3x5v1w5w1w5x1w5y2z5z3r6k2l6l3r6m3r6n3m6o3r6p3r6q1w6r3r6s3r6t1q6u1q6v3m6w1q6x5n6y3r6z3r7k3r7l3r7m2l7n3m7o1w7p3r7q3m7r4s7s3m7t3m7u3m7v2l7w1u7x2l7y3u202l3rcl4mal2lam3ran3rao3rap3rar3ras2lat4tau2pav3raw3uay4taz2lbk2sbl3u'fof'6obo2lbp3rbr1wbs2lbu2obv3rbz3xck4m202k3rcm4mcn4mco4mcp4mcq6ocr4scs4mct4mcu4mcv4mcw1w2m2ncy1wcz1wdl4sdm4ydn4ydo4ydp4ydq4yds4ydt4sdu4sdv4sdw4sdz3xek3rel3rem3ren3reo3rep3req5ter3mes3ret3reu3rev3rew1wex1wey1wez1wfl3rfm3rfn3rfo3rfp3rfq3rfr3ufs3xft3rfu3rfv3rfw3rfz3m203k6o212m6o2dw2l2cq2l3t3r3u1w17s4m19m3r}'kerning'{5q{4wv}cl{4qs5kw5ow5qs17sv5tv}201t{2wu4w1k2yu}201x{2wu4wy2yu}17s{2ktclucmucnu4otcpu4lu4wycoucku}2w{7qs4qz5k1m17sy5ow5qx5rsfsu5ty7tufzu}2x{17sy5ty5oy5qs}2y{7qs4qz5k1m17sy5ow5qx5rsfsu5ty7tufzu}'fof'-6o7p{17sv5tv5ow}ck{4qs5kw5ow5qs17sv5tv}4l{4qs5kw5ow5qs17sv5tv}cm{4qs5kw5ow5qs17sv5tv}cn{4qs5kw5ow5qs17sv5tv}co{4qs5kw5ow5qs17sv5tv}cp{4qs5kw5ow5qs17sv5tv}6l{17sy5ty5ow}do{17st5tt}4z{17st5tt}7s{fst}dm{17st5tt}dn{17st5tt}5o{ckwclwcmwcnwcowcpw4lw4wv}dp{17st5tt}dq{17st5tt}7t{5ow}ds{17st5tt}5t{2ktclucmucnu4otcpu4lu4wycoucku}fu{17sv5tv5ow}6p{17sy5ty5ow5qs}ek{17sy5ty5ow}el{17sy5ty5ow}em{17sy5ty5ow}en{5ty}eo{17sy5ty5ow}ep{17sy5ty5ow}es{17sy5ty5qs}et{17sy5ty5ow5qs}eu{17sy5ty5ow5qs}ev{17sy5ty5ow5qs}6z{17sy5ty5ow5qs}fm{17sy5ty5ow5qs}fn{17sy5ty5ow5qs}fo{17sy5ty5ow5qs}fp{17sy5ty5qs}fq{17sy5ty5ow5qs}7r{5ow}fs{17sy5ty5ow5qs}ft{17sv5tv5ow}7m{5ow}fv{17sv5tv5ow}fw{17sv5tv5ow}}}"),"Helvetica-BoldOblique":l("{'widths'{k3s2q4scx1w201n3r201o6o201s1w201t1w201u1w201w3m201x3m201y3m2k1w2l2l202m2n2n3r2o3r2p5t202q6o2r1s2s2l2t2l2u2r2v3u2w1w2x2l2y1w2z1w3k3r3l3r3m3r3n3r3o3r3p3r3q3r3r3r3s3r203t2l203u2l3v2l3w3u3x3u3y3u3z3x4k6l4l4s4m4s4n4s4o4s4p4m4q3x4r4y4s4s4t1w4u3r4v4s4w3x4x5n4y4s4z4y5k4m5l4y5m4s5n4m5o3x5p4s5q4m5r5y5s4m5t4m5u3x5v2l5w1w5x2l5y3u5z3r6k2l6l3r6m3x6n3r6o3x6p3r6q2l6r3x6s3x6t1w6u1w6v3r6w1w6x5t6y3x6z3x7k3x7l3x7m2r7n3r7o2l7p3x7q3r7r4y7s3r7t3r7u3m7v2r7w1w7x2r7y3u202l3rcl4sal2lam3ran3rao3rap3rar3ras2lat4tau2pav3raw3uay4taz2lbk2sbl3u'fof'6obo2lbp3xbq3rbr1wbs2lbu2obv3rbz3xck4s202k3rcm4scn4sco4scp4scq6ocr4scs4mct4mcu4mcv4mcw1w2m2zcy1wcz1wdl4sdm4ydn4ydo4ydp4ydq4yds4ydt4sdu4sdv4sdw4sdz3xek3rel3rem3ren3reo3rep3req5ter3res3ret3reu3rev3rew1wex1wey1wez1wfl3xfm3xfn3xfo3xfp3xfq3xfr3ufs3xft3xfu3xfv3xfw3xfz3r203k6o212m6o2dw2l2cq2l3t3r3u2l17s4m19m3r}'kerning'{cl{4qs5ku5ot5qs17sv5tv}201t{2ww4wy2yw}201w{2ks}201x{2ww4wy2yw}2k{201ts201xs}2w{7qs4qu5kw5os5qw5rs17su5tu7tsfzs}2x{5ow5qs}2y{7qs4qu5kw5os5qw5rs17su5tu7tsfzs}'fof'-6o7p{17su5tu5ot}ck{4qs5ku5ot5qs17sv5tv}4l{4qs5ku5ot5qs17sv5tv}cm{4qs5ku5ot5qs17sv5tv}cn{4qs5ku5ot5qs17sv5tv}co{4qs5ku5ot5qs17sv5tv}cp{4qs5ku5ot5qs17sv5tv}6l{17st5tt5os}17s{2kwclvcmvcnvcovcpv4lv4wwckv}5o{2kucltcmtcntcotcpt4lt4wtckt}5q{2ksclscmscnscoscps4ls4wvcks}5r{2ks4ws}5t{2kwclvcmvcnvcovcpv4lv4wwckv}eo{17st5tt5os}fu{17su5tu5ot}6p{17ss5ts}ek{17st5tt5os}el{17st5tt5os}em{17st5tt5os}en{17st5tt5os}6o{201ts}ep{17st5tt5os}es{17ss5ts}et{17ss5ts}eu{17ss5ts}ev{17ss5ts}6z{17su5tu5os5qt}fm{17su5tu5os5qt}fn{17su5tu5os5qt}fo{17su5tu5os5qt}fp{17su5tu5os5qt}fq{17su5tu5os5qt}fs{17su5tu5os5qt}ft{17su5tu5ot}7m{5os}fv{17su5tu5ot}fw{17su5tu5ot}}}"),ZapfDingbats:l("{'widths'{k4u2k1w'fof'6o}'kerning'{'fof'-6o}}"),"Courier-Bold":l("{'widths'{k3w'fof'6o}'kerning'{'fof'-6o}}"),"Times-Italic":l("{'widths'{k3n2q4ycx2l201n3m201o5t201s2l201t2l201u2l201w3r201x3r201y3r2k1t2l2l202m2n2n3m2o3m2p5n202q5t2r1p2s2l2t2l2u3m2v4n2w1t2x2l2y1t2z1w3k3m3l3m3m3m3n3m3o3m3p3m3q3m3r3m3s3m203t2l203u2l3v2l3w4n3x4n3y4n3z3m4k5w4l3x4m3x4n4m4o4s4p3x4q3x4r4s4s4s4t2l4u2w4v4m4w3r4x5n4y4m4z4s5k3x5l4s5m3x5n3m5o3r5p4s5q3x5r5n5s3x5t3r5u3r5v2r5w1w5x2r5y2u5z3m6k2l6l3m6m3m6n2w6o3m6p2w6q1w6r3m6s3m6t1w6u1w6v2w6w1w6x4s6y3m6z3m7k3m7l3m7m2r7n2r7o1w7p3m7q2w7r4m7s2w7t2w7u2r7v2s7w1v7x2s7y3q202l3mcl3xal2ram3man3mao3map3mar3mas2lat4wau1vav3maw4nay4waz2lbk2sbl4n'fof'6obo2lbp3mbq3obr1tbs2lbu1zbv3mbz3mck3x202k3mcm3xcn3xco3xcp3xcq5tcr4mcs3xct3xcu3xcv3xcw2l2m2ucy2lcz2ldl4mdm4sdn4sdo4sdp4sdq4sds4sdt4sdu4sdv4sdw4sdz3mek3mel3mem3men3meo3mep3meq4mer2wes2wet2weu2wev2wew1wex1wey1wez1wfl3mfm3mfn3mfo3mfp3mfq3mfr4nfs3mft3mfu3mfv3mfw3mfz2w203k6o212m6m2dw2l2cq2l3t3m3u2l17s3r19m3m}'kerning'{cl{5kt4qw}201s{201sw}201t{201tw2wy2yy6q-t}201x{2wy2yy}2k{201tw}2w{7qs4qy7rs5ky7mw5os5qx5ru17su5tu}2x{17ss5ts5os}2y{7qs4qy7rs5ky7mw5os5qx5ru17su5tu}'fof'-6o6t{17ss5ts5qs}7t{5os}3v{5qs}7p{17su5tu5qs}ck{5kt4qw}4l{5kt4qw}cm{5kt4qw}cn{5kt4qw}co{5kt4qw}cp{5kt4qw}6l{4qs5ks5ou5qw5ru17su5tu}17s{2ks}5q{ckvclvcmvcnvcovcpv4lv}5r{ckuclucmucnucoucpu4lu}5t{2ks}6p{4qs5ks5ou5qw5ru17su5tu}ek{4qs5ks5ou5qw5ru17su5tu}el{4qs5ks5ou5qw5ru17su5tu}em{4qs5ks5ou5qw5ru17su5tu}en{4qs5ks5ou5qw5ru17su5tu}eo{4qs5ks5ou5qw5ru17su5tu}ep{4qs5ks5ou5qw5ru17su5tu}es{5ks5qs4qs}et{4qs5ks5ou5qw5ru17su5tu}eu{4qs5ks5qw5ru17su5tu}ev{5ks5qs4qs}ex{17ss5ts5qs}6z{4qv5ks5ou5qw5ru17su5tu}fm{4qv5ks5ou5qw5ru17su5tu}fn{4qv5ks5ou5qw5ru17su5tu}fo{4qv5ks5ou5qw5ru17su5tu}fp{4qv5ks5ou5qw5ru17su5tu}fq{4qv5ks5ou5qw5ru17su5tu}7r{5os}fs{4qv5ks5ou5qw5ru17su5tu}ft{17su5tu5qs}fu{17su5tu5qs}fv{17su5tu5qs}fw{17su5tu5qs}}}"),"Times-Roman":l("{'widths'{k3n2q4ycx2l201n3m201o6o201s2l201t2l201u2l201w2w201x2w201y2w2k1t2l2l202m2n2n3m2o3m2p5n202q6o2r1m2s2l2t2l2u3m2v3s2w1t2x2l2y1t2z1w3k3m3l3m3m3m3n3m3o3m3p3m3q3m3r3m3s3m203t2l203u2l3v1w3w3s3x3s3y3s3z2w4k5w4l4s4m4m4n4m4o4s4p3x4q3r4r4s4s4s4t2l4u2r4v4s4w3x4x5t4y4s4z4s5k3r5l4s5m4m5n3r5o3x5p4s5q4s5r5y5s4s5t4s5u3x5v2l5w1w5x2l5y2z5z3m6k2l6l2w6m3m6n2w6o3m6p2w6q2l6r3m6s3m6t1w6u1w6v3m6w1w6x4y6y3m6z3m7k3m7l3m7m2l7n2r7o1w7p3m7q3m7r4s7s3m7t3m7u2w7v3k7w1o7x3k7y3q202l3mcl4sal2lam3man3mao3map3mar3mas2lat4wau1vav3maw3say4waz2lbk2sbl3s'fof'6obo2lbp3mbq2xbr1tbs2lbu1zbv3mbz2wck4s202k3mcm4scn4sco4scp4scq5tcr4mcs3xct3xcu3xcv3xcw2l2m2tcy2lcz2ldl4sdm4sdn4sdo4sdp4sdq4sds4sdt4sdu4sdv4sdw4sdz3mek2wel2wem2wen2weo2wep2weq4mer2wes2wet2weu2wev2wew1wex1wey1wez1wfl3mfm3mfn3mfo3mfp3mfq3mfr3sfs3mft3mfu3mfv3mfw3mfz3m203k6o212m6m2dw2l2cq2l3t3m3u1w17s4s19m3m}'kerning'{cl{4qs5ku17sw5ou5qy5rw201ss5tw201ws}201s{201ss}201t{ckw4lwcmwcnwcowcpwclw4wu201ts}2k{201ts}2w{4qs5kw5os5qx5ru17sx5tx}2x{17sw5tw5ou5qu}2y{4qs5kw5os5qx5ru17sx5tx}'fof'-6o7t{ckuclucmucnucoucpu4lu5os5rs}3u{17su5tu5qs}3v{17su5tu5qs}7p{17sw5tw5qs}ck{4qs5ku17sw5ou5qy5rw201ss5tw201ws}4l{4qs5ku17sw5ou5qy5rw201ss5tw201ws}cm{4qs5ku17sw5ou5qy5rw201ss5tw201ws}cn{4qs5ku17sw5ou5qy5rw201ss5tw201ws}co{4qs5ku17sw5ou5qy5rw201ss5tw201ws}cp{4qs5ku17sw5ou5qy5rw201ss5tw201ws}6l{17su5tu5os5qw5rs}17s{2ktclvcmvcnvcovcpv4lv4wuckv}5o{ckwclwcmwcnwcowcpw4lw4wu}5q{ckyclycmycnycoycpy4ly4wu5ms}5r{cktcltcmtcntcotcpt4lt4ws}5t{2ktclvcmvcnvcovcpv4lv4wuckv}7q{cksclscmscnscoscps4ls}6p{17su5tu5qw5rs}ek{5qs5rs}el{17su5tu5os5qw5rs}em{17su5tu5os5qs5rs}en{17su5qs5rs}eo{5qs5rs}ep{17su5tu5os5qw5rs}es{5qs}et{17su5tu5qw5rs}eu{17su5tu5qs5rs}ev{5qs}6z{17sv5tv5os5qx5rs}fm{5os5qt5rs}fn{17sv5tv5os5qx5rs}fo{17sv5tv5os5qx5rs}fp{5os5qt5rs}fq{5os5qt5rs}7r{ckuclucmucnucoucpu4lu5os}fs{17sv5tv5os5qx5rs}ft{17ss5ts5qs}fu{17sw5tw5qs}fv{17sw5tw5qs}fw{17ss5ts5qs}fz{ckuclucmucnucoucpu4lu5os5rs}}}"),"Helvetica-Oblique":l("{'widths'{k3p2q4mcx1w201n3r201o6o201s1q201t1q201u1q201w2l201x2l201y2l2k1w2l1w202m2n2n3r2o3r2p5t202q6o2r1n2s2l2t2l2u2r2v3u2w1w2x2l2y1w2z1w3k3r3l3r3m3r3n3r3o3r3p3r3q3r3r3r3s3r203t2l203u2l3v1w3w3u3x3u3y3u3z3r4k6p4l4m4m4m4n4s4o4s4p4m4q3x4r4y4s4s4t1w4u3m4v4m4w3r4x5n4y4s4z4y5k4m5l4y5m4s5n4m5o3x5p4s5q4m5r5y5s4m5t4m5u3x5v1w5w1w5x1w5y2z5z3r6k2l6l3r6m3r6n3m6o3r6p3r6q1w6r3r6s3r6t1q6u1q6v3m6w1q6x5n6y3r6z3r7k3r7l3r7m2l7n3m7o1w7p3r7q3m7r4s7s3m7t3m7u3m7v2l7w1u7x2l7y3u202l3rcl4mal2lam3ran3rao3rap3rar3ras2lat4tau2pav3raw3uay4taz2lbk2sbl3u'fof'6obo2lbp3rbr1wbs2lbu2obv3rbz3xck4m202k3rcm4mcn4mco4mcp4mcq6ocr4scs4mct4mcu4mcv4mcw1w2m2ncy1wcz1wdl4sdm4ydn4ydo4ydp4ydq4yds4ydt4sdu4sdv4sdw4sdz3xek3rel3rem3ren3reo3rep3req5ter3mes3ret3reu3rev3rew1wex1wey1wez1wfl3rfm3rfn3rfo3rfp3rfq3rfr3ufs3xft3rfu3rfv3rfw3rfz3m203k6o212m6o2dw2l2cq2l3t3r3u1w17s4m19m3r}'kerning'{5q{4wv}cl{4qs5kw5ow5qs17sv5tv}201t{2wu4w1k2yu}201x{2wu4wy2yu}17s{2ktclucmucnu4otcpu4lu4wycoucku}2w{7qs4qz5k1m17sy5ow5qx5rsfsu5ty7tufzu}2x{17sy5ty5oy5qs}2y{7qs4qz5k1m17sy5ow5qx5rsfsu5ty7tufzu}'fof'-6o7p{17sv5tv5ow}ck{4qs5kw5ow5qs17sv5tv}4l{4qs5kw5ow5qs17sv5tv}cm{4qs5kw5ow5qs17sv5tv}cn{4qs5kw5ow5qs17sv5tv}co{4qs5kw5ow5qs17sv5tv}cp{4qs5kw5ow5qs17sv5tv}6l{17sy5ty5ow}do{17st5tt}4z{17st5tt}7s{fst}dm{17st5tt}dn{17st5tt}5o{ckwclwcmwcnwcowcpw4lw4wv}dp{17st5tt}dq{17st5tt}7t{5ow}ds{17st5tt}5t{2ktclucmucnu4otcpu4lu4wycoucku}fu{17sv5tv5ow}6p{17sy5ty5ow5qs}ek{17sy5ty5ow}el{17sy5ty5ow}em{17sy5ty5ow}en{5ty}eo{17sy5ty5ow}ep{17sy5ty5ow}es{17sy5ty5qs}et{17sy5ty5ow5qs}eu{17sy5ty5ow5qs}ev{17sy5ty5ow5qs}6z{17sy5ty5ow5qs}fm{17sy5ty5ow5qs}fn{17sy5ty5ow5qs}fo{17sy5ty5ow5qs}fp{17sy5ty5qs}fq{17sy5ty5ow5qs}7r{5ow}fs{17sy5ty5ow5qs}ft{17sv5tv5ow}7m{5ow}fv{17sv5tv5ow}fw{17sv5tv5ow}}}")}};e.events.push(["addFont",function(h){var m=h.font,p=f.Unicode[m.postScriptName];p&&(m.metadata.Unicode={},m.metadata.Unicode.widths=p.widths,m.metadata.Unicode.kerning=p.kerning);var A=u.Unicode[m.postScriptName];A&&(m.metadata.Unicode.encoding=A,m.encoding=A.codePages[0])}])})(Wn.API),(function(e){var t=function(n){for(var r=n.length,i=new Uint8Array(r),a=0;a<r;a++)i[a]=n.charCodeAt(a);return i};e.API.events.push(["addFont",function(n){var r=void 0,i=n.font,a=n.instance;if(!i.isStandardFont){if(a===void 0)throw new Error("Font does not exist in vFS, import fonts or remove declaration doc.addFont('"+i.postScriptName+"').");if(typeof(r=a.existsFileInVFS(i.postScriptName)===!1?a.loadFile(i.postScriptName):a.getFileFromVFS(i.postScriptName))!="string")throw new Error("Font is not stored as string-data in vFS, import fonts or remove declaration doc.addFont('"+i.postScriptName+"').");(function(o,s){s=/^\x00\x01\x00\x00/.test(s)?t(s):t(dj(s)),o.metadata=e.API.TTFFont.open(s),o.metadata.Unicode=o.metadata.Unicode||{encoding:{},kerning:{},widths:[]},o.metadata.glyIdsUsed=[0]})(i,r)}}])})(Wn),Wn.API.addSvgAsImage=function(e,t,n,r,i,a,o,s){if(isNaN(t)||isNaN(n))throw ma.error("jsPDF.addSvgAsImage: Invalid coordinates",arguments),new Error("Invalid coordinates passed to jsPDF.addSvgAsImage");if(isNaN(r)||isNaN(i))throw ma.error("jsPDF.addSvgAsImage: Invalid measurements",arguments),new Error("Invalid measurements (width and/or height) passed to jsPDF.addSvgAsImage");var l=document.createElement("canvas");l.width=r,l.height=i;var c=l.getContext("2d");c.fillStyle="#fff",c.fillRect(0,0,l.width,l.height);var u={ignoreMouse:!0,ignoreAnimation:!0,ignoreDimensions:!0},f=this;return(wr.canvg?Promise.resolve(wr.canvg):FH(()=>import("./index.es-DnNc_qfo.js"),[])).catch(function(h){return Promise.reject(new Error("Could not load canvg: "+h))}).then(function(h){return h.default?h.default:h}).then(function(h){return h.fromString(c,e,u)},function(){return Promise.reject(new Error("Could not load canvg."))}).then(function(h){return h.render(u)}).then(function(){f.addImage(l.toDataURL("image/jpeg",1),t,n,r,i,o,s)})},Wn.API.putTotalPages=function(e){var t,n=0;parseInt(this.internal.getFont().id.substr(1),10)<15?(t=new RegExp(e,"g"),n=this.internal.getNumberOfPages()):(t=new RegExp(this.pdfEscape16(e,this.internal.getFont()),"g"),n=this.pdfEscape16(this.internal.getNumberOfPages()+"",this.internal.getFont()));for(var r=1;r<=this.internal.getNumberOfPages();r++)for(var i=0;i<this.internal.pages[r].length;i++)this.internal.pages[r][i]=this.internal.pages[r][i].replace(t,n);return this},Wn.API.viewerPreferences=function(e,t){var n;e=e||{},t=t||!1;var r,i,a,o={HideToolbar:{defaultValue:!1,value:!1,type:"boolean",explicitSet:!1,valueSet:[!0,!1],pdfVersion:1.3},HideMenubar:{defaultValue:!1,value:!1,type:"boolean",explicitSet:!1,valueSet:[!0,!1],pdfVersion:1.3},HideWindowUI:{defaultValue:!1,value:!1,type:"boolean",explicitSet:!1,valueSet:[!0,!1],pdfVersion:1.3},FitWindow:{defaultValue:!1,value:!1,type:"boolean",explicitSet:!1,valueSet:[!0,!1],pdfVersion:1.3},CenterWindow:{defaultValue:!1,value:!1,type:"boolean",explicitSet:!1,valueSet:[!0,!1],pdfVersion:1.3},DisplayDocTitle:{defaultValue:!1,value:!1,type:"boolean",explicitSet:!1,valueSet:[!0,!1],pdfVersion:1.4},NonFullScreenPageMode:{defaultValue:"UseNone",value:"UseNone",type:"name",explicitSet:!1,valueSet:["UseNone","UseOutlines","UseThumbs","UseOC"],pdfVersion:1.3},Direction:{defaultValue:"L2R",value:"L2R",type:"name",explicitSet:!1,valueSet:["L2R","R2L"],pdfVersion:1.3},ViewArea:{defaultValue:"CropBox",value:"CropBox",type:"name",explicitSet:!1,valueSet:["MediaBox","CropBox","TrimBox","BleedBox","ArtBox"],pdfVersion:1.4},ViewClip:{defaultValue:"CropBox",value:"CropBox",type:"name",explicitSet:!1,valueSet:["MediaBox","CropBox","TrimBox","BleedBox","ArtBox"],pdfVersion:1.4},PrintArea:{defaultValue:"CropBox",value:"CropBox",type:"name",explicitSet:!1,valueSet:["MediaBox","CropBox","TrimBox","BleedBox","ArtBox"],pdfVersion:1.4},PrintClip:{defaultValue:"CropBox",value:"CropBox",type:"name",explicitSet:!1,valueSet:["MediaBox","CropBox","TrimBox","BleedBox","ArtBox"],pdfVersion:1.4},PrintScaling:{defaultValue:"AppDefault",value:"AppDefault",type:"name",explicitSet:!1,valueSet:["AppDefault","None"],pdfVersion:1.6},Duplex:{defaultValue:"",value:"none",type:"name",explicitSet:!1,valueSet:["Simplex","DuplexFlipShortEdge","DuplexFlipLongEdge","none"],pdfVersion:1.7},PickTrayByPDFSize:{defaultValue:!1,value:!1,type:"boolean",explicitSet:!1,valueSet:[!0,!1],pdfVersion:1.7},PrintPageRange:{defaultValue:"",value:"",type:"array",explicitSet:!1,valueSet:null,pdfVersion:1.7},NumCopies:{defaultValue:1,value:1,type:"integer",explicitSet:!1,valueSet:null,pdfVersion:1.7}},s=Object.keys(o),l=[],c=0,u=0,f=0;function h(p,A){var v,y=!1;for(v=0;v<p.length;v+=1)p[v]===A&&(y=!0);return y}if(this.internal.viewerpreferences===void 0&&(this.internal.viewerpreferences={},this.internal.viewerpreferences.configuration=JSON.parse(JSON.stringify(o)),this.internal.viewerpreferences.isSubscribed=!1),n=this.internal.viewerpreferences.configuration,e==="reset"||t===!0){var m=s.length;for(f=0;f<m;f+=1)n[s[f]].value=n[s[f]].defaultValue,n[s[f]].explicitSet=!1}if(Zi(e)==="object"){for(i in e)if(a=e[i],h(s,i)&&a!==void 0){if(n[i].type==="boolean"&&typeof a=="boolean")n[i].value=a;else if(n[i].type==="name"&&h(n[i].valueSet,a))n[i].value=a;else if(n[i].type==="integer"&&Number.isInteger(a))n[i].value=a;else if(n[i].type==="array"){for(c=0;c<a.length;c+=1)if(r=!0,a[c].length===1&&typeof a[c][0]=="number")l.push(String(a[c]-1));else if(a[c].length>1){for(u=0;u<a[c].length;u+=1)typeof a[c][u]!="number"&&(r=!1);r===!0&&l.push([a[c][0]-1,a[c][1]-1].join(" "))}n[i].value="["+l.join(" ")+"]"}else n[i].value=n[i].defaultValue;n[i].explicitSet=!0}}return this.internal.viewerpreferences.isSubscribed===!1&&(this.internal.events.subscribe("putCatalog",function(){var p,A=[];for(p in n)n[p].explicitSet===!0&&(n[p].type==="name"?A.push("/"+p+" /"+n[p].value):A.push("/"+p+" "+n[p].value));A.length!==0&&this.internal.write(`/ViewerPreferences
815
+ `&&(r=r.substr(1),k=1),h+m+(p=(i=gB.apply(this,[r,n])).reduce(function(S,C){return S+C},0))>t||k){if(p>t){for(s=J1e.apply(this,[r,i,t-(h+m),t]),u.push(s.shift()),u=[s.pop()];s.length;)f.push([s.shift()]);p=i.slice(r.length-(u[0]?u[0].length:0)).reduce(function(S,C){return S+C},0)}else u=[r];f.push(u),h=p+l,m=v}else u.push(r),h+=m+p,m=v}return c=l?function(S,C){return(C?y:"")+S.join(" ")}:function(S){return S.join(" ")},f.map(c)},gw.splitTextToSize=function(e,t,n){var r,i=(n=n||{}).fontSize||this.internal.getFontSize(),a=(function(u){if(u.widths&&u.kerning)return{widths:u.widths,kerning:u.kerning};var f=this.internal.getFont(u.fontName,u.fontStyle),h="Unicode";return f.metadata[h]?{widths:f.metadata[h].widths||{0:1},kerning:f.metadata[h].kerning||{}}:{font:f.metadata,fontSize:this.internal.getFontSize(),charSpace:this.internal.getCharSpace()}}).call(this,n);r=Array.isArray(e)?e:String(e).split(/\r?\n/);var o=1*this.internal.scaleFactor*t/i;a.textIndent=n.textIndent?1*n.textIndent*this.internal.scaleFactor/i:0,a.lineIndent=n.lineIndent;var s,l,c=[];for(s=0,l=r.length;s<l;s++)c=c.concat(ewe.apply(this,[r[s],o,a]));return c},(function(e){e.__fontmetrics__=e.__fontmetrics__||{};for(var t="0123456789abcdef",n="klmnopqrstuvwxyz",r={},i={},a=0;a<16;a++)r[n[a]]=t[a],i[t[a]]=n[a];var o=function(h){return"0x"+parseInt(h,10).toString(16)},s=e.__fontmetrics__.compress=function(h){var m,p,A,v,y=["{"];for(var x in h){if(m=h[x],isNaN(parseInt(x,10))?p="'"+x+"'":(x=parseInt(x,10),p=(p=o(x).slice(2)).slice(0,-1)+i[p.slice(-1)]),typeof m=="number")m<0?(A=o(m).slice(3),v="-"):(A=o(m).slice(2),v=""),A=v+A.slice(0,-1)+i[A.slice(-1)];else{if(Zi(m)!=="object")throw new Error("Don't know what to do with value type "+Zi(m)+".");A=s(m)}y.push(p+A)}return y.push("}"),y.join("")},l=e.__fontmetrics__.uncompress=function(h){if(typeof h!="string")throw new Error("Invalid argument passed to uncompress.");for(var m,p,A,v,y={},x=1,k=y,S=[],C="",N="",E=h.length-1,D=1;D<E;D+=1)(v=h[D])=="'"?m?(A=m.join(""),m=void 0):m=[]:m?m.push(v):v=="{"?(S.push([k,A]),k={},A=void 0):v=="}"?((p=S.pop())[0][p[1]]=k,A=void 0,k=p[0]):v=="-"?x=-1:A===void 0?r.hasOwnProperty(v)?(C+=r[v],A=parseInt(C,16)*x,x=1,C=""):C+=v:r.hasOwnProperty(v)?(N+=r[v],k[A]=parseInt(N,16)*x,x=1,A=void 0,N=""):N+=v;return y},c={codePages:["WinAnsiEncoding"],WinAnsiEncoding:l("{19m8n201n9q201o9r201s9l201t9m201u8m201w9n201x9o201y8o202k8q202l8r202m9p202q8p20aw8k203k8t203t8v203u9v2cq8s212m9t15m8w15n9w2dw9s16k8u16l9u17s9z17x8y17y9y}")},u={Unicode:{Courier:c,"Courier-Bold":c,"Courier-BoldOblique":c,"Courier-Oblique":c,Helvetica:c,"Helvetica-Bold":c,"Helvetica-BoldOblique":c,"Helvetica-Oblique":c,"Times-Roman":c,"Times-Bold":c,"Times-BoldItalic":c,"Times-Italic":c}},f={Unicode:{"Courier-Oblique":l("{'widths'{k3w'fof'6o}'kerning'{'fof'-6o}}"),"Times-BoldItalic":l("{'widths'{k3o2q4ycx2r201n3m201o6o201s2l201t2l201u2l201w3m201x3m201y3m2k1t2l2r202m2n2n3m2o3m2p5n202q6o2r1w2s2l2t2l2u3m2v3t2w1t2x2l2y1t2z1w3k3m3l3m3m3m3n3m3o3m3p3m3q3m3r3m3s3m203t2l203u2l3v2l3w3t3x3t3y3t3z3m4k5n4l4m4m4m4n4m4o4s4p4m4q4m4r4s4s4y4t2r4u3m4v4m4w3x4x5t4y4s4z4s5k3x5l4s5m4m5n3r5o3x5p4s5q4m5r5t5s4m5t3x5u3x5v2l5w1w5x2l5y3t5z3m6k2l6l3m6m3m6n2w6o3m6p2w6q2l6r3m6s3r6t1w6u1w6v3m6w1w6x4y6y3r6z3m7k3m7l3m7m2r7n2r7o1w7p3r7q2w7r4m7s3m7t2w7u2r7v2n7w1q7x2n7y3t202l3mcl4mal2ram3man3mao3map3mar3mas2lat4uau1uav3maw3way4uaz2lbk2sbl3t'fof'6obo2lbp3tbq3mbr1tbs2lbu1ybv3mbz3mck4m202k3mcm4mcn4mco4mcp4mcq5ycr4mcs4mct4mcu4mcv4mcw2r2m3rcy2rcz2rdl4sdm4sdn4sdo4sdp4sdq4sds4sdt4sdu4sdv4sdw4sdz3mek3mel3mem3men3meo3mep3meq4ser2wes2wet2weu2wev2wew1wex1wey1wez1wfl3rfm3mfn3mfo3mfp3mfq3mfr3tfs3mft3rfu3rfv3rfw3rfz2w203k6o212m6o2dw2l2cq2l3t3m3u2l17s3x19m3m}'kerning'{cl{4qu5kt5qt5rs17ss5ts}201s{201ss}201t{cks4lscmscnscoscpscls2wu2yu201ts}201x{2wu2yu}2k{201ts}2w{4qx5kx5ou5qx5rs17su5tu}2x{17su5tu5ou}2y{4qx5kx5ou5qx5rs17ss5ts}'fof'-6ofn{17sw5tw5ou5qw5rs}7t{cksclscmscnscoscps4ls}3u{17su5tu5os5qs}3v{17su5tu5os5qs}7p{17su5tu}ck{4qu5kt5qt5rs17ss5ts}4l{4qu5kt5qt5rs17ss5ts}cm{4qu5kt5qt5rs17ss5ts}cn{4qu5kt5qt5rs17ss5ts}co{4qu5kt5qt5rs17ss5ts}cp{4qu5kt5qt5rs17ss5ts}6l{4qu5ou5qw5rt17su5tu}5q{ckuclucmucnucoucpu4lu}5r{ckuclucmucnucoucpu4lu}7q{cksclscmscnscoscps4ls}6p{4qu5ou5qw5rt17sw5tw}ek{4qu5ou5qw5rt17su5tu}el{4qu5ou5qw5rt17su5tu}em{4qu5ou5qw5rt17su5tu}en{4qu5ou5qw5rt17su5tu}eo{4qu5ou5qw5rt17su5tu}ep{4qu5ou5qw5rt17su5tu}es{17ss5ts5qs4qu}et{4qu5ou5qw5rt17sw5tw}eu{4qu5ou5qw5rt17ss5ts}ev{17ss5ts5qs4qu}6z{17sw5tw5ou5qw5rs}fm{17sw5tw5ou5qw5rs}7n{201ts}fo{17sw5tw5ou5qw5rs}fp{17sw5tw5ou5qw5rs}fq{17sw5tw5ou5qw5rs}7r{cksclscmscnscoscps4ls}fs{17sw5tw5ou5qw5rs}ft{17su5tu}fu{17su5tu}fv{17su5tu}fw{17su5tu}fz{cksclscmscnscoscps4ls}}}"),"Helvetica-Bold":l("{'widths'{k3s2q4scx1w201n3r201o6o201s1w201t1w201u1w201w3m201x3m201y3m2k1w2l2l202m2n2n3r2o3r2p5t202q6o2r1s2s2l2t2l2u2r2v3u2w1w2x2l2y1w2z1w3k3r3l3r3m3r3n3r3o3r3p3r3q3r3r3r3s3r203t2l203u2l3v2l3w3u3x3u3y3u3z3x4k6l4l4s4m4s4n4s4o4s4p4m4q3x4r4y4s4s4t1w4u3r4v4s4w3x4x5n4y4s4z4y5k4m5l4y5m4s5n4m5o3x5p4s5q4m5r5y5s4m5t4m5u3x5v2l5w1w5x2l5y3u5z3r6k2l6l3r6m3x6n3r6o3x6p3r6q2l6r3x6s3x6t1w6u1w6v3r6w1w6x5t6y3x6z3x7k3x7l3x7m2r7n3r7o2l7p3x7q3r7r4y7s3r7t3r7u3m7v2r7w1w7x2r7y3u202l3rcl4sal2lam3ran3rao3rap3rar3ras2lat4tau2pav3raw3uay4taz2lbk2sbl3u'fof'6obo2lbp3xbq3rbr1wbs2lbu2obv3rbz3xck4s202k3rcm4scn4sco4scp4scq6ocr4scs4mct4mcu4mcv4mcw1w2m2zcy1wcz1wdl4sdm4ydn4ydo4ydp4ydq4yds4ydt4sdu4sdv4sdw4sdz3xek3rel3rem3ren3reo3rep3req5ter3res3ret3reu3rev3rew1wex1wey1wez1wfl3xfm3xfn3xfo3xfp3xfq3xfr3ufs3xft3xfu3xfv3xfw3xfz3r203k6o212m6o2dw2l2cq2l3t3r3u2l17s4m19m3r}'kerning'{cl{4qs5ku5ot5qs17sv5tv}201t{2ww4wy2yw}201w{2ks}201x{2ww4wy2yw}2k{201ts201xs}2w{7qs4qu5kw5os5qw5rs17su5tu7tsfzs}2x{5ow5qs}2y{7qs4qu5kw5os5qw5rs17su5tu7tsfzs}'fof'-6o7p{17su5tu5ot}ck{4qs5ku5ot5qs17sv5tv}4l{4qs5ku5ot5qs17sv5tv}cm{4qs5ku5ot5qs17sv5tv}cn{4qs5ku5ot5qs17sv5tv}co{4qs5ku5ot5qs17sv5tv}cp{4qs5ku5ot5qs17sv5tv}6l{17st5tt5os}17s{2kwclvcmvcnvcovcpv4lv4wwckv}5o{2kucltcmtcntcotcpt4lt4wtckt}5q{2ksclscmscnscoscps4ls4wvcks}5r{2ks4ws}5t{2kwclvcmvcnvcovcpv4lv4wwckv}eo{17st5tt5os}fu{17su5tu5ot}6p{17ss5ts}ek{17st5tt5os}el{17st5tt5os}em{17st5tt5os}en{17st5tt5os}6o{201ts}ep{17st5tt5os}es{17ss5ts}et{17ss5ts}eu{17ss5ts}ev{17ss5ts}6z{17su5tu5os5qt}fm{17su5tu5os5qt}fn{17su5tu5os5qt}fo{17su5tu5os5qt}fp{17su5tu5os5qt}fq{17su5tu5os5qt}fs{17su5tu5os5qt}ft{17su5tu5ot}7m{5os}fv{17su5tu5ot}fw{17su5tu5ot}}}"),Courier:l("{'widths'{k3w'fof'6o}'kerning'{'fof'-6o}}"),"Courier-BoldOblique":l("{'widths'{k3w'fof'6o}'kerning'{'fof'-6o}}"),"Times-Bold":l("{'widths'{k3q2q5ncx2r201n3m201o6o201s2l201t2l201u2l201w3m201x3m201y3m2k1t2l2l202m2n2n3m2o3m2p6o202q6o2r1w2s2l2t2l2u3m2v3t2w1t2x2l2y1t2z1w3k3m3l3m3m3m3n3m3o3m3p3m3q3m3r3m3s3m203t2l203u2l3v2l3w3t3x3t3y3t3z3m4k5x4l4s4m4m4n4s4o4s4p4m4q3x4r4y4s4y4t2r4u3m4v4y4w4m4x5y4y4s4z4y5k3x5l4y5m4s5n3r5o4m5p4s5q4s5r6o5s4s5t4s5u4m5v2l5w1w5x2l5y3u5z3m6k2l6l3m6m3r6n2w6o3r6p2w6q2l6r3m6s3r6t1w6u2l6v3r6w1w6x5n6y3r6z3m7k3r7l3r7m2w7n2r7o2l7p3r7q3m7r4s7s3m7t3m7u2w7v2r7w1q7x2r7y3o202l3mcl4sal2lam3man3mao3map3mar3mas2lat4uau1yav3maw3tay4uaz2lbk2sbl3t'fof'6obo2lbp3rbr1tbs2lbu2lbv3mbz3mck4s202k3mcm4scn4sco4scp4scq6ocr4scs4mct4mcu4mcv4mcw2r2m3rcy2rcz2rdl4sdm4ydn4ydo4ydp4ydq4yds4ydt4sdu4sdv4sdw4sdz3rek3mel3mem3men3meo3mep3meq4ser2wes2wet2weu2wev2wew1wex1wey1wez1wfl3rfm3mfn3mfo3mfp3mfq3mfr3tfs3mft3rfu3rfv3rfw3rfz3m203k6o212m6o2dw2l2cq2l3t3m3u2l17s4s19m3m}'kerning'{cl{4qt5ks5ot5qy5rw17sv5tv}201t{cks4lscmscnscoscpscls4wv}2k{201ts}2w{4qu5ku7mu5os5qx5ru17su5tu}2x{17su5tu5ou5qs}2y{4qv5kv7mu5ot5qz5ru17su5tu}'fof'-6o7t{cksclscmscnscoscps4ls}3u{17su5tu5os5qu}3v{17su5tu5os5qu}fu{17su5tu5ou5qu}7p{17su5tu5ou5qu}ck{4qt5ks5ot5qy5rw17sv5tv}4l{4qt5ks5ot5qy5rw17sv5tv}cm{4qt5ks5ot5qy5rw17sv5tv}cn{4qt5ks5ot5qy5rw17sv5tv}co{4qt5ks5ot5qy5rw17sv5tv}cp{4qt5ks5ot5qy5rw17sv5tv}6l{17st5tt5ou5qu}17s{ckuclucmucnucoucpu4lu4wu}5o{ckuclucmucnucoucpu4lu4wu}5q{ckzclzcmzcnzcozcpz4lz4wu}5r{ckxclxcmxcnxcoxcpx4lx4wu}5t{ckuclucmucnucoucpu4lu4wu}7q{ckuclucmucnucoucpu4lu}6p{17sw5tw5ou5qu}ek{17st5tt5qu}el{17st5tt5ou5qu}em{17st5tt5qu}en{17st5tt5qu}eo{17st5tt5qu}ep{17st5tt5ou5qu}es{17ss5ts5qu}et{17sw5tw5ou5qu}eu{17sw5tw5ou5qu}ev{17ss5ts5qu}6z{17sw5tw5ou5qu5rs}fm{17sw5tw5ou5qu5rs}fn{17sw5tw5ou5qu5rs}fo{17sw5tw5ou5qu5rs}fp{17sw5tw5ou5qu5rs}fq{17sw5tw5ou5qu5rs}7r{cktcltcmtcntcotcpt4lt5os}fs{17sw5tw5ou5qu5rs}ft{17su5tu5ou5qu}7m{5os}fv{17su5tu5ou5qu}fw{17su5tu5ou5qu}fz{cksclscmscnscoscps4ls}}}"),Symbol:l("{'widths'{k3uaw4r19m3m2k1t2l2l202m2y2n3m2p5n202q6o3k3m2s2l2t2l2v3r2w1t3m3m2y1t2z1wbk2sbl3r'fof'6o3n3m3o3m3p3m3q3m3r3m3s3m3t3m3u1w3v1w3w3r3x3r3y3r3z2wbp3t3l3m5v2l5x2l5z3m2q4yfr3r7v3k7w1o7x3k}'kerning'{'fof'-6o}}"),Helvetica:l("{'widths'{k3p2q4mcx1w201n3r201o6o201s1q201t1q201u1q201w2l201x2l201y2l2k1w2l1w202m2n2n3r2o3r2p5t202q6o2r1n2s2l2t2l2u2r2v3u2w1w2x2l2y1w2z1w3k3r3l3r3m3r3n3r3o3r3p3r3q3r3r3r3s3r203t2l203u2l3v1w3w3u3x3u3y3u3z3r4k6p4l4m4m4m4n4s4o4s4p4m4q3x4r4y4s4s4t1w4u3m4v4m4w3r4x5n4y4s4z4y5k4m5l4y5m4s5n4m5o3x5p4s5q4m5r5y5s4m5t4m5u3x5v1w5w1w5x1w5y2z5z3r6k2l6l3r6m3r6n3m6o3r6p3r6q1w6r3r6s3r6t1q6u1q6v3m6w1q6x5n6y3r6z3r7k3r7l3r7m2l7n3m7o1w7p3r7q3m7r4s7s3m7t3m7u3m7v2l7w1u7x2l7y3u202l3rcl4mal2lam3ran3rao3rap3rar3ras2lat4tau2pav3raw3uay4taz2lbk2sbl3u'fof'6obo2lbp3rbr1wbs2lbu2obv3rbz3xck4m202k3rcm4mcn4mco4mcp4mcq6ocr4scs4mct4mcu4mcv4mcw1w2m2ncy1wcz1wdl4sdm4ydn4ydo4ydp4ydq4yds4ydt4sdu4sdv4sdw4sdz3xek3rel3rem3ren3reo3rep3req5ter3mes3ret3reu3rev3rew1wex1wey1wez1wfl3rfm3rfn3rfo3rfp3rfq3rfr3ufs3xft3rfu3rfv3rfw3rfz3m203k6o212m6o2dw2l2cq2l3t3r3u1w17s4m19m3r}'kerning'{5q{4wv}cl{4qs5kw5ow5qs17sv5tv}201t{2wu4w1k2yu}201x{2wu4wy2yu}17s{2ktclucmucnu4otcpu4lu4wycoucku}2w{7qs4qz5k1m17sy5ow5qx5rsfsu5ty7tufzu}2x{17sy5ty5oy5qs}2y{7qs4qz5k1m17sy5ow5qx5rsfsu5ty7tufzu}'fof'-6o7p{17sv5tv5ow}ck{4qs5kw5ow5qs17sv5tv}4l{4qs5kw5ow5qs17sv5tv}cm{4qs5kw5ow5qs17sv5tv}cn{4qs5kw5ow5qs17sv5tv}co{4qs5kw5ow5qs17sv5tv}cp{4qs5kw5ow5qs17sv5tv}6l{17sy5ty5ow}do{17st5tt}4z{17st5tt}7s{fst}dm{17st5tt}dn{17st5tt}5o{ckwclwcmwcnwcowcpw4lw4wv}dp{17st5tt}dq{17st5tt}7t{5ow}ds{17st5tt}5t{2ktclucmucnu4otcpu4lu4wycoucku}fu{17sv5tv5ow}6p{17sy5ty5ow5qs}ek{17sy5ty5ow}el{17sy5ty5ow}em{17sy5ty5ow}en{5ty}eo{17sy5ty5ow}ep{17sy5ty5ow}es{17sy5ty5qs}et{17sy5ty5ow5qs}eu{17sy5ty5ow5qs}ev{17sy5ty5ow5qs}6z{17sy5ty5ow5qs}fm{17sy5ty5ow5qs}fn{17sy5ty5ow5qs}fo{17sy5ty5ow5qs}fp{17sy5ty5qs}fq{17sy5ty5ow5qs}7r{5ow}fs{17sy5ty5ow5qs}ft{17sv5tv5ow}7m{5ow}fv{17sv5tv5ow}fw{17sv5tv5ow}}}"),"Helvetica-BoldOblique":l("{'widths'{k3s2q4scx1w201n3r201o6o201s1w201t1w201u1w201w3m201x3m201y3m2k1w2l2l202m2n2n3r2o3r2p5t202q6o2r1s2s2l2t2l2u2r2v3u2w1w2x2l2y1w2z1w3k3r3l3r3m3r3n3r3o3r3p3r3q3r3r3r3s3r203t2l203u2l3v2l3w3u3x3u3y3u3z3x4k6l4l4s4m4s4n4s4o4s4p4m4q3x4r4y4s4s4t1w4u3r4v4s4w3x4x5n4y4s4z4y5k4m5l4y5m4s5n4m5o3x5p4s5q4m5r5y5s4m5t4m5u3x5v2l5w1w5x2l5y3u5z3r6k2l6l3r6m3x6n3r6o3x6p3r6q2l6r3x6s3x6t1w6u1w6v3r6w1w6x5t6y3x6z3x7k3x7l3x7m2r7n3r7o2l7p3x7q3r7r4y7s3r7t3r7u3m7v2r7w1w7x2r7y3u202l3rcl4sal2lam3ran3rao3rap3rar3ras2lat4tau2pav3raw3uay4taz2lbk2sbl3u'fof'6obo2lbp3xbq3rbr1wbs2lbu2obv3rbz3xck4s202k3rcm4scn4sco4scp4scq6ocr4scs4mct4mcu4mcv4mcw1w2m2zcy1wcz1wdl4sdm4ydn4ydo4ydp4ydq4yds4ydt4sdu4sdv4sdw4sdz3xek3rel3rem3ren3reo3rep3req5ter3res3ret3reu3rev3rew1wex1wey1wez1wfl3xfm3xfn3xfo3xfp3xfq3xfr3ufs3xft3xfu3xfv3xfw3xfz3r203k6o212m6o2dw2l2cq2l3t3r3u2l17s4m19m3r}'kerning'{cl{4qs5ku5ot5qs17sv5tv}201t{2ww4wy2yw}201w{2ks}201x{2ww4wy2yw}2k{201ts201xs}2w{7qs4qu5kw5os5qw5rs17su5tu7tsfzs}2x{5ow5qs}2y{7qs4qu5kw5os5qw5rs17su5tu7tsfzs}'fof'-6o7p{17su5tu5ot}ck{4qs5ku5ot5qs17sv5tv}4l{4qs5ku5ot5qs17sv5tv}cm{4qs5ku5ot5qs17sv5tv}cn{4qs5ku5ot5qs17sv5tv}co{4qs5ku5ot5qs17sv5tv}cp{4qs5ku5ot5qs17sv5tv}6l{17st5tt5os}17s{2kwclvcmvcnvcovcpv4lv4wwckv}5o{2kucltcmtcntcotcpt4lt4wtckt}5q{2ksclscmscnscoscps4ls4wvcks}5r{2ks4ws}5t{2kwclvcmvcnvcovcpv4lv4wwckv}eo{17st5tt5os}fu{17su5tu5ot}6p{17ss5ts}ek{17st5tt5os}el{17st5tt5os}em{17st5tt5os}en{17st5tt5os}6o{201ts}ep{17st5tt5os}es{17ss5ts}et{17ss5ts}eu{17ss5ts}ev{17ss5ts}6z{17su5tu5os5qt}fm{17su5tu5os5qt}fn{17su5tu5os5qt}fo{17su5tu5os5qt}fp{17su5tu5os5qt}fq{17su5tu5os5qt}fs{17su5tu5os5qt}ft{17su5tu5ot}7m{5os}fv{17su5tu5ot}fw{17su5tu5ot}}}"),ZapfDingbats:l("{'widths'{k4u2k1w'fof'6o}'kerning'{'fof'-6o}}"),"Courier-Bold":l("{'widths'{k3w'fof'6o}'kerning'{'fof'-6o}}"),"Times-Italic":l("{'widths'{k3n2q4ycx2l201n3m201o5t201s2l201t2l201u2l201w3r201x3r201y3r2k1t2l2l202m2n2n3m2o3m2p5n202q5t2r1p2s2l2t2l2u3m2v4n2w1t2x2l2y1t2z1w3k3m3l3m3m3m3n3m3o3m3p3m3q3m3r3m3s3m203t2l203u2l3v2l3w4n3x4n3y4n3z3m4k5w4l3x4m3x4n4m4o4s4p3x4q3x4r4s4s4s4t2l4u2w4v4m4w3r4x5n4y4m4z4s5k3x5l4s5m3x5n3m5o3r5p4s5q3x5r5n5s3x5t3r5u3r5v2r5w1w5x2r5y2u5z3m6k2l6l3m6m3m6n2w6o3m6p2w6q1w6r3m6s3m6t1w6u1w6v2w6w1w6x4s6y3m6z3m7k3m7l3m7m2r7n2r7o1w7p3m7q2w7r4m7s2w7t2w7u2r7v2s7w1v7x2s7y3q202l3mcl3xal2ram3man3mao3map3mar3mas2lat4wau1vav3maw4nay4waz2lbk2sbl4n'fof'6obo2lbp3mbq3obr1tbs2lbu1zbv3mbz3mck3x202k3mcm3xcn3xco3xcp3xcq5tcr4mcs3xct3xcu3xcv3xcw2l2m2ucy2lcz2ldl4mdm4sdn4sdo4sdp4sdq4sds4sdt4sdu4sdv4sdw4sdz3mek3mel3mem3men3meo3mep3meq4mer2wes2wet2weu2wev2wew1wex1wey1wez1wfl3mfm3mfn3mfo3mfp3mfq3mfr4nfs3mft3mfu3mfv3mfw3mfz2w203k6o212m6m2dw2l2cq2l3t3m3u2l17s3r19m3m}'kerning'{cl{5kt4qw}201s{201sw}201t{201tw2wy2yy6q-t}201x{2wy2yy}2k{201tw}2w{7qs4qy7rs5ky7mw5os5qx5ru17su5tu}2x{17ss5ts5os}2y{7qs4qy7rs5ky7mw5os5qx5ru17su5tu}'fof'-6o6t{17ss5ts5qs}7t{5os}3v{5qs}7p{17su5tu5qs}ck{5kt4qw}4l{5kt4qw}cm{5kt4qw}cn{5kt4qw}co{5kt4qw}cp{5kt4qw}6l{4qs5ks5ou5qw5ru17su5tu}17s{2ks}5q{ckvclvcmvcnvcovcpv4lv}5r{ckuclucmucnucoucpu4lu}5t{2ks}6p{4qs5ks5ou5qw5ru17su5tu}ek{4qs5ks5ou5qw5ru17su5tu}el{4qs5ks5ou5qw5ru17su5tu}em{4qs5ks5ou5qw5ru17su5tu}en{4qs5ks5ou5qw5ru17su5tu}eo{4qs5ks5ou5qw5ru17su5tu}ep{4qs5ks5ou5qw5ru17su5tu}es{5ks5qs4qs}et{4qs5ks5ou5qw5ru17su5tu}eu{4qs5ks5qw5ru17su5tu}ev{5ks5qs4qs}ex{17ss5ts5qs}6z{4qv5ks5ou5qw5ru17su5tu}fm{4qv5ks5ou5qw5ru17su5tu}fn{4qv5ks5ou5qw5ru17su5tu}fo{4qv5ks5ou5qw5ru17su5tu}fp{4qv5ks5ou5qw5ru17su5tu}fq{4qv5ks5ou5qw5ru17su5tu}7r{5os}fs{4qv5ks5ou5qw5ru17su5tu}ft{17su5tu5qs}fu{17su5tu5qs}fv{17su5tu5qs}fw{17su5tu5qs}}}"),"Times-Roman":l("{'widths'{k3n2q4ycx2l201n3m201o6o201s2l201t2l201u2l201w2w201x2w201y2w2k1t2l2l202m2n2n3m2o3m2p5n202q6o2r1m2s2l2t2l2u3m2v3s2w1t2x2l2y1t2z1w3k3m3l3m3m3m3n3m3o3m3p3m3q3m3r3m3s3m203t2l203u2l3v1w3w3s3x3s3y3s3z2w4k5w4l4s4m4m4n4m4o4s4p3x4q3r4r4s4s4s4t2l4u2r4v4s4w3x4x5t4y4s4z4s5k3r5l4s5m4m5n3r5o3x5p4s5q4s5r5y5s4s5t4s5u3x5v2l5w1w5x2l5y2z5z3m6k2l6l2w6m3m6n2w6o3m6p2w6q2l6r3m6s3m6t1w6u1w6v3m6w1w6x4y6y3m6z3m7k3m7l3m7m2l7n2r7o1w7p3m7q3m7r4s7s3m7t3m7u2w7v3k7w1o7x3k7y3q202l3mcl4sal2lam3man3mao3map3mar3mas2lat4wau1vav3maw3say4waz2lbk2sbl3s'fof'6obo2lbp3mbq2xbr1tbs2lbu1zbv3mbz2wck4s202k3mcm4scn4sco4scp4scq5tcr4mcs3xct3xcu3xcv3xcw2l2m2tcy2lcz2ldl4sdm4sdn4sdo4sdp4sdq4sds4sdt4sdu4sdv4sdw4sdz3mek2wel2wem2wen2weo2wep2weq4mer2wes2wet2weu2wev2wew1wex1wey1wez1wfl3mfm3mfn3mfo3mfp3mfq3mfr3sfs3mft3mfu3mfv3mfw3mfz3m203k6o212m6m2dw2l2cq2l3t3m3u1w17s4s19m3m}'kerning'{cl{4qs5ku17sw5ou5qy5rw201ss5tw201ws}201s{201ss}201t{ckw4lwcmwcnwcowcpwclw4wu201ts}2k{201ts}2w{4qs5kw5os5qx5ru17sx5tx}2x{17sw5tw5ou5qu}2y{4qs5kw5os5qx5ru17sx5tx}'fof'-6o7t{ckuclucmucnucoucpu4lu5os5rs}3u{17su5tu5qs}3v{17su5tu5qs}7p{17sw5tw5qs}ck{4qs5ku17sw5ou5qy5rw201ss5tw201ws}4l{4qs5ku17sw5ou5qy5rw201ss5tw201ws}cm{4qs5ku17sw5ou5qy5rw201ss5tw201ws}cn{4qs5ku17sw5ou5qy5rw201ss5tw201ws}co{4qs5ku17sw5ou5qy5rw201ss5tw201ws}cp{4qs5ku17sw5ou5qy5rw201ss5tw201ws}6l{17su5tu5os5qw5rs}17s{2ktclvcmvcnvcovcpv4lv4wuckv}5o{ckwclwcmwcnwcowcpw4lw4wu}5q{ckyclycmycnycoycpy4ly4wu5ms}5r{cktcltcmtcntcotcpt4lt4ws}5t{2ktclvcmvcnvcovcpv4lv4wuckv}7q{cksclscmscnscoscps4ls}6p{17su5tu5qw5rs}ek{5qs5rs}el{17su5tu5os5qw5rs}em{17su5tu5os5qs5rs}en{17su5qs5rs}eo{5qs5rs}ep{17su5tu5os5qw5rs}es{5qs}et{17su5tu5qw5rs}eu{17su5tu5qs5rs}ev{5qs}6z{17sv5tv5os5qx5rs}fm{5os5qt5rs}fn{17sv5tv5os5qx5rs}fo{17sv5tv5os5qx5rs}fp{5os5qt5rs}fq{5os5qt5rs}7r{ckuclucmucnucoucpu4lu5os}fs{17sv5tv5os5qx5rs}ft{17ss5ts5qs}fu{17sw5tw5qs}fv{17sw5tw5qs}fw{17ss5ts5qs}fz{ckuclucmucnucoucpu4lu5os5rs}}}"),"Helvetica-Oblique":l("{'widths'{k3p2q4mcx1w201n3r201o6o201s1q201t1q201u1q201w2l201x2l201y2l2k1w2l1w202m2n2n3r2o3r2p5t202q6o2r1n2s2l2t2l2u2r2v3u2w1w2x2l2y1w2z1w3k3r3l3r3m3r3n3r3o3r3p3r3q3r3r3r3s3r203t2l203u2l3v1w3w3u3x3u3y3u3z3r4k6p4l4m4m4m4n4s4o4s4p4m4q3x4r4y4s4s4t1w4u3m4v4m4w3r4x5n4y4s4z4y5k4m5l4y5m4s5n4m5o3x5p4s5q4m5r5y5s4m5t4m5u3x5v1w5w1w5x1w5y2z5z3r6k2l6l3r6m3r6n3m6o3r6p3r6q1w6r3r6s3r6t1q6u1q6v3m6w1q6x5n6y3r6z3r7k3r7l3r7m2l7n3m7o1w7p3r7q3m7r4s7s3m7t3m7u3m7v2l7w1u7x2l7y3u202l3rcl4mal2lam3ran3rao3rap3rar3ras2lat4tau2pav3raw3uay4taz2lbk2sbl3u'fof'6obo2lbp3rbr1wbs2lbu2obv3rbz3xck4m202k3rcm4mcn4mco4mcp4mcq6ocr4scs4mct4mcu4mcv4mcw1w2m2ncy1wcz1wdl4sdm4ydn4ydo4ydp4ydq4yds4ydt4sdu4sdv4sdw4sdz3xek3rel3rem3ren3reo3rep3req5ter3mes3ret3reu3rev3rew1wex1wey1wez1wfl3rfm3rfn3rfo3rfp3rfq3rfr3ufs3xft3rfu3rfv3rfw3rfz3m203k6o212m6o2dw2l2cq2l3t3r3u1w17s4m19m3r}'kerning'{5q{4wv}cl{4qs5kw5ow5qs17sv5tv}201t{2wu4w1k2yu}201x{2wu4wy2yu}17s{2ktclucmucnu4otcpu4lu4wycoucku}2w{7qs4qz5k1m17sy5ow5qx5rsfsu5ty7tufzu}2x{17sy5ty5oy5qs}2y{7qs4qz5k1m17sy5ow5qx5rsfsu5ty7tufzu}'fof'-6o7p{17sv5tv5ow}ck{4qs5kw5ow5qs17sv5tv}4l{4qs5kw5ow5qs17sv5tv}cm{4qs5kw5ow5qs17sv5tv}cn{4qs5kw5ow5qs17sv5tv}co{4qs5kw5ow5qs17sv5tv}cp{4qs5kw5ow5qs17sv5tv}6l{17sy5ty5ow}do{17st5tt}4z{17st5tt}7s{fst}dm{17st5tt}dn{17st5tt}5o{ckwclwcmwcnwcowcpw4lw4wv}dp{17st5tt}dq{17st5tt}7t{5ow}ds{17st5tt}5t{2ktclucmucnu4otcpu4lu4wycoucku}fu{17sv5tv5ow}6p{17sy5ty5ow5qs}ek{17sy5ty5ow}el{17sy5ty5ow}em{17sy5ty5ow}en{5ty}eo{17sy5ty5ow}ep{17sy5ty5ow}es{17sy5ty5qs}et{17sy5ty5ow5qs}eu{17sy5ty5ow5qs}ev{17sy5ty5ow5qs}6z{17sy5ty5ow5qs}fm{17sy5ty5ow5qs}fn{17sy5ty5ow5qs}fo{17sy5ty5ow5qs}fp{17sy5ty5qs}fq{17sy5ty5ow5qs}7r{5ow}fs{17sy5ty5ow5qs}ft{17sv5tv5ow}7m{5ow}fv{17sv5tv5ow}fw{17sv5tv5ow}}}")}};e.events.push(["addFont",function(h){var m=h.font,p=f.Unicode[m.postScriptName];p&&(m.metadata.Unicode={},m.metadata.Unicode.widths=p.widths,m.metadata.Unicode.kerning=p.kerning);var A=u.Unicode[m.postScriptName];A&&(m.metadata.Unicode.encoding=A,m.encoding=A.codePages[0])}])})(Wn.API),(function(e){var t=function(n){for(var r=n.length,i=new Uint8Array(r),a=0;a<r;a++)i[a]=n.charCodeAt(a);return i};e.API.events.push(["addFont",function(n){var r=void 0,i=n.font,a=n.instance;if(!i.isStandardFont){if(a===void 0)throw new Error("Font does not exist in vFS, import fonts or remove declaration doc.addFont('"+i.postScriptName+"').");if(typeof(r=a.existsFileInVFS(i.postScriptName)===!1?a.loadFile(i.postScriptName):a.getFileFromVFS(i.postScriptName))!="string")throw new Error("Font is not stored as string-data in vFS, import fonts or remove declaration doc.addFont('"+i.postScriptName+"').");(function(o,s){s=/^\x00\x01\x00\x00/.test(s)?t(s):t(dj(s)),o.metadata=e.API.TTFFont.open(s),o.metadata.Unicode=o.metadata.Unicode||{encoding:{},kerning:{},widths:[]},o.metadata.glyIdsUsed=[0]})(i,r)}}])})(Wn),Wn.API.addSvgAsImage=function(e,t,n,r,i,a,o,s){if(isNaN(t)||isNaN(n))throw ma.error("jsPDF.addSvgAsImage: Invalid coordinates",arguments),new Error("Invalid coordinates passed to jsPDF.addSvgAsImage");if(isNaN(r)||isNaN(i))throw ma.error("jsPDF.addSvgAsImage: Invalid measurements",arguments),new Error("Invalid measurements (width and/or height) passed to jsPDF.addSvgAsImage");var l=document.createElement("canvas");l.width=r,l.height=i;var c=l.getContext("2d");c.fillStyle="#fff",c.fillRect(0,0,l.width,l.height);var u={ignoreMouse:!0,ignoreAnimation:!0,ignoreDimensions:!0},f=this;return(wr.canvg?Promise.resolve(wr.canvg):FH(()=>import("./index.es-CKBcEC7o.js"),[])).catch(function(h){return Promise.reject(new Error("Could not load canvg: "+h))}).then(function(h){return h.default?h.default:h}).then(function(h){return h.fromString(c,e,u)},function(){return Promise.reject(new Error("Could not load canvg."))}).then(function(h){return h.render(u)}).then(function(){f.addImage(l.toDataURL("image/jpeg",1),t,n,r,i,o,s)})},Wn.API.putTotalPages=function(e){var t,n=0;parseInt(this.internal.getFont().id.substr(1),10)<15?(t=new RegExp(e,"g"),n=this.internal.getNumberOfPages()):(t=new RegExp(this.pdfEscape16(e,this.internal.getFont()),"g"),n=this.pdfEscape16(this.internal.getNumberOfPages()+"",this.internal.getFont()));for(var r=1;r<=this.internal.getNumberOfPages();r++)for(var i=0;i<this.internal.pages[r].length;i++)this.internal.pages[r][i]=this.internal.pages[r][i].replace(t,n);return this},Wn.API.viewerPreferences=function(e,t){var n;e=e||{},t=t||!1;var r,i,a,o={HideToolbar:{defaultValue:!1,value:!1,type:"boolean",explicitSet:!1,valueSet:[!0,!1],pdfVersion:1.3},HideMenubar:{defaultValue:!1,value:!1,type:"boolean",explicitSet:!1,valueSet:[!0,!1],pdfVersion:1.3},HideWindowUI:{defaultValue:!1,value:!1,type:"boolean",explicitSet:!1,valueSet:[!0,!1],pdfVersion:1.3},FitWindow:{defaultValue:!1,value:!1,type:"boolean",explicitSet:!1,valueSet:[!0,!1],pdfVersion:1.3},CenterWindow:{defaultValue:!1,value:!1,type:"boolean",explicitSet:!1,valueSet:[!0,!1],pdfVersion:1.3},DisplayDocTitle:{defaultValue:!1,value:!1,type:"boolean",explicitSet:!1,valueSet:[!0,!1],pdfVersion:1.4},NonFullScreenPageMode:{defaultValue:"UseNone",value:"UseNone",type:"name",explicitSet:!1,valueSet:["UseNone","UseOutlines","UseThumbs","UseOC"],pdfVersion:1.3},Direction:{defaultValue:"L2R",value:"L2R",type:"name",explicitSet:!1,valueSet:["L2R","R2L"],pdfVersion:1.3},ViewArea:{defaultValue:"CropBox",value:"CropBox",type:"name",explicitSet:!1,valueSet:["MediaBox","CropBox","TrimBox","BleedBox","ArtBox"],pdfVersion:1.4},ViewClip:{defaultValue:"CropBox",value:"CropBox",type:"name",explicitSet:!1,valueSet:["MediaBox","CropBox","TrimBox","BleedBox","ArtBox"],pdfVersion:1.4},PrintArea:{defaultValue:"CropBox",value:"CropBox",type:"name",explicitSet:!1,valueSet:["MediaBox","CropBox","TrimBox","BleedBox","ArtBox"],pdfVersion:1.4},PrintClip:{defaultValue:"CropBox",value:"CropBox",type:"name",explicitSet:!1,valueSet:["MediaBox","CropBox","TrimBox","BleedBox","ArtBox"],pdfVersion:1.4},PrintScaling:{defaultValue:"AppDefault",value:"AppDefault",type:"name",explicitSet:!1,valueSet:["AppDefault","None"],pdfVersion:1.6},Duplex:{defaultValue:"",value:"none",type:"name",explicitSet:!1,valueSet:["Simplex","DuplexFlipShortEdge","DuplexFlipLongEdge","none"],pdfVersion:1.7},PickTrayByPDFSize:{defaultValue:!1,value:!1,type:"boolean",explicitSet:!1,valueSet:[!0,!1],pdfVersion:1.7},PrintPageRange:{defaultValue:"",value:"",type:"array",explicitSet:!1,valueSet:null,pdfVersion:1.7},NumCopies:{defaultValue:1,value:1,type:"integer",explicitSet:!1,valueSet:null,pdfVersion:1.7}},s=Object.keys(o),l=[],c=0,u=0,f=0;function h(p,A){var v,y=!1;for(v=0;v<p.length;v+=1)p[v]===A&&(y=!0);return y}if(this.internal.viewerpreferences===void 0&&(this.internal.viewerpreferences={},this.internal.viewerpreferences.configuration=JSON.parse(JSON.stringify(o)),this.internal.viewerpreferences.isSubscribed=!1),n=this.internal.viewerpreferences.configuration,e==="reset"||t===!0){var m=s.length;for(f=0;f<m;f+=1)n[s[f]].value=n[s[f]].defaultValue,n[s[f]].explicitSet=!1}if(Zi(e)==="object"){for(i in e)if(a=e[i],h(s,i)&&a!==void 0){if(n[i].type==="boolean"&&typeof a=="boolean")n[i].value=a;else if(n[i].type==="name"&&h(n[i].valueSet,a))n[i].value=a;else if(n[i].type==="integer"&&Number.isInteger(a))n[i].value=a;else if(n[i].type==="array"){for(c=0;c<a.length;c+=1)if(r=!0,a[c].length===1&&typeof a[c][0]=="number")l.push(String(a[c]-1));else if(a[c].length>1){for(u=0;u<a[c].length;u+=1)typeof a[c][u]!="number"&&(r=!1);r===!0&&l.push([a[c][0]-1,a[c][1]-1].join(" "))}n[i].value="["+l.join(" ")+"]"}else n[i].value=n[i].defaultValue;n[i].explicitSet=!0}}return this.internal.viewerpreferences.isSubscribed===!1&&(this.internal.events.subscribe("putCatalog",function(){var p,A=[];for(p in n)n[p].explicitSet===!0&&(n[p].type==="name"?A.push("/"+p+" /"+n[p].value):A.push("/"+p+" "+n[p].value));A.length!==0&&this.internal.write(`/ViewerPreferences
816
816
  <<
817
817
  `+A.join(`
818
818
  `)+`
@@ -1,4 +1,4 @@
1
- import{_ as Va,c as La,p as ar,g as al}from"./index-CnTIdkah.js";function Xl(n,e){if(Va(n)!="object"||!n)return n;var r=n[Symbol.toPrimitive];if(r!==void 0){var t=r.call(n,e);if(Va(t)!="object")return t;throw new TypeError("@@toPrimitive must return a primitive value.")}return(e==="string"?String:Number)(n)}function Kl(n){var e=Xl(n,"string");return Va(e)=="symbol"?e:e+""}function Ua(n,e,r){return(e=Kl(e))in n?Object.defineProperty(n,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):n[e]=r,n}var cn={},vn={},vr,gn;function Q(){if(gn)return vr;gn=1;var n=function(e){return e&&e.Math===Math&&e};return vr=n(typeof globalThis=="object"&&globalThis)||n(typeof window=="object"&&window)||n(typeof self=="object"&&self)||n(typeof La=="object"&&La)||n(typeof vr=="object"&&vr)||(function(){return this})()||Function("return this")(),vr}var Zr={},Jr,dn;function Z(){return dn||(dn=1,Jr=function(n){try{return!!n()}catch{return!0}}),Jr}var et,pn;function we(){if(pn)return et;pn=1;var n=Z();return et=!n(function(){return Object.defineProperty({},1,{get:function(){return 7}})[1]!==7}),et}var rt,yn;function Ir(){if(yn)return rt;yn=1;var n=Z();return rt=!n(function(){var e=(function(){}).bind();return typeof e!="function"||e.hasOwnProperty("prototype")}),rt}var tt,mn;function ne(){if(mn)return tt;mn=1;var n=Ir(),e=Function.prototype.call;return tt=n?e.bind(e):function(){return e.apply(e,arguments)},tt}var it={},bn;function Ql(){if(bn)return it;bn=1;var n={}.propertyIsEnumerable,e=Object.getOwnPropertyDescriptor,r=e&&!n.call({1:2},1);return it.f=r?function(i){var a=e(this,i);return!!a&&a.enumerable}:n,it}var at,xn;function Ga(){return xn||(xn=1,at=function(n,e){return{enumerable:!(n&1),configurable:!(n&2),writable:!(n&4),value:e}}),at}var nt,On;function J(){if(On)return nt;On=1;var n=Ir(),e=Function.prototype,r=e.call,t=n&&e.bind.bind(r,r);return nt=n?t:function(i){return function(){return r.apply(i,arguments)}},nt}var st,Tn;function er(){if(Tn)return st;Tn=1;var n=J(),e=n({}.toString),r=n("".slice);return st=function(t){return r(e(t),8,-1)},st}var ot,Sn;function nl(){if(Sn)return ot;Sn=1;var n=J(),e=Z(),r=er(),t=Object,i=n("".split);return ot=e(function(){return!t("z").propertyIsEnumerable(0)})?function(a){return r(a)==="String"?i(a,""):t(a)}:t,ot}var ut,En;function Nr(){return En||(En=1,ut=function(n){return n==null}),ut}var lt,Rn;function Pe(){if(Rn)return lt;Rn=1;var n=Nr(),e=TypeError;return lt=function(r){if(n(r))throw new e("Can't call method on "+r);return r},lt}var ht,Cn;function pr(){if(Cn)return ht;Cn=1;var n=nl(),e=Pe();return ht=function(r){return n(e(r))},ht}var ft,wn;function re(){if(wn)return ft;wn=1;var n=typeof document=="object"&&document.all;return ft=typeof n>"u"&&n!==void 0?function(e){return typeof e=="function"||e===n}:function(e){return typeof e=="function"},ft}var ct,Pn;function pe(){if(Pn)return ct;Pn=1;var n=re();return ct=function(e){return typeof e=="object"?e!==null:n(e)},ct}var vt,An;function rr(){if(An)return vt;An=1;var n=Q(),e=re(),r=function(t){return e(t)?t:void 0};return vt=function(t,i){return arguments.length<2?r(n[t]):n[t]&&n[t][i]},vt}var gt,In;function _r(){if(In)return gt;In=1;var n=J();return gt=n({}.isPrototypeOf),gt}var dt,Nn;function yr(){if(Nn)return dt;Nn=1;var n=Q(),e=n.navigator,r=e&&e.userAgent;return dt=r?String(r):"",dt}var pt,_n;function $a(){if(_n)return pt;_n=1;var n=Q(),e=yr(),r=n.process,t=n.Deno,i=r&&r.versions||t&&t.version,a=i&&i.v8,s,o;return a&&(s=a.split("."),o=s[0]>0&&s[0]<4?1:+(s[0]+s[1])),!o&&e&&(s=e.match(/Edge\/(\d+)/),(!s||s[1]>=74)&&(s=e.match(/Chrome\/(\d+)/),s&&(o=+s[1]))),pt=o,pt}var yt,Mn;function sl(){if(Mn)return yt;Mn=1;var n=$a(),e=Z(),r=Q(),t=r.String;return yt=!!Object.getOwnPropertySymbols&&!e(function(){var i=Symbol("symbol detection");return!t(i)||!(Object(i)instanceof Symbol)||!Symbol.sham&&n&&n<41}),yt}var mt,qn;function ol(){if(qn)return mt;qn=1;var n=sl();return mt=n&&!Symbol.sham&&typeof Symbol.iterator=="symbol",mt}var bt,Dn;function ul(){if(Dn)return bt;Dn=1;var n=rr(),e=re(),r=_r(),t=ol(),i=Object;return bt=t?function(a){return typeof a=="symbol"}:function(a){var s=n("Symbol");return e(s)&&r(s.prototype,i(a))},bt}var xt,Vn;function Mr(){if(Vn)return xt;Vn=1;var n=String;return xt=function(e){try{return n(e)}catch{return"Object"}},xt}var Ot,Ln;function Fe(){if(Ln)return Ot;Ln=1;var n=re(),e=Mr(),r=TypeError;return Ot=function(t){if(n(t))return t;throw new r(e(t)+" is not a function")},Ot}var Tt,kn;function sr(){if(kn)return Tt;kn=1;var n=Fe(),e=Nr();return Tt=function(r,t){var i=r[t];return e(i)?void 0:n(i)},Tt}var St,jn;function Zl(){if(jn)return St;jn=1;var n=ne(),e=re(),r=pe(),t=TypeError;return St=function(i,a){var s,o;if(a==="string"&&e(s=i.toString)&&!r(o=n(s,i))||e(s=i.valueOf)&&!r(o=n(s,i))||a!=="string"&&e(s=i.toString)&&!r(o=n(s,i)))return o;throw new t("Can't convert object to primitive value")},St}var Et={exports:{}},Rt,Bn;function Me(){return Bn||(Bn=1,Rt=!1),Rt}var Ct,Fn;function za(){if(Fn)return Ct;Fn=1;var n=Q(),e=Object.defineProperty;return Ct=function(r,t){try{e(n,r,{value:t,configurable:!0,writable:!0})}catch{n[r]=t}return t},Ct}var Un;function Ha(){if(Un)return Et.exports;Un=1;var n=Me(),e=Q(),r=za(),t="__core-js_shared__",i=Et.exports=e[t]||r(t,{});return(i.versions||(i.versions=[])).push({version:"3.45.1",mode:n?"pure":"global",copyright:"© 2014-2025 Denis Pushkarev (zloirock.ru)",license:"https://github.com/zloirock/core-js/blob/v3.45.1/LICENSE",source:"https://github.com/zloirock/core-js"}),Et.exports}var wt,Gn;function Wa(){if(Gn)return wt;Gn=1;var n=Ha();return wt=function(e,r){return n[e]||(n[e]=r||{})},wt}var Pt,$n;function qr(){if($n)return Pt;$n=1;var n=Pe(),e=Object;return Pt=function(r){return e(n(r))},Pt}var At,zn;function Ae(){if(zn)return At;zn=1;var n=J(),e=qr(),r=n({}.hasOwnProperty);return At=Object.hasOwn||function(i,a){return r(e(i),a)},At}var It,Hn;function ll(){if(Hn)return It;Hn=1;var n=J(),e=0,r=Math.random(),t=n(1.1.toString);return It=function(i){return"Symbol("+(i===void 0?"":i)+")_"+t(++e+r,36)},It}var Nt,Wn;function ae(){if(Wn)return Nt;Wn=1;var n=Q(),e=Wa(),r=Ae(),t=ll(),i=sl(),a=ol(),s=n.Symbol,o=e("wks"),u=a?s.for||s:s&&s.withoutSetter||t;return Nt=function(l){return r(o,l)||(o[l]=i&&r(s,l)?s[l]:u("Symbol."+l)),o[l]},Nt}var _t,Yn;function Jl(){if(Yn)return _t;Yn=1;var n=ne(),e=pe(),r=ul(),t=sr(),i=Zl(),a=ae(),s=TypeError,o=a("toPrimitive");return _t=function(u,l){if(!e(u)||r(u))return u;var h=t(u,o),c;if(h){if(l===void 0&&(l="default"),c=n(h,u,l),!e(c)||r(c))return c;throw new s("Can't convert object to primitive value")}return l===void 0&&(l="number"),i(u,l)},_t}var Mt,Xn;function hl(){if(Xn)return Mt;Xn=1;var n=Jl(),e=ul();return Mt=function(r){var t=n(r,"string");return e(t)?t:t+""},Mt}var qt,Kn;function Dr(){if(Kn)return qt;Kn=1;var n=Q(),e=pe(),r=n.document,t=e(r)&&e(r.createElement);return qt=function(i){return t?r.createElement(i):{}},qt}var Dt,Qn;function fl(){if(Qn)return Dt;Qn=1;var n=we(),e=Z(),r=Dr();return Dt=!n&&!e(function(){return Object.defineProperty(r("div"),"a",{get:function(){return 7}}).a!==7}),Dt}var Zn;function Vr(){if(Zn)return Zr;Zn=1;var n=we(),e=ne(),r=Ql(),t=Ga(),i=pr(),a=hl(),s=Ae(),o=fl(),u=Object.getOwnPropertyDescriptor;return Zr.f=n?u:function(h,c){if(h=i(h),c=a(c),o)try{return u(h,c)}catch{}if(s(h,c))return t(!e(r.f,h,c),h[c])},Zr}var Vt={},Lt,Jn;function cl(){if(Jn)return Lt;Jn=1;var n=we(),e=Z();return Lt=n&&e(function(){return Object.defineProperty(function(){},"prototype",{value:42,writable:!1}).prototype!==42}),Lt}var kt,es;function le(){if(es)return kt;es=1;var n=pe(),e=String,r=TypeError;return kt=function(t){if(n(t))return t;throw new r(e(t)+" is not an object")},kt}var rs;function Ye(){if(rs)return Vt;rs=1;var n=we(),e=fl(),r=cl(),t=le(),i=hl(),a=TypeError,s=Object.defineProperty,o=Object.getOwnPropertyDescriptor,u="enumerable",l="configurable",h="writable";return Vt.f=n?r?function(v,f,g){if(t(v),f=i(f),t(g),typeof v=="function"&&f==="prototype"&&"value"in g&&h in g&&!g[h]){var d=o(v,f);d&&d[h]&&(v[f]=g.value,g={configurable:l in g?g[l]:d[l],enumerable:u in g?g[u]:d[u],writable:!1})}return s(v,f,g)}:s:function(v,f,g){if(t(v),f=i(f),t(g),e)try{return s(v,f,g)}catch{}if("get"in g||"set"in g)throw new a("Accessors not supported");return"value"in g&&(v[f]=g.value),v},Vt}var jt,ts;function mr(){if(ts)return jt;ts=1;var n=we(),e=Ye(),r=Ga();return jt=n?function(t,i,a){return e.f(t,i,r(1,a))}:function(t,i,a){return t[i]=a,t},jt}var Bt={exports:{}},Ft,is;function Lr(){if(is)return Ft;is=1;var n=we(),e=Ae(),r=Function.prototype,t=n&&Object.getOwnPropertyDescriptor,i=e(r,"name"),a=i&&(function(){}).name==="something",s=i&&(!n||n&&t(r,"name").configurable);return Ft={EXISTS:i,PROPER:a,CONFIGURABLE:s},Ft}var Ut,as;function Ya(){if(as)return Ut;as=1;var n=J(),e=re(),r=Ha(),t=n(Function.toString);return e(r.inspectSource)||(r.inspectSource=function(i){return t(i)}),Ut=r.inspectSource,Ut}var Gt,ns;function eh(){if(ns)return Gt;ns=1;var n=Q(),e=re(),r=n.WeakMap;return Gt=e(r)&&/native code/.test(String(r)),Gt}var $t,ss;function Xa(){if(ss)return $t;ss=1;var n=Wa(),e=ll(),r=n("keys");return $t=function(t){return r[t]||(r[t]=e(t))},$t}var zt,os;function Ka(){return os||(os=1,zt={}),zt}var Ht,us;function kr(){if(us)return Ht;us=1;var n=eh(),e=Q(),r=pe(),t=mr(),i=Ae(),a=Ha(),s=Xa(),o=Ka(),u="Object already initialized",l=e.TypeError,h=e.WeakMap,c,v,f,g=function(m){return f(m)?v(m):c(m,{})},d=function(m){return function(b){var x;if(!r(b)||(x=v(b)).type!==m)throw new l("Incompatible receiver, "+m+" required");return x}};if(n||a.state){var p=a.state||(a.state=new h);p.get=p.get,p.has=p.has,p.set=p.set,c=function(m,b){if(p.has(m))throw new l(u);return b.facade=m,p.set(m,b),b},v=function(m){return p.get(m)||{}},f=function(m){return p.has(m)}}else{var y=s("state");o[y]=!0,c=function(m,b){if(i(m,y))throw new l(u);return b.facade=m,t(m,y,b),b},v=function(m){return i(m,y)?m[y]:{}},f=function(m){return i(m,y)}}return Ht={set:c,get:v,has:f,enforce:g,getterFor:d},Ht}var ls;function vl(){if(ls)return Bt.exports;ls=1;var n=J(),e=Z(),r=re(),t=Ae(),i=we(),a=Lr().CONFIGURABLE,s=Ya(),o=kr(),u=o.enforce,l=o.get,h=String,c=Object.defineProperty,v=n("".slice),f=n("".replace),g=n([].join),d=i&&!e(function(){return c(function(){},"length",{value:8}).length!==8}),p=String(String).split("String"),y=Bt.exports=function(m,b,x){v(h(b),0,7)==="Symbol("&&(b="["+f(h(b),/^Symbol\(([^)]*)\).*$/,"$1")+"]"),x&&x.getter&&(b="get "+b),x&&x.setter&&(b="set "+b),(!t(m,"name")||a&&m.name!==b)&&(i?c(m,"name",{value:b,configurable:!0}):m.name=b),d&&x&&t(x,"arity")&&m.length!==x.arity&&c(m,"length",{value:x.arity});try{x&&t(x,"constructor")&&x.constructor?i&&c(m,"prototype",{writable:!1}):m.prototype&&(m.prototype=void 0)}catch{}var S=u(m);return t(S,"source")||(S.source=g(p,typeof b=="string"?b:"")),m};return Function.prototype.toString=y(function(){return r(this)&&l(this).source||s(this)},"toString"),Bt.exports}var Wt,hs;function tr(){if(hs)return Wt;hs=1;var n=re(),e=Ye(),r=vl(),t=za();return Wt=function(i,a,s,o){o||(o={});var u=o.enumerable,l=o.name!==void 0?o.name:a;if(n(s)&&r(s,l,o),o.global)u?i[a]=s:t(a,s);else{try{o.unsafe?i[a]&&(u=!0):delete i[a]}catch{}u?i[a]=s:e.f(i,a,{value:s,enumerable:!1,configurable:!o.nonConfigurable,writable:!o.nonWritable})}return i},Wt}var Yt={},Xt,fs;function rh(){if(fs)return Xt;fs=1;var n=Math.ceil,e=Math.floor;return Xt=Math.trunc||function(t){var i=+t;return(i>0?e:n)(i)},Xt}var Kt,cs;function jr(){if(cs)return Kt;cs=1;var n=rh();return Kt=function(e){var r=+e;return r!==r||r===0?0:n(r)},Kt}var Qt,vs;function th(){if(vs)return Qt;vs=1;var n=jr(),e=Math.max,r=Math.min;return Qt=function(t,i){var a=n(t);return a<0?e(a+i,0):r(a,i)},Qt}var Zt,gs;function or(){if(gs)return Zt;gs=1;var n=jr(),e=Math.min;return Zt=function(r){var t=n(r);return t>0?e(t,9007199254740991):0},Zt}var Jt,ds;function Qa(){if(ds)return Jt;ds=1;var n=or();return Jt=function(e){return n(e.length)},Jt}var ei,ps;function gl(){if(ps)return ei;ps=1;var n=pr(),e=th(),r=Qa(),t=function(i){return function(a,s,o){var u=n(a),l=r(u);if(l===0)return!i&&-1;var h=e(o,l),c;if(i&&s!==s){for(;l>h;)if(c=u[h++],c!==c)return!0}else for(;l>h;h++)if((i||h in u)&&u[h]===s)return i||h||0;return!i&&-1}};return ei={includes:t(!0),indexOf:t(!1)},ei}var ri,ys;function dl(){if(ys)return ri;ys=1;var n=J(),e=Ae(),r=pr(),t=gl().indexOf,i=Ka(),a=n([].push);return ri=function(s,o){var u=r(s),l=0,h=[],c;for(c in u)!e(i,c)&&e(u,c)&&a(h,c);for(;o.length>l;)e(u,c=o[l++])&&(~t(h,c)||a(h,c));return h},ri}var ti,ms;function Za(){return ms||(ms=1,ti=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"]),ti}var bs;function ih(){if(bs)return Yt;bs=1;var n=dl(),e=Za(),r=e.concat("length","prototype");return Yt.f=Object.getOwnPropertyNames||function(i){return n(i,r)},Yt}var ii={},xs;function ah(){return xs||(xs=1,ii.f=Object.getOwnPropertySymbols),ii}var ai,Os;function nh(){if(Os)return ai;Os=1;var n=rr(),e=J(),r=ih(),t=ah(),i=le(),a=e([].concat);return ai=n("Reflect","ownKeys")||function(o){var u=r.f(i(o)),l=t.f;return l?a(u,l(o)):u},ai}var ni,Ts;function sh(){if(Ts)return ni;Ts=1;var n=Ae(),e=nh(),r=Vr(),t=Ye();return ni=function(i,a,s){for(var o=e(a),u=t.f,l=r.f,h=0;h<o.length;h++){var c=o[h];!n(i,c)&&!(s&&n(s,c))&&u(i,c,l(a,c))}},ni}var si,Ss;function pl(){if(Ss)return si;Ss=1;var n=Z(),e=re(),r=/#|\.prototype\./,t=function(u,l){var h=a[i(u)];return h===o?!0:h===s?!1:e(l)?n(l):!!l},i=t.normalize=function(u){return String(u).replace(r,".").toLowerCase()},a=t.data={},s=t.NATIVE="N",o=t.POLYFILL="P";return si=t,si}var oi,Es;function he(){if(Es)return oi;Es=1;var n=Q(),e=Vr().f,r=mr(),t=tr(),i=za(),a=sh(),s=pl();return oi=function(o,u){var l=o.target,h=o.global,c=o.stat,v,f,g,d,p,y;if(h?f=n:c?f=n[l]||i(l,{}):f=n[l]&&n[l].prototype,f)for(g in u){if(p=u[g],o.dontCallGetSet?(y=e(f,g),d=y&&y.value):d=f[g],v=s(h?g:l+(c?".":"#")+g,o.forced),!v&&d!==void 0){if(typeof p==typeof d)continue;a(p,d)}(o.sham||d&&d.sham)&&r(p,"sham",!0),t(f,g,p,o)}},oi}var ui,Rs;function yl(){if(Rs)return ui;Rs=1;var n=Q(),e=yr(),r=er(),t=function(i){return e.slice(0,i.length)===i};return ui=(function(){return t("Bun/")?"BUN":t("Cloudflare-Workers")?"CLOUDFLARE":t("Deno/")?"DENO":t("Node.js/")?"NODE":n.Bun&&typeof Bun.version=="string"?"BUN":n.Deno&&typeof Deno.version=="object"?"DENO":r(n.process)==="process"?"NODE":n.window&&n.document?"BROWSER":"REST"})(),ui}var li,Cs;function Br(){if(Cs)return li;Cs=1;var n=yl();return li=n==="NODE",li}var hi,ws;function oh(){if(ws)return hi;ws=1;var n=Q();return hi=n,hi}var fi,Ps;function uh(){if(Ps)return fi;Ps=1;var n=J(),e=Fe();return fi=function(r,t,i){try{return n(e(Object.getOwnPropertyDescriptor(r,t)[i]))}catch{}},fi}var ci,As;function lh(){if(As)return ci;As=1;var n=pe();return ci=function(e){return n(e)||e===null},ci}var vi,Is;function hh(){if(Is)return vi;Is=1;var n=lh(),e=String,r=TypeError;return vi=function(t){if(n(t))return t;throw new r("Can't set "+e(t)+" as a prototype")},vi}var gi,Ns;function ml(){if(Ns)return gi;Ns=1;var n=uh(),e=pe(),r=Pe(),t=hh();return gi=Object.setPrototypeOf||("__proto__"in{}?(function(){var i=!1,a={},s;try{s=n(Object.prototype,"__proto__","set"),s(a,[]),i=a instanceof Array}catch{}return function(u,l){return r(u),t(l),e(u)&&(i?s(u,l):u.__proto__=l),u}})():void 0),gi}var di,_s;function Fr(){if(_s)return di;_s=1;var n=Ye().f,e=Ae(),r=ae(),t=r("toStringTag");return di=function(i,a,s){i&&!s&&(i=i.prototype),i&&!e(i,t)&&n(i,t,{configurable:!0,value:a})},di}var pi,Ms;function fh(){if(Ms)return pi;Ms=1;var n=vl(),e=Ye();return pi=function(r,t,i){return i.get&&n(i.get,t,{getter:!0}),i.set&&n(i.set,t,{setter:!0}),e.f(r,t,i)},pi}var yi,qs;function ch(){if(qs)return yi;qs=1;var n=rr(),e=fh(),r=ae(),t=we(),i=r("species");return yi=function(a){var s=n(a);t&&s&&!s[i]&&e(s,i,{configurable:!0,get:function(){return this}})},yi}var mi,Ds;function vh(){if(Ds)return mi;Ds=1;var n=_r(),e=TypeError;return mi=function(r,t){if(n(t,r))return r;throw new e("Incorrect invocation")},mi}var bi,Vs;function gh(){if(Vs)return bi;Vs=1;var n=ae(),e=n("toStringTag"),r={};return r[e]="z",bi=String(r)==="[object z]",bi}var xi,Ls;function Ja(){if(Ls)return xi;Ls=1;var n=gh(),e=re(),r=er(),t=ae(),i=t("toStringTag"),a=Object,s=r((function(){return arguments})())==="Arguments",o=function(u,l){try{return u[l]}catch{}};return xi=n?r:function(u){var l,h,c;return u===void 0?"Undefined":u===null?"Null":typeof(h=o(l=a(u),i))=="string"?h:s?r(l):(c=r(l))==="Object"&&e(l.callee)?"Arguments":c},xi}var Oi,ks;function dh(){if(ks)return Oi;ks=1;var n=J(),e=Z(),r=re(),t=Ja(),i=rr(),a=Ya(),s=function(){},o=i("Reflect","construct"),u=/^\s*(?:class|function)\b/,l=n(u.exec),h=!u.test(s),c=function(g){if(!r(g))return!1;try{return o(s,[],g),!0}catch{return!1}},v=function(g){if(!r(g))return!1;switch(t(g)){case"AsyncFunction":case"GeneratorFunction":case"AsyncGeneratorFunction":return!1}try{return h||!!l(u,a(g))}catch{return!0}};return v.sham=!0,Oi=!o||e(function(){var f;return c(c.call)||!c(Object)||!c(function(){f=!0})||f})?v:c,Oi}var Ti,js;function ph(){if(js)return Ti;js=1;var n=dh(),e=Mr(),r=TypeError;return Ti=function(t){if(n(t))return t;throw new r(e(t)+" is not a constructor")},Ti}var Si,Bs;function bl(){if(Bs)return Si;Bs=1;var n=le(),e=ph(),r=Nr(),t=ae(),i=t("species");return Si=function(a,s){var o=n(a).constructor,u;return o===void 0||r(u=n(o)[i])?s:e(u)},Si}var Ei,Fs;function xl(){if(Fs)return Ei;Fs=1;var n=Ir(),e=Function.prototype,r=e.apply,t=e.call;return Ei=typeof Reflect=="object"&&Reflect.apply||(n?t.bind(r):function(){return t.apply(r,arguments)}),Ei}var Ri,Us;function Ur(){if(Us)return Ri;Us=1;var n=er(),e=J();return Ri=function(r){if(n(r)==="Function")return e(r)},Ri}var Ci,Gs;function en(){if(Gs)return Ci;Gs=1;var n=Ur(),e=Fe(),r=Ir(),t=n(n.bind);return Ci=function(i,a){return e(i),a===void 0?i:r?t(i,a):function(){return i.apply(a,arguments)}},Ci}var wi,$s;function Ol(){if($s)return wi;$s=1;var n=rr();return wi=n("document","documentElement"),wi}var Pi,zs;function yh(){if(zs)return Pi;zs=1;var n=J();return Pi=n([].slice),Pi}var Ai,Hs;function mh(){if(Hs)return Ai;Hs=1;var n=TypeError;return Ai=function(e,r){if(e<r)throw new n("Not enough arguments");return e},Ai}var Ii,Ws;function Tl(){if(Ws)return Ii;Ws=1;var n=yr();return Ii=/(?:ipad|iphone|ipod).*applewebkit/i.test(n),Ii}var Ni,Ys;function Sl(){if(Ys)return Ni;Ys=1;var n=Q(),e=xl(),r=en(),t=re(),i=Ae(),a=Z(),s=Ol(),o=yh(),u=Dr(),l=mh(),h=Tl(),c=Br(),v=n.setImmediate,f=n.clearImmediate,g=n.process,d=n.Dispatch,p=n.Function,y=n.MessageChannel,m=n.String,b=0,x={},S="onreadystatechange",E,O,P,_;a(function(){E=n.location});var A=function(C){if(i(x,C)){var w=x[C];delete x[C],w()}},q=function(C){return function(){A(C)}},I=function(C){A(C.data)},j=function(C){n.postMessage(m(C),E.protocol+"//"+E.host)};return(!v||!f)&&(v=function(w){l(arguments.length,1);var U=t(w)?w:p(w),L=o(arguments,1);return x[++b]=function(){e(U,void 0,L)},O(b),b},f=function(w){delete x[w]},c?O=function(C){g.nextTick(q(C))}:d&&d.now?O=function(C){d.now(q(C))}:y&&!h?(P=new y,_=P.port2,P.port1.onmessage=I,O=r(_.postMessage,_)):n.addEventListener&&t(n.postMessage)&&!n.importScripts&&E&&E.protocol!=="file:"&&!a(j)?(O=j,n.addEventListener("message",I,!1)):S in u("script")?O=function(C){s.appendChild(u("script"))[S]=function(){s.removeChild(this),A(C)}}:O=function(C){setTimeout(q(C),0)}),Ni={set:v,clear:f},Ni}var _i,Xs;function bh(){if(Xs)return _i;Xs=1;var n=Q(),e=we(),r=Object.getOwnPropertyDescriptor;return _i=function(t){if(!e)return n[t];var i=r(n,t);return i&&i.value},_i}var Mi,Ks;function El(){if(Ks)return Mi;Ks=1;var n=function(){this.head=null,this.tail=null};return n.prototype={add:function(e){var r={item:e,next:null},t=this.tail;t?t.next=r:this.head=r,this.tail=r},get:function(){var e=this.head;if(e){var r=this.head=e.next;return r===null&&(this.tail=null),e.item}}},Mi=n,Mi}var qi,Qs;function xh(){if(Qs)return qi;Qs=1;var n=yr();return qi=/ipad|iphone|ipod/i.test(n)&&typeof Pebble<"u",qi}var Di,Zs;function Oh(){if(Zs)return Di;Zs=1;var n=yr();return Di=/web0s(?!.*chrome)/i.test(n),Di}var Vi,Js;function Th(){if(Js)return Vi;Js=1;var n=Q(),e=bh(),r=en(),t=Sl().set,i=El(),a=Tl(),s=xh(),o=Oh(),u=Br(),l=n.MutationObserver||n.WebKitMutationObserver,h=n.document,c=n.process,v=n.Promise,f=e("queueMicrotask"),g,d,p,y,m;if(!f){var b=new i,x=function(){var S,E;for(u&&(S=c.domain)&&S.exit();E=b.get();)try{E()}catch(O){throw b.head&&g(),O}S&&S.enter()};!a&&!u&&!o&&l&&h?(d=!0,p=h.createTextNode(""),new l(x).observe(p,{characterData:!0}),g=function(){p.data=d=!d}):!s&&v&&v.resolve?(y=v.resolve(void 0),y.constructor=v,m=r(y.then,y),g=function(){m(x)}):u?g=function(){c.nextTick(x)}:(t=r(t,n),g=function(){t(x)}),f=function(S){b.head||g(),b.add(S)}}return Vi=f,Vi}var Li,eo;function Sh(){return eo||(eo=1,Li=function(n,e){try{arguments.length===1?console.error(n):console.error(n,e)}catch{}}),Li}var ki,ro;function rn(){return ro||(ro=1,ki=function(n){try{return{error:!1,value:n()}}catch(e){return{error:!0,value:e}}}),ki}var ji,to;function br(){if(to)return ji;to=1;var n=Q();return ji=n.Promise,ji}var Bi,io;function xr(){if(io)return Bi;io=1;var n=Q(),e=br(),r=re(),t=pl(),i=Ya(),a=ae(),s=yl(),o=Me(),u=$a(),l=e&&e.prototype,h=a("species"),c=!1,v=r(n.PromiseRejectionEvent),f=t("Promise",function(){var g=i(e),d=g!==String(e);if(!d&&u===66||o&&!(l.catch&&l.finally))return!0;if(!u||u<51||!/native code/.test(g)){var p=new e(function(b){b(1)}),y=function(b){b(function(){},function(){})},m=p.constructor={};if(m[h]=y,c=p.then(function(){})instanceof y,!c)return!0}return!d&&(s==="BROWSER"||s==="DENO")&&!v});return Bi={CONSTRUCTOR:f,REJECTION_EVENT:v,SUBCLASSING:c},Bi}var Fi={},ao;function Or(){if(ao)return Fi;ao=1;var n=Fe(),e=TypeError,r=function(t){var i,a;this.promise=new t(function(s,o){if(i!==void 0||a!==void 0)throw new e("Bad Promise constructor");i=s,a=o}),this.resolve=n(i),this.reject=n(a)};return Fi.f=function(t){return new r(t)},Fi}var no;function Eh(){if(no)return vn;no=1;var n=he(),e=Me(),r=Br(),t=Q(),i=oh(),a=ne(),s=tr(),o=ml(),u=Fr(),l=ch(),h=Fe(),c=re(),v=pe(),f=vh(),g=bl(),d=Sl().set,p=Th(),y=Sh(),m=rn(),b=El(),x=kr(),S=br(),E=xr(),O=Or(),P="Promise",_=E.CONSTRUCTOR,A=E.REJECTION_EVENT,q=E.SUBCLASSING,I=x.getterFor(P),j=x.set,C=S&&S.prototype,w=S,U=C,L=t.TypeError,V=t.document,M=t.process,N=O.f,k=N,z=!!(V&&V.createEvent&&t.dispatchEvent),H="unhandledrejection",X="rejectionhandled",se=0,be=1,oe=2,Ue=1,Ge=2,fe,Ne,_e,me,ce=function(R){var B;return v(R)&&c(B=R.then)?B:!1},xe=function(R,B){var G=B.value,$=B.state===be,W=$?R.ok:R.fail,Te=R.resolve,Le=R.reject,Se=R.domain,Ee,hr,fr;try{W?($||(B.rejection===Ge&&$e(B),B.rejection=Ue),W===!0?Ee=G:(Se&&Se.enter(),Ee=W(G),Se&&(Se.exit(),fr=!0)),Ee===R.promise?Le(new L("Promise-chain cycle")):(hr=ce(Ee))?a(hr,Ee,Te,Le):Te(Ee)):Le(G)}catch(cr){Se&&!fr&&Se.exit(),Le(cr)}},De=function(R,B){R.notified||(R.notified=!0,p(function(){for(var G=R.reactions,$;$=G.get();)xe($,R);R.notified=!1,B&&!R.rejection&&Xe(R)}))},Ve=function(R,B,G){var $,W;z?($=V.createEvent("Event"),$.promise=B,$.reason=G,$.initEvent(R,!1,!0),t.dispatchEvent($)):$={promise:B,reason:G},!A&&(W=t["on"+R])?W($):R===H&&y("Unhandled promise rejection",G)},Xe=function(R){a(d,t,function(){var B=R.facade,G=R.value,$=lr(R),W;if($&&(W=m(function(){r?M.emit("unhandledRejection",G,B):Ve(H,B,G)}),R.rejection=r||lr(R)?Ge:Ue,W.error))throw W.value})},lr=function(R){return R.rejection!==Ue&&!R.parent},$e=function(R){a(d,t,function(){var B=R.facade;r?M.emit("rejectionHandled",B):Ve(X,B,R.value)})},ve=function(R,B,G){return function($){R(B,$,G)}},ge=function(R,B,G){R.done||(R.done=!0,G&&(R=G),R.value=B,R.state=oe,De(R,!0))},Oe=function(R,B,G){if(!R.done){R.done=!0,G&&(R=G);try{if(R.facade===B)throw new L("Promise can't be resolved itself");var $=ce(B);$?p(function(){var W={done:!1};try{a($,B,ve(Oe,W,R),ve(ge,W,R))}catch(Te){ge(W,Te,R)}}):(R.value=B,R.state=be,De(R,!1))}catch(W){ge({done:!1},W,R)}}};if(_&&(w=function(B){f(this,U),h(B),a(fe,this);var G=I(this);try{B(ve(Oe,G),ve(ge,G))}catch($){ge(G,$)}},U=w.prototype,fe=function(B){j(this,{type:P,done:!1,notified:!1,parent:!1,reactions:new b,rejection:!1,state:se,value:null})},fe.prototype=s(U,"then",function(B,G){var $=I(this),W=N(g(this,w));return $.parent=!0,W.ok=c(B)?B:!0,W.fail=c(G)&&G,W.domain=r?M.domain:void 0,$.state===se?$.reactions.add(W):p(function(){xe(W,$)}),W.promise}),Ne=function(){var R=new fe,B=I(R);this.promise=R,this.resolve=ve(Oe,B),this.reject=ve(ge,B)},O.f=N=function(R){return R===w||R===_e?new Ne(R):k(R)},!e&&c(S)&&C!==Object.prototype)){me=C.then,q||s(C,"then",function(B,G){var $=this;return new w(function(W,Te){a(me,$,W,Te)}).then(B,G)},{unsafe:!0});try{delete C.constructor}catch{}o&&o(C,U)}return n({global:!0,constructor:!0,wrap:!0,forced:_},{Promise:w}),_e=i.Promise,u(w,P,!1,!0),l(P),vn}var so={},Ui,oo;function Tr(){return oo||(oo=1,Ui={}),Ui}var Gi,uo;function Rh(){if(uo)return Gi;uo=1;var n=ae(),e=Tr(),r=n("iterator"),t=Array.prototype;return Gi=function(i){return i!==void 0&&(e.Array===i||t[r]===i)},Gi}var $i,lo;function Rl(){if(lo)return $i;lo=1;var n=Ja(),e=sr(),r=Nr(),t=Tr(),i=ae(),a=i("iterator");return $i=function(s){if(!r(s))return e(s,a)||e(s,"@@iterator")||t[n(s)]},$i}var zi,ho;function Ch(){if(ho)return zi;ho=1;var n=ne(),e=Fe(),r=le(),t=Mr(),i=Rl(),a=TypeError;return zi=function(s,o){var u=arguments.length<2?i(s):o;if(e(u))return r(n(u,s));throw new a(t(s)+" is not iterable")},zi}var Hi,fo;function wh(){if(fo)return Hi;fo=1;var n=ne(),e=le(),r=sr();return Hi=function(t,i,a){var s,o;e(t);try{if(s=r(t,"return"),!s){if(i==="throw")throw a;return a}s=n(s,t)}catch(u){o=!0,s=u}if(i==="throw")throw a;if(o)throw s;return e(s),a},Hi}var Wi,co;function Cl(){if(co)return Wi;co=1;var n=en(),e=ne(),r=le(),t=Mr(),i=Rh(),a=Qa(),s=_r(),o=Ch(),u=Rl(),l=wh(),h=TypeError,c=function(f,g){this.stopped=f,this.result=g},v=c.prototype;return Wi=function(f,g,d){var p=d&&d.that,y=!!(d&&d.AS_ENTRIES),m=!!(d&&d.IS_RECORD),b=!!(d&&d.IS_ITERATOR),x=!!(d&&d.INTERRUPTED),S=n(g,p),E,O,P,_,A,q,I,j=function(w){return E&&l(E,"normal"),new c(!0,w)},C=function(w){return y?(r(w),x?S(w[0],w[1],j):S(w[0],w[1])):x?S(w,j):S(w)};if(m)E=f.iterator;else if(b)E=f;else{if(O=u(f),!O)throw new h(t(f)+" is not iterable");if(i(O)){for(P=0,_=a(f);_>P;P++)if(A=C(f[P]),A&&s(v,A))return A;return new c(!1)}E=o(f,O)}for(q=m?f.next:E.next;!(I=e(q,E)).done;){try{A=C(I.value)}catch(w){l(E,"throw",w)}if(typeof A=="object"&&A&&s(v,A))return A}return new c(!1)},Wi}var Yi,vo;function Ph(){if(vo)return Yi;vo=1;var n=ae(),e=n("iterator"),r=!1;try{var t=0,i={next:function(){return{done:!!t++}},return:function(){r=!0}};i[e]=function(){return this},Array.from(i,function(){throw 2})}catch{}return Yi=function(a,s){try{if(!s&&!r)return!1}catch{return!1}var o=!1;try{var u={};u[e]=function(){return{next:function(){return{done:o=!0}}}},a(u)}catch{}return o},Yi}var Xi,go;function wl(){if(go)return Xi;go=1;var n=br(),e=Ph(),r=xr().CONSTRUCTOR;return Xi=r||!e(function(t){n.all(t).then(void 0,function(){})}),Xi}var po;function Ah(){if(po)return so;po=1;var n=he(),e=ne(),r=Fe(),t=Or(),i=rn(),a=Cl(),s=wl();return n({target:"Promise",stat:!0,forced:s},{all:function(u){var l=this,h=t.f(l),c=h.resolve,v=h.reject,f=i(function(){var g=r(l.resolve),d=[],p=0,y=1;a(u,function(m){var b=p++,x=!1;y++,e(g,l,m).then(function(S){x||(x=!0,d[b]=S,--y||c(d))},v)}),--y||c(d)});return f.error&&v(f.value),h.promise}}),so}var yo={},mo;function Ih(){if(mo)return yo;mo=1;var n=he(),e=Me(),r=xr().CONSTRUCTOR,t=br(),i=rr(),a=re(),s=tr(),o=t&&t.prototype;if(n({target:"Promise",proto:!0,forced:r,real:!0},{catch:function(l){return this.then(void 0,l)}}),!e&&a(t)){var u=i("Promise").prototype.catch;o.catch!==u&&s(o,"catch",u,{unsafe:!0})}return yo}var bo={},xo;function Nh(){if(xo)return bo;xo=1;var n=he(),e=ne(),r=Fe(),t=Or(),i=rn(),a=Cl(),s=wl();return n({target:"Promise",stat:!0,forced:s},{race:function(u){var l=this,h=t.f(l),c=h.reject,v=i(function(){var f=r(l.resolve);a(u,function(g){e(f,l,g).then(h.resolve,c)})});return v.error&&c(v.value),h.promise}}),bo}var Oo={},To;function _h(){if(To)return Oo;To=1;var n=he(),e=Or(),r=xr().CONSTRUCTOR;return n({target:"Promise",stat:!0,forced:r},{reject:function(i){var a=e.f(this),s=a.reject;return s(i),a.promise}}),Oo}var So={},Ki,Eo;function Mh(){if(Eo)return Ki;Eo=1;var n=le(),e=pe(),r=Or();return Ki=function(t,i){if(n(t),e(i)&&i.constructor===t)return i;var a=r.f(t),s=a.resolve;return s(i),a.promise},Ki}var Ro;function qh(){if(Ro)return So;Ro=1;var n=he(),e=rr(),r=Me(),t=br(),i=xr().CONSTRUCTOR,a=Mh(),s=e("Promise"),o=r&&!i;return n({target:"Promise",stat:!0,forced:r||i},{resolve:function(l){return a(o&&this===s?t:this,l)}}),So}var Co;function Dh(){return Co||(Co=1,Eh(),Ah(),Ih(),Nh(),_h(),qh()),cn}Dh();function wo(n,e,r,t,i,a,s){try{var o=n[a](s),u=o.value}catch(l){return void r(l)}o.done?e(u):Promise.resolve(u).then(t,i)}function Be(n){return function(){var e=this,r=arguments;return new Promise(function(t,i){var a=n.apply(e,r);function s(u){wo(a,t,i,s,o,"next",u)}function o(u){wo(a,t,i,s,o,"throw",u)}s(void 0)})}}var Po={},Ao={},Qi,Io;function qe(){if(Io)return Qi;Io=1;var n=Ja(),e=String;return Qi=function(r){if(n(r)==="Symbol")throw new TypeError("Cannot convert a Symbol value to a string");return e(r)},Qi}var Zi,No;function Pl(){if(No)return Zi;No=1;var n=le();return Zi=function(){var e=n(this),r="";return e.hasIndices&&(r+="d"),e.global&&(r+="g"),e.ignoreCase&&(r+="i"),e.multiline&&(r+="m"),e.dotAll&&(r+="s"),e.unicode&&(r+="u"),e.unicodeSets&&(r+="v"),e.sticky&&(r+="y"),r},Zi}var Ji,_o;function Al(){if(_o)return Ji;_o=1;var n=Z(),e=Q(),r=e.RegExp,t=n(function(){var s=r("a","y");return s.lastIndex=2,s.exec("abcd")!==null}),i=t||n(function(){return!r("a","y").sticky}),a=t||n(function(){var s=r("^r","gy");return s.lastIndex=2,s.exec("str")!==null});return Ji={BROKEN_CARET:a,MISSED_STICKY:i,UNSUPPORTED_Y:t},Ji}var ea={},ra,Mo;function Vh(){if(Mo)return ra;Mo=1;var n=dl(),e=Za();return ra=Object.keys||function(t){return n(t,e)},ra}var qo;function Lh(){if(qo)return ea;qo=1;var n=we(),e=cl(),r=Ye(),t=le(),i=pr(),a=Vh();return ea.f=n&&!e?Object.defineProperties:function(o,u){t(o);for(var l=i(u),h=a(u),c=h.length,v=0,f;c>v;)r.f(o,f=h[v++],l[f]);return o},ea}var ta,Do;function Gr(){if(Do)return ta;Do=1;var n=le(),e=Lh(),r=Za(),t=Ka(),i=Ol(),a=Dr(),s=Xa(),o=">",u="<",l="prototype",h="script",c=s("IE_PROTO"),v=function(){},f=function(m){return u+h+o+m+u+"/"+h+o},g=function(m){m.write(f("")),m.close();var b=m.parentWindow.Object;return m=null,b},d=function(){var m=a("iframe"),b="java"+h+":",x;return m.style.display="none",i.appendChild(m),m.src=String(b),x=m.contentWindow.document,x.open(),x.write(f("document.F=Object")),x.close(),x.F},p,y=function(){try{p=new ActiveXObject("htmlfile")}catch{}y=typeof document<"u"?document.domain&&p?g(p):d():g(p);for(var m=r.length;m--;)delete y[l][r[m]];return y()};return t[c]=!0,ta=Object.create||function(b,x){var S;return b!==null?(v[l]=n(b),S=new v,v[l]=null,S[c]=b):S=y(),x===void 0?S:e.f(S,x)},ta}var ia,Vo;function kh(){if(Vo)return ia;Vo=1;var n=Z(),e=Q(),r=e.RegExp;return ia=n(function(){var t=r(".","s");return!(t.dotAll&&t.test(`
1
+ import{_ as Va,c as La,p as ar,g as al}from"./index-BOyFL30y.js";function Xl(n,e){if(Va(n)!="object"||!n)return n;var r=n[Symbol.toPrimitive];if(r!==void 0){var t=r.call(n,e);if(Va(t)!="object")return t;throw new TypeError("@@toPrimitive must return a primitive value.")}return(e==="string"?String:Number)(n)}function Kl(n){var e=Xl(n,"string");return Va(e)=="symbol"?e:e+""}function Ua(n,e,r){return(e=Kl(e))in n?Object.defineProperty(n,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):n[e]=r,n}var cn={},vn={},vr,gn;function Q(){if(gn)return vr;gn=1;var n=function(e){return e&&e.Math===Math&&e};return vr=n(typeof globalThis=="object"&&globalThis)||n(typeof window=="object"&&window)||n(typeof self=="object"&&self)||n(typeof La=="object"&&La)||n(typeof vr=="object"&&vr)||(function(){return this})()||Function("return this")(),vr}var Zr={},Jr,dn;function Z(){return dn||(dn=1,Jr=function(n){try{return!!n()}catch{return!0}}),Jr}var et,pn;function we(){if(pn)return et;pn=1;var n=Z();return et=!n(function(){return Object.defineProperty({},1,{get:function(){return 7}})[1]!==7}),et}var rt,yn;function Ir(){if(yn)return rt;yn=1;var n=Z();return rt=!n(function(){var e=(function(){}).bind();return typeof e!="function"||e.hasOwnProperty("prototype")}),rt}var tt,mn;function ne(){if(mn)return tt;mn=1;var n=Ir(),e=Function.prototype.call;return tt=n?e.bind(e):function(){return e.apply(e,arguments)},tt}var it={},bn;function Ql(){if(bn)return it;bn=1;var n={}.propertyIsEnumerable,e=Object.getOwnPropertyDescriptor,r=e&&!n.call({1:2},1);return it.f=r?function(i){var a=e(this,i);return!!a&&a.enumerable}:n,it}var at,xn;function Ga(){return xn||(xn=1,at=function(n,e){return{enumerable:!(n&1),configurable:!(n&2),writable:!(n&4),value:e}}),at}var nt,On;function J(){if(On)return nt;On=1;var n=Ir(),e=Function.prototype,r=e.call,t=n&&e.bind.bind(r,r);return nt=n?t:function(i){return function(){return r.apply(i,arguments)}},nt}var st,Tn;function er(){if(Tn)return st;Tn=1;var n=J(),e=n({}.toString),r=n("".slice);return st=function(t){return r(e(t),8,-1)},st}var ot,Sn;function nl(){if(Sn)return ot;Sn=1;var n=J(),e=Z(),r=er(),t=Object,i=n("".split);return ot=e(function(){return!t("z").propertyIsEnumerable(0)})?function(a){return r(a)==="String"?i(a,""):t(a)}:t,ot}var ut,En;function Nr(){return En||(En=1,ut=function(n){return n==null}),ut}var lt,Rn;function Pe(){if(Rn)return lt;Rn=1;var n=Nr(),e=TypeError;return lt=function(r){if(n(r))throw new e("Can't call method on "+r);return r},lt}var ht,Cn;function pr(){if(Cn)return ht;Cn=1;var n=nl(),e=Pe();return ht=function(r){return n(e(r))},ht}var ft,wn;function re(){if(wn)return ft;wn=1;var n=typeof document=="object"&&document.all;return ft=typeof n>"u"&&n!==void 0?function(e){return typeof e=="function"||e===n}:function(e){return typeof e=="function"},ft}var ct,Pn;function pe(){if(Pn)return ct;Pn=1;var n=re();return ct=function(e){return typeof e=="object"?e!==null:n(e)},ct}var vt,An;function rr(){if(An)return vt;An=1;var n=Q(),e=re(),r=function(t){return e(t)?t:void 0};return vt=function(t,i){return arguments.length<2?r(n[t]):n[t]&&n[t][i]},vt}var gt,In;function _r(){if(In)return gt;In=1;var n=J();return gt=n({}.isPrototypeOf),gt}var dt,Nn;function yr(){if(Nn)return dt;Nn=1;var n=Q(),e=n.navigator,r=e&&e.userAgent;return dt=r?String(r):"",dt}var pt,_n;function $a(){if(_n)return pt;_n=1;var n=Q(),e=yr(),r=n.process,t=n.Deno,i=r&&r.versions||t&&t.version,a=i&&i.v8,s,o;return a&&(s=a.split("."),o=s[0]>0&&s[0]<4?1:+(s[0]+s[1])),!o&&e&&(s=e.match(/Edge\/(\d+)/),(!s||s[1]>=74)&&(s=e.match(/Chrome\/(\d+)/),s&&(o=+s[1]))),pt=o,pt}var yt,Mn;function sl(){if(Mn)return yt;Mn=1;var n=$a(),e=Z(),r=Q(),t=r.String;return yt=!!Object.getOwnPropertySymbols&&!e(function(){var i=Symbol("symbol detection");return!t(i)||!(Object(i)instanceof Symbol)||!Symbol.sham&&n&&n<41}),yt}var mt,qn;function ol(){if(qn)return mt;qn=1;var n=sl();return mt=n&&!Symbol.sham&&typeof Symbol.iterator=="symbol",mt}var bt,Dn;function ul(){if(Dn)return bt;Dn=1;var n=rr(),e=re(),r=_r(),t=ol(),i=Object;return bt=t?function(a){return typeof a=="symbol"}:function(a){var s=n("Symbol");return e(s)&&r(s.prototype,i(a))},bt}var xt,Vn;function Mr(){if(Vn)return xt;Vn=1;var n=String;return xt=function(e){try{return n(e)}catch{return"Object"}},xt}var Ot,Ln;function Fe(){if(Ln)return Ot;Ln=1;var n=re(),e=Mr(),r=TypeError;return Ot=function(t){if(n(t))return t;throw new r(e(t)+" is not a function")},Ot}var Tt,kn;function sr(){if(kn)return Tt;kn=1;var n=Fe(),e=Nr();return Tt=function(r,t){var i=r[t];return e(i)?void 0:n(i)},Tt}var St,jn;function Zl(){if(jn)return St;jn=1;var n=ne(),e=re(),r=pe(),t=TypeError;return St=function(i,a){var s,o;if(a==="string"&&e(s=i.toString)&&!r(o=n(s,i))||e(s=i.valueOf)&&!r(o=n(s,i))||a!=="string"&&e(s=i.toString)&&!r(o=n(s,i)))return o;throw new t("Can't convert object to primitive value")},St}var Et={exports:{}},Rt,Bn;function Me(){return Bn||(Bn=1,Rt=!1),Rt}var Ct,Fn;function za(){if(Fn)return Ct;Fn=1;var n=Q(),e=Object.defineProperty;return Ct=function(r,t){try{e(n,r,{value:t,configurable:!0,writable:!0})}catch{n[r]=t}return t},Ct}var Un;function Ha(){if(Un)return Et.exports;Un=1;var n=Me(),e=Q(),r=za(),t="__core-js_shared__",i=Et.exports=e[t]||r(t,{});return(i.versions||(i.versions=[])).push({version:"3.45.1",mode:n?"pure":"global",copyright:"© 2014-2025 Denis Pushkarev (zloirock.ru)",license:"https://github.com/zloirock/core-js/blob/v3.45.1/LICENSE",source:"https://github.com/zloirock/core-js"}),Et.exports}var wt,Gn;function Wa(){if(Gn)return wt;Gn=1;var n=Ha();return wt=function(e,r){return n[e]||(n[e]=r||{})},wt}var Pt,$n;function qr(){if($n)return Pt;$n=1;var n=Pe(),e=Object;return Pt=function(r){return e(n(r))},Pt}var At,zn;function Ae(){if(zn)return At;zn=1;var n=J(),e=qr(),r=n({}.hasOwnProperty);return At=Object.hasOwn||function(i,a){return r(e(i),a)},At}var It,Hn;function ll(){if(Hn)return It;Hn=1;var n=J(),e=0,r=Math.random(),t=n(1.1.toString);return It=function(i){return"Symbol("+(i===void 0?"":i)+")_"+t(++e+r,36)},It}var Nt,Wn;function ae(){if(Wn)return Nt;Wn=1;var n=Q(),e=Wa(),r=Ae(),t=ll(),i=sl(),a=ol(),s=n.Symbol,o=e("wks"),u=a?s.for||s:s&&s.withoutSetter||t;return Nt=function(l){return r(o,l)||(o[l]=i&&r(s,l)?s[l]:u("Symbol."+l)),o[l]},Nt}var _t,Yn;function Jl(){if(Yn)return _t;Yn=1;var n=ne(),e=pe(),r=ul(),t=sr(),i=Zl(),a=ae(),s=TypeError,o=a("toPrimitive");return _t=function(u,l){if(!e(u)||r(u))return u;var h=t(u,o),c;if(h){if(l===void 0&&(l="default"),c=n(h,u,l),!e(c)||r(c))return c;throw new s("Can't convert object to primitive value")}return l===void 0&&(l="number"),i(u,l)},_t}var Mt,Xn;function hl(){if(Xn)return Mt;Xn=1;var n=Jl(),e=ul();return Mt=function(r){var t=n(r,"string");return e(t)?t:t+""},Mt}var qt,Kn;function Dr(){if(Kn)return qt;Kn=1;var n=Q(),e=pe(),r=n.document,t=e(r)&&e(r.createElement);return qt=function(i){return t?r.createElement(i):{}},qt}var Dt,Qn;function fl(){if(Qn)return Dt;Qn=1;var n=we(),e=Z(),r=Dr();return Dt=!n&&!e(function(){return Object.defineProperty(r("div"),"a",{get:function(){return 7}}).a!==7}),Dt}var Zn;function Vr(){if(Zn)return Zr;Zn=1;var n=we(),e=ne(),r=Ql(),t=Ga(),i=pr(),a=hl(),s=Ae(),o=fl(),u=Object.getOwnPropertyDescriptor;return Zr.f=n?u:function(h,c){if(h=i(h),c=a(c),o)try{return u(h,c)}catch{}if(s(h,c))return t(!e(r.f,h,c),h[c])},Zr}var Vt={},Lt,Jn;function cl(){if(Jn)return Lt;Jn=1;var n=we(),e=Z();return Lt=n&&e(function(){return Object.defineProperty(function(){},"prototype",{value:42,writable:!1}).prototype!==42}),Lt}var kt,es;function le(){if(es)return kt;es=1;var n=pe(),e=String,r=TypeError;return kt=function(t){if(n(t))return t;throw new r(e(t)+" is not an object")},kt}var rs;function Ye(){if(rs)return Vt;rs=1;var n=we(),e=fl(),r=cl(),t=le(),i=hl(),a=TypeError,s=Object.defineProperty,o=Object.getOwnPropertyDescriptor,u="enumerable",l="configurable",h="writable";return Vt.f=n?r?function(v,f,g){if(t(v),f=i(f),t(g),typeof v=="function"&&f==="prototype"&&"value"in g&&h in g&&!g[h]){var d=o(v,f);d&&d[h]&&(v[f]=g.value,g={configurable:l in g?g[l]:d[l],enumerable:u in g?g[u]:d[u],writable:!1})}return s(v,f,g)}:s:function(v,f,g){if(t(v),f=i(f),t(g),e)try{return s(v,f,g)}catch{}if("get"in g||"set"in g)throw new a("Accessors not supported");return"value"in g&&(v[f]=g.value),v},Vt}var jt,ts;function mr(){if(ts)return jt;ts=1;var n=we(),e=Ye(),r=Ga();return jt=n?function(t,i,a){return e.f(t,i,r(1,a))}:function(t,i,a){return t[i]=a,t},jt}var Bt={exports:{}},Ft,is;function Lr(){if(is)return Ft;is=1;var n=we(),e=Ae(),r=Function.prototype,t=n&&Object.getOwnPropertyDescriptor,i=e(r,"name"),a=i&&(function(){}).name==="something",s=i&&(!n||n&&t(r,"name").configurable);return Ft={EXISTS:i,PROPER:a,CONFIGURABLE:s},Ft}var Ut,as;function Ya(){if(as)return Ut;as=1;var n=J(),e=re(),r=Ha(),t=n(Function.toString);return e(r.inspectSource)||(r.inspectSource=function(i){return t(i)}),Ut=r.inspectSource,Ut}var Gt,ns;function eh(){if(ns)return Gt;ns=1;var n=Q(),e=re(),r=n.WeakMap;return Gt=e(r)&&/native code/.test(String(r)),Gt}var $t,ss;function Xa(){if(ss)return $t;ss=1;var n=Wa(),e=ll(),r=n("keys");return $t=function(t){return r[t]||(r[t]=e(t))},$t}var zt,os;function Ka(){return os||(os=1,zt={}),zt}var Ht,us;function kr(){if(us)return Ht;us=1;var n=eh(),e=Q(),r=pe(),t=mr(),i=Ae(),a=Ha(),s=Xa(),o=Ka(),u="Object already initialized",l=e.TypeError,h=e.WeakMap,c,v,f,g=function(m){return f(m)?v(m):c(m,{})},d=function(m){return function(b){var x;if(!r(b)||(x=v(b)).type!==m)throw new l("Incompatible receiver, "+m+" required");return x}};if(n||a.state){var p=a.state||(a.state=new h);p.get=p.get,p.has=p.has,p.set=p.set,c=function(m,b){if(p.has(m))throw new l(u);return b.facade=m,p.set(m,b),b},v=function(m){return p.get(m)||{}},f=function(m){return p.has(m)}}else{var y=s("state");o[y]=!0,c=function(m,b){if(i(m,y))throw new l(u);return b.facade=m,t(m,y,b),b},v=function(m){return i(m,y)?m[y]:{}},f=function(m){return i(m,y)}}return Ht={set:c,get:v,has:f,enforce:g,getterFor:d},Ht}var ls;function vl(){if(ls)return Bt.exports;ls=1;var n=J(),e=Z(),r=re(),t=Ae(),i=we(),a=Lr().CONFIGURABLE,s=Ya(),o=kr(),u=o.enforce,l=o.get,h=String,c=Object.defineProperty,v=n("".slice),f=n("".replace),g=n([].join),d=i&&!e(function(){return c(function(){},"length",{value:8}).length!==8}),p=String(String).split("String"),y=Bt.exports=function(m,b,x){v(h(b),0,7)==="Symbol("&&(b="["+f(h(b),/^Symbol\(([^)]*)\).*$/,"$1")+"]"),x&&x.getter&&(b="get "+b),x&&x.setter&&(b="set "+b),(!t(m,"name")||a&&m.name!==b)&&(i?c(m,"name",{value:b,configurable:!0}):m.name=b),d&&x&&t(x,"arity")&&m.length!==x.arity&&c(m,"length",{value:x.arity});try{x&&t(x,"constructor")&&x.constructor?i&&c(m,"prototype",{writable:!1}):m.prototype&&(m.prototype=void 0)}catch{}var S=u(m);return t(S,"source")||(S.source=g(p,typeof b=="string"?b:"")),m};return Function.prototype.toString=y(function(){return r(this)&&l(this).source||s(this)},"toString"),Bt.exports}var Wt,hs;function tr(){if(hs)return Wt;hs=1;var n=re(),e=Ye(),r=vl(),t=za();return Wt=function(i,a,s,o){o||(o={});var u=o.enumerable,l=o.name!==void 0?o.name:a;if(n(s)&&r(s,l,o),o.global)u?i[a]=s:t(a,s);else{try{o.unsafe?i[a]&&(u=!0):delete i[a]}catch{}u?i[a]=s:e.f(i,a,{value:s,enumerable:!1,configurable:!o.nonConfigurable,writable:!o.nonWritable})}return i},Wt}var Yt={},Xt,fs;function rh(){if(fs)return Xt;fs=1;var n=Math.ceil,e=Math.floor;return Xt=Math.trunc||function(t){var i=+t;return(i>0?e:n)(i)},Xt}var Kt,cs;function jr(){if(cs)return Kt;cs=1;var n=rh();return Kt=function(e){var r=+e;return r!==r||r===0?0:n(r)},Kt}var Qt,vs;function th(){if(vs)return Qt;vs=1;var n=jr(),e=Math.max,r=Math.min;return Qt=function(t,i){var a=n(t);return a<0?e(a+i,0):r(a,i)},Qt}var Zt,gs;function or(){if(gs)return Zt;gs=1;var n=jr(),e=Math.min;return Zt=function(r){var t=n(r);return t>0?e(t,9007199254740991):0},Zt}var Jt,ds;function Qa(){if(ds)return Jt;ds=1;var n=or();return Jt=function(e){return n(e.length)},Jt}var ei,ps;function gl(){if(ps)return ei;ps=1;var n=pr(),e=th(),r=Qa(),t=function(i){return function(a,s,o){var u=n(a),l=r(u);if(l===0)return!i&&-1;var h=e(o,l),c;if(i&&s!==s){for(;l>h;)if(c=u[h++],c!==c)return!0}else for(;l>h;h++)if((i||h in u)&&u[h]===s)return i||h||0;return!i&&-1}};return ei={includes:t(!0),indexOf:t(!1)},ei}var ri,ys;function dl(){if(ys)return ri;ys=1;var n=J(),e=Ae(),r=pr(),t=gl().indexOf,i=Ka(),a=n([].push);return ri=function(s,o){var u=r(s),l=0,h=[],c;for(c in u)!e(i,c)&&e(u,c)&&a(h,c);for(;o.length>l;)e(u,c=o[l++])&&(~t(h,c)||a(h,c));return h},ri}var ti,ms;function Za(){return ms||(ms=1,ti=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"]),ti}var bs;function ih(){if(bs)return Yt;bs=1;var n=dl(),e=Za(),r=e.concat("length","prototype");return Yt.f=Object.getOwnPropertyNames||function(i){return n(i,r)},Yt}var ii={},xs;function ah(){return xs||(xs=1,ii.f=Object.getOwnPropertySymbols),ii}var ai,Os;function nh(){if(Os)return ai;Os=1;var n=rr(),e=J(),r=ih(),t=ah(),i=le(),a=e([].concat);return ai=n("Reflect","ownKeys")||function(o){var u=r.f(i(o)),l=t.f;return l?a(u,l(o)):u},ai}var ni,Ts;function sh(){if(Ts)return ni;Ts=1;var n=Ae(),e=nh(),r=Vr(),t=Ye();return ni=function(i,a,s){for(var o=e(a),u=t.f,l=r.f,h=0;h<o.length;h++){var c=o[h];!n(i,c)&&!(s&&n(s,c))&&u(i,c,l(a,c))}},ni}var si,Ss;function pl(){if(Ss)return si;Ss=1;var n=Z(),e=re(),r=/#|\.prototype\./,t=function(u,l){var h=a[i(u)];return h===o?!0:h===s?!1:e(l)?n(l):!!l},i=t.normalize=function(u){return String(u).replace(r,".").toLowerCase()},a=t.data={},s=t.NATIVE="N",o=t.POLYFILL="P";return si=t,si}var oi,Es;function he(){if(Es)return oi;Es=1;var n=Q(),e=Vr().f,r=mr(),t=tr(),i=za(),a=sh(),s=pl();return oi=function(o,u){var l=o.target,h=o.global,c=o.stat,v,f,g,d,p,y;if(h?f=n:c?f=n[l]||i(l,{}):f=n[l]&&n[l].prototype,f)for(g in u){if(p=u[g],o.dontCallGetSet?(y=e(f,g),d=y&&y.value):d=f[g],v=s(h?g:l+(c?".":"#")+g,o.forced),!v&&d!==void 0){if(typeof p==typeof d)continue;a(p,d)}(o.sham||d&&d.sham)&&r(p,"sham",!0),t(f,g,p,o)}},oi}var ui,Rs;function yl(){if(Rs)return ui;Rs=1;var n=Q(),e=yr(),r=er(),t=function(i){return e.slice(0,i.length)===i};return ui=(function(){return t("Bun/")?"BUN":t("Cloudflare-Workers")?"CLOUDFLARE":t("Deno/")?"DENO":t("Node.js/")?"NODE":n.Bun&&typeof Bun.version=="string"?"BUN":n.Deno&&typeof Deno.version=="object"?"DENO":r(n.process)==="process"?"NODE":n.window&&n.document?"BROWSER":"REST"})(),ui}var li,Cs;function Br(){if(Cs)return li;Cs=1;var n=yl();return li=n==="NODE",li}var hi,ws;function oh(){if(ws)return hi;ws=1;var n=Q();return hi=n,hi}var fi,Ps;function uh(){if(Ps)return fi;Ps=1;var n=J(),e=Fe();return fi=function(r,t,i){try{return n(e(Object.getOwnPropertyDescriptor(r,t)[i]))}catch{}},fi}var ci,As;function lh(){if(As)return ci;As=1;var n=pe();return ci=function(e){return n(e)||e===null},ci}var vi,Is;function hh(){if(Is)return vi;Is=1;var n=lh(),e=String,r=TypeError;return vi=function(t){if(n(t))return t;throw new r("Can't set "+e(t)+" as a prototype")},vi}var gi,Ns;function ml(){if(Ns)return gi;Ns=1;var n=uh(),e=pe(),r=Pe(),t=hh();return gi=Object.setPrototypeOf||("__proto__"in{}?(function(){var i=!1,a={},s;try{s=n(Object.prototype,"__proto__","set"),s(a,[]),i=a instanceof Array}catch{}return function(u,l){return r(u),t(l),e(u)&&(i?s(u,l):u.__proto__=l),u}})():void 0),gi}var di,_s;function Fr(){if(_s)return di;_s=1;var n=Ye().f,e=Ae(),r=ae(),t=r("toStringTag");return di=function(i,a,s){i&&!s&&(i=i.prototype),i&&!e(i,t)&&n(i,t,{configurable:!0,value:a})},di}var pi,Ms;function fh(){if(Ms)return pi;Ms=1;var n=vl(),e=Ye();return pi=function(r,t,i){return i.get&&n(i.get,t,{getter:!0}),i.set&&n(i.set,t,{setter:!0}),e.f(r,t,i)},pi}var yi,qs;function ch(){if(qs)return yi;qs=1;var n=rr(),e=fh(),r=ae(),t=we(),i=r("species");return yi=function(a){var s=n(a);t&&s&&!s[i]&&e(s,i,{configurable:!0,get:function(){return this}})},yi}var mi,Ds;function vh(){if(Ds)return mi;Ds=1;var n=_r(),e=TypeError;return mi=function(r,t){if(n(t,r))return r;throw new e("Incorrect invocation")},mi}var bi,Vs;function gh(){if(Vs)return bi;Vs=1;var n=ae(),e=n("toStringTag"),r={};return r[e]="z",bi=String(r)==="[object z]",bi}var xi,Ls;function Ja(){if(Ls)return xi;Ls=1;var n=gh(),e=re(),r=er(),t=ae(),i=t("toStringTag"),a=Object,s=r((function(){return arguments})())==="Arguments",o=function(u,l){try{return u[l]}catch{}};return xi=n?r:function(u){var l,h,c;return u===void 0?"Undefined":u===null?"Null":typeof(h=o(l=a(u),i))=="string"?h:s?r(l):(c=r(l))==="Object"&&e(l.callee)?"Arguments":c},xi}var Oi,ks;function dh(){if(ks)return Oi;ks=1;var n=J(),e=Z(),r=re(),t=Ja(),i=rr(),a=Ya(),s=function(){},o=i("Reflect","construct"),u=/^\s*(?:class|function)\b/,l=n(u.exec),h=!u.test(s),c=function(g){if(!r(g))return!1;try{return o(s,[],g),!0}catch{return!1}},v=function(g){if(!r(g))return!1;switch(t(g)){case"AsyncFunction":case"GeneratorFunction":case"AsyncGeneratorFunction":return!1}try{return h||!!l(u,a(g))}catch{return!0}};return v.sham=!0,Oi=!o||e(function(){var f;return c(c.call)||!c(Object)||!c(function(){f=!0})||f})?v:c,Oi}var Ti,js;function ph(){if(js)return Ti;js=1;var n=dh(),e=Mr(),r=TypeError;return Ti=function(t){if(n(t))return t;throw new r(e(t)+" is not a constructor")},Ti}var Si,Bs;function bl(){if(Bs)return Si;Bs=1;var n=le(),e=ph(),r=Nr(),t=ae(),i=t("species");return Si=function(a,s){var o=n(a).constructor,u;return o===void 0||r(u=n(o)[i])?s:e(u)},Si}var Ei,Fs;function xl(){if(Fs)return Ei;Fs=1;var n=Ir(),e=Function.prototype,r=e.apply,t=e.call;return Ei=typeof Reflect=="object"&&Reflect.apply||(n?t.bind(r):function(){return t.apply(r,arguments)}),Ei}var Ri,Us;function Ur(){if(Us)return Ri;Us=1;var n=er(),e=J();return Ri=function(r){if(n(r)==="Function")return e(r)},Ri}var Ci,Gs;function en(){if(Gs)return Ci;Gs=1;var n=Ur(),e=Fe(),r=Ir(),t=n(n.bind);return Ci=function(i,a){return e(i),a===void 0?i:r?t(i,a):function(){return i.apply(a,arguments)}},Ci}var wi,$s;function Ol(){if($s)return wi;$s=1;var n=rr();return wi=n("document","documentElement"),wi}var Pi,zs;function yh(){if(zs)return Pi;zs=1;var n=J();return Pi=n([].slice),Pi}var Ai,Hs;function mh(){if(Hs)return Ai;Hs=1;var n=TypeError;return Ai=function(e,r){if(e<r)throw new n("Not enough arguments");return e},Ai}var Ii,Ws;function Tl(){if(Ws)return Ii;Ws=1;var n=yr();return Ii=/(?:ipad|iphone|ipod).*applewebkit/i.test(n),Ii}var Ni,Ys;function Sl(){if(Ys)return Ni;Ys=1;var n=Q(),e=xl(),r=en(),t=re(),i=Ae(),a=Z(),s=Ol(),o=yh(),u=Dr(),l=mh(),h=Tl(),c=Br(),v=n.setImmediate,f=n.clearImmediate,g=n.process,d=n.Dispatch,p=n.Function,y=n.MessageChannel,m=n.String,b=0,x={},S="onreadystatechange",E,O,P,_;a(function(){E=n.location});var A=function(C){if(i(x,C)){var w=x[C];delete x[C],w()}},q=function(C){return function(){A(C)}},I=function(C){A(C.data)},j=function(C){n.postMessage(m(C),E.protocol+"//"+E.host)};return(!v||!f)&&(v=function(w){l(arguments.length,1);var U=t(w)?w:p(w),L=o(arguments,1);return x[++b]=function(){e(U,void 0,L)},O(b),b},f=function(w){delete x[w]},c?O=function(C){g.nextTick(q(C))}:d&&d.now?O=function(C){d.now(q(C))}:y&&!h?(P=new y,_=P.port2,P.port1.onmessage=I,O=r(_.postMessage,_)):n.addEventListener&&t(n.postMessage)&&!n.importScripts&&E&&E.protocol!=="file:"&&!a(j)?(O=j,n.addEventListener("message",I,!1)):S in u("script")?O=function(C){s.appendChild(u("script"))[S]=function(){s.removeChild(this),A(C)}}:O=function(C){setTimeout(q(C),0)}),Ni={set:v,clear:f},Ni}var _i,Xs;function bh(){if(Xs)return _i;Xs=1;var n=Q(),e=we(),r=Object.getOwnPropertyDescriptor;return _i=function(t){if(!e)return n[t];var i=r(n,t);return i&&i.value},_i}var Mi,Ks;function El(){if(Ks)return Mi;Ks=1;var n=function(){this.head=null,this.tail=null};return n.prototype={add:function(e){var r={item:e,next:null},t=this.tail;t?t.next=r:this.head=r,this.tail=r},get:function(){var e=this.head;if(e){var r=this.head=e.next;return r===null&&(this.tail=null),e.item}}},Mi=n,Mi}var qi,Qs;function xh(){if(Qs)return qi;Qs=1;var n=yr();return qi=/ipad|iphone|ipod/i.test(n)&&typeof Pebble<"u",qi}var Di,Zs;function Oh(){if(Zs)return Di;Zs=1;var n=yr();return Di=/web0s(?!.*chrome)/i.test(n),Di}var Vi,Js;function Th(){if(Js)return Vi;Js=1;var n=Q(),e=bh(),r=en(),t=Sl().set,i=El(),a=Tl(),s=xh(),o=Oh(),u=Br(),l=n.MutationObserver||n.WebKitMutationObserver,h=n.document,c=n.process,v=n.Promise,f=e("queueMicrotask"),g,d,p,y,m;if(!f){var b=new i,x=function(){var S,E;for(u&&(S=c.domain)&&S.exit();E=b.get();)try{E()}catch(O){throw b.head&&g(),O}S&&S.enter()};!a&&!u&&!o&&l&&h?(d=!0,p=h.createTextNode(""),new l(x).observe(p,{characterData:!0}),g=function(){p.data=d=!d}):!s&&v&&v.resolve?(y=v.resolve(void 0),y.constructor=v,m=r(y.then,y),g=function(){m(x)}):u?g=function(){c.nextTick(x)}:(t=r(t,n),g=function(){t(x)}),f=function(S){b.head||g(),b.add(S)}}return Vi=f,Vi}var Li,eo;function Sh(){return eo||(eo=1,Li=function(n,e){try{arguments.length===1?console.error(n):console.error(n,e)}catch{}}),Li}var ki,ro;function rn(){return ro||(ro=1,ki=function(n){try{return{error:!1,value:n()}}catch(e){return{error:!0,value:e}}}),ki}var ji,to;function br(){if(to)return ji;to=1;var n=Q();return ji=n.Promise,ji}var Bi,io;function xr(){if(io)return Bi;io=1;var n=Q(),e=br(),r=re(),t=pl(),i=Ya(),a=ae(),s=yl(),o=Me(),u=$a(),l=e&&e.prototype,h=a("species"),c=!1,v=r(n.PromiseRejectionEvent),f=t("Promise",function(){var g=i(e),d=g!==String(e);if(!d&&u===66||o&&!(l.catch&&l.finally))return!0;if(!u||u<51||!/native code/.test(g)){var p=new e(function(b){b(1)}),y=function(b){b(function(){},function(){})},m=p.constructor={};if(m[h]=y,c=p.then(function(){})instanceof y,!c)return!0}return!d&&(s==="BROWSER"||s==="DENO")&&!v});return Bi={CONSTRUCTOR:f,REJECTION_EVENT:v,SUBCLASSING:c},Bi}var Fi={},ao;function Or(){if(ao)return Fi;ao=1;var n=Fe(),e=TypeError,r=function(t){var i,a;this.promise=new t(function(s,o){if(i!==void 0||a!==void 0)throw new e("Bad Promise constructor");i=s,a=o}),this.resolve=n(i),this.reject=n(a)};return Fi.f=function(t){return new r(t)},Fi}var no;function Eh(){if(no)return vn;no=1;var n=he(),e=Me(),r=Br(),t=Q(),i=oh(),a=ne(),s=tr(),o=ml(),u=Fr(),l=ch(),h=Fe(),c=re(),v=pe(),f=vh(),g=bl(),d=Sl().set,p=Th(),y=Sh(),m=rn(),b=El(),x=kr(),S=br(),E=xr(),O=Or(),P="Promise",_=E.CONSTRUCTOR,A=E.REJECTION_EVENT,q=E.SUBCLASSING,I=x.getterFor(P),j=x.set,C=S&&S.prototype,w=S,U=C,L=t.TypeError,V=t.document,M=t.process,N=O.f,k=N,z=!!(V&&V.createEvent&&t.dispatchEvent),H="unhandledrejection",X="rejectionhandled",se=0,be=1,oe=2,Ue=1,Ge=2,fe,Ne,_e,me,ce=function(R){var B;return v(R)&&c(B=R.then)?B:!1},xe=function(R,B){var G=B.value,$=B.state===be,W=$?R.ok:R.fail,Te=R.resolve,Le=R.reject,Se=R.domain,Ee,hr,fr;try{W?($||(B.rejection===Ge&&$e(B),B.rejection=Ue),W===!0?Ee=G:(Se&&Se.enter(),Ee=W(G),Se&&(Se.exit(),fr=!0)),Ee===R.promise?Le(new L("Promise-chain cycle")):(hr=ce(Ee))?a(hr,Ee,Te,Le):Te(Ee)):Le(G)}catch(cr){Se&&!fr&&Se.exit(),Le(cr)}},De=function(R,B){R.notified||(R.notified=!0,p(function(){for(var G=R.reactions,$;$=G.get();)xe($,R);R.notified=!1,B&&!R.rejection&&Xe(R)}))},Ve=function(R,B,G){var $,W;z?($=V.createEvent("Event"),$.promise=B,$.reason=G,$.initEvent(R,!1,!0),t.dispatchEvent($)):$={promise:B,reason:G},!A&&(W=t["on"+R])?W($):R===H&&y("Unhandled promise rejection",G)},Xe=function(R){a(d,t,function(){var B=R.facade,G=R.value,$=lr(R),W;if($&&(W=m(function(){r?M.emit("unhandledRejection",G,B):Ve(H,B,G)}),R.rejection=r||lr(R)?Ge:Ue,W.error))throw W.value})},lr=function(R){return R.rejection!==Ue&&!R.parent},$e=function(R){a(d,t,function(){var B=R.facade;r?M.emit("rejectionHandled",B):Ve(X,B,R.value)})},ve=function(R,B,G){return function($){R(B,$,G)}},ge=function(R,B,G){R.done||(R.done=!0,G&&(R=G),R.value=B,R.state=oe,De(R,!0))},Oe=function(R,B,G){if(!R.done){R.done=!0,G&&(R=G);try{if(R.facade===B)throw new L("Promise can't be resolved itself");var $=ce(B);$?p(function(){var W={done:!1};try{a($,B,ve(Oe,W,R),ve(ge,W,R))}catch(Te){ge(W,Te,R)}}):(R.value=B,R.state=be,De(R,!1))}catch(W){ge({done:!1},W,R)}}};if(_&&(w=function(B){f(this,U),h(B),a(fe,this);var G=I(this);try{B(ve(Oe,G),ve(ge,G))}catch($){ge(G,$)}},U=w.prototype,fe=function(B){j(this,{type:P,done:!1,notified:!1,parent:!1,reactions:new b,rejection:!1,state:se,value:null})},fe.prototype=s(U,"then",function(B,G){var $=I(this),W=N(g(this,w));return $.parent=!0,W.ok=c(B)?B:!0,W.fail=c(G)&&G,W.domain=r?M.domain:void 0,$.state===se?$.reactions.add(W):p(function(){xe(W,$)}),W.promise}),Ne=function(){var R=new fe,B=I(R);this.promise=R,this.resolve=ve(Oe,B),this.reject=ve(ge,B)},O.f=N=function(R){return R===w||R===_e?new Ne(R):k(R)},!e&&c(S)&&C!==Object.prototype)){me=C.then,q||s(C,"then",function(B,G){var $=this;return new w(function(W,Te){a(me,$,W,Te)}).then(B,G)},{unsafe:!0});try{delete C.constructor}catch{}o&&o(C,U)}return n({global:!0,constructor:!0,wrap:!0,forced:_},{Promise:w}),_e=i.Promise,u(w,P,!1,!0),l(P),vn}var so={},Ui,oo;function Tr(){return oo||(oo=1,Ui={}),Ui}var Gi,uo;function Rh(){if(uo)return Gi;uo=1;var n=ae(),e=Tr(),r=n("iterator"),t=Array.prototype;return Gi=function(i){return i!==void 0&&(e.Array===i||t[r]===i)},Gi}var $i,lo;function Rl(){if(lo)return $i;lo=1;var n=Ja(),e=sr(),r=Nr(),t=Tr(),i=ae(),a=i("iterator");return $i=function(s){if(!r(s))return e(s,a)||e(s,"@@iterator")||t[n(s)]},$i}var zi,ho;function Ch(){if(ho)return zi;ho=1;var n=ne(),e=Fe(),r=le(),t=Mr(),i=Rl(),a=TypeError;return zi=function(s,o){var u=arguments.length<2?i(s):o;if(e(u))return r(n(u,s));throw new a(t(s)+" is not iterable")},zi}var Hi,fo;function wh(){if(fo)return Hi;fo=1;var n=ne(),e=le(),r=sr();return Hi=function(t,i,a){var s,o;e(t);try{if(s=r(t,"return"),!s){if(i==="throw")throw a;return a}s=n(s,t)}catch(u){o=!0,s=u}if(i==="throw")throw a;if(o)throw s;return e(s),a},Hi}var Wi,co;function Cl(){if(co)return Wi;co=1;var n=en(),e=ne(),r=le(),t=Mr(),i=Rh(),a=Qa(),s=_r(),o=Ch(),u=Rl(),l=wh(),h=TypeError,c=function(f,g){this.stopped=f,this.result=g},v=c.prototype;return Wi=function(f,g,d){var p=d&&d.that,y=!!(d&&d.AS_ENTRIES),m=!!(d&&d.IS_RECORD),b=!!(d&&d.IS_ITERATOR),x=!!(d&&d.INTERRUPTED),S=n(g,p),E,O,P,_,A,q,I,j=function(w){return E&&l(E,"normal"),new c(!0,w)},C=function(w){return y?(r(w),x?S(w[0],w[1],j):S(w[0],w[1])):x?S(w,j):S(w)};if(m)E=f.iterator;else if(b)E=f;else{if(O=u(f),!O)throw new h(t(f)+" is not iterable");if(i(O)){for(P=0,_=a(f);_>P;P++)if(A=C(f[P]),A&&s(v,A))return A;return new c(!1)}E=o(f,O)}for(q=m?f.next:E.next;!(I=e(q,E)).done;){try{A=C(I.value)}catch(w){l(E,"throw",w)}if(typeof A=="object"&&A&&s(v,A))return A}return new c(!1)},Wi}var Yi,vo;function Ph(){if(vo)return Yi;vo=1;var n=ae(),e=n("iterator"),r=!1;try{var t=0,i={next:function(){return{done:!!t++}},return:function(){r=!0}};i[e]=function(){return this},Array.from(i,function(){throw 2})}catch{}return Yi=function(a,s){try{if(!s&&!r)return!1}catch{return!1}var o=!1;try{var u={};u[e]=function(){return{next:function(){return{done:o=!0}}}},a(u)}catch{}return o},Yi}var Xi,go;function wl(){if(go)return Xi;go=1;var n=br(),e=Ph(),r=xr().CONSTRUCTOR;return Xi=r||!e(function(t){n.all(t).then(void 0,function(){})}),Xi}var po;function Ah(){if(po)return so;po=1;var n=he(),e=ne(),r=Fe(),t=Or(),i=rn(),a=Cl(),s=wl();return n({target:"Promise",stat:!0,forced:s},{all:function(u){var l=this,h=t.f(l),c=h.resolve,v=h.reject,f=i(function(){var g=r(l.resolve),d=[],p=0,y=1;a(u,function(m){var b=p++,x=!1;y++,e(g,l,m).then(function(S){x||(x=!0,d[b]=S,--y||c(d))},v)}),--y||c(d)});return f.error&&v(f.value),h.promise}}),so}var yo={},mo;function Ih(){if(mo)return yo;mo=1;var n=he(),e=Me(),r=xr().CONSTRUCTOR,t=br(),i=rr(),a=re(),s=tr(),o=t&&t.prototype;if(n({target:"Promise",proto:!0,forced:r,real:!0},{catch:function(l){return this.then(void 0,l)}}),!e&&a(t)){var u=i("Promise").prototype.catch;o.catch!==u&&s(o,"catch",u,{unsafe:!0})}return yo}var bo={},xo;function Nh(){if(xo)return bo;xo=1;var n=he(),e=ne(),r=Fe(),t=Or(),i=rn(),a=Cl(),s=wl();return n({target:"Promise",stat:!0,forced:s},{race:function(u){var l=this,h=t.f(l),c=h.reject,v=i(function(){var f=r(l.resolve);a(u,function(g){e(f,l,g).then(h.resolve,c)})});return v.error&&c(v.value),h.promise}}),bo}var Oo={},To;function _h(){if(To)return Oo;To=1;var n=he(),e=Or(),r=xr().CONSTRUCTOR;return n({target:"Promise",stat:!0,forced:r},{reject:function(i){var a=e.f(this),s=a.reject;return s(i),a.promise}}),Oo}var So={},Ki,Eo;function Mh(){if(Eo)return Ki;Eo=1;var n=le(),e=pe(),r=Or();return Ki=function(t,i){if(n(t),e(i)&&i.constructor===t)return i;var a=r.f(t),s=a.resolve;return s(i),a.promise},Ki}var Ro;function qh(){if(Ro)return So;Ro=1;var n=he(),e=rr(),r=Me(),t=br(),i=xr().CONSTRUCTOR,a=Mh(),s=e("Promise"),o=r&&!i;return n({target:"Promise",stat:!0,forced:r||i},{resolve:function(l){return a(o&&this===s?t:this,l)}}),So}var Co;function Dh(){return Co||(Co=1,Eh(),Ah(),Ih(),Nh(),_h(),qh()),cn}Dh();function wo(n,e,r,t,i,a,s){try{var o=n[a](s),u=o.value}catch(l){return void r(l)}o.done?e(u):Promise.resolve(u).then(t,i)}function Be(n){return function(){var e=this,r=arguments;return new Promise(function(t,i){var a=n.apply(e,r);function s(u){wo(a,t,i,s,o,"next",u)}function o(u){wo(a,t,i,s,o,"throw",u)}s(void 0)})}}var Po={},Ao={},Qi,Io;function qe(){if(Io)return Qi;Io=1;var n=Ja(),e=String;return Qi=function(r){if(n(r)==="Symbol")throw new TypeError("Cannot convert a Symbol value to a string");return e(r)},Qi}var Zi,No;function Pl(){if(No)return Zi;No=1;var n=le();return Zi=function(){var e=n(this),r="";return e.hasIndices&&(r+="d"),e.global&&(r+="g"),e.ignoreCase&&(r+="i"),e.multiline&&(r+="m"),e.dotAll&&(r+="s"),e.unicode&&(r+="u"),e.unicodeSets&&(r+="v"),e.sticky&&(r+="y"),r},Zi}var Ji,_o;function Al(){if(_o)return Ji;_o=1;var n=Z(),e=Q(),r=e.RegExp,t=n(function(){var s=r("a","y");return s.lastIndex=2,s.exec("abcd")!==null}),i=t||n(function(){return!r("a","y").sticky}),a=t||n(function(){var s=r("^r","gy");return s.lastIndex=2,s.exec("str")!==null});return Ji={BROKEN_CARET:a,MISSED_STICKY:i,UNSUPPORTED_Y:t},Ji}var ea={},ra,Mo;function Vh(){if(Mo)return ra;Mo=1;var n=dl(),e=Za();return ra=Object.keys||function(t){return n(t,e)},ra}var qo;function Lh(){if(qo)return ea;qo=1;var n=we(),e=cl(),r=Ye(),t=le(),i=pr(),a=Vh();return ea.f=n&&!e?Object.defineProperties:function(o,u){t(o);for(var l=i(u),h=a(u),c=h.length,v=0,f;c>v;)r.f(o,f=h[v++],l[f]);return o},ea}var ta,Do;function Gr(){if(Do)return ta;Do=1;var n=le(),e=Lh(),r=Za(),t=Ka(),i=Ol(),a=Dr(),s=Xa(),o=">",u="<",l="prototype",h="script",c=s("IE_PROTO"),v=function(){},f=function(m){return u+h+o+m+u+"/"+h+o},g=function(m){m.write(f("")),m.close();var b=m.parentWindow.Object;return m=null,b},d=function(){var m=a("iframe"),b="java"+h+":",x;return m.style.display="none",i.appendChild(m),m.src=String(b),x=m.contentWindow.document,x.open(),x.write(f("document.F=Object")),x.close(),x.F},p,y=function(){try{p=new ActiveXObject("htmlfile")}catch{}y=typeof document<"u"?document.domain&&p?g(p):d():g(p);for(var m=r.length;m--;)delete y[l][r[m]];return y()};return t[c]=!0,ta=Object.create||function(b,x){var S;return b!==null?(v[l]=n(b),S=new v,v[l]=null,S[c]=b):S=y(),x===void 0?S:e.f(S,x)},ta}var ia,Vo;function kh(){if(Vo)return ia;Vo=1;var n=Z(),e=Q(),r=e.RegExp;return ia=n(function(){var t=r(".","s");return!(t.dotAll&&t.test(`
2
2
  `)&&t.flags==="s")}),ia}var aa,Lo;function jh(){if(Lo)return aa;Lo=1;var n=Z(),e=Q(),r=e.RegExp;return aa=n(function(){var t=r("(?<a>b)","g");return t.exec("b").groups.a!=="b"||"b".replace(t,"$<a>c")!=="bc"}),aa}var na,ko;function tn(){if(ko)return na;ko=1;var n=ne(),e=J(),r=qe(),t=Pl(),i=Al(),a=Wa(),s=Gr(),o=kr().get,u=kh(),l=jh(),h=a("native-string-replace",String.prototype.replace),c=RegExp.prototype.exec,v=c,f=e("".charAt),g=e("".indexOf),d=e("".replace),p=e("".slice),y=(function(){var S=/a/,E=/b*/g;return n(c,S,"a"),n(c,E,"a"),S.lastIndex!==0||E.lastIndex!==0})(),m=i.BROKEN_CARET,b=/()??/.exec("")[1]!==void 0,x=y||b||m||u||l;return x&&(v=function(E){var O=this,P=o(O),_=r(E),A=P.raw,q,I,j,C,w,U,L;if(A)return A.lastIndex=O.lastIndex,q=n(v,A,_),O.lastIndex=A.lastIndex,q;var V=P.groups,M=m&&O.sticky,N=n(t,O),k=O.source,z=0,H=_;if(M&&(N=d(N,"y",""),g(N,"g")===-1&&(N+="g"),H=p(_,O.lastIndex),O.lastIndex>0&&(!O.multiline||O.multiline&&f(_,O.lastIndex-1)!==`
3
3
  `)&&(k="(?: "+k+")",H=" "+H,z++),I=new RegExp("^(?:"+k+")",N)),b&&(I=new RegExp("^"+k+"$(?!\\s)",N)),y&&(j=O.lastIndex),C=n(c,M?I:O,H),M?C?(C.input=p(C.input,z),C[0]=p(C[0],z),C.index=O.lastIndex,O.lastIndex+=C[0].length):O.lastIndex=0:y&&C&&(O.lastIndex=O.global?C.index+C[0].length:j),b&&C&&C.length>1&&n(h,C[0],I,function(){for(w=1;w<arguments.length-2;w++)arguments[w]===void 0&&(C[w]=void 0)}),C&&V)for(C.groups=U=s(null),w=0;w<V.length;w++)L=V[w],U[L[0]]=C[L[1]];return C}),na=v,na}var jo;function Bh(){if(jo)return Ao;jo=1;var n=he(),e=tn();return n({target:"RegExp",proto:!0,forced:/./.exec!==e},{exec:e}),Ao}var sa,Bo;function an(){if(Bo)return sa;Bo=1,Bh();var n=ne(),e=tr(),r=tn(),t=Z(),i=ae(),a=mr(),s=i("species"),o=RegExp.prototype;return sa=function(u,l,h,c){var v=i(u),f=!t(function(){var y={};return y[v]=function(){return 7},""[u](y)!==7}),g=f&&!t(function(){var y=!1,m=/a/;return u==="split"&&(m={},m.constructor={},m.constructor[s]=function(){return m},m.flags="",m[v]=/./[v]),m.exec=function(){return y=!0,null},m[v](""),!y});if(!f||!g||h){var d=/./[v],p=l(v,""[u],function(y,m,b,x,S){var E=m.exec;return E===r||E===o.exec?f&&!S?{done:!0,value:n(d,m,b,x)}:{done:!0,value:n(y,b,m,x)}:{done:!1}});e(String.prototype,u,p[0]),e(o,v,p[1])}c&&a(o[v],"sham",!0)},sa}var oa,Fo;function Fh(){if(Fo)return oa;Fo=1;var n=J(),e=jr(),r=qe(),t=Pe(),i=n("".charAt),a=n("".charCodeAt),s=n("".slice),o=function(u){return function(l,h){var c=r(t(l)),v=e(h),f=c.length,g,d;return v<0||v>=f?u?"":void 0:(g=a(c,v),g<55296||g>56319||v+1===f||(d=a(c,v+1))<56320||d>57343?u?i(c,v):g:u?s(c,v,v+2):(g-55296<<10)+(d-56320)+65536)}};return oa={codeAt:o(!1),charAt:o(!0)},oa}var ua,Uo;function nn(){if(Uo)return ua;Uo=1;var n=Fh().charAt;return ua=function(e,r,t){return r+(t?n(e,r).length:1)},ua}var la,Go;function Uh(){if(Go)return la;Go=1;var n=Q(),e=Z(),r=n.RegExp,t=!e(function(){var i=!0;try{r(".","d")}catch{i=!1}var a={},s="",o=i?"dgimsy":"gimsy",u=function(v,f){Object.defineProperty(a,v,{get:function(){return s+=f,!0}})},l={dotAll:"s",global:"g",ignoreCase:"i",multiline:"m",sticky:"y"};i&&(l.hasIndices="d");for(var h in l)u(h,l[h]);var c=Object.getOwnPropertyDescriptor(r.prototype,"flags").get.call(a);return c!==o||s!==o});return la={correct:t},la}var ha,$o;function sn(){if($o)return ha;$o=1;var n=ne(),e=Ae(),r=_r(),t=Uh(),i=Pl(),a=RegExp.prototype;return ha=t.correct?function(s){return s.flags}:function(s){return!t.correct&&r(a,s)&&!e(s,"flags")?n(i,s):s.flags},ha}var fa,zo;function on(){if(zo)return fa;zo=1;var n=ne(),e=le(),r=re(),t=er(),i=tn(),a=TypeError;return fa=function(s,o){var u=s.exec;if(r(u)){var l=n(u,s,o);return l!==null&&e(l),l}if(t(s)==="RegExp")return n(i,s,o);throw new a("RegExp#exec called on incompatible receiver")},fa}var Ho;function Gh(){if(Ho)return Po;Ho=1;var n=ne(),e=J(),r=an(),t=le(),i=pe(),a=or(),s=qe(),o=Pe(),u=sr(),l=nn(),h=sn(),c=on(),v=e("".indexOf);return r("match",function(f,g,d){return[function(y){var m=o(this),b=i(y)?u(y,f):void 0;return b?n(b,y,m):new RegExp(y)[f](s(m))},function(p){var y=t(this),m=s(p),b=d(g,y,m);if(b.done)return b.value;var x=s(h(y));if(v(x,"g")===-1)return c(y,m);var S=v(x,"u")!==-1;y.lastIndex=0;for(var E=[],O=0,P;(P=c(y,m))!==null;){var _=s(P[0]);E[O]=_,_===""&&(y.lastIndex=l(m,a(y.lastIndex),S)),O++}return O===0?null:E}]}),Po}Gh();var Wo={},ca,Yo;function $h(){if(Yo)return ca;Yo=1;var n=J(),e=qr(),r=Math.floor,t=n("".charAt),i=n("".replace),a=n("".slice),s=/\$([$&'`]|\d{1,2}|<[^>]*>)/g,o=/\$([$&'`]|\d{1,2})/g;return ca=function(u,l,h,c,v,f){var g=h+u.length,d=c.length,p=o;return v!==void 0&&(v=e(v),p=s),i(f,p,function(y,m){var b;switch(t(m,0)){case"$":return"$";case"&":return u;case"`":return a(l,0,h);case"'":return a(l,g);case"<":b=v[a(m,1,-1)];break;default:var x=+m;if(x===0)return y;if(x>d){var S=r(x/10);return S===0?y:S<=d?c[S-1]===void 0?t(m,1):c[S-1]+t(m,1):y}b=c[x-1]}return b===void 0?"":b})},ca}var Xo;function zh(){if(Xo)return Wo;Xo=1;var n=xl(),e=ne(),r=J(),t=an(),i=Z(),a=le(),s=re(),o=pe(),u=jr(),l=or(),h=qe(),c=Pe(),v=nn(),f=sr(),g=$h(),d=sn(),p=on(),y=ae(),m=y("replace"),b=Math.max,x=Math.min,S=r([].concat),E=r([].push),O=r("".indexOf),P=r("".slice),_=function(j){return j===void 0?j:String(j)},A=(function(){return"a".replace(/./,"$0")==="$0"})(),q=(function(){return/./[m]?/./[m]("a","$0")==="":!1})(),I=!i(function(){var j=/./;return j.exec=function(){var C=[];return C.groups={a:"7"},C},"".replace(j,"$<a>")!=="7"});return t("replace",function(j,C,w){var U=q?"$":"$0";return[function(V,M){var N=c(this),k=o(V)?f(V,m):void 0;return k?e(k,V,N,M):e(C,h(N),V,M)},function(L,V){var M=a(this),N=h(L);if(typeof V=="string"&&O(V,U)===-1&&O(V,"$<")===-1){var k=w(C,M,N,V);if(k.done)return k.value}var z=s(V);z||(V=h(V));var H=h(d(M)),X=O(H,"g")!==-1,se;X&&(se=O(H,"u")!==-1,M.lastIndex=0);for(var be=[],oe;oe=p(M,N),!(oe===null||(E(be,oe),!X));){var Ue=h(oe[0]);Ue===""&&(M.lastIndex=v(N,l(M.lastIndex),se))}for(var Ge="",fe=0,Ne=0;Ne<be.length;Ne++){oe=be[Ne];for(var _e=h(oe[0]),me=b(x(u(oe.index),N.length),0),ce=[],xe,De=1;De<oe.length;De++)E(ce,_(oe[De]));var Ve=oe.groups;if(z){var Xe=S([_e],ce,me,N);Ve!==void 0&&E(Xe,Ve),xe=h(n(V,void 0,Xe))}else xe=g(_e,N,me,ce,Ve,V);me>=fe&&(Ge+=P(N,fe,me)+xe,fe=me+_e.length)}return Ge+P(N,fe)}]},!I||!A||q),Wo}zh();var Ko={},va,Qo;function Hh(){if(Qo)return va;Qo=1;var n=pe(),e=er(),r=ae(),t=r("match");return va=function(i){var a;return n(i)&&((a=i[t])!==void 0?!!a:e(i)==="RegExp")},va}var ga,Zo;function un(){if(Zo)return ga;Zo=1;var n=Hh(),e=TypeError;return ga=function(r){if(n(r))throw new e("The method doesn't accept regular expressions");return r},ga}var da,Jo;function ln(){if(Jo)return da;Jo=1;var n=ae(),e=n("match");return da=function(r){var t=/./;try{"/./"[r](t)}catch{try{return t[e]=!1,"/./"[r](t)}catch{}}return!1},da}var eu;function Wh(){if(eu)return Ko;eu=1;var n=he(),e=Ur(),r=Vr().f,t=or(),i=qe(),a=un(),s=Pe(),o=ln(),u=Me(),l=e("".slice),h=Math.min,c=o("startsWith"),v=!u&&!c&&!!(function(){var f=r(String.prototype,"startsWith");return f&&!f.writable})();return n({target:"String",proto:!0,forced:!v&&!c},{startsWith:function(g){var d=i(s(this));a(g);var p=t(h(arguments.length>1?arguments[1]:void 0,d.length)),y=i(g);return l(d,p,p+y.length)===y}}),Ko}Wh();var pa,ru;function Yh(){if(ru)return pa;ru=1;var n=ae(),e=Gr(),r=Ye().f,t=n("unscopables"),i=Array.prototype;return i[t]===void 0&&r(i,t,{configurable:!0,value:e(null)}),pa=function(a){i[t][a]=!0},pa}var ya,tu;function Xh(){if(tu)return ya;tu=1;var n=Z();return ya=!n(function(){function e(){}return e.prototype.constructor=null,Object.getPrototypeOf(new e)!==e.prototype}),ya}var ma,iu;function Il(){if(iu)return ma;iu=1;var n=Ae(),e=re(),r=qr(),t=Xa(),i=Xh(),a=t("IE_PROTO"),s=Object,o=s.prototype;return ma=i?s.getPrototypeOf:function(u){var l=r(u);if(n(l,a))return l[a];var h=l.constructor;return e(h)&&l instanceof h?h.prototype:l instanceof s?o:null},ma}var ba,au;function Nl(){if(au)return ba;au=1;var n=Z(),e=re(),r=pe(),t=Gr(),i=Il(),a=tr(),s=ae(),o=Me(),u=s("iterator"),l=!1,h,c,v;[].keys&&(v=[].keys(),"next"in v?(c=i(i(v)),c!==Object.prototype&&(h=c)):l=!0);var f=!r(h)||n(function(){var g={};return h[u].call(g)!==g});return f?h={}:o&&(h=t(h)),e(h[u])||a(h,u,function(){return this}),ba={IteratorPrototype:h,BUGGY_SAFARI_ITERATORS:l},ba}var xa,nu;function Kh(){if(nu)return xa;nu=1;var n=Nl().IteratorPrototype,e=Gr(),r=Ga(),t=Fr(),i=Tr(),a=function(){return this};return xa=function(s,o,u,l){var h=o+" Iterator";return s.prototype=e(n,{next:r(+!l,u)}),t(s,h,!1,!0),i[h]=a,s},xa}var Oa,su;function Qh(){if(su)return Oa;su=1;var n=he(),e=ne(),r=Me(),t=Lr(),i=re(),a=Kh(),s=Il(),o=ml(),u=Fr(),l=mr(),h=tr(),c=ae(),v=Tr(),f=Nl(),g=t.PROPER,d=t.CONFIGURABLE,p=f.IteratorPrototype,y=f.BUGGY_SAFARI_ITERATORS,m=c("iterator"),b="keys",x="values",S="entries",E=function(){return this};return Oa=function(O,P,_,A,q,I,j){a(_,P,A);var C=function(X){if(X===q&&M)return M;if(!y&&X&&X in L)return L[X];switch(X){case b:return function(){return new _(this,X)};case x:return function(){return new _(this,X)};case S:return function(){return new _(this,X)}}return function(){return new _(this)}},w=P+" Iterator",U=!1,L=O.prototype,V=L[m]||L["@@iterator"]||q&&L[q],M=!y&&V||C(q),N=P==="Array"&&L.entries||V,k,z,H;if(N&&(k=s(N.call(new O)),k!==Object.prototype&&k.next&&(!r&&s(k)!==p&&(o?o(k,p):i(k[m])||h(k,m,E)),u(k,w,!0,!0),r&&(v[w]=E))),g&&q===x&&V&&V.name!==x&&(!r&&d?l(L,"name",x):(U=!0,M=function(){return e(V,this)})),q)if(z={values:C(x),keys:I?M:C(b),entries:C(S)},j)for(H in z)(y||U||!(H in L))&&h(L,H,z[H]);else n({target:P,proto:!0,forced:y||U},z);return(!r||j)&&L[m]!==M&&h(L,m,M,{name:q}),v[P]=M,z},Oa}var Ta,ou;function Zh(){return ou||(ou=1,Ta=function(n,e){return{value:n,done:e}}),Ta}var Sa,uu;function _l(){if(uu)return Sa;uu=1;var n=pr(),e=Yh(),r=Tr(),t=kr(),i=Ye().f,a=Qh(),s=Zh(),o=Me(),u=we(),l="Array Iterator",h=t.set,c=t.getterFor(l);Sa=a(Array,"Array",function(f,g){h(this,{type:l,target:n(f),index:0,kind:g})},function(){var f=c(this),g=f.target,d=f.index++;if(!g||d>=g.length)return f.target=null,s(void 0,!0);switch(f.kind){case"keys":return s(d,!1);case"values":return s(g[d],!1)}return s([d,g[d]],!1)},"values");var v=r.Arguments=r.Array;if(e("keys"),e("values"),e("entries"),!o&&u&&v.name!=="values")try{i(v,"name",{value:"values"})}catch{}return Sa}_l();var lu={},Ea,hu;function Jh(){return hu||(hu=1,Ea={CSSRuleList:0,CSSStyleDeclaration:0,CSSValueList:0,ClientRectList:0,DOMRectList:0,DOMStringList:0,DOMTokenList:1,DataTransferItemList:0,FileList:0,HTMLAllCollection:0,HTMLCollection:0,HTMLFormElement:0,HTMLSelectElement:0,MediaList:0,MimeTypeArray:0,NamedNodeMap:0,NodeList:1,PaintRequestList:0,Plugin:0,PluginArray:0,SVGLengthList:0,SVGNumberList:0,SVGPathSegList:0,SVGPointList:0,SVGStringList:0,SVGTransformList:0,SourceBufferList:0,StyleSheetList:0,TextTrackCueList:0,TextTrackList:0,TouchList:0}),Ea}var Ra,fu;function ef(){if(fu)return Ra;fu=1;var n=Dr(),e=n("span").classList,r=e&&e.constructor&&e.constructor.prototype;return Ra=r===Object.prototype?void 0:r,Ra}var cu;function rf(){if(cu)return lu;cu=1;var n=Q(),e=Jh(),r=ef(),t=_l(),i=mr(),a=Fr(),s=ae(),o=s("iterator"),u=t.values,l=function(c,v){if(c){if(c[o]!==u)try{i(c,o,u)}catch{c[o]=u}if(a(c,v,!0),e[v]){for(var f in t)if(c[f]!==t[f])try{i(c,f,t[f])}catch{c[f]=t[f]}}}};for(var h in e)l(n[h]&&n[h].prototype,h);return l(r,"DOMTokenList"),lu}rf();var vu={},Ca,gu;function tf(){if(gu)return Ca;gu=1;var n=Fe(),e=qr(),r=nl(),t=Qa(),i=TypeError,a="Reduce of empty array with no initial value",s=function(o){return function(u,l,h,c){var v=e(u),f=r(v),g=t(v);if(n(l),g===0&&h<2)throw new i(a);var d=o?g-1:0,p=o?-1:1;if(h<2)for(;;){if(d in f){c=f[d],d+=p;break}if(d+=p,o?d<0:g<=d)throw new i(a)}for(;o?d>=0:g>d;d+=p)d in f&&(c=l(c,f[d],d,v));return c}};return Ca={left:s(!1),right:s(!0)},Ca}var wa,du;function Ml(){if(du)return wa;du=1;var n=Z();return wa=function(e,r){var t=[][e];return!!t&&n(function(){t.call(null,r||function(){return 1},1)})},wa}var pu;function af(){if(pu)return vu;pu=1;var n=he(),e=tf().left,r=Ml(),t=$a(),i=Br(),a=!i&&t>79&&t<83,s=a||!r("reduce");return n({target:"Array",proto:!0,forced:s},{reduce:function(u){var l=arguments.length;return e(this,u,l,l>1?arguments[1]:void 0)}}),vu}af();var yu={},mu;function nf(){if(mu)return yu;mu=1;var n=he(),e=Ur(),r=Vr().f,t=or(),i=qe(),a=un(),s=Pe(),o=ln(),u=Me(),l=e("".slice),h=Math.min,c=o("endsWith"),v=!u&&!c&&!!(function(){var f=r(String.prototype,"endsWith");return f&&!f.writable})();return n({target:"String",proto:!0,forced:!v&&!c},{endsWith:function(g){var d=i(s(this));a(g);var p=arguments.length>1?arguments[1]:void 0,y=d.length,m=p===void 0?y:h(t(p),y),b=i(g);return l(d,m-b.length,m)===b}}),yu}nf();var bu={},xu;function sf(){if(xu)return bu;xu=1;var n=ne(),e=J(),r=an(),t=le(),i=pe(),a=Pe(),s=bl(),o=nn(),u=or(),l=qe(),h=sr(),c=on(),v=Al(),f=Z(),g=v.UNSUPPORTED_Y,d=4294967295,p=Math.min,y=e([].push),m=e("".slice),b=!f(function(){var S=/(?:)/,E=S.exec;S.exec=function(){return E.apply(this,arguments)};var O="ab".split(S);return O.length!==2||O[0]!=="a"||O[1]!=="b"}),x="abbc".split(/(b)*/)[1]==="c"||"test".split(/(?:)/,-1).length!==4||"ab".split(/(?:ab)*/).length!==2||".".split(/(.?)(.?)/).length!==4||".".split(/()()/).length>1||"".split(/.?/).length;return r("split",function(S,E,O){var P="0".split(void 0,0).length?function(_,A){return _===void 0&&A===0?[]:n(E,this,_,A)}:E;return[function(A,q){var I=a(this),j=i(A)?h(A,S):void 0;return j?n(j,A,I,q):n(P,l(I),A,q)},function(_,A){var q=t(this),I=l(_);if(!x){var j=O(P,q,I,A,P!==E);if(j.done)return j.value}var C=s(q,RegExp),w=q.unicode,U=(q.ignoreCase?"i":"")+(q.multiline?"m":"")+(q.unicode?"u":"")+(g?"g":"y"),L=new C(g?"^(?:"+q.source+")":q,U),V=A===void 0?d:A>>>0;if(V===0)return[];if(I.length===0)return c(L,I)===null?[I]:[];for(var M=0,N=0,k=[];N<I.length;){L.lastIndex=g?0:N;var z=c(L,g?m(I,N):I),H;if(z===null||(H=p(u(L.lastIndex+(g?N:0)),I.length))===M)N=o(I,N,w);else{if(y(k,m(I,M,N)),k.length===V)return k;for(var X=1;X<=z.length-1;X++)if(y(k,z[X]),k.length===V)return k;N=M=H}}return y(k,m(I,M)),k}]},x||!b,g),bu}sf();var gr={exports:{}},Ze={exports:{}},of=Ze.exports,Ou;function uf(){return Ou||(Ou=1,(function(){var n,e,r,t,i,a;typeof performance<"u"&&performance!==null&&performance.now?Ze.exports=function(){return performance.now()}:typeof ar<"u"&&ar!==null&&ar.hrtime?(Ze.exports=function(){return(n()-i)/1e6},e=ar.hrtime,n=function(){var s;return s=e(),s[0]*1e9+s[1]},t=n(),a=ar.uptime()*1e9,i=t-a):Date.now?(Ze.exports=function(){return Date.now()-r},r=Date.now()):(Ze.exports=function(){return new Date().getTime()-r},r=new Date().getTime())}).call(of)),Ze.exports}var Tu;function lf(){if(Tu)return gr.exports;Tu=1;for(var n=uf(),e=typeof window>"u"?La:window,r=["moz","webkit"],t="AnimationFrame",i=e["request"+t],a=e["cancel"+t]||e["cancelRequest"+t],s=0;!i&&s<r.length;s++)i=e[r[s]+"Request"+t],a=e[r[s]+"Cancel"+t]||e[r[s]+"CancelRequest"+t];if(!i||!a){var o=0,u=0,l=[],h=1e3/60;i=function(c){if(l.length===0){var v=n(),f=Math.max(0,h-(v-o));o=f+v,setTimeout(function(){var g=l.slice(0);l.length=0;for(var d=0;d<g.length;d++)if(!g[d].cancelled)try{g[d].callback(o)}catch(p){setTimeout(function(){throw p},0)}},Math.round(f))}return l.push({handle:++u,callback:c,cancelled:!1}),u},a=function(c){for(var v=0;v<l.length;v++)l[v].handle===c&&(l[v].cancelled=!0)}}return gr.exports=function(c){return i.call(e,c)},gr.exports.cancel=function(){a.apply(e,arguments)},gr.exports.polyfill=function(c){c||(c=e),c.requestAnimationFrame=i,c.cancelAnimationFrame=a},gr.exports}var hf=lf();const Pa=al(hf);var Su={},Aa,Eu;function ql(){return Eu||(Eu=1,Aa=`
4
4
  \v\f\r                 \u2028\u2029\uFEFF`),Aa}var Ia,Ru;function ff(){if(Ru)return Ia;Ru=1;var n=J(),e=Pe(),r=qe(),t=ql(),i=n("".replace),a=RegExp("^["+t+"]+"),s=RegExp("(^|[^"+t+"])["+t+"]+$"),o=function(u){return function(l){var h=r(e(l));return u&1&&(h=i(h,a,"")),u&2&&(h=i(h,s,"$1")),h}};return Ia={start:o(1),end:o(2),trim:o(3)},Ia}var Na,Cu;function cf(){if(Cu)return Na;Cu=1;var n=Lr().PROPER,e=Z(),r=ql(),t="​…᠎";return Na=function(i){return e(function(){return!!r[i]()||t[i]()!==t||n&&r[i].name!==i})},Na}var wu;function vf(){if(wu)return Su;wu=1;var n=he(),e=ff().trim,r=cf();return n({target:"String",proto:!0,forced:r("trim")},{trim:function(){return e(this)}}),Su}vf();var _a,Pu;function gf(){return Pu||(Pu=1,_a=function(n){this.ok=!1,this.alpha=1,n.charAt(0)=="#"&&(n=n.substr(1,6)),n=n.replace(/ /g,""),n=n.toLowerCase();var e={aliceblue:"f0f8ff",antiquewhite:"faebd7",aqua:"00ffff",aquamarine:"7fffd4",azure:"f0ffff",beige:"f5f5dc",bisque:"ffe4c4",black:"000000",blanchedalmond:"ffebcd",blue:"0000ff",blueviolet:"8a2be2",brown:"a52a2a",burlywood:"deb887",cadetblue:"5f9ea0",chartreuse:"7fff00",chocolate:"d2691e",coral:"ff7f50",cornflowerblue:"6495ed",cornsilk:"fff8dc",crimson:"dc143c",cyan:"00ffff",darkblue:"00008b",darkcyan:"008b8b",darkgoldenrod:"b8860b",darkgray:"a9a9a9",darkgreen:"006400",darkkhaki:"bdb76b",darkmagenta:"8b008b",darkolivegreen:"556b2f",darkorange:"ff8c00",darkorchid:"9932cc",darkred:"8b0000",darksalmon:"e9967a",darkseagreen:"8fbc8f",darkslateblue:"483d8b",darkslategray:"2f4f4f",darkturquoise:"00ced1",darkviolet:"9400d3",deeppink:"ff1493",deepskyblue:"00bfff",dimgray:"696969",dodgerblue:"1e90ff",feldspar:"d19275",firebrick:"b22222",floralwhite:"fffaf0",forestgreen:"228b22",fuchsia:"ff00ff",gainsboro:"dcdcdc",ghostwhite:"f8f8ff",gold:"ffd700",goldenrod:"daa520",gray:"808080",green:"008000",greenyellow:"adff2f",honeydew:"f0fff0",hotpink:"ff69b4",indianred:"cd5c5c",indigo:"4b0082",ivory:"fffff0",khaki:"f0e68c",lavender:"e6e6fa",lavenderblush:"fff0f5",lawngreen:"7cfc00",lemonchiffon:"fffacd",lightblue:"add8e6",lightcoral:"f08080",lightcyan:"e0ffff",lightgoldenrodyellow:"fafad2",lightgrey:"d3d3d3",lightgreen:"90ee90",lightpink:"ffb6c1",lightsalmon:"ffa07a",lightseagreen:"20b2aa",lightskyblue:"87cefa",lightslateblue:"8470ff",lightslategray:"778899",lightsteelblue:"b0c4de",lightyellow:"ffffe0",lime:"00ff00",limegreen:"32cd32",linen:"faf0e6",magenta:"ff00ff",maroon:"800000",mediumaquamarine:"66cdaa",mediumblue:"0000cd",mediumorchid:"ba55d3",mediumpurple:"9370d8",mediumseagreen:"3cb371",mediumslateblue:"7b68ee",mediumspringgreen:"00fa9a",mediumturquoise:"48d1cc",mediumvioletred:"c71585",midnightblue:"191970",mintcream:"f5fffa",mistyrose:"ffe4e1",moccasin:"ffe4b5",navajowhite:"ffdead",navy:"000080",oldlace:"fdf5e6",olive:"808000",olivedrab:"6b8e23",orange:"ffa500",orangered:"ff4500",orchid:"da70d6",palegoldenrod:"eee8aa",palegreen:"98fb98",paleturquoise:"afeeee",palevioletred:"d87093",papayawhip:"ffefd5",peachpuff:"ffdab9",peru:"cd853f",pink:"ffc0cb",plum:"dda0dd",powderblue:"b0e0e6",purple:"800080",rebeccapurple:"663399",red:"ff0000",rosybrown:"bc8f8f",royalblue:"4169e1",saddlebrown:"8b4513",salmon:"fa8072",sandybrown:"f4a460",seagreen:"2e8b57",seashell:"fff5ee",sienna:"a0522d",silver:"c0c0c0",skyblue:"87ceeb",slateblue:"6a5acd",slategray:"708090",snow:"fffafa",springgreen:"00ff7f",steelblue:"4682b4",tan:"d2b48c",teal:"008080",thistle:"d8bfd8",tomato:"ff6347",turquoise:"40e0d0",violet:"ee82ee",violetred:"d02090",wheat:"f5deb3",white:"ffffff",whitesmoke:"f5f5f5",yellow:"ffff00",yellowgreen:"9acd32"};n=e[n]||n;for(var r=[{re:/^rgba\((\d{1,3}),\s*(\d{1,3}),\s*(\d{1,3}),\s*((?:\d?\.)?\d)\)$/,example:["rgba(123, 234, 45, 0.8)","rgba(255,234,245,1.0)"],process:function(u){return[parseInt(u[1]),parseInt(u[2]),parseInt(u[3]),parseFloat(u[4])]}},{re:/^rgb\((\d{1,3}),\s*(\d{1,3}),\s*(\d{1,3})\)$/,example:["rgb(123, 234, 45)","rgb(255,234,245)"],process:function(u){return[parseInt(u[1]),parseInt(u[2]),parseInt(u[3])]}},{re:/^([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})$/,example:["#00ff00","336699"],process:function(u){return[parseInt(u[1],16),parseInt(u[2],16),parseInt(u[3],16)]}},{re:/^([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})$/,example:["#fb0","f0f"],process:function(u){return[parseInt(u[1]+u[1],16),parseInt(u[2]+u[2],16),parseInt(u[3]+u[3],16)]}}],t=0;t<r.length;t++){var i=r[t].re,a=r[t].process,s=i.exec(n);if(s){var o=a(s);this.r=o[0],this.g=o[1],this.b=o[2],o.length>3&&(this.alpha=o[3]),this.ok=!0}}this.r=this.r<0||isNaN(this.r)?0:this.r>255?255:this.r,this.g=this.g<0||isNaN(this.g)?0:this.g>255?255:this.g,this.b=this.b<0||isNaN(this.b)?0:this.b>255?255:this.b,this.alpha=this.alpha<0?0:this.alpha>1||isNaN(this.alpha)?1:this.alpha,this.toRGB=function(){return"rgb("+this.r+", "+this.g+", "+this.b+")"},this.toRGBA=function(){return"rgba("+this.r+", "+this.g+", "+this.b+", "+this.alpha+")"},this.toHex=function(){var u=this.r.toString(16),l=this.g.toString(16),h=this.b.toString(16);return u.length==1&&(u="0"+u),l.length==1&&(l="0"+l),h.length==1&&(h="0"+h),"#"+u+l+h},this.getHelpXML=function(){for(var u=new Array,l=0;l<r.length;l++)for(var h=r[l].example,c=0;c<h.length;c++)u[u.length]=h[c];for(var v in e)u[u.length]=v;var f=document.createElement("ul");f.setAttribute("id","rgbcolor-examples");for(var l=0;l<u.length;l++)try{var g=document.createElement("li"),d=new RGBColor(u[l]),p=document.createElement("div");p.style.cssText="margin: 3px; border: 1px solid black; background:"+d.toHex()+"; color:"+d.toHex(),p.appendChild(document.createTextNode("test"));var y=document.createTextNode(" "+u[l]+" -> "+d.toRGB()+" -> "+d.toHex());g.appendChild(p),g.appendChild(y),f.appendChild(g)}catch{}return f}}),_a}var df=gf();const ka=al(df);var Au={},Iu;function pf(){if(Iu)return Au;Iu=1;var n=he(),e=Ur(),r=gl().indexOf,t=Ml(),i=e([].indexOf),a=!!i&&1/i([1],1,-0)<0,s=a||!t("indexOf");return n({target:"Array",proto:!0,forced:s},{indexOf:function(u){var l=arguments.length>1?arguments[1]:void 0;return a?i(this,u,l)||0:r(this,u,l)}}),Au}pf();var Nu={},_u;function yf(){if(_u)return Nu;_u=1;var n=he(),e=J(),r=un(),t=Pe(),i=qe(),a=ln(),s=e("".indexOf);return n({target:"String",proto:!0,forced:!a("includes")},{includes:function(u){return!!~s(i(t(this)),i(r(u)),arguments.length>1?arguments[1]:void 0)}}),Nu}yf();var Mu={},Ma,qu;function mf(){if(qu)return Ma;qu=1;var n=er();return Ma=Array.isArray||function(r){return n(r)==="Array"},Ma}var Du;function bf(){if(Du)return Mu;Du=1;var n=he(),e=J(),r=mf(),t=e([].reverse),i=[1,2];return n({target:"Array",proto:!0,forced:String(i)===String(i.reverse())},{reverse:function(){return r(this)&&(this.length=this.length),t(this)}}),Mu}bf();/*! *****************************************************************************
package/dist/index.html CHANGED
@@ -5,7 +5,7 @@
5
5
  <link rel="icon" href="/icons/accounter-logo.svg" />
6
6
  <meta name="viewport" content="width=device-width, initial-scale=1.0" />
7
7
  <title>Accounter</title>
8
- <script type="module" crossorigin src="/assets/index-CnTIdkah.js"></script>
8
+ <script type="module" crossorigin src="/assets/index-BOyFL30y.js"></script>
9
9
  <link rel="stylesheet" crossorigin href="/assets/index-DfCyUsXC.css">
10
10
  </head>
11
11
  <body>
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@accounter/client",
3
- "version": "0.0.7-alpha-20250919130226-04194378e3d94f96e264819321770fe3937320ef",
3
+ "version": "0.0.7-alpha-20250919131445-a9a65758bac5324d3e495c45cc75ec0e53f237b3",
4
4
  "type": "module",
5
5
  "license": "MIT",
6
6
  "scripts": {
@@ -218,6 +218,7 @@ export function ChargeExtendedInfoMenu({
218
218
  chargeId={chargeId}
219
219
  open={previewIssueDocument}
220
220
  setOpen={setPreviewIssueDocument}
221
+ onDone={() => onChange?.()}
221
222
  />
222
223
  </>
223
224
  );