@esri/solutions-components 1.1.0-next.20250818 → 1.1.0-next.20250819
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/cdn/{BBOFQYSI.js → 24BDVPNH.js} +2 -2
- package/dist/cdn/{SIUTUIBK.js → 2CEVCB6G.js} +2 -2
- package/dist/cdn/{KVGTI5QA.js → 2KLVK3DF.js} +2 -2
- package/dist/cdn/{F4ZZRUWR.js → 2NX64ETW.js} +2 -2
- package/dist/cdn/{INBZA4PD.js → 2PX7QCE5.js} +2 -2
- package/dist/cdn/{YL66GN2Y.js → 2QN6VCK5.js} +2 -2
- package/dist/cdn/{PCYKZD5L.js → 2XM25TAX.js} +2 -2
- package/dist/cdn/{ADH4AX7Q.js → 34E2LY63.js} +2 -2
- package/dist/cdn/{SPI5UOFW.js → 3HMTTM32.js} +2 -2
- package/dist/cdn/{FD4NI5CR.js → 3KRR3EWC.js} +2 -2
- package/dist/cdn/{KX7NEVCY.js → 3NDKI6NH.js} +2 -2
- package/dist/cdn/{BNC6L2YK.js → 3OHVOUJI.js} +2 -2
- package/dist/cdn/3R27T5NF.js +4 -0
- package/dist/cdn/{67EYEWRI.js → 3T3QPZTS.js} +1 -1
- package/dist/cdn/{62UEKGMB.js → 3VJ2UAF3.js} +2 -2
- package/dist/cdn/{AWSF3FLP.js → 3Z752QPI.js} +2 -2
- package/dist/cdn/{DUGVJ3DH.js → 3ZSBXV3T.js} +2 -2
- package/dist/cdn/{U3JJMI52.js → 4ACHVJAT.js} +2 -2
- package/dist/cdn/{C5VCROIZ.js → 4BBJTWZM.js} +2 -2
- package/dist/cdn/{PCNVSKMW.js → 4NXWAPLL.js} +2 -2
- package/dist/cdn/{DT6EEEKP.js → 4RPS5OUS.js} +2 -2
- package/dist/cdn/4TAO7CZ6.js +18 -0
- package/dist/cdn/{HH54FB6Q.js → 4VMTPD3X.js} +2 -2
- package/dist/cdn/{OISZDHT5.js → 4XQLIJVE.js} +2 -2
- package/dist/cdn/{4Y3ESBVN.js → 4XY265GH.js} +2 -2
- package/dist/cdn/{FPZJX6ZR.js → 52DTSHHU.js} +3 -3
- package/dist/cdn/56HI5OZX.js +4 -0
- package/dist/cdn/{GV4WSWWJ.js → 57MRFRBK.js} +1 -1
- package/dist/cdn/{WLTGE5IP.js → 5GSANUEI.js} +2 -2
- package/dist/cdn/{D3RNWLZZ.js → 5PAFS5IG.js} +2 -2
- package/dist/cdn/5U4JK67I.js +4 -0
- package/dist/cdn/{GMSO7XSN.js → 5UQVMELP.js} +2 -2
- package/dist/cdn/{KD7R6SE5.js → 654EUDXI.js} +2 -2
- package/dist/cdn/{RPEKDGLF.js → 65YWJHM4.js} +2 -2
- package/dist/cdn/{XBSJRLOR.js → 67XBBPRO.js} +1 -1
- package/dist/cdn/{X5W7YYAG.js → 6I65R44J.js} +1 -1
- package/dist/cdn/{WFIE3NVJ.js → 6LCQVOOF.js} +2 -2
- package/dist/cdn/{LMSKXNKA.js → 6LX6EBYJ.js} +2 -2
- package/dist/cdn/{4UE66F3J.js → 6U3K5YN7.js} +2 -2
- package/dist/cdn/{ME3AJWAA.js → 6VYGTDV4.js} +2 -2
- package/dist/cdn/{UYNFGAMY.js → 72XFI4RT.js} +2 -2
- package/dist/cdn/{INGTJOFW.js → 742IZCHX.js} +2 -2
- package/dist/cdn/{M5UQNDPQ.js → 7BTFQ7GB.js} +2 -2
- package/dist/cdn/{YIGNOL2J.js → 7DM3LKUS.js} +2 -2
- package/dist/cdn/{UZNINYDJ.js → 7MLPJTWX.js} +2 -2
- package/dist/cdn/{6CFB563X.js → 7MM6S4IL.js} +1 -1
- package/dist/cdn/7QS77URH.js +18 -0
- package/dist/cdn/{UPWRM3QA.js → 7XCWJLB2.js} +2 -2
- package/dist/cdn/{IZUBTNJH.js → 7XT6DNUL.js} +1 -1
- package/dist/cdn/{BA3EUAIL.js → A3O6JMNA.js} +2 -2
- package/dist/cdn/A6AHNC5I.js +4 -0
- package/dist/cdn/{TDRPNFQG.js → A76UWUIW.js} +2 -2
- package/dist/cdn/{SDHMDRBG.js → ACRCQUQS.js} +2 -2
- package/dist/cdn/{TYEXQ25P.js → AFKXBLKS.js} +2 -2
- package/dist/cdn/{2B2N2WJX.js → AMXYZ4OK.js} +1 -1
- package/dist/cdn/{SGWTQLXQ.js → ANCO2LXL.js} +2 -2
- package/dist/cdn/{QLQ5MXCS.js → ANEQF73J.js} +2 -2
- package/dist/cdn/ATSKQV75.js +4 -0
- package/dist/cdn/{ISECMQZA.js → AXWVCHHB.js} +2 -2
- package/dist/cdn/{62NOWEZE.js → AY5CM33Y.js} +2 -2
- package/dist/cdn/{TX4YE4H7.js → BBAR5XKN.js} +2 -2
- package/dist/cdn/{DUBPN4RS.js → BCPDYBW6.js} +2 -2
- package/dist/cdn/{Y5VRLGRE.js → BG6GLWG2.js} +1 -1
- package/dist/cdn/{DL6IDDDM.js → BGANBCPS.js} +2 -2
- package/dist/cdn/{PHXMOTDV.js → BHNIWP2D.js} +1 -1
- package/dist/cdn/{YRUUAQCT.js → BKO27JVX.js} +2 -2
- package/dist/cdn/{PEH22CAL.js → BLDAOYIG.js} +2 -2
- package/dist/cdn/{HZIODVWR.js → BOKOWFEO.js} +2 -2
- package/dist/cdn/{LPI2REVF.js → BXAORZL4.js} +2 -2
- package/dist/cdn/{N3HPXKNC.js → BYDCJ4VZ.js} +1 -1
- package/dist/cdn/{DUNYDQAY.js → C66LGOL3.js} +2 -2
- package/dist/cdn/{MVM4NLH6.js → CLESAR42.js} +2 -2
- package/dist/cdn/{SXU5EP2Q.js → DEAO7LKH.js} +2 -2
- package/dist/cdn/{3WYMKLFQ.js → DIID6F24.js} +2 -2
- package/dist/cdn/{KKHZBUFB.js → DIUE32QA.js} +2 -2
- package/dist/cdn/{BA2GSOLJ.js → DNAHE6B3.js} +2 -2
- package/dist/cdn/{Y2IKSIPY.js → DNE6MITH.js} +2 -2
- package/dist/cdn/{RIVJQEZV.js → DP6MNEO2.js} +2 -2
- package/dist/cdn/{NGSZCEKR.js → DPYO4UNZ.js} +1 -1
- package/dist/cdn/{S3WVR6DZ.js → DWL3QSPA.js} +2 -2
- package/dist/cdn/{BUG336RI.js → E2B4PX5E.js} +2 -2
- package/dist/cdn/{BTE46Y5Q.js → E5O3SDQO.js} +2 -2
- package/dist/cdn/{NTMHPTFP.js → EAGLALAQ.js} +1 -1
- package/dist/cdn/{IYZLWG7W.js → EB2PKDO6.js} +2 -2
- package/dist/cdn/{ZBLOJL6N.js → EFCGDNV5.js} +2 -2
- package/dist/cdn/{QZ7ACKEY.js → EJAPQXFI.js} +2 -2
- package/dist/cdn/{LBW4QNC4.js → EJD4FG7F.js} +2 -2
- package/dist/cdn/{NMPXEPPL.js → ELYCXPDG.js} +2 -2
- package/dist/cdn/{RWMTRFMU.js → EMQCI6RG.js} +2 -2
- package/dist/cdn/{UICHQ5XS.js → F2FAIAU2.js} +2 -2
- package/dist/cdn/{GW5PRU3X.js → F7BRX5TN.js} +2 -2
- package/dist/cdn/{HLAUGMQ2.js → F7EZLC62.js} +2 -2
- package/dist/cdn/{WJPPWAOI.js → FAPGFPOJ.js} +1 -1
- package/dist/cdn/{5BZ3RNAC.js → FKJ74KL2.js} +2 -2
- package/dist/cdn/{COZZW6V3.js → FN2WRV4R.js} +2 -2
- package/dist/cdn/{23TMCFRN.js → FOGK56KV.js} +1 -1
- package/dist/cdn/{AYNLOBV4.js → FPVE7DKQ.js} +2 -2
- package/dist/cdn/{6LNJ4H2K.js → FV5ATVEG.js} +2 -2
- package/dist/cdn/{KUKTXMSX.js → FVXZDOFO.js} +2 -2
- package/dist/cdn/{UYPERMZC.js → FY5UZTY6.js} +1 -1
- package/dist/cdn/{AYTVFDPL.js → FZTZRSVE.js} +3 -3
- package/dist/cdn/{SXJLK5RU.js → GAIWNYWL.js} +2 -2
- package/dist/cdn/{UOEISUZB.js → GE225ZJ6.js} +1 -1
- package/dist/cdn/{NVTUQPZC.js → GGG4CDGN.js} +1 -1
- package/dist/cdn/{O5NQYW4S.js → GK6IMCNG.js} +2 -2
- package/dist/cdn/{ML4IONJI.js → GMCNEOK7.js} +2 -2
- package/dist/cdn/{XX32FBMH.js → GNRZEXFN.js} +2 -2
- package/dist/cdn/{ICW3CQ5K.js → GOISV2LT.js} +2 -2
- package/dist/cdn/{235XLQAM.js → GTUZ7LWY.js} +4 -4
- package/dist/cdn/{WTLEVLOM.js → GUJC76WT.js} +2 -2
- package/dist/cdn/{QX44EA3W.js → GW66TTO2.js} +2 -2
- package/dist/cdn/{OSBOGUD2.js → GX2F4JGM.js} +1 -1
- package/dist/cdn/{R2HQSEAY.js → GX36OVTS.js} +2 -2
- package/dist/cdn/{UIRBSZJJ.js → H465VNWN.js} +2 -2
- package/dist/cdn/{5WWQIU6C.js → H6MJF5YU.js} +2 -2
- package/dist/cdn/{65UAYDBN.js → H6N72YM6.js} +1 -1
- package/dist/cdn/{3G3U5DAY.js → HCN44RZN.js} +2 -2
- package/dist/cdn/{4OFQDJ6A.js → HFIFNLE6.js} +2 -2
- package/dist/cdn/{MARG7OKX.js → HNGEXL62.js} +2 -2
- package/dist/cdn/{X7KJN7BB.js → HUHERRGE.js} +2 -2
- package/dist/cdn/I5HJNSNJ.js +4 -0
- package/dist/cdn/{6Q63AOMU.js → I6W4OLBS.js} +2 -2
- package/dist/cdn/{IQHSSVKC.js → ICENJ546.js} +2 -2
- package/dist/cdn/{5IEZZPUO.js → IGVLUS3C.js} +2 -2
- package/dist/cdn/{RMMB2BCE.js → IJSMSB7D.js} +2 -2
- package/dist/cdn/INHVYJZT.js +4 -0
- package/dist/cdn/{LEYZSHPB.js → INZPC2AB.js} +2 -2
- package/dist/cdn/{JM3ZPWGY.js → IRNQSIXL.js} +2 -2
- package/dist/cdn/{SSKFDLNA.js → IUYH43JJ.js} +2 -2
- package/dist/cdn/{HAWBRFO4.js → IWJ2ZMNS.js} +2 -2
- package/dist/cdn/{V7N4SGEA.js → IXAWNCC5.js} +1 -1
- package/dist/cdn/{ZMGI6JKK.js → J2QF245E.js} +2 -2
- package/dist/cdn/{Q2KYLW44.js → J5ZCK3TK.js} +2 -2
- package/dist/cdn/{CAHIXJAC.js → J76PFNGB.js} +1 -1
- package/dist/cdn/{TXQ5AKTD.js → J7YCPSUF.js} +2 -2
- package/dist/cdn/{QP2GTGLR.js → JHVO3CP7.js} +2 -2
- package/dist/cdn/{GFEGTT65.js → JI2SAYCM.js} +2 -2
- package/dist/cdn/{PEODTGHZ.js → JJPZUFAZ.js} +2 -2
- package/dist/cdn/{R2PG52G4.js → JONOM255.js} +2 -2
- package/dist/cdn/{HJ6GYEOT.js → JQ22K6BZ.js} +2 -2
- package/dist/cdn/{TK2VN4M6.js → JTXFOO3I.js} +2 -2
- package/dist/cdn/{L5VLMTR2.js → K22KBOKY.js} +2 -2
- package/dist/cdn/{2YRCAX6G.js → K2LV3XD3.js} +2 -2
- package/dist/cdn/{FQOP3IHB.js → K2NMCDVM.js} +2 -2
- package/dist/cdn/{CCUURDN3.js → K3YIW6KT.js} +1 -1
- package/dist/cdn/{7QA2XWHF.js → K53OL6JR.js} +2 -2
- package/dist/cdn/{ZGDVZBA6.js → K73ZDL6T.js} +2 -2
- package/dist/cdn/K7ZA3FFC.js +4 -0
- package/dist/cdn/{H2QTIFW6.js → KQECYLAL.js} +2 -2
- package/dist/cdn/{7BASGBL3.js → L2ZBG3JF.js} +2 -2
- package/dist/cdn/{HCY45Z6P.js → L3DBBV2W.js} +2 -2
- package/dist/cdn/{REJEFRE4.js → L4CC4KNJ.js} +2 -2
- package/dist/cdn/{5UGF2RMZ.js → LB3TT43G.js} +2 -2
- package/dist/cdn/{6TDGLMGN.js → LDJYSN5D.js} +2 -2
- package/dist/cdn/{PDK2DEEN.js → LDVZXGKZ.js} +2 -2
- package/dist/cdn/{BD4EMRO4.js → LHFFIZ22.js} +2 -2
- package/dist/cdn/{UQEGIZ4V.js → LJWVIPZW.js} +2 -2
- package/dist/cdn/{AVCRNRY7.js → LKCO6XND.js} +2 -2
- package/dist/cdn/{KKV4AQ4S.js → LLILUCX4.js} +2 -2
- package/dist/cdn/{MMYJSIWO.js → LQACV2LW.js} +1 -1
- package/dist/cdn/{MAW34AAC.js → LXH2SO43.js} +2 -2
- package/dist/cdn/{SE7FWOIT.js → LZQICKVC.js} +2 -2
- package/dist/cdn/{E4ETWC64.js → M6D4LGKQ.js} +2 -2
- package/dist/cdn/{J76MNH4M.js → M7GBGDGE.js} +2 -2
- package/dist/cdn/{DLATCFHU.js → MBUU52CZ.js} +2 -2
- package/dist/cdn/{EVRJVAJE.js → MCGFHROH.js} +2 -2
- package/dist/cdn/{TUZJGYK3.js → MF3OG4VY.js} +2 -2
- package/dist/cdn/{UWUTEATX.js → MK3RPYXC.js} +2 -2
- package/dist/cdn/{4MTMZVF5.js → MQGQPICI.js} +2 -2
- package/dist/cdn/{5SIXJEJI.js → N4BBS2LR.js} +2 -2
- package/dist/cdn/{EQAQHKCK.js → NBAZK6OZ.js} +2 -2
- package/dist/cdn/{LSY2W6B3.js → NJVZY5MD.js} +2 -2
- package/dist/cdn/{Q5LB4FH4.js → NLFYNOUR.js} +2 -2
- package/dist/cdn/{PCWDJAJI.js → NOEXEMV5.js} +2 -2
- package/dist/cdn/{5E4GIVQX.js → NOLFW52G.js} +2 -2
- package/dist/cdn/{LXGML76O.js → NQ6M4LUU.js} +2 -2
- package/dist/cdn/{E6D2PGYQ.js → NTRY3XB6.js} +2 -2
- package/dist/cdn/{SNREOFIS.js → NVHT3Y7W.js} +2 -2
- package/dist/cdn/{I3W5HGYT.js → NYNSAPTM.js} +2 -2
- package/dist/cdn/{W2EHLCS7.js → O2EOV3CJ.js} +2 -2
- package/dist/cdn/{OT5TS4TQ.js → O2IV4JMW.js} +2 -2
- package/dist/cdn/O7BZMNSE.js +4 -0
- package/dist/cdn/{SYDMVCSS.js → ODW4STKJ.js} +2 -2
- package/dist/cdn/{PJG2WCDK.js → OFD6SR37.js} +2 -2
- package/dist/cdn/{UJMBIDYA.js → ONWGDZT5.js} +2 -2
- package/dist/cdn/{3PRN6OLE.js → OO6IJCH4.js} +2 -2
- package/dist/cdn/{JPJYYNWV.js → OPTN3ME6.js} +2 -2
- package/dist/cdn/{BIE43IGH.js → OSCAEMPD.js} +2 -2
- package/dist/cdn/{O3J7UQKM.js → OVJQ6OFH.js} +2 -2
- package/dist/cdn/{VSRZDUZU.js → OYZEM335.js} +1 -1
- package/dist/cdn/{7FPBQA7H.js → PIVVK35A.js} +2 -2
- package/dist/cdn/{WIXP6VK5.js → PR3CDOEP.js} +2 -2
- package/dist/cdn/{FZQAN6YM.js → PXCMVTKZ.js} +2 -2
- package/dist/cdn/{3BVUEJ3Z.js → PXX4HFO5.js} +2 -2
- package/dist/cdn/{Y36ZRJKA.js → QAHIP2GX.js} +2 -2
- package/dist/cdn/{EOXVRJW6.js → QDQOYMUU.js} +2 -2
- package/dist/cdn/{ZHNSAXID.js → QHOELTKY.js} +2 -2
- package/dist/cdn/{JU42ZLID.js → QJCXGJ6L.js} +2 -2
- package/dist/cdn/{I2K4QP6G.js → QPUATAAE.js} +2 -2
- package/dist/cdn/{URRT3KMU.js → QR6CKG42.js} +2 -2
- package/dist/cdn/{CBKG3TN3.js → QRR2NNVK.js} +2 -2
- package/dist/cdn/{2BCOKAO7.js → QY7M2QSI.js} +2 -2
- package/dist/cdn/{N5O6ZEGZ.js → R22QQKTW.js} +2 -2
- package/dist/cdn/{BQOJWWEZ.js → RAKIXVX2.js} +2 -2
- package/dist/cdn/{OY5THM4A.js → RCWLSY6I.js} +2 -2
- package/dist/cdn/{ENUR7R4D.js → RDI63QRY.js} +2 -2
- package/dist/cdn/{TDD3NYSA.js → RHADMR4Z.js} +2 -2
- package/dist/cdn/{CXU36IAR.js → ROYZJIEE.js} +2 -2
- package/dist/cdn/{Z7Q74DHT.js → S6ZH56JW.js} +2 -2
- package/dist/cdn/{2LTH7RJS.js → SA64VJDS.js} +2 -2
- package/dist/cdn/{333HWSMJ.js → SAH5BHRY.js} +1 -1
- package/dist/cdn/{4LE4JATK.js → SDJB7VSM.js} +2 -2
- package/dist/cdn/{OFIZBJGO.js → SE23DFGC.js} +2 -2
- package/dist/cdn/{IYILGYBJ.js → SQEH2DIV.js} +2 -2
- package/dist/cdn/{TBYYM43L.js → SQLK6YCV.js} +1 -1
- package/dist/cdn/{JCLNCFM3.js → SUOAKQEN.js} +2 -2
- package/dist/cdn/{QHOEROKY.js → SX3XDGQ6.js} +2 -2
- package/dist/cdn/{JBJSL4N4.js → SY5E3AVJ.js} +2 -2
- package/dist/cdn/{XLYSANTE.js → T2H7M2DI.js} +2 -2
- package/dist/cdn/{LQ2HAAUQ.js → T7F435GA.js} +2 -2
- package/dist/cdn/{A3WZDLWT.js → TACC72BQ.js} +2 -2
- package/dist/cdn/TAQN3MIW.js +18 -0
- package/dist/cdn/{XRKZLEW4.js → TEUVGOIY.js} +1 -1
- package/dist/cdn/{IGSK5BG4.js → TEXRB7NV.js} +2 -2
- package/dist/cdn/{MM6KIAWC.js → TFCKOEWL.js} +2 -2
- package/dist/cdn/{KIQ7MTLX.js → TGBNBAXL.js} +2 -2
- package/dist/cdn/{4MTWHCFA.js → THBUB5W7.js} +2 -2
- package/dist/cdn/{N3UZMVOV.js → TK77BTJO.js} +2 -2
- package/dist/cdn/TNISXZRI.js +4 -0
- package/dist/cdn/{GOQGQPLA.js → TR4FJOX7.js} +1 -1
- package/dist/cdn/{7S2VPPXW.js → TS7OFSKI.js} +2 -2
- package/dist/cdn/{HYT7WWQL.js → TTGOCUOI.js} +2 -2
- package/dist/cdn/{TSHP6LR6.js → TU2VOXF6.js} +2 -2
- package/dist/cdn/{J6UNPK46.js → TWGXRZ74.js} +2 -2
- package/dist/cdn/{CFFP3TGO.js → TYJ45GML.js} +2 -2
- package/dist/cdn/{SZ4ULADV.js → U24LTB7J.js} +2 -2
- package/dist/cdn/{JAM34U3G.js → U2G7TTSF.js} +1 -1
- package/dist/cdn/{VXJKSC6F.js → U5G7EA6M.js} +2 -2
- package/dist/cdn/{OF6E54NK.js → U63F2JDU.js} +2 -2
- package/dist/cdn/{25UOXMDB.js → U7OHC5AQ.js} +2 -2
- package/dist/cdn/{UUDJYULL.js → UALKPXS3.js} +2 -2
- package/dist/cdn/{QVZSFAEQ.js → UAVULCVS.js} +2 -2
- package/dist/cdn/{KPEP6OST.js → UAXZFV4N.js} +2 -2
- package/dist/cdn/{G6KEW64X.js → UB7PE3AY.js} +2 -2
- package/dist/cdn/{3SPNSK2M.js → UMGOFUDS.js} +2 -2
- package/dist/cdn/{DMXP3IHB.js → UNUUESGY.js} +2 -2
- package/dist/cdn/{6EKR2ASQ.js → UTV27VN5.js} +2 -2
- package/dist/cdn/{C33FC7RC.js → UUIXKWJE.js} +2 -2
- package/dist/cdn/{JUCP6VJN.js → UXLMABXA.js} +2 -2
- package/dist/cdn/UZJSQPSQ.js +4 -0
- package/dist/cdn/{FUCVRAVQ.js → VBF5CTG3.js} +2 -2
- package/dist/cdn/{TWEAJRSR.js → VK2K5XNT.js} +2 -2
- package/dist/cdn/{B3EYCFHY.js → VLHVZ4SR.js} +2 -2
- package/dist/cdn/{P27EQTXP.js → VMWDPJTM.js} +1 -1
- package/dist/cdn/VRAOCHFE.js +18 -0
- package/dist/cdn/{TCX2HCL4.js → VYLW2IDP.js} +2 -2
- package/dist/cdn/{RRDR2763.js → VYMRAN74.js} +2 -2
- package/dist/cdn/{UEVH4ZIG.js → W4HZTMNT.js} +1 -1
- package/dist/cdn/WB4LTDQP.js +4 -0
- package/dist/cdn/{26VSVB7G.js → WEP26LHX.js} +2 -2
- package/dist/cdn/{2CPXQ3XO.js → WG2NYCMG.js} +2 -2
- package/dist/cdn/{NEAWOVAT.js → WQ4TGR3C.js} +2 -2
- package/dist/cdn/{S4CH3KVO.js → WQ6KFVZN.js} +2 -2
- package/dist/cdn/{MCRN33XB.js → WV64QIRZ.js} +2 -2
- package/dist/cdn/{UOA2YAXC.js → WZMJH2DL.js} +1 -1
- package/dist/cdn/{R7NXQS2H.js → X2H43HYH.js} +1 -1
- package/dist/cdn/{XQF5WBLB.js → X3XSZ65Y.js} +2 -2
- package/dist/cdn/{IDBGIPXB.js → XB5P4EQI.js} +1 -1
- package/dist/cdn/{BN4BZNL3.js → XCEMSPXE.js} +2 -2
- package/dist/cdn/{FJHYTGL3.js → XSIKQNNC.js} +2 -2
- package/dist/cdn/XSLY3IGZ.js +4 -0
- package/dist/cdn/{WUKYRBFW.js → XVEEFPUJ.js} +2 -2
- package/dist/cdn/XXCFRRLF.js +4 -0
- package/dist/cdn/{XYP4MM7Y.js → Y6JZAFOX.js} +2 -2
- package/dist/cdn/Y7NS4JZS.js +18 -0
- package/dist/cdn/{BLGTW3P7.js → YA3RB4C4.js} +2 -2
- package/dist/cdn/{MBGN7PRL.js → YABH5PBS.js} +2 -2
- package/dist/cdn/{J23SUAVE.js → YC3RTILK.js} +2 -2
- package/dist/cdn/{MJHDVXB5.js → YM6V6R3R.js} +2 -2
- package/dist/cdn/{ETWLI3UW.js → YN55LX3C.js} +1 -1
- package/dist/cdn/{CVWDWQZG.js → YRTVPKDV.js} +2 -2
- package/dist/cdn/{DHERKA4G.js → YXHCXL4G.js} +2 -2
- package/dist/cdn/{NSCSVPLE.js → Z422BYVK.js} +2 -2
- package/dist/cdn/ZBCWEZ6Q.js +4 -0
- package/dist/cdn/{AVAQFCMA.js → ZCJWOG36.js} +2 -2
- package/dist/cdn/{ORAWEOF6.js → ZCZBE7ES.js} +2 -2
- package/dist/cdn/{53H4O4KK.js → ZD5J7YJA.js} +2 -2
- package/dist/cdn/{YP6HMNUN.js → ZDPXDUJD.js} +2 -2
- package/dist/cdn/{XXYUKCG6.js → ZIL5UCFT.js} +2 -2
- package/dist/cdn/{HIG6WAET.js → ZJAISNB5.js} +2 -2
- package/dist/cdn/{AEHWVDBQ.js → ZJE4EEE4.js} +2 -2
- package/dist/cdn/{AXH7MWTJ.js → ZP3BQCVA.js} +1 -1
- package/dist/cdn/{BCCYBMSW.js → ZR74FN7G.js} +1 -1
- package/dist/cdn/{BJYA7WKW.js → ZSX3D43K.js} +1 -1
- package/dist/cdn/{MGYKS4CA.js → ZZC4NGY5.js} +2 -2
- package/dist/cdn/index.js +2 -2
- package/dist/chunks/Auth.js +1 -1
- package/dist/chunks/appConfig.js +1 -1
- package/dist/chunks/cardFetchingUtils.js +1 -1
- package/dist/chunks/common.js +1 -1
- package/dist/chunks/deployAppContexts.js +1 -1
- package/dist/chunks/downloadUtils.js +1 -1
- package/dist/chunks/getItemIcon.js +1 -1
- package/dist/chunks/helpers.js +1 -1
- package/dist/chunks/index.js +1 -1
- package/dist/chunks/interfaces.js +1 -1
- package/dist/chunks/loadModules.js +1 -1
- package/dist/chunks/mapViewUtils.js +1 -1
- package/dist/chunks/pciUtils.js +1 -1
- package/dist/chunks/popupUtils.js +1 -1
- package/dist/chunks/prepareDataForSolutionDisplay.js +1 -1
- package/dist/chunks/privilegeUtils.js +1 -1
- package/dist/chunks/publicNotificationStore.js +1 -1
- package/dist/chunks/queryUtils.js +1 -1
- package/dist/chunks/runtime.js +1 -1
- package/dist/chunks/solution-store.js +1 -1
- package/dist/chunks/templates.js +1 -1
- package/dist/chunks/useT9n.js +1 -1
- package/dist/components/arcgis-solutions-assistant/customElement.js +1 -1
- package/dist/components/basemap-gallery/customElement.js +1 -1
- package/dist/components/buffer-tools/customElement.js +1 -1
- package/dist/components/card-manager/customElement.js +1 -1
- package/dist/components/consent-manager/customElement.js +1 -1
- package/dist/components/create-feature/customElement.js +1 -1
- package/dist/components/create-related-feature/customElement.js +1 -1
- package/dist/components/crowdsource-manager/customElement.js +1 -1
- package/dist/components/crowdsource-reporter/customElement.js +1 -1
- package/dist/components/deduct-calculator/customElement.js +1 -1
- package/dist/components/delete-button/customElement.js +1 -1
- package/dist/components/delete-dialog/customElement.js +1 -1
- package/dist/components/edit-card/customElement.js +1 -1
- package/dist/components/feature-details/customElement.js +1 -1
- package/dist/components/feature-list/customElement.js +1 -1
- package/dist/components/field-selection/customElement.js +1 -1
- package/dist/components/floor-filter/customElement.js +1 -1
- package/dist/components/info-card/customElement.js +1 -1
- package/dist/components/json-editor/customElement.js +1 -1
- package/dist/components/layer-list/customElement.js +1 -1
- package/dist/components/layer-table/customElement.js +1 -1
- package/dist/components/map-card/customElement.js +1 -1
- package/dist/components/map-draw-tools/customElement.js +1 -1
- package/dist/components/map-fullscreen/customElement.js +1 -1
- package/dist/components/map-layer-picker/customElement.js +1 -1
- package/dist/components/map-legend/customElement.js +1 -1
- package/dist/components/map-picker/customElement.js +1 -1
- package/dist/components/map-search/customElement.js +1 -1
- package/dist/components/map-select-tools/customElement.js +1 -1
- package/dist/components/map-tools/customElement.js +1 -1
- package/dist/components/pci-calculator/customElement.js +1 -1
- package/dist/components/pdf-download/customElement.js +1 -1
- package/dist/components/public-notification/customElement.js +1 -1
- package/dist/components/refine-selection/customElement.js +1 -1
- package/dist/components/selection-tool/customElement.js +1 -1
- package/dist/components/solution-article-card/customElement.js +1 -1
- package/dist/components/solution-configuration/customElement.js +1 -1
- package/dist/components/solution-configure-dialog/customElement.js +18 -15
- package/dist/components/solution-configure-dialog/index.d.ts +1 -1
- package/dist/components/solution-configure-dialog/index.js +1 -1
- package/dist/components/solution-configure-titles/customElement.js +1 -1
- package/dist/components/solution-contents/customElement.js +1 -1
- package/dist/components/solution-delete-dialog/customElement.js +1 -1
- package/dist/components/solution-deploy-dialog/customElement.js +1 -1
- package/dist/components/solution-deployed-card/customElement.js +1 -1
- package/dist/components/solution-deploying-dialog/customElement.js +1 -1
- package/dist/components/solution-details-card/customElement.js +1 -1
- package/dist/components/solution-details-panel/customElement.js +25 -25
- package/dist/components/solution-item/customElement.js +1 -1
- package/dist/components/solution-item-accordion/customElement.js +1 -1
- package/dist/components/solution-item-details/customElement.js +1 -1
- package/dist/components/solution-item-diagram/customElement.js +1 -1
- package/dist/components/solution-item-icon/customElement.js +1 -1
- package/dist/components/solution-item-sharing/customElement.js +1 -1
- package/dist/components/solution-organization-variables/customElement.js +1 -1
- package/dist/components/solution-resource-item/customElement.js +1 -1
- package/dist/components/solution-snapshot-gallery/customElement.js +1 -1
- package/dist/components/solution-social-share/customElement.js +1 -1
- package/dist/components/solution-spatial-ref/customElement.js +1 -1
- package/dist/components/solution-template-data/customElement.js +1 -1
- package/dist/components/solution-variables/customElement.js +1 -1
- package/dist/components/solutions-all-panel/customElement.js +1 -1
- package/dist/components/solutions-all-shell/customElement.js +13 -13
- package/dist/components/solutions-article-panel/customElement.js +1 -1
- package/dist/components/solutions-articles/customElement.js +1 -1
- package/dist/components/solutions-articles-shell/customElement.js +1 -1
- package/dist/components/solutions-deployed-panel/customElement.js +1 -1
- package/dist/components/solutions-deployed-shell/customElement.js +8 -8
- package/dist/components/solutions-filter-panel/customElement.js +1 -1
- package/dist/components/spatial-ref/customElement.js +1 -1
- package/dist/components/store-manager/customElement.js +1 -1
- package/dist/docs/api.json +2 -2
- package/dist/docs/docs.json +2 -2
- package/dist/docs/web-types.json +1 -1
- package/dist/index.js +1 -1
- package/dist/loader.js +1 -1
- package/package.json +1 -1
- package/dist/cdn/2IAXWN6T.js +0 -4
- package/dist/cdn/3B3A5TS3.js +0 -4
- package/dist/cdn/3QKRY7AN.js +0 -18
- package/dist/cdn/4KH3V75Z.js +0 -4
- package/dist/cdn/5INUHIM3.js +0 -4
- package/dist/cdn/BXYYFFJR.js +0 -4
- package/dist/cdn/EB64EA6V.js +0 -4
- package/dist/cdn/H4P4SOOU.js +0 -18
- package/dist/cdn/HXMEN564.js +0 -18
- package/dist/cdn/JIWLPRYN.js +0 -4
- package/dist/cdn/KEBMEHQB.js +0 -4
- package/dist/cdn/MNTW36LR.js +0 -4
- package/dist/cdn/MRKES3TY.js +0 -4
- package/dist/cdn/RM6O54I7.js +0 -18
- package/dist/cdn/SMYPLT36.js +0 -4
- package/dist/cdn/TIIH4KX4.js +0 -4
- package/dist/cdn/UGBEJX6A.js +0 -4
- package/dist/cdn/UK7WAVOZ.js +0 -4
- package/dist/cdn/VEVWVLSN.js +0 -4
- package/dist/cdn/VOTU75AB.js +0 -18
@@ -1,7 +1,7 @@
|
|
1
1
|
/*! All material copyright Esri, All Rights Reserved, unless otherwise specified.
|
2
2
|
See https://js.arcgis.com/1.1/esri/copyright.txt for details.
|
3
|
-
v1.1.0-next.
|
4
|
-
import{b as gl,ta as ml}from"./3SPNSK2M.js";import{a as ge}from"./65UAYDBN.js";import{a as dl}from"./UOEISUZB.js";import{b as pl}from"./67EYEWRI.js";import{b as fa}from"./NGSZCEKR.js";import{c as fl}from"./NMPXEPPL.js";var Ke=Uint8Array,vn=Uint16Array,ys=Int32Array,so=new Ke([0,0,0,0,0,0,0,0,1,1,1,1,2,2,2,2,3,3,3,3,4,4,4,4,5,5,5,5,0,0,0,0]),lo=new Ke([0,0,0,0,1,1,2,2,3,3,4,4,5,5,6,6,7,7,8,8,9,9,10,10,11,11,12,12,13,13,0,0]),gs=new Ke([16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15]),wl=function(r,t){for(var n=new vn(31),i=0;i<31;++i)n[i]=t+=1<<r[i-1];for(var s=new ys(n[30]),i=1;i<30;++i)for(var o=n[i];o<n[i+1];++o)s[o]=o-n[i]<<5|i;return{b:n,r:s}},xl=wl(so,2),Al=xl.b,ms=xl.r;Al[28]=258,ms[258]=28;var Ll=wl(lo,0),Yu=Ll.b,vl=Ll.r,vs=new vn(32768);for(le=0;le<32768;++le)dr=(le&43690)>>1|(le&21845)<<1,dr=(dr&52428)>>2|(dr&13107)<<2,dr=(dr&61680)>>4|(dr&3855)<<4,vs[le]=((dr&65280)>>8|(dr&255)<<8)>>1;var dr,le,Qn=(function(r,t,n){for(var i=r.length,s=0,o=new vn(t);s<i;++s)r[s]&&++o[r[s]-1];var u=new vn(t);for(s=1;s<t;++s)u[s]=u[s-1]+o[s-1]<<1;var h;if(n){h=new vn(1<<t);var f=15-t;for(s=0;s<i;++s)if(r[s])for(var g=s<<4|r[s],v=t-r[s],y=u[r[s]-1]++<<v,N=y|(1<<v)-1;y<=N;++y)h[vs[y]>>f]=g}else for(h=new vn(i),s=0;s<i;++s)r[s]&&(h[s]=vs[u[r[s]-1]++]>>15-r[s]);return h}),Ir=new Ke(288);for(le=0;le<144;++le)Ir[le]=8;var le;for(le=144;le<256;++le)Ir[le]=9;var le;for(le=256;le<280;++le)Ir[le]=7;var le;for(le=280;le<288;++le)Ir[le]=8;var le,ga=new Ke(32);for(le=0;le<32;++le)ga[le]=5;var le,Xu=Qn(Ir,9,0),Ku=Qn(Ir,9,1),Zu=Qn(ga,5,0),$u=Qn(ga,5,1),fs=function(r){for(var t=r[0],n=1;n<r.length;++n)r[n]>t&&(t=r[n]);return t},En=function(r,t,n){var i=t/8|0;return(r[i]|r[i+1]<<8)>>(t&7)&n},ps=function(r,t){var n=t/8|0;return(r[n]|r[n+1]<<8|r[n+2]<<16)>>(t&7)},ws=function(r){return(r+7)/8|0},Nl=function(r,t,n){return(t==null||t<0)&&(t=0),(n==null||n>r.length)&&(n=r.length),new Ke(r.subarray(t,n))};var Qu=["unexpected EOF","invalid block type","invalid length/literal","invalid distance","stream finished","no stream handler",,"no callback","invalid UTF-8 data","extra field too long","date not in range 1980-2099","filename too long","stream finishing","invalid zip data"],qn=function(r,t,n){var i=new Error(t||Qu[r]);if(i.code=r,Error.captureStackTrace&&Error.captureStackTrace(i,qn),!n)throw i;return i},tc=function(r,t,n,i){var s=r.length,o=i?i.length:0;if(!s||t.f&&!t.l)return n||new Ke(0);var u=!n,h=u||t.i!=2,f=t.i;u&&(n=new Ke(s*3));var g=function(At){var kt=n.length;if(At>kt){var Pt=new Ke(Math.max(kt*2,At));Pt.set(n),n=Pt}},v=t.f||0,y=t.p||0,N=t.b||0,d=t.l,C=t.d,F=t.m,D=t.n,P=s*8;do{if(!d){v=En(r,y,1);var M=En(r,y+1,3);if(y+=3,M)if(M==1)d=Ku,C=$u,F=9,D=5;else if(M==2){var yt=En(r,y,31)+257,et=En(r,y+10,15)+4,z=yt+En(r,y+5,31)+1;y+=14;for(var it=new Ke(z),dt=new Ke(19),_=0;_<et;++_)dt[gs[_]]=En(r,y+_*3,7);y+=et*3;for(var k=fs(dt),G=(1<<k)-1,E=Qn(dt,k,1),_=0;_<z;){var lt=E[En(r,y,G)];y+=lt&15;var W=lt>>4;if(W<16)it[_++]=W;else{var at=0,ht=0;for(W==16?(ht=3+En(r,y,3),y+=2,at=it[_-1]):W==17?(ht=3+En(r,y,7),y+=3):W==18&&(ht=11+En(r,y,127),y+=7);ht--;)it[_++]=at}}var $=it.subarray(0,yt),ct=it.subarray(yt);F=fs($),D=fs(ct),d=Qn($,F,1),C=Qn(ct,D,1)}else qn(1);else{var W=ws(y)+4,tt=r[W-4]|r[W-3]<<8,ot=W+tt;if(ot>s){f&&qn(0);break}h&&g(N+tt),n.set(r.subarray(W,ot),N),t.b=N+=tt,t.p=y=ot*8,t.f=v;continue}if(y>P){f&&qn(0);break}}h&&g(N+131072);for(var pt=(1<<F)-1,Ot=(1<<D)-1,A=y;;A=y){var at=d[ps(r,y)&pt],O=at>>4;if(y+=at&15,y>P){f&&qn(0);break}if(at||qn(2),O<256)n[N++]=O;else if(O==256){A=y,d=null;break}else{var B=O-254;if(O>264){var _=O-257,R=so[_];B=En(r,y,(1<<R)-1)+Al[_],y+=R}var Y=C[ps(r,y)&Ot],Q=Y>>4;Y||qn(3),y+=Y&15;var ct=Yu[Q];if(Q>3){var R=lo[Q];ct+=ps(r,y)&(1<<R)-1,y+=R}if(y>P){f&&qn(0);break}h&&g(N+131072);var nt=N+B;if(N<ct){var rt=o-ct,Lt=Math.min(ct,nt);for(rt+N<0&&qn(3);N<Lt;++N)n[N]=i[rt+N]}for(;N<nt;++N)n[N]=n[N-ct]}}t.l=d,t.p=A,t.b=N,t.f=v,d&&(v=1,t.m=F,t.d=C,t.n=D)}while(!v);return N!=n.length&&u?Nl(n,0,N):n.subarray(0,N)},gr=function(r,t,n){n<<=t&7;var i=t/8|0;r[i]|=n,r[i+1]|=n>>8},pa=function(r,t,n){n<<=t&7;var i=t/8|0;r[i]|=n,r[i+1]|=n>>8,r[i+2]|=n>>16},ds=function(r,t){for(var n=[],i=0;i<r.length;++i)r[i]&&n.push({s:i,f:r[i]});var s=n.length,o=n.slice();if(!s)return{t:Pl,l:0};if(s==1){var u=new Ke(n[0].s+1);return u[n[0].s]=1,{t:u,l:1}}n.sort(function(ot,yt){return ot.f-yt.f}),n.push({s:-1,f:25001});var h=n[0],f=n[1],g=0,v=1,y=2;for(n[0]={s:-1,f:h.f+f.f,l:h,r:f};v!=s-1;)h=n[n[g].f<n[y].f?g++:y++],f=n[g!=v&&n[g].f<n[y].f?g++:y++],n[v++]={s:-1,f:h.f+f.f,l:h,r:f};for(var N=o[0].s,i=1;i<s;++i)o[i].s>N&&(N=o[i].s);var d=new vn(N+1),C=bs(n[v-1],d,0);if(C>t){var i=0,F=0,D=C-t,P=1<<D;for(o.sort(function(yt,et){return d[et.s]-d[yt.s]||yt.f-et.f});i<s;++i){var M=o[i].s;if(d[M]>t)F+=P-(1<<C-d[M]),d[M]=t;else break}for(F>>=D;F>0;){var W=o[i].s;d[W]<t?F-=1<<t-d[W]++-1:++i}for(;i>=0&&F;--i){var tt=o[i].s;d[tt]==t&&(--d[tt],++F)}C=t}return{t:new Ke(d),l:C}},bs=function(r,t,n){return r.s==-1?Math.max(bs(r.l,t,n+1),bs(r.r,t,n+1)):t[r.s]=n},bl=function(r){for(var t=r.length;t&&!r[--t];);for(var n=new vn(++t),i=0,s=r[0],o=1,u=function(f){n[i++]=f},h=1;h<=t;++h)if(r[h]==s&&h!=t)++o;else{if(!s&&o>2){for(;o>138;o-=138)u(32754);o>2&&(u(o>10?o-11<<5|28690:o-3<<5|12305),o=0)}else if(o>3){for(u(s),--o;o>6;o-=6)u(8304);o>2&&(u(o-3<<5|8208),o=0)}for(;o--;)u(s);o=1,s=r[h]}return{c:n.subarray(0,i),n:t}},da=function(r,t){for(var n=0,i=0;i<t.length;++i)n+=r[i]*t[i];return n},Sl=function(r,t,n){var i=n.length,s=ws(t+2);r[s]=i&255,r[s+1]=i>>8,r[s+2]=r[s]^255,r[s+3]=r[s+1]^255;for(var o=0;o<i;++o)r[s+o+4]=n[o];return(s+4+i)*8},yl=function(r,t,n,i,s,o,u,h,f,g,v){gr(t,v++,n),++s[256];for(var y=ds(s,15),N=y.t,d=y.l,C=ds(o,15),F=C.t,D=C.l,P=bl(N),M=P.c,W=P.n,tt=bl(F),ot=tt.c,yt=tt.n,et=new vn(19),z=0;z<M.length;++z)++et[M[z]&31];for(var z=0;z<ot.length;++z)++et[ot[z]&31];for(var it=ds(et,7),dt=it.t,_=it.l,k=19;k>4&&!dt[gs[k-1]];--k);var G=g+5<<3,E=da(s,Ir)+da(o,ga)+u,lt=da(s,N)+da(o,F)+u+14+3*k+da(et,dt)+2*et[16]+3*et[17]+7*et[18];if(f>=0&&G<=E&&G<=lt)return Sl(t,v,r.subarray(f,f+g));var at,ht,$,ct;if(gr(t,v,1+(lt<E)),v+=2,lt<E){at=Qn(N,d,0),ht=N,$=Qn(F,D,0),ct=F;var pt=Qn(dt,_,0);gr(t,v,W-257),gr(t,v+5,yt-1),gr(t,v+10,k-4),v+=14;for(var z=0;z<k;++z)gr(t,v+3*z,dt[gs[z]]);v+=3*k;for(var Ot=[M,ot],A=0;A<2;++A)for(var O=Ot[A],z=0;z<O.length;++z){var B=O[z]&31;gr(t,v,pt[B]),v+=dt[B],B>15&&(gr(t,v,O[z]>>5&127),v+=O[z]>>12)}}else at=Xu,ht=Ir,$=Zu,ct=ga;for(var z=0;z<h;++z){var R=i[z];if(R>255){var B=R>>18&31;pa(t,v,at[B+257]),v+=ht[B+257],B>7&&(gr(t,v,R>>23&31),v+=so[B]);var Y=R&31;pa(t,v,$[Y]),v+=ct[Y],Y>3&&(pa(t,v,R>>5&8191),v+=lo[Y])}else pa(t,v,at[R]),v+=ht[R]}return pa(t,v,at[256]),v+ht[256]},ec=new ys([65540,131080,131088,131104,262176,1048704,1048832,2114560,2117632]),Pl=new Ke(0),nc=function(r,t,n,i,s,o){var u=o.z||r.length,h=new Ke(i+u+5*(1+Math.ceil(u/7e3))+s),f=h.subarray(i,h.length-s),g=o.l,v=(o.r||0)&7;if(t){v&&(f[0]=o.r>>3);for(var y=ec[t-1],N=y>>13,d=y&8191,C=(1<<n)-1,F=o.p||new vn(32768),D=o.h||new vn(C+1),P=Math.ceil(n/3),M=2*P,W=function(Ut){return(r[Ut]^r[Ut+1]<<P^r[Ut+2]<<M)&C},tt=new ys(25e3),ot=new vn(288),yt=new vn(32),et=0,z=0,it=o.i||0,dt=0,_=o.w||0,k=0;it+2<u;++it){var G=W(it),E=it&32767,lt=D[G];if(F[E]=lt,D[G]=E,_<=it){var at=u-it;if((et>7e3||dt>24576)&&(at>423||!g)){v=yl(r,f,0,tt,ot,yt,z,dt,k,it-k,v),dt=et=z=0,k=it;for(var ht=0;ht<286;++ht)ot[ht]=0;for(var ht=0;ht<30;++ht)yt[ht]=0}var $=2,ct=0,pt=d,Ot=E-lt&32767;if(at>2&&G==W(it-Ot))for(var A=Math.min(N,at)-1,O=Math.min(32767,it),B=Math.min(258,at);Ot<=O&&--pt&&E!=lt;){if(r[it+$]==r[it+$-Ot]){for(var R=0;R<B&&r[it+R]==r[it+R-Ot];++R);if(R>$){if($=R,ct=Ot,R>A)break;for(var Y=Math.min(Ot,R-2),Q=0,ht=0;ht<Y;++ht){var nt=it-Ot+ht&32767,rt=F[nt],Lt=nt-rt&32767;Lt>Q&&(Q=Lt,lt=nt)}}}E=lt,lt=F[E],Ot+=E-lt&32767}if(ct){tt[dt++]=268435456|ms[$]<<18|vl[ct];var At=ms[$]&31,kt=vl[ct]&31;z+=so[At]+lo[kt],++ot[257+At],++yt[kt],_=it+$,++et}else tt[dt++]=r[it],++ot[r[it]]}}for(it=Math.max(it,_);it<u;++it)tt[dt++]=r[it],++ot[r[it]];v=yl(r,f,g,tt,ot,yt,z,dt,k,it-k,v),g||(o.r=v&7|f[v/8|0]<<3,v-=7,o.h=D,o.p=F,o.i=it,o.w=_)}else{for(var it=o.w||0;it<u+g;it+=65535){var Pt=it+65535;Pt>=u&&(f[v/8|0]=g,Pt=u),v=Sl(f,v+1,r.subarray(it,Pt))}o.i=u}return Nl(h,0,i+ws(v)+s)};var _l=function(){var r=1,t=0;return{p:function(n){for(var i=r,s=t,o=n.length|0,u=0;u!=o;){for(var h=Math.min(u+2655,o);u<h;++u)s+=i+=n[u];i=(i&65535)+15*(i>>16),s=(s&65535)+15*(s>>16)}r=i,t=s},d:function(){return r%=65521,t%=65521,(r&255)<<24|(r&65280)<<8|(t&255)<<8|t>>8}}},rc=function(r,t,n,i,s){if(!s&&(s={l:1},t.dictionary)){var o=t.dictionary.subarray(-32768),u=new Ke(o.length+r.length);u.set(o),u.set(r,o.length),r=u,s.w=o.length}return nc(r,t.level==null?6:t.level,t.mem==null?s.l?Math.ceil(Math.max(8,Math.min(13,Math.log(r.length)))*1.5):20:12+t.mem,n,i,s)};var Fl=function(r,t,n){for(;n;++t)r[t]=n,n>>>=8};var ic=function(r,t){var n=t.level,i=n==0?0:n<6?1:n==9?3:2;if(r[0]=120,r[1]=i<<6|(t.dictionary&&32),r[1]|=31-(r[0]<<8|r[1])%31,t.dictionary){var s=_l();s.p(t.dictionary),Fl(r,2,s.d())}},ac=function(r,t){return((r[0]&15)!=8||r[0]>>4>7||(r[0]<<8|r[1])%31)&&qn(6,"invalid zlib data"),(r[1]>>5&1)==+!t&&qn(6,"invalid zlib data: "+(r[1]&32?"need":"unexpected")+" dictionary"),(r[1]>>3&4)+2};function uo(r,t){t||(t={});var n=_l();n.p(r);var i=rc(r,t,t.dictionary?6:2,4);return ic(i,t),Fl(i,i.length-4,n.d()),i}function kl(r,t){return tc(r.subarray(ac(r,t&&t.dictionary),-4),{i:2},t&&t.out,t&&t.dictionary)}var oc=typeof TextDecoder<"u"&&new TextDecoder,sc=0;try{oc.decode(Pl,{stream:!0}),sc=1}catch{}var Ht=(function(){return typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:this})();function xs(){Ht.console&&typeof Ht.console.log=="function"&&Ht.console.log.apply(Ht.console,arguments)}var be={log:xs,warn:function(r){Ht.console&&(typeof Ht.console.warn=="function"?Ht.console.warn.apply(Ht.console,arguments):xs.call(null,arguments))},error:function(r){Ht.console&&(typeof Ht.console.error=="function"?Ht.console.error.apply(Ht.console,arguments):xs(r))}};function As(r,t,n){var i=new XMLHttpRequest;i.open("GET",r),i.responseType="blob",i.onload=function(){Jr(i.response,t,n)},i.onerror=function(){be.error("could not download file")},i.send()}function Il(r){var t=new XMLHttpRequest;t.open("HEAD",r,!1);try{t.send()}catch{}return t.status>=200&&t.status<=299}function co(r){try{r.dispatchEvent(new MouseEvent("click"))}catch{var t=document.createEvent("MouseEvents");t.initMouseEvent("click",!0,!0,window,0,0,0,80,20,!1,!1,!1,!1,0,null),r.dispatchEvent(t)}}var ma,_s,Jr=Ht.saveAs||((typeof window>"u"?"undefined":ge(window))!=="object"||window!==Ht?function(){}:typeof HTMLAnchorElement<"u"&&"download"in HTMLAnchorElement.prototype?function(r,t,n){var i=Ht.URL||Ht.webkitURL,s=document.createElement("a");t=t||r.name||"download",s.download=t,s.rel="noopener",typeof r=="string"?(s.href=r,s.origin!==location.origin?Il(s.href)?As(r,t,n):co(s,s.target="_blank"):co(s)):(s.href=i.createObjectURL(r),setTimeout((function(){i.revokeObjectURL(s.href)}),4e4),setTimeout((function(){co(s)}),0))}:"msSaveOrOpenBlob"in navigator?function(r,t,n){if(t=t||r.name||"download",typeof r=="string")if(Il(r))As(r,t,n);else{var i=document.createElement("a");i.href=r,i.target="_blank",setTimeout((function(){co(i)}))}else navigator.msSaveOrOpenBlob((function(s,o){return o===void 0?o={autoBom:!1}:ge(o)!=="object"&&(be.warn("Deprecated: Expected third argument to be a object"),o={autoBom:!o}),o.autoBom&&/^\s*(?:text\/\S*|application\/xml|\S*\/\S*\+xml)\s*;.*charset\s*=\s*utf-8/i.test(s.type)?new Blob(["\uFEFF",s],{type:s.type}):s})(r,n),t)}:function(r,t,n,i){if((i=i||open("","_blank"))&&(i.document.title=i.document.body.innerText="downloading..."),typeof r=="string")return As(r,t,n);var s=r.type==="application/octet-stream",o=/constructor/i.test(Ht.HTMLElement)||Ht.safari,u=/CriOS\/[\d]+/.test(navigator.userAgent);if((u||s&&o)&&(typeof FileReader>"u"?"undefined":ge(FileReader))==="object"){var h=new FileReader;h.onloadend=function(){var v=h.result;v=u?v:v.replace(/^data:[^;]*;/,"data:attachment/file;"),i?i.location.href=v:location=v,i=null},h.readAsDataURL(r)}else{var f=Ht.URL||Ht.webkitURL,g=f.createObjectURL(r);i?i.location=g:location.href=g,i=null,setTimeout((function(){f.revokeObjectURL(g)}),4e4)}});function Jl(r){var t;r=r||"",this.ok=!1,r.charAt(0)=="#"&&(r=r.substr(1,6)),r={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",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"}[r=(r=r.replace(/ /g,"")).toLowerCase()]||r;for(var n=[{re:/^rgb\((\d{1,3}),\s*(\d{1,3}),\s*(\d{1,3})\)$/,example:["rgb(123, 234, 45)","rgb(255,234,245)"],process:function(h){return[parseInt(h[1]),parseInt(h[2]),parseInt(h[3])]}},{re:/^(\w{2})(\w{2})(\w{2})$/,example:["#00ff00","336699"],process:function(h){return[parseInt(h[1],16),parseInt(h[2],16),parseInt(h[3],16)]}},{re:/^(\w{1})(\w{1})(\w{1})$/,example:["#fb0","f0f"],process:function(h){return[parseInt(h[1]+h[1],16),parseInt(h[2]+h[2],16),parseInt(h[3]+h[3],16)]}}],i=0;i<n.length;i++){var s=n[i].re,o=n[i].process,u=s.exec(r);u&&(t=o(u),this.r=t[0],this.g=t[1],this.b=t[2],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.toRGB=function(){return"rgb("+this.r+", "+this.g+", "+this.b+")"},this.toHex=function(){var h=this.r.toString(16),f=this.g.toString(16),g=this.b.toString(16);return h.length==1&&(h="0"+h),f.length==1&&(f="0"+f),g.length==1&&(g="0"+g),"#"+h+f+g}}function Ls(r,t){var n=r[0],i=r[1],s=r[2],o=r[3];n=Ze(n,i,s,o,t[0],7,-680876936),o=Ze(o,n,i,s,t[1],12,-389564586),s=Ze(s,o,n,i,t[2],17,606105819),i=Ze(i,s,o,n,t[3],22,-1044525330),n=Ze(n,i,s,o,t[4],7,-176418897),o=Ze(o,n,i,s,t[5],12,1200080426),s=Ze(s,o,n,i,t[6],17,-1473231341),i=Ze(i,s,o,n,t[7],22,-45705983),n=Ze(n,i,s,o,t[8],7,1770035416),o=Ze(o,n,i,s,t[9],12,-1958414417),s=Ze(s,o,n,i,t[10],17,-42063),i=Ze(i,s,o,n,t[11],22,-1990404162),n=Ze(n,i,s,o,t[12],7,1804603682),o=Ze(o,n,i,s,t[13],12,-40341101),s=Ze(s,o,n,i,t[14],17,-1502002290),n=$e(n,i=Ze(i,s,o,n,t[15],22,1236535329),s,o,t[1],5,-165796510),o=$e(o,n,i,s,t[6],9,-1069501632),s=$e(s,o,n,i,t[11],14,643717713),i=$e(i,s,o,n,t[0],20,-373897302),n=$e(n,i,s,o,t[5],5,-701558691),o=$e(o,n,i,s,t[10],9,38016083),s=$e(s,o,n,i,t[15],14,-660478335),i=$e(i,s,o,n,t[4],20,-405537848),n=$e(n,i,s,o,t[9],5,568446438),o=$e(o,n,i,s,t[14],9,-1019803690),s=$e(s,o,n,i,t[3],14,-187363961),i=$e(i,s,o,n,t[8],20,1163531501),n=$e(n,i,s,o,t[13],5,-1444681467),o=$e(o,n,i,s,t[2],9,-51403784),s=$e(s,o,n,i,t[7],14,1735328473),n=Qe(n,i=$e(i,s,o,n,t[12],20,-1926607734),s,o,t[5],4,-378558),o=Qe(o,n,i,s,t[8],11,-2022574463),s=Qe(s,o,n,i,t[11],16,1839030562),i=Qe(i,s,o,n,t[14],23,-35309556),n=Qe(n,i,s,o,t[1],4,-1530992060),o=Qe(o,n,i,s,t[4],11,1272893353),s=Qe(s,o,n,i,t[7],16,-155497632),i=Qe(i,s,o,n,t[10],23,-1094730640),n=Qe(n,i,s,o,t[13],4,681279174),o=Qe(o,n,i,s,t[0],11,-358537222),s=Qe(s,o,n,i,t[3],16,-722521979),i=Qe(i,s,o,n,t[6],23,76029189),n=Qe(n,i,s,o,t[9],4,-640364487),o=Qe(o,n,i,s,t[12],11,-421815835),s=Qe(s,o,n,i,t[15],16,530742520),n=tn(n,i=Qe(i,s,o,n,t[2],23,-995338651),s,o,t[0],6,-198630844),o=tn(o,n,i,s,t[7],10,1126891415),s=tn(s,o,n,i,t[14],15,-1416354905),i=tn(i,s,o,n,t[5],21,-57434055),n=tn(n,i,s,o,t[12],6,1700485571),o=tn(o,n,i,s,t[3],10,-1894986606),s=tn(s,o,n,i,t[10],15,-1051523),i=tn(i,s,o,n,t[1],21,-2054922799),n=tn(n,i,s,o,t[8],6,1873313359),o=tn(o,n,i,s,t[15],10,-30611744),s=tn(s,o,n,i,t[6],15,-1560198380),i=tn(i,s,o,n,t[13],21,1309151649),n=tn(n,i,s,o,t[4],6,-145523070),o=tn(o,n,i,s,t[11],10,-1120210379),s=tn(s,o,n,i,t[2],15,718787259),i=tn(i,s,o,n,t[9],21,-343485551),r[0]=Or(n,r[0]),r[1]=Or(i,r[1]),r[2]=Or(s,r[2]),r[3]=Or(o,r[3])}function xo(r,t,n,i,s,o){return t=Or(Or(t,r),Or(i,o)),Or(t<<s|t>>>32-s,n)}function Ze(r,t,n,i,s,o,u){return xo(t&n|~t&i,r,t,s,o,u)}function $e(r,t,n,i,s,o,u){return xo(t&i|n&~i,r,t,s,o,u)}function Qe(r,t,n,i,s,o,u){return xo(t^n^i,r,t,s,o,u)}function tn(r,t,n,i,s,o,u){return xo(n^(t|~i),r,t,s,o,u)}function Yl(r){var t,n=r.length,i=[1732584193,-271733879,-1732584194,271733878];for(t=64;t<=r.length;t+=64)Ls(i,lc(r.substring(t-64,t)));r=r.substring(t-64);var s=[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0];for(t=0;t<r.length;t++)s[t>>2]|=r.charCodeAt(t)<<(t%4<<3);if(s[t>>2]|=128<<(t%4<<3),t>55)for(Ls(i,s),t=0;t<16;t++)s[t]=0;return s[14]=8*n,Ls(i,s),i}function lc(r){var t,n=[];for(t=0;t<64;t+=4)n[t>>2]=r.charCodeAt(t)+(r.charCodeAt(t+1)<<8)+(r.charCodeAt(t+2)<<16)+(r.charCodeAt(t+3)<<24);return n}ma=Ht.atob.bind(Ht),_s=Ht.btoa.bind(Ht);var Cl="0123456789abcdef".split("");function uc(r){for(var t="",n=0;n<4;n++)t+=Cl[r>>8*n+4&15]+Cl[r>>8*n&15];return t}function cc(r){return String.fromCharCode((255&r)>>0,(65280&r)>>8,(16711680&r)>>16,(4278190080&r)>>24)}function Fs(r){return Yl(r).map(cc).join("")}var hc=(function(r){for(var t=0;t<r.length;t++)r[t]=uc(r[t]);return r.join("")})(Yl("hello"))!="5d41402abc4b2a76b9719d911017c592";function Or(r,t){if(hc){var n=(65535&r)+(65535&t);return(r>>16)+(t>>16)+(n>>16)<<16|65535&n}return r+t&4294967295}function ks(r,t){var n,i,s,o;if(r!==n){for(var u=(s=r,o=1+(256/r.length>>0),new Array(o+1).join(s)),h=[],f=0;f<256;f++)h[f]=f;var g=0;for(f=0;f<256;f++){var v=h[f];g=(g+v+u.charCodeAt(f))%256,h[f]=h[g],h[g]=v}n=r,i=h}else h=i;var y=t.length,N=0,d=0,C="";for(f=0;f<y;f++)d=(d+(v=h[N=(N+1)%256]))%256,h[N]=h[d],h[d]=v,u=h[(h[N]+h[d])%256],C+=String.fromCharCode(t.charCodeAt(f)^u);return C}var Ol={print:4,modify:8,copy:16,"annot-forms":32};function Fi(r,t,n,i){this.v=1,this.r=2;var s=192;r.forEach((function(h){if(Ol.perm!==void 0)throw new Error("Invalid permission: "+h);s+=Ol[h]})),this.padding="(\xBFN^Nu\x8AAd\0NV\xFF\xFA\b..\0\xB6\xD0h>\x80/\f\xA9\xFEdSiz";var o=(t+this.padding).substr(0,32),u=(n+this.padding).substr(0,32);this.O=this.processOwnerPassword(o,u),this.P=-(1+(255^s)),this.encryptionKey=Fs(o+this.O+this.lsbFirstWord(this.P)+this.hexToBytes(i)).substr(0,5),this.U=ks(this.encryptionKey,this.padding)}function ki(r){if(/[^\u0000-\u00ff]/.test(r))throw new Error("Invalid PDF Name Object: "+r+", Only accept ASCII characters.");for(var t="",n=r.length,i=0;i<n;i++){var s=r.charCodeAt(i);s<33||s===35||s===37||s===40||s===41||s===47||s===60||s===62||s===91||s===93||s===123||s===125||s>126?t+="#"+("0"+s.toString(16)).slice(-2):t+=r[i]}return t}function jl(r){if(ge(r)!=="object")throw new Error("Invalid Context passed to initialize PubSub (jsPDF-module)");var t={};this.subscribe=function(n,i,s){if(s=s||!1,typeof n!="string"||typeof i!="function"||typeof s!="boolean")throw new Error("Invalid arguments passed to PubSub.subscribe (jsPDF-module)");t.hasOwnProperty(n)||(t[n]={});var o=Math.random().toString(35);return t[n][o]=[i,!!s],o},this.unsubscribe=function(n){for(var i in t)if(t[i][n])return delete t[i][n],Object.keys(t[i]).length===0&&delete t[i],!0;return!1},this.publish=function(n){if(t.hasOwnProperty(n)){var i=Array.prototype.slice.call(arguments,1),s=[];for(var o in t[n]){var u=t[n][o];try{u[0].apply(r,i)}catch(h){Ht.console&&be.error("jsPDF PubSub Error",h.message,h)}u[1]&&s.push(o)}s.length&&s.forEach(this.unsubscribe)}},this.getTopics=function(){return t}}function yo(r){if(!(this instanceof yo))return new yo(r);var t="opacity,stroke-opacity".split(",");for(var n in r)r.hasOwnProperty(n)&&t.indexOf(n)>=0&&(this[n]=r[n]);this.id="",this.objectNumber=-1}function Xl(r,t){this.gState=r,this.matrix=t,this.id="",this.objectNumber=-1}function Yr(r,t,n,i,s){if(!(this instanceof Yr))return new Yr(r,t,n,i,s);this.type=r==="axial"?2:3,this.coords=t,this.colors=n,Xl.call(this,i,s)}function Ii(r,t,n,i,s){if(!(this instanceof Ii))return new Ii(r,t,n,i,s);this.boundingBox=r,this.xStep=t,this.yStep=n,this.stream="",this.cloneIndex=0,Xl.call(this,i,s)}function Rt(r){var t,n=typeof arguments[0]=="string"?arguments[0]:"p",i=arguments[1],s=arguments[2],o=arguments[3],u=[],h=1,f=16,g="S",v=null;ge(r=r||{})==="object"&&(n=r.orientation,i=r.unit||i,s=r.format||s,o=r.compress||r.compressPdf||o,(v=r.encryption||null)!==null&&(v.userPassword=v.userPassword||"",v.ownerPassword=v.ownerPassword||"",v.userPermissions=v.userPermissions||[]),h=typeof r.userUnit=="number"?Math.abs(r.userUnit):1,r.precision!==void 0&&(t=r.precision),r.floatPrecision!==void 0&&(f=r.floatPrecision),g=r.defaultPathOperation||"S"),u=r.filters||(o===!0?["FlateEncode"]:u),i=i||"mm",n=(""+(n||"P")).toLowerCase();var y=r.putOnlyUsedFonts||!1,N={},d={internal:{},__private__:{}};d.__private__.PubSub=jl;var C="1.3",F=d.__private__.getPdfVersion=function(){return C};d.__private__.setPdfVersion=function(l){C=l};var D={a0:[2383.94,3370.39],a1:[1683.78,2383.94],a2:[1190.55,1683.78],a3:[841.89,1190.55],a4:[595.28,841.89],a5:[419.53,595.28],a6:[297.64,419.53],a7:[209.76,297.64],a8:[147.4,209.76],a9:[104.88,147.4],a10:[73.7,104.88],b0:[2834.65,4008.19],b1:[2004.09,2834.65],b2:[1417.32,2004.09],b3:[1000.63,1417.32],b4:[708.66,1000.63],b5:[498.9,708.66],b6:[354.33,498.9],b7:[249.45,354.33],b8:[175.75,249.45],b9:[124.72,175.75],b10:[87.87,124.72],c0:[2599.37,3676.54],c1:[1836.85,2599.37],c2:[1298.27,1836.85],c3:[918.43,1298.27],c4:[649.13,918.43],c5:[459.21,649.13],c6:[323.15,459.21],c7:[229.61,323.15],c8:[161.57,229.61],c9:[113.39,161.57],c10:[79.37,113.39],dl:[311.81,623.62],letter:[612,792],"government-letter":[576,756],legal:[612,1008],"junior-legal":[576,360],ledger:[1224,792],tabloid:[792,1224],"credit-card":[153,243]};d.__private__.getPageFormats=function(){return D};var P=d.__private__.getPageFormat=function(l){return D[l]};s=s||"a4";var M={COMPAT:"compat",ADVANCED:"advanced"},W=M.COMPAT;function tt(){this.saveGraphicsState(),T(new zt(Ct,0,0,-Ct,0,br()*Ct).toString()+" cm"),this.setFontSize(this.getFontSize()/Ct),g="n",W=M.ADVANCED}function ot(){this.restoreGraphicsState(),g="S",W=M.COMPAT}var yt=d.__private__.combineFontStyleAndFontWeight=function(l,b){if(l=="bold"&&b=="normal"||l=="bold"&&b==400||l=="normal"&&b=="italic"||l=="bold"&&b=="italic")throw new Error("Invalid Combination of fontweight and fontstyle");return b&&(l=b==400||b==="normal"?l==="italic"?"italic":"normal":b!=700&&b!=="bold"||l!=="normal"?(b==700?"bold":b)+""+l:"bold"),l};d.advancedAPI=function(l){var b=W===M.COMPAT;return b&&tt.call(this),typeof l!="function"||(l(this),b&&ot.call(this)),this},d.compatAPI=function(l){var b=W===M.ADVANCED;return b&&ot.call(this),typeof l!="function"||(l(this),b&&tt.call(this)),this},d.isAdvancedAPI=function(){return W===M.ADVANCED};var et,z=function(l){if(W!==M.ADVANCED)throw new Error(l+" is only available in 'advanced' API mode. You need to call advancedAPI() first.")},it=d.roundToPrecision=d.__private__.roundToPrecision=function(l,b){var j=t||b;if(isNaN(l)||isNaN(j))throw new Error("Invalid argument passed to jsPDF.roundToPrecision");return l.toFixed(j).replace(/0+$/,"")};et=d.hpf=d.__private__.hpf=typeof f=="number"?function(l){if(isNaN(l))throw new Error("Invalid argument passed to jsPDF.hpf");return it(l,f)}:f==="smart"?function(l){if(isNaN(l))throw new Error("Invalid argument passed to jsPDF.hpf");return it(l,l>-1&&l<1?16:5)}:function(l){if(isNaN(l))throw new Error("Invalid argument passed to jsPDF.hpf");return it(l,16)};var dt=d.f2=d.__private__.f2=function(l){if(isNaN(l))throw new Error("Invalid argument passed to jsPDF.f2");return it(l,2)},_=d.__private__.f3=function(l){if(isNaN(l))throw new Error("Invalid argument passed to jsPDF.f3");return it(l,3)},k=d.scale=d.__private__.scale=function(l){if(isNaN(l))throw new Error("Invalid argument passed to jsPDF.scale");return W===M.COMPAT?l*Ct:W===M.ADVANCED?l:void 0},G=function(l){return W===M.COMPAT?br()-l:W===M.ADVANCED?l:void 0},E=function(l){return k(G(l))};d.__private__.setPrecision=d.setPrecision=function(l){typeof parseInt(l,10)=="number"&&(t=parseInt(l,10))};var lt,at="00000000000000000000000000000000",ht=d.__private__.getFileId=function(){return at},$=d.__private__.setFileId=function(l){return at=l!==void 0&&/^[a-fA-F0-9]{32}$/.test(l)?l.toUpperCase():at.split("").map((function(){return"ABCDEF0123456789".charAt(Math.floor(16*Math.random()))})).join(""),v!==null&&(Ye=new Fi(v.userPermissions,v.userPassword,v.ownerPassword,at)),at};d.setFileId=function(l){return $(l),this},d.getFileId=function(){return ht()};var ct=d.__private__.convertDateToPDFDate=function(l){var b=l.getTimezoneOffset(),j=b<0?"+":"-",q=Math.floor(Math.abs(b/60)),X=Math.abs(b%60),ut=[j,B(q),"'",B(X),"'"].join("");return["D:",l.getFullYear(),B(l.getMonth()+1),B(l.getDate()),B(l.getHours()),B(l.getMinutes()),B(l.getSeconds()),ut].join("")},pt=d.__private__.convertPDFDateToDate=function(l){var b=parseInt(l.substr(2,4),10),j=parseInt(l.substr(6,2),10)-1,q=parseInt(l.substr(8,2),10),X=parseInt(l.substr(10,2),10),ut=parseInt(l.substr(12,2),10),wt=parseInt(l.substr(14,2),10);return new Date(b,j,q,X,ut,wt,0)},Ot=d.__private__.setCreationDate=function(l){var b;if(l===void 0&&(l=new Date),l instanceof Date)b=ct(l);else{if(!/^D:(20[0-2][0-9]|203[0-7]|19[7-9][0-9])(0[0-9]|1[0-2])([0-2][0-9]|3[0-1])(0[0-9]|1[0-9]|2[0-3])(0[0-9]|[1-5][0-9])(0[0-9]|[1-5][0-9])(\+0[0-9]|\+1[0-4]|-0[0-9]|-1[0-1])'(0[0-9]|[1-5][0-9])'?$/.test(l))throw new Error("Invalid argument passed to jsPDF.setCreationDate");b=l}return lt=b},A=d.__private__.getCreationDate=function(l){var b=lt;return l==="jsDate"&&(b=pt(lt)),b};d.setCreationDate=function(l){return Ot(l),this},d.getCreationDate=function(l){return A(l)};var O,B=d.__private__.padd2=function(l){return("0"+parseInt(l)).slice(-2)},R=d.__private__.padd2Hex=function(l){return("00"+(l=l.toString())).substr(l.length)},Y=0,Q=[],nt=[],rt=0,Lt=[],At=[],kt=!1,Pt=nt,Ut=function(){Y=0,rt=0,nt=[],Q=[],Lt=[],ir=Me(),In=Me()};d.__private__.setCustomOutputDestination=function(l){kt=!0,Pt=l};var ft=function(l){kt||(Pt=l)};d.__private__.resetCustomOutputDestination=function(){kt=!1,Pt=nt};var T=d.__private__.out=function(l){return l=l.toString(),rt+=l.length+1,Pt.push(l),Pt},Kt=d.__private__.write=function(l){return T(arguments.length===1?l.toString():Array.prototype.join.call(arguments," "))},Bt=d.__private__.getArrayBuffer=function(l){for(var b=l.length,j=new ArrayBuffer(b),q=new Uint8Array(j);b--;)q[b]=l.charCodeAt(b);return j},xt=[["Helvetica","helvetica","normal","WinAnsiEncoding"],["Helvetica-Bold","helvetica","bold","WinAnsiEncoding"],["Helvetica-Oblique","helvetica","italic","WinAnsiEncoding"],["Helvetica-BoldOblique","helvetica","bolditalic","WinAnsiEncoding"],["Courier","courier","normal","WinAnsiEncoding"],["Courier-Bold","courier","bold","WinAnsiEncoding"],["Courier-Oblique","courier","italic","WinAnsiEncoding"],["Courier-BoldOblique","courier","bolditalic","WinAnsiEncoding"],["Times-Roman","times","normal","WinAnsiEncoding"],["Times-Bold","times","bold","WinAnsiEncoding"],["Times-Italic","times","italic","WinAnsiEncoding"],["Times-BoldItalic","times","bolditalic","WinAnsiEncoding"],["ZapfDingbats","zapfdingbats","normal",null],["Symbol","symbol","normal",null]];d.__private__.getStandardFonts=function(){return xt};var Nt=r.fontSize||16;d.__private__.setFontSize=d.setFontSize=function(l){return Nt=W===M.ADVANCED?l/Ct:l,this};var It,Ft=d.__private__.getFontSize=d.getFontSize=function(){return W===M.COMPAT?Nt:Nt*Ct},Tt=r.R2L||!1;d.__private__.setR2L=d.setR2L=function(l){return Tt=l,this},d.__private__.getR2L=d.getR2L=function(){return Tt};var Vt,Qt=d.__private__.setZoomMode=function(l){var b=[void 0,null,"fullwidth","fullheight","fullpage","original"];if(/^(?:\d+\.\d*|\d*\.\d+|\d+)%$/.test(l))It=l;else if(isNaN(l)){if(b.indexOf(l)===-1)throw new Error('zoom must be Integer (e.g. 2), a percentage Value (e.g. 300%) or fullwidth, fullheight, fullpage, original. "'+l+'" is not recognized.');It=l}else It=parseInt(l,10)};d.__private__.getZoomMode=function(){return It};var te,ie=d.__private__.setPageMode=function(l){if([void 0,null,"UseNone","UseOutlines","UseThumbs","FullScreen"].indexOf(l)==-1)throw new Error('Page mode must be one of UseNone, UseOutlines, UseThumbs, or FullScreen. "'+l+'" is not recognized.');Vt=l};d.__private__.getPageMode=function(){return Vt};var pe=d.__private__.setLayoutMode=function(l){if([void 0,null,"continuous","single","twoleft","tworight","two"].indexOf(l)==-1)throw new Error('Layout mode must be one of continuous, single, twoleft, tworight. "'+l+'" is not recognized.');te=l};d.__private__.getLayoutMode=function(){return te},d.__private__.setDisplayMode=d.setDisplayMode=function(l,b,j){return Qt(l),pe(b),ie(j),this};var Wt={title:"",subject:"",author:"",keywords:"",creator:""};d.__private__.getDocumentProperty=function(l){if(Object.keys(Wt).indexOf(l)===-1)throw new Error("Invalid argument passed to jsPDF.getDocumentProperty");return Wt[l]},d.__private__.getDocumentProperties=function(){return Wt},d.__private__.setDocumentProperties=d.setProperties=d.setDocumentProperties=function(l){for(var b in Wt)Wt.hasOwnProperty(b)&&l[b]&&(Wt[b]=l[b]);return this},d.__private__.setDocumentProperty=function(l,b){if(Object.keys(Wt).indexOf(l)===-1)throw new Error("Invalid arguments passed to jsPDF.setDocumentProperty");return Wt[l]=b};var ee,Ct,Je,oe,_n,me={},xe={},Hn=[],ue={},Mr={},Le={},Fn={},rr=null,Ne=0,Jt=[],ce=new jl(d),Dr=r.hotfixes||[],We={},Wn={},Gn=[],zt=function l(b,j,q,X,ut,wt){if(!(this instanceof l))return new l(b,j,q,X,ut,wt);isNaN(b)&&(b=1),isNaN(j)&&(j=0),isNaN(q)&&(q=0),isNaN(X)&&(X=1),isNaN(ut)&&(ut=0),isNaN(wt)&&(wt=0),this._matrix=[b,j,q,X,ut,wt]};Object.defineProperty(zt.prototype,"sx",{get:function(){return this._matrix[0]},set:function(l){this._matrix[0]=l}}),Object.defineProperty(zt.prototype,"shy",{get:function(){return this._matrix[1]},set:function(l){this._matrix[1]=l}}),Object.defineProperty(zt.prototype,"shx",{get:function(){return this._matrix[2]},set:function(l){this._matrix[2]=l}}),Object.defineProperty(zt.prototype,"sy",{get:function(){return this._matrix[3]},set:function(l){this._matrix[3]=l}}),Object.defineProperty(zt.prototype,"tx",{get:function(){return this._matrix[4]},set:function(l){this._matrix[4]=l}}),Object.defineProperty(zt.prototype,"ty",{get:function(){return this._matrix[5]},set:function(l){this._matrix[5]=l}}),Object.defineProperty(zt.prototype,"a",{get:function(){return this._matrix[0]},set:function(l){this._matrix[0]=l}}),Object.defineProperty(zt.prototype,"b",{get:function(){return this._matrix[1]},set:function(l){this._matrix[1]=l}}),Object.defineProperty(zt.prototype,"c",{get:function(){return this._matrix[2]},set:function(l){this._matrix[2]=l}}),Object.defineProperty(zt.prototype,"d",{get:function(){return this._matrix[3]},set:function(l){this._matrix[3]=l}}),Object.defineProperty(zt.prototype,"e",{get:function(){return this._matrix[4]},set:function(l){this._matrix[4]=l}}),Object.defineProperty(zt.prototype,"f",{get:function(){return this._matrix[5]},set:function(l){this._matrix[5]=l}}),Object.defineProperty(zt.prototype,"rotation",{get:function(){return Math.atan2(this.shx,this.sx)}}),Object.defineProperty(zt.prototype,"scaleX",{get:function(){return this.decompose().scale.sx}}),Object.defineProperty(zt.prototype,"scaleY",{get:function(){return this.decompose().scale.sy}}),Object.defineProperty(zt.prototype,"isIdentity",{get:function(){return this.sx===1&&this.shy===0&&this.shx===0&&this.sy===1&&this.tx===0&&this.ty===0}}),zt.prototype.join=function(l){return[this.sx,this.shy,this.shx,this.sy,this.tx,this.ty].map(et).join(l)},zt.prototype.multiply=function(l){var b=l.sx*this.sx+l.shy*this.shx,j=l.sx*this.shy+l.shy*this.sy,q=l.shx*this.sx+l.sy*this.shx,X=l.shx*this.shy+l.sy*this.sy,ut=l.tx*this.sx+l.ty*this.shx+this.tx,wt=l.tx*this.shy+l.ty*this.sy+this.ty;return new zt(b,j,q,X,ut,wt)},zt.prototype.decompose=function(){var l=this.sx,b=this.shy,j=this.shx,q=this.sy,X=this.tx,ut=this.ty,wt=Math.sqrt(l*l+b*b),jt=(l/=wt)*j+(b/=wt)*q;j-=l*jt,q-=b*jt;var Et=Math.sqrt(j*j+q*q);return jt/=Et,l*(q/=Et)<b*(j/=Et)&&(l=-l,b=-b,jt=-jt,wt=-wt),{scale:new zt(wt,0,0,Et,0,0),translate:new zt(1,0,0,1,X,ut),rotate:new zt(l,b,-b,l,0,0),skew:new zt(1,0,jt,1,0,0)}},zt.prototype.toString=function(l){return this.join(" ")},zt.prototype.inversed=function(){var l=this.sx,b=this.shy,j=this.shx,q=this.sy,X=this.tx,ut=this.ty,wt=1/(l*q-b*j),jt=q*wt,Et=-b*wt,Zt=-j*wt,Yt=l*wt;return new zt(jt,Et,Zt,Yt,-jt*X-Zt*ut,-Et*X-Yt*ut)},zt.prototype.applyToPoint=function(l){var b=l.x*this.sx+l.y*this.shx+this.tx,j=l.x*this.shy+l.y*this.sy+this.ty;return new ci(b,j)},zt.prototype.applyToRectangle=function(l){var b=this.applyToPoint(l),j=this.applyToPoint(new ci(l.x+l.w,l.y+l.h));return new Vi(b.x,b.y,j.x-b.x,j.y-b.y)},zt.prototype.clone=function(){var l=this.sx,b=this.shy,j=this.shx,q=this.sy,X=this.tx,ut=this.ty;return new zt(l,b,j,q,X,ut)},d.Matrix=zt;var kn=d.matrixMult=function(l,b){return b.multiply(l)},Vn=new zt(1,0,0,1,0,0);d.unitMatrix=d.identityMatrix=Vn;var an=function(l,b){if(!Mr[l]){var j=(b instanceof Yr?"Sh":"P")+(Object.keys(ue).length+1).toString(10);b.id=j,Mr[l]=j,ue[j]=b,ce.publish("addPattern",b)}};d.ShadingPattern=Yr,d.TilingPattern=Ii,d.addShadingPattern=function(l,b){return z("addShadingPattern()"),an(l,b),this},d.beginTilingPattern=function(l){z("beginTilingPattern()"),Da(l.boundingBox[0],l.boundingBox[1],l.boundingBox[2]-l.boundingBox[0],l.boundingBox[3]-l.boundingBox[1],l.matrix)},d.endTilingPattern=function(l,b){z("endTilingPattern()"),b.stream=At[O].join(`
|
3
|
+
v1.1.0-next.20250819 */
|
4
|
+
import{b as gl,ta as ml}from"./UMGOFUDS.js";import{a as ge}from"./H6N72YM6.js";import{a as dl}from"./GE225ZJ6.js";import{b as pl}from"./3T3QPZTS.js";import{b as fa}from"./DPYO4UNZ.js";import{c as fl}from"./ELYCXPDG.js";var Ke=Uint8Array,vn=Uint16Array,ys=Int32Array,so=new Ke([0,0,0,0,0,0,0,0,1,1,1,1,2,2,2,2,3,3,3,3,4,4,4,4,5,5,5,5,0,0,0,0]),lo=new Ke([0,0,0,0,1,1,2,2,3,3,4,4,5,5,6,6,7,7,8,8,9,9,10,10,11,11,12,12,13,13,0,0]),gs=new Ke([16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15]),wl=function(r,t){for(var n=new vn(31),i=0;i<31;++i)n[i]=t+=1<<r[i-1];for(var s=new ys(n[30]),i=1;i<30;++i)for(var o=n[i];o<n[i+1];++o)s[o]=o-n[i]<<5|i;return{b:n,r:s}},xl=wl(so,2),Al=xl.b,ms=xl.r;Al[28]=258,ms[258]=28;var Ll=wl(lo,0),Yu=Ll.b,vl=Ll.r,vs=new vn(32768);for(le=0;le<32768;++le)dr=(le&43690)>>1|(le&21845)<<1,dr=(dr&52428)>>2|(dr&13107)<<2,dr=(dr&61680)>>4|(dr&3855)<<4,vs[le]=((dr&65280)>>8|(dr&255)<<8)>>1;var dr,le,Qn=(function(r,t,n){for(var i=r.length,s=0,o=new vn(t);s<i;++s)r[s]&&++o[r[s]-1];var u=new vn(t);for(s=1;s<t;++s)u[s]=u[s-1]+o[s-1]<<1;var h;if(n){h=new vn(1<<t);var f=15-t;for(s=0;s<i;++s)if(r[s])for(var g=s<<4|r[s],v=t-r[s],y=u[r[s]-1]++<<v,N=y|(1<<v)-1;y<=N;++y)h[vs[y]>>f]=g}else for(h=new vn(i),s=0;s<i;++s)r[s]&&(h[s]=vs[u[r[s]-1]++]>>15-r[s]);return h}),Ir=new Ke(288);for(le=0;le<144;++le)Ir[le]=8;var le;for(le=144;le<256;++le)Ir[le]=9;var le;for(le=256;le<280;++le)Ir[le]=7;var le;for(le=280;le<288;++le)Ir[le]=8;var le,ga=new Ke(32);for(le=0;le<32;++le)ga[le]=5;var le,Xu=Qn(Ir,9,0),Ku=Qn(Ir,9,1),Zu=Qn(ga,5,0),$u=Qn(ga,5,1),fs=function(r){for(var t=r[0],n=1;n<r.length;++n)r[n]>t&&(t=r[n]);return t},En=function(r,t,n){var i=t/8|0;return(r[i]|r[i+1]<<8)>>(t&7)&n},ps=function(r,t){var n=t/8|0;return(r[n]|r[n+1]<<8|r[n+2]<<16)>>(t&7)},ws=function(r){return(r+7)/8|0},Nl=function(r,t,n){return(t==null||t<0)&&(t=0),(n==null||n>r.length)&&(n=r.length),new Ke(r.subarray(t,n))};var Qu=["unexpected EOF","invalid block type","invalid length/literal","invalid distance","stream finished","no stream handler",,"no callback","invalid UTF-8 data","extra field too long","date not in range 1980-2099","filename too long","stream finishing","invalid zip data"],qn=function(r,t,n){var i=new Error(t||Qu[r]);if(i.code=r,Error.captureStackTrace&&Error.captureStackTrace(i,qn),!n)throw i;return i},tc=function(r,t,n,i){var s=r.length,o=i?i.length:0;if(!s||t.f&&!t.l)return n||new Ke(0);var u=!n,h=u||t.i!=2,f=t.i;u&&(n=new Ke(s*3));var g=function(At){var kt=n.length;if(At>kt){var Pt=new Ke(Math.max(kt*2,At));Pt.set(n),n=Pt}},v=t.f||0,y=t.p||0,N=t.b||0,d=t.l,C=t.d,F=t.m,D=t.n,P=s*8;do{if(!d){v=En(r,y,1);var M=En(r,y+1,3);if(y+=3,M)if(M==1)d=Ku,C=$u,F=9,D=5;else if(M==2){var yt=En(r,y,31)+257,et=En(r,y+10,15)+4,z=yt+En(r,y+5,31)+1;y+=14;for(var it=new Ke(z),dt=new Ke(19),_=0;_<et;++_)dt[gs[_]]=En(r,y+_*3,7);y+=et*3;for(var k=fs(dt),G=(1<<k)-1,E=Qn(dt,k,1),_=0;_<z;){var lt=E[En(r,y,G)];y+=lt&15;var W=lt>>4;if(W<16)it[_++]=W;else{var at=0,ht=0;for(W==16?(ht=3+En(r,y,3),y+=2,at=it[_-1]):W==17?(ht=3+En(r,y,7),y+=3):W==18&&(ht=11+En(r,y,127),y+=7);ht--;)it[_++]=at}}var $=it.subarray(0,yt),ct=it.subarray(yt);F=fs($),D=fs(ct),d=Qn($,F,1),C=Qn(ct,D,1)}else qn(1);else{var W=ws(y)+4,tt=r[W-4]|r[W-3]<<8,ot=W+tt;if(ot>s){f&&qn(0);break}h&&g(N+tt),n.set(r.subarray(W,ot),N),t.b=N+=tt,t.p=y=ot*8,t.f=v;continue}if(y>P){f&&qn(0);break}}h&&g(N+131072);for(var pt=(1<<F)-1,Ot=(1<<D)-1,A=y;;A=y){var at=d[ps(r,y)&pt],O=at>>4;if(y+=at&15,y>P){f&&qn(0);break}if(at||qn(2),O<256)n[N++]=O;else if(O==256){A=y,d=null;break}else{var B=O-254;if(O>264){var _=O-257,R=so[_];B=En(r,y,(1<<R)-1)+Al[_],y+=R}var Y=C[ps(r,y)&Ot],Q=Y>>4;Y||qn(3),y+=Y&15;var ct=Yu[Q];if(Q>3){var R=lo[Q];ct+=ps(r,y)&(1<<R)-1,y+=R}if(y>P){f&&qn(0);break}h&&g(N+131072);var nt=N+B;if(N<ct){var rt=o-ct,Lt=Math.min(ct,nt);for(rt+N<0&&qn(3);N<Lt;++N)n[N]=i[rt+N]}for(;N<nt;++N)n[N]=n[N-ct]}}t.l=d,t.p=A,t.b=N,t.f=v,d&&(v=1,t.m=F,t.d=C,t.n=D)}while(!v);return N!=n.length&&u?Nl(n,0,N):n.subarray(0,N)},gr=function(r,t,n){n<<=t&7;var i=t/8|0;r[i]|=n,r[i+1]|=n>>8},pa=function(r,t,n){n<<=t&7;var i=t/8|0;r[i]|=n,r[i+1]|=n>>8,r[i+2]|=n>>16},ds=function(r,t){for(var n=[],i=0;i<r.length;++i)r[i]&&n.push({s:i,f:r[i]});var s=n.length,o=n.slice();if(!s)return{t:Pl,l:0};if(s==1){var u=new Ke(n[0].s+1);return u[n[0].s]=1,{t:u,l:1}}n.sort(function(ot,yt){return ot.f-yt.f}),n.push({s:-1,f:25001});var h=n[0],f=n[1],g=0,v=1,y=2;for(n[0]={s:-1,f:h.f+f.f,l:h,r:f};v!=s-1;)h=n[n[g].f<n[y].f?g++:y++],f=n[g!=v&&n[g].f<n[y].f?g++:y++],n[v++]={s:-1,f:h.f+f.f,l:h,r:f};for(var N=o[0].s,i=1;i<s;++i)o[i].s>N&&(N=o[i].s);var d=new vn(N+1),C=bs(n[v-1],d,0);if(C>t){var i=0,F=0,D=C-t,P=1<<D;for(o.sort(function(yt,et){return d[et.s]-d[yt.s]||yt.f-et.f});i<s;++i){var M=o[i].s;if(d[M]>t)F+=P-(1<<C-d[M]),d[M]=t;else break}for(F>>=D;F>0;){var W=o[i].s;d[W]<t?F-=1<<t-d[W]++-1:++i}for(;i>=0&&F;--i){var tt=o[i].s;d[tt]==t&&(--d[tt],++F)}C=t}return{t:new Ke(d),l:C}},bs=function(r,t,n){return r.s==-1?Math.max(bs(r.l,t,n+1),bs(r.r,t,n+1)):t[r.s]=n},bl=function(r){for(var t=r.length;t&&!r[--t];);for(var n=new vn(++t),i=0,s=r[0],o=1,u=function(f){n[i++]=f},h=1;h<=t;++h)if(r[h]==s&&h!=t)++o;else{if(!s&&o>2){for(;o>138;o-=138)u(32754);o>2&&(u(o>10?o-11<<5|28690:o-3<<5|12305),o=0)}else if(o>3){for(u(s),--o;o>6;o-=6)u(8304);o>2&&(u(o-3<<5|8208),o=0)}for(;o--;)u(s);o=1,s=r[h]}return{c:n.subarray(0,i),n:t}},da=function(r,t){for(var n=0,i=0;i<t.length;++i)n+=r[i]*t[i];return n},Sl=function(r,t,n){var i=n.length,s=ws(t+2);r[s]=i&255,r[s+1]=i>>8,r[s+2]=r[s]^255,r[s+3]=r[s+1]^255;for(var o=0;o<i;++o)r[s+o+4]=n[o];return(s+4+i)*8},yl=function(r,t,n,i,s,o,u,h,f,g,v){gr(t,v++,n),++s[256];for(var y=ds(s,15),N=y.t,d=y.l,C=ds(o,15),F=C.t,D=C.l,P=bl(N),M=P.c,W=P.n,tt=bl(F),ot=tt.c,yt=tt.n,et=new vn(19),z=0;z<M.length;++z)++et[M[z]&31];for(var z=0;z<ot.length;++z)++et[ot[z]&31];for(var it=ds(et,7),dt=it.t,_=it.l,k=19;k>4&&!dt[gs[k-1]];--k);var G=g+5<<3,E=da(s,Ir)+da(o,ga)+u,lt=da(s,N)+da(o,F)+u+14+3*k+da(et,dt)+2*et[16]+3*et[17]+7*et[18];if(f>=0&&G<=E&&G<=lt)return Sl(t,v,r.subarray(f,f+g));var at,ht,$,ct;if(gr(t,v,1+(lt<E)),v+=2,lt<E){at=Qn(N,d,0),ht=N,$=Qn(F,D,0),ct=F;var pt=Qn(dt,_,0);gr(t,v,W-257),gr(t,v+5,yt-1),gr(t,v+10,k-4),v+=14;for(var z=0;z<k;++z)gr(t,v+3*z,dt[gs[z]]);v+=3*k;for(var Ot=[M,ot],A=0;A<2;++A)for(var O=Ot[A],z=0;z<O.length;++z){var B=O[z]&31;gr(t,v,pt[B]),v+=dt[B],B>15&&(gr(t,v,O[z]>>5&127),v+=O[z]>>12)}}else at=Xu,ht=Ir,$=Zu,ct=ga;for(var z=0;z<h;++z){var R=i[z];if(R>255){var B=R>>18&31;pa(t,v,at[B+257]),v+=ht[B+257],B>7&&(gr(t,v,R>>23&31),v+=so[B]);var Y=R&31;pa(t,v,$[Y]),v+=ct[Y],Y>3&&(pa(t,v,R>>5&8191),v+=lo[Y])}else pa(t,v,at[R]),v+=ht[R]}return pa(t,v,at[256]),v+ht[256]},ec=new ys([65540,131080,131088,131104,262176,1048704,1048832,2114560,2117632]),Pl=new Ke(0),nc=function(r,t,n,i,s,o){var u=o.z||r.length,h=new Ke(i+u+5*(1+Math.ceil(u/7e3))+s),f=h.subarray(i,h.length-s),g=o.l,v=(o.r||0)&7;if(t){v&&(f[0]=o.r>>3);for(var y=ec[t-1],N=y>>13,d=y&8191,C=(1<<n)-1,F=o.p||new vn(32768),D=o.h||new vn(C+1),P=Math.ceil(n/3),M=2*P,W=function(Ut){return(r[Ut]^r[Ut+1]<<P^r[Ut+2]<<M)&C},tt=new ys(25e3),ot=new vn(288),yt=new vn(32),et=0,z=0,it=o.i||0,dt=0,_=o.w||0,k=0;it+2<u;++it){var G=W(it),E=it&32767,lt=D[G];if(F[E]=lt,D[G]=E,_<=it){var at=u-it;if((et>7e3||dt>24576)&&(at>423||!g)){v=yl(r,f,0,tt,ot,yt,z,dt,k,it-k,v),dt=et=z=0,k=it;for(var ht=0;ht<286;++ht)ot[ht]=0;for(var ht=0;ht<30;++ht)yt[ht]=0}var $=2,ct=0,pt=d,Ot=E-lt&32767;if(at>2&&G==W(it-Ot))for(var A=Math.min(N,at)-1,O=Math.min(32767,it),B=Math.min(258,at);Ot<=O&&--pt&&E!=lt;){if(r[it+$]==r[it+$-Ot]){for(var R=0;R<B&&r[it+R]==r[it+R-Ot];++R);if(R>$){if($=R,ct=Ot,R>A)break;for(var Y=Math.min(Ot,R-2),Q=0,ht=0;ht<Y;++ht){var nt=it-Ot+ht&32767,rt=F[nt],Lt=nt-rt&32767;Lt>Q&&(Q=Lt,lt=nt)}}}E=lt,lt=F[E],Ot+=E-lt&32767}if(ct){tt[dt++]=268435456|ms[$]<<18|vl[ct];var At=ms[$]&31,kt=vl[ct]&31;z+=so[At]+lo[kt],++ot[257+At],++yt[kt],_=it+$,++et}else tt[dt++]=r[it],++ot[r[it]]}}for(it=Math.max(it,_);it<u;++it)tt[dt++]=r[it],++ot[r[it]];v=yl(r,f,g,tt,ot,yt,z,dt,k,it-k,v),g||(o.r=v&7|f[v/8|0]<<3,v-=7,o.h=D,o.p=F,o.i=it,o.w=_)}else{for(var it=o.w||0;it<u+g;it+=65535){var Pt=it+65535;Pt>=u&&(f[v/8|0]=g,Pt=u),v=Sl(f,v+1,r.subarray(it,Pt))}o.i=u}return Nl(h,0,i+ws(v)+s)};var _l=function(){var r=1,t=0;return{p:function(n){for(var i=r,s=t,o=n.length|0,u=0;u!=o;){for(var h=Math.min(u+2655,o);u<h;++u)s+=i+=n[u];i=(i&65535)+15*(i>>16),s=(s&65535)+15*(s>>16)}r=i,t=s},d:function(){return r%=65521,t%=65521,(r&255)<<24|(r&65280)<<8|(t&255)<<8|t>>8}}},rc=function(r,t,n,i,s){if(!s&&(s={l:1},t.dictionary)){var o=t.dictionary.subarray(-32768),u=new Ke(o.length+r.length);u.set(o),u.set(r,o.length),r=u,s.w=o.length}return nc(r,t.level==null?6:t.level,t.mem==null?s.l?Math.ceil(Math.max(8,Math.min(13,Math.log(r.length)))*1.5):20:12+t.mem,n,i,s)};var Fl=function(r,t,n){for(;n;++t)r[t]=n,n>>>=8};var ic=function(r,t){var n=t.level,i=n==0?0:n<6?1:n==9?3:2;if(r[0]=120,r[1]=i<<6|(t.dictionary&&32),r[1]|=31-(r[0]<<8|r[1])%31,t.dictionary){var s=_l();s.p(t.dictionary),Fl(r,2,s.d())}},ac=function(r,t){return((r[0]&15)!=8||r[0]>>4>7||(r[0]<<8|r[1])%31)&&qn(6,"invalid zlib data"),(r[1]>>5&1)==+!t&&qn(6,"invalid zlib data: "+(r[1]&32?"need":"unexpected")+" dictionary"),(r[1]>>3&4)+2};function uo(r,t){t||(t={});var n=_l();n.p(r);var i=rc(r,t,t.dictionary?6:2,4);return ic(i,t),Fl(i,i.length-4,n.d()),i}function kl(r,t){return tc(r.subarray(ac(r,t&&t.dictionary),-4),{i:2},t&&t.out,t&&t.dictionary)}var oc=typeof TextDecoder<"u"&&new TextDecoder,sc=0;try{oc.decode(Pl,{stream:!0}),sc=1}catch{}var Ht=(function(){return typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:this})();function xs(){Ht.console&&typeof Ht.console.log=="function"&&Ht.console.log.apply(Ht.console,arguments)}var be={log:xs,warn:function(r){Ht.console&&(typeof Ht.console.warn=="function"?Ht.console.warn.apply(Ht.console,arguments):xs.call(null,arguments))},error:function(r){Ht.console&&(typeof Ht.console.error=="function"?Ht.console.error.apply(Ht.console,arguments):xs(r))}};function As(r,t,n){var i=new XMLHttpRequest;i.open("GET",r),i.responseType="blob",i.onload=function(){Jr(i.response,t,n)},i.onerror=function(){be.error("could not download file")},i.send()}function Il(r){var t=new XMLHttpRequest;t.open("HEAD",r,!1);try{t.send()}catch{}return t.status>=200&&t.status<=299}function co(r){try{r.dispatchEvent(new MouseEvent("click"))}catch{var t=document.createEvent("MouseEvents");t.initMouseEvent("click",!0,!0,window,0,0,0,80,20,!1,!1,!1,!1,0,null),r.dispatchEvent(t)}}var ma,_s,Jr=Ht.saveAs||((typeof window>"u"?"undefined":ge(window))!=="object"||window!==Ht?function(){}:typeof HTMLAnchorElement<"u"&&"download"in HTMLAnchorElement.prototype?function(r,t,n){var i=Ht.URL||Ht.webkitURL,s=document.createElement("a");t=t||r.name||"download",s.download=t,s.rel="noopener",typeof r=="string"?(s.href=r,s.origin!==location.origin?Il(s.href)?As(r,t,n):co(s,s.target="_blank"):co(s)):(s.href=i.createObjectURL(r),setTimeout((function(){i.revokeObjectURL(s.href)}),4e4),setTimeout((function(){co(s)}),0))}:"msSaveOrOpenBlob"in navigator?function(r,t,n){if(t=t||r.name||"download",typeof r=="string")if(Il(r))As(r,t,n);else{var i=document.createElement("a");i.href=r,i.target="_blank",setTimeout((function(){co(i)}))}else navigator.msSaveOrOpenBlob((function(s,o){return o===void 0?o={autoBom:!1}:ge(o)!=="object"&&(be.warn("Deprecated: Expected third argument to be a object"),o={autoBom:!o}),o.autoBom&&/^\s*(?:text\/\S*|application\/xml|\S*\/\S*\+xml)\s*;.*charset\s*=\s*utf-8/i.test(s.type)?new Blob(["\uFEFF",s],{type:s.type}):s})(r,n),t)}:function(r,t,n,i){if((i=i||open("","_blank"))&&(i.document.title=i.document.body.innerText="downloading..."),typeof r=="string")return As(r,t,n);var s=r.type==="application/octet-stream",o=/constructor/i.test(Ht.HTMLElement)||Ht.safari,u=/CriOS\/[\d]+/.test(navigator.userAgent);if((u||s&&o)&&(typeof FileReader>"u"?"undefined":ge(FileReader))==="object"){var h=new FileReader;h.onloadend=function(){var v=h.result;v=u?v:v.replace(/^data:[^;]*;/,"data:attachment/file;"),i?i.location.href=v:location=v,i=null},h.readAsDataURL(r)}else{var f=Ht.URL||Ht.webkitURL,g=f.createObjectURL(r);i?i.location=g:location.href=g,i=null,setTimeout((function(){f.revokeObjectURL(g)}),4e4)}});function Jl(r){var t;r=r||"",this.ok=!1,r.charAt(0)=="#"&&(r=r.substr(1,6)),r={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",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"}[r=(r=r.replace(/ /g,"")).toLowerCase()]||r;for(var n=[{re:/^rgb\((\d{1,3}),\s*(\d{1,3}),\s*(\d{1,3})\)$/,example:["rgb(123, 234, 45)","rgb(255,234,245)"],process:function(h){return[parseInt(h[1]),parseInt(h[2]),parseInt(h[3])]}},{re:/^(\w{2})(\w{2})(\w{2})$/,example:["#00ff00","336699"],process:function(h){return[parseInt(h[1],16),parseInt(h[2],16),parseInt(h[3],16)]}},{re:/^(\w{1})(\w{1})(\w{1})$/,example:["#fb0","f0f"],process:function(h){return[parseInt(h[1]+h[1],16),parseInt(h[2]+h[2],16),parseInt(h[3]+h[3],16)]}}],i=0;i<n.length;i++){var s=n[i].re,o=n[i].process,u=s.exec(r);u&&(t=o(u),this.r=t[0],this.g=t[1],this.b=t[2],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.toRGB=function(){return"rgb("+this.r+", "+this.g+", "+this.b+")"},this.toHex=function(){var h=this.r.toString(16),f=this.g.toString(16),g=this.b.toString(16);return h.length==1&&(h="0"+h),f.length==1&&(f="0"+f),g.length==1&&(g="0"+g),"#"+h+f+g}}function Ls(r,t){var n=r[0],i=r[1],s=r[2],o=r[3];n=Ze(n,i,s,o,t[0],7,-680876936),o=Ze(o,n,i,s,t[1],12,-389564586),s=Ze(s,o,n,i,t[2],17,606105819),i=Ze(i,s,o,n,t[3],22,-1044525330),n=Ze(n,i,s,o,t[4],7,-176418897),o=Ze(o,n,i,s,t[5],12,1200080426),s=Ze(s,o,n,i,t[6],17,-1473231341),i=Ze(i,s,o,n,t[7],22,-45705983),n=Ze(n,i,s,o,t[8],7,1770035416),o=Ze(o,n,i,s,t[9],12,-1958414417),s=Ze(s,o,n,i,t[10],17,-42063),i=Ze(i,s,o,n,t[11],22,-1990404162),n=Ze(n,i,s,o,t[12],7,1804603682),o=Ze(o,n,i,s,t[13],12,-40341101),s=Ze(s,o,n,i,t[14],17,-1502002290),n=$e(n,i=Ze(i,s,o,n,t[15],22,1236535329),s,o,t[1],5,-165796510),o=$e(o,n,i,s,t[6],9,-1069501632),s=$e(s,o,n,i,t[11],14,643717713),i=$e(i,s,o,n,t[0],20,-373897302),n=$e(n,i,s,o,t[5],5,-701558691),o=$e(o,n,i,s,t[10],9,38016083),s=$e(s,o,n,i,t[15],14,-660478335),i=$e(i,s,o,n,t[4],20,-405537848),n=$e(n,i,s,o,t[9],5,568446438),o=$e(o,n,i,s,t[14],9,-1019803690),s=$e(s,o,n,i,t[3],14,-187363961),i=$e(i,s,o,n,t[8],20,1163531501),n=$e(n,i,s,o,t[13],5,-1444681467),o=$e(o,n,i,s,t[2],9,-51403784),s=$e(s,o,n,i,t[7],14,1735328473),n=Qe(n,i=$e(i,s,o,n,t[12],20,-1926607734),s,o,t[5],4,-378558),o=Qe(o,n,i,s,t[8],11,-2022574463),s=Qe(s,o,n,i,t[11],16,1839030562),i=Qe(i,s,o,n,t[14],23,-35309556),n=Qe(n,i,s,o,t[1],4,-1530992060),o=Qe(o,n,i,s,t[4],11,1272893353),s=Qe(s,o,n,i,t[7],16,-155497632),i=Qe(i,s,o,n,t[10],23,-1094730640),n=Qe(n,i,s,o,t[13],4,681279174),o=Qe(o,n,i,s,t[0],11,-358537222),s=Qe(s,o,n,i,t[3],16,-722521979),i=Qe(i,s,o,n,t[6],23,76029189),n=Qe(n,i,s,o,t[9],4,-640364487),o=Qe(o,n,i,s,t[12],11,-421815835),s=Qe(s,o,n,i,t[15],16,530742520),n=tn(n,i=Qe(i,s,o,n,t[2],23,-995338651),s,o,t[0],6,-198630844),o=tn(o,n,i,s,t[7],10,1126891415),s=tn(s,o,n,i,t[14],15,-1416354905),i=tn(i,s,o,n,t[5],21,-57434055),n=tn(n,i,s,o,t[12],6,1700485571),o=tn(o,n,i,s,t[3],10,-1894986606),s=tn(s,o,n,i,t[10],15,-1051523),i=tn(i,s,o,n,t[1],21,-2054922799),n=tn(n,i,s,o,t[8],6,1873313359),o=tn(o,n,i,s,t[15],10,-30611744),s=tn(s,o,n,i,t[6],15,-1560198380),i=tn(i,s,o,n,t[13],21,1309151649),n=tn(n,i,s,o,t[4],6,-145523070),o=tn(o,n,i,s,t[11],10,-1120210379),s=tn(s,o,n,i,t[2],15,718787259),i=tn(i,s,o,n,t[9],21,-343485551),r[0]=Or(n,r[0]),r[1]=Or(i,r[1]),r[2]=Or(s,r[2]),r[3]=Or(o,r[3])}function xo(r,t,n,i,s,o){return t=Or(Or(t,r),Or(i,o)),Or(t<<s|t>>>32-s,n)}function Ze(r,t,n,i,s,o,u){return xo(t&n|~t&i,r,t,s,o,u)}function $e(r,t,n,i,s,o,u){return xo(t&i|n&~i,r,t,s,o,u)}function Qe(r,t,n,i,s,o,u){return xo(t^n^i,r,t,s,o,u)}function tn(r,t,n,i,s,o,u){return xo(n^(t|~i),r,t,s,o,u)}function Yl(r){var t,n=r.length,i=[1732584193,-271733879,-1732584194,271733878];for(t=64;t<=r.length;t+=64)Ls(i,lc(r.substring(t-64,t)));r=r.substring(t-64);var s=[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0];for(t=0;t<r.length;t++)s[t>>2]|=r.charCodeAt(t)<<(t%4<<3);if(s[t>>2]|=128<<(t%4<<3),t>55)for(Ls(i,s),t=0;t<16;t++)s[t]=0;return s[14]=8*n,Ls(i,s),i}function lc(r){var t,n=[];for(t=0;t<64;t+=4)n[t>>2]=r.charCodeAt(t)+(r.charCodeAt(t+1)<<8)+(r.charCodeAt(t+2)<<16)+(r.charCodeAt(t+3)<<24);return n}ma=Ht.atob.bind(Ht),_s=Ht.btoa.bind(Ht);var Cl="0123456789abcdef".split("");function uc(r){for(var t="",n=0;n<4;n++)t+=Cl[r>>8*n+4&15]+Cl[r>>8*n&15];return t}function cc(r){return String.fromCharCode((255&r)>>0,(65280&r)>>8,(16711680&r)>>16,(4278190080&r)>>24)}function Fs(r){return Yl(r).map(cc).join("")}var hc=(function(r){for(var t=0;t<r.length;t++)r[t]=uc(r[t]);return r.join("")})(Yl("hello"))!="5d41402abc4b2a76b9719d911017c592";function Or(r,t){if(hc){var n=(65535&r)+(65535&t);return(r>>16)+(t>>16)+(n>>16)<<16|65535&n}return r+t&4294967295}function ks(r,t){var n,i,s,o;if(r!==n){for(var u=(s=r,o=1+(256/r.length>>0),new Array(o+1).join(s)),h=[],f=0;f<256;f++)h[f]=f;var g=0;for(f=0;f<256;f++){var v=h[f];g=(g+v+u.charCodeAt(f))%256,h[f]=h[g],h[g]=v}n=r,i=h}else h=i;var y=t.length,N=0,d=0,C="";for(f=0;f<y;f++)d=(d+(v=h[N=(N+1)%256]))%256,h[N]=h[d],h[d]=v,u=h[(h[N]+h[d])%256],C+=String.fromCharCode(t.charCodeAt(f)^u);return C}var Ol={print:4,modify:8,copy:16,"annot-forms":32};function Fi(r,t,n,i){this.v=1,this.r=2;var s=192;r.forEach((function(h){if(Ol.perm!==void 0)throw new Error("Invalid permission: "+h);s+=Ol[h]})),this.padding="(\xBFN^Nu\x8AAd\0NV\xFF\xFA\b..\0\xB6\xD0h>\x80/\f\xA9\xFEdSiz";var o=(t+this.padding).substr(0,32),u=(n+this.padding).substr(0,32);this.O=this.processOwnerPassword(o,u),this.P=-(1+(255^s)),this.encryptionKey=Fs(o+this.O+this.lsbFirstWord(this.P)+this.hexToBytes(i)).substr(0,5),this.U=ks(this.encryptionKey,this.padding)}function ki(r){if(/[^\u0000-\u00ff]/.test(r))throw new Error("Invalid PDF Name Object: "+r+", Only accept ASCII characters.");for(var t="",n=r.length,i=0;i<n;i++){var s=r.charCodeAt(i);s<33||s===35||s===37||s===40||s===41||s===47||s===60||s===62||s===91||s===93||s===123||s===125||s>126?t+="#"+("0"+s.toString(16)).slice(-2):t+=r[i]}return t}function jl(r){if(ge(r)!=="object")throw new Error("Invalid Context passed to initialize PubSub (jsPDF-module)");var t={};this.subscribe=function(n,i,s){if(s=s||!1,typeof n!="string"||typeof i!="function"||typeof s!="boolean")throw new Error("Invalid arguments passed to PubSub.subscribe (jsPDF-module)");t.hasOwnProperty(n)||(t[n]={});var o=Math.random().toString(35);return t[n][o]=[i,!!s],o},this.unsubscribe=function(n){for(var i in t)if(t[i][n])return delete t[i][n],Object.keys(t[i]).length===0&&delete t[i],!0;return!1},this.publish=function(n){if(t.hasOwnProperty(n)){var i=Array.prototype.slice.call(arguments,1),s=[];for(var o in t[n]){var u=t[n][o];try{u[0].apply(r,i)}catch(h){Ht.console&&be.error("jsPDF PubSub Error",h.message,h)}u[1]&&s.push(o)}s.length&&s.forEach(this.unsubscribe)}},this.getTopics=function(){return t}}function yo(r){if(!(this instanceof yo))return new yo(r);var t="opacity,stroke-opacity".split(",");for(var n in r)r.hasOwnProperty(n)&&t.indexOf(n)>=0&&(this[n]=r[n]);this.id="",this.objectNumber=-1}function Xl(r,t){this.gState=r,this.matrix=t,this.id="",this.objectNumber=-1}function Yr(r,t,n,i,s){if(!(this instanceof Yr))return new Yr(r,t,n,i,s);this.type=r==="axial"?2:3,this.coords=t,this.colors=n,Xl.call(this,i,s)}function Ii(r,t,n,i,s){if(!(this instanceof Ii))return new Ii(r,t,n,i,s);this.boundingBox=r,this.xStep=t,this.yStep=n,this.stream="",this.cloneIndex=0,Xl.call(this,i,s)}function Rt(r){var t,n=typeof arguments[0]=="string"?arguments[0]:"p",i=arguments[1],s=arguments[2],o=arguments[3],u=[],h=1,f=16,g="S",v=null;ge(r=r||{})==="object"&&(n=r.orientation,i=r.unit||i,s=r.format||s,o=r.compress||r.compressPdf||o,(v=r.encryption||null)!==null&&(v.userPassword=v.userPassword||"",v.ownerPassword=v.ownerPassword||"",v.userPermissions=v.userPermissions||[]),h=typeof r.userUnit=="number"?Math.abs(r.userUnit):1,r.precision!==void 0&&(t=r.precision),r.floatPrecision!==void 0&&(f=r.floatPrecision),g=r.defaultPathOperation||"S"),u=r.filters||(o===!0?["FlateEncode"]:u),i=i||"mm",n=(""+(n||"P")).toLowerCase();var y=r.putOnlyUsedFonts||!1,N={},d={internal:{},__private__:{}};d.__private__.PubSub=jl;var C="1.3",F=d.__private__.getPdfVersion=function(){return C};d.__private__.setPdfVersion=function(l){C=l};var D={a0:[2383.94,3370.39],a1:[1683.78,2383.94],a2:[1190.55,1683.78],a3:[841.89,1190.55],a4:[595.28,841.89],a5:[419.53,595.28],a6:[297.64,419.53],a7:[209.76,297.64],a8:[147.4,209.76],a9:[104.88,147.4],a10:[73.7,104.88],b0:[2834.65,4008.19],b1:[2004.09,2834.65],b2:[1417.32,2004.09],b3:[1000.63,1417.32],b4:[708.66,1000.63],b5:[498.9,708.66],b6:[354.33,498.9],b7:[249.45,354.33],b8:[175.75,249.45],b9:[124.72,175.75],b10:[87.87,124.72],c0:[2599.37,3676.54],c1:[1836.85,2599.37],c2:[1298.27,1836.85],c3:[918.43,1298.27],c4:[649.13,918.43],c5:[459.21,649.13],c6:[323.15,459.21],c7:[229.61,323.15],c8:[161.57,229.61],c9:[113.39,161.57],c10:[79.37,113.39],dl:[311.81,623.62],letter:[612,792],"government-letter":[576,756],legal:[612,1008],"junior-legal":[576,360],ledger:[1224,792],tabloid:[792,1224],"credit-card":[153,243]};d.__private__.getPageFormats=function(){return D};var P=d.__private__.getPageFormat=function(l){return D[l]};s=s||"a4";var M={COMPAT:"compat",ADVANCED:"advanced"},W=M.COMPAT;function tt(){this.saveGraphicsState(),T(new zt(Ct,0,0,-Ct,0,br()*Ct).toString()+" cm"),this.setFontSize(this.getFontSize()/Ct),g="n",W=M.ADVANCED}function ot(){this.restoreGraphicsState(),g="S",W=M.COMPAT}var yt=d.__private__.combineFontStyleAndFontWeight=function(l,b){if(l=="bold"&&b=="normal"||l=="bold"&&b==400||l=="normal"&&b=="italic"||l=="bold"&&b=="italic")throw new Error("Invalid Combination of fontweight and fontstyle");return b&&(l=b==400||b==="normal"?l==="italic"?"italic":"normal":b!=700&&b!=="bold"||l!=="normal"?(b==700?"bold":b)+""+l:"bold"),l};d.advancedAPI=function(l){var b=W===M.COMPAT;return b&&tt.call(this),typeof l!="function"||(l(this),b&&ot.call(this)),this},d.compatAPI=function(l){var b=W===M.ADVANCED;return b&&ot.call(this),typeof l!="function"||(l(this),b&&tt.call(this)),this},d.isAdvancedAPI=function(){return W===M.ADVANCED};var et,z=function(l){if(W!==M.ADVANCED)throw new Error(l+" is only available in 'advanced' API mode. You need to call advancedAPI() first.")},it=d.roundToPrecision=d.__private__.roundToPrecision=function(l,b){var j=t||b;if(isNaN(l)||isNaN(j))throw new Error("Invalid argument passed to jsPDF.roundToPrecision");return l.toFixed(j).replace(/0+$/,"")};et=d.hpf=d.__private__.hpf=typeof f=="number"?function(l){if(isNaN(l))throw new Error("Invalid argument passed to jsPDF.hpf");return it(l,f)}:f==="smart"?function(l){if(isNaN(l))throw new Error("Invalid argument passed to jsPDF.hpf");return it(l,l>-1&&l<1?16:5)}:function(l){if(isNaN(l))throw new Error("Invalid argument passed to jsPDF.hpf");return it(l,16)};var dt=d.f2=d.__private__.f2=function(l){if(isNaN(l))throw new Error("Invalid argument passed to jsPDF.f2");return it(l,2)},_=d.__private__.f3=function(l){if(isNaN(l))throw new Error("Invalid argument passed to jsPDF.f3");return it(l,3)},k=d.scale=d.__private__.scale=function(l){if(isNaN(l))throw new Error("Invalid argument passed to jsPDF.scale");return W===M.COMPAT?l*Ct:W===M.ADVANCED?l:void 0},G=function(l){return W===M.COMPAT?br()-l:W===M.ADVANCED?l:void 0},E=function(l){return k(G(l))};d.__private__.setPrecision=d.setPrecision=function(l){typeof parseInt(l,10)=="number"&&(t=parseInt(l,10))};var lt,at="00000000000000000000000000000000",ht=d.__private__.getFileId=function(){return at},$=d.__private__.setFileId=function(l){return at=l!==void 0&&/^[a-fA-F0-9]{32}$/.test(l)?l.toUpperCase():at.split("").map((function(){return"ABCDEF0123456789".charAt(Math.floor(16*Math.random()))})).join(""),v!==null&&(Ye=new Fi(v.userPermissions,v.userPassword,v.ownerPassword,at)),at};d.setFileId=function(l){return $(l),this},d.getFileId=function(){return ht()};var ct=d.__private__.convertDateToPDFDate=function(l){var b=l.getTimezoneOffset(),j=b<0?"+":"-",q=Math.floor(Math.abs(b/60)),X=Math.abs(b%60),ut=[j,B(q),"'",B(X),"'"].join("");return["D:",l.getFullYear(),B(l.getMonth()+1),B(l.getDate()),B(l.getHours()),B(l.getMinutes()),B(l.getSeconds()),ut].join("")},pt=d.__private__.convertPDFDateToDate=function(l){var b=parseInt(l.substr(2,4),10),j=parseInt(l.substr(6,2),10)-1,q=parseInt(l.substr(8,2),10),X=parseInt(l.substr(10,2),10),ut=parseInt(l.substr(12,2),10),wt=parseInt(l.substr(14,2),10);return new Date(b,j,q,X,ut,wt,0)},Ot=d.__private__.setCreationDate=function(l){var b;if(l===void 0&&(l=new Date),l instanceof Date)b=ct(l);else{if(!/^D:(20[0-2][0-9]|203[0-7]|19[7-9][0-9])(0[0-9]|1[0-2])([0-2][0-9]|3[0-1])(0[0-9]|1[0-9]|2[0-3])(0[0-9]|[1-5][0-9])(0[0-9]|[1-5][0-9])(\+0[0-9]|\+1[0-4]|-0[0-9]|-1[0-1])'(0[0-9]|[1-5][0-9])'?$/.test(l))throw new Error("Invalid argument passed to jsPDF.setCreationDate");b=l}return lt=b},A=d.__private__.getCreationDate=function(l){var b=lt;return l==="jsDate"&&(b=pt(lt)),b};d.setCreationDate=function(l){return Ot(l),this},d.getCreationDate=function(l){return A(l)};var O,B=d.__private__.padd2=function(l){return("0"+parseInt(l)).slice(-2)},R=d.__private__.padd2Hex=function(l){return("00"+(l=l.toString())).substr(l.length)},Y=0,Q=[],nt=[],rt=0,Lt=[],At=[],kt=!1,Pt=nt,Ut=function(){Y=0,rt=0,nt=[],Q=[],Lt=[],ir=Me(),In=Me()};d.__private__.setCustomOutputDestination=function(l){kt=!0,Pt=l};var ft=function(l){kt||(Pt=l)};d.__private__.resetCustomOutputDestination=function(){kt=!1,Pt=nt};var T=d.__private__.out=function(l){return l=l.toString(),rt+=l.length+1,Pt.push(l),Pt},Kt=d.__private__.write=function(l){return T(arguments.length===1?l.toString():Array.prototype.join.call(arguments," "))},Bt=d.__private__.getArrayBuffer=function(l){for(var b=l.length,j=new ArrayBuffer(b),q=new Uint8Array(j);b--;)q[b]=l.charCodeAt(b);return j},xt=[["Helvetica","helvetica","normal","WinAnsiEncoding"],["Helvetica-Bold","helvetica","bold","WinAnsiEncoding"],["Helvetica-Oblique","helvetica","italic","WinAnsiEncoding"],["Helvetica-BoldOblique","helvetica","bolditalic","WinAnsiEncoding"],["Courier","courier","normal","WinAnsiEncoding"],["Courier-Bold","courier","bold","WinAnsiEncoding"],["Courier-Oblique","courier","italic","WinAnsiEncoding"],["Courier-BoldOblique","courier","bolditalic","WinAnsiEncoding"],["Times-Roman","times","normal","WinAnsiEncoding"],["Times-Bold","times","bold","WinAnsiEncoding"],["Times-Italic","times","italic","WinAnsiEncoding"],["Times-BoldItalic","times","bolditalic","WinAnsiEncoding"],["ZapfDingbats","zapfdingbats","normal",null],["Symbol","symbol","normal",null]];d.__private__.getStandardFonts=function(){return xt};var Nt=r.fontSize||16;d.__private__.setFontSize=d.setFontSize=function(l){return Nt=W===M.ADVANCED?l/Ct:l,this};var It,Ft=d.__private__.getFontSize=d.getFontSize=function(){return W===M.COMPAT?Nt:Nt*Ct},Tt=r.R2L||!1;d.__private__.setR2L=d.setR2L=function(l){return Tt=l,this},d.__private__.getR2L=d.getR2L=function(){return Tt};var Vt,Qt=d.__private__.setZoomMode=function(l){var b=[void 0,null,"fullwidth","fullheight","fullpage","original"];if(/^(?:\d+\.\d*|\d*\.\d+|\d+)%$/.test(l))It=l;else if(isNaN(l)){if(b.indexOf(l)===-1)throw new Error('zoom must be Integer (e.g. 2), a percentage Value (e.g. 300%) or fullwidth, fullheight, fullpage, original. "'+l+'" is not recognized.');It=l}else It=parseInt(l,10)};d.__private__.getZoomMode=function(){return It};var te,ie=d.__private__.setPageMode=function(l){if([void 0,null,"UseNone","UseOutlines","UseThumbs","FullScreen"].indexOf(l)==-1)throw new Error('Page mode must be one of UseNone, UseOutlines, UseThumbs, or FullScreen. "'+l+'" is not recognized.');Vt=l};d.__private__.getPageMode=function(){return Vt};var pe=d.__private__.setLayoutMode=function(l){if([void 0,null,"continuous","single","twoleft","tworight","two"].indexOf(l)==-1)throw new Error('Layout mode must be one of continuous, single, twoleft, tworight. "'+l+'" is not recognized.');te=l};d.__private__.getLayoutMode=function(){return te},d.__private__.setDisplayMode=d.setDisplayMode=function(l,b,j){return Qt(l),pe(b),ie(j),this};var Wt={title:"",subject:"",author:"",keywords:"",creator:""};d.__private__.getDocumentProperty=function(l){if(Object.keys(Wt).indexOf(l)===-1)throw new Error("Invalid argument passed to jsPDF.getDocumentProperty");return Wt[l]},d.__private__.getDocumentProperties=function(){return Wt},d.__private__.setDocumentProperties=d.setProperties=d.setDocumentProperties=function(l){for(var b in Wt)Wt.hasOwnProperty(b)&&l[b]&&(Wt[b]=l[b]);return this},d.__private__.setDocumentProperty=function(l,b){if(Object.keys(Wt).indexOf(l)===-1)throw new Error("Invalid arguments passed to jsPDF.setDocumentProperty");return Wt[l]=b};var ee,Ct,Je,oe,_n,me={},xe={},Hn=[],ue={},Mr={},Le={},Fn={},rr=null,Ne=0,Jt=[],ce=new jl(d),Dr=r.hotfixes||[],We={},Wn={},Gn=[],zt=function l(b,j,q,X,ut,wt){if(!(this instanceof l))return new l(b,j,q,X,ut,wt);isNaN(b)&&(b=1),isNaN(j)&&(j=0),isNaN(q)&&(q=0),isNaN(X)&&(X=1),isNaN(ut)&&(ut=0),isNaN(wt)&&(wt=0),this._matrix=[b,j,q,X,ut,wt]};Object.defineProperty(zt.prototype,"sx",{get:function(){return this._matrix[0]},set:function(l){this._matrix[0]=l}}),Object.defineProperty(zt.prototype,"shy",{get:function(){return this._matrix[1]},set:function(l){this._matrix[1]=l}}),Object.defineProperty(zt.prototype,"shx",{get:function(){return this._matrix[2]},set:function(l){this._matrix[2]=l}}),Object.defineProperty(zt.prototype,"sy",{get:function(){return this._matrix[3]},set:function(l){this._matrix[3]=l}}),Object.defineProperty(zt.prototype,"tx",{get:function(){return this._matrix[4]},set:function(l){this._matrix[4]=l}}),Object.defineProperty(zt.prototype,"ty",{get:function(){return this._matrix[5]},set:function(l){this._matrix[5]=l}}),Object.defineProperty(zt.prototype,"a",{get:function(){return this._matrix[0]},set:function(l){this._matrix[0]=l}}),Object.defineProperty(zt.prototype,"b",{get:function(){return this._matrix[1]},set:function(l){this._matrix[1]=l}}),Object.defineProperty(zt.prototype,"c",{get:function(){return this._matrix[2]},set:function(l){this._matrix[2]=l}}),Object.defineProperty(zt.prototype,"d",{get:function(){return this._matrix[3]},set:function(l){this._matrix[3]=l}}),Object.defineProperty(zt.prototype,"e",{get:function(){return this._matrix[4]},set:function(l){this._matrix[4]=l}}),Object.defineProperty(zt.prototype,"f",{get:function(){return this._matrix[5]},set:function(l){this._matrix[5]=l}}),Object.defineProperty(zt.prototype,"rotation",{get:function(){return Math.atan2(this.shx,this.sx)}}),Object.defineProperty(zt.prototype,"scaleX",{get:function(){return this.decompose().scale.sx}}),Object.defineProperty(zt.prototype,"scaleY",{get:function(){return this.decompose().scale.sy}}),Object.defineProperty(zt.prototype,"isIdentity",{get:function(){return this.sx===1&&this.shy===0&&this.shx===0&&this.sy===1&&this.tx===0&&this.ty===0}}),zt.prototype.join=function(l){return[this.sx,this.shy,this.shx,this.sy,this.tx,this.ty].map(et).join(l)},zt.prototype.multiply=function(l){var b=l.sx*this.sx+l.shy*this.shx,j=l.sx*this.shy+l.shy*this.sy,q=l.shx*this.sx+l.sy*this.shx,X=l.shx*this.shy+l.sy*this.sy,ut=l.tx*this.sx+l.ty*this.shx+this.tx,wt=l.tx*this.shy+l.ty*this.sy+this.ty;return new zt(b,j,q,X,ut,wt)},zt.prototype.decompose=function(){var l=this.sx,b=this.shy,j=this.shx,q=this.sy,X=this.tx,ut=this.ty,wt=Math.sqrt(l*l+b*b),jt=(l/=wt)*j+(b/=wt)*q;j-=l*jt,q-=b*jt;var Et=Math.sqrt(j*j+q*q);return jt/=Et,l*(q/=Et)<b*(j/=Et)&&(l=-l,b=-b,jt=-jt,wt=-wt),{scale:new zt(wt,0,0,Et,0,0),translate:new zt(1,0,0,1,X,ut),rotate:new zt(l,b,-b,l,0,0),skew:new zt(1,0,jt,1,0,0)}},zt.prototype.toString=function(l){return this.join(" ")},zt.prototype.inversed=function(){var l=this.sx,b=this.shy,j=this.shx,q=this.sy,X=this.tx,ut=this.ty,wt=1/(l*q-b*j),jt=q*wt,Et=-b*wt,Zt=-j*wt,Yt=l*wt;return new zt(jt,Et,Zt,Yt,-jt*X-Zt*ut,-Et*X-Yt*ut)},zt.prototype.applyToPoint=function(l){var b=l.x*this.sx+l.y*this.shx+this.tx,j=l.x*this.shy+l.y*this.sy+this.ty;return new ci(b,j)},zt.prototype.applyToRectangle=function(l){var b=this.applyToPoint(l),j=this.applyToPoint(new ci(l.x+l.w,l.y+l.h));return new Vi(b.x,b.y,j.x-b.x,j.y-b.y)},zt.prototype.clone=function(){var l=this.sx,b=this.shy,j=this.shx,q=this.sy,X=this.tx,ut=this.ty;return new zt(l,b,j,q,X,ut)},d.Matrix=zt;var kn=d.matrixMult=function(l,b){return b.multiply(l)},Vn=new zt(1,0,0,1,0,0);d.unitMatrix=d.identityMatrix=Vn;var an=function(l,b){if(!Mr[l]){var j=(b instanceof Yr?"Sh":"P")+(Object.keys(ue).length+1).toString(10);b.id=j,Mr[l]=j,ue[j]=b,ce.publish("addPattern",b)}};d.ShadingPattern=Yr,d.TilingPattern=Ii,d.addShadingPattern=function(l,b){return z("addShadingPattern()"),an(l,b),this},d.beginTilingPattern=function(l){z("beginTilingPattern()"),Da(l.boundingBox[0],l.boundingBox[1],l.boundingBox[2]-l.boundingBox[0],l.boundingBox[3]-l.boundingBox[1],l.matrix)},d.endTilingPattern=function(l,b){z("endTilingPattern()"),b.stream=At[O].join(`
|
5
5
|
`),an(l,b),ce.publish("endTilingPattern",b),Gn.pop().restore()};var Ee=d.__private__.newObject=function(){var l=Me();return fn(l,!0),l},Me=d.__private__.newObjectDeferred=function(){return Y++,Q[Y]=function(){return rt},Y},fn=function(l,b){return b=typeof b=="boolean"&&b,Q[l]=rt,b&&T(l+" 0 obj"),l},Zr=d.__private__.newAdditionalObject=function(){var l={objId:Me(),content:""};return Lt.push(l),l},ir=Me(),In=Me(),Cn=d.__private__.decodeColorString=function(l){var b=l.split(" ");if(b.length!==2||b[1]!=="g"&&b[1]!=="G")b.length===5&&(b[4]==="k"||b[4]==="K")&&(b=[(1-b[0])*(1-b[3]),(1-b[1])*(1-b[3]),(1-b[2])*(1-b[3]),"r"]);else{var j=parseFloat(b[0]);b=[j,j,j,"r"]}for(var q="#",X=0;X<3;X++)q+=("0"+Math.floor(255*parseFloat(b[X])).toString(16)).slice(-2);return q},On=d.__private__.encodeColorString=function(l){var b;typeof l=="string"&&(l={ch1:l});var j=l.ch1,q=l.ch2,X=l.ch3,ut=l.ch4,wt=l.pdfColorType==="draw"?["G","RG","K"]:["g","rg","k"];if(typeof j=="string"&&j.charAt(0)!=="#"){var jt=new Jl(j);if(jt.ok)j=jt.toHex();else if(!/^\d*\.?\d*$/.test(j))throw new Error('Invalid color "'+j+'" passed to jsPDF.encodeColorString.')}if(typeof j=="string"&&/^#[0-9A-Fa-f]{3}$/.test(j)&&(j="#"+j[1]+j[1]+j[2]+j[2]+j[3]+j[3]),typeof j=="string"&&/^#[0-9A-Fa-f]{6}$/.test(j)){var Et=parseInt(j.substr(1),16);j=Et>>16&255,q=Et>>8&255,X=255&Et}if(q===void 0||ut===void 0&&j===q&&q===X)if(typeof j=="string")b=j+" "+wt[0];else switch(l.precision){case 2:b=dt(j/255)+" "+wt[0];break;case 3:default:b=_(j/255)+" "+wt[0]}else if(ut===void 0||ge(ut)==="object"){if(ut&&!isNaN(ut.a)&&ut.a===0)return b=["1.","1.","1.",wt[1]].join(" ");if(typeof j=="string")b=[j,q,X,wt[1]].join(" ");else switch(l.precision){case 2:b=[dt(j/255),dt(q/255),dt(X/255),wt[1]].join(" ");break;default:case 3:b=[_(j/255),_(q/255),_(X/255),wt[1]].join(" ")}}else if(typeof j=="string")b=[j,q,X,ut,wt[2]].join(" ");else switch(l.precision){case 2:b=[dt(j),dt(q),dt(X),dt(ut),wt[2]].join(" ");break;case 3:default:b=[_(j),_(q),_(X),_(ut),wt[2]].join(" ")}return b},Jn=d.__private__.getFilters=function(){return u},bn=d.__private__.putStream=function(l){var b=(l=l||{}).data||"",j=l.filters||Jn(),q=l.alreadyAppliedFilters||[],X=l.addLength1||!1,ut=b.length,wt=l.objectId,jt=function(Xe){return Xe};if(v!==null&&wt===void 0)throw new Error("ObjectId must be passed to putStream for file encryption");v!==null&&(jt=Ye.encryptor(wt,0));var Et={};j===!0&&(j=["FlateEncode"]);var Zt=l.additionalKeyValues||[],Yt=(Et=Rt.API.processDataByFilters!==void 0?Rt.API.processDataByFilters(b,j):{data:b,reverseChain:[]}).reverseChain+(Array.isArray(q)?q.join(" "):q.toString());if(Et.data.length!==0&&(Zt.push({key:"Length",value:Et.data.length}),X===!0&&Zt.push({key:"Length1",value:ut})),Yt.length!=0)if(Yt.split("/").length-1==1)Zt.push({key:"Filter",value:Yt});else{Zt.push({key:"Filter",value:"["+Yt+"]"});for(var re=0;re<Zt.length;re+=1)if(Zt[re].key==="DecodeParms"){for(var Ae=[],Se=0;Se<Et.reverseChain.split("/").length-1;Se+=1)Ae.push("null");Ae.push(Zt[re].value),Zt[re].value="["+Ae.join(" ")+"]"}}T("<<");for(var De=0;De<Zt.length;De++)T("/"+Zt[De].key+" "+Zt[De].value);T(">>"),Et.data.length!==0&&(T("stream"),T(jt(Et.data)),T("endstream"))},Yn=d.__private__.putPage=function(l){var b=l.number,j=l.data,q=l.objId,X=l.contentsObjId;fn(q,!0),T("<</Type /Page"),T("/Parent "+l.rootDictionaryObjId+" 0 R"),T("/Resources "+l.resourceDictionaryObjId+" 0 R"),T("/MediaBox ["+parseFloat(et(l.mediaBox.bottomLeftX))+" "+parseFloat(et(l.mediaBox.bottomLeftY))+" "+et(l.mediaBox.topRightX)+" "+et(l.mediaBox.topRightY)+"]"),l.cropBox!==null&&T("/CropBox ["+et(l.cropBox.bottomLeftX)+" "+et(l.cropBox.bottomLeftY)+" "+et(l.cropBox.topRightX)+" "+et(l.cropBox.topRightY)+"]"),l.bleedBox!==null&&T("/BleedBox ["+et(l.bleedBox.bottomLeftX)+" "+et(l.bleedBox.bottomLeftY)+" "+et(l.bleedBox.topRightX)+" "+et(l.bleedBox.topRightY)+"]"),l.trimBox!==null&&T("/TrimBox ["+et(l.trimBox.bottomLeftX)+" "+et(l.trimBox.bottomLeftY)+" "+et(l.trimBox.topRightX)+" "+et(l.trimBox.topRightY)+"]"),l.artBox!==null&&T("/ArtBox ["+et(l.artBox.bottomLeftX)+" "+et(l.artBox.bottomLeftY)+" "+et(l.artBox.topRightX)+" "+et(l.artBox.topRightY)+"]"),typeof l.userUnit=="number"&&l.userUnit!==1&&T("/UserUnit "+l.userUnit),ce.publish("putPage",{objId:q,pageContext:Jt[b],pageNumber:b,page:j}),T("/Contents "+X+" 0 R"),T(">>"),T("endobj");var ut=j.join(`
|
6
6
|
`);return W===M.ADVANCED&&(ut+=`
|
7
7
|
Q`),fn(X,!0),bn({data:ut,filters:Jn(),objectId:X}),T("endobj"),q},Br=d.__private__.putPages=function(){var l,b,j=[];for(l=1;l<=Ne;l++)Jt[l].objId=Me(),Jt[l].contentsObjId=Me();for(l=1;l<=Ne;l++)j.push(Yn({number:l,data:At[l],objId:Jt[l].objId,contentsObjId:Jt[l].contentsObjId,mediaBox:Jt[l].mediaBox,cropBox:Jt[l].cropBox,bleedBox:Jt[l].bleedBox,trimBox:Jt[l].trimBox,artBox:Jt[l].artBox,userUnit:Jt[l].userUnit,rootDictionaryObjId:ir,resourceDictionaryObjId:In}));fn(ir,!0),T("<</Type /Pages");var q="/Kids [";for(b=0;b<Ne;b++)q+=j[b]+" 0 R ";T(q+"]"),T("/Count "+Ne),T(">>"),T("endobj"),ce.publish("postPutPages")},$r=function(l){ce.publish("putFont",{font:l,out:T,newObject:Ee,putStream:bn}),l.isAlreadyPutted!==!0&&(l.objectNumber=Ee(),T("<<"),T("/Type /Font"),T("/BaseFont /"+ki(l.postScriptName)),T("/Subtype /Type1"),typeof l.encoding=="string"&&T("/Encoding /"+l.encoding),T("/FirstChar 32"),T("/LastChar 255"),T(">>"),T("endobj"))},Qr=function(){for(var l in me)me.hasOwnProperty(l)&&(y===!1||y===!0&&N.hasOwnProperty(l))&&$r(me[l])},ti=function(l){l.objectNumber=Ee();var b=[];b.push({key:"Type",value:"/XObject"}),b.push({key:"Subtype",value:"/Form"}),b.push({key:"BBox",value:"["+[et(l.x),et(l.y),et(l.x+l.width),et(l.y+l.height)].join(" ")+"]"}),b.push({key:"Matrix",value:"["+l.matrix.toString()+"]"});var j=l.pages[1].join(`
|
@@ -40,7 +40,7 @@ T* `):l.join(` Tj
|
|
40
40
|
`),t}},Cross:{createAppearanceStream:function(r){var t={D:{Off:Dt.RadioButton.Cross.OffPushDown},N:{}};return t.N[r]=Dt.RadioButton.Cross.YesNormal,t.D[r]=Dt.RadioButton.Cross.YesPushDown,t},getCA:function(){return"8"},YesNormal:function(r){var t=tr(r);t.scope=r.scope;var n=[],i=Dt.internal.calculateCross(r);return n.push("q"),n.push("1 1 "+Xt(Dt.internal.getWidth(r)-2)+" "+Xt(Dt.internal.getHeight(r)-2)+" re"),n.push("W"),n.push("n"),n.push(Xt(i.x1.x)+" "+Xt(i.x1.y)+" m"),n.push(Xt(i.x2.x)+" "+Xt(i.x2.y)+" l"),n.push(Xt(i.x4.x)+" "+Xt(i.x4.y)+" m"),n.push(Xt(i.x3.x)+" "+Xt(i.x3.y)+" l"),n.push("s"),n.push("Q"),t.stream=n.join(`
|
41
41
|
`),t},YesPushDown:function(r){var t=tr(r);t.scope=r.scope;var n=Dt.internal.calculateCross(r),i=[];return i.push("0.749023 g"),i.push("0 0 "+Xt(Dt.internal.getWidth(r))+" "+Xt(Dt.internal.getHeight(r))+" re"),i.push("f"),i.push("q"),i.push("1 1 "+Xt(Dt.internal.getWidth(r)-2)+" "+Xt(Dt.internal.getHeight(r)-2)+" re"),i.push("W"),i.push("n"),i.push(Xt(n.x1.x)+" "+Xt(n.x1.y)+" m"),i.push(Xt(n.x2.x)+" "+Xt(n.x2.y)+" l"),i.push(Xt(n.x4.x)+" "+Xt(n.x4.y)+" m"),i.push(Xt(n.x3.x)+" "+Xt(n.x3.y)+" l"),i.push("s"),i.push("Q"),t.stream=i.join(`
|
42
42
|
`),t},OffPushDown:function(r){var t=tr(r);t.scope=r.scope;var n=[];return n.push("0.749023 g"),n.push("0 0 "+Xt(Dt.internal.getWidth(r))+" "+Xt(Dt.internal.getHeight(r))+" re"),n.push("f"),t.stream=n.join(`
|
43
|
-
`),t}}},createDefaultAppearanceStream:function(r){var t=r.scope.internal.getFont(r.fontName,r.fontStyle).id,n=r.scope.__private__.encodeColorString(r.color);return"/"+t+" "+r.fontSize+" Tf "+n}};Dt.internal={Bezier_C:.551915024494,calculateCross:function(r){var t=Dt.internal.getWidth(r),n=Dt.internal.getHeight(r),i=Math.min(t,n);return{x1:{x:(t-i)/2,y:(n-i)/2+i},x2:{x:(t-i)/2+i,y:(n-i)/2},x3:{x:(t-i)/2,y:(n-i)/2},x4:{x:(t-i)/2+i,y:(n-i)/2+i}}}},Dt.internal.getWidth=function(r){var t=0;return ge(r)==="object"&&(t=Ml(r.Rect[2])),t},Dt.internal.getHeight=function(r){var t=0;return ge(r)==="object"&&(t=Ml(r.Rect[3])),t};var xc=_e.addField=function(r){if(wc(this,r),!(r instanceof zn))throw new Error("Invalid argument passed to jsPDF.addField.");var t;return(t=r).scope.internal.acroformPlugin.printedOut&&(t.scope.internal.acroformPlugin.printedOut=!1,t.scope.internal.acroformPlugin.acroFormDictionaryRoot=null),t.scope.internal.acroformPlugin.acroFormDictionaryRoot.Fields.push(t),r.page=r.scope.internal.getCurrentPageInfo().pageNumber,this};_e.AcroFormChoiceField=Ci,_e.AcroFormListBox=Oi,_e.AcroFormComboBox=ji,_e.AcroFormEditBox=go,_e.AcroFormButton=He,_e.AcroFormPushButton=mo,_e.AcroFormRadioButton=Mi,_e.AcroFormCheckBox=vo,_e.AcroFormTextField=Xr,_e.AcroFormPasswordField=bo,_e.AcroFormAppearance=Dt,_e.AcroForm={ChoiceField:Ci,ListBox:Oi,ComboBox:ji,EditBox:go,Button:He,PushButton:mo,RadioButton:Mi,CheckBox:vo,TextField:Xr,PasswordField:bo,Appearance:Dt},Rt.AcroForm={ChoiceField:Ci,ListBox:Oi,ComboBox:ji,EditBox:go,Button:He,PushButton:mo,RadioButton:Mi,CheckBox:vo,TextField:Xr,PasswordField:bo,Appearance:Dt};var ch=Rt.AcroForm;function Ql(r){return r.reduce((function(t,n,i){return t[n]=i,t}),{})}(function(r){r.__addimage__={};var t="UNKNOWN",n={PNG:[[137,80,78,71]],TIFF:[[77,77,0,42],[73,73,42,0]],JPEG:[[255,216,255,224,void 0,void 0,74,70,73,70,0],[255,216,255,225,void 0,void 0,69,120,105,102,0,0],[255,216,255,219],[255,216,255,238]],JPEG2000:[[0,0,0,12,106,80,32,32]],GIF87a:[[71,73,70,56,55,97]],GIF89a:[[71,73,70,56,57,97]],WEBP:[[82,73,70,70,void 0,void 0,void 0,void 0,87,69,66,80]],BMP:[[66,77],[66,65],[67,73],[67,80],[73,67],[80,84]]},i=r.__addimage__.getImageFileTypeByImageData=function(_,k){var G,E,lt,at,ht,$=t;if((k=k||t)==="RGBA"||_.data!==void 0&&_.data instanceof Uint8ClampedArray&&"height"in _&&"width"in _)return"RGBA";if(yt(_))for(ht in n)for(lt=n[ht],G=0;G<lt.length;G+=1){for(at=!0,E=0;E<lt[G].length;E+=1)if(lt[G][E]!==void 0&<[G][E]!==_[E]){at=!1;break}if(at===!0){$=ht;break}}else for(ht in n)for(lt=n[ht],G=0;G<lt.length;G+=1){for(at=!0,E=0;E<lt[G].length;E+=1)if(lt[G][E]!==void 0&<[G][E]!==_.charCodeAt(E)){at=!1;break}if(at===!0){$=ht;break}}return $===t&&k!==t&&($=k),$},s=function _(k){for(var G=this.internal.write,E=this.internal.putStream,lt=(0,this.internal.getFilters)();lt.indexOf("FlateEncode")!==-1;)lt.splice(lt.indexOf("FlateEncode"),1);k.objectId=this.internal.newObject();var at=[];if(at.push({key:"Type",value:"/XObject"}),at.push({key:"Subtype",value:"/Image"}),at.push({key:"Width",value:k.width}),at.push({key:"Height",value:k.height}),k.colorSpace===D.INDEXED?at.push({key:"ColorSpace",value:"[/Indexed /DeviceRGB "+(k.palette.length/3-1)+" "+("sMask"in k&&k.sMask!==void 0?k.objectId+2:k.objectId+1)+" 0 R]"}):(at.push({key:"ColorSpace",value:"/"+k.colorSpace}),k.colorSpace===D.DEVICE_CMYK&&at.push({key:"Decode",value:"[1 0 1 0 1 0 1 0]"})),at.push({key:"BitsPerComponent",value:k.bitsPerComponent}),"decodeParameters"in k&&k.decodeParameters!==void 0&&at.push({key:"DecodeParms",value:"<<"+k.decodeParameters+">>"}),"transparency"in k&&Array.isArray(k.transparency)){for(var ht="",$=0,ct=k.transparency.length;$<ct;$++)ht+=k.transparency[$]+" "+k.transparency[$]+" ";at.push({key:"Mask",value:"["+ht+"]"})}k.sMask!==void 0&&at.push({key:"SMask",value:k.objectId+1+" 0 R"});var pt=k.filter!==void 0?["/"+k.filter]:void 0;if(E({data:k.data,additionalKeyValues:at,alreadyAppliedFilters:pt,objectId:k.objectId}),G("endobj"),"sMask"in k&&k.sMask!==void 0){var Ot="/Predictor "+k.predictor+" /Colors 1 /BitsPerComponent "+k.bitsPerComponent+" /Columns "+k.width,A={width:k.width,height:k.height,colorSpace:"DeviceGray",bitsPerComponent:k.bitsPerComponent,decodeParameters:Ot,data:k.sMask};"filter"in k&&(A.filter=k.filter),_.call(this,A)}if(k.colorSpace===D.INDEXED){var O=this.internal.newObject();E({data:z(new Uint8Array(k.palette)),objectId:O}),G("endobj")}},o=function(){var _=this.internal.collections.addImage_images;for(var k in _)s.call(this,_[k])},u=function(){var _,k=this.internal.collections.addImage_images,G=this.internal.write;for(var E in k)G("/I"+(_=k[E]).index,_.objectId,"0","R")},h=function(){this.internal.collections.addImage_images||(this.internal.collections.addImage_images={},this.internal.events.subscribe("putResources",o),this.internal.events.subscribe("putXobjectDict",u))},f=function(){var _=this.internal.collections.addImage_images;return h.call(this),_},g=function(){return Object.keys(this.internal.collections.addImage_images).length},v=function(_){return typeof r["process"+_.toUpperCase()]=="function"},y=function(_){return ge(_)==="object"&&_.nodeType===1},N=function(_,k){if(_.nodeName==="IMG"&&_.hasAttribute("src")){var G=""+_.getAttribute("src");if(G.indexOf("data:image/")===0)return ma(unescape(G).split("base64,").pop());var E=r.loadFile(G,!0);if(E!==void 0)return E}if(_.nodeName==="CANVAS"){if(_.width===0||_.height===0)throw new Error("Given canvas must have data. Canvas width: "+_.width+", height: "+_.height);var lt;switch(k){case"PNG":lt="image/png";break;case"WEBP":lt="image/webp";break;case"JPEG":case"JPG":default:lt="image/jpeg"}return ma(_.toDataURL(lt,1).split("base64,").pop())}},d=function(_){var k=this.internal.collections.addImage_images;if(k){for(var G in k)if(_===k[G].alias)return k[G]}},C=function(_,k,G){return _||k||(_=-96,k=-96),_<0&&(_=-1*G.width*72/_/this.internal.scaleFactor),k<0&&(k=-1*G.height*72/k/this.internal.scaleFactor),_===0&&(_=k*G.width/G.height),k===0&&(k=_*G.height/G.width),[_,k]},F=function(_,k,G,E,lt,at){var ht=C.call(this,G,E,lt),$=this.internal.getCoordinateString,ct=this.internal.getVerticalCoordinateString,pt=f.call(this);if(G=ht[0],E=ht[1],pt[lt.index]=lt,at){at*=Math.PI/180;var Ot=Math.cos(at),A=Math.sin(at),O=function(R){return R.toFixed(4)},B=[O(Ot),O(A),O(-1*A),O(Ot),0,0,"cm"]}this.internal.write("q"),at?(this.internal.write([1,"0","0",1,$(_),ct(k+E),"cm"].join(" ")),this.internal.write(B.join(" ")),this.internal.write([$(G),"0","0",$(E),"0","0","cm"].join(" "))):this.internal.write([$(G),"0","0",$(E),$(_),ct(k+E),"cm"].join(" ")),this.isAdvancedAPI()&&this.internal.write([1,0,0,-1,0,0,"cm"].join(" ")),this.internal.write("/I"+lt.index+" Do"),this.internal.write("Q")},D=r.color_spaces={DEVICE_RGB:"DeviceRGB",DEVICE_GRAY:"DeviceGray",DEVICE_CMYK:"DeviceCMYK",CAL_GREY:"CalGray",CAL_RGB:"CalRGB",LAB:"Lab",ICC_BASED:"ICCBased",INDEXED:"Indexed",PATTERN:"Pattern",SEPARATION:"Separation",DEVICE_N:"DeviceN"};r.decode={DCT_DECODE:"DCTDecode",FLATE_DECODE:"FlateDecode",LZW_DECODE:"LZWDecode",JPX_DECODE:"JPXDecode",JBIG2_DECODE:"JBIG2Decode",ASCII85_DECODE:"ASCII85Decode",ASCII_HEX_DECODE:"ASCIIHexDecode",RUN_LENGTH_DECODE:"RunLengthDecode",CCITT_FAX_DECODE:"CCITTFaxDecode"};var P=r.image_compression={NONE:"NONE",FAST:"FAST",MEDIUM:"MEDIUM",SLOW:"SLOW"},M=r.__addimage__.sHashCode=function(_){var k,G,E=0;if(typeof _=="string")for(G=_.length,k=0;k<G;k++)E=(E<<5)-E+_.charCodeAt(k),E|=0;else if(yt(_))for(G=_.byteLength/2,k=0;k<G;k++)E=(E<<5)-E+_[k],E|=0;return E},W=r.__addimage__.validateStringAsBase64=function(_){(_=_||"").toString().trim();var k=!0;return _.length===0&&(k=!1),_.length%4!=0&&(k=!1),/^[A-Za-z0-9+/]+$/.test(_.substr(0,_.length-2))===!1&&(k=!1),/^[A-Za-z0-9/][A-Za-z0-9+/]|[A-Za-z0-9+/]=|==$/.test(_.substr(-2))===!1&&(k=!1),k},tt=r.__addimage__.extractImageFromDataUrl=function(_){if(_==null||!(_=_.trim()).startsWith("data:"))return null;var k=_.indexOf(",");return k<0?null:_.substring(0,k).trim().endsWith("base64")?_.substring(k+1):null},ot=r.__addimage__.supportsArrayBuffer=function(){return typeof ArrayBuffer<"u"&&typeof Uint8Array<"u"};r.__addimage__.isArrayBuffer=function(_){return ot()&&_ instanceof ArrayBuffer};var yt=r.__addimage__.isArrayBufferView=function(_){return ot()&&typeof Uint32Array<"u"&&(_ instanceof Int8Array||_ instanceof Uint8Array||typeof Uint8ClampedArray<"u"&&_ instanceof Uint8ClampedArray||_ instanceof Int16Array||_ instanceof Uint16Array||_ instanceof Int32Array||_ instanceof Uint32Array||_ instanceof Float32Array||_ instanceof Float64Array)},et=r.__addimage__.binaryStringToUint8Array=function(_){for(var k=_.length,G=new Uint8Array(k),E=0;E<k;E++)G[E]=_.charCodeAt(E);return G},z=r.__addimage__.arrayBufferToBinaryString=function(_){for(var k="",G=yt(_)?_:new Uint8Array(_),E=0;E<G.length;E+=8192)k+=String.fromCharCode.apply(null,G.subarray(E,E+8192));return k};r.addImage=function(){var _,k,G,E,lt,at,ht,$,ct;if(typeof arguments[1]=="number"?(k=t,G=arguments[1],E=arguments[2],lt=arguments[3],at=arguments[4],ht=arguments[5],$=arguments[6],ct=arguments[7]):(k=arguments[1],G=arguments[2],E=arguments[3],lt=arguments[4],at=arguments[5],ht=arguments[6],$=arguments[7],ct=arguments[8]),ge(_=arguments[0])==="object"&&!y(_)&&"imageData"in _){var pt=_;_=pt.imageData,k=pt.format||k||t,G=pt.x||G||0,E=pt.y||E||0,lt=pt.w||pt.width||lt,at=pt.h||pt.height||at,ht=pt.alias||ht,$=pt.compression||$,ct=pt.rotation||pt.angle||ct}var Ot=this.internal.getFilters();if($===void 0&&Ot.indexOf("FlateEncode")!==-1&&($="SLOW"),isNaN(G)||isNaN(E))throw new Error("Invalid coordinates passed to jsPDF.addImage");h.call(this);var A=it.call(this,_,k,ht,$);return F.call(this,G,E,lt,at,A,ct),this};var it=function(_,k,G,E){var lt,at,ht;if(typeof _=="string"&&i(_)===t){_=unescape(_);var $=dt(_,!1);($!==""||($=r.loadFile(_,!0))!==void 0)&&(_=$)}if(y(_)&&(_=N(_,k)),k=i(_,k),!v(k))throw new Error("addImage does not support files of type '"+k+"', please ensure that a plugin for '"+k+"' support is added.");if(((ht=G)==null||ht.length===0)&&(G=(function(ct){return typeof ct=="string"||yt(ct)?M(ct):yt(ct.data)?M(ct.data):null})(_)),(lt=d.call(this,G))||(ot()&&(_ instanceof Uint8Array||k==="RGBA"||(at=_,_=et(_))),lt=this["process"+k.toUpperCase()](_,g.call(this),G,(function(ct){return ct&&typeof ct=="string"&&(ct=ct.toUpperCase()),ct in r.image_compression?ct:P.NONE})(E),at)),!lt)throw new Error("An unknown error occurred whilst processing the image.");return lt},dt=r.__addimage__.convertBase64ToBinaryString=function(_,k){k=typeof k!="boolean"||k;var G,E="";if(typeof _=="string"){var lt;G=(lt=tt(_))!==null&<!==void 0?lt:_;try{E=ma(G)}catch(at){if(k)throw W(G)?new Error("atob-Error in jsPDF.convertBase64ToBinaryString "+at.message):new Error("Supplied Data is not a valid base64-String jsPDF.convertBase64ToBinaryString ")}}return E};r.getImageProperties=function(_){var k,G,E="";if(y(_)&&(_=N(_)),typeof _=="string"&&i(_)===t&&((E=dt(_,!1))===""&&(E=r.loadFile(_)||""),_=E),G=i(_),!v(G))throw new Error("addImage does not support files of type '"+G+"', please ensure that a plugin for '"+G+"' support is added.");if(!ot()||_ instanceof Uint8Array||(_=et(_)),!(k=this["process"+G.toUpperCase()](_)))throw new Error("An unknown error occurred whilst processing the image");return k.fileType=G,k}})(Rt.API),(function(r){var t=function(n){if(n!==void 0&&n!="")return!0};Rt.API.events.push(["addPage",function(n){this.internal.getPageInfo(n.pageNumber).pageContext.annotations=[]}]),r.events.push(["putPage",function(n){for(var i,s,o,u=this.internal.getCoordinateString,h=this.internal.getVerticalCoordinateString,f=this.internal.getPageInfoByObjId(n.objId),g=n.pageContext.annotations,v=!1,y=0;y<g.length&&!v;y++)switch((i=g[y]).type){case"link":(t(i.options.url)||t(i.options.pageNumber))&&(v=!0);break;case"reference":case"text":case"freetext":v=!0}if(v!=0){this.internal.write("/Annots [");for(var N=0;N<g.length;N++){i=g[N];var d=this.internal.pdfEscape,C=this.internal.getEncryptor(n.objId);switch(i.type){case"reference":this.internal.write(" "+i.object.objId+" 0 R ");break;case"text":var F=this.internal.newAdditionalObject(),D=this.internal.newAdditionalObject(),P=this.internal.getEncryptor(F.objId),M=i.title||"Note";o="<</Type /Annot /Subtype /Text "+(s="/Rect ["+u(i.bounds.x)+" "+h(i.bounds.y+i.bounds.h)+" "+u(i.bounds.x+i.bounds.w)+" "+h(i.bounds.y)+"] ")+"/Contents ("+d(P(i.contents))+")",o+=" /Popup "+D.objId+" 0 R",o+=" /P "+f.objId+" 0 R",o+=" /T ("+d(P(M))+") >>",F.content=o;var W=F.objId+" 0 R";o="<</Type /Annot /Subtype /Popup "+(s="/Rect ["+u(i.bounds.x+30)+" "+h(i.bounds.y+i.bounds.h)+" "+u(i.bounds.x+i.bounds.w+30)+" "+h(i.bounds.y)+"] ")+" /Parent "+W,i.open&&(o+=" /Open true"),o+=" >>",D.content=o,this.internal.write(F.objId,"0 R",D.objId,"0 R");break;case"freetext":s="/Rect ["+u(i.bounds.x)+" "+h(i.bounds.y)+" "+u(i.bounds.x+i.bounds.w)+" "+h(i.bounds.y+i.bounds.h)+"] ";var tt=i.color||"#000000";o="<</Type /Annot /Subtype /FreeText "+s+"/Contents ("+d(C(i.contents))+")",o+=" /DS(font: Helvetica,sans-serif 12.0pt; text-align:left; color:#"+tt+")",o+=" /Border [0 0 0]",o+=" >>",this.internal.write(o);break;case"link":if(i.options.name){var ot=this.annotations._nameMap[i.options.name];i.options.pageNumber=ot.page,i.options.top=ot.y}else i.options.top||(i.options.top=0);if(s="/Rect ["+i.finalBounds.x+" "+i.finalBounds.y+" "+i.finalBounds.w+" "+i.finalBounds.h+"] ",o="",i.options.url)o="<</Type /Annot /Subtype /Link "+s+"/Border [0 0 0] /A <</S /URI /URI ("+d(C(i.options.url))+") >>";else if(i.options.pageNumber)switch(o="<</Type /Annot /Subtype /Link "+s+"/Border [0 0 0] /Dest ["+this.internal.getPageInfo(i.options.pageNumber).objId+" 0 R",i.options.magFactor=i.options.magFactor||"XYZ",i.options.magFactor){case"Fit":o+=" /Fit]";break;case"FitH":o+=" /FitH "+i.options.top+"]";break;case"FitV":i.options.left=i.options.left||0,o+=" /FitV "+i.options.left+"]";break;case"XYZ":default:var yt=h(i.options.top);i.options.left=i.options.left||0,i.options.zoom===void 0&&(i.options.zoom=0),o+=" /XYZ "+i.options.left+" "+yt+" "+i.options.zoom+"]"}o!=""&&(o+=" >>",this.internal.write(o))}}this.internal.write("]")}}]),r.createAnnotation=function(n){var i=this.internal.getCurrentPageInfo();switch(n.type){case"link":this.link(n.bounds.x,n.bounds.y,n.bounds.w,n.bounds.h,n);break;case"text":case"freetext":i.pageContext.annotations.push(n)}},r.link=function(n,i,s,o,u){var h=this.internal.getCurrentPageInfo(),f=this.internal.getCoordinateString,g=this.internal.getVerticalCoordinateString;h.pageContext.annotations.push({finalBounds:{x:f(n),y:g(i),w:f(n+s),h:g(i+o)},options:u,type:"link"})},r.textWithLink=function(n,i,s,o){var u,h,f=this.getTextWidth(n),g=this.internal.getLineHeight()/this.internal.scaleFactor;if(o.maxWidth!==void 0){h=o.maxWidth;var v=this.splitTextToSize(n,h).length;u=Math.ceil(g*v)}else h=f,u=g;return this.text(n,i,s,o),s+=.2*g,o.align==="center"&&(i-=f/2),o.align==="right"&&(i-=f),this.link(i,s-g,h,u,o),f},r.getTextWidth=function(n){var i=this.internal.getFontSize();return this.getStringUnitWidth(n)*i/this.internal.scaleFactor}})(Rt.API),(function(r){var t={1569:[65152],1570:[65153,65154],1571:[65155,65156],1572:[65157,65158],1573:[65159,65160],1574:[65161,65162,65163,65164],1575:[65165,65166],1576:[65167,65168,65169,65170],1577:[65171,65172],1578:[65173,65174,65175,65176],1579:[65177,65178,65179,65180],1580:[65181,65182,65183,65184],1581:[65185,65186,65187,65188],1582:[65189,65190,65191,65192],1583:[65193,65194],1584:[65195,65196],1585:[65197,65198],1586:[65199,65200],1587:[65201,65202,65203,65204],1588:[65205,65206,65207,65208],1589:[65209,65210,65211,65212],1590:[65213,65214,65215,65216],1591:[65217,65218,65219,65220],1592:[65221,65222,65223,65224],1593:[65225,65226,65227,65228],1594:[65229,65230,65231,65232],1601:[65233,65234,65235,65236],1602:[65237,65238,65239,65240],1603:[65241,65242,65243,65244],1604:[65245,65246,65247,65248],1605:[65249,65250,65251,65252],1606:[65253,65254,65255,65256],1607:[65257,65258,65259,65260],1608:[65261,65262],1609:[65263,65264,64488,64489],1610:[65265,65266,65267,65268],1649:[64336,64337],1655:[64477],1657:[64358,64359,64360,64361],1658:[64350,64351,64352,64353],1659:[64338,64339,64340,64341],1662:[64342,64343,64344,64345],1663:[64354,64355,64356,64357],1664:[64346,64347,64348,64349],1667:[64374,64375,64376,64377],1668:[64370,64371,64372,64373],1670:[64378,64379,64380,64381],1671:[64382,64383,64384,64385],1672:[64392,64393],1676:[64388,64389],1677:[64386,64387],1678:[64390,64391],1681:[64396,64397],1688:[64394,64395],1700:[64362,64363,64364,64365],1702:[64366,64367,64368,64369],1705:[64398,64399,64400,64401],1709:[64467,64468,64469,64470],1711:[64402,64403,64404,64405],1713:[64410,64411,64412,64413],1715:[64406,64407,64408,64409],1722:[64414,64415],1723:[64416,64417,64418,64419],1726:[64426,64427,64428,64429],1728:[64420,64421],1729:[64422,64423,64424,64425],1733:[64480,64481],1734:[64473,64474],1735:[64471,64472],1736:[64475,64476],1737:[64482,64483],1739:[64478,64479],1740:[64508,64509,64510,64511],1744:[64484,64485,64486,64487],1746:[64430,64431],1747:[64432,64433]},n={65247:{65154:65269,65156:65271,65160:65273,65166:65275},65248:{65154:65270,65156:65272,65160:65274,65166:65276},65165:{65247:{65248:{65258:65010}}},1617:{1612:64606,1613:64607,1614:64608,1615:64609,1616:64610}},i={1612:64606,1613:64607,1614:64608,1615:64609,1616:64610},s=[1570,1571,1573,1575];r.__arabicParser__={};var o=r.__arabicParser__.isInArabicSubstitutionA=function(F){return t[F.charCodeAt(0)]!==void 0},u=r.__arabicParser__.isArabicLetter=function(F){return typeof F=="string"&&/^[\u0600-\u06FF\u0750-\u077F\u08A0-\u08FF\uFB50-\uFDFF\uFE70-\uFEFF]+$/.test(F)},h=r.__arabicParser__.isArabicEndLetter=function(F){return u(F)&&o(F)&&t[F.charCodeAt(0)].length<=2},f=r.__arabicParser__.isArabicAlfLetter=function(F){return u(F)&&s.indexOf(F.charCodeAt(0))>=0};r.__arabicParser__.arabicLetterHasIsolatedForm=function(F){return u(F)&&o(F)&&t[F.charCodeAt(0)].length>=1};var g=r.__arabicParser__.arabicLetterHasFinalForm=function(F){return u(F)&&o(F)&&t[F.charCodeAt(0)].length>=2};r.__arabicParser__.arabicLetterHasInitialForm=function(F){return u(F)&&o(F)&&t[F.charCodeAt(0)].length>=3};var v=r.__arabicParser__.arabicLetterHasMedialForm=function(F){return u(F)&&o(F)&&t[F.charCodeAt(0)].length==4},y=r.__arabicParser__.resolveLigatures=function(F){var D=0,P=n,M="",W=0;for(D=0;D<F.length;D+=1)P[F.charCodeAt(D)]!==void 0?(W++,typeof(P=P[F.charCodeAt(D)])=="number"&&(M+=String.fromCharCode(P),P=n,W=0),D===F.length-1&&(P=n,M+=F.charAt(D-(W-1)),D-=W-1,W=0)):(P=n,M+=F.charAt(D-W),D-=W,W=0);return M};r.__arabicParser__.isArabicDiacritic=function(F){return F!==void 0&&i[F.charCodeAt(0)]!==void 0};var N=r.__arabicParser__.getCorrectForm=function(F,D,P){return u(F)?o(F)===!1?-1:!g(F)||!u(D)&&!u(P)||!u(P)&&h(D)||h(F)&&!u(D)||h(F)&&f(D)||h(F)&&h(D)?0:v(F)&&u(D)&&!h(D)&&u(P)&&g(P)?3:h(F)||!u(P)?1:2:-1},d=function(F){var D=0,P=0,M=0,W="",tt="",ot="",yt=(F=F||"").split("\\s+"),et=[];for(D=0;D<yt.length;D+=1){for(et.push(""),P=0;P<yt[D].length;P+=1)W=yt[D][P],tt=yt[D][P-1],ot=yt[D][P+1],u(W)?(M=N(W,tt,ot),et[D]+=M!==-1?String.fromCharCode(t[W.charCodeAt(0)][M]):W):et[D]+=W;et[D]=y(et[D])}return et.join(" ")},C=r.__arabicParser__.processArabic=r.processArabic=function(){var F,D=typeof arguments[0]=="string"?arguments[0]:arguments[0].text,P=[];if(Array.isArray(D)){var M=0;for(P=[],M=0;M<D.length;M+=1)Array.isArray(D[M])?P.push([d(D[M][0]),D[M][1],D[M][2]]):P.push([d(D[M])]);F=P}else F=d(D);return typeof arguments[0]=="string"?F:(arguments[0].text=F,arguments[0])};r.events.push(["preProcessText",C])})(Rt.API),Rt.API.autoPrint=function(r){var t;switch((r=r||{}).variant=r.variant||"non-conform",r.variant){case"javascript":this.addJS("print({});");break;case"non-conform":default:this.internal.events.subscribe("postPutResources",(function(){t=this.internal.newObject(),this.internal.out("<<"),this.internal.out("/S /Named"),this.internal.out("/Type /Action"),this.internal.out("/N /Print"),this.internal.out(">>"),this.internal.out("endobj")})),this.internal.events.subscribe("putCatalog",(function(){this.internal.out("/OpenAction "+t+" 0 R")}))}return this},(function(r){var t=function(){var n=void 0;Object.defineProperty(this,"pdf",{get:function(){return n},set:function(h){n=h}});var i=150;Object.defineProperty(this,"width",{get:function(){return i},set:function(h){i=isNaN(h)||Number.isInteger(h)===!1||h<0?150:h,this.getContext("2d").pageWrapXEnabled&&(this.getContext("2d").pageWrapX=i+1)}});var s=300;Object.defineProperty(this,"height",{get:function(){return s},set:function(h){s=isNaN(h)||Number.isInteger(h)===!1||h<0?300:h,this.getContext("2d").pageWrapYEnabled&&(this.getContext("2d").pageWrapY=s+1)}});var o=[];Object.defineProperty(this,"childNodes",{get:function(){return o},set:function(h){o=h}});var u={};Object.defineProperty(this,"style",{get:function(){return u},set:function(h){u=h}}),Object.defineProperty(this,"parentNode",{})};t.prototype.getContext=function(n,i){var s;if((n=n||"2d")!=="2d")return null;for(s in i)this.pdf.context2d.hasOwnProperty(s)&&(this.pdf.context2d[s]=i[s]);return this.pdf.context2d._canvas=this,this.pdf.context2d},t.prototype.toDataURL=function(){throw new Error("toDataURL is not implemented.")},r.events.push(["initialized",function(){this.canvas=new t,this.canvas.pdf=this}])})(Rt.API),(function(r){var t={left:0,top:0,bottom:0,right:0},n=!1,i=function(){this.internal.__cell__===void 0&&(this.internal.__cell__={},this.internal.__cell__.padding=3,this.internal.__cell__.headerFunction=void 0,this.internal.__cell__.margins=Object.assign({},t),this.internal.__cell__.margins.width=this.getPageWidth(),s.call(this))},s=function(){this.internal.__cell__.lastCell=new o,this.internal.__cell__.pages=1},o=function(){var f=arguments[0];Object.defineProperty(this,"x",{enumerable:!0,get:function(){return f},set:function(F){f=F}});var g=arguments[1];Object.defineProperty(this,"y",{enumerable:!0,get:function(){return g},set:function(F){g=F}});var v=arguments[2];Object.defineProperty(this,"width",{enumerable:!0,get:function(){return v},set:function(F){v=F}});var y=arguments[3];Object.defineProperty(this,"height",{enumerable:!0,get:function(){return y},set:function(F){y=F}});var N=arguments[4];Object.defineProperty(this,"text",{enumerable:!0,get:function(){return N},set:function(F){N=F}});var d=arguments[5];Object.defineProperty(this,"lineNumber",{enumerable:!0,get:function(){return d},set:function(F){d=F}});var C=arguments[6];return Object.defineProperty(this,"align",{enumerable:!0,get:function(){return C},set:function(F){C=F}}),this};o.prototype.clone=function(){return new o(this.x,this.y,this.width,this.height,this.text,this.lineNumber,this.align)},o.prototype.toArray=function(){return[this.x,this.y,this.width,this.height,this.text,this.lineNumber,this.align]},r.setHeaderFunction=function(f){return i.call(this),this.internal.__cell__.headerFunction=typeof f=="function"?f:void 0,this},r.getTextDimensions=function(f,g){i.call(this);var v=(g=g||{}).fontSize||this.getFontSize(),y=g.font||this.getFont(),N=g.scaleFactor||this.internal.scaleFactor,d=0,C=0,F=0,D=this;if(!Array.isArray(f)&&typeof f!="string"){if(typeof f!="number")throw new Error("getTextDimensions expects text-parameter to be of type String or type Number or an Array of Strings.");f=String(f)}var P=g.maxWidth;P>0?typeof f=="string"?f=this.splitTextToSize(f,P):Object.prototype.toString.call(f)==="[object Array]"&&(f=f.reduce((function(W,tt){return W.concat(D.splitTextToSize(tt,P))}),[])):f=Array.isArray(f)?f:[f];for(var M=0;M<f.length;M++)d<(F=this.getStringUnitWidth(f[M],{font:y})*v)&&(d=F);return d!==0&&(C=f.length),{w:d/=N,h:Math.max((C*v*this.getLineHeightFactor()-v*(this.getLineHeightFactor()-1))/N,0)}},r.cellAddPage=function(){i.call(this),this.addPage();var f=this.internal.__cell__.margins||t;return this.internal.__cell__.lastCell=new o(f.left,f.top,void 0,void 0),this.internal.__cell__.pages+=1,this};var u=r.cell=function(){var f;f=arguments[0]instanceof o?arguments[0]:new o(arguments[0],arguments[1],arguments[2],arguments[3],arguments[4],arguments[5]),i.call(this);var g=this.internal.__cell__.lastCell,v=this.internal.__cell__.padding,y=this.internal.__cell__.margins||t,N=this.internal.__cell__.tableHeaderRow,d=this.internal.__cell__.printHeaders;return g.lineNumber!==void 0&&(g.lineNumber===f.lineNumber?(f.x=(g.x||0)+(g.width||0),f.y=g.y||0):g.y+g.height+f.height+y.bottom>this.getPageHeight()?(this.cellAddPage(),f.y=y.top,d&&N&&(this.printHeaderRow(f.lineNumber,!0),f.y+=N[0].height)):f.y=g.y+g.height||f.y),f.text[0]!==void 0&&(this.rect(f.x,f.y,f.width,f.height,n===!0?"FD":void 0),f.align==="right"?this.text(f.text,f.x+f.width-v,f.y+v,{align:"right",baseline:"top"}):f.align==="center"?this.text(f.text,f.x+f.width/2,f.y+v,{align:"center",baseline:"top",maxWidth:f.width-v-v}):this.text(f.text,f.x+v,f.y+v,{align:"left",baseline:"top",maxWidth:f.width-v-v})),this.internal.__cell__.lastCell=f,this};r.table=function(f,g,v,y,N){if(i.call(this),!v)throw new Error("No data for PDF table.");var d,C,F,D,P=[],M=[],W=[],tt={},ot={},yt=[],et=[],z=(N=N||{}).autoSize||!1,it=N.printHeaders!==!1,dt=N.css&&N.css["font-size"]!==void 0?16*N.css["font-size"]:N.fontSize||12,_=N.margins||Object.assign({width:this.getPageWidth()},t),k=typeof N.padding=="number"?N.padding:3,G=N.headerBackgroundColor||"#c8c8c8",E=N.headerTextColor||"#000";if(s.call(this),this.internal.__cell__.printHeaders=it,this.internal.__cell__.margins=_,this.internal.__cell__.table_font_size=dt,this.internal.__cell__.padding=k,this.internal.__cell__.headerBackgroundColor=G,this.internal.__cell__.headerTextColor=E,this.setFontSize(dt),y==null)M=P=Object.keys(v[0]),W=P.map((function(){return"left"}));else if(Array.isArray(y)&&ge(y[0])==="object")for(P=y.map((function(pt){return pt.name})),M=y.map((function(pt){return pt.prompt||pt.name||""})),W=y.map((function(pt){return pt.align||"left"})),d=0;d<y.length;d+=1)ot[y[d].name]=y[d].width*(19.049976/25.4);else Array.isArray(y)&&typeof y[0]=="string"&&(M=P=y,W=P.map((function(){return"left"})));if(z||Array.isArray(y)&&typeof y[0]=="string")for(d=0;d<P.length;d+=1){for(tt[D=P[d]]=v.map((function(pt){return pt[D]})),this.setFont(void 0,"bold"),yt.push(this.getTextDimensions(M[d],{fontSize:this.internal.__cell__.table_font_size,scaleFactor:this.internal.scaleFactor}).w),C=tt[D],this.setFont(void 0,"normal"),F=0;F<C.length;F+=1)yt.push(this.getTextDimensions(C[F],{fontSize:this.internal.__cell__.table_font_size,scaleFactor:this.internal.scaleFactor}).w);ot[D]=Math.max.apply(null,yt)+k+k,yt=[]}if(it){var lt={};for(d=0;d<P.length;d+=1)lt[P[d]]={},lt[P[d]].text=M[d],lt[P[d]].align=W[d];var at=h.call(this,lt,ot);et=P.map((function(pt){return new o(f,g,ot[pt],at,lt[pt].text,void 0,lt[pt].align)})),this.setTableHeaderRow(et),this.printHeaderRow(1,!1)}var ht=y.reduce((function(pt,Ot){return pt[Ot.name]=Ot.align,pt}),{});for(d=0;d<v.length;d+=1){"rowStart"in N&&N.rowStart instanceof Function&&N.rowStart({row:d,data:v[d]},this);var $=h.call(this,v[d],ot);for(F=0;F<P.length;F+=1){var ct=v[d][P[F]];"cellStart"in N&&N.cellStart instanceof Function&&N.cellStart({row:d,col:F,data:ct},this),u.call(this,new o(f,g,ot[P[F]],$,ct,d+2,ht[P[F]]))}}return this.internal.__cell__.table_x=f,this.internal.__cell__.table_y=g,this};var h=function(f,g){var v=this.internal.__cell__.padding,y=this.internal.__cell__.table_font_size,N=this.internal.scaleFactor;return Object.keys(f).map((function(d){var C=f[d];return this.splitTextToSize(C.hasOwnProperty("text")?C.text:C,g[d]-v-v)}),this).map((function(d){return this.getLineHeightFactor()*d.length*y/N+v+v}),this).reduce((function(d,C){return Math.max(d,C)}),0)};r.setTableHeaderRow=function(f){i.call(this),this.internal.__cell__.tableHeaderRow=f},r.printHeaderRow=function(f,g){if(i.call(this),!this.internal.__cell__.tableHeaderRow)throw new Error("Property tableHeaderRow does not exist.");var v;if(n=!0,typeof this.internal.__cell__.headerFunction=="function"){var y=this.internal.__cell__.headerFunction(this,this.internal.__cell__.pages);this.internal.__cell__.lastCell=new o(y[0],y[1],y[2],y[3],void 0,-1)}this.setFont(void 0,"bold");for(var N=[],d=0;d<this.internal.__cell__.tableHeaderRow.length;d+=1){v=this.internal.__cell__.tableHeaderRow[d].clone(),g&&(v.y=this.internal.__cell__.margins.top||0,N.push(v)),v.lineNumber=f;var C=this.getTextColor();this.setTextColor(this.internal.__cell__.headerTextColor),this.setFillColor(this.internal.__cell__.headerBackgroundColor),u.call(this,v),this.setTextColor(C)}N.length>0&&this.setTableHeaderRow(N),this.setFont(void 0,"normal"),n=!1}})(Rt.API);var tu={italic:["italic","oblique","normal"],oblique:["oblique","italic","normal"],normal:["normal","oblique","italic"]},eu=["ultra-condensed","extra-condensed","condensed","semi-condensed","normal","semi-expanded","expanded","extra-expanded","ultra-expanded"],Cs=Ql(eu),nu=[100,200,300,400,500,600,700,800,900],Ac=Ql(nu);function Os(r){var t=r.family.replace(/"|'/g,"").toLowerCase(),n=(function(o){return tu[o=o||"normal"]?o:"normal"})(r.style),i=(function(o){if(!o)return 400;if(typeof o=="number")return o>=100&&o<=900&&o%100==0?o:400;if(/^\d00$/.test(o))return parseInt(o);switch(o){case"bold":return 700;case"normal":default:return 400}})(r.weight),s=(function(o){return typeof Cs[o=o||"normal"]=="number"?o:"normal"})(r.stretch);return{family:t,style:n,weight:i,stretch:s,src:r.src||[],ref:r.ref||{name:t,style:[s,n,i].join(" ")}}}function Dl(r,t,n,i){var s;for(s=n;s>=0&&s<t.length;s+=i)if(r[t[s]])return r[t[s]];for(s=n;s>=0&&s<t.length;s-=i)if(r[t[s]])return r[t[s]]}var Lc={"sans-serif":"helvetica",fixed:"courier",monospace:"courier",terminal:"courier",cursive:"times",fantasy:"times",serif:"times"},Bl={caption:"times",icon:"times",menu:"times","message-box":"times","small-caption":"times","status-bar":"times"};function Tl(r){return[r.stretch,r.style,r.weight,r.family].join(" ")}function Nc(r,t,n){for(var i=(n=n||{}).defaultFontFamily||"times",s=Object.assign({},Lc,n.genericFontFamilies||{}),o=null,u=null,h=0;h<t.length;++h)if(s[(o=Os(t[h])).family]&&(o.family=s[o.family]),r.hasOwnProperty(o.family)){u=r[o.family];break}if(!(u=u||r[i]))throw new Error("Could not find a font-family for the rule '"+Tl(o)+"' and default family '"+i+"'.");if(u=(function(f,g){if(g[f])return g[f];var v=Cs[f],y=v<=Cs.normal?-1:1,N=Dl(g,eu,v,y);if(!N)throw new Error("Could not find a matching font-stretch value for "+f);return N})(o.stretch,u),u=(function(f,g){if(g[f])return g[f];for(var v=tu[f],y=0;y<v.length;++y)if(g[v[y]])return g[v[y]];throw new Error("Could not find a matching font-style for "+f)})(o.style,u),!(u=(function(f,g){if(g[f])return g[f];if(f===400&&g[500])return g[500];if(f===500&&g[400])return g[400];var v=Ac[f],y=Dl(g,nu,v,f<400?-1:1);if(!y)throw new Error("Could not find a matching font-weight for value "+f);return y})(o.weight,u)))throw new Error("Failed to resolve a font for the rule '"+Tl(o)+"'.");return u}function El(r){return r.trimLeft()}function Sc(r,t){for(var n=0;n<r.length;){if(r.charAt(n)===t)return[r.substring(0,n),r.substring(n+1)];n+=1}return null}function Pc(r){var t=r.match(/^(-[a-z_]|[a-z_])[a-z0-9_-]*/i);return t===null?null:[t[0],r.substring(t[0].length)]}var fo,ql,Rl,Ss=["times"];(function(r){var t,n,i,s,o,u,h,f,g,v=function(A){return A=A||{},this.isStrokeTransparent=A.isStrokeTransparent||!1,this.strokeOpacity=A.strokeOpacity||1,this.strokeStyle=A.strokeStyle||"#000000",this.fillStyle=A.fillStyle||"#000000",this.isFillTransparent=A.isFillTransparent||!1,this.fillOpacity=A.fillOpacity||1,this.font=A.font||"10px sans-serif",this.textBaseline=A.textBaseline||"alphabetic",this.textAlign=A.textAlign||"left",this.lineWidth=A.lineWidth||1,this.lineJoin=A.lineJoin||"miter",this.lineCap=A.lineCap||"butt",this.path=A.path||[],this.transform=A.transform!==void 0?A.transform.clone():new f,this.globalCompositeOperation=A.globalCompositeOperation||"normal",this.globalAlpha=A.globalAlpha||1,this.clip_path=A.clip_path||[],this.currentPoint=A.currentPoint||new u,this.miterLimit=A.miterLimit||10,this.lastPoint=A.lastPoint||new u,this.lineDashOffset=A.lineDashOffset||0,this.lineDash=A.lineDash||[],this.margin=A.margin||[0,0,0,0],this.prevPageLastElemOffset=A.prevPageLastElemOffset||0,this.ignoreClearRect=typeof A.ignoreClearRect!="boolean"||A.ignoreClearRect,this};r.events.push(["initialized",function(){this.context2d=new y(this),t=this.internal.f2,n=this.internal.getCoordinateString,i=this.internal.getVerticalCoordinateString,s=this.internal.getHorizontalCoordinate,o=this.internal.getVerticalCoordinate,u=this.internal.Point,h=this.internal.Rectangle,f=this.internal.Matrix,g=new v}]);var y=function(A){Object.defineProperty(this,"canvas",{get:function(){return{parentNode:!1,style:!1}}});var O=A;Object.defineProperty(this,"pdf",{get:function(){return O}});var B=!1;Object.defineProperty(this,"pageWrapXEnabled",{get:function(){return B},set:function(ft){B=!!ft}});var R=!1;Object.defineProperty(this,"pageWrapYEnabled",{get:function(){return R},set:function(ft){R=!!ft}});var Y=0;Object.defineProperty(this,"posX",{get:function(){return Y},set:function(ft){isNaN(ft)||(Y=ft)}});var Q=0;Object.defineProperty(this,"posY",{get:function(){return Q},set:function(ft){isNaN(ft)||(Q=ft)}}),Object.defineProperty(this,"margin",{get:function(){return g.margin},set:function(ft){var T;typeof ft=="number"?T=[ft,ft,ft,ft]:((T=new Array(4))[0]=ft[0],T[1]=ft.length>=2?ft[1]:T[0],T[2]=ft.length>=3?ft[2]:T[0],T[3]=ft.length>=4?ft[3]:T[1]),g.margin=T}});var nt=!1;Object.defineProperty(this,"autoPaging",{get:function(){return nt},set:function(ft){nt=ft}});var rt=0;Object.defineProperty(this,"lastBreak",{get:function(){return rt},set:function(ft){rt=ft}});var Lt=[];Object.defineProperty(this,"pageBreaks",{get:function(){return Lt},set:function(ft){Lt=ft}}),Object.defineProperty(this,"ctx",{get:function(){return g},set:function(ft){ft instanceof v&&(g=ft)}}),Object.defineProperty(this,"path",{get:function(){return g.path},set:function(ft){g.path=ft}});var At=[];Object.defineProperty(this,"ctxStack",{get:function(){return At},set:function(ft){At=ft}}),Object.defineProperty(this,"fillStyle",{get:function(){return this.ctx.fillStyle},set:function(ft){var T;T=N(ft),this.ctx.fillStyle=T.style,this.ctx.isFillTransparent=T.a===0,this.ctx.fillOpacity=T.a,this.pdf.setFillColor(T.r,T.g,T.b,{a:T.a}),this.pdf.setTextColor(T.r,T.g,T.b,{a:T.a})}}),Object.defineProperty(this,"strokeStyle",{get:function(){return this.ctx.strokeStyle},set:function(ft){var T=N(ft);this.ctx.strokeStyle=T.style,this.ctx.isStrokeTransparent=T.a===0,this.ctx.strokeOpacity=T.a,T.a===0?this.pdf.setDrawColor(255,255,255):(T.a,this.pdf.setDrawColor(T.r,T.g,T.b))}}),Object.defineProperty(this,"lineCap",{get:function(){return this.ctx.lineCap},set:function(ft){["butt","round","square"].indexOf(ft)!==-1&&(this.ctx.lineCap=ft,this.pdf.setLineCap(ft))}}),Object.defineProperty(this,"lineWidth",{get:function(){return this.ctx.lineWidth},set:function(ft){isNaN(ft)||(this.ctx.lineWidth=ft,this.pdf.setLineWidth(ft))}}),Object.defineProperty(this,"lineJoin",{get:function(){return this.ctx.lineJoin},set:function(ft){["bevel","round","miter"].indexOf(ft)!==-1&&(this.ctx.lineJoin=ft,this.pdf.setLineJoin(ft))}}),Object.defineProperty(this,"miterLimit",{get:function(){return this.ctx.miterLimit},set:function(ft){isNaN(ft)||(this.ctx.miterLimit=ft,this.pdf.setMiterLimit(ft))}}),Object.defineProperty(this,"textBaseline",{get:function(){return this.ctx.textBaseline},set:function(ft){this.ctx.textBaseline=ft}}),Object.defineProperty(this,"textAlign",{get:function(){return this.ctx.textAlign},set:function(ft){["right","end","center","left","start"].indexOf(ft)!==-1&&(this.ctx.textAlign=ft)}});var kt=null;function Pt(ft,T){if(kt===null){var Kt=(function(Bt){var xt=[];return Object.keys(Bt).forEach((function(Nt){Bt[Nt].forEach((function(It){var Ft=null;switch(It){case"bold":Ft={family:Nt,weight:"bold"};break;case"italic":Ft={family:Nt,style:"italic"};break;case"bolditalic":Ft={family:Nt,weight:"bold",style:"italic"};break;case"":case"normal":Ft={family:Nt}}Ft!==null&&(Ft.ref={name:Nt,style:It},xt.push(Ft))}))})),xt})(ft.getFontList());kt=(function(Bt){for(var xt={},Nt=0;Nt<Bt.length;++Nt){var It=Os(Bt[Nt]),Ft=It.family,Tt=It.stretch,Vt=It.style,Qt=It.weight;xt[Ft]=xt[Ft]||{},xt[Ft][Tt]=xt[Ft][Tt]||{},xt[Ft][Tt][Vt]=xt[Ft][Tt][Vt]||{},xt[Ft][Tt][Vt][Qt]=It}return xt})(Kt.concat(T))}return kt}var Ut=null;Object.defineProperty(this,"fontFaces",{get:function(){return Ut},set:function(ft){kt=null,Ut=ft}}),Object.defineProperty(this,"font",{get:function(){return this.ctx.font},set:function(ft){var T;if(this.ctx.font=ft,(T=/^\s*(?=(?:(?:[-a-z]+\s*){0,2}(italic|oblique))?)(?=(?:(?:[-a-z]+\s*){0,2}(small-caps))?)(?=(?:(?:[-a-z]+\s*){0,2}(bold(?:er)?|lighter|[1-9]00))?)(?:(?:normal|\1|\2|\3)\s*){0,3}((?:xx?-)?(?:small|large)|medium|smaller|larger|[.\d]+(?:\%|in|[cem]m|ex|p[ctx]))(?:\s*\/\s*(normal|[.\d]+(?:\%|in|[cem]m|ex|p[ctx])))?\s*([-_,\"\'\sa-z]+?)\s*$/i.exec(ft))!==null){var Kt=T[1];T[2];var Bt=T[3],xt=T[4];T[5];var Nt=T[6],It=/^([.\d]+)((?:%|in|[cem]m|ex|p[ctx]))$/i.exec(xt)[2];xt=Math.floor(It==="px"?parseFloat(xt)*this.pdf.internal.scaleFactor:It==="em"?parseFloat(xt)*this.pdf.getFontSize():parseFloat(xt)*this.pdf.internal.scaleFactor),this.pdf.setFontSize(xt);var Ft=(function(Wt){var ee,Ct,Je=[],oe=Wt.trim();if(oe==="")return Ss;if(oe in Bl)return[Bl[oe]];for(;oe!=="";){switch(Ct=null,ee=(oe=El(oe)).charAt(0)){case'"':case"'":Ct=Sc(oe.substring(1),ee);break;default:Ct=Pc(oe)}if(Ct===null||(Je.push(Ct[0]),(oe=El(Ct[1]))!==""&&oe.charAt(0)!==","))return Ss;oe=oe.replace(/^,/,"")}return Je})(Nt);if(this.fontFaces){var Tt=Nc(Pt(this.pdf,this.fontFaces),Ft.map((function(Wt){return{family:Wt,stretch:"normal",weight:Bt,style:Kt}})));this.pdf.setFont(Tt.ref.name,Tt.ref.style)}else{var Vt="";(Bt==="bold"||parseInt(Bt,10)>=700||Kt==="bold")&&(Vt="bold"),Kt==="italic"&&(Vt+="italic"),Vt.length===0&&(Vt="normal");for(var Qt="",te={arial:"Helvetica",Arial:"Helvetica",verdana:"Helvetica",Verdana:"Helvetica",helvetica:"Helvetica",Helvetica:"Helvetica","sans-serif":"Helvetica",fixed:"Courier",monospace:"Courier",terminal:"Courier",cursive:"Times",fantasy:"Times",serif:"Times"},ie=0;ie<Ft.length;ie++){if(this.pdf.internal.getFont(Ft[ie],Vt,{noFallback:!0,disableWarning:!0})!==void 0){Qt=Ft[ie];break}if(Vt==="bolditalic"&&this.pdf.internal.getFont(Ft[ie],"bold",{noFallback:!0,disableWarning:!0})!==void 0)Qt=Ft[ie],Vt="bold";else if(this.pdf.internal.getFont(Ft[ie],"normal",{noFallback:!0,disableWarning:!0})!==void 0){Qt=Ft[ie],Vt="normal";break}}if(Qt===""){for(var pe=0;pe<Ft.length;pe++)if(te[Ft[pe]]){Qt=te[Ft[pe]];break}}Qt=Qt===""?"Times":Qt,this.pdf.setFont(Qt,Vt)}}}}),Object.defineProperty(this,"globalCompositeOperation",{get:function(){return this.ctx.globalCompositeOperation},set:function(ft){this.ctx.globalCompositeOperation=ft}}),Object.defineProperty(this,"globalAlpha",{get:function(){return this.ctx.globalAlpha},set:function(ft){this.ctx.globalAlpha=ft}}),Object.defineProperty(this,"lineDashOffset",{get:function(){return this.ctx.lineDashOffset},set:function(ft){this.ctx.lineDashOffset=ft,Ot.call(this)}}),Object.defineProperty(this,"lineDash",{get:function(){return this.ctx.lineDash},set:function(ft){this.ctx.lineDash=ft,Ot.call(this)}}),Object.defineProperty(this,"ignoreClearRect",{get:function(){return this.ctx.ignoreClearRect},set:function(ft){this.ctx.ignoreClearRect=!!ft}})};y.prototype.setLineDash=function(A){this.lineDash=A},y.prototype.getLineDash=function(){return this.lineDash.length%2?this.lineDash.concat(this.lineDash):this.lineDash.slice()},y.prototype.fill=function(){tt.call(this,"fill",!1)},y.prototype.stroke=function(){tt.call(this,"stroke",!1)},y.prototype.beginPath=function(){this.path=[{type:"begin"}]},y.prototype.moveTo=function(A,O){if(isNaN(A)||isNaN(O))throw be.error("jsPDF.context2d.moveTo: Invalid arguments",arguments),new Error("Invalid arguments passed to jsPDF.context2d.moveTo");var B=this.ctx.transform.applyToPoint(new u(A,O));this.path.push({type:"mt",x:B.x,y:B.y}),this.ctx.lastPoint=new u(A,O)},y.prototype.closePath=function(){var A=new u(0,0),O=0;for(O=this.path.length-1;O!==-1;O--)if(this.path[O].type==="begin"&&ge(this.path[O+1])==="object"&&typeof this.path[O+1].x=="number"){A=new u(this.path[O+1].x,this.path[O+1].y);break}this.path.push({type:"close"}),this.ctx.lastPoint=new u(A.x,A.y)},y.prototype.lineTo=function(A,O){if(isNaN(A)||isNaN(O))throw be.error("jsPDF.context2d.lineTo: Invalid arguments",arguments),new Error("Invalid arguments passed to jsPDF.context2d.lineTo");var B=this.ctx.transform.applyToPoint(new u(A,O));this.path.push({type:"lt",x:B.x,y:B.y}),this.ctx.lastPoint=new u(B.x,B.y)},y.prototype.clip=function(){this.ctx.clip_path=JSON.parse(JSON.stringify(this.path)),tt.call(this,null,!0)},y.prototype.quadraticCurveTo=function(A,O,B,R){if(isNaN(B)||isNaN(R)||isNaN(A)||isNaN(O))throw be.error("jsPDF.context2d.quadraticCurveTo: Invalid arguments",arguments),new Error("Invalid arguments passed to jsPDF.context2d.quadraticCurveTo");var Y=this.ctx.transform.applyToPoint(new u(B,R)),Q=this.ctx.transform.applyToPoint(new u(A,O));this.path.push({type:"qct",x1:Q.x,y1:Q.y,x:Y.x,y:Y.y}),this.ctx.lastPoint=new u(Y.x,Y.y)},y.prototype.bezierCurveTo=function(A,O,B,R,Y,Q){if(isNaN(Y)||isNaN(Q)||isNaN(A)||isNaN(O)||isNaN(B)||isNaN(R))throw be.error("jsPDF.context2d.bezierCurveTo: Invalid arguments",arguments),new Error("Invalid arguments passed to jsPDF.context2d.bezierCurveTo");var nt=this.ctx.transform.applyToPoint(new u(Y,Q)),rt=this.ctx.transform.applyToPoint(new u(A,O)),Lt=this.ctx.transform.applyToPoint(new u(B,R));this.path.push({type:"bct",x1:rt.x,y1:rt.y,x2:Lt.x,y2:Lt.y,x:nt.x,y:nt.y}),this.ctx.lastPoint=new u(nt.x,nt.y)},y.prototype.arc=function(A,O,B,R,Y,Q){if(isNaN(A)||isNaN(O)||isNaN(B)||isNaN(R)||isNaN(Y))throw be.error("jsPDF.context2d.arc: Invalid arguments",arguments),new Error("Invalid arguments passed to jsPDF.context2d.arc");if(Q=!!Q,!this.ctx.transform.isIdentity){var nt=this.ctx.transform.applyToPoint(new u(A,O));A=nt.x,O=nt.y;var rt=this.ctx.transform.applyToPoint(new u(0,B)),Lt=this.ctx.transform.applyToPoint(new u(0,0));B=Math.sqrt(Math.pow(rt.x-Lt.x,2)+Math.pow(rt.y-Lt.y,2))}Math.abs(Y-R)>=2*Math.PI&&(R=0,Y=2*Math.PI),this.path.push({type:"arc",x:A,y:O,radius:B,startAngle:R,endAngle:Y,counterclockwise:Q})},y.prototype.arcTo=function(A,O,B,R,Y){throw new Error("arcTo not implemented.")},y.prototype.rect=function(A,O,B,R){if(isNaN(A)||isNaN(O)||isNaN(B)||isNaN(R))throw be.error("jsPDF.context2d.rect: Invalid arguments",arguments),new Error("Invalid arguments passed to jsPDF.context2d.rect");this.moveTo(A,O),this.lineTo(A+B,O),this.lineTo(A+B,O+R),this.lineTo(A,O+R),this.lineTo(A,O),this.lineTo(A+B,O),this.lineTo(A,O)},y.prototype.fillRect=function(A,O,B,R){if(isNaN(A)||isNaN(O)||isNaN(B)||isNaN(R))throw be.error("jsPDF.context2d.fillRect: Invalid arguments",arguments),new Error("Invalid arguments passed to jsPDF.context2d.fillRect");if(!d.call(this)){var Y={};this.lineCap!=="butt"&&(Y.lineCap=this.lineCap,this.lineCap="butt"),this.lineJoin!=="miter"&&(Y.lineJoin=this.lineJoin,this.lineJoin="miter"),this.beginPath(),this.rect(A,O,B,R),this.fill(),Y.hasOwnProperty("lineCap")&&(this.lineCap=Y.lineCap),Y.hasOwnProperty("lineJoin")&&(this.lineJoin=Y.lineJoin)}},y.prototype.strokeRect=function(A,O,B,R){if(isNaN(A)||isNaN(O)||isNaN(B)||isNaN(R))throw be.error("jsPDF.context2d.strokeRect: Invalid arguments",arguments),new Error("Invalid arguments passed to jsPDF.context2d.strokeRect");C.call(this)||(this.beginPath(),this.rect(A,O,B,R),this.stroke())},y.prototype.clearRect=function(A,O,B,R){if(isNaN(A)||isNaN(O)||isNaN(B)||isNaN(R))throw be.error("jsPDF.context2d.clearRect: Invalid arguments",arguments),new Error("Invalid arguments passed to jsPDF.context2d.clearRect");this.ignoreClearRect||(this.fillStyle="#ffffff",this.fillRect(A,O,B,R))},y.prototype.save=function(A){A=typeof A!="boolean"||A;for(var O=this.pdf.internal.getCurrentPageInfo().pageNumber,B=0;B<this.pdf.internal.getNumberOfPages();B++)this.pdf.setPage(B+1),this.pdf.internal.out("q");if(this.pdf.setPage(O),A){this.ctx.fontSize=this.pdf.internal.getFontSize();var R=new v(this.ctx);this.ctxStack.push(this.ctx),this.ctx=R}},y.prototype.restore=function(A){A=typeof A!="boolean"||A;for(var O=this.pdf.internal.getCurrentPageInfo().pageNumber,B=0;B<this.pdf.internal.getNumberOfPages();B++)this.pdf.setPage(B+1),this.pdf.internal.out("Q");this.pdf.setPage(O),A&&this.ctxStack.length!==0&&(this.ctx=this.ctxStack.pop(),this.fillStyle=this.ctx.fillStyle,this.strokeStyle=this.ctx.strokeStyle,this.font=this.ctx.font,this.lineCap=this.ctx.lineCap,this.lineWidth=this.ctx.lineWidth,this.lineJoin=this.ctx.lineJoin,this.lineDash=this.ctx.lineDash,this.lineDashOffset=this.ctx.lineDashOffset)},y.prototype.toDataURL=function(){throw new Error("toDataUrl not implemented.")};var N=function(A){var O,B,R,Y;if(A.isCanvasGradient===!0&&(A=A.getColor()),!A)return{r:0,g:0,b:0,a:0,style:A};if(/transparent|rgba\s*\(\s*(\d+)\s*,\s*(\d+)\s*,\s*(\d+)\s*,\s*0+\s*\)/.test(A))O=0,B=0,R=0,Y=0;else{var Q=/rgb\s*\(\s*(\d+)\s*,\s*(\d+)\s*,\s*(\d+)\s*\)/.exec(A);if(Q!==null)O=parseInt(Q[1]),B=parseInt(Q[2]),R=parseInt(Q[3]),Y=1;else if((Q=/rgba\s*\(\s*(\d+)\s*,\s*(\d+)\s*,\s*(\d+)\s*,\s*([\d.]+)\s*\)/.exec(A))!==null)O=parseInt(Q[1]),B=parseInt(Q[2]),R=parseInt(Q[3]),Y=parseFloat(Q[4]);else{if(Y=1,typeof A=="string"&&A.charAt(0)!=="#"){var nt=new Jl(A);A=nt.ok?nt.toHex():"#000000"}A.length===4?(O=A.substring(1,2),O+=O,B=A.substring(2,3),B+=B,R=A.substring(3,4),R+=R):(O=A.substring(1,3),B=A.substring(3,5),R=A.substring(5,7)),O=parseInt(O,16),B=parseInt(B,16),R=parseInt(R,16)}}return{r:O,g:B,b:R,a:Y,style:A}},d=function(){return this.ctx.isFillTransparent||this.globalAlpha==0},C=function(){return!!(this.ctx.isStrokeTransparent||this.globalAlpha==0)};y.prototype.fillText=function(A,O,B,R){if(isNaN(O)||isNaN(B)||typeof A!="string")throw be.error("jsPDF.context2d.fillText: Invalid arguments",arguments),new Error("Invalid arguments passed to jsPDF.context2d.fillText");if(R=isNaN(R)?void 0:R,!d.call(this)){var Y=$(this.ctx.transform.rotation),Q=this.ctx.transform.scaleX;k.call(this,{text:A,x:O,y:B,scale:Q,angle:Y,align:this.textAlign,maxWidth:R})}},y.prototype.strokeText=function(A,O,B,R){if(isNaN(O)||isNaN(B)||typeof A!="string")throw be.error("jsPDF.context2d.strokeText: Invalid arguments",arguments),new Error("Invalid arguments passed to jsPDF.context2d.strokeText");if(!C.call(this)){R=isNaN(R)?void 0:R;var Y=$(this.ctx.transform.rotation),Q=this.ctx.transform.scaleX;k.call(this,{text:A,x:O,y:B,scale:Q,renderingMode:"stroke",angle:Y,align:this.textAlign,maxWidth:R})}},y.prototype.measureText=function(A){if(typeof A!="string")throw be.error("jsPDF.context2d.measureText: Invalid arguments",arguments),new Error("Invalid arguments passed to jsPDF.context2d.measureText");var O=this.pdf,B=this.pdf.internal.scaleFactor,R=O.internal.getFontSize(),Y=O.getStringUnitWidth(A)*R/O.internal.scaleFactor,Q=function(nt){var rt=(nt=nt||{}).width||0;return Object.defineProperty(this,"width",{get:function(){return rt}}),this};return new Q({width:Y*=Math.round(96*B/72*1e4)/1e4})},y.prototype.scale=function(A,O){if(isNaN(A)||isNaN(O))throw be.error("jsPDF.context2d.scale: Invalid arguments",arguments),new Error("Invalid arguments passed to jsPDF.context2d.scale");var B=new f(A,0,0,O,0,0);this.ctx.transform=this.ctx.transform.multiply(B)},y.prototype.rotate=function(A){if(isNaN(A))throw be.error("jsPDF.context2d.rotate: Invalid arguments",arguments),new Error("Invalid arguments passed to jsPDF.context2d.rotate");var O=new f(Math.cos(A),Math.sin(A),-Math.sin(A),Math.cos(A),0,0);this.ctx.transform=this.ctx.transform.multiply(O)},y.prototype.translate=function(A,O){if(isNaN(A)||isNaN(O))throw be.error("jsPDF.context2d.translate: Invalid arguments",arguments),new Error("Invalid arguments passed to jsPDF.context2d.translate");var B=new f(1,0,0,1,A,O);this.ctx.transform=this.ctx.transform.multiply(B)},y.prototype.transform=function(A,O,B,R,Y,Q){if(isNaN(A)||isNaN(O)||isNaN(B)||isNaN(R)||isNaN(Y)||isNaN(Q))throw be.error("jsPDF.context2d.transform: Invalid arguments",arguments),new Error("Invalid arguments passed to jsPDF.context2d.transform");var nt=new f(A,O,B,R,Y,Q);this.ctx.transform=this.ctx.transform.multiply(nt)},y.prototype.setTransform=function(A,O,B,R,Y,Q){A=isNaN(A)?1:A,O=isNaN(O)?0:O,B=isNaN(B)?0:B,R=isNaN(R)?1:R,Y=isNaN(Y)?0:Y,Q=isNaN(Q)?0:Q,this.ctx.transform=new f(A,O,B,R,Y,Q)};var F=function(){return this.margin[0]>0||this.margin[1]>0||this.margin[2]>0||this.margin[3]>0};y.prototype.drawImage=function(A,O,B,R,Y,Q,nt,rt,Lt){var At=this.pdf.getImageProperties(A),kt=1,Pt=1,Ut=1,ft=1;R!==void 0&&rt!==void 0&&(Ut=rt/R,ft=Lt/Y,kt=At.width/R*rt/R,Pt=At.height/Y*Lt/Y),Q===void 0&&(Q=O,nt=B,O=0,B=0),R!==void 0&&rt===void 0&&(rt=R,Lt=Y),R===void 0&&rt===void 0&&(rt=At.width,Lt=At.height);for(var T,Kt=this.ctx.transform.decompose(),Bt=$(Kt.rotate.shx),xt=new f,Nt=(xt=(xt=(xt=xt.multiply(Kt.translate)).multiply(Kt.skew)).multiply(Kt.scale)).applyToRectangle(new h(Q-O*Ut,nt-B*ft,R*kt,Y*Pt)),It=D.call(this,Nt),Ft=[],Tt=0;Tt<It.length;Tt+=1)Ft.indexOf(It[Tt])===-1&&Ft.push(It[Tt]);if(W(Ft),this.autoPaging)for(var Vt=Ft[0],Qt=Ft[Ft.length-1],te=Vt;te<Qt+1;te++){this.pdf.setPage(te);var ie=this.pdf.internal.pageSize.width-this.margin[3]-this.margin[1],pe=te===1?this.posY+this.margin[0]:this.margin[0],Wt=this.pdf.internal.pageSize.height-this.posY-this.margin[0]-this.margin[2],ee=this.pdf.internal.pageSize.height-this.margin[0]-this.margin[2],Ct=te===1?0:Wt+(te-2)*ee;if(this.ctx.clip_path.length!==0){var Je=this.path;T=JSON.parse(JSON.stringify(this.ctx.clip_path)),this.path=M(T,this.posX+this.margin[3],-Ct+pe+this.ctx.prevPageLastElemOffset),ot.call(this,"fill",!0),this.path=Je}var oe=JSON.parse(JSON.stringify(Nt));oe=M([oe],this.posX+this.margin[3],-Ct+pe+this.ctx.prevPageLastElemOffset)[0];var _n=(te>Vt||te<Qt)&&F.call(this);_n&&(this.pdf.saveGraphicsState(),this.pdf.rect(this.margin[3],this.margin[0],ie,ee,null).clip().discardPath()),this.pdf.addImage(A,"JPEG",oe.x,oe.y,oe.w,oe.h,null,null,Bt),_n&&this.pdf.restoreGraphicsState()}else this.pdf.addImage(A,"JPEG",Nt.x,Nt.y,Nt.w,Nt.h,null,null,Bt)};var D=function(A,O,B){var R=[];O=O||this.pdf.internal.pageSize.width,B=B||this.pdf.internal.pageSize.height-this.margin[0]-this.margin[2];var Y=this.posY+this.ctx.prevPageLastElemOffset;switch(A.type){default:case"mt":case"lt":R.push(Math.floor((A.y+Y)/B)+1);break;case"arc":R.push(Math.floor((A.y+Y-A.radius)/B)+1),R.push(Math.floor((A.y+Y+A.radius)/B)+1);break;case"qct":var Q=ct(this.ctx.lastPoint.x,this.ctx.lastPoint.y,A.x1,A.y1,A.x,A.y);R.push(Math.floor((Q.y+Y)/B)+1),R.push(Math.floor((Q.y+Q.h+Y)/B)+1);break;case"bct":var nt=pt(this.ctx.lastPoint.x,this.ctx.lastPoint.y,A.x1,A.y1,A.x2,A.y2,A.x,A.y);R.push(Math.floor((nt.y+Y)/B)+1),R.push(Math.floor((nt.y+nt.h+Y)/B)+1);break;case"rect":R.push(Math.floor((A.y+Y)/B)+1),R.push(Math.floor((A.y+A.h+Y)/B)+1)}for(var rt=0;rt<R.length;rt+=1)for(;this.pdf.internal.getNumberOfPages()<R[rt];)P.call(this);return R},P=function(){var A=this.fillStyle,O=this.strokeStyle,B=this.font,R=this.lineCap,Y=this.lineWidth,Q=this.lineJoin;this.pdf.addPage(),this.fillStyle=A,this.strokeStyle=O,this.font=B,this.lineCap=R,this.lineWidth=Y,this.lineJoin=Q},M=function(A,O,B){for(var R=0;R<A.length;R++)switch(A[R].type){case"bct":A[R].x2+=O,A[R].y2+=B;case"qct":A[R].x1+=O,A[R].y1+=B;case"mt":case"lt":case"arc":default:A[R].x+=O,A[R].y+=B}return A},W=function(A){return A.sort((function(O,B){return O-B}))},tt=function(A,O){for(var B,R,Y=this.fillStyle,Q=this.strokeStyle,nt=this.lineCap,rt=this.lineWidth,Lt=Math.abs(rt*this.ctx.transform.scaleX),At=this.lineJoin,kt=JSON.parse(JSON.stringify(this.path)),Pt=JSON.parse(JSON.stringify(this.path)),Ut=[],ft=0;ft<Pt.length;ft++)if(Pt[ft].x!==void 0)for(var T=D.call(this,Pt[ft]),Kt=0;Kt<T.length;Kt+=1)Ut.indexOf(T[Kt])===-1&&Ut.push(T[Kt]);for(var Bt=0;Bt<Ut.length;Bt++)for(;this.pdf.internal.getNumberOfPages()<Ut[Bt];)P.call(this);if(W(Ut),this.autoPaging)for(var xt=Ut[0],Nt=Ut[Ut.length-1],It=xt;It<Nt+1;It++){this.pdf.setPage(It),this.fillStyle=Y,this.strokeStyle=Q,this.lineCap=nt,this.lineWidth=Lt,this.lineJoin=At;var Ft=this.pdf.internal.pageSize.width-this.margin[3]-this.margin[1],Tt=It===1?this.posY+this.margin[0]:this.margin[0],Vt=this.pdf.internal.pageSize.height-this.posY-this.margin[0]-this.margin[2],Qt=this.pdf.internal.pageSize.height-this.margin[0]-this.margin[2],te=It===1?0:Vt+(It-2)*Qt;if(this.ctx.clip_path.length!==0){var ie=this.path;B=JSON.parse(JSON.stringify(this.ctx.clip_path)),this.path=M(B,this.posX+this.margin[3],-te+Tt+this.ctx.prevPageLastElemOffset),ot.call(this,A,!0),this.path=ie}if(R=JSON.parse(JSON.stringify(kt)),this.path=M(R,this.posX+this.margin[3],-te+Tt+this.ctx.prevPageLastElemOffset),O===!1||It===0){var pe=(It>xt||It<Nt)&&F.call(this);pe&&(this.pdf.saveGraphicsState(),this.pdf.rect(this.margin[3],this.margin[0],Ft,Qt,null).clip().discardPath()),ot.call(this,A,O),pe&&this.pdf.restoreGraphicsState()}this.lineWidth=rt}else this.lineWidth=Lt,ot.call(this,A,O),this.lineWidth=rt;this.path=kt},ot=function(A,O){if((A!=="stroke"||O||!C.call(this))&&(A==="stroke"||O||!d.call(this))){for(var B,R,Y=[],Q=this.path,nt=0;nt<Q.length;nt++){var rt=Q[nt];switch(rt.type){case"begin":Y.push({begin:!0});break;case"close":Y.push({close:!0});break;case"mt":Y.push({start:rt,deltas:[],abs:[]});break;case"lt":var Lt=Y.length;if(Q[nt-1]&&!isNaN(Q[nt-1].x)&&(B=[rt.x-Q[nt-1].x,rt.y-Q[nt-1].y],Lt>0)){for(;Lt>=0;Lt--)if(Y[Lt-1].close!==!0&&Y[Lt-1].begin!==!0){Y[Lt-1].deltas.push(B),Y[Lt-1].abs.push(rt);break}}break;case"bct":B=[rt.x1-Q[nt-1].x,rt.y1-Q[nt-1].y,rt.x2-Q[nt-1].x,rt.y2-Q[nt-1].y,rt.x-Q[nt-1].x,rt.y-Q[nt-1].y],Y[Y.length-1].deltas.push(B);break;case"qct":var At=Q[nt-1].x+2/3*(rt.x1-Q[nt-1].x),kt=Q[nt-1].y+2/3*(rt.y1-Q[nt-1].y),Pt=rt.x+2/3*(rt.x1-rt.x),Ut=rt.y+2/3*(rt.y1-rt.y),ft=rt.x,T=rt.y;B=[At-Q[nt-1].x,kt-Q[nt-1].y,Pt-Q[nt-1].x,Ut-Q[nt-1].y,ft-Q[nt-1].x,T-Q[nt-1].y],Y[Y.length-1].deltas.push(B);break;case"arc":Y.push({deltas:[],abs:[],arc:!0}),Array.isArray(Y[Y.length-1].abs)&&Y[Y.length-1].abs.push(rt)}}R=O?null:A==="stroke"?"stroke":"fill";for(var Kt=!1,Bt=0;Bt<Y.length;Bt++)if(Y[Bt].arc)for(var xt=Y[Bt].abs,Nt=0;Nt<xt.length;Nt++){var It=xt[Nt];It.type==="arc"?z.call(this,It.x,It.y,It.radius,It.startAngle,It.endAngle,It.counterclockwise,void 0,O,!Kt):G.call(this,It.x,It.y),Kt=!0}else if(Y[Bt].close===!0)this.pdf.internal.out("h"),Kt=!1;else if(Y[Bt].begin!==!0){var Ft=Y[Bt].start.x,Tt=Y[Bt].start.y;E.call(this,Y[Bt].deltas,Ft,Tt),Kt=!0}R&&it.call(this,R),O&&dt.call(this)}},yt=function(A){var O=this.pdf.internal.getFontSize()/this.pdf.internal.scaleFactor,B=O*(this.pdf.internal.getLineHeightFactor()-1);switch(this.ctx.textBaseline){case"bottom":return A-B;case"top":return A+O-B;case"hanging":return A+O-2*B;case"middle":return A+O/2-B;case"ideographic":return A;case"alphabetic":default:return A}},et=function(A){return A+this.pdf.internal.getFontSize()/this.pdf.internal.scaleFactor*(this.pdf.internal.getLineHeightFactor()-1)};y.prototype.createLinearGradient=function(){var A=function(){};return A.colorStops=[],A.addColorStop=function(O,B){this.colorStops.push([O,B])},A.getColor=function(){return this.colorStops.length===0?"#000000":this.colorStops[0][1]},A.isCanvasGradient=!0,A},y.prototype.createPattern=function(){return this.createLinearGradient()},y.prototype.createRadialGradient=function(){return this.createLinearGradient()};var z=function(A,O,B,R,Y,Q,nt,rt,Lt){for(var At=at.call(this,B,R,Y,Q),kt=0;kt<At.length;kt++){var Pt=At[kt];kt===0&&(Lt?_.call(this,Pt.x1+A,Pt.y1+O):G.call(this,Pt.x1+A,Pt.y1+O)),lt.call(this,A,O,Pt.x2,Pt.y2,Pt.x3,Pt.y3,Pt.x4,Pt.y4)}rt?dt.call(this):it.call(this,nt)},it=function(A){switch(A){case"stroke":this.pdf.internal.out("S");break;case"fill":this.pdf.internal.out("f")}},dt=function(){this.pdf.clip(),this.pdf.discardPath()},_=function(A,O){this.pdf.internal.out(n(A)+" "+i(O)+" m")},k=function(A){var O;switch(A.align){case"right":case"end":O="right";break;case"center":O="center";break;case"left":case"start":default:O="left"}var B=this.pdf.getTextDimensions(A.text),R=yt.call(this,A.y),Y=et.call(this,R)-B.h,Q=this.ctx.transform.applyToPoint(new u(A.x,R)),nt=this.ctx.transform.decompose(),rt=new f;rt=(rt=(rt=rt.multiply(nt.translate)).multiply(nt.skew)).multiply(nt.scale);for(var Lt,At,kt,Pt=this.ctx.transform.applyToRectangle(new h(A.x,R,B.w,B.h)),Ut=rt.applyToRectangle(new h(A.x,Y,B.w,B.h)),ft=D.call(this,Ut),T=[],Kt=0;Kt<ft.length;Kt+=1)T.indexOf(ft[Kt])===-1&&T.push(ft[Kt]);if(W(T),this.autoPaging)for(var Bt=T[0],xt=T[T.length-1],Nt=Bt;Nt<xt+1;Nt++){this.pdf.setPage(Nt);var It=Nt===1?this.posY+this.margin[0]:this.margin[0],Ft=this.pdf.internal.pageSize.height-this.posY-this.margin[0]-this.margin[2],Tt=this.pdf.internal.pageSize.height-this.margin[2],Vt=Tt-this.margin[0],Qt=this.pdf.internal.pageSize.width-this.margin[1],te=Qt-this.margin[3],ie=Nt===1?0:Ft+(Nt-2)*Vt;if(this.ctx.clip_path.length!==0){var pe=this.path;Lt=JSON.parse(JSON.stringify(this.ctx.clip_path)),this.path=M(Lt,this.posX+this.margin[3],-1*ie+It),ot.call(this,"fill",!0),this.path=pe}var Wt=M([JSON.parse(JSON.stringify(Ut))],this.posX+this.margin[3],-ie+It+this.ctx.prevPageLastElemOffset)[0];A.scale>=.01&&(At=this.pdf.internal.getFontSize(),this.pdf.setFontSize(At*A.scale),kt=this.lineWidth,this.lineWidth=kt*A.scale);var ee=this.autoPaging!=="text";if(ee||Wt.y+Wt.h<=Tt){if(ee||Wt.y>=It&&Wt.x<=Qt){var Ct=ee?A.text:this.pdf.splitTextToSize(A.text,A.maxWidth||Qt-Wt.x)[0],Je=M([JSON.parse(JSON.stringify(Pt))],this.posX+this.margin[3],-ie+It+this.ctx.prevPageLastElemOffset)[0],oe=ee&&(Nt>Bt||Nt<xt)&&F.call(this);oe&&(this.pdf.saveGraphicsState(),this.pdf.rect(this.margin[3],this.margin[0],te,Vt,null).clip().discardPath()),this.pdf.text(Ct,Je.x,Je.y,{angle:A.angle,align:O,renderingMode:A.renderingMode}),oe&&this.pdf.restoreGraphicsState()}}else Wt.y<Tt&&(this.ctx.prevPageLastElemOffset+=Tt-Wt.y);A.scale>=.01&&(this.pdf.setFontSize(At),this.lineWidth=kt)}else A.scale>=.01&&(At=this.pdf.internal.getFontSize(),this.pdf.setFontSize(At*A.scale),kt=this.lineWidth,this.lineWidth=kt*A.scale),this.pdf.text(A.text,Q.x+this.posX,Q.y+this.posY,{angle:A.angle,align:O,renderingMode:A.renderingMode,maxWidth:A.maxWidth}),A.scale>=.01&&(this.pdf.setFontSize(At),this.lineWidth=kt)},G=function(A,O,B,R){B=B||0,R=R||0,this.pdf.internal.out(n(A+B)+" "+i(O+R)+" l")},E=function(A,O,B){return this.pdf.lines(A,O,B,null,null)},lt=function(A,O,B,R,Y,Q,nt,rt){this.pdf.internal.out([t(s(B+A)),t(o(R+O)),t(s(Y+A)),t(o(Q+O)),t(s(nt+A)),t(o(rt+O)),"c"].join(" "))},at=function(A,O,B,R){for(var Y=2*Math.PI,Q=Math.PI/2;O>B;)O-=Y;var nt=Math.abs(B-O);nt<Y&&R&&(nt=Y-nt);for(var rt=[],Lt=R?-1:1,At=O;nt>1e-5;){var kt=At+Lt*Math.min(nt,Q);rt.push(ht.call(this,A,At,kt)),nt-=Math.abs(kt-At),At=kt}return rt},ht=function(A,O,B){var R=(B-O)/2,Y=A*Math.cos(R),Q=A*Math.sin(R),nt=Y,rt=-Q,Lt=nt*nt+rt*rt,At=Lt+nt*Y+rt*Q,kt=4/3*(Math.sqrt(2*Lt*At)-At)/(nt*Q-rt*Y),Pt=nt-kt*rt,Ut=rt+kt*nt,ft=Pt,T=-Ut,Kt=R+O,Bt=Math.cos(Kt),xt=Math.sin(Kt);return{x1:A*Math.cos(O),y1:A*Math.sin(O),x2:Pt*Bt-Ut*xt,y2:Pt*xt+Ut*Bt,x3:ft*Bt-T*xt,y3:ft*xt+T*Bt,x4:A*Math.cos(B),y4:A*Math.sin(B)}},$=function(A){return 180*A/Math.PI},ct=function(A,O,B,R,Y,Q){var nt=A+.5*(B-A),rt=O+.5*(R-O),Lt=Y+.5*(B-Y),At=Q+.5*(R-Q),kt=Math.min(A,Y,nt,Lt),Pt=Math.max(A,Y,nt,Lt),Ut=Math.min(O,Q,rt,At),ft=Math.max(O,Q,rt,At);return new h(kt,Ut,Pt-kt,ft-Ut)},pt=function(A,O,B,R,Y,Q,nt,rt){var Lt,At,kt,Pt,Ut,ft,T,Kt,Bt,xt,Nt,It,Ft,Tt,Vt=B-A,Qt=R-O,te=Y-B,ie=Q-R,pe=nt-Y,Wt=rt-Q;for(At=0;At<41;At++)Bt=(T=(kt=A+(Lt=At/40)*Vt)+Lt*((Ut=B+Lt*te)-kt))+Lt*(Ut+Lt*(Y+Lt*pe-Ut)-T),xt=(Kt=(Pt=O+Lt*Qt)+Lt*((ft=R+Lt*ie)-Pt))+Lt*(ft+Lt*(Q+Lt*Wt-ft)-Kt),At==0?(Nt=Bt,It=xt,Ft=Bt,Tt=xt):(Nt=Math.min(Nt,Bt),It=Math.min(It,xt),Ft=Math.max(Ft,Bt),Tt=Math.max(Tt,xt));return new h(Math.round(Nt),Math.round(It),Math.round(Ft-Nt),Math.round(Tt-It))},Ot=function(){if(this.prevLineDash||this.ctx.lineDash.length||this.ctx.lineDashOffset){var A,O,B=(A=this.ctx.lineDash,O=this.ctx.lineDashOffset,JSON.stringify({lineDash:A,lineDashOffset:O}));this.prevLineDash!==B&&(this.pdf.setLineDash(this.ctx.lineDash,this.ctx.lineDashOffset),this.prevLineDash=B)}}})(Rt.API),(function(r){var t=function(o){var u,h,f,g,v,y,N,d,C,F;for(/[^\x00-\xFF]/.test(o),h=[],f=0,g=(o+=u="\0\0\0\0".slice(o.length%4||4)).length;g>f;f+=4)(v=(o.charCodeAt(f)<<24)+(o.charCodeAt(f+1)<<16)+(o.charCodeAt(f+2)<<8)+o.charCodeAt(f+3))!==0?(y=(v=((v=((v=((v=(v-(F=v%85))/85)-(C=v%85))/85)-(d=v%85))/85)-(N=v%85))/85)%85,h.push(y+33,N+33,d+33,C+33,F+33)):h.push(122);return(function(D,P){for(var M=P;M>0;M--)D.pop()})(h,u.length),String.fromCharCode.apply(String,h)+"~>"},n=function(o){var u,h,f,g,v,y=String,N="length",d=255,C="charCodeAt",F="slice",D="replace";for(o[F](-2),o=o[F](0,-2)[D](/\s/g,"")[D]("z","!!!!!"),f=[],g=0,v=(o+=u="uuuuu"[F](o[N]%5||5))[N];v>g;g+=5)h=52200625*(o[C](g)-33)+614125*(o[C](g+1)-33)+7225*(o[C](g+2)-33)+85*(o[C](g+3)-33)+(o[C](g+4)-33),f.push(d&h>>24,d&h>>16,d&h>>8,d&h);return(function(P,M){for(var W=M;W>0;W--)P.pop()})(f,u[N]),y.fromCharCode.apply(y,f)},i=function(o){var u=new RegExp(/^([0-9A-Fa-f]{2})+$/);if((o=o.replace(/\s/g,"")).indexOf(">")!==-1&&(o=o.substr(0,o.indexOf(">"))),o.length%2&&(o+="0"),u.test(o)===!1)return"";for(var h="",f=0;f<o.length;f+=2)h+=String.fromCharCode("0x"+(o[f]+o[f+1]));return h},s=function(o){for(var u=new Uint8Array(o.length),h=o.length;h--;)u[h]=o.charCodeAt(h);return o=(u=uo(u)).reduce((function(f,g){return f+String.fromCharCode(g)}),"")};r.processDataByFilters=function(o,u){var h=0,f=o||"",g=[];for(typeof(u=u||[])=="string"&&(u=[u]),h=0;h<u.length;h+=1)switch(u[h]){case"ASCII85Decode":case"/ASCII85Decode":f=n(f),g.push("/ASCII85Encode");break;case"ASCII85Encode":case"/ASCII85Encode":f=t(f),g.push("/ASCII85Decode");break;case"ASCIIHexDecode":case"/ASCIIHexDecode":f=i(f),g.push("/ASCIIHexEncode");break;case"ASCIIHexEncode":case"/ASCIIHexEncode":f=f.split("").map((function(v){return("0"+v.charCodeAt().toString(16)).slice(-2)})).join("")+">",g.push("/ASCIIHexDecode");break;case"FlateEncode":case"/FlateEncode":f=s(f),g.push("/FlateDecode");break;default:throw new Error('The filter: "'+u[h]+'" is not implemented')}return{data:f,reverseChain:g.reverse().join(" ")}}})(Rt.API),(function(r){r.loadFile=function(t,n,i){return(function(s,o,u){o=o!==!1,u=typeof u=="function"?u:function(){};var h=void 0;try{h=(function(f,g,v){var y=new XMLHttpRequest,N=0,d=function(C){var F=C.length,D=[],P=String.fromCharCode;for(N=0;N<F;N+=1)D.push(P(255&C.charCodeAt(N)));return D.join("")};if(y.open("GET",f,!g),y.overrideMimeType("text/plain; charset=x-user-defined"),g===!1&&(y.onload=function(){y.status===200?v(d(this.responseText)):v(void 0)}),y.send(null),g&&y.status===200)return d(y.responseText)})(s,o,u)}catch{}return h})(t,n,i)},r.loadImageFile=r.loadFile})(Rt.API),(function(r){function t(){return(Ht.html2canvas?Promise.resolve(Ht.html2canvas):import("./R2HQSEAY.js")).catch((function(u){return Promise.reject(new Error("Could not load html2canvas: "+u))})).then((function(u){return u.default?u.default:u}))}function n(){return(Ht.DOMPurify?Promise.resolve(Ht.DOMPurify):import("./AYNLOBV4.js")).catch((function(u){return Promise.reject(new Error("Could not load dompurify: "+u))})).then((function(u){return u.default?u.default:u}))}var i=function(u){var h=ge(u);return h==="undefined"?"undefined":h==="string"||u instanceof String?"string":h==="number"||u instanceof Number?"number":h==="function"||u instanceof Function?"function":u&&u.constructor===Array?"array":u&&u.nodeType===1?"element":h==="object"?"object":"unknown"},s=function(u,h){var f=document.createElement(u);for(var g in h.className&&(f.className=h.className),h.innerHTML&&h.dompurify&&(f.innerHTML=h.dompurify.sanitize(h.innerHTML)),h.style)f.style[g]=h.style[g];return f},o=function u(h){var f=Object.assign(u.convert(Promise.resolve()),JSON.parse(JSON.stringify(u.template))),g=u.convert(Promise.resolve(),f);return g=(g=g.setProgress(1,u,1,[u])).set(h)};(o.prototype=Object.create(Promise.prototype)).constructor=o,o.convert=function(u,h){return u.__proto__=h||o.prototype,u},o.template={prop:{src:null,container:null,overlay:null,canvas:null,img:null,pdf:null,pageSize:null,callback:function(){}},progress:{val:0,state:null,n:0,stack:[]},opt:{filename:"file.pdf",margin:[0,0,0,0],enableLinks:!0,x:0,y:0,html2canvas:{},jsPDF:{},backgroundColor:"transparent"}},o.prototype.from=function(u,h){return this.then((function(){switch(h=h||(function(f){switch(i(f)){case"string":return"string";case"element":return f.nodeName.toLowerCase()==="canvas"?"canvas":"element";default:return"unknown"}})(u)){case"string":return this.then(n).then((function(f){return this.set({src:s("div",{innerHTML:u,dompurify:f})})}));case"element":return this.set({src:u});case"canvas":return this.set({canvas:u});case"img":return this.set({img:u});default:return this.error("Unknown source type.")}}))},o.prototype.to=function(u){switch(u){case"container":return this.toContainer();case"canvas":return this.toCanvas();case"img":return this.toImg();case"pdf":return this.toPdf();default:return this.error("Invalid target.")}},o.prototype.toContainer=function(){return this.thenList([function(){return this.prop.src||this.error("Cannot duplicate - no source HTML.")},function(){return this.prop.pageSize||this.setPageSize()}]).then((function(){var u={position:"relative",display:"inline-block",width:(typeof this.opt.width!="number"||isNaN(this.opt.width)||typeof this.opt.windowWidth!="number"||isNaN(this.opt.windowWidth)?Math.max(this.prop.src.clientWidth,this.prop.src.scrollWidth,this.prop.src.offsetWidth):this.opt.windowWidth)+"px",left:0,right:0,top:0,margin:"auto",backgroundColor:this.opt.backgroundColor},h=(function f(g,v){for(var y=g.nodeType===3?document.createTextNode(g.nodeValue):g.cloneNode(!1),N=g.firstChild;N;N=N.nextSibling)v!==!0&&N.nodeType===1&&N.nodeName==="SCRIPT"||y.appendChild(f(N,v));return g.nodeType===1&&(g.nodeName==="CANVAS"?(y.width=g.width,y.height=g.height,y.getContext("2d").drawImage(g,0,0)):g.nodeName!=="TEXTAREA"&&g.nodeName!=="SELECT"||(y.value=g.value),y.addEventListener("load",(function(){y.scrollTop=g.scrollTop,y.scrollLeft=g.scrollLeft}),!0)),y})(this.prop.src,this.opt.html2canvas.javascriptEnabled);h.tagName==="BODY"&&(u.height=Math.max(document.body.scrollHeight,document.body.offsetHeight,document.documentElement.clientHeight,document.documentElement.scrollHeight,document.documentElement.offsetHeight)+"px"),this.prop.overlay=s("div",{className:"html2pdf__overlay",style:{position:"fixed",overflow:"hidden",zIndex:1e3,left:"-100000px",right:0,bottom:0,top:0}}),this.prop.container=s("div",{className:"html2pdf__container",style:u}),this.prop.container.appendChild(h),this.prop.container.firstChild.appendChild(s("div",{style:{clear:"both",border:"0 none transparent",margin:0,padding:0,height:0}})),this.prop.container.style.float="none",this.prop.overlay.appendChild(this.prop.container),document.body.appendChild(this.prop.overlay),this.prop.container.firstChild.style.position="relative",this.prop.container.height=Math.max(this.prop.container.firstChild.clientHeight,this.prop.container.firstChild.scrollHeight,this.prop.container.firstChild.offsetHeight)+"px"}))},o.prototype.toCanvas=function(){var u=[function(){return document.body.contains(this.prop.container)||this.toContainer()}];return this.thenList(u).then(t).then((function(h){var f=Object.assign({},this.opt.html2canvas);return delete f.onrendered,h(this.prop.container,f)})).then((function(h){(this.opt.html2canvas.onrendered||function(){})(h),this.prop.canvas=h,document.body.removeChild(this.prop.overlay)}))},o.prototype.toContext2d=function(){var u=[function(){return document.body.contains(this.prop.container)||this.toContainer()}];return this.thenList(u).then(t).then((function(h){var f=this.opt.jsPDF,g=this.opt.fontFaces,v=typeof this.opt.width!="number"||isNaN(this.opt.width)||typeof this.opt.windowWidth!="number"||isNaN(this.opt.windowWidth)?1:this.opt.width/this.opt.windowWidth,y=Object.assign({async:!0,allowTaint:!0,scale:v,scrollX:this.opt.scrollX||0,scrollY:this.opt.scrollY||0,backgroundColor:"#ffffff",imageTimeout:15e3,logging:!0,proxy:null,removeContainer:!0,foreignObjectRendering:!1,useCORS:!1},this.opt.html2canvas);if(delete y.onrendered,f.context2d.autoPaging=this.opt.autoPaging===void 0||this.opt.autoPaging,f.context2d.posX=this.opt.x,f.context2d.posY=this.opt.y,f.context2d.margin=this.opt.margin,f.context2d.fontFaces=g,g)for(var N=0;N<g.length;++N){var d=g[N],C=d.src.find((function(F){return F.format==="truetype"}));C&&f.addFont(C.url,d.ref.name,d.ref.style)}return y.windowHeight=y.windowHeight||0,y.windowHeight=y.windowHeight==0?Math.max(this.prop.container.clientHeight,this.prop.container.scrollHeight,this.prop.container.offsetHeight):y.windowHeight,f.context2d.save(!0),h(this.prop.container,y)})).then((function(h){this.opt.jsPDF.context2d.restore(!0),(this.opt.html2canvas.onrendered||function(){})(h),this.prop.canvas=h,document.body.removeChild(this.prop.overlay)}))},o.prototype.toImg=function(){return this.thenList([function(){return this.prop.canvas||this.toCanvas()}]).then((function(){var u=this.prop.canvas.toDataURL("image/"+this.opt.image.type,this.opt.image.quality);this.prop.img=document.createElement("img"),this.prop.img.src=u}))},o.prototype.toPdf=function(){return this.thenList([function(){return this.toContext2d()}]).then((function(){this.prop.pdf=this.prop.pdf||this.opt.jsPDF}))},o.prototype.output=function(u,h,f){return(f=f||"pdf").toLowerCase()==="img"||f.toLowerCase()==="image"?this.outputImg(u,h):this.outputPdf(u,h)},o.prototype.outputPdf=function(u,h){return this.thenList([function(){return this.prop.pdf||this.toPdf()}]).then((function(){return this.prop.pdf.output(u,h)}))},o.prototype.outputImg=function(u){return this.thenList([function(){return this.prop.img||this.toImg()}]).then((function(){switch(u){case void 0:case"img":return this.prop.img;case"datauristring":case"dataurlstring":return this.prop.img.src;case"datauri":case"dataurl":return document.location.href=this.prop.img.src;default:throw'Image output type "'+u+'" is not supported.'}}))},o.prototype.save=function(u){return this.thenList([function(){return this.prop.pdf||this.toPdf()}]).set(u?{filename:u}:null).then((function(){this.prop.pdf.save(this.opt.filename)}))},o.prototype.doCallback=function(){return this.thenList([function(){return this.prop.pdf||this.toPdf()}]).then((function(){this.prop.callback(this.prop.pdf)}))},o.prototype.set=function(u){if(i(u)!=="object")return this;var h=Object.keys(u||{}).map((function(f){if(f in o.template.prop)return function(){this.prop[f]=u[f]};switch(f){case"margin":return this.setMargin.bind(this,u.margin);case"jsPDF":return function(){return this.opt.jsPDF=u.jsPDF,this.setPageSize()};case"pageSize":return this.setPageSize.bind(this,u.pageSize);default:return function(){this.opt[f]=u[f]}}}),this);return this.then((function(){return this.thenList(h)}))},o.prototype.get=function(u,h){return this.then((function(){var f=u in o.template.prop?this.prop[u]:this.opt[u];return h?h(f):f}))},o.prototype.setMargin=function(u){return this.then((function(){switch(i(u)){case"number":u=[u,u,u,u];case"array":if(u.length===2&&(u=[u[0],u[1],u[0],u[1]]),u.length===4)break;default:return this.error("Invalid margin array.")}this.opt.margin=u})).then(this.setPageSize)},o.prototype.setPageSize=function(u){function h(f,g){return Math.floor(f*g/72*96)}return this.then((function(){(u=u||Rt.getPageSize(this.opt.jsPDF)).hasOwnProperty("inner")||(u.inner={width:u.width-this.opt.margin[1]-this.opt.margin[3],height:u.height-this.opt.margin[0]-this.opt.margin[2]},u.inner.px={width:h(u.inner.width,u.k),height:h(u.inner.height,u.k)},u.inner.ratio=u.inner.height/u.inner.width),this.prop.pageSize=u}))},o.prototype.setProgress=function(u,h,f,g){return u!=null&&(this.progress.val=u),h!=null&&(this.progress.state=h),f!=null&&(this.progress.n=f),g!=null&&(this.progress.stack=g),this.progress.ratio=this.progress.val/this.progress.state,this},o.prototype.updateProgress=function(u,h,f,g){return this.setProgress(u?this.progress.val+u:null,h||null,f?this.progress.n+f:null,g?this.progress.stack.concat(g):null)},o.prototype.then=function(u,h){var f=this;return this.thenCore(u,h,(function(g,v){return f.updateProgress(null,null,1,[g]),Promise.prototype.then.call(this,(function(y){return f.updateProgress(null,g),y})).then(g,v).then((function(y){return f.updateProgress(1),y}))}))},o.prototype.thenCore=function(u,h,f){f=f||Promise.prototype.then,u&&(u=u.bind(this)),h&&(h=h.bind(this));var g=Promise.toString().indexOf("[native code]")!==-1&&Promise.name==="Promise"?this:o.convert(Object.assign({},this),Promise.prototype),v=f.call(g,u,h);return o.convert(v,this.__proto__)},o.prototype.thenExternal=function(u,h){return Promise.prototype.then.call(this,u,h)},o.prototype.thenList=function(u){var h=this;return u.forEach((function(f){h=h.thenCore(f)})),h},o.prototype.catch=function(u){u&&(u=u.bind(this));var h=Promise.prototype.catch.call(this,u);return o.convert(h,this)},o.prototype.catchExternal=function(u){return Promise.prototype.catch.call(this,u)},o.prototype.error=function(u){return this.then((function(){throw new Error(u)}))},o.prototype.using=o.prototype.set,o.prototype.saveAs=o.prototype.save,o.prototype.export=o.prototype.output,o.prototype.run=o.prototype.then,Rt.getPageSize=function(u,h,f){if(ge(u)==="object"){var g=u;u=g.orientation,h=g.unit||h,f=g.format||f}h=h||"mm",f=f||"a4",u=(""+(u||"P")).toLowerCase();var v,y=(""+f).toLowerCase(),N={a0:[2383.94,3370.39],a1:[1683.78,2383.94],a2:[1190.55,1683.78],a3:[841.89,1190.55],a4:[595.28,841.89],a5:[419.53,595.28],a6:[297.64,419.53],a7:[209.76,297.64],a8:[147.4,209.76],a9:[104.88,147.4],a10:[73.7,104.88],b0:[2834.65,4008.19],b1:[2004.09,2834.65],b2:[1417.32,2004.09],b3:[1000.63,1417.32],b4:[708.66,1000.63],b5:[498.9,708.66],b6:[354.33,498.9],b7:[249.45,354.33],b8:[175.75,249.45],b9:[124.72,175.75],b10:[87.87,124.72],c0:[2599.37,3676.54],c1:[1836.85,2599.37],c2:[1298.27,1836.85],c3:[918.43,1298.27],c4:[649.13,918.43],c5:[459.21,649.13],c6:[323.15,459.21],c7:[229.61,323.15],c8:[161.57,229.61],c9:[113.39,161.57],c10:[79.37,113.39],dl:[311.81,623.62],letter:[612,792],"government-letter":[576,756],legal:[612,1008],"junior-legal":[576,360],ledger:[1224,792],tabloid:[792,1224],"credit-card":[153,243]};switch(h){case"pt":v=1;break;case"mm":v=72/25.4;break;case"cm":v=72/2.54;break;case"in":v=72;break;case"px":v=.75;break;case"pc":case"em":v=12;break;case"ex":v=6;break;default:throw"Invalid unit: "+h}var d,C=0,F=0;if(N.hasOwnProperty(y))C=N[y][1]/v,F=N[y][0]/v;else try{C=f[1],F=f[0]}catch{throw new Error("Invalid format: "+f)}if(u==="p"||u==="portrait")u="p",F>C&&(d=F,F=C,C=d);else{if(u!=="l"&&u!=="landscape")throw"Invalid orientation: "+u;u="l",C>F&&(d=F,F=C,C=d)}return{width:F,height:C,unit:h,k:v,orientation:u}},r.html=function(u,h){(h=h||{}).callback=h.callback||function(){},h.html2canvas=h.html2canvas||{},h.html2canvas.canvas=h.html2canvas.canvas||this.canvas,h.jsPDF=h.jsPDF||this,h.fontFaces=h.fontFaces?h.fontFaces.map(Os):null;var f=new o(h);return h.worker?f:f.from(u).doCallback()}})(Rt.API),Rt.API.addJS=function(r){return Rl=r,this.internal.events.subscribe("postPutResources",(function(){fo=this.internal.newObject(),this.internal.out("<<"),this.internal.out("/Names [(EmbeddedJS) "+(fo+1)+" 0 R]"),this.internal.out(">>"),this.internal.out("endobj"),ql=this.internal.newObject(),this.internal.out("<<"),this.internal.out("/S /JavaScript"),this.internal.out("/JS ("+Rl+")"),this.internal.out(">>"),this.internal.out("endobj")})),this.internal.events.subscribe("putCatalog",(function(){fo!==void 0&&ql!==void 0&&this.internal.out("/Names <</JavaScript "+fo+" 0 R>>")})),this},(function(r){var t;r.events.push(["postPutResources",function(){var n=this,i=/^(\d+) 0 obj$/;if(this.outline.root.children.length>0)for(var s=n.outline.render().split(/\r\n/),o=0;o<s.length;o++){var u=s[o],h=i.exec(u);if(h!=null){var f=h[1];n.internal.newObjectDeferredBegin(f,!1)}n.internal.write(u)}if(this.outline.createNamedDestinations){var g=this.internal.pages.length,v=[];for(o=0;o<g;o++){var y=n.internal.newObject();v.push(y);var N=n.internal.getPageInfo(o+1);n.internal.write("<< /D["+N.objId+" 0 R /XYZ null null null]>> endobj")}var d=n.internal.newObject();for(n.internal.write("<< /Names [ "),o=0;o<v.length;o++)n.internal.write("(page_"+(o+1)+")"+v[o]+" 0 R");n.internal.write(" ] >>","endobj"),t=n.internal.newObject(),n.internal.write("<< /Dests "+d+" 0 R"),n.internal.write(">>","endobj")}}]),r.events.push(["putCatalog",function(){this.outline.root.children.length>0&&(this.internal.write("/Outlines",this.outline.makeRef(this.outline.root)),this.outline.createNamedDestinations&&this.internal.write("/Names "+t+" 0 R"))}]),r.events.push(["initialized",function(){var n=this;n.outline={createNamedDestinations:!1,root:{children:[]}},n.outline.add=function(i,s,o){var u={title:s,options:o,children:[]};return i==null&&(i=this.root),i.children.push(u),u},n.outline.render=function(){return this.ctx={},this.ctx.val="",this.ctx.pdf=n,this.genIds_r(this.root),this.renderRoot(this.root),this.renderItems(this.root),this.ctx.val},n.outline.genIds_r=function(i){i.id=n.internal.newObjectDeferred();for(var s=0;s<i.children.length;s++)this.genIds_r(i.children[s])},n.outline.renderRoot=function(i){this.objStart(i),this.line("/Type /Outlines"),i.children.length>0&&(this.line("/First "+this.makeRef(i.children[0])),this.line("/Last "+this.makeRef(i.children[i.children.length-1]))),this.line("/Count "+this.count_r({count:0},i)),this.objEnd()},n.outline.renderItems=function(i){for(var s=this.ctx.pdf.internal.getVerticalCoordinateString,o=0;o<i.children.length;o++){var u=i.children[o];this.objStart(u),this.line("/Title "+this.makeString(u.title)),this.line("/Parent "+this.makeRef(i)),o>0&&this.line("/Prev "+this.makeRef(i.children[o-1])),o<i.children.length-1&&this.line("/Next "+this.makeRef(i.children[o+1])),u.children.length>0&&(this.line("/First "+this.makeRef(u.children[0])),this.line("/Last "+this.makeRef(u.children[u.children.length-1])));var h=this.count=this.count_r({count:0},u);if(h>0&&this.line("/Count "+h),u.options&&u.options.pageNumber){var f=n.internal.getPageInfo(u.options.pageNumber);this.line("/Dest ["+f.objId+" 0 R /XYZ 0 "+s(0)+" 0]")}this.objEnd()}for(var g=0;g<i.children.length;g++)this.renderItems(i.children[g])},n.outline.line=function(i){this.ctx.val+=i+`\r
|
43
|
+
`),t}}},createDefaultAppearanceStream:function(r){var t=r.scope.internal.getFont(r.fontName,r.fontStyle).id,n=r.scope.__private__.encodeColorString(r.color);return"/"+t+" "+r.fontSize+" Tf "+n}};Dt.internal={Bezier_C:.551915024494,calculateCross:function(r){var t=Dt.internal.getWidth(r),n=Dt.internal.getHeight(r),i=Math.min(t,n);return{x1:{x:(t-i)/2,y:(n-i)/2+i},x2:{x:(t-i)/2+i,y:(n-i)/2},x3:{x:(t-i)/2,y:(n-i)/2},x4:{x:(t-i)/2+i,y:(n-i)/2+i}}}},Dt.internal.getWidth=function(r){var t=0;return ge(r)==="object"&&(t=Ml(r.Rect[2])),t},Dt.internal.getHeight=function(r){var t=0;return ge(r)==="object"&&(t=Ml(r.Rect[3])),t};var xc=_e.addField=function(r){if(wc(this,r),!(r instanceof zn))throw new Error("Invalid argument passed to jsPDF.addField.");var t;return(t=r).scope.internal.acroformPlugin.printedOut&&(t.scope.internal.acroformPlugin.printedOut=!1,t.scope.internal.acroformPlugin.acroFormDictionaryRoot=null),t.scope.internal.acroformPlugin.acroFormDictionaryRoot.Fields.push(t),r.page=r.scope.internal.getCurrentPageInfo().pageNumber,this};_e.AcroFormChoiceField=Ci,_e.AcroFormListBox=Oi,_e.AcroFormComboBox=ji,_e.AcroFormEditBox=go,_e.AcroFormButton=He,_e.AcroFormPushButton=mo,_e.AcroFormRadioButton=Mi,_e.AcroFormCheckBox=vo,_e.AcroFormTextField=Xr,_e.AcroFormPasswordField=bo,_e.AcroFormAppearance=Dt,_e.AcroForm={ChoiceField:Ci,ListBox:Oi,ComboBox:ji,EditBox:go,Button:He,PushButton:mo,RadioButton:Mi,CheckBox:vo,TextField:Xr,PasswordField:bo,Appearance:Dt},Rt.AcroForm={ChoiceField:Ci,ListBox:Oi,ComboBox:ji,EditBox:go,Button:He,PushButton:mo,RadioButton:Mi,CheckBox:vo,TextField:Xr,PasswordField:bo,Appearance:Dt};var ch=Rt.AcroForm;function Ql(r){return r.reduce((function(t,n,i){return t[n]=i,t}),{})}(function(r){r.__addimage__={};var t="UNKNOWN",n={PNG:[[137,80,78,71]],TIFF:[[77,77,0,42],[73,73,42,0]],JPEG:[[255,216,255,224,void 0,void 0,74,70,73,70,0],[255,216,255,225,void 0,void 0,69,120,105,102,0,0],[255,216,255,219],[255,216,255,238]],JPEG2000:[[0,0,0,12,106,80,32,32]],GIF87a:[[71,73,70,56,55,97]],GIF89a:[[71,73,70,56,57,97]],WEBP:[[82,73,70,70,void 0,void 0,void 0,void 0,87,69,66,80]],BMP:[[66,77],[66,65],[67,73],[67,80],[73,67],[80,84]]},i=r.__addimage__.getImageFileTypeByImageData=function(_,k){var G,E,lt,at,ht,$=t;if((k=k||t)==="RGBA"||_.data!==void 0&&_.data instanceof Uint8ClampedArray&&"height"in _&&"width"in _)return"RGBA";if(yt(_))for(ht in n)for(lt=n[ht],G=0;G<lt.length;G+=1){for(at=!0,E=0;E<lt[G].length;E+=1)if(lt[G][E]!==void 0&<[G][E]!==_[E]){at=!1;break}if(at===!0){$=ht;break}}else for(ht in n)for(lt=n[ht],G=0;G<lt.length;G+=1){for(at=!0,E=0;E<lt[G].length;E+=1)if(lt[G][E]!==void 0&<[G][E]!==_.charCodeAt(E)){at=!1;break}if(at===!0){$=ht;break}}return $===t&&k!==t&&($=k),$},s=function _(k){for(var G=this.internal.write,E=this.internal.putStream,lt=(0,this.internal.getFilters)();lt.indexOf("FlateEncode")!==-1;)lt.splice(lt.indexOf("FlateEncode"),1);k.objectId=this.internal.newObject();var at=[];if(at.push({key:"Type",value:"/XObject"}),at.push({key:"Subtype",value:"/Image"}),at.push({key:"Width",value:k.width}),at.push({key:"Height",value:k.height}),k.colorSpace===D.INDEXED?at.push({key:"ColorSpace",value:"[/Indexed /DeviceRGB "+(k.palette.length/3-1)+" "+("sMask"in k&&k.sMask!==void 0?k.objectId+2:k.objectId+1)+" 0 R]"}):(at.push({key:"ColorSpace",value:"/"+k.colorSpace}),k.colorSpace===D.DEVICE_CMYK&&at.push({key:"Decode",value:"[1 0 1 0 1 0 1 0]"})),at.push({key:"BitsPerComponent",value:k.bitsPerComponent}),"decodeParameters"in k&&k.decodeParameters!==void 0&&at.push({key:"DecodeParms",value:"<<"+k.decodeParameters+">>"}),"transparency"in k&&Array.isArray(k.transparency)){for(var ht="",$=0,ct=k.transparency.length;$<ct;$++)ht+=k.transparency[$]+" "+k.transparency[$]+" ";at.push({key:"Mask",value:"["+ht+"]"})}k.sMask!==void 0&&at.push({key:"SMask",value:k.objectId+1+" 0 R"});var pt=k.filter!==void 0?["/"+k.filter]:void 0;if(E({data:k.data,additionalKeyValues:at,alreadyAppliedFilters:pt,objectId:k.objectId}),G("endobj"),"sMask"in k&&k.sMask!==void 0){var Ot="/Predictor "+k.predictor+" /Colors 1 /BitsPerComponent "+k.bitsPerComponent+" /Columns "+k.width,A={width:k.width,height:k.height,colorSpace:"DeviceGray",bitsPerComponent:k.bitsPerComponent,decodeParameters:Ot,data:k.sMask};"filter"in k&&(A.filter=k.filter),_.call(this,A)}if(k.colorSpace===D.INDEXED){var O=this.internal.newObject();E({data:z(new Uint8Array(k.palette)),objectId:O}),G("endobj")}},o=function(){var _=this.internal.collections.addImage_images;for(var k in _)s.call(this,_[k])},u=function(){var _,k=this.internal.collections.addImage_images,G=this.internal.write;for(var E in k)G("/I"+(_=k[E]).index,_.objectId,"0","R")},h=function(){this.internal.collections.addImage_images||(this.internal.collections.addImage_images={},this.internal.events.subscribe("putResources",o),this.internal.events.subscribe("putXobjectDict",u))},f=function(){var _=this.internal.collections.addImage_images;return h.call(this),_},g=function(){return Object.keys(this.internal.collections.addImage_images).length},v=function(_){return typeof r["process"+_.toUpperCase()]=="function"},y=function(_){return ge(_)==="object"&&_.nodeType===1},N=function(_,k){if(_.nodeName==="IMG"&&_.hasAttribute("src")){var G=""+_.getAttribute("src");if(G.indexOf("data:image/")===0)return ma(unescape(G).split("base64,").pop());var E=r.loadFile(G,!0);if(E!==void 0)return E}if(_.nodeName==="CANVAS"){if(_.width===0||_.height===0)throw new Error("Given canvas must have data. Canvas width: "+_.width+", height: "+_.height);var lt;switch(k){case"PNG":lt="image/png";break;case"WEBP":lt="image/webp";break;case"JPEG":case"JPG":default:lt="image/jpeg"}return ma(_.toDataURL(lt,1).split("base64,").pop())}},d=function(_){var k=this.internal.collections.addImage_images;if(k){for(var G in k)if(_===k[G].alias)return k[G]}},C=function(_,k,G){return _||k||(_=-96,k=-96),_<0&&(_=-1*G.width*72/_/this.internal.scaleFactor),k<0&&(k=-1*G.height*72/k/this.internal.scaleFactor),_===0&&(_=k*G.width/G.height),k===0&&(k=_*G.height/G.width),[_,k]},F=function(_,k,G,E,lt,at){var ht=C.call(this,G,E,lt),$=this.internal.getCoordinateString,ct=this.internal.getVerticalCoordinateString,pt=f.call(this);if(G=ht[0],E=ht[1],pt[lt.index]=lt,at){at*=Math.PI/180;var Ot=Math.cos(at),A=Math.sin(at),O=function(R){return R.toFixed(4)},B=[O(Ot),O(A),O(-1*A),O(Ot),0,0,"cm"]}this.internal.write("q"),at?(this.internal.write([1,"0","0",1,$(_),ct(k+E),"cm"].join(" ")),this.internal.write(B.join(" ")),this.internal.write([$(G),"0","0",$(E),"0","0","cm"].join(" "))):this.internal.write([$(G),"0","0",$(E),$(_),ct(k+E),"cm"].join(" ")),this.isAdvancedAPI()&&this.internal.write([1,0,0,-1,0,0,"cm"].join(" ")),this.internal.write("/I"+lt.index+" Do"),this.internal.write("Q")},D=r.color_spaces={DEVICE_RGB:"DeviceRGB",DEVICE_GRAY:"DeviceGray",DEVICE_CMYK:"DeviceCMYK",CAL_GREY:"CalGray",CAL_RGB:"CalRGB",LAB:"Lab",ICC_BASED:"ICCBased",INDEXED:"Indexed",PATTERN:"Pattern",SEPARATION:"Separation",DEVICE_N:"DeviceN"};r.decode={DCT_DECODE:"DCTDecode",FLATE_DECODE:"FlateDecode",LZW_DECODE:"LZWDecode",JPX_DECODE:"JPXDecode",JBIG2_DECODE:"JBIG2Decode",ASCII85_DECODE:"ASCII85Decode",ASCII_HEX_DECODE:"ASCIIHexDecode",RUN_LENGTH_DECODE:"RunLengthDecode",CCITT_FAX_DECODE:"CCITTFaxDecode"};var P=r.image_compression={NONE:"NONE",FAST:"FAST",MEDIUM:"MEDIUM",SLOW:"SLOW"},M=r.__addimage__.sHashCode=function(_){var k,G,E=0;if(typeof _=="string")for(G=_.length,k=0;k<G;k++)E=(E<<5)-E+_.charCodeAt(k),E|=0;else if(yt(_))for(G=_.byteLength/2,k=0;k<G;k++)E=(E<<5)-E+_[k],E|=0;return E},W=r.__addimage__.validateStringAsBase64=function(_){(_=_||"").toString().trim();var k=!0;return _.length===0&&(k=!1),_.length%4!=0&&(k=!1),/^[A-Za-z0-9+/]+$/.test(_.substr(0,_.length-2))===!1&&(k=!1),/^[A-Za-z0-9/][A-Za-z0-9+/]|[A-Za-z0-9+/]=|==$/.test(_.substr(-2))===!1&&(k=!1),k},tt=r.__addimage__.extractImageFromDataUrl=function(_){if(_==null||!(_=_.trim()).startsWith("data:"))return null;var k=_.indexOf(",");return k<0?null:_.substring(0,k).trim().endsWith("base64")?_.substring(k+1):null},ot=r.__addimage__.supportsArrayBuffer=function(){return typeof ArrayBuffer<"u"&&typeof Uint8Array<"u"};r.__addimage__.isArrayBuffer=function(_){return ot()&&_ instanceof ArrayBuffer};var yt=r.__addimage__.isArrayBufferView=function(_){return ot()&&typeof Uint32Array<"u"&&(_ instanceof Int8Array||_ instanceof Uint8Array||typeof Uint8ClampedArray<"u"&&_ instanceof Uint8ClampedArray||_ instanceof Int16Array||_ instanceof Uint16Array||_ instanceof Int32Array||_ instanceof Uint32Array||_ instanceof Float32Array||_ instanceof Float64Array)},et=r.__addimage__.binaryStringToUint8Array=function(_){for(var k=_.length,G=new Uint8Array(k),E=0;E<k;E++)G[E]=_.charCodeAt(E);return G},z=r.__addimage__.arrayBufferToBinaryString=function(_){for(var k="",G=yt(_)?_:new Uint8Array(_),E=0;E<G.length;E+=8192)k+=String.fromCharCode.apply(null,G.subarray(E,E+8192));return k};r.addImage=function(){var _,k,G,E,lt,at,ht,$,ct;if(typeof arguments[1]=="number"?(k=t,G=arguments[1],E=arguments[2],lt=arguments[3],at=arguments[4],ht=arguments[5],$=arguments[6],ct=arguments[7]):(k=arguments[1],G=arguments[2],E=arguments[3],lt=arguments[4],at=arguments[5],ht=arguments[6],$=arguments[7],ct=arguments[8]),ge(_=arguments[0])==="object"&&!y(_)&&"imageData"in _){var pt=_;_=pt.imageData,k=pt.format||k||t,G=pt.x||G||0,E=pt.y||E||0,lt=pt.w||pt.width||lt,at=pt.h||pt.height||at,ht=pt.alias||ht,$=pt.compression||$,ct=pt.rotation||pt.angle||ct}var Ot=this.internal.getFilters();if($===void 0&&Ot.indexOf("FlateEncode")!==-1&&($="SLOW"),isNaN(G)||isNaN(E))throw new Error("Invalid coordinates passed to jsPDF.addImage");h.call(this);var A=it.call(this,_,k,ht,$);return F.call(this,G,E,lt,at,A,ct),this};var it=function(_,k,G,E){var lt,at,ht;if(typeof _=="string"&&i(_)===t){_=unescape(_);var $=dt(_,!1);($!==""||($=r.loadFile(_,!0))!==void 0)&&(_=$)}if(y(_)&&(_=N(_,k)),k=i(_,k),!v(k))throw new Error("addImage does not support files of type '"+k+"', please ensure that a plugin for '"+k+"' support is added.");if(((ht=G)==null||ht.length===0)&&(G=(function(ct){return typeof ct=="string"||yt(ct)?M(ct):yt(ct.data)?M(ct.data):null})(_)),(lt=d.call(this,G))||(ot()&&(_ instanceof Uint8Array||k==="RGBA"||(at=_,_=et(_))),lt=this["process"+k.toUpperCase()](_,g.call(this),G,(function(ct){return ct&&typeof ct=="string"&&(ct=ct.toUpperCase()),ct in r.image_compression?ct:P.NONE})(E),at)),!lt)throw new Error("An unknown error occurred whilst processing the image.");return lt},dt=r.__addimage__.convertBase64ToBinaryString=function(_,k){k=typeof k!="boolean"||k;var G,E="";if(typeof _=="string"){var lt;G=(lt=tt(_))!==null&<!==void 0?lt:_;try{E=ma(G)}catch(at){if(k)throw W(G)?new Error("atob-Error in jsPDF.convertBase64ToBinaryString "+at.message):new Error("Supplied Data is not a valid base64-String jsPDF.convertBase64ToBinaryString ")}}return E};r.getImageProperties=function(_){var k,G,E="";if(y(_)&&(_=N(_)),typeof _=="string"&&i(_)===t&&((E=dt(_,!1))===""&&(E=r.loadFile(_)||""),_=E),G=i(_),!v(G))throw new Error("addImage does not support files of type '"+G+"', please ensure that a plugin for '"+G+"' support is added.");if(!ot()||_ instanceof Uint8Array||(_=et(_)),!(k=this["process"+G.toUpperCase()](_)))throw new Error("An unknown error occurred whilst processing the image");return k.fileType=G,k}})(Rt.API),(function(r){var t=function(n){if(n!==void 0&&n!="")return!0};Rt.API.events.push(["addPage",function(n){this.internal.getPageInfo(n.pageNumber).pageContext.annotations=[]}]),r.events.push(["putPage",function(n){for(var i,s,o,u=this.internal.getCoordinateString,h=this.internal.getVerticalCoordinateString,f=this.internal.getPageInfoByObjId(n.objId),g=n.pageContext.annotations,v=!1,y=0;y<g.length&&!v;y++)switch((i=g[y]).type){case"link":(t(i.options.url)||t(i.options.pageNumber))&&(v=!0);break;case"reference":case"text":case"freetext":v=!0}if(v!=0){this.internal.write("/Annots [");for(var N=0;N<g.length;N++){i=g[N];var d=this.internal.pdfEscape,C=this.internal.getEncryptor(n.objId);switch(i.type){case"reference":this.internal.write(" "+i.object.objId+" 0 R ");break;case"text":var F=this.internal.newAdditionalObject(),D=this.internal.newAdditionalObject(),P=this.internal.getEncryptor(F.objId),M=i.title||"Note";o="<</Type /Annot /Subtype /Text "+(s="/Rect ["+u(i.bounds.x)+" "+h(i.bounds.y+i.bounds.h)+" "+u(i.bounds.x+i.bounds.w)+" "+h(i.bounds.y)+"] ")+"/Contents ("+d(P(i.contents))+")",o+=" /Popup "+D.objId+" 0 R",o+=" /P "+f.objId+" 0 R",o+=" /T ("+d(P(M))+") >>",F.content=o;var W=F.objId+" 0 R";o="<</Type /Annot /Subtype /Popup "+(s="/Rect ["+u(i.bounds.x+30)+" "+h(i.bounds.y+i.bounds.h)+" "+u(i.bounds.x+i.bounds.w+30)+" "+h(i.bounds.y)+"] ")+" /Parent "+W,i.open&&(o+=" /Open true"),o+=" >>",D.content=o,this.internal.write(F.objId,"0 R",D.objId,"0 R");break;case"freetext":s="/Rect ["+u(i.bounds.x)+" "+h(i.bounds.y)+" "+u(i.bounds.x+i.bounds.w)+" "+h(i.bounds.y+i.bounds.h)+"] ";var tt=i.color||"#000000";o="<</Type /Annot /Subtype /FreeText "+s+"/Contents ("+d(C(i.contents))+")",o+=" /DS(font: Helvetica,sans-serif 12.0pt; text-align:left; color:#"+tt+")",o+=" /Border [0 0 0]",o+=" >>",this.internal.write(o);break;case"link":if(i.options.name){var ot=this.annotations._nameMap[i.options.name];i.options.pageNumber=ot.page,i.options.top=ot.y}else i.options.top||(i.options.top=0);if(s="/Rect ["+i.finalBounds.x+" "+i.finalBounds.y+" "+i.finalBounds.w+" "+i.finalBounds.h+"] ",o="",i.options.url)o="<</Type /Annot /Subtype /Link "+s+"/Border [0 0 0] /A <</S /URI /URI ("+d(C(i.options.url))+") >>";else if(i.options.pageNumber)switch(o="<</Type /Annot /Subtype /Link "+s+"/Border [0 0 0] /Dest ["+this.internal.getPageInfo(i.options.pageNumber).objId+" 0 R",i.options.magFactor=i.options.magFactor||"XYZ",i.options.magFactor){case"Fit":o+=" /Fit]";break;case"FitH":o+=" /FitH "+i.options.top+"]";break;case"FitV":i.options.left=i.options.left||0,o+=" /FitV "+i.options.left+"]";break;case"XYZ":default:var yt=h(i.options.top);i.options.left=i.options.left||0,i.options.zoom===void 0&&(i.options.zoom=0),o+=" /XYZ "+i.options.left+" "+yt+" "+i.options.zoom+"]"}o!=""&&(o+=" >>",this.internal.write(o))}}this.internal.write("]")}}]),r.createAnnotation=function(n){var i=this.internal.getCurrentPageInfo();switch(n.type){case"link":this.link(n.bounds.x,n.bounds.y,n.bounds.w,n.bounds.h,n);break;case"text":case"freetext":i.pageContext.annotations.push(n)}},r.link=function(n,i,s,o,u){var h=this.internal.getCurrentPageInfo(),f=this.internal.getCoordinateString,g=this.internal.getVerticalCoordinateString;h.pageContext.annotations.push({finalBounds:{x:f(n),y:g(i),w:f(n+s),h:g(i+o)},options:u,type:"link"})},r.textWithLink=function(n,i,s,o){var u,h,f=this.getTextWidth(n),g=this.internal.getLineHeight()/this.internal.scaleFactor;if(o.maxWidth!==void 0){h=o.maxWidth;var v=this.splitTextToSize(n,h).length;u=Math.ceil(g*v)}else h=f,u=g;return this.text(n,i,s,o),s+=.2*g,o.align==="center"&&(i-=f/2),o.align==="right"&&(i-=f),this.link(i,s-g,h,u,o),f},r.getTextWidth=function(n){var i=this.internal.getFontSize();return this.getStringUnitWidth(n)*i/this.internal.scaleFactor}})(Rt.API),(function(r){var t={1569:[65152],1570:[65153,65154],1571:[65155,65156],1572:[65157,65158],1573:[65159,65160],1574:[65161,65162,65163,65164],1575:[65165,65166],1576:[65167,65168,65169,65170],1577:[65171,65172],1578:[65173,65174,65175,65176],1579:[65177,65178,65179,65180],1580:[65181,65182,65183,65184],1581:[65185,65186,65187,65188],1582:[65189,65190,65191,65192],1583:[65193,65194],1584:[65195,65196],1585:[65197,65198],1586:[65199,65200],1587:[65201,65202,65203,65204],1588:[65205,65206,65207,65208],1589:[65209,65210,65211,65212],1590:[65213,65214,65215,65216],1591:[65217,65218,65219,65220],1592:[65221,65222,65223,65224],1593:[65225,65226,65227,65228],1594:[65229,65230,65231,65232],1601:[65233,65234,65235,65236],1602:[65237,65238,65239,65240],1603:[65241,65242,65243,65244],1604:[65245,65246,65247,65248],1605:[65249,65250,65251,65252],1606:[65253,65254,65255,65256],1607:[65257,65258,65259,65260],1608:[65261,65262],1609:[65263,65264,64488,64489],1610:[65265,65266,65267,65268],1649:[64336,64337],1655:[64477],1657:[64358,64359,64360,64361],1658:[64350,64351,64352,64353],1659:[64338,64339,64340,64341],1662:[64342,64343,64344,64345],1663:[64354,64355,64356,64357],1664:[64346,64347,64348,64349],1667:[64374,64375,64376,64377],1668:[64370,64371,64372,64373],1670:[64378,64379,64380,64381],1671:[64382,64383,64384,64385],1672:[64392,64393],1676:[64388,64389],1677:[64386,64387],1678:[64390,64391],1681:[64396,64397],1688:[64394,64395],1700:[64362,64363,64364,64365],1702:[64366,64367,64368,64369],1705:[64398,64399,64400,64401],1709:[64467,64468,64469,64470],1711:[64402,64403,64404,64405],1713:[64410,64411,64412,64413],1715:[64406,64407,64408,64409],1722:[64414,64415],1723:[64416,64417,64418,64419],1726:[64426,64427,64428,64429],1728:[64420,64421],1729:[64422,64423,64424,64425],1733:[64480,64481],1734:[64473,64474],1735:[64471,64472],1736:[64475,64476],1737:[64482,64483],1739:[64478,64479],1740:[64508,64509,64510,64511],1744:[64484,64485,64486,64487],1746:[64430,64431],1747:[64432,64433]},n={65247:{65154:65269,65156:65271,65160:65273,65166:65275},65248:{65154:65270,65156:65272,65160:65274,65166:65276},65165:{65247:{65248:{65258:65010}}},1617:{1612:64606,1613:64607,1614:64608,1615:64609,1616:64610}},i={1612:64606,1613:64607,1614:64608,1615:64609,1616:64610},s=[1570,1571,1573,1575];r.__arabicParser__={};var o=r.__arabicParser__.isInArabicSubstitutionA=function(F){return t[F.charCodeAt(0)]!==void 0},u=r.__arabicParser__.isArabicLetter=function(F){return typeof F=="string"&&/^[\u0600-\u06FF\u0750-\u077F\u08A0-\u08FF\uFB50-\uFDFF\uFE70-\uFEFF]+$/.test(F)},h=r.__arabicParser__.isArabicEndLetter=function(F){return u(F)&&o(F)&&t[F.charCodeAt(0)].length<=2},f=r.__arabicParser__.isArabicAlfLetter=function(F){return u(F)&&s.indexOf(F.charCodeAt(0))>=0};r.__arabicParser__.arabicLetterHasIsolatedForm=function(F){return u(F)&&o(F)&&t[F.charCodeAt(0)].length>=1};var g=r.__arabicParser__.arabicLetterHasFinalForm=function(F){return u(F)&&o(F)&&t[F.charCodeAt(0)].length>=2};r.__arabicParser__.arabicLetterHasInitialForm=function(F){return u(F)&&o(F)&&t[F.charCodeAt(0)].length>=3};var v=r.__arabicParser__.arabicLetterHasMedialForm=function(F){return u(F)&&o(F)&&t[F.charCodeAt(0)].length==4},y=r.__arabicParser__.resolveLigatures=function(F){var D=0,P=n,M="",W=0;for(D=0;D<F.length;D+=1)P[F.charCodeAt(D)]!==void 0?(W++,typeof(P=P[F.charCodeAt(D)])=="number"&&(M+=String.fromCharCode(P),P=n,W=0),D===F.length-1&&(P=n,M+=F.charAt(D-(W-1)),D-=W-1,W=0)):(P=n,M+=F.charAt(D-W),D-=W,W=0);return M};r.__arabicParser__.isArabicDiacritic=function(F){return F!==void 0&&i[F.charCodeAt(0)]!==void 0};var N=r.__arabicParser__.getCorrectForm=function(F,D,P){return u(F)?o(F)===!1?-1:!g(F)||!u(D)&&!u(P)||!u(P)&&h(D)||h(F)&&!u(D)||h(F)&&f(D)||h(F)&&h(D)?0:v(F)&&u(D)&&!h(D)&&u(P)&&g(P)?3:h(F)||!u(P)?1:2:-1},d=function(F){var D=0,P=0,M=0,W="",tt="",ot="",yt=(F=F||"").split("\\s+"),et=[];for(D=0;D<yt.length;D+=1){for(et.push(""),P=0;P<yt[D].length;P+=1)W=yt[D][P],tt=yt[D][P-1],ot=yt[D][P+1],u(W)?(M=N(W,tt,ot),et[D]+=M!==-1?String.fromCharCode(t[W.charCodeAt(0)][M]):W):et[D]+=W;et[D]=y(et[D])}return et.join(" ")},C=r.__arabicParser__.processArabic=r.processArabic=function(){var F,D=typeof arguments[0]=="string"?arguments[0]:arguments[0].text,P=[];if(Array.isArray(D)){var M=0;for(P=[],M=0;M<D.length;M+=1)Array.isArray(D[M])?P.push([d(D[M][0]),D[M][1],D[M][2]]):P.push([d(D[M])]);F=P}else F=d(D);return typeof arguments[0]=="string"?F:(arguments[0].text=F,arguments[0])};r.events.push(["preProcessText",C])})(Rt.API),Rt.API.autoPrint=function(r){var t;switch((r=r||{}).variant=r.variant||"non-conform",r.variant){case"javascript":this.addJS("print({});");break;case"non-conform":default:this.internal.events.subscribe("postPutResources",(function(){t=this.internal.newObject(),this.internal.out("<<"),this.internal.out("/S /Named"),this.internal.out("/Type /Action"),this.internal.out("/N /Print"),this.internal.out(">>"),this.internal.out("endobj")})),this.internal.events.subscribe("putCatalog",(function(){this.internal.out("/OpenAction "+t+" 0 R")}))}return this},(function(r){var t=function(){var n=void 0;Object.defineProperty(this,"pdf",{get:function(){return n},set:function(h){n=h}});var i=150;Object.defineProperty(this,"width",{get:function(){return i},set:function(h){i=isNaN(h)||Number.isInteger(h)===!1||h<0?150:h,this.getContext("2d").pageWrapXEnabled&&(this.getContext("2d").pageWrapX=i+1)}});var s=300;Object.defineProperty(this,"height",{get:function(){return s},set:function(h){s=isNaN(h)||Number.isInteger(h)===!1||h<0?300:h,this.getContext("2d").pageWrapYEnabled&&(this.getContext("2d").pageWrapY=s+1)}});var o=[];Object.defineProperty(this,"childNodes",{get:function(){return o},set:function(h){o=h}});var u={};Object.defineProperty(this,"style",{get:function(){return u},set:function(h){u=h}}),Object.defineProperty(this,"parentNode",{})};t.prototype.getContext=function(n,i){var s;if((n=n||"2d")!=="2d")return null;for(s in i)this.pdf.context2d.hasOwnProperty(s)&&(this.pdf.context2d[s]=i[s]);return this.pdf.context2d._canvas=this,this.pdf.context2d},t.prototype.toDataURL=function(){throw new Error("toDataURL is not implemented.")},r.events.push(["initialized",function(){this.canvas=new t,this.canvas.pdf=this}])})(Rt.API),(function(r){var t={left:0,top:0,bottom:0,right:0},n=!1,i=function(){this.internal.__cell__===void 0&&(this.internal.__cell__={},this.internal.__cell__.padding=3,this.internal.__cell__.headerFunction=void 0,this.internal.__cell__.margins=Object.assign({},t),this.internal.__cell__.margins.width=this.getPageWidth(),s.call(this))},s=function(){this.internal.__cell__.lastCell=new o,this.internal.__cell__.pages=1},o=function(){var f=arguments[0];Object.defineProperty(this,"x",{enumerable:!0,get:function(){return f},set:function(F){f=F}});var g=arguments[1];Object.defineProperty(this,"y",{enumerable:!0,get:function(){return g},set:function(F){g=F}});var v=arguments[2];Object.defineProperty(this,"width",{enumerable:!0,get:function(){return v},set:function(F){v=F}});var y=arguments[3];Object.defineProperty(this,"height",{enumerable:!0,get:function(){return y},set:function(F){y=F}});var N=arguments[4];Object.defineProperty(this,"text",{enumerable:!0,get:function(){return N},set:function(F){N=F}});var d=arguments[5];Object.defineProperty(this,"lineNumber",{enumerable:!0,get:function(){return d},set:function(F){d=F}});var C=arguments[6];return Object.defineProperty(this,"align",{enumerable:!0,get:function(){return C},set:function(F){C=F}}),this};o.prototype.clone=function(){return new o(this.x,this.y,this.width,this.height,this.text,this.lineNumber,this.align)},o.prototype.toArray=function(){return[this.x,this.y,this.width,this.height,this.text,this.lineNumber,this.align]},r.setHeaderFunction=function(f){return i.call(this),this.internal.__cell__.headerFunction=typeof f=="function"?f:void 0,this},r.getTextDimensions=function(f,g){i.call(this);var v=(g=g||{}).fontSize||this.getFontSize(),y=g.font||this.getFont(),N=g.scaleFactor||this.internal.scaleFactor,d=0,C=0,F=0,D=this;if(!Array.isArray(f)&&typeof f!="string"){if(typeof f!="number")throw new Error("getTextDimensions expects text-parameter to be of type String or type Number or an Array of Strings.");f=String(f)}var P=g.maxWidth;P>0?typeof f=="string"?f=this.splitTextToSize(f,P):Object.prototype.toString.call(f)==="[object Array]"&&(f=f.reduce((function(W,tt){return W.concat(D.splitTextToSize(tt,P))}),[])):f=Array.isArray(f)?f:[f];for(var M=0;M<f.length;M++)d<(F=this.getStringUnitWidth(f[M],{font:y})*v)&&(d=F);return d!==0&&(C=f.length),{w:d/=N,h:Math.max((C*v*this.getLineHeightFactor()-v*(this.getLineHeightFactor()-1))/N,0)}},r.cellAddPage=function(){i.call(this),this.addPage();var f=this.internal.__cell__.margins||t;return this.internal.__cell__.lastCell=new o(f.left,f.top,void 0,void 0),this.internal.__cell__.pages+=1,this};var u=r.cell=function(){var f;f=arguments[0]instanceof o?arguments[0]:new o(arguments[0],arguments[1],arguments[2],arguments[3],arguments[4],arguments[5]),i.call(this);var g=this.internal.__cell__.lastCell,v=this.internal.__cell__.padding,y=this.internal.__cell__.margins||t,N=this.internal.__cell__.tableHeaderRow,d=this.internal.__cell__.printHeaders;return g.lineNumber!==void 0&&(g.lineNumber===f.lineNumber?(f.x=(g.x||0)+(g.width||0),f.y=g.y||0):g.y+g.height+f.height+y.bottom>this.getPageHeight()?(this.cellAddPage(),f.y=y.top,d&&N&&(this.printHeaderRow(f.lineNumber,!0),f.y+=N[0].height)):f.y=g.y+g.height||f.y),f.text[0]!==void 0&&(this.rect(f.x,f.y,f.width,f.height,n===!0?"FD":void 0),f.align==="right"?this.text(f.text,f.x+f.width-v,f.y+v,{align:"right",baseline:"top"}):f.align==="center"?this.text(f.text,f.x+f.width/2,f.y+v,{align:"center",baseline:"top",maxWidth:f.width-v-v}):this.text(f.text,f.x+v,f.y+v,{align:"left",baseline:"top",maxWidth:f.width-v-v})),this.internal.__cell__.lastCell=f,this};r.table=function(f,g,v,y,N){if(i.call(this),!v)throw new Error("No data for PDF table.");var d,C,F,D,P=[],M=[],W=[],tt={},ot={},yt=[],et=[],z=(N=N||{}).autoSize||!1,it=N.printHeaders!==!1,dt=N.css&&N.css["font-size"]!==void 0?16*N.css["font-size"]:N.fontSize||12,_=N.margins||Object.assign({width:this.getPageWidth()},t),k=typeof N.padding=="number"?N.padding:3,G=N.headerBackgroundColor||"#c8c8c8",E=N.headerTextColor||"#000";if(s.call(this),this.internal.__cell__.printHeaders=it,this.internal.__cell__.margins=_,this.internal.__cell__.table_font_size=dt,this.internal.__cell__.padding=k,this.internal.__cell__.headerBackgroundColor=G,this.internal.__cell__.headerTextColor=E,this.setFontSize(dt),y==null)M=P=Object.keys(v[0]),W=P.map((function(){return"left"}));else if(Array.isArray(y)&&ge(y[0])==="object")for(P=y.map((function(pt){return pt.name})),M=y.map((function(pt){return pt.prompt||pt.name||""})),W=y.map((function(pt){return pt.align||"left"})),d=0;d<y.length;d+=1)ot[y[d].name]=y[d].width*(19.049976/25.4);else Array.isArray(y)&&typeof y[0]=="string"&&(M=P=y,W=P.map((function(){return"left"})));if(z||Array.isArray(y)&&typeof y[0]=="string")for(d=0;d<P.length;d+=1){for(tt[D=P[d]]=v.map((function(pt){return pt[D]})),this.setFont(void 0,"bold"),yt.push(this.getTextDimensions(M[d],{fontSize:this.internal.__cell__.table_font_size,scaleFactor:this.internal.scaleFactor}).w),C=tt[D],this.setFont(void 0,"normal"),F=0;F<C.length;F+=1)yt.push(this.getTextDimensions(C[F],{fontSize:this.internal.__cell__.table_font_size,scaleFactor:this.internal.scaleFactor}).w);ot[D]=Math.max.apply(null,yt)+k+k,yt=[]}if(it){var lt={};for(d=0;d<P.length;d+=1)lt[P[d]]={},lt[P[d]].text=M[d],lt[P[d]].align=W[d];var at=h.call(this,lt,ot);et=P.map((function(pt){return new o(f,g,ot[pt],at,lt[pt].text,void 0,lt[pt].align)})),this.setTableHeaderRow(et),this.printHeaderRow(1,!1)}var ht=y.reduce((function(pt,Ot){return pt[Ot.name]=Ot.align,pt}),{});for(d=0;d<v.length;d+=1){"rowStart"in N&&N.rowStart instanceof Function&&N.rowStart({row:d,data:v[d]},this);var $=h.call(this,v[d],ot);for(F=0;F<P.length;F+=1){var ct=v[d][P[F]];"cellStart"in N&&N.cellStart instanceof Function&&N.cellStart({row:d,col:F,data:ct},this),u.call(this,new o(f,g,ot[P[F]],$,ct,d+2,ht[P[F]]))}}return this.internal.__cell__.table_x=f,this.internal.__cell__.table_y=g,this};var h=function(f,g){var v=this.internal.__cell__.padding,y=this.internal.__cell__.table_font_size,N=this.internal.scaleFactor;return Object.keys(f).map((function(d){var C=f[d];return this.splitTextToSize(C.hasOwnProperty("text")?C.text:C,g[d]-v-v)}),this).map((function(d){return this.getLineHeightFactor()*d.length*y/N+v+v}),this).reduce((function(d,C){return Math.max(d,C)}),0)};r.setTableHeaderRow=function(f){i.call(this),this.internal.__cell__.tableHeaderRow=f},r.printHeaderRow=function(f,g){if(i.call(this),!this.internal.__cell__.tableHeaderRow)throw new Error("Property tableHeaderRow does not exist.");var v;if(n=!0,typeof this.internal.__cell__.headerFunction=="function"){var y=this.internal.__cell__.headerFunction(this,this.internal.__cell__.pages);this.internal.__cell__.lastCell=new o(y[0],y[1],y[2],y[3],void 0,-1)}this.setFont(void 0,"bold");for(var N=[],d=0;d<this.internal.__cell__.tableHeaderRow.length;d+=1){v=this.internal.__cell__.tableHeaderRow[d].clone(),g&&(v.y=this.internal.__cell__.margins.top||0,N.push(v)),v.lineNumber=f;var C=this.getTextColor();this.setTextColor(this.internal.__cell__.headerTextColor),this.setFillColor(this.internal.__cell__.headerBackgroundColor),u.call(this,v),this.setTextColor(C)}N.length>0&&this.setTableHeaderRow(N),this.setFont(void 0,"normal"),n=!1}})(Rt.API);var tu={italic:["italic","oblique","normal"],oblique:["oblique","italic","normal"],normal:["normal","oblique","italic"]},eu=["ultra-condensed","extra-condensed","condensed","semi-condensed","normal","semi-expanded","expanded","extra-expanded","ultra-expanded"],Cs=Ql(eu),nu=[100,200,300,400,500,600,700,800,900],Ac=Ql(nu);function Os(r){var t=r.family.replace(/"|'/g,"").toLowerCase(),n=(function(o){return tu[o=o||"normal"]?o:"normal"})(r.style),i=(function(o){if(!o)return 400;if(typeof o=="number")return o>=100&&o<=900&&o%100==0?o:400;if(/^\d00$/.test(o))return parseInt(o);switch(o){case"bold":return 700;case"normal":default:return 400}})(r.weight),s=(function(o){return typeof Cs[o=o||"normal"]=="number"?o:"normal"})(r.stretch);return{family:t,style:n,weight:i,stretch:s,src:r.src||[],ref:r.ref||{name:t,style:[s,n,i].join(" ")}}}function Dl(r,t,n,i){var s;for(s=n;s>=0&&s<t.length;s+=i)if(r[t[s]])return r[t[s]];for(s=n;s>=0&&s<t.length;s-=i)if(r[t[s]])return r[t[s]]}var Lc={"sans-serif":"helvetica",fixed:"courier",monospace:"courier",terminal:"courier",cursive:"times",fantasy:"times",serif:"times"},Bl={caption:"times",icon:"times",menu:"times","message-box":"times","small-caption":"times","status-bar":"times"};function Tl(r){return[r.stretch,r.style,r.weight,r.family].join(" ")}function Nc(r,t,n){for(var i=(n=n||{}).defaultFontFamily||"times",s=Object.assign({},Lc,n.genericFontFamilies||{}),o=null,u=null,h=0;h<t.length;++h)if(s[(o=Os(t[h])).family]&&(o.family=s[o.family]),r.hasOwnProperty(o.family)){u=r[o.family];break}if(!(u=u||r[i]))throw new Error("Could not find a font-family for the rule '"+Tl(o)+"' and default family '"+i+"'.");if(u=(function(f,g){if(g[f])return g[f];var v=Cs[f],y=v<=Cs.normal?-1:1,N=Dl(g,eu,v,y);if(!N)throw new Error("Could not find a matching font-stretch value for "+f);return N})(o.stretch,u),u=(function(f,g){if(g[f])return g[f];for(var v=tu[f],y=0;y<v.length;++y)if(g[v[y]])return g[v[y]];throw new Error("Could not find a matching font-style for "+f)})(o.style,u),!(u=(function(f,g){if(g[f])return g[f];if(f===400&&g[500])return g[500];if(f===500&&g[400])return g[400];var v=Ac[f],y=Dl(g,nu,v,f<400?-1:1);if(!y)throw new Error("Could not find a matching font-weight for value "+f);return y})(o.weight,u)))throw new Error("Failed to resolve a font for the rule '"+Tl(o)+"'.");return u}function El(r){return r.trimLeft()}function Sc(r,t){for(var n=0;n<r.length;){if(r.charAt(n)===t)return[r.substring(0,n),r.substring(n+1)];n+=1}return null}function Pc(r){var t=r.match(/^(-[a-z_]|[a-z_])[a-z0-9_-]*/i);return t===null?null:[t[0],r.substring(t[0].length)]}var fo,ql,Rl,Ss=["times"];(function(r){var t,n,i,s,o,u,h,f,g,v=function(A){return A=A||{},this.isStrokeTransparent=A.isStrokeTransparent||!1,this.strokeOpacity=A.strokeOpacity||1,this.strokeStyle=A.strokeStyle||"#000000",this.fillStyle=A.fillStyle||"#000000",this.isFillTransparent=A.isFillTransparent||!1,this.fillOpacity=A.fillOpacity||1,this.font=A.font||"10px sans-serif",this.textBaseline=A.textBaseline||"alphabetic",this.textAlign=A.textAlign||"left",this.lineWidth=A.lineWidth||1,this.lineJoin=A.lineJoin||"miter",this.lineCap=A.lineCap||"butt",this.path=A.path||[],this.transform=A.transform!==void 0?A.transform.clone():new f,this.globalCompositeOperation=A.globalCompositeOperation||"normal",this.globalAlpha=A.globalAlpha||1,this.clip_path=A.clip_path||[],this.currentPoint=A.currentPoint||new u,this.miterLimit=A.miterLimit||10,this.lastPoint=A.lastPoint||new u,this.lineDashOffset=A.lineDashOffset||0,this.lineDash=A.lineDash||[],this.margin=A.margin||[0,0,0,0],this.prevPageLastElemOffset=A.prevPageLastElemOffset||0,this.ignoreClearRect=typeof A.ignoreClearRect!="boolean"||A.ignoreClearRect,this};r.events.push(["initialized",function(){this.context2d=new y(this),t=this.internal.f2,n=this.internal.getCoordinateString,i=this.internal.getVerticalCoordinateString,s=this.internal.getHorizontalCoordinate,o=this.internal.getVerticalCoordinate,u=this.internal.Point,h=this.internal.Rectangle,f=this.internal.Matrix,g=new v}]);var y=function(A){Object.defineProperty(this,"canvas",{get:function(){return{parentNode:!1,style:!1}}});var O=A;Object.defineProperty(this,"pdf",{get:function(){return O}});var B=!1;Object.defineProperty(this,"pageWrapXEnabled",{get:function(){return B},set:function(ft){B=!!ft}});var R=!1;Object.defineProperty(this,"pageWrapYEnabled",{get:function(){return R},set:function(ft){R=!!ft}});var Y=0;Object.defineProperty(this,"posX",{get:function(){return Y},set:function(ft){isNaN(ft)||(Y=ft)}});var Q=0;Object.defineProperty(this,"posY",{get:function(){return Q},set:function(ft){isNaN(ft)||(Q=ft)}}),Object.defineProperty(this,"margin",{get:function(){return g.margin},set:function(ft){var T;typeof ft=="number"?T=[ft,ft,ft,ft]:((T=new Array(4))[0]=ft[0],T[1]=ft.length>=2?ft[1]:T[0],T[2]=ft.length>=3?ft[2]:T[0],T[3]=ft.length>=4?ft[3]:T[1]),g.margin=T}});var nt=!1;Object.defineProperty(this,"autoPaging",{get:function(){return nt},set:function(ft){nt=ft}});var rt=0;Object.defineProperty(this,"lastBreak",{get:function(){return rt},set:function(ft){rt=ft}});var Lt=[];Object.defineProperty(this,"pageBreaks",{get:function(){return Lt},set:function(ft){Lt=ft}}),Object.defineProperty(this,"ctx",{get:function(){return g},set:function(ft){ft instanceof v&&(g=ft)}}),Object.defineProperty(this,"path",{get:function(){return g.path},set:function(ft){g.path=ft}});var At=[];Object.defineProperty(this,"ctxStack",{get:function(){return At},set:function(ft){At=ft}}),Object.defineProperty(this,"fillStyle",{get:function(){return this.ctx.fillStyle},set:function(ft){var T;T=N(ft),this.ctx.fillStyle=T.style,this.ctx.isFillTransparent=T.a===0,this.ctx.fillOpacity=T.a,this.pdf.setFillColor(T.r,T.g,T.b,{a:T.a}),this.pdf.setTextColor(T.r,T.g,T.b,{a:T.a})}}),Object.defineProperty(this,"strokeStyle",{get:function(){return this.ctx.strokeStyle},set:function(ft){var T=N(ft);this.ctx.strokeStyle=T.style,this.ctx.isStrokeTransparent=T.a===0,this.ctx.strokeOpacity=T.a,T.a===0?this.pdf.setDrawColor(255,255,255):(T.a,this.pdf.setDrawColor(T.r,T.g,T.b))}}),Object.defineProperty(this,"lineCap",{get:function(){return this.ctx.lineCap},set:function(ft){["butt","round","square"].indexOf(ft)!==-1&&(this.ctx.lineCap=ft,this.pdf.setLineCap(ft))}}),Object.defineProperty(this,"lineWidth",{get:function(){return this.ctx.lineWidth},set:function(ft){isNaN(ft)||(this.ctx.lineWidth=ft,this.pdf.setLineWidth(ft))}}),Object.defineProperty(this,"lineJoin",{get:function(){return this.ctx.lineJoin},set:function(ft){["bevel","round","miter"].indexOf(ft)!==-1&&(this.ctx.lineJoin=ft,this.pdf.setLineJoin(ft))}}),Object.defineProperty(this,"miterLimit",{get:function(){return this.ctx.miterLimit},set:function(ft){isNaN(ft)||(this.ctx.miterLimit=ft,this.pdf.setMiterLimit(ft))}}),Object.defineProperty(this,"textBaseline",{get:function(){return this.ctx.textBaseline},set:function(ft){this.ctx.textBaseline=ft}}),Object.defineProperty(this,"textAlign",{get:function(){return this.ctx.textAlign},set:function(ft){["right","end","center","left","start"].indexOf(ft)!==-1&&(this.ctx.textAlign=ft)}});var kt=null;function Pt(ft,T){if(kt===null){var Kt=(function(Bt){var xt=[];return Object.keys(Bt).forEach((function(Nt){Bt[Nt].forEach((function(It){var Ft=null;switch(It){case"bold":Ft={family:Nt,weight:"bold"};break;case"italic":Ft={family:Nt,style:"italic"};break;case"bolditalic":Ft={family:Nt,weight:"bold",style:"italic"};break;case"":case"normal":Ft={family:Nt}}Ft!==null&&(Ft.ref={name:Nt,style:It},xt.push(Ft))}))})),xt})(ft.getFontList());kt=(function(Bt){for(var xt={},Nt=0;Nt<Bt.length;++Nt){var It=Os(Bt[Nt]),Ft=It.family,Tt=It.stretch,Vt=It.style,Qt=It.weight;xt[Ft]=xt[Ft]||{},xt[Ft][Tt]=xt[Ft][Tt]||{},xt[Ft][Tt][Vt]=xt[Ft][Tt][Vt]||{},xt[Ft][Tt][Vt][Qt]=It}return xt})(Kt.concat(T))}return kt}var Ut=null;Object.defineProperty(this,"fontFaces",{get:function(){return Ut},set:function(ft){kt=null,Ut=ft}}),Object.defineProperty(this,"font",{get:function(){return this.ctx.font},set:function(ft){var T;if(this.ctx.font=ft,(T=/^\s*(?=(?:(?:[-a-z]+\s*){0,2}(italic|oblique))?)(?=(?:(?:[-a-z]+\s*){0,2}(small-caps))?)(?=(?:(?:[-a-z]+\s*){0,2}(bold(?:er)?|lighter|[1-9]00))?)(?:(?:normal|\1|\2|\3)\s*){0,3}((?:xx?-)?(?:small|large)|medium|smaller|larger|[.\d]+(?:\%|in|[cem]m|ex|p[ctx]))(?:\s*\/\s*(normal|[.\d]+(?:\%|in|[cem]m|ex|p[ctx])))?\s*([-_,\"\'\sa-z]+?)\s*$/i.exec(ft))!==null){var Kt=T[1];T[2];var Bt=T[3],xt=T[4];T[5];var Nt=T[6],It=/^([.\d]+)((?:%|in|[cem]m|ex|p[ctx]))$/i.exec(xt)[2];xt=Math.floor(It==="px"?parseFloat(xt)*this.pdf.internal.scaleFactor:It==="em"?parseFloat(xt)*this.pdf.getFontSize():parseFloat(xt)*this.pdf.internal.scaleFactor),this.pdf.setFontSize(xt);var Ft=(function(Wt){var ee,Ct,Je=[],oe=Wt.trim();if(oe==="")return Ss;if(oe in Bl)return[Bl[oe]];for(;oe!=="";){switch(Ct=null,ee=(oe=El(oe)).charAt(0)){case'"':case"'":Ct=Sc(oe.substring(1),ee);break;default:Ct=Pc(oe)}if(Ct===null||(Je.push(Ct[0]),(oe=El(Ct[1]))!==""&&oe.charAt(0)!==","))return Ss;oe=oe.replace(/^,/,"")}return Je})(Nt);if(this.fontFaces){var Tt=Nc(Pt(this.pdf,this.fontFaces),Ft.map((function(Wt){return{family:Wt,stretch:"normal",weight:Bt,style:Kt}})));this.pdf.setFont(Tt.ref.name,Tt.ref.style)}else{var Vt="";(Bt==="bold"||parseInt(Bt,10)>=700||Kt==="bold")&&(Vt="bold"),Kt==="italic"&&(Vt+="italic"),Vt.length===0&&(Vt="normal");for(var Qt="",te={arial:"Helvetica",Arial:"Helvetica",verdana:"Helvetica",Verdana:"Helvetica",helvetica:"Helvetica",Helvetica:"Helvetica","sans-serif":"Helvetica",fixed:"Courier",monospace:"Courier",terminal:"Courier",cursive:"Times",fantasy:"Times",serif:"Times"},ie=0;ie<Ft.length;ie++){if(this.pdf.internal.getFont(Ft[ie],Vt,{noFallback:!0,disableWarning:!0})!==void 0){Qt=Ft[ie];break}if(Vt==="bolditalic"&&this.pdf.internal.getFont(Ft[ie],"bold",{noFallback:!0,disableWarning:!0})!==void 0)Qt=Ft[ie],Vt="bold";else if(this.pdf.internal.getFont(Ft[ie],"normal",{noFallback:!0,disableWarning:!0})!==void 0){Qt=Ft[ie],Vt="normal";break}}if(Qt===""){for(var pe=0;pe<Ft.length;pe++)if(te[Ft[pe]]){Qt=te[Ft[pe]];break}}Qt=Qt===""?"Times":Qt,this.pdf.setFont(Qt,Vt)}}}}),Object.defineProperty(this,"globalCompositeOperation",{get:function(){return this.ctx.globalCompositeOperation},set:function(ft){this.ctx.globalCompositeOperation=ft}}),Object.defineProperty(this,"globalAlpha",{get:function(){return this.ctx.globalAlpha},set:function(ft){this.ctx.globalAlpha=ft}}),Object.defineProperty(this,"lineDashOffset",{get:function(){return this.ctx.lineDashOffset},set:function(ft){this.ctx.lineDashOffset=ft,Ot.call(this)}}),Object.defineProperty(this,"lineDash",{get:function(){return this.ctx.lineDash},set:function(ft){this.ctx.lineDash=ft,Ot.call(this)}}),Object.defineProperty(this,"ignoreClearRect",{get:function(){return this.ctx.ignoreClearRect},set:function(ft){this.ctx.ignoreClearRect=!!ft}})};y.prototype.setLineDash=function(A){this.lineDash=A},y.prototype.getLineDash=function(){return this.lineDash.length%2?this.lineDash.concat(this.lineDash):this.lineDash.slice()},y.prototype.fill=function(){tt.call(this,"fill",!1)},y.prototype.stroke=function(){tt.call(this,"stroke",!1)},y.prototype.beginPath=function(){this.path=[{type:"begin"}]},y.prototype.moveTo=function(A,O){if(isNaN(A)||isNaN(O))throw be.error("jsPDF.context2d.moveTo: Invalid arguments",arguments),new Error("Invalid arguments passed to jsPDF.context2d.moveTo");var B=this.ctx.transform.applyToPoint(new u(A,O));this.path.push({type:"mt",x:B.x,y:B.y}),this.ctx.lastPoint=new u(A,O)},y.prototype.closePath=function(){var A=new u(0,0),O=0;for(O=this.path.length-1;O!==-1;O--)if(this.path[O].type==="begin"&&ge(this.path[O+1])==="object"&&typeof this.path[O+1].x=="number"){A=new u(this.path[O+1].x,this.path[O+1].y);break}this.path.push({type:"close"}),this.ctx.lastPoint=new u(A.x,A.y)},y.prototype.lineTo=function(A,O){if(isNaN(A)||isNaN(O))throw be.error("jsPDF.context2d.lineTo: Invalid arguments",arguments),new Error("Invalid arguments passed to jsPDF.context2d.lineTo");var B=this.ctx.transform.applyToPoint(new u(A,O));this.path.push({type:"lt",x:B.x,y:B.y}),this.ctx.lastPoint=new u(B.x,B.y)},y.prototype.clip=function(){this.ctx.clip_path=JSON.parse(JSON.stringify(this.path)),tt.call(this,null,!0)},y.prototype.quadraticCurveTo=function(A,O,B,R){if(isNaN(B)||isNaN(R)||isNaN(A)||isNaN(O))throw be.error("jsPDF.context2d.quadraticCurveTo: Invalid arguments",arguments),new Error("Invalid arguments passed to jsPDF.context2d.quadraticCurveTo");var Y=this.ctx.transform.applyToPoint(new u(B,R)),Q=this.ctx.transform.applyToPoint(new u(A,O));this.path.push({type:"qct",x1:Q.x,y1:Q.y,x:Y.x,y:Y.y}),this.ctx.lastPoint=new u(Y.x,Y.y)},y.prototype.bezierCurveTo=function(A,O,B,R,Y,Q){if(isNaN(Y)||isNaN(Q)||isNaN(A)||isNaN(O)||isNaN(B)||isNaN(R))throw be.error("jsPDF.context2d.bezierCurveTo: Invalid arguments",arguments),new Error("Invalid arguments passed to jsPDF.context2d.bezierCurveTo");var nt=this.ctx.transform.applyToPoint(new u(Y,Q)),rt=this.ctx.transform.applyToPoint(new u(A,O)),Lt=this.ctx.transform.applyToPoint(new u(B,R));this.path.push({type:"bct",x1:rt.x,y1:rt.y,x2:Lt.x,y2:Lt.y,x:nt.x,y:nt.y}),this.ctx.lastPoint=new u(nt.x,nt.y)},y.prototype.arc=function(A,O,B,R,Y,Q){if(isNaN(A)||isNaN(O)||isNaN(B)||isNaN(R)||isNaN(Y))throw be.error("jsPDF.context2d.arc: Invalid arguments",arguments),new Error("Invalid arguments passed to jsPDF.context2d.arc");if(Q=!!Q,!this.ctx.transform.isIdentity){var nt=this.ctx.transform.applyToPoint(new u(A,O));A=nt.x,O=nt.y;var rt=this.ctx.transform.applyToPoint(new u(0,B)),Lt=this.ctx.transform.applyToPoint(new u(0,0));B=Math.sqrt(Math.pow(rt.x-Lt.x,2)+Math.pow(rt.y-Lt.y,2))}Math.abs(Y-R)>=2*Math.PI&&(R=0,Y=2*Math.PI),this.path.push({type:"arc",x:A,y:O,radius:B,startAngle:R,endAngle:Y,counterclockwise:Q})},y.prototype.arcTo=function(A,O,B,R,Y){throw new Error("arcTo not implemented.")},y.prototype.rect=function(A,O,B,R){if(isNaN(A)||isNaN(O)||isNaN(B)||isNaN(R))throw be.error("jsPDF.context2d.rect: Invalid arguments",arguments),new Error("Invalid arguments passed to jsPDF.context2d.rect");this.moveTo(A,O),this.lineTo(A+B,O),this.lineTo(A+B,O+R),this.lineTo(A,O+R),this.lineTo(A,O),this.lineTo(A+B,O),this.lineTo(A,O)},y.prototype.fillRect=function(A,O,B,R){if(isNaN(A)||isNaN(O)||isNaN(B)||isNaN(R))throw be.error("jsPDF.context2d.fillRect: Invalid arguments",arguments),new Error("Invalid arguments passed to jsPDF.context2d.fillRect");if(!d.call(this)){var Y={};this.lineCap!=="butt"&&(Y.lineCap=this.lineCap,this.lineCap="butt"),this.lineJoin!=="miter"&&(Y.lineJoin=this.lineJoin,this.lineJoin="miter"),this.beginPath(),this.rect(A,O,B,R),this.fill(),Y.hasOwnProperty("lineCap")&&(this.lineCap=Y.lineCap),Y.hasOwnProperty("lineJoin")&&(this.lineJoin=Y.lineJoin)}},y.prototype.strokeRect=function(A,O,B,R){if(isNaN(A)||isNaN(O)||isNaN(B)||isNaN(R))throw be.error("jsPDF.context2d.strokeRect: Invalid arguments",arguments),new Error("Invalid arguments passed to jsPDF.context2d.strokeRect");C.call(this)||(this.beginPath(),this.rect(A,O,B,R),this.stroke())},y.prototype.clearRect=function(A,O,B,R){if(isNaN(A)||isNaN(O)||isNaN(B)||isNaN(R))throw be.error("jsPDF.context2d.clearRect: Invalid arguments",arguments),new Error("Invalid arguments passed to jsPDF.context2d.clearRect");this.ignoreClearRect||(this.fillStyle="#ffffff",this.fillRect(A,O,B,R))},y.prototype.save=function(A){A=typeof A!="boolean"||A;for(var O=this.pdf.internal.getCurrentPageInfo().pageNumber,B=0;B<this.pdf.internal.getNumberOfPages();B++)this.pdf.setPage(B+1),this.pdf.internal.out("q");if(this.pdf.setPage(O),A){this.ctx.fontSize=this.pdf.internal.getFontSize();var R=new v(this.ctx);this.ctxStack.push(this.ctx),this.ctx=R}},y.prototype.restore=function(A){A=typeof A!="boolean"||A;for(var O=this.pdf.internal.getCurrentPageInfo().pageNumber,B=0;B<this.pdf.internal.getNumberOfPages();B++)this.pdf.setPage(B+1),this.pdf.internal.out("Q");this.pdf.setPage(O),A&&this.ctxStack.length!==0&&(this.ctx=this.ctxStack.pop(),this.fillStyle=this.ctx.fillStyle,this.strokeStyle=this.ctx.strokeStyle,this.font=this.ctx.font,this.lineCap=this.ctx.lineCap,this.lineWidth=this.ctx.lineWidth,this.lineJoin=this.ctx.lineJoin,this.lineDash=this.ctx.lineDash,this.lineDashOffset=this.ctx.lineDashOffset)},y.prototype.toDataURL=function(){throw new Error("toDataUrl not implemented.")};var N=function(A){var O,B,R,Y;if(A.isCanvasGradient===!0&&(A=A.getColor()),!A)return{r:0,g:0,b:0,a:0,style:A};if(/transparent|rgba\s*\(\s*(\d+)\s*,\s*(\d+)\s*,\s*(\d+)\s*,\s*0+\s*\)/.test(A))O=0,B=0,R=0,Y=0;else{var Q=/rgb\s*\(\s*(\d+)\s*,\s*(\d+)\s*,\s*(\d+)\s*\)/.exec(A);if(Q!==null)O=parseInt(Q[1]),B=parseInt(Q[2]),R=parseInt(Q[3]),Y=1;else if((Q=/rgba\s*\(\s*(\d+)\s*,\s*(\d+)\s*,\s*(\d+)\s*,\s*([\d.]+)\s*\)/.exec(A))!==null)O=parseInt(Q[1]),B=parseInt(Q[2]),R=parseInt(Q[3]),Y=parseFloat(Q[4]);else{if(Y=1,typeof A=="string"&&A.charAt(0)!=="#"){var nt=new Jl(A);A=nt.ok?nt.toHex():"#000000"}A.length===4?(O=A.substring(1,2),O+=O,B=A.substring(2,3),B+=B,R=A.substring(3,4),R+=R):(O=A.substring(1,3),B=A.substring(3,5),R=A.substring(5,7)),O=parseInt(O,16),B=parseInt(B,16),R=parseInt(R,16)}}return{r:O,g:B,b:R,a:Y,style:A}},d=function(){return this.ctx.isFillTransparent||this.globalAlpha==0},C=function(){return!!(this.ctx.isStrokeTransparent||this.globalAlpha==0)};y.prototype.fillText=function(A,O,B,R){if(isNaN(O)||isNaN(B)||typeof A!="string")throw be.error("jsPDF.context2d.fillText: Invalid arguments",arguments),new Error("Invalid arguments passed to jsPDF.context2d.fillText");if(R=isNaN(R)?void 0:R,!d.call(this)){var Y=$(this.ctx.transform.rotation),Q=this.ctx.transform.scaleX;k.call(this,{text:A,x:O,y:B,scale:Q,angle:Y,align:this.textAlign,maxWidth:R})}},y.prototype.strokeText=function(A,O,B,R){if(isNaN(O)||isNaN(B)||typeof A!="string")throw be.error("jsPDF.context2d.strokeText: Invalid arguments",arguments),new Error("Invalid arguments passed to jsPDF.context2d.strokeText");if(!C.call(this)){R=isNaN(R)?void 0:R;var Y=$(this.ctx.transform.rotation),Q=this.ctx.transform.scaleX;k.call(this,{text:A,x:O,y:B,scale:Q,renderingMode:"stroke",angle:Y,align:this.textAlign,maxWidth:R})}},y.prototype.measureText=function(A){if(typeof A!="string")throw be.error("jsPDF.context2d.measureText: Invalid arguments",arguments),new Error("Invalid arguments passed to jsPDF.context2d.measureText");var O=this.pdf,B=this.pdf.internal.scaleFactor,R=O.internal.getFontSize(),Y=O.getStringUnitWidth(A)*R/O.internal.scaleFactor,Q=function(nt){var rt=(nt=nt||{}).width||0;return Object.defineProperty(this,"width",{get:function(){return rt}}),this};return new Q({width:Y*=Math.round(96*B/72*1e4)/1e4})},y.prototype.scale=function(A,O){if(isNaN(A)||isNaN(O))throw be.error("jsPDF.context2d.scale: Invalid arguments",arguments),new Error("Invalid arguments passed to jsPDF.context2d.scale");var B=new f(A,0,0,O,0,0);this.ctx.transform=this.ctx.transform.multiply(B)},y.prototype.rotate=function(A){if(isNaN(A))throw be.error("jsPDF.context2d.rotate: Invalid arguments",arguments),new Error("Invalid arguments passed to jsPDF.context2d.rotate");var O=new f(Math.cos(A),Math.sin(A),-Math.sin(A),Math.cos(A),0,0);this.ctx.transform=this.ctx.transform.multiply(O)},y.prototype.translate=function(A,O){if(isNaN(A)||isNaN(O))throw be.error("jsPDF.context2d.translate: Invalid arguments",arguments),new Error("Invalid arguments passed to jsPDF.context2d.translate");var B=new f(1,0,0,1,A,O);this.ctx.transform=this.ctx.transform.multiply(B)},y.prototype.transform=function(A,O,B,R,Y,Q){if(isNaN(A)||isNaN(O)||isNaN(B)||isNaN(R)||isNaN(Y)||isNaN(Q))throw be.error("jsPDF.context2d.transform: Invalid arguments",arguments),new Error("Invalid arguments passed to jsPDF.context2d.transform");var nt=new f(A,O,B,R,Y,Q);this.ctx.transform=this.ctx.transform.multiply(nt)},y.prototype.setTransform=function(A,O,B,R,Y,Q){A=isNaN(A)?1:A,O=isNaN(O)?0:O,B=isNaN(B)?0:B,R=isNaN(R)?1:R,Y=isNaN(Y)?0:Y,Q=isNaN(Q)?0:Q,this.ctx.transform=new f(A,O,B,R,Y,Q)};var F=function(){return this.margin[0]>0||this.margin[1]>0||this.margin[2]>0||this.margin[3]>0};y.prototype.drawImage=function(A,O,B,R,Y,Q,nt,rt,Lt){var At=this.pdf.getImageProperties(A),kt=1,Pt=1,Ut=1,ft=1;R!==void 0&&rt!==void 0&&(Ut=rt/R,ft=Lt/Y,kt=At.width/R*rt/R,Pt=At.height/Y*Lt/Y),Q===void 0&&(Q=O,nt=B,O=0,B=0),R!==void 0&&rt===void 0&&(rt=R,Lt=Y),R===void 0&&rt===void 0&&(rt=At.width,Lt=At.height);for(var T,Kt=this.ctx.transform.decompose(),Bt=$(Kt.rotate.shx),xt=new f,Nt=(xt=(xt=(xt=xt.multiply(Kt.translate)).multiply(Kt.skew)).multiply(Kt.scale)).applyToRectangle(new h(Q-O*Ut,nt-B*ft,R*kt,Y*Pt)),It=D.call(this,Nt),Ft=[],Tt=0;Tt<It.length;Tt+=1)Ft.indexOf(It[Tt])===-1&&Ft.push(It[Tt]);if(W(Ft),this.autoPaging)for(var Vt=Ft[0],Qt=Ft[Ft.length-1],te=Vt;te<Qt+1;te++){this.pdf.setPage(te);var ie=this.pdf.internal.pageSize.width-this.margin[3]-this.margin[1],pe=te===1?this.posY+this.margin[0]:this.margin[0],Wt=this.pdf.internal.pageSize.height-this.posY-this.margin[0]-this.margin[2],ee=this.pdf.internal.pageSize.height-this.margin[0]-this.margin[2],Ct=te===1?0:Wt+(te-2)*ee;if(this.ctx.clip_path.length!==0){var Je=this.path;T=JSON.parse(JSON.stringify(this.ctx.clip_path)),this.path=M(T,this.posX+this.margin[3],-Ct+pe+this.ctx.prevPageLastElemOffset),ot.call(this,"fill",!0),this.path=Je}var oe=JSON.parse(JSON.stringify(Nt));oe=M([oe],this.posX+this.margin[3],-Ct+pe+this.ctx.prevPageLastElemOffset)[0];var _n=(te>Vt||te<Qt)&&F.call(this);_n&&(this.pdf.saveGraphicsState(),this.pdf.rect(this.margin[3],this.margin[0],ie,ee,null).clip().discardPath()),this.pdf.addImage(A,"JPEG",oe.x,oe.y,oe.w,oe.h,null,null,Bt),_n&&this.pdf.restoreGraphicsState()}else this.pdf.addImage(A,"JPEG",Nt.x,Nt.y,Nt.w,Nt.h,null,null,Bt)};var D=function(A,O,B){var R=[];O=O||this.pdf.internal.pageSize.width,B=B||this.pdf.internal.pageSize.height-this.margin[0]-this.margin[2];var Y=this.posY+this.ctx.prevPageLastElemOffset;switch(A.type){default:case"mt":case"lt":R.push(Math.floor((A.y+Y)/B)+1);break;case"arc":R.push(Math.floor((A.y+Y-A.radius)/B)+1),R.push(Math.floor((A.y+Y+A.radius)/B)+1);break;case"qct":var Q=ct(this.ctx.lastPoint.x,this.ctx.lastPoint.y,A.x1,A.y1,A.x,A.y);R.push(Math.floor((Q.y+Y)/B)+1),R.push(Math.floor((Q.y+Q.h+Y)/B)+1);break;case"bct":var nt=pt(this.ctx.lastPoint.x,this.ctx.lastPoint.y,A.x1,A.y1,A.x2,A.y2,A.x,A.y);R.push(Math.floor((nt.y+Y)/B)+1),R.push(Math.floor((nt.y+nt.h+Y)/B)+1);break;case"rect":R.push(Math.floor((A.y+Y)/B)+1),R.push(Math.floor((A.y+A.h+Y)/B)+1)}for(var rt=0;rt<R.length;rt+=1)for(;this.pdf.internal.getNumberOfPages()<R[rt];)P.call(this);return R},P=function(){var A=this.fillStyle,O=this.strokeStyle,B=this.font,R=this.lineCap,Y=this.lineWidth,Q=this.lineJoin;this.pdf.addPage(),this.fillStyle=A,this.strokeStyle=O,this.font=B,this.lineCap=R,this.lineWidth=Y,this.lineJoin=Q},M=function(A,O,B){for(var R=0;R<A.length;R++)switch(A[R].type){case"bct":A[R].x2+=O,A[R].y2+=B;case"qct":A[R].x1+=O,A[R].y1+=B;case"mt":case"lt":case"arc":default:A[R].x+=O,A[R].y+=B}return A},W=function(A){return A.sort((function(O,B){return O-B}))},tt=function(A,O){for(var B,R,Y=this.fillStyle,Q=this.strokeStyle,nt=this.lineCap,rt=this.lineWidth,Lt=Math.abs(rt*this.ctx.transform.scaleX),At=this.lineJoin,kt=JSON.parse(JSON.stringify(this.path)),Pt=JSON.parse(JSON.stringify(this.path)),Ut=[],ft=0;ft<Pt.length;ft++)if(Pt[ft].x!==void 0)for(var T=D.call(this,Pt[ft]),Kt=0;Kt<T.length;Kt+=1)Ut.indexOf(T[Kt])===-1&&Ut.push(T[Kt]);for(var Bt=0;Bt<Ut.length;Bt++)for(;this.pdf.internal.getNumberOfPages()<Ut[Bt];)P.call(this);if(W(Ut),this.autoPaging)for(var xt=Ut[0],Nt=Ut[Ut.length-1],It=xt;It<Nt+1;It++){this.pdf.setPage(It),this.fillStyle=Y,this.strokeStyle=Q,this.lineCap=nt,this.lineWidth=Lt,this.lineJoin=At;var Ft=this.pdf.internal.pageSize.width-this.margin[3]-this.margin[1],Tt=It===1?this.posY+this.margin[0]:this.margin[0],Vt=this.pdf.internal.pageSize.height-this.posY-this.margin[0]-this.margin[2],Qt=this.pdf.internal.pageSize.height-this.margin[0]-this.margin[2],te=It===1?0:Vt+(It-2)*Qt;if(this.ctx.clip_path.length!==0){var ie=this.path;B=JSON.parse(JSON.stringify(this.ctx.clip_path)),this.path=M(B,this.posX+this.margin[3],-te+Tt+this.ctx.prevPageLastElemOffset),ot.call(this,A,!0),this.path=ie}if(R=JSON.parse(JSON.stringify(kt)),this.path=M(R,this.posX+this.margin[3],-te+Tt+this.ctx.prevPageLastElemOffset),O===!1||It===0){var pe=(It>xt||It<Nt)&&F.call(this);pe&&(this.pdf.saveGraphicsState(),this.pdf.rect(this.margin[3],this.margin[0],Ft,Qt,null).clip().discardPath()),ot.call(this,A,O),pe&&this.pdf.restoreGraphicsState()}this.lineWidth=rt}else this.lineWidth=Lt,ot.call(this,A,O),this.lineWidth=rt;this.path=kt},ot=function(A,O){if((A!=="stroke"||O||!C.call(this))&&(A==="stroke"||O||!d.call(this))){for(var B,R,Y=[],Q=this.path,nt=0;nt<Q.length;nt++){var rt=Q[nt];switch(rt.type){case"begin":Y.push({begin:!0});break;case"close":Y.push({close:!0});break;case"mt":Y.push({start:rt,deltas:[],abs:[]});break;case"lt":var Lt=Y.length;if(Q[nt-1]&&!isNaN(Q[nt-1].x)&&(B=[rt.x-Q[nt-1].x,rt.y-Q[nt-1].y],Lt>0)){for(;Lt>=0;Lt--)if(Y[Lt-1].close!==!0&&Y[Lt-1].begin!==!0){Y[Lt-1].deltas.push(B),Y[Lt-1].abs.push(rt);break}}break;case"bct":B=[rt.x1-Q[nt-1].x,rt.y1-Q[nt-1].y,rt.x2-Q[nt-1].x,rt.y2-Q[nt-1].y,rt.x-Q[nt-1].x,rt.y-Q[nt-1].y],Y[Y.length-1].deltas.push(B);break;case"qct":var At=Q[nt-1].x+2/3*(rt.x1-Q[nt-1].x),kt=Q[nt-1].y+2/3*(rt.y1-Q[nt-1].y),Pt=rt.x+2/3*(rt.x1-rt.x),Ut=rt.y+2/3*(rt.y1-rt.y),ft=rt.x,T=rt.y;B=[At-Q[nt-1].x,kt-Q[nt-1].y,Pt-Q[nt-1].x,Ut-Q[nt-1].y,ft-Q[nt-1].x,T-Q[nt-1].y],Y[Y.length-1].deltas.push(B);break;case"arc":Y.push({deltas:[],abs:[],arc:!0}),Array.isArray(Y[Y.length-1].abs)&&Y[Y.length-1].abs.push(rt)}}R=O?null:A==="stroke"?"stroke":"fill";for(var Kt=!1,Bt=0;Bt<Y.length;Bt++)if(Y[Bt].arc)for(var xt=Y[Bt].abs,Nt=0;Nt<xt.length;Nt++){var It=xt[Nt];It.type==="arc"?z.call(this,It.x,It.y,It.radius,It.startAngle,It.endAngle,It.counterclockwise,void 0,O,!Kt):G.call(this,It.x,It.y),Kt=!0}else if(Y[Bt].close===!0)this.pdf.internal.out("h"),Kt=!1;else if(Y[Bt].begin!==!0){var Ft=Y[Bt].start.x,Tt=Y[Bt].start.y;E.call(this,Y[Bt].deltas,Ft,Tt),Kt=!0}R&&it.call(this,R),O&&dt.call(this)}},yt=function(A){var O=this.pdf.internal.getFontSize()/this.pdf.internal.scaleFactor,B=O*(this.pdf.internal.getLineHeightFactor()-1);switch(this.ctx.textBaseline){case"bottom":return A-B;case"top":return A+O-B;case"hanging":return A+O-2*B;case"middle":return A+O/2-B;case"ideographic":return A;case"alphabetic":default:return A}},et=function(A){return A+this.pdf.internal.getFontSize()/this.pdf.internal.scaleFactor*(this.pdf.internal.getLineHeightFactor()-1)};y.prototype.createLinearGradient=function(){var A=function(){};return A.colorStops=[],A.addColorStop=function(O,B){this.colorStops.push([O,B])},A.getColor=function(){return this.colorStops.length===0?"#000000":this.colorStops[0][1]},A.isCanvasGradient=!0,A},y.prototype.createPattern=function(){return this.createLinearGradient()},y.prototype.createRadialGradient=function(){return this.createLinearGradient()};var z=function(A,O,B,R,Y,Q,nt,rt,Lt){for(var At=at.call(this,B,R,Y,Q),kt=0;kt<At.length;kt++){var Pt=At[kt];kt===0&&(Lt?_.call(this,Pt.x1+A,Pt.y1+O):G.call(this,Pt.x1+A,Pt.y1+O)),lt.call(this,A,O,Pt.x2,Pt.y2,Pt.x3,Pt.y3,Pt.x4,Pt.y4)}rt?dt.call(this):it.call(this,nt)},it=function(A){switch(A){case"stroke":this.pdf.internal.out("S");break;case"fill":this.pdf.internal.out("f")}},dt=function(){this.pdf.clip(),this.pdf.discardPath()},_=function(A,O){this.pdf.internal.out(n(A)+" "+i(O)+" m")},k=function(A){var O;switch(A.align){case"right":case"end":O="right";break;case"center":O="center";break;case"left":case"start":default:O="left"}var B=this.pdf.getTextDimensions(A.text),R=yt.call(this,A.y),Y=et.call(this,R)-B.h,Q=this.ctx.transform.applyToPoint(new u(A.x,R)),nt=this.ctx.transform.decompose(),rt=new f;rt=(rt=(rt=rt.multiply(nt.translate)).multiply(nt.skew)).multiply(nt.scale);for(var Lt,At,kt,Pt=this.ctx.transform.applyToRectangle(new h(A.x,R,B.w,B.h)),Ut=rt.applyToRectangle(new h(A.x,Y,B.w,B.h)),ft=D.call(this,Ut),T=[],Kt=0;Kt<ft.length;Kt+=1)T.indexOf(ft[Kt])===-1&&T.push(ft[Kt]);if(W(T),this.autoPaging)for(var Bt=T[0],xt=T[T.length-1],Nt=Bt;Nt<xt+1;Nt++){this.pdf.setPage(Nt);var It=Nt===1?this.posY+this.margin[0]:this.margin[0],Ft=this.pdf.internal.pageSize.height-this.posY-this.margin[0]-this.margin[2],Tt=this.pdf.internal.pageSize.height-this.margin[2],Vt=Tt-this.margin[0],Qt=this.pdf.internal.pageSize.width-this.margin[1],te=Qt-this.margin[3],ie=Nt===1?0:Ft+(Nt-2)*Vt;if(this.ctx.clip_path.length!==0){var pe=this.path;Lt=JSON.parse(JSON.stringify(this.ctx.clip_path)),this.path=M(Lt,this.posX+this.margin[3],-1*ie+It),ot.call(this,"fill",!0),this.path=pe}var Wt=M([JSON.parse(JSON.stringify(Ut))],this.posX+this.margin[3],-ie+It+this.ctx.prevPageLastElemOffset)[0];A.scale>=.01&&(At=this.pdf.internal.getFontSize(),this.pdf.setFontSize(At*A.scale),kt=this.lineWidth,this.lineWidth=kt*A.scale);var ee=this.autoPaging!=="text";if(ee||Wt.y+Wt.h<=Tt){if(ee||Wt.y>=It&&Wt.x<=Qt){var Ct=ee?A.text:this.pdf.splitTextToSize(A.text,A.maxWidth||Qt-Wt.x)[0],Je=M([JSON.parse(JSON.stringify(Pt))],this.posX+this.margin[3],-ie+It+this.ctx.prevPageLastElemOffset)[0],oe=ee&&(Nt>Bt||Nt<xt)&&F.call(this);oe&&(this.pdf.saveGraphicsState(),this.pdf.rect(this.margin[3],this.margin[0],te,Vt,null).clip().discardPath()),this.pdf.text(Ct,Je.x,Je.y,{angle:A.angle,align:O,renderingMode:A.renderingMode}),oe&&this.pdf.restoreGraphicsState()}}else Wt.y<Tt&&(this.ctx.prevPageLastElemOffset+=Tt-Wt.y);A.scale>=.01&&(this.pdf.setFontSize(At),this.lineWidth=kt)}else A.scale>=.01&&(At=this.pdf.internal.getFontSize(),this.pdf.setFontSize(At*A.scale),kt=this.lineWidth,this.lineWidth=kt*A.scale),this.pdf.text(A.text,Q.x+this.posX,Q.y+this.posY,{angle:A.angle,align:O,renderingMode:A.renderingMode,maxWidth:A.maxWidth}),A.scale>=.01&&(this.pdf.setFontSize(At),this.lineWidth=kt)},G=function(A,O,B,R){B=B||0,R=R||0,this.pdf.internal.out(n(A+B)+" "+i(O+R)+" l")},E=function(A,O,B){return this.pdf.lines(A,O,B,null,null)},lt=function(A,O,B,R,Y,Q,nt,rt){this.pdf.internal.out([t(s(B+A)),t(o(R+O)),t(s(Y+A)),t(o(Q+O)),t(s(nt+A)),t(o(rt+O)),"c"].join(" "))},at=function(A,O,B,R){for(var Y=2*Math.PI,Q=Math.PI/2;O>B;)O-=Y;var nt=Math.abs(B-O);nt<Y&&R&&(nt=Y-nt);for(var rt=[],Lt=R?-1:1,At=O;nt>1e-5;){var kt=At+Lt*Math.min(nt,Q);rt.push(ht.call(this,A,At,kt)),nt-=Math.abs(kt-At),At=kt}return rt},ht=function(A,O,B){var R=(B-O)/2,Y=A*Math.cos(R),Q=A*Math.sin(R),nt=Y,rt=-Q,Lt=nt*nt+rt*rt,At=Lt+nt*Y+rt*Q,kt=4/3*(Math.sqrt(2*Lt*At)-At)/(nt*Q-rt*Y),Pt=nt-kt*rt,Ut=rt+kt*nt,ft=Pt,T=-Ut,Kt=R+O,Bt=Math.cos(Kt),xt=Math.sin(Kt);return{x1:A*Math.cos(O),y1:A*Math.sin(O),x2:Pt*Bt-Ut*xt,y2:Pt*xt+Ut*Bt,x3:ft*Bt-T*xt,y3:ft*xt+T*Bt,x4:A*Math.cos(B),y4:A*Math.sin(B)}},$=function(A){return 180*A/Math.PI},ct=function(A,O,B,R,Y,Q){var nt=A+.5*(B-A),rt=O+.5*(R-O),Lt=Y+.5*(B-Y),At=Q+.5*(R-Q),kt=Math.min(A,Y,nt,Lt),Pt=Math.max(A,Y,nt,Lt),Ut=Math.min(O,Q,rt,At),ft=Math.max(O,Q,rt,At);return new h(kt,Ut,Pt-kt,ft-Ut)},pt=function(A,O,B,R,Y,Q,nt,rt){var Lt,At,kt,Pt,Ut,ft,T,Kt,Bt,xt,Nt,It,Ft,Tt,Vt=B-A,Qt=R-O,te=Y-B,ie=Q-R,pe=nt-Y,Wt=rt-Q;for(At=0;At<41;At++)Bt=(T=(kt=A+(Lt=At/40)*Vt)+Lt*((Ut=B+Lt*te)-kt))+Lt*(Ut+Lt*(Y+Lt*pe-Ut)-T),xt=(Kt=(Pt=O+Lt*Qt)+Lt*((ft=R+Lt*ie)-Pt))+Lt*(ft+Lt*(Q+Lt*Wt-ft)-Kt),At==0?(Nt=Bt,It=xt,Ft=Bt,Tt=xt):(Nt=Math.min(Nt,Bt),It=Math.min(It,xt),Ft=Math.max(Ft,Bt),Tt=Math.max(Tt,xt));return new h(Math.round(Nt),Math.round(It),Math.round(Ft-Nt),Math.round(Tt-It))},Ot=function(){if(this.prevLineDash||this.ctx.lineDash.length||this.ctx.lineDashOffset){var A,O,B=(A=this.ctx.lineDash,O=this.ctx.lineDashOffset,JSON.stringify({lineDash:A,lineDashOffset:O}));this.prevLineDash!==B&&(this.pdf.setLineDash(this.ctx.lineDash,this.ctx.lineDashOffset),this.prevLineDash=B)}}})(Rt.API),(function(r){var t=function(o){var u,h,f,g,v,y,N,d,C,F;for(/[^\x00-\xFF]/.test(o),h=[],f=0,g=(o+=u="\0\0\0\0".slice(o.length%4||4)).length;g>f;f+=4)(v=(o.charCodeAt(f)<<24)+(o.charCodeAt(f+1)<<16)+(o.charCodeAt(f+2)<<8)+o.charCodeAt(f+3))!==0?(y=(v=((v=((v=((v=(v-(F=v%85))/85)-(C=v%85))/85)-(d=v%85))/85)-(N=v%85))/85)%85,h.push(y+33,N+33,d+33,C+33,F+33)):h.push(122);return(function(D,P){for(var M=P;M>0;M--)D.pop()})(h,u.length),String.fromCharCode.apply(String,h)+"~>"},n=function(o){var u,h,f,g,v,y=String,N="length",d=255,C="charCodeAt",F="slice",D="replace";for(o[F](-2),o=o[F](0,-2)[D](/\s/g,"")[D]("z","!!!!!"),f=[],g=0,v=(o+=u="uuuuu"[F](o[N]%5||5))[N];v>g;g+=5)h=52200625*(o[C](g)-33)+614125*(o[C](g+1)-33)+7225*(o[C](g+2)-33)+85*(o[C](g+3)-33)+(o[C](g+4)-33),f.push(d&h>>24,d&h>>16,d&h>>8,d&h);return(function(P,M){for(var W=M;W>0;W--)P.pop()})(f,u[N]),y.fromCharCode.apply(y,f)},i=function(o){var u=new RegExp(/^([0-9A-Fa-f]{2})+$/);if((o=o.replace(/\s/g,"")).indexOf(">")!==-1&&(o=o.substr(0,o.indexOf(">"))),o.length%2&&(o+="0"),u.test(o)===!1)return"";for(var h="",f=0;f<o.length;f+=2)h+=String.fromCharCode("0x"+(o[f]+o[f+1]));return h},s=function(o){for(var u=new Uint8Array(o.length),h=o.length;h--;)u[h]=o.charCodeAt(h);return o=(u=uo(u)).reduce((function(f,g){return f+String.fromCharCode(g)}),"")};r.processDataByFilters=function(o,u){var h=0,f=o||"",g=[];for(typeof(u=u||[])=="string"&&(u=[u]),h=0;h<u.length;h+=1)switch(u[h]){case"ASCII85Decode":case"/ASCII85Decode":f=n(f),g.push("/ASCII85Encode");break;case"ASCII85Encode":case"/ASCII85Encode":f=t(f),g.push("/ASCII85Decode");break;case"ASCIIHexDecode":case"/ASCIIHexDecode":f=i(f),g.push("/ASCIIHexEncode");break;case"ASCIIHexEncode":case"/ASCIIHexEncode":f=f.split("").map((function(v){return("0"+v.charCodeAt().toString(16)).slice(-2)})).join("")+">",g.push("/ASCIIHexDecode");break;case"FlateEncode":case"/FlateEncode":f=s(f),g.push("/FlateDecode");break;default:throw new Error('The filter: "'+u[h]+'" is not implemented')}return{data:f,reverseChain:g.reverse().join(" ")}}})(Rt.API),(function(r){r.loadFile=function(t,n,i){return(function(s,o,u){o=o!==!1,u=typeof u=="function"?u:function(){};var h=void 0;try{h=(function(f,g,v){var y=new XMLHttpRequest,N=0,d=function(C){var F=C.length,D=[],P=String.fromCharCode;for(N=0;N<F;N+=1)D.push(P(255&C.charCodeAt(N)));return D.join("")};if(y.open("GET",f,!g),y.overrideMimeType("text/plain; charset=x-user-defined"),g===!1&&(y.onload=function(){y.status===200?v(d(this.responseText)):v(void 0)}),y.send(null),g&&y.status===200)return d(y.responseText)})(s,o,u)}catch{}return h})(t,n,i)},r.loadImageFile=r.loadFile})(Rt.API),(function(r){function t(){return(Ht.html2canvas?Promise.resolve(Ht.html2canvas):import("./GX36OVTS.js")).catch((function(u){return Promise.reject(new Error("Could not load html2canvas: "+u))})).then((function(u){return u.default?u.default:u}))}function n(){return(Ht.DOMPurify?Promise.resolve(Ht.DOMPurify):import("./FPVE7DKQ.js")).catch((function(u){return Promise.reject(new Error("Could not load dompurify: "+u))})).then((function(u){return u.default?u.default:u}))}var i=function(u){var h=ge(u);return h==="undefined"?"undefined":h==="string"||u instanceof String?"string":h==="number"||u instanceof Number?"number":h==="function"||u instanceof Function?"function":u&&u.constructor===Array?"array":u&&u.nodeType===1?"element":h==="object"?"object":"unknown"},s=function(u,h){var f=document.createElement(u);for(var g in h.className&&(f.className=h.className),h.innerHTML&&h.dompurify&&(f.innerHTML=h.dompurify.sanitize(h.innerHTML)),h.style)f.style[g]=h.style[g];return f},o=function u(h){var f=Object.assign(u.convert(Promise.resolve()),JSON.parse(JSON.stringify(u.template))),g=u.convert(Promise.resolve(),f);return g=(g=g.setProgress(1,u,1,[u])).set(h)};(o.prototype=Object.create(Promise.prototype)).constructor=o,o.convert=function(u,h){return u.__proto__=h||o.prototype,u},o.template={prop:{src:null,container:null,overlay:null,canvas:null,img:null,pdf:null,pageSize:null,callback:function(){}},progress:{val:0,state:null,n:0,stack:[]},opt:{filename:"file.pdf",margin:[0,0,0,0],enableLinks:!0,x:0,y:0,html2canvas:{},jsPDF:{},backgroundColor:"transparent"}},o.prototype.from=function(u,h){return this.then((function(){switch(h=h||(function(f){switch(i(f)){case"string":return"string";case"element":return f.nodeName.toLowerCase()==="canvas"?"canvas":"element";default:return"unknown"}})(u)){case"string":return this.then(n).then((function(f){return this.set({src:s("div",{innerHTML:u,dompurify:f})})}));case"element":return this.set({src:u});case"canvas":return this.set({canvas:u});case"img":return this.set({img:u});default:return this.error("Unknown source type.")}}))},o.prototype.to=function(u){switch(u){case"container":return this.toContainer();case"canvas":return this.toCanvas();case"img":return this.toImg();case"pdf":return this.toPdf();default:return this.error("Invalid target.")}},o.prototype.toContainer=function(){return this.thenList([function(){return this.prop.src||this.error("Cannot duplicate - no source HTML.")},function(){return this.prop.pageSize||this.setPageSize()}]).then((function(){var u={position:"relative",display:"inline-block",width:(typeof this.opt.width!="number"||isNaN(this.opt.width)||typeof this.opt.windowWidth!="number"||isNaN(this.opt.windowWidth)?Math.max(this.prop.src.clientWidth,this.prop.src.scrollWidth,this.prop.src.offsetWidth):this.opt.windowWidth)+"px",left:0,right:0,top:0,margin:"auto",backgroundColor:this.opt.backgroundColor},h=(function f(g,v){for(var y=g.nodeType===3?document.createTextNode(g.nodeValue):g.cloneNode(!1),N=g.firstChild;N;N=N.nextSibling)v!==!0&&N.nodeType===1&&N.nodeName==="SCRIPT"||y.appendChild(f(N,v));return g.nodeType===1&&(g.nodeName==="CANVAS"?(y.width=g.width,y.height=g.height,y.getContext("2d").drawImage(g,0,0)):g.nodeName!=="TEXTAREA"&&g.nodeName!=="SELECT"||(y.value=g.value),y.addEventListener("load",(function(){y.scrollTop=g.scrollTop,y.scrollLeft=g.scrollLeft}),!0)),y})(this.prop.src,this.opt.html2canvas.javascriptEnabled);h.tagName==="BODY"&&(u.height=Math.max(document.body.scrollHeight,document.body.offsetHeight,document.documentElement.clientHeight,document.documentElement.scrollHeight,document.documentElement.offsetHeight)+"px"),this.prop.overlay=s("div",{className:"html2pdf__overlay",style:{position:"fixed",overflow:"hidden",zIndex:1e3,left:"-100000px",right:0,bottom:0,top:0}}),this.prop.container=s("div",{className:"html2pdf__container",style:u}),this.prop.container.appendChild(h),this.prop.container.firstChild.appendChild(s("div",{style:{clear:"both",border:"0 none transparent",margin:0,padding:0,height:0}})),this.prop.container.style.float="none",this.prop.overlay.appendChild(this.prop.container),document.body.appendChild(this.prop.overlay),this.prop.container.firstChild.style.position="relative",this.prop.container.height=Math.max(this.prop.container.firstChild.clientHeight,this.prop.container.firstChild.scrollHeight,this.prop.container.firstChild.offsetHeight)+"px"}))},o.prototype.toCanvas=function(){var u=[function(){return document.body.contains(this.prop.container)||this.toContainer()}];return this.thenList(u).then(t).then((function(h){var f=Object.assign({},this.opt.html2canvas);return delete f.onrendered,h(this.prop.container,f)})).then((function(h){(this.opt.html2canvas.onrendered||function(){})(h),this.prop.canvas=h,document.body.removeChild(this.prop.overlay)}))},o.prototype.toContext2d=function(){var u=[function(){return document.body.contains(this.prop.container)||this.toContainer()}];return this.thenList(u).then(t).then((function(h){var f=this.opt.jsPDF,g=this.opt.fontFaces,v=typeof this.opt.width!="number"||isNaN(this.opt.width)||typeof this.opt.windowWidth!="number"||isNaN(this.opt.windowWidth)?1:this.opt.width/this.opt.windowWidth,y=Object.assign({async:!0,allowTaint:!0,scale:v,scrollX:this.opt.scrollX||0,scrollY:this.opt.scrollY||0,backgroundColor:"#ffffff",imageTimeout:15e3,logging:!0,proxy:null,removeContainer:!0,foreignObjectRendering:!1,useCORS:!1},this.opt.html2canvas);if(delete y.onrendered,f.context2d.autoPaging=this.opt.autoPaging===void 0||this.opt.autoPaging,f.context2d.posX=this.opt.x,f.context2d.posY=this.opt.y,f.context2d.margin=this.opt.margin,f.context2d.fontFaces=g,g)for(var N=0;N<g.length;++N){var d=g[N],C=d.src.find((function(F){return F.format==="truetype"}));C&&f.addFont(C.url,d.ref.name,d.ref.style)}return y.windowHeight=y.windowHeight||0,y.windowHeight=y.windowHeight==0?Math.max(this.prop.container.clientHeight,this.prop.container.scrollHeight,this.prop.container.offsetHeight):y.windowHeight,f.context2d.save(!0),h(this.prop.container,y)})).then((function(h){this.opt.jsPDF.context2d.restore(!0),(this.opt.html2canvas.onrendered||function(){})(h),this.prop.canvas=h,document.body.removeChild(this.prop.overlay)}))},o.prototype.toImg=function(){return this.thenList([function(){return this.prop.canvas||this.toCanvas()}]).then((function(){var u=this.prop.canvas.toDataURL("image/"+this.opt.image.type,this.opt.image.quality);this.prop.img=document.createElement("img"),this.prop.img.src=u}))},o.prototype.toPdf=function(){return this.thenList([function(){return this.toContext2d()}]).then((function(){this.prop.pdf=this.prop.pdf||this.opt.jsPDF}))},o.prototype.output=function(u,h,f){return(f=f||"pdf").toLowerCase()==="img"||f.toLowerCase()==="image"?this.outputImg(u,h):this.outputPdf(u,h)},o.prototype.outputPdf=function(u,h){return this.thenList([function(){return this.prop.pdf||this.toPdf()}]).then((function(){return this.prop.pdf.output(u,h)}))},o.prototype.outputImg=function(u){return this.thenList([function(){return this.prop.img||this.toImg()}]).then((function(){switch(u){case void 0:case"img":return this.prop.img;case"datauristring":case"dataurlstring":return this.prop.img.src;case"datauri":case"dataurl":return document.location.href=this.prop.img.src;default:throw'Image output type "'+u+'" is not supported.'}}))},o.prototype.save=function(u){return this.thenList([function(){return this.prop.pdf||this.toPdf()}]).set(u?{filename:u}:null).then((function(){this.prop.pdf.save(this.opt.filename)}))},o.prototype.doCallback=function(){return this.thenList([function(){return this.prop.pdf||this.toPdf()}]).then((function(){this.prop.callback(this.prop.pdf)}))},o.prototype.set=function(u){if(i(u)!=="object")return this;var h=Object.keys(u||{}).map((function(f){if(f in o.template.prop)return function(){this.prop[f]=u[f]};switch(f){case"margin":return this.setMargin.bind(this,u.margin);case"jsPDF":return function(){return this.opt.jsPDF=u.jsPDF,this.setPageSize()};case"pageSize":return this.setPageSize.bind(this,u.pageSize);default:return function(){this.opt[f]=u[f]}}}),this);return this.then((function(){return this.thenList(h)}))},o.prototype.get=function(u,h){return this.then((function(){var f=u in o.template.prop?this.prop[u]:this.opt[u];return h?h(f):f}))},o.prototype.setMargin=function(u){return this.then((function(){switch(i(u)){case"number":u=[u,u,u,u];case"array":if(u.length===2&&(u=[u[0],u[1],u[0],u[1]]),u.length===4)break;default:return this.error("Invalid margin array.")}this.opt.margin=u})).then(this.setPageSize)},o.prototype.setPageSize=function(u){function h(f,g){return Math.floor(f*g/72*96)}return this.then((function(){(u=u||Rt.getPageSize(this.opt.jsPDF)).hasOwnProperty("inner")||(u.inner={width:u.width-this.opt.margin[1]-this.opt.margin[3],height:u.height-this.opt.margin[0]-this.opt.margin[2]},u.inner.px={width:h(u.inner.width,u.k),height:h(u.inner.height,u.k)},u.inner.ratio=u.inner.height/u.inner.width),this.prop.pageSize=u}))},o.prototype.setProgress=function(u,h,f,g){return u!=null&&(this.progress.val=u),h!=null&&(this.progress.state=h),f!=null&&(this.progress.n=f),g!=null&&(this.progress.stack=g),this.progress.ratio=this.progress.val/this.progress.state,this},o.prototype.updateProgress=function(u,h,f,g){return this.setProgress(u?this.progress.val+u:null,h||null,f?this.progress.n+f:null,g?this.progress.stack.concat(g):null)},o.prototype.then=function(u,h){var f=this;return this.thenCore(u,h,(function(g,v){return f.updateProgress(null,null,1,[g]),Promise.prototype.then.call(this,(function(y){return f.updateProgress(null,g),y})).then(g,v).then((function(y){return f.updateProgress(1),y}))}))},o.prototype.thenCore=function(u,h,f){f=f||Promise.prototype.then,u&&(u=u.bind(this)),h&&(h=h.bind(this));var g=Promise.toString().indexOf("[native code]")!==-1&&Promise.name==="Promise"?this:o.convert(Object.assign({},this),Promise.prototype),v=f.call(g,u,h);return o.convert(v,this.__proto__)},o.prototype.thenExternal=function(u,h){return Promise.prototype.then.call(this,u,h)},o.prototype.thenList=function(u){var h=this;return u.forEach((function(f){h=h.thenCore(f)})),h},o.prototype.catch=function(u){u&&(u=u.bind(this));var h=Promise.prototype.catch.call(this,u);return o.convert(h,this)},o.prototype.catchExternal=function(u){return Promise.prototype.catch.call(this,u)},o.prototype.error=function(u){return this.then((function(){throw new Error(u)}))},o.prototype.using=o.prototype.set,o.prototype.saveAs=o.prototype.save,o.prototype.export=o.prototype.output,o.prototype.run=o.prototype.then,Rt.getPageSize=function(u,h,f){if(ge(u)==="object"){var g=u;u=g.orientation,h=g.unit||h,f=g.format||f}h=h||"mm",f=f||"a4",u=(""+(u||"P")).toLowerCase();var v,y=(""+f).toLowerCase(),N={a0:[2383.94,3370.39],a1:[1683.78,2383.94],a2:[1190.55,1683.78],a3:[841.89,1190.55],a4:[595.28,841.89],a5:[419.53,595.28],a6:[297.64,419.53],a7:[209.76,297.64],a8:[147.4,209.76],a9:[104.88,147.4],a10:[73.7,104.88],b0:[2834.65,4008.19],b1:[2004.09,2834.65],b2:[1417.32,2004.09],b3:[1000.63,1417.32],b4:[708.66,1000.63],b5:[498.9,708.66],b6:[354.33,498.9],b7:[249.45,354.33],b8:[175.75,249.45],b9:[124.72,175.75],b10:[87.87,124.72],c0:[2599.37,3676.54],c1:[1836.85,2599.37],c2:[1298.27,1836.85],c3:[918.43,1298.27],c4:[649.13,918.43],c5:[459.21,649.13],c6:[323.15,459.21],c7:[229.61,323.15],c8:[161.57,229.61],c9:[113.39,161.57],c10:[79.37,113.39],dl:[311.81,623.62],letter:[612,792],"government-letter":[576,756],legal:[612,1008],"junior-legal":[576,360],ledger:[1224,792],tabloid:[792,1224],"credit-card":[153,243]};switch(h){case"pt":v=1;break;case"mm":v=72/25.4;break;case"cm":v=72/2.54;break;case"in":v=72;break;case"px":v=.75;break;case"pc":case"em":v=12;break;case"ex":v=6;break;default:throw"Invalid unit: "+h}var d,C=0,F=0;if(N.hasOwnProperty(y))C=N[y][1]/v,F=N[y][0]/v;else try{C=f[1],F=f[0]}catch{throw new Error("Invalid format: "+f)}if(u==="p"||u==="portrait")u="p",F>C&&(d=F,F=C,C=d);else{if(u!=="l"&&u!=="landscape")throw"Invalid orientation: "+u;u="l",C>F&&(d=F,F=C,C=d)}return{width:F,height:C,unit:h,k:v,orientation:u}},r.html=function(u,h){(h=h||{}).callback=h.callback||function(){},h.html2canvas=h.html2canvas||{},h.html2canvas.canvas=h.html2canvas.canvas||this.canvas,h.jsPDF=h.jsPDF||this,h.fontFaces=h.fontFaces?h.fontFaces.map(Os):null;var f=new o(h);return h.worker?f:f.from(u).doCallback()}})(Rt.API),Rt.API.addJS=function(r){return Rl=r,this.internal.events.subscribe("postPutResources",(function(){fo=this.internal.newObject(),this.internal.out("<<"),this.internal.out("/Names [(EmbeddedJS) "+(fo+1)+" 0 R]"),this.internal.out(">>"),this.internal.out("endobj"),ql=this.internal.newObject(),this.internal.out("<<"),this.internal.out("/S /JavaScript"),this.internal.out("/JS ("+Rl+")"),this.internal.out(">>"),this.internal.out("endobj")})),this.internal.events.subscribe("putCatalog",(function(){fo!==void 0&&ql!==void 0&&this.internal.out("/Names <</JavaScript "+fo+" 0 R>>")})),this},(function(r){var t;r.events.push(["postPutResources",function(){var n=this,i=/^(\d+) 0 obj$/;if(this.outline.root.children.length>0)for(var s=n.outline.render().split(/\r\n/),o=0;o<s.length;o++){var u=s[o],h=i.exec(u);if(h!=null){var f=h[1];n.internal.newObjectDeferredBegin(f,!1)}n.internal.write(u)}if(this.outline.createNamedDestinations){var g=this.internal.pages.length,v=[];for(o=0;o<g;o++){var y=n.internal.newObject();v.push(y);var N=n.internal.getPageInfo(o+1);n.internal.write("<< /D["+N.objId+" 0 R /XYZ null null null]>> endobj")}var d=n.internal.newObject();for(n.internal.write("<< /Names [ "),o=0;o<v.length;o++)n.internal.write("(page_"+(o+1)+")"+v[o]+" 0 R");n.internal.write(" ] >>","endobj"),t=n.internal.newObject(),n.internal.write("<< /Dests "+d+" 0 R"),n.internal.write(">>","endobj")}}]),r.events.push(["putCatalog",function(){this.outline.root.children.length>0&&(this.internal.write("/Outlines",this.outline.makeRef(this.outline.root)),this.outline.createNamedDestinations&&this.internal.write("/Names "+t+" 0 R"))}]),r.events.push(["initialized",function(){var n=this;n.outline={createNamedDestinations:!1,root:{children:[]}},n.outline.add=function(i,s,o){var u={title:s,options:o,children:[]};return i==null&&(i=this.root),i.children.push(u),u},n.outline.render=function(){return this.ctx={},this.ctx.val="",this.ctx.pdf=n,this.genIds_r(this.root),this.renderRoot(this.root),this.renderItems(this.root),this.ctx.val},n.outline.genIds_r=function(i){i.id=n.internal.newObjectDeferred();for(var s=0;s<i.children.length;s++)this.genIds_r(i.children[s])},n.outline.renderRoot=function(i){this.objStart(i),this.line("/Type /Outlines"),i.children.length>0&&(this.line("/First "+this.makeRef(i.children[0])),this.line("/Last "+this.makeRef(i.children[i.children.length-1]))),this.line("/Count "+this.count_r({count:0},i)),this.objEnd()},n.outline.renderItems=function(i){for(var s=this.ctx.pdf.internal.getVerticalCoordinateString,o=0;o<i.children.length;o++){var u=i.children[o];this.objStart(u),this.line("/Title "+this.makeString(u.title)),this.line("/Parent "+this.makeRef(i)),o>0&&this.line("/Prev "+this.makeRef(i.children[o-1])),o<i.children.length-1&&this.line("/Next "+this.makeRef(i.children[o+1])),u.children.length>0&&(this.line("/First "+this.makeRef(u.children[0])),this.line("/Last "+this.makeRef(u.children[u.children.length-1])));var h=this.count=this.count_r({count:0},u);if(h>0&&this.line("/Count "+h),u.options&&u.options.pageNumber){var f=n.internal.getPageInfo(u.options.pageNumber);this.line("/Dest ["+f.objId+" 0 R /XYZ 0 "+s(0)+" 0]")}this.objEnd()}for(var g=0;g<i.children.length;g++)this.renderItems(i.children[g])},n.outline.line=function(i){this.ctx.val+=i+`\r
|
44
44
|
`},n.outline.makeRef=function(i){return i.id+" 0 R"},n.outline.makeString=function(i){return"("+n.internal.pdfEscape(i)+")"},n.outline.objStart=function(i){this.ctx.val+=`\r
|
45
45
|
`+i.id+` 0 obj\r
|
46
46
|
<<\r
|
@@ -48,7 +48,7 @@ T* `):l.join(` Tj
|
|
48
48
|
endobj\r
|
49
49
|
`},n.outline.count_r=function(i,s){for(var o=0;o<s.children.length;o++)i.count++,this.count_r(i,s.children[o]);return i.count}}])})(Rt.API),(function(r){var t=[192,193,194,195,196,197,198,199];r.processJPEG=function(n,i,s,o,u,h){var f,g=this.decode.DCT_DECODE,v=null;if(typeof n=="string"||this.__addimage__.isArrayBuffer(n)||this.__addimage__.isArrayBufferView(n)){switch(n=u||n,n=this.__addimage__.isArrayBuffer(n)?new Uint8Array(n):n,(f=(function(y){for(var N,d=256*y.charCodeAt(4)+y.charCodeAt(5),C=y.length,F={width:0,height:0,numcomponents:1},D=4;D<C;D+=2){if(D+=d,t.indexOf(y.charCodeAt(D+1))!==-1){N=256*y.charCodeAt(D+5)+y.charCodeAt(D+6),F={width:256*y.charCodeAt(D+7)+y.charCodeAt(D+8),height:N,numcomponents:y.charCodeAt(D+9)};break}d=256*y.charCodeAt(D+2)+y.charCodeAt(D+3)}return F})(n=this.__addimage__.isArrayBufferView(n)?this.__addimage__.arrayBufferToBinaryString(n):n)).numcomponents){case 1:h=this.color_spaces.DEVICE_GRAY;break;case 4:h=this.color_spaces.DEVICE_CMYK;break;case 3:h=this.color_spaces.DEVICE_RGB}v={data:n,width:f.width,height:f.height,colorSpace:h,bitsPerComponent:8,filter:g,index:i,alias:s}}return v}})(Rt.API);var _i,po,zl,Ul,Hl,_c=(function(){var r,t,n;function i(o){var u,h,f,g,v,y,N,d,C,F,D,P,M,W;for(this.data=o,this.pos=8,this.palette=[],this.imgData=[],this.transparency={},this.animation=null,this.text={},y=null;;){switch(u=this.readUInt32(),C=function(){var tt,ot;for(ot=[],tt=0;tt<4;++tt)ot.push(String.fromCharCode(this.data[this.pos++]));return ot}.call(this).join("")){case"IHDR":this.width=this.readUInt32(),this.height=this.readUInt32(),this.bits=this.data[this.pos++],this.colorType=this.data[this.pos++],this.compressionMethod=this.data[this.pos++],this.filterMethod=this.data[this.pos++],this.interlaceMethod=this.data[this.pos++];break;case"acTL":this.animation={numFrames:this.readUInt32(),numPlays:this.readUInt32()||1/0,frames:[]};break;case"PLTE":this.palette=this.read(u);break;case"fcTL":y&&this.animation.frames.push(y),this.pos+=4,y={width:this.readUInt32(),height:this.readUInt32(),xOffset:this.readUInt32(),yOffset:this.readUInt32()},v=this.readUInt16(),g=this.readUInt16()||100,y.delay=1e3*v/g,y.disposeOp=this.data[this.pos++],y.blendOp=this.data[this.pos++],y.data=[];break;case"IDAT":case"fdAT":for(C==="fdAT"&&(this.pos+=4,u-=4),o=y?.data||this.imgData,P=0;0<=u?P<u:P>u;0<=u?++P:--P)o.push(this.data[this.pos++]);break;case"tRNS":switch(this.transparency={},this.colorType){case 3:if(f=this.palette.length/3,this.transparency.indexed=this.read(u),this.transparency.indexed.length>f)throw new Error("More transparent colors than palette size");if((F=f-this.transparency.indexed.length)>0)for(M=0;0<=F?M<F:M>F;0<=F?++M:--M)this.transparency.indexed.push(255);break;case 0:this.transparency.grayscale=this.read(u)[0];break;case 2:this.transparency.rgb=this.read(u)}break;case"tEXt":N=(D=this.read(u)).indexOf(0),d=String.fromCharCode.apply(String,D.slice(0,N)),this.text[d]=String.fromCharCode.apply(String,D.slice(N+1));break;case"IEND":return y&&this.animation.frames.push(y),this.colors=function(){switch(this.colorType){case 0:case 3:case 4:return 1;case 2:case 6:return 3}}.call(this),this.hasAlphaChannel=(W=this.colorType)===4||W===6,h=this.colors+(this.hasAlphaChannel?1:0),this.pixelBitlength=this.bits*h,this.colorSpace=function(){switch(this.colors){case 1:return"DeviceGray";case 3:return"DeviceRGB"}}.call(this),void(this.imgData=new Uint8Array(this.imgData));default:this.pos+=u}if(this.pos+=4,this.pos>this.data.length)throw new Error("Incomplete or corrupt PNG file")}}i.prototype.read=function(o){var u,h;for(h=[],u=0;0<=o?u<o:u>o;0<=o?++u:--u)h.push(this.data[this.pos++]);return h},i.prototype.readUInt32=function(){return this.data[this.pos++]<<24|this.data[this.pos++]<<16|this.data[this.pos++]<<8|this.data[this.pos++]},i.prototype.readUInt16=function(){return this.data[this.pos++]<<8|this.data[this.pos++]},i.prototype.decodePixels=function(o){var u=this.pixelBitlength/8,h=new Uint8Array(this.width*this.height*u),f=0,g=this;if(o==null&&(o=this.imgData),o.length===0)return new Uint8Array(0);function v(y,N,d,C){var F,D,P,M,W,tt,ot,yt,et,z,it,dt,_,k,G,E,lt,at,ht,$,ct,pt=Math.ceil((g.width-y)/d),Ot=Math.ceil((g.height-N)/C),A=g.width==pt&&g.height==Ot;for(k=u*pt,dt=A?h:new Uint8Array(k*Ot),tt=o.length,_=0,D=0;_<Ot&&f<tt;){switch(o[f++]){case 0:for(M=lt=0;lt<k;M=lt+=1)dt[D++]=o[f++];break;case 1:for(M=at=0;at<k;M=at+=1)F=o[f++],W=M<u?0:dt[D-u],dt[D++]=(F+W)%256;break;case 2:for(M=ht=0;ht<k;M=ht+=1)F=o[f++],P=(M-M%u)/u,G=_&&dt[(_-1)*k+P*u+M%u],dt[D++]=(G+F)%256;break;case 3:for(M=$=0;$<k;M=$+=1)F=o[f++],P=(M-M%u)/u,W=M<u?0:dt[D-u],G=_&&dt[(_-1)*k+P*u+M%u],dt[D++]=(F+Math.floor((W+G)/2))%256;break;case 4:for(M=ct=0;ct<k;M=ct+=1)F=o[f++],P=(M-M%u)/u,W=M<u?0:dt[D-u],_===0?G=E=0:(G=dt[(_-1)*k+P*u+M%u],E=P&&dt[(_-1)*k+(P-1)*u+M%u]),ot=W+G-E,yt=Math.abs(ot-W),z=Math.abs(ot-G),it=Math.abs(ot-E),et=yt<=z&&yt<=it?W:z<=it?G:E,dt[D++]=(F+et)%256;break;default:throw new Error("Invalid filter algorithm: "+o[f-1])}if(!A){var O=((N+_*C)*g.width+y)*u,B=_*k;for(M=0;M<pt;M+=1){for(var R=0;R<u;R+=1)h[O++]=dt[B++];O+=(d-1)*u}}_++}}return o=kl(o),g.interlaceMethod==1?(v(0,0,8,8),v(4,0,8,8),v(0,4,4,8),v(2,0,4,4),v(0,2,2,4),v(1,0,2,2),v(0,1,1,2)):v(0,0,1,1),h},i.prototype.decodePalette=function(){var o,u,h,f,g,v,y,N,d;for(h=this.palette,v=this.transparency.indexed||[],g=new Uint8Array((v.length||0)+h.length),f=0,o=0,u=y=0,N=h.length;y<N;u=y+=3)g[f++]=h[u],g[f++]=h[u+1],g[f++]=h[u+2],g[f++]=(d=v[o++])!=null?d:255;return g},i.prototype.copyToImageData=function(o,u){var h,f,g,v,y,N,d,C,F,D,P;if(f=this.colors,F=null,h=this.hasAlphaChannel,this.palette.length&&(F=(P=this._decodedPalette)!=null?P:this._decodedPalette=this.decodePalette(),f=4,h=!0),C=(g=o.data||o).length,y=F||u,v=N=0,f===1)for(;v<C;)d=F?4*u[v/4]:N,D=y[d++],g[v++]=D,g[v++]=D,g[v++]=D,g[v++]=h?y[d++]:255,N=d;else for(;v<C;)d=F?4*u[v/4]:N,g[v++]=y[d++],g[v++]=y[d++],g[v++]=y[d++],g[v++]=h?y[d++]:255,N=d},i.prototype.decode=function(){var o;return o=new Uint8Array(this.width*this.height*4),this.copyToImageData(o,this.decodePixels()),o};var s=function(){if(Object.prototype.toString.call(Ht)==="[object Window]"){try{t=Ht.document.createElement("canvas"),n=t.getContext("2d")}catch{return!1}return!0}return!1};return s(),r=function(o){var u;if(s()===!0)return n.width=o.width,n.height=o.height,n.clearRect(0,0,o.width,o.height),n.putImageData(o,0,0),(u=new Image).src=t.toDataURL(),u;throw new Error("This method requires a Browser with Canvas-capability.")},i.prototype.decodeFrames=function(o){var u,h,f,g,v,y,N,d;if(this.animation){for(d=[],h=v=0,y=(N=this.animation.frames).length;v<y;h=++v)u=N[h],f=o.createImageData(u.width,u.height),g=this.decodePixels(new Uint8Array(u.data)),this.copyToImageData(f,g),u.imageData=f,d.push(u.image=r(f));return d}},i.prototype.renderFrame=function(o,u){var h,f,g;return h=(f=this.animation.frames)[u],g=f[u-1],u===0&&o.clearRect(0,0,this.width,this.height),g?.disposeOp===1?o.clearRect(g.xOffset,g.yOffset,g.width,g.height):g?.disposeOp===2&&o.putImageData(g.imageData,g.xOffset,g.yOffset),h.blendOp===0&&o.clearRect(h.xOffset,h.yOffset,h.width,h.height),o.drawImage(h.image,h.xOffset,h.yOffset)},i.prototype.animate=function(o){var u,h,f,g,v,y,N=this;return h=0,y=this.animation,g=y.numFrames,f=y.frames,v=y.numPlays,(u=function(){var d,C;if(d=h++%g,C=f[d],N.renderFrame(o,d),g>1&&h/g<v)return N.animation._timeout=setTimeout(u,C.delay)})()},i.prototype.stopAnimation=function(){var o;return clearTimeout((o=this.animation)!=null?o._timeout:void 0)},i.prototype.render=function(o){var u,h;return o._png&&o._png.stopAnimation(),o._png=this,o.width=this.width,o.height=this.height,u=o.getContext("2d"),this.animation?(this.decodeFrames(u),this.animate(u)):(h=u.createImageData(this.width,this.height),this.copyToImageData(h,this.decodePixels()),u.putImageData(h,0,0))},i})();function Fc(r){var t=0;if(r[t++]!==71||r[t++]!==73||r[t++]!==70||r[t++]!==56||(r[t++]+1&253)!=56||r[t++]!==97)throw new Error("Invalid GIF 87a/89a header.");var n=r[t++]|r[t++]<<8,i=r[t++]|r[t++]<<8,s=r[t++],o=s>>7,u=1<<(7&s)+1;r[t++],r[t++];var h=null,f=null;o&&(h=t,f=u,t+=3*u);var g=!0,v=[],y=0,N=null,d=0,C=null;for(this.width=n,this.height=i;g&&t<r.length;)switch(r[t++]){case 33:switch(r[t++]){case 255:if(r[t]!==11||r[t+1]==78&&r[t+2]==69&&r[t+3]==84&&r[t+4]==83&&r[t+5]==67&&r[t+6]==65&&r[t+7]==80&&r[t+8]==69&&r[t+9]==50&&r[t+10]==46&&r[t+11]==48&&r[t+12]==3&&r[t+13]==1&&r[t+16]==0)t+=14,C=r[t++]|r[t++]<<8,t++;else for(t+=12;;){if(!((_=r[t++])>=0))throw Error("Invalid block size");if(_===0)break;t+=_}break;case 249:if(r[t++]!==4||r[t+4]!==0)throw new Error("Invalid graphics extension block.");var F=r[t++];y=r[t++]|r[t++]<<8,N=r[t++],(1&F)==0&&(N=null),d=F>>2&7,t++;break;case 254:for(;;){if(!((_=r[t++])>=0))throw Error("Invalid block size");if(_===0)break;t+=_}break;default:throw new Error("Unknown graphic control label: 0x"+r[t-1].toString(16))}break;case 44:var D=r[t++]|r[t++]<<8,P=r[t++]|r[t++]<<8,M=r[t++]|r[t++]<<8,W=r[t++]|r[t++]<<8,tt=r[t++],ot=tt>>6&1,yt=1<<(7&tt)+1,et=h,z=f,it=!1;tt>>7&&(it=!0,et=t,z=yt,t+=3*yt);var dt=t;for(t++;;){var _;if(!((_=r[t++])>=0))throw Error("Invalid block size");if(_===0)break;t+=_}v.push({x:D,y:P,width:M,height:W,has_local_palette:it,palette_offset:et,palette_size:z,data_offset:dt,data_length:t-dt,transparent_index:N,interlaced:!!ot,delay:y,disposal:d});break;case 59:g=!1;break;default:throw new Error("Unknown gif block: 0x"+r[t-1].toString(16))}this.numFrames=function(){return v.length},this.loopCount=function(){return C},this.frameInfo=function(k){if(k<0||k>=v.length)throw new Error("Frame index out of range.");return v[k]},this.decodeAndBlitFrameBGRA=function(k,G){var E=this.frameInfo(k),lt=E.width*E.height,at=new Uint8Array(lt);Wl(r,E.data_offset,at,lt);var ht=E.palette_offset,$=E.transparent_index;$===null&&($=256);var ct=E.width,pt=n-ct,Ot=ct,A=4*(E.y*n+E.x),O=4*((E.y+E.height)*n+E.x),B=A,R=4*pt;E.interlaced===!0&&(R+=4*n*7);for(var Y=8,Q=0,nt=at.length;Q<nt;++Q){var rt=at[Q];if(Ot===0&&(Ot=ct,(B+=R)>=O&&(R=4*pt+4*n*(Y-1),B=A+(ct+pt)*(Y<<1),Y>>=1)),rt===$)B+=4;else{var Lt=r[ht+3*rt],At=r[ht+3*rt+1],kt=r[ht+3*rt+2];G[B++]=kt,G[B++]=At,G[B++]=Lt,G[B++]=255}--Ot}},this.decodeAndBlitFrameRGBA=function(k,G){var E=this.frameInfo(k),lt=E.width*E.height,at=new Uint8Array(lt);Wl(r,E.data_offset,at,lt);var ht=E.palette_offset,$=E.transparent_index;$===null&&($=256);var ct=E.width,pt=n-ct,Ot=ct,A=4*(E.y*n+E.x),O=4*((E.y+E.height)*n+E.x),B=A,R=4*pt;E.interlaced===!0&&(R+=4*n*7);for(var Y=8,Q=0,nt=at.length;Q<nt;++Q){var rt=at[Q];if(Ot===0&&(Ot=ct,(B+=R)>=O&&(R=4*pt+4*n*(Y-1),B=A+(ct+pt)*(Y<<1),Y>>=1)),rt===$)B+=4;else{var Lt=r[ht+3*rt],At=r[ht+3*rt+1],kt=r[ht+3*rt+2];G[B++]=Lt,G[B++]=At,G[B++]=kt,G[B++]=255}--Ot}}}function Wl(r,t,n,i){for(var s=r[t++],o=1<<s,u=o+1,h=u+1,f=s+1,g=(1<<f)-1,v=0,y=0,N=0,d=r[t++],C=new Int32Array(4096),F=null;;){for(;v<16&&d!==0;)y|=r[t++]<<v,v+=8,d===1?d=r[t++]:--d;if(v<f)break;var D=y&g;if(y>>=f,v-=f,D!==o){if(D===u)break;for(var P=D<h?D:F,M=0,W=P;W>o;)W=C[W]>>8,++M;var tt=W;if(N+M+(P!==D?1:0)>i)return void be.log("Warning, gif stream longer than expected.");n[N++]=tt;var ot=N+=M;for(P!==D&&(n[N++]=tt),W=P;M--;)W=C[W],n[--ot]=255&W,W>>=8;F!==null&&h<4096&&(C[h++]=F<<8|tt,h>=g+1&&f<12&&(++f,g=g<<1|1)),F=D}else h=u+1,g=(1<<(f=s+1))-1,F=null}return N!==i&&be.log("Warning, gif stream shorter than expected."),n}function Ps(r){var t,n,i,s,o,u=Math.floor,h=new Array(64),f=new Array(64),g=new Array(64),v=new Array(64),y=new Array(65535),N=new Array(65535),d=new Array(64),C=new Array(64),F=[],D=0,P=7,M=new Array(64),W=new Array(64),tt=new Array(64),ot=new Array(256),yt=new Array(2048),et=[0,1,5,6,14,15,27,28,2,4,7,13,16,26,29,42,3,8,12,17,25,30,41,43,9,11,18,24,31,40,44,53,10,19,23,32,39,45,52,54,20,22,33,38,46,51,55,60,21,34,37,47,50,56,59,61,35,36,48,49,57,58,62,63],z=[0,0,1,5,1,1,1,1,1,1,0,0,0,0,0,0,0],it=[0,1,2,3,4,5,6,7,8,9,10,11],dt=[0,0,2,1,3,3,2,4,3,5,5,4,4,0,0,1,125],_=[1,2,3,0,4,17,5,18,33,49,65,6,19,81,97,7,34,113,20,50,129,145,161,8,35,66,177,193,21,82,209,240,36,51,98,114,130,9,10,22,23,24,25,26,37,38,39,40,41,42,52,53,54,55,56,57,58,67,68,69,70,71,72,73,74,83,84,85,86,87,88,89,90,99,100,101,102,103,104,105,106,115,116,117,118,119,120,121,122,131,132,133,134,135,136,137,138,146,147,148,149,150,151,152,153,154,162,163,164,165,166,167,168,169,170,178,179,180,181,182,183,184,185,186,194,195,196,197,198,199,200,201,202,210,211,212,213,214,215,216,217,218,225,226,227,228,229,230,231,232,233,234,241,242,243,244,245,246,247,248,249,250],k=[0,0,3,1,1,1,1,1,1,1,1,1,0,0,0,0,0],G=[0,1,2,3,4,5,6,7,8,9,10,11],E=[0,0,2,1,2,4,4,3,4,7,5,4,4,0,1,2,119],lt=[0,1,2,3,17,4,5,33,49,6,18,65,81,7,97,113,19,34,50,129,8,20,66,145,161,177,193,9,35,51,82,240,21,98,114,209,10,22,36,52,225,37,241,23,24,25,26,38,39,40,41,42,53,54,55,56,57,58,67,68,69,70,71,72,73,74,83,84,85,86,87,88,89,90,99,100,101,102,103,104,105,106,115,116,117,118,119,120,121,122,130,131,132,133,134,135,136,137,138,146,147,148,149,150,151,152,153,154,162,163,164,165,166,167,168,169,170,178,179,180,181,182,183,184,185,186,194,195,196,197,198,199,200,201,202,210,211,212,213,214,215,216,217,218,226,227,228,229,230,231,232,233,234,242,243,244,245,246,247,248,249,250];function at(A,O){for(var B=0,R=0,Y=new Array,Q=1;Q<=16;Q++){for(var nt=1;nt<=A[Q];nt++)Y[O[R]]=[],Y[O[R]][0]=B,Y[O[R]][1]=Q,R++,B++;B*=2}return Y}function ht(A){for(var O=A[0],B=A[1]-1;B>=0;)O&1<<B&&(D|=1<<P),B--,--P<0&&(D==255?($(255),$(0)):$(D),P=7,D=0)}function $(A){F.push(A)}function ct(A){$(A>>8&255),$(255&A)}function pt(A,O,B,R,Y){for(var Q,nt=Y[0],rt=Y[240],Lt=(function(xt,Nt){var It,Ft,Tt,Vt,Qt,te,ie,pe,Wt,ee,Ct=0;for(Wt=0;Wt<8;++Wt){It=xt[Ct],Ft=xt[Ct+1],Tt=xt[Ct+2],Vt=xt[Ct+3],Qt=xt[Ct+4],te=xt[Ct+5],ie=xt[Ct+6];var Je=It+(pe=xt[Ct+7]),oe=It-pe,_n=Ft+ie,me=Ft-ie,xe=Tt+te,Hn=Tt-te,ue=Vt+Qt,Mr=Vt-Qt,Le=Je+ue,Fn=Je-ue,rr=_n+xe,Ne=_n-xe;xt[Ct]=Le+rr,xt[Ct+4]=Le-rr;var Jt=.707106781*(Ne+Fn);xt[Ct+2]=Fn+Jt,xt[Ct+6]=Fn-Jt;var ce=.382683433*((Le=Mr+Hn)-(Ne=me+oe)),Dr=.5411961*Le+ce,We=1.306562965*Ne+ce,Wn=.707106781*(rr=Hn+me),Gn=oe+Wn,zt=oe-Wn;xt[Ct+5]=zt+Dr,xt[Ct+3]=zt-Dr,xt[Ct+1]=Gn+We,xt[Ct+7]=Gn-We,Ct+=8}for(Ct=0,Wt=0;Wt<8;++Wt){It=xt[Ct],Ft=xt[Ct+8],Tt=xt[Ct+16],Vt=xt[Ct+24],Qt=xt[Ct+32],te=xt[Ct+40],ie=xt[Ct+48];var kn=It+(pe=xt[Ct+56]),Vn=It-pe,an=Ft+ie,Ee=Ft-ie,Me=Tt+te,fn=Tt-te,Zr=Vt+Qt,ir=Vt-Qt,In=kn+Zr,Cn=kn-Zr,On=an+Me,Jn=an-Me;xt[Ct]=In+On,xt[Ct+32]=In-On;var bn=.707106781*(Jn+Cn);xt[Ct+16]=Cn+bn,xt[Ct+48]=Cn-bn;var Yn=.382683433*((In=ir+fn)-(Jn=Ee+Vn)),Br=.5411961*In+Yn,$r=1.306562965*Jn+Yn,Qr=.707106781*(On=fn+Ee),ti=Vn+Qr,ei=Vn-Qr;xt[Ct+40]=ei+Br,xt[Ct+24]=ei-Br,xt[Ct+8]=ti+$r,xt[Ct+56]=ti-$r,Ct++}for(Wt=0;Wt<64;++Wt)ee=xt[Wt]*Nt[Wt],d[Wt]=ee>0?ee+.5|0:ee-.5|0;return d})(A,O),At=0;At<64;++At)C[et[At]]=Lt[At];var kt=C[0]-B;B=C[0],kt==0?ht(R[0]):(ht(R[N[Q=32767+kt]]),ht(y[Q]));for(var Pt=63;Pt>0&&C[Pt]==0;)Pt--;if(Pt==0)return ht(nt),B;for(var Ut,ft=1;ft<=Pt;){for(var T=ft;C[ft]==0&&ft<=Pt;)++ft;var Kt=ft-T;if(Kt>=16){Ut=Kt>>4;for(var Bt=1;Bt<=Ut;++Bt)ht(rt);Kt&=15}Q=32767+C[ft],ht(Y[(Kt<<4)+N[Q]]),ht(y[Q]),ft++}return Pt!=63&&ht(nt),B}function Ot(A){A=Math.min(Math.max(A,1),100),o!=A&&((function(O){for(var B=[16,11,10,16,24,40,51,61,12,12,14,19,26,58,60,55,14,13,16,24,40,57,69,56,14,17,22,29,51,87,80,62,18,22,37,56,68,109,103,77,24,35,55,64,81,104,113,92,49,64,78,87,103,121,120,101,72,92,95,98,112,100,103,99],R=0;R<64;R++){var Y=u((B[R]*O+50)/100);Y=Math.min(Math.max(Y,1),255),h[et[R]]=Y}for(var Q=[17,18,24,47,99,99,99,99,18,21,26,66,99,99,99,99,24,26,56,99,99,99,99,99,47,66,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99],nt=0;nt<64;nt++){var rt=u((Q[nt]*O+50)/100);rt=Math.min(Math.max(rt,1),255),f[et[nt]]=rt}for(var Lt=[1,1.387039845,1.306562965,1.175875602,1,.785694958,.5411961,.275899379],At=0,kt=0;kt<8;kt++)for(var Pt=0;Pt<8;Pt++)g[At]=1/(h[et[At]]*Lt[kt]*Lt[Pt]*8),v[At]=1/(f[et[At]]*Lt[kt]*Lt[Pt]*8),At++})(A<50?Math.floor(5e3/A):Math.floor(200-2*A)),o=A)}this.encode=function(A,O){O&&Ot(O),F=new Array,D=0,P=7,ct(65496),ct(65504),ct(16),$(74),$(70),$(73),$(70),$(0),$(1),$(1),$(0),ct(1),ct(1),$(0),$(0),(function(){ct(65499),ct(132),$(0);for(var Ft=0;Ft<64;Ft++)$(h[Ft]);$(1);for(var Tt=0;Tt<64;Tt++)$(f[Tt])})(),(function(Ft,Tt){ct(65472),ct(17),$(8),ct(Tt),ct(Ft),$(3),$(1),$(17),$(0),$(2),$(17),$(1),$(3),$(17),$(1)})(A.width,A.height),(function(){ct(65476),ct(418),$(0);for(var Ft=0;Ft<16;Ft++)$(z[Ft+1]);for(var Tt=0;Tt<=11;Tt++)$(it[Tt]);$(16);for(var Vt=0;Vt<16;Vt++)$(dt[Vt+1]);for(var Qt=0;Qt<=161;Qt++)$(_[Qt]);$(1);for(var te=0;te<16;te++)$(k[te+1]);for(var ie=0;ie<=11;ie++)$(G[ie]);$(17);for(var pe=0;pe<16;pe++)$(E[pe+1]);for(var Wt=0;Wt<=161;Wt++)$(lt[Wt])})(),ct(65498),ct(12),$(3),$(1),$(0),$(2),$(17),$(3),$(17),$(0),$(63),$(0);var B=0,R=0,Y=0;D=0,P=7,this.encode.displayName="_encode_";for(var Q,nt,rt,Lt,At,kt,Pt,Ut,ft,T=A.data,Kt=A.width,Bt=A.height,xt=4*Kt,Nt=0;Nt<Bt;){for(Q=0;Q<xt;){for(At=xt*Nt+Q,Pt=-1,Ut=0,ft=0;ft<64;ft++)kt=At+(Ut=ft>>3)*xt+(Pt=4*(7&ft)),Nt+Ut>=Bt&&(kt-=xt*(Nt+1+Ut-Bt)),Q+Pt>=xt&&(kt-=Q+Pt-xt+4),nt=T[kt++],rt=T[kt++],Lt=T[kt++],M[ft]=(yt[nt]+yt[rt+256>>0]+yt[Lt+512>>0]>>16)-128,W[ft]=(yt[nt+768>>0]+yt[rt+1024>>0]+yt[Lt+1280>>0]>>16)-128,tt[ft]=(yt[nt+1280>>0]+yt[rt+1536>>0]+yt[Lt+1792>>0]>>16)-128;B=pt(M,g,B,t,i),R=pt(W,v,R,n,s),Y=pt(tt,v,Y,n,s),Q+=32}Nt+=8}if(P>=0){var It=[];It[1]=P+1,It[0]=(1<<P+1)-1,ht(It)}return ct(65497),new Uint8Array(F)},r=r||50,(function(){for(var A=String.fromCharCode,O=0;O<256;O++)ot[O]=A(O)})(),t=at(z,it),n=at(k,G),i=at(dt,_),s=at(E,lt),(function(){for(var A=1,O=2,B=1;B<=15;B++){for(var R=A;R<O;R++)N[32767+R]=B,y[32767+R]=[],y[32767+R][1]=B,y[32767+R][0]=R;for(var Y=-(O-1);Y<=-A;Y++)N[32767+Y]=B,y[32767+Y]=[],y[32767+Y][1]=B,y[32767+Y][0]=O-1+Y;A<<=1,O<<=1}})(),(function(){for(var A=0;A<256;A++)yt[A]=19595*A,yt[A+256>>0]=38470*A,yt[A+512>>0]=7471*A+32768,yt[A+768>>0]=-11059*A,yt[A+1024>>0]=-21709*A,yt[A+1280>>0]=32768*A+8421375,yt[A+1536>>0]=-27439*A,yt[A+1792>>0]=-5329*A})(),Ot(r)}function Rn(r,t){if(this.pos=0,this.buffer=r,this.datav=new DataView(r.buffer),this.is_with_alpha=!!t,this.bottom_up=!0,this.flag=String.fromCharCode(this.buffer[0])+String.fromCharCode(this.buffer[1]),this.pos+=2,["BM","BA","CI","CP","IC","PT"].indexOf(this.flag)===-1)throw new Error("Invalid BMP File");this.parseHeader(),this.parseBGR()}function Gl(r){function t(z){if(!z)throw Error("assert :P")}function n(z,it,dt){for(var _=0;4>_;_++)if(z[it+_]!=dt.charCodeAt(_))return!0;return!1}function i(z,it,dt,_,k){for(var G=0;G<k;G++)z[it+G]=dt[_+G]}function s(z,it,dt,_){for(var k=0;k<_;k++)z[it+k]=dt}function o(z){return new Int32Array(z)}function u(z,it){for(var dt=[],_=0;_<z;_++)dt.push(new it);return dt}function h(z,it){var dt=[];return(function _(k,G,E){for(var lt=E[G],at=0;at<lt&&(k.push(E.length>G+1?[]:new it),!(E.length<G+1));at++)_(k[at],G+1,E)})(dt,0,z),dt}var f=function(){var z=this;function it(e,a){for(var c=1<<a-1>>>0;e&c;)c>>>=1;return c?(e&c-1)+c:e}function dt(e,a,c,p,m){t(!(p%c));do e[a+(p-=c)]=m;while(0<p)}function _(e,a,c,p,m){if(t(2328>=m),512>=m)var w=o(512);else if((w=o(m))==null)return 0;return(function(x,L,S,I,U,K){var Z,J,vt=L,st=1<<S,H=o(16),V=o(16);for(t(U!=0),t(I!=null),t(x!=null),t(0<S),J=0;J<U;++J){if(15<I[J])return 0;++H[I[J]]}if(H[0]==U)return 0;for(V[1]=0,Z=1;15>Z;++Z){if(H[Z]>1<<Z)return 0;V[Z+1]=V[Z]+H[Z]}for(J=0;J<U;++J)Z=I[J],0<I[J]&&(K[V[Z]++]=J);if(V[15]==1)return(I=new k).g=0,I.value=K[0],dt(x,vt,1,st,I),st;var gt,bt=-1,mt=st-1,Mt=0,St=1,qt=1,_t=1<<S;for(J=0,Z=1,U=2;Z<=S;++Z,U<<=1){if(St+=qt<<=1,0>(qt-=H[Z]))return 0;for(;0<H[Z];--H[Z])(I=new k).g=Z,I.value=K[J++],dt(x,vt+Mt,U,_t,I),Mt=it(Mt,Z)}for(Z=S+1,U=2;15>=Z;++Z,U<<=1){if(St+=qt<<=1,0>(qt-=H[Z]))return 0;for(;0<H[Z];--H[Z]){if(I=new k,(Mt&mt)!=bt){for(vt+=_t,gt=1<<(bt=Z)-S;15>bt&&!(0>=(gt-=H[bt]));)++bt,gt<<=1;st+=_t=1<<(gt=bt-S),x[L+(bt=Mt&mt)].g=gt+S,x[L+bt].value=vt-L-bt}I.g=Z-S,I.value=K[J++],dt(x,vt+(Mt>>S),U,_t,I),Mt=it(Mt,Z)}}return St!=2*V[15]-1?0:st})(e,a,c,p,m,w)}function k(){this.value=this.g=0}function G(){this.value=this.g=0}function E(){this.G=u(5,k),this.H=o(5),this.jc=this.Qb=this.qb=this.nd=0,this.pd=u(Ge,G)}function lt(e,a,c,p){t(e!=null),t(a!=null),t(2147483648>p),e.Ca=254,e.I=0,e.b=-8,e.Ka=0,e.oa=a,e.pa=c,e.Jd=a,e.Yc=c+p,e.Zc=4<=p?c+p-4+1:c,Q(e)}function at(e,a){for(var c=0;0<a--;)c|=rt(e,128)<<a;return c}function ht(e,a){var c=at(e,a);return nt(e)?-c:c}function $(e,a,c,p){var m,w=0;for(t(e!=null),t(a!=null),t(4294967288>p),e.Sb=p,e.Ra=0,e.u=0,e.h=0,4<p&&(p=4),m=0;m<p;++m)w+=a[c+m]<<8*m;e.Ra=w,e.bb=p,e.oa=a,e.pa=c}function ct(e){for(;8<=e.u&&e.bb<e.Sb;)e.Ra>>>=8,e.Ra+=e.oa[e.pa+e.bb]<<mi-8>>>0,++e.bb,e.u-=8;B(e)&&(e.h=1,e.u=0)}function pt(e,a){if(t(0<=a),!e.h&&a<=gi){var c=O(e)&di[a];return e.u+=a,ct(e),c}return e.h=1,e.u=0}function Ot(){this.b=this.Ca=this.I=0,this.oa=[],this.pa=0,this.Jd=[],this.Yc=0,this.Zc=[],this.Ka=0}function A(){this.Ra=0,this.oa=[],this.h=this.u=this.bb=this.Sb=this.pa=0}function O(e){return e.Ra>>>(e.u&mi-1)>>>0}function B(e){return t(e.bb<=e.Sb),e.h||e.bb==e.Sb&&e.u>mi}function R(e,a){e.u=a,e.h=B(e)}function Y(e){e.u>=ta&&(t(e.u>=ta),ct(e))}function Q(e){t(e!=null&&e.oa!=null),e.pa<e.Zc?(e.I=(e.oa[e.pa++]|e.I<<8)>>>0,e.b+=8):(t(e!=null&&e.oa!=null),e.pa<e.Yc?(e.b+=8,e.I=e.oa[e.pa++]|e.I<<8):e.Ka?e.b=0:(e.I<<=8,e.b+=8,e.Ka=1))}function nt(e){return at(e,1)}function rt(e,a){var c=e.Ca;0>e.b&&Q(e);var p=e.b,m=c*a>>>8,w=(e.I>>>p>m)+0;for(w?(c-=m,e.I-=m+1<<p>>>0):c=m+1,p=c,m=0;256<=p;)m+=8,p>>=8;return p=7^m+sn[p],e.b-=p,e.Ca=(c<<p)-1,w}function Lt(e,a,c){e[a+0]=c>>24&255,e[a+1]=c>>16&255,e[a+2]=c>>8&255,e[a+3]=c>>0&255}function At(e,a){return e[a+0]<<0|e[a+1]<<8}function kt(e,a){return At(e,a)|e[a+2]<<16}function Pt(e,a){return At(e,a)|At(e,a+2)<<16}function Ut(e,a){var c=1<<a;return t(e!=null),t(0<a),e.X=o(c),e.X==null?0:(e.Mb=32-a,e.Xa=a,1)}function ft(e,a){t(e!=null),t(a!=null),t(e.Xa==a.Xa),i(a.X,0,e.X,0,1<<a.Xa)}function T(){this.X=[],this.Xa=this.Mb=0}function Kt(e,a,c,p){t(c!=null),t(p!=null);var m=c[0],w=p[0];return m==0&&(m=(e*w+a/2)/a),w==0&&(w=(a*m+e/2)/e),0>=m||0>=w?0:(c[0]=m,p[0]=w,1)}function Bt(e,a){return e+(1<<a)-1>>>a}function xt(e,a){return((4278255360&e)+(4278255360&a)>>>0&4278255360)+((16711935&e)+(16711935&a)>>>0&16711935)>>>0}function Nt(e,a){z[a]=function(c,p,m,w,x,L,S){var I;for(I=0;I<x;++I){var U=z[e](L[S+I-1],m,w+I);L[S+I]=xt(c[p+I],U)}}}function It(){this.ud=this.hd=this.jd=0}function Ft(e,a){return((4278124286&(e^a))>>>1)+(e&a)>>>0}function Tt(e){return 0<=e&&256>e?e:0>e?0:255<e?255:void 0}function Vt(e,a){return Tt(e+(e-a+.5>>1))}function Qt(e,a,c){return Math.abs(a-c)-Math.abs(e-c)}function te(e,a,c,p,m,w,x){for(p=w[x-1],c=0;c<m;++c)w[x+c]=p=xt(e[a+c],p)}function ie(e,a,c,p,m){var w;for(w=0;w<c;++w){var x=e[a+w],L=x>>8&255,S=16711935&(S=(S=16711935&x)+((L<<16)+L));p[m+w]=(4278255360&x)+S>>>0}}function pe(e,a){a.jd=e>>0&255,a.hd=e>>8&255,a.ud=e>>16&255}function Wt(e,a,c,p,m,w){var x;for(x=0;x<p;++x){var L=a[c+x],S=L>>>8,I=L,U=255&(U=(U=L>>>16)+((e.jd<<24>>24)*(S<<24>>24)>>>5));I=255&(I=(I=I+((e.hd<<24>>24)*(S<<24>>24)>>>5))+((e.ud<<24>>24)*(U<<24>>24)>>>5)),m[w+x]=(4278255360&L)+(U<<16)+I}}function ee(e,a,c,p,m){z[a]=function(w,x,L,S,I,U,K,Z,J){for(S=K;S<Z;++S)for(K=0;K<J;++K)I[U++]=m(L[p(w[x++])])},z[e]=function(w,x,L,S,I,U,K){var Z=8>>w.b,J=w.Ea,vt=w.K[0],st=w.w;if(8>Z)for(w=(1<<w.b)-1,st=(1<<Z)-1;x<L;++x){var H,V=0;for(H=0;H<J;++H)H&w||(V=p(S[I++])),U[K++]=m(vt[V&st]),V>>=Z}else z["VP8LMapColor"+c](S,I,vt,st,U,K,x,L,J)}}function Ct(e,a,c,p,m){for(c=a+c;a<c;){var w=e[a++];p[m++]=w>>16&255,p[m++]=w>>8&255,p[m++]=w>>0&255}}function Je(e,a,c,p,m){for(c=a+c;a<c;){var w=e[a++];p[m++]=w>>16&255,p[m++]=w>>8&255,p[m++]=w>>0&255,p[m++]=w>>24&255}}function oe(e,a,c,p,m){for(c=a+c;a<c;){var w=(x=e[a++])>>16&240|x>>12&15,x=x>>0&240|x>>28&15;p[m++]=w,p[m++]=x}}function _n(e,a,c,p,m){for(c=a+c;a<c;){var w=(x=e[a++])>>16&248|x>>13&7,x=x>>5&224|x>>3&31;p[m++]=w,p[m++]=x}}function me(e,a,c,p,m){for(c=a+c;a<c;){var w=e[a++];p[m++]=w>>0&255,p[m++]=w>>8&255,p[m++]=w>>16&255}}function xe(e,a,c,p,m,w){if(w==0)for(c=a+c;a<c;)Lt(p,((w=e[a++])[0]>>24|w[1]>>8&65280|w[2]<<8&16711680|w[3]<<24)>>>0),m+=32;else i(p,m,e,a,c)}function Hn(e,a){z[a][0]=z[e+"0"],z[a][1]=z[e+"1"],z[a][2]=z[e+"2"],z[a][3]=z[e+"3"],z[a][4]=z[e+"4"],z[a][5]=z[e+"5"],z[a][6]=z[e+"6"],z[a][7]=z[e+"7"],z[a][8]=z[e+"8"],z[a][9]=z[e+"9"],z[a][10]=z[e+"10"],z[a][11]=z[e+"11"],z[a][12]=z[e+"12"],z[a][13]=z[e+"13"],z[a][14]=z[e+"0"],z[a][15]=z[e+"0"]}function ue(e){return e==Zo||e==$o||e==Ja||e==Qo}function Mr(){this.eb=[],this.size=this.A=this.fb=0}function Le(){this.y=[],this.f=[],this.ea=[],this.F=[],this.Tc=this.Ed=this.Cd=this.Fd=this.lb=this.Db=this.Ab=this.fa=this.J=this.W=this.N=this.O=0}function Fn(){this.Rd=this.height=this.width=this.S=0,this.f={},this.f.RGBA=new Mr,this.f.kb=new Le,this.sd=null}function rr(){this.width=[0],this.height=[0],this.Pd=[0],this.Qd=[0],this.format=[0]}function Ne(){this.Id=this.fd=this.Md=this.hb=this.ib=this.da=this.bd=this.cd=this.j=this.v=this.Da=this.Sd=this.ob=0}function Jt(e){return alert("todo:WebPSamplerProcessPlane"),e.T}function ce(e,a){var c=e.T,p=a.ba.f.RGBA,m=p.eb,w=p.fb+e.ka*p.A,x=Nn[a.ba.S],L=e.y,S=e.O,I=e.f,U=e.N,K=e.ea,Z=e.W,J=a.cc,vt=a.dc,st=a.Mc,H=a.Nc,V=e.ka,gt=e.ka+e.T,bt=e.U,mt=bt+1>>1;for(V==0?x(L,S,null,null,I,U,K,Z,I,U,K,Z,m,w,null,null,bt):(x(a.ec,a.fc,L,S,J,vt,st,H,I,U,K,Z,m,w-p.A,m,w,bt),++c);V+2<gt;V+=2)J=I,vt=U,st=K,H=Z,U+=e.Rc,Z+=e.Rc,w+=2*p.A,x(L,(S+=2*e.fa)-e.fa,L,S,J,vt,st,H,I,U,K,Z,m,w-p.A,m,w,bt);return S+=e.fa,e.j+gt<e.o?(i(a.ec,a.fc,L,S,bt),i(a.cc,a.dc,I,U,mt),i(a.Mc,a.Nc,K,Z,mt),c--):1>||x(L,S,null,null,I,U,K,Z,I,U,K,Z,m,w+p.A,null,null,bt),c}function Dr(e,a,c){var p=e.F,m=[e.J];if(p!=null){var w=e.U,x=a.ba.S,L=x==Va||x==Ja;a=a.ba.f.RGBA;var S=[0],I=e.ka;S[0]=e.T,e.Kb&&(I==0?--S[0]:(--I,m[0]-=e.width),e.j+e.ka+e.T==e.o&&(S[0]=e.o-e.j-I));var U=a.eb;I=a.fb+I*a.A,e=we(p,m[0],e.width,w,S,U,I+(L?0:3),a.A),t(c==S),e&&ue(x)&&An(U,I,L,w,S,a.A)}return 0}function We(e){var a=e.ma,c=a.ba.S,p=11>c,m=c==Wa||c==Ga||c==Va||c==Ko||c==12||ue(c);if(a.memory=null,a.Ib=null,a.Jb=null,a.Nd=null,!$i(a.Oa,e,m?11:12))return 0;if(m&&ue(c)&&wt(),e.da)alert("todo:use_scaling");else{if(p){if(a.Ib=Jt,e.Kb){if(c=e.U+1>>1,a.memory=o(e.U+2*c),a.memory==null)return 0;a.ec=a.memory,a.fc=0,a.cc=a.ec,a.dc=a.fc+e.U,a.Mc=a.cc,a.Nc=a.dc+c,a.Ib=ce,wt()}}else alert("todo:EmitYUV");m&&(a.Jb=Dr,p&&X())}if(p&&!Ys){for(e=0;256>e;++e)ku[e]=89858*(e-128)+Xa>>Ya,Ou[e]=-22014*(e-128)+Xa,Cu[e]=-45773*(e-128),Iu[e]=113618*(e-128)+Xa>>Ya;for(e=sa;e<ns;++e)a=76283*(e-16)+Xa>>Ya,ju[e-sa]=pn(a,255),Mu[e-sa]=pn(a+8>>4,15);Ys=1}return 1}function Wn(e){var a=e.ma,c=e.U,p=e.T;return t(!(1&e.ka)),0>=c||0>=p?0:(c=a.Ib(e,a),a.Jb!=null&&a.Jb(e,a,c),a.Dc+=c,1)}function Gn(e){e.ma.memory=null}function zt(e,a,c,p){return pt(e,8)!=47?0:(a[0]=pt(e,14)+1,c[0]=pt(e,14)+1,p[0]=pt(e,1),pt(e,3)!=0?0:!e.h)}function kn(e,a){if(4>e)return e+1;var c=e-2>>1;return(2+(1&e)<<c)+pt(a,c)+1}function Vn(e,a){return 120<a?a-120:1<=(c=((c=gu[a-1])>>4)*e+(8-(15&c)))?c:1;var c}function an(e,a,c){var p=O(c),m=e[a+=255&p].g-8;return 0<m&&(R(c,c.u+8),p=O(c),a+=e[a].value,a+=p&(1<<m)-1),R(c,c.u+e[a].g),e[a].value}function Ee(e,a,c){return c.g+=e.g,c.value+=e.value<<a>>>0,t(8>=c.g),e.g}function Me(e,a,c){var p=e.xc;return t((a=p==0?0:e.vc[e.md*(c>>p)+(a>>p)])<e.Wb),e.Ya[a]}function fn(e,a,c,p){var m=e.ab,w=e.c*a,x=e.C;a=x+a;var L=c,S=p;for(p=e.Ta,c=e.Ua;0<m--;){var I=e.gc[m],U=x,K=a,Z=L,J=S,vt=(S=p,L=c,I.Ea);switch(t(U<K),t(K<=I.nc),I.hc){case 2:Ta(Z,J,(K-U)*vt,S,L);break;case 0:var st=U,H=K,V=S,gt=L,bt=(_t=I).Ea;st==0&&(Yo(Z,J,null,null,1,V,gt),te(Z,J+1,0,0,bt-1,V,gt+1),J+=bt,gt+=bt,++st);for(var mt=1<<_t.b,Mt=mt-1,St=Bt(bt,_t.b),qt=_t.K,_t=_t.w+(st>>_t.b)*St;st<H;){var se=qt,he=_t,ae=1;for(ea(Z,J,V,gt-bt,1,V,gt);ae<bt;){var ne=(ae&~Mt)+mt;ne>bt&&(ne=bt),(0,yr[se[he++]>>8&15])(Z,J+ +ae,V,gt+ae-bt,ne-ae,V,gt+ae),ae=ne}J+=bt,gt+=bt,++st&Mt||(_t+=St)}K!=I.nc&&i(S,L-vt,S,L+(K-U-1)*vt,vt);break;case 1:for(vt=Z,H=J,bt=(Z=I.Ea)-(gt=Z&~(V=(J=1<<I.b)-1)),st=Bt(Z,I.b),mt=I.K,I=I.w+(U>>I.b)*st;U<K;){for(Mt=mt,St=I,qt=new It,_t=H+gt,se=H+Z;H<_t;)pe(Mt[St++],qt),zr(qt,vt,H,J,S,L),H+=J,L+=J;H<se&&(pe(Mt[St++],qt),zr(qt,vt,H,bt,S,L),H+=bt,L+=bt),++U&V||(I+=st)}break;case 3:if(Z==S&&J==L&&0<I.b){for(H=S,Z=vt=L+(K-U)*vt-(gt=(K-U)*Bt(I.Ea,I.b)),J=S,V=L,st=[],gt=(bt=gt)-1;0<=gt;--gt)st[gt]=J[V+gt];for(gt=bt-1;0<=gt;--gt)H[Z+gt]=st[gt];yn(I,U,K,S,vt,S,L)}else yn(I,U,K,Z,J,S,L)}L=p,S=c}S!=c&&i(p,c,L,S,w)}function Zr(e,a){var c=e.V,p=e.Ba+e.c*e.C,m=a-e.C;if(t(a<=e.l.o),t(16>=m),0<m){var w=e.l,x=e.Ta,L=e.Ua,S=w.width;if(fn(e,m,c,p),m=L=[L],t((c=e.C)<(p=a)),t(w.v<w.va),p>w.o&&(p=w.o),c<w.j){var I=w.j-c;c=w.j,m[0]+=I*S}if(c>=p?c=0:(m[0]+=4*w.v,w.ka=c-w.j,w.U=w.va-w.v,w.T=p-c,c=1),c){if(L=L[0],11>(c=e.ca).S){var U=c.f.RGBA,K=(p=c.S,m=w.U,w=w.T,I=U.eb,U.A),Z=w;for(U=U.fb+e.Ma*U.A;0<Z--;){var J=x,vt=L,st=m,H=I,V=U;switch(p){case Ha:ln(J,vt,st,H,V);break;case Wa:en(J,vt,st,H,V);break;case Zo:en(J,vt,st,H,V),An(H,V,0,st,1,0);break;case Es:lr(J,vt,st,H,V);break;case Ga:xe(J,vt,st,H,V,1);break;case $o:xe(J,vt,st,H,V,1),An(H,V,0,st,1,0);break;case Va:xe(J,vt,st,H,V,0);break;case Ja:xe(J,vt,st,H,V,0),An(H,V,1,st,1,0);break;case Ko:wr(J,vt,st,H,V);break;case Qo:wr(J,vt,st,H,V),ye(H,V,st,1,0);break;case qs:sr(J,vt,st,H,V);break;default:t(0)}L+=S,U+=K}e.Ma+=w}else alert("todo:EmitRescaledRowsYUVA");t(e.Ma<=c.height)}}e.C=a,t(e.C<=e.i)}function ir(e){var a;if(0<e.ua)return 0;for(a=0;a<e.Wb;++a){var c=e.Ya[a].G,p=e.Ya[a].H;if(0<c[1][p[1]+0].g||0<c[2][p[2]+0].g||0<c[3][p[3]+0].g)return 0}return 1}function In(e,a,c,p,m,w){if(e.Z!=0){var x=e.qd,L=e.rd;for(t(Nr[e.Z]!=null);a<c;++a)Nr[e.Z](x,L,p,m,p,m,w),x=p,L=m,m+=w;e.qd=x,e.rd=L}}function Cn(e,a){var c=e.l.ma,p=c.Z==0||c.Z==1?e.l.j:e.C;if(p=e.C<p?p:e.C,t(a<=e.l.o),a>p){var m=e.l.width,w=c.ca,x=c.tb+m*p,L=e.V,S=e.Ba+e.c*p,I=e.gc;t(e.ab==1),t(I[0].hc==3),Ea(I[0],p,a,L,S,w,x),In(c,p,a,w,x,m)}e.C=e.Ma=a}function On(e,a,c,p,m,w,x){var L=e.$/p,S=e.$%p,I=e.m,U=e.s,K=c+e.$,Z=K;m=c+p*m;var J=c+p*w,vt=280+U.ua,st=e.Pb?L:16777216,H=0<U.ua?U.Wa:null,V=U.wc,gt=K<J?Me(U,S,L):null;t(e.C<w),t(J<=m);var bt=!1;t:for(;;){for(;bt||K<J;){var mt=0;if(L>=st){var Mt=K-c;t((st=e).Pb),st.wd=st.m,st.xd=Mt,0<st.s.ua&&ft(st.s.Wa,st.s.vb),st=L+vu}if(S&V||(gt=Me(U,S,L)),t(gt!=null),gt.Qb&&(a[K]=gt.qb,bt=!0),!bt)if(Y(I),gt.jc){mt=I,Mt=a;var St=K,qt=gt.pd[O(mt)&Ge-1];t(gt.jc),256>qt.g?(R(mt,mt.u+qt.g),Mt[St]=qt.value,mt=0):(R(mt,mt.u+qt.g-256),t(256<=qt.value),mt=qt.value),mt==0&&(bt=!0)}else mt=an(gt.G[0],gt.H[0],I);if(I.h)break;if(bt||256>mt){if(!bt)if(gt.nd)a[K]=(gt.qb|mt<<8)>>>0;else{if(Y(I),bt=an(gt.G[1],gt.H[1],I),Y(I),Mt=an(gt.G[2],gt.H[2],I),St=an(gt.G[3],gt.H[3],I),I.h)break;a[K]=(St<<24|bt<<16|mt<<8|Mt)>>>0}if(bt=!1,++K,++S>=p&&(S=0,++L,x!=null&&L<=w&&!(L%16)&&x(e,L),H!=null))for(;Z<K;)mt=a[Z++],H.X[(506832829*mt&4294967295)>>>H.Mb]=mt}else if(280>mt){if(mt=kn(mt-256,I),Mt=an(gt.G[4],gt.H[4],I),Y(I),Mt=Vn(p,Mt=kn(Mt,I)),I.h)break;if(K-c<Mt||m-K<mt)break t;for(St=0;St<mt;++St)a[K+St]=a[K+St-Mt];for(K+=mt,S+=mt;S>=p;)S-=p,++L,x!=null&&L<=w&&!(L%16)&&x(e,L);if(t(K<=m),S&V&&(gt=Me(U,S,L)),H!=null)for(;Z<K;)mt=a[Z++],H.X[(506832829*mt&4294967295)>>>H.Mb]=mt}else{if(!(mt<vt))break t;for(bt=mt-280,t(H!=null);Z<K;)mt=a[Z++],H.X[(506832829*mt&4294967295)>>>H.Mb]=mt;mt=K,t(!(bt>>>(Mt=H).Xa)),a[mt]=Mt.X[bt],bt=!0}bt||t(I.h==B(I))}if(e.Pb&&I.h&&K<m)t(e.m.h),e.a=5,e.m=e.wd,e.$=e.xd,0<e.s.ua&&ft(e.s.vb,e.s.Wa);else{if(I.h)break t;x?.(e,L>w?w:L),e.a=0,e.$=K-c}return 1}return e.a=3,0}function Jn(e){t(e!=null),e.vc=null,e.yc=null,e.Ya=null;var a=e.Wa;a!=null&&(a.X=null),e.vb=null,t(e!=null)}function bn(){var e=new Jo;return e==null?null:(e.a=0,e.xb=Us,Hn("Predictor","VP8LPredictors"),Hn("Predictor","VP8LPredictors_C"),Hn("PredictorAdd","VP8LPredictorsAdd"),Hn("PredictorAdd","VP8LPredictorsAdd_C"),Ta=ie,zr=Wt,ln=Ct,en=Je,wr=oe,sr=_n,lr=me,z.VP8LMapColor32b=vi,z.VP8LMapColor8b=qa,e)}function Yn(e,a,c,p,m){var w=1,x=[e],L=[a],S=p.m,I=p.s,U=null,K=0;t:for(;;){if(c)for(;w&&pt(S,1);){var Z=x,J=L,vt=p,st=1,H=vt.m,V=vt.gc[vt.ab],gt=pt(H,2);if(vt.Oc&1<<gt)w=0;else{switch(vt.Oc|=1<<gt,V.hc=gt,V.Ea=Z[0],V.nc=J[0],V.K=[null],++vt.ab,t(4>=vt.ab),gt){case 0:case 1:V.b=pt(H,3)+2,st=Yn(Bt(V.Ea,V.b),Bt(V.nc,V.b),0,vt,V.K),V.K=V.K[0];break;case 3:var bt,mt=pt(H,8)+1,Mt=16<mt?0:4<mt?1:2<mt?2:3;if(Z[0]=Bt(V.Ea,Mt),V.b=Mt,bt=st=Yn(mt,1,0,vt,V.K)){var St,qt=mt,_t=V,se=1<<(8>>_t.b),he=o(se);if(he==null)bt=0;else{var ae=_t.K[0],ne=_t.w;for(he[0]=_t.K[0][0],St=1;St<1*qt;++St)he[St]=xt(ae[ne+St],he[St-1]);for(;St<4*se;++St)he[St]=0;_t.K[0]=null,_t.K[0]=he,bt=1}}st=bt;break;case 2:break;default:t(0)}w=st}}if(x=x[0],L=L[0],w&&pt(S,1)&&!(w=1<=(K=pt(S,4))&&11>=K)){p.a=3;break t}var ve;if(ve=w)e:{var de,$t,Be,un=p,Te=x,cn=L,fe=K,gn=c,mn=un.m,ze=un.s,Ve=[null],rn=1,Sn=0,$n=mu[fe];n:for(;;){if(gn&&pt(mn,1)){var Ue=pt(mn,3)+2,fr=Bt(Te,Ue),Vr=Bt(cn,Ue),Ai=fr*Vr;if(!Yn(fr,Vr,0,un,Ve))break n;for(Ve=Ve[0],ze.xc=Ue,de=0;de<Ai;++de){var Sr=Ve[de]>>8&65535;Ve[de]=Sr,Sr>=rn&&(rn=Sr+1)}}if(mn.h)break n;for($t=0;5>$t;++$t){var Pe=Rs[$t];!$t&&0<fe&&(Pe+=1<<fe),Sn<Pe&&(Sn=Pe)}var rs=u(rn*$n,k),Zs=rn,$s=u(Zs,E);if($s==null)var Za=null;else t(65536>=Zs),Za=$s;var la=o(Sn);if(Za==null||la==null||rs==null){un.a=1;break n}var $a=rs;for(de=Be=0;de<rn;++de){var Tn=Za[de],Li=Tn.G,Ni=Tn.H,Qs=0,Qa=1,tl=0;for($t=0;5>$t;++$t){Pe=Rs[$t],Li[$t]=$a,Ni[$t]=Be,!$t&&0<fe&&(Pe+=1<<fe);i:{var to,is=Pe,eo=un,ua=la,Tu=$a,Eu=Be,as=0,Pr=eo.m,qu=pt(Pr,1);if(s(ua,0,0,is),qu){var Ru=pt(Pr,1)+1,zu=pt(Pr,1),el=pt(Pr,zu==0?1:8);ua[el]=1,Ru==2&&(ua[el=pt(Pr,8)]=1);var no=1}else{var nl=o(19),rl=pt(Pr,4)+4;if(19<rl){eo.a=3;var ro=0;break i}for(to=0;to<rl;++to)nl[du[to]]=pt(Pr,3);var os=void 0,ca=void 0,il=eo,Uu=nl,io=is,al=ua,ss=0,_r=il.m,ol=8,sl=u(128,k);r:for(;_(sl,0,7,Uu,19);){if(pt(_r,1)){var Hu=2+2*pt(_r,3);if((os=2+pt(_r,Hu))>io)break r}else os=io;for(ca=0;ca<io&&os--;){Y(_r);var ll=sl[0+(127&O(_r))];R(_r,_r.u+ll.g);var Si=ll.value;if(16>Si)al[ca++]=Si,Si!=0&&(ol=Si);else{var Wu=Si==16,ul=Si-16,Gu=fu[ul],cl=pt(_r,hu[ul])+Gu;if(ca+cl>io)break r;for(var Vu=Wu?ol:0;0<cl--;)al[ca++]=Vu}}ss=1;break r}ss||(il.a=3),no=ss}(no=no&&!Pr.h)&&(as=_(Tu,Eu,8,ua,is)),no&&as!=0?ro=as:(eo.a=3,ro=0)}if(ro==0)break n;if(Qa&&pu[$t]==1&&(Qa=$a[Be].g==0),Qs+=$a[Be].g,Be+=ro,3>=$t){var ha,ls=la[0];for(ha=1;ha<Pe;++ha)la[ha]>ls&&(ls=la[ha]);tl+=ls}}if(Tn.nd=Qa,Tn.Qb=0,Qa&&(Tn.qb=(Li[3][Ni[3]+0].value<<24|Li[1][Ni[1]+0].value<<16|Li[2][Ni[2]+0].value)>>>0,Qs==0&&256>Li[0][Ni[0]+0].value&&(Tn.Qb=1,Tn.qb+=Li[0][Ni[0]+0].value<<8)),Tn.jc=!Tn.Qb&&6>tl,Tn.jc){var ao,pr=Tn;for(ao=0;ao<Ge;++ao){var Fr=ao,kr=pr.pd[Fr],oo=pr.G[0][pr.H[0]+Fr];256<=oo.value?(kr.g=oo.g+256,kr.value=oo.value):(kr.g=0,kr.value=0,Fr>>=Ee(oo,8,kr),Fr>>=Ee(pr.G[1][pr.H[1]+Fr],16,kr),Fr>>=Ee(pr.G[2][pr.H[2]+Fr],0,kr),Ee(pr.G[3][pr.H[3]+Fr],24,kr))}}}ze.vc=Ve,ze.Wb=rn,ze.Ya=Za,ze.yc=rs,ve=1;break e}ve=0}if(!(w=ve)){p.a=3;break t}if(0<K){if(I.ua=1<<K,!Ut(I.Wa,K)){p.a=1,w=0;break t}}else I.ua=0;var us=p,hl=x,Ju=L,cs=us.s,hs=cs.xc;if(us.c=hl,us.i=Ju,cs.md=Bt(hl,hs),cs.wc=hs==0?-1:(1<<hs)-1,c){p.xb=Nu;break t}if((U=o(x*L))==null){p.a=1,w=0;break t}w=(w=On(p,U,0,x,L,L,null))&&!S.h;break t}return w?(m!=null?m[0]=U:(t(U==null),t(c)),p.$=0,c||Jn(I)):Jn(I),w}function Br(e,a){var c=e.c*e.i,p=c+a+16*a;return t(e.c<=a),e.V=o(p),e.V==null?(e.Ta=null,e.Ua=0,e.a=1,0):(e.Ta=e.V,e.Ua=e.Ba+c+a,1)}function $r(e,a){var c=e.C,p=a-c,m=e.V,w=e.Ba+e.c*c;for(t(a<=e.l.o);0<p;){var x=16<p?16:p,L=e.l.ma,S=e.l.width,I=S*x,U=L.ca,K=L.tb+S*c,Z=e.Ta,J=e.Ua;fn(e,x,m,w),Ie(Z,J,U,K,I),In(L,c,c+x,U,K,S),p-=x,m+=x*e.c,c+=x}t(c==a),e.C=e.Ma=a}function Qr(){this.ub=this.yd=this.td=this.Rb=0}function ti(){this.Kd=this.Ld=this.Ud=this.Td=this.i=this.c=0}function ei(){this.Fb=this.Bb=this.Cb=0,this.Zb=o(4),this.Lb=o(4)}function va(){this.Yb=(function(){var e=[];return(function a(c,p,m){for(var w=m[p],x=0;x<w&&(c.push(m.length>p+1?[]:0),!(m.length<p+1));x++)a(c[x],p+1,m)})(e,0,[3,11]),e})()}function No(){this.jb=o(3),this.Wc=h([4,8],va),this.Xc=h([4,17],va)}function So(){this.Pc=this.wb=this.Tb=this.zd=0,this.vd=new o(4),this.od=new o(4)}function ni(){this.ld=this.La=this.dd=this.tc=0}function ba(){this.Na=this.la=0}function Po(){this.Sc=[0,0],this.Eb=[0,0],this.Qc=[0,0],this.ia=this.lc=0}function Bi(){this.ad=o(384),this.Za=0,this.Ob=o(16),this.$b=this.Ad=this.ia=this.Gc=this.Hc=this.Dd=0}function _o(){this.uc=this.M=this.Nb=0,this.wa=Array(new ni),this.Y=0,this.ya=Array(new Bi),this.aa=0,this.l=new ri}function ya(){this.y=o(16),this.f=o(8),this.ea=o(8)}function Fo(){this.cb=this.a=0,this.sc="",this.m=new Ot,this.Od=new Qr,this.Kc=new ti,this.ed=new So,this.Qa=new ei,this.Ic=this.$c=this.Aa=0,this.D=new _o,this.Xb=this.Va=this.Hb=this.zb=this.yb=this.Ub=this.za=0,this.Jc=u(8,Ot),this.ia=0,this.pb=u(4,Po),this.Pa=new No,this.Bd=this.kc=0,this.Ac=[],this.Bc=0,this.zc=[0,0,0,0],this.Gd=Array(new ya),this.Hd=0,this.rb=Array(new ba),this.sb=0,this.wa=Array(new ni),this.Y=0,this.oc=[],this.pc=0,this.sa=[],this.ta=0,this.qa=[],this.ra=0,this.Ha=[],this.B=this.R=this.Ia=0,this.Ec=[],this.M=this.ja=this.Vb=this.Fc=0,this.ya=Array(new Bi),this.L=this.aa=0,this.gd=h([4,2],ni),this.ga=null,this.Fa=[],this.Cc=this.qc=this.P=0,this.Gb=[],this.Uc=0,this.mb=[],this.nb=0,this.rc=[],this.Ga=this.Vc=0}function ri(){this.T=this.U=this.ka=this.height=this.width=0,this.y=[],this.f=[],this.ea=[],this.Rc=this.fa=this.W=this.N=this.O=0,this.ma="void",this.put="VP8IoPutHook",this.ac="VP8IoSetupHook",this.bc="VP8IoTeardownHook",this.ha=this.Kb=0,this.data=[],this.hb=this.ib=this.da=this.o=this.j=this.va=this.v=this.Da=this.ob=this.w=0,this.F=[],this.J=0}function ko(){var e=new Fo;return e!=null&&(e.a=0,e.sc="OK",e.cb=0,e.Xb=0,oa||(oa=Aa)),e}function Fe(e,a,c){return e.a==0&&(e.a=a,e.sc=c,e.cb=0),0}function wa(e,a,c){return 3<=c&&e[a+0]==157&&e[a+1]==1&&e[a+2]==42}function xa(e,a){if(e==null)return 0;if(e.a=0,e.sc="OK",a==null)return Fe(e,2,"null VP8Io passed to VP8GetHeaders()");var c=a.data,p=a.w,m=a.ha;if(4>m)return Fe(e,7,"Truncated header.");var w=c[p+0]|c[p+1]<<8|c[p+2]<<16,x=e.Od;if(x.Rb=!(1&w),x.td=w>>1&7,x.yd=w>>4&1,x.ub=w>>5,3<x.td)return Fe(e,3,"Incorrect keyframe parameters.");if(!x.yd)return Fe(e,4,"Frame not displayable.");p+=3,m-=3;var L=e.Kc;if(x.Rb){if(7>m)return Fe(e,7,"cannot parse picture header");if(!wa(c,p,m))return Fe(e,3,"Bad code word");L.c=16383&(c[p+4]<<8|c[p+3]),L.Td=c[p+4]>>6,L.i=16383&(c[p+6]<<8|c[p+5]),L.Ud=c[p+6]>>6,p+=7,m-=7,e.za=L.c+15>>4,e.Ub=L.i+15>>4,a.width=L.c,a.height=L.i,a.Da=0,a.j=0,a.v=0,a.va=a.width,a.o=a.height,a.da=0,a.ib=a.width,a.hb=a.height,a.U=a.width,a.T=a.height,s((w=e.Pa).jb,0,255,w.jb.length),t((w=e.Qa)!=null),w.Cb=0,w.Bb=0,w.Fb=1,s(w.Zb,0,0,w.Zb.length),s(w.Lb,0,0,w.Lb)}if(x.ub>m)return Fe(e,7,"bad partition length");lt(w=e.m,c,p,x.ub),p+=x.ub,m-=x.ub,x.Rb&&(L.Ld=nt(w),L.Kd=nt(w)),L=e.Qa;var S,I=e.Pa;if(t(w!=null),t(L!=null),L.Cb=nt(w),L.Cb){if(L.Bb=nt(w),nt(w)){for(L.Fb=nt(w),S=0;4>S;++S)L.Zb[S]=nt(w)?ht(w,7):0;for(S=0;4>S;++S)L.Lb[S]=nt(w)?ht(w,6):0}if(L.Bb)for(S=0;3>S;++S)I.jb[S]=nt(w)?at(w,8):255}else L.Bb=0;if(w.Ka)return Fe(e,3,"cannot parse segment header");if((L=e.ed).zd=nt(w),L.Tb=at(w,6),L.wb=at(w,3),L.Pc=nt(w),L.Pc&&nt(w)){for(I=0;4>I;++I)nt(w)&&(L.vd[I]=ht(w,6));for(I=0;4>I;++I)nt(w)&&(L.od[I]=ht(w,6))}if(e.L=L.Tb==0?0:L.zd?1:2,w.Ka)return Fe(e,3,"cannot parse filter header");var U=m;if(m=S=p,p=S+U,L=U,e.Xb=(1<<at(e.m,2))-1,U<3*(I=e.Xb))c=7;else{for(S+=3*I,L-=3*I,U=0;U<I;++U){var K=c[m+0]|c[m+1]<<8|c[m+2]<<16;K>L&&(K=L),lt(e.Jc[+U],c,S,K),S+=K,L-=K,m+=3}lt(e.Jc[+I],c,S,L),c=S<p?0:5}if(c!=0)return Fe(e,c,"cannot parse partitions");for(c=at(S=e.m,7),m=nt(S)?ht(S,4):0,p=nt(S)?ht(S,4):0,L=nt(S)?ht(S,4):0,I=nt(S)?ht(S,4):0,S=nt(S)?ht(S,4):0,U=e.Qa,K=0;4>K;++K){if(U.Cb){var Z=U.Zb[K];U.Fb||(Z+=c)}else{if(0<K){e.pb[K]=e.pb[0];continue}Z=c}var J=e.pb[K];J.Sc[0]=ts[pn(Z+m,127)],J.Sc[1]=es[pn(Z+0,127)],J.Eb[0]=2*ts[pn(Z+p,127)],J.Eb[1]=101581*es[pn(Z+L,127)]>>16,8>J.Eb[1]&&(J.Eb[1]=8),J.Qc[0]=ts[pn(Z+I,117)],J.Qc[1]=es[pn(Z+S,127)],J.lc=Z+S}if(!x.Rb)return Fe(e,4,"Not a key frame.");for(nt(w),x=e.Pa,c=0;4>c;++c){for(m=0;8>m;++m)for(p=0;3>p;++p)for(L=0;11>L;++L)I=rt(w,Au[c][m][p][L])?at(w,8):wu[c][m][p][L],x.Wc[c][m].Yb[p][L]=I;for(m=0;17>m;++m)x.Xc[c][m]=x.Wc[c][Lu[m]]}return e.kc=nt(w),e.kc&&(e.Bd=at(w,8)),e.cb=1}function Aa(e,a,c,p,m,w,x){var L=a[m].Yb[c];for(c=0;16>m;++m){if(!rt(e,L[c+0]))return m;for(;!rt(e,L[c+1]);)if(L=a[++m].Yb[0],c=0,m==16)return 16;var S=a[m+1].Yb;if(rt(e,L[c+2])){var I=e,U=0;if(rt(I,(Z=L)[(K=c)+3]))if(rt(I,Z[K+6])){for(L=0,K=2*(U=rt(I,Z[K+8]))+(Z=rt(I,Z[K+9+U])),U=0,Z=bu[K];Z[L];++L)U+=U+rt(I,Z[L]);U+=3+(8<<K)}else rt(I,Z[K+7])?(U=7+2*rt(I,165),U+=rt(I,145)):U=5+rt(I,159);else U=rt(I,Z[K+4])?3+rt(I,Z[K+5]):2;L=S[2]}else U=1,L=S[1];S=x+yu[m],0>(I=e).b&&Q(I);var K,Z=I.b,J=(K=I.Ca>>1)-(I.I>>Z)>>31;--I.b,I.Ca+=J,I.Ca|=1,I.I-=(K+1&J)<<Z,w[S]=((U^J)-J)*p[(0<m)+0]}return 16}function Ti(e){var a=e.rb[e.sb-1];a.la=0,a.Na=0,s(e.zc,0,0,e.zc.length),e.ja=0}function Io(e,a){if(e==null)return 0;if(a==null)return Fe(e,2,"NULL VP8Io parameter in VP8Decode().");if(!e.cb&&!xa(e,a))return 0;if(t(e.cb),a.ac==null||a.ac(a)){a.ob&&(e.L=0);var c=Ka[e.L];if(e.L==2?(e.yb=0,e.zb=0):(e.yb=a.v-c>>4,e.zb=a.j-c>>4,0>e.yb&&(e.yb=0),0>e.zb&&(e.zb=0)),e.Va=a.o+15+c>>4,e.Hb=a.va+15+c>>4,e.Hb>e.za&&(e.Hb=e.za),e.Va>e.Ub&&(e.Va=e.Ub),0<e.L){var p=e.ed;for(c=0;4>c;++c){var m;if(e.Qa.Cb){var w=e.Qa.Lb[c];e.Qa.Fb||(w+=p.Tb)}else w=p.Tb;for(m=0;1>=m;++m){var x=e.gd[c][m],L=w;if(p.Pc&&(L+=p.vd[0],m&&(L+=p.od[0])),0<(L=0>L?0:63<L?63:L)){var S=L;0<p.wb&&(S=4<p.wb?S>>2:S>>1)>9-p.wb&&(S=9-p.wb),1>S&&(S=1),x.dd=S,x.tc=2*L+S,x.ld=40<=L?2:15<=L?1:0}else x.tc=0;x.La=m}}}c=0}else Fe(e,6,"Frame setup failed"),c=e.a;if(c=c==0){if(c){e.$c=0,0<e.Aa||(e.Ic=Bu);t:{c=e.Ic,p=4*(S=e.za);var I=32*S,U=S+1,K=0<e.L?S*(0<e.Aa?2:1):0,Z=(e.Aa==2?2:1)*S;if((x=p+832+(m=3*(16*c+Ka[e.L])/2*I)+(w=e.Fa!=null&&0<e.Fa.length?e.Kc.c*e.Kc.i:0))!=x)c=0;else{if(x>e.Vb){if(e.Vb=0,e.Ec=o(x),e.Fc=0,e.Ec==null){c=Fe(e,1,"no memory during frame initialization.");break t}e.Vb=x}x=e.Ec,L=e.Fc,e.Ac=x,e.Bc=L,L+=p,e.Gd=u(I,ya),e.Hd=0,e.rb=u(U+1,ba),e.sb=1,e.wa=K?u(K,ni):null,e.Y=0,e.D.Nb=0,e.D.wa=e.wa,e.D.Y=e.Y,0<e.Aa&&(e.D.Y+=S),t(!0),e.oc=x,e.pc=L,L+=832,e.ya=u(Z,Bi),e.aa=0,e.D.ya=e.ya,e.D.aa=e.aa,e.Aa==2&&(e.D.aa+=S),e.R=16*S,e.B=8*S,S=(I=Ka[e.L])*e.R,I=I/2*e.B,e.sa=x,e.ta=L+S,e.qa=e.sa,e.ra=e.ta+16*c*e.R+I,e.Ha=e.qa,e.Ia=e.ra+8*c*e.B+I,e.$c=0,L+=m,e.mb=w?x:null,e.nb=w?L:null,t(L+w<=e.Fc+e.Vb),Ti(e),s(e.Ac,e.Bc,0,p),c=1}}if(c){if(a.ka=0,a.y=e.sa,a.O=e.ta,a.f=e.qa,a.N=e.ra,a.ea=e.Ha,a.Vd=e.Ia,a.fa=e.R,a.Rc=e.B,a.F=null,a.J=0,!za){for(c=-255;255>=c;++c)qe[255+c]=0>c?-c:c;for(c=-1020;1020>=c;++c)cr[1020+c]=-128>c?-128:127<c?127:c;for(c=-112;112>=c;++c)aa[112+c]=-16>c?-16:15<c?15:c;for(c=-255;510>=c;++c)xi[255+c]=0>c?0:255<c?255:c;za=1}bi=jo,ur=Co,na=Na,nn=Oo,wn=Sa,ke=La,yi=Hi,Ra=qr,ra=Vo,Ur=Wi,Hr=Go,xr=ui,Wr=Gi,wi=Ma,Gr=ja,Ar=Kn,ia=or,xn=Wo,Bn[0]=Xn,Bn[1]=Mo,Bn[2]=Eo,Bn[3]=qo,Bn[4]=Fa,Bn[5]=si,Bn[6]=ka,Bn[7]=Ri,Bn[8]=zo,Bn[9]=Ro,Lr[0]=Pa,Lr[1]=Bo,Lr[2]=ar,Lr[3]=ai,Lr[4]=Ye,Lr[5]=To,Lr[6]=_a,hr[0]=mr,hr[1]=Do,hr[2]=Uo,hr[3]=zi,hr[4]=Er,hr[5]=Ho,hr[6]=Ui,c=1}else c=0}c&&(c=(function(J,vt){for(J.M=0;J.M<J.Va;++J.M){var st,H=J.Jc[J.M&J.Xb],V=J.m,gt=J;for(st=0;st<gt.za;++st){var bt=V,mt=gt,Mt=mt.Ac,St=mt.Bc+4*st,qt=mt.zc,_t=mt.ya[mt.aa+st];if(mt.Qa.Bb?_t.$b=rt(bt,mt.Pa.jb[0])?2+rt(bt,mt.Pa.jb[2]):rt(bt,mt.Pa.jb[1]):_t.$b=0,mt.kc&&(_t.Ad=rt(bt,mt.Bd)),_t.Za=!rt(bt,145)+0,_t.Za){var se=_t.Ob,he=0;for(mt=0;4>mt;++mt){var ae,ne=qt[0+mt];for(ae=0;4>ae;++ae){ne=xu[Mt[St+ae]][ne];for(var ve=zs[rt(bt,ne[0])];0<ve;)ve=zs[2*ve+rt(bt,ne[ve])];ne=-ve,Mt[St+ae]=ne}i(se,he,Mt,St,4),he+=4,qt[0+mt]=ne}}else ne=rt(bt,156)?rt(bt,128)?1:3:rt(bt,163)?2:0,_t.Ob[0]=ne,s(Mt,St,ne,4),s(qt,0,ne,4);_t.Dd=rt(bt,142)?rt(bt,114)?rt(bt,183)?1:3:2:0}if(gt.m.Ka)return Fe(J,7,"Premature end-of-partition0 encountered.");for(;J.ja<J.za;++J.ja){if(gt=H,bt=(V=J).rb[V.sb-1],Mt=V.rb[V.sb+V.ja],st=V.ya[V.aa+V.ja],St=V.kc?st.Ad:0)bt.la=Mt.la=0,st.Za||(bt.Na=Mt.Na=0),st.Hc=0,st.Gc=0,st.ia=0;else{var de,$t;if(bt=Mt,Mt=gt,St=V.Pa.Xc,qt=V.ya[V.aa+V.ja],_t=V.pb[qt.$b],mt=qt.ad,se=0,he=V.rb[V.sb-1],ne=ae=0,s(mt,se,0,384),qt.Za)var Be=0,un=St[3];else{ve=o(16);var Te=bt.Na+he.Na;if(Te=oa(Mt,St[1],Te,_t.Eb,0,ve,0),bt.Na=he.Na=(0<Te)+0,1<Te)bi(ve,0,mt,se);else{var cn=ve[0]+3>>3;for(ve=0;256>ve;ve+=16)mt[se+ve]=cn}Be=1,un=St[0]}var fe=15&bt.la,gn=15&he.la;for(ve=0;4>ve;++ve){var mn=1&gn;for(cn=$t=0;4>cn;++cn)fe=fe>>1|(mn=(Te=oa(Mt,un,Te=mn+(1&fe),_t.Sc,Be,mt,se))>Be)<<7,$t=$t<<2|(3<Te?3:1<Te?2:mt[se+0]!=0),se+=16;fe>>=4,gn=gn>>1|mn<<7,ae=(ae<<8|$t)>>>0}for(un=fe,Be=gn>>4,de=0;4>de;de+=2){for($t=0,fe=bt.la>>4+de,gn=he.la>>4+de,ve=0;2>ve;++ve){for(mn=1&gn,cn=0;2>cn;++cn)Te=mn+(1&fe),fe=fe>>1|(mn=0<(Te=oa(Mt,St[2],Te,_t.Qc,0,mt,se)))<<3,$t=$t<<2|(3<Te?3:1<Te?2:mt[se+0]!=0),se+=16;fe>>=2,gn=gn>>1|mn<<5}ne|=$t<<4*de,un|=fe<<4<<de,Be|=(240&gn)<<de}bt.la=un,he.la=Be,qt.Hc=ae,qt.Gc=ne,qt.ia=43690&ne?0:_t.ia,St=!(ae|ne)}if(0<V.L&&(V.wa[V.Y+V.ja]=V.gd[st.$b][st.Za],V.wa[V.Y+V.ja].La|=!St),gt.Ka)return Fe(J,7,"Premature end-of-file encountered.")}if(Ti(J),V=vt,gt=1,st=(H=J).D,bt=0<H.L&&H.M>=H.zb&&H.M<=H.Va,H.Aa==0)t:{if(st.M=H.M,st.uc=bt,Zi(H,st),gt=1,st=($t=H.D).Nb,bt=(ne=Ka[H.L])*H.R,Mt=ne/2*H.B,ve=16*st*H.R,cn=8*st*H.B,St=H.sa,qt=H.ta-bt+ve,_t=H.qa,mt=H.ra-Mt+cn,se=H.Ha,he=H.Ia-Mt+cn,gn=(fe=$t.M)==0,ae=fe>=H.Va-1,H.Aa==2&&Zi(H,$t),$t.uc)for(mn=(Te=H).D.M,t(Te.D.uc),$t=Te.yb;$t<Te.Hb;++$t){Be=$t,un=mn;var ze=(Ve=(Pe=Te).D).Nb;de=Pe.R;var Ve=Ve.wa[Ve.Y+Be],rn=Pe.sa,Sn=Pe.ta+16*ze*de+16*Be,$n=Ve.dd,Ue=Ve.tc;if(Ue!=0)if(t(3<=Ue),Pe.L==1)0<Be&&Ar(rn,Sn,de,Ue+4),Ve.La&&xn(rn,Sn,de,Ue),0<un&&Gr(rn,Sn,de,Ue+4),Ve.La&&ia(rn,Sn,de,Ue);else{var fr=Pe.B,Vr=Pe.qa,Ai=Pe.ra+8*ze*fr+8*Be,Sr=Pe.Ha,Pe=Pe.Ia+8*ze*fr+8*Be;ze=Ve.ld,0<Be&&(Ra(rn,Sn,de,Ue+4,$n,ze),Ur(Vr,Ai,Sr,Pe,fr,Ue+4,$n,ze)),Ve.La&&(xr(rn,Sn,de,Ue,$n,ze),wi(Vr,Ai,Sr,Pe,fr,Ue,$n,ze)),0<un&&(yi(rn,Sn,de,Ue+4,$n,ze),ra(Vr,Ai,Sr,Pe,fr,Ue+4,$n,ze)),Ve.La&&(Hr(rn,Sn,de,Ue,$n,ze),Wr(Vr,Ai,Sr,Pe,fr,Ue,$n,ze))}}if(H.ia&&alert("todo:DitherRow"),V.put!=null){if($t=16*fe,fe=16*(fe+1),gn?(V.y=H.sa,V.O=H.ta+ve,V.f=H.qa,V.N=H.ra+cn,V.ea=H.Ha,V.W=H.Ia+cn):($t-=ne,V.y=St,V.O=qt,V.f=_t,V.N=mt,V.ea=se,V.W=he),ae||(fe-=ne),fe>V.o&&(fe=V.o),V.F=null,V.J=null,H.Fa!=null&&0<H.Fa.length&&$t<fe&&(V.J=Xi(H,V,$t,fe-$t),V.F=H.mb,V.F==null&&V.F.length==0)){gt=Fe(H,3,"Could not decode alpha data.");break t}$t<V.j&&(ne=V.j-$t,$t=V.j,t(!(1&ne)),V.O+=H.R*ne,V.N+=H.B*(ne>>1),V.W+=H.B*(ne>>1),V.F!=null&&(V.J+=V.width*ne)),$t<fe&&(V.O+=V.v,V.N+=V.v>>1,V.W+=V.v>>1,V.F!=null&&(V.J+=V.v),V.ka=$t-V.j,V.U=V.va-V.v,V.T=fe-$t,gt=V.put(V))}st+1!=H.Ic||ae||(i(H.sa,H.ta-bt,St,qt+16*H.R,bt),i(H.qa,H.ra-Mt,_t,mt+8*H.B,Mt),i(H.Ha,H.Ia-Mt,se,he+8*H.B,Mt))}if(!gt)return Fe(J,6,"Output aborted.")}return 1})(e,a)),a.bc!=null&&a.bc(a),c&=1}return c?(e.cb=0,c):0}function jn(e,a,c,p,m){m=e[a+c+32*p]+(m>>3),e[a+c+32*p]=-256&m?0>m?0:255:m}function ii(e,a,c,p,m,w){jn(e,a,0,c,p+m),jn(e,a,1,c,p+w),jn(e,a,2,c,p-w),jn(e,a,3,c,p-m)}function on(e){return(20091*e>>16)+e}function Ei(e,a,c,p){var m,w=0,x=o(16);for(m=0;4>m;++m){var L=e[a+0]+e[a+8],S=e[a+0]-e[a+8],I=(35468*e[a+4]>>16)-on(e[a+12]),U=on(e[a+4])+(35468*e[a+12]>>16);x[w+0]=L+U,x[w+1]=S+I,x[w+2]=S-I,x[w+3]=L-U,w+=4,a++}for(m=w=0;4>m;++m)L=(e=x[w+0]+4)+x[w+8],S=e-x[w+8],I=(35468*x[w+4]>>16)-on(x[w+12]),jn(c,p,0,0,L+(U=on(x[w+4])+(35468*x[w+12]>>16))),jn(c,p,1,0,S+I),jn(c,p,2,0,S-I),jn(c,p,3,0,L-U),w++,p+=32}function La(e,a,c,p){var m=e[a+0]+4,w=35468*e[a+4]>>16,x=on(e[a+4]),L=35468*e[a+1]>>16;ii(c,p,0,m+x,e=on(e[a+1]),L),ii(c,p,1,m+w,e,L),ii(c,p,2,m-w,e,L),ii(c,p,3,m-x,e,L)}function Co(e,a,c,p,m){Ei(e,a,c,p),m&&Ei(e,a+16,c,p+4)}function Na(e,a,c,p){ur(e,a+0,c,p,1),ur(e,a+32,c,p+128,1)}function Oo(e,a,c,p){var m;for(e=e[a+0]+4,m=0;4>m;++m)for(a=0;4>a;++a)jn(c,p,a,m,e)}function Sa(e,a,c,p){e[a+0]&&nn(e,a+0,c,p),e[a+16]&&nn(e,a+16,c,p+4),e[a+32]&&nn(e,a+32,c,p+128),e[a+48]&&nn(e,a+48,c,p+128+4)}function jo(e,a,c,p){var m,w=o(16);for(m=0;4>m;++m){var x=e[a+0+m]+e[a+12+m],L=e[a+4+m]+e[a+8+m],S=e[a+4+m]-e[a+8+m],I=e[a+0+m]-e[a+12+m];w[0+m]=x+L,w[8+m]=x-L,w[4+m]=I+S,w[12+m]=I-S}for(m=0;4>m;++m)x=(e=w[0+4*m]+3)+w[3+4*m],L=w[1+4*m]+w[2+4*m],S=w[1+4*m]-w[2+4*m],I=e-w[3+4*m],c[p+0]=x+L>>3,c[p+16]=I+S>>3,c[p+32]=x-L>>3,c[p+48]=I-S>>3,p+=64}function qi(e,a,c){var p,m=a-32,w=dn,x=255-e[m-1];for(p=0;p<c;++p){var L,S=w,I=x+e[a-1];for(L=0;L<c;++L)e[a+L]=S[I+e[m+L]];a+=32}}function Mo(e,a){qi(e,a,4)}function Do(e,a){qi(e,a,8)}function Bo(e,a){qi(e,a,16)}function ar(e,a){var c;for(c=0;16>c;++c)i(e,a+32*c,e,a-32,16)}function ai(e,a){var c;for(c=16;0<c;--c)s(e,a,e[a-1],16),a+=32}function oi(e,a,c){var p;for(p=0;16>p;++p)s(a,c+32*p,e,16)}function Pa(e,a){var c,p=16;for(c=0;16>c;++c)p+=e[a-1+32*c]+e[a+c-32];oi(p>>5,e,a)}function Ye(e,a){var c,p=8;for(c=0;16>c;++c)p+=e[a-1+32*c];oi(p>>4,e,a)}function To(e,a){var c,p=8;for(c=0;16>c;++c)p+=e[a+c-32];oi(p>>4,e,a)}function _a(e,a){oi(128,e,a)}function Gt(e,a,c){return e+2*a+c+2>>2}function Eo(e,a){var c,p=a-32;for(p=new Uint8Array([Gt(e[p-1],e[p+0],e[p+1]),Gt(e[p+0],e[p+1],e[p+2]),Gt(e[p+1],e[p+2],e[p+3]),Gt(e[p+2],e[p+3],e[p+4])]),c=0;4>c;++c)i(e,a+32*c,p,0,p.length)}function qo(e,a){var c=e[a-1],p=e[a-1+32],m=e[a-1+64],w=e[a-1+96];Lt(e,a+0,16843009*Gt(e[a-1-32],c,p)),Lt(e,a+32,16843009*Gt(c,p,m)),Lt(e,a+64,16843009*Gt(p,m,w)),Lt(e,a+96,16843009*Gt(m,w,w))}function Xn(e,a){var c,p=4;for(c=0;4>c;++c)p+=e[a+c-32]+e[a-1+32*c];for(p>>=3,c=0;4>c;++c)s(e,a+32*c,p,4)}function Fa(e,a){var c=e[a-1+0],p=e[a-1+32],m=e[a-1+64],w=e[a-1-32],x=e[a+0-32],L=e[a+1-32],S=e[a+2-32],I=e[a+3-32];e[a+0+96]=Gt(p,m,e[a-1+96]),e[a+1+96]=e[a+0+64]=Gt(c,p,m),e[a+2+96]=e[a+1+64]=e[a+0+32]=Gt(w,c,p),e[a+3+96]=e[a+2+64]=e[a+1+32]=e[a+0+0]=Gt(x,w,c),e[a+3+64]=e[a+2+32]=e[a+1+0]=Gt(L,x,w),e[a+3+32]=e[a+2+0]=Gt(S,L,x),e[a+3+0]=Gt(I,S,L)}function ka(e,a){var c=e[a+1-32],p=e[a+2-32],m=e[a+3-32],w=e[a+4-32],x=e[a+5-32],L=e[a+6-32],S=e[a+7-32];e[a+0+0]=Gt(e[a+0-32],c,p),e[a+1+0]=e[a+0+32]=Gt(c,p,m),e[a+2+0]=e[a+1+32]=e[a+0+64]=Gt(p,m,w),e[a+3+0]=e[a+2+32]=e[a+1+64]=e[a+0+96]=Gt(m,w,x),e[a+3+32]=e[a+2+64]=e[a+1+96]=Gt(w,x,L),e[a+3+64]=e[a+2+96]=Gt(x,L,S),e[a+3+96]=Gt(L,S,S)}function si(e,a){var c=e[a-1+0],p=e[a-1+32],m=e[a-1+64],w=e[a-1-32],x=e[a+0-32],L=e[a+1-32],S=e[a+2-32],I=e[a+3-32];e[a+0+0]=e[a+1+64]=w+x+1>>1,e[a+1+0]=e[a+2+64]=x+L+1>>1,e[a+2+0]=e[a+3+64]=L+S+1>>1,e[a+3+0]=S+I+1>>1,e[a+0+96]=Gt(m,p,c),e[a+0+64]=Gt(p,c,w),e[a+0+32]=e[a+1+96]=Gt(c,w,x),e[a+1+32]=e[a+2+96]=Gt(w,x,L),e[a+2+32]=e[a+3+96]=Gt(x,L,S),e[a+3+32]=Gt(L,S,I)}function Ri(e,a){var c=e[a+0-32],p=e[a+1-32],m=e[a+2-32],w=e[a+3-32],x=e[a+4-32],L=e[a+5-32],S=e[a+6-32],I=e[a+7-32];e[a+0+0]=c+p+1>>1,e[a+1+0]=e[a+0+64]=p+m+1>>1,e[a+2+0]=e[a+1+64]=m+w+1>>1,e[a+3+0]=e[a+2+64]=w+x+1>>1,e[a+0+32]=Gt(c,p,m),e[a+1+32]=e[a+0+96]=Gt(p,m,w),e[a+2+32]=e[a+1+96]=Gt(m,w,x),e[a+3+32]=e[a+2+96]=Gt(w,x,L),e[a+3+64]=Gt(x,L,S),e[a+3+96]=Gt(L,S,I)}function Ro(e,a){var c=e[a-1+0],p=e[a-1+32],m=e[a-1+64],w=e[a-1+96];e[a+0+0]=c+p+1>>1,e[a+2+0]=e[a+0+32]=p+m+1>>1,e[a+2+32]=e[a+0+64]=m+w+1>>1,e[a+1+0]=Gt(c,p,m),e[a+3+0]=e[a+1+32]=Gt(p,m,w),e[a+3+32]=e[a+1+64]=Gt(m,w,w),e[a+3+64]=e[a+2+64]=e[a+0+96]=e[a+1+96]=e[a+2+96]=e[a+3+96]=w}function zo(e,a){var c=e[a-1+0],p=e[a-1+32],m=e[a-1+64],w=e[a-1+96],x=e[a-1-32],L=e[a+0-32],S=e[a+1-32],I=e[a+2-32];e[a+0+0]=e[a+2+32]=c+x+1>>1,e[a+0+32]=e[a+2+64]=p+c+1>>1,e[a+0+64]=e[a+2+96]=m+p+1>>1,e[a+0+96]=w+m+1>>1,e[a+3+0]=Gt(L,S,I),e[a+2+0]=Gt(x,L,S),e[a+1+0]=e[a+3+32]=Gt(c,x,L),e[a+1+32]=e[a+3+64]=Gt(p,c,x),e[a+1+64]=e[a+3+96]=Gt(m,p,c),e[a+1+96]=Gt(w,m,p)}function Uo(e,a){var c;for(c=0;8>c;++c)i(e,a+32*c,e,a-32,8)}function zi(e,a){var c;for(c=0;8>c;++c)s(e,a,e[a-1],8),a+=32}function Tr(e,a,c){var p;for(p=0;8>p;++p)s(a,c+32*p,e,8)}function mr(e,a){var c,p=8;for(c=0;8>c;++c)p+=e[a+c-32]+e[a-1+32*c];Tr(p>>4,e,a)}function Ho(e,a){var c,p=4;for(c=0;8>c;++c)p+=e[a+c-32];Tr(p>>3,e,a)}function Er(e,a){var c,p=4;for(c=0;8>c;++c)p+=e[a-1+32*c];Tr(p>>3,e,a)}function Ui(e,a){Tr(128,e,a)}function li(e,a,c){var p=e[a-c],m=e[a+0],w=3*(m-p)+Xo[1020+e[a-2*c]-e[a+c]],x=Ua[112+(w+4>>3)];e[a-c]=dn[255+p+Ua[112+(w+3>>3)]],e[a+0]=dn[255+m-x]}function Ia(e,a,c,p){var m=e[a+0],w=e[a+c];return Ln[255+e[a-2*c]-e[a-c]]>p||Ln[255+w-m]>p}function Ca(e,a,c,p){return 4*Ln[255+e[a-c]-e[a+0]]+Ln[255+e[a-2*c]-e[a+c]]<=p}function Oa(e,a,c,p,m){var w=e[a-3*c],x=e[a-2*c],L=e[a-c],S=e[a+0],I=e[a+c],U=e[a+2*c],K=e[a+3*c];return 4*Ln[255+L-S]+Ln[255+x-I]>p?0:Ln[255+e[a-4*c]-w]<=m&&Ln[255+w-x]<=m&&Ln[255+x-L]<=m&&Ln[255+K-U]<=m&&Ln[255+U-I]<=m&&Ln[255+I-S]<=m}function ja(e,a,c,p){var m=2*p+1;for(p=0;16>p;++p)Ca(e,a+p,c,m)&&li(e,a+p,c)}function Kn(e,a,c,p){var m=2*p+1;for(p=0;16>p;++p)Ca(e,a+p*c,1,m)&&li(e,a+p*c,1)}function or(e,a,c,p){var m;for(m=3;0<m;--m)ja(e,a+=4*c,c,p)}function Wo(e,a,c,p){var m;for(m=3;0<m;--m)Kn(e,a+=4,c,p)}function vr(e,a,c,p,m,w,x,L){for(w=2*w+1;0<m--;){if(Oa(e,a,c,w,x))if(Ia(e,a,c,L))li(e,a,c);else{var S=e,I=a,U=c,K=S[I-2*U],Z=S[I-U],J=S[I+0],vt=S[I+U],st=S[I+2*U],H=27*(gt=Xo[1020+3*(J-Z)+Xo[1020+K-vt]])+63>>7,V=18*gt+63>>7,gt=9*gt+63>>7;S[I-3*U]=dn[255+S[I-3*U]+gt],S[I-2*U]=dn[255+K+V],S[I-U]=dn[255+Z+H],S[I+0]=dn[255+J-H],S[I+U]=dn[255+vt-V],S[I+2*U]=dn[255+st-gt]}a+=p}}function Mn(e,a,c,p,m,w,x,L){for(w=2*w+1;0<m--;){if(Oa(e,a,c,w,x))if(Ia(e,a,c,L))li(e,a,c);else{var S=e,I=a,U=c,K=S[I-U],Z=S[I+0],J=S[I+U],vt=Ua[112+((st=3*(Z-K))+4>>3)],st=Ua[112+(st+3>>3)],H=vt+1>>1;S[I-2*U]=dn[255+S[I-2*U]+H],S[I-U]=dn[255+K+st],S[I+0]=dn[255+Z-vt],S[I+U]=dn[255+J-H]}a+=p}}function Hi(e,a,c,p,m,w){vr(e,a,c,1,16,p,m,w)}function qr(e,a,c,p,m,w){vr(e,a,1,c,16,p,m,w)}function Go(e,a,c,p,m,w){var x;for(x=3;0<x;--x)Mn(e,a+=4*c,c,1,16,p,m,w)}function ui(e,a,c,p,m,w){var x;for(x=3;0<x;--x)Mn(e,a+=4,1,c,16,p,m,w)}function Vo(e,a,c,p,m,w,x,L){vr(e,a,m,1,8,w,x,L),vr(c,p,m,1,8,w,x,L)}function Wi(e,a,c,p,m,w,x,L){vr(e,a,1,m,8,w,x,L),vr(c,p,1,m,8,w,x,L)}function Gi(e,a,c,p,m,w,x,L){Mn(e,a+4*m,m,1,8,w,x,L),Mn(c,p+4*m,m,1,8,w,x,L)}function Ma(e,a,c,p,m,w,x,L){Mn(e,a+4,1,m,8,w,x,L),Mn(c,p+4,1,m,8,w,x,L)}function ci(){this.ba=new Fn,this.ec=[],this.cc=[],this.Mc=[],this.Dc=this.Nc=this.dc=this.fc=0,this.Oa=new Ne,this.memory=0,this.Ib="OutputFunc",this.Jb="OutputAlphaFunc",this.Nd="OutputRowFunc"}function Vi(){this.data=[],this.offset=this.kd=this.ha=this.w=0,this.na=[],this.xa=this.gb=this.Ja=this.Sa=this.P=0}function Ji(){this.nc=this.Ea=this.b=this.hc=0,this.K=[],this.w=0}function Da(){this.ua=0,this.Wa=new T,this.vb=new T,this.md=this.xc=this.wc=0,this.vc=[],this.Wb=0,this.Ya=new E,this.yc=new k}function Jo(){this.xb=this.a=0,this.l=new ri,this.ca=new Fn,this.V=[],this.Ba=0,this.Ta=[],this.Ua=0,this.m=new A,this.Pb=0,this.wd=new A,this.Ma=this.$=this.C=this.i=this.c=this.xd=0,this.s=new Da,this.ab=0,this.gc=u(4,Ji),this.Oc=0}function hi(){this.Lc=this.Z=this.$a=this.i=this.c=0,this.l=new ri,this.ic=0,this.ca=[],this.tb=0,this.qd=null,this.rd=0}function Rr(e,a,c,p,m,w,x){for(e=e==null?0:e[a+0],a=0;a<x;++a)m[w+a]=e+c[p+a]&255,e=m[w+a]}function Yi(e,a,c,p,m,w,x){var L;if(e==null)Rr(null,null,c,p,m,w,x);else for(L=0;L<x;++L)m[w+L]=e[a+L]+c[p+L]&255}function br(e,a,c,p,m,w,x){if(e==null)Rr(null,null,c,p,m,w,x);else{var L,S=e[a+0],I=S,U=S;for(L=0;L<x;++L)I=U+(S=e[a+L])-I,U=c[p+L]+(-256&I?0>I?0:255:I)&255,I=S,m[w+L]=U}}function Xi(e,a,c,p){var m=a.width,w=a.o;if(t(e!=null&&a!=null),0>c||0>=p||c+p>w)return null;if(!e.Cc){if(e.ga==null){var x;if(e.ga=new hi,(x=e.ga==null)||(x=a.width*a.o,t(e.Gb.length==0),e.Gb=o(x),e.Uc=0,e.Gb==null?x=0:(e.mb=e.Gb,e.nb=e.Uc,e.rc=null,x=1),x=!x),!x){x=e.ga;var L=e.Fa,S=e.P,I=e.qc,U=e.mb,K=e.nb,Z=S+1,J=I-1,vt=x.l;if(t(L!=null&&U!=null&&a!=null),Nr[0]=null,Nr[1]=Rr,Nr[2]=Yi,Nr[3]=br,x.ca=U,x.tb=K,x.c=a.width,x.i=a.height,t(0<x.c&&0<x.i),1>=I)a=0;else if(x.$a=L[S+0]>>0&3,x.Z=L[S+0]>>2&3,x.Lc=L[S+0]>>4&3,S=L[S+0]>>6&3,0>x.$a||1<x.$a||4<=x.Z||1<x.Lc||S)a=0;else if(vt.put=Wn,vt.ac=We,vt.bc=Gn,vt.ma=x,vt.width=a.width,vt.height=a.height,vt.Da=a.Da,vt.v=a.v,vt.va=a.va,vt.j=a.j,vt.o=a.o,x.$a)t:{t(x.$a==1),a=bn();e:for(;;){if(a==null){a=0;break t}if(t(x!=null),x.mc=a,a.c=x.c,a.i=x.i,a.l=x.l,a.l.ma=x,a.l.width=x.c,a.l.height=x.i,a.a=0,$(a.m,L,Z,J),!Yn(x.c,x.i,1,a,null)||(a.ab==1&&a.gc[0].hc==3&&ir(a.s)?(x.ic=1,L=a.c*a.i,a.Ta=null,a.Ua=0,a.V=o(L),a.Ba=0,a.V==null?(a.a=1,a=0):a=1):(x.ic=0,a=Br(a,x.c)),!a))break e;a=1;break t}x.mc=null,a=0}else a=J>=x.c*x.i;x=!a}if(x)return null;e.ga.Lc!=1?e.Ga=0:p=w-c}t(e.ga!=null),t(c+p<=w);t:{if(a=(L=e.ga).c,w=L.l.o,L.$a==0){if(Z=e.rc,J=e.Vc,vt=e.Fa,S=e.P+1+c*a,I=e.mb,U=e.nb+c*a,t(S<=e.P+e.qc),L.Z!=0)for(t(Nr[L.Z]!=null),x=0;x<p;++x)Nr[L.Z](Z,J,vt,S,I,U,a),Z=I,J=U,U+=a,S+=a;else for(x=0;x<p;++x)i(I,U,vt,S,a),Z=I,J=U,U+=a,S+=a;e.rc=Z,e.Vc=J}else{if(t(L.mc!=null),a=c+p,t((x=L.mc)!=null),t(a<=x.i),x.C>=a)a=1;else if(L.ic||X(),L.ic){L=x.V,Z=x.Ba,J=x.c;var st=x.i,H=(vt=1,S=x.$/J,I=x.$%J,U=x.m,K=x.s,x.$),V=J*st,gt=J*a,bt=K.wc,mt=H<gt?Me(K,I,S):null;t(H<=V),t(a<=st),t(ir(K));e:for(;;){for(;!U.h&&H<gt;){if(I&bt||(mt=Me(K,I,S)),t(mt!=null),Y(U),256>(st=an(mt.G[0],mt.H[0],U)))L[Z+H]=st,++H,++I>=J&&(I=0,++S<=a&&!(S%16)&&Cn(x,S));else{if(!(280>st)){vt=0;break e}st=kn(st-256,U);var Mt,St=an(mt.G[4],mt.H[4],U);if(Y(U),!(H>=(St=Vn(J,St=kn(St,U)))&&V-H>=st)){vt=0;break e}for(Mt=0;Mt<st;++Mt)L[Z+H+Mt]=L[Z+H+Mt-St];for(H+=st,I+=st;I>=J;)I-=J,++S<=a&&!(S%16)&&Cn(x,S);H<gt&&I&bt&&(mt=Me(K,I,S))}t(U.h==B(U))}Cn(x,S>a?a:S);break e}!vt||U.h&&H<V?(vt=0,x.a=U.h?5:3):x.$=H,a=vt}else a=On(x,x.V,x.Ba,x.c,x.i,a,$r);if(!a){p=0;break t}}c+p>=w&&(e.Cc=1),p=1}if(!p)return null;if(e.Cc&&((p=e.ga)!=null&&(p.mc=null),e.ga=null,0<e.Ga))return alert("todo:WebPDequantizeLevels"),null}return e.nb+c*m}function l(e,a,c,p,m,w){for(;0<m--;){var x,L=e,S=a+(c?1:0),I=e,U=a+(c?0:3);for(x=0;x<p;++x){var K=I[U+4*x];K!=255&&(K*=32897,L[S+4*x+0]=L[S+4*x+0]*K>>23,L[S+4*x+1]=L[S+4*x+1]*K>>23,L[S+4*x+2]=L[S+4*x+2]*K>>23)}a+=w}}function b(e,a,c,p,m){for(;0<p--;){var w;for(w=0;w<c;++w){var x=e[a+2*w+0],L=15&(I=e[a+2*w+1]),S=4369*L,I=(240&I|I>>4)*S>>16;e[a+2*w+0]=(240&x|x>>4)*S>>16&240|(15&x|x<<4)*S>>16>>4&15,e[a+2*w+1]=240&I|L}a+=m}}function j(e,a,c,p,m,w,x,L){var S,I,U=255;for(I=0;I<m;++I){for(S=0;S<p;++S){var K=e[a+S];w[x+4*S]=K,U&=K}a+=c,x+=L}return U!=255}function q(e,a,c,p,m){var w;for(w=0;w<m;++w)c[p+w]=e[a+w]>>8}function X(){An=l,ye=b,we=j,Ie=q}function ut(e,a,c){z[e]=function(p,m,w,x,L,S,I,U,K,Z,J,vt,st,H,V,gt,bt){var mt,Mt=bt-1>>1,St=L[S+0]|I[U+0]<<16,qt=K[Z+0]|J[vt+0]<<16;t(p!=null);var _t=3*St+qt+131074>>2;for(a(p[m+0],255&_t,_t>>16,st,H),w!=null&&(_t=3*qt+St+131074>>2,a(w[x+0],255&_t,_t>>16,V,gt)),mt=1;mt<=Mt;++mt){var se=L[S+mt]|I[U+mt]<<16,he=K[Z+mt]|J[vt+mt]<<16,ae=St+se+qt+he+524296,ne=ae+2*(se+qt)>>3;_t=ne+St>>1,St=(ae=ae+2*(St+he)>>3)+se>>1,a(p[m+2*mt-1],255&_t,_t>>16,st,H+(2*mt-1)*c),a(p[m+2*mt-0],255&St,St>>16,st,H+(2*mt-0)*c),w!=null&&(_t=ae+qt>>1,St=ne+he>>1,a(w[x+2*mt-1],255&_t,_t>>16,V,gt+(2*mt-1)*c),a(w[x+2*mt+0],255&St,St>>16,V,gt+(2*mt+0)*c)),St=se,qt=he}1&bt||(_t=3*St+qt+131074>>2,a(p[m+bt-1],255&_t,_t>>16,st,H+(bt-1)*c),w!=null&&(_t=3*qt+St+131074>>2,a(w[x+bt-1],255&_t,_t>>16,V,gt+(bt-1)*c)))}}function wt(){Nn[Ha]=Su,Nn[Wa]=Hs,Nn[Es]=Pu,Nn[Ga]=Ws,Nn[Va]=Gs,Nn[Ko]=Vs,Nn[qs]=_u,Nn[Zo]=Hs,Nn[$o]=Ws,Nn[Ja]=Gs,Nn[Qo]=Vs}function jt(e){return e&~Fu?0>e?0:255:e>>Js}function Et(e,a){return jt((19077*e>>8)+(26149*a>>8)-14234)}function Zt(e,a,c){return jt((19077*e>>8)-(6419*a>>8)-(13320*c>>8)+8708)}function Yt(e,a){return jt((19077*e>>8)+(33050*a>>8)-17685)}function re(e,a,c,p,m){p[m+0]=Et(e,c),p[m+1]=Zt(e,a,c),p[m+2]=Yt(e,a)}function Ae(e,a,c,p,m){p[m+0]=Yt(e,a),p[m+1]=Zt(e,a,c),p[m+2]=Et(e,c)}function Se(e,a,c,p,m){var w=Zt(e,a,c);a=w<<3&224|Yt(e,a)>>3,p[m+0]=248&Et(e,c)|w>>5,p[m+1]=a}function De(e,a,c,p,m){var w=240&Yt(e,a)|15;p[m+0]=240&Et(e,c)|Zt(e,a,c)>>4,p[m+1]=w}function Xe(e,a,c,p,m){p[m+0]=255,re(e,a,c,p,m+1)}function Re(e,a,c,p,m){Ae(e,a,c,p,m),p[m+3]=255}function Dn(e,a,c,p,m){re(e,a,c,p,m),p[m+3]=255}function pn(e,a){return 0>e?0:e>a?a:e}function Zn(e,a,c){z[e]=function(p,m,w,x,L,S,I,U,K){for(var Z=U+(-2&K)*c;U!=Z;)a(p[m+0],w[x+0],L[S+0],I,U),a(p[m+1],w[x+0],L[S+0],I,U+c),m+=2,++x,++S,U+=2*c;1&K&&a(p[m+0],w[x+0],L[S+0],I,U)}}function Ba(e,a,c){return c==0?e==0?a==0?6:5:a==0?4:0:c}function Ki(e,a,c,p,m){switch(e>>>30){case 3:ur(a,c,p,m,0);break;case 2:ke(a,c,p,m);break;case 1:nn(a,c,p,m)}}function Zi(e,a){var c,p,m=a.M,w=a.Nb,x=e.oc,L=e.pc+40,S=e.oc,I=e.pc+584,U=e.oc,K=e.pc+600;for(c=0;16>c;++c)x[L+32*c-1]=129;for(c=0;8>c;++c)S[I+32*c-1]=129,U[K+32*c-1]=129;for(0<m?x[L-1-32]=S[I-1-32]=U[K-1-32]=129:(s(x,L-32-1,127,21),s(S,I-32-1,127,9),s(U,K-32-1,127,9)),p=0;p<e.za;++p){var Z=a.ya[a.aa+p];if(0<p){for(c=-1;16>c;++c)i(x,L+32*c-4,x,L+32*c+12,4);for(c=-1;8>c;++c)i(S,I+32*c-4,S,I+32*c+4,4),i(U,K+32*c-4,U,K+32*c+4,4)}var J=e.Gd,vt=e.Hd+p,st=Z.ad,H=Z.Hc;if(0<m&&(i(x,L-32,J[vt].y,0,16),i(S,I-32,J[vt].f,0,8),i(U,K-32,J[vt].ea,0,8)),Z.Za){var V=x,gt=L-32+16;for(0<m&&(p>=e.za-1?s(V,gt,J[vt].y[15],4):i(V,gt,J[vt+1].y,0,4)),c=0;4>c;c++)V[gt+128+c]=V[gt+256+c]=V[gt+384+c]=V[gt+0+c];for(c=0;16>c;++c,H<<=2)V=x,gt=L+Xs[c],Bn[Z.Ob[c]](V,gt),Ki(H,st,16*+c,V,gt)}else if(V=Ba(p,m,Z.Ob[0]),Lr[V](x,L),H!=0)for(c=0;16>c;++c,H<<=2)Ki(H,st,16*+c,x,L+Xs[c]);for(c=Z.Gc,V=Ba(p,m,Z.Dd),hr[V](S,I),hr[V](U,K),H=st,V=S,gt=I,255&(Z=c>>0)&&(170&Z?na(H,256,V,gt):wn(H,256,V,gt)),Z=U,H=K,255&(c>>=8)&&(170&c?na(st,320,Z,H):wn(st,320,Z,H)),m<e.Ub-1&&(i(J[vt].y,0,x,L+480,16),i(J[vt].f,0,S,I+224,8),i(J[vt].ea,0,U,K+224,8)),c=8*w*e.B,J=e.sa,vt=e.ta+16*p+16*w*e.R,st=e.qa,Z=e.ra+8*p+c,H=e.Ha,V=e.Ia+8*p+c,c=0;16>c;++c)i(J,vt+c*e.R,x,L+32*c,16);for(c=0;8>c;++c)i(st,Z+c*e.B,S,I+32*c,8),i(H,V+c*e.B,U,K+32*c,8)}}function fi(e,a,c,p,m,w,x,L,S){var I=[0],U=[0],K=0,Z=S!=null?S.kd:0,J=S??new Vi;if(e==null||12>c)return 7;J.data=e,J.w=a,J.ha=c,a=[a],c=[c],J.gb=[J.gb];t:{var vt=a,st=c,H=J.gb;if(t(e!=null),t(st!=null),t(H!=null),H[0]=0,12<=st[0]&&!n(e,vt[0],"RIFF")){if(n(e,vt[0]+8,"WEBP")){H=3;break t}var V=Pt(e,vt[0]+4);if(12>V||4294967286<V){H=3;break t}if(Z&&V>st[0]-8){H=7;break t}H[0]=V,vt[0]+=12,st[0]-=12}H=0}if(H!=0)return H;for(V=0<J.gb[0],c=c[0];;){t:{var gt=e;st=a,H=c;var bt=I,mt=U,Mt=vt=[0];if((_t=K=[K])[0]=0,8>H[0])H=7;else{if(!n(gt,st[0],"VP8X")){if(Pt(gt,st[0]+4)!=10){H=3;break t}if(18>H[0]){H=7;break t}var St=Pt(gt,st[0]+8),qt=1+kt(gt,st[0]+12);if(2147483648<=qt*(gt=1+kt(gt,st[0]+15))){H=3;break t}Mt!=null&&(Mt[0]=St),bt!=null&&(bt[0]=qt),mt!=null&&(mt[0]=gt),st[0]+=18,H[0]-=18,_t[0]=1}H=0}}if(K=K[0],vt=vt[0],H!=0)return H;if(st=!!(2&vt),!V&&K)return 3;if(w!=null&&(w[0]=!!(16&vt)),x!=null&&(x[0]=st),L!=null&&(L[0]=0),x=I[0],vt=U[0],K&&st&&S==null){H=0;break}if(4>c){H=7;break}if(V&&K||!V&&!K&&!n(e,a[0],"ALPH")){c=[c],J.na=[J.na],J.P=[J.P],J.Sa=[J.Sa];t:{St=e,H=a,V=c;var _t=J.gb;bt=J.na,mt=J.P,Mt=J.Sa,qt=22,t(St!=null),t(V!=null),gt=H[0];var se=V[0];for(t(bt!=null),t(Mt!=null),bt[0]=null,mt[0]=null,Mt[0]=0;;){if(H[0]=gt,V[0]=se,8>se){H=7;break t}var he=Pt(St,gt+4);if(4294967286<he){H=3;break t}var ae=8+he+1&-2;if(qt+=ae,0<_t&&qt>_t){H=3;break t}if(!n(St,gt,"VP8 ")||!n(St,gt,"VP8L")){H=0;break t}if(se[0]<ae){H=7;break t}n(St,gt,"ALPH")||(bt[0]=St,mt[0]=gt+8,Mt[0]=he),gt+=ae,se-=ae}}if(c=c[0],J.na=J.na[0],J.P=J.P[0],J.Sa=J.Sa[0],H!=0)break}c=[c],J.Ja=[J.Ja],J.xa=[J.xa];t:if(_t=e,H=a,V=c,bt=J.gb[0],mt=J.Ja,Mt=J.xa,St=H[0],gt=!n(_t,St,"VP8 "),qt=!n(_t,St,"VP8L"),t(_t!=null),t(V!=null),t(mt!=null),t(Mt!=null),8>V[0])H=7;else{if(gt||qt){if(_t=Pt(_t,St+4),12<=bt&&_t>bt-12){H=3;break t}if(Z&&_t>V[0]-8){H=7;break t}mt[0]=_t,H[0]+=8,V[0]-=8,Mt[0]=qt}else Mt[0]=5<=V[0]&&_t[St+0]==47&&!(_t[St+4]>>5),mt[0]=V[0];H=0}if(c=c[0],J.Ja=J.Ja[0],J.xa=J.xa[0],a=a[0],H!=0)break;if(4294967286<J.Ja)return 3;if(L==null||st||(L[0]=J.xa?2:1),x=[x],vt=[vt],J.xa){if(5>c){H=7;break}L=x,Z=vt,st=w,e==null||5>c?e=0:5<=c&&e[a+0]==47&&!(e[a+4]>>5)?(V=[0],_t=[0],bt=[0],$(mt=new A,e,a,c),zt(mt,V,_t,bt)?(L!=null&&(L[0]=V[0]),Z!=null&&(Z[0]=_t[0]),st!=null&&(st[0]=bt[0]),e=1):e=0):e=0}else{if(10>c){H=7;break}L=vt,e==null||10>c||!wa(e,a+3,c-3)?e=0:(Z=e[a+0]|e[a+1]<<8|e[a+2]<<16,st=16383&(e[a+7]<<8|e[a+6]),e=16383&(e[a+9]<<8|e[a+8]),1&Z||3<(Z>>1&7)||!(Z>>4&1)||Z>>5>=J.Ja||!st||!e?e=0:(x&&(x[0]=st),L&&(L[0]=e),e=1))}if(!e||(x=x[0],vt=vt[0],K&&(I[0]!=x||U[0]!=vt)))return 3;S!=null&&(S[0]=J,S.offset=a-S.w,t(4294967286>a-S.w),t(S.offset==S.ha-c));break}return H==0||H==7&&K&&S==null?(w!=null&&(w[0]|=J.na!=null&&0<J.na.length),p!=null&&(p[0]=x),m!=null&&(m[0]=vt),0):H}function $i(e,a,c){var p=a.width,m=a.height,w=0,x=0,L=p,S=m;if(a.Da=e!=null&&0<e.Da,a.Da&&(L=e.cd,S=e.bd,w=e.v,x=e.j,11>c||(w&=-2,x&=-2),0>w||0>x||0>=L||0>=S||w+L>p||x+S>m))return 0;if(a.v=w,a.j=x,a.va=w+L,a.o=x+S,a.U=L,a.T=S,a.da=e!=null&&0<e.da,a.da){if(!Kt(L,S,c=[e.ib],w=[e.hb]))return 0;a.ib=c[0],a.hb=w[0]}return a.ob=e!=null&&e.ob,a.Kb=e==null||!e.Sd,a.da&&(a.ob=a.ib<3*p/4&&a.hb<3*m/4,a.Kb=0),1}function Qi(e){if(e==null)return 2;if(11>e.S){var a=e.f.RGBA;a.fb+=(e.height-1)*a.A,a.A=-a.A}else a=e.f.kb,e=e.height,a.O+=(e-1)*a.fa,a.fa=-a.fa,a.N+=(e-1>>1)*a.Ab,a.Ab=-a.Ab,a.W+=(e-1>>1)*a.Db,a.Db=-a.Db,a.F!=null&&(a.J+=(e-1)*a.lb,a.lb=-a.lb);return 0}function pi(e,a,c,p){if(p==null||0>=e||0>=a)return 2;if(c!=null){if(c.Da){var m=c.cd,w=c.bd,x=-2&c.v,L=-2&c.j;if(0>x||0>L||0>=m||0>=w||x+m>e||L+w>a)return 2;e=m,a=w}if(c.da){if(!Kt(e,a,m=[c.ib],w=[c.hb]))return 2;e=m[0],a=w[0]}}p.width=e,p.height=a;t:{var S=p.width,I=p.height;if(e=p.S,0>=S||0>=I||!(e>=Ha&&13>e))e=2;else{if(0>=p.Rd&&p.sd==null){x=w=m=a=0;var U=(L=S*Ks[e])*I;if(11>e||(w=(I+1)/2*(a=(S+1)/2),e==12&&(x=(m=S)*I)),(I=o(U+2*w+x))==null){e=1;break t}p.sd=I,11>e?((S=p.f.RGBA).eb=I,S.fb=0,S.A=L,S.size=U):((S=p.f.kb).y=I,S.O=0,S.fa=L,S.Fd=U,S.f=I,S.N=0+U,S.Ab=a,S.Cd=w,S.ea=I,S.W=0+U+w,S.Db=a,S.Ed=w,e==12&&(S.F=I,S.J=0+U+2*w),S.Tc=x,S.lb=m)}if(a=1,m=p.S,w=p.width,x=p.height,m>=Ha&&13>m)if(11>m)e=p.f.RGBA,a&=(L=Math.abs(e.A))*(x-1)+w<=e.size,a&=L>=w*Ks[m],a&=e.eb!=null;else{e=p.f.kb,L=(w+1)/2,U=(x+1)/2,S=Math.abs(e.fa),I=Math.abs(e.Ab);var K=Math.abs(e.Db),Z=Math.abs(e.lb),J=Z*(x-1)+w;a&=S*(x-1)+w<=e.Fd,a&=I*(U-1)+L<=e.Cd,a=(a&=K*(U-1)+L<=e.Ed)&S>=w&I>=L&K>=L,a&=e.y!=null,a&=e.f!=null,a&=e.ea!=null,m==12&&(a&=Z>=w,a&=J<=e.Tc,a&=e.F!=null)}else a=0;e=a?0:2}}return e!=0||c!=null&&c.fd&&(e=Qi(p)),e}var Ge=64,di=[0,1,3,7,15,31,63,127,255,511,1023,2047,4095,8191,16383,32767,65535,131071,262143,524287,1048575,2097151,4194303,8388607,16777215],gi=24,mi=32,ta=8,sn=[0,0,1,1,2,2,2,2,3,3,3,3,3,3,3,3,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7];Nt("Predictor0","PredictorAdd0"),z.Predictor0=function(){return 4278190080},z.Predictor1=function(e){return e},z.Predictor2=function(e,a,c){return a[c+0]},z.Predictor3=function(e,a,c){return a[c+1]},z.Predictor4=function(e,a,c){return a[c-1]},z.Predictor5=function(e,a,c){return Ft(Ft(e,a[c+1]),a[c+0])},z.Predictor6=function(e,a,c){return Ft(e,a[c-1])},z.Predictor7=function(e,a,c){return Ft(e,a[c+0])},z.Predictor8=function(e,a,c){return Ft(a[c-1],a[c+0])},z.Predictor9=function(e,a,c){return Ft(a[c+0],a[c+1])},z.Predictor10=function(e,a,c){return Ft(Ft(e,a[c-1]),Ft(a[c+0],a[c+1]))},z.Predictor11=function(e,a,c){var p=a[c+0];return 0>=Qt(p>>24&255,e>>24&255,(a=a[c-1])>>24&255)+Qt(p>>16&255,e>>16&255,a>>16&255)+Qt(p>>8&255,e>>8&255,a>>8&255)+Qt(255&p,255&e,255&a)?p:e},z.Predictor12=function(e,a,c){var p=a[c+0];return(Tt((e>>24&255)+(p>>24&255)-((a=a[c-1])>>24&255))<<24|Tt((e>>16&255)+(p>>16&255)-(a>>16&255))<<16|Tt((e>>8&255)+(p>>8&255)-(a>>8&255))<<8|Tt((255&e)+(255&p)-(255&a)))>>>0},z.Predictor13=function(e,a,c){var p=a[c-1];return(Vt((e=Ft(e,a[c+0]))>>24&255,p>>24&255)<<24|Vt(e>>16&255,p>>16&255)<<16|Vt(e>>8&255,p>>8&255)<<8|Vt(e>>0&255,p>>0&255))>>>0};var Yo=z.PredictorAdd0;z.PredictorAdd1=te,Nt("Predictor2","PredictorAdd2"),Nt("Predictor3","PredictorAdd3"),Nt("Predictor4","PredictorAdd4"),Nt("Predictor5","PredictorAdd5"),Nt("Predictor6","PredictorAdd6"),Nt("Predictor7","PredictorAdd7"),Nt("Predictor8","PredictorAdd8"),Nt("Predictor9","PredictorAdd9"),Nt("Predictor10","PredictorAdd10"),Nt("Predictor11","PredictorAdd11"),Nt("Predictor12","PredictorAdd12"),Nt("Predictor13","PredictorAdd13");var ea=z.PredictorAdd2;ee("ColorIndexInverseTransform","MapARGB","32b",(function(e){return e>>8&255}),(function(e){return e})),ee("VP8LColorIndexInverseTransformAlpha","MapAlpha","8b",(function(e){return e}),(function(e){return e>>8&255}));var Ta,yn=z.ColorIndexInverseTransform,vi=z.MapARGB,Ea=z.VP8LColorIndexInverseTransformAlpha,qa=z.MapAlpha,yr=z.VP8LPredictorsAdd=[];yr.length=16,(z.VP8LPredictors=[]).length=16,(z.VP8LPredictorsAdd_C=[]).length=16,(z.VP8LPredictors_C=[]).length=16;var zr,ln,en,wr,sr,lr,bi,ur,ke,na,nn,wn,yi,Ra,ra,Ur,Hr,xr,Wr,wi,Gr,Ar,ia,xn,An,ye,we,Ie,qe=o(511),cr=o(2041),aa=o(225),xi=o(767),za=0,Xo=cr,Ua=aa,dn=xi,Ln=qe,Ha=0,Wa=1,Es=2,Ga=3,Va=4,Ko=5,qs=6,Zo=7,$o=8,Ja=9,Qo=10,hu=[2,3,7],fu=[3,3,11],Rs=[280,256,256,256,40],pu=[0,1,1,1,0],du=[17,18,0,1,2,3,4,5,16,6,7,8,9,10,11,12,13,14,15],gu=[24,7,23,25,40,6,39,41,22,26,38,42,56,5,55,57,21,27,54,58,37,43,72,4,71,73,20,28,53,59,70,74,36,44,88,69,75,52,60,3,87,89,19,29,86,90,35,45,68,76,85,91,51,61,104,2,103,105,18,30,102,106,34,46,84,92,67,77,101,107,50,62,120,1,119,121,83,93,17,31,100,108,66,78,118,122,33,47,117,123,49,63,99,109,82,94,0,116,124,65,79,16,32,98,110,48,115,125,81,95,64,114,126,97,111,80,113,127,96,112],mu=[2954,2956,2958,2962,2970,2986,3018,3082,3212,3468,3980,5004],vu=8,ts=[4,5,6,7,8,9,10,10,11,12,13,14,15,16,17,17,18,19,20,20,21,21,22,22,23,23,24,25,25,26,27,28,29,30,31,32,33,34,35,36,37,37,38,39,40,41,42,43,44,45,46,46,47,48,49,50,51,52,53,54,55,56,57,58,59,60,61,62,63,64,65,66,67,68,69,70,71,72,73,74,75,76,76,77,78,79,80,81,82,83,84,85,86,87,88,89,91,93,95,96,98,100,101,102,104,106,108,110,112,114,116,118,122,124,126,128,130,132,134,136,138,140,143,145,148,151,154,157],es=[4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28,29,30,31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46,47,48,49,50,51,52,53,54,55,56,57,58,60,62,64,66,68,70,72,74,76,78,80,82,84,86,88,90,92,94,96,98,100,102,104,106,108,110,112,114,116,119,122,125,128,131,134,137,140,143,146,149,152,155,158,161,164,167,170,173,177,181,185,189,193,197,201,205,209,213,217,221,225,229,234,239,245,249,254,259,264,269,274,279,284],oa=null,bu=[[173,148,140,0],[176,155,140,135,0],[180,157,141,134,130,0],[254,254,243,230,196,177,153,140,133,130,129,0]],yu=[0,1,4,8,5,2,3,6,9,12,13,10,7,11,14,15],zs=[-0,1,-1,2,-2,3,4,6,-3,5,-4,-5,-6,7,-7,8,-8,-9],wu=[[[[128,128,128,128,128,128,128,128,128,128,128],[128,128,128,128,128,128,128,128,128,128,128],[128,128,128,128,128,128,128,128,128,128,128]],[[253,136,254,255,228,219,128,128,128,128,128],[189,129,242,255,227,213,255,219,128,128,128],[106,126,227,252,214,209,255,255,128,128,128]],[[1,98,248,255,236,226,255,255,128,128,128],[181,133,238,254,221,234,255,154,128,128,128],[78,134,202,247,198,180,255,219,128,128,128]],[[1,185,249,255,243,255,128,128,128,128,128],[184,150,247,255,236,224,128,128,128,128,128],[77,110,216,255,236,230,128,128,128,128,128]],[[1,101,251,255,241,255,128,128,128,128,128],[170,139,241,252,236,209,255,255,128,128,128],[37,116,196,243,228,255,255,255,128,128,128]],[[1,204,254,255,245,255,128,128,128,128,128],[207,160,250,255,238,128,128,128,128,128,128],[102,103,231,255,211,171,128,128,128,128,128]],[[1,152,252,255,240,255,128,128,128,128,128],[177,135,243,255,234,225,128,128,128,128,128],[80,129,211,255,194,224,128,128,128,128,128]],[[1,1,255,128,128,128,128,128,128,128,128],[246,1,255,128,128,128,128,128,128,128,128],[255,128,128,128,128,128,128,128,128,128,128]]],[[[198,35,237,223,193,187,162,160,145,155,62],[131,45,198,221,172,176,220,157,252,221,1],[68,47,146,208,149,167,221,162,255,223,128]],[[1,149,241,255,221,224,255,255,128,128,128],[184,141,234,253,222,220,255,199,128,128,128],[81,99,181,242,176,190,249,202,255,255,128]],[[1,129,232,253,214,197,242,196,255,255,128],[99,121,210,250,201,198,255,202,128,128,128],[23,91,163,242,170,187,247,210,255,255,128]],[[1,200,246,255,234,255,128,128,128,128,128],[109,178,241,255,231,245,255,255,128,128,128],[44,130,201,253,205,192,255,255,128,128,128]],[[1,132,239,251,219,209,255,165,128,128,128],[94,136,225,251,218,190,255,255,128,128,128],[22,100,174,245,186,161,255,199,128,128,128]],[[1,182,249,255,232,235,128,128,128,128,128],[124,143,241,255,227,234,128,128,128,128,128],[35,77,181,251,193,211,255,205,128,128,128]],[[1,157,247,255,236,231,255,255,128,128,128],[121,141,235,255,225,227,255,255,128,128,128],[45,99,188,251,195,217,255,224,128,128,128]],[[1,1,251,255,213,255,128,128,128,128,128],[203,1,248,255,255,128,128,128,128,128,128],[137,1,177,255,224,255,128,128,128,128,128]]],[[[253,9,248,251,207,208,255,192,128,128,128],[175,13,224,243,193,185,249,198,255,255,128],[73,17,171,221,161,179,236,167,255,234,128]],[[1,95,247,253,212,183,255,255,128,128,128],[239,90,244,250,211,209,255,255,128,128,128],[155,77,195,248,188,195,255,255,128,128,128]],[[1,24,239,251,218,219,255,205,128,128,128],[201,51,219,255,196,186,128,128,128,128,128],[69,46,190,239,201,218,255,228,128,128,128]],[[1,191,251,255,255,128,128,128,128,128,128],[223,165,249,255,213,255,128,128,128,128,128],[141,124,248,255,255,128,128,128,128,128,128]],[[1,16,248,255,255,128,128,128,128,128,128],[190,36,230,255,236,255,128,128,128,128,128],[149,1,255,128,128,128,128,128,128,128,128]],[[1,226,255,128,128,128,128,128,128,128,128],[247,192,255,128,128,128,128,128,128,128,128],[240,128,255,128,128,128,128,128,128,128,128]],[[1,134,252,255,255,128,128,128,128,128,128],[213,62,250,255,255,128,128,128,128,128,128],[55,93,255,128,128,128,128,128,128,128,128]],[[128,128,128,128,128,128,128,128,128,128,128],[128,128,128,128,128,128,128,128,128,128,128],[128,128,128,128,128,128,128,128,128,128,128]]],[[[202,24,213,235,186,191,220,160,240,175,255],[126,38,182,232,169,184,228,174,255,187,128],[61,46,138,219,151,178,240,170,255,216,128]],[[1,112,230,250,199,191,247,159,255,255,128],[166,109,228,252,211,215,255,174,128,128,128],[39,77,162,232,172,180,245,178,255,255,128]],[[1,52,220,246,198,199,249,220,255,255,128],[124,74,191,243,183,193,250,221,255,255,128],[24,71,130,219,154,170,243,182,255,255,128]],[[1,182,225,249,219,240,255,224,128,128,128],[149,150,226,252,216,205,255,171,128,128,128],[28,108,170,242,183,194,254,223,255,255,128]],[[1,81,230,252,204,203,255,192,128,128,128],[123,102,209,247,188,196,255,233,128,128,128],[20,95,153,243,164,173,255,203,128,128,128]],[[1,222,248,255,216,213,128,128,128,128,128],[168,175,246,252,235,205,255,255,128,128,128],[47,116,215,255,211,212,255,255,128,128,128]],[[1,121,236,253,212,214,255,255,128,128,128],[141,84,213,252,201,202,255,219,128,128,128],[42,80,160,240,162,185,255,205,128,128,128]],[[1,1,255,128,128,128,128,128,128,128,128],[244,1,255,128,128,128,128,128,128,128,128],[238,1,255,128,128,128,128,128,128,128,128]]]],xu=[[[231,120,48,89,115,113,120,152,112],[152,179,64,126,170,118,46,70,95],[175,69,143,80,85,82,72,155,103],[56,58,10,171,218,189,17,13,152],[114,26,17,163,44,195,21,10,173],[121,24,80,195,26,62,44,64,85],[144,71,10,38,171,213,144,34,26],[170,46,55,19,136,160,33,206,71],[63,20,8,114,114,208,12,9,226],[81,40,11,96,182,84,29,16,36]],[[134,183,89,137,98,101,106,165,148],[72,187,100,130,157,111,32,75,80],[66,102,167,99,74,62,40,234,128],[41,53,9,178,241,141,26,8,107],[74,43,26,146,73,166,49,23,157],[65,38,105,160,51,52,31,115,128],[104,79,12,27,217,255,87,17,7],[87,68,71,44,114,51,15,186,23],[47,41,14,110,182,183,21,17,194],[66,45,25,102,197,189,23,18,22]],[[88,88,147,150,42,46,45,196,205],[43,97,183,117,85,38,35,179,61],[39,53,200,87,26,21,43,232,171],[56,34,51,104,114,102,29,93,77],[39,28,85,171,58,165,90,98,64],[34,22,116,206,23,34,43,166,73],[107,54,32,26,51,1,81,43,31],[68,25,106,22,64,171,36,225,114],[34,19,21,102,132,188,16,76,124],[62,18,78,95,85,57,50,48,51]],[[193,101,35,159,215,111,89,46,111],[60,148,31,172,219,228,21,18,111],[112,113,77,85,179,255,38,120,114],[40,42,1,196,245,209,10,25,109],[88,43,29,140,166,213,37,43,154],[61,63,30,155,67,45,68,1,209],[100,80,8,43,154,1,51,26,71],[142,78,78,16,255,128,34,197,171],[41,40,5,102,211,183,4,1,221],[51,50,17,168,209,192,23,25,82]],[[138,31,36,171,27,166,38,44,229],[67,87,58,169,82,115,26,59,179],[63,59,90,180,59,166,93,73,154],[40,40,21,116,143,209,34,39,175],[47,15,16,183,34,223,49,45,183],[46,17,33,183,6,98,15,32,183],[57,46,22,24,128,1,54,17,37],[65,32,73,115,28,128,23,128,205],[40,3,9,115,51,192,18,6,223],[87,37,9,115,59,77,64,21,47]],[[104,55,44,218,9,54,53,130,226],[64,90,70,205,40,41,23,26,57],[54,57,112,184,5,41,38,166,213],[30,34,26,133,152,116,10,32,134],[39,19,53,221,26,114,32,73,255],[31,9,65,234,2,15,1,118,73],[75,32,12,51,192,255,160,43,51],[88,31,35,67,102,85,55,186,85],[56,21,23,111,59,205,45,37,192],[55,38,70,124,73,102,1,34,98]],[[125,98,42,88,104,85,117,175,82],[95,84,53,89,128,100,113,101,45],[75,79,123,47,51,128,81,171,1],[57,17,5,71,102,57,53,41,49],[38,33,13,121,57,73,26,1,85],[41,10,67,138,77,110,90,47,114],[115,21,2,10,102,255,166,23,6],[101,29,16,10,85,128,101,196,26],[57,18,10,102,102,213,34,20,43],[117,20,15,36,163,128,68,1,26]],[[102,61,71,37,34,53,31,243,192],[69,60,71,38,73,119,28,222,37],[68,45,128,34,1,47,11,245,171],[62,17,19,70,146,85,55,62,70],[37,43,37,154,100,163,85,160,1],[63,9,92,136,28,64,32,201,85],[75,15,9,9,64,255,184,119,16],[86,6,28,5,64,255,25,248,1],[56,8,17,132,137,255,55,116,128],[58,15,20,82,135,57,26,121,40]],[[164,50,31,137,154,133,25,35,218],[51,103,44,131,131,123,31,6,158],[86,40,64,135,148,224,45,183,128],[22,26,17,131,240,154,14,1,209],[45,16,21,91,64,222,7,1,197],[56,21,39,155,60,138,23,102,213],[83,12,13,54,192,255,68,47,28],[85,26,85,85,128,128,32,146,171],[18,11,7,63,144,171,4,4,246],[35,27,10,146,174,171,12,26,128]],[[190,80,35,99,180,80,126,54,45],[85,126,47,87,176,51,41,20,32],[101,75,128,139,118,146,116,128,85],[56,41,15,176,236,85,37,9,62],[71,30,17,119,118,255,17,18,138],[101,38,60,138,55,70,43,26,142],[146,36,19,30,171,255,97,27,20],[138,45,61,62,219,1,81,188,64],[32,41,20,117,151,142,20,21,163],[112,19,12,61,195,128,48,4,24]]],Au=[[[[255,255,255,255,255,255,255,255,255,255,255],[255,255,255,255,255,255,255,255,255,255,255],[255,255,255,255,255,255,255,255,255,255,255]],[[176,246,255,255,255,255,255,255,255,255,255],[223,241,252,255,255,255,255,255,255,255,255],[249,253,253,255,255,255,255,255,255,255,255]],[[255,244,252,255,255,255,255,255,255,255,255],[234,254,254,255,255,255,255,255,255,255,255],[253,255,255,255,255,255,255,255,255,255,255]],[[255,246,254,255,255,255,255,255,255,255,255],[239,253,254,255,255,255,255,255,255,255,255],[254,255,254,255,255,255,255,255,255,255,255]],[[255,248,254,255,255,255,255,255,255,255,255],[251,255,254,255,255,255,255,255,255,255,255],[255,255,255,255,255,255,255,255,255,255,255]],[[255,253,254,255,255,255,255,255,255,255,255],[251,254,254,255,255,255,255,255,255,255,255],[254,255,254,255,255,255,255,255,255,255,255]],[[255,254,253,255,254,255,255,255,255,255,255],[250,255,254,255,254,255,255,255,255,255,255],[254,255,255,255,255,255,255,255,255,255,255]],[[255,255,255,255,255,255,255,255,255,255,255],[255,255,255,255,255,255,255,255,255,255,255],[255,255,255,255,255,255,255,255,255,255,255]]],[[[217,255,255,255,255,255,255,255,255,255,255],[225,252,241,253,255,255,254,255,255,255,255],[234,250,241,250,253,255,253,254,255,255,255]],[[255,254,255,255,255,255,255,255,255,255,255],[223,254,254,255,255,255,255,255,255,255,255],[238,253,254,254,255,255,255,255,255,255,255]],[[255,248,254,255,255,255,255,255,255,255,255],[249,254,255,255,255,255,255,255,255,255,255],[255,255,255,255,255,255,255,255,255,255,255]],[[255,253,255,255,255,255,255,255,255,255,255],[247,254,255,255,255,255,255,255,255,255,255],[255,255,255,255,255,255,255,255,255,255,255]],[[255,253,254,255,255,255,255,255,255,255,255],[252,255,255,255,255,255,255,255,255,255,255],[255,255,255,255,255,255,255,255,255,255,255]],[[255,254,254,255,255,255,255,255,255,255,255],[253,255,255,255,255,255,255,255,255,255,255],[255,255,255,255,255,255,255,255,255,255,255]],[[255,254,253,255,255,255,255,255,255,255,255],[250,255,255,255,255,255,255,255,255,255,255],[254,255,255,255,255,255,255,255,255,255,255]],[[255,255,255,255,255,255,255,255,255,255,255],[255,255,255,255,255,255,255,255,255,255,255],[255,255,255,255,255,255,255,255,255,255,255]]],[[[186,251,250,255,255,255,255,255,255,255,255],[234,251,244,254,255,255,255,255,255,255,255],[251,251,243,253,254,255,254,255,255,255,255]],[[255,253,254,255,255,255,255,255,255,255,255],[236,253,254,255,255,255,255,255,255,255,255],[251,253,253,254,254,255,255,255,255,255,255]],[[255,254,254,255,255,255,255,255,255,255,255],[254,254,254,255,255,255,255,255,255,255,255],[255,255,255,255,255,255,255,255,255,255,255]],[[255,254,255,255,255,255,255,255,255,255,255],[254,254,255,255,255,255,255,255,255,255,255],[254,255,255,255,255,255,255,255,255,255,255]],[[255,255,255,255,255,255,255,255,255,255,255],[254,255,255,255,255,255,255,255,255,255,255],[255,255,255,255,255,255,255,255,255,255,255]],[[255,255,255,255,255,255,255,255,255,255,255],[255,255,255,255,255,255,255,255,255,255,255],[255,255,255,255,255,255,255,255,255,255,255]],[[255,255,255,255,255,255,255,255,255,255,255],[255,255,255,255,255,255,255,255,255,255,255],[255,255,255,255,255,255,255,255,255,255,255]],[[255,255,255,255,255,255,255,255,255,255,255],[255,255,255,255,255,255,255,255,255,255,255],[255,255,255,255,255,255,255,255,255,255,255]]],[[[248,255,255,255,255,255,255,255,255,255,255],[250,254,252,254,255,255,255,255,255,255,255],[248,254,249,253,255,255,255,255,255,255,255]],[[255,253,253,255,255,255,255,255,255,255,255],[246,253,253,255,255,255,255,255,255,255,255],[252,254,251,254,254,255,255,255,255,255,255]],[[255,254,252,255,255,255,255,255,255,255,255],[248,254,253,255,255,255,255,255,255,255,255],[253,255,254,254,255,255,255,255,255,255,255]],[[255,251,254,255,255,255,255,255,255,255,255],[245,251,254,255,255,255,255,255,255,255,255],[253,253,254,255,255,255,255,255,255,255,255]],[[255,251,253,255,255,255,255,255,255,255,255],[252,253,254,255,255,255,255,255,255,255,255],[255,254,255,255,255,255,255,255,255,255,255]],[[255,252,255,255,255,255,255,255,255,255,255],[249,255,254,255,255,255,255,255,255,255,255],[255,255,254,255,255,255,255,255,255,255,255]],[[255,255,253,255,255,255,255,255,255,255,255],[250,255,255,255,255,255,255,255,255,255,255],[255,255,255,255,255,255,255,255,255,255,255]],[[255,255,255,255,255,255,255,255,255,255,255],[254,255,255,255,255,255,255,255,255,255,255],[255,255,255,255,255,255,255,255,255,255,255]]]],Lu=[0,1,2,3,6,4,5,6,6,6,6,6,6,6,6,7,0],Lr=[],Bn=[],hr=[],Nu=1,Us=2,Nr=[],Nn=[];ut("UpsampleRgbLinePair",re,3),ut("UpsampleBgrLinePair",Ae,3),ut("UpsampleRgbaLinePair",Dn,4),ut("UpsampleBgraLinePair",Re,4),ut("UpsampleArgbLinePair",Xe,4),ut("UpsampleRgba4444LinePair",De,2),ut("UpsampleRgb565LinePair",Se,2);var Su=z.UpsampleRgbLinePair,Pu=z.UpsampleBgrLinePair,Hs=z.UpsampleRgbaLinePair,Ws=z.UpsampleBgraLinePair,Gs=z.UpsampleArgbLinePair,Vs=z.UpsampleRgba4444LinePair,_u=z.UpsampleRgb565LinePair,Ya=16,Xa=1<<Ya-1,sa=-227,ns=482,Js=6,Fu=(256<<Js)-1,Ys=0,ku=o(256),Iu=o(256),Cu=o(256),Ou=o(256),ju=o(ns-sa),Mu=o(ns-sa);Zn("YuvToRgbRow",re,3),Zn("YuvToBgrRow",Ae,3),Zn("YuvToRgbaRow",Dn,4),Zn("YuvToBgraRow",Re,4),Zn("YuvToArgbRow",Xe,4),Zn("YuvToRgba4444Row",De,2),Zn("YuvToRgb565Row",Se,2);var Xs=[0,4,8,12,128,132,136,140,256,260,264,268,384,388,392,396],Ka=[0,2,8],Du=[8,7,6,4,4,2,2,2,1,1,1,1],Bu=1;this.WebPDecodeRGBA=function(e,a,c,p,m){var w=Wa,x=new ci,L=new Fn;x.ba=L,L.S=w,L.width=[L.width],L.height=[L.height];var S=L.width,I=L.height,U=new rr;if(U==null||e==null)var K=2;else t(U!=null),K=fi(e,a,c,U.width,U.height,U.Pd,U.Qd,U.format,null);if(K!=0?S=0:(S!=null&&(S[0]=U.width[0]),I!=null&&(I[0]=U.height[0]),S=1),S){L.width=L.width[0],L.height=L.height[0],p!=null&&(p[0]=L.width),m!=null&&(m[0]=L.height);t:{if(p=new ri,(m=new Vi).data=e,m.w=a,m.ha=c,m.kd=1,a=[0],t(m!=null),((e=fi(m.data,m.w,m.ha,null,null,null,a,null,m))==0||e==7)&&a[0]&&(e=4),(a=e)==0){if(t(x!=null),p.data=m.data,p.w=m.w+m.offset,p.ha=m.ha-m.offset,p.put=Wn,p.ac=We,p.bc=Gn,p.ma=x,m.xa){if((e=bn())==null){x=1;break t}if((function(Z,J){var vt=[0],st=[0],H=[0];e:for(;;){if(Z==null)return 0;if(J==null)return Z.a=2,0;if(Z.l=J,Z.a=0,$(Z.m,J.data,J.w,J.ha),!zt(Z.m,vt,st,H)){Z.a=3;break e}if(Z.xb=Us,J.width=vt[0],J.height=st[0],!Yn(vt[0],st[0],1,Z,null))break e;return 1}return t(Z.a!=0),0})(e,p)){if(p=(a=pi(p.width,p.height,x.Oa,x.ba))==0){e:{p=e;n:for(;;){if(p==null){p=0;break e}if(t(p.s.yc!=null),t(p.s.Ya!=null),t(0<p.s.Wb),t((c=p.l)!=null),t((m=c.ma)!=null),p.xb!=0){if(p.ca=m.ba,p.tb=m.tb,t(p.ca!=null),!$i(m.Oa,c,Ga)){p.a=2;break n}if(!Br(p,c.width)||c.da)break n;if((c.da||ue(p.ca.S))&&X(),11>p.ca.S||(alert("todo:WebPInitConvertARGBToYUV"),p.ca.f.kb.F!=null&&X()),p.Pb&&0<p.s.ua&&p.s.vb.X==null&&!Ut(p.s.vb,p.s.Wa.Xa)){p.a=1;break n}p.xb=0}if(!On(p,p.V,p.Ba,p.c,p.i,c.o,Zr))break n;m.Dc=p.Ma,p=1;break e}t(p.a!=0),p=0}p=!p}p&&(a=e.a)}else a=e.a}else{if((e=new ko)==null){x=1;break t}if(e.Fa=m.na,e.P=m.P,e.qc=m.Sa,xa(e,p)){if((a=pi(p.width,p.height,x.Oa,x.ba))==0){if(e.Aa=0,c=x.Oa,t((m=e)!=null),c!=null){if(0<(S=0>(S=c.Md)?0:100<S?255:255*S/100)){for(I=U=0;4>I;++I)12>(K=m.pb[I]).lc&&(K.ia=S*Du[0>K.lc?0:K.lc]>>3),U|=K.ia;U&&(alert("todo:VP8InitRandom"),m.ia=1)}m.Ga=c.Id,100<m.Ga?m.Ga=100:0>m.Ga&&(m.Ga=0)}Io(e,p)||(a=e.a)}}else a=e.a}a==0&&x.Oa!=null&&x.Oa.fd&&(a=Qi(x.ba))}x=a}w=x!=0?null:11>w?L.f.RGBA.eb:L.f.kb.y}else w=null;return w};var Ks=[3,4,3,4,4,2,2,4,4,4,2,1,1]};function g(z,it){for(var dt="",_=0;_<4;_++)dt+=String.fromCharCode(z[it++]);return dt}function v(z,it){return(z[it+0]<<0|z[it+1]<<8|z[it+2]<<16)>>>0}function y(z,it){return(z[it+0]<<0|z[it+1]<<8|z[it+2]<<16|z[it+3]<<24)>>>0}new f;var N=[0],d=[0],C=[],F=new f,D=r,P=(function(z,it){var dt={},_=0,k=!1,G=0,E=0;if(dt.frames=[],!(function(O,B,R,Y){for(var Q=0;Q<Y;Q++)if(O[B+Q]!=R.charCodeAt(Q))return!0;return!1})(z,it,"RIFF",4)){for(y(z,it+=4),it+=8;it<z.length;){var lt=g(z,it),at=y(z,it+=4);it+=4;var ht=at+(1&at);switch(lt){case"VP8 ":case"VP8L":dt.frames[_]===void 0&&(dt.frames[_]={}),(pt=dt.frames[_]).src_off=k?E:it-8,pt.src_size=G+at+8,_++,k&&(k=!1,G=0,E=0);break;case"VP8X":(pt=dt.header={}).feature_flags=z[it];var $=it+4;pt.canvas_width=1+v(z,$),$+=3,pt.canvas_height=1+v(z,$),$+=3;break;case"ALPH":k=!0,G=ht+8,E=it-8;break;case"ANIM":(pt=dt.header).bgcolor=y(z,it),$=it+4,pt.loop_count=(Ot=z)[(A=$)+0]<<0|Ot[A+1]<<8,$+=2;break;case"ANMF":var ct,pt;(pt=dt.frames[_]={}).offset_x=2*v(z,it),it+=3,pt.offset_y=2*v(z,it),it+=3,pt.width=1+v(z,it),it+=3,pt.height=1+v(z,it),it+=3,pt.duration=v(z,it),it+=3,ct=z[it++],pt.dispose=1&ct,pt.blend=ct>>1&1}lt!="ANMF"&&(it+=ht)}var Ot,A;return dt}})(D,0);P.response=D,P.rgbaoutput=!0,P.dataurl=!1;var M=P.header?P.header:null,W=P.frames?P.frames:null;if(M){M.loop_counter=M.loop_count,N=[M.canvas_height],d=[M.canvas_width];for(var tt=0;tt<W.length&&W[tt].blend!=0;tt++);}var ot=W[0],yt=F.WebPDecodeRGBA(D,ot.src_off,ot.src_size,d,N);ot.rgba=yt,ot.imgwidth=d[0],ot.imgheight=N[0];for(var et=0;et<d[0]*N[0]*4;et++)C[et]=yt[et];return this.width=d,this.height=N,this.data=C,this}(function(r){var t=function(){return typeof uo=="function"},n=function(N,d,C,F){var D=4,P=u;switch(F){case r.image_compression.FAST:D=1,P=o;break;case r.image_compression.MEDIUM:D=6,P=h;break;case r.image_compression.SLOW:D=9,P=f}N=i(N,d,C,P);var M=uo(N,{level:D});return r.__addimage__.arrayBufferToBinaryString(M)},i=function(N,d,C,F){for(var D,P,M,W=N.length/d,tt=new Uint8Array(N.length+W),ot=v(),yt=0;yt<W;yt+=1){if(M=yt*d,D=N.subarray(M,M+d),F)tt.set(F(D,C,P),M+yt);else{for(var et,z=ot.length,it=[];et<z;et+=1)it[et]=ot[et](D,C,P);var dt=y(it.concat());tt.set(it[dt],M+yt)}P=D}return tt},s=function(N){var d=Array.apply([],N);return d.unshift(0),d},o=function(N,d){var C,F=[],D=N.length;F[0]=1;for(var P=0;P<D;P+=1)C=N[P-d]||0,F[P+1]=N[P]-C+256&255;return F},u=function(N,d,C){var F,D=[],P=N.length;D[0]=2;for(var M=0;M<P;M+=1)F=C&&C[M]||0,D[M+1]=N[M]-F+256&255;return D},h=function(N,d,C){var F,D,P=[],M=N.length;P[0]=3;for(var W=0;W<M;W+=1)F=N[W-d]||0,D=C&&C[W]||0,P[W+1]=N[W]+256-(F+D>>>1)&255;return P},f=function(N,d,C){var F,D,P,M,W=[],tt=N.length;W[0]=4;for(var ot=0;ot<tt;ot+=1)F=N[ot-d]||0,D=C&&C[ot]||0,P=C&&C[ot-d]||0,M=g(F,D,P),W[ot+1]=N[ot]-M+256&255;return W},g=function(N,d,C){if(N===d&&d===C)return N;var F=Math.abs(d-C),D=Math.abs(N-C),P=Math.abs(N+d-C-C);return F<=D&&F<=P?N:D<=P?d:C},v=function(){return[s,o,u,h,f]},y=function(N){var d=N.map((function(C){return C.reduce((function(F,D){return F+Math.abs(D)}),0)}));return d.indexOf(Math.min.apply(null,d))};r.processPNG=function(N,d,C,F){var D,P,M,W,tt,ot,yt,et,z,it,dt,_,k,G,E,lt=this.decode.FLATE_DECODE,at="";if(this.__addimage__.isArrayBuffer(N)&&(N=new Uint8Array(N)),this.__addimage__.isArrayBufferView(N)){if(N=(M=new _c(N)).imgData,P=M.bits,D=M.colorSpace,tt=M.colors,[4,6].indexOf(M.colorType)!==-1){if(M.bits===8){z=(et=M.pixelBitlength==32?new Uint32Array(M.decodePixels().buffer):M.pixelBitlength==16?new Uint16Array(M.decodePixels().buffer):new Uint8Array(M.decodePixels().buffer)).length,dt=new Uint8Array(z*M.colors),it=new Uint8Array(z);var ht,$=M.pixelBitlength-M.bits;for(G=0,E=0;G<z;G++){for(k=et[G],ht=0;ht<$;)dt[E++]=k>>>ht&255,ht+=M.bits;it[G]=k>>>ht&255}}if(M.bits===16){z=(et=new Uint32Array(M.decodePixels().buffer)).length,dt=new Uint8Array(z*(32/M.pixelBitlength)*M.colors),it=new Uint8Array(z*(32/M.pixelBitlength)),_=M.colors>1,G=0,E=0;for(var ct=0;G<z;)k=et[G++],dt[E++]=k>>>0&255,_&&(dt[E++]=k>>>16&255,k=et[G++],dt[E++]=k>>>0&255),it[ct++]=k>>>16&255;P=8}F!==r.image_compression.NONE&&t()?(N=n(dt,M.width*M.colors,M.colors,F),yt=n(it,M.width,1,F)):(N=dt,yt=it,lt=void 0)}if(M.colorType===3&&(D=this.color_spaces.INDEXED,ot=M.palette,M.transparency.indexed)){var pt=M.transparency.indexed,Ot=0;for(G=0,z=pt.length;G<z;++G)Ot+=pt[G];if((Ot/=255)===z-1&&pt.indexOf(0)!==-1)W=[pt.indexOf(0)];else if(Ot!==z){for(et=M.decodePixels(),it=new Uint8Array(et.length),G=0,z=et.length;G<z;G++)it[G]=pt[et[G]];yt=n(it,M.width,1)}}var A=(function(O){var B;switch(O){case r.image_compression.FAST:B=11;break;case r.image_compression.MEDIUM:B=13;break;case r.image_compression.SLOW:B=14;break;default:B=12}return B})(F);return lt===this.decode.FLATE_DECODE&&(at="/Predictor "+A+" "),at+="/Colors "+tt+" /BitsPerComponent "+P+" /Columns "+M.width,(this.__addimage__.isArrayBuffer(N)||this.__addimage__.isArrayBufferView(N))&&(N=this.__addimage__.arrayBufferToBinaryString(N)),(yt&&this.__addimage__.isArrayBuffer(yt)||this.__addimage__.isArrayBufferView(yt))&&(yt=this.__addimage__.arrayBufferToBinaryString(yt)),{alias:C,data:N,index:d,filter:lt,decodeParameters:at,transparency:W,palette:ot,sMask:yt,predictor:A,width:M.width,height:M.height,bitsPerComponent:P,colorSpace:D}}}})(Rt.API),(function(r){r.processGIF89A=function(t,n,i,s){var o=new Fc(t),u=o.width,h=o.height,f=[];o.decodeAndBlitFrameRGBA(0,f);var g={data:f,width:u,height:h},v=new Ps(100).encode(g,100);return r.processJPEG.call(this,v,n,i,s)},r.processGIF87A=r.processGIF89A})(Rt.API),Rn.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 r=this.colors===0?1<<this.bitPP:this.colors;this.palette=new Array(r);for(var t=0;t<r;t++){var n=this.datav.getUint8(this.pos++,!0),i=this.datav.getUint8(this.pos++,!0),s=this.datav.getUint8(this.pos++,!0),o=this.datav.getUint8(this.pos++,!0);this.palette[t]={red:s,green:i,blue:n,quad:o}}}this.height<0&&(this.height*=-1,this.bottom_up=!1)},Rn.prototype.parseBGR=function(){this.pos=this.offset;try{var r="bit"+this.bitPP,t=this.width*this.height*4;this.data=new Uint8Array(t),this[r]()}catch(n){be.log("bit decode error:"+n)}},Rn.prototype.bit1=function(){var r,t=Math.ceil(this.width/8),n=t%4;for(r=this.height-1;r>=0;r--){for(var i=this.bottom_up?r:this.height-1-r,s=0;s<t;s++)for(var o=this.datav.getUint8(this.pos++,!0),u=i*this.width*4+8*s*4,h=0;h<8&&8*s+h<this.width;h++){var f=this.palette[o>>7-h&1];this.data[u+4*h]=f.blue,this.data[u+4*h+1]=f.green,this.data[u+4*h+2]=f.red,this.data[u+4*h+3]=255}n!==0&&(this.pos+=4-n)}},Rn.prototype.bit4=function(){for(var r=Math.ceil(this.width/2),t=r%4,n=this.height-1;n>=0;n--){for(var i=this.bottom_up?n:this.height-1-n,s=0;s<r;s++){var o=this.datav.getUint8(this.pos++,!0),u=i*this.width*4+2*s*4,h=o>>4,f=15&o,g=this.palette[h];if(this.data[u]=g.blue,this.data[u+1]=g.green,this.data[u+2]=g.red,this.data[u+3]=255,2*s+1>=this.width)break;g=this.palette[f],this.data[u+4]=g.blue,this.data[u+4+1]=g.green,this.data[u+4+2]=g.red,this.data[u+4+3]=255}t!==0&&(this.pos+=4-t)}},Rn.prototype.bit8=function(){for(var r=this.width%4,t=this.height-1;t>=0;t--){for(var n=this.bottom_up?t:this.height-1-t,i=0;i<this.width;i++){var s=this.datav.getUint8(this.pos++,!0),o=n*this.width*4+4*i;if(s<this.palette.length){var u=this.palette[s];this.data[o]=u.red,this.data[o+1]=u.green,this.data[o+2]=u.blue,this.data[o+3]=255}else this.data[o]=255,this.data[o+1]=255,this.data[o+2]=255,this.data[o+3]=255}r!==0&&(this.pos+=4-r)}},Rn.prototype.bit15=function(){for(var r=this.width%3,t=parseInt("11111",2),n=this.height-1;n>=0;n--){for(var i=this.bottom_up?n:this.height-1-n,s=0;s<this.width;s++){var o=this.datav.getUint16(this.pos,!0);this.pos+=2;var u=(o&t)/t*255|0,h=(o>>5&t)/t*255|0,f=(o>>10&t)/t*255|0,g=o>>15?255:0,v=i*this.width*4+4*s;this.data[v]=f,this.data[v+1]=h,this.data[v+2]=u,this.data[v+3]=g}this.pos+=r}},Rn.prototype.bit16=function(){for(var r=this.width%3,t=parseInt("11111",2),n=parseInt("111111",2),i=this.height-1;i>=0;i--){for(var s=this.bottom_up?i:this.height-1-i,o=0;o<this.width;o++){var u=this.datav.getUint16(this.pos,!0);this.pos+=2;var h=(u&t)/t*255|0,f=(u>>5&n)/n*255|0,g=(u>>11)/t*255|0,v=s*this.width*4+4*o;this.data[v]=g,this.data[v+1]=f,this.data[v+2]=h,this.data[v+3]=255}this.pos+=r}},Rn.prototype.bit24=function(){for(var r=this.height-1;r>=0;r--){for(var t=this.bottom_up?r:this.height-1-r,n=0;n<this.width;n++){var i=this.datav.getUint8(this.pos++,!0),s=this.datav.getUint8(this.pos++,!0),o=this.datav.getUint8(this.pos++,!0),u=t*this.width*4+4*n;this.data[u]=o,this.data[u+1]=s,this.data[u+2]=i,this.data[u+3]=255}this.pos+=this.width%4}},Rn.prototype.bit32=function(){for(var r=this.height-1;r>=0;r--)for(var t=this.bottom_up?r:this.height-1-r,n=0;n<this.width;n++){var i=this.datav.getUint8(this.pos++,!0),s=this.datav.getUint8(this.pos++,!0),o=this.datav.getUint8(this.pos++,!0),u=this.datav.getUint8(this.pos++,!0),h=t*this.width*4+4*n;this.data[h]=o,this.data[h+1]=s,this.data[h+2]=i,this.data[h+3]=u}},Rn.prototype.getData=function(){return this.data},(function(r){r.processBMP=function(t,n,i,s){var o=new Rn(t,!1),u=o.width,h=o.height,f={data:o.getData(),width:u,height:h},g=new Ps(100).encode(f,100);return r.processJPEG.call(this,g,n,i,s)}})(Rt.API),Gl.prototype.getData=function(){return this.data},(function(r){r.processWEBP=function(t,n,i,s){var o=new Gl(t),u=o.width,h=o.height,f={data:o.getData(),width:u,height:h},g=new Ps(100).encode(f,100);return r.processJPEG.call(this,g,n,i,s)}})(Rt.API),Rt.API.processRGBA=function(r,t,n){for(var i=r.data,s=i.length,o=new Uint8Array(s/4*3),u=new Uint8Array(s/4),h=0,f=0,g=0;g<s;g+=4){var v=i[g],y=i[g+1],N=i[g+2],d=i[g+3];o[h++]=v,o[h++]=y,o[h++]=N,u[f++]=d}var C=this.__addimage__.arrayBufferToBinaryString(o);return{alpha:this.__addimage__.arrayBufferToBinaryString(u),data:C,index:t,alias:n,colorSpace:"DeviceRGB",bitsPerComponent:8,width:r.width,height:r.height}},Rt.API.setLanguage=function(r){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"}[r]!==void 0&&(this.internal.languageSettings.languageCode=r,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},_i=Rt.API,po=_i.getCharWidthsArray=function(r,t){var n,i,s=(t=t||{}).font||this.internal.getFont(),o=t.fontSize||this.internal.getFontSize(),u=t.charSpace||this.internal.getCharSpace(),h=t.widths?t.widths:s.metadata.Unicode.widths,f=h.fof?h.fof:1,g=t.kerning?t.kerning:s.metadata.Unicode.kerning,v=g.fof?g.fof:1,y=t.doKerning!==!1,N=0,d=r.length,C=0,F=h[0]||f,D=[];for(n=0;n<d;n++)i=r.charCodeAt(n),typeof s.metadata.widthOfString=="function"?D.push((s.metadata.widthOfGlyph(s.metadata.characterToGlyph(i))+u*(1e3/o)||0)/1e3):(N=y&&ge(g[i])==="object"&&!isNaN(parseInt(g[i][C],10))?g[i][C]/v:0,D.push((h[i]||F)/f+N)),C=i;return D},zl=_i.getStringUnitWidth=function(r,t){var n=(t=t||{}).fontSize||this.internal.getFontSize(),i=t.font||this.internal.getFont(),s=t.charSpace||this.internal.getCharSpace();return _i.processArabic&&(r=_i.processArabic(r)),typeof i.metadata.widthOfString=="function"?i.metadata.widthOfString(r,n,s)/n:po.apply(this,arguments).reduce((function(o,u){return o+u}),0)},Ul=function(r,t,n,i){for(var s=[],o=0,u=r.length,h=0;o!==u&&h+t[o]<n;)h+=t[o],o++;s.push(r.slice(0,o));var f=o;for(h=0;o!==u;)h+t[o]>i&&(s.push(r.slice(f,o)),h=0,f=o),h+=t[o],o++;return f!==o&&s.push(r.slice(f,o)),s},Hl=function(r,t,n){n||(n={});var i,s,o,u,h,f,g,v=[],y=[v],N=n.textIndent||0,d=0,C=0,F=r.split(" "),D=po.apply(this,[" ",n])[0];if(f=n.lineIndent===-1?F[0].length+2:n.lineIndent||0){var P=Array(f).join(" "),M=[];F.map((function(tt){(tt=tt.split(/\s*\n/)).length>1?M=M.concat(tt.map((function(ot,yt){return(yt&&ot.length?`
|
50
50
|
`:"")+ot}))):M.push(tt[0])})),F=M,f=zl.apply(this,[P,n])}for(o=0,u=F.length;o<u;o++){var W=0;if(i=F[o],f&&i[0]==`
|
51
|
-
`&&(i=i.substr(1),W=1),N+d+(C=(s=po.apply(this,[i,n])).reduce((function(tt,ot){return tt+ot}),0))>t||W){if(C>t){for(h=Ul.apply(this,[i,s,t-(N+d),t]),v.push(h.shift()),v=[h.pop()];h.length;)y.push([h.shift()]);C=s.slice(i.length-(v[0]?v[0].length:0)).reduce((function(tt,ot){return tt+ot}),0)}else v=[i];y.push(v),N=C+f,d=D}else v.push(i),N+=d+C,d=D}return g=f?function(tt,ot){return(ot?P:"")+tt.join(" ")}:function(tt){return tt.join(" ")},y.map(g)},_i.splitTextToSize=function(r,t,n){var i,s=(n=n||{}).fontSize||this.internal.getFontSize(),o=function(v){if(v.widths&&v.kerning)return{widths:v.widths,kerning:v.kerning};var y=this.internal.getFont(v.fontName,v.fontStyle);return y.metadata.Unicode?{widths:y.metadata.Unicode.widths||{0:1},kerning:y.metadata.Unicode.kerning||{}}:{font:y.metadata,fontSize:this.internal.getFontSize(),charSpace:this.internal.getCharSpace()}}.call(this,n);i=Array.isArray(r)?r:String(r).split(/\r?\n/);var u=1*this.internal.scaleFactor*t/s;o.textIndent=n.textIndent?1*n.textIndent*this.internal.scaleFactor/s:0,o.lineIndent=n.lineIndent;var h,f,g=[];for(h=0,f=i.length;h<f;h++)g=g.concat(Hl.apply(this,[i[h],u,o]));return g},(function(r){r.__fontmetrics__=r.__fontmetrics__||{};for(var t="klmnopqrstuvwxyz",n={},i={},s=0;s<t.length;s++)n[t[s]]="0123456789abcdef"[s],i["0123456789abcdef"[s]]=t[s];var o=function(y){return"0x"+parseInt(y,10).toString(16)},u=r.__fontmetrics__.compress=function(y){var N,d,C,F,D=["{"];for(var P in y){if(N=y[P],isNaN(parseInt(P,10))?d="'"+P+"'":(P=parseInt(P,10),d=(d=o(P).slice(2)).slice(0,-1)+i[d.slice(-1)]),typeof N=="number")N<0?(C=o(N).slice(3),F="-"):(C=o(N).slice(2),F=""),C=F+C.slice(0,-1)+i[C.slice(-1)];else{if(ge(N)!=="object")throw new Error("Don't know what to do with value type "+ge(N)+".");C=u(N)}D.push(d+C)}return D.push("}"),D.join("")},h=r.__fontmetrics__.uncompress=function(y){if(typeof y!="string")throw new Error("Invalid argument passed to uncompress.");for(var N,d,C,F,D={},P=1,M=D,W=[],tt="",ot="",yt=y.length-1,et=1;et<yt;et+=1)(F=y[et])=="'"?N?(C=N.join(""),N=void 0):N=[]:N?N.push(F):F=="{"?(W.push([M,C]),M={},C=void 0):F=="}"?((d=W.pop())[0][d[1]]=M,C=void 0,M=d[0]):F=="-"?P=-1:C===void 0?n.hasOwnProperty(F)?(tt+=n[F],C=parseInt(tt,16)*P,P=1,tt=""):tt+=F:n.hasOwnProperty(F)?(ot+=n[F],M[C]=parseInt(ot,16)*P,P=1,C=void 0,ot=""):ot+=F;return D},f={codePages:["WinAnsiEncoding"],WinAnsiEncoding:h("{19m8n201n9q201o9r201s9l201t9m201u8m201w9n201x9o201y8o202k8q202l8r202m9p202q8p20aw8k203k8t203t8v203u9v2cq8s212m9t15m8w15n9w2dw9s16k8u16l9u17s9z17x8y17y9y}")},g={Unicode:{Courier:f,"Courier-Bold":f,"Courier-BoldOblique":f,"Courier-Oblique":f,Helvetica:f,"Helvetica-Bold":f,"Helvetica-BoldOblique":f,"Helvetica-Oblique":f,"Times-Roman":f,"Times-Bold":f,"Times-BoldItalic":f,"Times-Italic":f}},v={Unicode:{"Courier-Oblique":h("{'widths'{k3w'fof'6o}'kerning'{'fof'-6o}}"),"Times-BoldItalic":h("{'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":h("{'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:h("{'widths'{k3w'fof'6o}'kerning'{'fof'-6o}}"),"Courier-BoldOblique":h("{'widths'{k3w'fof'6o}'kerning'{'fof'-6o}}"),"Times-Bold":h("{'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:h("{'widths'{k3uaw4r19m3m2k1t2l2l202m2y2n3m2p5n202q6o3k3m2s2l2t2l2v3r2w1t3m3m2y1t2z1wbk2sbl3r'fof'6o3n3m3o3m3p3m3q3m3r3m3s3m3t3m3u1w3v1w3w3r3x3r3y3r3z2wbp3t3l3m5v2l5x2l5z3m2q4yfr3r7v3k7w1o7x3k}'kerning'{'fof'-6o}}"),Helvetica:h("{'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":h("{'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:h("{'widths'{k4u2k1w'fof'6o}'kerning'{'fof'-6o}}"),"Courier-Bold":h("{'widths'{k3w'fof'6o}'kerning'{'fof'-6o}}"),"Times-Italic":h("{'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":h("{'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":h("{'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}}}")}};r.events.push(["addFont",function(y){var N=y.font,d=v.Unicode[N.postScriptName];d&&(N.metadata.Unicode={},N.metadata.Unicode.widths=d.widths,N.metadata.Unicode.kerning=d.kerning);var C=g.Unicode[N.postScriptName];C&&(N.metadata.Unicode.encoding=C,N.encoding=C.codePages[0])}])})(Rt.API),(function(r){var t=function(n){for(var i=n.length,s=new Uint8Array(i),o=0;o<i;o++)s[o]=n.charCodeAt(o);return s};r.API.events.push(["addFont",function(n){var i=void 0,s=n.font,o=n.instance;if(!s.isStandardFont){if(o===void 0)throw new Error("Font does not exist in vFS, import fonts or remove declaration doc.addFont('"+s.postScriptName+"').");if(typeof(i=o.existsFileInVFS(s.postScriptName)===!1?o.loadFile(s.postScriptName):o.getFileFromVFS(s.postScriptName))!="string")throw new Error("Font is not stored as string-data in vFS, import fonts or remove declaration doc.addFont('"+s.postScriptName+"').");(function(u,h){h=/^\x00\x01\x00\x00/.test(h)?t(h):t(ma(h)),u.metadata=r.API.TTFFont.open(h),u.metadata.Unicode=u.metadata.Unicode||{encoding:{},kerning:{},widths:[]},u.metadata.glyIdsUsed=[0]})(s,i)}}])})(Rt),(function(r){function t(){return(Ht.canvg?Promise.resolve(Ht.canvg):import("./I3W5HGYT.js")).catch((function(n){return Promise.reject(new Error("Could not load canvg: "+n))})).then((function(n){return n.default?n.default:n}))}Rt.API.addSvgAsImage=function(n,i,s,o,u,h,f,g){if(isNaN(i)||isNaN(s))throw be.error("jsPDF.addSvgAsImage: Invalid coordinates",arguments),new Error("Invalid coordinates passed to jsPDF.addSvgAsImage");if(isNaN(o)||isNaN(u))throw be.error("jsPDF.addSvgAsImage: Invalid measurements",arguments),new Error("Invalid measurements (width and/or height) passed to jsPDF.addSvgAsImage");var v=document.createElement("canvas");v.width=o,v.height=u;var y=v.getContext("2d");y.fillStyle="#fff",y.fillRect(0,0,v.width,v.height);var N={ignoreMouse:!0,ignoreAnimation:!0,ignoreDimensions:!0},d=this;return t().then((function(C){return C.fromString(y,n,N)}),(function(){return Promise.reject(new Error("Could not load canvg."))})).then((function(C){return C.render(N)})).then((function(){d.addImage(v.toDataURL("image/jpeg",1),i,s,o,u,f,g)}))}})(),Rt.API.putTotalPages=function(r){var t,n=0;parseInt(this.internal.getFont().id.substr(1),10)<15?(t=new RegExp(r,"g"),n=this.internal.getNumberOfPages()):(t=new RegExp(this.pdfEscape16(r,this.internal.getFont()),"g"),n=this.pdfEscape16(this.internal.getNumberOfPages()+"",this.internal.getFont()));for(var i=1;i<=this.internal.getNumberOfPages();i++)for(var s=0;s<this.internal.pages[i].length;s++)this.internal.pages[i][s]=this.internal.pages[i][s].replace(t,n);return this},Rt.API.viewerPreferences=function(r,t){var n;r=r||{},t=t||!1;var i,s,o,u={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}},h=Object.keys(u),f=[],g=0,v=0,y=0;function N(C,F){var D,P=!1;for(D=0;D<C.length;D+=1)C[D]===F&&(P=!0);return P}if(this.internal.viewerpreferences===void 0&&(this.internal.viewerpreferences={},this.internal.viewerpreferences.configuration=JSON.parse(JSON.stringify(u)),this.internal.viewerpreferences.isSubscribed=!1),n=this.internal.viewerpreferences.configuration,r==="reset"||t===!0){var d=h.length;for(y=0;y<d;y+=1)n[h[y]].value=n[h[y]].defaultValue,n[h[y]].explicitSet=!1}if(ge(r)==="object"){for(s in r)if(o=r[s],N(h,s)&&o!==void 0){if(n[s].type==="boolean"&&typeof o=="boolean")n[s].value=o;else if(n[s].type==="name"&&N(n[s].valueSet,o))n[s].value=o;else if(n[s].type==="integer"&&Number.isInteger(o))n[s].value=o;else if(n[s].type==="array"){for(g=0;g<o.length;g+=1)if(i=!0,o[g].length===1&&typeof o[g][0]=="number")f.push(String(o[g]-1));else if(o[g].length>1){for(v=0;v<o[g].length;v+=1)typeof o[g][v]!="number"&&(i=!1);i===!0&&f.push([o[g][0]-1,o[g][1]-1].join(" "))}n[s].value="["+f.join(" ")+"]"}else n[s].value=n[s].defaultValue;n[s].explicitSet=!0}}return this.internal.viewerpreferences.isSubscribed===!1&&(this.internal.events.subscribe("putCatalog",(function(){var C,F=[];for(C in n)n[C].explicitSet===!0&&(n[C].type==="name"?F.push("/"+C+" /"+n[C].value):F.push("/"+C+" "+n[C].value));F.length!==0&&this.internal.write(`/ViewerPreferences
|
51
|
+
`&&(i=i.substr(1),W=1),N+d+(C=(s=po.apply(this,[i,n])).reduce((function(tt,ot){return tt+ot}),0))>t||W){if(C>t){for(h=Ul.apply(this,[i,s,t-(N+d),t]),v.push(h.shift()),v=[h.pop()];h.length;)y.push([h.shift()]);C=s.slice(i.length-(v[0]?v[0].length:0)).reduce((function(tt,ot){return tt+ot}),0)}else v=[i];y.push(v),N=C+f,d=D}else v.push(i),N+=d+C,d=D}return g=f?function(tt,ot){return(ot?P:"")+tt.join(" ")}:function(tt){return tt.join(" ")},y.map(g)},_i.splitTextToSize=function(r,t,n){var i,s=(n=n||{}).fontSize||this.internal.getFontSize(),o=function(v){if(v.widths&&v.kerning)return{widths:v.widths,kerning:v.kerning};var y=this.internal.getFont(v.fontName,v.fontStyle);return y.metadata.Unicode?{widths:y.metadata.Unicode.widths||{0:1},kerning:y.metadata.Unicode.kerning||{}}:{font:y.metadata,fontSize:this.internal.getFontSize(),charSpace:this.internal.getCharSpace()}}.call(this,n);i=Array.isArray(r)?r:String(r).split(/\r?\n/);var u=1*this.internal.scaleFactor*t/s;o.textIndent=n.textIndent?1*n.textIndent*this.internal.scaleFactor/s:0,o.lineIndent=n.lineIndent;var h,f,g=[];for(h=0,f=i.length;h<f;h++)g=g.concat(Hl.apply(this,[i[h],u,o]));return g},(function(r){r.__fontmetrics__=r.__fontmetrics__||{};for(var t="klmnopqrstuvwxyz",n={},i={},s=0;s<t.length;s++)n[t[s]]="0123456789abcdef"[s],i["0123456789abcdef"[s]]=t[s];var o=function(y){return"0x"+parseInt(y,10).toString(16)},u=r.__fontmetrics__.compress=function(y){var N,d,C,F,D=["{"];for(var P in y){if(N=y[P],isNaN(parseInt(P,10))?d="'"+P+"'":(P=parseInt(P,10),d=(d=o(P).slice(2)).slice(0,-1)+i[d.slice(-1)]),typeof N=="number")N<0?(C=o(N).slice(3),F="-"):(C=o(N).slice(2),F=""),C=F+C.slice(0,-1)+i[C.slice(-1)];else{if(ge(N)!=="object")throw new Error("Don't know what to do with value type "+ge(N)+".");C=u(N)}D.push(d+C)}return D.push("}"),D.join("")},h=r.__fontmetrics__.uncompress=function(y){if(typeof y!="string")throw new Error("Invalid argument passed to uncompress.");for(var N,d,C,F,D={},P=1,M=D,W=[],tt="",ot="",yt=y.length-1,et=1;et<yt;et+=1)(F=y[et])=="'"?N?(C=N.join(""),N=void 0):N=[]:N?N.push(F):F=="{"?(W.push([M,C]),M={},C=void 0):F=="}"?((d=W.pop())[0][d[1]]=M,C=void 0,M=d[0]):F=="-"?P=-1:C===void 0?n.hasOwnProperty(F)?(tt+=n[F],C=parseInt(tt,16)*P,P=1,tt=""):tt+=F:n.hasOwnProperty(F)?(ot+=n[F],M[C]=parseInt(ot,16)*P,P=1,C=void 0,ot=""):ot+=F;return D},f={codePages:["WinAnsiEncoding"],WinAnsiEncoding:h("{19m8n201n9q201o9r201s9l201t9m201u8m201w9n201x9o201y8o202k8q202l8r202m9p202q8p20aw8k203k8t203t8v203u9v2cq8s212m9t15m8w15n9w2dw9s16k8u16l9u17s9z17x8y17y9y}")},g={Unicode:{Courier:f,"Courier-Bold":f,"Courier-BoldOblique":f,"Courier-Oblique":f,Helvetica:f,"Helvetica-Bold":f,"Helvetica-BoldOblique":f,"Helvetica-Oblique":f,"Times-Roman":f,"Times-Bold":f,"Times-BoldItalic":f,"Times-Italic":f}},v={Unicode:{"Courier-Oblique":h("{'widths'{k3w'fof'6o}'kerning'{'fof'-6o}}"),"Times-BoldItalic":h("{'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":h("{'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:h("{'widths'{k3w'fof'6o}'kerning'{'fof'-6o}}"),"Courier-BoldOblique":h("{'widths'{k3w'fof'6o}'kerning'{'fof'-6o}}"),"Times-Bold":h("{'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:h("{'widths'{k3uaw4r19m3m2k1t2l2l202m2y2n3m2p5n202q6o3k3m2s2l2t2l2v3r2w1t3m3m2y1t2z1wbk2sbl3r'fof'6o3n3m3o3m3p3m3q3m3r3m3s3m3t3m3u1w3v1w3w3r3x3r3y3r3z2wbp3t3l3m5v2l5x2l5z3m2q4yfr3r7v3k7w1o7x3k}'kerning'{'fof'-6o}}"),Helvetica:h("{'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":h("{'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:h("{'widths'{k4u2k1w'fof'6o}'kerning'{'fof'-6o}}"),"Courier-Bold":h("{'widths'{k3w'fof'6o}'kerning'{'fof'-6o}}"),"Times-Italic":h("{'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":h("{'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":h("{'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}}}")}};r.events.push(["addFont",function(y){var N=y.font,d=v.Unicode[N.postScriptName];d&&(N.metadata.Unicode={},N.metadata.Unicode.widths=d.widths,N.metadata.Unicode.kerning=d.kerning);var C=g.Unicode[N.postScriptName];C&&(N.metadata.Unicode.encoding=C,N.encoding=C.codePages[0])}])})(Rt.API),(function(r){var t=function(n){for(var i=n.length,s=new Uint8Array(i),o=0;o<i;o++)s[o]=n.charCodeAt(o);return s};r.API.events.push(["addFont",function(n){var i=void 0,s=n.font,o=n.instance;if(!s.isStandardFont){if(o===void 0)throw new Error("Font does not exist in vFS, import fonts or remove declaration doc.addFont('"+s.postScriptName+"').");if(typeof(i=o.existsFileInVFS(s.postScriptName)===!1?o.loadFile(s.postScriptName):o.getFileFromVFS(s.postScriptName))!="string")throw new Error("Font is not stored as string-data in vFS, import fonts or remove declaration doc.addFont('"+s.postScriptName+"').");(function(u,h){h=/^\x00\x01\x00\x00/.test(h)?t(h):t(ma(h)),u.metadata=r.API.TTFFont.open(h),u.metadata.Unicode=u.metadata.Unicode||{encoding:{},kerning:{},widths:[]},u.metadata.glyIdsUsed=[0]})(s,i)}}])})(Rt),(function(r){function t(){return(Ht.canvg?Promise.resolve(Ht.canvg):import("./NYNSAPTM.js")).catch((function(n){return Promise.reject(new Error("Could not load canvg: "+n))})).then((function(n){return n.default?n.default:n}))}Rt.API.addSvgAsImage=function(n,i,s,o,u,h,f,g){if(isNaN(i)||isNaN(s))throw be.error("jsPDF.addSvgAsImage: Invalid coordinates",arguments),new Error("Invalid coordinates passed to jsPDF.addSvgAsImage");if(isNaN(o)||isNaN(u))throw be.error("jsPDF.addSvgAsImage: Invalid measurements",arguments),new Error("Invalid measurements (width and/or height) passed to jsPDF.addSvgAsImage");var v=document.createElement("canvas");v.width=o,v.height=u;var y=v.getContext("2d");y.fillStyle="#fff",y.fillRect(0,0,v.width,v.height);var N={ignoreMouse:!0,ignoreAnimation:!0,ignoreDimensions:!0},d=this;return t().then((function(C){return C.fromString(y,n,N)}),(function(){return Promise.reject(new Error("Could not load canvg."))})).then((function(C){return C.render(N)})).then((function(){d.addImage(v.toDataURL("image/jpeg",1),i,s,o,u,f,g)}))}})(),Rt.API.putTotalPages=function(r){var t,n=0;parseInt(this.internal.getFont().id.substr(1),10)<15?(t=new RegExp(r,"g"),n=this.internal.getNumberOfPages()):(t=new RegExp(this.pdfEscape16(r,this.internal.getFont()),"g"),n=this.pdfEscape16(this.internal.getNumberOfPages()+"",this.internal.getFont()));for(var i=1;i<=this.internal.getNumberOfPages();i++)for(var s=0;s<this.internal.pages[i].length;s++)this.internal.pages[i][s]=this.internal.pages[i][s].replace(t,n);return this},Rt.API.viewerPreferences=function(r,t){var n;r=r||{},t=t||!1;var i,s,o,u={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}},h=Object.keys(u),f=[],g=0,v=0,y=0;function N(C,F){var D,P=!1;for(D=0;D<C.length;D+=1)C[D]===F&&(P=!0);return P}if(this.internal.viewerpreferences===void 0&&(this.internal.viewerpreferences={},this.internal.viewerpreferences.configuration=JSON.parse(JSON.stringify(u)),this.internal.viewerpreferences.isSubscribed=!1),n=this.internal.viewerpreferences.configuration,r==="reset"||t===!0){var d=h.length;for(y=0;y<d;y+=1)n[h[y]].value=n[h[y]].defaultValue,n[h[y]].explicitSet=!1}if(ge(r)==="object"){for(s in r)if(o=r[s],N(h,s)&&o!==void 0){if(n[s].type==="boolean"&&typeof o=="boolean")n[s].value=o;else if(n[s].type==="name"&&N(n[s].valueSet,o))n[s].value=o;else if(n[s].type==="integer"&&Number.isInteger(o))n[s].value=o;else if(n[s].type==="array"){for(g=0;g<o.length;g+=1)if(i=!0,o[g].length===1&&typeof o[g][0]=="number")f.push(String(o[g]-1));else if(o[g].length>1){for(v=0;v<o[g].length;v+=1)typeof o[g][v]!="number"&&(i=!1);i===!0&&f.push([o[g][0]-1,o[g][1]-1].join(" "))}n[s].value="["+f.join(" ")+"]"}else n[s].value=n[s].defaultValue;n[s].explicitSet=!0}}return this.internal.viewerpreferences.isSubscribed===!1&&(this.internal.events.subscribe("putCatalog",(function(){var C,F=[];for(C in n)n[C].explicitSet===!0&&(n[C].type==="name"?F.push("/"+C+" /"+n[C].value):F.push("/"+C+" "+n[C].value));F.length!==0&&this.internal.write(`/ViewerPreferences
|
52
52
|
<<
|
53
53
|
`+F.join(`
|
54
54
|
`)+`
|