@zeniai/web-cockpit-ui 2.2.64-prod → 2.2.65-dev
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/assets/{CreditAgentRoutes-Q9VdGV4k.js → CreditAgentRoutes-UPEKAdmY.js} +1 -1
- package/dist/assets/{Preview-BJouCit3.js → Preview-CmBofpv7.js} +1 -1
- package/dist/assets/{ScreenRoutes-Rl6_hirE.js → ScreenRoutes-B8uhbx-C.js} +3 -3
- package/dist/assets/SignInScreen-_SETUtTo.js +1 -0
- package/dist/assets/{analytics-CDwBcXJK.js → analytics-Bsf7HfJx.js} +1 -1
- package/dist/assets/{analyticsHelper-FyJ2lkX8.js → analyticsHelper-Cd7EFCFK.js} +1 -1
- package/dist/assets/{core-CcDywdK9.js → core-Dt5T98F0.js} +1 -1
- package/dist/assets/{dash.all.min-DjyarFYb.js → dash.all.min-CVXA0weo.js} +1 -1
- package/dist/assets/{empty-CY0nZxqB.js → empty-DsdvS_c8.js} +1 -1
- package/dist/assets/{empty-C2x3-AJO.js → empty-DzkUY9hr.js} +1 -1
- package/dist/assets/epic-DDI1Ecrf.js +2 -0
- package/dist/assets/{index-Eq7R70a8.js → index--1nOCer4.js} +1 -1
- package/dist/assets/{index-DGKmPoKA.js → index-CfLQcrDD.js} +1 -1
- package/dist/assets/{index-BtYYkWK4.js → index-Cntn6QHm.js} +2 -2
- package/dist/assets/{index-2Mhkw_1k.js → index-DBxpK-2g.js} +1 -1
- package/dist/assets/{index-_YkwmZ_p.js → index-DkFrSPM1.js} +174 -148
- package/dist/assets/{index-JX3oUO17.js → index-d2jpub5P.js} +1 -1
- package/dist/assets/{index-BxqQRZ16.js → index-y4rvaaOT.js} +1 -1
- package/dist/assets/{lexical-Cyf7rlAN.js → lexical-XzHuKopd.js} +1 -1
- package/dist/assets/{liveblocks-Dh7L3gqH.js → liveblocks-Cyvh4M2x.js} +1 -1
- package/dist/assets/{lottie-CZPZ5jdc.js → lottie-DpWj9vdA.js} +1 -1
- package/dist/assets/{mui-CEoquRvS.js → mui-D-7bVBnV.js} +1 -1
- package/dist/assets/{react-CbJWWVHT.js → react-BWtBmgcL.js} +1 -1
- package/dist/assets/{react-Dxoz6ycu.js → react-BfJVmN2A.js} +1 -1
- package/dist/assets/{react-jccWUQhh.js → react-ChifmJ0g.js} +1 -1
- package/dist/assets/{react-CtGMBjQQ.js → react-DaZMTjVi.js} +2 -2
- package/dist/assets/{react-ZU-jDoNE.js → react-KnWLB4qe.js} +1 -1
- package/dist/assets/{react-DT1PU1vt.js → react-ZO6zak3X.js} +1 -1
- package/dist/assets/{react-CROZ9Tfj.js → react-ZWLpQ4Ll.js} +1 -1
- package/dist/assets/{react-Bi4ACVos.js → react-uHKaRhnI.js} +1 -1
- package/dist/assets/{recharts-BMjy8z8n.js → recharts-0co-2Yen.js} +1 -1
- package/dist/assets/{sentry-D7LIP4Fu.js → sentry-388McK0f.js} +1 -1
- package/dist/assets/{url-Cr60XBYe.js → url-COJBLlNj.js} +1 -1
- package/dist/assets/{url-tkOd2_Ob.js → url-CYBsJmkc.js} +1 -1
- package/dist/assets/{utils-CtMtj4xW.js → utils-Cm7JQ6p6.js} +1 -1
- package/dist/assets/{zeni-epic-state-WlcCxGEi.js → zeni-epic-state-DHh4GgWc.js} +5 -5
- package/dist/index.html +1 -1
- package/package.json +4 -4
- package/dist/assets/SignInScreen-DDwE3AP-.js +0 -1
- package/dist/assets/epic-CWe7b1vj.js +0 -2
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["assets/empty-
|
|
2
|
-
import{R as A,b as b4,a as g,r as id,g as KG,p as Qh,d as FX,f as wWe,s as RX,w as bWe,i as vWe,S as CWe,j as AWe,k as $We,l as kWe,m as SWe}from"./sentry-D7LIP4Fu.js";import{j as xo,_ as qwe,a as Hd,u as Zwe,T as EWe,C as LWe,b as IWe,c as YE,d as KE,e as jWe,f as MWe,g as Jwe,h as BWe,i as DWe,L as PWe,k as OX,l as TWe,m as zWe,n as FWe,P as RWe,o as OWe,p as NWe,q as Xwe,r as HWe,s as _We,I as NX,t as VWe,v as QWe,w as UWe,x as WWe,y as GWe,z as YWe,A as ebe,B as KWe,D as qWe,E as ZWe}from"./liveblocks-Dh7L3gqH.js";import{f as tbe,r as Mn,P as gn,R as JWe,u as qE,g as Lu,h as XWe,i as qG,j as eGe,k as tGe,l as LB,N as oGe,m as iGe,n as rGe,B as nGe}from"./core-CcDywdK9.js";import{H as fk,ba as K3,bb as aGe,bc as HX,bd as R4,be as ui,bf as obe,bg as ji,bh as ZE,bi as sGe,bj as Vu,bk as lGe,bl as dGe,bm as o6,bn as um,bo as Y6,bp as ibe,bq as cGe,br as h1,bs as rbe,bt as pGe,bu as O4,bv as _w,bw as Vr,bx as i6,by as ru,bz as _X,bA as uGe,bB as hGe,bC as xk,bD as UV,bE as mGe,bF as gGe,bG as fGe,bH as xGe,bI as ZG,bJ as nbe,bK as yGe,bL as uy,bM as wGe,bN as abe,bO as WV,bP as VX,bQ as QX,bR as UX,bS as sl,bT as JG,bU as sbe,bV as lbe,bW as XG,bX as K6,bY as JE,bZ as eY,b_ as tY,b$ as oY,c0 as iY,c1 as bGe,c2 as GV,c3 as vGe,c4 as dbe,c5 as XE,c6 as $1,c7 as k1,c8 as yk,c9 as cbe,ca as pbe,cb as CGe,cc as rY,cd as nY,ce as AGe,cf as $Ge,cg as x1,ch as Vw,ci as Qw,cj as kGe,ck as SGe,cl as EGe,cm as LGe,cn as IGe,co as jGe,cp as MGe,cq as $v,cr as ube,cs as hbe,ct as BGe,cu as DGe,cv as mbe,cw as gbe,cx as PGe,cy as TGe,cz as zGe,cA as fbe,cB as xbe,cC as FGe,cD as RGe,cE as ybe,cF as wbe,cG as OGe,cH as WX,cI as NGe,cJ as HGe,cK as Ny,cL as _Ge,cM as bbe,cN as VGe,cO as vbe,cP as QGe,cQ as GX,cR as UGe,cS as Cbe,cT as Abe,cU as $be,cV as kbe,cW as Sbe,cX as WGe,cY as Ebe,cZ as GGe,c_ as YGe,c$ as KGe,d0 as Lbe,d1 as YV,d2 as qGe,d3 as Ibe,d4 as jbe,d5 as ZGe,d6 as JGe,d7 as XGe,d8 as eYe,d9 as tYe,da as oYe,db as iYe,dc as rYe,v as nYe,dd as eL,de as KV,df as qV,dg as aYe,dh as sYe,di as lYe,dj as dYe,dk as cYe,dl as pYe,dm as uYe,dn as hYe,dp as mYe,dq as gYe,dr as YX,ds as fYe,dt as xYe,du as yYe,dv as wYe,dw as bYe}from"./zeni-epic-state-WlcCxGEi.js";import{j as Oo,c as de,k as _t,u as lt,n as r,F as vYe,C as ri,a as Mbe,b as KX,T as CYe,d as Bbe,e as Dbe,f as Pbe,g as AYe,M as Tbe,G as tL,h as $Ye,P as N4,i as v4,S as zbe,l as kYe,m as SYe,o as EYe,p as LYe,D as IYe,q as jYe,s as Fbe}from"./mui-CEoquRvS.js";import{r as MYe,m as nu}from"./analytics-CDwBcXJK.js";import{L as ZV}from"./lottie-CZPZ5jdc.js";import{r as pa}from"./lexical-Cyf7rlAN.js";import{F as zr,c as oL,P as BYe,R as JV,G as wk,X as zd,Y as Fd,H as L2,I as bk,J as iL,K as I2,L as Rbe,M as DYe,N as PYe,O as H4,Q as aY,S as sY,U as Uw,V as TYe}from"./recharts-BMjy8z8n.js";import{r as zYe}from"./utils-CtMtj4xW.js";(function(){try{var e=typeof window<"u"?window:typeof b4<"u"?b4:typeof globalThis<"u"?globalThis:typeof self<"u"?self:{},t=new e.Error().stack;t&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[t]="e0e3e213-c635-4172-91bd-bad327ae661c",e._sentryDebugIdIdentifier="sentry-dbid-e0e3e213-c635-4172-91bd-bad327ae661c")}catch{}})();(function(){const t=document.createElement("link").relList;if(t&&t.supports&&t.supports("modulepreload"))return;for(const a of document.querySelectorAll('link[rel="modulepreload"]'))n(a);new MutationObserver(a=>{for(const l of a)if(l.type==="childList")for(const d of l.addedNodes)d.tagName==="LINK"&&d.rel==="modulepreload"&&n(d)}).observe(document,{childList:!0,subtree:!0});function i(a){const l={};return a.integrity&&(l.integrity=a.integrity),a.referrerPolicy&&(l.referrerPolicy=a.referrerPolicy),a.crossOrigin==="use-credentials"?l.credentials="include":a.crossOrigin==="anonymous"?l.credentials="omit":l.credentials="same-origin",l}function n(a){if(a.ep)return;a.ep=!0;const l=i(a);fetch(a.href,l)}})();var kv={},qX;function FYe(){if(qX)return kv;qX=1;var e=tbe();return kv.createRoot=e.createRoot,kv.hydrateRoot=e.hydrateRoot,kv}var RYe=FYe(),Vl=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof b4<"u"?b4:typeof self<"u"?self:{};function Fi(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var ZX={exports:{}},Q8={},JX;function OYe(){if(JX)return Q8;JX=1;var e=A,t=Symbol.for("react.element"),i=Symbol.for("react.fragment"),n=Object.prototype.hasOwnProperty,a=e.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,l={key:!0,ref:!0,__self:!0,__source:!0};function d(c,p,u){var h,m={},f=null,x=null;u!==void 0&&(f=""+u),p.key!==void 0&&(f=""+p.key),p.ref!==void 0&&(x=p.ref);for(h in p)n.call(p,h)&&!l.hasOwnProperty(h)&&(m[h]=p[h]);if(c&&c.defaultProps)for(h in p=c.defaultProps,p)m[h]===void 0&&(m[h]=p[h]);return{$$typeof:t,type:c,key:f,ref:x,props:m,_owner:a.current}}return Q8.Fragment=i,Q8.jsx=d,Q8.jsxs=d,Q8}var XX;function Obe(){return XX||(XX=1,ZX.exports=OYe()),ZX.exports}var s=Obe();const NYe=g.createContext(null),IB={didCatch:!1,error:null};let HYe=class extends g.Component{constructor(t){super(t),this.resetErrorBoundary=this.resetErrorBoundary.bind(this),this.state=IB}static getDerivedStateFromError(t){return{didCatch:!0,error:t}}resetErrorBoundary(){const{error:t}=this.state;if(t!==null){for(var i,n,a=arguments.length,l=new Array(a),d=0;d<a;d++)l[d]=arguments[d];(i=(n=this.props).onReset)===null||i===void 0||i.call(n,{args:l,reason:"imperative-api"}),this.setState(IB)}}componentDidCatch(t,i){var n,a;(n=(a=this.props).onError)===null||n===void 0||n.call(a,t,i)}componentDidUpdate(t,i){const{didCatch:n}=this.state,{resetKeys:a}=this.props;if(n&&i.error!==null&&_Ye(t.resetKeys,a)){var l,d;(l=(d=this.props).onReset)===null||l===void 0||l.call(d,{next:a,prev:t.resetKeys,reason:"keys"}),this.setState(IB)}}render(){const{children:t,fallbackRender:i,FallbackComponent:n,fallback:a}=this.props,{didCatch:l,error:d}=this.state;let c=t;if(l){const p={error:d,resetErrorBoundary:this.resetErrorBoundary};if(typeof i=="function")c=i(p);else if(n)c=g.createElement(n,p);else if(a!==void 0)c=a;else throw d}return g.createElement(NYe.Provider,{value:{didCatch:l,error:d,resetErrorBoundary:this.resetErrorBoundary}},c)}};function _Ye(){let e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[],t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:[];return e.length!==t.length||e.some((i,n)=>!Object.is(i,t[n]))}var F$={exports:{}},VYe=F$.exports,eee;function QYe(){return eee||(eee=1,(function(e,t){typeof document<"u"&&typeof navigator<"u"&&(function(i,n){e.exports=n()})(VYe,(function(){var i="http://www.w3.org/2000/svg",n="",a=!1,l=-999999,d=function(M){a=!!M},c=function(){return a},p=function(M){n=M},u=function(){return n};function h(M){return document.createElement(M)}function m(M,_){var K,oe=M.length,se;for(K=0;K<oe;K+=1){se=M[K].prototype;for(var re in se)Object.prototype.hasOwnProperty.call(se,re)&&(_.prototype[re]=se[re])}}function f(M){function _(){}return _.prototype=M,_}var x=(function(){function M(_){this.audios=[],this.audioFactory=_,this._volume=1,this._isMuted=!1}return M.prototype={addAudio:function(_){this.audios.push(_)},pause:function(){var _,K=this.audios.length;for(_=0;_<K;_+=1)this.audios[_].pause()},resume:function(){var _,K=this.audios.length;for(_=0;_<K;_+=1)this.audios[_].resume()},setRate:function(_){var K,oe=this.audios.length;for(K=0;K<oe;K+=1)this.audios[K].setRate(_)},createAudio:function(_){return this.audioFactory?this.audioFactory(_):window.Howl?new window.Howl({src:[_]}):{isPlaying:!1,play:function(){this.isPlaying=!0},seek:function(){this.isPlaying=!1},playing:function(){},rate:function(){},setVolume:function(){}}},setAudioFactory:function(_){this.audioFactory=_},setVolume:function(_){this._volume=_,this._updateVolume()},mute:function(){this._isMuted=!0,this._updateVolume()},unmute:function(){this._isMuted=!1,this._updateVolume()},getVolume:function(){return this._volume},_updateVolume:function(){var _,K=this.audios.length;for(_=0;_<K;_+=1)this.audios[_].volume(this._volume*(this._isMuted?0:1))}},function(){return new M}})(),y=(function(){function M(K,oe){var se=0,re=[],ve;switch(K){case"int16":case"uint8c":ve=1;break;default:ve=1.1;break}for(se=0;se<oe;se+=1)re.push(ve);return re}function _(K,oe){return K==="float32"?new Float32Array(oe):K==="int16"?new Int16Array(oe):K==="uint8c"?new Uint8ClampedArray(oe):M(K,oe)}return typeof Uint8ClampedArray=="function"&&typeof Float32Array=="function"?_:M})();function w(M){return Array.apply(null,{length:M})}var b=!0,C=null,k="",E=/^((?!chrome|android).)*safari/i.test(navigator.userAgent),S=Math.pow,j=Math.sqrt,I=Math.floor,T=Math.min,P=150,B=Math.PI/180,D=.5519;function F(M,_,K,oe){this.type=M,this.currentTime=_,this.totalTime=K,this.direction=oe<0?-1:1}function Y(M,_){this.type=M,this.direction=_<0?-1:1}function q(M,_,K,oe){this.type=M,this.currentLoop=K,this.totalLoops=_,this.direction=oe<0?-1:1}function Z(M,_,K){this.type=M,this.firstFrame=_,this.totalFrames=K}function V(M,_){this.type=M,this.target=_}function H(M,_){this.type="renderFrameError",this.nativeError=M,this.currentTime=_}function N(M){this.type="configError",this.nativeError=M}var O=(function(){var M=0;return function(){return M+=1,k+"__lottie_element_"+M}})();function z(M,_,K){var oe,se,re,ve,Be,we,Ke,et;switch(ve=Math.floor(M*6),Be=M*6-ve,we=K*(1-_),Ke=K*(1-Be*_),et=K*(1-(1-Be)*_),ve%6){case 0:oe=K,se=et,re=we;break;case 1:oe=Ke,se=K,re=we;break;case 2:oe=we,se=K,re=et;break;case 3:oe=we,se=Ke,re=K;break;case 4:oe=et,se=we,re=K;break;case 5:oe=K,se=we,re=Ke;break}return[oe,se,re]}function R(M,_,K){var oe=Math.max(M,_,K),se=Math.min(M,_,K),re=oe-se,ve,Be=oe===0?0:re/oe,we=oe/255;switch(oe){case se:ve=0;break;case M:ve=_-K+re*(_<K?6:0),ve/=6*re;break;case _:ve=K-M+re*2,ve/=6*re;break;case K:ve=M-_+re*4,ve/=6*re;break}return[ve,Be,we]}function te(M,_){var K=R(M[0]*255,M[1]*255,M[2]*255);return K[1]+=_,K[1]>1?K[1]=1:K[1]<=0&&(K[1]=0),z(K[0],K[1],K[2])}function G(M,_){var K=R(M[0]*255,M[1]*255,M[2]*255);return K[2]+=_,K[2]>1?K[2]=1:K[2]<0&&(K[2]=0),z(K[0],K[1],K[2])}function W(M,_){var K=R(M[0]*255,M[1]*255,M[2]*255);return K[0]+=_/360,K[0]>1?K[0]-=1:K[0]<0&&(K[0]+=1),z(K[0],K[1],K[2])}(function(){var M=[],_,K;for(_=0;_<256;_+=1)K=_.toString(16),M[_]=K.length===1?"0"+K:K;return function(oe,se,re){return oe<0&&(oe=0),se<0&&(se=0),re<0&&(re=0),"#"+M[oe]+M[se]+M[re]}})();var ee=function(M){b=!!M},J=function(){return b},ne=function(M){C=M},ye=function(){return C},me=function(M){P=M},ue=function(){return P},pe=function(M){k=M};function xe(M){return document.createElementNS(i,M)}function be(M){"@babel/helpers - typeof";return be=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(_){return typeof _}:function(_){return _&&typeof Symbol=="function"&&_.constructor===Symbol&&_!==Symbol.prototype?"symbol":typeof _},be(M)}var le=(function(){var M=1,_=[],K,oe,se={onmessage:function(){},postMessage:function(Le){K({data:Le})}},re={postMessage:function(Le){se.onmessage({data:Le})}};function ve(Le){if(window.Worker&&window.Blob&&c()){var nt=new Blob(["var _workerSelf = self; self.onmessage = ",Le.toString()],{type:"text/javascript"}),dt=URL.createObjectURL(nt);return new Worker(dt)}return K=Le,se}function Be(){oe||(oe=ve(function(Le){function nt(){function ot(Mt,Ut){var Te,We,ge=Mt.length,Ve,ft,ct,Xo;for(We=0;We<ge;We+=1)if(Te=Mt[We],"ks"in Te&&!Te.completed){if(Te.completed=!0,Te.hasMask){var fo=Te.masksProperties;for(ft=fo.length,Ve=0;Ve<ft;Ve+=1)if(fo[Ve].pt.k.i)Me(fo[Ve].pt.k);else for(Xo=fo[Ve].pt.k.length,ct=0;ct<Xo;ct+=1)fo[Ve].pt.k[ct].s&&Me(fo[Ve].pt.k[ct].s[0]),fo[Ve].pt.k[ct].e&&Me(fo[Ve].pt.k[ct].e[0])}Te.ty===0?(Te.layers=Ee(Te.refId,Ut),ot(Te.layers,Ut)):Te.ty===4?ke(Te.shapes):Te.ty===5&&co(Te)}}function ut(Mt,Ut){if(Mt){var Te=0,We=Mt.length;for(Te=0;Te<We;Te+=1)Mt[Te].t===1&&(Mt[Te].data.layers=Ee(Mt[Te].data.refId,Ut),ot(Mt[Te].data.layers,Ut))}}function Ue(Mt,Ut){for(var Te=0,We=Ut.length;Te<We;){if(Ut[Te].id===Mt)return Ut[Te];Te+=1}return null}function Ee(Mt,Ut){var Te=Ue(Mt,Ut);return Te?Te.layers.__used?JSON.parse(JSON.stringify(Te.layers)):(Te.layers.__used=!0,Te.layers):null}function ke(Mt){var Ut,Te=Mt.length,We,ge;for(Ut=Te-1;Ut>=0;Ut-=1)if(Mt[Ut].ty==="sh")if(Mt[Ut].ks.k.i)Me(Mt[Ut].ks.k);else for(ge=Mt[Ut].ks.k.length,We=0;We<ge;We+=1)Mt[Ut].ks.k[We].s&&Me(Mt[Ut].ks.k[We].s[0]),Mt[Ut].ks.k[We].e&&Me(Mt[Ut].ks.k[We].e[0]);else Mt[Ut].ty==="gr"&&ke(Mt[Ut].it)}function Me(Mt){var Ut,Te=Mt.i.length;for(Ut=0;Ut<Te;Ut+=1)Mt.i[Ut][0]+=Mt.v[Ut][0],Mt.i[Ut][1]+=Mt.v[Ut][1],Mt.o[Ut][0]+=Mt.v[Ut][0],Mt.o[Ut][1]+=Mt.v[Ut][1]}function Ye(Mt,Ut){var Te=Ut?Ut.split("."):[100,100,100];return Mt[0]>Te[0]?!0:Te[0]>Mt[0]?!1:Mt[1]>Te[1]?!0:Te[1]>Mt[1]?!1:Mt[2]>Te[2]?!0:Te[2]>Mt[2]?!1:null}var ht=(function(){var Mt=[4,4,14];function Ut(We){var ge=We.t.d;We.t.d={k:[{s:ge,t:0}]}}function Te(We){var ge,Ve=We.length;for(ge=0;ge<Ve;ge+=1)We[ge].ty===5&&Ut(We[ge])}return function(We){if(Ye(Mt,We.v)&&(Te(We.layers),We.assets)){var ge,Ve=We.assets.length;for(ge=0;ge<Ve;ge+=1)We.assets[ge].layers&&Te(We.assets[ge].layers)}}})(),$t=(function(){var Mt=[4,7,99];return function(Ut){if(Ut.chars&&!Ye(Mt,Ut.v)){var Te,We=Ut.chars.length;for(Te=0;Te<We;Te+=1){var ge=Ut.chars[Te];ge.data&&ge.data.shapes&&(ke(ge.data.shapes),ge.data.ip=0,ge.data.op=99999,ge.data.st=0,ge.data.sr=1,ge.data.ks={p:{k:[0,0],a:0},s:{k:[100,100],a:0},a:{k:[0,0],a:0},r:{k:0,a:0},o:{k:100,a:0}},Ut.chars[Te].t||(ge.data.shapes.push({ty:"no"}),ge.data.shapes[0].it.push({p:{k:[0,0],a:0},s:{k:[100,100],a:0},a:{k:[0,0],a:0},r:{k:0,a:0},o:{k:100,a:0},sk:{k:0,a:0},sa:{k:0,a:0},ty:"tr"})))}}}})(),kt=(function(){var Mt=[5,7,15];function Ut(We){var ge=We.t.p;typeof ge.a=="number"&&(ge.a={a:0,k:ge.a}),typeof ge.p=="number"&&(ge.p={a:0,k:ge.p}),typeof ge.r=="number"&&(ge.r={a:0,k:ge.r})}function Te(We){var ge,Ve=We.length;for(ge=0;ge<Ve;ge+=1)We[ge].ty===5&&Ut(We[ge])}return function(We){if(Ye(Mt,We.v)&&(Te(We.layers),We.assets)){var ge,Ve=We.assets.length;for(ge=0;ge<Ve;ge+=1)We.assets[ge].layers&&Te(We.assets[ge].layers)}}})(),Zt=(function(){var Mt=[4,1,9];function Ut(We){var ge,Ve=We.length,ft,ct;for(ge=0;ge<Ve;ge+=1)if(We[ge].ty==="gr")Ut(We[ge].it);else if(We[ge].ty==="fl"||We[ge].ty==="st")if(We[ge].c.k&&We[ge].c.k[0].i)for(ct=We[ge].c.k.length,ft=0;ft<ct;ft+=1)We[ge].c.k[ft].s&&(We[ge].c.k[ft].s[0]/=255,We[ge].c.k[ft].s[1]/=255,We[ge].c.k[ft].s[2]/=255,We[ge].c.k[ft].s[3]/=255),We[ge].c.k[ft].e&&(We[ge].c.k[ft].e[0]/=255,We[ge].c.k[ft].e[1]/=255,We[ge].c.k[ft].e[2]/=255,We[ge].c.k[ft].e[3]/=255);else We[ge].c.k[0]/=255,We[ge].c.k[1]/=255,We[ge].c.k[2]/=255,We[ge].c.k[3]/=255}function Te(We){var ge,Ve=We.length;for(ge=0;ge<Ve;ge+=1)We[ge].ty===4&&Ut(We[ge].shapes)}return function(We){if(Ye(Mt,We.v)&&(Te(We.layers),We.assets)){var ge,Ve=We.assets.length;for(ge=0;ge<Ve;ge+=1)We.assets[ge].layers&&Te(We.assets[ge].layers)}}})(),Lo=(function(){var Mt=[4,4,18];function Ut(We){var ge,Ve=We.length,ft,ct;for(ge=Ve-1;ge>=0;ge-=1)if(We[ge].ty==="sh")if(We[ge].ks.k.i)We[ge].ks.k.c=We[ge].closed;else for(ct=We[ge].ks.k.length,ft=0;ft<ct;ft+=1)We[ge].ks.k[ft].s&&(We[ge].ks.k[ft].s[0].c=We[ge].closed),We[ge].ks.k[ft].e&&(We[ge].ks.k[ft].e[0].c=We[ge].closed);else We[ge].ty==="gr"&&Ut(We[ge].it)}function Te(We){var ge,Ve,ft=We.length,ct,Xo,fo,Wi;for(Ve=0;Ve<ft;Ve+=1){if(ge=We[Ve],ge.hasMask){var xi=ge.masksProperties;for(Xo=xi.length,ct=0;ct<Xo;ct+=1)if(xi[ct].pt.k.i)xi[ct].pt.k.c=xi[ct].cl;else for(Wi=xi[ct].pt.k.length,fo=0;fo<Wi;fo+=1)xi[ct].pt.k[fo].s&&(xi[ct].pt.k[fo].s[0].c=xi[ct].cl),xi[ct].pt.k[fo].e&&(xi[ct].pt.k[fo].e[0].c=xi[ct].cl)}ge.ty===4&&Ut(ge.shapes)}}return function(We){if(Ye(Mt,We.v)&&(Te(We.layers),We.assets)){var ge,Ve=We.assets.length;for(ge=0;ge<Ve;ge+=1)We.assets[ge].layers&&Te(We.assets[ge].layers)}}})();function bo(Mt){Mt.__complete||(Zt(Mt),ht(Mt),$t(Mt),kt(Mt),Lo(Mt),ot(Mt.layers,Mt.assets),ut(Mt.chars,Mt.assets),Mt.__complete=!0)}function co(Mt){Mt.t.a.length===0&&"m"in Mt.t.p}var jo={};return jo.completeData=bo,jo.checkColors=Zt,jo.checkChars=$t,jo.checkPathProperties=kt,jo.checkShapes=Lo,jo.completeLayers=ot,jo}if(re.dataManager||(re.dataManager=nt()),re.assetLoader||(re.assetLoader=(function(){function ot(Ue){var Ee=Ue.getResponseHeader("content-type");return Ee&&Ue.responseType==="json"&&Ee.indexOf("json")!==-1||Ue.response&&be(Ue.response)==="object"?Ue.response:Ue.response&&typeof Ue.response=="string"?JSON.parse(Ue.response):Ue.responseText?JSON.parse(Ue.responseText):null}function ut(Ue,Ee,ke,Me){var Ye,ht=new XMLHttpRequest;try{ht.responseType="json"}catch{}ht.onreadystatechange=function(){if(ht.readyState===4)if(ht.status===200)Ye=ot(ht),ke(Ye);else try{Ye=ot(ht),ke(Ye)}catch($t){Me&&Me($t)}};try{ht.open(["G","E","T"].join(""),Ue,!0)}catch{ht.open(["G","E","T"].join(""),Ee+"/"+Ue,!0)}ht.send()}return{load:ut}})()),Le.data.type==="loadAnimation")re.assetLoader.load(Le.data.path,Le.data.fullPath,function(ot){re.dataManager.completeData(ot),re.postMessage({id:Le.data.id,payload:ot,status:"success"})},function(){re.postMessage({id:Le.data.id,status:"error"})});else if(Le.data.type==="complete"){var dt=Le.data.animation;re.dataManager.completeData(dt),re.postMessage({id:Le.data.id,payload:dt,status:"success"})}else Le.data.type==="loadData"&&re.assetLoader.load(Le.data.path,Le.data.fullPath,function(ot){re.postMessage({id:Le.data.id,payload:ot,status:"success"})},function(){re.postMessage({id:Le.data.id,status:"error"})})}),oe.onmessage=function(Le){var nt=Le.data,dt=nt.id,ot=_[dt];_[dt]=null,nt.status==="success"?ot.onComplete(nt.payload):ot.onError&&ot.onError()})}function we(Le,nt){M+=1;var dt="processId_"+M;return _[dt]={onComplete:Le,onError:nt},dt}function Ke(Le,nt,dt){Be();var ot=we(nt,dt);oe.postMessage({type:"loadAnimation",path:Le,fullPath:window.location.origin+window.location.pathname,id:ot})}function et(Le,nt,dt){Be();var ot=we(nt,dt);oe.postMessage({type:"loadData",path:Le,fullPath:window.location.origin+window.location.pathname,id:ot})}function st(Le,nt,dt){Be();var ot=we(nt,dt);oe.postMessage({type:"complete",animation:Le,id:ot})}return{loadAnimation:Ke,loadData:et,completeAnimation:st}})(),ae=(function(){var M=(function(){var Ue=h("canvas");Ue.width=1,Ue.height=1;var Ee=Ue.getContext("2d");return Ee.fillStyle="rgba(0,0,0,0)",Ee.fillRect(0,0,1,1),Ue})();function _(){this.loadedAssets+=1,this.loadedAssets===this.totalImages&&this.loadedFootagesCount===this.totalFootages&&this.imagesLoadedCb&&this.imagesLoadedCb(null)}function K(){this.loadedFootagesCount+=1,this.loadedAssets===this.totalImages&&this.loadedFootagesCount===this.totalFootages&&this.imagesLoadedCb&&this.imagesLoadedCb(null)}function oe(Ue,Ee,ke){var Me="";if(Ue.e)Me=Ue.p;else if(Ee){var Ye=Ue.p;Ye.indexOf("images/")!==-1&&(Ye=Ye.split("/")[1]),Me=Ee+Ye}else Me=ke,Me+=Ue.u?Ue.u:"",Me+=Ue.p;return Me}function se(Ue){var Ee=0,ke=setInterval((function(){var Me=Ue.getBBox();(Me.width||Ee>500)&&(this._imageLoaded(),clearInterval(ke)),Ee+=1}).bind(this),50)}function re(Ue){var Ee=oe(Ue,this.assetsPath,this.path),ke=xe("image");E?this.testImageLoaded(ke):ke.addEventListener("load",this._imageLoaded,!1),ke.addEventListener("error",(function(){Me.img=M,this._imageLoaded()}).bind(this),!1),ke.setAttributeNS("http://www.w3.org/1999/xlink","href",Ee),this._elementHelper.append?this._elementHelper.append(ke):this._elementHelper.appendChild(ke);var Me={img:ke,assetData:Ue};return Me}function ve(Ue){var Ee=oe(Ue,this.assetsPath,this.path),ke=h("img");ke.crossOrigin="anonymous",ke.addEventListener("load",this._imageLoaded,!1),ke.addEventListener("error",(function(){Me.img=M,this._imageLoaded()}).bind(this),!1),ke.src=Ee;var Me={img:ke,assetData:Ue};return Me}function Be(Ue){var Ee={assetData:Ue},ke=oe(Ue,this.assetsPath,this.path);return le.loadData(ke,(function(Me){Ee.img=Me,this._footageLoaded()}).bind(this),(function(){Ee.img={},this._footageLoaded()}).bind(this)),Ee}function we(Ue,Ee){this.imagesLoadedCb=Ee;var ke,Me=Ue.length;for(ke=0;ke<Me;ke+=1)Ue[ke].layers||(!Ue[ke].t||Ue[ke].t==="seq"?(this.totalImages+=1,this.images.push(this._createImageData(Ue[ke]))):Ue[ke].t===3&&(this.totalFootages+=1,this.images.push(this.createFootageData(Ue[ke]))))}function Ke(Ue){this.path=Ue||""}function et(Ue){this.assetsPath=Ue||""}function st(Ue){for(var Ee=0,ke=this.images.length;Ee<ke;){if(this.images[Ee].assetData===Ue)return this.images[Ee].img;Ee+=1}return null}function Le(){this.imagesLoadedCb=null,this.images.length=0}function nt(){return this.totalImages===this.loadedAssets}function dt(){return this.totalFootages===this.loadedFootagesCount}function ot(Ue,Ee){Ue==="svg"?(this._elementHelper=Ee,this._createImageData=this.createImageData.bind(this)):this._createImageData=this.createImgData.bind(this)}function ut(){this._imageLoaded=_.bind(this),this._footageLoaded=K.bind(this),this.testImageLoaded=se.bind(this),this.createFootageData=Be.bind(this),this.assetsPath="",this.path="",this.totalImages=0,this.totalFootages=0,this.loadedAssets=0,this.loadedFootagesCount=0,this.imagesLoadedCb=null,this.images=[]}return ut.prototype={loadAssets:we,setAssetsPath:et,setPath:Ke,loadedImages:nt,loadedFootages:dt,destroy:Le,getAsset:st,createImgData:ve,createImageData:re,imageLoaded:_,footageLoaded:K,setCacheType:ot},ut})();function fe(){}fe.prototype={triggerEvent:function(M,_){if(this._cbs[M])for(var K=this._cbs[M],oe=0;oe<K.length;oe+=1)K[oe](_)},addEventListener:function(M,_){return this._cbs[M]||(this._cbs[M]=[]),this._cbs[M].push(_),(function(){this.removeEventListener(M,_)}).bind(this)},removeEventListener:function(M,_){if(!_)this._cbs[M]=null;else if(this._cbs[M]){for(var K=0,oe=this._cbs[M].length;K<oe;)this._cbs[M][K]===_&&(this._cbs[M].splice(K,1),K-=1,oe-=1),K+=1;this._cbs[M].length||(this._cbs[M]=null)}}};var $e=(function(){function M(_){for(var K=_.split(`\r
|
|
1
|
+
const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["assets/empty-DzkUY9hr.js","assets/sentry-388McK0f.js","assets/empty-DsdvS_c8.js","assets/index-y4rvaaOT.js","assets/index--1nOCer4.js","assets/zeni-epic-state-DHh4GgWc.js","assets/core-Dt5T98F0.js","assets/utils-Cm7JQ6p6.js","assets/recharts-0co-2Yen.js","assets/url-CYBsJmkc.js","assets/index-DBxpK-2g.js","assets/index-d2jpub5P.js","assets/url-COJBLlNj.js","assets/index-Cntn6QHm.js","assets/ScreenRoutes-B8uhbx-C.js","assets/liveblocks-Cyvh4M2x.js","assets/analyticsHelper-Cd7EFCFK.js","assets/mui-D-7bVBnV.js","assets/SignInScreen-_SETUtTo.js","assets/analytics-Bsf7HfJx.js","assets/lottie-DpWj9vdA.js","assets/lexical-XzHuKopd.js"])))=>i.map(i=>d[i]);
|
|
2
|
+
import{R as A,b as b4,a as g,r as id,g as KG,p as Qh,d as FX,f as wWe,s as RX,w as bWe,i as vWe,S as CWe,j as AWe,k as $We,l as kWe,m as SWe}from"./sentry-388McK0f.js";import{j as xo,_ as qwe,a as Hd,u as Zwe,T as EWe,C as LWe,b as IWe,c as YE,d as KE,e as jWe,f as MWe,g as Jwe,h as BWe,i as DWe,L as PWe,k as OX,l as TWe,m as zWe,n as FWe,P as RWe,o as OWe,p as NWe,q as Xwe,r as HWe,s as _We,I as NX,t as VWe,v as QWe,w as UWe,x as WWe,y as GWe,z as YWe,A as ebe,B as KWe,D as qWe,E as ZWe}from"./liveblocks-Cyvh4M2x.js";import{f as tbe,r as Mn,P as gn,R as JWe,u as qE,g as Lu,h as XWe,i as qG,j as eGe,k as tGe,l as LB,N as oGe,m as iGe,n as rGe,B as nGe}from"./core-Dt5T98F0.js";import{H as fk,ba as K3,bb as aGe,bc as HX,bd as R4,be as ui,bf as obe,bg as ji,bh as ZE,bi as sGe,bj as Vu,bk as lGe,bl as dGe,bm as o6,bn as um,bo as Y6,bp as ibe,bq as cGe,br as h1,bs as rbe,bt as pGe,bu as O4,bv as _w,bw as Vr,bx as i6,by as ru,bz as _X,bA as uGe,bB as hGe,bC as xk,bD as UV,bE as mGe,bF as gGe,bG as fGe,bH as xGe,bI as ZG,bJ as nbe,bK as yGe,bL as uy,bM as wGe,bN as abe,bO as WV,bP as VX,bQ as QX,bR as UX,bS as sl,bT as JG,bU as sbe,bV as lbe,bW as XG,bX as K6,bY as JE,bZ as eY,b_ as tY,b$ as oY,c0 as iY,c1 as bGe,c2 as GV,c3 as vGe,c4 as dbe,c5 as XE,c6 as $1,c7 as k1,c8 as yk,c9 as cbe,ca as pbe,cb as CGe,cc as rY,cd as nY,ce as AGe,cf as $Ge,cg as x1,ch as Vw,ci as Qw,cj as kGe,ck as SGe,cl as EGe,cm as LGe,cn as IGe,co as jGe,cp as MGe,cq as $v,cr as ube,cs as hbe,ct as BGe,cu as DGe,cv as mbe,cw as gbe,cx as PGe,cy as TGe,cz as zGe,cA as fbe,cB as xbe,cC as FGe,cD as RGe,cE as ybe,cF as wbe,cG as OGe,cH as WX,cI as NGe,cJ as HGe,cK as Ny,cL as _Ge,cM as bbe,cN as VGe,cO as vbe,cP as QGe,cQ as GX,cR as UGe,cS as Cbe,cT as Abe,cU as $be,cV as kbe,cW as Sbe,cX as WGe,cY as Ebe,cZ as GGe,c_ as YGe,c$ as KGe,d0 as Lbe,d1 as YV,d2 as qGe,d3 as Ibe,d4 as jbe,d5 as ZGe,d6 as JGe,d7 as XGe,d8 as eYe,d9 as tYe,da as oYe,db as iYe,dc as rYe,v as nYe,dd as eL,de as KV,df as qV,dg as aYe,dh as sYe,di as lYe,dj as dYe,dk as cYe,dl as pYe,dm as uYe,dn as hYe,dp as mYe,dq as gYe,dr as YX,ds as fYe,dt as xYe,du as yYe,dv as wYe,dw as bYe}from"./zeni-epic-state-DHh4GgWc.js";import{j as Oo,c as de,k as _t,u as lt,n as r,F as vYe,C as ri,a as Mbe,b as KX,T as CYe,d as Bbe,e as Dbe,f as Pbe,g as AYe,M as Tbe,G as tL,h as $Ye,P as N4,i as v4,S as zbe,l as kYe,m as SYe,o as EYe,p as LYe,D as IYe,q as jYe,s as Fbe}from"./mui-D-7bVBnV.js";import{r as MYe,m as nu}from"./analytics-Bsf7HfJx.js";import{L as ZV}from"./lottie-DpWj9vdA.js";import{r as pa}from"./lexical-XzHuKopd.js";import{F as zr,c as oL,P as BYe,R as JV,G as wk,X as zd,Y as Fd,H as L2,I as bk,J as iL,K as I2,L as Rbe,M as DYe,N as PYe,O as H4,Q as aY,S as sY,U as Uw,V as TYe}from"./recharts-0co-2Yen.js";import{r as zYe}from"./utils-Cm7JQ6p6.js";(function(){try{var e=typeof window<"u"?window:typeof b4<"u"?b4:typeof globalThis<"u"?globalThis:typeof self<"u"?self:{},t=new e.Error().stack;t&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[t]="f6223e2b-cc7a-4d43-85a9-43c2ee52fd97",e._sentryDebugIdIdentifier="sentry-dbid-f6223e2b-cc7a-4d43-85a9-43c2ee52fd97")}catch{}})();(function(){const t=document.createElement("link").relList;if(t&&t.supports&&t.supports("modulepreload"))return;for(const a of document.querySelectorAll('link[rel="modulepreload"]'))n(a);new MutationObserver(a=>{for(const l of a)if(l.type==="childList")for(const d of l.addedNodes)d.tagName==="LINK"&&d.rel==="modulepreload"&&n(d)}).observe(document,{childList:!0,subtree:!0});function i(a){const l={};return a.integrity&&(l.integrity=a.integrity),a.referrerPolicy&&(l.referrerPolicy=a.referrerPolicy),a.crossOrigin==="use-credentials"?l.credentials="include":a.crossOrigin==="anonymous"?l.credentials="omit":l.credentials="same-origin",l}function n(a){if(a.ep)return;a.ep=!0;const l=i(a);fetch(a.href,l)}})();var kv={},qX;function FYe(){if(qX)return kv;qX=1;var e=tbe();return kv.createRoot=e.createRoot,kv.hydrateRoot=e.hydrateRoot,kv}var RYe=FYe(),Vl=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof b4<"u"?b4:typeof self<"u"?self:{};function Fi(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var ZX={exports:{}},Q8={},JX;function OYe(){if(JX)return Q8;JX=1;var e=A,t=Symbol.for("react.element"),i=Symbol.for("react.fragment"),n=Object.prototype.hasOwnProperty,a=e.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,l={key:!0,ref:!0,__self:!0,__source:!0};function d(c,p,u){var h,m={},f=null,x=null;u!==void 0&&(f=""+u),p.key!==void 0&&(f=""+p.key),p.ref!==void 0&&(x=p.ref);for(h in p)n.call(p,h)&&!l.hasOwnProperty(h)&&(m[h]=p[h]);if(c&&c.defaultProps)for(h in p=c.defaultProps,p)m[h]===void 0&&(m[h]=p[h]);return{$$typeof:t,type:c,key:f,ref:x,props:m,_owner:a.current}}return Q8.Fragment=i,Q8.jsx=d,Q8.jsxs=d,Q8}var XX;function Obe(){return XX||(XX=1,ZX.exports=OYe()),ZX.exports}var s=Obe();const NYe=g.createContext(null),IB={didCatch:!1,error:null};let HYe=class extends g.Component{constructor(t){super(t),this.resetErrorBoundary=this.resetErrorBoundary.bind(this),this.state=IB}static getDerivedStateFromError(t){return{didCatch:!0,error:t}}resetErrorBoundary(){const{error:t}=this.state;if(t!==null){for(var i,n,a=arguments.length,l=new Array(a),d=0;d<a;d++)l[d]=arguments[d];(i=(n=this.props).onReset)===null||i===void 0||i.call(n,{args:l,reason:"imperative-api"}),this.setState(IB)}}componentDidCatch(t,i){var n,a;(n=(a=this.props).onError)===null||n===void 0||n.call(a,t,i)}componentDidUpdate(t,i){const{didCatch:n}=this.state,{resetKeys:a}=this.props;if(n&&i.error!==null&&_Ye(t.resetKeys,a)){var l,d;(l=(d=this.props).onReset)===null||l===void 0||l.call(d,{next:a,prev:t.resetKeys,reason:"keys"}),this.setState(IB)}}render(){const{children:t,fallbackRender:i,FallbackComponent:n,fallback:a}=this.props,{didCatch:l,error:d}=this.state;let c=t;if(l){const p={error:d,resetErrorBoundary:this.resetErrorBoundary};if(typeof i=="function")c=i(p);else if(n)c=g.createElement(n,p);else if(a!==void 0)c=a;else throw d}return g.createElement(NYe.Provider,{value:{didCatch:l,error:d,resetErrorBoundary:this.resetErrorBoundary}},c)}};function _Ye(){let e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[],t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:[];return e.length!==t.length||e.some((i,n)=>!Object.is(i,t[n]))}var F$={exports:{}},VYe=F$.exports,eee;function QYe(){return eee||(eee=1,(function(e,t){typeof document<"u"&&typeof navigator<"u"&&(function(i,n){e.exports=n()})(VYe,(function(){var i="http://www.w3.org/2000/svg",n="",a=!1,l=-999999,d=function(M){a=!!M},c=function(){return a},p=function(M){n=M},u=function(){return n};function h(M){return document.createElement(M)}function m(M,_){var K,oe=M.length,se;for(K=0;K<oe;K+=1){se=M[K].prototype;for(var re in se)Object.prototype.hasOwnProperty.call(se,re)&&(_.prototype[re]=se[re])}}function f(M){function _(){}return _.prototype=M,_}var x=(function(){function M(_){this.audios=[],this.audioFactory=_,this._volume=1,this._isMuted=!1}return M.prototype={addAudio:function(_){this.audios.push(_)},pause:function(){var _,K=this.audios.length;for(_=0;_<K;_+=1)this.audios[_].pause()},resume:function(){var _,K=this.audios.length;for(_=0;_<K;_+=1)this.audios[_].resume()},setRate:function(_){var K,oe=this.audios.length;for(K=0;K<oe;K+=1)this.audios[K].setRate(_)},createAudio:function(_){return this.audioFactory?this.audioFactory(_):window.Howl?new window.Howl({src:[_]}):{isPlaying:!1,play:function(){this.isPlaying=!0},seek:function(){this.isPlaying=!1},playing:function(){},rate:function(){},setVolume:function(){}}},setAudioFactory:function(_){this.audioFactory=_},setVolume:function(_){this._volume=_,this._updateVolume()},mute:function(){this._isMuted=!0,this._updateVolume()},unmute:function(){this._isMuted=!1,this._updateVolume()},getVolume:function(){return this._volume},_updateVolume:function(){var _,K=this.audios.length;for(_=0;_<K;_+=1)this.audios[_].volume(this._volume*(this._isMuted?0:1))}},function(){return new M}})(),y=(function(){function M(K,oe){var se=0,re=[],ve;switch(K){case"int16":case"uint8c":ve=1;break;default:ve=1.1;break}for(se=0;se<oe;se+=1)re.push(ve);return re}function _(K,oe){return K==="float32"?new Float32Array(oe):K==="int16"?new Int16Array(oe):K==="uint8c"?new Uint8ClampedArray(oe):M(K,oe)}return typeof Uint8ClampedArray=="function"&&typeof Float32Array=="function"?_:M})();function w(M){return Array.apply(null,{length:M})}var b=!0,C=null,k="",E=/^((?!chrome|android).)*safari/i.test(navigator.userAgent),S=Math.pow,j=Math.sqrt,I=Math.floor,T=Math.min,P=150,B=Math.PI/180,D=.5519;function F(M,_,K,oe){this.type=M,this.currentTime=_,this.totalTime=K,this.direction=oe<0?-1:1}function Y(M,_){this.type=M,this.direction=_<0?-1:1}function q(M,_,K,oe){this.type=M,this.currentLoop=K,this.totalLoops=_,this.direction=oe<0?-1:1}function Z(M,_,K){this.type=M,this.firstFrame=_,this.totalFrames=K}function V(M,_){this.type=M,this.target=_}function H(M,_){this.type="renderFrameError",this.nativeError=M,this.currentTime=_}function N(M){this.type="configError",this.nativeError=M}var O=(function(){var M=0;return function(){return M+=1,k+"__lottie_element_"+M}})();function z(M,_,K){var oe,se,re,ve,Be,we,Ke,et;switch(ve=Math.floor(M*6),Be=M*6-ve,we=K*(1-_),Ke=K*(1-Be*_),et=K*(1-(1-Be)*_),ve%6){case 0:oe=K,se=et,re=we;break;case 1:oe=Ke,se=K,re=we;break;case 2:oe=we,se=K,re=et;break;case 3:oe=we,se=Ke,re=K;break;case 4:oe=et,se=we,re=K;break;case 5:oe=K,se=we,re=Ke;break}return[oe,se,re]}function R(M,_,K){var oe=Math.max(M,_,K),se=Math.min(M,_,K),re=oe-se,ve,Be=oe===0?0:re/oe,we=oe/255;switch(oe){case se:ve=0;break;case M:ve=_-K+re*(_<K?6:0),ve/=6*re;break;case _:ve=K-M+re*2,ve/=6*re;break;case K:ve=M-_+re*4,ve/=6*re;break}return[ve,Be,we]}function te(M,_){var K=R(M[0]*255,M[1]*255,M[2]*255);return K[1]+=_,K[1]>1?K[1]=1:K[1]<=0&&(K[1]=0),z(K[0],K[1],K[2])}function G(M,_){var K=R(M[0]*255,M[1]*255,M[2]*255);return K[2]+=_,K[2]>1?K[2]=1:K[2]<0&&(K[2]=0),z(K[0],K[1],K[2])}function W(M,_){var K=R(M[0]*255,M[1]*255,M[2]*255);return K[0]+=_/360,K[0]>1?K[0]-=1:K[0]<0&&(K[0]+=1),z(K[0],K[1],K[2])}(function(){var M=[],_,K;for(_=0;_<256;_+=1)K=_.toString(16),M[_]=K.length===1?"0"+K:K;return function(oe,se,re){return oe<0&&(oe=0),se<0&&(se=0),re<0&&(re=0),"#"+M[oe]+M[se]+M[re]}})();var ee=function(M){b=!!M},J=function(){return b},ne=function(M){C=M},ye=function(){return C},me=function(M){P=M},ue=function(){return P},pe=function(M){k=M};function xe(M){return document.createElementNS(i,M)}function be(M){"@babel/helpers - typeof";return be=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(_){return typeof _}:function(_){return _&&typeof Symbol=="function"&&_.constructor===Symbol&&_!==Symbol.prototype?"symbol":typeof _},be(M)}var le=(function(){var M=1,_=[],K,oe,se={onmessage:function(){},postMessage:function(Le){K({data:Le})}},re={postMessage:function(Le){se.onmessage({data:Le})}};function ve(Le){if(window.Worker&&window.Blob&&c()){var nt=new Blob(["var _workerSelf = self; self.onmessage = ",Le.toString()],{type:"text/javascript"}),dt=URL.createObjectURL(nt);return new Worker(dt)}return K=Le,se}function Be(){oe||(oe=ve(function(Le){function nt(){function ot(Mt,Ut){var Te,We,ge=Mt.length,Ve,ft,ct,Xo;for(We=0;We<ge;We+=1)if(Te=Mt[We],"ks"in Te&&!Te.completed){if(Te.completed=!0,Te.hasMask){var fo=Te.masksProperties;for(ft=fo.length,Ve=0;Ve<ft;Ve+=1)if(fo[Ve].pt.k.i)Me(fo[Ve].pt.k);else for(Xo=fo[Ve].pt.k.length,ct=0;ct<Xo;ct+=1)fo[Ve].pt.k[ct].s&&Me(fo[Ve].pt.k[ct].s[0]),fo[Ve].pt.k[ct].e&&Me(fo[Ve].pt.k[ct].e[0])}Te.ty===0?(Te.layers=Ee(Te.refId,Ut),ot(Te.layers,Ut)):Te.ty===4?ke(Te.shapes):Te.ty===5&&co(Te)}}function ut(Mt,Ut){if(Mt){var Te=0,We=Mt.length;for(Te=0;Te<We;Te+=1)Mt[Te].t===1&&(Mt[Te].data.layers=Ee(Mt[Te].data.refId,Ut),ot(Mt[Te].data.layers,Ut))}}function Ue(Mt,Ut){for(var Te=0,We=Ut.length;Te<We;){if(Ut[Te].id===Mt)return Ut[Te];Te+=1}return null}function Ee(Mt,Ut){var Te=Ue(Mt,Ut);return Te?Te.layers.__used?JSON.parse(JSON.stringify(Te.layers)):(Te.layers.__used=!0,Te.layers):null}function ke(Mt){var Ut,Te=Mt.length,We,ge;for(Ut=Te-1;Ut>=0;Ut-=1)if(Mt[Ut].ty==="sh")if(Mt[Ut].ks.k.i)Me(Mt[Ut].ks.k);else for(ge=Mt[Ut].ks.k.length,We=0;We<ge;We+=1)Mt[Ut].ks.k[We].s&&Me(Mt[Ut].ks.k[We].s[0]),Mt[Ut].ks.k[We].e&&Me(Mt[Ut].ks.k[We].e[0]);else Mt[Ut].ty==="gr"&&ke(Mt[Ut].it)}function Me(Mt){var Ut,Te=Mt.i.length;for(Ut=0;Ut<Te;Ut+=1)Mt.i[Ut][0]+=Mt.v[Ut][0],Mt.i[Ut][1]+=Mt.v[Ut][1],Mt.o[Ut][0]+=Mt.v[Ut][0],Mt.o[Ut][1]+=Mt.v[Ut][1]}function Ye(Mt,Ut){var Te=Ut?Ut.split("."):[100,100,100];return Mt[0]>Te[0]?!0:Te[0]>Mt[0]?!1:Mt[1]>Te[1]?!0:Te[1]>Mt[1]?!1:Mt[2]>Te[2]?!0:Te[2]>Mt[2]?!1:null}var ht=(function(){var Mt=[4,4,14];function Ut(We){var ge=We.t.d;We.t.d={k:[{s:ge,t:0}]}}function Te(We){var ge,Ve=We.length;for(ge=0;ge<Ve;ge+=1)We[ge].ty===5&&Ut(We[ge])}return function(We){if(Ye(Mt,We.v)&&(Te(We.layers),We.assets)){var ge,Ve=We.assets.length;for(ge=0;ge<Ve;ge+=1)We.assets[ge].layers&&Te(We.assets[ge].layers)}}})(),$t=(function(){var Mt=[4,7,99];return function(Ut){if(Ut.chars&&!Ye(Mt,Ut.v)){var Te,We=Ut.chars.length;for(Te=0;Te<We;Te+=1){var ge=Ut.chars[Te];ge.data&&ge.data.shapes&&(ke(ge.data.shapes),ge.data.ip=0,ge.data.op=99999,ge.data.st=0,ge.data.sr=1,ge.data.ks={p:{k:[0,0],a:0},s:{k:[100,100],a:0},a:{k:[0,0],a:0},r:{k:0,a:0},o:{k:100,a:0}},Ut.chars[Te].t||(ge.data.shapes.push({ty:"no"}),ge.data.shapes[0].it.push({p:{k:[0,0],a:0},s:{k:[100,100],a:0},a:{k:[0,0],a:0},r:{k:0,a:0},o:{k:100,a:0},sk:{k:0,a:0},sa:{k:0,a:0},ty:"tr"})))}}}})(),kt=(function(){var Mt=[5,7,15];function Ut(We){var ge=We.t.p;typeof ge.a=="number"&&(ge.a={a:0,k:ge.a}),typeof ge.p=="number"&&(ge.p={a:0,k:ge.p}),typeof ge.r=="number"&&(ge.r={a:0,k:ge.r})}function Te(We){var ge,Ve=We.length;for(ge=0;ge<Ve;ge+=1)We[ge].ty===5&&Ut(We[ge])}return function(We){if(Ye(Mt,We.v)&&(Te(We.layers),We.assets)){var ge,Ve=We.assets.length;for(ge=0;ge<Ve;ge+=1)We.assets[ge].layers&&Te(We.assets[ge].layers)}}})(),Zt=(function(){var Mt=[4,1,9];function Ut(We){var ge,Ve=We.length,ft,ct;for(ge=0;ge<Ve;ge+=1)if(We[ge].ty==="gr")Ut(We[ge].it);else if(We[ge].ty==="fl"||We[ge].ty==="st")if(We[ge].c.k&&We[ge].c.k[0].i)for(ct=We[ge].c.k.length,ft=0;ft<ct;ft+=1)We[ge].c.k[ft].s&&(We[ge].c.k[ft].s[0]/=255,We[ge].c.k[ft].s[1]/=255,We[ge].c.k[ft].s[2]/=255,We[ge].c.k[ft].s[3]/=255),We[ge].c.k[ft].e&&(We[ge].c.k[ft].e[0]/=255,We[ge].c.k[ft].e[1]/=255,We[ge].c.k[ft].e[2]/=255,We[ge].c.k[ft].e[3]/=255);else We[ge].c.k[0]/=255,We[ge].c.k[1]/=255,We[ge].c.k[2]/=255,We[ge].c.k[3]/=255}function Te(We){var ge,Ve=We.length;for(ge=0;ge<Ve;ge+=1)We[ge].ty===4&&Ut(We[ge].shapes)}return function(We){if(Ye(Mt,We.v)&&(Te(We.layers),We.assets)){var ge,Ve=We.assets.length;for(ge=0;ge<Ve;ge+=1)We.assets[ge].layers&&Te(We.assets[ge].layers)}}})(),Lo=(function(){var Mt=[4,4,18];function Ut(We){var ge,Ve=We.length,ft,ct;for(ge=Ve-1;ge>=0;ge-=1)if(We[ge].ty==="sh")if(We[ge].ks.k.i)We[ge].ks.k.c=We[ge].closed;else for(ct=We[ge].ks.k.length,ft=0;ft<ct;ft+=1)We[ge].ks.k[ft].s&&(We[ge].ks.k[ft].s[0].c=We[ge].closed),We[ge].ks.k[ft].e&&(We[ge].ks.k[ft].e[0].c=We[ge].closed);else We[ge].ty==="gr"&&Ut(We[ge].it)}function Te(We){var ge,Ve,ft=We.length,ct,Xo,fo,Wi;for(Ve=0;Ve<ft;Ve+=1){if(ge=We[Ve],ge.hasMask){var xi=ge.masksProperties;for(Xo=xi.length,ct=0;ct<Xo;ct+=1)if(xi[ct].pt.k.i)xi[ct].pt.k.c=xi[ct].cl;else for(Wi=xi[ct].pt.k.length,fo=0;fo<Wi;fo+=1)xi[ct].pt.k[fo].s&&(xi[ct].pt.k[fo].s[0].c=xi[ct].cl),xi[ct].pt.k[fo].e&&(xi[ct].pt.k[fo].e[0].c=xi[ct].cl)}ge.ty===4&&Ut(ge.shapes)}}return function(We){if(Ye(Mt,We.v)&&(Te(We.layers),We.assets)){var ge,Ve=We.assets.length;for(ge=0;ge<Ve;ge+=1)We.assets[ge].layers&&Te(We.assets[ge].layers)}}})();function bo(Mt){Mt.__complete||(Zt(Mt),ht(Mt),$t(Mt),kt(Mt),Lo(Mt),ot(Mt.layers,Mt.assets),ut(Mt.chars,Mt.assets),Mt.__complete=!0)}function co(Mt){Mt.t.a.length===0&&"m"in Mt.t.p}var jo={};return jo.completeData=bo,jo.checkColors=Zt,jo.checkChars=$t,jo.checkPathProperties=kt,jo.checkShapes=Lo,jo.completeLayers=ot,jo}if(re.dataManager||(re.dataManager=nt()),re.assetLoader||(re.assetLoader=(function(){function ot(Ue){var Ee=Ue.getResponseHeader("content-type");return Ee&&Ue.responseType==="json"&&Ee.indexOf("json")!==-1||Ue.response&&be(Ue.response)==="object"?Ue.response:Ue.response&&typeof Ue.response=="string"?JSON.parse(Ue.response):Ue.responseText?JSON.parse(Ue.responseText):null}function ut(Ue,Ee,ke,Me){var Ye,ht=new XMLHttpRequest;try{ht.responseType="json"}catch{}ht.onreadystatechange=function(){if(ht.readyState===4)if(ht.status===200)Ye=ot(ht),ke(Ye);else try{Ye=ot(ht),ke(Ye)}catch($t){Me&&Me($t)}};try{ht.open(["G","E","T"].join(""),Ue,!0)}catch{ht.open(["G","E","T"].join(""),Ee+"/"+Ue,!0)}ht.send()}return{load:ut}})()),Le.data.type==="loadAnimation")re.assetLoader.load(Le.data.path,Le.data.fullPath,function(ot){re.dataManager.completeData(ot),re.postMessage({id:Le.data.id,payload:ot,status:"success"})},function(){re.postMessage({id:Le.data.id,status:"error"})});else if(Le.data.type==="complete"){var dt=Le.data.animation;re.dataManager.completeData(dt),re.postMessage({id:Le.data.id,payload:dt,status:"success"})}else Le.data.type==="loadData"&&re.assetLoader.load(Le.data.path,Le.data.fullPath,function(ot){re.postMessage({id:Le.data.id,payload:ot,status:"success"})},function(){re.postMessage({id:Le.data.id,status:"error"})})}),oe.onmessage=function(Le){var nt=Le.data,dt=nt.id,ot=_[dt];_[dt]=null,nt.status==="success"?ot.onComplete(nt.payload):ot.onError&&ot.onError()})}function we(Le,nt){M+=1;var dt="processId_"+M;return _[dt]={onComplete:Le,onError:nt},dt}function Ke(Le,nt,dt){Be();var ot=we(nt,dt);oe.postMessage({type:"loadAnimation",path:Le,fullPath:window.location.origin+window.location.pathname,id:ot})}function et(Le,nt,dt){Be();var ot=we(nt,dt);oe.postMessage({type:"loadData",path:Le,fullPath:window.location.origin+window.location.pathname,id:ot})}function st(Le,nt,dt){Be();var ot=we(nt,dt);oe.postMessage({type:"complete",animation:Le,id:ot})}return{loadAnimation:Ke,loadData:et,completeAnimation:st}})(),ae=(function(){var M=(function(){var Ue=h("canvas");Ue.width=1,Ue.height=1;var Ee=Ue.getContext("2d");return Ee.fillStyle="rgba(0,0,0,0)",Ee.fillRect(0,0,1,1),Ue})();function _(){this.loadedAssets+=1,this.loadedAssets===this.totalImages&&this.loadedFootagesCount===this.totalFootages&&this.imagesLoadedCb&&this.imagesLoadedCb(null)}function K(){this.loadedFootagesCount+=1,this.loadedAssets===this.totalImages&&this.loadedFootagesCount===this.totalFootages&&this.imagesLoadedCb&&this.imagesLoadedCb(null)}function oe(Ue,Ee,ke){var Me="";if(Ue.e)Me=Ue.p;else if(Ee){var Ye=Ue.p;Ye.indexOf("images/")!==-1&&(Ye=Ye.split("/")[1]),Me=Ee+Ye}else Me=ke,Me+=Ue.u?Ue.u:"",Me+=Ue.p;return Me}function se(Ue){var Ee=0,ke=setInterval((function(){var Me=Ue.getBBox();(Me.width||Ee>500)&&(this._imageLoaded(),clearInterval(ke)),Ee+=1}).bind(this),50)}function re(Ue){var Ee=oe(Ue,this.assetsPath,this.path),ke=xe("image");E?this.testImageLoaded(ke):ke.addEventListener("load",this._imageLoaded,!1),ke.addEventListener("error",(function(){Me.img=M,this._imageLoaded()}).bind(this),!1),ke.setAttributeNS("http://www.w3.org/1999/xlink","href",Ee),this._elementHelper.append?this._elementHelper.append(ke):this._elementHelper.appendChild(ke);var Me={img:ke,assetData:Ue};return Me}function ve(Ue){var Ee=oe(Ue,this.assetsPath,this.path),ke=h("img");ke.crossOrigin="anonymous",ke.addEventListener("load",this._imageLoaded,!1),ke.addEventListener("error",(function(){Me.img=M,this._imageLoaded()}).bind(this),!1),ke.src=Ee;var Me={img:ke,assetData:Ue};return Me}function Be(Ue){var Ee={assetData:Ue},ke=oe(Ue,this.assetsPath,this.path);return le.loadData(ke,(function(Me){Ee.img=Me,this._footageLoaded()}).bind(this),(function(){Ee.img={},this._footageLoaded()}).bind(this)),Ee}function we(Ue,Ee){this.imagesLoadedCb=Ee;var ke,Me=Ue.length;for(ke=0;ke<Me;ke+=1)Ue[ke].layers||(!Ue[ke].t||Ue[ke].t==="seq"?(this.totalImages+=1,this.images.push(this._createImageData(Ue[ke]))):Ue[ke].t===3&&(this.totalFootages+=1,this.images.push(this.createFootageData(Ue[ke]))))}function Ke(Ue){this.path=Ue||""}function et(Ue){this.assetsPath=Ue||""}function st(Ue){for(var Ee=0,ke=this.images.length;Ee<ke;){if(this.images[Ee].assetData===Ue)return this.images[Ee].img;Ee+=1}return null}function Le(){this.imagesLoadedCb=null,this.images.length=0}function nt(){return this.totalImages===this.loadedAssets}function dt(){return this.totalFootages===this.loadedFootagesCount}function ot(Ue,Ee){Ue==="svg"?(this._elementHelper=Ee,this._createImageData=this.createImageData.bind(this)):this._createImageData=this.createImgData.bind(this)}function ut(){this._imageLoaded=_.bind(this),this._footageLoaded=K.bind(this),this.testImageLoaded=se.bind(this),this.createFootageData=Be.bind(this),this.assetsPath="",this.path="",this.totalImages=0,this.totalFootages=0,this.loadedAssets=0,this.loadedFootagesCount=0,this.imagesLoadedCb=null,this.images=[]}return ut.prototype={loadAssets:we,setAssetsPath:et,setPath:Ke,loadedImages:nt,loadedFootages:dt,destroy:Le,getAsset:st,createImgData:ve,createImageData:re,imageLoaded:_,footageLoaded:K,setCacheType:ot},ut})();function fe(){}fe.prototype={triggerEvent:function(M,_){if(this._cbs[M])for(var K=this._cbs[M],oe=0;oe<K.length;oe+=1)K[oe](_)},addEventListener:function(M,_){return this._cbs[M]||(this._cbs[M]=[]),this._cbs[M].push(_),(function(){this.removeEventListener(M,_)}).bind(this)},removeEventListener:function(M,_){if(!_)this._cbs[M]=null;else if(this._cbs[M]){for(var K=0,oe=this._cbs[M].length;K<oe;)this._cbs[M][K]===_&&(this._cbs[M].splice(K,1),K-=1,oe-=1),K+=1;this._cbs[M].length||(this._cbs[M]=null)}}};var $e=(function(){function M(_){for(var K=_.split(`\r
|
|
3
3
|
`),oe={},se,re=0,ve=0;ve<K.length;ve+=1)se=K[ve].split(":"),se.length===2&&(oe[se[0]]=se[1].trim(),re+=1);if(re===0)throw new Error;return oe}return function(_){for(var K=[],oe=0;oe<_.length;oe+=1){var se=_[oe],re={time:se.tm,duration:se.dr};try{re.payload=JSON.parse(_[oe].cm)}catch{try{re.payload=M(_[oe].cm)}catch{re.payload={name:_[oe].cm}}}K.push(re)}return K}})(),ie=(function(){function M(_){this.compositions.push(_)}return function(){function _(K){for(var oe=0,se=this.compositions.length;oe<se;){if(this.compositions[oe].data&&this.compositions[oe].data.nm===K)return this.compositions[oe].prepareFrame&&this.compositions[oe].data.xt&&this.compositions[oe].prepareFrame(this.currentFrame),this.compositions[oe].compInterface;oe+=1}return null}return _.compositions=[],_.currentFrame=0,_.registerComposition=M,_}})(),he={},Ie=function(M,_){he[M]=_};function Fe(M){return he[M]}function Se(){if(he.canvas)return"canvas";for(var M in he)if(he[M])return M;return""}function ze(M){"@babel/helpers - typeof";return ze=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(_){return typeof _}:function(_){return _&&typeof Symbol=="function"&&_.constructor===Symbol&&_!==Symbol.prototype?"symbol":typeof _},ze(M)}var Re=function(){this._cbs=[],this.name="",this.path="",this.isLoaded=!1,this.currentFrame=0,this.currentRawFrame=0,this.firstFrame=0,this.totalFrames=0,this.frameRate=0,this.frameMult=0,this.playSpeed=1,this.playDirection=1,this.playCount=0,this.animationData={},this.assets=[],this.isPaused=!0,this.autoplay=!1,this.loop=!0,this.renderer=null,this.animationID=O(),this.assetsPath="",this.timeCompleted=0,this.segmentPos=0,this.isSubframeEnabled=J(),this.segments=[],this._idle=!0,this._completedLoop=!1,this.projectInterface=ie(),this.imagePreloader=new ae,this.audioController=x(),this.markers=[],this.configAnimation=this.configAnimation.bind(this),this.onSetupError=this.onSetupError.bind(this),this.onSegmentComplete=this.onSegmentComplete.bind(this),this.drawnFrameEvent=new F("drawnFrame",0,0,0),this.expressionsPlugin=ye()};m([fe],Re),Re.prototype.setParams=function(M){(M.wrapper||M.container)&&(this.wrapper=M.wrapper||M.container);var _="svg";M.animType?_=M.animType:M.renderer&&(_=M.renderer);var K=Fe(_);this.renderer=new K(this,M.rendererSettings),this.imagePreloader.setCacheType(_,this.renderer.globalData.defs),this.renderer.setProjectInterface(this.projectInterface),this.animType=_,M.loop===""||M.loop===null||M.loop===void 0||M.loop===!0?this.loop=!0:M.loop===!1?this.loop=!1:this.loop=parseInt(M.loop,10),this.autoplay="autoplay"in M?M.autoplay:!0,this.name=M.name?M.name:"",this.autoloadSegments=Object.prototype.hasOwnProperty.call(M,"autoloadSegments")?M.autoloadSegments:!0,this.assetsPath=M.assetsPath,this.initialSegment=M.initialSegment,M.audioFactory&&this.audioController.setAudioFactory(M.audioFactory),M.animationData?this.setupAnimation(M.animationData):M.path&&(M.path.lastIndexOf("\\")!==-1?this.path=M.path.substr(0,M.path.lastIndexOf("\\")+1):this.path=M.path.substr(0,M.path.lastIndexOf("/")+1),this.fileName=M.path.substr(M.path.lastIndexOf("/")+1),this.fileName=this.fileName.substr(0,this.fileName.lastIndexOf(".json")),le.loadAnimation(M.path,this.configAnimation,this.onSetupError))},Re.prototype.onSetupError=function(){this.trigger("data_failed")},Re.prototype.setupAnimation=function(M){le.completeAnimation(M,this.configAnimation)},Re.prototype.setData=function(M,_){_&&ze(_)!=="object"&&(_=JSON.parse(_));var K={wrapper:M,animationData:_},oe=M.attributes;K.path=oe.getNamedItem("data-animation-path")?oe.getNamedItem("data-animation-path").value:oe.getNamedItem("data-bm-path")?oe.getNamedItem("data-bm-path").value:oe.getNamedItem("bm-path")?oe.getNamedItem("bm-path").value:"",K.animType=oe.getNamedItem("data-anim-type")?oe.getNamedItem("data-anim-type").value:oe.getNamedItem("data-bm-type")?oe.getNamedItem("data-bm-type").value:oe.getNamedItem("bm-type")?oe.getNamedItem("bm-type").value:oe.getNamedItem("data-bm-renderer")?oe.getNamedItem("data-bm-renderer").value:oe.getNamedItem("bm-renderer")?oe.getNamedItem("bm-renderer").value:Se()||"canvas";var se=oe.getNamedItem("data-anim-loop")?oe.getNamedItem("data-anim-loop").value:oe.getNamedItem("data-bm-loop")?oe.getNamedItem("data-bm-loop").value:oe.getNamedItem("bm-loop")?oe.getNamedItem("bm-loop").value:"";se==="false"?K.loop=!1:se==="true"?K.loop=!0:se!==""&&(K.loop=parseInt(se,10));var re=oe.getNamedItem("data-anim-autoplay")?oe.getNamedItem("data-anim-autoplay").value:oe.getNamedItem("data-bm-autoplay")?oe.getNamedItem("data-bm-autoplay").value:oe.getNamedItem("bm-autoplay")?oe.getNamedItem("bm-autoplay").value:!0;K.autoplay=re!=="false",K.name=oe.getNamedItem("data-name")?oe.getNamedItem("data-name").value:oe.getNamedItem("data-bm-name")?oe.getNamedItem("data-bm-name").value:oe.getNamedItem("bm-name")?oe.getNamedItem("bm-name").value:"";var ve=oe.getNamedItem("data-anim-prerender")?oe.getNamedItem("data-anim-prerender").value:oe.getNamedItem("data-bm-prerender")?oe.getNamedItem("data-bm-prerender").value:oe.getNamedItem("bm-prerender")?oe.getNamedItem("bm-prerender").value:"";ve==="false"&&(K.prerender=!1),K.path?this.setParams(K):this.trigger("destroy")},Re.prototype.includeLayers=function(M){M.op>this.animationData.op&&(this.animationData.op=M.op,this.totalFrames=Math.floor(M.op-this.animationData.ip));var _=this.animationData.layers,K,oe=_.length,se=M.layers,re,ve=se.length;for(re=0;re<ve;re+=1)for(K=0;K<oe;){if(_[K].id===se[re].id){_[K]=se[re];break}K+=1}if((M.chars||M.fonts)&&(this.renderer.globalData.fontManager.addChars(M.chars),this.renderer.globalData.fontManager.addFonts(M.fonts,this.renderer.globalData.defs)),M.assets)for(oe=M.assets.length,K=0;K<oe;K+=1)this.animationData.assets.push(M.assets[K]);this.animationData.__complete=!1,le.completeAnimation(this.animationData,this.onSegmentComplete)},Re.prototype.onSegmentComplete=function(M){this.animationData=M;var _=ye();_&&_.initExpressions(this),this.loadNextSegment()},Re.prototype.loadNextSegment=function(){var M=this.animationData.segments;if(!M||M.length===0||!this.autoloadSegments){this.trigger("data_ready"),this.timeCompleted=this.totalFrames;return}var _=M.shift();this.timeCompleted=_.time*this.frameRate;var K=this.path+this.fileName+"_"+this.segmentPos+".json";this.segmentPos+=1,le.loadData(K,this.includeLayers.bind(this),(function(){this.trigger("data_failed")}).bind(this))},Re.prototype.loadSegments=function(){var M=this.animationData.segments;M||(this.timeCompleted=this.totalFrames),this.loadNextSegment()},Re.prototype.imagesLoaded=function(){this.trigger("loaded_images"),this.checkLoaded()},Re.prototype.preloadImages=function(){this.imagePreloader.setAssetsPath(this.assetsPath),this.imagePreloader.setPath(this.path),this.imagePreloader.loadAssets(this.animationData.assets,this.imagesLoaded.bind(this))},Re.prototype.configAnimation=function(M){if(this.renderer)try{this.animationData=M,this.initialSegment?(this.totalFrames=Math.floor(this.initialSegment[1]-this.initialSegment[0]),this.firstFrame=Math.round(this.initialSegment[0])):(this.totalFrames=Math.floor(this.animationData.op-this.animationData.ip),this.firstFrame=Math.round(this.animationData.ip)),this.renderer.configAnimation(M),M.assets||(M.assets=[]),this.assets=this.animationData.assets,this.frameRate=this.animationData.fr,this.frameMult=this.animationData.fr/1e3,this.renderer.searchExtraCompositions(M.assets),this.markers=$e(M.markers||[]),this.trigger("config_ready"),this.preloadImages(),this.loadSegments(),this.updaFrameModifier(),this.waitForFontsLoaded(),this.isPaused&&this.audioController.pause()}catch(_){this.triggerConfigError(_)}},Re.prototype.waitForFontsLoaded=function(){this.renderer&&(this.renderer.globalData.fontManager.isLoaded?this.checkLoaded():setTimeout(this.waitForFontsLoaded.bind(this),20))},Re.prototype.checkLoaded=function(){if(!this.isLoaded&&this.renderer.globalData.fontManager.isLoaded&&(this.imagePreloader.loadedImages()||this.renderer.rendererType!=="canvas")&&this.imagePreloader.loadedFootages()){this.isLoaded=!0;var M=ye();M&&M.initExpressions(this),this.renderer.initItems(),setTimeout((function(){this.trigger("DOMLoaded")}).bind(this),0),this.gotoFrame(),this.autoplay&&this.play()}},Re.prototype.resize=function(M,_){var K=typeof M=="number"?M:void 0,oe=typeof _=="number"?_:void 0;this.renderer.updateContainerSize(K,oe)},Re.prototype.setSubframe=function(M){this.isSubframeEnabled=!!M},Re.prototype.gotoFrame=function(){this.currentFrame=this.isSubframeEnabled?this.currentRawFrame:~~this.currentRawFrame,this.timeCompleted!==this.totalFrames&&this.currentFrame>this.timeCompleted&&(this.currentFrame=this.timeCompleted),this.trigger("enterFrame"),this.renderFrame(),this.trigger("drawnFrame")},Re.prototype.renderFrame=function(){if(!(this.isLoaded===!1||!this.renderer))try{this.expressionsPlugin&&this.expressionsPlugin.resetFrame(),this.renderer.renderFrame(this.currentFrame+this.firstFrame)}catch(M){this.triggerRenderFrameError(M)}},Re.prototype.play=function(M){M&&this.name!==M||this.isPaused===!0&&(this.isPaused=!1,this.trigger("_play"),this.audioController.resume(),this._idle&&(this._idle=!1,this.trigger("_active")))},Re.prototype.pause=function(M){M&&this.name!==M||this.isPaused===!1&&(this.isPaused=!0,this.trigger("_pause"),this._idle=!0,this.trigger("_idle"),this.audioController.pause())},Re.prototype.togglePause=function(M){M&&this.name!==M||(this.isPaused===!0?this.play():this.pause())},Re.prototype.stop=function(M){M&&this.name!==M||(this.pause(),this.playCount=0,this._completedLoop=!1,this.setCurrentRawFrameValue(0))},Re.prototype.getMarkerData=function(M){for(var _,K=0;K<this.markers.length;K+=1)if(_=this.markers[K],_.payload&&_.payload.name===M)return _;return null},Re.prototype.goToAndStop=function(M,_,K){if(!(K&&this.name!==K)){var oe=Number(M);if(isNaN(oe)){var se=this.getMarkerData(M);se&&this.goToAndStop(se.time,!0)}else _?this.setCurrentRawFrameValue(M):this.setCurrentRawFrameValue(M*this.frameModifier);this.pause()}},Re.prototype.goToAndPlay=function(M,_,K){if(!(K&&this.name!==K)){var oe=Number(M);if(isNaN(oe)){var se=this.getMarkerData(M);se&&(se.duration?this.playSegments([se.time,se.time+se.duration],!0):this.goToAndStop(se.time,!0))}else this.goToAndStop(oe,_,K);this.play()}},Re.prototype.advanceTime=function(M){if(!(this.isPaused===!0||this.isLoaded===!1)){var _=this.currentRawFrame+M*this.frameModifier,K=!1;_>=this.totalFrames-1&&this.frameModifier>0?!this.loop||this.playCount===this.loop?this.checkSegments(_>this.totalFrames?_%this.totalFrames:0)||(K=!0,_=this.totalFrames-1):_>=this.totalFrames?(this.playCount+=1,this.checkSegments(_%this.totalFrames)||(this.setCurrentRawFrameValue(_%this.totalFrames),this._completedLoop=!0,this.trigger("loopComplete"))):this.setCurrentRawFrameValue(_):_<0?this.checkSegments(_%this.totalFrames)||(this.loop&&!(this.playCount--<=0&&this.loop!==!0)?(this.setCurrentRawFrameValue(this.totalFrames+_%this.totalFrames),this._completedLoop?this.trigger("loopComplete"):this._completedLoop=!0):(K=!0,_=0)):this.setCurrentRawFrameValue(_),K&&(this.setCurrentRawFrameValue(_),this.pause(),this.trigger("complete"))}},Re.prototype.adjustSegment=function(M,_){this.playCount=0,M[1]<M[0]?(this.frameModifier>0&&(this.playSpeed<0?this.setSpeed(-this.playSpeed):this.setDirection(-1)),this.totalFrames=M[0]-M[1],this.timeCompleted=this.totalFrames,this.firstFrame=M[1],this.setCurrentRawFrameValue(this.totalFrames-.001-_)):M[1]>M[0]&&(this.frameModifier<0&&(this.playSpeed<0?this.setSpeed(-this.playSpeed):this.setDirection(1)),this.totalFrames=M[1]-M[0],this.timeCompleted=this.totalFrames,this.firstFrame=M[0],this.setCurrentRawFrameValue(.001+_)),this.trigger("segmentStart")},Re.prototype.setSegment=function(M,_){var K=-1;this.isPaused&&(this.currentRawFrame+this.firstFrame<M?K=M:this.currentRawFrame+this.firstFrame>_&&(K=_-M)),this.firstFrame=M,this.totalFrames=_-M,this.timeCompleted=this.totalFrames,K!==-1&&this.goToAndStop(K,!0)},Re.prototype.playSegments=function(M,_){if(_&&(this.segments.length=0),ze(M[0])==="object"){var K,oe=M.length;for(K=0;K<oe;K+=1)this.segments.push(M[K])}else this.segments.push(M);this.segments.length&&_&&this.adjustSegment(this.segments.shift(),0),this.isPaused&&this.play()},Re.prototype.resetSegments=function(M){this.segments.length=0,this.segments.push([this.animationData.ip,this.animationData.op]),M&&this.checkSegments(0)},Re.prototype.checkSegments=function(M){return this.segments.length?(this.adjustSegment(this.segments.shift(),M),!0):!1},Re.prototype.destroy=function(M){M&&this.name!==M||!this.renderer||(this.renderer.destroy(),this.imagePreloader.destroy(),this.trigger("destroy"),this._cbs=null,this.onEnterFrame=null,this.onLoopComplete=null,this.onComplete=null,this.onSegmentStart=null,this.onDestroy=null,this.renderer=null,this.expressionsPlugin=null,this.imagePreloader=null,this.projectInterface=null)},Re.prototype.setCurrentRawFrameValue=function(M){this.currentRawFrame=M,this.gotoFrame()},Re.prototype.setSpeed=function(M){this.playSpeed=M,this.updaFrameModifier()},Re.prototype.setDirection=function(M){this.playDirection=M<0?-1:1,this.updaFrameModifier()},Re.prototype.setLoop=function(M){this.loop=M},Re.prototype.setVolume=function(M,_){_&&this.name!==_||this.audioController.setVolume(M)},Re.prototype.getVolume=function(){return this.audioController.getVolume()},Re.prototype.mute=function(M){M&&this.name!==M||this.audioController.mute()},Re.prototype.unmute=function(M){M&&this.name!==M||this.audioController.unmute()},Re.prototype.updaFrameModifier=function(){this.frameModifier=this.frameMult*this.playSpeed*this.playDirection,this.audioController.setRate(this.playSpeed*this.playDirection)},Re.prototype.getPath=function(){return this.path},Re.prototype.getAssetsPath=function(M){var _="";if(M.e)_=M.p;else if(this.assetsPath){var K=M.p;K.indexOf("images/")!==-1&&(K=K.split("/")[1]),_=this.assetsPath+K}else _=this.path,_+=M.u?M.u:"",_+=M.p;return _},Re.prototype.getAssetData=function(M){for(var _=0,K=this.assets.length;_<K;){if(M===this.assets[_].id)return this.assets[_];_+=1}return null},Re.prototype.hide=function(){this.renderer.hide()},Re.prototype.show=function(){this.renderer.show()},Re.prototype.getDuration=function(M){return M?this.totalFrames:this.totalFrames/this.frameRate},Re.prototype.updateDocumentData=function(M,_,K){try{var oe=this.renderer.getElementByPath(M);oe.updateDocumentData(_,K)}catch{}},Re.prototype.trigger=function(M){if(this._cbs&&this._cbs[M])switch(M){case"enterFrame":this.triggerEvent(M,new F(M,this.currentFrame,this.totalFrames,this.frameModifier));break;case"drawnFrame":this.drawnFrameEvent.currentTime=this.currentFrame,this.drawnFrameEvent.totalTime=this.totalFrames,this.drawnFrameEvent.direction=this.frameModifier,this.triggerEvent(M,this.drawnFrameEvent);break;case"loopComplete":this.triggerEvent(M,new q(M,this.loop,this.playCount,this.frameMult));break;case"complete":this.triggerEvent(M,new Y(M,this.frameMult));break;case"segmentStart":this.triggerEvent(M,new Z(M,this.firstFrame,this.totalFrames));break;case"destroy":this.triggerEvent(M,new V(M,this));break;default:this.triggerEvent(M)}M==="enterFrame"&&this.onEnterFrame&&this.onEnterFrame.call(this,new F(M,this.currentFrame,this.totalFrames,this.frameMult)),M==="loopComplete"&&this.onLoopComplete&&this.onLoopComplete.call(this,new q(M,this.loop,this.playCount,this.frameMult)),M==="complete"&&this.onComplete&&this.onComplete.call(this,new Y(M,this.frameMult)),M==="segmentStart"&&this.onSegmentStart&&this.onSegmentStart.call(this,new Z(M,this.firstFrame,this.totalFrames)),M==="destroy"&&this.onDestroy&&this.onDestroy.call(this,new V(M,this))},Re.prototype.triggerRenderFrameError=function(M){var _=new H(M,this.currentFrame);this.triggerEvent("error",_),this.onError&&this.onError.call(this,_)},Re.prototype.triggerConfigError=function(M){var _=new N(M,this.currentFrame);this.triggerEvent("error",_),this.onError&&this.onError.call(this,_)};var tt=(function(){var M={},_=[],K=0,oe=0,se=0,re=!0,ve=!1;function Be(Te){for(var We=0,ge=Te.target;We<oe;)_[We].animation===ge&&(_.splice(We,1),We-=1,oe-=1,ge.isPaused||st()),We+=1}function we(Te,We){if(!Te)return null;for(var ge=0;ge<oe;){if(_[ge].elem===Te&&_[ge].elem!==null)return _[ge].animation;ge+=1}var Ve=new Re;return Le(Ve,Te),Ve.setData(Te,We),Ve}function Ke(){var Te,We=_.length,ge=[];for(Te=0;Te<We;Te+=1)ge.push(_[Te].animation);return ge}function et(){se+=1,Lo()}function st(){se-=1}function Le(Te,We){Te.addEventListener("destroy",Be),Te.addEventListener("_active",et),Te.addEventListener("_idle",st),_.push({elem:We,animation:Te}),oe+=1}function nt(Te){var We=new Re;return Le(We,null),We.setParams(Te),We}function dt(Te,We){var ge;for(ge=0;ge<oe;ge+=1)_[ge].animation.setSpeed(Te,We)}function ot(Te,We){var ge;for(ge=0;ge<oe;ge+=1)_[ge].animation.setDirection(Te,We)}function ut(Te){var We;for(We=0;We<oe;We+=1)_[We].animation.play(Te)}function Ue(Te){var We=Te-K,ge;for(ge=0;ge<oe;ge+=1)_[ge].animation.advanceTime(We);K=Te,se&&!ve?window.requestAnimationFrame(Ue):re=!0}function Ee(Te){K=Te,window.requestAnimationFrame(Ue)}function ke(Te){var We;for(We=0;We<oe;We+=1)_[We].animation.pause(Te)}function Me(Te,We,ge){var Ve;for(Ve=0;Ve<oe;Ve+=1)_[Ve].animation.goToAndStop(Te,We,ge)}function Ye(Te){var We;for(We=0;We<oe;We+=1)_[We].animation.stop(Te)}function ht(Te){var We;for(We=0;We<oe;We+=1)_[We].animation.togglePause(Te)}function $t(Te){var We;for(We=oe-1;We>=0;We-=1)_[We].animation.destroy(Te)}function kt(Te,We,ge){var Ve=[].concat([].slice.call(document.getElementsByClassName("lottie")),[].slice.call(document.getElementsByClassName("bodymovin"))),ft,ct=Ve.length;for(ft=0;ft<ct;ft+=1)ge&&Ve[ft].setAttribute("data-bm-type",ge),we(Ve[ft],Te);if(We&&ct===0){ge||(ge="svg");var Xo=document.getElementsByTagName("body")[0];Xo.innerText="";var fo=h("div");fo.style.width="100%",fo.style.height="100%",fo.setAttribute("data-bm-type",ge),Xo.appendChild(fo),we(fo,Te)}}function Zt(){var Te;for(Te=0;Te<oe;Te+=1)_[Te].animation.resize()}function Lo(){!ve&&se&&re&&(window.requestAnimationFrame(Ee),re=!1)}function bo(){ve=!0}function co(){ve=!1,Lo()}function jo(Te,We){var ge;for(ge=0;ge<oe;ge+=1)_[ge].animation.setVolume(Te,We)}function Mt(Te){var We;for(We=0;We<oe;We+=1)_[We].animation.mute(Te)}function Ut(Te){var We;for(We=0;We<oe;We+=1)_[We].animation.unmute(Te)}return M.registerAnimation=we,M.loadAnimation=nt,M.setSpeed=dt,M.setDirection=ot,M.play=ut,M.pause=ke,M.stop=Ye,M.togglePause=ht,M.searchAnimations=kt,M.resize=Zt,M.goToAndStop=Me,M.destroy=$t,M.freeze=bo,M.unfreeze=co,M.setVolume=jo,M.mute=Mt,M.unmute=Ut,M.getRegisteredAnimations=Ke,M})(),Je=(function(){var M={};M.getBezierEasing=K;var _={};function K(Ee,ke,Me,Ye,ht){var $t=ht||("bez_"+Ee+"_"+ke+"_"+Me+"_"+Ye).replace(/\./g,"p");if(_[$t])return _[$t];var kt=new Ue([Ee,ke,Me,Ye]);return _[$t]=kt,kt}var oe=4,se=.001,re=1e-7,ve=10,Be=11,we=1/(Be-1),Ke=typeof Float32Array=="function";function et(Ee,ke){return 1-3*ke+3*Ee}function st(Ee,ke){return 3*ke-6*Ee}function Le(Ee){return 3*Ee}function nt(Ee,ke,Me){return((et(ke,Me)*Ee+st(ke,Me))*Ee+Le(ke))*Ee}function dt(Ee,ke,Me){return 3*et(ke,Me)*Ee*Ee+2*st(ke,Me)*Ee+Le(ke)}function ot(Ee,ke,Me,Ye,ht){var $t,kt,Zt=0;do kt=ke+(Me-ke)/2,$t=nt(kt,Ye,ht)-Ee,$t>0?Me=kt:ke=kt;while(Math.abs($t)>re&&++Zt<ve);return kt}function ut(Ee,ke,Me,Ye){for(var ht=0;ht<oe;++ht){var $t=dt(ke,Me,Ye);if($t===0)return ke;var kt=nt(ke,Me,Ye)-Ee;ke-=kt/$t}return ke}function Ue(Ee){this._p=Ee,this._mSampleValues=Ke?new Float32Array(Be):new Array(Be),this._precomputed=!1,this.get=this.get.bind(this)}return Ue.prototype={get:function(Ee){var ke=this._p[0],Me=this._p[1],Ye=this._p[2],ht=this._p[3];return this._precomputed||this._precompute(),ke===Me&&Ye===ht?Ee:Ee===0?0:Ee===1?1:nt(this._getTForX(Ee),Me,ht)},_precompute:function(){var Ee=this._p[0],ke=this._p[1],Me=this._p[2],Ye=this._p[3];this._precomputed=!0,(Ee!==ke||Me!==Ye)&&this._calcSampleValues()},_calcSampleValues:function(){for(var Ee=this._p[0],ke=this._p[2],Me=0;Me<Be;++Me)this._mSampleValues[Me]=nt(Me*we,Ee,ke)},_getTForX:function(Ee){for(var ke=this._p[0],Me=this._p[2],Ye=this._mSampleValues,ht=0,$t=1,kt=Be-1;$t!==kt&&Ye[$t]<=Ee;++$t)ht+=we;--$t;var Zt=(Ee-Ye[$t])/(Ye[$t+1]-Ye[$t]),Lo=ht+Zt*we,bo=dt(Lo,ke,Me);return bo>=se?ut(Ee,Lo,ke,Me):bo===0?Lo:ot(Ee,ht,ht+we,ke,Me)}},M})(),Pe=(function(){function M(_){return _.concat(w(_.length))}return{double:M}})(),qe=(function(){return function(M,_,K){var oe=0,se=M,re=w(se),ve={newElement:Be,release:we};function Be(){var Ke;return oe?(oe-=1,Ke=re[oe]):Ke=_(),Ke}function we(Ke){oe===se&&(re=Pe.double(re),se*=2),K&&K(Ke),re[oe]=Ke,oe+=1}return ve}})(),Ae=(function(){function M(){return{addedLength:0,percents:y("float32",ue()),lengths:y("float32",ue())}}return qe(8,M)})(),Oe=(function(){function M(){return{lengths:[],totalLength:0}}function _(K){var oe,se=K.lengths.length;for(oe=0;oe<se;oe+=1)Ae.release(K.lengths[oe]);K.lengths.length=0}return qe(8,M,_)})();function at(){var M=Math;function _(Le,nt,dt,ot,ut,Ue){var Ee=Le*ot+nt*ut+dt*Ue-ut*ot-Ue*Le-dt*nt;return Ee>-.001&&Ee<.001}function K(Le,nt,dt,ot,ut,Ue,Ee,ke,Me){if(dt===0&&Ue===0&&Me===0)return _(Le,nt,ot,ut,Ee,ke);var Ye=M.sqrt(M.pow(ot-Le,2)+M.pow(ut-nt,2)+M.pow(Ue-dt,2)),ht=M.sqrt(M.pow(Ee-Le,2)+M.pow(ke-nt,2)+M.pow(Me-dt,2)),$t=M.sqrt(M.pow(Ee-ot,2)+M.pow(ke-ut,2)+M.pow(Me-Ue,2)),kt;return Ye>ht?Ye>$t?kt=Ye-ht-$t:kt=$t-ht-Ye:$t>ht?kt=$t-ht-Ye:kt=ht-Ye-$t,kt>-1e-4&&kt<1e-4}var oe=(function(){return function(Le,nt,dt,ot){var ut=ue(),Ue,Ee,ke,Me,Ye,ht=0,$t,kt=[],Zt=[],Lo=Ae.newElement();for(ke=dt.length,Ue=0;Ue<ut;Ue+=1){for(Ye=Ue/(ut-1),$t=0,Ee=0;Ee<ke;Ee+=1)Me=S(1-Ye,3)*Le[Ee]+3*S(1-Ye,2)*Ye*dt[Ee]+3*(1-Ye)*S(Ye,2)*ot[Ee]+S(Ye,3)*nt[Ee],kt[Ee]=Me,Zt[Ee]!==null&&($t+=S(kt[Ee]-Zt[Ee],2)),Zt[Ee]=kt[Ee];$t&&($t=j($t),ht+=$t),Lo.percents[Ue]=Ye,Lo.lengths[Ue]=ht}return Lo.addedLength=ht,Lo}})();function se(Le){var nt=Oe.newElement(),dt=Le.c,ot=Le.v,ut=Le.o,Ue=Le.i,Ee,ke=Le._length,Me=nt.lengths,Ye=0;for(Ee=0;Ee<ke-1;Ee+=1)Me[Ee]=oe(ot[Ee],ot[Ee+1],ut[Ee],Ue[Ee+1]),Ye+=Me[Ee].addedLength;return dt&&ke&&(Me[Ee]=oe(ot[Ee],ot[0],ut[Ee],Ue[0]),Ye+=Me[Ee].addedLength),nt.totalLength=Ye,nt}function re(Le){this.segmentLength=0,this.points=new Array(Le)}function ve(Le,nt){this.partialLength=Le,this.point=nt}var Be=(function(){var Le={};return function(nt,dt,ot,ut){var Ue=(nt[0]+"_"+nt[1]+"_"+dt[0]+"_"+dt[1]+"_"+ot[0]+"_"+ot[1]+"_"+ut[0]+"_"+ut[1]).replace(/\./g,"p");if(!Le[Ue]){var Ee=ue(),ke,Me,Ye,ht,$t,kt=0,Zt,Lo,bo=null;nt.length===2&&(nt[0]!==dt[0]||nt[1]!==dt[1])&&_(nt[0],nt[1],dt[0],dt[1],nt[0]+ot[0],nt[1]+ot[1])&&_(nt[0],nt[1],dt[0],dt[1],dt[0]+ut[0],dt[1]+ut[1])&&(Ee=2);var co=new re(Ee);for(Ye=ot.length,ke=0;ke<Ee;ke+=1){for(Lo=w(Ye),$t=ke/(Ee-1),Zt=0,Me=0;Me<Ye;Me+=1)ht=S(1-$t,3)*nt[Me]+3*S(1-$t,2)*$t*(nt[Me]+ot[Me])+3*(1-$t)*S($t,2)*(dt[Me]+ut[Me])+S($t,3)*dt[Me],Lo[Me]=ht,bo!==null&&(Zt+=S(Lo[Me]-bo[Me],2));Zt=j(Zt),kt+=Zt,co.points[ke]=new ve(Zt,Lo),bo=Lo}co.segmentLength=kt,Le[Ue]=co}return Le[Ue]}})();function we(Le,nt){var dt=nt.percents,ot=nt.lengths,ut=dt.length,Ue=I((ut-1)*Le),Ee=Le*nt.addedLength,ke=0;if(Ue===ut-1||Ue===0||Ee===ot[Ue])return dt[Ue];for(var Me=ot[Ue]>Ee?-1:1,Ye=!0;Ye;)if(ot[Ue]<=Ee&&ot[Ue+1]>Ee?(ke=(Ee-ot[Ue])/(ot[Ue+1]-ot[Ue]),Ye=!1):Ue+=Me,Ue<0||Ue>=ut-1){if(Ue===ut-1)return dt[Ue];Ye=!1}return dt[Ue]+(dt[Ue+1]-dt[Ue])*ke}function Ke(Le,nt,dt,ot,ut,Ue){var Ee=we(ut,Ue),ke=1-Ee,Me=M.round((ke*ke*ke*Le[0]+(Ee*ke*ke+ke*Ee*ke+ke*ke*Ee)*dt[0]+(Ee*Ee*ke+ke*Ee*Ee+Ee*ke*Ee)*ot[0]+Ee*Ee*Ee*nt[0])*1e3)/1e3,Ye=M.round((ke*ke*ke*Le[1]+(Ee*ke*ke+ke*Ee*ke+ke*ke*Ee)*dt[1]+(Ee*Ee*ke+ke*Ee*Ee+Ee*ke*Ee)*ot[1]+Ee*Ee*Ee*nt[1])*1e3)/1e3;return[Me,Ye]}var et=y("float32",8);function st(Le,nt,dt,ot,ut,Ue,Ee){ut<0?ut=0:ut>1&&(ut=1);var ke=we(ut,Ee);Ue=Ue>1?1:Ue;var Me=we(Ue,Ee),Ye,ht=Le.length,$t=1-ke,kt=1-Me,Zt=$t*$t*$t,Lo=ke*$t*$t*3,bo=ke*ke*$t*3,co=ke*ke*ke,jo=$t*$t*kt,Mt=ke*$t*kt+$t*ke*kt+$t*$t*Me,Ut=ke*ke*kt+$t*ke*Me+ke*$t*Me,Te=ke*ke*Me,We=$t*kt*kt,ge=ke*kt*kt+$t*Me*kt+$t*kt*Me,Ve=ke*Me*kt+$t*Me*Me+ke*kt*Me,ft=ke*Me*Me,ct=kt*kt*kt,Xo=Me*kt*kt+kt*Me*kt+kt*kt*Me,fo=Me*Me*kt+kt*Me*Me+Me*kt*Me,Wi=Me*Me*Me;for(Ye=0;Ye<ht;Ye+=1)et[Ye*4]=M.round((Zt*Le[Ye]+Lo*dt[Ye]+bo*ot[Ye]+co*nt[Ye])*1e3)/1e3,et[Ye*4+1]=M.round((jo*Le[Ye]+Mt*dt[Ye]+Ut*ot[Ye]+Te*nt[Ye])*1e3)/1e3,et[Ye*4+2]=M.round((We*Le[Ye]+ge*dt[Ye]+Ve*ot[Ye]+ft*nt[Ye])*1e3)/1e3,et[Ye*4+3]=M.round((ct*Le[Ye]+Xo*dt[Ye]+fo*ot[Ye]+Wi*nt[Ye])*1e3)/1e3;return et}return{getSegmentsLength:se,getNewSegment:st,getPointInSegment:Ke,buildBezierData:Be,pointOnLine2D:_,pointOnLine3D:K}}var Ne=at(),it=l,mt=Math.abs;function _e(M,_){var K=this.offsetTime,oe;this.propType==="multidimensional"&&(oe=y("float32",this.pv.length));for(var se=_.lastIndex,re=se,ve=this.keyframes.length-1,Be=!0,we,Ke,et;Be;){if(we=this.keyframes[re],Ke=this.keyframes[re+1],re===ve-1&&M>=Ke.t-K){we.h&&(we=Ke),se=0;break}if(Ke.t-K>M){se=re;break}re<ve-1?re+=1:(se=0,Be=!1)}et=this.keyframesMetadata[re]||{};var st,Le,nt,dt,ot,ut,Ue=Ke.t-K,Ee=we.t-K,ke;if(we.to){et.bezierData||(et.bezierData=Ne.buildBezierData(we.s,Ke.s||we.e,we.to,we.ti));var Me=et.bezierData;if(M>=Ue||M<Ee){var Ye=M>=Ue?Me.points.length-1:0;for(Le=Me.points[Ye].point.length,st=0;st<Le;st+=1)oe[st]=Me.points[Ye].point[st]}else{et.__fnct?ut=et.__fnct:(ut=Je.getBezierEasing(we.o.x,we.o.y,we.i.x,we.i.y,we.n).get,et.__fnct=ut),nt=ut((M-Ee)/(Ue-Ee));var ht=Me.segmentLength*nt,$t,kt=_.lastFrame<M&&_._lastKeyframeIndex===re?_._lastAddedLength:0;for(ot=_.lastFrame<M&&_._lastKeyframeIndex===re?_._lastPoint:0,Be=!0,dt=Me.points.length;Be;){if(kt+=Me.points[ot].partialLength,ht===0||nt===0||ot===Me.points.length-1){for(Le=Me.points[ot].point.length,st=0;st<Le;st+=1)oe[st]=Me.points[ot].point[st];break}else if(ht>=kt&&ht<kt+Me.points[ot+1].partialLength){for($t=(ht-kt)/Me.points[ot+1].partialLength,Le=Me.points[ot].point.length,st=0;st<Le;st+=1)oe[st]=Me.points[ot].point[st]+(Me.points[ot+1].point[st]-Me.points[ot].point[st])*$t;break}ot<dt-1?ot+=1:Be=!1}_._lastPoint=ot,_._lastAddedLength=kt-Me.points[ot].partialLength,_._lastKeyframeIndex=re}}else{var Zt,Lo,bo,co,jo;if(ve=we.s.length,ke=Ke.s||we.e,this.sh&&we.h!==1)if(M>=Ue)oe[0]=ke[0],oe[1]=ke[1],oe[2]=ke[2];else if(M<=Ee)oe[0]=we.s[0],oe[1]=we.s[1],oe[2]=we.s[2];else{var Mt=Ht(we.s),Ut=Ht(ke),Te=(M-Ee)/(Ue-Ee);Bt(oe,At(Mt,Ut,Te))}else for(re=0;re<ve;re+=1)we.h!==1&&(M>=Ue?nt=1:M<Ee?nt=0:(we.o.x.constructor===Array?(et.__fnct||(et.__fnct=[]),et.__fnct[re]?ut=et.__fnct[re]:(Zt=we.o.x[re]===void 0?we.o.x[0]:we.o.x[re],Lo=we.o.y[re]===void 0?we.o.y[0]:we.o.y[re],bo=we.i.x[re]===void 0?we.i.x[0]:we.i.x[re],co=we.i.y[re]===void 0?we.i.y[0]:we.i.y[re],ut=Je.getBezierEasing(Zt,Lo,bo,co).get,et.__fnct[re]=ut)):et.__fnct?ut=et.__fnct:(Zt=we.o.x,Lo=we.o.y,bo=we.i.x,co=we.i.y,ut=Je.getBezierEasing(Zt,Lo,bo,co).get,we.keyframeMetadata=ut),nt=ut((M-Ee)/(Ue-Ee)))),ke=Ke.s||we.e,jo=we.h===1?we.s[re]:we.s[re]+(ke[re]-we.s[re])*nt,this.propType==="multidimensional"?oe[re]=jo:oe=jo}return _.lastIndex=se,oe}function At(M,_,K){var oe=[],se=M[0],re=M[1],ve=M[2],Be=M[3],we=_[0],Ke=_[1],et=_[2],st=_[3],Le,nt,dt,ot,ut;return nt=se*we+re*Ke+ve*et+Be*st,nt<0&&(nt=-nt,we=-we,Ke=-Ke,et=-et,st=-st),1-nt>1e-6?(Le=Math.acos(nt),dt=Math.sin(Le),ot=Math.sin((1-K)*Le)/dt,ut=Math.sin(K*Le)/dt):(ot=1-K,ut=K),oe[0]=ot*se+ut*we,oe[1]=ot*re+ut*Ke,oe[2]=ot*ve+ut*et,oe[3]=ot*Be+ut*st,oe}function Bt(M,_){var K=_[0],oe=_[1],se=_[2],re=_[3],ve=Math.atan2(2*oe*re-2*K*se,1-2*oe*oe-2*se*se),Be=Math.asin(2*K*oe+2*se*re),we=Math.atan2(2*K*re-2*oe*se,1-2*K*K-2*se*se);M[0]=ve/B,M[1]=Be/B,M[2]=we/B}function Ht(M){var _=M[0]*B,K=M[1]*B,oe=M[2]*B,se=Math.cos(_/2),re=Math.cos(K/2),ve=Math.cos(oe/2),Be=Math.sin(_/2),we=Math.sin(K/2),Ke=Math.sin(oe/2),et=se*re*ve-Be*we*Ke,st=Be*we*ve+se*re*Ke,Le=Be*re*ve+se*we*Ke,nt=se*we*ve-Be*re*Ke;return[st,Le,nt,et]}function Lt(){var M=this.comp.renderedFrame-this.offsetTime,_=this.keyframes[0].t-this.offsetTime,K=this.keyframes[this.keyframes.length-1].t-this.offsetTime;if(!(M===this._caching.lastFrame||this._caching.lastFrame!==it&&(this._caching.lastFrame>=K&&M>=K||this._caching.lastFrame<_&&M<_))){this._caching.lastFrame>=M&&(this._caching._lastKeyframeIndex=-1,this._caching.lastIndex=0);var oe=this.interpolateValue(M,this._caching);this.pv=oe}return this._caching.lastFrame=M,this.pv}function yt(M){var _;if(this.propType==="unidimensional")_=M*this.mult,mt(this.v-_)>1e-5&&(this.v=_,this._mdf=!0);else for(var K=0,oe=this.v.length;K<oe;)_=M[K]*this.mult,mt(this.v[K]-_)>1e-5&&(this.v[K]=_,this._mdf=!0),K+=1}function Gt(){if(!(this.elem.globalData.frameId===this.frameId||!this.effectsSequence.length)){if(this.lock){this.setVValue(this.pv);return}this.lock=!0,this._mdf=this._isFirstFrame;var M,_=this.effectsSequence.length,K=this.kf?this.pv:this.data.k;for(M=0;M<_;M+=1)K=this.effectsSequence[M](K);this.setVValue(K),this._isFirstFrame=!1,this.lock=!1,this.frameId=this.elem.globalData.frameId}}function qt(M){this.effectsSequence.push(M),this.container.addDynamicProperty(this)}function Po(M,_,K,oe){this.propType="unidimensional",this.mult=K||1,this.data=_,this.v=K?_.k*K:_.k,this.pv=_.k,this._mdf=!1,this.elem=M,this.container=oe,this.comp=M.comp,this.k=!1,this.kf=!1,this.vel=0,this.effectsSequence=[],this._isFirstFrame=!0,this.getValue=Gt,this.setVValue=yt,this.addEffect=qt}function Go(M,_,K,oe){this.propType="multidimensional",this.mult=K||1,this.data=_,this._mdf=!1,this.elem=M,this.container=oe,this.comp=M.comp,this.k=!1,this.kf=!1,this.frameId=-1;var se,re=_.k.length;for(this.v=y("float32",re),this.pv=y("float32",re),this.vel=y("float32",re),se=0;se<re;se+=1)this.v[se]=_.k[se]*this.mult,this.pv[se]=_.k[se];this._isFirstFrame=!0,this.effectsSequence=[],this.getValue=Gt,this.setVValue=yt,this.addEffect=qt}function gt(M,_,K,oe){this.propType="unidimensional",this.keyframes=_.k,this.keyframesMetadata=[],this.offsetTime=M.data.st,this.frameId=-1,this._caching={lastFrame:it,lastIndex:0,value:0,_lastKeyframeIndex:-1},this.k=!0,this.kf=!0,this.data=_,this.mult=K||1,this.elem=M,this.container=oe,this.comp=M.comp,this.v=it,this.pv=it,this._isFirstFrame=!0,this.getValue=Gt,this.setVValue=yt,this.interpolateValue=_e,this.effectsSequence=[Lt.bind(this)],this.addEffect=qt}function Ro(M,_,K,oe){this.propType="multidimensional";var se,re=_.k.length,ve,Be,we,Ke;for(se=0;se<re-1;se+=1)_.k[se].to&&_.k[se].s&&_.k[se+1]&&_.k[se+1].s&&(ve=_.k[se].s,Be=_.k[se+1].s,we=_.k[se].to,Ke=_.k[se].ti,(ve.length===2&&!(ve[0]===Be[0]&&ve[1]===Be[1])&&Ne.pointOnLine2D(ve[0],ve[1],Be[0],Be[1],ve[0]+we[0],ve[1]+we[1])&&Ne.pointOnLine2D(ve[0],ve[1],Be[0],Be[1],Be[0]+Ke[0],Be[1]+Ke[1])||ve.length===3&&!(ve[0]===Be[0]&&ve[1]===Be[1]&&ve[2]===Be[2])&&Ne.pointOnLine3D(ve[0],ve[1],ve[2],Be[0],Be[1],Be[2],ve[0]+we[0],ve[1]+we[1],ve[2]+we[2])&&Ne.pointOnLine3D(ve[0],ve[1],ve[2],Be[0],Be[1],Be[2],Be[0]+Ke[0],Be[1]+Ke[1],Be[2]+Ke[2]))&&(_.k[se].to=null,_.k[se].ti=null),ve[0]===Be[0]&&ve[1]===Be[1]&&we[0]===0&&we[1]===0&&Ke[0]===0&&Ke[1]===0&&(ve.length===2||ve[2]===Be[2]&&we[2]===0&&Ke[2]===0)&&(_.k[se].to=null,_.k[se].ti=null));this.effectsSequence=[Lt.bind(this)],this.data=_,this.keyframes=_.k,this.keyframesMetadata=[],this.offsetTime=M.data.st,this.k=!0,this.kf=!0,this._isFirstFrame=!0,this.mult=K||1,this.elem=M,this.container=oe,this.comp=M.comp,this.getValue=Gt,this.setVValue=yt,this.interpolateValue=_e,this.frameId=-1;var et=_.k[0].s.length;for(this.v=y("float32",et),this.pv=y("float32",et),se=0;se<et;se+=1)this.v[se]=it,this.pv[se]=it;this._caching={lastFrame:it,lastIndex:0,value:y("float32",et)},this.addEffect=qt}var jt=(function(){function M(K,oe,se,re,ve){oe.sid&&(oe=K.globalData.slotManager.getProp(oe));var Be;if(!oe.k.length)Be=new Po(K,oe,re,ve);else if(typeof oe.k[0]=="number")Be=new Go(K,oe,re,ve);else switch(se){case 0:Be=new gt(K,oe,re,ve);break;case 1:Be=new Ro(K,oe,re,ve);break}return Be.effectsSequence.length&&ve.addDynamicProperty(Be),Be}var _={getProp:M};return _})();function oi(){}oi.prototype={addDynamicProperty:function(M){this.dynamicProperties.indexOf(M)===-1&&(this.dynamicProperties.push(M),this.container.addDynamicProperty(this),this._isAnimated=!0)},iterateDynamicProperties:function(){this._mdf=!1;var M,_=this.dynamicProperties.length;for(M=0;M<_;M+=1)this.dynamicProperties[M].getValue(),this.dynamicProperties[M]._mdf&&(this._mdf=!0)},initDynamicPropertyContainer:function(M){this.container=M,this.dynamicProperties=[],this._mdf=!1,this._isAnimated=!1}};var xr=(function(){function M(){return y("float32",2)}return qe(8,M)})();function go(){this.c=!1,this._length=0,this._maxLength=8,this.v=w(this._maxLength),this.o=w(this._maxLength),this.i=w(this._maxLength)}go.prototype.setPathData=function(M,_){this.c=M,this.setLength(_);for(var K=0;K<_;)this.v[K]=xr.newElement(),this.o[K]=xr.newElement(),this.i[K]=xr.newElement(),K+=1},go.prototype.setLength=function(M){for(;this._maxLength<M;)this.doubleArrayLength();this._length=M},go.prototype.doubleArrayLength=function(){this.v=this.v.concat(w(this._maxLength)),this.i=this.i.concat(w(this._maxLength)),this.o=this.o.concat(w(this._maxLength)),this._maxLength*=2},go.prototype.setXYAt=function(M,_,K,oe,se){var re;switch(this._length=Math.max(this._length,oe+1),this._length>=this._maxLength&&this.doubleArrayLength(),K){case"v":re=this.v;break;case"i":re=this.i;break;case"o":re=this.o;break;default:re=[];break}(!re[oe]||re[oe]&&!se)&&(re[oe]=xr.newElement()),re[oe][0]=M,re[oe][1]=_},go.prototype.setTripleAt=function(M,_,K,oe,se,re,ve,Be){this.setXYAt(M,_,"v",ve,Be),this.setXYAt(K,oe,"o",ve,Be),this.setXYAt(se,re,"i",ve,Be)},go.prototype.reverse=function(){var M=new go;M.setPathData(this.c,this._length);var _=this.v,K=this.o,oe=this.i,se=0;this.c&&(M.setTripleAt(_[0][0],_[0][1],oe[0][0],oe[0][1],K[0][0],K[0][1],0,!1),se=1);var re=this._length-1,ve=this._length,Be;for(Be=se;Be<ve;Be+=1)M.setTripleAt(_[re][0],_[re][1],oe[re][0],oe[re][1],K[re][0],K[re][1],Be,!1),re-=1;return M},go.prototype.length=function(){return this._length};var lo=(function(){function M(){return new go}function _(se){var re=se._length,ve;for(ve=0;ve<re;ve+=1)xr.release(se.v[ve]),xr.release(se.i[ve]),xr.release(se.o[ve]),se.v[ve]=null,se.i[ve]=null,se.o[ve]=null;se._length=0,se.c=!1}function K(se){var re=oe.newElement(),ve,Be=se._length===void 0?se.v.length:se._length;for(re.setLength(Be),re.c=se.c,ve=0;ve<Be;ve+=1)re.setTripleAt(se.v[ve][0],se.v[ve][1],se.o[ve][0],se.o[ve][1],se.i[ve][0],se.i[ve][1],ve);return re}var oe=qe(4,M,_);return oe.clone=K,oe})();function Ui(){this._length=0,this._maxLength=4,this.shapes=w(this._maxLength)}Ui.prototype.addShape=function(M){this._length===this._maxLength&&(this.shapes=this.shapes.concat(w(this._maxLength)),this._maxLength*=2),this.shapes[this._length]=M,this._length+=1},Ui.prototype.releaseShapes=function(){var M;for(M=0;M<this._length;M+=1)lo.release(this.shapes[M]);this._length=0};var or=(function(){var M={newShapeCollection:se,release:re},_=0,K=4,oe=w(K);function se(){var ve;return _?(_-=1,ve=oe[_]):ve=new Ui,ve}function re(ve){var Be,we=ve._length;for(Be=0;Be<we;Be+=1)lo.release(ve.shapes[Be]);ve._length=0,_===K&&(oe=Pe.double(oe),K*=2),oe[_]=ve,_+=1}return M})(),on=(function(){var M=-999999;function _(Ue,Ee,ke){var Me=ke.lastIndex,Ye,ht,$t,kt,Zt,Lo,bo,co,jo,Mt=this.keyframes;if(Ue<Mt[0].t-this.offsetTime)Ye=Mt[0].s[0],$t=!0,Me=0;else if(Ue>=Mt[Mt.length-1].t-this.offsetTime)Ye=Mt[Mt.length-1].s?Mt[Mt.length-1].s[0]:Mt[Mt.length-2].e[0],$t=!0;else{for(var Ut=Me,Te=Mt.length-1,We=!0,ge,Ve,ft;We&&(ge=Mt[Ut],Ve=Mt[Ut+1],!(Ve.t-this.offsetTime>Ue));)Ut<Te-1?Ut+=1:We=!1;if(ft=this.keyframesMetadata[Ut]||{},$t=ge.h===1,Me=Ut,!$t){if(Ue>=Ve.t-this.offsetTime)co=1;else if(Ue<ge.t-this.offsetTime)co=0;else{var ct;ft.__fnct?ct=ft.__fnct:(ct=Je.getBezierEasing(ge.o.x,ge.o.y,ge.i.x,ge.i.y).get,ft.__fnct=ct),co=ct((Ue-(ge.t-this.offsetTime))/(Ve.t-this.offsetTime-(ge.t-this.offsetTime)))}ht=Ve.s?Ve.s[0]:ge.e[0]}Ye=ge.s[0]}for(Lo=Ee._length,bo=Ye.i[0].length,ke.lastIndex=Me,kt=0;kt<Lo;kt+=1)for(Zt=0;Zt<bo;Zt+=1)jo=$t?Ye.i[kt][Zt]:Ye.i[kt][Zt]+(ht.i[kt][Zt]-Ye.i[kt][Zt])*co,Ee.i[kt][Zt]=jo,jo=$t?Ye.o[kt][Zt]:Ye.o[kt][Zt]+(ht.o[kt][Zt]-Ye.o[kt][Zt])*co,Ee.o[kt][Zt]=jo,jo=$t?Ye.v[kt][Zt]:Ye.v[kt][Zt]+(ht.v[kt][Zt]-Ye.v[kt][Zt])*co,Ee.v[kt][Zt]=jo}function K(){var Ue=this.comp.renderedFrame-this.offsetTime,Ee=this.keyframes[0].t-this.offsetTime,ke=this.keyframes[this.keyframes.length-1].t-this.offsetTime,Me=this._caching.lastFrame;return Me!==M&&(Me<Ee&&Ue<Ee||Me>ke&&Ue>ke)||(this._caching.lastIndex=Me<Ue?this._caching.lastIndex:0,this.interpolateShape(Ue,this.pv,this._caching)),this._caching.lastFrame=Ue,this.pv}function oe(){this.paths=this.localShapeCollection}function se(Ue,Ee){if(Ue._length!==Ee._length||Ue.c!==Ee.c)return!1;var ke,Me=Ue._length;for(ke=0;ke<Me;ke+=1)if(Ue.v[ke][0]!==Ee.v[ke][0]||Ue.v[ke][1]!==Ee.v[ke][1]||Ue.o[ke][0]!==Ee.o[ke][0]||Ue.o[ke][1]!==Ee.o[ke][1]||Ue.i[ke][0]!==Ee.i[ke][0]||Ue.i[ke][1]!==Ee.i[ke][1])return!1;return!0}function re(Ue){se(this.v,Ue)||(this.v=lo.clone(Ue),this.localShapeCollection.releaseShapes(),this.localShapeCollection.addShape(this.v),this._mdf=!0,this.paths=this.localShapeCollection)}function ve(){if(this.elem.globalData.frameId!==this.frameId){if(!this.effectsSequence.length){this._mdf=!1;return}if(this.lock){this.setVValue(this.pv);return}this.lock=!0,this._mdf=!1;var Ue;this.kf?Ue=this.pv:this.data.ks?Ue=this.data.ks.k:Ue=this.data.pt.k;var Ee,ke=this.effectsSequence.length;for(Ee=0;Ee<ke;Ee+=1)Ue=this.effectsSequence[Ee](Ue);this.setVValue(Ue),this.lock=!1,this.frameId=this.elem.globalData.frameId}}function Be(Ue,Ee,ke){this.propType="shape",this.comp=Ue.comp,this.container=Ue,this.elem=Ue,this.data=Ee,this.k=!1,this.kf=!1,this._mdf=!1;var Me=ke===3?Ee.pt.k:Ee.ks.k;this.v=lo.clone(Me),this.pv=lo.clone(this.v),this.localShapeCollection=or.newShapeCollection(),this.paths=this.localShapeCollection,this.paths.addShape(this.v),this.reset=oe,this.effectsSequence=[]}function we(Ue){this.effectsSequence.push(Ue),this.container.addDynamicProperty(this)}Be.prototype.interpolateShape=_,Be.prototype.getValue=ve,Be.prototype.setVValue=re,Be.prototype.addEffect=we;function Ke(Ue,Ee,ke){this.propType="shape",this.comp=Ue.comp,this.elem=Ue,this.container=Ue,this.offsetTime=Ue.data.st,this.keyframes=ke===3?Ee.pt.k:Ee.ks.k,this.keyframesMetadata=[],this.k=!0,this.kf=!0;var Me=this.keyframes[0].s[0].i.length;this.v=lo.newElement(),this.v.setPathData(this.keyframes[0].s[0].c,Me),this.pv=lo.clone(this.v),this.localShapeCollection=or.newShapeCollection(),this.paths=this.localShapeCollection,this.paths.addShape(this.v),this.lastFrame=M,this.reset=oe,this._caching={lastFrame:M,lastIndex:0},this.effectsSequence=[K.bind(this)]}Ke.prototype.getValue=ve,Ke.prototype.interpolateShape=_,Ke.prototype.setVValue=re,Ke.prototype.addEffect=we;var et=(function(){var Ue=D;function Ee(ke,Me){this.v=lo.newElement(),this.v.setPathData(!0,4),this.localShapeCollection=or.newShapeCollection(),this.paths=this.localShapeCollection,this.localShapeCollection.addShape(this.v),this.d=Me.d,this.elem=ke,this.comp=ke.comp,this.frameId=-1,this.initDynamicPropertyContainer(ke),this.p=jt.getProp(ke,Me.p,1,0,this),this.s=jt.getProp(ke,Me.s,1,0,this),this.dynamicProperties.length?this.k=!0:(this.k=!1,this.convertEllToPath())}return Ee.prototype={reset:oe,getValue:function(){this.elem.globalData.frameId!==this.frameId&&(this.frameId=this.elem.globalData.frameId,this.iterateDynamicProperties(),this._mdf&&this.convertEllToPath())},convertEllToPath:function(){var ke=this.p.v[0],Me=this.p.v[1],Ye=this.s.v[0]/2,ht=this.s.v[1]/2,$t=this.d!==3,kt=this.v;kt.v[0][0]=ke,kt.v[0][1]=Me-ht,kt.v[1][0]=$t?ke+Ye:ke-Ye,kt.v[1][1]=Me,kt.v[2][0]=ke,kt.v[2][1]=Me+ht,kt.v[3][0]=$t?ke-Ye:ke+Ye,kt.v[3][1]=Me,kt.i[0][0]=$t?ke-Ye*Ue:ke+Ye*Ue,kt.i[0][1]=Me-ht,kt.i[1][0]=$t?ke+Ye:ke-Ye,kt.i[1][1]=Me-ht*Ue,kt.i[2][0]=$t?ke+Ye*Ue:ke-Ye*Ue,kt.i[2][1]=Me+ht,kt.i[3][0]=$t?ke-Ye:ke+Ye,kt.i[3][1]=Me+ht*Ue,kt.o[0][0]=$t?ke+Ye*Ue:ke-Ye*Ue,kt.o[0][1]=Me-ht,kt.o[1][0]=$t?ke+Ye:ke-Ye,kt.o[1][1]=Me+ht*Ue,kt.o[2][0]=$t?ke-Ye*Ue:ke+Ye*Ue,kt.o[2][1]=Me+ht,kt.o[3][0]=$t?ke-Ye:ke+Ye,kt.o[3][1]=Me-ht*Ue}},m([oi],Ee),Ee})(),st=(function(){function Ue(Ee,ke){this.v=lo.newElement(),this.v.setPathData(!0,0),this.elem=Ee,this.comp=Ee.comp,this.data=ke,this.frameId=-1,this.d=ke.d,this.initDynamicPropertyContainer(Ee),ke.sy===1?(this.ir=jt.getProp(Ee,ke.ir,0,0,this),this.is=jt.getProp(Ee,ke.is,0,.01,this),this.convertToPath=this.convertStarToPath):this.convertToPath=this.convertPolygonToPath,this.pt=jt.getProp(Ee,ke.pt,0,0,this),this.p=jt.getProp(Ee,ke.p,1,0,this),this.r=jt.getProp(Ee,ke.r,0,B,this),this.or=jt.getProp(Ee,ke.or,0,0,this),this.os=jt.getProp(Ee,ke.os,0,.01,this),this.localShapeCollection=or.newShapeCollection(),this.localShapeCollection.addShape(this.v),this.paths=this.localShapeCollection,this.dynamicProperties.length?this.k=!0:(this.k=!1,this.convertToPath())}return Ue.prototype={reset:oe,getValue:function(){this.elem.globalData.frameId!==this.frameId&&(this.frameId=this.elem.globalData.frameId,this.iterateDynamicProperties(),this._mdf&&this.convertToPath())},convertStarToPath:function(){var Ee=Math.floor(this.pt.v)*2,ke=Math.PI*2/Ee,Me=!0,Ye=this.or.v,ht=this.ir.v,$t=this.os.v,kt=this.is.v,Zt=2*Math.PI*Ye/(Ee*2),Lo=2*Math.PI*ht/(Ee*2),bo,co,jo,Mt,Ut=-Math.PI/2;Ut+=this.r.v;var Te=this.data.d===3?-1:1;for(this.v._length=0,bo=0;bo<Ee;bo+=1){co=Me?Ye:ht,jo=Me?$t:kt,Mt=Me?Zt:Lo;var We=co*Math.cos(Ut),ge=co*Math.sin(Ut),Ve=We===0&&ge===0?0:ge/Math.sqrt(We*We+ge*ge),ft=We===0&&ge===0?0:-We/Math.sqrt(We*We+ge*ge);We+=+this.p.v[0],ge+=+this.p.v[1],this.v.setTripleAt(We,ge,We-Ve*Mt*jo*Te,ge-ft*Mt*jo*Te,We+Ve*Mt*jo*Te,ge+ft*Mt*jo*Te,bo,!0),Me=!Me,Ut+=ke*Te}},convertPolygonToPath:function(){var Ee=Math.floor(this.pt.v),ke=Math.PI*2/Ee,Me=this.or.v,Ye=this.os.v,ht=2*Math.PI*Me/(Ee*4),$t,kt=-Math.PI*.5,Zt=this.data.d===3?-1:1;for(kt+=this.r.v,this.v._length=0,$t=0;$t<Ee;$t+=1){var Lo=Me*Math.cos(kt),bo=Me*Math.sin(kt),co=Lo===0&&bo===0?0:bo/Math.sqrt(Lo*Lo+bo*bo),jo=Lo===0&&bo===0?0:-Lo/Math.sqrt(Lo*Lo+bo*bo);Lo+=+this.p.v[0],bo+=+this.p.v[1],this.v.setTripleAt(Lo,bo,Lo-co*ht*Ye*Zt,bo-jo*ht*Ye*Zt,Lo+co*ht*Ye*Zt,bo+jo*ht*Ye*Zt,$t,!0),kt+=ke*Zt}this.paths.length=0,this.paths[0]=this.v}},m([oi],Ue),Ue})(),Le=(function(){function Ue(Ee,ke){this.v=lo.newElement(),this.v.c=!0,this.localShapeCollection=or.newShapeCollection(),this.localShapeCollection.addShape(this.v),this.paths=this.localShapeCollection,this.elem=Ee,this.comp=Ee.comp,this.frameId=-1,this.d=ke.d,this.initDynamicPropertyContainer(Ee),this.p=jt.getProp(Ee,ke.p,1,0,this),this.s=jt.getProp(Ee,ke.s,1,0,this),this.r=jt.getProp(Ee,ke.r,0,0,this),this.dynamicProperties.length?this.k=!0:(this.k=!1,this.convertRectToPath())}return Ue.prototype={convertRectToPath:function(){var Ee=this.p.v[0],ke=this.p.v[1],Me=this.s.v[0]/2,Ye=this.s.v[1]/2,ht=T(Me,Ye,this.r.v),$t=ht*(1-D);this.v._length=0,this.d===2||this.d===1?(this.v.setTripleAt(Ee+Me,ke-Ye+ht,Ee+Me,ke-Ye+ht,Ee+Me,ke-Ye+$t,0,!0),this.v.setTripleAt(Ee+Me,ke+Ye-ht,Ee+Me,ke+Ye-$t,Ee+Me,ke+Ye-ht,1,!0),ht!==0?(this.v.setTripleAt(Ee+Me-ht,ke+Ye,Ee+Me-ht,ke+Ye,Ee+Me-$t,ke+Ye,2,!0),this.v.setTripleAt(Ee-Me+ht,ke+Ye,Ee-Me+$t,ke+Ye,Ee-Me+ht,ke+Ye,3,!0),this.v.setTripleAt(Ee-Me,ke+Ye-ht,Ee-Me,ke+Ye-ht,Ee-Me,ke+Ye-$t,4,!0),this.v.setTripleAt(Ee-Me,ke-Ye+ht,Ee-Me,ke-Ye+$t,Ee-Me,ke-Ye+ht,5,!0),this.v.setTripleAt(Ee-Me+ht,ke-Ye,Ee-Me+ht,ke-Ye,Ee-Me+$t,ke-Ye,6,!0),this.v.setTripleAt(Ee+Me-ht,ke-Ye,Ee+Me-$t,ke-Ye,Ee+Me-ht,ke-Ye,7,!0)):(this.v.setTripleAt(Ee-Me,ke+Ye,Ee-Me+$t,ke+Ye,Ee-Me,ke+Ye,2),this.v.setTripleAt(Ee-Me,ke-Ye,Ee-Me,ke-Ye+$t,Ee-Me,ke-Ye,3))):(this.v.setTripleAt(Ee+Me,ke-Ye+ht,Ee+Me,ke-Ye+$t,Ee+Me,ke-Ye+ht,0,!0),ht!==0?(this.v.setTripleAt(Ee+Me-ht,ke-Ye,Ee+Me-ht,ke-Ye,Ee+Me-$t,ke-Ye,1,!0),this.v.setTripleAt(Ee-Me+ht,ke-Ye,Ee-Me+$t,ke-Ye,Ee-Me+ht,ke-Ye,2,!0),this.v.setTripleAt(Ee-Me,ke-Ye+ht,Ee-Me,ke-Ye+ht,Ee-Me,ke-Ye+$t,3,!0),this.v.setTripleAt(Ee-Me,ke+Ye-ht,Ee-Me,ke+Ye-$t,Ee-Me,ke+Ye-ht,4,!0),this.v.setTripleAt(Ee-Me+ht,ke+Ye,Ee-Me+ht,ke+Ye,Ee-Me+$t,ke+Ye,5,!0),this.v.setTripleAt(Ee+Me-ht,ke+Ye,Ee+Me-$t,ke+Ye,Ee+Me-ht,ke+Ye,6,!0),this.v.setTripleAt(Ee+Me,ke+Ye-ht,Ee+Me,ke+Ye-ht,Ee+Me,ke+Ye-$t,7,!0)):(this.v.setTripleAt(Ee-Me,ke-Ye,Ee-Me+$t,ke-Ye,Ee-Me,ke-Ye,1,!0),this.v.setTripleAt(Ee-Me,ke+Ye,Ee-Me,ke+Ye-$t,Ee-Me,ke+Ye,2,!0),this.v.setTripleAt(Ee+Me,ke+Ye,Ee+Me-$t,ke+Ye,Ee+Me,ke+Ye,3,!0)))},getValue:function(){this.elem.globalData.frameId!==this.frameId&&(this.frameId=this.elem.globalData.frameId,this.iterateDynamicProperties(),this._mdf&&this.convertRectToPath())},reset:oe},m([oi],Ue),Ue})();function nt(Ue,Ee,ke){var Me;if(ke===3||ke===4){var Ye=ke===3?Ee.pt:Ee.ks,ht=Ye.k;ht.length?Me=new Ke(Ue,Ee,ke):Me=new Be(Ue,Ee,ke)}else ke===5?Me=new Le(Ue,Ee):ke===6?Me=new et(Ue,Ee):ke===7&&(Me=new st(Ue,Ee));return Me.k&&Ue.addDynamicProperty(Me),Me}function dt(){return Be}function ot(){return Ke}var ut={};return ut.getShapeProp=nt,ut.getConstructorFunction=dt,ut.getKeyframedConstructorFunction=ot,ut})(),Cr=(function(){var M=Math.cos,_=Math.sin,K=Math.tan,oe=Math.round;function se(){return this.props[0]=1,this.props[1]=0,this.props[2]=0,this.props[3]=0,this.props[4]=0,this.props[5]=1,this.props[6]=0,this.props[7]=0,this.props[8]=0,this.props[9]=0,this.props[10]=1,this.props[11]=0,this.props[12]=0,this.props[13]=0,this.props[14]=0,this.props[15]=1,this}function re(ge){if(ge===0)return this;var Ve=M(ge),ft=_(ge);return this._t(Ve,-ft,0,0,ft,Ve,0,0,0,0,1,0,0,0,0,1)}function ve(ge){if(ge===0)return this;var Ve=M(ge),ft=_(ge);return this._t(1,0,0,0,0,Ve,-ft,0,0,ft,Ve,0,0,0,0,1)}function Be(ge){if(ge===0)return this;var Ve=M(ge),ft=_(ge);return this._t(Ve,0,ft,0,0,1,0,0,-ft,0,Ve,0,0,0,0,1)}function we(ge){if(ge===0)return this;var Ve=M(ge),ft=_(ge);return this._t(Ve,-ft,0,0,ft,Ve,0,0,0,0,1,0,0,0,0,1)}function Ke(ge,Ve){return this._t(1,Ve,ge,1,0,0)}function et(ge,Ve){return this.shear(K(ge),K(Ve))}function st(ge,Ve){var ft=M(Ve),ct=_(Ve);return this._t(ft,ct,0,0,-ct,ft,0,0,0,0,1,0,0,0,0,1)._t(1,0,0,0,K(ge),1,0,0,0,0,1,0,0,0,0,1)._t(ft,-ct,0,0,ct,ft,0,0,0,0,1,0,0,0,0,1)}function Le(ge,Ve,ft){return!ft&&ft!==0&&(ft=1),ge===1&&Ve===1&&ft===1?this:this._t(ge,0,0,0,0,Ve,0,0,0,0,ft,0,0,0,0,1)}function nt(ge,Ve,ft,ct,Xo,fo,Wi,xi,Zn,ma,Al,Hp,$l,as,fd,Er){return this.props[0]=ge,this.props[1]=Ve,this.props[2]=ft,this.props[3]=ct,this.props[4]=Xo,this.props[5]=fo,this.props[6]=Wi,this.props[7]=xi,this.props[8]=Zn,this.props[9]=ma,this.props[10]=Al,this.props[11]=Hp,this.props[12]=$l,this.props[13]=as,this.props[14]=fd,this.props[15]=Er,this}function dt(ge,Ve,ft){return ft=ft||0,ge!==0||Ve!==0||ft!==0?this._t(1,0,0,0,0,1,0,0,0,0,1,0,ge,Ve,ft,1):this}function ot(ge,Ve,ft,ct,Xo,fo,Wi,xi,Zn,ma,Al,Hp,$l,as,fd,Er){var wo=this.props;if(ge===1&&Ve===0&&ft===0&&ct===0&&Xo===0&&fo===1&&Wi===0&&xi===0&&Zn===0&&ma===0&&Al===1&&Hp===0)return wo[12]=wo[12]*ge+wo[15]*$l,wo[13]=wo[13]*fo+wo[15]*as,wo[14]=wo[14]*Al+wo[15]*fd,wo[15]*=Er,this._identityCalculated=!1,this;var wh=wo[0],X2=wo[1],bh=wo[2],_p=wo[3],vh=wo[4],Ch=wo[5],kl=wo[6],e0=wo[7],t0=wo[8],o1=wo[9],o0=wo[10],i1=wo[11],Tg=wo[12],vv=wo[13],Cv=wo[14],Av=wo[15];return wo[0]=wh*ge+X2*Xo+bh*Zn+_p*$l,wo[1]=wh*Ve+X2*fo+bh*ma+_p*as,wo[2]=wh*ft+X2*Wi+bh*Al+_p*fd,wo[3]=wh*ct+X2*xi+bh*Hp+_p*Er,wo[4]=vh*ge+Ch*Xo+kl*Zn+e0*$l,wo[5]=vh*Ve+Ch*fo+kl*ma+e0*as,wo[6]=vh*ft+Ch*Wi+kl*Al+e0*fd,wo[7]=vh*ct+Ch*xi+kl*Hp+e0*Er,wo[8]=t0*ge+o1*Xo+o0*Zn+i1*$l,wo[9]=t0*Ve+o1*fo+o0*ma+i1*as,wo[10]=t0*ft+o1*Wi+o0*Al+i1*fd,wo[11]=t0*ct+o1*xi+o0*Hp+i1*Er,wo[12]=Tg*ge+vv*Xo+Cv*Zn+Av*$l,wo[13]=Tg*Ve+vv*fo+Cv*ma+Av*as,wo[14]=Tg*ft+vv*Wi+Cv*Al+Av*fd,wo[15]=Tg*ct+vv*xi+Cv*Hp+Av*Er,this._identityCalculated=!1,this}function ut(ge){var Ve=ge.props;return this.transform(Ve[0],Ve[1],Ve[2],Ve[3],Ve[4],Ve[5],Ve[6],Ve[7],Ve[8],Ve[9],Ve[10],Ve[11],Ve[12],Ve[13],Ve[14],Ve[15])}function Ue(){return this._identityCalculated||(this._identity=!(this.props[0]!==1||this.props[1]!==0||this.props[2]!==0||this.props[3]!==0||this.props[4]!==0||this.props[5]!==1||this.props[6]!==0||this.props[7]!==0||this.props[8]!==0||this.props[9]!==0||this.props[10]!==1||this.props[11]!==0||this.props[12]!==0||this.props[13]!==0||this.props[14]!==0||this.props[15]!==1),this._identityCalculated=!0),this._identity}function Ee(ge){for(var Ve=0;Ve<16;){if(ge.props[Ve]!==this.props[Ve])return!1;Ve+=1}return!0}function ke(ge){var Ve;for(Ve=0;Ve<16;Ve+=1)ge.props[Ve]=this.props[Ve];return ge}function Me(ge){var Ve;for(Ve=0;Ve<16;Ve+=1)this.props[Ve]=ge[Ve]}function Ye(ge,Ve,ft){return{x:ge*this.props[0]+Ve*this.props[4]+ft*this.props[8]+this.props[12],y:ge*this.props[1]+Ve*this.props[5]+ft*this.props[9]+this.props[13],z:ge*this.props[2]+Ve*this.props[6]+ft*this.props[10]+this.props[14]}}function ht(ge,Ve,ft){return ge*this.props[0]+Ve*this.props[4]+ft*this.props[8]+this.props[12]}function $t(ge,Ve,ft){return ge*this.props[1]+Ve*this.props[5]+ft*this.props[9]+this.props[13]}function kt(ge,Ve,ft){return ge*this.props[2]+Ve*this.props[6]+ft*this.props[10]+this.props[14]}function Zt(){var ge=this.props[0]*this.props[5]-this.props[1]*this.props[4],Ve=this.props[5]/ge,ft=-this.props[1]/ge,ct=-this.props[4]/ge,Xo=this.props[0]/ge,fo=(this.props[4]*this.props[13]-this.props[5]*this.props[12])/ge,Wi=-(this.props[0]*this.props[13]-this.props[1]*this.props[12])/ge,xi=new Cr;return xi.props[0]=Ve,xi.props[1]=ft,xi.props[4]=ct,xi.props[5]=Xo,xi.props[12]=fo,xi.props[13]=Wi,xi}function Lo(ge){var Ve=this.getInverseMatrix();return Ve.applyToPointArray(ge[0],ge[1],ge[2]||0)}function bo(ge){var Ve,ft=ge.length,ct=[];for(Ve=0;Ve<ft;Ve+=1)ct[Ve]=Lo(ge[Ve]);return ct}function co(ge,Ve,ft){var ct=y("float32",6);if(this.isIdentity())ct[0]=ge[0],ct[1]=ge[1],ct[2]=Ve[0],ct[3]=Ve[1],ct[4]=ft[0],ct[5]=ft[1];else{var Xo=this.props[0],fo=this.props[1],Wi=this.props[4],xi=this.props[5],Zn=this.props[12],ma=this.props[13];ct[0]=ge[0]*Xo+ge[1]*Wi+Zn,ct[1]=ge[0]*fo+ge[1]*xi+ma,ct[2]=Ve[0]*Xo+Ve[1]*Wi+Zn,ct[3]=Ve[0]*fo+Ve[1]*xi+ma,ct[4]=ft[0]*Xo+ft[1]*Wi+Zn,ct[5]=ft[0]*fo+ft[1]*xi+ma}return ct}function jo(ge,Ve,ft){var ct;return this.isIdentity()?ct=[ge,Ve,ft]:ct=[ge*this.props[0]+Ve*this.props[4]+ft*this.props[8]+this.props[12],ge*this.props[1]+Ve*this.props[5]+ft*this.props[9]+this.props[13],ge*this.props[2]+Ve*this.props[6]+ft*this.props[10]+this.props[14]],ct}function Mt(ge,Ve){if(this.isIdentity())return ge+","+Ve;var ft=this.props;return Math.round((ge*ft[0]+Ve*ft[4]+ft[12])*100)/100+","+Math.round((ge*ft[1]+Ve*ft[5]+ft[13])*100)/100}function Ut(){for(var ge=0,Ve=this.props,ft="matrix3d(",ct=1e4;ge<16;)ft+=oe(Ve[ge]*ct)/ct,ft+=ge===15?")":",",ge+=1;return ft}function Te(ge){var Ve=1e4;return ge<1e-6&&ge>0||ge>-1e-6&&ge<0?oe(ge*Ve)/Ve:ge}function We(){var ge=this.props,Ve=Te(ge[0]),ft=Te(ge[1]),ct=Te(ge[4]),Xo=Te(ge[5]),fo=Te(ge[12]),Wi=Te(ge[13]);return"matrix("+Ve+","+ft+","+ct+","+Xo+","+fo+","+Wi+")"}return function(){this.reset=se,this.rotate=re,this.rotateX=ve,this.rotateY=Be,this.rotateZ=we,this.skew=et,this.skewFromAxis=st,this.shear=Ke,this.scale=Le,this.setTransform=nt,this.translate=dt,this.transform=ot,this.multiply=ut,this.applyToPoint=Ye,this.applyToX=ht,this.applyToY=$t,this.applyToZ=kt,this.applyToPointArray=jo,this.applyToTriplePoints=co,this.applyToPointStringified=Mt,this.toCSS=Ut,this.to2dCSS=We,this.clone=ke,this.cloneFromProps=Me,this.equals=Ee,this.inversePoints=bo,this.inversePoint=Lo,this.getInverseMatrix=Zt,this._t=this.transform,this.isIdentity=Ue,this._identity=!0,this._identityCalculated=!1,this.props=y("float32",16),this.reset()}})();function vn(M){"@babel/helpers - typeof";return vn=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(_){return typeof _}:function(_){return _&&typeof Symbol=="function"&&_.constructor===Symbol&&_!==Symbol.prototype?"symbol":typeof _},vn(M)}var qo={};function _o(M){p(M)}function eo(){tt.searchAnimations()}function un(M){ee(M)}function Hr(M){pe(M)}function Kr(M){return tt.loadAnimation(M)}function qd(M){if(typeof M=="string")switch(M){case"high":me(200);break;default:case"medium":me(50);break;case"low":me(10);break}else!isNaN(M)&&M>1&&me(M)}function to(){return typeof navigator<"u"}function $s(M,_){M==="expressions"&&ne(_)}function jg(M){switch(M){case"propertyFactory":return jt;case"shapePropertyFactory":return on;case"matrix":return Cr;default:return null}}qo.play=tt.play,qo.pause=tt.pause,qo.setLocationHref=_o,qo.togglePause=tt.togglePause,qo.setSpeed=tt.setSpeed,qo.setDirection=tt.setDirection,qo.stop=tt.stop,qo.searchAnimations=eo,qo.registerAnimation=tt.registerAnimation,qo.loadAnimation=Kr,qo.setSubframeRendering=un,qo.resize=tt.resize,qo.goToAndStop=tt.goToAndStop,qo.destroy=tt.destroy,qo.setQuality=qd,qo.inBrowser=to,qo.installPlugin=$s,qo.freeze=tt.freeze,qo.unfreeze=tt.unfreeze,qo.setVolume=tt.setVolume,qo.mute=tt.mute,qo.unmute=tt.unmute,qo.getRegisteredAnimations=tt.getRegisteredAnimations,qo.useWebWorker=d,qo.setIDPrefix=Hr,qo.__getFactory=jg,qo.version="5.13.0";function gh(){document.readyState==="complete"&&(clearInterval(wB),eo())}function xB(M){for(var _=pv.split("&"),K=0;K<_.length;K+=1){var oe=_[K].split("=");if(decodeURIComponent(oe[0])==M)return decodeURIComponent(oe[1])}return null}var pv="";{var D8=document.getElementsByTagName("script"),yB=D8.length-1,uv=D8[yB]||{src:""};pv=uv.src?uv.src.replace(/^[^\?]+\??/,""):"",xB("renderer")}var wB=setInterval(gh,100);try{vn(t)!=="object"&&(window.bodymovin=qo)}catch{}var Op=(function(){var M={},_={};M.registerModifier=K,M.getModifier=oe;function K(se,re){_[se]||(_[se]=re)}function oe(se,re,ve){return new _[se](re,ve)}return M})();function ks(){}ks.prototype.initModifierProperties=function(){},ks.prototype.addShapeToModifier=function(){},ks.prototype.addShape=function(M){if(!this.closed){M.sh.container.addDynamicProperty(M.sh);var _={shape:M.sh,data:M,localShapeCollection:or.newShapeCollection()};this.shapes.push(_),this.addShapeToModifier(_),this._isAnimated&&M.setAsAnimated()}},ks.prototype.init=function(M,_){this.shapes=[],this.elem=M,this.initDynamicPropertyContainer(M),this.initModifierProperties(M,_),this.frameId=l,this.closed=!1,this.k=!1,this.dynamicProperties.length?this.k=!0:this.getValue(!0)},ks.prototype.processKeys=function(){this.elem.globalData.frameId!==this.frameId&&(this.frameId=this.elem.globalData.frameId,this.iterateDynamicProperties())},m([oi],ks);function gd(){}m([ks],gd),gd.prototype.initModifierProperties=function(M,_){this.s=jt.getProp(M,_.s,0,.01,this),this.e=jt.getProp(M,_.e,0,.01,this),this.o=jt.getProp(M,_.o,0,0,this),this.sValue=0,this.eValue=0,this.getValue=this.processKeys,this.m=_.m,this._isAnimated=!!this.s.effectsSequence.length||!!this.e.effectsSequence.length||!!this.o.effectsSequence.length},gd.prototype.addShapeToModifier=function(M){M.pathsData=[]},gd.prototype.calculateShapeEdges=function(M,_,K,oe,se){var re=[];_<=1?re.push({s:M,e:_}):M>=1?re.push({s:M-1,e:_-1}):(re.push({s:M,e:1}),re.push({s:0,e:_-1}));var ve=[],Be,we=re.length,Ke;for(Be=0;Be<we;Be+=1)if(Ke=re[Be],!(Ke.e*se<oe||Ke.s*se>oe+K)){var et,st;Ke.s*se<=oe?et=0:et=(Ke.s*se-oe)/K,Ke.e*se>=oe+K?st=1:st=(Ke.e*se-oe)/K,ve.push([et,st])}return ve.length||ve.push([0,0]),ve},gd.prototype.releasePathsData=function(M){var _,K=M.length;for(_=0;_<K;_+=1)Oe.release(M[_]);return M.length=0,M},gd.prototype.processShapes=function(M){var _,K;if(this._mdf||M){var oe=this.o.v%360/360;if(oe<0&&(oe+=1),this.s.v>1?_=1+oe:this.s.v<0?_=0+oe:_=this.s.v+oe,this.e.v>1?K=1+oe:this.e.v<0?K=0+oe:K=this.e.v+oe,_>K){var se=_;_=K,K=se}_=Math.round(_*1e4)*1e-4,K=Math.round(K*1e4)*1e-4,this.sValue=_,this.eValue=K}else _=this.sValue,K=this.eValue;var re,ve,Be=this.shapes.length,we,Ke,et,st,Le,nt=0;if(K===_)for(ve=0;ve<Be;ve+=1)this.shapes[ve].localShapeCollection.releaseShapes(),this.shapes[ve].shape._mdf=!0,this.shapes[ve].shape.paths=this.shapes[ve].localShapeCollection,this._mdf&&(this.shapes[ve].pathsData.length=0);else if(K===1&&_===0||K===0&&_===1){if(this._mdf)for(ve=0;ve<Be;ve+=1)this.shapes[ve].pathsData.length=0,this.shapes[ve].shape._mdf=!0}else{var dt=[],ot,ut;for(ve=0;ve<Be;ve+=1)if(ot=this.shapes[ve],!ot.shape._mdf&&!this._mdf&&!M&&this.m!==2)ot.shape.paths=ot.localShapeCollection;else{if(re=ot.shape.paths,Ke=re._length,Le=0,!ot.shape._mdf&&ot.pathsData.length)Le=ot.totalShapeLength;else{for(et=this.releasePathsData(ot.pathsData),we=0;we<Ke;we+=1)st=Ne.getSegmentsLength(re.shapes[we]),et.push(st),Le+=st.totalLength;ot.totalShapeLength=Le,ot.pathsData=et}nt+=Le,ot.shape._mdf=!0}var Ue=_,Ee=K,ke=0,Me;for(ve=Be-1;ve>=0;ve-=1)if(ot=this.shapes[ve],ot.shape._mdf){for(ut=ot.localShapeCollection,ut.releaseShapes(),this.m===2&&Be>1?(Me=this.calculateShapeEdges(_,K,ot.totalShapeLength,ke,nt),ke+=ot.totalShapeLength):Me=[[Ue,Ee]],Ke=Me.length,we=0;we<Ke;we+=1){Ue=Me[we][0],Ee=Me[we][1],dt.length=0,Ee<=1?dt.push({s:ot.totalShapeLength*Ue,e:ot.totalShapeLength*Ee}):Ue>=1?dt.push({s:ot.totalShapeLength*(Ue-1),e:ot.totalShapeLength*(Ee-1)}):(dt.push({s:ot.totalShapeLength*Ue,e:ot.totalShapeLength}),dt.push({s:0,e:ot.totalShapeLength*(Ee-1)}));var Ye=this.addShapes(ot,dt[0]);if(dt[0].s!==dt[0].e){if(dt.length>1){var ht=ot.shape.paths.shapes[ot.shape.paths._length-1];if(ht.c){var $t=Ye.pop();this.addPaths(Ye,ut),Ye=this.addShapes(ot,dt[1],$t)}else this.addPaths(Ye,ut),Ye=this.addShapes(ot,dt[1])}this.addPaths(Ye,ut)}}ot.shape.paths=ut}}},gd.prototype.addPaths=function(M,_){var K,oe=M.length;for(K=0;K<oe;K+=1)_.addShape(M[K])},gd.prototype.addSegment=function(M,_,K,oe,se,re,ve){se.setXYAt(_[0],_[1],"o",re),se.setXYAt(K[0],K[1],"i",re+1),ve&&se.setXYAt(M[0],M[1],"v",re),se.setXYAt(oe[0],oe[1],"v",re+1)},gd.prototype.addSegmentFromArray=function(M,_,K,oe){_.setXYAt(M[1],M[5],"o",K),_.setXYAt(M[2],M[6],"i",K+1),oe&&_.setXYAt(M[0],M[4],"v",K),_.setXYAt(M[3],M[7],"v",K+1)},gd.prototype.addShapes=function(M,_,K){var oe=M.pathsData,se=M.shape.paths.shapes,re,ve=M.shape.paths._length,Be,we,Ke=0,et,st,Le,nt,dt=[],ot,ut=!0;for(K?(st=K._length,ot=K._length):(K=lo.newElement(),st=0,ot=0),dt.push(K),re=0;re<ve;re+=1){for(Le=oe[re].lengths,K.c=se[re].c,we=se[re].c?Le.length:Le.length+1,Be=1;Be<we;Be+=1)if(et=Le[Be-1],Ke+et.addedLength<_.s)Ke+=et.addedLength,K.c=!1;else if(Ke>_.e){K.c=!1;break}else _.s<=Ke&&_.e>=Ke+et.addedLength?(this.addSegment(se[re].v[Be-1],se[re].o[Be-1],se[re].i[Be],se[re].v[Be],K,st,ut),ut=!1):(nt=Ne.getNewSegment(se[re].v[Be-1],se[re].v[Be],se[re].o[Be-1],se[re].i[Be],(_.s-Ke)/et.addedLength,(_.e-Ke)/et.addedLength,Le[Be-1]),this.addSegmentFromArray(nt,K,st,ut),ut=!1,K.c=!1),Ke+=et.addedLength,st+=1;if(se[re].c&&Le.length){if(et=Le[Be-1],Ke<=_.e){var Ue=Le[Be-1].addedLength;_.s<=Ke&&_.e>=Ke+Ue?(this.addSegment(se[re].v[Be-1],se[re].o[Be-1],se[re].i[0],se[re].v[0],K,st,ut),ut=!1):(nt=Ne.getNewSegment(se[re].v[Be-1],se[re].v[0],se[re].o[Be-1],se[re].i[0],(_.s-Ke)/Ue,(_.e-Ke)/Ue,Le[Be-1]),this.addSegmentFromArray(nt,K,st,ut),ut=!1,K.c=!1)}else K.c=!1;Ke+=et.addedLength,st+=1}if(K._length&&(K.setXYAt(K.v[ot][0],K.v[ot][1],"i",ot),K.setXYAt(K.v[K._length-1][0],K.v[K._length-1][1],"o",K._length-1)),Ke>_.e)break;re<ve-1&&(K=lo.newElement(),ut=!0,dt.push(K),st=0)}return dt};function Np(){}m([ks],Np),Np.prototype.initModifierProperties=function(M,_){this.getValue=this.processKeys,this.amount=jt.getProp(M,_.a,0,null,this),this._isAnimated=!!this.amount.effectsSequence.length},Np.prototype.processPath=function(M,_){var K=_/100,oe=[0,0],se=M._length,re=0;for(re=0;re<se;re+=1)oe[0]+=M.v[re][0],oe[1]+=M.v[re][1];oe[0]/=se,oe[1]/=se;var ve=lo.newElement();ve.c=M.c;var Be,we,Ke,et,st,Le;for(re=0;re<se;re+=1)Be=M.v[re][0]+(oe[0]-M.v[re][0])*K,we=M.v[re][1]+(oe[1]-M.v[re][1])*K,Ke=M.o[re][0]+(oe[0]-M.o[re][0])*-K,et=M.o[re][1]+(oe[1]-M.o[re][1])*-K,st=M.i[re][0]+(oe[0]-M.i[re][0])*-K,Le=M.i[re][1]+(oe[1]-M.i[re][1])*-K,ve.setTripleAt(Be,we,Ke,et,st,Le,re);return ve},Np.prototype.processShapes=function(M){var _,K,oe=this.shapes.length,se,re,ve=this.amount.v;if(ve!==0){var Be,we;for(K=0;K<oe;K+=1){if(Be=this.shapes[K],we=Be.localShapeCollection,!(!Be.shape._mdf&&!this._mdf&&!M))for(we.releaseShapes(),Be.shape._mdf=!0,_=Be.shape.paths.shapes,re=Be.shape.paths._length,se=0;se<re;se+=1)we.addShape(this.processPath(_[se],ve));Be.shape.paths=Be.localShapeCollection}}this.dynamicProperties.length||(this._mdf=!1)};var jf=(function(){var M=[0,0];function _(we){var Ke=this._mdf;this.iterateDynamicProperties(),this._mdf=this._mdf||Ke,this.a&&we.translate(-this.a.v[0],-this.a.v[1],this.a.v[2]),this.s&&we.scale(this.s.v[0],this.s.v[1],this.s.v[2]),this.sk&&we.skewFromAxis(-this.sk.v,this.sa.v),this.r?we.rotate(-this.r.v):we.rotateZ(-this.rz.v).rotateY(this.ry.v).rotateX(this.rx.v).rotateZ(-this.or.v[2]).rotateY(this.or.v[1]).rotateX(this.or.v[0]),this.data.p.s?this.data.p.z?we.translate(this.px.v,this.py.v,-this.pz.v):we.translate(this.px.v,this.py.v,0):we.translate(this.p.v[0],this.p.v[1],-this.p.v[2])}function K(we){if(this.elem.globalData.frameId!==this.frameId){if(this._isDirty&&(this.precalculateMatrix(),this._isDirty=!1),this.iterateDynamicProperties(),this._mdf||we){var Ke;if(this.v.cloneFromProps(this.pre.props),this.appliedTransformations<1&&this.v.translate(-this.a.v[0],-this.a.v[1],this.a.v[2]),this.appliedTransformations<2&&this.v.scale(this.s.v[0],this.s.v[1],this.s.v[2]),this.sk&&this.appliedTransformations<3&&this.v.skewFromAxis(-this.sk.v,this.sa.v),this.r&&this.appliedTransformations<4?this.v.rotate(-this.r.v):!this.r&&this.appliedTransformations<4&&this.v.rotateZ(-this.rz.v).rotateY(this.ry.v).rotateX(this.rx.v).rotateZ(-this.or.v[2]).rotateY(this.or.v[1]).rotateX(this.or.v[0]),this.autoOriented){var et,st;if(Ke=this.elem.globalData.frameRate,this.p&&this.p.keyframes&&this.p.getValueAtTime)this.p._caching.lastFrame+this.p.offsetTime<=this.p.keyframes[0].t?(et=this.p.getValueAtTime((this.p.keyframes[0].t+.01)/Ke,0),st=this.p.getValueAtTime(this.p.keyframes[0].t/Ke,0)):this.p._caching.lastFrame+this.p.offsetTime>=this.p.keyframes[this.p.keyframes.length-1].t?(et=this.p.getValueAtTime(this.p.keyframes[this.p.keyframes.length-1].t/Ke,0),st=this.p.getValueAtTime((this.p.keyframes[this.p.keyframes.length-1].t-.05)/Ke,0)):(et=this.p.pv,st=this.p.getValueAtTime((this.p._caching.lastFrame+this.p.offsetTime-.01)/Ke,this.p.offsetTime));else if(this.px&&this.px.keyframes&&this.py.keyframes&&this.px.getValueAtTime&&this.py.getValueAtTime){et=[],st=[];var Le=this.px,nt=this.py;Le._caching.lastFrame+Le.offsetTime<=Le.keyframes[0].t?(et[0]=Le.getValueAtTime((Le.keyframes[0].t+.01)/Ke,0),et[1]=nt.getValueAtTime((nt.keyframes[0].t+.01)/Ke,0),st[0]=Le.getValueAtTime(Le.keyframes[0].t/Ke,0),st[1]=nt.getValueAtTime(nt.keyframes[0].t/Ke,0)):Le._caching.lastFrame+Le.offsetTime>=Le.keyframes[Le.keyframes.length-1].t?(et[0]=Le.getValueAtTime(Le.keyframes[Le.keyframes.length-1].t/Ke,0),et[1]=nt.getValueAtTime(nt.keyframes[nt.keyframes.length-1].t/Ke,0),st[0]=Le.getValueAtTime((Le.keyframes[Le.keyframes.length-1].t-.01)/Ke,0),st[1]=nt.getValueAtTime((nt.keyframes[nt.keyframes.length-1].t-.01)/Ke,0)):(et=[Le.pv,nt.pv],st[0]=Le.getValueAtTime((Le._caching.lastFrame+Le.offsetTime-.01)/Ke,Le.offsetTime),st[1]=nt.getValueAtTime((nt._caching.lastFrame+nt.offsetTime-.01)/Ke,nt.offsetTime))}else st=M,et=st;this.v.rotate(-Math.atan2(et[1]-st[1],et[0]-st[0]))}this.data.p&&this.data.p.s?this.data.p.z?this.v.translate(this.px.v,this.py.v,-this.pz.v):this.v.translate(this.px.v,this.py.v,0):this.v.translate(this.p.v[0],this.p.v[1],-this.p.v[2])}this.frameId=this.elem.globalData.frameId}}function oe(){if(this.appliedTransformations=0,this.pre.reset(),!this.a.effectsSequence.length)this.pre.translate(-this.a.v[0],-this.a.v[1],this.a.v[2]),this.appliedTransformations=1;else return;if(!this.s.effectsSequence.length)this.pre.scale(this.s.v[0],this.s.v[1],this.s.v[2]),this.appliedTransformations=2;else return;if(this.sk)if(!this.sk.effectsSequence.length&&!this.sa.effectsSequence.length)this.pre.skewFromAxis(-this.sk.v,this.sa.v),this.appliedTransformations=3;else return;this.r?this.r.effectsSequence.length||(this.pre.rotate(-this.r.v),this.appliedTransformations=4):!this.rz.effectsSequence.length&&!this.ry.effectsSequence.length&&!this.rx.effectsSequence.length&&!this.or.effectsSequence.length&&(this.pre.rotateZ(-this.rz.v).rotateY(this.ry.v).rotateX(this.rx.v).rotateZ(-this.or.v[2]).rotateY(this.or.v[1]).rotateX(this.or.v[0]),this.appliedTransformations=4)}function se(){}function re(we){this._addDynamicProperty(we),this.elem.addDynamicProperty(we),this._isDirty=!0}function ve(we,Ke,et){if(this.elem=we,this.frameId=-1,this.propType="transform",this.data=Ke,this.v=new Cr,this.pre=new Cr,this.appliedTransformations=0,this.initDynamicPropertyContainer(et||we),Ke.p&&Ke.p.s?(this.px=jt.getProp(we,Ke.p.x,0,0,this),this.py=jt.getProp(we,Ke.p.y,0,0,this),Ke.p.z&&(this.pz=jt.getProp(we,Ke.p.z,0,0,this))):this.p=jt.getProp(we,Ke.p||{k:[0,0,0]},1,0,this),Ke.rx){if(this.rx=jt.getProp(we,Ke.rx,0,B,this),this.ry=jt.getProp(we,Ke.ry,0,B,this),this.rz=jt.getProp(we,Ke.rz,0,B,this),Ke.or.k[0].ti){var st,Le=Ke.or.k.length;for(st=0;st<Le;st+=1)Ke.or.k[st].to=null,Ke.or.k[st].ti=null}this.or=jt.getProp(we,Ke.or,1,B,this),this.or.sh=!0}else this.r=jt.getProp(we,Ke.r||{k:0},0,B,this);Ke.sk&&(this.sk=jt.getProp(we,Ke.sk,0,B,this),this.sa=jt.getProp(we,Ke.sa,0,B,this)),this.a=jt.getProp(we,Ke.a||{k:[0,0,0]},1,0,this),this.s=jt.getProp(we,Ke.s||{k:[100,100,100]},1,.01,this),Ke.o?this.o=jt.getProp(we,Ke.o,0,.01,we):this.o={_mdf:!1,v:1},this._isDirty=!0,this.dynamicProperties.length||this.getValue(!0)}ve.prototype={applyToMatrix:_,getValue:K,precalculateMatrix:oe,autoOrient:se},m([oi],ve),ve.prototype.addDynamicProperty=re,ve.prototype._addDynamicProperty=oi.prototype.addDynamicProperty;function Be(we,Ke,et){return new ve(we,Ke,et)}return{getTransformProperty:Be}})();function Zd(){}m([ks],Zd),Zd.prototype.initModifierProperties=function(M,_){this.getValue=this.processKeys,this.c=jt.getProp(M,_.c,0,null,this),this.o=jt.getProp(M,_.o,0,null,this),this.tr=jf.getTransformProperty(M,_.tr,this),this.so=jt.getProp(M,_.tr.so,0,.01,this),this.eo=jt.getProp(M,_.tr.eo,0,.01,this),this.data=_,this.dynamicProperties.length||this.getValue(!0),this._isAnimated=!!this.dynamicProperties.length,this.pMatrix=new Cr,this.rMatrix=new Cr,this.sMatrix=new Cr,this.tMatrix=new Cr,this.matrix=new Cr},Zd.prototype.applyTransforms=function(M,_,K,oe,se,re){var ve=re?-1:1,Be=oe.s.v[0]+(1-oe.s.v[0])*(1-se),we=oe.s.v[1]+(1-oe.s.v[1])*(1-se);M.translate(oe.p.v[0]*ve*se,oe.p.v[1]*ve*se,oe.p.v[2]),_.translate(-oe.a.v[0],-oe.a.v[1],oe.a.v[2]),_.rotate(-oe.r.v*ve*se),_.translate(oe.a.v[0],oe.a.v[1],oe.a.v[2]),K.translate(-oe.a.v[0],-oe.a.v[1],oe.a.v[2]),K.scale(re?1/Be:Be,re?1/we:we),K.translate(oe.a.v[0],oe.a.v[1],oe.a.v[2])},Zd.prototype.init=function(M,_,K,oe){for(this.elem=M,this.arr=_,this.pos=K,this.elemsData=oe,this._currentCopies=0,this._elements=[],this._groups=[],this.frameId=-1,this.initDynamicPropertyContainer(M),this.initModifierProperties(M,_[K]);K>0;)K-=1,this._elements.unshift(_[K]);this.dynamicProperties.length?this.k=!0:this.getValue(!0)},Zd.prototype.resetElements=function(M){var _,K=M.length;for(_=0;_<K;_+=1)M[_]._processed=!1,M[_].ty==="gr"&&this.resetElements(M[_].it)},Zd.prototype.cloneElements=function(M){var _=JSON.parse(JSON.stringify(M));return this.resetElements(_),_},Zd.prototype.changeGroupRender=function(M,_){var K,oe=M.length;for(K=0;K<oe;K+=1)M[K]._render=_,M[K].ty==="gr"&&this.changeGroupRender(M[K].it,_)},Zd.prototype.processShapes=function(M){var _,K,oe,se,re,ve=!1;if(this._mdf||M){var Be=Math.ceil(this.c.v);if(this._groups.length<Be){for(;this._groups.length<Be;){var we={it:this.cloneElements(this._elements),ty:"gr"};we.it.push({a:{a:0,ix:1,k:[0,0]},nm:"Transform",o:{a:0,ix:7,k:100},p:{a:0,ix:2,k:[0,0]},r:{a:1,ix:6,k:[{s:0,e:0,t:0},{s:0,e:0,t:1}]},s:{a:0,ix:3,k:[100,100]},sa:{a:0,ix:5,k:0},sk:{a:0,ix:4,k:0},ty:"tr"}),this.arr.splice(0,0,we),this._groups.splice(0,0,we),this._currentCopies+=1}this.elem.reloadShapes(),ve=!0}re=0;var Ke;for(oe=0;oe<=this._groups.length-1;oe+=1){if(Ke=re<Be,this._groups[oe]._render=Ke,this.changeGroupRender(this._groups[oe].it,Ke),!Ke){var et=this.elemsData[oe].it,st=et[et.length-1];st.transform.op.v!==0?(st.transform.op._mdf=!0,st.transform.op.v=0):st.transform.op._mdf=!1}re+=1}this._currentCopies=Be;var Le=this.o.v,nt=Le%1,dt=Le>0?Math.floor(Le):Math.ceil(Le),ot=this.pMatrix.props,ut=this.rMatrix.props,Ue=this.sMatrix.props;this.pMatrix.reset(),this.rMatrix.reset(),this.sMatrix.reset(),this.tMatrix.reset(),this.matrix.reset();var Ee=0;if(Le>0){for(;Ee<dt;)this.applyTransforms(this.pMatrix,this.rMatrix,this.sMatrix,this.tr,1,!1),Ee+=1;nt&&(this.applyTransforms(this.pMatrix,this.rMatrix,this.sMatrix,this.tr,nt,!1),Ee+=nt)}else if(Le<0){for(;Ee>dt;)this.applyTransforms(this.pMatrix,this.rMatrix,this.sMatrix,this.tr,1,!0),Ee-=1;nt&&(this.applyTransforms(this.pMatrix,this.rMatrix,this.sMatrix,this.tr,-nt,!0),Ee-=nt)}oe=this.data.m===1?0:this._currentCopies-1,se=this.data.m===1?1:-1,re=this._currentCopies;for(var ke,Me;re;){if(_=this.elemsData[oe].it,K=_[_.length-1].transform.mProps.v.props,Me=K.length,_[_.length-1].transform.mProps._mdf=!0,_[_.length-1].transform.op._mdf=!0,_[_.length-1].transform.op.v=this._currentCopies===1?this.so.v:this.so.v+(this.eo.v-this.so.v)*(oe/(this._currentCopies-1)),Ee!==0){for((oe!==0&&se===1||oe!==this._currentCopies-1&&se===-1)&&this.applyTransforms(this.pMatrix,this.rMatrix,this.sMatrix,this.tr,1,!1),this.matrix.transform(ut[0],ut[1],ut[2],ut[3],ut[4],ut[5],ut[6],ut[7],ut[8],ut[9],ut[10],ut[11],ut[12],ut[13],ut[14],ut[15]),this.matrix.transform(Ue[0],Ue[1],Ue[2],Ue[3],Ue[4],Ue[5],Ue[6],Ue[7],Ue[8],Ue[9],Ue[10],Ue[11],Ue[12],Ue[13],Ue[14],Ue[15]),this.matrix.transform(ot[0],ot[1],ot[2],ot[3],ot[4],ot[5],ot[6],ot[7],ot[8],ot[9],ot[10],ot[11],ot[12],ot[13],ot[14],ot[15]),ke=0;ke<Me;ke+=1)K[ke]=this.matrix.props[ke];this.matrix.reset()}else for(this.matrix.reset(),ke=0;ke<Me;ke+=1)K[ke]=this.matrix.props[ke];Ee+=1,re-=1,oe+=se}}else for(re=this._currentCopies,oe=0,se=1;re;)_=this.elemsData[oe].it,K=_[_.length-1].transform.mProps.v.props,_[_.length-1].transform.mProps._mdf=!1,_[_.length-1].transform.op._mdf=!1,re-=1,oe+=se;return ve},Zd.prototype.addShape=function(){};function W2(){}m([ks],W2),W2.prototype.initModifierProperties=function(M,_){this.getValue=this.processKeys,this.rd=jt.getProp(M,_.r,0,null,this),this._isAnimated=!!this.rd.effectsSequence.length},W2.prototype.processPath=function(M,_){var K=lo.newElement();K.c=M.c;var oe,se=M._length,re,ve,Be,we,Ke,et,st=0,Le,nt,dt,ot,ut,Ue;for(oe=0;oe<se;oe+=1)re=M.v[oe],Be=M.o[oe],ve=M.i[oe],re[0]===Be[0]&&re[1]===Be[1]&&re[0]===ve[0]&&re[1]===ve[1]?(oe===0||oe===se-1)&&!M.c?(K.setTripleAt(re[0],re[1],Be[0],Be[1],ve[0],ve[1],st),st+=1):(oe===0?we=M.v[se-1]:we=M.v[oe-1],Ke=Math.sqrt(Math.pow(re[0]-we[0],2)+Math.pow(re[1]-we[1],2)),et=Ke?Math.min(Ke/2,_)/Ke:0,ut=re[0]+(we[0]-re[0])*et,Le=ut,Ue=re[1]-(re[1]-we[1])*et,nt=Ue,dt=Le-(Le-re[0])*D,ot=nt-(nt-re[1])*D,K.setTripleAt(Le,nt,dt,ot,ut,Ue,st),st+=1,oe===se-1?we=M.v[0]:we=M.v[oe+1],Ke=Math.sqrt(Math.pow(re[0]-we[0],2)+Math.pow(re[1]-we[1],2)),et=Ke?Math.min(Ke/2,_)/Ke:0,dt=re[0]+(we[0]-re[0])*et,Le=dt,ot=re[1]+(we[1]-re[1])*et,nt=ot,ut=Le-(Le-re[0])*D,Ue=nt-(nt-re[1])*D,K.setTripleAt(Le,nt,dt,ot,ut,Ue,st),st+=1):(K.setTripleAt(M.v[oe][0],M.v[oe][1],M.o[oe][0],M.o[oe][1],M.i[oe][0],M.i[oe][1],st),st+=1);return K},W2.prototype.processShapes=function(M){var _,K,oe=this.shapes.length,se,re,ve=this.rd.v;if(ve!==0){var Be,we;for(K=0;K<oe;K+=1){if(Be=this.shapes[K],we=Be.localShapeCollection,!(!Be.shape._mdf&&!this._mdf&&!M))for(we.releaseShapes(),Be.shape._mdf=!0,_=Be.shape.paths.shapes,re=Be.shape.paths._length,se=0;se<re;se+=1)we.addShape(this.processPath(_[se],ve));Be.shape.paths=Be.localShapeCollection}}this.dynamicProperties.length||(this._mdf=!1)};function Mg(M,_){return Math.abs(M-_)*1e5<=Math.min(Math.abs(M),Math.abs(_))}function P8(M){return Math.abs(M)<=1e-5}function Mf(M,_,K){return M*(1-K)+_*K}function t1(M,_,K){return[Mf(M[0],_[0],K),Mf(M[1],_[1],K)]}function bB(M,_,K){if(M===0)return[];var oe=_*_-4*M*K;if(oe<0)return[];var se=-_/(2*M);if(oe===0)return[se];var re=Math.sqrt(oe)/(2*M);return[se-re,se+re]}function T8(M,_,K,oe){return[-M+3*_-3*K+oe,3*M-6*_+3*K,-3*M+3*_,M]}function hv(M){return new rn(M,M,M,M,!1)}function rn(M,_,K,oe,se){se&&pi(M,_)&&(_=t1(M,oe,1/3)),se&&pi(K,oe)&&(K=t1(M,oe,2/3));var re=T8(M[0],_[0],K[0],oe[0]),ve=T8(M[1],_[1],K[1],oe[1]);this.a=[re[0],ve[0]],this.b=[re[1],ve[1]],this.c=[re[2],ve[2]],this.d=[re[3],ve[3]],this.points=[M,_,K,oe]}rn.prototype.point=function(M){return[((this.a[0]*M+this.b[0])*M+this.c[0])*M+this.d[0],((this.a[1]*M+this.b[1])*M+this.c[1])*M+this.d[1]]},rn.prototype.derivative=function(M){return[(3*M*this.a[0]+2*this.b[0])*M+this.c[0],(3*M*this.a[1]+2*this.b[1])*M+this.c[1]]},rn.prototype.tangentAngle=function(M){var _=this.derivative(M);return Math.atan2(_[1],_[0])},rn.prototype.normalAngle=function(M){var _=this.derivative(M);return Math.atan2(_[0],_[1])},rn.prototype.inflectionPoints=function(){var M=this.a[1]*this.b[0]-this.a[0]*this.b[1];if(P8(M))return[];var _=-.5*(this.a[1]*this.c[0]-this.a[0]*this.c[1])/M,K=_*_-1/3*(this.b[1]*this.c[0]-this.b[0]*this.c[1])/M;if(K<0)return[];var oe=Math.sqrt(K);return P8(oe)?oe>0&&oe<1?[_]:[]:[_-oe,_+oe].filter(function(se){return se>0&&se<1})},rn.prototype.split=function(M){if(M<=0)return[hv(this.points[0]),this];if(M>=1)return[this,hv(this.points[this.points.length-1])];var _=t1(this.points[0],this.points[1],M),K=t1(this.points[1],this.points[2],M),oe=t1(this.points[2],this.points[3],M),se=t1(_,K,M),re=t1(K,oe,M),ve=t1(se,re,M);return[new rn(this.points[0],_,se,ve,!0),new rn(ve,re,oe,this.points[3],!0)]};function mv(M,_){var K=M.points[0][_],oe=M.points[M.points.length-1][_];if(K>oe){var se=oe;oe=K,K=se}for(var re=bB(3*M.a[_],2*M.b[_],M.c[_]),ve=0;ve<re.length;ve+=1)if(re[ve]>0&&re[ve]<1){var Be=M.point(re[ve])[_];Be<K?K=Be:Be>oe&&(oe=Be)}return{min:K,max:oe}}rn.prototype.bounds=function(){return{x:mv(this,0),y:mv(this,1)}},rn.prototype.boundingBox=function(){var M=this.bounds();return{left:M.x.min,right:M.x.max,top:M.y.min,bottom:M.y.max,width:M.x.max-M.x.min,height:M.y.max-M.y.min,cx:(M.x.max+M.x.min)/2,cy:(M.y.max+M.y.min)/2}};function G2(M,_,K){var oe=M.boundingBox();return{cx:oe.cx,cy:oe.cy,width:oe.width,height:oe.height,bez:M,t:(_+K)/2,t1:_,t2:K}}function gv(M){var _=M.bez.split(.5);return[G2(_[0],M.t1,M.t),G2(_[1],M.t,M.t2)]}function fv(M,_){return Math.abs(M.cx-_.cx)*2<M.width+_.width&&Math.abs(M.cy-_.cy)*2<M.height+_.height}function Y2(M,_,K,oe,se,re){if(fv(M,_)){if(K>=re||M.width<=oe&&M.height<=oe&&_.width<=oe&&_.height<=oe){se.push([M.t,_.t]);return}var ve=gv(M),Be=gv(_);Y2(ve[0],Be[0],K+1,oe,se,re),Y2(ve[0],Be[1],K+1,oe,se,re),Y2(ve[1],Be[0],K+1,oe,se,re),Y2(ve[1],Be[1],K+1,oe,se,re)}}rn.prototype.intersections=function(M,_,K){_===void 0&&(_=2),K===void 0&&(K=7);var oe=[];return Y2(G2(this,0,1),G2(M,0,1),0,_,oe,K),oe},rn.shapeSegment=function(M,_){var K=(_+1)%M.length();return new rn(M.v[_],M.o[_],M.i[K],M.v[K],!0)},rn.shapeSegmentInverted=function(M,_){var K=(_+1)%M.length();return new rn(M.v[K],M.i[K],M.o[_],M.v[_],!0)};function Ct(M,_){return[M[1]*_[2]-M[2]*_[1],M[2]*_[0]-M[0]*_[2],M[0]*_[1]-M[1]*_[0]]}function zt(M,_,K,oe){var se=[M[0],M[1],1],re=[_[0],_[1],1],ve=[K[0],K[1],1],Be=[oe[0],oe[1],1],we=Ct(Ct(se,re),Ct(ve,Be));return P8(we[2])?null:[we[0]/we[2],we[1]/we[2]]}function vo(M,_,K){return[M[0]+Math.cos(_)*K,M[1]-Math.sin(_)*K]}function fi(M,_){return Math.hypot(M[0]-_[0],M[1]-_[1])}function pi(M,_){return Mg(M[0],_[0])&&Mg(M[1],_[1])}function Cn(){}m([ks],Cn),Cn.prototype.initModifierProperties=function(M,_){this.getValue=this.processKeys,this.amplitude=jt.getProp(M,_.s,0,null,this),this.frequency=jt.getProp(M,_.r,0,null,this),this.pointsType=jt.getProp(M,_.pt,0,null,this),this._isAnimated=this.amplitude.effectsSequence.length!==0||this.frequency.effectsSequence.length!==0||this.pointsType.effectsSequence.length!==0};function xv(M,_,K,oe,se,re,ve){var Be=K-Math.PI/2,we=K+Math.PI/2,Ke=_[0]+Math.cos(K)*oe*se,et=_[1]-Math.sin(K)*oe*se;M.setTripleAt(Ke,et,Ke+Math.cos(Be)*re,et-Math.sin(Be)*re,Ke+Math.cos(we)*ve,et-Math.sin(we)*ve,M.length())}function fh(M,_){var K=[_[0]-M[0],_[1]-M[1]],oe=-Math.PI*.5,se=[Math.cos(oe)*K[0]-Math.sin(oe)*K[1],Math.sin(oe)*K[0]+Math.cos(oe)*K[1]];return se}function yv(M,_){var K=_===0?M.length()-1:_-1,oe=(_+1)%M.length(),se=M.v[K],re=M.v[oe],ve=fh(se,re);return Math.atan2(0,1)-Math.atan2(ve[1],ve[0])}function xX(M,_,K,oe,se,re,ve){var Be=yv(_,K),we=_.v[K%_._length],Ke=_.v[K===0?_._length-1:K-1],et=_.v[(K+1)%_._length],st=re===2?Math.sqrt(Math.pow(we[0]-Ke[0],2)+Math.pow(we[1]-Ke[1],2)):0,Le=re===2?Math.sqrt(Math.pow(we[0]-et[0],2)+Math.pow(we[1]-et[1],2)):0;xv(M,_.v[K%_._length],Be,ve,oe,Le/((se+1)*2),st/((se+1)*2))}function eWe(M,_,K,oe,se,re){for(var ve=0;ve<oe;ve+=1){var Be=(ve+1)/(oe+1),we=se===2?Math.sqrt(Math.pow(_.points[3][0]-_.points[0][0],2)+Math.pow(_.points[3][1]-_.points[0][1],2)):0,Ke=_.normalAngle(Be),et=_.point(Be);xv(M,et,Ke,re,K,we/((oe+1)*2),we/((oe+1)*2)),re=-re}return re}Cn.prototype.processPath=function(M,_,K,oe){var se=M._length,re=lo.newElement();if(re.c=M.c,M.c||(se-=1),se===0)return re;var ve=-1,Be=rn.shapeSegment(M,0);xX(re,M,0,_,K,oe,ve);for(var we=0;we<se;we+=1)ve=eWe(re,Be,_,K,oe,-ve),we===se-1&&!M.c?Be=null:Be=rn.shapeSegment(M,(we+1)%se),xX(re,M,we+1,_,K,oe,ve);return re},Cn.prototype.processShapes=function(M){var _,K,oe=this.shapes.length,se,re,ve=this.amplitude.v,Be=Math.max(0,Math.round(this.frequency.v)),we=this.pointsType.v;if(ve!==0){var Ke,et;for(K=0;K<oe;K+=1){if(Ke=this.shapes[K],et=Ke.localShapeCollection,!(!Ke.shape._mdf&&!this._mdf&&!M))for(et.releaseShapes(),Ke.shape._mdf=!0,_=Ke.shape.paths.shapes,re=Ke.shape.paths._length,se=0;se<re;se+=1)et.addShape(this.processPath(_[se],ve,Be,we));Ke.shape.paths=Ke.localShapeCollection}}this.dynamicProperties.length||(this._mdf=!1)};function vB(M,_,K){var oe=Math.atan2(_[0]-M[0],_[1]-M[1]);return[vo(M,oe,K),vo(_,oe,K)]}function Bf(M,_){var K,oe,se,re,ve,Be,we;we=vB(M.points[0],M.points[1],_),K=we[0],oe=we[1],we=vB(M.points[1],M.points[2],_),se=we[0],re=we[1],we=vB(M.points[2],M.points[3],_),ve=we[0],Be=we[1];var Ke=zt(K,oe,se,re);Ke===null&&(Ke=oe);var et=zt(ve,Be,se,re);return et===null&&(et=ve),new rn(K,Ke,et,Be)}function yX(M,_,K,oe,se){var re=_.points[3],ve=K.points[0];if(oe===3||pi(re,ve))return re;if(oe===2){var Be=-_.tangentAngle(1),we=-K.tangentAngle(0)+Math.PI,Ke=zt(re,vo(re,Be+Math.PI/2,100),ve,vo(ve,Be+Math.PI/2,100)),et=Ke?fi(Ke,re):fi(re,ve)/2,st=vo(re,Be,2*et*D);return M.setXYAt(st[0],st[1],"o",M.length()-1),st=vo(ve,we,2*et*D),M.setTripleAt(ve[0],ve[1],ve[0],ve[1],st[0],st[1],M.length()),ve}var Le=pi(re,_.points[2])?_.points[0]:_.points[2],nt=pi(ve,K.points[1])?K.points[3]:K.points[1],dt=zt(Le,re,ve,nt);return dt&&fi(dt,re)<se?(M.setTripleAt(dt[0],dt[1],dt[0],dt[1],dt[0],dt[1],M.length()),dt):re}function wX(M,_){var K=M.intersections(_);return K.length&&Mg(K[0][0],1)&&K.shift(),K.length?K[0]:null}function bX(M,_){var K=M.slice(),oe=_.slice(),se=wX(M[M.length-1],_[0]);return se&&(K[M.length-1]=M[M.length-1].split(se[0])[0],oe[0]=_[0].split(se[1])[1]),M.length>1&&_.length>1&&(se=wX(M[0],_[_.length-1]),se)?[[M[0].split(se[0])[0]],[_[_.length-1].split(se[1])[1]]]:[K,oe]}function tWe(M){for(var _,K=1;K<M.length;K+=1)_=bX(M[K-1],M[K]),M[K-1]=_[0],M[K]=_[1];return M.length>1&&(_=bX(M[M.length-1],M[0]),M[M.length-1]=_[0],M[0]=_[1]),M}function vX(M,_){var K=M.inflectionPoints(),oe,se,re,ve;if(K.length===0)return[Bf(M,_)];if(K.length===1||Mg(K[1],1))return re=M.split(K[0]),oe=re[0],se=re[1],[Bf(oe,_),Bf(se,_)];re=M.split(K[0]),oe=re[0];var Be=(K[1]-K[0])/(1-K[0]);return re=re[1].split(Be),ve=re[0],se=re[1],[Bf(oe,_),Bf(ve,_),Bf(se,_)]}function z8(){}m([ks],z8),z8.prototype.initModifierProperties=function(M,_){this.getValue=this.processKeys,this.amount=jt.getProp(M,_.a,0,null,this),this.miterLimit=jt.getProp(M,_.ml,0,null,this),this.lineJoin=_.lj,this._isAnimated=this.amount.effectsSequence.length!==0},z8.prototype.processPath=function(M,_,K,oe){var se=lo.newElement();se.c=M.c;var re=M.length();M.c||(re-=1);var ve,Be,we,Ke=[];for(ve=0;ve<re;ve+=1)we=rn.shapeSegment(M,ve),Ke.push(vX(we,_));if(!M.c)for(ve=re-1;ve>=0;ve-=1)we=rn.shapeSegmentInverted(M,ve),Ke.push(vX(we,_));Ke=tWe(Ke);var et=null,st=null;for(ve=0;ve<Ke.length;ve+=1){var Le=Ke[ve];for(st&&(et=yX(se,st,Le[0],K,oe)),st=Le[Le.length-1],Be=0;Be<Le.length;Be+=1)we=Le[Be],et&&pi(we.points[0],et)?se.setXYAt(we.points[1][0],we.points[1][1],"o",se.length()-1):se.setTripleAt(we.points[0][0],we.points[0][1],we.points[1][0],we.points[1][1],we.points[0][0],we.points[0][1],se.length()),se.setTripleAt(we.points[3][0],we.points[3][1],we.points[3][0],we.points[3][1],we.points[2][0],we.points[2][1],se.length()),et=we.points[3]}return Ke.length&&yX(se,st,Ke[0][0],K,oe),se},z8.prototype.processShapes=function(M){var _,K,oe=this.shapes.length,se,re,ve=this.amount.v,Be=this.miterLimit.v,we=this.lineJoin;if(ve!==0){var Ke,et;for(K=0;K<oe;K+=1){if(Ke=this.shapes[K],et=Ke.localShapeCollection,!(!Ke.shape._mdf&&!this._mdf&&!M))for(et.releaseShapes(),Ke.shape._mdf=!0,_=Ke.shape.paths.shapes,re=Ke.shape.paths._length,se=0;se<re;se+=1)et.addShape(this.processPath(_[se],ve,we,Be));Ke.shape.paths=Ke.localShapeCollection}}this.dynamicProperties.length||(this._mdf=!1)};function CX(M){for(var _=M.fStyle?M.fStyle.split(" "):[],K="normal",oe="normal",se=_.length,re,ve=0;ve<se;ve+=1)switch(re=_[ve].toLowerCase(),re){case"italic":oe="italic";break;case"bold":K="700";break;case"black":K="900";break;case"medium":K="500";break;case"regular":case"normal":K="400";break;case"light":case"thin":K="200";break}return{style:oe,weight:M.fWeight||K}}var Bg=(function(){var M=5e3,_={w:0,size:0,shapes:[],data:{shapes:[]}},K=[];K=K.concat([2304,2305,2306,2307,2362,2363,2364,2364,2366,2367,2368,2369,2370,2371,2372,2373,2374,2375,2376,2377,2378,2379,2380,2381,2382,2383,2387,2388,2389,2390,2391,2402,2403]);var oe=127988,se=917631,re=917601,ve=917626,Be=65039,we=8205,Ke=127462,et=127487,st=["d83cdffb","d83cdffc","d83cdffd","d83cdffe","d83cdfff"];function Le(Te){var We=Te.split(","),ge,Ve=We.length,ft=[];for(ge=0;ge<Ve;ge+=1)We[ge]!=="sans-serif"&&We[ge]!=="monospace"&&ft.push(We[ge]);return ft.join(",")}function nt(Te,We){var ge=h("span");ge.setAttribute("aria-hidden",!0),ge.style.fontFamily=We;var Ve=h("span");Ve.innerText="giItT1WQy@!-/#",ge.style.position="absolute",ge.style.left="-10000px",ge.style.top="-10000px",ge.style.fontSize="300px",ge.style.fontVariant="normal",ge.style.fontStyle="normal",ge.style.fontWeight="normal",ge.style.letterSpacing="0",ge.appendChild(Ve),document.body.appendChild(ge);var ft=Ve.offsetWidth;return Ve.style.fontFamily=Le(Te)+", "+We,{node:Ve,w:ft,parent:ge}}function dt(){var Te,We=this.fonts.length,ge,Ve,ft=We;for(Te=0;Te<We;Te+=1)this.fonts[Te].loaded?ft-=1:this.fonts[Te].fOrigin==="n"||this.fonts[Te].origin===0?this.fonts[Te].loaded=!0:(ge=this.fonts[Te].monoCase.node,Ve=this.fonts[Te].monoCase.w,ge.offsetWidth!==Ve?(ft-=1,this.fonts[Te].loaded=!0):(ge=this.fonts[Te].sansCase.node,Ve=this.fonts[Te].sansCase.w,ge.offsetWidth!==Ve&&(ft-=1,this.fonts[Te].loaded=!0)),this.fonts[Te].loaded&&(this.fonts[Te].sansCase.parent.parentNode.removeChild(this.fonts[Te].sansCase.parent),this.fonts[Te].monoCase.parent.parentNode.removeChild(this.fonts[Te].monoCase.parent)));ft!==0&&Date.now()-this.initTime<M?setTimeout(this.checkLoadedFontsBinded,20):setTimeout(this.setIsLoadedBinded,10)}function ot(Te,We){var ge=document.body&&We?"svg":"canvas",Ve,ft=CX(Te);if(ge==="svg"){var ct=xe("text");ct.style.fontSize="100px",ct.setAttribute("font-family",Te.fFamily),ct.setAttribute("font-style",ft.style),ct.setAttribute("font-weight",ft.weight),ct.textContent="1",Te.fClass?(ct.style.fontFamily="inherit",ct.setAttribute("class",Te.fClass)):ct.style.fontFamily=Te.fFamily,We.appendChild(ct),Ve=ct}else{var Xo=new OffscreenCanvas(500,500).getContext("2d");Xo.font=ft.style+" "+ft.weight+" 100px "+Te.fFamily,Ve=Xo}function fo(Wi){return ge==="svg"?(Ve.textContent=Wi,Ve.getComputedTextLength()):Ve.measureText(Wi).width}return{measureText:fo}}function ut(Te,We){if(!Te){this.isLoaded=!0;return}if(this.chars){this.isLoaded=!0,this.fonts=Te.list;return}if(!document.body){this.isLoaded=!0,Te.list.forEach(function(Al){Al.helper=ot(Al),Al.cache={}}),this.fonts=Te.list;return}var ge=Te.list,Ve,ft=ge.length,ct=ft;for(Ve=0;Ve<ft;Ve+=1){var Xo=!0,fo,Wi;if(ge[Ve].loaded=!1,ge[Ve].monoCase=nt(ge[Ve].fFamily,"monospace"),ge[Ve].sansCase=nt(ge[Ve].fFamily,"sans-serif"),!ge[Ve].fPath)ge[Ve].loaded=!0,ct-=1;else if(ge[Ve].fOrigin==="p"||ge[Ve].origin===3){if(fo=document.querySelectorAll('style[f-forigin="p"][f-family="'+ge[Ve].fFamily+'"], style[f-origin="3"][f-family="'+ge[Ve].fFamily+'"]'),fo.length>0&&(Xo=!1),Xo){var xi=h("style");xi.setAttribute("f-forigin",ge[Ve].fOrigin),xi.setAttribute("f-origin",ge[Ve].origin),xi.setAttribute("f-family",ge[Ve].fFamily),xi.type="text/css",xi.innerText="@font-face {font-family: "+ge[Ve].fFamily+"; font-style: normal; src: url('"+ge[Ve].fPath+"');}",We.appendChild(xi)}}else if(ge[Ve].fOrigin==="g"||ge[Ve].origin===1){for(fo=document.querySelectorAll('link[f-forigin="g"], link[f-origin="1"]'),Wi=0;Wi<fo.length;Wi+=1)fo[Wi].href.indexOf(ge[Ve].fPath)!==-1&&(Xo=!1);if(Xo){var Zn=h("link");Zn.setAttribute("f-forigin",ge[Ve].fOrigin),Zn.setAttribute("f-origin",ge[Ve].origin),Zn.type="text/css",Zn.rel="stylesheet",Zn.href=ge[Ve].fPath,document.body.appendChild(Zn)}}else if(ge[Ve].fOrigin==="t"||ge[Ve].origin===2){for(fo=document.querySelectorAll('script[f-forigin="t"], script[f-origin="2"]'),Wi=0;Wi<fo.length;Wi+=1)ge[Ve].fPath===fo[Wi].src&&(Xo=!1);if(Xo){var ma=h("link");ma.setAttribute("f-forigin",ge[Ve].fOrigin),ma.setAttribute("f-origin",ge[Ve].origin),ma.setAttribute("rel","stylesheet"),ma.setAttribute("href",ge[Ve].fPath),We.appendChild(ma)}}ge[Ve].helper=ot(ge[Ve],We),ge[Ve].cache={},this.fonts.push(ge[Ve])}ct===0?this.isLoaded=!0:setTimeout(this.checkLoadedFonts.bind(this),100)}function Ue(Te){if(Te){this.chars||(this.chars=[]);var We,ge=Te.length,Ve,ft=this.chars.length,ct;for(We=0;We<ge;We+=1){for(Ve=0,ct=!1;Ve<ft;)this.chars[Ve].style===Te[We].style&&this.chars[Ve].fFamily===Te[We].fFamily&&this.chars[Ve].ch===Te[We].ch&&(ct=!0),Ve+=1;ct||(this.chars.push(Te[We]),ft+=1)}}}function Ee(Te,We,ge){for(var Ve=0,ft=this.chars.length;Ve<ft;){if(this.chars[Ve].ch===Te&&this.chars[Ve].style===We&&this.chars[Ve].fFamily===ge)return this.chars[Ve];Ve+=1}return(typeof Te=="string"&&Te.charCodeAt(0)!==13||!Te)&&console&&console.warn&&!this._warned&&(this._warned=!0,console.warn("Missing character from exported characters list: ",Te,We,ge)),_}function ke(Te,We,ge){var Ve=this.getFontByName(We),ft=Te;if(!Ve.cache[ft]){var ct=Ve.helper;if(Te===" "){var Xo=ct.measureText("|"+Te+"|"),fo=ct.measureText("||");Ve.cache[ft]=(Xo-fo)/100}else Ve.cache[ft]=ct.measureText(Te)/100}return Ve.cache[ft]*ge}function Me(Te){for(var We=0,ge=this.fonts.length;We<ge;){if(this.fonts[We].fName===Te)return this.fonts[We];We+=1}return this.fonts[0]}function Ye(Te){var We=0,ge=Te.charCodeAt(0);if(ge>=55296&&ge<=56319){var Ve=Te.charCodeAt(1);Ve>=56320&&Ve<=57343&&(We=(ge-55296)*1024+Ve-56320+65536)}return We}function ht(Te,We){var ge=Te.toString(16)+We.toString(16);return st.indexOf(ge)!==-1}function $t(Te){return Te===we}function kt(Te){return Te===Be}function Zt(Te){var We=Ye(Te);return We>=Ke&&We<=et}function Lo(Te){return Zt(Te.substr(0,2))&&Zt(Te.substr(2,2))}function bo(Te){return K.indexOf(Te)!==-1}function co(Te,We){var ge=Ye(Te.substr(We,2));if(ge!==oe)return!1;var Ve=0;for(We+=2;Ve<5;){if(ge=Ye(Te.substr(We,2)),ge<re||ge>ve)return!1;Ve+=1,We+=2}return Ye(Te.substr(We,2))===se}function jo(){this.isLoaded=!0}var Mt=function(){this.fonts=[],this.chars=null,this.typekitLoaded=0,this.isLoaded=!1,this._warned=!1,this.initTime=Date.now(),this.setIsLoadedBinded=this.setIsLoaded.bind(this),this.checkLoadedFontsBinded=this.checkLoadedFonts.bind(this)};Mt.isModifier=ht,Mt.isZeroWidthJoiner=$t,Mt.isFlagEmoji=Lo,Mt.isRegionalCode=Zt,Mt.isCombinedCharacter=bo,Mt.isRegionalFlag=co,Mt.isVariationSelector=kt,Mt.BLACK_FLAG_CODE_POINT=oe;var Ut={addChars:Ue,addFonts:ut,getCharData:Ee,getFontByName:Me,measureText:ke,checkLoadedFonts:dt,setIsLoaded:jo};return Mt.prototype=Ut,Mt})();function AX(M){this.animationData=M}AX.prototype.getProp=function(M){return this.animationData.slots&&this.animationData.slots[M.sid]?Object.assign(M,this.animationData.slots[M.sid].p):M};function oWe(M){return new AX(M)}function wv(){}wv.prototype={initRenderable:function(){this.isInRange=!1,this.hidden=!1,this.isTransparent=!1,this.renderableComponents=[]},addRenderableComponent:function(M){this.renderableComponents.indexOf(M)===-1&&this.renderableComponents.push(M)},removeRenderableComponent:function(M){this.renderableComponents.indexOf(M)!==-1&&this.renderableComponents.splice(this.renderableComponents.indexOf(M),1)},prepareRenderableFrame:function(M){this.checkLayerLimits(M)},checkTransparency:function(){this.finalTransform.mProp.o.v<=0?!this.isTransparent&&this.globalData.renderConfig.hideOnTransparent&&(this.isTransparent=!0,this.hide()):this.isTransparent&&(this.isTransparent=!1,this.show())},checkLayerLimits:function(M){this.data.ip-this.data.st<=M&&this.data.op-this.data.st>M?this.isInRange!==!0&&(this.globalData._mdf=!0,this._mdf=!0,this.isInRange=!0,this.show()):this.isInRange!==!1&&(this.globalData._mdf=!0,this.isInRange=!1,this.hide())},renderRenderable:function(){var M,_=this.renderableComponents.length;for(M=0;M<_;M+=1)this.renderableComponents[M].renderFrame(this._isFirstFrame)},sourceRectAtTime:function(){return{top:0,left:0,width:100,height:100}},getLayerSize:function(){return this.data.ty===5?{w:this.data.textData.width,h:this.data.textData.height}:{w:this.data.width,h:this.data.height}}};var CB=(function(){var M={0:"source-over",1:"multiply",2:"screen",3:"overlay",4:"darken",5:"lighten",6:"color-dodge",7:"color-burn",8:"hard-light",9:"soft-light",10:"difference",11:"exclusion",12:"hue",13:"saturation",14:"color",15:"luminosity"};return function(_){return M[_]||""}})();function iWe(M,_,K){this.p=jt.getProp(_,M.v,0,0,K)}function rWe(M,_,K){this.p=jt.getProp(_,M.v,0,0,K)}function nWe(M,_,K){this.p=jt.getProp(_,M.v,1,0,K)}function aWe(M,_,K){this.p=jt.getProp(_,M.v,1,0,K)}function sWe(M,_,K){this.p=jt.getProp(_,M.v,0,0,K)}function lWe(M,_,K){this.p=jt.getProp(_,M.v,0,0,K)}function dWe(M,_,K){this.p=jt.getProp(_,M.v,0,0,K)}function cWe(){this.p={}}function $X(M,_){var K=M.ef||[];this.effectElements=[];var oe,se=K.length,re;for(oe=0;oe<se;oe+=1)re=new F8(K[oe],_),this.effectElements.push(re)}function F8(M,_){this.init(M,_)}m([oi],F8),F8.prototype.getValue=F8.prototype.iterateDynamicProperties,F8.prototype.init=function(M,_){this.data=M,this.effectElements=[],this.initDynamicPropertyContainer(_);var K,oe=this.data.ef.length,se,re=this.data.ef;for(K=0;K<oe;K+=1){switch(se=null,re[K].ty){case 0:se=new iWe(re[K],_,this);break;case 1:se=new rWe(re[K],_,this);break;case 2:se=new nWe(re[K],_,this);break;case 3:se=new aWe(re[K],_,this);break;case 4:case 7:se=new dWe(re[K],_,this);break;case 10:se=new sWe(re[K],_,this);break;case 11:se=new lWe(re[K],_,this);break;case 5:se=new $X(re[K],_);break;default:se=new cWe(re[K]);break}se&&this.effectElements.push(se)}};function K2(){}K2.prototype={checkMasks:function(){if(!this.data.hasMask)return!1;for(var M=0,_=this.data.masksProperties.length;M<_;){if(this.data.masksProperties[M].mode!=="n"&&this.data.masksProperties[M].cl!==!1)return!0;M+=1}return!1},initExpressions:function(){},setBlendMode:function(){var M=CB(this.data.bm),_=this.baseElement||this.layerElement;_.style["mix-blend-mode"]=M},initBaseData:function(M,_,K){this.globalData=_,this.comp=K,this.data=M,this.layerId=O(),this.data.sr||(this.data.sr=1),this.effectsManager=new $X(this.data,this,this.dynamicProperties)},getType:function(){return this.type},sourceRectAtTime:function(){}};function q2(){}q2.prototype={initFrame:function(){this._isFirstFrame=!1,this.dynamicProperties=[],this._mdf=!1},prepareProperties:function(M,_){var K,oe=this.dynamicProperties.length;for(K=0;K<oe;K+=1)(_||this._isParent&&this.dynamicProperties[K].propType==="transform")&&(this.dynamicProperties[K].getValue(),this.dynamicProperties[K]._mdf&&(this.globalData._mdf=!0,this._mdf=!0))},addDynamicProperty:function(M){this.dynamicProperties.indexOf(M)===-1&&this.dynamicProperties.push(M)}};function Z2(M,_,K){this.initFrame(),this.initRenderable(),this.assetData=_.getAssetData(M.refId),this.footageData=_.imageLoader.getAsset(this.assetData),this.initBaseData(M,_,K)}Z2.prototype.prepareFrame=function(){},m([wv,K2,q2],Z2),Z2.prototype.getBaseElement=function(){return null},Z2.prototype.renderFrame=function(){},Z2.prototype.destroy=function(){},Z2.prototype.initExpressions=function(){},Z2.prototype.getFootageData=function(){return this.footageData};function Cl(M,_,K){this.initFrame(),this.initRenderable(),this.assetData=_.getAssetData(M.refId),this.initBaseData(M,_,K),this._isPlaying=!1,this._canPlay=!1;var oe=this.globalData.getAssetsPath(this.assetData);this.audio=this.globalData.audioController.createAudio(oe),this._currentTime=0,this.globalData.audioController.addAudio(this),this._volumeMultiplier=1,this._volume=1,this._previousVolume=null,this.tm=M.tm?jt.getProp(this,M.tm,0,_.frameRate,this):{_placeholder:!0},this.lv=jt.getProp(this,M.au&&M.au.lv?M.au.lv:{k:[100]},1,.01,this)}Cl.prototype.prepareFrame=function(M){if(this.prepareRenderableFrame(M,!0),this.prepareProperties(M,!0),this.tm._placeholder)this._currentTime=M/this.data.sr;else{var _=this.tm.v;this._currentTime=_}this._volume=this.lv.v[0];var K=this._volume*this._volumeMultiplier;this._previousVolume!==K&&(this._previousVolume=K,this.audio.volume(K))},m([wv,K2,q2],Cl),Cl.prototype.renderFrame=function(){this.isInRange&&this._canPlay&&(this._isPlaying?(!this.audio.playing()||Math.abs(this._currentTime/this.globalData.frameRate-this.audio.seek())>.1)&&this.audio.seek(this._currentTime/this.globalData.frameRate):(this.audio.play(),this.audio.seek(this._currentTime/this.globalData.frameRate),this._isPlaying=!0))},Cl.prototype.show=function(){},Cl.prototype.hide=function(){this.audio.pause(),this._isPlaying=!1},Cl.prototype.pause=function(){this.audio.pause(),this._isPlaying=!1,this._canPlay=!1},Cl.prototype.resume=function(){this._canPlay=!0},Cl.prototype.setRate=function(M){this.audio.rate(M)},Cl.prototype.volume=function(M){this._volumeMultiplier=M,this._previousVolume=M*this._volume,this.audio.volume(this._previousVolume)},Cl.prototype.getBaseElement=function(){return null},Cl.prototype.destroy=function(){},Cl.prototype.sourceRectAtTime=function(){},Cl.prototype.initExpressions=function(){};function Ss(){}Ss.prototype.checkLayers=function(M){var _,K=this.layers.length,oe;for(this.completeLayers=!0,_=K-1;_>=0;_-=1)this.elements[_]||(oe=this.layers[_],oe.ip-oe.st<=M-this.layers[_].st&&oe.op-oe.st>M-this.layers[_].st&&this.buildItem(_)),this.completeLayers=this.elements[_]?this.completeLayers:!1;this.checkPendingElements()},Ss.prototype.createItem=function(M){switch(M.ty){case 2:return this.createImage(M);case 0:return this.createComp(M);case 1:return this.createSolid(M);case 3:return this.createNull(M);case 4:return this.createShape(M);case 5:return this.createText(M);case 6:return this.createAudio(M);case 13:return this.createCamera(M);case 15:return this.createFootage(M);default:return this.createNull(M)}},Ss.prototype.createCamera=function(){throw new Error("You're using a 3d camera. Try the html renderer.")},Ss.prototype.createAudio=function(M){return new Cl(M,this.globalData,this)},Ss.prototype.createFootage=function(M){return new Z2(M,this.globalData,this)},Ss.prototype.buildAllItems=function(){var M,_=this.layers.length;for(M=0;M<_;M+=1)this.buildItem(M);this.checkPendingElements()},Ss.prototype.includeLayers=function(M){this.completeLayers=!1;var _,K=M.length,oe,se=this.layers.length;for(_=0;_<K;_+=1)for(oe=0;oe<se;){if(this.layers[oe].id===M[_].id){this.layers[oe]=M[_];break}oe+=1}},Ss.prototype.setProjectInterface=function(M){this.globalData.projectInterface=M},Ss.prototype.initItems=function(){this.globalData.progressiveLoad||this.buildAllItems()},Ss.prototype.buildElementParenting=function(M,_,K){for(var oe=this.elements,se=this.layers,re=0,ve=se.length;re<ve;)se[re].ind==_&&(!oe[re]||oe[re]===!0?(this.buildItem(re),this.addPendingElement(M)):(K.push(oe[re]),oe[re].setAsParent(),se[re].parent!==void 0?this.buildElementParenting(M,se[re].parent,K):M.setHierarchy(K))),re+=1},Ss.prototype.addPendingElement=function(M){this.pendingElements.push(M)},Ss.prototype.searchExtraCompositions=function(M){var _,K=M.length;for(_=0;_<K;_+=1)if(M[_].xt){var oe=this.createComp(M[_]);oe.initExpressions(),this.globalData.projectInterface.registerComposition(oe)}},Ss.prototype.getElementById=function(M){var _,K=this.elements.length;for(_=0;_<K;_+=1)if(this.elements[_].data.ind===M)return this.elements[_];return null},Ss.prototype.getElementByPath=function(M){var _=M.shift(),K;if(typeof _=="number")K=this.elements[_];else{var oe,se=this.elements.length;for(oe=0;oe<se;oe+=1)if(this.elements[oe].data.nm===_){K=this.elements[oe];break}}return M.length===0?K:K.getElementByPath(M)},Ss.prototype.setupGlobalData=function(M,_){this.globalData.fontManager=new Bg,this.globalData.slotManager=oWe(M),this.globalData.fontManager.addChars(M.chars),this.globalData.fontManager.addFonts(M.fonts,_),this.globalData.getAssetData=this.animationItem.getAssetData.bind(this.animationItem),this.globalData.getAssetsPath=this.animationItem.getAssetsPath.bind(this.animationItem),this.globalData.imageLoader=this.animationItem.imagePreloader,this.globalData.audioController=this.animationItem.audioController,this.globalData.frameId=0,this.globalData.frameRate=M.fr,this.globalData.nm=M.nm,this.globalData.compSize={w:M.w,h:M.h}};var pWe={TRANSFORM_EFFECT:"transformEFfect"};function Df(){}Df.prototype={initTransform:function(){var M=new Cr;this.finalTransform={mProp:this.data.ks?jf.getTransformProperty(this,this.data.ks,this):{o:0},_matMdf:!1,_localMatMdf:!1,_opMdf:!1,mat:M,localMat:M,localOpacity:1},this.data.ao&&(this.finalTransform.mProp.autoOriented=!0),this.data.ty},renderTransform:function(){if(this.finalTransform._opMdf=this.finalTransform.mProp.o._mdf||this._isFirstFrame,this.finalTransform._matMdf=this.finalTransform.mProp._mdf||this._isFirstFrame,this.hierarchy){var M,_=this.finalTransform.mat,K=0,oe=this.hierarchy.length;if(!this.finalTransform._matMdf)for(;K<oe;){if(this.hierarchy[K].finalTransform.mProp._mdf){this.finalTransform._matMdf=!0;break}K+=1}if(this.finalTransform._matMdf)for(M=this.finalTransform.mProp.v.props,_.cloneFromProps(M),K=0;K<oe;K+=1)_.multiply(this.hierarchy[K].finalTransform.mProp.v)}(!this.localTransforms||this.finalTransform._matMdf)&&(this.finalTransform._localMatMdf=this.finalTransform._matMdf),this.finalTransform._opMdf&&(this.finalTransform.localOpacity=this.finalTransform.mProp.o.v)},renderLocalTransform:function(){if(this.localTransforms){var M=0,_=this.localTransforms.length;if(this.finalTransform._localMatMdf=this.finalTransform._matMdf,!this.finalTransform._localMatMdf||!this.finalTransform._opMdf)for(;M<_;)this.localTransforms[M]._mdf&&(this.finalTransform._localMatMdf=!0),this.localTransforms[M]._opMdf&&!this.finalTransform._opMdf&&(this.finalTransform.localOpacity=this.finalTransform.mProp.o.v,this.finalTransform._opMdf=!0),M+=1;if(this.finalTransform._localMatMdf){var K=this.finalTransform.localMat;for(this.localTransforms[0].matrix.clone(K),M=1;M<_;M+=1){var oe=this.localTransforms[M].matrix;K.multiply(oe)}K.multiply(this.finalTransform.mat)}if(this.finalTransform._opMdf){var se=this.finalTransform.localOpacity;for(M=0;M<_;M+=1)se*=this.localTransforms[M].opacity*.01;this.finalTransform.localOpacity=se}}},searchEffectTransforms:function(){if(this.renderableEffectsManager){var M=this.renderableEffectsManager.getEffects(pWe.TRANSFORM_EFFECT);if(M.length){this.localTransforms=[],this.finalTransform.localMat=new Cr;var _=0,K=M.length;for(_=0;_<K;_+=1)this.localTransforms.push(M[_])}}},globalToLocal:function(M){var _=[];_.push(this.finalTransform);for(var K=!0,oe=this.comp;K;)oe.finalTransform?(oe.data.hasMask&&_.splice(0,0,oe.finalTransform),oe=oe.comp):K=!1;var se,re=_.length,ve;for(se=0;se<re;se+=1)ve=_[se].mat.applyToPointArray(0,0,0),M=[M[0]-ve[0],M[1]-ve[1],0];return M},mHelper:new Cr};function Dg(M,_,K){this.data=M,this.element=_,this.globalData=K,this.storedData=[],this.masksProperties=this.data.masksProperties||[],this.maskElement=null;var oe=this.globalData.defs,se,re=this.masksProperties?this.masksProperties.length:0;this.viewData=w(re),this.solidPath="";var ve,Be=this.masksProperties,we=0,Ke=[],et,st,Le=O(),nt,dt,ot,ut,Ue="clipPath",Ee="clip-path";for(se=0;se<re;se+=1)if((Be[se].mode!=="a"&&Be[se].mode!=="n"||Be[se].inv||Be[se].o.k!==100||Be[se].o.x)&&(Ue="mask",Ee="mask"),(Be[se].mode==="s"||Be[se].mode==="i")&&we===0?(nt=xe("rect"),nt.setAttribute("fill","#ffffff"),nt.setAttribute("width",this.element.comp.data.w||0),nt.setAttribute("height",this.element.comp.data.h||0),Ke.push(nt)):nt=null,ve=xe("path"),Be[se].mode==="n")this.viewData[se]={op:jt.getProp(this.element,Be[se].o,0,.01,this.element),prop:on.getShapeProp(this.element,Be[se],3),elem:ve,lastPath:""},oe.appendChild(ve);else{we+=1,ve.setAttribute("fill",Be[se].mode==="s"?"#000000":"#ffffff"),ve.setAttribute("clip-rule","nonzero");var ke;if(Be[se].x.k!==0?(Ue="mask",Ee="mask",ut=jt.getProp(this.element,Be[se].x,0,null,this.element),ke=O(),dt=xe("filter"),dt.setAttribute("id",ke),ot=xe("feMorphology"),ot.setAttribute("operator","erode"),ot.setAttribute("in","SourceGraphic"),ot.setAttribute("radius","0"),dt.appendChild(ot),oe.appendChild(dt),ve.setAttribute("stroke",Be[se].mode==="s"?"#000000":"#ffffff")):(ot=null,ut=null),this.storedData[se]={elem:ve,x:ut,expan:ot,lastPath:"",lastOperator:"",filterId:ke,lastRadius:0},Be[se].mode==="i"){st=Ke.length;var Me=xe("g");for(et=0;et<st;et+=1)Me.appendChild(Ke[et]);var Ye=xe("mask");Ye.setAttribute("mask-type","alpha"),Ye.setAttribute("id",Le+"_"+we),Ye.appendChild(ve),oe.appendChild(Ye),Me.setAttribute("mask","url("+u()+"#"+Le+"_"+we+")"),Ke.length=0,Ke.push(Me)}else Ke.push(ve);Be[se].inv&&!this.solidPath&&(this.solidPath=this.createLayerSolidPath()),this.viewData[se]={elem:ve,lastPath:"",op:jt.getProp(this.element,Be[se].o,0,.01,this.element),prop:on.getShapeProp(this.element,Be[se],3),invRect:nt},this.viewData[se].prop.k||this.drawPath(Be[se],this.viewData[se].prop.v,this.viewData[se])}for(this.maskElement=xe(Ue),re=Ke.length,se=0;se<re;se+=1)this.maskElement.appendChild(Ke[se]);we>0&&(this.maskElement.setAttribute("id",Le),this.element.maskedElement.setAttribute(Ee,"url("+u()+"#"+Le+")"),oe.appendChild(this.maskElement)),this.viewData.length&&this.element.addRenderableComponent(this)}Dg.prototype.getMaskProperty=function(M){return this.viewData[M].prop},Dg.prototype.renderFrame=function(M){var _=this.element.finalTransform.mat,K,oe=this.masksProperties.length;for(K=0;K<oe;K+=1)if((this.viewData[K].prop._mdf||M)&&this.drawPath(this.masksProperties[K],this.viewData[K].prop.v,this.viewData[K]),(this.viewData[K].op._mdf||M)&&this.viewData[K].elem.setAttribute("fill-opacity",this.viewData[K].op.v),this.masksProperties[K].mode!=="n"&&(this.viewData[K].invRect&&(this.element.finalTransform.mProp._mdf||M)&&this.viewData[K].invRect.setAttribute("transform",_.getInverseMatrix().to2dCSS()),this.storedData[K].x&&(this.storedData[K].x._mdf||M))){var se=this.storedData[K].expan;this.storedData[K].x.v<0?(this.storedData[K].lastOperator!=="erode"&&(this.storedData[K].lastOperator="erode",this.storedData[K].elem.setAttribute("filter","url("+u()+"#"+this.storedData[K].filterId+")")),se.setAttribute("radius",-this.storedData[K].x.v)):(this.storedData[K].lastOperator!=="dilate"&&(this.storedData[K].lastOperator="dilate",this.storedData[K].elem.setAttribute("filter",null)),this.storedData[K].elem.setAttribute("stroke-width",this.storedData[K].x.v*2))}},Dg.prototype.getMaskelement=function(){return this.maskElement},Dg.prototype.createLayerSolidPath=function(){var M="M0,0 ";return M+=" h"+this.globalData.compSize.w,M+=" v"+this.globalData.compSize.h,M+=" h-"+this.globalData.compSize.w,M+=" v-"+this.globalData.compSize.h+" ",M},Dg.prototype.drawPath=function(M,_,K){var oe=" M"+_.v[0][0]+","+_.v[0][1],se,re;for(re=_._length,se=1;se<re;se+=1)oe+=" C"+_.o[se-1][0]+","+_.o[se-1][1]+" "+_.i[se][0]+","+_.i[se][1]+" "+_.v[se][0]+","+_.v[se][1];if(_.c&&re>1&&(oe+=" C"+_.o[se-1][0]+","+_.o[se-1][1]+" "+_.i[0][0]+","+_.i[0][1]+" "+_.v[0][0]+","+_.v[0][1]),K.lastPath!==oe){var ve="";K.elem&&(_.c&&(ve=M.inv?this.solidPath+oe:oe),K.elem.setAttribute("d",ve)),K.lastPath=oe}},Dg.prototype.destroy=function(){this.element=null,this.globalData=null,this.maskElement=null,this.data=null,this.masksProperties=null};var R8=(function(){var M={};M.createFilter=_,M.createAlphaToLuminanceFilter=K;function _(oe,se){var re=xe("filter");return re.setAttribute("id",oe),se!==!0&&(re.setAttribute("filterUnits","objectBoundingBox"),re.setAttribute("x","0%"),re.setAttribute("y","0%"),re.setAttribute("width","100%"),re.setAttribute("height","100%")),re}function K(){var oe=xe("feColorMatrix");return oe.setAttribute("type","matrix"),oe.setAttribute("color-interpolation-filters","sRGB"),oe.setAttribute("values","0 0 0 1 0 0 0 0 1 0 0 0 0 1 0 0 0 0 1 1"),oe}return M})(),kX=(function(){var M={maskType:!0,svgLumaHidden:!0,offscreenCanvas:typeof OffscreenCanvas<"u"};return(/MSIE 10/i.test(navigator.userAgent)||/MSIE 9/i.test(navigator.userAgent)||/rv:11.0/i.test(navigator.userAgent)||/Edge\/\d./i.test(navigator.userAgent))&&(M.maskType=!1),/firefox/i.test(navigator.userAgent)&&(M.svgLumaHidden=!1),M})(),AB={},SX="filter_result_";function $B(M){var _,K="SourceGraphic",oe=M.data.ef?M.data.ef.length:0,se=O(),re=R8.createFilter(se,!0),ve=0;this.filters=[];var Be;for(_=0;_<oe;_+=1){Be=null;var we=M.data.ef[_].ty;if(AB[we]){var Ke=AB[we].effect;Be=new Ke(re,M.effectsManager.effectElements[_],M,SX+ve,K),K=SX+ve,AB[we].countsAsEffect&&(ve+=1)}Be&&this.filters.push(Be)}ve&&(M.globalData.defs.appendChild(re),M.layerElement.setAttribute("filter","url("+u()+"#"+se+")")),this.filters.length&&M.addRenderableComponent(this)}$B.prototype.renderFrame=function(M){var _,K=this.filters.length;for(_=0;_<K;_+=1)this.filters[_].renderFrame(M)},$B.prototype.getEffects=function(M){var _,K=this.filters.length,oe=[];for(_=0;_<K;_+=1)this.filters[_].type===M&&oe.push(this.filters[_]);return oe};function O8(){}O8.prototype={initRendererElement:function(){this.layerElement=xe("g")},createContainerElements:function(){this.matteElement=xe("g"),this.transformedElement=this.layerElement,this.maskedElement=this.layerElement,this._sizeChanged=!1;var M=null;if(this.data.td){this.matteMasks={};var _=xe("g");_.setAttribute("id",this.layerId),_.appendChild(this.layerElement),M=_,this.globalData.defs.appendChild(_)}else this.data.tt?(this.matteElement.appendChild(this.layerElement),M=this.matteElement,this.baseElement=this.matteElement):this.baseElement=this.layerElement;if(this.data.ln&&this.layerElement.setAttribute("id",this.data.ln),this.data.cl&&this.layerElement.setAttribute("class",this.data.cl),this.data.ty===0&&!this.data.hd){var K=xe("clipPath"),oe=xe("path");oe.setAttribute("d","M0,0 L"+this.data.w+",0 L"+this.data.w+","+this.data.h+" L0,"+this.data.h+"z");var se=O();if(K.setAttribute("id",se),K.appendChild(oe),this.globalData.defs.appendChild(K),this.checkMasks()){var re=xe("g");re.setAttribute("clip-path","url("+u()+"#"+se+")"),re.appendChild(this.layerElement),this.transformedElement=re,M?M.appendChild(this.transformedElement):this.baseElement=this.transformedElement}else this.layerElement.setAttribute("clip-path","url("+u()+"#"+se+")")}this.data.bm!==0&&this.setBlendMode()},renderElement:function(){this.finalTransform._localMatMdf&&this.transformedElement.setAttribute("transform",this.finalTransform.localMat.to2dCSS()),this.finalTransform._opMdf&&this.transformedElement.setAttribute("opacity",this.finalTransform.localOpacity)},destroyBaseElement:function(){this.layerElement=null,this.matteElement=null,this.maskManager.destroy()},getBaseElement:function(){return this.data.hd?null:this.baseElement},createRenderableComponents:function(){this.maskManager=new Dg(this.data,this,this.globalData),this.renderableEffectsManager=new $B(this),this.searchEffectTransforms()},getMatte:function(M){if(this.matteMasks||(this.matteMasks={}),!this.matteMasks[M]){var _=this.layerId+"_"+M,K,oe,se,re;if(M===1||M===3){var ve=xe("mask");ve.setAttribute("id",_),ve.setAttribute("mask-type",M===3?"luminance":"alpha"),se=xe("use"),se.setAttributeNS("http://www.w3.org/1999/xlink","href","#"+this.layerId),ve.appendChild(se),this.globalData.defs.appendChild(ve),!kX.maskType&&M===1&&(ve.setAttribute("mask-type","luminance"),K=O(),oe=R8.createFilter(K),this.globalData.defs.appendChild(oe),oe.appendChild(R8.createAlphaToLuminanceFilter()),re=xe("g"),re.appendChild(se),ve.appendChild(re),re.setAttribute("filter","url("+u()+"#"+K+")"))}else if(M===2){var Be=xe("mask");Be.setAttribute("id",_),Be.setAttribute("mask-type","alpha");var we=xe("g");Be.appendChild(we),K=O(),oe=R8.createFilter(K);var Ke=xe("feComponentTransfer");Ke.setAttribute("in","SourceGraphic"),oe.appendChild(Ke);var et=xe("feFuncA");et.setAttribute("type","table"),et.setAttribute("tableValues","1.0 0.0"),Ke.appendChild(et),this.globalData.defs.appendChild(oe);var st=xe("rect");st.setAttribute("width",this.comp.data.w),st.setAttribute("height",this.comp.data.h),st.setAttribute("x","0"),st.setAttribute("y","0"),st.setAttribute("fill","#ffffff"),st.setAttribute("opacity","0"),we.setAttribute("filter","url("+u()+"#"+K+")"),we.appendChild(st),se=xe("use"),se.setAttributeNS("http://www.w3.org/1999/xlink","href","#"+this.layerId),we.appendChild(se),kX.maskType||(Be.setAttribute("mask-type","luminance"),oe.appendChild(R8.createAlphaToLuminanceFilter()),re=xe("g"),we.appendChild(st),re.appendChild(this.layerElement),we.appendChild(re)),this.globalData.defs.appendChild(Be)}this.matteMasks[M]=_}return this.matteMasks[M]},setMatte:function(M){this.matteElement&&this.matteElement.setAttribute("mask","url("+u()+"#"+M+")")}};function Pf(){}Pf.prototype={initHierarchy:function(){this.hierarchy=[],this._isParent=!1,this.checkParenting()},setHierarchy:function(M){this.hierarchy=M},setAsParent:function(){this._isParent=!0},checkParenting:function(){this.data.parent!==void 0&&this.comp.buildElementParenting(this,this.data.parent,[])}};function N8(){}(function(){var M={initElement:function(_,K,oe){this.initFrame(),this.initBaseData(_,K,oe),this.initTransform(_,K,oe),this.initHierarchy(),this.initRenderable(),this.initRendererElement(),this.createContainerElements(),this.createRenderableComponents(),this.createContent(),this.hide()},hide:function(){if(!this.hidden&&(!this.isInRange||this.isTransparent)){var _=this.baseElement||this.layerElement;_.style.display="none",this.hidden=!0}},show:function(){if(this.isInRange&&!this.isTransparent){if(!this.data.hd){var _=this.baseElement||this.layerElement;_.style.display="block"}this.hidden=!1,this._isFirstFrame=!0}},renderFrame:function(){this.data.hd||this.hidden||(this.renderTransform(),this.renderRenderable(),this.renderLocalTransform(),this.renderElement(),this.renderInnerContent(),this._isFirstFrame&&(this._isFirstFrame=!1))},renderInnerContent:function(){},prepareFrame:function(_){this._mdf=!1,this.prepareRenderableFrame(_),this.prepareProperties(_,this.isInRange),this.checkTransparency()},destroy:function(){this.innerElem=null,this.destroyBaseElement()}};m([wv,f(M)],N8)})();function H8(M,_,K){this.assetData=_.getAssetData(M.refId),this.assetData&&this.assetData.sid&&(this.assetData=_.slotManager.getProp(this.assetData)),this.initElement(M,_,K),this.sourceRect={top:0,left:0,width:this.assetData.w,height:this.assetData.h}}m([K2,Df,O8,Pf,q2,N8],H8),H8.prototype.createContent=function(){var M=this.globalData.getAssetsPath(this.assetData);this.innerElem=xe("image"),this.innerElem.setAttribute("width",this.assetData.w+"px"),this.innerElem.setAttribute("height",this.assetData.h+"px"),this.innerElem.setAttribute("preserveAspectRatio",this.assetData.pr||this.globalData.renderConfig.imagePreserveAspectRatio),this.innerElem.setAttributeNS("http://www.w3.org/1999/xlink","href",M),this.layerElement.appendChild(this.innerElem)},H8.prototype.sourceRectAtTime=function(){return this.sourceRect};function uWe(M,_){this.elem=M,this.pos=_}function EX(){}EX.prototype={addShapeToModifiers:function(M){var _,K=this.shapeModifiers.length;for(_=0;_<K;_+=1)this.shapeModifiers[_].addShape(M)},isShapeInAnimatedModifiers:function(M){for(var _=0,K=this.shapeModifiers.length;_<K;)if(this.shapeModifiers[_].isAnimatedWithShape(M))return!0;return!1},renderModifiers:function(){if(this.shapeModifiers.length){var M,_=this.shapes.length;for(M=0;M<_;M+=1)this.shapes[M].sh.reset();_=this.shapeModifiers.length;var K;for(M=_-1;M>=0&&(K=this.shapeModifiers[M].processShapes(this._isFirstFrame),!K);M-=1);}},searchProcessedElement:function(M){for(var _=this.processedElements,K=0,oe=_.length;K<oe;){if(_[K].elem===M)return _[K].pos;K+=1}return 0},addProcessedElement:function(M,_){for(var K=this.processedElements,oe=K.length;oe;)if(oe-=1,K[oe].elem===M){K[oe].pos=_;return}K.push(new uWe(M,_))},prepareFrame:function(M){this.prepareRenderableFrame(M),this.prepareProperties(M,this.isInRange)}};var LX={1:"butt",2:"round",3:"square"},IX={1:"miter",2:"round",3:"bevel"};function jX(M,_,K){this.caches=[],this.styles=[],this.transformers=M,this.lStr="",this.sh=K,this.lvl=_,this._isAnimated=!!K.k;for(var oe=0,se=M.length;oe<se;){if(M[oe].mProps.dynamicProperties.length){this._isAnimated=!0;break}oe+=1}}jX.prototype.setAsAnimated=function(){this._isAnimated=!0};function MX(M,_){this.data=M,this.type=M.ty,this.d="",this.lvl=_,this._mdf=!1,this.closed=M.hd===!0,this.pElem=xe("path"),this.msElem=null}MX.prototype.reset=function(){this.d="",this._mdf=!1};function bv(M,_,K,oe){this.elem=M,this.frameId=-1,this.dataProps=w(_.length),this.renderer=K,this.k=!1,this.dashStr="",this.dashArray=y("float32",_.length?_.length-1:0),this.dashoffset=y("float32",1),this.initDynamicPropertyContainer(oe);var se,re=_.length||0,ve;for(se=0;se<re;se+=1)ve=jt.getProp(M,_[se].v,0,0,this),this.k=ve.k||this.k,this.dataProps[se]={n:_[se].n,p:ve};this.k||this.getValue(!0),this._isAnimated=this.k}bv.prototype.getValue=function(M){if(!(this.elem.globalData.frameId===this.frameId&&!M)&&(this.frameId=this.elem.globalData.frameId,this.iterateDynamicProperties(),this._mdf=this._mdf||M,this._mdf)){var _=0,K=this.dataProps.length;for(this.renderer==="svg"&&(this.dashStr=""),_=0;_<K;_+=1)this.dataProps[_].n!=="o"?this.renderer==="svg"?this.dashStr+=" "+this.dataProps[_].p.v:this.dashArray[_]=this.dataProps[_].p.v:this.dashoffset[0]=this.dataProps[_].p.v}},m([oi],bv);function BX(M,_,K){this.initDynamicPropertyContainer(M),this.getValue=this.iterateDynamicProperties,this.o=jt.getProp(M,_.o,0,.01,this),this.w=jt.getProp(M,_.w,0,null,this),this.d=new bv(M,_.d||{},"svg",this),this.c=jt.getProp(M,_.c,1,255,this),this.style=K,this._isAnimated=!!this._isAnimated}m([oi],BX);function DX(M,_,K){this.initDynamicPropertyContainer(M),this.getValue=this.iterateDynamicProperties,this.o=jt.getProp(M,_.o,0,.01,this),this.c=jt.getProp(M,_.c,1,255,this),this.style=K}m([oi],DX);function PX(M,_,K){this.initDynamicPropertyContainer(M),this.getValue=this.iterateDynamicProperties,this.style=K}m([oi],PX);function _8(M,_,K){this.data=_,this.c=y("uint8c",_.p*4);var oe=_.k.k[0].s?_.k.k[0].s.length-_.p*4:_.k.k.length-_.p*4;this.o=y("float32",oe),this._cmdf=!1,this._omdf=!1,this._collapsable=this.checkCollapsable(),this._hasOpacity=oe,this.initDynamicPropertyContainer(K),this.prop=jt.getProp(M,_.k,1,null,this),this.k=this.prop.k,this.getValue(!0)}_8.prototype.comparePoints=function(M,_){for(var K=0,oe=this.o.length/2,se;K<oe;){if(se=Math.abs(M[K*4]-M[_*4+K*2]),se>.01)return!1;K+=1}return!0},_8.prototype.checkCollapsable=function(){if(this.o.length/2!==this.c.length/4)return!1;if(this.data.k.k[0].s)for(var M=0,_=this.data.k.k.length;M<_;){if(!this.comparePoints(this.data.k.k[M].s,this.data.p))return!1;M+=1}else if(!this.comparePoints(this.data.k.k,this.data.p))return!1;return!0},_8.prototype.getValue=function(M){if(this.prop.getValue(),this._mdf=!1,this._cmdf=!1,this._omdf=!1,this.prop._mdf||M){var _,K=this.data.p*4,oe,se;for(_=0;_<K;_+=1)oe=_%4===0?100:255,se=Math.round(this.prop.v[_]*oe),this.c[_]!==se&&(this.c[_]=se,this._cmdf=!M);if(this.o.length)for(K=this.prop.v.length,_=this.data.p*4;_<K;_+=1)oe=_%2===0?100:1,se=_%2===0?Math.round(this.prop.v[_]*100):this.prop.v[_],this.o[_-this.data.p*4]!==se&&(this.o[_-this.data.p*4]=se,this._omdf=!M);this._mdf=!M}},m([oi],_8);function Tf(M,_,K){this.initDynamicPropertyContainer(M),this.getValue=this.iterateDynamicProperties,this.initGradientData(M,_,K)}Tf.prototype.initGradientData=function(M,_,K){this.o=jt.getProp(M,_.o,0,.01,this),this.s=jt.getProp(M,_.s,1,null,this),this.e=jt.getProp(M,_.e,1,null,this),this.h=jt.getProp(M,_.h||{k:0},0,.01,this),this.a=jt.getProp(M,_.a||{k:0},0,B,this),this.g=new _8(M,_.g,this),this.style=K,this.stops=[],this.setGradientData(K.pElem,_),this.setGradientOpacity(_,K),this._isAnimated=!!this._isAnimated},Tf.prototype.setGradientData=function(M,_){var K=O(),oe=xe(_.t===1?"linearGradient":"radialGradient");oe.setAttribute("id",K),oe.setAttribute("spreadMethod","pad"),oe.setAttribute("gradientUnits","userSpaceOnUse");var se=[],re,ve,Be;for(Be=_.g.p*4,ve=0;ve<Be;ve+=4)re=xe("stop"),oe.appendChild(re),se.push(re);M.setAttribute(_.ty==="gf"?"fill":"stroke","url("+u()+"#"+K+")"),this.gf=oe,this.cst=se},Tf.prototype.setGradientOpacity=function(M,_){if(this.g._hasOpacity&&!this.g._collapsable){var K,oe,se,re=xe("mask"),ve=xe("path");re.appendChild(ve);var Be=O(),we=O();re.setAttribute("id",we);var Ke=xe(M.t===1?"linearGradient":"radialGradient");Ke.setAttribute("id",Be),Ke.setAttribute("spreadMethod","pad"),Ke.setAttribute("gradientUnits","userSpaceOnUse"),se=M.g.k.k[0].s?M.g.k.k[0].s.length:M.g.k.k.length;var et=this.stops;for(oe=M.g.p*4;oe<se;oe+=2)K=xe("stop"),K.setAttribute("stop-color","rgb(255,255,255)"),Ke.appendChild(K),et.push(K);ve.setAttribute(M.ty==="gf"?"fill":"stroke","url("+u()+"#"+Be+")"),M.ty==="gs"&&(ve.setAttribute("stroke-linecap",LX[M.lc||2]),ve.setAttribute("stroke-linejoin",IX[M.lj||2]),M.lj===1&&ve.setAttribute("stroke-miterlimit",M.ml)),this.of=Ke,this.ms=re,this.ost=et,this.maskId=we,_.msElem=ve}},m([oi],Tf);function TX(M,_,K){this.initDynamicPropertyContainer(M),this.getValue=this.iterateDynamicProperties,this.w=jt.getProp(M,_.w,0,null,this),this.d=new bv(M,_.d||{},"svg",this),this.initGradientData(M,_,K),this._isAnimated=!!this._isAnimated}m([Tf,oi],TX);function hWe(){this.it=[],this.prevViewData=[],this.gr=xe("g")}function mWe(M,_,K){this.transform={mProps:M,op:_,container:K},this.elements=[],this._isAnimated=this.transform.mProps.dynamicProperties.length||this.transform.op.effectsSequence.length}var zX=function(M,_,K,oe){if(_===0)return"";var se=M.o,re=M.i,ve=M.v,Be,we=" M"+oe.applyToPointStringified(ve[0][0],ve[0][1]);for(Be=1;Be<_;Be+=1)we+=" C"+oe.applyToPointStringified(se[Be-1][0],se[Be-1][1])+" "+oe.applyToPointStringified(re[Be][0],re[Be][1])+" "+oe.applyToPointStringified(ve[Be][0],ve[Be][1]);return K&&_&&(we+=" C"+oe.applyToPointStringified(se[Be-1][0],se[Be-1][1])+" "+oe.applyToPointStringified(re[0][0],re[0][1])+" "+oe.applyToPointStringified(ve[0][0],ve[0][1]),we+="z"),we},gWe=(function(){var M=new Cr,_=new Cr,K={createRenderFunction:oe};function oe(st){switch(st.ty){case"fl":return Be;case"gf":return Ke;case"gs":return we;case"st":return et;case"sh":case"el":case"rc":case"sr":return ve;case"tr":return se;case"no":return re;default:return null}}function se(st,Le,nt){(nt||Le.transform.op._mdf)&&Le.transform.container.setAttribute("opacity",Le.transform.op.v),(nt||Le.transform.mProps._mdf)&&Le.transform.container.setAttribute("transform",Le.transform.mProps.v.to2dCSS())}function re(){}function ve(st,Le,nt){var dt,ot,ut,Ue,Ee,ke,Me=Le.styles.length,Ye=Le.lvl,ht,$t,kt,Zt;for(ke=0;ke<Me;ke+=1){if(Ue=Le.sh._mdf||nt,Le.styles[ke].lvl<Ye){for($t=_.reset(),kt=Ye-Le.styles[ke].lvl,Zt=Le.transformers.length-1;!Ue&&kt>0;)Ue=Le.transformers[Zt].mProps._mdf||Ue,kt-=1,Zt-=1;if(Ue)for(kt=Ye-Le.styles[ke].lvl,Zt=Le.transformers.length-1;kt>0;)$t.multiply(Le.transformers[Zt].mProps.v),kt-=1,Zt-=1}else $t=M;if(ht=Le.sh.paths,ot=ht._length,Ue){for(ut="",dt=0;dt<ot;dt+=1)Ee=ht.shapes[dt],Ee&&Ee._length&&(ut+=zX(Ee,Ee._length,Ee.c,$t));Le.caches[ke]=ut}else ut=Le.caches[ke];Le.styles[ke].d+=st.hd===!0?"":ut,Le.styles[ke]._mdf=Ue||Le.styles[ke]._mdf}}function Be(st,Le,nt){var dt=Le.style;(Le.c._mdf||nt)&&dt.pElem.setAttribute("fill","rgb("+I(Le.c.v[0])+","+I(Le.c.v[1])+","+I(Le.c.v[2])+")"),(Le.o._mdf||nt)&&dt.pElem.setAttribute("fill-opacity",Le.o.v)}function we(st,Le,nt){Ke(st,Le,nt),et(st,Le,nt)}function Ke(st,Le,nt){var dt=Le.gf,ot=Le.g._hasOpacity,ut=Le.s.v,Ue=Le.e.v;if(Le.o._mdf||nt){var Ee=st.ty==="gf"?"fill-opacity":"stroke-opacity";Le.style.pElem.setAttribute(Ee,Le.o.v)}if(Le.s._mdf||nt){var ke=st.t===1?"x1":"cx",Me=ke==="x1"?"y1":"cy";dt.setAttribute(ke,ut[0]),dt.setAttribute(Me,ut[1]),ot&&!Le.g._collapsable&&(Le.of.setAttribute(ke,ut[0]),Le.of.setAttribute(Me,ut[1]))}var Ye,ht,$t,kt;if(Le.g._cmdf||nt){Ye=Le.cst;var Zt=Le.g.c;for($t=Ye.length,ht=0;ht<$t;ht+=1)kt=Ye[ht],kt.setAttribute("offset",Zt[ht*4]+"%"),kt.setAttribute("stop-color","rgb("+Zt[ht*4+1]+","+Zt[ht*4+2]+","+Zt[ht*4+3]+")")}if(ot&&(Le.g._omdf||nt)){var Lo=Le.g.o;for(Le.g._collapsable?Ye=Le.cst:Ye=Le.ost,$t=Ye.length,ht=0;ht<$t;ht+=1)kt=Ye[ht],Le.g._collapsable||kt.setAttribute("offset",Lo[ht*2]+"%"),kt.setAttribute("stop-opacity",Lo[ht*2+1])}if(st.t===1)(Le.e._mdf||nt)&&(dt.setAttribute("x2",Ue[0]),dt.setAttribute("y2",Ue[1]),ot&&!Le.g._collapsable&&(Le.of.setAttribute("x2",Ue[0]),Le.of.setAttribute("y2",Ue[1])));else{var bo;if((Le.s._mdf||Le.e._mdf||nt)&&(bo=Math.sqrt(Math.pow(ut[0]-Ue[0],2)+Math.pow(ut[1]-Ue[1],2)),dt.setAttribute("r",bo),ot&&!Le.g._collapsable&&Le.of.setAttribute("r",bo)),Le.s._mdf||Le.e._mdf||Le.h._mdf||Le.a._mdf||nt){bo||(bo=Math.sqrt(Math.pow(ut[0]-Ue[0],2)+Math.pow(ut[1]-Ue[1],2)));var co=Math.atan2(Ue[1]-ut[1],Ue[0]-ut[0]),jo=Le.h.v;jo>=1?jo=.99:jo<=-1&&(jo=-.99);var Mt=bo*jo,Ut=Math.cos(co+Le.a.v)*Mt+ut[0],Te=Math.sin(co+Le.a.v)*Mt+ut[1];dt.setAttribute("fx",Ut),dt.setAttribute("fy",Te),ot&&!Le.g._collapsable&&(Le.of.setAttribute("fx",Ut),Le.of.setAttribute("fy",Te))}}}function et(st,Le,nt){var dt=Le.style,ot=Le.d;ot&&(ot._mdf||nt)&&ot.dashStr&&(dt.pElem.setAttribute("stroke-dasharray",ot.dashStr),dt.pElem.setAttribute("stroke-dashoffset",ot.dashoffset[0])),Le.c&&(Le.c._mdf||nt)&&dt.pElem.setAttribute("stroke","rgb("+I(Le.c.v[0])+","+I(Le.c.v[1])+","+I(Le.c.v[2])+")"),(Le.o._mdf||nt)&&dt.pElem.setAttribute("stroke-opacity",Le.o.v),(Le.w._mdf||nt)&&(dt.pElem.setAttribute("stroke-width",Le.w.v),dt.msElem&&dt.msElem.setAttribute("stroke-width",Le.w.v))}return K})();function qn(M,_,K){this.shapes=[],this.shapesData=M.shapes,this.stylesList=[],this.shapeModifiers=[],this.itemsData=[],this.processedElements=[],this.animatedContents=[],this.initElement(M,_,K),this.prevViewData=[]}m([K2,Df,O8,EX,Pf,q2,N8],qn),qn.prototype.initSecondaryElement=function(){},qn.prototype.identityMatrix=new Cr,qn.prototype.buildExpressionInterface=function(){},qn.prototype.createContent=function(){this.searchShapes(this.shapesData,this.itemsData,this.prevViewData,this.layerElement,0,[],!0),this.filterUniqueShapes()},qn.prototype.filterUniqueShapes=function(){var M,_=this.shapes.length,K,oe,se=this.stylesList.length,re,ve=[],Be=!1;for(oe=0;oe<se;oe+=1){for(re=this.stylesList[oe],Be=!1,ve.length=0,M=0;M<_;M+=1)K=this.shapes[M],K.styles.indexOf(re)!==-1&&(ve.push(K),Be=K._isAnimated||Be);ve.length>1&&Be&&this.setShapesAsAnimated(ve)}},qn.prototype.setShapesAsAnimated=function(M){var _,K=M.length;for(_=0;_<K;_+=1)M[_].setAsAnimated()},qn.prototype.createStyleElement=function(M,_){var K,oe=new MX(M,_),se=oe.pElem;if(M.ty==="st")K=new BX(this,M,oe);else if(M.ty==="fl")K=new DX(this,M,oe);else if(M.ty==="gf"||M.ty==="gs"){var re=M.ty==="gf"?Tf:TX;K=new re(this,M,oe),this.globalData.defs.appendChild(K.gf),K.maskId&&(this.globalData.defs.appendChild(K.ms),this.globalData.defs.appendChild(K.of),se.setAttribute("mask","url("+u()+"#"+K.maskId+")"))}else M.ty==="no"&&(K=new PX(this,M,oe));return(M.ty==="st"||M.ty==="gs")&&(se.setAttribute("stroke-linecap",LX[M.lc||2]),se.setAttribute("stroke-linejoin",IX[M.lj||2]),se.setAttribute("fill-opacity","0"),M.lj===1&&se.setAttribute("stroke-miterlimit",M.ml)),M.r===2&&se.setAttribute("fill-rule","evenodd"),M.ln&&se.setAttribute("id",M.ln),M.cl&&se.setAttribute("class",M.cl),M.bm&&(se.style["mix-blend-mode"]=CB(M.bm)),this.stylesList.push(oe),this.addToAnimatedContents(M,K),K},qn.prototype.createGroupElement=function(M){var _=new hWe;return M.ln&&_.gr.setAttribute("id",M.ln),M.cl&&_.gr.setAttribute("class",M.cl),M.bm&&(_.gr.style["mix-blend-mode"]=CB(M.bm)),_},qn.prototype.createTransformElement=function(M,_){var K=jf.getTransformProperty(this,M,this),oe=new mWe(K,K.o,_);return this.addToAnimatedContents(M,oe),oe},qn.prototype.createShapeElement=function(M,_,K){var oe=4;M.ty==="rc"?oe=5:M.ty==="el"?oe=6:M.ty==="sr"&&(oe=7);var se=on.getShapeProp(this,M,oe,this),re=new jX(_,K,se);return this.shapes.push(re),this.addShapeToModifiers(re),this.addToAnimatedContents(M,re),re},qn.prototype.addToAnimatedContents=function(M,_){for(var K=0,oe=this.animatedContents.length;K<oe;){if(this.animatedContents[K].element===_)return;K+=1}this.animatedContents.push({fn:gWe.createRenderFunction(M),element:_,data:M})},qn.prototype.setElementStyles=function(M){var _=M.styles,K,oe=this.stylesList.length;for(K=0;K<oe;K+=1)_.indexOf(this.stylesList[K])===-1&&!this.stylesList[K].closed&&_.push(this.stylesList[K])},qn.prototype.reloadShapes=function(){this._isFirstFrame=!0;var M,_=this.itemsData.length;for(M=0;M<_;M+=1)this.prevViewData[M]=this.itemsData[M];for(this.searchShapes(this.shapesData,this.itemsData,this.prevViewData,this.layerElement,0,[],!0),this.filterUniqueShapes(),_=this.dynamicProperties.length,M=0;M<_;M+=1)this.dynamicProperties[M].getValue();this.renderModifiers()},qn.prototype.searchShapes=function(M,_,K,oe,se,re,ve){var Be=[].concat(re),we,Ke=M.length-1,et,st,Le=[],nt=[],dt,ot,ut;for(we=Ke;we>=0;we-=1){if(ut=this.searchProcessedElement(M[we]),ut?_[we]=K[ut-1]:M[we]._render=ve,M[we].ty==="fl"||M[we].ty==="st"||M[we].ty==="gf"||M[we].ty==="gs"||M[we].ty==="no")ut?_[we].style.closed=M[we].hd:_[we]=this.createStyleElement(M[we],se),M[we]._render&&_[we].style.pElem.parentNode!==oe&&oe.appendChild(_[we].style.pElem),Le.push(_[we].style);else if(M[we].ty==="gr"){if(!ut)_[we]=this.createGroupElement(M[we]);else for(st=_[we].it.length,et=0;et<st;et+=1)_[we].prevViewData[et]=_[we].it[et];this.searchShapes(M[we].it,_[we].it,_[we].prevViewData,_[we].gr,se+1,Be,ve),M[we]._render&&_[we].gr.parentNode!==oe&&oe.appendChild(_[we].gr)}else M[we].ty==="tr"?(ut||(_[we]=this.createTransformElement(M[we],oe)),dt=_[we].transform,Be.push(dt)):M[we].ty==="sh"||M[we].ty==="rc"||M[we].ty==="el"||M[we].ty==="sr"?(ut||(_[we]=this.createShapeElement(M[we],Be,se)),this.setElementStyles(_[we])):M[we].ty==="tm"||M[we].ty==="rd"||M[we].ty==="ms"||M[we].ty==="pb"||M[we].ty==="zz"||M[we].ty==="op"?(ut?(ot=_[we],ot.closed=!1):(ot=Op.getModifier(M[we].ty),ot.init(this,M[we]),_[we]=ot,this.shapeModifiers.push(ot)),nt.push(ot)):M[we].ty==="rp"&&(ut?(ot=_[we],ot.closed=!0):(ot=Op.getModifier(M[we].ty),_[we]=ot,ot.init(this,M,we,_),this.shapeModifiers.push(ot),ve=!1),nt.push(ot));this.addProcessedElement(M[we],we+1)}for(Ke=Le.length,we=0;we<Ke;we+=1)Le[we].closed=!0;for(Ke=nt.length,we=0;we<Ke;we+=1)nt[we].closed=!0},qn.prototype.renderInnerContent=function(){this.renderModifiers();var M,_=this.stylesList.length;for(M=0;M<_;M+=1)this.stylesList[M].reset();for(this.renderShape(),M=0;M<_;M+=1)(this.stylesList[M]._mdf||this._isFirstFrame)&&(this.stylesList[M].msElem&&(this.stylesList[M].msElem.setAttribute("d",this.stylesList[M].d),this.stylesList[M].d="M0 0"+this.stylesList[M].d),this.stylesList[M].pElem.setAttribute("d",this.stylesList[M].d||"M0 0"))},qn.prototype.renderShape=function(){var M,_=this.animatedContents.length,K;for(M=0;M<_;M+=1)K=this.animatedContents[M],(this._isFirstFrame||K.element._isAnimated)&&K.data!==!0&&K.fn(K.data,K.element,this._isFirstFrame)},qn.prototype.destroy=function(){this.destroyBaseElement(),this.shapesData=null,this.itemsData=null};function kB(M,_,K,oe,se,re){this.o=M,this.sw=_,this.sc=K,this.fc=oe,this.m=se,this.p=re,this._mdf={o:!0,sw:!!_,sc:!!K,fc:!!oe,m:!0,p:!0}}kB.prototype.update=function(M,_,K,oe,se,re){this._mdf.o=!1,this._mdf.sw=!1,this._mdf.sc=!1,this._mdf.fc=!1,this._mdf.m=!1,this._mdf.p=!1;var ve=!1;return this.o!==M&&(this.o=M,this._mdf.o=!0,ve=!0),this.sw!==_&&(this.sw=_,this._mdf.sw=!0,ve=!0),this.sc!==K&&(this.sc=K,this._mdf.sc=!0,ve=!0),this.fc!==oe&&(this.fc=oe,this._mdf.fc=!0,ve=!0),this.m!==se&&(this.m=se,this._mdf.m=!0,ve=!0),re.length&&(this.p[0]!==re[0]||this.p[1]!==re[1]||this.p[4]!==re[4]||this.p[5]!==re[5]||this.p[12]!==re[12]||this.p[13]!==re[13])&&(this.p=re,this._mdf.p=!0,ve=!0),ve};function Us(M,_){this._frameId=l,this.pv="",this.v="",this.kf=!1,this._isFirstFrame=!0,this._mdf=!1,_.d&&_.d.sid&&(_.d=M.globalData.slotManager.getProp(_.d)),this.data=_,this.elem=M,this.comp=this.elem.comp,this.keysIndex=0,this.canResize=!1,this.minimumFontSize=1,this.effectsSequence=[],this.currentData={ascent:0,boxWidth:this.defaultBoxWidth,f:"",fStyle:"",fWeight:"",fc:"",j:"",justifyOffset:"",l:[],lh:0,lineWidths:[],ls:"",of:"",s:"",sc:"",sw:0,t:0,tr:0,sz:0,ps:null,fillColorAnim:!1,strokeColorAnim:!1,strokeWidthAnim:!1,yOffset:0,finalSize:0,finalText:[],finalLineHeight:0,__complete:!1},this.copyData(this.currentData,this.data.d.k[0].s),this.searchProperty()||this.completeTextData(this.currentData)}Us.prototype.defaultBoxWidth=[0,0],Us.prototype.copyData=function(M,_){for(var K in _)Object.prototype.hasOwnProperty.call(_,K)&&(M[K]=_[K]);return M},Us.prototype.setCurrentData=function(M){M.__complete||this.completeTextData(M),this.currentData=M,this.currentData.boxWidth=this.currentData.boxWidth||this.defaultBoxWidth,this._mdf=!0},Us.prototype.searchProperty=function(){return this.searchKeyframes()},Us.prototype.searchKeyframes=function(){return this.kf=this.data.d.k.length>1,this.kf&&this.addEffect(this.getKeyframeValue.bind(this)),this.kf},Us.prototype.addEffect=function(M){this.effectsSequence.push(M),this.elem.addDynamicProperty(this)},Us.prototype.getValue=function(M){if(!((this.elem.globalData.frameId===this.frameId||!this.effectsSequence.length)&&!M)){this.currentData.t=this.data.d.k[this.keysIndex].s.t;var _=this.currentData,K=this.keysIndex;if(this.lock){this.setCurrentData(this.currentData);return}this.lock=!0,this._mdf=!1;var oe,se=this.effectsSequence.length,re=M||this.data.d.k[this.keysIndex].s;for(oe=0;oe<se;oe+=1)K!==this.keysIndex?re=this.effectsSequence[oe](re,re.t):re=this.effectsSequence[oe](this.currentData,re.t);_!==re&&this.setCurrentData(re),this.v=this.currentData,this.pv=this.v,this.lock=!1,this.frameId=this.elem.globalData.frameId}},Us.prototype.getKeyframeValue=function(){for(var M=this.data.d.k,_=this.elem.comp.renderedFrame,K=0,oe=M.length;K<=oe-1&&!(K===oe-1||M[K+1].t>_);)K+=1;return this.keysIndex!==K&&(this.keysIndex=K),this.data.d.k[this.keysIndex].s},Us.prototype.buildFinalText=function(M){for(var _=[],K=0,oe=M.length,se,re,ve=!1,Be=!1,we="";K<oe;)ve=Be,Be=!1,se=M.charCodeAt(K),we=M.charAt(K),Bg.isCombinedCharacter(se)?ve=!0:se>=55296&&se<=56319?Bg.isRegionalFlag(M,K)?we=M.substr(K,14):(re=M.charCodeAt(K+1),re>=56320&&re<=57343&&(Bg.isModifier(se,re)?(we=M.substr(K,2),ve=!0):Bg.isFlagEmoji(M.substr(K,4))?we=M.substr(K,4):we=M.substr(K,2))):se>56319?(re=M.charCodeAt(K+1),Bg.isVariationSelector(se)&&(ve=!0)):Bg.isZeroWidthJoiner(se)&&(ve=!0,Be=!0),ve?(_[_.length-1]+=we,ve=!1):_.push(we),K+=we.length;return _},Us.prototype.completeTextData=function(M){M.__complete=!0;var _=this.elem.globalData.fontManager,K=this.data,oe=[],se,re,ve,Be=0,we,Ke=K.m.g,et=0,st=0,Le=0,nt=[],dt=0,ot=0,ut,Ue,Ee=_.getFontByName(M.f),ke,Me=0,Ye=CX(Ee);M.fWeight=Ye.weight,M.fStyle=Ye.style,M.finalSize=M.s,M.finalText=this.buildFinalText(M.t),re=M.finalText.length,M.finalLineHeight=M.lh;var ht=M.tr/1e3*M.finalSize,$t;if(M.sz)for(var kt=!0,Zt=M.sz[0],Lo=M.sz[1],bo,co;kt;){co=this.buildFinalText(M.t),bo=0,dt=0,re=co.length,ht=M.tr/1e3*M.finalSize;var jo=-1;for(se=0;se<re;se+=1)$t=co[se].charCodeAt(0),ve=!1,co[se]===" "?jo=se:($t===13||$t===3)&&(dt=0,ve=!0,bo+=M.finalLineHeight||M.finalSize*1.2),_.chars?(ke=_.getCharData(co[se],Ee.fStyle,Ee.fFamily),Me=ve?0:ke.w*M.finalSize/100):Me=_.measureText(co[se],M.f,M.finalSize),dt+Me>Zt&&co[se]!==" "?(jo===-1?re+=1:se=jo,bo+=M.finalLineHeight||M.finalSize*1.2,co.splice(se,jo===se?1:0,"\r"),jo=-1,dt=0):(dt+=Me,dt+=ht);bo+=Ee.ascent*M.finalSize/100,this.canResize&&M.finalSize>this.minimumFontSize&&Lo<bo?(M.finalSize-=1,M.finalLineHeight=M.finalSize*M.lh/M.s):(M.finalText=co,re=M.finalText.length,kt=!1)}dt=-ht,Me=0;var Mt=0,Ut;for(se=0;se<re;se+=1)if(ve=!1,Ut=M.finalText[se],$t=Ut.charCodeAt(0),$t===13||$t===3?(Mt=0,nt.push(dt),ot=dt>ot?dt:ot,dt=-2*ht,we="",ve=!0,Le+=1):we=Ut,_.chars?(ke=_.getCharData(Ut,Ee.fStyle,_.getFontByName(M.f).fFamily),Me=ve?0:ke.w*M.finalSize/100):Me=_.measureText(we,M.f,M.finalSize),Ut===" "?Mt+=Me+ht:(dt+=Me+ht+Mt,Mt=0),oe.push({l:Me,an:Me,add:et,n:ve,anIndexes:[],val:we,line:Le,animatorJustifyOffset:0}),Ke==2){if(et+=Me,we===""||we===" "||se===re-1){for((we===""||we===" ")&&(et-=Me);st<=se;)oe[st].an=et,oe[st].ind=Be,oe[st].extra=Me,st+=1;Be+=1,et=0}}else if(Ke==3){if(et+=Me,we===""||se===re-1){for(we===""&&(et-=Me);st<=se;)oe[st].an=et,oe[st].ind=Be,oe[st].extra=Me,st+=1;et=0,Be+=1}}else oe[Be].ind=Be,oe[Be].extra=0,Be+=1;if(M.l=oe,ot=dt>ot?dt:ot,nt.push(dt),M.sz)M.boxWidth=M.sz[0],M.justifyOffset=0;else switch(M.boxWidth=ot,M.j){case 1:M.justifyOffset=-M.boxWidth;break;case 2:M.justifyOffset=-M.boxWidth/2;break;default:M.justifyOffset=0}M.lineWidths=nt;var Te=K.a,We,ge;Ue=Te.length;var Ve,ft,ct=[];for(ut=0;ut<Ue;ut+=1){for(We=Te[ut],We.a.sc&&(M.strokeColorAnim=!0),We.a.sw&&(M.strokeWidthAnim=!0),(We.a.fc||We.a.fh||We.a.fs||We.a.fb)&&(M.fillColorAnim=!0),ft=0,Ve=We.s.b,se=0;se<re;se+=1)ge=oe[se],ge.anIndexes[ut]=ft,(Ve==1&&ge.val!==""||Ve==2&&ge.val!==""&&ge.val!==" "||Ve==3&&(ge.n||ge.val==" "||se==re-1)||Ve==4&&(ge.n||se==re-1))&&(We.s.rn===1&&ct.push(ft),ft+=1);K.a[ut].s.totalChars=ft;var Xo=-1,fo;if(We.s.rn===1)for(se=0;se<re;se+=1)ge=oe[se],Xo!=ge.anIndexes[ut]&&(Xo=ge.anIndexes[ut],fo=ct.splice(Math.floor(Math.random()*ct.length),1)[0]),ge.anIndexes[ut]=fo}M.yOffset=M.finalLineHeight||M.finalSize*1.2,M.ls=M.ls||0,M.ascent=Ee.ascent*M.finalSize/100},Us.prototype.updateDocumentData=function(M,_){_=_===void 0?this.keysIndex:_;var K=this.copyData({},this.data.d.k[_].s);K=this.copyData(K,M),this.data.d.k[_].s=K,this.recalculate(_),this.setCurrentData(K),this.elem.addDynamicProperty(this)},Us.prototype.recalculate=function(M){var _=this.data.d.k[M].s;_.__complete=!1,this.keysIndex=0,this._isFirstFrame=!0,this.getValue(_)},Us.prototype.canResizeFont=function(M){this.canResize=M,this.recalculate(this.keysIndex),this.elem.addDynamicProperty(this)},Us.prototype.setMinimumFontSize=function(M){this.minimumFontSize=Math.floor(M)||1,this.recalculate(this.keysIndex),this.elem.addDynamicProperty(this)};var fWe=(function(){var M=Math.max,_=Math.min,K=Math.floor;function oe(re,ve){this._currentTextLength=-1,this.k=!1,this.data=ve,this.elem=re,this.comp=re.comp,this.finalS=0,this.finalE=0,this.initDynamicPropertyContainer(re),this.s=jt.getProp(re,ve.s||{k:0},0,0,this),"e"in ve?this.e=jt.getProp(re,ve.e,0,0,this):this.e={v:100},this.o=jt.getProp(re,ve.o||{k:0},0,0,this),this.xe=jt.getProp(re,ve.xe||{k:0},0,0,this),this.ne=jt.getProp(re,ve.ne||{k:0},0,0,this),this.sm=jt.getProp(re,ve.sm||{k:100},0,0,this),this.a=jt.getProp(re,ve.a,0,.01,this),this.dynamicProperties.length||this.getValue()}oe.prototype={getMult:function(re){this._currentTextLength!==this.elem.textProperty.currentData.l.length&&this.getValue();var ve=0,Be=0,we=1,Ke=1;this.ne.v>0?ve=this.ne.v/100:Be=-this.ne.v/100,this.xe.v>0?we=1-this.xe.v/100:Ke=1+this.xe.v/100;var et=Je.getBezierEasing(ve,Be,we,Ke).get,st=0,Le=this.finalS,nt=this.finalE,dt=this.data.sh;if(dt===2)nt===Le?st=re>=nt?1:0:st=M(0,_(.5/(nt-Le)+(re-Le)/(nt-Le),1)),st=et(st);else if(dt===3)nt===Le?st=re>=nt?0:1:st=1-M(0,_(.5/(nt-Le)+(re-Le)/(nt-Le),1)),st=et(st);else if(dt===4)nt===Le?st=0:(st=M(0,_(.5/(nt-Le)+(re-Le)/(nt-Le),1)),st<.5?st*=2:st=1-2*(st-.5)),st=et(st);else if(dt===5){if(nt===Le)st=0;else{var ot=nt-Le;re=_(M(0,re+.5-Le),nt-Le);var ut=-ot/2+re,Ue=ot/2;st=Math.sqrt(1-ut*ut/(Ue*Ue))}st=et(st)}else dt===6?(nt===Le?st=0:(re=_(M(0,re+.5-Le),nt-Le),st=(1+Math.cos(Math.PI+Math.PI*2*re/(nt-Le)))/2),st=et(st)):(re>=K(Le)&&(re-Le<0?st=M(0,_(_(nt,1)-(Le-re),1)):st=M(0,_(nt-re,1))),st=et(st));if(this.sm.v!==100){var Ee=this.sm.v*.01;Ee===0&&(Ee=1e-8);var ke=.5-Ee*.5;st<ke?st=0:(st=(st-ke)/Ee,st>1&&(st=1))}return st*this.a.v},getValue:function(re){this.iterateDynamicProperties(),this._mdf=re||this._mdf,this._currentTextLength=this.elem.textProperty.currentData.l.length||0,re&&this.data.r===2&&(this.e.v=this._currentTextLength);var ve=this.data.r===2?1:100/this.data.totalChars,Be=this.o.v/ve,we=this.s.v/ve+Be,Ke=this.e.v/ve+Be;if(we>Ke){var et=we;we=Ke,Ke=et}this.finalS=we,this.finalE=Ke}},m([oi],oe);function se(re,ve,Be){return new oe(re,ve)}return{getTextSelectorProp:se}})();function xWe(M,_,K){var oe={propType:!1},se=jt.getProp,re=_.a;this.a={r:re.r?se(M,re.r,0,B,K):oe,rx:re.rx?se(M,re.rx,0,B,K):oe,ry:re.ry?se(M,re.ry,0,B,K):oe,sk:re.sk?se(M,re.sk,0,B,K):oe,sa:re.sa?se(M,re.sa,0,B,K):oe,s:re.s?se(M,re.s,1,.01,K):oe,a:re.a?se(M,re.a,1,0,K):oe,o:re.o?se(M,re.o,0,.01,K):oe,p:re.p?se(M,re.p,1,0,K):oe,sw:re.sw?se(M,re.sw,0,0,K):oe,sc:re.sc?se(M,re.sc,1,0,K):oe,fc:re.fc?se(M,re.fc,1,0,K):oe,fh:re.fh?se(M,re.fh,0,0,K):oe,fs:re.fs?se(M,re.fs,0,.01,K):oe,fb:re.fb?se(M,re.fb,0,.01,K):oe,t:re.t?se(M,re.t,0,0,K):oe},this.s=fWe.getTextSelectorProp(M,_.s,K),this.s.t=_.s.t}function Pg(M,_,K){this._isFirstFrame=!0,this._hasMaskedPath=!1,this._frameId=-1,this._textData=M,this._renderType=_,this._elem=K,this._animatorsData=w(this._textData.a.length),this._pathData={},this._moreOptions={alignment:{}},this.renderedLetters=[],this.lettersChangedFlag=!1,this.initDynamicPropertyContainer(K)}Pg.prototype.searchProperties=function(){var M,_=this._textData.a.length,K,oe=jt.getProp;for(M=0;M<_;M+=1)K=this._textData.a[M],this._animatorsData[M]=new xWe(this._elem,K,this);this._textData.p&&"m"in this._textData.p?(this._pathData={a:oe(this._elem,this._textData.p.a,0,0,this),f:oe(this._elem,this._textData.p.f,0,0,this),l:oe(this._elem,this._textData.p.l,0,0,this),r:oe(this._elem,this._textData.p.r,0,0,this),p:oe(this._elem,this._textData.p.p,0,0,this),m:this._elem.maskManager.getMaskProperty(this._textData.p.m)},this._hasMaskedPath=!0):this._hasMaskedPath=!1,this._moreOptions.alignment=oe(this._elem,this._textData.m.a,1,0,this)},Pg.prototype.getMeasures=function(M,_){if(this.lettersChangedFlag=_,!(!this._mdf&&!this._isFirstFrame&&!_&&(!this._hasMaskedPath||!this._pathData.m._mdf))){this._isFirstFrame=!1;var K=this._moreOptions.alignment.v,oe=this._animatorsData,se=this._textData,re=this.mHelper,ve=this._renderType,Be=this.renderedLetters.length,we,Ke,et,st,Le=M.l,nt,dt,ot,ut,Ue,Ee,ke,Me,Ye,ht,$t,kt,Zt,Lo,bo;if(this._hasMaskedPath){if(bo=this._pathData.m,!this._pathData.n||this._pathData._mdf){var co=bo.v;this._pathData.r.v&&(co=co.reverse()),nt={tLength:0,segments:[]},st=co._length-1;var jo;for(kt=0,et=0;et<st;et+=1)jo=Ne.buildBezierData(co.v[et],co.v[et+1],[co.o[et][0]-co.v[et][0],co.o[et][1]-co.v[et][1]],[co.i[et+1][0]-co.v[et+1][0],co.i[et+1][1]-co.v[et+1][1]]),nt.tLength+=jo.segmentLength,nt.segments.push(jo),kt+=jo.segmentLength;et=st,bo.v.c&&(jo=Ne.buildBezierData(co.v[et],co.v[0],[co.o[et][0]-co.v[et][0],co.o[et][1]-co.v[et][1]],[co.i[0][0]-co.v[0][0],co.i[0][1]-co.v[0][1]]),nt.tLength+=jo.segmentLength,nt.segments.push(jo),kt+=jo.segmentLength),this._pathData.pi=nt}if(nt=this._pathData.pi,dt=this._pathData.f.v,ke=0,Ee=1,ut=0,Ue=!0,ht=nt.segments,dt<0&&bo.v.c)for(nt.tLength<Math.abs(dt)&&(dt=-Math.abs(dt)%nt.tLength),ke=ht.length-1,Ye=ht[ke].points,Ee=Ye.length-1;dt<0;)dt+=Ye[Ee].partialLength,Ee-=1,Ee<0&&(ke-=1,Ye=ht[ke].points,Ee=Ye.length-1);Ye=ht[ke].points,Me=Ye[Ee-1],ot=Ye[Ee],$t=ot.partialLength}st=Le.length,we=0,Ke=0;var Mt=M.finalSize*1.2*.714,Ut=!0,Te,We,ge,Ve,ft;Ve=oe.length;var ct,Xo=-1,fo,Wi,xi,Zn=dt,ma=ke,Al=Ee,Hp=-1,$l,as,fd,Er,wo,wh,X2,bh,_p="",vh=this.defaultPropsArray,Ch;if(M.j===2||M.j===1){var kl=0,e0=0,t0=M.j===2?-.5:-1,o1=0,o0=!0;for(et=0;et<st;et+=1)if(Le[et].n){for(kl&&(kl+=e0);o1<et;)Le[o1].animatorJustifyOffset=kl,o1+=1;kl=0,o0=!0}else{for(ge=0;ge<Ve;ge+=1)Te=oe[ge].a,Te.t.propType&&(o0&&M.j===2&&(e0+=Te.t.v*t0),We=oe[ge].s,ct=We.getMult(Le[et].anIndexes[ge],se.a[ge].s.totalChars),ct.length?kl+=Te.t.v*ct[0]*t0:kl+=Te.t.v*ct*t0);o0=!1}for(kl&&(kl+=e0);o1<et;)Le[o1].animatorJustifyOffset=kl,o1+=1}for(et=0;et<st;et+=1){if(re.reset(),$l=1,Le[et].n)we=0,Ke+=M.yOffset,Ke+=Ut?1:0,dt=Zn,Ut=!1,this._hasMaskedPath&&(ke=ma,Ee=Al,Ye=ht[ke].points,Me=Ye[Ee-1],ot=Ye[Ee],$t=ot.partialLength,ut=0),_p="",bh="",wh="",Ch="",vh=this.defaultPropsArray;else{if(this._hasMaskedPath){if(Hp!==Le[et].line){switch(M.j){case 1:dt+=kt-M.lineWidths[Le[et].line];break;case 2:dt+=(kt-M.lineWidths[Le[et].line])/2;break}Hp=Le[et].line}Xo!==Le[et].ind&&(Le[Xo]&&(dt+=Le[Xo].extra),dt+=Le[et].an/2,Xo=Le[et].ind),dt+=K[0]*Le[et].an*.005;var i1=0;for(ge=0;ge<Ve;ge+=1)Te=oe[ge].a,Te.p.propType&&(We=oe[ge].s,ct=We.getMult(Le[et].anIndexes[ge],se.a[ge].s.totalChars),ct.length?i1+=Te.p.v[0]*ct[0]:i1+=Te.p.v[0]*ct),Te.a.propType&&(We=oe[ge].s,ct=We.getMult(Le[et].anIndexes[ge],se.a[ge].s.totalChars),ct.length?i1+=Te.a.v[0]*ct[0]:i1+=Te.a.v[0]*ct);for(Ue=!0,this._pathData.a.v&&(dt=Le[0].an*.5+(kt-this._pathData.f.v-Le[0].an*.5-Le[Le.length-1].an*.5)*Xo/(st-1),dt+=this._pathData.f.v);Ue;)ut+$t>=dt+i1||!Ye?(Zt=(dt+i1-ut)/ot.partialLength,Wi=Me.point[0]+(ot.point[0]-Me.point[0])*Zt,xi=Me.point[1]+(ot.point[1]-Me.point[1])*Zt,re.translate(-K[0]*Le[et].an*.005,-(K[1]*Mt)*.01),Ue=!1):Ye&&(ut+=ot.partialLength,Ee+=1,Ee>=Ye.length&&(Ee=0,ke+=1,ht[ke]?Ye=ht[ke].points:bo.v.c?(Ee=0,ke=0,Ye=ht[ke].points):(ut-=ot.partialLength,Ye=null)),Ye&&(Me=ot,ot=Ye[Ee],$t=ot.partialLength));fo=Le[et].an/2-Le[et].add,re.translate(-fo,0,0)}else fo=Le[et].an/2-Le[et].add,re.translate(-fo,0,0),re.translate(-K[0]*Le[et].an*.005,-K[1]*Mt*.01,0);for(ge=0;ge<Ve;ge+=1)Te=oe[ge].a,Te.t.propType&&(We=oe[ge].s,ct=We.getMult(Le[et].anIndexes[ge],se.a[ge].s.totalChars),(we!==0||M.j!==0)&&(this._hasMaskedPath?ct.length?dt+=Te.t.v*ct[0]:dt+=Te.t.v*ct:ct.length?we+=Te.t.v*ct[0]:we+=Te.t.v*ct));for(M.strokeWidthAnim&&(fd=M.sw||0),M.strokeColorAnim&&(M.sc?as=[M.sc[0],M.sc[1],M.sc[2]]:as=[0,0,0]),M.fillColorAnim&&M.fc&&(Er=[M.fc[0],M.fc[1],M.fc[2]]),ge=0;ge<Ve;ge+=1)Te=oe[ge].a,Te.a.propType&&(We=oe[ge].s,ct=We.getMult(Le[et].anIndexes[ge],se.a[ge].s.totalChars),ct.length?re.translate(-Te.a.v[0]*ct[0],-Te.a.v[1]*ct[1],Te.a.v[2]*ct[2]):re.translate(-Te.a.v[0]*ct,-Te.a.v[1]*ct,Te.a.v[2]*ct));for(ge=0;ge<Ve;ge+=1)Te=oe[ge].a,Te.s.propType&&(We=oe[ge].s,ct=We.getMult(Le[et].anIndexes[ge],se.a[ge].s.totalChars),ct.length?re.scale(1+(Te.s.v[0]-1)*ct[0],1+(Te.s.v[1]-1)*ct[1],1):re.scale(1+(Te.s.v[0]-1)*ct,1+(Te.s.v[1]-1)*ct,1));for(ge=0;ge<Ve;ge+=1){if(Te=oe[ge].a,We=oe[ge].s,ct=We.getMult(Le[et].anIndexes[ge],se.a[ge].s.totalChars),Te.sk.propType&&(ct.length?re.skewFromAxis(-Te.sk.v*ct[0],Te.sa.v*ct[1]):re.skewFromAxis(-Te.sk.v*ct,Te.sa.v*ct)),Te.r.propType&&(ct.length?re.rotateZ(-Te.r.v*ct[2]):re.rotateZ(-Te.r.v*ct)),Te.ry.propType&&(ct.length?re.rotateY(Te.ry.v*ct[1]):re.rotateY(Te.ry.v*ct)),Te.rx.propType&&(ct.length?re.rotateX(Te.rx.v*ct[0]):re.rotateX(Te.rx.v*ct)),Te.o.propType&&(ct.length?$l+=(Te.o.v*ct[0]-$l)*ct[0]:$l+=(Te.o.v*ct-$l)*ct),M.strokeWidthAnim&&Te.sw.propType&&(ct.length?fd+=Te.sw.v*ct[0]:fd+=Te.sw.v*ct),M.strokeColorAnim&&Te.sc.propType)for(wo=0;wo<3;wo+=1)ct.length?as[wo]+=(Te.sc.v[wo]-as[wo])*ct[0]:as[wo]+=(Te.sc.v[wo]-as[wo])*ct;if(M.fillColorAnim&&M.fc){if(Te.fc.propType)for(wo=0;wo<3;wo+=1)ct.length?Er[wo]+=(Te.fc.v[wo]-Er[wo])*ct[0]:Er[wo]+=(Te.fc.v[wo]-Er[wo])*ct;Te.fh.propType&&(ct.length?Er=W(Er,Te.fh.v*ct[0]):Er=W(Er,Te.fh.v*ct)),Te.fs.propType&&(ct.length?Er=te(Er,Te.fs.v*ct[0]):Er=te(Er,Te.fs.v*ct)),Te.fb.propType&&(ct.length?Er=G(Er,Te.fb.v*ct[0]):Er=G(Er,Te.fb.v*ct))}}for(ge=0;ge<Ve;ge+=1)Te=oe[ge].a,Te.p.propType&&(We=oe[ge].s,ct=We.getMult(Le[et].anIndexes[ge],se.a[ge].s.totalChars),this._hasMaskedPath?ct.length?re.translate(0,Te.p.v[1]*ct[0],-Te.p.v[2]*ct[1]):re.translate(0,Te.p.v[1]*ct,-Te.p.v[2]*ct):ct.length?re.translate(Te.p.v[0]*ct[0],Te.p.v[1]*ct[1],-Te.p.v[2]*ct[2]):re.translate(Te.p.v[0]*ct,Te.p.v[1]*ct,-Te.p.v[2]*ct));if(M.strokeWidthAnim&&(wh=fd<0?0:fd),M.strokeColorAnim&&(X2="rgb("+Math.round(as[0]*255)+","+Math.round(as[1]*255)+","+Math.round(as[2]*255)+")"),M.fillColorAnim&&M.fc&&(bh="rgb("+Math.round(Er[0]*255)+","+Math.round(Er[1]*255)+","+Math.round(Er[2]*255)+")"),this._hasMaskedPath){if(re.translate(0,-M.ls),re.translate(0,K[1]*Mt*.01+Ke,0),this._pathData.p.v){Lo=(ot.point[1]-Me.point[1])/(ot.point[0]-Me.point[0]);var Tg=Math.atan(Lo)*180/Math.PI;ot.point[0]<Me.point[0]&&(Tg+=180),re.rotate(-Tg*Math.PI/180)}re.translate(Wi,xi,0),dt-=K[0]*Le[et].an*.005,Le[et+1]&&Xo!==Le[et+1].ind&&(dt+=Le[et].an/2,dt+=M.tr*.001*M.finalSize)}else{switch(re.translate(we,Ke,0),M.ps&&re.translate(M.ps[0],M.ps[1]+M.ascent,0),M.j){case 1:re.translate(Le[et].animatorJustifyOffset+M.justifyOffset+(M.boxWidth-M.lineWidths[Le[et].line]),0,0);break;case 2:re.translate(Le[et].animatorJustifyOffset+M.justifyOffset+(M.boxWidth-M.lineWidths[Le[et].line])/2,0,0);break}re.translate(0,-M.ls),re.translate(fo,0,0),re.translate(K[0]*Le[et].an*.005,K[1]*Mt*.01,0),we+=Le[et].l+M.tr*.001*M.finalSize}ve==="html"?_p=re.toCSS():ve==="svg"?_p=re.to2dCSS():vh=[re.props[0],re.props[1],re.props[2],re.props[3],re.props[4],re.props[5],re.props[6],re.props[7],re.props[8],re.props[9],re.props[10],re.props[11],re.props[12],re.props[13],re.props[14],re.props[15]],Ch=$l}Be<=et?(ft=new kB(Ch,wh,X2,bh,_p,vh),this.renderedLetters.push(ft),Be+=1,this.lettersChangedFlag=!0):(ft=this.renderedLetters[et],this.lettersChangedFlag=ft.update(Ch,wh,X2,bh,_p,vh)||this.lettersChangedFlag)}}},Pg.prototype.getValue=function(){this._elem.globalData.frameId!==this._frameId&&(this._frameId=this._elem.globalData.frameId,this.iterateDynamicProperties())},Pg.prototype.mHelper=new Cr,Pg.prototype.defaultPropsArray=[],m([oi],Pg);function Jd(){}Jd.prototype.initElement=function(M,_,K){this.lettersChangedFlag=!0,this.initFrame(),this.initBaseData(M,_,K),this.textProperty=new Us(this,M.t,this.dynamicProperties),this.textAnimator=new Pg(M.t,this.renderType,this),this.initTransform(M,_,K),this.initHierarchy(),this.initRenderable(),this.initRendererElement(),this.createContainerElements(),this.createRenderableComponents(),this.createContent(),this.hide(),this.textAnimator.searchProperties(this.dynamicProperties)},Jd.prototype.prepareFrame=function(M){this._mdf=!1,this.prepareRenderableFrame(M),this.prepareProperties(M,this.isInRange)},Jd.prototype.createPathShape=function(M,_){var K,oe=_.length,se,re="";for(K=0;K<oe;K+=1)_[K].ty==="sh"&&(se=_[K].ks.k,re+=zX(se,se.i.length,!0,M));return re},Jd.prototype.updateDocumentData=function(M,_){this.textProperty.updateDocumentData(M,_)},Jd.prototype.canResizeFont=function(M){this.textProperty.canResizeFont(M)},Jd.prototype.setMinimumFontSize=function(M){this.textProperty.setMinimumFontSize(M)},Jd.prototype.applyTextPropertiesToMatrix=function(M,_,K,oe,se){switch(M.ps&&_.translate(M.ps[0],M.ps[1]+M.ascent,0),_.translate(0,-M.ls,0),M.j){case 1:_.translate(M.justifyOffset+(M.boxWidth-M.lineWidths[K]),0,0);break;case 2:_.translate(M.justifyOffset+(M.boxWidth-M.lineWidths[K])/2,0,0);break}_.translate(oe,se,0)},Jd.prototype.buildColor=function(M){return"rgb("+Math.round(M[0]*255)+","+Math.round(M[1]*255)+","+Math.round(M[2]*255)+")"},Jd.prototype.emptyProp=new kB,Jd.prototype.destroy=function(){},Jd.prototype.validateText=function(){(this.textProperty._mdf||this.textProperty._isFirstFrame)&&(this.buildNewText(),this.textProperty._isFirstFrame=!1,this.textProperty._mdf=!1)};var yWe={shapes:[]};function xh(M,_,K){this.textSpans=[],this.renderType="svg",this.initElement(M,_,K)}m([K2,Df,O8,Pf,q2,N8,Jd],xh),xh.prototype.createContent=function(){this.data.singleShape&&!this.globalData.fontManager.chars&&(this.textContainer=xe("text"))},xh.prototype.buildTextContents=function(M){for(var _=0,K=M.length,oe=[],se="";_<K;)M[_]==="\r"||M[_]===""?(oe.push(se),se=""):se+=M[_],_+=1;return oe.push(se),oe},xh.prototype.buildShapeData=function(M,_){if(M.shapes&&M.shapes.length){var K=M.shapes[0];if(K.it){var oe=K.it[K.it.length-1];oe.s&&(oe.s.k[0]=_,oe.s.k[1]=_)}}return M},xh.prototype.buildNewText=function(){this.addDynamicProperty(this);var M,_,K=this.textProperty.currentData;this.renderedLetters=w(K?K.l.length:0),K.fc?this.layerElement.setAttribute("fill",this.buildColor(K.fc)):this.layerElement.setAttribute("fill","rgba(0,0,0,0)"),K.sc&&(this.layerElement.setAttribute("stroke",this.buildColor(K.sc)),this.layerElement.setAttribute("stroke-width",K.sw)),this.layerElement.setAttribute("font-size",K.finalSize);var oe=this.globalData.fontManager.getFontByName(K.f);if(oe.fClass)this.layerElement.setAttribute("class",oe.fClass);else{this.layerElement.setAttribute("font-family",oe.fFamily);var se=K.fWeight,re=K.fStyle;this.layerElement.setAttribute("font-style",re),this.layerElement.setAttribute("font-weight",se)}this.layerElement.setAttribute("aria-label",K.t);var ve=K.l||[],Be=!!this.globalData.fontManager.chars;_=ve.length;var we,Ke=this.mHelper,et="",st=this.data.singleShape,Le=0,nt=0,dt=!0,ot=K.tr*.001*K.finalSize;if(st&&!Be&&!K.sz){var ut=this.textContainer,Ue="start";switch(K.j){case 1:Ue="end";break;case 2:Ue="middle";break;default:Ue="start";break}ut.setAttribute("text-anchor",Ue),ut.setAttribute("letter-spacing",ot);var Ee=this.buildTextContents(K.finalText);for(_=Ee.length,nt=K.ps?K.ps[1]+K.ascent:0,M=0;M<_;M+=1)we=this.textSpans[M].span||xe("tspan"),we.textContent=Ee[M],we.setAttribute("x",0),we.setAttribute("y",nt),we.style.display="inherit",ut.appendChild(we),this.textSpans[M]||(this.textSpans[M]={span:null,glyph:null}),this.textSpans[M].span=we,nt+=K.finalLineHeight;this.layerElement.appendChild(ut)}else{var ke=this.textSpans.length,Me;for(M=0;M<_;M+=1){if(this.textSpans[M]||(this.textSpans[M]={span:null,childSpan:null,glyph:null}),!Be||!st||M===0){if(we=ke>M?this.textSpans[M].span:xe(Be?"g":"text"),ke<=M){if(we.setAttribute("stroke-linecap","butt"),we.setAttribute("stroke-linejoin","round"),we.setAttribute("stroke-miterlimit","4"),this.textSpans[M].span=we,Be){var Ye=xe("g");we.appendChild(Ye),this.textSpans[M].childSpan=Ye}this.textSpans[M].span=we,this.layerElement.appendChild(we)}we.style.display="inherit"}if(Ke.reset(),st&&(ve[M].n&&(Le=-ot,nt+=K.yOffset,nt+=dt?1:0,dt=!1),this.applyTextPropertiesToMatrix(K,Ke,ve[M].line,Le,nt),Le+=ve[M].l||0,Le+=ot),Be){Me=this.globalData.fontManager.getCharData(K.finalText[M],oe.fStyle,this.globalData.fontManager.getFontByName(K.f).fFamily);var ht;if(Me.t===1)ht=new V8(Me.data,this.globalData,this);else{var $t=yWe;Me.data&&Me.data.shapes&&($t=this.buildShapeData(Me.data,K.finalSize)),ht=new qn($t,this.globalData,this)}if(this.textSpans[M].glyph){var kt=this.textSpans[M].glyph;this.textSpans[M].childSpan.removeChild(kt.layerElement),kt.destroy()}this.textSpans[M].glyph=ht,ht._debug=!0,ht.prepareFrame(0),ht.renderFrame(),this.textSpans[M].childSpan.appendChild(ht.layerElement),Me.t===1&&this.textSpans[M].childSpan.setAttribute("transform","scale("+K.finalSize/100+","+K.finalSize/100+")")}else st&&we.setAttribute("transform","translate("+Ke.props[12]+","+Ke.props[13]+")"),we.textContent=ve[M].val,we.setAttributeNS("http://www.w3.org/XML/1998/namespace","xml:space","preserve")}st&&we&&we.setAttribute("d",et)}for(;M<this.textSpans.length;)this.textSpans[M].span.style.display="none",M+=1;this._sizeChanged=!0},xh.prototype.sourceRectAtTime=function(){if(this.prepareFrame(this.comp.renderedFrame-this.data.st),this.renderInnerContent(),this._sizeChanged){this._sizeChanged=!1;var M=this.layerElement.getBBox();this.bbox={top:M.y,left:M.x,width:M.width,height:M.height}}return this.bbox},xh.prototype.getValue=function(){var M,_=this.textSpans.length,K;for(this.renderedFrame=this.comp.renderedFrame,M=0;M<_;M+=1)K=this.textSpans[M].glyph,K&&(K.prepareFrame(this.comp.renderedFrame-this.data.st),K._mdf&&(this._mdf=!0))},xh.prototype.renderInnerContent=function(){if(this.validateText(),(!this.data.singleShape||this._mdf)&&(this.textAnimator.getMeasures(this.textProperty.currentData,this.lettersChangedFlag),this.lettersChangedFlag||this.textAnimator.lettersChangedFlag)){this._sizeChanged=!0;var M,_,K=this.textAnimator.renderedLetters,oe=this.textProperty.currentData.l;_=oe.length;var se,re,ve;for(M=0;M<_;M+=1)oe[M].n||(se=K[M],re=this.textSpans[M].span,ve=this.textSpans[M].glyph,ve&&ve.renderFrame(),se._mdf.m&&re.setAttribute("transform",se.m),se._mdf.o&&re.setAttribute("opacity",se.o),se._mdf.sw&&re.setAttribute("stroke-width",se.sw),se._mdf.sc&&re.setAttribute("stroke",se.sc),se._mdf.fc&&re.setAttribute("fill",se.fc))}};function SB(M,_,K){this.initElement(M,_,K)}m([H8],SB),SB.prototype.createContent=function(){var M=xe("rect");M.setAttribute("width",this.data.sw),M.setAttribute("height",this.data.sh),M.setAttribute("fill",this.data.sc),this.layerElement.appendChild(M)};function J2(M,_,K){this.initFrame(),this.initBaseData(M,_,K),this.initFrame(),this.initTransform(M,_,K),this.initHierarchy()}J2.prototype.prepareFrame=function(M){this.prepareProperties(M,!0)},J2.prototype.renderFrame=function(){},J2.prototype.getBaseElement=function(){return null},J2.prototype.destroy=function(){},J2.prototype.sourceRectAtTime=function(){},J2.prototype.hide=function(){},m([K2,Df,Pf,q2],J2);function za(){}m([Ss],za),za.prototype.createNull=function(M){return new J2(M,this.globalData,this)},za.prototype.createShape=function(M){return new qn(M,this.globalData,this)},za.prototype.createText=function(M){return new xh(M,this.globalData,this)},za.prototype.createImage=function(M){return new H8(M,this.globalData,this)},za.prototype.createSolid=function(M){return new SB(M,this.globalData,this)},za.prototype.configAnimation=function(M){this.svgElement.setAttribute("xmlns","http://www.w3.org/2000/svg"),this.svgElement.setAttribute("xmlns:xlink","http://www.w3.org/1999/xlink"),this.renderConfig.viewBoxSize?this.svgElement.setAttribute("viewBox",this.renderConfig.viewBoxSize):this.svgElement.setAttribute("viewBox","0 0 "+M.w+" "+M.h),this.renderConfig.viewBoxOnly||(this.svgElement.setAttribute("width",M.w),this.svgElement.setAttribute("height",M.h),this.svgElement.style.width="100%",this.svgElement.style.height="100%",this.svgElement.style.transform="translate3d(0,0,0)",this.svgElement.style.contentVisibility=this.renderConfig.contentVisibility),this.renderConfig.width&&this.svgElement.setAttribute("width",this.renderConfig.width),this.renderConfig.height&&this.svgElement.setAttribute("height",this.renderConfig.height),this.renderConfig.className&&this.svgElement.setAttribute("class",this.renderConfig.className),this.renderConfig.id&&this.svgElement.setAttribute("id",this.renderConfig.id),this.renderConfig.focusable!==void 0&&this.svgElement.setAttribute("focusable",this.renderConfig.focusable),this.svgElement.setAttribute("preserveAspectRatio",this.renderConfig.preserveAspectRatio),this.animationItem.wrapper.appendChild(this.svgElement);var _=this.globalData.defs;this.setupGlobalData(M,_),this.globalData.progressiveLoad=this.renderConfig.progressiveLoad,this.data=M;var K=xe("clipPath"),oe=xe("rect");oe.setAttribute("width",M.w),oe.setAttribute("height",M.h),oe.setAttribute("x",0),oe.setAttribute("y",0);var se=O();K.setAttribute("id",se),K.appendChild(oe),this.layerElement.setAttribute("clip-path","url("+u()+"#"+se+")"),_.appendChild(K),this.layers=M.layers,this.elements=w(M.layers.length)},za.prototype.destroy=function(){this.animationItem.wrapper&&(this.animationItem.wrapper.innerText=""),this.layerElement=null,this.globalData.defs=null;var M,_=this.layers?this.layers.length:0;for(M=0;M<_;M+=1)this.elements[M]&&this.elements[M].destroy&&this.elements[M].destroy();this.elements.length=0,this.destroyed=!0,this.animationItem=null},za.prototype.updateContainerSize=function(){},za.prototype.findIndexByInd=function(M){var _=0,K=this.layers.length;for(_=0;_<K;_+=1)if(this.layers[_].ind===M)return _;return-1},za.prototype.buildItem=function(M){var _=this.elements;if(!(_[M]||this.layers[M].ty===99)){_[M]=!0;var K=this.createItem(this.layers[M]);if(_[M]=K,ye()&&(this.layers[M].ty===0&&this.globalData.projectInterface.registerComposition(K),K.initExpressions()),this.appendElementInPos(K,M),this.layers[M].tt){var oe="tp"in this.layers[M]?this.findIndexByInd(this.layers[M].tp):M-1;if(oe===-1)return;if(!this.elements[oe]||this.elements[oe]===!0)this.buildItem(oe),this.addPendingElement(K);else{var se=_[oe],re=se.getMatte(this.layers[M].tt);K.setMatte(re)}}}},za.prototype.checkPendingElements=function(){for(;this.pendingElements.length;){var M=this.pendingElements.pop();if(M.checkParenting(),M.data.tt)for(var _=0,K=this.elements.length;_<K;){if(this.elements[_]===M){var oe="tp"in M.data?this.findIndexByInd(M.data.tp):_-1,se=this.elements[oe],re=se.getMatte(this.layers[_].tt);M.setMatte(re);break}_+=1}}},za.prototype.renderFrame=function(M){if(!(this.renderedFrame===M||this.destroyed)){M===null?M=this.renderedFrame:this.renderedFrame=M,this.globalData.frameNum=M,this.globalData.frameId+=1,this.globalData.projectInterface.currentFrame=M,this.globalData._mdf=!1;var _,K=this.layers.length;for(this.completeLayers||this.checkLayers(M),_=K-1;_>=0;_-=1)(this.completeLayers||this.elements[_])&&this.elements[_].prepareFrame(M-this.layers[_].st);if(this.globalData._mdf)for(_=0;_<K;_+=1)(this.completeLayers||this.elements[_])&&this.elements[_].renderFrame()}},za.prototype.appendElementInPos=function(M,_){var K=M.getBaseElement();if(K){for(var oe=0,se;oe<_;)this.elements[oe]&&this.elements[oe]!==!0&&this.elements[oe].getBaseElement()&&(se=this.elements[oe].getBaseElement()),oe+=1;se?this.layerElement.insertBefore(K,se):this.layerElement.appendChild(K)}},za.prototype.hide=function(){this.layerElement.style.display="none"},za.prototype.show=function(){this.layerElement.style.display="block"};function yh(){}m([K2,Df,Pf,q2,N8],yh),yh.prototype.initElement=function(M,_,K){this.initFrame(),this.initBaseData(M,_,K),this.initTransform(M,_,K),this.initRenderable(),this.initHierarchy(),this.initRendererElement(),this.createContainerElements(),this.createRenderableComponents(),(this.data.xt||!_.progressiveLoad)&&this.buildAllItems(),this.hide()},yh.prototype.prepareFrame=function(M){if(this._mdf=!1,this.prepareRenderableFrame(M),this.prepareProperties(M,this.isInRange),!(!this.isInRange&&!this.data.xt)){if(this.tm._placeholder)this.renderedFrame=M/this.data.sr;else{var _=this.tm.v;_===this.data.op&&(_=this.data.op-1),this.renderedFrame=_}var K,oe=this.elements.length;for(this.completeLayers||this.checkLayers(this.renderedFrame),K=oe-1;K>=0;K-=1)(this.completeLayers||this.elements[K])&&(this.elements[K].prepareFrame(this.renderedFrame-this.layers[K].st),this.elements[K]._mdf&&(this._mdf=!0))}},yh.prototype.renderInnerContent=function(){var M,_=this.layers.length;for(M=0;M<_;M+=1)(this.completeLayers||this.elements[M])&&this.elements[M].renderFrame()},yh.prototype.setElements=function(M){this.elements=M},yh.prototype.getElements=function(){return this.elements},yh.prototype.destroyElements=function(){var M,_=this.layers.length;for(M=0;M<_;M+=1)this.elements[M]&&this.elements[M].destroy()},yh.prototype.destroy=function(){this.destroyElements(),this.destroyBaseElement()};function V8(M,_,K){this.layers=M.layers,this.supports3d=!0,this.completeLayers=!1,this.pendingElements=[],this.elements=this.layers?w(this.layers.length):[],this.initElement(M,_,K),this.tm=M.tm?jt.getProp(this,M.tm,0,_.frameRate,this):{_placeholder:!0}}m([za,yh,O8],V8),V8.prototype.createComp=function(M){return new V8(M,this.globalData,this)};function EB(M,_){this.animationItem=M,this.layers=null,this.renderedFrame=-1,this.svgElement=xe("svg");var K="";if(_&&_.title){var oe=xe("title"),se=O();oe.setAttribute("id",se),oe.textContent=_.title,this.svgElement.appendChild(oe),K+=se}if(_&&_.description){var re=xe("desc"),ve=O();re.setAttribute("id",ve),re.textContent=_.description,this.svgElement.appendChild(re),K+=" "+ve}K&&this.svgElement.setAttribute("aria-labelledby",K);var Be=xe("defs");this.svgElement.appendChild(Be);var we=xe("g");this.svgElement.appendChild(we),this.layerElement=we,this.renderConfig={preserveAspectRatio:_&&_.preserveAspectRatio||"xMidYMid meet",imagePreserveAspectRatio:_&&_.imagePreserveAspectRatio||"xMidYMid slice",contentVisibility:_&&_.contentVisibility||"visible",progressiveLoad:_&&_.progressiveLoad||!1,hideOnTransparent:!(_&&_.hideOnTransparent===!1),viewBoxOnly:_&&_.viewBoxOnly||!1,viewBoxSize:_&&_.viewBoxSize||!1,className:_&&_.className||"",id:_&&_.id||"",focusable:_&&_.focusable,filterSize:{width:_&&_.filterSize&&_.filterSize.width||"100%",height:_&&_.filterSize&&_.filterSize.height||"100%",x:_&&_.filterSize&&_.filterSize.x||"0%",y:_&&_.filterSize&&_.filterSize.y||"0%"},width:_&&_.width,height:_&&_.height,runExpressions:!_||_.runExpressions===void 0||_.runExpressions},this.globalData={_mdf:!1,frameNum:-1,defs:Be,renderConfig:this.renderConfig},this.elements=[],this.pendingElements=[],this.destroyed=!1,this.rendererType="svg"}return m([za],EB),EB.prototype.createComp=function(M){return new V8(M,this.globalData,this)},Ie("svg",EB),Op.registerModifier("tm",gd),Op.registerModifier("pb",Np),Op.registerModifier("rp",Zd),Op.registerModifier("rd",W2),Op.registerModifier("zz",Cn),Op.registerModifier("op",z8),qo}))})(F$,F$.exports)),F$.exports}var tee,oee;function UYe(){return oee||(oee=1,tee=function e(t,i){if(t===i)return!0;if(t&&i&&typeof t=="object"&&typeof i=="object"){if(t.constructor!==i.constructor)return!1;var n,a,l;if(Array.isArray(t)){if(n=t.length,n!=i.length)return!1;for(a=n;a--!==0;)if(!e(t[a],i[a]))return!1;return!0}if(t instanceof Map&&i instanceof Map){if(t.size!==i.size)return!1;for(a of t.entries())if(!i.has(a[0]))return!1;for(a of t.entries())if(!e(a[1],i.get(a[0])))return!1;return!0}if(t instanceof Set&&i instanceof Set){if(t.size!==i.size)return!1;for(a of t.entries())if(!i.has(a[0]))return!1;return!0}if(ArrayBuffer.isView(t)&&ArrayBuffer.isView(i)){if(n=t.length,n!=i.length)return!1;for(a=n;a--!==0;)if(t[a]!==i[a])return!1;return!0}if(t.constructor===RegExp)return t.source===i.source&&t.flags===i.flags;if(t.valueOf!==Object.prototype.valueOf)return t.valueOf()===i.valueOf();if(t.toString!==Object.prototype.toString)return t.toString()===i.toString();if(l=Object.keys(t),n=l.length,n!==Object.keys(i).length)return!1;for(a=n;a--!==0;)if(!Object.prototype.hasOwnProperty.call(i,l[a]))return!1;for(a=n;a--!==0;){var d=l[a];if(!(d==="_owner"&&t.$$typeof)&&!e(t[d],i[d]))return!1}return!0}return t!==t&&i!==i}),tee}var jB,iee;function WYe(){if(iee)return jB;iee=1,jB=t;function e(n){return n instanceof fk?fk.from(n):new n.constructor(n.buffer.slice(),n.byteOffset,n.length)}function t(n){if(n=n||{},n.circles)return i(n);const a=new Map;if(a.set(Date,u=>new Date(u)),a.set(Map,(u,h)=>new Map(d(Array.from(u),h))),a.set(Set,(u,h)=>new Set(d(Array.from(u),h))),n.constructorHandlers)for(const u of n.constructorHandlers)a.set(u[0],u[1]);let l=null;return n.proto?p:c;function d(u,h){const m=Object.keys(u),f=new Array(m.length);for(let x=0;x<m.length;x++){const y=m[x],w=u[y];typeof w!="object"||w===null?f[y]=w:w.constructor!==Object&&(l=a.get(w.constructor))?f[y]=l(w,h):ArrayBuffer.isView(w)?f[y]=e(w):f[y]=h(w)}return f}function c(u){if(typeof u!="object"||u===null)return u;if(Array.isArray(u))return d(u,c);if(u.constructor!==Object&&(l=a.get(u.constructor)))return l(u,c);const h={};for(const m in u){if(Object.hasOwnProperty.call(u,m)===!1)continue;const f=u[m];typeof f!="object"||f===null?h[m]=f:f.constructor!==Object&&(l=a.get(f.constructor))?h[m]=l(f,c):ArrayBuffer.isView(f)?h[m]=e(f):h[m]=c(f)}return h}function p(u){if(typeof u!="object"||u===null)return u;if(Array.isArray(u))return d(u,p);if(u.constructor!==Object&&(l=a.get(u.constructor)))return l(u,p);const h={};for(const m in u){const f=u[m];typeof f!="object"||f===null?h[m]=f:f.constructor!==Object&&(l=a.get(f.constructor))?h[m]=l(f,p):ArrayBuffer.isView(f)?h[m]=e(f):h[m]=p(f)}return h}}function i(n){const a=[],l=[],d=new Map;if(d.set(Date,m=>new Date(m)),d.set(Map,(m,f)=>new Map(p(Array.from(m),f))),d.set(Set,(m,f)=>new Set(p(Array.from(m),f))),n.constructorHandlers)for(const m of n.constructorHandlers)d.set(m[0],m[1]);let c=null;return n.proto?h:u;function p(m,f){const x=Object.keys(m),y=new Array(x.length);for(let w=0;w<x.length;w++){const b=x[w],C=m[b];if(typeof C!="object"||C===null)y[b]=C;else if(C.constructor!==Object&&(c=d.get(C.constructor)))y[b]=c(C,f);else if(ArrayBuffer.isView(C))y[b]=e(C);else{const k=a.indexOf(C);k!==-1?y[b]=l[k]:y[b]=f(C)}}return y}function u(m){if(typeof m!="object"||m===null)return m;if(Array.isArray(m))return p(m,u);if(m.constructor!==Object&&(c=d.get(m.constructor)))return c(m,u);const f={};a.push(m),l.push(f);for(const x in m){if(Object.hasOwnProperty.call(m,x)===!1)continue;const y=m[x];if(typeof y!="object"||y===null)f[x]=y;else if(y.constructor!==Object&&(c=d.get(y.constructor)))f[x]=c(y,u);else if(ArrayBuffer.isView(y))f[x]=e(y);else{const w=a.indexOf(y);w!==-1?f[x]=l[w]:f[x]=u(y)}}return a.pop(),l.pop(),f}function h(m){if(typeof m!="object"||m===null)return m;if(Array.isArray(m))return p(m,h);if(m.constructor!==Object&&(c=d.get(m.constructor)))return c(m,h);const f={};a.push(m),l.push(f);for(const x in m){const y=m[x];if(typeof y!="object"||y===null)f[x]=y;else if(y.constructor!==Object&&(c=d.get(y.constructor)))f[x]=c(y,h);else if(ArrayBuffer.isView(y))f[x]=e(y);else{const w=a.indexOf(y);w!==-1?f[x]=l[w]:f[x]=h(y)}}return a.pop(),l.pop(),f}}return jB}var ree,nee;function GYe(){return nee||(nee=1,ree=WYe()()),ree}var MB,aee;function YYe(){if(aee)return MB;aee=1;function e(f){return f&&typeof f=="object"&&"default"in f?f.default:f}var t=e(QYe()),i=A,n=e(i),a=e(UYe()),l=e(GYe());function d(){return d=Object.assign?Object.assign.bind():function(f){for(var x=1;x<arguments.length;x++){var y=arguments[x];for(var w in y)Object.prototype.hasOwnProperty.call(y,w)&&(f[w]=y[w])}return f},d.apply(this,arguments)}function c(f,x){if(f==null)return{};var y={},w=Object.keys(f),b,C;for(C=0;C<w.length;C++)b=w[C],!(x.indexOf(b)>=0)&&(y[b]=f[b]);return y}var p={},u=function(){},h=function(f){var x=f.loadAnimation,y=i.memo(i.forwardRef(function(w,b){var C=w.play,k=C===void 0?null:C,E=w.speed,S=E===void 0?1:E,j=w.direction,I=j===void 0?1:j,T=w.segments,P=T===void 0?null:T,B=w.goTo,D=B===void 0?null:B,F=w.useSubframes,Y=F===void 0?!0:F,q=w.renderer,Z=q===void 0?"svg":q,V=w.loop,H=V===void 0?!0:V,N=w.rendererSettings,O=N===void 0?p:N,z=w.audioFactory,R=w.onLoad,te=R===void 0?u:R,G=w.onComplete,W=G===void 0?u:G,ee=w.onLoopComplete,J=ee===void 0?u:ee,ne=w.onEnterFrame,ye=ne===void 0?u:ne,me=w.onSegmentStart,ue=me===void 0?u:me,pe=c(w,["play","speed","direction","segments","goTo","useSubframes","renderer","loop","rendererSettings","audioFactory","onLoad","onComplete","onLoopComplete","onEnterFrame","onSegmentStart"]),xe=pe,be,le;if("animationData"in pe){var ae=pe;be=ae.animationData,xe=c(ae,["animationData"])}if("path"in pe){var fe=pe;le=fe.path,xe=c(fe,["path"])}var $e=i.useRef(null),ie=i.useRef(),he=i.useCallback(function(){if(ie.current==null)throw new Error("Lottie ref is not set");return ie.current},[]),Ie=i.useState(!1),Fe=Ie[0],Se=Ie[1],ze=i.useState(P),Re=ze[0],tt=ze[1];i.useEffect(function(){a(Re,P)||tt(P)},[P,Re]);var Je=i.useState(O),Pe=Je[0],qe=Je[1];i.useEffect(function(){a(Pe,O)||qe(O)},[O,Pe]),i.useEffect(function(){return function(){return he().removeEventListener("complete",W)}},[he,W]),i.useEffect(function(){return function(){return he().removeEventListener("loopComplete",J)}},[he,J]),i.useEffect(function(){return function(){return he().removeEventListener("enterFrame",ye)}},[he,ye]),i.useEffect(function(){return function(){return he().removeEventListener("segmentStart",ue)}},[he,ue]),i.useEffect(function(){return function(){return he().removeEventListener("DOMLoaded",te)}},[he,te]);var Ae=i.useCallback(function(at){ie.current=at,typeof b=="function"?b(at):b!=null&&(b.current=at)},[b]);i.useEffect(function(){function at(){return be==null||typeof be!="object"?be:"default"in be&&typeof be.default=="object"?l(be.default):l(be)}if($e.current==null)throw new Error("animElementRef is not set");var Ne=x(d({animationData:at(),path:le,container:$e.current,renderer:Z,loop:!1,autoplay:!1,rendererSettings:Pe},z?{audioFactory:z}:{}));Ae(Ne);var it=function(){return Se(!0)};return he().addEventListener("DOMLoaded",it),function(){he().removeEventListener("DOMLoaded",it),Se(!1),he().destroy(),Ae(void 0)}},[H,Z,Pe,be,le,z,Ae,he]),i.useEffect(function(){he().addEventListener("DOMLoaded",te)},[he,te]),i.useEffect(function(){he().addEventListener("complete",W)},[he,W]),i.useEffect(function(){he().addEventListener("loopComplete",J)},[he,J]),i.useEffect(function(){he().addEventListener("enterFrame",ye)},[he,ye]),i.useEffect(function(){he().addEventListener("segmentStart",ue)},[he,ue]),i.useEffect(function(){Fe&&(he().loop=H)},[Fe,H,he]);var Oe=i.useRef(!1);return i.useEffect(function(){if(!Fe)return;function at(_e){he().goToAndPlay(_e,!0),he().setDirection(I)}if(k===!0){var Ne=!0;if(Re){if(he().playSegments(Re,Ne),Oe.current=!0,I===-1){var it=typeof Re[1]=="number"?Re[1]:Re[1][1];at(it)}}else if(Oe.current&&he().resetSegments(Ne),Oe.current=!1,I===-1){var mt=he().getDuration(!0);at(mt)}else he().play()}else k===!1&&he().pause()},[k,Re,Fe,I,he]),i.useEffect(function(){Fe&&(Number.isNaN(S)||he().setSpeed(S))},[S,Fe,he]),i.useEffect(function(){Fe&&he().setDirection(I)},[I,he,Fe]),i.useEffect(function(){if(Fe&&D!=null){var at=!0;k?he().goToAndPlay(D,at):he().goToAndStop(D,at)}},[he,D,k,Fe]),i.useEffect(function(){he().setSubframe&&he().setSubframe(Y)},[he,Y]),n.createElement("div",d({},xe,{ref:$e}))}));return y},m=h(t);return MB=m,MB}var KYe=YYe();const ua=Fi(KYe);var BB,see;function qYe(){if(see)return BB;see=1;function e(){this.__data__=[],this.size=0}return BB=e,BB}var DB,lee;function rL(){if(lee)return DB;lee=1;function e(t,i){return t===i||t!==t&&i!==i}return DB=e,DB}var PB,dee;function nL(){if(dee)return PB;dee=1;var e=rL();function t(i,n){for(var a=i.length;a--;)if(e(i[a][0],n))return a;return-1}return PB=t,PB}var TB,cee;function ZYe(){if(cee)return TB;cee=1;var e=nL(),t=Array.prototype,i=t.splice;function n(a){var l=this.__data__,d=e(l,a);if(d<0)return!1;var c=l.length-1;return d==c?l.pop():i.call(l,d,1),--this.size,!0}return TB=n,TB}var zB,pee;function JYe(){if(pee)return zB;pee=1;var e=nL();function t(i){var n=this.__data__,a=e(n,i);return a<0?void 0:n[a][1]}return zB=t,zB}var FB,uee;function XYe(){if(uee)return FB;uee=1;var e=nL();function t(i){return e(this.__data__,i)>-1}return FB=t,FB}var RB,hee;function eKe(){if(hee)return RB;hee=1;var e=nL();function t(i,n){var a=this.__data__,l=e(a,i);return l<0?(++this.size,a.push([i,n])):a[l][1]=n,this}return RB=t,RB}var OB,mee;function aL(){if(mee)return OB;mee=1;var e=qYe(),t=ZYe(),i=JYe(),n=XYe(),a=eKe();function l(d){var c=-1,p=d==null?0:d.length;for(this.clear();++c<p;){var u=d[c];this.set(u[0],u[1])}}return l.prototype.clear=e,l.prototype.delete=t,l.prototype.get=i,l.prototype.has=n,l.prototype.set=a,OB=l,OB}var NB,gee;function tKe(){if(gee)return NB;gee=1;var e=aL();function t(){this.__data__=new e,this.size=0}return NB=t,NB}var HB,fee;function oKe(){if(fee)return HB;fee=1;function e(t){var i=this.__data__,n=i.delete(t);return this.size=i.size,n}return HB=e,HB}var _B,xee;function iKe(){if(xee)return _B;xee=1;function e(t){return this.__data__.get(t)}return _B=e,_B}var VB,yee;function rKe(){if(yee)return VB;yee=1;function e(t){return this.__data__.has(t)}return VB=e,VB}var QB,wee;function Nbe(){if(wee)return QB;wee=1;var e=typeof Vl=="object"&&Vl&&Vl.Object===Object&&Vl;return QB=e,QB}var UB,bee;function H1(){if(bee)return UB;bee=1;var e=Nbe(),t=typeof self=="object"&&self&&self.Object===Object&&self,i=e||t||Function("return this")();return UB=i,UB}var WB,vee;function q6(){if(vee)return WB;vee=1;var e=H1(),t=e.Symbol;return WB=t,WB}var GB,Cee;function nKe(){if(Cee)return GB;Cee=1;var e=q6(),t=Object.prototype,i=t.hasOwnProperty,n=t.toString,a=e?e.toStringTag:void 0;function l(d){var c=i.call(d,a),p=d[a];try{d[a]=void 0;var u=!0}catch{}var h=n.call(d);return u&&(c?d[a]=p:delete d[a]),h}return GB=l,GB}var YB,Aee;function aKe(){if(Aee)return YB;Aee=1;var e=Object.prototype,t=e.toString;function i(n){return t.call(n)}return YB=i,YB}var KB,$ee;function Z6(){if($ee)return KB;$ee=1;var e=q6(),t=nKe(),i=aKe(),n="[object Null]",a="[object Undefined]",l=e?e.toStringTag:void 0;function d(c){return c==null?c===void 0?a:n:l&&l in Object(c)?t(c):i(c)}return KB=d,KB}var qB,kee;function _1(){if(kee)return qB;kee=1;function e(t){var i=typeof t;return t!=null&&(i=="object"||i=="function")}return qB=e,qB}var ZB,See;function Hbe(){if(See)return ZB;See=1;var e=Z6(),t=_1(),i="[object AsyncFunction]",n="[object Function]",a="[object GeneratorFunction]",l="[object Proxy]";function d(c){if(!t(c))return!1;var p=e(c);return p==n||p==a||p==i||p==l}return ZB=d,ZB}var JB,Eee;function sKe(){if(Eee)return JB;Eee=1;var e=H1(),t=e["__core-js_shared__"];return JB=t,JB}var XB,Lee;function lKe(){if(Lee)return XB;Lee=1;var e=sKe(),t=(function(){var n=/[^.]+$/.exec(e&&e.keys&&e.keys.IE_PROTO||"");return n?"Symbol(src)_1."+n:""})();function i(n){return!!t&&t in n}return XB=i,XB}var eD,Iee;function _be(){if(Iee)return eD;Iee=1;var e=Function.prototype,t=e.toString;function i(n){if(n!=null){try{return t.call(n)}catch{}try{return n+""}catch{}}return""}return eD=i,eD}var tD,jee;function dKe(){if(jee)return tD;jee=1;var e=Hbe(),t=lKe(),i=_1(),n=_be(),a=/[\\^$.*+?()[\]{}|]/g,l=/^\[object .+?Constructor\]$/,d=Function.prototype,c=Object.prototype,p=d.toString,u=c.hasOwnProperty,h=RegExp("^"+p.call(u).replace(a,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");function m(f){if(!i(f)||t(f))return!1;var x=e(f)?h:l;return x.test(n(f))}return tD=m,tD}var oD,Mee;function cKe(){if(Mee)return oD;Mee=1;function e(t,i){return t?.[i]}return oD=e,oD}var iD,Bee;function _4(){if(Bee)return iD;Bee=1;var e=dKe(),t=cKe();function i(n,a){var l=t(n,a);return e(l)?l:void 0}return iD=i,iD}var rD,Dee;function lY(){if(Dee)return rD;Dee=1;var e=_4(),t=H1(),i=e(t,"Map");return rD=i,rD}var nD,Pee;function sL(){if(Pee)return nD;Pee=1;var e=_4(),t=e(Object,"create");return nD=t,nD}var aD,Tee;function pKe(){if(Tee)return aD;Tee=1;var e=sL();function t(){this.__data__=e?e(null):{},this.size=0}return aD=t,aD}var sD,zee;function uKe(){if(zee)return sD;zee=1;function e(t){var i=this.has(t)&&delete this.__data__[t];return this.size-=i?1:0,i}return sD=e,sD}var lD,Fee;function hKe(){if(Fee)return lD;Fee=1;var e=sL(),t="__lodash_hash_undefined__",i=Object.prototype,n=i.hasOwnProperty;function a(l){var d=this.__data__;if(e){var c=d[l];return c===t?void 0:c}return n.call(d,l)?d[l]:void 0}return lD=a,lD}var dD,Ree;function mKe(){if(Ree)return dD;Ree=1;var e=sL(),t=Object.prototype,i=t.hasOwnProperty;function n(a){var l=this.__data__;return e?l[a]!==void 0:i.call(l,a)}return dD=n,dD}var cD,Oee;function gKe(){if(Oee)return cD;Oee=1;var e=sL(),t="__lodash_hash_undefined__";function i(n,a){var l=this.__data__;return this.size+=this.has(n)?0:1,l[n]=e&&a===void 0?t:a,this}return cD=i,cD}var pD,Nee;function fKe(){if(Nee)return pD;Nee=1;var e=pKe(),t=uKe(),i=hKe(),n=mKe(),a=gKe();function l(d){var c=-1,p=d==null?0:d.length;for(this.clear();++c<p;){var u=d[c];this.set(u[0],u[1])}}return l.prototype.clear=e,l.prototype.delete=t,l.prototype.get=i,l.prototype.has=n,l.prototype.set=a,pD=l,pD}var uD,Hee;function xKe(){if(Hee)return uD;Hee=1;var e=fKe(),t=aL(),i=lY();function n(){this.size=0,this.__data__={hash:new e,map:new(i||t),string:new e}}return uD=n,uD}var hD,_ee;function yKe(){if(_ee)return hD;_ee=1;function e(t){var i=typeof t;return i=="string"||i=="number"||i=="symbol"||i=="boolean"?t!=="__proto__":t===null}return hD=e,hD}var mD,Vee;function lL(){if(Vee)return mD;Vee=1;var e=yKe();function t(i,n){var a=i.__data__;return e(n)?a[typeof n=="string"?"string":"hash"]:a.map}return mD=t,mD}var gD,Qee;function wKe(){if(Qee)return gD;Qee=1;var e=lL();function t(i){var n=e(this,i).delete(i);return this.size-=n?1:0,n}return gD=t,gD}var fD,Uee;function bKe(){if(Uee)return fD;Uee=1;var e=lL();function t(i){return e(this,i).get(i)}return fD=t,fD}var xD,Wee;function vKe(){if(Wee)return xD;Wee=1;var e=lL();function t(i){return e(this,i).has(i)}return xD=t,xD}var yD,Gee;function CKe(){if(Gee)return yD;Gee=1;var e=lL();function t(i,n){var a=e(this,i),l=a.size;return a.set(i,n),this.size+=a.size==l?0:1,this}return yD=t,yD}var wD,Yee;function dY(){if(Yee)return wD;Yee=1;var e=xKe(),t=wKe(),i=bKe(),n=vKe(),a=CKe();function l(d){var c=-1,p=d==null?0:d.length;for(this.clear();++c<p;){var u=d[c];this.set(u[0],u[1])}}return l.prototype.clear=e,l.prototype.delete=t,l.prototype.get=i,l.prototype.has=n,l.prototype.set=a,wD=l,wD}var bD,Kee;function AKe(){if(Kee)return bD;Kee=1;var e=aL(),t=lY(),i=dY(),n=200;function a(l,d){var c=this.__data__;if(c instanceof e){var p=c.__data__;if(!t||p.length<n-1)return p.push([l,d]),this.size=++c.size,this;c=this.__data__=new i(p)}return c.set(l,d),this.size=c.size,this}return bD=a,bD}var vD,qee;function cY(){if(qee)return vD;qee=1;var e=aL(),t=tKe(),i=oKe(),n=iKe(),a=rKe(),l=AKe();function d(c){var p=this.__data__=new e(c);this.size=p.size}return d.prototype.clear=t,d.prototype.delete=i,d.prototype.get=n,d.prototype.has=a,d.prototype.set=l,vD=d,vD}var CD,Zee;function $Ke(){if(Zee)return CD;Zee=1;var e="__lodash_hash_undefined__";function t(i){return this.__data__.set(i,e),this}return CD=t,CD}var AD,Jee;function kKe(){if(Jee)return AD;Jee=1;function e(t){return this.__data__.has(t)}return AD=e,AD}var $D,Xee;function Vbe(){if(Xee)return $D;Xee=1;var e=dY(),t=$Ke(),i=kKe();function n(a){var l=-1,d=a==null?0:a.length;for(this.__data__=new e;++l<d;)this.add(a[l])}return n.prototype.add=n.prototype.push=t,n.prototype.has=i,$D=n,$D}var kD,ete;function SKe(){if(ete)return kD;ete=1;function e(t,i){for(var n=-1,a=t==null?0:t.length;++n<a;)if(i(t[n],n,t))return!0;return!1}return kD=e,kD}var SD,tte;function Qbe(){if(tte)return SD;tte=1;function e(t,i){return t.has(i)}return SD=e,SD}var ED,ote;function Ube(){if(ote)return ED;ote=1;var e=Vbe(),t=SKe(),i=Qbe(),n=1,a=2;function l(d,c,p,u,h,m){var f=p&n,x=d.length,y=c.length;if(x!=y&&!(f&&y>x))return!1;var w=m.get(d),b=m.get(c);if(w&&b)return w==c&&b==d;var C=-1,k=!0,E=p&a?new e:void 0;for(m.set(d,c),m.set(c,d);++C<x;){var S=d[C],j=c[C];if(u)var I=f?u(j,S,C,c,d,m):u(S,j,C,d,c,m);if(I!==void 0){if(I)continue;k=!1;break}if(E){if(!t(c,function(T,P){if(!i(E,P)&&(S===T||h(S,T,p,u,m)))return E.push(P)})){k=!1;break}}else if(!(S===j||h(S,j,p,u,m))){k=!1;break}}return m.delete(d),m.delete(c),k}return ED=l,ED}var LD,ite;function Wbe(){if(ite)return LD;ite=1;var e=H1(),t=e.Uint8Array;return LD=t,LD}var ID,rte;function EKe(){if(rte)return ID;rte=1;function e(t){var i=-1,n=Array(t.size);return t.forEach(function(a,l){n[++i]=[l,a]}),n}return ID=e,ID}var jD,nte;function pY(){if(nte)return jD;nte=1;function e(t){var i=-1,n=Array(t.size);return t.forEach(function(a){n[++i]=a}),n}return jD=e,jD}var MD,ate;function LKe(){if(ate)return MD;ate=1;var e=q6(),t=Wbe(),i=rL(),n=Ube(),a=EKe(),l=pY(),d=1,c=2,p="[object Boolean]",u="[object Date]",h="[object Error]",m="[object Map]",f="[object Number]",x="[object RegExp]",y="[object Set]",w="[object String]",b="[object Symbol]",C="[object ArrayBuffer]",k="[object DataView]",E=e?e.prototype:void 0,S=E?E.valueOf:void 0;function j(I,T,P,B,D,F,Y){switch(P){case k:if(I.byteLength!=T.byteLength||I.byteOffset!=T.byteOffset)return!1;I=I.buffer,T=T.buffer;case C:return!(I.byteLength!=T.byteLength||!F(new t(I),new t(T)));case p:case u:case f:return i(+I,+T);case h:return I.name==T.name&&I.message==T.message;case x:case w:return I==T+"";case m:var q=a;case y:var Z=B&d;if(q||(q=l),I.size!=T.size&&!Z)return!1;var V=Y.get(I);if(V)return V==T;B|=c,Y.set(I,T);var H=n(q(I),q(T),B,D,F,Y);return Y.delete(I),H;case b:if(S)return S.call(I)==S.call(T)}return!1}return MD=j,MD}var BD,ste;function uY(){if(ste)return BD;ste=1;function e(t,i){for(var n=-1,a=i.length,l=t.length;++n<a;)t[l+n]=i[n];return t}return BD=e,BD}var DD,lte;function vs(){if(lte)return DD;lte=1;var e=Array.isArray;return DD=e,DD}var PD,dte;function Gbe(){if(dte)return PD;dte=1;var e=uY(),t=vs();function i(n,a,l){var d=a(n);return t(n)?d:e(d,l(n))}return PD=i,PD}var TD,cte;function hY(){if(cte)return TD;cte=1;function e(t,i){for(var n=-1,a=t==null?0:t.length,l=0,d=[];++n<a;){var c=t[n];i(c,n,t)&&(d[l++]=c)}return d}return TD=e,TD}var zD,pte;function Ybe(){if(pte)return zD;pte=1;function e(){return[]}return zD=e,zD}var FD,ute;function mY(){if(ute)return FD;ute=1;var e=hY(),t=Ybe(),i=Object.prototype,n=i.propertyIsEnumerable,a=Object.getOwnPropertySymbols,l=a?function(d){return d==null?[]:(d=Object(d),e(a(d),function(c){return n.call(d,c)}))}:t;return FD=l,FD}var RD,hte;function Kbe(){if(hte)return RD;hte=1;function e(t,i){for(var n=-1,a=Array(t);++n<t;)a[n]=i(n);return a}return RD=e,RD}var OD,mte;function j2(){if(mte)return OD;mte=1;function e(t){return t!=null&&typeof t=="object"}return OD=e,OD}var ND,gte;function IKe(){if(gte)return ND;gte=1;var e=Z6(),t=j2(),i="[object Arguments]";function n(a){return t(a)&&e(a)==i}return ND=n,ND}var HD,fte;function gY(){if(fte)return HD;fte=1;var e=IKe(),t=j2(),i=Object.prototype,n=i.hasOwnProperty,a=i.propertyIsEnumerable,l=e((function(){return arguments})())?e:function(d){return t(d)&&n.call(d,"callee")&&!a.call(d,"callee")};return HD=l,HD}var R$={exports:{}},_D,xte;function jKe(){if(xte)return _D;xte=1;function e(){return!1}return _D=e,_D}R$.exports;var yte;function fY(){return yte||(yte=1,(function(e,t){var i=H1(),n=jKe(),a=t&&!t.nodeType&&t,l=a&&!0&&e&&!e.nodeType&&e,d=l&&l.exports===a,c=d?i.Buffer:void 0,p=c?c.isBuffer:void 0,u=p||n;e.exports=u})(R$,R$.exports)),R$.exports}var VD,wte;function Ww(){if(wte)return VD;wte=1;var e=9007199254740991,t=/^(?:0|[1-9]\d*)$/;function i(n,a){var l=typeof n;return a=a??e,!!a&&(l=="number"||l!="symbol"&&t.test(n))&&n>-1&&n%1==0&&n<a}return VD=i,VD}var QD,bte;function xY(){if(bte)return QD;bte=1;var e=9007199254740991;function t(i){return typeof i=="number"&&i>-1&&i%1==0&&i<=e}return QD=t,QD}var UD,vte;function MKe(){if(vte)return UD;vte=1;var e=Z6(),t=xY(),i=j2(),n="[object Arguments]",a="[object Array]",l="[object Boolean]",d="[object Date]",c="[object Error]",p="[object Function]",u="[object Map]",h="[object Number]",m="[object Object]",f="[object RegExp]",x="[object Set]",y="[object String]",w="[object WeakMap]",b="[object ArrayBuffer]",C="[object DataView]",k="[object Float32Array]",E="[object Float64Array]",S="[object Int8Array]",j="[object Int16Array]",I="[object Int32Array]",T="[object Uint8Array]",P="[object Uint8ClampedArray]",B="[object Uint16Array]",D="[object Uint32Array]",F={};F[k]=F[E]=F[S]=F[j]=F[I]=F[T]=F[P]=F[B]=F[D]=!0,F[n]=F[a]=F[b]=F[l]=F[C]=F[d]=F[c]=F[p]=F[u]=F[h]=F[m]=F[f]=F[x]=F[y]=F[w]=!1;function Y(q){return i(q)&&t(q.length)&&!!F[e(q)]}return UD=Y,UD}var WD,Cte;function dL(){if(Cte)return WD;Cte=1;function e(t){return function(i){return t(i)}}return WD=e,WD}var O$={exports:{}};O$.exports;var Ate;function yY(){return Ate||(Ate=1,(function(e,t){var i=Nbe(),n=t&&!t.nodeType&&t,a=n&&!0&&e&&!e.nodeType&&e,l=a&&a.exports===n,d=l&&i.process,c=(function(){try{var p=a&&a.require&&a.require("util").types;return p||d&&d.binding&&d.binding("util")}catch{}})();e.exports=c})(O$,O$.exports)),O$.exports}var GD,$te;function qbe(){if($te)return GD;$te=1;var e=MKe(),t=dL(),i=yY(),n=i&&i.isTypedArray,a=n?t(n):e;return GD=a,GD}var YD,kte;function Zbe(){if(kte)return YD;kte=1;var e=Kbe(),t=gY(),i=vs(),n=fY(),a=Ww(),l=qbe(),d=Object.prototype,c=d.hasOwnProperty;function p(u,h){var m=i(u),f=!m&&t(u),x=!m&&!f&&n(u),y=!m&&!f&&!x&&l(u),w=m||f||x||y,b=w?e(u.length,String):[],C=b.length;for(var k in u)(h||c.call(u,k))&&!(w&&(k=="length"||x&&(k=="offset"||k=="parent")||y&&(k=="buffer"||k=="byteLength"||k=="byteOffset")||a(k,C)))&&b.push(k);return b}return YD=p,YD}var KD,Ste;function wY(){if(Ste)return KD;Ste=1;var e=Object.prototype;function t(i){var n=i&&i.constructor,a=typeof n=="function"&&n.prototype||e;return i===a}return KD=t,KD}var qD,Ete;function Jbe(){if(Ete)return qD;Ete=1;function e(t,i){return function(n){return t(i(n))}}return qD=e,qD}var ZD,Lte;function BKe(){if(Lte)return ZD;Lte=1;var e=Jbe(),t=e(Object.keys,Object);return ZD=t,ZD}var JD,Ite;function DKe(){if(Ite)return JD;Ite=1;var e=wY(),t=BKe(),i=Object.prototype,n=i.hasOwnProperty;function a(l){if(!e(l))return t(l);var d=[];for(var c in Object(l))n.call(l,c)&&c!="constructor"&&d.push(c);return d}return JD=a,JD}var XD,jte;function J6(){if(jte)return XD;jte=1;var e=Hbe(),t=xY();function i(n){return n!=null&&t(n.length)&&!e(n)}return XD=i,XD}var eP,Mte;function Gw(){if(Mte)return eP;Mte=1;var e=Zbe(),t=DKe(),i=J6();function n(a){return i(a)?e(a):t(a)}return eP=n,eP}var tP,Bte;function Xbe(){if(Bte)return tP;Bte=1;var e=Gbe(),t=mY(),i=Gw();function n(a){return e(a,i,t)}return tP=n,tP}var oP,Dte;function PKe(){if(Dte)return oP;Dte=1;var e=Xbe(),t=1,i=Object.prototype,n=i.hasOwnProperty;function a(l,d,c,p,u,h){var m=c&t,f=e(l),x=f.length,y=e(d),w=y.length;if(x!=w&&!m)return!1;for(var b=x;b--;){var C=f[b];if(!(m?C in d:n.call(d,C)))return!1}var k=h.get(l),E=h.get(d);if(k&&E)return k==d&&E==l;var S=!0;h.set(l,d),h.set(d,l);for(var j=m;++b<x;){C=f[b];var I=l[C],T=d[C];if(p)var P=m?p(T,I,C,d,l,h):p(I,T,C,l,d,h);if(!(P===void 0?I===T||u(I,T,c,p,h):P)){S=!1;break}j||(j=C=="constructor")}if(S&&!j){var B=l.constructor,D=d.constructor;B!=D&&"constructor"in l&&"constructor"in d&&!(typeof B=="function"&&B instanceof B&&typeof D=="function"&&D instanceof D)&&(S=!1)}return h.delete(l),h.delete(d),S}return oP=a,oP}var iP,Pte;function TKe(){if(Pte)return iP;Pte=1;var e=_4(),t=H1(),i=e(t,"DataView");return iP=i,iP}var rP,Tte;function zKe(){if(Tte)return rP;Tte=1;var e=_4(),t=H1(),i=e(t,"Promise");return rP=i,rP}var nP,zte;function eve(){if(zte)return nP;zte=1;var e=_4(),t=H1(),i=e(t,"Set");return nP=i,nP}var aP,Fte;function FKe(){if(Fte)return aP;Fte=1;var e=_4(),t=H1(),i=e(t,"WeakMap");return aP=i,aP}var sP,Rte;function cL(){if(Rte)return sP;Rte=1;var e=TKe(),t=lY(),i=zKe(),n=eve(),a=FKe(),l=Z6(),d=_be(),c="[object Map]",p="[object Object]",u="[object Promise]",h="[object Set]",m="[object WeakMap]",f="[object DataView]",x=d(e),y=d(t),w=d(i),b=d(n),C=d(a),k=l;return(e&&k(new e(new ArrayBuffer(1)))!=f||t&&k(new t)!=c||i&&k(i.resolve())!=u||n&&k(new n)!=h||a&&k(new a)!=m)&&(k=function(E){var S=l(E),j=S==p?E.constructor:void 0,I=j?d(j):"";if(I)switch(I){case x:return f;case y:return c;case w:return u;case b:return h;case C:return m}return S}),sP=k,sP}var lP,Ote;function RKe(){if(Ote)return lP;Ote=1;var e=cY(),t=Ube(),i=LKe(),n=PKe(),a=cL(),l=vs(),d=fY(),c=qbe(),p=1,u="[object Arguments]",h="[object Array]",m="[object Object]",f=Object.prototype,x=f.hasOwnProperty;function y(w,b,C,k,E,S){var j=l(w),I=l(b),T=j?h:a(w),P=I?h:a(b);T=T==u?m:T,P=P==u?m:P;var B=T==m,D=P==m,F=T==P;if(F&&d(w)){if(!d(b))return!1;j=!0,B=!1}if(F&&!B)return S||(S=new e),j||c(w)?t(w,b,C,k,E,S):i(w,b,T,C,k,E,S);if(!(C&p)){var Y=B&&x.call(w,"__wrapped__"),q=D&&x.call(b,"__wrapped__");if(Y||q){var Z=Y?w.value():w,V=q?b.value():b;return S||(S=new e),E(Z,V,C,k,S)}}return F?(S||(S=new e),n(w,b,C,k,E,S)):!1}return lP=y,lP}var dP,Nte;function bY(){if(Nte)return dP;Nte=1;var e=RKe(),t=j2();function i(n,a,l,d,c){return n===a?!0:n==null||a==null||!t(n)&&!t(a)?n!==n&&a!==a:e(n,a,l,d,i,c)}return dP=i,dP}var cP,Hte;function OKe(){if(Hte)return cP;Hte=1;var e=bY();function t(i,n){return e(i,n)}return cP=t,cP}var NKe=OKe();const Ao=Fi(NKe);var pP,_te;function HKe(){if(_te)return pP;_te=1;var e=H1(),t=function(){return e.Date.now()};return pP=t,pP}var uP,Vte;function _Ke(){if(Vte)return uP;Vte=1;var e=/\s/;function t(i){for(var n=i.length;n--&&e.test(i.charAt(n)););return n}return uP=t,uP}var hP,Qte;function VKe(){if(Qte)return hP;Qte=1;var e=_Ke(),t=/^\s+/;function i(n){return n&&n.slice(0,e(n)+1).replace(t,"")}return hP=i,hP}var mP,Ute;function Yw(){if(Ute)return mP;Ute=1;var e=Z6(),t=j2(),i="[object Symbol]";function n(a){return typeof a=="symbol"||t(a)&&e(a)==i}return mP=n,mP}var gP,Wte;function tve(){if(Wte)return gP;Wte=1;var e=VKe(),t=_1(),i=Yw(),n=NaN,a=/^[-+]0x[0-9a-f]+$/i,l=/^0b[01]+$/i,d=/^0o[0-7]+$/i,c=parseInt;function p(u){if(typeof u=="number")return u;if(i(u))return n;if(t(u)){var h=typeof u.valueOf=="function"?u.valueOf():u;u=t(h)?h+"":h}if(typeof u!="string")return u===0?u:+u;u=e(u);var m=l.test(u);return m||d.test(u)?c(u.slice(2),m?2:8):a.test(u)?n:+u}return gP=p,gP}var fP,Gte;function ove(){if(Gte)return fP;Gte=1;var e=_1(),t=HKe(),i=tve(),n="Expected a function",a=Math.max,l=Math.min;function d(c,p,u){var h,m,f,x,y,w,b=0,C=!1,k=!1,E=!0;if(typeof c!="function")throw new TypeError(n);p=i(p)||0,e(u)&&(C=!!u.leading,k="maxWait"in u,f=k?a(i(u.maxWait)||0,p):f,E="trailing"in u?!!u.trailing:E);function S(q){var Z=h,V=m;return h=m=void 0,b=q,x=c.apply(V,Z),x}function j(q){return b=q,y=setTimeout(P,p),C?S(q):x}function I(q){var Z=q-w,V=q-b,H=p-Z;return k?l(H,f-V):H}function T(q){var Z=q-w,V=q-b;return w===void 0||Z>=p||Z<0||k&&V>=f}function P(){var q=t();if(T(q))return B(q);y=setTimeout(P,I(q))}function B(q){return y=void 0,E&&h?S(q):(h=m=void 0,x)}function D(){y!==void 0&&clearTimeout(y),b=0,h=w=m=y=void 0}function F(){return y===void 0?x:B(t())}function Y(){var q=t(),Z=T(q);if(h=arguments,m=this,w=q,Z){if(y===void 0)return j(w);if(k)return clearTimeout(y),y=setTimeout(P,p),S(w)}return y===void 0&&(y=setTimeout(P,p)),x}return Y.cancel=D,Y.flush=F,Y}return fP=d,fP}var QKe=ove();const V4=Fi(QKe);var xP,Yte;function ive(){if(Yte)return xP;Yte=1;function e(){}return xP=e,xP}var UKe=ive();const pL=Fi(UKe);var yP,Kte;function rve(){if(Kte)return yP;Kte=1;function e(t,i){for(var n=-1,a=t==null?0:t.length;++n<a&&i(t[n],n,t)!==!1;);return t}return yP=e,yP}var wP,qte;function nve(){if(qte)return wP;qte=1;var e=_4(),t=(function(){try{var i=e(Object,"defineProperty");return i({},"",{}),i}catch{}})();return wP=t,wP}var bP,Zte;function vY(){if(Zte)return bP;Zte=1;var e=nve();function t(i,n,a){n=="__proto__"&&e?e(i,n,{configurable:!0,enumerable:!0,value:a,writable:!0}):i[n]=a}return bP=t,bP}var vP,Jte;function CY(){if(Jte)return vP;Jte=1;var e=vY(),t=rL(),i=Object.prototype,n=i.hasOwnProperty;function a(l,d,c){var p=l[d];(!(n.call(l,d)&&t(p,c))||c===void 0&&!(d in l))&&e(l,d,c)}return vP=a,vP}var CP,Xte;function Kw(){if(Xte)return CP;Xte=1;var e=CY(),t=vY();function i(n,a,l,d){var c=!l;l||(l={});for(var p=-1,u=a.length;++p<u;){var h=a[p],m=d?d(l[h],n[h],h,l,n):void 0;m===void 0&&(m=n[h]),c?t(l,h,m):e(l,h,m)}return l}return CP=i,CP}var AP,eoe;function WKe(){if(eoe)return AP;eoe=1;var e=Kw(),t=Gw();function i(n,a){return n&&e(a,t(a),n)}return AP=i,AP}var $P,toe;function GKe(){if(toe)return $P;toe=1;function e(t){var i=[];if(t!=null)for(var n in Object(t))i.push(n);return i}return $P=e,$P}var kP,ooe;function YKe(){if(ooe)return kP;ooe=1;var e=_1(),t=wY(),i=GKe(),n=Object.prototype,a=n.hasOwnProperty;function l(d){if(!e(d))return i(d);var c=t(d),p=[];for(var u in d)u=="constructor"&&(c||!a.call(d,u))||p.push(u);return p}return kP=l,kP}var SP,ioe;function AY(){if(ioe)return SP;ioe=1;var e=Zbe(),t=YKe(),i=J6();function n(a){return i(a)?e(a,!0):t(a)}return SP=n,SP}var EP,roe;function KKe(){if(roe)return EP;roe=1;var e=Kw(),t=AY();function i(n,a){return n&&e(a,t(a),n)}return EP=i,EP}var N$={exports:{}};N$.exports;var noe;function qKe(){return noe||(noe=1,(function(e,t){var i=H1(),n=t&&!t.nodeType&&t,a=n&&!0&&e&&!e.nodeType&&e,l=a&&a.exports===n,d=l?i.Buffer:void 0,c=d?d.allocUnsafe:void 0;function p(u,h){if(h)return u.slice();var m=u.length,f=c?c(m):new u.constructor(m);return u.copy(f),f}e.exports=p})(N$,N$.exports)),N$.exports}var LP,aoe;function ZKe(){if(aoe)return LP;aoe=1;function e(t,i){var n=-1,a=t.length;for(i||(i=Array(a));++n<a;)i[n]=t[n];return i}return LP=e,LP}var IP,soe;function JKe(){if(soe)return IP;soe=1;var e=Kw(),t=mY();function i(n,a){return e(n,t(n),a)}return IP=i,IP}var jP,loe;function $Y(){if(loe)return jP;loe=1;var e=Jbe(),t=e(Object.getPrototypeOf,Object);return jP=t,jP}var MP,doe;function ave(){if(doe)return MP;doe=1;var e=uY(),t=$Y(),i=mY(),n=Ybe(),a=Object.getOwnPropertySymbols,l=a?function(d){for(var c=[];d;)e(c,i(d)),d=t(d);return c}:n;return MP=l,MP}var BP,coe;function XKe(){if(coe)return BP;coe=1;var e=Kw(),t=ave();function i(n,a){return e(n,t(n),a)}return BP=i,BP}var DP,poe;function kY(){if(poe)return DP;poe=1;var e=Gbe(),t=ave(),i=AY();function n(a){return e(a,i,t)}return DP=n,DP}var PP,uoe;function eqe(){if(uoe)return PP;uoe=1;var e=Object.prototype,t=e.hasOwnProperty;function i(n){var a=n.length,l=new n.constructor(a);return a&&typeof n[0]=="string"&&t.call(n,"index")&&(l.index=n.index,l.input=n.input),l}return PP=i,PP}var TP,hoe;function SY(){if(hoe)return TP;hoe=1;var e=Wbe();function t(i){var n=new i.constructor(i.byteLength);return new e(n).set(new e(i)),n}return TP=t,TP}var zP,moe;function tqe(){if(moe)return zP;moe=1;var e=SY();function t(i,n){var a=n?e(i.buffer):i.buffer;return new i.constructor(a,i.byteOffset,i.byteLength)}return zP=t,zP}var FP,goe;function oqe(){if(goe)return FP;goe=1;var e=/\w*$/;function t(i){var n=new i.constructor(i.source,e.exec(i));return n.lastIndex=i.lastIndex,n}return FP=t,FP}var RP,foe;function iqe(){if(foe)return RP;foe=1;var e=q6(),t=e?e.prototype:void 0,i=t?t.valueOf:void 0;function n(a){return i?Object(i.call(a)):{}}return RP=n,RP}var OP,xoe;function rqe(){if(xoe)return OP;xoe=1;var e=SY();function t(i,n){var a=n?e(i.buffer):i.buffer;return new i.constructor(a,i.byteOffset,i.length)}return OP=t,OP}var NP,yoe;function nqe(){if(yoe)return NP;yoe=1;var e=SY(),t=tqe(),i=oqe(),n=iqe(),a=rqe(),l="[object Boolean]",d="[object Date]",c="[object Map]",p="[object Number]",u="[object RegExp]",h="[object Set]",m="[object String]",f="[object Symbol]",x="[object ArrayBuffer]",y="[object DataView]",w="[object Float32Array]",b="[object Float64Array]",C="[object Int8Array]",k="[object Int16Array]",E="[object Int32Array]",S="[object Uint8Array]",j="[object Uint8ClampedArray]",I="[object Uint16Array]",T="[object Uint32Array]";function P(B,D,F){var Y=B.constructor;switch(D){case x:return e(B);case l:case d:return new Y(+B);case y:return t(B,F);case w:case b:case C:case k:case E:case S:case j:case I:case T:return a(B,F);case c:return new Y;case p:case m:return new Y(B);case u:return i(B);case h:return new Y;case f:return n(B)}}return NP=P,NP}var HP,woe;function aqe(){if(woe)return HP;woe=1;var e=_1(),t=Object.create,i=(function(){function n(){}return function(a){if(!e(a))return{};if(t)return t(a);n.prototype=a;var l=new n;return n.prototype=void 0,l}})();return HP=i,HP}var _P,boe;function sqe(){if(boe)return _P;boe=1;var e=aqe(),t=$Y(),i=wY();function n(a){return typeof a.constructor=="function"&&!i(a)?e(t(a)):{}}return _P=n,_P}var VP,voe;function lqe(){if(voe)return VP;voe=1;var e=cL(),t=j2(),i="[object Map]";function n(a){return t(a)&&e(a)==i}return VP=n,VP}var QP,Coe;function dqe(){if(Coe)return QP;Coe=1;var e=lqe(),t=dL(),i=yY(),n=i&&i.isMap,a=n?t(n):e;return QP=a,QP}var UP,Aoe;function cqe(){if(Aoe)return UP;Aoe=1;var e=cL(),t=j2(),i="[object Set]";function n(a){return t(a)&&e(a)==i}return UP=n,UP}var WP,$oe;function pqe(){if($oe)return WP;$oe=1;var e=cqe(),t=dL(),i=yY(),n=i&&i.isSet,a=n?t(n):e;return WP=a,WP}var GP,koe;function sve(){if(koe)return GP;koe=1;var e=cY(),t=rve(),i=CY(),n=WKe(),a=KKe(),l=qKe(),d=ZKe(),c=JKe(),p=XKe(),u=Xbe(),h=kY(),m=cL(),f=eqe(),x=nqe(),y=sqe(),w=vs(),b=fY(),C=dqe(),k=_1(),E=pqe(),S=Gw(),j=AY(),I=1,T=2,P=4,B="[object Arguments]",D="[object Array]",F="[object Boolean]",Y="[object Date]",q="[object Error]",Z="[object Function]",V="[object GeneratorFunction]",H="[object Map]",N="[object Number]",O="[object Object]",z="[object RegExp]",R="[object Set]",te="[object String]",G="[object Symbol]",W="[object WeakMap]",ee="[object ArrayBuffer]",J="[object DataView]",ne="[object Float32Array]",ye="[object Float64Array]",me="[object Int8Array]",ue="[object Int16Array]",pe="[object Int32Array]",xe="[object Uint8Array]",be="[object Uint8ClampedArray]",le="[object Uint16Array]",ae="[object Uint32Array]",fe={};fe[B]=fe[D]=fe[ee]=fe[J]=fe[F]=fe[Y]=fe[ne]=fe[ye]=fe[me]=fe[ue]=fe[pe]=fe[H]=fe[N]=fe[O]=fe[z]=fe[R]=fe[te]=fe[G]=fe[xe]=fe[be]=fe[le]=fe[ae]=!0,fe[q]=fe[Z]=fe[W]=!1;function $e(ie,he,Ie,Fe,Se,ze){var Re,tt=he&I,Je=he&T,Pe=he&P;if(Ie&&(Re=Se?Ie(ie,Fe,Se,ze):Ie(ie)),Re!==void 0)return Re;if(!k(ie))return ie;var qe=w(ie);if(qe){if(Re=f(ie),!tt)return d(ie,Re)}else{var Ae=m(ie),Oe=Ae==Z||Ae==V;if(b(ie))return l(ie,tt);if(Ae==O||Ae==B||Oe&&!Se){if(Re=Je||Oe?{}:y(ie),!tt)return Je?p(ie,a(Re,ie)):c(ie,n(Re,ie))}else{if(!fe[Ae])return Se?ie:{};Re=x(ie,Ae,tt)}}ze||(ze=new e);var at=ze.get(ie);if(at)return at;ze.set(ie,Re),E(ie)?ie.forEach(function(mt){Re.add($e(mt,he,Ie,mt,ie,ze))}):C(ie)&&ie.forEach(function(mt,_e){Re.set(_e,$e(mt,he,Ie,_e,ie,ze))});var Ne=Pe?Je?h:u:Je?j:S,it=qe?void 0:Ne(ie);return t(it||ie,function(mt,_e){it&&(_e=mt,mt=ie[_e]),i(Re,_e,$e(mt,he,Ie,_e,ie,ze))}),Re}return GP=$e,GP}var YP,Soe;function uqe(){if(Soe)return YP;Soe=1;var e=sve(),t=1,i=4;function n(a){return e(a,t|i)}return YP=n,YP}var hqe=uqe();const On=Fi(hqe);var KP,Eoe;function mqe(){if(Eoe)return KP;Eoe=1;var e=Object.prototype,t=e.hasOwnProperty;function i(n,a){return n!=null&&t.call(n,a)}return KP=i,KP}var qP,Loe;function EY(){if(Loe)return qP;Loe=1;var e=vs(),t=Yw(),i=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,n=/^\w*$/;function a(l,d){if(e(l))return!1;var c=typeof l;return c=="number"||c=="symbol"||c=="boolean"||l==null||t(l)?!0:n.test(l)||!i.test(l)||d!=null&&l in Object(d)}return qP=a,qP}var ZP,Ioe;function gqe(){if(Ioe)return ZP;Ioe=1;var e=dY(),t="Expected a function";function i(n,a){if(typeof n!="function"||a!=null&&typeof a!="function")throw new TypeError(t);var l=function(){var d=arguments,c=a?a.apply(this,d):d[0],p=l.cache;if(p.has(c))return p.get(c);var u=n.apply(this,d);return l.cache=p.set(c,u)||p,u};return l.cache=new(i.Cache||e),l}return i.Cache=e,ZP=i,ZP}var JP,joe;function fqe(){if(joe)return JP;joe=1;var e=gqe(),t=500;function i(n){var a=e(n,function(d){return l.size===t&&l.clear(),d}),l=a.cache;return a}return JP=i,JP}var XP,Moe;function xqe(){if(Moe)return XP;Moe=1;var e=fqe(),t=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,i=/\\(\\)?/g,n=e(function(a){var l=[];return a.charCodeAt(0)===46&&l.push(""),a.replace(t,function(d,c,p,u){l.push(p?u.replace(i,"$1"):c||d)}),l});return XP=n,XP}var eT,Boe;function Q4(){if(Boe)return eT;Boe=1;function e(t,i){for(var n=-1,a=t==null?0:t.length,l=Array(a);++n<a;)l[n]=i(t[n],n,t);return l}return eT=e,eT}var tT,Doe;function lve(){if(Doe)return tT;Doe=1;var e=q6(),t=Q4(),i=vs(),n=Yw(),a=e?e.prototype:void 0,l=a?a.toString:void 0;function d(c){if(typeof c=="string")return c;if(i(c))return t(c,d)+"";if(n(c))return l?l.call(c):"";var p=c+"";return p=="0"&&1/c==-1/0?"-0":p}return tT=d,tT}var oT,Poe;function dve(){if(Poe)return oT;Poe=1;var e=lve();function t(i){return i==null?"":e(i)}return oT=t,oT}var iT,Toe;function X6(){if(Toe)return iT;Toe=1;var e=vs(),t=EY(),i=xqe(),n=dve();function a(l,d){return e(l)?l:t(l,d)?[l]:i(n(l))}return iT=a,iT}var rT,zoe;function e8(){if(zoe)return rT;zoe=1;var e=Yw();function t(i){if(typeof i=="string"||e(i))return i;var n=i+"";return n=="0"&&1/i==-1/0?"-0":n}return rT=t,rT}var nT,Foe;function cve(){if(Foe)return nT;Foe=1;var e=X6(),t=gY(),i=vs(),n=Ww(),a=xY(),l=e8();function d(c,p,u){p=e(p,c);for(var h=-1,m=p.length,f=!1;++h<m;){var x=l(p[h]);if(!(f=c!=null&&u(c,x)))break;c=c[x]}return f||++h!=m?f:(m=c==null?0:c.length,!!m&&a(m)&&n(x,m)&&(i(c)||t(c)))}return nT=d,nT}var aT,Roe;function yqe(){if(Roe)return aT;Roe=1;var e=mqe(),t=cve();function i(n,a){return n!=null&&t(n,a,e)}return aT=i,aT}var wqe=yqe();const Yt=Fi(wqe);var sT,Ooe;function bqe(){if(Ooe)return sT;Ooe=1;var e="Expected a function";function t(i,n,a){if(typeof i!="function")throw new TypeError(e);return setTimeout(function(){i.apply(void 0,a)},n)}return sT=t,sT}var lT,Noe;function t8(){if(Noe)return lT;Noe=1;function e(t){return t}return lT=e,lT}var dT,Hoe;function pve(){if(Hoe)return dT;Hoe=1;function e(t,i,n){switch(n.length){case 0:return t.call(i);case 1:return t.call(i,n[0]);case 2:return t.call(i,n[0],n[1]);case 3:return t.call(i,n[0],n[1],n[2])}return t.apply(i,n)}return dT=e,dT}var cT,_oe;function uve(){if(_oe)return cT;_oe=1;var e=pve(),t=Math.max;function i(n,a,l){return a=t(a===void 0?n.length-1:a,0),function(){for(var d=arguments,c=-1,p=t(d.length-a,0),u=Array(p);++c<p;)u[c]=d[a+c];c=-1;for(var h=Array(a+1);++c<a;)h[c]=d[c];return h[a]=l(u),e(n,this,h)}}return cT=i,cT}var pT,Voe;function vqe(){if(Voe)return pT;Voe=1;function e(t){return function(){return t}}return pT=e,pT}var uT,Qoe;function Cqe(){if(Qoe)return uT;Qoe=1;var e=vqe(),t=nve(),i=t8(),n=t?function(a,l){return t(a,"toString",{configurable:!0,enumerable:!1,value:e(l),writable:!0})}:i;return uT=n,uT}var hT,Uoe;function Aqe(){if(Uoe)return hT;Uoe=1;var e=800,t=16,i=Date.now;function n(a){var l=0,d=0;return function(){var c=i(),p=t-(c-d);if(d=c,p>0){if(++l>=e)return arguments[0]}else l=0;return a.apply(void 0,arguments)}}return hT=n,hT}var mT,Woe;function hve(){if(Woe)return mT;Woe=1;var e=Cqe(),t=Aqe(),i=t(e);return mT=i,mT}var gT,Goe;function mve(){if(Goe)return gT;Goe=1;var e=t8(),t=uve(),i=hve();function n(a,l){return i(t(a,l,e),a+"")}return gT=n,gT}var fT,Yoe;function $qe(){if(Yoe)return fT;Yoe=1;var e=bqe(),t=mve(),i=t(function(n,a){return e(n,1,a)});return fT=i,fT}var kqe=$qe();const va=Fi(kqe);var xT,Koe;function qw(){if(Koe)return xT;Koe=1;var e=X6(),t=e8();function i(n,a){a=e(a,n);for(var l=0,d=a.length;n!=null&&l<d;)n=n[t(a[l++])];return l&&l==d?n:void 0}return xT=i,xT}var yT,qoe;function gve(){if(qoe)return yT;qoe=1;var e=qw();function t(i,n,a){var l=i==null?void 0:e(i,n);return l===void 0?a:l}return yT=t,yT}var Sqe=gve();const C4=Fi(Sqe);var wT,Zoe;function fve(){if(Zoe)return wT;Zoe=1;var e=cY(),t=bY(),i=1,n=2;function a(l,d,c,p){var u=c.length,h=u,m=!p;if(l==null)return!h;for(l=Object(l);u--;){var f=c[u];if(m&&f[2]?f[1]!==l[f[0]]:!(f[0]in l))return!1}for(;++u<h;){f=c[u];var x=f[0],y=l[x],w=f[1];if(m&&f[2]){if(y===void 0&&!(x in l))return!1}else{var b=new e;if(p)var C=p(y,w,x,l,d,b);if(!(C===void 0?t(w,y,i|n,p,b):C))return!1}}return!0}return wT=a,wT}var bT,Joe;function xve(){if(Joe)return bT;Joe=1;var e=_1();function t(i){return i===i&&!e(i)}return bT=t,bT}var vT,Xoe;function yve(){if(Xoe)return vT;Xoe=1;var e=xve(),t=Gw();function i(n){for(var a=t(n),l=a.length;l--;){var d=a[l],c=n[d];a[l]=[d,c,e(c)]}return a}return vT=i,vT}var CT,eie;function Eqe(){if(eie)return CT;eie=1;var e=fve(),t=yve();function i(n,a,l){return l=typeof l=="function"?l:void 0,e(n,a,t(a),l)}return CT=i,CT}Eqe();var AT,tie;function Lqe(){if(tie)return AT;tie=1;function e(t,i){for(var n,a=-1,l=t.length;++a<l;){var d=i(t[a]);d!==void 0&&(n=n===void 0?d:n+d)}return n}return AT=e,AT}var $T,oie;function Iqe(){if(oie)return $T;oie=1;var e=Lqe(),t=t8();function i(n){return n&&n.length?e(n,t):0}return $T=i,$T}Iqe();var kT,iie;function LY(){if(iie)return kT;iie=1;function e(t,i,n){var a=-1,l=t.length;i<0&&(i=-i>l?0:l+i),n=n>l?l:n,n<0&&(n+=l),l=i>n?0:n-i>>>0,i>>>=0;for(var d=Array(l);++a<l;)d[a]=t[a+i];return d}return kT=e,kT}var ST,rie;function wve(){if(rie)return ST;rie=1;var e=rL(),t=J6(),i=Ww(),n=_1();function a(l,d,c){if(!n(c))return!1;var p=typeof d;return(p=="number"?t(c)&&i(d,c.length):p=="string"&&d in c)?e(c[d],l):!1}return ST=a,ST}var ET,nie;function jqe(){if(nie)return ET;nie=1;var e=tve(),t=1/0,i=17976931348623157e292;function n(a){if(!a)return a===0?a:0;if(a=e(a),a===t||a===-t){var l=a<0?-1:1;return l*i}return a===a?a:0}return ET=n,ET}var LT,aie;function uL(){if(aie)return LT;aie=1;var e=jqe();function t(i){var n=e(i),a=n%1;return n===n?a?n-a:n:0}return LT=t,LT}var IT,sie;function Mqe(){if(sie)return IT;sie=1;var e=LY(),t=wve(),i=uL(),n=Math.ceil,a=Math.max;function l(d,c,p){(p?t(d,c,p):c===void 0)?c=1:c=a(i(c),0);var u=d==null?0:d.length;if(!u||c<1)return[];for(var h=0,m=0,f=Array(n(u/c));h<u;)f[m++]=e(d,h,h+=c);return f}return IT=l,IT}var Bqe=Mqe();const Dqe=Fi(Bqe);var jT,lie;function Pqe(){if(lie)return jT;lie=1;function e(t){for(var i=-1,n=t==null?0:t.length,a=0,l=[];++i<n;){var d=t[i];d&&(l[a++]=d)}return l}return jT=e,jT}var Tqe=Pqe();const zqe=Fi(Tqe);var MT,die;function Fqe(){if(die)return MT;die=1;function e(t){return function(i,n,a){for(var l=-1,d=Object(i),c=a(i),p=c.length;p--;){var u=c[t?p:++l];if(n(d[u],u,d)===!1)break}return i}}return MT=e,MT}var BT,cie;function Rqe(){if(cie)return BT;cie=1;var e=Fqe(),t=e();return BT=t,BT}var DT,pie;function bve(){if(pie)return DT;pie=1;var e=Rqe(),t=Gw();function i(n,a){return n&&e(n,a,t)}return DT=i,DT}var PT,uie;function Oqe(){if(uie)return PT;uie=1;var e=J6();function t(i,n){return function(a,l){if(a==null)return a;if(!e(a))return i(a,l);for(var d=a.length,c=n?d:-1,p=Object(a);(n?c--:++c<d)&&l(p[c],c,p)!==!1;);return a}}return PT=t,PT}var TT,hie;function Zw(){if(hie)return TT;hie=1;var e=bve(),t=Oqe(),i=t(e);return TT=i,TT}var zT,mie;function vve(){if(mie)return zT;mie=1;var e=t8();function t(i){return typeof i=="function"?i:e}return zT=t,zT}var FT,gie;function Nqe(){if(gie)return FT;gie=1;var e=rve(),t=Zw(),i=vve(),n=vs();function a(l,d){var c=n(l)?e:t;return c(l,i(d))}return FT=a,FT}var fie,xie;function Hqe(){return xie||(xie=1,fie=Nqe()),fie}var _qe=Hqe();const Vqe=Fi(_qe);var RT,yie;function Qqe(){if(yie)return RT;yie=1;function e(t,i,n,a){var l=-1,d=t==null?0:t.length;for(a&&d&&(n=t[++l]);++l<d;)n=i(n,t[l],l,t);return n}return RT=e,RT}var OT,wie;function Cve(){if(wie)return OT;wie=1;function e(t,i){return function(n){return n==null?!1:n[t]===i&&(i!==void 0||t in Object(n))}}return OT=e,OT}var NT,bie;function Uqe(){if(bie)return NT;bie=1;var e=fve(),t=yve(),i=Cve();function n(a){var l=t(a);return l.length==1&&l[0][2]?i(l[0][0],l[0][1]):function(d){return d===a||e(d,a,l)}}return NT=n,NT}var HT,vie;function Wqe(){if(vie)return HT;vie=1;function e(t,i){return t!=null&&i in Object(t)}return HT=e,HT}var _T,Cie;function Gqe(){if(Cie)return _T;Cie=1;var e=Wqe(),t=cve();function i(n,a){return n!=null&&t(n,a,e)}return _T=i,_T}var VT,Aie;function Yqe(){if(Aie)return VT;Aie=1;var e=bY(),t=gve(),i=Gqe(),n=EY(),a=xve(),l=Cve(),d=e8(),c=1,p=2;function u(h,m){return n(h)&&a(m)?l(d(h),m):function(f){var x=t(f,h);return x===void 0&&x===m?i(f,h):e(m,x,c|p)}}return VT=u,VT}var QT,$ie;function IY(){if($ie)return QT;$ie=1;function e(t){return function(i){return i?.[t]}}return QT=e,QT}var UT,kie;function Kqe(){if(kie)return UT;kie=1;var e=qw();function t(i){return function(n){return e(n,i)}}return UT=t,UT}var WT,Sie;function qqe(){if(Sie)return WT;Sie=1;var e=IY(),t=Kqe(),i=EY(),n=e8();function a(l){return i(l)?e(n(l)):t(l)}return WT=a,WT}var GT,Eie;function $m(){if(Eie)return GT;Eie=1;var e=Uqe(),t=Yqe(),i=t8(),n=vs(),a=qqe();function l(d){return typeof d=="function"?d:d==null?i:typeof d=="object"?n(d)?t(d[0],d[1]):e(d):a(d)}return GT=l,GT}var YT,Lie;function Zqe(){if(Lie)return YT;Lie=1;function e(t,i,n,a,l){return l(t,function(d,c,p){n=a?(a=!1,d):i(n,d,c,p)}),n}return YT=e,YT}var KT,Iie;function Jqe(){if(Iie)return KT;Iie=1;var e=Qqe(),t=Zw(),i=$m(),n=Zqe(),a=vs();function l(d,c,p){var u=a(d)?e:n,h=arguments.length<3;return u(d,i(c,4),p,h,t)}return KT=l,KT}var Xqe=Jqe();const jie=Fi(Xqe);var qT,Mie;function eZe(){if(Mie)return qT;Mie=1;var e=J6(),t=j2();function i(n){return t(n)&&e(n)}return qT=i,qT}var ZT,Bie;function tZe(){if(Bie)return ZT;Bie=1;var e=hY(),t=Q4(),i=IY(),n=Kbe(),a=eZe(),l=Math.max;function d(c){if(!(c&&c.length))return[];var p=0;return c=e(c,function(u){if(a(u))return p=l(u.length,p),!0}),n(p,function(u){return t(c,i(u))})}return ZT=d,ZT}var JT,Die;function oZe(){if(Die)return JT;Die=1;var e=pve(),t=Q4(),i=tZe();function n(a,l){if(!(a&&a.length))return[];var d=i(a);return l==null?d:t(d,function(c){return e(l,void 0,c)})}return JT=n,JT}var XT,Pie;function iZe(){if(Pie)return XT;Pie=1;var e=mve(),t=oZe(),i=e(function(n){var a=n.length,l=a>1?n[a-1]:void 0;return l=typeof l=="function"?(n.pop(),l):void 0,t(n,l)});return XT=i,XT}var rZe=iZe();const nZe=Fi(rZe);var ez,Tie;function aZe(){if(Tie)return ez;Tie=1;var e=bve(),t=vve();function i(n,a){return n&&e(n,t(a))}return ez=i,ez}var sZe=aZe();const Ave=Fi(sZe);var tz,zie;function $ve(){if(zie)return tz;zie=1;var e=Zw(),t=J6();function i(n,a){var l=-1,d=t(n)?Array(n.length):[];return e(n,function(c,p,u){d[++l]=a(c,p,u)}),d}return tz=i,tz}var oz,Fie;function kve(){if(Fie)return oz;Fie=1;var e=Q4(),t=$m(),i=$ve(),n=vs();function a(l,d){var c=n(l)?e:i;return c(l,t(d,3))}return oz=a,oz}var lZe=kve();const jY=Fi(lZe);var iz,Rie;function dZe(){if(Rie)return iz;Rie=1;var e=CY(),t=X6(),i=Ww(),n=_1(),a=e8();function l(d,c,p,u){if(!n(d))return d;c=t(c,d);for(var h=-1,m=c.length,f=m-1,x=d;x!=null&&++h<m;){var y=a(c[h]),w=p;if(y==="__proto__"||y==="constructor"||y==="prototype")return d;if(h!=f){var b=x[y];w=u?u(b,y,x):void 0,w===void 0&&(w=n(b)?b:i(c[h+1])?[]:{})}e(x,y,w),x=x[y]}return d}return iz=l,iz}var rz,Oie;function cZe(){if(Oie)return rz;Oie=1;var e=qw(),t=dZe(),i=X6();function n(a,l,d){for(var c=-1,p=l.length,u={};++c<p;){var h=l[c],m=e(a,h);d(m,h)&&t(u,i(h,a),m)}return u}return rz=n,rz}var nz,Nie;function pZe(){if(Nie)return nz;Nie=1;var e=Q4(),t=$m(),i=cZe(),n=kY();function a(l,d){if(l==null)return{};var c=e(n(l),function(p){return[p]});return d=t(d),i(l,c,function(p,u){return d(p,u[0])})}return nz=a,nz}var uZe=pZe();const vk=Fi(uZe);var az,Hie;function hZe(){if(Hie)return az;Hie=1;var e=ove(),t=_1(),i="Expected a function";function n(a,l,d){var c=!0,p=!0;if(typeof a!="function")throw new TypeError(i);return t(d)&&(c="leading"in d?!!d.leading:c,p="trailing"in d?!!d.trailing:p),e(a,l,{leading:c,maxWait:l,trailing:p})}return az=n,az}var mZe=hZe();const gZe=Fi(mZe);var sz,_ie;function fZe(){if(_ie)return sz;_ie=1;var e=Zw();function t(i,n){var a=[];return e(i,function(l,d,c){n(l,d,c)&&a.push(l)}),a}return sz=t,sz}var lz,Vie;function xZe(){if(Vie)return lz;Vie=1;var e=hY(),t=fZe(),i=$m(),n=vs();function a(l,d){var c=n(l)?e:t;return c(l,i(d,3))}return lz=a,lz}var yZe=xZe();const wZe=Fi(yZe);var dz,Qie;function bZe(){if(Qie)return dz;Qie=1;function e(t,i,n,a){for(var l=-1,d=t==null?0:t.length;++l<d;){var c=t[l];i(a,c,n(c),t)}return a}return dz=e,dz}var cz,Uie;function vZe(){if(Uie)return cz;Uie=1;var e=Zw();function t(i,n,a,l){return e(i,function(d,c,p){n(l,d,a(d),p)}),l}return cz=t,cz}var pz,Wie;function CZe(){if(Wie)return pz;Wie=1;var e=bZe(),t=vZe(),i=$m(),n=vs();function a(l,d){return function(c,p){var u=n(c)?e:t,h=d?d():{};return u(c,l,i(p,2),h)}}return pz=a,pz}var uz,Gie;function AZe(){if(Gie)return uz;Gie=1;var e=vY(),t=CZe(),i=Object.prototype,n=i.hasOwnProperty,a=t(function(l,d,c){n.call(l,c)?l[c].push(d):e(l,c,[d])});return uz=a,uz}var $Ze=AZe();const kZe=Fi($Ze);var hz,Yie;function SZe(){if(Yie)return hz;Yie=1;function e(t,i){var n=t.length;for(t.sort(i);n--;)t[n]=t[n].value;return t}return hz=e,hz}var mz,Kie;function EZe(){if(Kie)return mz;Kie=1;var e=Yw();function t(i,n){if(i!==n){var a=i!==void 0,l=i===null,d=i===i,c=e(i),p=n!==void 0,u=n===null,h=n===n,m=e(n);if(!u&&!m&&!c&&i>n||c&&p&&h&&!u&&!m||l&&p&&h||!a&&h||!d)return 1;if(!l&&!c&&!m&&i<n||m&&a&&d&&!l&&!c||u&&a&&d||!p&&d||!h)return-1}return 0}return mz=t,mz}var gz,qie;function LZe(){if(qie)return gz;qie=1;var e=EZe();function t(i,n,a){for(var l=-1,d=i.criteria,c=n.criteria,p=d.length,u=a.length;++l<p;){var h=e(d[l],c[l]);if(h){if(l>=u)return h;var m=a[l];return h*(m=="desc"?-1:1)}}return i.index-n.index}return gz=t,gz}var fz,Zie;function IZe(){if(Zie)return fz;Zie=1;var e=Q4(),t=qw(),i=$m(),n=$ve(),a=SZe(),l=dL(),d=LZe(),c=t8(),p=vs();function u(h,m,f){m.length?m=e(m,function(w){return p(w)?function(b){return t(b,w.length===1?w[0]:w)}:w}):m=[c];var x=-1;m=e(m,l(i));var y=n(h,function(w,b,C){var k=e(m,function(E){return E(w)});return{criteria:k,index:++x,value:w}});return a(y,function(w,b){return d(w,b,f)})}return fz=u,fz}var xz,Jie;function jZe(){if(Jie)return xz;Jie=1;var e=IZe(),t=vs();function i(n,a,l,d){return n==null?[]:(t(a)||(a=a==null?[]:[a]),l=d?void 0:l,t(l)||(l=l==null?[]:[l]),e(n,a,l))}return xz=i,xz}var MZe=jZe();const BZe=Fi(MZe);var yz,Xie;function DZe(){if(Xie)return yz;Xie=1;function e(t,i,n){return t===t&&(n!==void 0&&(t=t<=n?t:n),i!==void 0&&(t=t>=i?t:i)),t}return yz=e,yz}var wz,ere;function PZe(){if(ere)return wz;ere=1;var e=DZe(),t=uL(),i=4294967295;function n(a){return a?e(t(a),0,i):0}return wz=n,wz}var bz,tre;function TZe(){if(tre)return bz;tre=1;var e=uL(),t=PZe();function i(n,a,l,d){var c=n.length;for(l=e(l),l<0&&(l=-l>c?0:c+l),d=d===void 0||d>c?c:e(d),d<0&&(d+=c),d=l>d?0:t(d);l<d;)n[l++]=a;return n}return bz=i,bz}var vz,ore;function zZe(){if(ore)return vz;ore=1;var e=TZe(),t=wve();function i(n,a,l,d){var c=n==null?0:n.length;return c?(l&&typeof l!="number"&&t(n,a,l)&&(l=0,d=c),e(n,a,l,d)):[]}return vz=i,vz}var FZe=zZe();const Sve=Fi(FZe);var Cz,ire;function RZe(){if(ire)return Cz;ire=1;function e(t){var i=t==null?0:t.length;return i?t[i-1]:void 0}return Cz=e,Cz}var Az,rre;function OZe(){if(rre)return Az;rre=1;var e=qw(),t=LY();function i(n,a){return a.length<2?n:e(n,t(a,0,-1))}return Az=i,Az}var $z,nre;function Eve(){if(nre)return $z;nre=1;var e=X6(),t=RZe(),i=OZe(),n=e8(),a=Object.prototype,l=a.hasOwnProperty;function d(c,p){p=e(p,c);var u=-1,h=p.length;if(!h)return!0;for(;++u<h;){var m=n(p[u]);if(m==="__proto__"&&!l.call(c,"__proto__")||(m==="constructor"||m==="prototype")&&u<h-1)return!1}var f=i(c,p);return f==null||delete f[n(t(p))]}return $z=d,$z}var kz,are;function NZe(){if(are)return kz;are=1;var e=Eve(),t=Ww(),i=Array.prototype,n=i.splice;function a(l,d){for(var c=l?d.length:0,p=c-1;c--;){var u=d[c];if(c==p||u!==h){var h=u;t(u)?n.call(l,u,1):e(l,u)}}return l}return kz=a,kz}var Sz,sre;function HZe(){if(sre)return Sz;sre=1;var e=$m(),t=NZe();function i(n,a){var l=[];if(!(n&&n.length))return l;var d=-1,c=[],p=n.length;for(a=e(a,3);++d<p;){var u=n[d];a(u,d,n)&&(l.push(u),c.push(d))}return t(n,c),l}return Sz=i,Sz}var _Ze=HZe();const Lve=Fi(_Ze);var Ez,lre;function VZe(){if(lre)return Ez;lre=1;var e=Z6(),t=$Y(),i=j2(),n="[object Object]",a=Function.prototype,l=Object.prototype,d=a.toString,c=l.hasOwnProperty,p=d.call(Object);function u(h){if(!i(h)||e(h)!=n)return!1;var m=t(h);if(m===null)return!0;var f=c.call(m,"constructor")&&m.constructor;return typeof f=="function"&&f instanceof f&&d.call(f)==p}return Ez=u,Ez}var Lz,dre;function QZe(){if(dre)return Lz;dre=1;var e=VZe();function t(i){return e(i)?void 0:i}return Lz=t,Lz}var Iz,cre;function UZe(){if(cre)return Iz;cre=1;var e=q6(),t=gY(),i=vs(),n=e?e.isConcatSpreadable:void 0;function a(l){return i(l)||t(l)||!!(n&&l&&l[n])}return Iz=a,Iz}var jz,pre;function Ive(){if(pre)return jz;pre=1;var e=uY(),t=UZe();function i(n,a,l,d,c){var p=-1,u=n.length;for(l||(l=t),c||(c=[]);++p<u;){var h=n[p];a>0&&l(h)?a>1?i(h,a-1,l,d,c):e(c,h):d||(c[c.length]=h)}return c}return jz=i,jz}var Mz,ure;function jve(){if(ure)return Mz;ure=1;var e=Ive();function t(i){var n=i==null?0:i.length;return n?e(i,1):[]}return Mz=t,Mz}var Bz,hre;function WZe(){if(hre)return Bz;hre=1;var e=jve(),t=uve(),i=hve();function n(a){return i(t(a,void 0,e),a+"")}return Bz=n,Bz}var Dz,mre;function GZe(){if(mre)return Dz;mre=1;var e=Q4(),t=sve(),i=Eve(),n=X6(),a=Kw(),l=QZe(),d=WZe(),c=kY(),p=1,u=2,h=4,m=d(function(f,x){var y={};if(f==null)return y;var w=!1;x=e(x,function(C){return C=n(C,f),w||(w=C.length>1),C}),a(f,c(f),y),w&&(y=t(y,p|u|h,l));for(var b=x.length;b--;)i(y,x[b]);return y});return Dz=m,Dz}GZe();var Pz,gre;function YZe(){if(gre)return Pz;gre=1;var e=Ive(),t=kve();function i(n,a){return e(t(n,a),1)}return Pz=i,Pz}YZe();var Tz,fre;function KZe(){if(fre)return Tz;fre=1;function e(t,i,n,a){for(var l=t.length,d=n+(a?1:-1);a?d--:++d<l;)if(i(t[d],d,t))return d;return-1}return Tz=e,Tz}var zz,xre;function qZe(){if(xre)return zz;xre=1;function e(t){return t!==t}return zz=e,zz}var Fz,yre;function ZZe(){if(yre)return Fz;yre=1;function e(t,i,n){for(var a=n-1,l=t.length;++a<l;)if(t[a]===i)return a;return-1}return Fz=e,Fz}var Rz,wre;function JZe(){if(wre)return Rz;wre=1;var e=KZe(),t=qZe(),i=ZZe();function n(a,l,d){return l===l?i(a,l,d):e(a,t,d)}return Rz=n,Rz}var Oz,bre;function XZe(){if(bre)return Oz;bre=1;var e=JZe();function t(i,n){var a=i==null?0:i.length;return!!a&&e(i,n,0)>-1}return Oz=t,Oz}var Nz,vre;function eJe(){if(vre)return Nz;vre=1;function e(t,i,n){for(var a=-1,l=t==null?0:t.length;++a<l;)if(n(i,t[a]))return!0;return!1}return Nz=e,Nz}var Hz,Cre;function tJe(){if(Cre)return Hz;Cre=1;var e=eve(),t=ive(),i=pY(),n=1/0,a=e&&1/i(new e([,-0]))[1]==n?function(l){return new e(l)}:t;return Hz=a,Hz}var _z,Are;function Mve(){if(Are)return _z;Are=1;var e=Vbe(),t=XZe(),i=eJe(),n=Qbe(),a=tJe(),l=pY(),d=200;function c(p,u,h){var m=-1,f=t,x=p.length,y=!0,w=[],b=w;if(h)y=!1,f=i;else if(x>=d){var C=u?null:a(p);if(C)return l(C);y=!1,f=n,b=new e}else b=u?[]:w;e:for(;++m<x;){var k=p[m],E=u?u(k):k;if(k=h||k!==0?k:0,y&&E===E){for(var S=b.length;S--;)if(b[S]===E)continue e;u&&b.push(E),w.push(k)}else f(b,E,h)||(b!==w&&b.push(E),w.push(k))}return w}return _z=c,_z}var Vz,$re;function oJe(){if($re)return Vz;$re=1;var e=$m(),t=Mve();function i(n,a){return n&&n.length?t(n,e(a,2)):[]}return Vz=i,Vz}var iJe=oJe();const rJe=Fi(iJe);jve();var Qz,kre;function nJe(){if(kre)return Qz;kre=1;var e=Mve();function t(i){return i&&i.length?e(i):[]}return Qz=t,Qz}nJe();var Uz,Sre;function aJe(){if(Sre)return Uz;Sre=1;var e=9007199254740991,t=Math.floor;function i(n,a){var l="";if(!n||a<1||a>e)return l;do a%2&&(l+=n),a=t(a/2),a&&(n+=n);while(a);return l}return Uz=i,Uz}var Wz,Ere;function sJe(){if(Ere)return Wz;Ere=1;var e=LY();function t(i,n,a){var l=i.length;return a=a===void 0?l:a,!n&&a>=l?i:e(i,n,a)}return Wz=t,Wz}var Gz,Lre;function MY(){if(Lre)return Gz;Lre=1;var e="\\ud800-\\udfff",t="\\u0300-\\u036f",i="\\ufe20-\\ufe2f",n="\\u20d0-\\u20ff",a=t+i+n,l="\\ufe0e\\ufe0f",d="\\u200d",c=RegExp("["+d+e+a+l+"]");function p(u){return c.test(u)}return Gz=p,Gz}var Yz,Ire;function lJe(){if(Ire)return Yz;Ire=1;var e=IY(),t=e("length");return Yz=t,Yz}var Kz,jre;function dJe(){if(jre)return Kz;jre=1;var e="\\ud800-\\udfff",t="\\u0300-\\u036f",i="\\ufe20-\\ufe2f",n="\\u20d0-\\u20ff",a=t+i+n,l="\\ufe0e\\ufe0f",d="["+e+"]",c="["+a+"]",p="\\ud83c[\\udffb-\\udfff]",u="(?:"+c+"|"+p+")",h="[^"+e+"]",m="(?:\\ud83c[\\udde6-\\uddff]){2}",f="[\\ud800-\\udbff][\\udc00-\\udfff]",x="\\u200d",y=u+"?",w="["+l+"]?",b="(?:"+x+"(?:"+[h,m,f].join("|")+")"+w+y+")*",C=w+y+b,k="(?:"+[h+c+"?",c,m,f,d].join("|")+")",E=RegExp(p+"(?="+p+")|"+k+C,"g");function S(j){for(var I=E.lastIndex=0;E.test(j);)++I;return I}return Kz=S,Kz}var qz,Mre;function Bve(){if(Mre)return qz;Mre=1;var e=lJe(),t=MY(),i=dJe();function n(a){return t(a)?i(a):e(a)}return qz=n,qz}var Zz,Bre;function cJe(){if(Bre)return Zz;Bre=1;function e(t){return t.split("")}return Zz=e,Zz}var Jz,Dre;function pJe(){if(Dre)return Jz;Dre=1;var e="\\ud800-\\udfff",t="\\u0300-\\u036f",i="\\ufe20-\\ufe2f",n="\\u20d0-\\u20ff",a=t+i+n,l="\\ufe0e\\ufe0f",d="["+e+"]",c="["+a+"]",p="\\ud83c[\\udffb-\\udfff]",u="(?:"+c+"|"+p+")",h="[^"+e+"]",m="(?:\\ud83c[\\udde6-\\uddff]){2}",f="[\\ud800-\\udbff][\\udc00-\\udfff]",x="\\u200d",y=u+"?",w="["+l+"]?",b="(?:"+x+"(?:"+[h,m,f].join("|")+")"+w+y+")*",C=w+y+b,k="(?:"+[h+c+"?",c,m,f,d].join("|")+")",E=RegExp(p+"(?="+p+")|"+k+C,"g");function S(j){return j.match(E)||[]}return Jz=S,Jz}var Xz,Pre;function uJe(){if(Pre)return Xz;Pre=1;var e=cJe(),t=MY(),i=pJe();function n(a){return t(a)?i(a):e(a)}return Xz=n,Xz}var eF,Tre;function hJe(){if(Tre)return eF;Tre=1;var e=aJe(),t=lve(),i=sJe(),n=MY(),a=Bve(),l=uJe(),d=Math.ceil;function c(p,u){u=u===void 0?" ":t(u);var h=u.length;if(h<2)return h?e(u,p):u;var m=e(u,d(p/a(u)));return n(u)?i(l(m),0,p).join(""):m.slice(0,p)}return eF=c,eF}var tF,zre;function mJe(){if(zre)return tF;zre=1;var e=hJe(),t=Bve(),i=uL(),n=dve();function a(l,d,c){l=n(l),d=i(d);var p=d?t(l):0;return d&&p<d?e(d-p,c)+l:l}return tF=a,tF}var gJe=mJe();const Fre=Fi(gJe);var Jw=e=>e.type==="checkbox",w7=e=>e instanceof Date,rl=e=>e==null;const Dve=e=>typeof e=="object";var Ea=e=>!rl(e)&&!Array.isArray(e)&&Dve(e)&&!w7(e),Pve=e=>Ea(e)&&e.target?Jw(e.target)?e.target.checked:e.target.value:e,fJe=e=>e.substring(0,e.search(/\.\d+(\.|$)/))||e,Tve=(e,t)=>e.has(fJe(t)),xJe=e=>{const t=e.constructor&&e.constructor.prototype;return Ea(t)&&t.hasOwnProperty("isPrototypeOf")},BY=typeof window<"u"&&typeof window.HTMLElement<"u"&&typeof document<"u";function Hl(e){let t;const i=Array.isArray(e);if(e instanceof Date)t=new Date(e);else if(e instanceof Set)t=new Set(e);else if(!(BY&&(e instanceof Blob||e instanceof FileList))&&(i||Ea(e)))if(t=i?[]:{},!Array.isArray(e)&&!xJe(e))t=e;else for(const n in e)t[n]=Hl(e[n]);else return e;return t}var o8=e=>Array.isArray(e)?e.filter(Boolean):[],Jr=e=>e===void 0,oo=(e,t,i)=>{if(!t||!Ea(e))return i;const n=o8(t.split(/[,[\].]+?/)).reduce((a,l)=>rl(a)?a:a[l],e);return Jr(n)||n===e?Jr(e[t])?i:e[t]:n};const Ck={BLUR:"blur",FOCUS_OUT:"focusout",CHANGE:"change"},bc={onBlur:"onBlur",onChange:"onChange",onSubmit:"onSubmit",onTouched:"onTouched",all:"all"},Ah={max:"max",min:"min",maxLength:"maxLength",minLength:"minLength",pattern:"pattern",required:"required",validate:"validate"},zve=A.createContext(null),Rt=()=>A.useContext(zve),br=e=>{const{children:t,...i}=e;return A.createElement(zve.Provider,{value:i},t)};var Fve=(e,t,i,n=!0)=>{const a={defaultValues:t._defaultValues};for(const l in e)Object.defineProperty(a,l,{get:()=>{const d=l;return t._proxyFormState[d]!==bc.all&&(t._proxyFormState[d]=!n||bc.all),i&&(i[d]=!0),e[d]}});return a},$d=e=>Ea(e)&&!Object.keys(e).length,Rve=(e,t,i,n)=>{i(e);const{name:a,...l}=e;return $d(l)||Object.keys(l).length>=Object.keys(t).length||Object.keys(l).find(d=>t[d]===(!n||bc.all))},jd=e=>Array.isArray(e)?e:[e],Ove=(e,t,i)=>i&&t?e===t:!e||!t||e===t||jd(e).some(n=>n&&(n.startsWith(t)||t.startsWith(n)));function hL(e){const t=A.useRef(e);t.current=e,A.useEffect(()=>{const i=!e.disabled&&t.current.subject&&t.current.subject.subscribe({next:t.current.next});return()=>{i&&i.unsubscribe()}},[e.disabled])}function yJe(e){const t=Rt(),{control:i=t.control,disabled:n,name:a,exact:l}=e||{},[d,c]=A.useState(i._formState),p=A.useRef(!0),u=A.useRef({isDirty:!1,isLoading:!1,dirtyFields:!1,touchedFields:!1,isValidating:!1,isValid:!1,errors:!1}),h=A.useRef(a);return h.current=a,hL({disabled:n,next:m=>p.current&&Ove(h.current,m.name,l)&&Rve(m,u.current,i._updateFormState)&&c({...i._formState,...m}),subject:i._subjects.state}),A.useEffect(()=>(p.current=!0,u.current.isValid&&i._updateValid(!0),()=>{p.current=!1}),[i]),Fve(d,i,u.current,!1)}var Iu=e=>typeof e=="string",Nve=(e,t,i,n,a)=>Iu(e)?(n&&t.watch.add(e),oo(i,e,a)):Array.isArray(e)?e.map(l=>(n&&t.watch.add(l),oo(i,l))):(n&&(t.watchAll=!0),i);function mL(e){const t=Rt(),{control:i=t.control,name:n,defaultValue:a,disabled:l,exact:d}=e||{},c=A.useRef(n);c.current=n,hL({disabled:l,subject:i._subjects.values,next:h=>{Ove(c.current,h.name,d)&&u(Hl(Nve(c.current,i._names,h.values||i._formValues,!1,a)))}});const[p,u]=A.useState(i._getWatch(n,a));return A.useEffect(()=>i._removeUnmounted()),p}var DY=e=>/^\w*$/.test(e),Hve=e=>o8(e.replace(/["|']|\]/g,"").split(/\.|\[/));function Pr(e,t,i){let n=-1;const a=DY(t)?[t]:Hve(t),l=a.length,d=l-1;for(;++n<l;){const c=a[n];let p=i;if(n!==d){const u=e[c];p=Ea(u)||Array.isArray(u)?u:isNaN(+a[n+1])?{}:[]}e[c]=p,e=e[c]}return e}function wJe(e){const t=Rt(),{name:i,control:n=t.control,shouldUnregister:a}=e,l=Tve(n._names.array,i),d=mL({control:n,name:i,defaultValue:oo(n._formValues,i,oo(n._defaultValues,i,e.defaultValue)),exact:!0}),c=yJe({control:n,name:i}),p=A.useRef(n.register(i,{...e.rules,value:d}));return A.useEffect(()=>{const u=n._options.shouldUnregister||a,h=(m,f)=>{const x=oo(n._fields,m);x&&(x._f.mount=f)};if(h(i,!0),u){const m=Hl(oo(n._options.defaultValues,i));Pr(n._defaultValues,i,m),Jr(oo(n._formValues,i))&&Pr(n._formValues,i,m)}return()=>{(l?u&&!n._state.action:u)?n.unregister(i):h(i,!1)}},[i,n,l,a]),{field:{name:i,value:d,onChange:A.useCallback(u=>p.current.onChange({target:{value:Pve(u),name:i},type:Ck.CHANGE}),[i]),onBlur:A.useCallback(()=>p.current.onBlur({target:{value:oo(n._formValues,i),name:i},type:Ck.BLUR}),[i,n]),ref:u=>{const h=oo(n._fields,i);h&&u&&(h._f.ref={focus:()=>u.focus(),select:()=>u.select(),setCustomValidity:m=>u.setCustomValidity(m),reportValidity:()=>u.reportValidity()})}},formState:c,fieldState:Object.defineProperties({},{invalid:{enumerable:!0,get:()=>!!oo(c.errors,i)},isDirty:{enumerable:!0,get:()=>!!oo(c.dirtyFields,i)},isTouched:{enumerable:!0,get:()=>!!oo(c.touchedFields,i)},error:{enumerable:!0,get:()=>oo(c.errors,i)}})}}const Di=e=>e.render(wJe(e));var bJe=(e,t,i,n,a)=>t?{...i[e],types:{...i[e]&&i[e].types?i[e].types:{},[n]:a||!0}}:{};const Ak=(e,t,i)=>{for(const n of i||Object.keys(e)){const a=oo(e,n);if(a){const{_f:l,...d}=a;if(l&&t(l.name)){if(l.ref.focus){l.ref.focus();break}else if(l.refs&&l.refs[0].focus){l.refs[0].focus();break}}else Ea(d)&&Ak(d,t)}}};var i0=()=>{const e=typeof performance>"u"?Date.now():performance.now()*1e3;return"xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx".replace(/[xy]/g,t=>{const i=(Math.random()*16+e)%16|0;return(t=="x"?i:i&3|8).toString(16)})},oF=(e,t,i={})=>i.shouldFocus||Jr(i.shouldFocus)?i.focusName||`${e}.${Jr(i.focusIndex)?t:i.focusIndex}.`:"",XV=e=>({isOnSubmit:!e||e===bc.onSubmit,isOnBlur:e===bc.onBlur,isOnChange:e===bc.onChange,isOnAll:e===bc.all,isOnTouch:e===bc.onTouched}),eQ=(e,t,i)=>!i&&(t.watchAll||t.watch.has(e)||[...t.watch].some(n=>e.startsWith(n)&&/^\.\w+/.test(e.slice(n.length)))),_ve=(e,t,i)=>{const n=o8(oo(e,i));return Pr(n,"root",t[i]),Pr(e,i,n),e},T7=e=>typeof e=="boolean",PY=e=>e.type==="file",U0=e=>typeof e=="function",$k=e=>{if(!BY)return!1;const t=e?e.ownerDocument:0;return e instanceof(t&&t.defaultView?t.defaultView.HTMLElement:HTMLElement)},H$=e=>Iu(e),TY=e=>e.type==="radio",kk=e=>e instanceof RegExp;const Rre={value:!1,isValid:!1},Ore={value:!0,isValid:!0};var Vve=e=>{if(Array.isArray(e)){if(e.length>1){const t=e.filter(i=>i&&i.checked&&!i.disabled).map(i=>i.value);return{value:t,isValid:!!t.length}}return e[0].checked&&!e[0].disabled?e[0].attributes&&!Jr(e[0].attributes.value)?Jr(e[0].value)||e[0].value===""?Ore:{value:e[0].value,isValid:!0}:Ore:Rre}return Rre};const Nre={isValid:!1,value:null};var Qve=e=>Array.isArray(e)?e.reduce((t,i)=>i&&i.checked&&!i.disabled?{isValid:!0,value:i.value}:t,Nre):Nre;function Hre(e,t,i="validate"){if(H$(e)||Array.isArray(e)&&e.every(H$)||T7(e)&&!e)return{type:i,message:H$(e)?e:"",ref:t}}var zf=e=>Ea(e)&&!kk(e)?e:{value:e,message:""},tQ=async(e,t,i,n,a)=>{const{ref:l,refs:d,required:c,maxLength:p,minLength:u,min:h,max:m,pattern:f,validate:x,name:y,valueAsNumber:w,mount:b,disabled:C}=e._f,k=oo(t,y);if(!b||C)return{};const E=d?d[0]:l,S=Y=>{n&&E.reportValidity&&(E.setCustomValidity(T7(Y)?"":Y||""),E.reportValidity())},j={},I=TY(l),T=Jw(l),P=I||T,B=(w||PY(l))&&Jr(l.value)&&Jr(k)||$k(l)&&l.value===""||k===""||Array.isArray(k)&&!k.length,D=bJe.bind(null,y,i,j),F=(Y,q,Z,V=Ah.maxLength,H=Ah.minLength)=>{const N=Y?q:Z;j[y]={type:Y?V:H,message:N,ref:l,...D(Y?V:H,N)}};if(a?!Array.isArray(k)||!k.length:c&&(!P&&(B||rl(k))||T7(k)&&!k||T&&!Vve(d).isValid||I&&!Qve(d).isValid)){const{value:Y,message:q}=H$(c)?{value:!!c,message:c}:zf(c);if(Y&&(j[y]={type:Ah.required,message:q,ref:E,...D(Ah.required,q)},!i))return S(q),j}if(!B&&(!rl(h)||!rl(m))){let Y,q;const Z=zf(m),V=zf(h);if(!rl(k)&&!isNaN(k)){const H=l.valueAsNumber||k&&+k;rl(Z.value)||(Y=H>Z.value),rl(V.value)||(q=H<V.value)}else{const H=l.valueAsDate||new Date(k),N=R=>new Date(new Date().toDateString()+" "+R),O=l.type=="time",z=l.type=="week";Iu(Z.value)&&k&&(Y=O?N(k)>N(Z.value):z?k>Z.value:H>new Date(Z.value)),Iu(V.value)&&k&&(q=O?N(k)<N(V.value):z?k<V.value:H<new Date(V.value))}if((Y||q)&&(F(!!Y,Z.message,V.message,Ah.max,Ah.min),!i))return S(j[y].message),j}if((p||u)&&!B&&(Iu(k)||a&&Array.isArray(k))){const Y=zf(p),q=zf(u),Z=!rl(Y.value)&&k.length>+Y.value,V=!rl(q.value)&&k.length<+q.value;if((Z||V)&&(F(Z,Y.message,q.message),!i))return S(j[y].message),j}if(f&&!B&&Iu(k)){const{value:Y,message:q}=zf(f);if(kk(Y)&&!k.match(Y)&&(j[y]={type:Ah.pattern,message:q,ref:l,...D(Ah.pattern,q)},!i))return S(q),j}if(x){if(U0(x)){const Y=await x(k,t),q=Hre(Y,E);if(q&&(j[y]={...q,...D(Ah.validate,q.message)},!i))return S(q.message),j}else if(Ea(x)){let Y={};for(const q in x){if(!$d(Y)&&!i)break;const Z=Hre(await x[q](k,t),E,q);Z&&(Y={...Z,...D(q,Z.message)},S(Z.message),i&&(j[y]=Y))}if(!$d(Y)&&(j[y]={ref:E,...Y},!i))return j}}return S(!0),j};function iF(e,t){return[...e,...jd(t)]}var rF=e=>Array.isArray(e)?e.map(()=>{}):void 0;function nF(e,t,i){return[...e.slice(0,t),...jd(i),...e.slice(t)]}var aF=(e,t,i)=>Array.isArray(e)?(Jr(e[i])&&(e[i]=void 0),e.splice(i,0,e.splice(t,1)[0]),e):[];function sF(e,t){return[...jd(t),...jd(e)]}function vJe(e,t){let i=0;const n=[...e];for(const a of t)n.splice(a-i,1),i++;return o8(n).length?n:[]}var lF=(e,t)=>Jr(t)?[]:vJe(e,jd(t).sort((i,n)=>i-n)),dF=(e,t,i)=>{e[t]=[e[i],e[i]=e[t]][0]};function CJe(e,t){const i=t.slice(0,-1).length;let n=0;for(;n<i;)e=Jr(e)?n++:e[t[n++]];return e}function AJe(e){for(const t in e)if(!Jr(e[t]))return!1;return!0}function Qa(e,t){const i=Array.isArray(t)?t:DY(t)?[t]:Hve(t),n=i.length===1?e:CJe(e,i),a=i.length-1,l=i[a];return n&&delete n[l],a!==0&&(Ea(n)&&$d(n)||Array.isArray(n)&&AJe(n))&&Qa(e,i.slice(0,-1)),e}var _re=(e,t,i)=>(e[t]=i,e);function zY(e){const t=Rt(),{control:i=t.control,name:n,keyName:a="id",shouldUnregister:l}=e,[d,c]=A.useState(i._getFieldArray(n)),p=A.useRef(i._getFieldArray(n).map(i0)),u=A.useRef(d),h=A.useRef(n),m=A.useRef(!1);h.current=n,u.current=d,i._names.array.add(n),e.rules&&i.register(n,e.rules),hL({next:({values:j,name:I})=>{if(I===h.current||!I){const T=oo(j,h.current);Array.isArray(T)&&(c(T),p.current=T.map(i0))}},subject:i._subjects.array});const f=A.useCallback(j=>{m.current=!0,i._updateFieldArray(n,j)},[i,n]),x=(j,I)=>{const T=jd(Hl(j)),P=iF(i._getFieldArray(n),T);i._names.focus=oF(n,P.length-1,I),p.current=iF(p.current,T.map(i0)),f(P),c(P),i._updateFieldArray(n,P,iF,{argA:rF(j)})},y=(j,I)=>{const T=jd(Hl(j)),P=sF(i._getFieldArray(n),T);i._names.focus=oF(n,0,I),p.current=sF(p.current,T.map(i0)),f(P),c(P),i._updateFieldArray(n,P,sF,{argA:rF(j)})},w=j=>{const I=lF(i._getFieldArray(n),j);p.current=lF(p.current,j),f(I),c(I),i._updateFieldArray(n,I,lF,{argA:j})},b=(j,I,T)=>{const P=jd(Hl(I)),B=nF(i._getFieldArray(n),j,P);i._names.focus=oF(n,j,T),p.current=nF(p.current,j,P.map(i0)),f(B),c(B),i._updateFieldArray(n,B,nF,{argA:j,argB:rF(I)})},C=(j,I)=>{const T=i._getFieldArray(n);dF(T,j,I),dF(p.current,j,I),f(T),c(T),i._updateFieldArray(n,T,dF,{argA:j,argB:I},!1)},k=(j,I)=>{const T=i._getFieldArray(n);aF(T,j,I),aF(p.current,j,I),f(T),c(T),i._updateFieldArray(n,T,aF,{argA:j,argB:I},!1)},E=(j,I)=>{const T=Hl(I),P=_re(i._getFieldArray(n),j,T);p.current=[...P].map((B,D)=>!B||D===j?i0():p.current[D]),f(P),c([...P]),i._updateFieldArray(n,P,_re,{argA:j,argB:T},!0,!1)},S=j=>{const I=jd(Hl(j));p.current=I.map(i0),f([...I]),c([...I]),i._updateFieldArray(n,[...I],T=>T,{},!0,!1)};return A.useEffect(()=>{if(i._state.action=!1,eQ(n,i._names)&&i._subjects.state.next({...i._formState}),m.current&&(!XV(i._options.mode).isOnSubmit||i._formState.isSubmitted))if(i._options.resolver)i._executeSchema([n]).then(j=>{const I=oo(j.errors,n),T=oo(i._formState.errors,n);(T?!I&&T.type:I&&I.type)&&(I?Pr(i._formState.errors,n,I):Qa(i._formState.errors,n),i._subjects.state.next({errors:i._formState.errors}))});else{const j=oo(i._fields,n);j&&j._f&&tQ(j,i._formValues,i._options.criteriaMode===bc.all,i._options.shouldUseNativeValidation,!0).then(I=>!$d(I)&&i._subjects.state.next({errors:_ve(i._formState.errors,I,n)}))}i._subjects.values.next({name:n,values:{...i._formValues}}),i._names.focus&&Ak(i._fields,j=>!!j&&j.startsWith(i._names.focus||"")),i._names.focus="",i._updateValid()},[d,n,i]),A.useEffect(()=>(!oo(i._formValues,n)&&i._updateFieldArray(n),()=>{(i._options.shouldUnregister||l)&&i.unregister(n)}),[n,i,a,l]),{swap:A.useCallback(C,[f,n,i]),move:A.useCallback(k,[f,n,i]),prepend:A.useCallback(y,[f,n,i]),append:A.useCallback(x,[f,n,i]),remove:A.useCallback(w,[f,n,i]),insert:A.useCallback(b,[f,n,i]),update:A.useCallback(E,[f,n,i]),replace:A.useCallback(S,[f,n,i]),fields:A.useMemo(()=>d.map((j,I)=>({...j,[a]:p.current[I]||i0()})),[d,a])}}function cF(){let e=[];return{get observers(){return e},next:t=>{for(const i of e)i.next&&i.next(t)},subscribe:t=>(e.push(t),{unsubscribe:()=>{e=e.filter(i=>i!==t)}}),unsubscribe:()=>{e=[]}}}var Sk=e=>rl(e)||!Dve(e);function q3(e,t){if(Sk(e)||Sk(t))return e===t;if(w7(e)&&w7(t))return e.getTime()===t.getTime();const i=Object.keys(e),n=Object.keys(t);if(i.length!==n.length)return!1;for(const a of i){const l=e[a];if(!n.includes(a))return!1;if(a!=="ref"){const d=t[a];if(w7(l)&&w7(d)||Ea(l)&&Ea(d)||Array.isArray(l)&&Array.isArray(d)?!q3(l,d):l!==d)return!1}}return!0}var Uve=e=>e.type==="select-multiple",$Je=e=>TY(e)||Jw(e),pF=e=>$k(e)&&e.isConnected,Wve=e=>{for(const t in e)if(U0(e[t]))return!0;return!1};function Ek(e,t={}){const i=Array.isArray(e);if(Ea(e)||i)for(const n in e)Array.isArray(e[n])||Ea(e[n])&&!Wve(e[n])?(t[n]=Array.isArray(e[n])?[]:{},Ek(e[n],t[n])):rl(e[n])||(t[n]=!0);return t}function Gve(e,t,i){const n=Array.isArray(e);if(Ea(e)||n)for(const a in e)Array.isArray(e[a])||Ea(e[a])&&!Wve(e[a])?Jr(t)||Sk(i[a])?i[a]=Array.isArray(e[a])?Ek(e[a],[]):{...Ek(e[a])}:Gve(e[a],rl(t)?{}:t[a],i[a]):i[a]=!q3(e[a],t[a]);return i}var uF=(e,t)=>Gve(e,t,Ek(t)),Yve=(e,{valueAsNumber:t,valueAsDate:i,setValueAs:n})=>Jr(e)?e:t?e===""?NaN:e&&+e:i&&Iu(e)?new Date(e):n?n(e):e;function hF(e){const t=e.ref;if(!(e.refs?e.refs.every(i=>i.disabled):t.disabled))return PY(t)?t.files:TY(t)?Qve(e.refs).value:Uve(t)?[...t.selectedOptions].map(({value:i})=>i):Jw(t)?Vve(e.refs).value:Yve(Jr(t.value)?e.ref.value:t.value,e)}var kJe=(e,t,i,n)=>{const a={};for(const l of e){const d=oo(t,l);d&&Pr(a,l,d._f)}return{criteriaMode:i,names:[...e],fields:a,shouldUseNativeValidation:n}},U8=e=>Jr(e)?e:kk(e)?e.source:Ea(e)?kk(e.value)?e.value.source:e.value:e,SJe=e=>e.mount&&(e.required||e.min||e.max||e.maxLength||e.minLength||e.pattern||e.validate);function Vre(e,t,i){const n=oo(e,i);if(n||DY(i))return{error:n,name:i};const a=i.split(".");for(;a.length;){const l=a.join("."),d=oo(t,l),c=oo(e,l);if(d&&!Array.isArray(d)&&i!==l)return{name:i};if(c&&c.type)return{name:l,error:c};a.pop()}return{name:i}}var EJe=(e,t,i,n,a)=>a.isOnAll?!1:!i&&a.isOnTouch?!(t||e):(i?n.isOnBlur:a.isOnBlur)?!e:(i?n.isOnChange:a.isOnChange)?e:!0,LJe=(e,t)=>!o8(oo(e,t)).length&&Qa(e,t);const IJe={mode:bc.onSubmit,reValidateMode:bc.onChange,shouldFocusError:!0};function jJe(e={},t){let i={...IJe,...e},n={submitCount:0,isDirty:!1,isLoading:U0(i.defaultValues),isValidating:!1,isSubmitted:!1,isSubmitting:!1,isSubmitSuccessful:!1,isValid:!1,touchedFields:{},dirtyFields:{},errors:{}},a={},l=Ea(i.defaultValues)||Ea(i.values)?Hl(i.defaultValues||i.values)||{}:{},d=i.shouldUnregister?{}:Hl(l),c={action:!1,mount:!1,watch:!1},p={mount:new Set,unMount:new Set,array:new Set,watch:new Set},u,h=0;const m={isDirty:!1,dirtyFields:!1,touchedFields:!1,isValidating:!1,isValid:!1,errors:!1},f={values:cF(),array:cF(),state:cF()},x=e.resetOptions&&e.resetOptions.keepDirtyValues,y=XV(i.mode),w=XV(i.reValidateMode),b=i.criteriaMode===bc.all,C=le=>ae=>{clearTimeout(h),h=setTimeout(le,ae)},k=async le=>{if(m.isValid||le){const ae=i.resolver?$d((await B()).errors):await F(a,!0);ae!==n.isValid&&f.state.next({isValid:ae})}},E=le=>m.isValidating&&f.state.next({isValidating:le}),S=(le,ae=[],fe,$e,ie=!0,he=!0)=>{if($e&&fe){if(c.action=!0,he&&Array.isArray(oo(a,le))){const Ie=fe(oo(a,le),$e.argA,$e.argB);ie&&Pr(a,le,Ie)}if(he&&Array.isArray(oo(n.errors,le))){const Ie=fe(oo(n.errors,le),$e.argA,$e.argB);ie&&Pr(n.errors,le,Ie),LJe(n.errors,le)}if(m.touchedFields&&he&&Array.isArray(oo(n.touchedFields,le))){const Ie=fe(oo(n.touchedFields,le),$e.argA,$e.argB);ie&&Pr(n.touchedFields,le,Ie)}m.dirtyFields&&(n.dirtyFields=uF(l,d)),f.state.next({name:le,isDirty:q(le,ae),dirtyFields:n.dirtyFields,errors:n.errors,isValid:n.isValid})}else Pr(d,le,ae)},j=(le,ae)=>{Pr(n.errors,le,ae),f.state.next({errors:n.errors})},I=(le,ae,fe,$e)=>{const ie=oo(a,le);if(ie){const he=oo(d,le,Jr(fe)?oo(l,le):fe);Jr(he)||$e&&$e.defaultChecked||ae?Pr(d,le,ae?he:hF(ie._f)):H(le,he),c.mount&&k()}},T=(le,ae,fe,$e,ie)=>{let he=!1,Ie=!1;const Fe={name:le};if(!fe||$e){m.isDirty&&(Ie=n.isDirty,n.isDirty=Fe.isDirty=q(),he=Ie!==Fe.isDirty);const Se=q3(oo(l,le),ae);Ie=oo(n.dirtyFields,le),Se?Qa(n.dirtyFields,le):Pr(n.dirtyFields,le,!0),Fe.dirtyFields=n.dirtyFields,he=he||m.dirtyFields&&Ie!==!Se}if(fe){const Se=oo(n.touchedFields,le);Se||(Pr(n.touchedFields,le,fe),Fe.touchedFields=n.touchedFields,he=he||m.touchedFields&&Se!==fe)}return he&&ie&&f.state.next(Fe),he?Fe:{}},P=(le,ae,fe,$e)=>{const ie=oo(n.errors,le),he=m.isValid&&T7(ae)&&n.isValid!==ae;if(e.delayError&&fe?(u=C(()=>j(le,fe)),u(e.delayError)):(clearTimeout(h),u=null,fe?Pr(n.errors,le,fe):Qa(n.errors,le)),(fe?!q3(ie,fe):ie)||!$d($e)||he){const Ie={...$e,...he&&T7(ae)?{isValid:ae}:{},errors:n.errors,name:le};n={...n,...Ie},f.state.next(Ie)}E(!1)},B=async le=>i.resolver(d,i.context,kJe(le||p.mount,a,i.criteriaMode,i.shouldUseNativeValidation)),D=async le=>{const{errors:ae}=await B();if(le)for(const fe of le){const $e=oo(ae,fe);$e?Pr(n.errors,fe,$e):Qa(n.errors,fe)}else n.errors=ae;return ae},F=async(le,ae,fe={valid:!0})=>{for(const $e in le){const ie=le[$e];if(ie){const{_f:he,...Ie}=ie;if(he){const Fe=p.array.has(he.name),Se=await tQ(ie,d,b,i.shouldUseNativeValidation&&!ae,Fe);if(Se[he.name]&&(fe.valid=!1,ae))break;!ae&&(oo(Se,he.name)?Fe?_ve(n.errors,Se,he.name):Pr(n.errors,he.name,Se[he.name]):Qa(n.errors,he.name))}Ie&&await F(Ie,ae,fe)}}return fe.valid},Y=()=>{for(const le of p.unMount){const ae=oo(a,le);ae&&(ae._f.refs?ae._f.refs.every(fe=>!pF(fe)):!pF(ae._f.ref))&&ne(le)}p.unMount=new Set},q=(le,ae)=>(le&&ae&&Pr(d,le,ae),!q3(te(),l)),Z=(le,ae,fe)=>Nve(le,p,{...c.mount?d:Jr(ae)?l:Iu(le)?{[le]:ae}:ae},fe,ae),V=le=>o8(oo(c.mount?d:l,le,e.shouldUnregister?oo(l,le,[]):[])),H=(le,ae,fe={})=>{const $e=oo(a,le);let ie=ae;if($e){const he=$e._f;he&&(!he.disabled&&Pr(d,le,Yve(ae,he)),ie=$k(he.ref)&&rl(ae)?"":ae,Uve(he.ref)?[...he.ref.options].forEach(Ie=>Ie.selected=ie.includes(Ie.value)):he.refs?Jw(he.ref)?he.refs.length>1?he.refs.forEach(Ie=>(!Ie.defaultChecked||!Ie.disabled)&&(Ie.checked=Array.isArray(ie)?!!ie.find(Fe=>Fe===Ie.value):ie===Ie.value)):he.refs[0]&&(he.refs[0].checked=!!ie):he.refs.forEach(Ie=>Ie.checked=Ie.value===ie):PY(he.ref)?he.ref.value="":(he.ref.value=ie,he.ref.type||f.values.next({name:le,values:{...d}})))}(fe.shouldDirty||fe.shouldTouch)&&T(le,ie,fe.shouldTouch,fe.shouldDirty,!0),fe.shouldValidate&&R(le)},N=(le,ae,fe)=>{for(const $e in ae){const ie=ae[$e],he=`${le}.${$e}`,Ie=oo(a,he);(p.array.has(le)||!Sk(ie)||Ie&&!Ie._f)&&!w7(ie)?N(he,ie,fe):H(he,ie,fe)}},O=(le,ae,fe={})=>{const $e=oo(a,le),ie=p.array.has(le),he=Hl(ae);Pr(d,le,he),ie?(f.array.next({name:le,values:{...d}}),(m.isDirty||m.dirtyFields)&&fe.shouldDirty&&f.state.next({name:le,dirtyFields:uF(l,d),isDirty:q(le,he)})):$e&&!$e._f&&!rl(he)?N(le,he,fe):H(le,he,fe),eQ(le,p)&&f.state.next({...n}),f.values.next({name:le,values:{...d}}),!c.mount&&t()},z=async le=>{const ae=le.target;let fe=ae.name,$e=!0;const ie=oo(a,fe),he=()=>ae.type?hF(ie._f):Pve(le);if(ie){let Ie,Fe;const Se=he(),ze=le.type===Ck.BLUR||le.type===Ck.FOCUS_OUT,Re=!SJe(ie._f)&&!i.resolver&&!oo(n.errors,fe)&&!ie._f.deps||EJe(ze,oo(n.touchedFields,fe),n.isSubmitted,w,y),tt=eQ(fe,p,ze);Pr(d,fe,Se),ze?(ie._f.onBlur&&ie._f.onBlur(le),u&&u(0)):ie._f.onChange&&ie._f.onChange(le);const Je=T(fe,Se,ze,!1),Pe=!$d(Je)||tt;if(!ze&&f.values.next({name:fe,type:le.type,values:{...d}}),Re)return m.isValid&&k(),Pe&&f.state.next({name:fe,...tt?{}:Je});if(!ze&&tt&&f.state.next({...n}),E(!0),i.resolver){const{errors:qe}=await B([fe]),Ae=Vre(n.errors,a,fe),Oe=Vre(qe,a,Ae.name||fe);Ie=Oe.error,fe=Oe.name,Fe=$d(qe)}else Ie=(await tQ(ie,d,b,i.shouldUseNativeValidation))[fe],$e=isNaN(Se)||Se===oo(d,fe,Se),$e&&(Ie?Fe=!1:m.isValid&&(Fe=await F(a,!0)));$e&&(ie._f.deps&&R(ie._f.deps),P(fe,Fe,Ie,Je))}},R=async(le,ae={})=>{let fe,$e;const ie=jd(le);if(E(!0),i.resolver){const he=await D(Jr(le)?le:ie);fe=$d(he),$e=le?!ie.some(Ie=>oo(he,Ie)):fe}else le?($e=(await Promise.all(ie.map(async he=>{const Ie=oo(a,he);return await F(Ie&&Ie._f?{[he]:Ie}:Ie)}))).every(Boolean),!(!$e&&!n.isValid)&&k()):$e=fe=await F(a);return f.state.next({...!Iu(le)||m.isValid&&fe!==n.isValid?{}:{name:le},...i.resolver||!le?{isValid:fe}:{},errors:n.errors,isValidating:!1}),ae.shouldFocus&&!$e&&Ak(a,he=>he&&oo(n.errors,he),le?ie:p.mount),$e},te=le=>{const ae={...l,...c.mount?d:{}};return Jr(le)?ae:Iu(le)?oo(ae,le):le.map(fe=>oo(ae,fe))},G=(le,ae)=>({invalid:!!oo((ae||n).errors,le),isDirty:!!oo((ae||n).dirtyFields,le),isTouched:!!oo((ae||n).touchedFields,le),error:oo((ae||n).errors,le)}),W=le=>{le&&jd(le).forEach(ae=>Qa(n.errors,ae)),f.state.next({errors:le?n.errors:{}})},ee=(le,ae,fe)=>{const $e=(oo(a,le,{_f:{}})._f||{}).ref;Pr(n.errors,le,{...ae,ref:$e}),f.state.next({name:le,errors:n.errors,isValid:!1}),fe&&fe.shouldFocus&&$e&&$e.focus&&$e.focus()},J=(le,ae)=>U0(le)?f.values.subscribe({next:fe=>le(Z(void 0,ae),fe)}):Z(le,ae,!0),ne=(le,ae={})=>{for(const fe of le?jd(le):p.mount)p.mount.delete(fe),p.array.delete(fe),ae.keepValue||(Qa(a,fe),Qa(d,fe)),!ae.keepError&&Qa(n.errors,fe),!ae.keepDirty&&Qa(n.dirtyFields,fe),!ae.keepTouched&&Qa(n.touchedFields,fe),!i.shouldUnregister&&!ae.keepDefaultValue&&Qa(l,fe);f.values.next({values:{...d}}),f.state.next({...n,...ae.keepDirty?{isDirty:q()}:{}}),!ae.keepIsValid&&k()},ye=(le,ae={})=>{let fe=oo(a,le);const $e=T7(ae.disabled);return Pr(a,le,{...fe||{},_f:{...fe&&fe._f?fe._f:{ref:{name:le}},name:le,mount:!0,...ae}}),p.mount.add(le),fe?$e&&Pr(d,le,ae.disabled?void 0:oo(d,le,hF(fe._f))):I(le,!0,ae.value),{...$e?{disabled:ae.disabled}:{},...i.shouldUseNativeValidation?{required:!!ae.required,min:U8(ae.min),max:U8(ae.max),minLength:U8(ae.minLength),maxLength:U8(ae.maxLength),pattern:U8(ae.pattern)}:{},name:le,onChange:z,onBlur:z,ref:ie=>{if(ie){ye(le,ae),fe=oo(a,le);const he=Jr(ie.value)&&ie.querySelectorAll&&ie.querySelectorAll("input,select,textarea")[0]||ie,Ie=$Je(he),Fe=fe._f.refs||[];if(Ie?Fe.find(Se=>Se===he):he===fe._f.ref)return;Pr(a,le,{_f:{...fe._f,...Ie?{refs:[...Fe.filter(pF),he,...Array.isArray(oo(l,le))?[{}]:[]],ref:{type:he.type,name:le}}:{ref:he}}}),I(le,!1,void 0,he)}else fe=oo(a,le,{}),fe._f&&(fe._f.mount=!1),(i.shouldUnregister||ae.shouldUnregister)&&!(Tve(p.array,le)&&c.action)&&p.unMount.add(le)}}},me=()=>i.shouldFocusError&&Ak(a,le=>le&&oo(n.errors,le),p.mount),ue=(le,ae)=>async fe=>{fe&&(fe.preventDefault&&fe.preventDefault(),fe.persist&&fe.persist());let $e=Hl(d);if(f.state.next({isSubmitting:!0}),i.resolver){const{errors:ie,values:he}=await B();n.errors=ie,$e=he}else await F(a);Qa(n.errors,"root"),$d(n.errors)?(f.state.next({errors:{}}),await le($e,fe)):(ae&&await ae({...n.errors},fe),me(),setTimeout(me)),f.state.next({isSubmitted:!0,isSubmitting:!1,isSubmitSuccessful:$d(n.errors),submitCount:n.submitCount+1,errors:n.errors})},pe=(le,ae={})=>{oo(a,le)&&(Jr(ae.defaultValue)?O(le,oo(l,le)):(O(le,ae.defaultValue),Pr(l,le,ae.defaultValue)),ae.keepTouched||Qa(n.touchedFields,le),ae.keepDirty||(Qa(n.dirtyFields,le),n.isDirty=ae.defaultValue?q(le,oo(l,le)):q()),ae.keepError||(Qa(n.errors,le),m.isValid&&k()),f.state.next({...n}))},xe=(le,ae={})=>{const fe=le||l,$e=Hl(fe),ie=le&&!$d(le)?$e:l;if(ae.keepDefaultValues||(l=fe),!ae.keepValues){if(ae.keepDirtyValues||x)for(const he of p.mount)oo(n.dirtyFields,he)?Pr(ie,he,oo(d,he)):O(he,oo(ie,he));else{if(BY&&Jr(le))for(const he of p.mount){const Ie=oo(a,he);if(Ie&&Ie._f){const Fe=Array.isArray(Ie._f.refs)?Ie._f.refs[0]:Ie._f.ref;if($k(Fe)){const Se=Fe.closest("form");if(Se){Se.reset();break}}}}a={}}d=e.shouldUnregister?ae.keepDefaultValues?Hl(l):{}:$e,f.array.next({values:{...ie}}),f.values.next({values:{...ie}})}p={mount:new Set,unMount:new Set,array:new Set,watch:new Set,watchAll:!1,focus:""},!c.mount&&t(),c.mount=!m.isValid||!!ae.keepIsValid,c.watch=!!e.shouldUnregister,f.state.next({submitCount:ae.keepSubmitCount?n.submitCount:0,isDirty:ae.keepDirty?n.isDirty:!!(ae.keepDefaultValues&&!q3(le,l)),isSubmitted:ae.keepIsSubmitted?n.isSubmitted:!1,dirtyFields:ae.keepDirtyValues?n.dirtyFields:ae.keepDefaultValues&&le?uF(l,le):{},touchedFields:ae.keepTouched?n.touchedFields:{},errors:ae.keepErrors?n.errors:{},isSubmitting:!1,isSubmitSuccessful:!1})},be=(le,ae)=>xe(U0(le)?le(d):le,ae);return{control:{register:ye,unregister:ne,getFieldState:G,_executeSchema:B,_getWatch:Z,_getDirty:q,_updateValid:k,_removeUnmounted:Y,_updateFieldArray:S,_getFieldArray:V,_reset:xe,_resetDefaultValues:()=>U0(i.defaultValues)&&i.defaultValues().then(le=>{be(le,i.resetOptions),f.state.next({isLoading:!1})}),_updateFormState:le=>{n={...n,...le}},_subjects:f,_proxyFormState:m,get _fields(){return a},get _formValues(){return d},get _state(){return c},set _state(le){c=le},get _defaultValues(){return l},get _names(){return p},set _names(le){p=le},get _formState(){return n},set _formState(le){n=le},get _options(){return i},set _options(le){i={...i,...le}}},trigger:R,register:ye,handleSubmit:ue,watch:J,setValue:O,getValues:te,reset:be,resetField:pe,clearErrors:W,unregister:ne,setError:ee,setFocus:(le,ae={})=>{const fe=oo(a,le),$e=fe&&fe._f;if($e){const ie=$e.refs?$e.refs[0]:$e.ref;ie.focus&&(ie.focus(),ae.shouldSelect&&ie.select())}},getFieldState:G}}function vr(e={}){const t=A.useRef(),[i,n]=A.useState({isDirty:!1,isValidating:!1,isLoading:U0(e.defaultValues),isSubmitted:!1,isSubmitting:!1,isSubmitSuccessful:!1,isValid:!1,submitCount:0,dirtyFields:{},touchedFields:{},errors:{},defaultValues:U0(e.defaultValues)?void 0:e.defaultValues});t.current||(t.current={...jJe(e,()=>n(l=>({...l}))),formState:i});const a=t.current.control;return a._options=e,hL({subject:a._subjects.state,next:l=>{Rve(l,a._proxyFormState,a._updateFormState,!0)&&n({...a._formState})}}),A.useEffect(()=>{e.values&&!q3(e.values,a._defaultValues)?a._reset(e.values,a._options.resetOptions):a._resetDefaultValues()},[e.values,a]),A.useEffect(()=>{a._state.mount||(a._updateValid(),a._state.mount=!0),a._state.watch&&(a._state.watch=!1,a._subjects.state.next({...a._formState})),a._removeUnmounted()}),t.current.formState=Fve(i,a),t.current}let Ac;typeof window<"u"?Ac=window:typeof self<"u"?Ac=self:Ac=b4;let oQ=null,iQ=null;const Qre=20,mF=Ac.clearTimeout,Ure=Ac.setTimeout,gF=Ac.cancelAnimationFrame||Ac.mozCancelAnimationFrame||Ac.webkitCancelAnimationFrame,Wre=Ac.requestAnimationFrame||Ac.mozRequestAnimationFrame||Ac.webkitRequestAnimationFrame;gF==null||Wre==null?(oQ=mF,iQ=function(e){return Ure(e,Qre)}):(oQ=function([e,t]){gF(e),mF(t)},iQ=function(e){const t=Wre(function(){mF(i),e()}),i=Ure(function(){gF(t),e()},Qre);return[t,i]});function MJe(e){let t,i,n,a,l,d,c;const p=typeof document<"u"&&document.attachEvent;if(!p){d=function(w){const b=w.__resizeTriggers__,C=b.firstElementChild,k=b.lastElementChild,E=C.firstElementChild;k.scrollLeft=k.scrollWidth,k.scrollTop=k.scrollHeight,E.style.width=C.offsetWidth+1+"px",E.style.height=C.offsetHeight+1+"px",C.scrollLeft=C.scrollWidth,C.scrollTop=C.scrollHeight},l=function(w){return w.offsetWidth!==w.__resizeLast__.width||w.offsetHeight!==w.__resizeLast__.height},c=function(w){if(w.target.className&&typeof w.target.className.indexOf=="function"&&w.target.className.indexOf("contract-trigger")<0&&w.target.className.indexOf("expand-trigger")<0)return;const b=this;d(this),this.__resizeRAF__&&oQ(this.__resizeRAF__),this.__resizeRAF__=iQ(function(){l(b)&&(b.__resizeLast__.width=b.offsetWidth,b.__resizeLast__.height=b.offsetHeight,b.__resizeListeners__.forEach(function(C){C.call(b,w)}))})};let h=!1,m="";n="animationstart";const f="Webkit Moz O ms".split(" ");let x="webkitAnimationStart animationstart oAnimationStart MSAnimationStart".split(" "),y="";{const w=document.createElement("fakeelement");if(w.style.animationName!==void 0&&(h=!0),h===!1){for(let b=0;b<f.length;b++)if(w.style[f[b]+"AnimationName"]!==void 0){y=f[b],m="-"+y.toLowerCase()+"-",n=x[b],h=!0;break}}}i="resizeanim",t="@"+m+"keyframes "+i+" { from { opacity: 0; } to { opacity: 0; } } ",a=m+"animation: 1ms "+i+"; "}const u=function(h){if(!h.getElementById("detectElementResize")){const m=(t||"")+".resize-triggers { "+(a||"")+'visibility: hidden; opacity: 0; } .resize-triggers, .resize-triggers > div, .contract-trigger:before { content: " "; display: block; position: absolute; top: 0; left: 0; height: 100%; width: 100%; overflow: hidden; z-index: -1; } .resize-triggers > div { background: #eee; overflow: auto; } .contract-trigger:before { width: 200%; height: 200%; }',f=h.head||h.getElementsByTagName("head")[0],x=h.createElement("style");x.id="detectElementResize",x.type="text/css",e!=null&&x.setAttribute("nonce",e),x.styleSheet?x.styleSheet.cssText=m:x.appendChild(h.createTextNode(m)),f.appendChild(x)}};return{addResizeListener:function(h,m){if(p)h.attachEvent("onresize",m);else{if(!h.__resizeTriggers__){const f=h.ownerDocument,x=Ac.getComputedStyle(h);x&&x.position==="static"&&(h.style.position="relative"),u(f),h.__resizeLast__={},h.__resizeListeners__=[],(h.__resizeTriggers__=f.createElement("div")).className="resize-triggers";const y=f.createElement("div");y.className="expand-trigger",y.appendChild(f.createElement("div"));const w=f.createElement("div");w.className="contract-trigger",h.__resizeTriggers__.appendChild(y),h.__resizeTriggers__.appendChild(w),h.appendChild(h.__resizeTriggers__),d(h),h.addEventListener("scroll",c,!0),n&&(h.__resizeTriggers__.__animationListener__=function(b){b.animationName===i&&d(h)},h.__resizeTriggers__.addEventListener(n,h.__resizeTriggers__.__animationListener__))}h.__resizeListeners__.push(m)}},removeResizeListener:function(h,m){if(p)h.detachEvent("onresize",m);else if(h.__resizeListeners__.splice(h.__resizeListeners__.indexOf(m),1),!h.__resizeListeners__.length){h.removeEventListener("scroll",c,!0),h.__resizeTriggers__.__animationListener__&&(h.__resizeTriggers__.removeEventListener(n,h.__resizeTriggers__.__animationListener__),h.__resizeTriggers__.__animationListener__=null);try{h.__resizeTriggers__=!h.removeChild(h.__resizeTriggers__)}catch{}}}}}let wr=class extends g.Component{constructor(...t){super(...t),this.state={height:this.props.defaultHeight||0,width:this.props.defaultWidth||0},this._autoSizer=null,this._detectElementResize=null,this._didLogDeprecationWarning=!1,this._parentNode=null,this._resizeObserver=null,this._timeoutId=null,this._onResize=()=>{this._timeoutId=null;const{disableHeight:i,disableWidth:n,onResize:a}=this.props;if(this._parentNode){const l=window.getComputedStyle(this._parentNode)||{},d=parseFloat(l.paddingLeft||"0"),c=parseFloat(l.paddingRight||"0"),p=parseFloat(l.paddingTop||"0"),u=parseFloat(l.paddingBottom||"0"),h=this._parentNode.getBoundingClientRect(),m=h.height-p-u,f=h.width-d-c;if(!i&&this.state.height!==m||!n&&this.state.width!==f){this.setState({height:m,width:f});const x=()=>{this._didLogDeprecationWarning||(this._didLogDeprecationWarning=!0,console.warn("scaledWidth and scaledHeight parameters have been deprecated; use width and height instead"))};typeof a=="function"&&a({height:m,width:f,get scaledHeight(){return x(),m},get scaledWidth(){return x(),f}})}}},this._setRef=i=>{this._autoSizer=i}}componentDidMount(){const{nonce:t}=this.props,i=this._autoSizer?this._autoSizer.parentNode:null;if(i!=null&&i.ownerDocument&&i.ownerDocument.defaultView&&i instanceof i.ownerDocument.defaultView.HTMLElement){this._parentNode=i;const n=i.ownerDocument.defaultView.ResizeObserver;n!=null?(this._resizeObserver=new n(()=>{this._timeoutId=setTimeout(this._onResize,0)}),this._resizeObserver.observe(i)):(this._detectElementResize=MJe(t),this._detectElementResize.addResizeListener(i,this._onResize)),this._onResize()}}componentWillUnmount(){this._parentNode&&(this._detectElementResize&&this._detectElementResize.removeResizeListener(this._parentNode,this._onResize),this._timeoutId!==null&&clearTimeout(this._timeoutId),this._resizeObserver&&this._resizeObserver.disconnect())}render(){const{children:t,defaultHeight:i,defaultWidth:n,disableHeight:a=!1,disableWidth:l=!1,doNotBailOutOnEmptyChildren:d=!1,nonce:c,onResize:p,style:u={},tagName:h="div",...m}=this.props,{height:f,width:x}=this.state,y={overflow:"visible"},w={};let b=!1;return a||(f===0&&(b=!0),y.height=0,w.height=f,w.scaledHeight=f),l||(x===0&&(b=!0),y.width=0,w.width=x,w.scaledWidth=x),d&&(b=!1),g.createElement(h,{ref:this._setRef,style:{...y,...u},...m},!b&&t(w))}};function Rd(e){"@babel/helpers - typeof";return Rd=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Rd(e)}function rQ(e,t){(t==null||t>e.length)&&(t=e.length);for(var i=0,n=Array(t);i<t;i++)n[i]=e[i];return n}function FY(e,t){if(e){if(typeof e=="string")return rQ(e,t);var i={}.toString.call(e).slice(8,-1);return i==="Object"&&e.constructor&&(i=e.constructor.name),i==="Map"||i==="Set"?Array.from(e):i==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(i)?rQ(e,t):void 0}}function Gre(e,t){var i=typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(!i){if(Array.isArray(e)||(i=FY(e))||t){i&&(e=i);var n=0,a=function(){};return{s:a,n:function(){return n>=e.length?{done:!0}:{done:!1,value:e[n++]}},e:function(p){throw p},f:a}}throw new TypeError(`Invalid attempt to iterate non-iterable instance.
|
|
4
4
|
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}var l,d=!0,c=!1;return{s:function(){i=i.call(e)},n:function(){var p=i.next();return d=p.done,p},e:function(p){c=!0,l=p},f:function(){try{d||i.return==null||i.return()}finally{if(c)throw l}}}}function ro(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function Lk(e,t){return Lk=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(i,n){return i.__proto__=n,i},Lk(e,t)}function Xi(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&Lk(e,t)}function Ik(e){return Ik=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)},Ik(e)}function Kve(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(Kve=function(){return!!e})()}function BJe(e,t){if(t&&(Rd(t)=="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return ro(e)}function er(e){var t=Kve();return function(){var i,n=Ik(e);if(t){var a=Ik(this).constructor;i=Reflect.construct(n,arguments,a)}else i=n.apply(this,arguments);return BJe(this,i)}}function Hi(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function DJe(e,t){if(Rd(e)!="object"||!e)return e;var i=e[Symbol.toPrimitive];if(i!==void 0){var n=i.call(e,t);if(Rd(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function qve(e){var t=DJe(e,"string");return Rd(t)=="symbol"?t:t+""}function Yre(e,t){for(var i=0;i<t.length;i++){var n=t[i];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,qve(n.key),n)}}function _i(e,t,i){return t&&Yre(e.prototype,t),i&&Yre(e,i),Object.defineProperty(e,"prototype",{writable:!1}),e}function Jt(e,t,i){return(t=qve(t))in e?Object.defineProperty(e,t,{value:i,enumerable:!0,configurable:!0,writable:!0}):e[t]=i,e}function Kre(e,t){var i=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(a){return Object.getOwnPropertyDescriptor(e,a).enumerable})),i.push.apply(i,n)}return i}function So(e){for(var t=1;t<arguments.length;t++){var i=arguments[t]!=null?arguments[t]:{};t%2?Kre(Object(i),!0).forEach(function(n){Jt(e,n,i[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(i)):Kre(Object(i)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(i,n))})}return e}function PJe(e){if(Array.isArray(e))return e}function TJe(e,t){var i=e==null?null:typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(i!=null){var n,a,l,d,c=[],p=!0,u=!1;try{if(l=(i=i.call(e)).next,t===0){if(Object(i)!==i)return;p=!1}else for(;!(p=(n=l.call(i)).done)&&(c.push(n.value),c.length!==t);p=!0);}catch(h){u=!0,a=h}finally{try{if(!p&&i.return!=null&&(d=i.return(),Object(d)!==d))return}finally{if(u)throw a}}return c}}function zJe(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
|
|
5
5
|
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function Ga(e,t){return PJe(e)||TJe(e,t)||FY(e,t)||zJe()}function jk(e,t){if(e==null)return{};var i={};for(var n in e)if({}.hasOwnProperty.call(e,n)){if(t.indexOf(n)!==-1)continue;i[n]=e[n]}return i}function V1(e,t){if(e==null)return{};var i,n,a=jk(e,t);if(Object.getOwnPropertySymbols){var l=Object.getOwnPropertySymbols(e);for(n=0;n<l.length;n++)i=l[n],t.indexOf(i)===-1&&{}.propertyIsEnumerable.call(e,i)&&(a[i]=e[i])}return a}function Bo(){return Bo=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var i=arguments[t];for(var n in i)({}).hasOwnProperty.call(i,n)&&(e[n]=i[n])}return e},Bo.apply(null,arguments)}function FJe(e){if(Array.isArray(e))return rQ(e)}function RJe(e){if(typeof Symbol<"u"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}function OJe(){throw new TypeError(`Invalid attempt to spread non-iterable instance.
|
|
@@ -85,7 +85,7 @@ self.addEventListener('message', async (e) => {
|
|
|
85
85
|
}
|
|
86
86
|
})
|
|
87
87
|
`;let tO;function h$t(e,t){return new Promise(((i,n)=>{tO||(tO=(function(l){const d=[];return d.push(l),URL.createObjectURL(new Blob(d))})(u$t));const a=new Worker(tO);a.addEventListener("message",(function(l){if(t.signal&&t.signal.aborted)a.terminate();else if(l.data.progress===void 0){if(l.data.error)return n(new Error(l.data.error)),void a.terminate();i(l.data.file),a.terminate()}else t.onProgress(l.data.progress)})),a.addEventListener("error",n),t.signal&&t.signal.addEventListener("abort",(()=>{n(t.signal.reason),a.terminate()})),a.postMessage({file:e,imageCompressionLibUrl:t.libURL,options:{...t,onProgress:void 0,signal:void 0}})}))}function Is(e,t){return new Promise((function(i,n){let a,l,d,c,p,u;if(a={...t},d=0,{onProgress:c}=a,a.maxSizeMB=a.maxSizeMB||Number.POSITIVE_INFINITY,p=typeof a.useWebWorker!="boolean"||a.useWebWorker,delete a.useWebWorker,a.onProgress=x=>{d=x,typeof c=="function"&&c(d)},!(e instanceof Blob||e instanceof p$t))return n(new Error("The file given is not an instance of Blob or File"));if(!/^image/.test(e.type))return n(new Error("The file given is not an image"));if(u=typeof WorkerGlobalScope<"u"&&self instanceof WorkerGlobalScope,!p||typeof Worker!="function"||u)return npe(e,a).then((function(x){try{return l=x,f.call(this)}catch(y){return n(y)}}).bind(this),n);var h=(function(){try{return f.call(this)}catch(x){return n(x)}}).bind(this),m=function(x){try{return npe(e,a).then((function(y){try{return l=y,h()}catch(w){return n(w)}}),n)}catch(y){return n(y)}};try{return a.libURL=a.libURL||"https://cdn.jsdelivr.net/npm/browser-image-compression@2.0.2/dist/browser-image-compression.js",h$t(e,a).then((function(x){try{return l=x,h()}catch{return m()}}),m)}catch{m()}function f(){try{l.name=e.name,l.lastModified=e.lastModified}catch{}try{a.preserveExif&&e.type==="image/jpeg"&&(!a.fileType||a.fileType&&a.fileType===e.type)&&(l=kje(e,l))}catch{}return i(l)}}))}Is.getDataUrlFromFile=Ije,Is.getFilefromDataUrl=jK,Is.loadImage=jje,Is.drawImageInCanvas=Bje,Is.drawFileInCanvas=dS,Is.canvasToFile=cS,Is.getExifOrientation=Dje,Is.handleMaxWidthOrHeight=Pje,Is.followExifOrientation=Tje,Is.cleanupCanvasMemory=au,Is.isAutoOrientationInBrowser=A7,Is.approximateBelowMaximumCanvasSizeOfBrowser=Mje,Is.copyExifWithoutOrientation=kje,Is.getBrowserName=J3,Is.version="2.0.2";var wy={};wy.d=(e,t)=>{for(var i in t)wy.o(t,i)&&!wy.o(e,i)&&Object.defineProperty(e,i,{enumerable:!0,get:t[i]})};wy.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t);var ni=globalThis.pdfjsLib={};wy.d(ni,{AbortException:()=>K4,AnnotationEditorLayer:()=>Nh,AnnotationEditorParamsType:()=>di,AnnotationEditorType:()=>qi,AnnotationEditorUIManager:()=>gm,AnnotationLayer:()=>pSt,AnnotationMode:()=>O0,CMapCompressionType:()=>pU,ColorPicker:()=>ou,DOMSVGFactory:()=>DK,DrawLayer:()=>Ms,FeatureTest:()=>Ql,GlobalWorkerOptions:()=>dw,ImageKind:()=>J$,InvalidPDFException:()=>Fje,MissingPDFException:()=>Y4,OPS:()=>g1,Outliner:()=>wU,PDFDataRangeTransport:()=>eMe,PDFDateString:()=>Vje,PDFWorker:()=>dc,PasswordResponses:()=>x$t,PermissionFlag:()=>f$t,PixelsPerInch:()=>f6,RenderingCancelledException:()=>PK,TextLayer:()=>hS,UnexpectedResponseException:()=>VL,Util:()=>ko,VerbosityLevel:()=>NL,XfaLayer:()=>oMe,build:()=>Ukt,createValidAbsoluteUrl:()=>v$t,fetchData:()=>KL,getDocument:()=>zkt,getFilenameFromUrl:()=>M$t,getPdfFilenameFromUrl:()=>B$t,getXfaPageViewport:()=>D$t,isDataScheme:()=>TK,isPdfFile:()=>zK,noContextMenu:()=>ql,normalizeUnicode:()=>E$t,renderTextLayer:()=>Ekt,setLayerDimensions:()=>S4,shadow:()=>nr,updateTextLayer:()=>Lkt,version:()=>Qkt});const Rs=typeof Qh=="object"&&Qh+""=="[object process]"&&!Qh.versions.nw&&!(Qh.versions.electron&&Qh.type&&Qh.type!=="browser"),zje=[1,0,0,1,0,0],cU=[.001,0,0,.001,0,0],m$t=1e7,oO=1.35,nc={ANY:1,DISPLAY:2,PRINT:4,ANNOTATIONS_FORMS:16,ANNOTATIONS_STORAGE:32,ANNOTATIONS_DISABLE:64,OPLIST:256},O0={DISABLE:0,ENABLE:1,ENABLE_FORMS:2,ENABLE_STORAGE:3},g$t="pdfjs_internal_editor_",qi={DISABLE:-1,NONE:0,FREETEXT:3,HIGHLIGHT:9,STAMP:13,INK:15},di={RESIZE:1,CREATE:2,FREETEXT_SIZE:11,FREETEXT_COLOR:12,FREETEXT_OPACITY:13,INK_COLOR:21,INK_THICKNESS:22,INK_OPACITY:23,HIGHLIGHT_COLOR:31,HIGHLIGHT_DEFAULT_COLOR:32,HIGHLIGHT_THICKNESS:33,HIGHLIGHT_FREE:34,HIGHLIGHT_SHOW_ALL:35},f$t={PRINT:4,MODIFY_CONTENTS:8,COPY:16,MODIFY_ANNOTATIONS:32,FILL_INTERACTIVE_FORMS:256,COPY_FOR_ACCESSIBILITY:512,ASSEMBLE:1024,PRINT_HIGH_QUALITY:2048},js={FILL:0,STROKE:1,FILL_STROKE:2,INVISIBLE:3,FILL_STROKE_MASK:3,ADD_TO_PATH_FLAG:4},J$={GRAYSCALE_1BPP:1,RGB_24BPP:2,RGBA_32BPP:3},xa={TEXT:1,LINK:2,FREETEXT:3,LINE:4,SQUARE:5,CIRCLE:6,POLYGON:7,POLYLINE:8,HIGHLIGHT:9,UNDERLINE:10,SQUIGGLY:11,STRIKEOUT:12,STAMP:13,CARET:14,INK:15,POPUP:16,FILEATTACHMENT:17,WIDGET:20},I9={SOLID:1,DASHED:2,BEVELED:3,INSET:4,UNDERLINE:5},NL={ERRORS:0,WARNINGS:1,INFOS:5},pU={NONE:0,BINARY:1},g1={dependency:1,setLineWidth:2,setLineCap:3,setLineJoin:4,setMiterLimit:5,setDash:6,setRenderingIntent:7,setFlatness:8,setGState:9,save:10,restore:11,transform:12,moveTo:13,lineTo:14,curveTo:15,curveTo2:16,curveTo3:17,closePath:18,rectangle:19,stroke:20,closeStroke:21,fill:22,eoFill:23,fillStroke:24,eoFillStroke:25,closeFillStroke:26,closeEOFillStroke:27,endPath:28,clip:29,eoClip:30,beginText:31,endText:32,setCharSpacing:33,setWordSpacing:34,setHScale:35,setLeading:36,setFont:37,setTextRenderingMode:38,setTextRise:39,moveText:40,setLeadingMoveText:41,setTextMatrix:42,nextLine:43,showText:44,showSpacedText:45,nextLineShowText:46,nextLineSetSpacingShowText:47,setCharWidth:48,setCharWidthAndBounds:49,setStrokeColorSpace:50,setFillColorSpace:51,setStrokeColor:52,setStrokeColorN:53,setFillColor:54,setFillColorN:55,setStrokeGray:56,setFillGray:57,setStrokeRGBColor:58,setFillRGBColor:59,setStrokeCMYKColor:60,setFillCMYKColor:61,shadingFill:62,beginInlineImage:63,beginImageData:64,endInlineImage:65,paintXObject:66,markPoint:67,markPointProps:68,beginMarkedContent:69,beginMarkedContentProps:70,endMarkedContent:71,beginCompat:72,endCompat:73,paintFormXObjectBegin:74,paintFormXObjectEnd:75,beginGroup:76,endGroup:77,beginAnnotation:80,endAnnotation:81,paintImageMaskXObject:83,paintImageMaskXObjectGroup:84,paintImageXObject:85,paintInlineImageXObject:86,paintInlineImageXObjectGroup:87,paintImageXObjectRepeat:88,paintImageMaskXObjectRepeat:89,paintSolidColorImageMask:90,constructPath:91},x$t={NEED_PASSWORD:1,INCORRECT_PASSWORD:2};let HL=NL.WARNINGS;function y$t(e){Number.isInteger(e)&&(HL=e)}function w$t(){return HL}function _L(e){HL>=NL.INFOS&&console.log(`Info: ${e}`)}function Pi(e){HL>=NL.WARNINGS&&console.log(`Warning: ${e}`)}function jr(e){throw new Error(e)}function Ca(e,t){e||jr(t)}function b$t(e){switch(e?.protocol){case"http:":case"https:":case"ftp:":case"mailto:":case"tel:":return!0;default:return!1}}function v$t(e,t=null,i=null){if(!e)return null;try{if(i&&typeof e=="string"&&(i.addDefaultProtocol&&e.startsWith("www.")&&e.match(/\./g)?.length>=2&&(e=`http://${e}`),i.tryConvertEncoding))try{e=S$t(e)}catch{}const n=t?new URL(e,t):new URL(e);if(b$t(n))return n}catch{}return null}function nr(e,t,i,n=!1){return Object.defineProperty(e,t,{value:i,enumerable:!n,configurable:!0,writable:!1}),i}const Im=(function(){function t(i,n){this.constructor===t&&jr("Cannot initialize BaseException."),this.message=i,this.name=n}return t.prototype=new Error,t.constructor=t,t})();class uU extends Im{constructor(t,i){super(t,"PasswordException"),this.code=i}}class hU extends Im{constructor(t,i){super(t,"UnknownErrorException"),this.details=i}}class Fje extends Im{constructor(t){super(t,"InvalidPDFException")}}class Y4 extends Im{constructor(t){super(t,"MissingPDFException")}}class VL extends Im{constructor(t,i){super(t,"UnexpectedResponseException"),this.status=i}}class C$t extends Im{constructor(t){super(t,"FormatError")}}class K4 extends Im{constructor(t){super(t,"AbortException")}}function Rje(e){(typeof e!="object"||e?.length===void 0)&&jr("Invalid argument for bytesToString");const t=e.length,i=8192;if(t<i)return String.fromCharCode.apply(null,e);const n=[];for(let a=0;a<t;a+=i){const l=Math.min(a+i,t),d=e.subarray(a,l);n.push(String.fromCharCode.apply(null,d))}return n.join("")}function QL(e){typeof e!="string"&&jr("Invalid argument for stringToBytes");const t=e.length,i=new Uint8Array(t);for(let n=0;n<t;++n)i[n]=e.charCodeAt(n)&255;return i}function A$t(e){return String.fromCharCode(e>>24&255,e>>16&255,e>>8&255,e&255)}function MK(e){const t=Object.create(null);for(const[i,n]of e)t[i]=n;return t}function $$t(){const e=new Uint8Array(4);return e[0]=1,new Uint32Array(e.buffer,0,1)[0]===1}function k$t(){try{return new Function(""),!0}catch{return!1}}class Ql{static get isLittleEndian(){return nr(this,"isLittleEndian",$$t())}static get isEvalSupported(){return nr(this,"isEvalSupported",k$t())}static get isOffscreenCanvasSupported(){return nr(this,"isOffscreenCanvasSupported",typeof OffscreenCanvas<"u")}static get platform(){return typeof navigator<"u"&&typeof navigator?.platform=="string"?nr(this,"platform",{isMac:navigator.platform.includes("Mac")}):nr(this,"platform",{isMac:!1})}static get isCSSRoundSupported(){return nr(this,"isCSSRoundSupported",globalThis.CSS?.supports?.("width: round(1.5px, 1px)"))}}const iO=Array.from(Array(256).keys(),e=>e.toString(16).padStart(2,"0"));class ko{static makeHexColor(t,i,n){return`#${iO[t]}${iO[i]}${iO[n]}`}static scaleMinMax(t,i){let n;t[0]?(t[0]<0&&(n=i[0],i[0]=i[2],i[2]=n),i[0]*=t[0],i[2]*=t[0],t[3]<0&&(n=i[1],i[1]=i[3],i[3]=n),i[1]*=t[3],i[3]*=t[3]):(n=i[0],i[0]=i[1],i[1]=n,n=i[2],i[2]=i[3],i[3]=n,t[1]<0&&(n=i[1],i[1]=i[3],i[3]=n),i[1]*=t[1],i[3]*=t[1],t[2]<0&&(n=i[0],i[0]=i[2],i[2]=n),i[0]*=t[2],i[2]*=t[2]),i[0]+=t[4],i[1]+=t[5],i[2]+=t[4],i[3]+=t[5]}static transform(t,i){return[t[0]*i[0]+t[2]*i[1],t[1]*i[0]+t[3]*i[1],t[0]*i[2]+t[2]*i[3],t[1]*i[2]+t[3]*i[3],t[0]*i[4]+t[2]*i[5]+t[4],t[1]*i[4]+t[3]*i[5]+t[5]]}static applyTransform(t,i){const n=t[0]*i[0]+t[1]*i[2]+i[4],a=t[0]*i[1]+t[1]*i[3]+i[5];return[n,a]}static applyInverseTransform(t,i){const n=i[0]*i[3]-i[1]*i[2],a=(t[0]*i[3]-t[1]*i[2]+i[2]*i[5]-i[4]*i[3])/n,l=(-t[0]*i[1]+t[1]*i[0]+i[4]*i[1]-i[5]*i[0])/n;return[a,l]}static getAxialAlignedBoundingBox(t,i){const n=this.applyTransform(t,i),a=this.applyTransform(t.slice(2,4),i),l=this.applyTransform([t[0],t[3]],i),d=this.applyTransform([t[2],t[1]],i);return[Math.min(n[0],a[0],l[0],d[0]),Math.min(n[1],a[1],l[1],d[1]),Math.max(n[0],a[0],l[0],d[0]),Math.max(n[1],a[1],l[1],d[1])]}static inverseTransform(t){const i=t[0]*t[3]-t[1]*t[2];return[t[3]/i,-t[1]/i,-t[2]/i,t[0]/i,(t[2]*t[5]-t[4]*t[3])/i,(t[4]*t[1]-t[5]*t[0])/i]}static singularValueDecompose2dScale(t){const i=[t[0],t[2],t[1],t[3]],n=t[0]*i[0]+t[1]*i[2],a=t[0]*i[1]+t[1]*i[3],l=t[2]*i[0]+t[3]*i[2],d=t[2]*i[1]+t[3]*i[3],c=(n+d)/2,p=Math.sqrt((n+d)**2-4*(n*d-l*a))/2,u=c+p||1,h=c-p||1;return[Math.sqrt(u),Math.sqrt(h)]}static normalizeRect(t){const i=t.slice(0);return t[0]>t[2]&&(i[0]=t[2],i[2]=t[0]),t[1]>t[3]&&(i[1]=t[3],i[3]=t[1]),i}static intersect(t,i){const n=Math.max(Math.min(t[0],t[2]),Math.min(i[0],i[2])),a=Math.min(Math.max(t[0],t[2]),Math.max(i[0],i[2]));if(n>a)return null;const l=Math.max(Math.min(t[1],t[3]),Math.min(i[1],i[3])),d=Math.min(Math.max(t[1],t[3]),Math.max(i[1],i[3]));return l>d?null:[n,l,a,d]}static#e(t,i,n,a,l,d,c,p,u,h){if(u<=0||u>=1)return;const m=1-u,f=u*u,x=f*u,y=m*(m*(m*t+3*u*i)+3*f*n)+x*a,w=m*(m*(m*l+3*u*d)+3*f*c)+x*p;h[0]=Math.min(h[0],y),h[1]=Math.min(h[1],w),h[2]=Math.max(h[2],y),h[3]=Math.max(h[3],w)}static#t(t,i,n,a,l,d,c,p,u,h,m,f){if(Math.abs(u)<1e-12){Math.abs(h)>=1e-12&&this.#e(t,i,n,a,l,d,c,p,-m/h,f);return}const x=h**2-4*m*u;if(x<0)return;const y=Math.sqrt(x),w=2*u;this.#e(t,i,n,a,l,d,c,p,(-h+y)/w,f),this.#e(t,i,n,a,l,d,c,p,(-h-y)/w,f)}static bezierBoundingBox(t,i,n,a,l,d,c,p,u){return u?(u[0]=Math.min(u[0],t,c),u[1]=Math.min(u[1],i,p),u[2]=Math.max(u[2],t,c),u[3]=Math.max(u[3],i,p)):u=[Math.min(t,c),Math.min(i,p),Math.max(t,c),Math.max(i,p)],this.#t(t,n,l,c,i,a,d,p,3*(-t+3*(n-l)+c),6*(t-2*n+l),3*(n-t),u),this.#t(t,n,l,c,i,a,d,p,3*(-i+3*(a-d)+p),6*(i-2*a+d),3*(a-i),u),u}}function S$t(e){return decodeURIComponent(escape(e))}let rO=null,ape=null;function E$t(e){return rO||(rO=/([\u00a0\u00b5\u037e\u0eb3\u2000-\u200a\u202f\u2126\ufb00-\ufb04\ufb06\ufb20-\ufb36\ufb38-\ufb3c\ufb3e\ufb40-\ufb41\ufb43-\ufb44\ufb46-\ufba1\ufba4-\ufba9\ufbae-\ufbb1\ufbd3-\ufbdc\ufbde-\ufbe7\ufbea-\ufbf8\ufbfc-\ufbfd\ufc00-\ufc5d\ufc64-\ufcf1\ufcf5-\ufd3d\ufd88\ufdf4\ufdfa-\ufdfb\ufe71\ufe77\ufe79\ufe7b\ufe7d]+)|(\ufb05+)/gu,ape=new Map([["ſt","ſt"]])),e.replaceAll(rO,(t,i,n)=>i?i.normalize("NFKC"):ape.get(n))}function L$t(){if(typeof crypto<"u"&&typeof crypto?.randomUUID=="function")return crypto.randomUUID();const e=new Uint8Array(32);if(typeof crypto<"u"&&typeof crypto?.getRandomValues=="function")crypto.getRandomValues(e);else for(let t=0;t<32;t++)e[t]=Math.floor(Math.random()*255);return Rje(e)}const Oje="pdfjs_internal_id_",Lh={BEZIER_CURVE_TO:0,MOVE_TO:1,LINE_TO:2,QUADRATIC_CURVE_TO:3,RESTORE:4,SAVE:5,SCALE:6,TRANSFORM:7,TRANSLATE:8};class UL{constructor(){this.constructor===UL&&jr("Cannot initialize BaseFilterFactory.")}addFilter(t){return"none"}addHCMFilter(t,i){return"none"}addAlphaFilter(t){return"none"}addLuminosityFilter(t){return"none"}addHighlightHCMFilter(t,i,n,a,l){return"none"}destroy(t=!1){}}class WL{#e=!1;constructor({enableHWA:t=!1}={}){this.constructor===WL&&jr("Cannot initialize BaseCanvasFactory."),this.#e=t}create(t,i){if(t<=0||i<=0)throw new Error("Invalid canvas size");const n=this._createCanvas(t,i);return{canvas:n,context:n.getContext("2d",{willReadFrequently:!this.#e})}}reset(t,i,n){if(!t.canvas)throw new Error("Canvas is not specified");if(i<=0||n<=0)throw new Error("Invalid canvas size");t.canvas.width=i,t.canvas.height=n}destroy(t){if(!t.canvas)throw new Error("Canvas is not specified");t.canvas.width=0,t.canvas.height=0,t.canvas=null,t.context=null}_createCanvas(t,i){jr("Abstract method `_createCanvas` called.")}}class GL{constructor({baseUrl:t=null,isCompressed:i=!0}){this.constructor===GL&&jr("Cannot initialize BaseCMapReaderFactory."),this.baseUrl=t,this.isCompressed=i}async fetch({name:t}){if(!this.baseUrl)throw new Error('The CMap "baseUrl" parameter must be specified, ensure that the "cMapUrl" and "cMapPacked" API parameters are provided.');if(!t)throw new Error("CMap name must be specified.");const i=this.baseUrl+t+(this.isCompressed?".bcmap":""),n=this.isCompressed?pU.BINARY:pU.NONE;return this._fetchData(i,n).catch(a=>{throw new Error(`Unable to load ${this.isCompressed?"binary ":""}CMap at: ${i}`)})}_fetchData(t,i){jr("Abstract method `_fetchData` called.")}}class YL{constructor({baseUrl:t=null}){this.constructor===YL&&jr("Cannot initialize BaseStandardFontDataFactory."),this.baseUrl=t}async fetch({filename:t}){if(!this.baseUrl)throw new Error('The standard font "baseUrl" parameter must be specified, ensure that the "standardFontDataUrl" API parameter is provided.');if(!t)throw new Error("Font filename must be specified.");const i=`${this.baseUrl}${t}`;return this._fetchData(i).catch(n=>{throw new Error(`Unable to load font data at: ${i}`)})}_fetchData(t){jr("Abstract method `_fetchData` called.")}}class BK{constructor(){this.constructor===BK&&jr("Cannot initialize BaseSVGFactory.")}create(t,i,n=!1){if(t<=0||i<=0)throw new Error("Invalid SVG dimensions");const a=this._createSVG("svg:svg");return a.setAttribute("version","1.1"),n||(a.setAttribute("width",`${t}px`),a.setAttribute("height",`${i}px`)),a.setAttribute("preserveAspectRatio","none"),a.setAttribute("viewBox",`0 0 ${t} ${i}`),a}createElement(t){if(typeof t!="string")throw new Error("Invalid SVG element type");return this._createSVG(t)}_createSVG(t){jr("Abstract method `_createSVG` called.")}}const Th="http://www.w3.org/2000/svg";class f6{static CSS=96;static PDF=72;static PDF_TO_CSS_UNITS=this.CSS/this.PDF}class I$t extends UL{#e;#t;#o;#r;#s;#i=0;constructor({docId:t,ownerDocument:i=globalThis.document}={}){super(),this.#o=t,this.#r=i}get#n(){return this.#e||=new Map}get#l(){return this.#s||=new Map}get#c(){if(!this.#t){const t=this.#r.createElement("div"),{style:i}=t;i.visibility="hidden",i.contain="strict",i.width=i.height=0,i.position="absolute",i.top=i.left=0,i.zIndex=-1;const n=this.#r.createElementNS(Th,"svg");n.setAttribute("width",0),n.setAttribute("height",0),this.#t=this.#r.createElementNS(Th,"defs"),t.append(n),n.append(this.#t),this.#r.body.append(t)}return this.#t}#p(t){if(t.length===1){const p=t[0],u=new Array(256);for(let m=0;m<256;m++)u[m]=p[m]/255;const h=u.join(",");return[h,h,h]}const[i,n,a]=t,l=new Array(256),d=new Array(256),c=new Array(256);for(let p=0;p<256;p++)l[p]=i[p]/255,d[p]=n[p]/255,c[p]=a[p]/255;return[l.join(","),d.join(","),c.join(",")]}addFilter(t){if(!t)return"none";let i=this.#n.get(t);if(i)return i;const[n,a,l]=this.#p(t),d=t.length===1?n:`${n}${a}${l}`;if(i=this.#n.get(d),i)return this.#n.set(t,i),i;const c=`g_${this.#o}_transfer_map_${this.#i++}`,p=`url(#${c})`;this.#n.set(t,p),this.#n.set(d,p);const u=this.#a(c);return this.#f(n,a,l,u),p}addHCMFilter(t,i){const n=`${t}-${i}`,a="base";let l=this.#l.get(a);if(l?.key===n||(l?(l.filter?.remove(),l.key=n,l.url="none",l.filter=null):(l={key:n,url:"none",filter:null},this.#l.set(a,l)),!t||!i))return l.url;const d=this.#y(t);t=ko.makeHexColor(...d);const c=this.#y(i);if(i=ko.makeHexColor(...c),this.#c.style.color="",t==="#000000"&&i==="#ffffff"||t===i)return l.url;const p=new Array(256);for(let x=0;x<=255;x++){const y=x/255;p[x]=y<=.03928?y/12.92:((y+.055)/1.055)**2.4}const u=p.join(","),h=`g_${this.#o}_hcm_filter`,m=l.filter=this.#a(h);this.#f(u,u,u,m),this.#d(m);const f=(x,y)=>{const w=d[x]/255,b=c[x]/255,C=new Array(y+1);for(let k=0;k<=y;k++)C[k]=w+k/y*(b-w);return C.join(",")};return this.#f(f(0,5),f(1,5),f(2,5),m),l.url=`url(#${h})`,l.url}addAlphaFilter(t){let i=this.#n.get(t);if(i)return i;const[n]=this.#p([t]),a=`alpha_${n}`;if(i=this.#n.get(a),i)return this.#n.set(t,i),i;const l=`g_${this.#o}_alpha_map_${this.#i++}`,d=`url(#${l})`;this.#n.set(t,d),this.#n.set(a,d);const c=this.#a(l);return this.#u(n,c),d}addLuminosityFilter(t){let i=this.#n.get(t||"luminosity");if(i)return i;let n,a;if(t?([n]=this.#p([t]),a=`luminosity_${n}`):a="luminosity",i=this.#n.get(a),i)return this.#n.set(t,i),i;const l=`g_${this.#o}_luminosity_map_${this.#i++}`,d=`url(#${l})`;this.#n.set(t,d),this.#n.set(a,d);const c=this.#a(l);return this.#h(c),t&&this.#u(n,c),d}addHighlightHCMFilter(t,i,n,a,l){const d=`${i}-${n}-${a}-${l}`;let c=this.#l.get(t);if(c?.key===d||(c?(c.filter?.remove(),c.key=d,c.url="none",c.filter=null):(c={key:d,url:"none",filter:null},this.#l.set(t,c)),!i||!n))return c.url;const[p,u]=[i,n].map(this.#y.bind(this));let h=Math.round(.2126*p[0]+.7152*p[1]+.0722*p[2]),m=Math.round(.2126*u[0]+.7152*u[1]+.0722*u[2]),[f,x]=[a,l].map(this.#y.bind(this));m<h&&([h,m,f,x]=[m,h,x,f]),this.#c.style.color="";const y=(C,k,E)=>{const S=new Array(256),j=(m-h)/E,I=C/255,T=(k-C)/(255*E);let P=0;for(let B=0;B<=E;B++){const D=Math.round(h+B*j),F=I+B*T;for(let Y=P;Y<=D;Y++)S[Y]=F;P=D+1}for(let B=P;B<256;B++)S[B]=S[P-1];return S.join(",")},w=`g_${this.#o}_hcm_${t}_filter`,b=c.filter=this.#a(w);return this.#d(b),this.#f(y(f[0],x[0],5),y(f[1],x[1],5),y(f[2],x[2],5),b),c.url=`url(#${w})`,c.url}destroy(t=!1){t&&this.#l.size!==0||(this.#t&&(this.#t.parentNode.parentNode.remove(),this.#t=null),this.#e&&(this.#e.clear(),this.#e=null),this.#i=0)}#h(t){const i=this.#r.createElementNS(Th,"feColorMatrix");i.setAttribute("type","matrix"),i.setAttribute("values","0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0.3 0.59 0.11 0 0"),t.append(i)}#d(t){const i=this.#r.createElementNS(Th,"feColorMatrix");i.setAttribute("type","matrix"),i.setAttribute("values","0.2126 0.7152 0.0722 0 0 0.2126 0.7152 0.0722 0 0 0.2126 0.7152 0.0722 0 0 0 0 0 1 0"),t.append(i)}#a(t){const i=this.#r.createElementNS(Th,"filter");return i.setAttribute("color-interpolation-filters","sRGB"),i.setAttribute("id",t),this.#c.append(i),i}#m(t,i,n){const a=this.#r.createElementNS(Th,i);a.setAttribute("type","discrete"),a.setAttribute("tableValues",n),t.append(a)}#f(t,i,n,a){const l=this.#r.createElementNS(Th,"feComponentTransfer");a.append(l),this.#m(l,"feFuncR",t),this.#m(l,"feFuncG",i),this.#m(l,"feFuncB",n)}#u(t,i){const n=this.#r.createElementNS(Th,"feComponentTransfer");i.append(n),this.#m(n,"feFuncA",t)}#y(t){return this.#c.style.color=t,FK(getComputedStyle(this.#c).getPropertyValue("color"))}}class j$t extends WL{constructor({ownerDocument:t=globalThis.document,enableHWA:i=!1}={}){super({enableHWA:i}),this._document=t}_createCanvas(t,i){const n=this._document.createElement("canvas");return n.width=t,n.height=i,n}}async function KL(e,t="text"){if(Dx(e,document.baseURI)){const i=await fetch(e);if(!i.ok)throw new Error(i.statusText);switch(t){case"arraybuffer":return i.arrayBuffer();case"blob":return i.blob();case"json":return i.json()}return i.text()}return new Promise((i,n)=>{const a=new XMLHttpRequest;a.open("GET",e,!0),a.responseType=t,a.onreadystatechange=()=>{if(a.readyState===XMLHttpRequest.DONE){if(a.status===200||a.status===0){switch(t){case"arraybuffer":case"blob":case"json":i(a.response);return}i(a.responseText);return}n(new Error(a.statusText))}},a.send(null)})}class Nje extends GL{_fetchData(t,i){return KL(t,this.isCompressed?"arraybuffer":"text").then(n=>({cMapData:n instanceof ArrayBuffer?new Uint8Array(n):QL(n),compressionType:i}))}}class Hje extends YL{_fetchData(t){return KL(t,"arraybuffer").then(i=>new Uint8Array(i))}}class DK extends BK{_createSVG(t){return document.createElementNS(Th,t)}}class mb{constructor({viewBox:t,scale:i,rotation:n,offsetX:a=0,offsetY:l=0,dontFlip:d=!1}){this.viewBox=t,this.scale=i,this.rotation=n,this.offsetX=a,this.offsetY=l;const c=(t[2]+t[0])/2,p=(t[3]+t[1])/2;let u,h,m,f;switch(n%=360,n<0&&(n+=360),n){case 180:u=-1,h=0,m=0,f=1;break;case 90:u=0,h=1,m=1,f=0;break;case 270:u=0,h=-1,m=-1,f=0;break;case 0:u=1,h=0,m=0,f=-1;break;default:throw new Error("PageViewport: Invalid rotation, must be a multiple of 90 degrees.")}d&&(m=-m,f=-f);let x,y,w,b;u===0?(x=Math.abs(p-t[1])*i+a,y=Math.abs(c-t[0])*i+l,w=(t[3]-t[1])*i,b=(t[2]-t[0])*i):(x=Math.abs(c-t[0])*i+a,y=Math.abs(p-t[1])*i+l,w=(t[2]-t[0])*i,b=(t[3]-t[1])*i),this.transform=[u*i,h*i,m*i,f*i,x-u*i*c-m*i*p,y-h*i*c-f*i*p],this.width=w,this.height=b}get rawDims(){const{viewBox:t}=this;return nr(this,"rawDims",{pageWidth:t[2]-t[0],pageHeight:t[3]-t[1],pageX:t[0],pageY:t[1]})}clone({scale:t=this.scale,rotation:i=this.rotation,offsetX:n=this.offsetX,offsetY:a=this.offsetY,dontFlip:l=!1}={}){return new mb({viewBox:this.viewBox.slice(),scale:t,rotation:i,offsetX:n,offsetY:a,dontFlip:l})}convertToViewportPoint(t,i){return ko.applyTransform([t,i],this.transform)}convertToViewportRectangle(t){const i=ko.applyTransform([t[0],t[1]],this.transform),n=ko.applyTransform([t[2],t[3]],this.transform);return[i[0],i[1],n[0],n[1]]}convertToPdfPoint(t,i){return ko.applyInverseTransform([t,i],this.transform)}}class PK extends Im{constructor(t,i=0){super(t,"RenderingCancelledException"),this.extraDelay=i}}function TK(e){const t=e.length;let i=0;for(;i<t&&e[i].trim()==="";)i++;return e.substring(i,i+5).toLowerCase()==="data:"}function zK(e){return typeof e=="string"&&/\.pdf$/i.test(e)}function M$t(e){return[e]=e.split(/[#?]/,1),e.substring(e.lastIndexOf("/")+1)}function B$t(e,t="document.pdf"){if(typeof e!="string")return t;if(TK(e))return Pi('getPdfFilenameFromUrl: ignore "data:"-URL for performance reasons.'),t;const i=/^(?:(?:[^:]+:)?\/\/[^/]+)?([^?#]*)(\?[^#]*)?(#.*)?$/,n=/[^/?#=]+\.pdf\b(?!.*\.pdf\b)/i,a=i.exec(e);let l=n.exec(a[1])||n.exec(a[2])||n.exec(a[3]);if(l&&(l=l[0],l.includes("%")))try{l=n.exec(decodeURIComponent(l))[0]}catch{}return l||t}class spe{started=Object.create(null);times=[];time(t){t in this.started&&Pi(`Timer is already running for ${t}`),this.started[t]=Date.now()}timeEnd(t){t in this.started||Pi(`Timer has not been started for ${t}`),this.times.push({name:t,start:this.started[t],end:Date.now()}),delete this.started[t]}toString(){const t=[];let i=0;for(const{name:n}of this.times)i=Math.max(n.length,i);for(const{name:n,start:a,end:l}of this.times)t.push(`${n.padEnd(i)} ${l-a}ms
|
|
88
|
-
`);return t.join("")}}function Dx(e,t){try{const{protocol:i}=t?new URL(e,t):new URL(e);return i==="http:"||i==="https:"}catch{return!1}}function ql(e){e.preventDefault()}function _je(e){console.log("Deprecated API usage: "+e)}let lpe;class Vje{static toDateObject(t){if(!t||typeof t!="string")return null;lpe||=new RegExp("^D:(\\d{4})(\\d{2})?(\\d{2})?(\\d{2})?(\\d{2})?(\\d{2})?([Z|+|-])?(\\d{2})?'?(\\d{2})?'?");const i=lpe.exec(t);if(!i)return null;const n=parseInt(i[1],10);let a=parseInt(i[2],10);a=a>=1&&a<=12?a-1:0;let l=parseInt(i[3],10);l=l>=1&&l<=31?l:1;let d=parseInt(i[4],10);d=d>=0&&d<=23?d:0;let c=parseInt(i[5],10);c=c>=0&&c<=59?c:0;let p=parseInt(i[6],10);p=p>=0&&p<=59?p:0;const u=i[7]||"Z";let h=parseInt(i[8],10);h=h>=0&&h<=23?h:0;let m=parseInt(i[9],10)||0;return m=m>=0&&m<=59?m:0,u==="-"?(d+=h,c+=m):u==="+"&&(d-=h,c-=m),new Date(Date.UTC(n,a,l,d,c,p))}}function D$t(e,{scale:t=1,rotation:i=0}){const{width:n,height:a}=e.attributes.style,l=[0,0,parseInt(n),parseInt(a)];return new mb({viewBox:l,scale:t,rotation:i})}function FK(e){if(e.startsWith("#")){const t=parseInt(e.slice(1),16);return[(t&16711680)>>16,(t&65280)>>8,t&255]}return e.startsWith("rgb(")?e.slice(4,-1).split(",").map(t=>parseInt(t)):e.startsWith("rgba(")?e.slice(5,-1).split(",").map(t=>parseInt(t)).slice(0,3):(Pi(`Not a valid color format: "${e}"`),[0,0,0])}function P$t(e){const t=document.createElement("span");t.style.visibility="hidden",document.body.append(t);for(const i of e.keys()){t.style.color=i;const n=window.getComputedStyle(t).color;e.set(i,FK(n))}t.remove()}function mn(e){const{a:t,b:i,c:n,d:a,e:l,f:d}=e.getTransform();return[t,i,n,a,l,d]}function Ih(e){const{a:t,b:i,c:n,d:a,e:l,f:d}=e.getTransform().invertSelf();return[t,i,n,a,l,d]}function S4(e,t,i=!1,n=!0){if(t instanceof mb){const{pageWidth:a,pageHeight:l}=t.rawDims,{style:d}=e,c=Ql.isCSSRoundSupported,p=`var(--scale-factor) * ${a}px`,u=`var(--scale-factor) * ${l}px`,h=c?`round(${p}, 1px)`:`calc(${p})`,m=c?`round(${u}, 1px)`:`calc(${u})`;!i||t.rotation%180===0?(d.width=h,d.height=m):(d.width=m,d.height=h)}n&&e.setAttribute("data-main-rotation",t.rotation)}class RK{#e=null;#t=null;#o;#r=null;constructor(t){this.#o=t}render(){const t=this.#e=document.createElement("div");t.className="editToolbar",t.setAttribute("role","toolbar");const i=this.#o._uiManager._signal;t.addEventListener("contextmenu",ql,{signal:i}),t.addEventListener("pointerdown",RK.#s,{signal:i});const n=this.#r=document.createElement("div");n.className="buttons",t.append(n);const a=this.#o.toolbarPosition;if(a){const{style:l}=t,d=this.#o._uiManager.direction==="ltr"?1-a[0]:a[0];l.insetInlineEnd=`${100*d}%`,l.top=`calc(${100*a[1]}% + var(--editor-toolbar-vert-offset))`}return this.#c(),t}static#s(t){t.stopPropagation()}#i(t){this.#o._focusEventsAllowed=!1,t.preventDefault(),t.stopPropagation()}#n(t){this.#o._focusEventsAllowed=!0,t.preventDefault(),t.stopPropagation()}#l(t){const i=this.#o._uiManager._signal;t.addEventListener("focusin",this.#i.bind(this),{capture:!0,signal:i}),t.addEventListener("focusout",this.#n.bind(this),{capture:!0,signal:i}),t.addEventListener("contextmenu",ql,{signal:i})}hide(){this.#e.classList.add("hidden"),this.#t?.hideDropdown()}show(){this.#e.classList.remove("hidden")}#c(){const t=document.createElement("button");t.className="delete",t.tabIndex=0,t.setAttribute("data-l10n-id",`pdfjs-editor-remove-${this.#o.editorType}-button`),this.#l(t),t.addEventListener("click",i=>{this.#o._uiManager.delete()},{signal:this.#o._uiManager._signal}),this.#r.append(t)}get#p(){const t=document.createElement("div");return t.className="divider",t}addAltTextButton(t){this.#l(t),this.#r.prepend(t,this.#p)}addColorPicker(t){this.#t=t;const i=t.renderButton();this.#l(i),this.#r.prepend(i,this.#p)}remove(){this.#e.remove(),this.#t?.destroy(),this.#t=null}}class T$t{#e=null;#t=null;#o;constructor(t){this.#o=t}#r(){const t=this.#t=document.createElement("div");t.className="editToolbar",t.setAttribute("role","toolbar"),t.addEventListener("contextmenu",ql,{signal:this.#o._signal});const i=this.#e=document.createElement("div");return i.className="buttons",t.append(i),this.#i(),t}#s(t,i){let n=0,a=0;for(const l of t){const d=l.y+l.height;if(d<n)continue;const c=l.x+(i?l.width:0);if(d>n){a=c,n=d;continue}i?c>a&&(a=c):c<a&&(a=c)}return[i?1-a:a,n]}show(t,i,n){const[a,l]=this.#s(i,n),{style:d}=this.#t||=this.#r();t.append(this.#t),d.insetInlineEnd=`${100*a}%`,d.top=`calc(${100*l}% + var(--editor-toolbar-vert-offset))`}hide(){this.#t.remove()}#i(){const t=document.createElement("button");t.className="highlightButton",t.tabIndex=0,t.setAttribute("data-l10n-id","pdfjs-highlight-floating-button1");const i=document.createElement("span");t.append(i),i.className="visuallyHidden",i.setAttribute("data-l10n-id","pdfjs-highlight-floating-button-label");const n=this.#o._signal;t.addEventListener("contextmenu",ql,{signal:n}),t.addEventListener("click",()=>{this.#o.highlightSelection("floating_button")},{signal:n}),this.#e.append(t)}}function pS(e,t,i){for(const n of i)t.addEventListener(n,e[n].bind(e))}function z$t(e){return Math.round(Math.min(255,Math.max(1,255*e))).toString(16).padStart(2,"0")}class F$t{#e=0;get id(){return`${g$t}${this.#e++}`}}class OK{#e=L$t();#t=0;#o=null;static get _isSVGFittingCanvas(){const t='data:image/svg+xml;charset=UTF-8,<svg viewBox="0 0 1 1" width="1" height="1" xmlns="http://www.w3.org/2000/svg"><rect width="1" height="1" style="fill:red;"/></svg>',n=new OffscreenCanvas(1,3).getContext("2d",{willReadFrequently:!0}),a=new Image;a.src=t;const l=a.decode().then(()=>(n.drawImage(a,0,0,1,1,0,0,1,3),new Uint32Array(n.getImageData(0,0,1,1).data.buffer)[0]===0));return nr(this,"_isSVGFittingCanvas",l)}async#r(t,i){this.#o||=new Map;let n=this.#o.get(t);if(n===null)return null;if(n?.bitmap)return n.refCounter+=1,n;try{n||={bitmap:null,id:`image_${this.#e}_${this.#t++}`,refCounter:0,isSvg:!1};let a;if(typeof i=="string"?(n.url=i,a=await KL(i,"blob")):a=n.file=i,a.type==="image/svg+xml"){const l=OK._isSVGFittingCanvas,d=new FileReader,c=new Image,p=new Promise((u,h)=>{c.onload=()=>{n.bitmap=c,n.isSvg=!0,u()},d.onload=async()=>{const m=n.svgUrl=d.result;c.src=await l?`${m}#svgView(preserveAspectRatio(none))`:m},c.onerror=d.onerror=h});d.readAsDataURL(a),await p}else n.bitmap=await createImageBitmap(a);n.refCounter=1}catch(a){console.error(a),n=null}return this.#o.set(t,n),n&&this.#o.set(n.id,n),n}async getFromFile(t){const{lastModified:i,name:n,size:a,type:l}=t;return this.#r(`${i}_${n}_${a}_${l}`,t)}async getFromUrl(t){return this.#r(t,t)}async getFromId(t){this.#o||=new Map;const i=this.#o.get(t);return i?i.bitmap?(i.refCounter+=1,i):i.file?this.getFromFile(i.file):this.getFromUrl(i.url):null}getSvgUrl(t){const i=this.#o.get(t);return i?.isSvg?i.svgUrl:null}deleteId(t){this.#o||=new Map;const i=this.#o.get(t);i&&(i.refCounter-=1,i.refCounter===0&&(i.bitmap=null))}isValidId(t){return t.startsWith(`image_${this.#e}_`)}}class R$t{#e=[];#t=!1;#o;#r=-1;constructor(t=128){this.#o=t}add({cmd:t,undo:i,post:n,mustExec:a,type:l=NaN,overwriteIfSameType:d=!1,keepUndo:c=!1}){if(a&&t(),this.#t)return;const p={cmd:t,undo:i,post:n,type:l};if(this.#r===-1){this.#e.length>0&&(this.#e.length=0),this.#r=0,this.#e.push(p);return}if(d&&this.#e[this.#r].type===l){c&&(p.undo=this.#e[this.#r].undo),this.#e[this.#r]=p;return}const u=this.#r+1;u===this.#o?this.#e.splice(0,1):(this.#r=u,u<this.#e.length&&this.#e.splice(u)),this.#e.push(p)}undo(){if(this.#r===-1)return;this.#t=!0;const{undo:t,post:i}=this.#e[this.#r];t(),i?.(),this.#t=!1,this.#r-=1}redo(){if(this.#r<this.#e.length-1){this.#r+=1,this.#t=!0;const{cmd:t,post:i}=this.#e[this.#r];t(),i?.(),this.#t=!1}}hasSomethingToUndo(){return this.#r!==-1}hasSomethingToRedo(){return this.#r<this.#e.length-1}destroy(){this.#e=null}}class gb{constructor(t){this.buffer=[],this.callbacks=new Map,this.allKeys=new Set;const{isMac:i}=Ql.platform;for(const[n,a,l={}]of t)for(const d of n){const c=d.startsWith("mac+");i&&c?(this.callbacks.set(d.slice(4),{callback:a,options:l}),this.allKeys.add(d.split("+").at(-1))):!i&&!c&&(this.callbacks.set(d,{callback:a,options:l}),this.allKeys.add(d.split("+").at(-1)))}}#e(t){t.altKey&&this.buffer.push("alt"),t.ctrlKey&&this.buffer.push("ctrl"),t.metaKey&&this.buffer.push("meta"),t.shiftKey&&this.buffer.push("shift"),this.buffer.push(t.key);const i=this.buffer.join("+");return this.buffer.length=0,i}exec(t,i){if(!this.allKeys.has(i.key))return;const n=this.callbacks.get(this.#e(i));if(!n)return;const{callback:a,options:{bubbles:l=!1,args:d=[],checker:c=null}}=n;c&&!c(t,i)||(a.bind(t,...d,i)(),l||(i.stopPropagation(),i.preventDefault()))}}class NK{static _colorsMapping=new Map([["CanvasText",[0,0,0]],["Canvas",[255,255,255]]]);get _colors(){const t=new Map([["CanvasText",null],["Canvas",null]]);return P$t(t),nr(this,"_colors",t)}convert(t){const i=FK(t);if(!window.matchMedia("(forced-colors: active)").matches)return i;for(const[n,a]of this._colors)if(a.every((l,d)=>l===i[d]))return NK._colorsMapping.get(n);return i}getHexCode(t){const i=this._colors.get(t);return i?ko.makeHexColor(...i):t}}class gm{#e=new AbortController;#t=null;#o=new Map;#r=new Map;#s=null;#i=null;#n=null;#l=new R$t;#c=0;#p=new Set;#h=null;#d=null;#a=new Set;#m=!1;#f=null;#u=null;#y=null;#g=!1;#w=null;#v=new F$t;#A=!1;#k=!1;#S=null;#j=null;#$=null;#b=qi.NONE;#x=new Set;#C=null;#E=null;#L=null;#B=this.blur.bind(this);#M=this.focus.bind(this);#T=this.copy.bind(this);#D=this.cut.bind(this);#z=this.paste.bind(this);#P=this.keydown.bind(this);#Q=this.keyup.bind(this);#U=this.onEditingAction.bind(this);#_=this.onPageChanging.bind(this);#N=this.onScaleChanging.bind(this);#F=this.onRotationChanging.bind(this);#K={isEditing:!1,isEmpty:!0,hasSomethingToUndo:!1,hasSomethingToRedo:!1,hasSelectedEditor:!1,hasSelectedText:!1};#V=[0,0];#R=null;#H=null;#q=null;static TRANSLATE_SMALL=1;static TRANSLATE_BIG=10;static get _keyboardManager(){const t=gm.prototype,i=d=>d.#H.contains(document.activeElement)&&document.activeElement.tagName!=="BUTTON"&&d.hasSomethingToControl(),n=(d,{target:c})=>{if(c instanceof HTMLInputElement){const{type:p}=c;return p!=="text"&&p!=="number"}return!0},a=this.TRANSLATE_SMALL,l=this.TRANSLATE_BIG;return nr(this,"_keyboardManager",new gb([[["ctrl+a","mac+meta+a"],t.selectAll,{checker:n}],[["ctrl+z","mac+meta+z"],t.undo,{checker:n}],[["ctrl+y","ctrl+shift+z","mac+meta+shift+z","ctrl+shift+Z","mac+meta+shift+Z"],t.redo,{checker:n}],[["Backspace","alt+Backspace","ctrl+Backspace","shift+Backspace","mac+Backspace","mac+alt+Backspace","mac+ctrl+Backspace","Delete","ctrl+Delete","shift+Delete","mac+Delete"],t.delete,{checker:n}],[["Enter","mac+Enter"],t.addNewEditorFromKeyboard,{checker:(d,{target:c})=>!(c instanceof HTMLButtonElement)&&d.#H.contains(c)&&!d.isEnterHandled}],[[" ","mac+ "],t.addNewEditorFromKeyboard,{checker:(d,{target:c})=>!(c instanceof HTMLButtonElement)&&d.#H.contains(document.activeElement)}],[["Escape","mac+Escape"],t.unselectAll],[["ArrowLeft","mac+ArrowLeft"],t.translateSelectedEditors,{args:[-a,0],checker:i}],[["ctrl+ArrowLeft","mac+shift+ArrowLeft"],t.translateSelectedEditors,{args:[-l,0],checker:i}],[["ArrowRight","mac+ArrowRight"],t.translateSelectedEditors,{args:[a,0],checker:i}],[["ctrl+ArrowRight","mac+shift+ArrowRight"],t.translateSelectedEditors,{args:[l,0],checker:i}],[["ArrowUp","mac+ArrowUp"],t.translateSelectedEditors,{args:[0,-a],checker:i}],[["ctrl+ArrowUp","mac+shift+ArrowUp"],t.translateSelectedEditors,{args:[0,-l],checker:i}],[["ArrowDown","mac+ArrowDown"],t.translateSelectedEditors,{args:[0,a],checker:i}],[["ctrl+ArrowDown","mac+shift+ArrowDown"],t.translateSelectedEditors,{args:[0,l],checker:i}]]))}constructor(t,i,n,a,l,d,c,p,u){this._signal=this.#e.signal,this.#H=t,this.#q=i,this.#s=n,this._eventBus=a,this._eventBus._on("editingaction",this.#U),this._eventBus._on("pagechanging",this.#_),this._eventBus._on("scalechanging",this.#N),this._eventBus._on("rotationchanging",this.#F),this.#re(),this.#le(),this.#Z(),this.#i=l.annotationStorage,this.#f=l.filterFactory,this.#E=d,this.#y=c||null,this.#m=p,this.#$=u||null,this.viewParameters={realScale:f6.PDF_TO_CSS_UNITS,rotation:0},this.isShiftKeyDown=!1}destroy(){this.#e?.abort(),this.#e=null,this._signal=null,this._eventBus._off("editingaction",this.#U),this._eventBus._off("pagechanging",this.#_),this._eventBus._off("scalechanging",this.#N),this._eventBus._off("rotationchanging",this.#F);for(const t of this.#r.values())t.destroy();this.#r.clear(),this.#o.clear(),this.#a.clear(),this.#t=null,this.#x.clear(),this.#l.destroy(),this.#s?.destroy(),this.#w?.hide(),this.#w=null,this.#u&&(clearTimeout(this.#u),this.#u=null),this.#R&&(clearTimeout(this.#R),this.#R=null)}async mlGuess(t){return this.#$?.guess(t)||null}get hasMLManager(){return!!this.#$}get hcmFilter(){return nr(this,"hcmFilter",this.#E?this.#f.addHCMFilter(this.#E.foreground,this.#E.background):"none")}get direction(){return nr(this,"direction",getComputedStyle(this.#H).direction)}get highlightColors(){return nr(this,"highlightColors",this.#y?new Map(this.#y.split(",").map(t=>t.split("=").map(i=>i.trim()))):null)}get highlightColorNames(){return nr(this,"highlightColorNames",this.highlightColors?new Map(Array.from(this.highlightColors,t=>t.reverse())):null)}setMainHighlightColorPicker(t){this.#j=t}editAltText(t){this.#s?.editAltText(this,t)}onPageChanging({pageNumber:t}){this.#c=t-1}focusMainContainer(){this.#H.focus()}findParent(t,i){for(const n of this.#r.values()){const{x:a,y:l,width:d,height:c}=n.div.getBoundingClientRect();if(t>=a&&t<=a+d&&i>=l&&i<=l+c)return n}return null}disableUserSelect(t=!1){this.#q.classList.toggle("noUserSelect",t)}addShouldRescale(t){this.#a.add(t)}removeShouldRescale(t){this.#a.delete(t)}onScaleChanging({scale:t}){this.commitOrRemove(),this.viewParameters.realScale=t*f6.PDF_TO_CSS_UNITS;for(const i of this.#a)i.onScaleChanging()}onRotationChanging({pagesRotation:t}){this.commitOrRemove(),this.viewParameters.rotation=t}#G({anchorNode:t}){return t.nodeType===Node.TEXT_NODE?t.parentElement:t}highlightSelection(t=""){const i=document.getSelection();if(!i||i.isCollapsed)return;const{anchorNode:n,anchorOffset:a,focusNode:l,focusOffset:d}=i,c=i.toString(),u=this.#G(i).closest(".textLayer"),h=this.getSelectionBoxes(u);if(h){i.empty(),this.#b===qi.NONE&&(this._eventBus.dispatch("showannotationeditorui",{source:this,mode:qi.HIGHLIGHT}),this.showAllEditors("highlight",!0,!0));for(const m of this.#r.values())if(m.hasTextLayer(u)){m.createAndAddNewEditor({x:0,y:0},!1,{methodOfCreation:t,boxes:h,anchorNode:n,anchorOffset:a,focusNode:l,focusOffset:d,text:c});break}}}#oe(){const t=document.getSelection();if(!t||t.isCollapsed)return;const n=this.#G(t).closest(".textLayer"),a=this.getSelectionBoxes(n);a&&(this.#w||=new T$t(this),this.#w.show(n,a,this.direction==="ltr"))}addToAnnotationStorage(t){!t.isEmpty()&&this.#i&&!this.#i.has(t.id)&&this.#i.setValue(t.id,t)}#ie(){const t=document.getSelection();if(!t||t.isCollapsed){this.#C&&(this.#w?.hide(),this.#C=null,this.#I({hasSelectedText:!1}));return}const{anchorNode:i}=t;if(i===this.#C)return;if(!this.#G(t).closest(".textLayer")){this.#C&&(this.#w?.hide(),this.#C=null,this.#I({hasSelectedText:!1}));return}if(this.#w?.hide(),this.#C=i,this.#I({hasSelectedText:!0}),!(this.#b!==qi.HIGHLIGHT&&this.#b!==qi.NONE)&&(this.#b===qi.HIGHLIGHT&&this.showAllEditors("highlight",!0,!0),this.#g=this.isShiftKeyDown,!this.isShiftKeyDown)){const l=this._signal,d=c=>{c.type==="pointerup"&&c.button!==0||(window.removeEventListener("pointerup",d),window.removeEventListener("blur",d),c.type==="pointerup"&&this.#Y("main_toolbar"))};window.addEventListener("pointerup",d,{signal:l}),window.addEventListener("blur",d,{signal:l})}}#Y(t=""){this.#b===qi.HIGHLIGHT?this.highlightSelection(t):this.#m&&this.#oe()}#re(){document.addEventListener("selectionchange",this.#ie.bind(this),{signal:this._signal})}#ne(){const t=this._signal;window.addEventListener("focus",this.#M,{signal:t}),window.addEventListener("blur",this.#B,{signal:t})}#ae(){window.removeEventListener("focus",this.#M),window.removeEventListener("blur",this.#B)}blur(){if(this.isShiftKeyDown=!1,this.#g&&(this.#g=!1,this.#Y("main_toolbar")),!this.hasSelection)return;const{activeElement:t}=document;for(const i of this.#x)if(i.div.contains(t)){this.#S=[i,t],i._focusEventsAllowed=!1;break}}focus(){if(!this.#S)return;const[t,i]=this.#S;this.#S=null,i.addEventListener("focusin",()=>{t._focusEventsAllowed=!0},{once:!0,signal:this._signal}),i.focus()}#Z(){const t=this._signal;window.addEventListener("keydown",this.#P,{signal:t}),window.addEventListener("keyup",this.#Q,{signal:t})}#se(){window.removeEventListener("keydown",this.#P),window.removeEventListener("keyup",this.#Q)}#J(){const t=this._signal;document.addEventListener("copy",this.#T,{signal:t}),document.addEventListener("cut",this.#D,{signal:t}),document.addEventListener("paste",this.#z,{signal:t})}#X(){document.removeEventListener("copy",this.#T),document.removeEventListener("cut",this.#D),document.removeEventListener("paste",this.#z)}#le(){const t=this._signal;document.addEventListener("dragover",this.dragOver.bind(this),{signal:t}),document.addEventListener("drop",this.drop.bind(this),{signal:t})}addEditListeners(){this.#Z(),this.#J()}removeEditListeners(){this.#se(),this.#X()}dragOver(t){for(const{type:i}of t.dataTransfer.items)for(const n of this.#d)if(n.isHandlingMimeForPasting(i)){t.dataTransfer.dropEffect="copy",t.preventDefault();return}}drop(t){for(const i of t.dataTransfer.items)for(const n of this.#d)if(n.isHandlingMimeForPasting(i.type)){n.paste(i,this.currentLayer),t.preventDefault();return}}copy(t){if(t.preventDefault(),this.#t?.commitOrRemove(),!this.hasSelection)return;const i=[];for(const n of this.#x){const a=n.serialize(!0);a&&i.push(a)}i.length!==0&&t.clipboardData.setData("application/pdfjs",JSON.stringify(i))}cut(t){this.copy(t),this.delete()}paste(t){t.preventDefault();const{clipboardData:i}=t;for(const l of i.items)for(const d of this.#d)if(d.isHandlingMimeForPasting(l.type)){d.paste(l,this.currentLayer);return}let n=i.getData("application/pdfjs");if(!n)return;try{n=JSON.parse(n)}catch(l){Pi(`paste: "${l.message}".`);return}if(!Array.isArray(n))return;this.unselectAll();const a=this.currentLayer;try{const l=[];for(const p of n){const u=a.deserialize(p);if(!u)return;l.push(u)}const d=()=>{for(const p of l)this.#ee(p);this.#te(l)},c=()=>{for(const p of l)p.remove()};this.addCommands({cmd:d,undo:c,mustExec:!0})}catch(l){Pi(`paste: "${l.message}".`)}}keydown(t){!this.isShiftKeyDown&&t.key==="Shift"&&(this.isShiftKeyDown=!0),this.#b!==qi.NONE&&!this.isEditorHandlingKeyboard&&gm._keyboardManager.exec(this,t)}keyup(t){this.isShiftKeyDown&&t.key==="Shift"&&(this.isShiftKeyDown=!1,this.#g&&(this.#g=!1,this.#Y("main_toolbar")))}onEditingAction({name:t}){switch(t){case"undo":case"redo":case"delete":case"selectAll":this[t]();break;case"highlightSelection":this.highlightSelection("context_menu");break}}#I(t){Object.entries(t).some(([n,a])=>this.#K[n]!==a)&&(this._eventBus.dispatch("annotationeditorstateschanged",{source:this,details:Object.assign(this.#K,t)}),this.#b===qi.HIGHLIGHT&&t.hasSelectedEditor===!1&&this.#O([[di.HIGHLIGHT_FREE,!0]]))}#O(t){this._eventBus.dispatch("annotationeditorparamschanged",{source:this,details:t})}setEditingState(t){t?(this.#ne(),this.#J(),this.#I({isEditing:this.#b!==qi.NONE,isEmpty:this.#W(),hasSomethingToUndo:this.#l.hasSomethingToUndo(),hasSomethingToRedo:this.#l.hasSomethingToRedo(),hasSelectedEditor:!1})):(this.#ae(),this.#X(),this.#I({isEditing:!1}),this.disableUserSelect(!1))}registerEditorTypes(t){if(!this.#d){this.#d=t;for(const i of this.#d)this.#O(i.defaultPropertiesToUpdate)}}getId(){return this.#v.id}get currentLayer(){return this.#r.get(this.#c)}getLayer(t){return this.#r.get(t)}get currentPageIndex(){return this.#c}addLayer(t){this.#r.set(t.pageIndex,t),this.#A?t.enable():t.disable()}removeLayer(t){this.#r.delete(t.pageIndex)}updateMode(t,i=null,n=!1){if(this.#b!==t){if(this.#b=t,t===qi.NONE){this.setEditingState(!1),this.#ce();return}this.setEditingState(!0),this.#de(),this.unselectAll();for(const a of this.#r.values())a.updateMode(t);if(!i&&n){this.addNewEditorFromKeyboard();return}if(i){for(const a of this.#o.values())if(a.annotationElementId===i){this.setSelected(a),a.enterInEditMode();break}}}}addNewEditorFromKeyboard(){this.currentLayer.canCreateNewEmptyEditor()&&this.currentLayer.addNewEditor()}updateToolbar(t){t!==this.#b&&this._eventBus.dispatch("switchannotationeditormode",{source:this,mode:t})}updateParams(t,i){if(this.#d){switch(t){case di.CREATE:this.currentLayer.addNewEditor();return;case di.HIGHLIGHT_DEFAULT_COLOR:this.#j?.updateColor(i);break;case di.HIGHLIGHT_SHOW_ALL:this._eventBus.dispatch("reporttelemetry",{source:this,details:{type:"editing",data:{type:"highlight",action:"toggle_visibility"}}}),(this.#L||=new Map).set(t,i),this.showAllEditors("highlight",i);break}for(const n of this.#x)n.updateParams(t,i);for(const n of this.#d)n.updateDefaultParams(t,i)}}showAllEditors(t,i,n=!1){for(const l of this.#o.values())l.editorType===t&&l.show(i);(this.#L?.get(di.HIGHLIGHT_SHOW_ALL)??!0)!==i&&this.#O([[di.HIGHLIGHT_SHOW_ALL,i]])}enableWaiting(t=!1){if(this.#k!==t){this.#k=t;for(const i of this.#r.values())t?i.disableClick():i.enableClick(),i.div.classList.toggle("waiting",t)}}#de(){if(!this.#A){this.#A=!0;for(const t of this.#r.values())t.enable();for(const t of this.#o.values())t.enable()}}#ce(){if(this.unselectAll(),this.#A){this.#A=!1;for(const t of this.#r.values())t.disable();for(const t of this.#o.values())t.disable()}}getEditors(t){const i=[];for(const n of this.#o.values())n.pageIndex===t&&i.push(n);return i}getEditor(t){return this.#o.get(t)}addEditor(t){this.#o.set(t.id,t)}removeEditor(t){t.div.contains(document.activeElement)&&(this.#u&&clearTimeout(this.#u),this.#u=setTimeout(()=>{this.focusMainContainer(),this.#u=null},0)),this.#o.delete(t.id),this.unselect(t),(!t.annotationElementId||!this.#p.has(t.annotationElementId))&&this.#i?.remove(t.id)}addDeletedAnnotationElement(t){this.#p.add(t.annotationElementId),this.addChangedExistingAnnotation(t),t.deleted=!0}isDeletedAnnotationElement(t){return this.#p.has(t)}removeDeletedAnnotationElement(t){this.#p.delete(t.annotationElementId),this.removeChangedExistingAnnotation(t),t.deleted=!1}#ee(t){const i=this.#r.get(t.pageIndex);i?i.addOrRebuild(t):(this.addEditor(t),this.addToAnnotationStorage(t))}setActiveEditor(t){this.#t!==t&&(this.#t=t,t&&this.#O(t.propertiesToUpdate))}get#pe(){let t=null;for(t of this.#x);return t}updateUI(t){this.#pe===t&&this.#O(t.propertiesToUpdate)}toggleSelected(t){if(this.#x.has(t)){this.#x.delete(t),t.unselect(),this.#I({hasSelectedEditor:this.hasSelection});return}this.#x.add(t),t.select(),this.#O(t.propertiesToUpdate),this.#I({hasSelectedEditor:!0})}setSelected(t){for(const i of this.#x)i!==t&&i.unselect();this.#x.clear(),this.#x.add(t),t.select(),this.#O(t.propertiesToUpdate),this.#I({hasSelectedEditor:!0})}isSelected(t){return this.#x.has(t)}get firstSelectedEditor(){return this.#x.values().next().value}unselect(t){t.unselect(),this.#x.delete(t),this.#I({hasSelectedEditor:this.hasSelection})}get hasSelection(){return this.#x.size!==0}get isEnterHandled(){return this.#x.size===1&&this.firstSelectedEditor.isEnterHandled}undo(){this.#l.undo(),this.#I({hasSomethingToUndo:this.#l.hasSomethingToUndo(),hasSomethingToRedo:!0,isEmpty:this.#W()})}redo(){this.#l.redo(),this.#I({hasSomethingToUndo:!0,hasSomethingToRedo:this.#l.hasSomethingToRedo(),isEmpty:this.#W()})}addCommands(t){this.#l.add(t),this.#I({hasSomethingToUndo:!0,hasSomethingToRedo:!1,isEmpty:this.#W()})}#W(){if(this.#o.size===0)return!0;if(this.#o.size===1)for(const t of this.#o.values())return t.isEmpty();return!1}delete(){if(this.commitOrRemove(),!this.hasSelection)return;const t=[...this.#x],i=()=>{for(const a of t)a.remove()},n=()=>{for(const a of t)this.#ee(a)};this.addCommands({cmd:i,undo:n,mustExec:!0})}commitOrRemove(){this.#t?.commitOrRemove()}hasSomethingToControl(){return this.#t||this.hasSelection}#te(t){for(const i of this.#x)i.unselect();this.#x.clear();for(const i of t)i.isEmpty()||(this.#x.add(i),i.select());this.#I({hasSelectedEditor:this.hasSelection})}selectAll(){for(const t of this.#x)t.commit();this.#te(this.#o.values())}unselectAll(){if(!(this.#t&&(this.#t.commitOrRemove(),this.#b!==qi.NONE))&&this.hasSelection){for(const t of this.#x)t.unselect();this.#x.clear(),this.#I({hasSelectedEditor:!1})}}translateSelectedEditors(t,i,n=!1){if(n||this.commitOrRemove(),!this.hasSelection)return;this.#V[0]+=t,this.#V[1]+=i;const[a,l]=this.#V,d=[...this.#x],c=1e3;this.#R&&clearTimeout(this.#R),this.#R=setTimeout(()=>{this.#R=null,this.#V[0]=this.#V[1]=0,this.addCommands({cmd:()=>{for(const p of d)this.#o.has(p.id)&&p.translateInPage(a,l)},undo:()=>{for(const p of d)this.#o.has(p.id)&&p.translateInPage(-a,-l)},mustExec:!1})},c);for(const p of d)p.translateInPage(t,i)}setUpDragSession(){if(this.hasSelection){this.disableUserSelect(!0),this.#h=new Map;for(const t of this.#x)this.#h.set(t,{savedX:t.x,savedY:t.y,savedPageIndex:t.pageIndex,newX:0,newY:0,newPageIndex:-1})}}endDragSession(){if(!this.#h)return!1;this.disableUserSelect(!1);const t=this.#h;this.#h=null;let i=!1;for(const[{x:a,y:l,pageIndex:d},c]of t)c.newX=a,c.newY=l,c.newPageIndex=d,i||=a!==c.savedX||l!==c.savedY||d!==c.savedPageIndex;if(!i)return!1;const n=(a,l,d,c)=>{if(this.#o.has(a.id)){const p=this.#r.get(c);p?a._setParentAndPosition(p,l,d):(a.pageIndex=c,a.x=l,a.y=d)}};return this.addCommands({cmd:()=>{for(const[a,{newX:l,newY:d,newPageIndex:c}]of t)n(a,l,d,c)},undo:()=>{for(const[a,{savedX:l,savedY:d,savedPageIndex:c}]of t)n(a,l,d,c)},mustExec:!0}),!0}dragSelectedEditors(t,i){if(this.#h)for(const n of this.#h.keys())n.drag(t,i)}rebuild(t){if(t.parent===null){const i=this.getLayer(t.pageIndex);i?(i.changeParent(t),i.addOrRebuild(t)):(this.addEditor(t),this.addToAnnotationStorage(t),t.rebuild())}else t.parent.addOrRebuild(t)}get isEditorHandlingKeyboard(){return this.getActive()?.shouldGetKeyboardEvents()||this.#x.size===1&&this.firstSelectedEditor.shouldGetKeyboardEvents()}isActive(t){return this.#t===t}getActive(){return this.#t}getMode(){return this.#b}get imageManager(){return nr(this,"imageManager",new OK)}getSelectionBoxes(t){if(!t)return null;const i=document.getSelection();for(let u=0,h=i.rangeCount;u<h;u++)if(!t.contains(i.getRangeAt(u).commonAncestorContainer))return null;const{x:n,y:a,width:l,height:d}=t.getBoundingClientRect();let c;switch(t.getAttribute("data-main-rotation")){case"90":c=(u,h,m,f)=>({x:(h-a)/d,y:1-(u+m-n)/l,width:f/d,height:m/l});break;case"180":c=(u,h,m,f)=>({x:1-(u+m-n)/l,y:1-(h+f-a)/d,width:m/l,height:f/d});break;case"270":c=(u,h,m,f)=>({x:1-(h+f-a)/d,y:(u-n)/l,width:f/d,height:m/l});break;default:c=(u,h,m,f)=>({x:(u-n)/l,y:(h-a)/d,width:m/l,height:f/d});break}const p=[];for(let u=0,h=i.rangeCount;u<h;u++){const m=i.getRangeAt(u);if(!m.collapsed)for(const{x:f,y:x,width:y,height:w}of m.getClientRects())y===0||w===0||p.push(c(f,x,y,w))}return p.length===0?null:p}addChangedExistingAnnotation({annotationElementId:t,id:i}){(this.#n||=new Map).set(t,i)}removeChangedExistingAnnotation({annotationElementId:t}){this.#n?.delete(t)}renderAnnotationElement(t){const i=this.#n?.get(t.data.id);if(!i)return;const n=this.#i.getRawValue(i);n&&(this.#b===qi.NONE&&!n.hasBeenModified||n.renderAnnotationElement(t))}}class X3{#e="";#t=!1;#o=null;#r=null;#s=null;#i=!1;#n=null;static _l10nPromise=null;constructor(t){this.#n=t}static initialize(t){X3._l10nPromise||=t}async render(){const t=this.#o=document.createElement("button");t.className="altText";const i=await X3._l10nPromise.get("pdfjs-editor-alt-text-button-label");t.textContent=i,t.setAttribute("aria-label",i),t.tabIndex="0";const n=this.#n._uiManager._signal;t.addEventListener("contextmenu",ql,{signal:n}),t.addEventListener("pointerdown",l=>l.stopPropagation(),{signal:n});const a=l=>{l.preventDefault(),this.#n._uiManager.editAltText(this.#n)};return t.addEventListener("click",a,{capture:!0,signal:n}),t.addEventListener("keydown",l=>{l.target===t&&l.key==="Enter"&&(this.#i=!0,a(l))},{signal:n}),await this.#l(),t}finish(){this.#o&&(this.#o.focus({focusVisible:this.#i}),this.#i=!1)}isEmpty(){return!this.#e&&!this.#t}get data(){return{altText:this.#e,decorative:this.#t}}set data({altText:t,decorative:i}){this.#e===t&&this.#t===i||(this.#e=t,this.#t=i,this.#l())}toggle(t=!1){this.#o&&(!t&&this.#s&&(clearTimeout(this.#s),this.#s=null),this.#o.disabled=!t)}destroy(){this.#o?.remove(),this.#o=null,this.#r=null}async#l(){const t=this.#o;if(!t)return;if(!this.#e&&!this.#t){t.classList.remove("done"),this.#r?.remove();return}t.classList.add("done"),X3._l10nPromise.get("pdfjs-editor-alt-text-edit-button-label").then(a=>{t.setAttribute("aria-label",a)});let i=this.#r;if(!i){this.#r=i=document.createElement("span"),i.className="tooltip",i.setAttribute("role","tooltip");const a=i.id=`alt-text-tooltip-${this.#n.id}`;t.setAttribute("aria-describedby",a);const l=100,d=this.#n._uiManager._signal;d.addEventListener("abort",()=>{clearTimeout(this.#s),this.#s=null},{once:!0}),t.addEventListener("mouseenter",()=>{this.#s=setTimeout(()=>{this.#s=null,this.#r.classList.add("show"),this.#n._reportTelemetry({action:"alt_text_tooltip"})},l)},{signal:d}),t.addEventListener("mouseleave",()=>{this.#s&&(clearTimeout(this.#s),this.#s=null),this.#r?.classList.remove("show")},{signal:d})}i.innerText=this.#t?await X3._l10nPromise.get("pdfjs-editor-alt-text-decorative-tooltip"):this.#e,i.parentNode||t.append(i),this.#n.getImageForAltText()?.setAttribute("aria-describedby",i.id)}}class si{#e=null;#t=null;#o=null;#r=!1;#s=!1;#i=null;#n=null;#l=this.focusin.bind(this);#c=this.focusout.bind(this);#p=null;#h="";#d=!1;#a=null;#m=!1;#f=!1;#u=!1;#y=null;#g=0;#w=0;#v=null;_initialOptions=Object.create(null);_isVisible=!0;_uiManager=null;_focusEventsAllowed=!0;_l10nPromise=null;#A=!1;#k=si._zIndex++;static _borderLineWidth=-1;static _colorManager=new NK;static _zIndex=1;static _telemetryTimeout=1e3;static get _resizerKeyboardManager(){const t=si.prototype._resizeWithKeyboard,i=gm.TRANSLATE_SMALL,n=gm.TRANSLATE_BIG;return nr(this,"_resizerKeyboardManager",new gb([[["ArrowLeft","mac+ArrowLeft"],t,{args:[-i,0]}],[["ctrl+ArrowLeft","mac+shift+ArrowLeft"],t,{args:[-n,0]}],[["ArrowRight","mac+ArrowRight"],t,{args:[i,0]}],[["ctrl+ArrowRight","mac+shift+ArrowRight"],t,{args:[n,0]}],[["ArrowUp","mac+ArrowUp"],t,{args:[0,-i]}],[["ctrl+ArrowUp","mac+shift+ArrowUp"],t,{args:[0,-n]}],[["ArrowDown","mac+ArrowDown"],t,{args:[0,i]}],[["ctrl+ArrowDown","mac+shift+ArrowDown"],t,{args:[0,n]}],[["Escape","mac+Escape"],si.prototype._stopResizingWithKeyboard]]))}constructor(t){this.constructor===si&&jr("Cannot initialize AnnotationEditor."),this.parent=t.parent,this.id=t.id,this.width=this.height=null,this.pageIndex=t.parent.pageIndex,this.name=t.name,this.div=null,this._uiManager=t.uiManager,this.annotationElementId=null,this._willKeepAspectRatio=!1,this._initialOptions.isCentered=t.isCentered,this._structTreeParentId=null;const{rotation:i,rawDims:{pageWidth:n,pageHeight:a,pageX:l,pageY:d}}=this.parent.viewport;this.rotation=i,this.pageRotation=(360+i-this._uiManager.viewParameters.rotation)%360,this.pageDimensions=[n,a],this.pageTranslation=[l,d];const[c,p]=this.parentDimensions;this.x=t.x/c,this.y=t.y/p,this.isAttachedToDOM=!1,this.deleted=!1}get editorType(){return Object.getPrototypeOf(this).constructor._type}static get _defaultLineColor(){return nr(this,"_defaultLineColor",this._colorManager.getHexCode("CanvasText"))}static deleteAnnotationElement(t){const i=new O$t({id:t.parent.getNextId(),parent:t.parent,uiManager:t._uiManager});i.annotationElementId=t.annotationElementId,i.deleted=!0,i._uiManager.addToAnnotationStorage(i)}static initialize(t,i,n){if(si._l10nPromise||=new Map(["pdfjs-editor-alt-text-button-label","pdfjs-editor-alt-text-edit-button-label","pdfjs-editor-alt-text-decorative-tooltip","pdfjs-editor-resizer-label-topLeft","pdfjs-editor-resizer-label-topMiddle","pdfjs-editor-resizer-label-topRight","pdfjs-editor-resizer-label-middleRight","pdfjs-editor-resizer-label-bottomRight","pdfjs-editor-resizer-label-bottomMiddle","pdfjs-editor-resizer-label-bottomLeft","pdfjs-editor-resizer-label-middleLeft"].map(l=>[l,t.get(l.replaceAll(/([A-Z])/g,d=>`-${d.toLowerCase()}`))])),n?.strings)for(const l of n.strings)si._l10nPromise.set(l,t.get(l));if(si._borderLineWidth!==-1)return;const a=getComputedStyle(document.documentElement);si._borderLineWidth=parseFloat(a.getPropertyValue("--outline-width"))||0}static updateDefaultParams(t,i){}static get defaultPropertiesToUpdate(){return[]}static isHandlingMimeForPasting(t){return!1}static paste(t,i){jr("Not implemented")}get propertiesToUpdate(){return[]}get _isDraggable(){return this.#A}set _isDraggable(t){this.#A=t,this.div?.classList.toggle("draggable",t)}get isEnterHandled(){return!0}center(){const[t,i]=this.pageDimensions;switch(this.parentRotation){case 90:this.x-=this.height*i/(t*2),this.y+=this.width*t/(i*2);break;case 180:this.x+=this.width/2,this.y+=this.height/2;break;case 270:this.x+=this.height*i/(t*2),this.y-=this.width*t/(i*2);break;default:this.x-=this.width/2,this.y-=this.height/2;break}this.fixAndSetPosition()}addCommands(t){this._uiManager.addCommands(t)}get currentLayer(){return this._uiManager.currentLayer}setInBackground(){this.div.style.zIndex=0}setInForeground(){this.div.style.zIndex=this.#k}setParent(t){t!==null?(this.pageIndex=t.pageIndex,this.pageDimensions=t.pageDimensions):this.#P(),this.parent=t}focusin(t){this._focusEventsAllowed&&(this.#d?this.#d=!1:this.parent.setSelected(this))}focusout(t){!this._focusEventsAllowed||!this.isAttachedToDOM||t.relatedTarget?.closest(`#${this.id}`)||(t.preventDefault(),this.parent?.isMultipleSelection||this.commitOrRemove())}commitOrRemove(){this.isEmpty()?this.remove():this.commit()}commit(){this.addToAnnotationStorage()}addToAnnotationStorage(){this._uiManager.addToAnnotationStorage(this)}setAt(t,i,n,a){const[l,d]=this.parentDimensions;[n,a]=this.screenToPageTranslation(n,a),this.x=(t+n)/l,this.y=(i+a)/d,this.fixAndSetPosition()}#S([t,i],n,a){[n,a]=this.screenToPageTranslation(n,a),this.x+=n/t,this.y+=a/i,this.fixAndSetPosition()}translate(t,i){this.#S(this.parentDimensions,t,i)}translateInPage(t,i){this.#a||=[this.x,this.y],this.#S(this.pageDimensions,t,i),this.div.scrollIntoView({block:"nearest"})}drag(t,i){this.#a||=[this.x,this.y];const[n,a]=this.parentDimensions;if(this.x+=t/n,this.y+=i/a,this.parent&&(this.x<0||this.x>1||this.y<0||this.y>1)){const{x:u,y:h}=this.div.getBoundingClientRect();this.parent.findNewParent(this,u,h)&&(this.x-=Math.floor(this.x),this.y-=Math.floor(this.y))}let{x:l,y:d}=this;const[c,p]=this.getBaseTranslation();l+=c,d+=p,this.div.style.left=`${(100*l).toFixed(2)}%`,this.div.style.top=`${(100*d).toFixed(2)}%`,this.div.scrollIntoView({block:"nearest"})}get _hasBeenMoved(){return!!this.#a&&(this.#a[0]!==this.x||this.#a[1]!==this.y)}getBaseTranslation(){const[t,i]=this.parentDimensions,{_borderLineWidth:n}=si,a=n/t,l=n/i;switch(this.rotation){case 90:return[-a,l];case 180:return[a,l];case 270:return[a,-l];default:return[-a,-l]}}get _mustFixPosition(){return!0}fixAndSetPosition(t=this.rotation){const[i,n]=this.pageDimensions;let{x:a,y:l,width:d,height:c}=this;if(d*=i,c*=n,a*=i,l*=n,this._mustFixPosition)switch(t){case 0:a=Math.max(0,Math.min(i-d,a)),l=Math.max(0,Math.min(n-c,l));break;case 90:a=Math.max(0,Math.min(i-c,a)),l=Math.min(n,Math.max(d,l));break;case 180:a=Math.min(i,Math.max(d,a)),l=Math.min(n,Math.max(c,l));break;case 270:a=Math.min(i,Math.max(c,a)),l=Math.max(0,Math.min(n-d,l));break}this.x=a/=i,this.y=l/=n;const[p,u]=this.getBaseTranslation();a+=p,l+=u;const{style:h}=this.div;h.left=`${(100*a).toFixed(2)}%`,h.top=`${(100*l).toFixed(2)}%`,this.moveInDOM()}static#j(t,i,n){switch(n){case 90:return[i,-t];case 180:return[-t,-i];case 270:return[-i,t];default:return[t,i]}}screenToPageTranslation(t,i){return si.#j(t,i,this.parentRotation)}pageTranslationToScreen(t,i){return si.#j(t,i,360-this.parentRotation)}#$(t){switch(t){case 90:{const[i,n]=this.pageDimensions;return[0,-i/n,n/i,0]}case 180:return[-1,0,0,-1];case 270:{const[i,n]=this.pageDimensions;return[0,i/n,-n/i,0]}default:return[1,0,0,1]}}get parentScale(){return this._uiManager.viewParameters.realScale}get parentRotation(){return(this._uiManager.viewParameters.rotation+this.pageRotation)%360}get parentDimensions(){const{parentScale:t,pageDimensions:[i,n]}=this,a=i*t,l=n*t;return Ql.isCSSRoundSupported?[Math.round(a),Math.round(l)]:[a,l]}setDims(t,i){const[n,a]=this.parentDimensions;this.div.style.width=`${(100*t/n).toFixed(2)}%`,this.#s||(this.div.style.height=`${(100*i/a).toFixed(2)}%`)}fixDims(){const{style:t}=this.div,{height:i,width:n}=t,a=n.endsWith("%"),l=!this.#s&&i.endsWith("%");if(a&&l)return;const[d,c]=this.parentDimensions;a||(t.width=`${(100*parseFloat(n)/d).toFixed(2)}%`),!this.#s&&!l&&(t.height=`${(100*parseFloat(i)/c).toFixed(2)}%`)}getInitialTranslation(){return[0,0]}#b(){if(this.#i)return;this.#i=document.createElement("div"),this.#i.classList.add("resizers");const t=this._willKeepAspectRatio?["topLeft","topRight","bottomRight","bottomLeft"]:["topLeft","topMiddle","topRight","middleRight","bottomRight","bottomMiddle","bottomLeft","middleLeft"],i=this._uiManager._signal;for(const n of t){const a=document.createElement("div");this.#i.append(a),a.classList.add("resizer",n),a.setAttribute("data-resizer-name",n),a.addEventListener("pointerdown",this.#x.bind(this,n),{signal:i}),a.addEventListener("contextmenu",ql,{signal:i}),a.tabIndex=-1}this.div.prepend(this.#i)}#x(t,i){i.preventDefault();const{isMac:n}=Ql.platform;if(i.button!==0||i.ctrlKey&&n)return;this.#o?.toggle(!1);const a=this.#E.bind(this,t),l=this._isDraggable;this._isDraggable=!1;const d=this._uiManager._signal,c={passive:!0,capture:!0,signal:d};this.parent.togglePointerEvents(!1),window.addEventListener("pointermove",a,c),window.addEventListener("contextmenu",ql,{signal:d});const p=this.x,u=this.y,h=this.width,m=this.height,f=this.parent.div.style.cursor,x=this.div.style.cursor;this.div.style.cursor=this.parent.div.style.cursor=window.getComputedStyle(i.target).cursor;const y=()=>{this.parent.togglePointerEvents(!0),this.#o?.toggle(!0),this._isDraggable=l,window.removeEventListener("pointerup",y),window.removeEventListener("blur",y),window.removeEventListener("pointermove",a,c),window.removeEventListener("contextmenu",ql),this.parent.div.style.cursor=f,this.div.style.cursor=x,this.#C(p,u,h,m)};window.addEventListener("pointerup",y,{signal:d}),window.addEventListener("blur",y,{signal:d})}#C(t,i,n,a){const l=this.x,d=this.y,c=this.width,p=this.height;l===t&&d===i&&c===n&&p===a||this.addCommands({cmd:()=>{this.width=c,this.height=p,this.x=l,this.y=d;const[u,h]=this.parentDimensions;this.setDims(u*c,h*p),this.fixAndSetPosition()},undo:()=>{this.width=n,this.height=a,this.x=t,this.y=i;const[u,h]=this.parentDimensions;this.setDims(u*n,h*a),this.fixAndSetPosition()},mustExec:!0})}#E(t,i){const[n,a]=this.parentDimensions,l=this.x,d=this.y,c=this.width,p=this.height,u=si.MIN_SIZE/n,h=si.MIN_SIZE/a,m=N=>Math.round(N*1e4)/1e4,f=this.#$(this.rotation),x=(N,O)=>[f[0]*N+f[2]*O,f[1]*N+f[3]*O],y=this.#$(360-this.rotation),w=(N,O)=>[y[0]*N+y[2]*O,y[1]*N+y[3]*O];let b,C,k=!1,E=!1;switch(t){case"topLeft":k=!0,b=(N,O)=>[0,0],C=(N,O)=>[N,O];break;case"topMiddle":b=(N,O)=>[N/2,0],C=(N,O)=>[N/2,O];break;case"topRight":k=!0,b=(N,O)=>[N,0],C=(N,O)=>[0,O];break;case"middleRight":E=!0,b=(N,O)=>[N,O/2],C=(N,O)=>[0,O/2];break;case"bottomRight":k=!0,b=(N,O)=>[N,O],C=(N,O)=>[0,0];break;case"bottomMiddle":b=(N,O)=>[N/2,O],C=(N,O)=>[N/2,0];break;case"bottomLeft":k=!0,b=(N,O)=>[0,O],C=(N,O)=>[N,0];break;case"middleLeft":E=!0,b=(N,O)=>[0,O/2],C=(N,O)=>[N,O/2];break}const S=b(c,p),j=C(c,p);let I=x(...j);const T=m(l+I[0]),P=m(d+I[1]);let B=1,D=1,[F,Y]=this.screenToPageTranslation(i.movementX,i.movementY);if([F,Y]=w(F/n,Y/a),k){const N=Math.hypot(c,p);B=D=Math.max(Math.min(Math.hypot(j[0]-S[0]-F,j[1]-S[1]-Y)/N,1/c,1/p),u/c,h/p)}else E?B=Math.max(u,Math.min(1,Math.abs(j[0]-S[0]-F)))/c:D=Math.max(h,Math.min(1,Math.abs(j[1]-S[1]-Y)))/p;const q=m(c*B),Z=m(p*D);I=x(...C(q,Z));const V=T-I[0],H=P-I[1];this.width=q,this.height=Z,this.x=V,this.y=H,this.setDims(n*q,a*Z),this.fixAndSetPosition()}altTextFinish(){this.#o?.finish()}async addEditToolbar(){return this.#p||this.#f?this.#p:(this.#p=new RK(this),this.div.append(this.#p.render()),this.#o&&this.#p.addAltTextButton(await this.#o.render()),this.#p)}removeEditToolbar(){this.#p&&(this.#p.remove(),this.#p=null,this.#o?.destroy())}getClientDimensions(){return this.div.getBoundingClientRect()}async addAltTextButton(){this.#o||(X3.initialize(si._l10nPromise),this.#o=new X3(this),this.#e&&(this.#o.data=this.#e,this.#e=null),await this.addEditToolbar())}get altTextData(){return this.#o?.data}set altTextData(t){this.#o&&(this.#o.data=t)}hasAltText(){return!this.#o?.isEmpty()}render(){this.div=document.createElement("div"),this.div.setAttribute("data-editor-rotation",(360-this.rotation)%360),this.div.className=this.name,this.div.setAttribute("id",this.id),this.div.tabIndex=this.#r?-1:0,this._isVisible||this.div.classList.add("hidden"),this.setInForeground();const t=this._uiManager._signal;this.div.addEventListener("focusin",this.#l,{signal:t}),this.div.addEventListener("focusout",this.#c,{signal:t});const[i,n]=this.parentDimensions;this.parentRotation%180!==0&&(this.div.style.maxWidth=`${(100*n/i).toFixed(2)}%`,this.div.style.maxHeight=`${(100*i/n).toFixed(2)}%`);const[a,l]=this.getInitialTranslation();return this.translate(a,l),pS(this,this.div,["pointerdown"]),this.div}pointerdown(t){const{isMac:i}=Ql.platform;if(t.button!==0||t.ctrlKey&&i){t.preventDefault();return}if(this.#d=!0,this._isDraggable){this.#B(t);return}this.#L(t)}#L(t){const{isMac:i}=Ql.platform;t.ctrlKey&&!i||t.shiftKey||t.metaKey&&i?this.parent.toggleSelected(this):this.parent.setSelected(this)}#B(t){const i=this._uiManager.isSelected(this);this._uiManager.setUpDragSession();let n,a;const l=this._uiManager._signal;i&&(this.div.classList.add("moving"),n={passive:!0,capture:!0,signal:l},this.#g=t.clientX,this.#w=t.clientY,a=c=>{const{clientX:p,clientY:u}=c,[h,m]=this.screenToPageTranslation(p-this.#g,u-this.#w);this.#g=p,this.#w=u,this._uiManager.dragSelectedEditors(h,m)},window.addEventListener("pointermove",a,n));const d=()=>{window.removeEventListener("pointerup",d),window.removeEventListener("blur",d),i&&(this.div.classList.remove("moving"),window.removeEventListener("pointermove",a,n)),this.#d=!1,this._uiManager.endDragSession()||this.#L(t)};window.addEventListener("pointerup",d,{signal:l}),window.addEventListener("blur",d,{signal:l})}moveInDOM(){this.#y&&clearTimeout(this.#y),this.#y=setTimeout(()=>{this.#y=null,this.parent?.moveEditorInDOM(this)},0)}_setParentAndPosition(t,i,n){t.changeParent(this),this.x=i,this.y=n,this.fixAndSetPosition()}getRect(t,i,n=this.rotation){const a=this.parentScale,[l,d]=this.pageDimensions,[c,p]=this.pageTranslation,u=t/a,h=i/a,m=this.x*l,f=this.y*d,x=this.width*l,y=this.height*d;switch(n){case 0:return[m+u+c,d-f-h-y+p,m+u+x+c,d-f-h+p];case 90:return[m+h+c,d-f+u+p,m+h+y+c,d-f+u+x+p];case 180:return[m-u-x+c,d-f+h+p,m-u+c,d-f+h+y+p];case 270:return[m-h-y+c,d-f-u-x+p,m-h+c,d-f-u+p];default:throw new Error("Invalid rotation")}}getRectInCurrentCoords(t,i){const[n,a,l,d]=t,c=l-n,p=d-a;switch(this.rotation){case 0:return[n,i-d,c,p];case 90:return[n,i-a,p,c];case 180:return[l,i-a,c,p];case 270:return[l,i-d,p,c];default:throw new Error("Invalid rotation")}}onceAdded(){}isEmpty(){return!1}enableEditMode(){this.#f=!0}disableEditMode(){this.#f=!1}isInEditMode(){return this.#f}shouldGetKeyboardEvents(){return this.#u}needsToBeRebuilt(){return this.div&&!this.isAttachedToDOM}rebuild(){const t=this._uiManager._signal;this.div?.addEventListener("focusin",this.#l,{signal:t}),this.div?.addEventListener("focusout",this.#c,{signal:t})}rotate(t){}serialize(t=!1,i=null){jr("An editor must be serializable")}static deserialize(t,i,n){const a=new this.prototype.constructor({parent:i,id:i.getNextId(),uiManager:n});a.rotation=t.rotation,a.#e=t.accessibilityData;const[l,d]=a.pageDimensions,[c,p,u,h]=a.getRectInCurrentCoords(t.rect,d);return a.x=c/l,a.y=p/d,a.width=u/l,a.height=h/d,a}get hasBeenModified(){return!!this.annotationElementId&&(this.deleted||this.serialize()!==null)}remove(){if(this.div.removeEventListener("focusin",this.#l),this.div.removeEventListener("focusout",this.#c),this.isEmpty()||this.commit(),this.parent?this.parent.remove(this):this._uiManager.removeEditor(this),this.#y&&(clearTimeout(this.#y),this.#y=null),this.#P(),this.removeEditToolbar(),this.#v){for(const t of this.#v.values())clearTimeout(t);this.#v=null}this.parent=null}get isResizable(){return!1}makeResizable(){this.isResizable&&(this.#b(),this.#i.classList.remove("hidden"),pS(this,this.div,["keydown"]))}get toolbarPosition(){return null}keydown(t){if(!this.isResizable||t.target!==this.div||t.key!=="Enter")return;this._uiManager.setSelected(this),this.#n={savedX:this.x,savedY:this.y,savedWidth:this.width,savedHeight:this.height};const i=this.#i.children;if(!this.#t){this.#t=Array.from(i);const d=this.#M.bind(this),c=this.#T.bind(this),p=this._uiManager._signal;for(const u of this.#t){const h=u.getAttribute("data-resizer-name");u.setAttribute("role","spinbutton"),u.addEventListener("keydown",d,{signal:p}),u.addEventListener("blur",c,{signal:p}),u.addEventListener("focus",this.#D.bind(this,h),{signal:p}),si._l10nPromise.get(`pdfjs-editor-resizer-label-${h}`).then(m=>u.setAttribute("aria-label",m))}}const n=this.#t[0];let a=0;for(const d of i){if(d===n)break;a++}const l=(360-this.rotation+this.parentRotation)%360/90*(this.#t.length/4);if(l!==a){if(l<a)for(let c=0;c<a-l;c++)this.#i.append(this.#i.firstChild);else if(l>a)for(let c=0;c<l-a;c++)this.#i.firstChild.before(this.#i.lastChild);let d=0;for(const c of i){const u=this.#t[d++].getAttribute("data-resizer-name");si._l10nPromise.get(`pdfjs-editor-resizer-label-${u}`).then(h=>c.setAttribute("aria-label",h))}}this.#z(0),this.#u=!0,this.#i.firstChild.focus({focusVisible:!0}),t.preventDefault(),t.stopImmediatePropagation()}#M(t){si._resizerKeyboardManager.exec(this,t)}#T(t){this.#u&&t.relatedTarget?.parentNode!==this.#i&&this.#P()}#D(t){this.#h=this.#u?t:""}#z(t){if(this.#t)for(const i of this.#t)i.tabIndex=t}_resizeWithKeyboard(t,i){this.#u&&this.#E(this.#h,{movementX:t,movementY:i})}#P(){if(this.#u=!1,this.#z(-1),this.#n){const{savedX:t,savedY:i,savedWidth:n,savedHeight:a}=this.#n;this.#C(t,i,n,a),this.#n=null}}_stopResizingWithKeyboard(){this.#P(),this.div.focus()}select(){if(this.makeResizable(),this.div?.classList.add("selectedEditor"),!this.#p){this.addEditToolbar().then(()=>{this.div?.classList.contains("selectedEditor")&&this.#p?.show()});return}this.#p?.show()}unselect(){this.#i?.classList.add("hidden"),this.div?.classList.remove("selectedEditor"),this.div?.contains(document.activeElement)&&this._uiManager.currentLayer.div.focus({preventScroll:!0}),this.#p?.hide()}updateParams(t,i){}disableEditing(){}enableEditing(){}enterInEditMode(){}getImageForAltText(){return null}get contentDiv(){return this.div}get isEditing(){return this.#m}set isEditing(t){this.#m=t,this.parent&&(t?(this.parent.setSelected(this),this.parent.setActiveEditor(this)):this.parent.setActiveEditor(null))}setAspectRatio(t,i){this.#s=!0;const n=t/i,{style:a}=this.div;a.aspectRatio=n,a.height="auto"}static get MIN_SIZE(){return 16}static canCreateNewEmptyEditor(){return!0}get telemetryInitialData(){return{action:"added"}}get telemetryFinalData(){return null}_reportTelemetry(t,i=!1){if(i){this.#v||=new Map;const{action:n}=t;let a=this.#v.get(n);a&&clearTimeout(a),a=setTimeout(()=>{this._reportTelemetry(t),this.#v.delete(n),this.#v.size===0&&(this.#v=null)},si._telemetryTimeout),this.#v.set(n,a);return}t.type||=this.editorType,this._uiManager._eventBus.dispatch("reporttelemetry",{source:this,details:{type:"editing",data:t}})}show(t=this._isVisible){this.div.classList.toggle("hidden",!t),this._isVisible=t}enable(){this.div&&(this.div.tabIndex=0),this.#r=!1}disable(){this.div&&(this.div.tabIndex=-1),this.#r=!0}renderAnnotationElement(t){let i=t.container.querySelector(".annotationContent");if(!i)i=document.createElement("div"),i.classList.add("annotationContent",this.editorType),t.container.prepend(i);else if(i.nodeName==="CANVAS"){const n=i;i=document.createElement("div"),i.classList.add("annotationContent",this.editorType),n.before(i)}return i}resetAnnotationElement(t){const{firstChild:i}=t.container;i.nodeName==="DIV"&&i.classList.contains("annotationContent")&&i.remove()}}class O$t extends si{constructor(t){super(t),this.annotationElementId=t.annotationElementId,this.deleted=!0}serialize(){return{id:this.annotationElementId,deleted:!0,pageIndex:this.pageIndex}}}const dpe=3285377520,Xd=4294901760,Wp=65535;class Qje{constructor(t){this.h1=t?t&4294967295:dpe,this.h2=t?t&4294967295:dpe}update(t){let i,n;if(typeof t=="string"){i=new Uint8Array(t.length*2),n=0;for(let w=0,b=t.length;w<b;w++){const C=t.charCodeAt(w);C<=255?i[n++]=C:(i[n++]=C>>>8,i[n++]=C&255)}}else if(ArrayBuffer.isView(t))i=t.slice(),n=i.byteLength;else throw new Error("Invalid data format, must be a string or TypedArray.");const a=n>>2,l=n-a*4,d=new Uint32Array(i.buffer,0,a);let c=0,p=0,u=this.h1,h=this.h2;const m=3432918353,f=461845907,x=m&Wp,y=f&Wp;for(let w=0;w<a;w++)w&1?(c=d[w],c=c*m&Xd|c*x&Wp,c=c<<15|c>>>17,c=c*f&Xd|c*y&Wp,u^=c,u=u<<13|u>>>19,u=u*5+3864292196):(p=d[w],p=p*m&Xd|p*x&Wp,p=p<<15|p>>>17,p=p*f&Xd|p*y&Wp,h^=p,h=h<<13|h>>>19,h=h*5+3864292196);switch(c=0,l){case 3:c^=i[a*4+2]<<16;case 2:c^=i[a*4+1]<<8;case 1:c^=i[a*4],c=c*m&Xd|c*x&Wp,c=c<<15|c>>>17,c=c*f&Xd|c*y&Wp,a&1?u^=c:h^=c}this.h1=u,this.h2=h}hexdigest(){let t=this.h1,i=this.h2;return t^=i>>>1,t=t*3981806797&Xd|t*36045&Wp,i=i*4283543511&Xd|((i<<16|t>>>16)*2950163797&Xd)>>>16,t^=i>>>1,t=t*444984403&Xd|t*60499&Wp,i=i*3301882366&Xd|((i<<16|t>>>16)*3120437893&Xd)>>>16,t^=i>>>1,(t>>>0).toString(16).padStart(8,"0")+(i>>>0).toString(16).padStart(8,"0")}}const mU=Object.freeze({map:null,hash:"",transfer:void 0});class HK{#e=!1;#t=new Map;constructor(){this.onSetModified=null,this.onResetModified=null,this.onAnnotationEditor=null}getValue(t,i){const n=this.#t.get(t);return n===void 0?i:Object.assign(i,n)}getRawValue(t){return this.#t.get(t)}remove(t){if(this.#t.delete(t),this.#t.size===0&&this.resetModified(),typeof this.onAnnotationEditor=="function"){for(const i of this.#t.values())if(i instanceof si)return;this.onAnnotationEditor(null)}}setValue(t,i){const n=this.#t.get(t);let a=!1;if(n!==void 0)for(const[l,d]of Object.entries(i))n[l]!==d&&(a=!0,n[l]=d);else a=!0,this.#t.set(t,i);a&&this.#o(),i instanceof si&&typeof this.onAnnotationEditor=="function"&&this.onAnnotationEditor(i.constructor._type)}has(t){return this.#t.has(t)}getAll(){return this.#t.size>0?MK(this.#t):null}setAll(t){for(const[i,n]of Object.entries(t))this.setValue(i,n)}get size(){return this.#t.size}#o(){this.#e||(this.#e=!0,typeof this.onSetModified=="function"&&this.onSetModified())}resetModified(){this.#e&&(this.#e=!1,typeof this.onResetModified=="function"&&this.onResetModified())}get print(){return new Uje(this)}get serializable(){if(this.#t.size===0)return mU;const t=new Map,i=new Qje,n=[],a=Object.create(null);let l=!1;for(const[d,c]of this.#t){const p=c instanceof si?c.serialize(!1,a):c;p&&(t.set(d,p),i.update(`${d}:${JSON.stringify(p)}`),l||=!!p.bitmap)}if(l)for(const d of t.values())d.bitmap&&n.push(d.bitmap);return t.size>0?{map:t,hash:i.hexdigest(),transfer:n}:mU}get editorStats(){let t=null;const i=new Map;for(const n of this.#t.values()){if(!(n instanceof si))continue;const a=n.telemetryFinalData;if(!a)continue;const{type:l}=a;i.has(l)||i.set(l,Object.getPrototypeOf(n).constructor),t||=Object.create(null);const d=t[l]||=new Map;for(const[c,p]of Object.entries(a)){if(c==="type")continue;let u=d.get(c);u||(u=new Map,d.set(c,u));const h=u.get(p)??0;u.set(p,h+1)}}for(const[n,a]of i)t[n]=a.computeTelemetryFinalData(t[n]);return t}}class Uje extends HK{#e;constructor(t){super();const{map:i,hash:n,transfer:a}=t.serializable,l=structuredClone(i,a?{transfer:a}:null);this.#e={map:l,hash:n,transfer:a}}get print(){jr("Should not call PrintAnnotationStorage.print")}get serializable(){return this.#e}}class N$t{#e=new Set;constructor({ownerDocument:t=globalThis.document,styleElement:i=null}){this._document=t,this.nativeFontFaces=new Set,this.styleElement=null,this.loadingRequests=[],this.loadTestFontId=0}addNativeFontFace(t){this.nativeFontFaces.add(t),this._document.fonts.add(t)}removeNativeFontFace(t){this.nativeFontFaces.delete(t),this._document.fonts.delete(t)}insertRule(t){this.styleElement||(this.styleElement=this._document.createElement("style"),this._document.documentElement.getElementsByTagName("head")[0].append(this.styleElement));const i=this.styleElement.sheet;i.insertRule(t,i.cssRules.length)}clear(){for(const t of this.nativeFontFaces)this._document.fonts.delete(t);this.nativeFontFaces.clear(),this.#e.clear(),this.styleElement&&(this.styleElement.remove(),this.styleElement=null)}async loadSystemFont({systemFontInfo:t,_inspectFont:i}){if(!(!t||this.#e.has(t.loadedName))){if(Ca(!this.disableFontFace,"loadSystemFont shouldn't be called when `disableFontFace` is set."),this.isFontLoadingAPISupported){const{loadedName:n,src:a,style:l}=t,d=new FontFace(n,a,l);this.addNativeFontFace(d);try{await d.load(),this.#e.add(n),i?.(t)}catch{Pi(`Cannot load system font: ${t.baseFontName}, installing it could help to improve PDF rendering.`),this.removeNativeFontFace(d)}return}jr("Not implemented: loadSystemFont without the Font Loading API.")}}async bind(t){if(t.attached||t.missingFile&&!t.systemFontInfo)return;if(t.attached=!0,t.systemFontInfo){await this.loadSystemFont(t);return}if(this.isFontLoadingAPISupported){const n=t.createNativeFontFace();if(n){this.addNativeFontFace(n);try{await n.loaded}catch(a){throw Pi(`Failed to load font '${n.family}': '${a}'.`),t.disableFontFace=!0,a}}return}const i=t.createFontFaceRule();if(i){if(this.insertRule(i),this.isSyncFontLoadingSupported)return;await new Promise(n=>{const a=this._queueLoadingCallback(n);this._prepareFontLoadEvent(t,a)})}}get isFontLoadingAPISupported(){const t=!!this._document?.fonts;return nr(this,"isFontLoadingAPISupported",t)}get isSyncFontLoadingSupported(){let t=!1;return(Rs||typeof navigator<"u"&&typeof navigator?.userAgent=="string"&&/Mozilla\/5.0.*?rv:\d+.*? Gecko/.test(navigator.userAgent))&&(t=!0),nr(this,"isSyncFontLoadingSupported",t)}_queueLoadingCallback(t){function i(){for(Ca(!a.done,"completeRequest() cannot be called twice."),a.done=!0;n.length>0&&n[0].done;){const l=n.shift();setTimeout(l.callback,0)}}const{loadingRequests:n}=this,a={done:!1,complete:i,callback:t};return n.push(a),a}get _loadTestFont(){const t=atob("T1RUTwALAIAAAwAwQ0ZGIDHtZg4AAAOYAAAAgUZGVE1lkzZwAAAEHAAAABxHREVGABQAFQAABDgAAAAeT1MvMlYNYwkAAAEgAAAAYGNtYXABDQLUAAACNAAAAUJoZWFk/xVFDQAAALwAAAA2aGhlYQdkA+oAAAD0AAAAJGhtdHgD6AAAAAAEWAAAAAZtYXhwAAJQAAAAARgAAAAGbmFtZVjmdH4AAAGAAAAAsXBvc3T/hgAzAAADeAAAACAAAQAAAAEAALZRFsRfDzz1AAsD6AAAAADOBOTLAAAAAM4KHDwAAAAAA+gDIQAAAAgAAgAAAAAAAAABAAADIQAAAFoD6AAAAAAD6AABAAAAAAAAAAAAAAAAAAAAAQAAUAAAAgAAAAQD6AH0AAUAAAKKArwAAACMAooCvAAAAeAAMQECAAACAAYJAAAAAAAAAAAAAQAAAAAAAAAAAAAAAFBmRWQAwAAuAC4DIP84AFoDIQAAAAAAAQAAAAAAAAAAACAAIAABAAAADgCuAAEAAAAAAAAAAQAAAAEAAAAAAAEAAQAAAAEAAAAAAAIAAQAAAAEAAAAAAAMAAQAAAAEAAAAAAAQAAQAAAAEAAAAAAAUAAQAAAAEAAAAAAAYAAQAAAAMAAQQJAAAAAgABAAMAAQQJAAEAAgABAAMAAQQJAAIAAgABAAMAAQQJAAMAAgABAAMAAQQJAAQAAgABAAMAAQQJAAUAAgABAAMAAQQJAAYAAgABWABYAAAAAAAAAwAAAAMAAAAcAAEAAAAAADwAAwABAAAAHAAEACAAAAAEAAQAAQAAAC7//wAAAC7////TAAEAAAAAAAABBgAAAQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAEAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAMAAAAAAAD/gwAyAAAAAQAAAAAAAAAAAAAAAAAAAAABAAQEAAEBAQJYAAEBASH4DwD4GwHEAvgcA/gXBIwMAYuL+nz5tQXkD5j3CBLnEQACAQEBIVhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYAAABAQAADwACAQEEE/t3Dov6fAH6fAT+fPp8+nwHDosMCvm1Cvm1DAz6fBQAAAAAAAABAAAAAMmJbzEAAAAAzgTjFQAAAADOBOQpAAEAAAAAAAAADAAUAAQAAAABAAAAAgABAAAAAAAAAAAD6AAAAAAAAA==");return nr(this,"_loadTestFont",t)}_prepareFontLoadEvent(t,i){function n(S,j){return S.charCodeAt(j)<<24|S.charCodeAt(j+1)<<16|S.charCodeAt(j+2)<<8|S.charCodeAt(j+3)&255}function a(S,j,I,T){const P=S.substring(0,j),B=S.substring(j+I);return P+T+B}let l,d;const c=this._document.createElement("canvas");c.width=1,c.height=1;const p=c.getContext("2d");let u=0;function h(S,j){if(++u>30){Pi("Load test font never loaded."),j();return}if(p.font="30px "+S,p.fillText(".",0,20),p.getImageData(0,0,1,1).data[3]>0){j();return}setTimeout(h.bind(null,S,j))}const m=`lt${Date.now()}${this.loadTestFontId++}`;let f=this._loadTestFont;f=a(f,976,m.length,m);const y=16,w=1482184792;let b=n(f,y);for(l=0,d=m.length-3;l<d;l+=4)b=b-w+n(m,l)|0;l<m.length&&(b=b-w+n(m+"XXX",l)|0),f=a(f,y,4,A$t(b));const C=`url(data:font/opentype;base64,${btoa(f)});`,k=`@font-face {font-family:"${m}";src:${C}}`;this.insertRule(k);const E=this._document.createElement("div");E.style.visibility="hidden",E.style.width=E.style.height="10px",E.style.position="absolute",E.style.top=E.style.left="0px";for(const S of[t.loadedName,m]){const j=this._document.createElement("span");j.textContent="Hi",j.style.fontFamily=S,E.append(j)}this._document.body.append(E),h(m,()=>{E.remove(),i.complete()})}}class H$t{constructor(t,{disableFontFace:i=!1,inspectFont:n=null}){this.compiledGlyphs=Object.create(null);for(const a in t)this[a]=t[a];this.disableFontFace=i===!0,this._inspectFont=n}createNativeFontFace(){if(!this.data||this.disableFontFace)return null;let t;if(!this.cssFontInfo)t=new FontFace(this.loadedName,this.data,{});else{const i={weight:this.cssFontInfo.fontWeight};this.cssFontInfo.italicAngle&&(i.style=`oblique ${this.cssFontInfo.italicAngle}deg`),t=new FontFace(this.cssFontInfo.fontFamily,this.data,i)}return this._inspectFont?.(this),t}createFontFaceRule(){if(!this.data||this.disableFontFace)return null;const t=Rje(this.data),i=`url(data:${this.mimetype};base64,${btoa(t)});`;let n;if(!this.cssFontInfo)n=`@font-face {font-family:"${this.loadedName}";src:${i}}`;else{let a=`font-weight: ${this.cssFontInfo.fontWeight};`;this.cssFontInfo.italicAngle&&(a+=`font-style: oblique ${this.cssFontInfo.italicAngle}deg;`),n=`@font-face {font-family:"${this.cssFontInfo.fontFamily}";${a}src:${i}}`}return this._inspectFont?.(this,i),n}getPathGenerator(t,i){if(this.compiledGlyphs[i]!==void 0)return this.compiledGlyphs[i];let n;try{n=t.get(this.loadedName+"_path_"+i)}catch(l){Pi(`getPathGenerator - ignoring character: "${l}".`)}if(!Array.isArray(n)||n.length===0)return this.compiledGlyphs[i]=function(l,d){};const a=[];for(let l=0,d=n.length;l<d;)switch(n[l++]){case Lh.BEZIER_CURVE_TO:{const[c,p,u,h,m,f]=n.slice(l,l+6);a.push(x=>x.bezierCurveTo(c,p,u,h,m,f)),l+=6}break;case Lh.MOVE_TO:{const[c,p]=n.slice(l,l+2);a.push(u=>u.moveTo(c,p)),l+=2}break;case Lh.LINE_TO:{const[c,p]=n.slice(l,l+2);a.push(u=>u.lineTo(c,p)),l+=2}break;case Lh.QUADRATIC_CURVE_TO:{const[c,p,u,h]=n.slice(l,l+4);a.push(m=>m.quadraticCurveTo(c,p,u,h)),l+=4}break;case Lh.RESTORE:a.push(c=>c.restore());break;case Lh.SAVE:a.push(c=>c.save());break;case Lh.SCALE:Ca(a.length===2,"Scale command is only valid at the third position.");break;case Lh.TRANSFORM:{const[c,p,u,h,m,f]=n.slice(l,l+6);a.push(x=>x.transform(c,p,u,h,m,f)),l+=6}break;case Lh.TRANSLATE:{const[c,p]=n.slice(l,l+2);a.push(u=>u.translate(c,p)),l+=2}break}return this.compiledGlyphs[i]=function(d,c){a[0](d),a[1](d),d.scale(c,-c);for(let p=2,u=a.length;p<u;p++)a[p](d)}}}if(Rs){var gU=Promise.withResolvers(),fU=null;(async()=>{const t=await K3(()=>import("./empty-C2x3-AJO.js").then(c=>c.e),__vite__mapDeps([0,1,2])),i=await K3(()=>import("./index-BxqQRZ16.js").then(c=>c.i),__vite__mapDeps([3,1,4,5,6,7,8,9])),n=await K3(()=>import("./index-2Mhkw_1k.js").then(c=>c.i),__vite__mapDeps([10,1,11,4,5,6,7,8,9])),a=await K3(()=>import("./url-Cr60XBYe.js").then(c=>c.u),__vite__mapDeps([12,1,9,7,5,6,8]));let l,d;return new Map(Object.entries({fs:t,http:i,https:n,url:a,canvas:l,path2d:d}))})().then(t=>{fU=t,gU.resolve()},t=>{Pi(`loadPackages: ${t}`),fU=new Map,gU.resolve()})}class Uu{static get promise(){return gU.promise}static get(t){return fU?.get(t)}}const Wje=function(e){return Uu.get("fs").promises.readFile(e).then(i=>new Uint8Array(i))};class _$t extends UL{}class V$t extends WL{_createCanvas(t,i){return Uu.get("canvas").createCanvas(t,i)}}class Q$t extends GL{_fetchData(t,i){return Wje(t).then(n=>({cMapData:n,compressionType:i}))}}class U$t extends YL{_fetchData(t){return Wje(t)}}const al={FILL:"Fill",STROKE:"Stroke",SHADING:"Shading"};function xU(e,t){if(!t)return;const i=t[2]-t[0],n=t[3]-t[1],a=new Path2D;a.rect(t[0],t[1],i,n),e.clip(a)}class fb{constructor(){this.constructor===fb&&jr("Cannot initialize BaseShadingPattern.")}getPattern(){jr("Abstract method `getPattern` called.")}}class W$t extends fb{constructor(t){super(),this._type=t[1],this._bbox=t[2],this._colorStops=t[3],this._p0=t[4],this._p1=t[5],this._r0=t[6],this._r1=t[7],this.matrix=null}_createGradient(t){let i;this._type==="axial"?i=t.createLinearGradient(this._p0[0],this._p0[1],this._p1[0],this._p1[1]):this._type==="radial"&&(i=t.createRadialGradient(this._p0[0],this._p0[1],this._r0,this._p1[0],this._p1[1],this._r1));for(const n of this._colorStops)i.addColorStop(n[0],n[1]);return i}getPattern(t,i,n,a){let l;if(a===al.STROKE||a===al.FILL){const d=i.current.getClippedPathBoundingBox(a,mn(t))||[0,0,0,0],c=Math.ceil(d[2]-d[0])||1,p=Math.ceil(d[3]-d[1])||1,u=i.cachedCanvases.getCanvas("pattern",c,p,!0),h=u.context;h.clearRect(0,0,h.canvas.width,h.canvas.height),h.beginPath(),h.rect(0,0,h.canvas.width,h.canvas.height),h.translate(-d[0],-d[1]),n=ko.transform(n,[1,0,0,1,d[0],d[1]]),h.transform(...i.baseTransform),this.matrix&&h.transform(...this.matrix),xU(h,this._bbox),h.fillStyle=this._createGradient(h),h.fill(),l=t.createPattern(u.canvas,"no-repeat");const m=new DOMMatrix(n);l.setTransform(m)}else xU(t,this._bbox),l=this._createGradient(t);return l}}function nO(e,t,i,n,a,l,d,c){const p=t.coords,u=t.colors,h=e.data,m=e.width*4;let f;p[i+1]>p[n+1]&&(f=i,i=n,n=f,f=l,l=d,d=f),p[n+1]>p[a+1]&&(f=n,n=a,a=f,f=d,d=c,c=f),p[i+1]>p[n+1]&&(f=i,i=n,n=f,f=l,l=d,d=f);const x=(p[i]+t.offsetX)*t.scaleX,y=(p[i+1]+t.offsetY)*t.scaleY,w=(p[n]+t.offsetX)*t.scaleX,b=(p[n+1]+t.offsetY)*t.scaleY,C=(p[a]+t.offsetX)*t.scaleX,k=(p[a+1]+t.offsetY)*t.scaleY;if(y>=k)return;const E=u[l],S=u[l+1],j=u[l+2],I=u[d],T=u[d+1],P=u[d+2],B=u[c],D=u[c+1],F=u[c+2],Y=Math.round(y),q=Math.round(k);let Z,V,H,N,O,z,R,te;for(let G=Y;G<=q;G++){if(G<b){const ye=G<y?0:(y-G)/(y-b);Z=x-(x-w)*ye,V=E-(E-I)*ye,H=S-(S-T)*ye,N=j-(j-P)*ye}else{let ye;G>k?ye=1:b===k?ye=0:ye=(b-G)/(b-k),Z=w-(w-C)*ye,V=I-(I-B)*ye,H=T-(T-D)*ye,N=P-(P-F)*ye}let W;G<y?W=0:G>k?W=1:W=(y-G)/(y-k),O=x-(x-C)*W,z=E-(E-B)*W,R=S-(S-D)*W,te=j-(j-F)*W;const ee=Math.round(Math.min(Z,O)),J=Math.round(Math.max(Z,O));let ne=m*G+ee*4;for(let ye=ee;ye<=J;ye++)W=(Z-ye)/(Z-O),W<0?W=0:W>1&&(W=1),h[ne++]=V-(V-z)*W|0,h[ne++]=H-(H-R)*W|0,h[ne++]=N-(N-te)*W|0,h[ne++]=255}}function G$t(e,t,i){const n=t.coords,a=t.colors;let l,d;switch(t.type){case"lattice":const c=t.verticesPerRow,p=Math.floor(n.length/c)-1,u=c-1;for(l=0;l<p;l++){let h=l*c;for(let m=0;m<u;m++,h++)nO(e,i,n[h],n[h+1],n[h+c],a[h],a[h+1],a[h+c]),nO(e,i,n[h+c+1],n[h+1],n[h+c],a[h+c+1],a[h+1],a[h+c])}break;case"triangles":for(l=0,d=n.length;l<d;l+=3)nO(e,i,n[l],n[l+1],n[l+2],a[l],a[l+1],a[l+2]);break;default:throw new Error("illegal figure")}}class Y$t extends fb{constructor(t){super(),this._coords=t[2],this._colors=t[3],this._figures=t[4],this._bounds=t[5],this._bbox=t[7],this._background=t[8],this.matrix=null}_createMeshCanvas(t,i,n){const c=Math.floor(this._bounds[0]),p=Math.floor(this._bounds[1]),u=Math.ceil(this._bounds[2])-c,h=Math.ceil(this._bounds[3])-p,m=Math.min(Math.ceil(Math.abs(u*t[0]*1.1)),3e3),f=Math.min(Math.ceil(Math.abs(h*t[1]*1.1)),3e3),x=u/m,y=h/f,w={coords:this._coords,colors:this._colors,offsetX:-c,offsetY:-p,scaleX:1/x,scaleY:1/y},b=m+4,C=f+4,k=n.getCanvas("mesh",b,C,!1),E=k.context,S=E.createImageData(m,f);if(i){const I=S.data;for(let T=0,P=I.length;T<P;T+=4)I[T]=i[0],I[T+1]=i[1],I[T+2]=i[2],I[T+3]=255}for(const I of this._figures)G$t(S,I,w);return E.putImageData(S,2,2),{canvas:k.canvas,offsetX:c-2*x,offsetY:p-2*y,scaleX:x,scaleY:y}}getPattern(t,i,n,a){xU(t,this._bbox);let l;if(a===al.SHADING)l=ko.singularValueDecompose2dScale(mn(t));else if(l=ko.singularValueDecompose2dScale(i.baseTransform),this.matrix){const c=ko.singularValueDecompose2dScale(this.matrix);l=[l[0]*c[0],l[1]*c[1]]}const d=this._createMeshCanvas(l,a===al.SHADING?null:this._background,i.cachedCanvases);return a!==al.SHADING&&(t.setTransform(...i.baseTransform),this.matrix&&t.transform(...this.matrix)),t.translate(d.offsetX,d.offsetY),t.scale(d.scaleX,d.scaleY),t.createPattern(d.canvas,"no-repeat")}}class K$t extends fb{getPattern(){return"hotpink"}}function q$t(e){switch(e[0]){case"RadialAxial":return new W$t(e);case"Mesh":return new Y$t(e);case"Dummy":return new K$t}throw new Error(`Unknown IR type: ${e[0]}`)}const cpe={COLORED:1,UNCOLORED:2};class _K{static MAX_PATTERN_SIZE=3e3;constructor(t,i,n,a,l){this.operatorList=t[2],this.matrix=t[3],this.bbox=t[4],this.xstep=t[5],this.ystep=t[6],this.paintType=t[7],this.tilingType=t[8],this.color=i,this.ctx=n,this.canvasGraphicsFactory=a,this.baseTransform=l}createPatternCanvas(t){const i=this.operatorList,n=this.bbox,a=this.xstep,l=this.ystep,d=this.paintType,c=this.tilingType,p=this.color,u=this.canvasGraphicsFactory;_L("TilingType: "+c);const h=n[0],m=n[1],f=n[2],x=n[3],y=ko.singularValueDecompose2dScale(this.matrix),w=ko.singularValueDecompose2dScale(this.baseTransform),b=[y[0]*w[0],y[1]*w[1]],C=this.getSizeAndScale(a,this.ctx.canvas.width,b[0]),k=this.getSizeAndScale(l,this.ctx.canvas.height,b[1]),E=t.cachedCanvases.getCanvas("pattern",C.size,k.size,!0),S=E.context,j=u.createCanvasGraphics(S);j.groupLevel=t.groupLevel,this.setFillAndStrokeStyleToContext(j,d,p);let I=h,T=m,P=f,B=x;return h<0&&(I=0,P+=Math.abs(h)),m<0&&(T=0,B+=Math.abs(m)),S.translate(-(C.scale*I),-(k.scale*T)),j.transform(C.scale,0,0,k.scale,0,0),S.save(),this.clipBbox(j,I,T,P,B),j.baseTransform=mn(j.ctx),j.executeOperatorList(i),j.endDrawing(),{canvas:E.canvas,scaleX:C.scale,scaleY:k.scale,offsetX:I,offsetY:T}}getSizeAndScale(t,i,n){t=Math.abs(t);const a=Math.max(_K.MAX_PATTERN_SIZE,i);let l=Math.ceil(t*n);return l>=a?l=a:n=l/t,{scale:n,size:l}}clipBbox(t,i,n,a,l){const d=a-i,c=l-n;t.ctx.rect(i,n,d,c),t.current.updateRectMinMax(mn(t.ctx),[i,n,a,l]),t.clip(),t.endPath()}setFillAndStrokeStyleToContext(t,i,n){const a=t.ctx,l=t.current;switch(i){case cpe.COLORED:const d=this.ctx;a.fillStyle=d.fillStyle,a.strokeStyle=d.strokeStyle,l.fillColor=d.fillStyle,l.strokeColor=d.strokeStyle;break;case cpe.UNCOLORED:const c=ko.makeHexColor(n[0],n[1],n[2]);a.fillStyle=c,a.strokeStyle=c,l.fillColor=c,l.strokeColor=c;break;default:throw new C$t(`Unsupported paint type: ${i}`)}}getPattern(t,i,n,a){let l=n;a!==al.SHADING&&(l=ko.transform(l,i.baseTransform),this.matrix&&(l=ko.transform(l,this.matrix)));const d=this.createPatternCanvas(i);let c=new DOMMatrix(l);c=c.translate(d.offsetX,d.offsetY),c=c.scale(1/d.scaleX,1/d.scaleY);const p=t.createPattern(d.canvas,"repeat");return p.setTransform(c),p}}function Z$t({src:e,srcPos:t=0,dest:i,width:n,height:a,nonBlackColor:l=4294967295,inverseDecode:d=!1}){const c=Ql.isLittleEndian?4278190080:255,[p,u]=d?[l,c]:[c,l],h=n>>3,m=n&7,f=e.length;i=new Uint32Array(i.buffer);let x=0;for(let y=0;y<a;y++){for(const b=t+h;t<b;t++){const C=t<f?e[t]:255;i[x++]=C&128?u:p,i[x++]=C&64?u:p,i[x++]=C&32?u:p,i[x++]=C&16?u:p,i[x++]=C&8?u:p,i[x++]=C&4?u:p,i[x++]=C&2?u:p,i[x++]=C&1?u:p}if(m===0)continue;const w=t<f?e[t++]:255;for(let b=0;b<m;b++)i[x++]=w&1<<7-b?u:p}return{srcPos:t,destPos:x}}const ppe=16,upe=100,J$t=15,hpe=10,mpe=1e3,Dl=16;function X$t(e,t){if(e._removeMirroring)throw new Error("Context is already forwarding operations.");e.__originalSave=e.save,e.__originalRestore=e.restore,e.__originalRotate=e.rotate,e.__originalScale=e.scale,e.__originalTranslate=e.translate,e.__originalTransform=e.transform,e.__originalSetTransform=e.setTransform,e.__originalResetTransform=e.resetTransform,e.__originalClip=e.clip,e.__originalMoveTo=e.moveTo,e.__originalLineTo=e.lineTo,e.__originalBezierCurveTo=e.bezierCurveTo,e.__originalRect=e.rect,e.__originalClosePath=e.closePath,e.__originalBeginPath=e.beginPath,e._removeMirroring=()=>{e.save=e.__originalSave,e.restore=e.__originalRestore,e.rotate=e.__originalRotate,e.scale=e.__originalScale,e.translate=e.__originalTranslate,e.transform=e.__originalTransform,e.setTransform=e.__originalSetTransform,e.resetTransform=e.__originalResetTransform,e.clip=e.__originalClip,e.moveTo=e.__originalMoveTo,e.lineTo=e.__originalLineTo,e.bezierCurveTo=e.__originalBezierCurveTo,e.rect=e.__originalRect,e.closePath=e.__originalClosePath,e.beginPath=e.__originalBeginPath,delete e._removeMirroring},e.save=function(){t.save(),this.__originalSave()},e.restore=function(){t.restore(),this.__originalRestore()},e.translate=function(n,a){t.translate(n,a),this.__originalTranslate(n,a)},e.scale=function(n,a){t.scale(n,a),this.__originalScale(n,a)},e.transform=function(n,a,l,d,c,p){t.transform(n,a,l,d,c,p),this.__originalTransform(n,a,l,d,c,p)},e.setTransform=function(n,a,l,d,c,p){t.setTransform(n,a,l,d,c,p),this.__originalSetTransform(n,a,l,d,c,p)},e.resetTransform=function(){t.resetTransform(),this.__originalResetTransform()},e.rotate=function(n){t.rotate(n),this.__originalRotate(n)},e.clip=function(n){t.clip(n),this.__originalClip(n)},e.moveTo=function(i,n){t.moveTo(i,n),this.__originalMoveTo(i,n)},e.lineTo=function(i,n){t.lineTo(i,n),this.__originalLineTo(i,n)},e.bezierCurveTo=function(i,n,a,l,d,c){t.bezierCurveTo(i,n,a,l,d,c),this.__originalBezierCurveTo(i,n,a,l,d,c)},e.rect=function(i,n,a,l){t.rect(i,n,a,l),this.__originalRect(i,n,a,l)},e.closePath=function(){t.closePath(),this.__originalClosePath()},e.beginPath=function(){t.beginPath(),this.__originalBeginPath()}}class ekt{constructor(t){this.canvasFactory=t,this.cache=Object.create(null)}getCanvas(t,i,n){let a;return this.cache[t]!==void 0?(a=this.cache[t],this.canvasFactory.reset(a,i,n)):(a=this.canvasFactory.create(i,n),this.cache[t]=a),a}delete(t){delete this.cache[t]}clear(){for(const t in this.cache){const i=this.cache[t];this.canvasFactory.destroy(i),delete this.cache[t]}}}function aC(e,t,i,n,a,l,d,c,p,u){const[h,m,f,x,y,w]=mn(e);if(m===0&&f===0){const k=d*h+y,E=Math.round(k),S=c*x+w,j=Math.round(S),I=(d+p)*h+y,T=Math.abs(Math.round(I)-E)||1,P=(c+u)*x+w,B=Math.abs(Math.round(P)-j)||1;return e.setTransform(Math.sign(h),0,0,Math.sign(x),E,j),e.drawImage(t,i,n,a,l,0,0,T,B),e.setTransform(h,m,f,x,y,w),[T,B]}if(h===0&&x===0){const k=c*f+y,E=Math.round(k),S=d*m+w,j=Math.round(S),I=(c+u)*f+y,T=Math.abs(Math.round(I)-E)||1,P=(d+p)*m+w,B=Math.abs(Math.round(P)-j)||1;return e.setTransform(0,Math.sign(m),Math.sign(f),0,E,j),e.drawImage(t,i,n,a,l,0,0,B,T),e.setTransform(h,m,f,x,y,w),[B,T]}e.drawImage(t,i,n,a,l,d,c,p,u);const b=Math.hypot(h,m),C=Math.hypot(f,x);return[b*p,C*u]}function tkt(e){const{width:t,height:i}=e;if(t>mpe||i>mpe)return null;const n=1e3,a=new Uint8Array([0,2,4,0,1,0,5,4,8,10,0,8,0,2,1,0]),l=t+1;let d=new Uint8Array(l*(i+1)),c,p,u;const h=t+7&-8;let m=new Uint8Array(h*i),f=0;for(const C of e.data){let k=128;for(;k>0;)m[f++]=C&k?0:255,k>>=1}let x=0;for(f=0,m[f]!==0&&(d[0]=1,++x),p=1;p<t;p++)m[f]!==m[f+1]&&(d[p]=m[f]?2:1,++x),f++;for(m[f]!==0&&(d[p]=2,++x),c=1;c<i;c++){f=c*h,u=c*l,m[f-h]!==m[f]&&(d[u]=m[f]?1:8,++x);let C=(m[f]?4:0)+(m[f-h]?8:0);for(p=1;p<t;p++)C=(C>>2)+(m[f+1]?4:0)+(m[f-h+1]?8:0),a[C]&&(d[u+p]=a[C],++x),f++;if(m[f-h]!==m[f]&&(d[u+p]=m[f]?2:4,++x),x>n)return null}for(f=h*(i-1),u=c*l,m[f]!==0&&(d[u]=8,++x),p=1;p<t;p++)m[f]!==m[f+1]&&(d[u+p]=m[f]?4:8,++x),f++;if(m[f]!==0&&(d[u+p]=4,++x),x>n)return null;const y=new Int32Array([0,l,-1,0,-l,0,0,0,1]),w=new Path2D;for(c=0;x&&c<=i;c++){let C=c*l;const k=C+t;for(;C<k&&!d[C];)C++;if(C===k)continue;w.moveTo(C%l,c);const E=C;let S=d[C];do{const j=y[S];do C+=j;while(!d[C]);const I=d[C];I!==5&&I!==10?(S=I,d[C]=0):(S=I&51*S>>4,d[C]&=S>>2|S<<2),w.lineTo(C%l,C/l|0),d[C]||--x}while(E!==C);--c}return m=null,d=null,function(C){C.save(),C.scale(1/t,-1/i),C.translate(0,-i),C.fill(w),C.beginPath(),C.restore()}}class gpe{constructor(t,i){this.alphaIsShape=!1,this.fontSize=0,this.fontSizeScale=1,this.textMatrix=zje,this.textMatrixScale=1,this.fontMatrix=cU,this.leading=0,this.x=0,this.y=0,this.lineX=0,this.lineY=0,this.charSpacing=0,this.wordSpacing=0,this.textHScale=1,this.textRenderingMode=js.FILL,this.textRise=0,this.fillColor="#000000",this.strokeColor="#000000",this.patternFill=!1,this.fillAlpha=1,this.strokeAlpha=1,this.lineWidth=1,this.activeSMask=null,this.transferMaps="none",this.startNewPathAndClipBox([0,0,t,i])}clone(){const t=Object.create(this);return t.clipBox=this.clipBox.slice(),t}setCurrentPoint(t,i){this.x=t,this.y=i}updatePathMinMax(t,i,n){[i,n]=ko.applyTransform([i,n],t),this.minX=Math.min(this.minX,i),this.minY=Math.min(this.minY,n),this.maxX=Math.max(this.maxX,i),this.maxY=Math.max(this.maxY,n)}updateRectMinMax(t,i){const n=ko.applyTransform(i,t),a=ko.applyTransform(i.slice(2),t),l=ko.applyTransform([i[0],i[3]],t),d=ko.applyTransform([i[2],i[1]],t);this.minX=Math.min(this.minX,n[0],a[0],l[0],d[0]),this.minY=Math.min(this.minY,n[1],a[1],l[1],d[1]),this.maxX=Math.max(this.maxX,n[0],a[0],l[0],d[0]),this.maxY=Math.max(this.maxY,n[1],a[1],l[1],d[1])}updateScalingPathMinMax(t,i){ko.scaleMinMax(t,i),this.minX=Math.min(this.minX,i[0]),this.minY=Math.min(this.minY,i[1]),this.maxX=Math.max(this.maxX,i[2]),this.maxY=Math.max(this.maxY,i[3])}updateCurvePathMinMax(t,i,n,a,l,d,c,p,u,h){const m=ko.bezierBoundingBox(i,n,a,l,d,c,p,u,h);h||this.updateRectMinMax(t,m)}getPathBoundingBox(t=al.FILL,i=null){const n=[this.minX,this.minY,this.maxX,this.maxY];if(t===al.STROKE){i||jr("Stroke bounding box must include transform.");const a=ko.singularValueDecompose2dScale(i),l=a[0]*this.lineWidth/2,d=a[1]*this.lineWidth/2;n[0]-=l,n[1]-=d,n[2]+=l,n[3]+=d}return n}updateClipFromPath(){const t=ko.intersect(this.clipBox,this.getPathBoundingBox());this.startNewPathAndClipBox(t||[0,0,0,0])}isEmptyClip(){return this.minX===1/0}startNewPathAndClipBox(t){this.clipBox=t,this.minX=1/0,this.minY=1/0,this.maxX=0,this.maxY=0}getClippedPathBoundingBox(t=al.FILL,i=null){return ko.intersect(this.clipBox,this.getPathBoundingBox(t,i))}}function fpe(e,t){if(typeof ImageData<"u"&&t instanceof ImageData){e.putImageData(t,0,0);return}const i=t.height,n=t.width,a=i%Dl,l=(i-a)/Dl,d=a===0?l:l+1,c=e.createImageData(n,Dl);let p=0,u;const h=t.data,m=c.data;let f,x,y,w;if(t.kind===J$.GRAYSCALE_1BPP){const b=h.byteLength,C=new Uint32Array(m.buffer,0,m.byteLength>>2),k=C.length,E=n+7>>3,S=4294967295,j=Ql.isLittleEndian?4278190080:255;for(f=0;f<d;f++){for(y=f<l?Dl:a,u=0,x=0;x<y;x++){const I=b-p;let T=0;const P=I>E?n:I*8-7,B=P&-8;let D=0,F=0;for(;T<B;T+=8)F=h[p++],C[u++]=F&128?S:j,C[u++]=F&64?S:j,C[u++]=F&32?S:j,C[u++]=F&16?S:j,C[u++]=F&8?S:j,C[u++]=F&4?S:j,C[u++]=F&2?S:j,C[u++]=F&1?S:j;for(;T<P;T++)D===0&&(F=h[p++],D=128),C[u++]=F&D?S:j,D>>=1}for(;u<k;)C[u++]=0;e.putImageData(c,0,f*Dl)}}else if(t.kind===J$.RGBA_32BPP){for(x=0,w=n*Dl*4,f=0;f<l;f++)m.set(h.subarray(p,p+w)),p+=w,e.putImageData(c,0,x),x+=Dl;f<d&&(w=n*a*4,m.set(h.subarray(p,p+w)),e.putImageData(c,0,x))}else if(t.kind===J$.RGB_24BPP)for(y=Dl,w=n*y,f=0;f<d;f++){for(f>=l&&(y=a,w=n*y),u=0,x=w;x--;)m[u++]=h[p++],m[u++]=h[p++],m[u++]=h[p++],m[u++]=255;e.putImageData(c,0,f*Dl)}else throw new Error(`bad image kind: ${t.kind}`)}function xpe(e,t){if(t.bitmap){e.drawImage(t.bitmap,0,0);return}const i=t.height,n=t.width,a=i%Dl,l=(i-a)/Dl,d=a===0?l:l+1,c=e.createImageData(n,Dl);let p=0;const u=t.data,h=c.data;for(let m=0;m<d;m++){const f=m<l?Dl:a;({srcPos:p}=Z$t({src:u,srcPos:p,dest:h,width:n,height:f,nonBlackColor:0})),e.putImageData(c,0,m*Dl)}}function j9(e,t){const i=["strokeStyle","fillStyle","fillRule","globalAlpha","lineWidth","lineCap","lineJoin","miterLimit","globalCompositeOperation","font","filter"];for(const n of i)e[n]!==void 0&&(t[n]=e[n]);e.setLineDash!==void 0&&(t.setLineDash(e.getLineDash()),t.lineDashOffset=e.lineDashOffset)}function sC(e){if(e.strokeStyle=e.fillStyle="#000000",e.fillRule="nonzero",e.globalAlpha=1,e.lineWidth=1,e.lineCap="butt",e.lineJoin="miter",e.miterLimit=10,e.globalCompositeOperation="source-over",e.font="10px sans-serif",e.setLineDash!==void 0&&(e.setLineDash([]),e.lineDashOffset=0),!Rs){const{filter:t}=e;t!=="none"&&t!==""&&(e.filter="none")}}function ype(e,t){if(t)return!0;const i=ko.singularValueDecompose2dScale(e);i[0]=Math.fround(i[0]),i[1]=Math.fround(i[1]);const n=Math.fround((globalThis.devicePixelRatio||1)*f6.PDF_TO_CSS_UNITS);return i[0]<=n&&i[1]<=n}const okt=["butt","round","square"],ikt=["miter","round","bevel"],rkt={},wpe={};class N7{constructor(t,i,n,a,l,{optionalContentConfig:d,markedContentStack:c=null},p,u){this.ctx=t,this.current=new gpe(this.ctx.canvas.width,this.ctx.canvas.height),this.stateStack=[],this.pendingClip=null,this.pendingEOFill=!1,this.res=null,this.xobjs=null,this.commonObjs=i,this.objs=n,this.canvasFactory=a,this.filterFactory=l,this.groupStack=[],this.processingType3=null,this.baseTransform=null,this.baseTransformStack=[],this.groupLevel=0,this.smaskStack=[],this.smaskCounter=0,this.tempSMask=null,this.suspendedCtx=null,this.contentVisible=!0,this.markedContentStack=c||[],this.optionalContentConfig=d,this.cachedCanvases=new ekt(this.canvasFactory),this.cachedPatterns=new Map,this.annotationCanvasMap=p,this.viewportScale=1,this.outputScaleX=1,this.outputScaleY=1,this.pageColors=u,this._cachedScaleForStroking=[-1,0],this._cachedGetSinglePixelWidth=null,this._cachedBitmapsMap=new Map}getObject(t,i=null){return typeof t=="string"?t.startsWith("g_")?this.commonObjs.get(t):this.objs.get(t):i}beginDrawing({transform:t,viewport:i,transparency:n=!1,background:a=null}){const l=this.ctx.canvas.width,d=this.ctx.canvas.height,c=this.ctx.fillStyle;if(this.ctx.fillStyle=a||"#ffffff",this.ctx.fillRect(0,0,l,d),this.ctx.fillStyle=c,n){const p=this.cachedCanvases.getCanvas("transparent",l,d);this.compositeCtx=this.ctx,this.transparentCanvas=p.canvas,this.ctx=p.context,this.ctx.save(),this.ctx.transform(...mn(this.compositeCtx))}this.ctx.save(),sC(this.ctx),t&&(this.ctx.transform(...t),this.outputScaleX=t[0],this.outputScaleY=t[0]),this.ctx.transform(...i.transform),this.viewportScale=i.scale,this.baseTransform=mn(this.ctx)}executeOperatorList(t,i,n,a){const l=t.argsArray,d=t.fnArray;let c=i||0;const p=l.length;if(p===c)return c;const u=p-c>hpe&&typeof n=="function",h=u?Date.now()+J$t:0;let m=0;const f=this.commonObjs,x=this.objs;let y;for(;;){if(a!==void 0&&c===a.nextBreakPoint)return a.breakIt(c,n),c;if(y=d[c],y!==g1.dependency)this[y].apply(this,l[c]);else for(const w of l[c]){const b=w.startsWith("g_")?f:x;if(!b.has(w))return b.get(w,n),c}if(c++,c===p)return c;if(u&&++m>hpe){if(Date.now()>h)return n(),c;m=0}}}#e(){for(;this.stateStack.length||this.inSMaskMode;)this.restore();this.ctx.restore(),this.transparentCanvas&&(this.ctx=this.compositeCtx,this.ctx.save(),this.ctx.setTransform(1,0,0,1,0,0),this.ctx.drawImage(this.transparentCanvas,0,0),this.ctx.restore(),this.transparentCanvas=null)}endDrawing(){this.#e(),this.cachedCanvases.clear(),this.cachedPatterns.clear();for(const t of this._cachedBitmapsMap.values()){for(const i of t.values())typeof HTMLCanvasElement<"u"&&i instanceof HTMLCanvasElement&&(i.width=i.height=0);t.clear()}this._cachedBitmapsMap.clear(),this.#t()}#t(){if(this.pageColors){const t=this.filterFactory.addHCMFilter(this.pageColors.foreground,this.pageColors.background);if(t!=="none"){const i=this.ctx.filter;this.ctx.filter=t,this.ctx.drawImage(this.ctx.canvas,0,0),this.ctx.filter=i}}}_scaleImage(t,i){const n=t.width,a=t.height;let l=Math.max(Math.hypot(i[0],i[1]),1),d=Math.max(Math.hypot(i[2],i[3]),1),c=n,p=a,u="prescale1",h,m;for(;l>2&&c>1||d>2&&p>1;){let f=c,x=p;l>2&&c>1&&(f=c>=16384?Math.floor(c/2)-1||1:Math.ceil(c/2),l/=c/f),d>2&&p>1&&(x=p>=16384?Math.floor(p/2)-1||1:Math.ceil(p)/2,d/=p/x),h=this.cachedCanvases.getCanvas(u,f,x),m=h.context,m.clearRect(0,0,f,x),m.drawImage(t,0,0,c,p,0,0,f,x),t=h.canvas,c=f,p=x,u=u==="prescale1"?"prescale2":"prescale1"}return{img:t,paintWidth:c,paintHeight:p}}_createMaskCanvas(t){const i=this.ctx,{width:n,height:a}=t,l=this.current.fillColor,d=this.current.patternFill,c=mn(i);let p,u,h,m;if((t.bitmap||t.data)&&t.count>1){const P=t.bitmap||t.data.buffer;u=JSON.stringify(d?c:[c.slice(0,4),l]),p=this._cachedBitmapsMap.get(P),p||(p=new Map,this._cachedBitmapsMap.set(P,p));const B=p.get(u);if(B&&!d){const D=Math.round(Math.min(c[0],c[2])+c[4]),F=Math.round(Math.min(c[1],c[3])+c[5]);return{canvas:B,offsetX:D,offsetY:F}}h=B}h||(m=this.cachedCanvases.getCanvas("maskCanvas",n,a),xpe(m.context,t));let f=ko.transform(c,[1/n,0,0,-1/a,0,0]);f=ko.transform(f,[1,0,0,1,0,-a]);const[x,y,w,b]=ko.getAxialAlignedBoundingBox([0,0,n,a],f),C=Math.round(w-x)||1,k=Math.round(b-y)||1,E=this.cachedCanvases.getCanvas("fillCanvas",C,k),S=E.context,j=x,I=y;S.translate(-j,-I),S.transform(...f),h||(h=this._scaleImage(m.canvas,Ih(S)),h=h.img,p&&d&&p.set(u,h)),S.imageSmoothingEnabled=ype(mn(S),t.interpolate),aC(S,h,0,0,h.width,h.height,0,0,n,a),S.globalCompositeOperation="source-in";const T=ko.transform(Ih(S),[1,0,0,1,-j,-I]);return S.fillStyle=d?l.getPattern(i,this,T,al.FILL):l,S.fillRect(0,0,n,a),p&&!d&&(this.cachedCanvases.delete("fillCanvas"),p.set(u,E.canvas)),{canvas:E.canvas,offsetX:Math.round(j),offsetY:Math.round(I)}}setLineWidth(t){t!==this.current.lineWidth&&(this._cachedScaleForStroking[0]=-1),this.current.lineWidth=t,this.ctx.lineWidth=t}setLineCap(t){this.ctx.lineCap=okt[t]}setLineJoin(t){this.ctx.lineJoin=ikt[t]}setMiterLimit(t){this.ctx.miterLimit=t}setDash(t,i){const n=this.ctx;n.setLineDash!==void 0&&(n.setLineDash(t),n.lineDashOffset=i)}setRenderingIntent(t){}setFlatness(t){}setGState(t){for(const[i,n]of t)switch(i){case"LW":this.setLineWidth(n);break;case"LC":this.setLineCap(n);break;case"LJ":this.setLineJoin(n);break;case"ML":this.setMiterLimit(n);break;case"D":this.setDash(n[0],n[1]);break;case"RI":this.setRenderingIntent(n);break;case"FL":this.setFlatness(n);break;case"Font":this.setFont(n[0],n[1]);break;case"CA":this.current.strokeAlpha=n;break;case"ca":this.current.fillAlpha=n,this.ctx.globalAlpha=n;break;case"BM":this.ctx.globalCompositeOperation=n;break;case"SMask":this.current.activeSMask=n?this.tempSMask:null,this.tempSMask=null,this.checkSMaskState();break;case"TR":this.ctx.filter=this.current.transferMaps=this.filterFactory.addFilter(n);break}}get inSMaskMode(){return!!this.suspendedCtx}checkSMaskState(){const t=this.inSMaskMode;this.current.activeSMask&&!t?this.beginSMaskMode():!this.current.activeSMask&&t&&this.endSMaskMode()}beginSMaskMode(){if(this.inSMaskMode)throw new Error("beginSMaskMode called while already in smask mode");const t=this.ctx.canvas.width,i=this.ctx.canvas.height,n="smaskGroupAt"+this.groupLevel,a=this.cachedCanvases.getCanvas(n,t,i);this.suspendedCtx=this.ctx,this.ctx=a.context;const l=this.ctx;l.setTransform(...mn(this.suspendedCtx)),j9(this.suspendedCtx,l),X$t(l,this.suspendedCtx),this.setGState([["BM","source-over"],["ca",1],["CA",1]])}endSMaskMode(){if(!this.inSMaskMode)throw new Error("endSMaskMode called while not in smask mode");this.ctx._removeMirroring(),j9(this.ctx,this.suspendedCtx),this.ctx=this.suspendedCtx,this.suspendedCtx=null}compose(t){if(!this.current.activeSMask)return;t?(t[0]=Math.floor(t[0]),t[1]=Math.floor(t[1]),t[2]=Math.ceil(t[2]),t[3]=Math.ceil(t[3])):t=[0,0,this.ctx.canvas.width,this.ctx.canvas.height];const i=this.current.activeSMask,n=this.suspendedCtx;this.composeSMask(n,i,this.ctx,t),this.ctx.save(),this.ctx.setTransform(1,0,0,1,0,0),this.ctx.clearRect(0,0,this.ctx.canvas.width,this.ctx.canvas.height),this.ctx.restore()}composeSMask(t,i,n,a){const l=a[0],d=a[1],c=a[2]-l,p=a[3]-d;c===0||p===0||(this.genericComposeSMask(i.context,n,c,p,i.subtype,i.backdrop,i.transferMap,l,d,i.offsetX,i.offsetY),t.save(),t.globalAlpha=1,t.globalCompositeOperation="source-over",t.setTransform(1,0,0,1,0,0),t.drawImage(n.canvas,0,0),t.restore())}genericComposeSMask(t,i,n,a,l,d,c,p,u,h,m){let f=t.canvas,x=p-h,y=u-m;if(d){if(x<0||y<0||x+n>f.width||y+a>f.height){const b=this.cachedCanvases.getCanvas("maskExtension",n,a),C=b.context;C.drawImage(f,-x,-y),d.some(k=>k!==0)&&(C.globalCompositeOperation="destination-atop",C.fillStyle=ko.makeHexColor(...d),C.fillRect(0,0,n,a),C.globalCompositeOperation="source-over"),f=b.canvas,x=y=0}else if(d.some(b=>b!==0)){t.save(),t.globalAlpha=1,t.setTransform(1,0,0,1,0,0);const b=new Path2D;b.rect(x,y,n,a),t.clip(b),t.globalCompositeOperation="destination-atop",t.fillStyle=ko.makeHexColor(...d),t.fillRect(x,y,n,a),t.restore()}}i.save(),i.globalAlpha=1,i.setTransform(1,0,0,1,0,0),l==="Alpha"&&c?i.filter=this.filterFactory.addAlphaFilter(c):l==="Luminosity"&&(i.filter=this.filterFactory.addLuminosityFilter(c));const w=new Path2D;w.rect(p,u,n,a),i.clip(w),i.globalCompositeOperation="destination-in",i.drawImage(f,x,y,n,a,p,u,n,a),i.restore()}save(){this.inSMaskMode?(j9(this.ctx,this.suspendedCtx),this.suspendedCtx.save()):this.ctx.save();const t=this.current;this.stateStack.push(t),this.current=t.clone()}restore(){this.stateStack.length===0&&this.inSMaskMode&&this.endSMaskMode(),this.stateStack.length!==0&&(this.current=this.stateStack.pop(),this.inSMaskMode?(this.suspendedCtx.restore(),j9(this.suspendedCtx,this.ctx)):this.ctx.restore(),this.checkSMaskState(),this.pendingClip=null,this._cachedScaleForStroking[0]=-1,this._cachedGetSinglePixelWidth=null)}transform(t,i,n,a,l,d){this.ctx.transform(t,i,n,a,l,d),this._cachedScaleForStroking[0]=-1,this._cachedGetSinglePixelWidth=null}constructPath(t,i,n){const a=this.ctx,l=this.current;let d=l.x,c=l.y,p,u;const h=mn(a),m=h[0]===0&&h[3]===0||h[1]===0&&h[2]===0,f=m?n.slice(0):null;for(let x=0,y=0,w=t.length;x<w;x++)switch(t[x]|0){case g1.rectangle:d=i[y++],c=i[y++];const b=i[y++],C=i[y++],k=d+b,E=c+C;a.moveTo(d,c),b===0||C===0?a.lineTo(k,E):(a.lineTo(k,c),a.lineTo(k,E),a.lineTo(d,E)),m||l.updateRectMinMax(h,[d,c,k,E]),a.closePath();break;case g1.moveTo:d=i[y++],c=i[y++],a.moveTo(d,c),m||l.updatePathMinMax(h,d,c);break;case g1.lineTo:d=i[y++],c=i[y++],a.lineTo(d,c),m||l.updatePathMinMax(h,d,c);break;case g1.curveTo:p=d,u=c,d=i[y+4],c=i[y+5],a.bezierCurveTo(i[y],i[y+1],i[y+2],i[y+3],d,c),l.updateCurvePathMinMax(h,p,u,i[y],i[y+1],i[y+2],i[y+3],d,c,f),y+=6;break;case g1.curveTo2:p=d,u=c,a.bezierCurveTo(d,c,i[y],i[y+1],i[y+2],i[y+3]),l.updateCurvePathMinMax(h,p,u,d,c,i[y],i[y+1],i[y+2],i[y+3],f),d=i[y+2],c=i[y+3],y+=4;break;case g1.curveTo3:p=d,u=c,d=i[y+2],c=i[y+3],a.bezierCurveTo(i[y],i[y+1],d,c,d,c),l.updateCurvePathMinMax(h,p,u,i[y],i[y+1],d,c,d,c,f),y+=4;break;case g1.closePath:a.closePath();break}m&&l.updateScalingPathMinMax(h,f),l.setCurrentPoint(d,c)}closePath(){this.ctx.closePath()}stroke(t=!0){const i=this.ctx,n=this.current.strokeColor;i.globalAlpha=this.current.strokeAlpha,this.contentVisible&&(typeof n=="object"&&n?.getPattern?(i.save(),i.strokeStyle=n.getPattern(i,this,Ih(i),al.STROKE),this.rescaleAndStroke(!1),i.restore()):this.rescaleAndStroke(!0)),t&&this.consumePath(this.current.getClippedPathBoundingBox()),i.globalAlpha=this.current.fillAlpha}closeStroke(){this.closePath(),this.stroke()}fill(t=!0){const i=this.ctx,n=this.current.fillColor,a=this.current.patternFill;let l=!1;a&&(i.save(),i.fillStyle=n.getPattern(i,this,Ih(i),al.FILL),l=!0);const d=this.current.getClippedPathBoundingBox();this.contentVisible&&d!==null&&(this.pendingEOFill?(i.fill("evenodd"),this.pendingEOFill=!1):i.fill()),l&&i.restore(),t&&this.consumePath(d)}eoFill(){this.pendingEOFill=!0,this.fill()}fillStroke(){this.fill(!1),this.stroke(!1),this.consumePath()}eoFillStroke(){this.pendingEOFill=!0,this.fillStroke()}closeFillStroke(){this.closePath(),this.fillStroke()}closeEOFillStroke(){this.pendingEOFill=!0,this.closePath(),this.fillStroke()}endPath(){this.consumePath()}clip(){this.pendingClip=rkt}eoClip(){this.pendingClip=wpe}beginText(){this.current.textMatrix=zje,this.current.textMatrixScale=1,this.current.x=this.current.lineX=0,this.current.y=this.current.lineY=0}endText(){const t=this.pendingTextPaths,i=this.ctx;if(t===void 0){i.beginPath();return}i.save(),i.beginPath();for(const n of t)i.setTransform(...n.transform),i.translate(n.x,n.y),n.addToPath(i,n.fontSize);i.restore(),i.clip(),i.beginPath(),delete this.pendingTextPaths}setCharSpacing(t){this.current.charSpacing=t}setWordSpacing(t){this.current.wordSpacing=t}setHScale(t){this.current.textHScale=t/100}setLeading(t){this.current.leading=-t}setFont(t,i){const n=this.commonObjs.get(t),a=this.current;if(!n)throw new Error(`Can't find font for ${t}`);if(a.fontMatrix=n.fontMatrix||cU,(a.fontMatrix[0]===0||a.fontMatrix[3]===0)&&Pi("Invalid font matrix for font "+t),i<0?(i=-i,a.fontDirection=-1):a.fontDirection=1,this.current.font=n,this.current.fontSize=i,n.isType3Font)return;const l=n.loadedName||"sans-serif",d=n.systemFontInfo?.css||`"${l}", ${n.fallbackName}`;let c="normal";n.black?c="900":n.bold&&(c="bold");const p=n.italic?"italic":"normal";let u=i;i<ppe?u=ppe:i>upe&&(u=upe),this.current.fontSizeScale=i/u,this.ctx.font=`${p} ${c} ${u}px ${d}`}setTextRenderingMode(t){this.current.textRenderingMode=t}setTextRise(t){this.current.textRise=t}moveText(t,i){this.current.x=this.current.lineX+=t,this.current.y=this.current.lineY+=i}setLeadingMoveText(t,i){this.setLeading(-i),this.moveText(t,i)}setTextMatrix(t,i,n,a,l,d){this.current.textMatrix=[t,i,n,a,l,d],this.current.textMatrixScale=Math.hypot(t,i),this.current.x=this.current.lineX=0,this.current.y=this.current.lineY=0}nextLine(){this.moveText(0,this.current.leading)}paintChar(t,i,n,a){const l=this.ctx,d=this.current,c=d.font,p=d.textRenderingMode,u=d.fontSize/d.fontSizeScale,h=p&js.FILL_STROKE_MASK,m=!!(p&js.ADD_TO_PATH_FLAG),f=d.patternFill&&!c.missingFile;let x;(c.disableFontFace||m||f)&&(x=c.getPathGenerator(this.commonObjs,t)),c.disableFontFace||f?(l.save(),l.translate(i,n),l.beginPath(),x(l,u),a&&l.setTransform(...a),(h===js.FILL||h===js.FILL_STROKE)&&l.fill(),(h===js.STROKE||h===js.FILL_STROKE)&&l.stroke(),l.restore()):((h===js.FILL||h===js.FILL_STROKE)&&l.fillText(t,i,n),(h===js.STROKE||h===js.FILL_STROKE)&&l.strokeText(t,i,n)),m&&(this.pendingTextPaths||=[]).push({transform:mn(l),x:i,y:n,fontSize:u,addToPath:x})}get isFontSubpixelAAEnabled(){const{context:t}=this.cachedCanvases.getCanvas("isFontSubpixelAAEnabled",10,10);t.scale(1.5,1),t.fillText("I",0,10);const i=t.getImageData(0,0,10,10).data;let n=!1;for(let a=3;a<i.length;a+=4)if(i[a]>0&&i[a]<255){n=!0;break}return nr(this,"isFontSubpixelAAEnabled",n)}showText(t){const i=this.current,n=i.font;if(n.isType3Font)return this.showType3Text(t);const a=i.fontSize;if(a===0)return;const l=this.ctx,d=i.fontSizeScale,c=i.charSpacing,p=i.wordSpacing,u=i.fontDirection,h=i.textHScale*u,m=t.length,f=n.vertical,x=f?1:-1,y=n.defaultVMetrics,w=a*i.fontMatrix[0],b=i.textRenderingMode===js.FILL&&!n.disableFontFace&&!i.patternFill;l.save(),l.transform(...i.textMatrix),l.translate(i.x,i.y+i.textRise),u>0?l.scale(h,-1):l.scale(h,1);let C;if(i.patternFill){l.save();const I=i.fillColor.getPattern(l,this,Ih(l),al.FILL);C=mn(l),l.restore(),l.fillStyle=I}let k=i.lineWidth;const E=i.textMatrixScale;if(E===0||k===0){const I=i.textRenderingMode&js.FILL_STROKE_MASK;(I===js.STROKE||I===js.FILL_STROKE)&&(k=this.getSinglePixelWidth())}else k/=E;if(d!==1&&(l.scale(d,d),k/=d),l.lineWidth=k,n.isInvalidPDFjsFont){const I=[];let T=0;for(const P of t)I.push(P.unicode),T+=P.width;l.fillText(I.join(""),0,0),i.x+=T*w*h,l.restore(),this.compose();return}let S=0,j;for(j=0;j<m;++j){const I=t[j];if(typeof I=="number"){S+=x*I*a/1e3;continue}let T=!1;const P=(I.isSpace?p:0)+c,B=I.fontChar,D=I.accent;let F,Y,q=I.width;if(f){const V=I.vmetric||y,H=-(I.vmetric?V[1]:q*.5)*w,N=V[2]*w;q=V?-V[0]:q,F=H/d,Y=(S+N)/d}else F=S/d,Y=0;if(n.remeasure&&q>0){const V=l.measureText(B).width*1e3/a*d;if(q<V&&this.isFontSubpixelAAEnabled){const H=q/V;T=!0,l.save(),l.scale(H,1),F/=H}else q!==V&&(F+=(q-V)/2e3*a/d)}if(this.contentVisible&&(I.isInFont||n.missingFile)){if(b&&!D)l.fillText(B,F,Y);else if(this.paintChar(B,F,Y,C),D){const V=F+a*D.offset.x/d,H=Y-a*D.offset.y/d;this.paintChar(D.fontChar,V,H,C)}}const Z=f?q*w-P*u:q*w+P*u;S+=Z,T&&l.restore()}f?i.y-=S:i.x+=S*h,l.restore(),this.compose()}showType3Text(t){const i=this.ctx,n=this.current,a=n.font,l=n.fontSize,d=n.fontDirection,c=a.vertical?1:-1,p=n.charSpacing,u=n.wordSpacing,h=n.textHScale*d,m=n.fontMatrix||cU,f=t.length,x=n.textRenderingMode===js.INVISIBLE;let y,w,b,C;if(!(x||l===0)){for(this._cachedScaleForStroking[0]=-1,this._cachedGetSinglePixelWidth=null,i.save(),i.transform(...n.textMatrix),i.translate(n.x,n.y),i.scale(h,d),y=0;y<f;++y){if(w=t[y],typeof w=="number"){C=c*w*l/1e3,this.ctx.translate(C,0),n.x+=C*h;continue}const k=(w.isSpace?u:0)+p,E=a.charProcOperatorList[w.operatorListId];if(!E){Pi(`Type3 character "${w.operatorListId}" is not available.`);continue}this.contentVisible&&(this.processingType3=w,this.save(),i.scale(l,l),i.transform(...m),this.executeOperatorList(E),this.restore()),b=ko.applyTransform([w.width,0],m)[0]*l+k,i.translate(b,0),n.x+=b*h}i.restore(),this.processingType3=null}}setCharWidth(t,i){}setCharWidthAndBounds(t,i,n,a,l,d){this.ctx.rect(n,a,l-n,d-a),this.ctx.clip(),this.endPath()}getColorN_Pattern(t){let i;if(t[0]==="TilingPattern"){const n=t[1],a=this.baseTransform||mn(this.ctx),l={createCanvasGraphics:d=>new N7(d,this.commonObjs,this.objs,this.canvasFactory,this.filterFactory,{optionalContentConfig:this.optionalContentConfig,markedContentStack:this.markedContentStack})};i=new _K(t,n,this.ctx,l,a)}else i=this._getPattern(t[1],t[2]);return i}setStrokeColorN(){this.current.strokeColor=this.getColorN_Pattern(arguments)}setFillColorN(){this.current.fillColor=this.getColorN_Pattern(arguments),this.current.patternFill=!0}setStrokeRGBColor(t,i,n){const a=ko.makeHexColor(t,i,n);this.ctx.strokeStyle=a,this.current.strokeColor=a}setFillRGBColor(t,i,n){const a=ko.makeHexColor(t,i,n);this.ctx.fillStyle=a,this.current.fillColor=a,this.current.patternFill=!1}_getPattern(t,i=null){let n;return this.cachedPatterns.has(t)?n=this.cachedPatterns.get(t):(n=q$t(this.getObject(t)),this.cachedPatterns.set(t,n)),i&&(n.matrix=i),n}shadingFill(t){if(!this.contentVisible)return;const i=this.ctx;this.save();const n=this._getPattern(t);i.fillStyle=n.getPattern(i,this,Ih(i),al.SHADING);const a=Ih(i);if(a){const{width:l,height:d}=i.canvas,[c,p,u,h]=ko.getAxialAlignedBoundingBox([0,0,l,d],a);this.ctx.fillRect(c,p,u-c,h-p)}else this.ctx.fillRect(-1e10,-1e10,2e10,2e10);this.compose(this.current.getClippedPathBoundingBox()),this.restore()}beginInlineImage(){jr("Should not call beginInlineImage")}beginImageData(){jr("Should not call beginImageData")}paintFormXObjectBegin(t,i){if(this.contentVisible&&(this.save(),this.baseTransformStack.push(this.baseTransform),t&&this.transform(...t),this.baseTransform=mn(this.ctx),i)){const n=i[2]-i[0],a=i[3]-i[1];this.ctx.rect(i[0],i[1],n,a),this.current.updateRectMinMax(mn(this.ctx),i),this.clip(),this.endPath()}}paintFormXObjectEnd(){this.contentVisible&&(this.restore(),this.baseTransform=this.baseTransformStack.pop())}beginGroup(t){if(!this.contentVisible)return;this.save(),this.inSMaskMode&&(this.endSMaskMode(),this.current.activeSMask=null);const i=this.ctx;t.isolated||_L("TODO: Support non-isolated groups."),t.knockout&&Pi("Knockout groups not supported.");const n=mn(i);if(t.matrix&&i.transform(...t.matrix),!t.bbox)throw new Error("Bounding box is required.");let a=ko.getAxialAlignedBoundingBox(t.bbox,mn(i));const l=[0,0,i.canvas.width,i.canvas.height];a=ko.intersect(a,l)||[0,0,0,0];const d=Math.floor(a[0]),c=Math.floor(a[1]),p=Math.max(Math.ceil(a[2])-d,1),u=Math.max(Math.ceil(a[3])-c,1);this.current.startNewPathAndClipBox([0,0,p,u]);let h="groupAt"+this.groupLevel;t.smask&&(h+="_smask_"+this.smaskCounter++%2);const m=this.cachedCanvases.getCanvas(h,p,u),f=m.context;f.translate(-d,-c),f.transform(...n),t.smask?this.smaskStack.push({canvas:m.canvas,context:f,offsetX:d,offsetY:c,subtype:t.smask.subtype,backdrop:t.smask.backdrop,transferMap:t.smask.transferMap||null,startTransformInverse:null}):(i.setTransform(1,0,0,1,0,0),i.translate(d,c),i.save()),j9(i,f),this.ctx=f,this.setGState([["BM","source-over"],["ca",1],["CA",1]]),this.groupStack.push(i),this.groupLevel++}endGroup(t){if(!this.contentVisible)return;this.groupLevel--;const i=this.ctx,n=this.groupStack.pop();if(this.ctx=n,this.ctx.imageSmoothingEnabled=!1,t.smask)this.tempSMask=this.smaskStack.pop(),this.restore();else{this.ctx.restore();const a=mn(this.ctx);this.restore(),this.ctx.save(),this.ctx.setTransform(...a);const l=ko.getAxialAlignedBoundingBox([0,0,i.canvas.width,i.canvas.height],a);this.ctx.drawImage(i.canvas,0,0),this.ctx.restore(),this.compose(l)}}beginAnnotation(t,i,n,a,l){if(this.#e(),sC(this.ctx),this.ctx.save(),this.save(),this.baseTransform&&this.ctx.setTransform(...this.baseTransform),i){const d=i[2]-i[0],c=i[3]-i[1];if(l&&this.annotationCanvasMap){n=n.slice(),n[4]-=i[0],n[5]-=i[1],i=i.slice(),i[0]=i[1]=0,i[2]=d,i[3]=c;const[p,u]=ko.singularValueDecompose2dScale(mn(this.ctx)),{viewportScale:h}=this,m=Math.ceil(d*this.outputScaleX*h),f=Math.ceil(c*this.outputScaleY*h);this.annotationCanvas=this.canvasFactory.create(m,f);const{canvas:x,context:y}=this.annotationCanvas;this.annotationCanvasMap.set(t,x),this.annotationCanvas.savedCtx=this.ctx,this.ctx=y,this.ctx.save(),this.ctx.setTransform(p,0,0,-u,0,c*u),sC(this.ctx)}else sC(this.ctx),this.ctx.rect(i[0],i[1],d,c),this.ctx.clip(),this.endPath()}this.current=new gpe(this.ctx.canvas.width,this.ctx.canvas.height),this.transform(...n),this.transform(...a)}endAnnotation(){this.annotationCanvas&&(this.ctx.restore(),this.#t(),this.ctx=this.annotationCanvas.savedCtx,delete this.annotationCanvas.savedCtx,delete this.annotationCanvas)}paintImageMaskXObject(t){if(!this.contentVisible)return;const i=t.count;t=this.getObject(t.data,t),t.count=i;const n=this.ctx,a=this.processingType3;if(a&&(a.compiled===void 0&&(a.compiled=tkt(t)),a.compiled)){a.compiled(n);return}const l=this._createMaskCanvas(t),d=l.canvas;n.save(),n.setTransform(1,0,0,1,0,0),n.drawImage(d,l.offsetX,l.offsetY),n.restore(),this.compose()}paintImageMaskXObjectRepeat(t,i,n=0,a=0,l,d){if(!this.contentVisible)return;t=this.getObject(t.data,t);const c=this.ctx;c.save();const p=mn(c);c.transform(i,n,a,l,0,0);const u=this._createMaskCanvas(t);c.setTransform(1,0,0,1,u.offsetX-p[4],u.offsetY-p[5]);for(let h=0,m=d.length;h<m;h+=2){const f=ko.transform(p,[i,n,a,l,d[h],d[h+1]]),[x,y]=ko.applyTransform([0,0],f);c.drawImage(u.canvas,x,y)}c.restore(),this.compose()}paintImageMaskXObjectGroup(t){if(!this.contentVisible)return;const i=this.ctx,n=this.current.fillColor,a=this.current.patternFill;for(const l of t){const{data:d,width:c,height:p,transform:u}=l,h=this.cachedCanvases.getCanvas("maskCanvas",c,p),m=h.context;m.save();const f=this.getObject(d,l);xpe(m,f),m.globalCompositeOperation="source-in",m.fillStyle=a?n.getPattern(m,this,Ih(i),al.FILL):n,m.fillRect(0,0,c,p),m.restore(),i.save(),i.transform(...u),i.scale(1,-1),aC(i,h.canvas,0,0,c,p,0,-1,1,1),i.restore()}this.compose()}paintImageXObject(t){if(!this.contentVisible)return;const i=this.getObject(t);if(!i){Pi("Dependent image isn't ready yet");return}this.paintInlineImageXObject(i)}paintImageXObjectRepeat(t,i,n,a){if(!this.contentVisible)return;const l=this.getObject(t);if(!l){Pi("Dependent image isn't ready yet");return}const d=l.width,c=l.height,p=[];for(let u=0,h=a.length;u<h;u+=2)p.push({transform:[i,0,0,n,a[u],a[u+1]],x:0,y:0,w:d,h:c});this.paintInlineImageXObjectGroup(l,p)}applyTransferMapsToCanvas(t){return this.current.transferMaps!=="none"&&(t.filter=this.current.transferMaps,t.drawImage(t.canvas,0,0),t.filter="none"),t.canvas}applyTransferMapsToBitmap(t){if(this.current.transferMaps==="none")return t.bitmap;const{bitmap:i,width:n,height:a}=t,l=this.cachedCanvases.getCanvas("inlineImage",n,a),d=l.context;return d.filter=this.current.transferMaps,d.drawImage(i,0,0),d.filter="none",l.canvas}paintInlineImageXObject(t){if(!this.contentVisible)return;const i=t.width,n=t.height,a=this.ctx;if(this.save(),!Rs){const{filter:c}=a;c!=="none"&&c!==""&&(a.filter="none")}a.scale(1/i,-1/n);let l;if(t.bitmap)l=this.applyTransferMapsToBitmap(t);else if(typeof HTMLElement=="function"&&t instanceof HTMLElement||!t.data)l=t;else{const p=this.cachedCanvases.getCanvas("inlineImage",i,n).context;fpe(p,t),l=this.applyTransferMapsToCanvas(p)}const d=this._scaleImage(l,Ih(a));a.imageSmoothingEnabled=ype(mn(a),t.interpolate),aC(a,d.img,0,0,d.paintWidth,d.paintHeight,0,-n,i,n),this.compose(),this.restore()}paintInlineImageXObjectGroup(t,i){if(!this.contentVisible)return;const n=this.ctx;let a;if(t.bitmap)a=t.bitmap;else{const l=t.width,d=t.height,p=this.cachedCanvases.getCanvas("inlineImage",l,d).context;fpe(p,t),a=this.applyTransferMapsToCanvas(p)}for(const l of i)n.save(),n.transform(...l.transform),n.scale(1,-1),aC(n,a,l.x,l.y,l.w,l.h,0,-1,1,1),n.restore();this.compose()}paintSolidColorImageMask(){this.contentVisible&&(this.ctx.fillRect(0,0,1,1),this.compose())}markPoint(t){}markPointProps(t,i){}beginMarkedContent(t){this.markedContentStack.push({visible:!0})}beginMarkedContentProps(t,i){t==="OC"?this.markedContentStack.push({visible:this.optionalContentConfig.isVisible(i)}):this.markedContentStack.push({visible:!0}),this.contentVisible=this.isContentVisible()}endMarkedContent(){this.markedContentStack.pop(),this.contentVisible=this.isContentVisible()}beginCompat(){}endCompat(){}consumePath(t){const i=this.current.isEmptyClip();this.pendingClip&&this.current.updateClipFromPath(),this.pendingClip||this.compose(t);const n=this.ctx;this.pendingClip&&(i||(this.pendingClip===wpe?n.clip("evenodd"):n.clip()),this.pendingClip=null),this.current.startNewPathAndClipBox(this.current.clipBox),n.beginPath()}getSinglePixelWidth(){if(!this._cachedGetSinglePixelWidth){const t=mn(this.ctx);if(t[1]===0&&t[2]===0)this._cachedGetSinglePixelWidth=1/Math.min(Math.abs(t[0]),Math.abs(t[3]));else{const i=Math.abs(t[0]*t[3]-t[2]*t[1]),n=Math.hypot(t[0],t[2]),a=Math.hypot(t[1],t[3]);this._cachedGetSinglePixelWidth=Math.max(n,a)/i}}return this._cachedGetSinglePixelWidth}getScaleForStroking(){if(this._cachedScaleForStroking[0]===-1){const{lineWidth:t}=this.current,{a:i,b:n,c:a,d:l}=this.ctx.getTransform();let d,c;if(n===0&&a===0){const p=Math.abs(i),u=Math.abs(l);if(p===u)if(t===0)d=c=1/p;else{const h=p*t;d=c=h<1?1/h:1}else if(t===0)d=1/p,c=1/u;else{const h=p*t,m=u*t;d=h<1?1/h:1,c=m<1?1/m:1}}else{const p=Math.abs(i*l-n*a),u=Math.hypot(i,n),h=Math.hypot(a,l);if(t===0)d=h/p,c=u/p;else{const m=t*p;d=h>m?h/m:1,c=u>m?u/m:1}}this._cachedScaleForStroking[0]=d,this._cachedScaleForStroking[1]=c}return this._cachedScaleForStroking}rescaleAndStroke(t){const{ctx:i}=this,{lineWidth:n}=this.current,[a,l]=this.getScaleForStroking();if(i.lineWidth=n||1,a===1&&l===1){i.stroke();return}const d=i.getLineDash();if(t&&i.save(),i.scale(a,l),d.length>0){const c=Math.max(a,l);i.setLineDash(d.map(p=>p/c)),i.lineDashOffset/=c}i.stroke(),t&&i.restore()}isContentVisible(){for(let t=this.markedContentStack.length-1;t>=0;t--)if(!this.markedContentStack[t].visible)return!1;return!0}}for(const e in g1)N7.prototype[e]!==void 0&&(N7.prototype[g1[e]]=N7.prototype[e]);class dw{static#e=null;static#t="";static get workerPort(){return this.#e}static set workerPort(t){if(!(typeof Worker<"u"&&t instanceof Worker)&&t!==null)throw new Error("Invalid `workerPort` type.");this.#e=t}static get workerSrc(){return this.#t}static set workerSrc(t){if(typeof t!="string")throw new Error("Invalid `workerSrc` type.");this.#t=t}}const lC={DATA:1,ERROR:2},Jn={CANCEL:1,CANCEL_COMPLETE:2,CLOSE:3,ENQUEUE:4,ERROR:5,PULL:6,PULL_COMPLETE:7,START_COMPLETE:8};function wd(e){switch(e instanceof Error||typeof e=="object"&&e!==null||jr('wrapReason: Expected "reason" to be a (possibly cloned) Error.'),e.name){case"AbortException":return new K4(e.message);case"MissingPDFException":return new Y4(e.message);case"PasswordException":return new uU(e.message,e.code);case"UnexpectedResponseException":return new VL(e.message,e.status);case"UnknownErrorException":return new hU(e.message,e.details);default:return new hU(e.message,e.toString())}}class Px{constructor(t,i,n){this.sourceName=t,this.targetName=i,this.comObj=n,this.callbackId=1,this.streamId=1,this.streamSinks=Object.create(null),this.streamControllers=Object.create(null),this.callbackCapabilities=Object.create(null),this.actionHandler=Object.create(null),this._onComObjOnMessage=a=>{const l=a.data;if(l.targetName!==this.sourceName)return;if(l.stream){this.#t(l);return}if(l.callback){const c=l.callbackId,p=this.callbackCapabilities[c];if(!p)throw new Error(`Cannot resolve callback ${c}`);if(delete this.callbackCapabilities[c],l.callback===lC.DATA)p.resolve(l.data);else if(l.callback===lC.ERROR)p.reject(wd(l.reason));else throw new Error("Unexpected callback case");return}const d=this.actionHandler[l.action];if(!d)throw new Error(`Unknown action from worker: ${l.action}`);if(l.callbackId){const c=this.sourceName,p=l.sourceName;new Promise(function(u){u(d(l.data))}).then(function(u){n.postMessage({sourceName:c,targetName:p,callback:lC.DATA,callbackId:l.callbackId,data:u})},function(u){n.postMessage({sourceName:c,targetName:p,callback:lC.ERROR,callbackId:l.callbackId,reason:wd(u)})});return}if(l.streamId){this.#e(l);return}d(l.data)},n.addEventListener("message",this._onComObjOnMessage)}on(t,i){const n=this.actionHandler;if(n[t])throw new Error(`There is already an actionName called "${t}"`);n[t]=i}send(t,i,n){this.comObj.postMessage({sourceName:this.sourceName,targetName:this.targetName,action:t,data:i},n)}sendWithPromise(t,i,n){const a=this.callbackId++,l=Promise.withResolvers();this.callbackCapabilities[a]=l;try{this.comObj.postMessage({sourceName:this.sourceName,targetName:this.targetName,action:t,callbackId:a,data:i},n)}catch(d){l.reject(d)}return l.promise}sendWithStream(t,i,n,a){const l=this.streamId++,d=this.sourceName,c=this.targetName,p=this.comObj;return new ReadableStream({start:u=>{const h=Promise.withResolvers();return this.streamControllers[l]={controller:u,startCall:h,pullCall:null,cancelCall:null,isClosed:!1},p.postMessage({sourceName:d,targetName:c,action:t,streamId:l,data:i,desiredSize:u.desiredSize},a),h.promise},pull:u=>{const h=Promise.withResolvers();return this.streamControllers[l].pullCall=h,p.postMessage({sourceName:d,targetName:c,stream:Jn.PULL,streamId:l,desiredSize:u.desiredSize}),h.promise},cancel:u=>{Ca(u instanceof Error,"cancel must have a valid reason");const h=Promise.withResolvers();return this.streamControllers[l].cancelCall=h,this.streamControllers[l].isClosed=!0,p.postMessage({sourceName:d,targetName:c,stream:Jn.CANCEL,streamId:l,reason:wd(u)}),h.promise}},n)}#e(t){const i=t.streamId,n=this.sourceName,a=t.sourceName,l=this.comObj,d=this,c=this.actionHandler[t.action],p={enqueue(u,h=1,m){if(this.isCancelled)return;const f=this.desiredSize;this.desiredSize-=h,f>0&&this.desiredSize<=0&&(this.sinkCapability=Promise.withResolvers(),this.ready=this.sinkCapability.promise),l.postMessage({sourceName:n,targetName:a,stream:Jn.ENQUEUE,streamId:i,chunk:u},m)},close(){this.isCancelled||(this.isCancelled=!0,l.postMessage({sourceName:n,targetName:a,stream:Jn.CLOSE,streamId:i}),delete d.streamSinks[i])},error(u){Ca(u instanceof Error,"error must have a valid reason"),!this.isCancelled&&(this.isCancelled=!0,l.postMessage({sourceName:n,targetName:a,stream:Jn.ERROR,streamId:i,reason:wd(u)}))},sinkCapability:Promise.withResolvers(),onPull:null,onCancel:null,isCancelled:!1,desiredSize:t.desiredSize,ready:null};p.sinkCapability.resolve(),p.ready=p.sinkCapability.promise,this.streamSinks[i]=p,new Promise(function(u){u(c(t.data,p))}).then(function(){l.postMessage({sourceName:n,targetName:a,stream:Jn.START_COMPLETE,streamId:i,success:!0})},function(u){l.postMessage({sourceName:n,targetName:a,stream:Jn.START_COMPLETE,streamId:i,reason:wd(u)})})}#t(t){const i=t.streamId,n=this.sourceName,a=t.sourceName,l=this.comObj,d=this.streamControllers[i],c=this.streamSinks[i];switch(t.stream){case Jn.START_COMPLETE:t.success?d.startCall.resolve():d.startCall.reject(wd(t.reason));break;case Jn.PULL_COMPLETE:t.success?d.pullCall.resolve():d.pullCall.reject(wd(t.reason));break;case Jn.PULL:if(!c){l.postMessage({sourceName:n,targetName:a,stream:Jn.PULL_COMPLETE,streamId:i,success:!0});break}c.desiredSize<=0&&t.desiredSize>0&&c.sinkCapability.resolve(),c.desiredSize=t.desiredSize,new Promise(function(p){p(c.onPull?.())}).then(function(){l.postMessage({sourceName:n,targetName:a,stream:Jn.PULL_COMPLETE,streamId:i,success:!0})},function(p){l.postMessage({sourceName:n,targetName:a,stream:Jn.PULL_COMPLETE,streamId:i,reason:wd(p)})});break;case Jn.ENQUEUE:if(Ca(d,"enqueue should have stream controller"),d.isClosed)break;d.controller.enqueue(t.chunk);break;case Jn.CLOSE:if(Ca(d,"close should have stream controller"),d.isClosed)break;d.isClosed=!0,d.controller.close(),this.#o(d,i);break;case Jn.ERROR:Ca(d,"error should have stream controller"),d.controller.error(wd(t.reason)),this.#o(d,i);break;case Jn.CANCEL_COMPLETE:t.success?d.cancelCall.resolve():d.cancelCall.reject(wd(t.reason)),this.#o(d,i);break;case Jn.CANCEL:if(!c)break;new Promise(function(p){p(c.onCancel?.(wd(t.reason)))}).then(function(){l.postMessage({sourceName:n,targetName:a,stream:Jn.CANCEL_COMPLETE,streamId:i,success:!0})},function(p){l.postMessage({sourceName:n,targetName:a,stream:Jn.CANCEL_COMPLETE,streamId:i,reason:wd(p)})}),c.sinkCapability.reject(wd(t.reason)),c.isCancelled=!0,delete this.streamSinks[i];break;default:throw new Error("Unexpected stream case")}}async#o(t,i){await Promise.allSettled([t.startCall?.promise,t.pullCall?.promise,t.cancelCall?.promise]),delete this.streamControllers[i]}destroy(){this.comObj.removeEventListener("message",this._onComObjOnMessage)}}class nkt{#e;#t;constructor({parsedData:t,rawData:i}){this.#e=t,this.#t=i}getRaw(){return this.#t}get(t){return this.#e.get(t)??null}getAll(){return MK(this.#e)}has(t){return this.#e.has(t)}}const E0=Symbol("INTERNAL");class akt{#e=!1;#t=!1;#o=!1;#r=!0;constructor(t,{name:i,intent:n,usage:a}){this.#e=!!(t&nc.DISPLAY),this.#t=!!(t&nc.PRINT),this.name=i,this.intent=n,this.usage=a}get visible(){if(this.#o)return this.#r;if(!this.#r)return!1;const{print:t,view:i}=this.usage;return this.#e?i?.viewState!=="OFF":this.#t?t?.printState!=="OFF":!0}_setVisible(t,i,n=!1){t!==E0&&jr("Internal method `_setVisible` called."),this.#o=n,this.#r=i}}class skt{#e=null;#t=new Map;#o=null;#r=null;constructor(t,i=nc.DISPLAY){if(this.renderingIntent=i,this.name=null,this.creator=null,t!==null){this.name=t.name,this.creator=t.creator,this.#r=t.order;for(const n of t.groups)this.#t.set(n.id,new akt(i,n));if(t.baseState==="OFF")for(const n of this.#t.values())n._setVisible(E0,!1);for(const n of t.on)this.#t.get(n)._setVisible(E0,!0);for(const n of t.off)this.#t.get(n)._setVisible(E0,!1);this.#o=this.getHash()}}#s(t){const i=t.length;if(i<2)return!0;const n=t[0];for(let a=1;a<i;a++){const l=t[a];let d;if(Array.isArray(l))d=this.#s(l);else if(this.#t.has(l))d=this.#t.get(l).visible;else return Pi(`Optional content group not found: ${l}`),!0;switch(n){case"And":if(!d)return!1;break;case"Or":if(d)return!0;break;case"Not":return!d;default:return!0}}return n==="And"}isVisible(t){if(this.#t.size===0)return!0;if(!t)return _L("Optional content group not defined."),!0;if(t.type==="OCG")return this.#t.has(t.id)?this.#t.get(t.id).visible:(Pi(`Optional content group not found: ${t.id}`),!0);if(t.type==="OCMD"){if(t.expression)return this.#s(t.expression);if(!t.policy||t.policy==="AnyOn"){for(const i of t.ids){if(!this.#t.has(i))return Pi(`Optional content group not found: ${i}`),!0;if(this.#t.get(i).visible)return!0}return!1}else if(t.policy==="AllOn"){for(const i of t.ids){if(!this.#t.has(i))return Pi(`Optional content group not found: ${i}`),!0;if(!this.#t.get(i).visible)return!1}return!0}else if(t.policy==="AnyOff"){for(const i of t.ids){if(!this.#t.has(i))return Pi(`Optional content group not found: ${i}`),!0;if(!this.#t.get(i).visible)return!0}return!1}else if(t.policy==="AllOff"){for(const i of t.ids){if(!this.#t.has(i))return Pi(`Optional content group not found: ${i}`),!0;if(this.#t.get(i).visible)return!1}return!0}return Pi(`Unknown optional content policy ${t.policy}.`),!0}return Pi(`Unknown group type ${t.type}.`),!0}setVisibility(t,i=!0){const n=this.#t.get(t);if(!n){Pi(`Optional content group not found: ${t}`);return}n._setVisible(E0,!!i,!0),this.#e=null}setOCGState({state:t,preserveRB:i}){let n;for(const a of t){switch(a){case"ON":case"OFF":case"Toggle":n=a;continue}const l=this.#t.get(a);if(l)switch(n){case"ON":l._setVisible(E0,!0);break;case"OFF":l._setVisible(E0,!1);break;case"Toggle":l._setVisible(E0,!l.visible);break}}this.#e=null}get hasInitialVisibility(){return this.#o===null||this.getHash()===this.#o}getOrder(){return this.#t.size?this.#r?this.#r.slice():[...this.#t.keys()]:null}getGroups(){return this.#t.size>0?MK(this.#t):null}getGroup(t){return this.#t.get(t)||null}getHash(){if(this.#e!==null)return this.#e;const t=new Qje;for(const[i,n]of this.#t)t.update(`${i}:${n.visible}`);return this.#e=t.hexdigest()}}class lkt{constructor(t,{disableRange:i=!1,disableStream:n=!1}){Ca(t,'PDFDataTransportStream - missing required "pdfDataRangeTransport" argument.');const{length:a,initialData:l,progressiveDone:d,contentDispositionFilename:c}=t;if(this._queuedChunks=[],this._progressiveDone=d,this._contentDispositionFilename=c,l?.length>0){const p=l instanceof Uint8Array&&l.byteLength===l.buffer.byteLength?l.buffer:new Uint8Array(l).buffer;this._queuedChunks.push(p)}this._pdfDataRangeTransport=t,this._isStreamingSupported=!n,this._isRangeSupported=!i,this._contentLength=a,this._fullRequestReader=null,this._rangeReaders=[],t.addRangeListener((p,u)=>{this._onReceiveData({begin:p,chunk:u})}),t.addProgressListener((p,u)=>{this._onProgress({loaded:p,total:u})}),t.addProgressiveReadListener(p=>{this._onReceiveData({chunk:p})}),t.addProgressiveDoneListener(()=>{this._onProgressiveDone()}),t.transportReady()}_onReceiveData({begin:t,chunk:i}){const n=i instanceof Uint8Array&&i.byteLength===i.buffer.byteLength?i.buffer:new Uint8Array(i).buffer;if(t===void 0)this._fullRequestReader?this._fullRequestReader._enqueue(n):this._queuedChunks.push(n);else{const a=this._rangeReaders.some(function(l){return l._begin!==t?!1:(l._enqueue(n),!0)});Ca(a,"_onReceiveData - no `PDFDataTransportStreamRangeReader` instance found.")}}get _progressiveDataLength(){return this._fullRequestReader?._loaded??0}_onProgress(t){t.total===void 0?this._rangeReaders[0]?.onProgress?.({loaded:t.loaded}):this._fullRequestReader?.onProgress?.({loaded:t.loaded,total:t.total})}_onProgressiveDone(){this._fullRequestReader?.progressiveDone(),this._progressiveDone=!0}_removeRangeReader(t){const i=this._rangeReaders.indexOf(t);i>=0&&this._rangeReaders.splice(i,1)}getFullReader(){Ca(!this._fullRequestReader,"PDFDataTransportStream.getFullReader can only be called once.");const t=this._queuedChunks;return this._queuedChunks=null,new dkt(this,t,this._progressiveDone,this._contentDispositionFilename)}getRangeReader(t,i){if(i<=this._progressiveDataLength)return null;const n=new ckt(this,t,i);return this._pdfDataRangeTransport.requestDataRange(t,i),this._rangeReaders.push(n),n}cancelAllRequests(t){this._fullRequestReader?.cancel(t);for(const i of this._rangeReaders.slice(0))i.cancel(t);this._pdfDataRangeTransport.abort()}}class dkt{constructor(t,i,n=!1,a=null){this._stream=t,this._done=n||!1,this._filename=zK(a)?a:null,this._queuedChunks=i||[],this._loaded=0;for(const l of this._queuedChunks)this._loaded+=l.byteLength;this._requests=[],this._headersReady=Promise.resolve(),t._fullRequestReader=this,this.onProgress=null}_enqueue(t){this._done||(this._requests.length>0?this._requests.shift().resolve({value:t,done:!1}):this._queuedChunks.push(t),this._loaded+=t.byteLength)}get headersReady(){return this._headersReady}get filename(){return this._filename}get isRangeSupported(){return this._stream._isRangeSupported}get isStreamingSupported(){return this._stream._isStreamingSupported}get contentLength(){return this._stream._contentLength}async read(){if(this._queuedChunks.length>0)return{value:this._queuedChunks.shift(),done:!1};if(this._done)return{value:void 0,done:!0};const t=Promise.withResolvers();return this._requests.push(t),t.promise}cancel(t){this._done=!0;for(const i of this._requests)i.resolve({value:void 0,done:!0});this._requests.length=0}progressiveDone(){this._done||(this._done=!0)}}class ckt{constructor(t,i,n){this._stream=t,this._begin=i,this._end=n,this._queuedChunk=null,this._requests=[],this._done=!1,this.onProgress=null}_enqueue(t){if(!this._done){if(this._requests.length===0)this._queuedChunk=t;else{this._requests.shift().resolve({value:t,done:!1});for(const n of this._requests)n.resolve({value:void 0,done:!0});this._requests.length=0}this._done=!0,this._stream._removeRangeReader(this)}}get isStreamingSupported(){return!1}async read(){if(this._queuedChunk){const i=this._queuedChunk;return this._queuedChunk=null,{value:i,done:!1}}if(this._done)return{value:void 0,done:!0};const t=Promise.withResolvers();return this._requests.push(t),t.promise}cancel(t){this._done=!0;for(const i of this._requests)i.resolve({value:void 0,done:!0});this._requests.length=0,this._stream._removeRangeReader(this)}}function pkt(e){let t=!0,i=n("filename\\*","i").exec(e);if(i){i=i[1];let h=c(i);return h=unescape(h),h=p(h),h=u(h),l(h)}if(i=d(e),i){const h=u(i);return l(h)}if(i=n("filename","i").exec(e),i){i=i[1];let h=c(i);return h=u(h),l(h)}function n(h,m){return new RegExp("(?:^|;)\\s*"+h+'\\s*=\\s*([^";\\s][^;\\s]*|"(?:[^"\\\\]|\\\\"?)+"?)',m)}function a(h,m){if(h){if(!/^[\x00-\xFF]+$/.test(m))return m;try{const f=new TextDecoder(h,{fatal:!0}),x=QL(m);m=f.decode(x),t=!1}catch{}}return m}function l(h){return t&&/[\x80-\xff]/.test(h)&&(h=a("utf-8",h),t&&(h=a("iso-8859-1",h))),h}function d(h){const m=[];let f;const x=n("filename\\*((?!0\\d)\\d+)(\\*?)","ig");for(;(f=x.exec(h))!==null;){let[,w,b,C]=f;if(w=parseInt(w,10),w in m){if(w===0)break;continue}m[w]=[b,C]}const y=[];for(let w=0;w<m.length&&w in m;++w){let[b,C]=m[w];C=c(C),b&&(C=unescape(C),w===0&&(C=p(C))),y.push(C)}return y.join("")}function c(h){if(h.startsWith('"')){const m=h.slice(1).split('\\"');for(let f=0;f<m.length;++f){const x=m[f].indexOf('"');x!==-1&&(m[f]=m[f].slice(0,x),m.length=f+1),m[f]=m[f].replaceAll(/\\(.)/g,"$1")}h=m.join('"')}return h}function p(h){const m=h.indexOf("'");if(m===-1)return h;const f=h.slice(0,m),y=h.slice(m+1).replace(/^[^']*'/,"");return a(f,y)}function u(h){return!h.startsWith("=?")||/[\x00-\x19\x80-\xff]/.test(h)?h:h.replaceAll(/=\?([\w-]*)\?([QqBb])\?((?:[^?]|\?(?!=))*)\?=/g,function(m,f,x,y){if(x==="q"||x==="Q")return y=y.replaceAll("_"," "),y=y.replaceAll(/=([0-9a-fA-F]{2})/g,function(w,b){return String.fromCharCode(parseInt(b,16))}),a(f,y);try{y=atob(y)}catch{}return a(f,y)})}return""}function VK({getResponseHeader:e,isHttp:t,rangeChunkSize:i,disableRange:n}){const a={allowRangeRequests:!1,suggestedLength:void 0},l=parseInt(e("Content-Length"),10);return!Number.isInteger(l)||(a.suggestedLength=l,l<=2*i)||n||!t||e("Accept-Ranges")!=="bytes"||(e("Content-Encoding")||"identity")!=="identity"||(a.allowRangeRequests=!0),a}function QK(e){const t=e("Content-Disposition");if(t){let i=pkt(t);if(i.includes("%"))try{i=decodeURIComponent(i)}catch{}if(zK(i))return i}return null}function qL(e,t){return e===404||e===0&&t.startsWith("file:")?new Y4('Missing PDF "'+t+'".'):new VL(`Unexpected server response (${e}) while retrieving PDF "${t}".`,e)}function Gje(e){return e===200||e===206}function Yje(e,t,i){return{method:"GET",headers:e,signal:i.signal,mode:"cors",credentials:t?"include":"same-origin",redirect:"follow"}}function Kje(e){const t=new Headers;for(const i in e){const n=e[i];n!==void 0&&t.append(i,n)}return t}function qje(e){return e instanceof Uint8Array?e.buffer:e instanceof ArrayBuffer?e:(Pi(`getArrayBuffer - unexpected data format: ${e}`),new Uint8Array(e).buffer)}class bpe{constructor(t){this.source=t,this.isHttp=/^https?:/i.test(t.url),this.httpHeaders=this.isHttp&&t.httpHeaders||{},this._fullRequestReader=null,this._rangeRequestReaders=[]}get _progressiveDataLength(){return this._fullRequestReader?._loaded??0}getFullReader(){return Ca(!this._fullRequestReader,"PDFFetchStream.getFullReader can only be called once."),this._fullRequestReader=new ukt(this),this._fullRequestReader}getRangeReader(t,i){if(i<=this._progressiveDataLength)return null;const n=new hkt(this,t,i);return this._rangeRequestReaders.push(n),n}cancelAllRequests(t){this._fullRequestReader?.cancel(t);for(const i of this._rangeRequestReaders.slice(0))i.cancel(t)}}class ukt{constructor(t){this._stream=t,this._reader=null,this._loaded=0,this._filename=null;const i=t.source;this._withCredentials=i.withCredentials||!1,this._contentLength=i.length,this._headersCapability=Promise.withResolvers(),this._disableRange=i.disableRange||!1,this._rangeChunkSize=i.rangeChunkSize,!this._rangeChunkSize&&!this._disableRange&&(this._disableRange=!0),this._abortController=new AbortController,this._isStreamingSupported=!i.disableStream,this._isRangeSupported=!i.disableRange,this._headers=Kje(this._stream.httpHeaders);const n=i.url;fetch(n,Yje(this._headers,this._withCredentials,this._abortController)).then(a=>{if(!Gje(a.status))throw qL(a.status,n);this._reader=a.body.getReader(),this._headersCapability.resolve();const l=p=>a.headers.get(p),{allowRangeRequests:d,suggestedLength:c}=VK({getResponseHeader:l,isHttp:this._stream.isHttp,rangeChunkSize:this._rangeChunkSize,disableRange:this._disableRange});this._isRangeSupported=d,this._contentLength=c||this._contentLength,this._filename=QK(l),!this._isStreamingSupported&&this._isRangeSupported&&this.cancel(new K4("Streaming is disabled."))}).catch(this._headersCapability.reject),this.onProgress=null}get headersReady(){return this._headersCapability.promise}get filename(){return this._filename}get contentLength(){return this._contentLength}get isRangeSupported(){return this._isRangeSupported}get isStreamingSupported(){return this._isStreamingSupported}async read(){await this._headersCapability.promise;const{value:t,done:i}=await this._reader.read();return i?{value:t,done:i}:(this._loaded+=t.byteLength,this.onProgress?.({loaded:this._loaded,total:this._contentLength}),{value:qje(t),done:!1})}cancel(t){this._reader?.cancel(t),this._abortController.abort()}}class hkt{constructor(t,i,n){this._stream=t,this._reader=null,this._loaded=0;const a=t.source;this._withCredentials=a.withCredentials||!1,this._readCapability=Promise.withResolvers(),this._isStreamingSupported=!a.disableStream,this._abortController=new AbortController,this._headers=Kje(this._stream.httpHeaders),this._headers.append("Range",`bytes=${i}-${n-1}`);const l=a.url;fetch(l,Yje(this._headers,this._withCredentials,this._abortController)).then(d=>{if(!Gje(d.status))throw qL(d.status,l);this._readCapability.resolve(),this._reader=d.body.getReader()}).catch(this._readCapability.reject),this.onProgress=null}get isStreamingSupported(){return this._isStreamingSupported}async read(){await this._readCapability.promise;const{value:t,done:i}=await this._reader.read();return i?{value:t,done:i}:(this._loaded+=t.byteLength,this.onProgress?.({loaded:this._loaded}),{value:qje(t),done:!1})}cancel(t){this._reader?.cancel(t),this._abortController.abort()}}const aO=200,sO=206;function mkt(e){const t=e.response;return typeof t!="string"?t:QL(t).buffer}class gkt{constructor(t,i={}){this.url=t,this.isHttp=/^https?:/i.test(t),this.httpHeaders=this.isHttp&&i.httpHeaders||Object.create(null),this.withCredentials=i.withCredentials||!1,this.currXhrId=0,this.pendingRequests=Object.create(null)}requestRange(t,i,n){const a={begin:t,end:i};for(const l in n)a[l]=n[l];return this.request(a)}requestFull(t){return this.request(t)}request(t){const i=new XMLHttpRequest,n=this.currXhrId++,a=this.pendingRequests[n]={xhr:i};i.open("GET",this.url),i.withCredentials=this.withCredentials;for(const l in this.httpHeaders){const d=this.httpHeaders[l];d!==void 0&&i.setRequestHeader(l,d)}return this.isHttp&&"begin"in t&&"end"in t?(i.setRequestHeader("Range",`bytes=${t.begin}-${t.end-1}`),a.expectedStatus=sO):a.expectedStatus=aO,i.responseType="arraybuffer",t.onError&&(i.onerror=function(l){t.onError(i.status)}),i.onreadystatechange=this.onStateChange.bind(this,n),i.onprogress=this.onProgress.bind(this,n),a.onHeadersReceived=t.onHeadersReceived,a.onDone=t.onDone,a.onError=t.onError,a.onProgress=t.onProgress,i.send(null),n}onProgress(t,i){const n=this.pendingRequests[t];n&&n.onProgress?.(i)}onStateChange(t,i){const n=this.pendingRequests[t];if(!n)return;const a=n.xhr;if(a.readyState>=2&&n.onHeadersReceived&&(n.onHeadersReceived(),delete n.onHeadersReceived),a.readyState!==4||!(t in this.pendingRequests))return;if(delete this.pendingRequests[t],a.status===0&&this.isHttp){n.onError?.(a.status);return}const l=a.status||aO;if(!(l===aO&&n.expectedStatus===sO)&&l!==n.expectedStatus){n.onError?.(a.status);return}const c=mkt(a);if(l===sO){const p=a.getResponseHeader("Content-Range"),u=/bytes (\d+)-(\d+)\/(\d+)/.exec(p);n.onDone({begin:parseInt(u[1],10),chunk:c})}else c?n.onDone({begin:0,chunk:c}):n.onError?.(a.status)}getRequestXhr(t){return this.pendingRequests[t].xhr}isPendingRequest(t){return t in this.pendingRequests}abortRequest(t){const i=this.pendingRequests[t].xhr;delete this.pendingRequests[t],i.abort()}}class fkt{constructor(t){this._source=t,this._manager=new gkt(t.url,{httpHeaders:t.httpHeaders,withCredentials:t.withCredentials}),this._rangeChunkSize=t.rangeChunkSize,this._fullRequestReader=null,this._rangeRequestReaders=[]}_onRangeRequestReaderClosed(t){const i=this._rangeRequestReaders.indexOf(t);i>=0&&this._rangeRequestReaders.splice(i,1)}getFullReader(){return Ca(!this._fullRequestReader,"PDFNetworkStream.getFullReader can only be called once."),this._fullRequestReader=new xkt(this._manager,this._source),this._fullRequestReader}getRangeReader(t,i){const n=new ykt(this._manager,t,i);return n.onClosed=this._onRangeRequestReaderClosed.bind(this),this._rangeRequestReaders.push(n),n}cancelAllRequests(t){this._fullRequestReader?.cancel(t);for(const i of this._rangeRequestReaders.slice(0))i.cancel(t)}}class xkt{constructor(t,i){this._manager=t;const n={onHeadersReceived:this._onHeadersReceived.bind(this),onDone:this._onDone.bind(this),onError:this._onError.bind(this),onProgress:this._onProgress.bind(this)};this._url=i.url,this._fullRequestId=t.requestFull(n),this._headersReceivedCapability=Promise.withResolvers(),this._disableRange=i.disableRange||!1,this._contentLength=i.length,this._rangeChunkSize=i.rangeChunkSize,!this._rangeChunkSize&&!this._disableRange&&(this._disableRange=!0),this._isStreamingSupported=!1,this._isRangeSupported=!1,this._cachedChunks=[],this._requests=[],this._done=!1,this._storedError=void 0,this._filename=null,this.onProgress=null}_onHeadersReceived(){const t=this._fullRequestId,i=this._manager.getRequestXhr(t),n=d=>i.getResponseHeader(d),{allowRangeRequests:a,suggestedLength:l}=VK({getResponseHeader:n,isHttp:this._manager.isHttp,rangeChunkSize:this._rangeChunkSize,disableRange:this._disableRange});a&&(this._isRangeSupported=!0),this._contentLength=l||this._contentLength,this._filename=QK(n),this._isRangeSupported&&this._manager.abortRequest(t),this._headersReceivedCapability.resolve()}_onDone(t){if(t&&(this._requests.length>0?this._requests.shift().resolve({value:t.chunk,done:!1}):this._cachedChunks.push(t.chunk)),this._done=!0,!(this._cachedChunks.length>0)){for(const i of this._requests)i.resolve({value:void 0,done:!0});this._requests.length=0}}_onError(t){this._storedError=qL(t,this._url),this._headersReceivedCapability.reject(this._storedError);for(const i of this._requests)i.reject(this._storedError);this._requests.length=0,this._cachedChunks.length=0}_onProgress(t){this.onProgress?.({loaded:t.loaded,total:t.lengthComputable?t.total:this._contentLength})}get filename(){return this._filename}get isRangeSupported(){return this._isRangeSupported}get isStreamingSupported(){return this._isStreamingSupported}get contentLength(){return this._contentLength}get headersReady(){return this._headersReceivedCapability.promise}async read(){if(this._storedError)throw this._storedError;if(this._cachedChunks.length>0)return{value:this._cachedChunks.shift(),done:!1};if(this._done)return{value:void 0,done:!0};const t=Promise.withResolvers();return this._requests.push(t),t.promise}cancel(t){this._done=!0,this._headersReceivedCapability.reject(t);for(const i of this._requests)i.resolve({value:void 0,done:!0});this._requests.length=0,this._manager.isPendingRequest(this._fullRequestId)&&this._manager.abortRequest(this._fullRequestId),this._fullRequestReader=null}}class ykt{constructor(t,i,n){this._manager=t;const a={onDone:this._onDone.bind(this),onError:this._onError.bind(this),onProgress:this._onProgress.bind(this)};this._url=t.url,this._requestId=t.requestRange(i,n,a),this._requests=[],this._queuedChunk=null,this._done=!1,this._storedError=void 0,this.onProgress=null,this.onClosed=null}_close(){this.onClosed?.(this)}_onDone(t){const i=t.chunk;this._requests.length>0?this._requests.shift().resolve({value:i,done:!1}):this._queuedChunk=i,this._done=!0;for(const n of this._requests)n.resolve({value:void 0,done:!0});this._requests.length=0,this._close()}_onError(t){this._storedError=qL(t,this._url);for(const i of this._requests)i.reject(this._storedError);this._requests.length=0,this._queuedChunk=null}_onProgress(t){this.isStreamingSupported||this.onProgress?.({loaded:t.loaded})}get isStreamingSupported(){return!1}async read(){if(this._storedError)throw this._storedError;if(this._queuedChunk!==null){const i=this._queuedChunk;return this._queuedChunk=null,{value:i,done:!1}}if(this._done)return{value:void 0,done:!0};const t=Promise.withResolvers();return this._requests.push(t),t.promise}cancel(t){this._done=!0;for(const i of this._requests)i.resolve({value:void 0,done:!0});this._requests.length=0,this._manager.isPendingRequest(this._requestId)&&this._manager.abortRequest(this._requestId),this._close()}}const Zje=/^file:\/\/\/[a-zA-Z]:\//;function wkt(e){const t=Uu.get("url"),i=t.parse(e);return i.protocol==="file:"||i.host?i:/^[a-z]:[/\\]/i.test(e)?t.parse(`file:///${e}`):(i.host||(i.protocol="file:"),i)}class bkt{constructor(t){this.source=t,this.url=wkt(t.url),this.isHttp=this.url.protocol==="http:"||this.url.protocol==="https:",this.isFsUrl=this.url.protocol==="file:",this.httpHeaders=this.isHttp&&t.httpHeaders||{},this._fullRequestReader=null,this._rangeRequestReaders=[]}get _progressiveDataLength(){return this._fullRequestReader?._loaded??0}getFullReader(){return Ca(!this._fullRequestReader,"PDFNodeStream.getFullReader can only be called once."),this._fullRequestReader=this.isFsUrl?new Akt(this):new vkt(this),this._fullRequestReader}getRangeReader(t,i){if(i<=this._progressiveDataLength)return null;const n=this.isFsUrl?new $kt(this,t,i):new Ckt(this,t,i);return this._rangeRequestReaders.push(n),n}cancelAllRequests(t){this._fullRequestReader?.cancel(t);for(const i of this._rangeRequestReaders.slice(0))i.cancel(t)}}class Jje{constructor(t){this._url=t.url,this._done=!1,this._storedError=null,this.onProgress=null;const i=t.source;this._contentLength=i.length,this._loaded=0,this._filename=null,this._disableRange=i.disableRange||!1,this._rangeChunkSize=i.rangeChunkSize,!this._rangeChunkSize&&!this._disableRange&&(this._disableRange=!0),this._isStreamingSupported=!i.disableStream,this._isRangeSupported=!i.disableRange,this._readableStream=null,this._readCapability=Promise.withResolvers(),this._headersCapability=Promise.withResolvers()}get headersReady(){return this._headersCapability.promise}get filename(){return this._filename}get contentLength(){return this._contentLength}get isRangeSupported(){return this._isRangeSupported}get isStreamingSupported(){return this._isStreamingSupported}async read(){if(await this._readCapability.promise,this._done)return{value:void 0,done:!0};if(this._storedError)throw this._storedError;const t=this._readableStream.read();return t===null?(this._readCapability=Promise.withResolvers(),this.read()):(this._loaded+=t.length,this.onProgress?.({loaded:this._loaded,total:this._contentLength}),{value:new Uint8Array(t).buffer,done:!1})}cancel(t){if(!this._readableStream){this._error(t);return}this._readableStream.destroy(t)}_error(t){this._storedError=t,this._readCapability.resolve()}_setReadableStream(t){this._readableStream=t,t.on("readable",()=>{this._readCapability.resolve()}),t.on("end",()=>{t.destroy(),this._done=!0,this._readCapability.resolve()}),t.on("error",i=>{this._error(i)}),!this._isStreamingSupported&&this._isRangeSupported&&this._error(new K4("streaming is disabled")),this._storedError&&this._readableStream.destroy(this._storedError)}}class Xje{constructor(t){this._url=t.url,this._done=!1,this._storedError=null,this.onProgress=null,this._loaded=0,this._readableStream=null,this._readCapability=Promise.withResolvers();const i=t.source;this._isStreamingSupported=!i.disableStream}get isStreamingSupported(){return this._isStreamingSupported}async read(){if(await this._readCapability.promise,this._done)return{value:void 0,done:!0};if(this._storedError)throw this._storedError;const t=this._readableStream.read();return t===null?(this._readCapability=Promise.withResolvers(),this.read()):(this._loaded+=t.length,this.onProgress?.({loaded:this._loaded}),{value:new Uint8Array(t).buffer,done:!1})}cancel(t){if(!this._readableStream){this._error(t);return}this._readableStream.destroy(t)}_error(t){this._storedError=t,this._readCapability.resolve()}_setReadableStream(t){this._readableStream=t,t.on("readable",()=>{this._readCapability.resolve()}),t.on("end",()=>{t.destroy(),this._done=!0,this._readCapability.resolve()}),t.on("error",i=>{this._error(i)}),this._storedError&&this._readableStream.destroy(this._storedError)}}function uS(e,t){return{protocol:e.protocol,auth:e.auth,host:e.hostname,port:e.port,path:e.path,method:"GET",headers:t}}class vkt extends Jje{constructor(t){super(t);const i=n=>{if(n.statusCode===404){const c=new Y4(`Missing PDF "${this._url}".`);this._storedError=c,this._headersCapability.reject(c);return}this._headersCapability.resolve(),this._setReadableStream(n);const a=c=>this._readableStream.headers[c.toLowerCase()],{allowRangeRequests:l,suggestedLength:d}=VK({getResponseHeader:a,isHttp:t.isHttp,rangeChunkSize:this._rangeChunkSize,disableRange:this._disableRange});this._isRangeSupported=l,this._contentLength=d||this._contentLength,this._filename=QK(a)};if(this._request=null,this._url.protocol==="http:"){const n=Uu.get("http");this._request=n.request(uS(this._url,t.httpHeaders),i)}else{const n=Uu.get("https");this._request=n.request(uS(this._url,t.httpHeaders),i)}this._request.on("error",n=>{this._storedError=n,this._headersCapability.reject(n)}),this._request.end()}}class Ckt extends Xje{constructor(t,i,n){super(t),this._httpHeaders={};for(const l in t.httpHeaders){const d=t.httpHeaders[l];d!==void 0&&(this._httpHeaders[l]=d)}this._httpHeaders.Range=`bytes=${i}-${n-1}`;const a=l=>{if(l.statusCode===404){const d=new Y4(`Missing PDF "${this._url}".`);this._storedError=d;return}this._setReadableStream(l)};if(this._request=null,this._url.protocol==="http:"){const l=Uu.get("http");this._request=l.request(uS(this._url,this._httpHeaders),a)}else{const l=Uu.get("https");this._request=l.request(uS(this._url,this._httpHeaders),a)}this._request.on("error",l=>{this._storedError=l}),this._request.end()}}class Akt extends Jje{constructor(t){super(t);let i=decodeURIComponent(this._url.path);Zje.test(this._url.href)&&(i=i.replace(/^\//,""));const n=Uu.get("fs");n.promises.lstat(i).then(a=>{this._contentLength=a.size,this._setReadableStream(n.createReadStream(i)),this._headersCapability.resolve()},a=>{a.code==="ENOENT"&&(a=new Y4(`Missing PDF "${i}".`)),this._storedError=a,this._headersCapability.reject(a)})}}class $kt extends Xje{constructor(t,i,n){super(t);let a=decodeURIComponent(this._url.path);Zje.test(this._url.href)&&(a=a.replace(/^\//,""));const l=Uu.get("fs");this._setReadableStream(l.createReadStream(a,{start:i,end:n-1}))}}const kkt=1e5,Sl=30,Skt=.8;let hS=class Zp{#e=Promise.withResolvers();#t=null;#o=!1;#r=!!globalThis.FontInspector?.enabled;#s=null;#i=null;#n=0;#l=0;#c=null;#p=null;#h=0;#d=0;#a=Object.create(null);#m=[];#f=null;#u=[];#y=new WeakMap;#g=null;static#w=new Map;static#v=new Map;static#A=null;static#k=new Set;constructor({textContentSource:t,container:i,viewport:n}){if(t instanceof ReadableStream)this.#f=t;else if(typeof t=="object")this.#f=new ReadableStream({start(p){p.enqueue(t),p.close()}});else throw new Error('No "textContentSource" parameter specified.');this.#t=this.#p=i,this.#d=n.scale*(globalThis.devicePixelRatio||1),this.#h=n.rotation,this.#i={prevFontSize:null,prevFontFamily:null,div:null,properties:null,ctx:null};const{pageWidth:a,pageHeight:l,pageX:d,pageY:c}=n.rawDims;this.#g=[1,0,0,-1,-d,c+l],this.#l=a,this.#n=l,Zp.#x(),S4(i,n),this.#e.promise.catch(()=>{}).then(()=>{Zp.#k.delete(this),this.#i=null,this.#a=null})}render(){const t=()=>{this.#c.read().then(({value:i,done:n})=>{if(n){this.#e.resolve();return}this.#s??=i.lang,Object.assign(this.#a,i.styles),this.#S(i.items),t()},this.#e.reject)};return this.#c=this.#f.getReader(),Zp.#k.add(this),t(),this.#e.promise}update({viewport:t,onBefore:i=null}){const n=t.scale*(globalThis.devicePixelRatio||1),a=t.rotation;if(a!==this.#h&&(i?.(),this.#h=a,S4(this.#p,{rotation:a})),n!==this.#d){i?.(),this.#d=n;const l={prevFontSize:null,prevFontFamily:null,div:null,properties:null,ctx:Zp.#b(this.#s)};for(const d of this.#u)l.properties=this.#y.get(d),l.div=d,this.#$(l)}}cancel(){const t=new K4("TextLayer task cancelled.");this.#c?.cancel(t).catch(()=>{}),this.#c=null,this.#e.reject(t)}get textDivs(){return this.#u}get textContentItemsStr(){return this.#m}#S(t){if(this.#o)return;this.#i.ctx??=Zp.#b(this.#s);const i=this.#u,n=this.#m;for(const a of t){if(i.length>kkt){Pi("Ignoring additional textDivs for performance reasons."),this.#o=!0;return}if(a.str===void 0){if(a.type==="beginMarkedContentProps"||a.type==="beginMarkedContent"){const l=this.#t;this.#t=document.createElement("span"),this.#t.classList.add("markedContent"),a.id!==null&&this.#t.setAttribute("id",`${a.id}`),l.append(this.#t)}else a.type==="endMarkedContent"&&(this.#t=this.#t.parentNode);continue}n.push(a.str),this.#j(a)}}#j(t){const i=document.createElement("span"),n={angle:0,canvasWidth:0,hasText:t.str!=="",hasEOL:t.hasEOL,fontSize:0};this.#u.push(i);const a=ko.transform(this.#g,t.transform);let l=Math.atan2(a[1],a[0]);const d=this.#a[t.fontName];d.vertical&&(l+=Math.PI/2);const c=this.#r&&d.fontSubstitution||d.fontFamily,p=Math.hypot(a[2],a[3]),u=p*Zp.#C(c,this.#s);let h,m;l===0?(h=a[4],m=a[5]-u):(h=a[4]+u*Math.sin(l),m=a[5]-u*Math.cos(l));const f="calc(var(--scale-factor)*",x=i.style;this.#t===this.#p?(x.left=`${(100*h/this.#l).toFixed(2)}%`,x.top=`${(100*m/this.#n).toFixed(2)}%`):(x.left=`${f}${h.toFixed(2)}px)`,x.top=`${f}${m.toFixed(2)}px)`),x.fontSize=`${f}${(Zp.#A*p).toFixed(2)}px)`,x.fontFamily=c,n.fontSize=p,i.setAttribute("role","presentation"),i.textContent=t.str,i.dir=t.dir,this.#r&&(i.dataset.fontName=d.fontSubstitutionLoadedName||t.fontName),l!==0&&(n.angle=l*(180/Math.PI));let y=!1;if(t.str.length>1)y=!0;else if(t.str!==" "&&t.transform[0]!==t.transform[3]){const w=Math.abs(t.transform[0]),b=Math.abs(t.transform[3]);w!==b&&Math.max(w,b)/Math.min(w,b)>1.5&&(y=!0)}if(y&&(n.canvasWidth=d.vertical?t.height:t.width),this.#y.set(i,n),this.#i.div=i,this.#i.properties=n,this.#$(this.#i),n.hasText&&this.#t.append(i),n.hasEOL){const w=document.createElement("br");w.setAttribute("role","presentation"),this.#t.append(w)}}#$(t){const{div:i,properties:n,ctx:a,prevFontSize:l,prevFontFamily:d}=t,{style:c}=i;let p="";if(Zp.#A>1&&(p=`scale(${1/Zp.#A})`),n.canvasWidth!==0&&n.hasText){const{fontFamily:u}=c,{canvasWidth:h,fontSize:m}=n;(l!==m||d!==u)&&(a.font=`${m*this.#d}px ${u}`,t.prevFontSize=m,t.prevFontFamily=u);const{width:f}=a.measureText(i.textContent);f>0&&(p=`scaleX(${h*this.#d/f}) ${p}`)}n.angle!==0&&(p=`rotate(${n.angle}deg) ${p}`),p.length>0&&(c.transform=p)}static cleanup(){if(!(this.#k.size>0)){this.#w.clear();for(const{canvas:t}of this.#v.values())t.remove();this.#v.clear()}}static#b(t=null){let i=this.#v.get(t||="");if(!i){const n=document.createElement("canvas");n.className="hiddenCanvasElement",n.lang=t,document.body.append(n),i=n.getContext("2d",{alpha:!1,willReadFrequently:!0}),this.#v.set(t,i)}return i}static#x(){if(this.#A!==null)return;const t=document.createElement("div");t.style.opacity=0,t.style.lineHeight=1,t.style.fontSize="1px",t.textContent="X",document.body.append(t),this.#A=t.getBoundingClientRect().height,t.remove()}static#C(t,i){const n=this.#w.get(t);if(n)return n;const a=this.#b(i),l=a.font;a.canvas.width=a.canvas.height=Sl,a.font=`${Sl}px ${t}`;const d=a.measureText("");let c=d.fontBoundingBoxAscent,p=Math.abs(d.fontBoundingBoxDescent);if(c){const m=c/(c+p);return this.#w.set(t,m),a.canvas.width=a.canvas.height=0,a.font=l,m}a.strokeStyle="red",a.clearRect(0,0,Sl,Sl),a.strokeText("g",0,0);let u=a.getImageData(0,0,Sl,Sl).data;p=0;for(let m=u.length-1-3;m>=0;m-=4)if(u[m]>0){p=Math.ceil(m/4/Sl);break}a.clearRect(0,0,Sl,Sl),a.strokeText("A",0,Sl),u=a.getImageData(0,0,Sl,Sl).data,c=0;for(let m=0,f=u.length;m<f;m+=4)if(u[m]>0){c=Sl-Math.floor(m/4/Sl);break}a.canvas.width=a.canvas.height=0,a.font=l;const h=c?c/(c+p):Skt;return this.#w.set(t,h),h}};function Ekt(){_je("`renderTextLayer`, please use `TextLayer` instead.");const{textContentSource:e,container:t,viewport:i,...n}=arguments[0],a=Object.keys(n);a.length>0&&Pi("Ignoring `renderTextLayer` parameters: "+a.join(", "));const l=new hS({textContentSource:e,container:t,viewport:i}),{textDivs:d,textContentItemsStr:c}=l;return{promise:l.render(),textDivs:d,textContentItemsStr:c}}function Lkt(){_je("`updateTextLayer`, please use `TextLayer` instead.")}class cw{static textContent(t){const i=[],n={items:i,styles:Object.create(null)};function a(l){if(!l)return;let d=null;const c=l.name;if(c==="#text")d=l.value;else if(cw.shouldBuildText(c))l?.attributes?.textContent?d=l.attributes.textContent:l.value&&(d=l.value);else return;if(d!==null&&i.push({str:d}),!!l.children)for(const p of l.children)a(p)}return a(t),n}static shouldBuildText(t){return!(t==="textarea"||t==="input"||t==="option"||t==="select")}}const Ikt=65536,jkt=100,Mkt=5e3,Bkt=Rs?V$t:j$t,Dkt=Rs?Q$t:Nje,Pkt=Rs?_$t:I$t,Tkt=Rs?U$t:Hje;function zkt(e={}){typeof e=="string"||e instanceof URL?e={url:e}:(e instanceof ArrayBuffer||ArrayBuffer.isView(e))&&(e={data:e});const t=new UK,{docId:i}=t,n=e.url?Fkt(e.url):null,a=e.data?Rkt(e.data):null,l=e.httpHeaders||null,d=e.withCredentials===!0,c=e.password??null,p=e.range instanceof eMe?e.range:null,u=Number.isInteger(e.rangeChunkSize)&&e.rangeChunkSize>0?e.rangeChunkSize:Ikt;let h=e.worker instanceof dc?e.worker:null;const m=e.verbosity,f=typeof e.docBaseUrl=="string"&&!TK(e.docBaseUrl)?e.docBaseUrl:null,x=typeof e.cMapUrl=="string"?e.cMapUrl:null,y=e.cMapPacked!==!1,w=e.CMapReaderFactory||Dkt,b=typeof e.standardFontDataUrl=="string"?e.standardFontDataUrl:null,C=e.StandardFontDataFactory||Tkt,k=e.stopAtErrors!==!0,E=Number.isInteger(e.maxImageSize)&&e.maxImageSize>-1?e.maxImageSize:-1,S=e.isEvalSupported!==!1,j=typeof e.isOffscreenCanvasSupported=="boolean"?e.isOffscreenCanvasSupported:!Rs,I=Number.isInteger(e.canvasMaxAreaInBytes)?e.canvasMaxAreaInBytes:-1,T=typeof e.disableFontFace=="boolean"?e.disableFontFace:Rs,P=e.fontExtraProperties===!0,B=e.enableXfa===!0,D=e.ownerDocument||globalThis.document,F=e.disableRange===!0,Y=e.disableStream===!0,q=e.disableAutoFetch===!0,Z=e.pdfBug===!0,V=e.enableHWA===!0,H=p?p.length:e.length??NaN,N=typeof e.useSystemFonts=="boolean"?e.useSystemFonts:!Rs&&!T,O=typeof e.useWorkerFetch=="boolean"?e.useWorkerFetch:w===Nje&&C===Hje&&x&&b&&Dx(x,document.baseURI)&&Dx(b,document.baseURI),z=e.canvasFactory||new Bkt({ownerDocument:D,enableHWA:V}),R=e.filterFactory||new Pkt({docId:i,ownerDocument:D}),te=null;y$t(m);const G={canvasFactory:z,filterFactory:R};if(O||(G.cMapReaderFactory=new w({baseUrl:x,isCompressed:y}),G.standardFontDataFactory=new C({baseUrl:b})),!h){const J={verbosity:m,port:dw.workerPort};h=J.port?dc.fromPort(J):new dc(J),t._worker=h}const W={docId:i,apiVersion:"4.4.168",data:a,password:c,disableAutoFetch:q,rangeChunkSize:u,length:H,docBaseUrl:f,enableXfa:B,evaluatorOptions:{maxImageSize:E,disableFontFace:T,ignoreErrors:k,isEvalSupported:S,isOffscreenCanvasSupported:j,canvasMaxAreaInBytes:I,fontExtraProperties:P,useSystemFonts:N,cMapUrl:O?x:null,standardFontDataUrl:O?b:null}},ee={disableFontFace:T,fontExtraProperties:P,ownerDocument:D,pdfBug:Z,styleElement:te,loadingParams:{disableAutoFetch:q,enableXfa:B}};return h.promise.then(function(){if(t.destroyed)throw new Error("Loading aborted");if(h.destroyed)throw new Error("Worker was destroyed");const J=h.messageHandler.sendWithPromise("GetDocRequest",W,a?[a.buffer]:null);let ne;if(p)ne=new lkt(p,{disableRange:F,disableStream:Y});else if(!a){if(!n)throw new Error("getDocument - no `url` parameter provided.");ne=(me=>Rs?function(){return typeof fetch<"u"&&typeof Response<"u"&&"body"in Response.prototype}()&&Dx(me.url)?new bpe(me):new bkt(me):Dx(me.url)?new bpe(me):new fkt(me))({url:n,length:H,httpHeaders:l,withCredentials:d,rangeChunkSize:u,disableRange:F,disableStream:Y})}return J.then(ye=>{if(t.destroyed)throw new Error("Loading aborted");if(h.destroyed)throw new Error("Worker was destroyed");const me=new Px(i,ye,h.port),ue=new _kt(me,t,ne,ee,G);t._transport=ue,me.send("Ready",null)})}).catch(t._capability.reject),t}function Fkt(e){if(e instanceof URL)return e.href;try{return new URL(e,window.location).href}catch{if(Rs&&typeof e=="string")return e}throw new Error("Invalid PDF url data: either string or URL-object is expected in the url property.")}function Rkt(e){if(Rs&&typeof fk<"u"&&e instanceof fk)throw new Error("Please provide binary data as `Uint8Array`, rather than `Buffer`.");if(e instanceof Uint8Array&&e.byteLength===e.buffer.byteLength)return e;if(typeof e=="string")return QL(e);if(e instanceof ArrayBuffer||ArrayBuffer.isView(e)||typeof e=="object"&&!isNaN(e?.length))return new Uint8Array(e);throw new Error("Invalid PDF binary data: either TypedArray, string, or array-like object is expected in the data property.")}function vpe(e){return typeof e=="object"&&Number.isInteger(e?.num)&&e.num>=0&&Number.isInteger(e?.gen)&&e.gen>=0}class UK{static#e=0;constructor(){this._capability=Promise.withResolvers(),this._transport=null,this._worker=null,this.docId=`d${UK.#e++}`,this.destroyed=!1,this.onPassword=null,this.onProgress=null}get promise(){return this._capability.promise}async destroy(){this.destroyed=!0;try{this._worker?.port&&(this._worker._pendingDestroy=!0),await this._transport?.destroy()}catch(t){throw this._worker?.port&&delete this._worker._pendingDestroy,t}this._transport=null,this._worker&&(this._worker.destroy(),this._worker=null)}}let eMe=class{constructor(t,i,n=!1,a=null){this.length=t,this.initialData=i,this.progressiveDone=n,this.contentDispositionFilename=a,this._rangeListeners=[],this._progressListeners=[],this._progressiveReadListeners=[],this._progressiveDoneListeners=[],this._readyCapability=Promise.withResolvers()}addRangeListener(t){this._rangeListeners.push(t)}addProgressListener(t){this._progressListeners.push(t)}addProgressiveReadListener(t){this._progressiveReadListeners.push(t)}addProgressiveDoneListener(t){this._progressiveDoneListeners.push(t)}onDataRange(t,i){for(const n of this._rangeListeners)n(t,i)}onDataProgress(t,i){this._readyCapability.promise.then(()=>{for(const n of this._progressListeners)n(t,i)})}onDataProgressiveRead(t){this._readyCapability.promise.then(()=>{for(const i of this._progressiveReadListeners)i(t)})}onDataProgressiveDone(){this._readyCapability.promise.then(()=>{for(const t of this._progressiveDoneListeners)t()})}transportReady(){this._readyCapability.resolve()}requestDataRange(t,i){jr("Abstract method PDFDataRangeTransport.requestDataRange")}abort(){}};class Okt{constructor(t,i){this._pdfInfo=t,this._transport=i}get annotationStorage(){return this._transport.annotationStorage}get filterFactory(){return this._transport.filterFactory}get numPages(){return this._pdfInfo.numPages}get fingerprints(){return this._pdfInfo.fingerprints}get isPureXfa(){return nr(this,"isPureXfa",!!this._transport._htmlForXfa)}get allXfaHtml(){return this._transport._htmlForXfa}getPage(t){return this._transport.getPage(t)}getPageIndex(t){return this._transport.getPageIndex(t)}getDestinations(){return this._transport.getDestinations()}getDestination(t){return this._transport.getDestination(t)}getPageLabels(){return this._transport.getPageLabels()}getPageLayout(){return this._transport.getPageLayout()}getPageMode(){return this._transport.getPageMode()}getViewerPreferences(){return this._transport.getViewerPreferences()}getOpenAction(){return this._transport.getOpenAction()}getAttachments(){return this._transport.getAttachments()}getJSActions(){return this._transport.getDocJSActions()}getOutline(){return this._transport.getOutline()}getOptionalContentConfig({intent:t="display"}={}){const{renderingIntent:i}=this._transport.getRenderingIntent(t);return this._transport.getOptionalContentConfig(i)}getPermissions(){return this._transport.getPermissions()}getMetadata(){return this._transport.getMetadata()}getMarkInfo(){return this._transport.getMarkInfo()}getData(){return this._transport.getData()}saveDocument(){return this._transport.saveDocument()}getDownloadInfo(){return this._transport.downloadInfoCapability.promise}cleanup(t=!1){return this._transport.startCleanup(t||this.isPureXfa)}destroy(){return this.loadingTask.destroy()}cachedPageNumber(t){return this._transport.cachedPageNumber(t)}get loadingParams(){return this._transport.loadingParams}get loadingTask(){return this._transport.loadingTask}getFieldObjects(){return this._transport.getFieldObjects()}hasJSActions(){return this._transport.hasJSActions()}getCalculationOrderIds(){return this._transport.getCalculationOrderIds()}}class Nkt{#e=null;#t=!1;constructor(t,i,n,a=!1){this._pageIndex=t,this._pageInfo=i,this._transport=n,this._stats=a?new spe:null,this._pdfBug=a,this.commonObjs=n.commonObjs,this.objs=new tMe,this._maybeCleanupAfterRender=!1,this._intentStates=new Map,this.destroyed=!1}get pageNumber(){return this._pageIndex+1}get rotate(){return this._pageInfo.rotate}get ref(){return this._pageInfo.ref}get userUnit(){return this._pageInfo.userUnit}get view(){return this._pageInfo.view}getViewport({scale:t,rotation:i=this.rotate,offsetX:n=0,offsetY:a=0,dontFlip:l=!1}={}){return new mb({viewBox:this.view,scale:t,rotation:i,offsetX:n,offsetY:a,dontFlip:l})}getAnnotations({intent:t="display"}={}){const{renderingIntent:i}=this._transport.getRenderingIntent(t);return this._transport.getAnnotations(this._pageIndex,i)}getJSActions(){return this._transport.getPageJSActions(this._pageIndex)}get filterFactory(){return this._transport.filterFactory}get isPureXfa(){return nr(this,"isPureXfa",!!this._transport._htmlForXfa)}async getXfa(){return this._transport._htmlForXfa?.children[this._pageIndex]||null}render({canvasContext:t,viewport:i,intent:n="display",annotationMode:a=O0.ENABLE,transform:l=null,background:d=null,optionalContentConfigPromise:c=null,annotationCanvasMap:p=null,pageColors:u=null,printAnnotationStorage:h=null}){this._stats?.time("Overall");const m=this._transport.getRenderingIntent(n,a,h),{renderingIntent:f,cacheKey:x}=m;this.#t=!1,this.#r(),c||=this._transport.getOptionalContentConfig(f);let y=this._intentStates.get(x);y||(y=Object.create(null),this._intentStates.set(x,y)),y.streamReaderCancelTimeout&&(clearTimeout(y.streamReaderCancelTimeout),y.streamReaderCancelTimeout=null);const w=!!(f&nc.PRINT);y.displayReadyCapability||(y.displayReadyCapability=Promise.withResolvers(),y.operatorList={fnArray:[],argsArray:[],lastChunk:!1,separateAnnots:null},this._stats?.time("Page Request"),this._pumpOperatorList(m));const b=E=>{y.renderTasks.delete(C),(this._maybeCleanupAfterRender||w)&&(this.#t=!0),this.#o(!w),E?(C.capability.reject(E),this._abortOperatorList({intentState:y,reason:E instanceof Error?E:new Error(E)})):C.capability.resolve(),this._stats&&(this._stats.timeEnd("Rendering"),this._stats.timeEnd("Overall"),globalThis.Stats?.enabled&&globalThis.Stats.add(this.pageNumber,this._stats))},C=new $7({callback:b,params:{canvasContext:t,viewport:i,transform:l,background:d},objs:this.objs,commonObjs:this.commonObjs,annotationCanvasMap:p,operatorList:y.operatorList,pageIndex:this._pageIndex,canvasFactory:this._transport.canvasFactory,filterFactory:this._transport.filterFactory,useRequestAnimationFrame:!w,pdfBug:this._pdfBug,pageColors:u});(y.renderTasks||=new Set).add(C);const k=C.task;return Promise.all([y.displayReadyCapability.promise,c]).then(([E,S])=>{if(this.destroyed){b();return}if(this._stats?.time("Rendering"),!(S.renderingIntent&f))throw new Error("Must use the same `intent`-argument when calling the `PDFPageProxy.render` and `PDFDocumentProxy.getOptionalContentConfig` methods.");C.initializeGraphics({transparency:E,optionalContentConfig:S}),C.operatorListChanged()}).catch(b),k}getOperatorList({intent:t="display",annotationMode:i=O0.ENABLE,printAnnotationStorage:n=null}={}){function a(){d.operatorList.lastChunk&&(d.opListReadCapability.resolve(d.operatorList),d.renderTasks.delete(c))}const l=this._transport.getRenderingIntent(t,i,n,!0);let d=this._intentStates.get(l.cacheKey);d||(d=Object.create(null),this._intentStates.set(l.cacheKey,d));let c;return d.opListReadCapability||(c=Object.create(null),c.operatorListChanged=a,d.opListReadCapability=Promise.withResolvers(),(d.renderTasks||=new Set).add(c),d.operatorList={fnArray:[],argsArray:[],lastChunk:!1,separateAnnots:null},this._stats?.time("Page Request"),this._pumpOperatorList(l)),d.opListReadCapability.promise}streamTextContent({includeMarkedContent:t=!1,disableNormalization:i=!1}={}){return this._transport.messageHandler.sendWithStream("GetTextContent",{pageIndex:this._pageIndex,includeMarkedContent:t===!0,disableNormalization:i===!0},{highWaterMark:100,size(a){return a.items.length}})}getTextContent(t={}){if(this._transport._htmlForXfa)return this.getXfa().then(n=>cw.textContent(n));const i=this.streamTextContent(t);return new Promise(function(n,a){function l(){d.read().then(function({value:p,done:u}){if(u){n(c);return}c.lang??=p.lang,Object.assign(c.styles,p.styles),c.items.push(...p.items),l()},a)}const d=i.getReader(),c={items:[],styles:Object.create(null),lang:null};l()})}getStructTree(){return this._transport.getStructTree(this._pageIndex)}_destroy(){this.destroyed=!0;const t=[];for(const i of this._intentStates.values())if(this._abortOperatorList({intentState:i,reason:new Error("Page was destroyed."),force:!0}),!i.opListReadCapability)for(const n of i.renderTasks)t.push(n.completed),n.cancel();return this.objs.clear(),this.#t=!1,this.#r(),Promise.all(t)}cleanup(t=!1){this.#t=!0;const i=this.#o(!1);return t&&i&&(this._stats&&=new spe),i}#o(t=!1){if(this.#r(),!this.#t||this.destroyed)return!1;if(t)return this.#e=setTimeout(()=>{this.#e=null,this.#o(!1)},Mkt),!1;for(const{renderTasks:i,operatorList:n}of this._intentStates.values())if(i.size>0||!n.lastChunk)return!1;return this._intentStates.clear(),this.objs.clear(),this.#t=!1,!0}#r(){this.#e&&(clearTimeout(this.#e),this.#e=null)}_startRenderPage(t,i){const n=this._intentStates.get(i);n&&(this._stats?.timeEnd("Page Request"),n.displayReadyCapability?.resolve(t))}_renderPageChunk(t,i){for(let n=0,a=t.length;n<a;n++)i.operatorList.fnArray.push(t.fnArray[n]),i.operatorList.argsArray.push(t.argsArray[n]);i.operatorList.lastChunk=t.lastChunk,i.operatorList.separateAnnots=t.separateAnnots;for(const n of i.renderTasks)n.operatorListChanged();t.lastChunk&&this.#o(!0)}_pumpOperatorList({renderingIntent:t,cacheKey:i,annotationStorageSerializable:n}){const{map:a,transfer:l}=n,c=this._transport.messageHandler.sendWithStream("GetOperatorList",{pageIndex:this._pageIndex,intent:t,cacheKey:i,annotationStorage:a},l).getReader(),p=this._intentStates.get(i);p.streamReader=c;const u=()=>{c.read().then(({value:h,done:m})=>{if(m){p.streamReader=null;return}this._transport.destroyed||(this._renderPageChunk(h,p),u())},h=>{if(p.streamReader=null,!this._transport.destroyed){if(p.operatorList){p.operatorList.lastChunk=!0;for(const m of p.renderTasks)m.operatorListChanged();this.#o(!0)}if(p.displayReadyCapability)p.displayReadyCapability.reject(h);else if(p.opListReadCapability)p.opListReadCapability.reject(h);else throw h}})};u()}_abortOperatorList({intentState:t,reason:i,force:n=!1}){if(t.streamReader){if(t.streamReaderCancelTimeout&&(clearTimeout(t.streamReaderCancelTimeout),t.streamReaderCancelTimeout=null),!n){if(t.renderTasks.size>0)return;if(i instanceof PK){let a=jkt;i.extraDelay>0&&i.extraDelay<1e3&&(a+=i.extraDelay),t.streamReaderCancelTimeout=setTimeout(()=>{t.streamReaderCancelTimeout=null,this._abortOperatorList({intentState:t,reason:i,force:!0})},a);return}}if(t.streamReader.cancel(new K4(i.message)).catch(()=>{}),t.streamReader=null,!this._transport.destroyed){for(const[a,l]of this._intentStates)if(l===t){this._intentStates.delete(a);break}this.cleanup()}}}get stats(){return this._stats}}class Hkt{#e=new Set;#t=Promise.resolve();postMessage(t,i){const n={data:structuredClone(t,i?{transfer:i}:null)};this.#t.then(()=>{for(const a of this.#e)a.call(this,n)})}addEventListener(t,i){this.#e.add(i)}removeEventListener(t,i){this.#e.delete(i)}terminate(){this.#e.clear()}}const Gh={isWorkerDisabled:!1,fakeWorkerId:0};Rs&&(Gh.isWorkerDisabled=!0,dw.workerSrc||="./pdf.worker.mjs"),Gh.isSameOrigin=function(e,t){let i;try{if(i=new URL(e),!i.origin||i.origin==="null")return!1}catch{return!1}const n=new URL(t,i);return i.origin===n.origin},Gh.createCDNWrapper=function(e){const t=`await import("${e}");`;return URL.createObjectURL(new Blob([t],{type:"text/javascript"}))};class dc{static#e;constructor({name:t=null,port:i=null,verbosity:n=w$t()}={}){if(this.name=t,this.destroyed=!1,this.verbosity=n,this._readyCapability=Promise.withResolvers(),this._port=null,this._webWorker=null,this._messageHandler=null,i){if(dc.#e?.has(i))throw new Error("Cannot use more than one PDFWorker per port.");(dc.#e||=new WeakMap).set(i,this),this._initializeFromPort(i);return}this._initialize()}get promise(){return Rs?Promise.all([Uu.promise,this._readyCapability.promise]):this._readyCapability.promise}#t(){this._readyCapability.resolve(),this._messageHandler.send("configure",{verbosity:this.verbosity})}get port(){return this._port}get messageHandler(){return this._messageHandler}_initializeFromPort(t){this._port=t,this._messageHandler=new Px("main","worker",t),this._messageHandler.on("ready",function(){}),this.#t()}_initialize(){if(Gh.isWorkerDisabled||dc.#o){this._setupFakeWorker();return}let{workerSrc:t}=dc;try{Gh.isSameOrigin(window.location.href,t)||(t=Gh.createCDNWrapper(new URL(t,window.location).href));const i=new Worker(t,{type:"module"}),n=new Px("main","worker",i),a=()=>{l.abort(),n.destroy(),i.terminate(),this.destroyed?this._readyCapability.reject(new Error("Worker was destroyed")):this._setupFakeWorker()},l=new AbortController;i.addEventListener("error",()=>{this._webWorker||a()},{signal:l.signal}),n.on("test",c=>{if(l.abort(),this.destroyed||!c){a();return}this._messageHandler=n,this._port=i,this._webWorker=i,this.#t()}),n.on("ready",c=>{if(l.abort(),this.destroyed){a();return}try{d()}catch{this._setupFakeWorker()}});const d=()=>{const c=new Uint8Array;n.send("test",c,[c.buffer])};d();return}catch{_L("The worker has been disabled.")}this._setupFakeWorker()}_setupFakeWorker(){Gh.isWorkerDisabled||(Pi("Setting up fake worker."),Gh.isWorkerDisabled=!0),dc._setupFakeWorkerGlobal.then(t=>{if(this.destroyed){this._readyCapability.reject(new Error("Worker was destroyed"));return}const i=new Hkt;this._port=i;const n=`fake${Gh.fakeWorkerId++}`,a=new Px(n+"_worker",n,i);t.setup(a,i),this._messageHandler=new Px(n,n+"_worker",i),this.#t()}).catch(t=>{this._readyCapability.reject(new Error(`Setting up fake worker failed: "${t.message}".`))})}destroy(){this.destroyed=!0,this._webWorker&&(this._webWorker.terminate(),this._webWorker=null),dc.#e?.delete(this._port),this._port=null,this._messageHandler&&(this._messageHandler.destroy(),this._messageHandler=null)}static fromPort(t){if(!t?.port)throw new Error("PDFWorker.fromPort - invalid method signature.");const i=this.#e?.get(t.port);if(i){if(i._pendingDestroy)throw new Error("PDFWorker.fromPort - the worker is being destroyed.\nPlease remember to await `PDFDocumentLoadingTask.destroy()`-calls.");return i}return new dc(t)}static get workerSrc(){if(dw.workerSrc)return dw.workerSrc;throw new Error('No "GlobalWorkerOptions.workerSrc" specified.')}static get#o(){try{return globalThis.pdfjsWorker?.WorkerMessageHandler||null}catch{return null}}static get _setupFakeWorkerGlobal(){return nr(this,"_setupFakeWorkerGlobal",(async()=>this.#o?this.#o:(await import(this.workerSrc)).WorkerMessageHandler)())}}class _kt{#e=new Map;#t=new Map;#o=new Map;#r=new Map;#s=null;constructor(t,i,n,a,l){this.messageHandler=t,this.loadingTask=i,this.commonObjs=new tMe,this.fontLoader=new N$t({ownerDocument:a.ownerDocument,styleElement:a.styleElement}),this.loadingParams=a.loadingParams,this._params=a,this.canvasFactory=l.canvasFactory,this.filterFactory=l.filterFactory,this.cMapReaderFactory=l.cMapReaderFactory,this.standardFontDataFactory=l.standardFontDataFactory,this.destroyed=!1,this.destroyCapability=null,this._networkStream=n,this._fullReader=null,this._lastProgress=null,this.downloadInfoCapability=Promise.withResolvers(),this.setupMessageHandler()}#i(t,i=null){const n=this.#e.get(t);if(n)return n;const a=this.messageHandler.sendWithPromise(t,i);return this.#e.set(t,a),a}get annotationStorage(){return nr(this,"annotationStorage",new HK)}getRenderingIntent(t,i=O0.ENABLE,n=null,a=!1){let l=nc.DISPLAY,d=mU;switch(t){case"any":l=nc.ANY;break;case"display":break;case"print":l=nc.PRINT;break;default:Pi(`getRenderingIntent - invalid intent: ${t}`)}switch(i){case O0.DISABLE:l+=nc.ANNOTATIONS_DISABLE;break;case O0.ENABLE:break;case O0.ENABLE_FORMS:l+=nc.ANNOTATIONS_FORMS;break;case O0.ENABLE_STORAGE:l+=nc.ANNOTATIONS_STORAGE,d=(l&nc.PRINT&&n instanceof Uje?n:this.annotationStorage).serializable;break;default:Pi(`getRenderingIntent - invalid annotationMode: ${i}`)}return a&&(l+=nc.OPLIST),{renderingIntent:l,cacheKey:`${l}_${d.hash}`,annotationStorageSerializable:d}}destroy(){if(this.destroyCapability)return this.destroyCapability.promise;this.destroyed=!0,this.destroyCapability=Promise.withResolvers(),this.#s?.reject(new Error("Worker was destroyed during onPassword callback"));const t=[];for(const n of this.#t.values())t.push(n._destroy());this.#t.clear(),this.#o.clear(),this.#r.clear(),this.hasOwnProperty("annotationStorage")&&this.annotationStorage.resetModified();const i=this.messageHandler.sendWithPromise("Terminate",null);return t.push(i),Promise.all(t).then(()=>{this.commonObjs.clear(),this.fontLoader.clear(),this.#e.clear(),this.filterFactory.destroy(),hS.cleanup(),this._networkStream?.cancelAllRequests(new K4("Worker was terminated.")),this.messageHandler&&(this.messageHandler.destroy(),this.messageHandler=null),this.destroyCapability.resolve()},this.destroyCapability.reject),this.destroyCapability.promise}setupMessageHandler(){const{messageHandler:t,loadingTask:i}=this;t.on("GetReader",(n,a)=>{Ca(this._networkStream,"GetReader - no `IPDFStream` instance available."),this._fullReader=this._networkStream.getFullReader(),this._fullReader.onProgress=l=>{this._lastProgress={loaded:l.loaded,total:l.total}},a.onPull=()=>{this._fullReader.read().then(function({value:l,done:d}){if(d){a.close();return}Ca(l instanceof ArrayBuffer,"GetReader - expected an ArrayBuffer."),a.enqueue(new Uint8Array(l),1,[l])}).catch(l=>{a.error(l)})},a.onCancel=l=>{this._fullReader.cancel(l),a.ready.catch(d=>{if(!this.destroyed)throw d})}}),t.on("ReaderHeadersReady",n=>{const a=Promise.withResolvers(),l=this._fullReader;return l.headersReady.then(()=>{(!l.isStreamingSupported||!l.isRangeSupported)&&(this._lastProgress&&i.onProgress?.(this._lastProgress),l.onProgress=d=>{i.onProgress?.({loaded:d.loaded,total:d.total})}),a.resolve({isStreamingSupported:l.isStreamingSupported,isRangeSupported:l.isRangeSupported,contentLength:l.contentLength})},a.reject),a.promise}),t.on("GetRangeReader",(n,a)=>{Ca(this._networkStream,"GetRangeReader - no `IPDFStream` instance available.");const l=this._networkStream.getRangeReader(n.begin,n.end);if(!l){a.close();return}a.onPull=()=>{l.read().then(function({value:d,done:c}){if(c){a.close();return}Ca(d instanceof ArrayBuffer,"GetRangeReader - expected an ArrayBuffer."),a.enqueue(new Uint8Array(d),1,[d])}).catch(d=>{a.error(d)})},a.onCancel=d=>{l.cancel(d),a.ready.catch(c=>{if(!this.destroyed)throw c})}}),t.on("GetDoc",({pdfInfo:n})=>{this._numPages=n.numPages,this._htmlForXfa=n.htmlForXfa,delete n.htmlForXfa,i._capability.resolve(new Okt(n,this))}),t.on("DocException",function(n){let a;switch(n.name){case"PasswordException":a=new uU(n.message,n.code);break;case"InvalidPDFException":a=new Fje(n.message);break;case"MissingPDFException":a=new Y4(n.message);break;case"UnexpectedResponseException":a=new VL(n.message,n.status);break;case"UnknownErrorException":a=new hU(n.message,n.details);break;default:jr("DocException - expected a valid Error.")}i._capability.reject(a)}),t.on("PasswordRequest",n=>{if(this.#s=Promise.withResolvers(),i.onPassword){const a=l=>{l instanceof Error?this.#s.reject(l):this.#s.resolve({password:l})};try{i.onPassword(a,n.code)}catch(l){this.#s.reject(l)}}else this.#s.reject(new uU(n.message,n.code));return this.#s.promise}),t.on("DataLoaded",n=>{i.onProgress?.({loaded:n.length,total:n.length}),this.downloadInfoCapability.resolve(n)}),t.on("StartRenderPage",n=>{if(this.destroyed)return;this.#t.get(n.pageIndex)._startRenderPage(n.transparency,n.cacheKey)}),t.on("commonobj",([n,a,l])=>{if(this.destroyed||this.commonObjs.has(n))return null;switch(a){case"Font":const{disableFontFace:d,fontExtraProperties:c,pdfBug:p}=this._params;if("error"in l){const f=l.error;Pi(`Error during font loading: ${f}`),this.commonObjs.resolve(n,f);break}const u=p&&globalThis.FontInspector?.enabled?(f,x)=>globalThis.FontInspector.fontAdded(f,x):null,h=new H$t(l,{disableFontFace:d,inspectFont:u});this.fontLoader.bind(h).catch(()=>t.sendWithPromise("FontFallback",{id:n})).finally(()=>{!c&&h.data&&(h.data=null),this.commonObjs.resolve(n,h)});break;case"CopyLocalImage":const{imageRef:m}=l;Ca(m,"The imageRef must be defined.");for(const f of this.#t.values())for(const[,x]of f.objs)if(x?.ref===m)return x.dataLen?(this.commonObjs.resolve(n,structuredClone(x)),x.dataLen):null;break;case"FontPath":case"Image":case"Pattern":this.commonObjs.resolve(n,l);break;default:throw new Error(`Got unknown common object type ${a}`)}return null}),t.on("obj",([n,a,l,d])=>{if(this.destroyed)return;const c=this.#t.get(a);if(!c.objs.has(n)){if(c._intentStates.size===0){d?.bitmap?.close();return}switch(l){case"Image":c.objs.resolve(n,d),d?.dataLen>m$t&&(c._maybeCleanupAfterRender=!0);break;case"Pattern":c.objs.resolve(n,d);break;default:throw new Error(`Got unknown object type ${l}`)}}}),t.on("DocProgress",n=>{this.destroyed||i.onProgress?.({loaded:n.loaded,total:n.total})}),t.on("FetchBuiltInCMap",n=>this.destroyed?Promise.reject(new Error("Worker was destroyed.")):this.cMapReaderFactory?this.cMapReaderFactory.fetch(n):Promise.reject(new Error("CMapReaderFactory not initialized, see the `useWorkerFetch` parameter."))),t.on("FetchStandardFontData",n=>this.destroyed?Promise.reject(new Error("Worker was destroyed.")):this.standardFontDataFactory?this.standardFontDataFactory.fetch(n):Promise.reject(new Error("StandardFontDataFactory not initialized, see the `useWorkerFetch` parameter.")))}getData(){return this.messageHandler.sendWithPromise("GetData",null)}saveDocument(){this.annotationStorage.size<=0&&Pi("saveDocument called while `annotationStorage` is empty, please use the getData-method instead.");const{map:t,transfer:i}=this.annotationStorage.serializable;return this.messageHandler.sendWithPromise("SaveDocument",{isPureXfa:!!this._htmlForXfa,numPages:this._numPages,annotationStorage:t,filename:this._fullReader?.filename??null},i).finally(()=>{this.annotationStorage.resetModified()})}getPage(t){if(!Number.isInteger(t)||t<=0||t>this._numPages)return Promise.reject(new Error("Invalid page request."));const i=t-1,n=this.#o.get(i);if(n)return n;const a=this.messageHandler.sendWithPromise("GetPage",{pageIndex:i}).then(l=>{if(this.destroyed)throw new Error("Transport destroyed");l.refStr&&this.#r.set(l.refStr,t);const d=new Nkt(i,l,this,this._params.pdfBug);return this.#t.set(i,d),d});return this.#o.set(i,a),a}getPageIndex(t){return vpe(t)?this.messageHandler.sendWithPromise("GetPageIndex",{num:t.num,gen:t.gen}):Promise.reject(new Error("Invalid pageIndex request."))}getAnnotations(t,i){return this.messageHandler.sendWithPromise("GetAnnotations",{pageIndex:t,intent:i})}getFieldObjects(){return this.#i("GetFieldObjects")}hasJSActions(){return this.#i("HasJSActions")}getCalculationOrderIds(){return this.messageHandler.sendWithPromise("GetCalculationOrderIds",null)}getDestinations(){return this.messageHandler.sendWithPromise("GetDestinations",null)}getDestination(t){return typeof t!="string"?Promise.reject(new Error("Invalid destination request.")):this.messageHandler.sendWithPromise("GetDestination",{id:t})}getPageLabels(){return this.messageHandler.sendWithPromise("GetPageLabels",null)}getPageLayout(){return this.messageHandler.sendWithPromise("GetPageLayout",null)}getPageMode(){return this.messageHandler.sendWithPromise("GetPageMode",null)}getViewerPreferences(){return this.messageHandler.sendWithPromise("GetViewerPreferences",null)}getOpenAction(){return this.messageHandler.sendWithPromise("GetOpenAction",null)}getAttachments(){return this.messageHandler.sendWithPromise("GetAttachments",null)}getDocJSActions(){return this.#i("GetDocJSActions")}getPageJSActions(t){return this.messageHandler.sendWithPromise("GetPageJSActions",{pageIndex:t})}getStructTree(t){return this.messageHandler.sendWithPromise("GetStructTree",{pageIndex:t})}getOutline(){return this.messageHandler.sendWithPromise("GetOutline",null)}getOptionalContentConfig(t){return this.#i("GetOptionalContentConfig").then(i=>new skt(i,t))}getPermissions(){return this.messageHandler.sendWithPromise("GetPermissions",null)}getMetadata(){const t="GetMetadata",i=this.#e.get(t);if(i)return i;const n=this.messageHandler.sendWithPromise(t,null).then(a=>({info:a[0],metadata:a[1]?new nkt(a[1]):null,contentDispositionFilename:this._fullReader?.filename??null,contentLength:this._fullReader?.contentLength??null}));return this.#e.set(t,n),n}getMarkInfo(){return this.messageHandler.sendWithPromise("GetMarkInfo",null)}async startCleanup(t=!1){if(!this.destroyed){await this.messageHandler.sendWithPromise("Cleanup",null);for(const i of this.#t.values())if(!i.cleanup())throw new Error(`startCleanup: Page ${i.pageNumber} is currently rendering.`);this.commonObjs.clear(),t||this.fontLoader.clear(),this.#e.clear(),this.filterFactory.destroy(!0),hS.cleanup()}}cachedPageNumber(t){if(!vpe(t))return null;const i=t.gen===0?`${t.num}R`:`${t.num}R${t.gen}`;return this.#r.get(i)??null}}const dC=Symbol("INITIAL_DATA");class tMe{#e=Object.create(null);#t(t){return this.#e[t]||={...Promise.withResolvers(),data:dC}}get(t,i=null){if(i){const a=this.#t(t);return a.promise.then(()=>i(a.data)),null}const n=this.#e[t];if(!n||n.data===dC)throw new Error(`Requesting object that isn't resolved yet ${t}.`);return n.data}has(t){const i=this.#e[t];return!!i&&i.data!==dC}resolve(t,i=null){const n=this.#t(t);n.data=i,n.resolve()}clear(){for(const t in this.#e){const{data:i}=this.#e[t];i?.bitmap?.close()}this.#e=Object.create(null)}*[Symbol.iterator](){for(const t in this.#e){const{data:i}=this.#e[t];i!==dC&&(yield[t,i])}}}class Vkt{#e=null;constructor(t){this.#e=t,this.onContinue=null}get promise(){return this.#e.capability.promise}cancel(t=0){this.#e.cancel(null,t)}get separateAnnots(){const{separateAnnots:t}=this.#e.operatorList;if(!t)return!1;const{annotationCanvasMap:i}=this.#e;return t.form||t.canvas&&i?.size>0}}class $7{#e=null;static#t=new WeakSet;constructor({callback:t,params:i,objs:n,commonObjs:a,annotationCanvasMap:l,operatorList:d,pageIndex:c,canvasFactory:p,filterFactory:u,useRequestAnimationFrame:h=!1,pdfBug:m=!1,pageColors:f=null}){this.callback=t,this.params=i,this.objs=n,this.commonObjs=a,this.annotationCanvasMap=l,this.operatorListIdx=null,this.operatorList=d,this._pageIndex=c,this.canvasFactory=p,this.filterFactory=u,this._pdfBug=m,this.pageColors=f,this.running=!1,this.graphicsReadyCallback=null,this.graphicsReady=!1,this._useRequestAnimationFrame=h===!0&&typeof window<"u",this.cancelled=!1,this.capability=Promise.withResolvers(),this.task=new Vkt(this),this._cancelBound=this.cancel.bind(this),this._continueBound=this._continue.bind(this),this._scheduleNextBound=this._scheduleNext.bind(this),this._nextBound=this._next.bind(this),this._canvas=i.canvasContext.canvas}get completed(){return this.capability.promise.catch(function(){})}initializeGraphics({transparency:t=!1,optionalContentConfig:i}){if(this.cancelled)return;if(this._canvas){if($7.#t.has(this._canvas))throw new Error("Cannot use the same canvas during multiple render() operations. Use different canvas or ensure previous operations were cancelled or completed.");$7.#t.add(this._canvas)}this._pdfBug&&globalThis.StepperManager?.enabled&&(this.stepper=globalThis.StepperManager.create(this._pageIndex),this.stepper.init(this.operatorList),this.stepper.nextBreakPoint=this.stepper.getNextBreakPoint());const{canvasContext:n,viewport:a,transform:l,background:d}=this.params;this.gfx=new N7(n,this.commonObjs,this.objs,this.canvasFactory,this.filterFactory,{optionalContentConfig:i},this.annotationCanvasMap,this.pageColors),this.gfx.beginDrawing({transform:l,viewport:a,transparency:t,background:d}),this.operatorListIdx=0,this.graphicsReady=!0,this.graphicsReadyCallback?.()}cancel(t=null,i=0){this.running=!1,this.cancelled=!0,this.gfx?.endDrawing(),this.#e&&(window.cancelAnimationFrame(this.#e),this.#e=null),$7.#t.delete(this._canvas),this.callback(t||new PK(`Rendering cancelled, page ${this._pageIndex+1}`,i))}operatorListChanged(){if(!this.graphicsReady){this.graphicsReadyCallback||=this._continueBound;return}this.stepper?.updateOperatorList(this.operatorList),!this.running&&this._continue()}_continue(){this.running=!0,!this.cancelled&&(this.task.onContinue?this.task.onContinue(this._scheduleNextBound):this._scheduleNext())}_scheduleNext(){this._useRequestAnimationFrame?this.#e=window.requestAnimationFrame(()=>{this.#e=null,this._nextBound().catch(this._cancelBound)}):Promise.resolve().then(this._nextBound).catch(this._cancelBound)}async _next(){this.cancelled||(this.operatorListIdx=this.gfx.executeOperatorList(this.operatorList,this.operatorListIdx,this._continueBound,this.stepper),this.operatorListIdx===this.operatorList.argsArray.length&&(this.running=!1,this.operatorList.lastChunk&&(this.gfx.endDrawing(),$7.#t.delete(this._canvas),this.callback())))}}const Qkt="4.4.168",Ukt="19fbc8998";function Cpe(e){return Math.floor(Math.max(0,Math.min(1,e))*255).toString(16).padStart(2,"0")}function M9(e){return Math.max(0,Math.min(255,255*e))}class Ape{static CMYK_G([t,i,n,a]){return["G",1-Math.min(1,.3*t+.59*n+.11*i+a)]}static G_CMYK([t]){return["CMYK",0,0,0,1-t]}static G_RGB([t]){return["RGB",t,t,t]}static G_rgb([t]){return t=M9(t),[t,t,t]}static G_HTML([t]){const i=Cpe(t);return`#${i}${i}${i}`}static RGB_G([t,i,n]){return["G",.3*t+.59*i+.11*n]}static RGB_rgb(t){return t.map(M9)}static RGB_HTML(t){return`#${t.map(Cpe).join("")}`}static T_HTML(){return"#00000000"}static T_rgb(){return[null]}static CMYK_RGB([t,i,n,a]){return["RGB",1-Math.min(1,t+a),1-Math.min(1,n+a),1-Math.min(1,i+a)]}static CMYK_rgb([t,i,n,a]){return[M9(1-Math.min(1,t+a)),M9(1-Math.min(1,n+a)),M9(1-Math.min(1,i+a))]}static CMYK_HTML(t){const i=this.CMYK_RGB(t).slice(1);return this.RGB_HTML(i)}static RGB_CMYK([t,i,n]){const a=1-t,l=1-i,d=1-n,c=Math.min(a,l,d);return["CMYK",a,l,d,c]}}class oMe{static setupStorage(t,i,n,a,l){const d=a.getValue(i,{value:null});switch(n.name){case"textarea":if(d.value!==null&&(t.textContent=d.value),l==="print")break;t.addEventListener("input",c=>{a.setValue(i,{value:c.target.value})});break;case"input":if(n.attributes.type==="radio"||n.attributes.type==="checkbox"){if(d.value===n.attributes.xfaOn?t.setAttribute("checked",!0):d.value===n.attributes.xfaOff&&t.removeAttribute("checked"),l==="print")break;t.addEventListener("change",c=>{a.setValue(i,{value:c.target.checked?c.target.getAttribute("xfaOn"):c.target.getAttribute("xfaOff")})})}else{if(d.value!==null&&t.setAttribute("value",d.value),l==="print")break;t.addEventListener("input",c=>{a.setValue(i,{value:c.target.value})})}break;case"select":if(d.value!==null){t.setAttribute("value",d.value);for(const c of n.children)c.attributes.value===d.value?c.attributes.selected=!0:c.attributes.hasOwnProperty("selected")&&delete c.attributes.selected}t.addEventListener("input",c=>{const p=c.target.options,u=p.selectedIndex===-1?"":p[p.selectedIndex].value;a.setValue(i,{value:u})});break}}static setAttributes({html:t,element:i,storage:n=null,intent:a,linkService:l}){const{attributes:d}=i,c=t instanceof HTMLAnchorElement;d.type==="radio"&&(d.name=`${d.name}-${a}`);for(const[p,u]of Object.entries(d))if(u!=null)switch(p){case"class":u.length&&t.setAttribute(p,u.join(" "));break;case"dataId":break;case"id":t.setAttribute("data-element-id",u);break;case"style":Object.assign(t.style,u);break;case"textContent":t.textContent=u;break;default:(!c||p!=="href"&&p!=="newWindow")&&t.setAttribute(p,u)}c&&l.addLinkAttributes(t,d.href,d.newWindow),n&&d.dataId&&this.setupStorage(t,d.dataId,i,n)}static render(t){const i=t.annotationStorage,n=t.linkService,a=t.xfaHtml,l=t.intent||"display",d=document.createElement(a.name);a.attributes&&this.setAttributes({html:d,element:a,intent:l,linkService:n});const c=l!=="richText",p=t.div;if(p.append(d),t.viewport){const m=`matrix(${t.viewport.transform.join(",")})`;p.style.transform=m}c&&p.setAttribute("class","xfaLayer xfaFont");const u=[];if(a.children.length===0){if(a.value){const m=document.createTextNode(a.value);d.append(m),c&&cw.shouldBuildText(a.name)&&u.push(m)}return{textDivs:u}}const h=[[a,-1,d]];for(;h.length>0;){const[m,f,x]=h.at(-1);if(f+1===m.children.length){h.pop();continue}const y=m.children[++h.at(-1)[1]];if(y===null)continue;const{name:w}=y;if(w==="#text"){const C=document.createTextNode(y.value);u.push(C),x.append(C);continue}const b=y?.attributes?.xmlns?document.createElementNS(y.attributes.xmlns,w):document.createElement(w);if(x.append(b),y.attributes&&this.setAttributes({html:b,element:y,storage:i,intent:l,linkService:n}),y.children?.length>0)h.push([y,-1,b]);else if(y.value){const C=document.createTextNode(y.value);c&&cw.shouldBuildText(w)&&u.push(C),b.append(C)}}for(const m of p.querySelectorAll(".xfaNonInteractive input, .xfaNonInteractive textarea"))m.setAttribute("readOnly",!0);return{textDivs:u}}static update(t){const i=`matrix(${t.viewport.transform.join(",")})`;t.div.style.transform=i,t.div.hidden=!1}}const xb=1e3,Wkt=9,E4=new WeakSet;function f2(e){return{width:e[2]-e[0],height:e[3]-e[1]}}class Gkt{static create(t){switch(t.data.annotationType){case xa.LINK:return new iMe(t);case xa.TEXT:return new Ykt(t);case xa.WIDGET:switch(t.data.fieldType){case"Tx":return new Kkt(t);case"Btn":return t.data.radioButton?new rMe(t):t.data.checkBox?new Zkt(t):new Jkt(t);case"Ch":return new Xkt(t);case"Sig":return new qkt(t)}return new q4(t);case xa.POPUP:return new yU(t);case xa.FREETEXT:return new nMe(t);case xa.LINE:return new tSt(t);case xa.SQUARE:return new oSt(t);case xa.CIRCLE:return new iSt(t);case xa.POLYLINE:return new aMe(t);case xa.CARET:return new nSt(t);case xa.INK:return new sMe(t);case xa.POLYGON:return new rSt(t);case xa.HIGHLIGHT:return new aSt(t);case xa.UNDERLINE:return new sSt(t);case xa.SQUIGGLY:return new lSt(t);case xa.STRIKEOUT:return new dSt(t);case xa.STAMP:return new lMe(t);case xa.FILEATTACHMENT:return new cSt(t);default:return new Vn(t)}}}class Vn{#e=null;#t=!1;#o=null;constructor(t,{isRenderable:i=!1,ignoreBorder:n=!1,createQuadrilaterals:a=!1}={}){this.isRenderable=i,this.data=t.data,this.layer=t.layer,this.linkService=t.linkService,this.downloadManager=t.downloadManager,this.imageResourcesPath=t.imageResourcesPath,this.renderForms=t.renderForms,this.svgFactory=t.svgFactory,this.annotationStorage=t.annotationStorage,this.enableScripting=t.enableScripting,this.hasJSActions=t.hasJSActions,this._fieldObjects=t.fieldObjects,this.parent=t.parent,i&&(this.container=this._createContainer(n)),a&&this._createQuadrilaterals()}static _hasPopupData({titleObj:t,contentsObj:i,richText:n}){return!!(t?.str||i?.str||n?.str)}get hasPopupData(){return Vn._hasPopupData(this.data)}updateEdited(t){if(!this.container)return;this.#e||={rect:this.data.rect.slice(0)};const{rect:i}=t;i&&this.#r(i),this.#o?.popup.updateEdited(t)}resetEdited(){this.#e&&(this.#r(this.#e.rect),this.#o?.popup.resetEdited(),this.#e=null)}#r(t){const{container:{style:i},data:{rect:n,rotation:a},parent:{viewport:{rawDims:{pageWidth:l,pageHeight:d,pageX:c,pageY:p}}}}=this;n?.splice(0,4,...t);const{width:u,height:h}=f2(t);i.left=`${100*(t[0]-c)/l}%`,i.top=`${100*(d-t[3]+p)/d}%`,a===0?(i.width=`${100*u/l}%`,i.height=`${100*h/d}%`):this.setRotation(a)}_createContainer(t){const{data:i,parent:{page:n,viewport:a}}=this,l=document.createElement("section");l.setAttribute("data-annotation-id",i.id),this instanceof q4||(l.tabIndex=xb);const{style:d}=l;if(d.zIndex=this.parent.zIndex++,i.popupRef&&l.setAttribute("aria-haspopup","dialog"),i.alternativeText&&(l.title=i.alternativeText),i.noRotate&&l.classList.add("norotate"),!i.rect||this instanceof yU){const{rotation:w}=i;return!i.hasOwnCanvas&&w!==0&&this.setRotation(w,l),l}const{width:c,height:p}=f2(i.rect);if(!t&&i.borderStyle.width>0){d.borderWidth=`${i.borderStyle.width}px`;const w=i.borderStyle.horizontalCornerRadius,b=i.borderStyle.verticalCornerRadius;if(w>0||b>0){const k=`calc(${w}px * var(--scale-factor)) / calc(${b}px * var(--scale-factor))`;d.borderRadius=k}else if(this instanceof rMe){const k=`calc(${c}px * var(--scale-factor)) / calc(${p}px * var(--scale-factor))`;d.borderRadius=k}switch(i.borderStyle.style){case I9.SOLID:d.borderStyle="solid";break;case I9.DASHED:d.borderStyle="dashed";break;case I9.BEVELED:Pi("Unimplemented border style: beveled");break;case I9.INSET:Pi("Unimplemented border style: inset");break;case I9.UNDERLINE:d.borderBottomStyle="solid";break}const C=i.borderColor||null;C?(this.#t=!0,d.borderColor=ko.makeHexColor(C[0]|0,C[1]|0,C[2]|0)):d.borderWidth=0}const u=ko.normalizeRect([i.rect[0],n.view[3]-i.rect[1]+n.view[1],i.rect[2],n.view[3]-i.rect[3]+n.view[1]]),{pageWidth:h,pageHeight:m,pageX:f,pageY:x}=a.rawDims;d.left=`${100*(u[0]-f)/h}%`,d.top=`${100*(u[1]-x)/m}%`;const{rotation:y}=i;return i.hasOwnCanvas||y===0?(d.width=`${100*c/h}%`,d.height=`${100*p/m}%`):this.setRotation(y,l),l}setRotation(t,i=this.container){if(!this.data.rect)return;const{pageWidth:n,pageHeight:a}=this.parent.viewport.rawDims,{width:l,height:d}=f2(this.data.rect);let c,p;t%180===0?(c=100*l/n,p=100*d/a):(c=100*d/n,p=100*l/a),i.style.width=`${c}%`,i.style.height=`${p}%`,i.setAttribute("data-main-rotation",(360-t)%360)}get _commonActions(){const t=(i,n,a)=>{const l=a.detail[i],d=l[0],c=l.slice(1);a.target.style[n]=Ape[`${d}_HTML`](c),this.annotationStorage.setValue(this.data.id,{[n]:Ape[`${d}_rgb`](c)})};return nr(this,"_commonActions",{display:i=>{const{display:n}=i.detail,a=n%2===1;this.container.style.visibility=a?"hidden":"visible",this.annotationStorage.setValue(this.data.id,{noView:a,noPrint:n===1||n===2})},print:i=>{this.annotationStorage.setValue(this.data.id,{noPrint:!i.detail.print})},hidden:i=>{const{hidden:n}=i.detail;this.container.style.visibility=n?"hidden":"visible",this.annotationStorage.setValue(this.data.id,{noPrint:n,noView:n})},focus:i=>{setTimeout(()=>i.target.focus({preventScroll:!1}),0)},userName:i=>{i.target.title=i.detail.userName},readonly:i=>{i.target.disabled=i.detail.readonly},required:i=>{this._setRequired(i.target,i.detail.required)},bgColor:i=>{t("bgColor","backgroundColor",i)},fillColor:i=>{t("fillColor","backgroundColor",i)},fgColor:i=>{t("fgColor","color",i)},textColor:i=>{t("textColor","color",i)},borderColor:i=>{t("borderColor","borderColor",i)},strokeColor:i=>{t("strokeColor","borderColor",i)},rotation:i=>{const n=i.detail.rotation;this.setRotation(n),this.annotationStorage.setValue(this.data.id,{rotation:n})}})}_dispatchEventFromSandbox(t,i){const n=this._commonActions;for(const a of Object.keys(i.detail))(t[a]||n[a])?.(i)}_setDefaultPropertiesFromJS(t){if(!this.enableScripting)return;const i=this.annotationStorage.getRawValue(this.data.id);if(!i)return;const n=this._commonActions;for(const[a,l]of Object.entries(i)){const d=n[a];if(d){const c={detail:{[a]:l},target:t};d(c),delete i[a]}}}_createQuadrilaterals(){if(!this.container)return;const{quadPoints:t}=this.data;if(!t)return;const[i,n,a,l]=this.data.rect.map(w=>Math.fround(w));if(t.length===8){const[w,b,C,k]=t.subarray(2,6);if(a===w&&l===b&&i===C&&n===k)return}const{style:d}=this.container;let c;if(this.#t){const{borderColor:w,borderWidth:b}=d;d.borderWidth=0,c=["url('data:image/svg+xml;utf8,",'<svg xmlns="http://www.w3.org/2000/svg"',' preserveAspectRatio="none" viewBox="0 0 1 1">',`<g fill="transparent" stroke="${w}" stroke-width="${b}">`],this.container.classList.add("hasBorder")}const p=a-i,u=l-n,{svgFactory:h}=this,m=h.createElement("svg");m.classList.add("quadrilateralsContainer"),m.setAttribute("width",0),m.setAttribute("height",0);const f=h.createElement("defs");m.append(f);const x=h.createElement("clipPath"),y=`clippath_${this.data.id}`;x.setAttribute("id",y),x.setAttribute("clipPathUnits","objectBoundingBox"),f.append(x);for(let w=2,b=t.length;w<b;w+=8){const C=t[w],k=t[w+1],E=t[w+2],S=t[w+3],j=h.createElement("rect"),I=(E-i)/p,T=(l-k)/u,P=(C-E)/p,B=(k-S)/u;j.setAttribute("x",I),j.setAttribute("y",T),j.setAttribute("width",P),j.setAttribute("height",B),x.append(j),c?.push(`<rect vector-effect="non-scaling-stroke" x="${I}" y="${T}" width="${P}" height="${B}"/>`)}this.#t&&(c.push("</g></svg>')"),d.backgroundImage=c.join("")),this.container.append(m),this.container.style.clipPath=`url(#${y})`}_createPopup(){const{container:t,data:i}=this;t.setAttribute("aria-haspopup","dialog");const n=this.#o=new yU({data:{color:i.color,titleObj:i.titleObj,modificationDate:i.modificationDate,contentsObj:i.contentsObj,richText:i.richText,parentRect:i.rect,borderStyle:0,id:`popup_${i.id}`,rotation:i.rotation},parent:this.parent,elements:[this]});this.parent.div.append(n.render())}render(){jr("Abstract method `AnnotationElement.render` called")}_getElementsByName(t,i=null){const n=[];if(this._fieldObjects){const a=this._fieldObjects[t];if(a)for(const{page:l,id:d,exportValues:c}of a){if(l===-1||d===i)continue;const p=typeof c=="string"?c:null,u=document.querySelector(`[data-element-id="${d}"]`);if(u&&!E4.has(u)){Pi(`_getElementsByName - element not allowed: ${d}`);continue}n.push({id:d,exportValue:p,domElement:u})}return n}for(const a of document.getElementsByName(t)){const{exportValue:l}=a,d=a.getAttribute("data-element-id");d!==i&&E4.has(a)&&n.push({id:d,exportValue:l,domElement:a})}return n}show(){this.container&&(this.container.hidden=!1),this.popup?.maybeShow()}hide(){this.container&&(this.container.hidden=!0),this.popup?.forceHide()}getElementsToTriggerPopup(){return this.container}addHighlightArea(){const t=this.getElementsToTriggerPopup();if(Array.isArray(t))for(const i of t)i.classList.add("highlightArea");else t.classList.add("highlightArea")}get _isEditable(){return!1}_editOnDoubleClick(){if(!this._isEditable)return;const{annotationEditorType:t,data:{id:i}}=this;this.container.addEventListener("dblclick",()=>{this.linkService.eventBus?.dispatch("switchannotationeditormode",{source:this,mode:t,editId:i})})}}class iMe extends Vn{constructor(t,i=null){super(t,{isRenderable:!0,ignoreBorder:!!i?.ignoreBorder,createQuadrilaterals:!0}),this.isTooltipOnly=t.data.isTooltipOnly}render(){const{data:t,linkService:i}=this,n=document.createElement("a");n.setAttribute("data-element-id",t.id);let a=!1;return t.url?(i.addLinkAttributes(n,t.url,t.newWindow),a=!0):t.action?(this._bindNamedAction(n,t.action),a=!0):t.attachment?(this.#t(n,t.attachment,t.attachmentDest),a=!0):t.setOCGState?(this.#o(n,t.setOCGState),a=!0):t.dest?(this._bindLink(n,t.dest),a=!0):(t.actions&&(t.actions.Action||t.actions["Mouse Up"]||t.actions["Mouse Down"])&&this.enableScripting&&this.hasJSActions&&(this._bindJSAction(n,t),a=!0),t.resetForm?(this._bindResetFormAction(n,t.resetForm),a=!0):this.isTooltipOnly&&!a&&(this._bindLink(n,""),a=!0)),this.container.classList.add("linkAnnotation"),a&&this.container.append(n),this.container}#e(){this.container.setAttribute("data-internal-link","")}_bindLink(t,i){t.href=this.linkService.getDestinationHash(i),t.onclick=()=>(i&&this.linkService.goToDestination(i),!1),(i||i==="")&&this.#e()}_bindNamedAction(t,i){t.href=this.linkService.getAnchorUrl(""),t.onclick=()=>(this.linkService.executeNamedAction(i),!1),this.#e()}#t(t,i,n=null){t.href=this.linkService.getAnchorUrl(""),i.description&&(t.title=i.description),t.onclick=()=>(this.downloadManager?.openOrDownloadData(i.content,i.filename,n),!1),this.#e()}#o(t,i){t.href=this.linkService.getAnchorUrl(""),t.onclick=()=>(this.linkService.executeSetOCGState(i),!1),this.#e()}_bindJSAction(t,i){t.href=this.linkService.getAnchorUrl("");const n=new Map([["Action","onclick"],["Mouse Up","onmouseup"],["Mouse Down","onmousedown"]]);for(const a of Object.keys(i.actions)){const l=n.get(a);l&&(t[l]=()=>(this.linkService.eventBus?.dispatch("dispatcheventinsandbox",{source:this,detail:{id:i.id,name:a}}),!1))}t.onclick||(t.onclick=()=>!1),this.#e()}_bindResetFormAction(t,i){const n=t.onclick;if(n||(t.href=this.linkService.getAnchorUrl("")),this.#e(),!this._fieldObjects){Pi('_bindResetFormAction - "resetForm" action not supported, ensure that the `fieldObjects` parameter is provided.'),n||(t.onclick=()=>!1);return}t.onclick=()=>{n?.();const{fields:a,refs:l,include:d}=i,c=[];if(a.length!==0||l.length!==0){const h=new Set(l);for(const m of a){const f=this._fieldObjects[m]||[];for(const{id:x}of f)h.add(x)}for(const m of Object.values(this._fieldObjects))for(const f of m)h.has(f.id)===d&&c.push(f)}else for(const h of Object.values(this._fieldObjects))c.push(...h);const p=this.annotationStorage,u=[];for(const h of c){const{id:m}=h;switch(u.push(m),h.type){case"text":{const x=h.defaultValue||"";p.setValue(m,{value:x});break}case"checkbox":case"radiobutton":{const x=h.defaultValue===h.exportValues;p.setValue(m,{value:x});break}case"combobox":case"listbox":{const x=h.defaultValue||"";p.setValue(m,{value:x});break}default:continue}const f=document.querySelector(`[data-element-id="${m}"]`);if(f){if(!E4.has(f)){Pi(`_bindResetFormAction - element not allowed: ${m}`);continue}}else continue;f.dispatchEvent(new Event("resetform"))}return this.enableScripting&&this.linkService.eventBus?.dispatch("dispatcheventinsandbox",{source:this,detail:{id:"app",ids:u,name:"ResetForm"}}),!1}}}class Ykt extends Vn{constructor(t){super(t,{isRenderable:!0})}render(){this.container.classList.add("textAnnotation");const t=document.createElement("img");return t.src=this.imageResourcesPath+"annotation-"+this.data.name.toLowerCase()+".svg",t.setAttribute("data-l10n-id","pdfjs-text-annotation-type"),t.setAttribute("data-l10n-args",JSON.stringify({type:this.data.name})),!this.data.popupRef&&this.hasPopupData&&this._createPopup(),this.container.append(t),this.container}}class q4 extends Vn{render(){return this.container}showElementAndHideCanvas(t){this.data.hasOwnCanvas&&(t.previousSibling?.nodeName==="CANVAS"&&(t.previousSibling.hidden=!0),t.hidden=!1)}_getKeyModifier(t){return Ql.platform.isMac?t.metaKey:t.ctrlKey}_setEventListener(t,i,n,a,l){n.includes("mouse")?t.addEventListener(n,d=>{this.linkService.eventBus?.dispatch("dispatcheventinsandbox",{source:this,detail:{id:this.data.id,name:a,value:l(d),shift:d.shiftKey,modifier:this._getKeyModifier(d)}})}):t.addEventListener(n,d=>{if(n==="blur"){if(!i.focused||!d.relatedTarget)return;i.focused=!1}else if(n==="focus"){if(i.focused)return;i.focused=!0}l&&this.linkService.eventBus?.dispatch("dispatcheventinsandbox",{source:this,detail:{id:this.data.id,name:a,value:l(d)}})})}_setEventListeners(t,i,n,a){for(const[l,d]of n)(d==="Action"||this.data.actions?.[d])&&((d==="Focus"||d==="Blur")&&(i||={focused:!1}),this._setEventListener(t,i,l,d,a),d==="Focus"&&!this.data.actions?.Blur?this._setEventListener(t,i,"blur","Blur",null):d==="Blur"&&!this.data.actions?.Focus&&this._setEventListener(t,i,"focus","Focus",null))}_setBackgroundColor(t){const i=this.data.backgroundColor||null;t.style.backgroundColor=i===null?"transparent":ko.makeHexColor(i[0],i[1],i[2])}_setTextStyle(t){const i=["left","center","right"],{fontColor:n}=this.data.defaultAppearanceData,a=this.data.defaultAppearanceData.fontSize||Wkt,l=t.style;let d;const c=2,p=u=>Math.round(10*u)/10;if(this.data.multiLine){const u=Math.abs(this.data.rect[3]-this.data.rect[1]-c),h=Math.round(u/(oO*a))||1,m=u/h;d=Math.min(a,p(m/oO))}else{const u=Math.abs(this.data.rect[3]-this.data.rect[1]-c);d=Math.min(a,p(u/oO))}l.fontSize=`calc(${d}px * var(--scale-factor))`,l.color=ko.makeHexColor(n[0],n[1],n[2]),this.data.textAlignment!==null&&(l.textAlign=i[this.data.textAlignment])}_setRequired(t,i){i?t.setAttribute("required",!0):t.removeAttribute("required"),t.setAttribute("aria-required",i)}}class Kkt extends q4{constructor(t){const i=t.renderForms||t.data.hasOwnCanvas||!t.data.hasAppearance&&!!t.data.fieldValue;super(t,{isRenderable:i})}setPropertyOnSiblings(t,i,n,a){const l=this.annotationStorage;for(const d of this._getElementsByName(t.name,t.id))d.domElement&&(d.domElement[i]=n),l.setValue(d.id,{[a]:n})}render(){const t=this.annotationStorage,i=this.data.id;this.container.classList.add("textWidgetAnnotation");let n=null;if(this.renderForms){const a=t.getValue(i,{value:this.data.fieldValue});let l=a.value||"";const d=t.getValue(i,{charLimit:this.data.maxLen}).charLimit;d&&l.length>d&&(l=l.slice(0,d));let c=a.formattedValue||this.data.textContent?.join(`
|
|
88
|
+
`);return t.join("")}}function Dx(e,t){try{const{protocol:i}=t?new URL(e,t):new URL(e);return i==="http:"||i==="https:"}catch{return!1}}function ql(e){e.preventDefault()}function _je(e){console.log("Deprecated API usage: "+e)}let lpe;class Vje{static toDateObject(t){if(!t||typeof t!="string")return null;lpe||=new RegExp("^D:(\\d{4})(\\d{2})?(\\d{2})?(\\d{2})?(\\d{2})?(\\d{2})?([Z|+|-])?(\\d{2})?'?(\\d{2})?'?");const i=lpe.exec(t);if(!i)return null;const n=parseInt(i[1],10);let a=parseInt(i[2],10);a=a>=1&&a<=12?a-1:0;let l=parseInt(i[3],10);l=l>=1&&l<=31?l:1;let d=parseInt(i[4],10);d=d>=0&&d<=23?d:0;let c=parseInt(i[5],10);c=c>=0&&c<=59?c:0;let p=parseInt(i[6],10);p=p>=0&&p<=59?p:0;const u=i[7]||"Z";let h=parseInt(i[8],10);h=h>=0&&h<=23?h:0;let m=parseInt(i[9],10)||0;return m=m>=0&&m<=59?m:0,u==="-"?(d+=h,c+=m):u==="+"&&(d-=h,c-=m),new Date(Date.UTC(n,a,l,d,c,p))}}function D$t(e,{scale:t=1,rotation:i=0}){const{width:n,height:a}=e.attributes.style,l=[0,0,parseInt(n),parseInt(a)];return new mb({viewBox:l,scale:t,rotation:i})}function FK(e){if(e.startsWith("#")){const t=parseInt(e.slice(1),16);return[(t&16711680)>>16,(t&65280)>>8,t&255]}return e.startsWith("rgb(")?e.slice(4,-1).split(",").map(t=>parseInt(t)):e.startsWith("rgba(")?e.slice(5,-1).split(",").map(t=>parseInt(t)).slice(0,3):(Pi(`Not a valid color format: "${e}"`),[0,0,0])}function P$t(e){const t=document.createElement("span");t.style.visibility="hidden",document.body.append(t);for(const i of e.keys()){t.style.color=i;const n=window.getComputedStyle(t).color;e.set(i,FK(n))}t.remove()}function mn(e){const{a:t,b:i,c:n,d:a,e:l,f:d}=e.getTransform();return[t,i,n,a,l,d]}function Ih(e){const{a:t,b:i,c:n,d:a,e:l,f:d}=e.getTransform().invertSelf();return[t,i,n,a,l,d]}function S4(e,t,i=!1,n=!0){if(t instanceof mb){const{pageWidth:a,pageHeight:l}=t.rawDims,{style:d}=e,c=Ql.isCSSRoundSupported,p=`var(--scale-factor) * ${a}px`,u=`var(--scale-factor) * ${l}px`,h=c?`round(${p}, 1px)`:`calc(${p})`,m=c?`round(${u}, 1px)`:`calc(${u})`;!i||t.rotation%180===0?(d.width=h,d.height=m):(d.width=m,d.height=h)}n&&e.setAttribute("data-main-rotation",t.rotation)}class RK{#e=null;#t=null;#o;#r=null;constructor(t){this.#o=t}render(){const t=this.#e=document.createElement("div");t.className="editToolbar",t.setAttribute("role","toolbar");const i=this.#o._uiManager._signal;t.addEventListener("contextmenu",ql,{signal:i}),t.addEventListener("pointerdown",RK.#s,{signal:i});const n=this.#r=document.createElement("div");n.className="buttons",t.append(n);const a=this.#o.toolbarPosition;if(a){const{style:l}=t,d=this.#o._uiManager.direction==="ltr"?1-a[0]:a[0];l.insetInlineEnd=`${100*d}%`,l.top=`calc(${100*a[1]}% + var(--editor-toolbar-vert-offset))`}return this.#c(),t}static#s(t){t.stopPropagation()}#i(t){this.#o._focusEventsAllowed=!1,t.preventDefault(),t.stopPropagation()}#n(t){this.#o._focusEventsAllowed=!0,t.preventDefault(),t.stopPropagation()}#l(t){const i=this.#o._uiManager._signal;t.addEventListener("focusin",this.#i.bind(this),{capture:!0,signal:i}),t.addEventListener("focusout",this.#n.bind(this),{capture:!0,signal:i}),t.addEventListener("contextmenu",ql,{signal:i})}hide(){this.#e.classList.add("hidden"),this.#t?.hideDropdown()}show(){this.#e.classList.remove("hidden")}#c(){const t=document.createElement("button");t.className="delete",t.tabIndex=0,t.setAttribute("data-l10n-id",`pdfjs-editor-remove-${this.#o.editorType}-button`),this.#l(t),t.addEventListener("click",i=>{this.#o._uiManager.delete()},{signal:this.#o._uiManager._signal}),this.#r.append(t)}get#p(){const t=document.createElement("div");return t.className="divider",t}addAltTextButton(t){this.#l(t),this.#r.prepend(t,this.#p)}addColorPicker(t){this.#t=t;const i=t.renderButton();this.#l(i),this.#r.prepend(i,this.#p)}remove(){this.#e.remove(),this.#t?.destroy(),this.#t=null}}class T$t{#e=null;#t=null;#o;constructor(t){this.#o=t}#r(){const t=this.#t=document.createElement("div");t.className="editToolbar",t.setAttribute("role","toolbar"),t.addEventListener("contextmenu",ql,{signal:this.#o._signal});const i=this.#e=document.createElement("div");return i.className="buttons",t.append(i),this.#i(),t}#s(t,i){let n=0,a=0;for(const l of t){const d=l.y+l.height;if(d<n)continue;const c=l.x+(i?l.width:0);if(d>n){a=c,n=d;continue}i?c>a&&(a=c):c<a&&(a=c)}return[i?1-a:a,n]}show(t,i,n){const[a,l]=this.#s(i,n),{style:d}=this.#t||=this.#r();t.append(this.#t),d.insetInlineEnd=`${100*a}%`,d.top=`calc(${100*l}% + var(--editor-toolbar-vert-offset))`}hide(){this.#t.remove()}#i(){const t=document.createElement("button");t.className="highlightButton",t.tabIndex=0,t.setAttribute("data-l10n-id","pdfjs-highlight-floating-button1");const i=document.createElement("span");t.append(i),i.className="visuallyHidden",i.setAttribute("data-l10n-id","pdfjs-highlight-floating-button-label");const n=this.#o._signal;t.addEventListener("contextmenu",ql,{signal:n}),t.addEventListener("click",()=>{this.#o.highlightSelection("floating_button")},{signal:n}),this.#e.append(t)}}function pS(e,t,i){for(const n of i)t.addEventListener(n,e[n].bind(e))}function z$t(e){return Math.round(Math.min(255,Math.max(1,255*e))).toString(16).padStart(2,"0")}class F$t{#e=0;get id(){return`${g$t}${this.#e++}`}}class OK{#e=L$t();#t=0;#o=null;static get _isSVGFittingCanvas(){const t='data:image/svg+xml;charset=UTF-8,<svg viewBox="0 0 1 1" width="1" height="1" xmlns="http://www.w3.org/2000/svg"><rect width="1" height="1" style="fill:red;"/></svg>',n=new OffscreenCanvas(1,3).getContext("2d",{willReadFrequently:!0}),a=new Image;a.src=t;const l=a.decode().then(()=>(n.drawImage(a,0,0,1,1,0,0,1,3),new Uint32Array(n.getImageData(0,0,1,1).data.buffer)[0]===0));return nr(this,"_isSVGFittingCanvas",l)}async#r(t,i){this.#o||=new Map;let n=this.#o.get(t);if(n===null)return null;if(n?.bitmap)return n.refCounter+=1,n;try{n||={bitmap:null,id:`image_${this.#e}_${this.#t++}`,refCounter:0,isSvg:!1};let a;if(typeof i=="string"?(n.url=i,a=await KL(i,"blob")):a=n.file=i,a.type==="image/svg+xml"){const l=OK._isSVGFittingCanvas,d=new FileReader,c=new Image,p=new Promise((u,h)=>{c.onload=()=>{n.bitmap=c,n.isSvg=!0,u()},d.onload=async()=>{const m=n.svgUrl=d.result;c.src=await l?`${m}#svgView(preserveAspectRatio(none))`:m},c.onerror=d.onerror=h});d.readAsDataURL(a),await p}else n.bitmap=await createImageBitmap(a);n.refCounter=1}catch(a){console.error(a),n=null}return this.#o.set(t,n),n&&this.#o.set(n.id,n),n}async getFromFile(t){const{lastModified:i,name:n,size:a,type:l}=t;return this.#r(`${i}_${n}_${a}_${l}`,t)}async getFromUrl(t){return this.#r(t,t)}async getFromId(t){this.#o||=new Map;const i=this.#o.get(t);return i?i.bitmap?(i.refCounter+=1,i):i.file?this.getFromFile(i.file):this.getFromUrl(i.url):null}getSvgUrl(t){const i=this.#o.get(t);return i?.isSvg?i.svgUrl:null}deleteId(t){this.#o||=new Map;const i=this.#o.get(t);i&&(i.refCounter-=1,i.refCounter===0&&(i.bitmap=null))}isValidId(t){return t.startsWith(`image_${this.#e}_`)}}class R$t{#e=[];#t=!1;#o;#r=-1;constructor(t=128){this.#o=t}add({cmd:t,undo:i,post:n,mustExec:a,type:l=NaN,overwriteIfSameType:d=!1,keepUndo:c=!1}){if(a&&t(),this.#t)return;const p={cmd:t,undo:i,post:n,type:l};if(this.#r===-1){this.#e.length>0&&(this.#e.length=0),this.#r=0,this.#e.push(p);return}if(d&&this.#e[this.#r].type===l){c&&(p.undo=this.#e[this.#r].undo),this.#e[this.#r]=p;return}const u=this.#r+1;u===this.#o?this.#e.splice(0,1):(this.#r=u,u<this.#e.length&&this.#e.splice(u)),this.#e.push(p)}undo(){if(this.#r===-1)return;this.#t=!0;const{undo:t,post:i}=this.#e[this.#r];t(),i?.(),this.#t=!1,this.#r-=1}redo(){if(this.#r<this.#e.length-1){this.#r+=1,this.#t=!0;const{cmd:t,post:i}=this.#e[this.#r];t(),i?.(),this.#t=!1}}hasSomethingToUndo(){return this.#r!==-1}hasSomethingToRedo(){return this.#r<this.#e.length-1}destroy(){this.#e=null}}class gb{constructor(t){this.buffer=[],this.callbacks=new Map,this.allKeys=new Set;const{isMac:i}=Ql.platform;for(const[n,a,l={}]of t)for(const d of n){const c=d.startsWith("mac+");i&&c?(this.callbacks.set(d.slice(4),{callback:a,options:l}),this.allKeys.add(d.split("+").at(-1))):!i&&!c&&(this.callbacks.set(d,{callback:a,options:l}),this.allKeys.add(d.split("+").at(-1)))}}#e(t){t.altKey&&this.buffer.push("alt"),t.ctrlKey&&this.buffer.push("ctrl"),t.metaKey&&this.buffer.push("meta"),t.shiftKey&&this.buffer.push("shift"),this.buffer.push(t.key);const i=this.buffer.join("+");return this.buffer.length=0,i}exec(t,i){if(!this.allKeys.has(i.key))return;const n=this.callbacks.get(this.#e(i));if(!n)return;const{callback:a,options:{bubbles:l=!1,args:d=[],checker:c=null}}=n;c&&!c(t,i)||(a.bind(t,...d,i)(),l||(i.stopPropagation(),i.preventDefault()))}}class NK{static _colorsMapping=new Map([["CanvasText",[0,0,0]],["Canvas",[255,255,255]]]);get _colors(){const t=new Map([["CanvasText",null],["Canvas",null]]);return P$t(t),nr(this,"_colors",t)}convert(t){const i=FK(t);if(!window.matchMedia("(forced-colors: active)").matches)return i;for(const[n,a]of this._colors)if(a.every((l,d)=>l===i[d]))return NK._colorsMapping.get(n);return i}getHexCode(t){const i=this._colors.get(t);return i?ko.makeHexColor(...i):t}}class gm{#e=new AbortController;#t=null;#o=new Map;#r=new Map;#s=null;#i=null;#n=null;#l=new R$t;#c=0;#p=new Set;#h=null;#d=null;#a=new Set;#m=!1;#f=null;#u=null;#y=null;#g=!1;#w=null;#v=new F$t;#A=!1;#k=!1;#S=null;#j=null;#$=null;#b=qi.NONE;#x=new Set;#C=null;#E=null;#L=null;#B=this.blur.bind(this);#M=this.focus.bind(this);#T=this.copy.bind(this);#D=this.cut.bind(this);#z=this.paste.bind(this);#P=this.keydown.bind(this);#Q=this.keyup.bind(this);#U=this.onEditingAction.bind(this);#_=this.onPageChanging.bind(this);#N=this.onScaleChanging.bind(this);#F=this.onRotationChanging.bind(this);#K={isEditing:!1,isEmpty:!0,hasSomethingToUndo:!1,hasSomethingToRedo:!1,hasSelectedEditor:!1,hasSelectedText:!1};#V=[0,0];#R=null;#H=null;#q=null;static TRANSLATE_SMALL=1;static TRANSLATE_BIG=10;static get _keyboardManager(){const t=gm.prototype,i=d=>d.#H.contains(document.activeElement)&&document.activeElement.tagName!=="BUTTON"&&d.hasSomethingToControl(),n=(d,{target:c})=>{if(c instanceof HTMLInputElement){const{type:p}=c;return p!=="text"&&p!=="number"}return!0},a=this.TRANSLATE_SMALL,l=this.TRANSLATE_BIG;return nr(this,"_keyboardManager",new gb([[["ctrl+a","mac+meta+a"],t.selectAll,{checker:n}],[["ctrl+z","mac+meta+z"],t.undo,{checker:n}],[["ctrl+y","ctrl+shift+z","mac+meta+shift+z","ctrl+shift+Z","mac+meta+shift+Z"],t.redo,{checker:n}],[["Backspace","alt+Backspace","ctrl+Backspace","shift+Backspace","mac+Backspace","mac+alt+Backspace","mac+ctrl+Backspace","Delete","ctrl+Delete","shift+Delete","mac+Delete"],t.delete,{checker:n}],[["Enter","mac+Enter"],t.addNewEditorFromKeyboard,{checker:(d,{target:c})=>!(c instanceof HTMLButtonElement)&&d.#H.contains(c)&&!d.isEnterHandled}],[[" ","mac+ "],t.addNewEditorFromKeyboard,{checker:(d,{target:c})=>!(c instanceof HTMLButtonElement)&&d.#H.contains(document.activeElement)}],[["Escape","mac+Escape"],t.unselectAll],[["ArrowLeft","mac+ArrowLeft"],t.translateSelectedEditors,{args:[-a,0],checker:i}],[["ctrl+ArrowLeft","mac+shift+ArrowLeft"],t.translateSelectedEditors,{args:[-l,0],checker:i}],[["ArrowRight","mac+ArrowRight"],t.translateSelectedEditors,{args:[a,0],checker:i}],[["ctrl+ArrowRight","mac+shift+ArrowRight"],t.translateSelectedEditors,{args:[l,0],checker:i}],[["ArrowUp","mac+ArrowUp"],t.translateSelectedEditors,{args:[0,-a],checker:i}],[["ctrl+ArrowUp","mac+shift+ArrowUp"],t.translateSelectedEditors,{args:[0,-l],checker:i}],[["ArrowDown","mac+ArrowDown"],t.translateSelectedEditors,{args:[0,a],checker:i}],[["ctrl+ArrowDown","mac+shift+ArrowDown"],t.translateSelectedEditors,{args:[0,l],checker:i}]]))}constructor(t,i,n,a,l,d,c,p,u){this._signal=this.#e.signal,this.#H=t,this.#q=i,this.#s=n,this._eventBus=a,this._eventBus._on("editingaction",this.#U),this._eventBus._on("pagechanging",this.#_),this._eventBus._on("scalechanging",this.#N),this._eventBus._on("rotationchanging",this.#F),this.#re(),this.#le(),this.#Z(),this.#i=l.annotationStorage,this.#f=l.filterFactory,this.#E=d,this.#y=c||null,this.#m=p,this.#$=u||null,this.viewParameters={realScale:f6.PDF_TO_CSS_UNITS,rotation:0},this.isShiftKeyDown=!1}destroy(){this.#e?.abort(),this.#e=null,this._signal=null,this._eventBus._off("editingaction",this.#U),this._eventBus._off("pagechanging",this.#_),this._eventBus._off("scalechanging",this.#N),this._eventBus._off("rotationchanging",this.#F);for(const t of this.#r.values())t.destroy();this.#r.clear(),this.#o.clear(),this.#a.clear(),this.#t=null,this.#x.clear(),this.#l.destroy(),this.#s?.destroy(),this.#w?.hide(),this.#w=null,this.#u&&(clearTimeout(this.#u),this.#u=null),this.#R&&(clearTimeout(this.#R),this.#R=null)}async mlGuess(t){return this.#$?.guess(t)||null}get hasMLManager(){return!!this.#$}get hcmFilter(){return nr(this,"hcmFilter",this.#E?this.#f.addHCMFilter(this.#E.foreground,this.#E.background):"none")}get direction(){return nr(this,"direction",getComputedStyle(this.#H).direction)}get highlightColors(){return nr(this,"highlightColors",this.#y?new Map(this.#y.split(",").map(t=>t.split("=").map(i=>i.trim()))):null)}get highlightColorNames(){return nr(this,"highlightColorNames",this.highlightColors?new Map(Array.from(this.highlightColors,t=>t.reverse())):null)}setMainHighlightColorPicker(t){this.#j=t}editAltText(t){this.#s?.editAltText(this,t)}onPageChanging({pageNumber:t}){this.#c=t-1}focusMainContainer(){this.#H.focus()}findParent(t,i){for(const n of this.#r.values()){const{x:a,y:l,width:d,height:c}=n.div.getBoundingClientRect();if(t>=a&&t<=a+d&&i>=l&&i<=l+c)return n}return null}disableUserSelect(t=!1){this.#q.classList.toggle("noUserSelect",t)}addShouldRescale(t){this.#a.add(t)}removeShouldRescale(t){this.#a.delete(t)}onScaleChanging({scale:t}){this.commitOrRemove(),this.viewParameters.realScale=t*f6.PDF_TO_CSS_UNITS;for(const i of this.#a)i.onScaleChanging()}onRotationChanging({pagesRotation:t}){this.commitOrRemove(),this.viewParameters.rotation=t}#G({anchorNode:t}){return t.nodeType===Node.TEXT_NODE?t.parentElement:t}highlightSelection(t=""){const i=document.getSelection();if(!i||i.isCollapsed)return;const{anchorNode:n,anchorOffset:a,focusNode:l,focusOffset:d}=i,c=i.toString(),u=this.#G(i).closest(".textLayer"),h=this.getSelectionBoxes(u);if(h){i.empty(),this.#b===qi.NONE&&(this._eventBus.dispatch("showannotationeditorui",{source:this,mode:qi.HIGHLIGHT}),this.showAllEditors("highlight",!0,!0));for(const m of this.#r.values())if(m.hasTextLayer(u)){m.createAndAddNewEditor({x:0,y:0},!1,{methodOfCreation:t,boxes:h,anchorNode:n,anchorOffset:a,focusNode:l,focusOffset:d,text:c});break}}}#oe(){const t=document.getSelection();if(!t||t.isCollapsed)return;const n=this.#G(t).closest(".textLayer"),a=this.getSelectionBoxes(n);a&&(this.#w||=new T$t(this),this.#w.show(n,a,this.direction==="ltr"))}addToAnnotationStorage(t){!t.isEmpty()&&this.#i&&!this.#i.has(t.id)&&this.#i.setValue(t.id,t)}#ie(){const t=document.getSelection();if(!t||t.isCollapsed){this.#C&&(this.#w?.hide(),this.#C=null,this.#I({hasSelectedText:!1}));return}const{anchorNode:i}=t;if(i===this.#C)return;if(!this.#G(t).closest(".textLayer")){this.#C&&(this.#w?.hide(),this.#C=null,this.#I({hasSelectedText:!1}));return}if(this.#w?.hide(),this.#C=i,this.#I({hasSelectedText:!0}),!(this.#b!==qi.HIGHLIGHT&&this.#b!==qi.NONE)&&(this.#b===qi.HIGHLIGHT&&this.showAllEditors("highlight",!0,!0),this.#g=this.isShiftKeyDown,!this.isShiftKeyDown)){const l=this._signal,d=c=>{c.type==="pointerup"&&c.button!==0||(window.removeEventListener("pointerup",d),window.removeEventListener("blur",d),c.type==="pointerup"&&this.#Y("main_toolbar"))};window.addEventListener("pointerup",d,{signal:l}),window.addEventListener("blur",d,{signal:l})}}#Y(t=""){this.#b===qi.HIGHLIGHT?this.highlightSelection(t):this.#m&&this.#oe()}#re(){document.addEventListener("selectionchange",this.#ie.bind(this),{signal:this._signal})}#ne(){const t=this._signal;window.addEventListener("focus",this.#M,{signal:t}),window.addEventListener("blur",this.#B,{signal:t})}#ae(){window.removeEventListener("focus",this.#M),window.removeEventListener("blur",this.#B)}blur(){if(this.isShiftKeyDown=!1,this.#g&&(this.#g=!1,this.#Y("main_toolbar")),!this.hasSelection)return;const{activeElement:t}=document;for(const i of this.#x)if(i.div.contains(t)){this.#S=[i,t],i._focusEventsAllowed=!1;break}}focus(){if(!this.#S)return;const[t,i]=this.#S;this.#S=null,i.addEventListener("focusin",()=>{t._focusEventsAllowed=!0},{once:!0,signal:this._signal}),i.focus()}#Z(){const t=this._signal;window.addEventListener("keydown",this.#P,{signal:t}),window.addEventListener("keyup",this.#Q,{signal:t})}#se(){window.removeEventListener("keydown",this.#P),window.removeEventListener("keyup",this.#Q)}#J(){const t=this._signal;document.addEventListener("copy",this.#T,{signal:t}),document.addEventListener("cut",this.#D,{signal:t}),document.addEventListener("paste",this.#z,{signal:t})}#X(){document.removeEventListener("copy",this.#T),document.removeEventListener("cut",this.#D),document.removeEventListener("paste",this.#z)}#le(){const t=this._signal;document.addEventListener("dragover",this.dragOver.bind(this),{signal:t}),document.addEventListener("drop",this.drop.bind(this),{signal:t})}addEditListeners(){this.#Z(),this.#J()}removeEditListeners(){this.#se(),this.#X()}dragOver(t){for(const{type:i}of t.dataTransfer.items)for(const n of this.#d)if(n.isHandlingMimeForPasting(i)){t.dataTransfer.dropEffect="copy",t.preventDefault();return}}drop(t){for(const i of t.dataTransfer.items)for(const n of this.#d)if(n.isHandlingMimeForPasting(i.type)){n.paste(i,this.currentLayer),t.preventDefault();return}}copy(t){if(t.preventDefault(),this.#t?.commitOrRemove(),!this.hasSelection)return;const i=[];for(const n of this.#x){const a=n.serialize(!0);a&&i.push(a)}i.length!==0&&t.clipboardData.setData("application/pdfjs",JSON.stringify(i))}cut(t){this.copy(t),this.delete()}paste(t){t.preventDefault();const{clipboardData:i}=t;for(const l of i.items)for(const d of this.#d)if(d.isHandlingMimeForPasting(l.type)){d.paste(l,this.currentLayer);return}let n=i.getData("application/pdfjs");if(!n)return;try{n=JSON.parse(n)}catch(l){Pi(`paste: "${l.message}".`);return}if(!Array.isArray(n))return;this.unselectAll();const a=this.currentLayer;try{const l=[];for(const p of n){const u=a.deserialize(p);if(!u)return;l.push(u)}const d=()=>{for(const p of l)this.#ee(p);this.#te(l)},c=()=>{for(const p of l)p.remove()};this.addCommands({cmd:d,undo:c,mustExec:!0})}catch(l){Pi(`paste: "${l.message}".`)}}keydown(t){!this.isShiftKeyDown&&t.key==="Shift"&&(this.isShiftKeyDown=!0),this.#b!==qi.NONE&&!this.isEditorHandlingKeyboard&&gm._keyboardManager.exec(this,t)}keyup(t){this.isShiftKeyDown&&t.key==="Shift"&&(this.isShiftKeyDown=!1,this.#g&&(this.#g=!1,this.#Y("main_toolbar")))}onEditingAction({name:t}){switch(t){case"undo":case"redo":case"delete":case"selectAll":this[t]();break;case"highlightSelection":this.highlightSelection("context_menu");break}}#I(t){Object.entries(t).some(([n,a])=>this.#K[n]!==a)&&(this._eventBus.dispatch("annotationeditorstateschanged",{source:this,details:Object.assign(this.#K,t)}),this.#b===qi.HIGHLIGHT&&t.hasSelectedEditor===!1&&this.#O([[di.HIGHLIGHT_FREE,!0]]))}#O(t){this._eventBus.dispatch("annotationeditorparamschanged",{source:this,details:t})}setEditingState(t){t?(this.#ne(),this.#J(),this.#I({isEditing:this.#b!==qi.NONE,isEmpty:this.#W(),hasSomethingToUndo:this.#l.hasSomethingToUndo(),hasSomethingToRedo:this.#l.hasSomethingToRedo(),hasSelectedEditor:!1})):(this.#ae(),this.#X(),this.#I({isEditing:!1}),this.disableUserSelect(!1))}registerEditorTypes(t){if(!this.#d){this.#d=t;for(const i of this.#d)this.#O(i.defaultPropertiesToUpdate)}}getId(){return this.#v.id}get currentLayer(){return this.#r.get(this.#c)}getLayer(t){return this.#r.get(t)}get currentPageIndex(){return this.#c}addLayer(t){this.#r.set(t.pageIndex,t),this.#A?t.enable():t.disable()}removeLayer(t){this.#r.delete(t.pageIndex)}updateMode(t,i=null,n=!1){if(this.#b!==t){if(this.#b=t,t===qi.NONE){this.setEditingState(!1),this.#ce();return}this.setEditingState(!0),this.#de(),this.unselectAll();for(const a of this.#r.values())a.updateMode(t);if(!i&&n){this.addNewEditorFromKeyboard();return}if(i){for(const a of this.#o.values())if(a.annotationElementId===i){this.setSelected(a),a.enterInEditMode();break}}}}addNewEditorFromKeyboard(){this.currentLayer.canCreateNewEmptyEditor()&&this.currentLayer.addNewEditor()}updateToolbar(t){t!==this.#b&&this._eventBus.dispatch("switchannotationeditormode",{source:this,mode:t})}updateParams(t,i){if(this.#d){switch(t){case di.CREATE:this.currentLayer.addNewEditor();return;case di.HIGHLIGHT_DEFAULT_COLOR:this.#j?.updateColor(i);break;case di.HIGHLIGHT_SHOW_ALL:this._eventBus.dispatch("reporttelemetry",{source:this,details:{type:"editing",data:{type:"highlight",action:"toggle_visibility"}}}),(this.#L||=new Map).set(t,i),this.showAllEditors("highlight",i);break}for(const n of this.#x)n.updateParams(t,i);for(const n of this.#d)n.updateDefaultParams(t,i)}}showAllEditors(t,i,n=!1){for(const l of this.#o.values())l.editorType===t&&l.show(i);(this.#L?.get(di.HIGHLIGHT_SHOW_ALL)??!0)!==i&&this.#O([[di.HIGHLIGHT_SHOW_ALL,i]])}enableWaiting(t=!1){if(this.#k!==t){this.#k=t;for(const i of this.#r.values())t?i.disableClick():i.enableClick(),i.div.classList.toggle("waiting",t)}}#de(){if(!this.#A){this.#A=!0;for(const t of this.#r.values())t.enable();for(const t of this.#o.values())t.enable()}}#ce(){if(this.unselectAll(),this.#A){this.#A=!1;for(const t of this.#r.values())t.disable();for(const t of this.#o.values())t.disable()}}getEditors(t){const i=[];for(const n of this.#o.values())n.pageIndex===t&&i.push(n);return i}getEditor(t){return this.#o.get(t)}addEditor(t){this.#o.set(t.id,t)}removeEditor(t){t.div.contains(document.activeElement)&&(this.#u&&clearTimeout(this.#u),this.#u=setTimeout(()=>{this.focusMainContainer(),this.#u=null},0)),this.#o.delete(t.id),this.unselect(t),(!t.annotationElementId||!this.#p.has(t.annotationElementId))&&this.#i?.remove(t.id)}addDeletedAnnotationElement(t){this.#p.add(t.annotationElementId),this.addChangedExistingAnnotation(t),t.deleted=!0}isDeletedAnnotationElement(t){return this.#p.has(t)}removeDeletedAnnotationElement(t){this.#p.delete(t.annotationElementId),this.removeChangedExistingAnnotation(t),t.deleted=!1}#ee(t){const i=this.#r.get(t.pageIndex);i?i.addOrRebuild(t):(this.addEditor(t),this.addToAnnotationStorage(t))}setActiveEditor(t){this.#t!==t&&(this.#t=t,t&&this.#O(t.propertiesToUpdate))}get#pe(){let t=null;for(t of this.#x);return t}updateUI(t){this.#pe===t&&this.#O(t.propertiesToUpdate)}toggleSelected(t){if(this.#x.has(t)){this.#x.delete(t),t.unselect(),this.#I({hasSelectedEditor:this.hasSelection});return}this.#x.add(t),t.select(),this.#O(t.propertiesToUpdate),this.#I({hasSelectedEditor:!0})}setSelected(t){for(const i of this.#x)i!==t&&i.unselect();this.#x.clear(),this.#x.add(t),t.select(),this.#O(t.propertiesToUpdate),this.#I({hasSelectedEditor:!0})}isSelected(t){return this.#x.has(t)}get firstSelectedEditor(){return this.#x.values().next().value}unselect(t){t.unselect(),this.#x.delete(t),this.#I({hasSelectedEditor:this.hasSelection})}get hasSelection(){return this.#x.size!==0}get isEnterHandled(){return this.#x.size===1&&this.firstSelectedEditor.isEnterHandled}undo(){this.#l.undo(),this.#I({hasSomethingToUndo:this.#l.hasSomethingToUndo(),hasSomethingToRedo:!0,isEmpty:this.#W()})}redo(){this.#l.redo(),this.#I({hasSomethingToUndo:!0,hasSomethingToRedo:this.#l.hasSomethingToRedo(),isEmpty:this.#W()})}addCommands(t){this.#l.add(t),this.#I({hasSomethingToUndo:!0,hasSomethingToRedo:!1,isEmpty:this.#W()})}#W(){if(this.#o.size===0)return!0;if(this.#o.size===1)for(const t of this.#o.values())return t.isEmpty();return!1}delete(){if(this.commitOrRemove(),!this.hasSelection)return;const t=[...this.#x],i=()=>{for(const a of t)a.remove()},n=()=>{for(const a of t)this.#ee(a)};this.addCommands({cmd:i,undo:n,mustExec:!0})}commitOrRemove(){this.#t?.commitOrRemove()}hasSomethingToControl(){return this.#t||this.hasSelection}#te(t){for(const i of this.#x)i.unselect();this.#x.clear();for(const i of t)i.isEmpty()||(this.#x.add(i),i.select());this.#I({hasSelectedEditor:this.hasSelection})}selectAll(){for(const t of this.#x)t.commit();this.#te(this.#o.values())}unselectAll(){if(!(this.#t&&(this.#t.commitOrRemove(),this.#b!==qi.NONE))&&this.hasSelection){for(const t of this.#x)t.unselect();this.#x.clear(),this.#I({hasSelectedEditor:!1})}}translateSelectedEditors(t,i,n=!1){if(n||this.commitOrRemove(),!this.hasSelection)return;this.#V[0]+=t,this.#V[1]+=i;const[a,l]=this.#V,d=[...this.#x],c=1e3;this.#R&&clearTimeout(this.#R),this.#R=setTimeout(()=>{this.#R=null,this.#V[0]=this.#V[1]=0,this.addCommands({cmd:()=>{for(const p of d)this.#o.has(p.id)&&p.translateInPage(a,l)},undo:()=>{for(const p of d)this.#o.has(p.id)&&p.translateInPage(-a,-l)},mustExec:!1})},c);for(const p of d)p.translateInPage(t,i)}setUpDragSession(){if(this.hasSelection){this.disableUserSelect(!0),this.#h=new Map;for(const t of this.#x)this.#h.set(t,{savedX:t.x,savedY:t.y,savedPageIndex:t.pageIndex,newX:0,newY:0,newPageIndex:-1})}}endDragSession(){if(!this.#h)return!1;this.disableUserSelect(!1);const t=this.#h;this.#h=null;let i=!1;for(const[{x:a,y:l,pageIndex:d},c]of t)c.newX=a,c.newY=l,c.newPageIndex=d,i||=a!==c.savedX||l!==c.savedY||d!==c.savedPageIndex;if(!i)return!1;const n=(a,l,d,c)=>{if(this.#o.has(a.id)){const p=this.#r.get(c);p?a._setParentAndPosition(p,l,d):(a.pageIndex=c,a.x=l,a.y=d)}};return this.addCommands({cmd:()=>{for(const[a,{newX:l,newY:d,newPageIndex:c}]of t)n(a,l,d,c)},undo:()=>{for(const[a,{savedX:l,savedY:d,savedPageIndex:c}]of t)n(a,l,d,c)},mustExec:!0}),!0}dragSelectedEditors(t,i){if(this.#h)for(const n of this.#h.keys())n.drag(t,i)}rebuild(t){if(t.parent===null){const i=this.getLayer(t.pageIndex);i?(i.changeParent(t),i.addOrRebuild(t)):(this.addEditor(t),this.addToAnnotationStorage(t),t.rebuild())}else t.parent.addOrRebuild(t)}get isEditorHandlingKeyboard(){return this.getActive()?.shouldGetKeyboardEvents()||this.#x.size===1&&this.firstSelectedEditor.shouldGetKeyboardEvents()}isActive(t){return this.#t===t}getActive(){return this.#t}getMode(){return this.#b}get imageManager(){return nr(this,"imageManager",new OK)}getSelectionBoxes(t){if(!t)return null;const i=document.getSelection();for(let u=0,h=i.rangeCount;u<h;u++)if(!t.contains(i.getRangeAt(u).commonAncestorContainer))return null;const{x:n,y:a,width:l,height:d}=t.getBoundingClientRect();let c;switch(t.getAttribute("data-main-rotation")){case"90":c=(u,h,m,f)=>({x:(h-a)/d,y:1-(u+m-n)/l,width:f/d,height:m/l});break;case"180":c=(u,h,m,f)=>({x:1-(u+m-n)/l,y:1-(h+f-a)/d,width:m/l,height:f/d});break;case"270":c=(u,h,m,f)=>({x:1-(h+f-a)/d,y:(u-n)/l,width:f/d,height:m/l});break;default:c=(u,h,m,f)=>({x:(u-n)/l,y:(h-a)/d,width:m/l,height:f/d});break}const p=[];for(let u=0,h=i.rangeCount;u<h;u++){const m=i.getRangeAt(u);if(!m.collapsed)for(const{x:f,y:x,width:y,height:w}of m.getClientRects())y===0||w===0||p.push(c(f,x,y,w))}return p.length===0?null:p}addChangedExistingAnnotation({annotationElementId:t,id:i}){(this.#n||=new Map).set(t,i)}removeChangedExistingAnnotation({annotationElementId:t}){this.#n?.delete(t)}renderAnnotationElement(t){const i=this.#n?.get(t.data.id);if(!i)return;const n=this.#i.getRawValue(i);n&&(this.#b===qi.NONE&&!n.hasBeenModified||n.renderAnnotationElement(t))}}class X3{#e="";#t=!1;#o=null;#r=null;#s=null;#i=!1;#n=null;static _l10nPromise=null;constructor(t){this.#n=t}static initialize(t){X3._l10nPromise||=t}async render(){const t=this.#o=document.createElement("button");t.className="altText";const i=await X3._l10nPromise.get("pdfjs-editor-alt-text-button-label");t.textContent=i,t.setAttribute("aria-label",i),t.tabIndex="0";const n=this.#n._uiManager._signal;t.addEventListener("contextmenu",ql,{signal:n}),t.addEventListener("pointerdown",l=>l.stopPropagation(),{signal:n});const a=l=>{l.preventDefault(),this.#n._uiManager.editAltText(this.#n)};return t.addEventListener("click",a,{capture:!0,signal:n}),t.addEventListener("keydown",l=>{l.target===t&&l.key==="Enter"&&(this.#i=!0,a(l))},{signal:n}),await this.#l(),t}finish(){this.#o&&(this.#o.focus({focusVisible:this.#i}),this.#i=!1)}isEmpty(){return!this.#e&&!this.#t}get data(){return{altText:this.#e,decorative:this.#t}}set data({altText:t,decorative:i}){this.#e===t&&this.#t===i||(this.#e=t,this.#t=i,this.#l())}toggle(t=!1){this.#o&&(!t&&this.#s&&(clearTimeout(this.#s),this.#s=null),this.#o.disabled=!t)}destroy(){this.#o?.remove(),this.#o=null,this.#r=null}async#l(){const t=this.#o;if(!t)return;if(!this.#e&&!this.#t){t.classList.remove("done"),this.#r?.remove();return}t.classList.add("done"),X3._l10nPromise.get("pdfjs-editor-alt-text-edit-button-label").then(a=>{t.setAttribute("aria-label",a)});let i=this.#r;if(!i){this.#r=i=document.createElement("span"),i.className="tooltip",i.setAttribute("role","tooltip");const a=i.id=`alt-text-tooltip-${this.#n.id}`;t.setAttribute("aria-describedby",a);const l=100,d=this.#n._uiManager._signal;d.addEventListener("abort",()=>{clearTimeout(this.#s),this.#s=null},{once:!0}),t.addEventListener("mouseenter",()=>{this.#s=setTimeout(()=>{this.#s=null,this.#r.classList.add("show"),this.#n._reportTelemetry({action:"alt_text_tooltip"})},l)},{signal:d}),t.addEventListener("mouseleave",()=>{this.#s&&(clearTimeout(this.#s),this.#s=null),this.#r?.classList.remove("show")},{signal:d})}i.innerText=this.#t?await X3._l10nPromise.get("pdfjs-editor-alt-text-decorative-tooltip"):this.#e,i.parentNode||t.append(i),this.#n.getImageForAltText()?.setAttribute("aria-describedby",i.id)}}class si{#e=null;#t=null;#o=null;#r=!1;#s=!1;#i=null;#n=null;#l=this.focusin.bind(this);#c=this.focusout.bind(this);#p=null;#h="";#d=!1;#a=null;#m=!1;#f=!1;#u=!1;#y=null;#g=0;#w=0;#v=null;_initialOptions=Object.create(null);_isVisible=!0;_uiManager=null;_focusEventsAllowed=!0;_l10nPromise=null;#A=!1;#k=si._zIndex++;static _borderLineWidth=-1;static _colorManager=new NK;static _zIndex=1;static _telemetryTimeout=1e3;static get _resizerKeyboardManager(){const t=si.prototype._resizeWithKeyboard,i=gm.TRANSLATE_SMALL,n=gm.TRANSLATE_BIG;return nr(this,"_resizerKeyboardManager",new gb([[["ArrowLeft","mac+ArrowLeft"],t,{args:[-i,0]}],[["ctrl+ArrowLeft","mac+shift+ArrowLeft"],t,{args:[-n,0]}],[["ArrowRight","mac+ArrowRight"],t,{args:[i,0]}],[["ctrl+ArrowRight","mac+shift+ArrowRight"],t,{args:[n,0]}],[["ArrowUp","mac+ArrowUp"],t,{args:[0,-i]}],[["ctrl+ArrowUp","mac+shift+ArrowUp"],t,{args:[0,-n]}],[["ArrowDown","mac+ArrowDown"],t,{args:[0,i]}],[["ctrl+ArrowDown","mac+shift+ArrowDown"],t,{args:[0,n]}],[["Escape","mac+Escape"],si.prototype._stopResizingWithKeyboard]]))}constructor(t){this.constructor===si&&jr("Cannot initialize AnnotationEditor."),this.parent=t.parent,this.id=t.id,this.width=this.height=null,this.pageIndex=t.parent.pageIndex,this.name=t.name,this.div=null,this._uiManager=t.uiManager,this.annotationElementId=null,this._willKeepAspectRatio=!1,this._initialOptions.isCentered=t.isCentered,this._structTreeParentId=null;const{rotation:i,rawDims:{pageWidth:n,pageHeight:a,pageX:l,pageY:d}}=this.parent.viewport;this.rotation=i,this.pageRotation=(360+i-this._uiManager.viewParameters.rotation)%360,this.pageDimensions=[n,a],this.pageTranslation=[l,d];const[c,p]=this.parentDimensions;this.x=t.x/c,this.y=t.y/p,this.isAttachedToDOM=!1,this.deleted=!1}get editorType(){return Object.getPrototypeOf(this).constructor._type}static get _defaultLineColor(){return nr(this,"_defaultLineColor",this._colorManager.getHexCode("CanvasText"))}static deleteAnnotationElement(t){const i=new O$t({id:t.parent.getNextId(),parent:t.parent,uiManager:t._uiManager});i.annotationElementId=t.annotationElementId,i.deleted=!0,i._uiManager.addToAnnotationStorage(i)}static initialize(t,i,n){if(si._l10nPromise||=new Map(["pdfjs-editor-alt-text-button-label","pdfjs-editor-alt-text-edit-button-label","pdfjs-editor-alt-text-decorative-tooltip","pdfjs-editor-resizer-label-topLeft","pdfjs-editor-resizer-label-topMiddle","pdfjs-editor-resizer-label-topRight","pdfjs-editor-resizer-label-middleRight","pdfjs-editor-resizer-label-bottomRight","pdfjs-editor-resizer-label-bottomMiddle","pdfjs-editor-resizer-label-bottomLeft","pdfjs-editor-resizer-label-middleLeft"].map(l=>[l,t.get(l.replaceAll(/([A-Z])/g,d=>`-${d.toLowerCase()}`))])),n?.strings)for(const l of n.strings)si._l10nPromise.set(l,t.get(l));if(si._borderLineWidth!==-1)return;const a=getComputedStyle(document.documentElement);si._borderLineWidth=parseFloat(a.getPropertyValue("--outline-width"))||0}static updateDefaultParams(t,i){}static get defaultPropertiesToUpdate(){return[]}static isHandlingMimeForPasting(t){return!1}static paste(t,i){jr("Not implemented")}get propertiesToUpdate(){return[]}get _isDraggable(){return this.#A}set _isDraggable(t){this.#A=t,this.div?.classList.toggle("draggable",t)}get isEnterHandled(){return!0}center(){const[t,i]=this.pageDimensions;switch(this.parentRotation){case 90:this.x-=this.height*i/(t*2),this.y+=this.width*t/(i*2);break;case 180:this.x+=this.width/2,this.y+=this.height/2;break;case 270:this.x+=this.height*i/(t*2),this.y-=this.width*t/(i*2);break;default:this.x-=this.width/2,this.y-=this.height/2;break}this.fixAndSetPosition()}addCommands(t){this._uiManager.addCommands(t)}get currentLayer(){return this._uiManager.currentLayer}setInBackground(){this.div.style.zIndex=0}setInForeground(){this.div.style.zIndex=this.#k}setParent(t){t!==null?(this.pageIndex=t.pageIndex,this.pageDimensions=t.pageDimensions):this.#P(),this.parent=t}focusin(t){this._focusEventsAllowed&&(this.#d?this.#d=!1:this.parent.setSelected(this))}focusout(t){!this._focusEventsAllowed||!this.isAttachedToDOM||t.relatedTarget?.closest(`#${this.id}`)||(t.preventDefault(),this.parent?.isMultipleSelection||this.commitOrRemove())}commitOrRemove(){this.isEmpty()?this.remove():this.commit()}commit(){this.addToAnnotationStorage()}addToAnnotationStorage(){this._uiManager.addToAnnotationStorage(this)}setAt(t,i,n,a){const[l,d]=this.parentDimensions;[n,a]=this.screenToPageTranslation(n,a),this.x=(t+n)/l,this.y=(i+a)/d,this.fixAndSetPosition()}#S([t,i],n,a){[n,a]=this.screenToPageTranslation(n,a),this.x+=n/t,this.y+=a/i,this.fixAndSetPosition()}translate(t,i){this.#S(this.parentDimensions,t,i)}translateInPage(t,i){this.#a||=[this.x,this.y],this.#S(this.pageDimensions,t,i),this.div.scrollIntoView({block:"nearest"})}drag(t,i){this.#a||=[this.x,this.y];const[n,a]=this.parentDimensions;if(this.x+=t/n,this.y+=i/a,this.parent&&(this.x<0||this.x>1||this.y<0||this.y>1)){const{x:u,y:h}=this.div.getBoundingClientRect();this.parent.findNewParent(this,u,h)&&(this.x-=Math.floor(this.x),this.y-=Math.floor(this.y))}let{x:l,y:d}=this;const[c,p]=this.getBaseTranslation();l+=c,d+=p,this.div.style.left=`${(100*l).toFixed(2)}%`,this.div.style.top=`${(100*d).toFixed(2)}%`,this.div.scrollIntoView({block:"nearest"})}get _hasBeenMoved(){return!!this.#a&&(this.#a[0]!==this.x||this.#a[1]!==this.y)}getBaseTranslation(){const[t,i]=this.parentDimensions,{_borderLineWidth:n}=si,a=n/t,l=n/i;switch(this.rotation){case 90:return[-a,l];case 180:return[a,l];case 270:return[a,-l];default:return[-a,-l]}}get _mustFixPosition(){return!0}fixAndSetPosition(t=this.rotation){const[i,n]=this.pageDimensions;let{x:a,y:l,width:d,height:c}=this;if(d*=i,c*=n,a*=i,l*=n,this._mustFixPosition)switch(t){case 0:a=Math.max(0,Math.min(i-d,a)),l=Math.max(0,Math.min(n-c,l));break;case 90:a=Math.max(0,Math.min(i-c,a)),l=Math.min(n,Math.max(d,l));break;case 180:a=Math.min(i,Math.max(d,a)),l=Math.min(n,Math.max(c,l));break;case 270:a=Math.min(i,Math.max(c,a)),l=Math.max(0,Math.min(n-d,l));break}this.x=a/=i,this.y=l/=n;const[p,u]=this.getBaseTranslation();a+=p,l+=u;const{style:h}=this.div;h.left=`${(100*a).toFixed(2)}%`,h.top=`${(100*l).toFixed(2)}%`,this.moveInDOM()}static#j(t,i,n){switch(n){case 90:return[i,-t];case 180:return[-t,-i];case 270:return[-i,t];default:return[t,i]}}screenToPageTranslation(t,i){return si.#j(t,i,this.parentRotation)}pageTranslationToScreen(t,i){return si.#j(t,i,360-this.parentRotation)}#$(t){switch(t){case 90:{const[i,n]=this.pageDimensions;return[0,-i/n,n/i,0]}case 180:return[-1,0,0,-1];case 270:{const[i,n]=this.pageDimensions;return[0,i/n,-n/i,0]}default:return[1,0,0,1]}}get parentScale(){return this._uiManager.viewParameters.realScale}get parentRotation(){return(this._uiManager.viewParameters.rotation+this.pageRotation)%360}get parentDimensions(){const{parentScale:t,pageDimensions:[i,n]}=this,a=i*t,l=n*t;return Ql.isCSSRoundSupported?[Math.round(a),Math.round(l)]:[a,l]}setDims(t,i){const[n,a]=this.parentDimensions;this.div.style.width=`${(100*t/n).toFixed(2)}%`,this.#s||(this.div.style.height=`${(100*i/a).toFixed(2)}%`)}fixDims(){const{style:t}=this.div,{height:i,width:n}=t,a=n.endsWith("%"),l=!this.#s&&i.endsWith("%");if(a&&l)return;const[d,c]=this.parentDimensions;a||(t.width=`${(100*parseFloat(n)/d).toFixed(2)}%`),!this.#s&&!l&&(t.height=`${(100*parseFloat(i)/c).toFixed(2)}%`)}getInitialTranslation(){return[0,0]}#b(){if(this.#i)return;this.#i=document.createElement("div"),this.#i.classList.add("resizers");const t=this._willKeepAspectRatio?["topLeft","topRight","bottomRight","bottomLeft"]:["topLeft","topMiddle","topRight","middleRight","bottomRight","bottomMiddle","bottomLeft","middleLeft"],i=this._uiManager._signal;for(const n of t){const a=document.createElement("div");this.#i.append(a),a.classList.add("resizer",n),a.setAttribute("data-resizer-name",n),a.addEventListener("pointerdown",this.#x.bind(this,n),{signal:i}),a.addEventListener("contextmenu",ql,{signal:i}),a.tabIndex=-1}this.div.prepend(this.#i)}#x(t,i){i.preventDefault();const{isMac:n}=Ql.platform;if(i.button!==0||i.ctrlKey&&n)return;this.#o?.toggle(!1);const a=this.#E.bind(this,t),l=this._isDraggable;this._isDraggable=!1;const d=this._uiManager._signal,c={passive:!0,capture:!0,signal:d};this.parent.togglePointerEvents(!1),window.addEventListener("pointermove",a,c),window.addEventListener("contextmenu",ql,{signal:d});const p=this.x,u=this.y,h=this.width,m=this.height,f=this.parent.div.style.cursor,x=this.div.style.cursor;this.div.style.cursor=this.parent.div.style.cursor=window.getComputedStyle(i.target).cursor;const y=()=>{this.parent.togglePointerEvents(!0),this.#o?.toggle(!0),this._isDraggable=l,window.removeEventListener("pointerup",y),window.removeEventListener("blur",y),window.removeEventListener("pointermove",a,c),window.removeEventListener("contextmenu",ql),this.parent.div.style.cursor=f,this.div.style.cursor=x,this.#C(p,u,h,m)};window.addEventListener("pointerup",y,{signal:d}),window.addEventListener("blur",y,{signal:d})}#C(t,i,n,a){const l=this.x,d=this.y,c=this.width,p=this.height;l===t&&d===i&&c===n&&p===a||this.addCommands({cmd:()=>{this.width=c,this.height=p,this.x=l,this.y=d;const[u,h]=this.parentDimensions;this.setDims(u*c,h*p),this.fixAndSetPosition()},undo:()=>{this.width=n,this.height=a,this.x=t,this.y=i;const[u,h]=this.parentDimensions;this.setDims(u*n,h*a),this.fixAndSetPosition()},mustExec:!0})}#E(t,i){const[n,a]=this.parentDimensions,l=this.x,d=this.y,c=this.width,p=this.height,u=si.MIN_SIZE/n,h=si.MIN_SIZE/a,m=N=>Math.round(N*1e4)/1e4,f=this.#$(this.rotation),x=(N,O)=>[f[0]*N+f[2]*O,f[1]*N+f[3]*O],y=this.#$(360-this.rotation),w=(N,O)=>[y[0]*N+y[2]*O,y[1]*N+y[3]*O];let b,C,k=!1,E=!1;switch(t){case"topLeft":k=!0,b=(N,O)=>[0,0],C=(N,O)=>[N,O];break;case"topMiddle":b=(N,O)=>[N/2,0],C=(N,O)=>[N/2,O];break;case"topRight":k=!0,b=(N,O)=>[N,0],C=(N,O)=>[0,O];break;case"middleRight":E=!0,b=(N,O)=>[N,O/2],C=(N,O)=>[0,O/2];break;case"bottomRight":k=!0,b=(N,O)=>[N,O],C=(N,O)=>[0,0];break;case"bottomMiddle":b=(N,O)=>[N/2,O],C=(N,O)=>[N/2,0];break;case"bottomLeft":k=!0,b=(N,O)=>[0,O],C=(N,O)=>[N,0];break;case"middleLeft":E=!0,b=(N,O)=>[0,O/2],C=(N,O)=>[N,O/2];break}const S=b(c,p),j=C(c,p);let I=x(...j);const T=m(l+I[0]),P=m(d+I[1]);let B=1,D=1,[F,Y]=this.screenToPageTranslation(i.movementX,i.movementY);if([F,Y]=w(F/n,Y/a),k){const N=Math.hypot(c,p);B=D=Math.max(Math.min(Math.hypot(j[0]-S[0]-F,j[1]-S[1]-Y)/N,1/c,1/p),u/c,h/p)}else E?B=Math.max(u,Math.min(1,Math.abs(j[0]-S[0]-F)))/c:D=Math.max(h,Math.min(1,Math.abs(j[1]-S[1]-Y)))/p;const q=m(c*B),Z=m(p*D);I=x(...C(q,Z));const V=T-I[0],H=P-I[1];this.width=q,this.height=Z,this.x=V,this.y=H,this.setDims(n*q,a*Z),this.fixAndSetPosition()}altTextFinish(){this.#o?.finish()}async addEditToolbar(){return this.#p||this.#f?this.#p:(this.#p=new RK(this),this.div.append(this.#p.render()),this.#o&&this.#p.addAltTextButton(await this.#o.render()),this.#p)}removeEditToolbar(){this.#p&&(this.#p.remove(),this.#p=null,this.#o?.destroy())}getClientDimensions(){return this.div.getBoundingClientRect()}async addAltTextButton(){this.#o||(X3.initialize(si._l10nPromise),this.#o=new X3(this),this.#e&&(this.#o.data=this.#e,this.#e=null),await this.addEditToolbar())}get altTextData(){return this.#o?.data}set altTextData(t){this.#o&&(this.#o.data=t)}hasAltText(){return!this.#o?.isEmpty()}render(){this.div=document.createElement("div"),this.div.setAttribute("data-editor-rotation",(360-this.rotation)%360),this.div.className=this.name,this.div.setAttribute("id",this.id),this.div.tabIndex=this.#r?-1:0,this._isVisible||this.div.classList.add("hidden"),this.setInForeground();const t=this._uiManager._signal;this.div.addEventListener("focusin",this.#l,{signal:t}),this.div.addEventListener("focusout",this.#c,{signal:t});const[i,n]=this.parentDimensions;this.parentRotation%180!==0&&(this.div.style.maxWidth=`${(100*n/i).toFixed(2)}%`,this.div.style.maxHeight=`${(100*i/n).toFixed(2)}%`);const[a,l]=this.getInitialTranslation();return this.translate(a,l),pS(this,this.div,["pointerdown"]),this.div}pointerdown(t){const{isMac:i}=Ql.platform;if(t.button!==0||t.ctrlKey&&i){t.preventDefault();return}if(this.#d=!0,this._isDraggable){this.#B(t);return}this.#L(t)}#L(t){const{isMac:i}=Ql.platform;t.ctrlKey&&!i||t.shiftKey||t.metaKey&&i?this.parent.toggleSelected(this):this.parent.setSelected(this)}#B(t){const i=this._uiManager.isSelected(this);this._uiManager.setUpDragSession();let n,a;const l=this._uiManager._signal;i&&(this.div.classList.add("moving"),n={passive:!0,capture:!0,signal:l},this.#g=t.clientX,this.#w=t.clientY,a=c=>{const{clientX:p,clientY:u}=c,[h,m]=this.screenToPageTranslation(p-this.#g,u-this.#w);this.#g=p,this.#w=u,this._uiManager.dragSelectedEditors(h,m)},window.addEventListener("pointermove",a,n));const d=()=>{window.removeEventListener("pointerup",d),window.removeEventListener("blur",d),i&&(this.div.classList.remove("moving"),window.removeEventListener("pointermove",a,n)),this.#d=!1,this._uiManager.endDragSession()||this.#L(t)};window.addEventListener("pointerup",d,{signal:l}),window.addEventListener("blur",d,{signal:l})}moveInDOM(){this.#y&&clearTimeout(this.#y),this.#y=setTimeout(()=>{this.#y=null,this.parent?.moveEditorInDOM(this)},0)}_setParentAndPosition(t,i,n){t.changeParent(this),this.x=i,this.y=n,this.fixAndSetPosition()}getRect(t,i,n=this.rotation){const a=this.parentScale,[l,d]=this.pageDimensions,[c,p]=this.pageTranslation,u=t/a,h=i/a,m=this.x*l,f=this.y*d,x=this.width*l,y=this.height*d;switch(n){case 0:return[m+u+c,d-f-h-y+p,m+u+x+c,d-f-h+p];case 90:return[m+h+c,d-f+u+p,m+h+y+c,d-f+u+x+p];case 180:return[m-u-x+c,d-f+h+p,m-u+c,d-f+h+y+p];case 270:return[m-h-y+c,d-f-u-x+p,m-h+c,d-f-u+p];default:throw new Error("Invalid rotation")}}getRectInCurrentCoords(t,i){const[n,a,l,d]=t,c=l-n,p=d-a;switch(this.rotation){case 0:return[n,i-d,c,p];case 90:return[n,i-a,p,c];case 180:return[l,i-a,c,p];case 270:return[l,i-d,p,c];default:throw new Error("Invalid rotation")}}onceAdded(){}isEmpty(){return!1}enableEditMode(){this.#f=!0}disableEditMode(){this.#f=!1}isInEditMode(){return this.#f}shouldGetKeyboardEvents(){return this.#u}needsToBeRebuilt(){return this.div&&!this.isAttachedToDOM}rebuild(){const t=this._uiManager._signal;this.div?.addEventListener("focusin",this.#l,{signal:t}),this.div?.addEventListener("focusout",this.#c,{signal:t})}rotate(t){}serialize(t=!1,i=null){jr("An editor must be serializable")}static deserialize(t,i,n){const a=new this.prototype.constructor({parent:i,id:i.getNextId(),uiManager:n});a.rotation=t.rotation,a.#e=t.accessibilityData;const[l,d]=a.pageDimensions,[c,p,u,h]=a.getRectInCurrentCoords(t.rect,d);return a.x=c/l,a.y=p/d,a.width=u/l,a.height=h/d,a}get hasBeenModified(){return!!this.annotationElementId&&(this.deleted||this.serialize()!==null)}remove(){if(this.div.removeEventListener("focusin",this.#l),this.div.removeEventListener("focusout",this.#c),this.isEmpty()||this.commit(),this.parent?this.parent.remove(this):this._uiManager.removeEditor(this),this.#y&&(clearTimeout(this.#y),this.#y=null),this.#P(),this.removeEditToolbar(),this.#v){for(const t of this.#v.values())clearTimeout(t);this.#v=null}this.parent=null}get isResizable(){return!1}makeResizable(){this.isResizable&&(this.#b(),this.#i.classList.remove("hidden"),pS(this,this.div,["keydown"]))}get toolbarPosition(){return null}keydown(t){if(!this.isResizable||t.target!==this.div||t.key!=="Enter")return;this._uiManager.setSelected(this),this.#n={savedX:this.x,savedY:this.y,savedWidth:this.width,savedHeight:this.height};const i=this.#i.children;if(!this.#t){this.#t=Array.from(i);const d=this.#M.bind(this),c=this.#T.bind(this),p=this._uiManager._signal;for(const u of this.#t){const h=u.getAttribute("data-resizer-name");u.setAttribute("role","spinbutton"),u.addEventListener("keydown",d,{signal:p}),u.addEventListener("blur",c,{signal:p}),u.addEventListener("focus",this.#D.bind(this,h),{signal:p}),si._l10nPromise.get(`pdfjs-editor-resizer-label-${h}`).then(m=>u.setAttribute("aria-label",m))}}const n=this.#t[0];let a=0;for(const d of i){if(d===n)break;a++}const l=(360-this.rotation+this.parentRotation)%360/90*(this.#t.length/4);if(l!==a){if(l<a)for(let c=0;c<a-l;c++)this.#i.append(this.#i.firstChild);else if(l>a)for(let c=0;c<l-a;c++)this.#i.firstChild.before(this.#i.lastChild);let d=0;for(const c of i){const u=this.#t[d++].getAttribute("data-resizer-name");si._l10nPromise.get(`pdfjs-editor-resizer-label-${u}`).then(h=>c.setAttribute("aria-label",h))}}this.#z(0),this.#u=!0,this.#i.firstChild.focus({focusVisible:!0}),t.preventDefault(),t.stopImmediatePropagation()}#M(t){si._resizerKeyboardManager.exec(this,t)}#T(t){this.#u&&t.relatedTarget?.parentNode!==this.#i&&this.#P()}#D(t){this.#h=this.#u?t:""}#z(t){if(this.#t)for(const i of this.#t)i.tabIndex=t}_resizeWithKeyboard(t,i){this.#u&&this.#E(this.#h,{movementX:t,movementY:i})}#P(){if(this.#u=!1,this.#z(-1),this.#n){const{savedX:t,savedY:i,savedWidth:n,savedHeight:a}=this.#n;this.#C(t,i,n,a),this.#n=null}}_stopResizingWithKeyboard(){this.#P(),this.div.focus()}select(){if(this.makeResizable(),this.div?.classList.add("selectedEditor"),!this.#p){this.addEditToolbar().then(()=>{this.div?.classList.contains("selectedEditor")&&this.#p?.show()});return}this.#p?.show()}unselect(){this.#i?.classList.add("hidden"),this.div?.classList.remove("selectedEditor"),this.div?.contains(document.activeElement)&&this._uiManager.currentLayer.div.focus({preventScroll:!0}),this.#p?.hide()}updateParams(t,i){}disableEditing(){}enableEditing(){}enterInEditMode(){}getImageForAltText(){return null}get contentDiv(){return this.div}get isEditing(){return this.#m}set isEditing(t){this.#m=t,this.parent&&(t?(this.parent.setSelected(this),this.parent.setActiveEditor(this)):this.parent.setActiveEditor(null))}setAspectRatio(t,i){this.#s=!0;const n=t/i,{style:a}=this.div;a.aspectRatio=n,a.height="auto"}static get MIN_SIZE(){return 16}static canCreateNewEmptyEditor(){return!0}get telemetryInitialData(){return{action:"added"}}get telemetryFinalData(){return null}_reportTelemetry(t,i=!1){if(i){this.#v||=new Map;const{action:n}=t;let a=this.#v.get(n);a&&clearTimeout(a),a=setTimeout(()=>{this._reportTelemetry(t),this.#v.delete(n),this.#v.size===0&&(this.#v=null)},si._telemetryTimeout),this.#v.set(n,a);return}t.type||=this.editorType,this._uiManager._eventBus.dispatch("reporttelemetry",{source:this,details:{type:"editing",data:t}})}show(t=this._isVisible){this.div.classList.toggle("hidden",!t),this._isVisible=t}enable(){this.div&&(this.div.tabIndex=0),this.#r=!1}disable(){this.div&&(this.div.tabIndex=-1),this.#r=!0}renderAnnotationElement(t){let i=t.container.querySelector(".annotationContent");if(!i)i=document.createElement("div"),i.classList.add("annotationContent",this.editorType),t.container.prepend(i);else if(i.nodeName==="CANVAS"){const n=i;i=document.createElement("div"),i.classList.add("annotationContent",this.editorType),n.before(i)}return i}resetAnnotationElement(t){const{firstChild:i}=t.container;i.nodeName==="DIV"&&i.classList.contains("annotationContent")&&i.remove()}}class O$t extends si{constructor(t){super(t),this.annotationElementId=t.annotationElementId,this.deleted=!0}serialize(){return{id:this.annotationElementId,deleted:!0,pageIndex:this.pageIndex}}}const dpe=3285377520,Xd=4294901760,Wp=65535;class Qje{constructor(t){this.h1=t?t&4294967295:dpe,this.h2=t?t&4294967295:dpe}update(t){let i,n;if(typeof t=="string"){i=new Uint8Array(t.length*2),n=0;for(let w=0,b=t.length;w<b;w++){const C=t.charCodeAt(w);C<=255?i[n++]=C:(i[n++]=C>>>8,i[n++]=C&255)}}else if(ArrayBuffer.isView(t))i=t.slice(),n=i.byteLength;else throw new Error("Invalid data format, must be a string or TypedArray.");const a=n>>2,l=n-a*4,d=new Uint32Array(i.buffer,0,a);let c=0,p=0,u=this.h1,h=this.h2;const m=3432918353,f=461845907,x=m&Wp,y=f&Wp;for(let w=0;w<a;w++)w&1?(c=d[w],c=c*m&Xd|c*x&Wp,c=c<<15|c>>>17,c=c*f&Xd|c*y&Wp,u^=c,u=u<<13|u>>>19,u=u*5+3864292196):(p=d[w],p=p*m&Xd|p*x&Wp,p=p<<15|p>>>17,p=p*f&Xd|p*y&Wp,h^=p,h=h<<13|h>>>19,h=h*5+3864292196);switch(c=0,l){case 3:c^=i[a*4+2]<<16;case 2:c^=i[a*4+1]<<8;case 1:c^=i[a*4],c=c*m&Xd|c*x&Wp,c=c<<15|c>>>17,c=c*f&Xd|c*y&Wp,a&1?u^=c:h^=c}this.h1=u,this.h2=h}hexdigest(){let t=this.h1,i=this.h2;return t^=i>>>1,t=t*3981806797&Xd|t*36045&Wp,i=i*4283543511&Xd|((i<<16|t>>>16)*2950163797&Xd)>>>16,t^=i>>>1,t=t*444984403&Xd|t*60499&Wp,i=i*3301882366&Xd|((i<<16|t>>>16)*3120437893&Xd)>>>16,t^=i>>>1,(t>>>0).toString(16).padStart(8,"0")+(i>>>0).toString(16).padStart(8,"0")}}const mU=Object.freeze({map:null,hash:"",transfer:void 0});class HK{#e=!1;#t=new Map;constructor(){this.onSetModified=null,this.onResetModified=null,this.onAnnotationEditor=null}getValue(t,i){const n=this.#t.get(t);return n===void 0?i:Object.assign(i,n)}getRawValue(t){return this.#t.get(t)}remove(t){if(this.#t.delete(t),this.#t.size===0&&this.resetModified(),typeof this.onAnnotationEditor=="function"){for(const i of this.#t.values())if(i instanceof si)return;this.onAnnotationEditor(null)}}setValue(t,i){const n=this.#t.get(t);let a=!1;if(n!==void 0)for(const[l,d]of Object.entries(i))n[l]!==d&&(a=!0,n[l]=d);else a=!0,this.#t.set(t,i);a&&this.#o(),i instanceof si&&typeof this.onAnnotationEditor=="function"&&this.onAnnotationEditor(i.constructor._type)}has(t){return this.#t.has(t)}getAll(){return this.#t.size>0?MK(this.#t):null}setAll(t){for(const[i,n]of Object.entries(t))this.setValue(i,n)}get size(){return this.#t.size}#o(){this.#e||(this.#e=!0,typeof this.onSetModified=="function"&&this.onSetModified())}resetModified(){this.#e&&(this.#e=!1,typeof this.onResetModified=="function"&&this.onResetModified())}get print(){return new Uje(this)}get serializable(){if(this.#t.size===0)return mU;const t=new Map,i=new Qje,n=[],a=Object.create(null);let l=!1;for(const[d,c]of this.#t){const p=c instanceof si?c.serialize(!1,a):c;p&&(t.set(d,p),i.update(`${d}:${JSON.stringify(p)}`),l||=!!p.bitmap)}if(l)for(const d of t.values())d.bitmap&&n.push(d.bitmap);return t.size>0?{map:t,hash:i.hexdigest(),transfer:n}:mU}get editorStats(){let t=null;const i=new Map;for(const n of this.#t.values()){if(!(n instanceof si))continue;const a=n.telemetryFinalData;if(!a)continue;const{type:l}=a;i.has(l)||i.set(l,Object.getPrototypeOf(n).constructor),t||=Object.create(null);const d=t[l]||=new Map;for(const[c,p]of Object.entries(a)){if(c==="type")continue;let u=d.get(c);u||(u=new Map,d.set(c,u));const h=u.get(p)??0;u.set(p,h+1)}}for(const[n,a]of i)t[n]=a.computeTelemetryFinalData(t[n]);return t}}class Uje extends HK{#e;constructor(t){super();const{map:i,hash:n,transfer:a}=t.serializable,l=structuredClone(i,a?{transfer:a}:null);this.#e={map:l,hash:n,transfer:a}}get print(){jr("Should not call PrintAnnotationStorage.print")}get serializable(){return this.#e}}class N$t{#e=new Set;constructor({ownerDocument:t=globalThis.document,styleElement:i=null}){this._document=t,this.nativeFontFaces=new Set,this.styleElement=null,this.loadingRequests=[],this.loadTestFontId=0}addNativeFontFace(t){this.nativeFontFaces.add(t),this._document.fonts.add(t)}removeNativeFontFace(t){this.nativeFontFaces.delete(t),this._document.fonts.delete(t)}insertRule(t){this.styleElement||(this.styleElement=this._document.createElement("style"),this._document.documentElement.getElementsByTagName("head")[0].append(this.styleElement));const i=this.styleElement.sheet;i.insertRule(t,i.cssRules.length)}clear(){for(const t of this.nativeFontFaces)this._document.fonts.delete(t);this.nativeFontFaces.clear(),this.#e.clear(),this.styleElement&&(this.styleElement.remove(),this.styleElement=null)}async loadSystemFont({systemFontInfo:t,_inspectFont:i}){if(!(!t||this.#e.has(t.loadedName))){if(Ca(!this.disableFontFace,"loadSystemFont shouldn't be called when `disableFontFace` is set."),this.isFontLoadingAPISupported){const{loadedName:n,src:a,style:l}=t,d=new FontFace(n,a,l);this.addNativeFontFace(d);try{await d.load(),this.#e.add(n),i?.(t)}catch{Pi(`Cannot load system font: ${t.baseFontName}, installing it could help to improve PDF rendering.`),this.removeNativeFontFace(d)}return}jr("Not implemented: loadSystemFont without the Font Loading API.")}}async bind(t){if(t.attached||t.missingFile&&!t.systemFontInfo)return;if(t.attached=!0,t.systemFontInfo){await this.loadSystemFont(t);return}if(this.isFontLoadingAPISupported){const n=t.createNativeFontFace();if(n){this.addNativeFontFace(n);try{await n.loaded}catch(a){throw Pi(`Failed to load font '${n.family}': '${a}'.`),t.disableFontFace=!0,a}}return}const i=t.createFontFaceRule();if(i){if(this.insertRule(i),this.isSyncFontLoadingSupported)return;await new Promise(n=>{const a=this._queueLoadingCallback(n);this._prepareFontLoadEvent(t,a)})}}get isFontLoadingAPISupported(){const t=!!this._document?.fonts;return nr(this,"isFontLoadingAPISupported",t)}get isSyncFontLoadingSupported(){let t=!1;return(Rs||typeof navigator<"u"&&typeof navigator?.userAgent=="string"&&/Mozilla\/5.0.*?rv:\d+.*? Gecko/.test(navigator.userAgent))&&(t=!0),nr(this,"isSyncFontLoadingSupported",t)}_queueLoadingCallback(t){function i(){for(Ca(!a.done,"completeRequest() cannot be called twice."),a.done=!0;n.length>0&&n[0].done;){const l=n.shift();setTimeout(l.callback,0)}}const{loadingRequests:n}=this,a={done:!1,complete:i,callback:t};return n.push(a),a}get _loadTestFont(){const t=atob("T1RUTwALAIAAAwAwQ0ZGIDHtZg4AAAOYAAAAgUZGVE1lkzZwAAAEHAAAABxHREVGABQAFQAABDgAAAAeT1MvMlYNYwkAAAEgAAAAYGNtYXABDQLUAAACNAAAAUJoZWFk/xVFDQAAALwAAAA2aGhlYQdkA+oAAAD0AAAAJGhtdHgD6AAAAAAEWAAAAAZtYXhwAAJQAAAAARgAAAAGbmFtZVjmdH4AAAGAAAAAsXBvc3T/hgAzAAADeAAAACAAAQAAAAEAALZRFsRfDzz1AAsD6AAAAADOBOTLAAAAAM4KHDwAAAAAA+gDIQAAAAgAAgAAAAAAAAABAAADIQAAAFoD6AAAAAAD6AABAAAAAAAAAAAAAAAAAAAAAQAAUAAAAgAAAAQD6AH0AAUAAAKKArwAAACMAooCvAAAAeAAMQECAAACAAYJAAAAAAAAAAAAAQAAAAAAAAAAAAAAAFBmRWQAwAAuAC4DIP84AFoDIQAAAAAAAQAAAAAAAAAAACAAIAABAAAADgCuAAEAAAAAAAAAAQAAAAEAAAAAAAEAAQAAAAEAAAAAAAIAAQAAAAEAAAAAAAMAAQAAAAEAAAAAAAQAAQAAAAEAAAAAAAUAAQAAAAEAAAAAAAYAAQAAAAMAAQQJAAAAAgABAAMAAQQJAAEAAgABAAMAAQQJAAIAAgABAAMAAQQJAAMAAgABAAMAAQQJAAQAAgABAAMAAQQJAAUAAgABAAMAAQQJAAYAAgABWABYAAAAAAAAAwAAAAMAAAAcAAEAAAAAADwAAwABAAAAHAAEACAAAAAEAAQAAQAAAC7//wAAAC7////TAAEAAAAAAAABBgAAAQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAEAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAMAAAAAAAD/gwAyAAAAAQAAAAAAAAAAAAAAAAAAAAABAAQEAAEBAQJYAAEBASH4DwD4GwHEAvgcA/gXBIwMAYuL+nz5tQXkD5j3CBLnEQACAQEBIVhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYAAABAQAADwACAQEEE/t3Dov6fAH6fAT+fPp8+nwHDosMCvm1Cvm1DAz6fBQAAAAAAAABAAAAAMmJbzEAAAAAzgTjFQAAAADOBOQpAAEAAAAAAAAADAAUAAQAAAABAAAAAgABAAAAAAAAAAAD6AAAAAAAAA==");return nr(this,"_loadTestFont",t)}_prepareFontLoadEvent(t,i){function n(S,j){return S.charCodeAt(j)<<24|S.charCodeAt(j+1)<<16|S.charCodeAt(j+2)<<8|S.charCodeAt(j+3)&255}function a(S,j,I,T){const P=S.substring(0,j),B=S.substring(j+I);return P+T+B}let l,d;const c=this._document.createElement("canvas");c.width=1,c.height=1;const p=c.getContext("2d");let u=0;function h(S,j){if(++u>30){Pi("Load test font never loaded."),j();return}if(p.font="30px "+S,p.fillText(".",0,20),p.getImageData(0,0,1,1).data[3]>0){j();return}setTimeout(h.bind(null,S,j))}const m=`lt${Date.now()}${this.loadTestFontId++}`;let f=this._loadTestFont;f=a(f,976,m.length,m);const y=16,w=1482184792;let b=n(f,y);for(l=0,d=m.length-3;l<d;l+=4)b=b-w+n(m,l)|0;l<m.length&&(b=b-w+n(m+"XXX",l)|0),f=a(f,y,4,A$t(b));const C=`url(data:font/opentype;base64,${btoa(f)});`,k=`@font-face {font-family:"${m}";src:${C}}`;this.insertRule(k);const E=this._document.createElement("div");E.style.visibility="hidden",E.style.width=E.style.height="10px",E.style.position="absolute",E.style.top=E.style.left="0px";for(const S of[t.loadedName,m]){const j=this._document.createElement("span");j.textContent="Hi",j.style.fontFamily=S,E.append(j)}this._document.body.append(E),h(m,()=>{E.remove(),i.complete()})}}class H$t{constructor(t,{disableFontFace:i=!1,inspectFont:n=null}){this.compiledGlyphs=Object.create(null);for(const a in t)this[a]=t[a];this.disableFontFace=i===!0,this._inspectFont=n}createNativeFontFace(){if(!this.data||this.disableFontFace)return null;let t;if(!this.cssFontInfo)t=new FontFace(this.loadedName,this.data,{});else{const i={weight:this.cssFontInfo.fontWeight};this.cssFontInfo.italicAngle&&(i.style=`oblique ${this.cssFontInfo.italicAngle}deg`),t=new FontFace(this.cssFontInfo.fontFamily,this.data,i)}return this._inspectFont?.(this),t}createFontFaceRule(){if(!this.data||this.disableFontFace)return null;const t=Rje(this.data),i=`url(data:${this.mimetype};base64,${btoa(t)});`;let n;if(!this.cssFontInfo)n=`@font-face {font-family:"${this.loadedName}";src:${i}}`;else{let a=`font-weight: ${this.cssFontInfo.fontWeight};`;this.cssFontInfo.italicAngle&&(a+=`font-style: oblique ${this.cssFontInfo.italicAngle}deg;`),n=`@font-face {font-family:"${this.cssFontInfo.fontFamily}";${a}src:${i}}`}return this._inspectFont?.(this,i),n}getPathGenerator(t,i){if(this.compiledGlyphs[i]!==void 0)return this.compiledGlyphs[i];let n;try{n=t.get(this.loadedName+"_path_"+i)}catch(l){Pi(`getPathGenerator - ignoring character: "${l}".`)}if(!Array.isArray(n)||n.length===0)return this.compiledGlyphs[i]=function(l,d){};const a=[];for(let l=0,d=n.length;l<d;)switch(n[l++]){case Lh.BEZIER_CURVE_TO:{const[c,p,u,h,m,f]=n.slice(l,l+6);a.push(x=>x.bezierCurveTo(c,p,u,h,m,f)),l+=6}break;case Lh.MOVE_TO:{const[c,p]=n.slice(l,l+2);a.push(u=>u.moveTo(c,p)),l+=2}break;case Lh.LINE_TO:{const[c,p]=n.slice(l,l+2);a.push(u=>u.lineTo(c,p)),l+=2}break;case Lh.QUADRATIC_CURVE_TO:{const[c,p,u,h]=n.slice(l,l+4);a.push(m=>m.quadraticCurveTo(c,p,u,h)),l+=4}break;case Lh.RESTORE:a.push(c=>c.restore());break;case Lh.SAVE:a.push(c=>c.save());break;case Lh.SCALE:Ca(a.length===2,"Scale command is only valid at the third position.");break;case Lh.TRANSFORM:{const[c,p,u,h,m,f]=n.slice(l,l+6);a.push(x=>x.transform(c,p,u,h,m,f)),l+=6}break;case Lh.TRANSLATE:{const[c,p]=n.slice(l,l+2);a.push(u=>u.translate(c,p)),l+=2}break}return this.compiledGlyphs[i]=function(d,c){a[0](d),a[1](d),d.scale(c,-c);for(let p=2,u=a.length;p<u;p++)a[p](d)}}}if(Rs){var gU=Promise.withResolvers(),fU=null;(async()=>{const t=await K3(()=>import("./empty-DzkUY9hr.js").then(c=>c.e),__vite__mapDeps([0,1,2])),i=await K3(()=>import("./index-y4rvaaOT.js").then(c=>c.i),__vite__mapDeps([3,1,4,5,6,7,8,9])),n=await K3(()=>import("./index-DBxpK-2g.js").then(c=>c.i),__vite__mapDeps([10,1,11,4,5,6,7,8,9])),a=await K3(()=>import("./url-COJBLlNj.js").then(c=>c.u),__vite__mapDeps([12,1,9,7,5,6,8]));let l,d;return new Map(Object.entries({fs:t,http:i,https:n,url:a,canvas:l,path2d:d}))})().then(t=>{fU=t,gU.resolve()},t=>{Pi(`loadPackages: ${t}`),fU=new Map,gU.resolve()})}class Uu{static get promise(){return gU.promise}static get(t){return fU?.get(t)}}const Wje=function(e){return Uu.get("fs").promises.readFile(e).then(i=>new Uint8Array(i))};class _$t extends UL{}class V$t extends WL{_createCanvas(t,i){return Uu.get("canvas").createCanvas(t,i)}}class Q$t extends GL{_fetchData(t,i){return Wje(t).then(n=>({cMapData:n,compressionType:i}))}}class U$t extends YL{_fetchData(t){return Wje(t)}}const al={FILL:"Fill",STROKE:"Stroke",SHADING:"Shading"};function xU(e,t){if(!t)return;const i=t[2]-t[0],n=t[3]-t[1],a=new Path2D;a.rect(t[0],t[1],i,n),e.clip(a)}class fb{constructor(){this.constructor===fb&&jr("Cannot initialize BaseShadingPattern.")}getPattern(){jr("Abstract method `getPattern` called.")}}class W$t extends fb{constructor(t){super(),this._type=t[1],this._bbox=t[2],this._colorStops=t[3],this._p0=t[4],this._p1=t[5],this._r0=t[6],this._r1=t[7],this.matrix=null}_createGradient(t){let i;this._type==="axial"?i=t.createLinearGradient(this._p0[0],this._p0[1],this._p1[0],this._p1[1]):this._type==="radial"&&(i=t.createRadialGradient(this._p0[0],this._p0[1],this._r0,this._p1[0],this._p1[1],this._r1));for(const n of this._colorStops)i.addColorStop(n[0],n[1]);return i}getPattern(t,i,n,a){let l;if(a===al.STROKE||a===al.FILL){const d=i.current.getClippedPathBoundingBox(a,mn(t))||[0,0,0,0],c=Math.ceil(d[2]-d[0])||1,p=Math.ceil(d[3]-d[1])||1,u=i.cachedCanvases.getCanvas("pattern",c,p,!0),h=u.context;h.clearRect(0,0,h.canvas.width,h.canvas.height),h.beginPath(),h.rect(0,0,h.canvas.width,h.canvas.height),h.translate(-d[0],-d[1]),n=ko.transform(n,[1,0,0,1,d[0],d[1]]),h.transform(...i.baseTransform),this.matrix&&h.transform(...this.matrix),xU(h,this._bbox),h.fillStyle=this._createGradient(h),h.fill(),l=t.createPattern(u.canvas,"no-repeat");const m=new DOMMatrix(n);l.setTransform(m)}else xU(t,this._bbox),l=this._createGradient(t);return l}}function nO(e,t,i,n,a,l,d,c){const p=t.coords,u=t.colors,h=e.data,m=e.width*4;let f;p[i+1]>p[n+1]&&(f=i,i=n,n=f,f=l,l=d,d=f),p[n+1]>p[a+1]&&(f=n,n=a,a=f,f=d,d=c,c=f),p[i+1]>p[n+1]&&(f=i,i=n,n=f,f=l,l=d,d=f);const x=(p[i]+t.offsetX)*t.scaleX,y=(p[i+1]+t.offsetY)*t.scaleY,w=(p[n]+t.offsetX)*t.scaleX,b=(p[n+1]+t.offsetY)*t.scaleY,C=(p[a]+t.offsetX)*t.scaleX,k=(p[a+1]+t.offsetY)*t.scaleY;if(y>=k)return;const E=u[l],S=u[l+1],j=u[l+2],I=u[d],T=u[d+1],P=u[d+2],B=u[c],D=u[c+1],F=u[c+2],Y=Math.round(y),q=Math.round(k);let Z,V,H,N,O,z,R,te;for(let G=Y;G<=q;G++){if(G<b){const ye=G<y?0:(y-G)/(y-b);Z=x-(x-w)*ye,V=E-(E-I)*ye,H=S-(S-T)*ye,N=j-(j-P)*ye}else{let ye;G>k?ye=1:b===k?ye=0:ye=(b-G)/(b-k),Z=w-(w-C)*ye,V=I-(I-B)*ye,H=T-(T-D)*ye,N=P-(P-F)*ye}let W;G<y?W=0:G>k?W=1:W=(y-G)/(y-k),O=x-(x-C)*W,z=E-(E-B)*W,R=S-(S-D)*W,te=j-(j-F)*W;const ee=Math.round(Math.min(Z,O)),J=Math.round(Math.max(Z,O));let ne=m*G+ee*4;for(let ye=ee;ye<=J;ye++)W=(Z-ye)/(Z-O),W<0?W=0:W>1&&(W=1),h[ne++]=V-(V-z)*W|0,h[ne++]=H-(H-R)*W|0,h[ne++]=N-(N-te)*W|0,h[ne++]=255}}function G$t(e,t,i){const n=t.coords,a=t.colors;let l,d;switch(t.type){case"lattice":const c=t.verticesPerRow,p=Math.floor(n.length/c)-1,u=c-1;for(l=0;l<p;l++){let h=l*c;for(let m=0;m<u;m++,h++)nO(e,i,n[h],n[h+1],n[h+c],a[h],a[h+1],a[h+c]),nO(e,i,n[h+c+1],n[h+1],n[h+c],a[h+c+1],a[h+1],a[h+c])}break;case"triangles":for(l=0,d=n.length;l<d;l+=3)nO(e,i,n[l],n[l+1],n[l+2],a[l],a[l+1],a[l+2]);break;default:throw new Error("illegal figure")}}class Y$t extends fb{constructor(t){super(),this._coords=t[2],this._colors=t[3],this._figures=t[4],this._bounds=t[5],this._bbox=t[7],this._background=t[8],this.matrix=null}_createMeshCanvas(t,i,n){const c=Math.floor(this._bounds[0]),p=Math.floor(this._bounds[1]),u=Math.ceil(this._bounds[2])-c,h=Math.ceil(this._bounds[3])-p,m=Math.min(Math.ceil(Math.abs(u*t[0]*1.1)),3e3),f=Math.min(Math.ceil(Math.abs(h*t[1]*1.1)),3e3),x=u/m,y=h/f,w={coords:this._coords,colors:this._colors,offsetX:-c,offsetY:-p,scaleX:1/x,scaleY:1/y},b=m+4,C=f+4,k=n.getCanvas("mesh",b,C,!1),E=k.context,S=E.createImageData(m,f);if(i){const I=S.data;for(let T=0,P=I.length;T<P;T+=4)I[T]=i[0],I[T+1]=i[1],I[T+2]=i[2],I[T+3]=255}for(const I of this._figures)G$t(S,I,w);return E.putImageData(S,2,2),{canvas:k.canvas,offsetX:c-2*x,offsetY:p-2*y,scaleX:x,scaleY:y}}getPattern(t,i,n,a){xU(t,this._bbox);let l;if(a===al.SHADING)l=ko.singularValueDecompose2dScale(mn(t));else if(l=ko.singularValueDecompose2dScale(i.baseTransform),this.matrix){const c=ko.singularValueDecompose2dScale(this.matrix);l=[l[0]*c[0],l[1]*c[1]]}const d=this._createMeshCanvas(l,a===al.SHADING?null:this._background,i.cachedCanvases);return a!==al.SHADING&&(t.setTransform(...i.baseTransform),this.matrix&&t.transform(...this.matrix)),t.translate(d.offsetX,d.offsetY),t.scale(d.scaleX,d.scaleY),t.createPattern(d.canvas,"no-repeat")}}class K$t extends fb{getPattern(){return"hotpink"}}function q$t(e){switch(e[0]){case"RadialAxial":return new W$t(e);case"Mesh":return new Y$t(e);case"Dummy":return new K$t}throw new Error(`Unknown IR type: ${e[0]}`)}const cpe={COLORED:1,UNCOLORED:2};class _K{static MAX_PATTERN_SIZE=3e3;constructor(t,i,n,a,l){this.operatorList=t[2],this.matrix=t[3],this.bbox=t[4],this.xstep=t[5],this.ystep=t[6],this.paintType=t[7],this.tilingType=t[8],this.color=i,this.ctx=n,this.canvasGraphicsFactory=a,this.baseTransform=l}createPatternCanvas(t){const i=this.operatorList,n=this.bbox,a=this.xstep,l=this.ystep,d=this.paintType,c=this.tilingType,p=this.color,u=this.canvasGraphicsFactory;_L("TilingType: "+c);const h=n[0],m=n[1],f=n[2],x=n[3],y=ko.singularValueDecompose2dScale(this.matrix),w=ko.singularValueDecompose2dScale(this.baseTransform),b=[y[0]*w[0],y[1]*w[1]],C=this.getSizeAndScale(a,this.ctx.canvas.width,b[0]),k=this.getSizeAndScale(l,this.ctx.canvas.height,b[1]),E=t.cachedCanvases.getCanvas("pattern",C.size,k.size,!0),S=E.context,j=u.createCanvasGraphics(S);j.groupLevel=t.groupLevel,this.setFillAndStrokeStyleToContext(j,d,p);let I=h,T=m,P=f,B=x;return h<0&&(I=0,P+=Math.abs(h)),m<0&&(T=0,B+=Math.abs(m)),S.translate(-(C.scale*I),-(k.scale*T)),j.transform(C.scale,0,0,k.scale,0,0),S.save(),this.clipBbox(j,I,T,P,B),j.baseTransform=mn(j.ctx),j.executeOperatorList(i),j.endDrawing(),{canvas:E.canvas,scaleX:C.scale,scaleY:k.scale,offsetX:I,offsetY:T}}getSizeAndScale(t,i,n){t=Math.abs(t);const a=Math.max(_K.MAX_PATTERN_SIZE,i);let l=Math.ceil(t*n);return l>=a?l=a:n=l/t,{scale:n,size:l}}clipBbox(t,i,n,a,l){const d=a-i,c=l-n;t.ctx.rect(i,n,d,c),t.current.updateRectMinMax(mn(t.ctx),[i,n,a,l]),t.clip(),t.endPath()}setFillAndStrokeStyleToContext(t,i,n){const a=t.ctx,l=t.current;switch(i){case cpe.COLORED:const d=this.ctx;a.fillStyle=d.fillStyle,a.strokeStyle=d.strokeStyle,l.fillColor=d.fillStyle,l.strokeColor=d.strokeStyle;break;case cpe.UNCOLORED:const c=ko.makeHexColor(n[0],n[1],n[2]);a.fillStyle=c,a.strokeStyle=c,l.fillColor=c,l.strokeColor=c;break;default:throw new C$t(`Unsupported paint type: ${i}`)}}getPattern(t,i,n,a){let l=n;a!==al.SHADING&&(l=ko.transform(l,i.baseTransform),this.matrix&&(l=ko.transform(l,this.matrix)));const d=this.createPatternCanvas(i);let c=new DOMMatrix(l);c=c.translate(d.offsetX,d.offsetY),c=c.scale(1/d.scaleX,1/d.scaleY);const p=t.createPattern(d.canvas,"repeat");return p.setTransform(c),p}}function Z$t({src:e,srcPos:t=0,dest:i,width:n,height:a,nonBlackColor:l=4294967295,inverseDecode:d=!1}){const c=Ql.isLittleEndian?4278190080:255,[p,u]=d?[l,c]:[c,l],h=n>>3,m=n&7,f=e.length;i=new Uint32Array(i.buffer);let x=0;for(let y=0;y<a;y++){for(const b=t+h;t<b;t++){const C=t<f?e[t]:255;i[x++]=C&128?u:p,i[x++]=C&64?u:p,i[x++]=C&32?u:p,i[x++]=C&16?u:p,i[x++]=C&8?u:p,i[x++]=C&4?u:p,i[x++]=C&2?u:p,i[x++]=C&1?u:p}if(m===0)continue;const w=t<f?e[t++]:255;for(let b=0;b<m;b++)i[x++]=w&1<<7-b?u:p}return{srcPos:t,destPos:x}}const ppe=16,upe=100,J$t=15,hpe=10,mpe=1e3,Dl=16;function X$t(e,t){if(e._removeMirroring)throw new Error("Context is already forwarding operations.");e.__originalSave=e.save,e.__originalRestore=e.restore,e.__originalRotate=e.rotate,e.__originalScale=e.scale,e.__originalTranslate=e.translate,e.__originalTransform=e.transform,e.__originalSetTransform=e.setTransform,e.__originalResetTransform=e.resetTransform,e.__originalClip=e.clip,e.__originalMoveTo=e.moveTo,e.__originalLineTo=e.lineTo,e.__originalBezierCurveTo=e.bezierCurveTo,e.__originalRect=e.rect,e.__originalClosePath=e.closePath,e.__originalBeginPath=e.beginPath,e._removeMirroring=()=>{e.save=e.__originalSave,e.restore=e.__originalRestore,e.rotate=e.__originalRotate,e.scale=e.__originalScale,e.translate=e.__originalTranslate,e.transform=e.__originalTransform,e.setTransform=e.__originalSetTransform,e.resetTransform=e.__originalResetTransform,e.clip=e.__originalClip,e.moveTo=e.__originalMoveTo,e.lineTo=e.__originalLineTo,e.bezierCurveTo=e.__originalBezierCurveTo,e.rect=e.__originalRect,e.closePath=e.__originalClosePath,e.beginPath=e.__originalBeginPath,delete e._removeMirroring},e.save=function(){t.save(),this.__originalSave()},e.restore=function(){t.restore(),this.__originalRestore()},e.translate=function(n,a){t.translate(n,a),this.__originalTranslate(n,a)},e.scale=function(n,a){t.scale(n,a),this.__originalScale(n,a)},e.transform=function(n,a,l,d,c,p){t.transform(n,a,l,d,c,p),this.__originalTransform(n,a,l,d,c,p)},e.setTransform=function(n,a,l,d,c,p){t.setTransform(n,a,l,d,c,p),this.__originalSetTransform(n,a,l,d,c,p)},e.resetTransform=function(){t.resetTransform(),this.__originalResetTransform()},e.rotate=function(n){t.rotate(n),this.__originalRotate(n)},e.clip=function(n){t.clip(n),this.__originalClip(n)},e.moveTo=function(i,n){t.moveTo(i,n),this.__originalMoveTo(i,n)},e.lineTo=function(i,n){t.lineTo(i,n),this.__originalLineTo(i,n)},e.bezierCurveTo=function(i,n,a,l,d,c){t.bezierCurveTo(i,n,a,l,d,c),this.__originalBezierCurveTo(i,n,a,l,d,c)},e.rect=function(i,n,a,l){t.rect(i,n,a,l),this.__originalRect(i,n,a,l)},e.closePath=function(){t.closePath(),this.__originalClosePath()},e.beginPath=function(){t.beginPath(),this.__originalBeginPath()}}class ekt{constructor(t){this.canvasFactory=t,this.cache=Object.create(null)}getCanvas(t,i,n){let a;return this.cache[t]!==void 0?(a=this.cache[t],this.canvasFactory.reset(a,i,n)):(a=this.canvasFactory.create(i,n),this.cache[t]=a),a}delete(t){delete this.cache[t]}clear(){for(const t in this.cache){const i=this.cache[t];this.canvasFactory.destroy(i),delete this.cache[t]}}}function aC(e,t,i,n,a,l,d,c,p,u){const[h,m,f,x,y,w]=mn(e);if(m===0&&f===0){const k=d*h+y,E=Math.round(k),S=c*x+w,j=Math.round(S),I=(d+p)*h+y,T=Math.abs(Math.round(I)-E)||1,P=(c+u)*x+w,B=Math.abs(Math.round(P)-j)||1;return e.setTransform(Math.sign(h),0,0,Math.sign(x),E,j),e.drawImage(t,i,n,a,l,0,0,T,B),e.setTransform(h,m,f,x,y,w),[T,B]}if(h===0&&x===0){const k=c*f+y,E=Math.round(k),S=d*m+w,j=Math.round(S),I=(c+u)*f+y,T=Math.abs(Math.round(I)-E)||1,P=(d+p)*m+w,B=Math.abs(Math.round(P)-j)||1;return e.setTransform(0,Math.sign(m),Math.sign(f),0,E,j),e.drawImage(t,i,n,a,l,0,0,B,T),e.setTransform(h,m,f,x,y,w),[B,T]}e.drawImage(t,i,n,a,l,d,c,p,u);const b=Math.hypot(h,m),C=Math.hypot(f,x);return[b*p,C*u]}function tkt(e){const{width:t,height:i}=e;if(t>mpe||i>mpe)return null;const n=1e3,a=new Uint8Array([0,2,4,0,1,0,5,4,8,10,0,8,0,2,1,0]),l=t+1;let d=new Uint8Array(l*(i+1)),c,p,u;const h=t+7&-8;let m=new Uint8Array(h*i),f=0;for(const C of e.data){let k=128;for(;k>0;)m[f++]=C&k?0:255,k>>=1}let x=0;for(f=0,m[f]!==0&&(d[0]=1,++x),p=1;p<t;p++)m[f]!==m[f+1]&&(d[p]=m[f]?2:1,++x),f++;for(m[f]!==0&&(d[p]=2,++x),c=1;c<i;c++){f=c*h,u=c*l,m[f-h]!==m[f]&&(d[u]=m[f]?1:8,++x);let C=(m[f]?4:0)+(m[f-h]?8:0);for(p=1;p<t;p++)C=(C>>2)+(m[f+1]?4:0)+(m[f-h+1]?8:0),a[C]&&(d[u+p]=a[C],++x),f++;if(m[f-h]!==m[f]&&(d[u+p]=m[f]?2:4,++x),x>n)return null}for(f=h*(i-1),u=c*l,m[f]!==0&&(d[u]=8,++x),p=1;p<t;p++)m[f]!==m[f+1]&&(d[u+p]=m[f]?4:8,++x),f++;if(m[f]!==0&&(d[u+p]=4,++x),x>n)return null;const y=new Int32Array([0,l,-1,0,-l,0,0,0,1]),w=new Path2D;for(c=0;x&&c<=i;c++){let C=c*l;const k=C+t;for(;C<k&&!d[C];)C++;if(C===k)continue;w.moveTo(C%l,c);const E=C;let S=d[C];do{const j=y[S];do C+=j;while(!d[C]);const I=d[C];I!==5&&I!==10?(S=I,d[C]=0):(S=I&51*S>>4,d[C]&=S>>2|S<<2),w.lineTo(C%l,C/l|0),d[C]||--x}while(E!==C);--c}return m=null,d=null,function(C){C.save(),C.scale(1/t,-1/i),C.translate(0,-i),C.fill(w),C.beginPath(),C.restore()}}class gpe{constructor(t,i){this.alphaIsShape=!1,this.fontSize=0,this.fontSizeScale=1,this.textMatrix=zje,this.textMatrixScale=1,this.fontMatrix=cU,this.leading=0,this.x=0,this.y=0,this.lineX=0,this.lineY=0,this.charSpacing=0,this.wordSpacing=0,this.textHScale=1,this.textRenderingMode=js.FILL,this.textRise=0,this.fillColor="#000000",this.strokeColor="#000000",this.patternFill=!1,this.fillAlpha=1,this.strokeAlpha=1,this.lineWidth=1,this.activeSMask=null,this.transferMaps="none",this.startNewPathAndClipBox([0,0,t,i])}clone(){const t=Object.create(this);return t.clipBox=this.clipBox.slice(),t}setCurrentPoint(t,i){this.x=t,this.y=i}updatePathMinMax(t,i,n){[i,n]=ko.applyTransform([i,n],t),this.minX=Math.min(this.minX,i),this.minY=Math.min(this.minY,n),this.maxX=Math.max(this.maxX,i),this.maxY=Math.max(this.maxY,n)}updateRectMinMax(t,i){const n=ko.applyTransform(i,t),a=ko.applyTransform(i.slice(2),t),l=ko.applyTransform([i[0],i[3]],t),d=ko.applyTransform([i[2],i[1]],t);this.minX=Math.min(this.minX,n[0],a[0],l[0],d[0]),this.minY=Math.min(this.minY,n[1],a[1],l[1],d[1]),this.maxX=Math.max(this.maxX,n[0],a[0],l[0],d[0]),this.maxY=Math.max(this.maxY,n[1],a[1],l[1],d[1])}updateScalingPathMinMax(t,i){ko.scaleMinMax(t,i),this.minX=Math.min(this.minX,i[0]),this.minY=Math.min(this.minY,i[1]),this.maxX=Math.max(this.maxX,i[2]),this.maxY=Math.max(this.maxY,i[3])}updateCurvePathMinMax(t,i,n,a,l,d,c,p,u,h){const m=ko.bezierBoundingBox(i,n,a,l,d,c,p,u,h);h||this.updateRectMinMax(t,m)}getPathBoundingBox(t=al.FILL,i=null){const n=[this.minX,this.minY,this.maxX,this.maxY];if(t===al.STROKE){i||jr("Stroke bounding box must include transform.");const a=ko.singularValueDecompose2dScale(i),l=a[0]*this.lineWidth/2,d=a[1]*this.lineWidth/2;n[0]-=l,n[1]-=d,n[2]+=l,n[3]+=d}return n}updateClipFromPath(){const t=ko.intersect(this.clipBox,this.getPathBoundingBox());this.startNewPathAndClipBox(t||[0,0,0,0])}isEmptyClip(){return this.minX===1/0}startNewPathAndClipBox(t){this.clipBox=t,this.minX=1/0,this.minY=1/0,this.maxX=0,this.maxY=0}getClippedPathBoundingBox(t=al.FILL,i=null){return ko.intersect(this.clipBox,this.getPathBoundingBox(t,i))}}function fpe(e,t){if(typeof ImageData<"u"&&t instanceof ImageData){e.putImageData(t,0,0);return}const i=t.height,n=t.width,a=i%Dl,l=(i-a)/Dl,d=a===0?l:l+1,c=e.createImageData(n,Dl);let p=0,u;const h=t.data,m=c.data;let f,x,y,w;if(t.kind===J$.GRAYSCALE_1BPP){const b=h.byteLength,C=new Uint32Array(m.buffer,0,m.byteLength>>2),k=C.length,E=n+7>>3,S=4294967295,j=Ql.isLittleEndian?4278190080:255;for(f=0;f<d;f++){for(y=f<l?Dl:a,u=0,x=0;x<y;x++){const I=b-p;let T=0;const P=I>E?n:I*8-7,B=P&-8;let D=0,F=0;for(;T<B;T+=8)F=h[p++],C[u++]=F&128?S:j,C[u++]=F&64?S:j,C[u++]=F&32?S:j,C[u++]=F&16?S:j,C[u++]=F&8?S:j,C[u++]=F&4?S:j,C[u++]=F&2?S:j,C[u++]=F&1?S:j;for(;T<P;T++)D===0&&(F=h[p++],D=128),C[u++]=F&D?S:j,D>>=1}for(;u<k;)C[u++]=0;e.putImageData(c,0,f*Dl)}}else if(t.kind===J$.RGBA_32BPP){for(x=0,w=n*Dl*4,f=0;f<l;f++)m.set(h.subarray(p,p+w)),p+=w,e.putImageData(c,0,x),x+=Dl;f<d&&(w=n*a*4,m.set(h.subarray(p,p+w)),e.putImageData(c,0,x))}else if(t.kind===J$.RGB_24BPP)for(y=Dl,w=n*y,f=0;f<d;f++){for(f>=l&&(y=a,w=n*y),u=0,x=w;x--;)m[u++]=h[p++],m[u++]=h[p++],m[u++]=h[p++],m[u++]=255;e.putImageData(c,0,f*Dl)}else throw new Error(`bad image kind: ${t.kind}`)}function xpe(e,t){if(t.bitmap){e.drawImage(t.bitmap,0,0);return}const i=t.height,n=t.width,a=i%Dl,l=(i-a)/Dl,d=a===0?l:l+1,c=e.createImageData(n,Dl);let p=0;const u=t.data,h=c.data;for(let m=0;m<d;m++){const f=m<l?Dl:a;({srcPos:p}=Z$t({src:u,srcPos:p,dest:h,width:n,height:f,nonBlackColor:0})),e.putImageData(c,0,m*Dl)}}function j9(e,t){const i=["strokeStyle","fillStyle","fillRule","globalAlpha","lineWidth","lineCap","lineJoin","miterLimit","globalCompositeOperation","font","filter"];for(const n of i)e[n]!==void 0&&(t[n]=e[n]);e.setLineDash!==void 0&&(t.setLineDash(e.getLineDash()),t.lineDashOffset=e.lineDashOffset)}function sC(e){if(e.strokeStyle=e.fillStyle="#000000",e.fillRule="nonzero",e.globalAlpha=1,e.lineWidth=1,e.lineCap="butt",e.lineJoin="miter",e.miterLimit=10,e.globalCompositeOperation="source-over",e.font="10px sans-serif",e.setLineDash!==void 0&&(e.setLineDash([]),e.lineDashOffset=0),!Rs){const{filter:t}=e;t!=="none"&&t!==""&&(e.filter="none")}}function ype(e,t){if(t)return!0;const i=ko.singularValueDecompose2dScale(e);i[0]=Math.fround(i[0]),i[1]=Math.fround(i[1]);const n=Math.fround((globalThis.devicePixelRatio||1)*f6.PDF_TO_CSS_UNITS);return i[0]<=n&&i[1]<=n}const okt=["butt","round","square"],ikt=["miter","round","bevel"],rkt={},wpe={};class N7{constructor(t,i,n,a,l,{optionalContentConfig:d,markedContentStack:c=null},p,u){this.ctx=t,this.current=new gpe(this.ctx.canvas.width,this.ctx.canvas.height),this.stateStack=[],this.pendingClip=null,this.pendingEOFill=!1,this.res=null,this.xobjs=null,this.commonObjs=i,this.objs=n,this.canvasFactory=a,this.filterFactory=l,this.groupStack=[],this.processingType3=null,this.baseTransform=null,this.baseTransformStack=[],this.groupLevel=0,this.smaskStack=[],this.smaskCounter=0,this.tempSMask=null,this.suspendedCtx=null,this.contentVisible=!0,this.markedContentStack=c||[],this.optionalContentConfig=d,this.cachedCanvases=new ekt(this.canvasFactory),this.cachedPatterns=new Map,this.annotationCanvasMap=p,this.viewportScale=1,this.outputScaleX=1,this.outputScaleY=1,this.pageColors=u,this._cachedScaleForStroking=[-1,0],this._cachedGetSinglePixelWidth=null,this._cachedBitmapsMap=new Map}getObject(t,i=null){return typeof t=="string"?t.startsWith("g_")?this.commonObjs.get(t):this.objs.get(t):i}beginDrawing({transform:t,viewport:i,transparency:n=!1,background:a=null}){const l=this.ctx.canvas.width,d=this.ctx.canvas.height,c=this.ctx.fillStyle;if(this.ctx.fillStyle=a||"#ffffff",this.ctx.fillRect(0,0,l,d),this.ctx.fillStyle=c,n){const p=this.cachedCanvases.getCanvas("transparent",l,d);this.compositeCtx=this.ctx,this.transparentCanvas=p.canvas,this.ctx=p.context,this.ctx.save(),this.ctx.transform(...mn(this.compositeCtx))}this.ctx.save(),sC(this.ctx),t&&(this.ctx.transform(...t),this.outputScaleX=t[0],this.outputScaleY=t[0]),this.ctx.transform(...i.transform),this.viewportScale=i.scale,this.baseTransform=mn(this.ctx)}executeOperatorList(t,i,n,a){const l=t.argsArray,d=t.fnArray;let c=i||0;const p=l.length;if(p===c)return c;const u=p-c>hpe&&typeof n=="function",h=u?Date.now()+J$t:0;let m=0;const f=this.commonObjs,x=this.objs;let y;for(;;){if(a!==void 0&&c===a.nextBreakPoint)return a.breakIt(c,n),c;if(y=d[c],y!==g1.dependency)this[y].apply(this,l[c]);else for(const w of l[c]){const b=w.startsWith("g_")?f:x;if(!b.has(w))return b.get(w,n),c}if(c++,c===p)return c;if(u&&++m>hpe){if(Date.now()>h)return n(),c;m=0}}}#e(){for(;this.stateStack.length||this.inSMaskMode;)this.restore();this.ctx.restore(),this.transparentCanvas&&(this.ctx=this.compositeCtx,this.ctx.save(),this.ctx.setTransform(1,0,0,1,0,0),this.ctx.drawImage(this.transparentCanvas,0,0),this.ctx.restore(),this.transparentCanvas=null)}endDrawing(){this.#e(),this.cachedCanvases.clear(),this.cachedPatterns.clear();for(const t of this._cachedBitmapsMap.values()){for(const i of t.values())typeof HTMLCanvasElement<"u"&&i instanceof HTMLCanvasElement&&(i.width=i.height=0);t.clear()}this._cachedBitmapsMap.clear(),this.#t()}#t(){if(this.pageColors){const t=this.filterFactory.addHCMFilter(this.pageColors.foreground,this.pageColors.background);if(t!=="none"){const i=this.ctx.filter;this.ctx.filter=t,this.ctx.drawImage(this.ctx.canvas,0,0),this.ctx.filter=i}}}_scaleImage(t,i){const n=t.width,a=t.height;let l=Math.max(Math.hypot(i[0],i[1]),1),d=Math.max(Math.hypot(i[2],i[3]),1),c=n,p=a,u="prescale1",h,m;for(;l>2&&c>1||d>2&&p>1;){let f=c,x=p;l>2&&c>1&&(f=c>=16384?Math.floor(c/2)-1||1:Math.ceil(c/2),l/=c/f),d>2&&p>1&&(x=p>=16384?Math.floor(p/2)-1||1:Math.ceil(p)/2,d/=p/x),h=this.cachedCanvases.getCanvas(u,f,x),m=h.context,m.clearRect(0,0,f,x),m.drawImage(t,0,0,c,p,0,0,f,x),t=h.canvas,c=f,p=x,u=u==="prescale1"?"prescale2":"prescale1"}return{img:t,paintWidth:c,paintHeight:p}}_createMaskCanvas(t){const i=this.ctx,{width:n,height:a}=t,l=this.current.fillColor,d=this.current.patternFill,c=mn(i);let p,u,h,m;if((t.bitmap||t.data)&&t.count>1){const P=t.bitmap||t.data.buffer;u=JSON.stringify(d?c:[c.slice(0,4),l]),p=this._cachedBitmapsMap.get(P),p||(p=new Map,this._cachedBitmapsMap.set(P,p));const B=p.get(u);if(B&&!d){const D=Math.round(Math.min(c[0],c[2])+c[4]),F=Math.round(Math.min(c[1],c[3])+c[5]);return{canvas:B,offsetX:D,offsetY:F}}h=B}h||(m=this.cachedCanvases.getCanvas("maskCanvas",n,a),xpe(m.context,t));let f=ko.transform(c,[1/n,0,0,-1/a,0,0]);f=ko.transform(f,[1,0,0,1,0,-a]);const[x,y,w,b]=ko.getAxialAlignedBoundingBox([0,0,n,a],f),C=Math.round(w-x)||1,k=Math.round(b-y)||1,E=this.cachedCanvases.getCanvas("fillCanvas",C,k),S=E.context,j=x,I=y;S.translate(-j,-I),S.transform(...f),h||(h=this._scaleImage(m.canvas,Ih(S)),h=h.img,p&&d&&p.set(u,h)),S.imageSmoothingEnabled=ype(mn(S),t.interpolate),aC(S,h,0,0,h.width,h.height,0,0,n,a),S.globalCompositeOperation="source-in";const T=ko.transform(Ih(S),[1,0,0,1,-j,-I]);return S.fillStyle=d?l.getPattern(i,this,T,al.FILL):l,S.fillRect(0,0,n,a),p&&!d&&(this.cachedCanvases.delete("fillCanvas"),p.set(u,E.canvas)),{canvas:E.canvas,offsetX:Math.round(j),offsetY:Math.round(I)}}setLineWidth(t){t!==this.current.lineWidth&&(this._cachedScaleForStroking[0]=-1),this.current.lineWidth=t,this.ctx.lineWidth=t}setLineCap(t){this.ctx.lineCap=okt[t]}setLineJoin(t){this.ctx.lineJoin=ikt[t]}setMiterLimit(t){this.ctx.miterLimit=t}setDash(t,i){const n=this.ctx;n.setLineDash!==void 0&&(n.setLineDash(t),n.lineDashOffset=i)}setRenderingIntent(t){}setFlatness(t){}setGState(t){for(const[i,n]of t)switch(i){case"LW":this.setLineWidth(n);break;case"LC":this.setLineCap(n);break;case"LJ":this.setLineJoin(n);break;case"ML":this.setMiterLimit(n);break;case"D":this.setDash(n[0],n[1]);break;case"RI":this.setRenderingIntent(n);break;case"FL":this.setFlatness(n);break;case"Font":this.setFont(n[0],n[1]);break;case"CA":this.current.strokeAlpha=n;break;case"ca":this.current.fillAlpha=n,this.ctx.globalAlpha=n;break;case"BM":this.ctx.globalCompositeOperation=n;break;case"SMask":this.current.activeSMask=n?this.tempSMask:null,this.tempSMask=null,this.checkSMaskState();break;case"TR":this.ctx.filter=this.current.transferMaps=this.filterFactory.addFilter(n);break}}get inSMaskMode(){return!!this.suspendedCtx}checkSMaskState(){const t=this.inSMaskMode;this.current.activeSMask&&!t?this.beginSMaskMode():!this.current.activeSMask&&t&&this.endSMaskMode()}beginSMaskMode(){if(this.inSMaskMode)throw new Error("beginSMaskMode called while already in smask mode");const t=this.ctx.canvas.width,i=this.ctx.canvas.height,n="smaskGroupAt"+this.groupLevel,a=this.cachedCanvases.getCanvas(n,t,i);this.suspendedCtx=this.ctx,this.ctx=a.context;const l=this.ctx;l.setTransform(...mn(this.suspendedCtx)),j9(this.suspendedCtx,l),X$t(l,this.suspendedCtx),this.setGState([["BM","source-over"],["ca",1],["CA",1]])}endSMaskMode(){if(!this.inSMaskMode)throw new Error("endSMaskMode called while not in smask mode");this.ctx._removeMirroring(),j9(this.ctx,this.suspendedCtx),this.ctx=this.suspendedCtx,this.suspendedCtx=null}compose(t){if(!this.current.activeSMask)return;t?(t[0]=Math.floor(t[0]),t[1]=Math.floor(t[1]),t[2]=Math.ceil(t[2]),t[3]=Math.ceil(t[3])):t=[0,0,this.ctx.canvas.width,this.ctx.canvas.height];const i=this.current.activeSMask,n=this.suspendedCtx;this.composeSMask(n,i,this.ctx,t),this.ctx.save(),this.ctx.setTransform(1,0,0,1,0,0),this.ctx.clearRect(0,0,this.ctx.canvas.width,this.ctx.canvas.height),this.ctx.restore()}composeSMask(t,i,n,a){const l=a[0],d=a[1],c=a[2]-l,p=a[3]-d;c===0||p===0||(this.genericComposeSMask(i.context,n,c,p,i.subtype,i.backdrop,i.transferMap,l,d,i.offsetX,i.offsetY),t.save(),t.globalAlpha=1,t.globalCompositeOperation="source-over",t.setTransform(1,0,0,1,0,0),t.drawImage(n.canvas,0,0),t.restore())}genericComposeSMask(t,i,n,a,l,d,c,p,u,h,m){let f=t.canvas,x=p-h,y=u-m;if(d){if(x<0||y<0||x+n>f.width||y+a>f.height){const b=this.cachedCanvases.getCanvas("maskExtension",n,a),C=b.context;C.drawImage(f,-x,-y),d.some(k=>k!==0)&&(C.globalCompositeOperation="destination-atop",C.fillStyle=ko.makeHexColor(...d),C.fillRect(0,0,n,a),C.globalCompositeOperation="source-over"),f=b.canvas,x=y=0}else if(d.some(b=>b!==0)){t.save(),t.globalAlpha=1,t.setTransform(1,0,0,1,0,0);const b=new Path2D;b.rect(x,y,n,a),t.clip(b),t.globalCompositeOperation="destination-atop",t.fillStyle=ko.makeHexColor(...d),t.fillRect(x,y,n,a),t.restore()}}i.save(),i.globalAlpha=1,i.setTransform(1,0,0,1,0,0),l==="Alpha"&&c?i.filter=this.filterFactory.addAlphaFilter(c):l==="Luminosity"&&(i.filter=this.filterFactory.addLuminosityFilter(c));const w=new Path2D;w.rect(p,u,n,a),i.clip(w),i.globalCompositeOperation="destination-in",i.drawImage(f,x,y,n,a,p,u,n,a),i.restore()}save(){this.inSMaskMode?(j9(this.ctx,this.suspendedCtx),this.suspendedCtx.save()):this.ctx.save();const t=this.current;this.stateStack.push(t),this.current=t.clone()}restore(){this.stateStack.length===0&&this.inSMaskMode&&this.endSMaskMode(),this.stateStack.length!==0&&(this.current=this.stateStack.pop(),this.inSMaskMode?(this.suspendedCtx.restore(),j9(this.suspendedCtx,this.ctx)):this.ctx.restore(),this.checkSMaskState(),this.pendingClip=null,this._cachedScaleForStroking[0]=-1,this._cachedGetSinglePixelWidth=null)}transform(t,i,n,a,l,d){this.ctx.transform(t,i,n,a,l,d),this._cachedScaleForStroking[0]=-1,this._cachedGetSinglePixelWidth=null}constructPath(t,i,n){const a=this.ctx,l=this.current;let d=l.x,c=l.y,p,u;const h=mn(a),m=h[0]===0&&h[3]===0||h[1]===0&&h[2]===0,f=m?n.slice(0):null;for(let x=0,y=0,w=t.length;x<w;x++)switch(t[x]|0){case g1.rectangle:d=i[y++],c=i[y++];const b=i[y++],C=i[y++],k=d+b,E=c+C;a.moveTo(d,c),b===0||C===0?a.lineTo(k,E):(a.lineTo(k,c),a.lineTo(k,E),a.lineTo(d,E)),m||l.updateRectMinMax(h,[d,c,k,E]),a.closePath();break;case g1.moveTo:d=i[y++],c=i[y++],a.moveTo(d,c),m||l.updatePathMinMax(h,d,c);break;case g1.lineTo:d=i[y++],c=i[y++],a.lineTo(d,c),m||l.updatePathMinMax(h,d,c);break;case g1.curveTo:p=d,u=c,d=i[y+4],c=i[y+5],a.bezierCurveTo(i[y],i[y+1],i[y+2],i[y+3],d,c),l.updateCurvePathMinMax(h,p,u,i[y],i[y+1],i[y+2],i[y+3],d,c,f),y+=6;break;case g1.curveTo2:p=d,u=c,a.bezierCurveTo(d,c,i[y],i[y+1],i[y+2],i[y+3]),l.updateCurvePathMinMax(h,p,u,d,c,i[y],i[y+1],i[y+2],i[y+3],f),d=i[y+2],c=i[y+3],y+=4;break;case g1.curveTo3:p=d,u=c,d=i[y+2],c=i[y+3],a.bezierCurveTo(i[y],i[y+1],d,c,d,c),l.updateCurvePathMinMax(h,p,u,i[y],i[y+1],d,c,d,c,f),y+=4;break;case g1.closePath:a.closePath();break}m&&l.updateScalingPathMinMax(h,f),l.setCurrentPoint(d,c)}closePath(){this.ctx.closePath()}stroke(t=!0){const i=this.ctx,n=this.current.strokeColor;i.globalAlpha=this.current.strokeAlpha,this.contentVisible&&(typeof n=="object"&&n?.getPattern?(i.save(),i.strokeStyle=n.getPattern(i,this,Ih(i),al.STROKE),this.rescaleAndStroke(!1),i.restore()):this.rescaleAndStroke(!0)),t&&this.consumePath(this.current.getClippedPathBoundingBox()),i.globalAlpha=this.current.fillAlpha}closeStroke(){this.closePath(),this.stroke()}fill(t=!0){const i=this.ctx,n=this.current.fillColor,a=this.current.patternFill;let l=!1;a&&(i.save(),i.fillStyle=n.getPattern(i,this,Ih(i),al.FILL),l=!0);const d=this.current.getClippedPathBoundingBox();this.contentVisible&&d!==null&&(this.pendingEOFill?(i.fill("evenodd"),this.pendingEOFill=!1):i.fill()),l&&i.restore(),t&&this.consumePath(d)}eoFill(){this.pendingEOFill=!0,this.fill()}fillStroke(){this.fill(!1),this.stroke(!1),this.consumePath()}eoFillStroke(){this.pendingEOFill=!0,this.fillStroke()}closeFillStroke(){this.closePath(),this.fillStroke()}closeEOFillStroke(){this.pendingEOFill=!0,this.closePath(),this.fillStroke()}endPath(){this.consumePath()}clip(){this.pendingClip=rkt}eoClip(){this.pendingClip=wpe}beginText(){this.current.textMatrix=zje,this.current.textMatrixScale=1,this.current.x=this.current.lineX=0,this.current.y=this.current.lineY=0}endText(){const t=this.pendingTextPaths,i=this.ctx;if(t===void 0){i.beginPath();return}i.save(),i.beginPath();for(const n of t)i.setTransform(...n.transform),i.translate(n.x,n.y),n.addToPath(i,n.fontSize);i.restore(),i.clip(),i.beginPath(),delete this.pendingTextPaths}setCharSpacing(t){this.current.charSpacing=t}setWordSpacing(t){this.current.wordSpacing=t}setHScale(t){this.current.textHScale=t/100}setLeading(t){this.current.leading=-t}setFont(t,i){const n=this.commonObjs.get(t),a=this.current;if(!n)throw new Error(`Can't find font for ${t}`);if(a.fontMatrix=n.fontMatrix||cU,(a.fontMatrix[0]===0||a.fontMatrix[3]===0)&&Pi("Invalid font matrix for font "+t),i<0?(i=-i,a.fontDirection=-1):a.fontDirection=1,this.current.font=n,this.current.fontSize=i,n.isType3Font)return;const l=n.loadedName||"sans-serif",d=n.systemFontInfo?.css||`"${l}", ${n.fallbackName}`;let c="normal";n.black?c="900":n.bold&&(c="bold");const p=n.italic?"italic":"normal";let u=i;i<ppe?u=ppe:i>upe&&(u=upe),this.current.fontSizeScale=i/u,this.ctx.font=`${p} ${c} ${u}px ${d}`}setTextRenderingMode(t){this.current.textRenderingMode=t}setTextRise(t){this.current.textRise=t}moveText(t,i){this.current.x=this.current.lineX+=t,this.current.y=this.current.lineY+=i}setLeadingMoveText(t,i){this.setLeading(-i),this.moveText(t,i)}setTextMatrix(t,i,n,a,l,d){this.current.textMatrix=[t,i,n,a,l,d],this.current.textMatrixScale=Math.hypot(t,i),this.current.x=this.current.lineX=0,this.current.y=this.current.lineY=0}nextLine(){this.moveText(0,this.current.leading)}paintChar(t,i,n,a){const l=this.ctx,d=this.current,c=d.font,p=d.textRenderingMode,u=d.fontSize/d.fontSizeScale,h=p&js.FILL_STROKE_MASK,m=!!(p&js.ADD_TO_PATH_FLAG),f=d.patternFill&&!c.missingFile;let x;(c.disableFontFace||m||f)&&(x=c.getPathGenerator(this.commonObjs,t)),c.disableFontFace||f?(l.save(),l.translate(i,n),l.beginPath(),x(l,u),a&&l.setTransform(...a),(h===js.FILL||h===js.FILL_STROKE)&&l.fill(),(h===js.STROKE||h===js.FILL_STROKE)&&l.stroke(),l.restore()):((h===js.FILL||h===js.FILL_STROKE)&&l.fillText(t,i,n),(h===js.STROKE||h===js.FILL_STROKE)&&l.strokeText(t,i,n)),m&&(this.pendingTextPaths||=[]).push({transform:mn(l),x:i,y:n,fontSize:u,addToPath:x})}get isFontSubpixelAAEnabled(){const{context:t}=this.cachedCanvases.getCanvas("isFontSubpixelAAEnabled",10,10);t.scale(1.5,1),t.fillText("I",0,10);const i=t.getImageData(0,0,10,10).data;let n=!1;for(let a=3;a<i.length;a+=4)if(i[a]>0&&i[a]<255){n=!0;break}return nr(this,"isFontSubpixelAAEnabled",n)}showText(t){const i=this.current,n=i.font;if(n.isType3Font)return this.showType3Text(t);const a=i.fontSize;if(a===0)return;const l=this.ctx,d=i.fontSizeScale,c=i.charSpacing,p=i.wordSpacing,u=i.fontDirection,h=i.textHScale*u,m=t.length,f=n.vertical,x=f?1:-1,y=n.defaultVMetrics,w=a*i.fontMatrix[0],b=i.textRenderingMode===js.FILL&&!n.disableFontFace&&!i.patternFill;l.save(),l.transform(...i.textMatrix),l.translate(i.x,i.y+i.textRise),u>0?l.scale(h,-1):l.scale(h,1);let C;if(i.patternFill){l.save();const I=i.fillColor.getPattern(l,this,Ih(l),al.FILL);C=mn(l),l.restore(),l.fillStyle=I}let k=i.lineWidth;const E=i.textMatrixScale;if(E===0||k===0){const I=i.textRenderingMode&js.FILL_STROKE_MASK;(I===js.STROKE||I===js.FILL_STROKE)&&(k=this.getSinglePixelWidth())}else k/=E;if(d!==1&&(l.scale(d,d),k/=d),l.lineWidth=k,n.isInvalidPDFjsFont){const I=[];let T=0;for(const P of t)I.push(P.unicode),T+=P.width;l.fillText(I.join(""),0,0),i.x+=T*w*h,l.restore(),this.compose();return}let S=0,j;for(j=0;j<m;++j){const I=t[j];if(typeof I=="number"){S+=x*I*a/1e3;continue}let T=!1;const P=(I.isSpace?p:0)+c,B=I.fontChar,D=I.accent;let F,Y,q=I.width;if(f){const V=I.vmetric||y,H=-(I.vmetric?V[1]:q*.5)*w,N=V[2]*w;q=V?-V[0]:q,F=H/d,Y=(S+N)/d}else F=S/d,Y=0;if(n.remeasure&&q>0){const V=l.measureText(B).width*1e3/a*d;if(q<V&&this.isFontSubpixelAAEnabled){const H=q/V;T=!0,l.save(),l.scale(H,1),F/=H}else q!==V&&(F+=(q-V)/2e3*a/d)}if(this.contentVisible&&(I.isInFont||n.missingFile)){if(b&&!D)l.fillText(B,F,Y);else if(this.paintChar(B,F,Y,C),D){const V=F+a*D.offset.x/d,H=Y-a*D.offset.y/d;this.paintChar(D.fontChar,V,H,C)}}const Z=f?q*w-P*u:q*w+P*u;S+=Z,T&&l.restore()}f?i.y-=S:i.x+=S*h,l.restore(),this.compose()}showType3Text(t){const i=this.ctx,n=this.current,a=n.font,l=n.fontSize,d=n.fontDirection,c=a.vertical?1:-1,p=n.charSpacing,u=n.wordSpacing,h=n.textHScale*d,m=n.fontMatrix||cU,f=t.length,x=n.textRenderingMode===js.INVISIBLE;let y,w,b,C;if(!(x||l===0)){for(this._cachedScaleForStroking[0]=-1,this._cachedGetSinglePixelWidth=null,i.save(),i.transform(...n.textMatrix),i.translate(n.x,n.y),i.scale(h,d),y=0;y<f;++y){if(w=t[y],typeof w=="number"){C=c*w*l/1e3,this.ctx.translate(C,0),n.x+=C*h;continue}const k=(w.isSpace?u:0)+p,E=a.charProcOperatorList[w.operatorListId];if(!E){Pi(`Type3 character "${w.operatorListId}" is not available.`);continue}this.contentVisible&&(this.processingType3=w,this.save(),i.scale(l,l),i.transform(...m),this.executeOperatorList(E),this.restore()),b=ko.applyTransform([w.width,0],m)[0]*l+k,i.translate(b,0),n.x+=b*h}i.restore(),this.processingType3=null}}setCharWidth(t,i){}setCharWidthAndBounds(t,i,n,a,l,d){this.ctx.rect(n,a,l-n,d-a),this.ctx.clip(),this.endPath()}getColorN_Pattern(t){let i;if(t[0]==="TilingPattern"){const n=t[1],a=this.baseTransform||mn(this.ctx),l={createCanvasGraphics:d=>new N7(d,this.commonObjs,this.objs,this.canvasFactory,this.filterFactory,{optionalContentConfig:this.optionalContentConfig,markedContentStack:this.markedContentStack})};i=new _K(t,n,this.ctx,l,a)}else i=this._getPattern(t[1],t[2]);return i}setStrokeColorN(){this.current.strokeColor=this.getColorN_Pattern(arguments)}setFillColorN(){this.current.fillColor=this.getColorN_Pattern(arguments),this.current.patternFill=!0}setStrokeRGBColor(t,i,n){const a=ko.makeHexColor(t,i,n);this.ctx.strokeStyle=a,this.current.strokeColor=a}setFillRGBColor(t,i,n){const a=ko.makeHexColor(t,i,n);this.ctx.fillStyle=a,this.current.fillColor=a,this.current.patternFill=!1}_getPattern(t,i=null){let n;return this.cachedPatterns.has(t)?n=this.cachedPatterns.get(t):(n=q$t(this.getObject(t)),this.cachedPatterns.set(t,n)),i&&(n.matrix=i),n}shadingFill(t){if(!this.contentVisible)return;const i=this.ctx;this.save();const n=this._getPattern(t);i.fillStyle=n.getPattern(i,this,Ih(i),al.SHADING);const a=Ih(i);if(a){const{width:l,height:d}=i.canvas,[c,p,u,h]=ko.getAxialAlignedBoundingBox([0,0,l,d],a);this.ctx.fillRect(c,p,u-c,h-p)}else this.ctx.fillRect(-1e10,-1e10,2e10,2e10);this.compose(this.current.getClippedPathBoundingBox()),this.restore()}beginInlineImage(){jr("Should not call beginInlineImage")}beginImageData(){jr("Should not call beginImageData")}paintFormXObjectBegin(t,i){if(this.contentVisible&&(this.save(),this.baseTransformStack.push(this.baseTransform),t&&this.transform(...t),this.baseTransform=mn(this.ctx),i)){const n=i[2]-i[0],a=i[3]-i[1];this.ctx.rect(i[0],i[1],n,a),this.current.updateRectMinMax(mn(this.ctx),i),this.clip(),this.endPath()}}paintFormXObjectEnd(){this.contentVisible&&(this.restore(),this.baseTransform=this.baseTransformStack.pop())}beginGroup(t){if(!this.contentVisible)return;this.save(),this.inSMaskMode&&(this.endSMaskMode(),this.current.activeSMask=null);const i=this.ctx;t.isolated||_L("TODO: Support non-isolated groups."),t.knockout&&Pi("Knockout groups not supported.");const n=mn(i);if(t.matrix&&i.transform(...t.matrix),!t.bbox)throw new Error("Bounding box is required.");let a=ko.getAxialAlignedBoundingBox(t.bbox,mn(i));const l=[0,0,i.canvas.width,i.canvas.height];a=ko.intersect(a,l)||[0,0,0,0];const d=Math.floor(a[0]),c=Math.floor(a[1]),p=Math.max(Math.ceil(a[2])-d,1),u=Math.max(Math.ceil(a[3])-c,1);this.current.startNewPathAndClipBox([0,0,p,u]);let h="groupAt"+this.groupLevel;t.smask&&(h+="_smask_"+this.smaskCounter++%2);const m=this.cachedCanvases.getCanvas(h,p,u),f=m.context;f.translate(-d,-c),f.transform(...n),t.smask?this.smaskStack.push({canvas:m.canvas,context:f,offsetX:d,offsetY:c,subtype:t.smask.subtype,backdrop:t.smask.backdrop,transferMap:t.smask.transferMap||null,startTransformInverse:null}):(i.setTransform(1,0,0,1,0,0),i.translate(d,c),i.save()),j9(i,f),this.ctx=f,this.setGState([["BM","source-over"],["ca",1],["CA",1]]),this.groupStack.push(i),this.groupLevel++}endGroup(t){if(!this.contentVisible)return;this.groupLevel--;const i=this.ctx,n=this.groupStack.pop();if(this.ctx=n,this.ctx.imageSmoothingEnabled=!1,t.smask)this.tempSMask=this.smaskStack.pop(),this.restore();else{this.ctx.restore();const a=mn(this.ctx);this.restore(),this.ctx.save(),this.ctx.setTransform(...a);const l=ko.getAxialAlignedBoundingBox([0,0,i.canvas.width,i.canvas.height],a);this.ctx.drawImage(i.canvas,0,0),this.ctx.restore(),this.compose(l)}}beginAnnotation(t,i,n,a,l){if(this.#e(),sC(this.ctx),this.ctx.save(),this.save(),this.baseTransform&&this.ctx.setTransform(...this.baseTransform),i){const d=i[2]-i[0],c=i[3]-i[1];if(l&&this.annotationCanvasMap){n=n.slice(),n[4]-=i[0],n[5]-=i[1],i=i.slice(),i[0]=i[1]=0,i[2]=d,i[3]=c;const[p,u]=ko.singularValueDecompose2dScale(mn(this.ctx)),{viewportScale:h}=this,m=Math.ceil(d*this.outputScaleX*h),f=Math.ceil(c*this.outputScaleY*h);this.annotationCanvas=this.canvasFactory.create(m,f);const{canvas:x,context:y}=this.annotationCanvas;this.annotationCanvasMap.set(t,x),this.annotationCanvas.savedCtx=this.ctx,this.ctx=y,this.ctx.save(),this.ctx.setTransform(p,0,0,-u,0,c*u),sC(this.ctx)}else sC(this.ctx),this.ctx.rect(i[0],i[1],d,c),this.ctx.clip(),this.endPath()}this.current=new gpe(this.ctx.canvas.width,this.ctx.canvas.height),this.transform(...n),this.transform(...a)}endAnnotation(){this.annotationCanvas&&(this.ctx.restore(),this.#t(),this.ctx=this.annotationCanvas.savedCtx,delete this.annotationCanvas.savedCtx,delete this.annotationCanvas)}paintImageMaskXObject(t){if(!this.contentVisible)return;const i=t.count;t=this.getObject(t.data,t),t.count=i;const n=this.ctx,a=this.processingType3;if(a&&(a.compiled===void 0&&(a.compiled=tkt(t)),a.compiled)){a.compiled(n);return}const l=this._createMaskCanvas(t),d=l.canvas;n.save(),n.setTransform(1,0,0,1,0,0),n.drawImage(d,l.offsetX,l.offsetY),n.restore(),this.compose()}paintImageMaskXObjectRepeat(t,i,n=0,a=0,l,d){if(!this.contentVisible)return;t=this.getObject(t.data,t);const c=this.ctx;c.save();const p=mn(c);c.transform(i,n,a,l,0,0);const u=this._createMaskCanvas(t);c.setTransform(1,0,0,1,u.offsetX-p[4],u.offsetY-p[5]);for(let h=0,m=d.length;h<m;h+=2){const f=ko.transform(p,[i,n,a,l,d[h],d[h+1]]),[x,y]=ko.applyTransform([0,0],f);c.drawImage(u.canvas,x,y)}c.restore(),this.compose()}paintImageMaskXObjectGroup(t){if(!this.contentVisible)return;const i=this.ctx,n=this.current.fillColor,a=this.current.patternFill;for(const l of t){const{data:d,width:c,height:p,transform:u}=l,h=this.cachedCanvases.getCanvas("maskCanvas",c,p),m=h.context;m.save();const f=this.getObject(d,l);xpe(m,f),m.globalCompositeOperation="source-in",m.fillStyle=a?n.getPattern(m,this,Ih(i),al.FILL):n,m.fillRect(0,0,c,p),m.restore(),i.save(),i.transform(...u),i.scale(1,-1),aC(i,h.canvas,0,0,c,p,0,-1,1,1),i.restore()}this.compose()}paintImageXObject(t){if(!this.contentVisible)return;const i=this.getObject(t);if(!i){Pi("Dependent image isn't ready yet");return}this.paintInlineImageXObject(i)}paintImageXObjectRepeat(t,i,n,a){if(!this.contentVisible)return;const l=this.getObject(t);if(!l){Pi("Dependent image isn't ready yet");return}const d=l.width,c=l.height,p=[];for(let u=0,h=a.length;u<h;u+=2)p.push({transform:[i,0,0,n,a[u],a[u+1]],x:0,y:0,w:d,h:c});this.paintInlineImageXObjectGroup(l,p)}applyTransferMapsToCanvas(t){return this.current.transferMaps!=="none"&&(t.filter=this.current.transferMaps,t.drawImage(t.canvas,0,0),t.filter="none"),t.canvas}applyTransferMapsToBitmap(t){if(this.current.transferMaps==="none")return t.bitmap;const{bitmap:i,width:n,height:a}=t,l=this.cachedCanvases.getCanvas("inlineImage",n,a),d=l.context;return d.filter=this.current.transferMaps,d.drawImage(i,0,0),d.filter="none",l.canvas}paintInlineImageXObject(t){if(!this.contentVisible)return;const i=t.width,n=t.height,a=this.ctx;if(this.save(),!Rs){const{filter:c}=a;c!=="none"&&c!==""&&(a.filter="none")}a.scale(1/i,-1/n);let l;if(t.bitmap)l=this.applyTransferMapsToBitmap(t);else if(typeof HTMLElement=="function"&&t instanceof HTMLElement||!t.data)l=t;else{const p=this.cachedCanvases.getCanvas("inlineImage",i,n).context;fpe(p,t),l=this.applyTransferMapsToCanvas(p)}const d=this._scaleImage(l,Ih(a));a.imageSmoothingEnabled=ype(mn(a),t.interpolate),aC(a,d.img,0,0,d.paintWidth,d.paintHeight,0,-n,i,n),this.compose(),this.restore()}paintInlineImageXObjectGroup(t,i){if(!this.contentVisible)return;const n=this.ctx;let a;if(t.bitmap)a=t.bitmap;else{const l=t.width,d=t.height,p=this.cachedCanvases.getCanvas("inlineImage",l,d).context;fpe(p,t),a=this.applyTransferMapsToCanvas(p)}for(const l of i)n.save(),n.transform(...l.transform),n.scale(1,-1),aC(n,a,l.x,l.y,l.w,l.h,0,-1,1,1),n.restore();this.compose()}paintSolidColorImageMask(){this.contentVisible&&(this.ctx.fillRect(0,0,1,1),this.compose())}markPoint(t){}markPointProps(t,i){}beginMarkedContent(t){this.markedContentStack.push({visible:!0})}beginMarkedContentProps(t,i){t==="OC"?this.markedContentStack.push({visible:this.optionalContentConfig.isVisible(i)}):this.markedContentStack.push({visible:!0}),this.contentVisible=this.isContentVisible()}endMarkedContent(){this.markedContentStack.pop(),this.contentVisible=this.isContentVisible()}beginCompat(){}endCompat(){}consumePath(t){const i=this.current.isEmptyClip();this.pendingClip&&this.current.updateClipFromPath(),this.pendingClip||this.compose(t);const n=this.ctx;this.pendingClip&&(i||(this.pendingClip===wpe?n.clip("evenodd"):n.clip()),this.pendingClip=null),this.current.startNewPathAndClipBox(this.current.clipBox),n.beginPath()}getSinglePixelWidth(){if(!this._cachedGetSinglePixelWidth){const t=mn(this.ctx);if(t[1]===0&&t[2]===0)this._cachedGetSinglePixelWidth=1/Math.min(Math.abs(t[0]),Math.abs(t[3]));else{const i=Math.abs(t[0]*t[3]-t[2]*t[1]),n=Math.hypot(t[0],t[2]),a=Math.hypot(t[1],t[3]);this._cachedGetSinglePixelWidth=Math.max(n,a)/i}}return this._cachedGetSinglePixelWidth}getScaleForStroking(){if(this._cachedScaleForStroking[0]===-1){const{lineWidth:t}=this.current,{a:i,b:n,c:a,d:l}=this.ctx.getTransform();let d,c;if(n===0&&a===0){const p=Math.abs(i),u=Math.abs(l);if(p===u)if(t===0)d=c=1/p;else{const h=p*t;d=c=h<1?1/h:1}else if(t===0)d=1/p,c=1/u;else{const h=p*t,m=u*t;d=h<1?1/h:1,c=m<1?1/m:1}}else{const p=Math.abs(i*l-n*a),u=Math.hypot(i,n),h=Math.hypot(a,l);if(t===0)d=h/p,c=u/p;else{const m=t*p;d=h>m?h/m:1,c=u>m?u/m:1}}this._cachedScaleForStroking[0]=d,this._cachedScaleForStroking[1]=c}return this._cachedScaleForStroking}rescaleAndStroke(t){const{ctx:i}=this,{lineWidth:n}=this.current,[a,l]=this.getScaleForStroking();if(i.lineWidth=n||1,a===1&&l===1){i.stroke();return}const d=i.getLineDash();if(t&&i.save(),i.scale(a,l),d.length>0){const c=Math.max(a,l);i.setLineDash(d.map(p=>p/c)),i.lineDashOffset/=c}i.stroke(),t&&i.restore()}isContentVisible(){for(let t=this.markedContentStack.length-1;t>=0;t--)if(!this.markedContentStack[t].visible)return!1;return!0}}for(const e in g1)N7.prototype[e]!==void 0&&(N7.prototype[g1[e]]=N7.prototype[e]);class dw{static#e=null;static#t="";static get workerPort(){return this.#e}static set workerPort(t){if(!(typeof Worker<"u"&&t instanceof Worker)&&t!==null)throw new Error("Invalid `workerPort` type.");this.#e=t}static get workerSrc(){return this.#t}static set workerSrc(t){if(typeof t!="string")throw new Error("Invalid `workerSrc` type.");this.#t=t}}const lC={DATA:1,ERROR:2},Jn={CANCEL:1,CANCEL_COMPLETE:2,CLOSE:3,ENQUEUE:4,ERROR:5,PULL:6,PULL_COMPLETE:7,START_COMPLETE:8};function wd(e){switch(e instanceof Error||typeof e=="object"&&e!==null||jr('wrapReason: Expected "reason" to be a (possibly cloned) Error.'),e.name){case"AbortException":return new K4(e.message);case"MissingPDFException":return new Y4(e.message);case"PasswordException":return new uU(e.message,e.code);case"UnexpectedResponseException":return new VL(e.message,e.status);case"UnknownErrorException":return new hU(e.message,e.details);default:return new hU(e.message,e.toString())}}class Px{constructor(t,i,n){this.sourceName=t,this.targetName=i,this.comObj=n,this.callbackId=1,this.streamId=1,this.streamSinks=Object.create(null),this.streamControllers=Object.create(null),this.callbackCapabilities=Object.create(null),this.actionHandler=Object.create(null),this._onComObjOnMessage=a=>{const l=a.data;if(l.targetName!==this.sourceName)return;if(l.stream){this.#t(l);return}if(l.callback){const c=l.callbackId,p=this.callbackCapabilities[c];if(!p)throw new Error(`Cannot resolve callback ${c}`);if(delete this.callbackCapabilities[c],l.callback===lC.DATA)p.resolve(l.data);else if(l.callback===lC.ERROR)p.reject(wd(l.reason));else throw new Error("Unexpected callback case");return}const d=this.actionHandler[l.action];if(!d)throw new Error(`Unknown action from worker: ${l.action}`);if(l.callbackId){const c=this.sourceName,p=l.sourceName;new Promise(function(u){u(d(l.data))}).then(function(u){n.postMessage({sourceName:c,targetName:p,callback:lC.DATA,callbackId:l.callbackId,data:u})},function(u){n.postMessage({sourceName:c,targetName:p,callback:lC.ERROR,callbackId:l.callbackId,reason:wd(u)})});return}if(l.streamId){this.#e(l);return}d(l.data)},n.addEventListener("message",this._onComObjOnMessage)}on(t,i){const n=this.actionHandler;if(n[t])throw new Error(`There is already an actionName called "${t}"`);n[t]=i}send(t,i,n){this.comObj.postMessage({sourceName:this.sourceName,targetName:this.targetName,action:t,data:i},n)}sendWithPromise(t,i,n){const a=this.callbackId++,l=Promise.withResolvers();this.callbackCapabilities[a]=l;try{this.comObj.postMessage({sourceName:this.sourceName,targetName:this.targetName,action:t,callbackId:a,data:i},n)}catch(d){l.reject(d)}return l.promise}sendWithStream(t,i,n,a){const l=this.streamId++,d=this.sourceName,c=this.targetName,p=this.comObj;return new ReadableStream({start:u=>{const h=Promise.withResolvers();return this.streamControllers[l]={controller:u,startCall:h,pullCall:null,cancelCall:null,isClosed:!1},p.postMessage({sourceName:d,targetName:c,action:t,streamId:l,data:i,desiredSize:u.desiredSize},a),h.promise},pull:u=>{const h=Promise.withResolvers();return this.streamControllers[l].pullCall=h,p.postMessage({sourceName:d,targetName:c,stream:Jn.PULL,streamId:l,desiredSize:u.desiredSize}),h.promise},cancel:u=>{Ca(u instanceof Error,"cancel must have a valid reason");const h=Promise.withResolvers();return this.streamControllers[l].cancelCall=h,this.streamControllers[l].isClosed=!0,p.postMessage({sourceName:d,targetName:c,stream:Jn.CANCEL,streamId:l,reason:wd(u)}),h.promise}},n)}#e(t){const i=t.streamId,n=this.sourceName,a=t.sourceName,l=this.comObj,d=this,c=this.actionHandler[t.action],p={enqueue(u,h=1,m){if(this.isCancelled)return;const f=this.desiredSize;this.desiredSize-=h,f>0&&this.desiredSize<=0&&(this.sinkCapability=Promise.withResolvers(),this.ready=this.sinkCapability.promise),l.postMessage({sourceName:n,targetName:a,stream:Jn.ENQUEUE,streamId:i,chunk:u},m)},close(){this.isCancelled||(this.isCancelled=!0,l.postMessage({sourceName:n,targetName:a,stream:Jn.CLOSE,streamId:i}),delete d.streamSinks[i])},error(u){Ca(u instanceof Error,"error must have a valid reason"),!this.isCancelled&&(this.isCancelled=!0,l.postMessage({sourceName:n,targetName:a,stream:Jn.ERROR,streamId:i,reason:wd(u)}))},sinkCapability:Promise.withResolvers(),onPull:null,onCancel:null,isCancelled:!1,desiredSize:t.desiredSize,ready:null};p.sinkCapability.resolve(),p.ready=p.sinkCapability.promise,this.streamSinks[i]=p,new Promise(function(u){u(c(t.data,p))}).then(function(){l.postMessage({sourceName:n,targetName:a,stream:Jn.START_COMPLETE,streamId:i,success:!0})},function(u){l.postMessage({sourceName:n,targetName:a,stream:Jn.START_COMPLETE,streamId:i,reason:wd(u)})})}#t(t){const i=t.streamId,n=this.sourceName,a=t.sourceName,l=this.comObj,d=this.streamControllers[i],c=this.streamSinks[i];switch(t.stream){case Jn.START_COMPLETE:t.success?d.startCall.resolve():d.startCall.reject(wd(t.reason));break;case Jn.PULL_COMPLETE:t.success?d.pullCall.resolve():d.pullCall.reject(wd(t.reason));break;case Jn.PULL:if(!c){l.postMessage({sourceName:n,targetName:a,stream:Jn.PULL_COMPLETE,streamId:i,success:!0});break}c.desiredSize<=0&&t.desiredSize>0&&c.sinkCapability.resolve(),c.desiredSize=t.desiredSize,new Promise(function(p){p(c.onPull?.())}).then(function(){l.postMessage({sourceName:n,targetName:a,stream:Jn.PULL_COMPLETE,streamId:i,success:!0})},function(p){l.postMessage({sourceName:n,targetName:a,stream:Jn.PULL_COMPLETE,streamId:i,reason:wd(p)})});break;case Jn.ENQUEUE:if(Ca(d,"enqueue should have stream controller"),d.isClosed)break;d.controller.enqueue(t.chunk);break;case Jn.CLOSE:if(Ca(d,"close should have stream controller"),d.isClosed)break;d.isClosed=!0,d.controller.close(),this.#o(d,i);break;case Jn.ERROR:Ca(d,"error should have stream controller"),d.controller.error(wd(t.reason)),this.#o(d,i);break;case Jn.CANCEL_COMPLETE:t.success?d.cancelCall.resolve():d.cancelCall.reject(wd(t.reason)),this.#o(d,i);break;case Jn.CANCEL:if(!c)break;new Promise(function(p){p(c.onCancel?.(wd(t.reason)))}).then(function(){l.postMessage({sourceName:n,targetName:a,stream:Jn.CANCEL_COMPLETE,streamId:i,success:!0})},function(p){l.postMessage({sourceName:n,targetName:a,stream:Jn.CANCEL_COMPLETE,streamId:i,reason:wd(p)})}),c.sinkCapability.reject(wd(t.reason)),c.isCancelled=!0,delete this.streamSinks[i];break;default:throw new Error("Unexpected stream case")}}async#o(t,i){await Promise.allSettled([t.startCall?.promise,t.pullCall?.promise,t.cancelCall?.promise]),delete this.streamControllers[i]}destroy(){this.comObj.removeEventListener("message",this._onComObjOnMessage)}}class nkt{#e;#t;constructor({parsedData:t,rawData:i}){this.#e=t,this.#t=i}getRaw(){return this.#t}get(t){return this.#e.get(t)??null}getAll(){return MK(this.#e)}has(t){return this.#e.has(t)}}const E0=Symbol("INTERNAL");class akt{#e=!1;#t=!1;#o=!1;#r=!0;constructor(t,{name:i,intent:n,usage:a}){this.#e=!!(t&nc.DISPLAY),this.#t=!!(t&nc.PRINT),this.name=i,this.intent=n,this.usage=a}get visible(){if(this.#o)return this.#r;if(!this.#r)return!1;const{print:t,view:i}=this.usage;return this.#e?i?.viewState!=="OFF":this.#t?t?.printState!=="OFF":!0}_setVisible(t,i,n=!1){t!==E0&&jr("Internal method `_setVisible` called."),this.#o=n,this.#r=i}}class skt{#e=null;#t=new Map;#o=null;#r=null;constructor(t,i=nc.DISPLAY){if(this.renderingIntent=i,this.name=null,this.creator=null,t!==null){this.name=t.name,this.creator=t.creator,this.#r=t.order;for(const n of t.groups)this.#t.set(n.id,new akt(i,n));if(t.baseState==="OFF")for(const n of this.#t.values())n._setVisible(E0,!1);for(const n of t.on)this.#t.get(n)._setVisible(E0,!0);for(const n of t.off)this.#t.get(n)._setVisible(E0,!1);this.#o=this.getHash()}}#s(t){const i=t.length;if(i<2)return!0;const n=t[0];for(let a=1;a<i;a++){const l=t[a];let d;if(Array.isArray(l))d=this.#s(l);else if(this.#t.has(l))d=this.#t.get(l).visible;else return Pi(`Optional content group not found: ${l}`),!0;switch(n){case"And":if(!d)return!1;break;case"Or":if(d)return!0;break;case"Not":return!d;default:return!0}}return n==="And"}isVisible(t){if(this.#t.size===0)return!0;if(!t)return _L("Optional content group not defined."),!0;if(t.type==="OCG")return this.#t.has(t.id)?this.#t.get(t.id).visible:(Pi(`Optional content group not found: ${t.id}`),!0);if(t.type==="OCMD"){if(t.expression)return this.#s(t.expression);if(!t.policy||t.policy==="AnyOn"){for(const i of t.ids){if(!this.#t.has(i))return Pi(`Optional content group not found: ${i}`),!0;if(this.#t.get(i).visible)return!0}return!1}else if(t.policy==="AllOn"){for(const i of t.ids){if(!this.#t.has(i))return Pi(`Optional content group not found: ${i}`),!0;if(!this.#t.get(i).visible)return!1}return!0}else if(t.policy==="AnyOff"){for(const i of t.ids){if(!this.#t.has(i))return Pi(`Optional content group not found: ${i}`),!0;if(!this.#t.get(i).visible)return!0}return!1}else if(t.policy==="AllOff"){for(const i of t.ids){if(!this.#t.has(i))return Pi(`Optional content group not found: ${i}`),!0;if(this.#t.get(i).visible)return!1}return!0}return Pi(`Unknown optional content policy ${t.policy}.`),!0}return Pi(`Unknown group type ${t.type}.`),!0}setVisibility(t,i=!0){const n=this.#t.get(t);if(!n){Pi(`Optional content group not found: ${t}`);return}n._setVisible(E0,!!i,!0),this.#e=null}setOCGState({state:t,preserveRB:i}){let n;for(const a of t){switch(a){case"ON":case"OFF":case"Toggle":n=a;continue}const l=this.#t.get(a);if(l)switch(n){case"ON":l._setVisible(E0,!0);break;case"OFF":l._setVisible(E0,!1);break;case"Toggle":l._setVisible(E0,!l.visible);break}}this.#e=null}get hasInitialVisibility(){return this.#o===null||this.getHash()===this.#o}getOrder(){return this.#t.size?this.#r?this.#r.slice():[...this.#t.keys()]:null}getGroups(){return this.#t.size>0?MK(this.#t):null}getGroup(t){return this.#t.get(t)||null}getHash(){if(this.#e!==null)return this.#e;const t=new Qje;for(const[i,n]of this.#t)t.update(`${i}:${n.visible}`);return this.#e=t.hexdigest()}}class lkt{constructor(t,{disableRange:i=!1,disableStream:n=!1}){Ca(t,'PDFDataTransportStream - missing required "pdfDataRangeTransport" argument.');const{length:a,initialData:l,progressiveDone:d,contentDispositionFilename:c}=t;if(this._queuedChunks=[],this._progressiveDone=d,this._contentDispositionFilename=c,l?.length>0){const p=l instanceof Uint8Array&&l.byteLength===l.buffer.byteLength?l.buffer:new Uint8Array(l).buffer;this._queuedChunks.push(p)}this._pdfDataRangeTransport=t,this._isStreamingSupported=!n,this._isRangeSupported=!i,this._contentLength=a,this._fullRequestReader=null,this._rangeReaders=[],t.addRangeListener((p,u)=>{this._onReceiveData({begin:p,chunk:u})}),t.addProgressListener((p,u)=>{this._onProgress({loaded:p,total:u})}),t.addProgressiveReadListener(p=>{this._onReceiveData({chunk:p})}),t.addProgressiveDoneListener(()=>{this._onProgressiveDone()}),t.transportReady()}_onReceiveData({begin:t,chunk:i}){const n=i instanceof Uint8Array&&i.byteLength===i.buffer.byteLength?i.buffer:new Uint8Array(i).buffer;if(t===void 0)this._fullRequestReader?this._fullRequestReader._enqueue(n):this._queuedChunks.push(n);else{const a=this._rangeReaders.some(function(l){return l._begin!==t?!1:(l._enqueue(n),!0)});Ca(a,"_onReceiveData - no `PDFDataTransportStreamRangeReader` instance found.")}}get _progressiveDataLength(){return this._fullRequestReader?._loaded??0}_onProgress(t){t.total===void 0?this._rangeReaders[0]?.onProgress?.({loaded:t.loaded}):this._fullRequestReader?.onProgress?.({loaded:t.loaded,total:t.total})}_onProgressiveDone(){this._fullRequestReader?.progressiveDone(),this._progressiveDone=!0}_removeRangeReader(t){const i=this._rangeReaders.indexOf(t);i>=0&&this._rangeReaders.splice(i,1)}getFullReader(){Ca(!this._fullRequestReader,"PDFDataTransportStream.getFullReader can only be called once.");const t=this._queuedChunks;return this._queuedChunks=null,new dkt(this,t,this._progressiveDone,this._contentDispositionFilename)}getRangeReader(t,i){if(i<=this._progressiveDataLength)return null;const n=new ckt(this,t,i);return this._pdfDataRangeTransport.requestDataRange(t,i),this._rangeReaders.push(n),n}cancelAllRequests(t){this._fullRequestReader?.cancel(t);for(const i of this._rangeReaders.slice(0))i.cancel(t);this._pdfDataRangeTransport.abort()}}class dkt{constructor(t,i,n=!1,a=null){this._stream=t,this._done=n||!1,this._filename=zK(a)?a:null,this._queuedChunks=i||[],this._loaded=0;for(const l of this._queuedChunks)this._loaded+=l.byteLength;this._requests=[],this._headersReady=Promise.resolve(),t._fullRequestReader=this,this.onProgress=null}_enqueue(t){this._done||(this._requests.length>0?this._requests.shift().resolve({value:t,done:!1}):this._queuedChunks.push(t),this._loaded+=t.byteLength)}get headersReady(){return this._headersReady}get filename(){return this._filename}get isRangeSupported(){return this._stream._isRangeSupported}get isStreamingSupported(){return this._stream._isStreamingSupported}get contentLength(){return this._stream._contentLength}async read(){if(this._queuedChunks.length>0)return{value:this._queuedChunks.shift(),done:!1};if(this._done)return{value:void 0,done:!0};const t=Promise.withResolvers();return this._requests.push(t),t.promise}cancel(t){this._done=!0;for(const i of this._requests)i.resolve({value:void 0,done:!0});this._requests.length=0}progressiveDone(){this._done||(this._done=!0)}}class ckt{constructor(t,i,n){this._stream=t,this._begin=i,this._end=n,this._queuedChunk=null,this._requests=[],this._done=!1,this.onProgress=null}_enqueue(t){if(!this._done){if(this._requests.length===0)this._queuedChunk=t;else{this._requests.shift().resolve({value:t,done:!1});for(const n of this._requests)n.resolve({value:void 0,done:!0});this._requests.length=0}this._done=!0,this._stream._removeRangeReader(this)}}get isStreamingSupported(){return!1}async read(){if(this._queuedChunk){const i=this._queuedChunk;return this._queuedChunk=null,{value:i,done:!1}}if(this._done)return{value:void 0,done:!0};const t=Promise.withResolvers();return this._requests.push(t),t.promise}cancel(t){this._done=!0;for(const i of this._requests)i.resolve({value:void 0,done:!0});this._requests.length=0,this._stream._removeRangeReader(this)}}function pkt(e){let t=!0,i=n("filename\\*","i").exec(e);if(i){i=i[1];let h=c(i);return h=unescape(h),h=p(h),h=u(h),l(h)}if(i=d(e),i){const h=u(i);return l(h)}if(i=n("filename","i").exec(e),i){i=i[1];let h=c(i);return h=u(h),l(h)}function n(h,m){return new RegExp("(?:^|;)\\s*"+h+'\\s*=\\s*([^";\\s][^;\\s]*|"(?:[^"\\\\]|\\\\"?)+"?)',m)}function a(h,m){if(h){if(!/^[\x00-\xFF]+$/.test(m))return m;try{const f=new TextDecoder(h,{fatal:!0}),x=QL(m);m=f.decode(x),t=!1}catch{}}return m}function l(h){return t&&/[\x80-\xff]/.test(h)&&(h=a("utf-8",h),t&&(h=a("iso-8859-1",h))),h}function d(h){const m=[];let f;const x=n("filename\\*((?!0\\d)\\d+)(\\*?)","ig");for(;(f=x.exec(h))!==null;){let[,w,b,C]=f;if(w=parseInt(w,10),w in m){if(w===0)break;continue}m[w]=[b,C]}const y=[];for(let w=0;w<m.length&&w in m;++w){let[b,C]=m[w];C=c(C),b&&(C=unescape(C),w===0&&(C=p(C))),y.push(C)}return y.join("")}function c(h){if(h.startsWith('"')){const m=h.slice(1).split('\\"');for(let f=0;f<m.length;++f){const x=m[f].indexOf('"');x!==-1&&(m[f]=m[f].slice(0,x),m.length=f+1),m[f]=m[f].replaceAll(/\\(.)/g,"$1")}h=m.join('"')}return h}function p(h){const m=h.indexOf("'");if(m===-1)return h;const f=h.slice(0,m),y=h.slice(m+1).replace(/^[^']*'/,"");return a(f,y)}function u(h){return!h.startsWith("=?")||/[\x00-\x19\x80-\xff]/.test(h)?h:h.replaceAll(/=\?([\w-]*)\?([QqBb])\?((?:[^?]|\?(?!=))*)\?=/g,function(m,f,x,y){if(x==="q"||x==="Q")return y=y.replaceAll("_"," "),y=y.replaceAll(/=([0-9a-fA-F]{2})/g,function(w,b){return String.fromCharCode(parseInt(b,16))}),a(f,y);try{y=atob(y)}catch{}return a(f,y)})}return""}function VK({getResponseHeader:e,isHttp:t,rangeChunkSize:i,disableRange:n}){const a={allowRangeRequests:!1,suggestedLength:void 0},l=parseInt(e("Content-Length"),10);return!Number.isInteger(l)||(a.suggestedLength=l,l<=2*i)||n||!t||e("Accept-Ranges")!=="bytes"||(e("Content-Encoding")||"identity")!=="identity"||(a.allowRangeRequests=!0),a}function QK(e){const t=e("Content-Disposition");if(t){let i=pkt(t);if(i.includes("%"))try{i=decodeURIComponent(i)}catch{}if(zK(i))return i}return null}function qL(e,t){return e===404||e===0&&t.startsWith("file:")?new Y4('Missing PDF "'+t+'".'):new VL(`Unexpected server response (${e}) while retrieving PDF "${t}".`,e)}function Gje(e){return e===200||e===206}function Yje(e,t,i){return{method:"GET",headers:e,signal:i.signal,mode:"cors",credentials:t?"include":"same-origin",redirect:"follow"}}function Kje(e){const t=new Headers;for(const i in e){const n=e[i];n!==void 0&&t.append(i,n)}return t}function qje(e){return e instanceof Uint8Array?e.buffer:e instanceof ArrayBuffer?e:(Pi(`getArrayBuffer - unexpected data format: ${e}`),new Uint8Array(e).buffer)}class bpe{constructor(t){this.source=t,this.isHttp=/^https?:/i.test(t.url),this.httpHeaders=this.isHttp&&t.httpHeaders||{},this._fullRequestReader=null,this._rangeRequestReaders=[]}get _progressiveDataLength(){return this._fullRequestReader?._loaded??0}getFullReader(){return Ca(!this._fullRequestReader,"PDFFetchStream.getFullReader can only be called once."),this._fullRequestReader=new ukt(this),this._fullRequestReader}getRangeReader(t,i){if(i<=this._progressiveDataLength)return null;const n=new hkt(this,t,i);return this._rangeRequestReaders.push(n),n}cancelAllRequests(t){this._fullRequestReader?.cancel(t);for(const i of this._rangeRequestReaders.slice(0))i.cancel(t)}}class ukt{constructor(t){this._stream=t,this._reader=null,this._loaded=0,this._filename=null;const i=t.source;this._withCredentials=i.withCredentials||!1,this._contentLength=i.length,this._headersCapability=Promise.withResolvers(),this._disableRange=i.disableRange||!1,this._rangeChunkSize=i.rangeChunkSize,!this._rangeChunkSize&&!this._disableRange&&(this._disableRange=!0),this._abortController=new AbortController,this._isStreamingSupported=!i.disableStream,this._isRangeSupported=!i.disableRange,this._headers=Kje(this._stream.httpHeaders);const n=i.url;fetch(n,Yje(this._headers,this._withCredentials,this._abortController)).then(a=>{if(!Gje(a.status))throw qL(a.status,n);this._reader=a.body.getReader(),this._headersCapability.resolve();const l=p=>a.headers.get(p),{allowRangeRequests:d,suggestedLength:c}=VK({getResponseHeader:l,isHttp:this._stream.isHttp,rangeChunkSize:this._rangeChunkSize,disableRange:this._disableRange});this._isRangeSupported=d,this._contentLength=c||this._contentLength,this._filename=QK(l),!this._isStreamingSupported&&this._isRangeSupported&&this.cancel(new K4("Streaming is disabled."))}).catch(this._headersCapability.reject),this.onProgress=null}get headersReady(){return this._headersCapability.promise}get filename(){return this._filename}get contentLength(){return this._contentLength}get isRangeSupported(){return this._isRangeSupported}get isStreamingSupported(){return this._isStreamingSupported}async read(){await this._headersCapability.promise;const{value:t,done:i}=await this._reader.read();return i?{value:t,done:i}:(this._loaded+=t.byteLength,this.onProgress?.({loaded:this._loaded,total:this._contentLength}),{value:qje(t),done:!1})}cancel(t){this._reader?.cancel(t),this._abortController.abort()}}class hkt{constructor(t,i,n){this._stream=t,this._reader=null,this._loaded=0;const a=t.source;this._withCredentials=a.withCredentials||!1,this._readCapability=Promise.withResolvers(),this._isStreamingSupported=!a.disableStream,this._abortController=new AbortController,this._headers=Kje(this._stream.httpHeaders),this._headers.append("Range",`bytes=${i}-${n-1}`);const l=a.url;fetch(l,Yje(this._headers,this._withCredentials,this._abortController)).then(d=>{if(!Gje(d.status))throw qL(d.status,l);this._readCapability.resolve(),this._reader=d.body.getReader()}).catch(this._readCapability.reject),this.onProgress=null}get isStreamingSupported(){return this._isStreamingSupported}async read(){await this._readCapability.promise;const{value:t,done:i}=await this._reader.read();return i?{value:t,done:i}:(this._loaded+=t.byteLength,this.onProgress?.({loaded:this._loaded}),{value:qje(t),done:!1})}cancel(t){this._reader?.cancel(t),this._abortController.abort()}}const aO=200,sO=206;function mkt(e){const t=e.response;return typeof t!="string"?t:QL(t).buffer}class gkt{constructor(t,i={}){this.url=t,this.isHttp=/^https?:/i.test(t),this.httpHeaders=this.isHttp&&i.httpHeaders||Object.create(null),this.withCredentials=i.withCredentials||!1,this.currXhrId=0,this.pendingRequests=Object.create(null)}requestRange(t,i,n){const a={begin:t,end:i};for(const l in n)a[l]=n[l];return this.request(a)}requestFull(t){return this.request(t)}request(t){const i=new XMLHttpRequest,n=this.currXhrId++,a=this.pendingRequests[n]={xhr:i};i.open("GET",this.url),i.withCredentials=this.withCredentials;for(const l in this.httpHeaders){const d=this.httpHeaders[l];d!==void 0&&i.setRequestHeader(l,d)}return this.isHttp&&"begin"in t&&"end"in t?(i.setRequestHeader("Range",`bytes=${t.begin}-${t.end-1}`),a.expectedStatus=sO):a.expectedStatus=aO,i.responseType="arraybuffer",t.onError&&(i.onerror=function(l){t.onError(i.status)}),i.onreadystatechange=this.onStateChange.bind(this,n),i.onprogress=this.onProgress.bind(this,n),a.onHeadersReceived=t.onHeadersReceived,a.onDone=t.onDone,a.onError=t.onError,a.onProgress=t.onProgress,i.send(null),n}onProgress(t,i){const n=this.pendingRequests[t];n&&n.onProgress?.(i)}onStateChange(t,i){const n=this.pendingRequests[t];if(!n)return;const a=n.xhr;if(a.readyState>=2&&n.onHeadersReceived&&(n.onHeadersReceived(),delete n.onHeadersReceived),a.readyState!==4||!(t in this.pendingRequests))return;if(delete this.pendingRequests[t],a.status===0&&this.isHttp){n.onError?.(a.status);return}const l=a.status||aO;if(!(l===aO&&n.expectedStatus===sO)&&l!==n.expectedStatus){n.onError?.(a.status);return}const c=mkt(a);if(l===sO){const p=a.getResponseHeader("Content-Range"),u=/bytes (\d+)-(\d+)\/(\d+)/.exec(p);n.onDone({begin:parseInt(u[1],10),chunk:c})}else c?n.onDone({begin:0,chunk:c}):n.onError?.(a.status)}getRequestXhr(t){return this.pendingRequests[t].xhr}isPendingRequest(t){return t in this.pendingRequests}abortRequest(t){const i=this.pendingRequests[t].xhr;delete this.pendingRequests[t],i.abort()}}class fkt{constructor(t){this._source=t,this._manager=new gkt(t.url,{httpHeaders:t.httpHeaders,withCredentials:t.withCredentials}),this._rangeChunkSize=t.rangeChunkSize,this._fullRequestReader=null,this._rangeRequestReaders=[]}_onRangeRequestReaderClosed(t){const i=this._rangeRequestReaders.indexOf(t);i>=0&&this._rangeRequestReaders.splice(i,1)}getFullReader(){return Ca(!this._fullRequestReader,"PDFNetworkStream.getFullReader can only be called once."),this._fullRequestReader=new xkt(this._manager,this._source),this._fullRequestReader}getRangeReader(t,i){const n=new ykt(this._manager,t,i);return n.onClosed=this._onRangeRequestReaderClosed.bind(this),this._rangeRequestReaders.push(n),n}cancelAllRequests(t){this._fullRequestReader?.cancel(t);for(const i of this._rangeRequestReaders.slice(0))i.cancel(t)}}class xkt{constructor(t,i){this._manager=t;const n={onHeadersReceived:this._onHeadersReceived.bind(this),onDone:this._onDone.bind(this),onError:this._onError.bind(this),onProgress:this._onProgress.bind(this)};this._url=i.url,this._fullRequestId=t.requestFull(n),this._headersReceivedCapability=Promise.withResolvers(),this._disableRange=i.disableRange||!1,this._contentLength=i.length,this._rangeChunkSize=i.rangeChunkSize,!this._rangeChunkSize&&!this._disableRange&&(this._disableRange=!0),this._isStreamingSupported=!1,this._isRangeSupported=!1,this._cachedChunks=[],this._requests=[],this._done=!1,this._storedError=void 0,this._filename=null,this.onProgress=null}_onHeadersReceived(){const t=this._fullRequestId,i=this._manager.getRequestXhr(t),n=d=>i.getResponseHeader(d),{allowRangeRequests:a,suggestedLength:l}=VK({getResponseHeader:n,isHttp:this._manager.isHttp,rangeChunkSize:this._rangeChunkSize,disableRange:this._disableRange});a&&(this._isRangeSupported=!0),this._contentLength=l||this._contentLength,this._filename=QK(n),this._isRangeSupported&&this._manager.abortRequest(t),this._headersReceivedCapability.resolve()}_onDone(t){if(t&&(this._requests.length>0?this._requests.shift().resolve({value:t.chunk,done:!1}):this._cachedChunks.push(t.chunk)),this._done=!0,!(this._cachedChunks.length>0)){for(const i of this._requests)i.resolve({value:void 0,done:!0});this._requests.length=0}}_onError(t){this._storedError=qL(t,this._url),this._headersReceivedCapability.reject(this._storedError);for(const i of this._requests)i.reject(this._storedError);this._requests.length=0,this._cachedChunks.length=0}_onProgress(t){this.onProgress?.({loaded:t.loaded,total:t.lengthComputable?t.total:this._contentLength})}get filename(){return this._filename}get isRangeSupported(){return this._isRangeSupported}get isStreamingSupported(){return this._isStreamingSupported}get contentLength(){return this._contentLength}get headersReady(){return this._headersReceivedCapability.promise}async read(){if(this._storedError)throw this._storedError;if(this._cachedChunks.length>0)return{value:this._cachedChunks.shift(),done:!1};if(this._done)return{value:void 0,done:!0};const t=Promise.withResolvers();return this._requests.push(t),t.promise}cancel(t){this._done=!0,this._headersReceivedCapability.reject(t);for(const i of this._requests)i.resolve({value:void 0,done:!0});this._requests.length=0,this._manager.isPendingRequest(this._fullRequestId)&&this._manager.abortRequest(this._fullRequestId),this._fullRequestReader=null}}class ykt{constructor(t,i,n){this._manager=t;const a={onDone:this._onDone.bind(this),onError:this._onError.bind(this),onProgress:this._onProgress.bind(this)};this._url=t.url,this._requestId=t.requestRange(i,n,a),this._requests=[],this._queuedChunk=null,this._done=!1,this._storedError=void 0,this.onProgress=null,this.onClosed=null}_close(){this.onClosed?.(this)}_onDone(t){const i=t.chunk;this._requests.length>0?this._requests.shift().resolve({value:i,done:!1}):this._queuedChunk=i,this._done=!0;for(const n of this._requests)n.resolve({value:void 0,done:!0});this._requests.length=0,this._close()}_onError(t){this._storedError=qL(t,this._url);for(const i of this._requests)i.reject(this._storedError);this._requests.length=0,this._queuedChunk=null}_onProgress(t){this.isStreamingSupported||this.onProgress?.({loaded:t.loaded})}get isStreamingSupported(){return!1}async read(){if(this._storedError)throw this._storedError;if(this._queuedChunk!==null){const i=this._queuedChunk;return this._queuedChunk=null,{value:i,done:!1}}if(this._done)return{value:void 0,done:!0};const t=Promise.withResolvers();return this._requests.push(t),t.promise}cancel(t){this._done=!0;for(const i of this._requests)i.resolve({value:void 0,done:!0});this._requests.length=0,this._manager.isPendingRequest(this._requestId)&&this._manager.abortRequest(this._requestId),this._close()}}const Zje=/^file:\/\/\/[a-zA-Z]:\//;function wkt(e){const t=Uu.get("url"),i=t.parse(e);return i.protocol==="file:"||i.host?i:/^[a-z]:[/\\]/i.test(e)?t.parse(`file:///${e}`):(i.host||(i.protocol="file:"),i)}class bkt{constructor(t){this.source=t,this.url=wkt(t.url),this.isHttp=this.url.protocol==="http:"||this.url.protocol==="https:",this.isFsUrl=this.url.protocol==="file:",this.httpHeaders=this.isHttp&&t.httpHeaders||{},this._fullRequestReader=null,this._rangeRequestReaders=[]}get _progressiveDataLength(){return this._fullRequestReader?._loaded??0}getFullReader(){return Ca(!this._fullRequestReader,"PDFNodeStream.getFullReader can only be called once."),this._fullRequestReader=this.isFsUrl?new Akt(this):new vkt(this),this._fullRequestReader}getRangeReader(t,i){if(i<=this._progressiveDataLength)return null;const n=this.isFsUrl?new $kt(this,t,i):new Ckt(this,t,i);return this._rangeRequestReaders.push(n),n}cancelAllRequests(t){this._fullRequestReader?.cancel(t);for(const i of this._rangeRequestReaders.slice(0))i.cancel(t)}}class Jje{constructor(t){this._url=t.url,this._done=!1,this._storedError=null,this.onProgress=null;const i=t.source;this._contentLength=i.length,this._loaded=0,this._filename=null,this._disableRange=i.disableRange||!1,this._rangeChunkSize=i.rangeChunkSize,!this._rangeChunkSize&&!this._disableRange&&(this._disableRange=!0),this._isStreamingSupported=!i.disableStream,this._isRangeSupported=!i.disableRange,this._readableStream=null,this._readCapability=Promise.withResolvers(),this._headersCapability=Promise.withResolvers()}get headersReady(){return this._headersCapability.promise}get filename(){return this._filename}get contentLength(){return this._contentLength}get isRangeSupported(){return this._isRangeSupported}get isStreamingSupported(){return this._isStreamingSupported}async read(){if(await this._readCapability.promise,this._done)return{value:void 0,done:!0};if(this._storedError)throw this._storedError;const t=this._readableStream.read();return t===null?(this._readCapability=Promise.withResolvers(),this.read()):(this._loaded+=t.length,this.onProgress?.({loaded:this._loaded,total:this._contentLength}),{value:new Uint8Array(t).buffer,done:!1})}cancel(t){if(!this._readableStream){this._error(t);return}this._readableStream.destroy(t)}_error(t){this._storedError=t,this._readCapability.resolve()}_setReadableStream(t){this._readableStream=t,t.on("readable",()=>{this._readCapability.resolve()}),t.on("end",()=>{t.destroy(),this._done=!0,this._readCapability.resolve()}),t.on("error",i=>{this._error(i)}),!this._isStreamingSupported&&this._isRangeSupported&&this._error(new K4("streaming is disabled")),this._storedError&&this._readableStream.destroy(this._storedError)}}class Xje{constructor(t){this._url=t.url,this._done=!1,this._storedError=null,this.onProgress=null,this._loaded=0,this._readableStream=null,this._readCapability=Promise.withResolvers();const i=t.source;this._isStreamingSupported=!i.disableStream}get isStreamingSupported(){return this._isStreamingSupported}async read(){if(await this._readCapability.promise,this._done)return{value:void 0,done:!0};if(this._storedError)throw this._storedError;const t=this._readableStream.read();return t===null?(this._readCapability=Promise.withResolvers(),this.read()):(this._loaded+=t.length,this.onProgress?.({loaded:this._loaded}),{value:new Uint8Array(t).buffer,done:!1})}cancel(t){if(!this._readableStream){this._error(t);return}this._readableStream.destroy(t)}_error(t){this._storedError=t,this._readCapability.resolve()}_setReadableStream(t){this._readableStream=t,t.on("readable",()=>{this._readCapability.resolve()}),t.on("end",()=>{t.destroy(),this._done=!0,this._readCapability.resolve()}),t.on("error",i=>{this._error(i)}),this._storedError&&this._readableStream.destroy(this._storedError)}}function uS(e,t){return{protocol:e.protocol,auth:e.auth,host:e.hostname,port:e.port,path:e.path,method:"GET",headers:t}}class vkt extends Jje{constructor(t){super(t);const i=n=>{if(n.statusCode===404){const c=new Y4(`Missing PDF "${this._url}".`);this._storedError=c,this._headersCapability.reject(c);return}this._headersCapability.resolve(),this._setReadableStream(n);const a=c=>this._readableStream.headers[c.toLowerCase()],{allowRangeRequests:l,suggestedLength:d}=VK({getResponseHeader:a,isHttp:t.isHttp,rangeChunkSize:this._rangeChunkSize,disableRange:this._disableRange});this._isRangeSupported=l,this._contentLength=d||this._contentLength,this._filename=QK(a)};if(this._request=null,this._url.protocol==="http:"){const n=Uu.get("http");this._request=n.request(uS(this._url,t.httpHeaders),i)}else{const n=Uu.get("https");this._request=n.request(uS(this._url,t.httpHeaders),i)}this._request.on("error",n=>{this._storedError=n,this._headersCapability.reject(n)}),this._request.end()}}class Ckt extends Xje{constructor(t,i,n){super(t),this._httpHeaders={};for(const l in t.httpHeaders){const d=t.httpHeaders[l];d!==void 0&&(this._httpHeaders[l]=d)}this._httpHeaders.Range=`bytes=${i}-${n-1}`;const a=l=>{if(l.statusCode===404){const d=new Y4(`Missing PDF "${this._url}".`);this._storedError=d;return}this._setReadableStream(l)};if(this._request=null,this._url.protocol==="http:"){const l=Uu.get("http");this._request=l.request(uS(this._url,this._httpHeaders),a)}else{const l=Uu.get("https");this._request=l.request(uS(this._url,this._httpHeaders),a)}this._request.on("error",l=>{this._storedError=l}),this._request.end()}}class Akt extends Jje{constructor(t){super(t);let i=decodeURIComponent(this._url.path);Zje.test(this._url.href)&&(i=i.replace(/^\//,""));const n=Uu.get("fs");n.promises.lstat(i).then(a=>{this._contentLength=a.size,this._setReadableStream(n.createReadStream(i)),this._headersCapability.resolve()},a=>{a.code==="ENOENT"&&(a=new Y4(`Missing PDF "${i}".`)),this._storedError=a,this._headersCapability.reject(a)})}}class $kt extends Xje{constructor(t,i,n){super(t);let a=decodeURIComponent(this._url.path);Zje.test(this._url.href)&&(a=a.replace(/^\//,""));const l=Uu.get("fs");this._setReadableStream(l.createReadStream(a,{start:i,end:n-1}))}}const kkt=1e5,Sl=30,Skt=.8;let hS=class Zp{#e=Promise.withResolvers();#t=null;#o=!1;#r=!!globalThis.FontInspector?.enabled;#s=null;#i=null;#n=0;#l=0;#c=null;#p=null;#h=0;#d=0;#a=Object.create(null);#m=[];#f=null;#u=[];#y=new WeakMap;#g=null;static#w=new Map;static#v=new Map;static#A=null;static#k=new Set;constructor({textContentSource:t,container:i,viewport:n}){if(t instanceof ReadableStream)this.#f=t;else if(typeof t=="object")this.#f=new ReadableStream({start(p){p.enqueue(t),p.close()}});else throw new Error('No "textContentSource" parameter specified.');this.#t=this.#p=i,this.#d=n.scale*(globalThis.devicePixelRatio||1),this.#h=n.rotation,this.#i={prevFontSize:null,prevFontFamily:null,div:null,properties:null,ctx:null};const{pageWidth:a,pageHeight:l,pageX:d,pageY:c}=n.rawDims;this.#g=[1,0,0,-1,-d,c+l],this.#l=a,this.#n=l,Zp.#x(),S4(i,n),this.#e.promise.catch(()=>{}).then(()=>{Zp.#k.delete(this),this.#i=null,this.#a=null})}render(){const t=()=>{this.#c.read().then(({value:i,done:n})=>{if(n){this.#e.resolve();return}this.#s??=i.lang,Object.assign(this.#a,i.styles),this.#S(i.items),t()},this.#e.reject)};return this.#c=this.#f.getReader(),Zp.#k.add(this),t(),this.#e.promise}update({viewport:t,onBefore:i=null}){const n=t.scale*(globalThis.devicePixelRatio||1),a=t.rotation;if(a!==this.#h&&(i?.(),this.#h=a,S4(this.#p,{rotation:a})),n!==this.#d){i?.(),this.#d=n;const l={prevFontSize:null,prevFontFamily:null,div:null,properties:null,ctx:Zp.#b(this.#s)};for(const d of this.#u)l.properties=this.#y.get(d),l.div=d,this.#$(l)}}cancel(){const t=new K4("TextLayer task cancelled.");this.#c?.cancel(t).catch(()=>{}),this.#c=null,this.#e.reject(t)}get textDivs(){return this.#u}get textContentItemsStr(){return this.#m}#S(t){if(this.#o)return;this.#i.ctx??=Zp.#b(this.#s);const i=this.#u,n=this.#m;for(const a of t){if(i.length>kkt){Pi("Ignoring additional textDivs for performance reasons."),this.#o=!0;return}if(a.str===void 0){if(a.type==="beginMarkedContentProps"||a.type==="beginMarkedContent"){const l=this.#t;this.#t=document.createElement("span"),this.#t.classList.add("markedContent"),a.id!==null&&this.#t.setAttribute("id",`${a.id}`),l.append(this.#t)}else a.type==="endMarkedContent"&&(this.#t=this.#t.parentNode);continue}n.push(a.str),this.#j(a)}}#j(t){const i=document.createElement("span"),n={angle:0,canvasWidth:0,hasText:t.str!=="",hasEOL:t.hasEOL,fontSize:0};this.#u.push(i);const a=ko.transform(this.#g,t.transform);let l=Math.atan2(a[1],a[0]);const d=this.#a[t.fontName];d.vertical&&(l+=Math.PI/2);const c=this.#r&&d.fontSubstitution||d.fontFamily,p=Math.hypot(a[2],a[3]),u=p*Zp.#C(c,this.#s);let h,m;l===0?(h=a[4],m=a[5]-u):(h=a[4]+u*Math.sin(l),m=a[5]-u*Math.cos(l));const f="calc(var(--scale-factor)*",x=i.style;this.#t===this.#p?(x.left=`${(100*h/this.#l).toFixed(2)}%`,x.top=`${(100*m/this.#n).toFixed(2)}%`):(x.left=`${f}${h.toFixed(2)}px)`,x.top=`${f}${m.toFixed(2)}px)`),x.fontSize=`${f}${(Zp.#A*p).toFixed(2)}px)`,x.fontFamily=c,n.fontSize=p,i.setAttribute("role","presentation"),i.textContent=t.str,i.dir=t.dir,this.#r&&(i.dataset.fontName=d.fontSubstitutionLoadedName||t.fontName),l!==0&&(n.angle=l*(180/Math.PI));let y=!1;if(t.str.length>1)y=!0;else if(t.str!==" "&&t.transform[0]!==t.transform[3]){const w=Math.abs(t.transform[0]),b=Math.abs(t.transform[3]);w!==b&&Math.max(w,b)/Math.min(w,b)>1.5&&(y=!0)}if(y&&(n.canvasWidth=d.vertical?t.height:t.width),this.#y.set(i,n),this.#i.div=i,this.#i.properties=n,this.#$(this.#i),n.hasText&&this.#t.append(i),n.hasEOL){const w=document.createElement("br");w.setAttribute("role","presentation"),this.#t.append(w)}}#$(t){const{div:i,properties:n,ctx:a,prevFontSize:l,prevFontFamily:d}=t,{style:c}=i;let p="";if(Zp.#A>1&&(p=`scale(${1/Zp.#A})`),n.canvasWidth!==0&&n.hasText){const{fontFamily:u}=c,{canvasWidth:h,fontSize:m}=n;(l!==m||d!==u)&&(a.font=`${m*this.#d}px ${u}`,t.prevFontSize=m,t.prevFontFamily=u);const{width:f}=a.measureText(i.textContent);f>0&&(p=`scaleX(${h*this.#d/f}) ${p}`)}n.angle!==0&&(p=`rotate(${n.angle}deg) ${p}`),p.length>0&&(c.transform=p)}static cleanup(){if(!(this.#k.size>0)){this.#w.clear();for(const{canvas:t}of this.#v.values())t.remove();this.#v.clear()}}static#b(t=null){let i=this.#v.get(t||="");if(!i){const n=document.createElement("canvas");n.className="hiddenCanvasElement",n.lang=t,document.body.append(n),i=n.getContext("2d",{alpha:!1,willReadFrequently:!0}),this.#v.set(t,i)}return i}static#x(){if(this.#A!==null)return;const t=document.createElement("div");t.style.opacity=0,t.style.lineHeight=1,t.style.fontSize="1px",t.textContent="X",document.body.append(t),this.#A=t.getBoundingClientRect().height,t.remove()}static#C(t,i){const n=this.#w.get(t);if(n)return n;const a=this.#b(i),l=a.font;a.canvas.width=a.canvas.height=Sl,a.font=`${Sl}px ${t}`;const d=a.measureText("");let c=d.fontBoundingBoxAscent,p=Math.abs(d.fontBoundingBoxDescent);if(c){const m=c/(c+p);return this.#w.set(t,m),a.canvas.width=a.canvas.height=0,a.font=l,m}a.strokeStyle="red",a.clearRect(0,0,Sl,Sl),a.strokeText("g",0,0);let u=a.getImageData(0,0,Sl,Sl).data;p=0;for(let m=u.length-1-3;m>=0;m-=4)if(u[m]>0){p=Math.ceil(m/4/Sl);break}a.clearRect(0,0,Sl,Sl),a.strokeText("A",0,Sl),u=a.getImageData(0,0,Sl,Sl).data,c=0;for(let m=0,f=u.length;m<f;m+=4)if(u[m]>0){c=Sl-Math.floor(m/4/Sl);break}a.canvas.width=a.canvas.height=0,a.font=l;const h=c?c/(c+p):Skt;return this.#w.set(t,h),h}};function Ekt(){_je("`renderTextLayer`, please use `TextLayer` instead.");const{textContentSource:e,container:t,viewport:i,...n}=arguments[0],a=Object.keys(n);a.length>0&&Pi("Ignoring `renderTextLayer` parameters: "+a.join(", "));const l=new hS({textContentSource:e,container:t,viewport:i}),{textDivs:d,textContentItemsStr:c}=l;return{promise:l.render(),textDivs:d,textContentItemsStr:c}}function Lkt(){_je("`updateTextLayer`, please use `TextLayer` instead.")}class cw{static textContent(t){const i=[],n={items:i,styles:Object.create(null)};function a(l){if(!l)return;let d=null;const c=l.name;if(c==="#text")d=l.value;else if(cw.shouldBuildText(c))l?.attributes?.textContent?d=l.attributes.textContent:l.value&&(d=l.value);else return;if(d!==null&&i.push({str:d}),!!l.children)for(const p of l.children)a(p)}return a(t),n}static shouldBuildText(t){return!(t==="textarea"||t==="input"||t==="option"||t==="select")}}const Ikt=65536,jkt=100,Mkt=5e3,Bkt=Rs?V$t:j$t,Dkt=Rs?Q$t:Nje,Pkt=Rs?_$t:I$t,Tkt=Rs?U$t:Hje;function zkt(e={}){typeof e=="string"||e instanceof URL?e={url:e}:(e instanceof ArrayBuffer||ArrayBuffer.isView(e))&&(e={data:e});const t=new UK,{docId:i}=t,n=e.url?Fkt(e.url):null,a=e.data?Rkt(e.data):null,l=e.httpHeaders||null,d=e.withCredentials===!0,c=e.password??null,p=e.range instanceof eMe?e.range:null,u=Number.isInteger(e.rangeChunkSize)&&e.rangeChunkSize>0?e.rangeChunkSize:Ikt;let h=e.worker instanceof dc?e.worker:null;const m=e.verbosity,f=typeof e.docBaseUrl=="string"&&!TK(e.docBaseUrl)?e.docBaseUrl:null,x=typeof e.cMapUrl=="string"?e.cMapUrl:null,y=e.cMapPacked!==!1,w=e.CMapReaderFactory||Dkt,b=typeof e.standardFontDataUrl=="string"?e.standardFontDataUrl:null,C=e.StandardFontDataFactory||Tkt,k=e.stopAtErrors!==!0,E=Number.isInteger(e.maxImageSize)&&e.maxImageSize>-1?e.maxImageSize:-1,S=e.isEvalSupported!==!1,j=typeof e.isOffscreenCanvasSupported=="boolean"?e.isOffscreenCanvasSupported:!Rs,I=Number.isInteger(e.canvasMaxAreaInBytes)?e.canvasMaxAreaInBytes:-1,T=typeof e.disableFontFace=="boolean"?e.disableFontFace:Rs,P=e.fontExtraProperties===!0,B=e.enableXfa===!0,D=e.ownerDocument||globalThis.document,F=e.disableRange===!0,Y=e.disableStream===!0,q=e.disableAutoFetch===!0,Z=e.pdfBug===!0,V=e.enableHWA===!0,H=p?p.length:e.length??NaN,N=typeof e.useSystemFonts=="boolean"?e.useSystemFonts:!Rs&&!T,O=typeof e.useWorkerFetch=="boolean"?e.useWorkerFetch:w===Nje&&C===Hje&&x&&b&&Dx(x,document.baseURI)&&Dx(b,document.baseURI),z=e.canvasFactory||new Bkt({ownerDocument:D,enableHWA:V}),R=e.filterFactory||new Pkt({docId:i,ownerDocument:D}),te=null;y$t(m);const G={canvasFactory:z,filterFactory:R};if(O||(G.cMapReaderFactory=new w({baseUrl:x,isCompressed:y}),G.standardFontDataFactory=new C({baseUrl:b})),!h){const J={verbosity:m,port:dw.workerPort};h=J.port?dc.fromPort(J):new dc(J),t._worker=h}const W={docId:i,apiVersion:"4.4.168",data:a,password:c,disableAutoFetch:q,rangeChunkSize:u,length:H,docBaseUrl:f,enableXfa:B,evaluatorOptions:{maxImageSize:E,disableFontFace:T,ignoreErrors:k,isEvalSupported:S,isOffscreenCanvasSupported:j,canvasMaxAreaInBytes:I,fontExtraProperties:P,useSystemFonts:N,cMapUrl:O?x:null,standardFontDataUrl:O?b:null}},ee={disableFontFace:T,fontExtraProperties:P,ownerDocument:D,pdfBug:Z,styleElement:te,loadingParams:{disableAutoFetch:q,enableXfa:B}};return h.promise.then(function(){if(t.destroyed)throw new Error("Loading aborted");if(h.destroyed)throw new Error("Worker was destroyed");const J=h.messageHandler.sendWithPromise("GetDocRequest",W,a?[a.buffer]:null);let ne;if(p)ne=new lkt(p,{disableRange:F,disableStream:Y});else if(!a){if(!n)throw new Error("getDocument - no `url` parameter provided.");ne=(me=>Rs?function(){return typeof fetch<"u"&&typeof Response<"u"&&"body"in Response.prototype}()&&Dx(me.url)?new bpe(me):new bkt(me):Dx(me.url)?new bpe(me):new fkt(me))({url:n,length:H,httpHeaders:l,withCredentials:d,rangeChunkSize:u,disableRange:F,disableStream:Y})}return J.then(ye=>{if(t.destroyed)throw new Error("Loading aborted");if(h.destroyed)throw new Error("Worker was destroyed");const me=new Px(i,ye,h.port),ue=new _kt(me,t,ne,ee,G);t._transport=ue,me.send("Ready",null)})}).catch(t._capability.reject),t}function Fkt(e){if(e instanceof URL)return e.href;try{return new URL(e,window.location).href}catch{if(Rs&&typeof e=="string")return e}throw new Error("Invalid PDF url data: either string or URL-object is expected in the url property.")}function Rkt(e){if(Rs&&typeof fk<"u"&&e instanceof fk)throw new Error("Please provide binary data as `Uint8Array`, rather than `Buffer`.");if(e instanceof Uint8Array&&e.byteLength===e.buffer.byteLength)return e;if(typeof e=="string")return QL(e);if(e instanceof ArrayBuffer||ArrayBuffer.isView(e)||typeof e=="object"&&!isNaN(e?.length))return new Uint8Array(e);throw new Error("Invalid PDF binary data: either TypedArray, string, or array-like object is expected in the data property.")}function vpe(e){return typeof e=="object"&&Number.isInteger(e?.num)&&e.num>=0&&Number.isInteger(e?.gen)&&e.gen>=0}class UK{static#e=0;constructor(){this._capability=Promise.withResolvers(),this._transport=null,this._worker=null,this.docId=`d${UK.#e++}`,this.destroyed=!1,this.onPassword=null,this.onProgress=null}get promise(){return this._capability.promise}async destroy(){this.destroyed=!0;try{this._worker?.port&&(this._worker._pendingDestroy=!0),await this._transport?.destroy()}catch(t){throw this._worker?.port&&delete this._worker._pendingDestroy,t}this._transport=null,this._worker&&(this._worker.destroy(),this._worker=null)}}let eMe=class{constructor(t,i,n=!1,a=null){this.length=t,this.initialData=i,this.progressiveDone=n,this.contentDispositionFilename=a,this._rangeListeners=[],this._progressListeners=[],this._progressiveReadListeners=[],this._progressiveDoneListeners=[],this._readyCapability=Promise.withResolvers()}addRangeListener(t){this._rangeListeners.push(t)}addProgressListener(t){this._progressListeners.push(t)}addProgressiveReadListener(t){this._progressiveReadListeners.push(t)}addProgressiveDoneListener(t){this._progressiveDoneListeners.push(t)}onDataRange(t,i){for(const n of this._rangeListeners)n(t,i)}onDataProgress(t,i){this._readyCapability.promise.then(()=>{for(const n of this._progressListeners)n(t,i)})}onDataProgressiveRead(t){this._readyCapability.promise.then(()=>{for(const i of this._progressiveReadListeners)i(t)})}onDataProgressiveDone(){this._readyCapability.promise.then(()=>{for(const t of this._progressiveDoneListeners)t()})}transportReady(){this._readyCapability.resolve()}requestDataRange(t,i){jr("Abstract method PDFDataRangeTransport.requestDataRange")}abort(){}};class Okt{constructor(t,i){this._pdfInfo=t,this._transport=i}get annotationStorage(){return this._transport.annotationStorage}get filterFactory(){return this._transport.filterFactory}get numPages(){return this._pdfInfo.numPages}get fingerprints(){return this._pdfInfo.fingerprints}get isPureXfa(){return nr(this,"isPureXfa",!!this._transport._htmlForXfa)}get allXfaHtml(){return this._transport._htmlForXfa}getPage(t){return this._transport.getPage(t)}getPageIndex(t){return this._transport.getPageIndex(t)}getDestinations(){return this._transport.getDestinations()}getDestination(t){return this._transport.getDestination(t)}getPageLabels(){return this._transport.getPageLabels()}getPageLayout(){return this._transport.getPageLayout()}getPageMode(){return this._transport.getPageMode()}getViewerPreferences(){return this._transport.getViewerPreferences()}getOpenAction(){return this._transport.getOpenAction()}getAttachments(){return this._transport.getAttachments()}getJSActions(){return this._transport.getDocJSActions()}getOutline(){return this._transport.getOutline()}getOptionalContentConfig({intent:t="display"}={}){const{renderingIntent:i}=this._transport.getRenderingIntent(t);return this._transport.getOptionalContentConfig(i)}getPermissions(){return this._transport.getPermissions()}getMetadata(){return this._transport.getMetadata()}getMarkInfo(){return this._transport.getMarkInfo()}getData(){return this._transport.getData()}saveDocument(){return this._transport.saveDocument()}getDownloadInfo(){return this._transport.downloadInfoCapability.promise}cleanup(t=!1){return this._transport.startCleanup(t||this.isPureXfa)}destroy(){return this.loadingTask.destroy()}cachedPageNumber(t){return this._transport.cachedPageNumber(t)}get loadingParams(){return this._transport.loadingParams}get loadingTask(){return this._transport.loadingTask}getFieldObjects(){return this._transport.getFieldObjects()}hasJSActions(){return this._transport.hasJSActions()}getCalculationOrderIds(){return this._transport.getCalculationOrderIds()}}class Nkt{#e=null;#t=!1;constructor(t,i,n,a=!1){this._pageIndex=t,this._pageInfo=i,this._transport=n,this._stats=a?new spe:null,this._pdfBug=a,this.commonObjs=n.commonObjs,this.objs=new tMe,this._maybeCleanupAfterRender=!1,this._intentStates=new Map,this.destroyed=!1}get pageNumber(){return this._pageIndex+1}get rotate(){return this._pageInfo.rotate}get ref(){return this._pageInfo.ref}get userUnit(){return this._pageInfo.userUnit}get view(){return this._pageInfo.view}getViewport({scale:t,rotation:i=this.rotate,offsetX:n=0,offsetY:a=0,dontFlip:l=!1}={}){return new mb({viewBox:this.view,scale:t,rotation:i,offsetX:n,offsetY:a,dontFlip:l})}getAnnotations({intent:t="display"}={}){const{renderingIntent:i}=this._transport.getRenderingIntent(t);return this._transport.getAnnotations(this._pageIndex,i)}getJSActions(){return this._transport.getPageJSActions(this._pageIndex)}get filterFactory(){return this._transport.filterFactory}get isPureXfa(){return nr(this,"isPureXfa",!!this._transport._htmlForXfa)}async getXfa(){return this._transport._htmlForXfa?.children[this._pageIndex]||null}render({canvasContext:t,viewport:i,intent:n="display",annotationMode:a=O0.ENABLE,transform:l=null,background:d=null,optionalContentConfigPromise:c=null,annotationCanvasMap:p=null,pageColors:u=null,printAnnotationStorage:h=null}){this._stats?.time("Overall");const m=this._transport.getRenderingIntent(n,a,h),{renderingIntent:f,cacheKey:x}=m;this.#t=!1,this.#r(),c||=this._transport.getOptionalContentConfig(f);let y=this._intentStates.get(x);y||(y=Object.create(null),this._intentStates.set(x,y)),y.streamReaderCancelTimeout&&(clearTimeout(y.streamReaderCancelTimeout),y.streamReaderCancelTimeout=null);const w=!!(f&nc.PRINT);y.displayReadyCapability||(y.displayReadyCapability=Promise.withResolvers(),y.operatorList={fnArray:[],argsArray:[],lastChunk:!1,separateAnnots:null},this._stats?.time("Page Request"),this._pumpOperatorList(m));const b=E=>{y.renderTasks.delete(C),(this._maybeCleanupAfterRender||w)&&(this.#t=!0),this.#o(!w),E?(C.capability.reject(E),this._abortOperatorList({intentState:y,reason:E instanceof Error?E:new Error(E)})):C.capability.resolve(),this._stats&&(this._stats.timeEnd("Rendering"),this._stats.timeEnd("Overall"),globalThis.Stats?.enabled&&globalThis.Stats.add(this.pageNumber,this._stats))},C=new $7({callback:b,params:{canvasContext:t,viewport:i,transform:l,background:d},objs:this.objs,commonObjs:this.commonObjs,annotationCanvasMap:p,operatorList:y.operatorList,pageIndex:this._pageIndex,canvasFactory:this._transport.canvasFactory,filterFactory:this._transport.filterFactory,useRequestAnimationFrame:!w,pdfBug:this._pdfBug,pageColors:u});(y.renderTasks||=new Set).add(C);const k=C.task;return Promise.all([y.displayReadyCapability.promise,c]).then(([E,S])=>{if(this.destroyed){b();return}if(this._stats?.time("Rendering"),!(S.renderingIntent&f))throw new Error("Must use the same `intent`-argument when calling the `PDFPageProxy.render` and `PDFDocumentProxy.getOptionalContentConfig` methods.");C.initializeGraphics({transparency:E,optionalContentConfig:S}),C.operatorListChanged()}).catch(b),k}getOperatorList({intent:t="display",annotationMode:i=O0.ENABLE,printAnnotationStorage:n=null}={}){function a(){d.operatorList.lastChunk&&(d.opListReadCapability.resolve(d.operatorList),d.renderTasks.delete(c))}const l=this._transport.getRenderingIntent(t,i,n,!0);let d=this._intentStates.get(l.cacheKey);d||(d=Object.create(null),this._intentStates.set(l.cacheKey,d));let c;return d.opListReadCapability||(c=Object.create(null),c.operatorListChanged=a,d.opListReadCapability=Promise.withResolvers(),(d.renderTasks||=new Set).add(c),d.operatorList={fnArray:[],argsArray:[],lastChunk:!1,separateAnnots:null},this._stats?.time("Page Request"),this._pumpOperatorList(l)),d.opListReadCapability.promise}streamTextContent({includeMarkedContent:t=!1,disableNormalization:i=!1}={}){return this._transport.messageHandler.sendWithStream("GetTextContent",{pageIndex:this._pageIndex,includeMarkedContent:t===!0,disableNormalization:i===!0},{highWaterMark:100,size(a){return a.items.length}})}getTextContent(t={}){if(this._transport._htmlForXfa)return this.getXfa().then(n=>cw.textContent(n));const i=this.streamTextContent(t);return new Promise(function(n,a){function l(){d.read().then(function({value:p,done:u}){if(u){n(c);return}c.lang??=p.lang,Object.assign(c.styles,p.styles),c.items.push(...p.items),l()},a)}const d=i.getReader(),c={items:[],styles:Object.create(null),lang:null};l()})}getStructTree(){return this._transport.getStructTree(this._pageIndex)}_destroy(){this.destroyed=!0;const t=[];for(const i of this._intentStates.values())if(this._abortOperatorList({intentState:i,reason:new Error("Page was destroyed."),force:!0}),!i.opListReadCapability)for(const n of i.renderTasks)t.push(n.completed),n.cancel();return this.objs.clear(),this.#t=!1,this.#r(),Promise.all(t)}cleanup(t=!1){this.#t=!0;const i=this.#o(!1);return t&&i&&(this._stats&&=new spe),i}#o(t=!1){if(this.#r(),!this.#t||this.destroyed)return!1;if(t)return this.#e=setTimeout(()=>{this.#e=null,this.#o(!1)},Mkt),!1;for(const{renderTasks:i,operatorList:n}of this._intentStates.values())if(i.size>0||!n.lastChunk)return!1;return this._intentStates.clear(),this.objs.clear(),this.#t=!1,!0}#r(){this.#e&&(clearTimeout(this.#e),this.#e=null)}_startRenderPage(t,i){const n=this._intentStates.get(i);n&&(this._stats?.timeEnd("Page Request"),n.displayReadyCapability?.resolve(t))}_renderPageChunk(t,i){for(let n=0,a=t.length;n<a;n++)i.operatorList.fnArray.push(t.fnArray[n]),i.operatorList.argsArray.push(t.argsArray[n]);i.operatorList.lastChunk=t.lastChunk,i.operatorList.separateAnnots=t.separateAnnots;for(const n of i.renderTasks)n.operatorListChanged();t.lastChunk&&this.#o(!0)}_pumpOperatorList({renderingIntent:t,cacheKey:i,annotationStorageSerializable:n}){const{map:a,transfer:l}=n,c=this._transport.messageHandler.sendWithStream("GetOperatorList",{pageIndex:this._pageIndex,intent:t,cacheKey:i,annotationStorage:a},l).getReader(),p=this._intentStates.get(i);p.streamReader=c;const u=()=>{c.read().then(({value:h,done:m})=>{if(m){p.streamReader=null;return}this._transport.destroyed||(this._renderPageChunk(h,p),u())},h=>{if(p.streamReader=null,!this._transport.destroyed){if(p.operatorList){p.operatorList.lastChunk=!0;for(const m of p.renderTasks)m.operatorListChanged();this.#o(!0)}if(p.displayReadyCapability)p.displayReadyCapability.reject(h);else if(p.opListReadCapability)p.opListReadCapability.reject(h);else throw h}})};u()}_abortOperatorList({intentState:t,reason:i,force:n=!1}){if(t.streamReader){if(t.streamReaderCancelTimeout&&(clearTimeout(t.streamReaderCancelTimeout),t.streamReaderCancelTimeout=null),!n){if(t.renderTasks.size>0)return;if(i instanceof PK){let a=jkt;i.extraDelay>0&&i.extraDelay<1e3&&(a+=i.extraDelay),t.streamReaderCancelTimeout=setTimeout(()=>{t.streamReaderCancelTimeout=null,this._abortOperatorList({intentState:t,reason:i,force:!0})},a);return}}if(t.streamReader.cancel(new K4(i.message)).catch(()=>{}),t.streamReader=null,!this._transport.destroyed){for(const[a,l]of this._intentStates)if(l===t){this._intentStates.delete(a);break}this.cleanup()}}}get stats(){return this._stats}}class Hkt{#e=new Set;#t=Promise.resolve();postMessage(t,i){const n={data:structuredClone(t,i?{transfer:i}:null)};this.#t.then(()=>{for(const a of this.#e)a.call(this,n)})}addEventListener(t,i){this.#e.add(i)}removeEventListener(t,i){this.#e.delete(i)}terminate(){this.#e.clear()}}const Gh={isWorkerDisabled:!1,fakeWorkerId:0};Rs&&(Gh.isWorkerDisabled=!0,dw.workerSrc||="./pdf.worker.mjs"),Gh.isSameOrigin=function(e,t){let i;try{if(i=new URL(e),!i.origin||i.origin==="null")return!1}catch{return!1}const n=new URL(t,i);return i.origin===n.origin},Gh.createCDNWrapper=function(e){const t=`await import("${e}");`;return URL.createObjectURL(new Blob([t],{type:"text/javascript"}))};class dc{static#e;constructor({name:t=null,port:i=null,verbosity:n=w$t()}={}){if(this.name=t,this.destroyed=!1,this.verbosity=n,this._readyCapability=Promise.withResolvers(),this._port=null,this._webWorker=null,this._messageHandler=null,i){if(dc.#e?.has(i))throw new Error("Cannot use more than one PDFWorker per port.");(dc.#e||=new WeakMap).set(i,this),this._initializeFromPort(i);return}this._initialize()}get promise(){return Rs?Promise.all([Uu.promise,this._readyCapability.promise]):this._readyCapability.promise}#t(){this._readyCapability.resolve(),this._messageHandler.send("configure",{verbosity:this.verbosity})}get port(){return this._port}get messageHandler(){return this._messageHandler}_initializeFromPort(t){this._port=t,this._messageHandler=new Px("main","worker",t),this._messageHandler.on("ready",function(){}),this.#t()}_initialize(){if(Gh.isWorkerDisabled||dc.#o){this._setupFakeWorker();return}let{workerSrc:t}=dc;try{Gh.isSameOrigin(window.location.href,t)||(t=Gh.createCDNWrapper(new URL(t,window.location).href));const i=new Worker(t,{type:"module"}),n=new Px("main","worker",i),a=()=>{l.abort(),n.destroy(),i.terminate(),this.destroyed?this._readyCapability.reject(new Error("Worker was destroyed")):this._setupFakeWorker()},l=new AbortController;i.addEventListener("error",()=>{this._webWorker||a()},{signal:l.signal}),n.on("test",c=>{if(l.abort(),this.destroyed||!c){a();return}this._messageHandler=n,this._port=i,this._webWorker=i,this.#t()}),n.on("ready",c=>{if(l.abort(),this.destroyed){a();return}try{d()}catch{this._setupFakeWorker()}});const d=()=>{const c=new Uint8Array;n.send("test",c,[c.buffer])};d();return}catch{_L("The worker has been disabled.")}this._setupFakeWorker()}_setupFakeWorker(){Gh.isWorkerDisabled||(Pi("Setting up fake worker."),Gh.isWorkerDisabled=!0),dc._setupFakeWorkerGlobal.then(t=>{if(this.destroyed){this._readyCapability.reject(new Error("Worker was destroyed"));return}const i=new Hkt;this._port=i;const n=`fake${Gh.fakeWorkerId++}`,a=new Px(n+"_worker",n,i);t.setup(a,i),this._messageHandler=new Px(n,n+"_worker",i),this.#t()}).catch(t=>{this._readyCapability.reject(new Error(`Setting up fake worker failed: "${t.message}".`))})}destroy(){this.destroyed=!0,this._webWorker&&(this._webWorker.terminate(),this._webWorker=null),dc.#e?.delete(this._port),this._port=null,this._messageHandler&&(this._messageHandler.destroy(),this._messageHandler=null)}static fromPort(t){if(!t?.port)throw new Error("PDFWorker.fromPort - invalid method signature.");const i=this.#e?.get(t.port);if(i){if(i._pendingDestroy)throw new Error("PDFWorker.fromPort - the worker is being destroyed.\nPlease remember to await `PDFDocumentLoadingTask.destroy()`-calls.");return i}return new dc(t)}static get workerSrc(){if(dw.workerSrc)return dw.workerSrc;throw new Error('No "GlobalWorkerOptions.workerSrc" specified.')}static get#o(){try{return globalThis.pdfjsWorker?.WorkerMessageHandler||null}catch{return null}}static get _setupFakeWorkerGlobal(){return nr(this,"_setupFakeWorkerGlobal",(async()=>this.#o?this.#o:(await import(this.workerSrc)).WorkerMessageHandler)())}}class _kt{#e=new Map;#t=new Map;#o=new Map;#r=new Map;#s=null;constructor(t,i,n,a,l){this.messageHandler=t,this.loadingTask=i,this.commonObjs=new tMe,this.fontLoader=new N$t({ownerDocument:a.ownerDocument,styleElement:a.styleElement}),this.loadingParams=a.loadingParams,this._params=a,this.canvasFactory=l.canvasFactory,this.filterFactory=l.filterFactory,this.cMapReaderFactory=l.cMapReaderFactory,this.standardFontDataFactory=l.standardFontDataFactory,this.destroyed=!1,this.destroyCapability=null,this._networkStream=n,this._fullReader=null,this._lastProgress=null,this.downloadInfoCapability=Promise.withResolvers(),this.setupMessageHandler()}#i(t,i=null){const n=this.#e.get(t);if(n)return n;const a=this.messageHandler.sendWithPromise(t,i);return this.#e.set(t,a),a}get annotationStorage(){return nr(this,"annotationStorage",new HK)}getRenderingIntent(t,i=O0.ENABLE,n=null,a=!1){let l=nc.DISPLAY,d=mU;switch(t){case"any":l=nc.ANY;break;case"display":break;case"print":l=nc.PRINT;break;default:Pi(`getRenderingIntent - invalid intent: ${t}`)}switch(i){case O0.DISABLE:l+=nc.ANNOTATIONS_DISABLE;break;case O0.ENABLE:break;case O0.ENABLE_FORMS:l+=nc.ANNOTATIONS_FORMS;break;case O0.ENABLE_STORAGE:l+=nc.ANNOTATIONS_STORAGE,d=(l&nc.PRINT&&n instanceof Uje?n:this.annotationStorage).serializable;break;default:Pi(`getRenderingIntent - invalid annotationMode: ${i}`)}return a&&(l+=nc.OPLIST),{renderingIntent:l,cacheKey:`${l}_${d.hash}`,annotationStorageSerializable:d}}destroy(){if(this.destroyCapability)return this.destroyCapability.promise;this.destroyed=!0,this.destroyCapability=Promise.withResolvers(),this.#s?.reject(new Error("Worker was destroyed during onPassword callback"));const t=[];for(const n of this.#t.values())t.push(n._destroy());this.#t.clear(),this.#o.clear(),this.#r.clear(),this.hasOwnProperty("annotationStorage")&&this.annotationStorage.resetModified();const i=this.messageHandler.sendWithPromise("Terminate",null);return t.push(i),Promise.all(t).then(()=>{this.commonObjs.clear(),this.fontLoader.clear(),this.#e.clear(),this.filterFactory.destroy(),hS.cleanup(),this._networkStream?.cancelAllRequests(new K4("Worker was terminated.")),this.messageHandler&&(this.messageHandler.destroy(),this.messageHandler=null),this.destroyCapability.resolve()},this.destroyCapability.reject),this.destroyCapability.promise}setupMessageHandler(){const{messageHandler:t,loadingTask:i}=this;t.on("GetReader",(n,a)=>{Ca(this._networkStream,"GetReader - no `IPDFStream` instance available."),this._fullReader=this._networkStream.getFullReader(),this._fullReader.onProgress=l=>{this._lastProgress={loaded:l.loaded,total:l.total}},a.onPull=()=>{this._fullReader.read().then(function({value:l,done:d}){if(d){a.close();return}Ca(l instanceof ArrayBuffer,"GetReader - expected an ArrayBuffer."),a.enqueue(new Uint8Array(l),1,[l])}).catch(l=>{a.error(l)})},a.onCancel=l=>{this._fullReader.cancel(l),a.ready.catch(d=>{if(!this.destroyed)throw d})}}),t.on("ReaderHeadersReady",n=>{const a=Promise.withResolvers(),l=this._fullReader;return l.headersReady.then(()=>{(!l.isStreamingSupported||!l.isRangeSupported)&&(this._lastProgress&&i.onProgress?.(this._lastProgress),l.onProgress=d=>{i.onProgress?.({loaded:d.loaded,total:d.total})}),a.resolve({isStreamingSupported:l.isStreamingSupported,isRangeSupported:l.isRangeSupported,contentLength:l.contentLength})},a.reject),a.promise}),t.on("GetRangeReader",(n,a)=>{Ca(this._networkStream,"GetRangeReader - no `IPDFStream` instance available.");const l=this._networkStream.getRangeReader(n.begin,n.end);if(!l){a.close();return}a.onPull=()=>{l.read().then(function({value:d,done:c}){if(c){a.close();return}Ca(d instanceof ArrayBuffer,"GetRangeReader - expected an ArrayBuffer."),a.enqueue(new Uint8Array(d),1,[d])}).catch(d=>{a.error(d)})},a.onCancel=d=>{l.cancel(d),a.ready.catch(c=>{if(!this.destroyed)throw c})}}),t.on("GetDoc",({pdfInfo:n})=>{this._numPages=n.numPages,this._htmlForXfa=n.htmlForXfa,delete n.htmlForXfa,i._capability.resolve(new Okt(n,this))}),t.on("DocException",function(n){let a;switch(n.name){case"PasswordException":a=new uU(n.message,n.code);break;case"InvalidPDFException":a=new Fje(n.message);break;case"MissingPDFException":a=new Y4(n.message);break;case"UnexpectedResponseException":a=new VL(n.message,n.status);break;case"UnknownErrorException":a=new hU(n.message,n.details);break;default:jr("DocException - expected a valid Error.")}i._capability.reject(a)}),t.on("PasswordRequest",n=>{if(this.#s=Promise.withResolvers(),i.onPassword){const a=l=>{l instanceof Error?this.#s.reject(l):this.#s.resolve({password:l})};try{i.onPassword(a,n.code)}catch(l){this.#s.reject(l)}}else this.#s.reject(new uU(n.message,n.code));return this.#s.promise}),t.on("DataLoaded",n=>{i.onProgress?.({loaded:n.length,total:n.length}),this.downloadInfoCapability.resolve(n)}),t.on("StartRenderPage",n=>{if(this.destroyed)return;this.#t.get(n.pageIndex)._startRenderPage(n.transparency,n.cacheKey)}),t.on("commonobj",([n,a,l])=>{if(this.destroyed||this.commonObjs.has(n))return null;switch(a){case"Font":const{disableFontFace:d,fontExtraProperties:c,pdfBug:p}=this._params;if("error"in l){const f=l.error;Pi(`Error during font loading: ${f}`),this.commonObjs.resolve(n,f);break}const u=p&&globalThis.FontInspector?.enabled?(f,x)=>globalThis.FontInspector.fontAdded(f,x):null,h=new H$t(l,{disableFontFace:d,inspectFont:u});this.fontLoader.bind(h).catch(()=>t.sendWithPromise("FontFallback",{id:n})).finally(()=>{!c&&h.data&&(h.data=null),this.commonObjs.resolve(n,h)});break;case"CopyLocalImage":const{imageRef:m}=l;Ca(m,"The imageRef must be defined.");for(const f of this.#t.values())for(const[,x]of f.objs)if(x?.ref===m)return x.dataLen?(this.commonObjs.resolve(n,structuredClone(x)),x.dataLen):null;break;case"FontPath":case"Image":case"Pattern":this.commonObjs.resolve(n,l);break;default:throw new Error(`Got unknown common object type ${a}`)}return null}),t.on("obj",([n,a,l,d])=>{if(this.destroyed)return;const c=this.#t.get(a);if(!c.objs.has(n)){if(c._intentStates.size===0){d?.bitmap?.close();return}switch(l){case"Image":c.objs.resolve(n,d),d?.dataLen>m$t&&(c._maybeCleanupAfterRender=!0);break;case"Pattern":c.objs.resolve(n,d);break;default:throw new Error(`Got unknown object type ${l}`)}}}),t.on("DocProgress",n=>{this.destroyed||i.onProgress?.({loaded:n.loaded,total:n.total})}),t.on("FetchBuiltInCMap",n=>this.destroyed?Promise.reject(new Error("Worker was destroyed.")):this.cMapReaderFactory?this.cMapReaderFactory.fetch(n):Promise.reject(new Error("CMapReaderFactory not initialized, see the `useWorkerFetch` parameter."))),t.on("FetchStandardFontData",n=>this.destroyed?Promise.reject(new Error("Worker was destroyed.")):this.standardFontDataFactory?this.standardFontDataFactory.fetch(n):Promise.reject(new Error("StandardFontDataFactory not initialized, see the `useWorkerFetch` parameter.")))}getData(){return this.messageHandler.sendWithPromise("GetData",null)}saveDocument(){this.annotationStorage.size<=0&&Pi("saveDocument called while `annotationStorage` is empty, please use the getData-method instead.");const{map:t,transfer:i}=this.annotationStorage.serializable;return this.messageHandler.sendWithPromise("SaveDocument",{isPureXfa:!!this._htmlForXfa,numPages:this._numPages,annotationStorage:t,filename:this._fullReader?.filename??null},i).finally(()=>{this.annotationStorage.resetModified()})}getPage(t){if(!Number.isInteger(t)||t<=0||t>this._numPages)return Promise.reject(new Error("Invalid page request."));const i=t-1,n=this.#o.get(i);if(n)return n;const a=this.messageHandler.sendWithPromise("GetPage",{pageIndex:i}).then(l=>{if(this.destroyed)throw new Error("Transport destroyed");l.refStr&&this.#r.set(l.refStr,t);const d=new Nkt(i,l,this,this._params.pdfBug);return this.#t.set(i,d),d});return this.#o.set(i,a),a}getPageIndex(t){return vpe(t)?this.messageHandler.sendWithPromise("GetPageIndex",{num:t.num,gen:t.gen}):Promise.reject(new Error("Invalid pageIndex request."))}getAnnotations(t,i){return this.messageHandler.sendWithPromise("GetAnnotations",{pageIndex:t,intent:i})}getFieldObjects(){return this.#i("GetFieldObjects")}hasJSActions(){return this.#i("HasJSActions")}getCalculationOrderIds(){return this.messageHandler.sendWithPromise("GetCalculationOrderIds",null)}getDestinations(){return this.messageHandler.sendWithPromise("GetDestinations",null)}getDestination(t){return typeof t!="string"?Promise.reject(new Error("Invalid destination request.")):this.messageHandler.sendWithPromise("GetDestination",{id:t})}getPageLabels(){return this.messageHandler.sendWithPromise("GetPageLabels",null)}getPageLayout(){return this.messageHandler.sendWithPromise("GetPageLayout",null)}getPageMode(){return this.messageHandler.sendWithPromise("GetPageMode",null)}getViewerPreferences(){return this.messageHandler.sendWithPromise("GetViewerPreferences",null)}getOpenAction(){return this.messageHandler.sendWithPromise("GetOpenAction",null)}getAttachments(){return this.messageHandler.sendWithPromise("GetAttachments",null)}getDocJSActions(){return this.#i("GetDocJSActions")}getPageJSActions(t){return this.messageHandler.sendWithPromise("GetPageJSActions",{pageIndex:t})}getStructTree(t){return this.messageHandler.sendWithPromise("GetStructTree",{pageIndex:t})}getOutline(){return this.messageHandler.sendWithPromise("GetOutline",null)}getOptionalContentConfig(t){return this.#i("GetOptionalContentConfig").then(i=>new skt(i,t))}getPermissions(){return this.messageHandler.sendWithPromise("GetPermissions",null)}getMetadata(){const t="GetMetadata",i=this.#e.get(t);if(i)return i;const n=this.messageHandler.sendWithPromise(t,null).then(a=>({info:a[0],metadata:a[1]?new nkt(a[1]):null,contentDispositionFilename:this._fullReader?.filename??null,contentLength:this._fullReader?.contentLength??null}));return this.#e.set(t,n),n}getMarkInfo(){return this.messageHandler.sendWithPromise("GetMarkInfo",null)}async startCleanup(t=!1){if(!this.destroyed){await this.messageHandler.sendWithPromise("Cleanup",null);for(const i of this.#t.values())if(!i.cleanup())throw new Error(`startCleanup: Page ${i.pageNumber} is currently rendering.`);this.commonObjs.clear(),t||this.fontLoader.clear(),this.#e.clear(),this.filterFactory.destroy(!0),hS.cleanup()}}cachedPageNumber(t){if(!vpe(t))return null;const i=t.gen===0?`${t.num}R`:`${t.num}R${t.gen}`;return this.#r.get(i)??null}}const dC=Symbol("INITIAL_DATA");class tMe{#e=Object.create(null);#t(t){return this.#e[t]||={...Promise.withResolvers(),data:dC}}get(t,i=null){if(i){const a=this.#t(t);return a.promise.then(()=>i(a.data)),null}const n=this.#e[t];if(!n||n.data===dC)throw new Error(`Requesting object that isn't resolved yet ${t}.`);return n.data}has(t){const i=this.#e[t];return!!i&&i.data!==dC}resolve(t,i=null){const n=this.#t(t);n.data=i,n.resolve()}clear(){for(const t in this.#e){const{data:i}=this.#e[t];i?.bitmap?.close()}this.#e=Object.create(null)}*[Symbol.iterator](){for(const t in this.#e){const{data:i}=this.#e[t];i!==dC&&(yield[t,i])}}}class Vkt{#e=null;constructor(t){this.#e=t,this.onContinue=null}get promise(){return this.#e.capability.promise}cancel(t=0){this.#e.cancel(null,t)}get separateAnnots(){const{separateAnnots:t}=this.#e.operatorList;if(!t)return!1;const{annotationCanvasMap:i}=this.#e;return t.form||t.canvas&&i?.size>0}}class $7{#e=null;static#t=new WeakSet;constructor({callback:t,params:i,objs:n,commonObjs:a,annotationCanvasMap:l,operatorList:d,pageIndex:c,canvasFactory:p,filterFactory:u,useRequestAnimationFrame:h=!1,pdfBug:m=!1,pageColors:f=null}){this.callback=t,this.params=i,this.objs=n,this.commonObjs=a,this.annotationCanvasMap=l,this.operatorListIdx=null,this.operatorList=d,this._pageIndex=c,this.canvasFactory=p,this.filterFactory=u,this._pdfBug=m,this.pageColors=f,this.running=!1,this.graphicsReadyCallback=null,this.graphicsReady=!1,this._useRequestAnimationFrame=h===!0&&typeof window<"u",this.cancelled=!1,this.capability=Promise.withResolvers(),this.task=new Vkt(this),this._cancelBound=this.cancel.bind(this),this._continueBound=this._continue.bind(this),this._scheduleNextBound=this._scheduleNext.bind(this),this._nextBound=this._next.bind(this),this._canvas=i.canvasContext.canvas}get completed(){return this.capability.promise.catch(function(){})}initializeGraphics({transparency:t=!1,optionalContentConfig:i}){if(this.cancelled)return;if(this._canvas){if($7.#t.has(this._canvas))throw new Error("Cannot use the same canvas during multiple render() operations. Use different canvas or ensure previous operations were cancelled or completed.");$7.#t.add(this._canvas)}this._pdfBug&&globalThis.StepperManager?.enabled&&(this.stepper=globalThis.StepperManager.create(this._pageIndex),this.stepper.init(this.operatorList),this.stepper.nextBreakPoint=this.stepper.getNextBreakPoint());const{canvasContext:n,viewport:a,transform:l,background:d}=this.params;this.gfx=new N7(n,this.commonObjs,this.objs,this.canvasFactory,this.filterFactory,{optionalContentConfig:i},this.annotationCanvasMap,this.pageColors),this.gfx.beginDrawing({transform:l,viewport:a,transparency:t,background:d}),this.operatorListIdx=0,this.graphicsReady=!0,this.graphicsReadyCallback?.()}cancel(t=null,i=0){this.running=!1,this.cancelled=!0,this.gfx?.endDrawing(),this.#e&&(window.cancelAnimationFrame(this.#e),this.#e=null),$7.#t.delete(this._canvas),this.callback(t||new PK(`Rendering cancelled, page ${this._pageIndex+1}`,i))}operatorListChanged(){if(!this.graphicsReady){this.graphicsReadyCallback||=this._continueBound;return}this.stepper?.updateOperatorList(this.operatorList),!this.running&&this._continue()}_continue(){this.running=!0,!this.cancelled&&(this.task.onContinue?this.task.onContinue(this._scheduleNextBound):this._scheduleNext())}_scheduleNext(){this._useRequestAnimationFrame?this.#e=window.requestAnimationFrame(()=>{this.#e=null,this._nextBound().catch(this._cancelBound)}):Promise.resolve().then(this._nextBound).catch(this._cancelBound)}async _next(){this.cancelled||(this.operatorListIdx=this.gfx.executeOperatorList(this.operatorList,this.operatorListIdx,this._continueBound,this.stepper),this.operatorListIdx===this.operatorList.argsArray.length&&(this.running=!1,this.operatorList.lastChunk&&(this.gfx.endDrawing(),$7.#t.delete(this._canvas),this.callback())))}}const Qkt="4.4.168",Ukt="19fbc8998";function Cpe(e){return Math.floor(Math.max(0,Math.min(1,e))*255).toString(16).padStart(2,"0")}function M9(e){return Math.max(0,Math.min(255,255*e))}class Ape{static CMYK_G([t,i,n,a]){return["G",1-Math.min(1,.3*t+.59*n+.11*i+a)]}static G_CMYK([t]){return["CMYK",0,0,0,1-t]}static G_RGB([t]){return["RGB",t,t,t]}static G_rgb([t]){return t=M9(t),[t,t,t]}static G_HTML([t]){const i=Cpe(t);return`#${i}${i}${i}`}static RGB_G([t,i,n]){return["G",.3*t+.59*i+.11*n]}static RGB_rgb(t){return t.map(M9)}static RGB_HTML(t){return`#${t.map(Cpe).join("")}`}static T_HTML(){return"#00000000"}static T_rgb(){return[null]}static CMYK_RGB([t,i,n,a]){return["RGB",1-Math.min(1,t+a),1-Math.min(1,n+a),1-Math.min(1,i+a)]}static CMYK_rgb([t,i,n,a]){return[M9(1-Math.min(1,t+a)),M9(1-Math.min(1,n+a)),M9(1-Math.min(1,i+a))]}static CMYK_HTML(t){const i=this.CMYK_RGB(t).slice(1);return this.RGB_HTML(i)}static RGB_CMYK([t,i,n]){const a=1-t,l=1-i,d=1-n,c=Math.min(a,l,d);return["CMYK",a,l,d,c]}}class oMe{static setupStorage(t,i,n,a,l){const d=a.getValue(i,{value:null});switch(n.name){case"textarea":if(d.value!==null&&(t.textContent=d.value),l==="print")break;t.addEventListener("input",c=>{a.setValue(i,{value:c.target.value})});break;case"input":if(n.attributes.type==="radio"||n.attributes.type==="checkbox"){if(d.value===n.attributes.xfaOn?t.setAttribute("checked",!0):d.value===n.attributes.xfaOff&&t.removeAttribute("checked"),l==="print")break;t.addEventListener("change",c=>{a.setValue(i,{value:c.target.checked?c.target.getAttribute("xfaOn"):c.target.getAttribute("xfaOff")})})}else{if(d.value!==null&&t.setAttribute("value",d.value),l==="print")break;t.addEventListener("input",c=>{a.setValue(i,{value:c.target.value})})}break;case"select":if(d.value!==null){t.setAttribute("value",d.value);for(const c of n.children)c.attributes.value===d.value?c.attributes.selected=!0:c.attributes.hasOwnProperty("selected")&&delete c.attributes.selected}t.addEventListener("input",c=>{const p=c.target.options,u=p.selectedIndex===-1?"":p[p.selectedIndex].value;a.setValue(i,{value:u})});break}}static setAttributes({html:t,element:i,storage:n=null,intent:a,linkService:l}){const{attributes:d}=i,c=t instanceof HTMLAnchorElement;d.type==="radio"&&(d.name=`${d.name}-${a}`);for(const[p,u]of Object.entries(d))if(u!=null)switch(p){case"class":u.length&&t.setAttribute(p,u.join(" "));break;case"dataId":break;case"id":t.setAttribute("data-element-id",u);break;case"style":Object.assign(t.style,u);break;case"textContent":t.textContent=u;break;default:(!c||p!=="href"&&p!=="newWindow")&&t.setAttribute(p,u)}c&&l.addLinkAttributes(t,d.href,d.newWindow),n&&d.dataId&&this.setupStorage(t,d.dataId,i,n)}static render(t){const i=t.annotationStorage,n=t.linkService,a=t.xfaHtml,l=t.intent||"display",d=document.createElement(a.name);a.attributes&&this.setAttributes({html:d,element:a,intent:l,linkService:n});const c=l!=="richText",p=t.div;if(p.append(d),t.viewport){const m=`matrix(${t.viewport.transform.join(",")})`;p.style.transform=m}c&&p.setAttribute("class","xfaLayer xfaFont");const u=[];if(a.children.length===0){if(a.value){const m=document.createTextNode(a.value);d.append(m),c&&cw.shouldBuildText(a.name)&&u.push(m)}return{textDivs:u}}const h=[[a,-1,d]];for(;h.length>0;){const[m,f,x]=h.at(-1);if(f+1===m.children.length){h.pop();continue}const y=m.children[++h.at(-1)[1]];if(y===null)continue;const{name:w}=y;if(w==="#text"){const C=document.createTextNode(y.value);u.push(C),x.append(C);continue}const b=y?.attributes?.xmlns?document.createElementNS(y.attributes.xmlns,w):document.createElement(w);if(x.append(b),y.attributes&&this.setAttributes({html:b,element:y,storage:i,intent:l,linkService:n}),y.children?.length>0)h.push([y,-1,b]);else if(y.value){const C=document.createTextNode(y.value);c&&cw.shouldBuildText(w)&&u.push(C),b.append(C)}}for(const m of p.querySelectorAll(".xfaNonInteractive input, .xfaNonInteractive textarea"))m.setAttribute("readOnly",!0);return{textDivs:u}}static update(t){const i=`matrix(${t.viewport.transform.join(",")})`;t.div.style.transform=i,t.div.hidden=!1}}const xb=1e3,Wkt=9,E4=new WeakSet;function f2(e){return{width:e[2]-e[0],height:e[3]-e[1]}}class Gkt{static create(t){switch(t.data.annotationType){case xa.LINK:return new iMe(t);case xa.TEXT:return new Ykt(t);case xa.WIDGET:switch(t.data.fieldType){case"Tx":return new Kkt(t);case"Btn":return t.data.radioButton?new rMe(t):t.data.checkBox?new Zkt(t):new Jkt(t);case"Ch":return new Xkt(t);case"Sig":return new qkt(t)}return new q4(t);case xa.POPUP:return new yU(t);case xa.FREETEXT:return new nMe(t);case xa.LINE:return new tSt(t);case xa.SQUARE:return new oSt(t);case xa.CIRCLE:return new iSt(t);case xa.POLYLINE:return new aMe(t);case xa.CARET:return new nSt(t);case xa.INK:return new sMe(t);case xa.POLYGON:return new rSt(t);case xa.HIGHLIGHT:return new aSt(t);case xa.UNDERLINE:return new sSt(t);case xa.SQUIGGLY:return new lSt(t);case xa.STRIKEOUT:return new dSt(t);case xa.STAMP:return new lMe(t);case xa.FILEATTACHMENT:return new cSt(t);default:return new Vn(t)}}}class Vn{#e=null;#t=!1;#o=null;constructor(t,{isRenderable:i=!1,ignoreBorder:n=!1,createQuadrilaterals:a=!1}={}){this.isRenderable=i,this.data=t.data,this.layer=t.layer,this.linkService=t.linkService,this.downloadManager=t.downloadManager,this.imageResourcesPath=t.imageResourcesPath,this.renderForms=t.renderForms,this.svgFactory=t.svgFactory,this.annotationStorage=t.annotationStorage,this.enableScripting=t.enableScripting,this.hasJSActions=t.hasJSActions,this._fieldObjects=t.fieldObjects,this.parent=t.parent,i&&(this.container=this._createContainer(n)),a&&this._createQuadrilaterals()}static _hasPopupData({titleObj:t,contentsObj:i,richText:n}){return!!(t?.str||i?.str||n?.str)}get hasPopupData(){return Vn._hasPopupData(this.data)}updateEdited(t){if(!this.container)return;this.#e||={rect:this.data.rect.slice(0)};const{rect:i}=t;i&&this.#r(i),this.#o?.popup.updateEdited(t)}resetEdited(){this.#e&&(this.#r(this.#e.rect),this.#o?.popup.resetEdited(),this.#e=null)}#r(t){const{container:{style:i},data:{rect:n,rotation:a},parent:{viewport:{rawDims:{pageWidth:l,pageHeight:d,pageX:c,pageY:p}}}}=this;n?.splice(0,4,...t);const{width:u,height:h}=f2(t);i.left=`${100*(t[0]-c)/l}%`,i.top=`${100*(d-t[3]+p)/d}%`,a===0?(i.width=`${100*u/l}%`,i.height=`${100*h/d}%`):this.setRotation(a)}_createContainer(t){const{data:i,parent:{page:n,viewport:a}}=this,l=document.createElement("section");l.setAttribute("data-annotation-id",i.id),this instanceof q4||(l.tabIndex=xb);const{style:d}=l;if(d.zIndex=this.parent.zIndex++,i.popupRef&&l.setAttribute("aria-haspopup","dialog"),i.alternativeText&&(l.title=i.alternativeText),i.noRotate&&l.classList.add("norotate"),!i.rect||this instanceof yU){const{rotation:w}=i;return!i.hasOwnCanvas&&w!==0&&this.setRotation(w,l),l}const{width:c,height:p}=f2(i.rect);if(!t&&i.borderStyle.width>0){d.borderWidth=`${i.borderStyle.width}px`;const w=i.borderStyle.horizontalCornerRadius,b=i.borderStyle.verticalCornerRadius;if(w>0||b>0){const k=`calc(${w}px * var(--scale-factor)) / calc(${b}px * var(--scale-factor))`;d.borderRadius=k}else if(this instanceof rMe){const k=`calc(${c}px * var(--scale-factor)) / calc(${p}px * var(--scale-factor))`;d.borderRadius=k}switch(i.borderStyle.style){case I9.SOLID:d.borderStyle="solid";break;case I9.DASHED:d.borderStyle="dashed";break;case I9.BEVELED:Pi("Unimplemented border style: beveled");break;case I9.INSET:Pi("Unimplemented border style: inset");break;case I9.UNDERLINE:d.borderBottomStyle="solid";break}const C=i.borderColor||null;C?(this.#t=!0,d.borderColor=ko.makeHexColor(C[0]|0,C[1]|0,C[2]|0)):d.borderWidth=0}const u=ko.normalizeRect([i.rect[0],n.view[3]-i.rect[1]+n.view[1],i.rect[2],n.view[3]-i.rect[3]+n.view[1]]),{pageWidth:h,pageHeight:m,pageX:f,pageY:x}=a.rawDims;d.left=`${100*(u[0]-f)/h}%`,d.top=`${100*(u[1]-x)/m}%`;const{rotation:y}=i;return i.hasOwnCanvas||y===0?(d.width=`${100*c/h}%`,d.height=`${100*p/m}%`):this.setRotation(y,l),l}setRotation(t,i=this.container){if(!this.data.rect)return;const{pageWidth:n,pageHeight:a}=this.parent.viewport.rawDims,{width:l,height:d}=f2(this.data.rect);let c,p;t%180===0?(c=100*l/n,p=100*d/a):(c=100*d/n,p=100*l/a),i.style.width=`${c}%`,i.style.height=`${p}%`,i.setAttribute("data-main-rotation",(360-t)%360)}get _commonActions(){const t=(i,n,a)=>{const l=a.detail[i],d=l[0],c=l.slice(1);a.target.style[n]=Ape[`${d}_HTML`](c),this.annotationStorage.setValue(this.data.id,{[n]:Ape[`${d}_rgb`](c)})};return nr(this,"_commonActions",{display:i=>{const{display:n}=i.detail,a=n%2===1;this.container.style.visibility=a?"hidden":"visible",this.annotationStorage.setValue(this.data.id,{noView:a,noPrint:n===1||n===2})},print:i=>{this.annotationStorage.setValue(this.data.id,{noPrint:!i.detail.print})},hidden:i=>{const{hidden:n}=i.detail;this.container.style.visibility=n?"hidden":"visible",this.annotationStorage.setValue(this.data.id,{noPrint:n,noView:n})},focus:i=>{setTimeout(()=>i.target.focus({preventScroll:!1}),0)},userName:i=>{i.target.title=i.detail.userName},readonly:i=>{i.target.disabled=i.detail.readonly},required:i=>{this._setRequired(i.target,i.detail.required)},bgColor:i=>{t("bgColor","backgroundColor",i)},fillColor:i=>{t("fillColor","backgroundColor",i)},fgColor:i=>{t("fgColor","color",i)},textColor:i=>{t("textColor","color",i)},borderColor:i=>{t("borderColor","borderColor",i)},strokeColor:i=>{t("strokeColor","borderColor",i)},rotation:i=>{const n=i.detail.rotation;this.setRotation(n),this.annotationStorage.setValue(this.data.id,{rotation:n})}})}_dispatchEventFromSandbox(t,i){const n=this._commonActions;for(const a of Object.keys(i.detail))(t[a]||n[a])?.(i)}_setDefaultPropertiesFromJS(t){if(!this.enableScripting)return;const i=this.annotationStorage.getRawValue(this.data.id);if(!i)return;const n=this._commonActions;for(const[a,l]of Object.entries(i)){const d=n[a];if(d){const c={detail:{[a]:l},target:t};d(c),delete i[a]}}}_createQuadrilaterals(){if(!this.container)return;const{quadPoints:t}=this.data;if(!t)return;const[i,n,a,l]=this.data.rect.map(w=>Math.fround(w));if(t.length===8){const[w,b,C,k]=t.subarray(2,6);if(a===w&&l===b&&i===C&&n===k)return}const{style:d}=this.container;let c;if(this.#t){const{borderColor:w,borderWidth:b}=d;d.borderWidth=0,c=["url('data:image/svg+xml;utf8,",'<svg xmlns="http://www.w3.org/2000/svg"',' preserveAspectRatio="none" viewBox="0 0 1 1">',`<g fill="transparent" stroke="${w}" stroke-width="${b}">`],this.container.classList.add("hasBorder")}const p=a-i,u=l-n,{svgFactory:h}=this,m=h.createElement("svg");m.classList.add("quadrilateralsContainer"),m.setAttribute("width",0),m.setAttribute("height",0);const f=h.createElement("defs");m.append(f);const x=h.createElement("clipPath"),y=`clippath_${this.data.id}`;x.setAttribute("id",y),x.setAttribute("clipPathUnits","objectBoundingBox"),f.append(x);for(let w=2,b=t.length;w<b;w+=8){const C=t[w],k=t[w+1],E=t[w+2],S=t[w+3],j=h.createElement("rect"),I=(E-i)/p,T=(l-k)/u,P=(C-E)/p,B=(k-S)/u;j.setAttribute("x",I),j.setAttribute("y",T),j.setAttribute("width",P),j.setAttribute("height",B),x.append(j),c?.push(`<rect vector-effect="non-scaling-stroke" x="${I}" y="${T}" width="${P}" height="${B}"/>`)}this.#t&&(c.push("</g></svg>')"),d.backgroundImage=c.join("")),this.container.append(m),this.container.style.clipPath=`url(#${y})`}_createPopup(){const{container:t,data:i}=this;t.setAttribute("aria-haspopup","dialog");const n=this.#o=new yU({data:{color:i.color,titleObj:i.titleObj,modificationDate:i.modificationDate,contentsObj:i.contentsObj,richText:i.richText,parentRect:i.rect,borderStyle:0,id:`popup_${i.id}`,rotation:i.rotation},parent:this.parent,elements:[this]});this.parent.div.append(n.render())}render(){jr("Abstract method `AnnotationElement.render` called")}_getElementsByName(t,i=null){const n=[];if(this._fieldObjects){const a=this._fieldObjects[t];if(a)for(const{page:l,id:d,exportValues:c}of a){if(l===-1||d===i)continue;const p=typeof c=="string"?c:null,u=document.querySelector(`[data-element-id="${d}"]`);if(u&&!E4.has(u)){Pi(`_getElementsByName - element not allowed: ${d}`);continue}n.push({id:d,exportValue:p,domElement:u})}return n}for(const a of document.getElementsByName(t)){const{exportValue:l}=a,d=a.getAttribute("data-element-id");d!==i&&E4.has(a)&&n.push({id:d,exportValue:l,domElement:a})}return n}show(){this.container&&(this.container.hidden=!1),this.popup?.maybeShow()}hide(){this.container&&(this.container.hidden=!0),this.popup?.forceHide()}getElementsToTriggerPopup(){return this.container}addHighlightArea(){const t=this.getElementsToTriggerPopup();if(Array.isArray(t))for(const i of t)i.classList.add("highlightArea");else t.classList.add("highlightArea")}get _isEditable(){return!1}_editOnDoubleClick(){if(!this._isEditable)return;const{annotationEditorType:t,data:{id:i}}=this;this.container.addEventListener("dblclick",()=>{this.linkService.eventBus?.dispatch("switchannotationeditormode",{source:this,mode:t,editId:i})})}}class iMe extends Vn{constructor(t,i=null){super(t,{isRenderable:!0,ignoreBorder:!!i?.ignoreBorder,createQuadrilaterals:!0}),this.isTooltipOnly=t.data.isTooltipOnly}render(){const{data:t,linkService:i}=this,n=document.createElement("a");n.setAttribute("data-element-id",t.id);let a=!1;return t.url?(i.addLinkAttributes(n,t.url,t.newWindow),a=!0):t.action?(this._bindNamedAction(n,t.action),a=!0):t.attachment?(this.#t(n,t.attachment,t.attachmentDest),a=!0):t.setOCGState?(this.#o(n,t.setOCGState),a=!0):t.dest?(this._bindLink(n,t.dest),a=!0):(t.actions&&(t.actions.Action||t.actions["Mouse Up"]||t.actions["Mouse Down"])&&this.enableScripting&&this.hasJSActions&&(this._bindJSAction(n,t),a=!0),t.resetForm?(this._bindResetFormAction(n,t.resetForm),a=!0):this.isTooltipOnly&&!a&&(this._bindLink(n,""),a=!0)),this.container.classList.add("linkAnnotation"),a&&this.container.append(n),this.container}#e(){this.container.setAttribute("data-internal-link","")}_bindLink(t,i){t.href=this.linkService.getDestinationHash(i),t.onclick=()=>(i&&this.linkService.goToDestination(i),!1),(i||i==="")&&this.#e()}_bindNamedAction(t,i){t.href=this.linkService.getAnchorUrl(""),t.onclick=()=>(this.linkService.executeNamedAction(i),!1),this.#e()}#t(t,i,n=null){t.href=this.linkService.getAnchorUrl(""),i.description&&(t.title=i.description),t.onclick=()=>(this.downloadManager?.openOrDownloadData(i.content,i.filename,n),!1),this.#e()}#o(t,i){t.href=this.linkService.getAnchorUrl(""),t.onclick=()=>(this.linkService.executeSetOCGState(i),!1),this.#e()}_bindJSAction(t,i){t.href=this.linkService.getAnchorUrl("");const n=new Map([["Action","onclick"],["Mouse Up","onmouseup"],["Mouse Down","onmousedown"]]);for(const a of Object.keys(i.actions)){const l=n.get(a);l&&(t[l]=()=>(this.linkService.eventBus?.dispatch("dispatcheventinsandbox",{source:this,detail:{id:i.id,name:a}}),!1))}t.onclick||(t.onclick=()=>!1),this.#e()}_bindResetFormAction(t,i){const n=t.onclick;if(n||(t.href=this.linkService.getAnchorUrl("")),this.#e(),!this._fieldObjects){Pi('_bindResetFormAction - "resetForm" action not supported, ensure that the `fieldObjects` parameter is provided.'),n||(t.onclick=()=>!1);return}t.onclick=()=>{n?.();const{fields:a,refs:l,include:d}=i,c=[];if(a.length!==0||l.length!==0){const h=new Set(l);for(const m of a){const f=this._fieldObjects[m]||[];for(const{id:x}of f)h.add(x)}for(const m of Object.values(this._fieldObjects))for(const f of m)h.has(f.id)===d&&c.push(f)}else for(const h of Object.values(this._fieldObjects))c.push(...h);const p=this.annotationStorage,u=[];for(const h of c){const{id:m}=h;switch(u.push(m),h.type){case"text":{const x=h.defaultValue||"";p.setValue(m,{value:x});break}case"checkbox":case"radiobutton":{const x=h.defaultValue===h.exportValues;p.setValue(m,{value:x});break}case"combobox":case"listbox":{const x=h.defaultValue||"";p.setValue(m,{value:x});break}default:continue}const f=document.querySelector(`[data-element-id="${m}"]`);if(f){if(!E4.has(f)){Pi(`_bindResetFormAction - element not allowed: ${m}`);continue}}else continue;f.dispatchEvent(new Event("resetform"))}return this.enableScripting&&this.linkService.eventBus?.dispatch("dispatcheventinsandbox",{source:this,detail:{id:"app",ids:u,name:"ResetForm"}}),!1}}}class Ykt extends Vn{constructor(t){super(t,{isRenderable:!0})}render(){this.container.classList.add("textAnnotation");const t=document.createElement("img");return t.src=this.imageResourcesPath+"annotation-"+this.data.name.toLowerCase()+".svg",t.setAttribute("data-l10n-id","pdfjs-text-annotation-type"),t.setAttribute("data-l10n-args",JSON.stringify({type:this.data.name})),!this.data.popupRef&&this.hasPopupData&&this._createPopup(),this.container.append(t),this.container}}class q4 extends Vn{render(){return this.container}showElementAndHideCanvas(t){this.data.hasOwnCanvas&&(t.previousSibling?.nodeName==="CANVAS"&&(t.previousSibling.hidden=!0),t.hidden=!1)}_getKeyModifier(t){return Ql.platform.isMac?t.metaKey:t.ctrlKey}_setEventListener(t,i,n,a,l){n.includes("mouse")?t.addEventListener(n,d=>{this.linkService.eventBus?.dispatch("dispatcheventinsandbox",{source:this,detail:{id:this.data.id,name:a,value:l(d),shift:d.shiftKey,modifier:this._getKeyModifier(d)}})}):t.addEventListener(n,d=>{if(n==="blur"){if(!i.focused||!d.relatedTarget)return;i.focused=!1}else if(n==="focus"){if(i.focused)return;i.focused=!0}l&&this.linkService.eventBus?.dispatch("dispatcheventinsandbox",{source:this,detail:{id:this.data.id,name:a,value:l(d)}})})}_setEventListeners(t,i,n,a){for(const[l,d]of n)(d==="Action"||this.data.actions?.[d])&&((d==="Focus"||d==="Blur")&&(i||={focused:!1}),this._setEventListener(t,i,l,d,a),d==="Focus"&&!this.data.actions?.Blur?this._setEventListener(t,i,"blur","Blur",null):d==="Blur"&&!this.data.actions?.Focus&&this._setEventListener(t,i,"focus","Focus",null))}_setBackgroundColor(t){const i=this.data.backgroundColor||null;t.style.backgroundColor=i===null?"transparent":ko.makeHexColor(i[0],i[1],i[2])}_setTextStyle(t){const i=["left","center","right"],{fontColor:n}=this.data.defaultAppearanceData,a=this.data.defaultAppearanceData.fontSize||Wkt,l=t.style;let d;const c=2,p=u=>Math.round(10*u)/10;if(this.data.multiLine){const u=Math.abs(this.data.rect[3]-this.data.rect[1]-c),h=Math.round(u/(oO*a))||1,m=u/h;d=Math.min(a,p(m/oO))}else{const u=Math.abs(this.data.rect[3]-this.data.rect[1]-c);d=Math.min(a,p(u/oO))}l.fontSize=`calc(${d}px * var(--scale-factor))`,l.color=ko.makeHexColor(n[0],n[1],n[2]),this.data.textAlignment!==null&&(l.textAlign=i[this.data.textAlignment])}_setRequired(t,i){i?t.setAttribute("required",!0):t.removeAttribute("required"),t.setAttribute("aria-required",i)}}class Kkt extends q4{constructor(t){const i=t.renderForms||t.data.hasOwnCanvas||!t.data.hasAppearance&&!!t.data.fieldValue;super(t,{isRenderable:i})}setPropertyOnSiblings(t,i,n,a){const l=this.annotationStorage;for(const d of this._getElementsByName(t.name,t.id))d.domElement&&(d.domElement[i]=n),l.setValue(d.id,{[a]:n})}render(){const t=this.annotationStorage,i=this.data.id;this.container.classList.add("textWidgetAnnotation");let n=null;if(this.renderForms){const a=t.getValue(i,{value:this.data.fieldValue});let l=a.value||"";const d=t.getValue(i,{charLimit:this.data.maxLen}).charLimit;d&&l.length>d&&(l=l.slice(0,d));let c=a.formattedValue||this.data.textContent?.join(`
|
|
89
89
|
`)||null;c&&this.data.comb&&(c=c.replaceAll(/\s+/g,""));const p={userValue:l,formattedValue:c,lastCommittedValue:null,commitKey:1,focused:!1};this.data.multiLine?(n=document.createElement("textarea"),n.textContent=c??l,this.data.doNotScroll&&(n.style.overflowY="hidden")):(n=document.createElement("input"),n.type="text",n.setAttribute("value",c??l),this.data.doNotScroll&&(n.style.overflowX="hidden")),this.data.hasOwnCanvas&&(n.hidden=!0),E4.add(n),n.setAttribute("data-element-id",i),n.disabled=this.data.readOnly,n.name=this.data.fieldName,n.tabIndex=xb,this._setRequired(n,this.data.required),d&&(n.maxLength=d),n.addEventListener("input",h=>{t.setValue(i,{value:h.target.value}),this.setPropertyOnSiblings(n,"value",h.target.value,"value"),p.formattedValue=null}),n.addEventListener("resetform",h=>{const m=this.data.defaultFieldValue??"";n.value=p.userValue=m,p.formattedValue=null});let u=h=>{const{formattedValue:m}=p;m!=null&&(h.target.value=m),h.target.scrollLeft=0};if(this.enableScripting&&this.hasJSActions){n.addEventListener("focus",m=>{if(p.focused)return;const{target:f}=m;p.userValue&&(f.value=p.userValue),p.lastCommittedValue=f.value,p.commitKey=1,this.data.actions?.Focus||(p.focused=!0)}),n.addEventListener("updatefromsandbox",m=>{this.showElementAndHideCanvas(m.target);const f={value(x){p.userValue=x.detail.value??"",t.setValue(i,{value:p.userValue.toString()}),x.target.value=p.userValue},formattedValue(x){const{formattedValue:y}=x.detail;p.formattedValue=y,y!=null&&x.target!==document.activeElement&&(x.target.value=y),t.setValue(i,{formattedValue:y})},selRange(x){x.target.setSelectionRange(...x.detail.selRange)},charLimit:x=>{const{charLimit:y}=x.detail,{target:w}=x;if(y===0){w.removeAttribute("maxLength");return}w.setAttribute("maxLength",y);let b=p.userValue;!b||b.length<=y||(b=b.slice(0,y),w.value=p.userValue=b,t.setValue(i,{value:b}),this.linkService.eventBus?.dispatch("dispatcheventinsandbox",{source:this,detail:{id:i,name:"Keystroke",value:b,willCommit:!0,commitKey:1,selStart:w.selectionStart,selEnd:w.selectionEnd}}))}};this._dispatchEventFromSandbox(f,m)}),n.addEventListener("keydown",m=>{p.commitKey=1;let f=-1;if(m.key==="Escape"?f=0:m.key==="Enter"&&!this.data.multiLine?f=2:m.key==="Tab"&&(p.commitKey=3),f===-1)return;const{value:x}=m.target;p.lastCommittedValue!==x&&(p.lastCommittedValue=x,p.userValue=x,this.linkService.eventBus?.dispatch("dispatcheventinsandbox",{source:this,detail:{id:i,name:"Keystroke",value:x,willCommit:!0,commitKey:f,selStart:m.target.selectionStart,selEnd:m.target.selectionEnd}}))});const h=u;u=null,n.addEventListener("blur",m=>{if(!p.focused||!m.relatedTarget)return;this.data.actions?.Blur||(p.focused=!1);const{value:f}=m.target;p.userValue=f,p.lastCommittedValue!==f&&this.linkService.eventBus?.dispatch("dispatcheventinsandbox",{source:this,detail:{id:i,name:"Keystroke",value:f,willCommit:!0,commitKey:p.commitKey,selStart:m.target.selectionStart,selEnd:m.target.selectionEnd}}),h(m)}),this.data.actions?.Keystroke&&n.addEventListener("beforeinput",m=>{p.lastCommittedValue=null;const{data:f,target:x}=m,{value:y,selectionStart:w,selectionEnd:b}=x;let C=w,k=b;switch(m.inputType){case"deleteWordBackward":{const E=y.substring(0,w).match(/\w*[^\w]*$/);E&&(C-=E[0].length);break}case"deleteWordForward":{const E=y.substring(w).match(/^[^\w]*\w*/);E&&(k+=E[0].length);break}case"deleteContentBackward":w===b&&(C-=1);break;case"deleteContentForward":w===b&&(k+=1);break}m.preventDefault(),this.linkService.eventBus?.dispatch("dispatcheventinsandbox",{source:this,detail:{id:i,name:"Keystroke",value:y,change:f||"",willCommit:!1,selStart:C,selEnd:k}})}),this._setEventListeners(n,p,[["focus","Focus"],["blur","Blur"],["mousedown","Mouse Down"],["mouseenter","Mouse Enter"],["mouseleave","Mouse Exit"],["mouseup","Mouse Up"]],m=>m.target.value)}if(u&&n.addEventListener("blur",u),this.data.comb){const m=(this.data.rect[2]-this.data.rect[0])/d;n.classList.add("comb"),n.style.letterSpacing=`calc(${m}px * var(--scale-factor) - 1ch)`}}else n=document.createElement("div"),n.textContent=this.data.fieldValue,n.style.verticalAlign="middle",n.style.display="table-cell",this.data.hasOwnCanvas&&(n.hidden=!0);return this._setTextStyle(n),this._setBackgroundColor(n),this._setDefaultPropertiesFromJS(n),this.container.append(n),this.container}}class qkt extends q4{constructor(t){super(t,{isRenderable:!!t.data.hasOwnCanvas})}}class Zkt extends q4{constructor(t){super(t,{isRenderable:t.renderForms})}render(){const t=this.annotationStorage,i=this.data,n=i.id;let a=t.getValue(n,{value:i.exportValue===i.fieldValue}).value;typeof a=="string"&&(a=a!=="Off",t.setValue(n,{value:a})),this.container.classList.add("buttonWidgetAnnotation","checkBox");const l=document.createElement("input");return E4.add(l),l.setAttribute("data-element-id",n),l.disabled=i.readOnly,this._setRequired(l,this.data.required),l.type="checkbox",l.name=i.fieldName,a&&l.setAttribute("checked",!0),l.setAttribute("exportValue",i.exportValue),l.tabIndex=xb,l.addEventListener("change",d=>{const{name:c,checked:p}=d.target;for(const u of this._getElementsByName(c,n)){const h=p&&u.exportValue===i.exportValue;u.domElement&&(u.domElement.checked=h),t.setValue(u.id,{value:h})}t.setValue(n,{value:p})}),l.addEventListener("resetform",d=>{const c=i.defaultFieldValue||"Off";d.target.checked=c===i.exportValue}),this.enableScripting&&this.hasJSActions&&(l.addEventListener("updatefromsandbox",d=>{const c={value(p){p.target.checked=p.detail.value!=="Off",t.setValue(n,{value:p.target.checked})}};this._dispatchEventFromSandbox(c,d)}),this._setEventListeners(l,null,[["change","Validate"],["change","Action"],["focus","Focus"],["blur","Blur"],["mousedown","Mouse Down"],["mouseenter","Mouse Enter"],["mouseleave","Mouse Exit"],["mouseup","Mouse Up"]],d=>d.target.checked)),this._setBackgroundColor(l),this._setDefaultPropertiesFromJS(l),this.container.append(l),this.container}}class rMe extends q4{constructor(t){super(t,{isRenderable:t.renderForms})}render(){this.container.classList.add("buttonWidgetAnnotation","radioButton");const t=this.annotationStorage,i=this.data,n=i.id;let a=t.getValue(n,{value:i.fieldValue===i.buttonValue}).value;if(typeof a=="string"&&(a=a!==i.buttonValue,t.setValue(n,{value:a})),a)for(const d of this._getElementsByName(i.fieldName,n))t.setValue(d.id,{value:!1});const l=document.createElement("input");if(E4.add(l),l.setAttribute("data-element-id",n),l.disabled=i.readOnly,this._setRequired(l,this.data.required),l.type="radio",l.name=i.fieldName,a&&l.setAttribute("checked",!0),l.tabIndex=xb,l.addEventListener("change",d=>{const{name:c,checked:p}=d.target;for(const u of this._getElementsByName(c,n))t.setValue(u.id,{value:!1});t.setValue(n,{value:p})}),l.addEventListener("resetform",d=>{const c=i.defaultFieldValue;d.target.checked=c!=null&&c===i.buttonValue}),this.enableScripting&&this.hasJSActions){const d=i.buttonValue;l.addEventListener("updatefromsandbox",c=>{const p={value:u=>{const h=d===u.detail.value;for(const m of this._getElementsByName(u.target.name)){const f=h&&m.id===n;m.domElement&&(m.domElement.checked=f),t.setValue(m.id,{value:f})}}};this._dispatchEventFromSandbox(p,c)}),this._setEventListeners(l,null,[["change","Validate"],["change","Action"],["focus","Focus"],["blur","Blur"],["mousedown","Mouse Down"],["mouseenter","Mouse Enter"],["mouseleave","Mouse Exit"],["mouseup","Mouse Up"]],c=>c.target.checked)}return this._setBackgroundColor(l),this._setDefaultPropertiesFromJS(l),this.container.append(l),this.container}}class Jkt extends iMe{constructor(t){super(t,{ignoreBorder:t.data.hasAppearance})}render(){const t=super.render();t.classList.add("buttonWidgetAnnotation","pushButton");const i=t.lastChild;return this.enableScripting&&this.hasJSActions&&i&&(this._setDefaultPropertiesFromJS(i),i.addEventListener("updatefromsandbox",n=>{this._dispatchEventFromSandbox({},n)})),t}}class Xkt extends q4{constructor(t){super(t,{isRenderable:t.renderForms})}render(){this.container.classList.add("choiceWidgetAnnotation");const t=this.annotationStorage,i=this.data.id,n=t.getValue(i,{value:this.data.fieldValue}),a=document.createElement("select");E4.add(a),a.setAttribute("data-element-id",i),a.disabled=this.data.readOnly,this._setRequired(a,this.data.required),a.name=this.data.fieldName,a.tabIndex=xb;let l=this.data.combo&&this.data.options.length>0;this.data.combo||(a.size=this.data.options.length,this.data.multiSelect&&(a.multiple=!0)),a.addEventListener("resetform",h=>{const m=this.data.defaultFieldValue;for(const f of a.options)f.selected=f.value===m});for(const h of this.data.options){const m=document.createElement("option");m.textContent=h.displayValue,m.value=h.exportValue,n.value.includes(h.exportValue)&&(m.setAttribute("selected",!0),l=!1),a.append(m)}let d=null;if(l){const h=document.createElement("option");h.value=" ",h.setAttribute("hidden",!0),h.setAttribute("selected",!0),a.prepend(h),d=()=>{h.remove(),a.removeEventListener("input",d),d=null},a.addEventListener("input",d)}const c=h=>{const m=h?"value":"textContent",{options:f,multiple:x}=a;return x?Array.prototype.filter.call(f,y=>y.selected).map(y=>y[m]):f.selectedIndex===-1?null:f[f.selectedIndex][m]};let p=c(!1);const u=h=>{const m=h.target.options;return Array.prototype.map.call(m,f=>({displayValue:f.textContent,exportValue:f.value}))};return this.enableScripting&&this.hasJSActions?(a.addEventListener("updatefromsandbox",h=>{const m={value(f){d?.();const x=f.detail.value,y=new Set(Array.isArray(x)?x:[x]);for(const w of a.options)w.selected=y.has(w.value);t.setValue(i,{value:c(!0)}),p=c(!1)},multipleSelection(f){a.multiple=!0},remove(f){const x=a.options,y=f.detail.remove;x[y].selected=!1,a.remove(y),x.length>0&&Array.prototype.findIndex.call(x,b=>b.selected)===-1&&(x[0].selected=!0),t.setValue(i,{value:c(!0),items:u(f)}),p=c(!1)},clear(f){for(;a.length!==0;)a.remove(0);t.setValue(i,{value:null,items:[]}),p=c(!1)},insert(f){const{index:x,displayValue:y,exportValue:w}=f.detail.insert,b=a.children[x],C=document.createElement("option");C.textContent=y,C.value=w,b?b.before(C):a.append(C),t.setValue(i,{value:c(!0),items:u(f)}),p=c(!1)},items(f){const{items:x}=f.detail;for(;a.length!==0;)a.remove(0);for(const y of x){const{displayValue:w,exportValue:b}=y,C=document.createElement("option");C.textContent=w,C.value=b,a.append(C)}a.options.length>0&&(a.options[0].selected=!0),t.setValue(i,{value:c(!0),items:u(f)}),p=c(!1)},indices(f){const x=new Set(f.detail.indices);for(const y of f.target.options)y.selected=x.has(y.index);t.setValue(i,{value:c(!0)}),p=c(!1)},editable(f){f.target.disabled=!f.detail.editable}};this._dispatchEventFromSandbox(m,h)}),a.addEventListener("input",h=>{const m=c(!0),f=c(!1);t.setValue(i,{value:m}),h.preventDefault(),this.linkService.eventBus?.dispatch("dispatcheventinsandbox",{source:this,detail:{id:i,name:"Keystroke",value:p,change:f,changeEx:m,willCommit:!1,commitKey:1,keyDown:!1}})}),this._setEventListeners(a,null,[["focus","Focus"],["blur","Blur"],["mousedown","Mouse Down"],["mouseenter","Mouse Enter"],["mouseleave","Mouse Exit"],["mouseup","Mouse Up"],["input","Action"],["input","Validate"]],h=>h.target.value)):a.addEventListener("input",function(h){t.setValue(i,{value:c(!0)})}),this.data.combo&&this._setTextStyle(a),this._setBackgroundColor(a),this._setDefaultPropertiesFromJS(a),this.container.append(a),this.container}}class yU extends Vn{constructor(t){const{data:i,elements:n}=t;super(t,{isRenderable:Vn._hasPopupData(i)}),this.elements=n,this.popup=null}render(){this.container.classList.add("popupAnnotation");const t=this.popup=new eSt({container:this.container,color:this.data.color,titleObj:this.data.titleObj,modificationDate:this.data.modificationDate,contentsObj:this.data.contentsObj,richText:this.data.richText,rect:this.data.rect,parentRect:this.data.parentRect||null,parent:this.parent,elements:this.elements,open:this.data.open}),i=[];for(const n of this.elements)n.popup=t,i.push(n.data.id),n.addHighlightArea();return this.container.setAttribute("aria-controls",i.map(n=>`${Oje}${n}`).join(",")),this.container}}class eSt{#e=this.#j.bind(this);#t=this.#C.bind(this);#o=this.#x.bind(this);#r=this.#b.bind(this);#s=null;#i=null;#n=null;#l=null;#c=null;#p=null;#h=null;#d=!1;#a=null;#m=null;#f=null;#u=null;#y=null;#g=null;#w=!1;constructor({container:t,color:i,elements:n,titleObj:a,modificationDate:l,contentsObj:d,richText:c,parent:p,rect:u,parentRect:h,open:m}){this.#i=t,this.#y=a,this.#n=d,this.#u=c,this.#p=p,this.#s=i,this.#f=u,this.#h=h,this.#c=n,this.#l=Vje.toDateObject(l),this.trigger=n.flatMap(f=>f.getElementsToTriggerPopup());for(const f of this.trigger)f.addEventListener("click",this.#r),f.addEventListener("mouseenter",this.#o),f.addEventListener("mouseleave",this.#t),f.classList.add("popupTriggerArea");for(const f of n)f.container?.addEventListener("keydown",this.#e);this.#i.hidden=!0,m&&this.#b()}render(){if(this.#a)return;const t=this.#a=document.createElement("div");if(t.className="popup",this.#s){const l=t.style.outlineColor=ko.makeHexColor(...this.#s);CSS.supports("background-color","color-mix(in srgb, red 30%, white)")?t.style.backgroundColor=`color-mix(in srgb, ${l} 30%, white)`:t.style.backgroundColor=ko.makeHexColor(...this.#s.map(c=>Math.floor(.7*(255-c)+c)))}const i=document.createElement("span");i.className="header";const n=document.createElement("h1");if(i.append(n),{dir:n.dir,str:n.textContent}=this.#y,t.append(i),this.#l){const l=document.createElement("span");l.classList.add("popupDate"),l.setAttribute("data-l10n-id","pdfjs-annotation-date-string"),l.setAttribute("data-l10n-args",JSON.stringify({date:this.#l.toLocaleDateString(),time:this.#l.toLocaleTimeString()})),i.append(l)}const a=this.#v;if(a)oMe.render({xfaHtml:a,intent:"richText",div:t}),t.lastChild.classList.add("richText","popupContent");else{const l=this._formatContents(this.#n);t.append(l)}this.#i.append(t)}get#v(){const t=this.#u,i=this.#n;return t?.str&&(!i?.str||i.str===t.str)&&this.#u.html||null}get#A(){return this.#v?.attributes?.style?.fontSize||0}get#k(){return this.#v?.attributes?.style?.color||null}#S(t){const i=[],n={str:t,html:{name:"div",attributes:{dir:"auto"},children:[{name:"p",children:i}]}},a={style:{color:this.#k,fontSize:this.#A?`calc(${this.#A}px * var(--scale-factor))`:""}};for(const l of t.split(`
|
|
90
90
|
`))i.push({name:"span",value:l,attributes:a});return n}_formatContents({str:t,dir:i}){const n=document.createElement("p");n.classList.add("popupContent"),n.dir=i;const a=t.split(/(?:\r\n?|\n)/);for(let l=0,d=a.length;l<d;++l){const c=a[l];n.append(document.createTextNode(c)),l<d-1&&n.append(document.createElement("br"))}return n}#j(t){t.altKey||t.shiftKey||t.ctrlKey||t.metaKey||(t.key==="Enter"||t.key==="Escape"&&this.#d)&&this.#b()}updateEdited({rect:t,popupContent:i}){this.#g||={contentsObj:this.#n,richText:this.#u},t&&(this.#m=null),i&&(this.#u=this.#S(i),this.#n=null),this.#a?.remove(),this.#a=null}resetEdited(){this.#g&&({contentsObj:this.#n,richText:this.#u}=this.#g,this.#g=null,this.#a?.remove(),this.#a=null,this.#m=null)}#$(){if(this.#m!==null)return;const{page:{view:t},viewport:{rawDims:{pageWidth:i,pageHeight:n,pageX:a,pageY:l}}}=this.#p;let d=!!this.#h,c=d?this.#h:this.#f;for(const y of this.#c)if(!c||ko.intersect(y.data.rect,c)!==null){c=y.data.rect,d=!0;break}const p=ko.normalizeRect([c[0],t[3]-c[1]+t[1],c[2],t[3]-c[3]+t[1]]),h=d?c[2]-c[0]+5:0,m=p[0]+h,f=p[1];this.#m=[100*(m-a)/i,100*(f-l)/n];const{style:x}=this.#i;x.left=`${this.#m[0]}%`,x.top=`${this.#m[1]}%`}#b(){this.#d=!this.#d,this.#d?(this.#x(),this.#i.addEventListener("click",this.#r),this.#i.addEventListener("keydown",this.#e)):(this.#C(),this.#i.removeEventListener("click",this.#r),this.#i.removeEventListener("keydown",this.#e))}#x(){this.#a||this.render(),this.isVisible?this.#d&&this.#i.classList.add("focused"):(this.#$(),this.#i.hidden=!1,this.#i.style.zIndex=parseInt(this.#i.style.zIndex)+1e3)}#C(){this.#i.classList.remove("focused"),!(this.#d||!this.isVisible)&&(this.#i.hidden=!0,this.#i.style.zIndex=parseInt(this.#i.style.zIndex)-1e3)}forceHide(){this.#w=this.isVisible,this.#w&&(this.#i.hidden=!0)}maybeShow(){this.#w&&(this.#a||this.#x(),this.#w=!1,this.#i.hidden=!1)}get isVisible(){return this.#i.hidden===!1}}class nMe extends Vn{constructor(t){super(t,{isRenderable:!0,ignoreBorder:!0}),this.textContent=t.data.textContent,this.textPosition=t.data.textPosition,this.annotationEditorType=qi.FREETEXT}render(){if(this.container.classList.add("freeTextAnnotation"),this.textContent){const t=document.createElement("div");t.classList.add("annotationTextContent"),t.setAttribute("role","comment");for(const i of this.textContent){const n=document.createElement("span");n.textContent=i,t.append(n)}this.container.append(t)}return!this.data.popupRef&&this.hasPopupData&&this._createPopup(),this._editOnDoubleClick(),this.container}get _isEditable(){return this.data.hasOwnCanvas}}class tSt extends Vn{#e=null;constructor(t){super(t,{isRenderable:!0,ignoreBorder:!0})}render(){this.container.classList.add("lineAnnotation");const t=this.data,{width:i,height:n}=f2(t.rect),a=this.svgFactory.create(i,n,!0),l=this.#e=this.svgFactory.createElement("svg:line");return l.setAttribute("x1",t.rect[2]-t.lineCoordinates[0]),l.setAttribute("y1",t.rect[3]-t.lineCoordinates[1]),l.setAttribute("x2",t.rect[2]-t.lineCoordinates[2]),l.setAttribute("y2",t.rect[3]-t.lineCoordinates[3]),l.setAttribute("stroke-width",t.borderStyle.width||1),l.setAttribute("stroke","transparent"),l.setAttribute("fill","transparent"),a.append(l),this.container.append(a),!t.popupRef&&this.hasPopupData&&this._createPopup(),this.container}getElementsToTriggerPopup(){return this.#e}addHighlightArea(){this.container.classList.add("highlightArea")}}class oSt extends Vn{#e=null;constructor(t){super(t,{isRenderable:!0,ignoreBorder:!0})}render(){this.container.classList.add("squareAnnotation");const t=this.data,{width:i,height:n}=f2(t.rect),a=this.svgFactory.create(i,n,!0),l=t.borderStyle.width,d=this.#e=this.svgFactory.createElement("svg:rect");return d.setAttribute("x",l/2),d.setAttribute("y",l/2),d.setAttribute("width",i-l),d.setAttribute("height",n-l),d.setAttribute("stroke-width",l||1),d.setAttribute("stroke","transparent"),d.setAttribute("fill","transparent"),a.append(d),this.container.append(a),!t.popupRef&&this.hasPopupData&&this._createPopup(),this.container}getElementsToTriggerPopup(){return this.#e}addHighlightArea(){this.container.classList.add("highlightArea")}}class iSt extends Vn{#e=null;constructor(t){super(t,{isRenderable:!0,ignoreBorder:!0})}render(){this.container.classList.add("circleAnnotation");const t=this.data,{width:i,height:n}=f2(t.rect),a=this.svgFactory.create(i,n,!0),l=t.borderStyle.width,d=this.#e=this.svgFactory.createElement("svg:ellipse");return d.setAttribute("cx",i/2),d.setAttribute("cy",n/2),d.setAttribute("rx",i/2-l/2),d.setAttribute("ry",n/2-l/2),d.setAttribute("stroke-width",l||1),d.setAttribute("stroke","transparent"),d.setAttribute("fill","transparent"),a.append(d),this.container.append(a),!t.popupRef&&this.hasPopupData&&this._createPopup(),this.container}getElementsToTriggerPopup(){return this.#e}addHighlightArea(){this.container.classList.add("highlightArea")}}class aMe extends Vn{#e=null;constructor(t){super(t,{isRenderable:!0,ignoreBorder:!0}),this.containerClassName="polylineAnnotation",this.svgElementName="svg:polyline"}render(){this.container.classList.add(this.containerClassName);const{data:{rect:t,vertices:i,borderStyle:n,popupRef:a}}=this;if(!i)return this.container;const{width:l,height:d}=f2(t),c=this.svgFactory.create(l,d,!0);let p=[];for(let h=0,m=i.length;h<m;h+=2){const f=i[h]-t[0],x=t[3]-i[h+1];p.push(`${f},${x}`)}p=p.join(" ");const u=this.#e=this.svgFactory.createElement(this.svgElementName);return u.setAttribute("points",p),u.setAttribute("stroke-width",n.width||1),u.setAttribute("stroke","transparent"),u.setAttribute("fill","transparent"),c.append(u),this.container.append(c),!a&&this.hasPopupData&&this._createPopup(),this.container}getElementsToTriggerPopup(){return this.#e}addHighlightArea(){this.container.classList.add("highlightArea")}}class rSt extends aMe{constructor(t){super(t),this.containerClassName="polygonAnnotation",this.svgElementName="svg:polygon"}}class nSt extends Vn{constructor(t){super(t,{isRenderable:!0,ignoreBorder:!0})}render(){return this.container.classList.add("caretAnnotation"),!this.data.popupRef&&this.hasPopupData&&this._createPopup(),this.container}}class sMe extends Vn{#e=[];constructor(t){super(t,{isRenderable:!0,ignoreBorder:!0}),this.containerClassName="inkAnnotation",this.svgElementName="svg:polyline",this.annotationEditorType=qi.INK}render(){this.container.classList.add(this.containerClassName);const{data:{rect:t,inkLists:i,borderStyle:n,popupRef:a}}=this,{width:l,height:d}=f2(t),c=this.svgFactory.create(l,d,!0);for(const p of i){let u=[];for(let m=0,f=p.length;m<f;m+=2){const x=p[m]-t[0],y=t[3]-p[m+1];u.push(`${x},${y}`)}u=u.join(" ");const h=this.svgFactory.createElement(this.svgElementName);this.#e.push(h),h.setAttribute("points",u),h.setAttribute("stroke-width",n.width||1),h.setAttribute("stroke","transparent"),h.setAttribute("fill","transparent"),!a&&this.hasPopupData&&this._createPopup(),c.append(h)}return this.container.append(c),this.container}getElementsToTriggerPopup(){return this.#e}addHighlightArea(){this.container.classList.add("highlightArea")}}class aSt extends Vn{constructor(t){super(t,{isRenderable:!0,ignoreBorder:!0,createQuadrilaterals:!0})}render(){return!this.data.popupRef&&this.hasPopupData&&this._createPopup(),this.container.classList.add("highlightAnnotation"),this.container}}class sSt extends Vn{constructor(t){super(t,{isRenderable:!0,ignoreBorder:!0,createQuadrilaterals:!0})}render(){return!this.data.popupRef&&this.hasPopupData&&this._createPopup(),this.container.classList.add("underlineAnnotation"),this.container}}class lSt extends Vn{constructor(t){super(t,{isRenderable:!0,ignoreBorder:!0,createQuadrilaterals:!0})}render(){return!this.data.popupRef&&this.hasPopupData&&this._createPopup(),this.container.classList.add("squigglyAnnotation"),this.container}}class dSt extends Vn{constructor(t){super(t,{isRenderable:!0,ignoreBorder:!0,createQuadrilaterals:!0})}render(){return!this.data.popupRef&&this.hasPopupData&&this._createPopup(),this.container.classList.add("strikeoutAnnotation"),this.container}}class lMe extends Vn{constructor(t){super(t,{isRenderable:!0,ignoreBorder:!0})}render(){return this.container.classList.add("stampAnnotation"),!this.data.popupRef&&this.hasPopupData&&this._createPopup(),this.container}}class cSt extends Vn{#e=null;constructor(t){super(t,{isRenderable:!0});const{file:i}=this.data;this.filename=i.filename,this.content=i.content,this.linkService.eventBus?.dispatch("fileattachmentannotation",{source:this,...i})}render(){this.container.classList.add("fileAttachmentAnnotation");const{container:t,data:i}=this;let n;i.hasAppearance||i.fillAlpha===0?n=document.createElement("div"):(n=document.createElement("img"),n.src=`${this.imageResourcesPath}annotation-${/paperclip/i.test(i.name)?"paperclip":"pushpin"}.svg`,i.fillAlpha&&i.fillAlpha<1&&(n.style=`filter: opacity(${Math.round(i.fillAlpha*100)}%);`)),n.addEventListener("dblclick",this.#t.bind(this)),this.#e=n;const{isMac:a}=Ql.platform;return t.addEventListener("keydown",l=>{l.key==="Enter"&&(a?l.metaKey:l.ctrlKey)&&this.#t()}),!i.popupRef&&this.hasPopupData?this._createPopup():n.classList.add("popupTriggerArea"),t.append(n),t}getElementsToTriggerPopup(){return this.#e}addHighlightArea(){this.container.classList.add("highlightArea")}#t(){this.downloadManager?.openOrDownloadData(this.content,this.filename)}}let pSt=class{#e=null;#t=null;#o=new Map;constructor({div:t,accessibilityManager:i,annotationCanvasMap:n,annotationEditorUIManager:a,page:l,viewport:d}){this.div=t,this.#e=i,this.#t=n,this.page=l,this.viewport=d,this.zIndex=0,this._annotationEditorUIManager=a}#r(t,i){const n=t.firstChild||t;n.id=`${Oje}${i}`,this.div.append(t),this.#e?.moveElementInDOM(this.div,t,n,!1)}async render(t){const{annotations:i}=t,n=this.div;S4(n,this.viewport);const a=new Map,l={data:null,layer:n,linkService:t.linkService,downloadManager:t.downloadManager,imageResourcesPath:t.imageResourcesPath||"",renderForms:t.renderForms!==!1,svgFactory:new DK,annotationStorage:t.annotationStorage||new HK,enableScripting:t.enableScripting===!0,hasJSActions:t.hasJSActions,fieldObjects:t.fieldObjects,parent:this,elements:null};for(const d of i){if(d.noHTML)continue;const c=d.annotationType===xa.POPUP;if(c){const h=a.get(d.id);if(!h)continue;l.elements=h}else{const{width:h,height:m}=f2(d.rect);if(h<=0||m<=0)continue}l.data=d;const p=Gkt.create(l);if(!p.isRenderable)continue;if(!c&&d.popupRef){const h=a.get(d.popupRef);h?h.push(p):a.set(d.popupRef,[p])}const u=p.render();d.hidden&&(u.style.visibility="hidden"),this.#r(u,d.id),p.annotationEditorType>0&&(this.#o.set(p.data.id,p),this._annotationEditorUIManager?.renderAnnotationElement(p))}this.#s()}update({viewport:t}){const i=this.div;this.viewport=t,S4(i,{rotation:t.rotation}),this.#s(),i.hidden=!1}#s(){if(!this.#t)return;const t=this.div;for(const[i,n]of this.#t){const a=t.querySelector(`[data-annotation-id="${i}"]`);if(!a)continue;n.className="annotationContent";const{firstChild:l}=a;l?l.nodeName==="CANVAS"?l.replaceWith(n):l.classList.contains("annotationContent")?l.after(n):l.before(n):a.append(n)}this.#t.clear()}getEditableAnnotations(){return Array.from(this.#o.values())}getEditableAnnotation(t){return this.#o.get(t)}};const cC=/\r\n?|\n/g;class wa extends si{#e=this.editorDivBlur.bind(this);#t=this.editorDivFocus.bind(this);#o=this.editorDivInput.bind(this);#r=this.editorDivKeydown.bind(this);#s=this.editorDivPaste.bind(this);#i;#n="";#l=`${this.id}-editor`;#c;#p=null;static _freeTextDefaultContent="";static _internalPadding=0;static _defaultColor=null;static _defaultFontSize=10;static get _keyboardManager(){const t=wa.prototype,i=l=>l.isEmpty(),n=gm.TRANSLATE_SMALL,a=gm.TRANSLATE_BIG;return nr(this,"_keyboardManager",new gb([[["ctrl+s","mac+meta+s","ctrl+p","mac+meta+p"],t.commitOrRemove,{bubbles:!0}],[["ctrl+Enter","mac+meta+Enter","Escape","mac+Escape"],t.commitOrRemove],[["ArrowLeft","mac+ArrowLeft"],t._translateEmpty,{args:[-n,0],checker:i}],[["ctrl+ArrowLeft","mac+shift+ArrowLeft"],t._translateEmpty,{args:[-a,0],checker:i}],[["ArrowRight","mac+ArrowRight"],t._translateEmpty,{args:[n,0],checker:i}],[["ctrl+ArrowRight","mac+shift+ArrowRight"],t._translateEmpty,{args:[a,0],checker:i}],[["ArrowUp","mac+ArrowUp"],t._translateEmpty,{args:[0,-n],checker:i}],[["ctrl+ArrowUp","mac+shift+ArrowUp"],t._translateEmpty,{args:[0,-a],checker:i}],[["ArrowDown","mac+ArrowDown"],t._translateEmpty,{args:[0,n],checker:i}],[["ctrl+ArrowDown","mac+shift+ArrowDown"],t._translateEmpty,{args:[0,a],checker:i}]]))}static _type="freetext";static _editorType=qi.FREETEXT;constructor(t){super({...t,name:"freeTextEditor"}),this.#i=t.color||wa._defaultColor||si._defaultLineColor,this.#c=t.fontSize||wa._defaultFontSize}static initialize(t,i){si.initialize(t,i,{strings:["pdfjs-free-text-default-content"]});const n=getComputedStyle(document.documentElement);this._internalPadding=parseFloat(n.getPropertyValue("--freetext-padding"))}static updateDefaultParams(t,i){switch(t){case di.FREETEXT_SIZE:wa._defaultFontSize=i;break;case di.FREETEXT_COLOR:wa._defaultColor=i;break}}updateParams(t,i){switch(t){case di.FREETEXT_SIZE:this.#h(i);break;case di.FREETEXT_COLOR:this.#d(i);break}}static get defaultPropertiesToUpdate(){return[[di.FREETEXT_SIZE,wa._defaultFontSize],[di.FREETEXT_COLOR,wa._defaultColor||si._defaultLineColor]]}get propertiesToUpdate(){return[[di.FREETEXT_SIZE,this.#c],[di.FREETEXT_COLOR,this.#i]]}#h(t){const i=a=>{this.editorDiv.style.fontSize=`calc(${a}px * var(--scale-factor))`,this.translate(0,-(a-this.#c)*this.parentScale),this.#c=a,this.#m()},n=this.#c;this.addCommands({cmd:i.bind(this,t),undo:i.bind(this,n),post:this._uiManager.updateUI.bind(this._uiManager,this),mustExec:!0,type:di.FREETEXT_SIZE,overwriteIfSameType:!0,keepUndo:!0})}#d(t){const i=a=>{this.#i=this.editorDiv.style.color=a},n=this.#i;this.addCommands({cmd:i.bind(this,t),undo:i.bind(this,n),post:this._uiManager.updateUI.bind(this._uiManager,this),mustExec:!0,type:di.FREETEXT_COLOR,overwriteIfSameType:!0,keepUndo:!0})}_translateEmpty(t,i){this._uiManager.translateSelectedEditors(t,i,!0)}getInitialTranslation(){const t=this.parentScale;return[-wa._internalPadding*t,-(wa._internalPadding+this.#c)*t]}rebuild(){this.parent&&(super.rebuild(),this.div!==null&&(this.isAttachedToDOM||this.parent.add(this)))}enableEditMode(){if(this.isInEditMode())return;this.parent.setEditingState(!1),this.parent.updateToolbar(qi.FREETEXT),super.enableEditMode(),this.overlayDiv.classList.remove("enabled"),this.editorDiv.contentEditable=!0,this._isDraggable=!1,this.div.removeAttribute("aria-activedescendant");const t=this._uiManager._signal;this.editorDiv.addEventListener("keydown",this.#r,{signal:t}),this.editorDiv.addEventListener("focus",this.#t,{signal:t}),this.editorDiv.addEventListener("blur",this.#e,{signal:t}),this.editorDiv.addEventListener("input",this.#o,{signal:t}),this.editorDiv.addEventListener("paste",this.#s,{signal:t})}disableEditMode(){this.isInEditMode()&&(this.parent.setEditingState(!0),super.disableEditMode(),this.overlayDiv.classList.add("enabled"),this.editorDiv.contentEditable=!1,this.div.setAttribute("aria-activedescendant",this.#l),this._isDraggable=!0,this.editorDiv.removeEventListener("keydown",this.#r),this.editorDiv.removeEventListener("focus",this.#t),this.editorDiv.removeEventListener("blur",this.#e),this.editorDiv.removeEventListener("input",this.#o),this.editorDiv.removeEventListener("paste",this.#s),this.div.focus({preventScroll:!0}),this.isEditing=!1,this.parent.div.classList.add("freetextEditing"))}focusin(t){this._focusEventsAllowed&&(super.focusin(t),t.target!==this.editorDiv&&this.editorDiv.focus())}onceAdded(){this.width||(this.enableEditMode(),this.editorDiv.focus(),this._initialOptions?.isCentered&&this.center(),this._initialOptions=null)}isEmpty(){return!this.editorDiv||this.editorDiv.innerText.trim()===""}remove(){this.isEditing=!1,this.parent&&(this.parent.setEditingState(!0),this.parent.div.classList.add("freetextEditing")),super.remove()}#a(){const t=[];this.editorDiv.normalize();for(const i of this.editorDiv.childNodes)t.push(wa.#f(i));return t.join(`
|
|
91
91
|
`)}#m(){const[t,i]=this.parentDimensions;let n;if(this.isAttachedToDOM)n=this.div.getBoundingClientRect();else{const{currentLayer:a,div:l}=this,d=l.style.display,c=l.classList.contains("hidden");l.classList.remove("hidden"),l.style.display="hidden",a.div.append(this.div),n=l.getBoundingClientRect(),l.remove(),l.style.display=d,l.classList.toggle("hidden",c)}this.rotation%180===this.parentRotation%180?(this.width=n.width/t,this.height=n.height/i):(this.width=n.height/t,this.height=n.width/i),this.fixAndSetPosition()}commit(){if(!this.isInEditMode())return;super.commit(),this.disableEditMode();const t=this.#n,i=this.#n=this.#a().trimEnd();if(t===i)return;const n=a=>{if(this.#n=a,!a){this.remove();return}this.#u(),this._uiManager.rebuild(this),this.#m()};this.addCommands({cmd:()=>{n(i)},undo:()=>{n(t)},mustExec:!1}),this.#m()}shouldGetKeyboardEvents(){return this.isInEditMode()}enterInEditMode(){this.enableEditMode(),this.editorDiv.focus()}dblclick(t){this.enterInEditMode()}keydown(t){t.target===this.div&&t.key==="Enter"&&(this.enterInEditMode(),t.preventDefault())}editorDivKeydown(t){wa._keyboardManager.exec(this,t)}editorDivFocus(t){this.isEditing=!0}editorDivBlur(t){this.isEditing=!1}editorDivInput(t){this.parent.div.classList.toggle("freetextEditing",this.isEmpty())}disableEditing(){this.editorDiv.setAttribute("role","comment"),this.editorDiv.removeAttribute("aria-multiline")}enableEditing(){this.editorDiv.setAttribute("role","textbox"),this.editorDiv.setAttribute("aria-multiline",!0)}render(){if(this.div)return this.div;let t,i;this.width&&(t=this.x,i=this.y),super.render(),this.editorDiv=document.createElement("div"),this.editorDiv.className="internal",this.editorDiv.setAttribute("id",this.#l),this.editorDiv.setAttribute("data-l10n-id","pdfjs-free-text"),this.enableEditing(),si._l10nPromise.get("pdfjs-free-text-default-content").then(a=>this.editorDiv?.setAttribute("default-content",a)),this.editorDiv.contentEditable=!0;const{style:n}=this.editorDiv;if(n.fontSize=`calc(${this.#c}px * var(--scale-factor))`,n.color=this.#i,this.div.append(this.editorDiv),this.overlayDiv=document.createElement("div"),this.overlayDiv.classList.add("overlay","enabled"),this.div.append(this.overlayDiv),pS(this,this.div,["dblclick","keydown"]),this.width){const[a,l]=this.parentDimensions;if(this.annotationElementId){const{position:d}=this.#p;let[c,p]=this.getInitialTranslation();[c,p]=this.pageTranslationToScreen(c,p);const[u,h]=this.pageDimensions,[m,f]=this.pageTranslation;let x,y;switch(this.rotation){case 0:x=t+(d[0]-m)/u,y=i+this.height-(d[1]-f)/h;break;case 90:x=t+(d[0]-m)/u,y=i-(d[1]-f)/h,[c,p]=[p,-c];break;case 180:x=t-this.width+(d[0]-m)/u,y=i-(d[1]-f)/h,[c,p]=[-c,-p];break;case 270:x=t+(d[0]-m-this.height*h)/u,y=i+(d[1]-f-this.width*u)/h,[c,p]=[-p,c];break}this.setAt(x*a,y*l,c,p)}else this.setAt(t*a,i*l,this.width*a,this.height*l);this.#u(),this._isDraggable=!0,this.editorDiv.contentEditable=!1}else this._isDraggable=!1,this.editorDiv.contentEditable=!0;return this.div}static#f(t){return(t.nodeType===Node.TEXT_NODE?t.nodeValue:t.innerText).replaceAll(cC,"")}editorDivPaste(t){const i=t.clipboardData||window.clipboardData,{types:n}=i;if(n.length===1&&n[0]==="text/plain")return;t.preventDefault();const a=wa.#g(i.getData("text")||"").replaceAll(cC,`
|
|
@@ -231,7 +231,7 @@ Please take immediate action to update your billing information.`,finalNoticeTem
|
|
|
231
231
|
|
|
232
232
|
Your account has been suspended due to non-payment of {{amount}}. All services have been paused.
|
|
233
233
|
|
|
234
|
-
To reactivate your account, please settle the outstanding balance. Contact support if you need assistance.`,accountSuspensionTemplateName:"Account Suspension",accountSuspensionEmailSubject:"Your account has been suspended due to non-payment",onOptionLabel:"On",previewLineItemProfessionalServices:"Professional services — March",previewLineItemOnboardingSetup:"Onboarding & setup",logoInvalidImageTypeError:"Please choose a PNG, JPG, SVG, or WEBP image.",logoTooLargeError:"Logo must be 2 MB or smaller.",connectStripeDialogTitle:"Connect your Stripe account",connectStripeDialogDescription:"Paste the API keys from your Stripe account to start collecting payments. We use your secret key server-side and your publishable key for in-browser card capture.",secretKeyLabel:"Secret key",secretKeyPlaceholder:"sk_live_… or rk_live_…",publishableKeyLabel:"Publishable key",publishableKeyPlaceholder:"pk_live_…",webhookSigningSecretLabel:"Webhook signing secret",webhookSecretPlaceholder:"whsec_…",stripeWebhookUrlLabel:"Webhook endpoint",taxProviderLabel:"Tax Provider",taxProviderStripeTax:"Stripe Tax",stripeWebhookSetupDescription:"In your Stripe Dashboard, create a webhook event destination with these settings:",stripeWebhookAccountInstruction:"Event source: Your account",stripeWebhookPayloadInstruction:"Payload style: Snapshot",stripeWebhookEventsInstruction:"Events: All events",stripeWebhookUrlInstruction:"Paste the webhook endpoint shown below.",stripeWebhookSecretInstruction:"Create the destination, reveal its signing secret, and paste the whsec_… value into the Webhook signing secret field below.",quickbooksIntegrationDescription:"Read and write ledger of record. Invoices, expenses, GL, chart of accounts, journal entries.",stripeIntegrationDescription:"Payment processing — charges, refunds, payouts, disputes, MRR.",chargebeeIntegrationDescription:"Subscription analytics — MRR, ARR, churn, active subscriptions.",stripeConnectedHeading:"Stripe Connected",yourStripeAccountFallback:"Your Stripe account",stripeAccountCardTitle:"Stripe account",stripeAccountIdLabel:"Account ID",payoutBankLabel:"Payout bank account",defaultCurrencyLabel:"Default currency",payoutsEnabledLabel:"Payouts enabled",payoutsDisabledLabel:"Payouts disabled",stripePayoutNote:"Payouts are deposited to the bank account configured in your Stripe payout settings.",manageStripePayoutsLinkLabel:"Manage payouts in Stripe",disconnectingButtonLabel:"Disconnecting…",disconnectStripeButtonLabel:"Disconnect Stripe account",noPaymentDestinationHeading:"No payment destination connected",noPaymentDestinationHelper:"Connect a Stripe account to start collecting payments. Your payout account is where invoice payments will be deposited.",connectingButtonLabel:"Connecting…",connectStripeButtonLabel:"Connect Stripe Account",livePreviewLabel:"Live preview",defaultInvoicePrefix:"INV",previewInvoiceNumberSuffix:"-0001",companyNameLabel:"Company name",billingEmailLabel:"Billing email",taxIdEinLabel:"Tax ID / EIN",timezoneLabel:"Timezone",timezonePlaceholder:"America/Los_Angeles",businessAddressLabel:"Business address",brandingTitle:"Branding",uploadLogoLabel:"Upload logo",logoPreviewAlt:"Logo preview",currentLogoText:"Current logo",removeLogoAriaLabel:"Remove logo",logoFormatsHint:"PNG, JPG, SVG or WEBP · max 2 MB",pasteLogoUrlLabel:"Or paste your logo URL",logoUrlPlaceholder:"https://…/logo.png",accentColorLabel:"Accent color",othersTitle:"Others",invoicePrefixLabel:"Invoice prefix",dateFormatLabel:"Date format",netTermDaysLabel:"Net term days",paymentTermsLabel:"Payment terms",defaultMemoLabel:"Default memo",invoiceFooterTextHint:"Leave blank to hide the footer line.",invoiceFooterTextLabel:"Invoice footer text",showTaxIdOnInvoices:"Show tax ID on invoices",showServicePeriods:"Show service periods",dunningScheduleTitle:"Dunning Schedule",dunningScheduleSubtitle:"Configure the sequence of actions taken when a payment fails",stepColumnHeader:"Step #",stepColumnHelp:"The order in which each dunning reminder runs.",daysAfterDueColumnHeader:"Days After Due",daysAfterDueColumnHelp:"Days after the invoice due date before this step runs.",actionColumnHelp:"What happens at this step (e.g. email the customer).",emailTemplateColumnHeader:"Email Template",generalDunningSettingsTitle:"General Dunning Settings",autoCollectionLabel:"Auto collection",maxRetryAttemptsLabel:"Max retry attempts",retryIntervalDaysLabel:"Retry interval (days)",saveDunningSettingsButtonLabel:"Save Dunning Settings",emailTemplatesTitle:"Email Templates",emailTemplatesSubtitle:"Customize the emails sent at each dunning step",escalationCapsuleLabel:"Escalation",subjectLineLabel:"Subject line",bodyLabel:"Body",qboSettingsPageTitle:"QBO Configuration",qboEnableSyncLabel:"Enable QuickBooks sync",qboEnableSyncDescription:"Sync invoices, payments, credit notes, and customers to QuickBooks Online.",qboAccountMappingsSectionTitle:"Account Mappings",qboAccountMappingsSectionDescription:"Choose which QuickBooks accounts each invoicing amount posts to.",qboCustomerMatchingSectionTitle:"Customer Matching",qboCustomerMatchingSectionDescription:"Customers are matched to existing QuickBooks records by email first, then by company name. Customers imported with a QuickBooks ID keep their existing link.",qboCustomerMatchingLabel:"When a customer syncs",qboBehaviorSectionTitle:"Sync Behavior",qboAutoCreateItemsLabel:"Auto-create items",qboAutoCreateItemsDescription:"Create missing QuickBooks items automatically when invoices sync.",qboTrackingCategoriesLabel:"Tracking categories",qboTrackingCategoriesDescription:"Tag synced transactions with QuickBooks classes.",qboClosedPeriodVoidLabel:"Closed-period voids as credit memos",qboClosedPeriodVoidDescription:"Record voids that fall in a closed accounting period as credit memos instead.",qboBackfillSectionTitle:"History Backfill",qboSyncStartDateLabel:"Sync start date",qboBackfillButtonLabel:"Backfill history",qboBackfillingButtonLabel:"Backfilling…",qboBackfillHint:"Re-queue invoicing records created on or after the sync start date.",qboBackfillRequiresSyncHint:"Enable and save QuickBooks sync to run a backfill.",qboSyncHealthSectionTitle:"Sync Health",qboSyncHealthEmptyLabel:"No sync activity yet.",qboFailedTasksTitle:"Failed syncs",qboFailedTaskAttemptsLabel:"{attempts} attempts",qboSaveButtonLabel:"Save QuickBooks Settings"},invoicingSubscriptionDetail:{changeTermEndTitle:"Change term end",changeTermEndDateLabel:"New term end date",pauseSubscriptionDateLabel:"Resume date",pauseSubscriptionHint:"Leave blank to pause without a resume date.",cancelSubscriptionMessage:"Cancel this subscription immediately? Use “Set non-renewing” to cancel at end of term instead.",cancelCommentPlaceholder:"Add any extra context (optional)",everyUnit:"Every ${unit}",everyPeriodUnits:"Every ${period} ${unit}s",charge:"Charge",viewInvoices:"View Invoices",reactivate:"Reactivate",cadenceCurrencySubtitle:'${billingCadence(subscription)} · ${currency ?? "USD"}',billingCycle:"Billing Cycle",unitPrice:"Unit Price",couponNumber:"Coupon #",appliedUsed:"Applied/Used",subscriptionNotFound:"Subscription not found.",cancellation:"Cancellation",cancelledOn:"Cancelled on",trialStart:"Trial start",trialEnd:"Trial end",daysRemaining:"Days remaining",planItemPrice:"Plan Item Price",nextBilling:"Next billing",billingPeriod:"Billing period",dueInvoices:"Due invoices",totalDues:"Total dues",remainingCycles:"Remaining cycles",scheduledChanges:"Scheduled changes",setupFeeOneTime:"Setup fee (one-time)",startedDate:"Started Date",activationDate:"Activation Date",updatedDate:"Updated Date",dueSince:"Due Since",autoCollectionCount:"Auto Collection Count",subscriptionItems:"Subscription Items",noSubscriptionItems:"No subscription items.",noAddOns:"No add-ons.",noOneTimeCharges:"No one-time charges.",noCoupons:"No coupons.",contractTerm:"Contract Term",contractId:"Contract ID",active:"active",contractPeriod:"Contract Period",actionAtTermEnd:"Action at term end",renew:"renew",cancelBeforeNoticePeriod:"Cancel before notice period",totalContractValue:"Total contract value"},invoicingSubscriptionForm:{estimateTitle:"Review subscription cost",estimateLoading:"Calculating the estimate…",estimateInvoiceNowTitle:"Invoiced on this save",estimateNextInvoiceTitle:"Next invoice",estimateTermRange:"{start} – {end}",estimateEndsAfterThisTerm:"Ends after this term",estimateTaxUnavailable:"Unavailable",estimateStoreCredit:"Store credit",estimateCreditsMayChange:"Credits are today's balances and can change before the bill date.",estimateLineItemQuantity:"{quantity} × {unitAmount}",billingFrequencyHalfYearly:"Half-Yearly",selectCustomerValidation:"Select a customer for this subscription.",selectPlanValidation:"Select a plan for this subscription.",editSubscriptionTitle:"Edit Subscription",subscriptionDetailsDescription:"Add details to create a new subscription.",planQuantityLabel:"Quantity",billingCyclesPlaceholder:"Renews forever",billingCyclesHint:"Paid invoices including the first one. Leave blank to renew forever.",startDateAfterTrialEndValidation:"Trial end date must be later than the start date.",addonsDescription:"Recurring add-ons billed on the same cycle.",noAddonsAvailable:"No add-ons available",selectAddonsPlaceholder:"Select add-ons",oneTimeChargesDescription:"Billed once on the first invoice.",oneTimeChargesTitle:"One Time Charges",noChargesAvailable:"No charges available",selectOneTimeChargesPlaceholder:"Select one time charges",referencesSchedulesDescription:"Trial, PO and coupon details.",referencesSchedulesTitle:"References & Schedules",setupFeeLabel:"Setup Fee",trialEndDateLabel:"Trial End Date",noCouponPlaceholder:"No coupon",shippingAddressDescription:"Optional address for shippable plans.",shipCountryLabel:"Country (ISO)",shipZipLabel:"ZIP / Postal"},invoicingSubscriptionList:{perPrefix:"Per ",everyPrefix:"Every ",noSubscriptionsMatchSearch:"No subscriptions match your search.",noSubscriptionsYet:"No subscriptions yet.",emptyStateDescription:"Bring in your historical subscription data by importing your subscriptions csv file",emptyStateTitle:"No Subscriptions Yet",searchPlaceholder:"Search by customer or plan"},invoicingTransactionDetail:{capture:"Capture",viewInvoice:"View Invoice",viewSubscription:"View Subscription",viewCustomer:"View Customer",unusedAmount:"Unused Amount",capturableAmount:"Capturable Amount",applied:"Applied",transactionNotFound:"Transaction not found.",transactionTitlePrefix:"Transaction ",transactionDetails:"Transaction Details",settledAt:"Settled At",refundedTransaction:"Refunded Transaction",customerAndSubscription:"Customer & Subscription",paymentMethodAndGateway:"Payment Method & Gateway",paymentSourceId:"Payment Source ID",gatewayAccount:"Gateway Account",idAtGateway:"ID at Gateway",security:"Security",threeDSecure:"3-D Secure",fraudFlag:"Fraud Flag",none:"None",fraudReason:"Fraud Reason",errorDetails:"Error Details",errorCode:"Error Code",errorMessage:"Error Message",linkedInvoices:"Linked Invoices",noLinkedInvoices:"No linked invoices.",linkedCreditNotes:"Linked Credit Notes",noLinkedCreditNotes:"No linked credit notes.",noRefunds:"No refunds."}},Hpe={en:X$,"en-US":X$,"en-IN":X$};class ZK{getAppLocaleID(){return this.#e}getLocalizedStrings(){return Hpe[this.#e]}updateAppLocaleID(t){if(Hpe[t]==null)throw Error(`strings are not available in ${t}`);aGe(t),this.updateLibsLocale(t),this.#e=t,console.log(`Set the locale to ${this.#e}`)}currencyFormatter(t=0,i="standard"){switch(this.getAppLocaleID()){case"en-IN":return Intl.NumberFormat(this.getAppLocaleID(),{maximumFractionDigits:t,minimumFractionDigits:0,style:"currency",currency:"INR",currencySign:i});case"en-US":case"en":return Intl.NumberFormat("en-US",{maximumFractionDigits:t,minimumFractionDigits:0,style:"currency",currency:"USD",currencySign:i})}}numberFormatter(t=0){switch(this.getAppLocaleID()){case"en-IN":return Intl.NumberFormat(this.getAppLocaleID(),{maximumFractionDigits:t,minimumFractionDigits:0});case"en-US":case"en":return Intl.NumberFormat("en-US",{maximumFractionDigits:t,minimumFractionDigits:0})}}updateLibsLocale(t){C1.locale(t.toLowerCase())}static registerNumeralForEnINLocale(){C1.locales["en-in"]==null&&C1.register("locale","en-in",{delimiters:{thousands:",",decimal:"."},abbreviations:{thousand:"k",million:"m",billion:"b",trillion:"t"},ordinal:function(t){const i=t%10;return~~(t%100/10)===1?"th":i===1?"st":i===2?"nd":i===3?"rd":"th"},currency:{symbol:"₹"}})}static registerNumeralForEnUSLocale(){C1.locales["en-us"]==null&&C1.register("locale","en-us",{delimiters:{thousands:",",decimal:"."},abbreviations:{thousand:"k",million:"m",billion:"b",trillion:"t"},ordinal:function(t){const i=t%10;return~~(t%100/10)===1?"th":i===1?"st":i===2?"nd":i===3?"rd":"th"},currency:{symbol:"$"}})}#e="en";static#t=new ZK;static instance(){return this.registerNumeralForEnINLocale(),this.registerNumeralForEnUSLocale(),this.#t}}const U=ZK.instance(),SU=e=>e<600?"small":e>=600&&e<905?"medium-compact":e>=905&&e<1240?"medium-regular":e>=1240&&e<1440?"large":e>=1440&&e<1920?"extra-large":e>=1920?"ultra-large":(console.warn("this can't happen!"),"medium-regular"),YMe=A.createContext(SU(window.innerWidth)),je=()=>g.useContext(YMe),gIt=e=>{const[t,i]=g.useState(e.fixedWindowSize??SU(window.innerWidth));return g.useEffect(()=>{const n=()=>{const a=SU(window.innerWidth);e.fixedWindowSize==null&&t!=null&&t!=a&&i(a)};return window.addEventListener("resize",n),()=>{window.removeEventListener("resize",n)}},[e.fixedWindowSize,t]),s.jsx(YMe.Provider,{value:t,children:e.children})},fIt=(e,t,i,n,a,l)=>({small:e,"medium-compact":t,"medium-regular":i??t,large:n??i??t,"extra-large":a??n??i??t,"ultra-large":l??a??n??i??t});class L{constructor(t,i,n,a,l,d){this._size=fIt(t,i,n,a,l,d)}value(t="medium-regular"){switch(t){case"small":return this._size.small;case"medium-compact":return this._size["medium-compact"];case"medium-regular":return this._size["medium-regular"];case"large":return this._size.large;case"extra-large":return this._size["extra-large"];case"ultra-large":return this._size["ultra-large"]}}valuePx(t="medium-regular"){return`${this.value(t)}px`}valuePercentage(t="medium-regular"){return`${this.value(t)}%`}add(t){return new L(this._size.small+t._size.small,this._size["medium-compact"]+t._size["medium-compact"],this._size["medium-regular"]+t._size["medium-regular"],this._size.large+t._size.large,this._size["extra-large"]+t._size["extra-large"],this._size["ultra-large"]+t._size["ultra-large"])}subtract(t){return new L(this._size.small-t._size.small,this._size["medium-compact"]-t._size["medium-compact"],this._size["medium-regular"]-t._size["medium-regular"],this._size.large-t._size.large,this._size["extra-large"]-t._size["extra-large"],this._size["ultra-large"]-t._size["ultra-large"])}_size}const u2=e=>e==="small"||e==="medium-compact",Y0=e=>e==="small";var $=(e=>(e.brandColorOnyx="#162324",e.brandColorPearl="#FAFAFA",e.brandColorSapphire="#366170",e.brandColorSapphireDark="#26454F",e.brandColorSapphireLight="#D2E3E9",e.brandColorJade="#97C3B9",e.brandColorJadeDark="#508B7E",e.brandColorJadeLight="#D5E7E3",e.brandColorOpal="#C9ABC7",e.brandColorOpalDark="#855682",e.brandColorOpalLight="#E5D7E4",e.brandColorGold="#EEBA7D",e.brandColorGoldDark="#C27419",e.brandColorGoldLight="#F7E0C4",e.brandColorRuby="#AD584A",e.brandColorRubyDark="#9A4E42",e.brandColorRubyLight="#EBD4D1",e.primaryDark="#FAFAFA",e.primaryLight="#162324",e.backgroundThemeLight="#F3F7F7",e.backgroundThemeDark="#1B1C1C",e.championLight="#4B5253",e.championDark="#D4DBDB",e.heroLight="#757D7E",e.heroDark="#AAB4B5",e.neutralGrey1Light="#A6B0B1",e.neutralGrey1Dark="#727979",e.neutralGrey2Light="#D4DCDD",e.neutralGrey2Dark="#545B5C",e.neutralGrey3Light="#E9F0F0",e.neutralGrey3Dark="#3E4343",e.neutralGrey4Light="#FAFCFC",e.neutralGrey4Dark="#202222",e.neutralGrey5Light="#FFFFFF",e.neutralGrey5Dark="#2C2F2F",e.topExCustomColor="#90EE7D40",e.offerColor="#EF7F56",e.comingSoon="#5EBBF5",e.badgeBackground="#E9F0F033",e.dropShadowNormalLight="rgba(166, 177, 174, 0.24)",e.dropShadowNormalDark="rgba(0, 0, 0, 0.24)",e.dropShadowHoverLight="rgba(166, 177, 174, 0.8)",e.blackColor="#000000",e.billPayPromoColor="#8D6C9F",e.billPayPromoColorHover="rgba(238, 186, 125, 0.4)",e.billPayPromoBorderColorLight="#FBD1A0",e.billPayPromoBorderColorDark="#714B1E",e.billPayPromoBackGroundColorLight="#FFFBF5",e.reimbursementPromoColor="#5DB59A",e.reimbursementPromoColorHover="rgba(93, 181, 154, 0.4)",e.reimbursementPromoBorderColorLight="#CCE8DF",e.reimbursementPromoBorderColorDark="#545D5B",e.reimbursementPromoBackGroundColorLight="#EDFFF8",e.primaryWhite="#FEFEFE",e.rewardsPromoColor1="#397C93",e.rewardsPromoColor2="#065773",e.zeniAccountsPromoBackgroundColor="#D0E7E2",e.zeniAccountsPromoBackgroundColorLight="#D0E7E250",e.zeniAccountsPromoBackgroundColorDark="#3E434350",e.zeniAccountsPromoNavigationDotHoverColorLight="#36617032",e.zeniAccountsPromoNavigationDotHoverColorDark="#97C3B932",e.zeniAccountsPromoCardTitleLight="#4B4F53",e.chargeCardsGradientColor1="#ECECEC",e.chargeCardsGradientColor2="#626565",e.chargeCardsGradientColor3="#A8B1B1",e.chargeCardsGradientColor4="#444A4A",e.chargeCardBoxShadow1="rgba(132, 134, 137, 0.80)",e.chargeCardBoxShadow2="rgba(0, 0, 0, 0.35)",e.chargeCardBackgroundShadowLight="rgba(166,172,177,0.7)",e.chargeCardBackgroundShadowDark="rgba(0,0,0,0.8)",e.issueChargeCardBackgroundShadowLight="rgba(166,172,177,0.25)",e.issueChargeCardBackgroundShadowDark="rgba(0,0,0,0.25)",e.physicalCardBoxShadow="#68AAA0",e.chargeCardFaded="rgba(166, 176, 177, 0.65)",e.phoneSignalColor="#3C3C432E",e.batteryBorderColor="#3c3c4399",e.physicalCardBlueColor1="#eaeff8",e.physicalCardBlueColor2="#bdd4ee",e.physicalCardYellowColor1="#ffe9c6",e.physicalCardYellowColor2="#fff8ec",e.plaidVerificationBackground="rgb(213, 231, 227, 0.5)",e.tagDefaultBgLight="#ECEFF3",e.tagDefaultColorLight="#667085",e.tagDefaultBgDark="#1C2128",e.tagDefaultColorDark="#8C97A4",e.tagWarningBgLight="#FFF4E5",e.tagWarningColorLight="#C08A2E",e.tagWarningBgDark="#2A2416",e.tagWarningColorDark="#E6C27A",e.tagInfoBgLight="#E0EDFF",e.tagInfoColorLight="#1D62C0",e.tagInfoBgDark="#0E1E35",e.tagInfoColorDark="#7EB3F5",e.tagSuccessBgLight="#E8F5EE",e.tagSuccessColorLight="#3A8F5B",e.tagSuccessBgDark="#11241B",e.tagSuccessColorDark="#7FD9A6",e.tagAttentionBgLight="#FDEFF2",e.tagAttentionColorLight="#C23A57",e.tagAttentionBgDark="#2A1419",e.tagAttentionColorDark="#F29BB0",e.success="#36B37E",e.successDark="#1B806A",e.successLight="#D8FBDE",e.alert="#F0BC02",e.alertDark="#AC7F01",e.alertLight="#FEF7CB",e.important="#EB535D",e.importantDark="#A92949",e.importantLight="#FEE6DD",e.info="#1192E8",e.infoDark="#0855A7",e.infoLight="#CEF6FD",e.link="#4589FF",e.linkLight="#D9ECFF",e.linkDark="#224EB7",e.linkLighter="#D9ECFFAF",e.graphColor01="#EE7D7D",e.graphColor01Light="#F8C9C9",e.graphColor01Dark="#D81C1C",e.graphColor02="#EE7D90",e.graphColor02Light="#F8C9D1",e.graphColor02Dark="#D81C3C",e.graphColor03="#EE7DA3",e.graphColor03Light="#F8C9D9",e.graphColor03Dark="#D81C5B",e.graphColor04="#EE7DB5",e.graphColor04Light="#F8C9E0",e.graphColor04Dark="#D81C7A",e.graphColor05="#EE7DC8",e.graphColor05Light="#F8C9E8",e.graphColor05Dark="#D81C9A",e.graphColor06="#EE7DDB",e.graphColor06Light="#F8C9F0",e.graphColor06Dark="#D81CB9",e.graphColor07="#EE7DEE",e.graphColor07Light="#F8C9F8",e.graphColor07Dark="#D81CD8",e.graphColor08="#DB7DEE",e.graphColor08Light="#F0C9F8",e.graphColor08Dark="#B91CD8",e.graphColor09="#C87DEE",e.graphColor09Light="#E8C9F8",e.graphColor09Dark="#9A1CD8",e.graphColor10="#B67DEE",e.graphColor10Light="#E0C9F8",e.graphColor10Dark="#7A1CD8",e.graphColor11="#A37DEE",e.graphColor11Light="#D9C9F8",e.graphColor11Dark="#5B1CD8",e.graphColor12="#907DEE",e.graphColor12Light="#D1C9F8",e.graphColor12Dark="#3C1CD8",e.graphColor13="#7D7DEE",e.graphColor13Light="#C9C9F8",e.graphColor13Dark="#1C1CD8",e.graphColor14="#7D90EE",e.graphColor14Light="#C9D1F8",e.graphColor14Dark="#1C3CD8",e.graphColor15="#7DA3EE",e.graphColor15Light="#C9D9F8",e.graphColor15Dark="#1C5BD8",e.graphColor16="#7DB6EE",e.graphColor16Light="#C9E0F8",e.graphColor16Dark="#1C7AD8",e.graphColor17="#7DC8EE",e.graphColor17Light="#C9E8F8",e.graphColor17Dark="#1C9AD8",e.graphColor18="#7DDBEE",e.graphColor18Light="#C9F0F8",e.graphColor18Dark="#1CB9D8",e.graphColor19="#7DEEEE",e.graphColor19Light="#C9F8F8",e.graphColor19Dark="#1CD8D8",e.graphColor20="#7DEEDB",e.graphColor20Light="#C9F8F0",e.graphColor20Dark="#1CD8B9",e.graphColor21="#7DEEC8",e.graphColor21Light="#C9F8E8",e.graphColor21Dark="#1CD89A",e.graphColor22="#7DEEB5",e.graphColor22Light="#C9F8E0",e.graphColor22Dark="#1CD87A",e.graphColor23="#7DEEA3",e.graphColor23Light="#C9F8D9",e.graphColor23Dark="#1CD85B",e.graphColor24="#7DEE90",e.graphColor24Light="#C9F8D1",e.graphColor24Dark="#1CD83C",e.graphColor25="#7DEE7D",e.graphColor25Light="#C9F8C9",e.graphColor25Dark="#1CD81C",e.graphColor26="#90EE7D",e.graphColor26Light="#D1F8C9",e.graphColor26Dark="#3CD81C",e.graphColor27="#A3EE7D",e.graphColor27Light="#D9F8C9",e.graphColor27Dark="#5BD81C",e.graphColor28="#B5EE7D",e.graphColor28Light="#E0F8C9",e.graphColor28Dark="#7AD81C",e.graphColor29="#C8EE7D",e.graphColor29Light="#E8F8C9",e.graphColor29Dark="#9AD81C",e.graphColor30="#DBEE7D",e.graphColor30Light="#F0F8C9",e.graphColor30Dark="#B9D81C",e.graphColor31="#EEEE7D",e.graphColor31Light="#F8F8C9",e.graphColor31Dark="#D8D81C",e.graphColor32="#EEDB7D",e.graphColor32Light="#F8F0C9",e.graphColor32Dark="#D8B91C",e.graphColor33="#EEC87D",e.graphColor33Light="#F8E8C9",e.graphColor33Dark="#D89A1C",e.graphColor34="#EEB57D",e.graphColor34Light="#F8E0C9",e.graphColor34Dark="#D87A1C",e.graphColor35="#EEA37D",e.graphColor35Light="#F8D9C9",e.graphColor35Dark="#D85B1C",e.graphColor36="#EE907D",e.graphColor36Light="#F8D1C9",e.graphColor36Dark="#D83C1C",e.overlayLight="rgba(0, 0, 0, 0.40)",e.overlayDark="rgba(0, 0, 0, 0.75)",e.overlayBackgroundBlack="rgba(0, 0, 0, 0.50)",e.playButtonBackGroundColorLight="#16232466",e.playButtonBackGroundColorDark="#16232466",e.backgroundGradient1Light="rgba(54, 97, 112, 0.20)",e.backgroundGradient1Dark="rgba(151, 195, 185, 0.20)",e.backgroundGradient2Light="rgba(255, 255, 255, 0.20)",e.backgroundGradient2Dark="rgba(0, 0, 0, 0.20)",e.backgroundGradient3Light="rgba(212, 220, 221, 1)",e.boxShadowElevation="rgba(166, 172, 177, 0.24)",e.Elevation1Light="0px 1px 2px 0px rgba(166, 172, 177, 0.25)",e.Elevation2Light="0px 2px 8px 0px rgba(166, 172, 177, 0.8)",e.Elevation3Light="1px 3px 24px 0px rgba(166, 172, 177, 0.8)",e.Elevation1Dark="0px 1px 2px 0px rgba(0, 0, 0, 0.25)",e.Elevation2Dark="0px 2px 8px 0px rgba(0, 0, 0, 0.8)",e.Elevation3Dark="1px 3px 24px 0px rgba(0, 0, 0, 0.8)",e.scrollbarBoxShadow="rgba(0, 0, 0, 0.1)",e.drawerBackground="rgba(0, 0, 0, 0.7)",e.modalBackground="rgba(0, 0, 0, 0.64)",e.whiteGradient="rgba(255, 255, 255, 0)",e.whiteGradientDark="rgba(255, 255, 255, 0.1)",e.whiteGradientLight="rgba(255, 255, 255, 0.9)",e.runwayRed="#eb535d",e.runwayYellow="#e8aa0b",e.runwayGreen="#51c571",e.optionBorderLight="#E9ECF0",e.selectMenuItem="#1d1f20",e.aiCfoGradient1="#6D3FD8",e.aiCfoGradient2="#BD54CF",e.aiCfoGradient3="#CF6CC9",e.aiCfoGradient4="#EE609C",e.aiVibrantPurple="#7135FF",e.aiCfoLinearGradient="linear-gradient(315deg, #6D3FD8 34.09%, #BD54CF 43.64%, #CF6CC9 50%, #EE609C 56.36%, #EE609C 65.91%)",e.aiCalloutBorderGradient="linear-gradient(315deg, #6D3FD8 31.79%, #BD54CF 42.72%, #CF6CC9 50%, #EE609C 57.28%, #EE609C 68.21%)",e.aiShimmerTextGradient="linear-gradient(90deg, #EE609C 25%, #6D3FD8 50%, #EE609C 75%)",e.aiChainOfThoughtLinearGradient="linear-gradient(322.09deg, #6D3FD8 7.71%, #BD54CF 30.79%, #CF6CC9 54.3%, #EE609C 78.68%, #EE609C 98.27%);",e.aiChainOfThoughtBackgroundGradient="linear-gradient(296.16deg, #6D3FD8b3 20.44%, #BD54CFb3 40.68%, #CF6CC9b3 54.18%, #EE609Cb3 67.68%, #EE609Cb3 87.92%)",e.aiCfoScrollAreaFadeGradientLight="linear-gradient(180deg, rgba(255, 255, 255, 0) 0%, #FFFFFF 100%)",e.aiCfoScrollAreaFadeGradientDark="linear-gradient(180deg, rgba(0,0,0, 0) 0%, #2C2F2F 100%)",e.receiptAgentLinearGradient="linear-gradient(315deg, #6D3FD8 31.79%, #BD54CF 42.72%, #CF6CC9 50%, #EE609C 57.28%,#EE609C 68.21%)",e.aiParsingBorderConicGradient=`conic-gradient(
|
|
234
|
+
To reactivate your account, please settle the outstanding balance. Contact support if you need assistance.`,accountSuspensionTemplateName:"Account Suspension",accountSuspensionEmailSubject:"Your account has been suspended due to non-payment",onOptionLabel:"On",previewLineItemProfessionalServices:"Professional services — March",previewLineItemOnboardingSetup:"Onboarding & setup",logoInvalidImageTypeError:"Please choose a PNG, JPG, SVG, or WEBP image.",logoTooLargeError:"Logo must be 2 MB or smaller.",connectStripeDialogTitle:"Connect your Stripe account",connectStripeDialogDescription:"Paste the API keys from your Stripe account to start collecting payments. We use your secret key server-side and your publishable key for in-browser card capture.",secretKeyLabel:"Secret key",secretKeyPlaceholder:"sk_live_… or rk_live_…",publishableKeyLabel:"Publishable key",publishableKeyPlaceholder:"pk_live_…",webhookSigningSecretLabel:"Webhook signing secret",webhookSecretPlaceholder:"whsec_…",stripeWebhookUrlLabel:"Webhook endpoint",taxProviderLabel:"Tax Provider",taxProviderStripeTax:"Stripe Tax",stripeWebhookSetupDescription:"In your Stripe Dashboard, create a webhook event destination with these settings:",stripeWebhookAccountInstruction:"Event source: Your account",stripeWebhookPayloadInstruction:"Payload style: Snapshot",stripeWebhookEventsInstruction:"Events: All events",stripeWebhookUrlInstruction:"Paste the webhook endpoint shown below.",stripeWebhookSecretInstruction:"Create the destination, reveal its signing secret, and paste the whsec_… value into the Webhook signing secret field below.",quickbooksIntegrationDescription:"Read and write ledger of record. Invoices, expenses, GL, chart of accounts, journal entries.",stripeIntegrationDescription:"Payment processing — charges, refunds, payouts, disputes, MRR.",chargebeeIntegrationDescription:"Subscription analytics — MRR, ARR, churn, active subscriptions.",stripeConnectedHeading:"Stripe Connected",yourStripeAccountFallback:"Your Stripe account",stripeAccountCardTitle:"Stripe account",stripeAccountIdLabel:"Account ID",payoutBankLabel:"Payout bank account",defaultCurrencyLabel:"Default currency",payoutsEnabledLabel:"Payouts enabled",payoutsDisabledLabel:"Payouts disabled",stripePayoutNote:"Payouts are deposited to the bank account configured in your Stripe payout settings.",manageStripePayoutsLinkLabel:"Manage payouts in Stripe",disconnectingButtonLabel:"Disconnecting…",disconnectStripeButtonLabel:"Disconnect Stripe account",noPaymentDestinationHeading:"No payment destination connected",noPaymentDestinationHelper:"Connect a Stripe account to start collecting payments. Your payout account is where invoice payments will be deposited.",connectingButtonLabel:"Connecting…",connectStripeButtonLabel:"Connect Stripe Account",livePreviewLabel:"Live preview",defaultInvoicePrefix:"INV",previewInvoiceNumberSuffix:"-0001",companyNameLabel:"Company name",billingEmailLabel:"Billing email",taxIdEinLabel:"Tax ID / EIN",timezoneLabel:"Timezone",timezonePlaceholder:"America/Los_Angeles",businessAddressLabel:"Business address",brandingTitle:"Branding",uploadLogoLabel:"Upload logo",logoPreviewAlt:"Logo preview",currentLogoText:"Current logo",removeLogoAriaLabel:"Remove logo",logoFormatsHint:"PNG, JPG, SVG or WEBP · max 2 MB",pasteLogoUrlLabel:"Or paste your logo URL",logoUrlPlaceholder:"https://…/logo.png",accentColorLabel:"Accent color",othersTitle:"Others",invoicePrefixLabel:"Invoice prefix",dateFormatLabel:"Date format",netTermDaysLabel:"Net term days",paymentTermsLabel:"Payment terms",defaultMemoLabel:"Default memo",invoiceFooterTextHint:"Leave blank to hide the footer line.",invoiceFooterTextLabel:"Invoice footer text",showTaxIdOnInvoices:"Show tax ID on invoices",showServicePeriods:"Show service periods",dunningScheduleTitle:"Dunning Schedule",dunningScheduleSubtitle:"Configure the sequence of actions taken when a payment fails",stepColumnHeader:"Step #",stepColumnHelp:"The order in which each dunning reminder runs.",daysAfterDueColumnHeader:"Days After Due",daysAfterDueColumnHelp:"Days after the invoice due date before this step runs.",actionColumnHelp:"What happens at this step (e.g. email the customer).",emailTemplateColumnHeader:"Email Template",generalDunningSettingsTitle:"General Dunning Settings",autoCollectionLabel:"Auto collection",maxRetryAttemptsLabel:"Max retry attempts",retryIntervalDaysLabel:"Retry interval (days)",saveDunningSettingsButtonLabel:"Save Dunning Settings",emailTemplatesTitle:"Email Templates",emailTemplatesSubtitle:"Customize the emails sent at each dunning step",escalationCapsuleLabel:"Escalation",subjectLineLabel:"Subject line",bodyLabel:"Body",qboSettingsPageTitle:"QBO Configuration",qboEnableSyncLabel:"Enable QuickBooks sync",qboEnableSyncDescription:"Sync invoices, payments, credit notes, and customers to QuickBooks Online.",qboAccountMappingsSectionTitle:"Account Mappings",qboAccountMappingsSectionDescription:"Choose which QuickBooks accounts each invoicing amount posts to.",qboCustomerMatchingSectionTitle:"Customer Matching",qboCustomerMatchingSectionDescription:"Customers are matched to existing QuickBooks records by email first, then by company name. Customers imported with a QuickBooks ID keep their existing link.",qboCustomerMatchingLabel:"When a customer syncs",qboBehaviorSectionTitle:"Sync Behavior",qboAutoCreateItemsLabel:"Auto-create items",qboAutoCreateItemsDescription:"Create missing QuickBooks items automatically when invoices sync.",qboTrackingCategoriesLabel:"Tracking categories",qboTrackingCategoriesDescription:"Tag synced transactions with QuickBooks classes.",qboClosedPeriodVoidLabel:"Closed-period voids as credit memos",qboClosedPeriodVoidDescription:"Record voids that fall in a closed accounting period as credit memos instead.",qboBackfillSectionTitle:"History Backfill",qboSyncStartDateLabel:"Sync start date",qboBackfillButtonLabel:"Backfill history",qboBackfillingButtonLabel:"Backfilling…",qboBackfillHint:"Re-queue invoicing records created on or after the sync start date.",qboBackfillRequiresSyncHint:"Enable and save QuickBooks sync to run a backfill.",qboSyncHealthSectionTitle:"Sync Health",qboSyncHealthEmptyLabel:"No sync activity yet.",qboFailedTasksTitle:"Failed syncs",qboFailedTaskAttemptsLabel:"{attempts} attempts",qboSaveButtonLabel:"Save QuickBooks Settings"},invoicingSubscriptionDetail:{changeTermEndTitle:"Change term end",changeTermEndDateLabel:"New term end date",pauseSubscriptionDateLabel:"Resume date",pauseSubscriptionHint:"Leave blank to pause without a resume date.",cancelSubscriptionMessage:"Cancel this subscription immediately? Use “Set non-renewing” to cancel at end of term instead.",cancelCommentPlaceholder:"Add any extra context (optional)",everyUnit:"Every ${unit}",everyPeriodUnits:"Every ${period} ${unit}s",charge:"Charge",viewInvoices:"View Invoices",reactivate:"Reactivate",cadenceCurrencySubtitle:'${billingCadence(subscription)} · ${currency ?? "USD"}',billingCycle:"Billing Cycle",unitPrice:"Unit Price",couponNumber:"Coupon #",appliedUsed:"Applied/Used",subscriptionNotFound:"Subscription not found.",cancellation:"Cancellation",cancelledOn:"Cancelled on",trialStart:"Trial start",trialEnd:"Trial end",daysRemaining:"Days remaining",planItemPrice:"Plan Item Price",nextBilling:"Next billing",billingPeriod:"Billing period",dueInvoices:"Due invoices",totalDues:"Total dues",remainingCycles:"Remaining cycles",scheduledChanges:"Scheduled changes",setupFeeOneTime:"Setup fee (one-time)",startedDate:"Started Date",activationDate:"Activation Date",updatedDate:"Updated Date",dueSince:"Due Since",autoCollectionCount:"Auto Collection Count",subscriptionItems:"Subscription Items",noSubscriptionItems:"No subscription items.",noAddOns:"No add-ons.",noOneTimeCharges:"No one-time charges.",noCoupons:"No coupons.",contractTerm:"Contract Term",contractId:"Contract ID",active:"active",contractPeriod:"Contract Period",actionAtTermEnd:"Action at term end",renew:"renew",cancelBeforeNoticePeriod:"Cancel before notice period",totalContractValue:"Total contract value"},invoicingSubscriptionForm:{estimateTitle:"Review subscription cost",estimateLoading:"Calculating the estimate…",estimateInvoiceNowTitle:"Invoiced on this save",estimateChargeableImmediately:"Chargeable immediately",estimateNextInvoiceTitle:"Next invoice",estimateTermRange:"{start} – {end}",estimateEndsAfterThisTerm:"Ends after this term",estimateTaxUnavailable:"Unavailable",estimateStoreCredit:"Store credit",estimateCreditsMayChange:"Credits are today's balances and can change before the bill date.",billingFrequencyHalfYearly:"Half-Yearly",selectCustomerValidation:"Select a customer for this subscription.",selectPlanValidation:"Select a plan for this subscription.",editSubscriptionTitle:"Edit Subscription",subscriptionDetailsDescription:"Add details to create a new subscription.",planQuantityLabel:"Quantity",billingCyclesPlaceholder:"Renews forever",billingCyclesHint:"Paid invoices including the first one. Leave blank to renew forever.",startDateAfterTrialEndValidation:"Trial end date must be later than the start date.",addonsDescription:"Recurring add-ons billed on the same cycle.",noAddonsAvailable:"No add-ons available",selectAddonsPlaceholder:"Select add-ons",oneTimeChargesDescription:"Billed once on the first invoice.",oneTimeChargesTitle:"One Time Charges",noChargesAvailable:"No charges available",selectOneTimeChargesPlaceholder:"Select one time charges",referencesSchedulesDescription:"Trial, PO and coupon details.",referencesSchedulesTitle:"References & Schedules",setupFeeLabel:"Setup Fee",trialEndDateLabel:"Trial End Date",noCouponPlaceholder:"No coupon",shippingAddressDescription:"Optional address for shippable plans.",shipCountryLabel:"Country (ISO)",shipZipLabel:"ZIP / Postal"},invoicingSubscriptionList:{perPrefix:"Per ",everyPrefix:"Every ",noSubscriptionsMatchSearch:"No subscriptions match your search.",noSubscriptionsYet:"No subscriptions yet.",emptyStateDescription:"Bring in your historical subscription data by importing your subscriptions csv file",emptyStateTitle:"No Subscriptions Yet",searchPlaceholder:"Search by customer or plan"},invoicingTransactionDetail:{capture:"Capture",viewInvoice:"View Invoice",viewSubscription:"View Subscription",viewCustomer:"View Customer",unusedAmount:"Unused Amount",capturableAmount:"Capturable Amount",applied:"Applied",transactionNotFound:"Transaction not found.",transactionTitlePrefix:"Transaction ",transactionDetails:"Transaction Details",settledAt:"Settled At",refundedTransaction:"Refunded Transaction",customerAndSubscription:"Customer & Subscription",paymentMethodAndGateway:"Payment Method & Gateway",paymentSourceId:"Payment Source ID",gatewayAccount:"Gateway Account",idAtGateway:"ID at Gateway",security:"Security",threeDSecure:"3-D Secure",fraudFlag:"Fraud Flag",none:"None",fraudReason:"Fraud Reason",errorDetails:"Error Details",errorCode:"Error Code",errorMessage:"Error Message",linkedInvoices:"Linked Invoices",noLinkedInvoices:"No linked invoices.",linkedCreditNotes:"Linked Credit Notes",noLinkedCreditNotes:"No linked credit notes.",noRefunds:"No refunds."}},Hpe={en:X$,"en-US":X$,"en-IN":X$};class ZK{getAppLocaleID(){return this.#e}getLocalizedStrings(){return Hpe[this.#e]}updateAppLocaleID(t){if(Hpe[t]==null)throw Error(`strings are not available in ${t}`);aGe(t),this.updateLibsLocale(t),this.#e=t,console.log(`Set the locale to ${this.#e}`)}currencyFormatter(t=0,i="standard"){switch(this.getAppLocaleID()){case"en-IN":return Intl.NumberFormat(this.getAppLocaleID(),{maximumFractionDigits:t,minimumFractionDigits:0,style:"currency",currency:"INR",currencySign:i});case"en-US":case"en":return Intl.NumberFormat("en-US",{maximumFractionDigits:t,minimumFractionDigits:0,style:"currency",currency:"USD",currencySign:i})}}numberFormatter(t=0){switch(this.getAppLocaleID()){case"en-IN":return Intl.NumberFormat(this.getAppLocaleID(),{maximumFractionDigits:t,minimumFractionDigits:0});case"en-US":case"en":return Intl.NumberFormat("en-US",{maximumFractionDigits:t,minimumFractionDigits:0})}}updateLibsLocale(t){C1.locale(t.toLowerCase())}static registerNumeralForEnINLocale(){C1.locales["en-in"]==null&&C1.register("locale","en-in",{delimiters:{thousands:",",decimal:"."},abbreviations:{thousand:"k",million:"m",billion:"b",trillion:"t"},ordinal:function(t){const i=t%10;return~~(t%100/10)===1?"th":i===1?"st":i===2?"nd":i===3?"rd":"th"},currency:{symbol:"₹"}})}static registerNumeralForEnUSLocale(){C1.locales["en-us"]==null&&C1.register("locale","en-us",{delimiters:{thousands:",",decimal:"."},abbreviations:{thousand:"k",million:"m",billion:"b",trillion:"t"},ordinal:function(t){const i=t%10;return~~(t%100/10)===1?"th":i===1?"st":i===2?"nd":i===3?"rd":"th"},currency:{symbol:"$"}})}#e="en";static#t=new ZK;static instance(){return this.registerNumeralForEnINLocale(),this.registerNumeralForEnUSLocale(),this.#t}}const U=ZK.instance(),SU=e=>e<600?"small":e>=600&&e<905?"medium-compact":e>=905&&e<1240?"medium-regular":e>=1240&&e<1440?"large":e>=1440&&e<1920?"extra-large":e>=1920?"ultra-large":(console.warn("this can't happen!"),"medium-regular"),YMe=A.createContext(SU(window.innerWidth)),je=()=>g.useContext(YMe),gIt=e=>{const[t,i]=g.useState(e.fixedWindowSize??SU(window.innerWidth));return g.useEffect(()=>{const n=()=>{const a=SU(window.innerWidth);e.fixedWindowSize==null&&t!=null&&t!=a&&i(a)};return window.addEventListener("resize",n),()=>{window.removeEventListener("resize",n)}},[e.fixedWindowSize,t]),s.jsx(YMe.Provider,{value:t,children:e.children})},fIt=(e,t,i,n,a,l)=>({small:e,"medium-compact":t,"medium-regular":i??t,large:n??i??t,"extra-large":a??n??i??t,"ultra-large":l??a??n??i??t});class L{constructor(t,i,n,a,l,d){this._size=fIt(t,i,n,a,l,d)}value(t="medium-regular"){switch(t){case"small":return this._size.small;case"medium-compact":return this._size["medium-compact"];case"medium-regular":return this._size["medium-regular"];case"large":return this._size.large;case"extra-large":return this._size["extra-large"];case"ultra-large":return this._size["ultra-large"]}}valuePx(t="medium-regular"){return`${this.value(t)}px`}valuePercentage(t="medium-regular"){return`${this.value(t)}%`}add(t){return new L(this._size.small+t._size.small,this._size["medium-compact"]+t._size["medium-compact"],this._size["medium-regular"]+t._size["medium-regular"],this._size.large+t._size.large,this._size["extra-large"]+t._size["extra-large"],this._size["ultra-large"]+t._size["ultra-large"])}subtract(t){return new L(this._size.small-t._size.small,this._size["medium-compact"]-t._size["medium-compact"],this._size["medium-regular"]-t._size["medium-regular"],this._size.large-t._size.large,this._size["extra-large"]-t._size["extra-large"],this._size["ultra-large"]-t._size["ultra-large"])}_size}const u2=e=>e==="small"||e==="medium-compact",Y0=e=>e==="small";var $=(e=>(e.brandColorOnyx="#162324",e.brandColorPearl="#FAFAFA",e.brandColorSapphire="#366170",e.brandColorSapphireDark="#26454F",e.brandColorSapphireLight="#D2E3E9",e.brandColorJade="#97C3B9",e.brandColorJadeDark="#508B7E",e.brandColorJadeLight="#D5E7E3",e.brandColorOpal="#C9ABC7",e.brandColorOpalDark="#855682",e.brandColorOpalLight="#E5D7E4",e.brandColorGold="#EEBA7D",e.brandColorGoldDark="#C27419",e.brandColorGoldLight="#F7E0C4",e.brandColorRuby="#AD584A",e.brandColorRubyDark="#9A4E42",e.brandColorRubyLight="#EBD4D1",e.primaryDark="#FAFAFA",e.primaryLight="#162324",e.backgroundThemeLight="#F3F7F7",e.backgroundThemeDark="#1B1C1C",e.championLight="#4B5253",e.championDark="#D4DBDB",e.heroLight="#757D7E",e.heroDark="#AAB4B5",e.neutralGrey1Light="#A6B0B1",e.neutralGrey1Dark="#727979",e.neutralGrey2Light="#D4DCDD",e.neutralGrey2Dark="#545B5C",e.neutralGrey3Light="#E9F0F0",e.neutralGrey3Dark="#3E4343",e.neutralGrey4Light="#FAFCFC",e.neutralGrey4Dark="#202222",e.neutralGrey5Light="#FFFFFF",e.neutralGrey5Dark="#2C2F2F",e.topExCustomColor="#90EE7D40",e.offerColor="#EF7F56",e.comingSoon="#5EBBF5",e.badgeBackground="#E9F0F033",e.dropShadowNormalLight="rgba(166, 177, 174, 0.24)",e.dropShadowNormalDark="rgba(0, 0, 0, 0.24)",e.dropShadowHoverLight="rgba(166, 177, 174, 0.8)",e.blackColor="#000000",e.billPayPromoColor="#8D6C9F",e.billPayPromoColorHover="rgba(238, 186, 125, 0.4)",e.billPayPromoBorderColorLight="#FBD1A0",e.billPayPromoBorderColorDark="#714B1E",e.billPayPromoBackGroundColorLight="#FFFBF5",e.reimbursementPromoColor="#5DB59A",e.reimbursementPromoColorHover="rgba(93, 181, 154, 0.4)",e.reimbursementPromoBorderColorLight="#CCE8DF",e.reimbursementPromoBorderColorDark="#545D5B",e.reimbursementPromoBackGroundColorLight="#EDFFF8",e.primaryWhite="#FEFEFE",e.rewardsPromoColor1="#397C93",e.rewardsPromoColor2="#065773",e.zeniAccountsPromoBackgroundColor="#D0E7E2",e.zeniAccountsPromoBackgroundColorLight="#D0E7E250",e.zeniAccountsPromoBackgroundColorDark="#3E434350",e.zeniAccountsPromoNavigationDotHoverColorLight="#36617032",e.zeniAccountsPromoNavigationDotHoverColorDark="#97C3B932",e.zeniAccountsPromoCardTitleLight="#4B4F53",e.chargeCardsGradientColor1="#ECECEC",e.chargeCardsGradientColor2="#626565",e.chargeCardsGradientColor3="#A8B1B1",e.chargeCardsGradientColor4="#444A4A",e.chargeCardBoxShadow1="rgba(132, 134, 137, 0.80)",e.chargeCardBoxShadow2="rgba(0, 0, 0, 0.35)",e.chargeCardBackgroundShadowLight="rgba(166,172,177,0.7)",e.chargeCardBackgroundShadowDark="rgba(0,0,0,0.8)",e.issueChargeCardBackgroundShadowLight="rgba(166,172,177,0.25)",e.issueChargeCardBackgroundShadowDark="rgba(0,0,0,0.25)",e.physicalCardBoxShadow="#68AAA0",e.chargeCardFaded="rgba(166, 176, 177, 0.65)",e.phoneSignalColor="#3C3C432E",e.batteryBorderColor="#3c3c4399",e.physicalCardBlueColor1="#eaeff8",e.physicalCardBlueColor2="#bdd4ee",e.physicalCardYellowColor1="#ffe9c6",e.physicalCardYellowColor2="#fff8ec",e.plaidVerificationBackground="rgb(213, 231, 227, 0.5)",e.tagDefaultBgLight="#ECEFF3",e.tagDefaultColorLight="#667085",e.tagDefaultBgDark="#1C2128",e.tagDefaultColorDark="#8C97A4",e.tagWarningBgLight="#FFF4E5",e.tagWarningColorLight="#C08A2E",e.tagWarningBgDark="#2A2416",e.tagWarningColorDark="#E6C27A",e.tagInfoBgLight="#E0EDFF",e.tagInfoColorLight="#1D62C0",e.tagInfoBgDark="#0E1E35",e.tagInfoColorDark="#7EB3F5",e.tagSuccessBgLight="#E8F5EE",e.tagSuccessColorLight="#3A8F5B",e.tagSuccessBgDark="#11241B",e.tagSuccessColorDark="#7FD9A6",e.tagAttentionBgLight="#FDEFF2",e.tagAttentionColorLight="#C23A57",e.tagAttentionBgDark="#2A1419",e.tagAttentionColorDark="#F29BB0",e.success="#36B37E",e.successDark="#1B806A",e.successLight="#D8FBDE",e.alert="#F0BC02",e.alertDark="#AC7F01",e.alertLight="#FEF7CB",e.important="#EB535D",e.importantDark="#A92949",e.importantLight="#FEE6DD",e.info="#1192E8",e.infoDark="#0855A7",e.infoLight="#CEF6FD",e.link="#4589FF",e.linkLight="#D9ECFF",e.linkDark="#224EB7",e.linkLighter="#D9ECFFAF",e.graphColor01="#EE7D7D",e.graphColor01Light="#F8C9C9",e.graphColor01Dark="#D81C1C",e.graphColor02="#EE7D90",e.graphColor02Light="#F8C9D1",e.graphColor02Dark="#D81C3C",e.graphColor03="#EE7DA3",e.graphColor03Light="#F8C9D9",e.graphColor03Dark="#D81C5B",e.graphColor04="#EE7DB5",e.graphColor04Light="#F8C9E0",e.graphColor04Dark="#D81C7A",e.graphColor05="#EE7DC8",e.graphColor05Light="#F8C9E8",e.graphColor05Dark="#D81C9A",e.graphColor06="#EE7DDB",e.graphColor06Light="#F8C9F0",e.graphColor06Dark="#D81CB9",e.graphColor07="#EE7DEE",e.graphColor07Light="#F8C9F8",e.graphColor07Dark="#D81CD8",e.graphColor08="#DB7DEE",e.graphColor08Light="#F0C9F8",e.graphColor08Dark="#B91CD8",e.graphColor09="#C87DEE",e.graphColor09Light="#E8C9F8",e.graphColor09Dark="#9A1CD8",e.graphColor10="#B67DEE",e.graphColor10Light="#E0C9F8",e.graphColor10Dark="#7A1CD8",e.graphColor11="#A37DEE",e.graphColor11Light="#D9C9F8",e.graphColor11Dark="#5B1CD8",e.graphColor12="#907DEE",e.graphColor12Light="#D1C9F8",e.graphColor12Dark="#3C1CD8",e.graphColor13="#7D7DEE",e.graphColor13Light="#C9C9F8",e.graphColor13Dark="#1C1CD8",e.graphColor14="#7D90EE",e.graphColor14Light="#C9D1F8",e.graphColor14Dark="#1C3CD8",e.graphColor15="#7DA3EE",e.graphColor15Light="#C9D9F8",e.graphColor15Dark="#1C5BD8",e.graphColor16="#7DB6EE",e.graphColor16Light="#C9E0F8",e.graphColor16Dark="#1C7AD8",e.graphColor17="#7DC8EE",e.graphColor17Light="#C9E8F8",e.graphColor17Dark="#1C9AD8",e.graphColor18="#7DDBEE",e.graphColor18Light="#C9F0F8",e.graphColor18Dark="#1CB9D8",e.graphColor19="#7DEEEE",e.graphColor19Light="#C9F8F8",e.graphColor19Dark="#1CD8D8",e.graphColor20="#7DEEDB",e.graphColor20Light="#C9F8F0",e.graphColor20Dark="#1CD8B9",e.graphColor21="#7DEEC8",e.graphColor21Light="#C9F8E8",e.graphColor21Dark="#1CD89A",e.graphColor22="#7DEEB5",e.graphColor22Light="#C9F8E0",e.graphColor22Dark="#1CD87A",e.graphColor23="#7DEEA3",e.graphColor23Light="#C9F8D9",e.graphColor23Dark="#1CD85B",e.graphColor24="#7DEE90",e.graphColor24Light="#C9F8D1",e.graphColor24Dark="#1CD83C",e.graphColor25="#7DEE7D",e.graphColor25Light="#C9F8C9",e.graphColor25Dark="#1CD81C",e.graphColor26="#90EE7D",e.graphColor26Light="#D1F8C9",e.graphColor26Dark="#3CD81C",e.graphColor27="#A3EE7D",e.graphColor27Light="#D9F8C9",e.graphColor27Dark="#5BD81C",e.graphColor28="#B5EE7D",e.graphColor28Light="#E0F8C9",e.graphColor28Dark="#7AD81C",e.graphColor29="#C8EE7D",e.graphColor29Light="#E8F8C9",e.graphColor29Dark="#9AD81C",e.graphColor30="#DBEE7D",e.graphColor30Light="#F0F8C9",e.graphColor30Dark="#B9D81C",e.graphColor31="#EEEE7D",e.graphColor31Light="#F8F8C9",e.graphColor31Dark="#D8D81C",e.graphColor32="#EEDB7D",e.graphColor32Light="#F8F0C9",e.graphColor32Dark="#D8B91C",e.graphColor33="#EEC87D",e.graphColor33Light="#F8E8C9",e.graphColor33Dark="#D89A1C",e.graphColor34="#EEB57D",e.graphColor34Light="#F8E0C9",e.graphColor34Dark="#D87A1C",e.graphColor35="#EEA37D",e.graphColor35Light="#F8D9C9",e.graphColor35Dark="#D85B1C",e.graphColor36="#EE907D",e.graphColor36Light="#F8D1C9",e.graphColor36Dark="#D83C1C",e.overlayLight="rgba(0, 0, 0, 0.40)",e.overlayDark="rgba(0, 0, 0, 0.75)",e.overlayBackgroundBlack="rgba(0, 0, 0, 0.50)",e.playButtonBackGroundColorLight="#16232466",e.playButtonBackGroundColorDark="#16232466",e.backgroundGradient1Light="rgba(54, 97, 112, 0.20)",e.backgroundGradient1Dark="rgba(151, 195, 185, 0.20)",e.backgroundGradient2Light="rgba(255, 255, 255, 0.20)",e.backgroundGradient2Dark="rgba(0, 0, 0, 0.20)",e.backgroundGradient3Light="rgba(212, 220, 221, 1)",e.boxShadowElevation="rgba(166, 172, 177, 0.24)",e.Elevation1Light="0px 1px 2px 0px rgba(166, 172, 177, 0.25)",e.Elevation2Light="0px 2px 8px 0px rgba(166, 172, 177, 0.8)",e.Elevation3Light="1px 3px 24px 0px rgba(166, 172, 177, 0.8)",e.Elevation1Dark="0px 1px 2px 0px rgba(0, 0, 0, 0.25)",e.Elevation2Dark="0px 2px 8px 0px rgba(0, 0, 0, 0.8)",e.Elevation3Dark="1px 3px 24px 0px rgba(0, 0, 0, 0.8)",e.scrollbarBoxShadow="rgba(0, 0, 0, 0.1)",e.drawerBackground="rgba(0, 0, 0, 0.7)",e.modalBackground="rgba(0, 0, 0, 0.64)",e.whiteGradient="rgba(255, 255, 255, 0)",e.whiteGradientDark="rgba(255, 255, 255, 0.1)",e.whiteGradientLight="rgba(255, 255, 255, 0.9)",e.runwayRed="#eb535d",e.runwayYellow="#e8aa0b",e.runwayGreen="#51c571",e.optionBorderLight="#E9ECF0",e.selectMenuItem="#1d1f20",e.aiCfoGradient1="#6D3FD8",e.aiCfoGradient2="#BD54CF",e.aiCfoGradient3="#CF6CC9",e.aiCfoGradient4="#EE609C",e.aiVibrantPurple="#7135FF",e.aiCfoLinearGradient="linear-gradient(315deg, #6D3FD8 34.09%, #BD54CF 43.64%, #CF6CC9 50%, #EE609C 56.36%, #EE609C 65.91%)",e.aiCalloutBorderGradient="linear-gradient(315deg, #6D3FD8 31.79%, #BD54CF 42.72%, #CF6CC9 50%, #EE609C 57.28%, #EE609C 68.21%)",e.aiShimmerTextGradient="linear-gradient(90deg, #EE609C 25%, #6D3FD8 50%, #EE609C 75%)",e.aiChainOfThoughtLinearGradient="linear-gradient(322.09deg, #6D3FD8 7.71%, #BD54CF 30.79%, #CF6CC9 54.3%, #EE609C 78.68%, #EE609C 98.27%);",e.aiChainOfThoughtBackgroundGradient="linear-gradient(296.16deg, #6D3FD8b3 20.44%, #BD54CFb3 40.68%, #CF6CC9b3 54.18%, #EE609Cb3 67.68%, #EE609Cb3 87.92%)",e.aiCfoScrollAreaFadeGradientLight="linear-gradient(180deg, rgba(255, 255, 255, 0) 0%, #FFFFFF 100%)",e.aiCfoScrollAreaFadeGradientDark="linear-gradient(180deg, rgba(0,0,0, 0) 0%, #2C2F2F 100%)",e.receiptAgentLinearGradient="linear-gradient(315deg, #6D3FD8 31.79%, #BD54CF 42.72%, #CF6CC9 50%, #EE609C 57.28%,#EE609C 68.21%)",e.aiParsingBorderConicGradient=`conic-gradient(
|
|
235
235
|
from var(--ai-conic-from) at 50% 50%,
|
|
236
236
|
#EE609C 0deg,
|
|
237
237
|
#CF6CC9 45deg,
|
|
@@ -23816,7 +23816,7 @@ to {
|
|
|
23816
23816
|
${({isMenuVisible:e})=>e===!1?de`
|
|
23817
23817
|
display: none;
|
|
23818
23818
|
`:null};
|
|
23819
|
-
`,_ze=e=>g.createElement("svg",{width:208,height:208,viewBox:"0 0 208 208",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e},g.createElement("g",{filter:"url(#filter0_f_251_38441)"},g.createElement("circle",{cx:104,cy:104,r:44,fill:"url(#paint0_linear_251_38441)"}),g.createElement("circle",{cx:104,cy:104,r:50,stroke:"url(#paint1_linear_251_38441)",strokeWidth:12})),g.createElement("g",{filter:"url(#filter1_d_251_38441)"},g.createElement("circle",{cx:104,cy:104,r:41.1429,fill:"#FAFAFA"}),g.createElement("circle",{cx:104,cy:104,r:43.1429,stroke:"url(#paint2_linear_251_38441)",strokeWidth:4})),g.createElement("g",{clipPath:"url(#clip0_251_38441)"},g.createElement("path",{d:"M120.16 102.411L96.2853 90.4684C96.0134 90.3343 95.7118 90.2718 95.409 90.2867C95.1062 90.3016 94.8122 90.3935 94.5548 90.5536C94.2974 90.7138 94.0851 90.9369 93.938 91.202C93.7908 91.467 93.7137 91.7652 93.7139 92.0684V115.931C93.7137 116.234 93.7908 116.533 93.938 116.798C94.0851 117.063 94.2974 117.286 94.5548 117.446C94.8122 117.606 95.1062 117.698 95.409 117.713C95.7118 117.728 96.0134 117.665 96.2853 117.531L120.16 105.588C120.456 105.442 120.706 105.216 120.88 104.935C121.055 104.654 121.147 104.33 121.147 104C121.147 103.669 121.055 103.345 120.88 103.065C120.706 102.784 120.456 102.558 120.16 102.411Z",fill:"black"})),g.createElement("defs",null,g.createElement("filter",{id:"filter0_f_251_38441",x:0,y:0,width:208,height:208,filterUnits:"userSpaceOnUse",colorInterpolationFilters:"sRGB"},g.createElement("feFlood",{floodOpacity:0,result:"BackgroundImageFix"}),g.createElement("feBlend",{mode:"normal",in:"SourceGraphic",in2:"BackgroundImageFix",result:"shape"}),g.createElement("feGaussianBlur",{stdDeviation:24,result:"effect1_foregroundBlur_251_38441"})),g.createElement("filter",{id:"filter1_d_251_38441",x:54.8569,y:58.8571,width:98.2856,height:98.2857,filterUnits:"userSpaceOnUse",colorInterpolationFilters:"sRGB"},g.createElement("feFlood",{floodOpacity:0,result:"BackgroundImageFix"}),g.createElement("feColorMatrix",{in:"SourceAlpha",type:"matrix",values:"0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 127 0",result:"hardAlpha"}),g.createElement("feOffset",{dy:4}),g.createElement("feGaussianBlur",{stdDeviation:2}),g.createElement("feComposite",{in2:"hardAlpha",operator:"out"}),g.createElement("feColorMatrix",{type:"matrix",values:"0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0.25 0"}),g.createElement("feBlend",{mode:"normal",in2:"BackgroundImageFix",result:"effect1_dropShadow_251_38441"}),g.createElement("feBlend",{mode:"normal",in:"SourceGraphic",in2:"effect1_dropShadow_251_38441",result:"shape"})),g.createElement("linearGradient",{id:"paint0_linear_251_38441",x1:119.671,y1:119.671,x2:87.9755,y2:87.9758,gradientUnits:"userSpaceOnUse"},g.createElement("stop",{stopColor:"#7135FF"}),g.createElement("stop",{offset:.27204,stopColor:"#A050E4"}),g.createElement("stop",{offset:.364594,stopColor:"#B85ED7"}),g.createElement("stop",{offset:.546546,stopColor:"#CF6CC9"}),g.createElement("stop",{offset:.732127,stopColor:"#EE609C"}),g.createElement("stop",{offset:.85586,stopColor:"#EB61A0"}),g.createElement("stop",{offset:1,stopColor:"#EE609C"})),g.createElement("linearGradient",{id:"paint1_linear_251_38441",x1:119.671,y1:119.671,x2:87.9755,y2:87.9758,gradientUnits:"userSpaceOnUse"},g.createElement("stop",{stopColor:"#7135FF"}),g.createElement("stop",{offset:.27204,stopColor:"#A050E4"}),g.createElement("stop",{offset:.364594,stopColor:"#B85ED7"}),g.createElement("stop",{offset:.546546,stopColor:"#CF6CC9"}),g.createElement("stop",{offset:.732127,stopColor:"#EE609C"}),g.createElement("stop",{offset:.85586,stopColor:"#EB61A0"}),g.createElement("stop",{offset:1,stopColor:"#EE609C"})),g.createElement("linearGradient",{id:"paint2_linear_251_38441",x1:118.653,y1:118.653,x2:89.0159,y2:89.0164,gradientUnits:"userSpaceOnUse"},g.createElement("stop",{stopColor:"#7135FF"}),g.createElement("stop",{offset:.27204,stopColor:"#A050E4"}),g.createElement("stop",{offset:.364594,stopColor:"#B85ED7"}),g.createElement("stop",{offset:.546546,stopColor:"#CF6CC9"}),g.createElement("stop",{offset:.732127,stopColor:"#EE609C"}),g.createElement("stop",{offset:.85586,stopColor:"#EB61A0"}),g.createElement("stop",{offset:1,stopColor:"#EE609C"})),g.createElement("clipPath",{id:"clip0_251_38441"},g.createElement("rect",{width:27.4286,height:27.4286,fill:"white",transform:"translate(93.7139 90.2849)"})))),ige=g.lazy(()=>K3(()=>import("./index-
|
|
23819
|
+
`,_ze=e=>g.createElement("svg",{width:208,height:208,viewBox:"0 0 208 208",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e},g.createElement("g",{filter:"url(#filter0_f_251_38441)"},g.createElement("circle",{cx:104,cy:104,r:44,fill:"url(#paint0_linear_251_38441)"}),g.createElement("circle",{cx:104,cy:104,r:50,stroke:"url(#paint1_linear_251_38441)",strokeWidth:12})),g.createElement("g",{filter:"url(#filter1_d_251_38441)"},g.createElement("circle",{cx:104,cy:104,r:41.1429,fill:"#FAFAFA"}),g.createElement("circle",{cx:104,cy:104,r:43.1429,stroke:"url(#paint2_linear_251_38441)",strokeWidth:4})),g.createElement("g",{clipPath:"url(#clip0_251_38441)"},g.createElement("path",{d:"M120.16 102.411L96.2853 90.4684C96.0134 90.3343 95.7118 90.2718 95.409 90.2867C95.1062 90.3016 94.8122 90.3935 94.5548 90.5536C94.2974 90.7138 94.0851 90.9369 93.938 91.202C93.7908 91.467 93.7137 91.7652 93.7139 92.0684V115.931C93.7137 116.234 93.7908 116.533 93.938 116.798C94.0851 117.063 94.2974 117.286 94.5548 117.446C94.8122 117.606 95.1062 117.698 95.409 117.713C95.7118 117.728 96.0134 117.665 96.2853 117.531L120.16 105.588C120.456 105.442 120.706 105.216 120.88 104.935C121.055 104.654 121.147 104.33 121.147 104C121.147 103.669 121.055 103.345 120.88 103.065C120.706 102.784 120.456 102.558 120.16 102.411Z",fill:"black"})),g.createElement("defs",null,g.createElement("filter",{id:"filter0_f_251_38441",x:0,y:0,width:208,height:208,filterUnits:"userSpaceOnUse",colorInterpolationFilters:"sRGB"},g.createElement("feFlood",{floodOpacity:0,result:"BackgroundImageFix"}),g.createElement("feBlend",{mode:"normal",in:"SourceGraphic",in2:"BackgroundImageFix",result:"shape"}),g.createElement("feGaussianBlur",{stdDeviation:24,result:"effect1_foregroundBlur_251_38441"})),g.createElement("filter",{id:"filter1_d_251_38441",x:54.8569,y:58.8571,width:98.2856,height:98.2857,filterUnits:"userSpaceOnUse",colorInterpolationFilters:"sRGB"},g.createElement("feFlood",{floodOpacity:0,result:"BackgroundImageFix"}),g.createElement("feColorMatrix",{in:"SourceAlpha",type:"matrix",values:"0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 127 0",result:"hardAlpha"}),g.createElement("feOffset",{dy:4}),g.createElement("feGaussianBlur",{stdDeviation:2}),g.createElement("feComposite",{in2:"hardAlpha",operator:"out"}),g.createElement("feColorMatrix",{type:"matrix",values:"0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0.25 0"}),g.createElement("feBlend",{mode:"normal",in2:"BackgroundImageFix",result:"effect1_dropShadow_251_38441"}),g.createElement("feBlend",{mode:"normal",in:"SourceGraphic",in2:"effect1_dropShadow_251_38441",result:"shape"})),g.createElement("linearGradient",{id:"paint0_linear_251_38441",x1:119.671,y1:119.671,x2:87.9755,y2:87.9758,gradientUnits:"userSpaceOnUse"},g.createElement("stop",{stopColor:"#7135FF"}),g.createElement("stop",{offset:.27204,stopColor:"#A050E4"}),g.createElement("stop",{offset:.364594,stopColor:"#B85ED7"}),g.createElement("stop",{offset:.546546,stopColor:"#CF6CC9"}),g.createElement("stop",{offset:.732127,stopColor:"#EE609C"}),g.createElement("stop",{offset:.85586,stopColor:"#EB61A0"}),g.createElement("stop",{offset:1,stopColor:"#EE609C"})),g.createElement("linearGradient",{id:"paint1_linear_251_38441",x1:119.671,y1:119.671,x2:87.9755,y2:87.9758,gradientUnits:"userSpaceOnUse"},g.createElement("stop",{stopColor:"#7135FF"}),g.createElement("stop",{offset:.27204,stopColor:"#A050E4"}),g.createElement("stop",{offset:.364594,stopColor:"#B85ED7"}),g.createElement("stop",{offset:.546546,stopColor:"#CF6CC9"}),g.createElement("stop",{offset:.732127,stopColor:"#EE609C"}),g.createElement("stop",{offset:.85586,stopColor:"#EB61A0"}),g.createElement("stop",{offset:1,stopColor:"#EE609C"})),g.createElement("linearGradient",{id:"paint2_linear_251_38441",x1:118.653,y1:118.653,x2:89.0159,y2:89.0164,gradientUnits:"userSpaceOnUse"},g.createElement("stop",{stopColor:"#7135FF"}),g.createElement("stop",{offset:.27204,stopColor:"#A050E4"}),g.createElement("stop",{offset:.364594,stopColor:"#B85ED7"}),g.createElement("stop",{offset:.546546,stopColor:"#CF6CC9"}),g.createElement("stop",{offset:.732127,stopColor:"#EE609C"}),g.createElement("stop",{offset:.85586,stopColor:"#EB61A0"}),g.createElement("stop",{offset:1,stopColor:"#EE609C"})),g.createElement("clipPath",{id:"clip0_251_38441"},g.createElement("rect",{width:27.4286,height:27.4286,fill:"white",transform:"translate(93.7139 90.2849)"})))),ige=g.lazy(()=>K3(()=>import("./index-Cntn6QHm.js"),__vite__mapDeps([13,5,1,6])));function rMo({src:e,autoPlay:t=!0,config:i,controls:n=!0,height:a="100%",isModalOpen:l,loop:d=!1,muted:c=!1,showPlayButton:p=!1,style:u,thumbnail:h,width:m="100%",onEnded:f,onModalClose:x,onPlay:y}){const w=je(),[b,C]=g.useState(!1);g.useEffect(()=>{l===!0&&t?C(!0):l===!1&&C(!1)},[l,t]);const k={};i?.youtube&&(k.youtube=i.youtube);const E=()=>{C(!0),y?.()},S=()=>{C(!1),x?.()},j=()=>{C(!1),f?.(),l!=null&&x?.()},I=()=>{C(!0),y?.()};return l!=null?l?Mn.createPortal(s.jsx(dMo,{windowSize:w,role:"presentation",children:s.jsx(ri,{onClickAway:S,children:s.jsx(cMo,{windowSize:w,"data-testid":"video-player-modal",children:s.jsxs(pMo,{children:[p&&!b&&s.jsxs(s.Fragment,{children:[h!=null&&h!==""&&s.jsx(lMo,{src:h,alt:"Video thumbnail"}),s.jsx(aMo,{onClick:E,children:s.jsx(sMo,{windowSize:w})})]}),(!p||b)&&s.jsx(g.Suspense,{fallback:s.jsx("div",{style:{width:"100%",height:"100%"}}),children:s.jsx(ige,{src:e,playing:b,controls:n,muted:c,loop:d,width:"100%",height:"100%",onEnded:j,onPlay:I,config:k})})]})})})}),document.body):null:s.jsx(g.Suspense,{fallback:s.jsx("div",{style:{width:m,height:a,...u}}),children:s.jsx(ige,{src:e,playing:b,controls:n,muted:c,loop:d,width:m,height:a,style:u,light:p&&!b?h??!0:!1,onEnded:j,onPlay:I,config:k})})}const nMo=_t`
|
|
23820
23820
|
0% {
|
|
23821
23821
|
transform: rotate(0deg);
|
|
23822
23822
|
}
|
|
@@ -75467,8 +75467,8 @@ to {
|
|
|
75467
75467
|
display: flex;
|
|
75468
75468
|
align-items: center;
|
|
75469
75469
|
flex: 0 0 ${o.sp5};
|
|
75470
|
-
`;const{common:{cancel:QKr,strings:{
|
|
75471
|
-
width:
|
|
75470
|
+
`;const{common:{cancel:QKr,strings:{closingBrace:UKr,colon:WKr,openingBrace:GKr,space:YKr},texts:{amount:KKr,amountDue:qKr,creditsApplied:ZKr,currentTerm:JKr,discount:XKr,item:eqr,nextBilling:tqr,price:oqr,promotionalCredits:iqr,tax:rqr,total:nqr}},invoicingCommon:{subtotal:aqr},invoicingSubscriptionForm:sqr}=U.getLocalizedStrings();r.div`
|
|
75471
|
+
width: 720px;
|
|
75472
75472
|
max-width: 92vw;
|
|
75473
75473
|
display: flex;
|
|
75474
75474
|
flex-direction: column;
|
|
@@ -75500,11 +75500,37 @@ to {
|
|
|
75500
75500
|
text-align: right;
|
|
75501
75501
|
`;r.div`
|
|
75502
75502
|
border-top: 1px solid ${e=>e.theme.colors.grey2};
|
|
75503
|
+
`;r.div`
|
|
75504
|
+
display: grid;
|
|
75505
|
+
grid-template-columns: minmax(0, 1fr) repeat(3, minmax(88px, auto));
|
|
75506
|
+
column-gap: ${o.sp3};
|
|
75507
|
+
row-gap: ${o.sp2};
|
|
75508
|
+
align-items: start;
|
|
75509
|
+
max-height: 320px;
|
|
75510
|
+
overflow-y: auto;
|
|
75511
|
+
`;r(Wt)`
|
|
75512
|
+
color: ${e=>e.theme.colors.hero};
|
|
75513
|
+
text-align: ${e=>e.$alignEnd===!0?"right":"left"};
|
|
75514
|
+
`;r(rt)`
|
|
75515
|
+
color: ${e=>e.theme.colors.primary};
|
|
75516
|
+
`;r.div`
|
|
75517
|
+
display: flex;
|
|
75518
|
+
flex-direction: column;
|
|
75519
|
+
gap: ${o.sp1};
|
|
75520
|
+
min-width: 0;
|
|
75521
|
+
`;r.div`
|
|
75522
|
+
display: flex;
|
|
75523
|
+
justify-content: space-between;
|
|
75524
|
+
align-items: center;
|
|
75525
|
+
gap: ${o.sp3};
|
|
75526
|
+
padding: ${o.sp3};
|
|
75527
|
+
border-radius: 6px;
|
|
75528
|
+
background: ${e=>e.theme.colors.background};
|
|
75503
75529
|
`;r.div`
|
|
75504
75530
|
display: flex;
|
|
75505
75531
|
justify-content: flex-end;
|
|
75506
75532
|
gap: ${o.sp2};
|
|
75507
|
-
`;const{common:{strings:{emDash:
|
|
75533
|
+
`;const{common:{strings:{emDash:lqr,spacedMiddleDot:dqr}},invoicingSubscriptionDetail:{everyPeriodUnits:cqr,everyUnit:pqr}}=U.getLocalizedStrings(),{common:{strings:{one:uqr}},invoicingCommon:{minimumQuantityAllowed:hqr}}=U.getLocalizedStrings(),{common:{placeholder:{datePlaceholder:mqr},texts:{billingCycles:gqr,customer:fqr,plan:xqr,saveChanges:yqr,selectCustomer:wqr,selectPlan:bqr,startDate:vqr},currency:{currencySymbol:Cqr},strings:{one:Aqr}},dateFormat:{visual:{defaultInput:$qr}},invoicingCommon:kqr,invoicingSubscriptionForm:Sqr}=U.getLocalizedStrings();r.div`
|
|
75508
75534
|
display: contents;
|
|
75509
75535
|
|
|
75510
75536
|
&& .select-control,
|
|
@@ -75512,7 +75538,7 @@ to {
|
|
|
75512
75538
|
height: auto;
|
|
75513
75539
|
min-height: ${o.sp5};
|
|
75514
75540
|
}
|
|
75515
|
-
`;`${o.sp0}${o.sp0}`;const{space:
|
|
75541
|
+
`;`${o.sp0}${o.sp0}`;const{space:Eqr}=U.getLocalizedStrings().common.strings,Y5={controlHeight:new L(v[5],v[5]),paddingLeft:new L(v[3],v[4]),paddingRight:new L(v[2],v[3]),paddingTopBottom:new L(v[2],v[2]),width:new L(343,580,756)};r.div`
|
|
75516
75542
|
display: flex;
|
|
75517
75543
|
flex-direction: row;
|
|
75518
75544
|
align-items: flex-start;
|
|
@@ -75576,7 +75602,7 @@ to {
|
|
|
75576
75602
|
${Q.smallMedium.css}
|
|
75577
75603
|
color: ${e=>e.theme.colors.champion};
|
|
75578
75604
|
text-align: right;
|
|
75579
|
-
`;const{invoicingCatalogForm:Id,invoicingCommon:F0,common:{texts:{siteDefault:
|
|
75605
|
+
`;const{invoicingCatalogForm:Id,invoicingCommon:F0,common:{texts:{siteDefault:Lqr,taxable:tFi,showDescriptionInInvoices:oFi}}}=U.getLocalizedStrings();F0.catalogPricePointAddons,F0.catalogPricePointAddon,F0.catalogPricePointCharges,F0.catalogPricePointCharge,F0.catalogPricePointPlans,F0.catalogPricePointPlan;F0.catalogPricePoints,F0.catalogPricePoint;Id.pricingModelFlatFee,Id.pricingModelPerUnit,Id.pricingModelStairstep,Id.pricingModelTiered,Id.pricingModelVolume;Id.tierTypeFlatFee,Id.tierTypePackage,Id.tierTypePerUnit;Id.prorationFullTerm,Id.prorationPartialTerm;Id.applicabilityAll,Id.applicabilityRestricted;const iFi=[{key:"isTaxable",label:tFi},{key:"showDescriptionInInvoices",label:oFi},{key:"showDescriptionInQuotes",label:Id.labelShowDescriptionInQuotes}];iFi.map(e=>e.key);const{common:Iqr,common:{currency:{currencySymbol:jqr},texts:{type:Mqr}},invoicingCommon:Bqr,invoicingCatalogForm:Dqr}=U.getLocalizedStrings();r.div`
|
|
75580
75606
|
display: flex;
|
|
75581
75607
|
flex-direction: column;
|
|
75582
75608
|
gap: ${o.sp2};
|
|
@@ -75696,11 +75722,11 @@ to {
|
|
|
75696
75722
|
height: ${o.sp3};
|
|
75697
75723
|
flex-shrink: 0;
|
|
75698
75724
|
}
|
|
75699
|
-
`;const{invoicingCommon:
|
|
75725
|
+
`;const{invoicingCommon:Pqr,invoicingCatalogForm:Tqr,common:{currency:{currencySymbol:zqr},texts:{billingCycles:Fqr,accountName:Rqr,class:Oqr,selectClass:Nqr,description2:Hqr,addDescription:_qr,price:Vqr}}}=U.getLocalizedStrings();r.div`
|
|
75700
75726
|
border-top: 1px solid ${e=>e.theme.colors.grey2};
|
|
75701
75727
|
border-radius: ${o.sp2};
|
|
75702
75728
|
background-color: ${e=>e.theme.colors.grey5};
|
|
75703
|
-
`;const{common:
|
|
75729
|
+
`;const{common:Qqr,common:{texts:{addDescription:Uqr,externalId:Wqr,internalDescription:Gqr,notSet:Yqr,saveChanges:Kqr,type:qqr}},invoicingCommon:Zqr,invoicingCatalogForm:Jqr}=U.getLocalizedStrings();r.div`
|
|
75704
75730
|
display: flex;
|
|
75705
75731
|
flex-direction: column;
|
|
75706
75732
|
gap: 2px;
|
|
@@ -75759,7 +75785,7 @@ to {
|
|
|
75759
75785
|
align-items: center;
|
|
75760
75786
|
white-space: nowrap;
|
|
75761
75787
|
color: ${e=>e.theme.colors.hero};
|
|
75762
|
-
`;const{dateFormat:{visual:{defaultInput:
|
|
75788
|
+
`;const{dateFormat:{visual:{defaultInput:Xqr}},common:{placeholder:{datePlaceholder:eZr},strings:{percentage:tZr},texts:{discount:oZr,name:iZr,saveChanges:rZr,select:nZr,period:aZr},currency:{currencySymbol:sZr}},invoicingCommon:lZr,invoicingCouponForm:dZr}=U.getLocalizedStrings(),{common:ny,invoicingCommon:E8e,invoicingCustomerList:cZr}=U.getLocalizedStrings(),{strings:{emDash:pZr}}=ny;ny.texts.name,ny.settings.notifications.mode.email,ny.texts.billingAddress,E8e.cardStatus,E8e.autoCollection,ny.texts.status;const{common:uZr,dateFormat:{visual:{defaultInput:hZr}}}=U.getLocalizedStrings();r.div`
|
|
75763
75789
|
max-width: 92vw;
|
|
75764
75790
|
display: flex;
|
|
75765
75791
|
flex-direction: column;
|
|
@@ -75785,7 +75811,7 @@ to {
|
|
|
75785
75811
|
display: flex;
|
|
75786
75812
|
justify-content: flex-end;
|
|
75787
75813
|
gap: ${o.sp2};
|
|
75788
|
-
`;const{common:
|
|
75814
|
+
`;const{common:mZr,invoicingCommon:gZr,invoicingSubscriptionDetail:fZr}=U.getLocalizedStrings();r.div`
|
|
75789
75815
|
max-width: 92vw;
|
|
75790
75816
|
display: flex;
|
|
75791
75817
|
flex-direction: column;
|
|
@@ -75811,18 +75837,18 @@ to {
|
|
|
75811
75837
|
display: flex;
|
|
75812
75838
|
justify-content: flex-end;
|
|
75813
75839
|
gap: ${o.sp2};
|
|
75814
|
-
`;const{invoicingSubscriptionDetail:
|
|
75840
|
+
`;const{invoicingSubscriptionDetail:xZr}=U.getLocalizedStrings();r.div`
|
|
75815
75841
|
display: inline-flex;
|
|
75816
|
-
`;const{common:{all:
|
|
75842
|
+
`;const{common:{all:yZr,strings:{emDash:wZr},texts:{subscription:bZr,customer:vZr,plan:CZr,termEnd:AZr,nextBilling:$Zr,status:kZr,mrr:SZr,subscriptions:EZr,pauseSubscription:LZr}},invoicingCommon:rFi,invoicingSubscriptionDetail:IZr,invoicingSubscriptionList:jZr}=U.getLocalizedStrings();rFi.autoCollection;const{invoicingTransactionDetail:MZr}=U.getLocalizedStrings();r.div`
|
|
75817
75843
|
display: inline-flex;
|
|
75818
|
-
`;const{common:{all:
|
|
75844
|
+
`;const{common:{all:BZr,strings:{emDash:DZr},texts:{amount:PZr,customer:TZr,date:zZr,method:FZr,payments2:RZr,status:OZr,transactionId:NZr,transactionType:HZr}},invoicingCommon:nFi,invoicingPaymentList:_Zr}=U.getLocalizedStrings();nFi.gateway;const{common:{all:VZr,strings:{emDash:QZr,percentage:UZr},texts:{creditNotes:WZr,customer:GZr,status:YZr,transactionType:KZr,utilization:qZr}},invoicingCommon:UA,invoicingCreditList:ZZr}=U.getLocalizedStrings();r.div`
|
|
75819
75845
|
display: flex;
|
|
75820
75846
|
flex-direction: column;
|
|
75821
75847
|
align-items: flex-end;
|
|
75822
75848
|
width: 100%;
|
|
75823
75849
|
`;r(Ce)`
|
|
75824
75850
|
color: ${e=>e.theme.colors.hero};
|
|
75825
|
-
`;UA.creditNumber,UA.dateIssued,UA.creditedAgainst,UA.totalCredits;const{common:{all:
|
|
75851
|
+
`;UA.creditNumber,UA.dateIssued,UA.creditedAgainst,UA.totalCredits;const{common:{all:JZr,strings:{emDash:XZr,percentage:eJr},texts:{created:tJr,discount:oJr,name:iJr,status:rJr}},invoicingCommon:dx,invoicingDiscountList:nJr}=U.getLocalizedStrings();dx.couponId,dx.duration,dx.validTill,dx.applyOn,dx.redemptions;const{common:{all:aJr,strings:{emDash:sJr},texts:{amount:lJr,cancelCase:dJr,customer:cJr,dunning:pJr,failureReason:uJr,invoice:hJr,resolveCase:mJr,resumeDunning:gJr,status:fJr}},invoicingCommon:WA,invoicingDunningList:xJr}=U.getLocalizedStrings();r.div`
|
|
75826
75852
|
display: flex;
|
|
75827
75853
|
flex-direction: column;
|
|
75828
75854
|
overflow: hidden;
|
|
@@ -75850,7 +75876,7 @@ to {
|
|
|
75850
75876
|
gap: ${o.sp1};
|
|
75851
75877
|
`;r(Gd)`
|
|
75852
75878
|
background-color: ${({$variant:e,theme:t})=>e==="warning"?$.tagWarningColorLight:e==="success"?$.success:e==="attention"?$.tagAttentionColorLight:t.colors.grey1};
|
|
75853
|
-
`;WA.attempts,WA.step,WA.nextRetry,WA.daysPastDue;const{common:{all:
|
|
75879
|
+
`;WA.attempts,WA.step,WA.nextRetry,WA.daysPastDue;const{common:{all:yJr,strings:{emDash:wJr},settings:{bankConnectionHeader:bJr},texts:{addPlan:vJr,annual:CJr,monthly:AJr,quarterly:$Jr,status:kJr,plans:SJr}},invoicingCommon:EJr,invoicingCatalog:Ld,invoicingCatalogForm:{labelProductFamily:LJr}}=U.getLocalizedStrings();Ld.itemsNoun,Ld.addOnsNoun,Ld.oneTimeChargesNoun,Ld.plansNoun;Ld.addItem,Ld.addAddOn,Ld.addOneTimeCharge;Ld.stairstepSummary,Ld.stairstepSummarySingular,Ld.tieredSummary,Ld.tieredSummarySingular,Ld.volumeSummary,Ld.volumeSummarySingular;const{invoicingSettings:IJr,common:aFi}=U.getLocalizedStrings();aFi.copyToClipBoard;r.div`
|
|
75854
75880
|
display: flex;
|
|
75855
75881
|
align-items: center;
|
|
75856
75882
|
gap: ${o.sp2};
|
|
@@ -75908,7 +75934,7 @@ to {
|
|
|
75908
75934
|
`;r(tr)`
|
|
75909
75935
|
width: 16px;
|
|
75910
75936
|
height: 16px;
|
|
75911
|
-
`;const{invoicingSettings:tu,common:{settings:{title:{integrations
|
|
75937
|
+
`;const{invoicingSettings:tu,common:{settings:{title:{integrations:jJr}},texts:{dunning:MJr,invoiceBranding:BJr,paymentDestination:DJr}}}=U.getLocalizedStrings();tu.connectStripeDialogTitle,tu.connectStripeDialogDescription,tu.publishableKeyLabel,tu.publishableKeyPlaceholder,tu.secretKeyLabel,tu.secretKeyPlaceholder,tu.webhookSigningSecretLabel,tu.webhookSecretPlaceholder;tu.previewLineItemProfessionalServices,tu.previewLineItemOnboardingSetup;const sFi=r.div`
|
|
75912
75938
|
display: flex;
|
|
75913
75939
|
flex: 1 1 auto;
|
|
75914
75940
|
flex-direction: column;
|
|
@@ -76137,7 +76163,7 @@ to {
|
|
|
76137
76163
|
max-width: 220px;
|
|
76138
76164
|
color: ${e=>e.theme.colors.champion};
|
|
76139
76165
|
white-space: normal;
|
|
76140
|
-
`;const{common:{settings:{integrations:
|
|
76166
|
+
`;const{common:{settings:{integrations:PJr},texts:{chargebee:TJr,details:zJr}},invoicingSettings:{connectingButtonLabel:FJr,disconnectingButtonLabel:RJr}}=U.getLocalizedStrings(),{common:{settings:{integrations:cFi,title:{integrations:OJr}},texts:{chargebee:NJr}}}=U.getLocalizedStrings();cFi.cards.chargebee;r(pt)`
|
|
76141
76167
|
color: ${e=>e.theme.colors.champion};
|
|
76142
76168
|
`;r.div`
|
|
76143
76169
|
display: flex;
|
|
@@ -76156,7 +76182,7 @@ to {
|
|
|
76156
76182
|
color: ${e=>e.theme.colors.champion};
|
|
76157
76183
|
`;r(Wt)`
|
|
76158
76184
|
color: ${e=>e.theme.colors.hero};
|
|
76159
|
-
`;const{invoicingOnboarding:{footer:
|
|
76185
|
+
`;const{invoicingOnboarding:{footer:HJr},common:{strings:{comma:_Jr,space:VJr},settings:{integrations:{cards:{stripe:{dialog:{title:QJr}}}}}}}=U.getLocalizedStrings(),{common:pFi,invoicingSettings:UJr}=U.getLocalizedStrings(),{status:{pending:WJr},texts:{businessDetails:GJr,completed:YJr,dunning:KJr,invoiceBranding:qJr,settings:ZJr}}=pFi,{invoicingSettings:JJr,common:{texts:{paymentDestination:XJr,country:eXr},settings:{integrations:{badges:{connected:tXr}}}}}=U.getLocalizedStrings();o.sp5;r(lFi)`
|
|
76160
76186
|
align-items: stretch;
|
|
76161
76187
|
`;r(hVe)`
|
|
76162
76188
|
&:hover {
|
|
@@ -76286,7 +76312,7 @@ to {
|
|
|
76286
76312
|
&:disabled {
|
|
76287
76313
|
cursor: default;
|
|
76288
76314
|
}
|
|
76289
|
-
`;const{common:
|
|
76315
|
+
`;const{common:oXr,commonSetUp:{businessVerification:{phoneErrorForOnboarding:iXr}},invoicingCommon:rXr,invoicingSettings:nXr,dateFormat:aXr}=U.getLocalizedStrings(),{common:uFi,invoicingSettings:sXr}=U.getLocalizedStrings(),{texts:{action:lXr}}=uFi,{integrations:dXr}=U.getLocalizedStrings().common.settings.title,{common:{reset:cXr,retry:pXr,placeholder:{datePlaceholder:uXr},settings:{integrations:hXr},strings:{colon:mXr,middleDot:gXr},texts:fXr},dateFormat:{visual:{defaultInput:xXr}},invoicingSettings:yXr}=U.getLocalizedStrings(),hFi={connectionActionsGap:new L(v[2],v[2],v[3])};r.div`
|
|
76290
76316
|
display: flex;
|
|
76291
76317
|
flex-shrink: 0;
|
|
76292
76318
|
align-items: center;
|
|
@@ -76356,7 +76382,7 @@ to {
|
|
|
76356
76382
|
flex-direction: column;
|
|
76357
76383
|
gap: 2px;
|
|
76358
76384
|
min-width: 0;
|
|
76359
|
-
`;const{common:mFi}=U.getLocalizedStrings(),{strings:{colon:
|
|
76385
|
+
`;const{common:mFi}=U.getLocalizedStrings(),{strings:{colon:wXr,empty:bXr}}=mFi;r.div`
|
|
76360
76386
|
display: flex;
|
|
76361
76387
|
flex: 1 1 auto;
|
|
76362
76388
|
flex-direction: column;
|
|
@@ -76528,7 +76554,7 @@ to {
|
|
|
76528
76554
|
padding: ${o.sp5};
|
|
76529
76555
|
text-align: center;
|
|
76530
76556
|
color: ${e=>e.theme.colors.hero};
|
|
76531
|
-
`;const{invoicingCommon:
|
|
76557
|
+
`;const{invoicingCommon:vXr}=U.getLocalizedStrings();r.span`
|
|
76532
76558
|
display: inline-flex;
|
|
76533
76559
|
align-items: center;
|
|
76534
76560
|
gap: ${o.sp1};
|
|
@@ -76553,7 +76579,7 @@ to {
|
|
|
76553
76579
|
height: ${o.sp3};
|
|
76554
76580
|
flex-shrink: 0;
|
|
76555
76581
|
}
|
|
76556
|
-
`;const{dateFormat:{visual:{defaultInput:
|
|
76582
|
+
`;const{dateFormat:{visual:{defaultInput:CXr}},common:{cancel:AXr,strings:{colon:$Xr,emDash:kXr,hyphen:SXr,percentage:EXr,plus:LXr},placeholder:{datePlaceholder:IXr},headers:{notes:jXr},texts:{creditsApplied:MXr,saveChanges:BXr,country:DXr,sendReminder:PXr,issueCreditNote:TXr,regenerate:zXr,voidInvoice:FXr,customer:RXr,total:OXr,invoiceDate:NXr,dueDate:HXr,amountDue:_Xr,subscription:VXr,description2:QXr,transactionType:UXr,qty:WXr,unitAmount:GXr,amount:YXr,discount:KXr,tax:qXr,transaction:ZXr,date:JXr,status:XXr,invoiceSummary:een,billingAddress:ten,lineItems:oen,payments2:ien,dunning:ren,period:nen}},invoicingCommon:aen,invoicingInvoiceDetail:sen}=U.getLocalizedStrings();r.div`
|
|
76557
76583
|
display: flex;
|
|
76558
76584
|
flex-direction: column;
|
|
76559
76585
|
background-color: ${e=>e.theme.colors.grey5};
|
|
@@ -76598,7 +76624,7 @@ to {
|
|
|
76598
76624
|
width: ${o.sp4};
|
|
76599
76625
|
height: ${o.sp4};
|
|
76600
76626
|
display: flex;
|
|
76601
|
-
`;const{common:
|
|
76627
|
+
`;const{common:len,invoicingCustomerDetail:den}=U.getLocalizedStrings();r.div`
|
|
76602
76628
|
box-sizing: border-box;
|
|
76603
76629
|
width: 1200px;
|
|
76604
76630
|
max-width: calc(100vw - ${o.sp5});
|
|
@@ -76673,7 +76699,7 @@ to {
|
|
|
76673
76699
|
flex-shrink: 0;
|
|
76674
76700
|
justify-content: flex-end;
|
|
76675
76701
|
gap: ${o.sp2};
|
|
76676
|
-
`;const{common:
|
|
76702
|
+
`;const{common:cen,common:{strings:{colon:pen,dot:uen,emDash:hen,plus:men,space:gen,spacedMiddleDot:fen}},commonSetUp:{businessVerification:{phoneErrorForOnboarding:xen}},invoicingCommon:yen,invoicingCustomerDetail:wen}=U.getLocalizedStrings(),cx={switchControlHeight:new L(v[5],v[5]),switchPaddingTopBottom:new L(v[2],v[2]),switchPaddingLeft:new L(v[3],v[4]),switchPaddingRight:new L(v[2],v[3])};r.div`
|
|
76677
76703
|
display: flex;
|
|
76678
76704
|
flex-direction: column;
|
|
76679
76705
|
background-color: ${e=>e.theme.colors.grey5};
|
|
@@ -76860,7 +76886,7 @@ to {
|
|
|
76860
76886
|
&:hover {
|
|
76861
76887
|
color: ${e=>e.theme.colors.champion};
|
|
76862
76888
|
}
|
|
76863
|
-
`;const{common:
|
|
76889
|
+
`;const{common:ben,invoicingCommon:ven,invoicingCustomerDetail:Cen}=U.getLocalizedStrings();r.div`
|
|
76864
76890
|
display: flex;
|
|
76865
76891
|
flex-direction: column;
|
|
76866
76892
|
gap: ${o.sp4};
|
|
@@ -76939,7 +76965,7 @@ to {
|
|
|
76939
76965
|
display: flex;
|
|
76940
76966
|
justify-content: space-between;
|
|
76941
76967
|
gap: ${o.sp2};
|
|
76942
|
-
`;const{common:fFi,invoicingCommon:
|
|
76968
|
+
`;const{common:fFi,invoicingCommon:Aen,invoicingCustomerDetail:$en}=U.getLocalizedStrings(),{currency:{currencySymbol:ken}}=fFi;r.div`
|
|
76943
76969
|
display: flex;
|
|
76944
76970
|
flex-direction: column;
|
|
76945
76971
|
gap: ${o.sp4};
|
|
@@ -76977,7 +77003,7 @@ to {
|
|
|
76977
77003
|
display: flex;
|
|
76978
77004
|
justify-content: flex-end;
|
|
76979
77005
|
gap: ${o.sp2};
|
|
76980
|
-
`;const{dateFormat:{visual:{defaultInput:
|
|
77006
|
+
`;const{dateFormat:{visual:{defaultInput:Sen}},common:{strings:{colon:Een},placeholder:{datePlaceholder:Len}}}=U.getLocalizedStrings();r.div`
|
|
76981
77007
|
display: flex;
|
|
76982
77008
|
align-items: center;
|
|
76983
77009
|
justify-content: space-between;
|
|
@@ -77014,7 +77040,7 @@ to {
|
|
|
77014
77040
|
min-width: 0;
|
|
77015
77041
|
`;r(Ce)`
|
|
77016
77042
|
color: ${e=>e.theme.colors.hero};
|
|
77017
|
-
`;const{common:{cancel:
|
|
77043
|
+
`;const{common:{cancel:Ien,no:jen,strings:{colon:Men,emDash:Ben,spacedMiddleDot:Den,one:Pen},yes:Ten,currency:{currencyCode:zen},settings:{integrations:{badges:{active:Fen}}},texts:{currentTerm:Ren,plan:Oen,saveChanges:Nen,customer:Hen,termEnd:_en,productName:Ven,transactionType:Qen,qty:Uen,amount:Wen,status:Gen,reason:Yen,selectPlan:Ken,currency:qen,createdDate:Zen,mrr:Jen,billingCycles:Xen,address:etn,pauseSubscription:ttn,daysDays:otn,lifecycle:itn}},invoicingCommon:rtn,invoicingSubscriptionDetail:ntn,invoicingSubscriptionForm:atn}=U.getLocalizedStrings(),{common:{no:stn,strings:{emDash:ltn,hyphen:dtn},yes:ctn,texts:{amount:ptn,customer:utn,date:htn,invoice:mtn,status:gtn,refund:ftn,transactionId:xtn,transactionType:ytn,currency:wtn,subscription:btn,paymentMethod:vtn,cardNumber:Ctn,transactionDate:Atn}},invoicingCommon:$tn,invoicingTransactionDetail:ktn}=U.getLocalizedStrings();r.div`
|
|
77018
77044
|
padding: ${o.sp0} ${o.sp4};
|
|
77019
77045
|
`;r(Yr)`
|
|
77020
77046
|
cursor: pointer;
|
|
@@ -77023,7 +77049,7 @@ to {
|
|
|
77023
77049
|
&:hover {
|
|
77024
77050
|
text-decoration: underline;
|
|
77025
77051
|
}
|
|
77026
|
-
`;const{common:{strings:{emDash:
|
|
77052
|
+
`;const{common:{strings:{emDash:Stn,hyphen:Etn},headers:{notes:Ltn},texts:{customer:Itn,total:jtn,date:Mtn,available:Btn,description2:Dtn,qty:Ptn,amount:Ttn,invoice:ztn,transactionType:Ftn,status:Rtn,subscription:Otn,reason:Ntn,lineItems:Htn,refund:_tn}},invoicingCommon:Vtn,invoicingCreditDetail:Qtn}=U.getLocalizedStrings();r(Yr)`
|
|
77027
77053
|
cursor: pointer;
|
|
77028
77054
|
color: ${e=>e.theme.colors.brandColorJadeDark};
|
|
77029
77055
|
|
|
@@ -77032,7 +77058,7 @@ to {
|
|
|
77032
77058
|
}
|
|
77033
77059
|
`;r.div`
|
|
77034
77060
|
padding: ${o.sp0} ${o.sp5};
|
|
77035
|
-
`;const{common:
|
|
77061
|
+
`;const{common:Utn,common:{strings:{colon:Wtn,commaSpace:Gtn,emDash:Ytn,percentage:Ktn},texts:{createdAt:qtn,currency:Ztn,discount:Jtn,name:Xtn,notSet:eon,saveChanges:ton,status:oon}},invoicingCommon:ion,invoicingDiscountDetail:ron}=U.getLocalizedStrings(),{common:{strings:{emDash:non,spacedMiddleDot:aon},texts:{amount:son,cancelCase:lon,customer:don,failureReason:con,invoice:pon,resolveCase:uon,resumeDunning:hon,sendEmail:mon,status:gon}},invoicingCommon:fon,invoicingDunningDetail:xon}=U.getLocalizedStrings();r.ul`
|
|
77036
77062
|
display: flex;
|
|
77037
77063
|
flex-direction: column;
|
|
77038
77064
|
margin: 0;
|
|
@@ -77065,7 +77091,7 @@ to {
|
|
|
77065
77091
|
display: block;
|
|
77066
77092
|
padding: ${o.sp4} ${o.sp5};
|
|
77067
77093
|
color: ${e=>e.theme.colors.champion};
|
|
77068
|
-
`;const{common:
|
|
77094
|
+
`;const{common:yon,invoicingDunningDetail:won}=U.getLocalizedStrings();r.div`
|
|
77069
77095
|
box-sizing: border-box;
|
|
77070
77096
|
width: 1200px;
|
|
77071
77097
|
max-width: calc(100vw - ${o.sp5});
|
|
@@ -77149,7 +77175,7 @@ to {
|
|
|
77149
77175
|
flex-shrink: 0;
|
|
77150
77176
|
justify-content: flex-end;
|
|
77151
77177
|
gap: ${o.sp2};
|
|
77152
|
-
`;const{common:xFi,common:{texts:{type:
|
|
77178
|
+
`;const{common:xFi,common:{texts:{type:bon}},invoicingCommon:von,invoicingCatalogDetail:Con,invoicingCatalogForm:Aon}=U.getLocalizedStrings(),{colon:$on,emDash:kon}=xFi.strings;r.div`
|
|
77153
77179
|
padding: ${o.sp3} ${o.sp4};
|
|
77154
77180
|
border: 1px solid ${e=>e.theme.colors.alert};
|
|
77155
77181
|
border-radius: ${o.sp2};
|
|
@@ -77172,7 +77198,7 @@ to {
|
|
|
77172
77198
|
border-radius: ${o.sp2};
|
|
77173
77199
|
background-color: ${e=>e.theme.colors.grey5};
|
|
77174
77200
|
color: ${e=>e.theme.colors.hero};
|
|
77175
|
-
`;const{invoicingOverview:
|
|
77201
|
+
`;const{invoicingOverview:Son,common:{new:Eon,strings:{hyphen:Lon,plus:Ion},texts:{churned:jon}}}=U.getLocalizedStrings();r(mVe)`
|
|
77176
77202
|
flex: 2;
|
|
77177
77203
|
background-color: ${e=>e.theme.colors.grey5};
|
|
77178
77204
|
`;r(pt)`
|
|
@@ -77215,7 +77241,7 @@ to {
|
|
|
77215
77241
|
border-radius: ${o.sp2};
|
|
77216
77242
|
`;r(Ko)`
|
|
77217
77243
|
color: ${e=>e.$tone};
|
|
77218
|
-
`;const yFi=e=>g.createElement("svg",{viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e},g.createElement("path",{d:"M0.929688 8.00813C0.929688 8.675 1.02283 9.32014 1.19683 9.93121M2.20132 3.98138C3.46937 2.17826 5.566 1 7.93783 1C11.8083 1 14.946 4.13765 14.946 8.00813C14.946 10.2186 13.9226 12.1901 12.3237 13.4745M2.01692 11.7591C2.35672 12.2943 2.7671 12.7804 3.23498 13.2041M4.80209 14.2773C5.39521 14.5746 6.03636 14.7901 6.7108 14.9092M8.65531 14.98C9.34096 14.9103 9.99736 14.7418 10.6101 14.4888",stroke:"currentColor",strokeWidth:1.25,strokeLinecap:"round",strokeLinejoin:"round"}),g.createElement("path",{d:"M8 4.66602V7.93891L11.0228 10.9322",stroke:"currentColor",strokeWidth:1.25,strokeLinecap:"round",strokeLinejoin:"round"}),g.createElement("path",{d:"M4.1813 4.23989L1.83594 4.24014V1.89453",stroke:"currentColor",strokeWidth:1.25,strokeLinecap:"round",strokeLinejoin:"round"})),{invoicingOverview:
|
|
77244
|
+
`;const yFi=e=>g.createElement("svg",{viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e},g.createElement("path",{d:"M0.929688 8.00813C0.929688 8.675 1.02283 9.32014 1.19683 9.93121M2.20132 3.98138C3.46937 2.17826 5.566 1 7.93783 1C11.8083 1 14.946 4.13765 14.946 8.00813C14.946 10.2186 13.9226 12.1901 12.3237 13.4745M2.01692 11.7591C2.35672 12.2943 2.7671 12.7804 3.23498 13.2041M4.80209 14.2773C5.39521 14.5746 6.03636 14.7901 6.7108 14.9092M8.65531 14.98C9.34096 14.9103 9.99736 14.7418 10.6101 14.4888",stroke:"currentColor",strokeWidth:1.25,strokeLinecap:"round",strokeLinejoin:"round"}),g.createElement("path",{d:"M8 4.66602V7.93891L11.0228 10.9322",stroke:"currentColor",strokeWidth:1.25,strokeLinecap:"round",strokeLinejoin:"round"}),g.createElement("path",{d:"M4.1813 4.23989L1.83594 4.24014V1.89453",stroke:"currentColor",strokeWidth:1.25,strokeLinecap:"round",strokeLinejoin:"round"})),{invoicingOverview:Mon,common:{timeStrings:{overdue:Bon}}}=U.getLocalizedStrings();r.div`
|
|
77219
77245
|
display: flex;
|
|
77220
77246
|
gap: ${o.sp3};
|
|
77221
77247
|
padding: ${o.sp0} ${o.sp5};
|
|
@@ -77256,7 +77282,7 @@ to {
|
|
|
77256
77282
|
width: ${o.sp3};
|
|
77257
77283
|
height: ${o.sp3};
|
|
77258
77284
|
color: ${e=>e.theme.colors.champion};
|
|
77259
|
-
`;const{common:{strings:{colon:
|
|
77285
|
+
`;const{common:{strings:{colon:Don,emDash:Pon},texts:{subscription:Ton,customer:zon,plan:Fon,termEnd:Ron,nextBilling:Oon,billing:Non,status:Hon,mrr:_on,open:Von,churned:Qon,annual:Uon,monthly:Won,yearly:Gon}},invoicingOverview:L8e}=U.getLocalizedStrings();L8e.tabMonthlyMrrBreakdown,L8e.tabRecentSubscriptions;r.div`
|
|
77260
77286
|
display: flex;
|
|
77261
77287
|
flex-direction: column;
|
|
77262
77288
|
padding: ${o.sp0} ${o.sp5};
|
|
@@ -77327,7 +77353,7 @@ to {
|
|
|
77327
77353
|
`;r(Pt)`
|
|
77328
77354
|
color: ${e=>e.theme.colors.primary};
|
|
77329
77355
|
margin-left: ${o.sp3};
|
|
77330
|
-
`;const wFi=e=>g.createElement("svg",{viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e},g.createElement("g",{clipPath:"url(#clip0_522_67994)"},g.createElement("path",{d:"M13 2.5H3C2.72386 2.5 2.5 2.72386 2.5 3V13C2.5 13.2761 2.72386 13.5 3 13.5H13C13.2761 13.5 13.5 13.2761 13.5 13V3C13.5 2.72386 13.2761 2.5 13 2.5Z",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round"}),g.createElement("path",{d:"M11 1.5V3.5",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round"}),g.createElement("path",{d:"M5 1.5V3.5",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round"}),g.createElement("path",{d:"M7.35631 6.80586L7.78381 5.65052C7.85807 5.44983 8.14193 5.44983 8.21619 5.65052L8.64369 6.80586C8.8238 7.29254 9.20746 7.6762 9.69414 7.85631L10.8495 8.28381C11.0502 8.35807 11.0502 8.64193 10.8495 8.71619L9.69414 9.14369C9.20746 9.3238 8.8238 9.70746 8.64369 10.1941L8.21619 11.3495C8.14193 11.5502 7.85807 11.5502 7.78381 11.3495L7.35631 10.1941C7.1762 9.70746 6.79254 9.3238 6.30586 9.14369L5.15052 8.71619C4.94983 8.64193 4.94983 8.35807 5.15052 8.28381L6.30586 7.85631C6.79254 7.6762 7.1762 7.29254 7.35631 6.80586Z",fill:"currentColor"})),g.createElement("defs",null,g.createElement("clipPath",{id:"clip0_522_67994"},g.createElement("rect",{width:16,height:16,fill:"white"})))),bFi=e=>g.createElement("svg",{viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e},g.createElement("path",{d:"M3.09802 14.3257V9.82568H6.09802",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round"}),g.createElement("path",{d:"M14.098 14.3257H2.09802",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round"}),g.createElement("path",{d:"M6.09802 14.3257V6.82568H9.59802",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round"}),g.createElement("path",{d:"M9.59802 14.3257V3.82568H13.098V14.3257",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round"}),g.createElement("path",{d:"M7.84795 1.67432L1.90197 7.62029",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round"}),g.createElement("path",{d:"M7.84802 3.67432V1.67432H5.84802",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round"})),{common:vFi,invoicingCommon:
|
|
77356
|
+
`;const wFi=e=>g.createElement("svg",{viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e},g.createElement("g",{clipPath:"url(#clip0_522_67994)"},g.createElement("path",{d:"M13 2.5H3C2.72386 2.5 2.5 2.72386 2.5 3V13C2.5 13.2761 2.72386 13.5 3 13.5H13C13.2761 13.5 13.5 13.2761 13.5 13V3C13.5 2.72386 13.2761 2.5 13 2.5Z",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round"}),g.createElement("path",{d:"M11 1.5V3.5",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round"}),g.createElement("path",{d:"M5 1.5V3.5",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round"}),g.createElement("path",{d:"M7.35631 6.80586L7.78381 5.65052C7.85807 5.44983 8.14193 5.44983 8.21619 5.65052L8.64369 6.80586C8.8238 7.29254 9.20746 7.6762 9.69414 7.85631L10.8495 8.28381C11.0502 8.35807 11.0502 8.64193 10.8495 8.71619L9.69414 9.14369C9.20746 9.3238 8.8238 9.70746 8.64369 10.1941L8.21619 11.3495C8.14193 11.5502 7.85807 11.5502 7.78381 11.3495L7.35631 10.1941C7.1762 9.70746 6.79254 9.3238 6.30586 9.14369L5.15052 8.71619C4.94983 8.64193 4.94983 8.35807 5.15052 8.28381L6.30586 7.85631C6.79254 7.6762 7.1762 7.29254 7.35631 6.80586Z",fill:"currentColor"})),g.createElement("defs",null,g.createElement("clipPath",{id:"clip0_522_67994"},g.createElement("rect",{width:16,height:16,fill:"white"})))),bFi=e=>g.createElement("svg",{viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e},g.createElement("path",{d:"M3.09802 14.3257V9.82568H6.09802",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round"}),g.createElement("path",{d:"M14.098 14.3257H2.09802",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round"}),g.createElement("path",{d:"M6.09802 14.3257V6.82568H9.59802",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round"}),g.createElement("path",{d:"M9.59802 14.3257V3.82568H13.098V14.3257",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round"}),g.createElement("path",{d:"M7.84795 1.67432L1.90197 7.62029",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round"}),g.createElement("path",{d:"M7.84802 3.67432V1.67432H5.84802",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round"})),{common:vFi,invoicingCommon:Yon,invoicingOverview:CFi}=U.getLocalizedStrings(),{strings:{emDash:Kon,hyphen:qon,percentage:Zon,plus:Jon},texts:{arr:AFi,churned:Xon,mrr:$Fi,netRevenue:kFi,overview:ein,totalMrr:tin}}=vFi;r.div`
|
|
77331
77357
|
display: flex;
|
|
77332
77358
|
flex: 1 1 auto;
|
|
77333
77359
|
flex-direction: column;
|
|
@@ -77508,7 +77534,7 @@ to {
|
|
|
77508
77534
|
&:hover {
|
|
77509
77535
|
text-decoration: underline;
|
|
77510
77536
|
}
|
|
77511
|
-
`;const{common:{strings:{emDash:
|
|
77537
|
+
`;const{common:{strings:{emDash:oin},texts:{auditLog:iin,action:rin}},dateFormat:{visual:{MMMDCommaYYYYformat:nin}},invoicingCommon:ain,invoicingAuditLog:sin,timeFormat:{hmmAFormat:lin}}=U.getLocalizedStrings(),{common:EFi,invoicingDataImport:din}=U.getLocalizedStrings(),{strings:{emDash:cin}}=EFi;r.div`
|
|
77512
77538
|
display: flex;
|
|
77513
77539
|
flex: 1 1 auto;
|
|
77514
77540
|
flex-direction: column;
|
|
@@ -77541,7 +77567,7 @@ to {
|
|
|
77541
77567
|
display: flex;
|
|
77542
77568
|
align-items: center;
|
|
77543
77569
|
gap: ${o.sp2};
|
|
77544
|
-
`;const{common:I8e,common:{headers:{recommended:
|
|
77570
|
+
`;const{common:I8e,common:{headers:{recommended:pin},settings:{integrations:{cards:{chargebee:{dialog:{siteHintSuffix:uin}}}}},strings:{space:hin,spacedMiddleDot:min},texts:{creditNotes:LFi,customers:IFi,fetchingYourDataFromChargebee:gin,imported:fin,invoices:jFi,review:MFi,subscriptions:BFi}},invoicingCommon:j8e,invoicingDataImport:W3}=U.getLocalizedStrings();W3.templateProductCatalogPlans,j8e.addOns,j8e.oneTimeChargesTab,W3.templateCouponsAndDiscounts;W3.chargebeeStepSettingsImportExport,W3.chargebeeStepDetailModulesList,W3.chargebeeStepDetailPickAllTime,W3.chargebeeStepExportModule,W3.chargebeeStepDropCsvFiles;I8e.upload,I8e.done;const DFi=_t`
|
|
77545
77571
|
0% { transform: translateX(-100%); }
|
|
77546
77572
|
100% { transform: translateX(400%); }
|
|
77547
77573
|
`;r.div`
|
|
@@ -77871,7 +77897,7 @@ to {
|
|
|
77871
77897
|
`;r(Fo)`
|
|
77872
77898
|
position: relative;
|
|
77873
77899
|
color: ${e=>e.theme.colors.brandColorJadeDark};
|
|
77874
|
-
`;const{common:{done:
|
|
77900
|
+
`;const{common:{done:xin,search:yin,snackBar:{error:win},strings:{emDash:bin},texts:{created:vin,imported:Cin,issue:Ain,review:$in,warnings:kin}},invoicingDataImport:Dy}=U.getLocalizedStrings();Dy.diagnosticsAllSeverities,Dy.diagnosticsErrors;Dy.diagnosticsAllOutcomes,Dy.diagnosticsSkipped,Dy.diagnosticsWarningOutcome;r.div`
|
|
77875
77901
|
display: flex;
|
|
77876
77902
|
align-items: center;
|
|
77877
77903
|
gap: ${o.sp2};
|
|
@@ -77955,7 +77981,7 @@ to {
|
|
|
77955
77981
|
color: ${e=>e.theme.colors.hero};
|
|
77956
77982
|
`;r(De)`
|
|
77957
77983
|
color: ${e=>e.theme.colors.champion};
|
|
77958
|
-
`;const zFi=e=>g.createElement("svg",{viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e},g.createElement("path",{d:"M8 4.5V5.5",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round"}),g.createElement("path",{d:"M8 10.5V11.5",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round"}),g.createElement("path",{d:"M8 14C11.3137 14 14 11.3137 14 8C14 4.68629 11.3137 2 8 2C4.68629 2 2 4.68629 2 8C2 11.3137 4.68629 14 8 14Z",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round"}),g.createElement("path",{d:"M6.5 10.5H8.75C9.08152 10.5 9.39946 10.3683 9.63388 10.1339C9.8683 9.89946 10 9.58152 10 9.25C10 8.91848 9.8683 8.60054 9.63388 8.36612C9.39946 8.1317 9.08152 8 8.75 8H7.25C6.91848 8 6.60054 7.8683 6.36612 7.63388C6.1317 7.39946 6 7.08152 6 6.75C6 6.41848 6.1317 6.10054 6.36612 5.86612C6.60054 5.6317 6.91848 5.5 7.25 5.5H9.5",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round"})),{invoicingOnboarding:
|
|
77984
|
+
`;const zFi=e=>g.createElement("svg",{viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e},g.createElement("path",{d:"M8 4.5V5.5",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round"}),g.createElement("path",{d:"M8 10.5V11.5",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round"}),g.createElement("path",{d:"M8 14C11.3137 14 14 11.3137 14 8C14 4.68629 11.3137 2 8 2C4.68629 2 2 4.68629 2 8C2 11.3137 4.68629 14 8 14Z",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round"}),g.createElement("path",{d:"M6.5 10.5H8.75C9.08152 10.5 9.39946 10.3683 9.63388 10.1339C9.8683 9.89946 10 9.58152 10 9.25C10 8.91848 9.8683 8.60054 9.63388 8.36612C9.39946 8.1317 9.08152 8 8.75 8H7.25C6.91848 8 6.60054 7.8683 6.36612 7.63388C6.1317 7.39946 6 7.08152 6 6.75C6 6.41848 6.1317 6.10054 6.36612 5.86612C6.60054 5.6317 6.91848 5.5 7.25 5.5H9.5",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round"})),{invoicingOnboarding:Sin,common:{privacyPolicyUrl:Ein,termsUrl:Lin,texts:{and:Iin,invoicing:jin,privacyPolicy:Min,scheduleDemo:Bin}}}=U.getLocalizedStrings(),M8e={promoImageWidth:new L(343,688),promoImageHeight:new L(209,421)};r.div`
|
|
77959
77985
|
display: flex;
|
|
77960
77986
|
flex: 1 1 auto;
|
|
77961
77987
|
min-height: 100%;
|
|
@@ -78011,7 +78037,7 @@ to {
|
|
|
78011
78037
|
margin: ${o.sp3} auto;
|
|
78012
78038
|
max-width: 927px;
|
|
78013
78039
|
color: ${e=>e.theme.colors.hero};
|
|
78014
|
-
`;const{common:
|
|
78040
|
+
`;const{common:Din,invoicingCommon:Pin,invoicingPaymentLink:Tin}=U.getLocalizedStrings();r.div`
|
|
78015
78041
|
display: flex;
|
|
78016
78042
|
flex: 1 1 auto;
|
|
78017
78043
|
align-items: center;
|
|
@@ -78285,7 +78311,7 @@ to {
|
|
|
78285
78311
|
`;r.div`
|
|
78286
78312
|
padding-left: ${o.sp4};
|
|
78287
78313
|
padding-right: ${o.sp4};
|
|
78288
|
-
`;const{common:{texts:{enterAmount:
|
|
78314
|
+
`;const{common:{texts:{enterAmount:zin,from:Fin,to:Rin}}}=U.getLocalizedStrings();r.div`
|
|
78289
78315
|
display: flex;
|
|
78290
78316
|
align-items: center;
|
|
78291
78317
|
gap: ${o.sp2};
|
|
@@ -78335,7 +78361,7 @@ to {
|
|
|
78335
78361
|
color: ${e=>e.theme.colors.hero};
|
|
78336
78362
|
flex-shrink: 0;
|
|
78337
78363
|
background-color: transparent;
|
|
78338
|
-
`;const{expenseAutomation:{transactions:{filters:{amountOperators:
|
|
78364
|
+
`;const{expenseAutomation:{transactions:{filters:{amountOperators:Oin}}},common:{texts:{greaterThan:Nin,lessThan:Hin}}}=U.getLocalizedStrings();r.div`
|
|
78339
78365
|
display: flex;
|
|
78340
78366
|
justify-content: space-between;
|
|
78341
78367
|
align-items: center;
|
|
@@ -78343,7 +78369,7 @@ to {
|
|
|
78343
78369
|
color: ${e=>e.theme.colors.hero};
|
|
78344
78370
|
width: ${o.sp3};
|
|
78345
78371
|
height: ${o.sp3};
|
|
78346
|
-
`;const{expenseAutomation:{transactions:{filters:{categoryLabels:
|
|
78372
|
+
`;const{expenseAutomation:{transactions:{filters:{categoryLabels:_in}}},common:{texts:{payee:Vin,category:Qin,class:Uin,amount:Win}}}=U.getLocalizedStrings(),{common:{strings:{empty:Gin},texts:{addFilter:Yin,category:Kin,clearAll:qin,filterBy:Zin,select:Jin}},expenseAutomation:{transactions:{filters:Xin}},spendManagement:{filters:{searchPlaceholder:ern}}}=U.getLocalizedStrings(),{common:{back:trn,close:orn,texts:{refresh:irn,filter:rrn},strings:{percentage:nrn},updated:arn,completeText:srn},expenseAutomation:{common:{numbers:{maximumCount:lrn}}}}=U.getLocalizedStrings();r(ns)`
|
|
78347
78373
|
display: flex;
|
|
78348
78374
|
width: ${o.sp3};
|
|
78349
78375
|
height: ${o.sp3};
|
|
@@ -78505,7 +78531,7 @@ to {
|
|
|
78505
78531
|
color: ${e=>e.theme.colors.brandColorJade};
|
|
78506
78532
|
`;r(cr)`
|
|
78507
78533
|
color: ${e=>e.theme.colors.primary};
|
|
78508
|
-
`;const{common:{headers:{jeSchedules:
|
|
78534
|
+
`;const{common:{headers:{jeSchedules:drn,fluxAnalysis:crn,insights:prn,reconciliation:urn},strings:{empty:hrn},pendingReviewText:mrn,texts:{transactions:grn,receipts:frn,completed:xrn,taDa:yrn,zeniAIIcon:wrn,aiAgents:brn}},uncategorizedTransactionList:{missingReceipt:{bulkUpload:{missing:vrn,unmatched:Crn}}},expenseAutomation:{transactions:{subTitles:{review:{item1:Arn,item2:$rn},autoCategorized:{item1:krn,item2:Srn}},searchPlaceholder:Ern,allDoneText:Lrn},jeSchedules:{searchPlaceholder:Irn,allDoneText:jrn,tabs:Mrn},missingReceipts:{subTitles:Brn,searchPlaceholder:Drn,allDoneText:Prn},fluxAnalysis:{subTitles:{item1:Trn,item2:zrn},searchPlaceholder:Frn,emptyPageTexts:{youDidIt:Rrn,allReviewed:Orn}},accountRecon:{review:{allDoneText:Nrn},reconcile:{allDoneText:Hrn},subTitles:{review:{item1:_rn,item2:Vrn},reconcile:{item1:Qrn,item2:Urn}}}}}=U.getLocalizedStrings();r(uf)`
|
|
78509
78535
|
color: ${e=>e.theme.colors.hero};
|
|
78510
78536
|
height: ${o.sp3};
|
|
78511
78537
|
width: ${o.sp3};
|
|
@@ -78513,7 +78539,7 @@ to {
|
|
|
78513
78539
|
&:hover {
|
|
78514
78540
|
color: ${e=>e.theme.colors.primary};
|
|
78515
78541
|
}
|
|
78516
|
-
`;const{common:{texts:{account:
|
|
78542
|
+
`;const{common:{texts:{account:Wrn,amount:Grn,date:Yrn,memo:Krn,payee:qrn,paymentOrDeposit:Zrn,transactionType:Jrn}}}=U.getLocalizedStrings(),{dateFormat:Xrn,common:{strings:{hyphen:enn}}}=U.getLocalizedStrings();r(ce)`
|
|
78517
78543
|
color: inherit;
|
|
78518
78544
|
white-space: nowrap;
|
|
78519
78545
|
`;r(ce)`
|
|
@@ -78534,7 +78560,7 @@ to {
|
|
|
78534
78560
|
align-items: center;
|
|
78535
78561
|
gap: ${o.sp3};
|
|
78536
78562
|
justify-content: flex-start;
|
|
78537
|
-
`;const gVe=v[7],fVe=v[5],XFi=v[5],eRi=U.getLocalizedStrings(),{common:{strings:{empty:
|
|
78563
|
+
`;const gVe=v[7],fVe=v[5],XFi=v[5],eRi=U.getLocalizedStrings(),{common:{strings:{empty:tnn}}}=eRi,tRi=g.createContext(null);function oRi(e){const{columns:t,sortState:i,onHeaderClick:n,isAllSelected:a,isIndeterminate:l,onToggleAll:d}=e;return s.jsxs(sRi,{children:[s.jsx(aRi,{children:s.jsx(Fj,{name:"reconcileSelectAll",checkBoxValue:"selectAll",value:a||l,onChange:d})}),s.jsx(lRi,{children:t.map(c=>{const p=i.columnKey===c.sortKey;return s.jsx(dRi,{$flex:c.width,children:s.jsx(cRi,{children:s.jsxs(pRi,{type:"button",$active:p,onClick:()=>n(c),children:[c.value,s.jsx(uRi,{$direction:p?i.direction:"asc",children:s.jsx(pn,{width:8,height:8})})]})})},c.key)})})]})}const iRi=g.forwardRef(({children:e,style:t,...i},n)=>{const a=g.useContext(tRi);if(a==null)return null;const l={...t,overflow:"visible",height:`${Number.parseFloat(String(t?.height??0))+fVe}px`};return s.jsxs(rRi,{ref:n,style:l,...i,children:[oRi(a),s.jsx(nRi,{children:e})]})});iRi.displayName="InnerElement";r.div`
|
|
78538
78564
|
width: 100%;
|
|
78539
78565
|
height: 100%;
|
|
78540
78566
|
`;r.form`
|
|
@@ -78867,7 +78893,7 @@ to {
|
|
|
78867
78893
|
`,IRi=r(S6)`
|
|
78868
78894
|
width: ${o.sp2};
|
|
78869
78895
|
height: ${o.sp2};
|
|
78870
|
-
`,jRi=v[5],MRi=v[7],BRi=v[7],DRi=e=>g.createElement("svg",{viewBox:"0 0 32 32",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e},g.createElement("path",{d:"M14.498 12.047L15.4956 9.35122C15.6688 8.88293 16.3312 8.88293 16.5044 9.35122L17.502 12.047C17.9222 13.1826 18.8174 14.0778 19.953 14.498L22.6488 15.4956C23.1171 15.6688 23.1171 16.3312 22.6488 16.5044L19.953 17.502C18.8174 17.9222 17.9222 18.8174 17.502 19.953L16.5044 22.6488C16.3312 23.1171 15.6688 23.1171 15.4956 22.6488L14.498 19.953C14.0778 18.8174 13.1826 17.9222 12.047 17.502L9.35122 16.5044C8.88293 16.3312 8.88293 15.6688 9.35122 15.4956L12.047 14.498C13.1826 14.0778 14.0778 13.1826 14.498 12.047Z",stroke:"currentColor",strokeWidth:1.25}),g.createElement("path",{d:"M29.2611 5.55236L24.3943 10.1902C24.333 10.2488 24.2604 10.2943 24.181 10.3239C24.1016 10.3535 24.017 10.3667 23.9323 10.3626C23.8488 10.3586 23.7669 10.3379 23.6915 10.3018C23.6162 10.2656 23.5488 10.2146 23.4935 10.152L21.2781 7.63528",stroke:"currentColor",strokeWidth:1.25,strokeLinecap:"round",strokeLinejoin:"round"})),{dateFormat:PRi,expenseAutomation:TRi,common:
|
|
78896
|
+
`,jRi=v[5],MRi=v[7],BRi=v[7],DRi=e=>g.createElement("svg",{viewBox:"0 0 32 32",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e},g.createElement("path",{d:"M14.498 12.047L15.4956 9.35122C15.6688 8.88293 16.3312 8.88293 16.5044 9.35122L17.502 12.047C17.9222 13.1826 18.8174 14.0778 19.953 14.498L22.6488 15.4956C23.1171 15.6688 23.1171 16.3312 22.6488 16.5044L19.953 17.502C18.8174 17.9222 17.9222 18.8174 17.502 19.953L16.5044 22.6488C16.3312 23.1171 15.6688 23.1171 15.4956 22.6488L14.498 19.953C14.0778 18.8174 13.1826 17.9222 12.047 17.502L9.35122 16.5044C8.88293 16.3312 8.88293 15.6688 9.35122 15.4956L12.047 14.498C13.1826 14.0778 14.0778 13.1826 14.498 12.047Z",stroke:"currentColor",strokeWidth:1.25}),g.createElement("path",{d:"M29.2611 5.55236L24.3943 10.1902C24.333 10.2488 24.2604 10.2943 24.181 10.3239C24.1016 10.3535 24.017 10.3667 23.9323 10.3626C23.8488 10.3586 23.7669 10.3379 23.6915 10.3018C23.6162 10.2656 23.5488 10.2146 23.4935 10.152L21.2781 7.63528",stroke:"currentColor",strokeWidth:1.25,strokeLinecap:"round",strokeLinejoin:"round"})),{dateFormat:PRi,expenseAutomation:TRi,common:onn}=U.getLocalizedStrings(),{visual:inn}=PRi,{accountRecon:rnn}=TRi,zRi=g.createContext(void 0),FRi=g.forwardRef((e,t)=>{const{children:i,style:n,...a}=e,l=g.useContext(zRi),d={...n,overflow:"visible",height:`${Number.parseFloat(String(n?.height??0))+jRi}px`};return s.jsxs(RRi,{ref:t,style:d,...a,children:[l!=null&&s.jsx(vRi,{onColumnSortConfigChanged:l.onColumnSortConfigChanged,sortConfig:l.sortConfig}),s.jsx(ORi,{children:i})]})});FRi.displayName="Account recon review table inner element type";r.div`
|
|
78871
78897
|
display: flex;
|
|
78872
78898
|
align-items: center;
|
|
78873
78899
|
column-gap: ${o.sp1};
|
|
@@ -79162,7 +79188,7 @@ to {
|
|
|
79162
79188
|
display: flex;
|
|
79163
79189
|
justify-content: flex-end;
|
|
79164
79190
|
align-items: center;
|
|
79165
|
-
`;const{expenseAutomation:{accountRecon:{reconciliation:{statsCards:
|
|
79191
|
+
`;const{expenseAutomation:{accountRecon:{reconciliation:{statsCards:nnn}}}}=U.getLocalizedStrings();r.div`
|
|
79166
79192
|
display: flex;
|
|
79167
79193
|
flex-wrap: wrap;
|
|
79168
79194
|
align-items: stretch;
|
|
@@ -79239,7 +79265,7 @@ to {
|
|
|
79239
79265
|
white-space: nowrap;
|
|
79240
79266
|
overflow: hidden;
|
|
79241
79267
|
text-overflow: ellipsis;
|
|
79242
|
-
`;const{common:{loading:
|
|
79268
|
+
`;const{common:{loading:ann,texts:{assets:snn,cashAndEquivalents:lnn,liabilities:dnn,creditCards:cnn}}}=U.getLocalizedStrings(),{common:{loading:pnn,texts:{assets:unn,cashAndEquivalents:hnn,creditCards:mnn,liabilities:gnn}}}=U.getLocalizedStrings(),{common:{texts:{assets:fnn,cashAndEquivalents:xnn,creditCards:ynn,liabilities:wnn}}}=U.getLocalizedStrings(),U8e={wrapperPadding:new L(v[2],v[2],v[2],v[5]),wrapperPaddingRight:new L(v[2],v[2],v[2],v[5])};r.div`
|
|
79243
79269
|
display: flex;
|
|
79244
79270
|
height: 100%;
|
|
79245
79271
|
width: 100%;
|
|
@@ -79273,12 +79299,12 @@ to {
|
|
|
79273
79299
|
`;r.div`
|
|
79274
79300
|
height: ${e=>e.heightValue}px;
|
|
79275
79301
|
width: 100%;
|
|
79276
|
-
`;const{common:
|
|
79302
|
+
`;const{common:bnn}=U.getLocalizedStrings();r.div`
|
|
79277
79303
|
display: flex;
|
|
79278
79304
|
flex-direction: column;
|
|
79279
79305
|
gap: ${o.sp3};
|
|
79280
79306
|
width: 100%;
|
|
79281
|
-
`;const{common:
|
|
79307
|
+
`;const{common:vnn,expenseAutomation:{fluxAnalysis:Cnn}}=U.getLocalizedStrings();r.div`
|
|
79282
79308
|
width: 100%;
|
|
79283
79309
|
`;r.div`
|
|
79284
79310
|
width: 100%;
|
|
@@ -79391,7 +79417,7 @@ to {
|
|
|
79391
79417
|
display: flex;
|
|
79392
79418
|
justify-content: flex-end;
|
|
79393
79419
|
padding: ${o.sp0} ${o.sp3};
|
|
79394
|
-
`;const{expenseAutomation:{jeSchedules:{actualMatching:
|
|
79420
|
+
`;const{expenseAutomation:{jeSchedules:{actualMatching:Ann,oneTimeAccrualType:$nn}},common:{strings:{hyphen:knn}},dateFormat:Snn}=U.getLocalizedStrings(),{expenseAutomation:{jeSchedules:{actualMatching:Enn}},common:{strings:{middleDot:Lnn}}}=U.getLocalizedStrings();r.div`
|
|
79395
79421
|
display: grid;
|
|
79396
79422
|
grid-template-columns: repeat(4, minmax(0, 1fr));
|
|
79397
79423
|
gap: ${o.sp3};
|
|
@@ -79499,7 +79525,7 @@ to {
|
|
|
79499
79525
|
display: inline-flex;
|
|
79500
79526
|
align-items: center;
|
|
79501
79527
|
max-width: 100%;
|
|
79502
|
-
`;const{expenseAutomation:{jeSchedules:{actualMatching:
|
|
79528
|
+
`;const{expenseAutomation:{jeSchedules:{actualMatching:Inn}}}=U.getLocalizedStrings(),{common:{strings:{hyphen:jnn},ignore:Mnn,texts:{review:Bnn}},expenseAutomation:{jeSchedules:{actualMatching:Dnn}}}=U.getLocalizedStrings();r.div`
|
|
79503
79529
|
${Q.standardSemiBold.css}
|
|
79504
79530
|
display: grid;
|
|
79505
79531
|
grid-template-columns: ${e=>e.$gridTemplateColumns};
|
|
@@ -79574,7 +79600,7 @@ to {
|
|
|
79574
79600
|
height: ${o.sp3};
|
|
79575
79601
|
flex-shrink: 0;
|
|
79576
79602
|
color: ${$.tagWarningColorLight};
|
|
79577
|
-
`;const{expenseAutomation:{jeSchedules:{actualMatching:
|
|
79603
|
+
`;const{expenseAutomation:{jeSchedules:{actualMatching:Pnn}}}=U.getLocalizedStrings();r.div`
|
|
79578
79604
|
display: flex;
|
|
79579
79605
|
flex-direction: column;
|
|
79580
79606
|
align-self: stretch;
|
|
@@ -79691,7 +79717,7 @@ to {
|
|
|
79691
79717
|
color: ${e=>e.theme.colors.hero};
|
|
79692
79718
|
`;r(ce)`
|
|
79693
79719
|
color: ${e=>e.theme.colors.hero};
|
|
79694
|
-
`;const{dateFormat:
|
|
79720
|
+
`;const{dateFormat:Tnn,common:{strings:{hyphen:znn}}}=U.getLocalizedStrings(),{common:{strings:{hyphen:Fnn},texts:{transaction:Rnn}},expenseAutomation:{jeSchedules:{actualMatching:KRi}}}=U.getLocalizedStrings();KRi.matchDetail;const{common:{back:Onn,ignore:Nnn,texts:{refresh:Hnn},strings:{hyphen:_nn}},expenseAutomation:{jeSchedules:{actualMatching:yVe}}}=U.getLocalizedStrings();yVe.matchModal;const qRi=yVe.matchDetail,{reversalFailed:Vnn,undoFailed:Qnn}=qRi,ZRi=`${$.brandColorOpalLight}57`,JRi=_t`
|
|
79695
79721
|
0% {
|
|
79696
79722
|
transform: rotate(0deg);
|
|
79697
79723
|
}
|
|
@@ -80200,7 +80226,7 @@ to {
|
|
|
80200
80226
|
background: ${e=>e.theme.colors.grey5};
|
|
80201
80227
|
border: 1px solid ${e=>e.theme.colors.grey2};
|
|
80202
80228
|
border-radius: ${o.sp2};
|
|
80203
|
-
`;const{dateFormat:{visual:{MMMDCommaYYYYformat:
|
|
80229
|
+
`;const{dateFormat:{visual:{MMMDCommaYYYYformat:Unn}}}=U.getLocalizedStrings(),{expenseAutomation:{jeSchedules:{actualMatching:Wnn}}}=U.getLocalizedStrings(),{expenseAutomation:{jeSchedules:{actualMatching:oOi}},common:{strings:{hyphen:Gnn},currency:Ynn}}=U.getLocalizedStrings();oOi.matchModal;r.div`
|
|
80204
80230
|
display: flex;
|
|
80205
80231
|
flex-direction: column;
|
|
80206
80232
|
flex-shrink: 0;
|
|
@@ -80333,7 +80359,7 @@ to {
|
|
|
80333
80359
|
flex-shrink: 0;
|
|
80334
80360
|
color: ${e=>e.theme.colors.primary};
|
|
80335
80361
|
font-variant-numeric: tabular-nums;
|
|
80336
|
-
`;const{expenseAutomation:{jeSchedules:{actualMatching:iOi}},common:{cancel:
|
|
80362
|
+
`;const{expenseAutomation:{jeSchedules:{actualMatching:iOi}},common:{cancel:Knn,close:qnn,strings:{hyphen:Znn},currency:Jnn}}=U.getLocalizedStrings();iOi.matchModal;r.form`
|
|
80337
80363
|
display: flex;
|
|
80338
80364
|
flex-direction: column;
|
|
80339
80365
|
flex: 1;
|
|
@@ -80836,7 +80862,7 @@ to {
|
|
|
80836
80862
|
height: ${o.sp3};
|
|
80837
80863
|
flex-shrink: 0;
|
|
80838
80864
|
color: ${e=>e.theme.colors.hero};
|
|
80839
|
-
`;const{expenseAutomation:{jeSchedules:COi}}=U.getLocalizedStrings(),{all:
|
|
80865
|
+
`;const{expenseAutomation:{jeSchedules:COi}}=U.getLocalizedStrings(),{all:Xnn,...ean}=COi.typeFilter;r.button`
|
|
80840
80866
|
height: ${o.sp6};
|
|
80841
80867
|
flex-shrink: 0;
|
|
80842
80868
|
box-sizing: border-box;
|
|
@@ -81087,7 +81113,7 @@ to {
|
|
|
81087
81113
|
display: flex;
|
|
81088
81114
|
padding: ${e=>e.$padding};
|
|
81089
81115
|
box-sizing: border-box;
|
|
81090
|
-
`,{common:{texts:{highFive:
|
|
81116
|
+
`,{common:{texts:{highFive:tan,allSchedulesReviewed:oan}}}=U.getLocalizedStrings(),ENi=v[5];function b9e(e){return e==="end"?"flex-end":e==="center"?"center":"flex-start"}function LNi(e,t,i,n){return s.jsx(DNi,{$gridTemplateColumns:n,children:e.map(a=>{const l=t.columnKey===a.key;return s.jsx(PNi,{$width:a.width,$padding:a.headerPadding,$justify:b9e(a.align),$hasLeftBorder:a.key==="action",$stickyRight:a.stickyRight===!0,children:s.jsx(TNi,{$justify:b9e(a.align),children:a.sortable?s.jsxs(zNi,{type:"button",$active:l,onClick:()=>i(a),children:[a.value,s.jsx(FNi,{$direction:l?t.direction:"asc",children:s.jsx(pn,{width:8,height:8})})]}):a.value})},a.key)})})}const INi=g.createContext(null),jNi=g.forwardRef(({children:e,style:t,...i},n)=>{const a=g.useContext(INi);if(a==null)return null;const{activeHeaderItems:l,sortState:d,onHeaderClick:c,gridTemplateColumns:p}=a,u={...t,overflow:"visible",height:`${parseFloat(String(t?.height??0))+ENi}px`};return s.jsxs(MNi,{ref:n,style:u,...i,children:[LNi(l,d,c,p),s.jsx(BNi,{children:e})]})});jNi.displayName="InnerElement";r.div`
|
|
81091
81117
|
display: flex;
|
|
81092
81118
|
flex-direction: column;
|
|
81093
81119
|
gap: ${o.sp3};
|
|
@@ -81272,7 +81298,7 @@ to {
|
|
|
81272
81298
|
`:de`
|
|
81273
81299
|
overflow-y: auto;
|
|
81274
81300
|
`}
|
|
81275
|
-
`;const{expenseAutomation:{jeSchedules:RNi},common:{pendingReviewText:
|
|
81301
|
+
`;const{expenseAutomation:{jeSchedules:RNi},common:{pendingReviewText:ian}}=U.getLocalizedStrings();RNi.kpiStrip.typeLabels;r.div`
|
|
81276
81302
|
display: flex;
|
|
81277
81303
|
flex-direction: row;
|
|
81278
81304
|
gap: ${o.sp3};
|
|
@@ -81358,7 +81384,7 @@ to {
|
|
|
81358
81384
|
height: ${o.sp3};
|
|
81359
81385
|
flex-shrink: 0;
|
|
81360
81386
|
color: ${e=>e.theme.colors.hero};
|
|
81361
|
-
`;const{common:{pendingReviewText:
|
|
81387
|
+
`;const{common:{pendingReviewText:ran,texts:{created:nan,highFive:aan,allSchedulesReviewed:san}},expenseAutomation:{jeSchedules:{groups:{failedPostings:lan}}}}=U.getLocalizedStrings();o.sp0,o.sp0;r.div`
|
|
81362
81388
|
display: flex;
|
|
81363
81389
|
flex-direction: column;
|
|
81364
81390
|
background-color: ${e=>e.theme.colors.grey4};
|
|
@@ -81381,7 +81407,7 @@ to {
|
|
|
81381
81407
|
`:de`
|
|
81382
81408
|
overflow-y: auto;
|
|
81383
81409
|
`}
|
|
81384
|
-
`;const{common:{texts:{vendor:
|
|
81410
|
+
`;const{common:{texts:{vendor:dan,type:can,date:pan,amount:uan}},dateFormat:han,expenseAutomation:{jeSchedules:ONi},jeSchedules:{scheduleDetails:man}}=U.getLocalizedStrings();ONi.newSchedule;r(ce)`
|
|
81385
81411
|
padding: ${o.sp3} ${o.sp4};
|
|
81386
81412
|
color: ${e=>e.theme.colors.hero};
|
|
81387
81413
|
`;r.div`
|
|
@@ -81705,7 +81731,7 @@ to {
|
|
|
81705
81731
|
color: ${e=>e.$isDisabled?e.theme.colors.grey2:e.$isActive?e.theme.colors.champion:e.theme.colors.hero};
|
|
81706
81732
|
`;r(Ce)`
|
|
81707
81733
|
color: ${e=>e.$isDisabled?e.theme.colors.grey2:e.theme.colors.hero};
|
|
81708
|
-
`;const QNi={paddingLeft:new L(v[3],v[4])},{common:UNi,dateFormat:
|
|
81734
|
+
`;const QNi={paddingLeft:new L(v[3],v[4])},{common:UNi,dateFormat:gan,expenseAutomation:{jeSchedules:WNi}}=U.getLocalizedStrings(),{currency:fan}=UNi,lc=WNi.newSchedule;lc.oneTimeAccrual;lc.scheduleDetails.oneTimeAccrual,lc.scheduleDetails.oneTimeAccrualDescription,lc.scheduleDetails.recurringSchedule;lc.scheduleType.fixedAsset,lc.scheduleType.fixedAssetDescription,lc.scheduleType.prepaid,lc.scheduleType.prepaidDescription,lc.scheduleType.accrual,lc.scheduleType.accrualDescription,lc.scheduleType.deferredRevenue,lc.scheduleType.deferredRevenueDescription;r.div`
|
|
81709
81735
|
display: flex;
|
|
81710
81736
|
flex-direction: column;
|
|
81711
81737
|
flex: 1;
|
|
@@ -81834,7 +81860,7 @@ to {
|
|
|
81834
81860
|
background: ${e=>e.theme.colors.grey5};
|
|
81835
81861
|
`;r(ce)`
|
|
81836
81862
|
color: ${e=>e.hasAmount?e.theme.colors[Ji]:e.theme.colors[yl]};
|
|
81837
|
-
`;const{common:{cancel:
|
|
81863
|
+
`;const{common:{cancel:xan,close:yan,confirmationPopup:wan},dateFormat:ban,expenseAutomation:{jeSchedules:{newSchedule:van}}}=U.getLocalizedStrings();r.div`
|
|
81838
81864
|
display: flex;
|
|
81839
81865
|
align-items: baseline;
|
|
81840
81866
|
justify-content: end;
|
|
@@ -81865,7 +81891,7 @@ to {
|
|
|
81865
81891
|
height: 100%;
|
|
81866
81892
|
min-width: 0;
|
|
81867
81893
|
background-color: ${e=>e.theme.colors.grey4};
|
|
81868
|
-
`;r.div``;const GNi=32,{common:{texts:{vendor:
|
|
81894
|
+
`;r.div``;const GNi=32,{common:{texts:{vendor:Can,amount:Aan,receipts:$an,category:kan,date:San,class:Ean}}}=U.getLocalizedStrings();r.div`
|
|
81869
81895
|
top: ${o.sp0};
|
|
81870
81896
|
left: ${o.sp0};
|
|
81871
81897
|
height: ${GNi}px;
|
|
@@ -81937,7 +81963,7 @@ to {
|
|
|
81937
81963
|
}
|
|
81938
81964
|
`;r(St)`
|
|
81939
81965
|
display: flex;
|
|
81940
|
-
`;const{common:{strings:{underscore:
|
|
81966
|
+
`;const{common:{strings:{underscore:Lan,hyphen:Ian,empty:jan},documents:{singleFileUploadSizeErrorMessage:Man,multipleFileUploadSizeErrorMessage:Ban},snackBar:{missing_receipts_attachment:{failed:Dan}},tooltips:{addMissingReceipt:Pan}},dateFormat:Tan}=U.getLocalizedStrings(),ZA={containerPaddingLeftRight:new L(v[4],v[4])};r.div`
|
|
81941
81967
|
display: flex;
|
|
81942
81968
|
height: 100%;
|
|
81943
81969
|
background-color: ${e=>e.theme.colors.grey5};
|
|
@@ -82024,7 +82050,7 @@ to {
|
|
|
82024
82050
|
color: inherit;
|
|
82025
82051
|
`;r.div`
|
|
82026
82052
|
display: flex;
|
|
82027
|
-
`;const{common:
|
|
82053
|
+
`;const{common:zan}=U.getLocalizedStrings();r.div`
|
|
82028
82054
|
flex-shrink: 0;
|
|
82029
82055
|
width: auto;
|
|
82030
82056
|
`;r.div`
|
|
@@ -82740,7 +82766,7 @@ to {
|
|
|
82740
82766
|
z-index: ${v[2]};
|
|
82741
82767
|
min-width: ${z4}px;
|
|
82742
82768
|
max-width: ${lv}px;
|
|
82743
|
-
`;const{common:
|
|
82769
|
+
`;const{common:Fan,cockpit:Ran,dateFormat:Oan}=U.getLocalizedStrings(),P_i=g.createContext(!1);P_i.Provider;const T_i=v[5],ZVe=44,z_i=12,{expenseAutomation:{transactions:{header:{toFrom:Nan,memoReceipt:Han}}},common:{texts:{payee:_an,category:Van,class:Qan,project:Uan,date:Wan,transactionType:Gan,amount:Yan}}}=U.getLocalizedStrings();r.div`
|
|
82744
82770
|
top: ${o.sp0};
|
|
82745
82771
|
left: ${o.sp0};
|
|
82746
82772
|
height: ${T_i}px;
|
|
@@ -82834,7 +82860,7 @@ to {
|
|
|
82834
82860
|
`;r(St)`
|
|
82835
82861
|
display: flex;
|
|
82836
82862
|
white-space: nowrap;
|
|
82837
|
-
`;const F_i=e=>g.createElement("svg",{viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e},g.createElement("path",{d:"M4.85022 13.5836L5.52057 12.9133C5.63229 12.8016 5.77164 12.7217 5.92438 12.6815C6.07712 12.6413 6.23779 12.6424 6.38999 12.6846C6.54218 12.7268 6.68046 12.8086 6.7907 12.9217C6.90094 13.0348 6.97919 13.1751 7.01747 13.3283L7.08174 13.5836L7.8119 13.0972C7.98361 12.9827 8.1897 12.9312 8.39508 12.9515C8.60046 12.9719 8.79245 13.0628 8.93837 13.2087L9.31326 13.5836H11.0985",stroke:"currentColor",strokeWidth:1.5,strokeLinecap:"round",strokeLinejoin:"round"}),g.createElement("path",{d:"M17.4206 6H2.24629C2.12792 6 2.01441 6.04702 1.93071 6.13072C1.84701 6.21442 1.79999 6.32794 1.79999 6.4463V17.1576C1.79999 17.276 1.84701 17.3895 1.93071 17.4732C2.01441 17.5569 2.12792 17.6039 2.24629 17.6039H21.8837C22.0021 17.6039 22.1156 17.5569 22.1993 17.4732C22.283 17.3895 22.33 17.276 22.33 17.1576V6.4463C22.33 6.32794 22.283 6.21442 22.1993 6.13072C22.1156 6.04702 22.0021 6 21.8837 6H17.4206Z",stroke:"currentColor",strokeWidth:1.5,strokeLinecap:"round",strokeLinejoin:"round"}),g.createElement("path",{d:"M16.0854 9.6521H19.6559V12.0656H16.0854V9.6521Z",stroke:"currentColor",strokeWidth:1.5,strokeLinecap:"round",strokeLinejoin:"round"})),{common:{strings:{underscore:
|
|
82863
|
+
`;const F_i=e=>g.createElement("svg",{viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e},g.createElement("path",{d:"M4.85022 13.5836L5.52057 12.9133C5.63229 12.8016 5.77164 12.7217 5.92438 12.6815C6.07712 12.6413 6.23779 12.6424 6.38999 12.6846C6.54218 12.7268 6.68046 12.8086 6.7907 12.9217C6.90094 13.0348 6.97919 13.1751 7.01747 13.3283L7.08174 13.5836L7.8119 13.0972C7.98361 12.9827 8.1897 12.9312 8.39508 12.9515C8.60046 12.9719 8.79245 13.0628 8.93837 13.2087L9.31326 13.5836H11.0985",stroke:"currentColor",strokeWidth:1.5,strokeLinecap:"round",strokeLinejoin:"round"}),g.createElement("path",{d:"M17.4206 6H2.24629C2.12792 6 2.01441 6.04702 1.93071 6.13072C1.84701 6.21442 1.79999 6.32794 1.79999 6.4463V17.1576C1.79999 17.276 1.84701 17.3895 1.93071 17.4732C2.01441 17.5569 2.12792 17.6039 2.24629 17.6039H21.8837C22.0021 17.6039 22.1156 17.5569 22.1993 17.4732C22.283 17.3895 22.33 17.276 22.33 17.1576V6.4463C22.33 6.32794 22.283 6.21442 22.1993 6.13072C22.1156 6.04702 22.0021 6 21.8837 6H17.4206Z",stroke:"currentColor",strokeWidth:1.5,strokeLinecap:"round",strokeLinejoin:"round"}),g.createElement("path",{d:"M16.0854 9.6521H19.6559V12.0656H16.0854V9.6521Z",stroke:"currentColor",strokeWidth:1.5,strokeLinecap:"round",strokeLinejoin:"round"})),{common:{strings:{underscore:Kan,hyphen:qan,empty:Zan,colon:Jan},tooltips:{addReceipt:Xan,viewReceipt:esn,viewReceipts:tsn},texts:{account:osn,addCategory2:isn,addClass2:rsn,addPayee:nsn,description2:asn,memo:ssn,method:lsn}},expenseAutomation:{transactions:dsn},dateFormat:csn}=U.getLocalizedStrings(),Ku={containerPaddingTopBottom:new L(6,6),borderRadius:6};r.div`
|
|
82838
82864
|
width: ${o.sp0};
|
|
82839
82865
|
height: ${o.sp0};
|
|
82840
82866
|
`;r.div`
|
|
@@ -83316,7 +83342,7 @@ to {
|
|
|
83316
83342
|
`;r.div`
|
|
83317
83343
|
box-sizing: border-box;
|
|
83318
83344
|
border-bottom: 1px solid ${e=>e.theme.colors.grey2};
|
|
83319
|
-
`;const{common:
|
|
83345
|
+
`;const{common:psn,transactionDetail:{notCategorizedTooltipText:usn}}=U.getLocalizedStrings(),__i=g.createContext({headerHeight:0,headerNode:null,totalMinWidth:void 0});g.forwardRef(function({children:e,style:t,...i},n){const{headerHeight:a,headerNode:l,totalMinWidth:d}=g.useContext(__i),c=t;return s.jsxs("div",{ref:n,style:{...c,position:"relative",height:(c.height??0)+a,minWidth:d},...i,children:[l,e]})});r.div`
|
|
83320
83346
|
position: sticky;
|
|
83321
83347
|
right: ${N_i}px;
|
|
83322
83348
|
flex: 0 0 0;
|
|
@@ -83445,7 +83471,7 @@ to {
|
|
|
83445
83471
|
z-index: 2;
|
|
83446
83472
|
box-sizing: border-box;
|
|
83447
83473
|
overflow: hidden;
|
|
83448
|
-
`;const{expenseAutomation:{transactions:{emptyStates:
|
|
83474
|
+
`;const{expenseAutomation:{transactions:{emptyStates:hsn}}}=U.getLocalizedStrings();r.div`
|
|
83449
83475
|
width: 100%;
|
|
83450
83476
|
min-height: 0;
|
|
83451
83477
|
display: flex;
|
|
@@ -83458,7 +83484,7 @@ to {
|
|
|
83458
83484
|
display: flex;
|
|
83459
83485
|
flex-direction: column;
|
|
83460
83486
|
width: 100%;
|
|
83461
|
-
`;const{expenseAutomation:{transactions:{transactionGroupFilter:
|
|
83487
|
+
`;const{expenseAutomation:{transactions:{transactionGroupFilter:msn}},common:{all:gsn,texts:{income:fsn,expenses:xsn}}}=U.getLocalizedStrings();r.div`
|
|
83462
83488
|
display: flex;
|
|
83463
83489
|
flex-direction: row;
|
|
83464
83490
|
align-items: flex-end;
|
|
@@ -83585,7 +83611,7 @@ to {
|
|
|
83585
83611
|
height: 12px;
|
|
83586
83612
|
flex-shrink: 0;
|
|
83587
83613
|
margin-top: 2px;
|
|
83588
|
-
`;const{expenseAutomation:{accountRecon:{reconciliation:{stepsBanner:
|
|
83614
|
+
`;const{expenseAutomation:{accountRecon:{reconciliation:{stepsBanner:ysn}}},common:{show:wsn,texts:{hide:bsn,select:vsn,step1:Csn,step2:Asn}}}=U.getLocalizedStrings(),{expenseAutomation:{fluxAnalysis:{stepsBanner:$sn}},common:{footer:{markAsReviewed:ksn},show:Ssn,texts:{hide:Esn,step1:Lsn,step2:Isn}}}=U.getLocalizedStrings();r.div`
|
|
83589
83615
|
display: flex;
|
|
83590
83616
|
align-items: flex-start;
|
|
83591
83617
|
border: 1px solid ${e=>e.theme.colors.grey2};
|
|
@@ -83769,7 +83795,7 @@ to {
|
|
|
83769
83795
|
padding: ${o.sp1} 12px ${o.sp1} ${o.sp3};
|
|
83770
83796
|
`;r(St)`
|
|
83771
83797
|
color: ${e=>e.theme.colors.hero};
|
|
83772
|
-
`;const{expenseAutomation:{jeSchedules:{existingSchedules:{downloadRange
|
|
83798
|
+
`;const{expenseAutomation:{jeSchedules:{existingSchedules:{downloadRange:jsn}}},common:V_i,dateFormat:Msn}=U.getLocalizedStrings(),{download:Bsn}=V_i;r.div`
|
|
83773
83799
|
display: flex;
|
|
83774
83800
|
flex-direction: column;
|
|
83775
83801
|
gap: ${o.sp4};
|
|
@@ -83829,7 +83855,7 @@ to {
|
|
|
83829
83855
|
border-radius: ${o.sp2};
|
|
83830
83856
|
height: 58px;
|
|
83831
83857
|
animation: ${Q_i} 1.5s ease-in-out infinite;
|
|
83832
|
-
`;r.div``;const U_i=32,{common:{texts:{vendor:
|
|
83858
|
+
`;r.div``;const U_i=32,{common:{texts:{vendor:Dsn,amount:Psn,receipts:Tsn,category:zsn,date:Fsn,class:Rsn}}}=U.getLocalizedStrings();r.div`
|
|
83833
83859
|
top: ${o.sp0};
|
|
83834
83860
|
left: ${o.sp0};
|
|
83835
83861
|
height: ${U_i}px;
|
|
@@ -83901,7 +83927,7 @@ to {
|
|
|
83901
83927
|
}
|
|
83902
83928
|
`;r(St)`
|
|
83903
83929
|
display: flex;
|
|
83904
|
-
`;const{dateFormat:
|
|
83930
|
+
`;const{dateFormat:Osn,common:{strings:{underscore:Nsn,hyphen:Hsn,empty:_sn},tooltips:{viewReceipt:Vsn,viewReceipts:Qsn}}}=U.getLocalizedStrings(),XA={containerPaddingLeftRight:new L(v[4],v[4])};r.div`
|
|
83905
83931
|
display: flex;
|
|
83906
83932
|
height: 100%;
|
|
83907
83933
|
background-color: ${e=>e.theme.colors.grey5};
|
|
@@ -84175,7 +84201,7 @@ to {
|
|
|
84175
84201
|
border-color: ${e=>e.theme.colors.primary};
|
|
84176
84202
|
border-top-color: ${e=>e.theme.colors.primary};
|
|
84177
84203
|
}
|
|
84178
|
-
`;const{common:{texts:{vendor:
|
|
84204
|
+
`;const{common:{texts:{vendor:Usn,amount:Wsn,date:Gsn}},uncategorizedTransactionList:{missingReceipt:{bulkUpload:Ysn}}}=U.getLocalizedStrings();r.div`
|
|
84179
84205
|
display: flex;
|
|
84180
84206
|
flex-direction: column;
|
|
84181
84207
|
pointer-events: ${e=>e.$interactionLocked?"none":"auto"};
|
|
@@ -84248,7 +84274,7 @@ to {
|
|
|
84248
84274
|
height: 1px;
|
|
84249
84275
|
width: 100%;
|
|
84250
84276
|
flex-shrink: 0;
|
|
84251
|
-
`;const{common:{texts:{vendor:
|
|
84277
|
+
`;const{common:{texts:{vendor:Ksn,amount:qsn,date:Zsn}},uncategorizedTransactionList:{missingReceipt:{bulkUpload:Jsn}}}=U.getLocalizedStrings();r.div`
|
|
84252
84278
|
display: flex;
|
|
84253
84279
|
flex-direction: column;
|
|
84254
84280
|
pointer-events: ${e=>e.$interactionLocked?"none":"auto"};
|
|
@@ -84276,7 +84302,7 @@ to {
|
|
|
84276
84302
|
flex: 1;
|
|
84277
84303
|
text-align: right;
|
|
84278
84304
|
color: ${e=>e.theme.colors.champion};
|
|
84279
|
-
`;const{uncategorizedTransactionList:{missingReceipt:{bulkUpload:
|
|
84305
|
+
`;const{uncategorizedTransactionList:{missingReceipt:{bulkUpload:Xsn}}}=U.getLocalizedStrings();r.div`
|
|
84280
84306
|
width: 100%;
|
|
84281
84307
|
min-height: 300px;
|
|
84282
84308
|
max-height: 650px;
|
|
@@ -84412,7 +84438,7 @@ to {
|
|
|
84412
84438
|
max-width: 100%;
|
|
84413
84439
|
max-height: 100%;
|
|
84414
84440
|
object-fit: contain;
|
|
84415
|
-
`;const{uncategorizedTransactionList:{missingReceipt:{bulkUpload:
|
|
84441
|
+
`;const{uncategorizedTransactionList:{missingReceipt:{bulkUpload:eln}}}=U.getLocalizedStrings();r.div`
|
|
84416
84442
|
display: grid;
|
|
84417
84443
|
grid-template-columns: ${e=>e.windowSize==="small"?"1fr":"1fr 1fr"};
|
|
84418
84444
|
grid-template-rows: ${e=>e.windowSize==="small"?"1fr 1fr 1fr 1fr":"auto"};
|
|
@@ -84492,7 +84518,7 @@ to {
|
|
|
84492
84518
|
margin-left: ${e=>P1.leftMargin.valuePx(e.windowSize)};
|
|
84493
84519
|
margin-right: ${e=>P1.rightMargin.valuePx(e.windowSize)};
|
|
84494
84520
|
margin-bottom: ${e=>P1.bottomMargin.valuePx(e.windowSize)};
|
|
84495
|
-
`;const{uncategorizedTransactionList:{missingReceipt:{bulkUpload:
|
|
84521
|
+
`;const{uncategorizedTransactionList:{missingReceipt:{bulkUpload:tln}}}=U.getLocalizedStrings();r.div`
|
|
84496
84522
|
display: flex;
|
|
84497
84523
|
flex-direction: column;
|
|
84498
84524
|
flex: 1;
|
|
@@ -84624,7 +84650,7 @@ to {
|
|
|
84624
84650
|
display: flex;
|
|
84625
84651
|
flex-direction: column;
|
|
84626
84652
|
align-self: stretch;
|
|
84627
|
-
`;const{uncategorizedTransactionList:{missingReceipt:{bulkUpload:
|
|
84653
|
+
`;const{uncategorizedTransactionList:{missingReceipt:{bulkUpload:oln}},common:{texts:{receipt:iln,receipts2:rln}}}=U.getLocalizedStrings(),q_i=_t`
|
|
84628
84654
|
0% {
|
|
84629
84655
|
background-position: 200% center;
|
|
84630
84656
|
}
|
|
@@ -84681,7 +84707,7 @@ to {
|
|
|
84681
84707
|
-webkit-background-clip: text;
|
|
84682
84708
|
-webkit-text-fill-color: transparent;
|
|
84683
84709
|
animation: ${q_i} 2.5s ease-in-out infinite;
|
|
84684
|
-
`;const{uncategorizedTransactionList:{missingReceipt:{bulkUpload:
|
|
84710
|
+
`;const{uncategorizedTransactionList:{missingReceipt:{bulkUpload:nln}}}=U.getLocalizedStrings(),N9e=200,H9e=378,s2=280,l2="cubic-bezier(0.22, 1, 0.36, 1)";r.div`
|
|
84685
84711
|
display: flex;
|
|
84686
84712
|
flex-direction: column;
|
|
84687
84713
|
justify-content: center;
|
|
@@ -84754,7 +84780,7 @@ to {
|
|
|
84754
84780
|
color: ${e=>e.theme.colors.primary};
|
|
84755
84781
|
`;r.input`
|
|
84756
84782
|
display: none;
|
|
84757
|
-
`;const{common:Z_i,uncategorizedTransactionList:{missingReceipt:{bulkUpload:
|
|
84783
|
+
`;const{common:Z_i,uncategorizedTransactionList:{missingReceipt:{bulkUpload:aln}}}=U.getLocalizedStrings();Z_i.copyToClipBoard;const J_i=400,X_i=1200;r.div`
|
|
84758
84784
|
position: absolute;
|
|
84759
84785
|
inset: 0;
|
|
84760
84786
|
z-index: 0;
|
|
@@ -84914,7 +84940,7 @@ to {
|
|
|
84914
84940
|
@media (prefers-reduced-motion: reduce) {
|
|
84915
84941
|
transition: none;
|
|
84916
84942
|
}
|
|
84917
|
-
`;const{uncategorizedTransactionList:{missingReceipt:{bulkUpload:
|
|
84943
|
+
`;const{uncategorizedTransactionList:{missingReceipt:{bulkUpload:sln}},common:{texts:{receipt:lln,receipts2:dln}}}=U.getLocalizedStrings();r.div`
|
|
84918
84944
|
position: relative;
|
|
84919
84945
|
display: flex;
|
|
84920
84946
|
align-items: center;
|
|
@@ -84946,11 +84972,11 @@ to {
|
|
|
84946
84972
|
`;r.div`
|
|
84947
84973
|
padding: ${o.sp2} ${o.sp0};
|
|
84948
84974
|
cursor: pointer;
|
|
84949
|
-
`;const{common:{all:
|
|
84975
|
+
`;const{common:{all:cln,settings:{integrations:{connectorTooltips:{accountantSectionLabel:pln}}},texts:{manual:uln}}}=U.getLocalizedStrings();r.div`
|
|
84950
84976
|
display: flex;
|
|
84951
84977
|
flex-direction: column;
|
|
84952
84978
|
width: 100%;
|
|
84953
|
-
`;const{common:{all:
|
|
84979
|
+
`;const{common:{all:hln,settings:{integrations:{connectorTooltips:{accountantSectionLabel:mln}}},texts:{manual:gln}}}=U.getLocalizedStrings(),{common:uh,dateFormat:{visual:{MMMDCommaYYYYformat:fln}},expenseAutomation:xln,uncategorizedTransactionList:{missingReceipt:{bulkUpload:yln}}}=U.getLocalizedStrings();uh.footer;uh.texts.maxLimitReached;uh.texts.confirmAction;uh.headers;uh.create;uh.strings;uh.texts;uh.cancel;uh.confirm;uh.monthsByIndex;const e$=220;r.div`
|
|
84954
84980
|
width: 100%;
|
|
84955
84981
|
height: 100vh;
|
|
84956
84982
|
display: flex;
|
|
@@ -85127,7 +85153,7 @@ to {
|
|
|
85127
85153
|
display: flex;
|
|
85128
85154
|
flex-direction: column;
|
|
85129
85155
|
gap: ${o.sp2};
|
|
85130
|
-
`;const{common:{currency:
|
|
85156
|
+
`;const{common:{currency:wln,strings:{hyphen:bln}},expenseAutomation:{jeSchedules:{accrualDetail:tVi}}}=U.getLocalizedStrings();tVi.billingPattern;const tQe=160;r.div`
|
|
85131
85157
|
display: flex;
|
|
85132
85158
|
flex-direction: column;
|
|
85133
85159
|
gap: ${o.sp3};
|
|
@@ -85293,7 +85319,7 @@ to {
|
|
|
85293
85319
|
`;r(fl)`
|
|
85294
85320
|
color: ${e=>e.theme.colors.champion};
|
|
85295
85321
|
font-variant-numeric: tabular-nums;
|
|
85296
|
-
`;const aVi="scheduled_date",sVi="on_bill_match",{common:{strings:{hyphen:
|
|
85322
|
+
`;const aVi="scheduled_date",sVi="on_bill_match",{common:{strings:{hyphen:vln},settings:{integrations:{connectorTooltips:{accountantSectionLabel:Cln}}}},dateFormat:Aln,expenseAutomation:{jeSchedules:{accrualDetail:lVi,newSchedule:dVi}}}=U.getLocalizedStrings(),_9e=lVi.details;dVi.fields;_9e.reverseNextMonthOption,_9e.onInvoiceMatch;r.div`
|
|
85297
85323
|
display: flex;
|
|
85298
85324
|
flex-direction: column;
|
|
85299
85325
|
width: 100%;
|
|
@@ -85301,7 +85327,7 @@ to {
|
|
|
85301
85327
|
border-top: 1px solid ${e=>e.theme.colors.grey2};
|
|
85302
85328
|
border-radius: ${o.sp2};
|
|
85303
85329
|
background: ${e=>e.theme.colors.grey5};
|
|
85304
|
-
`;const{common:{currency
|
|
85330
|
+
`;const{common:{currency:$ln,strings:{hyphen:kln}},dateFormat:Sln,expenseAutomation:{jeSchedules:{accrualDetail:cVi,oneTimeAccrualType:Eln}}}=U.getLocalizedStrings();cVi.details;const zE={containerPadding:new L(v[3],v[5]),containerMarginTop:new L(v[3],v[3]),containerMarginBottom:new L(v[2],v[2]),vendorTitleContainerWidth:new L(187,480)},V9e=v[5];Q.smallMedium.cssObject;r.div`
|
|
85305
85331
|
display: flex;
|
|
85306
85332
|
width: 100%;
|
|
85307
85333
|
box-sizing: border-box;
|
|
@@ -85385,7 +85411,7 @@ to {
|
|
|
85385
85411
|
text-align: right;
|
|
85386
85412
|
`;r(pVi)`
|
|
85387
85413
|
font-style: italic;
|
|
85388
|
-
`;const{common:{strings:{colon:
|
|
85414
|
+
`;const{common:{strings:{colon:Lln,hyphen:Iln,middleDot:jln}},expenseAutomation:{jeSchedules:{accrualDetail:iQe,newSchedule:{journalEntryPreview:Mln}}}}=U.getLocalizedStrings();iQe.details;iQe.journalEntryPreview;Q.superSmallSemiBold.cssObject;r.div`
|
|
85389
85415
|
display: flex;
|
|
85390
85416
|
flex-direction: column;
|
|
85391
85417
|
width: 100%;
|
|
@@ -85455,7 +85481,7 @@ to {
|
|
|
85455
85481
|
min-width: 0;
|
|
85456
85482
|
text-align: right;
|
|
85457
85483
|
color: ${e=>e.theme.colors.hero};
|
|
85458
|
-
`;const{common:{strings:{hyphen:
|
|
85484
|
+
`;const{common:{strings:{hyphen:Bln},texts:{revert:Dln}},dateFormat:Pln,expenseAutomation:{jeSchedules:{accrualDetail:nQe,oneTimeAccrualType:Tln}}}=U.getLocalizedStrings();nQe.details;nQe.journalEntryPreview;r.div`
|
|
85459
85485
|
display: flex;
|
|
85460
85486
|
flex-direction: column;
|
|
85461
85487
|
width: 100%;
|
|
@@ -85654,7 +85680,7 @@ to {
|
|
|
85654
85680
|
color: ${e=>e.status==="connected"?e.theme.colors.success:e.status==="reconnect"?e.theme.colors.important:e.theme.colors.link};
|
|
85655
85681
|
cursor: pointer;
|
|
85656
85682
|
text-decoration: underline;
|
|
85657
|
-
`;const{common:
|
|
85683
|
+
`;const{common:zln,expenseAutomation:{accountRecon:Fln}}=U.getLocalizedStrings(),{common:Rln,dateFormat:Oln,expenseAutomation:{accountRecon:{reconciliation:{drawer:{dateRangeConflict:Nln}}}}}=U.getLocalizedStrings();r.div`
|
|
85658
85684
|
width: 100%;
|
|
85659
85685
|
box-sizing: border-box;
|
|
85660
85686
|
padding: 0 ${o.sp4} ${o.sp4};
|
|
@@ -86401,7 +86427,7 @@ to {
|
|
|
86401
86427
|
color: ${$.tagWarningColorLight};
|
|
86402
86428
|
`,nUi=r(rt)`
|
|
86403
86429
|
color: ${$.tagWarningColorLight};
|
|
86404
|
-
`,{expenseAutomation:{accountRecon:{statementProcessing:
|
|
86430
|
+
`,{expenseAutomation:{accountRecon:{statementProcessing:Hln}},common:_ln}=U.getLocalizedStrings();r.div`
|
|
86405
86431
|
flex: 1;
|
|
86406
86432
|
display: flex;
|
|
86407
86433
|
flex-direction: column;
|
|
@@ -86589,7 +86615,7 @@ to {
|
|
|
86589
86615
|
align-items: center;
|
|
86590
86616
|
justify-content: flex-end;
|
|
86591
86617
|
flex-shrink: 0;
|
|
86592
|
-
`;const aUi=64,sUi="51px",{expenseAutomation:{accountRecon:{reconciliation:{drawer:
|
|
86618
|
+
`;const aUi=64,sUi="51px",{expenseAutomation:{accountRecon:{reconciliation:{drawer:Vln}}},common:{upload:Qln,texts:{uploading:Uln}}}=U.getLocalizedStrings(),mxe=e=>`url("data:image/svg+xml;utf8,${encodeURIComponent(`<svg xmlns='http://www.w3.org/2000/svg' width='100%' height='100%'><rect width='100%' height='100%' rx='8' ry='8' fill='none' stroke='${e}' stroke-width='2' stroke-dasharray='8,8'/></svg>`)}")`;r.div`
|
|
86593
86619
|
display: flex;
|
|
86594
86620
|
flex-direction: column;
|
|
86595
86621
|
width: 100%;
|
|
@@ -86664,7 +86690,7 @@ to {
|
|
|
86664
86690
|
justify-content: center;
|
|
86665
86691
|
`;r(ce)`
|
|
86666
86692
|
color: ${$.success};
|
|
86667
|
-
`;const{common:xQe,expenseAutomation:{accountRecon:yQe}}=U.getLocalizedStrings(),{texts:{uploadStatement:
|
|
86693
|
+
`;const{common:xQe,expenseAutomation:{accountRecon:yQe}}=U.getLocalizedStrings(),{texts:{uploadStatement:Wln}}=xQe,{texts:{review:Gln}}=xQe;yQe.statementProcessing.steps.length;yQe.statementProcessing.steps.length;r.div`
|
|
86668
86694
|
display: flex;
|
|
86669
86695
|
flex-direction: column;
|
|
86670
86696
|
background-color: ${e=>e.theme.colors.grey5};
|
|
@@ -86919,7 +86945,7 @@ to {
|
|
|
86919
86945
|
color: ${e=>e.status==="connected"?e.theme.colors.success:e.status==="reconnect"?e.theme.colors.important:e.theme.colors.link};
|
|
86920
86946
|
cursor: pointer;
|
|
86921
86947
|
text-decoration: underline;
|
|
86922
|
-
`;const{dateFormat:{visual:
|
|
86948
|
+
`;const{dateFormat:{visual:Yln},common:{documents:Kln,texts:{dragAndDropOrClick:qln},strings:{colon:Zln}}}=U.getLocalizedStrings(),lUi={width:new L(343,580,756)};r.div`
|
|
86923
86949
|
display: flex;
|
|
86924
86950
|
flex-direction: column;
|
|
86925
86951
|
`;r.div`
|
|
@@ -86929,7 +86955,7 @@ to {
|
|
|
86929
86955
|
background-color: ${e=>e.theme.colors.grey5};
|
|
86930
86956
|
border-top: 1px solid ${e=>e.theme.colors.grey2};
|
|
86931
86957
|
border-radius: ${o.sp2};
|
|
86932
|
-
`;const{common:
|
|
86958
|
+
`;const{common:Jln,commonSetUp:{internationalWire:Xln},dateFormat:{analytics:{YYYYDashMMDashDDFormat:edn}}}=U.getLocalizedStrings(),Ty={width:new L(343,580,756),titleWidth:new L(343,580,756,826),subTitlePaddingTop:new L(12,v[3]),subTitlePaddingBottom:new L(v[3],v[3]),verificationDetailsRowGap:new L(12,v[5],v[5])},dUi={title:new wt("largeSemiBold","largeSemiBold")};r.div`
|
|
86933
86959
|
display: flex;
|
|
86934
86960
|
min-height: 100%;
|
|
86935
86961
|
flex-direction: column;
|
|
@@ -86971,7 +86997,7 @@ to {
|
|
|
86971
86997
|
margin-bottom: ${o.sp2};
|
|
86972
86998
|
color: ${e=>e.theme.colors.champion};
|
|
86973
86999
|
${e=>`${dUi.title.style(e.windowSize)}`};
|
|
86974
|
-
`;const{spendManagement:{zeniAccounts:{expressPay:{progressBar:{stateOne:
|
|
87000
|
+
`;const{spendManagement:{zeniAccounts:{expressPay:{progressBar:{stateOne:tdn,stateThree:odn}}}},common:{texts:{paymentDetails:idn}}}=U.getLocalizedStrings(),cUi={progressBarWidth:new L(343,756)};r.div`
|
|
86975
87001
|
display: flex;
|
|
86976
87002
|
flex-direction: column;
|
|
86977
87003
|
margin-top: ${o.sp3};
|
|
@@ -87011,7 +87037,7 @@ to {
|
|
|
87011
87037
|
position: relative;
|
|
87012
87038
|
height: ${e=>`${e.perSectionHeight}%`};
|
|
87013
87039
|
color: ${e=>e.isRelevant?e.theme.colors.primary:e.theme.colors.grey2};
|
|
87014
|
-
`;const{spendManagement:pUi,dateFormat:
|
|
87040
|
+
`;const{spendManagement:pUi,dateFormat:rdn,common:ndn}=U.getLocalizedStrings();pUi.billPay;const uUi={containerWidth:new L(343,580,756)};r(Zo)`
|
|
87015
87041
|
color: ${e=>e.theme.colors.primary};
|
|
87016
87042
|
margin-bottom: ${o.sp3};
|
|
87017
87043
|
`;r.div`
|
|
@@ -87051,7 +87077,7 @@ to {
|
|
|
87051
87077
|
border-radius: ${o.sp0} ${o.sp0} ${o.sp2} ${o.sp2};
|
|
87052
87078
|
text-align: ${e=>e.windowSize==="small"?"initial":"right"};
|
|
87053
87079
|
color: ${e=>e.isError?$.important:e.theme.colors.grey1};
|
|
87054
|
-
`;const{spendManagement:{zeniAccounts:{expressPay:
|
|
87080
|
+
`;const{spendManagement:{zeniAccounts:{expressPay:adn}},common:{texts:{selectType:sdn,addEmail:ldn}}}=U.getLocalizedStrings();r(Zo)`
|
|
87055
87081
|
color: ${e=>e.theme.colors.primary};
|
|
87056
87082
|
margin-bottom: ${o.sp3};
|
|
87057
87083
|
`;r.div`
|
|
@@ -87062,7 +87088,7 @@ to {
|
|
|
87062
87088
|
flex-direction: column;
|
|
87063
87089
|
background-color: ${e=>e.theme.colors.grey5};
|
|
87064
87090
|
border-radius: ${o.sp2};
|
|
87065
|
-
`;const{spendManagement:{billPay:
|
|
87091
|
+
`;const{spendManagement:{billPay:ddn},dateFormat:cdn,common:pdn}=U.getLocalizedStrings(),MG={containerWidth:new L(343,580,756),reviewContainerMarginLeft:new L(v[3],v[6]),reviewContainerMarginRight:new L(v[3],v[8])};r.div``;r.div`
|
|
87066
87092
|
display: flex;
|
|
87067
87093
|
width: 100%;
|
|
87068
87094
|
box-sizing: border-box;
|
|
@@ -87154,7 +87180,7 @@ to {
|
|
|
87154
87180
|
&:last-child {
|
|
87155
87181
|
border-bottom: none;
|
|
87156
87182
|
}
|
|
87157
|
-
`;const{common:hUi,spendManagement:
|
|
87183
|
+
`;const{common:hUi,spendManagement:udn}=U.getLocalizedStrings(),{texts:{sendMoney:hdn}}=hUi;r.div`
|
|
87158
87184
|
display: flex;
|
|
87159
87185
|
flex-wrap: wrap;
|
|
87160
87186
|
height: 100%;
|
|
@@ -87186,7 +87212,7 @@ to {
|
|
|
87186
87212
|
background-color: ${e=>e.theme.colors.grey5};
|
|
87187
87213
|
border: ${e=>`1px solid ${e.theme.colors.grey3}`};
|
|
87188
87214
|
outline: none;
|
|
87189
|
-
`;const{common:{texts:{openInSidePanel:
|
|
87215
|
+
`;const{common:{texts:{openInSidePanel:mdn,openInFullView:gdn}}}=U.getLocalizedStrings();r.div`
|
|
87190
87216
|
position: relative;
|
|
87191
87217
|
display: flex;
|
|
87192
87218
|
flex-direction: column;
|
|
@@ -87315,7 +87341,7 @@ to {
|
|
|
87315
87341
|
svg {
|
|
87316
87342
|
scale: ${({scale:e})=>e};
|
|
87317
87343
|
}
|
|
87318
|
-
`;const{aiCfo:{tooltips:{chatWithAI:
|
|
87344
|
+
`;const{aiCfo:{tooltips:{chatWithAI:fdn}},common:{strings:{empty:xdn}}}=U.getLocalizedStrings();r.div`
|
|
87319
87345
|
display: flex;
|
|
87320
87346
|
align-items: center;
|
|
87321
87347
|
justify-content: center;
|
|
@@ -87496,7 +87522,7 @@ to {
|
|
|
87496
87522
|
`;r(cr)`
|
|
87497
87523
|
color: ${e=>e.theme.colors.primary};
|
|
87498
87524
|
letter-spacing: -0.01em;
|
|
87499
|
-
`;const fUi=e=>g.createElement("svg",{width:255,height:189,viewBox:"0 0 255 189",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e},g.createElement("g",{clipPath:"url(#clip0_251_38259)"},g.createElement("path",{d:"M0 9.02466C73.8923 -8.35395 80.6314 49.7252 156.567 49.7252C232.502 49.7252 228.443 7.99003 304.378 7.99003C380.313 7.99003 376.254 49.7252 452.189 49.7252C528.124 49.7252 524.065 7.99003 600 7.99003C675.935 7.99003 671.876 49.7252 747.811 49.7252C823.746 49.7252 819.687 7.99003 895.622 7.99003C971.557 7.99003 967.498 49.7252 1043.43 49.7252C1119.37 49.7252 1126.11 -8.38048 1200 9.02466",stroke:"#97C3B9",strokeWidth:1.5}),g.createElement("path",{d:"M0 18.9788C73.8923 1.60015 80.6314 59.6793 156.567 59.6793C232.502 59.6793 228.443 17.9441 304.378 17.9441C380.313 17.9441 376.254 59.6793 452.189 59.6793C528.124 59.6793 524.065 17.9441 600 17.9441C675.935 17.9441 671.876 59.6793 747.811 59.6793C823.746 59.6793 819.687 17.9441 895.622 17.9441C971.557 17.9441 967.498 59.6793 1043.43 59.6793C1119.37 59.6793 1126.11 1.57362 1200 18.9788",stroke:"#97C3B9",strokeWidth:1.5}),g.createElement("path",{d:"M0 28.9329C73.8923 11.5543 80.6314 69.6334 156.567 69.6334C232.502 69.6334 228.443 27.8982 304.378 27.8982C380.313 27.8982 376.254 69.6334 452.189 69.6334C528.124 69.6334 524.065 27.8982 600 27.8982C675.935 27.8982 671.876 69.6334 747.811 69.6334C823.746 69.6334 819.687 27.8982 895.622 27.8982C971.557 27.8982 967.498 69.6334 1043.43 69.6334C1119.37 69.6334 1126.11 11.5277 1200 28.9329",stroke:"#97C3B9",strokeWidth:1.5}),g.createElement("path",{d:"M0 38.887C73.8923 21.5084 80.6314 79.5875 156.567 79.5875C232.502 79.5875 228.443 37.8523 304.378 37.8523C380.313 37.8523 376.254 79.5875 452.189 79.5875C528.124 79.5875 524.065 37.8523 600 37.8523C675.935 37.8523 671.876 79.5875 747.811 79.5875C823.746 79.5875 819.687 37.8523 895.622 37.8523C971.557 37.8523 967.498 79.5875 1043.43 79.5875C1119.37 79.5875 1126.11 21.4818 1200 38.887",stroke:"#97C3B9",strokeWidth:1.5}),g.createElement("path",{d:"M0 48.8411C73.8923 31.4625 80.6314 89.5416 156.567 89.5416C232.502 89.5416 228.443 47.8064 304.378 47.8064C380.313 47.8064 376.254 89.5416 452.189 89.5416C528.124 89.5416 524.065 47.8064 600 47.8064C675.935 47.8064 671.876 89.5416 747.811 89.5416C823.746 89.5416 819.687 47.8064 895.622 47.8064C971.557 47.8064 967.498 89.5416 1043.43 89.5416C1119.37 89.5416 1126.11 31.4359 1200 48.8411",stroke:"#97C3B9",strokeWidth:1.5}),g.createElement("path",{d:"M0 58.7952C73.8923 41.4166 80.6314 99.4957 156.567 99.4957C232.502 99.4957 228.443 57.7605 304.378 57.7605C380.313 57.7605 376.254 99.4957 452.189 99.4957C528.124 99.4957 524.065 57.7605 600 57.7605C675.935 57.7605 671.876 99.4957 747.811 99.4957C823.746 99.4957 819.687 57.7605 895.622 57.7605C971.557 57.7605 967.498 99.4957 1043.43 99.4957C1119.37 99.4957 1126.11 41.39 1200 58.7952",stroke:"#97C3B9",strokeWidth:1.5}),g.createElement("path",{d:"M0 68.7493C73.8923 51.3707 80.6314 109.45 156.567 109.45C232.502 109.45 228.443 67.7146 304.378 67.7146C380.313 67.7146 376.254 109.45 452.189 109.45C528.124 109.45 524.065 67.7146 600 67.7146C675.935 67.7146 671.876 109.45 747.811 109.45C823.746 109.45 819.687 67.7146 895.622 67.7146C971.557 67.7146 967.498 109.45 1043.43 109.45C1119.37 109.45 1126.11 51.3441 1200 68.7493",stroke:"#97C3B9",strokeWidth:1.5}),g.createElement("path",{d:"M0 78.7034C73.8923 61.3248 80.6314 119.404 156.567 119.404C232.502 119.404 228.443 77.6687 304.378 77.6687C380.313 77.6687 376.254 119.404 452.189 119.404C528.124 119.404 524.065 77.6687 600 77.6687C675.935 77.6687 671.876 119.404 747.811 119.404C823.746 119.404 819.687 77.6687 895.622 77.6687C971.557 77.6687 967.498 119.404 1043.43 119.404C1119.37 119.404 1126.11 61.2982 1200 78.7034",stroke:"#97C3B9",strokeWidth:1.5}),g.createElement("path",{d:"M0 88.6575C73.8923 71.2789 80.6314 129.358 156.567 129.358C232.502 129.358 228.443 87.6228 304.378 87.6228C380.313 87.6228 376.254 129.358 452.189 129.358C528.124 129.358 524.065 87.6228 600 87.6228C675.935 87.6228 671.876 129.358 747.811 129.358C823.746 129.358 819.687 87.6228 895.622 87.6228C971.557 87.6228 967.498 129.358 1043.43 129.358C1119.37 129.358 1126.11 71.2523 1200 88.6575",stroke:"#97C3B9",strokeWidth:1.5}),g.createElement("path",{d:"M0 98.6116C73.8923 81.233 80.6314 139.312 156.567 139.312C232.502 139.312 228.443 97.5769 304.378 97.5769C380.313 97.5769 376.254 139.312 452.189 139.312C528.124 139.312 524.065 97.5769 600 97.5769C675.935 97.5769 671.876 139.312 747.811 139.312C823.746 139.312 819.687 97.5769 895.622 97.5769C971.557 97.5769 967.498 139.312 1043.43 139.312C1119.37 139.312 1126.11 81.2064 1200 98.6116",stroke:"#97C3B9",strokeWidth:1.5}),g.createElement("path",{d:"M0 108.566C73.8923 91.1871 80.6314 149.266 156.567 149.266C232.502 149.266 228.443 107.531 304.378 107.531C380.313 107.531 376.254 149.266 452.189 149.266C528.124 149.266 524.065 107.531 600 107.531C675.935 107.531 671.876 149.266 747.811 149.266C823.746 149.266 819.687 107.531 895.622 107.531C971.557 107.531 967.498 149.266 1043.43 149.266C1119.37 149.266 1126.11 91.1605 1200 108.566",stroke:"#97C3B9",strokeWidth:1.5}),g.createElement("path",{d:"M0 118.52C73.8923 101.141 80.6314 159.22 156.567 159.22C232.502 159.22 228.443 117.485 304.378 117.485C380.313 117.485 376.254 159.22 452.189 159.22C528.124 159.22 524.065 117.485 600 117.485C675.935 117.485 671.876 159.22 747.811 159.22C823.746 159.22 819.687 117.485 895.622 117.485C971.557 117.485 967.498 159.22 1043.43 159.22C1119.37 159.22 1126.11 101.115 1200 118.52",stroke:"#97C3B9",strokeWidth:1.5}),g.createElement("path",{d:"M0 128.474C73.8923 111.095 80.6314 169.174 156.567 169.174C232.502 169.174 228.443 127.439 304.378 127.439C380.313 127.439 376.254 169.174 452.189 169.174C528.124 169.174 524.065 127.439 600 127.439C675.935 127.439 671.876 169.174 747.811 169.174C823.746 169.174 819.687 127.439 895.622 127.439C971.557 127.439 967.498 169.174 1043.43 169.174C1119.37 169.174 1126.11 111.069 1200 128.474",stroke:"#97C3B9",strokeWidth:1.5})),g.createElement("defs",null,g.createElement("clipPath",{id:"clip0_251_38259"},g.createElement("rect",{width:255,height:189,fill:"white"})))),xUi=e=>g.createElement("svg",{width:255,height:189,viewBox:"0 0 255 189",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e},g.createElement("g",{clipPath:"url(#clip0_251_38273)"},g.createElement("path",{d:"M255 9.02466C181.108 -8.35395 174.369 49.7252 98.4333 49.7252C22.498 49.7252 26.5575 7.99003 -49.3778 7.99003C-125.313 7.99003 -121.254 49.7252 -197.189 49.7252C-273.124 49.7252 -269.065 7.99003 -345 7.99003C-420.935 7.99003 -416.876 49.7252 -492.811 49.7252C-568.746 49.7252 -564.687 7.99003 -640.622 7.99003C-716.557 7.99003 -712.498 49.7252 -788.433 49.7252C-864.369 49.7252 -871.108 -8.38048 -945 9.02466",stroke:"#97C3B9",strokeWidth:1.5}),g.createElement("path",{d:"M255 18.9788C181.108 1.60015 174.369 59.6793 98.4333 59.6793C22.498 59.6793 26.5575 17.9441 -49.3778 17.9441C-125.313 17.9441 -121.254 59.6793 -197.189 59.6793C-273.124 59.6793 -269.065 17.9441 -345 17.9441C-420.935 17.9441 -416.876 59.6793 -492.811 59.6793C-568.746 59.6793 -564.687 17.9441 -640.622 17.9441C-716.557 17.9441 -712.498 59.6793 -788.433 59.6793C-864.369 59.6793 -871.108 1.57362 -945 18.9788",stroke:"#97C3B9",strokeWidth:1.5}),g.createElement("path",{d:"M255 28.9329C181.108 11.5543 174.369 69.6334 98.4333 69.6334C22.498 69.6334 26.5575 27.8982 -49.3778 27.8982C-125.313 27.8982 -121.254 69.6334 -197.189 69.6334C-273.124 69.6334 -269.065 27.8982 -345 27.8982C-420.935 27.8982 -416.876 69.6334 -492.811 69.6334C-568.746 69.6334 -564.687 27.8982 -640.622 27.8982C-716.557 27.8982 -712.498 69.6334 -788.433 69.6334C-864.369 69.6334 -871.108 11.5277 -945 28.9329",stroke:"#97C3B9",strokeWidth:1.5}),g.createElement("path",{d:"M255 38.887C181.108 21.5084 174.369 79.5875 98.4333 79.5875C22.498 79.5875 26.5575 37.8523 -49.3778 37.8523C-125.313 37.8523 -121.254 79.5875 -197.189 79.5875C-273.124 79.5875 -269.065 37.8523 -345 37.8523C-420.935 37.8523 -416.876 79.5875 -492.811 79.5875C-568.746 79.5875 -564.687 37.8523 -640.622 37.8523C-716.557 37.8523 -712.498 79.5875 -788.433 79.5875C-864.369 79.5875 -871.108 21.4818 -945 38.887",stroke:"#97C3B9",strokeWidth:1.5}),g.createElement("path",{d:"M255 48.8411C181.108 31.4625 174.369 89.5416 98.4333 89.5416C22.498 89.5416 26.5575 47.8064 -49.3778 47.8064C-125.313 47.8064 -121.254 89.5416 -197.189 89.5416C-273.124 89.5416 -269.065 47.8064 -345 47.8064C-420.935 47.8064 -416.876 89.5416 -492.811 89.5416C-568.746 89.5416 -564.687 47.8064 -640.622 47.8064C-716.557 47.8064 -712.498 89.5416 -788.433 89.5416C-864.369 89.5416 -871.108 31.4359 -945 48.8411",stroke:"#97C3B9",strokeWidth:1.5}),g.createElement("path",{d:"M255 58.7952C181.108 41.4166 174.369 99.4957 98.4333 99.4957C22.498 99.4957 26.5575 57.7605 -49.3778 57.7605C-125.313 57.7605 -121.254 99.4957 -197.189 99.4957C-273.124 99.4957 -269.065 57.7605 -345 57.7605C-420.935 57.7605 -416.876 99.4957 -492.811 99.4957C-568.746 99.4957 -564.687 57.7605 -640.622 57.7605C-716.557 57.7605 -712.498 99.4957 -788.433 99.4957C-864.369 99.4957 -871.108 41.39 -945 58.7952",stroke:"#97C3B9",strokeWidth:1.5}),g.createElement("path",{d:"M255 68.7493C181.108 51.3707 174.369 109.45 98.4333 109.45C22.498 109.45 26.5575 67.7146 -49.3778 67.7146C-125.313 67.7146 -121.254 109.45 -197.189 109.45C-273.124 109.45 -269.065 67.7146 -345 67.7146C-420.935 67.7146 -416.876 109.45 -492.811 109.45C-568.746 109.45 -564.687 67.7146 -640.622 67.7146C-716.557 67.7146 -712.498 109.45 -788.433 109.45C-864.369 109.45 -871.108 51.3441 -945 68.7493",stroke:"#97C3B9",strokeWidth:1.5}),g.createElement("path",{d:"M255 78.7034C181.108 61.3248 174.369 119.404 98.4333 119.404C22.498 119.404 26.5575 77.6687 -49.3778 77.6687C-125.313 77.6687 -121.254 119.404 -197.189 119.404C-273.124 119.404 -269.065 77.6687 -345 77.6687C-420.935 77.6687 -416.876 119.404 -492.811 119.404C-568.746 119.404 -564.687 77.6687 -640.622 77.6687C-716.557 77.6687 -712.498 119.404 -788.433 119.404C-864.369 119.404 -871.108 61.2982 -945 78.7034",stroke:"#97C3B9",strokeWidth:1.5}),g.createElement("path",{d:"M255 88.6575C181.108 71.2789 174.369 129.358 98.4333 129.358C22.498 129.358 26.5575 87.6228 -49.3778 87.6228C-125.313 87.6228 -121.254 129.358 -197.189 129.358C-273.124 129.358 -269.065 87.6228 -345 87.6228C-420.935 87.6228 -416.876 129.358 -492.811 129.358C-568.746 129.358 -564.687 87.6228 -640.622 87.6228C-716.557 87.6228 -712.498 129.358 -788.433 129.358C-864.369 129.358 -871.108 71.2523 -945 88.6575",stroke:"#97C3B9",strokeWidth:1.5}),g.createElement("path",{d:"M255 98.6116C181.108 81.233 174.369 139.312 98.4333 139.312C22.498 139.312 26.5575 97.5769 -49.3778 97.5769C-125.313 97.5769 -121.254 139.312 -197.189 139.312C-273.124 139.312 -269.065 97.5769 -345 97.5769C-420.935 97.5769 -416.876 139.312 -492.811 139.312C-568.746 139.312 -564.687 97.5769 -640.622 97.5769C-716.557 97.5769 -712.498 139.312 -788.433 139.312C-864.369 139.312 -871.108 81.2064 -945 98.6116",stroke:"#97C3B9",strokeWidth:1.5}),g.createElement("path",{d:"M255 108.566C181.108 91.1871 174.369 149.266 98.4333 149.266C22.498 149.266 26.5575 107.531 -49.3778 107.531C-125.313 107.531 -121.254 149.266 -197.189 149.266C-273.124 149.266 -269.065 107.531 -345 107.531C-420.935 107.531 -416.876 149.266 -492.811 149.266C-568.746 149.266 -564.687 107.531 -640.622 107.531C-716.557 107.531 -712.498 149.266 -788.433 149.266C-864.369 149.266 -871.108 91.1605 -945 108.566",stroke:"#97C3B9",strokeWidth:1.5}),g.createElement("path",{d:"M255 118.52C181.108 101.141 174.369 159.22 98.4333 159.22C22.498 159.22 26.5575 117.485 -49.3778 117.485C-125.313 117.485 -121.254 159.22 -197.189 159.22C-273.124 159.22 -269.065 117.485 -345 117.485C-420.935 117.485 -416.876 159.22 -492.811 159.22C-568.746 159.22 -564.687 117.485 -640.622 117.485C-716.557 117.485 -712.498 159.22 -788.433 159.22C-864.369 159.22 -871.108 101.115 -945 118.52",stroke:"#97C3B9",strokeWidth:1.5}),g.createElement("path",{d:"M255 128.474C181.108 111.095 174.369 169.174 98.4333 169.174C22.498 169.174 26.5575 127.439 -49.3778 127.439C-125.313 127.439 -121.254 169.174 -197.189 169.174C-273.124 169.174 -269.065 127.439 -345 127.439C-420.935 127.439 -416.876 169.174 -492.811 169.174C-568.746 169.174 -564.687 127.439 -640.622 127.439C-716.557 127.439 -712.498 169.174 -788.433 169.174C-864.369 169.174 -871.108 111.069 -945 128.474",stroke:"#97C3B9",strokeWidth:1.5})),g.createElement("defs",null,g.createElement("clipPath",{id:"clip0_251_38273"},g.createElement("rect",{width:255,height:189,fill:"white",transform:"matrix(-1 0 0 1 255 0)"})))),{common:udn,spendManagement:yUi}=U.getLocalizedStrings();yUi.treasury.promoPage;const Q2={mainHeading:new wt("h6Medium","h4Regular"),subHeading:new wt("largeRegular","h6Regular"),fundSymbol:new wt("smallSemiBold","standardSemiBold"),fundName:new wt("h7SemiBold","h5SemiBold"),fundSubName:new wt("largeMedium","h6SemiBold"),highlightValue:new wt("standardRegular","extraLargeMedium"),highlightLabel:new wt("smallRegular","standardRegular"),uspItemTitle:new wt("h7Medium","h6Medium"),uspItemDescription:new wt("smallRegular","largeRegular")},Jl={uspLogoSize:new L(v[4],v[5]),cardsGap:new L(v[4],v[6]),fundHeaderGap:new L(v[0],v[2]),fundHeaderPadding:new L(v[3],v[4]),fundHeaderPaddingTop:new L(v[4],v[7]),fundHighlightsPadding:new L(v[2],v[3]),highlightItemGap:new L(v[0],v[1])};r.div`
|
|
87525
|
+
`;const fUi=e=>g.createElement("svg",{width:255,height:189,viewBox:"0 0 255 189",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e},g.createElement("g",{clipPath:"url(#clip0_251_38259)"},g.createElement("path",{d:"M0 9.02466C73.8923 -8.35395 80.6314 49.7252 156.567 49.7252C232.502 49.7252 228.443 7.99003 304.378 7.99003C380.313 7.99003 376.254 49.7252 452.189 49.7252C528.124 49.7252 524.065 7.99003 600 7.99003C675.935 7.99003 671.876 49.7252 747.811 49.7252C823.746 49.7252 819.687 7.99003 895.622 7.99003C971.557 7.99003 967.498 49.7252 1043.43 49.7252C1119.37 49.7252 1126.11 -8.38048 1200 9.02466",stroke:"#97C3B9",strokeWidth:1.5}),g.createElement("path",{d:"M0 18.9788C73.8923 1.60015 80.6314 59.6793 156.567 59.6793C232.502 59.6793 228.443 17.9441 304.378 17.9441C380.313 17.9441 376.254 59.6793 452.189 59.6793C528.124 59.6793 524.065 17.9441 600 17.9441C675.935 17.9441 671.876 59.6793 747.811 59.6793C823.746 59.6793 819.687 17.9441 895.622 17.9441C971.557 17.9441 967.498 59.6793 1043.43 59.6793C1119.37 59.6793 1126.11 1.57362 1200 18.9788",stroke:"#97C3B9",strokeWidth:1.5}),g.createElement("path",{d:"M0 28.9329C73.8923 11.5543 80.6314 69.6334 156.567 69.6334C232.502 69.6334 228.443 27.8982 304.378 27.8982C380.313 27.8982 376.254 69.6334 452.189 69.6334C528.124 69.6334 524.065 27.8982 600 27.8982C675.935 27.8982 671.876 69.6334 747.811 69.6334C823.746 69.6334 819.687 27.8982 895.622 27.8982C971.557 27.8982 967.498 69.6334 1043.43 69.6334C1119.37 69.6334 1126.11 11.5277 1200 28.9329",stroke:"#97C3B9",strokeWidth:1.5}),g.createElement("path",{d:"M0 38.887C73.8923 21.5084 80.6314 79.5875 156.567 79.5875C232.502 79.5875 228.443 37.8523 304.378 37.8523C380.313 37.8523 376.254 79.5875 452.189 79.5875C528.124 79.5875 524.065 37.8523 600 37.8523C675.935 37.8523 671.876 79.5875 747.811 79.5875C823.746 79.5875 819.687 37.8523 895.622 37.8523C971.557 37.8523 967.498 79.5875 1043.43 79.5875C1119.37 79.5875 1126.11 21.4818 1200 38.887",stroke:"#97C3B9",strokeWidth:1.5}),g.createElement("path",{d:"M0 48.8411C73.8923 31.4625 80.6314 89.5416 156.567 89.5416C232.502 89.5416 228.443 47.8064 304.378 47.8064C380.313 47.8064 376.254 89.5416 452.189 89.5416C528.124 89.5416 524.065 47.8064 600 47.8064C675.935 47.8064 671.876 89.5416 747.811 89.5416C823.746 89.5416 819.687 47.8064 895.622 47.8064C971.557 47.8064 967.498 89.5416 1043.43 89.5416C1119.37 89.5416 1126.11 31.4359 1200 48.8411",stroke:"#97C3B9",strokeWidth:1.5}),g.createElement("path",{d:"M0 58.7952C73.8923 41.4166 80.6314 99.4957 156.567 99.4957C232.502 99.4957 228.443 57.7605 304.378 57.7605C380.313 57.7605 376.254 99.4957 452.189 99.4957C528.124 99.4957 524.065 57.7605 600 57.7605C675.935 57.7605 671.876 99.4957 747.811 99.4957C823.746 99.4957 819.687 57.7605 895.622 57.7605C971.557 57.7605 967.498 99.4957 1043.43 99.4957C1119.37 99.4957 1126.11 41.39 1200 58.7952",stroke:"#97C3B9",strokeWidth:1.5}),g.createElement("path",{d:"M0 68.7493C73.8923 51.3707 80.6314 109.45 156.567 109.45C232.502 109.45 228.443 67.7146 304.378 67.7146C380.313 67.7146 376.254 109.45 452.189 109.45C528.124 109.45 524.065 67.7146 600 67.7146C675.935 67.7146 671.876 109.45 747.811 109.45C823.746 109.45 819.687 67.7146 895.622 67.7146C971.557 67.7146 967.498 109.45 1043.43 109.45C1119.37 109.45 1126.11 51.3441 1200 68.7493",stroke:"#97C3B9",strokeWidth:1.5}),g.createElement("path",{d:"M0 78.7034C73.8923 61.3248 80.6314 119.404 156.567 119.404C232.502 119.404 228.443 77.6687 304.378 77.6687C380.313 77.6687 376.254 119.404 452.189 119.404C528.124 119.404 524.065 77.6687 600 77.6687C675.935 77.6687 671.876 119.404 747.811 119.404C823.746 119.404 819.687 77.6687 895.622 77.6687C971.557 77.6687 967.498 119.404 1043.43 119.404C1119.37 119.404 1126.11 61.2982 1200 78.7034",stroke:"#97C3B9",strokeWidth:1.5}),g.createElement("path",{d:"M0 88.6575C73.8923 71.2789 80.6314 129.358 156.567 129.358C232.502 129.358 228.443 87.6228 304.378 87.6228C380.313 87.6228 376.254 129.358 452.189 129.358C528.124 129.358 524.065 87.6228 600 87.6228C675.935 87.6228 671.876 129.358 747.811 129.358C823.746 129.358 819.687 87.6228 895.622 87.6228C971.557 87.6228 967.498 129.358 1043.43 129.358C1119.37 129.358 1126.11 71.2523 1200 88.6575",stroke:"#97C3B9",strokeWidth:1.5}),g.createElement("path",{d:"M0 98.6116C73.8923 81.233 80.6314 139.312 156.567 139.312C232.502 139.312 228.443 97.5769 304.378 97.5769C380.313 97.5769 376.254 139.312 452.189 139.312C528.124 139.312 524.065 97.5769 600 97.5769C675.935 97.5769 671.876 139.312 747.811 139.312C823.746 139.312 819.687 97.5769 895.622 97.5769C971.557 97.5769 967.498 139.312 1043.43 139.312C1119.37 139.312 1126.11 81.2064 1200 98.6116",stroke:"#97C3B9",strokeWidth:1.5}),g.createElement("path",{d:"M0 108.566C73.8923 91.1871 80.6314 149.266 156.567 149.266C232.502 149.266 228.443 107.531 304.378 107.531C380.313 107.531 376.254 149.266 452.189 149.266C528.124 149.266 524.065 107.531 600 107.531C675.935 107.531 671.876 149.266 747.811 149.266C823.746 149.266 819.687 107.531 895.622 107.531C971.557 107.531 967.498 149.266 1043.43 149.266C1119.37 149.266 1126.11 91.1605 1200 108.566",stroke:"#97C3B9",strokeWidth:1.5}),g.createElement("path",{d:"M0 118.52C73.8923 101.141 80.6314 159.22 156.567 159.22C232.502 159.22 228.443 117.485 304.378 117.485C380.313 117.485 376.254 159.22 452.189 159.22C528.124 159.22 524.065 117.485 600 117.485C675.935 117.485 671.876 159.22 747.811 159.22C823.746 159.22 819.687 117.485 895.622 117.485C971.557 117.485 967.498 159.22 1043.43 159.22C1119.37 159.22 1126.11 101.115 1200 118.52",stroke:"#97C3B9",strokeWidth:1.5}),g.createElement("path",{d:"M0 128.474C73.8923 111.095 80.6314 169.174 156.567 169.174C232.502 169.174 228.443 127.439 304.378 127.439C380.313 127.439 376.254 169.174 452.189 169.174C528.124 169.174 524.065 127.439 600 127.439C675.935 127.439 671.876 169.174 747.811 169.174C823.746 169.174 819.687 127.439 895.622 127.439C971.557 127.439 967.498 169.174 1043.43 169.174C1119.37 169.174 1126.11 111.069 1200 128.474",stroke:"#97C3B9",strokeWidth:1.5})),g.createElement("defs",null,g.createElement("clipPath",{id:"clip0_251_38259"},g.createElement("rect",{width:255,height:189,fill:"white"})))),xUi=e=>g.createElement("svg",{width:255,height:189,viewBox:"0 0 255 189",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e},g.createElement("g",{clipPath:"url(#clip0_251_38273)"},g.createElement("path",{d:"M255 9.02466C181.108 -8.35395 174.369 49.7252 98.4333 49.7252C22.498 49.7252 26.5575 7.99003 -49.3778 7.99003C-125.313 7.99003 -121.254 49.7252 -197.189 49.7252C-273.124 49.7252 -269.065 7.99003 -345 7.99003C-420.935 7.99003 -416.876 49.7252 -492.811 49.7252C-568.746 49.7252 -564.687 7.99003 -640.622 7.99003C-716.557 7.99003 -712.498 49.7252 -788.433 49.7252C-864.369 49.7252 -871.108 -8.38048 -945 9.02466",stroke:"#97C3B9",strokeWidth:1.5}),g.createElement("path",{d:"M255 18.9788C181.108 1.60015 174.369 59.6793 98.4333 59.6793C22.498 59.6793 26.5575 17.9441 -49.3778 17.9441C-125.313 17.9441 -121.254 59.6793 -197.189 59.6793C-273.124 59.6793 -269.065 17.9441 -345 17.9441C-420.935 17.9441 -416.876 59.6793 -492.811 59.6793C-568.746 59.6793 -564.687 17.9441 -640.622 17.9441C-716.557 17.9441 -712.498 59.6793 -788.433 59.6793C-864.369 59.6793 -871.108 1.57362 -945 18.9788",stroke:"#97C3B9",strokeWidth:1.5}),g.createElement("path",{d:"M255 28.9329C181.108 11.5543 174.369 69.6334 98.4333 69.6334C22.498 69.6334 26.5575 27.8982 -49.3778 27.8982C-125.313 27.8982 -121.254 69.6334 -197.189 69.6334C-273.124 69.6334 -269.065 27.8982 -345 27.8982C-420.935 27.8982 -416.876 69.6334 -492.811 69.6334C-568.746 69.6334 -564.687 27.8982 -640.622 27.8982C-716.557 27.8982 -712.498 69.6334 -788.433 69.6334C-864.369 69.6334 -871.108 11.5277 -945 28.9329",stroke:"#97C3B9",strokeWidth:1.5}),g.createElement("path",{d:"M255 38.887C181.108 21.5084 174.369 79.5875 98.4333 79.5875C22.498 79.5875 26.5575 37.8523 -49.3778 37.8523C-125.313 37.8523 -121.254 79.5875 -197.189 79.5875C-273.124 79.5875 -269.065 37.8523 -345 37.8523C-420.935 37.8523 -416.876 79.5875 -492.811 79.5875C-568.746 79.5875 -564.687 37.8523 -640.622 37.8523C-716.557 37.8523 -712.498 79.5875 -788.433 79.5875C-864.369 79.5875 -871.108 21.4818 -945 38.887",stroke:"#97C3B9",strokeWidth:1.5}),g.createElement("path",{d:"M255 48.8411C181.108 31.4625 174.369 89.5416 98.4333 89.5416C22.498 89.5416 26.5575 47.8064 -49.3778 47.8064C-125.313 47.8064 -121.254 89.5416 -197.189 89.5416C-273.124 89.5416 -269.065 47.8064 -345 47.8064C-420.935 47.8064 -416.876 89.5416 -492.811 89.5416C-568.746 89.5416 -564.687 47.8064 -640.622 47.8064C-716.557 47.8064 -712.498 89.5416 -788.433 89.5416C-864.369 89.5416 -871.108 31.4359 -945 48.8411",stroke:"#97C3B9",strokeWidth:1.5}),g.createElement("path",{d:"M255 58.7952C181.108 41.4166 174.369 99.4957 98.4333 99.4957C22.498 99.4957 26.5575 57.7605 -49.3778 57.7605C-125.313 57.7605 -121.254 99.4957 -197.189 99.4957C-273.124 99.4957 -269.065 57.7605 -345 57.7605C-420.935 57.7605 -416.876 99.4957 -492.811 99.4957C-568.746 99.4957 -564.687 57.7605 -640.622 57.7605C-716.557 57.7605 -712.498 99.4957 -788.433 99.4957C-864.369 99.4957 -871.108 41.39 -945 58.7952",stroke:"#97C3B9",strokeWidth:1.5}),g.createElement("path",{d:"M255 68.7493C181.108 51.3707 174.369 109.45 98.4333 109.45C22.498 109.45 26.5575 67.7146 -49.3778 67.7146C-125.313 67.7146 -121.254 109.45 -197.189 109.45C-273.124 109.45 -269.065 67.7146 -345 67.7146C-420.935 67.7146 -416.876 109.45 -492.811 109.45C-568.746 109.45 -564.687 67.7146 -640.622 67.7146C-716.557 67.7146 -712.498 109.45 -788.433 109.45C-864.369 109.45 -871.108 51.3441 -945 68.7493",stroke:"#97C3B9",strokeWidth:1.5}),g.createElement("path",{d:"M255 78.7034C181.108 61.3248 174.369 119.404 98.4333 119.404C22.498 119.404 26.5575 77.6687 -49.3778 77.6687C-125.313 77.6687 -121.254 119.404 -197.189 119.404C-273.124 119.404 -269.065 77.6687 -345 77.6687C-420.935 77.6687 -416.876 119.404 -492.811 119.404C-568.746 119.404 -564.687 77.6687 -640.622 77.6687C-716.557 77.6687 -712.498 119.404 -788.433 119.404C-864.369 119.404 -871.108 61.2982 -945 78.7034",stroke:"#97C3B9",strokeWidth:1.5}),g.createElement("path",{d:"M255 88.6575C181.108 71.2789 174.369 129.358 98.4333 129.358C22.498 129.358 26.5575 87.6228 -49.3778 87.6228C-125.313 87.6228 -121.254 129.358 -197.189 129.358C-273.124 129.358 -269.065 87.6228 -345 87.6228C-420.935 87.6228 -416.876 129.358 -492.811 129.358C-568.746 129.358 -564.687 87.6228 -640.622 87.6228C-716.557 87.6228 -712.498 129.358 -788.433 129.358C-864.369 129.358 -871.108 71.2523 -945 88.6575",stroke:"#97C3B9",strokeWidth:1.5}),g.createElement("path",{d:"M255 98.6116C181.108 81.233 174.369 139.312 98.4333 139.312C22.498 139.312 26.5575 97.5769 -49.3778 97.5769C-125.313 97.5769 -121.254 139.312 -197.189 139.312C-273.124 139.312 -269.065 97.5769 -345 97.5769C-420.935 97.5769 -416.876 139.312 -492.811 139.312C-568.746 139.312 -564.687 97.5769 -640.622 97.5769C-716.557 97.5769 -712.498 139.312 -788.433 139.312C-864.369 139.312 -871.108 81.2064 -945 98.6116",stroke:"#97C3B9",strokeWidth:1.5}),g.createElement("path",{d:"M255 108.566C181.108 91.1871 174.369 149.266 98.4333 149.266C22.498 149.266 26.5575 107.531 -49.3778 107.531C-125.313 107.531 -121.254 149.266 -197.189 149.266C-273.124 149.266 -269.065 107.531 -345 107.531C-420.935 107.531 -416.876 149.266 -492.811 149.266C-568.746 149.266 -564.687 107.531 -640.622 107.531C-716.557 107.531 -712.498 149.266 -788.433 149.266C-864.369 149.266 -871.108 91.1605 -945 108.566",stroke:"#97C3B9",strokeWidth:1.5}),g.createElement("path",{d:"M255 118.52C181.108 101.141 174.369 159.22 98.4333 159.22C22.498 159.22 26.5575 117.485 -49.3778 117.485C-125.313 117.485 -121.254 159.22 -197.189 159.22C-273.124 159.22 -269.065 117.485 -345 117.485C-420.935 117.485 -416.876 159.22 -492.811 159.22C-568.746 159.22 -564.687 117.485 -640.622 117.485C-716.557 117.485 -712.498 159.22 -788.433 159.22C-864.369 159.22 -871.108 101.115 -945 118.52",stroke:"#97C3B9",strokeWidth:1.5}),g.createElement("path",{d:"M255 128.474C181.108 111.095 174.369 169.174 98.4333 169.174C22.498 169.174 26.5575 127.439 -49.3778 127.439C-125.313 127.439 -121.254 169.174 -197.189 169.174C-273.124 169.174 -269.065 127.439 -345 127.439C-420.935 127.439 -416.876 169.174 -492.811 169.174C-568.746 169.174 -564.687 127.439 -640.622 127.439C-716.557 127.439 -712.498 169.174 -788.433 169.174C-864.369 169.174 -871.108 111.069 -945 128.474",stroke:"#97C3B9",strokeWidth:1.5})),g.createElement("defs",null,g.createElement("clipPath",{id:"clip0_251_38273"},g.createElement("rect",{width:255,height:189,fill:"white",transform:"matrix(-1 0 0 1 255 0)"})))),{common:ydn,spendManagement:yUi}=U.getLocalizedStrings();yUi.treasury.promoPage;const Q2={mainHeading:new wt("h6Medium","h4Regular"),subHeading:new wt("largeRegular","h6Regular"),fundSymbol:new wt("smallSemiBold","standardSemiBold"),fundName:new wt("h7SemiBold","h5SemiBold"),fundSubName:new wt("largeMedium","h6SemiBold"),highlightValue:new wt("standardRegular","extraLargeMedium"),highlightLabel:new wt("smallRegular","standardRegular"),uspItemTitle:new wt("h7Medium","h6Medium"),uspItemDescription:new wt("smallRegular","largeRegular")},Jl={uspLogoSize:new L(v[4],v[5]),cardsGap:new L(v[4],v[6]),fundHeaderGap:new L(v[0],v[2]),fundHeaderPadding:new L(v[3],v[4]),fundHeaderPaddingTop:new L(v[4],v[7]),fundHighlightsPadding:new L(v[2],v[3]),highlightItemGap:new L(v[0],v[1])};r.div`
|
|
87500
87526
|
display: flex;
|
|
87501
87527
|
flex: 1 1 auto;
|
|
87502
87528
|
min-height: 100%;
|
|
@@ -87847,7 +87873,7 @@ to {
|
|
|
87847
87873
|
pointer-events: none;
|
|
87848
87874
|
width: ${e=>e.windowSize==="small"?"25%":"22%"};
|
|
87849
87875
|
height: auto;
|
|
87850
|
-
`;const DG={navBarContainerPaddingYaxis:new L(10,v[3]),containerPaddingLeft:new L(v[3],v[6],v[8]),containerPaddingRight:new L(v[3],v[6],v[8])},wUi={stepTitle:new wt("h6Regular","h5Regular")},{common:
|
|
87876
|
+
`;const DG={navBarContainerPaddingYaxis:new L(10,v[3]),containerPaddingLeft:new L(v[3],v[6],v[8]),containerPaddingRight:new L(v[3],v[6],v[8])},wUi={stepTitle:new wt("h6Regular","h5Regular")},{common:wdn,spendManagement:{treasury:{transferDrawer:{review:{footNoteForVerification:bdn}}}},commonSetUp:{businessVerification:bUi}}=U.getLocalizedStrings();bUi.sourceOfFundOptions;r.div`
|
|
87851
87877
|
height: auto;
|
|
87852
87878
|
padding-left: ${e=>`${DG.containerPaddingLeft.valuePx(e.windowSize)}`};
|
|
87853
87879
|
padding-right: ${e=>`${DG.containerPaddingRight.valuePx(e.windowSize)}`};
|
|
@@ -87954,7 +87980,7 @@ to {
|
|
|
87954
87980
|
transform: translateX(0%);
|
|
87955
87981
|
}
|
|
87956
87982
|
}
|
|
87957
|
-
`;const{common:
|
|
87983
|
+
`;const{common:vdn,spendManagement:{treasury:Cdn},dateFormat:Adn}=U.getLocalizedStrings(),wQe={portfolioYieldMarginTop:new L(-4,v[0]),sliderWidth:new L(143,177)};r.div`
|
|
87958
87984
|
display: flex;
|
|
87959
87985
|
flex-direction: row;
|
|
87960
87986
|
gap: ${o.sp2};
|
|
@@ -88171,7 +88197,7 @@ to {
|
|
|
88171
88197
|
flex-direction: row;
|
|
88172
88198
|
align-items: center;
|
|
88173
88199
|
gap: ${o.sp3};
|
|
88174
|
-
`;const{common
|
|
88200
|
+
`;const{common:$dn,spendManagement:{treasury:{portfolioAllocation:kdn}}}=U.getLocalizedStrings(),E2={titleWidth:new L(343,580,756,826),cardPadding:new L(v[3],v[4]),sliderWidth:new L(143,177),sliderContainerGap:new L(v[5],v[3]),containerPaddingLeft:new L(v[3],v[5],v[5]),containerPaddingRight:new L(v[3],v[5],v[5]),riskLevelInfoPaddingRight:new L(v[0],v[3])},CUi={stepTitle:new wt("h6Medium","h7Medium")};r.div`
|
|
88175
88201
|
display: flex;
|
|
88176
88202
|
flex-direction: column;
|
|
88177
88203
|
height: 100%;
|
|
@@ -88490,7 +88516,7 @@ to {
|
|
|
88490
88516
|
justify-content: center;
|
|
88491
88517
|
align-items: center;
|
|
88492
88518
|
padding: 2px ${o.sp2};
|
|
88493
|
-
`;const FE={containerPaddingLeft:new L(v[3],v[5],v[5]),containerPaddingRight:new L(v[3],v[5],v[5]),reviewContentWrapperPaddingBottom:new L(v[5],v[8]),elementsContainerPadding:new L(v[3],v[4])},AUi={pageTitle:new wt("h6Medium","h7Medium")},{common:{edit:
|
|
88519
|
+
`;const FE={containerPaddingLeft:new L(v[3],v[5],v[5]),containerPaddingRight:new L(v[3],v[5],v[5]),reviewContentWrapperPaddingBottom:new L(v[5],v[8]),elementsContainerPadding:new L(v[3],v[4])},AUi={pageTitle:new wt("h6Medium","h7Medium")},{common:{edit:Sdn,back:Edn,texts:{byClickingTransferIAuthorizeZeniToInitiate:Ldn,from2:Idn,transfer:jdn,transferredFundsTypicallyTake12BusinessDays:Mdn}},dateFormat:{visual:{DMMMYYYYFormat:Bdn}},spendManagement:{treasury:{transferDrawer:Ddn},billPay:{insufficientFunds:{lowBalance:Pdn,addOrSwitchInitiateTransfer:Tdn,lowBalanceIn:zdn}}}}=U.getLocalizedStrings();r.div`
|
|
88494
88520
|
display: flex;
|
|
88495
88521
|
flex-direction: row;
|
|
88496
88522
|
align-items: flex-start;
|
|
@@ -88749,7 +88775,7 @@ to {
|
|
|
88749
88775
|
position: absolute;
|
|
88750
88776
|
right: 50%;
|
|
88751
88777
|
bottom: -25px;
|
|
88752
|
-
`;const{common:$Ui,spendManagement:{treasury:
|
|
88778
|
+
`;const{common:$Ui,spendManagement:{treasury:Fdn,billPay:{insufficientFunds:Rdn}}}=U.getLocalizedStrings(),{texts:{zeroDollarPlaceholder:Odn}}=$Ui,kUi={portfolioContainerPadding:new L(v[3],v[4])},bQe={yieldEarned:new wt("extraSmallSemiBold","extraSmallSemiBold"),calculatorFooterText:new wt("extraSmallSemiBold","extraSmallSemiBold")};r.div`
|
|
88753
88779
|
margin-top: ${o.sp3};
|
|
88754
88780
|
display: flex;
|
|
88755
88781
|
background-color: ${e=>e.theme.colors.grey5};
|
|
@@ -88940,7 +88966,7 @@ to {
|
|
|
88940
88966
|
min-width: ${o.sp3};
|
|
88941
88967
|
min-height: ${o.sp3};
|
|
88942
88968
|
color: ${e=>e.theme.colors.hero};
|
|
88943
|
-
`;const RE={containerPaddingLeft:new L(v[3],v[5],v[5]),containerPaddingRight:new L(v[3],v[5],v[5]),successContentMargin:new L(v[3],v[12]),buttonTrayGap:new L(v[4],v[5])},EUi={formTitle:new wt("h7Medium","h7Medium")},{common:LUi,spendManagement:{treasury:
|
|
88969
|
+
`;const RE={containerPaddingLeft:new L(v[3],v[5],v[5]),containerPaddingRight:new L(v[3],v[5],v[5]),successContentMargin:new L(v[3],v[12]),buttonTrayGap:new L(v[4],v[5])},EUi={formTitle:new wt("h7Medium","h7Medium")},{common:LUi,spendManagement:{treasury:Ndn}}=U.getLocalizedStrings(),{texts:{review:Hdn}}=LUi;r(rt)`
|
|
88944
88970
|
color: ${e=>e.theme.colors.champion};
|
|
88945
88971
|
`;r(rt)`
|
|
88946
88972
|
color: ${e=>e.theme.colors.champion};
|
|
@@ -89060,7 +89086,7 @@ to {
|
|
|
89060
89086
|
flex-direction: column;
|
|
89061
89087
|
width: 100%;
|
|
89062
89088
|
padding-top: ${o.sp3};
|
|
89063
|
-
`;const vQe={setupDetailsRowGap:new L(12,v[5],v[5]),sectionRowGap:new L(v[5],v[5],v[5])},{commonSetUp:IUi,spendManagement:jUi,common:{settings:{productNameByType:{zeni_treasury:
|
|
89089
|
+
`;const vQe={setupDetailsRowGap:new L(12,v[5],v[5]),sectionRowGap:new L(v[5],v[5],v[5])},{commonSetUp:IUi,spendManagement:jUi,common:{settings:{productNameByType:{zeni_treasury:_dn}},texts:{businessVerification:Vdn,linkedAccount:Qdn,portfolioAllocation:Udn}}}=U.getLocalizedStrings(),{treasury:Wdn}=jUi,{setUp:Gdn}=IUi;r.div`
|
|
89064
89090
|
display: flex;
|
|
89065
89091
|
justify-content: flex-start;
|
|
89066
89092
|
height: 100%;
|
|
@@ -89393,7 +89419,7 @@ to {
|
|
|
89393
89419
|
border-radius: inherit;
|
|
89394
89420
|
`,PWi=r.div`
|
|
89395
89421
|
border-radius: inherit;
|
|
89396
|
-
`,{spendManagement:{treasury:{overviewPage:$xe},autoTransferRules:{pageTitle:
|
|
89422
|
+
`,{spendManagement:{treasury:{overviewPage:$xe},autoTransferRules:{pageTitle:Ydn}},common:{texts:{comments:Kdn,statements:TWi,settings:zWi}}}=U.getLocalizedStrings();$xe.editPortfolio,$xe.taxLetter;r.div`
|
|
89397
89423
|
display: flex;
|
|
89398
89424
|
flex-direction: row;
|
|
89399
89425
|
align-items: ${({isTopAlign:e})=>e?"flex-start":"center"};
|
|
@@ -89483,7 +89509,7 @@ to {
|
|
|
89483
89509
|
gap: ${o.sp3};
|
|
89484
89510
|
justify-content: ${e=>e.alignEnd===!0?"flex-end":"flex-start"};
|
|
89485
89511
|
overflow: hidden;
|
|
89486
|
-
`;const{common:FWi,spendManagement:RWi,dateFormat:eV,collaboration:{threads:{placeholder:{addANewComment:
|
|
89512
|
+
`;const{common:FWi,spendManagement:RWi,dateFormat:eV,collaboration:{threads:{placeholder:{addANewComment:qdn,replyAComment:Zdn},tooltip:{resolveComment:Jdn,unResolveComment:Xdn}}}}=U.getLocalizedStrings(),{settings:{productNameByType:{zeni_treasury:ecn}},strings:{empty:tcn},texts:{asOf:ocn,comments:icn,hide:rcn,insuredFunds:ncn,readyToUseBalance:acn,viewDetails:scn}}=FWi,{zeniAccounts:lcn,treasury:{overviewPage:OWi}}=RWi,JJ={tickLabelText:new wt("extraSmallSemiBold","extraSmallSemiBold"),fundSummaryStyles:new wt("smallSemiBold","smallSemiBold"),yieldValueStyles:new wt("h5Medium","h7Medium")},Pd={accountDetailHeaderPaddingRight:new L(v[3],v[5]),accountDetailHeaderPaddingBottom:new L(v[2],v[3]),accountDetailHeaderPaddingLeft:new L(v[3],v[5]),accountDetailHeaderPaddingTop:new L(v[3],v[3]),areaChartHeight:new L(114,182),accountDetailHeaderGap:new L(8,16,16),accountBriefWidth:new L(100,31,31),accountGraphWidth:new L(100,69,69)},NWi=g.memo(({accountHistory:e})=>{const t=je(),i=lt(),[n,a]=g.useState(),l=g.useMemo(()=>{const x=ui(new Date().toISOString()),y=x.clone().subtract(84,"day"),w=84/6;return Array.from({length:7}).map((b,C)=>{const k=C/6;let E;return k<.5?E=0:k<.6?E=.9*((k-.5)/.09999999999999998):E=.9,{date:(C===6?x:y.clone().add(Math.round(C*w),"day")).toISOString(),value:E}})},[]),d=g.useMemo(()=>(l.length<=0,0),[l.length]),c=e.fetchState==="Completed"&&(e.accountHistoryWithBalance.length===0||e.accountHistoryWithBalance.every(x=>x.balance?.available.amount===0)),p=g.useMemo(()=>e.accountHistoryWithBalance.map(x=>({...x,date:x.date.toISOString()})),[e.accountHistoryWithBalance]),u=g.useCallback(x=>{const y=Array.isArray(x)?x:[];let w="",b="";if(Array.isArray(y)&&y.length>0){const C=y[0].payload?.balance?.available;b=It("0,0[.]00",C),w=ui(y[0].payload?.date??"").format(eV.visual.DMMMYYYYFormat)}return s.jsxs(GWi,{children:[s.jsx(Lxe,{children:w}),s.jsx(Lxe,{isSublabel:!0,children:b})]})},[]),h=g.useCallback(x=>{const y=x,{x:w,y:b}=y,{value:C}=y.payload;let k=!1;e.accountHistoryWithBalance.length>360&&(k=!0);const E=k?ui(C).format(eV.visual.MMMformat):ui(C).format(eV.visual.MMMDFormat);return s.jsx(QWi,{translateX:w,translateY:b,children:s.jsx(UWi,{windowSize:t,dy:20,dx:-25,children:E})})},[e.accountHistoryWithBalance.length,t]),m=g.useCallback(({cx:x,cy:y,dataKey:w})=>(w==="balance.available.amount"&&(n?.x!==x||n?.y!==y)&&a({x,y}),s.jsx(YWi,{cx:x,cy:y,strokeWidth:1,r:v[1]})),[n]),f=g.useMemo(()=>{const x=e.accountHistoryWithBalance.length;return x<=0?0:x>360?Math.floor(x/12):Math.floor(x/7)},[e.accountHistoryWithBalance.length]);return s.jsx(WWi,{children:c?s.jsxs(qWi,{children:[s.jsx(JV,{height:Pd.areaChartHeight.value(t),width:"99%",children:s.jsxs(wk,{data:l,margin:{top:0,right:0,bottom:0,left:0},children:[s.jsx("defs",{children:s.jsxs(kxe,{id:"colorUv",x1:"0",y1:"0",x2:"0",y2:"1",children:[s.jsx(Sxe,{offset:"0%",stopColor:i.colors.grey2,stopOpacity:1}),s.jsx(Exe,{offset:"100%",stopColor:i.colors.grey2,stopOpacity:.02})]})}),s.jsx(zd,{dataKey:"date",stroke:i.colors.grey2,tickSize:0,tick:x=>h(x),interval:d,padding:{right:v[4]}}),s.jsx(Fd,{tick:!1,axisLine:!1,domain:[0,1]}),s.jsx(bk,{activeDot:void 0,fillOpacity:1,dot:!1,type:"monotone",dataKey:"value",stroke:i.colors.grey2,strokeDasharray:"4 4",fill:"url(#colorUv)"})]})}),s.jsx(ZWi,{children:s.jsx(KWi,{children:OWi.noData})})]}):s.jsx(JV,{height:Pd.areaChartHeight.value(t),width:"99%",children:s.jsxs(wk,{data:p,margin:{top:0,right:0,bottom:0,left:0},children:[s.jsx("defs",{children:s.jsxs(kxe,{id:"colorUv",x1:"0",y1:"0",x2:"0",y2:"1",children:[s.jsx(Sxe,{offset:"0%",stopColor:$.brandColorJade,stopOpacity:1}),s.jsx(Exe,{offset:"100%",stopColor:$.brandColorJade,stopOpacity:.03})]})}),s.jsx(zd,{dataKey:"date",stroke:i.colors.grey3,tickSize:0,reversed:!0,tick:x=>h(x),padding:{right:v[4]},interval:f}),s.jsx(Fd,{tick:!1,axisLine:!1}),s.jsx(L2,{position:n,content:({payload:x})=>u(x),cursor:{strokeDasharray:"3",stroke:$.brandColorJade}}),s.jsx(bk,{activeDot:m,fillOpacity:1,dot:!1,type:"monotone",dataKey:"balance.available.amount",stroke:$.brandColorJade,fill:"url(#colorUv)"})]})})})});NWi.displayName="AccountBalanceGraph";const HWi=g.memo(({treasuryDetail:e,onColumnSortConfigChanged:t})=>{const i=je();return s.jsx(s.Fragment,{children:e.transactions.length>0?s.jsx(VWi,{windowSize:i,children:s.jsx(CWi,{transactionList:e.transactions,fetchState:e.fetchState,uiState:e.uiState,onReloadCards:()=>{},onColumnSortConfigChanged:t})}):s.jsx(_Wi,{})})});HWi.displayName="TransactionListScreen";const _Wi=r.div`
|
|
89487
89513
|
display: flex;
|
|
89488
89514
|
flex-direction: column;
|
|
89489
89515
|
align-items: center;
|
|
@@ -90010,7 +90036,7 @@ to {
|
|
|
90010
90036
|
min-height: 1px;
|
|
90011
90037
|
max-height: 1px;
|
|
90012
90038
|
margin-top: ${o.sp4};
|
|
90013
|
-
`;const{spendManagement:{treasury:{statements:{title:
|
|
90039
|
+
`;const{spendManagement:{treasury:{statements:{title:dcn}}},common:{texts:{noStatementsFound:ccn}}}=U.getLocalizedStrings(),JWi={listItemMargin:new L(v[3],v[8])};r.div``;r.div`
|
|
90014
90040
|
margin: ${e=>`${o.sp0} ${JWi.listItemMargin.valuePx(e.windowSize)}`};
|
|
90015
90041
|
&:hover {
|
|
90016
90042
|
position: relative;
|
|
@@ -90120,7 +90146,7 @@ to {
|
|
|
90120
90146
|
border-radius: 2px;
|
|
90121
90147
|
}
|
|
90122
90148
|
}
|
|
90123
|
-
`;const{spendManagement:{autoTransferRules:
|
|
90149
|
+
`;const{spendManagement:{autoTransferRules:pcn},common:{texts:{addRule:ucn}}}=U.getLocalizedStrings(),eGi=4,g4={sectionWidth:new L(343,580,756),width:new L(343,580,756),sectionRowGap:new L(v[3],v[3],v[3]),sectionTitlePaddingTop:new L(v[5],v[5],v[5]),sectionTitlePaddingBottom:new L(v[3],v[3],v[3]),navIconLeftMargin:new L(12,v[4])},tGi={title:new wt("standardSemiBold","largeSemiBold")};r(pt)`
|
|
90124
90150
|
color: ${e=>e.theme.colors.champion};
|
|
90125
90151
|
padding-top: ${e=>g4.sectionTitlePaddingTop.valuePx(e.windowSize)};
|
|
90126
90152
|
padding-bottom: ${e=>g4.sectionTitlePaddingBottom.valuePx(e.windowSize)};
|
|
@@ -90212,7 +90238,7 @@ to {
|
|
|
90212
90238
|
color: ${e=>e.theme.colors.primary};
|
|
90213
90239
|
fill: ${e=>e.theme.colors.primary};
|
|
90214
90240
|
}
|
|
90215
|
-
`;const{spendManagement:{autoTransferRules:
|
|
90241
|
+
`;const{spendManagement:{autoTransferRules:hcn}}=U.getLocalizedStrings(),oGi=U.getLocalizedStrings(),{common:mcn,spendManagement:{autoTransferRules:{createRuleDrawer:gcn,ruleTypes:fcn},billPay:{insufficientFunds:{addMoney:xcn}}}}=oGi;r.div`
|
|
90216
90242
|
display: flex;
|
|
90217
90243
|
align-items: flex-start;
|
|
90218
90244
|
box-sizing: border-box;
|
|
@@ -90418,7 +90444,7 @@ to {
|
|
|
90418
90444
|
min-width: 0;
|
|
90419
90445
|
text-align: right;
|
|
90420
90446
|
box-sizing: border-box;
|
|
90421
|
-
`;const iGi=U.getLocalizedStrings(),{common:
|
|
90447
|
+
`;const iGi=U.getLocalizedStrings(),{common:ycn}=iGi,Za={sectionWidth:new L(343,580,756),sectionRowGap:new L(v[3],v[3],v[3]),iconWidthHeightPx:o.sp5,iconContainerSize:new L(v[6],v[6],v[6]),containerPadding:new L(v[3],v[4]),contentLeftInset:new L(30,34,40),cardGap:new L(v[2],v[3]),cardBorderRadiusPx:8,footerPaddingVertical:o.sp2,footerPaddingHorizontal:o.sp4},rGi={title:new wt("standardSemiBold","largeSemiBold")};r.div`
|
|
90422
90448
|
display: flex;
|
|
90423
90449
|
flex-direction: column;
|
|
90424
90450
|
row-gap: ${e=>Za.sectionRowGap.valuePx(e.windowSize)};
|
|
@@ -90613,7 +90639,7 @@ to {
|
|
|
90613
90639
|
color: ${e=>e.theme.colors.brandColorGoldDark};
|
|
90614
90640
|
`;r(St)`
|
|
90615
90641
|
color: ${e=>e.theme.colors.brandColorGoldDark};
|
|
90616
|
-
`;const nGi=U.getLocalizedStrings(),{common:
|
|
90642
|
+
`;const nGi=U.getLocalizedStrings(),{common:wcn}=nGi;r.div`
|
|
90617
90643
|
display: flex;
|
|
90618
90644
|
flex-direction: column;
|
|
90619
90645
|
height: 100%;
|
|
@@ -90855,7 +90881,7 @@ to {
|
|
|
90855
90881
|
color: ${e=>e.theme.colors.brandColorGoldDark};
|
|
90856
90882
|
`;r(rt)`
|
|
90857
90883
|
color: ${e=>e.theme.colors.brandColorGoldDark};
|
|
90858
|
-
`;const{spendManagement:{autoTransferRules:{pageTitle:
|
|
90884
|
+
`;const{spendManagement:{autoTransferRules:{pageTitle:bcn}},common:{texts:{activity:vcn}}}=U.getLocalizedStrings();r.div`
|
|
90859
90885
|
display: flex;
|
|
90860
90886
|
min-height: 100%;
|
|
90861
90887
|
flex-direction: column;
|
|
@@ -90966,7 +90992,7 @@ to {
|
|
|
90966
90992
|
padding: ${o.sp2} ${o.sp3} ${o.sp3};
|
|
90967
90993
|
`;r.div`
|
|
90968
90994
|
width: ${e=>e.width};
|
|
90969
|
-
`;const{activity:
|
|
90995
|
+
`;const{activity:Ccn}=U.getLocalizedStrings().common.texts,AQe=U.getLocalizedStrings(),{transactionActivityLog:sGi}=AQe.expenseAutomation.transactions,{dateFormat:Acn,common:{strings:{hash:$cn},texts:{category:kcn,class:Scn,customer:Ecn,description2:Lcn,details:Icn,memo:jcn,vendor:Mcn}}}=AQe;sGi.linePrefix;r.div`
|
|
90970
90996
|
width: 100%;
|
|
90971
90997
|
height: 100%;
|
|
90972
90998
|
display: flex;
|
|
@@ -91361,7 +91387,7 @@ to {
|
|
|
91361
91387
|
justify-content: center;
|
|
91362
91388
|
align-items: center;
|
|
91363
91389
|
background-color: inherit;
|
|
91364
|
-
`;function QGi(e){if(e.tabsFileType!=null)return{locale_id:U.getAppLocaleID(),tabs_file_type:e.tabsFileType,tabs:e.tabs,filter_by_tabs:e.filterByTabs,time_zone:e.timezone}}const{cockpit:UGi,download:Txe,common:{texts:{unsupportedFiletype:WGi,cockpit:zxe}}}=U.getLocalizedStrings();function GGi(e){const{tabs:t,filterByTabs:i,tabsFileType:n,timezone:a}=e.defaultOptions;return{tabsFileType:n,tabs:t,filterByTabs:i,timezone:a}}function YGi(e){const t=GGi(e);return KGi(e.downloadParams.cockpitEndPoint,e.downloadParams.authParams,t)}async function KGi(e,t,i){const n=`${e}?query=${encodeURIComponent(JSON.stringify(QGi(i)))}`;try{if(i.tabsFileType==null)throw new Error(WGi);const a=await tyo({urlEndPoint:n,authParams:t,fileType:i.tabsFileType});if(a.ok){const l=fTe(a.headers,UGi.defaultFileName),d=await a.arrayBuffer();xL(d,l)}else console.error(`${Txe.errorMessages.fileDownloadError.replace("__feature__",zxe)} ${a.statusText}`)}catch(a){console.error(`${Txe.errorMessages.fileDownloadError.replace("__feature__",zxe)} ${JSON.stringify(a)}`)}}const Xr=88,$f=58,kf=1,Sf=55,qGi=10,ZGi=5,hh=["management","subscription","portfolio","onboarding","audit","healthMonitor","taskManager","aiAccountant"],
|
|
91390
|
+
`;function QGi(e){if(e.tabsFileType!=null)return{locale_id:U.getAppLocaleID(),tabs_file_type:e.tabsFileType,tabs:e.tabs,filter_by_tabs:e.filterByTabs,time_zone:e.timezone}}const{cockpit:UGi,download:Txe,common:{texts:{unsupportedFiletype:WGi,cockpit:zxe}}}=U.getLocalizedStrings();function GGi(e){const{tabs:t,filterByTabs:i,tabsFileType:n,timezone:a}=e.defaultOptions;return{tabsFileType:n,tabs:t,filterByTabs:i,timezone:a}}function YGi(e){const t=GGi(e);return KGi(e.downloadParams.cockpitEndPoint,e.downloadParams.authParams,t)}async function KGi(e,t,i){const n=`${e}?query=${encodeURIComponent(JSON.stringify(QGi(i)))}`;try{if(i.tabsFileType==null)throw new Error(WGi);const a=await tyo({urlEndPoint:n,authParams:t,fileType:i.tabsFileType});if(a.ok){const l=fTe(a.headers,UGi.defaultFileName),d=await a.arrayBuffer();xL(d,l)}else console.error(`${Txe.errorMessages.fileDownloadError.replace("__feature__",zxe)} ${a.statusText}`)}catch(a){console.error(`${Txe.errorMessages.fileDownloadError.replace("__feature__",zxe)} ${JSON.stringify(a)}`)}}const Xr=88,$f=58,kf=1,Sf=55,qGi=10,ZGi=5,hh=["management","subscription","portfolio","onboarding","audit","healthMonitor","taskManager","aiAccountant"],Bcn=[...hh,"creditAgent"],$Qe=[{value:"controllerUserIds",multiple:!0,type:"user"},{value:"customerSuccessManagerUserIds",multiple:!0,type:"user"},{value:"preparerUserIds",multiple:!0,type:"user"},{value:"reviewerUserIds",multiple:!0,type:"user"},{value:"apAnalystUserIds",multiple:!0,type:"user"},{value:"taxLeadUserIds",multiple:!0,type:"user"},{value:"plans",multiple:!0},{value:"productVerticals",multiple:!0},{value:"companyGroupId"},{value:"taxStatusCode"},{value:"statusCode"},{value:"annualRecurringRevenue"},{value:"monthlyRecurringRevenue"},{value:"customerSatisfaction",type:"rating"},{value:"zeniSatisfaction",type:"rating"}],kQe=[{value:"controllerUserIds",multiple:!0,type:"user"},{value:"statusCode"},{value:"recommendedActionCode"},{value:"monthlyRecurringRevenue"},{value:"subscriptionPlans",multiple:!0},{value:"subscriptionAddOns",multiple:!0},{value:"avg2MonthExpenses"},{value:"slabLowerLimit"},{value:"slabUpperLimit"}],SQe=[{value:"netBurnOrIncome"},{value:"cashPosition"},{value:"expenses"},{value:"income"},{value:"runway",type:"runway"}],EQe=[{value:"controller",multiple:!0,type:"user"},{value:"customerSuccessManager",multiple:!0,type:"user"},{value:"churnProbabilityPercentage",type:"dropdownRange"},{value:"runway",type:"runway"},{value:"netPromoterScore",type:"dropdownRange"},{value:"customerSatisfactionScore",type:"dropdownRange"},{value:"lastReportSent",type:"dateRange"},{value:"subscriptionRenewalDate",type:"dateRange"},{value:"subscriptionStartDate",type:"dateRange"},{value:"verticalProductServices"},{value:"monthlyRecurringRevenue"},{value:"companyGroupId"},{value:"externalProductServiceExposure"},{value:"companyEngagementMetricsUpdatedAt",type:"dateRange"}],JGi=[{label:"< 200K",value:"0<->200000"},{label:"75K to 100K",value:"75000<->100000"},{label:"25K to 75K",value:"25000<->75000"},{label:"< 25K",value:"0<->25000"}],tX=[{label:"< 10K",value:"0<->10000"},{label:"5K to 8K",value:"5000<->8000"},{label:"2K to 5K",value:"2000<->5000"},{label:"< 2K",value:"0<->2000"}],XGi=[{label:"< 60K",value:"0<->60000"},{label:"60K to 200K",value:"60000<->200000"},{label:"200K to 500K",value:"200000<->500000"},{label:"500K to 800K",value:"500000<->800000"},{label:"800K to 1M",value:"800000<->1000000"},{label:"> 1M",value:"1000000-10000000000"}],eYi=[{label:"< 100K",value:"0<->100000"},{label:"100K to 500K",value:"100000<->500000"},{label:"500K to 1M",value:"500000<->1000000"},{label:"> 1M",value:"1000000<->10000000000"}],tYi=[{label:"< -500K",value:"-10000000000<->-500000"},{label:"-500K to -100K",value:"-500000<->-100000"},{label:"-100K to 0",value:"-100000<->0"},{label:"0 to 100K",value:"0<->100000"},{label:"> 100K",value:"100000<->10000000000"}],oYi=[{label:"< 10K",value:"-10000000000<->10000"},{label:"10K to 100K",value:"10000<->100000"},{label:"100K to 500K",value:"100000<->500000"},{label:"500K to 2M",value:"500000<->2000000"},{label:"2M to 5M",value:"2000000<->5000000"},{label:"5M to 25M",value:"5000000<->25000000"},{label:"> 25M",value:"25000000<->10000000000"}],iYi=[{label:"< 10K",value:"0<->10000"},{label:"10K to 50K",value:"10000<->50000"},{label:"50K to 100K",value:"50000<->100000"},{label:"100K to 300K",value:"100000<->300000"},{label:"300K to 500K",value:"300000<->500000"},{label:"500K to 1M",value:"500000<->1000000"},{label:"> 1M",value:"1000000<->10000000000"}],rYi=[{label:"< 5K",value:"-10000000000<->5000"},{label:"5K to 25K",value:"5000<->25000"},{label:"25K to 100K",value:"25000<->100000"},{label:"100K to 500K",value:"100000<->500000"},{label:"> 500K",value:"500000<->10000000000"}],nYi=[{label:"<= 3 months",value:"0<->3",iconColor:$.runwayRed},{label:"<= 1 year",value:"4<->12",iconColor:$.runwayYellow},{label:"> 1 year",value:"13<->1000000",iconColor:$.runwayGreen}],aYi=[{label:"ZBP",value:"billpay"},{label:"ZA",value:"accounts"},{label:"ZR",value:"reimbursement"},{label:"ZC",value:"cards"},{label:"Tax",value:"zeni_tax_plan"},{label:"Payroll",value:"payroll_manager_service_plan"},{label:"CFO",value:"cfo_plan"}],sYi=[{label:"0",value:"0"},{label:"10",value:"10"},{label:"20",value:"20"},{label:"30",value:"30"},{label:"40",value:"40"},{label:"50",value:"50"},{label:"60",value:"60"},{label:"70",value:"70"},{label:"80",value:"80"},{label:"90",value:"90"},{label:"100",value:"100"}],lYi=[{label:"1",value:"1"},{label:"2",value:"2"},{label:"3",value:"3"},{label:"4",value:"4"},{label:"5",value:"5"},{label:"6",value:"6"},{label:"7",value:"7"},{label:"8",value:"8"},{label:"9",value:"9"},{label:"10",value:"10"}],dYi=[{label:"1",value:"1"},{label:"2",value:"2"},{label:"3",value:"3"},{label:"4",value:"4"},{label:"5",value:"5"}],cYi=[{label:"<= 1 month",value:"0<->1"},{label:"1 to 3 months",value:"1<->3"},{label:"3 to 6 months",value:"3<->6"},{label:"6 to 12 months",value:"6<->12"},{label:"1 to 5 years",value:"12<->60"},{label:"5 to 10 years",value:"60<->120"},{label:"> 10 year",value:"121<->1000000"}],LQe=[1,2,3,4,5,6,7,8,9,10],IQe=[1,2,3,4,5],{cockpit:{titles:pYi},common:{settings:{integrations:{connectorTooltips:{accountantSectionLabel:uYi}},productNameByType:{charge_cards:hYi}}}}=U.getLocalizedStrings(),mYi=e=>{switch(e){case"management":case"subscription":case"portfolio":case"onboarding":case"audit":return e;case"aiAccountant":return uYi;case"creditAgent":return hYi;default:return pYi.healthMonitor}},gYi=e=>{switch(e){case"management":return"Cockpit - Management";case"subscription":return"Cockpit - Subscription";case"portfolio":return"Cockpit - Portfolio";case"onboarding":return"Cockpit - Onboarding";case"audit":return"Cockpit - Audit";case"aiAccountant":return"Cockpit - AI Accountant";case"creditAgent":return"Cockpit - Credit Agent";default:return"Cockpit - Health Monitor"}},fYi=[{value:"enrollmentStatus",multiple:!0}],jQe=[{value:"company_id",multiple:!0},{value:"status",multiple:!0},{value:"priority",multiple:!0},{value:"assignees",multiple:!0,type:"user"},{value:"tag",multiple:!0},{value:"dueDate",type:"dateRange"},{value:"creationDate",type:"dateRange"}],xYi=({downloadCockpitOptions:e})=>s.jsx(eyo,{downloadMenuItems:e.downloadMenu.simpleMenuItems,onDownloadClick:e.downloadMenu.onDownloadClick});function yYi(e){const[t,i]=g.useState(!1),{analytics:n,updateDownloadStateHandler:a,downloadState:l,currentCockpitTab:d}=e;return g.useEffect(()=>{async function c(){await YGi({...e}),a("Completed"),n.trackDownload(gYi(d),"months","excel",!1)}t&&e.downloadState!=="In-Progress"&&(i(!1),a("In-Progress"),c())},[l,t,a,n,e,d]),s.jsx(wYi,{"data-testid":X("cockpit-download-button"),children:s.jsx(xYi,{downloadCockpitOptions:{type:"simple_menu",downloadMenu:{simpleMenuItems:[{type:"excel",isDownloading:e.downloadState==="In-Progress"}],onDownloadClick:async c=>{if(c==="excel"){if(e.downloadState==="In-Progress")return;i(!0)}}}}})})}const wYi=r.div``,{common:{texts:{cockpit:bYi,newCustomer:Fxe,comments:vYi}}}=U.getLocalizedStrings(),Rxe=r.div`
|
|
91365
91391
|
width: 100%;
|
|
91366
91392
|
flex-direction: column;
|
|
91367
91393
|
display: flex;
|
|
@@ -92518,7 +92544,7 @@ ${e}`,DJi=e=>g.createElement("svg",{width:38,height:39,viewBox:"0 0 38 39",fill:
|
|
|
92518
92544
|
height: calc(100vh - 45px);
|
|
92519
92545
|
overflow-y: hidden;
|
|
92520
92546
|
background-color: ${e=>e.theme.colors.grey4};
|
|
92521
|
-
`,
|
|
92547
|
+
`,Dcn=({companiesExcludedFromMonthEndReport:e,headerData:t,headerActions:i,managementPageActions:n,managementPageData:a,expenseAutomationEnabledCompanies:l,initialOpenThreadRequest:d})=>{const{managementView:c,loggedInUser:p,loggedInUserRole:u,realmIdUpdateStatusByCompanyId:h,showDetailsPageLink:m}=a,f=OQe(),x=uKi(),{onColumnSortConfigChanged:y,changeHandlers:w,onScroll:b,onViewDetailsLinkClicked:C,onCockpitReloadData:k,onCompanyNameClicked:E,onPassportIconClicked:S,onTaskIconClicked:j,onFiltersChange:I,onMonthEndReportPageClick:T,showMonthEndReportHistoricData:P,onProductVerticalsChanged:B,onRealmIdReset:D,onRealmIdUpdate:F}=n,Y=c.uiState.filterText,q=c.uiState.filters,Z=c.fetchState==="Completed"&&c.zeniUsers.fetchState==="Completed";return i.filterActions&&(i.filterActions.getCategoryWiseOptions=()=>qer(c)),s.jsxs(Yer,{children:[s.jsx(U2,{headerActions:{...i},headerData:{...t,filterData:{filterText:Y,filters:q},companiesLoaded:Z,selectedTabOption:"management",allTabOptions:m===void 0?t.allTabOptions??hh:void 0}}),s.jsx(Ker,{changeHandlers:w,companiesExcludedFromMonthEndReport:e,expenseAutomationEnabledCompanies:l,initialOpenThreadRequest:d,isFilterApplied:q?.categories!=null,loggedInUser:p,loggedInUserRole:u,managementView:c,onClearFilter:()=>I?.("management",{}),onCockpitReloadData:k,onColumnSortConfigChanged:y,onCompanyNameClicked:E,onMonthEndReportPageClick:T,onPassportIconClicked:S,onScroll:b,onTaskIconClicked:j,onViewDetailsLinkClicked:C,showMonthEndReportHistoricData:P,isProductVerticalsColumnVisible:f,onProductVerticalsChanged:B,isRealmIdColumnVisible:x,realmIdUpdateStatusByCompanyId:h,onRealmIdReset:D,onRealmIdUpdate:F})]})},Ker=({managementView:e,showDetailsPageLink:t=!0,loggedInUser:i,companiesExcludedFromMonthEndReport:n,expenseAutomationEnabledCompanies:a,initialOpenThreadRequest:l,isFilterApplied:d,loggedInUserRole:c,onColumnSortConfigChanged:p,changeHandlers:u,onScroll:h,onViewDetailsLinkClicked:m,onCockpitReloadData:f,onCompanyNameClicked:x,onTaskIconClicked:y,onPassportIconClicked:w,onClearFilter:b,onMonthEndReportPageClick:C,showMonthEndReportHistoricData:k,isProductVerticalsColumnVisible:E,onProductVerticalsChanged:S,isRealmIdColumnVisible:j,realmIdUpdateStatusByCompanyId:I,onRealmIdReset:T,onRealmIdUpdate:P})=>{const B=je();return e.fetchState==="Error"||e.zeniUsers.fetchState==="Error"?s.jsx(Ig,{onCockpitReloadData:f,selectedCockpitOption:"management"}):e.fetchState==="In-Progress"||e.fetchState==="Not-Started"||e.zeniUsers.fetchState==="In-Progress"||e.zeniUsers.fetchState==="Not-Started"?s.jsx(Wer,{children:s.jsx(yo,{size:"ExtraLarge",start:!0})}):e.companies.length===0?d?s.jsx(jc,{emptySearchTextFirstLine:Rer,emptySearchTextSecondLine:cye,filtersApplied:!0,onClearFilter:b}):s.jsx(jc,{emptySearchTextFirstLine:Qer,emptySearchTextSecondLine:cye}):s.jsx(Ger,{windowSize:B,children:s.jsx(Fer,{showDetailsPageLink:t,onColumnSortConfigChanged:p,changeHandlers:u,onScroll:h,onViewDetailsLinkClicked:m,managementView:e,loggedInUser:i,loggedInUserRole:c,expenseAutomationEnabledCompanies:a,onCompanyNameClicked:x,onTaskIconClicked:y,onPassportIconClicked:w,onMonthEndReportPageClick:C,companiesExcludedFromMonthEndReport:n,showMonthEndReportHistoricData:k,initialOpenThreadRequest:l,isProductVerticalsColumnVisible:E,onProductVerticalsChanged:S,isRealmIdColumnVisible:j,realmIdUpdateStatusByCompanyId:I,onRealmIdReset:T,onRealmIdUpdate:P})})},qer=e=>{const t=e.zeniUsers.values,i=$Qe,{companies:n}=e;return i.reduce((a,l)=>{switch(l.value){case"companyGroupId":{if(n.length===0)return{...a,[l.value]:[]};const d=n[0].company.schema.companyGroup.map(c=>{const p=c;return{label:p.name,value:p.id}});return{...a,[l.value]:d}}case"statusCode":{if(n.length===0)return{...a,[l.value]:[]};const d=n[0].company.schema.status.map(c=>{const p=c;return{label:p.name,value:p.code}});return{...a,[l.value]:d}}case"taxStatusCode":{if(n.length===0)return{...a,[l.value]:[]};const d=n[0].company.schema.taxStatus.map(c=>{const p=c;return{label:p.name,value:p.code,avatar:""}});return{...a,[l.value]:d}}case"controllerUserIds":case"apAnalystUserIds":case"preparerUserIds":case"reviewerUserIds":case"taxLeadUserIds":case"customerSuccessManagerUserIds":{const d=t.map(c=>({label:c.firstName||c.lastName?`${c.firstName} ${c.lastName}`:c.email,value:c.userId,photo:c.photo,email:c.email}));return{...a,[l.value]:d}}case"plans":{const d=e.subscriptionPlansZeniSkus.map(c=>({label:c,value:c})).sort((c,p)=>c.label.localeCompare(p.label));return{...a,[l.value]:d}}case"annualRecurringRevenue":return{...a,[l.value]:JGi};case"monthlyRecurringRevenue":return{...a,[l.value]:tX};case"customerSatisfaction":{const d=Object.values(Nw).map(c=>({label:c.name,value:c.id}));return{...a,[l.value]:d}}case"zeniSatisfaction":{const d=Object.values(G6).map(c=>({label:c.name,value:c.id}));return{...a,[l.value]:d}}case"productVerticals":{const d=VQe.map(c=>({label:{...Oer,bookkeeping:Her,billPay:Ner,reimbursement:Ver,tax:Uer,payroll:_er}[c],value:c}));return{...a,[l.value]:d}}default:return{...a,[l.value]:[]}}},{})},{cockpit:{taskManager:{header:Zer}},common:y3}=U.getLocalizedStrings(),f4=[{key:"name",value:y3.texts.name,sortOrder:"ascending",width:new L(176,176),isThreadAllowed:!0},{key:"taskName",value:Zer.taskName,sortOrder:"ascending",width:new L(320,320),isThreadAllowed:!0},{key:"status",value:y3.texts.status,sortOrder:"ascending",width:new L(100,100),isThreadAllowed:!0},{key:"priority",value:y3.texts.priority,sortOrder:"ascending",width:new L(90,90),isThreadAllowed:!0},{key:"dueDate",value:y3.texts.dueDate,sortOrder:"ascending",width:new L(100,100),isThreadAllowed:!0},{key:"assignee",value:y3.texts.assignee,sortOrder:"ascending",width:new L(220,220),isThreadAllowed:!0},{key:"tags",value:y3.texts.tags,sortOrder:"ascending",width:new L(115,115),isThreadAllowed:!0},{key:"createdBy",value:y3.texts.createdBy,sortOrder:"ascending",width:new L(140,140),isThreadAllowed:!0}];f4.map(e=>e.key);function Jer({sortConfig:e,onColumnSortConfigChanged:t}){const i=je(),[n,a]=g.useState(On(f4));g.useEffect(()=>{const d=[...n];for(const c of d)c.key===e.sortKey?c.sortOrder=e.sortOrder:c.sortOrder="ascending";a(d)},[e.sortKey,e.sortOrder]);const l=(d,c)=>{let p=c;e.sortKey===d&&(p=c==="ascending"?"descending":"ascending"),t(d,p)};return s.jsx(etr,{height:$f,children:n.map(d=>s.jsxs(ttr,{sortDataValue:e.sortKey,actualDataValue:d.key,wrapperWidth:d.width,windowSize:i,children:[s.jsxs(rtr,{onClick:()=>l($be(d.key),d.sortOrder),children:[s.jsx(Qo,{children:d.value}),s.jsx(Xer,{sortDataValue:e.sortKey,headerdata:d,children:s.jsx(pn,{width:12,height:12})})]}),s.jsx(itr,{isVisible:e.sortKey===d.key&&d.key!=="dueDate",children:s.jsx(otr,{onClick:()=>l("dueDate","ascending")})})]},d.key))})}const Xer=r.div`
|
|
92522
92548
|
display: flex;
|
|
92523
92549
|
align-items: center;
|
|
92524
92550
|
transform: ${e=>e.sortDataValue===e.headerdata.key&&e.headerdata.sortOrder==="descending"?"rotate(180deg)":"rotate(0deg)"};
|
|
@@ -92676,7 +92702,7 @@ ${e}`,DJi=e=>g.createElement("svg",{width:38,height:39,viewBox:"0 0 38 39",fill:
|
|
|
92676
92702
|
min-height: 100%;
|
|
92677
92703
|
flex-direction: column;
|
|
92678
92704
|
width: 100%;
|
|
92679
|
-
`,ytr=(e,t)=>[e.from,e.sortKey,e.sortOrder,!0,e.filterText,t],wtr=(e,t,i,n)=>[0,i,n,!1,e.filterText,t],btr=(e,t,i)=>[0,e.sortKey,e.sortOrder,!1,i,t],vtr=e=>[0,e.sortKey,e.sortOrder,!1,"",{}],{cockpit:{emptySearchTextSecondLine:Ctr,taskManager:{emptyOnFilters:Atr,metrics:{totalTasks:$tr,openTasks:ktr,overdueTasks:Str,closedTasks:Etr}}},common:{texts:{sorryWeCouldnTFindAnyResults:Ltr}}}=U.getLocalizedStrings(),
|
|
92705
|
+
`,ytr=(e,t)=>[e.from,e.sortKey,e.sortOrder,!0,e.filterText,t],wtr=(e,t,i,n)=>[0,i,n,!1,e.filterText,t],btr=(e,t,i)=>[0,e.sortKey,e.sortOrder,!1,i,t],vtr=e=>[0,e.sortKey,e.sortOrder,!1,"",{}],{cockpit:{emptySearchTextSecondLine:Ctr,taskManager:{emptyOnFilters:Atr,metrics:{totalTasks:$tr,openTasks:ktr,overdueTasks:Str,closedTasks:Etr}}},common:{texts:{sorryWeCouldnTFindAnyResults:Ltr}}}=U.getLocalizedStrings(),Pcn=({headerActions:e,headerData:t,isBirdsEyeViewEnabled:i,initialOpenThreadRequest:n,taskManagerPageData:a,taskManagerPageActions:l})=>{const{companyTaskManagerView:d}=a,{uiState:c}=d,{onCockpitReloadData:p,onFetchTaskManagerView:u,onRowClick:h}=l,m=d.fetchState==="Completed",{filters:f}=d.uiState,[x,y]=g.useState(d.uiState.filterText??""),w=(f?.categories?.length??0)>0||(d.uiState.filterText??"")!=="",b=()=>{u(...ytr(c,f))},C=(I,T)=>{u(...wtr(c,f,I,T))},k=g.useRef({filters:f,onFetchTaskManagerView:u,uiState:c});k.current={filters:f,onFetchTaskManagerView:u,uiState:c};const E=g.useRef(V4(I=>{const{filters:T,onFetchTaskManagerView:P,uiState:B}=k.current;P(...btr(B,T,I))},500,{trailing:!0})).current,S=(I,T)=>{y(T);const P=T.trim();P.length>=2?E(P):E("")},j=()=>{y(""),E.cancel(),e.filterActions?.onFiltersChange?.("taskManager",{}),u(...vtr(c))};return e.filterActions&&(e.filterActions.getCategoryWiseOptions=()=>jtr(d)),s.jsxs(Mtr,{children:[s.jsx(U2,{headerActions:{...e,filterActions:{...e.filterActions,onFilterTextChanged:S}},headerData:{...t,allTabOptions:t.allTabOptions??hh,selectedTabOption:"taskManager",companiesLoaded:m,filterData:{filterText:x,filters:f}}}),i?s.jsx(Ptr,{metrics:d.metrics}):null,s.jsx(Itr,{companyTaskManagerView:d,fetchNextItemsOnScroll:b,hasAppliedFilters:w,onClearFilter:j,initialOpenThreadRequest:n,onCockpitReloadData:p,onColumnSortConfigChanged:C,onRowClick:h})]})},Itr=({companyTaskManagerView:e,fetchNextItemsOnScroll:t,initialOpenThreadRequest:i,hasAppliedFilters:n,onClearFilter:a,onCockpitReloadData:l,onColumnSortConfigChanged:d,onRowClick:c})=>{const p=je();return e.fetchState==="Error"&&e.tasksList.length===0?s.jsx(Ig,{selectedCockpitOption:"taskManager",onCockpitReloadData:l}):e.fetchState==="Not-Started"||e.fetchState==="In-Progress"&&e.tasksList.length===0?s.jsx(Btr,{children:s.jsx(yo,{size:"ExtraLarge",start:!0})}):e.fetchState==="Completed"&&e.tasksList.length===0?n?s.jsx(jc,{emptySearchTextFirstLine:Atr,filtersApplied:!0,onClearFilter:a}):s.jsx(jc,{emptySearchTextFirstLine:Ltr,emptySearchTextSecondLine:Ctr}):s.jsx(Dtr,{windowSize:p,children:s.jsx(htr,{companyTaskManagerView:e,fetchNextItemsOnScroll:t,initialOpenThreadRequest:i,onColumnSortConfigChanged:d,onRowClick:c})})},jtr=e=>{const t=jQe,i=new Map;for(const n of e.tasksList)for(const a of n.tags)i.has(a.tagId)||i.set(a.tagId,a);return t.reduce((n,a)=>{switch(a.value){case"company_id":{const l=(e.companies??[]).map(d=>({label:d.companyInfo.name,value:d.companyInfo.companyId}));return{...n,[a.value]:l}}case"assignees":{const l=(e.users??[]).map(d=>({label:d?.firstName||d?.lastName?`${d?.firstName} ${d?.lastName}`:d?.email??"",value:d.userId,photo:d?.photo,email:d?.email}));return{...n,[a.value]:l}}case"status":return{...n,[a.value]:_w.map(l=>({label:l.name,value:l.code}))};case"priority":return{...n,[a.value]:O4.map(l=>({label:l.name,value:l.code}))};case"tag":{const l=Array.from(i.values()).map(d=>({label:d.name,value:d.tagId}));return{...n,[a.value]:l}}default:return{...n,[a.value]:[]}}},{})},Mtr=r.div`
|
|
92680
92706
|
height: calc(100vh - 60px);
|
|
92681
92707
|
overflow-y: hidden;
|
|
92682
92708
|
display: flex;
|
|
@@ -92983,7 +93009,7 @@ ${e}`,DJi=e=>g.createElement("svg",{width:38,height:39,viewBox:"0 0 38 39",fill:
|
|
|
92983
93009
|
color: ${$.heroDark};
|
|
92984
93010
|
`,Qor=r(dUe)`
|
|
92985
93011
|
color: ${$.heroDark};
|
|
92986
|
-
`,Uor=r(Ce)``,{common:Xs,cockpit:{health:{detailPage:ea,common:{engagementTypes:Wor,labels:{lastEngagements:Gor,factorsThatDecreaseChurnProbability:Yor,factorsThatIncreaseChurnProbability:Kor,contributingFactors:qor,increaseChurnProbability:Zor,decreasingChurnProbability:Jor}}}},dateFormat:Xor}=U.getLocalizedStrings(),{to:eir,from:tir,cc:oir,host:iir,attendees:rir,strings:{colon:Ks,hyphen:yye,comma:nir,space:air},texts:{subject:wye,addMore:sir,select:lir}}=Xs,{strings:{percentage:bye}}=Xs,y$=(e,t)=>`${e}.${t}`,vye=e=>`${e}_form`,Oh="healthMonitorDetails",Cye="healthMonitorPage",Aye="netPromoterScore",$ye="customerSatisfactionScore",kye="externalProductServiceExposure",Sye="additionalChurnFactors",cUe=e=>[{label:Kor,options:e.increasingChurnProbability.map(t=>({label:t.value,value:t.code}))},{label:Yor,options:e.decreasingChurnProbability.map(t=>({label:t.value,value:t.code}))}],pUe=e=>e==null?[]:e.increasingChurnProbability.map(t=>t.code).concat(e.decreasingChurnProbability.map(t=>t.code));function Icn({localData:e,companyHealthMetricViewSelector:t,additionalChurnFactorsOptions:i,analytics:n,urlSource:a,onCloseDrawer:l,onSaveChangesToLocalStore:d,onSaveClick:c}){const{selectedCompanyDetail:p,localFormDataAndStatusByCompanyId:u}=t,[h,m]=g.useState(!1),f=rUe(p),[x,y]=g.useState(!1),[w,b]=g.useState(!1),C=vr({mode:"all",defaultValues:dir(e,i),reValidateMode:"onBlur"}),k=g.useRef(null);function E(V){p!=null&&n.trackCockpitHealthMonitorChurnFormClicked(V,{companyId:p.companyInfo.companyId,companyName:p.companyInfo.name,zeniProductAndServicesCount:p.noOfProductVerticalsEnabled,daysToRenewal:sV(p.companyHealthMetric.subscriptionRenewalDate)??null,netPromoterScore:u?.companyHealthMetricLocalData.netPromoterScore??null,customerSatisfactionScore:u?.companyHealthMetricLocalData.customerSatisfactionScore??null,externalServicesExposure:u?.companyHealthMetricLocalData.externalProductServiceExposure??null,runwayMonths:YV(p.companyHealthMetric.runway)===!0?1e6:p.companyHealthMetric.runway===void 0?null:p.companyHealthMetric.runway.runwayMonths??null,dashBoardLastSeen:sV(p.companyHealthMetric.customerLastDashboardVisit)??null,lastReportSent:sV(p.managementInfo.lastReportSentDate)??null,churnProbability:p.companyHealthMetric.churnProbabilityPercentage??null})}const S=C.handleSubmit(()=>{E("Save"),k?.current&&k.current.scrollTo({top:0,behavior:"instant"}),y(!0),m(!0),c()}),j=async(V,H)=>{if(V!=null){const N={...H},O=N[Oh][Sye].selectedOptions,z={netPromoterScore:N[Oh][Aye]?.selectedOption,customerSatisfactionScore:N[Oh][$ye]?.selectedOption,externalProductServiceExposure:N[Oh][kye]?.selectedOption,additionalChurnFactors:{increasingChurnProbability:i.increasingChurnProbability.filter(R=>O.indexOf(R.code)!=-1),decreasingChurnProbability:i.decreasingChurnProbability.filter(R=>O.indexOf(R.code)!=-1)}};d(z)}},I=g.useRef(null),T=g.useRef(null),[P,B]=g.useState(null),D=g.useRef(null),F=pUe(e.additionalChurnFactors);g.useEffect(()=>(T.current=setTimeout(()=>{I.current&&(B(I.current),T.current&&clearTimeout(T.current))},10),()=>{T.current!=null&&clearTimeout(T.current)}),[F]),g.useEffect(()=>{const V=C.watch((H,{name:N})=>{N!=null&&H!=null&&va(()=>j(N,H))});return()=>{V.unsubscribe()}}),g.useEffect(()=>{if(p!=null){const V=p.controllers.map(H=>`${H.firstName} ${H.lastName}`);a||n.trackCockpitHealthMonitorRowClicked(p.companyInfo.companyId,p.companyInfo.name,V,p.companyHealthMetric.netPromoterScore,p.companyHealthMetric.customerSatisfactionScore,p.companyHealthMetric.churnProbabilityPercentage)}},[]);function Y(V){return V!=null?`${Xs.texts.churnProbability} ${Xs.texts.is} ${f.churnProbabilityPercentage}${bye}`:`${Xs.texts.churnProbability} ${bye}`}function q(){E("Cancel"),l()}const Z={valueContainer:V=>({...V,padding:`2px ${o.sp3}`,overflow:"unset"}),multiValue:V=>({...V,margin:0})};return s.jsxs(Fir,{ref:k,"data-testid":X("health-monitor-drawer"),children:[s.jsxs(Bir,{"data-testid":X("health-monitor-drawer-header"),children:[s.jsx(Dir,{"data-testid":X("health-monitor-drawer-title"),children:`${p?.companyInfo.name}${ea.heading}`}),s.jsx(yir,{"data-testid":X("health-monitor-drawer-close-button"),onClick:q,children:s.jsx(wir,{})})]}),s.jsxs(zir,{children:[t.localFormDataAndStatusByCompanyId?.saveStatus?.fetchState==="Error"?s.jsx(Gir,{"data-testid":X("health-monitor-drawer-error"),children:s.jsxs(Yir,{children:[s.jsx(qir,{}),t.localFormDataAndStatusByCompanyId.saveStatus.error?.message!=null?s.jsx(Kir,{"data-testid":X("health-monitor-drawer-error-text"),children:t.localFormDataAndStatusByCompanyId.saveStatus.error?.message}):null]})}):null,s.jsx(vir,{"data-testid":X("health-monitor-drawer-churn-section"),children:u?.saveStatus?.fetchState==="In-Progress"?s.jsxs(bir,{"data-testid":X("health-monitor-drawer-churn-loader"),children:[s.jsx(yo,{size:"ExtraLarge",start:!0}),s.jsx(cr,{children:ea.calculatingProbability})]}):s.jsxs(Pir,{"data-testid":X("health-monitor-drawer-churn-box"),children:[s.jsx(Tir,{"data-testid":X("health-monitor-drawer-churn-heading"),children:Y(f.churnProbabilityPercentage)}),s.jsx(pir,{"data-testid":X("health-monitor-drawer-churn-meter"),children:s.jsx(oUe,{barHeight:32,percentage:f.churnProbabilityPercentage})}),s.jsx(Cir,{"data-testid":X("health-monitor-drawer-churn-reasons"),children:p?.companyHealthMetric.churnProbabilityPercentage!=null&&p?.companyHealthMetric.churnProbabilityReason.length!==0?s.jsxs(s.Fragment,{children:[s.jsx(Air,{"data-testid":X("health-monitor-drawer-churn-contributing-heading"),children:qor}),p.companyHealthMetric.churnProbabilityReason.length!==0||p.companyHealthMetric.additionalChurnFactors.increasingChurnProbability.length!==0?s.jsxs(Lye,{"data-testid":X("health-monitor-drawer-churn-increasing-factors"),children:[s.jsx(Eye,{children:`${Zor}${Ks}`}),s.jsxs(jye,{children:[p.companyHealthMetric.churnProbabilityReason.map((V,H)=>s.jsx(pV,{children:s.jsx(uV,{children:V.text})},`${Ir()}_${H}}`)),p.companyHealthMetric.additionalChurnFactors.increasingChurnProbability.map((V,H)=>s.jsxs(pV,{children:[s.jsx(uV,{children:V.value}),s.jsx(Iye,{children:"Newly added"})]},`${Ir()}_${H}}`))]})]}):null,p?.companyHealthMetric.additionalChurnFactors.decreasingChurnProbability.length!==0?s.jsxs(Lye,{"data-testid":X("health-monitor-drawer-churn-decreasing-factors"),children:[s.jsx(Eye,{children:`${Jor}${Ks}`}),s.jsx(jye,{children:p.companyHealthMetric.additionalChurnFactors.decreasingChurnProbability.map((V,H)=>s.jsxs(pV,{children:[s.jsx(uV,{children:V.value}),s.jsx(Iye,{children:"Newly added"})]},`${Ir()}_${H}}`))})]}):null,s.jsxs(Sir,{"data-testid":X("health-monitor-drawer-add-more-button"),onClick:()=>{bXt(D?.current,k?.current),setTimeout(()=>{b(!0)},500)},ref:D,children:[s.jsx(kir,{}),s.jsx($ir,{children:sir})]})]}):null})]})}),s.jsxs(Oir,{"data-testid":X("health-monitor-drawer-form-container"),children:[s.jsxs(Eir,{children:[s.jsxs(Iir,{children:[s.jsx(jir,{"data-testid":X("health-monitor-drawer-manual-input-heading"),children:ea.manualInput.header}),s.jsx(bt,{maxWidth:"250px",variant:"small-description",data:ea.tooltipTexts.manualInputText,placement:"top",children:s.jsx(w$,{"data-testid":X("health-monitor-drawer-manual-input-info"),style:{marginTop:o.sp1,marginRight:o.sp0}})})]}),f.companyEngagementMetricsUpdatedAt!=null&&t.localFormDataAndStatusByCompanyId?.saveStatus?.fetchState!=="In-Progress"?s.jsx(Lir,{"data-testid":X("health-monitor-drawer-last-updated"),children:f.updatedByUserName!=null?s.jsxs(Mye,{children:[`${Xs.texts.lastUpdatedBy}${Ks} ${f.updatedByUserName}`,s.jsx(VG,{}),`${f.companyEngagementMetricsUpdatedAt.date}${nir}${air}${f.companyEngagementMetricsUpdatedAt.time}`]}):s.jsxs(Mye,{children:[`${Xs.texts.lastUpdated}${Ks} ${f.companyEngagementMetricsUpdatedAt.date}`,s.jsx(VG,{}),`${f.companyEngagementMetricsUpdatedAt.time}`]})}):null]}),s.jsx(br,{...C,children:s.jsx("form",{id:vye(Cye),onSubmit:S,children:s.jsxs(Nir,{"data-testid":X("health-monitor-drawer-form-fields"),children:[s.jsx(uir,{"data-testid":X("health-monitor-drawer-nps-field"),children:s.jsx(T7e,{label:{label:`${Xs.texts.nps}${Ks}`,width:0,style:{width:"auto"}},singleSelectNumericField:{customStyleConfig:{input:(V,H)=>({input:{textAlign:H.selectProps.menuIsOpen===!1&&e.netPromoterScore==null?"right":"left"}})},placeholder:Xs.add,name:y$(Oh,Aye),defaultValue:{allOptions:LQe,selectedOption:e.netPromoterScore},registerOptions:{required:!0,validate:(V,H)=>H.healthMonitorDetails.customerSatisfactionScore.selectedOption?!0:V!=null&&!!V.selectedOption}},style:{width:"auto"}})}),s.jsx(hV,{}),s.jsx(hir,{"data-testid":X("health-monitor-drawer-csat-field"),children:s.jsx(T7e,{label:{label:`${Xs.texts.csat}${Ks}`,width:0,labelIcon:s.jsx(bt,{maxWidth:"300px",variant:"small-description",data:ea.tooltipTexts.customerSatisfactionScoreText,placement:"top",children:s.jsx(w$,{"data-testid":X("health-monitor-drawer-csat-info")})}),style:{marginRight:o.sp2,width:"auto"}},singleSelectNumericField:{customStyleConfig:{input:(V,H)=>({input:{textAlign:H.selectProps.menuIsOpen===!1&&e.customerSatisfactionScore==null?"right":"left"}})},placeholder:Xs.add,name:y$(Oh,$ye),defaultValue:{allOptions:IQe,selectedOption:e.customerSatisfactionScore},registerOptions:{required:!0,validate:(V,H)=>H.healthMonitorDetails.netPromoterScore.selectedOption?!0:V!=null&&!!V.selectedOption}},style:{width:"auto"}})}),s.jsx(hV,{}),s.jsx(mir,{"data-testid":X("health-monitor-drawer-external-exposure-field"),children:s.jsx(qj,{label:{label:ea.manualInput.labels.externalProductServices,labelIcon:s.jsx(bt,{maxWidth:"265px",variant:"small-description",data:ea.tooltipTexts.externalProductServicesText,placement:"top",children:s.jsx(w$,{"data-testid":X("health-monitor-drawer-external-exposure-info")})}),style:{marginRight:o.sp2}},singleSelectPickerField:{placeholder:Xs.add,name:y$(Oh,kye),defaultValue:{allOptions:Lbe,selectedOption:e.externalProductServiceExposure},textAlignment:"right",registerOptions:{required:!0,validate:V=>V!=null&&!!V.selectedOption}},style:{width:"auto"}})}),s.jsx(hV,{}),s.jsxs(Hir,{"data-testid":X("health-monitor-drawer-additional-factors"),additionalNotesHidden:F.length===0,isFocused:w,children:[s.jsx(W7i,{fullWidthSelect:!0,label:{label:`${ea.manualInput.labels.additionalContributingFactorsLabel}${Ks}`,labelIcon:s.jsx(bt,{maxWidth:"280px",variant:"small-description",data:ea.tooltipTexts.additionalContributingFactorsText,placement:"top",children:s.jsx(w$,{"data-testid":X("health-monitor-drawer-additional-factors-info")})})},groupedMultiSelectField:{name:y$(Oh,Sye),treeViewStructure:!0,registerOptions:{required:!1},defaultValue:{allOptions:cUe(i),selectedOptions:F},placeholder:lir,customStyleConfig:Z,showSelectedInNewLines:!0},isMenuOpen:w,setIsMenuOpen:b,menuPortalEnabled:!0}),F.length!==0&&s.jsxs(Vir,{"data-testid":X("health-monitor-drawer-notes-composer"),children:[s.jsx(trr,{}),s.jsx(_ir,{ref:I,children:P&&Mn.createPortal(s.jsx(Otr,{roomId:`cockpit_${p?.companyInfo.companyId}`,threadMetadata:{application:"cockpit",companyId:p?.companyInfo.companyId!=null?p.companyInfo.companyId:"",entityId:p?.companyInfo.companyId!=null?p.companyInfo.companyId:"",companyName:p?.companyInfo.name!=null?p.companyInfo.name:"",tab:"healthMonitor",isGlobalComment:!1,entityType:"healthMonitor.notes",url:window.location.href},composerPlaceholder:ea.manualInput.placeholders.addANote,createThreadCallback:()=>{y(!1)},isSubmitComment:x}),P)})]})]})]})})})]}),s.jsxs(Rir,{"data-testid":X("health-monitor-drawer-prefilled-section"),children:[s.jsx(Mir,{"data-testid":X("health-monitor-drawer-prefilled-heading"),children:ea.preFilledInput.header}),s.jsxs(Qir,{"data-testid":X("health-monitor-drawer-runway"),children:[s.jsx(mx,{children:ea.preFilledInput.labels.runway}),f.runway!=null?YV(f.runway)===!0?s.jsx(Wir,{}):s.jsx(X5,{children:iUe(f.runway.runwayMonths)}):s.jsx(X5,{children:ea.notApplicable})]}),s.jsxs(b$,{"data-testid":X("health-monitor-drawer-dashboard-last-seen"),children:[s.jsx(mx,{children:ea.preFilledInput.labels.dashboardLastSeen}),s.jsx(X5,{children:f.dashboardLastVisit??ea.notApplicable})]}),s.jsxs(b$,{"data-testid":X("health-monitor-drawer-last-report-sent"),children:[s.jsx(mx,{children:ea.preFilledInput.labels.lastReportSent}),s.jsx(X5,{children:f.lastReportSent??ea.notApplicable})]}),s.jsxs(b$,{"data-testid":X("health-monitor-drawer-product-services"),children:[s.jsx(mx,{children:ea.preFilledInput.labels.zeniProductServices}),s.jsx(X5,{children:s.jsx(sUe,{productVerticals:p?.companyHealthMetric.verticalProductServices??[],testIdSuffix:p?.companyInfo.companyId})})]}),s.jsxs(b$,{"data-testid":X("health-monitor-drawer-days-to-renewal"),children:[s.jsx(mx,{children:ea.preFilledInput.labels.daysToRenewal}),s.jsx(X5,{children:f.renewalDate??ea.notApplicable})]}),s.jsx(Uir,{"data-testid":X("health-monitor-drawer-last-engagements"),children:s.jsx(W5o,{label:{label:`${Gor}${Ks}`},text:s.jsx(Zir,{children:f.lastEngagements.length>0?f.lastEngagements.map((V,H)=>s.jsx(Jir,{"data-testid":X("health-monitor-drawer-engagement",String(H)),children:s.jsx(bt,{style:{padding:`12px ${o.sp3}`,color:$.heroDark},title:s.jsx(err,{children:V.type==="email"?s.jsxs(Bye,{children:[s.jsxs(w3,{children:[s.jsxs(b3,{children:[wye,Ks]}),s.jsx(v3,{children:V.subject})]}),s.jsxs(w3,{children:[s.jsxs(b3,{children:[tir,Ks]}),s.jsx(v3,{children:V.from})]}),s.jsxs(w3,{children:[s.jsxs(b3,{children:[eir,Ks]}),s.jsx(v3,{children:V.to})]}),V.cc!=""?s.jsxs(w3,{children:[s.jsxs(b3,{children:[oir,Ks]}),s.jsx(v3,{children:V.cc})]}):null]}):s.jsxs(Bye,{children:[s.jsxs(w3,{children:[s.jsxs(b3,{children:[wye,Ks]}),s.jsx(v3,{children:V.subject})]}),s.jsxs(w3,{children:[s.jsxs(b3,{children:[iir,Ks]}),s.jsx(v3,{children:V.hostName})]}),s.jsxs(w3,{children:[s.jsxs(b3,{children:[rir,Ks]}),s.jsx(v3,{children:V.attendees})]})]})}),placement:"left",children:s.jsxs(Xir,{children:[s.jsxs(xir,{children:[V.type==="email"?s.jsx(irr,{"data-testid":X("health-monitor-drawer-engagement-email-icon",String(H))}):s.jsx(orr,{"data-testid":X("health-monitor-drawer-engagement-meeting-icon",String(H))}),s.jsx(cir,{children:V.type==="email"?Xs.settings.notifications.mode.email:Wor.meeting})]}),s.jsx(rrr,{className:"engagementDot"}),s.jsx(fir,{children:V.scheduledAt?.utc(!0).local().format(Xor.visual.MMMDCommaYYYYformat)??yye})]},`${Ir()}_${H}}`)})},H)):yye}),style:{width:"100%"}})})]})]}),qGe(p?.companyHealthMetric,u?.companyHealthMetricLocalData)===!0||h===!1?s.jsx(gir,{"data-testid":X("health-monitor-drawer-footer"),children:s.jsx(xl,{style:{zIndex:2,paddingTop:o.sp3,paddingBottom:o.sp3},formId:vye(Cye),primaryBtn:{label:Xs.save,style:{minWidth:112},isLoading:u?.saveStatus?.fetchState==="In-Progress"},cancelBtn:{label:Xs.cancel,style:{minWidth:112},onClick:q}})}):null]})}const dir=(e,t)=>({[Oh]:{netPromoterScore:{selectedOption:e.netPromoterScore,allOptions:LQe},customerSatisfactionScore:{selectedOption:e.customerSatisfactionScore,allOptions:IQe},externalProductServiceExposure:{selectedOption:e.externalProductServiceExposure,allOptions:Lbe},additionalChurnFactors:{selectedOptions:pUe(e.additionalChurnFactors),allOptions:cUe(t)}}}),cir=r.div``,pir=r.div``,uir=r.div``,hir=r.div``,mir=r.div``,gir=r.div``,fir=r.div`
|
|
93012
|
+
`,Uor=r(Ce)``,{common:Xs,cockpit:{health:{detailPage:ea,common:{engagementTypes:Wor,labels:{lastEngagements:Gor,factorsThatDecreaseChurnProbability:Yor,factorsThatIncreaseChurnProbability:Kor,contributingFactors:qor,increaseChurnProbability:Zor,decreasingChurnProbability:Jor}}}},dateFormat:Xor}=U.getLocalizedStrings(),{to:eir,from:tir,cc:oir,host:iir,attendees:rir,strings:{colon:Ks,hyphen:yye,comma:nir,space:air},texts:{subject:wye,addMore:sir,select:lir}}=Xs,{strings:{percentage:bye}}=Xs,y$=(e,t)=>`${e}.${t}`,vye=e=>`${e}_form`,Oh="healthMonitorDetails",Cye="healthMonitorPage",Aye="netPromoterScore",$ye="customerSatisfactionScore",kye="externalProductServiceExposure",Sye="additionalChurnFactors",cUe=e=>[{label:Kor,options:e.increasingChurnProbability.map(t=>({label:t.value,value:t.code}))},{label:Yor,options:e.decreasingChurnProbability.map(t=>({label:t.value,value:t.code}))}],pUe=e=>e==null?[]:e.increasingChurnProbability.map(t=>t.code).concat(e.decreasingChurnProbability.map(t=>t.code));function Tcn({localData:e,companyHealthMetricViewSelector:t,additionalChurnFactorsOptions:i,analytics:n,urlSource:a,onCloseDrawer:l,onSaveChangesToLocalStore:d,onSaveClick:c}){const{selectedCompanyDetail:p,localFormDataAndStatusByCompanyId:u}=t,[h,m]=g.useState(!1),f=rUe(p),[x,y]=g.useState(!1),[w,b]=g.useState(!1),C=vr({mode:"all",defaultValues:dir(e,i),reValidateMode:"onBlur"}),k=g.useRef(null);function E(V){p!=null&&n.trackCockpitHealthMonitorChurnFormClicked(V,{companyId:p.companyInfo.companyId,companyName:p.companyInfo.name,zeniProductAndServicesCount:p.noOfProductVerticalsEnabled,daysToRenewal:sV(p.companyHealthMetric.subscriptionRenewalDate)??null,netPromoterScore:u?.companyHealthMetricLocalData.netPromoterScore??null,customerSatisfactionScore:u?.companyHealthMetricLocalData.customerSatisfactionScore??null,externalServicesExposure:u?.companyHealthMetricLocalData.externalProductServiceExposure??null,runwayMonths:YV(p.companyHealthMetric.runway)===!0?1e6:p.companyHealthMetric.runway===void 0?null:p.companyHealthMetric.runway.runwayMonths??null,dashBoardLastSeen:sV(p.companyHealthMetric.customerLastDashboardVisit)??null,lastReportSent:sV(p.managementInfo.lastReportSentDate)??null,churnProbability:p.companyHealthMetric.churnProbabilityPercentage??null})}const S=C.handleSubmit(()=>{E("Save"),k?.current&&k.current.scrollTo({top:0,behavior:"instant"}),y(!0),m(!0),c()}),j=async(V,H)=>{if(V!=null){const N={...H},O=N[Oh][Sye].selectedOptions,z={netPromoterScore:N[Oh][Aye]?.selectedOption,customerSatisfactionScore:N[Oh][$ye]?.selectedOption,externalProductServiceExposure:N[Oh][kye]?.selectedOption,additionalChurnFactors:{increasingChurnProbability:i.increasingChurnProbability.filter(R=>O.indexOf(R.code)!=-1),decreasingChurnProbability:i.decreasingChurnProbability.filter(R=>O.indexOf(R.code)!=-1)}};d(z)}},I=g.useRef(null),T=g.useRef(null),[P,B]=g.useState(null),D=g.useRef(null),F=pUe(e.additionalChurnFactors);g.useEffect(()=>(T.current=setTimeout(()=>{I.current&&(B(I.current),T.current&&clearTimeout(T.current))},10),()=>{T.current!=null&&clearTimeout(T.current)}),[F]),g.useEffect(()=>{const V=C.watch((H,{name:N})=>{N!=null&&H!=null&&va(()=>j(N,H))});return()=>{V.unsubscribe()}}),g.useEffect(()=>{if(p!=null){const V=p.controllers.map(H=>`${H.firstName} ${H.lastName}`);a||n.trackCockpitHealthMonitorRowClicked(p.companyInfo.companyId,p.companyInfo.name,V,p.companyHealthMetric.netPromoterScore,p.companyHealthMetric.customerSatisfactionScore,p.companyHealthMetric.churnProbabilityPercentage)}},[]);function Y(V){return V!=null?`${Xs.texts.churnProbability} ${Xs.texts.is} ${f.churnProbabilityPercentage}${bye}`:`${Xs.texts.churnProbability} ${bye}`}function q(){E("Cancel"),l()}const Z={valueContainer:V=>({...V,padding:`2px ${o.sp3}`,overflow:"unset"}),multiValue:V=>({...V,margin:0})};return s.jsxs(Fir,{ref:k,"data-testid":X("health-monitor-drawer"),children:[s.jsxs(Bir,{"data-testid":X("health-monitor-drawer-header"),children:[s.jsx(Dir,{"data-testid":X("health-monitor-drawer-title"),children:`${p?.companyInfo.name}${ea.heading}`}),s.jsx(yir,{"data-testid":X("health-monitor-drawer-close-button"),onClick:q,children:s.jsx(wir,{})})]}),s.jsxs(zir,{children:[t.localFormDataAndStatusByCompanyId?.saveStatus?.fetchState==="Error"?s.jsx(Gir,{"data-testid":X("health-monitor-drawer-error"),children:s.jsxs(Yir,{children:[s.jsx(qir,{}),t.localFormDataAndStatusByCompanyId.saveStatus.error?.message!=null?s.jsx(Kir,{"data-testid":X("health-monitor-drawer-error-text"),children:t.localFormDataAndStatusByCompanyId.saveStatus.error?.message}):null]})}):null,s.jsx(vir,{"data-testid":X("health-monitor-drawer-churn-section"),children:u?.saveStatus?.fetchState==="In-Progress"?s.jsxs(bir,{"data-testid":X("health-monitor-drawer-churn-loader"),children:[s.jsx(yo,{size:"ExtraLarge",start:!0}),s.jsx(cr,{children:ea.calculatingProbability})]}):s.jsxs(Pir,{"data-testid":X("health-monitor-drawer-churn-box"),children:[s.jsx(Tir,{"data-testid":X("health-monitor-drawer-churn-heading"),children:Y(f.churnProbabilityPercentage)}),s.jsx(pir,{"data-testid":X("health-monitor-drawer-churn-meter"),children:s.jsx(oUe,{barHeight:32,percentage:f.churnProbabilityPercentage})}),s.jsx(Cir,{"data-testid":X("health-monitor-drawer-churn-reasons"),children:p?.companyHealthMetric.churnProbabilityPercentage!=null&&p?.companyHealthMetric.churnProbabilityReason.length!==0?s.jsxs(s.Fragment,{children:[s.jsx(Air,{"data-testid":X("health-monitor-drawer-churn-contributing-heading"),children:qor}),p.companyHealthMetric.churnProbabilityReason.length!==0||p.companyHealthMetric.additionalChurnFactors.increasingChurnProbability.length!==0?s.jsxs(Lye,{"data-testid":X("health-monitor-drawer-churn-increasing-factors"),children:[s.jsx(Eye,{children:`${Zor}${Ks}`}),s.jsxs(jye,{children:[p.companyHealthMetric.churnProbabilityReason.map((V,H)=>s.jsx(pV,{children:s.jsx(uV,{children:V.text})},`${Ir()}_${H}}`)),p.companyHealthMetric.additionalChurnFactors.increasingChurnProbability.map((V,H)=>s.jsxs(pV,{children:[s.jsx(uV,{children:V.value}),s.jsx(Iye,{children:"Newly added"})]},`${Ir()}_${H}}`))]})]}):null,p?.companyHealthMetric.additionalChurnFactors.decreasingChurnProbability.length!==0?s.jsxs(Lye,{"data-testid":X("health-monitor-drawer-churn-decreasing-factors"),children:[s.jsx(Eye,{children:`${Jor}${Ks}`}),s.jsx(jye,{children:p.companyHealthMetric.additionalChurnFactors.decreasingChurnProbability.map((V,H)=>s.jsxs(pV,{children:[s.jsx(uV,{children:V.value}),s.jsx(Iye,{children:"Newly added"})]},`${Ir()}_${H}}`))})]}):null,s.jsxs(Sir,{"data-testid":X("health-monitor-drawer-add-more-button"),onClick:()=>{bXt(D?.current,k?.current),setTimeout(()=>{b(!0)},500)},ref:D,children:[s.jsx(kir,{}),s.jsx($ir,{children:sir})]})]}):null})]})}),s.jsxs(Oir,{"data-testid":X("health-monitor-drawer-form-container"),children:[s.jsxs(Eir,{children:[s.jsxs(Iir,{children:[s.jsx(jir,{"data-testid":X("health-monitor-drawer-manual-input-heading"),children:ea.manualInput.header}),s.jsx(bt,{maxWidth:"250px",variant:"small-description",data:ea.tooltipTexts.manualInputText,placement:"top",children:s.jsx(w$,{"data-testid":X("health-monitor-drawer-manual-input-info"),style:{marginTop:o.sp1,marginRight:o.sp0}})})]}),f.companyEngagementMetricsUpdatedAt!=null&&t.localFormDataAndStatusByCompanyId?.saveStatus?.fetchState!=="In-Progress"?s.jsx(Lir,{"data-testid":X("health-monitor-drawer-last-updated"),children:f.updatedByUserName!=null?s.jsxs(Mye,{children:[`${Xs.texts.lastUpdatedBy}${Ks} ${f.updatedByUserName}`,s.jsx(VG,{}),`${f.companyEngagementMetricsUpdatedAt.date}${nir}${air}${f.companyEngagementMetricsUpdatedAt.time}`]}):s.jsxs(Mye,{children:[`${Xs.texts.lastUpdated}${Ks} ${f.companyEngagementMetricsUpdatedAt.date}`,s.jsx(VG,{}),`${f.companyEngagementMetricsUpdatedAt.time}`]})}):null]}),s.jsx(br,{...C,children:s.jsx("form",{id:vye(Cye),onSubmit:S,children:s.jsxs(Nir,{"data-testid":X("health-monitor-drawer-form-fields"),children:[s.jsx(uir,{"data-testid":X("health-monitor-drawer-nps-field"),children:s.jsx(T7e,{label:{label:`${Xs.texts.nps}${Ks}`,width:0,style:{width:"auto"}},singleSelectNumericField:{customStyleConfig:{input:(V,H)=>({input:{textAlign:H.selectProps.menuIsOpen===!1&&e.netPromoterScore==null?"right":"left"}})},placeholder:Xs.add,name:y$(Oh,Aye),defaultValue:{allOptions:LQe,selectedOption:e.netPromoterScore},registerOptions:{required:!0,validate:(V,H)=>H.healthMonitorDetails.customerSatisfactionScore.selectedOption?!0:V!=null&&!!V.selectedOption}},style:{width:"auto"}})}),s.jsx(hV,{}),s.jsx(hir,{"data-testid":X("health-monitor-drawer-csat-field"),children:s.jsx(T7e,{label:{label:`${Xs.texts.csat}${Ks}`,width:0,labelIcon:s.jsx(bt,{maxWidth:"300px",variant:"small-description",data:ea.tooltipTexts.customerSatisfactionScoreText,placement:"top",children:s.jsx(w$,{"data-testid":X("health-monitor-drawer-csat-info")})}),style:{marginRight:o.sp2,width:"auto"}},singleSelectNumericField:{customStyleConfig:{input:(V,H)=>({input:{textAlign:H.selectProps.menuIsOpen===!1&&e.customerSatisfactionScore==null?"right":"left"}})},placeholder:Xs.add,name:y$(Oh,$ye),defaultValue:{allOptions:IQe,selectedOption:e.customerSatisfactionScore},registerOptions:{required:!0,validate:(V,H)=>H.healthMonitorDetails.netPromoterScore.selectedOption?!0:V!=null&&!!V.selectedOption}},style:{width:"auto"}})}),s.jsx(hV,{}),s.jsx(mir,{"data-testid":X("health-monitor-drawer-external-exposure-field"),children:s.jsx(qj,{label:{label:ea.manualInput.labels.externalProductServices,labelIcon:s.jsx(bt,{maxWidth:"265px",variant:"small-description",data:ea.tooltipTexts.externalProductServicesText,placement:"top",children:s.jsx(w$,{"data-testid":X("health-monitor-drawer-external-exposure-info")})}),style:{marginRight:o.sp2}},singleSelectPickerField:{placeholder:Xs.add,name:y$(Oh,kye),defaultValue:{allOptions:Lbe,selectedOption:e.externalProductServiceExposure},textAlignment:"right",registerOptions:{required:!0,validate:V=>V!=null&&!!V.selectedOption}},style:{width:"auto"}})}),s.jsx(hV,{}),s.jsxs(Hir,{"data-testid":X("health-monitor-drawer-additional-factors"),additionalNotesHidden:F.length===0,isFocused:w,children:[s.jsx(W7i,{fullWidthSelect:!0,label:{label:`${ea.manualInput.labels.additionalContributingFactorsLabel}${Ks}`,labelIcon:s.jsx(bt,{maxWidth:"280px",variant:"small-description",data:ea.tooltipTexts.additionalContributingFactorsText,placement:"top",children:s.jsx(w$,{"data-testid":X("health-monitor-drawer-additional-factors-info")})})},groupedMultiSelectField:{name:y$(Oh,Sye),treeViewStructure:!0,registerOptions:{required:!1},defaultValue:{allOptions:cUe(i),selectedOptions:F},placeholder:lir,customStyleConfig:Z,showSelectedInNewLines:!0},isMenuOpen:w,setIsMenuOpen:b,menuPortalEnabled:!0}),F.length!==0&&s.jsxs(Vir,{"data-testid":X("health-monitor-drawer-notes-composer"),children:[s.jsx(trr,{}),s.jsx(_ir,{ref:I,children:P&&Mn.createPortal(s.jsx(Otr,{roomId:`cockpit_${p?.companyInfo.companyId}`,threadMetadata:{application:"cockpit",companyId:p?.companyInfo.companyId!=null?p.companyInfo.companyId:"",entityId:p?.companyInfo.companyId!=null?p.companyInfo.companyId:"",companyName:p?.companyInfo.name!=null?p.companyInfo.name:"",tab:"healthMonitor",isGlobalComment:!1,entityType:"healthMonitor.notes",url:window.location.href},composerPlaceholder:ea.manualInput.placeholders.addANote,createThreadCallback:()=>{y(!1)},isSubmitComment:x}),P)})]})]})]})})})]}),s.jsxs(Rir,{"data-testid":X("health-monitor-drawer-prefilled-section"),children:[s.jsx(Mir,{"data-testid":X("health-monitor-drawer-prefilled-heading"),children:ea.preFilledInput.header}),s.jsxs(Qir,{"data-testid":X("health-monitor-drawer-runway"),children:[s.jsx(mx,{children:ea.preFilledInput.labels.runway}),f.runway!=null?YV(f.runway)===!0?s.jsx(Wir,{}):s.jsx(X5,{children:iUe(f.runway.runwayMonths)}):s.jsx(X5,{children:ea.notApplicable})]}),s.jsxs(b$,{"data-testid":X("health-monitor-drawer-dashboard-last-seen"),children:[s.jsx(mx,{children:ea.preFilledInput.labels.dashboardLastSeen}),s.jsx(X5,{children:f.dashboardLastVisit??ea.notApplicable})]}),s.jsxs(b$,{"data-testid":X("health-monitor-drawer-last-report-sent"),children:[s.jsx(mx,{children:ea.preFilledInput.labels.lastReportSent}),s.jsx(X5,{children:f.lastReportSent??ea.notApplicable})]}),s.jsxs(b$,{"data-testid":X("health-monitor-drawer-product-services"),children:[s.jsx(mx,{children:ea.preFilledInput.labels.zeniProductServices}),s.jsx(X5,{children:s.jsx(sUe,{productVerticals:p?.companyHealthMetric.verticalProductServices??[],testIdSuffix:p?.companyInfo.companyId})})]}),s.jsxs(b$,{"data-testid":X("health-monitor-drawer-days-to-renewal"),children:[s.jsx(mx,{children:ea.preFilledInput.labels.daysToRenewal}),s.jsx(X5,{children:f.renewalDate??ea.notApplicable})]}),s.jsx(Uir,{"data-testid":X("health-monitor-drawer-last-engagements"),children:s.jsx(W5o,{label:{label:`${Gor}${Ks}`},text:s.jsx(Zir,{children:f.lastEngagements.length>0?f.lastEngagements.map((V,H)=>s.jsx(Jir,{"data-testid":X("health-monitor-drawer-engagement",String(H)),children:s.jsx(bt,{style:{padding:`12px ${o.sp3}`,color:$.heroDark},title:s.jsx(err,{children:V.type==="email"?s.jsxs(Bye,{children:[s.jsxs(w3,{children:[s.jsxs(b3,{children:[wye,Ks]}),s.jsx(v3,{children:V.subject})]}),s.jsxs(w3,{children:[s.jsxs(b3,{children:[tir,Ks]}),s.jsx(v3,{children:V.from})]}),s.jsxs(w3,{children:[s.jsxs(b3,{children:[eir,Ks]}),s.jsx(v3,{children:V.to})]}),V.cc!=""?s.jsxs(w3,{children:[s.jsxs(b3,{children:[oir,Ks]}),s.jsx(v3,{children:V.cc})]}):null]}):s.jsxs(Bye,{children:[s.jsxs(w3,{children:[s.jsxs(b3,{children:[wye,Ks]}),s.jsx(v3,{children:V.subject})]}),s.jsxs(w3,{children:[s.jsxs(b3,{children:[iir,Ks]}),s.jsx(v3,{children:V.hostName})]}),s.jsxs(w3,{children:[s.jsxs(b3,{children:[rir,Ks]}),s.jsx(v3,{children:V.attendees})]})]})}),placement:"left",children:s.jsxs(Xir,{children:[s.jsxs(xir,{children:[V.type==="email"?s.jsx(irr,{"data-testid":X("health-monitor-drawer-engagement-email-icon",String(H))}):s.jsx(orr,{"data-testid":X("health-monitor-drawer-engagement-meeting-icon",String(H))}),s.jsx(cir,{children:V.type==="email"?Xs.settings.notifications.mode.email:Wor.meeting})]}),s.jsx(rrr,{className:"engagementDot"}),s.jsx(fir,{children:V.scheduledAt?.utc(!0).local().format(Xor.visual.MMMDCommaYYYYformat)??yye})]},`${Ir()}_${H}}`)})},H)):yye}),style:{width:"100%"}})})]})]}),qGe(p?.companyHealthMetric,u?.companyHealthMetricLocalData)===!0||h===!1?s.jsx(gir,{"data-testid":X("health-monitor-drawer-footer"),children:s.jsx(xl,{style:{zIndex:2,paddingTop:o.sp3,paddingBottom:o.sp3},formId:vye(Cye),primaryBtn:{label:Xs.save,style:{minWidth:112},isLoading:u?.saveStatus?.fetchState==="In-Progress"},cancelBtn:{label:Xs.cancel,style:{minWidth:112},onClick:q}})}):null]})}const dir=(e,t)=>({[Oh]:{netPromoterScore:{selectedOption:e.netPromoterScore,allOptions:LQe},customerSatisfactionScore:{selectedOption:e.customerSatisfactionScore,allOptions:IQe},externalProductServiceExposure:{selectedOption:e.externalProductServiceExposure,allOptions:Lbe},additionalChurnFactors:{selectedOptions:pUe(e.additionalChurnFactors),allOptions:cUe(t)}}}),cir=r.div``,pir=r.div``,uir=r.div``,hir=r.div``,mir=r.div``,gir=r.div``,fir=r.div`
|
|
92987
93013
|
min-width: 100px;
|
|
92988
93014
|
`,xir=r.div`
|
|
92989
93015
|
min-width: 80px;
|
|
@@ -93427,7 +93453,7 @@ ${e}`,DJi=e=>g.createElement("svg",{width:38,height:39,viewBox:"0 0 38 39",fill:
|
|
|
93427
93453
|
margin-left: ${o.sp1};
|
|
93428
93454
|
cursor: pointer;
|
|
93429
93455
|
stroke: ${e=>e.theme.colors.primary};
|
|
93430
|
-
`,{cockpit:{emptySearchTextSecondLine:Frr},common:{texts:{sorryWeCouldnTFindAnyResults:Rrr}}}=U.getLocalizedStrings(),
|
|
93456
|
+
`,{cockpit:{emptySearchTextSecondLine:Frr},common:{texts:{sorryWeCouldnTFindAnyResults:Rrr}}}=U.getLocalizedStrings(),zcn=({headerActions:e,headerData:t,healthPageData:i,healthPageActions:n,initialOpenThreadRequest:a})=>{const{healthView:l,managementView:d,mixpanelUrl:c}=i,{onColumnSortConfigChanged:p,onRowClick:u,onCockpitReloadData:h,onFiltersChange:m}=n,{filterText:f,filters:x}=l.uiState,y=d.fetchState==="Completed"&&l.fetchState==="Completed"&&l.zeniUsers.fetchState==="Completed";return e.filterActions&&(e.filterActions.getCategoryWiseOptions=()=>Nrr(l)),s.jsxs(Hrr,{"data-testid":X("health-monitor-page"),children:[s.jsx(U2,{headerActions:{...e},headerData:{...t,allTabOptions:t.allTabOptions??hh,selectedTabOption:"healthMonitor",filterData:{filterText:f,filters:x},companiesLoaded:y}}),s.jsx(Orr,{healthView:l,initialOpenThreadRequest:a,managementView:d,mixpanelUrl:c,onClearFilter:()=>m({}),onColumnSortConfigChanged:p,onCockpitReloadData:h,onRowClick:u})]})},Orr=({healthView:e,initialOpenThreadRequest:t,managementView:i,mixpanelUrl:n,onClearFilter:a,onCockpitReloadData:l,onColumnSortConfigChanged:d,onRowClick:c})=>{const p=je();return e.fetchState==="Error"||e.zeniUsers.fetchState==="Error"?s.jsx(Vrr,{"data-testid":X("health-monitor-page-error"),children:s.jsx(Ig,{selectedCockpitOption:"healthMonitor",onCockpitReloadData:l})}):i.fetchState==="In-Progress"||i.fetchState==="Not-Started"||e.fetchState==="In-Progress"||e.fetchState==="Not-Started"||e.zeniUsers.fetchState==="In-Progress"||e.zeniUsers.fetchState==="Not-Started"?s.jsx(_rr,{"data-testid":X("health-monitor-page-loader"),children:s.jsx(yo,{size:"ExtraLarge",start:!0})}):e.companies.length===0?s.jsx(Qrr,{"data-testid":X("health-monitor-page-empty-state"),children:s.jsx(jc,{emptySearchTextFirstLine:Rrr,emptySearchTextSecondLine:Frr,filtersApplied:!0,onClearFilter:a})}):s.jsx(Urr,{windowSize:p,"data-testid":X("health-monitor-page-table-wrapper"),children:s.jsx($rr,{healthView:e,mixpanelUrl:n,onColumnSortConfigChanged:d,onRowClick:c,initialOpenThreadRequest:t})})},Nrr=e=>{const t=e.zeniUsers.values,i=EQe,{companies:n}=e;return i.reduce((a,l)=>{switch(l.value){case"companyGroupId":if(n.length>0&&n[0].companyGroup!=null){const d=n[0].companyGroup.map(c=>{const p=c;return{label:p.name,value:p.id}});return{...a,[l.value]:d}}else return{...a,[l.value]:[]};case"verticalProductServices":return{...a,[l.value]:aYi};case"runway":return{...a,[l.value]:cYi};case"churnProbabilityPercentage":return{...a,[l.value]:sYi};case"netPromoterScore":return{...a,[l.value]:lYi};case"customerSatisfactionScore":return{...a,[l.value]:dYi};case"monthlyRecurringRevenue":return{...a,[l.value]:tX};case"externalProductServiceExposure":case"controller":case"customerSuccessManager":{const d=t.map(c=>({label:c.firstName||c.lastName?`${c.firstName} ${c.lastName}`:c.email,value:c.userId,photo:c.photo,email:c.email}));return{...a,[l.value]:d}}default:return{...a,[l.value]:[]}}},{})},Hrr=r.div`
|
|
93431
93457
|
height: calc(100vh - 45px);
|
|
93432
93458
|
overflow-y: hidden;
|
|
93433
93459
|
background-color: ${e=>e.theme.colors.grey4};
|
|
@@ -93727,7 +93753,7 @@ ${e}`,DJi=e=>g.createElement("svg",{width:38,height:39,viewBox:"0 0 38 39",fill:
|
|
|
93727
93753
|
height: calc(100vh - 45px);
|
|
93728
93754
|
overflow-y: hidden;
|
|
93729
93755
|
background-color: ${e=>e.theme.colors.grey4};
|
|
93730
|
-
`,
|
|
93756
|
+
`,Fcn=({headerData:e,headerActions:t,initialOpenThreadRequest:i,subscriptionPageActions:n,subscriptionPageData:a})=>{const{subscriptionView:l}=a,{onColumnSortConfigChanged:d,changeHandlers:c,onScroll:p,onCompanyNameClicked:u,onPassportIconClicked:h,onCockpitReloadData:m,onPlanOrAddOnClicked:f,onCollapseToggled:x,onFiltersChange:y}=n,w=l.uiState.filterText,b=l.uiState.filters,C=l.fetchState==="Completed"&&l.zeniUsers.fetchState==="Completed";return t.filterActions&&(t.filterActions.getCategoryWiseOptions=()=>sar(l)),s.jsxs(nar,{children:[s.jsx(U2,{headerActions:{...t},headerData:{...e,filterData:{filters:b,filterText:w},companiesLoaded:C,allTabOptions:e.allTabOptions??hh,selectedTabOption:"subscription"}}),s.jsx(aar,{initialOpenThreadRequest:i,isFilterApplied:b?.categories!=null,subscriptionView:l,changeHandlers:c,onClearFilter:()=>y("subscription",{}),onCockpitReloadData:m,onCollapseToggled:x,onColumnSortConfigChanged:d,onCompanyNameClicked:u,onPassportIconClicked:h,onPlanOrAddOnClicked:f,onScroll:p})]})},aar=({subscriptionView:e,isFilterApplied:t,initialOpenThreadRequest:i,onColumnSortConfigChanged:n,onCollapseToggled:a,onCockpitReloadData:l,changeHandlers:d,onScroll:c,onPlanOrAddOnClicked:p,onCompanyNameClicked:u,onPassportIconClicked:h,onClearFilter:m})=>{const f=je();return e.fetchState==="Error"?s.jsx(Ig,{onCockpitReloadData:l,selectedCockpitOption:"subscription"}):e.fetchState==="In-Progress"||e.fetchState==="Not-Started"?s.jsx(iar,{children:s.jsx(yo,{size:"ExtraLarge",start:!0})}):e.companies.length===0?t?s.jsx(jc,{emptySearchTextFirstLine:tar,emptySearchTextSecondLine:Nye,filtersApplied:!0,onClearFilter:m}):s.jsx(jc,{emptySearchTextFirstLine:oar,emptySearchTextSecondLine:Nye}):s.jsx(rar,{windowSize:f,children:s.jsx(ear,{initialOpenThreadRequest:i,subscriptionView:e,changeHandlers:d,onCollapseToggled:a,onColumnSortConfigChanged:n,onCompanyNameClicked:u,onPassportIconClicked:h,onPlanOrAddOnClicked:p,onScroll:c})})},sar=e=>{const t=e.zeniUsers.values,i=kQe,{companies:n}=e;return i.reduce((a,l)=>{switch(l.value){case"statusCode":return n.length===0?{...a,[l.value]:[]}:{...a,[l.value]:n[0].primarySubscription?.subscription.subscription.schema.status.map(d=>{const c=d;return{label:c.name,value:c.code}})};case"controllerUserIds":{if(n.length===0)return{...a,[l.value]:[]};const d=t.map(c=>({label:c.firstName||c.lastName?`${c.firstName} ${c.lastName}`:c.email,value:c.userId,photo:c.photo,email:c.email}));return{...a,[l.value]:d}}case"recommendedActionCode":return n.length===0?{...a,[l.value]:[]}:{...a,[l.value]:n[0].primarySubscription?.summary.schema.recommendedAction.map(d=>{const c=d;return{label:c.name,value:c.code}})};case"monthlyRecurringRevenue":return{...a,[l.value]:tX};case"subscriptionPlans":return{...a,[l.value]:e.subscriptionPlans.map(d=>({label:d.name,value:d.subscriptionPlanId}))};case"subscriptionAddOns":return{...a,[l.value]:e.subscriptionAddOns.map(d=>({label:d.name,value:d.subscriptionAddOnId}))};case"avg2MonthExpenses":return{...a,[l.value]:XGi};case"slabLowerLimit":case"slabUpperLimit":return{...a,[l.value]:eYi};default:return{...a,[l.value]:[]}}},{})},lar={width:new L(343,580,756)},{subscriptionUpdate:{updatePlan:{applyChanges:$0}},dateFormat:{visual:dar}}=U.getLocalizedStrings();function car({subscriptionUpdateData:e,subscriptionTermEndDate:t,isSubscriptionDetailsChanged:i,isDisabled:n,sectionId:a,style:l}){const d=je(),c=t?.format(dar.MMMDCommaYYYYformat),p=c?`${$0.nextRenewal} (${c})`:$0.nextRenewal;let u=e?.applyEndOfTerm===!0?"readonly":n;return i===!1&&(u="disabled"),s.jsxs(par,{style:l,children:[s.jsx(uar,{children:$0.title}),s.jsxs(mar,{children:[s.jsx(Ul,{isDisabled:n,label:{label:p},style:{padding:`${o.sp3} ${o.sp0}`},radioField:{name:xV(a,"changeType"),id:"applyEndOfTerm",value:"applyEndOfTerm"}}),s.jsx(Ul,{isDisabled:i===!1?"disabled":n,label:{label:$0.immediately},style:{paddingTop:o.sp3},radioField:{name:xV(a,"changeType"),id:"applyImmediately",value:"applyImmediately"}}),s.jsx(BPe,{isDisabled:u,label:{label:$0.applyProRated},checkBoxField:{name:xV(a,"shouldProrate"),defaultChecked:e?.shouldProrate===!0,style:{paddingLeft:o.sp4}}}),s.jsxs(har,{size:d,isDisabled:i===!1?"disabled":n,children:[s.jsx(yV,{children:$0.proRatedDescription}),s.jsx(yV,{children:$0.proRatedText1}),s.jsx(yV,{children:$0.proRatedText2})]})]})]})}const xV=(e,t)=>`${e}.${t}`,par=r.div`
|
|
93731
93757
|
display: flex;
|
|
93732
93758
|
flex-direction: column;
|
|
93733
93759
|
`,uar=r(Gi)`
|
|
@@ -94112,7 +94138,7 @@ ${e}`,DJi=e=>g.createElement("svg",{width:38,height:39,viewBox:"0 0 38 39",fill:
|
|
|
94112
94138
|
background-color: ${e=>e.theme.colors.grey3};
|
|
94113
94139
|
min-height: 1px;
|
|
94114
94140
|
max-height: 1px;
|
|
94115
|
-
`,M8=(e,t)=>{const{groups:i}=AUe.dropDowns,n=[];return t!=null&&n.push({label:i.recommendedPlan,options:e.filter(a=>a.subscriptionPlanId===t).map(a=>({label:a.name,value:a.subscriptionPlanId}))}),n.push({label:i.allPlans,options:e.filter(a=>a.subscriptionPlanId!==t).map(a=>({label:a.name,value:a.subscriptionPlanId}))}),n},HE=(e,t)=>e==null?void 0:`${(It("0,0.00",e)+" "+fsr(t)).trim()}`,fsr=e=>{if(e==null)return"";const{count:t,unit:i}=e;return t===1?`/ ${i.substring(0,1).toUpperCase().concat(i.substring(1))}`:`/ ${i.substring(0,1).toUpperCase().concat(i.substring(1))} x ${t}`},{common:_E}=U.getLocalizedStrings(),{texts:{review:xsr}}=_E,ysr=_E.texts.updatePlan,_ye="subscriptionUpdatePlanPage",VE="updatePlan",G3="applyChanges";function
|
|
94141
|
+
`,M8=(e,t)=>{const{groups:i}=AUe.dropDowns,n=[];return t!=null&&n.push({label:i.recommendedPlan,options:e.filter(a=>a.subscriptionPlanId===t).map(a=>({label:a.name,value:a.subscriptionPlanId}))}),n.push({label:i.allPlans,options:e.filter(a=>a.subscriptionPlanId!==t).map(a=>({label:a.name,value:a.subscriptionPlanId}))}),n},HE=(e,t)=>e==null?void 0:`${(It("0,0.00",e)+" "+fsr(t)).trim()}`,fsr=e=>{if(e==null)return"";const{count:t,unit:i}=e;return t===1?`/ ${i.substring(0,1).toUpperCase().concat(i.substring(1))}`:`/ ${i.substring(0,1).toUpperCase().concat(i.substring(1))} x ${t}`},{common:_E}=U.getLocalizedStrings(),{texts:{review:xsr}}=_E,ysr=_E.texts.updatePlan,_ye="subscriptionUpdatePlanPage",VE="updatePlan",G3="applyChanges";function Rcn(e){const t=je(),i=lt(),{localData:n,isDisabled:a,onSubscriptionDetailsChanged:l,onEstimateSuccess:d,onReviewClick:c,onBackClick:p,onResetClick:u}=e,[h,m]=g.useState(void 0),f=g.useRef(null),{data:x,subscriptionDetail:y,fetchState:w,estimateStatus:b}=n,C=dr(b.fetchState),k=dr(w),E=vr({mode:"all",reValidateMode:"onChange",defaultValues:g.useMemo(()=>Qye(n),[n])});g.useEffect(()=>()=>{m(void 0)},[]),g.useEffect(()=>{k==="In-Progress"&&w==="Completed"&&E.reset(Qye(n))},[k,w,E,n]),g.useEffect(()=>{C==="In-Progress"&&(b.fetchState==="Error"?h!==b.fetchState&&m(b.fetchState):b.fetchState==="Completed"&&(m(void 0),d()))},[h,C,b.fetchState,d]);const S=async(Y,q)=>{if(Y.includes(VE)||Y.includes(G3)){if(Y.includes(G3)){const{applyChanges:Z}=q,{changeType:V,shouldProrate:H}=Z;V==="applyImmediately"&&x?.applyEndOfTerm===!0&&H===!1?E.setValue(G3,{...Z,shouldProrate:!0},{shouldDirty:!0}):V==="applyEndOfTerm"&&x?.applyEndOfTerm===!1&&H===!0&&E.setValue(G3,{...Z,shouldProrate:!1},{shouldDirty:!0})}l(q)}};g.useEffect(()=>{const Y=E.watch((q,{name:Z})=>{Z!=null&&q!=null&&va(()=>S(Z,q))});return()=>{Y.unsubscribe()}});const j=E.handleSubmit(Y=>{h!=null&&m(void 0),c()}),I=()=>B?.status.code!=="future"?s.jsx(car,{sectionId:G3,style:{paddingBottom:o.sp9},subscriptionUpdateData:x,subscriptionTermEndDate:B?.currentTerm?.end,isSubscriptionDetailsChanged:$Ue(n),isDisabled:a}):null,T={review:xsr},P=y?.summary?.summary,B=y?.subscription.subscription,D=y?.plan?.plan.subscriptionPlanId,F=P?.recommendedSubscriptionPlanId!=null&&D===P?.primarySubscriptionPlanId?P?.recommendedSubscriptionPlanId:void 0;return s.jsxs(wsr,{children:[s.jsx(Nu,{title:ysr,backgroundColor:i.colors.grey4,style:{zIndex:3},onBackClick:p,scrollableContent:f,source:"SubscriptionUpdatePlanPage"}),h!=null?s.jsx(FM,{fetchState:h,customMessageText:b.error?.message??_E.errorMessage.somethingWentWrongPleaseTryAgain,onRemoveSnackbar:()=>m(void 0)}):null,s.jsx(vsr,{ref:f,windowSize:t,children:w==="In-Progress"||w==="Not-Started"?s.jsx(bsr,{children:s.jsx(yo,{size:"Large",start:!0})}):s.jsx(br,{...E,children:s.jsxs("form",{id:Vye(_ye),onSubmit:j,children:[s.jsx(hsr,{sectionId:VE,subscriptionUpdateData:x,recommendedSubscriptionPlanId:F,subscriptionMetaDetails:B8(n),isDisabled:a}),s.jsx(I,{})]})})}),hw(E.formState.dirtyFields)||Csr(n)?s.jsx(xl,{formId:Vye(_ye),primaryBtn:{label:T.review,isLoading:b.fetchState==="In-Progress",isDisabled:e.isDisabled!=null&&b.fetchState!=="In-Progress"},cancelBtn:{label:_E.cancel,shouldResetOnCancel:!0,onClick:()=>{E.reset(Asr(n)),y!=null&&u(y)}}}):null]})}const wsr=r.div`
|
|
94116
94142
|
display: flex;
|
|
94117
94143
|
min-height: 100%;
|
|
94118
94144
|
flex-direction: column;
|
|
@@ -94170,7 +94196,7 @@ ${e}`,DJi=e=>g.createElement("svg",{width:38,height:39,viewBox:"0 0 38 39",fill:
|
|
|
94170
94196
|
`,Osr=r.div`
|
|
94171
94197
|
display: flex;
|
|
94172
94198
|
flex-direction: column;
|
|
94173
|
-
`,{common:QE}=U.getLocalizedStrings(),{texts:{review:Nsr}}=QE,Hsr=QE.texts.addPlan,Uye="subscriptionAddPlanPage",UE="addPlan",WE="invoiceOption";function
|
|
94199
|
+
`,{common:QE}=U.getLocalizedStrings(),{texts:{review:Nsr}}=QE,Hsr=QE.texts.addPlan,Uye="subscriptionAddPlanPage",UE="addPlan",WE="invoiceOption";function Ocn(e){const t=je(),i=lt(),n=g.useRef(null),{localData:a,isDisabled:l,onSubscriptionDetailsChanged:d,onEstimateSuccess:c,onReviewClick:p,onBackClick:u,onResetClick:h}=e,[m,f]=g.useState(void 0),{data:x,fetchState:y,estimateStatus:w}=a,b=dr(w.fetchState),C=dr(y),k=vr({mode:"all",reValidateMode:"onChange",defaultValues:g.useMemo(()=>Gye(a),[a])});g.useEffect(()=>()=>{f(void 0)},[]),g.useEffect(()=>{C==="In-Progress"&&y==="Completed"&&k.reset(Gye(a))},[C,y,k,a]),g.useEffect(()=>{b==="In-Progress"&&(w.fetchState==="Error"?m!==w.fetchState&&f(w.fetchState):w.fetchState==="Completed"&&(f(void 0),c()))},[m,b,w.fetchState,c]);const E=async(I,T)=>{(I.includes(UE)||I.includes(WE))&&d(T)};g.useEffect(()=>{const I=k.watch((T,{name:P})=>{P!=null&&T!=null&&va(()=>E(P,T))});return()=>{I.unsubscribe()}});const S=k.handleSubmit(I=>{m!=null&&f(void 0),p()}),j={review:Nsr};return s.jsxs(_sr,{children:[s.jsx(Nu,{title:Hsr,backgroundColor:i.colors.grey4,style:{zIndex:3},onBackClick:u,scrollableContent:n,source:"SubscriptionAddPlanPage"}),m!=null?s.jsx(FM,{fetchState:m,customMessageText:w.error?.message??QE.errorMessage.somethingWentWrongPleaseTryAgain,onRemoveSnackbar:()=>f(void 0)}):null,s.jsx(Qsr,{ref:n,windowSize:t,children:y==="In-Progress"||y==="Not-Started"?s.jsx(Vsr,{children:s.jsx(yo,{size:"Large",start:!0})}):s.jsx(br,{...k,children:s.jsxs("form",{id:Wye(Uye),onSubmit:S,children:[s.jsx(Ssr,{sectionId:UE,subscriptionCreateData:x,subscriptionMetaDetails:B8(a),isDisabled:l}),s.jsx(Dsr,{sectionId:WE,style:{paddingBottom:o.sp9},subscriptionCreateData:x,isDisabled:l})]})})}),hw(k.formState.dirtyFields)||Usr(a)?s.jsx(xl,{formId:Wye(Uye),primaryBtn:{label:j.review,isLoading:w.fetchState==="In-Progress",isDisabled:e.isDisabled!=null&&w.fetchState!=="In-Progress"},cancelBtn:{label:QE.cancel,shouldResetOnCancel:!0,onClick:()=>{k.reset(Wsr(a)),h()}}}):null]})}const _sr=r.div`
|
|
94174
94200
|
display: flex;
|
|
94175
94201
|
min-height: 100%;
|
|
94176
94202
|
flex-direction: column;
|
|
@@ -94429,7 +94455,7 @@ ${e}`,DJi=e=>g.createElement("svg",{width:38,height:39,viewBox:"0 0 38 39",fill:
|
|
|
94429
94455
|
height: calc(100vh - 45px);
|
|
94430
94456
|
overflow-y: hidden;
|
|
94431
94457
|
background-color: ${e=>e.theme.colors.grey4};
|
|
94432
|
-
`,
|
|
94458
|
+
`,Ncn=({headerData:e,headerActions:t,portfolioPageActions:i,portfolioPageData:n,initialOpenThreadRequest:a})=>{const{portfolioView:l}=n,{onColumnSortConfigChanged:d,onCompanyNameClicked:c,onPassportIconClicked:p,onScroll:u,onFiltersChange:h,onCockpitReloadData:m}=i,f=l.uiState.filterText,x=l.uiState.filters,y=l.fetchState==="Completed";return t.filterActions&&(t.filterActions.getCategoryWiseOptions=()=>qlr()),s.jsxs(Ylr,{children:[s.jsx(U2,{headerActions:{...t},headerData:{...e,filterData:{filterText:f,filters:x},companiesLoaded:y,selectedTabOption:"portfolio",allTabOptions:e.allTabOptions??hh}}),s.jsx(Klr,{portfolioView:l,onColumnSortConfigChanged:d,onScroll:u,onCockpitReloadData:m,isFilterApplied:x?.categories!=null,onCompanyNameClicked:c,onPassportIconClicked:p,onClearFilter:()=>h("portfolio",{}),initialOpenThreadRequest:a})]})},Klr=({portfolioView:e,isFilterApplied:t,onColumnSortConfigChanged:i,onCompanyNameClicked:n,onPassportIconClicked:a,onCockpitReloadData:l,onScroll:d,onClearFilter:c,initialOpenThreadRequest:p})=>{const u=je();return e.fetchState==="Error"?s.jsx(Ig,{onCockpitReloadData:l,selectedCockpitOption:"portfolio"}):e.fetchState==="In-Progress"||e.fetchState==="Not-Started"?s.jsx(Wlr,{children:s.jsx(yo,{size:"ExtraLarge",start:!0})}):e.companies.length===0?t?s.jsx(jc,{emptySearchTextFirstLine:Qlr,emptySearchTextSecondLine:Yye,filtersApplied:!0,onClearFilter:c}):s.jsx(jc,{emptySearchTextFirstLine:Ulr,emptySearchTextSecondLine:Yye}):s.jsx(Glr,{windowSize:u,children:s.jsx(Flr,{portfolioView:e,onColumnSortConfigChanged:i,onScroll:d,onCompanyNameClicked:n,onPassportIconClicked:a,initialOpenThreadRequest:p})})},qlr=()=>SQe.reduce((e,t)=>{switch(t.value){case"netBurnOrIncome":return{...e,[t.value]:tYi};case"cashPosition":return{...e,[t.value]:oYi};case"expenses":return{...e,[t.value]:iYi};case"income":return{...e,[t.value]:rYi};case"runway":return{...e,[t.value]:nYi};default:return{...e,[t.value]:[]}}},{}),{common:k$,dateFormat:Zlr,aiAccountantCustomer:Jlr}=U.getLocalizedStrings(),pX=({operationType:e,onCancel:t,onConfirm:i,dialogTitle:n,dialogDescription:a})=>{const l=lt(),[d,c]=g.useState(""),[p,u]=g.useState(""),h=e==="offboard",m=h||d.length>0&&p.length>0,f=e.replaceAll("_"," "),x=ui(new Date().toISOString()).format(Zlr.analytics.YYYYDashMMDashDDFormat),y=n??`${Jlr.jobTriggerDialog.title} — ${f}`;return s.jsx(ws,{titleComponent:s.jsx(xs,{children:y}),descriptionComponent:a!=null?s.jsx(ys,{children:a}):void 0,primaryButtonText:k$.confirm,secondaryButtonText:k$.cancel,useLegacyStyles:!0,isProceedDisabled:!m,action:{onOkClick:()=>{m&&i(e,d,p)},onCancelClick:t,onClickAway:t},shouldClickAway:!0,style:{background:l.colors.overlayColor},children:!h&&s.jsxs(Xlr,{children:[s.jsxs(Kye,{children:[s.jsx(qye,{children:k$.texts.startDate}),s.jsx(Zye,{type:"date",value:d,max:p.length>0?p:x,onChange:w=>c(w.target.value)})]}),s.jsxs(Kye,{children:[s.jsx(qye,{children:k$.texts.endDate}),s.jsx(Zye,{type:"date",value:p,min:d.length>0?d:void 0,max:x,onChange:w=>u(w.target.value)})]})]})})},Xlr=r.div`
|
|
94433
94459
|
display: flex;
|
|
94434
94460
|
flex-direction: column;
|
|
94435
94461
|
gap: ${o.sp3};
|
|
@@ -94452,7 +94478,7 @@ ${e}`,DJi=e=>g.createElement("svg",{width:38,height:39,viewBox:"0 0 38 39",fill:
|
|
|
94452
94478
|
outline: none;
|
|
94453
94479
|
border-color: ${e=>e.theme.colors.primary};
|
|
94454
94480
|
}
|
|
94455
|
-
`,{aiAccountantCustomer:UG,common:{failed:edr,oauthConsent:{company:tdr},status:{pending:odr},texts:{lastSync:idr,lastTraining:rdr,live:ndr,offboarded:adr,onboarding:sdr,status:ldr}}}=U.getLocalizedStrings(),ii={rowHeightPx:v[8],headerHeightPx:44,jobRowHeightPx:44,jobHeaderHeightPx:36,jobTableMinHeightPx:200,jobOperationMinWidthPx:120,jobStatusColumnWidthPx:90,jobDateColumnWidthPx:120,jobByColumnWidthPx:100,jobSkeletonRowCount:3,skeletonLoaderHeightPx:14,accuracyLabelMinWidthPx:80,accuracyValueMinWidthPx:45,accuracySuccessThresholdPercent:80,accuracyAlertThresholdPercent:60,sortIconSize:o.sp2,menuIconSize:o.sp3,statusBadgeVerticalPadding:"2px",accuracyBarHeight:o.sp2,globalNavBarHeightPx:45,pageHeaderHeightPx:75,menuDropdownMinWidthPx:160,checkboxColumnWidthPx:40},cc={companyName:200,status:120,bookcloseDate:130,latestTraining:130,latestSync:130,accuracy:100,actions:60},ddr=[{key:"companyName",label:tdr,sortable:!0,width:cc.companyName,justifyContent:"flex-start",growToFill:!0},{key:"status",label:ldr,sortable:!0,width:cc.status,justifyContent:"flex-start"},{key:"bookcloseDate",label:UG.table.bookClose,sortable:!0,width:cc.bookcloseDate,justifyContent:"flex-start"},{key:"latestTraining",label:rdr,sortable:!0,width:cc.latestTraining,justifyContent:"flex-start"},{key:"latestSync",label:idr,sortable:!0,width:cc.latestSync,justifyContent:"flex-start"},{key:"accuracy",label:UG.table.accuracy,sortable:!0,width:cc.accuracy,justifyContent:"flex-end"},{key:"actions",label:"",sortable:!1,width:cc.actions,justifyContent:"center"}],uX={onboard:{labelKey:"onboard",destructive:!1},evaluate:{labelKey:"evaluate",destructive:!1},full_pipeline:{labelKey:"fullPipeline",destructive:!1},retrain:{labelKey:"retrain",destructive:!1},offboard:{labelKey:"offboard",destructive:!0},cancel_onboarding:{labelKey:"cancelOnboarding",destructive:!0}},IUe=(e,t)=>{const{jobTriggerDialog:i}=UG;return e==="offboard"?i.singleDescriptionOffboard.replace("__companyName__",t):i.singleDescription.replace("__companyName__",t).replace("__datesInstruction__",i.datesInstruction)},hX=e=>WGe(e).map(t=>({operationType:t,...uX[t]})),jUe=e=>({active:ndr,pending:odr,onboarding:sdr,offboarded:adr,failed:edr})[e]??e;function mX(){const{useDynamicConfig:e}=Dj(),{configValue:t}=e(WBe.aiAccountantOnboardingConfig),i=Yi().loggedInUser;return t==null||i?.userId==null?!1:Array.isArray(t.user_list_with_write_access)&&t.user_list_with_write_access.includes(i.userId)}const{common:{strings:y7,texts:{actions:cdr,by:pdr,created:udr,lastSync:hdr,lastTraining:mdr,offboarded:gdr,status:Jye}},dateFormat:gk,timeFormat:ly,aiAccountantCustomer:Bh}=U.getLocalizedStrings(),
|
|
94481
|
+
`,{aiAccountantCustomer:UG,common:{failed:edr,oauthConsent:{company:tdr},status:{pending:odr},texts:{lastSync:idr,lastTraining:rdr,live:ndr,offboarded:adr,onboarding:sdr,status:ldr}}}=U.getLocalizedStrings(),ii={rowHeightPx:v[8],headerHeightPx:44,jobRowHeightPx:44,jobHeaderHeightPx:36,jobTableMinHeightPx:200,jobOperationMinWidthPx:120,jobStatusColumnWidthPx:90,jobDateColumnWidthPx:120,jobByColumnWidthPx:100,jobSkeletonRowCount:3,skeletonLoaderHeightPx:14,accuracyLabelMinWidthPx:80,accuracyValueMinWidthPx:45,accuracySuccessThresholdPercent:80,accuracyAlertThresholdPercent:60,sortIconSize:o.sp2,menuIconSize:o.sp3,statusBadgeVerticalPadding:"2px",accuracyBarHeight:o.sp2,globalNavBarHeightPx:45,pageHeaderHeightPx:75,menuDropdownMinWidthPx:160,checkboxColumnWidthPx:40},cc={companyName:200,status:120,bookcloseDate:130,latestTraining:130,latestSync:130,accuracy:100,actions:60},ddr=[{key:"companyName",label:tdr,sortable:!0,width:cc.companyName,justifyContent:"flex-start",growToFill:!0},{key:"status",label:ldr,sortable:!0,width:cc.status,justifyContent:"flex-start"},{key:"bookcloseDate",label:UG.table.bookClose,sortable:!0,width:cc.bookcloseDate,justifyContent:"flex-start"},{key:"latestTraining",label:rdr,sortable:!0,width:cc.latestTraining,justifyContent:"flex-start"},{key:"latestSync",label:idr,sortable:!0,width:cc.latestSync,justifyContent:"flex-start"},{key:"accuracy",label:UG.table.accuracy,sortable:!0,width:cc.accuracy,justifyContent:"flex-end"},{key:"actions",label:"",sortable:!1,width:cc.actions,justifyContent:"center"}],uX={onboard:{labelKey:"onboard",destructive:!1},evaluate:{labelKey:"evaluate",destructive:!1},full_pipeline:{labelKey:"fullPipeline",destructive:!1},retrain:{labelKey:"retrain",destructive:!1},offboard:{labelKey:"offboard",destructive:!0},cancel_onboarding:{labelKey:"cancelOnboarding",destructive:!0}},IUe=(e,t)=>{const{jobTriggerDialog:i}=UG;return e==="offboard"?i.singleDescriptionOffboard.replace("__companyName__",t):i.singleDescription.replace("__companyName__",t).replace("__datesInstruction__",i.datesInstruction)},hX=e=>WGe(e).map(t=>({operationType:t,...uX[t]})),jUe=e=>({active:ndr,pending:odr,onboarding:sdr,offboarded:adr,failed:edr})[e]??e;function mX(){const{useDynamicConfig:e}=Dj(),{configValue:t}=e(WBe.aiAccountantOnboardingConfig),i=Yi().loggedInUser;return t==null||i?.userId==null?!1:Array.isArray(t.user_list_with_write_access)&&t.user_list_with_write_access.includes(i.userId)}const{common:{strings:y7,texts:{actions:cdr,by:pdr,created:udr,lastSync:hdr,lastTraining:mdr,offboarded:gdr,status:Jye}},dateFormat:gk,timeFormat:ly,aiAccountantCustomer:Bh}=U.getLocalizedStrings(),Hcn=({customer:e,hasMoreJobs:t,jobs:i,jobsFetchStatus:n,onAction:a,onCancelOnboarding:l,onClose:d,onLoadMoreJobs:c})=>{const[p,u]=g.useState(null),h=mX(),m=e.enrollment?.status??"unknown",f=e.enrollment,x=f?.accuracy??{},y=n.fetchState==="In-Progress",w=E=>{u({operationType:E})},b=(E,S,j)=>{a(e,E,S,j),u(null)},C=E=>E<i.length,k=()=>{t&&!y&&c()};return s.jsxs(s.Fragment,{children:[s.jsxs(wdr,{children:[s.jsx(bdr,{children:s.jsxs(vdr,{children:[s.jsx(Cdr,{}),s.jsxs(Adr,{children:[s.jsx($dr,{children:e.companyName}),s.jsx(kdr,{children:e.tenantId})]}),s.jsx(Sdr,{onClick:d,children:s.jsx(Edr,{})})]})}),s.jsxs(Ldr,{children:[s.jsxs(EV,{children:[s.jsx(S$,{children:Bh.drawer.enrollmentDetails}),s.jsxs(jdr,{children:[s.jsxs(yx,{children:[s.jsx(wx,{children:Jye}),s.jsx(bx,{children:jUe(m)})]}),s.jsxs(yx,{children:[s.jsx(wx,{children:Bh.drawer.onboarded}),s.jsx(bx,{title:f?.onboardedAt!=null?f.onboardedAt.format(ly.hmmADashDDMMMCommaYYYY):void 0,children:f?.onboardedAt!=null?f.onboardedAt.format(gk.visual.MMMDCommaYYYYformat):y7.emDash})]}),s.jsxs(yx,{children:[s.jsx(wx,{children:mdr}),s.jsx(bx,{title:f?.latestTraining!=null?f.latestTraining.format(ly.hmmADashDDMMMCommaYYYY):void 0,children:f?.latestTraining!=null?f.latestTraining.format(gk.visual.MMMDCommaYYYYformat):y7.emDash})]}),s.jsxs(yx,{children:[s.jsx(wx,{children:hdr}),s.jsx(bx,{title:f?.latestTransactionSync!=null?f.latestTransactionSync.local().format(ly.hmmADashDDMMMCommaYYYY):void 0,children:f?.latestTransactionSync!=null?f.latestTransactionSync.utc(!0).fromNow():y7.emDash})]}),f?.offboardedAt!=null&&s.jsxs(yx,{children:[s.jsx(wx,{children:gdr}),s.jsx(bx,{title:f.offboardedAt.format(ly.hmmADashDDMMMCommaYYYY),children:f.offboardedAt.format(gk.visual.MMMDCommaYYYYformat)})]})]})]}),s.jsxs(EV,{children:[s.jsx(S$,{children:Bh.drawer.modelAccuracy}),Object.keys(x).length>0?s.jsx(Mdr,{children:Object.entries(x).map(([E,S])=>{const j=S*100,I=xdr(j),T=`${j.toFixed(0)}${y7.percentage}`,P=`${j.toFixed(1)}${y7.percentage}`;return s.jsxs(Bdr,{children:[s.jsx(Ddr,{children:ydr(E)}),s.jsx(Pdr,{children:s.jsx(Tdr,{style:{width:T,backgroundColor:I}})}),s.jsx(zdr,{children:P})]},E)})}):s.jsx(Xye,{children:Bh.drawer.noAccuracyData})]}),h&&s.jsxs(EV,{children:[s.jsx(S$,{children:cdr}),s.jsx(Fdr,{children:hX(m).map(E=>s.jsx(Nt,{label:Bh.actions[E.labelKey],variant:E.destructive?"destructive":"outline",size:"small",onClick:()=>{E.operationType==="cancel_onboarding"?l(e):w(E.operationType)}},E.operationType))})]}),s.jsxs(Idr,{children:[s.jsx(S$,{children:Bh.drawer.jobHistory}),i.length===0&&!y?s.jsx(Xye,{children:Bh.drawer.noJobsFound}):s.jsxs(Rdr,{children:[s.jsxs(Odr,{children:[s.jsx(Ndr,{children:s.jsx(St,{children:Bh.drawer.operation})}),s.jsx(Hdr,{children:s.jsx(St,{children:Jye})}),s.jsx(_dr,{children:s.jsx(St,{children:udr})}),s.jsx(Vdr,{children:s.jsx(St,{children:pdr})})]}),s.jsx(Qdr,{children:s.jsx(wr,{children:({height:E,width:S})=>s.jsx(Xw,{isItemLoaded:C,itemCount:t?i.length+1:i.length,loadMoreItems:k,children:({onItemsRendered:j})=>s.jsx(gL,{height:E,width:S,itemCount:i.length,itemSize:ii.jobRowHeightPx,itemData:i,onItemsRendered:j,innerElementType:fdr,overscanCount:ii.jobSkeletonRowCount,children:MUe})})})}),y&&s.jsx(qdr,{children:Array.from({length:ii.jobSkeletonRowCount},(E,S)=>s.jsxs(Zdr,{children:[s.jsx(E$,{$flex:!0,children:s.jsx(Eo,{width:S%2===0?90:70,height:ii.skeletonLoaderHeightPx})}),s.jsx(E$,{children:s.jsx(Eo,{width:60,height:ii.skeletonLoaderHeightPx})}),s.jsx(E$,{children:s.jsx(Eo,{width:o.sp11,height:ii.skeletonLoaderHeightPx})}),s.jsx(E$,{children:s.jsx(Eo,{width:70,height:ii.skeletonLoaderHeightPx})})]},`skeleton-${S}`))})]})]})]})]}),p!=null&&s.jsx(pX,{operationType:p.operationType,dialogTitle:Bh.actions[uX[p.operationType].labelKey],dialogDescription:IUe(p.operationType,e.companyName),onCancel:()=>u(null),onConfirm:b})]})},MUe=g.memo(({index:e,style:t,data:i})=>{const n=i[e],a=n.operationType.replaceAll("_"," "),l=n.triggeredBy!=null?`${n.triggeredBy.firstName} ${n.triggeredBy.lastName}`.trim():y7.emDash;return s.jsxs(Udr,{style:t,children:[s.jsx(Wdr,{children:a}),s.jsx(Gdr,{children:n.status}),s.jsx(Ydr,{title:n.createdAt.format(ly.hmmADashDDMMMCommaYYYY),children:n.createdAt.format(gk.visual.MMMDCommaYYYYformat)}),s.jsx(Kdr,{children:l})]})});MUe.displayName="JobListItem";const fdr=g.forwardRef(({style:e,...t},i)=>s.jsx("div",{ref:i,style:{...e,position:"relative"},...t})),xdr=e=>e>=ii.accuracySuccessThresholdPercent?$.success:e>=ii.accuracyAlertThresholdPercent?$.alert:$.important,ydr=e=>e.split("_").filter(t=>t.length>0).map(t=>t[0].toUpperCase()+t.slice(1).toLowerCase()).join(" "),wdr=r.div`
|
|
94456
94482
|
display: flex;
|
|
94457
94483
|
flex-direction: column;
|
|
94458
94484
|
background-color: ${e=>e.theme.colors.grey4};
|
|
@@ -94902,7 +94928,7 @@ ${e}`,DJi=e=>g.createElement("svg",{width:38,height:39,viewBox:"0 0 38 39",fill:
|
|
|
94902
94928
|
`,M$=r(pt)`
|
|
94903
94929
|
color: ${e=>e.theme.colors.primary};
|
|
94904
94930
|
margin-top: ${o.sp2};
|
|
94905
|
-
`,{common:V0,aiAccountantCustomer:k0}=U.getLocalizedStrings(),Ocr="evaluate",Ncr=[{label:V0.texts.live,value:"active"},{label:V0.status.pending,value:"pending"},{label:V0.texts.onboarding,value:"onboarding"},{label:V0.texts.offboarded,value:"offboarded"},{label:V0.failed,value:"failed"}],Hcr=()=>({enrollmentStatus:Ncr}),
|
|
94931
|
+
`,{common:V0,aiAccountantCustomer:k0}=U.getLocalizedStrings(),Ocr="evaluate",Ncr=[{label:V0.texts.live,value:"active"},{label:V0.status.pending,value:"pending"},{label:V0.texts.onboarding,value:"onboarding"},{label:V0.texts.offboarded,value:"offboarded"},{label:V0.failed,value:"failed"}],Hcr=()=>({enrollmentStatus:Ncr}),_cn=({headerData:e,headerActions:t,aiAccountantPageActions:i,aiAccountantPageData:n})=>{const a=je(),l=mX(),{aiAccountantView:d}=n,{onAction:c,onBulkAction:p,onCancelOnboarding:u,onClearSelection:h,onCockpitReloadData:m,onColumnSortConfigChanged:f,onCustomerSelected:x,onEvaluateAll:y,onFilterTextChanged:w,onFiltersChange:b,onToggleAllVisible:C,onToggleTenantSelection:k}=i,E=d.fetchState==="Completed",S=d.fetchState==="In-Progress"||d.fetchState==="Not-Started",j=d.fetchState==="Error",I=d.triggerJobStatus.fetchState==="In-Progress",T=d.selectedTenantIds,P=T.length,B=d.unonboardedTenantIds.length,D=P>0,F=g.useMemo(()=>{if(!D)return[];const W=d.selectedCustomersForJobTrigger.map(ne=>hX(ne.enrollment?.status??"unknown"));if(W.length===0)return[];const[ee,...J]=W;return ee.filter(ne=>ne.operationType!=="cancel_onboarding"&&J.every(ye=>ye.some(me=>me.operationType===ne.operationType)))},[D,d.selectedCustomersForJobTrigger]),[Y,q]=g.useState(!1),Z=g.useRef(null),[V,H]=g.useState({top:0,right:0});g.useEffect(()=>{if(Y&&Z.current!=null){const W=Z.current.getBoundingClientRect();H({top:W.bottom,right:window.innerWidth-W.right})}},[Y]),g.useEffect(()=>{if(!Y)return;const W=()=>q(!1);return document.addEventListener("click",W),window.addEventListener("scroll",W,!0),window.addEventListener("resize",W),()=>{document.removeEventListener("click",W),window.removeEventListener("scroll",W,!0),window.removeEventListener("resize",W)}},[Y]);const[N,O]=g.useState(null),z=()=>{B===0||I||O({mode:"evaluateAll",count:B})},R=W=>{q(!1),O({mode:"bulk",operationType:W.operationType,operationLabel:k0.actions[W.labelKey],count:P})},te=(W,ee,J)=>{N!=null&&(N.mode==="evaluateAll"?y(ee,J):p(W,ee,J),O(null))},G=D||B===0||I;return s.jsxs(_cr,{children:[s.jsx(U2,{headerActions:{...t,filterActions:{onFilterTextChanged:(W,ee)=>{w(ee)},getCategoryWiseOptions:Hcr,onFiltersChange:b}},headerData:{...e,allTabOptions:e.allTabOptions??hh,companiesLoaded:E,filterData:{filterText:d.uiState.filterText,filters:d.uiState.filters},selectedTabOption:"aiAccountant"}}),s.jsx(Vcr,{windowSize:a,children:S?s.jsx(Mcr,{}):j?s.jsx(Ig,{onCockpitReloadData:m,selectedCockpitOption:"aiAccountant"}):s.jsxs(e1r,{children:[s.jsxs(Qcr,{children:[s.jsx(Ucr,{children:D&&s.jsxs(s.Fragment,{children:[s.jsx(Gcr,{children:k0.bulkActions.selectedCount.replace("__count__",String(P))}),s.jsx(Ycr,{type:"button",onClick:h,children:V0.clear})]})}),s.jsxs(Wcr,{children:[s.jsx(Xdr,{isEnabled:!S,spinRefreshIcon:S,onClick:()=>m("aiAccountant")}),l&&!D&&s.jsx(Nt,{label:V0.texts.evaluateAll,variant:"primary",size:"small",disabled:G,onClick:z}),l&&D&&s.jsxs(Kcr,{children:[s.jsxs(qcr,{ref:Z,onClick:W=>W.stopPropagation(),children:[s.jsx(Nt,{label:k0.bulkActions.menuLabel,variant:"primary",size:"small",disabled:F.length===0||I,onClick:()=>q(!Y)}),Y&&F.length>0&&Mn.createPortal(s.jsx(Jcr,{style:{top:V.top,right:V.right},children:F.map(W=>s.jsx(Xcr,{onClick:()=>R(W),children:k0.actions[W.labelKey]},W.operationType))}),document.body)]}),F.length===0&&s.jsx(Zcr,{children:k0.bulkActions.disabledInfo})]})]})]}),s.jsx(Fcr,{averageAccuracy:d.averageAccuracy,customers:d.customers}),s.jsx(acr,{customers:d.customers,sortKey:d.uiState.sortKey,sortOrder:d.uiState.sortOrder,selectedTenantIds:T,onColumnSortConfigChanged:f,onRowClick:x,onAction:c,onCancelOnboarding:u,onToggleAllVisible:C,onToggleTenantSelection:k})]})}),N!=null&&s.jsx(pX,{operationType:N.mode==="evaluateAll"?Ocr:N.operationType,dialogTitle:N.mode==="evaluateAll"?V0.texts.evaluateAll:N.operationLabel,dialogDescription:N.mode==="evaluateAll"?k0.bulkActions.evaluateAllDialogDescription.replace("__count__",String(N.count)):N.operationType==="offboard"?k0.bulkActions.bulkDialogDescriptionOffboard.replace("__count__",String(N.count)):k0.bulkActions.bulkDialogDescription.replace("__count__",String(N.count)).replace("__action__",N.operationLabel),onCancel:()=>O(null),onConfirm:te})]})},_cr=r.div`
|
|
94906
94932
|
height: calc(100vh - ${ii.globalNavBarHeightPx}px);
|
|
94907
94933
|
overflow-y: hidden;
|
|
94908
94934
|
background-color: ${e=>e.theme.colors.grey4};
|
|
@@ -95415,7 +95441,7 @@ ${e}`,DJi=e=>g.createElement("svg",{width:38,height:39,viewBox:"0 0 38 39",fill:
|
|
|
95415
95441
|
height: calc(100vh - 45px);
|
|
95416
95442
|
overflow-y: hidden;
|
|
95417
95443
|
background-color: ${e=>e.theme.colors.grey4};
|
|
95418
|
-
`,
|
|
95444
|
+
`,Vcn=({headerData:e,headerActions:t,initialOpenThreadRequest:i,onboardingPageActions:n,onboardingPageData:a})=>{const[l,d]=g.useState(!1),[c,p]=g.useState(void 0),[u,h]=g.useState(void 0),{analytics:m}=ha(),{onboardingView:f,qboConnectionPoolFlag:x}=a,{onScroll:y,onOnboardingStepClicked:w,onCancelClicked:b,onGoLiveClicked:C,onUpdateCustomerCreationStatus:k,onCockpitReloadData:E,onSendInviteClick:S,onColumnSortConfigChanged:j,redirectToDashboardOnboarding:I,onRetryBankAccountConnection:T,onQBOConnectClick:P}=n,B=f.fetchState==="Completed"&&f.zeniUsers.fetchState==="Completed",D={onOkClick:()=>{d(!1),c!=null&&(S(c),u!=null&&m.trackOnboardingSendInvite(c,!1,u))},onCancelClick:()=>{d(!1)}};return s.jsxs(Bpr,{children:[l===!0?s.jsx(ws,{titleComponent:s.jsx(xs,{style:{paddingLeft:o.sp6,paddingRight:o.sp6},children:mwe.confirmationPopup.title}),descriptionComponent:s.jsx(ys,{children:mwe.confirmationPopup.subTitle}),primaryButtonText:Lpr,secondaryButtonText:Epr,action:D,style:{background:$.overlayDark}}):null,s.jsx(U2,{headerActions:{...t},headerData:{...e,allTabOptions:e.allTabOptions??hh,companiesLoaded:B,filterData:{filterText:f.uiState.filterText,disableFilters:!0},selectedTabOption:"onboarding"}}),s.jsx(Dpr,{initialOpenThreadRequest:i,onColumnSortConfigChanged:j,onCockpitReloadData:E,onGoLiveClicked:C,onQBOConnectClick:P,onRetryBankAccountConnection:T,onScroll:y,onSendInviteClick:(F,Y,q)=>{Y?(S(F),m.trackOnboardingSendInvite(F,!0,q)):(p(F),h(q),d(!0))},onboardingView:f,onOnboardingStepClicked:w,onCancelClicked:b,onUpdateCustomerCreationStatus:k,qboConnectionPoolFlag:x,redirectToDashboardOnboarding:I})]})},Dpr=({onboardingView:e,qboConnectionPoolFlag:t,initialOpenThreadRequest:i,onSendInviteClick:n,onScroll:a,onOnboardingStepClicked:l,onCancelClicked:d,onGoLiveClicked:c,onUpdateCustomerCreationStatus:p,onCockpitReloadData:u,onColumnSortConfigChanged:h,redirectToDashboardOnboarding:m,onRetryBankAccountConnection:f,onQBOConnectClick:x})=>{const y=je();return e.fetchState==="Error"?s.jsx(Ig,{onCockpitReloadData:u,selectedCockpitOption:"onboarding"}):e.fetchState==="In-Progress"||e.fetchState==="Not-Started"?s.jsx(jpr,{children:s.jsx(yo,{size:"ExtraLarge",start:!0})}):e.onboardingCustomers.length===0?s.jsx(jc,{emptySearchTextFirstLine:Ipr,emptySearchTextSecondLine:Spr}):s.jsx(Mpr,{windowSize:y,children:s.jsx(bpr,{initialOpenThreadRequest:i,onCancelClicked:d,onColumnSortConfigChanged:h,onGoLiveClicked:c,onQBOConnectClick:x,onRetryBankAccountConnection:f,onScroll:a,onSendInviteClick:n,onUpdateCustomerCreationStatus:p,onboardingView:e,qboConnectionPoolFlag:t,redirectToDashboardOnboarding:m,onOnboardingStepClicked:l})})},{common:{add:Ppr},cockpit:{onboarding:{customer:{companyCredentials:Tpr,companyDomain:zpr,domain:Fpr}}}}=U.getLocalizedStrings(),Rpr=({localData:e,labelWidth:t,onCompanyDomainBlurred:i,isOnboardingAllowedForUser:n})=>{const{isCustomerCreated:a,isEmailGroupCreated:l,companyEmailDomain:d,companyId:c}=e.newOnboardingCustomerLocalData,p=a===!0||l===!0||c!=null||n===!1,u=d!=null&&_pr(d);return s.jsxs(Opr,{children:[s.jsx(Hpr,{children:Tpr}),s.jsx(Npr,{children:s.jsx(bi,{label:{label:zpr,width:t},text:{type:"text",name:"companySection.companyDomain",placeholder:`${Ppr} ${Fpr}`,options:{required:!0,pattern:CBe}},onBlur:()=>{u&&i(d)},isDisabled:p===!0?"readonly":void 0})})]})},Opr=r.div`
|
|
95419
95445
|
display: flex;
|
|
95420
95446
|
flex-direction: column;
|
|
95421
95447
|
gap: ${o.sp2};
|
|
@@ -95670,7 +95696,7 @@ ${e}`,DJi=e=>g.createElement("svg",{width:38,height:39,viewBox:"0 0 38 39",fill:
|
|
|
95670
95696
|
color: ${$.importantDark};
|
|
95671
95697
|
padding: ${o.sp2} ${o.sp2};
|
|
95672
95698
|
border-radius: ${o.sp1};
|
|
95673
|
-
`,{common:Zr,cockpit:{onboarding:Ls}}=U.getLocalizedStrings(),Hur=Zr.no,_ur=Zr.yes,Io=Zr.strings,xwe="onboardingCustomerPage",Vur="companySection",Xp="groupSection",nn="customerSection",NUe="qboConnectionSection",Sx={labelWidth:new L(120,180),largeLabelWidth:new L(120,210,210),extraLargeLabelWidth:new L(240,240,240),buttonWidth:new L(135,135)};function Rcn({localData:e,screenType:t,qboConnectClicked:i,analytics:n,onOnboardingCustomerDataUpdated:a,onCloseClick:l,onSaveClick:d,onViewClick:c,onCompanyDomainBlurred:p,onNavigateToPreOnboarding:u,onQBOConnectClick:h}){const m=lt(),f=je(),x=Sx.labelWidth.value(f),y=Sx.largeLabelWidth.value(f),w=Sx.extraLargeLabelWidth.value(f),b=vr({mode:"all",reValidateMode:"onChange",defaultValues:g.useMemo(()=>Ex(e),[e])}),{emailGroupFetchState:C,newOnboardingCustomerLocalData:k,onboardingCompletedCompanies:E,isOnboardingAllowedForUser:S,fetchState:j,sendInviteFetchState:I,uiState:T,companyView:P,externalConnections:B}=e,[D,F]=g.useState(Io.empty),[Y,q]=g.useState(Io.empty),[Z]=g.useState(Io.empty),[V,H]=g.useState(Io.empty),[N,O]=g.useState(Io.empty),[z,R]=g.useState(!1),[te,G]=g.useState(!1),[W,ee]=g.useState(Ls.customer.completePreOnboardingText),[J,ne]=g.useState(!1),ye=g.useRef(null),me=g.useRef(null),ue=g.useRef(null),{isExistingCustomer:pe,isCustomerOnboardedSuccessfully:xe}=Yur(e),be=pe&&xe?Ls.customer.customerNameExistInManagementText:Ls.customer.customerNameExistInOnboardingText,le=g.useMemo(()=>be.replace("_company-domain_",k.companyEmailDomain??Io.empty),[C.fetchState]),ae=P?.company.companyOnboardingInfo.onboardingInfo?.qboLinked.completed,fe=g.useCallback(()=>{const _e=b.getValues();return _e[nn].realmId!==_e[nn].confirmRealmId?(H(Ls.customer.realmIdWarning),b.trigger(`${nn}.confirmRealmId`),!1):(H(Io.empty),b.clearErrors(`${nn}.confirmRealmId`),!0)},[b]),$e=g.useCallback(()=>{const _e=b.getValues();return _e[nn].entityType.selectedOption?.value=="Subsidiary"&&_e[nn].company.selectedOption==null?(b.setError("customerSection.company",{type:"required"}),!1):(b.clearErrors("customerSection.company"),!0)},[b]),ie=g.useCallback(()=>k.customerName?.firstName&&!k.customerName?.lastName||!k.customerName?.firstName&&k.customerName?.lastName?(b.trigger(`${nn}.customerName`),!1):(k.customerName?.firstName||k.customerName?.lastName)&&!k.email?(b.trigger(`${nn}.email`),!1):(k.customerName?.firstName||k.customerName?.lastName)&&k.email&&k.selectedProducts?.length===0?(O(Ls.customer.productsWarning),b.trigger(`${nn}.products`),!1):!0,[b,k.customerName,k.email,k.selectedProducts]),he=g.useCallback(()=>fe()&&$e()&&ie(),[$e,fe,ie]),Ie=b.handleSubmit(()=>{ee(Ls.customer.completePreOnboardingText),he()&&G(!0)},()=>{he(),console.warn("Onboarding customer form error")}),Fe=b.getValues()[nn].email??Io.empty,Se=(_e=!1)=>{const At={companyDomain:k.companyEmailDomain??Io.empty,primaryContactEmail:Fe},Bt={groupName:k.groupName??Io.empty,groupEmail:k.groupId??Io.empty,groupDescription:k.groupDescription??Io.empty},Ht={firstName:k.customerName?.firstName??Io.empty,lastName:k.customerName?.lastName??Io.empty,customerEmail:Fe,companyName:k.name??Io.empty,entittyType:k.isSubsidiary===!0?Zr.texts.subsidiary:Zr.texts.parent??Io.empty,chargebeeId:k.chargebeeId??Io.empty,products:k.selectedProducts??[],qboRealmId:k.qboRealmId??Io.empty,hubSpotId:k.hubSpotId},Lt={isSendInvite:_e,isInviteAlreadySent:P?.company.companyOnboardingInfo.onboardingInfo?.inviteSent===!0,isZeniManagedQboConnectionSelected:k.accountingConnectionCreationMode==="zeni_user",isCustomerManagedQboConnectionSelected:k.accountingConnectionCreationMode==="customer",qboConnectionStatus:P?.company.companyOnboardingInfo.onboardingInfo?.qboLinked.completed??!1};n?.trackOnboardingSaveOrSendInvite(At,Bt,Ht,Lt)},ze=()=>{const _e={companyEmailDomain:k.companyEmailDomain??Io.empty,primaryContactEmail:Fe},At={groupName:k.groupName??Io.empty,groupEmail:k.groupId??Io.empty,groupDescription:k.groupDescription??Io.empty,isCompanyEmailDomainAvailable:!0};n?.trackOnboardingNewCustomerGroupCreationCheck(_e,At)},Re=()=>{let _e=!0;const At=b.getValues();if(At[Xp].groupEmail!==Io.empty&&At[Xp].groupName===Io.empty)F(Ls.customer.groupNameWarning),b.setError("groupSection.groupName",{type:"required"}),_e=!1;else if(At[Xp].groupName!==Io.empty&&At[Xp].groupEmail===Io.empty)q(Ls.customer.groupEmailWarning),b.setError("groupSection.groupEmail",{type:"required"}),_e=!1;else{const{error:Bt}=b.getFieldState("groupSection.groupName"),{error:Ht}=b.getFieldState("groupSection.groupEmail");(Bt==null||Bt.type==="required")&&(Ht==null||Ht.type==="required")&&(_e=!1,b.clearErrors("groupSection")),F(Io.empty),q(Io.empty)}return _e},tt={onOkClick:()=>{R(!1),b.reset(),l()},onCancelClick:()=>{R(!1)}},Je={onOkClick:()=>{G(!1),d(!0),Se(!0)},onCancelClick:()=>{G(!1)}},Pe=async(_e,At)=>{const Bt={...At};if(_e.includes("groupName")&&At[Xp].groupName!=Io.empty&&(At[Xp].groupName=At[Xp].groupName.charAt(0).toUpperCase()+At[Xp].groupName.slice(1)),(_e.includes("groupName")||_e.includes("groupEmail"))&&Re(),_e.includes("confirmRealmId")&&H(Io.empty),_e.includes("products")&&Ao(k.selectedProducts??[],At[nn].products.selectedOptions)===!1){O(Io.empty);const Ht=Kur(k.selectedProducts??[],At[nn].products.selectedOptions.map(yt=>XGe(yt)).filter(yt=>yt!=null));Bt[nn].products.selectedOptions=Ht;const Lt=GE(e.allProductsList,Ht);b.setValue(`${nn}.products`,{allOptions:Lt,selectedOptions:Ht})}_e.includes("realmId")&&Yt(b.formState.errors,`${nn}.confirmRealmId`)&&b.trigger(`${nn}.confirmRealmId`),a(Bt)},qe=_e=>{const{dirtyFields:At}=b.formState;At.companySection?.companyDomain===!0&&p(_e)},Ae=()=>{Object.keys(b.formState.errors).length===0&&(u?.(),ee(Io.empty))},Oe=()=>{C.fetchState==="Error"?p(k.companyEmailDomain):he()&&Object.keys(b.formState.errors).length===0&&(d(I.fetchState==="Error"),Se())},at=()=>{he()&&Object.keys(b.formState.errors).length===0&&(d(!1),Se())};g.useEffect(()=>{const _e=b.watch((At,{name:Bt})=>{Bt!=null&&At!=null&&va(()=>Pe(Bt,At))});return()=>{_e.unsubscribe()}}),g.useEffect(()=>{k.isCustomerCreationDisabled===!0&&(b.resetField("customerSection",{defaultValue:Ex(e)[nn],keepDirty:!0}),b.clearErrors("customerSection"))},[k.isCustomerCreationDisabled]),g.useEffect(()=>{ne(k.isSubsidiary===!0),k.isSubsidiary!==!0&&b.resetField("customerSection.company",{defaultValue:Ex(e)[nn].company,keepDirty:!0}),b.resetField("customerSection.entityType",{defaultValue:Ex(e)[nn].entityType,keepDirty:!0})},[k.isSubsidiary]),g.useEffect(()=>{C.fetchState==="Completed"&&(b.reset(Ex(e)),pe||ze())},[C.fetchState]),g.useEffect(()=>{T.selectedStep==="STEP_1"?ye.current?.scrollIntoView():T.selectedStep==="STEP_2"?me.current?.scrollIntoView():T.selectedStep==="STEP_3"&&ue.current?.scrollIntoView()},[]),g.useEffect(()=>{const _e=P?.company.companyOnboardingInfo.onboardingInfo?.qboLinked.completed;if(B?.saveConnectionState==="Error"){const At={firstName:k.customerName?.firstName??Io.empty,lastName:k.customerName?.lastName??Io.empty,customerEmail:b.getValues()[nn].email??Io.empty,qboConnectionResponseMessage:Zr.texts.unableToConnectQuickbooksPleaseTryAgain,isSuccess:!1};n?.trackOnboardingZeniManagedQBOConnection(At)}else if(_e??!1){const At={firstName:k.customerName?.firstName??Io.empty,lastName:k.customerName?.lastName??Io.empty,customerEmail:b.getValues()[nn].email??Io.empty,qboConnectionResponseMessage:Zr.texts.congratulationsYouHaveSuccessfullyEstablishedAConnectionWith,isSuccess:!0};n?.trackOnboardingZeniManagedQBOConnection(At)}},[B?.saveConnectionState,P?.company.companyOnboardingInfo.onboardingInfo?.qboLinked.completed]),g.useEffect(()=>{if(k.accountingConnectionCreationMode){const _e=P?.company.companyOnboardingInfo.onboardingInfo?.accountingConnectionCreationMode??Io.empty;if(k.accountingConnectionCreationMode!==_e){const At={firstName:k.customerName?.firstName??Io.empty,lastName:k.customerName?.lastName??Io.empty,customerEmail:b.getValues()[nn].email??Io.empty,isZeniOrCustomer:k.accountingConnectionCreationMode??Io.empty};n?.trackOnboardingQBOConnectionSelected(At)}}},[k.accountingConnectionCreationMode]);const Ne=(_e,At)=>{const{fetchState:Bt}=_e,{isEmailGroupCreated:Ht,selectedProducts:Lt}=At,yt=Bt!=="Completed"&&Ht==null,Gt=Lt==null||Lt.length===0,qt=(Lt?.includes("zeni_checking")===!0||Lt?.includes("zeni_treasury")===!0||Lt?.includes("zeni_cards")===!0||Lt?.includes("zeni_payroll")===!0||Lt?.includes("zeni_cfo")===!0||Lt?.includes("zeni_tax")===!0)&&Lt?.includes("bookkeeping")===!1;return yt||Gt||qt},it=g.useMemo(()=>{const _e=b.formState.isValid,At=k.selectedProducts!=null&&(k.selectedProducts.includes("zeni_payroll")===!0||k.selectedProducts.includes("zeni_cfo")===!0||k.selectedProducts.includes("zeni_tax")===!0),Bt=k.selectedProducts!=null&&(k.selectedProducts.includes("zeni_checking")===!0||k.selectedProducts.includes("zeni_cards")===!0||At)&&k.selectedProducts.includes("bookkeeping")===!1;return _e!==!0||C.fetchState==="In-Progress"||C.fetchState==="Error"||j==="In-Progress"||j==="Error"||S!==!0||k.selectedProducts==null||k.selectedProducts.length===0||k.accountingConnectionCreationMode==null&&!Bt||k.accountingConnectionCreationMode==="zeni_user"&&ae!==!0&&!Bt||C.fetchState==="Completed"&&pe||P?.company.companyOnboardingInfo.onboardingInfo?.inviteAccepted===!0},[C.fetchState,pe,S,j,b.formState.isValid,k.accountingConnectionCreationMode,ae,k.selectedProducts,P?.company.companyOnboardingInfo.onboardingInfo?.inviteAccepted]),mt=g.useMemo(()=>I.fetchState!=="In-Progress"&&I.fetchState!=="Error"&&j!=="In-Progress"&&j!=="Error"&&C.fetchState!=="In-Progress"&&pe===!0,[C.fetchState,pe,j,I.fetchState]);return s.jsxs(s.Fragment,{children:[z===!0?s.jsx(ws,{titleComponent:s.jsx(xs,{children:Zr.confirmationPopup.discardTitle}),descriptionComponent:s.jsx(ys,{children:Zr.confirmationPopup.discardDescription}),primaryButtonText:Zr.confirmationPopup.discard,secondaryButtonText:Zr.cancel,proceedButtonVariant:"destructive",action:tt,style:{background:$.overlayDark}}):null,te===!0?s.jsx(ws,{titleComponent:s.jsx(xs,{style:{paddingLeft:o.sp6,paddingRight:o.sp6},children:Ls.confirmationPopup.title}),descriptionComponent:s.jsx(ys,{children:Ls.confirmationPopup.subTitle}),primaryButtonText:_ur,secondaryButtonText:Hur,action:Je,style:{background:$.overlayDark}}):null,s.jsx(Kj,{title:t==="create"?Zr.texts.newCustomer:Zr.texts.editCustomer,backgroundColor:m.colors.grey5,style:{zIndex:4},onCloseClick:()=>{Object.keys(b.formState.dirtyFields).length>0?R(!0):(b.reset(),l())}}),s.jsxs(Qur,{children:[s.jsx(Uur,{children:Ls.customer.subTitle}),s.jsx(br,{...b,children:s.jsxs("form",{id:`${xwe}_form`,onSubmit:Ie,children:[s.jsx(Rpr,{localData:e,labelWidth:x,onCompanyDomainBlurred:qe,primaryEmailDomainAdditionalLabel:Z,isOnboardingAllowedForUser:S}),mt===!0?s.jsxs(PV,{children:[s.jsxs(TV,{children:[s.jsxs(ywe,{children:[s.jsx(DV,{}),s.jsx(ce,{children:Ls.customer.groupCreationError})]}),s.jsx(Gur,{children:le})]}),s.jsx(Nt,{style:{padding:`${o.sp1} ${o.sp2}`,backgroundColor:m.colors.champion,borderColor:m.colors.champion,color:m.mode==="light"?$n.primary:Tt.primary,height:"30px",width:o.sp7},label:Zr.view,size:"small",onClick:()=>{c(xe?"management":"onboarding")}})]}):null,C.fetchState==="Error"||j==="Error"||I.fetchState==="Error"&&e.error!=null&&e.error?.code!==406?s.jsxs(PV,{children:[s.jsx(TV,{children:s.jsxs(ywe,{children:[s.jsx(DV,{}),s.jsx(Kt,{children:Ls.customer.emailgroupAPIError})]})}),s.jsx(Nt,{style:{padding:`${o.sp1} ${o.sp2}`,backgroundColor:m.colors.champion,borderColor:m.colors.champion,color:m.mode==="light"?$n.primary:Tt.primary},label:Ls.customer.tryAgainText,size:"small",onClick:Oe})]}):null,I.fetchState==="Error"&&e.error!=null&&e.error?.code===406?s.jsxs(PV,{children:[s.jsx(DV,{}),s.jsxs(TV,{children:[s.jsx(Kt,{children:W!==Io.empty?Ls.customer.preOnboardingError:Ls.customer.preOnboardingSaveError}),W!==Io.empty?s.jsx(Nt,{style:{padding:`${o.sp1} ${o.sp2}`,backgroundColor:m.colors.champion,borderColor:m.colors.champion,color:m.mode==="light"?$n.primary:Tt.primary},label:W,size:"small",onClick:Ae}):null]})]}):null,s.jsx(OUe,{groupEmailAdditionalLabel:Y,groupNameAdditionalLabel:D,labelWidth:x,localData:e,ref:ye,sectionId:Xp}),s.jsx(RUe,{localData:e,onboardedCompanies:E.companies,isSubsidiary:J,labelWidth:x,largeLabelWidth:y,extraLargeLabelWidth:w,realmIdAdditionalLabel:V,productsAdditionalLabel:N,ref:me,sectionId:nn,isDisabled:S===!1?"disabled":void 0}),s.jsx(Wur,{children:s.jsx(Eur,{isSectionDisabled:Ne(C,k),sectionId:NUe,isLoading:i===!0||B?.fetchState==="In-Progress"||B?.saveConnectionState==="In-Progress",accountingConnectionCreationMode:e.newOnboardingCustomerLocalData.accountingConnectionCreationMode,onQBOConnectClick:h,isConnected:P?.company.companyOnboardingInfo.onboardingInfo?.qboLinked.completed===!0,isInviteSent:P?.company.companyOnboardingInfo.onboardingInfo?.inviteSent===!0||P?.company.companyOnboardingInfo.onboardingInfo?.inviteAccepted===!0,saveConnectionState:B?.saveConnectionState})})]})})]}),s.jsx(xl,{formId:`${xwe}_form`,primaryBtn:{label:P?.company.companyOnboardingInfo.onboardingInfo?.inviteSent===!0?Zr.texts.resendInvite:Zr.texts.sendInvite,style:{width:Sx.buttonWidth.value(f),display:"flex",alignItems:"center",justifyContent:"center"},isLoading:I.fetchState==="In-Progress",isDisabled:it},cancelBtn:{label:Zr.save,style:{width:Sx.buttonWidth.value(f),display:"flex",alignItems:"center",justifyContent:"center"},isDisabled:!(hw(b.formState.dirtyFields)||e.emailGroupFetchState.fetchState==="Completed"),isLoading:j==="In-Progress"&&i===!1,shouldResetOnCancel:!1,onClick:at,reverseSpinnerColor:!1}})]})}const Ex=e=>{const{newOnboardingCustomerLocalData:t,onboardingCompletedCompanies:i}=e;let n;const a=i.companies.find(l=>l.companyInfo.companyId===t.parentCompanyId);return a!=null&&(n={label:a.companyInfo.name,value:a.companyInfo.companyId}),{[Vur]:{companyDomain:t.companyEmailDomain??Io.empty},[Xp]:{groupName:t.groupName??Io.empty,groupEmail:t.groupId??Io.empty,groupDescription:t.groupDescription??Io.empty},[nn]:{name:t.name??Io.empty,entityType:{allOptions:[{label:Zr.texts.parent,value:Zr.texts.parent},{label:Zr.texts.subsidiary,value:Zr.texts.subsidiary}],selectedOption:t.isSubsidiary===!0?{label:Zr.texts.subsidiary,value:Zr.texts.subsidiary}:{label:Zr.texts.parent,value:Zr.texts.parent}},company:{selectedOption:n,allOptions:i.companies.map(l=>({label:l.companyInfo.name,value:l.companyInfo.companyId}))},realmId:t.qboRealmId??Io.empty,confirmRealmId:t.qboRealmId??Io.empty,chargebeeId:t.chargebeeId??Io.empty,hubSpotId:t.hubSpotId??Io.empty,email:t.email??Io.empty,customerName:t.customerName??{firstName:Io.empty,lastName:Io.empty},products:{allOptions:GE(e.allProductsList,t.selectedProducts??[]),selectedOptions:t.selectedProducts??[]}},[NUe]:{accountingConnectionCreationMode:t.accountingConnectionCreationMode}}},Qur=r.div`
|
|
95699
|
+
`,{common:Zr,cockpit:{onboarding:Ls}}=U.getLocalizedStrings(),Hur=Zr.no,_ur=Zr.yes,Io=Zr.strings,xwe="onboardingCustomerPage",Vur="companySection",Xp="groupSection",nn="customerSection",NUe="qboConnectionSection",Sx={labelWidth:new L(120,180),largeLabelWidth:new L(120,210,210),extraLargeLabelWidth:new L(240,240,240),buttonWidth:new L(135,135)};function Qcn({localData:e,screenType:t,qboConnectClicked:i,analytics:n,onOnboardingCustomerDataUpdated:a,onCloseClick:l,onSaveClick:d,onViewClick:c,onCompanyDomainBlurred:p,onNavigateToPreOnboarding:u,onQBOConnectClick:h}){const m=lt(),f=je(),x=Sx.labelWidth.value(f),y=Sx.largeLabelWidth.value(f),w=Sx.extraLargeLabelWidth.value(f),b=vr({mode:"all",reValidateMode:"onChange",defaultValues:g.useMemo(()=>Ex(e),[e])}),{emailGroupFetchState:C,newOnboardingCustomerLocalData:k,onboardingCompletedCompanies:E,isOnboardingAllowedForUser:S,fetchState:j,sendInviteFetchState:I,uiState:T,companyView:P,externalConnections:B}=e,[D,F]=g.useState(Io.empty),[Y,q]=g.useState(Io.empty),[Z]=g.useState(Io.empty),[V,H]=g.useState(Io.empty),[N,O]=g.useState(Io.empty),[z,R]=g.useState(!1),[te,G]=g.useState(!1),[W,ee]=g.useState(Ls.customer.completePreOnboardingText),[J,ne]=g.useState(!1),ye=g.useRef(null),me=g.useRef(null),ue=g.useRef(null),{isExistingCustomer:pe,isCustomerOnboardedSuccessfully:xe}=Yur(e),be=pe&&xe?Ls.customer.customerNameExistInManagementText:Ls.customer.customerNameExistInOnboardingText,le=g.useMemo(()=>be.replace("_company-domain_",k.companyEmailDomain??Io.empty),[C.fetchState]),ae=P?.company.companyOnboardingInfo.onboardingInfo?.qboLinked.completed,fe=g.useCallback(()=>{const _e=b.getValues();return _e[nn].realmId!==_e[nn].confirmRealmId?(H(Ls.customer.realmIdWarning),b.trigger(`${nn}.confirmRealmId`),!1):(H(Io.empty),b.clearErrors(`${nn}.confirmRealmId`),!0)},[b]),$e=g.useCallback(()=>{const _e=b.getValues();return _e[nn].entityType.selectedOption?.value=="Subsidiary"&&_e[nn].company.selectedOption==null?(b.setError("customerSection.company",{type:"required"}),!1):(b.clearErrors("customerSection.company"),!0)},[b]),ie=g.useCallback(()=>k.customerName?.firstName&&!k.customerName?.lastName||!k.customerName?.firstName&&k.customerName?.lastName?(b.trigger(`${nn}.customerName`),!1):(k.customerName?.firstName||k.customerName?.lastName)&&!k.email?(b.trigger(`${nn}.email`),!1):(k.customerName?.firstName||k.customerName?.lastName)&&k.email&&k.selectedProducts?.length===0?(O(Ls.customer.productsWarning),b.trigger(`${nn}.products`),!1):!0,[b,k.customerName,k.email,k.selectedProducts]),he=g.useCallback(()=>fe()&&$e()&&ie(),[$e,fe,ie]),Ie=b.handleSubmit(()=>{ee(Ls.customer.completePreOnboardingText),he()&&G(!0)},()=>{he(),console.warn("Onboarding customer form error")}),Fe=b.getValues()[nn].email??Io.empty,Se=(_e=!1)=>{const At={companyDomain:k.companyEmailDomain??Io.empty,primaryContactEmail:Fe},Bt={groupName:k.groupName??Io.empty,groupEmail:k.groupId??Io.empty,groupDescription:k.groupDescription??Io.empty},Ht={firstName:k.customerName?.firstName??Io.empty,lastName:k.customerName?.lastName??Io.empty,customerEmail:Fe,companyName:k.name??Io.empty,entittyType:k.isSubsidiary===!0?Zr.texts.subsidiary:Zr.texts.parent??Io.empty,chargebeeId:k.chargebeeId??Io.empty,products:k.selectedProducts??[],qboRealmId:k.qboRealmId??Io.empty,hubSpotId:k.hubSpotId},Lt={isSendInvite:_e,isInviteAlreadySent:P?.company.companyOnboardingInfo.onboardingInfo?.inviteSent===!0,isZeniManagedQboConnectionSelected:k.accountingConnectionCreationMode==="zeni_user",isCustomerManagedQboConnectionSelected:k.accountingConnectionCreationMode==="customer",qboConnectionStatus:P?.company.companyOnboardingInfo.onboardingInfo?.qboLinked.completed??!1};n?.trackOnboardingSaveOrSendInvite(At,Bt,Ht,Lt)},ze=()=>{const _e={companyEmailDomain:k.companyEmailDomain??Io.empty,primaryContactEmail:Fe},At={groupName:k.groupName??Io.empty,groupEmail:k.groupId??Io.empty,groupDescription:k.groupDescription??Io.empty,isCompanyEmailDomainAvailable:!0};n?.trackOnboardingNewCustomerGroupCreationCheck(_e,At)},Re=()=>{let _e=!0;const At=b.getValues();if(At[Xp].groupEmail!==Io.empty&&At[Xp].groupName===Io.empty)F(Ls.customer.groupNameWarning),b.setError("groupSection.groupName",{type:"required"}),_e=!1;else if(At[Xp].groupName!==Io.empty&&At[Xp].groupEmail===Io.empty)q(Ls.customer.groupEmailWarning),b.setError("groupSection.groupEmail",{type:"required"}),_e=!1;else{const{error:Bt}=b.getFieldState("groupSection.groupName"),{error:Ht}=b.getFieldState("groupSection.groupEmail");(Bt==null||Bt.type==="required")&&(Ht==null||Ht.type==="required")&&(_e=!1,b.clearErrors("groupSection")),F(Io.empty),q(Io.empty)}return _e},tt={onOkClick:()=>{R(!1),b.reset(),l()},onCancelClick:()=>{R(!1)}},Je={onOkClick:()=>{G(!1),d(!0),Se(!0)},onCancelClick:()=>{G(!1)}},Pe=async(_e,At)=>{const Bt={...At};if(_e.includes("groupName")&&At[Xp].groupName!=Io.empty&&(At[Xp].groupName=At[Xp].groupName.charAt(0).toUpperCase()+At[Xp].groupName.slice(1)),(_e.includes("groupName")||_e.includes("groupEmail"))&&Re(),_e.includes("confirmRealmId")&&H(Io.empty),_e.includes("products")&&Ao(k.selectedProducts??[],At[nn].products.selectedOptions)===!1){O(Io.empty);const Ht=Kur(k.selectedProducts??[],At[nn].products.selectedOptions.map(yt=>XGe(yt)).filter(yt=>yt!=null));Bt[nn].products.selectedOptions=Ht;const Lt=GE(e.allProductsList,Ht);b.setValue(`${nn}.products`,{allOptions:Lt,selectedOptions:Ht})}_e.includes("realmId")&&Yt(b.formState.errors,`${nn}.confirmRealmId`)&&b.trigger(`${nn}.confirmRealmId`),a(Bt)},qe=_e=>{const{dirtyFields:At}=b.formState;At.companySection?.companyDomain===!0&&p(_e)},Ae=()=>{Object.keys(b.formState.errors).length===0&&(u?.(),ee(Io.empty))},Oe=()=>{C.fetchState==="Error"?p(k.companyEmailDomain):he()&&Object.keys(b.formState.errors).length===0&&(d(I.fetchState==="Error"),Se())},at=()=>{he()&&Object.keys(b.formState.errors).length===0&&(d(!1),Se())};g.useEffect(()=>{const _e=b.watch((At,{name:Bt})=>{Bt!=null&&At!=null&&va(()=>Pe(Bt,At))});return()=>{_e.unsubscribe()}}),g.useEffect(()=>{k.isCustomerCreationDisabled===!0&&(b.resetField("customerSection",{defaultValue:Ex(e)[nn],keepDirty:!0}),b.clearErrors("customerSection"))},[k.isCustomerCreationDisabled]),g.useEffect(()=>{ne(k.isSubsidiary===!0),k.isSubsidiary!==!0&&b.resetField("customerSection.company",{defaultValue:Ex(e)[nn].company,keepDirty:!0}),b.resetField("customerSection.entityType",{defaultValue:Ex(e)[nn].entityType,keepDirty:!0})},[k.isSubsidiary]),g.useEffect(()=>{C.fetchState==="Completed"&&(b.reset(Ex(e)),pe||ze())},[C.fetchState]),g.useEffect(()=>{T.selectedStep==="STEP_1"?ye.current?.scrollIntoView():T.selectedStep==="STEP_2"?me.current?.scrollIntoView():T.selectedStep==="STEP_3"&&ue.current?.scrollIntoView()},[]),g.useEffect(()=>{const _e=P?.company.companyOnboardingInfo.onboardingInfo?.qboLinked.completed;if(B?.saveConnectionState==="Error"){const At={firstName:k.customerName?.firstName??Io.empty,lastName:k.customerName?.lastName??Io.empty,customerEmail:b.getValues()[nn].email??Io.empty,qboConnectionResponseMessage:Zr.texts.unableToConnectQuickbooksPleaseTryAgain,isSuccess:!1};n?.trackOnboardingZeniManagedQBOConnection(At)}else if(_e??!1){const At={firstName:k.customerName?.firstName??Io.empty,lastName:k.customerName?.lastName??Io.empty,customerEmail:b.getValues()[nn].email??Io.empty,qboConnectionResponseMessage:Zr.texts.congratulationsYouHaveSuccessfullyEstablishedAConnectionWith,isSuccess:!0};n?.trackOnboardingZeniManagedQBOConnection(At)}},[B?.saveConnectionState,P?.company.companyOnboardingInfo.onboardingInfo?.qboLinked.completed]),g.useEffect(()=>{if(k.accountingConnectionCreationMode){const _e=P?.company.companyOnboardingInfo.onboardingInfo?.accountingConnectionCreationMode??Io.empty;if(k.accountingConnectionCreationMode!==_e){const At={firstName:k.customerName?.firstName??Io.empty,lastName:k.customerName?.lastName??Io.empty,customerEmail:b.getValues()[nn].email??Io.empty,isZeniOrCustomer:k.accountingConnectionCreationMode??Io.empty};n?.trackOnboardingQBOConnectionSelected(At)}}},[k.accountingConnectionCreationMode]);const Ne=(_e,At)=>{const{fetchState:Bt}=_e,{isEmailGroupCreated:Ht,selectedProducts:Lt}=At,yt=Bt!=="Completed"&&Ht==null,Gt=Lt==null||Lt.length===0,qt=(Lt?.includes("zeni_checking")===!0||Lt?.includes("zeni_treasury")===!0||Lt?.includes("zeni_cards")===!0||Lt?.includes("zeni_payroll")===!0||Lt?.includes("zeni_cfo")===!0||Lt?.includes("zeni_tax")===!0)&&Lt?.includes("bookkeeping")===!1;return yt||Gt||qt},it=g.useMemo(()=>{const _e=b.formState.isValid,At=k.selectedProducts!=null&&(k.selectedProducts.includes("zeni_payroll")===!0||k.selectedProducts.includes("zeni_cfo")===!0||k.selectedProducts.includes("zeni_tax")===!0),Bt=k.selectedProducts!=null&&(k.selectedProducts.includes("zeni_checking")===!0||k.selectedProducts.includes("zeni_cards")===!0||At)&&k.selectedProducts.includes("bookkeeping")===!1;return _e!==!0||C.fetchState==="In-Progress"||C.fetchState==="Error"||j==="In-Progress"||j==="Error"||S!==!0||k.selectedProducts==null||k.selectedProducts.length===0||k.accountingConnectionCreationMode==null&&!Bt||k.accountingConnectionCreationMode==="zeni_user"&&ae!==!0&&!Bt||C.fetchState==="Completed"&&pe||P?.company.companyOnboardingInfo.onboardingInfo?.inviteAccepted===!0},[C.fetchState,pe,S,j,b.formState.isValid,k.accountingConnectionCreationMode,ae,k.selectedProducts,P?.company.companyOnboardingInfo.onboardingInfo?.inviteAccepted]),mt=g.useMemo(()=>I.fetchState!=="In-Progress"&&I.fetchState!=="Error"&&j!=="In-Progress"&&j!=="Error"&&C.fetchState!=="In-Progress"&&pe===!0,[C.fetchState,pe,j,I.fetchState]);return s.jsxs(s.Fragment,{children:[z===!0?s.jsx(ws,{titleComponent:s.jsx(xs,{children:Zr.confirmationPopup.discardTitle}),descriptionComponent:s.jsx(ys,{children:Zr.confirmationPopup.discardDescription}),primaryButtonText:Zr.confirmationPopup.discard,secondaryButtonText:Zr.cancel,proceedButtonVariant:"destructive",action:tt,style:{background:$.overlayDark}}):null,te===!0?s.jsx(ws,{titleComponent:s.jsx(xs,{style:{paddingLeft:o.sp6,paddingRight:o.sp6},children:Ls.confirmationPopup.title}),descriptionComponent:s.jsx(ys,{children:Ls.confirmationPopup.subTitle}),primaryButtonText:_ur,secondaryButtonText:Hur,action:Je,style:{background:$.overlayDark}}):null,s.jsx(Kj,{title:t==="create"?Zr.texts.newCustomer:Zr.texts.editCustomer,backgroundColor:m.colors.grey5,style:{zIndex:4},onCloseClick:()=>{Object.keys(b.formState.dirtyFields).length>0?R(!0):(b.reset(),l())}}),s.jsxs(Qur,{children:[s.jsx(Uur,{children:Ls.customer.subTitle}),s.jsx(br,{...b,children:s.jsxs("form",{id:`${xwe}_form`,onSubmit:Ie,children:[s.jsx(Rpr,{localData:e,labelWidth:x,onCompanyDomainBlurred:qe,primaryEmailDomainAdditionalLabel:Z,isOnboardingAllowedForUser:S}),mt===!0?s.jsxs(PV,{children:[s.jsxs(TV,{children:[s.jsxs(ywe,{children:[s.jsx(DV,{}),s.jsx(ce,{children:Ls.customer.groupCreationError})]}),s.jsx(Gur,{children:le})]}),s.jsx(Nt,{style:{padding:`${o.sp1} ${o.sp2}`,backgroundColor:m.colors.champion,borderColor:m.colors.champion,color:m.mode==="light"?$n.primary:Tt.primary,height:"30px",width:o.sp7},label:Zr.view,size:"small",onClick:()=>{c(xe?"management":"onboarding")}})]}):null,C.fetchState==="Error"||j==="Error"||I.fetchState==="Error"&&e.error!=null&&e.error?.code!==406?s.jsxs(PV,{children:[s.jsx(TV,{children:s.jsxs(ywe,{children:[s.jsx(DV,{}),s.jsx(Kt,{children:Ls.customer.emailgroupAPIError})]})}),s.jsx(Nt,{style:{padding:`${o.sp1} ${o.sp2}`,backgroundColor:m.colors.champion,borderColor:m.colors.champion,color:m.mode==="light"?$n.primary:Tt.primary},label:Ls.customer.tryAgainText,size:"small",onClick:Oe})]}):null,I.fetchState==="Error"&&e.error!=null&&e.error?.code===406?s.jsxs(PV,{children:[s.jsx(DV,{}),s.jsxs(TV,{children:[s.jsx(Kt,{children:W!==Io.empty?Ls.customer.preOnboardingError:Ls.customer.preOnboardingSaveError}),W!==Io.empty?s.jsx(Nt,{style:{padding:`${o.sp1} ${o.sp2}`,backgroundColor:m.colors.champion,borderColor:m.colors.champion,color:m.mode==="light"?$n.primary:Tt.primary},label:W,size:"small",onClick:Ae}):null]})]}):null,s.jsx(OUe,{groupEmailAdditionalLabel:Y,groupNameAdditionalLabel:D,labelWidth:x,localData:e,ref:ye,sectionId:Xp}),s.jsx(RUe,{localData:e,onboardedCompanies:E.companies,isSubsidiary:J,labelWidth:x,largeLabelWidth:y,extraLargeLabelWidth:w,realmIdAdditionalLabel:V,productsAdditionalLabel:N,ref:me,sectionId:nn,isDisabled:S===!1?"disabled":void 0}),s.jsx(Wur,{children:s.jsx(Eur,{isSectionDisabled:Ne(C,k),sectionId:NUe,isLoading:i===!0||B?.fetchState==="In-Progress"||B?.saveConnectionState==="In-Progress",accountingConnectionCreationMode:e.newOnboardingCustomerLocalData.accountingConnectionCreationMode,onQBOConnectClick:h,isConnected:P?.company.companyOnboardingInfo.onboardingInfo?.qboLinked.completed===!0,isInviteSent:P?.company.companyOnboardingInfo.onboardingInfo?.inviteSent===!0||P?.company.companyOnboardingInfo.onboardingInfo?.inviteAccepted===!0,saveConnectionState:B?.saveConnectionState})})]})})]}),s.jsx(xl,{formId:`${xwe}_form`,primaryBtn:{label:P?.company.companyOnboardingInfo.onboardingInfo?.inviteSent===!0?Zr.texts.resendInvite:Zr.texts.sendInvite,style:{width:Sx.buttonWidth.value(f),display:"flex",alignItems:"center",justifyContent:"center"},isLoading:I.fetchState==="In-Progress",isDisabled:it},cancelBtn:{label:Zr.save,style:{width:Sx.buttonWidth.value(f),display:"flex",alignItems:"center",justifyContent:"center"},isDisabled:!(hw(b.formState.dirtyFields)||e.emailGroupFetchState.fetchState==="Completed"),isLoading:j==="In-Progress"&&i===!1,shouldResetOnCancel:!1,onClick:at,reverseSpinnerColor:!1}})]})}const Ex=e=>{const{newOnboardingCustomerLocalData:t,onboardingCompletedCompanies:i}=e;let n;const a=i.companies.find(l=>l.companyInfo.companyId===t.parentCompanyId);return a!=null&&(n={label:a.companyInfo.name,value:a.companyInfo.companyId}),{[Vur]:{companyDomain:t.companyEmailDomain??Io.empty},[Xp]:{groupName:t.groupName??Io.empty,groupEmail:t.groupId??Io.empty,groupDescription:t.groupDescription??Io.empty},[nn]:{name:t.name??Io.empty,entityType:{allOptions:[{label:Zr.texts.parent,value:Zr.texts.parent},{label:Zr.texts.subsidiary,value:Zr.texts.subsidiary}],selectedOption:t.isSubsidiary===!0?{label:Zr.texts.subsidiary,value:Zr.texts.subsidiary}:{label:Zr.texts.parent,value:Zr.texts.parent}},company:{selectedOption:n,allOptions:i.companies.map(l=>({label:l.companyInfo.name,value:l.companyInfo.companyId}))},realmId:t.qboRealmId??Io.empty,confirmRealmId:t.qboRealmId??Io.empty,chargebeeId:t.chargebeeId??Io.empty,hubSpotId:t.hubSpotId??Io.empty,email:t.email??Io.empty,customerName:t.customerName??{firstName:Io.empty,lastName:Io.empty},products:{allOptions:GE(e.allProductsList,t.selectedProducts??[]),selectedOptions:t.selectedProducts??[]}},[NUe]:{accountingConnectionCreationMode:t.accountingConnectionCreationMode}}},Qur=r.div`
|
|
95674
95700
|
display: flex;
|
|
95675
95701
|
justify-content: flex-start;
|
|
95676
95702
|
height: 100%;
|
|
@@ -95973,7 +95999,7 @@ ${e}`,DJi=e=>g.createElement("svg",{width:38,height:39,viewBox:"0 0 38 39",fill:
|
|
|
95973
95999
|
`,Whr=r(Nr)`
|
|
95974
96000
|
width: ${o.sp10};
|
|
95975
96001
|
height: ${o.sp10};
|
|
95976
|
-
`,{dateFormat:{visual:{MMSlashYYYYFormat:Ghr}},cockpit:{monthEndReport:{insightsNotAvailable:Yhr,agentInsights:{regenerateTitle:Khr,regenerateDescription:qhr,regenerateConfirm:Zhr}}},common:{errorMessage:{somethingWentWrong:Jhr},cancel:Xhr}}=U.getLocalizedStrings(),$we=({message:e,onReload:t})=>s.jsxs(Uhr,{onClick:t,children:[s.jsx(Whr,{}),s.jsx(Qhr,{children:e})]}),
|
|
96002
|
+
`,{dateFormat:{visual:{MMSlashYYYYFormat:Ghr}},cockpit:{monthEndReport:{insightsNotAvailable:Yhr,agentInsights:{regenerateTitle:Khr,regenerateDescription:qhr,regenerateConfirm:Zhr}}},common:{errorMessage:{somethingWentWrong:Jhr},cancel:Xhr}}=U.getLocalizedStrings(),$we=({message:e,onReload:t})=>s.jsxs(Uhr,{onClick:t,children:[s.jsx(Whr,{}),s.jsx(Qhr,{children:e})]}),Ucn=e=>{const{monthEndReportView:t,companyId:i,previewMode:n,onRefresh:a,onNavigateBack:l}=e,{openThread:d,setOpenThread:c}=g.useContext(kr),p=ji().subtract(1,"month").format(Ghr),[u,h]=g.useState(!1),[m,f]=g.useState(!1),[x,y]=g.useState(0),[w,b]=g.useState({hasUnpersistedEdits:!1,isPending:!1}),C=w.isPending,[k,E]=g.useState(!1),S=g.useCallback(()=>{y(Y=>Y+1),a()},[a]),j=g.useCallback(()=>{if(C){E(!0);return}S()},[C,S]);g.useEffect(()=>{k&&!C&&(E(!1),S())},[k,C,S]);const I=()=>{if(t.agentInsightsEditedAt!=null||w.hasUnpersistedEdits){f(!0);return}j()};if(t.fetchState==="Not-Started"||t.fetchState==="In-Progress"||t.companyMonthEndReportTemplatesData.fetchState==="Not-Started"||t.companyMonthEndReportTemplatesData.fetchState==="In-Progress")return s.jsx(T$,{children:s.jsx(Vhr,{children:s.jsx(yo,{size:"ExtraLarge",start:!0})})});if(t.fetchState==="Error"||t.companyMonthEndReportTemplatesData.fetchState==="Error")return s.jsx(T$,{children:s.jsx($we,{onReload:a,message:Jhr})});if(t.html==null)return s.jsx(T$,{children:s.jsx($we,{onReload:a,message:Yhr})});const T={application:"cockpit",companyId:i,entityId:i,tab:"management",isGlobalComment:!1,entityType:"management.monthEndEmail",companyName:t.companyName,url:window.location.href,selectedRange:p},{url:P,...B}=T,D={...B},F=`cockpit_${i}`;return s.jsx(Hd,{id:F,children:s.jsxs(T$,{children:[s.jsx(_Ue,{companyName:t.companyName,threadMetadata:D,onAllThreadsClick:()=>{d!=null&&c(null),h(!0)},onNavigateBack:l,onRefresh:I}),s.jsx(jhr,{...e,allThreadsSectionOpen:u,filterMetaData:D,newThreadMetadata:T,regenerationCount:x,onAgentInsightSaveStateChange:b,onCloseAllThreadsSection:()=>h(!1)},`${n}_${i}_${t.templateData?.insight_month_year??""}`),m?s.jsx(ws,{titleComponent:s.jsx(xs,{children:Khr}),descriptionComponent:s.jsx(ys,{children:qhr}),primaryButtonText:Zhr,secondaryButtonText:Xhr,primaryButtonWidth:168,secondaryButtonWidth:124,action:{onOkClick:()=>{f(!1),j()},onCancelClick:()=>f(!1),onClickAway:()=>f(!1)}}):null]})})},zV=r.div`
|
|
95977
96003
|
display: flex;
|
|
95978
96004
|
justify-content: flex-end;
|
|
95979
96005
|
align-items: center;
|
|
@@ -96096,7 +96122,7 @@ ${e}`,DJi=e=>g.createElement("svg",{width:38,height:39,viewBox:"0 0 38 39",fill:
|
|
|
96096
96122
|
padding-bottom: ${o.sp5};
|
|
96097
96123
|
`,h2r=r(Qo)`
|
|
96098
96124
|
color: ${e=>e.theme.colors.grey1};
|
|
96099
|
-
`,{common:{strings:WG,datePicker:m2r,texts:g2r,errorMessage:{somethingWentWrong:f2r}},dateFormat:GG,cockpit:x2r}=U.getLocalizedStrings(),{slash:kwe}=WG,{visual:{YYYYformat:y2r,MMMformat:w2r}}=GG,b2r=({historicData:e,companyId:t,newThreadMetadata:i,containerRef:n,sortedThreads:a})=>{const{addThread:l,setOpenThread:d}=g.useContext(kr),c=g.useRef(null),[p,u]=g.useState(),[h,m]=g.useState(!1),f="monthEndReportHistoricDataPage",x=_Ve(PE,!1,!1),y=n.current?.getBoundingClientRect(),w=x!=null&&x.coords!=null&&y?{left:x.coords.left-y.left,top:x.coords.top-y.top}:void 0,b=vr({mode:"all",defaultValues:Swe(e),values:Swe(e)}),C=()=>{c.current&&c.current.scrollIntoView({behavior:"smooth"})};g.useEffect(()=>{u(Ibe(e.attachmentFile))},[e.attachmentFile]);const k=g.useCallback(()=>{const E=window.getSelection()?.getRangeAt(0),S=NVe();if(!E||S==null)return;const j={...i,...S,startPath:S.startPath.join(),endPath:S.endPath.join()},I=`${Ir()}${Yo}`,T=`cockpit_${t}`;l(I,{type:"thread",visibility:"public",id:I,roomId:T,createdAt:new Date,updatedAt:new Date,comments:[],metadata:j,resolved:!1}),d(I)},[l,t,i,d]);return s.jsx(br,{...b,children:s.jsx("form",{id:v2r(f),children:s.jsxs(c2r,{children:[s.jsx(FVe,{previewMode:!0,subject:e.subject,sectionId:t6}),s.jsxs(e2r,{id:PE,ref:n,children:[s.jsxs(t2r,{className:"monthEndReportCanvasWrapper",children:[p!=null?s.jsx(o2r,{onClick:C,children:s.jsx(qVe,{loading:!1,fileSizeError:h,setFileSizeError:m})}):null,s.jsx(De,{style:{position:"relative"},dangerouslySetInnerHTML:{__html:VVe(e.concatenatedHtml)}}),p!=null?s.jsx(RVe,{ref:c,fileName:p.name,fileSize:EBe(p.data),isRemovable:!1}):null]}),w?s.jsx(KVe,{style:{zIndex:15},coords:w,alignment:x.alignment,onClick:k}):null,s.jsx(YVe,{canvasContainerRef:n,sortedThreads:a,editorMode:!1})]})]})})})},Ncn=e=>{const{monthEndReportHistoricData:t,reportSentDate:i,onRefresh:n,onNavigateBack:a,onDateChange:l}=e,d=lt(),[c,p]=g.useState(!1),[u,h]=g.useState(),m=g.useRef(null),[f,x]=g.useState(0),[y,w]=g.useState(0),b=TVe(c,250),{data:C,companyId:k,companyName:E,firstMonthOfFY:S}=t,j=XOe(i.format(GG.visual.MMMMFormat)),I=Number(i.format(y2r)),T=S>j?I-1:I;g.useEffect(()=>{const ue=j>0?j-1:12;h(`${Fre(ue.toString(),2,"0")}${kwe}${I}`)},[]);const P={application:"cockpit",companyId:k,entityId:k,tab:"management",isGlobalComment:!1,entityType:"management.monthEndEmail",companyName:E,url:window.location.href,selectedRange:u},{url:B,...D}=P,F={...D},Y=t.fetchState==="Not-Started"||t.fetchState==="In-Progress",{threadsRefs:q,sortedThreads:Z,threadsPositions:V,observer:H,unresolvedThreadsMap:N,handleRemoveFloatingThread:O}=HVe(F,m,!1,Y),z=g.useRef(null),[R,te]=g.useState(0),G=g.useCallback(()=>{const ue=q.current?.[q.current?.length-1];te(window.scrollY+(ue?.getBoundingClientRect()?.bottom??0))},[q]),W=g.useCallback(()=>{c?w(Math.min((window.innerWidth-Pu)/2,window.innerWidth-Pu-lv-v[4])):x(Math.min((window.innerWidth-Pu)/2,window.innerWidth-Pu-z4))},[c]);g.useEffect(()=>{W()},[c,W]),g.useEffect(()=>(window.addEventListener("resize",W),()=>{window.removeEventListener("resize",W)}),[W]),g.useEffect(()=>(window.addEventListener("scroll",G),()=>window.removeEventListener("scroll",G)),[G]);const{openThread:ee,setOpenThread:J}=g.useContext(kr);g.useEffect(()=>{ee!=null&&c&&p(!1)},[c,ee,p]);const ne=LHi(S,t.historicReportSentDates),ye=g.useCallback((ue,pe)=>{const xe=S>ue?pe+1:pe;l(Y6(xe,ue-1));const be=ue>0?ue-1:12;h(`${Fre(be.toString(),2,"0")}${kwe}${xe}`)},[S,l]);if(t.fetchState==="Not-Started"||t.fetchState==="In-Progress")return s.jsxs(FV,{children:[s.jsx(zV,{children:s.jsx(RV,{onClick:a})}),s.jsx(t9i,{fetchState:t.fetchState,styles:{margin:o.sp0}})]});if(t.fetchState==="Error")return s.jsxs(FV,{children:[s.jsx(zV,{children:s.jsx(RV,{onClick:a})}),s.jsx(Q8e,{onReload:n,message:f2r})]});if(C?.concatenatedHtml==null)return s.jsxs(FV,{children:[s.jsx(zV,{children:s.jsx(RV,{onClick:a})}),s.jsx(Q8e,{onReload:n,message:x2r.monthEndReport.insightsNotAvailable})]});const me=`cockpit_${k}`;return s.jsx(Hd,{id:me,children:s.jsxs(i2r,{children:[s.jsx(_Ue,{companyName:t.companyName,onNavigateBack:a,monthCalendar:{monthAndYears:ne,label:`${i.format(w2r)} ${T}`,selectedMonth:{month:j,year:T},onChange:ye},threadMetadata:F,onAllThreadsClick:()=>{ee!=null&&J(null),p(!0)}}),s.jsxs(l2r,{ref:z,style:R>0?{height:R}:void 0,children:[s.jsx(r2r,{availableWidth:c?y:f}),s.jsxs(d2r,{children:[s.jsx(b2r,{historicData:C,newThreadMetadata:P,companyId:k,sortedThreads:Z,containerRef:m}),s.jsxs(u2r,{children:[s.jsx(GQe,{user:t.reportLastSentByUser}),s.jsx(p2r,{}),s.jsxs(h2r,{children:[m2r.businessDay,WG.space,t.data?.reportSentDate!=null?obe(t.data.reportSentDate):null,":",WG.space,t.data?.reportSentDate?.format(GG.visual.MMMDFormat)]})]})]}),b?s.jsx(s2r,{allThreadsSectionOpen:c,children:s.jsx(Oq,{autoExpand:!0,autoFocus:!1,style:{borderLeft:`1px solid ${d.colors.grey3}`,boxShadow:`${o.sp0} 1px 2px ${o.sp0} ${$.boxShadowElevation}`},drawerSectionStyle:{width:`calc(100% - ${o.sp5} - ${o.sp5})`,backgroundColor:d.colors.background},threadsContainerStyle:{paddingBottom:o.sp5},collapsibleThreadStyle:{width:`calc(100% - ${o.sp4})`},allowComposer:!1,drawerTitle:g2r.comments,filter:F,textOverrides:{},preventResolvedThreadClick:!0,onThreadClick:(ue,pe)=>{J(pe);const xe=Z.findIndex(be=>be[0]===pe);p(!1),q.current?.[xe]?.scrollIntoView({behavior:"smooth",block:"center",inline:"center"})},onCloseAllThreadsDrawer:()=>p(!1)})}):s.jsx(QVe,{observer:H,canvasContainerRef:m,sortedThreads:Z,threadsPositions:V,threadsRefs:q,unresolvedThreadsMap:N,editorMode:!1,style:{minWidth:`${z4}px`,position:"relative",height:"fit-content",width:"auto",top:`${m.current?.offsetTop}px`},handleRemoveFloatingThread:O})]})]})})},Swe=e=>({[t6]:{recipientEmailList:e.recipientEmailList??[],subject:e.subject??""}}),v2r=e=>`${e}_form`,C2r=e=>g.createElement("svg",{width:98,height:121,viewBox:"0 0 98 121",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e},g.createElement("path",{d:"M49.2796 0.921875C32.9744 0.921875 19.7096 14.1944 19.7096 30.5087C19.7125 35.7639 21.1132 40.9238 23.7681 45.459C26.423 49.9943 30.2365 53.7418 34.8175 56.317C34.4083 56.561 33.9588 56.7299 33.4901 56.8156C26.6518 57.6437 22.4965 58.8342 19.5952 60.7958C16.8429 62.6568 15.2375 65.1511 14.0552 69.4056C14.0509 69.4209 14.0466 69.4363 14.0431 69.4518L10.0918 85.7362C9.51826 88.1132 9.82738 90.6176 10.9617 92.7837C12.0961 94.9499 13.9785 96.6304 16.2589 97.5129L20.1569 99.0144H10.7796C7.99797 99.0144 5.33033 100.119 3.36345 102.086C1.39658 104.053 0.291567 106.721 0.291504 109.502V110.435C0.291815 113.216 1.39693 115.884 3.36378 117.85C5.33063 119.817 7.99813 120.922 10.7796 120.922H53.2747C53.6551 120.922 54.0199 120.771 54.2889 120.502C54.5579 120.233 54.709 119.868 54.709 119.488C54.709 119.107 54.5579 118.742 54.2889 118.473C54.0199 118.204 53.6551 118.053 53.2747 118.053H34.0289C38.6739 116.234 43.0832 113.862 47.1618 110.989C59.9371 101.998 69.4844 101.883 69.5755 101.883H86.6115C88.6324 101.883 90.5704 102.686 91.9994 104.115C93.4283 105.544 94.2311 107.482 94.2311 109.502V110.435C94.2308 112.455 93.4279 114.393 91.999 115.822C90.5701 117.251 88.6322 118.053 86.6115 118.053H62.8365C62.4561 118.053 62.0913 118.204 61.8223 118.473C61.5533 118.742 61.4022 119.107 61.4022 119.488C61.4022 119.868 61.5533 120.233 61.8223 120.502C62.0913 120.771 62.4561 120.922 62.8365 120.922H86.6115C89.3932 120.922 92.0609 119.817 94.0278 117.85C95.9947 115.883 97.0996 113.215 97.0996 110.433V109.501C97.0996 106.72 95.9947 104.052 94.0278 102.085C92.0609 100.118 89.3932 99.013 86.6115 99.013H77.2552L81.1289 97.5124C83.4101 96.6305 85.2933 94.95 86.4283 92.7836C87.5633 90.6172 87.8728 88.1123 87.2993 85.7348L83.3471 69.4504C83.3435 69.4349 83.3393 69.42 83.335 69.4047C81.0779 61.2834 76.7211 58.4595 63.9108 56.8156C63.6617 56.7812 63.4178 56.7159 63.1848 56.6214C67.9202 54.1003 71.88 50.3378 74.6396 45.7373C77.3993 41.1368 78.8546 35.872 78.8496 30.5073C78.8496 14.1942 65.5848 0.921875 49.2796 0.921875ZM50.0808 3.84176C56.084 4.02211 61.8511 6.22111 66.4504 10.0835C71.0497 13.9459 74.2125 19.2461 75.4278 25.1278C76.6431 31.0094 75.84 37.1291 73.1483 42.498C70.4565 47.867 66.0332 52.1716 60.5931 54.7165C59.1024 53.1795 57.8049 51.1354 57.3184 49.7456C58.4778 48.8954 59.4906 47.8615 60.3167 46.6848C60.9625 46.9809 61.6621 47.1419 62.3724 47.1577C62.8095 47.1603 63.2432 47.0811 63.6512 46.9243C64.5464 46.5762 65.7044 45.6681 66.1373 43.3181C66.2624 42.9869 66.4272 42.6721 66.628 42.3806L66.7279 42.2148C68.7825 38.8099 69.2671 36.263 68.2103 34.43C67.7877 33.7064 67.1417 33.1394 66.3694 32.8142C66.4922 32.3725 66.5552 31.9163 66.5566 31.4579V29.7934C66.5566 24.4319 64.183 20.499 58.861 17.0401C58.612 16.8783 58.3989 16.667 58.235 16.4194C58.071 16.1718 57.9598 15.8931 57.9081 15.6007C57.125 11.0899 54.1033 8.50358 49.6158 8.50358H49.613C42.7338 8.50525 41.4374 13.4875 41.1983 15.6301C41.1628 15.9531 41.0576 16.2647 40.8901 16.5432C40.7227 16.8217 40.4968 17.0607 40.2282 17.2436C36.7881 19.5877 32.8393 23.1325 32.8393 29.7934V31.4579C32.8389 31.9742 32.9165 32.4876 33.0695 32.9808C32.4212 33.2864 31.8789 33.7785 31.5119 34.3941C30.4489 36.1843 30.9504 38.7427 33.0456 42.2153L33.133 42.36C33.3398 42.6607 33.5094 42.9854 33.6381 43.3269C33.9878 45.1621 34.9709 46.0635 35.7344 46.4966C36.4514 46.8873 37.2576 47.0851 38.074 47.0704C38.4264 47.0695 38.7782 47.0401 39.1259 46.9826C39.7172 47.7756 40.3958 48.4996 41.1489 49.141C40.3987 51.1167 38.8989 53.0103 37.368 54.4238C32.9251 52.2043 29.188 48.7913 26.5758 44.5673C23.9635 40.3432 22.5793 35.4752 22.5781 30.5087C22.5811 26.9366 23.3008 23.4015 24.6945 20.1126C26.0883 16.8237 28.1278 13.8479 30.6922 11.3613C33.2567 8.87477 36.294 6.92806 39.6244 5.63643C42.9547 4.34481 46.5104 3.73454 50.0808 3.84176V3.84176ZM49.6125 11.3716H49.6148C52.6985 11.3716 54.5375 12.9592 55.0811 16.0909C55.2008 16.7719 55.4592 17.4211 55.8404 17.998C56.2216 18.575 56.7174 19.0673 57.2969 19.4445C61.7759 22.3556 63.6871 25.4502 63.6871 29.793V31.4574C63.6872 31.8279 63.5967 32.1929 63.4235 32.5204C63.2502 32.8479 62.9995 33.1281 62.6931 33.3366V30.1506C62.6908 29.0631 62.4335 27.9912 61.9419 27.0212C61.4503 26.0511 60.7381 25.2098 59.8624 24.5648C57.1677 22.6285 53.7984 24.3061 53.6562 24.3785C53.605 24.4045 53.5554 24.4335 53.5077 24.4654C51.1056 26.0768 48.8478 26.0308 45.9671 24.3085C44.5197 23.32 41.5837 23.1611 39.9541 24.4266C38.9025 25.1029 38.0381 26.0333 37.4408 27.1317C36.8435 28.2302 36.5325 29.4614 36.5365 30.7118V33.2124C36.2772 32.9993 36.0684 32.7314 35.925 32.428C35.7816 32.1245 35.7073 31.793 35.7073 31.4574V29.793C35.7073 25.5322 37.4846 22.5834 41.8426 19.614C42.4535 19.1982 42.9671 18.6551 43.348 18.0219C43.7289 17.3888 43.9681 16.6806 44.0491 15.9462C44.3864 12.9103 46.258 11.3724 49.6125 11.3716ZM42.9781 26.3894C43.5413 26.3894 44.1076 26.5022 44.3521 26.6774C44.3832 26.6999 44.4156 26.7216 44.4478 26.7414C48.2475 29.0291 51.7046 29.0839 55.0125 26.9086C55.356 26.7553 57.0461 26.072 58.1756 26.8833C58.6864 27.2611 59.1017 27.7533 59.3881 28.3204C59.6746 28.8875 59.8242 29.5138 59.8251 30.1492V39.1638C59.8346 40.5106 59.5775 41.846 59.0687 43.0931C58.5599 44.3401 57.8093 45.4742 56.8603 46.4299C55.9113 47.3856 54.7826 48.1442 53.5392 48.6618C52.2957 49.1794 50.9622 49.4459 49.6153 49.4459C48.2684 49.4459 46.9349 49.1794 45.6914 48.6618C44.448 48.1442 43.3193 47.3856 42.3703 46.4299C41.4213 45.4742 40.6707 44.3401 40.1619 43.0931C39.6531 41.846 39.396 40.5106 39.4055 39.1638L39.4051 30.7118C39.4026 29.9319 39.5988 29.1642 39.9752 28.4812C40.3516 27.7981 40.8958 27.2222 41.5564 26.8077C41.6082 26.7751 41.6578 26.7393 41.7049 26.7003C41.9698 26.4814 42.4723 26.3894 42.9781 26.3894ZM64.8091 35.3101C64.9906 35.3368 65.165 35.3995 65.322 35.4944C65.4791 35.5893 65.6156 35.7146 65.7237 35.8629C65.8941 36.1581 66.2926 37.3823 64.2707 40.7329L64.1755 40.8922C63.8002 41.5108 63.4455 42.0954 63.316 42.798C63.1702 43.5909 62.9076 44.1338 62.6138 44.2495C62.3092 44.316 61.9912 44.2814 61.708 44.151C62.3602 42.5697 62.6953 40.8757 62.6941 39.1652V36.4316C63.4779 36.2303 64.2027 35.8459 64.8091 35.3101V35.3101ZM34.7204 35.4301C35.2551 35.8691 35.8732 36.1952 36.5375 36.3886V39.1652C36.536 40.8714 36.8691 42.5613 37.5179 44.1393C37.3892 44.1108 37.2652 44.0643 37.1495 44.0011C37.0209 43.9282 36.63 43.7063 36.4562 42.7896C36.3224 42.087 35.9653 41.4972 35.5869 40.873L35.5019 40.7329C33.8673 38.0236 33.6415 36.4418 33.9752 35.8652C34.0639 35.7464 34.1755 35.6466 34.3035 35.5719C34.4315 35.4971 34.5733 35.4489 34.7204 35.4301ZM43.572 50.7798C45.2964 51.6836 47.2015 52.1892 49.1472 52.2594C51.0929 52.3295 53.0295 51.9624 54.8145 51.185C55.503 52.7783 56.4174 54.2641 57.5294 55.5966C55.8184 62.7256 51.9726 67.8702 46.0773 70.8823C43.7618 72.0558 41.27 72.8428 38.7005 73.2121V57.0594C40.6315 55.4367 42.498 53.2058 43.572 50.7798ZM59.8769 57.9292C60.5403 58.4659 61.2737 58.9097 62.0568 59.2486C59.9126 69.1211 55.1295 77.1108 47.8239 83.0068C45.0554 85.2523 41.984 87.0961 38.7005 88.4838V84.0797C41.0671 83.8122 45.8154 82.543 51.2503 77.062C51.383 76.9283 51.4881 76.7698 51.5595 76.5954C51.6309 76.4211 51.6673 76.2344 51.6666 76.0461C51.6658 75.8577 51.628 75.6713 51.5552 75.4975C51.4824 75.3238 51.3761 75.1661 51.2424 75.0334C50.9723 74.7656 50.6069 74.616 50.2266 74.6176C49.8462 74.6192 49.4821 74.7718 49.2143 75.0418C44.594 79.7008 40.6461 80.8889 38.7005 81.1832V76.1086C41.683 75.7301 44.5792 74.8464 47.265 73.4955C51.6634 71.2764 57.241 66.7984 59.8769 57.9292ZM35.8339 58.9941V91.0545L33.4518 89.7005V80.5235C33.4518 80.1431 33.3007 79.7783 33.0317 79.5093C32.7628 79.2403 32.398 79.0892 32.0176 79.0892C31.6372 79.0892 31.2724 79.2403 31.0034 79.5093C30.7344 79.7783 30.5833 80.1431 30.5833 80.5235V88.0716L27.1783 86.1354L26.7446 60.8925C27.4993 60.7008 28.3155 60.524 29.199 60.3588L29.1995 60.3593V69.4906C29.1995 69.871 29.3506 70.2358 29.6196 70.5047C29.8885 70.7737 30.2533 70.9248 30.6337 70.9248C31.0141 70.9248 31.3789 70.7737 31.6479 70.5047C31.9169 70.2358 32.068 69.871 32.068 69.4906V59.8938C32.635 59.8141 33.2247 59.7373 33.837 59.6632C34.5352 59.5528 35.2101 59.3267 35.8339 58.9941V58.9941ZM64.8642 59.841C66.498 60.0748 67.9475 60.3316 69.2384 60.6147C69.0142 63.3677 67.9385 70.5555 62.8514 75.4279C62.7154 75.5582 62.6063 75.714 62.5305 75.8864C62.4546 76.0589 62.4135 76.2446 62.4094 76.4329C62.4054 76.6212 62.4384 76.8085 62.5067 76.9841C62.575 77.1596 62.6772 77.32 62.8075 77.4561C62.9378 77.5921 63.0936 77.7012 63.2661 77.777C63.4385 77.8528 63.6242 77.894 63.8125 77.898C64.0008 77.9021 64.1881 77.8691 64.3637 77.8008C64.5392 77.7324 64.6996 77.6302 64.8357 77.4999C70.3593 72.2111 71.7222 64.7855 72.0583 61.3505C73.3289 61.7263 74.5513 62.2488 75.701 62.9075C75.6503 65.9403 74.7925 77.8281 64.76 84.4532C64.5999 84.5557 64.4618 84.689 64.3537 84.8453C64.2455 85.0016 64.1696 85.1779 64.1301 85.3639C64.0907 85.5498 64.0887 85.7418 64.1241 85.9285C64.1595 86.1153 64.2317 86.2931 64.3365 86.4517C64.4413 86.6103 64.5765 86.7465 64.7344 86.8524C64.8923 86.9583 65.0696 87.0317 65.2561 87.0685C65.4426 87.1052 65.6346 87.1045 65.8208 87.0664C66.007 87.0283 66.1838 86.9535 66.3409 86.8465C71.6878 83.3153 75.4975 77.9065 77.3575 71.2059C77.8907 69.2799 78.2534 67.3108 78.4416 65.3213C79.4455 66.6635 80.0371 68.2544 80.5654 70.1498L84.512 86.4113C84.9225 88.1121 84.7011 89.904 83.8891 91.4537C83.077 93.0034 81.7296 94.2053 80.0976 94.8358L69.314 99.013H62.5825C62.5992 98.5058 62.4787 98.0035 62.2337 97.5591C61.7499 96.6821 61.1164 95.8965 60.362 95.2377L62.8458 93.7904C65.7686 95.2672 69.0004 96.0285 72.275 96.0114C72.6684 96.0114 73.0714 96.0007 73.4819 95.9777C73.6716 95.9697 73.8579 95.924 74.0299 95.8434C74.2018 95.7628 74.3561 95.6488 74.4837 95.5081C74.6112 95.3674 74.7096 95.2027 74.773 95.0237C74.8364 94.8446 74.8636 94.6548 74.8531 94.4652C74.8426 94.2755 74.7945 94.0899 74.7116 93.919C74.6287 93.7481 74.5127 93.5953 74.3703 93.4696C74.228 93.3439 74.062 93.2477 73.8822 93.1867C73.7023 93.1256 73.5121 93.1009 73.3227 93.1139C70.8018 93.2547 68.2788 92.8773 65.9095 92.005L74.692 86.8875C75.0183 86.6948 75.2549 86.3808 75.3504 86.0141C75.4459 85.6474 75.3924 85.2578 75.2015 84.9304C75.0107 84.6031 74.6981 84.3645 74.332 84.2669C73.9659 84.1693 73.576 84.2205 73.2475 84.4093L57.5066 93.5817C56.1863 93.1236 54.7739 92.9966 53.3931 93.2117C52.0124 93.4269 50.7055 93.9776 49.5873 94.8157L48.6643 95.5001C48.5304 95.4205 48.3911 95.3438 48.2422 95.2723C47.9751 95.1448 47.7037 95.0231 47.428 94.9067C56.5064 90.843 59.3085 85.1014 59.4385 84.8249C59.595 84.4822 59.6103 84.0917 59.4813 83.7378C59.3522 83.3838 59.0891 83.0949 58.7488 82.9334C58.4084 82.7719 58.0182 82.7507 57.6624 82.8745C57.3066 82.9984 57.0138 83.2572 56.8473 83.5951C56.8392 83.6116 56.0169 85.2804 53.8191 87.3596C51.8123 89.2583 48.215 91.8914 42.4529 93.732C41.8642 93.7075 41.2745 93.7357 40.6908 93.8161L38.7005 92.6844V91.5671C42.6145 90.0729 46.2659 87.9655 49.5177 85.324C54.9887 80.9385 62.0006 72.9935 64.8642 59.841ZM23.8891 61.7828L24.2795 84.4873L24.2048 84.4481C23.8664 84.265 23.4693 84.2235 23.1004 84.3327C22.7315 84.4419 22.4209 84.6929 22.2367 85.0306C22.0525 85.3684 22.0098 85.7654 22.1178 86.1347C22.2258 86.5039 22.4758 86.8153 22.813 87.0005L31.3032 91.7814C31.3173 91.7895 31.3311 91.7978 31.3457 91.8052L37.2705 95.1733C36.4189 95.8053 35.7066 96.6058 35.1779 97.525C35.1707 97.5369 35.1643 97.549 35.1574 97.5614C34.9113 98.0057 34.7871 98.5071 34.7974 99.0148H28.1392L17.2893 94.8353C15.6584 94.2042 14.3121 93.0023 13.501 91.453C12.6898 89.9038 12.469 88.1126 12.8796 86.4127L16.8257 70.1512C17.9834 65.9983 19.5804 63.4623 23.8891 61.7828ZM54.4854 95.989C55.5433 95.9455 56.5925 96.1967 57.5161 96.7145C58.4397 97.2322 59.2014 97.9963 59.7163 98.9214C59.7134 98.952 59.6656 99.0144 59.6379 99.0144H50.5122C50.5835 98.5926 50.5633 98.1605 50.4529 97.7472L51.3003 97.1193C52.2238 96.4302 53.334 96.0362 54.4854 95.989ZM41.9412 96.5926C42.1716 96.5887 42.4018 96.5962 42.6307 96.6127H42.6457H42.6471C44.1604 96.7679 45.6344 97.1896 47.0008 97.8584C47.1767 97.9369 47.3382 98.0442 47.4788 98.1758C47.5934 98.2908 47.721 98.4521 47.6763 98.5689C47.5938 98.7032 47.4786 98.8144 47.3414 98.892C47.2042 98.9697 47.0496 99.0113 46.892 99.013H37.6776V98.9705L37.6706 98.9439C38.7185 97.1942 40.3283 96.6203 41.9412 96.5926ZM10.7796 101.883H57.7358C53.4157 103.661 49.3139 105.93 45.5109 108.643C34.377 116.48 24.2433 117.936 23.334 118.053H10.7796C9.7789 118.053 8.78805 117.856 7.86358 117.473C6.93911 117.09 6.09912 116.529 5.39157 115.821C4.68403 115.114 4.12279 114.274 3.7399 113.349C3.35701 112.425 3.15997 111.434 3.16003 110.433V109.502C3.16003 107.482 3.9628 105.544 5.39174 104.115C6.82067 102.686 8.75873 101.883 10.7796 101.883V101.883ZM9.70899 105.504C9.3286 105.504 8.96379 105.655 8.69481 105.924C8.42584 106.193 8.27473 106.557 8.27473 106.938C8.27473 107.318 8.42584 107.683 8.69481 107.952C8.96379 108.221 9.3286 108.372 9.70899 108.372H10.3542C10.7346 108.372 11.0994 108.221 11.3684 107.952C11.6374 107.683 11.7885 107.318 11.7885 106.938C11.7885 106.557 11.6374 106.193 11.3684 105.924C11.0994 105.655 10.7346 105.504 10.3542 105.504H9.70899ZM14.982 105.504C14.6016 105.504 14.2368 105.655 13.9678 105.924C13.6988 106.193 13.5477 106.557 13.5477 106.938C13.5477 107.318 13.6988 107.683 13.9678 107.952C14.2368 108.221 14.6016 108.372 14.982 108.372H33.3192C33.6996 108.372 34.0644 108.221 34.3334 107.952C34.6024 107.683 34.7535 107.318 34.7535 106.938C34.7535 106.557 34.6024 106.193 34.3334 105.924C34.0644 105.655 33.6996 105.504 33.3192 105.504H14.982Z",fill:"#D4D8DD"})),{cockpit:{review:{reachedZeni:A2r}}}=U.getLocalizedStrings(),$2r=r.div`
|
|
96125
|
+
`,{common:{strings:WG,datePicker:m2r,texts:g2r,errorMessage:{somethingWentWrong:f2r}},dateFormat:GG,cockpit:x2r}=U.getLocalizedStrings(),{slash:kwe}=WG,{visual:{YYYYformat:y2r,MMMformat:w2r}}=GG,b2r=({historicData:e,companyId:t,newThreadMetadata:i,containerRef:n,sortedThreads:a})=>{const{addThread:l,setOpenThread:d}=g.useContext(kr),c=g.useRef(null),[p,u]=g.useState(),[h,m]=g.useState(!1),f="monthEndReportHistoricDataPage",x=_Ve(PE,!1,!1),y=n.current?.getBoundingClientRect(),w=x!=null&&x.coords!=null&&y?{left:x.coords.left-y.left,top:x.coords.top-y.top}:void 0,b=vr({mode:"all",defaultValues:Swe(e),values:Swe(e)}),C=()=>{c.current&&c.current.scrollIntoView({behavior:"smooth"})};g.useEffect(()=>{u(Ibe(e.attachmentFile))},[e.attachmentFile]);const k=g.useCallback(()=>{const E=window.getSelection()?.getRangeAt(0),S=NVe();if(!E||S==null)return;const j={...i,...S,startPath:S.startPath.join(),endPath:S.endPath.join()},I=`${Ir()}${Yo}`,T=`cockpit_${t}`;l(I,{type:"thread",visibility:"public",id:I,roomId:T,createdAt:new Date,updatedAt:new Date,comments:[],metadata:j,resolved:!1}),d(I)},[l,t,i,d]);return s.jsx(br,{...b,children:s.jsx("form",{id:v2r(f),children:s.jsxs(c2r,{children:[s.jsx(FVe,{previewMode:!0,subject:e.subject,sectionId:t6}),s.jsxs(e2r,{id:PE,ref:n,children:[s.jsxs(t2r,{className:"monthEndReportCanvasWrapper",children:[p!=null?s.jsx(o2r,{onClick:C,children:s.jsx(qVe,{loading:!1,fileSizeError:h,setFileSizeError:m})}):null,s.jsx(De,{style:{position:"relative"},dangerouslySetInnerHTML:{__html:VVe(e.concatenatedHtml)}}),p!=null?s.jsx(RVe,{ref:c,fileName:p.name,fileSize:EBe(p.data),isRemovable:!1}):null]}),w?s.jsx(KVe,{style:{zIndex:15},coords:w,alignment:x.alignment,onClick:k}):null,s.jsx(YVe,{canvasContainerRef:n,sortedThreads:a,editorMode:!1})]})]})})})},Wcn=e=>{const{monthEndReportHistoricData:t,reportSentDate:i,onRefresh:n,onNavigateBack:a,onDateChange:l}=e,d=lt(),[c,p]=g.useState(!1),[u,h]=g.useState(),m=g.useRef(null),[f,x]=g.useState(0),[y,w]=g.useState(0),b=TVe(c,250),{data:C,companyId:k,companyName:E,firstMonthOfFY:S}=t,j=XOe(i.format(GG.visual.MMMMFormat)),I=Number(i.format(y2r)),T=S>j?I-1:I;g.useEffect(()=>{const ue=j>0?j-1:12;h(`${Fre(ue.toString(),2,"0")}${kwe}${I}`)},[]);const P={application:"cockpit",companyId:k,entityId:k,tab:"management",isGlobalComment:!1,entityType:"management.monthEndEmail",companyName:E,url:window.location.href,selectedRange:u},{url:B,...D}=P,F={...D},Y=t.fetchState==="Not-Started"||t.fetchState==="In-Progress",{threadsRefs:q,sortedThreads:Z,threadsPositions:V,observer:H,unresolvedThreadsMap:N,handleRemoveFloatingThread:O}=HVe(F,m,!1,Y),z=g.useRef(null),[R,te]=g.useState(0),G=g.useCallback(()=>{const ue=q.current?.[q.current?.length-1];te(window.scrollY+(ue?.getBoundingClientRect()?.bottom??0))},[q]),W=g.useCallback(()=>{c?w(Math.min((window.innerWidth-Pu)/2,window.innerWidth-Pu-lv-v[4])):x(Math.min((window.innerWidth-Pu)/2,window.innerWidth-Pu-z4))},[c]);g.useEffect(()=>{W()},[c,W]),g.useEffect(()=>(window.addEventListener("resize",W),()=>{window.removeEventListener("resize",W)}),[W]),g.useEffect(()=>(window.addEventListener("scroll",G),()=>window.removeEventListener("scroll",G)),[G]);const{openThread:ee,setOpenThread:J}=g.useContext(kr);g.useEffect(()=>{ee!=null&&c&&p(!1)},[c,ee,p]);const ne=LHi(S,t.historicReportSentDates),ye=g.useCallback((ue,pe)=>{const xe=S>ue?pe+1:pe;l(Y6(xe,ue-1));const be=ue>0?ue-1:12;h(`${Fre(be.toString(),2,"0")}${kwe}${xe}`)},[S,l]);if(t.fetchState==="Not-Started"||t.fetchState==="In-Progress")return s.jsxs(FV,{children:[s.jsx(zV,{children:s.jsx(RV,{onClick:a})}),s.jsx(t9i,{fetchState:t.fetchState,styles:{margin:o.sp0}})]});if(t.fetchState==="Error")return s.jsxs(FV,{children:[s.jsx(zV,{children:s.jsx(RV,{onClick:a})}),s.jsx(Q8e,{onReload:n,message:f2r})]});if(C?.concatenatedHtml==null)return s.jsxs(FV,{children:[s.jsx(zV,{children:s.jsx(RV,{onClick:a})}),s.jsx(Q8e,{onReload:n,message:x2r.monthEndReport.insightsNotAvailable})]});const me=`cockpit_${k}`;return s.jsx(Hd,{id:me,children:s.jsxs(i2r,{children:[s.jsx(_Ue,{companyName:t.companyName,onNavigateBack:a,monthCalendar:{monthAndYears:ne,label:`${i.format(w2r)} ${T}`,selectedMonth:{month:j,year:T},onChange:ye},threadMetadata:F,onAllThreadsClick:()=>{ee!=null&&J(null),p(!0)}}),s.jsxs(l2r,{ref:z,style:R>0?{height:R}:void 0,children:[s.jsx(r2r,{availableWidth:c?y:f}),s.jsxs(d2r,{children:[s.jsx(b2r,{historicData:C,newThreadMetadata:P,companyId:k,sortedThreads:Z,containerRef:m}),s.jsxs(u2r,{children:[s.jsx(GQe,{user:t.reportLastSentByUser}),s.jsx(p2r,{}),s.jsxs(h2r,{children:[m2r.businessDay,WG.space,t.data?.reportSentDate!=null?obe(t.data.reportSentDate):null,":",WG.space,t.data?.reportSentDate?.format(GG.visual.MMMDFormat)]})]})]}),b?s.jsx(s2r,{allThreadsSectionOpen:c,children:s.jsx(Oq,{autoExpand:!0,autoFocus:!1,style:{borderLeft:`1px solid ${d.colors.grey3}`,boxShadow:`${o.sp0} 1px 2px ${o.sp0} ${$.boxShadowElevation}`},drawerSectionStyle:{width:`calc(100% - ${o.sp5} - ${o.sp5})`,backgroundColor:d.colors.background},threadsContainerStyle:{paddingBottom:o.sp5},collapsibleThreadStyle:{width:`calc(100% - ${o.sp4})`},allowComposer:!1,drawerTitle:g2r.comments,filter:F,textOverrides:{},preventResolvedThreadClick:!0,onThreadClick:(ue,pe)=>{J(pe);const xe=Z.findIndex(be=>be[0]===pe);p(!1),q.current?.[xe]?.scrollIntoView({behavior:"smooth",block:"center",inline:"center"})},onCloseAllThreadsDrawer:()=>p(!1)})}):s.jsx(QVe,{observer:H,canvasContainerRef:m,sortedThreads:Z,threadsPositions:V,threadsRefs:q,unresolvedThreadsMap:N,editorMode:!1,style:{minWidth:`${z4}px`,position:"relative",height:"fit-content",width:"auto",top:`${m.current?.offsetTop}px`},handleRemoveFloatingThread:O})]})]})})},Swe=e=>({[t6]:{recipientEmailList:e.recipientEmailList??[],subject:e.subject??""}}),v2r=e=>`${e}_form`,C2r=e=>g.createElement("svg",{width:98,height:121,viewBox:"0 0 98 121",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e},g.createElement("path",{d:"M49.2796 0.921875C32.9744 0.921875 19.7096 14.1944 19.7096 30.5087C19.7125 35.7639 21.1132 40.9238 23.7681 45.459C26.423 49.9943 30.2365 53.7418 34.8175 56.317C34.4083 56.561 33.9588 56.7299 33.4901 56.8156C26.6518 57.6437 22.4965 58.8342 19.5952 60.7958C16.8429 62.6568 15.2375 65.1511 14.0552 69.4056C14.0509 69.4209 14.0466 69.4363 14.0431 69.4518L10.0918 85.7362C9.51826 88.1132 9.82738 90.6176 10.9617 92.7837C12.0961 94.9499 13.9785 96.6304 16.2589 97.5129L20.1569 99.0144H10.7796C7.99797 99.0144 5.33033 100.119 3.36345 102.086C1.39658 104.053 0.291567 106.721 0.291504 109.502V110.435C0.291815 113.216 1.39693 115.884 3.36378 117.85C5.33063 119.817 7.99813 120.922 10.7796 120.922H53.2747C53.6551 120.922 54.0199 120.771 54.2889 120.502C54.5579 120.233 54.709 119.868 54.709 119.488C54.709 119.107 54.5579 118.742 54.2889 118.473C54.0199 118.204 53.6551 118.053 53.2747 118.053H34.0289C38.6739 116.234 43.0832 113.862 47.1618 110.989C59.9371 101.998 69.4844 101.883 69.5755 101.883H86.6115C88.6324 101.883 90.5704 102.686 91.9994 104.115C93.4283 105.544 94.2311 107.482 94.2311 109.502V110.435C94.2308 112.455 93.4279 114.393 91.999 115.822C90.5701 117.251 88.6322 118.053 86.6115 118.053H62.8365C62.4561 118.053 62.0913 118.204 61.8223 118.473C61.5533 118.742 61.4022 119.107 61.4022 119.488C61.4022 119.868 61.5533 120.233 61.8223 120.502C62.0913 120.771 62.4561 120.922 62.8365 120.922H86.6115C89.3932 120.922 92.0609 119.817 94.0278 117.85C95.9947 115.883 97.0996 113.215 97.0996 110.433V109.501C97.0996 106.72 95.9947 104.052 94.0278 102.085C92.0609 100.118 89.3932 99.013 86.6115 99.013H77.2552L81.1289 97.5124C83.4101 96.6305 85.2933 94.95 86.4283 92.7836C87.5633 90.6172 87.8728 88.1123 87.2993 85.7348L83.3471 69.4504C83.3435 69.4349 83.3393 69.42 83.335 69.4047C81.0779 61.2834 76.7211 58.4595 63.9108 56.8156C63.6617 56.7812 63.4178 56.7159 63.1848 56.6214C67.9202 54.1003 71.88 50.3378 74.6396 45.7373C77.3993 41.1368 78.8546 35.872 78.8496 30.5073C78.8496 14.1942 65.5848 0.921875 49.2796 0.921875ZM50.0808 3.84176C56.084 4.02211 61.8511 6.22111 66.4504 10.0835C71.0497 13.9459 74.2125 19.2461 75.4278 25.1278C76.6431 31.0094 75.84 37.1291 73.1483 42.498C70.4565 47.867 66.0332 52.1716 60.5931 54.7165C59.1024 53.1795 57.8049 51.1354 57.3184 49.7456C58.4778 48.8954 59.4906 47.8615 60.3167 46.6848C60.9625 46.9809 61.6621 47.1419 62.3724 47.1577C62.8095 47.1603 63.2432 47.0811 63.6512 46.9243C64.5464 46.5762 65.7044 45.6681 66.1373 43.3181C66.2624 42.9869 66.4272 42.6721 66.628 42.3806L66.7279 42.2148C68.7825 38.8099 69.2671 36.263 68.2103 34.43C67.7877 33.7064 67.1417 33.1394 66.3694 32.8142C66.4922 32.3725 66.5552 31.9163 66.5566 31.4579V29.7934C66.5566 24.4319 64.183 20.499 58.861 17.0401C58.612 16.8783 58.3989 16.667 58.235 16.4194C58.071 16.1718 57.9598 15.8931 57.9081 15.6007C57.125 11.0899 54.1033 8.50358 49.6158 8.50358H49.613C42.7338 8.50525 41.4374 13.4875 41.1983 15.6301C41.1628 15.9531 41.0576 16.2647 40.8901 16.5432C40.7227 16.8217 40.4968 17.0607 40.2282 17.2436C36.7881 19.5877 32.8393 23.1325 32.8393 29.7934V31.4579C32.8389 31.9742 32.9165 32.4876 33.0695 32.9808C32.4212 33.2864 31.8789 33.7785 31.5119 34.3941C30.4489 36.1843 30.9504 38.7427 33.0456 42.2153L33.133 42.36C33.3398 42.6607 33.5094 42.9854 33.6381 43.3269C33.9878 45.1621 34.9709 46.0635 35.7344 46.4966C36.4514 46.8873 37.2576 47.0851 38.074 47.0704C38.4264 47.0695 38.7782 47.0401 39.1259 46.9826C39.7172 47.7756 40.3958 48.4996 41.1489 49.141C40.3987 51.1167 38.8989 53.0103 37.368 54.4238C32.9251 52.2043 29.188 48.7913 26.5758 44.5673C23.9635 40.3432 22.5793 35.4752 22.5781 30.5087C22.5811 26.9366 23.3008 23.4015 24.6945 20.1126C26.0883 16.8237 28.1278 13.8479 30.6922 11.3613C33.2567 8.87477 36.294 6.92806 39.6244 5.63643C42.9547 4.34481 46.5104 3.73454 50.0808 3.84176V3.84176ZM49.6125 11.3716H49.6148C52.6985 11.3716 54.5375 12.9592 55.0811 16.0909C55.2008 16.7719 55.4592 17.4211 55.8404 17.998C56.2216 18.575 56.7174 19.0673 57.2969 19.4445C61.7759 22.3556 63.6871 25.4502 63.6871 29.793V31.4574C63.6872 31.8279 63.5967 32.1929 63.4235 32.5204C63.2502 32.8479 62.9995 33.1281 62.6931 33.3366V30.1506C62.6908 29.0631 62.4335 27.9912 61.9419 27.0212C61.4503 26.0511 60.7381 25.2098 59.8624 24.5648C57.1677 22.6285 53.7984 24.3061 53.6562 24.3785C53.605 24.4045 53.5554 24.4335 53.5077 24.4654C51.1056 26.0768 48.8478 26.0308 45.9671 24.3085C44.5197 23.32 41.5837 23.1611 39.9541 24.4266C38.9025 25.1029 38.0381 26.0333 37.4408 27.1317C36.8435 28.2302 36.5325 29.4614 36.5365 30.7118V33.2124C36.2772 32.9993 36.0684 32.7314 35.925 32.428C35.7816 32.1245 35.7073 31.793 35.7073 31.4574V29.793C35.7073 25.5322 37.4846 22.5834 41.8426 19.614C42.4535 19.1982 42.9671 18.6551 43.348 18.0219C43.7289 17.3888 43.9681 16.6806 44.0491 15.9462C44.3864 12.9103 46.258 11.3724 49.6125 11.3716ZM42.9781 26.3894C43.5413 26.3894 44.1076 26.5022 44.3521 26.6774C44.3832 26.6999 44.4156 26.7216 44.4478 26.7414C48.2475 29.0291 51.7046 29.0839 55.0125 26.9086C55.356 26.7553 57.0461 26.072 58.1756 26.8833C58.6864 27.2611 59.1017 27.7533 59.3881 28.3204C59.6746 28.8875 59.8242 29.5138 59.8251 30.1492V39.1638C59.8346 40.5106 59.5775 41.846 59.0687 43.0931C58.5599 44.3401 57.8093 45.4742 56.8603 46.4299C55.9113 47.3856 54.7826 48.1442 53.5392 48.6618C52.2957 49.1794 50.9622 49.4459 49.6153 49.4459C48.2684 49.4459 46.9349 49.1794 45.6914 48.6618C44.448 48.1442 43.3193 47.3856 42.3703 46.4299C41.4213 45.4742 40.6707 44.3401 40.1619 43.0931C39.6531 41.846 39.396 40.5106 39.4055 39.1638L39.4051 30.7118C39.4026 29.9319 39.5988 29.1642 39.9752 28.4812C40.3516 27.7981 40.8958 27.2222 41.5564 26.8077C41.6082 26.7751 41.6578 26.7393 41.7049 26.7003C41.9698 26.4814 42.4723 26.3894 42.9781 26.3894ZM64.8091 35.3101C64.9906 35.3368 65.165 35.3995 65.322 35.4944C65.4791 35.5893 65.6156 35.7146 65.7237 35.8629C65.8941 36.1581 66.2926 37.3823 64.2707 40.7329L64.1755 40.8922C63.8002 41.5108 63.4455 42.0954 63.316 42.798C63.1702 43.5909 62.9076 44.1338 62.6138 44.2495C62.3092 44.316 61.9912 44.2814 61.708 44.151C62.3602 42.5697 62.6953 40.8757 62.6941 39.1652V36.4316C63.4779 36.2303 64.2027 35.8459 64.8091 35.3101V35.3101ZM34.7204 35.4301C35.2551 35.8691 35.8732 36.1952 36.5375 36.3886V39.1652C36.536 40.8714 36.8691 42.5613 37.5179 44.1393C37.3892 44.1108 37.2652 44.0643 37.1495 44.0011C37.0209 43.9282 36.63 43.7063 36.4562 42.7896C36.3224 42.087 35.9653 41.4972 35.5869 40.873L35.5019 40.7329C33.8673 38.0236 33.6415 36.4418 33.9752 35.8652C34.0639 35.7464 34.1755 35.6466 34.3035 35.5719C34.4315 35.4971 34.5733 35.4489 34.7204 35.4301ZM43.572 50.7798C45.2964 51.6836 47.2015 52.1892 49.1472 52.2594C51.0929 52.3295 53.0295 51.9624 54.8145 51.185C55.503 52.7783 56.4174 54.2641 57.5294 55.5966C55.8184 62.7256 51.9726 67.8702 46.0773 70.8823C43.7618 72.0558 41.27 72.8428 38.7005 73.2121V57.0594C40.6315 55.4367 42.498 53.2058 43.572 50.7798ZM59.8769 57.9292C60.5403 58.4659 61.2737 58.9097 62.0568 59.2486C59.9126 69.1211 55.1295 77.1108 47.8239 83.0068C45.0554 85.2523 41.984 87.0961 38.7005 88.4838V84.0797C41.0671 83.8122 45.8154 82.543 51.2503 77.062C51.383 76.9283 51.4881 76.7698 51.5595 76.5954C51.6309 76.4211 51.6673 76.2344 51.6666 76.0461C51.6658 75.8577 51.628 75.6713 51.5552 75.4975C51.4824 75.3238 51.3761 75.1661 51.2424 75.0334C50.9723 74.7656 50.6069 74.616 50.2266 74.6176C49.8462 74.6192 49.4821 74.7718 49.2143 75.0418C44.594 79.7008 40.6461 80.8889 38.7005 81.1832V76.1086C41.683 75.7301 44.5792 74.8464 47.265 73.4955C51.6634 71.2764 57.241 66.7984 59.8769 57.9292ZM35.8339 58.9941V91.0545L33.4518 89.7005V80.5235C33.4518 80.1431 33.3007 79.7783 33.0317 79.5093C32.7628 79.2403 32.398 79.0892 32.0176 79.0892C31.6372 79.0892 31.2724 79.2403 31.0034 79.5093C30.7344 79.7783 30.5833 80.1431 30.5833 80.5235V88.0716L27.1783 86.1354L26.7446 60.8925C27.4993 60.7008 28.3155 60.524 29.199 60.3588L29.1995 60.3593V69.4906C29.1995 69.871 29.3506 70.2358 29.6196 70.5047C29.8885 70.7737 30.2533 70.9248 30.6337 70.9248C31.0141 70.9248 31.3789 70.7737 31.6479 70.5047C31.9169 70.2358 32.068 69.871 32.068 69.4906V59.8938C32.635 59.8141 33.2247 59.7373 33.837 59.6632C34.5352 59.5528 35.2101 59.3267 35.8339 58.9941V58.9941ZM64.8642 59.841C66.498 60.0748 67.9475 60.3316 69.2384 60.6147C69.0142 63.3677 67.9385 70.5555 62.8514 75.4279C62.7154 75.5582 62.6063 75.714 62.5305 75.8864C62.4546 76.0589 62.4135 76.2446 62.4094 76.4329C62.4054 76.6212 62.4384 76.8085 62.5067 76.9841C62.575 77.1596 62.6772 77.32 62.8075 77.4561C62.9378 77.5921 63.0936 77.7012 63.2661 77.777C63.4385 77.8528 63.6242 77.894 63.8125 77.898C64.0008 77.9021 64.1881 77.8691 64.3637 77.8008C64.5392 77.7324 64.6996 77.6302 64.8357 77.4999C70.3593 72.2111 71.7222 64.7855 72.0583 61.3505C73.3289 61.7263 74.5513 62.2488 75.701 62.9075C75.6503 65.9403 74.7925 77.8281 64.76 84.4532C64.5999 84.5557 64.4618 84.689 64.3537 84.8453C64.2455 85.0016 64.1696 85.1779 64.1301 85.3639C64.0907 85.5498 64.0887 85.7418 64.1241 85.9285C64.1595 86.1153 64.2317 86.2931 64.3365 86.4517C64.4413 86.6103 64.5765 86.7465 64.7344 86.8524C64.8923 86.9583 65.0696 87.0317 65.2561 87.0685C65.4426 87.1052 65.6346 87.1045 65.8208 87.0664C66.007 87.0283 66.1838 86.9535 66.3409 86.8465C71.6878 83.3153 75.4975 77.9065 77.3575 71.2059C77.8907 69.2799 78.2534 67.3108 78.4416 65.3213C79.4455 66.6635 80.0371 68.2544 80.5654 70.1498L84.512 86.4113C84.9225 88.1121 84.7011 89.904 83.8891 91.4537C83.077 93.0034 81.7296 94.2053 80.0976 94.8358L69.314 99.013H62.5825C62.5992 98.5058 62.4787 98.0035 62.2337 97.5591C61.7499 96.6821 61.1164 95.8965 60.362 95.2377L62.8458 93.7904C65.7686 95.2672 69.0004 96.0285 72.275 96.0114C72.6684 96.0114 73.0714 96.0007 73.4819 95.9777C73.6716 95.9697 73.8579 95.924 74.0299 95.8434C74.2018 95.7628 74.3561 95.6488 74.4837 95.5081C74.6112 95.3674 74.7096 95.2027 74.773 95.0237C74.8364 94.8446 74.8636 94.6548 74.8531 94.4652C74.8426 94.2755 74.7945 94.0899 74.7116 93.919C74.6287 93.7481 74.5127 93.5953 74.3703 93.4696C74.228 93.3439 74.062 93.2477 73.8822 93.1867C73.7023 93.1256 73.5121 93.1009 73.3227 93.1139C70.8018 93.2547 68.2788 92.8773 65.9095 92.005L74.692 86.8875C75.0183 86.6948 75.2549 86.3808 75.3504 86.0141C75.4459 85.6474 75.3924 85.2578 75.2015 84.9304C75.0107 84.6031 74.6981 84.3645 74.332 84.2669C73.9659 84.1693 73.576 84.2205 73.2475 84.4093L57.5066 93.5817C56.1863 93.1236 54.7739 92.9966 53.3931 93.2117C52.0124 93.4269 50.7055 93.9776 49.5873 94.8157L48.6643 95.5001C48.5304 95.4205 48.3911 95.3438 48.2422 95.2723C47.9751 95.1448 47.7037 95.0231 47.428 94.9067C56.5064 90.843 59.3085 85.1014 59.4385 84.8249C59.595 84.4822 59.6103 84.0917 59.4813 83.7378C59.3522 83.3838 59.0891 83.0949 58.7488 82.9334C58.4084 82.7719 58.0182 82.7507 57.6624 82.8745C57.3066 82.9984 57.0138 83.2572 56.8473 83.5951C56.8392 83.6116 56.0169 85.2804 53.8191 87.3596C51.8123 89.2583 48.215 91.8914 42.4529 93.732C41.8642 93.7075 41.2745 93.7357 40.6908 93.8161L38.7005 92.6844V91.5671C42.6145 90.0729 46.2659 87.9655 49.5177 85.324C54.9887 80.9385 62.0006 72.9935 64.8642 59.841ZM23.8891 61.7828L24.2795 84.4873L24.2048 84.4481C23.8664 84.265 23.4693 84.2235 23.1004 84.3327C22.7315 84.4419 22.4209 84.6929 22.2367 85.0306C22.0525 85.3684 22.0098 85.7654 22.1178 86.1347C22.2258 86.5039 22.4758 86.8153 22.813 87.0005L31.3032 91.7814C31.3173 91.7895 31.3311 91.7978 31.3457 91.8052L37.2705 95.1733C36.4189 95.8053 35.7066 96.6058 35.1779 97.525C35.1707 97.5369 35.1643 97.549 35.1574 97.5614C34.9113 98.0057 34.7871 98.5071 34.7974 99.0148H28.1392L17.2893 94.8353C15.6584 94.2042 14.3121 93.0023 13.501 91.453C12.6898 89.9038 12.469 88.1126 12.8796 86.4127L16.8257 70.1512C17.9834 65.9983 19.5804 63.4623 23.8891 61.7828ZM54.4854 95.989C55.5433 95.9455 56.5925 96.1967 57.5161 96.7145C58.4397 97.2322 59.2014 97.9963 59.7163 98.9214C59.7134 98.952 59.6656 99.0144 59.6379 99.0144H50.5122C50.5835 98.5926 50.5633 98.1605 50.4529 97.7472L51.3003 97.1193C52.2238 96.4302 53.334 96.0362 54.4854 95.989ZM41.9412 96.5926C42.1716 96.5887 42.4018 96.5962 42.6307 96.6127H42.6457H42.6471C44.1604 96.7679 45.6344 97.1896 47.0008 97.8584C47.1767 97.9369 47.3382 98.0442 47.4788 98.1758C47.5934 98.2908 47.721 98.4521 47.6763 98.5689C47.5938 98.7032 47.4786 98.8144 47.3414 98.892C47.2042 98.9697 47.0496 99.0113 46.892 99.013H37.6776V98.9705L37.6706 98.9439C38.7185 97.1942 40.3283 96.6203 41.9412 96.5926ZM10.7796 101.883H57.7358C53.4157 103.661 49.3139 105.93 45.5109 108.643C34.377 116.48 24.2433 117.936 23.334 118.053H10.7796C9.7789 118.053 8.78805 117.856 7.86358 117.473C6.93911 117.09 6.09912 116.529 5.39157 115.821C4.68403 115.114 4.12279 114.274 3.7399 113.349C3.35701 112.425 3.15997 111.434 3.16003 110.433V109.502C3.16003 107.482 3.9628 105.544 5.39174 104.115C6.82067 102.686 8.75873 101.883 10.7796 101.883V101.883ZM9.70899 105.504C9.3286 105.504 8.96379 105.655 8.69481 105.924C8.42584 106.193 8.27473 106.557 8.27473 106.938C8.27473 107.318 8.42584 107.683 8.69481 107.952C8.96379 108.221 9.3286 108.372 9.70899 108.372H10.3542C10.7346 108.372 11.0994 108.221 11.3684 107.952C11.6374 107.683 11.7885 107.318 11.7885 106.938C11.7885 106.557 11.6374 106.193 11.3684 105.924C11.0994 105.655 10.7346 105.504 10.3542 105.504H9.70899ZM14.982 105.504C14.6016 105.504 14.2368 105.655 13.9678 105.924C13.6988 106.193 13.5477 106.557 13.5477 106.938C13.5477 107.318 13.6988 107.683 13.9678 107.952C14.2368 108.221 14.6016 108.372 14.982 108.372H33.3192C33.6996 108.372 34.0644 108.221 34.3334 107.952C34.6024 107.683 34.7535 107.318 34.7535 106.938C34.7535 106.557 34.6024 106.193 34.3334 105.924C34.0644 105.655 33.6996 105.504 33.3192 105.504H14.982Z",fill:"#D4D8DD"})),{cockpit:{review:{reachedZeni:A2r}}}=U.getLocalizedStrings(),$2r=r.div`
|
|
96100
96126
|
justify-content: center;
|
|
96101
96127
|
align-items: center;
|
|
96102
96128
|
display: flex;
|
|
@@ -96404,7 +96430,7 @@ ${e}`,DJi=e=>g.createElement("svg",{width:38,height:39,viewBox:"0 0 38 39",fill:
|
|
|
96404
96430
|
height: calc(100vh - 60px);
|
|
96405
96431
|
overflow-y: hidden;
|
|
96406
96432
|
background-color: ${e=>e.theme.colors.grey4};
|
|
96407
|
-
`,
|
|
96433
|
+
`,Gcn=({headerData:e,headerActions:t,initialOpenThreadRequest:i,reviewPageActions:n,reviewPageData:a,analytics:l})=>{const{reviewView:d,zeniUserFetchState:c,allUsers:p,isReviewVendorColumnVisible:u}=a,{onColumnSortConfigChanged:h,onCockpitReloadData:m,onCompanyNameClicked:f,onClickAuditScore:x,onClickWarningsCount:y,onTransactionTagClicked:w,onRetryBankAccountConnection:b,onReviewVendorTagClicked:C,onUncategorizedAccountsErrorClick:k}=n,E=d.uiState.filterText,S=d.fetchState==="Completed",j=g.useMemo(()=>t.filterActions?{...t,filterActions:{...t.filterActions}}:t,[t]);return s.jsxs(N0r,{children:[s.jsx(U2,{headerActions:j,headerData:{...e,allTabOptions:e.allTabOptions??hh,filterData:{filterText:E,disableFilters:!0},selectedTabOption:"audit",companiesLoaded:S}}),s.jsx(H0r,{allUsers:p,analytics:l,initialOpenThreadRequest:i,isReviewVendorColumnVisible:u,reviewView:d,zeniUserFetchState:c,onColumnSortConfigChanged:h,onCockpitReloadData:m,onCompanyNameClicked:f,onClickAuditScore:x,onClickWarningsCount:y,onRetryBankAccountConnection:b,onReviewVendorTagClicked:C,onTransactionTagClicked:w,onUncategorizedAccountsErrorClick:k})]})},H0r=({reviewView:e,zeniUserFetchState:t,allUsers:i,isReviewVendorColumnVisible:n,analytics:a,initialOpenThreadRequest:l,onClickAuditScore:d,onColumnSortConfigChanged:c,onCockpitReloadData:p,onCompanyNameClicked:u,onClickWarningsCount:h,onTransactionTagClicked:m,onRetryBankAccountConnection:f,onReviewVendorTagClicked:x,onUncategorizedAccountsErrorClick:y})=>{const w=je();return e.fetchState==="Error"?s.jsx(Ig,{onCockpitReloadData:p,selectedCockpitOption:"audit"}):e.fetchState==="In-Progress"||e.fetchState==="Not-Started"||t==="In-Progress"||t==="Not-Started"?s.jsx(R0r,{children:s.jsx(yo,{size:"ExtraLarge",start:!0})}):e.companies.length===0?e.uiState.filterText.trim().length>0?s.jsx(jc,{emptySearchTextFirstLine:z0r,emptySearchTextSecondLine:F0r}):s.jsx(E2r,{}):s.jsx(O0r,{windowSize:w,children:s.jsx(M0r,{allUsers:i,analytics:a,initialOpenThreadRequest:l,isReviewVendorColumnVisible:n,reviewView:e,onColumnSortConfigChanged:c,onCompanyNameClicked:u,onClickAuditScore:d,onClickWarningsCount:h,onRetryBankAccountConnection:f,onReviewVendorTagClicked:x,onTransactionTagClicked:m,onUncategorizedAccountsErrorClick:y})})},{common:S0,dateFormat:_0r,cockpit:Iwe}=U.getLocalizedStrings(),V0r=r.div`
|
|
96408
96434
|
display: flex;
|
|
96409
96435
|
width: 100%;
|
|
96410
96436
|
padding: ${o.sp3};
|
|
@@ -96674,7 +96700,7 @@ ${e}`,DJi=e=>g.createElement("svg",{width:38,height:39,viewBox:"0 0 38 39",fill:
|
|
|
96674
96700
|
width: ${o.sp4};
|
|
96675
96701
|
height: ${o.sp4};
|
|
96676
96702
|
color: ${e=>e.theme.colors.grey2};
|
|
96677
|
-
`,YG={navBarHeight:new L(62,62,62),navBarPaddingLeft:new L(v[3],v[3],v[8]),navBarPaddingRight:new L(v[3],v[3],v[8])},{cockpit:{review:lgr},timeFormat:dgr,common:Ix,dateFormat:HV}=U.getLocalizedStrings(),
|
|
96703
|
+
`,YG={navBarHeight:new L(62,62,62),navBarPaddingLeft:new L(v[3],v[3],v[8]),navBarPaddingRight:new L(v[3],v[3],v[8])},{cockpit:{review:lgr},timeFormat:dgr,common:Ix,dateFormat:HV}=U.getLocalizedStrings(),Ycn=({isAuditScoreCompleted:e,auditRuleGroups:t,loggedInUser:i,isMonthEnd:n,auditReportGroupView:a,allUsers:l,reviewCompanyView:d,style:c,analytics:p,handleFetchAuditReportGroupView:u,handleGenerateAuditReport:h,handleCancelIconClick:m,handleRuleClick:f,handleReasonAuditRule:x})=>{const y=je(),[w,b]=g.useState(_V(t,1)),[C,k]=g.useState({id:t[0]?.auditRuleGroupId,index:0}),[E,S]=g.useState(!1),[j,I]=g.useState(1),[T,P]=g.useState(!1),[B,D]=g.useState(null),F=g.useMemo(()=>d?.controllers.map(O=>`${O.user.firstName} ${O.user.middleName} ${O.user.lastName}`)??[],[d?.controllers]),Y={fixesRequired:0,totalChecks:0,auditScorePercentage:0,bypassedAuditScore:0,auditReportLastGeneratedDate:null};g.useEffect(()=>{a.auditReportGroups.forEach(O=>{a.auditReportGroups.forEach(R=>{R.auditReportGroupId===C.id&&(R.fetchState==="Completed"||R.fetchState==="Error")&&k({id:t[C.index+1]?.auditRuleGroupId,index:C.index+1})});const z=O.auditReport?.auditRulesGroupReport.find(R=>R.auditRuleGroupId===O.auditReportGroupId);(O.fetchState==="Completed"&&C.id===O.auditReportGroupId&&w[O.auditReportGroupId].isActive===!0&&z?.sequence===j||O.fetchState==="Error"&&C.id===O.auditReportGroupId)&&(I(j+1),b(_V(t,j+1)))})},[a.auditReportGroups,j,t,w]),g.useEffect(()=>{if(a.auditReportGroups.filter(z=>z.fetchState==="In-Progress").length===0&&S(!0),a.auditReportGroups.filter(z=>z.fetchState==="Completed"||z.fetchState==="Error").length===t.length){P(!0);let z=0;a.auditReportGroups.forEach(ee=>{z=z+WUe(ee.auditReport?.auditRulesGroupReport[0]?.auditRules)});const R=cgr(a),te=ji().startOf("month").subtract(1,"date").format(HV.visual.MMMYYYYFormat),G=d?.customerGroup,W=Math.ceil(a.auditReportGroups[0].auditReport?.auditSummary.auditScorePercentage??0);p.trackAuditScorePercentage(ji().format(HV.analytics.MMSlashDDSlashYYYYFormat),te,W,d?.name??"",R,z,F,G??null)}const O=a.auditReportGroups.find(z=>z.fetchState==="Completed");O?.auditReport?.status?.lastRefreshSuccessTime!=null&&D(O)},[a.auditReportGroups,t.length,p,d,a,F]);const q=()=>{b(_V(t,1)),k({id:t[0]?.auditRuleGroupId,index:0}),S(!1),I(1),P(!1),D(null)},Z=()=>{q();const O=t.map(z=>z.auditRuleGroupId);h(O)},V=()=>{m()},H=O=>{u(O)},N=(O,z,R)=>{p.trackAuditIssuesClicked(R,d?.name??"",F,ji().format(HV.analytics.MMSlashDDSlashYYYYFormat)),f(O,z)};return s.jsxs(pgr,{style:c,children:[s.jsx(ggr,{windowSize:y,style:c,children:s.jsx(fgr,{children:s.jsxs(xgr,{windowSize:y,children:[s.jsx(ugr,{}),s.jsxs(ygr,{children:[s.jsx(wgr,{children:d?.name}),s.jsx(bgr,{children:T?B?.auditReport?.status?.lastRefreshSuccessTime?.utc(!0).local().format(dgr.hmmADashDDMMMCommaYYYY):Ix.strings.empty})]}),s.jsxs(Cgr,{children:[s.jsxs(vgr,{isGenerateClickEnabled:E,onClick:Z,children:[s.jsx($gr,{}),s.jsx(Agr,{children:lgr.auditReportDrawer.updateScore})]}),s.jsx(kgr,{onClick:V,children:s.jsx(Sgr,{})})]})]})})}),s.jsxs(hgr,{children:[s.jsx(mgr,{children:s.jsx(emr,{auditSummaryData:d!=null?d.auditSummary:Y,isAuditScoreLoadingCompleted:T&&e,isMonthEnd:n})}),s.jsxs(Dwe,{children:[s.jsx(Pwe,{children:Ix.texts.business}),s.jsx(Twe,{children:t.filter(O=>O.ruleType===Ix.texts.business.toLowerCase()).map(O=>{const z=a.auditReportGroups.find(R=>R.auditReportGroupId===O.auditRuleGroupId);return z!=null&&Object.keys(w).length>0?s.jsx(Mwe,{loggedInUser:i,isControllerOrReviewer:a.isControllerOrReviewer,allUsers:l,isMonthEnd:n,ruleGroup:O,groupIdWithActiveStatus:w,auditReportGroup:z,setGroupIdWithActiveStatus:b,onClickRetryGroupFetch:H,onClickRule:N,handleReasonAuditRule:x},O.auditRuleGroupId):null})})]}),s.jsxs(Dwe,{children:[s.jsx(Pwe,{children:Ix.settings.title.accounting}),s.jsx(Twe,{children:t.filter(O=>O.ruleType===Ix.settings.title.accounting.toLowerCase()).map(O=>{const z=a.auditReportGroups.find(R=>R.auditReportGroupId===O.auditRuleGroupId);return z!=null&&Object.keys(w).length>0?s.jsx(Mwe,{loggedInUser:i,isControllerOrReviewer:a.isControllerOrReviewer,allUsers:l,isMonthEnd:n,ruleGroup:O,groupIdWithActiveStatus:w,auditReportGroup:z,setGroupIdWithActiveStatus:b,onClickRetryGroupFetch:H,onClickRule:N,handleReasonAuditRule:x},O.auditRuleGroupId):null})})]})]})]})},_V=(e,t)=>{const i={},n={};return e.forEach(a=>{const{ruleType:l,sequence:d}=a;n[l]===void 0?n[l]={first:d,last:d}:(d<n[l].first&&(n[l].first=d),d>n[l].last&&(n[l].last=d))}),e.forEach(a=>{const{auditRuleGroupId:l,ruleType:d,sequence:c}=a,p=c<=t,u=c===n[d].first,h=c===n[d].last;i[l]={isActive:p,isGroupExpanded:!1,isFirst:u,isLast:h}}),i},cgr=e=>e.auditReportGroups.filter(t=>t.auditReport?.auditRulesGroupReport[0].isSuccess===!1).map(t=>t.auditReportGroupId),pgr=r.div`
|
|
96678
96704
|
display: flex;
|
|
96679
96705
|
flex-direction: column;
|
|
96680
96706
|
align-items: center;
|
|
@@ -96780,7 +96806,7 @@ ${e}`,DJi=e=>g.createElement("svg",{width:38,height:39,viewBox:"0 0 38 39",fill:
|
|
|
96780
96806
|
`,Sgr=r(Dt)`
|
|
96781
96807
|
width: ${o.sp3};
|
|
96782
96808
|
height: ${o.sp3};
|
|
96783
|
-
`,po=U.getLocalizedStrings(),dy={navBarHeight:new L(62,62,62),navBarPaddingLeft:new L(v[3],v[3],v[8]),navBarPaddingRight:new L(v[3],v[3],v[8]),navBarPaddingTop:new L(12,12,v[3]),navBarPaddingBottom:new L(12,12,19)},Egr={title:new wt("extraLargeMedium","extraLargeSemiBold")},
|
|
96809
|
+
`,po=U.getLocalizedStrings(),dy={navBarHeight:new L(62,62,62),navBarPaddingLeft:new L(v[3],v[3],v[8]),navBarPaddingRight:new L(v[3],v[3],v[8]),navBarPaddingTop:new L(12,12,v[3]),navBarPaddingBottom:new L(12,12,19)},Egr={title:new wt("extraLargeMedium","extraLargeSemiBold")},Kcn=({companyView:e,allUsers:t,onRetryBankAccountConnection:i,onCloseClick:n})=>{const a=je(),l=e!=null?jbe(e):0,d=e?.onboardingInfo?.bankAccountLinked,c=e?.onboardingInfo?.qboLinked,p=e?.onboardingInfo?.identityVerified,u=e?.onboardingInfo?.businessVerified,h=e?.onboardingInfo?.accountingConnectionCreationMode==="zeni_user",m=[];if(d!=null){const f=t.find(w=>w.userId===d.userIds[0]),{errorMessage:x,successMessage:y}=Lgr(d,h,f);m.push({status:x!=null?"Error":y!=null?"Complete":"Incomplete",userInfo:f,message:x??y??`${po.common.texts.linkBankAccount} ${po.common.strings.hyphen} ${po.common.incompleteText}`,onClickRetry:i})}if(c!=null){const f=t.find(w=>w.userId===c.userIds[0]),{errorMessage:x,successMessage:y}=Igr(c,h,f);m.push({status:x!=null?"Error":y!=null?"Complete":"Incomplete",userInfo:f,message:x??y??`${po.common.texts.connectToQbo} ${po.common.strings.hyphen} ${po.common.incompleteText}`})}if(p!=null){const f=t.find(w=>w.userId===p.userIds[0]),{errorMessage:x,successMessage:y}=jgr(p,h,f);m.push({status:x!=null?"Error":y!=null?"Complete":"Incomplete",userInfo:f,message:x??y??`${po.cockpit.review.warningsDrawer.kyc} ${po.common.strings.hyphen} ${p.status}`})}if(u!=null){const f=t.find(w=>w.userId===u.userIds[0]),{errorMessage:x,successMessage:y}=Mgr(u,h,f);m.push({status:x!=null?"Error":y!=null?"Complete":"Incomplete",userInfo:f,message:x??y??`${po.cockpit.review.warningsDrawer.kyb} ${po.common.strings.hyphen} ${u.status}`})}return s.jsxs(Bgr,{children:[s.jsx(Dgr,{windowSize:a,children:s.jsx(Pgr,{children:s.jsxs(Fgr,{windowSize:a,children:[s.jsx(Rgr,{windowSize:a,children:e?.name}),s.jsx(Wgr,{onClick:n,children:s.jsx(Ggr,{})})]})})}),s.jsxs(Tgr,{children:[s.jsx(zgr,{children:l>0?s.jsxs(VV,{children:[s.jsx(VV,{children:z1(po.cockpit.review.warningsDrawer.issueFound)}),s.jsx(Ygr,{children:`${po.common.strings.openingBrace}${l}${po.common.strings.closingBrace}`})]}):s.jsx(VV,{children:`${po.common.no}
|
|
96784
96810
|
${z1(po.cockpit.review.warningsDrawer.issueFound)}`})}),m.map((f,x)=>s.jsx(Ogr,{isStepInError:f.status==="Error",children:s.jsxs(Ngr,{children:[s.jsx(Hgr,{children:f.status==="Complete"?s.jsx(Qgr,{}):f.status==="Error"?s.jsx(yg,{}):s.jsx(Ugr,{})}),s.jsxs(_gr,{children:[s.jsx(Vgr,{isStepInError:f.status==="Error",children:f.message}),f.status==="Error"?s.jsx(Nt,{label:po.common.retry,onClick:f.onClickRetry,loading:e?.retryBankAccountConnectionFetchState.fetchState==="In-Progress",variant:"outline",style:{padding:`${o.sp1} ${o.sp3}`,borderRadius:o.sp1},textStyle:{...Q.smallMedium.cssObject}}):null]})]})},x))]})]})},Lgr=(e,t,i)=>{const n=e.error===!0?e.errorDetails!=null?e.errorDetails.summary:po.cockpit.review.errors.bankAccountLinked:null,a=e.completed===!0?i!=null?`${po.common.texts.linkBankAccount} ${po.common.strings.hyphen} ${t===!0?`${po.common.via} ${po.common.cockpit} `:po.common.strings.empty}${po.common.by} ${i.firstName} ${i.lastName}`:po.common.texts.linkBankAccount:null;return{errorMessage:n,successMessage:a}},Igr=(e,t,i)=>{const n=e.error===!0?e.errorDetails!=null?e.errorDetails.summary:po.cockpit.review.errors.qboLinked:null,a=e.completed===!0?i!=null?`${po.common.texts.connectToQbo} ${po.common.strings.hyphen} ${t===!0?`${po.common.via} ${po.common.cockpit} `:po.common.strings.empty}${po.common.by} ${i.firstName} ${i.lastName}`:`${po.common.texts.connectToQbo}`:null;return{errorMessage:n,successMessage:a}},jgr=(e,t,i)=>{const n=e.status==="Error"?i!=null?`${po.cockpit.review.warningsDrawer.kyc} ${po.common.failed.toLocaleLowerCase()} ${po.common.strings.hyphen} ${t===!0?`${po.common.via} ${po.common.cockpit} `:po.common.strings.empty}${po.common.by} ${i.firstName} ${i.lastName}`:`${po.cockpit.review.warningsDrawer.kyc} ${po.common.failed.toLocaleLowerCase()}`:null,a=e.status==="Complete"?i!=null?`${po.cockpit.review.warningsDrawer.kyc} ${po.cockpit.review.warningsDrawer.identity} ${po.common.strings.hyphen} ${t===!0?`${po.common.via} ${po.common.cockpit} `:po.common.strings.empty}${po.common.by} ${i.firstName} ${i.lastName}`:`${po.cockpit.review.warningsDrawer.kyc} ${po.cockpit.review.warningsDrawer.identity}`:null;return{errorMessage:n,successMessage:a}},Mgr=(e,t,i)=>{const n=e.status==="Error"?i!=null?`${po.cockpit.review.warningsDrawer.kyb} ${po.common.failed.toLocaleLowerCase()} ${po.common.strings.hyphen} ${t===!0?`${po.common.via} ${po.common.cockpit} `:po.common.strings.empty}${po.common.by} ${i.firstName} ${i.lastName}`:`${po.cockpit.review.warningsDrawer.kyb} ${po.common.failed.toLocaleLowerCase()}`:null,a=e.status==="Complete"?i!=null?`${po.cockpit.review.warningsDrawer.kyb} ${po.cockpit.review.warningsDrawer.identity} ${po.common.strings.hyphen} ${t===!0?`${po.common.via} ${po.common.cockpit} `:po.common.strings.empty}${po.common.by} ${i.firstName} ${i.lastName}`:`${po.cockpit.review.warningsDrawer.kyb} ${po.cockpit.review.warningsDrawer.identity}`:null;return{errorMessage:n,successMessage:a}},Bgr=r.div`
|
|
96785
96811
|
display: flex;
|
|
96786
96812
|
flex-direction: column;
|
|
@@ -97282,7 +97308,7 @@ ${e}`,DJi=e=>g.createElement("svg",{width:38,height:39,viewBox:"0 0 38 39",fill:
|
|
|
97282
97308
|
}
|
|
97283
97309
|
`,S4r=r(Yr)`
|
|
97284
97310
|
color: ${e=>e.theme.colors.hero};
|
|
97285
|
-
`,{common:YUe,cockpit:{creditAgent:iu}}=U.getLocalizedStrings(),E4r=["All","New only","Interested","Active only"],L4r=e=>{switch(e){case"All":return YUe.all;case"New only":return iu.focusNewOnly;case"Interested":return iu.focusInterested;case"Active only":return iu.focusActiveOnly}};function
|
|
97311
|
+
`,{common:YUe,cockpit:{creditAgent:iu}}=U.getLocalizedStrings(),E4r=["All","New only","Interested","Active only"],L4r=e=>{switch(e){case"All":return YUe.all;case"New only":return iu.focusNewOnly;case"Interested":return iu.focusInterested;case"Active only":return iu.focusActiveOnly}};function qcn({headerActions:e,headerData:t,creditAgentPageData:i,creditAgentPageActions:n}){const a=je(),{macroData:l,cardProfilesData:d}=i,{onFetchMacro:c,onSaveMacro:p,onResetSaveMacro:u,onUIStateChange:h,cardProfilesActions:m}=n,{onDownloadReport:f}=m,[x,y]=g.useState(""),[w,b]=g.useState(!1),{focus:C,minScore:k}=d.uiState;g.useEffect(()=>{l.fetchState==="Not-Started"&&c()},[l.fetchState,c]),g.useEffect(()=>{l.data!=null&&!w&&y(l.data.instructions)},[l.data,w]),g.useEffect(()=>{l.updateState==="Completed"&&(b(!1),u())},[l.updateState,u]),g.useEffect(()=>{d.fetchState==="Not-Started"&&m.onFetch()},[d.fetchState,m]);const E=g.useCallback(()=>{p(x)},[p,x]),S=g.useCallback(()=>{b(!1),l.data!=null&&y(l.data.instructions),l.updateState==="Error"&&u()},[l.data,l.updateState,u]);return s.jsxs(I4r,{children:[s.jsx(U2,{headerActions:e,headerData:{...t,allTabOptions:t.allTabOptions??hh,selectedTabOption:"creditAgent"}}),s.jsxs(j4r,{windowSize:a,children:[s.jsxs(M4r,{children:[s.jsx(B4r,{}),s.jsxs(D4r,{children:[w&&s.jsxs(s.Fragment,{children:[s.jsx(Nt,{variant:"secondary",size:"small",label:YUe.cancel,onClick:S}),s.jsx(Nt,{variant:"primary",size:"small",label:l.updateState==="In-Progress"?iu.saving:iu.savePrompt,disabled:l.updateState==="In-Progress",onClick:E})]}),s.jsx(Nt,{variant:"secondary",size:"small",label:iu.downloadReport,onClick:f})]})]}),s.jsxs(P4r,{children:[s.jsxs(T4r,{children:[s.jsxs(z4r,{children:[s.jsx(F4r,{children:"✦"}),l.fetchState==="In-Progress"?s.jsx(yo,{size:"Standard",start:!0}):s.jsx(R4r,{value:x,disabled:l.updateState==="In-Progress",onChange:j=>{y(j.target.value),b(!0)},placeholder:iu.promptPlaceholder,rows:6})]}),s.jsxs(O4r,{children:[s.jsxs(Nwe,{children:[s.jsx(Hwe,{children:iu.focusLabel}),s.jsx(N4r,{children:E4r.map(j=>s.jsx(H4r,{active:C===j,onClick:()=>h({focus:j}),children:L4r(j)},j))})]}),s.jsx(_4r,{}),s.jsxs(Nwe,{children:[s.jsx(Hwe,{children:iu.minScoreLabel}),s.jsx(V4r,{type:"range",min:0,max:100,value:k,onChange:j=>h({minScore:parseInt(j.target.value)})}),s.jsx(Q4r,{children:k})]})]})]}),l.updateState==="Error"&&s.jsx(W4r,{children:iu.failedToSavePrompt})]}),s.jsx(U4r,{children:s.jsx(l4r,{cardProfilesData:d,cardProfilesActions:m,onUIStateChange:h,uiState:d.uiState})})]})]})}const I4r=r.div`
|
|
97286
97312
|
height: calc(100vh - 45px);
|
|
97287
97313
|
overflow: hidden;
|
|
97288
97314
|
background-color: ${e=>e.theme.colors.grey4};
|
|
@@ -97405,7 +97431,7 @@ ${e}`,DJi=e=>g.createElement("svg",{width:38,height:39,viewBox:"0 0 38 39",fill:
|
|
|
97405
97431
|
`,W4r=r(eq)`
|
|
97406
97432
|
color: ${e=>e.theme.colors.alert};
|
|
97407
97433
|
margin-top: ${o.sp2};
|
|
97408
|
-
`;var G4r=zYe();const Oy=KG(G4r);class Y4r{getSignedInUser(){const t=window.localStorage.getItem(this.ZENI_SESSION_ID);if(t!=null)return this.readEncryptedJSON(this.ZENI_SIGNED_IN_USER,t)}getShowNegativeAmountInParenthesis(){const t=window.localStorage.getItem(this.ZENI_SESSION_ID);return t==null?!1:this.readEncryptedJSON(this.ZENI_SHOW_NEGATIVE_AMOUNT_IN_PARENTHESIS,t)??!1}getShowNegativeAmountInParenthesisPDF(){const t=window.localStorage.getItem(this.ZENI_SESSION_ID);return t==null?!0:this.readEncryptedJSON(this.ZENI_SHOW_NEGATIVE_AMOUNT_IN_PARENTHESIS_PDF,t)??!0}getSignedInUserTenant(t){return this.getSignedInUserTenants()?.find(i=>i.tenantEmailDomain===t)}getSignedInUserTenantWithId(t){return this.getSignedInUserTenants()?.find(i=>i.tenantId===t)}getForceRefreshedComponents(){const t=window.localStorage.getItem(this.ZENI_SESSION_ID);return t==null?[]:this.readEncryptedJSON(this.ZENI_FORCE_REFRESHED_COMPONENTS,t)??[]}saveForceRefreshedComponents(t){const i=window.localStorage.getItem(this.ZENI_SESSION_ID);i!=null?window.localStorage.setItem(this.ZENI_FORCE_REFRESHED_COMPONENTS,this.encrypt(JSON.stringify(t),i)):console.warn("Can't update the force refreshed components when the user is logged out!")}saveSignedInUserWithSession(t,i){if(t==null||i==null)throw new Error("Can't accept nil for user or session Id");window.localStorage.getItem(this.ZENI_SESSION_ID)!==i&&this.clearSessionKeyedEntries(),window.localStorage.setItem(this.ZENI_SESSION_ID,i),window.localStorage.setItem(this.ZENI_SIGNED_IN_USER,this.encrypt(JSON.stringify(t),i))}saveSignedInUserTenants(t,i){const n=i??window.localStorage.getItem(this.ZENI_SESSION_ID);n!=null?window.localStorage.setItem(this.ZENI_SIGNED_IN_USER_TENANTS,this.encrypt(JSON.stringify(t),n)):console.warn("Can't update the setting when the user is logged out!")}saveShowNegativeAmountInParenthesis(t){const i=window.localStorage.getItem(this.ZENI_SESSION_ID);if(i!=null)window.localStorage.setItem(this.ZENI_SHOW_NEGATIVE_AMOUNT_IN_PARENTHESIS,this.encrypt(JSON.stringify(t),i));else throw new Error("Can't update the setting when the user is logged out!")}saveShowNegativeAmountInParenthesisPDF(t){const i=window.localStorage.getItem(this.ZENI_SESSION_ID);if(i!=null)window.localStorage.setItem(this.ZENI_SHOW_NEGATIVE_AMOUNT_IN_PARENTHESIS_PDF,this.encrypt(JSON.stringify(t),i));else throw new Error("Can't update the setting when the user is logged out!")}isSignedIn(){return[this.ZENI_SESSION_ID,this.ZENI_SIGNED_IN_USER].map(i=>window.localStorage.getItem(i)!=null).reduce((i,n)=>i&&n)}clearAll(){this.ALL_IDs.forEach(t=>window.localStorage.removeItem(t))}setTheme(t){const i=window.localStorage.getItem(this.ZENI_SESSION_ID);i!=null&&window.localStorage.setItem(this.ZENI_THEME,this.encrypt(t,i))}getTheme(){const t=window.localStorage.getItem(this.ZENI_SESSION_ID);if(t==null)return;const i=this.readEncryptedString(this.ZENI_THEME,t);if(i!=null){if(i!=="light"&&i!=="dark"){window.localStorage.removeItem(this.ZENI_THEME);return}return i}}encrypt(t,i){return Oy.AES.encrypt(t,i).toString()}decrypt(t,i){try{const n=Oy.AES.decrypt(t,i).toString(Oy.enc.Utf8);return n===""?void 0:n}catch{return}}readEncryptedString(t,i){const n=window.localStorage.getItem(t);if(n==null)return;const a=this.decrypt(n,i);return a==null&&window.localStorage.removeItem(t),a}readEncryptedJSON(t,i){const n=this.readEncryptedString(t,i);if(n!=null)try{const a=JSON.parse(n);if(a===null){window.localStorage.removeItem(t);return}return a}catch{window.localStorage.removeItem(t);return}}getSignedInUserTenants(){const t=window.localStorage.getItem(this.ZENI_SESSION_ID);if(t!=null)return this.readEncryptedJSON(this.ZENI_SIGNED_IN_USER_TENANTS,t)}clearSessionKeyedEntries(){this.SESSION_KEYED_IDs.forEach(t=>window.localStorage.removeItem(t))}ZENI_SESSION_ID="ZENI_SESSION_ID";ZENI_SIGNED_IN_USER="ZENI_SIGNED_IN_USER";ZENI_SIGNED_IN_USER_TENANTS="ZENI_SIGNED_IN_USER_TENANTS";ZENI_SHOW_NEGATIVE_AMOUNT_IN_PARENTHESIS="ZENI_SHOW_NEGATIVE_AMOUNT_IN_PARENTHESIS";ZENI_SHOW_NEGATIVE_AMOUNT_IN_PARENTHESIS_PDF="ZENI_SHOW_NEGATIVE_AMOUNT_IN_PARENTHESIS_PDF";ZENI_THEME="ZENI_THEME";ZENI_FORCE_REFRESHED_COMPONENTS="ZENI_FORCE_REFRESHED_COMPONENTS";SESSION_KEYED_IDs=[this.ZENI_SIGNED_IN_USER_TENANTS,this.ZENI_SHOW_NEGATIVE_AMOUNT_IN_PARENTHESIS,this.ZENI_SHOW_NEGATIVE_AMOUNT_IN_PARENTHESIS_PDF,this.ZENI_THEME,this.ZENI_FORCE_REFRESHED_COMPONENTS];ALL_IDs=[this.ZENI_SESSION_ID,this.ZENI_SIGNED_IN_USER,this.ZENI_SHOW_NEGATIVE_AMOUNT_IN_PARENTHESIS,this.ZENI_SHOW_NEGATIVE_AMOUNT_IN_PARENTHESIS_PDF,this.ZENI_SIGNED_IN_USER_TENANTS,this.ZENI_THEME,this.ZENI_FORCE_REFRESHED_COMPONENTS]}const Ja=new Y4r,K4r=({children:e})=>{const t=jYe("(prefers-color-scheme: dark)"),[i,n]=A.useState({dark:t});g.useEffect(()=>{const p=Ja.getTheme()==null?t:Ja.getTheme()==="dark";i.dark!==p&&n({dark:p})},[i,t]);const a=()=>{const p=!i.dark;Ja.setTheme(p?"dark":"light"),n({...i,dark:p})},l=i.dark?qyo():Kyo(),d=typeof window<"u"?window.__NONCE__:void 0,c=d!=null&&d.length>0?d:void 0;return xo.jsx(p5o,{dark:i.dark,webAppTheme:l,toggle:a,nonce:c,children:e})},q4r=["sandbox","production"],Z4r=e=>R4(e,q4r),J4r=e=>{switch(e){case"DEV":case"QA":case"PUNE":case"SUNNYVALE":case"DELHI":case"MOHALI":return"sandbox";case"PROD":case"NEXT":return"production";default:return"sandbox"}},X4r=["development","staging","production"],efr=e=>R4(e,X4r),tfr=e=>{switch(e){case"QA":case"PUNE":case"SUNNYVALE":case"DELHI":case"MOHALI":return"staging";case"PROD":case"NEXT":return"production";default:return"development"}},ofr=["DEV","QA","PUNE","SUNNYVALE","DELHI","MOHALI","PROD","NEXT"],ifr=e=>R4(e,ofr),wc=ifr("PROD"),Hw=()=>wc==="DEV"||wc==="QA"||wc==="PUNE"||wc==="SUNNYVALE"||wc==="DELHI"||wc==="MOHALI",gX="https://zeni-webapp.uc.r.appspot.com",rfr="a9cfa638c9c62aa82fb38cd66d7f717e",Ucn=Z4r(J4r(wc)),nfr=efr(tfr(wc));function afr(e,t){return Oy.AES.decrypt(e,t).toString(Oy.enc.Utf8)}const sfr="ZENI-WEB-APP-",KUe=wc==="DEV"||wc==="QA"?.2:.8,ia={sentryDsn:"",sentryTraceSamplingRate:KUe,googleClientId:"",googleMapsAPIKey:"",microsoftClientId:"",mixpanelToken:"",pusherClientSecret:"",pusherCluster:"",quickbooksKey:"",appUrl:"",featureClientSecret:"",featureClientSecretCockpit:"",cardVaultId:"",stripeKey:"",qboRedirectionUrl:"",mixpanelUrl:"",mixpanelHMUrl:""};let F4,fX;function lfr(e){ia.sentryDsn=e.keys.SENTRY_DSN,ia.sentryTraceSamplingRate=e.keys.SENTRY_TRACE_SAMPLE_RATES!=null?parseInt(e.keys.SENTRY_TRACE_SAMPLE_RATES):KUe,ia.googleClientId=e.keys.GOOGLE_CLIENT_ID,ia.googleMapsAPIKey=e.keys.GOOGLE_MAP_KEY,ia.microsoftClientId=e.keys.MICROSOFT_CLIENT_ID,ia.mixpanelToken=e.keys.MIXPANEL_TOKEN,ia.pusherClientSecret=e.keys.PUSHER_CLIENT_SECRET,ia.pusherCluster=e.keys.PUSHER_CLUSTER,ia.quickbooksKey=e.keys.QUICKBOOK_TOKEN,ia.appUrl=e.keys.WEB_ENDPOINT,ia.featureClientSecret=e.keys.STATSIG_CLIENT_SECRET,ia.featureClientSecretCockpit=e.keys.STATSIG_CLIENT_SECRET_COCKPIT,ia.cardVaultId=e.keys.UNIT_VAULT_ID,ia.stripeKey=e.keys.STRIPE_KEY,ia.qboRedirectionUrl=e.keys.QBO_URL,ia.mixpanelUrl=e.keys.MIXPANEL_URL,ia.mixpanelHMUrl=e.keys.MIXPANEL_HM_URL,fX=e.externalEndPoints,F4=e.apiEndPoints,dfr()}function dfr(){try{const e=new Set;if(F4!=null){for(const t of Object.values(F4))if(typeof t=="string"&&t.startsWith("http"))try{e.add(new URL(t).origin)}catch{}}for(const t of e){const i=document.createElement("link");i.rel="preconnect",i.href=t,i.crossOrigin="anonymous",document.head.appendChild(i)}}catch{}}async function cfr(){const t=encodeURIComponent(JSON.stringify({environment:wc}));try{const i=await fetch(`${gX}/api/keys?query=${t}`);if(!i.ok)throw new Error(`HTTP error! status: ${i.status}`);return await i.json()}catch(i){return console.error("Error fetching details:",i),null}}let _we=!1;function py(){_we||(nu.init(rfr,{api_host:fX.mixpanelBaseUrl,ignore_dnt:!0,store_google:!1,track_marketing:!1}),_we=!0)}let Vwe=!1,Qwe=!1;function qUe(){if(Vwe)return;Vwe=!0,py();const e=zs.extractUtmParamsFromUrl();Object.keys(e).length>0&&nu.register(e),Hw()&&console.log(`[UTM] first-touch bootstrap: ${JSON.stringify(e)}`)}function pfr(){return nu?.persistence?.props??null}const ufr=new Set(["dclid","fbclid","gclid","ko_click_id","li_fat_id","msclkid","sccid","ttclid","twclid","wbraid"]);function hfr(){const e=pfr();if(e==null)return;const t=Object.keys(e).filter(i=>i.startsWith("utm_")||ufr.has(i));for(const i of t)nu.unregister(i);Hw()&&t.length>0&&console.log(`[UTM] cleared from cookie: ${JSON.stringify(t)}`)}function mfr(){Qwe||(Qwe=!0,hfr())}class Y3{identify(t,i){if(py(),this.#o=t,t!=null&&i!=null&&(Y3.#t==null||nYe({userId:t,traits:i},Y3.#t)!==!0)){const{$email:n,...a}={...i};nu.identify(t),n&&n!=null&&nu.people.set_once({$email:n}),nu.people.set(a),Y3.#t={userId:t,traits:i},Hw()&&console.log(`*** Called people set with userId ${t} traits ${JSON.stringify(i)} `)}}identifyUserAndCompany(t,i,n,a,l){throw Error("Use identify in the web-app!!")}track(t,i){if(py(),this.#o==null){console.error("user is not identified :(, so can not fire event");return}qUe();const n={distinct_id:this.#o,...i};nu.track(t,n),mfr(),Hw()&&console.log(`*** firing ${t} with props ${JSON.stringify(i)}`)}alias(t,i){py(),nu.alias(t,i)}reset(){py(),nu.reset(),this.#o=void 0,Y3.#t=void 0}static get analytics(){return this.#e}static#e=new zs.Analytics(new Y3);static#t;#o}const Q0=Y3.analytics;function gfr(){qUe()}const ffr=()=>{const e=qE(),t=Lu(i=>i.companyState);if(e.pathname.includes("/management/parent/")){const i=e.pathname.split("/")[3],n=t.companiesById[i];if(n!=null)return`${n.companyInfo.name} ${U.getLocalizedStrings().cockpit.cockpitHeaderSubsidiaryText}`}if(e.pathname.includes("management/month-end-report/company/")){const i=e.pathname.split("/")[4],n=t.companiesById[i];if(n!=null)return n.companyInfo.name}},Uwe=e=>{switch(e){case"healthMonitor":return"health-monitor";case"taskManager":return"task-manager";case"aiAccountant":return"ai-accountant";case"creditAgent":return"credit-agent";default:return e}},Wcn=e=>{switch(e){case"healthMonitor":return"health monitor";case"taskManager":return"task manager";case"aiAccountant":return"ai accountant";case"creditAgent":return"credit agent";default:return e}};function xfr(e,t){return{updateDownloadStateHandler:i=>{e(aYe(i))},onZeniLogoClick:()=>{t.themeState.toggle()},onLogOutClick:()=>{e(KV()),e(qV(!1)),Ja.clearAll();const i=t.locationHook.state?.origin??"/";t.navigate(i,{replace:!0})},onNewCustomerClick:()=>{t.navigate("/onboarding/new"),Q0?.trackOnboardingNewCustomerStarted()},onThreadClick:(i,n,a)=>{const l=i.entityType.split(".");if(l.length===2){const d=Hxe(l[0]);if(d!=null){const c=Uwe(d);t.navigate(`/${c}`),a(i,n)}else console.warn(`Invalid navigation target in thread: ${l[0]}`)}},onNotificationClick:(i,n,a)=>{const l=i.entityType.split(".");if(i.isGlobalComment&&l.length===2){const d=Hxe(l[0]);if(d!=null){const c=Uwe(d);t.navigate(`/${c}`),a(i,n)}else console.warn(`Invalid navigation target in notification: ${l[0]}`)}}}}function yfr(e,t){const{signedInUser:i,cockpitHeader:n}=t,a=e.tenantState.currentTenantId,d=eL(e)?.companyName??"",c={userId:i?.userId??"",sessionId:i?.zeniSessionId??"",tenantId:a??""};return{signedInUser:i,cockpitHeader:n,downloadState:e.companyViewState.downloadState,downloadParams:{currentTenantCompanyName:d,cockpitEndPoint:`${gX}/cockpitTabs`,authParams:c}}}const wfr=XWe(yfr,xfr)(jYi);function bfr(){const e=YPe(),t=Ja.getSignedInUser(),i=qG(),n=qE(),a=ffr(),l=Lu(p=>sYe(p)),d={tabsFileType:"excel",tabs:["management","subscription","portfolio","onboarding","healthMonitor"],filterByTabs:l.filterByTabs,timezone:lYe()},c=n.pathname.split("/")[1];return xo.jsx(wfr,{locationHook:n,themeState:e,signedInUser:t,cockpitHeader:a,allTabsViews:l,defaultOptions:d,analytics:Q0,currentTab:c,navigate:i})}const vfr=["/management/*","/subscription/*","/onboarding/*","/portfolio/*","/audit/*","/health-monitor/*","/task-manager/*","/ai-accountant/*","/credit-agent/*"];function Cfr({appContent:e}){const t=vfr.filter(i=>eGe(i)).length===0;return xo.jsxs(xo.Fragment,{children:[t?null:xo.jsx(bfr,{}),xo.jsx(xo.Fragment,{children:e})]})}const Afr="cockpit",ZUe="init-enter";function $fr({location:e,visitedUrl:t}){const{pathname:i}=e;return g.useLayoutEffect(()=>{const n=t.get(i||ZUe);Wwe(n!==void 0?n:0)}),null}const kfr=g.memo($fr,(e,t)=>{const{location:i,visitedUrl:n}=e,{location:a}=t,l=i.pathname||ZUe,d=Sfr();return n.set(l,d),!((a.pathname!==i.pathname||a.search!==i.search)&&a.hash==="")}),Wwe=(e=0)=>window.requestAnimationFrame(()=>{window.scrollTo(0,e)}),Sfr=()=>{let e=0;return document!=null&&document.documentElement!==null&&(e=document.documentElement.scrollTop),window.pageYOffset||e},JUe=e=>g.lazy(async()=>{const t=e.toString(),i=Ja.getForceRefreshedComponents(),n=new Set(i),a=n.has(t);try{const l=await e();return n.delete(t),Ja.saveForceRefreshedComponents(Array.from(n)),l}catch(l){throw a||(n.add(t),Ja.saveForceRefreshedComponents(Array.from(n)),location.reload()),l}}),Efr=JUe(()=>K3(()=>import("./ScreenRoutes-Rl6_hirE.js").then(e=>e.S),__vite__mapDeps([14,5,1,6,15,8,16,17,7,2,4,9,11]))),Lfr=JUe(()=>K3(()=>import("./SignInScreen-DDwE3AP-.js"),__vite__mapDeps([18,15,1,6,8,5,16,17,19,20,21,7])));function Ifr(){const e=g.useRef();e.current==null&&(e.current=new Map);const t=qG(),i=qE();return g.useEffect(()=>{gfr()},[]),g.useEffect(()=>{const n="signin/auth";Ja.isSignedIn()===!1&&!i.pathname.includes(n)&&t(n,{replace:!0,state:{...i.state,message:"...",origin:i.pathname}})}),xo.jsxs(Bfr,{children:[xo.jsx(kfr,{visitedUrl:e.current,location:i}),xo.jsx(jfr,{})]})}const jfr=()=>{const e=Ja.isSignedIn(),t=Ja.getSignedInUser(),i=e&&rbe(t),n=Lu(p=>eL(p)),a={userId:t?.userId??"",sessionId:t?.zeniSessionId??"",tenantId:n.tenantId??""},l=Lu(p=>dYe(p)),c=Lu(p=>cYe(p)).map(p=>({companyId:p.companyId,tenantId:p.tenantId,companyName:p.name}));return xo.jsx(dPi,{roomId:Afr,authParams:a,users:l,companies:c,authUrlEndPoint:`${F4.tenantMicroServiceBaseUrl}/1.0/commenting/auth`,fetchZeniUsers:!1,commentingUsersUrlEndPoint:`${F4.tenantMicroServiceBaseUrl}/1.0/users/zeni-users`,autoConnect:i,withRoomProvider:!1,loggedInUser:t,withThreadsProvider:!0,filter:{application:"cockpit"},children:xo.jsx(Mfr,{})})},Mfr=()=>xo.jsx(g.Suspense,{fallback:xo.jsx(Dfr,{children:xo.jsx(yo,{size:"Large",start:!0})}),children:xo.jsxs(tGe,{children:[xo.jsx(LB,{path:"/",element:xo.jsx(oGe,{to:"management",replace:!0})}),xo.jsx(LB,{path:"/signin/auth",element:xo.jsx(Lfr,{})}),xo.jsx(LB,{path:"*",element:xo.jsx(Cfr,{appContent:xo.jsx(Efr,{})})})]})}),Bfr=Fbe("div")``,Dfr=Fbe("div")`
|
|
97434
|
+
`;var G4r=zYe();const Oy=KG(G4r);class Y4r{getSignedInUser(){const t=window.localStorage.getItem(this.ZENI_SESSION_ID);if(t!=null)return this.readEncryptedJSON(this.ZENI_SIGNED_IN_USER,t)}getShowNegativeAmountInParenthesis(){const t=window.localStorage.getItem(this.ZENI_SESSION_ID);return t==null?!1:this.readEncryptedJSON(this.ZENI_SHOW_NEGATIVE_AMOUNT_IN_PARENTHESIS,t)??!1}getShowNegativeAmountInParenthesisPDF(){const t=window.localStorage.getItem(this.ZENI_SESSION_ID);return t==null?!0:this.readEncryptedJSON(this.ZENI_SHOW_NEGATIVE_AMOUNT_IN_PARENTHESIS_PDF,t)??!0}getSignedInUserTenant(t){return this.getSignedInUserTenants()?.find(i=>i.tenantEmailDomain===t)}getSignedInUserTenantWithId(t){return this.getSignedInUserTenants()?.find(i=>i.tenantId===t)}getForceRefreshedComponents(){const t=window.localStorage.getItem(this.ZENI_SESSION_ID);return t==null?[]:this.readEncryptedJSON(this.ZENI_FORCE_REFRESHED_COMPONENTS,t)??[]}saveForceRefreshedComponents(t){const i=window.localStorage.getItem(this.ZENI_SESSION_ID);i!=null?window.localStorage.setItem(this.ZENI_FORCE_REFRESHED_COMPONENTS,this.encrypt(JSON.stringify(t),i)):console.warn("Can't update the force refreshed components when the user is logged out!")}saveSignedInUserWithSession(t,i){if(t==null||i==null)throw new Error("Can't accept nil for user or session Id");window.localStorage.getItem(this.ZENI_SESSION_ID)!==i&&this.clearSessionKeyedEntries(),window.localStorage.setItem(this.ZENI_SESSION_ID,i),window.localStorage.setItem(this.ZENI_SIGNED_IN_USER,this.encrypt(JSON.stringify(t),i))}saveSignedInUserTenants(t,i){const n=i??window.localStorage.getItem(this.ZENI_SESSION_ID);n!=null?window.localStorage.setItem(this.ZENI_SIGNED_IN_USER_TENANTS,this.encrypt(JSON.stringify(t),n)):console.warn("Can't update the setting when the user is logged out!")}saveShowNegativeAmountInParenthesis(t){const i=window.localStorage.getItem(this.ZENI_SESSION_ID);if(i!=null)window.localStorage.setItem(this.ZENI_SHOW_NEGATIVE_AMOUNT_IN_PARENTHESIS,this.encrypt(JSON.stringify(t),i));else throw new Error("Can't update the setting when the user is logged out!")}saveShowNegativeAmountInParenthesisPDF(t){const i=window.localStorage.getItem(this.ZENI_SESSION_ID);if(i!=null)window.localStorage.setItem(this.ZENI_SHOW_NEGATIVE_AMOUNT_IN_PARENTHESIS_PDF,this.encrypt(JSON.stringify(t),i));else throw new Error("Can't update the setting when the user is logged out!")}isSignedIn(){return[this.ZENI_SESSION_ID,this.ZENI_SIGNED_IN_USER].map(i=>window.localStorage.getItem(i)!=null).reduce((i,n)=>i&&n)}clearAll(){this.ALL_IDs.forEach(t=>window.localStorage.removeItem(t))}setTheme(t){const i=window.localStorage.getItem(this.ZENI_SESSION_ID);i!=null&&window.localStorage.setItem(this.ZENI_THEME,this.encrypt(t,i))}getTheme(){const t=window.localStorage.getItem(this.ZENI_SESSION_ID);if(t==null)return;const i=this.readEncryptedString(this.ZENI_THEME,t);if(i!=null){if(i!=="light"&&i!=="dark"){window.localStorage.removeItem(this.ZENI_THEME);return}return i}}encrypt(t,i){return Oy.AES.encrypt(t,i).toString()}decrypt(t,i){try{const n=Oy.AES.decrypt(t,i).toString(Oy.enc.Utf8);return n===""?void 0:n}catch{return}}readEncryptedString(t,i){const n=window.localStorage.getItem(t);if(n==null)return;const a=this.decrypt(n,i);return a==null&&window.localStorage.removeItem(t),a}readEncryptedJSON(t,i){const n=this.readEncryptedString(t,i);if(n!=null)try{const a=JSON.parse(n);if(a===null){window.localStorage.removeItem(t);return}return a}catch{window.localStorage.removeItem(t);return}}getSignedInUserTenants(){const t=window.localStorage.getItem(this.ZENI_SESSION_ID);if(t!=null)return this.readEncryptedJSON(this.ZENI_SIGNED_IN_USER_TENANTS,t)}clearSessionKeyedEntries(){this.SESSION_KEYED_IDs.forEach(t=>window.localStorage.removeItem(t))}ZENI_SESSION_ID="ZENI_SESSION_ID";ZENI_SIGNED_IN_USER="ZENI_SIGNED_IN_USER";ZENI_SIGNED_IN_USER_TENANTS="ZENI_SIGNED_IN_USER_TENANTS";ZENI_SHOW_NEGATIVE_AMOUNT_IN_PARENTHESIS="ZENI_SHOW_NEGATIVE_AMOUNT_IN_PARENTHESIS";ZENI_SHOW_NEGATIVE_AMOUNT_IN_PARENTHESIS_PDF="ZENI_SHOW_NEGATIVE_AMOUNT_IN_PARENTHESIS_PDF";ZENI_THEME="ZENI_THEME";ZENI_FORCE_REFRESHED_COMPONENTS="ZENI_FORCE_REFRESHED_COMPONENTS";SESSION_KEYED_IDs=[this.ZENI_SIGNED_IN_USER_TENANTS,this.ZENI_SHOW_NEGATIVE_AMOUNT_IN_PARENTHESIS,this.ZENI_SHOW_NEGATIVE_AMOUNT_IN_PARENTHESIS_PDF,this.ZENI_THEME,this.ZENI_FORCE_REFRESHED_COMPONENTS];ALL_IDs=[this.ZENI_SESSION_ID,this.ZENI_SIGNED_IN_USER,this.ZENI_SHOW_NEGATIVE_AMOUNT_IN_PARENTHESIS,this.ZENI_SHOW_NEGATIVE_AMOUNT_IN_PARENTHESIS_PDF,this.ZENI_SIGNED_IN_USER_TENANTS,this.ZENI_THEME,this.ZENI_FORCE_REFRESHED_COMPONENTS]}const Ja=new Y4r,K4r=({children:e})=>{const t=jYe("(prefers-color-scheme: dark)"),[i,n]=A.useState({dark:t});g.useEffect(()=>{const p=Ja.getTheme()==null?t:Ja.getTheme()==="dark";i.dark!==p&&n({dark:p})},[i,t]);const a=()=>{const p=!i.dark;Ja.setTheme(p?"dark":"light"),n({...i,dark:p})},l=i.dark?qyo():Kyo(),d=typeof window<"u"?window.__NONCE__:void 0,c=d!=null&&d.length>0?d:void 0;return xo.jsx(p5o,{dark:i.dark,webAppTheme:l,toggle:a,nonce:c,children:e})},q4r=["sandbox","production"],Z4r=e=>R4(e,q4r),J4r=e=>{switch(e){case"DEV":case"QA":case"PUNE":case"SUNNYVALE":case"DELHI":case"MOHALI":return"sandbox";case"PROD":case"NEXT":return"production";default:return"sandbox"}},X4r=["development","staging","production"],efr=e=>R4(e,X4r),tfr=e=>{switch(e){case"QA":case"PUNE":case"SUNNYVALE":case"DELHI":case"MOHALI":return"staging";case"PROD":case"NEXT":return"production";default:return"development"}},ofr=["DEV","QA","PUNE","SUNNYVALE","DELHI","MOHALI","PROD","NEXT"],ifr=e=>R4(e,ofr),wc=ifr("DEV"),Hw=()=>wc==="DEV"||wc==="QA"||wc==="PUNE"||wc==="SUNNYVALE"||wc==="DELHI"||wc==="MOHALI",gX="https://zeni-webapp-dev.uc.r.appspot.com",rfr="63d3a2406505a5737a2b4debdb513f20",Zcn=Z4r(J4r(wc)),nfr=efr(tfr(wc));function afr(e,t){return Oy.AES.decrypt(e,t).toString(Oy.enc.Utf8)}const sfr="ZENI-WEB-APP-",KUe=wc==="DEV"||wc==="QA"?.2:.8,ia={sentryDsn:"",sentryTraceSamplingRate:KUe,googleClientId:"",googleMapsAPIKey:"",microsoftClientId:"",mixpanelToken:"",pusherClientSecret:"",pusherCluster:"",quickbooksKey:"",appUrl:"",featureClientSecret:"",featureClientSecretCockpit:"",cardVaultId:"",stripeKey:"",qboRedirectionUrl:"",mixpanelUrl:"",mixpanelHMUrl:""};let F4,fX;function lfr(e){ia.sentryDsn=e.keys.SENTRY_DSN,ia.sentryTraceSamplingRate=e.keys.SENTRY_TRACE_SAMPLE_RATES!=null?parseInt(e.keys.SENTRY_TRACE_SAMPLE_RATES):KUe,ia.googleClientId=e.keys.GOOGLE_CLIENT_ID,ia.googleMapsAPIKey=e.keys.GOOGLE_MAP_KEY,ia.microsoftClientId=e.keys.MICROSOFT_CLIENT_ID,ia.mixpanelToken=e.keys.MIXPANEL_TOKEN,ia.pusherClientSecret=e.keys.PUSHER_CLIENT_SECRET,ia.pusherCluster=e.keys.PUSHER_CLUSTER,ia.quickbooksKey=e.keys.QUICKBOOK_TOKEN,ia.appUrl=e.keys.WEB_ENDPOINT,ia.featureClientSecret=e.keys.STATSIG_CLIENT_SECRET,ia.featureClientSecretCockpit=e.keys.STATSIG_CLIENT_SECRET_COCKPIT,ia.cardVaultId=e.keys.UNIT_VAULT_ID,ia.stripeKey=e.keys.STRIPE_KEY,ia.qboRedirectionUrl=e.keys.QBO_URL,ia.mixpanelUrl=e.keys.MIXPANEL_URL,ia.mixpanelHMUrl=e.keys.MIXPANEL_HM_URL,fX=e.externalEndPoints,F4=e.apiEndPoints,dfr()}function dfr(){try{const e=new Set;if(F4!=null){for(const t of Object.values(F4))if(typeof t=="string"&&t.startsWith("http"))try{e.add(new URL(t).origin)}catch{}}for(const t of e){const i=document.createElement("link");i.rel="preconnect",i.href=t,i.crossOrigin="anonymous",document.head.appendChild(i)}}catch{}}async function cfr(){const t=encodeURIComponent(JSON.stringify({environment:wc}));try{const i=await fetch(`${gX}/api/keys?query=${t}`);if(!i.ok)throw new Error(`HTTP error! status: ${i.status}`);return await i.json()}catch(i){return console.error("Error fetching details:",i),null}}let _we=!1;function py(){_we||(nu.init(rfr,{api_host:fX.mixpanelBaseUrl,ignore_dnt:!0,store_google:!1,track_marketing:!1}),_we=!0)}let Vwe=!1,Qwe=!1;function qUe(){if(Vwe)return;Vwe=!0,py();const e=zs.extractUtmParamsFromUrl();Object.keys(e).length>0&&nu.register(e),Hw()&&console.log(`[UTM] first-touch bootstrap: ${JSON.stringify(e)}`)}function pfr(){return nu?.persistence?.props??null}const ufr=new Set(["dclid","fbclid","gclid","ko_click_id","li_fat_id","msclkid","sccid","ttclid","twclid","wbraid"]);function hfr(){const e=pfr();if(e==null)return;const t=Object.keys(e).filter(i=>i.startsWith("utm_")||ufr.has(i));for(const i of t)nu.unregister(i);Hw()&&t.length>0&&console.log(`[UTM] cleared from cookie: ${JSON.stringify(t)}`)}function mfr(){Qwe||(Qwe=!0,hfr())}class Y3{identify(t,i){if(py(),this.#o=t,t!=null&&i!=null&&(Y3.#t==null||nYe({userId:t,traits:i},Y3.#t)!==!0)){const{$email:n,...a}={...i};nu.identify(t),n&&n!=null&&nu.people.set_once({$email:n}),nu.people.set(a),Y3.#t={userId:t,traits:i},Hw()&&console.log(`*** Called people set with userId ${t} traits ${JSON.stringify(i)} `)}}identifyUserAndCompany(t,i,n,a,l){throw Error("Use identify in the web-app!!")}track(t,i){if(py(),this.#o==null){console.error("user is not identified :(, so can not fire event");return}qUe();const n={distinct_id:this.#o,...i};nu.track(t,n),mfr(),Hw()&&console.log(`*** firing ${t} with props ${JSON.stringify(i)}`)}alias(t,i){py(),nu.alias(t,i)}reset(){py(),nu.reset(),this.#o=void 0,Y3.#t=void 0}static get analytics(){return this.#e}static#e=new zs.Analytics(new Y3);static#t;#o}const Q0=Y3.analytics;function gfr(){qUe()}const ffr=()=>{const e=qE(),t=Lu(i=>i.companyState);if(e.pathname.includes("/management/parent/")){const i=e.pathname.split("/")[3],n=t.companiesById[i];if(n!=null)return`${n.companyInfo.name} ${U.getLocalizedStrings().cockpit.cockpitHeaderSubsidiaryText}`}if(e.pathname.includes("management/month-end-report/company/")){const i=e.pathname.split("/")[4],n=t.companiesById[i];if(n!=null)return n.companyInfo.name}},Uwe=e=>{switch(e){case"healthMonitor":return"health-monitor";case"taskManager":return"task-manager";case"aiAccountant":return"ai-accountant";case"creditAgent":return"credit-agent";default:return e}},Jcn=e=>{switch(e){case"healthMonitor":return"health monitor";case"taskManager":return"task manager";case"aiAccountant":return"ai accountant";case"creditAgent":return"credit agent";default:return e}};function xfr(e,t){return{updateDownloadStateHandler:i=>{e(aYe(i))},onZeniLogoClick:()=>{t.themeState.toggle()},onLogOutClick:()=>{e(KV()),e(qV(!1)),Ja.clearAll();const i=t.locationHook.state?.origin??"/";t.navigate(i,{replace:!0})},onNewCustomerClick:()=>{t.navigate("/onboarding/new"),Q0?.trackOnboardingNewCustomerStarted()},onThreadClick:(i,n,a)=>{const l=i.entityType.split(".");if(l.length===2){const d=Hxe(l[0]);if(d!=null){const c=Uwe(d);t.navigate(`/${c}`),a(i,n)}else console.warn(`Invalid navigation target in thread: ${l[0]}`)}},onNotificationClick:(i,n,a)=>{const l=i.entityType.split(".");if(i.isGlobalComment&&l.length===2){const d=Hxe(l[0]);if(d!=null){const c=Uwe(d);t.navigate(`/${c}`),a(i,n)}else console.warn(`Invalid navigation target in notification: ${l[0]}`)}}}}function yfr(e,t){const{signedInUser:i,cockpitHeader:n}=t,a=e.tenantState.currentTenantId,d=eL(e)?.companyName??"",c={userId:i?.userId??"",sessionId:i?.zeniSessionId??"",tenantId:a??""};return{signedInUser:i,cockpitHeader:n,downloadState:e.companyViewState.downloadState,downloadParams:{currentTenantCompanyName:d,cockpitEndPoint:`${gX}/cockpitTabs`,authParams:c}}}const wfr=XWe(yfr,xfr)(jYi);function bfr(){const e=YPe(),t=Ja.getSignedInUser(),i=qG(),n=qE(),a=ffr(),l=Lu(p=>sYe(p)),d={tabsFileType:"excel",tabs:["management","subscription","portfolio","onboarding","healthMonitor"],filterByTabs:l.filterByTabs,timezone:lYe()},c=n.pathname.split("/")[1];return xo.jsx(wfr,{locationHook:n,themeState:e,signedInUser:t,cockpitHeader:a,allTabsViews:l,defaultOptions:d,analytics:Q0,currentTab:c,navigate:i})}const vfr=["/management/*","/subscription/*","/onboarding/*","/portfolio/*","/audit/*","/health-monitor/*","/task-manager/*","/ai-accountant/*","/credit-agent/*"];function Cfr({appContent:e}){const t=vfr.filter(i=>eGe(i)).length===0;return xo.jsxs(xo.Fragment,{children:[t?null:xo.jsx(bfr,{}),xo.jsx(xo.Fragment,{children:e})]})}const Afr="cockpit",ZUe="init-enter";function $fr({location:e,visitedUrl:t}){const{pathname:i}=e;return g.useLayoutEffect(()=>{const n=t.get(i||ZUe);Wwe(n!==void 0?n:0)}),null}const kfr=g.memo($fr,(e,t)=>{const{location:i,visitedUrl:n}=e,{location:a}=t,l=i.pathname||ZUe,d=Sfr();return n.set(l,d),!((a.pathname!==i.pathname||a.search!==i.search)&&a.hash==="")}),Wwe=(e=0)=>window.requestAnimationFrame(()=>{window.scrollTo(0,e)}),Sfr=()=>{let e=0;return document!=null&&document.documentElement!==null&&(e=document.documentElement.scrollTop),window.pageYOffset||e},JUe=e=>g.lazy(async()=>{const t=e.toString(),i=Ja.getForceRefreshedComponents(),n=new Set(i),a=n.has(t);try{const l=await e();return n.delete(t),Ja.saveForceRefreshedComponents(Array.from(n)),l}catch(l){throw a||(n.add(t),Ja.saveForceRefreshedComponents(Array.from(n)),location.reload()),l}}),Efr=JUe(()=>K3(()=>import("./ScreenRoutes-B8uhbx-C.js").then(e=>e.S),__vite__mapDeps([14,5,1,6,15,8,16,17,7,2,4,9,11]))),Lfr=JUe(()=>K3(()=>import("./SignInScreen-_SETUtTo.js"),__vite__mapDeps([18,15,1,6,8,5,16,17,19,20,21,7])));function Ifr(){const e=g.useRef();e.current==null&&(e.current=new Map);const t=qG(),i=qE();return g.useEffect(()=>{gfr()},[]),g.useEffect(()=>{const n="signin/auth";Ja.isSignedIn()===!1&&!i.pathname.includes(n)&&t(n,{replace:!0,state:{...i.state,message:"...",origin:i.pathname}})}),xo.jsxs(Bfr,{children:[xo.jsx(kfr,{visitedUrl:e.current,location:i}),xo.jsx(jfr,{})]})}const jfr=()=>{const e=Ja.isSignedIn(),t=Ja.getSignedInUser(),i=e&&rbe(t),n=Lu(p=>eL(p)),a={userId:t?.userId??"",sessionId:t?.zeniSessionId??"",tenantId:n.tenantId??""},l=Lu(p=>dYe(p)),c=Lu(p=>cYe(p)).map(p=>({companyId:p.companyId,tenantId:p.tenantId,companyName:p.name}));return xo.jsx(dPi,{roomId:Afr,authParams:a,users:l,companies:c,authUrlEndPoint:`${F4.tenantMicroServiceBaseUrl}/1.0/commenting/auth`,fetchZeniUsers:!1,commentingUsersUrlEndPoint:`${F4.tenantMicroServiceBaseUrl}/1.0/users/zeni-users`,autoConnect:i,withRoomProvider:!1,loggedInUser:t,withThreadsProvider:!0,filter:{application:"cockpit"},children:xo.jsx(Mfr,{})})},Mfr=()=>xo.jsx(g.Suspense,{fallback:xo.jsx(Dfr,{children:xo.jsx(yo,{size:"Large",start:!0})}),children:xo.jsxs(tGe,{children:[xo.jsx(LB,{path:"/",element:xo.jsx(oGe,{to:"management",replace:!0})}),xo.jsx(LB,{path:"/signin/auth",element:xo.jsx(Lfr,{})}),xo.jsx(LB,{path:"*",element:xo.jsx(Cfr,{appContent:xo.jsx(Efr,{})})})]})}),Bfr=Fbe("div")``,Dfr=Fbe("div")`
|
|
97409
97435
|
display: flex;
|
|
97410
97436
|
flex: 1 1 auto;
|
|
97411
97437
|
flex-direction: row;
|
|
@@ -97416,4 +97442,4 @@ ${e}`,DJi=e=>g.createElement("svg",{width:38,height:39,viewBox:"0 0 38 39",fill:
|
|
|
97416
97442
|
background-color: ${e=>e.theme.colors.background};
|
|
97417
97443
|
`;function Pfr(){U.updateAppLocaleID("en"),Rfr();const e=Ofr(),[t,i]=g.useState(!1),n=g.useCallback(l=>{l.data?.type==="UPDATE_READY"?i(!0):l.data?.type==="HIDE_UPDATE_POPUP"&&i(!1)},[]);g.useEffect(()=>("serviceWorker"in navigator&&(navigator.serviceWorker.addEventListener("message",n),navigator.serviceWorker.addEventListener("controllerchange",()=>{i(!1)})),()=>{navigator.serviceWorker.removeEventListener("message",n)}),[n]);const a=()=>{i(!1),window.location.reload()};return xo.jsx(K4r,{children:xo.jsx(iGe,{store:e,children:xo.jsx(gIt,{children:xo.jsxs(OXt,{children:[t?xo.jsx(Ico,{onPrimaryClick:a}):null,xo.jsx(zfr,{})]})})})})}const jx=new pYe,Tfr=()=>{const e=Ja.getSignedInUser(),t=Lu(I=>eL(I)),i=Lu(I=>gYe(I,t.companyId)),n=qE(),a=qG(),l=rGe(),[d,c]=g.useState(null),p=Vwi(e?.userId),u=t?.excludedResources?.fetchState=="Completed"?t.excludedResources.resources:[];g.useEffect(()=>()=>{l(YX())},[]);const h=Lu(I=>fYe(I)),m=t?.externalConnections?.accounting[0]?.connectionName,f=()=>{l(YX())},x=g.useMemo(()=>xYe(t.userRole),[t.userRole]),y=Lu(I=>I.companyViewState.zeniUsers),w=g.useMemo(()=>{const I=y.fetchState==="Error"&&yYe(y.error);return I&&console.warn("Auto-logout triggered due to invalid session"),I},[y.fetchState,y.error]),b=g.useMemo(()=>{const I=y.fetchState==="Error"&&wYe(y.error)===!0;return I&&console.warn("Page is not accessible, show 404"),I},[y.fetchState,y.error]),C=g.useRef(!1);g.useEffect(()=>(w&&!C.current&&(C.current=!0,k()),()=>{C.current=!1}),[w]),g.useEffect(()=>{b&&window.open("/page-not-found","_self")},[b]);const k=g.useCallback(()=>{c(null),jx.stop(),l(KV()),l(qV(!1)),Ja.clearAll();const I=n.state?.origin??"/";a(I,{replace:!0})},[l,c,n,a]),E=g.useCallback((I="manual")=>{I==="auto-logout"?Mwo({idleTimeoutMinutes:p.idleTimeoutMinutes}):Pwo(),c(null),jx.stop(),l(KV()),l(qV(!1)),Ja.clearAll(),window.location.href="/signin/auth"},[l,c,p.idleTimeoutMinutes]);g.useEffect(()=>{if(e?.zeniSessionId!=null)return jx.start({idleTimeoutMinutes:p.idleTimeoutMinutes,warningDurationSeconds:p.warningDurationSeconds,heartbeatIntervalMinutes:p.heartbeatIntervalMinutes,isAutoLogoutEnabled:p.isAutoLogoutEnabled},{onHeartbeat:()=>l(bYe()),onWarningStart:I=>{Q0.trackSessionTimeoutPopupShown(I),c(I)},onWarningTick:c,onAutoLogout:()=>{Q0.trackSessionTimeoutAutoLogout(),E("auto-logout")},onSessionExtended:()=>c(null)}),()=>jx.stop()},[e?.zeniSessionId,p.isAutoLogoutEnabled,p.idleTimeoutMinutes,p.warningDurationSeconds,p.heartbeatIntervalMinutes,l,E,c]);const S=g.useMemo(()=>Ja.getSignedInUser(),[]),j=g.useMemo(()=>({userId:S?.userId??"",sessionId:S?.zeniSessionId??"",tenantId:t.tenantId??""}),[S,t.tenantId]);return xo.jsxs(JXt,{globalInfo:{loggedInUser:e,loggedInUserRole:t?.userRole,excludedResources:u,loggedInUserRoleMap:x,currentTenant:t,connectionName:m,controllersList:i},children:[xo.jsx(VXt,{toolkit:{analytics:Q0,sentry:CWe,authParams:j},children:xo.jsxs(XJt,{endPoint:{url:gX},children:[xo.jsx(z3i,{isOnDashboard:!1,showSnackbar:h.isSnackbarOpen,snackbar:{message:h.message,messageType:h.messageType,onRemoveSnackbar:f,showStatusIcon:h.showStatusIcon}}),xo.jsx(Ifr,{})]})}),d!=null&&e!=null?xo.jsx(dGi,{secondsRemaining:d,onContinueSession:()=>{Q0.trackSessionTimeoutClicked("continue",d),jx.continueSession()},onSignOut:()=>{Q0.trackSessionTimeoutClicked("sign_out",d),E()}}):null]})},zfr=()=>{const e=Ja.isSignedIn(),i=Lu(n=>eL(n)).companyId;return xo.jsx(aio,{isUserSignedIn:e,featureGateCustomFields:{companyId:i},zeniFeatureConfig:{currentFeatureEnv:nfr,featureClientSecret:ia.featureClientSecretCockpit,providerEndPoint:fX.statsigBaseUrl},children:xo.jsx(Tfr,{})})},Ffr=bWe(Pfr);function Rfr(){console.log("Initialize any 3rd party libs!")}let QV=null;function Ofr(){return QV===null&&(QV=Nfr(),uYe().catch(e=>{console.error("Failed to load feature epics:",e),vWe(e,{tags:{critical:"true",module:"epicManager"}}),alert(`The application failed to load required modules. Some features may not work correctly.
|
|
97418
97444
|
|
|
97419
|
-
Please refresh the page to try again.`)})),QV}function Nfr(){console.warn(`initializing epic state with url ${JSON.stringify(F4)}`);const e=Ja.getSignedInUser(),t=hYe(F4,e?.userId,e?.zeniSessionId,void 0,Hw()),i=mYe();return i.userId!=null&&Q0.identify(i.userId,{tenant_id:i.tenantId}),t}const Gwe="zeni-chunk-reload-at",Hfr=6e4,_fr=["Failed to fetch dynamically imported module","error loading dynamically imported module","Importing a module script failed"];function Vfr(){window.addEventListener("vite:preloadError",e=>{const t=e;Ywe(t.payload)&&t.preventDefault()}),window.addEventListener("unhandledrejection",e=>{Qfr(e.reason)&&Ywe(e.reason)})}function Ywe(e){try{const t=Number(sessionStorage.getItem(Gwe))||0;if(Date.now()-t<Hfr)return!1;sessionStorage.setItem(Gwe,String(Date.now()))}catch{return!1}return console.warn("[chunk-load] Stale chunk detected — hard-reloading:",e),window.location.reload(),!0}function Qfr(e){const t=String(e?.message??e??"");return _fr.some(i=>t.includes(i))}const Ufr=!!(window.location.hostname==="localhost"||window.location.hostname==="[::1]"||window.location.hostname.match(/^127(?:\.(?:25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)){3}$/)),Wfr="
|
|
97445
|
+
Please refresh the page to try again.`)})),QV}function Nfr(){console.warn(`initializing epic state with url ${JSON.stringify(F4)}`);const e=Ja.getSignedInUser(),t=hYe(F4,e?.userId,e?.zeniSessionId,void 0,Hw()),i=mYe();return i.userId!=null&&Q0.identify(i.userId,{tenant_id:i.tenantId}),t}const Gwe="zeni-chunk-reload-at",Hfr=6e4,_fr=["Failed to fetch dynamically imported module","error loading dynamically imported module","Importing a module script failed"];function Vfr(){window.addEventListener("vite:preloadError",e=>{const t=e;Ywe(t.payload)&&t.preventDefault()}),window.addEventListener("unhandledrejection",e=>{Qfr(e.reason)&&Ywe(e.reason)})}function Ywe(e){try{const t=Number(sessionStorage.getItem(Gwe))||0;if(Date.now()-t<Hfr)return!1;sessionStorage.setItem(Gwe,String(Date.now()))}catch{return!1}return console.warn("[chunk-load] Stale chunk detected — hard-reloading:",e),window.location.reload(),!0}function Qfr(e){const t=String(e?.message??e??"");return _fr.some(i=>t.includes(i))}const Ufr=!!(window.location.hostname==="localhost"||window.location.hostname==="[::1]"||window.location.hostname.match(/^127(?:\.(?:25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)){3}$/)),Wfr="DEV",Gfr="https://zeni-webapp-dev.uc.r.appspot.com",Kwe=`/service-worker.js?v=${Date.now()}&env=${Wfr}&endpoint=${encodeURIComponent(Gfr)}`;function Yfr(e){if("serviceWorker"in navigator){if(new URL("https://dev.app.zeni.ai",window.location.href).origin!==window.location.origin)return;window.addEventListener("load",()=>{Ufr?Kfr(Kwe):XUe(Kwe)})}}function XUe(e,t){navigator.serviceWorker.register(e).then(i=>{i.onupdatefound=()=>{const n=i.installing;n!=null&&(n.onstatechange=()=>{n.state==="installed"&&(navigator.serviceWorker.controller?(console.log("New content available; will be used when all tabs are closed."),navigator.serviceWorker.controller?.postMessage({type:"UPDATE_READY"}),i.waiting?.postMessage({type:"SKIP_WAITING"})):console.log("Content is cached for offline use."))})},i.waiting&&i.waiting.postMessage({type:"SKIP_WAITING"}),navigator.serviceWorker.addEventListener("controllerchange",()=>{console.log("New service worker activated."),i.active?.postMessage({type:"CLIENTS_CLAIM"})})}).catch(i=>{console.error("Error during service worker registration:",i)})}function Kfr(e,t){fetch(e,{headers:{"Service-Worker":"script"}}).then(i=>{const n=i.headers.get("content-type");i.status===404||n!=null&&!n.includes("javascript")?navigator.serviceWorker.ready.then(a=>{a.unregister().then(()=>window.location.reload())}):XUe(e)}).catch(()=>{console.log("No internet connection found. App is running in offline mode.")})}const qfr=Ja.getSignedInUser(),Zfr=qfr?.zeniSessionId;async function Jfr(){try{const e=await cfr(),t=afr(e,sfr+wc);lfr(JSON.parse(t)),RYe.createRoot(document.getElementById("root")).render(xo.jsx(A.StrictMode,{children:xo.jsx(nGe,{basename:"/cockpit",children:xo.jsx(Ffr,{})})})),Xfr()}catch(e){console.error("Error initializing app:",e)}}function Xfr(){const e=()=>{AWe({dsn:ia.sentryDsn,integrations:[$We(),kWe({maskAllText:!0,blockAllMedia:!0})],tracesSampleRate:ia.sentryTraceSamplingRate,replaysSessionSampleRate:0,replaysOnErrorSampleRate:1,beforeSendTransaction(t){return t.breadcrumbs&&(t.breadcrumbs=t.breadcrumbs.filter(i=>i.category!=="console"?!0:(i.message??"").toLowerCase().includes("called people set")||Array.isArray(i.data?.arguments)&&i.data.arguments.some(a=>typeof a=="string"&&a.toLowerCase().includes("called people set"))?!1:(Array.isArray(i.data?.arguments)&&(i.data.arguments=i.data.arguments.map(a=>{if(typeof a=="string"&&a.includes("user_roles"))try{const l=a.match(/\{.*\}/s);if(l!==null){const d=JSON.parse(l[0]);if(d.user_roles!=null)return delete d.user_roles,a.replace(l[0],JSON.stringify(d))}}catch{}return a})),!0))),t}}),SWe("session-id",Zfr)};typeof requestIdleCallback=="function"?requestIdleCallback(e):setTimeout(e,0)}Vfr();Jfr();Yfr();export{L as $,Xoo as A,zcn as B,ADr as C,_Sr as D,Fcn as E,ovr as F,WBe as G,_cn as H,Pcn as I,Gcn as J,Hcn as K,JUe as L,Dcn as M,ivr as N,ws as O,gX as P,Wcn as Q,Bcn as R,cPi as S,qcn as T,Ncn as U,Ocn as V,Dj as W,Ycn as X,Qcn as Y,Ucn as Z,Rcn as _,Q0 as a,Uwe as b,Tcn as c,ia as d,hWr as e,U as f,Jcn as g,hh as h,yo as i,Zcn as j,zs as k,Qyo as l,v as m,o as n,je as o,H9r as p,C5r as q,Vcn as r,KOr as s,qOr as t,gfr as u,uSr as v,Ef as w,Kcn as x,HSr as y,Ja as z};
|