@accounter/client 0.0.7-alpha-20250918073522-d2dc516f07d7d779e694211c83c2e10c648a25ac → 0.0.7-alpha-20250918074155-11e13b936e7ade13c8c711762b598f32497843e4
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/CHANGELOG.md
CHANGED
|
@@ -812,7 +812,7 @@ T* `):Y.join(` Tj
|
|
|
812
812
|
endobj\r
|
|
813
813
|
`},n.outline.count_r=function(r,i){for(var a=0;a<i.children.length;a++)r.count++,this.count_r(r,i.children[a]);return r.count}}])})(Wn.API),(function(e){var t=[192,193,194,195,196,197,198,199];e.processJPEG=function(n,r,i,a,o,s){var l,c=this.decode.DCT_DECODE,u=null;if(typeof n=="string"||this.__addimage__.isArrayBuffer(n)||this.__addimage__.isArrayBufferView(n)){switch(n=o||n,n=this.__addimage__.isArrayBuffer(n)?new Uint8Array(n):n,l=(function(f){for(var h,m=256*f.charCodeAt(4)+f.charCodeAt(5),p=f.length,A={width:0,height:0,numcomponents:1},v=4;v<p;v+=2){if(v+=m,t.indexOf(f.charCodeAt(v+1))!==-1){h=256*f.charCodeAt(v+5)+f.charCodeAt(v+6),A={width:256*f.charCodeAt(v+7)+f.charCodeAt(v+8),height:h,numcomponents:f.charCodeAt(v+9)};break}m=256*f.charCodeAt(v+2)+f.charCodeAt(v+3)}return A})(n=this.__addimage__.isArrayBufferView(n)?this.__addimage__.arrayBufferToBinaryString(n):n),l.numcomponents){case 1:s=this.color_spaces.DEVICE_GRAY;break;case 4:s=this.color_spaces.DEVICE_CMYK;break;case 3:s=this.color_spaces.DEVICE_RGB}u={data:n,width:l.width,height:l.height,colorSpace:s,bitsPerComponent:8,filter:c,index:r,alias:i}}return u}})(Wn.API),Wn.API.processPNG=function(e,t,n,r){if(this.__addimage__.isArrayBuffer(e)&&(e=new Uint8Array(e)),this.__addimage__.isArrayBufferView(e)){var i,a=gZt(e,{checkCrc:!0}),o=a.width,s=a.height,l=a.channels,c=a.palette,u=a.depth;i=c&&l===1?(function(E){for(var D=E.width,T=E.height,P=E.data,O=E.palette,B=E.depth,M=!1,$=[],U=[],j=void 0,V=!1,Q=0,X=0;X<O.length;X++){var Z=t1e(O[X],4),le=Z[0],H=Z[1],G=Z[2],W=Z[3];$.push(le,H,G),W!=null&&(W===0?(Q++,U.length<1&&U.push(X)):W<255&&(V=!0))}if(V||Q>1){M=!0,U=void 0;var te=D*T;j=new Uint8Array(te);for(var re=new DataView(P.buffer),ne=0;ne<te;ne++){var de=KH(re,ne,B),he=t1e(O[de],4)[3];j[ne]=he}}return{colorSpace:"Indexed",colorsPerPixel:1,colorBytes:P,alphaBytes:j,needSMask:M,palette:$,mask:U}})(a):l===2||l===4?(function(E){for(var D=E.data,T=E.width,P=E.height,O=E.channels,B=E.depth,M=O===2?"DeviceGray":"DeviceRGB",$=O-1,U=T*P,j=$,V=U*j,Q=1*U,X=Math.ceil(V*B/8),Z=Math.ceil(Q*B/8),le=new Uint8Array(X),H=new Uint8Array(Z),G=new DataView(D.buffer),W=new DataView(le.buffer),te=new DataView(H.buffer),re=!1,ne=0;ne<U;ne++){for(var de=ne*O,he=0;he<j;he++)owe(W,KH(G,de+he,B),ne*j+he,B);var pe=KH(G,de+j,B);pe<(1<<B)-1&&(re=!0),owe(te,pe,1*ne,B)}return{colorSpace:M,colorsPerPixel:$,colorBytes:le,alphaBytes:H,needSMask:re}})(a):(function(E){var D=E.data,T=E.channels===1?"DeviceGray":"DeviceRGB";return{colorSpace:T,colorsPerPixel:T==="DeviceGray"?1:3,colorBytes:D instanceof Uint8Array?D:new Uint8Array(D.buffer),needSMask:!1}})(a);var f,h,m,p=i,A=p.colorSpace,v=p.colorsPerPixel,y=p.colorBytes,x=p.alphaBytes,k=p.needSMask,S=p.palette,C=p.mask,N=null;return r!==Wn.API.image_compression.NONE&&typeof qX=="function"?(N=(function(E){var D;switch(E){case Wn.API.image_compression.FAST:D=11;break;case Wn.API.image_compression.MEDIUM:D=13;break;case Wn.API.image_compression.SLOW:D=14;break;default:D=12}return D})(r),f=this.decode.FLATE_DECODE,h="/Predictor ".concat(N," "),e=twe(y,o*v,v,r),k&&(m=twe(x,o,1,r))):(f=void 0,h="",e=y,k&&(m=x)),h+="/Colors ".concat(v," /BitsPerComponent ").concat(u," /Columns ").concat(o),(this.__addimage__.isArrayBuffer(e)||this.__addimage__.isArrayBufferView(e))&&(e=this.__addimage__.arrayBufferToBinaryString(e)),(m&&this.__addimage__.isArrayBuffer(m)||this.__addimage__.isArrayBufferView(m))&&(m=this.__addimage__.arrayBufferToBinaryString(m)),{alias:n,data:e,index:t,filter:f,decodeParameters:h,transparency:C,palette:S,sMask:m,predictor:N,width:o,height:s,bitsPerComponent:u,colorSpace:A}}},(function(e){e.processGIF89A=function(t,n,r,i){var a=new RZt(t),o=a.width,s=a.height,l=[];a.decodeAndBlitFrameRGBA(0,l);var c={data:l,width:o,height:s},u=new YH(100).encode(c,100);return e.processJPEG.call(this,u,n,r,i)},e.processGIF87A=e.processGIF89A})(Wn.API),xh.prototype.parseHeader=function(){if(this.fileSize=this.datav.getUint32(this.pos,!0),this.pos+=4,this.reserved=this.datav.getUint32(this.pos,!0),this.pos+=4,this.offset=this.datav.getUint32(this.pos,!0),this.pos+=4,this.headerSize=this.datav.getUint32(this.pos,!0),this.pos+=4,this.width=this.datav.getUint32(this.pos,!0),this.pos+=4,this.height=this.datav.getInt32(this.pos,!0),this.pos+=4,this.planes=this.datav.getUint16(this.pos,!0),this.pos+=2,this.bitPP=this.datav.getUint16(this.pos,!0),this.pos+=2,this.compress=this.datav.getUint32(this.pos,!0),this.pos+=4,this.rawSize=this.datav.getUint32(this.pos,!0),this.pos+=4,this.hr=this.datav.getUint32(this.pos,!0),this.pos+=4,this.vr=this.datav.getUint32(this.pos,!0),this.pos+=4,this.colors=this.datav.getUint32(this.pos,!0),this.pos+=4,this.importantColors=this.datav.getUint32(this.pos,!0),this.pos+=4,this.bitPP===16&&this.is_with_alpha&&(this.bitPP=15),this.bitPP<15){var e=this.colors===0?1<<this.bitPP:this.colors;this.palette=new Array(e);for(var t=0;t<e;t++){var n=this.datav.getUint8(this.pos++,!0),r=this.datav.getUint8(this.pos++,!0),i=this.datav.getUint8(this.pos++,!0),a=this.datav.getUint8(this.pos++,!0);this.palette[t]={red:i,green:r,blue:n,quad:a}}}this.height<0&&(this.height*=-1,this.bottom_up=!1)},xh.prototype.parseBGR=function(){this.pos=this.offset;try{var e="bit"+this.bitPP,t=this.width*this.height*4;this.data=new Uint8Array(t),this[e]()}catch(n){ma.log("bit decode error:"+n)}},xh.prototype.bit1=function(){var e,t=Math.ceil(this.width/8),n=t%4;for(e=this.height-1;e>=0;e--){for(var r=this.bottom_up?e:this.height-1-e,i=0;i<t;i++)for(var a=this.datav.getUint8(this.pos++,!0),o=r*this.width*4+8*i*4,s=0;s<8&&8*i+s<this.width;s++){var l=this.palette[a>>7-s&1];this.data[o+4*s]=l.blue,this.data[o+4*s+1]=l.green,this.data[o+4*s+2]=l.red,this.data[o+4*s+3]=255}n!==0&&(this.pos+=4-n)}},xh.prototype.bit4=function(){for(var e=Math.ceil(this.width/2),t=e%4,n=this.height-1;n>=0;n--){for(var r=this.bottom_up?n:this.height-1-n,i=0;i<e;i++){var a=this.datav.getUint8(this.pos++,!0),o=r*this.width*4+2*i*4,s=a>>4,l=15&a,c=this.palette[s];if(this.data[o]=c.blue,this.data[o+1]=c.green,this.data[o+2]=c.red,this.data[o+3]=255,2*i+1>=this.width)break;c=this.palette[l],this.data[o+4]=c.blue,this.data[o+4+1]=c.green,this.data[o+4+2]=c.red,this.data[o+4+3]=255}t!==0&&(this.pos+=4-t)}},xh.prototype.bit8=function(){for(var e=this.width%4,t=this.height-1;t>=0;t--){for(var n=this.bottom_up?t:this.height-1-t,r=0;r<this.width;r++){var i=this.datav.getUint8(this.pos++,!0),a=n*this.width*4+4*r;if(i<this.palette.length){var o=this.palette[i];this.data[a]=o.red,this.data[a+1]=o.green,this.data[a+2]=o.blue,this.data[a+3]=255}else this.data[a]=255,this.data[a+1]=255,this.data[a+2]=255,this.data[a+3]=255}e!==0&&(this.pos+=4-e)}},xh.prototype.bit15=function(){for(var e=this.width%3,t=parseInt("11111",2),n=this.height-1;n>=0;n--){for(var r=this.bottom_up?n:this.height-1-n,i=0;i<this.width;i++){var a=this.datav.getUint16(this.pos,!0);this.pos+=2;var o=(a&t)/t*255|0,s=(a>>5&t)/t*255|0,l=(a>>10&t)/t*255|0,c=a>>15?255:0,u=r*this.width*4+4*i;this.data[u]=l,this.data[u+1]=s,this.data[u+2]=o,this.data[u+3]=c}this.pos+=e}},xh.prototype.bit16=function(){for(var e=this.width%3,t=parseInt("11111",2),n=parseInt("111111",2),r=this.height-1;r>=0;r--){for(var i=this.bottom_up?r:this.height-1-r,a=0;a<this.width;a++){var o=this.datav.getUint16(this.pos,!0);this.pos+=2;var s=(o&t)/t*255|0,l=(o>>5&n)/n*255|0,c=(o>>11)/t*255|0,u=i*this.width*4+4*a;this.data[u]=c,this.data[u+1]=l,this.data[u+2]=s,this.data[u+3]=255}this.pos+=e}},xh.prototype.bit24=function(){for(var e=this.height-1;e>=0;e--){for(var t=this.bottom_up?e:this.height-1-e,n=0;n<this.width;n++){var r=this.datav.getUint8(this.pos++,!0),i=this.datav.getUint8(this.pos++,!0),a=this.datav.getUint8(this.pos++,!0),o=t*this.width*4+4*n;this.data[o]=a,this.data[o+1]=i,this.data[o+2]=r,this.data[o+3]=255}this.pos+=this.width%4}},xh.prototype.bit32=function(){for(var e=this.height-1;e>=0;e--)for(var t=this.bottom_up?e:this.height-1-e,n=0;n<this.width;n++){var r=this.datav.getUint8(this.pos++,!0),i=this.datav.getUint8(this.pos++,!0),a=this.datav.getUint8(this.pos++,!0),o=this.datav.getUint8(this.pos++,!0),s=t*this.width*4+4*n;this.data[s]=a,this.data[s+1]=i,this.data[s+2]=r,this.data[s+3]=o}},xh.prototype.getData=function(){return this.data},(function(e){e.processBMP=function(t,n,r,i){var a=new xh(t,!1),o=a.width,s=a.height,l={data:a.getData(),width:o,height:s},c=new YH(100).encode(l,100);return e.processJPEG.call(this,c,n,r,i)}})(Wn.API),lwe.prototype.getData=function(){return this.data},(function(e){e.processWEBP=function(t,n,r,i){var a=new lwe(t),o=a.width,s=a.height,l={data:a.getData(),width:o,height:s},c=new YH(100).encode(l,100);return e.processJPEG.call(this,c,n,r,i)}})(Wn.API),Wn.API.processRGBA=function(e,t,n){for(var r=e.data,i=r.length,a=new Uint8Array(i/4*3),o=new Uint8Array(i/4),s=0,l=0,c=0;c<i;c+=4){var u=r[c],f=r[c+1],h=r[c+2],m=r[c+3];a[s++]=u,a[s++]=f,a[s++]=h,o[l++]=m}var p=this.__addimage__.arrayBufferToBinaryString(a);return{alpha:this.__addimage__.arrayBufferToBinaryString(o),data:p,index:t,alias:n,colorSpace:"DeviceRGB",bitsPerComponent:8,width:e.width,height:e.height}},Wn.API.setLanguage=function(e){return this.internal.languageSettings===void 0&&(this.internal.languageSettings={},this.internal.languageSettings.isSubscribed=!1),{af:"Afrikaans",sq:"Albanian",ar:"Arabic (Standard)","ar-DZ":"Arabic (Algeria)","ar-BH":"Arabic (Bahrain)","ar-EG":"Arabic (Egypt)","ar-IQ":"Arabic (Iraq)","ar-JO":"Arabic (Jordan)","ar-KW":"Arabic (Kuwait)","ar-LB":"Arabic (Lebanon)","ar-LY":"Arabic (Libya)","ar-MA":"Arabic (Morocco)","ar-OM":"Arabic (Oman)","ar-QA":"Arabic (Qatar)","ar-SA":"Arabic (Saudi Arabia)","ar-SY":"Arabic (Syria)","ar-TN":"Arabic (Tunisia)","ar-AE":"Arabic (U.A.E.)","ar-YE":"Arabic (Yemen)",an:"Aragonese",hy:"Armenian",as:"Assamese",ast:"Asturian",az:"Azerbaijani",eu:"Basque",be:"Belarusian",bn:"Bengali",bs:"Bosnian",br:"Breton",bg:"Bulgarian",my:"Burmese",ca:"Catalan",ch:"Chamorro",ce:"Chechen",zh:"Chinese","zh-HK":"Chinese (Hong Kong)","zh-CN":"Chinese (PRC)","zh-SG":"Chinese (Singapore)","zh-TW":"Chinese (Taiwan)",cv:"Chuvash",co:"Corsican",cr:"Cree",hr:"Croatian",cs:"Czech",da:"Danish",nl:"Dutch (Standard)","nl-BE":"Dutch (Belgian)",en:"English","en-AU":"English (Australia)","en-BZ":"English (Belize)","en-CA":"English (Canada)","en-IE":"English (Ireland)","en-JM":"English (Jamaica)","en-NZ":"English (New Zealand)","en-PH":"English (Philippines)","en-ZA":"English (South Africa)","en-TT":"English (Trinidad & Tobago)","en-GB":"English (United Kingdom)","en-US":"English (United States)","en-ZW":"English (Zimbabwe)",eo:"Esperanto",et:"Estonian",fo:"Faeroese",fj:"Fijian",fi:"Finnish",fr:"French (Standard)","fr-BE":"French (Belgium)","fr-CA":"French (Canada)","fr-FR":"French (France)","fr-LU":"French (Luxembourg)","fr-MC":"French (Monaco)","fr-CH":"French (Switzerland)",fy:"Frisian",fur:"Friulian",gd:"Gaelic (Scots)","gd-IE":"Gaelic (Irish)",gl:"Galacian",ka:"Georgian",de:"German (Standard)","de-AT":"German (Austria)","de-DE":"German (Germany)","de-LI":"German (Liechtenstein)","de-LU":"German (Luxembourg)","de-CH":"German (Switzerland)",el:"Greek",gu:"Gujurati",ht:"Haitian",he:"Hebrew",hi:"Hindi",hu:"Hungarian",is:"Icelandic",id:"Indonesian",iu:"Inuktitut",ga:"Irish",it:"Italian (Standard)","it-CH":"Italian (Switzerland)",ja:"Japanese",kn:"Kannada",ks:"Kashmiri",kk:"Kazakh",km:"Khmer",ky:"Kirghiz",tlh:"Klingon",ko:"Korean","ko-KP":"Korean (North Korea)","ko-KR":"Korean (South Korea)",la:"Latin",lv:"Latvian",lt:"Lithuanian",lb:"Luxembourgish",mk:"North Macedonia",ms:"Malay",ml:"Malayalam",mt:"Maltese",mi:"Maori",mr:"Marathi",mo:"Moldavian",nv:"Navajo",ng:"Ndonga",ne:"Nepali",no:"Norwegian",nb:"Norwegian (Bokmal)",nn:"Norwegian (Nynorsk)",oc:"Occitan",or:"Oriya",om:"Oromo",fa:"Persian","fa-IR":"Persian/Iran",pl:"Polish",pt:"Portuguese","pt-BR":"Portuguese (Brazil)",pa:"Punjabi","pa-IN":"Punjabi (India)","pa-PK":"Punjabi (Pakistan)",qu:"Quechua",rm:"Rhaeto-Romanic",ro:"Romanian","ro-MO":"Romanian (Moldavia)",ru:"Russian","ru-MO":"Russian (Moldavia)",sz:"Sami (Lappish)",sg:"Sango",sa:"Sanskrit",sc:"Sardinian",sd:"Sindhi",si:"Singhalese",sr:"Serbian",sk:"Slovak",sl:"Slovenian",so:"Somani",sb:"Sorbian",es:"Spanish","es-AR":"Spanish (Argentina)","es-BO":"Spanish (Bolivia)","es-CL":"Spanish (Chile)","es-CO":"Spanish (Colombia)","es-CR":"Spanish (Costa Rica)","es-DO":"Spanish (Dominican Republic)","es-EC":"Spanish (Ecuador)","es-SV":"Spanish (El Salvador)","es-GT":"Spanish (Guatemala)","es-HN":"Spanish (Honduras)","es-MX":"Spanish (Mexico)","es-NI":"Spanish (Nicaragua)","es-PA":"Spanish (Panama)","es-PY":"Spanish (Paraguay)","es-PE":"Spanish (Peru)","es-PR":"Spanish (Puerto Rico)","es-ES":"Spanish (Spain)","es-UY":"Spanish (Uruguay)","es-VE":"Spanish (Venezuela)",sx:"Sutu",sw:"Swahili",sv:"Swedish","sv-FI":"Swedish (Finland)","sv-SV":"Swedish (Sweden)",ta:"Tamil",tt:"Tatar",te:"Teluga",th:"Thai",tig:"Tigre",ts:"Tsonga",tn:"Tswana",tr:"Turkish",tk:"Turkmen",uk:"Ukrainian",hsb:"Upper Sorbian",ur:"Urdu",ve:"Venda",vi:"Vietnamese",vo:"Volapuk",wa:"Walloon",cy:"Welsh",xh:"Xhosa",ji:"Yiddish",zu:"Zulu"}[e]!==void 0&&(this.internal.languageSettings.languageCode=e,this.internal.languageSettings.isSubscribed===!1&&(this.internal.events.subscribe("putCatalog",function(){this.internal.write("/Lang ("+this.internal.languageSettings.languageCode+")")}),this.internal.languageSettings.isSubscribed=!0)),this},gw=Wn.API,gB=gw.getCharWidthsArray=function(e,t){var n,r,i=(t=t||{}).font||this.internal.getFont(),a=t.fontSize||this.internal.getFontSize(),o=t.charSpace||this.internal.getCharSpace(),s=t.widths?t.widths:i.metadata.Unicode.widths,l=s.fof?s.fof:1,c=t.kerning?t.kerning:i.metadata.Unicode.kerning,u=c.fof?c.fof:1,f=t.doKerning!==!1,h=0,m=e.length,p=0,A=s[0]||l,v=[];for(n=0;n<m;n++)r=e.charCodeAt(n),typeof i.metadata.widthOfString=="function"?v.push((i.metadata.widthOfGlyph(i.metadata.characterToGlyph(r))+o*(1e3/a)||0)/1e3):(h=f&&Zi(c[r])==="object"&&!isNaN(parseInt(c[r][p],10))?c[r][p]/u:0,v.push((s[r]||A)/l+h)),p=r;return v},Z1e=gw.getStringUnitWidth=function(e,t){var n=(t=t||{}).fontSize||this.internal.getFontSize(),r=t.font||this.internal.getFont(),i=t.charSpace||this.internal.getCharSpace();return gw.processArabic&&(e=gw.processArabic(e)),typeof r.metadata.widthOfString=="function"?r.metadata.widthOfString(e,n,i)/n:gB.apply(this,arguments).reduce(function(a,o){return a+o},0)},J1e=function(e,t,n,r){for(var i=[],a=0,o=e.length,s=0;a!==o&&s+t[a]<n;)s+=t[a],a++;i.push(e.slice(0,a));var l=a;for(s=0;a!==o;)s+t[a]>r&&(i.push(e.slice(l,a)),s=0,l=a),s+=t[a],a++;return l!==a&&i.push(e.slice(l,a)),i},ewe=function(e,t,n){n||(n={});var r,i,a,o,s,l,c,u=[],f=[u],h=n.textIndent||0,m=0,p=0,A=e.split(" "),v=gB.apply(this,[" ",n])[0];if(l=n.lineIndent===-1?A[0].length+2:n.lineIndent||0){var y=Array(l).join(" "),x=[];A.map(function(S){(S=S.split(/\s*\n/)).length>1?x=x.concat(S.map(function(C,N){return(N&&C.length?`
|
|
814
814
|
`:"")+C})):x.push(S[0])}),A=x,l=Z1e.apply(this,[y,n])}for(a=0,o=A.length;a<o;a++){var k=0;if(r=A[a],l&&r[0]==`
|
|
815
|
-
`&&(r=r.substr(1),k=1),h+m+(p=(i=gB.apply(this,[r,n])).reduce(function(S,C){return S+C},0))>t||k){if(p>t){for(s=J1e.apply(this,[r,i,t-(h+m),t]),u.push(s.shift()),u=[s.pop()];s.length;)f.push([s.shift()]);p=i.slice(r.length-(u[0]?u[0].length:0)).reduce(function(S,C){return S+C},0)}else u=[r];f.push(u),h=p+l,m=v}else u.push(r),h+=m+p,m=v}return c=l?function(S,C){return(C?y:"")+S.join(" ")}:function(S){return S.join(" ")},f.map(c)},gw.splitTextToSize=function(e,t,n){var r,i=(n=n||{}).fontSize||this.internal.getFontSize(),a=(function(u){if(u.widths&&u.kerning)return{widths:u.widths,kerning:u.kerning};var f=this.internal.getFont(u.fontName,u.fontStyle),h="Unicode";return f.metadata[h]?{widths:f.metadata[h].widths||{0:1},kerning:f.metadata[h].kerning||{}}:{font:f.metadata,fontSize:this.internal.getFontSize(),charSpace:this.internal.getCharSpace()}}).call(this,n);r=Array.isArray(e)?e:String(e).split(/\r?\n/);var o=1*this.internal.scaleFactor*t/i;a.textIndent=n.textIndent?1*n.textIndent*this.internal.scaleFactor/i:0,a.lineIndent=n.lineIndent;var s,l,c=[];for(s=0,l=r.length;s<l;s++)c=c.concat(ewe.apply(this,[r[s],o,a]));return c},(function(e){e.__fontmetrics__=e.__fontmetrics__||{};for(var t="0123456789abcdef",n="klmnopqrstuvwxyz",r={},i={},a=0;a<16;a++)r[n[a]]=t[a],i[t[a]]=n[a];var o=function(h){return"0x"+parseInt(h,10).toString(16)},s=e.__fontmetrics__.compress=function(h){var m,p,A,v,y=["{"];for(var x in h){if(m=h[x],isNaN(parseInt(x,10))?p="'"+x+"'":(x=parseInt(x,10),p=(p=o(x).slice(2)).slice(0,-1)+i[p.slice(-1)]),typeof m=="number")m<0?(A=o(m).slice(3),v="-"):(A=o(m).slice(2),v=""),A=v+A.slice(0,-1)+i[A.slice(-1)];else{if(Zi(m)!=="object")throw new Error("Don't know what to do with value type "+Zi(m)+".");A=s(m)}y.push(p+A)}return y.push("}"),y.join("")},l=e.__fontmetrics__.uncompress=function(h){if(typeof h!="string")throw new Error("Invalid argument passed to uncompress.");for(var m,p,A,v,y={},x=1,k=y,S=[],C="",N="",E=h.length-1,D=1;D<E;D+=1)(v=h[D])=="'"?m?(A=m.join(""),m=void 0):m=[]:m?m.push(v):v=="{"?(S.push([k,A]),k={},A=void 0):v=="}"?((p=S.pop())[0][p[1]]=k,A=void 0,k=p[0]):v=="-"?x=-1:A===void 0?r.hasOwnProperty(v)?(C+=r[v],A=parseInt(C,16)*x,x=1,C=""):C+=v:r.hasOwnProperty(v)?(N+=r[v],k[A]=parseInt(N,16)*x,x=1,A=void 0,N=""):N+=v;return y},c={codePages:["WinAnsiEncoding"],WinAnsiEncoding:l("{19m8n201n9q201o9r201s9l201t9m201u8m201w9n201x9o201y8o202k8q202l8r202m9p202q8p20aw8k203k8t203t8v203u9v2cq8s212m9t15m8w15n9w2dw9s16k8u16l9u17s9z17x8y17y9y}")},u={Unicode:{Courier:c,"Courier-Bold":c,"Courier-BoldOblique":c,"Courier-Oblique":c,Helvetica:c,"Helvetica-Bold":c,"Helvetica-BoldOblique":c,"Helvetica-Oblique":c,"Times-Roman":c,"Times-Bold":c,"Times-BoldItalic":c,"Times-Italic":c}},f={Unicode:{"Courier-Oblique":l("{'widths'{k3w'fof'6o}'kerning'{'fof'-6o}}"),"Times-BoldItalic":l("{'widths'{k3o2q4ycx2r201n3m201o6o201s2l201t2l201u2l201w3m201x3m201y3m2k1t2l2r202m2n2n3m2o3m2p5n202q6o2r1w2s2l2t2l2u3m2v3t2w1t2x2l2y1t2z1w3k3m3l3m3m3m3n3m3o3m3p3m3q3m3r3m3s3m203t2l203u2l3v2l3w3t3x3t3y3t3z3m4k5n4l4m4m4m4n4m4o4s4p4m4q4m4r4s4s4y4t2r4u3m4v4m4w3x4x5t4y4s4z4s5k3x5l4s5m4m5n3r5o3x5p4s5q4m5r5t5s4m5t3x5u3x5v2l5w1w5x2l5y3t5z3m6k2l6l3m6m3m6n2w6o3m6p2w6q2l6r3m6s3r6t1w6u1w6v3m6w1w6x4y6y3r6z3m7k3m7l3m7m2r7n2r7o1w7p3r7q2w7r4m7s3m7t2w7u2r7v2n7w1q7x2n7y3t202l3mcl4mal2ram3man3mao3map3mar3mas2lat4uau1uav3maw3way4uaz2lbk2sbl3t'fof'6obo2lbp3tbq3mbr1tbs2lbu1ybv3mbz3mck4m202k3mcm4mcn4mco4mcp4mcq5ycr4mcs4mct4mcu4mcv4mcw2r2m3rcy2rcz2rdl4sdm4sdn4sdo4sdp4sdq4sds4sdt4sdu4sdv4sdw4sdz3mek3mel3mem3men3meo3mep3meq4ser2wes2wet2weu2wev2wew1wex1wey1wez1wfl3rfm3mfn3mfo3mfp3mfq3mfr3tfs3mft3rfu3rfv3rfw3rfz2w203k6o212m6o2dw2l2cq2l3t3m3u2l17s3x19m3m}'kerning'{cl{4qu5kt5qt5rs17ss5ts}201s{201ss}201t{cks4lscmscnscoscpscls2wu2yu201ts}201x{2wu2yu}2k{201ts}2w{4qx5kx5ou5qx5rs17su5tu}2x{17su5tu5ou}2y{4qx5kx5ou5qx5rs17ss5ts}'fof'-6ofn{17sw5tw5ou5qw5rs}7t{cksclscmscnscoscps4ls}3u{17su5tu5os5qs}3v{17su5tu5os5qs}7p{17su5tu}ck{4qu5kt5qt5rs17ss5ts}4l{4qu5kt5qt5rs17ss5ts}cm{4qu5kt5qt5rs17ss5ts}cn{4qu5kt5qt5rs17ss5ts}co{4qu5kt5qt5rs17ss5ts}cp{4qu5kt5qt5rs17ss5ts}6l{4qu5ou5qw5rt17su5tu}5q{ckuclucmucnucoucpu4lu}5r{ckuclucmucnucoucpu4lu}7q{cksclscmscnscoscps4ls}6p{4qu5ou5qw5rt17sw5tw}ek{4qu5ou5qw5rt17su5tu}el{4qu5ou5qw5rt17su5tu}em{4qu5ou5qw5rt17su5tu}en{4qu5ou5qw5rt17su5tu}eo{4qu5ou5qw5rt17su5tu}ep{4qu5ou5qw5rt17su5tu}es{17ss5ts5qs4qu}et{4qu5ou5qw5rt17sw5tw}eu{4qu5ou5qw5rt17ss5ts}ev{17ss5ts5qs4qu}6z{17sw5tw5ou5qw5rs}fm{17sw5tw5ou5qw5rs}7n{201ts}fo{17sw5tw5ou5qw5rs}fp{17sw5tw5ou5qw5rs}fq{17sw5tw5ou5qw5rs}7r{cksclscmscnscoscps4ls}fs{17sw5tw5ou5qw5rs}ft{17su5tu}fu{17su5tu}fv{17su5tu}fw{17su5tu}fz{cksclscmscnscoscps4ls}}}"),"Helvetica-Bold":l("{'widths'{k3s2q4scx1w201n3r201o6o201s1w201t1w201u1w201w3m201x3m201y3m2k1w2l2l202m2n2n3r2o3r2p5t202q6o2r1s2s2l2t2l2u2r2v3u2w1w2x2l2y1w2z1w3k3r3l3r3m3r3n3r3o3r3p3r3q3r3r3r3s3r203t2l203u2l3v2l3w3u3x3u3y3u3z3x4k6l4l4s4m4s4n4s4o4s4p4m4q3x4r4y4s4s4t1w4u3r4v4s4w3x4x5n4y4s4z4y5k4m5l4y5m4s5n4m5o3x5p4s5q4m5r5y5s4m5t4m5u3x5v2l5w1w5x2l5y3u5z3r6k2l6l3r6m3x6n3r6o3x6p3r6q2l6r3x6s3x6t1w6u1w6v3r6w1w6x5t6y3x6z3x7k3x7l3x7m2r7n3r7o2l7p3x7q3r7r4y7s3r7t3r7u3m7v2r7w1w7x2r7y3u202l3rcl4sal2lam3ran3rao3rap3rar3ras2lat4tau2pav3raw3uay4taz2lbk2sbl3u'fof'6obo2lbp3xbq3rbr1wbs2lbu2obv3rbz3xck4s202k3rcm4scn4sco4scp4scq6ocr4scs4mct4mcu4mcv4mcw1w2m2zcy1wcz1wdl4sdm4ydn4ydo4ydp4ydq4yds4ydt4sdu4sdv4sdw4sdz3xek3rel3rem3ren3reo3rep3req5ter3res3ret3reu3rev3rew1wex1wey1wez1wfl3xfm3xfn3xfo3xfp3xfq3xfr3ufs3xft3xfu3xfv3xfw3xfz3r203k6o212m6o2dw2l2cq2l3t3r3u2l17s4m19m3r}'kerning'{cl{4qs5ku5ot5qs17sv5tv}201t{2ww4wy2yw}201w{2ks}201x{2ww4wy2yw}2k{201ts201xs}2w{7qs4qu5kw5os5qw5rs17su5tu7tsfzs}2x{5ow5qs}2y{7qs4qu5kw5os5qw5rs17su5tu7tsfzs}'fof'-6o7p{17su5tu5ot}ck{4qs5ku5ot5qs17sv5tv}4l{4qs5ku5ot5qs17sv5tv}cm{4qs5ku5ot5qs17sv5tv}cn{4qs5ku5ot5qs17sv5tv}co{4qs5ku5ot5qs17sv5tv}cp{4qs5ku5ot5qs17sv5tv}6l{17st5tt5os}17s{2kwclvcmvcnvcovcpv4lv4wwckv}5o{2kucltcmtcntcotcpt4lt4wtckt}5q{2ksclscmscnscoscps4ls4wvcks}5r{2ks4ws}5t{2kwclvcmvcnvcovcpv4lv4wwckv}eo{17st5tt5os}fu{17su5tu5ot}6p{17ss5ts}ek{17st5tt5os}el{17st5tt5os}em{17st5tt5os}en{17st5tt5os}6o{201ts}ep{17st5tt5os}es{17ss5ts}et{17ss5ts}eu{17ss5ts}ev{17ss5ts}6z{17su5tu5os5qt}fm{17su5tu5os5qt}fn{17su5tu5os5qt}fo{17su5tu5os5qt}fp{17su5tu5os5qt}fq{17su5tu5os5qt}fs{17su5tu5os5qt}ft{17su5tu5ot}7m{5os}fv{17su5tu5ot}fw{17su5tu5ot}}}"),Courier:l("{'widths'{k3w'fof'6o}'kerning'{'fof'-6o}}"),"Courier-BoldOblique":l("{'widths'{k3w'fof'6o}'kerning'{'fof'-6o}}"),"Times-Bold":l("{'widths'{k3q2q5ncx2r201n3m201o6o201s2l201t2l201u2l201w3m201x3m201y3m2k1t2l2l202m2n2n3m2o3m2p6o202q6o2r1w2s2l2t2l2u3m2v3t2w1t2x2l2y1t2z1w3k3m3l3m3m3m3n3m3o3m3p3m3q3m3r3m3s3m203t2l203u2l3v2l3w3t3x3t3y3t3z3m4k5x4l4s4m4m4n4s4o4s4p4m4q3x4r4y4s4y4t2r4u3m4v4y4w4m4x5y4y4s4z4y5k3x5l4y5m4s5n3r5o4m5p4s5q4s5r6o5s4s5t4s5u4m5v2l5w1w5x2l5y3u5z3m6k2l6l3m6m3r6n2w6o3r6p2w6q2l6r3m6s3r6t1w6u2l6v3r6w1w6x5n6y3r6z3m7k3r7l3r7m2w7n2r7o2l7p3r7q3m7r4s7s3m7t3m7u2w7v2r7w1q7x2r7y3o202l3mcl4sal2lam3man3mao3map3mar3mas2lat4uau1yav3maw3tay4uaz2lbk2sbl3t'fof'6obo2lbp3rbr1tbs2lbu2lbv3mbz3mck4s202k3mcm4scn4sco4scp4scq6ocr4scs4mct4mcu4mcv4mcw2r2m3rcy2rcz2rdl4sdm4ydn4ydo4ydp4ydq4yds4ydt4sdu4sdv4sdw4sdz3rek3mel3mem3men3meo3mep3meq4ser2wes2wet2weu2wev2wew1wex1wey1wez1wfl3rfm3mfn3mfo3mfp3mfq3mfr3tfs3mft3rfu3rfv3rfw3rfz3m203k6o212m6o2dw2l2cq2l3t3m3u2l17s4s19m3m}'kerning'{cl{4qt5ks5ot5qy5rw17sv5tv}201t{cks4lscmscnscoscpscls4wv}2k{201ts}2w{4qu5ku7mu5os5qx5ru17su5tu}2x{17su5tu5ou5qs}2y{4qv5kv7mu5ot5qz5ru17su5tu}'fof'-6o7t{cksclscmscnscoscps4ls}3u{17su5tu5os5qu}3v{17su5tu5os5qu}fu{17su5tu5ou5qu}7p{17su5tu5ou5qu}ck{4qt5ks5ot5qy5rw17sv5tv}4l{4qt5ks5ot5qy5rw17sv5tv}cm{4qt5ks5ot5qy5rw17sv5tv}cn{4qt5ks5ot5qy5rw17sv5tv}co{4qt5ks5ot5qy5rw17sv5tv}cp{4qt5ks5ot5qy5rw17sv5tv}6l{17st5tt5ou5qu}17s{ckuclucmucnucoucpu4lu4wu}5o{ckuclucmucnucoucpu4lu4wu}5q{ckzclzcmzcnzcozcpz4lz4wu}5r{ckxclxcmxcnxcoxcpx4lx4wu}5t{ckuclucmucnucoucpu4lu4wu}7q{ckuclucmucnucoucpu4lu}6p{17sw5tw5ou5qu}ek{17st5tt5qu}el{17st5tt5ou5qu}em{17st5tt5qu}en{17st5tt5qu}eo{17st5tt5qu}ep{17st5tt5ou5qu}es{17ss5ts5qu}et{17sw5tw5ou5qu}eu{17sw5tw5ou5qu}ev{17ss5ts5qu}6z{17sw5tw5ou5qu5rs}fm{17sw5tw5ou5qu5rs}fn{17sw5tw5ou5qu5rs}fo{17sw5tw5ou5qu5rs}fp{17sw5tw5ou5qu5rs}fq{17sw5tw5ou5qu5rs}7r{cktcltcmtcntcotcpt4lt5os}fs{17sw5tw5ou5qu5rs}ft{17su5tu5ou5qu}7m{5os}fv{17su5tu5ou5qu}fw{17su5tu5ou5qu}fz{cksclscmscnscoscps4ls}}}"),Symbol:l("{'widths'{k3uaw4r19m3m2k1t2l2l202m2y2n3m2p5n202q6o3k3m2s2l2t2l2v3r2w1t3m3m2y1t2z1wbk2sbl3r'fof'6o3n3m3o3m3p3m3q3m3r3m3s3m3t3m3u1w3v1w3w3r3x3r3y3r3z2wbp3t3l3m5v2l5x2l5z3m2q4yfr3r7v3k7w1o7x3k}'kerning'{'fof'-6o}}"),Helvetica:l("{'widths'{k3p2q4mcx1w201n3r201o6o201s1q201t1q201u1q201w2l201x2l201y2l2k1w2l1w202m2n2n3r2o3r2p5t202q6o2r1n2s2l2t2l2u2r2v3u2w1w2x2l2y1w2z1w3k3r3l3r3m3r3n3r3o3r3p3r3q3r3r3r3s3r203t2l203u2l3v1w3w3u3x3u3y3u3z3r4k6p4l4m4m4m4n4s4o4s4p4m4q3x4r4y4s4s4t1w4u3m4v4m4w3r4x5n4y4s4z4y5k4m5l4y5m4s5n4m5o3x5p4s5q4m5r5y5s4m5t4m5u3x5v1w5w1w5x1w5y2z5z3r6k2l6l3r6m3r6n3m6o3r6p3r6q1w6r3r6s3r6t1q6u1q6v3m6w1q6x5n6y3r6z3r7k3r7l3r7m2l7n3m7o1w7p3r7q3m7r4s7s3m7t3m7u3m7v2l7w1u7x2l7y3u202l3rcl4mal2lam3ran3rao3rap3rar3ras2lat4tau2pav3raw3uay4taz2lbk2sbl3u'fof'6obo2lbp3rbr1wbs2lbu2obv3rbz3xck4m202k3rcm4mcn4mco4mcp4mcq6ocr4scs4mct4mcu4mcv4mcw1w2m2ncy1wcz1wdl4sdm4ydn4ydo4ydp4ydq4yds4ydt4sdu4sdv4sdw4sdz3xek3rel3rem3ren3reo3rep3req5ter3mes3ret3reu3rev3rew1wex1wey1wez1wfl3rfm3rfn3rfo3rfp3rfq3rfr3ufs3xft3rfu3rfv3rfw3rfz3m203k6o212m6o2dw2l2cq2l3t3r3u1w17s4m19m3r}'kerning'{5q{4wv}cl{4qs5kw5ow5qs17sv5tv}201t{2wu4w1k2yu}201x{2wu4wy2yu}17s{2ktclucmucnu4otcpu4lu4wycoucku}2w{7qs4qz5k1m17sy5ow5qx5rsfsu5ty7tufzu}2x{17sy5ty5oy5qs}2y{7qs4qz5k1m17sy5ow5qx5rsfsu5ty7tufzu}'fof'-6o7p{17sv5tv5ow}ck{4qs5kw5ow5qs17sv5tv}4l{4qs5kw5ow5qs17sv5tv}cm{4qs5kw5ow5qs17sv5tv}cn{4qs5kw5ow5qs17sv5tv}co{4qs5kw5ow5qs17sv5tv}cp{4qs5kw5ow5qs17sv5tv}6l{17sy5ty5ow}do{17st5tt}4z{17st5tt}7s{fst}dm{17st5tt}dn{17st5tt}5o{ckwclwcmwcnwcowcpw4lw4wv}dp{17st5tt}dq{17st5tt}7t{5ow}ds{17st5tt}5t{2ktclucmucnu4otcpu4lu4wycoucku}fu{17sv5tv5ow}6p{17sy5ty5ow5qs}ek{17sy5ty5ow}el{17sy5ty5ow}em{17sy5ty5ow}en{5ty}eo{17sy5ty5ow}ep{17sy5ty5ow}es{17sy5ty5qs}et{17sy5ty5ow5qs}eu{17sy5ty5ow5qs}ev{17sy5ty5ow5qs}6z{17sy5ty5ow5qs}fm{17sy5ty5ow5qs}fn{17sy5ty5ow5qs}fo{17sy5ty5ow5qs}fp{17sy5ty5qs}fq{17sy5ty5ow5qs}7r{5ow}fs{17sy5ty5ow5qs}ft{17sv5tv5ow}7m{5ow}fv{17sv5tv5ow}fw{17sv5tv5ow}}}"),"Helvetica-BoldOblique":l("{'widths'{k3s2q4scx1w201n3r201o6o201s1w201t1w201u1w201w3m201x3m201y3m2k1w2l2l202m2n2n3r2o3r2p5t202q6o2r1s2s2l2t2l2u2r2v3u2w1w2x2l2y1w2z1w3k3r3l3r3m3r3n3r3o3r3p3r3q3r3r3r3s3r203t2l203u2l3v2l3w3u3x3u3y3u3z3x4k6l4l4s4m4s4n4s4o4s4p4m4q3x4r4y4s4s4t1w4u3r4v4s4w3x4x5n4y4s4z4y5k4m5l4y5m4s5n4m5o3x5p4s5q4m5r5y5s4m5t4m5u3x5v2l5w1w5x2l5y3u5z3r6k2l6l3r6m3x6n3r6o3x6p3r6q2l6r3x6s3x6t1w6u1w6v3r6w1w6x5t6y3x6z3x7k3x7l3x7m2r7n3r7o2l7p3x7q3r7r4y7s3r7t3r7u3m7v2r7w1w7x2r7y3u202l3rcl4sal2lam3ran3rao3rap3rar3ras2lat4tau2pav3raw3uay4taz2lbk2sbl3u'fof'6obo2lbp3xbq3rbr1wbs2lbu2obv3rbz3xck4s202k3rcm4scn4sco4scp4scq6ocr4scs4mct4mcu4mcv4mcw1w2m2zcy1wcz1wdl4sdm4ydn4ydo4ydp4ydq4yds4ydt4sdu4sdv4sdw4sdz3xek3rel3rem3ren3reo3rep3req5ter3res3ret3reu3rev3rew1wex1wey1wez1wfl3xfm3xfn3xfo3xfp3xfq3xfr3ufs3xft3xfu3xfv3xfw3xfz3r203k6o212m6o2dw2l2cq2l3t3r3u2l17s4m19m3r}'kerning'{cl{4qs5ku5ot5qs17sv5tv}201t{2ww4wy2yw}201w{2ks}201x{2ww4wy2yw}2k{201ts201xs}2w{7qs4qu5kw5os5qw5rs17su5tu7tsfzs}2x{5ow5qs}2y{7qs4qu5kw5os5qw5rs17su5tu7tsfzs}'fof'-6o7p{17su5tu5ot}ck{4qs5ku5ot5qs17sv5tv}4l{4qs5ku5ot5qs17sv5tv}cm{4qs5ku5ot5qs17sv5tv}cn{4qs5ku5ot5qs17sv5tv}co{4qs5ku5ot5qs17sv5tv}cp{4qs5ku5ot5qs17sv5tv}6l{17st5tt5os}17s{2kwclvcmvcnvcovcpv4lv4wwckv}5o{2kucltcmtcntcotcpt4lt4wtckt}5q{2ksclscmscnscoscps4ls4wvcks}5r{2ks4ws}5t{2kwclvcmvcnvcovcpv4lv4wwckv}eo{17st5tt5os}fu{17su5tu5ot}6p{17ss5ts}ek{17st5tt5os}el{17st5tt5os}em{17st5tt5os}en{17st5tt5os}6o{201ts}ep{17st5tt5os}es{17ss5ts}et{17ss5ts}eu{17ss5ts}ev{17ss5ts}6z{17su5tu5os5qt}fm{17su5tu5os5qt}fn{17su5tu5os5qt}fo{17su5tu5os5qt}fp{17su5tu5os5qt}fq{17su5tu5os5qt}fs{17su5tu5os5qt}ft{17su5tu5ot}7m{5os}fv{17su5tu5ot}fw{17su5tu5ot}}}"),ZapfDingbats:l("{'widths'{k4u2k1w'fof'6o}'kerning'{'fof'-6o}}"),"Courier-Bold":l("{'widths'{k3w'fof'6o}'kerning'{'fof'-6o}}"),"Times-Italic":l("{'widths'{k3n2q4ycx2l201n3m201o5t201s2l201t2l201u2l201w3r201x3r201y3r2k1t2l2l202m2n2n3m2o3m2p5n202q5t2r1p2s2l2t2l2u3m2v4n2w1t2x2l2y1t2z1w3k3m3l3m3m3m3n3m3o3m3p3m3q3m3r3m3s3m203t2l203u2l3v2l3w4n3x4n3y4n3z3m4k5w4l3x4m3x4n4m4o4s4p3x4q3x4r4s4s4s4t2l4u2w4v4m4w3r4x5n4y4m4z4s5k3x5l4s5m3x5n3m5o3r5p4s5q3x5r5n5s3x5t3r5u3r5v2r5w1w5x2r5y2u5z3m6k2l6l3m6m3m6n2w6o3m6p2w6q1w6r3m6s3m6t1w6u1w6v2w6w1w6x4s6y3m6z3m7k3m7l3m7m2r7n2r7o1w7p3m7q2w7r4m7s2w7t2w7u2r7v2s7w1v7x2s7y3q202l3mcl3xal2ram3man3mao3map3mar3mas2lat4wau1vav3maw4nay4waz2lbk2sbl4n'fof'6obo2lbp3mbq3obr1tbs2lbu1zbv3mbz3mck3x202k3mcm3xcn3xco3xcp3xcq5tcr4mcs3xct3xcu3xcv3xcw2l2m2ucy2lcz2ldl4mdm4sdn4sdo4sdp4sdq4sds4sdt4sdu4sdv4sdw4sdz3mek3mel3mem3men3meo3mep3meq4mer2wes2wet2weu2wev2wew1wex1wey1wez1wfl3mfm3mfn3mfo3mfp3mfq3mfr4nfs3mft3mfu3mfv3mfw3mfz2w203k6o212m6m2dw2l2cq2l3t3m3u2l17s3r19m3m}'kerning'{cl{5kt4qw}201s{201sw}201t{201tw2wy2yy6q-t}201x{2wy2yy}2k{201tw}2w{7qs4qy7rs5ky7mw5os5qx5ru17su5tu}2x{17ss5ts5os}2y{7qs4qy7rs5ky7mw5os5qx5ru17su5tu}'fof'-6o6t{17ss5ts5qs}7t{5os}3v{5qs}7p{17su5tu5qs}ck{5kt4qw}4l{5kt4qw}cm{5kt4qw}cn{5kt4qw}co{5kt4qw}cp{5kt4qw}6l{4qs5ks5ou5qw5ru17su5tu}17s{2ks}5q{ckvclvcmvcnvcovcpv4lv}5r{ckuclucmucnucoucpu4lu}5t{2ks}6p{4qs5ks5ou5qw5ru17su5tu}ek{4qs5ks5ou5qw5ru17su5tu}el{4qs5ks5ou5qw5ru17su5tu}em{4qs5ks5ou5qw5ru17su5tu}en{4qs5ks5ou5qw5ru17su5tu}eo{4qs5ks5ou5qw5ru17su5tu}ep{4qs5ks5ou5qw5ru17su5tu}es{5ks5qs4qs}et{4qs5ks5ou5qw5ru17su5tu}eu{4qs5ks5qw5ru17su5tu}ev{5ks5qs4qs}ex{17ss5ts5qs}6z{4qv5ks5ou5qw5ru17su5tu}fm{4qv5ks5ou5qw5ru17su5tu}fn{4qv5ks5ou5qw5ru17su5tu}fo{4qv5ks5ou5qw5ru17su5tu}fp{4qv5ks5ou5qw5ru17su5tu}fq{4qv5ks5ou5qw5ru17su5tu}7r{5os}fs{4qv5ks5ou5qw5ru17su5tu}ft{17su5tu5qs}fu{17su5tu5qs}fv{17su5tu5qs}fw{17su5tu5qs}}}"),"Times-Roman":l("{'widths'{k3n2q4ycx2l201n3m201o6o201s2l201t2l201u2l201w2w201x2w201y2w2k1t2l2l202m2n2n3m2o3m2p5n202q6o2r1m2s2l2t2l2u3m2v3s2w1t2x2l2y1t2z1w3k3m3l3m3m3m3n3m3o3m3p3m3q3m3r3m3s3m203t2l203u2l3v1w3w3s3x3s3y3s3z2w4k5w4l4s4m4m4n4m4o4s4p3x4q3r4r4s4s4s4t2l4u2r4v4s4w3x4x5t4y4s4z4s5k3r5l4s5m4m5n3r5o3x5p4s5q4s5r5y5s4s5t4s5u3x5v2l5w1w5x2l5y2z5z3m6k2l6l2w6m3m6n2w6o3m6p2w6q2l6r3m6s3m6t1w6u1w6v3m6w1w6x4y6y3m6z3m7k3m7l3m7m2l7n2r7o1w7p3m7q3m7r4s7s3m7t3m7u2w7v3k7w1o7x3k7y3q202l3mcl4sal2lam3man3mao3map3mar3mas2lat4wau1vav3maw3say4waz2lbk2sbl3s'fof'6obo2lbp3mbq2xbr1tbs2lbu1zbv3mbz2wck4s202k3mcm4scn4sco4scp4scq5tcr4mcs3xct3xcu3xcv3xcw2l2m2tcy2lcz2ldl4sdm4sdn4sdo4sdp4sdq4sds4sdt4sdu4sdv4sdw4sdz3mek2wel2wem2wen2weo2wep2weq4mer2wes2wet2weu2wev2wew1wex1wey1wez1wfl3mfm3mfn3mfo3mfp3mfq3mfr3sfs3mft3mfu3mfv3mfw3mfz3m203k6o212m6m2dw2l2cq2l3t3m3u1w17s4s19m3m}'kerning'{cl{4qs5ku17sw5ou5qy5rw201ss5tw201ws}201s{201ss}201t{ckw4lwcmwcnwcowcpwclw4wu201ts}2k{201ts}2w{4qs5kw5os5qx5ru17sx5tx}2x{17sw5tw5ou5qu}2y{4qs5kw5os5qx5ru17sx5tx}'fof'-6o7t{ckuclucmucnucoucpu4lu5os5rs}3u{17su5tu5qs}3v{17su5tu5qs}7p{17sw5tw5qs}ck{4qs5ku17sw5ou5qy5rw201ss5tw201ws}4l{4qs5ku17sw5ou5qy5rw201ss5tw201ws}cm{4qs5ku17sw5ou5qy5rw201ss5tw201ws}cn{4qs5ku17sw5ou5qy5rw201ss5tw201ws}co{4qs5ku17sw5ou5qy5rw201ss5tw201ws}cp{4qs5ku17sw5ou5qy5rw201ss5tw201ws}6l{17su5tu5os5qw5rs}17s{2ktclvcmvcnvcovcpv4lv4wuckv}5o{ckwclwcmwcnwcowcpw4lw4wu}5q{ckyclycmycnycoycpy4ly4wu5ms}5r{cktcltcmtcntcotcpt4lt4ws}5t{2ktclvcmvcnvcovcpv4lv4wuckv}7q{cksclscmscnscoscps4ls}6p{17su5tu5qw5rs}ek{5qs5rs}el{17su5tu5os5qw5rs}em{17su5tu5os5qs5rs}en{17su5qs5rs}eo{5qs5rs}ep{17su5tu5os5qw5rs}es{5qs}et{17su5tu5qw5rs}eu{17su5tu5qs5rs}ev{5qs}6z{17sv5tv5os5qx5rs}fm{5os5qt5rs}fn{17sv5tv5os5qx5rs}fo{17sv5tv5os5qx5rs}fp{5os5qt5rs}fq{5os5qt5rs}7r{ckuclucmucnucoucpu4lu5os}fs{17sv5tv5os5qx5rs}ft{17ss5ts5qs}fu{17sw5tw5qs}fv{17sw5tw5qs}fw{17ss5ts5qs}fz{ckuclucmucnucoucpu4lu5os5rs}}}"),"Helvetica-Oblique":l("{'widths'{k3p2q4mcx1w201n3r201o6o201s1q201t1q201u1q201w2l201x2l201y2l2k1w2l1w202m2n2n3r2o3r2p5t202q6o2r1n2s2l2t2l2u2r2v3u2w1w2x2l2y1w2z1w3k3r3l3r3m3r3n3r3o3r3p3r3q3r3r3r3s3r203t2l203u2l3v1w3w3u3x3u3y3u3z3r4k6p4l4m4m4m4n4s4o4s4p4m4q3x4r4y4s4s4t1w4u3m4v4m4w3r4x5n4y4s4z4y5k4m5l4y5m4s5n4m5o3x5p4s5q4m5r5y5s4m5t4m5u3x5v1w5w1w5x1w5y2z5z3r6k2l6l3r6m3r6n3m6o3r6p3r6q1w6r3r6s3r6t1q6u1q6v3m6w1q6x5n6y3r6z3r7k3r7l3r7m2l7n3m7o1w7p3r7q3m7r4s7s3m7t3m7u3m7v2l7w1u7x2l7y3u202l3rcl4mal2lam3ran3rao3rap3rar3ras2lat4tau2pav3raw3uay4taz2lbk2sbl3u'fof'6obo2lbp3rbr1wbs2lbu2obv3rbz3xck4m202k3rcm4mcn4mco4mcp4mcq6ocr4scs4mct4mcu4mcv4mcw1w2m2ncy1wcz1wdl4sdm4ydn4ydo4ydp4ydq4yds4ydt4sdu4sdv4sdw4sdz3xek3rel3rem3ren3reo3rep3req5ter3mes3ret3reu3rev3rew1wex1wey1wez1wfl3rfm3rfn3rfo3rfp3rfq3rfr3ufs3xft3rfu3rfv3rfw3rfz3m203k6o212m6o2dw2l2cq2l3t3r3u1w17s4m19m3r}'kerning'{5q{4wv}cl{4qs5kw5ow5qs17sv5tv}201t{2wu4w1k2yu}201x{2wu4wy2yu}17s{2ktclucmucnu4otcpu4lu4wycoucku}2w{7qs4qz5k1m17sy5ow5qx5rsfsu5ty7tufzu}2x{17sy5ty5oy5qs}2y{7qs4qz5k1m17sy5ow5qx5rsfsu5ty7tufzu}'fof'-6o7p{17sv5tv5ow}ck{4qs5kw5ow5qs17sv5tv}4l{4qs5kw5ow5qs17sv5tv}cm{4qs5kw5ow5qs17sv5tv}cn{4qs5kw5ow5qs17sv5tv}co{4qs5kw5ow5qs17sv5tv}cp{4qs5kw5ow5qs17sv5tv}6l{17sy5ty5ow}do{17st5tt}4z{17st5tt}7s{fst}dm{17st5tt}dn{17st5tt}5o{ckwclwcmwcnwcowcpw4lw4wv}dp{17st5tt}dq{17st5tt}7t{5ow}ds{17st5tt}5t{2ktclucmucnu4otcpu4lu4wycoucku}fu{17sv5tv5ow}6p{17sy5ty5ow5qs}ek{17sy5ty5ow}el{17sy5ty5ow}em{17sy5ty5ow}en{5ty}eo{17sy5ty5ow}ep{17sy5ty5ow}es{17sy5ty5qs}et{17sy5ty5ow5qs}eu{17sy5ty5ow5qs}ev{17sy5ty5ow5qs}6z{17sy5ty5ow5qs}fm{17sy5ty5ow5qs}fn{17sy5ty5ow5qs}fo{17sy5ty5ow5qs}fp{17sy5ty5qs}fq{17sy5ty5ow5qs}7r{5ow}fs{17sy5ty5ow5qs}ft{17sv5tv5ow}7m{5ow}fv{17sv5tv5ow}fw{17sv5tv5ow}}}")}};e.events.push(["addFont",function(h){var m=h.font,p=f.Unicode[m.postScriptName];p&&(m.metadata.Unicode={},m.metadata.Unicode.widths=p.widths,m.metadata.Unicode.kerning=p.kerning);var A=u.Unicode[m.postScriptName];A&&(m.metadata.Unicode.encoding=A,m.encoding=A.codePages[0])}])})(Wn.API),(function(e){var t=function(n){for(var r=n.length,i=new Uint8Array(r),a=0;a<r;a++)i[a]=n.charCodeAt(a);return i};e.API.events.push(["addFont",function(n){var r=void 0,i=n.font,a=n.instance;if(!i.isStandardFont){if(a===void 0)throw new Error("Font does not exist in vFS, import fonts or remove declaration doc.addFont('"+i.postScriptName+"').");if(typeof(r=a.existsFileInVFS(i.postScriptName)===!1?a.loadFile(i.postScriptName):a.getFileFromVFS(i.postScriptName))!="string")throw new Error("Font is not stored as string-data in vFS, import fonts or remove declaration doc.addFont('"+i.postScriptName+"').");(function(o,s){s=/^\x00\x01\x00\x00/.test(s)?t(s):t(dj(s)),o.metadata=e.API.TTFFont.open(s),o.metadata.Unicode=o.metadata.Unicode||{encoding:{},kerning:{},widths:[]},o.metadata.glyIdsUsed=[0]})(i,r)}}])})(Wn),Wn.API.addSvgAsImage=function(e,t,n,r,i,a,o,s){if(isNaN(t)||isNaN(n))throw ma.error("jsPDF.addSvgAsImage: Invalid coordinates",arguments),new Error("Invalid coordinates passed to jsPDF.addSvgAsImage");if(isNaN(r)||isNaN(i))throw ma.error("jsPDF.addSvgAsImage: Invalid measurements",arguments),new Error("Invalid measurements (width and/or height) passed to jsPDF.addSvgAsImage");var l=document.createElement("canvas");l.width=r,l.height=i;var c=l.getContext("2d");c.fillStyle="#fff",c.fillRect(0,0,l.width,l.height);var u={ignoreMouse:!0,ignoreAnimation:!0,ignoreDimensions:!0},f=this;return(wr.canvg?Promise.resolve(wr.canvg):FH(()=>import("./index.es-Bdcn4W3e.js"),[])).catch(function(h){return Promise.reject(new Error("Could not load canvg: "+h))}).then(function(h){return h.default?h.default:h}).then(function(h){return h.fromString(c,e,u)},function(){return Promise.reject(new Error("Could not load canvg."))}).then(function(h){return h.render(u)}).then(function(){f.addImage(l.toDataURL("image/jpeg",1),t,n,r,i,o,s)})},Wn.API.putTotalPages=function(e){var t,n=0;parseInt(this.internal.getFont().id.substr(1),10)<15?(t=new RegExp(e,"g"),n=this.internal.getNumberOfPages()):(t=new RegExp(this.pdfEscape16(e,this.internal.getFont()),"g"),n=this.pdfEscape16(this.internal.getNumberOfPages()+"",this.internal.getFont()));for(var r=1;r<=this.internal.getNumberOfPages();r++)for(var i=0;i<this.internal.pages[r].length;i++)this.internal.pages[r][i]=this.internal.pages[r][i].replace(t,n);return this},Wn.API.viewerPreferences=function(e,t){var n;e=e||{},t=t||!1;var r,i,a,o={HideToolbar:{defaultValue:!1,value:!1,type:"boolean",explicitSet:!1,valueSet:[!0,!1],pdfVersion:1.3},HideMenubar:{defaultValue:!1,value:!1,type:"boolean",explicitSet:!1,valueSet:[!0,!1],pdfVersion:1.3},HideWindowUI:{defaultValue:!1,value:!1,type:"boolean",explicitSet:!1,valueSet:[!0,!1],pdfVersion:1.3},FitWindow:{defaultValue:!1,value:!1,type:"boolean",explicitSet:!1,valueSet:[!0,!1],pdfVersion:1.3},CenterWindow:{defaultValue:!1,value:!1,type:"boolean",explicitSet:!1,valueSet:[!0,!1],pdfVersion:1.3},DisplayDocTitle:{defaultValue:!1,value:!1,type:"boolean",explicitSet:!1,valueSet:[!0,!1],pdfVersion:1.4},NonFullScreenPageMode:{defaultValue:"UseNone",value:"UseNone",type:"name",explicitSet:!1,valueSet:["UseNone","UseOutlines","UseThumbs","UseOC"],pdfVersion:1.3},Direction:{defaultValue:"L2R",value:"L2R",type:"name",explicitSet:!1,valueSet:["L2R","R2L"],pdfVersion:1.3},ViewArea:{defaultValue:"CropBox",value:"CropBox",type:"name",explicitSet:!1,valueSet:["MediaBox","CropBox","TrimBox","BleedBox","ArtBox"],pdfVersion:1.4},ViewClip:{defaultValue:"CropBox",value:"CropBox",type:"name",explicitSet:!1,valueSet:["MediaBox","CropBox","TrimBox","BleedBox","ArtBox"],pdfVersion:1.4},PrintArea:{defaultValue:"CropBox",value:"CropBox",type:"name",explicitSet:!1,valueSet:["MediaBox","CropBox","TrimBox","BleedBox","ArtBox"],pdfVersion:1.4},PrintClip:{defaultValue:"CropBox",value:"CropBox",type:"name",explicitSet:!1,valueSet:["MediaBox","CropBox","TrimBox","BleedBox","ArtBox"],pdfVersion:1.4},PrintScaling:{defaultValue:"AppDefault",value:"AppDefault",type:"name",explicitSet:!1,valueSet:["AppDefault","None"],pdfVersion:1.6},Duplex:{defaultValue:"",value:"none",type:"name",explicitSet:!1,valueSet:["Simplex","DuplexFlipShortEdge","DuplexFlipLongEdge","none"],pdfVersion:1.7},PickTrayByPDFSize:{defaultValue:!1,value:!1,type:"boolean",explicitSet:!1,valueSet:[!0,!1],pdfVersion:1.7},PrintPageRange:{defaultValue:"",value:"",type:"array",explicitSet:!1,valueSet:null,pdfVersion:1.7},NumCopies:{defaultValue:1,value:1,type:"integer",explicitSet:!1,valueSet:null,pdfVersion:1.7}},s=Object.keys(o),l=[],c=0,u=0,f=0;function h(p,A){var v,y=!1;for(v=0;v<p.length;v+=1)p[v]===A&&(y=!0);return y}if(this.internal.viewerpreferences===void 0&&(this.internal.viewerpreferences={},this.internal.viewerpreferences.configuration=JSON.parse(JSON.stringify(o)),this.internal.viewerpreferences.isSubscribed=!1),n=this.internal.viewerpreferences.configuration,e==="reset"||t===!0){var m=s.length;for(f=0;f<m;f+=1)n[s[f]].value=n[s[f]].defaultValue,n[s[f]].explicitSet=!1}if(Zi(e)==="object"){for(i in e)if(a=e[i],h(s,i)&&a!==void 0){if(n[i].type==="boolean"&&typeof a=="boolean")n[i].value=a;else if(n[i].type==="name"&&h(n[i].valueSet,a))n[i].value=a;else if(n[i].type==="integer"&&Number.isInteger(a))n[i].value=a;else if(n[i].type==="array"){for(c=0;c<a.length;c+=1)if(r=!0,a[c].length===1&&typeof a[c][0]=="number")l.push(String(a[c]-1));else if(a[c].length>1){for(u=0;u<a[c].length;u+=1)typeof a[c][u]!="number"&&(r=!1);r===!0&&l.push([a[c][0]-1,a[c][1]-1].join(" "))}n[i].value="["+l.join(" ")+"]"}else n[i].value=n[i].defaultValue;n[i].explicitSet=!0}}return this.internal.viewerpreferences.isSubscribed===!1&&(this.internal.events.subscribe("putCatalog",function(){var p,A=[];for(p in n)n[p].explicitSet===!0&&(n[p].type==="name"?A.push("/"+p+" /"+n[p].value):A.push("/"+p+" "+n[p].value));A.length!==0&&this.internal.write(`/ViewerPreferences
|
|
815
|
+
`&&(r=r.substr(1),k=1),h+m+(p=(i=gB.apply(this,[r,n])).reduce(function(S,C){return S+C},0))>t||k){if(p>t){for(s=J1e.apply(this,[r,i,t-(h+m),t]),u.push(s.shift()),u=[s.pop()];s.length;)f.push([s.shift()]);p=i.slice(r.length-(u[0]?u[0].length:0)).reduce(function(S,C){return S+C},0)}else u=[r];f.push(u),h=p+l,m=v}else u.push(r),h+=m+p,m=v}return c=l?function(S,C){return(C?y:"")+S.join(" ")}:function(S){return S.join(" ")},f.map(c)},gw.splitTextToSize=function(e,t,n){var r,i=(n=n||{}).fontSize||this.internal.getFontSize(),a=(function(u){if(u.widths&&u.kerning)return{widths:u.widths,kerning:u.kerning};var f=this.internal.getFont(u.fontName,u.fontStyle),h="Unicode";return f.metadata[h]?{widths:f.metadata[h].widths||{0:1},kerning:f.metadata[h].kerning||{}}:{font:f.metadata,fontSize:this.internal.getFontSize(),charSpace:this.internal.getCharSpace()}}).call(this,n);r=Array.isArray(e)?e:String(e).split(/\r?\n/);var o=1*this.internal.scaleFactor*t/i;a.textIndent=n.textIndent?1*n.textIndent*this.internal.scaleFactor/i:0,a.lineIndent=n.lineIndent;var s,l,c=[];for(s=0,l=r.length;s<l;s++)c=c.concat(ewe.apply(this,[r[s],o,a]));return c},(function(e){e.__fontmetrics__=e.__fontmetrics__||{};for(var t="0123456789abcdef",n="klmnopqrstuvwxyz",r={},i={},a=0;a<16;a++)r[n[a]]=t[a],i[t[a]]=n[a];var o=function(h){return"0x"+parseInt(h,10).toString(16)},s=e.__fontmetrics__.compress=function(h){var m,p,A,v,y=["{"];for(var x in h){if(m=h[x],isNaN(parseInt(x,10))?p="'"+x+"'":(x=parseInt(x,10),p=(p=o(x).slice(2)).slice(0,-1)+i[p.slice(-1)]),typeof m=="number")m<0?(A=o(m).slice(3),v="-"):(A=o(m).slice(2),v=""),A=v+A.slice(0,-1)+i[A.slice(-1)];else{if(Zi(m)!=="object")throw new Error("Don't know what to do with value type "+Zi(m)+".");A=s(m)}y.push(p+A)}return y.push("}"),y.join("")},l=e.__fontmetrics__.uncompress=function(h){if(typeof h!="string")throw new Error("Invalid argument passed to uncompress.");for(var m,p,A,v,y={},x=1,k=y,S=[],C="",N="",E=h.length-1,D=1;D<E;D+=1)(v=h[D])=="'"?m?(A=m.join(""),m=void 0):m=[]:m?m.push(v):v=="{"?(S.push([k,A]),k={},A=void 0):v=="}"?((p=S.pop())[0][p[1]]=k,A=void 0,k=p[0]):v=="-"?x=-1:A===void 0?r.hasOwnProperty(v)?(C+=r[v],A=parseInt(C,16)*x,x=1,C=""):C+=v:r.hasOwnProperty(v)?(N+=r[v],k[A]=parseInt(N,16)*x,x=1,A=void 0,N=""):N+=v;return y},c={codePages:["WinAnsiEncoding"],WinAnsiEncoding:l("{19m8n201n9q201o9r201s9l201t9m201u8m201w9n201x9o201y8o202k8q202l8r202m9p202q8p20aw8k203k8t203t8v203u9v2cq8s212m9t15m8w15n9w2dw9s16k8u16l9u17s9z17x8y17y9y}")},u={Unicode:{Courier:c,"Courier-Bold":c,"Courier-BoldOblique":c,"Courier-Oblique":c,Helvetica:c,"Helvetica-Bold":c,"Helvetica-BoldOblique":c,"Helvetica-Oblique":c,"Times-Roman":c,"Times-Bold":c,"Times-BoldItalic":c,"Times-Italic":c}},f={Unicode:{"Courier-Oblique":l("{'widths'{k3w'fof'6o}'kerning'{'fof'-6o}}"),"Times-BoldItalic":l("{'widths'{k3o2q4ycx2r201n3m201o6o201s2l201t2l201u2l201w3m201x3m201y3m2k1t2l2r202m2n2n3m2o3m2p5n202q6o2r1w2s2l2t2l2u3m2v3t2w1t2x2l2y1t2z1w3k3m3l3m3m3m3n3m3o3m3p3m3q3m3r3m3s3m203t2l203u2l3v2l3w3t3x3t3y3t3z3m4k5n4l4m4m4m4n4m4o4s4p4m4q4m4r4s4s4y4t2r4u3m4v4m4w3x4x5t4y4s4z4s5k3x5l4s5m4m5n3r5o3x5p4s5q4m5r5t5s4m5t3x5u3x5v2l5w1w5x2l5y3t5z3m6k2l6l3m6m3m6n2w6o3m6p2w6q2l6r3m6s3r6t1w6u1w6v3m6w1w6x4y6y3r6z3m7k3m7l3m7m2r7n2r7o1w7p3r7q2w7r4m7s3m7t2w7u2r7v2n7w1q7x2n7y3t202l3mcl4mal2ram3man3mao3map3mar3mas2lat4uau1uav3maw3way4uaz2lbk2sbl3t'fof'6obo2lbp3tbq3mbr1tbs2lbu1ybv3mbz3mck4m202k3mcm4mcn4mco4mcp4mcq5ycr4mcs4mct4mcu4mcv4mcw2r2m3rcy2rcz2rdl4sdm4sdn4sdo4sdp4sdq4sds4sdt4sdu4sdv4sdw4sdz3mek3mel3mem3men3meo3mep3meq4ser2wes2wet2weu2wev2wew1wex1wey1wez1wfl3rfm3mfn3mfo3mfp3mfq3mfr3tfs3mft3rfu3rfv3rfw3rfz2w203k6o212m6o2dw2l2cq2l3t3m3u2l17s3x19m3m}'kerning'{cl{4qu5kt5qt5rs17ss5ts}201s{201ss}201t{cks4lscmscnscoscpscls2wu2yu201ts}201x{2wu2yu}2k{201ts}2w{4qx5kx5ou5qx5rs17su5tu}2x{17su5tu5ou}2y{4qx5kx5ou5qx5rs17ss5ts}'fof'-6ofn{17sw5tw5ou5qw5rs}7t{cksclscmscnscoscps4ls}3u{17su5tu5os5qs}3v{17su5tu5os5qs}7p{17su5tu}ck{4qu5kt5qt5rs17ss5ts}4l{4qu5kt5qt5rs17ss5ts}cm{4qu5kt5qt5rs17ss5ts}cn{4qu5kt5qt5rs17ss5ts}co{4qu5kt5qt5rs17ss5ts}cp{4qu5kt5qt5rs17ss5ts}6l{4qu5ou5qw5rt17su5tu}5q{ckuclucmucnucoucpu4lu}5r{ckuclucmucnucoucpu4lu}7q{cksclscmscnscoscps4ls}6p{4qu5ou5qw5rt17sw5tw}ek{4qu5ou5qw5rt17su5tu}el{4qu5ou5qw5rt17su5tu}em{4qu5ou5qw5rt17su5tu}en{4qu5ou5qw5rt17su5tu}eo{4qu5ou5qw5rt17su5tu}ep{4qu5ou5qw5rt17su5tu}es{17ss5ts5qs4qu}et{4qu5ou5qw5rt17sw5tw}eu{4qu5ou5qw5rt17ss5ts}ev{17ss5ts5qs4qu}6z{17sw5tw5ou5qw5rs}fm{17sw5tw5ou5qw5rs}7n{201ts}fo{17sw5tw5ou5qw5rs}fp{17sw5tw5ou5qw5rs}fq{17sw5tw5ou5qw5rs}7r{cksclscmscnscoscps4ls}fs{17sw5tw5ou5qw5rs}ft{17su5tu}fu{17su5tu}fv{17su5tu}fw{17su5tu}fz{cksclscmscnscoscps4ls}}}"),"Helvetica-Bold":l("{'widths'{k3s2q4scx1w201n3r201o6o201s1w201t1w201u1w201w3m201x3m201y3m2k1w2l2l202m2n2n3r2o3r2p5t202q6o2r1s2s2l2t2l2u2r2v3u2w1w2x2l2y1w2z1w3k3r3l3r3m3r3n3r3o3r3p3r3q3r3r3r3s3r203t2l203u2l3v2l3w3u3x3u3y3u3z3x4k6l4l4s4m4s4n4s4o4s4p4m4q3x4r4y4s4s4t1w4u3r4v4s4w3x4x5n4y4s4z4y5k4m5l4y5m4s5n4m5o3x5p4s5q4m5r5y5s4m5t4m5u3x5v2l5w1w5x2l5y3u5z3r6k2l6l3r6m3x6n3r6o3x6p3r6q2l6r3x6s3x6t1w6u1w6v3r6w1w6x5t6y3x6z3x7k3x7l3x7m2r7n3r7o2l7p3x7q3r7r4y7s3r7t3r7u3m7v2r7w1w7x2r7y3u202l3rcl4sal2lam3ran3rao3rap3rar3ras2lat4tau2pav3raw3uay4taz2lbk2sbl3u'fof'6obo2lbp3xbq3rbr1wbs2lbu2obv3rbz3xck4s202k3rcm4scn4sco4scp4scq6ocr4scs4mct4mcu4mcv4mcw1w2m2zcy1wcz1wdl4sdm4ydn4ydo4ydp4ydq4yds4ydt4sdu4sdv4sdw4sdz3xek3rel3rem3ren3reo3rep3req5ter3res3ret3reu3rev3rew1wex1wey1wez1wfl3xfm3xfn3xfo3xfp3xfq3xfr3ufs3xft3xfu3xfv3xfw3xfz3r203k6o212m6o2dw2l2cq2l3t3r3u2l17s4m19m3r}'kerning'{cl{4qs5ku5ot5qs17sv5tv}201t{2ww4wy2yw}201w{2ks}201x{2ww4wy2yw}2k{201ts201xs}2w{7qs4qu5kw5os5qw5rs17su5tu7tsfzs}2x{5ow5qs}2y{7qs4qu5kw5os5qw5rs17su5tu7tsfzs}'fof'-6o7p{17su5tu5ot}ck{4qs5ku5ot5qs17sv5tv}4l{4qs5ku5ot5qs17sv5tv}cm{4qs5ku5ot5qs17sv5tv}cn{4qs5ku5ot5qs17sv5tv}co{4qs5ku5ot5qs17sv5tv}cp{4qs5ku5ot5qs17sv5tv}6l{17st5tt5os}17s{2kwclvcmvcnvcovcpv4lv4wwckv}5o{2kucltcmtcntcotcpt4lt4wtckt}5q{2ksclscmscnscoscps4ls4wvcks}5r{2ks4ws}5t{2kwclvcmvcnvcovcpv4lv4wwckv}eo{17st5tt5os}fu{17su5tu5ot}6p{17ss5ts}ek{17st5tt5os}el{17st5tt5os}em{17st5tt5os}en{17st5tt5os}6o{201ts}ep{17st5tt5os}es{17ss5ts}et{17ss5ts}eu{17ss5ts}ev{17ss5ts}6z{17su5tu5os5qt}fm{17su5tu5os5qt}fn{17su5tu5os5qt}fo{17su5tu5os5qt}fp{17su5tu5os5qt}fq{17su5tu5os5qt}fs{17su5tu5os5qt}ft{17su5tu5ot}7m{5os}fv{17su5tu5ot}fw{17su5tu5ot}}}"),Courier:l("{'widths'{k3w'fof'6o}'kerning'{'fof'-6o}}"),"Courier-BoldOblique":l("{'widths'{k3w'fof'6o}'kerning'{'fof'-6o}}"),"Times-Bold":l("{'widths'{k3q2q5ncx2r201n3m201o6o201s2l201t2l201u2l201w3m201x3m201y3m2k1t2l2l202m2n2n3m2o3m2p6o202q6o2r1w2s2l2t2l2u3m2v3t2w1t2x2l2y1t2z1w3k3m3l3m3m3m3n3m3o3m3p3m3q3m3r3m3s3m203t2l203u2l3v2l3w3t3x3t3y3t3z3m4k5x4l4s4m4m4n4s4o4s4p4m4q3x4r4y4s4y4t2r4u3m4v4y4w4m4x5y4y4s4z4y5k3x5l4y5m4s5n3r5o4m5p4s5q4s5r6o5s4s5t4s5u4m5v2l5w1w5x2l5y3u5z3m6k2l6l3m6m3r6n2w6o3r6p2w6q2l6r3m6s3r6t1w6u2l6v3r6w1w6x5n6y3r6z3m7k3r7l3r7m2w7n2r7o2l7p3r7q3m7r4s7s3m7t3m7u2w7v2r7w1q7x2r7y3o202l3mcl4sal2lam3man3mao3map3mar3mas2lat4uau1yav3maw3tay4uaz2lbk2sbl3t'fof'6obo2lbp3rbr1tbs2lbu2lbv3mbz3mck4s202k3mcm4scn4sco4scp4scq6ocr4scs4mct4mcu4mcv4mcw2r2m3rcy2rcz2rdl4sdm4ydn4ydo4ydp4ydq4yds4ydt4sdu4sdv4sdw4sdz3rek3mel3mem3men3meo3mep3meq4ser2wes2wet2weu2wev2wew1wex1wey1wez1wfl3rfm3mfn3mfo3mfp3mfq3mfr3tfs3mft3rfu3rfv3rfw3rfz3m203k6o212m6o2dw2l2cq2l3t3m3u2l17s4s19m3m}'kerning'{cl{4qt5ks5ot5qy5rw17sv5tv}201t{cks4lscmscnscoscpscls4wv}2k{201ts}2w{4qu5ku7mu5os5qx5ru17su5tu}2x{17su5tu5ou5qs}2y{4qv5kv7mu5ot5qz5ru17su5tu}'fof'-6o7t{cksclscmscnscoscps4ls}3u{17su5tu5os5qu}3v{17su5tu5os5qu}fu{17su5tu5ou5qu}7p{17su5tu5ou5qu}ck{4qt5ks5ot5qy5rw17sv5tv}4l{4qt5ks5ot5qy5rw17sv5tv}cm{4qt5ks5ot5qy5rw17sv5tv}cn{4qt5ks5ot5qy5rw17sv5tv}co{4qt5ks5ot5qy5rw17sv5tv}cp{4qt5ks5ot5qy5rw17sv5tv}6l{17st5tt5ou5qu}17s{ckuclucmucnucoucpu4lu4wu}5o{ckuclucmucnucoucpu4lu4wu}5q{ckzclzcmzcnzcozcpz4lz4wu}5r{ckxclxcmxcnxcoxcpx4lx4wu}5t{ckuclucmucnucoucpu4lu4wu}7q{ckuclucmucnucoucpu4lu}6p{17sw5tw5ou5qu}ek{17st5tt5qu}el{17st5tt5ou5qu}em{17st5tt5qu}en{17st5tt5qu}eo{17st5tt5qu}ep{17st5tt5ou5qu}es{17ss5ts5qu}et{17sw5tw5ou5qu}eu{17sw5tw5ou5qu}ev{17ss5ts5qu}6z{17sw5tw5ou5qu5rs}fm{17sw5tw5ou5qu5rs}fn{17sw5tw5ou5qu5rs}fo{17sw5tw5ou5qu5rs}fp{17sw5tw5ou5qu5rs}fq{17sw5tw5ou5qu5rs}7r{cktcltcmtcntcotcpt4lt5os}fs{17sw5tw5ou5qu5rs}ft{17su5tu5ou5qu}7m{5os}fv{17su5tu5ou5qu}fw{17su5tu5ou5qu}fz{cksclscmscnscoscps4ls}}}"),Symbol:l("{'widths'{k3uaw4r19m3m2k1t2l2l202m2y2n3m2p5n202q6o3k3m2s2l2t2l2v3r2w1t3m3m2y1t2z1wbk2sbl3r'fof'6o3n3m3o3m3p3m3q3m3r3m3s3m3t3m3u1w3v1w3w3r3x3r3y3r3z2wbp3t3l3m5v2l5x2l5z3m2q4yfr3r7v3k7w1o7x3k}'kerning'{'fof'-6o}}"),Helvetica:l("{'widths'{k3p2q4mcx1w201n3r201o6o201s1q201t1q201u1q201w2l201x2l201y2l2k1w2l1w202m2n2n3r2o3r2p5t202q6o2r1n2s2l2t2l2u2r2v3u2w1w2x2l2y1w2z1w3k3r3l3r3m3r3n3r3o3r3p3r3q3r3r3r3s3r203t2l203u2l3v1w3w3u3x3u3y3u3z3r4k6p4l4m4m4m4n4s4o4s4p4m4q3x4r4y4s4s4t1w4u3m4v4m4w3r4x5n4y4s4z4y5k4m5l4y5m4s5n4m5o3x5p4s5q4m5r5y5s4m5t4m5u3x5v1w5w1w5x1w5y2z5z3r6k2l6l3r6m3r6n3m6o3r6p3r6q1w6r3r6s3r6t1q6u1q6v3m6w1q6x5n6y3r6z3r7k3r7l3r7m2l7n3m7o1w7p3r7q3m7r4s7s3m7t3m7u3m7v2l7w1u7x2l7y3u202l3rcl4mal2lam3ran3rao3rap3rar3ras2lat4tau2pav3raw3uay4taz2lbk2sbl3u'fof'6obo2lbp3rbr1wbs2lbu2obv3rbz3xck4m202k3rcm4mcn4mco4mcp4mcq6ocr4scs4mct4mcu4mcv4mcw1w2m2ncy1wcz1wdl4sdm4ydn4ydo4ydp4ydq4yds4ydt4sdu4sdv4sdw4sdz3xek3rel3rem3ren3reo3rep3req5ter3mes3ret3reu3rev3rew1wex1wey1wez1wfl3rfm3rfn3rfo3rfp3rfq3rfr3ufs3xft3rfu3rfv3rfw3rfz3m203k6o212m6o2dw2l2cq2l3t3r3u1w17s4m19m3r}'kerning'{5q{4wv}cl{4qs5kw5ow5qs17sv5tv}201t{2wu4w1k2yu}201x{2wu4wy2yu}17s{2ktclucmucnu4otcpu4lu4wycoucku}2w{7qs4qz5k1m17sy5ow5qx5rsfsu5ty7tufzu}2x{17sy5ty5oy5qs}2y{7qs4qz5k1m17sy5ow5qx5rsfsu5ty7tufzu}'fof'-6o7p{17sv5tv5ow}ck{4qs5kw5ow5qs17sv5tv}4l{4qs5kw5ow5qs17sv5tv}cm{4qs5kw5ow5qs17sv5tv}cn{4qs5kw5ow5qs17sv5tv}co{4qs5kw5ow5qs17sv5tv}cp{4qs5kw5ow5qs17sv5tv}6l{17sy5ty5ow}do{17st5tt}4z{17st5tt}7s{fst}dm{17st5tt}dn{17st5tt}5o{ckwclwcmwcnwcowcpw4lw4wv}dp{17st5tt}dq{17st5tt}7t{5ow}ds{17st5tt}5t{2ktclucmucnu4otcpu4lu4wycoucku}fu{17sv5tv5ow}6p{17sy5ty5ow5qs}ek{17sy5ty5ow}el{17sy5ty5ow}em{17sy5ty5ow}en{5ty}eo{17sy5ty5ow}ep{17sy5ty5ow}es{17sy5ty5qs}et{17sy5ty5ow5qs}eu{17sy5ty5ow5qs}ev{17sy5ty5ow5qs}6z{17sy5ty5ow5qs}fm{17sy5ty5ow5qs}fn{17sy5ty5ow5qs}fo{17sy5ty5ow5qs}fp{17sy5ty5qs}fq{17sy5ty5ow5qs}7r{5ow}fs{17sy5ty5ow5qs}ft{17sv5tv5ow}7m{5ow}fv{17sv5tv5ow}fw{17sv5tv5ow}}}"),"Helvetica-BoldOblique":l("{'widths'{k3s2q4scx1w201n3r201o6o201s1w201t1w201u1w201w3m201x3m201y3m2k1w2l2l202m2n2n3r2o3r2p5t202q6o2r1s2s2l2t2l2u2r2v3u2w1w2x2l2y1w2z1w3k3r3l3r3m3r3n3r3o3r3p3r3q3r3r3r3s3r203t2l203u2l3v2l3w3u3x3u3y3u3z3x4k6l4l4s4m4s4n4s4o4s4p4m4q3x4r4y4s4s4t1w4u3r4v4s4w3x4x5n4y4s4z4y5k4m5l4y5m4s5n4m5o3x5p4s5q4m5r5y5s4m5t4m5u3x5v2l5w1w5x2l5y3u5z3r6k2l6l3r6m3x6n3r6o3x6p3r6q2l6r3x6s3x6t1w6u1w6v3r6w1w6x5t6y3x6z3x7k3x7l3x7m2r7n3r7o2l7p3x7q3r7r4y7s3r7t3r7u3m7v2r7w1w7x2r7y3u202l3rcl4sal2lam3ran3rao3rap3rar3ras2lat4tau2pav3raw3uay4taz2lbk2sbl3u'fof'6obo2lbp3xbq3rbr1wbs2lbu2obv3rbz3xck4s202k3rcm4scn4sco4scp4scq6ocr4scs4mct4mcu4mcv4mcw1w2m2zcy1wcz1wdl4sdm4ydn4ydo4ydp4ydq4yds4ydt4sdu4sdv4sdw4sdz3xek3rel3rem3ren3reo3rep3req5ter3res3ret3reu3rev3rew1wex1wey1wez1wfl3xfm3xfn3xfo3xfp3xfq3xfr3ufs3xft3xfu3xfv3xfw3xfz3r203k6o212m6o2dw2l2cq2l3t3r3u2l17s4m19m3r}'kerning'{cl{4qs5ku5ot5qs17sv5tv}201t{2ww4wy2yw}201w{2ks}201x{2ww4wy2yw}2k{201ts201xs}2w{7qs4qu5kw5os5qw5rs17su5tu7tsfzs}2x{5ow5qs}2y{7qs4qu5kw5os5qw5rs17su5tu7tsfzs}'fof'-6o7p{17su5tu5ot}ck{4qs5ku5ot5qs17sv5tv}4l{4qs5ku5ot5qs17sv5tv}cm{4qs5ku5ot5qs17sv5tv}cn{4qs5ku5ot5qs17sv5tv}co{4qs5ku5ot5qs17sv5tv}cp{4qs5ku5ot5qs17sv5tv}6l{17st5tt5os}17s{2kwclvcmvcnvcovcpv4lv4wwckv}5o{2kucltcmtcntcotcpt4lt4wtckt}5q{2ksclscmscnscoscps4ls4wvcks}5r{2ks4ws}5t{2kwclvcmvcnvcovcpv4lv4wwckv}eo{17st5tt5os}fu{17su5tu5ot}6p{17ss5ts}ek{17st5tt5os}el{17st5tt5os}em{17st5tt5os}en{17st5tt5os}6o{201ts}ep{17st5tt5os}es{17ss5ts}et{17ss5ts}eu{17ss5ts}ev{17ss5ts}6z{17su5tu5os5qt}fm{17su5tu5os5qt}fn{17su5tu5os5qt}fo{17su5tu5os5qt}fp{17su5tu5os5qt}fq{17su5tu5os5qt}fs{17su5tu5os5qt}ft{17su5tu5ot}7m{5os}fv{17su5tu5ot}fw{17su5tu5ot}}}"),ZapfDingbats:l("{'widths'{k4u2k1w'fof'6o}'kerning'{'fof'-6o}}"),"Courier-Bold":l("{'widths'{k3w'fof'6o}'kerning'{'fof'-6o}}"),"Times-Italic":l("{'widths'{k3n2q4ycx2l201n3m201o5t201s2l201t2l201u2l201w3r201x3r201y3r2k1t2l2l202m2n2n3m2o3m2p5n202q5t2r1p2s2l2t2l2u3m2v4n2w1t2x2l2y1t2z1w3k3m3l3m3m3m3n3m3o3m3p3m3q3m3r3m3s3m203t2l203u2l3v2l3w4n3x4n3y4n3z3m4k5w4l3x4m3x4n4m4o4s4p3x4q3x4r4s4s4s4t2l4u2w4v4m4w3r4x5n4y4m4z4s5k3x5l4s5m3x5n3m5o3r5p4s5q3x5r5n5s3x5t3r5u3r5v2r5w1w5x2r5y2u5z3m6k2l6l3m6m3m6n2w6o3m6p2w6q1w6r3m6s3m6t1w6u1w6v2w6w1w6x4s6y3m6z3m7k3m7l3m7m2r7n2r7o1w7p3m7q2w7r4m7s2w7t2w7u2r7v2s7w1v7x2s7y3q202l3mcl3xal2ram3man3mao3map3mar3mas2lat4wau1vav3maw4nay4waz2lbk2sbl4n'fof'6obo2lbp3mbq3obr1tbs2lbu1zbv3mbz3mck3x202k3mcm3xcn3xco3xcp3xcq5tcr4mcs3xct3xcu3xcv3xcw2l2m2ucy2lcz2ldl4mdm4sdn4sdo4sdp4sdq4sds4sdt4sdu4sdv4sdw4sdz3mek3mel3mem3men3meo3mep3meq4mer2wes2wet2weu2wev2wew1wex1wey1wez1wfl3mfm3mfn3mfo3mfp3mfq3mfr4nfs3mft3mfu3mfv3mfw3mfz2w203k6o212m6m2dw2l2cq2l3t3m3u2l17s3r19m3m}'kerning'{cl{5kt4qw}201s{201sw}201t{201tw2wy2yy6q-t}201x{2wy2yy}2k{201tw}2w{7qs4qy7rs5ky7mw5os5qx5ru17su5tu}2x{17ss5ts5os}2y{7qs4qy7rs5ky7mw5os5qx5ru17su5tu}'fof'-6o6t{17ss5ts5qs}7t{5os}3v{5qs}7p{17su5tu5qs}ck{5kt4qw}4l{5kt4qw}cm{5kt4qw}cn{5kt4qw}co{5kt4qw}cp{5kt4qw}6l{4qs5ks5ou5qw5ru17su5tu}17s{2ks}5q{ckvclvcmvcnvcovcpv4lv}5r{ckuclucmucnucoucpu4lu}5t{2ks}6p{4qs5ks5ou5qw5ru17su5tu}ek{4qs5ks5ou5qw5ru17su5tu}el{4qs5ks5ou5qw5ru17su5tu}em{4qs5ks5ou5qw5ru17su5tu}en{4qs5ks5ou5qw5ru17su5tu}eo{4qs5ks5ou5qw5ru17su5tu}ep{4qs5ks5ou5qw5ru17su5tu}es{5ks5qs4qs}et{4qs5ks5ou5qw5ru17su5tu}eu{4qs5ks5qw5ru17su5tu}ev{5ks5qs4qs}ex{17ss5ts5qs}6z{4qv5ks5ou5qw5ru17su5tu}fm{4qv5ks5ou5qw5ru17su5tu}fn{4qv5ks5ou5qw5ru17su5tu}fo{4qv5ks5ou5qw5ru17su5tu}fp{4qv5ks5ou5qw5ru17su5tu}fq{4qv5ks5ou5qw5ru17su5tu}7r{5os}fs{4qv5ks5ou5qw5ru17su5tu}ft{17su5tu5qs}fu{17su5tu5qs}fv{17su5tu5qs}fw{17su5tu5qs}}}"),"Times-Roman":l("{'widths'{k3n2q4ycx2l201n3m201o6o201s2l201t2l201u2l201w2w201x2w201y2w2k1t2l2l202m2n2n3m2o3m2p5n202q6o2r1m2s2l2t2l2u3m2v3s2w1t2x2l2y1t2z1w3k3m3l3m3m3m3n3m3o3m3p3m3q3m3r3m3s3m203t2l203u2l3v1w3w3s3x3s3y3s3z2w4k5w4l4s4m4m4n4m4o4s4p3x4q3r4r4s4s4s4t2l4u2r4v4s4w3x4x5t4y4s4z4s5k3r5l4s5m4m5n3r5o3x5p4s5q4s5r5y5s4s5t4s5u3x5v2l5w1w5x2l5y2z5z3m6k2l6l2w6m3m6n2w6o3m6p2w6q2l6r3m6s3m6t1w6u1w6v3m6w1w6x4y6y3m6z3m7k3m7l3m7m2l7n2r7o1w7p3m7q3m7r4s7s3m7t3m7u2w7v3k7w1o7x3k7y3q202l3mcl4sal2lam3man3mao3map3mar3mas2lat4wau1vav3maw3say4waz2lbk2sbl3s'fof'6obo2lbp3mbq2xbr1tbs2lbu1zbv3mbz2wck4s202k3mcm4scn4sco4scp4scq5tcr4mcs3xct3xcu3xcv3xcw2l2m2tcy2lcz2ldl4sdm4sdn4sdo4sdp4sdq4sds4sdt4sdu4sdv4sdw4sdz3mek2wel2wem2wen2weo2wep2weq4mer2wes2wet2weu2wev2wew1wex1wey1wez1wfl3mfm3mfn3mfo3mfp3mfq3mfr3sfs3mft3mfu3mfv3mfw3mfz3m203k6o212m6m2dw2l2cq2l3t3m3u1w17s4s19m3m}'kerning'{cl{4qs5ku17sw5ou5qy5rw201ss5tw201ws}201s{201ss}201t{ckw4lwcmwcnwcowcpwclw4wu201ts}2k{201ts}2w{4qs5kw5os5qx5ru17sx5tx}2x{17sw5tw5ou5qu}2y{4qs5kw5os5qx5ru17sx5tx}'fof'-6o7t{ckuclucmucnucoucpu4lu5os5rs}3u{17su5tu5qs}3v{17su5tu5qs}7p{17sw5tw5qs}ck{4qs5ku17sw5ou5qy5rw201ss5tw201ws}4l{4qs5ku17sw5ou5qy5rw201ss5tw201ws}cm{4qs5ku17sw5ou5qy5rw201ss5tw201ws}cn{4qs5ku17sw5ou5qy5rw201ss5tw201ws}co{4qs5ku17sw5ou5qy5rw201ss5tw201ws}cp{4qs5ku17sw5ou5qy5rw201ss5tw201ws}6l{17su5tu5os5qw5rs}17s{2ktclvcmvcnvcovcpv4lv4wuckv}5o{ckwclwcmwcnwcowcpw4lw4wu}5q{ckyclycmycnycoycpy4ly4wu5ms}5r{cktcltcmtcntcotcpt4lt4ws}5t{2ktclvcmvcnvcovcpv4lv4wuckv}7q{cksclscmscnscoscps4ls}6p{17su5tu5qw5rs}ek{5qs5rs}el{17su5tu5os5qw5rs}em{17su5tu5os5qs5rs}en{17su5qs5rs}eo{5qs5rs}ep{17su5tu5os5qw5rs}es{5qs}et{17su5tu5qw5rs}eu{17su5tu5qs5rs}ev{5qs}6z{17sv5tv5os5qx5rs}fm{5os5qt5rs}fn{17sv5tv5os5qx5rs}fo{17sv5tv5os5qx5rs}fp{5os5qt5rs}fq{5os5qt5rs}7r{ckuclucmucnucoucpu4lu5os}fs{17sv5tv5os5qx5rs}ft{17ss5ts5qs}fu{17sw5tw5qs}fv{17sw5tw5qs}fw{17ss5ts5qs}fz{ckuclucmucnucoucpu4lu5os5rs}}}"),"Helvetica-Oblique":l("{'widths'{k3p2q4mcx1w201n3r201o6o201s1q201t1q201u1q201w2l201x2l201y2l2k1w2l1w202m2n2n3r2o3r2p5t202q6o2r1n2s2l2t2l2u2r2v3u2w1w2x2l2y1w2z1w3k3r3l3r3m3r3n3r3o3r3p3r3q3r3r3r3s3r203t2l203u2l3v1w3w3u3x3u3y3u3z3r4k6p4l4m4m4m4n4s4o4s4p4m4q3x4r4y4s4s4t1w4u3m4v4m4w3r4x5n4y4s4z4y5k4m5l4y5m4s5n4m5o3x5p4s5q4m5r5y5s4m5t4m5u3x5v1w5w1w5x1w5y2z5z3r6k2l6l3r6m3r6n3m6o3r6p3r6q1w6r3r6s3r6t1q6u1q6v3m6w1q6x5n6y3r6z3r7k3r7l3r7m2l7n3m7o1w7p3r7q3m7r4s7s3m7t3m7u3m7v2l7w1u7x2l7y3u202l3rcl4mal2lam3ran3rao3rap3rar3ras2lat4tau2pav3raw3uay4taz2lbk2sbl3u'fof'6obo2lbp3rbr1wbs2lbu2obv3rbz3xck4m202k3rcm4mcn4mco4mcp4mcq6ocr4scs4mct4mcu4mcv4mcw1w2m2ncy1wcz1wdl4sdm4ydn4ydo4ydp4ydq4yds4ydt4sdu4sdv4sdw4sdz3xek3rel3rem3ren3reo3rep3req5ter3mes3ret3reu3rev3rew1wex1wey1wez1wfl3rfm3rfn3rfo3rfp3rfq3rfr3ufs3xft3rfu3rfv3rfw3rfz3m203k6o212m6o2dw2l2cq2l3t3r3u1w17s4m19m3r}'kerning'{5q{4wv}cl{4qs5kw5ow5qs17sv5tv}201t{2wu4w1k2yu}201x{2wu4wy2yu}17s{2ktclucmucnu4otcpu4lu4wycoucku}2w{7qs4qz5k1m17sy5ow5qx5rsfsu5ty7tufzu}2x{17sy5ty5oy5qs}2y{7qs4qz5k1m17sy5ow5qx5rsfsu5ty7tufzu}'fof'-6o7p{17sv5tv5ow}ck{4qs5kw5ow5qs17sv5tv}4l{4qs5kw5ow5qs17sv5tv}cm{4qs5kw5ow5qs17sv5tv}cn{4qs5kw5ow5qs17sv5tv}co{4qs5kw5ow5qs17sv5tv}cp{4qs5kw5ow5qs17sv5tv}6l{17sy5ty5ow}do{17st5tt}4z{17st5tt}7s{fst}dm{17st5tt}dn{17st5tt}5o{ckwclwcmwcnwcowcpw4lw4wv}dp{17st5tt}dq{17st5tt}7t{5ow}ds{17st5tt}5t{2ktclucmucnu4otcpu4lu4wycoucku}fu{17sv5tv5ow}6p{17sy5ty5ow5qs}ek{17sy5ty5ow}el{17sy5ty5ow}em{17sy5ty5ow}en{5ty}eo{17sy5ty5ow}ep{17sy5ty5ow}es{17sy5ty5qs}et{17sy5ty5ow5qs}eu{17sy5ty5ow5qs}ev{17sy5ty5ow5qs}6z{17sy5ty5ow5qs}fm{17sy5ty5ow5qs}fn{17sy5ty5ow5qs}fo{17sy5ty5ow5qs}fp{17sy5ty5qs}fq{17sy5ty5ow5qs}7r{5ow}fs{17sy5ty5ow5qs}ft{17sv5tv5ow}7m{5ow}fv{17sv5tv5ow}fw{17sv5tv5ow}}}")}};e.events.push(["addFont",function(h){var m=h.font,p=f.Unicode[m.postScriptName];p&&(m.metadata.Unicode={},m.metadata.Unicode.widths=p.widths,m.metadata.Unicode.kerning=p.kerning);var A=u.Unicode[m.postScriptName];A&&(m.metadata.Unicode.encoding=A,m.encoding=A.codePages[0])}])})(Wn.API),(function(e){var t=function(n){for(var r=n.length,i=new Uint8Array(r),a=0;a<r;a++)i[a]=n.charCodeAt(a);return i};e.API.events.push(["addFont",function(n){var r=void 0,i=n.font,a=n.instance;if(!i.isStandardFont){if(a===void 0)throw new Error("Font does not exist in vFS, import fonts or remove declaration doc.addFont('"+i.postScriptName+"').");if(typeof(r=a.existsFileInVFS(i.postScriptName)===!1?a.loadFile(i.postScriptName):a.getFileFromVFS(i.postScriptName))!="string")throw new Error("Font is not stored as string-data in vFS, import fonts or remove declaration doc.addFont('"+i.postScriptName+"').");(function(o,s){s=/^\x00\x01\x00\x00/.test(s)?t(s):t(dj(s)),o.metadata=e.API.TTFFont.open(s),o.metadata.Unicode=o.metadata.Unicode||{encoding:{},kerning:{},widths:[]},o.metadata.glyIdsUsed=[0]})(i,r)}}])})(Wn),Wn.API.addSvgAsImage=function(e,t,n,r,i,a,o,s){if(isNaN(t)||isNaN(n))throw ma.error("jsPDF.addSvgAsImage: Invalid coordinates",arguments),new Error("Invalid coordinates passed to jsPDF.addSvgAsImage");if(isNaN(r)||isNaN(i))throw ma.error("jsPDF.addSvgAsImage: Invalid measurements",arguments),new Error("Invalid measurements (width and/or height) passed to jsPDF.addSvgAsImage");var l=document.createElement("canvas");l.width=r,l.height=i;var c=l.getContext("2d");c.fillStyle="#fff",c.fillRect(0,0,l.width,l.height);var u={ignoreMouse:!0,ignoreAnimation:!0,ignoreDimensions:!0},f=this;return(wr.canvg?Promise.resolve(wr.canvg):FH(()=>import("./index.es-X3GYTYe1.js"),[])).catch(function(h){return Promise.reject(new Error("Could not load canvg: "+h))}).then(function(h){return h.default?h.default:h}).then(function(h){return h.fromString(c,e,u)},function(){return Promise.reject(new Error("Could not load canvg."))}).then(function(h){return h.render(u)}).then(function(){f.addImage(l.toDataURL("image/jpeg",1),t,n,r,i,o,s)})},Wn.API.putTotalPages=function(e){var t,n=0;parseInt(this.internal.getFont().id.substr(1),10)<15?(t=new RegExp(e,"g"),n=this.internal.getNumberOfPages()):(t=new RegExp(this.pdfEscape16(e,this.internal.getFont()),"g"),n=this.pdfEscape16(this.internal.getNumberOfPages()+"",this.internal.getFont()));for(var r=1;r<=this.internal.getNumberOfPages();r++)for(var i=0;i<this.internal.pages[r].length;i++)this.internal.pages[r][i]=this.internal.pages[r][i].replace(t,n);return this},Wn.API.viewerPreferences=function(e,t){var n;e=e||{},t=t||!1;var r,i,a,o={HideToolbar:{defaultValue:!1,value:!1,type:"boolean",explicitSet:!1,valueSet:[!0,!1],pdfVersion:1.3},HideMenubar:{defaultValue:!1,value:!1,type:"boolean",explicitSet:!1,valueSet:[!0,!1],pdfVersion:1.3},HideWindowUI:{defaultValue:!1,value:!1,type:"boolean",explicitSet:!1,valueSet:[!0,!1],pdfVersion:1.3},FitWindow:{defaultValue:!1,value:!1,type:"boolean",explicitSet:!1,valueSet:[!0,!1],pdfVersion:1.3},CenterWindow:{defaultValue:!1,value:!1,type:"boolean",explicitSet:!1,valueSet:[!0,!1],pdfVersion:1.3},DisplayDocTitle:{defaultValue:!1,value:!1,type:"boolean",explicitSet:!1,valueSet:[!0,!1],pdfVersion:1.4},NonFullScreenPageMode:{defaultValue:"UseNone",value:"UseNone",type:"name",explicitSet:!1,valueSet:["UseNone","UseOutlines","UseThumbs","UseOC"],pdfVersion:1.3},Direction:{defaultValue:"L2R",value:"L2R",type:"name",explicitSet:!1,valueSet:["L2R","R2L"],pdfVersion:1.3},ViewArea:{defaultValue:"CropBox",value:"CropBox",type:"name",explicitSet:!1,valueSet:["MediaBox","CropBox","TrimBox","BleedBox","ArtBox"],pdfVersion:1.4},ViewClip:{defaultValue:"CropBox",value:"CropBox",type:"name",explicitSet:!1,valueSet:["MediaBox","CropBox","TrimBox","BleedBox","ArtBox"],pdfVersion:1.4},PrintArea:{defaultValue:"CropBox",value:"CropBox",type:"name",explicitSet:!1,valueSet:["MediaBox","CropBox","TrimBox","BleedBox","ArtBox"],pdfVersion:1.4},PrintClip:{defaultValue:"CropBox",value:"CropBox",type:"name",explicitSet:!1,valueSet:["MediaBox","CropBox","TrimBox","BleedBox","ArtBox"],pdfVersion:1.4},PrintScaling:{defaultValue:"AppDefault",value:"AppDefault",type:"name",explicitSet:!1,valueSet:["AppDefault","None"],pdfVersion:1.6},Duplex:{defaultValue:"",value:"none",type:"name",explicitSet:!1,valueSet:["Simplex","DuplexFlipShortEdge","DuplexFlipLongEdge","none"],pdfVersion:1.7},PickTrayByPDFSize:{defaultValue:!1,value:!1,type:"boolean",explicitSet:!1,valueSet:[!0,!1],pdfVersion:1.7},PrintPageRange:{defaultValue:"",value:"",type:"array",explicitSet:!1,valueSet:null,pdfVersion:1.7},NumCopies:{defaultValue:1,value:1,type:"integer",explicitSet:!1,valueSet:null,pdfVersion:1.7}},s=Object.keys(o),l=[],c=0,u=0,f=0;function h(p,A){var v,y=!1;for(v=0;v<p.length;v+=1)p[v]===A&&(y=!0);return y}if(this.internal.viewerpreferences===void 0&&(this.internal.viewerpreferences={},this.internal.viewerpreferences.configuration=JSON.parse(JSON.stringify(o)),this.internal.viewerpreferences.isSubscribed=!1),n=this.internal.viewerpreferences.configuration,e==="reset"||t===!0){var m=s.length;for(f=0;f<m;f+=1)n[s[f]].value=n[s[f]].defaultValue,n[s[f]].explicitSet=!1}if(Zi(e)==="object"){for(i in e)if(a=e[i],h(s,i)&&a!==void 0){if(n[i].type==="boolean"&&typeof a=="boolean")n[i].value=a;else if(n[i].type==="name"&&h(n[i].valueSet,a))n[i].value=a;else if(n[i].type==="integer"&&Number.isInteger(a))n[i].value=a;else if(n[i].type==="array"){for(c=0;c<a.length;c+=1)if(r=!0,a[c].length===1&&typeof a[c][0]=="number")l.push(String(a[c]-1));else if(a[c].length>1){for(u=0;u<a[c].length;u+=1)typeof a[c][u]!="number"&&(r=!1);r===!0&&l.push([a[c][0]-1,a[c][1]-1].join(" "))}n[i].value="["+l.join(" ")+"]"}else n[i].value=n[i].defaultValue;n[i].explicitSet=!0}}return this.internal.viewerpreferences.isSubscribed===!1&&(this.internal.events.subscribe("putCatalog",function(){var p,A=[];for(p in n)n[p].explicitSet===!0&&(n[p].type==="name"?A.push("/"+p+" /"+n[p].value):A.push("/"+p+" "+n[p].value));A.length!==0&&this.internal.write(`/ViewerPreferences
|
|
816
816
|
<<
|
|
817
817
|
`+A.join(`
|
|
818
818
|
`)+`
|
|
@@ -1185,4 +1185,4 @@ ${n.map(([a,o])=>{const s=o.theme?.[r]||o.color;return s?` --color-${a}: ${s};`
|
|
|
1185
1185
|
`)}
|
|
1186
1186
|
}
|
|
1187
1187
|
`).join(`
|
|
1188
|
-
`)}}):null},sGn=np;function lGn({active:e,payload:t,className:n,indicator:r="dot",hideLabel:i=!1,hideIndicator:a=!1,label:o,labelFormatter:s,labelClassName:l,formatter:c,color:u,nameKey:f,labelKey:h}){const{config:m}=uot(),p=L.useMemo(()=>{if(i||!t?.length)return null;const[v]=t,y=String(h||v?.dataKey||v?.name||"value"),x=cte(m,v,y),k=!h&&typeof o=="string"?m[o]?.label||o:x?.label;return s?d.jsx("div",{className:_t("font-medium",l),children:s(k,t)}):k?d.jsx("div",{className:_t("font-medium",l),children:k}):null},[o,s,t,i,l,m,h]);if(!e||!t?.length)return null;const A=t.length===1&&r!=="dot";return d.jsxs("div",{className:_t("border-gray-200/50 bg-white grid min-w-[8rem] items-start gap-1.5 rounded-lg border border-gray-200 px-2.5 py-1.5 text-xs shadow-xl dark:border-gray-800/50 dark:bg-gray-950 dark:border-gray-800",n),children:[A?null:p,d.jsx("div",{className:"grid gap-1.5",children:t.map((v,y)=>{const x=String(f||v.name||v.dataKey||"value"),k=cte(m,v,x),S=u||v.payload.fill||v.color;return d.jsx("div",{className:_t("[&>svg]:text-gray-500 flex w-full flex-wrap items-stretch gap-2 [&>svg]:h-2.5 [&>svg]:w-2.5 dark:[&>svg]:text-gray-400",r==="dot"&&"items-center"),children:c&&v?.value!==void 0&&v.name?c(v.value,v.name,v,y,v.payload):d.jsxs(d.Fragment,{children:[k?.icon?d.jsx(k.icon,{}):!a&&d.jsx("div",{className:_t("shrink-0 rounded-[2px] border-(--color-border) bg-(--color-bg)",{"h-2.5 w-2.5":r==="dot","w-1":r==="line","w-0 border-[1.5px] border-dashed bg-transparent":r==="dashed","my-0.5":A&&r==="dashed"}),style:{"--color-bg":S,"--color-border":S}}),d.jsxs("div",{className:_t("flex flex-1 justify-between leading-none",A?"items-end":"items-center"),children:[d.jsxs("div",{className:"grid gap-1.5",children:[A?p:null,d.jsx("span",{className:"text-gray-500 dark:text-gray-400",children:k?.label||v.name})]}),v.value&&d.jsx("span",{className:"text-gray-950 font-mono font-medium tabular-nums dark:text-gray-50",children:v.value.toLocaleString()})]})]})},v.dataKey)})})]})}const cGn=ex;function uGn({className:e,hideIcon:t=!1,payload:n,verticalAlign:r="bottom",nameKey:i}){const{config:a}=uot();return n?.length?d.jsx("div",{className:_t("flex items-center justify-center gap-4",r==="top"?"pb-3":"pt-3",e),children:n.map(o=>{const s=String(i||o.dataKey||"value"),l=cte(a,o,s);return d.jsxs("div",{className:_t("[&>svg]:text-gray-500 flex items-center gap-1.5 [&>svg]:h-3 [&>svg]:w-3 dark:[&>svg]:text-gray-400"),children:[l?.icon&&!t?d.jsx(l.icon,{}):d.jsx("div",{className:"h-2 w-2 shrink-0 rounded-[2px]",style:{backgroundColor:o.color}}),l?.label]},o.value)})}):null}function cte(e,t,n){if(typeof t!="object"||t===null)return;const r="payload"in t&&typeof t.payload=="object"&&t.payload!==null?t.payload:void 0;let i=n;return n in t&&typeof t[n]=="string"?i=t[n]:r&&n in r&&typeof r[n]=="string"&&(i=r[n]),i in e?e[i]:e[n]}function dGn(e){return!e||rs(e)?null:encodeURIComponent(JSON.stringify(e))}const ute="balanceReportFilters",pd={MONTHLY:"Monthly",BI_MONTHLY:"Bi-monthly",QUARTERLY:"Quarterly",SEMI_ANNUALLY:"Semi-Annually",ANNUALLY:"Annually"};function fGn({filter:e,setFilter:t,closeModal:n}){const{control:r,handleSubmit:i,watch:a}=Ar({defaultValues:{...e}}),{selectableBusinesses:o,fetching:s}=Ou(),{selectableFinancialEntities:l,fetching:c}=Fg(),{selectableTags:u,fetching:f}=t6(),h=y=>{t(y),n()},m=a("excludedTags"),p=w.useMemo(()=>u.filter(y=>!m.includes(y.value)),[m,u]),A=a("includedTags"),v=w.useMemo(()=>u.filter(y=>!A.includes(y.value)),[A,u]);return d.jsxs("form",{onSubmit:i(h),children:[d.jsxs(sC,{cols:2,children:[d.jsx(wt,{name:"ownerId",control:r,defaultValue:e?.ownerId,render:({field:y,fieldState:x})=>d.jsx(ri,{...y,data:o,value:y.value,disabled:s,label:"Owners",placeholder:"Scroll to see all options",maxDropdownHeight:160,searchable:!0,error:x.error?.message,withinPortal:!0})}),d.jsx(wt,{name:"fromDate",control:r,defaultValue:e?.fromDate,rules:{pattern:{value:ki,message:"Date must be im format yyyy-mm-dd"}},render:({field:y,fieldState:x})=>d.jsx(Vi,{...y,onChange:k=>{const S=k?typeof k=="string"?k:Rt(k,"yyyy-MM-dd"):void 0;S!==y.value&&y.onChange(S)},value:y.value?new Date(y.value):void 0,error:x.error?.message,label:"From Date",popoverProps:{withinPortal:!0}})}),d.jsx(wt,{name:"toDate",control:r,defaultValue:e?.toDate,rules:{pattern:{value:ki,message:"Date must be im format yyyy-mm-dd"}},render:({field:y,fieldState:x})=>d.jsx(Vi,{...y,onChange:k=>{const S=k?typeof k=="string"?k:Rt(k,"yyyy-MM-dd"):void 0;S!==y.value&&y.onChange(S)},value:y.value?new Date(y.value):void 0,error:x.error?.message,label:"To Date",popoverProps:{withinPortal:!0}})}),d.jsx(wt,{name:"period",control:r,defaultValue:pd.MONTHLY,render:({field:y,fieldState:x})=>d.jsx(ri,{...y,data:Object.values(pd).map(k=>({value:k,label:k})),value:y.value,label:"Period",maxDropdownHeight:160,error:x.error?.message,withinPortal:!0})}),d.jsx(wt,{name:"excludedCounterparties",control:r,defaultValue:e.excludedCounterparties,render:({field:y,fieldState:x})=>d.jsx(ul,{...y,data:l,value:y.value??[],disabled:c,label:"Excluded Counterparties",placeholder:"Scroll to see all options",maxDropdownHeight:160,searchable:!0,error:x.error?.message,withinPortal:!0})}),d.jsx(wt,{name:"includedTags",control:r,defaultValue:e.includedTags,render:({field:y,fieldState:x})=>d.jsx(ul,{...y,data:p,value:y.value??[],disabled:f,label:"Included Tags",placeholder:"Scroll to see all options",maxDropdownHeight:160,searchable:!0,error:x.error?.message,withinPortal:!0})}),d.jsx(wt,{name:"excludedTags",control:r,defaultValue:e.excludedTags,render:({field:y,fieldState:x})=>d.jsx(ul,{...y,data:v,value:y.value??[],disabled:f,label:"Excluded Tags",placeholder:"Scroll to see all options",maxDropdownHeight:160,searchable:!0,error:x.error?.message,withinPortal:!0})})]}),d.jsxs("div",{className:"flex justify-center mt-5 gap-3",children:[d.jsx("button",{type:"submit",disabled:s,className:"text-white bg-indigo-500 border-0 py-2 px-8 focus:outline-hidden hover:bg-indigo-600 rounded-sm text-lg",children:"Filter"}),d.jsx("button",{type:"button",className:"text-white bg-rose-500 border-0 py-2 px-8 focus:outline-hidden hover:bg-rose-600 rounded-sm text-lg",onClick:n,children:"Cancel"})]})]})}function hGn({filter:e,setFilter:t,initiallyOpened:n=!1}){const[r,i]=w.useState(n),[a,o]=w.useState(!!e),{get:s,set:l}=mi();w.useEffect(()=>{const u=dGn(e),f=s(ute);u!==f&&l(ute,u)},[e,s,l]);const c=w.useCallback(u=>{Ed(u,e)||(t(u),o(!!u))},[e,t]);return d.jsxs("div",{className:"flex flex-row gap-5 items-center",children:[d.jsx(Vc,{opened:r,onClose:()=>i(!1),content:d.jsx(fGn,{filter:e,setFilter:c,closeModal:()=>i(!1)}),modalSize:"xl"}),d.jsx(ya,{inline:!0,size:16,disabled:!a,children:d.jsx(Ge,{variant:"outline",size:"icon",className:"size-7.5",onClick:()=>i(!0),children:d.jsx(Ll,{className:"size-5"})})})]})}const mGn=({period:e,transactionIDs:t,onCloseExtendedTransactions:n})=>{const[{data:r,fetching:i}]=rn({query:vFt,variables:{transactionIDs:t}}),a=w.useMemo(()=>r?.transactionsByIDs?t.map(o=>r?.transactionsByIDs.find(s=>s.id===o)).filter(Boolean):[],[r,t]);return d.jsx(os,{className:"mt-5 w-full",children:i?d.jsx(Hc,{}):d.jsxs(d.Fragment,{children:[d.jsx(Lc,{children:d.jsxs(Uc,{className:"flex justify-between",children:[d.jsxs("span",{children:[e," Transactions"]}),d.jsx(Ge,{variant:"link",onClick:n,children:d.jsx(Vx,{className:"h-4 w-4"})})]})}),d.jsx(Gs,{children:d.jsx(oae,{transactionsProps:a})})]})})},RN={income:{label:"Income",color:"rgba(0, 255, 50, 0.5)"},expense:{label:"Expense",color:"rgba(255, 0, 0, 0.5)"},delta:{label:"Delta",color:"rgba(0, 30, 255, 0.5)"},cumulative:{label:"Cumulative Balance",color:"rgba(100, 0, 255, 0.5)"}};function pGn(e,t,n){switch(n){case pd.MONTHLY:{const r=String(t).padStart(2,"0");return`${e}-${r}`}case pd.BI_MONTHLY:{const r=t%2===0?t-1:t,i=String(r).padStart(2,"0");return`${e}-${i}`}case pd.QUARTERLY:{const r=Math.ceil(t/3);return`${e}-Q${r}`}case pd.SEMI_ANNUALLY:{const r=t>6?2:1;return`${e}-H${r}`}case pd.ANNUALLY:return String(e)}}function AGn(e,t){switch(t){case pd.MONTHLY:{const[n,r]=e.split("-");return`${r}/${n}`}case pd.BI_MONTHLY:{const[n,r]=e.split("-"),i=Number(r)+1,a=String(i).padStart(2,"0");return`${r}-${a}/${n}`}case pd.QUARTERLY:{const[n,r]=e.split("-");return`${r}, ${n}`}case pd.SEMI_ANNUALLY:{const[n,r]=e.split("-");return`${r}, ${n}`}case pd.ANNUALLY:return e}}const eIe=_3(Vt.Usd),gGn=()=>{const{setFiltersContext:e}=w.useContext(ta),{userContext:t}=w.useContext(mc),{get:n}=mi(),r=w.useMemo(()=>{const p={ownerId:t?.context.adminBusinessId,toDate:Rt(new Date,"yyyy-MM-dd"),period:pd.MONTHLY,fromDate:Rt(lD(new Date,{years:1}),"yyyy-MM-dd"),excludedCounterparties:[],includedTags:[],excludedTags:[]},A=n(ute);if(A)try{return JSON.parse(decodeURIComponent(A))}catch(v){console.log("Error parsing balance report filters from URL:",v)}return p},[t?.context.adminBusinessId]),[i,a]=w.useState(r),[o,s]=w.useState(void 0),[l,c]=w.useState(Object.keys(RN)),u=w.useMemo(()=>{const{ownerId:p,fromDate:A,toDate:v}=i;return{ownerId:p,fromDate:A,toDate:v}},[i]),[{data:f,fetching:h}]=rn({query:yFt,variables:u,pause:!i});w.useEffect(()=>{e(d.jsxs("div",{className:"flex flex-row gap-x-5",children:[d.jsx(hGn,{filter:i,setFilter:a,initiallyOpened:!i}),d.jsx(UWe,{options:Object.entries(RN).map(([p,A])=>({label:A.label,value:p})),onValueChange:c,defaultValue:l,placeholder:"Select Data Sets",variant:"default",maxCount:1})]})),s(void 0)},[f,h,i,e,a,l]),w.useEffect(()=>{a(p=>({...p,ownerId:t?.context.adminBusinessId}))},[t]);const m=w.useMemo(()=>{if(!f?.transactionsForBalanceReport)return[];const p=new Map;f.transactionsForBalanceReport.map(v=>{if(v.counterparty?.id&&(!v.isFee&&t?.context.financialAccountsBusinessesIds?.includes(v.counterparty.id)||i.excludedCounterparties?.includes(v.counterparty.id))||i.includedTags.length>0&&(!v.charge?.tags||v.charge.tags.length===0||!v.charge.tags.some(k=>i.includedTags.includes(k.id)))||i.excludedTags.length>0&&v.charge?.tags.length&&v.charge.tags.some(k=>i.excludedTags.includes(k.id)))return;const y=pGn(v.year,v.month,i.period);p.has(y)||p.set(y,{income:0,expense:0,delta:0,transactions:[]});const x=p.get(y);v.amountUsd.raw>0?x.income+=v.amountUsd.raw:x.expense+=v.amountUsd.raw,x.delta+=v.amountUsd.raw,x.transactions.push(v)});let A=0;return Array.from(p.entries()).sort((v,y)=>v[0].localeCompare(y[0])).map(([v,y])=>(A+=y.delta,{period:v,income:y.income,expense:y.expense,delta:y.delta,cumulative:A,transactions:y.transactions.sort((x,k)=>Math.abs(k.amountUsd.raw)-Math.abs(x.amountUsd.raw))}))},[f,i.period,i.excludedCounterparties,t?.context.financialAccountsBusinessesIds,i.includedTags,i.excludedTags]);return d.jsx(Pa,{title:"Balance Report",description:"Accounts periodical balance",children:h?d.jsx(Hc,{}):d.jsxs(d.Fragment,{children:[d.jsxs(os,{className:"w-full",children:[d.jsx(Lc,{children:d.jsx(JY,{children:"Click specific period to expand it's transactions data"})}),d.jsx(Gs,{children:d.jsx(aGn,{config:RN,className:"h-150 w-full",children:d.jsxs(rGn,{accessibilityLayer:!0,data:m,onClick:p=>s(p.activeLabel),children:[d.jsx(Kat,{vertical:!1}),d.jsx(G8,{dataKey:"period",tickLine:!1,tickMargin:10,axisLine:!1,tickFormatter:p=>AGn(p,i.period)}),d.jsx(sGn,{content:d.jsx(lGn,{formatter:(p,A,v,y)=>{const x=`bg-[var(--color-${A})]`;return y<2?d.jsxs(d.Fragment,{children:[d.jsx("div",{className:`${x} h-2.5 w-2.5 shrink-0 rounded-[2px]`}),RN[A]?.label||A,d.jsx("div",{className:"ml-auto flex items-baseline gap-0.5 font-mono font-medium tabular-nums text-foreground",children:eIe.format(Number(p))})]}):d.jsxs("div",{className:"mt-1.5 flex basis-full items-center border-t pt-1.5 text-xs font-medium text-foreground",children:[d.jsx("div",{className:`h-2.5 w-2.5 shrink-0 rounded-[2px] mr-2 ${x}`}),RN[A]?.label||A,d.jsx("div",{className:"ml-auto flex items-baseline gap-0.5 font-mono font-medium tabular-nums text-foreground",children:eIe.format(Number(p))})]})}})}),d.jsx(cGn,{content:d.jsx(uGn,{})}),l.includes("income")&&d.jsx(mp,{dataKey:"income",fill:"var(--color-income)",radius:4}),l.includes("expense")&&d.jsx(mp,{dataKey:"expense",fill:"var(--color-expense)",radius:4}),l.includes("delta")&&d.jsx(mp,{dataKey:"delta",fill:"var(--color-delta)",radius:4}),l.includes("cumulative")&&d.jsx(mp,{dataKey:"cumulative",fill:"var(--color-cumulative)",radius:4})]})})})]}),o&&d.jsx(mGn,{period:o,onCloseExtendedTransactions:()=>s(void 0),transactionIDs:m.find(p=>p.period===o)?.transactions.map(p=>p.id)??[]})]})})},vGn=({record:e})=>{const t=$t(O3e,e);return d.jsxs(Dr,{children:[d.jsx(Mt,{children:e.description}),d.jsx(Mt,{children:Rt(new Date(e.purchaseDate),"dd/MM/yyyy")}),d.jsx(Mt,{children:e.activationDate?Rt(new Date(e.activationDate),"dd/MM/yyyy"):void 0}),d.jsx(Mt,{children:t.originalCost?ti(t.originalCost,0):void 0}),d.jsx(Mt,{children:t.reportYearDelta?ti(t.reportYearDelta,0):void 0}),d.jsx(Mt,{children:ti(t.totalDepreciableCosts,0)}),d.jsxs(Mt,{children:[ti(e.statutoryDepreciationRate,0),"%"]}),d.jsx(Mt,{children:e.claimedDepreciationRate?`${ti(e.claimedDepreciationRate,1)}%`:"-"}),d.jsx(Mt,{children:t.reportYearClaimedDepreciation?ti(t.reportYearClaimedDepreciation,0):"-"}),d.jsx(Mt,{children:t.pastYearsAccumulatedDepreciation?ti(t.pastYearsAccumulatedDepreciation,0):"-"}),d.jsx(Mt,{children:t.totalDepreciation?ti(t.totalDepreciation,0):"-"}),d.jsx(Mt,{children:t.netValue?ti(t.netValue,0):"-"})]})};function yGn(e){return!e||rs(e)?null:encodeURIComponent(JSON.stringify(e))}const dte="depreciationReportFilters";function bGn({filter:e,setFilter:t,close:n}){const r=Ar({defaultValues:{...e}}),{control:i,handleSubmit:a}=r,{selectableFinancialEntities:o,fetching:s}=Fg(),l=c=>{t({...c,year:Number(c.year)}),n()};return d.jsx(ii,{...r,children:d.jsxs("form",{onSubmit:a(l),className:"space-y-4",children:[d.jsx(Jt,{name:"year",control:i,rules:{required:"Year is required",validate:c=>{const u=Number(c);return Number.isNaN(u)||u<2e3||u>2100?"Invalid year":!0}},render:({field:c})=>d.jsxs(en,{children:[d.jsx(gn,{children:"Year"}),d.jsx(dn,{children:d.jsx(Ny,{...c,hideControls:!0,decimalScale:0})}),d.jsx(Bn,{})]})}),d.jsx(Jt,{name:"financialEntityId",defaultValue:e?.financialEntityId,control:i,render:({field:c})=>d.jsxs(en,{children:[d.jsx(gn,{children:"Owner"}),d.jsx(_y,{...c,data:o,value:c.value??void 0,disabled:s,placeholder:"Select a financial entity",formPart:!0}),d.jsx(Bn,{})]})}),d.jsx(Uy,{children:d.jsx(Ge,{type:"submit",disabled:s,children:"Filter"})})]})})}function xGn({filter:e,setFilter:t}){const[n,r]=w.useState(!1),{get:i,set:a}=mi();w.useEffect(()=>{const s=yGn(e),l=i(dte);s!==l&&a(dte,s)},[e,i,a]);const o=w.useCallback(s=>{Ed(s,e)||t(s)},[e,t]);return d.jsxs(Ra,{open:n,onOpenChange:r,children:[d.jsx(Ac,{asChild:!0,children:d.jsx(Ge,{variant:"outline",size:"icon",children:d.jsx(Ll,{size:20})})}),d.jsx($a,{className:"sm:max-w-[425px]",children:d.jsx(bGn,{filter:e,setFilter:o,close:()=>r(!1)})})]})}const tIe=({data:e,groupName:t})=>{const n=$t(O3e,e);return d.jsxs(Dr,{className:"font-bold border-b border-black",children:[d.jsx(Mt,{children:t?"Group Total":"Overall Total"}),d.jsx(Mt,{colSpan:2,children:t}),d.jsx(Mt,{children:n.originalCost?ti(n.originalCost,0):void 0}),d.jsx(Mt,{children:n.reportYearDelta?ti(n.reportYearDelta,0):void 0}),d.jsx(Mt,{children:n.totalDepreciableCosts?ti(n.totalDepreciableCosts,0):void 0}),d.jsx(Mt,{}),d.jsx(Mt,{}),d.jsx(Mt,{children:n.reportYearClaimedDepreciation?ti(n.reportYearClaimedDepreciation,0):void 0}),d.jsx(Mt,{children:n.pastYearsAccumulatedDepreciation?ti(n.pastYearsAccumulatedDepreciation,0):void 0}),d.jsx(Mt,{children:n.totalDepreciation?ti(n.totalDepreciation,0):void 0}),d.jsx(Mt,{children:n.netValue?ti(n.netValue,0):void 0})]})},wGn=()=>{const{setFiltersContext:e}=w.useContext(ta),{userContext:t}=w.useContext(mc),{get:n}=mi(),r=w.useMemo(()=>{const c={financialEntityId:t?.context.adminBusinessId,year:new Date().getFullYear()},u=n(dte);if(u)try{return JSON.parse(decodeURIComponent(u))}catch(f){console.error("Failed to parse depreciation report filters from URL",f)}return c},[t?.context.adminBusinessId]),[i,a]=w.useState(r),[{data:o,fetching:s}]=rn({query:bFt,variables:{filters:i}});w.useEffect(()=>{e(d.jsx("div",{className:"flex flex-row gap-x-5",children:d.jsx(xGn,{filter:i,setFilter:a})}))},[i,e,a]);const l=w.useMemo(()=>`Depreciation Report for ${i.year}`,[i.year]);return d.jsx(Pa,{title:"Depreciation Report",description:l,children:s?d.jsx(Hc,{}):d.jsxs(Bu,{children:[d.jsxs(Iu,{children:[d.jsxs(Dr,{className:"font-bold text-xl",children:[d.jsx(Gr,{colSpan:6,className:"text-center border-x",children:"List of Assets and Costs"}),d.jsx(Gr,{colSpan:5,className:"text-center border-x",children:"Depreciation"}),d.jsx(Gr,{className:"text-center border-x",children:"Remaining"})]}),d.jsxs(Dr,{className:"border-b border-black",children:[d.jsx(Gr,{className:"whitespace-normal",children:"Assets List and Descriptions"}),d.jsx(Gr,{className:"whitespace-normal",children:"Date of Purchase"}),d.jsx(Gr,{className:"whitespace-normal",children:"Activation Date"}),d.jsx(Gr,{className:"whitespace-normal",children:"Original Cost"}),d.jsx(Gr,{className:"whitespace-normal",children:"Changes During the Year"}),d.jsx(Gr,{className:"whitespace-normal",children:"Total Depreciable Assets"}),d.jsx(Gr,{className:"whitespace-normal",children:"Statutory Depreciation Rate"}),d.jsx(Gr,{className:"whitespace-normal",children:"Claimed Depreciation Rate"}),d.jsx(Gr,{className:"whitespace-normal",children:"Depreciation Claimed This Year"}),d.jsx(Gr,{className:"whitespace-normal",children:"Previous Tax Years Accumulated Depreciation"}),d.jsx(Gr,{className:"whitespace-normal",children:"Total Depreciation"}),d.jsx(Gr,{className:"whitespace-normal",children:"Net Book Value"})]})]}),d.jsx(ju,{children:o?.depreciationReport&&d.jsxs(d.Fragment,{children:[o.depreciationReport.categories.map((c,u)=>d.jsxs(w.Fragment,{children:[d.jsxs(Dr,{className:"font-bold",children:[d.jsx(Mt,{children:`Category ${u+1}`}),d.jsx(Mt,{colSpan:2,children:c.category.name}),d.jsx(Mt,{colSpan:3}),d.jsxs(Mt,{children:[ti(c.category.percentage,0),"%"]}),d.jsx(Mt,{colSpan:5})]}),c.records.sort((f,h)=>f.purchaseDate.localeCompare(h.purchaseDate)).map(f=>d.jsx(vGn,{record:f},f.id)),d.jsx(tIe,{data:c.summary,groupName:c.category.name})]},c.id)),d.jsx(tIe,{data:o.depreciationReport.summary})]})})]})})},BI=["2020","2021","2022","2023"];function kGn({selectedBusiness:e,setSelectedBusiness:t,selectedYear:n,setSelectedYear:r,referenceYear:i,setReferenceYear:a}){const[o,s]=w.useState(!n||!e),{selectableBusinesses:l,fetching:c}=Ou(),u=w.useMemo(()=>e?l.find(h=>h.value===e)?.label??"":"",[l,e]);return d.jsxs(Ra,{open:o,onOpenChange:s,children:[d.jsx(Ac,{asChild:!0,children:d.jsxs(Ge,{variant:"outline",className:"flex items-center gap-2",children:[d.jsx(Ll,{className:"h-4 w-4"}),"מסננים",d.jsxs("span",{className:"text-xs bg-blue-100 text-blue-800 px-2 py-0.5 rounded-full",children:[u," • ",n]})]})}),d.jsxs($a,{className:"sm:max-w-md",dir:"rtl",children:[d.jsx(us,{children:d.jsxs(ds,{className:"flex items-center gap-2",children:[d.jsx(Ll,{className:"h-5 w-5"}),"מסנני דוח"]})}),d.jsxs("div",{className:"space-y-6 py-4",children:[d.jsxs("div",{className:"space-y-2",children:[d.jsxs($n,{htmlFor:"business-select",className:"flex items-center gap-2",children:[d.jsx(o5t,{className:"h-4 w-4"}),"בחירת עסק"]}),d.jsx(_y,{onChange:f=>t(f??void 0),data:l,value:e,disabled:c,placeholder:"Scroll to see all options",triggerProps:{className:"w-full"}})]}),d.jsxs("div",{className:"space-y-2",children:[d.jsxs($n,{htmlFor:"year-select",className:"flex items-center gap-2",children:[d.jsx(Yk,{className:"h-4 w-4"}),"שנת דיווח"]}),d.jsxs(Fo,{value:n,onValueChange:r,children:[d.jsx(To,{id:"year-select",children:d.jsx(Do,{})}),d.jsx(Oo,{children:BI.map(f=>d.jsx(Ja,{value:f,children:f},f))})]}),d.jsxs("p",{className:"text-xs text-gray-500",children:["זמינות נתונים: ",BI.join(", ")]})]}),d.jsxs("div",{className:"space-y-2",children:[d.jsxs($n,{htmlFor:"reference-year-select",className:"flex items-center gap-2",children:[d.jsx(Yk,{className:"h-4 w-4"}),"שנת השוואה"]}),d.jsxs(Fo,{value:i,onValueChange:f=>a(f==="none"?void 0:f),children:[d.jsx(To,{id:"reference-year-select",children:d.jsx(Do,{})}),d.jsxs(Oo,{children:[d.jsx(Ja,{value:"none",children:"ללא"},"none"),BI.map(f=>d.jsx(Ja,{value:f,children:f},f))]})]}),d.jsxs("p",{className:"text-xs text-gray-500",children:["זמינות נתונים: ",BI.join(", ")]})]}),d.jsxs("div",{className:"flex justify-end gap-2 pt-4",children:[d.jsx(Ge,{variant:"outline",onClick:()=>s(!1),children:"ביטול"}),d.jsx(Ge,{onClick:()=>s(!1),children:"אישור"})]})]})]})]})}const co=({label:e,value:t,code:n,referenceValue:r,showEmptyFields:i,showChange:a=!1})=>{const o=u=>i?!0:!s(u),s=u=>!u||u.trim()===""||u==="0"||u==="0.00",l=(u,f)=>{if(!f)return null;const h=v=>Number.parseFloat(v.replace(/[,\s₪]/g,""))||0,m=h(u),p=h(f);return p===0?null:(m-p)/p*100};if(!o(t))return null;const c=a?l(t,r):null;return d.jsxs("div",{className:"flex justify-between items-center py-2 border-b border-gray-200",dir:"rtl",children:[d.jsxs("span",{className:"text-sm text-gray-600",children:[e," ",n&&`(${n})`]}),d.jsxs("div",{className:"flex items-center gap-2",children:[d.jsx("span",{className:`font-medium ${s(t)?"text-gray-400":""}`,children:s(t)?"0":t}),c!==null&&d.jsxs("span",{className:`text-xs px-1 py-0.5 rounded ${c>0?"text-green-700 bg-green-100":c<0?"text-red-700 bg-red-100":"text-gray-700 bg-gray-100"}`,children:[c>0?"+":"",c.toFixed(1),"%"]})]})]})},Yo=({codes:e,referenceCodes:t,code:n,showEmptyFields:r})=>{const{value:i,label:a}=w.useMemo(()=>{const s=e.find(l=>l.code===n);return{value:s?.amount||0,label:s?.label||"לא זוהה קוד"}},[e,n]),o=w.useMemo(()=>t?.find(s=>s.code===n)?.amount.toString()||"",[t,n]);return d.jsx(co,{label:a,value:ti(i,0),code:String(n),showChange:!0,showEmptyFields:r,referenceValue:o})},SGn=[{title:"מזומנים ושווי מזומנים",codes:[7110,7120,7150],sumCode:7100},{title:"ניירות ערך",codes:[7215,7225,7230,7290,7295],sumCode:7200},{title:"לקוחות",codes:[7310,7320,7330,7350,7360,7380,7390],sumCode:7300},{title:"חייבים ויתרות חובה",codes:[7410,7420,7430,7440,7450,7461,7462,7470,7490],sumCode:7400},{title:"מסים נדחים לזמן קצר",codes:[7610,7620,7690],sumCode:7600},{title:"הלוואות לזמן קצר",codes:[7711,7712,7720],sumCode:7700},{title:"מלאי",codes:[7805,7810,7815,7820,7825,7830,7840,7850,7860,7870,7890],sumCode:7800}],CGn=[{title:"רכוש קבוע",codes:[8010,8020,8025,8030,8040,8050,8060,8080,8090,8095,8100,8105,8110,8120,8130,8140,8150,8160,8170,8180,8190],sumCode:8e3},{title:"נכסים לא שוטפים מוחזקים למכירה",codes:[8710],sumCode:8700},{title:"הוצאות מראש לזמן ארוך",codes:[8210,8220,8290],sumCode:8200},{title:"השקעות בחברות מוחזקות כלולות ומאוחדות",codes:[8315,8325,8335,8340,8350],sumCode:8300},{title:'השקעות בחברות אחרות כולל ני"ע סחירים מוחזקים לזמן ארוך',codes:[8410,8420,8440,8450,8460,8490],sumCode:8400},{title:"מסים נדחים לזמן ארוך",codes:[8510,8520,8590],sumCode:8500},{title:"הוצאות נדחות ורכוש אחר",codes:[8610,8620,8630,8640,8690],sumCode:8600}],_Gn=[{title:"בנקים והלואות לזמן קצר",codes:[9110,9120,9130,9140,9151,9152,9190],sumCode:9100},{title:"ספקים ונותני שירותים",codes:[9210,9220,9230,9290],sumCode:9200},{title:"זכאים ויתרות זכות",codes:[9310,9320,9330,9340,9350,9360,9370,9410,9420,9431,9432,9435,9440,9450,9460,9470,9480,9490],sumCode:9400},{title:"עתודה למסים נדחים לזמן קצר",codes:[9510,9520,9530],sumCode:9500}],NGn=[{title:"התחייבויות לזמן ארוך",codes:[9605,9610,9620,9631,9632,9640,9650,9660,9670,9690],sumCode:9600},{title:"התחייבויות בשל סיום יחסי עובד-מעביד",codes:[9710,9720,9790],sumCode:9700},{title:"עתודה למסים נדחים לזמן ארוך",codes:[9810,9820,9890],sumCode:9800}],EGn=[{title:"הון עצמי",codes:[9910,9920,9930,9940,9950,9960,9980],sumCode:9900}];function FGn({data:e,referenceData:t,showEmptyFields:n=!1}){const i=$t(Tge,e).balanceSheet||[],o=$t(Tge,t)?.balanceSheet||[];return d.jsx(sS,{value:"balanceSheet",className:"border rounded-md p-4",children:d.jsxs("div",{className:"space-y-6",dir:"rtl",children:[d.jsx("h3",{className:"text-lg font-bold border-b pb-2",children:"נתוני המאזן"}),d.jsxs("div",{className:"grid grid-cols-1 lg:grid-cols-2 gap-6",children:[d.jsxs("div",{className:"space-y-4",children:[d.jsx("h4",{className:"text-lg font-bold text-blue-800 border-b pb-2",children:"נכסים"}),d.jsx("div",{className:"bg-blue-100 p-4 rounded-md border-2 border-blue-300",children:d.jsx("h5",{className:"font-bold",children:"רכוש שוטף"})}),SGn.map(s=>d.jsxs("div",{className:"bg-blue-50 p-4 rounded-md",children:[d.jsx("h6",{className:"font-bold mb-3",children:s.title}),d.jsxs("div",{className:"space-y-2",children:[s.codes.map(l=>d.jsx(Yo,{codes:i,referenceCodes:o,code:l,showEmptyFields:n},l)),d.jsx("div",{className:"border-2 rounded-md border-gray-300",children:d.jsx(Yo,{codes:i,referenceCodes:o,code:s.sumCode,showEmptyFields:n})})]})]},s.title)),d.jsx("div",{className:"bg-blue-100 p-4 rounded-md border-2 border-blue-300",children:d.jsx(Yo,{codes:i,code:7e3,showEmptyFields:n})}),CGn.map(s=>d.jsxs("div",{className:"bg-blue-50 p-4 rounded-md",children:[d.jsx("h6",{className:"font-bold mb-3",children:s.title}),d.jsxs("div",{className:"space-y-2",children:[s.codes.map(l=>d.jsx(Yo,{codes:i,referenceCodes:o,code:l,showEmptyFields:n},l)),d.jsx("div",{className:"border-2 rounded-md border-gray-300",children:d.jsx(Yo,{codes:i,referenceCodes:o,code:s.sumCode,showEmptyFields:n})})]})]},s.title)),d.jsx("div",{className:"bg-blue-100 p-4 rounded-md border-2 border-blue-300",children:d.jsx(Yo,{codes:i,code:8888,showEmptyFields:n})})]}),d.jsxs("div",{className:"space-y-4",children:[d.jsx("h4",{className:"text-lg font-bold text-red-800 border-b pb-2",children:"התחייבויות והון"}),d.jsx("div",{className:"bg-red-100 p-4 rounded-md border-2 border-red-300",children:d.jsx("h5",{className:"font-bold",children:"התחייבויות שוטפות"})}),_Gn.map(s=>d.jsxs("div",{className:"bg-red-50 p-4 rounded-md",children:[d.jsx("h6",{className:"font-bold mb-3",children:s.title}),d.jsxs("div",{className:"space-y-2",children:[s.codes.map(l=>d.jsx(Yo,{codes:i,referenceCodes:o,code:l,showEmptyFields:n},l)),d.jsx("div",{className:"border-2 rounded-md border-gray-300",children:d.jsx(Yo,{codes:i,referenceCodes:o,code:s.sumCode,showEmptyFields:n})})]})]},s.title)),d.jsx("div",{className:"bg-red-100 p-4 rounded-md border-2 border-red-300",children:d.jsx(Yo,{codes:i,code:9e3,showEmptyFields:n})}),NGn.map(s=>d.jsxs("div",{className:"bg-red-50 p-4 rounded-md",children:[d.jsx("h6",{className:"font-bold mb-3",children:s.title}),d.jsxs("div",{className:"space-y-2",children:[s.codes.map(l=>d.jsx(Yo,{codes:i,referenceCodes:o,code:l,showEmptyFields:n},l)),d.jsx("div",{className:"border-2 rounded-md border-gray-300",children:d.jsx(Yo,{codes:i,referenceCodes:o,code:s.sumCode,showEmptyFields:n})})]})]},s.title)),EGn.map(s=>d.jsxs("div",{className:"bg-green-50 p-4 rounded-md",children:[d.jsx("h5",{className:"font-bold mb-3",children:s.title}),d.jsx("div",{className:"space-y-2",children:s.codes.map(l=>d.jsx(Yo,{codes:i,referenceCodes:o,code:l,showEmptyFields:n},l))})]},s.title)),d.jsx("div",{className:"bg-red-100 p-4 rounded-md border-2 border-red-300",children:d.jsx(Yo,{codes:i,code:9999,showEmptyFields:n})})]})]})]})})}const DGn=e=>{switch(e){case"1":return"תעשייתי";case"2":return"מסחרי";case"3":return"נותני שירותים";case"99":return"הדיווח כולל יותר מעסק אחד";default:return""}},TGn=e=>{switch(e){case tj.Cash:return"מזומן";case tj.Accrual:return"מצטבר";case tj.DollarRegulations:return"לפי תקנות דולריות";default:return""}},OGn=e=>{switch(e){case _ge.Shekels:return"שקלים";case _ge.Dollars:return"דולרים";default:return""}},BGn=e=>{switch(e){case Sge.DoubleEntry:return"כפולה";case Sge.SingleEntry:return"חד-צידית";default:return""}},IGn=e=>{switch(e){case Cge.Computerized:return"ממוחשב";case Cge.Manual:return"ידני";default:return""}},jGn=e=>{switch(e){case A5.Option_1:return"חלופה 1";case A5.Option_2Adjustments:return"התאמות חשבונאיות למי שיישם את חלופה 2 בהוראת ביצוע 7/2010";case A5.Option_3Adjustments:return"התאמות חשבונאיות למי שיישם את חלופה 3 בהוראת ביצוע 7/2010";case A5.None:return"ללא חלופה";default:return""}},PGn=e=>{switch(e){case U0.Unqualified:return"נוסח אחיד (בלתי מסוייג)";case U0.UnqualifiedWithGoingConcern:return"בנוסח אחיד עם הפניית תשומת לב להערת עסק חי";case U0.UnqualifiedWithOtherEmphases:return"בנוסח אחיד עם הפניות תשומת לב אחרת";case U0.Qualified:return"הסתייגות";case U0.Adverse:return"שלילית";case U0.Disclaimer:return"המנעות";case U0.None:return"אין חוות דעת";default:return""}},II=e=>e==null?"":e?"כן":"לא";function MGn({data:e,businessInfo:t}){const{header:n}=$t(gEt,e),r=$t(AEt,t);return d.jsx(sS,{value:"header",className:"border rounded-md p-4",children:d.jsxs("div",{className:"grid grid-cols-1 md:grid-cols-2 gap-6",dir:"rtl",children:[d.jsxs("div",{className:"space-y-4",children:[d.jsx("h3",{className:"text-lg font-bold border-b pb-2",children:"פרטים מזהים"}),d.jsx(co,{label:"השם הרשום",value:r.name,showEmptyFields:!0}),d.jsx(co,{label:"תיאור העיסוק המדווח",value:n.businessDescription??"",showEmptyFields:!0}),d.jsx(co,{label:"מספר זהות",value:n.idNumber,showEmptyFields:!0}),d.jsx(co,{label:"מספר תיק",value:n.taxFileNumber,showEmptyFields:!0}),d.jsx(co,{label:'תיק מדווח למע"מ',value:n.vatFileNumber??"",showEmptyFields:!0}),d.jsx(co,{label:"מספר תיק ניכויים",value:n.withholdingTaxFileNumber??"",showEmptyFields:!0})]}),d.jsxs("div",{className:"space-y-4",children:[d.jsx("h3",{className:"text-lg font-bold border-b pb-2",children:"פרטי העסק"}),d.jsx(co,{value:DGn(n.businessType),label:"סוג העסק המדווח",showEmptyFields:!0}),d.jsx(co,{label:"שיטת דיווח",value:TGn(n.reportingMethod),showEmptyFields:!0}),n.reportingMethod===tj.DollarRegulations&&d.jsx(co,{label:"מטבע הסכומים",value:OGn(n.currencyType),showEmptyFields:!0}),d.jsx(co,{label:"הסכום באלפים",value:II(n.amountsInThousands),showEmptyFields:!0}),d.jsx(co,{label:"שיטת חשבונאות",value:BGn(n.accountingMethod),showEmptyFields:!0}),d.jsx(co,{label:"הנהלת חשבונות",value:IGn(n.accountingSystem),showEmptyFields:!0}),d.jsx(co,{label:"חייב ברישום תוכנה",value:II(!!n.softwareRegistrationNumber),showEmptyFields:!0}),n.softwareRegistrationNumber&&d.jsx(co,{label:"מספר תעודת רישום",value:n.softwareRegistrationNumber,showEmptyFields:!0}),d.jsx(co,{label:"דוח בגין שותפות",value:II(!!n.isPartnership),showEmptyFields:!0}),n.isPartnership&&d.jsxs(d.Fragment,{children:[d.jsx(co,{label:"מספר שותפים",value:n.partnershipCount?.toString()??"",showEmptyFields:!0}),d.jsx(co,{label:"חלקי ברווחי השותפות",value:`${n.partnershipProfitShare}%`,showEmptyFields:!0})]}),d.jsx(co,{label:"יישום תקני חשבונאות (IFRS)",value:II(!!n.ifrsImplementationYear||!!n.ifrsReportingOption),showEmptyFields:!0}),(!!n.ifrsImplementationYear||!!n.ifrsReportingOption)&&d.jsxs(d.Fragment,{children:[d.jsx(co,{label:"החל משנת המס",value:n.ifrsImplementationYear??"",showEmptyFields:!0}),d.jsx(co,{label:"דווח בחלופה",value:jGn(n.ifrsReportingOption),showEmptyFields:!0})]}),d.jsx(co,{label:"מספר ענף כלכלי של המדווח",value:n.industryCode,showEmptyFields:!0}),d.jsx(co,{label:"חוות דעת המבקר",value:PGn(n.auditOpinionType),showEmptyFields:!0})]})]})})}const RGn=[{title:"הכנסות ממכירות ומתן שירותים",color:"text-blue-700",codes:[1010,1015,1020,1025,1030,1040,1051,1052,1090],sumCode:1e3},{title:"עלות המכירות ומתן השירותים וביצוע עבודות",color:"text-purple-700",codes:[1306,1308,1307,1310,1320,1330,1340,1350,1360,1371,1372,1390,1400,1450],sumCode:1300},{title:"עלויות ייצור ועלויות אצל קבלן בונה",color:"text-rose-700",codes:[2005,2006,2011,2012,2015,2020,2025,2030,2035,2040,2045,2050,2060,2066,2067,2068,2070,2075,2080,2085,2090,2095],sumCode:2e3},{title:"הוצאות מחקר ופיתוח",color:"text-amber-700",codes:[2510,2520,2530,2540,2550,2560,2570,2590],sumCode:2500},{title:"הוצאות מכירה",color:"text-green-700",codes:[3011,3013,3012,3015,3020,3025,3030,3040,3045,3050,3060,3066,3067,3068,3070,3075,3080,3085,3090,3100,3120,3190],sumCode:3e3},{title:"הוצאות הנהלה וכלליות",color:"text-cyan-700",codes:[3511,3513,3512,3515,3520,3530,3535,3540,3545,3550,3560,3566,3567,3568,3570,3575,3580,3590,3595,3600,3610,3620,3625,3631,3632,3640,3650,3660,3665,3680,3685,3690],sumCode:3500},{title:"הוצאות מימון",color:"text-indigo-700",codes:[5010,5020,5025,5030,5040,5050,5051,5090],sumCode:5e3},{title:"הכנסות מימון",color:"text-fuchsia-700",codes:[5110,5121,5122,5130,5150,5160,5190],sumCode:5100},{title:"הכנסות אחרות",color:"text-red-700",codes:[5210,5220,5230,5236,5237,5240,5250,5260,5270,5290],sumCode:5200},{title:"הוצאות אחרות",color:"text-yellow-700",codes:[5310,5320,5330,5390],sumCode:5300}],$Gn=[{title:"מסים על הכנסה",color:"text-sky-700",codes:[5610,5620,5630],sumCode:5600},{title:"ייעוד הרווחים",color:"text-violet-700",codes:[5710],sumCode:5700},{title:"רווח/הפסד אקויטי",color:"text-pink-700",codes:[5810],sumCode:5800}];function LGn({selectedYear:e,referenceYear:t,data:n,referenceData:r,showEmptyFields:i=!1}){const{profitAndLoss:a}=$t(Fge,n),s=$t(Fge,r)?.profitAndLoss||[];return d.jsx(sS,{value:"profitLoss",className:"border rounded-md p-4",children:d.jsxs("div",{className:"space-y-6",dir:"rtl",children:[d.jsxs("div",{className:"flex justify-between items-center",children:[d.jsx("h3",{className:"text-lg font-bold border-b pb-2",children:"נתוני רווח והפסד"}),t&&e!==t&&d.jsxs("span",{className:"text-sm text-blue-600 bg-blue-50 px-2 py-1 rounded",children:["מציג שינויים לעומת ",t]})]}),RGn.map(l=>d.jsxs("div",{className:"bg-gray-50 p-4 rounded-md",children:[d.jsx("h4",{className:`font-bold mb-4 ${l.color}`,children:l.title}),d.jsxs("div",{className:"space-y-2",children:[l.codes.map(c=>d.jsx(Yo,{codes:a,referenceCodes:s,code:c,showEmptyFields:i},c)),d.jsx("div",{className:"border-2 rounded-md border-gray-300",children:d.jsx(Yo,{codes:a,referenceCodes:s,code:l.sumCode,showEmptyFields:i})})]})]},l.title)),d.jsx("div",{className:"bg-emerald-50 p-4 rounded-md border-2 border-emerald-200",children:d.jsx(Yo,{codes:a,referenceCodes:s,code:6666,showEmptyFields:i})}),$Gn.map(l=>d.jsxs("div",{className:"bg-gray-50 p-4 rounded-md",children:[d.jsx("h4",{className:`font-bold mb-4 ${l.color}`,children:l.title}),d.jsxs("div",{className:"space-y-2",children:[l.codes.map(c=>d.jsx(Yo,{codes:a,referenceCodes:s,code:c,showEmptyFields:i},c)),d.jsx("div",{className:"border-2 rounded-md border-gray-300",children:d.jsx(Yo,{codes:a,referenceCodes:s,code:l.sumCode,showEmptyFields:i})})]})]},l.title))]})})}const UGn=[{title:"התאמות חשבונאיות למי שיישם את חלופה 2 בהוראת ביצוע 7/2010 בנושא IFRS",color:"red",codes:[103,104]},{title:"התאמות נדרשות לצרכי מס (הוסף/הפחת)",color:"yellow",codes:[110,120,130,135,140,150,160,170,180,181,182,183,184,190,200,300,310,320,330,350,360],sumCode:370},{title:"התאמות חשבונאיות למי שיישם את חלופה 3 בהוראת ביצוע 7/2010 בנושא IFRS שלא מצאו את ביטויין בהתאמות הנדרשות לצרכי מס",color:"emerald",codes:[383],sumCode:400},{title:"יישום הוראות חוקי מס נוספים",color:"sky",codes:[430,480,490],sumCode:500},{title:"נתונים נוספים",color:"violet",codes:[510,520,530,540,550,570,575,580,585,590]},{title:"בשותפות",color:"pink",codes:[600]}],nIe={red:{header:"text-red-700",sum:"bg-red-50 border-red-200"},yellow:{header:"text-yellow-700",sum:"bg-yellow-50 border-yellow-200"},emerald:{header:"text-emerald-700",sum:"bg-emerald-50 border-emerald-200"},sky:{header:"text-sky-700",sum:"bg-sky-50 border-sky-200"},violet:{header:"text-violet-700",sum:"bg-violet-50 border-violet-200"},pink:{header:"text-pink-700",sum:"bg-pink-50 border-pink-200"}};function zGn({data:e,referenceData:t,showEmptyFields:n=!1}){const{taxAdjustment:r}=$t(Dge,e),a=$t(Dge,t)?.taxAdjustment||[];return d.jsx(sS,{value:"taxAdjustment",className:"border rounded-md p-4",children:d.jsxs("div",{className:"space-y-6",dir:"rtl",children:[d.jsx("h3",{className:"text-lg font-bold border-b pb-2",children:'נתוני דו"ח התאמה למס'}),d.jsx("div",{className:"bg-emerald-50 p-4 rounded-md border-2 border-emerald-200",children:d.jsx(Yo,{codes:r,referenceCodes:a,code:100,showEmptyFields:n})}),UGn.map(o=>{const{header:s,sum:l}=nIe[o.color]||nIe.red;return d.jsxs(d.Fragment,{children:[d.jsxs("div",{className:"bg-gray-50 p-4 rounded-md",children:[d.jsx("h4",{className:"font-bold mb-4 "+s,children:o.title}),d.jsx("div",{className:"space-y-2",children:o.codes.map(c=>d.jsx(Yo,{codes:r,referenceCodes:a,code:c,showEmptyFields:n},c))})]}),o.sumCode&&d.jsx("div",{className:"p-4 rounded-md border-2 "+l,children:d.jsx(Yo,{codes:r,referenceCodes:a,code:o.sumCode,showEmptyFields:n})})]},o.title)})]})})}function HGn({data:e,referenceData:t,businessInfo:n,selectedYear:r,referenceYear:i}){const a=$t(Oge,e),o=$t(Oge,t),[s,l]=w.useState("header"),[c,u]=w.useState(!0);return d.jsxs("div",{className:"p-4 border-gray-300",dir:"rtl",children:[d.jsxs("div",{className:"flex justify-between items-center mb-4",children:[d.jsx("div",{className:"flex items-center gap-4",children:d.jsxs("div",{className:"flex items-center gap-2",children:[d.jsxs(Ge,{variant:c?"outline":"default",size:"sm",onClick:()=>u(!c),className:"flex items-center gap-2",children:[c?d.jsx(Y5t,{className:"h-4 w-4"}):d.jsx(Ene,{className:"h-4 w-4"}),c?"הסתר שדות ריקים":"הצג שדות ריקים"]}),d.jsx("span",{className:"text-sm text-gray-500",children:c?"מציג את כל השדות":"מציג רק שדות עם נתונים"})]})}),d.jsxs("div",{className:"flex gap-2",children:[d.jsxs(Ge,{variant:"outline",className:"flex items-center gap-2",children:[d.jsx(Nne,{className:"h-4 w-4"}),"הורד"]}),d.jsxs(Ge,{variant:"outline",className:"flex items-center gap-2",children:[d.jsx(lIt,{className:"h-4 w-4"}),"שמור"]})]})]}),d.jsxs(xYe,{value:s,onValueChange:l,className:"w-full",children:[d.jsxs(wYe,{className:"grid grid-cols-4 w-full",dir:"rtl",children:[d.jsx(Jw,{value:"header",children:"פרטים מזהים"}),d.jsx(Jw,{value:"profitLoss",children:"רווח והפסד"}),d.jsx(Jw,{value:"taxAdjustment",children:"התאמה למס"}),d.jsx(Jw,{value:"balanceSheet",children:"מאזן"})]}),d.jsx(MGn,{data:a,businessInfo:n}),d.jsx(LGn,{selectedYear:r,referenceYear:i,data:a,referenceData:o,showEmptyFields:c}),d.jsx(zGn,{data:a,referenceData:o,showEmptyFields:c}),d.jsx(FGn,{data:a,referenceData:o,showEmptyFields:c})]})]})}function VGn(){const{setFiltersContext:e}=w.useContext(ta),[t,n]=w.useState(void 0),[r,i]=w.useState(void 0),[a,o]=w.useState(void 0),[{data:s,fetching:l}]=rn({query:xFt,variables:{year:r?Number.parseInt(r,10):0,businessId:t},pause:!r||!t});return w.useEffect(()=>{e(d.jsx("div",{className:"flex flex-row gap-x-5",dir:"rtl",children:d.jsx(kGn,{selectedBusiness:t,setSelectedBusiness:n,selectedYear:r,setSelectedYear:i,referenceYear:a,setReferenceYear:o})}))},[e,t,r,a]),d.jsx("div",{className:"container mx-auto",dir:"rtl",children:d.jsxs(os,{className:"border-2 border-gray-300",children:[d.jsx(Lc,{className:"bg-gray-100 border-b-2 border-gray-300 flex flex-row justify-between items-center",children:d.jsxs("div",{className:"text-center w-full",children:[d.jsx("h1",{className:"text-2xl font-bold",children:'נספח לטופס הדו"ח השנתי ליחיד ולחבר בני אדם'}),d.jsxs("h2",{className:"text-xl",children:["לשנת המס ",r]}),d.jsx("p",{className:"text-sm",children:'נתוני הדוחות הכספיים, מאזן, רווח והפסד ודו"ח ההתאמה למס'})]})}),d.jsx(Gs,{className:"p-0",children:d.jsx(QGn,{fetching:l,data:s,selectedBusiness:t,selectedYear:r,referenceYear:a})})]})})}function QGn({fetching:e,data:t,selectedBusiness:n,selectedYear:r,referenceYear:i}){if(e)return d.jsx("div",{className:"container mx-auto p-8 text-center",dir:"rtl",children:d.jsx("p",{className:"text-lg text-gray-600",children:"טוען נתונים..."})});if(!r||!n)return d.jsx("div",{className:"container mx-auto p-8 text-center",dir:"rtl",children:d.jsx("p",{className:"text-lg text-gray-600",children:"יש לבחור עסק ושנת דיווח"})});const a=t?.shaam6111.data;return a?d.jsx(HGn,{data:a,businessInfo:t.shaam6111.business,selectedBusiness:n,selectedYear:r,referenceYear:i}):d.jsx("div",{className:"container mx-auto p-8 text-center",dir:"rtl",children:d.jsx("p",{className:"text-lg text-gray-600",children:"אין נתונים זמינים עבור העסק והשנה שנבחרו"})})}const rIe=[{id:"key",accessorKey:"key",cell:({row:e})=>d.jsx(Mt,{children:e.original.key}),header:({column:e})=>d.jsxs(Ge,{variant:"ghost",onClick:()=>e.toggleSorting(e.getIsSorted()==="asc"),children:["Key",d.jsx(cd,{})]})},{id:"name",accessorKey:"name",cell:({row:e})=>d.jsx(Mt,{children:e.original.name}),header:({column:e})=>d.jsxs(Ge,{variant:"ghost",onClick:()=>e.toggleSorting(e.getIsSorted()==="asc"),children:["Name",d.jsx(cd,{})]})},{id:"defaultIrsCode",accessorKey:"defaultIrsCode",cell:({row:e})=>d.jsx(Mt,{className:"flex flex-wrap gap-1 p-1",children:e.original.defaultIrsCode&&d.jsx(Ge,{variant:"outline",disabled:!0,className:"p-1 w-15",children:e.original.defaultIrsCode})}),header:"Default IRS Code"},{id:"edit",cell:({row:e})=>d.jsx(Oon,{sortCodeKey:e.original.key,onAdd:e.original.refetchSortCodes})}],qGn=()=>{const[{data:e,fetching:t,error:n},r]=rn({query:wFt}),{setFiltersContext:i}=w.useContext(ta),a=w.useMemo(()=>e?.allSortCodes?.map(l=>({...l,refetchSortCodes:r}))??[],[e?.allSortCodes,r]),o=om({data:a,columns:rIe,getCoreRowModel:am(),getPaginationRowModel:TD(),getSortedRowModel:Cg(),initialState:{pagination:{pageSize:100}}}),s=o.getPageOptions();return w.useEffect(()=>{i(d.jsx("div",{className:"flex items-center justify-end gap-10 space-x-2 py-4",children:d.jsx(QL,{table:o})}))},[i,o,s]),w.useEffect(()=>{n&&(console.error("Error fetching sort codes",n),qe.error("Error",{description:"Error fetching sort codes"}))},[n]),d.jsx(Pa,{title:`Sort Codes (${a.length})`,description:"All sort codes",headerActions:d.jsx(Hon,{onAdd:()=>r()}),children:t?d.jsx("div",{className:"flex flex-row justify-center",children:d.jsx(ai,{className:"h-10 w-10 animate-spin mr-2"})}):d.jsx("div",{className:"flex flex-col gap-4 rounded-md border",children:d.jsxs(Bu,{children:[d.jsx(Iu,{children:o.getHeaderGroups().map(l=>d.jsx(Dr,{children:l.headers.map(c=>d.jsx(Gr,{children:c.isPlaceholder?null:jo(c.column.columnDef.header,c.getContext())},c.id))},l.id))}),d.jsx(ju,{children:o.getRowModel().rows.length===0?d.jsx(Dr,{children:d.jsx(Mt,{colSpan:rIe.length,className:"text-center py-8",children:"No sort codes found"})}):o.getRowModel().rows.map(l=>d.jsx(Dr,{children:l.getVisibleCells().map(c=>d.jsx(Mt,{children:jo(c.column.columnDef.cell,c.getContext())},c.id))},l.id))})]})})})},GGn="addTag",WGn=()=>{const[{fetching:e},t]=qn(OFt),n=w.useCallback(async r=>{const i=`Error adding new tag [${r.tagName}]`,a=`${GGn}-${r.tagName}`;qe.loading("Adding tag",{id:a});try{const o=await t(r);Gn(o,i,a)&&qe.success("Success",{id:a,description:`"${r.tagName}" tag was successfully added`})}catch(o){console.error(`${i}: ${o}`),qe.error("Error",{id:a,description:i,duration:1e5,closeButton:!0})}},[t]);return{fetching:e,addTag:n}},KGn="deleteTag",YGn=()=>{const[{fetching:e},t]=qn(KFt),n=w.useCallback(async r=>{const i=`Error deleting new tag [${r.name}]`,a=`${KGn}-${r.tagId}`;qe.loading(`Deleting tag [${r.name}]`,{id:a});try{const o=await t(r);Gn(o,i,a)&&qe.success("Tag Deleted",{id:a,description:`[${r.name}] tag was successfully removed`})}catch(o){console.error(`${i}: ${o}`),qe.error("Error",{id:a,description:i,duration:1e5,closeButton:!0})}},[t]);return{fetching:e,deleteTag:n}},XGn=()=>{const{setFiltersContext:e}=w.useContext(ta),[t,n]=w.useState(""),[{data:r,fetching:i},a]=rn({query:kFt}),{addTag:o}=WGn(),{deleteTag:s}=YGn();e(null);const l=_Le(r?.allTags??[]),c=w.useCallback(f=>{f.length>2&&o({tagName:f}).then(()=>{a()})},[o,a]),u=w.useCallback((f,h)=>{s({tagId:f,name:h}).then(()=>{a()})},[s,a]);return d.jsx(Pa,{title:"Tags",description:"Manage tags for your bookmarks.",children:i?d.jsx(ai,{className:"h-10 w-10 animate-spin mr-2 self-center"}):d.jsxs("div",{className:"h-full flex flex-col overflow-hidden",children:[l?.map(f=>d.jsxs("div",{className:"flex items-center gap-2 text-gray-600 mb-2",children:[d.jsxs("div",{className:"w-full mt-1 relative rounded-md shadow-xs",children:[f.namePath?.map((h,m)=>d.jsx("span",{className:"ms-2"},m)),f.name]}),d.jsx(jon,{data:f}),d.jsx(Ge,{variant:"ghost",size:"icon",className:"size-7.5",onClick:()=>u(f.id,f.name),children:d.jsx(Ry,{className:"size-5"})})]},f.id)),d.jsxs("div",{className:"flex justify-start items-center gap-2 text-gray-600 mb-2",children:[d.jsx(kn,{className:"w-80",value:t,onChange:f=>n(f.currentTarget.value),placeholder:"Add new tag",required:!0}),d.jsx(Ge,{variant:"ghost",size:"icon",className:"size-7.5",disabled:t.length<2,onClick:()=>c(t),children:d.jsx(lg,{className:"size-5"})})]})]})})},ZGn="updateTaxCategory",JGn=()=>{const[{fetching:e},t]=qn(jDt),n=w.useCallback(async r=>{const i="Error updating tax category",a=`${ZGn}-${r.taxCategoryId}`;qe.loading("Uploading Tax Category",{id:a});try{const o=await t(r),s=Gn(o,i,a,"updateTaxCategory");if(s)return qe.success("Success",{id:a,description:`${s.updateTaxCategory.name} was updated`}),s.updateTaxCategory}catch(o){console.error(`${i}: ${o}`),qe.error("Error",{id:a,description:i,duration:1e5,closeButton:!0})}},[t]);return{fetching:e,updateTaxCategory:n}};function eWn({taxCategoryId:e,onAdd:t}){const[n,r]=w.useState(!1);return d.jsxs(Ra,{open:n,onOpenChange:r,children:[d.jsx(Ac,{asChild:!0,children:d.jsx(Ge,{variant:"outline",size:"icon",children:d.jsx(Tu,{})})}),d.jsxs($a,{className:"w-[400px] max-w-screen-md",children:[d.jsx(us,{children:d.jsx(ds,{children:"Edit Tax Category"})}),d.jsx(tWn,{taxCategoryId:e,close:()=>r(!1),onAdd:t})]})]})}function tWn({taxCategoryId:e,close:t,onAdd:n}){const[{data:r,fetching:i}]=rn({query:qEt,variables:{id:e}}),a=r?.taxCategory;return!a&&!i&&qe.error("Error",{description:"Couldn'nt find tax category"}),i?d.jsx(ai,{className:"h-10 w-10 animate-spin"}):d.jsx(nWn,{taxCategory:a,close:t,onAdd:n})}function nWn({taxCategory:e,close:t,onAdd:n}){const r=Ar({defaultValues:{sortCode:e.sortCode?.key,name:e.name,irsCode:e.irsCode}}),{handleSubmit:i}=r,[a,o]=w.useState(!1),{updateTaxCategory:s,fetching:l}=JGn(),c=u=>{u.sortCode&&=parseInt(u.sortCode.toString()),s({fields:u,taxCategoryId:e.id}).then(f=>{f?.id&&(n?.(f.id),t())})};return d.jsx(ii,{...r,children:d.jsxs("form",{onSubmit:i(c),children:[d.jsx("div",{className:"flex flex-col gap-4 my-4",children:d.jsx(eKe,{isInsert:!1,formManager:r,setFetching:o})}),d.jsx("div",{className:"flex justify-end mt-4",children:d.jsx(Ge,{type:"submit",disabled:l||a,children:"Update"})})]})})}const rWn=({data:e})=>d.jsx("td",{children:e.name}),iWn=({data:e})=>d.jsx("td",{children:e.sortCode?d.jsxs("span",{children:[e.sortCode?.name," (",e.sortCode?.id,")"]}):"N/A"}),iIe=[{id:"name",accessorKey:"name",cell:({row:e})=>d.jsx(rWn,{data:e.original}),header:({column:e})=>d.jsxs(Ge,{variant:"ghost",onClick:()=>e.toggleSorting(e.getIsSorted()==="asc"),children:["Name",d.jsx(cd,{})]})},{id:"sortCode",accessorKey:"sortCode.key",cell:({row:e})=>d.jsx(iWn,{data:e.original}),header:({column:e})=>d.jsxs(Ge,{variant:"ghost",onClick:()=>e.toggleSorting(e.getIsSorted()==="asc"),children:["Sort Code",d.jsx(cd,{})]})},{id:"edit",cell:({row:e})=>d.jsx(eWn,{taxCategoryId:e.original.id})}],aWn=()=>{const[{data:e,fetching:t,error:n},r]=rn({query:SFt}),{setFiltersContext:i}=w.useContext(ta),a=e?.taxCategories??[],o=om({data:a,columns:iIe,getCoreRowModel:am(),getPaginationRowModel:TD(),getSortedRowModel:Cg(),initialState:{pagination:{pageSize:30}}}),s=o.getPageOptions();return w.useEffect(()=>{i(d.jsx("div",{className:"flex items-center justify-end gap-10 space-x-2 py-4",children:d.jsx("div",{className:"flex items-center justify-between px-2",children:d.jsx(QL,{table:o})})}))},[i,o,s]),w.useEffect(()=>{n&&qe.error("Error",{description:"Error fetching tax categories"})},[n]),d.jsx(Pa,{title:`Tax Categories (${a.length})`,description:"All tax categories",headerActions:d.jsx(Gon,{onAdd:()=>r()}),children:t?d.jsx("div",{className:"flex flex-row justify-center",children:d.jsx(ai,{className:"h-10 w-10 animate-spin mr-2"})}):d.jsx("div",{className:"flex flex-col gap-4 rounded-md border",children:d.jsxs(Bu,{children:[d.jsx(Iu,{children:o.getHeaderGroups().map(l=>d.jsx(Dr,{children:l.headers.map(c=>d.jsx(Gr,{children:c.isPlaceholder?null:jo(c.column.columnDef.header,c.getContext())},c.id))},l.id))}),d.jsx(ju,{children:o.getRowModel().rows.length===0?d.jsx(Dr,{children:d.jsx(Mt,{colSpan:iIe.length,className:"text-center py-8",children:"No tax categories found"})}):o.getRowModel().rows.map(l=>d.jsx(Dr,{children:l.getVisibleCells().map(c=>d.jsx(Mt,{children:jo(c.column.columnDef.cell,c.getContext())},c.id))},l.id))})]})})})};function oWn(){const[e,t]=w.useState(null);return d.jsx(ta.Provider,{value:{filtersContext:e,setFiltersContext:t},children:d.jsx(GFn,{filtersContext:e,children:d.jsxs(RIe,{children:[d.jsx(Lr,{path:"/",element:d.jsx(aFe,{})}),d.jsx(Lr,{path:"charges",element:d.jsx(aFe,{})}),d.jsx(Lr,{path:"missing-info-charges",element:d.jsx(xRn,{})}),d.jsx(Lr,{path:"charges-ledger-validation",element:d.jsx(Adn,{})}),d.jsx(Lr,{path:"charges/:chargeId",element:d.jsx(G9t,{})}),d.jsx(Lr,{path:"businesses",element:d.jsx(fdn,{})}),d.jsx(Lr,{path:"business-trips",element:d.jsx(sdn,{})}),d.jsx(Lr,{path:"business-trips/:businessTripId",element:d.jsx(adn,{})}),d.jsx(Lr,{path:"business-transactions",element:d.jsx(oUt,{})}),d.jsx(Lr,{path:"business-transactions/:businessId",element:d.jsx(qcn,{})}),d.jsxs(Lr,{path:"charts",children:[d.jsx(Lr,{path:"",element:d.jsx(Rgn,{})}),d.jsx(Lr,{path:"monthly-income-expense",element:d.jsx(t2n,{})})]}),d.jsxs(Lr,{path:"documents",children:[d.jsx(Lr,{path:"",element:d.jsx(SRn,{})}),d.jsx(Lr,{path:"issue-documents",element:d.jsx(ORn,{})}),d.jsx(Lr,{path:"issue-document",element:d.jsx(CRn,{})})]}),d.jsx(Lr,{path:"accountant-approvals",element:d.jsx(WFn,{})}),d.jsxs(Lr,{path:"reports",children:[d.jsx(Lr,{path:"trial-balance",element:d.jsx(vMn,{})}),d.jsx(Lr,{path:"conto",element:d.jsx(tMn,{})}),d.jsx(Lr,{path:"vat-monthly",element:d.jsx(nRn,{})}),d.jsx(Lr,{path:"profit-and-loss",element:d.jsx(eFe,{})}),d.jsx(Lr,{path:"profit-and-loss/:year",element:d.jsx(eFe,{})}),d.jsx(Lr,{path:"tax",element:d.jsx(tFe,{})}),d.jsx(Lr,{path:"tax/:year",element:d.jsx(tFe,{})}),d.jsx(Lr,{path:"depreciation",element:d.jsx(wGn,{})}),d.jsx(Lr,{path:"shaam6111",element:d.jsx(VGn,{})}),d.jsx(Lr,{path:"yearly-ledger",element:d.jsx(oRn,{})}),d.jsx(Lr,{path:"corporate-tax-ruling-compliance",element:d.jsx(JEe,{})}),d.jsx(Lr,{path:"corporate-tax-ruling-compliance/:year",element:d.jsx(JEe,{})}),d.jsx(Lr,{path:"balance",element:d.jsx(gGn,{})}),d.jsx(Lr,{path:"validate-reports",element:d.jsx(QMn,{})})]}),d.jsx(Lr,{path:"salaries",element:d.jsx(bRn,{})}),d.jsx(Lr,{path:"tags",element:d.jsx(XGn,{})}),d.jsx(Lr,{path:"tax-categories",element:d.jsx(aWn,{})}),d.jsx(Lr,{path:"sort-codes",element:d.jsx(qGn,{})}),d.jsx(Lr,{path:"*",element:d.jsx(BRn,{})})]})})})}var K8=class{constructor(){this.listeners=new Set,this.subscribe=this.subscribe.bind(this)}subscribe(e){return this.listeners.add(e),this.onSubscribe(),()=>{this.listeners.delete(e),this.onUnsubscribe()}}hasListeners(){return this.listeners.size>0}onSubscribe(){}onUnsubscribe(){}},sWn={setTimeout:(e,t)=>setTimeout(e,t),clearTimeout:e=>clearTimeout(e),setInterval:(e,t)=>setInterval(e,t),clearInterval:e=>clearInterval(e)},lWn=class{#e=sWn;#t=!1;setTimeoutProvider(e){this.#e=e}setTimeout(e,t){return this.#e.setTimeout(e,t)}clearTimeout(e){this.#e.clearTimeout(e)}setInterval(e,t){return this.#e.setInterval(e,t)}clearInterval(e){this.#e.clearInterval(e)}},fte=new lWn;function cWn(e){setTimeout(e,0)}var Y8=typeof window>"u"||"Deno"in globalThis;function Nh(){}function uWn(e,t){return typeof e=="function"?e(t):e}function dWn(e){return typeof e=="number"&&e>=0&&e!==1/0}function fWn(e,t){return Math.max(e+(t||0)-Date.now(),0)}function hte(e,t){return typeof e=="function"?e(t):e}function hWn(e,t){return typeof e=="function"?e(t):e}function aIe(e,t){const{type:n="all",exact:r,fetchStatus:i,predicate:a,queryKey:o,stale:s}=e;if(o){if(r){if(t.queryHash!==Uce(o,t.options))return!1}else if(!qF(t.queryKey,o))return!1}if(n!=="all"){const l=t.isActive();if(n==="active"&&!l||n==="inactive"&&l)return!1}return!(typeof s=="boolean"&&t.isStale()!==s||i&&i!==t.state.fetchStatus||a&&!a(t))}function oIe(e,t){const{exact:n,status:r,predicate:i,mutationKey:a}=e;if(a){if(!t.options.mutationKey)return!1;if(n){if(QF(t.options.mutationKey)!==QF(a))return!1}else if(!qF(t.options.mutationKey,a))return!1}return!(r&&t.state.status!==r||i&&!i(t))}function Uce(e,t){return(t?.queryKeyHashFn||QF)(e)}function QF(e){return JSON.stringify(e,(t,n)=>mte(n)?Object.keys(n).sort().reduce((r,i)=>(r[i]=n[i],r),{}):n)}function qF(e,t){return e===t?!0:typeof e!=typeof t?!1:e&&t&&typeof e=="object"&&typeof t=="object"?Object.keys(t).every(n=>qF(e[n],t[n])):!1}var mWn=Object.prototype.hasOwnProperty;function dot(e,t){if(e===t)return e;const n=sIe(e)&&sIe(t);if(!n&&!(mte(e)&&mte(t)))return t;const i=(n?e:Object.keys(e)).length,a=n?t:Object.keys(t),o=a.length,s=n?new Array(o):{};let l=0;for(let c=0;c<o;c++){const u=n?c:a[c],f=e[u],h=t[u];if(f===h){s[u]=f,(n?c<i:mWn.call(e,u))&&l++;continue}if(f===null||h===null||typeof f!="object"||typeof h!="object"){s[u]=h;continue}const m=dot(f,h);s[u]=m,m===f&&l++}return i===o&&l===i?e:s}function sIe(e){return Array.isArray(e)&&e.length===Object.keys(e).length}function mte(e){if(!lIe(e))return!1;const t=e.constructor;if(t===void 0)return!0;const n=t.prototype;return!(!lIe(n)||!n.hasOwnProperty("isPrototypeOf")||Object.getPrototypeOf(e)!==Object.prototype)}function lIe(e){return Object.prototype.toString.call(e)==="[object Object]"}function pWn(e){return new Promise(t=>{fte.setTimeout(t,e)})}function AWn(e,t,n){return typeof n.structuralSharing=="function"?n.structuralSharing(e,t):n.structuralSharing!==!1?dot(e,t):t}function gWn(e,t,n=0){const r=[...e,t];return n&&r.length>n?r.slice(1):r}function vWn(e,t,n=0){const r=[t,...e];return n&&r.length>n?r.slice(0,-1):r}var zce=Symbol();function fot(e,t){return!e.queryFn&&t?.initialPromise?()=>t.initialPromise:!e.queryFn||e.queryFn===zce?()=>Promise.reject(new Error(`Missing queryFn: '${e.queryHash}'`)):e.queryFn}var yWn=class extends K8{#e;#t;#n;constructor(){super(),this.#n=e=>{if(!Y8&&window.addEventListener){const t=()=>e();return window.addEventListener("visibilitychange",t,!1),()=>{window.removeEventListener("visibilitychange",t)}}}}onSubscribe(){this.#t||this.setEventListener(this.#n)}onUnsubscribe(){this.hasListeners()||(this.#t?.(),this.#t=void 0)}setEventListener(e){this.#n=e,this.#t?.(),this.#t=e(t=>{typeof t=="boolean"?this.setFocused(t):this.onFocus()})}setFocused(e){this.#e!==e&&(this.#e=e,this.onFocus())}onFocus(){const e=this.isFocused();this.listeners.forEach(t=>{t(e)})}isFocused(){return typeof this.#e=="boolean"?this.#e:globalThis.document?.visibilityState!=="hidden"}},hot=new yWn;function bWn(){let e,t;const n=new Promise((i,a)=>{e=i,t=a});n.status="pending",n.catch(()=>{});function r(i){Object.assign(n,i),delete n.resolve,delete n.reject}return n.resolve=i=>{r({status:"fulfilled",value:i}),e(i)},n.reject=i=>{r({status:"rejected",reason:i}),t(i)},n}var xWn=cWn;function wWn(){let e=[],t=0,n=s=>{s()},r=s=>{s()},i=xWn;const a=s=>{t?e.push(s):i(()=>{n(s)})},o=()=>{const s=e;e=[],s.length&&i(()=>{r(()=>{s.forEach(l=>{n(l)})})})};return{batch:s=>{let l;t++;try{l=s()}finally{t--,t||o()}return l},batchCalls:s=>(...l)=>{a(()=>{s(...l)})},schedule:a,setNotifyFunction:s=>{n=s},setBatchNotifyFunction:s=>{r=s},setScheduler:s=>{i=s}}}var Oc=wWn(),kWn=class extends K8{#e=!0;#t;#n;constructor(){super(),this.#n=e=>{if(!Y8&&window.addEventListener){const t=()=>e(!0),n=()=>e(!1);return window.addEventListener("online",t,!1),window.addEventListener("offline",n,!1),()=>{window.removeEventListener("online",t),window.removeEventListener("offline",n)}}}}onSubscribe(){this.#t||this.setEventListener(this.#n)}onUnsubscribe(){this.hasListeners()||(this.#t?.(),this.#t=void 0)}setEventListener(e){this.#n=e,this.#t?.(),this.#t=e(this.setOnline.bind(this))}setOnline(e){this.#e!==e&&(this.#e=e,this.listeners.forEach(n=>{n(e)}))}isOnline(){return this.#e}},q$=new kWn;function SWn(e){return Math.min(1e3*2**e,3e4)}function mot(e){return(e??"online")==="online"?q$.isOnline():!0}var pte=class extends Error{constructor(e){super("CancelledError"),this.revert=e?.revert,this.silent=e?.silent}};function pot(e){let t=!1,n=0,r;const i=bWn(),a=()=>i.status!=="pending",o=A=>{if(!a()){const v=new pte(A);h(v),e.onCancel?.(v)}},s=()=>{t=!0},l=()=>{t=!1},c=()=>hot.isFocused()&&(e.networkMode==="always"||q$.isOnline())&&e.canRun(),u=()=>mot(e.networkMode)&&e.canRun(),f=A=>{a()||(r?.(),i.resolve(A))},h=A=>{a()||(r?.(),i.reject(A))},m=()=>new Promise(A=>{r=v=>{(a()||c())&&A(v)},e.onPause?.()}).then(()=>{r=void 0,a()||e.onContinue?.()}),p=()=>{if(a())return;let A;const v=n===0?e.initialPromise:void 0;try{A=v??e.fn()}catch(y){A=Promise.reject(y)}Promise.resolve(A).then(f).catch(y=>{if(a())return;const x=e.retry??(Y8?0:3),k=e.retryDelay??SWn,S=typeof k=="function"?k(n,y):k,C=x===!0||typeof x=="number"&&n<x||typeof x=="function"&&x(n,y);if(t||!C){h(y);return}n++,e.onFail?.(n,y),pWn(S).then(()=>c()?void 0:m()).then(()=>{t?h(y):p()})})};return{promise:i,status:()=>i.status,cancel:o,continue:()=>(r?.(),i),cancelRetry:s,continueRetry:l,canStart:u,start:()=>(u()?p():m().then(p),i)}}var Aot=class{#e;destroy(){this.clearGcTimeout()}scheduleGc(){this.clearGcTimeout(),dWn(this.gcTime)&&(this.#e=fte.setTimeout(()=>{this.optionalRemove()},this.gcTime))}updateGcTime(e){this.gcTime=Math.max(this.gcTime||0,e??(Y8?1/0:300*1e3))}clearGcTimeout(){this.#e&&(fte.clearTimeout(this.#e),this.#e=void 0)}},CWn=class extends Aot{#e;#t;#n;#r;#a;#i;#o;constructor(e){super(),this.#o=!1,this.#i=e.defaultOptions,this.setOptions(e.options),this.observers=[],this.#r=e.client,this.#n=this.#r.getQueryCache(),this.queryKey=e.queryKey,this.queryHash=e.queryHash,this.#e=cIe(this.options),this.state=e.state??this.#e,this.scheduleGc()}get meta(){return this.options.meta}get promise(){return this.#a?.promise}setOptions(e){if(this.options={...this.#i,...e},this.updateGcTime(this.options.gcTime),this.state&&this.state.data===void 0){const t=cIe(this.options);t.data!==void 0&&(this.setData(t.data,{updatedAt:t.dataUpdatedAt,manual:!0}),this.#e=t)}}optionalRemove(){!this.observers.length&&this.state.fetchStatus==="idle"&&this.#n.remove(this)}setData(e,t){const n=AWn(this.state.data,e,this.options);return this.#s({data:n,type:"success",dataUpdatedAt:t?.updatedAt,manual:t?.manual}),n}setState(e,t){this.#s({type:"setState",state:e,setStateOptions:t})}cancel(e){const t=this.#a?.promise;return this.#a?.cancel(e),t?t.then(Nh).catch(Nh):Promise.resolve()}destroy(){super.destroy(),this.cancel({silent:!0})}reset(){this.destroy(),this.setState(this.#e)}isActive(){return this.observers.some(e=>hWn(e.options.enabled,this)!==!1)}isDisabled(){return this.getObserversCount()>0?!this.isActive():this.options.queryFn===zce||this.state.dataUpdateCount+this.state.errorUpdateCount===0}isStatic(){return this.getObserversCount()>0?this.observers.some(e=>hte(e.options.staleTime,this)==="static"):!1}isStale(){return this.getObserversCount()>0?this.observers.some(e=>e.getCurrentResult().isStale):this.state.data===void 0||this.state.isInvalidated}isStaleByTime(e=0){return this.state.data===void 0?!0:e==="static"?!1:this.state.isInvalidated?!0:!fWn(this.state.dataUpdatedAt,e)}onFocus(){this.observers.find(t=>t.shouldFetchOnWindowFocus())?.refetch({cancelRefetch:!1}),this.#a?.continue()}onOnline(){this.observers.find(t=>t.shouldFetchOnReconnect())?.refetch({cancelRefetch:!1}),this.#a?.continue()}addObserver(e){this.observers.includes(e)||(this.observers.push(e),this.clearGcTimeout(),this.#n.notify({type:"observerAdded",query:this,observer:e}))}removeObserver(e){this.observers.includes(e)&&(this.observers=this.observers.filter(t=>t!==e),this.observers.length||(this.#a&&(this.#o?this.#a.cancel({revert:!0}):this.#a.cancelRetry()),this.scheduleGc()),this.#n.notify({type:"observerRemoved",query:this,observer:e}))}getObserversCount(){return this.observers.length}invalidate(){this.state.isInvalidated||this.#s({type:"invalidate"})}async fetch(e,t){if(this.state.fetchStatus!=="idle"&&this.#a?.status()!=="rejected"){if(this.state.data!==void 0&&t?.cancelRefetch)this.cancel({silent:!0});else if(this.#a)return this.#a.continueRetry(),this.#a.promise}if(e&&this.setOptions(e),!this.options.queryFn){const s=this.observers.find(l=>l.options.queryFn);s&&this.setOptions(s.options)}const n=new AbortController,r=s=>{Object.defineProperty(s,"signal",{enumerable:!0,get:()=>(this.#o=!0,n.signal)})},i=()=>{const s=fot(this.options,t),c=(()=>{const u={client:this.#r,queryKey:this.queryKey,meta:this.meta};return r(u),u})();return this.#o=!1,this.options.persister?this.options.persister(s,c,this):s(c)},o=(()=>{const s={fetchOptions:t,options:this.options,queryKey:this.queryKey,client:this.#r,state:this.state,fetchFn:i};return r(s),s})();this.options.behavior?.onFetch(o,this),this.#t=this.state,(this.state.fetchStatus==="idle"||this.state.fetchMeta!==o.fetchOptions?.meta)&&this.#s({type:"fetch",meta:o.fetchOptions?.meta}),this.#a=pot({initialPromise:t?.initialPromise,fn:o.fetchFn,onCancel:s=>{s instanceof pte&&s.revert&&this.setState({...this.#t,fetchStatus:"idle"}),n.abort()},onFail:(s,l)=>{this.#s({type:"failed",failureCount:s,error:l})},onPause:()=>{this.#s({type:"pause"})},onContinue:()=>{this.#s({type:"continue"})},retry:o.options.retry,retryDelay:o.options.retryDelay,networkMode:o.options.networkMode,canRun:()=>!0});try{const s=await this.#a.start();if(s===void 0)throw new Error(`${this.queryHash} data is undefined`);return this.setData(s),this.#n.config.onSuccess?.(s,this),this.#n.config.onSettled?.(s,this.state.error,this),s}catch(s){if(s instanceof pte){if(s.silent)return this.#a.promise;if(s.revert){if(this.state.data===void 0)throw s;return this.state.data}}throw this.#s({type:"error",error:s}),this.#n.config.onError?.(s,this),this.#n.config.onSettled?.(this.state.data,s,this),s}finally{this.scheduleGc()}}#s(e){const t=n=>{switch(e.type){case"failed":return{...n,fetchFailureCount:e.failureCount,fetchFailureReason:e.error};case"pause":return{...n,fetchStatus:"paused"};case"continue":return{...n,fetchStatus:"fetching"};case"fetch":return{...n,..._Wn(n.data,this.options),fetchMeta:e.meta??null};case"success":const r={...n,data:e.data,dataUpdateCount:n.dataUpdateCount+1,dataUpdatedAt:e.dataUpdatedAt??Date.now(),error:null,isInvalidated:!1,status:"success",...!e.manual&&{fetchStatus:"idle",fetchFailureCount:0,fetchFailureReason:null}};return this.#t=e.manual?r:void 0,r;case"error":const i=e.error;return{...n,error:i,errorUpdateCount:n.errorUpdateCount+1,errorUpdatedAt:Date.now(),fetchFailureCount:n.fetchFailureCount+1,fetchFailureReason:i,fetchStatus:"idle",status:"error"};case"invalidate":return{...n,isInvalidated:!0};case"setState":return{...n,...e.state}}};this.state=t(this.state),Oc.batch(()=>{this.observers.forEach(n=>{n.onQueryUpdate()}),this.#n.notify({query:this,type:"updated",action:e})})}};function _Wn(e,t){return{fetchFailureCount:0,fetchFailureReason:null,fetchStatus:mot(t.networkMode)?"fetching":"paused",...e===void 0&&{error:null,status:"pending"}}}function cIe(e){const t=typeof e.initialData=="function"?e.initialData():e.initialData,n=t!==void 0,r=n?typeof e.initialDataUpdatedAt=="function"?e.initialDataUpdatedAt():e.initialDataUpdatedAt:0;return{data:t,dataUpdateCount:0,dataUpdatedAt:n?r??Date.now():0,error:null,errorUpdateCount:0,errorUpdatedAt:0,fetchFailureCount:0,fetchFailureReason:null,fetchMeta:null,isInvalidated:!1,status:n?"success":"pending",fetchStatus:"idle"}}function uIe(e){return{onFetch:(t,n)=>{const r=t.options,i=t.fetchOptions?.meta?.fetchMore?.direction,a=t.state.data?.pages||[],o=t.state.data?.pageParams||[];let s={pages:[],pageParams:[]},l=0;const c=async()=>{let u=!1;const f=p=>{Object.defineProperty(p,"signal",{enumerable:!0,get:()=>(t.signal.aborted?u=!0:t.signal.addEventListener("abort",()=>{u=!0}),t.signal)})},h=fot(t.options,t.fetchOptions),m=async(p,A,v)=>{if(u)return Promise.reject();if(A==null&&p.pages.length)return Promise.resolve(p);const x=(()=>{const N={client:t.client,queryKey:t.queryKey,pageParam:A,direction:v?"backward":"forward",meta:t.options.meta};return f(N),N})(),k=await h(x),{maxPages:S}=t.options,C=v?vWn:gWn;return{pages:C(p.pages,k,S),pageParams:C(p.pageParams,A,S)}};if(i&&a.length){const p=i==="backward",A=p?NWn:dIe,v={pages:a,pageParams:o},y=A(r,v);s=await m(v,y,p)}else{const p=e??a.length;do{const A=l===0?o[0]??r.initialPageParam:dIe(r,s);if(l>0&&A==null)break;s=await m(s,A),l++}while(l<p)}return s};t.options.persister?t.fetchFn=()=>t.options.persister?.(c,{client:t.client,queryKey:t.queryKey,meta:t.options.meta,signal:t.signal},n):t.fetchFn=c}}}function dIe(e,{pages:t,pageParams:n}){const r=t.length-1;return t.length>0?e.getNextPageParam(t[r],t,n[r],n):void 0}function NWn(e,{pages:t,pageParams:n}){return t.length>0?e.getPreviousPageParam?.(t[0],t,n[0],n):void 0}var EWn=class extends Aot{#e;#t;#n;constructor(e){super(),this.mutationId=e.mutationId,this.#t=e.mutationCache,this.#e=[],this.state=e.state||FWn(),this.setOptions(e.options),this.scheduleGc()}setOptions(e){this.options=e,this.updateGcTime(this.options.gcTime)}get meta(){return this.options.meta}addObserver(e){this.#e.includes(e)||(this.#e.push(e),this.clearGcTimeout(),this.#t.notify({type:"observerAdded",mutation:this,observer:e}))}removeObserver(e){this.#e=this.#e.filter(t=>t!==e),this.scheduleGc(),this.#t.notify({type:"observerRemoved",mutation:this,observer:e})}optionalRemove(){this.#e.length||(this.state.status==="pending"?this.scheduleGc():this.#t.remove(this))}continue(){return this.#n?.continue()??this.execute(this.state.variables)}async execute(e){const t=()=>{this.#r({type:"continue"})};this.#n=pot({fn:()=>this.options.mutationFn?this.options.mutationFn(e):Promise.reject(new Error("No mutationFn found")),onFail:(i,a)=>{this.#r({type:"failed",failureCount:i,error:a})},onPause:()=>{this.#r({type:"pause"})},onContinue:t,retry:this.options.retry??0,retryDelay:this.options.retryDelay,networkMode:this.options.networkMode,canRun:()=>this.#t.canRun(this)});const n=this.state.status==="pending",r=!this.#n.canStart();try{if(n)t();else{this.#r({type:"pending",variables:e,isPaused:r}),await this.#t.config.onMutate?.(e,this);const a=await this.options.onMutate?.(e);a!==this.state.context&&this.#r({type:"pending",context:a,variables:e,isPaused:r})}const i=await this.#n.start();return await this.#t.config.onSuccess?.(i,e,this.state.context,this),await this.options.onSuccess?.(i,e,this.state.context),await this.#t.config.onSettled?.(i,null,this.state.variables,this.state.context,this),await this.options.onSettled?.(i,null,e,this.state.context),this.#r({type:"success",data:i}),i}catch(i){try{throw await this.#t.config.onError?.(i,e,this.state.context,this),await this.options.onError?.(i,e,this.state.context),await this.#t.config.onSettled?.(void 0,i,this.state.variables,this.state.context,this),await this.options.onSettled?.(void 0,i,e,this.state.context),i}finally{this.#r({type:"error",error:i})}}finally{this.#t.runNext(this)}}#r(e){const t=n=>{switch(e.type){case"failed":return{...n,failureCount:e.failureCount,failureReason:e.error};case"pause":return{...n,isPaused:!0};case"continue":return{...n,isPaused:!1};case"pending":return{...n,context:e.context,data:void 0,failureCount:0,failureReason:null,error:null,isPaused:e.isPaused,status:"pending",variables:e.variables,submittedAt:Date.now()};case"success":return{...n,data:e.data,failureCount:0,failureReason:null,error:null,status:"success",isPaused:!1};case"error":return{...n,data:void 0,error:e.error,failureCount:n.failureCount+1,failureReason:e.error,isPaused:!1,status:"error"}}};this.state=t(this.state),Oc.batch(()=>{this.#e.forEach(n=>{n.onMutationUpdate(e)}),this.#t.notify({mutation:this,type:"updated",action:e})})}};function FWn(){return{context:void 0,data:void 0,error:null,failureCount:0,failureReason:null,isPaused:!1,status:"idle",variables:void 0,submittedAt:0}}var DWn=class extends K8{constructor(e={}){super(),this.config=e,this.#e=new Set,this.#t=new Map,this.#n=0}#e;#t;#n;build(e,t,n){const r=new EWn({mutationCache:this,mutationId:++this.#n,options:e.defaultMutationOptions(t),state:n});return this.add(r),r}add(e){this.#e.add(e);const t=jI(e);if(typeof t=="string"){const n=this.#t.get(t);n?n.push(e):this.#t.set(t,[e])}this.notify({type:"added",mutation:e})}remove(e){if(this.#e.delete(e)){const t=jI(e);if(typeof t=="string"){const n=this.#t.get(t);if(n)if(n.length>1){const r=n.indexOf(e);r!==-1&&n.splice(r,1)}else n[0]===e&&this.#t.delete(t)}}this.notify({type:"removed",mutation:e})}canRun(e){const t=jI(e);if(typeof t=="string"){const r=this.#t.get(t)?.find(i=>i.state.status==="pending");return!r||r===e}else return!0}runNext(e){const t=jI(e);return typeof t=="string"?this.#t.get(t)?.find(r=>r!==e&&r.state.isPaused)?.continue()??Promise.resolve():Promise.resolve()}clear(){Oc.batch(()=>{this.#e.forEach(e=>{this.notify({type:"removed",mutation:e})}),this.#e.clear(),this.#t.clear()})}getAll(){return Array.from(this.#e)}find(e){const t={exact:!0,...e};return this.getAll().find(n=>oIe(t,n))}findAll(e={}){return this.getAll().filter(t=>oIe(e,t))}notify(e){Oc.batch(()=>{this.listeners.forEach(t=>{t(e)})})}resumePausedMutations(){const e=this.getAll().filter(t=>t.state.isPaused);return Oc.batch(()=>Promise.all(e.map(t=>t.continue().catch(Nh))))}};function jI(e){return e.options.scope?.id}var TWn=class extends K8{constructor(e={}){super(),this.config=e,this.#e=new Map}#e;build(e,t,n){const r=t.queryKey,i=t.queryHash??Uce(r,t);let a=this.get(i);return a||(a=new CWn({client:e,queryKey:r,queryHash:i,options:e.defaultQueryOptions(t),state:n,defaultOptions:e.getQueryDefaults(r)}),this.add(a)),a}add(e){this.#e.has(e.queryHash)||(this.#e.set(e.queryHash,e),this.notify({type:"added",query:e}))}remove(e){const t=this.#e.get(e.queryHash);t&&(e.destroy(),t===e&&this.#e.delete(e.queryHash),this.notify({type:"removed",query:e}))}clear(){Oc.batch(()=>{this.getAll().forEach(e=>{this.remove(e)})})}get(e){return this.#e.get(e)}getAll(){return[...this.#e.values()]}find(e){const t={exact:!0,...e};return this.getAll().find(n=>aIe(t,n))}findAll(e={}){const t=this.getAll();return Object.keys(e).length>0?t.filter(n=>aIe(e,n)):t}notify(e){Oc.batch(()=>{this.listeners.forEach(t=>{t(e)})})}onFocus(){Oc.batch(()=>{this.getAll().forEach(e=>{e.onFocus()})})}onOnline(){Oc.batch(()=>{this.getAll().forEach(e=>{e.onOnline()})})}},OWn=class{#e;#t;#n;#r;#a;#i;#o;#s;constructor(e={}){this.#e=e.queryCache||new TWn,this.#t=e.mutationCache||new DWn,this.#n=e.defaultOptions||{},this.#r=new Map,this.#a=new Map,this.#i=0}mount(){this.#i++,this.#i===1&&(this.#o=hot.subscribe(async e=>{e&&(await this.resumePausedMutations(),this.#e.onFocus())}),this.#s=q$.subscribe(async e=>{e&&(await this.resumePausedMutations(),this.#e.onOnline())}))}unmount(){this.#i--,this.#i===0&&(this.#o?.(),this.#o=void 0,this.#s?.(),this.#s=void 0)}isFetching(e){return this.#e.findAll({...e,fetchStatus:"fetching"}).length}isMutating(e){return this.#t.findAll({...e,status:"pending"}).length}getQueryData(e){const t=this.defaultQueryOptions({queryKey:e});return this.#e.get(t.queryHash)?.state.data}ensureQueryData(e){const t=this.defaultQueryOptions(e),n=this.#e.build(this,t),r=n.state.data;return r===void 0?this.fetchQuery(e):(e.revalidateIfStale&&n.isStaleByTime(hte(t.staleTime,n))&&this.prefetchQuery(t),Promise.resolve(r))}getQueriesData(e){return this.#e.findAll(e).map(({queryKey:t,state:n})=>{const r=n.data;return[t,r]})}setQueryData(e,t,n){const r=this.defaultQueryOptions({queryKey:e}),a=this.#e.get(r.queryHash)?.state.data,o=uWn(t,a);if(o!==void 0)return this.#e.build(this,r).setData(o,{...n,manual:!0})}setQueriesData(e,t,n){return Oc.batch(()=>this.#e.findAll(e).map(({queryKey:r})=>[r,this.setQueryData(r,t,n)]))}getQueryState(e){const t=this.defaultQueryOptions({queryKey:e});return this.#e.get(t.queryHash)?.state}removeQueries(e){const t=this.#e;Oc.batch(()=>{t.findAll(e).forEach(n=>{t.remove(n)})})}resetQueries(e,t){const n=this.#e;return Oc.batch(()=>(n.findAll(e).forEach(r=>{r.reset()}),this.refetchQueries({type:"active",...e},t)))}cancelQueries(e,t={}){const n={revert:!0,...t},r=Oc.batch(()=>this.#e.findAll(e).map(i=>i.cancel(n)));return Promise.all(r).then(Nh).catch(Nh)}invalidateQueries(e,t={}){return Oc.batch(()=>(this.#e.findAll(e).forEach(n=>{n.invalidate()}),e?.refetchType==="none"?Promise.resolve():this.refetchQueries({...e,type:e?.refetchType??e?.type??"active"},t)))}refetchQueries(e,t={}){const n={...t,cancelRefetch:t.cancelRefetch??!0},r=Oc.batch(()=>this.#e.findAll(e).filter(i=>!i.isDisabled()&&!i.isStatic()).map(i=>{let a=i.fetch(void 0,n);return n.throwOnError||(a=a.catch(Nh)),i.state.fetchStatus==="paused"?Promise.resolve():a}));return Promise.all(r).then(Nh)}fetchQuery(e){const t=this.defaultQueryOptions(e);t.retry===void 0&&(t.retry=!1);const n=this.#e.build(this,t);return n.isStaleByTime(hte(t.staleTime,n))?n.fetch(t):Promise.resolve(n.state.data)}prefetchQuery(e){return this.fetchQuery(e).then(Nh).catch(Nh)}fetchInfiniteQuery(e){return e.behavior=uIe(e.pages),this.fetchQuery(e)}prefetchInfiniteQuery(e){return this.fetchInfiniteQuery(e).then(Nh).catch(Nh)}ensureInfiniteQueryData(e){return e.behavior=uIe(e.pages),this.ensureQueryData(e)}resumePausedMutations(){return q$.isOnline()?this.#t.resumePausedMutations():Promise.resolve()}getQueryCache(){return this.#e}getMutationCache(){return this.#t}getDefaultOptions(){return this.#n}setDefaultOptions(e){this.#n=e}setQueryDefaults(e,t){this.#r.set(QF(e),{queryKey:e,defaultOptions:t})}getQueryDefaults(e){const t=[...this.#r.values()],n={};return t.forEach(r=>{qF(e,r.queryKey)&&Object.assign(n,r.defaultOptions)}),n}setMutationDefaults(e,t){this.#a.set(QF(e),{mutationKey:e,defaultOptions:t})}getMutationDefaults(e){const t=[...this.#a.values()],n={};return t.forEach(r=>{qF(e,r.mutationKey)&&Object.assign(n,r.defaultOptions)}),n}defaultQueryOptions(e){if(e._defaulted)return e;const t={...this.#n.queries,...this.getQueryDefaults(e.queryKey),...e,_defaulted:!0};return t.queryHash||(t.queryHash=Uce(t.queryKey,t)),t.refetchOnReconnect===void 0&&(t.refetchOnReconnect=t.networkMode!=="always"),t.throwOnError===void 0&&(t.throwOnError=!!t.suspense),!t.networkMode&&t.persister&&(t.networkMode="offlineFirst"),t.queryFn===zce&&(t.enabled=!1),t}defaultMutationOptions(e){return e?._defaulted?e:{...this.#n.mutations,...e?.mutationKey&&this.getMutationDefaults(e.mutationKey),...e,_defaulted:!0}}clear(){this.#e.clear(),this.#t.clear()}},BWn=w.createContext(void 0),IWn=({client:e,children:t})=>(w.useEffect(()=>(e.mount(),()=>{e.unmount()}),[e]),d.jsx(BWn.Provider,{value:e,children:t})),jWn=(e,t,n,r,i,a,o,s)=>{let l=document.documentElement,c=["light","dark"];function u(m){(Array.isArray(e)?e:[e]).forEach(p=>{let A=p==="class",v=A&&a?i.map(y=>a[y]||y):i;A?(l.classList.remove(...v),l.classList.add(a&&a[m]?a[m]:m)):l.setAttribute(p,m)}),f(m)}function f(m){s&&c.includes(m)&&(l.style.colorScheme=m)}function h(){return window.matchMedia("(prefers-color-scheme: dark)").matches?"dark":"light"}if(r)u(r);else try{let m=localStorage.getItem(t)||n,p=o&&m==="system"?h():m;u(p)}catch{}},PWn=w.createContext(void 0),MWn={setTheme:e=>{},themes:[]},RWn=()=>{var e;return(e=w.useContext(PWn))!=null?e:MWn};w.memo(({forcedTheme:e,storageKey:t,attribute:n,enableSystem:r,enableColorScheme:i,defaultTheme:a,value:o,themes:s,nonce:l,scriptProps:c})=>{let u=JSON.stringify([n,t,a,e,s,o,r,i]).slice(1,-1);return w.createElement("script",{...c,suppressHydrationWarning:!0,nonce:typeof window>"u"?l:"",dangerouslySetInnerHTML:{__html:`(${jWn.toString()})(${u})`}})});const $Wn=({...e})=>{const{theme:t="system"}=RWn();return d.jsx(BOt,{theme:t,className:"toaster group",toastOptions:{classNames:{toast:"group toast group-[.toaster]:bg-white group-[.toaster]:text-gray-950 group-[.toaster]:border-gray-200 group-[.toaster]:shadow-lg dark:group-[.toaster]:bg-gray-950 dark:group-[.toaster]:text-gray-50 dark:group-[.toaster]:border-gray-800",description:"group-[.toast]:text-gray-500 dark:group-[.toast]:text-gray-400",actionButton:"group-[.toast]:bg-gray-900 group-[.toast]:text-gray-50 font-medium dark:group-[.toast]:bg-gray-50 dark:group-[.toast]:text-gray-900",cancelButton:"group-[.toast]:bg-gray-100 group-[.toast]:text-gray-500 font-medium dark:group-[.toast]:bg-gray-800 dark:group-[.toast]:text-gray-400"}},...e})};var lY=(e,t)=>Xj(e.kind,e,{...e.context,authAttempt:t});function LWn(e){return({client:t,forward:n})=>{var r=new Set,i=gY(),a=gY(),o=new Map;function s(){c=void 0;var f=o;o=new Map,f.forEach(i.next)}function l(f){c=void 0;var h=o;o=new Map,h.forEach((m=>{a.next(ZIe(m,f))}))}var c,u=null;return f=>{function h(){c=Promise.resolve().then((()=>e({mutate(y,x,k){var S=t.createRequestOperation("mutation",fk(y,x),k);return Nte(Z$(1)(bu((C=>C.operation.key===S.key&&S.context._instance===C.operation.context._instance))(AY((()=>{var C=p(S);r.add(C.context._instance),i.next(C)}))(v))))},appendHeaders(y,x){var k=typeof y.context.fetchOptions=="function"?y.context.fetchOptions():y.context.fetchOptions||{};return Xj(y.kind,y,{...y.context,fetchOptions:{...k,headers:{...k.headers,...x}}})}}))).then((y=>{y&&(u=y),s()})).catch((y=>{l(y)}))}h();function m(y){o.set(y.key,lY(y,!0)),u&&!c&&(c=u.refreshAuth().then(s).catch(l))}function p(y){return u?u.addAuthToOperation(y):y}var A=bu(Boolean)(qIe((y=>y.kind==="teardown"?(o.delete(y.key),y):y.context._instance&&r.has(y.context._instance)?y:y.context.authAttempt?p(y):c||!u?(c||h(),o.has(y.key)||o.set(y.key,lY(y,!1)),null):(function(k){return!k.context.authAttempt&&u&&u.willAuthError&&u.willAuthError(k)})(y)?(m(y),null):p(lY(y,!1))))(nE([i.source,f]))),v=n(A);return nE([a.source,bu((y=>!r.has(y.operation.context._instance)&&y.error&&(function(k){return u&&u.didAuthError&&u.didAuthError(k.error,k.operation)})(y)&&!y.operation.context.authAttempt?(m(y.operation),!1):(r.has(y.operation.context._instance)&&r.delete(y.operation.context._instance),!0)))(v)])}}}function UWn({children:e}){const{authService:t}=w.useContext(ND),n=VS(),r=t.isLoggedIn(),i=w.useMemo(()=>t.authToken(),[t]),a=w.useMemo(()=>{if(!r)return null;let o;return o="https://accounter.onrender.com/graphql",Eut({url:o,exchanges:[Cut({onResult(s){if(s.error?.networkError){console.error("Network Error:",s.error.networkError),n("/network-error");return}(s?.error?.graphQLErrors.some(c=>c.extensions?.code==="FORBIDDEN")||s?.error?.response?.status===401)&&n("/login",{state:{message:"You are not authorized to access this page"}})}}),LWn(async s=>({addAuthToOperation(l){return i?s.appendHeaders(l,{Authorization:i}):l},didAuthError(l,c){return l?.response?.status===401||l?.graphQLErrors?.some(u=>u.extensions?.code==="FORBIDDEN")},async refreshAuth(){t.logout()}})),kut]})},[r,n,i,t]);return w.useEffect(()=>{a||n("/login")},[a,n]),a?d.jsx(Dut,{value:a,children:e}):d.jsx(oct,{to:"/login",state:{prevPath:window.location.pathname}})}const zWn=new OWn;function HWn({children:e}){const t=Zoe({palette:{primary:{main:"#556cd6"},secondary:{main:"#19857b"},error:{main:ob.A400}}});return d.jsx(Oje,{withGlobalStyles:!0,theme:{fontFamily:"Roboto, sans-serif",fontSizes:{md:"14"}},children:d.jsxs(T0n,{theme:t,children:[d.jsx(O4n,{}),d.jsx($Wn,{}),d.jsx(nUt,{children:d.jsx(UWn,{children:d.jsx(IWn,{client:zWn,children:d.jsx(rUt,{children:e})})})})]})})}const VWn=document.getElementById("root"),QWn=Bst.createRoot(VWn),qWn=Tct(lct(d.jsx(Lr,{path:"*",element:d.jsx(HWn,{children:d.jsx(oWn,{})}),errorElement:d.jsx("p",{children:"error"})})));QWn.render(d.jsx(w.StrictMode,{children:d.jsx(Hct,{router:qWn})}));export{Zi as _,yu as c,Ni as g,Xn as p};
|
|
1188
|
+
`)}}):null},sGn=np;function lGn({active:e,payload:t,className:n,indicator:r="dot",hideLabel:i=!1,hideIndicator:a=!1,label:o,labelFormatter:s,labelClassName:l,formatter:c,color:u,nameKey:f,labelKey:h}){const{config:m}=uot(),p=L.useMemo(()=>{if(i||!t?.length)return null;const[v]=t,y=String(h||v?.dataKey||v?.name||"value"),x=cte(m,v,y),k=!h&&typeof o=="string"?m[o]?.label||o:x?.label;return s?d.jsx("div",{className:_t("font-medium",l),children:s(k,t)}):k?d.jsx("div",{className:_t("font-medium",l),children:k}):null},[o,s,t,i,l,m,h]);if(!e||!t?.length)return null;const A=t.length===1&&r!=="dot";return d.jsxs("div",{className:_t("border-gray-200/50 bg-white grid min-w-[8rem] items-start gap-1.5 rounded-lg border border-gray-200 px-2.5 py-1.5 text-xs shadow-xl dark:border-gray-800/50 dark:bg-gray-950 dark:border-gray-800",n),children:[A?null:p,d.jsx("div",{className:"grid gap-1.5",children:t.map((v,y)=>{const x=String(f||v.name||v.dataKey||"value"),k=cte(m,v,x),S=u||v.payload.fill||v.color;return d.jsx("div",{className:_t("[&>svg]:text-gray-500 flex w-full flex-wrap items-stretch gap-2 [&>svg]:h-2.5 [&>svg]:w-2.5 dark:[&>svg]:text-gray-400",r==="dot"&&"items-center"),children:c&&v?.value!==void 0&&v.name?c(v.value,v.name,v,y,v.payload):d.jsxs(d.Fragment,{children:[k?.icon?d.jsx(k.icon,{}):!a&&d.jsx("div",{className:_t("shrink-0 rounded-[2px] border-(--color-border) bg-(--color-bg)",{"h-2.5 w-2.5":r==="dot","w-1":r==="line","w-0 border-[1.5px] border-dashed bg-transparent":r==="dashed","my-0.5":A&&r==="dashed"}),style:{"--color-bg":S,"--color-border":S}}),d.jsxs("div",{className:_t("flex flex-1 justify-between leading-none",A?"items-end":"items-center"),children:[d.jsxs("div",{className:"grid gap-1.5",children:[A?p:null,d.jsx("span",{className:"text-gray-500 dark:text-gray-400",children:k?.label||v.name})]}),v.value&&d.jsx("span",{className:"text-gray-950 font-mono font-medium tabular-nums dark:text-gray-50",children:v.value.toLocaleString()})]})]})},v.dataKey)})})]})}const cGn=ex;function uGn({className:e,hideIcon:t=!1,payload:n,verticalAlign:r="bottom",nameKey:i}){const{config:a}=uot();return n?.length?d.jsx("div",{className:_t("flex items-center justify-center gap-4",r==="top"?"pb-3":"pt-3",e),children:n.map(o=>{const s=String(i||o.dataKey||"value"),l=cte(a,o,s);return d.jsxs("div",{className:_t("[&>svg]:text-gray-500 flex items-center gap-1.5 [&>svg]:h-3 [&>svg]:w-3 dark:[&>svg]:text-gray-400"),children:[l?.icon&&!t?d.jsx(l.icon,{}):d.jsx("div",{className:"h-2 w-2 shrink-0 rounded-[2px]",style:{backgroundColor:o.color}}),l?.label]},o.value)})}):null}function cte(e,t,n){if(typeof t!="object"||t===null)return;const r="payload"in t&&typeof t.payload=="object"&&t.payload!==null?t.payload:void 0;let i=n;return n in t&&typeof t[n]=="string"?i=t[n]:r&&n in r&&typeof r[n]=="string"&&(i=r[n]),i in e?e[i]:e[n]}function dGn(e){return!e||rs(e)?null:encodeURIComponent(JSON.stringify(e))}const ute="balanceReportFilters",pd={MONTHLY:"Monthly",BI_MONTHLY:"Bi-monthly",QUARTERLY:"Quarterly",SEMI_ANNUALLY:"Semi-Annually",ANNUALLY:"Annually"};function fGn({filter:e,setFilter:t,closeModal:n}){const{control:r,handleSubmit:i,watch:a}=Ar({defaultValues:{...e}}),{selectableBusinesses:o,fetching:s}=Ou(),{selectableFinancialEntities:l,fetching:c}=Fg(),{selectableTags:u,fetching:f}=t6(),h=y=>{t(y),n()},m=a("excludedTags"),p=w.useMemo(()=>u.filter(y=>!m.includes(y.value)),[m,u]),A=a("includedTags"),v=w.useMemo(()=>u.filter(y=>!A.includes(y.value)),[A,u]);return d.jsxs("form",{onSubmit:i(h),children:[d.jsxs(sC,{cols:2,children:[d.jsx(wt,{name:"ownerId",control:r,defaultValue:e?.ownerId,render:({field:y,fieldState:x})=>d.jsx(ri,{...y,data:o,value:y.value,disabled:s,label:"Owners",placeholder:"Scroll to see all options",maxDropdownHeight:160,searchable:!0,error:x.error?.message,withinPortal:!0})}),d.jsx(wt,{name:"fromDate",control:r,defaultValue:e?.fromDate,rules:{pattern:{value:ki,message:"Date must be im format yyyy-mm-dd"}},render:({field:y,fieldState:x})=>d.jsx(Vi,{...y,onChange:k=>{const S=k?typeof k=="string"?k:Rt(k,"yyyy-MM-dd"):void 0;S!==y.value&&y.onChange(S)},value:y.value?new Date(y.value):void 0,error:x.error?.message,label:"From Date",popoverProps:{withinPortal:!0}})}),d.jsx(wt,{name:"toDate",control:r,defaultValue:e?.toDate,rules:{pattern:{value:ki,message:"Date must be im format yyyy-mm-dd"}},render:({field:y,fieldState:x})=>d.jsx(Vi,{...y,onChange:k=>{const S=k?typeof k=="string"?k:Rt(k,"yyyy-MM-dd"):void 0;S!==y.value&&y.onChange(S)},value:y.value?new Date(y.value):void 0,error:x.error?.message,label:"To Date",popoverProps:{withinPortal:!0}})}),d.jsx(wt,{name:"period",control:r,defaultValue:pd.MONTHLY,render:({field:y,fieldState:x})=>d.jsx(ri,{...y,data:Object.values(pd).map(k=>({value:k,label:k})),value:y.value,label:"Period",maxDropdownHeight:160,error:x.error?.message,withinPortal:!0})}),d.jsx(wt,{name:"excludedCounterparties",control:r,defaultValue:e.excludedCounterparties,render:({field:y,fieldState:x})=>d.jsx(ul,{...y,data:l,value:y.value??[],disabled:c,label:"Excluded Counterparties",placeholder:"Scroll to see all options",maxDropdownHeight:160,searchable:!0,error:x.error?.message,withinPortal:!0})}),d.jsx(wt,{name:"includedTags",control:r,defaultValue:e.includedTags,render:({field:y,fieldState:x})=>d.jsx(ul,{...y,data:p,value:y.value??[],disabled:f,label:"Included Tags",placeholder:"Scroll to see all options",maxDropdownHeight:160,searchable:!0,error:x.error?.message,withinPortal:!0})}),d.jsx(wt,{name:"excludedTags",control:r,defaultValue:e.excludedTags,render:({field:y,fieldState:x})=>d.jsx(ul,{...y,data:v,value:y.value??[],disabled:f,label:"Excluded Tags",placeholder:"Scroll to see all options",maxDropdownHeight:160,searchable:!0,error:x.error?.message,withinPortal:!0})})]}),d.jsxs("div",{className:"flex justify-center mt-5 gap-3",children:[d.jsx("button",{type:"submit",disabled:s,className:"text-white bg-indigo-500 border-0 py-2 px-8 focus:outline-hidden hover:bg-indigo-600 rounded-sm text-lg",children:"Filter"}),d.jsx("button",{type:"button",className:"text-white bg-rose-500 border-0 py-2 px-8 focus:outline-hidden hover:bg-rose-600 rounded-sm text-lg",onClick:n,children:"Cancel"})]})]})}function hGn({filter:e,setFilter:t,initiallyOpened:n=!1}){const[r,i]=w.useState(n),[a,o]=w.useState(!!e),{get:s,set:l}=mi();w.useEffect(()=>{const u=dGn(e),f=s(ute);u!==f&&l(ute,u)},[e,s,l]);const c=w.useCallback(u=>{Ed(u,e)||(t(u),o(!!u))},[e,t]);return d.jsxs("div",{className:"flex flex-row gap-5 items-center",children:[d.jsx(Vc,{opened:r,onClose:()=>i(!1),content:d.jsx(fGn,{filter:e,setFilter:c,closeModal:()=>i(!1)}),modalSize:"xl"}),d.jsx(ya,{inline:!0,size:16,disabled:!a,children:d.jsx(Ge,{variant:"outline",size:"icon",className:"size-7.5",onClick:()=>i(!0),children:d.jsx(Ll,{className:"size-5"})})})]})}const mGn=({period:e,transactionIDs:t,onCloseExtendedTransactions:n})=>{const[{data:r,fetching:i}]=rn({query:vFt,variables:{transactionIDs:t}}),a=w.useMemo(()=>r?.transactionsByIDs?t.map(o=>r?.transactionsByIDs.find(s=>s.id===o)).filter(Boolean):[],[r,t]);return d.jsx(os,{className:"mt-5 w-full",children:i?d.jsx(Hc,{}):d.jsxs(d.Fragment,{children:[d.jsx(Lc,{children:d.jsxs(Uc,{className:"flex justify-between",children:[d.jsxs("span",{children:[e," Transactions"]}),d.jsx(Ge,{variant:"link",onClick:n,children:d.jsx(Vx,{className:"h-4 w-4"})})]})}),d.jsx(Gs,{children:d.jsx(oae,{transactionsProps:a})})]})})},RN={income:{label:"Income",color:"rgba(0, 255, 50, 0.5)"},expense:{label:"Expense",color:"rgba(255, 0, 0, 0.5)"},delta:{label:"Delta",color:"rgba(0, 30, 255, 0.5)"},cumulative:{label:"Cumulative Balance",color:"rgba(100, 0, 255, 0.5)"}};function pGn(e,t,n){switch(n){case pd.MONTHLY:{const r=String(t).padStart(2,"0");return`${e}-${r}`}case pd.BI_MONTHLY:{const r=t%2===0?t-1:t,i=String(r).padStart(2,"0");return`${e}-${i}`}case pd.QUARTERLY:{const r=Math.ceil(t/3);return`${e}-Q${r}`}case pd.SEMI_ANNUALLY:{const r=t>6?2:1;return`${e}-H${r}`}case pd.ANNUALLY:return String(e)}}function AGn(e,t){switch(t){case pd.MONTHLY:{const[n,r]=e.split("-");return`${r}/${n}`}case pd.BI_MONTHLY:{const[n,r]=e.split("-"),i=Number(r)+1,a=String(i).padStart(2,"0");return`${r}-${a}/${n}`}case pd.QUARTERLY:{const[n,r]=e.split("-");return`${r}, ${n}`}case pd.SEMI_ANNUALLY:{const[n,r]=e.split("-");return`${r}, ${n}`}case pd.ANNUALLY:return e}}const eIe=_3(Vt.Usd),gGn=()=>{const{setFiltersContext:e}=w.useContext(ta),{userContext:t}=w.useContext(mc),{get:n}=mi(),r=w.useMemo(()=>{const p={ownerId:t?.context.adminBusinessId,toDate:Rt(new Date,"yyyy-MM-dd"),period:pd.MONTHLY,fromDate:Rt(lD(new Date,{years:1}),"yyyy-MM-dd"),excludedCounterparties:[],includedTags:[],excludedTags:[]},A=n(ute);if(A)try{return JSON.parse(decodeURIComponent(A))}catch(v){console.log("Error parsing balance report filters from URL:",v)}return p},[t?.context.adminBusinessId]),[i,a]=w.useState(r),[o,s]=w.useState(void 0),[l,c]=w.useState(Object.keys(RN)),u=w.useMemo(()=>{const{ownerId:p,fromDate:A,toDate:v}=i;return{ownerId:p,fromDate:A,toDate:v}},[i]),[{data:f,fetching:h}]=rn({query:yFt,variables:u,pause:!i});w.useEffect(()=>{e(d.jsxs("div",{className:"flex flex-row gap-x-5",children:[d.jsx(hGn,{filter:i,setFilter:a,initiallyOpened:!i}),d.jsx(UWe,{options:Object.entries(RN).map(([p,A])=>({label:A.label,value:p})),onValueChange:c,defaultValue:l,placeholder:"Select Data Sets",variant:"default",maxCount:1})]})),s(void 0)},[f,h,i,e,a,l]),w.useEffect(()=>{a(p=>({...p,ownerId:t?.context.adminBusinessId}))},[t]);const m=w.useMemo(()=>{if(!f?.transactionsForBalanceReport)return[];const p=new Map;f.transactionsForBalanceReport.map(v=>{if(v.counterparty?.id&&(!v.isFee&&t?.context.financialAccountsBusinessesIds?.includes(v.counterparty.id)||i.excludedCounterparties?.includes(v.counterparty.id))||i.includedTags.length>0&&(!v.charge?.tags||v.charge.tags.length===0||!v.charge.tags.some(k=>i.includedTags.includes(k.id)))||i.excludedTags.length>0&&v.charge?.tags.length&&v.charge.tags.some(k=>i.excludedTags.includes(k.id)))return;const y=pGn(v.year,v.month,i.period);p.has(y)||p.set(y,{income:0,expense:0,delta:0,transactions:[]});const x=p.get(y);v.amountUsd.raw>0?x.income+=v.amountUsd.raw:x.expense+=v.amountUsd.raw,x.delta+=v.amountUsd.raw,x.transactions.push(v)});let A=0;return Array.from(p.entries()).sort((v,y)=>v[0].localeCompare(y[0])).map(([v,y])=>(A+=y.delta,{period:v,income:y.income,expense:y.expense,delta:y.delta,cumulative:A,transactions:y.transactions.sort((x,k)=>Math.abs(k.amountUsd.raw)-Math.abs(x.amountUsd.raw))}))},[f,i.period,i.excludedCounterparties,t?.context.financialAccountsBusinessesIds,i.includedTags,i.excludedTags]);return d.jsx(Pa,{title:"Balance Report",description:"Accounts periodical balance",children:h?d.jsx(Hc,{}):d.jsxs(d.Fragment,{children:[d.jsxs(os,{className:"w-full",children:[d.jsx(Lc,{children:d.jsx(JY,{children:"Click specific period to expand it's transactions data"})}),d.jsx(Gs,{children:d.jsx(aGn,{config:RN,className:"h-150 w-full",children:d.jsxs(rGn,{accessibilityLayer:!0,data:m,onClick:p=>s(p.activeLabel),children:[d.jsx(Kat,{vertical:!1}),d.jsx(G8,{dataKey:"period",tickLine:!1,tickMargin:10,axisLine:!1,tickFormatter:p=>AGn(p,i.period)}),d.jsx(sGn,{content:d.jsx(lGn,{formatter:(p,A,v,y)=>{const x=`bg-[var(--color-${A})]`;return y<2?d.jsxs(d.Fragment,{children:[d.jsx("div",{className:`${x} h-2.5 w-2.5 shrink-0 rounded-[2px]`}),RN[A]?.label||A,d.jsx("div",{className:"ml-auto flex items-baseline gap-0.5 font-mono font-medium tabular-nums text-foreground",children:eIe.format(Number(p))})]}):d.jsxs("div",{className:"mt-1.5 flex basis-full items-center border-t pt-1.5 text-xs font-medium text-foreground",children:[d.jsx("div",{className:`h-2.5 w-2.5 shrink-0 rounded-[2px] mr-2 ${x}`}),RN[A]?.label||A,d.jsx("div",{className:"ml-auto flex items-baseline gap-0.5 font-mono font-medium tabular-nums text-foreground",children:eIe.format(Number(p))})]})}})}),d.jsx(cGn,{content:d.jsx(uGn,{})}),l.includes("income")&&d.jsx(mp,{dataKey:"income",fill:"var(--color-income)",radius:4}),l.includes("expense")&&d.jsx(mp,{dataKey:"expense",fill:"var(--color-expense)",radius:4}),l.includes("delta")&&d.jsx(mp,{dataKey:"delta",fill:"var(--color-delta)",radius:4}),l.includes("cumulative")&&d.jsx(mp,{dataKey:"cumulative",fill:"var(--color-cumulative)",radius:4})]})})})]}),o&&d.jsx(mGn,{period:o,onCloseExtendedTransactions:()=>s(void 0),transactionIDs:m.find(p=>p.period===o)?.transactions.map(p=>p.id)??[]})]})})},vGn=({record:e})=>{const t=$t(O3e,e);return d.jsxs(Dr,{children:[d.jsx(Mt,{children:e.description}),d.jsx(Mt,{children:Rt(new Date(e.purchaseDate),"dd/MM/yyyy")}),d.jsx(Mt,{children:e.activationDate?Rt(new Date(e.activationDate),"dd/MM/yyyy"):void 0}),d.jsx(Mt,{children:t.originalCost?ti(t.originalCost,0):void 0}),d.jsx(Mt,{children:t.reportYearDelta?ti(t.reportYearDelta,0):void 0}),d.jsx(Mt,{children:ti(t.totalDepreciableCosts,0)}),d.jsxs(Mt,{children:[ti(e.statutoryDepreciationRate,0),"%"]}),d.jsx(Mt,{children:e.claimedDepreciationRate?`${ti(e.claimedDepreciationRate,1)}%`:"-"}),d.jsx(Mt,{children:t.reportYearClaimedDepreciation?ti(t.reportYearClaimedDepreciation,0):"-"}),d.jsx(Mt,{children:t.pastYearsAccumulatedDepreciation?ti(t.pastYearsAccumulatedDepreciation,0):"-"}),d.jsx(Mt,{children:t.totalDepreciation?ti(t.totalDepreciation,0):"-"}),d.jsx(Mt,{children:t.netValue?ti(t.netValue,0):"-"})]})};function yGn(e){return!e||rs(e)?null:encodeURIComponent(JSON.stringify(e))}const dte="depreciationReportFilters";function bGn({filter:e,setFilter:t,close:n}){const r=Ar({defaultValues:{...e}}),{control:i,handleSubmit:a}=r,{selectableFinancialEntities:o,fetching:s}=Fg(),l=c=>{t({...c,year:Number(c.year)}),n()};return d.jsx(ii,{...r,children:d.jsxs("form",{onSubmit:a(l),className:"space-y-4",children:[d.jsx(Jt,{name:"year",control:i,rules:{required:"Year is required",validate:c=>{const u=Number(c);return Number.isNaN(u)||u<2e3||u>2100?"Invalid year":!0}},render:({field:c})=>d.jsxs(en,{children:[d.jsx(gn,{children:"Year"}),d.jsx(dn,{children:d.jsx(Ny,{...c,hideControls:!0,decimalScale:0})}),d.jsx(Bn,{})]})}),d.jsx(Jt,{name:"financialEntityId",defaultValue:e?.financialEntityId,control:i,render:({field:c})=>d.jsxs(en,{children:[d.jsx(gn,{children:"Owner"}),d.jsx(_y,{...c,data:o,value:c.value??void 0,disabled:s,placeholder:"Select a financial entity",formPart:!0}),d.jsx(Bn,{})]})}),d.jsx(Uy,{children:d.jsx(Ge,{type:"submit",disabled:s,children:"Filter"})})]})})}function xGn({filter:e,setFilter:t}){const[n,r]=w.useState(!1),{get:i,set:a}=mi();w.useEffect(()=>{const s=yGn(e),l=i(dte);s!==l&&a(dte,s)},[e,i,a]);const o=w.useCallback(s=>{Ed(s,e)||t(s)},[e,t]);return d.jsxs(Ra,{open:n,onOpenChange:r,children:[d.jsx(Ac,{asChild:!0,children:d.jsx(Ge,{variant:"outline",size:"icon",children:d.jsx(Ll,{size:20})})}),d.jsx($a,{className:"sm:max-w-[425px]",children:d.jsx(bGn,{filter:e,setFilter:o,close:()=>r(!1)})})]})}const tIe=({data:e,groupName:t})=>{const n=$t(O3e,e);return d.jsxs(Dr,{className:"font-bold border-b border-black",children:[d.jsx(Mt,{children:t?"Group Total":"Overall Total"}),d.jsx(Mt,{colSpan:2,children:t}),d.jsx(Mt,{children:n.originalCost?ti(n.originalCost,0):void 0}),d.jsx(Mt,{children:n.reportYearDelta?ti(n.reportYearDelta,0):void 0}),d.jsx(Mt,{children:n.totalDepreciableCosts?ti(n.totalDepreciableCosts,0):void 0}),d.jsx(Mt,{}),d.jsx(Mt,{}),d.jsx(Mt,{children:n.reportYearClaimedDepreciation?ti(n.reportYearClaimedDepreciation,0):void 0}),d.jsx(Mt,{children:n.pastYearsAccumulatedDepreciation?ti(n.pastYearsAccumulatedDepreciation,0):void 0}),d.jsx(Mt,{children:n.totalDepreciation?ti(n.totalDepreciation,0):void 0}),d.jsx(Mt,{children:n.netValue?ti(n.netValue,0):void 0})]})},wGn=()=>{const{setFiltersContext:e}=w.useContext(ta),{userContext:t}=w.useContext(mc),{get:n}=mi(),r=w.useMemo(()=>{const c={financialEntityId:t?.context.adminBusinessId,year:new Date().getFullYear()},u=n(dte);if(u)try{return JSON.parse(decodeURIComponent(u))}catch(f){console.error("Failed to parse depreciation report filters from URL",f)}return c},[t?.context.adminBusinessId]),[i,a]=w.useState(r),[{data:o,fetching:s}]=rn({query:bFt,variables:{filters:i}});w.useEffect(()=>{e(d.jsx("div",{className:"flex flex-row gap-x-5",children:d.jsx(xGn,{filter:i,setFilter:a})}))},[i,e,a]);const l=w.useMemo(()=>`Depreciation Report for ${i.year}`,[i.year]);return d.jsx(Pa,{title:"Depreciation Report",description:l,children:s?d.jsx(Hc,{}):d.jsxs(Bu,{children:[d.jsxs(Iu,{children:[d.jsxs(Dr,{className:"font-bold text-xl",children:[d.jsx(Gr,{colSpan:6,className:"text-center border-x",children:"List of Assets and Costs"}),d.jsx(Gr,{colSpan:5,className:"text-center border-x",children:"Depreciation"}),d.jsx(Gr,{className:"text-center border-x",children:"Remaining"})]}),d.jsxs(Dr,{className:"border-b border-black",children:[d.jsx(Gr,{className:"whitespace-normal",children:"Assets List and Descriptions"}),d.jsx(Gr,{className:"whitespace-normal",children:"Date of Purchase"}),d.jsx(Gr,{className:"whitespace-normal",children:"Activation Date"}),d.jsx(Gr,{className:"whitespace-normal",children:"Original Cost"}),d.jsx(Gr,{className:"whitespace-normal",children:"Changes During the Year"}),d.jsx(Gr,{className:"whitespace-normal",children:"Total Depreciable Assets"}),d.jsx(Gr,{className:"whitespace-normal",children:"Statutory Depreciation Rate"}),d.jsx(Gr,{className:"whitespace-normal",children:"Claimed Depreciation Rate"}),d.jsx(Gr,{className:"whitespace-normal",children:"Depreciation Claimed This Year"}),d.jsx(Gr,{className:"whitespace-normal",children:"Previous Tax Years Accumulated Depreciation"}),d.jsx(Gr,{className:"whitespace-normal",children:"Total Depreciation"}),d.jsx(Gr,{className:"whitespace-normal",children:"Net Book Value"})]})]}),d.jsx(ju,{children:o?.depreciationReport&&d.jsxs(d.Fragment,{children:[o.depreciationReport.categories.map((c,u)=>d.jsxs(w.Fragment,{children:[d.jsxs(Dr,{className:"font-bold",children:[d.jsx(Mt,{children:`Category ${u+1}`}),d.jsx(Mt,{colSpan:2,children:c.category.name}),d.jsx(Mt,{colSpan:3}),d.jsxs(Mt,{children:[ti(c.category.percentage,0),"%"]}),d.jsx(Mt,{colSpan:5})]}),c.records.sort((f,h)=>f.purchaseDate.localeCompare(h.purchaseDate)).map(f=>d.jsx(vGn,{record:f},f.id)),d.jsx(tIe,{data:c.summary,groupName:c.category.name})]},c.id)),d.jsx(tIe,{data:o.depreciationReport.summary})]})})]})})},BI=["2020","2021","2022","2023"];function kGn({selectedBusiness:e,setSelectedBusiness:t,selectedYear:n,setSelectedYear:r,referenceYear:i,setReferenceYear:a}){const[o,s]=w.useState(!n||!e),{selectableBusinesses:l,fetching:c}=Ou(),u=w.useMemo(()=>e?l.find(h=>h.value===e)?.label??"":"",[l,e]);return d.jsxs(Ra,{open:o,onOpenChange:s,children:[d.jsx(Ac,{asChild:!0,children:d.jsxs(Ge,{variant:"outline",className:"flex items-center gap-2",children:[d.jsx(Ll,{className:"h-4 w-4"}),"מסננים",d.jsxs("span",{className:"text-xs bg-blue-100 text-blue-800 px-2 py-0.5 rounded-full",children:[u," • ",n]})]})}),d.jsxs($a,{className:"sm:max-w-md",dir:"rtl",children:[d.jsx(us,{children:d.jsxs(ds,{className:"flex items-center gap-2",children:[d.jsx(Ll,{className:"h-5 w-5"}),"מסנני דוח"]})}),d.jsxs("div",{className:"space-y-6 py-4",children:[d.jsxs("div",{className:"space-y-2",children:[d.jsxs($n,{htmlFor:"business-select",className:"flex items-center gap-2",children:[d.jsx(o5t,{className:"h-4 w-4"}),"בחירת עסק"]}),d.jsx(_y,{onChange:f=>t(f??void 0),data:l,value:e,disabled:c,placeholder:"Scroll to see all options",triggerProps:{className:"w-full"}})]}),d.jsxs("div",{className:"space-y-2",children:[d.jsxs($n,{htmlFor:"year-select",className:"flex items-center gap-2",children:[d.jsx(Yk,{className:"h-4 w-4"}),"שנת דיווח"]}),d.jsxs(Fo,{value:n,onValueChange:r,children:[d.jsx(To,{id:"year-select",children:d.jsx(Do,{})}),d.jsx(Oo,{children:BI.map(f=>d.jsx(Ja,{value:f,children:f},f))})]}),d.jsxs("p",{className:"text-xs text-gray-500",children:["זמינות נתונים: ",BI.join(", ")]})]}),d.jsxs("div",{className:"space-y-2",children:[d.jsxs($n,{htmlFor:"reference-year-select",className:"flex items-center gap-2",children:[d.jsx(Yk,{className:"h-4 w-4"}),"שנת השוואה"]}),d.jsxs(Fo,{value:i,onValueChange:f=>a(f==="none"?void 0:f),children:[d.jsx(To,{id:"reference-year-select",children:d.jsx(Do,{})}),d.jsxs(Oo,{children:[d.jsx(Ja,{value:"none",children:"ללא"},"none"),BI.map(f=>d.jsx(Ja,{value:f,children:f},f))]})]}),d.jsxs("p",{className:"text-xs text-gray-500",children:["זמינות נתונים: ",BI.join(", ")]})]}),d.jsxs("div",{className:"flex justify-end gap-2 pt-4",children:[d.jsx(Ge,{variant:"outline",onClick:()=>s(!1),children:"ביטול"}),d.jsx(Ge,{onClick:()=>s(!1),children:"אישור"})]})]})]})]})}const co=({label:e,value:t,code:n,referenceValue:r,showEmptyFields:i,showChange:a=!1})=>{const o=u=>i?!0:!s(u),s=u=>!u||u.trim()===""||u==="0"||u==="0.00",l=(u,f)=>{if(!f)return null;const h=v=>Number.parseFloat(v.replace(/[,\s₪]/g,""))||0,m=h(u),p=h(f);return p===0?null:(m-p)/p*100};if(!o(t))return null;const c=a?l(t,r):null;return d.jsxs("div",{className:"flex justify-between items-center py-2 border-b border-gray-200",dir:"rtl",children:[d.jsxs("span",{className:"text-sm text-gray-600",children:[e," ",n&&`(${n})`]}),d.jsxs("div",{className:"flex items-center gap-2",children:[d.jsx("span",{className:`font-medium ${s(t)?"text-gray-400":""}`,children:s(t)?"0":t}),c!==null&&d.jsxs("span",{className:`text-xs px-1 py-0.5 rounded ${c>0?"text-green-700 bg-green-100":c<0?"text-red-700 bg-red-100":"text-gray-700 bg-gray-100"}`,children:[c>0?"+":"",c.toFixed(1),"%"]})]})]})},Yo=({codes:e,referenceCodes:t,code:n,showEmptyFields:r})=>{const{value:i,label:a}=w.useMemo(()=>{const s=e.find(l=>l.code===n);return{value:s?.amount||0,label:s?.label||"לא זוהה קוד"}},[e,n]),o=w.useMemo(()=>t?.find(s=>s.code===n)?.amount.toString()||"",[t,n]);return d.jsx(co,{label:a,value:ti(i,0),code:String(n),showChange:!0,showEmptyFields:r,referenceValue:o})},SGn=[{title:"מזומנים ושווי מזומנים",codes:[7110,7120,7150],sumCode:7100},{title:"ניירות ערך",codes:[7215,7225,7230,7290,7295],sumCode:7200},{title:"לקוחות",codes:[7310,7320,7330,7350,7360,7380,7390],sumCode:7300},{title:"חייבים ויתרות חובה",codes:[7410,7420,7430,7440,7450,7461,7462,7470,7490],sumCode:7400},{title:"מסים נדחים לזמן קצר",codes:[7610,7620,7690],sumCode:7600},{title:"הלוואות לזמן קצר",codes:[7711,7712,7720],sumCode:7700},{title:"מלאי",codes:[7805,7810,7815,7820,7825,7830,7840,7850,7860,7870,7890],sumCode:7800}],CGn=[{title:"רכוש קבוע",codes:[8010,8020,8025,8030,8040,8050,8060,8080,8090,8095,8100,8105,8110,8120,8130,8140,8150,8160,8170,8180,8190],sumCode:8e3},{title:"נכסים לא שוטפים מוחזקים למכירה",codes:[8710],sumCode:8700},{title:"הוצאות מראש לזמן ארוך",codes:[8210,8220,8290],sumCode:8200},{title:"השקעות בחברות מוחזקות כלולות ומאוחדות",codes:[8315,8325,8335,8340,8350],sumCode:8300},{title:'השקעות בחברות אחרות כולל ני"ע סחירים מוחזקים לזמן ארוך',codes:[8410,8420,8440,8450,8460,8490],sumCode:8400},{title:"מסים נדחים לזמן ארוך",codes:[8510,8520,8590],sumCode:8500},{title:"הוצאות נדחות ורכוש אחר",codes:[8610,8620,8630,8640,8690],sumCode:8600}],_Gn=[{title:"בנקים והלואות לזמן קצר",codes:[9110,9120,9130,9140,9151,9152,9190],sumCode:9100},{title:"ספקים ונותני שירותים",codes:[9210,9220,9230,9290],sumCode:9200},{title:"זכאים ויתרות זכות",codes:[9310,9320,9330,9340,9350,9360,9370,9410,9420,9431,9432,9435,9440,9450,9460,9470,9480,9490],sumCode:9400},{title:"עתודה למסים נדחים לזמן קצר",codes:[9510,9520,9530],sumCode:9500}],NGn=[{title:"התחייבויות לזמן ארוך",codes:[9605,9610,9620,9631,9632,9640,9650,9660,9670,9690],sumCode:9600},{title:"התחייבויות בשל סיום יחסי עובד-מעביד",codes:[9710,9720,9790],sumCode:9700},{title:"עתודה למסים נדחים לזמן ארוך",codes:[9810,9820,9890],sumCode:9800}],EGn=[{title:"הון עצמי",codes:[9910,9920,9930,9940,9950,9960,9980],sumCode:9900}];function FGn({data:e,referenceData:t,showEmptyFields:n=!1}){const i=$t(Tge,e).balanceSheet||[],o=$t(Tge,t)?.balanceSheet||[];return d.jsx(sS,{value:"balanceSheet",className:"border rounded-md p-4",children:d.jsxs("div",{className:"space-y-6",dir:"rtl",children:[d.jsx("h3",{className:"text-lg font-bold border-b pb-2",children:"נתוני המאזן"}),d.jsxs("div",{className:"grid grid-cols-1 lg:grid-cols-2 gap-6",children:[d.jsxs("div",{className:"space-y-4",children:[d.jsx("h4",{className:"text-lg font-bold text-blue-800 border-b pb-2",children:"נכסים"}),d.jsx("div",{className:"bg-blue-100 p-4 rounded-md border-2 border-blue-300",children:d.jsx("h5",{className:"font-bold",children:"רכוש שוטף"})}),SGn.map(s=>d.jsxs("div",{className:"bg-blue-50 p-4 rounded-md",children:[d.jsx("h6",{className:"font-bold mb-3",children:s.title}),d.jsxs("div",{className:"space-y-2",children:[s.codes.map(l=>d.jsx(Yo,{codes:i,referenceCodes:o,code:l,showEmptyFields:n},l)),d.jsx("div",{className:"border-2 rounded-md border-gray-300",children:d.jsx(Yo,{codes:i,referenceCodes:o,code:s.sumCode,showEmptyFields:n})})]})]},s.title)),d.jsx("div",{className:"bg-blue-100 p-4 rounded-md border-2 border-blue-300",children:d.jsx(Yo,{codes:i,code:7e3,showEmptyFields:n})}),CGn.map(s=>d.jsxs("div",{className:"bg-blue-50 p-4 rounded-md",children:[d.jsx("h6",{className:"font-bold mb-3",children:s.title}),d.jsxs("div",{className:"space-y-2",children:[s.codes.map(l=>d.jsx(Yo,{codes:i,referenceCodes:o,code:l,showEmptyFields:n},l)),d.jsx("div",{className:"border-2 rounded-md border-gray-300",children:d.jsx(Yo,{codes:i,referenceCodes:o,code:s.sumCode,showEmptyFields:n})})]})]},s.title)),d.jsx("div",{className:"bg-blue-100 p-4 rounded-md border-2 border-blue-300",children:d.jsx(Yo,{codes:i,code:8888,showEmptyFields:n})})]}),d.jsxs("div",{className:"space-y-4",children:[d.jsx("h4",{className:"text-lg font-bold text-red-800 border-b pb-2",children:"התחייבויות והון"}),d.jsx("div",{className:"bg-red-100 p-4 rounded-md border-2 border-red-300",children:d.jsx("h5",{className:"font-bold",children:"התחייבויות שוטפות"})}),_Gn.map(s=>d.jsxs("div",{className:"bg-red-50 p-4 rounded-md",children:[d.jsx("h6",{className:"font-bold mb-3",children:s.title}),d.jsxs("div",{className:"space-y-2",children:[s.codes.map(l=>d.jsx(Yo,{codes:i,referenceCodes:o,code:l,showEmptyFields:n},l)),d.jsx("div",{className:"border-2 rounded-md border-gray-300",children:d.jsx(Yo,{codes:i,referenceCodes:o,code:s.sumCode,showEmptyFields:n})})]})]},s.title)),d.jsx("div",{className:"bg-red-100 p-4 rounded-md border-2 border-red-300",children:d.jsx(Yo,{codes:i,code:9e3,showEmptyFields:n})}),NGn.map(s=>d.jsxs("div",{className:"bg-red-50 p-4 rounded-md",children:[d.jsx("h6",{className:"font-bold mb-3",children:s.title}),d.jsxs("div",{className:"space-y-2",children:[s.codes.map(l=>d.jsx(Yo,{codes:i,referenceCodes:o,code:l,showEmptyFields:n},l)),d.jsx("div",{className:"border-2 rounded-md border-gray-300",children:d.jsx(Yo,{codes:i,referenceCodes:o,code:s.sumCode,showEmptyFields:n})})]})]},s.title)),EGn.map(s=>d.jsxs("div",{className:"bg-green-50 p-4 rounded-md",children:[d.jsx("h5",{className:"font-bold mb-3",children:s.title}),d.jsx("div",{className:"space-y-2",children:s.codes.map(l=>d.jsx(Yo,{codes:i,referenceCodes:o,code:l,showEmptyFields:n},l))})]},s.title)),d.jsx("div",{className:"bg-red-100 p-4 rounded-md border-2 border-red-300",children:d.jsx(Yo,{codes:i,code:9999,showEmptyFields:n})})]})]})]})})}const DGn=e=>{switch(e){case"1":return"תעשייתי";case"2":return"מסחרי";case"3":return"נותני שירותים";case"99":return"הדיווח כולל יותר מעסק אחד";default:return""}},TGn=e=>{switch(e){case tj.Cash:return"מזומן";case tj.Accrual:return"מצטבר";case tj.DollarRegulations:return"לפי תקנות דולריות";default:return""}},OGn=e=>{switch(e){case _ge.Shekels:return"שקלים";case _ge.Dollars:return"דולרים";default:return""}},BGn=e=>{switch(e){case Sge.DoubleEntry:return"כפולה";case Sge.SingleEntry:return"חד-צידית";default:return""}},IGn=e=>{switch(e){case Cge.Computerized:return"ממוחשב";case Cge.Manual:return"ידני";default:return""}},jGn=e=>{switch(e){case A5.Option_1:return"חלופה 1";case A5.Option_2Adjustments:return"התאמות חשבונאיות למי שיישם את חלופה 2 בהוראת ביצוע 7/2010";case A5.Option_3Adjustments:return"התאמות חשבונאיות למי שיישם את חלופה 3 בהוראת ביצוע 7/2010";case A5.None:return"ללא חלופה";default:return""}},PGn=e=>{switch(e){case U0.Unqualified:return"נוסח אחיד (בלתי מסוייג)";case U0.UnqualifiedWithGoingConcern:return"בנוסח אחיד עם הפניית תשומת לב להערת עסק חי";case U0.UnqualifiedWithOtherEmphases:return"בנוסח אחיד עם הפניות תשומת לב אחרת";case U0.Qualified:return"הסתייגות";case U0.Adverse:return"שלילית";case U0.Disclaimer:return"המנעות";case U0.None:return"אין חוות דעת";default:return""}},II=e=>e==null?"":e?"כן":"לא";function MGn({data:e,businessInfo:t}){const{header:n}=$t(gEt,e),r=$t(AEt,t);return d.jsx(sS,{value:"header",className:"border rounded-md p-4",children:d.jsxs("div",{className:"grid grid-cols-1 md:grid-cols-2 gap-6",dir:"rtl",children:[d.jsxs("div",{className:"space-y-4",children:[d.jsx("h3",{className:"text-lg font-bold border-b pb-2",children:"פרטים מזהים"}),d.jsx(co,{label:"השם הרשום",value:r.name,showEmptyFields:!0}),d.jsx(co,{label:"תיאור העיסוק המדווח",value:n.businessDescription??"",showEmptyFields:!0}),d.jsx(co,{label:"מספר זהות",value:n.idNumber,showEmptyFields:!0}),d.jsx(co,{label:"מספר תיק",value:n.taxFileNumber,showEmptyFields:!0}),d.jsx(co,{label:'תיק מדווח למע"מ',value:n.vatFileNumber??"",showEmptyFields:!0}),d.jsx(co,{label:"מספר תיק ניכויים",value:n.withholdingTaxFileNumber??"",showEmptyFields:!0})]}),d.jsxs("div",{className:"space-y-4",children:[d.jsx("h3",{className:"text-lg font-bold border-b pb-2",children:"פרטי העסק"}),d.jsx(co,{value:DGn(n.businessType),label:"סוג העסק המדווח",showEmptyFields:!0}),d.jsx(co,{label:"שיטת דיווח",value:TGn(n.reportingMethod),showEmptyFields:!0}),n.reportingMethod===tj.DollarRegulations&&d.jsx(co,{label:"מטבע הסכומים",value:OGn(n.currencyType),showEmptyFields:!0}),d.jsx(co,{label:"הסכום באלפים",value:II(n.amountsInThousands),showEmptyFields:!0}),d.jsx(co,{label:"שיטת חשבונאות",value:BGn(n.accountingMethod),showEmptyFields:!0}),d.jsx(co,{label:"הנהלת חשבונות",value:IGn(n.accountingSystem),showEmptyFields:!0}),d.jsx(co,{label:"חייב ברישום תוכנה",value:II(!!n.softwareRegistrationNumber),showEmptyFields:!0}),n.softwareRegistrationNumber&&d.jsx(co,{label:"מספר תעודת רישום",value:n.softwareRegistrationNumber,showEmptyFields:!0}),d.jsx(co,{label:"דוח בגין שותפות",value:II(!!n.isPartnership),showEmptyFields:!0}),n.isPartnership&&d.jsxs(d.Fragment,{children:[d.jsx(co,{label:"מספר שותפים",value:n.partnershipCount?.toString()??"",showEmptyFields:!0}),d.jsx(co,{label:"חלקי ברווחי השותפות",value:`${n.partnershipProfitShare}%`,showEmptyFields:!0})]}),d.jsx(co,{label:"יישום תקני חשבונאות (IFRS)",value:II(!!n.ifrsImplementationYear||!!n.ifrsReportingOption),showEmptyFields:!0}),(!!n.ifrsImplementationYear||!!n.ifrsReportingOption)&&d.jsxs(d.Fragment,{children:[d.jsx(co,{label:"החל משנת המס",value:n.ifrsImplementationYear??"",showEmptyFields:!0}),d.jsx(co,{label:"דווח בחלופה",value:jGn(n.ifrsReportingOption),showEmptyFields:!0})]}),d.jsx(co,{label:"מספר ענף כלכלי של המדווח",value:n.industryCode,showEmptyFields:!0}),d.jsx(co,{label:"חוות דעת המבקר",value:PGn(n.auditOpinionType),showEmptyFields:!0})]})]})})}const RGn=[{title:"הכנסות ממכירות ומתן שירותים",color:"text-blue-700",codes:[1010,1015,1020,1025,1030,1040,1051,1052,1090],sumCode:1e3},{title:"עלות המכירות ומתן השירותים וביצוע עבודות",color:"text-purple-700",codes:[1306,1308,1307,1310,1320,1330,1340,1350,1360,1371,1372,1390,1400,1450],sumCode:1300},{title:"עלויות ייצור ועלויות אצל קבלן בונה",color:"text-rose-700",codes:[2005,2006,2011,2012,2015,2020,2025,2030,2035,2040,2045,2050,2060,2066,2067,2068,2070,2075,2080,2085,2090,2095],sumCode:2e3},{title:"הוצאות מחקר ופיתוח",color:"text-amber-700",codes:[2510,2520,2530,2540,2550,2560,2570,2590],sumCode:2500},{title:"הוצאות מכירה",color:"text-green-700",codes:[3011,3013,3012,3015,3020,3025,3030,3040,3045,3050,3060,3066,3067,3068,3070,3075,3080,3085,3090,3100,3120,3190],sumCode:3e3},{title:"הוצאות הנהלה וכלליות",color:"text-cyan-700",codes:[3511,3513,3512,3515,3520,3530,3535,3540,3545,3550,3560,3566,3567,3568,3570,3575,3580,3590,3595,3600,3610,3620,3625,3631,3632,3640,3650,3660,3665,3680,3685,3690],sumCode:3500},{title:"הוצאות מימון",color:"text-indigo-700",codes:[5010,5020,5025,5030,5040,5050,5051,5090],sumCode:5e3},{title:"הכנסות מימון",color:"text-fuchsia-700",codes:[5110,5121,5122,5130,5150,5160,5190],sumCode:5100},{title:"הכנסות אחרות",color:"text-red-700",codes:[5210,5220,5230,5236,5237,5240,5250,5260,5270,5290],sumCode:5200},{title:"הוצאות אחרות",color:"text-yellow-700",codes:[5310,5320,5330,5390],sumCode:5300}],$Gn=[{title:"מסים על הכנסה",color:"text-sky-700",codes:[5610,5620,5630],sumCode:5600},{title:"ייעוד הרווחים",color:"text-violet-700",codes:[5710],sumCode:5700},{title:"רווח/הפסד אקויטי",color:"text-pink-700",codes:[5810],sumCode:5800}];function LGn({selectedYear:e,referenceYear:t,data:n,referenceData:r,showEmptyFields:i=!1}){const{profitAndLoss:a}=$t(Fge,n),s=$t(Fge,r)?.profitAndLoss||[];return d.jsx(sS,{value:"profitLoss",className:"border rounded-md p-4",children:d.jsxs("div",{className:"space-y-6",dir:"rtl",children:[d.jsxs("div",{className:"flex justify-between items-center",children:[d.jsx("h3",{className:"text-lg font-bold border-b pb-2",children:"נתוני רווח והפסד"}),t&&e!==t&&d.jsxs("span",{className:"text-sm text-blue-600 bg-blue-50 px-2 py-1 rounded",children:["מציג שינויים לעומת ",t]})]}),RGn.map(l=>d.jsxs("div",{className:"bg-gray-50 p-4 rounded-md",children:[d.jsx("h4",{className:`font-bold mb-4 ${l.color}`,children:l.title}),d.jsxs("div",{className:"space-y-2",children:[l.codes.map(c=>d.jsx(Yo,{codes:a,referenceCodes:s,code:c,showEmptyFields:i},c)),d.jsx("div",{className:"border-2 rounded-md border-gray-300",children:d.jsx(Yo,{codes:a,referenceCodes:s,code:l.sumCode,showEmptyFields:i})})]})]},l.title)),d.jsx("div",{className:"bg-emerald-50 p-4 rounded-md border-2 border-emerald-200",children:d.jsx(Yo,{codes:a,referenceCodes:s,code:6666,showEmptyFields:i})}),$Gn.map(l=>d.jsxs("div",{className:"bg-gray-50 p-4 rounded-md",children:[d.jsx("h4",{className:`font-bold mb-4 ${l.color}`,children:l.title}),d.jsxs("div",{className:"space-y-2",children:[l.codes.map(c=>d.jsx(Yo,{codes:a,referenceCodes:s,code:c,showEmptyFields:i},c)),d.jsx("div",{className:"border-2 rounded-md border-gray-300",children:d.jsx(Yo,{codes:a,referenceCodes:s,code:l.sumCode,showEmptyFields:i})})]})]},l.title))]})})}const UGn=[{title:"התאמות חשבונאיות למי שיישם את חלופה 2 בהוראת ביצוע 7/2010 בנושא IFRS",color:"red",codes:[103,104]},{title:"התאמות נדרשות לצרכי מס (הוסף/הפחת)",color:"yellow",codes:[110,120,130,135,140,150,160,170,180,181,182,183,184,190,200,300,310,320,330,350,360],sumCode:370},{title:"התאמות חשבונאיות למי שיישם את חלופה 3 בהוראת ביצוע 7/2010 בנושא IFRS שלא מצאו את ביטויין בהתאמות הנדרשות לצרכי מס",color:"emerald",codes:[383],sumCode:400},{title:"יישום הוראות חוקי מס נוספים",color:"sky",codes:[430,480,490],sumCode:500},{title:"נתונים נוספים",color:"violet",codes:[510,520,530,540,550,570,575,580,585,590]},{title:"בשותפות",color:"pink",codes:[600]}],nIe={red:{header:"text-red-700",sum:"bg-red-50 border-red-200"},yellow:{header:"text-yellow-700",sum:"bg-yellow-50 border-yellow-200"},emerald:{header:"text-emerald-700",sum:"bg-emerald-50 border-emerald-200"},sky:{header:"text-sky-700",sum:"bg-sky-50 border-sky-200"},violet:{header:"text-violet-700",sum:"bg-violet-50 border-violet-200"},pink:{header:"text-pink-700",sum:"bg-pink-50 border-pink-200"}};function zGn({data:e,referenceData:t,showEmptyFields:n=!1}){const{taxAdjustment:r}=$t(Dge,e),a=$t(Dge,t)?.taxAdjustment||[];return d.jsx(sS,{value:"taxAdjustment",className:"border rounded-md p-4",children:d.jsxs("div",{className:"space-y-6",dir:"rtl",children:[d.jsx("h3",{className:"text-lg font-bold border-b pb-2",children:'נתוני דו"ח התאמה למס'}),d.jsx("div",{className:"bg-emerald-50 p-4 rounded-md border-2 border-emerald-200",children:d.jsx(Yo,{codes:r,referenceCodes:a,code:100,showEmptyFields:n})}),UGn.map(o=>{const{header:s,sum:l}=nIe[o.color]||nIe.red;return d.jsxs(d.Fragment,{children:[d.jsxs("div",{className:"bg-gray-50 p-4 rounded-md",children:[d.jsx("h4",{className:"font-bold mb-4 "+s,children:o.title}),d.jsx("div",{className:"space-y-2",children:o.codes.map(c=>d.jsx(Yo,{codes:r,referenceCodes:a,code:c,showEmptyFields:n},c))})]}),o.sumCode&&d.jsx("div",{className:"p-4 rounded-md border-2 "+l,children:d.jsx(Yo,{codes:r,referenceCodes:a,code:o.sumCode,showEmptyFields:n})})]},o.title)})]})})}function HGn({data:e,referenceData:t,businessInfo:n,selectedYear:r,referenceYear:i}){const a=$t(Oge,e),o=$t(Oge,t),[s,l]=w.useState("header"),[c,u]=w.useState(!0);return d.jsxs("div",{className:"p-4 border-gray-300",dir:"rtl",children:[d.jsxs("div",{className:"flex justify-between items-center mb-4",children:[d.jsx("div",{className:"flex items-center gap-4",children:d.jsxs("div",{className:"flex items-center gap-2",children:[d.jsxs(Ge,{variant:c?"outline":"default",size:"sm",onClick:()=>u(!c),className:"flex items-center gap-2",children:[c?d.jsx(Y5t,{className:"h-4 w-4"}):d.jsx(Ene,{className:"h-4 w-4"}),c?"הסתר שדות ריקים":"הצג שדות ריקים"]}),d.jsx("span",{className:"text-sm text-gray-500",children:c?"מציג את כל השדות":"מציג רק שדות עם נתונים"})]})}),d.jsxs("div",{className:"flex gap-2",children:[d.jsxs(Ge,{variant:"outline",className:"flex items-center gap-2",children:[d.jsx(Nne,{className:"h-4 w-4"}),"הורד"]}),d.jsxs(Ge,{variant:"outline",className:"flex items-center gap-2",children:[d.jsx(lIt,{className:"h-4 w-4"}),"שמור"]})]})]}),d.jsxs(xYe,{value:s,onValueChange:l,className:"w-full",children:[d.jsxs(wYe,{className:"grid grid-cols-4 w-full",dir:"rtl",children:[d.jsx(Jw,{value:"header",children:"פרטים מזהים"}),d.jsx(Jw,{value:"profitLoss",children:"רווח והפסד"}),d.jsx(Jw,{value:"taxAdjustment",children:"התאמה למס"}),d.jsx(Jw,{value:"balanceSheet",children:"מאזן"})]}),d.jsx(MGn,{data:a,businessInfo:n}),d.jsx(LGn,{selectedYear:r,referenceYear:i,data:a,referenceData:o,showEmptyFields:c}),d.jsx(zGn,{data:a,referenceData:o,showEmptyFields:c}),d.jsx(FGn,{data:a,referenceData:o,showEmptyFields:c})]})]})}function VGn(){const{setFiltersContext:e}=w.useContext(ta),[t,n]=w.useState(void 0),[r,i]=w.useState(void 0),[a,o]=w.useState(void 0),[{data:s,fetching:l}]=rn({query:xFt,variables:{year:r?Number.parseInt(r,10):0,businessId:t},pause:!r||!t});return w.useEffect(()=>{e(d.jsx("div",{className:"flex flex-row gap-x-5",dir:"rtl",children:d.jsx(kGn,{selectedBusiness:t,setSelectedBusiness:n,selectedYear:r,setSelectedYear:i,referenceYear:a,setReferenceYear:o})}))},[e,t,r,a]),d.jsx("div",{className:"container mx-auto",dir:"rtl",children:d.jsxs(os,{className:"border-2 border-gray-300",children:[d.jsx(Lc,{className:"bg-gray-100 border-b-2 border-gray-300 flex flex-row justify-between items-center",children:d.jsxs("div",{className:"text-center w-full",children:[d.jsx("h1",{className:"text-2xl font-bold",children:'נספח לטופס הדו"ח השנתי ליחיד ולחבר בני אדם'}),d.jsxs("h2",{className:"text-xl",children:["לשנת המס ",r]}),d.jsx("p",{className:"text-sm",children:'נתוני הדוחות הכספיים, מאזן, רווח והפסד ודו"ח ההתאמה למס'})]})}),d.jsx(Gs,{className:"p-0",children:d.jsx(QGn,{fetching:l,data:s,selectedBusiness:t,selectedYear:r,referenceYear:a})})]})})}function QGn({fetching:e,data:t,selectedBusiness:n,selectedYear:r,referenceYear:i}){if(e)return d.jsx("div",{className:"container mx-auto p-8 text-center",dir:"rtl",children:d.jsx("p",{className:"text-lg text-gray-600",children:"טוען נתונים..."})});if(!r||!n)return d.jsx("div",{className:"container mx-auto p-8 text-center",dir:"rtl",children:d.jsx("p",{className:"text-lg text-gray-600",children:"יש לבחור עסק ושנת דיווח"})});const a=t?.shaam6111.data;return a?d.jsx(HGn,{data:a,businessInfo:t.shaam6111.business,selectedBusiness:n,selectedYear:r,referenceYear:i}):d.jsx("div",{className:"container mx-auto p-8 text-center",dir:"rtl",children:d.jsx("p",{className:"text-lg text-gray-600",children:"אין נתונים זמינים עבור העסק והשנה שנבחרו"})})}const rIe=[{id:"key",accessorKey:"key",cell:({row:e})=>d.jsx(Mt,{children:e.original.key}),header:({column:e})=>d.jsxs(Ge,{variant:"ghost",onClick:()=>e.toggleSorting(e.getIsSorted()==="asc"),children:["Key",d.jsx(cd,{})]})},{id:"name",accessorKey:"name",cell:({row:e})=>d.jsx(Mt,{children:e.original.name}),header:({column:e})=>d.jsxs(Ge,{variant:"ghost",onClick:()=>e.toggleSorting(e.getIsSorted()==="asc"),children:["Name",d.jsx(cd,{})]})},{id:"defaultIrsCode",accessorKey:"defaultIrsCode",cell:({row:e})=>d.jsx(Mt,{className:"flex flex-wrap gap-1 p-1",children:e.original.defaultIrsCode&&d.jsx(Ge,{variant:"outline",disabled:!0,className:"p-1 w-15",children:e.original.defaultIrsCode})}),header:"Default IRS Code"},{id:"edit",cell:({row:e})=>d.jsx(Oon,{sortCodeKey:e.original.key,onAdd:e.original.refetchSortCodes})}],qGn=()=>{const[{data:e,fetching:t,error:n},r]=rn({query:wFt}),{setFiltersContext:i}=w.useContext(ta),a=w.useMemo(()=>e?.allSortCodes?.map(l=>({...l,refetchSortCodes:r}))??[],[e?.allSortCodes,r]),o=om({data:a,columns:rIe,getCoreRowModel:am(),getPaginationRowModel:TD(),getSortedRowModel:Cg(),initialState:{pagination:{pageSize:100}}}),s=o.getPageOptions();return w.useEffect(()=>{i(d.jsx("div",{className:"flex items-center justify-end gap-10 space-x-2 py-4",children:d.jsx(QL,{table:o})}))},[i,o,s]),w.useEffect(()=>{n&&(console.error("Error fetching sort codes",n),qe.error("Error",{description:"Error fetching sort codes"}))},[n]),d.jsx(Pa,{title:`Sort Codes (${a.length})`,description:"All sort codes",headerActions:d.jsx(Hon,{onAdd:()=>r()}),children:t?d.jsx("div",{className:"flex flex-row justify-center",children:d.jsx(ai,{className:"h-10 w-10 animate-spin mr-2"})}):d.jsx("div",{className:"flex flex-col gap-4 rounded-md border",children:d.jsxs(Bu,{children:[d.jsx(Iu,{children:o.getHeaderGroups().map(l=>d.jsx(Dr,{children:l.headers.map(c=>d.jsx(Gr,{children:c.isPlaceholder?null:jo(c.column.columnDef.header,c.getContext())},c.id))},l.id))}),d.jsx(ju,{children:o.getRowModel().rows.length===0?d.jsx(Dr,{children:d.jsx(Mt,{colSpan:rIe.length,className:"text-center py-8",children:"No sort codes found"})}):o.getRowModel().rows.map(l=>d.jsx(Dr,{children:l.getVisibleCells().map(c=>d.jsx(Mt,{children:jo(c.column.columnDef.cell,c.getContext())},c.id))},l.id))})]})})})},GGn="addTag",WGn=()=>{const[{fetching:e},t]=qn(OFt),n=w.useCallback(async r=>{const i=`Error adding new tag [${r.tagName}]`,a=`${GGn}-${r.tagName}`;qe.loading("Adding tag",{id:a});try{const o=await t(r);Gn(o,i,a)&&qe.success("Success",{id:a,description:`"${r.tagName}" tag was successfully added`})}catch(o){console.error(`${i}: ${o}`),qe.error("Error",{id:a,description:i,duration:1e5,closeButton:!0})}},[t]);return{fetching:e,addTag:n}},KGn="deleteTag",YGn=()=>{const[{fetching:e},t]=qn(KFt),n=w.useCallback(async r=>{const i=`Error deleting new tag [${r.name}]`,a=`${KGn}-${r.tagId}`;qe.loading(`Deleting tag [${r.name}]`,{id:a});try{const o=await t(r);Gn(o,i,a)&&qe.success("Tag Deleted",{id:a,description:`[${r.name}] tag was successfully removed`})}catch(o){console.error(`${i}: ${o}`),qe.error("Error",{id:a,description:i,duration:1e5,closeButton:!0})}},[t]);return{fetching:e,deleteTag:n}},XGn=()=>{const{setFiltersContext:e}=w.useContext(ta),[t,n]=w.useState(""),[{data:r,fetching:i},a]=rn({query:kFt}),{addTag:o}=WGn(),{deleteTag:s}=YGn();e(null);const l=_Le(r?.allTags??[]),c=w.useCallback(f=>{f.length>2&&o({tagName:f}).then(()=>{a()})},[o,a]),u=w.useCallback((f,h)=>{s({tagId:f,name:h}).then(()=>{a()})},[s,a]);return d.jsx(Pa,{title:"Tags",description:"Manage tags for your bookmarks.",children:i?d.jsx(ai,{className:"h-10 w-10 animate-spin mr-2 self-center"}):d.jsxs("div",{className:"h-full flex flex-col overflow-hidden",children:[l?.map(f=>d.jsxs("div",{className:"flex items-center gap-2 text-gray-600 mb-2",children:[d.jsxs("div",{className:"w-full mt-1 relative rounded-md shadow-xs",children:[f.namePath?.map((h,m)=>d.jsx("span",{className:"ms-2"},m)),f.name]}),d.jsx(jon,{data:f}),d.jsx(Ge,{variant:"ghost",size:"icon",className:"size-7.5",onClick:()=>u(f.id,f.name),children:d.jsx(Ry,{className:"size-5"})})]},f.id)),d.jsxs("div",{className:"flex justify-start items-center gap-2 text-gray-600 mb-2",children:[d.jsx(kn,{className:"w-80",value:t,onChange:f=>n(f.currentTarget.value),placeholder:"Add new tag",required:!0}),d.jsx(Ge,{variant:"ghost",size:"icon",className:"size-7.5",disabled:t.length<2,onClick:()=>c(t),children:d.jsx(lg,{className:"size-5"})})]})]})})},ZGn="updateTaxCategory",JGn=()=>{const[{fetching:e},t]=qn(jDt),n=w.useCallback(async r=>{const i="Error updating tax category",a=`${ZGn}-${r.taxCategoryId}`;qe.loading("Uploading Tax Category",{id:a});try{const o=await t(r),s=Gn(o,i,a,"updateTaxCategory");if(s)return qe.success("Success",{id:a,description:`${s.updateTaxCategory.name} was updated`}),s.updateTaxCategory}catch(o){console.error(`${i}: ${o}`),qe.error("Error",{id:a,description:i,duration:1e5,closeButton:!0})}},[t]);return{fetching:e,updateTaxCategory:n}};function eWn({taxCategoryId:e,onAdd:t}){const[n,r]=w.useState(!1);return d.jsxs(Ra,{open:n,onOpenChange:r,children:[d.jsx(Ac,{asChild:!0,children:d.jsx(Ge,{variant:"outline",size:"icon",children:d.jsx(Tu,{})})}),d.jsxs($a,{className:"w-[400px] max-w-screen-md",children:[d.jsx(us,{children:d.jsx(ds,{children:"Edit Tax Category"})}),d.jsx(tWn,{taxCategoryId:e,close:()=>r(!1),onAdd:t})]})]})}function tWn({taxCategoryId:e,close:t,onAdd:n}){const[{data:r,fetching:i}]=rn({query:qEt,variables:{id:e}}),a=r?.taxCategory;return!a&&!i&&qe.error("Error",{description:"Couldn'nt find tax category"}),i?d.jsx(ai,{className:"h-10 w-10 animate-spin"}):d.jsx(nWn,{taxCategory:a,close:t,onAdd:n})}function nWn({taxCategory:e,close:t,onAdd:n}){const r=Ar({defaultValues:{sortCode:e.sortCode?.key,name:e.name,irsCode:e.irsCode}}),{handleSubmit:i}=r,[a,o]=w.useState(!1),{updateTaxCategory:s,fetching:l}=JGn(),c=u=>{u.sortCode&&=parseInt(u.sortCode.toString()),s({fields:u,taxCategoryId:e.id}).then(f=>{f?.id&&(n?.(f.id),t())})};return d.jsx(ii,{...r,children:d.jsxs("form",{onSubmit:i(c),children:[d.jsx("div",{className:"flex flex-col gap-4 my-4",children:d.jsx(eKe,{isInsert:!1,formManager:r,setFetching:o})}),d.jsx("div",{className:"flex justify-end mt-4",children:d.jsx(Ge,{type:"submit",disabled:l||a,children:"Update"})})]})})}const rWn=({data:e})=>d.jsx("td",{children:e.name}),iWn=({data:e})=>d.jsx("td",{children:e.sortCode?d.jsxs("span",{children:[e.sortCode?.name," (",e.sortCode?.id,")"]}):"N/A"}),iIe=[{id:"name",accessorKey:"name",cell:({row:e})=>d.jsx(rWn,{data:e.original}),header:({column:e})=>d.jsxs(Ge,{variant:"ghost",onClick:()=>e.toggleSorting(e.getIsSorted()==="asc"),children:["Name",d.jsx(cd,{})]})},{id:"sortCode",accessorKey:"sortCode.key",cell:({row:e})=>d.jsx(iWn,{data:e.original}),header:({column:e})=>d.jsxs(Ge,{variant:"ghost",onClick:()=>e.toggleSorting(e.getIsSorted()==="asc"),children:["Sort Code",d.jsx(cd,{})]})},{id:"edit",cell:({row:e})=>d.jsx(eWn,{taxCategoryId:e.original.id})}],aWn=()=>{const[{data:e,fetching:t,error:n},r]=rn({query:SFt}),{setFiltersContext:i}=w.useContext(ta),a=e?.taxCategories??[],o=om({data:a,columns:iIe,getCoreRowModel:am(),getPaginationRowModel:TD(),getSortedRowModel:Cg(),initialState:{pagination:{pageSize:30}}}),s=o.getPageOptions();return w.useEffect(()=>{i(d.jsx("div",{className:"flex items-center justify-end gap-10 space-x-2 py-4",children:d.jsx("div",{className:"flex items-center justify-between px-2",children:d.jsx(QL,{table:o})})}))},[i,o,s]),w.useEffect(()=>{n&&qe.error("Error",{description:"Error fetching tax categories"})},[n]),d.jsx(Pa,{title:`Tax Categories (${a.length})`,description:"All tax categories",headerActions:d.jsx(Gon,{onAdd:()=>r()}),children:t?d.jsx("div",{className:"flex flex-row justify-center",children:d.jsx(ai,{className:"h-10 w-10 animate-spin mr-2"})}):d.jsx("div",{className:"flex flex-col gap-4 rounded-md border",children:d.jsxs(Bu,{children:[d.jsx(Iu,{children:o.getHeaderGroups().map(l=>d.jsx(Dr,{children:l.headers.map(c=>d.jsx(Gr,{children:c.isPlaceholder?null:jo(c.column.columnDef.header,c.getContext())},c.id))},l.id))}),d.jsx(ju,{children:o.getRowModel().rows.length===0?d.jsx(Dr,{children:d.jsx(Mt,{colSpan:iIe.length,className:"text-center py-8",children:"No tax categories found"})}):o.getRowModel().rows.map(l=>d.jsx(Dr,{children:l.getVisibleCells().map(c=>d.jsx(Mt,{children:jo(c.column.columnDef.cell,c.getContext())},c.id))},l.id))})]})})})};function oWn(){const[e,t]=w.useState(null);return d.jsx(ta.Provider,{value:{filtersContext:e,setFiltersContext:t},children:d.jsx(GFn,{filtersContext:e,children:d.jsxs(RIe,{children:[d.jsx(Lr,{path:"/",element:d.jsx(aFe,{})}),d.jsx(Lr,{path:"charges",element:d.jsx(aFe,{})}),d.jsx(Lr,{path:"missing-info-charges",element:d.jsx(xRn,{})}),d.jsx(Lr,{path:"charges-ledger-validation",element:d.jsx(Adn,{})}),d.jsx(Lr,{path:"charges/:chargeId",element:d.jsx(G9t,{})}),d.jsx(Lr,{path:"businesses",element:d.jsx(fdn,{})}),d.jsx(Lr,{path:"business-trips",element:d.jsx(sdn,{})}),d.jsx(Lr,{path:"business-trips/:businessTripId",element:d.jsx(adn,{})}),d.jsx(Lr,{path:"business-transactions",element:d.jsx(oUt,{})}),d.jsx(Lr,{path:"business-transactions/:businessId",element:d.jsx(qcn,{})}),d.jsxs(Lr,{path:"charts",children:[d.jsx(Lr,{path:"",element:d.jsx(Rgn,{})}),d.jsx(Lr,{path:"monthly-income-expense",element:d.jsx(t2n,{})})]}),d.jsxs(Lr,{path:"documents",children:[d.jsx(Lr,{path:"",element:d.jsx(SRn,{})}),d.jsx(Lr,{path:"issue-documents",element:d.jsx(ORn,{})}),d.jsx(Lr,{path:"issue-document",element:d.jsx(CRn,{})})]}),d.jsx(Lr,{path:"accountant-approvals",element:d.jsx(WFn,{})}),d.jsxs(Lr,{path:"reports",children:[d.jsx(Lr,{path:"trial-balance",element:d.jsx(vMn,{})}),d.jsx(Lr,{path:"conto",element:d.jsx(tMn,{})}),d.jsx(Lr,{path:"vat-monthly",element:d.jsx(nRn,{})}),d.jsx(Lr,{path:"profit-and-loss",element:d.jsx(eFe,{})}),d.jsx(Lr,{path:"profit-and-loss/:year",element:d.jsx(eFe,{})}),d.jsx(Lr,{path:"tax",element:d.jsx(tFe,{})}),d.jsx(Lr,{path:"tax/:year",element:d.jsx(tFe,{})}),d.jsx(Lr,{path:"depreciation",element:d.jsx(wGn,{})}),d.jsx(Lr,{path:"shaam6111",element:d.jsx(VGn,{})}),d.jsx(Lr,{path:"yearly-ledger",element:d.jsx(oRn,{})}),d.jsx(Lr,{path:"corporate-tax-ruling-compliance",element:d.jsx(JEe,{})}),d.jsx(Lr,{path:"corporate-tax-ruling-compliance/:year",element:d.jsx(JEe,{})}),d.jsx(Lr,{path:"balance",element:d.jsx(gGn,{})}),d.jsx(Lr,{path:"validate-reports",element:d.jsx(QMn,{})})]}),d.jsx(Lr,{path:"salaries",element:d.jsx(bRn,{})}),d.jsx(Lr,{path:"tags",element:d.jsx(XGn,{})}),d.jsx(Lr,{path:"tax-categories",element:d.jsx(aWn,{})}),d.jsx(Lr,{path:"sort-codes",element:d.jsx(qGn,{})}),d.jsx(Lr,{path:"*",element:d.jsx(BRn,{})})]})})})}var K8=class{constructor(){this.listeners=new Set,this.subscribe=this.subscribe.bind(this)}subscribe(e){return this.listeners.add(e),this.onSubscribe(),()=>{this.listeners.delete(e),this.onUnsubscribe()}}hasListeners(){return this.listeners.size>0}onSubscribe(){}onUnsubscribe(){}},sWn={setTimeout:(e,t)=>setTimeout(e,t),clearTimeout:e=>clearTimeout(e),setInterval:(e,t)=>setInterval(e,t),clearInterval:e=>clearInterval(e)},lWn=class{#e=sWn;#t=!1;setTimeoutProvider(e){this.#e=e}setTimeout(e,t){return this.#e.setTimeout(e,t)}clearTimeout(e){this.#e.clearTimeout(e)}setInterval(e,t){return this.#e.setInterval(e,t)}clearInterval(e){this.#e.clearInterval(e)}},fte=new lWn;function cWn(e){setTimeout(e,0)}var Y8=typeof window>"u"||"Deno"in globalThis;function Nh(){}function uWn(e,t){return typeof e=="function"?e(t):e}function dWn(e){return typeof e=="number"&&e>=0&&e!==1/0}function fWn(e,t){return Math.max(e+(t||0)-Date.now(),0)}function hte(e,t){return typeof e=="function"?e(t):e}function hWn(e,t){return typeof e=="function"?e(t):e}function aIe(e,t){const{type:n="all",exact:r,fetchStatus:i,predicate:a,queryKey:o,stale:s}=e;if(o){if(r){if(t.queryHash!==Uce(o,t.options))return!1}else if(!qF(t.queryKey,o))return!1}if(n!=="all"){const l=t.isActive();if(n==="active"&&!l||n==="inactive"&&l)return!1}return!(typeof s=="boolean"&&t.isStale()!==s||i&&i!==t.state.fetchStatus||a&&!a(t))}function oIe(e,t){const{exact:n,status:r,predicate:i,mutationKey:a}=e;if(a){if(!t.options.mutationKey)return!1;if(n){if(QF(t.options.mutationKey)!==QF(a))return!1}else if(!qF(t.options.mutationKey,a))return!1}return!(r&&t.state.status!==r||i&&!i(t))}function Uce(e,t){return(t?.queryKeyHashFn||QF)(e)}function QF(e){return JSON.stringify(e,(t,n)=>mte(n)?Object.keys(n).sort().reduce((r,i)=>(r[i]=n[i],r),{}):n)}function qF(e,t){return e===t?!0:typeof e!=typeof t?!1:e&&t&&typeof e=="object"&&typeof t=="object"?Object.keys(t).every(n=>qF(e[n],t[n])):!1}var mWn=Object.prototype.hasOwnProperty;function dot(e,t){if(e===t)return e;const n=sIe(e)&&sIe(t);if(!n&&!(mte(e)&&mte(t)))return t;const i=(n?e:Object.keys(e)).length,a=n?t:Object.keys(t),o=a.length,s=n?new Array(o):{};let l=0;for(let c=0;c<o;c++){const u=n?c:a[c],f=e[u],h=t[u];if(f===h){s[u]=f,(n?c<i:mWn.call(e,u))&&l++;continue}if(f===null||h===null||typeof f!="object"||typeof h!="object"){s[u]=h;continue}const m=dot(f,h);s[u]=m,m===f&&l++}return i===o&&l===i?e:s}function sIe(e){return Array.isArray(e)&&e.length===Object.keys(e).length}function mte(e){if(!lIe(e))return!1;const t=e.constructor;if(t===void 0)return!0;const n=t.prototype;return!(!lIe(n)||!n.hasOwnProperty("isPrototypeOf")||Object.getPrototypeOf(e)!==Object.prototype)}function lIe(e){return Object.prototype.toString.call(e)==="[object Object]"}function pWn(e){return new Promise(t=>{fte.setTimeout(t,e)})}function AWn(e,t,n){return typeof n.structuralSharing=="function"?n.structuralSharing(e,t):n.structuralSharing!==!1?dot(e,t):t}function gWn(e,t,n=0){const r=[...e,t];return n&&r.length>n?r.slice(1):r}function vWn(e,t,n=0){const r=[t,...e];return n&&r.length>n?r.slice(0,-1):r}var zce=Symbol();function fot(e,t){return!e.queryFn&&t?.initialPromise?()=>t.initialPromise:!e.queryFn||e.queryFn===zce?()=>Promise.reject(new Error(`Missing queryFn: '${e.queryHash}'`)):e.queryFn}var yWn=class extends K8{#e;#t;#n;constructor(){super(),this.#n=e=>{if(!Y8&&window.addEventListener){const t=()=>e();return window.addEventListener("visibilitychange",t,!1),()=>{window.removeEventListener("visibilitychange",t)}}}}onSubscribe(){this.#t||this.setEventListener(this.#n)}onUnsubscribe(){this.hasListeners()||(this.#t?.(),this.#t=void 0)}setEventListener(e){this.#n=e,this.#t?.(),this.#t=e(t=>{typeof t=="boolean"?this.setFocused(t):this.onFocus()})}setFocused(e){this.#e!==e&&(this.#e=e,this.onFocus())}onFocus(){const e=this.isFocused();this.listeners.forEach(t=>{t(e)})}isFocused(){return typeof this.#e=="boolean"?this.#e:globalThis.document?.visibilityState!=="hidden"}},hot=new yWn;function bWn(){let e,t;const n=new Promise((i,a)=>{e=i,t=a});n.status="pending",n.catch(()=>{});function r(i){Object.assign(n,i),delete n.resolve,delete n.reject}return n.resolve=i=>{r({status:"fulfilled",value:i}),e(i)},n.reject=i=>{r({status:"rejected",reason:i}),t(i)},n}var xWn=cWn;function wWn(){let e=[],t=0,n=s=>{s()},r=s=>{s()},i=xWn;const a=s=>{t?e.push(s):i(()=>{n(s)})},o=()=>{const s=e;e=[],s.length&&i(()=>{r(()=>{s.forEach(l=>{n(l)})})})};return{batch:s=>{let l;t++;try{l=s()}finally{t--,t||o()}return l},batchCalls:s=>(...l)=>{a(()=>{s(...l)})},schedule:a,setNotifyFunction:s=>{n=s},setBatchNotifyFunction:s=>{r=s},setScheduler:s=>{i=s}}}var Oc=wWn(),kWn=class extends K8{#e=!0;#t;#n;constructor(){super(),this.#n=e=>{if(!Y8&&window.addEventListener){const t=()=>e(!0),n=()=>e(!1);return window.addEventListener("online",t,!1),window.addEventListener("offline",n,!1),()=>{window.removeEventListener("online",t),window.removeEventListener("offline",n)}}}}onSubscribe(){this.#t||this.setEventListener(this.#n)}onUnsubscribe(){this.hasListeners()||(this.#t?.(),this.#t=void 0)}setEventListener(e){this.#n=e,this.#t?.(),this.#t=e(this.setOnline.bind(this))}setOnline(e){this.#e!==e&&(this.#e=e,this.listeners.forEach(n=>{n(e)}))}isOnline(){return this.#e}},q$=new kWn;function SWn(e){return Math.min(1e3*2**e,3e4)}function mot(e){return(e??"online")==="online"?q$.isOnline():!0}var pte=class extends Error{constructor(e){super("CancelledError"),this.revert=e?.revert,this.silent=e?.silent}};function pot(e){let t=!1,n=0,r;const i=bWn(),a=()=>i.status!=="pending",o=A=>{if(!a()){const v=new pte(A);h(v),e.onCancel?.(v)}},s=()=>{t=!0},l=()=>{t=!1},c=()=>hot.isFocused()&&(e.networkMode==="always"||q$.isOnline())&&e.canRun(),u=()=>mot(e.networkMode)&&e.canRun(),f=A=>{a()||(r?.(),i.resolve(A))},h=A=>{a()||(r?.(),i.reject(A))},m=()=>new Promise(A=>{r=v=>{(a()||c())&&A(v)},e.onPause?.()}).then(()=>{r=void 0,a()||e.onContinue?.()}),p=()=>{if(a())return;let A;const v=n===0?e.initialPromise:void 0;try{A=v??e.fn()}catch(y){A=Promise.reject(y)}Promise.resolve(A).then(f).catch(y=>{if(a())return;const x=e.retry??(Y8?0:3),k=e.retryDelay??SWn,S=typeof k=="function"?k(n,y):k,C=x===!0||typeof x=="number"&&n<x||typeof x=="function"&&x(n,y);if(t||!C){h(y);return}n++,e.onFail?.(n,y),pWn(S).then(()=>c()?void 0:m()).then(()=>{t?h(y):p()})})};return{promise:i,status:()=>i.status,cancel:o,continue:()=>(r?.(),i),cancelRetry:s,continueRetry:l,canStart:u,start:()=>(u()?p():m().then(p),i)}}var Aot=class{#e;destroy(){this.clearGcTimeout()}scheduleGc(){this.clearGcTimeout(),dWn(this.gcTime)&&(this.#e=fte.setTimeout(()=>{this.optionalRemove()},this.gcTime))}updateGcTime(e){this.gcTime=Math.max(this.gcTime||0,e??(Y8?1/0:300*1e3))}clearGcTimeout(){this.#e&&(fte.clearTimeout(this.#e),this.#e=void 0)}},CWn=class extends Aot{#e;#t;#n;#r;#a;#i;#o;constructor(e){super(),this.#o=!1,this.#i=e.defaultOptions,this.setOptions(e.options),this.observers=[],this.#r=e.client,this.#n=this.#r.getQueryCache(),this.queryKey=e.queryKey,this.queryHash=e.queryHash,this.#e=cIe(this.options),this.state=e.state??this.#e,this.scheduleGc()}get meta(){return this.options.meta}get promise(){return this.#a?.promise}setOptions(e){if(this.options={...this.#i,...e},this.updateGcTime(this.options.gcTime),this.state&&this.state.data===void 0){const t=cIe(this.options);t.data!==void 0&&(this.setData(t.data,{updatedAt:t.dataUpdatedAt,manual:!0}),this.#e=t)}}optionalRemove(){!this.observers.length&&this.state.fetchStatus==="idle"&&this.#n.remove(this)}setData(e,t){const n=AWn(this.state.data,e,this.options);return this.#s({data:n,type:"success",dataUpdatedAt:t?.updatedAt,manual:t?.manual}),n}setState(e,t){this.#s({type:"setState",state:e,setStateOptions:t})}cancel(e){const t=this.#a?.promise;return this.#a?.cancel(e),t?t.then(Nh).catch(Nh):Promise.resolve()}destroy(){super.destroy(),this.cancel({silent:!0})}reset(){this.destroy(),this.setState(this.#e)}isActive(){return this.observers.some(e=>hWn(e.options.enabled,this)!==!1)}isDisabled(){return this.getObserversCount()>0?!this.isActive():this.options.queryFn===zce||this.state.dataUpdateCount+this.state.errorUpdateCount===0}isStatic(){return this.getObserversCount()>0?this.observers.some(e=>hte(e.options.staleTime,this)==="static"):!1}isStale(){return this.getObserversCount()>0?this.observers.some(e=>e.getCurrentResult().isStale):this.state.data===void 0||this.state.isInvalidated}isStaleByTime(e=0){return this.state.data===void 0?!0:e==="static"?!1:this.state.isInvalidated?!0:!fWn(this.state.dataUpdatedAt,e)}onFocus(){this.observers.find(t=>t.shouldFetchOnWindowFocus())?.refetch({cancelRefetch:!1}),this.#a?.continue()}onOnline(){this.observers.find(t=>t.shouldFetchOnReconnect())?.refetch({cancelRefetch:!1}),this.#a?.continue()}addObserver(e){this.observers.includes(e)||(this.observers.push(e),this.clearGcTimeout(),this.#n.notify({type:"observerAdded",query:this,observer:e}))}removeObserver(e){this.observers.includes(e)&&(this.observers=this.observers.filter(t=>t!==e),this.observers.length||(this.#a&&(this.#o?this.#a.cancel({revert:!0}):this.#a.cancelRetry()),this.scheduleGc()),this.#n.notify({type:"observerRemoved",query:this,observer:e}))}getObserversCount(){return this.observers.length}invalidate(){this.state.isInvalidated||this.#s({type:"invalidate"})}async fetch(e,t){if(this.state.fetchStatus!=="idle"&&this.#a?.status()!=="rejected"){if(this.state.data!==void 0&&t?.cancelRefetch)this.cancel({silent:!0});else if(this.#a)return this.#a.continueRetry(),this.#a.promise}if(e&&this.setOptions(e),!this.options.queryFn){const s=this.observers.find(l=>l.options.queryFn);s&&this.setOptions(s.options)}const n=new AbortController,r=s=>{Object.defineProperty(s,"signal",{enumerable:!0,get:()=>(this.#o=!0,n.signal)})},i=()=>{const s=fot(this.options,t),c=(()=>{const u={client:this.#r,queryKey:this.queryKey,meta:this.meta};return r(u),u})();return this.#o=!1,this.options.persister?this.options.persister(s,c,this):s(c)},o=(()=>{const s={fetchOptions:t,options:this.options,queryKey:this.queryKey,client:this.#r,state:this.state,fetchFn:i};return r(s),s})();this.options.behavior?.onFetch(o,this),this.#t=this.state,(this.state.fetchStatus==="idle"||this.state.fetchMeta!==o.fetchOptions?.meta)&&this.#s({type:"fetch",meta:o.fetchOptions?.meta}),this.#a=pot({initialPromise:t?.initialPromise,fn:o.fetchFn,onCancel:s=>{s instanceof pte&&s.revert&&this.setState({...this.#t,fetchStatus:"idle"}),n.abort()},onFail:(s,l)=>{this.#s({type:"failed",failureCount:s,error:l})},onPause:()=>{this.#s({type:"pause"})},onContinue:()=>{this.#s({type:"continue"})},retry:o.options.retry,retryDelay:o.options.retryDelay,networkMode:o.options.networkMode,canRun:()=>!0});try{const s=await this.#a.start();if(s===void 0)throw new Error(`${this.queryHash} data is undefined`);return this.setData(s),this.#n.config.onSuccess?.(s,this),this.#n.config.onSettled?.(s,this.state.error,this),s}catch(s){if(s instanceof pte){if(s.silent)return this.#a.promise;if(s.revert){if(this.state.data===void 0)throw s;return this.state.data}}throw this.#s({type:"error",error:s}),this.#n.config.onError?.(s,this),this.#n.config.onSettled?.(this.state.data,s,this),s}finally{this.scheduleGc()}}#s(e){const t=n=>{switch(e.type){case"failed":return{...n,fetchFailureCount:e.failureCount,fetchFailureReason:e.error};case"pause":return{...n,fetchStatus:"paused"};case"continue":return{...n,fetchStatus:"fetching"};case"fetch":return{...n,..._Wn(n.data,this.options),fetchMeta:e.meta??null};case"success":const r={...n,data:e.data,dataUpdateCount:n.dataUpdateCount+1,dataUpdatedAt:e.dataUpdatedAt??Date.now(),error:null,isInvalidated:!1,status:"success",...!e.manual&&{fetchStatus:"idle",fetchFailureCount:0,fetchFailureReason:null}};return this.#t=e.manual?r:void 0,r;case"error":const i=e.error;return{...n,error:i,errorUpdateCount:n.errorUpdateCount+1,errorUpdatedAt:Date.now(),fetchFailureCount:n.fetchFailureCount+1,fetchFailureReason:i,fetchStatus:"idle",status:"error"};case"invalidate":return{...n,isInvalidated:!0};case"setState":return{...n,...e.state}}};this.state=t(this.state),Oc.batch(()=>{this.observers.forEach(n=>{n.onQueryUpdate()}),this.#n.notify({query:this,type:"updated",action:e})})}};function _Wn(e,t){return{fetchFailureCount:0,fetchFailureReason:null,fetchStatus:mot(t.networkMode)?"fetching":"paused",...e===void 0&&{error:null,status:"pending"}}}function cIe(e){const t=typeof e.initialData=="function"?e.initialData():e.initialData,n=t!==void 0,r=n?typeof e.initialDataUpdatedAt=="function"?e.initialDataUpdatedAt():e.initialDataUpdatedAt:0;return{data:t,dataUpdateCount:0,dataUpdatedAt:n?r??Date.now():0,error:null,errorUpdateCount:0,errorUpdatedAt:0,fetchFailureCount:0,fetchFailureReason:null,fetchMeta:null,isInvalidated:!1,status:n?"success":"pending",fetchStatus:"idle"}}function uIe(e){return{onFetch:(t,n)=>{const r=t.options,i=t.fetchOptions?.meta?.fetchMore?.direction,a=t.state.data?.pages||[],o=t.state.data?.pageParams||[];let s={pages:[],pageParams:[]},l=0;const c=async()=>{let u=!1;const f=p=>{Object.defineProperty(p,"signal",{enumerable:!0,get:()=>(t.signal.aborted?u=!0:t.signal.addEventListener("abort",()=>{u=!0}),t.signal)})},h=fot(t.options,t.fetchOptions),m=async(p,A,v)=>{if(u)return Promise.reject();if(A==null&&p.pages.length)return Promise.resolve(p);const x=(()=>{const N={client:t.client,queryKey:t.queryKey,pageParam:A,direction:v?"backward":"forward",meta:t.options.meta};return f(N),N})(),k=await h(x),{maxPages:S}=t.options,C=v?vWn:gWn;return{pages:C(p.pages,k,S),pageParams:C(p.pageParams,A,S)}};if(i&&a.length){const p=i==="backward",A=p?NWn:dIe,v={pages:a,pageParams:o},y=A(r,v);s=await m(v,y,p)}else{const p=e??a.length;do{const A=l===0?o[0]??r.initialPageParam:dIe(r,s);if(l>0&&A==null)break;s=await m(s,A),l++}while(l<p)}return s};t.options.persister?t.fetchFn=()=>t.options.persister?.(c,{client:t.client,queryKey:t.queryKey,meta:t.options.meta,signal:t.signal},n):t.fetchFn=c}}}function dIe(e,{pages:t,pageParams:n}){const r=t.length-1;return t.length>0?e.getNextPageParam(t[r],t,n[r],n):void 0}function NWn(e,{pages:t,pageParams:n}){return t.length>0?e.getPreviousPageParam?.(t[0],t,n[0],n):void 0}var EWn=class extends Aot{#e;#t;#n;#r;constructor(e){super(),this.#e=e.client,this.mutationId=e.mutationId,this.#n=e.mutationCache,this.#t=[],this.state=e.state||FWn(),this.setOptions(e.options),this.scheduleGc()}setOptions(e){this.options=e,this.updateGcTime(this.options.gcTime)}get meta(){return this.options.meta}addObserver(e){this.#t.includes(e)||(this.#t.push(e),this.clearGcTimeout(),this.#n.notify({type:"observerAdded",mutation:this,observer:e}))}removeObserver(e){this.#t=this.#t.filter(t=>t!==e),this.scheduleGc(),this.#n.notify({type:"observerRemoved",mutation:this,observer:e})}optionalRemove(){this.#t.length||(this.state.status==="pending"?this.scheduleGc():this.#n.remove(this))}continue(){return this.#r?.continue()??this.execute(this.state.variables)}async execute(e){const t=()=>{this.#a({type:"continue"})},n={client:this.#e,meta:this.options.meta,mutationKey:this.options.mutationKey};this.#r=pot({fn:()=>this.options.mutationFn?this.options.mutationFn(e,n):Promise.reject(new Error("No mutationFn found")),onFail:(a,o)=>{this.#a({type:"failed",failureCount:a,error:o})},onPause:()=>{this.#a({type:"pause"})},onContinue:t,retry:this.options.retry??0,retryDelay:this.options.retryDelay,networkMode:this.options.networkMode,canRun:()=>this.#n.canRun(this)});const r=this.state.status==="pending",i=!this.#r.canStart();try{if(r)t();else{this.#a({type:"pending",variables:e,isPaused:i}),await this.#n.config.onMutate?.(e,this,n);const o=await this.options.onMutate?.(e,n);o!==this.state.context&&this.#a({type:"pending",context:o,variables:e,isPaused:i})}const a=await this.#r.start();return await this.#n.config.onSuccess?.(a,e,this.state.context,this,n),await this.options.onSuccess?.(a,e,this.state.context,n),await this.#n.config.onSettled?.(a,null,this.state.variables,this.state.context,this,n),await this.options.onSettled?.(a,null,e,this.state.context,n),this.#a({type:"success",data:a}),a}catch(a){try{throw await this.#n.config.onError?.(a,e,this.state.context,this,n),await this.options.onError?.(a,e,this.state.context,n),await this.#n.config.onSettled?.(void 0,a,this.state.variables,this.state.context,this,n),await this.options.onSettled?.(void 0,a,e,this.state.context,n),a}finally{this.#a({type:"error",error:a})}}finally{this.#n.runNext(this)}}#a(e){const t=n=>{switch(e.type){case"failed":return{...n,failureCount:e.failureCount,failureReason:e.error};case"pause":return{...n,isPaused:!0};case"continue":return{...n,isPaused:!1};case"pending":return{...n,context:e.context,data:void 0,failureCount:0,failureReason:null,error:null,isPaused:e.isPaused,status:"pending",variables:e.variables,submittedAt:Date.now()};case"success":return{...n,data:e.data,failureCount:0,failureReason:null,error:null,status:"success",isPaused:!1};case"error":return{...n,data:void 0,error:e.error,failureCount:n.failureCount+1,failureReason:e.error,isPaused:!1,status:"error"}}};this.state=t(this.state),Oc.batch(()=>{this.#t.forEach(n=>{n.onMutationUpdate(e)}),this.#n.notify({mutation:this,type:"updated",action:e})})}};function FWn(){return{context:void 0,data:void 0,error:null,failureCount:0,failureReason:null,isPaused:!1,status:"idle",variables:void 0,submittedAt:0}}var DWn=class extends K8{constructor(e={}){super(),this.config=e,this.#e=new Set,this.#t=new Map,this.#n=0}#e;#t;#n;build(e,t,n){const r=new EWn({client:e,mutationCache:this,mutationId:++this.#n,options:e.defaultMutationOptions(t),state:n});return this.add(r),r}add(e){this.#e.add(e);const t=jI(e);if(typeof t=="string"){const n=this.#t.get(t);n?n.push(e):this.#t.set(t,[e])}this.notify({type:"added",mutation:e})}remove(e){if(this.#e.delete(e)){const t=jI(e);if(typeof t=="string"){const n=this.#t.get(t);if(n)if(n.length>1){const r=n.indexOf(e);r!==-1&&n.splice(r,1)}else n[0]===e&&this.#t.delete(t)}}this.notify({type:"removed",mutation:e})}canRun(e){const t=jI(e);if(typeof t=="string"){const r=this.#t.get(t)?.find(i=>i.state.status==="pending");return!r||r===e}else return!0}runNext(e){const t=jI(e);return typeof t=="string"?this.#t.get(t)?.find(r=>r!==e&&r.state.isPaused)?.continue()??Promise.resolve():Promise.resolve()}clear(){Oc.batch(()=>{this.#e.forEach(e=>{this.notify({type:"removed",mutation:e})}),this.#e.clear(),this.#t.clear()})}getAll(){return Array.from(this.#e)}find(e){const t={exact:!0,...e};return this.getAll().find(n=>oIe(t,n))}findAll(e={}){return this.getAll().filter(t=>oIe(e,t))}notify(e){Oc.batch(()=>{this.listeners.forEach(t=>{t(e)})})}resumePausedMutations(){const e=this.getAll().filter(t=>t.state.isPaused);return Oc.batch(()=>Promise.all(e.map(t=>t.continue().catch(Nh))))}};function jI(e){return e.options.scope?.id}var TWn=class extends K8{constructor(e={}){super(),this.config=e,this.#e=new Map}#e;build(e,t,n){const r=t.queryKey,i=t.queryHash??Uce(r,t);let a=this.get(i);return a||(a=new CWn({client:e,queryKey:r,queryHash:i,options:e.defaultQueryOptions(t),state:n,defaultOptions:e.getQueryDefaults(r)}),this.add(a)),a}add(e){this.#e.has(e.queryHash)||(this.#e.set(e.queryHash,e),this.notify({type:"added",query:e}))}remove(e){const t=this.#e.get(e.queryHash);t&&(e.destroy(),t===e&&this.#e.delete(e.queryHash),this.notify({type:"removed",query:e}))}clear(){Oc.batch(()=>{this.getAll().forEach(e=>{this.remove(e)})})}get(e){return this.#e.get(e)}getAll(){return[...this.#e.values()]}find(e){const t={exact:!0,...e};return this.getAll().find(n=>aIe(t,n))}findAll(e={}){const t=this.getAll();return Object.keys(e).length>0?t.filter(n=>aIe(e,n)):t}notify(e){Oc.batch(()=>{this.listeners.forEach(t=>{t(e)})})}onFocus(){Oc.batch(()=>{this.getAll().forEach(e=>{e.onFocus()})})}onOnline(){Oc.batch(()=>{this.getAll().forEach(e=>{e.onOnline()})})}},OWn=class{#e;#t;#n;#r;#a;#i;#o;#s;constructor(e={}){this.#e=e.queryCache||new TWn,this.#t=e.mutationCache||new DWn,this.#n=e.defaultOptions||{},this.#r=new Map,this.#a=new Map,this.#i=0}mount(){this.#i++,this.#i===1&&(this.#o=hot.subscribe(async e=>{e&&(await this.resumePausedMutations(),this.#e.onFocus())}),this.#s=q$.subscribe(async e=>{e&&(await this.resumePausedMutations(),this.#e.onOnline())}))}unmount(){this.#i--,this.#i===0&&(this.#o?.(),this.#o=void 0,this.#s?.(),this.#s=void 0)}isFetching(e){return this.#e.findAll({...e,fetchStatus:"fetching"}).length}isMutating(e){return this.#t.findAll({...e,status:"pending"}).length}getQueryData(e){const t=this.defaultQueryOptions({queryKey:e});return this.#e.get(t.queryHash)?.state.data}ensureQueryData(e){const t=this.defaultQueryOptions(e),n=this.#e.build(this,t),r=n.state.data;return r===void 0?this.fetchQuery(e):(e.revalidateIfStale&&n.isStaleByTime(hte(t.staleTime,n))&&this.prefetchQuery(t),Promise.resolve(r))}getQueriesData(e){return this.#e.findAll(e).map(({queryKey:t,state:n})=>{const r=n.data;return[t,r]})}setQueryData(e,t,n){const r=this.defaultQueryOptions({queryKey:e}),a=this.#e.get(r.queryHash)?.state.data,o=uWn(t,a);if(o!==void 0)return this.#e.build(this,r).setData(o,{...n,manual:!0})}setQueriesData(e,t,n){return Oc.batch(()=>this.#e.findAll(e).map(({queryKey:r})=>[r,this.setQueryData(r,t,n)]))}getQueryState(e){const t=this.defaultQueryOptions({queryKey:e});return this.#e.get(t.queryHash)?.state}removeQueries(e){const t=this.#e;Oc.batch(()=>{t.findAll(e).forEach(n=>{t.remove(n)})})}resetQueries(e,t){const n=this.#e;return Oc.batch(()=>(n.findAll(e).forEach(r=>{r.reset()}),this.refetchQueries({type:"active",...e},t)))}cancelQueries(e,t={}){const n={revert:!0,...t},r=Oc.batch(()=>this.#e.findAll(e).map(i=>i.cancel(n)));return Promise.all(r).then(Nh).catch(Nh)}invalidateQueries(e,t={}){return Oc.batch(()=>(this.#e.findAll(e).forEach(n=>{n.invalidate()}),e?.refetchType==="none"?Promise.resolve():this.refetchQueries({...e,type:e?.refetchType??e?.type??"active"},t)))}refetchQueries(e,t={}){const n={...t,cancelRefetch:t.cancelRefetch??!0},r=Oc.batch(()=>this.#e.findAll(e).filter(i=>!i.isDisabled()&&!i.isStatic()).map(i=>{let a=i.fetch(void 0,n);return n.throwOnError||(a=a.catch(Nh)),i.state.fetchStatus==="paused"?Promise.resolve():a}));return Promise.all(r).then(Nh)}fetchQuery(e){const t=this.defaultQueryOptions(e);t.retry===void 0&&(t.retry=!1);const n=this.#e.build(this,t);return n.isStaleByTime(hte(t.staleTime,n))?n.fetch(t):Promise.resolve(n.state.data)}prefetchQuery(e){return this.fetchQuery(e).then(Nh).catch(Nh)}fetchInfiniteQuery(e){return e.behavior=uIe(e.pages),this.fetchQuery(e)}prefetchInfiniteQuery(e){return this.fetchInfiniteQuery(e).then(Nh).catch(Nh)}ensureInfiniteQueryData(e){return e.behavior=uIe(e.pages),this.ensureQueryData(e)}resumePausedMutations(){return q$.isOnline()?this.#t.resumePausedMutations():Promise.resolve()}getQueryCache(){return this.#e}getMutationCache(){return this.#t}getDefaultOptions(){return this.#n}setDefaultOptions(e){this.#n=e}setQueryDefaults(e,t){this.#r.set(QF(e),{queryKey:e,defaultOptions:t})}getQueryDefaults(e){const t=[...this.#r.values()],n={};return t.forEach(r=>{qF(e,r.queryKey)&&Object.assign(n,r.defaultOptions)}),n}setMutationDefaults(e,t){this.#a.set(QF(e),{mutationKey:e,defaultOptions:t})}getMutationDefaults(e){const t=[...this.#a.values()],n={};return t.forEach(r=>{qF(e,r.mutationKey)&&Object.assign(n,r.defaultOptions)}),n}defaultQueryOptions(e){if(e._defaulted)return e;const t={...this.#n.queries,...this.getQueryDefaults(e.queryKey),...e,_defaulted:!0};return t.queryHash||(t.queryHash=Uce(t.queryKey,t)),t.refetchOnReconnect===void 0&&(t.refetchOnReconnect=t.networkMode!=="always"),t.throwOnError===void 0&&(t.throwOnError=!!t.suspense),!t.networkMode&&t.persister&&(t.networkMode="offlineFirst"),t.queryFn===zce&&(t.enabled=!1),t}defaultMutationOptions(e){return e?._defaulted?e:{...this.#n.mutations,...e?.mutationKey&&this.getMutationDefaults(e.mutationKey),...e,_defaulted:!0}}clear(){this.#e.clear(),this.#t.clear()}},BWn=w.createContext(void 0),IWn=({client:e,children:t})=>(w.useEffect(()=>(e.mount(),()=>{e.unmount()}),[e]),d.jsx(BWn.Provider,{value:e,children:t})),jWn=(e,t,n,r,i,a,o,s)=>{let l=document.documentElement,c=["light","dark"];function u(m){(Array.isArray(e)?e:[e]).forEach(p=>{let A=p==="class",v=A&&a?i.map(y=>a[y]||y):i;A?(l.classList.remove(...v),l.classList.add(a&&a[m]?a[m]:m)):l.setAttribute(p,m)}),f(m)}function f(m){s&&c.includes(m)&&(l.style.colorScheme=m)}function h(){return window.matchMedia("(prefers-color-scheme: dark)").matches?"dark":"light"}if(r)u(r);else try{let m=localStorage.getItem(t)||n,p=o&&m==="system"?h():m;u(p)}catch{}},PWn=w.createContext(void 0),MWn={setTheme:e=>{},themes:[]},RWn=()=>{var e;return(e=w.useContext(PWn))!=null?e:MWn};w.memo(({forcedTheme:e,storageKey:t,attribute:n,enableSystem:r,enableColorScheme:i,defaultTheme:a,value:o,themes:s,nonce:l,scriptProps:c})=>{let u=JSON.stringify([n,t,a,e,s,o,r,i]).slice(1,-1);return w.createElement("script",{...c,suppressHydrationWarning:!0,nonce:typeof window>"u"?l:"",dangerouslySetInnerHTML:{__html:`(${jWn.toString()})(${u})`}})});const $Wn=({...e})=>{const{theme:t="system"}=RWn();return d.jsx(BOt,{theme:t,className:"toaster group",toastOptions:{classNames:{toast:"group toast group-[.toaster]:bg-white group-[.toaster]:text-gray-950 group-[.toaster]:border-gray-200 group-[.toaster]:shadow-lg dark:group-[.toaster]:bg-gray-950 dark:group-[.toaster]:text-gray-50 dark:group-[.toaster]:border-gray-800",description:"group-[.toast]:text-gray-500 dark:group-[.toast]:text-gray-400",actionButton:"group-[.toast]:bg-gray-900 group-[.toast]:text-gray-50 font-medium dark:group-[.toast]:bg-gray-50 dark:group-[.toast]:text-gray-900",cancelButton:"group-[.toast]:bg-gray-100 group-[.toast]:text-gray-500 font-medium dark:group-[.toast]:bg-gray-800 dark:group-[.toast]:text-gray-400"}},...e})};var lY=(e,t)=>Xj(e.kind,e,{...e.context,authAttempt:t});function LWn(e){return({client:t,forward:n})=>{var r=new Set,i=gY(),a=gY(),o=new Map;function s(){c=void 0;var f=o;o=new Map,f.forEach(i.next)}function l(f){c=void 0;var h=o;o=new Map,h.forEach((m=>{a.next(ZIe(m,f))}))}var c,u=null;return f=>{function h(){c=Promise.resolve().then((()=>e({mutate(y,x,k){var S=t.createRequestOperation("mutation",fk(y,x),k);return Nte(Z$(1)(bu((C=>C.operation.key===S.key&&S.context._instance===C.operation.context._instance))(AY((()=>{var C=p(S);r.add(C.context._instance),i.next(C)}))(v))))},appendHeaders(y,x){var k=typeof y.context.fetchOptions=="function"?y.context.fetchOptions():y.context.fetchOptions||{};return Xj(y.kind,y,{...y.context,fetchOptions:{...k,headers:{...k.headers,...x}}})}}))).then((y=>{y&&(u=y),s()})).catch((y=>{l(y)}))}h();function m(y){o.set(y.key,lY(y,!0)),u&&!c&&(c=u.refreshAuth().then(s).catch(l))}function p(y){return u?u.addAuthToOperation(y):y}var A=bu(Boolean)(qIe((y=>y.kind==="teardown"?(o.delete(y.key),y):y.context._instance&&r.has(y.context._instance)?y:y.context.authAttempt?p(y):c||!u?(c||h(),o.has(y.key)||o.set(y.key,lY(y,!1)),null):(function(k){return!k.context.authAttempt&&u&&u.willAuthError&&u.willAuthError(k)})(y)?(m(y),null):p(lY(y,!1))))(nE([i.source,f]))),v=n(A);return nE([a.source,bu((y=>!r.has(y.operation.context._instance)&&y.error&&(function(k){return u&&u.didAuthError&&u.didAuthError(k.error,k.operation)})(y)&&!y.operation.context.authAttempt?(m(y.operation),!1):(r.has(y.operation.context._instance)&&r.delete(y.operation.context._instance),!0)))(v)])}}}function UWn({children:e}){const{authService:t}=w.useContext(ND),n=VS(),r=t.isLoggedIn(),i=w.useMemo(()=>t.authToken(),[t]),a=w.useMemo(()=>{if(!r)return null;let o;return o="https://accounter.onrender.com/graphql",Eut({url:o,exchanges:[Cut({onResult(s){if(s.error?.networkError){console.error("Network Error:",s.error.networkError),n("/network-error");return}(s?.error?.graphQLErrors.some(c=>c.extensions?.code==="FORBIDDEN")||s?.error?.response?.status===401)&&n("/login",{state:{message:"You are not authorized to access this page"}})}}),LWn(async s=>({addAuthToOperation(l){return i?s.appendHeaders(l,{Authorization:i}):l},didAuthError(l,c){return l?.response?.status===401||l?.graphQLErrors?.some(u=>u.extensions?.code==="FORBIDDEN")},async refreshAuth(){t.logout()}})),kut]})},[r,n,i,t]);return w.useEffect(()=>{a||n("/login")},[a,n]),a?d.jsx(Dut,{value:a,children:e}):d.jsx(oct,{to:"/login",state:{prevPath:window.location.pathname}})}const zWn=new OWn;function HWn({children:e}){const t=Zoe({palette:{primary:{main:"#556cd6"},secondary:{main:"#19857b"},error:{main:ob.A400}}});return d.jsx(Oje,{withGlobalStyles:!0,theme:{fontFamily:"Roboto, sans-serif",fontSizes:{md:"14"}},children:d.jsxs(T0n,{theme:t,children:[d.jsx(O4n,{}),d.jsx($Wn,{}),d.jsx(nUt,{children:d.jsx(UWn,{children:d.jsx(IWn,{client:zWn,children:d.jsx(rUt,{children:e})})})})]})})}const VWn=document.getElementById("root"),QWn=Bst.createRoot(VWn),qWn=Tct(lct(d.jsx(Lr,{path:"*",element:d.jsx(HWn,{children:d.jsx(oWn,{})}),errorElement:d.jsx("p",{children:"error"})})));QWn.render(d.jsx(w.StrictMode,{children:d.jsx(Hct,{router:qWn})}));export{Zi as _,yu as c,Ni as g,Xn as p};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{_ as Va,c as La,p as ar,g as al}from"./index-C_5RLuO1.js";function Xl(n,e){if(Va(n)!="object"||!n)return n;var r=n[Symbol.toPrimitive];if(r!==void 0){var t=r.call(n,e);if(Va(t)!="object")return t;throw new TypeError("@@toPrimitive must return a primitive value.")}return(e==="string"?String:Number)(n)}function Kl(n){var e=Xl(n,"string");return Va(e)=="symbol"?e:e+""}function Ua(n,e,r){return(e=Kl(e))in n?Object.defineProperty(n,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):n[e]=r,n}var cn={},vn={},vr,gn;function Q(){if(gn)return vr;gn=1;var n=function(e){return e&&e.Math===Math&&e};return vr=n(typeof globalThis=="object"&&globalThis)||n(typeof window=="object"&&window)||n(typeof self=="object"&&self)||n(typeof La=="object"&&La)||n(typeof vr=="object"&&vr)||(function(){return this})()||Function("return this")(),vr}var Zr={},Jr,dn;function Z(){return dn||(dn=1,Jr=function(n){try{return!!n()}catch{return!0}}),Jr}var et,pn;function we(){if(pn)return et;pn=1;var n=Z();return et=!n(function(){return Object.defineProperty({},1,{get:function(){return 7}})[1]!==7}),et}var rt,yn;function Ir(){if(yn)return rt;yn=1;var n=Z();return rt=!n(function(){var e=(function(){}).bind();return typeof e!="function"||e.hasOwnProperty("prototype")}),rt}var tt,mn;function ne(){if(mn)return tt;mn=1;var n=Ir(),e=Function.prototype.call;return tt=n?e.bind(e):function(){return e.apply(e,arguments)},tt}var it={},bn;function Ql(){if(bn)return it;bn=1;var n={}.propertyIsEnumerable,e=Object.getOwnPropertyDescriptor,r=e&&!n.call({1:2},1);return it.f=r?function(i){var a=e(this,i);return!!a&&a.enumerable}:n,it}var at,xn;function Ga(){return xn||(xn=1,at=function(n,e){return{enumerable:!(n&1),configurable:!(n&2),writable:!(n&4),value:e}}),at}var nt,On;function J(){if(On)return nt;On=1;var n=Ir(),e=Function.prototype,r=e.call,t=n&&e.bind.bind(r,r);return nt=n?t:function(i){return function(){return r.apply(i,arguments)}},nt}var st,Tn;function er(){if(Tn)return st;Tn=1;var n=J(),e=n({}.toString),r=n("".slice);return st=function(t){return r(e(t),8,-1)},st}var ot,Sn;function nl(){if(Sn)return ot;Sn=1;var n=J(),e=Z(),r=er(),t=Object,i=n("".split);return ot=e(function(){return!t("z").propertyIsEnumerable(0)})?function(a){return r(a)==="String"?i(a,""):t(a)}:t,ot}var ut,En;function Nr(){return En||(En=1,ut=function(n){return n==null}),ut}var lt,Rn;function Pe(){if(Rn)return lt;Rn=1;var n=Nr(),e=TypeError;return lt=function(r){if(n(r))throw new e("Can't call method on "+r);return r},lt}var ht,Cn;function pr(){if(Cn)return ht;Cn=1;var n=nl(),e=Pe();return ht=function(r){return n(e(r))},ht}var ft,wn;function re(){if(wn)return ft;wn=1;var n=typeof document=="object"&&document.all;return ft=typeof n>"u"&&n!==void 0?function(e){return typeof e=="function"||e===n}:function(e){return typeof e=="function"},ft}var ct,Pn;function pe(){if(Pn)return ct;Pn=1;var n=re();return ct=function(e){return typeof e=="object"?e!==null:n(e)},ct}var vt,An;function rr(){if(An)return vt;An=1;var n=Q(),e=re(),r=function(t){return e(t)?t:void 0};return vt=function(t,i){return arguments.length<2?r(n[t]):n[t]&&n[t][i]},vt}var gt,In;function _r(){if(In)return gt;In=1;var n=J();return gt=n({}.isPrototypeOf),gt}var dt,Nn;function yr(){if(Nn)return dt;Nn=1;var n=Q(),e=n.navigator,r=e&&e.userAgent;return dt=r?String(r):"",dt}var pt,_n;function $a(){if(_n)return pt;_n=1;var n=Q(),e=yr(),r=n.process,t=n.Deno,i=r&&r.versions||t&&t.version,a=i&&i.v8,s,o;return a&&(s=a.split("."),o=s[0]>0&&s[0]<4?1:+(s[0]+s[1])),!o&&e&&(s=e.match(/Edge\/(\d+)/),(!s||s[1]>=74)&&(s=e.match(/Chrome\/(\d+)/),s&&(o=+s[1]))),pt=o,pt}var yt,Mn;function sl(){if(Mn)return yt;Mn=1;var n=$a(),e=Z(),r=Q(),t=r.String;return yt=!!Object.getOwnPropertySymbols&&!e(function(){var i=Symbol("symbol detection");return!t(i)||!(Object(i)instanceof Symbol)||!Symbol.sham&&n&&n<41}),yt}var mt,qn;function ol(){if(qn)return mt;qn=1;var n=sl();return mt=n&&!Symbol.sham&&typeof Symbol.iterator=="symbol",mt}var bt,Dn;function ul(){if(Dn)return bt;Dn=1;var n=rr(),e=re(),r=_r(),t=ol(),i=Object;return bt=t?function(a){return typeof a=="symbol"}:function(a){var s=n("Symbol");return e(s)&&r(s.prototype,i(a))},bt}var xt,Vn;function Mr(){if(Vn)return xt;Vn=1;var n=String;return xt=function(e){try{return n(e)}catch{return"Object"}},xt}var Ot,Ln;function Fe(){if(Ln)return Ot;Ln=1;var n=re(),e=Mr(),r=TypeError;return Ot=function(t){if(n(t))return t;throw new r(e(t)+" is not a function")},Ot}var Tt,kn;function sr(){if(kn)return Tt;kn=1;var n=Fe(),e=Nr();return Tt=function(r,t){var i=r[t];return e(i)?void 0:n(i)},Tt}var St,jn;function Zl(){if(jn)return St;jn=1;var n=ne(),e=re(),r=pe(),t=TypeError;return St=function(i,a){var s,o;if(a==="string"&&e(s=i.toString)&&!r(o=n(s,i))||e(s=i.valueOf)&&!r(o=n(s,i))||a!=="string"&&e(s=i.toString)&&!r(o=n(s,i)))return o;throw new t("Can't convert object to primitive value")},St}var Et={exports:{}},Rt,Bn;function Me(){return Bn||(Bn=1,Rt=!1),Rt}var Ct,Fn;function za(){if(Fn)return Ct;Fn=1;var n=Q(),e=Object.defineProperty;return Ct=function(r,t){try{e(n,r,{value:t,configurable:!0,writable:!0})}catch{n[r]=t}return t},Ct}var Un;function Ha(){if(Un)return Et.exports;Un=1;var n=Me(),e=Q(),r=za(),t="__core-js_shared__",i=Et.exports=e[t]||r(t,{});return(i.versions||(i.versions=[])).push({version:"3.45.1",mode:n?"pure":"global",copyright:"© 2014-2025 Denis Pushkarev (zloirock.ru)",license:"https://github.com/zloirock/core-js/blob/v3.45.1/LICENSE",source:"https://github.com/zloirock/core-js"}),Et.exports}var wt,Gn;function Wa(){if(Gn)return wt;Gn=1;var n=Ha();return wt=function(e,r){return n[e]||(n[e]=r||{})},wt}var Pt,$n;function qr(){if($n)return Pt;$n=1;var n=Pe(),e=Object;return Pt=function(r){return e(n(r))},Pt}var At,zn;function Ae(){if(zn)return At;zn=1;var n=J(),e=qr(),r=n({}.hasOwnProperty);return At=Object.hasOwn||function(i,a){return r(e(i),a)},At}var It,Hn;function ll(){if(Hn)return It;Hn=1;var n=J(),e=0,r=Math.random(),t=n(1.1.toString);return It=function(i){return"Symbol("+(i===void 0?"":i)+")_"+t(++e+r,36)},It}var Nt,Wn;function ae(){if(Wn)return Nt;Wn=1;var n=Q(),e=Wa(),r=Ae(),t=ll(),i=sl(),a=ol(),s=n.Symbol,o=e("wks"),u=a?s.for||s:s&&s.withoutSetter||t;return Nt=function(l){return r(o,l)||(o[l]=i&&r(s,l)?s[l]:u("Symbol."+l)),o[l]},Nt}var _t,Yn;function Jl(){if(Yn)return _t;Yn=1;var n=ne(),e=pe(),r=ul(),t=sr(),i=Zl(),a=ae(),s=TypeError,o=a("toPrimitive");return _t=function(u,l){if(!e(u)||r(u))return u;var h=t(u,o),c;if(h){if(l===void 0&&(l="default"),c=n(h,u,l),!e(c)||r(c))return c;throw new s("Can't convert object to primitive value")}return l===void 0&&(l="number"),i(u,l)},_t}var Mt,Xn;function hl(){if(Xn)return Mt;Xn=1;var n=Jl(),e=ul();return Mt=function(r){var t=n(r,"string");return e(t)?t:t+""},Mt}var qt,Kn;function Dr(){if(Kn)return qt;Kn=1;var n=Q(),e=pe(),r=n.document,t=e(r)&&e(r.createElement);return qt=function(i){return t?r.createElement(i):{}},qt}var Dt,Qn;function fl(){if(Qn)return Dt;Qn=1;var n=we(),e=Z(),r=Dr();return Dt=!n&&!e(function(){return Object.defineProperty(r("div"),"a",{get:function(){return 7}}).a!==7}),Dt}var Zn;function Vr(){if(Zn)return Zr;Zn=1;var n=we(),e=ne(),r=Ql(),t=Ga(),i=pr(),a=hl(),s=Ae(),o=fl(),u=Object.getOwnPropertyDescriptor;return Zr.f=n?u:function(h,c){if(h=i(h),c=a(c),o)try{return u(h,c)}catch{}if(s(h,c))return t(!e(r.f,h,c),h[c])},Zr}var Vt={},Lt,Jn;function cl(){if(Jn)return Lt;Jn=1;var n=we(),e=Z();return Lt=n&&e(function(){return Object.defineProperty(function(){},"prototype",{value:42,writable:!1}).prototype!==42}),Lt}var kt,es;function le(){if(es)return kt;es=1;var n=pe(),e=String,r=TypeError;return kt=function(t){if(n(t))return t;throw new r(e(t)+" is not an object")},kt}var rs;function Ye(){if(rs)return Vt;rs=1;var n=we(),e=fl(),r=cl(),t=le(),i=hl(),a=TypeError,s=Object.defineProperty,o=Object.getOwnPropertyDescriptor,u="enumerable",l="configurable",h="writable";return Vt.f=n?r?function(v,f,g){if(t(v),f=i(f),t(g),typeof v=="function"&&f==="prototype"&&"value"in g&&h in g&&!g[h]){var d=o(v,f);d&&d[h]&&(v[f]=g.value,g={configurable:l in g?g[l]:d[l],enumerable:u in g?g[u]:d[u],writable:!1})}return s(v,f,g)}:s:function(v,f,g){if(t(v),f=i(f),t(g),e)try{return s(v,f,g)}catch{}if("get"in g||"set"in g)throw new a("Accessors not supported");return"value"in g&&(v[f]=g.value),v},Vt}var jt,ts;function mr(){if(ts)return jt;ts=1;var n=we(),e=Ye(),r=Ga();return jt=n?function(t,i,a){return e.f(t,i,r(1,a))}:function(t,i,a){return t[i]=a,t},jt}var Bt={exports:{}},Ft,is;function Lr(){if(is)return Ft;is=1;var n=we(),e=Ae(),r=Function.prototype,t=n&&Object.getOwnPropertyDescriptor,i=e(r,"name"),a=i&&(function(){}).name==="something",s=i&&(!n||n&&t(r,"name").configurable);return Ft={EXISTS:i,PROPER:a,CONFIGURABLE:s},Ft}var Ut,as;function Ya(){if(as)return Ut;as=1;var n=J(),e=re(),r=Ha(),t=n(Function.toString);return e(r.inspectSource)||(r.inspectSource=function(i){return t(i)}),Ut=r.inspectSource,Ut}var Gt,ns;function eh(){if(ns)return Gt;ns=1;var n=Q(),e=re(),r=n.WeakMap;return Gt=e(r)&&/native code/.test(String(r)),Gt}var $t,ss;function Xa(){if(ss)return $t;ss=1;var n=Wa(),e=ll(),r=n("keys");return $t=function(t){return r[t]||(r[t]=e(t))},$t}var zt,os;function Ka(){return os||(os=1,zt={}),zt}var Ht,us;function kr(){if(us)return Ht;us=1;var n=eh(),e=Q(),r=pe(),t=mr(),i=Ae(),a=Ha(),s=Xa(),o=Ka(),u="Object already initialized",l=e.TypeError,h=e.WeakMap,c,v,f,g=function(m){return f(m)?v(m):c(m,{})},d=function(m){return function(b){var x;if(!r(b)||(x=v(b)).type!==m)throw new l("Incompatible receiver, "+m+" required");return x}};if(n||a.state){var p=a.state||(a.state=new h);p.get=p.get,p.has=p.has,p.set=p.set,c=function(m,b){if(p.has(m))throw new l(u);return b.facade=m,p.set(m,b),b},v=function(m){return p.get(m)||{}},f=function(m){return p.has(m)}}else{var y=s("state");o[y]=!0,c=function(m,b){if(i(m,y))throw new l(u);return b.facade=m,t(m,y,b),b},v=function(m){return i(m,y)?m[y]:{}},f=function(m){return i(m,y)}}return Ht={set:c,get:v,has:f,enforce:g,getterFor:d},Ht}var ls;function vl(){if(ls)return Bt.exports;ls=1;var n=J(),e=Z(),r=re(),t=Ae(),i=we(),a=Lr().CONFIGURABLE,s=Ya(),o=kr(),u=o.enforce,l=o.get,h=String,c=Object.defineProperty,v=n("".slice),f=n("".replace),g=n([].join),d=i&&!e(function(){return c(function(){},"length",{value:8}).length!==8}),p=String(String).split("String"),y=Bt.exports=function(m,b,x){v(h(b),0,7)==="Symbol("&&(b="["+f(h(b),/^Symbol\(([^)]*)\).*$/,"$1")+"]"),x&&x.getter&&(b="get "+b),x&&x.setter&&(b="set "+b),(!t(m,"name")||a&&m.name!==b)&&(i?c(m,"name",{value:b,configurable:!0}):m.name=b),d&&x&&t(x,"arity")&&m.length!==x.arity&&c(m,"length",{value:x.arity});try{x&&t(x,"constructor")&&x.constructor?i&&c(m,"prototype",{writable:!1}):m.prototype&&(m.prototype=void 0)}catch{}var S=u(m);return t(S,"source")||(S.source=g(p,typeof b=="string"?b:"")),m};return Function.prototype.toString=y(function(){return r(this)&&l(this).source||s(this)},"toString"),Bt.exports}var Wt,hs;function tr(){if(hs)return Wt;hs=1;var n=re(),e=Ye(),r=vl(),t=za();return Wt=function(i,a,s,o){o||(o={});var u=o.enumerable,l=o.name!==void 0?o.name:a;if(n(s)&&r(s,l,o),o.global)u?i[a]=s:t(a,s);else{try{o.unsafe?i[a]&&(u=!0):delete i[a]}catch{}u?i[a]=s:e.f(i,a,{value:s,enumerable:!1,configurable:!o.nonConfigurable,writable:!o.nonWritable})}return i},Wt}var Yt={},Xt,fs;function rh(){if(fs)return Xt;fs=1;var n=Math.ceil,e=Math.floor;return Xt=Math.trunc||function(t){var i=+t;return(i>0?e:n)(i)},Xt}var Kt,cs;function jr(){if(cs)return Kt;cs=1;var n=rh();return Kt=function(e){var r=+e;return r!==r||r===0?0:n(r)},Kt}var Qt,vs;function th(){if(vs)return Qt;vs=1;var n=jr(),e=Math.max,r=Math.min;return Qt=function(t,i){var a=n(t);return a<0?e(a+i,0):r(a,i)},Qt}var Zt,gs;function or(){if(gs)return Zt;gs=1;var n=jr(),e=Math.min;return Zt=function(r){var t=n(r);return t>0?e(t,9007199254740991):0},Zt}var Jt,ds;function Qa(){if(ds)return Jt;ds=1;var n=or();return Jt=function(e){return n(e.length)},Jt}var ei,ps;function gl(){if(ps)return ei;ps=1;var n=pr(),e=th(),r=Qa(),t=function(i){return function(a,s,o){var u=n(a),l=r(u);if(l===0)return!i&&-1;var h=e(o,l),c;if(i&&s!==s){for(;l>h;)if(c=u[h++],c!==c)return!0}else for(;l>h;h++)if((i||h in u)&&u[h]===s)return i||h||0;return!i&&-1}};return ei={includes:t(!0),indexOf:t(!1)},ei}var ri,ys;function dl(){if(ys)return ri;ys=1;var n=J(),e=Ae(),r=pr(),t=gl().indexOf,i=Ka(),a=n([].push);return ri=function(s,o){var u=r(s),l=0,h=[],c;for(c in u)!e(i,c)&&e(u,c)&&a(h,c);for(;o.length>l;)e(u,c=o[l++])&&(~t(h,c)||a(h,c));return h},ri}var ti,ms;function Za(){return ms||(ms=1,ti=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"]),ti}var bs;function ih(){if(bs)return Yt;bs=1;var n=dl(),e=Za(),r=e.concat("length","prototype");return Yt.f=Object.getOwnPropertyNames||function(i){return n(i,r)},Yt}var ii={},xs;function ah(){return xs||(xs=1,ii.f=Object.getOwnPropertySymbols),ii}var ai,Os;function nh(){if(Os)return ai;Os=1;var n=rr(),e=J(),r=ih(),t=ah(),i=le(),a=e([].concat);return ai=n("Reflect","ownKeys")||function(o){var u=r.f(i(o)),l=t.f;return l?a(u,l(o)):u},ai}var ni,Ts;function sh(){if(Ts)return ni;Ts=1;var n=Ae(),e=nh(),r=Vr(),t=Ye();return ni=function(i,a,s){for(var o=e(a),u=t.f,l=r.f,h=0;h<o.length;h++){var c=o[h];!n(i,c)&&!(s&&n(s,c))&&u(i,c,l(a,c))}},ni}var si,Ss;function pl(){if(Ss)return si;Ss=1;var n=Z(),e=re(),r=/#|\.prototype\./,t=function(u,l){var h=a[i(u)];return h===o?!0:h===s?!1:e(l)?n(l):!!l},i=t.normalize=function(u){return String(u).replace(r,".").toLowerCase()},a=t.data={},s=t.NATIVE="N",o=t.POLYFILL="P";return si=t,si}var oi,Es;function he(){if(Es)return oi;Es=1;var n=Q(),e=Vr().f,r=mr(),t=tr(),i=za(),a=sh(),s=pl();return oi=function(o,u){var l=o.target,h=o.global,c=o.stat,v,f,g,d,p,y;if(h?f=n:c?f=n[l]||i(l,{}):f=n[l]&&n[l].prototype,f)for(g in u){if(p=u[g],o.dontCallGetSet?(y=e(f,g),d=y&&y.value):d=f[g],v=s(h?g:l+(c?".":"#")+g,o.forced),!v&&d!==void 0){if(typeof p==typeof d)continue;a(p,d)}(o.sham||d&&d.sham)&&r(p,"sham",!0),t(f,g,p,o)}},oi}var ui,Rs;function yl(){if(Rs)return ui;Rs=1;var n=Q(),e=yr(),r=er(),t=function(i){return e.slice(0,i.length)===i};return ui=(function(){return t("Bun/")?"BUN":t("Cloudflare-Workers")?"CLOUDFLARE":t("Deno/")?"DENO":t("Node.js/")?"NODE":n.Bun&&typeof Bun.version=="string"?"BUN":n.Deno&&typeof Deno.version=="object"?"DENO":r(n.process)==="process"?"NODE":n.window&&n.document?"BROWSER":"REST"})(),ui}var li,Cs;function Br(){if(Cs)return li;Cs=1;var n=yl();return li=n==="NODE",li}var hi,ws;function oh(){if(ws)return hi;ws=1;var n=Q();return hi=n,hi}var fi,Ps;function uh(){if(Ps)return fi;Ps=1;var n=J(),e=Fe();return fi=function(r,t,i){try{return n(e(Object.getOwnPropertyDescriptor(r,t)[i]))}catch{}},fi}var ci,As;function lh(){if(As)return ci;As=1;var n=pe();return ci=function(e){return n(e)||e===null},ci}var vi,Is;function hh(){if(Is)return vi;Is=1;var n=lh(),e=String,r=TypeError;return vi=function(t){if(n(t))return t;throw new r("Can't set "+e(t)+" as a prototype")},vi}var gi,Ns;function ml(){if(Ns)return gi;Ns=1;var n=uh(),e=pe(),r=Pe(),t=hh();return gi=Object.setPrototypeOf||("__proto__"in{}?(function(){var i=!1,a={},s;try{s=n(Object.prototype,"__proto__","set"),s(a,[]),i=a instanceof Array}catch{}return function(u,l){return r(u),t(l),e(u)&&(i?s(u,l):u.__proto__=l),u}})():void 0),gi}var di,_s;function Fr(){if(_s)return di;_s=1;var n=Ye().f,e=Ae(),r=ae(),t=r("toStringTag");return di=function(i,a,s){i&&!s&&(i=i.prototype),i&&!e(i,t)&&n(i,t,{configurable:!0,value:a})},di}var pi,Ms;function fh(){if(Ms)return pi;Ms=1;var n=vl(),e=Ye();return pi=function(r,t,i){return i.get&&n(i.get,t,{getter:!0}),i.set&&n(i.set,t,{setter:!0}),e.f(r,t,i)},pi}var yi,qs;function ch(){if(qs)return yi;qs=1;var n=rr(),e=fh(),r=ae(),t=we(),i=r("species");return yi=function(a){var s=n(a);t&&s&&!s[i]&&e(s,i,{configurable:!0,get:function(){return this}})},yi}var mi,Ds;function vh(){if(Ds)return mi;Ds=1;var n=_r(),e=TypeError;return mi=function(r,t){if(n(t,r))return r;throw new e("Incorrect invocation")},mi}var bi,Vs;function gh(){if(Vs)return bi;Vs=1;var n=ae(),e=n("toStringTag"),r={};return r[e]="z",bi=String(r)==="[object z]",bi}var xi,Ls;function Ja(){if(Ls)return xi;Ls=1;var n=gh(),e=re(),r=er(),t=ae(),i=t("toStringTag"),a=Object,s=r((function(){return arguments})())==="Arguments",o=function(u,l){try{return u[l]}catch{}};return xi=n?r:function(u){var l,h,c;return u===void 0?"Undefined":u===null?"Null":typeof(h=o(l=a(u),i))=="string"?h:s?r(l):(c=r(l))==="Object"&&e(l.callee)?"Arguments":c},xi}var Oi,ks;function dh(){if(ks)return Oi;ks=1;var n=J(),e=Z(),r=re(),t=Ja(),i=rr(),a=Ya(),s=function(){},o=i("Reflect","construct"),u=/^\s*(?:class|function)\b/,l=n(u.exec),h=!u.test(s),c=function(g){if(!r(g))return!1;try{return o(s,[],g),!0}catch{return!1}},v=function(g){if(!r(g))return!1;switch(t(g)){case"AsyncFunction":case"GeneratorFunction":case"AsyncGeneratorFunction":return!1}try{return h||!!l(u,a(g))}catch{return!0}};return v.sham=!0,Oi=!o||e(function(){var f;return c(c.call)||!c(Object)||!c(function(){f=!0})||f})?v:c,Oi}var Ti,js;function ph(){if(js)return Ti;js=1;var n=dh(),e=Mr(),r=TypeError;return Ti=function(t){if(n(t))return t;throw new r(e(t)+" is not a constructor")},Ti}var Si,Bs;function bl(){if(Bs)return Si;Bs=1;var n=le(),e=ph(),r=Nr(),t=ae(),i=t("species");return Si=function(a,s){var o=n(a).constructor,u;return o===void 0||r(u=n(o)[i])?s:e(u)},Si}var Ei,Fs;function xl(){if(Fs)return Ei;Fs=1;var n=Ir(),e=Function.prototype,r=e.apply,t=e.call;return Ei=typeof Reflect=="object"&&Reflect.apply||(n?t.bind(r):function(){return t.apply(r,arguments)}),Ei}var Ri,Us;function Ur(){if(Us)return Ri;Us=1;var n=er(),e=J();return Ri=function(r){if(n(r)==="Function")return e(r)},Ri}var Ci,Gs;function en(){if(Gs)return Ci;Gs=1;var n=Ur(),e=Fe(),r=Ir(),t=n(n.bind);return Ci=function(i,a){return e(i),a===void 0?i:r?t(i,a):function(){return i.apply(a,arguments)}},Ci}var wi,$s;function Ol(){if($s)return wi;$s=1;var n=rr();return wi=n("document","documentElement"),wi}var Pi,zs;function yh(){if(zs)return Pi;zs=1;var n=J();return Pi=n([].slice),Pi}var Ai,Hs;function mh(){if(Hs)return Ai;Hs=1;var n=TypeError;return Ai=function(e,r){if(e<r)throw new n("Not enough arguments");return e},Ai}var Ii,Ws;function Tl(){if(Ws)return Ii;Ws=1;var n=yr();return Ii=/(?:ipad|iphone|ipod).*applewebkit/i.test(n),Ii}var Ni,Ys;function Sl(){if(Ys)return Ni;Ys=1;var n=Q(),e=xl(),r=en(),t=re(),i=Ae(),a=Z(),s=Ol(),o=yh(),u=Dr(),l=mh(),h=Tl(),c=Br(),v=n.setImmediate,f=n.clearImmediate,g=n.process,d=n.Dispatch,p=n.Function,y=n.MessageChannel,m=n.String,b=0,x={},S="onreadystatechange",E,O,P,_;a(function(){E=n.location});var A=function(C){if(i(x,C)){var w=x[C];delete x[C],w()}},q=function(C){return function(){A(C)}},I=function(C){A(C.data)},j=function(C){n.postMessage(m(C),E.protocol+"//"+E.host)};return(!v||!f)&&(v=function(w){l(arguments.length,1);var U=t(w)?w:p(w),L=o(arguments,1);return x[++b]=function(){e(U,void 0,L)},O(b),b},f=function(w){delete x[w]},c?O=function(C){g.nextTick(q(C))}:d&&d.now?O=function(C){d.now(q(C))}:y&&!h?(P=new y,_=P.port2,P.port1.onmessage=I,O=r(_.postMessage,_)):n.addEventListener&&t(n.postMessage)&&!n.importScripts&&E&&E.protocol!=="file:"&&!a(j)?(O=j,n.addEventListener("message",I,!1)):S in u("script")?O=function(C){s.appendChild(u("script"))[S]=function(){s.removeChild(this),A(C)}}:O=function(C){setTimeout(q(C),0)}),Ni={set:v,clear:f},Ni}var _i,Xs;function bh(){if(Xs)return _i;Xs=1;var n=Q(),e=we(),r=Object.getOwnPropertyDescriptor;return _i=function(t){if(!e)return n[t];var i=r(n,t);return i&&i.value},_i}var Mi,Ks;function El(){if(Ks)return Mi;Ks=1;var n=function(){this.head=null,this.tail=null};return n.prototype={add:function(e){var r={item:e,next:null},t=this.tail;t?t.next=r:this.head=r,this.tail=r},get:function(){var e=this.head;if(e){var r=this.head=e.next;return r===null&&(this.tail=null),e.item}}},Mi=n,Mi}var qi,Qs;function xh(){if(Qs)return qi;Qs=1;var n=yr();return qi=/ipad|iphone|ipod/i.test(n)&&typeof Pebble<"u",qi}var Di,Zs;function Oh(){if(Zs)return Di;Zs=1;var n=yr();return Di=/web0s(?!.*chrome)/i.test(n),Di}var Vi,Js;function Th(){if(Js)return Vi;Js=1;var n=Q(),e=bh(),r=en(),t=Sl().set,i=El(),a=Tl(),s=xh(),o=Oh(),u=Br(),l=n.MutationObserver||n.WebKitMutationObserver,h=n.document,c=n.process,v=n.Promise,f=e("queueMicrotask"),g,d,p,y,m;if(!f){var b=new i,x=function(){var S,E;for(u&&(S=c.domain)&&S.exit();E=b.get();)try{E()}catch(O){throw b.head&&g(),O}S&&S.enter()};!a&&!u&&!o&&l&&h?(d=!0,p=h.createTextNode(""),new l(x).observe(p,{characterData:!0}),g=function(){p.data=d=!d}):!s&&v&&v.resolve?(y=v.resolve(void 0),y.constructor=v,m=r(y.then,y),g=function(){m(x)}):u?g=function(){c.nextTick(x)}:(t=r(t,n),g=function(){t(x)}),f=function(S){b.head||g(),b.add(S)}}return Vi=f,Vi}var Li,eo;function Sh(){return eo||(eo=1,Li=function(n,e){try{arguments.length===1?console.error(n):console.error(n,e)}catch{}}),Li}var ki,ro;function rn(){return ro||(ro=1,ki=function(n){try{return{error:!1,value:n()}}catch(e){return{error:!0,value:e}}}),ki}var ji,to;function br(){if(to)return ji;to=1;var n=Q();return ji=n.Promise,ji}var Bi,io;function xr(){if(io)return Bi;io=1;var n=Q(),e=br(),r=re(),t=pl(),i=Ya(),a=ae(),s=yl(),o=Me(),u=$a(),l=e&&e.prototype,h=a("species"),c=!1,v=r(n.PromiseRejectionEvent),f=t("Promise",function(){var g=i(e),d=g!==String(e);if(!d&&u===66||o&&!(l.catch&&l.finally))return!0;if(!u||u<51||!/native code/.test(g)){var p=new e(function(b){b(1)}),y=function(b){b(function(){},function(){})},m=p.constructor={};if(m[h]=y,c=p.then(function(){})instanceof y,!c)return!0}return!d&&(s==="BROWSER"||s==="DENO")&&!v});return Bi={CONSTRUCTOR:f,REJECTION_EVENT:v,SUBCLASSING:c},Bi}var Fi={},ao;function Or(){if(ao)return Fi;ao=1;var n=Fe(),e=TypeError,r=function(t){var i,a;this.promise=new t(function(s,o){if(i!==void 0||a!==void 0)throw new e("Bad Promise constructor");i=s,a=o}),this.resolve=n(i),this.reject=n(a)};return Fi.f=function(t){return new r(t)},Fi}var no;function Eh(){if(no)return vn;no=1;var n=he(),e=Me(),r=Br(),t=Q(),i=oh(),a=ne(),s=tr(),o=ml(),u=Fr(),l=ch(),h=Fe(),c=re(),v=pe(),f=vh(),g=bl(),d=Sl().set,p=Th(),y=Sh(),m=rn(),b=El(),x=kr(),S=br(),E=xr(),O=Or(),P="Promise",_=E.CONSTRUCTOR,A=E.REJECTION_EVENT,q=E.SUBCLASSING,I=x.getterFor(P),j=x.set,C=S&&S.prototype,w=S,U=C,L=t.TypeError,V=t.document,M=t.process,N=O.f,k=N,z=!!(V&&V.createEvent&&t.dispatchEvent),H="unhandledrejection",X="rejectionhandled",se=0,be=1,oe=2,Ue=1,Ge=2,fe,Ne,_e,me,ce=function(R){var B;return v(R)&&c(B=R.then)?B:!1},xe=function(R,B){var G=B.value,$=B.state===be,W=$?R.ok:R.fail,Te=R.resolve,Le=R.reject,Se=R.domain,Ee,hr,fr;try{W?($||(B.rejection===Ge&&$e(B),B.rejection=Ue),W===!0?Ee=G:(Se&&Se.enter(),Ee=W(G),Se&&(Se.exit(),fr=!0)),Ee===R.promise?Le(new L("Promise-chain cycle")):(hr=ce(Ee))?a(hr,Ee,Te,Le):Te(Ee)):Le(G)}catch(cr){Se&&!fr&&Se.exit(),Le(cr)}},De=function(R,B){R.notified||(R.notified=!0,p(function(){for(var G=R.reactions,$;$=G.get();)xe($,R);R.notified=!1,B&&!R.rejection&&Xe(R)}))},Ve=function(R,B,G){var $,W;z?($=V.createEvent("Event"),$.promise=B,$.reason=G,$.initEvent(R,!1,!0),t.dispatchEvent($)):$={promise:B,reason:G},!A&&(W=t["on"+R])?W($):R===H&&y("Unhandled promise rejection",G)},Xe=function(R){a(d,t,function(){var B=R.facade,G=R.value,$=lr(R),W;if($&&(W=m(function(){r?M.emit("unhandledRejection",G,B):Ve(H,B,G)}),R.rejection=r||lr(R)?Ge:Ue,W.error))throw W.value})},lr=function(R){return R.rejection!==Ue&&!R.parent},$e=function(R){a(d,t,function(){var B=R.facade;r?M.emit("rejectionHandled",B):Ve(X,B,R.value)})},ve=function(R,B,G){return function($){R(B,$,G)}},ge=function(R,B,G){R.done||(R.done=!0,G&&(R=G),R.value=B,R.state=oe,De(R,!0))},Oe=function(R,B,G){if(!R.done){R.done=!0,G&&(R=G);try{if(R.facade===B)throw new L("Promise can't be resolved itself");var $=ce(B);$?p(function(){var W={done:!1};try{a($,B,ve(Oe,W,R),ve(ge,W,R))}catch(Te){ge(W,Te,R)}}):(R.value=B,R.state=be,De(R,!1))}catch(W){ge({done:!1},W,R)}}};if(_&&(w=function(B){f(this,U),h(B),a(fe,this);var G=I(this);try{B(ve(Oe,G),ve(ge,G))}catch($){ge(G,$)}},U=w.prototype,fe=function(B){j(this,{type:P,done:!1,notified:!1,parent:!1,reactions:new b,rejection:!1,state:se,value:null})},fe.prototype=s(U,"then",function(B,G){var $=I(this),W=N(g(this,w));return $.parent=!0,W.ok=c(B)?B:!0,W.fail=c(G)&&G,W.domain=r?M.domain:void 0,$.state===se?$.reactions.add(W):p(function(){xe(W,$)}),W.promise}),Ne=function(){var R=new fe,B=I(R);this.promise=R,this.resolve=ve(Oe,B),this.reject=ve(ge,B)},O.f=N=function(R){return R===w||R===_e?new Ne(R):k(R)},!e&&c(S)&&C!==Object.prototype)){me=C.then,q||s(C,"then",function(B,G){var $=this;return new w(function(W,Te){a(me,$,W,Te)}).then(B,G)},{unsafe:!0});try{delete C.constructor}catch{}o&&o(C,U)}return n({global:!0,constructor:!0,wrap:!0,forced:_},{Promise:w}),_e=i.Promise,u(w,P,!1,!0),l(P),vn}var so={},Ui,oo;function Tr(){return oo||(oo=1,Ui={}),Ui}var Gi,uo;function Rh(){if(uo)return Gi;uo=1;var n=ae(),e=Tr(),r=n("iterator"),t=Array.prototype;return Gi=function(i){return i!==void 0&&(e.Array===i||t[r]===i)},Gi}var $i,lo;function Rl(){if(lo)return $i;lo=1;var n=Ja(),e=sr(),r=Nr(),t=Tr(),i=ae(),a=i("iterator");return $i=function(s){if(!r(s))return e(s,a)||e(s,"@@iterator")||t[n(s)]},$i}var zi,ho;function Ch(){if(ho)return zi;ho=1;var n=ne(),e=Fe(),r=le(),t=Mr(),i=Rl(),a=TypeError;return zi=function(s,o){var u=arguments.length<2?i(s):o;if(e(u))return r(n(u,s));throw new a(t(s)+" is not iterable")},zi}var Hi,fo;function wh(){if(fo)return Hi;fo=1;var n=ne(),e=le(),r=sr();return Hi=function(t,i,a){var s,o;e(t);try{if(s=r(t,"return"),!s){if(i==="throw")throw a;return a}s=n(s,t)}catch(u){o=!0,s=u}if(i==="throw")throw a;if(o)throw s;return e(s),a},Hi}var Wi,co;function Cl(){if(co)return Wi;co=1;var n=en(),e=ne(),r=le(),t=Mr(),i=Rh(),a=Qa(),s=_r(),o=Ch(),u=Rl(),l=wh(),h=TypeError,c=function(f,g){this.stopped=f,this.result=g},v=c.prototype;return Wi=function(f,g,d){var p=d&&d.that,y=!!(d&&d.AS_ENTRIES),m=!!(d&&d.IS_RECORD),b=!!(d&&d.IS_ITERATOR),x=!!(d&&d.INTERRUPTED),S=n(g,p),E,O,P,_,A,q,I,j=function(w){return E&&l(E,"normal"),new c(!0,w)},C=function(w){return y?(r(w),x?S(w[0],w[1],j):S(w[0],w[1])):x?S(w,j):S(w)};if(m)E=f.iterator;else if(b)E=f;else{if(O=u(f),!O)throw new h(t(f)+" is not iterable");if(i(O)){for(P=0,_=a(f);_>P;P++)if(A=C(f[P]),A&&s(v,A))return A;return new c(!1)}E=o(f,O)}for(q=m?f.next:E.next;!(I=e(q,E)).done;){try{A=C(I.value)}catch(w){l(E,"throw",w)}if(typeof A=="object"&&A&&s(v,A))return A}return new c(!1)},Wi}var Yi,vo;function Ph(){if(vo)return Yi;vo=1;var n=ae(),e=n("iterator"),r=!1;try{var t=0,i={next:function(){return{done:!!t++}},return:function(){r=!0}};i[e]=function(){return this},Array.from(i,function(){throw 2})}catch{}return Yi=function(a,s){try{if(!s&&!r)return!1}catch{return!1}var o=!1;try{var u={};u[e]=function(){return{next:function(){return{done:o=!0}}}},a(u)}catch{}return o},Yi}var Xi,go;function wl(){if(go)return Xi;go=1;var n=br(),e=Ph(),r=xr().CONSTRUCTOR;return Xi=r||!e(function(t){n.all(t).then(void 0,function(){})}),Xi}var po;function Ah(){if(po)return so;po=1;var n=he(),e=ne(),r=Fe(),t=Or(),i=rn(),a=Cl(),s=wl();return n({target:"Promise",stat:!0,forced:s},{all:function(u){var l=this,h=t.f(l),c=h.resolve,v=h.reject,f=i(function(){var g=r(l.resolve),d=[],p=0,y=1;a(u,function(m){var b=p++,x=!1;y++,e(g,l,m).then(function(S){x||(x=!0,d[b]=S,--y||c(d))},v)}),--y||c(d)});return f.error&&v(f.value),h.promise}}),so}var yo={},mo;function Ih(){if(mo)return yo;mo=1;var n=he(),e=Me(),r=xr().CONSTRUCTOR,t=br(),i=rr(),a=re(),s=tr(),o=t&&t.prototype;if(n({target:"Promise",proto:!0,forced:r,real:!0},{catch:function(l){return this.then(void 0,l)}}),!e&&a(t)){var u=i("Promise").prototype.catch;o.catch!==u&&s(o,"catch",u,{unsafe:!0})}return yo}var bo={},xo;function Nh(){if(xo)return bo;xo=1;var n=he(),e=ne(),r=Fe(),t=Or(),i=rn(),a=Cl(),s=wl();return n({target:"Promise",stat:!0,forced:s},{race:function(u){var l=this,h=t.f(l),c=h.reject,v=i(function(){var f=r(l.resolve);a(u,function(g){e(f,l,g).then(h.resolve,c)})});return v.error&&c(v.value),h.promise}}),bo}var Oo={},To;function _h(){if(To)return Oo;To=1;var n=he(),e=Or(),r=xr().CONSTRUCTOR;return n({target:"Promise",stat:!0,forced:r},{reject:function(i){var a=e.f(this),s=a.reject;return s(i),a.promise}}),Oo}var So={},Ki,Eo;function Mh(){if(Eo)return Ki;Eo=1;var n=le(),e=pe(),r=Or();return Ki=function(t,i){if(n(t),e(i)&&i.constructor===t)return i;var a=r.f(t),s=a.resolve;return s(i),a.promise},Ki}var Ro;function qh(){if(Ro)return So;Ro=1;var n=he(),e=rr(),r=Me(),t=br(),i=xr().CONSTRUCTOR,a=Mh(),s=e("Promise"),o=r&&!i;return n({target:"Promise",stat:!0,forced:r||i},{resolve:function(l){return a(o&&this===s?t:this,l)}}),So}var Co;function Dh(){return Co||(Co=1,Eh(),Ah(),Ih(),Nh(),_h(),qh()),cn}Dh();function wo(n,e,r,t,i,a,s){try{var o=n[a](s),u=o.value}catch(l){return void r(l)}o.done?e(u):Promise.resolve(u).then(t,i)}function Be(n){return function(){var e=this,r=arguments;return new Promise(function(t,i){var a=n.apply(e,r);function s(u){wo(a,t,i,s,o,"next",u)}function o(u){wo(a,t,i,s,o,"throw",u)}s(void 0)})}}var Po={},Ao={},Qi,Io;function qe(){if(Io)return Qi;Io=1;var n=Ja(),e=String;return Qi=function(r){if(n(r)==="Symbol")throw new TypeError("Cannot convert a Symbol value to a string");return e(r)},Qi}var Zi,No;function Pl(){if(No)return Zi;No=1;var n=le();return Zi=function(){var e=n(this),r="";return e.hasIndices&&(r+="d"),e.global&&(r+="g"),e.ignoreCase&&(r+="i"),e.multiline&&(r+="m"),e.dotAll&&(r+="s"),e.unicode&&(r+="u"),e.unicodeSets&&(r+="v"),e.sticky&&(r+="y"),r},Zi}var Ji,_o;function Al(){if(_o)return Ji;_o=1;var n=Z(),e=Q(),r=e.RegExp,t=n(function(){var s=r("a","y");return s.lastIndex=2,s.exec("abcd")!==null}),i=t||n(function(){return!r("a","y").sticky}),a=t||n(function(){var s=r("^r","gy");return s.lastIndex=2,s.exec("str")!==null});return Ji={BROKEN_CARET:a,MISSED_STICKY:i,UNSUPPORTED_Y:t},Ji}var ea={},ra,Mo;function Vh(){if(Mo)return ra;Mo=1;var n=dl(),e=Za();return ra=Object.keys||function(t){return n(t,e)},ra}var qo;function Lh(){if(qo)return ea;qo=1;var n=we(),e=cl(),r=Ye(),t=le(),i=pr(),a=Vh();return ea.f=n&&!e?Object.defineProperties:function(o,u){t(o);for(var l=i(u),h=a(u),c=h.length,v=0,f;c>v;)r.f(o,f=h[v++],l[f]);return o},ea}var ta,Do;function Gr(){if(Do)return ta;Do=1;var n=le(),e=Lh(),r=Za(),t=Ka(),i=Ol(),a=Dr(),s=Xa(),o=">",u="<",l="prototype",h="script",c=s("IE_PROTO"),v=function(){},f=function(m){return u+h+o+m+u+"/"+h+o},g=function(m){m.write(f("")),m.close();var b=m.parentWindow.Object;return m=null,b},d=function(){var m=a("iframe"),b="java"+h+":",x;return m.style.display="none",i.appendChild(m),m.src=String(b),x=m.contentWindow.document,x.open(),x.write(f("document.F=Object")),x.close(),x.F},p,y=function(){try{p=new ActiveXObject("htmlfile")}catch{}y=typeof document<"u"?document.domain&&p?g(p):d():g(p);for(var m=r.length;m--;)delete y[l][r[m]];return y()};return t[c]=!0,ta=Object.create||function(b,x){var S;return b!==null?(v[l]=n(b),S=new v,v[l]=null,S[c]=b):S=y(),x===void 0?S:e.f(S,x)},ta}var ia,Vo;function kh(){if(Vo)return ia;Vo=1;var n=Z(),e=Q(),r=e.RegExp;return ia=n(function(){var t=r(".","s");return!(t.dotAll&&t.test(`
|
|
1
|
+
import{_ as Va,c as La,p as ar,g as al}from"./index-BRRX0BBT.js";function Xl(n,e){if(Va(n)!="object"||!n)return n;var r=n[Symbol.toPrimitive];if(r!==void 0){var t=r.call(n,e);if(Va(t)!="object")return t;throw new TypeError("@@toPrimitive must return a primitive value.")}return(e==="string"?String:Number)(n)}function Kl(n){var e=Xl(n,"string");return Va(e)=="symbol"?e:e+""}function Ua(n,e,r){return(e=Kl(e))in n?Object.defineProperty(n,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):n[e]=r,n}var cn={},vn={},vr,gn;function Q(){if(gn)return vr;gn=1;var n=function(e){return e&&e.Math===Math&&e};return vr=n(typeof globalThis=="object"&&globalThis)||n(typeof window=="object"&&window)||n(typeof self=="object"&&self)||n(typeof La=="object"&&La)||n(typeof vr=="object"&&vr)||(function(){return this})()||Function("return this")(),vr}var Zr={},Jr,dn;function Z(){return dn||(dn=1,Jr=function(n){try{return!!n()}catch{return!0}}),Jr}var et,pn;function we(){if(pn)return et;pn=1;var n=Z();return et=!n(function(){return Object.defineProperty({},1,{get:function(){return 7}})[1]!==7}),et}var rt,yn;function Ir(){if(yn)return rt;yn=1;var n=Z();return rt=!n(function(){var e=(function(){}).bind();return typeof e!="function"||e.hasOwnProperty("prototype")}),rt}var tt,mn;function ne(){if(mn)return tt;mn=1;var n=Ir(),e=Function.prototype.call;return tt=n?e.bind(e):function(){return e.apply(e,arguments)},tt}var it={},bn;function Ql(){if(bn)return it;bn=1;var n={}.propertyIsEnumerable,e=Object.getOwnPropertyDescriptor,r=e&&!n.call({1:2},1);return it.f=r?function(i){var a=e(this,i);return!!a&&a.enumerable}:n,it}var at,xn;function Ga(){return xn||(xn=1,at=function(n,e){return{enumerable:!(n&1),configurable:!(n&2),writable:!(n&4),value:e}}),at}var nt,On;function J(){if(On)return nt;On=1;var n=Ir(),e=Function.prototype,r=e.call,t=n&&e.bind.bind(r,r);return nt=n?t:function(i){return function(){return r.apply(i,arguments)}},nt}var st,Tn;function er(){if(Tn)return st;Tn=1;var n=J(),e=n({}.toString),r=n("".slice);return st=function(t){return r(e(t),8,-1)},st}var ot,Sn;function nl(){if(Sn)return ot;Sn=1;var n=J(),e=Z(),r=er(),t=Object,i=n("".split);return ot=e(function(){return!t("z").propertyIsEnumerable(0)})?function(a){return r(a)==="String"?i(a,""):t(a)}:t,ot}var ut,En;function Nr(){return En||(En=1,ut=function(n){return n==null}),ut}var lt,Rn;function Pe(){if(Rn)return lt;Rn=1;var n=Nr(),e=TypeError;return lt=function(r){if(n(r))throw new e("Can't call method on "+r);return r},lt}var ht,Cn;function pr(){if(Cn)return ht;Cn=1;var n=nl(),e=Pe();return ht=function(r){return n(e(r))},ht}var ft,wn;function re(){if(wn)return ft;wn=1;var n=typeof document=="object"&&document.all;return ft=typeof n>"u"&&n!==void 0?function(e){return typeof e=="function"||e===n}:function(e){return typeof e=="function"},ft}var ct,Pn;function pe(){if(Pn)return ct;Pn=1;var n=re();return ct=function(e){return typeof e=="object"?e!==null:n(e)},ct}var vt,An;function rr(){if(An)return vt;An=1;var n=Q(),e=re(),r=function(t){return e(t)?t:void 0};return vt=function(t,i){return arguments.length<2?r(n[t]):n[t]&&n[t][i]},vt}var gt,In;function _r(){if(In)return gt;In=1;var n=J();return gt=n({}.isPrototypeOf),gt}var dt,Nn;function yr(){if(Nn)return dt;Nn=1;var n=Q(),e=n.navigator,r=e&&e.userAgent;return dt=r?String(r):"",dt}var pt,_n;function $a(){if(_n)return pt;_n=1;var n=Q(),e=yr(),r=n.process,t=n.Deno,i=r&&r.versions||t&&t.version,a=i&&i.v8,s,o;return a&&(s=a.split("."),o=s[0]>0&&s[0]<4?1:+(s[0]+s[1])),!o&&e&&(s=e.match(/Edge\/(\d+)/),(!s||s[1]>=74)&&(s=e.match(/Chrome\/(\d+)/),s&&(o=+s[1]))),pt=o,pt}var yt,Mn;function sl(){if(Mn)return yt;Mn=1;var n=$a(),e=Z(),r=Q(),t=r.String;return yt=!!Object.getOwnPropertySymbols&&!e(function(){var i=Symbol("symbol detection");return!t(i)||!(Object(i)instanceof Symbol)||!Symbol.sham&&n&&n<41}),yt}var mt,qn;function ol(){if(qn)return mt;qn=1;var n=sl();return mt=n&&!Symbol.sham&&typeof Symbol.iterator=="symbol",mt}var bt,Dn;function ul(){if(Dn)return bt;Dn=1;var n=rr(),e=re(),r=_r(),t=ol(),i=Object;return bt=t?function(a){return typeof a=="symbol"}:function(a){var s=n("Symbol");return e(s)&&r(s.prototype,i(a))},bt}var xt,Vn;function Mr(){if(Vn)return xt;Vn=1;var n=String;return xt=function(e){try{return n(e)}catch{return"Object"}},xt}var Ot,Ln;function Fe(){if(Ln)return Ot;Ln=1;var n=re(),e=Mr(),r=TypeError;return Ot=function(t){if(n(t))return t;throw new r(e(t)+" is not a function")},Ot}var Tt,kn;function sr(){if(kn)return Tt;kn=1;var n=Fe(),e=Nr();return Tt=function(r,t){var i=r[t];return e(i)?void 0:n(i)},Tt}var St,jn;function Zl(){if(jn)return St;jn=1;var n=ne(),e=re(),r=pe(),t=TypeError;return St=function(i,a){var s,o;if(a==="string"&&e(s=i.toString)&&!r(o=n(s,i))||e(s=i.valueOf)&&!r(o=n(s,i))||a!=="string"&&e(s=i.toString)&&!r(o=n(s,i)))return o;throw new t("Can't convert object to primitive value")},St}var Et={exports:{}},Rt,Bn;function Me(){return Bn||(Bn=1,Rt=!1),Rt}var Ct,Fn;function za(){if(Fn)return Ct;Fn=1;var n=Q(),e=Object.defineProperty;return Ct=function(r,t){try{e(n,r,{value:t,configurable:!0,writable:!0})}catch{n[r]=t}return t},Ct}var Un;function Ha(){if(Un)return Et.exports;Un=1;var n=Me(),e=Q(),r=za(),t="__core-js_shared__",i=Et.exports=e[t]||r(t,{});return(i.versions||(i.versions=[])).push({version:"3.45.1",mode:n?"pure":"global",copyright:"© 2014-2025 Denis Pushkarev (zloirock.ru)",license:"https://github.com/zloirock/core-js/blob/v3.45.1/LICENSE",source:"https://github.com/zloirock/core-js"}),Et.exports}var wt,Gn;function Wa(){if(Gn)return wt;Gn=1;var n=Ha();return wt=function(e,r){return n[e]||(n[e]=r||{})},wt}var Pt,$n;function qr(){if($n)return Pt;$n=1;var n=Pe(),e=Object;return Pt=function(r){return e(n(r))},Pt}var At,zn;function Ae(){if(zn)return At;zn=1;var n=J(),e=qr(),r=n({}.hasOwnProperty);return At=Object.hasOwn||function(i,a){return r(e(i),a)},At}var It,Hn;function ll(){if(Hn)return It;Hn=1;var n=J(),e=0,r=Math.random(),t=n(1.1.toString);return It=function(i){return"Symbol("+(i===void 0?"":i)+")_"+t(++e+r,36)},It}var Nt,Wn;function ae(){if(Wn)return Nt;Wn=1;var n=Q(),e=Wa(),r=Ae(),t=ll(),i=sl(),a=ol(),s=n.Symbol,o=e("wks"),u=a?s.for||s:s&&s.withoutSetter||t;return Nt=function(l){return r(o,l)||(o[l]=i&&r(s,l)?s[l]:u("Symbol."+l)),o[l]},Nt}var _t,Yn;function Jl(){if(Yn)return _t;Yn=1;var n=ne(),e=pe(),r=ul(),t=sr(),i=Zl(),a=ae(),s=TypeError,o=a("toPrimitive");return _t=function(u,l){if(!e(u)||r(u))return u;var h=t(u,o),c;if(h){if(l===void 0&&(l="default"),c=n(h,u,l),!e(c)||r(c))return c;throw new s("Can't convert object to primitive value")}return l===void 0&&(l="number"),i(u,l)},_t}var Mt,Xn;function hl(){if(Xn)return Mt;Xn=1;var n=Jl(),e=ul();return Mt=function(r){var t=n(r,"string");return e(t)?t:t+""},Mt}var qt,Kn;function Dr(){if(Kn)return qt;Kn=1;var n=Q(),e=pe(),r=n.document,t=e(r)&&e(r.createElement);return qt=function(i){return t?r.createElement(i):{}},qt}var Dt,Qn;function fl(){if(Qn)return Dt;Qn=1;var n=we(),e=Z(),r=Dr();return Dt=!n&&!e(function(){return Object.defineProperty(r("div"),"a",{get:function(){return 7}}).a!==7}),Dt}var Zn;function Vr(){if(Zn)return Zr;Zn=1;var n=we(),e=ne(),r=Ql(),t=Ga(),i=pr(),a=hl(),s=Ae(),o=fl(),u=Object.getOwnPropertyDescriptor;return Zr.f=n?u:function(h,c){if(h=i(h),c=a(c),o)try{return u(h,c)}catch{}if(s(h,c))return t(!e(r.f,h,c),h[c])},Zr}var Vt={},Lt,Jn;function cl(){if(Jn)return Lt;Jn=1;var n=we(),e=Z();return Lt=n&&e(function(){return Object.defineProperty(function(){},"prototype",{value:42,writable:!1}).prototype!==42}),Lt}var kt,es;function le(){if(es)return kt;es=1;var n=pe(),e=String,r=TypeError;return kt=function(t){if(n(t))return t;throw new r(e(t)+" is not an object")},kt}var rs;function Ye(){if(rs)return Vt;rs=1;var n=we(),e=fl(),r=cl(),t=le(),i=hl(),a=TypeError,s=Object.defineProperty,o=Object.getOwnPropertyDescriptor,u="enumerable",l="configurable",h="writable";return Vt.f=n?r?function(v,f,g){if(t(v),f=i(f),t(g),typeof v=="function"&&f==="prototype"&&"value"in g&&h in g&&!g[h]){var d=o(v,f);d&&d[h]&&(v[f]=g.value,g={configurable:l in g?g[l]:d[l],enumerable:u in g?g[u]:d[u],writable:!1})}return s(v,f,g)}:s:function(v,f,g){if(t(v),f=i(f),t(g),e)try{return s(v,f,g)}catch{}if("get"in g||"set"in g)throw new a("Accessors not supported");return"value"in g&&(v[f]=g.value),v},Vt}var jt,ts;function mr(){if(ts)return jt;ts=1;var n=we(),e=Ye(),r=Ga();return jt=n?function(t,i,a){return e.f(t,i,r(1,a))}:function(t,i,a){return t[i]=a,t},jt}var Bt={exports:{}},Ft,is;function Lr(){if(is)return Ft;is=1;var n=we(),e=Ae(),r=Function.prototype,t=n&&Object.getOwnPropertyDescriptor,i=e(r,"name"),a=i&&(function(){}).name==="something",s=i&&(!n||n&&t(r,"name").configurable);return Ft={EXISTS:i,PROPER:a,CONFIGURABLE:s},Ft}var Ut,as;function Ya(){if(as)return Ut;as=1;var n=J(),e=re(),r=Ha(),t=n(Function.toString);return e(r.inspectSource)||(r.inspectSource=function(i){return t(i)}),Ut=r.inspectSource,Ut}var Gt,ns;function eh(){if(ns)return Gt;ns=1;var n=Q(),e=re(),r=n.WeakMap;return Gt=e(r)&&/native code/.test(String(r)),Gt}var $t,ss;function Xa(){if(ss)return $t;ss=1;var n=Wa(),e=ll(),r=n("keys");return $t=function(t){return r[t]||(r[t]=e(t))},$t}var zt,os;function Ka(){return os||(os=1,zt={}),zt}var Ht,us;function kr(){if(us)return Ht;us=1;var n=eh(),e=Q(),r=pe(),t=mr(),i=Ae(),a=Ha(),s=Xa(),o=Ka(),u="Object already initialized",l=e.TypeError,h=e.WeakMap,c,v,f,g=function(m){return f(m)?v(m):c(m,{})},d=function(m){return function(b){var x;if(!r(b)||(x=v(b)).type!==m)throw new l("Incompatible receiver, "+m+" required");return x}};if(n||a.state){var p=a.state||(a.state=new h);p.get=p.get,p.has=p.has,p.set=p.set,c=function(m,b){if(p.has(m))throw new l(u);return b.facade=m,p.set(m,b),b},v=function(m){return p.get(m)||{}},f=function(m){return p.has(m)}}else{var y=s("state");o[y]=!0,c=function(m,b){if(i(m,y))throw new l(u);return b.facade=m,t(m,y,b),b},v=function(m){return i(m,y)?m[y]:{}},f=function(m){return i(m,y)}}return Ht={set:c,get:v,has:f,enforce:g,getterFor:d},Ht}var ls;function vl(){if(ls)return Bt.exports;ls=1;var n=J(),e=Z(),r=re(),t=Ae(),i=we(),a=Lr().CONFIGURABLE,s=Ya(),o=kr(),u=o.enforce,l=o.get,h=String,c=Object.defineProperty,v=n("".slice),f=n("".replace),g=n([].join),d=i&&!e(function(){return c(function(){},"length",{value:8}).length!==8}),p=String(String).split("String"),y=Bt.exports=function(m,b,x){v(h(b),0,7)==="Symbol("&&(b="["+f(h(b),/^Symbol\(([^)]*)\).*$/,"$1")+"]"),x&&x.getter&&(b="get "+b),x&&x.setter&&(b="set "+b),(!t(m,"name")||a&&m.name!==b)&&(i?c(m,"name",{value:b,configurable:!0}):m.name=b),d&&x&&t(x,"arity")&&m.length!==x.arity&&c(m,"length",{value:x.arity});try{x&&t(x,"constructor")&&x.constructor?i&&c(m,"prototype",{writable:!1}):m.prototype&&(m.prototype=void 0)}catch{}var S=u(m);return t(S,"source")||(S.source=g(p,typeof b=="string"?b:"")),m};return Function.prototype.toString=y(function(){return r(this)&&l(this).source||s(this)},"toString"),Bt.exports}var Wt,hs;function tr(){if(hs)return Wt;hs=1;var n=re(),e=Ye(),r=vl(),t=za();return Wt=function(i,a,s,o){o||(o={});var u=o.enumerable,l=o.name!==void 0?o.name:a;if(n(s)&&r(s,l,o),o.global)u?i[a]=s:t(a,s);else{try{o.unsafe?i[a]&&(u=!0):delete i[a]}catch{}u?i[a]=s:e.f(i,a,{value:s,enumerable:!1,configurable:!o.nonConfigurable,writable:!o.nonWritable})}return i},Wt}var Yt={},Xt,fs;function rh(){if(fs)return Xt;fs=1;var n=Math.ceil,e=Math.floor;return Xt=Math.trunc||function(t){var i=+t;return(i>0?e:n)(i)},Xt}var Kt,cs;function jr(){if(cs)return Kt;cs=1;var n=rh();return Kt=function(e){var r=+e;return r!==r||r===0?0:n(r)},Kt}var Qt,vs;function th(){if(vs)return Qt;vs=1;var n=jr(),e=Math.max,r=Math.min;return Qt=function(t,i){var a=n(t);return a<0?e(a+i,0):r(a,i)},Qt}var Zt,gs;function or(){if(gs)return Zt;gs=1;var n=jr(),e=Math.min;return Zt=function(r){var t=n(r);return t>0?e(t,9007199254740991):0},Zt}var Jt,ds;function Qa(){if(ds)return Jt;ds=1;var n=or();return Jt=function(e){return n(e.length)},Jt}var ei,ps;function gl(){if(ps)return ei;ps=1;var n=pr(),e=th(),r=Qa(),t=function(i){return function(a,s,o){var u=n(a),l=r(u);if(l===0)return!i&&-1;var h=e(o,l),c;if(i&&s!==s){for(;l>h;)if(c=u[h++],c!==c)return!0}else for(;l>h;h++)if((i||h in u)&&u[h]===s)return i||h||0;return!i&&-1}};return ei={includes:t(!0),indexOf:t(!1)},ei}var ri,ys;function dl(){if(ys)return ri;ys=1;var n=J(),e=Ae(),r=pr(),t=gl().indexOf,i=Ka(),a=n([].push);return ri=function(s,o){var u=r(s),l=0,h=[],c;for(c in u)!e(i,c)&&e(u,c)&&a(h,c);for(;o.length>l;)e(u,c=o[l++])&&(~t(h,c)||a(h,c));return h},ri}var ti,ms;function Za(){return ms||(ms=1,ti=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"]),ti}var bs;function ih(){if(bs)return Yt;bs=1;var n=dl(),e=Za(),r=e.concat("length","prototype");return Yt.f=Object.getOwnPropertyNames||function(i){return n(i,r)},Yt}var ii={},xs;function ah(){return xs||(xs=1,ii.f=Object.getOwnPropertySymbols),ii}var ai,Os;function nh(){if(Os)return ai;Os=1;var n=rr(),e=J(),r=ih(),t=ah(),i=le(),a=e([].concat);return ai=n("Reflect","ownKeys")||function(o){var u=r.f(i(o)),l=t.f;return l?a(u,l(o)):u},ai}var ni,Ts;function sh(){if(Ts)return ni;Ts=1;var n=Ae(),e=nh(),r=Vr(),t=Ye();return ni=function(i,a,s){for(var o=e(a),u=t.f,l=r.f,h=0;h<o.length;h++){var c=o[h];!n(i,c)&&!(s&&n(s,c))&&u(i,c,l(a,c))}},ni}var si,Ss;function pl(){if(Ss)return si;Ss=1;var n=Z(),e=re(),r=/#|\.prototype\./,t=function(u,l){var h=a[i(u)];return h===o?!0:h===s?!1:e(l)?n(l):!!l},i=t.normalize=function(u){return String(u).replace(r,".").toLowerCase()},a=t.data={},s=t.NATIVE="N",o=t.POLYFILL="P";return si=t,si}var oi,Es;function he(){if(Es)return oi;Es=1;var n=Q(),e=Vr().f,r=mr(),t=tr(),i=za(),a=sh(),s=pl();return oi=function(o,u){var l=o.target,h=o.global,c=o.stat,v,f,g,d,p,y;if(h?f=n:c?f=n[l]||i(l,{}):f=n[l]&&n[l].prototype,f)for(g in u){if(p=u[g],o.dontCallGetSet?(y=e(f,g),d=y&&y.value):d=f[g],v=s(h?g:l+(c?".":"#")+g,o.forced),!v&&d!==void 0){if(typeof p==typeof d)continue;a(p,d)}(o.sham||d&&d.sham)&&r(p,"sham",!0),t(f,g,p,o)}},oi}var ui,Rs;function yl(){if(Rs)return ui;Rs=1;var n=Q(),e=yr(),r=er(),t=function(i){return e.slice(0,i.length)===i};return ui=(function(){return t("Bun/")?"BUN":t("Cloudflare-Workers")?"CLOUDFLARE":t("Deno/")?"DENO":t("Node.js/")?"NODE":n.Bun&&typeof Bun.version=="string"?"BUN":n.Deno&&typeof Deno.version=="object"?"DENO":r(n.process)==="process"?"NODE":n.window&&n.document?"BROWSER":"REST"})(),ui}var li,Cs;function Br(){if(Cs)return li;Cs=1;var n=yl();return li=n==="NODE",li}var hi,ws;function oh(){if(ws)return hi;ws=1;var n=Q();return hi=n,hi}var fi,Ps;function uh(){if(Ps)return fi;Ps=1;var n=J(),e=Fe();return fi=function(r,t,i){try{return n(e(Object.getOwnPropertyDescriptor(r,t)[i]))}catch{}},fi}var ci,As;function lh(){if(As)return ci;As=1;var n=pe();return ci=function(e){return n(e)||e===null},ci}var vi,Is;function hh(){if(Is)return vi;Is=1;var n=lh(),e=String,r=TypeError;return vi=function(t){if(n(t))return t;throw new r("Can't set "+e(t)+" as a prototype")},vi}var gi,Ns;function ml(){if(Ns)return gi;Ns=1;var n=uh(),e=pe(),r=Pe(),t=hh();return gi=Object.setPrototypeOf||("__proto__"in{}?(function(){var i=!1,a={},s;try{s=n(Object.prototype,"__proto__","set"),s(a,[]),i=a instanceof Array}catch{}return function(u,l){return r(u),t(l),e(u)&&(i?s(u,l):u.__proto__=l),u}})():void 0),gi}var di,_s;function Fr(){if(_s)return di;_s=1;var n=Ye().f,e=Ae(),r=ae(),t=r("toStringTag");return di=function(i,a,s){i&&!s&&(i=i.prototype),i&&!e(i,t)&&n(i,t,{configurable:!0,value:a})},di}var pi,Ms;function fh(){if(Ms)return pi;Ms=1;var n=vl(),e=Ye();return pi=function(r,t,i){return i.get&&n(i.get,t,{getter:!0}),i.set&&n(i.set,t,{setter:!0}),e.f(r,t,i)},pi}var yi,qs;function ch(){if(qs)return yi;qs=1;var n=rr(),e=fh(),r=ae(),t=we(),i=r("species");return yi=function(a){var s=n(a);t&&s&&!s[i]&&e(s,i,{configurable:!0,get:function(){return this}})},yi}var mi,Ds;function vh(){if(Ds)return mi;Ds=1;var n=_r(),e=TypeError;return mi=function(r,t){if(n(t,r))return r;throw new e("Incorrect invocation")},mi}var bi,Vs;function gh(){if(Vs)return bi;Vs=1;var n=ae(),e=n("toStringTag"),r={};return r[e]="z",bi=String(r)==="[object z]",bi}var xi,Ls;function Ja(){if(Ls)return xi;Ls=1;var n=gh(),e=re(),r=er(),t=ae(),i=t("toStringTag"),a=Object,s=r((function(){return arguments})())==="Arguments",o=function(u,l){try{return u[l]}catch{}};return xi=n?r:function(u){var l,h,c;return u===void 0?"Undefined":u===null?"Null":typeof(h=o(l=a(u),i))=="string"?h:s?r(l):(c=r(l))==="Object"&&e(l.callee)?"Arguments":c},xi}var Oi,ks;function dh(){if(ks)return Oi;ks=1;var n=J(),e=Z(),r=re(),t=Ja(),i=rr(),a=Ya(),s=function(){},o=i("Reflect","construct"),u=/^\s*(?:class|function)\b/,l=n(u.exec),h=!u.test(s),c=function(g){if(!r(g))return!1;try{return o(s,[],g),!0}catch{return!1}},v=function(g){if(!r(g))return!1;switch(t(g)){case"AsyncFunction":case"GeneratorFunction":case"AsyncGeneratorFunction":return!1}try{return h||!!l(u,a(g))}catch{return!0}};return v.sham=!0,Oi=!o||e(function(){var f;return c(c.call)||!c(Object)||!c(function(){f=!0})||f})?v:c,Oi}var Ti,js;function ph(){if(js)return Ti;js=1;var n=dh(),e=Mr(),r=TypeError;return Ti=function(t){if(n(t))return t;throw new r(e(t)+" is not a constructor")},Ti}var Si,Bs;function bl(){if(Bs)return Si;Bs=1;var n=le(),e=ph(),r=Nr(),t=ae(),i=t("species");return Si=function(a,s){var o=n(a).constructor,u;return o===void 0||r(u=n(o)[i])?s:e(u)},Si}var Ei,Fs;function xl(){if(Fs)return Ei;Fs=1;var n=Ir(),e=Function.prototype,r=e.apply,t=e.call;return Ei=typeof Reflect=="object"&&Reflect.apply||(n?t.bind(r):function(){return t.apply(r,arguments)}),Ei}var Ri,Us;function Ur(){if(Us)return Ri;Us=1;var n=er(),e=J();return Ri=function(r){if(n(r)==="Function")return e(r)},Ri}var Ci,Gs;function en(){if(Gs)return Ci;Gs=1;var n=Ur(),e=Fe(),r=Ir(),t=n(n.bind);return Ci=function(i,a){return e(i),a===void 0?i:r?t(i,a):function(){return i.apply(a,arguments)}},Ci}var wi,$s;function Ol(){if($s)return wi;$s=1;var n=rr();return wi=n("document","documentElement"),wi}var Pi,zs;function yh(){if(zs)return Pi;zs=1;var n=J();return Pi=n([].slice),Pi}var Ai,Hs;function mh(){if(Hs)return Ai;Hs=1;var n=TypeError;return Ai=function(e,r){if(e<r)throw new n("Not enough arguments");return e},Ai}var Ii,Ws;function Tl(){if(Ws)return Ii;Ws=1;var n=yr();return Ii=/(?:ipad|iphone|ipod).*applewebkit/i.test(n),Ii}var Ni,Ys;function Sl(){if(Ys)return Ni;Ys=1;var n=Q(),e=xl(),r=en(),t=re(),i=Ae(),a=Z(),s=Ol(),o=yh(),u=Dr(),l=mh(),h=Tl(),c=Br(),v=n.setImmediate,f=n.clearImmediate,g=n.process,d=n.Dispatch,p=n.Function,y=n.MessageChannel,m=n.String,b=0,x={},S="onreadystatechange",E,O,P,_;a(function(){E=n.location});var A=function(C){if(i(x,C)){var w=x[C];delete x[C],w()}},q=function(C){return function(){A(C)}},I=function(C){A(C.data)},j=function(C){n.postMessage(m(C),E.protocol+"//"+E.host)};return(!v||!f)&&(v=function(w){l(arguments.length,1);var U=t(w)?w:p(w),L=o(arguments,1);return x[++b]=function(){e(U,void 0,L)},O(b),b},f=function(w){delete x[w]},c?O=function(C){g.nextTick(q(C))}:d&&d.now?O=function(C){d.now(q(C))}:y&&!h?(P=new y,_=P.port2,P.port1.onmessage=I,O=r(_.postMessage,_)):n.addEventListener&&t(n.postMessage)&&!n.importScripts&&E&&E.protocol!=="file:"&&!a(j)?(O=j,n.addEventListener("message",I,!1)):S in u("script")?O=function(C){s.appendChild(u("script"))[S]=function(){s.removeChild(this),A(C)}}:O=function(C){setTimeout(q(C),0)}),Ni={set:v,clear:f},Ni}var _i,Xs;function bh(){if(Xs)return _i;Xs=1;var n=Q(),e=we(),r=Object.getOwnPropertyDescriptor;return _i=function(t){if(!e)return n[t];var i=r(n,t);return i&&i.value},_i}var Mi,Ks;function El(){if(Ks)return Mi;Ks=1;var n=function(){this.head=null,this.tail=null};return n.prototype={add:function(e){var r={item:e,next:null},t=this.tail;t?t.next=r:this.head=r,this.tail=r},get:function(){var e=this.head;if(e){var r=this.head=e.next;return r===null&&(this.tail=null),e.item}}},Mi=n,Mi}var qi,Qs;function xh(){if(Qs)return qi;Qs=1;var n=yr();return qi=/ipad|iphone|ipod/i.test(n)&&typeof Pebble<"u",qi}var Di,Zs;function Oh(){if(Zs)return Di;Zs=1;var n=yr();return Di=/web0s(?!.*chrome)/i.test(n),Di}var Vi,Js;function Th(){if(Js)return Vi;Js=1;var n=Q(),e=bh(),r=en(),t=Sl().set,i=El(),a=Tl(),s=xh(),o=Oh(),u=Br(),l=n.MutationObserver||n.WebKitMutationObserver,h=n.document,c=n.process,v=n.Promise,f=e("queueMicrotask"),g,d,p,y,m;if(!f){var b=new i,x=function(){var S,E;for(u&&(S=c.domain)&&S.exit();E=b.get();)try{E()}catch(O){throw b.head&&g(),O}S&&S.enter()};!a&&!u&&!o&&l&&h?(d=!0,p=h.createTextNode(""),new l(x).observe(p,{characterData:!0}),g=function(){p.data=d=!d}):!s&&v&&v.resolve?(y=v.resolve(void 0),y.constructor=v,m=r(y.then,y),g=function(){m(x)}):u?g=function(){c.nextTick(x)}:(t=r(t,n),g=function(){t(x)}),f=function(S){b.head||g(),b.add(S)}}return Vi=f,Vi}var Li,eo;function Sh(){return eo||(eo=1,Li=function(n,e){try{arguments.length===1?console.error(n):console.error(n,e)}catch{}}),Li}var ki,ro;function rn(){return ro||(ro=1,ki=function(n){try{return{error:!1,value:n()}}catch(e){return{error:!0,value:e}}}),ki}var ji,to;function br(){if(to)return ji;to=1;var n=Q();return ji=n.Promise,ji}var Bi,io;function xr(){if(io)return Bi;io=1;var n=Q(),e=br(),r=re(),t=pl(),i=Ya(),a=ae(),s=yl(),o=Me(),u=$a(),l=e&&e.prototype,h=a("species"),c=!1,v=r(n.PromiseRejectionEvent),f=t("Promise",function(){var g=i(e),d=g!==String(e);if(!d&&u===66||o&&!(l.catch&&l.finally))return!0;if(!u||u<51||!/native code/.test(g)){var p=new e(function(b){b(1)}),y=function(b){b(function(){},function(){})},m=p.constructor={};if(m[h]=y,c=p.then(function(){})instanceof y,!c)return!0}return!d&&(s==="BROWSER"||s==="DENO")&&!v});return Bi={CONSTRUCTOR:f,REJECTION_EVENT:v,SUBCLASSING:c},Bi}var Fi={},ao;function Or(){if(ao)return Fi;ao=1;var n=Fe(),e=TypeError,r=function(t){var i,a;this.promise=new t(function(s,o){if(i!==void 0||a!==void 0)throw new e("Bad Promise constructor");i=s,a=o}),this.resolve=n(i),this.reject=n(a)};return Fi.f=function(t){return new r(t)},Fi}var no;function Eh(){if(no)return vn;no=1;var n=he(),e=Me(),r=Br(),t=Q(),i=oh(),a=ne(),s=tr(),o=ml(),u=Fr(),l=ch(),h=Fe(),c=re(),v=pe(),f=vh(),g=bl(),d=Sl().set,p=Th(),y=Sh(),m=rn(),b=El(),x=kr(),S=br(),E=xr(),O=Or(),P="Promise",_=E.CONSTRUCTOR,A=E.REJECTION_EVENT,q=E.SUBCLASSING,I=x.getterFor(P),j=x.set,C=S&&S.prototype,w=S,U=C,L=t.TypeError,V=t.document,M=t.process,N=O.f,k=N,z=!!(V&&V.createEvent&&t.dispatchEvent),H="unhandledrejection",X="rejectionhandled",se=0,be=1,oe=2,Ue=1,Ge=2,fe,Ne,_e,me,ce=function(R){var B;return v(R)&&c(B=R.then)?B:!1},xe=function(R,B){var G=B.value,$=B.state===be,W=$?R.ok:R.fail,Te=R.resolve,Le=R.reject,Se=R.domain,Ee,hr,fr;try{W?($||(B.rejection===Ge&&$e(B),B.rejection=Ue),W===!0?Ee=G:(Se&&Se.enter(),Ee=W(G),Se&&(Se.exit(),fr=!0)),Ee===R.promise?Le(new L("Promise-chain cycle")):(hr=ce(Ee))?a(hr,Ee,Te,Le):Te(Ee)):Le(G)}catch(cr){Se&&!fr&&Se.exit(),Le(cr)}},De=function(R,B){R.notified||(R.notified=!0,p(function(){for(var G=R.reactions,$;$=G.get();)xe($,R);R.notified=!1,B&&!R.rejection&&Xe(R)}))},Ve=function(R,B,G){var $,W;z?($=V.createEvent("Event"),$.promise=B,$.reason=G,$.initEvent(R,!1,!0),t.dispatchEvent($)):$={promise:B,reason:G},!A&&(W=t["on"+R])?W($):R===H&&y("Unhandled promise rejection",G)},Xe=function(R){a(d,t,function(){var B=R.facade,G=R.value,$=lr(R),W;if($&&(W=m(function(){r?M.emit("unhandledRejection",G,B):Ve(H,B,G)}),R.rejection=r||lr(R)?Ge:Ue,W.error))throw W.value})},lr=function(R){return R.rejection!==Ue&&!R.parent},$e=function(R){a(d,t,function(){var B=R.facade;r?M.emit("rejectionHandled",B):Ve(X,B,R.value)})},ve=function(R,B,G){return function($){R(B,$,G)}},ge=function(R,B,G){R.done||(R.done=!0,G&&(R=G),R.value=B,R.state=oe,De(R,!0))},Oe=function(R,B,G){if(!R.done){R.done=!0,G&&(R=G);try{if(R.facade===B)throw new L("Promise can't be resolved itself");var $=ce(B);$?p(function(){var W={done:!1};try{a($,B,ve(Oe,W,R),ve(ge,W,R))}catch(Te){ge(W,Te,R)}}):(R.value=B,R.state=be,De(R,!1))}catch(W){ge({done:!1},W,R)}}};if(_&&(w=function(B){f(this,U),h(B),a(fe,this);var G=I(this);try{B(ve(Oe,G),ve(ge,G))}catch($){ge(G,$)}},U=w.prototype,fe=function(B){j(this,{type:P,done:!1,notified:!1,parent:!1,reactions:new b,rejection:!1,state:se,value:null})},fe.prototype=s(U,"then",function(B,G){var $=I(this),W=N(g(this,w));return $.parent=!0,W.ok=c(B)?B:!0,W.fail=c(G)&&G,W.domain=r?M.domain:void 0,$.state===se?$.reactions.add(W):p(function(){xe(W,$)}),W.promise}),Ne=function(){var R=new fe,B=I(R);this.promise=R,this.resolve=ve(Oe,B),this.reject=ve(ge,B)},O.f=N=function(R){return R===w||R===_e?new Ne(R):k(R)},!e&&c(S)&&C!==Object.prototype)){me=C.then,q||s(C,"then",function(B,G){var $=this;return new w(function(W,Te){a(me,$,W,Te)}).then(B,G)},{unsafe:!0});try{delete C.constructor}catch{}o&&o(C,U)}return n({global:!0,constructor:!0,wrap:!0,forced:_},{Promise:w}),_e=i.Promise,u(w,P,!1,!0),l(P),vn}var so={},Ui,oo;function Tr(){return oo||(oo=1,Ui={}),Ui}var Gi,uo;function Rh(){if(uo)return Gi;uo=1;var n=ae(),e=Tr(),r=n("iterator"),t=Array.prototype;return Gi=function(i){return i!==void 0&&(e.Array===i||t[r]===i)},Gi}var $i,lo;function Rl(){if(lo)return $i;lo=1;var n=Ja(),e=sr(),r=Nr(),t=Tr(),i=ae(),a=i("iterator");return $i=function(s){if(!r(s))return e(s,a)||e(s,"@@iterator")||t[n(s)]},$i}var zi,ho;function Ch(){if(ho)return zi;ho=1;var n=ne(),e=Fe(),r=le(),t=Mr(),i=Rl(),a=TypeError;return zi=function(s,o){var u=arguments.length<2?i(s):o;if(e(u))return r(n(u,s));throw new a(t(s)+" is not iterable")},zi}var Hi,fo;function wh(){if(fo)return Hi;fo=1;var n=ne(),e=le(),r=sr();return Hi=function(t,i,a){var s,o;e(t);try{if(s=r(t,"return"),!s){if(i==="throw")throw a;return a}s=n(s,t)}catch(u){o=!0,s=u}if(i==="throw")throw a;if(o)throw s;return e(s),a},Hi}var Wi,co;function Cl(){if(co)return Wi;co=1;var n=en(),e=ne(),r=le(),t=Mr(),i=Rh(),a=Qa(),s=_r(),o=Ch(),u=Rl(),l=wh(),h=TypeError,c=function(f,g){this.stopped=f,this.result=g},v=c.prototype;return Wi=function(f,g,d){var p=d&&d.that,y=!!(d&&d.AS_ENTRIES),m=!!(d&&d.IS_RECORD),b=!!(d&&d.IS_ITERATOR),x=!!(d&&d.INTERRUPTED),S=n(g,p),E,O,P,_,A,q,I,j=function(w){return E&&l(E,"normal"),new c(!0,w)},C=function(w){return y?(r(w),x?S(w[0],w[1],j):S(w[0],w[1])):x?S(w,j):S(w)};if(m)E=f.iterator;else if(b)E=f;else{if(O=u(f),!O)throw new h(t(f)+" is not iterable");if(i(O)){for(P=0,_=a(f);_>P;P++)if(A=C(f[P]),A&&s(v,A))return A;return new c(!1)}E=o(f,O)}for(q=m?f.next:E.next;!(I=e(q,E)).done;){try{A=C(I.value)}catch(w){l(E,"throw",w)}if(typeof A=="object"&&A&&s(v,A))return A}return new c(!1)},Wi}var Yi,vo;function Ph(){if(vo)return Yi;vo=1;var n=ae(),e=n("iterator"),r=!1;try{var t=0,i={next:function(){return{done:!!t++}},return:function(){r=!0}};i[e]=function(){return this},Array.from(i,function(){throw 2})}catch{}return Yi=function(a,s){try{if(!s&&!r)return!1}catch{return!1}var o=!1;try{var u={};u[e]=function(){return{next:function(){return{done:o=!0}}}},a(u)}catch{}return o},Yi}var Xi,go;function wl(){if(go)return Xi;go=1;var n=br(),e=Ph(),r=xr().CONSTRUCTOR;return Xi=r||!e(function(t){n.all(t).then(void 0,function(){})}),Xi}var po;function Ah(){if(po)return so;po=1;var n=he(),e=ne(),r=Fe(),t=Or(),i=rn(),a=Cl(),s=wl();return n({target:"Promise",stat:!0,forced:s},{all:function(u){var l=this,h=t.f(l),c=h.resolve,v=h.reject,f=i(function(){var g=r(l.resolve),d=[],p=0,y=1;a(u,function(m){var b=p++,x=!1;y++,e(g,l,m).then(function(S){x||(x=!0,d[b]=S,--y||c(d))},v)}),--y||c(d)});return f.error&&v(f.value),h.promise}}),so}var yo={},mo;function Ih(){if(mo)return yo;mo=1;var n=he(),e=Me(),r=xr().CONSTRUCTOR,t=br(),i=rr(),a=re(),s=tr(),o=t&&t.prototype;if(n({target:"Promise",proto:!0,forced:r,real:!0},{catch:function(l){return this.then(void 0,l)}}),!e&&a(t)){var u=i("Promise").prototype.catch;o.catch!==u&&s(o,"catch",u,{unsafe:!0})}return yo}var bo={},xo;function Nh(){if(xo)return bo;xo=1;var n=he(),e=ne(),r=Fe(),t=Or(),i=rn(),a=Cl(),s=wl();return n({target:"Promise",stat:!0,forced:s},{race:function(u){var l=this,h=t.f(l),c=h.reject,v=i(function(){var f=r(l.resolve);a(u,function(g){e(f,l,g).then(h.resolve,c)})});return v.error&&c(v.value),h.promise}}),bo}var Oo={},To;function _h(){if(To)return Oo;To=1;var n=he(),e=Or(),r=xr().CONSTRUCTOR;return n({target:"Promise",stat:!0,forced:r},{reject:function(i){var a=e.f(this),s=a.reject;return s(i),a.promise}}),Oo}var So={},Ki,Eo;function Mh(){if(Eo)return Ki;Eo=1;var n=le(),e=pe(),r=Or();return Ki=function(t,i){if(n(t),e(i)&&i.constructor===t)return i;var a=r.f(t),s=a.resolve;return s(i),a.promise},Ki}var Ro;function qh(){if(Ro)return So;Ro=1;var n=he(),e=rr(),r=Me(),t=br(),i=xr().CONSTRUCTOR,a=Mh(),s=e("Promise"),o=r&&!i;return n({target:"Promise",stat:!0,forced:r||i},{resolve:function(l){return a(o&&this===s?t:this,l)}}),So}var Co;function Dh(){return Co||(Co=1,Eh(),Ah(),Ih(),Nh(),_h(),qh()),cn}Dh();function wo(n,e,r,t,i,a,s){try{var o=n[a](s),u=o.value}catch(l){return void r(l)}o.done?e(u):Promise.resolve(u).then(t,i)}function Be(n){return function(){var e=this,r=arguments;return new Promise(function(t,i){var a=n.apply(e,r);function s(u){wo(a,t,i,s,o,"next",u)}function o(u){wo(a,t,i,s,o,"throw",u)}s(void 0)})}}var Po={},Ao={},Qi,Io;function qe(){if(Io)return Qi;Io=1;var n=Ja(),e=String;return Qi=function(r){if(n(r)==="Symbol")throw new TypeError("Cannot convert a Symbol value to a string");return e(r)},Qi}var Zi,No;function Pl(){if(No)return Zi;No=1;var n=le();return Zi=function(){var e=n(this),r="";return e.hasIndices&&(r+="d"),e.global&&(r+="g"),e.ignoreCase&&(r+="i"),e.multiline&&(r+="m"),e.dotAll&&(r+="s"),e.unicode&&(r+="u"),e.unicodeSets&&(r+="v"),e.sticky&&(r+="y"),r},Zi}var Ji,_o;function Al(){if(_o)return Ji;_o=1;var n=Z(),e=Q(),r=e.RegExp,t=n(function(){var s=r("a","y");return s.lastIndex=2,s.exec("abcd")!==null}),i=t||n(function(){return!r("a","y").sticky}),a=t||n(function(){var s=r("^r","gy");return s.lastIndex=2,s.exec("str")!==null});return Ji={BROKEN_CARET:a,MISSED_STICKY:i,UNSUPPORTED_Y:t},Ji}var ea={},ra,Mo;function Vh(){if(Mo)return ra;Mo=1;var n=dl(),e=Za();return ra=Object.keys||function(t){return n(t,e)},ra}var qo;function Lh(){if(qo)return ea;qo=1;var n=we(),e=cl(),r=Ye(),t=le(),i=pr(),a=Vh();return ea.f=n&&!e?Object.defineProperties:function(o,u){t(o);for(var l=i(u),h=a(u),c=h.length,v=0,f;c>v;)r.f(o,f=h[v++],l[f]);return o},ea}var ta,Do;function Gr(){if(Do)return ta;Do=1;var n=le(),e=Lh(),r=Za(),t=Ka(),i=Ol(),a=Dr(),s=Xa(),o=">",u="<",l="prototype",h="script",c=s("IE_PROTO"),v=function(){},f=function(m){return u+h+o+m+u+"/"+h+o},g=function(m){m.write(f("")),m.close();var b=m.parentWindow.Object;return m=null,b},d=function(){var m=a("iframe"),b="java"+h+":",x;return m.style.display="none",i.appendChild(m),m.src=String(b),x=m.contentWindow.document,x.open(),x.write(f("document.F=Object")),x.close(),x.F},p,y=function(){try{p=new ActiveXObject("htmlfile")}catch{}y=typeof document<"u"?document.domain&&p?g(p):d():g(p);for(var m=r.length;m--;)delete y[l][r[m]];return y()};return t[c]=!0,ta=Object.create||function(b,x){var S;return b!==null?(v[l]=n(b),S=new v,v[l]=null,S[c]=b):S=y(),x===void 0?S:e.f(S,x)},ta}var ia,Vo;function kh(){if(Vo)return ia;Vo=1;var n=Z(),e=Q(),r=e.RegExp;return ia=n(function(){var t=r(".","s");return!(t.dotAll&&t.test(`
|
|
2
2
|
`)&&t.flags==="s")}),ia}var aa,Lo;function jh(){if(Lo)return aa;Lo=1;var n=Z(),e=Q(),r=e.RegExp;return aa=n(function(){var t=r("(?<a>b)","g");return t.exec("b").groups.a!=="b"||"b".replace(t,"$<a>c")!=="bc"}),aa}var na,ko;function tn(){if(ko)return na;ko=1;var n=ne(),e=J(),r=qe(),t=Pl(),i=Al(),a=Wa(),s=Gr(),o=kr().get,u=kh(),l=jh(),h=a("native-string-replace",String.prototype.replace),c=RegExp.prototype.exec,v=c,f=e("".charAt),g=e("".indexOf),d=e("".replace),p=e("".slice),y=(function(){var S=/a/,E=/b*/g;return n(c,S,"a"),n(c,E,"a"),S.lastIndex!==0||E.lastIndex!==0})(),m=i.BROKEN_CARET,b=/()??/.exec("")[1]!==void 0,x=y||b||m||u||l;return x&&(v=function(E){var O=this,P=o(O),_=r(E),A=P.raw,q,I,j,C,w,U,L;if(A)return A.lastIndex=O.lastIndex,q=n(v,A,_),O.lastIndex=A.lastIndex,q;var V=P.groups,M=m&&O.sticky,N=n(t,O),k=O.source,z=0,H=_;if(M&&(N=d(N,"y",""),g(N,"g")===-1&&(N+="g"),H=p(_,O.lastIndex),O.lastIndex>0&&(!O.multiline||O.multiline&&f(_,O.lastIndex-1)!==`
|
|
3
3
|
`)&&(k="(?: "+k+")",H=" "+H,z++),I=new RegExp("^(?:"+k+")",N)),b&&(I=new RegExp("^"+k+"$(?!\\s)",N)),y&&(j=O.lastIndex),C=n(c,M?I:O,H),M?C?(C.input=p(C.input,z),C[0]=p(C[0],z),C.index=O.lastIndex,O.lastIndex+=C[0].length):O.lastIndex=0:y&&C&&(O.lastIndex=O.global?C.index+C[0].length:j),b&&C&&C.length>1&&n(h,C[0],I,function(){for(w=1;w<arguments.length-2;w++)arguments[w]===void 0&&(C[w]=void 0)}),C&&V)for(C.groups=U=s(null),w=0;w<V.length;w++)L=V[w],U[L[0]]=C[L[1]];return C}),na=v,na}var jo;function Bh(){if(jo)return Ao;jo=1;var n=he(),e=tn();return n({target:"RegExp",proto:!0,forced:/./.exec!==e},{exec:e}),Ao}var sa,Bo;function an(){if(Bo)return sa;Bo=1,Bh();var n=ne(),e=tr(),r=tn(),t=Z(),i=ae(),a=mr(),s=i("species"),o=RegExp.prototype;return sa=function(u,l,h,c){var v=i(u),f=!t(function(){var y={};return y[v]=function(){return 7},""[u](y)!==7}),g=f&&!t(function(){var y=!1,m=/a/;return u==="split"&&(m={},m.constructor={},m.constructor[s]=function(){return m},m.flags="",m[v]=/./[v]),m.exec=function(){return y=!0,null},m[v](""),!y});if(!f||!g||h){var d=/./[v],p=l(v,""[u],function(y,m,b,x,S){var E=m.exec;return E===r||E===o.exec?f&&!S?{done:!0,value:n(d,m,b,x)}:{done:!0,value:n(y,b,m,x)}:{done:!1}});e(String.prototype,u,p[0]),e(o,v,p[1])}c&&a(o[v],"sham",!0)},sa}var oa,Fo;function Fh(){if(Fo)return oa;Fo=1;var n=J(),e=jr(),r=qe(),t=Pe(),i=n("".charAt),a=n("".charCodeAt),s=n("".slice),o=function(u){return function(l,h){var c=r(t(l)),v=e(h),f=c.length,g,d;return v<0||v>=f?u?"":void 0:(g=a(c,v),g<55296||g>56319||v+1===f||(d=a(c,v+1))<56320||d>57343?u?i(c,v):g:u?s(c,v,v+2):(g-55296<<10)+(d-56320)+65536)}};return oa={codeAt:o(!1),charAt:o(!0)},oa}var ua,Uo;function nn(){if(Uo)return ua;Uo=1;var n=Fh().charAt;return ua=function(e,r,t){return r+(t?n(e,r).length:1)},ua}var la,Go;function Uh(){if(Go)return la;Go=1;var n=Q(),e=Z(),r=n.RegExp,t=!e(function(){var i=!0;try{r(".","d")}catch{i=!1}var a={},s="",o=i?"dgimsy":"gimsy",u=function(v,f){Object.defineProperty(a,v,{get:function(){return s+=f,!0}})},l={dotAll:"s",global:"g",ignoreCase:"i",multiline:"m",sticky:"y"};i&&(l.hasIndices="d");for(var h in l)u(h,l[h]);var c=Object.getOwnPropertyDescriptor(r.prototype,"flags").get.call(a);return c!==o||s!==o});return la={correct:t},la}var ha,$o;function sn(){if($o)return ha;$o=1;var n=ne(),e=Ae(),r=_r(),t=Uh(),i=Pl(),a=RegExp.prototype;return ha=t.correct?function(s){return s.flags}:function(s){return!t.correct&&r(a,s)&&!e(s,"flags")?n(i,s):s.flags},ha}var fa,zo;function on(){if(zo)return fa;zo=1;var n=ne(),e=le(),r=re(),t=er(),i=tn(),a=TypeError;return fa=function(s,o){var u=s.exec;if(r(u)){var l=n(u,s,o);return l!==null&&e(l),l}if(t(s)==="RegExp")return n(i,s,o);throw new a("RegExp#exec called on incompatible receiver")},fa}var Ho;function Gh(){if(Ho)return Po;Ho=1;var n=ne(),e=J(),r=an(),t=le(),i=pe(),a=or(),s=qe(),o=Pe(),u=sr(),l=nn(),h=sn(),c=on(),v=e("".indexOf);return r("match",function(f,g,d){return[function(y){var m=o(this),b=i(y)?u(y,f):void 0;return b?n(b,y,m):new RegExp(y)[f](s(m))},function(p){var y=t(this),m=s(p),b=d(g,y,m);if(b.done)return b.value;var x=s(h(y));if(v(x,"g")===-1)return c(y,m);var S=v(x,"u")!==-1;y.lastIndex=0;for(var E=[],O=0,P;(P=c(y,m))!==null;){var _=s(P[0]);E[O]=_,_===""&&(y.lastIndex=l(m,a(y.lastIndex),S)),O++}return O===0?null:E}]}),Po}Gh();var Wo={},ca,Yo;function $h(){if(Yo)return ca;Yo=1;var n=J(),e=qr(),r=Math.floor,t=n("".charAt),i=n("".replace),a=n("".slice),s=/\$([$&'`]|\d{1,2}|<[^>]*>)/g,o=/\$([$&'`]|\d{1,2})/g;return ca=function(u,l,h,c,v,f){var g=h+u.length,d=c.length,p=o;return v!==void 0&&(v=e(v),p=s),i(f,p,function(y,m){var b;switch(t(m,0)){case"$":return"$";case"&":return u;case"`":return a(l,0,h);case"'":return a(l,g);case"<":b=v[a(m,1,-1)];break;default:var x=+m;if(x===0)return y;if(x>d){var S=r(x/10);return S===0?y:S<=d?c[S-1]===void 0?t(m,1):c[S-1]+t(m,1):y}b=c[x-1]}return b===void 0?"":b})},ca}var Xo;function zh(){if(Xo)return Wo;Xo=1;var n=xl(),e=ne(),r=J(),t=an(),i=Z(),a=le(),s=re(),o=pe(),u=jr(),l=or(),h=qe(),c=Pe(),v=nn(),f=sr(),g=$h(),d=sn(),p=on(),y=ae(),m=y("replace"),b=Math.max,x=Math.min,S=r([].concat),E=r([].push),O=r("".indexOf),P=r("".slice),_=function(j){return j===void 0?j:String(j)},A=(function(){return"a".replace(/./,"$0")==="$0"})(),q=(function(){return/./[m]?/./[m]("a","$0")==="":!1})(),I=!i(function(){var j=/./;return j.exec=function(){var C=[];return C.groups={a:"7"},C},"".replace(j,"$<a>")!=="7"});return t("replace",function(j,C,w){var U=q?"$":"$0";return[function(V,M){var N=c(this),k=o(V)?f(V,m):void 0;return k?e(k,V,N,M):e(C,h(N),V,M)},function(L,V){var M=a(this),N=h(L);if(typeof V=="string"&&O(V,U)===-1&&O(V,"$<")===-1){var k=w(C,M,N,V);if(k.done)return k.value}var z=s(V);z||(V=h(V));var H=h(d(M)),X=O(H,"g")!==-1,se;X&&(se=O(H,"u")!==-1,M.lastIndex=0);for(var be=[],oe;oe=p(M,N),!(oe===null||(E(be,oe),!X));){var Ue=h(oe[0]);Ue===""&&(M.lastIndex=v(N,l(M.lastIndex),se))}for(var Ge="",fe=0,Ne=0;Ne<be.length;Ne++){oe=be[Ne];for(var _e=h(oe[0]),me=b(x(u(oe.index),N.length),0),ce=[],xe,De=1;De<oe.length;De++)E(ce,_(oe[De]));var Ve=oe.groups;if(z){var Xe=S([_e],ce,me,N);Ve!==void 0&&E(Xe,Ve),xe=h(n(V,void 0,Xe))}else xe=g(_e,N,me,ce,Ve,V);me>=fe&&(Ge+=P(N,fe,me)+xe,fe=me+_e.length)}return Ge+P(N,fe)}]},!I||!A||q),Wo}zh();var Ko={},va,Qo;function Hh(){if(Qo)return va;Qo=1;var n=pe(),e=er(),r=ae(),t=r("match");return va=function(i){var a;return n(i)&&((a=i[t])!==void 0?!!a:e(i)==="RegExp")},va}var ga,Zo;function un(){if(Zo)return ga;Zo=1;var n=Hh(),e=TypeError;return ga=function(r){if(n(r))throw new e("The method doesn't accept regular expressions");return r},ga}var da,Jo;function ln(){if(Jo)return da;Jo=1;var n=ae(),e=n("match");return da=function(r){var t=/./;try{"/./"[r](t)}catch{try{return t[e]=!1,"/./"[r](t)}catch{}}return!1},da}var eu;function Wh(){if(eu)return Ko;eu=1;var n=he(),e=Ur(),r=Vr().f,t=or(),i=qe(),a=un(),s=Pe(),o=ln(),u=Me(),l=e("".slice),h=Math.min,c=o("startsWith"),v=!u&&!c&&!!(function(){var f=r(String.prototype,"startsWith");return f&&!f.writable})();return n({target:"String",proto:!0,forced:!v&&!c},{startsWith:function(g){var d=i(s(this));a(g);var p=t(h(arguments.length>1?arguments[1]:void 0,d.length)),y=i(g);return l(d,p,p+y.length)===y}}),Ko}Wh();var pa,ru;function Yh(){if(ru)return pa;ru=1;var n=ae(),e=Gr(),r=Ye().f,t=n("unscopables"),i=Array.prototype;return i[t]===void 0&&r(i,t,{configurable:!0,value:e(null)}),pa=function(a){i[t][a]=!0},pa}var ya,tu;function Xh(){if(tu)return ya;tu=1;var n=Z();return ya=!n(function(){function e(){}return e.prototype.constructor=null,Object.getPrototypeOf(new e)!==e.prototype}),ya}var ma,iu;function Il(){if(iu)return ma;iu=1;var n=Ae(),e=re(),r=qr(),t=Xa(),i=Xh(),a=t("IE_PROTO"),s=Object,o=s.prototype;return ma=i?s.getPrototypeOf:function(u){var l=r(u);if(n(l,a))return l[a];var h=l.constructor;return e(h)&&l instanceof h?h.prototype:l instanceof s?o:null},ma}var ba,au;function Nl(){if(au)return ba;au=1;var n=Z(),e=re(),r=pe(),t=Gr(),i=Il(),a=tr(),s=ae(),o=Me(),u=s("iterator"),l=!1,h,c,v;[].keys&&(v=[].keys(),"next"in v?(c=i(i(v)),c!==Object.prototype&&(h=c)):l=!0);var f=!r(h)||n(function(){var g={};return h[u].call(g)!==g});return f?h={}:o&&(h=t(h)),e(h[u])||a(h,u,function(){return this}),ba={IteratorPrototype:h,BUGGY_SAFARI_ITERATORS:l},ba}var xa,nu;function Kh(){if(nu)return xa;nu=1;var n=Nl().IteratorPrototype,e=Gr(),r=Ga(),t=Fr(),i=Tr(),a=function(){return this};return xa=function(s,o,u,l){var h=o+" Iterator";return s.prototype=e(n,{next:r(+!l,u)}),t(s,h,!1,!0),i[h]=a,s},xa}var Oa,su;function Qh(){if(su)return Oa;su=1;var n=he(),e=ne(),r=Me(),t=Lr(),i=re(),a=Kh(),s=Il(),o=ml(),u=Fr(),l=mr(),h=tr(),c=ae(),v=Tr(),f=Nl(),g=t.PROPER,d=t.CONFIGURABLE,p=f.IteratorPrototype,y=f.BUGGY_SAFARI_ITERATORS,m=c("iterator"),b="keys",x="values",S="entries",E=function(){return this};return Oa=function(O,P,_,A,q,I,j){a(_,P,A);var C=function(X){if(X===q&&M)return M;if(!y&&X&&X in L)return L[X];switch(X){case b:return function(){return new _(this,X)};case x:return function(){return new _(this,X)};case S:return function(){return new _(this,X)}}return function(){return new _(this)}},w=P+" Iterator",U=!1,L=O.prototype,V=L[m]||L["@@iterator"]||q&&L[q],M=!y&&V||C(q),N=P==="Array"&&L.entries||V,k,z,H;if(N&&(k=s(N.call(new O)),k!==Object.prototype&&k.next&&(!r&&s(k)!==p&&(o?o(k,p):i(k[m])||h(k,m,E)),u(k,w,!0,!0),r&&(v[w]=E))),g&&q===x&&V&&V.name!==x&&(!r&&d?l(L,"name",x):(U=!0,M=function(){return e(V,this)})),q)if(z={values:C(x),keys:I?M:C(b),entries:C(S)},j)for(H in z)(y||U||!(H in L))&&h(L,H,z[H]);else n({target:P,proto:!0,forced:y||U},z);return(!r||j)&&L[m]!==M&&h(L,m,M,{name:q}),v[P]=M,z},Oa}var Ta,ou;function Zh(){return ou||(ou=1,Ta=function(n,e){return{value:n,done:e}}),Ta}var Sa,uu;function _l(){if(uu)return Sa;uu=1;var n=pr(),e=Yh(),r=Tr(),t=kr(),i=Ye().f,a=Qh(),s=Zh(),o=Me(),u=we(),l="Array Iterator",h=t.set,c=t.getterFor(l);Sa=a(Array,"Array",function(f,g){h(this,{type:l,target:n(f),index:0,kind:g})},function(){var f=c(this),g=f.target,d=f.index++;if(!g||d>=g.length)return f.target=null,s(void 0,!0);switch(f.kind){case"keys":return s(d,!1);case"values":return s(g[d],!1)}return s([d,g[d]],!1)},"values");var v=r.Arguments=r.Array;if(e("keys"),e("values"),e("entries"),!o&&u&&v.name!=="values")try{i(v,"name",{value:"values"})}catch{}return Sa}_l();var lu={},Ea,hu;function Jh(){return hu||(hu=1,Ea={CSSRuleList:0,CSSStyleDeclaration:0,CSSValueList:0,ClientRectList:0,DOMRectList:0,DOMStringList:0,DOMTokenList:1,DataTransferItemList:0,FileList:0,HTMLAllCollection:0,HTMLCollection:0,HTMLFormElement:0,HTMLSelectElement:0,MediaList:0,MimeTypeArray:0,NamedNodeMap:0,NodeList:1,PaintRequestList:0,Plugin:0,PluginArray:0,SVGLengthList:0,SVGNumberList:0,SVGPathSegList:0,SVGPointList:0,SVGStringList:0,SVGTransformList:0,SourceBufferList:0,StyleSheetList:0,TextTrackCueList:0,TextTrackList:0,TouchList:0}),Ea}var Ra,fu;function ef(){if(fu)return Ra;fu=1;var n=Dr(),e=n("span").classList,r=e&&e.constructor&&e.constructor.prototype;return Ra=r===Object.prototype?void 0:r,Ra}var cu;function rf(){if(cu)return lu;cu=1;var n=Q(),e=Jh(),r=ef(),t=_l(),i=mr(),a=Fr(),s=ae(),o=s("iterator"),u=t.values,l=function(c,v){if(c){if(c[o]!==u)try{i(c,o,u)}catch{c[o]=u}if(a(c,v,!0),e[v]){for(var f in t)if(c[f]!==t[f])try{i(c,f,t[f])}catch{c[f]=t[f]}}}};for(var h in e)l(n[h]&&n[h].prototype,h);return l(r,"DOMTokenList"),lu}rf();var vu={},Ca,gu;function tf(){if(gu)return Ca;gu=1;var n=Fe(),e=qr(),r=nl(),t=Qa(),i=TypeError,a="Reduce of empty array with no initial value",s=function(o){return function(u,l,h,c){var v=e(u),f=r(v),g=t(v);if(n(l),g===0&&h<2)throw new i(a);var d=o?g-1:0,p=o?-1:1;if(h<2)for(;;){if(d in f){c=f[d],d+=p;break}if(d+=p,o?d<0:g<=d)throw new i(a)}for(;o?d>=0:g>d;d+=p)d in f&&(c=l(c,f[d],d,v));return c}};return Ca={left:s(!1),right:s(!0)},Ca}var wa,du;function Ml(){if(du)return wa;du=1;var n=Z();return wa=function(e,r){var t=[][e];return!!t&&n(function(){t.call(null,r||function(){return 1},1)})},wa}var pu;function af(){if(pu)return vu;pu=1;var n=he(),e=tf().left,r=Ml(),t=$a(),i=Br(),a=!i&&t>79&&t<83,s=a||!r("reduce");return n({target:"Array",proto:!0,forced:s},{reduce:function(u){var l=arguments.length;return e(this,u,l,l>1?arguments[1]:void 0)}}),vu}af();var yu={},mu;function nf(){if(mu)return yu;mu=1;var n=he(),e=Ur(),r=Vr().f,t=or(),i=qe(),a=un(),s=Pe(),o=ln(),u=Me(),l=e("".slice),h=Math.min,c=o("endsWith"),v=!u&&!c&&!!(function(){var f=r(String.prototype,"endsWith");return f&&!f.writable})();return n({target:"String",proto:!0,forced:!v&&!c},{endsWith:function(g){var d=i(s(this));a(g);var p=arguments.length>1?arguments[1]:void 0,y=d.length,m=p===void 0?y:h(t(p),y),b=i(g);return l(d,m-b.length,m)===b}}),yu}nf();var bu={},xu;function sf(){if(xu)return bu;xu=1;var n=ne(),e=J(),r=an(),t=le(),i=pe(),a=Pe(),s=bl(),o=nn(),u=or(),l=qe(),h=sr(),c=on(),v=Al(),f=Z(),g=v.UNSUPPORTED_Y,d=4294967295,p=Math.min,y=e([].push),m=e("".slice),b=!f(function(){var S=/(?:)/,E=S.exec;S.exec=function(){return E.apply(this,arguments)};var O="ab".split(S);return O.length!==2||O[0]!=="a"||O[1]!=="b"}),x="abbc".split(/(b)*/)[1]==="c"||"test".split(/(?:)/,-1).length!==4||"ab".split(/(?:ab)*/).length!==2||".".split(/(.?)(.?)/).length!==4||".".split(/()()/).length>1||"".split(/.?/).length;return r("split",function(S,E,O){var P="0".split(void 0,0).length?function(_,A){return _===void 0&&A===0?[]:n(E,this,_,A)}:E;return[function(A,q){var I=a(this),j=i(A)?h(A,S):void 0;return j?n(j,A,I,q):n(P,l(I),A,q)},function(_,A){var q=t(this),I=l(_);if(!x){var j=O(P,q,I,A,P!==E);if(j.done)return j.value}var C=s(q,RegExp),w=q.unicode,U=(q.ignoreCase?"i":"")+(q.multiline?"m":"")+(q.unicode?"u":"")+(g?"g":"y"),L=new C(g?"^(?:"+q.source+")":q,U),V=A===void 0?d:A>>>0;if(V===0)return[];if(I.length===0)return c(L,I)===null?[I]:[];for(var M=0,N=0,k=[];N<I.length;){L.lastIndex=g?0:N;var z=c(L,g?m(I,N):I),H;if(z===null||(H=p(u(L.lastIndex+(g?N:0)),I.length))===M)N=o(I,N,w);else{if(y(k,m(I,M,N)),k.length===V)return k;for(var X=1;X<=z.length-1;X++)if(y(k,z[X]),k.length===V)return k;N=M=H}}return y(k,m(I,M)),k}]},x||!b,g),bu}sf();var gr={exports:{}},Ze={exports:{}},of=Ze.exports,Ou;function uf(){return Ou||(Ou=1,(function(){var n,e,r,t,i,a;typeof performance<"u"&&performance!==null&&performance.now?Ze.exports=function(){return performance.now()}:typeof ar<"u"&&ar!==null&&ar.hrtime?(Ze.exports=function(){return(n()-i)/1e6},e=ar.hrtime,n=function(){var s;return s=e(),s[0]*1e9+s[1]},t=n(),a=ar.uptime()*1e9,i=t-a):Date.now?(Ze.exports=function(){return Date.now()-r},r=Date.now()):(Ze.exports=function(){return new Date().getTime()-r},r=new Date().getTime())}).call(of)),Ze.exports}var Tu;function lf(){if(Tu)return gr.exports;Tu=1;for(var n=uf(),e=typeof window>"u"?La:window,r=["moz","webkit"],t="AnimationFrame",i=e["request"+t],a=e["cancel"+t]||e["cancelRequest"+t],s=0;!i&&s<r.length;s++)i=e[r[s]+"Request"+t],a=e[r[s]+"Cancel"+t]||e[r[s]+"CancelRequest"+t];if(!i||!a){var o=0,u=0,l=[],h=1e3/60;i=function(c){if(l.length===0){var v=n(),f=Math.max(0,h-(v-o));o=f+v,setTimeout(function(){var g=l.slice(0);l.length=0;for(var d=0;d<g.length;d++)if(!g[d].cancelled)try{g[d].callback(o)}catch(p){setTimeout(function(){throw p},0)}},Math.round(f))}return l.push({handle:++u,callback:c,cancelled:!1}),u},a=function(c){for(var v=0;v<l.length;v++)l[v].handle===c&&(l[v].cancelled=!0)}}return gr.exports=function(c){return i.call(e,c)},gr.exports.cancel=function(){a.apply(e,arguments)},gr.exports.polyfill=function(c){c||(c=e),c.requestAnimationFrame=i,c.cancelAnimationFrame=a},gr.exports}var hf=lf();const Pa=al(hf);var Su={},Aa,Eu;function ql(){return Eu||(Eu=1,Aa=`
|
|
4
4
|
\v\f\r \u2028\u2029\uFEFF`),Aa}var Ia,Ru;function ff(){if(Ru)return Ia;Ru=1;var n=J(),e=Pe(),r=qe(),t=ql(),i=n("".replace),a=RegExp("^["+t+"]+"),s=RegExp("(^|[^"+t+"])["+t+"]+$"),o=function(u){return function(l){var h=r(e(l));return u&1&&(h=i(h,a,"")),u&2&&(h=i(h,s,"$1")),h}};return Ia={start:o(1),end:o(2),trim:o(3)},Ia}var Na,Cu;function cf(){if(Cu)return Na;Cu=1;var n=Lr().PROPER,e=Z(),r=ql(),t="
";return Na=function(i){return e(function(){return!!r[i]()||t[i]()!==t||n&&r[i].name!==i})},Na}var wu;function vf(){if(wu)return Su;wu=1;var n=he(),e=ff().trim,r=cf();return n({target:"String",proto:!0,forced:r("trim")},{trim:function(){return e(this)}}),Su}vf();var _a,Pu;function gf(){return Pu||(Pu=1,_a=function(n){this.ok=!1,this.alpha=1,n.charAt(0)=="#"&&(n=n.substr(1,6)),n=n.replace(/ /g,""),n=n.toLowerCase();var e={aliceblue:"f0f8ff",antiquewhite:"faebd7",aqua:"00ffff",aquamarine:"7fffd4",azure:"f0ffff",beige:"f5f5dc",bisque:"ffe4c4",black:"000000",blanchedalmond:"ffebcd",blue:"0000ff",blueviolet:"8a2be2",brown:"a52a2a",burlywood:"deb887",cadetblue:"5f9ea0",chartreuse:"7fff00",chocolate:"d2691e",coral:"ff7f50",cornflowerblue:"6495ed",cornsilk:"fff8dc",crimson:"dc143c",cyan:"00ffff",darkblue:"00008b",darkcyan:"008b8b",darkgoldenrod:"b8860b",darkgray:"a9a9a9",darkgreen:"006400",darkkhaki:"bdb76b",darkmagenta:"8b008b",darkolivegreen:"556b2f",darkorange:"ff8c00",darkorchid:"9932cc",darkred:"8b0000",darksalmon:"e9967a",darkseagreen:"8fbc8f",darkslateblue:"483d8b",darkslategray:"2f4f4f",darkturquoise:"00ced1",darkviolet:"9400d3",deeppink:"ff1493",deepskyblue:"00bfff",dimgray:"696969",dodgerblue:"1e90ff",feldspar:"d19275",firebrick:"b22222",floralwhite:"fffaf0",forestgreen:"228b22",fuchsia:"ff00ff",gainsboro:"dcdcdc",ghostwhite:"f8f8ff",gold:"ffd700",goldenrod:"daa520",gray:"808080",green:"008000",greenyellow:"adff2f",honeydew:"f0fff0",hotpink:"ff69b4",indianred:"cd5c5c",indigo:"4b0082",ivory:"fffff0",khaki:"f0e68c",lavender:"e6e6fa",lavenderblush:"fff0f5",lawngreen:"7cfc00",lemonchiffon:"fffacd",lightblue:"add8e6",lightcoral:"f08080",lightcyan:"e0ffff",lightgoldenrodyellow:"fafad2",lightgrey:"d3d3d3",lightgreen:"90ee90",lightpink:"ffb6c1",lightsalmon:"ffa07a",lightseagreen:"20b2aa",lightskyblue:"87cefa",lightslateblue:"8470ff",lightslategray:"778899",lightsteelblue:"b0c4de",lightyellow:"ffffe0",lime:"00ff00",limegreen:"32cd32",linen:"faf0e6",magenta:"ff00ff",maroon:"800000",mediumaquamarine:"66cdaa",mediumblue:"0000cd",mediumorchid:"ba55d3",mediumpurple:"9370d8",mediumseagreen:"3cb371",mediumslateblue:"7b68ee",mediumspringgreen:"00fa9a",mediumturquoise:"48d1cc",mediumvioletred:"c71585",midnightblue:"191970",mintcream:"f5fffa",mistyrose:"ffe4e1",moccasin:"ffe4b5",navajowhite:"ffdead",navy:"000080",oldlace:"fdf5e6",olive:"808000",olivedrab:"6b8e23",orange:"ffa500",orangered:"ff4500",orchid:"da70d6",palegoldenrod:"eee8aa",palegreen:"98fb98",paleturquoise:"afeeee",palevioletred:"d87093",papayawhip:"ffefd5",peachpuff:"ffdab9",peru:"cd853f",pink:"ffc0cb",plum:"dda0dd",powderblue:"b0e0e6",purple:"800080",rebeccapurple:"663399",red:"ff0000",rosybrown:"bc8f8f",royalblue:"4169e1",saddlebrown:"8b4513",salmon:"fa8072",sandybrown:"f4a460",seagreen:"2e8b57",seashell:"fff5ee",sienna:"a0522d",silver:"c0c0c0",skyblue:"87ceeb",slateblue:"6a5acd",slategray:"708090",snow:"fffafa",springgreen:"00ff7f",steelblue:"4682b4",tan:"d2b48c",teal:"008080",thistle:"d8bfd8",tomato:"ff6347",turquoise:"40e0d0",violet:"ee82ee",violetred:"d02090",wheat:"f5deb3",white:"ffffff",whitesmoke:"f5f5f5",yellow:"ffff00",yellowgreen:"9acd32"};n=e[n]||n;for(var r=[{re:/^rgba\((\d{1,3}),\s*(\d{1,3}),\s*(\d{1,3}),\s*((?:\d?\.)?\d)\)$/,example:["rgba(123, 234, 45, 0.8)","rgba(255,234,245,1.0)"],process:function(u){return[parseInt(u[1]),parseInt(u[2]),parseInt(u[3]),parseFloat(u[4])]}},{re:/^rgb\((\d{1,3}),\s*(\d{1,3}),\s*(\d{1,3})\)$/,example:["rgb(123, 234, 45)","rgb(255,234,245)"],process:function(u){return[parseInt(u[1]),parseInt(u[2]),parseInt(u[3])]}},{re:/^([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})$/,example:["#00ff00","336699"],process:function(u){return[parseInt(u[1],16),parseInt(u[2],16),parseInt(u[3],16)]}},{re:/^([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})$/,example:["#fb0","f0f"],process:function(u){return[parseInt(u[1]+u[1],16),parseInt(u[2]+u[2],16),parseInt(u[3]+u[3],16)]}}],t=0;t<r.length;t++){var i=r[t].re,a=r[t].process,s=i.exec(n);if(s){var o=a(s);this.r=o[0],this.g=o[1],this.b=o[2],o.length>3&&(this.alpha=o[3]),this.ok=!0}}this.r=this.r<0||isNaN(this.r)?0:this.r>255?255:this.r,this.g=this.g<0||isNaN(this.g)?0:this.g>255?255:this.g,this.b=this.b<0||isNaN(this.b)?0:this.b>255?255:this.b,this.alpha=this.alpha<0?0:this.alpha>1||isNaN(this.alpha)?1:this.alpha,this.toRGB=function(){return"rgb("+this.r+", "+this.g+", "+this.b+")"},this.toRGBA=function(){return"rgba("+this.r+", "+this.g+", "+this.b+", "+this.alpha+")"},this.toHex=function(){var u=this.r.toString(16),l=this.g.toString(16),h=this.b.toString(16);return u.length==1&&(u="0"+u),l.length==1&&(l="0"+l),h.length==1&&(h="0"+h),"#"+u+l+h},this.getHelpXML=function(){for(var u=new Array,l=0;l<r.length;l++)for(var h=r[l].example,c=0;c<h.length;c++)u[u.length]=h[c];for(var v in e)u[u.length]=v;var f=document.createElement("ul");f.setAttribute("id","rgbcolor-examples");for(var l=0;l<u.length;l++)try{var g=document.createElement("li"),d=new RGBColor(u[l]),p=document.createElement("div");p.style.cssText="margin: 3px; border: 1px solid black; background:"+d.toHex()+"; color:"+d.toHex(),p.appendChild(document.createTextNode("test"));var y=document.createTextNode(" "+u[l]+" -> "+d.toRGB()+" -> "+d.toHex());g.appendChild(p),g.appendChild(y),f.appendChild(g)}catch{}return f}}),_a}var df=gf();const ka=al(df);var Au={},Iu;function pf(){if(Iu)return Au;Iu=1;var n=he(),e=Ur(),r=gl().indexOf,t=Ml(),i=e([].indexOf),a=!!i&&1/i([1],1,-0)<0,s=a||!t("indexOf");return n({target:"Array",proto:!0,forced:s},{indexOf:function(u){var l=arguments.length>1?arguments[1]:void 0;return a?i(this,u,l)||0:r(this,u,l)}}),Au}pf();var Nu={},_u;function yf(){if(_u)return Nu;_u=1;var n=he(),e=J(),r=un(),t=Pe(),i=qe(),a=ln(),s=e("".indexOf);return n({target:"String",proto:!0,forced:!a("includes")},{includes:function(u){return!!~s(i(t(this)),i(r(u)),arguments.length>1?arguments[1]:void 0)}}),Nu}yf();var Mu={},Ma,qu;function mf(){if(qu)return Ma;qu=1;var n=er();return Ma=Array.isArray||function(r){return n(r)==="Array"},Ma}var Du;function bf(){if(Du)return Mu;Du=1;var n=he(),e=J(),r=mf(),t=e([].reverse),i=[1,2];return n({target:"Array",proto:!0,forced:String(i)===String(i.reverse())},{reverse:function(){return r(this)&&(this.length=this.length),t(this)}}),Mu}bf();/*! *****************************************************************************
|
package/dist/index.html
CHANGED
|
@@ -5,7 +5,7 @@
|
|
|
5
5
|
<link rel="icon" href="/icons/accounter-logo.svg" />
|
|
6
6
|
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
|
|
7
7
|
<title>Accounter</title>
|
|
8
|
-
<script type="module" crossorigin src="/assets/index-
|
|
8
|
+
<script type="module" crossorigin src="/assets/index-BRRX0BBT.js"></script>
|
|
9
9
|
<link rel="stylesheet" crossorigin href="/assets/index-DfCyUsXC.css">
|
|
10
10
|
</head>
|
|
11
11
|
<body>
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@accounter/client",
|
|
3
|
-
"version": "0.0.7-alpha-
|
|
3
|
+
"version": "0.0.7-alpha-20250918074155-11e13b936e7ade13c8c711762b598f32497843e4",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"scripts": {
|
|
@@ -38,7 +38,7 @@
|
|
|
38
38
|
"@radix-ui/react-tabs": "1.1.13",
|
|
39
39
|
"@radix-ui/react-toggle": "1.1.10",
|
|
40
40
|
"@radix-ui/react-tooltip": "1.2.8",
|
|
41
|
-
"@tanstack/react-query": "5.
|
|
41
|
+
"@tanstack/react-query": "5.89.0",
|
|
42
42
|
"@tanstack/react-table": "8.21.3",
|
|
43
43
|
"@urql/exchange-auth": "3.0.0",
|
|
44
44
|
"chart.js": "4.5.0",
|