@esri/solutions-components 1.1.0-next.20251001 → 1.1.0-next.20251003
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/{KQ4H6ZTW.js → 255FFRN6.js} +2 -2
- package/dist/cdn/{Z5R7XKWW.js → 276ZHID6.js} +2 -2
- package/dist/cdn/{XY7TWMUT.js → 2ONRUQFV.js} +2 -2
- package/dist/cdn/{D4JDKVPO.js → 2VKF6PR4.js} +2 -2
- package/dist/cdn/{6R6HBCR7.js → 36GXCPP5.js} +2 -2
- package/dist/cdn/{IA4I4NRJ.js → 3FSQROF5.js} +1 -1
- package/dist/cdn/{NZ57XWD7.js → 3I72PCEP.js} +1 -1
- package/dist/cdn/{VL7U3QTN.js → 3MXHKKW3.js} +2 -2
- package/dist/cdn/{KBBDRB5Z.js → 3OKTZASX.js} +2 -2
- package/dist/cdn/{H7T7X4HP.js → 3OY3YMT5.js} +1 -1
- package/dist/cdn/{AISOOLMV.js → 3QTLO72X.js} +2 -2
- package/dist/cdn/{WDUFWHXT.js → 3SSM44AZ.js} +2 -2
- package/dist/cdn/{LCKLCLEY.js → 3VQ57FB7.js} +2 -2
- package/dist/cdn/{F36AN5IC.js → 3X2PJRLH.js} +2 -2
- package/dist/cdn/{D4MNK6SM.js → 45KKZE6P.js} +2 -2
- package/dist/cdn/4AINUYJB.js +18 -0
- package/dist/cdn/{JK3HSBOI.js → 4BLZZ4AN.js} +2 -2
- package/dist/cdn/{57JC2AOJ.js → 4DPOKY7J.js} +2 -2
- package/dist/cdn/{TLN45HTP.js → 4EXRQCTU.js} +2 -2
- package/dist/cdn/{VZDC2FGY.js → 4IGJLSVQ.js} +2 -2
- package/dist/cdn/{X3I4M6YD.js → 4K4JSGYM.js} +2 -2
- package/dist/cdn/{LRJZJH5Z.js → 4NXA4R4C.js} +2 -2
- package/dist/cdn/{NLJ3XYRA.js → 4O4I37QW.js} +2 -2
- package/dist/cdn/{HRJT2BUP.js → 4OIZKI5X.js} +2 -2
- package/dist/cdn/{WQULYHBT.js → 4PSBLA5A.js} +1 -1
- package/dist/cdn/{3HG4IWY4.js → 4QH5EQCM.js} +2 -2
- package/dist/cdn/{XYLLOZC2.js → 4QJZ6RTQ.js} +2 -2
- package/dist/cdn/{YGDYWFAS.js → 4RE4Y5FQ.js} +2 -2
- package/dist/cdn/{LY3YYF3O.js → 4SVJQ4LX.js} +1 -1
- package/dist/cdn/{3TGIKRH7.js → 4V6ENHCJ.js} +2 -2
- package/dist/cdn/{4D4DPYVV.js → 4V7S5IMD.js} +2 -2
- package/dist/cdn/{UEHEF6MX.js → 4Y5PAGVV.js} +2 -2
- package/dist/cdn/{5LRNOSUA.js → 4YRN5QU6.js} +2 -2
- package/dist/cdn/{G6KOHD7R.js → 525LHKW2.js} +2 -2
- package/dist/cdn/{G4CSXZSP.js → 52XXPOCM.js} +2 -2
- package/dist/cdn/{56ZCAZDE.js → 53YVFBD6.js} +3 -3
- package/dist/cdn/{QP2Y72HY.js → 555R5J5L.js} +2 -2
- package/dist/cdn/{45QRHUTZ.js → 5CY6O5VY.js} +2 -2
- package/dist/cdn/{6IUAUEKQ.js → 5PEPXZUQ.js} +2 -2
- package/dist/cdn/{S2YJSN3J.js → 5W566AFV.js} +2 -2
- package/dist/cdn/{KGRZPHJP.js → 5ZLN2E7F.js} +2 -2
- package/dist/cdn/{7ZOJTRAS.js → 62EH24ZG.js} +2 -2
- package/dist/cdn/{TONQJHXJ.js → 63PGF4KB.js} +11 -11
- package/dist/cdn/{N24LGDPN.js → 66BJFYWK.js} +3 -3
- package/dist/cdn/{4YDGDPGP.js → 6AN3IZTS.js} +2 -2
- package/dist/cdn/{56OE4A23.js → 6BSJZZWP.js} +2 -2
- package/dist/cdn/{5XMKURWD.js → 6CH5PJ3D.js} +2 -2
- package/dist/cdn/{RDILHWS2.js → 6F2I4B23.js} +2 -2
- package/dist/cdn/{UKNBKBH5.js → 6FQ5E7LZ.js} +2 -2
- package/dist/cdn/6SFMCZX5.js +32 -0
- package/dist/cdn/{GYWUMMDN.js → 6SJN3RI6.js} +1 -1
- package/dist/cdn/{GHYD4EBR.js → 6VAWBHQH.js} +2 -2
- package/dist/cdn/{SAHTQNWM.js → 6WUCMVS2.js} +2 -2
- package/dist/cdn/{VFJV7H6W.js → 6YK3D4GD.js} +2 -2
- package/dist/cdn/{HHD5Z5EN.js → 74AFVSP3.js} +2 -2
- package/dist/cdn/{LLO33EWF.js → 74BJAXNM.js} +2 -2
- package/dist/cdn/{B3AV5OAS.js → 74GRV4IA.js} +2 -2
- package/dist/cdn/{EKXIGTZ5.js → 76WTGL74.js} +2 -2
- package/dist/cdn/76YHYO6R.js +18 -0
- package/dist/cdn/77JHJDO3.js +4 -0
- package/dist/cdn/7APZNWWA.js +18 -0
- package/dist/cdn/{XFVJSFJ5.js → 7DW6E2G4.js} +2 -2
- package/dist/cdn/{XSUKV35L.js → 7RLPE2LE.js} +2 -2
- package/dist/cdn/{HWEFRIRN.js → 7TLTRTJJ.js} +2 -2
- package/dist/cdn/{4HGHRCLW.js → A47CEPD4.js} +2 -2
- package/dist/cdn/{LBUERUZL.js → AAN2GORT.js} +2 -2
- package/dist/cdn/{RBDUYYB7.js → AD2XEHSU.js} +2 -2
- package/dist/cdn/{LWGXYVCD.js → AMLT4MXJ.js} +2 -2
- package/dist/cdn/AQL2EEP6.js +4 -0
- package/dist/cdn/{7OIVSNIG.js → AUBGDSNS.js} +2 -2
- package/dist/cdn/{3HFAKXIL.js → AWHMTVRK.js} +2 -2
- package/dist/cdn/{XKIVIXXT.js → AXXSKOG7.js} +2 -2
- package/dist/cdn/{RBJBM64C.js → B32GA4ZY.js} +2 -2
- package/dist/cdn/{5NEMTW63.js → BA2ODWAV.js} +2 -2
- package/dist/cdn/{GPBHHSTI.js → BASYG5EI.js} +2 -2
- package/dist/cdn/{TCM5LALX.js → BCQ7PB5L.js} +1 -1
- package/dist/cdn/{CFERHXGG.js → BCT76NH3.js} +2 -2
- package/dist/cdn/{SQH2AZXR.js → BE6Y4SAS.js} +2 -2
- package/dist/cdn/{KOAORYN5.js → BFMO27HI.js} +2 -2
- package/dist/cdn/BLWJJIVF.js +4 -0
- package/dist/cdn/{SHNHKCKX.js → BTBBUCFG.js} +2 -2
- package/dist/cdn/{VEL6YRJA.js → BUK3AXVT.js} +4 -4
- package/dist/cdn/{5GUULURP.js → BWXOVTHE.js} +2 -2
- package/dist/cdn/{6ENWX6ZA.js → BXVIXLRN.js} +2 -2
- package/dist/cdn/{JZC7ZC6K.js → C3ULFDL6.js} +1 -1
- package/dist/cdn/{3QFZV5CC.js → C5JMA3VO.js} +2 -2
- package/dist/cdn/{WIJMHK3K.js → CFA55OMC.js} +2 -2
- package/dist/cdn/{NVEH2LVJ.js → CG6TQX5R.js} +2 -2
- package/dist/cdn/{N25455AK.js → CGO26IXO.js} +2 -2
- package/dist/cdn/{Q6KGU3WU.js → CNS57OWN.js} +2 -2
- package/dist/cdn/{O26E7HFU.js → CQK3BMBI.js} +2 -2
- package/dist/cdn/{EIIWKZ4U.js → CRSVD2NX.js} +2 -2
- package/dist/cdn/CRTVGF25.js +18 -0
- package/dist/cdn/{RLEZI3WV.js → CUAKPCDU.js} +2 -2
- package/dist/cdn/{DSDZMRAC.js → CV5QMNOP.js} +2 -2
- package/dist/cdn/{S7UEXHNT.js → CVHMW6KL.js} +2 -2
- package/dist/cdn/{2LRANYPI.js → D3RILYWV.js} +3 -3
- package/dist/cdn/{SC6MEQGJ.js → DDVJ3JLU.js} +2 -2
- package/dist/cdn/{52G24N4M.js → DEDFE33X.js} +2 -2
- package/dist/cdn/{GLYPNPSX.js → DFUNTOD4.js} +2 -2
- package/dist/cdn/{MI2DZFJY.js → DL3GVIIB.js} +2 -2
- package/dist/cdn/DLEBYLCL.js +4 -0
- package/dist/cdn/{ZENCSL6X.js → DM5TQ2UX.js} +2 -2
- package/dist/cdn/{W5PCSFQO.js → DMOU6E5N.js} +1 -1
- package/dist/cdn/{53CMIODC.js → DMYXBSFV.js} +2 -2
- package/dist/cdn/{EVLQFI7K.js → DO4C2ZFB.js} +2 -2
- package/dist/cdn/DPF7M6FH.js +4 -0
- package/dist/cdn/{VIN64XQ4.js → DSQLWDME.js} +2 -2
- package/dist/cdn/{KQC75OG6.js → E55QEAZU.js} +2 -2
- package/dist/cdn/{RTWANQJA.js → E6F3Q2WH.js} +1 -1
- package/dist/cdn/{I4GBNQJZ.js → ECU5P5XQ.js} +2 -2
- package/dist/cdn/{O44BGNFI.js → EFVSZIO5.js} +2 -2
- package/dist/cdn/{JRUZPNMF.js → EGJJCZ6T.js} +2 -2
- package/dist/cdn/{552L3HPD.js → EGSTJEDG.js} +2 -2
- package/dist/cdn/{VNO2UIQG.js → EHO2NULT.js} +2 -2
- package/dist/cdn/{J55FURXL.js → EIOQMWBZ.js} +1 -1
- package/dist/cdn/{MMO2FP5O.js → ENFNJDP4.js} +2 -2
- package/dist/cdn/{4YSFE6XJ.js → EOP427LW.js} +2 -2
- package/dist/cdn/{KUFS6NIN.js → EQT2HI7R.js} +2 -2
- package/dist/cdn/{MWEAFU2Z.js → ESXLY5ZV.js} +2 -2
- package/dist/cdn/{YZWMINM4.js → EXUIACSX.js} +2 -2
- package/dist/cdn/{C5BGS554.js → F6ZCZA77.js} +2 -2
- package/dist/cdn/{GFTEQUKH.js → FNU2KCAL.js} +2 -2
- package/dist/cdn/{2TV3MZL7.js → FNVLHQQW.js} +2 -2
- package/dist/cdn/{VWU64AAH.js → FQ34TDJ5.js} +2 -2
- package/dist/cdn/FTQB6L4P.js +18 -0
- package/dist/cdn/{4AXOAB6T.js → FY3IA2CD.js} +2 -2
- package/dist/cdn/{MKD6TWT3.js → FZPBKB2A.js} +2 -2
- package/dist/cdn/{IS3YSRQ5.js → G2HJS27Y.js} +2 -2
- package/dist/cdn/{7YLYAP3T.js → G2VAHTOZ.js} +2 -2
- package/dist/cdn/{3Z2VIKWZ.js → G433TJJM.js} +2 -2
- package/dist/cdn/{PIPMLOY2.js → G5A42QWN.js} +2 -2
- package/dist/cdn/{N6ZHWHWE.js → G5ID4AKW.js} +2 -2
- package/dist/cdn/{OAGDRYS7.js → G5QG243B.js} +2 -2
- package/dist/cdn/{SOTANKS4.js → G6OXKKII.js} +2 -2
- package/dist/cdn/{XG3F2JC3.js → GAJHKAP6.js} +2 -2
- package/dist/cdn/{7EZ2M6YH.js → GCCMX7HT.js} +2 -2
- package/dist/cdn/{J4JEMHD5.js → GF32HN3G.js} +2 -2
- package/dist/cdn/{PUYJFN4F.js → GL2DFPES.js} +2 -2
- package/dist/cdn/{SWN5RZ7X.js → GOMCCYIB.js} +2 -2
- package/dist/cdn/{EU7IJP35.js → GU2J27Y4.js} +2 -2
- package/dist/cdn/GW6MAVZB.js +18 -0
- package/dist/cdn/{JV5WVIVC.js → GYRPSJG5.js} +2 -2
- package/dist/cdn/{QSR7WBGC.js → GZTVZREB.js} +2 -2
- package/dist/cdn/{X24NKRET.js → H36WONTX.js} +1 -1
- package/dist/cdn/{JLE2GF7O.js → H6CR332J.js} +2 -2
- package/dist/cdn/{TGSOJKYY.js → HGTZZH7P.js} +2 -2
- package/dist/cdn/{7HAKKOFA.js → HL4CBUJV.js} +1 -1
- package/dist/cdn/{FGGQQ3DB.js → HMFIFRBW.js} +2 -2
- package/dist/cdn/{4DYLU6XK.js → HMM6LNIK.js} +2 -2
- package/dist/cdn/{65QWDJUV.js → HOAEW2HA.js} +2 -2
- package/dist/cdn/{B3ASOZF3.js → HOHL5YGO.js} +2 -2
- package/dist/cdn/{MQ45SGUO.js → HSOFX6JP.js} +2 -2
- package/dist/cdn/{YZGRGMNE.js → HW3AZE43.js} +1 -1
- package/dist/cdn/{LT63I22B.js → HYZPVUUU.js} +2 -2
- package/dist/cdn/{STEMMVS3.js → ICBOQVUT.js} +2 -2
- package/dist/cdn/{MPVIXVHZ.js → IEWCFRS3.js} +2 -2
- package/dist/cdn/{6WYUYMXH.js → IJ7XUCKZ.js} +2 -2
- package/dist/cdn/{Y6R22HXO.js → IO4BEC3B.js} +2 -2
- package/dist/cdn/{5YAUNXU6.js → IT2QFIDQ.js} +2 -2
- package/dist/cdn/{NRJXSAAZ.js → IYGRD77H.js} +2 -2
- package/dist/cdn/{7TO4LNVN.js → J3KF3PRN.js} +2 -2
- package/dist/cdn/{PDAR2ZPJ.js → J73WKE2A.js} +2 -2
- package/dist/cdn/{I45GAP23.js → JAPLJADD.js} +2 -2
- package/dist/cdn/{4U472JVE.js → JD2NWIUZ.js} +1 -1
- package/dist/cdn/{C7ZLOPKO.js → JJ5NAWQF.js} +2 -2
- package/dist/cdn/{CWUGRZCK.js → JJBMLBOD.js} +2 -2
- package/dist/cdn/{6Z5MU5XW.js → JMC5S3OP.js} +2 -2
- package/dist/cdn/{WDQVBUNM.js → JMNPNOMM.js} +2 -2
- package/dist/cdn/{6SJLGJJS.js → JMQYSN2U.js} +2 -2
- package/dist/cdn/{N427K3D5.js → JPAPTSIM.js} +2 -2
- package/dist/cdn/{L2GYRZF5.js → JPXZR7F6.js} +2 -2
- package/dist/cdn/{JYHVLZL5.js → JSG72U23.js} +2 -2
- package/dist/cdn/JSLBDCYN.js +4 -0
- package/dist/cdn/{DNR3MQNI.js → K4U36B2V.js} +2 -2
- package/dist/cdn/{CKZSKRM2.js → K7BJT7P5.js} +2 -2
- package/dist/cdn/{TKYSNSDW.js → K7E3FYY7.js} +1 -1
- package/dist/cdn/{LGURHBMI.js → KBYURVEW.js} +2 -2
- package/dist/cdn/{SB247VZP.js → KCRJ3JSU.js} +2 -2
- package/dist/cdn/{FUKBBSYW.js → KFVDMG2X.js} +2 -2
- package/dist/cdn/{45XEURWZ.js → KGFJINDZ.js} +2 -2
- package/dist/cdn/{TJ5GK2VX.js → L3HN5AEC.js} +2 -2
- package/dist/cdn/{LTIBCK2E.js → L7GNTOWS.js} +2 -2
- package/dist/cdn/{RB63O3J4.js → LDCLSTHK.js} +2 -2
- package/dist/cdn/LSNLFFRL.js +18 -0
- package/dist/cdn/{M5KITS5Z.js → LV5REHNL.js} +2 -2
- package/dist/cdn/LYQ3KTGD.js +6 -0
- package/dist/cdn/{SEMPHWDE.js → LZ3VYGB4.js} +2 -2
- package/dist/cdn/{XHNZFG7Z.js → M2HAF2GX.js} +2 -2
- package/dist/cdn/{5JO3NUM6.js → M3UIPWYF.js} +2 -2
- package/dist/cdn/{P5RH2V64.js → M3WLEKZY.js} +1 -1
- package/dist/cdn/{LTKYKBCW.js → MAV2E7IR.js} +2 -2
- package/dist/cdn/{XGMOUBQZ.js → MCCOBK4U.js} +2 -2
- package/dist/cdn/{UQJGKYGF.js → MDXWBTRA.js} +2 -2
- package/dist/cdn/{JWVHNF6G.js → MIBJXLGF.js} +2 -2
- package/dist/cdn/{FKXVA4AV.js → MIMNLENH.js} +2 -2
- package/dist/cdn/{3SG6LG4Q.js → MLGWC5WC.js} +2 -2
- package/dist/cdn/{PYNNQRZB.js → MLPRVROZ.js} +2 -2
- package/dist/cdn/{73ORVADS.js → MPOQCAB6.js} +2 -2
- package/dist/cdn/{BMTKDW7D.js → MTFQHJ7S.js} +2 -2
- package/dist/cdn/{YUAZN5VQ.js → MUKFRDRU.js} +2 -2
- package/dist/cdn/{3G2NE6CM.js → N2UEZKKT.js} +1 -1
- package/dist/cdn/{JGLVTYTS.js → N3SX4PJO.js} +2 -2
- package/dist/cdn/{VI6GC6WF.js → N6XFNMNC.js} +2 -2
- package/dist/cdn/{UX46QBO6.js → N7M4R6MB.js} +2 -2
- package/dist/cdn/{JYH2QJDR.js → NAAEMR7C.js} +2 -2
- package/dist/cdn/{X2AVAYNW.js → NB5Y75SB.js} +2 -2
- package/dist/cdn/{WZ2DKIAW.js → NBFNKQRL.js} +2 -2
- package/dist/cdn/{44B6UUZ3.js → NBPC3ZFT.js} +2 -2
- package/dist/cdn/{6C3IVA2N.js → NBVYJDDR.js} +2 -2
- package/dist/cdn/NDF3N6HW.js +4 -0
- package/dist/cdn/{REOWO3HH.js → NEWVUWSK.js} +2 -2
- package/dist/cdn/{PGPFMHUW.js → NGPTQFAY.js} +1 -1
- package/dist/cdn/{6AX3XQ7F.js → NITTCIVL.js} +2 -2
- package/dist/cdn/{E6X3WAGB.js → NKHE4IDW.js} +2 -2
- package/dist/cdn/{273PO6MK.js → NPTS3X7S.js} +2 -2
- package/dist/cdn/{X6NIULF3.js → NPZYRGJR.js} +1 -1
- package/dist/cdn/{NCGP5AHM.js → NRNJQ6LW.js} +1 -1
- package/dist/cdn/{HVOIXGE3.js → NVNJVDKY.js} +2 -2
- package/dist/cdn/{R3NQMOOR.js → NWK4W24O.js} +2 -2
- package/dist/cdn/{FNKBRYSX.js → O44LA7OL.js} +1 -1
- package/dist/cdn/{GNNZSEBA.js → O4BW2L5G.js} +2 -2
- package/dist/cdn/{RZOSVWSR.js → O5FSYFTO.js} +2 -2
- package/dist/cdn/{PIYUT7ED.js → O5IC74VW.js} +2 -2
- package/dist/cdn/{OSQ6H667.js → O73TK37S.js} +1 -1
- package/dist/cdn/{V576A4LT.js → OBINZMHB.js} +2 -2
- package/dist/cdn/{3KLAMPBT.js → ODRRKBUZ.js} +2 -2
- package/dist/cdn/{OSTYZFZB.js → OT7U2KKN.js} +1 -1
- package/dist/cdn/{3O5S7446.js → OXR3CLWM.js} +2 -2
- package/dist/cdn/{5YRFNERK.js → OZSUO2RI.js} +2 -2
- package/dist/cdn/{2DUXCIBQ.js → P4CH3JVD.js} +1 -1
- package/dist/cdn/{JFMCI5UM.js → PDSJLVCU.js} +1 -1
- package/dist/cdn/{JGZWT47Y.js → PGQILJGZ.js} +2 -2
- package/dist/cdn/{R6H5JT5Y.js → PJ6P5M6W.js} +2 -2
- package/dist/cdn/{YJNY7HRQ.js → PK5PHGBL.js} +2 -2
- package/dist/cdn/{VRUDJNQ5.js → PLJDLID2.js} +2 -2
- package/dist/cdn/{HGB5N5YY.js → PLVZ6KCL.js} +2 -2
- package/dist/cdn/{EIL2LBG3.js → PULWJVQ6.js} +1 -1
- package/dist/cdn/{RTFSXDXK.js → PUYL34E7.js} +2 -2
- package/dist/cdn/{ZUS74DVX.js → Q6F3I5ID.js} +2 -2
- package/dist/cdn/{YKV56CP7.js → QBYTLAAR.js} +2 -2
- package/dist/cdn/{5NOQHEUI.js → QD45UNRU.js} +1 -1
- package/dist/cdn/{AQGOARUP.js → QDGZPTOS.js} +2 -2
- package/dist/cdn/{RXP3QCOS.js → QF5SFD5P.js} +1 -1
- package/dist/cdn/QGM2IHP7.js +18 -0
- package/dist/cdn/{BZCZWRVE.js → QLEOLUNQ.js} +2 -2
- package/dist/cdn/{JPONN2WN.js → QLUF3CA4.js} +2 -2
- package/dist/cdn/QQMQZWHZ.js +4 -0
- package/dist/cdn/{D47MQ4PM.js → QT6NQCTF.js} +2 -2
- package/dist/cdn/{DEVZIWDQ.js → QXJZIFME.js} +2 -2
- package/dist/cdn/{FVDDBKWI.js → R2BTBE5Y.js} +1 -1
- package/dist/cdn/{QPSFN2UQ.js → R2VZTVWF.js} +2 -2
- package/dist/cdn/{XVE7NN2W.js → R5MOLXYO.js} +2 -2
- package/dist/cdn/{5362WPO4.js → REIIATFT.js} +2 -2
- package/dist/cdn/{QN3EXHLI.js → RG3HIFJ7.js} +2 -2
- package/dist/cdn/{EFWXAAAR.js → RGQ5Y5GC.js} +2 -2
- package/dist/cdn/{Y5XMW2RS.js → RRCJCS53.js} +2 -2
- package/dist/cdn/{2OBYJOKR.js → RSOXCIBH.js} +2 -2
- package/dist/cdn/{WJ2OAJ4B.js → RVYKZUI7.js} +2 -2
- package/dist/cdn/{TZZZZD5J.js → SG5MHJ4N.js} +2 -2
- package/dist/cdn/{DRJDDQ63.js → SGLIPS4K.js} +2 -2
- package/dist/cdn/{MN7WPB2H.js → SHSMDVKF.js} +2 -2
- package/dist/cdn/{YQNFSFGU.js → SHYHZYKZ.js} +2 -2
- package/dist/cdn/{ITVN7WBS.js → SKROSG35.js} +2 -2
- package/dist/cdn/{MCO5EK56.js → SKWHNZUO.js} +2 -2
- package/dist/cdn/SP5Q3OWO.js +4 -0
- package/dist/cdn/{IIFFVMSY.js → SQYDLSNS.js} +2 -2
- package/dist/cdn/{GWCOCOL3.js → SSNVKKF2.js} +2 -2
- package/dist/cdn/{67OEFDYU.js → T2IELMDA.js} +2 -2
- package/dist/cdn/{S6R7JLLH.js → T3AL5SL4.js} +2 -2
- package/dist/cdn/{YAK2RJWX.js → T7AEMZMX.js} +2 -2
- package/dist/cdn/{VTE2Z2LQ.js → TFM3Q342.js} +1 -1
- package/dist/cdn/{MGZ4FZSB.js → TG6OB6L6.js} +2 -2
- package/dist/cdn/{WLBFUOTA.js → TGEGZY2G.js} +2 -2
- package/dist/cdn/{NO6JAPC4.js → TKY57TEX.js} +2 -2
- package/dist/cdn/{QO2F624G.js → TKZN4NGF.js} +2 -2
- package/dist/cdn/{6YZKX2YS.js → TNOZQKKG.js} +1 -1
- package/dist/cdn/{ND2UM3Q6.js → TTBW4SM4.js} +2 -2
- package/dist/cdn/{6PV7ONPN.js → TZMCPBQ6.js} +2 -2
- package/dist/cdn/U45RA23S.js +4 -0
- package/dist/cdn/{SQT7NXFS.js → UFY4FKE4.js} +2 -2
- package/dist/cdn/{U3YRL76J.js → UG6DTQWC.js} +2 -2
- package/dist/cdn/{ZL7OSGNB.js → UGCZTLUJ.js} +2 -2
- package/dist/cdn/{CJ4OXYMV.js → ULYPTG4C.js} +2 -2
- package/dist/cdn/{ZKTGGIVP.js → UMLSM7SQ.js} +2 -2
- package/dist/cdn/{U5SBW2GG.js → UOQ75LBF.js} +2 -2
- package/dist/cdn/{HQRJVP5B.js → UOTCT3X2.js} +2 -2
- package/dist/cdn/{M7IVXQWP.js → UPP373IZ.js} +2 -2
- package/dist/cdn/{PZUHPEAK.js → USH2FWEI.js} +2 -2
- package/dist/cdn/{DRRC5BOC.js → UWPYZKRU.js} +2 -2
- package/dist/cdn/{SUMIEV7Y.js → UXHFA7TQ.js} +1 -1
- package/dist/cdn/{L6HVJIN6.js → UXQTOOQF.js} +2 -2
- package/dist/cdn/{LBG4SUYF.js → UZ3FNZON.js} +2 -2
- package/dist/cdn/{EJTEZKXU.js → V3ZZ5N4R.js} +2 -2
- package/dist/cdn/{4FO75I6N.js → V4AQKHXK.js} +2 -2
- package/dist/cdn/{QCIMGMB5.js → V4Z4WMMJ.js} +2 -2
- package/dist/cdn/{H55OHD43.js → VCKCORX7.js} +2 -2
- package/dist/cdn/{LA6CUBIO.js → VEPVOZOG.js} +2 -2
- package/dist/cdn/{2RKT7ZM5.js → VOMUURUC.js} +2 -2
- package/dist/cdn/{OBVKSQEU.js → VSD3M6NN.js} +2 -2
- package/dist/cdn/{ZAOYI7VI.js → VWW3LSRO.js} +2 -2
- package/dist/cdn/{3FQ7NOEN.js → VYKVHYXK.js} +2 -2
- package/dist/cdn/W7MYYAYF.js +4 -0
- package/dist/cdn/{HC5QYVJ2.js → WBFSXBTD.js} +2 -2
- package/dist/cdn/{MXHUWGWH.js → WGAW32YJ.js} +1 -1
- package/dist/cdn/{YZYPUNXQ.js → WLOLHBFB.js} +2 -2
- package/dist/cdn/{DRBJRFXQ.js → WSRJWIJL.js} +2 -2
- package/dist/cdn/{TH655CSJ.js → WTTVUTLF.js} +2 -2
- package/dist/cdn/{5XR5Z33A.js → WWWGD7IQ.js} +2 -2
- package/dist/cdn/{2AA6NYJP.js → WYKWWP7A.js} +2 -2
- package/dist/cdn/{6QZUTDMP.js → WZEVKWM7.js} +2 -2
- package/dist/cdn/{EBYZPTCH.js → WZIKGI4S.js} +2 -2
- package/dist/cdn/{SCVPTZEB.js → XCBEEW4Y.js} +2 -2
- package/dist/cdn/XIH4QECN.js +4 -0
- package/dist/cdn/{FSEHFYQN.js → XKTAGUXR.js} +2 -2
- package/dist/cdn/{VEUJ6N6V.js → XLOS4YK7.js} +2 -2
- package/dist/cdn/{4CM3ZBKR.js → XLOU4CT6.js} +1 -1
- package/dist/cdn/{J2C5QTAW.js → XQVP3LAD.js} +1 -1
- package/dist/cdn/{ZVTKIZVK.js → XSZKL3RH.js} +2 -2
- package/dist/cdn/{IKDE7TRJ.js → YDBXXYQT.js} +2 -2
- package/dist/cdn/{7UU2OGO4.js → YETXYXLA.js} +2 -2
- package/dist/cdn/{2UETDNR5.js → YLQDUOIF.js} +2 -2
- package/dist/cdn/{GJKBVR5V.js → YNBOJIO2.js} +1 -1
- package/dist/cdn/{3H44N4FR.js → YUNO2IBI.js} +2 -2
- package/dist/cdn/{PIELGC5E.js → YWR4TMJW.js} +2 -2
- package/dist/cdn/{GGJN4CY2.js → YX5XY52P.js} +2 -2
- package/dist/cdn/{RZYE3BNV.js → YZ3L2PZE.js} +2 -2
- package/dist/cdn/{6VB57DL2.js → Z2B6IWJT.js} +2 -2
- package/dist/cdn/{3FP7PHRR.js → Z3IFAZMT.js} +2 -2
- package/dist/cdn/{VVBIF2KT.js → Z5526TL4.js} +2 -2
- package/dist/cdn/{QOUB25WU.js → ZCNTFMFD.js} +1 -1
- package/dist/cdn/{FBGKT423.js → ZD2KMD76.js} +2 -2
- package/dist/cdn/{J6EJFNQR.js → ZIASRWEX.js} +2 -2
- package/dist/cdn/{XKERX3Y7.js → ZJICNLKM.js} +2 -2
- package/dist/cdn/{CCBKAPFC.js → ZLFAD7B6.js} +2 -2
- package/dist/cdn/{UFQESXOQ.js → ZN44SNEG.js} +2 -2
- package/dist/cdn/{LRKBWB34.js → ZPZAW75N.js} +2 -2
- package/dist/cdn/{V6LEW5RU.js → ZQCWMQNP.js} +1 -1
- package/dist/cdn/ZRJN3QPB.js +4 -0
- package/dist/cdn/{3IQDNOWP.js → ZVL3K67Z.js} +2 -2
- package/dist/cdn/{CA5VLB6E.js → ZYGVWDQR.js} +2 -2
- package/dist/cdn/assets/solutions-deploy-app-nav/t9n/messages.ar.json +1 -0
- package/dist/cdn/assets/solutions-deploy-app-nav/t9n/messages.bg.json +1 -0
- package/dist/cdn/assets/solutions-deploy-app-nav/t9n/messages.bs.json +1 -0
- package/dist/cdn/assets/solutions-deploy-app-nav/t9n/messages.ca.json +1 -0
- package/dist/cdn/assets/solutions-deploy-app-nav/t9n/messages.cs.json +1 -0
- package/dist/cdn/assets/solutions-deploy-app-nav/t9n/messages.da.json +1 -0
- package/dist/cdn/assets/solutions-deploy-app-nav/t9n/messages.de.json +1 -1
- package/dist/cdn/assets/solutions-deploy-app-nav/t9n/messages.el.json +1 -0
- package/dist/cdn/assets/solutions-deploy-app-nav/t9n/messages.en.json +1 -1
- package/dist/cdn/assets/solutions-deploy-app-nav/t9n/messages.es.json +1 -0
- package/dist/cdn/assets/solutions-deploy-app-nav/t9n/messages.et.json +1 -0
- package/dist/cdn/assets/solutions-deploy-app-nav/t9n/messages.fi.json +1 -0
- package/dist/cdn/assets/solutions-deploy-app-nav/t9n/messages.fr.json +1 -0
- package/dist/cdn/assets/solutions-deploy-app-nav/t9n/messages.he.json +1 -1
- package/dist/cdn/assets/solutions-deploy-app-nav/t9n/messages.hr.json +1 -0
- package/dist/cdn/assets/solutions-deploy-app-nav/t9n/messages.hu.json +1 -0
- package/dist/cdn/assets/solutions-deploy-app-nav/t9n/messages.id.json +1 -0
- package/dist/cdn/assets/solutions-deploy-app-nav/t9n/messages.it.json +1 -0
- package/dist/cdn/assets/solutions-deploy-app-nav/t9n/messages.ja.json +1 -0
- package/dist/cdn/assets/solutions-deploy-app-nav/t9n/messages.json +1 -1
- package/dist/cdn/assets/solutions-deploy-app-nav/t9n/messages.ko.json +1 -0
- package/dist/cdn/assets/solutions-deploy-app-nav/t9n/messages.lt.json +1 -0
- package/dist/cdn/assets/solutions-deploy-app-nav/t9n/messages.lv.json +1 -0
- package/dist/cdn/assets/solutions-deploy-app-nav/t9n/messages.nl.json +1 -0
- package/dist/cdn/assets/solutions-deploy-app-nav/t9n/messages.no.json +1 -0
- package/dist/cdn/assets/solutions-deploy-app-nav/t9n/messages.pl.json +1 -0
- package/dist/cdn/assets/solutions-deploy-app-nav/t9n/messages.pt-BR.json +1 -0
- package/dist/cdn/assets/solutions-deploy-app-nav/t9n/messages.pt-PT.json +1 -0
- package/dist/cdn/assets/solutions-deploy-app-nav/t9n/messages.ro.json +1 -0
- package/dist/cdn/assets/solutions-deploy-app-nav/t9n/messages.ru.json +1 -0
- package/dist/cdn/assets/solutions-deploy-app-nav/t9n/messages.sk.json +1 -0
- package/dist/cdn/assets/solutions-deploy-app-nav/t9n/messages.sl.json +1 -0
- package/dist/cdn/assets/solutions-deploy-app-nav/t9n/messages.sr.json +1 -0
- package/dist/cdn/assets/solutions-deploy-app-nav/t9n/messages.sv.json +1 -0
- package/dist/cdn/assets/solutions-deploy-app-nav/t9n/messages.th.json +1 -0
- package/dist/cdn/assets/solutions-deploy-app-nav/t9n/messages.tr.json +1 -0
- package/dist/cdn/assets/solutions-deploy-app-nav/t9n/messages.uk.json +1 -0
- package/dist/cdn/assets/solutions-deploy-app-nav/t9n/messages.vi.json +1 -0
- package/dist/cdn/assets/solutions-deploy-app-nav/t9n/messages.zh-CN.json +1 -0
- package/dist/cdn/assets/solutions-deploy-app-nav/t9n/messages.zh-HK.json +1 -0
- package/dist/cdn/assets/solutions-deploy-app-nav/t9n/messages.zh-TW.json +1 -0
- package/dist/cdn/index.js +2 -2
- package/dist/chunks/Auth.js +1 -1
- package/dist/chunks/CardsFetcher.js +1 -1
- package/dist/chunks/appConfig.js +1 -1
- package/dist/chunks/cardFetchingUtils.js +1 -1
- package/dist/chunks/cardsHelpers.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/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/publicNotificationContext.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 +8 -8
- 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 +11 -11
- 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 +34 -30
- 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 +11 -11
- 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 +15 -15
- package/dist/components/refine-selection/customElement.d.ts +1 -0
- package/dist/components/refine-selection/customElement.js +44 -41
- 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 +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 +1 -1
- 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 +15 -15
- 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-deploy-app/customElement.js +9 -9
- package/dist/components/solutions-deploy-app-nav/customElement.d.ts +7 -0
- package/dist/components/solutions-deploy-app-nav/customElement.js +32 -16
- package/dist/components/solutions-deployed-filter-panel/customElement.js +1 -1
- package/dist/components/solutions-deployed-panel/customElement.js +1 -1
- package/dist/components/solutions-deployed-shell/customElement.js +15 -15
- 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 +62 -4
- package/dist/docs/docs.json +40 -5
- package/dist/docs/vscode.html-custom-data.json +20 -1
- package/dist/docs/web-types.json +23 -4
- package/dist/index.js +1 -1
- package/dist/loader.js +2 -2
- package/dist/types/lumina.d.ts +1 -1
- package/dist/types/preact.d.ts +1 -1
- package/dist/types/preact10.d.ts +1 -1
- package/dist/types/react.d.ts +1 -1
- package/dist/types/stencil.d.ts +1 -1
- package/dist/utils/interfaces.d.ts +1 -1
- package/package.json +1 -1
- package/dist/cdn/63VQEHWN.js +0 -4
- package/dist/cdn/7Q24NAZO.js +0 -4
- package/dist/cdn/7XGDSTMO.js +0 -6
- package/dist/cdn/AX4T4DGX.js +0 -4
- package/dist/cdn/BIRD7YH7.js +0 -4
- package/dist/cdn/C7JUA4HX.js +0 -18
- package/dist/cdn/D7PJ7S5F.js +0 -4
- package/dist/cdn/DA57AJHT.js +0 -4
- package/dist/cdn/DARBIBVV.js +0 -18
- package/dist/cdn/DYFITLC3.js +0 -18
- package/dist/cdn/E427J4ZP.js +0 -4
- package/dist/cdn/HP4YH4K4.js +0 -4
- package/dist/cdn/MSS256QC.js +0 -18
- package/dist/cdn/MZYAXBIV.js +0 -18
- package/dist/cdn/O5PFZ4VJ.js +0 -4
- package/dist/cdn/SRIUS4NU.js +0 -20
- package/dist/cdn/T3HGF2A2.js +0 -4
- package/dist/cdn/WSVCBFI4.js +0 -18
- package/dist/cdn/WTZZSM6B.js +0 -18
- package/dist/cdn/X4TBVM25.js +0 -4
- package/dist/cdn/X6R7Z5LM.js +0 -18
- package/dist/cdn/YQOJOZII.js +0 -4
- package/dist/cdn/ZLKWEPL6.js +0 -4
- package/dist/solutions-components_commit.txt +0 -10
@@ -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{
|
3
|
+
v1.1.0-next.20251003 */
|
4
|
+
import{a as Ac,w as Nc}from"./LYQ3KTGD.js";import{a as Ne}from"./YNBOJIO2.js";import{a as xc}from"./4SVJQ4LX.js";import{b as _c}from"./TFM3Q342.js";import{b as io}from"./3OY3YMT5.js";import{c as yc}from"./VSD3M6NN.js";var lr=Uint8Array,zn=Uint16Array,El=Int32Array,Cl=new lr([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]),Ol=new lr([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]),Lc=new lr([16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15]),Ic=function(t,n){for(var e=new zn(31),r=0;r<31;++r)e[r]=n+=1<<t[r-1];for(var i=new El(e[30]),r=1;r<30;++r)for(var a=e[r];a<e[r+1];++a)i[a]=a-e[r]<<5|r;return{b:e,r:i}},Fc=Ic(Cl,2),G1=Fc.b,Pl=Fc.r;G1[28]=258,Pl[258]=28;var Ec=Ic(Ol,0),np=Ec.b,Sc=Ec.r,Il=new zn(32768);for(ve=0;ve<32768;++ve)zr=(ve&43690)>>1|(ve&21845)<<1,zr=(zr&52428)>>2|(zr&13107)<<2,zr=(zr&61680)>>4|(zr&3855)<<4,Il[ve]=((zr&65280)>>8|(zr&255)<<8)>>1;var zr,ve,so=(function(t,n,e){for(var r=t.length,i=0,a=new zn(n);i<r;++i)t[i]&&++a[t[i]-1];var h=new zn(n);for(i=1;i<n;++i)h[i]=h[i-1]+a[i-1]<<1;var l;if(e){l=new zn(1<<n);var f=15-n;for(i=0;i<r;++i)if(t[i])for(var u=i<<4|t[i],g=n-t[i],w=h[t[i]-1]++<<g,A=w|(1<<g)-1;w<=A;++w)l[Il[w]>>f]=u}else for(l=new zn(r),i=0;i<r;++i)t[i]&&(l[i]=Il[h[t[i]-1]++]>>15-t[i]);return l}),zi=new lr(288);for(ve=0;ve<144;++ve)zi[ve]=8;var ve;for(ve=144;ve<256;++ve)zi[ve]=9;var ve;for(ve=256;ve<280;++ve)zi[ve]=7;var ve;for(ve=280;ve<288;++ve)zi[ve]=8;var ve,ds=new lr(32);for(ve=0;ve<32;++ve)ds[ve]=5;var ve,V1=so(zi,9,0);var Z1=so(ds,5,0);var Cc=function(t){return(t+7)/8|0},$1=function(t,n,e){return(n==null||n<0)&&(n=0),(e==null||e>t.length)&&(e=t.length),new lr(t.subarray(n,e))};var Ur=function(t,n,e){e<<=n&7;var r=n/8|0;t[r]|=e,t[r+1]|=e>>8},ao=function(t,n,e){e<<=n&7;var r=n/8|0;t[r]|=e,t[r+1]|=e>>8,t[r+2]|=e>>16},kl=function(t,n){for(var e=[],r=0;r<t.length;++r)t[r]&&e.push({s:r,f:t[r]});var i=e.length,a=e.slice();if(!i)return{t:Tc,l:0};if(i==1){var h=new lr(e[0].s+1);return h[e[0].s]=1,{t:h,l:1}}e.sort(function(rt,vt){return rt.f-vt.f}),e.push({s:-1,f:25001});var l=e[0],f=e[1],u=0,g=1,w=2;for(e[0]={s:-1,f:l.f+f.f,l,r:f};g!=i-1;)l=e[e[u].f<e[w].f?u++:w++],f=e[u!=g&&e[u].f<e[w].f?u++:w++],e[g++]={s:-1,f:l.f+f.f,l,r:f};for(var A=a[0].s,r=1;r<i;++r)a[r].s>A&&(A=a[r].s);var p=new zn(A+1),I=Fl(e[g-1],p,0);if(I>n){var r=0,P=0,T=I-n,L=1<<T;for(a.sort(function(vt,pt){return p[pt.s]-p[vt.s]||vt.f-pt.f});r<i;++r){var W=a[r].s;if(p[W]>n)P+=L-(1<<I-p[W]),p[W]=n;else break}for(P>>=T;P>0;){var q=a[r].s;p[q]<n?P-=1<<n-p[q]++-1:++r}for(;r>=0&&P;--r){var B=a[r].s;p[B]==n&&(--p[B],++P)}I=n}return{t:new lr(p),l:I}},Fl=function(t,n,e){return t.s==-1?Math.max(Fl(t.l,n,e+1),Fl(t.r,n,e+1)):n[t.s]=e},kc=function(t){for(var n=t.length;n&&!t[--n];);for(var e=new zn(++n),r=0,i=t[0],a=1,h=function(f){e[r++]=f},l=1;l<=n;++l)if(t[l]==i&&l!=n)++a;else{if(!i&&a>2){for(;a>138;a-=138)h(32754);a>2&&(h(a>10?a-11<<5|28690:a-3<<5|12305),a=0)}else if(a>3){for(h(i),--a;a>6;a-=6)h(8304);a>2&&(h(a-3<<5|8208),a=0)}for(;a--;)h(i);a=1,i=t[l]}return{c:e.subarray(0,r),n}},oo=function(t,n){for(var e=0,r=0;r<n.length;++r)e+=t[r]*n[r];return e},Oc=function(t,n,e){var r=e.length,i=Cc(n+2);t[i]=r&255,t[i+1]=r>>8,t[i+2]=t[i]^255,t[i+3]=t[i+1]^255;for(var a=0;a<r;++a)t[i+a+4]=e[a];return(i+4+r)*8},Pc=function(t,n,e,r,i,a,h,l,f,u,g){Ur(n,g++,e),++i[256];for(var w=kl(i,15),A=w.t,p=w.l,I=kl(a,15),P=I.t,T=I.l,L=kc(A),W=L.c,q=L.n,B=kc(P),rt=B.c,vt=B.n,pt=new zn(19),Y=0;Y<W.length;++Y)++pt[W[Y]&31];for(var Y=0;Y<rt.length;++Y)++pt[rt[Y]&31];for(var j=kl(pt,7),Q=j.t,S=j.l,C=19;C>4&&!Q[Lc[C-1]];--C);var H=u+5<<3,U=oo(i,zi)+oo(a,ds)+h,it=oo(i,A)+oo(a,P)+h+14+3*C+oo(pt,Q)+2*pt[16]+3*pt[17]+7*pt[18];if(f>=0&&H<=U&&H<=it)return Oc(n,g,t.subarray(f,f+u));var lt,ct,et,ut;if(Ur(n,g,1+(it<U)),g+=2,it<U){lt=so(A,p,0),ct=A,et=so(P,T,0),ut=P;var Nt=so(Q,S,0);Ur(n,g,q-257),Ur(n,g+5,vt-1),Ur(n,g+10,C-4),g+=14;for(var Y=0;Y<C;++Y)Ur(n,g+3*Y,Q[Lc[Y]]);g+=3*C;for(var wt=[W,rt],x=0;x<2;++x)for(var D=wt[x],Y=0;Y<D.length;++Y){var R=D[Y]&31;Ur(n,g,Nt[R]),g+=Q[R],R>15&&(Ur(n,g,D[Y]>>5&127),g+=D[Y]>>12)}}else lt=V1,ct=zi,et=Z1,ut=ds;for(var Y=0;Y<l;++Y){var V=r[Y];if(V>255){var R=V>>18&31;ao(n,g,lt[R+257]),g+=ct[R+257],R>7&&(Ur(n,g,V>>23&31),g+=Cl[R]);var $=V&31;ao(n,g,et[$]),g+=ut[$],$>3&&(ao(n,g,V>>5&8191),g+=Ol[$])}else ao(n,g,lt[V]),g+=ct[V]}return ao(n,g,lt[256]),g+ct[256]},Y1=new El([65540,131080,131088,131104,262176,1048704,1048832,2114560,2117632]),Tc=new lr(0),K1=function(t,n,e,r,i,a){var h=a.z||t.length,l=new lr(r+h+5*(1+Math.ceil(h/7e3))+i),f=l.subarray(r,l.length-i),u=a.l,g=(a.r||0)&7;if(n){g&&(f[0]=a.r>>3);for(var w=Y1[n-1],A=w>>13,p=w&8191,I=(1<<e)-1,P=a.p||new zn(32768),T=a.h||new zn(I+1),L=Math.ceil(e/3),W=2*L,q=function(st){return(t[st]^t[st+1]<<L^t[st+2]<<W)&I},B=new El(25e3),rt=new zn(288),vt=new zn(32),pt=0,Y=0,j=a.i||0,Q=0,S=a.w||0,C=0;j+2<h;++j){var H=q(j),U=j&32767,it=T[H];if(P[U]=it,T[H]=U,S<=j){var lt=h-j;if((pt>7e3||Q>24576)&&(lt>423||!u)){g=Pc(t,f,0,B,rt,vt,Y,Q,C,j-C,g),Q=pt=Y=0,C=j;for(var ct=0;ct<286;++ct)rt[ct]=0;for(var ct=0;ct<30;++ct)vt[ct]=0}var et=2,ut=0,Nt=p,wt=U-it&32767;if(lt>2&&H==q(j-wt))for(var x=Math.min(A,lt)-1,D=Math.min(32767,j),R=Math.min(258,lt);wt<=D&&--Nt&&U!=it;){if(t[j+et]==t[j+et-wt]){for(var V=0;V<R&&t[j+V]==t[j+V-wt];++V);if(V>et){if(et=V,ut=wt,V>x)break;for(var $=Math.min(wt,V-2),nt=0,ct=0;ct<$;++ct){var ot=j-wt+ct&32767,at=P[ot],mt=ot-at&32767;mt>nt&&(nt=mt,it=ot)}}}U=it,it=P[U],wt+=U-it&32767}if(ut){B[Q++]=268435456|Pl[et]<<18|Sc[ut];var xt=Pl[et]&31,kt=Sc[ut]&31;Y+=Cl[xt]+Ol[kt],++rt[257+xt],++vt[kt],S=j+et,++pt}else B[Q++]=t[j],++rt[t[j]]}}for(j=Math.max(j,S);j<h;++j)B[Q++]=t[j],++rt[t[j]];g=Pc(t,f,u,B,rt,vt,Y,Q,C,j-C,g),u||(a.r=g&7|f[g/8|0]<<3,g-=7,a.h=T,a.p=P,a.i=j,a.w=S)}else{for(var j=a.w||0;j<h+u;j+=65535){var Pt=j+65535;Pt>=h&&(f[g/8|0]=u,Pt=h),g=Oc(f,g+1,t.subarray(j,Pt))}a.i=h}return $1(l,0,r+Cc(g)+i)};var Dc=function(){var t=1,n=0;return{p:function(e){for(var r=t,i=n,a=e.length|0,h=0;h!=a;){for(var l=Math.min(h+2655,a);h<l;++h)i+=r+=e[h];r=(r&65535)+15*(r>>16),i=(i&65535)+15*(i>>16)}t=r,n=i},d:function(){return t%=65521,n%=65521,(t&255)<<24|(t&65280)<<8|(n&255)<<8|n>>8}}},X1=function(t,n,e,r,i){if(!i&&(i={l:1},n.dictionary)){var a=n.dictionary.subarray(-32768),h=new lr(a.length+t.length);h.set(a),h.set(t,a.length),t=h,i.w=a.length}return K1(t,n.level==null?6:n.level,n.mem==null?i.l?Math.ceil(Math.max(8,Math.min(13,Math.log(t.length)))*1.5):20:12+n.mem,e,r,i)};var Mc=function(t,n,e){for(;e;++n)t[n]=e,e>>>=8};var J1=function(t,n){var e=n.level,r=e==0?0:e<6?1:e==9?3:2;if(t[0]=120,t[1]=r<<6|(n.dictionary&&32),t[1]|=31-(t[0]<<8|t[1])%31,n.dictionary){var i=Dc();i.p(n.dictionary),Mc(t,2,i.d())}};function ps(t,n){n||(n={});var e=Dc();e.p(t);var r=X1(t,n,n.dictionary?6:2,4);return J1(r,n),Mc(r,r.length-4,e.d()),r}var Q1=typeof TextDecoder<"u"&&new TextDecoder,t0=0;try{Q1.decode(Tc,{stream:!0}),t0=1}catch{}function Rc(t){if(Array.isArray(t))return t}function jc(t,n){var e=t==null?null:typeof Symbol<"u"&&t[Symbol.iterator]||t["@@iterator"];if(e!=null){var r,i,a,h,l=[],f=!0,u=!1;try{if(a=(e=e.call(t)).next,n===0){if(Object(e)!==e)return;f=!1}else for(;!(f=(r=a.call(e)).done)&&(l.push(r.value),l.length!==n);f=!0);}catch(g){u=!0,i=g}finally{try{if(!f&&e.return!=null&&(h=e.return(),Object(h)!==h))return}finally{if(u)throw i}}return l}}function Tl(t,n){(n==null||n>t.length)&&(n=t.length);for(var e=0,r=Array(n);e<n;e++)r[e]=t[e];return r}function Bc(t,n){if(t){if(typeof t=="string")return Tl(t,n);var e={}.toString.call(t).slice(8,-1);return e==="Object"&&t.constructor&&(e=t.constructor.name),e==="Map"||e==="Set"?Array.from(t):e==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(e)?Tl(t,n):void 0}}function zc(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
|
5
5
|
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function Dl(t,n){return Rc(t)||jc(t,n)||Bc(t,n)||zc()}function Ml(t,n="utf8"){return new TextDecoder(n).decode(t)}var e0=new TextEncoder;function Uc(t){return e0.encode(t)}var n0=1024*8,r0=(()=>{let t=new Uint8Array(4),n=new Uint32Array(t.buffer);return!((n[0]=1)&t[0])})(),Rl={int8:globalThis.Int8Array,uint8:globalThis.Uint8Array,int16:globalThis.Int16Array,uint16:globalThis.Uint16Array,int32:globalThis.Int32Array,uint32:globalThis.Uint32Array,uint64:globalThis.BigUint64Array,int64:globalThis.BigInt64Array,float32:globalThis.Float32Array,float64:globalThis.Float64Array},lo=class t{buffer;byteLength;byteOffset;length;offset;lastWrittenByte;littleEndian;_data;_mark;_marks;constructor(n=n0,e={}){let r=!1;typeof n=="number"?n=new ArrayBuffer(n):(r=!0,this.lastWrittenByte=n.byteLength);let i=e.offset?e.offset>>>0:0,a=n.byteLength-i,h=i;(ArrayBuffer.isView(n)||n instanceof t)&&(n.byteLength!==n.buffer.byteLength&&(h=n.byteOffset+i),n=n.buffer),r?this.lastWrittenByte=a:this.lastWrittenByte=0,this.buffer=n,this.length=a,this.byteLength=a,this.byteOffset=h,this.offset=0,this.littleEndian=!0,this._data=new DataView(this.buffer,h,a),this._mark=0,this._marks=[]}available(n=1){return this.offset+n<=this.length}isLittleEndian(){return this.littleEndian}setLittleEndian(){return this.littleEndian=!0,this}isBigEndian(){return!this.littleEndian}setBigEndian(){return this.littleEndian=!1,this}skip(n=1){return this.offset+=n,this}back(n=1){return this.offset-=n,this}seek(n){return this.offset=n,this}mark(){return this._mark=this.offset,this}reset(){return this.offset=this._mark,this}pushMark(){return this._marks.push(this.offset),this}popMark(){let n=this._marks.pop();if(n===void 0)throw new Error("Mark stack empty");return this.seek(n),this}rewind(){return this.offset=0,this}ensureAvailable(n=1){if(!this.available(n)){let r=(this.offset+n)*2,i=new Uint8Array(r);i.set(new Uint8Array(this.buffer)),this.buffer=i.buffer,this.length=r,this.byteLength=r,this._data=new DataView(this.buffer)}return this}readBoolean(){return this.readUint8()!==0}readInt8(){return this._data.getInt8(this.offset++)}readUint8(){return this._data.getUint8(this.offset++)}readByte(){return this.readUint8()}readBytes(n=1){return this.readArray(n,"uint8")}readArray(n,e){let r=Rl[e].BYTES_PER_ELEMENT*n,i=this.byteOffset+this.offset,a=this.buffer.slice(i,i+r);if(this.littleEndian===r0&&e!=="uint8"&&e!=="int8"){let l=new Uint8Array(this.buffer.slice(i,i+r));l.reverse();let f=new Rl[e](l.buffer);return this.offset+=r,f.reverse(),f}let h=new Rl[e](a);return this.offset+=r,h}readInt16(){let n=this._data.getInt16(this.offset,this.littleEndian);return this.offset+=2,n}readUint16(){let n=this._data.getUint16(this.offset,this.littleEndian);return this.offset+=2,n}readInt32(){let n=this._data.getInt32(this.offset,this.littleEndian);return this.offset+=4,n}readUint32(){let n=this._data.getUint32(this.offset,this.littleEndian);return this.offset+=4,n}readFloat32(){let n=this._data.getFloat32(this.offset,this.littleEndian);return this.offset+=4,n}readFloat64(){let n=this._data.getFloat64(this.offset,this.littleEndian);return this.offset+=8,n}readBigInt64(){let n=this._data.getBigInt64(this.offset,this.littleEndian);return this.offset+=8,n}readBigUint64(){let n=this._data.getBigUint64(this.offset,this.littleEndian);return this.offset+=8,n}readChar(){return String.fromCharCode(this.readInt8())}readChars(n=1){let e="";for(let r=0;r<n;r++)e+=this.readChar();return e}readUtf8(n=1){return Ml(this.readBytes(n))}decodeText(n=1,e="utf8"){return Ml(this.readBytes(n),e)}writeBoolean(n){return this.writeUint8(n?255:0),this}writeInt8(n){return this.ensureAvailable(1),this._data.setInt8(this.offset++,n),this._updateLastWrittenByte(),this}writeUint8(n){return this.ensureAvailable(1),this._data.setUint8(this.offset++,n),this._updateLastWrittenByte(),this}writeByte(n){return this.writeUint8(n)}writeBytes(n){this.ensureAvailable(n.length);for(let e=0;e<n.length;e++)this._data.setUint8(this.offset++,n[e]);return this._updateLastWrittenByte(),this}writeInt16(n){return this.ensureAvailable(2),this._data.setInt16(this.offset,n,this.littleEndian),this.offset+=2,this._updateLastWrittenByte(),this}writeUint16(n){return this.ensureAvailable(2),this._data.setUint16(this.offset,n,this.littleEndian),this.offset+=2,this._updateLastWrittenByte(),this}writeInt32(n){return this.ensureAvailable(4),this._data.setInt32(this.offset,n,this.littleEndian),this.offset+=4,this._updateLastWrittenByte(),this}writeUint32(n){return this.ensureAvailable(4),this._data.setUint32(this.offset,n,this.littleEndian),this.offset+=4,this._updateLastWrittenByte(),this}writeFloat32(n){return this.ensureAvailable(4),this._data.setFloat32(this.offset,n,this.littleEndian),this.offset+=4,this._updateLastWrittenByte(),this}writeFloat64(n){return this.ensureAvailable(8),this._data.setFloat64(this.offset,n,this.littleEndian),this.offset+=8,this._updateLastWrittenByte(),this}writeBigInt64(n){return this.ensureAvailable(8),this._data.setBigInt64(this.offset,n,this.littleEndian),this.offset+=8,this._updateLastWrittenByte(),this}writeBigUint64(n){return this.ensureAvailable(8),this._data.setBigUint64(this.offset,n,this.littleEndian),this.offset+=8,this._updateLastWrittenByte(),this}writeChar(n){return this.writeUint8(n.charCodeAt(0))}writeChars(n){for(let e=0;e<n.length;e++)this.writeUint8(n.charCodeAt(e));return this}writeUtf8(n){return this.writeBytes(Uc(n))}toArray(){return new Uint8Array(this.buffer,this.byteOffset,this.lastWrittenByte)}getWrittenByteLength(){return this.lastWrittenByte-this.byteOffset}_updateLastWrittenByte(){this.offset>this.lastWrittenByte&&(this.lastWrittenByte=this.offset)}};function ma(t){let n=t.length;for(;--n>=0;)t[n]=0}var i0=0,kf=1,a0=2,o0=3,s0=258,sh=29,No=256,mo=No+1+sh,da=30,lh=19,Pf=2*mo+1,Ui=15,jl=16,l0=7,hh=256,If=16,Ff=17,Ef=18,Jl=new Uint8Array([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]),ys=new Uint8Array([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]),h0=new Uint8Array([0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,2,3,7]),Cf=new Uint8Array([16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15]),c0=512,Hr=new Array((mo+2)*2);ma(Hr);var uo=new Array(da*2);ma(uo);var vo=new Array(c0);ma(vo);var bo=new Array(s0-o0+1);ma(bo);var ch=new Array(sh);ma(ch);var _s=new Array(da);ma(_s);function Bl(t,n,e,r,i){this.static_tree=t,this.extra_bits=n,this.extra_base=e,this.elems=r,this.max_length=i,this.has_stree=t&&t.length}var Of,Tf,Df;function zl(t,n){this.dyn_tree=t,this.max_code=0,this.stat_desc=n}var Mf=t=>t<256?vo[t]:vo[256+(t>>>7)],wo=(t,n)=>{t.pending_buf[t.pending++]=n&255,t.pending_buf[t.pending++]=n>>>8&255},Fn=(t,n,e)=>{t.bi_valid>jl-e?(t.bi_buf|=n<<t.bi_valid&65535,wo(t,t.bi_buf),t.bi_buf=n>>jl-t.bi_valid,t.bi_valid+=e-jl):(t.bi_buf|=n<<t.bi_valid&65535,t.bi_valid+=e)},yr=(t,n,e)=>{Fn(t,e[n*2],e[n*2+1])},Rf=(t,n)=>{let e=0;do e|=t&1,t>>>=1,e<<=1;while(--n>0);return e>>>1},f0=t=>{t.bi_valid===16?(wo(t,t.bi_buf),t.bi_buf=0,t.bi_valid=0):t.bi_valid>=8&&(t.pending_buf[t.pending++]=t.bi_buf&255,t.bi_buf>>=8,t.bi_valid-=8)},u0=(t,n)=>{let e=n.dyn_tree,r=n.max_code,i=n.stat_desc.static_tree,a=n.stat_desc.has_stree,h=n.stat_desc.extra_bits,l=n.stat_desc.extra_base,f=n.stat_desc.max_length,u,g,w,A,p,I,P=0;for(A=0;A<=Ui;A++)t.bl_count[A]=0;for(e[t.heap[t.heap_max]*2+1]=0,u=t.heap_max+1;u<Pf;u++)g=t.heap[u],A=e[e[g*2+1]*2+1]+1,A>f&&(A=f,P++),e[g*2+1]=A,!(g>r)&&(t.bl_count[A]++,p=0,g>=l&&(p=h[g-l]),I=e[g*2],t.opt_len+=I*(A+p),a&&(t.static_len+=I*(i[g*2+1]+p)));if(P!==0){do{for(A=f-1;t.bl_count[A]===0;)A--;t.bl_count[A]--,t.bl_count[A+1]+=2,t.bl_count[f]--,P-=2}while(P>0);for(A=f;A!==0;A--)for(g=t.bl_count[A];g!==0;)w=t.heap[--u],!(w>r)&&(e[w*2+1]!==A&&(t.opt_len+=(A-e[w*2+1])*e[w*2],e[w*2+1]=A),g--)}},jf=(t,n,e)=>{let r=new Array(Ui+1),i=0,a,h;for(a=1;a<=Ui;a++)i=i+e[a-1]<<1,r[a]=i;for(h=0;h<=n;h++){let l=t[h*2+1];l!==0&&(t[h*2]=Rf(r[l]++,l))}},d0=()=>{let t,n,e,r,i,a=new Array(Ui+1);for(e=0,r=0;r<sh-1;r++)for(ch[r]=e,t=0;t<1<<Jl[r];t++)bo[e++]=r;for(bo[e-1]=r,i=0,r=0;r<16;r++)for(_s[r]=i,t=0;t<1<<ys[r];t++)vo[i++]=r;for(i>>=7;r<da;r++)for(_s[r]=i<<7,t=0;t<1<<ys[r]-7;t++)vo[256+i++]=r;for(n=0;n<=Ui;n++)a[n]=0;for(t=0;t<=143;)Hr[t*2+1]=8,t++,a[8]++;for(;t<=255;)Hr[t*2+1]=9,t++,a[9]++;for(;t<=279;)Hr[t*2+1]=7,t++,a[7]++;for(;t<=287;)Hr[t*2+1]=8,t++,a[8]++;for(jf(Hr,mo+1,a),t=0;t<da;t++)uo[t*2+1]=5,uo[t*2]=Rf(t,5);Of=new Bl(Hr,Jl,No+1,mo,Ui),Tf=new Bl(uo,ys,0,da,Ui),Df=new Bl(new Array(0),h0,0,lh,l0)},Bf=t=>{let n;for(n=0;n<mo;n++)t.dyn_ltree[n*2]=0;for(n=0;n<da;n++)t.dyn_dtree[n*2]=0;for(n=0;n<lh;n++)t.bl_tree[n*2]=0;t.dyn_ltree[hh*2]=1,t.opt_len=t.static_len=0,t.sym_next=t.matches=0},zf=t=>{t.bi_valid>8?wo(t,t.bi_buf):t.bi_valid>0&&(t.pending_buf[t.pending++]=t.bi_buf),t.bi_buf=0,t.bi_valid=0},qc=(t,n,e,r)=>{let i=n*2,a=e*2;return t[i]<t[a]||t[i]===t[a]&&r[n]<=r[e]},Ul=(t,n,e)=>{let r=t.heap[e],i=e<<1;for(;i<=t.heap_len&&(i<t.heap_len&&qc(n,t.heap[i+1],t.heap[i],t.depth)&&i++,!qc(n,r,t.heap[i],t.depth));)t.heap[e]=t.heap[i],e=i,i<<=1;t.heap[e]=r},Hc=(t,n,e)=>{let r,i,a=0,h,l;if(t.sym_next!==0)do r=t.pending_buf[t.sym_buf+a++]&255,r+=(t.pending_buf[t.sym_buf+a++]&255)<<8,i=t.pending_buf[t.sym_buf+a++],r===0?yr(t,i,n):(h=bo[i],yr(t,h+No+1,n),l=Jl[h],l!==0&&(i-=ch[h],Fn(t,i,l)),r--,h=Mf(r),yr(t,h,e),l=ys[h],l!==0&&(r-=_s[h],Fn(t,r,l)));while(a<t.sym_next);yr(t,hh,n)},Ql=(t,n)=>{let e=n.dyn_tree,r=n.stat_desc.static_tree,i=n.stat_desc.has_stree,a=n.stat_desc.elems,h,l,f=-1,u;for(t.heap_len=0,t.heap_max=Pf,h=0;h<a;h++)e[h*2]!==0?(t.heap[++t.heap_len]=f=h,t.depth[h]=0):e[h*2+1]=0;for(;t.heap_len<2;)u=t.heap[++t.heap_len]=f<2?++f:0,e[u*2]=1,t.depth[u]=0,t.opt_len--,i&&(t.static_len-=r[u*2+1]);for(n.max_code=f,h=t.heap_len>>1;h>=1;h--)Ul(t,e,h);u=a;do h=t.heap[1],t.heap[1]=t.heap[t.heap_len--],Ul(t,e,1),l=t.heap[1],t.heap[--t.heap_max]=h,t.heap[--t.heap_max]=l,e[u*2]=e[h*2]+e[l*2],t.depth[u]=(t.depth[h]>=t.depth[l]?t.depth[h]:t.depth[l])+1,e[h*2+1]=e[l*2+1]=u,t.heap[1]=u++,Ul(t,e,1);while(t.heap_len>=2);t.heap[--t.heap_max]=t.heap[1],u0(t,n),jf(e,f,t.bl_count)},Wc=(t,n,e)=>{let r,i=-1,a,h=n[1],l=0,f=7,u=4;for(h===0&&(f=138,u=3),n[(e+1)*2+1]=65535,r=0;r<=e;r++)a=h,h=n[(r+1)*2+1],!(++l<f&&a===h)&&(l<u?t.bl_tree[a*2]+=l:a!==0?(a!==i&&t.bl_tree[a*2]++,t.bl_tree[If*2]++):l<=10?t.bl_tree[Ff*2]++:t.bl_tree[Ef*2]++,l=0,i=a,h===0?(f=138,u=3):a===h?(f=6,u=3):(f=7,u=4))},Gc=(t,n,e)=>{let r,i=-1,a,h=n[1],l=0,f=7,u=4;for(h===0&&(f=138,u=3),r=0;r<=e;r++)if(a=h,h=n[(r+1)*2+1],!(++l<f&&a===h)){if(l<u)do yr(t,a,t.bl_tree);while(--l!==0);else a!==0?(a!==i&&(yr(t,a,t.bl_tree),l--),yr(t,If,t.bl_tree),Fn(t,l-3,2)):l<=10?(yr(t,Ff,t.bl_tree),Fn(t,l-3,3)):(yr(t,Ef,t.bl_tree),Fn(t,l-11,7));l=0,i=a,h===0?(f=138,u=3):a===h?(f=6,u=3):(f=7,u=4)}},p0=t=>{let n;for(Wc(t,t.dyn_ltree,t.l_desc.max_code),Wc(t,t.dyn_dtree,t.d_desc.max_code),Ql(t,t.bl_desc),n=lh-1;n>=3&&t.bl_tree[Cf[n]*2+1]===0;n--);return t.opt_len+=3*(n+1)+5+5+4,n},g0=(t,n,e,r)=>{let i;for(Fn(t,n-257,5),Fn(t,e-1,5),Fn(t,r-4,4),i=0;i<r;i++)Fn(t,t.bl_tree[Cf[i]*2+1],3);Gc(t,t.dyn_ltree,n-1),Gc(t,t.dyn_dtree,e-1)},m0=t=>{let n=4093624447,e;for(e=0;e<=31;e++,n>>>=1)if(n&1&&t.dyn_ltree[e*2]!==0)return 0;if(t.dyn_ltree[18]!==0||t.dyn_ltree[20]!==0||t.dyn_ltree[26]!==0)return 1;for(e=32;e<No;e++)if(t.dyn_ltree[e*2]!==0)return 1;return 0},Vc=!1,v0=t=>{Vc||(d0(),Vc=!0),t.l_desc=new zl(t.dyn_ltree,Of),t.d_desc=new zl(t.dyn_dtree,Tf),t.bl_desc=new zl(t.bl_tree,Df),t.bi_buf=0,t.bi_valid=0,Bf(t)},Uf=(t,n,e,r)=>{Fn(t,(i0<<1)+(r?1:0),3),zf(t),wo(t,e),wo(t,~e),e&&t.pending_buf.set(t.window.subarray(n,n+e),t.pending),t.pending+=e},b0=t=>{Fn(t,kf<<1,3),yr(t,hh,Hr),f0(t)},w0=(t,n,e,r)=>{let i,a,h=0;t.level>0?(t.strm.data_type===2&&(t.strm.data_type=m0(t)),Ql(t,t.l_desc),Ql(t,t.d_desc),h=p0(t),i=t.opt_len+3+7>>>3,a=t.static_len+3+7>>>3,a<=i&&(i=a)):i=a=e+5,e+4<=i&&n!==-1?Uf(t,n,e,r):t.strategy===4||a===i?(Fn(t,(kf<<1)+(r?1:0),3),Hc(t,Hr,uo)):(Fn(t,(a0<<1)+(r?1:0),3),g0(t,t.l_desc.max_code+1,t.d_desc.max_code+1,h+1),Hc(t,t.dyn_ltree,t.dyn_dtree)),Bf(t),r&&zf(t)},y0=(t,n,e)=>(t.pending_buf[t.sym_buf+t.sym_next++]=n,t.pending_buf[t.sym_buf+t.sym_next++]=n>>8,t.pending_buf[t.sym_buf+t.sym_next++]=e,n===0?t.dyn_ltree[e*2]++:(t.matches++,n--,t.dyn_ltree[(bo[e]+No+1)*2]++,t.dyn_dtree[Mf(n)*2]++),t.sym_next===t.sym_end),_0=v0,x0=Uf,A0=w0,N0=y0,L0=b0,S0={_tr_init:_0,_tr_stored_block:x0,_tr_flush_block:A0,_tr_tally:N0,_tr_align:L0},k0=(t,n,e,r)=>{let i=t&65535|0,a=t>>>16&65535|0,h=0;for(;e!==0;){h=e>2e3?2e3:e,e-=h;do i=i+n[r++]|0,a=a+i|0;while(--h);i%=65521,a%=65521}return i|a<<16|0},yo=k0,P0=()=>{let t,n=[];for(var e=0;e<256;e++){t=e;for(var r=0;r<8;r++)t=t&1?3988292384^t>>>1:t>>>1;n[e]=t}return n},I0=new Uint32Array(P0()),F0=(t,n,e,r)=>{let i=I0,a=r+e;t^=-1;for(let h=r;h<a;h++)t=t>>>8^i[(t^n[h])&255];return t^-1},sn=F0,Wi={2:"need dictionary",1:"stream end",0:"","-1":"file error","-2":"stream error","-3":"data error","-4":"insufficient memory","-5":"buffer error","-6":"incompatible version"},va={Z_NO_FLUSH:0,Z_PARTIAL_FLUSH:1,Z_SYNC_FLUSH:2,Z_FULL_FLUSH:3,Z_FINISH:4,Z_BLOCK:5,Z_TREES:6,Z_OK:0,Z_STREAM_END:1,Z_NEED_DICT:2,Z_ERRNO:-1,Z_STREAM_ERROR:-2,Z_DATA_ERROR:-3,Z_MEM_ERROR:-4,Z_BUF_ERROR:-5,Z_NO_COMPRESSION:0,Z_BEST_SPEED:1,Z_BEST_COMPRESSION:9,Z_DEFAULT_COMPRESSION:-1,Z_FILTERED:1,Z_HUFFMAN_ONLY:2,Z_RLE:3,Z_FIXED:4,Z_DEFAULT_STRATEGY:0,Z_BINARY:0,Z_TEXT:1,Z_UNKNOWN:2,Z_DEFLATED:8},{_tr_init:E0,_tr_stored_block:th,_tr_flush_block:C0,_tr_tally:ci,_tr_align:O0}=S0,{Z_NO_FLUSH:fi,Z_PARTIAL_FLUSH:T0,Z_FULL_FLUSH:D0,Z_FINISH:Jn,Z_BLOCK:Zc,Z_OK:pn,Z_STREAM_END:$c,Z_STREAM_ERROR:_r,Z_DATA_ERROR:M0,Z_BUF_ERROR:ql,Z_DEFAULT_COMPRESSION:R0,Z_FILTERED:j0,Z_HUFFMAN_ONLY:gs,Z_RLE:B0,Z_FIXED:z0,Z_DEFAULT_STRATEGY:U0,Z_UNKNOWN:q0,Z_DEFLATED:Ns}=va,H0=9,W0=15,G0=8,V0=29,Z0=256,eh=Z0+1+V0,$0=30,Y0=19,K0=2*eh+1,X0=15,fe=3,hi=258,xr=hi+fe+1,J0=32,pa=42,fh=57,nh=69,rh=73,ih=91,ah=103,qi=113,co=666,Ln=1,ba=2,Gi=3,wa=4,Q0=3,Hi=(t,n)=>(t.msg=Wi[n],n),Yc=t=>t*2-(t>4?9:0),li=t=>{let n=t.length;for(;--n>=0;)t[n]=0},t2=t=>{let n,e,r,i=t.w_size;n=t.hash_size,r=n;do e=t.head[--r],t.head[r]=e>=i?e-i:0;while(--n);n=i,r=n;do e=t.prev[--r],t.prev[r]=e>=i?e-i:0;while(--n)},e2=(t,n,e)=>(n<<t.hash_shift^e)&t.hash_mask,ui=e2,Un=t=>{let n=t.state,e=n.pending;e>t.avail_out&&(e=t.avail_out),e!==0&&(t.output.set(n.pending_buf.subarray(n.pending_out,n.pending_out+e),t.next_out),t.next_out+=e,n.pending_out+=e,t.total_out+=e,t.avail_out-=e,n.pending-=e,n.pending===0&&(n.pending_out=0))},qn=(t,n)=>{C0(t,t.block_start>=0?t.block_start:-1,t.strstart-t.block_start,n),t.block_start=t.strstart,Un(t.strm)},be=(t,n)=>{t.pending_buf[t.pending++]=n},ho=(t,n)=>{t.pending_buf[t.pending++]=n>>>8&255,t.pending_buf[t.pending++]=n&255},oh=(t,n,e,r)=>{let i=t.avail_in;return i>r&&(i=r),i===0?0:(t.avail_in-=i,n.set(t.input.subarray(t.next_in,t.next_in+i),e),t.state.wrap===1?t.adler=yo(t.adler,n,i,e):t.state.wrap===2&&(t.adler=sn(t.adler,n,i,e)),t.next_in+=i,t.total_in+=i,i)},qf=(t,n)=>{let e=t.max_chain_length,r=t.strstart,i,a,h=t.prev_length,l=t.nice_match,f=t.strstart>t.w_size-xr?t.strstart-(t.w_size-xr):0,u=t.window,g=t.w_mask,w=t.prev,A=t.strstart+hi,p=u[r+h-1],I=u[r+h];t.prev_length>=t.good_match&&(e>>=2),l>t.lookahead&&(l=t.lookahead);do if(i=n,!(u[i+h]!==I||u[i+h-1]!==p||u[i]!==u[r]||u[++i]!==u[r+1])){r+=2,i++;do;while(u[++r]===u[++i]&&u[++r]===u[++i]&&u[++r]===u[++i]&&u[++r]===u[++i]&&u[++r]===u[++i]&&u[++r]===u[++i]&&u[++r]===u[++i]&&u[++r]===u[++i]&&r<A);if(a=hi-(A-r),r=A-hi,a>h){if(t.match_start=n,h=a,a>=l)break;p=u[r+h-1],I=u[r+h]}}while((n=w[n&g])>f&&--e!==0);return h<=t.lookahead?h:t.lookahead},ga=t=>{let n=t.w_size,e,r,i;do{if(r=t.window_size-t.lookahead-t.strstart,t.strstart>=n+(n-xr)&&(t.window.set(t.window.subarray(n,n+n-r),0),t.match_start-=n,t.strstart-=n,t.block_start-=n,t.insert>t.strstart&&(t.insert=t.strstart),t2(t),r+=n),t.strm.avail_in===0)break;if(e=oh(t.strm,t.window,t.strstart+t.lookahead,r),t.lookahead+=e,t.lookahead+t.insert>=fe)for(i=t.strstart-t.insert,t.ins_h=t.window[i],t.ins_h=ui(t,t.ins_h,t.window[i+1]);t.insert&&(t.ins_h=ui(t,t.ins_h,t.window[i+fe-1]),t.prev[i&t.w_mask]=t.head[t.ins_h],t.head[t.ins_h]=i,i++,t.insert--,!(t.lookahead+t.insert<fe)););}while(t.lookahead<xr&&t.strm.avail_in!==0)},Hf=(t,n)=>{let e=t.pending_buf_size-5>t.w_size?t.w_size:t.pending_buf_size-5,r,i,a,h=0,l=t.strm.avail_in;do{if(r=65535,a=t.bi_valid+42>>3,t.strm.avail_out<a||(a=t.strm.avail_out-a,i=t.strstart-t.block_start,r>i+t.strm.avail_in&&(r=i+t.strm.avail_in),r>a&&(r=a),r<e&&(r===0&&n!==Jn||n===fi||r!==i+t.strm.avail_in)))break;h=n===Jn&&r===i+t.strm.avail_in?1:0,th(t,0,0,h),t.pending_buf[t.pending-4]=r,t.pending_buf[t.pending-3]=r>>8,t.pending_buf[t.pending-2]=~r,t.pending_buf[t.pending-1]=~r>>8,Un(t.strm),i&&(i>r&&(i=r),t.strm.output.set(t.window.subarray(t.block_start,t.block_start+i),t.strm.next_out),t.strm.next_out+=i,t.strm.avail_out-=i,t.strm.total_out+=i,t.block_start+=i,r-=i),r&&(oh(t.strm,t.strm.output,t.strm.next_out,r),t.strm.next_out+=r,t.strm.avail_out-=r,t.strm.total_out+=r)}while(h===0);return l-=t.strm.avail_in,l&&(l>=t.w_size?(t.matches=2,t.window.set(t.strm.input.subarray(t.strm.next_in-t.w_size,t.strm.next_in),0),t.strstart=t.w_size,t.insert=t.strstart):(t.window_size-t.strstart<=l&&(t.strstart-=t.w_size,t.window.set(t.window.subarray(t.w_size,t.w_size+t.strstart),0),t.matches<2&&t.matches++,t.insert>t.strstart&&(t.insert=t.strstart)),t.window.set(t.strm.input.subarray(t.strm.next_in-l,t.strm.next_in),t.strstart),t.strstart+=l,t.insert+=l>t.w_size-t.insert?t.w_size-t.insert:l),t.block_start=t.strstart),t.high_water<t.strstart&&(t.high_water=t.strstart),h?wa:n!==fi&&n!==Jn&&t.strm.avail_in===0&&t.strstart===t.block_start?ba:(a=t.window_size-t.strstart,t.strm.avail_in>a&&t.block_start>=t.w_size&&(t.block_start-=t.w_size,t.strstart-=t.w_size,t.window.set(t.window.subarray(t.w_size,t.w_size+t.strstart),0),t.matches<2&&t.matches++,a+=t.w_size,t.insert>t.strstart&&(t.insert=t.strstart)),a>t.strm.avail_in&&(a=t.strm.avail_in),a&&(oh(t.strm,t.window,t.strstart,a),t.strstart+=a,t.insert+=a>t.w_size-t.insert?t.w_size-t.insert:a),t.high_water<t.strstart&&(t.high_water=t.strstart),a=t.bi_valid+42>>3,a=t.pending_buf_size-a>65535?65535:t.pending_buf_size-a,e=a>t.w_size?t.w_size:a,i=t.strstart-t.block_start,(i>=e||(i||n===Jn)&&n!==fi&&t.strm.avail_in===0&&i<=a)&&(r=i>a?a:i,h=n===Jn&&t.strm.avail_in===0&&r===i?1:0,th(t,t.block_start,r,h),t.block_start+=r,Un(t.strm)),h?Gi:Ln)},Hl=(t,n)=>{let e,r;for(;;){if(t.lookahead<xr){if(ga(t),t.lookahead<xr&&n===fi)return Ln;if(t.lookahead===0)break}if(e=0,t.lookahead>=fe&&(t.ins_h=ui(t,t.ins_h,t.window[t.strstart+fe-1]),e=t.prev[t.strstart&t.w_mask]=t.head[t.ins_h],t.head[t.ins_h]=t.strstart),e!==0&&t.strstart-e<=t.w_size-xr&&(t.match_length=qf(t,e)),t.match_length>=fe)if(r=ci(t,t.strstart-t.match_start,t.match_length-fe),t.lookahead-=t.match_length,t.match_length<=t.max_lazy_match&&t.lookahead>=fe){t.match_length--;do t.strstart++,t.ins_h=ui(t,t.ins_h,t.window[t.strstart+fe-1]),e=t.prev[t.strstart&t.w_mask]=t.head[t.ins_h],t.head[t.ins_h]=t.strstart;while(--t.match_length!==0);t.strstart++}else t.strstart+=t.match_length,t.match_length=0,t.ins_h=t.window[t.strstart],t.ins_h=ui(t,t.ins_h,t.window[t.strstart+1]);else r=ci(t,0,t.window[t.strstart]),t.lookahead--,t.strstart++;if(r&&(qn(t,!1),t.strm.avail_out===0))return Ln}return t.insert=t.strstart<fe-1?t.strstart:fe-1,n===Jn?(qn(t,!0),t.strm.avail_out===0?Gi:wa):t.sym_next&&(qn(t,!1),t.strm.avail_out===0)?Ln:ba},fa=(t,n)=>{let e,r,i;for(;;){if(t.lookahead<xr){if(ga(t),t.lookahead<xr&&n===fi)return Ln;if(t.lookahead===0)break}if(e=0,t.lookahead>=fe&&(t.ins_h=ui(t,t.ins_h,t.window[t.strstart+fe-1]),e=t.prev[t.strstart&t.w_mask]=t.head[t.ins_h],t.head[t.ins_h]=t.strstart),t.prev_length=t.match_length,t.prev_match=t.match_start,t.match_length=fe-1,e!==0&&t.prev_length<t.max_lazy_match&&t.strstart-e<=t.w_size-xr&&(t.match_length=qf(t,e),t.match_length<=5&&(t.strategy===j0||t.match_length===fe&&t.strstart-t.match_start>4096)&&(t.match_length=fe-1)),t.prev_length>=fe&&t.match_length<=t.prev_length){i=t.strstart+t.lookahead-fe,r=ci(t,t.strstart-1-t.prev_match,t.prev_length-fe),t.lookahead-=t.prev_length-1,t.prev_length-=2;do++t.strstart<=i&&(t.ins_h=ui(t,t.ins_h,t.window[t.strstart+fe-1]),e=t.prev[t.strstart&t.w_mask]=t.head[t.ins_h],t.head[t.ins_h]=t.strstart);while(--t.prev_length!==0);if(t.match_available=0,t.match_length=fe-1,t.strstart++,r&&(qn(t,!1),t.strm.avail_out===0))return Ln}else if(t.match_available){if(r=ci(t,0,t.window[t.strstart-1]),r&&qn(t,!1),t.strstart++,t.lookahead--,t.strm.avail_out===0)return Ln}else t.match_available=1,t.strstart++,t.lookahead--}return t.match_available&&(r=ci(t,0,t.window[t.strstart-1]),t.match_available=0),t.insert=t.strstart<fe-1?t.strstart:fe-1,n===Jn?(qn(t,!0),t.strm.avail_out===0?Gi:wa):t.sym_next&&(qn(t,!1),t.strm.avail_out===0)?Ln:ba},n2=(t,n)=>{let e,r,i,a,h=t.window;for(;;){if(t.lookahead<=hi){if(ga(t),t.lookahead<=hi&&n===fi)return Ln;if(t.lookahead===0)break}if(t.match_length=0,t.lookahead>=fe&&t.strstart>0&&(i=t.strstart-1,r=h[i],r===h[++i]&&r===h[++i]&&r===h[++i])){a=t.strstart+hi;do;while(r===h[++i]&&r===h[++i]&&r===h[++i]&&r===h[++i]&&r===h[++i]&&r===h[++i]&&r===h[++i]&&r===h[++i]&&i<a);t.match_length=hi-(a-i),t.match_length>t.lookahead&&(t.match_length=t.lookahead)}if(t.match_length>=fe?(e=ci(t,1,t.match_length-fe),t.lookahead-=t.match_length,t.strstart+=t.match_length,t.match_length=0):(e=ci(t,0,t.window[t.strstart]),t.lookahead--,t.strstart++),e&&(qn(t,!1),t.strm.avail_out===0))return Ln}return t.insert=0,n===Jn?(qn(t,!0),t.strm.avail_out===0?Gi:wa):t.sym_next&&(qn(t,!1),t.strm.avail_out===0)?Ln:ba},r2=(t,n)=>{let e;for(;;){if(t.lookahead===0&&(ga(t),t.lookahead===0)){if(n===fi)return Ln;break}if(t.match_length=0,e=ci(t,0,t.window[t.strstart]),t.lookahead--,t.strstart++,e&&(qn(t,!1),t.strm.avail_out===0))return Ln}return t.insert=0,n===Jn?(qn(t,!0),t.strm.avail_out===0?Gi:wa):t.sym_next&&(qn(t,!1),t.strm.avail_out===0)?Ln:ba};function wr(t,n,e,r,i){this.good_length=t,this.max_lazy=n,this.nice_length=e,this.max_chain=r,this.func=i}var fo=[new wr(0,0,0,0,Hf),new wr(4,4,8,4,Hl),new wr(4,5,16,8,Hl),new wr(4,6,32,32,Hl),new wr(4,4,16,16,fa),new wr(8,16,32,32,fa),new wr(8,16,128,128,fa),new wr(8,32,128,256,fa),new wr(32,128,258,1024,fa),new wr(32,258,258,4096,fa)],i2=t=>{t.window_size=2*t.w_size,li(t.head),t.max_lazy_match=fo[t.level].max_lazy,t.good_match=fo[t.level].good_length,t.nice_match=fo[t.level].nice_length,t.max_chain_length=fo[t.level].max_chain,t.strstart=0,t.block_start=0,t.lookahead=0,t.insert=0,t.match_length=t.prev_length=fe-1,t.match_available=0,t.ins_h=0};function a2(){this.strm=null,this.status=0,this.pending_buf=null,this.pending_buf_size=0,this.pending_out=0,this.pending=0,this.wrap=0,this.gzhead=null,this.gzindex=0,this.method=Ns,this.last_flush=-1,this.w_size=0,this.w_bits=0,this.w_mask=0,this.window=null,this.window_size=0,this.prev=null,this.head=null,this.ins_h=0,this.hash_size=0,this.hash_bits=0,this.hash_mask=0,this.hash_shift=0,this.block_start=0,this.match_length=0,this.prev_match=0,this.match_available=0,this.strstart=0,this.match_start=0,this.lookahead=0,this.prev_length=0,this.max_chain_length=0,this.max_lazy_match=0,this.level=0,this.strategy=0,this.good_match=0,this.nice_match=0,this.dyn_ltree=new Uint16Array(K0*2),this.dyn_dtree=new Uint16Array((2*$0+1)*2),this.bl_tree=new Uint16Array((2*Y0+1)*2),li(this.dyn_ltree),li(this.dyn_dtree),li(this.bl_tree),this.l_desc=null,this.d_desc=null,this.bl_desc=null,this.bl_count=new Uint16Array(X0+1),this.heap=new Uint16Array(2*eh+1),li(this.heap),this.heap_len=0,this.heap_max=0,this.depth=new Uint16Array(2*eh+1),li(this.depth),this.sym_buf=0,this.lit_bufsize=0,this.sym_next=0,this.sym_end=0,this.opt_len=0,this.static_len=0,this.matches=0,this.insert=0,this.bi_buf=0,this.bi_valid=0}var Lo=t=>{if(!t)return 1;let n=t.state;return!n||n.strm!==t||n.status!==pa&&n.status!==fh&&n.status!==nh&&n.status!==rh&&n.status!==ih&&n.status!==ah&&n.status!==qi&&n.status!==co?1:0},Wf=t=>{if(Lo(t))return Hi(t,_r);t.total_in=t.total_out=0,t.data_type=q0;let n=t.state;return n.pending=0,n.pending_out=0,n.wrap<0&&(n.wrap=-n.wrap),n.status=n.wrap===2?fh:n.wrap?pa:qi,t.adler=n.wrap===2?0:1,n.last_flush=-2,E0(n),pn},Gf=t=>{let n=Wf(t);return n===pn&&i2(t.state),n},o2=(t,n)=>Lo(t)||t.state.wrap!==2?_r:(t.state.gzhead=n,pn),Vf=(t,n,e,r,i,a)=>{if(!t)return _r;let h=1;if(n===R0&&(n=6),r<0?(h=0,r=-r):r>15&&(h=2,r-=16),i<1||i>H0||e!==Ns||r<8||r>15||n<0||n>9||a<0||a>z0||r===8&&h!==1)return Hi(t,_r);r===8&&(r=9);let l=new a2;return t.state=l,l.strm=t,l.status=pa,l.wrap=h,l.gzhead=null,l.w_bits=r,l.w_size=1<<l.w_bits,l.w_mask=l.w_size-1,l.hash_bits=i+7,l.hash_size=1<<l.hash_bits,l.hash_mask=l.hash_size-1,l.hash_shift=~~((l.hash_bits+fe-1)/fe),l.window=new Uint8Array(l.w_size*2),l.head=new Uint16Array(l.hash_size),l.prev=new Uint16Array(l.w_size),l.lit_bufsize=1<<i+6,l.pending_buf_size=l.lit_bufsize*4,l.pending_buf=new Uint8Array(l.pending_buf_size),l.sym_buf=l.lit_bufsize,l.sym_end=(l.lit_bufsize-1)*3,l.level=n,l.strategy=a,l.method=e,Gf(t)},s2=(t,n)=>Vf(t,n,Ns,W0,G0,U0),l2=(t,n)=>{if(Lo(t)||n>Zc||n<0)return t?Hi(t,_r):_r;let e=t.state;if(!t.output||t.avail_in!==0&&!t.input||e.status===co&&n!==Jn)return Hi(t,t.avail_out===0?ql:_r);let r=e.last_flush;if(e.last_flush=n,e.pending!==0){if(Un(t),t.avail_out===0)return e.last_flush=-1,pn}else if(t.avail_in===0&&Yc(n)<=Yc(r)&&n!==Jn)return Hi(t,ql);if(e.status===co&&t.avail_in!==0)return Hi(t,ql);if(e.status===pa&&e.wrap===0&&(e.status=qi),e.status===pa){let i=Ns+(e.w_bits-8<<4)<<8,a=-1;if(e.strategy>=gs||e.level<2?a=0:e.level<6?a=1:e.level===6?a=2:a=3,i|=a<<6,e.strstart!==0&&(i|=J0),i+=31-i%31,ho(e,i),e.strstart!==0&&(ho(e,t.adler>>>16),ho(e,t.adler&65535)),t.adler=1,e.status=qi,Un(t),e.pending!==0)return e.last_flush=-1,pn}if(e.status===fh){if(t.adler=0,be(e,31),be(e,139),be(e,8),e.gzhead)be(e,(e.gzhead.text?1:0)+(e.gzhead.hcrc?2:0)+(e.gzhead.extra?4:0)+(e.gzhead.name?8:0)+(e.gzhead.comment?16:0)),be(e,e.gzhead.time&255),be(e,e.gzhead.time>>8&255),be(e,e.gzhead.time>>16&255),be(e,e.gzhead.time>>24&255),be(e,e.level===9?2:e.strategy>=gs||e.level<2?4:0),be(e,e.gzhead.os&255),e.gzhead.extra&&e.gzhead.extra.length&&(be(e,e.gzhead.extra.length&255),be(e,e.gzhead.extra.length>>8&255)),e.gzhead.hcrc&&(t.adler=sn(t.adler,e.pending_buf,e.pending,0)),e.gzindex=0,e.status=nh;else if(be(e,0),be(e,0),be(e,0),be(e,0),be(e,0),be(e,e.level===9?2:e.strategy>=gs||e.level<2?4:0),be(e,Q0),e.status=qi,Un(t),e.pending!==0)return e.last_flush=-1,pn}if(e.status===nh){if(e.gzhead.extra){let i=e.pending,a=(e.gzhead.extra.length&65535)-e.gzindex;for(;e.pending+a>e.pending_buf_size;){let l=e.pending_buf_size-e.pending;if(e.pending_buf.set(e.gzhead.extra.subarray(e.gzindex,e.gzindex+l),e.pending),e.pending=e.pending_buf_size,e.gzhead.hcrc&&e.pending>i&&(t.adler=sn(t.adler,e.pending_buf,e.pending-i,i)),e.gzindex+=l,Un(t),e.pending!==0)return e.last_flush=-1,pn;i=0,a-=l}let h=new Uint8Array(e.gzhead.extra);e.pending_buf.set(h.subarray(e.gzindex,e.gzindex+a),e.pending),e.pending+=a,e.gzhead.hcrc&&e.pending>i&&(t.adler=sn(t.adler,e.pending_buf,e.pending-i,i)),e.gzindex=0}e.status=rh}if(e.status===rh){if(e.gzhead.name){let i=e.pending,a;do{if(e.pending===e.pending_buf_size){if(e.gzhead.hcrc&&e.pending>i&&(t.adler=sn(t.adler,e.pending_buf,e.pending-i,i)),Un(t),e.pending!==0)return e.last_flush=-1,pn;i=0}e.gzindex<e.gzhead.name.length?a=e.gzhead.name.charCodeAt(e.gzindex++)&255:a=0,be(e,a)}while(a!==0);e.gzhead.hcrc&&e.pending>i&&(t.adler=sn(t.adler,e.pending_buf,e.pending-i,i)),e.gzindex=0}e.status=ih}if(e.status===ih){if(e.gzhead.comment){let i=e.pending,a;do{if(e.pending===e.pending_buf_size){if(e.gzhead.hcrc&&e.pending>i&&(t.adler=sn(t.adler,e.pending_buf,e.pending-i,i)),Un(t),e.pending!==0)return e.last_flush=-1,pn;i=0}e.gzindex<e.gzhead.comment.length?a=e.gzhead.comment.charCodeAt(e.gzindex++)&255:a=0,be(e,a)}while(a!==0);e.gzhead.hcrc&&e.pending>i&&(t.adler=sn(t.adler,e.pending_buf,e.pending-i,i))}e.status=ah}if(e.status===ah){if(e.gzhead.hcrc){if(e.pending+2>e.pending_buf_size&&(Un(t),e.pending!==0))return e.last_flush=-1,pn;be(e,t.adler&255),be(e,t.adler>>8&255),t.adler=0}if(e.status=qi,Un(t),e.pending!==0)return e.last_flush=-1,pn}if(t.avail_in!==0||e.lookahead!==0||n!==fi&&e.status!==co){let i=e.level===0?Hf(e,n):e.strategy===gs?r2(e,n):e.strategy===B0?n2(e,n):fo[e.level].func(e,n);if((i===Gi||i===wa)&&(e.status=co),i===Ln||i===Gi)return t.avail_out===0&&(e.last_flush=-1),pn;if(i===ba&&(n===T0?O0(e):n!==Zc&&(th(e,0,0,!1),n===D0&&(li(e.head),e.lookahead===0&&(e.strstart=0,e.block_start=0,e.insert=0))),Un(t),t.avail_out===0))return e.last_flush=-1,pn}return n!==Jn?pn:e.wrap<=0?$c:(e.wrap===2?(be(e,t.adler&255),be(e,t.adler>>8&255),be(e,t.adler>>16&255),be(e,t.adler>>24&255),be(e,t.total_in&255),be(e,t.total_in>>8&255),be(e,t.total_in>>16&255),be(e,t.total_in>>24&255)):(ho(e,t.adler>>>16),ho(e,t.adler&65535)),Un(t),e.wrap>0&&(e.wrap=-e.wrap),e.pending!==0?pn:$c)},h2=t=>{if(Lo(t))return _r;let n=t.state.status;return t.state=null,n===qi?Hi(t,M0):pn},c2=(t,n)=>{let e=n.length;if(Lo(t))return _r;let r=t.state,i=r.wrap;if(i===2||i===1&&r.status!==pa||r.lookahead)return _r;if(i===1&&(t.adler=yo(t.adler,n,e,0)),r.wrap=0,e>=r.w_size){i===0&&(li(r.head),r.strstart=0,r.block_start=0,r.insert=0);let f=new Uint8Array(r.w_size);f.set(n.subarray(e-r.w_size,e),0),n=f,e=r.w_size}let a=t.avail_in,h=t.next_in,l=t.input;for(t.avail_in=e,t.next_in=0,t.input=n,ga(r);r.lookahead>=fe;){let f=r.strstart,u=r.lookahead-(fe-1);do r.ins_h=ui(r,r.ins_h,r.window[f+fe-1]),r.prev[f&r.w_mask]=r.head[r.ins_h],r.head[r.ins_h]=f,f++;while(--u);r.strstart=f,r.lookahead=fe-1,ga(r)}return r.strstart+=r.lookahead,r.block_start=r.strstart,r.insert=r.lookahead,r.lookahead=0,r.match_length=r.prev_length=fe-1,r.match_available=0,t.next_in=h,t.input=l,t.avail_in=a,r.wrap=i,pn},f2=s2,u2=Vf,d2=Gf,p2=Wf,g2=o2,m2=l2,v2=h2,b2=c2,w2="pako deflate (from Nodeca project)",po={deflateInit:f2,deflateInit2:u2,deflateReset:d2,deflateResetKeep:p2,deflateSetHeader:g2,deflate:m2,deflateEnd:v2,deflateSetDictionary:b2,deflateInfo:w2},y2=(t,n)=>Object.prototype.hasOwnProperty.call(t,n),_2=function(t){let n=Array.prototype.slice.call(arguments,1);for(;n.length;){let e=n.shift();if(e){if(typeof e!="object")throw new TypeError(e+"must be non-object");for(let r in e)y2(e,r)&&(t[r]=e[r])}}return t},x2=t=>{let n=0;for(let r=0,i=t.length;r<i;r++)n+=t[r].length;let e=new Uint8Array(n);for(let r=0,i=0,a=t.length;r<a;r++){let h=t[r];e.set(h,i),i+=h.length}return e},Ls={assign:_2,flattenChunks:x2},Zf=!0;try{String.fromCharCode.apply(null,new Uint8Array(1))}catch{Zf=!1}var _o=new Uint8Array(256);for(let t=0;t<256;t++)_o[t]=t>=252?6:t>=248?5:t>=240?4:t>=224?3:t>=192?2:1;_o[254]=_o[254]=1;var A2=t=>{if(typeof TextEncoder=="function"&&TextEncoder.prototype.encode)return new TextEncoder().encode(t);let n,e,r,i,a,h=t.length,l=0;for(i=0;i<h;i++)e=t.charCodeAt(i),(e&64512)===55296&&i+1<h&&(r=t.charCodeAt(i+1),(r&64512)===56320&&(e=65536+(e-55296<<10)+(r-56320),i++)),l+=e<128?1:e<2048?2:e<65536?3:4;for(n=new Uint8Array(l),a=0,i=0;a<l;i++)e=t.charCodeAt(i),(e&64512)===55296&&i+1<h&&(r=t.charCodeAt(i+1),(r&64512)===56320&&(e=65536+(e-55296<<10)+(r-56320),i++)),e<128?n[a++]=e:e<2048?(n[a++]=192|e>>>6,n[a++]=128|e&63):e<65536?(n[a++]=224|e>>>12,n[a++]=128|e>>>6&63,n[a++]=128|e&63):(n[a++]=240|e>>>18,n[a++]=128|e>>>12&63,n[a++]=128|e>>>6&63,n[a++]=128|e&63);return n},N2=(t,n)=>{if(n<65534&&t.subarray&&Zf)return String.fromCharCode.apply(null,t.length===n?t:t.subarray(0,n));let e="";for(let r=0;r<n;r++)e+=String.fromCharCode(t[r]);return e},L2=(t,n)=>{let e=n||t.length;if(typeof TextDecoder=="function"&&TextDecoder.prototype.decode)return new TextDecoder().decode(t.subarray(0,n));let r,i,a=new Array(e*2);for(i=0,r=0;r<e;){let h=t[r++];if(h<128){a[i++]=h;continue}let l=_o[h];if(l>4){a[i++]=65533,r+=l-1;continue}for(h&=l===2?31:l===3?15:7;l>1&&r<e;)h=h<<6|t[r++]&63,l--;if(l>1){a[i++]=65533;continue}h<65536?a[i++]=h:(h-=65536,a[i++]=55296|h>>10&1023,a[i++]=56320|h&1023)}return N2(a,i)},S2=(t,n)=>{n=n||t.length,n>t.length&&(n=t.length);let e=n-1;for(;e>=0&&(t[e]&192)===128;)e--;return e<0||e===0?n:e+_o[t[e]]>n?e:n},xo={string2buf:A2,buf2string:L2,utf8border:S2};function k2(){this.input=null,this.next_in=0,this.avail_in=0,this.total_in=0,this.output=null,this.next_out=0,this.avail_out=0,this.total_out=0,this.msg="",this.state=null,this.data_type=2,this.adler=0}var $f=k2,Yf=Object.prototype.toString,{Z_NO_FLUSH:P2,Z_SYNC_FLUSH:I2,Z_FULL_FLUSH:F2,Z_FINISH:E2,Z_OK:xs,Z_STREAM_END:C2,Z_DEFAULT_COMPRESSION:O2,Z_DEFAULT_STRATEGY:T2,Z_DEFLATED:D2}=va;function So(t){this.options=Ls.assign({level:O2,method:D2,chunkSize:16384,windowBits:15,memLevel:8,strategy:T2},t||{});let n=this.options;n.raw&&n.windowBits>0?n.windowBits=-n.windowBits:n.gzip&&n.windowBits>0&&n.windowBits<16&&(n.windowBits+=16),this.err=0,this.msg="",this.ended=!1,this.chunks=[],this.strm=new $f,this.strm.avail_out=0;let e=po.deflateInit2(this.strm,n.level,n.method,n.windowBits,n.memLevel,n.strategy);if(e!==xs)throw new Error(Wi[e]);if(n.header&&po.deflateSetHeader(this.strm,n.header),n.dictionary){let r;if(typeof n.dictionary=="string"?r=xo.string2buf(n.dictionary):Yf.call(n.dictionary)==="[object ArrayBuffer]"?r=new Uint8Array(n.dictionary):r=n.dictionary,e=po.deflateSetDictionary(this.strm,r),e!==xs)throw new Error(Wi[e]);this._dict_set=!0}}So.prototype.push=function(t,n){let e=this.strm,r=this.options.chunkSize,i,a;if(this.ended)return!1;for(n===~~n?a=n:a=n===!0?E2:P2,typeof t=="string"?e.input=xo.string2buf(t):Yf.call(t)==="[object ArrayBuffer]"?e.input=new Uint8Array(t):e.input=t,e.next_in=0,e.avail_in=e.input.length;;){if(e.avail_out===0&&(e.output=new Uint8Array(r),e.next_out=0,e.avail_out=r),(a===I2||a===F2)&&e.avail_out<=6){this.onData(e.output.subarray(0,e.next_out)),e.avail_out=0;continue}if(i=po.deflate(e,a),i===C2)return e.next_out>0&&this.onData(e.output.subarray(0,e.next_out)),i=po.deflateEnd(this.strm),this.onEnd(i),this.ended=!0,i===xs;if(e.avail_out===0){this.onData(e.output);continue}if(a>0&&e.next_out>0){this.onData(e.output.subarray(0,e.next_out)),e.avail_out=0;continue}if(e.avail_in===0)break}return!0};So.prototype.onData=function(t){this.chunks.push(t)};So.prototype.onEnd=function(t){t===xs&&(this.result=Ls.flattenChunks(this.chunks)),this.chunks=[],this.err=t,this.msg=this.strm.msg};function uh(t,n){let e=new So(n);if(e.push(t,!0),e.err)throw e.msg||Wi[e.err];return e.result}function M2(t,n){return n=n||{},n.raw=!0,uh(t,n)}function R2(t,n){return n=n||{},n.gzip=!0,uh(t,n)}var j2=So,B2=uh,z2=M2,U2=R2,q2=va,H2={Deflate:j2,deflate:B2,deflateRaw:z2,gzip:U2,constants:q2},ms=16209,W2=16191,G2=function(n,e){let r,i,a,h,l,f,u,g,w,A,p,I,P,T,L,W,q,B,rt,vt,pt,Y,j,Q,S=n.state;r=n.next_in,j=n.input,i=r+(n.avail_in-5),a=n.next_out,Q=n.output,h=a-(e-n.avail_out),l=a+(n.avail_out-257),f=S.dmax,u=S.wsize,g=S.whave,w=S.wnext,A=S.window,p=S.hold,I=S.bits,P=S.lencode,T=S.distcode,L=(1<<S.lenbits)-1,W=(1<<S.distbits)-1;t:do{I<15&&(p+=j[r++]<<I,I+=8,p+=j[r++]<<I,I+=8),q=P[p&L];e:for(;;){if(B=q>>>24,p>>>=B,I-=B,B=q>>>16&255,B===0)Q[a++]=q&65535;else if(B&16){rt=q&65535,B&=15,B&&(I<B&&(p+=j[r++]<<I,I+=8),rt+=p&(1<<B)-1,p>>>=B,I-=B),I<15&&(p+=j[r++]<<I,I+=8,p+=j[r++]<<I,I+=8),q=T[p&W];n:for(;;){if(B=q>>>24,p>>>=B,I-=B,B=q>>>16&255,B&16){if(vt=q&65535,B&=15,I<B&&(p+=j[r++]<<I,I+=8,I<B&&(p+=j[r++]<<I,I+=8)),vt+=p&(1<<B)-1,vt>f){n.msg="invalid distance too far back",S.mode=ms;break t}if(p>>>=B,I-=B,B=a-h,vt>B){if(B=vt-B,B>g&&S.sane){n.msg="invalid distance too far back",S.mode=ms;break t}if(pt=0,Y=A,w===0){if(pt+=u-B,B<rt){rt-=B;do Q[a++]=A[pt++];while(--B);pt=a-vt,Y=Q}}else if(w<B){if(pt+=u+w-B,B-=w,B<rt){rt-=B;do Q[a++]=A[pt++];while(--B);if(pt=0,w<rt){B=w,rt-=B;do Q[a++]=A[pt++];while(--B);pt=a-vt,Y=Q}}}else if(pt+=w-B,B<rt){rt-=B;do Q[a++]=A[pt++];while(--B);pt=a-vt,Y=Q}for(;rt>2;)Q[a++]=Y[pt++],Q[a++]=Y[pt++],Q[a++]=Y[pt++],rt-=3;rt&&(Q[a++]=Y[pt++],rt>1&&(Q[a++]=Y[pt++]))}else{pt=a-vt;do Q[a++]=Q[pt++],Q[a++]=Q[pt++],Q[a++]=Q[pt++],rt-=3;while(rt>2);rt&&(Q[a++]=Q[pt++],rt>1&&(Q[a++]=Q[pt++]))}}else if((B&64)===0){q=T[(q&65535)+(p&(1<<B)-1)];continue n}else{n.msg="invalid distance code",S.mode=ms;break t}break}}else if((B&64)===0){q=P[(q&65535)+(p&(1<<B)-1)];continue e}else if(B&32){S.mode=W2;break t}else{n.msg="invalid literal/length code",S.mode=ms;break t}break}}while(r<i&&a<l);rt=I>>3,r-=rt,I-=rt<<3,p&=(1<<I)-1,n.next_in=r,n.next_out=a,n.avail_in=r<i?5+(i-r):5-(r-i),n.avail_out=a<l?257+(l-a):257-(a-l),S.hold=p,S.bits=I},ua=15,Kc=852,Xc=592,Jc=0,Wl=1,Qc=2,V2=new Uint16Array([3,4,5,6,7,8,9,10,11,13,15,17,19,23,27,31,35,43,51,59,67,83,99,115,131,163,195,227,258,0,0]),Z2=new Uint8Array([16,16,16,16,16,16,16,16,17,17,17,17,18,18,18,18,19,19,19,19,20,20,20,20,21,21,21,21,16,72,78]),$2=new Uint16Array([1,2,3,4,5,7,9,13,17,25,33,49,65,97,129,193,257,385,513,769,1025,1537,2049,3073,4097,6145,8193,12289,16385,24577,0,0]),Y2=new Uint8Array([16,16,16,16,17,17,18,18,19,19,20,20,21,21,22,22,23,23,24,24,25,25,26,26,27,27,28,28,29,29,64,64]),K2=(t,n,e,r,i,a,h,l)=>{let f=l.bits,u=0,g=0,w=0,A=0,p=0,I=0,P=0,T=0,L=0,W=0,q,B,rt,vt,pt,Y=null,j,Q=new Uint16Array(ua+1),S=new Uint16Array(ua+1),C=null,H,U,it;for(u=0;u<=ua;u++)Q[u]=0;for(g=0;g<r;g++)Q[n[e+g]]++;for(p=f,A=ua;A>=1&&Q[A]===0;A--);if(p>A&&(p=A),A===0)return i[a++]=1<<24|64<<16|0,i[a++]=1<<24|64<<16|0,l.bits=1,0;for(w=1;w<A&&Q[w]===0;w++);for(p<w&&(p=w),T=1,u=1;u<=ua;u++)if(T<<=1,T-=Q[u],T<0)return-1;if(T>0&&(t===Jc||A!==1))return-1;for(S[1]=0,u=1;u<ua;u++)S[u+1]=S[u]+Q[u];for(g=0;g<r;g++)n[e+g]!==0&&(h[S[n[e+g]]++]=g);if(t===Jc?(Y=C=h,j=20):t===Wl?(Y=V2,C=Z2,j=257):(Y=$2,C=Y2,j=0),W=0,g=0,u=w,pt=a,I=p,P=0,rt=-1,L=1<<p,vt=L-1,t===Wl&&L>Kc||t===Qc&&L>Xc)return 1;for(;;){H=u-P,h[g]+1<j?(U=0,it=h[g]):h[g]>=j?(U=C[h[g]-j],it=Y[h[g]-j]):(U=96,it=0),q=1<<u-P,B=1<<I,w=B;do B-=q,i[pt+(W>>P)+B]=H<<24|U<<16|it|0;while(B!==0);for(q=1<<u-1;W&q;)q>>=1;if(q!==0?(W&=q-1,W+=q):W=0,g++,--Q[u]===0){if(u===A)break;u=n[e+h[g]]}if(u>p&&(W&vt)!==rt){for(P===0&&(P=p),pt+=w,I=u-P,T=1<<I;I+P<A&&(T-=Q[I+P],!(T<=0));)I++,T<<=1;if(L+=1<<I,t===Wl&&L>Kc||t===Qc&&L>Xc)return 1;rt=W&vt,i[rt]=p<<24|I<<16|pt-a|0}}return W!==0&&(i[pt+W]=u-P<<24|64<<16|0),l.bits=p,0},go=K2,X2=0,Kf=1,Xf=2,{Z_FINISH:tf,Z_BLOCK:J2,Z_TREES:vs,Z_OK:Vi,Z_STREAM_END:Q2,Z_NEED_DICT:t5,Z_STREAM_ERROR:Qn,Z_DATA_ERROR:Jf,Z_MEM_ERROR:Qf,Z_BUF_ERROR:e5,Z_DEFLATED:ef}=va,Ss=16180,nf=16181,rf=16182,af=16183,of=16184,sf=16185,lf=16186,hf=16187,cf=16188,ff=16189,As=16190,qr=16191,Gl=16192,uf=16193,Vl=16194,df=16195,pf=16196,gf=16197,mf=16198,bs=16199,ws=16200,vf=16201,bf=16202,wf=16203,yf=16204,_f=16205,Zl=16206,xf=16207,Af=16208,Te=16209,tu=16210,eu=16211,n5=852,r5=592,i5=15,a5=i5,Nf=t=>(t>>>24&255)+(t>>>8&65280)+((t&65280)<<8)+((t&255)<<24);function o5(){this.strm=null,this.mode=0,this.last=!1,this.wrap=0,this.havedict=!1,this.flags=0,this.dmax=0,this.check=0,this.total=0,this.head=null,this.wbits=0,this.wsize=0,this.whave=0,this.wnext=0,this.window=null,this.hold=0,this.bits=0,this.length=0,this.offset=0,this.extra=0,this.lencode=null,this.distcode=null,this.lenbits=0,this.distbits=0,this.ncode=0,this.nlen=0,this.ndist=0,this.have=0,this.next=null,this.lens=new Uint16Array(320),this.work=new Uint16Array(288),this.lendyn=null,this.distdyn=null,this.sane=0,this.back=0,this.was=0}var Zi=t=>{if(!t)return 1;let n=t.state;return!n||n.strm!==t||n.mode<Ss||n.mode>eu?1:0},nu=t=>{if(Zi(t))return Qn;let n=t.state;return t.total_in=t.total_out=n.total=0,t.msg="",n.wrap&&(t.adler=n.wrap&1),n.mode=Ss,n.last=0,n.havedict=0,n.flags=-1,n.dmax=32768,n.head=null,n.hold=0,n.bits=0,n.lencode=n.lendyn=new Int32Array(n5),n.distcode=n.distdyn=new Int32Array(r5),n.sane=1,n.back=-1,Vi},ru=t=>{if(Zi(t))return Qn;let n=t.state;return n.wsize=0,n.whave=0,n.wnext=0,nu(t)},iu=(t,n)=>{let e;if(Zi(t))return Qn;let r=t.state;return n<0?(e=0,n=-n):(e=(n>>4)+5,n<48&&(n&=15)),n&&(n<8||n>15)?Qn:(r.window!==null&&r.wbits!==n&&(r.window=null),r.wrap=e,r.wbits=n,ru(t))},au=(t,n)=>{if(!t)return Qn;let e=new o5;t.state=e,e.strm=t,e.window=null,e.mode=Ss;let r=iu(t,n);return r!==Vi&&(t.state=null),r},s5=t=>au(t,a5),Lf=!0,$l,Yl,l5=t=>{if(Lf){$l=new Int32Array(512),Yl=new Int32Array(32);let n=0;for(;n<144;)t.lens[n++]=8;for(;n<256;)t.lens[n++]=9;for(;n<280;)t.lens[n++]=7;for(;n<288;)t.lens[n++]=8;for(go(Kf,t.lens,0,288,$l,0,t.work,{bits:9}),n=0;n<32;)t.lens[n++]=5;go(Xf,t.lens,0,32,Yl,0,t.work,{bits:5}),Lf=!1}t.lencode=$l,t.lenbits=9,t.distcode=Yl,t.distbits=5},ou=(t,n,e,r)=>{let i,a=t.state;return a.window===null&&(a.wsize=1<<a.wbits,a.wnext=0,a.whave=0,a.window=new Uint8Array(a.wsize)),r>=a.wsize?(a.window.set(n.subarray(e-a.wsize,e),0),a.wnext=0,a.whave=a.wsize):(i=a.wsize-a.wnext,i>r&&(i=r),a.window.set(n.subarray(e-r,e-r+i),a.wnext),r-=i,r?(a.window.set(n.subarray(e-r,e),0),a.wnext=r,a.whave=a.wsize):(a.wnext+=i,a.wnext===a.wsize&&(a.wnext=0),a.whave<a.wsize&&(a.whave+=i))),0},h5=(t,n)=>{let e,r,i,a,h,l,f,u,g,w,A,p,I,P,T=0,L,W,q,B,rt,vt,pt,Y,j=new Uint8Array(4),Q,S,C=new Uint8Array([16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15]);if(Zi(t)||!t.output||!t.input&&t.avail_in!==0)return Qn;e=t.state,e.mode===qr&&(e.mode=Gl),h=t.next_out,i=t.output,f=t.avail_out,a=t.next_in,r=t.input,l=t.avail_in,u=e.hold,g=e.bits,w=l,A=f,Y=Vi;t:for(;;)switch(e.mode){case Ss:if(e.wrap===0){e.mode=Gl;break}for(;g<16;){if(l===0)break t;l--,u+=r[a++]<<g,g+=8}if(e.wrap&2&&u===35615){e.wbits===0&&(e.wbits=15),e.check=0,j[0]=u&255,j[1]=u>>>8&255,e.check=sn(e.check,j,2,0),u=0,g=0,e.mode=nf;break}if(e.head&&(e.head.done=!1),!(e.wrap&1)||(((u&255)<<8)+(u>>8))%31){t.msg="incorrect header check",e.mode=Te;break}if((u&15)!==ef){t.msg="unknown compression method",e.mode=Te;break}if(u>>>=4,g-=4,pt=(u&15)+8,e.wbits===0&&(e.wbits=pt),pt>15||pt>e.wbits){t.msg="invalid window size",e.mode=Te;break}e.dmax=1<<e.wbits,e.flags=0,t.adler=e.check=1,e.mode=u&512?ff:qr,u=0,g=0;break;case nf:for(;g<16;){if(l===0)break t;l--,u+=r[a++]<<g,g+=8}if(e.flags=u,(e.flags&255)!==ef){t.msg="unknown compression method",e.mode=Te;break}if(e.flags&57344){t.msg="unknown header flags set",e.mode=Te;break}e.head&&(e.head.text=u>>8&1),e.flags&512&&e.wrap&4&&(j[0]=u&255,j[1]=u>>>8&255,e.check=sn(e.check,j,2,0)),u=0,g=0,e.mode=rf;case rf:for(;g<32;){if(l===0)break t;l--,u+=r[a++]<<g,g+=8}e.head&&(e.head.time=u),e.flags&512&&e.wrap&4&&(j[0]=u&255,j[1]=u>>>8&255,j[2]=u>>>16&255,j[3]=u>>>24&255,e.check=sn(e.check,j,4,0)),u=0,g=0,e.mode=af;case af:for(;g<16;){if(l===0)break t;l--,u+=r[a++]<<g,g+=8}e.head&&(e.head.xflags=u&255,e.head.os=u>>8),e.flags&512&&e.wrap&4&&(j[0]=u&255,j[1]=u>>>8&255,e.check=sn(e.check,j,2,0)),u=0,g=0,e.mode=of;case of:if(e.flags&1024){for(;g<16;){if(l===0)break t;l--,u+=r[a++]<<g,g+=8}e.length=u,e.head&&(e.head.extra_len=u),e.flags&512&&e.wrap&4&&(j[0]=u&255,j[1]=u>>>8&255,e.check=sn(e.check,j,2,0)),u=0,g=0}else e.head&&(e.head.extra=null);e.mode=sf;case sf:if(e.flags&1024&&(p=e.length,p>l&&(p=l),p&&(e.head&&(pt=e.head.extra_len-e.length,e.head.extra||(e.head.extra=new Uint8Array(e.head.extra_len)),e.head.extra.set(r.subarray(a,a+p),pt)),e.flags&512&&e.wrap&4&&(e.check=sn(e.check,r,p,a)),l-=p,a+=p,e.length-=p),e.length))break t;e.length=0,e.mode=lf;case lf:if(e.flags&2048){if(l===0)break t;p=0;do pt=r[a+p++],e.head&&pt&&e.length<65536&&(e.head.name+=String.fromCharCode(pt));while(pt&&p<l);if(e.flags&512&&e.wrap&4&&(e.check=sn(e.check,r,p,a)),l-=p,a+=p,pt)break t}else e.head&&(e.head.name=null);e.length=0,e.mode=hf;case hf:if(e.flags&4096){if(l===0)break t;p=0;do pt=r[a+p++],e.head&&pt&&e.length<65536&&(e.head.comment+=String.fromCharCode(pt));while(pt&&p<l);if(e.flags&512&&e.wrap&4&&(e.check=sn(e.check,r,p,a)),l-=p,a+=p,pt)break t}else e.head&&(e.head.comment=null);e.mode=cf;case cf:if(e.flags&512){for(;g<16;){if(l===0)break t;l--,u+=r[a++]<<g,g+=8}if(e.wrap&4&&u!==(e.check&65535)){t.msg="header crc mismatch",e.mode=Te;break}u=0,g=0}e.head&&(e.head.hcrc=e.flags>>9&1,e.head.done=!0),t.adler=e.check=0,e.mode=qr;break;case ff:for(;g<32;){if(l===0)break t;l--,u+=r[a++]<<g,g+=8}t.adler=e.check=Nf(u),u=0,g=0,e.mode=As;case As:if(e.havedict===0)return t.next_out=h,t.avail_out=f,t.next_in=a,t.avail_in=l,e.hold=u,e.bits=g,t5;t.adler=e.check=1,e.mode=qr;case qr:if(n===J2||n===vs)break t;case Gl:if(e.last){u>>>=g&7,g-=g&7,e.mode=Zl;break}for(;g<3;){if(l===0)break t;l--,u+=r[a++]<<g,g+=8}switch(e.last=u&1,u>>>=1,g-=1,u&3){case 0:e.mode=uf;break;case 1:if(l5(e),e.mode=bs,n===vs){u>>>=2,g-=2;break t}break;case 2:e.mode=pf;break;case 3:t.msg="invalid block type",e.mode=Te}u>>>=2,g-=2;break;case uf:for(u>>>=g&7,g-=g&7;g<32;){if(l===0)break t;l--,u+=r[a++]<<g,g+=8}if((u&65535)!==(u>>>16^65535)){t.msg="invalid stored block lengths",e.mode=Te;break}if(e.length=u&65535,u=0,g=0,e.mode=Vl,n===vs)break t;case Vl:e.mode=df;case df:if(p=e.length,p){if(p>l&&(p=l),p>f&&(p=f),p===0)break t;i.set(r.subarray(a,a+p),h),l-=p,a+=p,f-=p,h+=p,e.length-=p;break}e.mode=qr;break;case pf:for(;g<14;){if(l===0)break t;l--,u+=r[a++]<<g,g+=8}if(e.nlen=(u&31)+257,u>>>=5,g-=5,e.ndist=(u&31)+1,u>>>=5,g-=5,e.ncode=(u&15)+4,u>>>=4,g-=4,e.nlen>286||e.ndist>30){t.msg="too many length or distance symbols",e.mode=Te;break}e.have=0,e.mode=gf;case gf:for(;e.have<e.ncode;){for(;g<3;){if(l===0)break t;l--,u+=r[a++]<<g,g+=8}e.lens[C[e.have++]]=u&7,u>>>=3,g-=3}for(;e.have<19;)e.lens[C[e.have++]]=0;if(e.lencode=e.lendyn,e.lenbits=7,Q={bits:e.lenbits},Y=go(X2,e.lens,0,19,e.lencode,0,e.work,Q),e.lenbits=Q.bits,Y){t.msg="invalid code lengths set",e.mode=Te;break}e.have=0,e.mode=mf;case mf:for(;e.have<e.nlen+e.ndist;){for(;T=e.lencode[u&(1<<e.lenbits)-1],L=T>>>24,W=T>>>16&255,q=T&65535,!(L<=g);){if(l===0)break t;l--,u+=r[a++]<<g,g+=8}if(q<16)u>>>=L,g-=L,e.lens[e.have++]=q;else{if(q===16){for(S=L+2;g<S;){if(l===0)break t;l--,u+=r[a++]<<g,g+=8}if(u>>>=L,g-=L,e.have===0){t.msg="invalid bit length repeat",e.mode=Te;break}pt=e.lens[e.have-1],p=3+(u&3),u>>>=2,g-=2}else if(q===17){for(S=L+3;g<S;){if(l===0)break t;l--,u+=r[a++]<<g,g+=8}u>>>=L,g-=L,pt=0,p=3+(u&7),u>>>=3,g-=3}else{for(S=L+7;g<S;){if(l===0)break t;l--,u+=r[a++]<<g,g+=8}u>>>=L,g-=L,pt=0,p=11+(u&127),u>>>=7,g-=7}if(e.have+p>e.nlen+e.ndist){t.msg="invalid bit length repeat",e.mode=Te;break}for(;p--;)e.lens[e.have++]=pt}}if(e.mode===Te)break;if(e.lens[256]===0){t.msg="invalid code -- missing end-of-block",e.mode=Te;break}if(e.lenbits=9,Q={bits:e.lenbits},Y=go(Kf,e.lens,0,e.nlen,e.lencode,0,e.work,Q),e.lenbits=Q.bits,Y){t.msg="invalid literal/lengths set",e.mode=Te;break}if(e.distbits=6,e.distcode=e.distdyn,Q={bits:e.distbits},Y=go(Xf,e.lens,e.nlen,e.ndist,e.distcode,0,e.work,Q),e.distbits=Q.bits,Y){t.msg="invalid distances set",e.mode=Te;break}if(e.mode=bs,n===vs)break t;case bs:e.mode=ws;case ws:if(l>=6&&f>=258){t.next_out=h,t.avail_out=f,t.next_in=a,t.avail_in=l,e.hold=u,e.bits=g,G2(t,A),h=t.next_out,i=t.output,f=t.avail_out,a=t.next_in,r=t.input,l=t.avail_in,u=e.hold,g=e.bits,e.mode===qr&&(e.back=-1);break}for(e.back=0;T=e.lencode[u&(1<<e.lenbits)-1],L=T>>>24,W=T>>>16&255,q=T&65535,!(L<=g);){if(l===0)break t;l--,u+=r[a++]<<g,g+=8}if(W&&(W&240)===0){for(B=L,rt=W,vt=q;T=e.lencode[vt+((u&(1<<B+rt)-1)>>B)],L=T>>>24,W=T>>>16&255,q=T&65535,!(B+L<=g);){if(l===0)break t;l--,u+=r[a++]<<g,g+=8}u>>>=B,g-=B,e.back+=B}if(u>>>=L,g-=L,e.back+=L,e.length=q,W===0){e.mode=_f;break}if(W&32){e.back=-1,e.mode=qr;break}if(W&64){t.msg="invalid literal/length code",e.mode=Te;break}e.extra=W&15,e.mode=vf;case vf:if(e.extra){for(S=e.extra;g<S;){if(l===0)break t;l--,u+=r[a++]<<g,g+=8}e.length+=u&(1<<e.extra)-1,u>>>=e.extra,g-=e.extra,e.back+=e.extra}e.was=e.length,e.mode=bf;case bf:for(;T=e.distcode[u&(1<<e.distbits)-1],L=T>>>24,W=T>>>16&255,q=T&65535,!(L<=g);){if(l===0)break t;l--,u+=r[a++]<<g,g+=8}if((W&240)===0){for(B=L,rt=W,vt=q;T=e.distcode[vt+((u&(1<<B+rt)-1)>>B)],L=T>>>24,W=T>>>16&255,q=T&65535,!(B+L<=g);){if(l===0)break t;l--,u+=r[a++]<<g,g+=8}u>>>=B,g-=B,e.back+=B}if(u>>>=L,g-=L,e.back+=L,W&64){t.msg="invalid distance code",e.mode=Te;break}e.offset=q,e.extra=W&15,e.mode=wf;case wf:if(e.extra){for(S=e.extra;g<S;){if(l===0)break t;l--,u+=r[a++]<<g,g+=8}e.offset+=u&(1<<e.extra)-1,u>>>=e.extra,g-=e.extra,e.back+=e.extra}if(e.offset>e.dmax){t.msg="invalid distance too far back",e.mode=Te;break}e.mode=yf;case yf:if(f===0)break t;if(p=A-f,e.offset>p){if(p=e.offset-p,p>e.whave&&e.sane){t.msg="invalid distance too far back",e.mode=Te;break}p>e.wnext?(p-=e.wnext,I=e.wsize-p):I=e.wnext-p,p>e.length&&(p=e.length),P=e.window}else P=i,I=h-e.offset,p=e.length;p>f&&(p=f),f-=p,e.length-=p;do i[h++]=P[I++];while(--p);e.length===0&&(e.mode=ws);break;case _f:if(f===0)break t;i[h++]=e.length,f--,e.mode=ws;break;case Zl:if(e.wrap){for(;g<32;){if(l===0)break t;l--,u|=r[a++]<<g,g+=8}if(A-=f,t.total_out+=A,e.total+=A,e.wrap&4&&A&&(t.adler=e.check=e.flags?sn(e.check,i,A,h-A):yo(e.check,i,A,h-A)),A=f,e.wrap&4&&(e.flags?u:Nf(u))!==e.check){t.msg="incorrect data check",e.mode=Te;break}u=0,g=0}e.mode=xf;case xf:if(e.wrap&&e.flags){for(;g<32;){if(l===0)break t;l--,u+=r[a++]<<g,g+=8}if(e.wrap&4&&u!==(e.total&4294967295)){t.msg="incorrect length check",e.mode=Te;break}u=0,g=0}e.mode=Af;case Af:Y=Q2;break t;case Te:Y=Jf;break t;case tu:return Qf;case eu:default:return Qn}return t.next_out=h,t.avail_out=f,t.next_in=a,t.avail_in=l,e.hold=u,e.bits=g,(e.wsize||A!==t.avail_out&&e.mode<Te&&(e.mode<Zl||n!==tf))&&ou(t,t.output,t.next_out,A-t.avail_out),w-=t.avail_in,A-=t.avail_out,t.total_in+=w,t.total_out+=A,e.total+=A,e.wrap&4&&A&&(t.adler=e.check=e.flags?sn(e.check,i,A,t.next_out-A):yo(e.check,i,A,t.next_out-A)),t.data_type=e.bits+(e.last?64:0)+(e.mode===qr?128:0)+(e.mode===bs||e.mode===Vl?256:0),(w===0&&A===0||n===tf)&&Y===Vi&&(Y=e5),Y},c5=t=>{if(Zi(t))return Qn;let n=t.state;return n.window&&(n.window=null),t.state=null,Vi},f5=(t,n)=>{if(Zi(t))return Qn;let e=t.state;return(e.wrap&2)===0?Qn:(e.head=n,n.done=!1,Vi)},u5=(t,n)=>{let e=n.length,r,i,a;return Zi(t)||(r=t.state,r.wrap!==0&&r.mode!==As)?Qn:r.mode===As&&(i=1,i=yo(i,n,e,0),i!==r.check)?Jf:(a=ou(t,n,e,e),a?(r.mode=tu,Qf):(r.havedict=1,Vi))},d5=ru,p5=iu,g5=nu,m5=s5,v5=au,b5=h5,w5=c5,y5=f5,_5=u5,x5="pako inflate (from Nodeca project)",Wr={inflateReset:d5,inflateReset2:p5,inflateResetKeep:g5,inflateInit:m5,inflateInit2:v5,inflate:b5,inflateEnd:w5,inflateGetHeader:y5,inflateSetDictionary:_5,inflateInfo:x5};function A5(){this.text=0,this.time=0,this.xflags=0,this.os=0,this.extra=null,this.extra_len=0,this.name="",this.comment="",this.hcrc=0,this.done=!1}var N5=A5,su=Object.prototype.toString,{Z_NO_FLUSH:L5,Z_FINISH:S5,Z_OK:Ao,Z_STREAM_END:Kl,Z_NEED_DICT:Xl,Z_STREAM_ERROR:k5,Z_DATA_ERROR:Sf,Z_MEM_ERROR:P5}=va;function ko(t){this.options=Ls.assign({chunkSize:1024*64,windowBits:15,to:""},t||{});let n=this.options;n.raw&&n.windowBits>=0&&n.windowBits<16&&(n.windowBits=-n.windowBits,n.windowBits===0&&(n.windowBits=-15)),n.windowBits>=0&&n.windowBits<16&&!(t&&t.windowBits)&&(n.windowBits+=32),n.windowBits>15&&n.windowBits<48&&(n.windowBits&15)===0&&(n.windowBits|=15),this.err=0,this.msg="",this.ended=!1,this.chunks=[],this.strm=new $f,this.strm.avail_out=0;let e=Wr.inflateInit2(this.strm,n.windowBits);if(e!==Ao)throw new Error(Wi[e]);if(this.header=new N5,Wr.inflateGetHeader(this.strm,this.header),n.dictionary&&(typeof n.dictionary=="string"?n.dictionary=xo.string2buf(n.dictionary):su.call(n.dictionary)==="[object ArrayBuffer]"&&(n.dictionary=new Uint8Array(n.dictionary)),n.raw&&(e=Wr.inflateSetDictionary(this.strm,n.dictionary),e!==Ao)))throw new Error(Wi[e])}ko.prototype.push=function(t,n){let e=this.strm,r=this.options.chunkSize,i=this.options.dictionary,a,h,l;if(this.ended)return!1;for(n===~~n?h=n:h=n===!0?S5:L5,su.call(t)==="[object ArrayBuffer]"?e.input=new Uint8Array(t):e.input=t,e.next_in=0,e.avail_in=e.input.length;;){for(e.avail_out===0&&(e.output=new Uint8Array(r),e.next_out=0,e.avail_out=r),a=Wr.inflate(e,h),a===Xl&&i&&(a=Wr.inflateSetDictionary(e,i),a===Ao?a=Wr.inflate(e,h):a===Sf&&(a=Xl));e.avail_in>0&&a===Kl&&e.state.wrap>0&&t[e.next_in]!==0;)Wr.inflateReset(e),a=Wr.inflate(e,h);switch(a){case k5:case Sf:case Xl:case P5:return this.onEnd(a),this.ended=!0,!1}if(l=e.avail_out,e.next_out&&(e.avail_out===0||a===Kl))if(this.options.to==="string"){let f=xo.utf8border(e.output,e.next_out),u=e.next_out-f,g=xo.buf2string(e.output,f);e.next_out=u,e.avail_out=r-u,u&&e.output.set(e.output.subarray(f,f+u),0),this.onData(g)}else this.onData(e.output.length===e.next_out?e.output:e.output.subarray(0,e.next_out));if(!(a===Ao&&l===0)){if(a===Kl)return a=Wr.inflateEnd(this.strm),this.onEnd(a),this.ended=!0,!0;if(e.avail_in===0)break}}return!0};ko.prototype.onData=function(t){this.chunks.push(t)};ko.prototype.onEnd=function(t){t===Ao&&(this.options.to==="string"?this.result=this.chunks.join(""):this.result=Ls.flattenChunks(this.chunks)),this.chunks=[],this.err=t,this.msg=this.strm.msg};function dh(t,n){let e=new ko(n);if(e.push(t),e.err)throw e.msg||Wi[e.err];return e.result}function I5(t,n){return n=n||{},n.raw=!0,dh(t,n)}var F5=ko,E5=dh,C5=I5,O5=dh,T5=va,D5={Inflate:F5,inflate:E5,inflateRaw:C5,ungzip:O5,constants:T5},{Deflate:bp,deflate:wp,deflateRaw:yp,gzip:_p}=H2,{Inflate:M5,inflate:R5,inflateRaw:xp,ungzip:Ap}=D5;var ph=M5,lu=R5;var cu=[];for(let t=0;t<256;t++){let n=t;for(let e=0;e<8;e++)n&1?n=3988292384^n>>>1:n=n>>>1;cu[t]=n}var hu=4294967295;function j5(t,n,e){let r=t;for(let i=0;i<e;i++)r=cu[(r^n[i])&255]^r>>>8;return r}function B5(t,n){return(j5(hu,t,n)^hu)>>>0}function gh(t,n,e){let r=t.readUint32(),i=B5(new Uint8Array(t.buffer,t.byteOffset+t.offset-n-4,n),n);if(i!==r)throw new Error(`CRC mismatch for chunk ${e}. Expected ${r}, found ${i}`)}function ks(t,n,e){for(let r=0;r<e;r++)n[r]=t[r]}function Ps(t,n,e,r){let i=0;for(;i<r;i++)n[i]=t[i];for(;i<e;i++)n[i]=t[i]+n[i-r]&255}function Is(t,n,e,r){let i=0;if(e.length===0)for(;i<r;i++)n[i]=t[i];else for(;i<r;i++)n[i]=t[i]+e[i]&255}function Fs(t,n,e,r,i){let a=0;if(e.length===0){for(;a<i;a++)n[a]=t[a];for(;a<r;a++)n[a]=t[a]+(n[a-i]>>1)&255}else{for(;a<i;a++)n[a]=t[a]+(e[a]>>1)&255;for(;a<r;a++)n[a]=t[a]+(n[a-i]+e[a]>>1)&255}}function Es(t,n,e,r,i){let a=0;if(e.length===0){for(;a<i;a++)n[a]=t[a];for(;a<r;a++)n[a]=t[a]+n[a-i]&255}else{for(;a<i;a++)n[a]=t[a]+e[a]&255;for(;a<r;a++)n[a]=t[a]+z5(n[a-i],e[a],e[a-i])&255}}function z5(t,n,e){let r=t+n-e,i=Math.abs(r-t),a=Math.abs(r-n),h=Math.abs(r-e);return i<=a&&i<=h?t:a<=h?n:e}function fu(t,n,e,r,i,a){switch(t){case 0:ks(n,e,i);break;case 1:Ps(n,e,i,a);break;case 2:Is(n,e,r,i);break;case 3:Fs(n,e,r,i,a);break;case 4:Es(n,e,r,i,a);break;default:throw new Error(`Unsupported filter: ${t}`)}}var U5=new Uint16Array([255]),q5=new Uint8Array(U5.buffer),H5=q5[0]===255;function uu(t){let{data:n,width:e,height:r,channels:i,depth:a}=t,h=[{x:0,y:0,xStep:8,yStep:8},{x:4,y:0,xStep:8,yStep:8},{x:0,y:4,xStep:4,yStep:8},{x:2,y:0,xStep:4,yStep:4},{x:0,y:2,xStep:2,yStep:4},{x:1,y:0,xStep:2,yStep:2},{x:0,y:1,xStep:1,yStep:2}],l=Math.ceil(a/8)*i,f=new Uint8Array(r*e*l),u=0;for(let g=0;g<7;g++){let w=h[g],A=Math.ceil((e-w.x)/w.xStep),p=Math.ceil((r-w.y)/w.yStep);if(A<=0||p<=0)continue;let I=A*l,P=new Uint8Array(I);for(let T=0;T<p;T++){let L=n[u++],W=n.subarray(u,u+I);u+=I;let q=new Uint8Array(I);fu(L,W,q,P,I,l),P.set(q);for(let B=0;B<A;B++){let rt=w.x+B*w.xStep,vt=w.y+T*w.yStep;if(!(rt>=e||vt>=r))for(let pt=0;pt<l;pt++)f[(vt*e+rt)*l+pt]=q[B*l+pt]}}}if(a===16){let g=new Uint16Array(f.buffer);if(H5)for(let w=0;w<g.length;w++)g[w]=W5(g[w]);return g}else return f}function W5(t){return(t&255)<<8|t>>8&255}var G5=new Uint16Array([255]),V5=new Uint8Array(G5.buffer),Z5=V5[0]===255,$5=new Uint8Array(0);function mh(t){let{data:n,width:e,height:r,channels:i,depth:a}=t,h=Math.ceil(a/8)*i,l=Math.ceil(a/8*i*e),f=new Uint8Array(r*l),u=$5,g=0,w,A;for(let p=0;p<r;p++){switch(w=n.subarray(g+1,g+1+l),A=f.subarray(p*l,(p+1)*l),n[g]){case 0:ks(w,A,l);break;case 1:Ps(w,A,l,h);break;case 2:Is(w,A,u,l);break;case 3:Fs(w,A,u,l,h);break;case 4:Es(w,A,u,l,h);break;default:throw new Error(`Unsupported filter: ${n[g]}`)}u=A,g+=l+1}if(a===16){let p=new Uint16Array(f.buffer);if(Z5)for(let I=0;I<p.length;I++)p[I]=Y5(p[I]);return p}else return f}function Y5(t){return(t&255)<<8|t>>8&255}var Cs=Uint8Array.of(137,80,78,71,13,10,26,10);function vh(t){if(!du(t.readBytes(Cs.length)))throw new Error("wrong PNG signature")}function du(t){if(t.length<Cs.length)return!1;for(let n=0;n<Cs.length;n++)if(t[n]!==Cs[n])return!1;return!0}var pu="tEXt",X5=0,gu=new TextDecoder("latin1");function J5(t){if(td(t),t.length===0||t.length>79)throw new Error("keyword length must be between 1 and 79")}var Q5=/^[\u0000-\u00FF]*$/;function td(t){if(!Q5.test(t))throw new Error("invalid latin1 text")}function mu(t,n,e){let r=bh(n);t[r]=ed(n,e-r.length-1)}function bh(t){for(t.mark();t.readByte()!==X5;);let n=t.offset;t.reset();let e=gu.decode(t.readBytes(n-t.offset-1));return t.skip(1),J5(e),e}function ed(t,n){return gu.decode(t.readBytes(n))}var Sn={UNKNOWN:-1,GREYSCALE:0,TRUECOLOUR:2,INDEXED_COLOUR:3,GREYSCALE_ALPHA:4,TRUECOLOUR_ALPHA:6},Po={UNKNOWN:-1,DEFLATE:0},Os={UNKNOWN:-1,ADAPTIVE:0},Io={UNKNOWN:-1,NO_INTERLACE:0,ADAM7:1},Fo={NONE:0,BACKGROUND:1,PREVIOUS:2},Ts={SOURCE:0,OVER:1};var Eo=class extends lo{_checkCrc;_inflator;_png;_apng;_end;_hasPalette;_palette;_hasTransparency;_transparency;_compressionMethod;_filterMethod;_interlaceMethod;_colorType;_isAnimated;_numberOfFrames;_numberOfPlays;_frames;_writingDataChunks;constructor(n,e={}){super(n);let{checkCrc:r=!1}=e;this._checkCrc=r,this._inflator=new ph,this._png={width:-1,height:-1,channels:-1,data:new Uint8Array(0),depth:1,text:{}},this._apng={width:-1,height:-1,channels:-1,depth:1,numberOfFrames:1,numberOfPlays:0,text:{},frames:[]},this._end=!1,this._hasPalette=!1,this._palette=[],this._hasTransparency=!1,this._transparency=new Uint16Array(0),this._compressionMethod=Po.UNKNOWN,this._filterMethod=Os.UNKNOWN,this._interlaceMethod=Io.UNKNOWN,this._colorType=Sn.UNKNOWN,this._isAnimated=!1,this._numberOfFrames=1,this._numberOfPlays=0,this._frames=[],this._writingDataChunks=!1,this.setBigEndian()}decode(){for(vh(this);!this._end;){let n=this.readUint32(),e=this.readChars(4);this.decodeChunk(n,e)}return this.decodeImage(),this._png}decodeApng(){for(vh(this);!this._end;){let n=this.readUint32(),e=this.readChars(4);this.decodeApngChunk(n,e)}return this.decodeApngImage(),this._apng}decodeChunk(n,e){let r=this.offset;switch(e){case"IHDR":this.decodeIHDR();break;case"PLTE":this.decodePLTE(n);break;case"IDAT":this.decodeIDAT(n);break;case"IEND":this._end=!0;break;case"tRNS":this.decodetRNS(n);break;case"iCCP":this.decodeiCCP(n);break;case pu:mu(this._png.text,this,n);break;case"pHYs":this.decodepHYs();break;default:this.skip(n);break}if(this.offset-r!==n)throw new Error(`Length mismatch while decoding chunk ${e}`);this._checkCrc?gh(this,n+4,e):this.skip(4)}decodeApngChunk(n,e){let r=this.offset;switch(e!=="fdAT"&&e!=="IDAT"&&this._writingDataChunks&&this.pushDataToFrame(),e){case"acTL":this.decodeACTL();break;case"fcTL":this.decodeFCTL();break;case"fdAT":this.decodeFDAT(n);break;default:this.decodeChunk(n,e),this.offset=r+n;break}if(this.offset-r!==n)throw new Error(`Length mismatch while decoding chunk ${e}`);this._checkCrc?gh(this,n+4,e):this.skip(4)}decodeIHDR(){let n=this._png;n.width=this.readUint32(),n.height=this.readUint32(),n.depth=nd(this.readUint8());let e=this.readUint8();this._colorType=e;let r;switch(e){case Sn.GREYSCALE:r=1;break;case Sn.TRUECOLOUR:r=3;break;case Sn.INDEXED_COLOUR:r=1;break;case Sn.GREYSCALE_ALPHA:r=2;break;case Sn.TRUECOLOUR_ALPHA:r=4;break;case Sn.UNKNOWN:default:throw new Error(`Unknown color type: ${e}`)}if(this._png.channels=r,this._compressionMethod=this.readUint8(),this._compressionMethod!==Po.DEFLATE)throw new Error(`Unsupported compression method: ${this._compressionMethod}`);this._filterMethod=this.readUint8(),this._interlaceMethod=this.readUint8()}decodeACTL(){this._numberOfFrames=this.readUint32(),this._numberOfPlays=this.readUint32(),this._isAnimated=!0}decodeFCTL(){let n={sequenceNumber:this.readUint32(),width:this.readUint32(),height:this.readUint32(),xOffset:this.readUint32(),yOffset:this.readUint32(),delayNumber:this.readUint16(),delayDenominator:this.readUint16(),disposeOp:this.readUint8(),blendOp:this.readUint8(),data:new Uint8Array(0)};this._frames.push(n)}decodePLTE(n){if(n%3!==0)throw new RangeError(`PLTE field length must be a multiple of 3. Got ${n}`);let e=n/3;this._hasPalette=!0;let r=[];this._palette=r;for(let i=0;i<e;i++)r.push([this.readUint8(),this.readUint8(),this.readUint8()])}decodeIDAT(n){this._writingDataChunks=!0;let e=n,r=this.offset+this.byteOffset;if(this._inflator.push(new Uint8Array(this.buffer,r,e)),this._inflator.err)throw new Error(`Error while decompressing the data: ${this._inflator.err}`);this.skip(n)}decodeFDAT(n){this._writingDataChunks=!0;let e=n,r=this.offset+this.byteOffset;if(r+=4,e-=4,this._inflator.push(new Uint8Array(this.buffer,r,e)),this._inflator.err)throw new Error(`Error while decompressing the data: ${this._inflator.err}`);this.skip(n)}decodetRNS(n){switch(this._colorType){case Sn.GREYSCALE:case Sn.TRUECOLOUR:{if(n%2!==0)throw new RangeError(`tRNS chunk length must be a multiple of 2. Got ${n}`);if(n/2>this._png.width*this._png.height)throw new Error(`tRNS chunk contains more alpha values than there are pixels (${n/2} vs ${this._png.width*this._png.height})`);this._hasTransparency=!0,this._transparency=new Uint16Array(n/2);for(let e=0;e<n/2;e++)this._transparency[e]=this.readUint16();break}case Sn.INDEXED_COLOUR:{if(n>this._palette.length)throw new Error(`tRNS chunk contains more alpha values than there are palette colors (${n} vs ${this._palette.length})`);let e=0;for(;e<n;e++){let r=this.readByte();this._palette[e].push(r)}for(;e<this._palette.length;e++)this._palette[e].push(255);break}case Sn.UNKNOWN:case Sn.GREYSCALE_ALPHA:case Sn.TRUECOLOUR_ALPHA:default:throw new Error(`tRNS chunk is not supported for color type ${this._colorType}`)}}decodeiCCP(n){let e=bh(this),r=this.readUint8();if(r!==Po.DEFLATE)throw new Error(`Unsupported iCCP compression method: ${r}`);let i=this.readBytes(n-e.length-2);this._png.iccEmbeddedProfile={name:e,profile:lu(i)}}decodepHYs(){let n=this.readUint32(),e=this.readUint32(),r=this.readByte();this._png.resolution={x:n,y:e,unit:r}}decodeApngImage(){this._apng.width=this._png.width,this._apng.height=this._png.height,this._apng.channels=this._png.channels,this._apng.depth=this._png.depth,this._apng.numberOfFrames=this._numberOfFrames,this._apng.numberOfPlays=this._numberOfPlays,this._apng.text=this._png.text,this._apng.resolution=this._png.resolution;for(let n=0;n<this._numberOfFrames;n++){let e={sequenceNumber:this._frames[n].sequenceNumber,delayNumber:this._frames[n].delayNumber,delayDenominator:this._frames[n].delayDenominator,data:this._apng.depth===8?new Uint8Array(this._apng.width*this._apng.height*this._apng.channels):new Uint16Array(this._apng.width*this._apng.height*this._apng.channels)},r=this._frames.at(n);if(r){if(r.data=mh({data:r.data,width:r.width,height:r.height,channels:this._apng.channels,depth:this._apng.depth}),this._hasPalette&&(this._apng.palette=this._palette),this._hasTransparency&&(this._apng.transparency=this._transparency),n===0||r.xOffset===0&&r.yOffset===0&&r.width===this._png.width&&r.height===this._png.height)e.data=r.data;else{let i=this._apng.frames.at(n-1);this.disposeFrame(r,i,e),this.addFrameDataToCanvas(e,r)}this._apng.frames.push(e)}}return this._apng}disposeFrame(n,e,r){switch(n.disposeOp){case Fo.NONE:break;case Fo.BACKGROUND:for(let i=0;i<this._png.height;i++)for(let a=0;a<this._png.width;a++){let h=(i*n.width+a)*this._png.channels;for(let l=0;l<this._png.channels;l++)r.data[h+l]=0}break;case Fo.PREVIOUS:r.data.set(e.data);break;default:throw new Error("Unknown disposeOp")}}addFrameDataToCanvas(n,e){let r=1<<this._png.depth,i=(a,h)=>{let l=((a+e.yOffset)*this._png.width+e.xOffset+h)*this._png.channels,f=(a*e.width+h)*this._png.channels;return{index:l,frameIndex:f}};switch(e.blendOp){case Ts.SOURCE:for(let a=0;a<e.height;a++)for(let h=0;h<e.width;h++){let{index:l,frameIndex:f}=i(a,h);for(let u=0;u<this._png.channels;u++)n.data[l+u]=e.data[f+u]}break;case Ts.OVER:for(let a=0;a<e.height;a++)for(let h=0;h<e.width;h++){let{index:l,frameIndex:f}=i(a,h);for(let u=0;u<this._png.channels;u++){let g=e.data[f+this._png.channels-1]/r,w=u%(this._png.channels-1)===0?1:e.data[f+u],A=Math.floor(g*w+(1-g)*n.data[l+u]);n.data[l+u]+=A}}break;default:throw new Error("Unknown blendOp")}}decodeImage(){if(this._inflator.err)throw new Error(`Error while decompressing the data: ${this._inflator.err}`);let n=this._isAnimated?(this._frames?.at(0)).data:this._inflator.result;if(this._filterMethod!==Os.ADAPTIVE)throw new Error(`Filter method ${this._filterMethod} not supported`);if(this._interlaceMethod===Io.NO_INTERLACE)this._png.data=mh({data:n,width:this._png.width,height:this._png.height,channels:this._png.channels,depth:this._png.depth});else if(this._interlaceMethod===Io.ADAM7)this._png.data=uu({data:n,width:this._png.width,height:this._png.height,channels:this._png.channels,depth:this._png.depth});else throw new Error(`Interlace method ${this._interlaceMethod} not supported`);this._hasPalette&&(this._png.palette=this._palette),this._hasTransparency&&(this._png.transparency=this._transparency)}pushDataToFrame(){let n=this._inflator.result,e=this._frames.at(-1);e?e.data=n:this._frames.push({sequenceNumber:0,width:this._png.width,height:this._png.height,xOffset:0,yOffset:0,delayNumber:0,delayDenominator:0,disposeOp:Fo.NONE,blendOp:Ts.SOURCE,data:n}),this._inflator=new ph,this._writingDataChunks=!1}};function nd(t){if(t!==1&&t!==2&&t!==4&&t!==8&&t!==16)throw new Error(`invalid bit depth: ${t}`);return t}var vu;(function(t){t[t.UNKNOWN=0]="UNKNOWN",t[t.METRE=1]="METRE"})(vu||(vu={}));function bu(t,n){return new Eo(t,n).decode()}var Vt=(function(){return typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:this})();function wh(){Vt.console&&typeof Vt.console.log=="function"&&Vt.console.log.apply(Vt.console,arguments)}var Ie={log:wh,warn:function(t){Vt.console&&(typeof Vt.console.warn=="function"?Vt.console.warn.apply(Vt.console,arguments):wh.call(null,arguments))},error:function(t){Vt.console&&(typeof Vt.console.error=="function"?Vt.console.error.apply(Vt.console,arguments):wh(t))}};function yh(t,n,e){var r=new XMLHttpRequest;r.open("GET",t),r.responseType="blob",r.onload=function(){$i(r.response,n,e)},r.onerror=function(){Ie.error("could not download file")},r.send()}function wu(t){var n=new XMLHttpRequest;n.open("HEAD",t,!1);try{n.send()}catch{}return n.status>=200&&n.status<=299}function Ds(t){try{t.dispatchEvent(new MouseEvent("click"))}catch{var n=document.createEvent("MouseEvents");n.initMouseEvent("click",!0,!0,window,0,0,0,80,20,!1,!1,!1,!1,0,null),t.dispatchEvent(n)}}var $i=Vt.saveAs||((typeof window>"u"?"undefined":Ne(window))!=="object"||window!==Vt?function(){}:typeof HTMLAnchorElement<"u"&&"download"in HTMLAnchorElement.prototype?function(t,n,e){var r=Vt.URL||Vt.webkitURL,i=document.createElement("a");n=n||t.name||"download",i.download=n,i.rel="noopener",typeof t=="string"?(i.href=t,i.origin!==location.origin?wu(i.href)?yh(t,n,e):Ds(i,i.target="_blank"):Ds(i)):(i.href=r.createObjectURL(t),setTimeout(function(){r.revokeObjectURL(i.href)},4e4),setTimeout(function(){Ds(i)},0))}:"msSaveOrOpenBlob"in navigator?function(t,n,e){if(n=n||t.name||"download",typeof t=="string")if(wu(t))yh(t,n,e);else{var r=document.createElement("a");r.href=t,r.target="_blank",setTimeout(function(){Ds(r)})}else navigator.msSaveOrOpenBlob((function(i,a){return a===void 0?a={autoBom:!1}:Ne(a)!=="object"&&(Ie.warn("Deprecated: Expected third argument to be a object"),a={autoBom:!a}),a.autoBom&&/^\s*(?:text\/\S*|application\/xml|\S*\/\S*\+xml)\s*;.*charset\s*=\s*utf-8/i.test(i.type)?new Blob(["\uFEFF",i],{type:i.type}):i})(t,e),n)}:function(t,n,e,r){if((r=r||open("","_blank"))&&(r.document.title=r.document.body.innerText="downloading..."),typeof t=="string")return yh(t,n,e);var i=t.type==="application/octet-stream",a=/constructor/i.test(Vt.HTMLElement)||Vt.safari,h=/CriOS\/[\d]+/.test(navigator.userAgent);if((h||i&&a)&&(typeof FileReader>"u"?"undefined":Ne(FileReader))==="object"){var l=new FileReader;l.onloadend=function(){var g=l.result;g=h?g:g.replace(/^data:[^;]*;/,"data:attachment/file;"),r?r.location.href=g:location=g,r=null},l.readAsDataURL(t)}else{var f=Vt.URL||Vt.webkitURL,u=f.createObjectURL(t);r?r.location=u:location.href=u,r=null,setTimeout(function(){f.revokeObjectURL(u)},4e4)}});function Hu(t){var n;t=t||"",this.ok=!1,t.charAt(0)=="#"&&(t=t.substr(1,6)),t={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"}[t=(t=t.replace(/ /g,"")).toLowerCase()]||t;for(var e=[{re:/^rgb\((\d{1,3}),\s*(\d{1,3}),\s*(\d{1,3})\)$/,example:["rgb(123, 234, 45)","rgb(255,234,245)"],process:function(l){return[parseInt(l[1]),parseInt(l[2]),parseInt(l[3])]}},{re:/^(\w{2})(\w{2})(\w{2})$/,example:["#00ff00","336699"],process:function(l){return[parseInt(l[1],16),parseInt(l[2],16),parseInt(l[3],16)]}},{re:/^(\w{1})(\w{1})(\w{1})$/,example:["#fb0","f0f"],process:function(l){return[parseInt(l[1]+l[1],16),parseInt(l[2]+l[2],16),parseInt(l[3]+l[3],16)]}}],r=0;r<e.length;r++){var i=e[r].re,a=e[r].process,h=i.exec(t);h&&(n=a(h),this.r=n[0],this.g=n[1],this.b=n[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 l=this.r.toString(16),f=this.g.toString(16),u=this.b.toString(16);return l.length==1&&(l="0"+l),f.length==1&&(f="0"+f),u.length==1&&(u="0"+u),"#"+l+f+u}}var Bs=Vt.atob.bind(Vt),yu=Vt.btoa.bind(Vt);function _h(t,n){var e=t[0],r=t[1],i=t[2],a=t[3];e=bn(e,r,i,a,n[0],7,-680876936),a=bn(a,e,r,i,n[1],12,-389564586),i=bn(i,a,e,r,n[2],17,606105819),r=bn(r,i,a,e,n[3],22,-1044525330),e=bn(e,r,i,a,n[4],7,-176418897),a=bn(a,e,r,i,n[5],12,1200080426),i=bn(i,a,e,r,n[6],17,-1473231341),r=bn(r,i,a,e,n[7],22,-45705983),e=bn(e,r,i,a,n[8],7,1770035416),a=bn(a,e,r,i,n[9],12,-1958414417),i=bn(i,a,e,r,n[10],17,-42063),r=bn(r,i,a,e,n[11],22,-1990404162),e=bn(e,r,i,a,n[12],7,1804603682),a=bn(a,e,r,i,n[13],12,-40341101),i=bn(i,a,e,r,n[14],17,-1502002290),e=wn(e,r=bn(r,i,a,e,n[15],22,1236535329),i,a,n[1],5,-165796510),a=wn(a,e,r,i,n[6],9,-1069501632),i=wn(i,a,e,r,n[11],14,643717713),r=wn(r,i,a,e,n[0],20,-373897302),e=wn(e,r,i,a,n[5],5,-701558691),a=wn(a,e,r,i,n[10],9,38016083),i=wn(i,a,e,r,n[15],14,-660478335),r=wn(r,i,a,e,n[4],20,-405537848),e=wn(e,r,i,a,n[9],5,568446438),a=wn(a,e,r,i,n[14],9,-1019803690),i=wn(i,a,e,r,n[3],14,-187363961),r=wn(r,i,a,e,n[8],20,1163531501),e=wn(e,r,i,a,n[13],5,-1444681467),a=wn(a,e,r,i,n[2],9,-51403784),i=wn(i,a,e,r,n[7],14,1735328473),e=yn(e,r=wn(r,i,a,e,n[12],20,-1926607734),i,a,n[5],4,-378558),a=yn(a,e,r,i,n[8],11,-2022574463),i=yn(i,a,e,r,n[11],16,1839030562),r=yn(r,i,a,e,n[14],23,-35309556),e=yn(e,r,i,a,n[1],4,-1530992060),a=yn(a,e,r,i,n[4],11,1272893353),i=yn(i,a,e,r,n[7],16,-155497632),r=yn(r,i,a,e,n[10],23,-1094730640),e=yn(e,r,i,a,n[13],4,681279174),a=yn(a,e,r,i,n[0],11,-358537222),i=yn(i,a,e,r,n[3],16,-722521979),r=yn(r,i,a,e,n[6],23,76029189),e=yn(e,r,i,a,n[9],4,-640364487),a=yn(a,e,r,i,n[12],11,-421815835),i=yn(i,a,e,r,n[15],16,530742520),e=_n(e,r=yn(r,i,a,e,n[2],23,-995338651),i,a,n[0],6,-198630844),a=_n(a,e,r,i,n[7],10,1126891415),i=_n(i,a,e,r,n[14],15,-1416354905),r=_n(r,i,a,e,n[5],21,-57434055),e=_n(e,r,i,a,n[12],6,1700485571),a=_n(a,e,r,i,n[3],10,-1894986606),i=_n(i,a,e,r,n[10],15,-1051523),r=_n(r,i,a,e,n[1],21,-2054922799),e=_n(e,r,i,a,n[8],6,1873313359),a=_n(a,e,r,i,n[15],10,-30611744),i=_n(i,a,e,r,n[6],15,-1560198380),r=_n(r,i,a,e,n[13],21,1309151649),e=_n(e,r,i,a,n[4],6,-145523070),a=_n(a,e,r,i,n[11],10,-1120210379),i=_n(i,a,e,r,n[2],15,718787259),r=_n(r,i,a,e,n[9],21,-343485551),t[0]=pi(e,t[0]),t[1]=pi(r,t[1]),t[2]=pi(i,t[2]),t[3]=pi(a,t[3])}function Vs(t,n,e,r,i,a){return n=pi(pi(n,t),pi(r,a)),pi(n<<i|n>>>32-i,e)}function bn(t,n,e,r,i,a,h){return Vs(n&e|~n&r,t,n,i,a,h)}function wn(t,n,e,r,i,a,h){return Vs(n&r|e&~r,t,n,i,a,h)}function yn(t,n,e,r,i,a,h){return Vs(n^e^r,t,n,i,a,h)}function _n(t,n,e,r,i,a,h){return Vs(e^(n|~r),t,n,i,a,h)}function Wu(t){var n,e=t.length,r=[1732584193,-271733879,-1732584194,271733878];for(n=64;n<=t.length;n+=64)_h(r,rd(t.substring(n-64,n)));t=t.substring(n-64);var i=[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0];for(n=0;n<t.length;n++)i[n>>2]|=t.charCodeAt(n)<<(n%4<<3);if(i[n>>2]|=128<<(n%4<<3),n>55)for(_h(r,i),n=0;n<16;n++)i[n]=0;return i[14]=8*e,_h(r,i),r}function rd(t){var n,e=[];for(n=0;n<64;n+=4)e[n>>2]=t.charCodeAt(n)+(t.charCodeAt(n+1)<<8)+(t.charCodeAt(n+2)<<16)+(t.charCodeAt(n+3)<<24);return e}var _u="0123456789abcdef".split("");function id(t){for(var n="",e=0;e<4;e++)n+=_u[t>>8*e+4&15]+_u[t>>8*e&15];return n}function ad(t){return String.fromCharCode(255&t,(65280&t)>>8,(16711680&t)>>16,(4278190080&t)>>24)}function kh(t){return Wu(t).map(ad).join("")}var od=(function(t){for(var n=0;n<t.length;n++)t[n]=id(t[n]);return t.join("")})(Wu("hello"))!="5d41402abc4b2a76b9719d911017c592";function pi(t,n){if(od){var e=(65535&t)+(65535&n);return(t>>16)+(n>>16)+(e>>16)<<16|65535&e}return t+n&4294967295}function Ph(t,n){var e,r,i,a;if(t!==e){for(var h=(i=t,a=1+(256/t.length|0),new Array(a+1).join(i)),l=[],f=0;f<256;f++)l[f]=f;var u=0;for(f=0;f<256;f++){var g=l[f];u=(u+g+h.charCodeAt(f))%256,l[f]=l[u],l[u]=g}e=t,r=l}else l=r;var w=n.length,A=0,p=0,I="";for(f=0;f<w;f++)p=(p+(g=l[A=(A+1)%256]))%256,l[A]=l[p],l[p]=g,h=l[(l[A]+l[p])%256],I+=String.fromCharCode(n.charCodeAt(f)^h);return I}var xu={print:4,modify:8,copy:16,"annot-forms":32};function xa(t,n,e,r){this.v=1,this.r=2;var i=192;t.forEach(function(l){if(xu.perm!==void 0)throw new Error("Invalid permission: "+l);i+=xu[l]}),this.padding="(\xBFN^Nu\x8AAd\0NV\xFF\xFA\b..\0\xB6\xD0h>\x80/\f\xA9\xFEdSiz";var a=(n+this.padding).substr(0,32),h=(e+this.padding).substr(0,32);this.O=this.processOwnerPassword(a,h),this.P=-(1+(255^i)),this.encryptionKey=kh(a+this.O+this.lsbFirstWord(this.P)+this.hexToBytes(r)).substr(0,5),this.U=Ph(this.encryptionKey,this.padding)}function Aa(t){if(/[^\u0000-\u00ff]/.test(t))throw new Error("Invalid PDF Name Object: "+t+", Only accept ASCII characters.");for(var n="",e=t.length,r=0;r<e;r++){var i=t.charCodeAt(r);n+=i<33||i===35||i===37||i===40||i===41||i===47||i===60||i===62||i===91||i===93||i===123||i===125||i>126?"#"+("0"+i.toString(16)).slice(-2):t[r]}return n}function Au(t){if(Ne(t)!=="object")throw new Error("Invalid Context passed to initialize PubSub (jsPDF-module)");var n={};this.subscribe=function(e,r,i){if(i=i||!1,typeof e!="string"||typeof r!="function"||typeof i!="boolean")throw new Error("Invalid arguments passed to PubSub.subscribe (jsPDF-module)");n.hasOwnProperty(e)||(n[e]={});var a=Math.random().toString(35);return n[e][a]=[r,!!i],a},this.unsubscribe=function(e){for(var r in n)if(n[r][e])return delete n[r][e],Object.keys(n[r]).length===0&&delete n[r],!0;return!1},this.publish=function(e){if(n.hasOwnProperty(e)){var r=Array.prototype.slice.call(arguments,1),i=[];for(var a in n[e]){var h=n[e][a];try{h[0].apply(t,r)}catch(l){Vt.console&&Ie.error("jsPDF PubSub Error",l.message,l)}h[1]&&i.push(a)}i.length&&i.forEach(this.unsubscribe)}},this.getTopics=function(){return n}}function Ws(t){if(!(this instanceof Ws))return new Ws(t);var n="opacity,stroke-opacity".split(",");for(var e in t)t.hasOwnProperty(e)&&n.indexOf(e)>=0&&(this[e]=t[e]);this.id="",this.objectNumber=-1}function Gu(t,n){this.gState=t,this.matrix=n,this.id="",this.objectNumber=-1}function Yi(t,n,e,r,i){if(!(this instanceof Yi))return new Yi(t,n,e,r,i);this.type=t==="axial"?2:3,this.coords=n,this.colors=e,Gu.call(this,r,i)}function Na(t,n,e,r,i){if(!(this instanceof Na))return new Na(t,n,e,r,i);this.boundingBox=t,this.xStep=n,this.yStep=e,this.stream="",this.cloneIndex=0,Gu.call(this,r,i)}function Dt(t){var n,e=typeof arguments[0]=="string"?arguments[0]:"p",r=arguments[1],i=arguments[2],a=arguments[3],h=[],l=1,f=16,u="S",g=null;Ne(t=t||{})==="object"&&(e=t.orientation,r=t.unit||r,i=t.format||i,a=t.compress||t.compressPdf||a,(g=t.encryption||null)!==null&&(g.userPassword=g.userPassword||"",g.ownerPassword=g.ownerPassword||"",g.userPermissions=g.userPermissions||[]),l=typeof t.userUnit=="number"?Math.abs(t.userUnit):1,t.precision!==void 0&&(n=t.precision),t.floatPrecision!==void 0&&(f=t.floatPrecision),u=t.defaultPathOperation||"S"),h=t.filters||(a===!0?["FlateEncode"]:h),r=r||"mm",e=(""+(e||"P")).toLowerCase();var w=t.putOnlyUsedFonts||!1,A={},p={internal:{},__private__:{}};p.__private__.PubSub=Au;var I="1.3",P=p.__private__.getPdfVersion=function(){return I};p.__private__.setPdfVersion=function(c){I=c};var T={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]};p.__private__.getPageFormats=function(){return T};var L=p.__private__.getPageFormat=function(c){return T[c]};i=i||"a4";var W="compat",q="advanced",B=W;function rt(){this.saveGraphicsState(),M(new Wt(Gt,0,0,-Gt,0,Pi()*Gt).toString()+" cm"),this.setFontSize(this.getFontSize()/Gt),u="n",B=q}function vt(){this.restoreGraphicsState(),u="S",B=W}var pt=p.__private__.combineFontStyleAndFontWeight=function(c,v){if(c=="bold"&&v=="normal"||c=="bold"&&v==400||c=="normal"&&v=="italic"||c=="bold"&&v=="italic")throw new Error("Invalid Combination of fontweight and fontstyle");return v&&(c=v==400||v==="normal"?c==="italic"?"italic":"normal":v!=700&&v!=="bold"||c!=="normal"?(v==700?"bold":v)+""+c:"bold"),c};p.advancedAPI=function(c){var v=B===W;return v&&rt.call(this),typeof c!="function"||(c(this),v&&vt.call(this)),this},p.compatAPI=function(c){var v=B===q;return v&&vt.call(this),typeof c!="function"||(c(this),v&&rt.call(this)),this},p.isAdvancedAPI=function(){return B===q};var Y,j=function(c){if(B!==q)throw new Error(c+" is only available in 'advanced' API mode. You need to call advancedAPI() first.")},Q=p.roundToPrecision=p.__private__.roundToPrecision=function(c,v){var O=n||v;if(isNaN(c)||isNaN(O))throw new Error("Invalid argument passed to jsPDF.roundToPrecision");return c.toFixed(O).replace(/0+$/,"")};Y=p.hpf=p.__private__.hpf=typeof f=="number"?function(c){if(isNaN(c))throw new Error("Invalid argument passed to jsPDF.hpf");return Q(c,f)}:f==="smart"?function(c){if(isNaN(c))throw new Error("Invalid argument passed to jsPDF.hpf");return Q(c,c>-1&&c<1?16:5)}:function(c){if(isNaN(c))throw new Error("Invalid argument passed to jsPDF.hpf");return Q(c,16)};var S=p.f2=p.__private__.f2=function(c){if(isNaN(c))throw new Error("Invalid argument passed to jsPDF.f2");return Q(c,2)},C=p.__private__.f3=function(c){if(isNaN(c))throw new Error("Invalid argument passed to jsPDF.f3");return Q(c,3)},H=p.scale=p.__private__.scale=function(c){if(isNaN(c))throw new Error("Invalid argument passed to jsPDF.scale");return B===W?c*Gt:B===q?c:void 0},U=function(c){return H((function(v){return B===W?Pi()-v:B===q?v:void 0})(c))};p.__private__.setPrecision=p.setPrecision=function(c){typeof parseInt(c,10)=="number"&&(n=parseInt(c,10))};var it,lt="00000000000000000000000000000000",ct=p.__private__.getFileId=function(){return lt},et=p.__private__.setFileId=function(c){return lt=c!==void 0&&/^[a-fA-F0-9]{32}$/.test(c)?c.toUpperCase():lt.split("").map(function(){return"ABCDEF0123456789".charAt(Math.floor(16*Math.random()))}).join(""),g!==null&&(qe=new xa(g.userPermissions,g.userPassword,g.ownerPassword,lt)),lt};p.setFileId=function(c){return et(c),this},p.getFileId=function(){return ct()};var ut=p.__private__.convertDateToPDFDate=function(c){var v=c.getTimezoneOffset(),O=v<0?"+":"-",z=Math.floor(Math.abs(v/60)),K=Math.abs(v%60),dt=[O,R(z),"'",R(K),"'"].join("");return["D:",c.getFullYear(),R(c.getMonth()+1),R(c.getDate()),R(c.getHours()),R(c.getMinutes()),R(c.getSeconds()),dt].join("")},Nt=p.__private__.convertPDFDateToDate=function(c){var v=parseInt(c.substr(2,4),10),O=parseInt(c.substr(6,2),10)-1,z=parseInt(c.substr(8,2),10),K=parseInt(c.substr(10,2),10),dt=parseInt(c.substr(12,2),10),yt=parseInt(c.substr(14,2),10);return new Date(v,O,z,K,dt,yt,0)},wt=p.__private__.setCreationDate=function(c){var v;if(c===void 0&&(c=new Date),c instanceof Date)v=ut(c);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(c))throw new Error("Invalid argument passed to jsPDF.setCreationDate");v=c}return it=v},x=p.__private__.getCreationDate=function(c){var v=it;return c==="jsDate"&&(v=Nt(it)),v};p.setCreationDate=function(c){return wt(c),this},p.getCreationDate=function(c){return x(c)};var D,R=p.__private__.padd2=function(c){return("0"+parseInt(c)).slice(-2)},V=p.__private__.padd2Hex=function(c){return("00"+(c=c.toString())).substr(c.length)},$=0,nt=[],ot=[],at=0,mt=[],xt=[],kt=!1,Pt=ot;p.__private__.setCustomOutputDestination=function(c){kt=!0,Pt=c};var st=function(c){kt||(Pt=c)};p.__private__.resetCustomOutputDestination=function(){kt=!1,Pt=ot};var M=p.__private__.out=function(c){return c=c.toString(),at+=c.length+1,Pt.push(c),Pt},le=p.__private__.write=function(c){return M(arguments.length===1?c.toString():Array.prototype.join.call(arguments," "))},re=p.__private__.getArrayBuffer=function(c){for(var v=c.length,O=new ArrayBuffer(v),z=new Uint8Array(O);v--;)z[v]=c.charCodeAt(v);return O},qt=[["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]];p.__private__.getStandardFonts=function(){return qt};var At=t.fontSize||16;p.__private__.setFontSize=p.setFontSize=function(c){return At=B===q?c/Gt:c,this};var jt,St=p.__private__.getFontSize=p.getFontSize=function(){return B===W?At:At*Gt},ie=t.R2L||!1;p.__private__.setR2L=p.setR2L=function(c){return ie=c,this},p.__private__.getR2L=p.getR2L=function(){return ie};var Ut,pe=p.__private__.setZoomMode=function(c){if(/^(?:\d+\.\d*|\d*\.\d+|\d+)%$/.test(c))jt=c;else if(isNaN(c)){if([void 0,null,"fullwidth","fullheight","fullpage","original"].indexOf(c)===-1)throw new Error('zoom must be Integer (e.g. 2), a percentage Value (e.g. 300%) or fullwidth, fullheight, fullpage, original. "'+c+'" is not recognized.');jt=c}else jt=parseInt(c,10)};p.__private__.getZoomMode=function(){return jt};var Jt,Qt=p.__private__.setPageMode=function(c){if([void 0,null,"UseNone","UseOutlines","UseThumbs","FullScreen"].indexOf(c)==-1)throw new Error('Page mode must be one of UseNone, UseOutlines, UseThumbs, or FullScreen. "'+c+'" is not recognized.');Ut=c};p.__private__.getPageMode=function(){return Ut};var Ae=p.__private__.setLayoutMode=function(c){if([void 0,null,"continuous","single","twoleft","tworight","two"].indexOf(c)==-1)throw new Error('Layout mode must be one of continuous, single, twoleft, tworight. "'+c+'" is not recognized.');Jt=c};p.__private__.getLayoutMode=function(){return Jt},p.__private__.setDisplayMode=p.setDisplayMode=function(c,v,O){return pe(c),Ae(v),Qt(O),this};var ae={title:"",subject:"",author:"",keywords:"",creator:""};p.__private__.getDocumentProperty=function(c){if(Object.keys(ae).indexOf(c)===-1)throw new Error("Invalid argument passed to jsPDF.getDocumentProperty");return ae[c]},p.__private__.getDocumentProperties=function(){return ae},p.__private__.setDocumentProperties=p.setProperties=p.setDocumentProperties=function(c){for(var v in ae)ae.hasOwnProperty(v)&&c[v]&&(ae[v]=c[v]);return this},p.__private__.setDocumentProperty=function(c,v){if(Object.keys(ae).indexOf(c)===-1)throw new Error("Invalid arguments passed to jsPDF.setDocumentProperty");return ae[c]=v};var Bt,Gt,zt,Fe,ge,Mt={},te={},Le=[],Ht={},he={},ee={},Ue={},Qe=null,Se=0,$t=[],we=new Au(p),mi=t.hotfixes||[],gn={},Sr={},ur=[],Wt=function c(v,O,z,K,dt,yt){if(!(this instanceof c))return new c(v,O,z,K,dt,yt);isNaN(v)&&(v=1),isNaN(O)&&(O=0),isNaN(z)&&(z=0),isNaN(K)&&(K=1),isNaN(dt)&&(dt=0),isNaN(yt)&&(yt=0),this._matrix=[v,O,z,K,dt,yt]};Object.defineProperty(Wt.prototype,"sx",{get:function(){return this._matrix[0]},set:function(c){this._matrix[0]=c}}),Object.defineProperty(Wt.prototype,"shy",{get:function(){return this._matrix[1]},set:function(c){this._matrix[1]=c}}),Object.defineProperty(Wt.prototype,"shx",{get:function(){return this._matrix[2]},set:function(c){this._matrix[2]=c}}),Object.defineProperty(Wt.prototype,"sy",{get:function(){return this._matrix[3]},set:function(c){this._matrix[3]=c}}),Object.defineProperty(Wt.prototype,"tx",{get:function(){return this._matrix[4]},set:function(c){this._matrix[4]=c}}),Object.defineProperty(Wt.prototype,"ty",{get:function(){return this._matrix[5]},set:function(c){this._matrix[5]=c}}),Object.defineProperty(Wt.prototype,"a",{get:function(){return this._matrix[0]},set:function(c){this._matrix[0]=c}}),Object.defineProperty(Wt.prototype,"b",{get:function(){return this._matrix[1]},set:function(c){this._matrix[1]=c}}),Object.defineProperty(Wt.prototype,"c",{get:function(){return this._matrix[2]},set:function(c){this._matrix[2]=c}}),Object.defineProperty(Wt.prototype,"d",{get:function(){return this._matrix[3]},set:function(c){this._matrix[3]=c}}),Object.defineProperty(Wt.prototype,"e",{get:function(){return this._matrix[4]},set:function(c){this._matrix[4]=c}}),Object.defineProperty(Wt.prototype,"f",{get:function(){return this._matrix[5]},set:function(c){this._matrix[5]=c}}),Object.defineProperty(Wt.prototype,"rotation",{get:function(){return Math.atan2(this.shx,this.sx)}}),Object.defineProperty(Wt.prototype,"scaleX",{get:function(){return this.decompose().scale.sx}}),Object.defineProperty(Wt.prototype,"scaleY",{get:function(){return this.decompose().scale.sy}}),Object.defineProperty(Wt.prototype,"isIdentity",{get:function(){return this.sx===1&&this.shy===0&&this.shx===0&&this.sy===1&&this.tx===0&&this.ty===0}}),Wt.prototype.join=function(c){return[this.sx,this.shy,this.shx,this.sy,this.tx,this.ty].map(Y).join(c)},Wt.prototype.multiply=function(c){var v=c.sx*this.sx+c.shy*this.shx,O=c.sx*this.shy+c.shy*this.sy,z=c.shx*this.sx+c.sy*this.shx,K=c.shx*this.shy+c.sy*this.sy,dt=c.tx*this.sx+c.ty*this.shx+this.tx,yt=c.tx*this.shy+c.ty*this.sy+this.ty;return new Wt(v,O,z,K,dt,yt)},Wt.prototype.decompose=function(){var c=this.sx,v=this.shy,O=this.shx,z=this.sy,K=this.tx,dt=this.ty,yt=Math.sqrt(c*c+v*v),Et=(c/=yt)*O+(v/=yt)*z;O-=c*Et,z-=v*Et;var Tt=Math.sqrt(O*O+z*z);return Et/=Tt,c*(z/=Tt)<v*(O/=Tt)&&(c=-c,v=-v,Et=-Et,yt=-yt),{scale:new Wt(yt,0,0,Tt,0,0),translate:new Wt(1,0,0,1,K,dt),rotate:new Wt(c,v,-v,c,0,0),skew:new Wt(1,0,Et,1,0,0)}},Wt.prototype.toString=function(c){return this.join(" ")},Wt.prototype.inversed=function(){var c=this.sx,v=this.shy,O=this.shx,z=this.sy,K=this.tx,dt=this.ty,yt=1/(c*z-v*O),Et=z*yt,Tt=-v*yt,Zt=-O*yt,Kt=c*yt;return new Wt(Et,Tt,Zt,Kt,-Et*K-Zt*dt,-Tt*K-Kt*dt)},Wt.prototype.applyToPoint=function(c){var v=c.x*this.sx+c.y*this.shx+this.tx,O=c.x*this.shy+c.y*this.sy+this.ty;return new Si(v,O)},Wt.prototype.applyToRectangle=function(c){var v=this.applyToPoint(c),O=this.applyToPoint(new Si(c.x+c.w,c.y+c.h));return new za(v.x,v.y,O.x-v.x,O.y-v.y)},Wt.prototype.clone=function(){var c=this.sx,v=this.shy,O=this.shx,z=this.sy,K=this.tx,dt=this.ty;return new Wt(c,v,O,z,K,dt)},p.Matrix=Wt;var kr=p.matrixMult=function(c,v){return v.multiply(c)},Pr=new Wt(1,0,0,1,0,0);p.unitMatrix=p.identityMatrix=Pr;var Hn=function(c,v){if(!he[c]){var O=(v instanceof Yi?"Sh":"P")+(Object.keys(Ht).length+1).toString(10);v.id=O,he[c]=O,Ht[O]=v,we.publish("addPattern",v)}};p.ShadingPattern=Yi,p.TilingPattern=Na,p.addShadingPattern=function(c,v){return j("addShadingPattern()"),Hn(c,v),this},p.beginTilingPattern=function(c){j("beginTilingPattern()"),Ua(c.boundingBox[0],c.boundingBox[1],c.boundingBox[2]-c.boundingBox[0],c.boundingBox[3]-c.boundingBox[1],c.matrix)},p.endTilingPattern=function(c,v){j("endTilingPattern()"),v.stream=xt[D].join(`
|
6
6
|
`),Hn(c,v),we.publish("endTilingPattern",v),ur.pop().restore()};var Wn,Me=p.__private__.newObject=function(){var c=on();return hn(c,!0),c},on=p.__private__.newObjectDeferred=function(){return $++,nt[$]=function(){return at},$},hn=function(c,v){return v=typeof v=="boolean"&&v,nt[c]=at,v&&M(c+" 0 obj"),c},vi=p.__private__.newAdditionalObject=function(){var c={objId:on(),content:""};return mt.push(c),c},Gr=on(),er=on(),dr=p.__private__.decodeColorString=function(c){var v=c.split(" ");if(v.length!==2||v[1]!=="g"&&v[1]!=="G")v.length!==5||v[4]!=="k"&&v[4]!=="K"||(v=[(1-v[0])*(1-v[3]),(1-v[1])*(1-v[3]),(1-v[2])*(1-v[3]),"r"]);else{var O=parseFloat(v[0]);v=[O,O,O,"r"]}for(var z="#",K=0;K<3;K++)z+=("0"+Math.floor(255*parseFloat(v[K])).toString(16)).slice(-2);return z},nr=p.__private__.encodeColorString=function(c){var v;typeof c=="string"&&(c={ch1:c});var O=c.ch1,z=c.ch2,K=c.ch3,dt=c.ch4,yt=c.pdfColorType==="draw"?["G","RG","K"]:["g","rg","k"];if(typeof O=="string"&&O.charAt(0)!=="#"){var Et=new Hu(O);if(Et.ok)O=Et.toHex();else if(!/^\d*\.?\d*$/.test(O))throw new Error('Invalid color "'+O+'" passed to jsPDF.encodeColorString.')}if(typeof O=="string"&&/^#[0-9A-Fa-f]{3}$/.test(O)&&(O="#"+O[1]+O[1]+O[2]+O[2]+O[3]+O[3]),typeof O=="string"&&/^#[0-9A-Fa-f]{6}$/.test(O)){var Tt=parseInt(O.substr(1),16);O=Tt>>16&255,z=Tt>>8&255,K=255&Tt}if(z===void 0||dt===void 0&&O===z&&z===K)v=typeof O=="string"?O+" "+yt[0]:c.precision===2?S(O/255)+" "+yt[0]:C(O/255)+" "+yt[0];else if(dt===void 0||Ne(dt)==="object"){if(dt&&!isNaN(dt.a)&&dt.a===0)return["1.","1.","1.",yt[1]].join(" ");v=typeof O=="string"?[O,z,K,yt[1]].join(" "):c.precision===2?[S(O/255),S(z/255),S(K/255),yt[1]].join(" "):[C(O/255),C(z/255),C(K/255),yt[1]].join(" ")}else v=typeof O=="string"?[O,z,K,dt,yt[2]].join(" "):c.precision===2?[S(O),S(z),S(K),S(dt),yt[2]].join(" "):[C(O),C(z),C(K),C(dt),yt[2]].join(" ");return v},rr=p.__private__.getFilters=function(){return h},Gn=p.__private__.putStream=function(c){var v=(c=c||{}).data||"",O=c.filters||rr(),z=c.alreadyAppliedFilters||[],K=c.addLength1||!1,dt=v.length,yt=c.objectId,Et=function(tn){return tn};if(g!==null&&yt===void 0)throw new Error("ObjectId must be passed to putStream for file encryption");g!==null&&(Et=qe.encryptor(yt,0));var Tt={};O===!0&&(O=["FlateEncode"]);var Zt=c.additionalKeyValues||[],Kt=(Tt=Dt.API.processDataByFilters!==void 0?Dt.API.processDataByFilters(v,O):{data:v,reverseChain:[]}).reverseChain+(Array.isArray(z)?z.join(" "):z.toString());if(Tt.data.length!==0&&(Zt.push({key:"Length",value:Tt.data.length}),K===!0&&Zt.push({key:"Length1",value:dt})),Kt.length!=0)if(Kt.split("/").length-1==1)Zt.push({key:"Filter",value:Kt});else{Zt.push({key:"Filter",value:"["+Kt+"]"});for(var me=0;me<Zt.length;me+=1)if(Zt[me].key==="DecodeParms"){for(var De=[],Xe=0;Xe<Tt.reverseChain.split("/").length-1;Xe+=1)De.push("null");De.push(Zt[me].value),Zt[me].value="["+De.join(" ")+"]"}}M("<<");for(var Ee=0;Ee<Zt.length;Ee++)M("/"+Zt[Ee].key+" "+Zt[Ee].value);M(">>"),Tt.data.length!==0&&(M("stream"),M(Et(Tt.data)),M("endstream"))},bi=p.__private__.putPage=function(c){var v=c.number,O=c.data,z=c.objId,K=c.contentsObjId;hn(z,!0),M("<</Type /Page"),M("/Parent "+c.rootDictionaryObjId+" 0 R"),M("/Resources "+c.resourceDictionaryObjId+" 0 R"),M("/MediaBox ["+parseFloat(Y(c.mediaBox.bottomLeftX))+" "+parseFloat(Y(c.mediaBox.bottomLeftY))+" "+Y(c.mediaBox.topRightX)+" "+Y(c.mediaBox.topRightY)+"]"),c.cropBox!==null&&M("/CropBox ["+Y(c.cropBox.bottomLeftX)+" "+Y(c.cropBox.bottomLeftY)+" "+Y(c.cropBox.topRightX)+" "+Y(c.cropBox.topRightY)+"]"),c.bleedBox!==null&&M("/BleedBox ["+Y(c.bleedBox.bottomLeftX)+" "+Y(c.bleedBox.bottomLeftY)+" "+Y(c.bleedBox.topRightX)+" "+Y(c.bleedBox.topRightY)+"]"),c.trimBox!==null&&M("/TrimBox ["+Y(c.trimBox.bottomLeftX)+" "+Y(c.trimBox.bottomLeftY)+" "+Y(c.trimBox.topRightX)+" "+Y(c.trimBox.topRightY)+"]"),c.artBox!==null&&M("/ArtBox ["+Y(c.artBox.bottomLeftX)+" "+Y(c.artBox.bottomLeftY)+" "+Y(c.artBox.topRightX)+" "+Y(c.artBox.topRightY)+"]"),typeof c.userUnit=="number"&&c.userUnit!==1&&M("/UserUnit "+c.userUnit),we.publish("putPage",{objId:z,pageContext:$t[v],pageNumber:v,page:O}),M("/Contents "+K+" 0 R"),M(">>"),M("endobj");var dt=O.join(`
|
7
7
|
`);return B===q&&(dt+=`
|
@@ -41,7 +41,7 @@ T* `):c.join(` Tj
|
|
41
41
|
`),n}},Cross:{createAppearanceStream:function(t){var n={D:{Off:Ft.RadioButton.Cross.OffPushDown},N:{}};return n.N[t]=Ft.RadioButton.Cross.YesNormal,n.D[t]=Ft.RadioButton.Cross.YesPushDown,n},getCA:function(){return"8"},YesNormal:function(t){var n=Ar(t);n.scope=t.scope;var e=[],r=Ft.internal.calculateCross(t);return e.push("q"),e.push("1 1 "+Xt(Ft.internal.getWidth(t)-2)+" "+Xt(Ft.internal.getHeight(t)-2)+" re"),e.push("W"),e.push("n"),e.push(Xt(r.x1.x)+" "+Xt(r.x1.y)+" m"),e.push(Xt(r.x2.x)+" "+Xt(r.x2.y)+" l"),e.push(Xt(r.x4.x)+" "+Xt(r.x4.y)+" m"),e.push(Xt(r.x3.x)+" "+Xt(r.x3.y)+" l"),e.push("s"),e.push("Q"),n.stream=e.join(`
|
42
42
|
`),n},YesPushDown:function(t){var n=Ar(t);n.scope=t.scope;var e=Ft.internal.calculateCross(t),r=[];return r.push("0.749023 g"),r.push("0 0 "+Xt(Ft.internal.getWidth(t))+" "+Xt(Ft.internal.getHeight(t))+" re"),r.push("f"),r.push("q"),r.push("1 1 "+Xt(Ft.internal.getWidth(t)-2)+" "+Xt(Ft.internal.getHeight(t)-2)+" re"),r.push("W"),r.push("n"),r.push(Xt(e.x1.x)+" "+Xt(e.x1.y)+" m"),r.push(Xt(e.x2.x)+" "+Xt(e.x2.y)+" l"),r.push(Xt(e.x4.x)+" "+Xt(e.x4.y)+" m"),r.push(Xt(e.x3.x)+" "+Xt(e.x3.y)+" l"),r.push("s"),r.push("Q"),n.stream=r.join(`
|
43
43
|
`),n},OffPushDown:function(t){var n=Ar(t);n.scope=t.scope;var e=[];return e.push("0.749023 g"),e.push("0 0 "+Xt(Ft.internal.getWidth(t))+" "+Xt(Ft.internal.getHeight(t))+" re"),e.push("f"),n.stream=e.join(`
|
44
|
-
`),n}}},createDefaultAppearanceStream:function(t){var n=t.scope.internal.getFont(t.fontName,t.fontStyle).id,e=t.scope.__private__.encodeColorString(t.color);return"/"+n+" "+t.fontSize+" Tf "+e}};Ft.internal={Bezier_C:.551915024494,calculateCross:function(t){var n=Ft.internal.getWidth(t),e=Ft.internal.getHeight(t),r=Math.min(n,e);return{x1:{x:(n-r)/2,y:(e-r)/2+r},x2:{x:(n-r)/2+r,y:(e-r)/2},x3:{x:(n-r)/2,y:(e-r)/2},x4:{x:(n-r)/2+r,y:(e-r)/2+r}}}},Ft.internal.getWidth=function(t){var n=0;return Ne(t)==="object"&&(n=Nu(t.Rect[2])),n},Ft.internal.getHeight=function(t){var n=0;return Ne(t)==="object"&&(n=Nu(t.Rect[3])),n};var gd=ze.addField=function(t){if(pd(this,t),!(t instanceof cr))throw new Error("Invalid argument passed to jsPDF.addField.");var n;return(n=t).scope.internal.acroformPlugin.printedOut&&(n.scope.internal.acroformPlugin.printedOut=!1,n.scope.internal.acroformPlugin.acroFormDictionaryRoot=null),n.scope.internal.acroformPlugin.acroFormDictionaryRoot.Fields.push(n),t.page=t.scope.internal.getCurrentPageInfo().pageNumber,this};ze.AcroFormChoiceField=La,ze.AcroFormListBox=Sa,ze.AcroFormComboBox=ka,ze.AcroFormEditBox=zs,ze.AcroFormButton=ln,ze.AcroFormPushButton=Us,ze.AcroFormRadioButton=Pa,ze.AcroFormCheckBox=qs,ze.AcroFormTextField=Ki,ze.AcroFormPasswordField=Hs,ze.AcroFormAppearance=Ft,ze.AcroForm={ChoiceField:La,ListBox:Sa,ComboBox:ka,EditBox:zs,Button:ln,PushButton:Us,RadioButton:Pa,CheckBox:qs,TextField:Ki,PasswordField:Hs,Appearance:Ft},Dt.AcroForm={ChoiceField:La,ListBox:Sa,ComboBox:ka,EditBox:zs,Button:ln,PushButton:Us,RadioButton:Pa,CheckBox:qs,TextField:Ki,PasswordField:Hs,Appearance:Ft};var mg=Dt.AcroForm;function Yu(t){return t.reduce(function(n,e,r){return n[e]=r,n},{})}(function(t){var n="addImage_";t.__addimage__={};var e="UNKNOWN",r={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=t.__addimage__.getImageFileTypeByImageData=function(S,C){var H,U,it,lt,ct,et=e;if((C=C||e)==="RGBA"||S.data!==void 0&&S.data instanceof Uint8ClampedArray&&"height"in S&&"width"in S)return"RGBA";if(vt(S))for(ct in r)for(it=r[ct],H=0;H<it.length;H+=1){for(lt=!0,U=0;U<it[H].length;U+=1)if(it[H][U]!==void 0&&it[H][U]!==S[U]){lt=!1;break}if(lt===!0){et=ct;break}}else for(ct in r)for(it=r[ct],H=0;H<it.length;H+=1){for(lt=!0,U=0;U<it[H].length;U+=1)if(it[H][U]!==void 0&&it[H][U]!==S.charCodeAt(U)){lt=!1;break}if(lt===!0){et=ct;break}}return et===e&&C!==e&&(et=C),et},a=function S(C){for(var H=this.internal.write,U=this.internal.putStream,it=(0,this.internal.getFilters)();it.indexOf("FlateEncode")!==-1;)it.splice(it.indexOf("FlateEncode"),1);C.objectId=this.internal.newObject();var lt=[];if(lt.push({key:"Type",value:"/XObject"}),lt.push({key:"Subtype",value:"/Image"}),lt.push({key:"Width",value:C.width}),lt.push({key:"Height",value:C.height}),C.colorSpace===L.INDEXED?lt.push({key:"ColorSpace",value:"[/Indexed /DeviceRGB "+(C.palette.length/3-1)+" "+("sMask"in C&&C.sMask!==void 0?C.objectId+2:C.objectId+1)+" 0 R]"}):(lt.push({key:"ColorSpace",value:"/"+C.colorSpace}),C.colorSpace===L.DEVICE_CMYK&<.push({key:"Decode",value:"[1 0 1 0 1 0 1 0]"})),lt.push({key:"BitsPerComponent",value:C.bitsPerComponent}),"decodeParameters"in C&&C.decodeParameters!==void 0&<.push({key:"DecodeParms",value:"<<"+C.decodeParameters+">>"}),"transparency"in C&&Array.isArray(C.transparency)&&C.transparency.length>0){for(var ct="",et=0,ut=C.transparency.length;et<ut;et++)ct+=C.transparency[et]+" "+C.transparency[et]+" ";lt.push({key:"Mask",value:"["+ct+"]"})}C.sMask!==void 0&<.push({key:"SMask",value:C.objectId+1+" 0 R"});var Nt=C.filter!==void 0?["/"+C.filter]:void 0;if(U({data:C.data,additionalKeyValues:lt,alreadyAppliedFilters:Nt,objectId:C.objectId}),H("endobj"),"sMask"in C&&C.sMask!==void 0){var wt,x=(wt=C.sMaskBitsPerComponent)!==null&&wt!==void 0?wt:C.bitsPerComponent,D={width:C.width,height:C.height,colorSpace:"DeviceGray",bitsPerComponent:x,data:C.sMask};"filter"in C&&(D.decodeParameters="/Predictor ".concat(C.predictor," /Colors 1 /BitsPerComponent ").concat(x," /Columns ").concat(C.width),D.filter=C.filter),S.call(this,D)}if(C.colorSpace===L.INDEXED){var R=this.internal.newObject();U({data:Y(new Uint8Array(C.palette)),objectId:R}),H("endobj")}},h=function(){var S=this.internal.collections[n+"images"];for(var C in S)a.call(this,S[C])},l=function(){var S,C=this.internal.collections[n+"images"],H=this.internal.write;for(var U in C)H("/I"+(S=C[U]).index,S.objectId,"0","R")},f=function(){this.internal.collections[n+"images"]||(this.internal.collections[n+"images"]={},this.internal.events.subscribe("putResources",h),this.internal.events.subscribe("putXobjectDict",l))},u=function(){var S=this.internal.collections[n+"images"];return f.call(this),S},g=function(){return Object.keys(this.internal.collections[n+"images"]).length},w=function(S){return typeof t["process"+S.toUpperCase()]=="function"},A=function(S){return Ne(S)==="object"&&S.nodeType===1},p=function(S,C){if(S.nodeName==="IMG"&&S.hasAttribute("src")){var H=""+S.getAttribute("src");if(H.indexOf("data:image/")===0)return Bs(unescape(H).split("base64,").pop());var U=t.loadFile(H,!0);if(U!==void 0)return U}if(S.nodeName==="CANVAS"){if(S.width===0||S.height===0)throw new Error("Given canvas must have data. Canvas width: "+S.width+", height: "+S.height);var it;switch(C){case"PNG":it="image/png";break;case"WEBP":it="image/webp";break;default:it="image/jpeg"}return Bs(S.toDataURL(it,1).split("base64,").pop())}},I=function(S){var C=this.internal.collections[n+"images"];if(C){for(var H in C)if(S===C[H].alias)return C[H]}},P=function(S,C,H){return S||C||(S=-96,C=-96),S<0&&(S=-1*H.width*72/S/this.internal.scaleFactor),C<0&&(C=-1*H.height*72/C/this.internal.scaleFactor),S===0&&(S=C*H.width/H.height),C===0&&(C=S*H.height/H.width),[S,C]},T=function(S,C,H,U,it,lt){var ct=P.call(this,H,U,it),et=this.internal.getCoordinateString,ut=this.internal.getVerticalCoordinateString,Nt=u.call(this);if(H=ct[0],U=ct[1],Nt[it.index]=it,lt){lt*=Math.PI/180;var wt=Math.cos(lt),x=Math.sin(lt),D=function(V){return V.toFixed(4)},R=[D(wt),D(x),D(-1*x),D(wt),0,0,"cm"]}this.internal.write("q"),lt?(this.internal.write([1,"0","0",1,et(S),ut(C+U),"cm"].join(" ")),this.internal.write(R.join(" ")),this.internal.write([et(H),"0","0",et(U),"0","0","cm"].join(" "))):this.internal.write([et(H),"0","0",et(U),et(S),ut(C+U),"cm"].join(" ")),this.isAdvancedAPI()&&this.internal.write([1,0,0,-1,0,0,"cm"].join(" ")),this.internal.write("/I"+it.index+" Do"),this.internal.write("Q")},L=t.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"};t.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 W=t.image_compression={NONE:"NONE",FAST:"FAST",MEDIUM:"MEDIUM",SLOW:"SLOW"},q=t.__addimage__.sHashCode=function(S){var C,H,U=0;if(typeof S=="string")for(H=S.length,C=0;C<H;C++)U=(U<<5)-U+S.charCodeAt(C),U|=0;else if(vt(S))for(H=S.byteLength/2,C=0;C<H;C++)U=(U<<5)-U+S[C],U|=0;return U},B=t.__addimage__.validateStringAsBase64=function(S){(S=S||"").toString().trim();var C=!0;return S.length===0&&(C=!1),S.length%4!=0&&(C=!1),/^[A-Za-z0-9+/]+$/.test(S.substr(0,S.length-2))===!1&&(C=!1),/^[A-Za-z0-9/][A-Za-z0-9+/]|[A-Za-z0-9+/]=|==$/.test(S.substr(-2))===!1&&(C=!1),C},rt=t.__addimage__.extractImageFromDataUrl=function(S){if(S==null||!(S=S.trim()).startsWith("data:"))return null;var C=S.indexOf(",");return C<0?null:S.substring(0,C).trim().endsWith("base64")?S.substring(C+1):null};t.__addimage__.isArrayBuffer=function(S){return S instanceof ArrayBuffer};var vt=t.__addimage__.isArrayBufferView=function(S){return S instanceof Int8Array||S instanceof Uint8Array||S instanceof Uint8ClampedArray||S instanceof Int16Array||S instanceof Uint16Array||S instanceof Int32Array||S instanceof Uint32Array||S instanceof Float32Array||S instanceof Float64Array},pt=t.__addimage__.binaryStringToUint8Array=function(S){for(var C=S.length,H=new Uint8Array(C),U=0;U<C;U++)H[U]=S.charCodeAt(U);return H},Y=t.__addimage__.arrayBufferToBinaryString=function(S){for(var C="",H=vt(S)?S:new Uint8Array(S),U=0;U<H.length;U+=8192)C+=String.fromCharCode.apply(null,H.subarray(U,U+8192));return C};t.addImage=function(){var S,C,H,U,it,lt,ct,et,ut;if(typeof arguments[1]=="number"?(C=e,H=arguments[1],U=arguments[2],it=arguments[3],lt=arguments[4],ct=arguments[5],et=arguments[6],ut=arguments[7]):(C=arguments[1],H=arguments[2],U=arguments[3],it=arguments[4],lt=arguments[5],ct=arguments[6],et=arguments[7],ut=arguments[8]),Ne(S=arguments[0])==="object"&&!A(S)&&"imageData"in S){var Nt=S;S=Nt.imageData,C=Nt.format||C||e,H=Nt.x||H||0,U=Nt.y||U||0,it=Nt.w||Nt.width||it,lt=Nt.h||Nt.height||lt,ct=Nt.alias||ct,et=Nt.compression||et,ut=Nt.rotation||Nt.angle||ut}var wt=this.internal.getFilters();if(et===void 0&&wt.indexOf("FlateEncode")!==-1&&(et="SLOW"),isNaN(H)||isNaN(U))throw new Error("Invalid coordinates passed to jsPDF.addImage");f.call(this);var x=j.call(this,S,C,ct,et);return T.call(this,H,U,it,lt,x,ut),this};var j=function(S,C,H,U){var it,lt,ct;if(typeof S=="string"&&i(S)===e){S=unescape(S);var et=Q(S,!1);(et!==""||(et=t.loadFile(S,!0))!==void 0)&&(S=et)}if(A(S)&&(S=p(S,C)),C=i(S,C),!w(C))throw new Error("addImage does not support files of type '"+C+"', please ensure that a plugin for '"+C+"' support is added.");if(((ct=H)==null||ct.length===0)&&(H=(function(ut){return typeof ut=="string"||vt(ut)?q(ut):vt(ut.data)?q(ut.data):null})(S)),(it=I.call(this,H))||(S instanceof Uint8Array||C==="RGBA"||(lt=S,S=pt(S)),it=this["process"+C.toUpperCase()](S,g.call(this),H,(function(ut){return ut&&typeof ut=="string"&&(ut=ut.toUpperCase()),ut in t.image_compression?ut:W.NONE})(U),lt)),!it)throw new Error("An unknown error occurred whilst processing the image.");return it},Q=t.__addimage__.convertBase64ToBinaryString=function(S,C){C=typeof C!="boolean"||C;var H,U="";if(typeof S=="string"){var it;H=(it=rt(S))!==null&&it!==void 0?it:S;try{U=Bs(H)}catch(lt){if(C)throw B(H)?new Error("atob-Error in jsPDF.convertBase64ToBinaryString "+lt.message):new Error("Supplied Data is not a valid base64-String jsPDF.convertBase64ToBinaryString ")}}return U};t.getImageProperties=function(S){var C,H,U="";if(A(S)&&(S=p(S)),typeof S=="string"&&i(S)===e&&((U=Q(S,!1))===""&&(U=t.loadFile(S)||""),S=U),H=i(S),!w(H))throw new Error("addImage does not support files of type '"+H+"', please ensure that a plugin for '"+H+"' support is added.");if(S instanceof Uint8Array||(S=pt(S)),!(C=this["process"+H.toUpperCase()](S)))throw new Error("An unknown error occurred whilst processing the image");return C.fileType=H,C}})(Dt.API),(function(t){var n=function(e){if(e!==void 0&&e!="")return!0};Dt.API.events.push(["addPage",function(e){this.internal.getPageInfo(e.pageNumber).pageContext.annotations=[]}]),t.events.push(["putPage",function(e){for(var r,i,a,h=this.internal.getCoordinateString,l=this.internal.getVerticalCoordinateString,f=this.internal.getPageInfoByObjId(e.objId),u=e.pageContext.annotations,g=!1,w=0;w<u.length&&!g;w++)switch((r=u[w]).type){case"link":(n(r.options.url)||n(r.options.pageNumber))&&(g=!0);break;case"reference":case"text":case"freetext":g=!0}if(g!=0){this.internal.write("/Annots [");for(var A=0;A<u.length;A++){r=u[A];var p=this.internal.pdfEscape,I=this.internal.getEncryptor(e.objId);switch(r.type){case"reference":this.internal.write(" "+r.object.objId+" 0 R ");break;case"text":var P=this.internal.newAdditionalObject(),T=this.internal.newAdditionalObject(),L=this.internal.getEncryptor(P.objId),W=r.title||"Note";a="<</Type /Annot /Subtype /Text "+(i="/Rect ["+h(r.bounds.x)+" "+l(r.bounds.y+r.bounds.h)+" "+h(r.bounds.x+r.bounds.w)+" "+l(r.bounds.y)+"] ")+"/Contents ("+p(L(r.contents))+")",a+=" /Popup "+T.objId+" 0 R",a+=" /P "+f.objId+" 0 R",a+=" /T ("+p(L(W))+") >>",P.content=a;var q=P.objId+" 0 R";a="<</Type /Annot /Subtype /Popup "+(i="/Rect ["+h(r.bounds.x+30)+" "+l(r.bounds.y+r.bounds.h)+" "+h(r.bounds.x+r.bounds.w+30)+" "+l(r.bounds.y)+"] ")+" /Parent "+q,r.open&&(a+=" /Open true"),a+=" >>",T.content=a,this.internal.write(P.objId,"0 R",T.objId,"0 R");break;case"freetext":i="/Rect ["+h(r.bounds.x)+" "+l(r.bounds.y)+" "+h(r.bounds.x+r.bounds.w)+" "+l(r.bounds.y+r.bounds.h)+"] ";var B=r.color||"#000000";a="<</Type /Annot /Subtype /FreeText "+i+"/Contents ("+p(I(r.contents))+")",a+=" /DS(font: Helvetica,sans-serif 12.0pt; text-align:left; color:#"+B+")",a+=" /Border [0 0 0]",a+=" >>",this.internal.write(a);break;case"link":if(r.options.name){var rt=this.annotations._nameMap[r.options.name];r.options.pageNumber=rt.page,r.options.top=rt.y}else r.options.top||(r.options.top=0);if(i="/Rect ["+r.finalBounds.x+" "+r.finalBounds.y+" "+r.finalBounds.w+" "+r.finalBounds.h+"] ",a="",r.options.url)a="<</Type /Annot /Subtype /Link "+i+"/Border [0 0 0] /A <</S /URI /URI ("+p(I(r.options.url))+") >>";else if(r.options.pageNumber)switch(a="<</Type /Annot /Subtype /Link "+i+"/Border [0 0 0] /Dest ["+this.internal.getPageInfo(r.options.pageNumber).objId+" 0 R",r.options.magFactor=r.options.magFactor||"XYZ",r.options.magFactor){case"Fit":a+=" /Fit]";break;case"FitH":a+=" /FitH "+r.options.top+"]";break;case"FitV":r.options.left=r.options.left||0,a+=" /FitV "+r.options.left+"]";break;default:var vt=l(r.options.top);r.options.left=r.options.left||0,r.options.zoom===void 0&&(r.options.zoom=0),a+=" /XYZ "+r.options.left+" "+vt+" "+r.options.zoom+"]"}a!=""&&(a+=" >>",this.internal.write(a))}}this.internal.write("]")}}]),t.createAnnotation=function(e){var r=this.internal.getCurrentPageInfo();switch(e.type){case"link":this.link(e.bounds.x,e.bounds.y,e.bounds.w,e.bounds.h,e);break;case"text":case"freetext":r.pageContext.annotations.push(e)}},t.link=function(e,r,i,a,h){var l=this.internal.getCurrentPageInfo(),f=this.internal.getCoordinateString,u=this.internal.getVerticalCoordinateString;l.pageContext.annotations.push({finalBounds:{x:f(e),y:u(r),w:f(e+i),h:u(r+a)},options:h,type:"link"})},t.textWithLink=function(e,r,i,a){var h,l,f=this.getTextWidth(e),u=this.internal.getLineHeight()/this.internal.scaleFactor;if(a.maxWidth!==void 0){l=a.maxWidth;var g=this.splitTextToSize(e,l).length;h=Math.ceil(u*g)}else l=f,h=u;return this.text(e,r,i,a),i+=.2*u,a.align==="center"&&(r-=f/2),a.align==="right"&&(r-=f),this.link(r,i-u,l,h,a),f},t.getTextWidth=function(e){var r=this.internal.getFontSize();return this.getStringUnitWidth(e)*r/this.internal.scaleFactor}})(Dt.API),(function(t){var n={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]},e={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}},r={1612:64606,1613:64607,1614:64608,1615:64609,1616:64610},i=[1570,1571,1573,1575];t.__arabicParser__={};var a=t.__arabicParser__.isInArabicSubstitutionA=function(P){return n[P.charCodeAt(0)]!==void 0},h=t.__arabicParser__.isArabicLetter=function(P){return typeof P=="string"&&/^[\u0600-\u06FF\u0750-\u077F\u08A0-\u08FF\uFB50-\uFDFF\uFE70-\uFEFF]+$/.test(P)},l=t.__arabicParser__.isArabicEndLetter=function(P){return h(P)&&a(P)&&n[P.charCodeAt(0)].length<=2},f=t.__arabicParser__.isArabicAlfLetter=function(P){return h(P)&&i.indexOf(P.charCodeAt(0))>=0};t.__arabicParser__.arabicLetterHasIsolatedForm=function(P){return h(P)&&a(P)&&n[P.charCodeAt(0)].length>=1};var u=t.__arabicParser__.arabicLetterHasFinalForm=function(P){return h(P)&&a(P)&&n[P.charCodeAt(0)].length>=2};t.__arabicParser__.arabicLetterHasInitialForm=function(P){return h(P)&&a(P)&&n[P.charCodeAt(0)].length>=3};var g=t.__arabicParser__.arabicLetterHasMedialForm=function(P){return h(P)&&a(P)&&n[P.charCodeAt(0)].length==4},w=t.__arabicParser__.resolveLigatures=function(P){var T=0,L=e,W="",q=0;for(T=0;T<P.length;T+=1)L[P.charCodeAt(T)]!==void 0?(q++,typeof(L=L[P.charCodeAt(T)])=="number"&&(W+=String.fromCharCode(L),L=e,q=0),T===P.length-1&&(L=e,W+=P.charAt(T-(q-1)),T-=q-1,q=0)):(L=e,W+=P.charAt(T-q),T-=q,q=0);return W};t.__arabicParser__.isArabicDiacritic=function(P){return P!==void 0&&r[P.charCodeAt(0)]!==void 0};var A=t.__arabicParser__.getCorrectForm=function(P,T,L){return h(P)?a(P)===!1?-1:!u(P)||!h(T)&&!h(L)||!h(L)&&l(T)||l(P)&&!h(T)||l(P)&&f(T)||l(P)&&l(T)?0:g(P)&&h(T)&&!l(T)&&h(L)&&u(L)?3:l(P)||!h(L)?1:2:-1},p=function(P){var T=0,L=0,W=0,q="",B="",rt="",vt=(P=P||"").split("\\s+"),pt=[];for(T=0;T<vt.length;T+=1){for(pt.push(""),L=0;L<vt[T].length;L+=1)q=vt[T][L],B=vt[T][L-1],rt=vt[T][L+1],h(q)?(W=A(q,B,rt),pt[T]+=W!==-1?String.fromCharCode(n[q.charCodeAt(0)][W]):q):pt[T]+=q;pt[T]=w(pt[T])}return pt.join(" ")},I=t.__arabicParser__.processArabic=t.processArabic=function(){var P,T=typeof arguments[0]=="string"?arguments[0]:arguments[0].text,L=[];if(Array.isArray(T)){var W=0;for(L=[],W=0;W<T.length;W+=1)Array.isArray(T[W])?L.push([p(T[W][0]),T[W][1],T[W][2]]):L.push([p(T[W])]);P=L}else P=p(T);return typeof arguments[0]=="string"?P:(arguments[0].text=P,arguments[0])};t.events.push(["preProcessText",I])})(Dt.API),Dt.API.autoPrint=function(t){var n;return(t=t||{}).variant=t.variant||"non-conform",t.variant==="javascript"?this.addJS("print({});"):(this.internal.events.subscribe("postPutResources",function(){n=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 "+n+" 0 R")})),this},(function(t){var n=function(){var e=void 0;Object.defineProperty(this,"pdf",{get:function(){return e},set:function(l){e=l}});var r=150;Object.defineProperty(this,"width",{get:function(){return r},set:function(l){r=isNaN(l)||Number.isInteger(l)===!1||l<0?150:l,this.getContext("2d").pageWrapXEnabled&&(this.getContext("2d").pageWrapX=r+1)}});var i=300;Object.defineProperty(this,"height",{get:function(){return i},set:function(l){i=isNaN(l)||Number.isInteger(l)===!1||l<0?300:l,this.getContext("2d").pageWrapYEnabled&&(this.getContext("2d").pageWrapY=i+1)}});var a=[];Object.defineProperty(this,"childNodes",{get:function(){return a},set:function(l){a=l}});var h={};Object.defineProperty(this,"style",{get:function(){return h},set:function(l){h=l}}),Object.defineProperty(this,"parentNode",{})};n.prototype.getContext=function(e,r){var i;if((e=e||"2d")!=="2d")return null;for(i in r)this.pdf.context2d.hasOwnProperty(i)&&(this.pdf.context2d[i]=r[i]);return this.pdf.context2d._canvas=this,this.pdf.context2d},n.prototype.toDataURL=function(){throw new Error("toDataURL is not implemented.")},t.events.push(["initialized",function(){this.canvas=new n,this.canvas.pdf=this}])})(Dt.API),(function(t){var n={left:0,top:0,bottom:0,right:0},e=!1,r=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({},n),this.internal.__cell__.margins.width=this.getPageWidth(),i.call(this))},i=function(){this.internal.__cell__.lastCell=new a,this.internal.__cell__.pages=1},a=function(){var f=arguments[0];Object.defineProperty(this,"x",{enumerable:!0,get:function(){return f},set:function(P){f=P}});var u=arguments[1];Object.defineProperty(this,"y",{enumerable:!0,get:function(){return u},set:function(P){u=P}});var g=arguments[2];Object.defineProperty(this,"width",{enumerable:!0,get:function(){return g},set:function(P){g=P}});var w=arguments[3];Object.defineProperty(this,"height",{enumerable:!0,get:function(){return w},set:function(P){w=P}});var A=arguments[4];Object.defineProperty(this,"text",{enumerable:!0,get:function(){return A},set:function(P){A=P}});var p=arguments[5];Object.defineProperty(this,"lineNumber",{enumerable:!0,get:function(){return p},set:function(P){p=P}});var I=arguments[6];return Object.defineProperty(this,"align",{enumerable:!0,get:function(){return I},set:function(P){I=P}}),this};a.prototype.clone=function(){return new a(this.x,this.y,this.width,this.height,this.text,this.lineNumber,this.align)},a.prototype.toArray=function(){return[this.x,this.y,this.width,this.height,this.text,this.lineNumber,this.align]},t.setHeaderFunction=function(f){return r.call(this),this.internal.__cell__.headerFunction=typeof f=="function"?f:void 0,this},t.getTextDimensions=function(f,u){r.call(this);var g=(u=u||{}).fontSize||this.getFontSize(),w=u.font||this.getFont(),A=u.scaleFactor||this.internal.scaleFactor,p=0,I=0,P=0,T=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 L=u.maxWidth;L>0?typeof f=="string"?f=this.splitTextToSize(f,L):Object.prototype.toString.call(f)==="[object Array]"&&(f=f.reduce(function(q,B){return q.concat(T.splitTextToSize(B,L))},[])):f=Array.isArray(f)?f:[f];for(var W=0;W<f.length;W++)p<(P=this.getStringUnitWidth(f[W],{font:w})*g)&&(p=P);return p!==0&&(I=f.length),{w:p/=A,h:Math.max((I*g*this.getLineHeightFactor()-g*(this.getLineHeightFactor()-1))/A,0)}},t.cellAddPage=function(){r.call(this),this.addPage();var f=this.internal.__cell__.margins||n;return this.internal.__cell__.lastCell=new a(f.left,f.top,void 0,void 0),this.internal.__cell__.pages+=1,this};var h=t.cell=function(){var f;f=arguments[0]instanceof a?arguments[0]:new a(arguments[0],arguments[1],arguments[2],arguments[3],arguments[4],arguments[5]),r.call(this);var u=this.internal.__cell__.lastCell,g=this.internal.__cell__.padding,w=this.internal.__cell__.margins||n,A=this.internal.__cell__.tableHeaderRow,p=this.internal.__cell__.printHeaders;return u.lineNumber!==void 0&&(u.lineNumber===f.lineNumber?(f.x=(u.x||0)+(u.width||0),f.y=u.y||0):u.y+u.height+f.height+w.bottom>this.getPageHeight()?(this.cellAddPage(),f.y=w.top,p&&A&&(this.printHeaderRow(f.lineNumber,!0),f.y+=A[0].height)):f.y=u.y+u.height||f.y),f.text[0]!==void 0&&(this.rect(f.x,f.y,f.width,f.height,e===!0?"FD":void 0),f.align==="right"?this.text(f.text,f.x+f.width-g,f.y+g,{align:"right",baseline:"top"}):f.align==="center"?this.text(f.text,f.x+f.width/2,f.y+g,{align:"center",baseline:"top",maxWidth:f.width-g-g}):this.text(f.text,f.x+g,f.y+g,{align:"left",baseline:"top",maxWidth:f.width-g-g})),this.internal.__cell__.lastCell=f,this};t.table=function(f,u,g,w,A){if(r.call(this),!g)throw new Error("No data for PDF table.");var p,I,P,T,L=[],W=[],q=[],B={},rt={},vt=[],pt=[],Y=(A=A||{}).autoSize||!1,j=A.printHeaders!==!1,Q=A.css&&A.css["font-size"]!==void 0?16*A.css["font-size"]:A.fontSize||12,S=A.margins||Object.assign({width:this.getPageWidth()},n),C=typeof A.padding=="number"?A.padding:3,H=A.headerBackgroundColor||"#c8c8c8",U=A.headerTextColor||"#000";if(i.call(this),this.internal.__cell__.printHeaders=j,this.internal.__cell__.margins=S,this.internal.__cell__.table_font_size=Q,this.internal.__cell__.padding=C,this.internal.__cell__.headerBackgroundColor=H,this.internal.__cell__.headerTextColor=U,this.setFontSize(Q),w==null)W=L=Object.keys(g[0]),q=L.map(function(){return"left"});else if(Array.isArray(w)&&Ne(w[0])==="object")for(L=w.map(function(Nt){return Nt.name}),W=w.map(function(Nt){return Nt.prompt||Nt.name||""}),q=w.map(function(Nt){return Nt.align||"left"}),p=0;p<w.length;p+=1)rt[w[p].name]=.7499990551181103*w[p].width;else Array.isArray(w)&&typeof w[0]=="string"&&(W=L=w,q=L.map(function(){return"left"}));if(Y||Array.isArray(w)&&typeof w[0]=="string")for(p=0;p<L.length;p+=1){for(B[T=L[p]]=g.map(function(Nt){return Nt[T]}),this.setFont(void 0,"bold"),vt.push(this.getTextDimensions(W[p],{fontSize:this.internal.__cell__.table_font_size,scaleFactor:this.internal.scaleFactor}).w),I=B[T],this.setFont(void 0,"normal"),P=0;P<I.length;P+=1)vt.push(this.getTextDimensions(I[P],{fontSize:this.internal.__cell__.table_font_size,scaleFactor:this.internal.scaleFactor}).w);rt[T]=Math.max.apply(null,vt)+C+C,vt=[]}if(j){var it={};for(p=0;p<L.length;p+=1)it[L[p]]={},it[L[p]].text=W[p],it[L[p]].align=q[p];var lt=l.call(this,it,rt);pt=L.map(function(Nt){return new a(f,u,rt[Nt],lt,it[Nt].text,void 0,it[Nt].align)}),this.setTableHeaderRow(pt),this.printHeaderRow(1,!1)}var ct=w.reduce(function(Nt,wt){return Nt[wt.name]=wt.align,Nt},{});for(p=0;p<g.length;p+=1){"rowStart"in A&&A.rowStart instanceof Function&&A.rowStart({row:p,data:g[p]},this);var et=l.call(this,g[p],rt);for(P=0;P<L.length;P+=1){var ut=g[p][L[P]];"cellStart"in A&&A.cellStart instanceof Function&&A.cellStart({row:p,col:P,data:ut},this),h.call(this,new a(f,u,rt[L[P]],et,ut,p+2,ct[L[P]]))}}return this.internal.__cell__.table_x=f,this.internal.__cell__.table_y=u,this};var l=function(f,u){var g=this.internal.__cell__.padding,w=this.internal.__cell__.table_font_size,A=this.internal.scaleFactor;return Object.keys(f).map(function(p){var I=f[p];return this.splitTextToSize(I.hasOwnProperty("text")?I.text:I,u[p]-g-g)},this).map(function(p){return this.getLineHeightFactor()*p.length*w/A+g+g},this).reduce(function(p,I){return Math.max(p,I)},0)};t.setTableHeaderRow=function(f){r.call(this),this.internal.__cell__.tableHeaderRow=f},t.printHeaderRow=function(f,u){if(r.call(this),!this.internal.__cell__.tableHeaderRow)throw new Error("Property tableHeaderRow does not exist.");var g;if(e=!0,typeof this.internal.__cell__.headerFunction=="function"){var w=this.internal.__cell__.headerFunction(this,this.internal.__cell__.pages);this.internal.__cell__.lastCell=new a(w[0],w[1],w[2],w[3],void 0,-1)}this.setFont(void 0,"bold");for(var A=[],p=0;p<this.internal.__cell__.tableHeaderRow.length;p+=1){g=this.internal.__cell__.tableHeaderRow[p].clone(),u&&(g.y=this.internal.__cell__.margins.top||0,A.push(g)),g.lineNumber=f;var I=this.getTextColor();this.setTextColor(this.internal.__cell__.headerTextColor),this.setFillColor(this.internal.__cell__.headerBackgroundColor),h.call(this,g),this.setTextColor(I)}A.length>0&&this.setTableHeaderRow(A),this.setFont(void 0,"normal"),e=!1}})(Dt.API);var Ku={italic:["italic","oblique","normal"],oblique:["oblique","italic","normal"],normal:["normal","oblique","italic"]},Xu=["ultra-condensed","extra-condensed","condensed","semi-condensed","normal","semi-expanded","expanded","extra-expanded","ultra-expanded"],Fh=Yu(Xu),Ju=[100,200,300,400,500,600,700,800,900],md=Yu(Ju);function Ah(t){var n=t.family.replace(/"|'/g,"").toLowerCase(),e=(function(a){return Ku[a=a||"normal"]?a:"normal"})(t.style),r=(function(a){return a?typeof a=="number"?a>=100&&a<=900&&a%100==0?a:400:/^\d00$/.test(a)?parseInt(a):a==="bold"?700:400:400})(t.weight),i=(function(a){return typeof Fh[a=a||"normal"]=="number"?a:"normal"})(t.stretch);return{family:n,style:e,weight:r,stretch:i,src:t.src||[],ref:t.ref||{name:n,style:[i,e,r].join(" ")}}}function Lu(t,n,e,r){var i;for(i=e;i>=0&&i<n.length;i+=r)if(t[n[i]])return t[n[i]];for(i=e;i>=0&&i<n.length;i-=r)if(t[n[i]])return t[n[i]]}var vd={"sans-serif":"helvetica",fixed:"courier",monospace:"courier",terminal:"courier",cursive:"times",fantasy:"times",serif:"times"},Su={caption:"times",icon:"times",menu:"times","message-box":"times","small-caption":"times","status-bar":"times"};function ku(t){return[t.stretch,t.style,t.weight,t.family].join(" ")}function Pu(t){return t.trimLeft()}function bd(t,n){for(var e=0;e<t.length;){if(t.charAt(e)===n)return[t.substring(0,e),t.substring(e+1)];e+=1}return null}function wd(t){var n=t.match(/^(-[a-z_]|[a-z_])[a-z0-9_-]*/i);return n===null?null:[n[0],t.substring(n[0].length)]}var Rs,Iu,Fu,_a,js,Eu,Cu,Ou,Nh=["times"];function Tu(t,n,e,r,i){var a=4,h=Mu;switch(i){case Dt.API.image_compression.FAST:a=1,h=Du;break;case Dt.API.image_compression.MEDIUM:a=6,h=Ru;break;case Dt.API.image_compression.SLOW:a=9,h=ju}t=(function(f,u,g,w){for(var A,p=f.length/u,I=new Uint8Array(f.length+p),P=[yd,Du,Mu,Ru,ju],T=0;T<p;T+=1){var L=T*u,W=f.subarray(L,L+u);if(w)I.set(w(W,g,A),L+T);else{for(var q=P.length,B=[],rt=0;rt<q;rt+=1)B[rt]=P[rt](W,g,A);var vt=xd(B.concat());I.set(B[vt],L+T)}A=W}return I})(t,n,Math.ceil(e*r/8),h);var l=ps(t,{level:a});return Dt.API.__addimage__.arrayBufferToBinaryString(l)}function yd(t){var n=Array.apply([],t);return n.unshift(0),n}function Du(t,n){var e=t.length,r=[];r[0]=1;for(var i=0;i<e;i+=1){var a=t[i-n]||0;r[i+1]=t[i]-a+256&255}return r}function Mu(t,n,e){var r=t.length,i=[];i[0]=2;for(var a=0;a<r;a+=1){var h=e&&e[a]||0;i[a+1]=t[a]-h+256&255}return i}function Ru(t,n,e){var r=t.length,i=[];i[0]=3;for(var a=0;a<r;a+=1){var h=t[a-n]||0,l=e&&e[a]||0;i[a+1]=t[a]+256-(h+l>>>1)&255}return i}function ju(t,n,e){var r=t.length,i=[];i[0]=4;for(var a=0;a<r;a+=1){var h=_d(t[a-n]||0,e&&e[a]||0,e&&e[a-n]||0);i[a+1]=t[a]-h+256&255}return i}function _d(t,n,e){if(t===n&&n===e)return t;var r=Math.abs(n-e),i=Math.abs(t-e),a=Math.abs(t+n-e-e);return r<=i&&r<=a?t:i<=a?n:e}function xd(t){var n=t.map(function(e){return e.reduce(function(r,i){return r+Math.abs(i)},0)});return n.indexOf(Math.min.apply(null,n))}function Lh(t,n,e){var r=n*e,i=Math.floor(r/8),a=16-(r-8*i+e),h=(1<<e)-1;return Qu(t,i)>>a&h}function Bu(t,n,e,r){var i=e*r,a=Math.floor(i/8),h=16-(i-8*a+r),l=(1<<r)-1,f=(n&l)<<h;(function(u,g,w){if(g+1<u.byteLength)u.setUint16(g,w,!1);else{var A=w>>8&255;u.setUint8(g,A)}})(t,a,Qu(t,a)&~(l<<h)&65535|f)}function Qu(t,n){return n+1<t.byteLength?t.getUint16(n,!1):t.getUint8(n)<<8}function Ad(t){var n=0;if(t[n++]!==71||t[n++]!==73||t[n++]!==70||t[n++]!==56||(t[n++]+1&253)!=56||t[n++]!==97)throw new Error("Invalid GIF 87a/89a header.");var e=t[n++]|t[n++]<<8,r=t[n++]|t[n++]<<8,i=t[n++],a=i>>7,h=1<<1+(7&i);t[n++],t[n++];var l=null,f=null;a&&(l=n,f=h,n+=3*h);var u=!0,g=[],w=0,A=null,p=0,I=null;for(this.width=e,this.height=r;u&&n<t.length;)switch(t[n++]){case 33:switch(t[n++]){case 255:if(t[n]!==11||t[n+1]==78&&t[n+2]==69&&t[n+3]==84&&t[n+4]==83&&t[n+5]==67&&t[n+6]==65&&t[n+7]==80&&t[n+8]==69&&t[n+9]==50&&t[n+10]==46&&t[n+11]==48&&t[n+12]==3&&t[n+13]==1&&t[n+16]==0)n+=14,I=t[n++]|t[n++]<<8,n++;else for(n+=12;;){if(!((S=t[n++])>=0))throw Error("Invalid block size");if(S===0)break;n+=S}break;case 249:if(t[n++]!==4||t[n+4]!==0)throw new Error("Invalid graphics extension block.");var P=t[n++];w=t[n++]|t[n++]<<8,A=t[n++],1&P||(A=null),p=P>>2&7,n++;break;case 254:for(;;){if(!((S=t[n++])>=0))throw Error("Invalid block size");if(S===0)break;n+=S}break;default:throw new Error("Unknown graphic control label: 0x"+t[n-1].toString(16))}break;case 44:var T=t[n++]|t[n++]<<8,L=t[n++]|t[n++]<<8,W=t[n++]|t[n++]<<8,q=t[n++]|t[n++]<<8,B=t[n++],rt=B>>6&1,vt=1<<1+(7&B),pt=l,Y=f,j=!1;B>>7&&(j=!0,pt=n,Y=vt,n+=3*vt);var Q=n;for(n++;;){var S;if(!((S=t[n++])>=0))throw Error("Invalid block size");if(S===0)break;n+=S}g.push({x:T,y:L,width:W,height:q,has_local_palette:j,palette_offset:pt,palette_size:Y,data_offset:Q,data_length:n-Q,transparent_index:A,interlaced:!!rt,delay:w,disposal:p});break;case 59:u=!1;break;default:throw new Error("Unknown gif block: 0x"+t[n-1].toString(16))}this.numFrames=function(){return g.length},this.loopCount=function(){return I},this.frameInfo=function(C){if(C<0||C>=g.length)throw new Error("Frame index out of range.");return g[C]},this.decodeAndBlitFrameBGRA=function(C,H){var U=this.frameInfo(C),it=U.width*U.height,lt=new Uint8Array(it);zu(t,U.data_offset,lt,it);var ct=U.palette_offset,et=U.transparent_index;et===null&&(et=256);var ut=U.width,Nt=e-ut,wt=ut,x=4*(U.y*e+U.x),D=4*((U.y+U.height)*e+U.x),R=x,V=4*Nt;U.interlaced===!0&&(V+=4*e*7);for(var $=8,nt=0,ot=lt.length;nt<ot;++nt){var at=lt[nt];if(wt===0&&(wt=ut,(R+=V)>=D&&(V=4*Nt+4*e*($-1),R=x+(ut+Nt)*($<<1),$>>=1)),at===et)R+=4;else{var mt=t[ct+3*at],xt=t[ct+3*at+1],kt=t[ct+3*at+2];H[R++]=kt,H[R++]=xt,H[R++]=mt,H[R++]=255}--wt}},this.decodeAndBlitFrameRGBA=function(C,H){var U=this.frameInfo(C),it=U.width*U.height,lt=new Uint8Array(it);zu(t,U.data_offset,lt,it);var ct=U.palette_offset,et=U.transparent_index;et===null&&(et=256);var ut=U.width,Nt=e-ut,wt=ut,x=4*(U.y*e+U.x),D=4*((U.y+U.height)*e+U.x),R=x,V=4*Nt;U.interlaced===!0&&(V+=4*e*7);for(var $=8,nt=0,ot=lt.length;nt<ot;++nt){var at=lt[nt];if(wt===0&&(wt=ut,(R+=V)>=D&&(V=4*Nt+4*e*($-1),R=x+(ut+Nt)*($<<1),$>>=1)),at===et)R+=4;else{var mt=t[ct+3*at],xt=t[ct+3*at+1],kt=t[ct+3*at+2];H[R++]=mt,H[R++]=xt,H[R++]=kt,H[R++]=255}--wt}}}function zu(t,n,e,r){for(var i=t[n++],a=1<<i,h=a+1,l=h+1,f=i+1,u=(1<<f)-1,g=0,w=0,A=0,p=t[n++],I=new Int32Array(4096),P=null;;){for(;g<16&&p!==0;)w|=t[n++]<<g,g+=8,p===1?p=t[n++]:--p;if(g<f)break;var T=w&u;if(w>>=f,g-=f,T!==a){if(T===h)break;for(var L=T<l?T:P,W=0,q=L;q>a;)q=I[q]>>8,++W;var B=q;if(A+W+(L!==T?1:0)>r)return void Ie.log("Warning, gif stream longer than expected.");e[A++]=B;var rt=A+=W;for(L!==T&&(e[A++]=B),q=L;W--;)q=I[q],e[--rt]=255&q,q>>=8;P!==null&&l<4096&&(I[l++]=P<<8|B,l>=u+1&&f<12&&(++f,u=u<<1|1)),P=T}else l=h+1,u=(1<<(f=i+1))-1,P=null}return A!==r&&Ie.log("Warning, gif stream shorter than expected."),e}function Sh(t){var n,e,r,i,a,h=Math.floor,l=new Array(64),f=new Array(64),u=new Array(64),g=new Array(64),w=new Array(65535),A=new Array(65535),p=new Array(64),I=new Array(64),P=[],T=0,L=7,W=new Array(64),q=new Array(64),B=new Array(64),rt=new Array(256),vt=new Array(2048),pt=[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],Y=[0,0,1,5,1,1,1,1,1,1,0,0,0,0,0,0,0],j=[0,1,2,3,4,5,6,7,8,9,10,11],Q=[0,0,2,1,3,3,2,4,3,5,5,4,4,0,0,1,125],S=[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],C=[0,0,3,1,1,1,1,1,1,1,1,1,0,0,0,0,0],H=[0,1,2,3,4,5,6,7,8,9,10,11],U=[0,0,2,1,2,4,4,3,4,7,5,4,4,0,1,2,119],it=[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 lt(x,D){for(var R=0,V=0,$=new Array,nt=1;nt<=16;nt++){for(var ot=1;ot<=x[nt];ot++)$[D[V]]=[],$[D[V]][0]=R,$[D[V]][1]=nt,V++,R++;R*=2}return $}function ct(x){for(var D=x[0],R=x[1]-1;R>=0;)D&1<<R&&(T|=1<<L),R--,--L<0&&(T==255?(et(255),et(0)):et(T),L=7,T=0)}function et(x){P.push(x)}function ut(x){et(x>>8&255),et(255&x)}function Nt(x,D,R,V,$){for(var nt,ot=$[0],at=$[240],mt=(function(At,jt){var St,ie,Ut,pe,Jt,Qt,Ae,ae,Bt,Gt,zt=0;for(Bt=0;Bt<8;++Bt){St=At[zt],ie=At[zt+1],Ut=At[zt+2],pe=At[zt+3],Jt=At[zt+4],Qt=At[zt+5],Ae=At[zt+6];var Fe=St+(ae=At[zt+7]),ge=St-ae,Mt=ie+Ae,te=ie-Ae,Le=Ut+Qt,Ht=Ut-Qt,he=pe+Jt,ee=pe-Jt,Ue=Fe+he,Qe=Fe-he,Se=Mt+Le,$t=Mt-Le;At[zt]=Ue+Se,At[zt+4]=Ue-Se;var we=.707106781*($t+Qe);At[zt+2]=Qe+we,At[zt+6]=Qe-we;var mi=.382683433*((Ue=ee+Ht)-($t=te+ge)),gn=.5411961*Ue+mi,Sr=1.306562965*$t+mi,ur=.707106781*(Se=Ht+te),Wt=ge+ur,kr=ge-ur;At[zt+5]=kr+gn,At[zt+3]=kr-gn,At[zt+1]=Wt+Sr,At[zt+7]=Wt-Sr,zt+=8}for(zt=0,Bt=0;Bt<8;++Bt){St=At[zt],ie=At[zt+8],Ut=At[zt+16],pe=At[zt+24],Jt=At[zt+32],Qt=At[zt+40],Ae=At[zt+48];var Pr=St+(ae=At[zt+56]),Hn=St-ae,Wn=ie+Ae,Me=ie-Ae,on=Ut+Qt,hn=Ut-Qt,vi=pe+Jt,Gr=pe-Jt,er=Pr+vi,dr=Pr-vi,nr=Wn+on,rr=Wn-on;At[zt]=er+nr,At[zt+32]=er-nr;var Gn=.707106781*(rr+dr);At[zt+16]=dr+Gn,At[zt+48]=dr-Gn;var bi=.382683433*((er=Gr+hn)-(rr=Me+Hn)),pr=.5411961*er+bi,wi=1.306562965*rr+bi,Ji=.707106781*(nr=hn+Me),Qi=Hn+Ji,ta=Hn-Ji;At[zt+40]=ta+pr,At[zt+24]=ta-pr,At[zt+8]=Qi+wi,At[zt+56]=Qi-wi,zt++}for(Bt=0;Bt<64;++Bt)Gt=At[Bt]*jt[Bt],p[Bt]=Gt>0?Gt+.5|0:Gt-.5|0;return p})(x,D),xt=0;xt<64;++xt)I[pt[xt]]=mt[xt];var kt=I[0]-R;R=I[0],kt==0?ct(V[0]):(ct(V[A[nt=32767+kt]]),ct(w[nt]));for(var Pt=63;Pt>0&&I[Pt]==0;)Pt--;if(Pt==0)return ct(ot),R;for(var st,M=1;M<=Pt;){for(var le=M;I[M]==0&&M<=Pt;)++M;var re=M-le;if(re>=16){st=re>>4;for(var qt=1;qt<=st;++qt)ct(at);re&=15}nt=32767+I[M],ct($[(re<<4)+A[nt]]),ct(w[nt]),M++}return Pt!=63&&ct(ot),R}function wt(x){x=Math.min(Math.max(x,1),100),a!=x&&((function(D){for(var R=[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],V=0;V<64;V++){var $=h((R[V]*D+50)/100);$=Math.min(Math.max($,1),255),l[pt[V]]=$}for(var nt=[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],ot=0;ot<64;ot++){var at=h((nt[ot]*D+50)/100);at=Math.min(Math.max(at,1),255),f[pt[ot]]=at}for(var mt=[1,1.387039845,1.306562965,1.175875602,1,.785694958,.5411961,.275899379],xt=0,kt=0;kt<8;kt++)for(var Pt=0;Pt<8;Pt++)u[xt]=1/(l[pt[xt]]*mt[kt]*mt[Pt]*8),g[xt]=1/(f[pt[xt]]*mt[kt]*mt[Pt]*8),xt++})(x<50?Math.floor(5e3/x):Math.floor(200-2*x)),a=x)}this.encode=function(x,D){D&&wt(D),P=new Array,T=0,L=7,ut(65496),ut(65504),ut(16),et(74),et(70),et(73),et(70),et(0),et(1),et(1),et(0),ut(1),ut(1),et(0),et(0),(function(){ut(65499),ut(132),et(0);for(var ie=0;ie<64;ie++)et(l[ie]);et(1);for(var Ut=0;Ut<64;Ut++)et(f[Ut])})(),(function(ie,Ut){ut(65472),ut(17),et(8),ut(Ut),ut(ie),et(3),et(1),et(17),et(0),et(2),et(17),et(1),et(3),et(17),et(1)})(x.width,x.height),(function(){ut(65476),ut(418),et(0);for(var ie=0;ie<16;ie++)et(Y[ie+1]);for(var Ut=0;Ut<=11;Ut++)et(j[Ut]);et(16);for(var pe=0;pe<16;pe++)et(Q[pe+1]);for(var Jt=0;Jt<=161;Jt++)et(S[Jt]);et(1);for(var Qt=0;Qt<16;Qt++)et(C[Qt+1]);for(var Ae=0;Ae<=11;Ae++)et(H[Ae]);et(17);for(var ae=0;ae<16;ae++)et(U[ae+1]);for(var Bt=0;Bt<=161;Bt++)et(it[Bt])})(),ut(65498),ut(12),et(3),et(1),et(0),et(2),et(17),et(3),et(17),et(0),et(63),et(0);var R=0,V=0,$=0;T=0,L=7,this.encode.displayName="_encode_";for(var nt,ot,at,mt,xt,kt,Pt,st,M,le=x.data,re=x.width,qt=x.height,At=4*re,jt=0;jt<qt;){for(nt=0;nt<At;){for(xt=At*jt+nt,Pt=-1,st=0,M=0;M<64;M++)kt=xt+(st=M>>3)*At+(Pt=4*(7&M)),jt+st>=qt&&(kt-=At*(jt+1+st-qt)),nt+Pt>=At&&(kt-=nt+Pt-At+4),ot=le[kt++],at=le[kt++],mt=le[kt++],W[M]=(vt[ot]+vt[at+256|0]+vt[mt+512|0]>>16)-128,q[M]=(vt[ot+768|0]+vt[at+1024|0]+vt[mt+1280|0]>>16)-128,B[M]=(vt[ot+1280|0]+vt[at+1536|0]+vt[mt+1792|0]>>16)-128;R=Nt(W,u,R,n,r),V=Nt(q,g,V,e,i),$=Nt(B,g,$,e,i),nt+=32}jt+=8}if(L>=0){var St=[];St[1]=L+1,St[0]=(1<<L+1)-1,ct(St)}return ut(65497),new Uint8Array(P)},t=t||50,(function(){for(var x=String.fromCharCode,D=0;D<256;D++)rt[D]=x(D)})(),n=lt(Y,j),e=lt(C,H),r=lt(Q,S),i=lt(U,it),(function(){for(var x=1,D=2,R=1;R<=15;R++){for(var V=x;V<D;V++)A[32767+V]=R,w[32767+V]=[],w[32767+V][1]=R,w[32767+V][0]=V;for(var $=-(D-1);$<=-x;$++)A[32767+$]=R,w[32767+$]=[],w[32767+$][1]=R,w[32767+$][0]=D-1+$;x<<=1,D<<=1}})(),(function(){for(var x=0;x<256;x++)vt[x]=19595*x,vt[x+256|0]=38470*x,vt[x+512|0]=7471*x+32768,vt[x+768|0]=-11059*x,vt[x+1024|0]=-21709*x,vt[x+1280|0]=32768*x+8421375,vt[x+1536|0]=-27439*x,vt[x+1792|0]=-5329*x})(),wt(t)}function hr(t,n){if(this.pos=0,this.buffer=t,this.datav=new DataView(t.buffer),this.is_with_alpha=!!n,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 Uu(t){function n(j){if(!j)throw Error("assert :P")}function e(j,Q,S){for(var C=0;4>C;C++)if(j[Q+C]!=S.charCodeAt(C))return!0;return!1}function r(j,Q,S,C,H){for(var U=0;U<H;U++)j[Q+U]=S[C+U]}function i(j,Q,S,C){for(var H=0;H<C;H++)j[Q+H]=S}function a(j){return new Int32Array(j)}function h(j,Q){for(var S=[],C=0;C<j;C++)S.push(new Q);return S}function l(j,Q){var S=[];return(function C(H,U,it){for(var lt=it[U],ct=0;ct<lt&&(H.push(it.length>U+1?[]:new Q),!(it.length<U+1));ct++)C(H[ct],U+1,it)})(S,0,j),S}var f=function(){var j=this;function Q(o,s){for(var d=1<<s-1>>>0;o&d;)d>>>=1;return d?(o&d-1)+d:o}function S(o,s,d,m,b){n(!(m%d));do o[s+(m-=d)]=b;while(0<m)}function C(o,s,d,m,b){if(n(2328>=b),512>=b)var y=a(512);else if((y=a(b))==null)return 0;return(function(_,N,k,F,G,tt){var E,Z,X=N,ht=1<<k,J=a(16),ft=a(16);for(n(G!=0),n(F!=null),n(_!=null),n(0<k),Z=0;Z<G;++Z){if(15<F[Z])return 0;++J[F[Z]]}if(J[0]==G)return 0;for(ft[1]=0,E=1;15>E;++E){if(J[E]>1<<E)return 0;ft[E+1]=ft[E]+J[E]}for(Z=0;Z<G;++Z)E=F[Z],0<F[Z]&&(tt[ft[E]++]=Z);if(ft[15]==1)return(F=new H).g=0,F.value=tt[0],S(_,X,1,ht,F),ht;var gt,_t=-1,bt=ht-1,Rt=0,It=1,oe=1,Ct=1<<k;for(Z=0,E=1,G=2;E<=k;++E,G<<=1){if(It+=oe<<=1,0>(oe-=J[E]))return 0;for(;0<J[E];--J[E])(F=new H).g=E,F.value=tt[Z++],S(_,X+Rt,G,Ct,F),Rt=Q(Rt,E)}for(E=k+1,G=2;15>=E;++E,G<<=1){if(It+=oe<<=1,0>(oe-=J[E]))return 0;for(;0<J[E];--J[E]){if(F=new H,(Rt&bt)!=_t){for(X+=Ct,gt=1<<(_t=E)-k;15>_t&&!(0>=(gt-=J[_t]));)++_t,gt<<=1;ht+=Ct=1<<(gt=_t-k),_[N+(_t=Rt&bt)].g=gt+k,_[N+_t].value=X-N-_t}F.g=E-k,F.value=tt[Z++],S(_,X+(Rt>>k),G,Ct,F),Rt=Q(Rt,E)}}return It!=2*ft[15]-1?0:ht})(o,s,d,m,b,y)}function H(){this.value=this.g=0}function U(){this.value=this.g=0}function it(){this.G=h(5,H),this.H=a(5),this.jc=this.Qb=this.qb=this.nd=0,this.pd=h(Mi,U)}function lt(o,s,d,m){n(o!=null),n(s!=null),n(2147483648>m),o.Ca=254,o.I=0,o.b=-8,o.Ka=0,o.oa=s,o.pa=d,o.Jd=s,o.Yc=d+m,o.Zc=4<=m?d+m-4+1:d,ot(o)}function ct(o,s){for(var d=0;0<s--;)d|=mt(o,128)<<s;return d}function et(o,s){var d=ct(o,s);return at(o)?-d:d}function ut(o,s,d,m){var b,y=0;for(n(o!=null),n(s!=null),n(4294967288>m),o.Sb=m,o.Ra=0,o.u=0,o.h=0,4<m&&(m=4),b=0;b<m;++b)y+=s[d+b]<<8*b;o.Ra=y,o.bb=m,o.oa=s,o.pa=d}function Nt(o){for(;8<=o.u&&o.bb<o.Sb;)o.Ra>>>=8,o.Ra+=o.oa[o.pa+o.bb]<<Kr-8>>>0,++o.bb,o.u-=8;V(o)&&(o.h=1,o.u=0)}function wt(o,s){if(n(0<=s),!o.h&&s<=On){var d=R(o)&Cn[s];return o.u+=s,Nt(o),d}return o.h=1,o.u=0}function x(){this.b=this.Ca=this.I=0,this.oa=[],this.pa=0,this.Jd=[],this.Yc=0,this.Zc=[],this.Ka=0}function D(){this.Ra=0,this.oa=[],this.h=this.u=this.bb=this.Sb=this.pa=0}function R(o){return o.Ra>>>(o.u&Kr-1)>>>0}function V(o){return n(o.bb<=o.Sb),o.h||o.bb==o.Sb&&o.u>Kr}function $(o,s){o.u=s,o.h=V(o)}function nt(o){o.u>=Dr&&(n(o.u>=Dr),Nt(o))}function ot(o){n(o!=null&&o.oa!=null),o.pa<o.Zc?(o.I=(o.oa[o.pa++]|o.I<<8)>>>0,o.b+=8):(n(o!=null&&o.oa!=null),o.pa<o.Yc?(o.b+=8,o.I=o.oa[o.pa++]|o.I<<8):o.Ka?o.b=0:(o.I<<=8,o.b+=8,o.Ka=1))}function at(o){return ct(o,1)}function mt(o,s){var d=o.Ca;0>o.b&&ot(o);var m=o.b,b=d*s>>>8,y=(o.I>>>m>b)+0;for(y?(d-=b,o.I-=b+1<<m>>>0):d=b+1,m=d,b=0;256<=m;)b+=8,m>>=8;return m=7^b+Xr[m],o.b-=m,o.Ca=(d<<m)-1,y}function xt(o,s,d){o[s+0]=d>>24&255,o[s+1]=d>>16&255,o[s+2]=d>>8&255,o[s+3]=255&d}function kt(o,s){return o[s+0]|o[s+1]<<8}function Pt(o,s){return kt(o,s)|o[s+2]<<16}function st(o,s){return kt(o,s)|kt(o,s+2)<<16}function M(o,s){var d=1<<s;return n(o!=null),n(0<s),o.X=a(d),o.X==null?0:(o.Mb=32-s,o.Xa=s,1)}function le(o,s){n(o!=null),n(s!=null),n(o.Xa==s.Xa),r(s.X,0,o.X,0,1<<s.Xa)}function re(){this.X=[],this.Xa=this.Mb=0}function qt(o,s,d,m){n(d!=null),n(m!=null);var b=d[0],y=m[0];return b==0&&(b=(o*y+s/2)/s),y==0&&(y=(s*b+o/2)/o),0>=b||0>=y?0:(d[0]=b,m[0]=y,1)}function At(o,s){return o+(1<<s)-1>>>s}function jt(o,s){return((4278255360&o)+(4278255360&s)>>>0&4278255360)+((16711935&o)+(16711935&s)>>>0&16711935)>>>0}function St(o,s){j[s]=function(d,m,b,y,_,N,k){var F;for(F=0;F<_;++F){var G=j[o](N[k+F-1],b,y+F);N[k+F]=jt(d[m+F],G)}}}function ie(){this.ud=this.hd=this.jd=0}function Ut(o,s){return((4278124286&(o^s))>>>1)+(o&s)>>>0}function pe(o){return 0<=o&&256>o?o:0>o?0:255<o?255:void 0}function Jt(o,s){return pe(o+(o-s+.5>>1))}function Qt(o,s,d){return Math.abs(s-d)-Math.abs(o-d)}function Ae(o,s,d,m,b,y,_){for(m=y[_-1],d=0;d<b;++d)y[_+d]=m=jt(o[s+d],m)}function ae(o,s,d,m,b){var y;for(y=0;y<d;++y){var _=o[s+y],N=_>>8&255,k=16711935&(k=(k=16711935&_)+((N<<16)+N));m[b+y]=(4278255360&_)+k>>>0}}function Bt(o,s){s.jd=255&o,s.hd=o>>8&255,s.ud=o>>16&255}function Gt(o,s,d,m,b,y){var _;for(_=0;_<m;++_){var N=s[d+_],k=N>>>8,F=N,G=255&(G=(G=N>>>16)+((o.jd<<24>>24)*(k<<24>>24)>>>5));F=255&(F=(F+=(o.hd<<24>>24)*(k<<24>>24)>>>5)+((o.ud<<24>>24)*(G<<24>>24)>>>5)),b[y+_]=(4278255360&N)+(G<<16)+F}}function zt(o,s,d,m,b){j[s]=function(y,_,N,k,F,G,tt,E,Z){for(k=tt;k<E;++k)for(tt=0;tt<Z;++tt)F[G++]=b(N[m(y[_++])])},j[o]=function(y,_,N,k,F,G,tt){var E=8>>y.b,Z=y.Ea,X=y.K[0],ht=y.w;if(8>E)for(y=(1<<y.b)-1,ht=(1<<E)-1;_<N;++_){var J,ft=0;for(J=0;J<Z;++J)J&y||(ft=m(k[F++])),G[tt++]=b(X[ft&ht]),ft>>=E}else j["VP8LMapColor"+d](k,F,X,ht,G,tt,_,N,Z)}}function Fe(o,s,d,m,b){for(d=s+d;s<d;){var y=o[s++];m[b++]=y>>16&255,m[b++]=y>>8&255,m[b++]=255&y}}function ge(o,s,d,m,b){for(d=s+d;s<d;){var y=o[s++];m[b++]=y>>16&255,m[b++]=y>>8&255,m[b++]=255&y,m[b++]=y>>24&255}}function Mt(o,s,d,m,b){for(d=s+d;s<d;){var y=(_=o[s++])>>16&240|_>>12&15,_=240&_|_>>28&15;m[b++]=y,m[b++]=_}}function te(o,s,d,m,b){for(d=s+d;s<d;){var y=(_=o[s++])>>16&248|_>>13&7,_=_>>5&224|_>>3&31;m[b++]=y,m[b++]=_}}function Le(o,s,d,m,b){for(d=s+d;s<d;){var y=o[s++];m[b++]=255&y,m[b++]=y>>8&255,m[b++]=y>>16&255}}function Ht(o,s,d,m,b,y){if(y==0)for(d=s+d;s<d;)xt(m,((y=o[s++])[0]>>24|y[1]>>8&65280|y[2]<<8&16711680|y[3]<<24)>>>0),b+=32;else r(m,b,o,s,d)}function he(o,s){j[s][0]=j[o+"0"],j[s][1]=j[o+"1"],j[s][2]=j[o+"2"],j[s][3]=j[o+"3"],j[s][4]=j[o+"4"],j[s][5]=j[o+"5"],j[s][6]=j[o+"6"],j[s][7]=j[o+"7"],j[s][8]=j[o+"8"],j[s][9]=j[o+"9"],j[s][10]=j[o+"10"],j[s][11]=j[o+"11"],j[s][12]=j[o+"12"],j[s][13]=j[o+"13"],j[s][14]=j[o+"0"],j[s][15]=j[o+"0"]}function ee(o){return o==dl||o==pl||o==ns||o==gl}function Ue(){this.eb=[],this.size=this.A=this.fb=0}function Qe(){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 Se(){this.Rd=this.height=this.width=this.S=0,this.f={},this.f.RGBA=new Ue,this.f.kb=new Qe,this.sd=null}function $t(){this.width=[0],this.height=[0],this.Pd=[0],this.Qd=[0],this.format=[0]}function we(){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 mi(o){return alert("todo:WebPSamplerProcessPlane"),o.T}function gn(o,s){var d=o.T,m=s.ba.f.RGBA,b=m.eb,y=m.fb+o.ka*m.A,_=Xn[s.ba.S],N=o.y,k=o.O,F=o.f,G=o.N,tt=o.ea,E=o.W,Z=s.cc,X=s.dc,ht=s.Mc,J=s.Nc,ft=o.ka,gt=o.ka+o.T,_t=o.U,bt=_t+1>>1;for(ft==0?_(N,k,null,null,F,G,tt,E,F,G,tt,E,b,y,null,null,_t):(_(s.ec,s.fc,N,k,Z,X,ht,J,F,G,tt,E,b,y-m.A,b,y,_t),++d);ft+2<gt;ft+=2)Z=F,X=G,ht=tt,J=E,G+=o.Rc,E+=o.Rc,y+=2*m.A,_(N,(k+=2*o.fa)-o.fa,N,k,Z,X,ht,J,F,G,tt,E,b,y-m.A,b,y,_t);return k+=o.fa,o.j+gt<o.o?(r(s.ec,s.fc,N,k,_t),r(s.cc,s.dc,F,G,bt),r(s.Mc,s.Nc,tt,E,bt),d--):1>||_(N,k,null,null,F,G,tt,E,F,G,tt,E,b,y+m.A,null,null,_t),d}function Sr(o,s,d){var m=o.F,b=[o.J];if(m!=null){var y=o.U,_=s.ba.S,N=_==es||_==ns;s=s.ba.f.RGBA;var k=[0],F=o.ka;k[0]=o.T,o.Kb&&(F==0?--k[0]:(--F,b[0]-=o.width),o.j+o.ka+o.T==o.o&&(k[0]=o.o-o.j-F));var G=s.eb;F=s.fb+F*s.A,o=Hh(m,b[0],o.width,y,k,G,F+(N?0:3),s.A),n(d==k),o&&ee(_)&&Ja(G,F,N,y,k,s.A)}return 0}function ur(o){var s=o.ma,d=s.ba.S,m=11>d,b=d==Qo||d==ts||d==es||d==ul||d==12||ee(d);if(s.memory=null,s.Ib=null,s.Jb=null,s.Nd=null,!Wa(s.Oa,o,b?11:12))return 0;if(b&&ee(d)&&Zo(),o.da)alert("todo:use_scaling");else{if(m){if(s.Ib=mi,o.Kb){if(d=o.U+1>>1,s.memory=a(o.U+2*d),s.memory==null)return 0;s.ec=s.memory,s.fc=0,s.cc=s.ec,s.dc=s.fc+o.U,s.Mc=s.cc,s.Nc=s.dc+d,s.Ib=gn,Zo()}}else alert("todo:EmitYUV");b&&(s.Jb=Sr,m&&Zn())}if(m&&!oc){for(o=0;256>o;++o)S1[o]=89858*(o-128)+is>>rs,I1[o]=-22014*(o-128)+is,P1[o]=-45773*(o-128),k1[o]=113618*(o-128)+is>>rs;for(o=to;o<bl;++o)s=76283*(o-16)+is>>rs,F1[o-to]=Re(s,255),E1[o-to]=Re(s+8>>4,15);oc=1}return 1}function Wt(o){var s=o.ma,d=o.U,m=o.T;return n(!(1&o.ka)),0>=d||0>=m?0:(d=s.Ib(o,s),s.Jb!=null&&s.Jb(o,s,d),s.Dc+=d,1)}function kr(o){o.ma.memory=null}function Pr(o,s,d,m){return wt(o,8)!=47?0:(s[0]=wt(o,14)+1,d[0]=wt(o,14)+1,m[0]=wt(o,1),wt(o,3)!=0?0:!o.h)}function Hn(o,s){if(4>o)return o+1;var d=o-2>>1;return(2+(1&o)<<d)+wt(s,d)+1}function Wn(o,s){return 120<s?s-120:1<=(d=((d=u1[s-1])>>4)*o+(8-(15&d)))?d:1;var d}function Me(o,s,d){var m=R(d),b=o[s+=255&m].g-8;return 0<b&&($(d,d.u+8),m=R(d),s+=o[s].value,s+=m&(1<<b)-1),$(d,d.u+o[s].g),o[s].value}function on(o,s,d){return d.g+=o.g,d.value+=o.value<<s>>>0,n(8>=d.g),o.g}function hn(o,s,d){var m=o.xc;return n((s=m==0?0:o.vc[o.md*(d>>m)+(s>>m)])<o.Wb),o.Ya[s]}function vi(o,s,d,m){var b=o.ab,y=o.c*s,_=o.C;s=_+s;var N=d,k=m;for(m=o.Ta,d=o.Ua;0<b--;){var F=o.gc[b],G=_,tt=s,E=N,Z=k,X=(k=m,N=d,F.Ea);switch(n(G<tt),n(tt<=F.nc),F.hc){case 2:He(E,Z,(tt-G)*X,k,N);break;case 0:var ht=G,J=tt,ft=k,gt=N,_t=(Ct=F).Ea;ht==0&&(Va(E,Z,null,null,1,ft,gt),Ae(E,Z+1,0,0,_t-1,ft,gt+1),Z+=_t,gt+=_t,++ht);for(var bt=1<<Ct.b,Rt=bt-1,It=At(_t,Ct.b),oe=Ct.K,Ct=Ct.w+(ht>>Ct.b)*It;ht<J;){var ce=oe,nn=Ct,se=1;for(la(E,Z,ft,gt-_t,1,ft,gt);se<_t;){var Ot=(se&~Rt)+bt;Ot>_t&&(Ot=_t),(0,$a[ce[nn++]>>8&15])(E,Z+ +se,ft,gt+se-_t,Ot-se,ft,gt+se),se=Ot}Z+=_t,gt+=_t,++ht&Rt||(Ct+=It)}tt!=F.nc&&r(k,N-X,k,N+(tt-G-1)*X,X);break;case 1:for(X=E,J=Z,_t=(E=F.Ea)-(gt=E&~(ft=(Z=1<<F.b)-1)),ht=At(E,F.b),bt=F.K,F=F.w+(G>>F.b)*ht;G<tt;){for(Rt=bt,It=F,oe=new ie,Ct=J+gt,ce=J+E;J<Ct;)Bt(Rt[It++],oe),Ya(oe,X,J,Z,k,N),J+=Z,N+=Z;J<ce&&(Bt(Rt[It++],oe),Ya(oe,X,J,_t,k,N),J+=_t,N+=_t),++G&ft||(F+=ht)}break;case 3:if(E==k&&Z==N&&0<F.b){for(J=k,E=X=N+(tt-G)*X-(gt=(tt-G)*At(F.Ea,F.b)),Z=k,ft=N,ht=[],gt=(_t=gt)-1;0<=gt;--gt)ht[gt]=Z[ft+gt];for(gt=_t-1;0<=gt;--gt)J[E+gt]=ht[gt];Yo(F,G,tt,k,X,k,N)}else Yo(F,G,tt,E,Z,k,N)}N=m,k=d}k!=d&&r(m,d,N,k,y)}function Gr(o,s){var d=o.V,m=o.Ba+o.c*o.C,b=s-o.C;if(n(s<=o.l.o),n(16>=b),0<b){var y=o.l,_=o.Ta,N=o.Ua,k=y.width;if(vi(o,b,d,m),b=N=[N],n((d=o.C)<(m=s)),n(y.v<y.va),m>y.o&&(m=y.o),d<y.j){var F=y.j-d;d=y.j,b[0]+=F*k}if(d>=m?d=0:(b[0]+=4*y.v,y.ka=d-y.j,y.U=y.va-y.v,y.T=m-d,d=1),d){if(N=N[0],11>(d=o.ca).S){var G=d.f.RGBA,tt=(m=d.S,b=y.U,y=y.T,F=G.eb,G.A),E=y;for(G=G.fb+o.Ma*G.A;0<E--;){var Z=_,X=N,ht=b,J=F,ft=G;switch(m){case Jo:Ka(Z,X,ht,J,ft);break;case Qo:Jr(Z,X,ht,J,ft);break;case dl:Jr(Z,X,ht,J,ft),Ja(J,ft,0,ht,1,0);break;case Kh:Ri(Z,X,ht,J,ft);break;case ts:Ht(Z,X,ht,J,ft,1);break;case pl:Ht(Z,X,ht,J,ft,1),Ja(J,ft,0,ht,1,0);break;case es:Ht(Z,X,ht,J,ft,0);break;case ns:Ht(Z,X,ht,J,ft,0),Ja(J,ft,1,ht,1,0);break;case ul:Qr(Z,X,ht,J,ft);break;case gl:Qr(Z,X,ht,J,ft),qh(J,ft,ht,1,0);break;case Xh:ti(Z,X,ht,J,ft);break;default:n(0)}N+=k,G+=tt}o.Ma+=y}else alert("todo:EmitRescaledRowsYUVA");n(o.Ma<=d.height)}}o.C=s,n(o.C<=o.i)}function er(o){var s;if(0<o.ua)return 0;for(s=0;s<o.Wb;++s){var d=o.Ya[s].G,m=o.Ya[s].H;if(0<d[1][m[1]+0].g||0<d[2][m[2]+0].g||0<d[3][m[3]+0].g)return 0}return 1}function dr(o,s,d,m,b,y){if(o.Z!=0){var _=o.qd,N=o.rd;for(n(ri[o.Z]!=null);s<d;++s)ri[o.Z](_,N,m,b,m,b,y),_=m,N=b,b+=y;o.qd=_,o.rd=N}}function nr(o,s){var d=o.l.ma,m=d.Z==0||d.Z==1?o.l.j:o.C;if(m=o.C<m?m:o.C,n(s<=o.l.o),s>m){var b=o.l.width,y=d.ca,_=d.tb+b*m,N=o.V,k=o.Ba+o.c*m,F=o.gc;n(o.ab==1),n(F[0].hc==3),vr(F[0],m,s,N,k,y,_),dr(d,m,s,y,_,b)}o.C=o.Ma=s}function rr(o,s,d,m,b,y,_){var N=o.$/m,k=o.$%m,F=o.m,G=o.s,tt=d+o.$,E=tt;b=d+m*b;var Z=d+m*y,X=280+G.ua,ht=o.Pb?N:16777216,J=0<G.ua?G.Wa:null,ft=G.wc,gt=tt<Z?hn(G,k,N):null;n(o.C<y),n(Z<=b);var _t=!1;t:for(;;){for(;_t||tt<Z;){var bt=0;if(N>=ht){var Rt=tt-d;n((ht=o).Pb),ht.wd=ht.m,ht.xd=Rt,0<ht.s.ua&&le(ht.s.Wa,ht.s.vb),ht=N+p1}if(k&ft||(gt=hn(G,k,N)),n(gt!=null),gt.Qb&&(s[tt]=gt.qb,_t=!0),!_t)if(nt(F),gt.jc){bt=F,Rt=s;var It=tt,oe=gt.pd[R(bt)&Mi-1];n(gt.jc),256>oe.g?($(bt,bt.u+oe.g),Rt[It]=oe.value,bt=0):($(bt,bt.u+oe.g-256),n(256<=oe.value),bt=oe.value),bt==0&&(_t=!0)}else bt=Me(gt.G[0],gt.H[0],F);if(F.h)break;if(_t||256>bt){if(!_t)if(gt.nd)s[tt]=(gt.qb|bt<<8)>>>0;else{if(nt(F),_t=Me(gt.G[1],gt.H[1],F),nt(F),Rt=Me(gt.G[2],gt.H[2],F),It=Me(gt.G[3],gt.H[3],F),F.h)break;s[tt]=(It<<24|_t<<16|bt<<8|Rt)>>>0}if(_t=!1,++tt,++k>=m&&(k=0,++N,_!=null&&N<=y&&!(N%16)&&_(o,N),J!=null))for(;E<tt;)bt=s[E++],J.X[(506832829*bt&4294967295)>>>J.Mb]=bt}else if(280>bt){if(bt=Hn(bt-256,F),Rt=Me(gt.G[4],gt.H[4],F),nt(F),Rt=Wn(m,Rt=Hn(Rt,F)),F.h)break;if(tt-d<Rt||b-tt<bt)break t;for(It=0;It<bt;++It)s[tt+It]=s[tt+It-Rt];for(tt+=bt,k+=bt;k>=m;)k-=m,++N,_!=null&&N<=y&&!(N%16)&&_(o,N);if(n(tt<=b),k&ft&&(gt=hn(G,k,N)),J!=null)for(;E<tt;)bt=s[E++],J.X[(506832829*bt&4294967295)>>>J.Mb]=bt}else{if(!(bt<X))break t;for(_t=bt-280,n(J!=null);E<tt;)bt=s[E++],J.X[(506832829*bt&4294967295)>>>J.Mb]=bt;bt=tt,n(!(_t>>>(Rt=J).Xa)),s[bt]=Rt.X[_t],_t=!0}_t||n(F.h==V(F))}if(o.Pb&&F.h&&tt<b)n(o.m.h),o.a=5,o.m=o.wd,o.$=o.xd,0<o.s.ua&&le(o.s.vb,o.s.Wa);else{if(F.h)break t;_?.(o,N>y?y:N),o.a=0,o.$=tt-d}return 1}return o.a=3,0}function Gn(o){n(o!=null),o.vc=null,o.yc=null,o.Ya=null;var s=o.Wa;s!=null&&(s.X=null),o.vb=null,n(o!=null)}function bi(){var o=new Tt;return o==null?null:(o.a=0,o.xb=tc,he("Predictor","VP8LPredictors"),he("Predictor","VP8LPredictors_C"),he("PredictorAdd","VP8LPredictorsAdd"),he("PredictorAdd","VP8LPredictorsAdd_C"),He=ae,Ya=Gt,Ka=Fe,Jr=ge,Qr=Mt,ti=te,Ri=Le,j.VP8LMapColor32b=mr,j.VP8LMapColor8b=Za,o)}function pr(o,s,d,m,b){var y=1,_=[o],N=[s],k=m.m,F=m.s,G=null,tt=0;t:for(;;){if(d)for(;y&&wt(k,1);){var E=_,Z=N,X=m,ht=1,J=X.m,ft=X.gc[X.ab],gt=wt(J,2);if(X.Oc&1<<gt)y=0;else{switch(X.Oc|=1<<gt,ft.hc=gt,ft.Ea=E[0],ft.nc=Z[0],ft.K=[null],++X.ab,n(4>=X.ab),gt){case 0:case 1:ft.b=wt(J,3)+2,ht=pr(At(ft.Ea,ft.b),At(ft.nc,ft.b),0,X,ft.K),ft.K=ft.K[0];break;case 3:var _t,bt=wt(J,8)+1,Rt=16<bt?0:4<bt?1:2<bt?2:3;if(E[0]=At(ft.Ea,Rt),ft.b=Rt,_t=ht=pr(bt,1,0,X,ft.K)){var It,oe=bt,Ct=ft,ce=1<<(8>>Ct.b),nn=a(ce);if(nn==null)_t=0;else{var se=Ct.K[0],Ot=Ct.w;for(nn[0]=Ct.K[0][0],It=1;It<1*oe;++It)nn[It]=jt(se[Ot+It],nn[It-1]);for(;It<4*ce;++It)nn[It]=0;Ct.K[0]=null,Ct.K[0]=nn,_t=1}}ht=_t;break;case 2:break;default:n(0)}y=ht}}if(_=_[0],N=N[0],y&&wt(k,1)&&!(y=1<=(tt=wt(k,4))&&11>=tt)){m.a=3;break t}var Lt;if(Lt=y)e:{var Ge,ne,ue,Oe=m,fn=_,xn=N,je=tt,vn=d,An=Oe.m,rn=Oe.s,de=[null],_e=1,Be=0,xe=d1[je];n:for(;;){if(vn&&wt(An,1)){var un=wt(An,3)+2,or=At(fn,un),Ve=At(xn,un),Pn=or*Ve;if(!pr(or,Ve,0,Oe,de))break n;for(de=de[0],rn.xc=un,Ge=0;Ge<Pn;++Ge){var Pe=de[Ge]>>8&65535;de[Ge]=Pe,Pe>=_e&&(_e=Pe+1)}}if(An.h)break n;for(ne=0;5>ne;++ne){var an=Jh[ne];!ne&&0<je&&(an+=1<<je),Be<an&&(Be=an)}var Dn=h(_e*xe,H),Nn=_e,Mn=h(Nn,it);if(Mn==null)var Rn=null;else n(65536>=Nn),Rn=Mn;var In=a(Be);if(Rn==null||In==null||Dn==null){Oe.a=1;break n}var jn=Dn;for(Ge=ue=0;Ge<_e;++Ge){var Ce=Rn[Ge],Bn=Ce.G,sr=Ce.H,Bi=0,jr=1,dn=0;for(ne=0;5>ne;++ne){an=Jh[ne],Bn[ne]=jn,sr[ne]=ue,!ne&&0<je&&(an+=1<<je);i:{var os,wl=an,ss=Oe,eo=In,T1=jn,D1=ue,yl=0,ii=ss.m,M1=wt(ii,1);if(i(eo,0,0,wl),M1){var R1=wt(ii,1)+1,j1=wt(ii,1),hc=wt(ii,j1==0?1:8);eo[hc]=1,R1==2&&(eo[hc=wt(ii,8)]=1);var ls=1}else{var cc=a(19),fc=wt(ii,4)+4;if(19<fc){ss.a=3;var hs=0;break i}for(os=0;os<fc;++os)cc[f1[os]]=wt(ii,3);var _l=void 0,no=void 0,uc=ss,B1=cc,cs=wl,dc=eo,xl=0,ai=uc.m,pc=8,gc=h(128,H);r:for(;C(gc,0,7,B1,19);){if(wt(ai,1)){var z1=2+2*wt(ai,3);if((_l=2+wt(ai,z1))>cs)break r}else _l=cs;for(no=0;no<cs&&_l--;){nt(ai);var mc=gc[0+(127&R(ai))];$(ai,ai.u+mc.g);var ca=mc.value;if(16>ca)dc[no++]=ca,ca!=0&&(pc=ca);else{var U1=ca==16,vc=ca-16,q1=h1[vc],bc=wt(ai,l1[vc])+q1;if(no+bc>cs)break r;for(var H1=U1?pc:0;0<bc--;)dc[no++]=H1}}xl=1;break r}xl||(uc.a=3),ls=xl}(ls=ls&&!ii.h)&&(yl=C(T1,D1,8,eo,wl)),ls&&yl!=0?hs=yl:(ss.a=3,hs=0)}if(hs==0)break n;if(jr&&c1[ne]==1&&(jr=jn[ue].g==0),Bi+=jn[ue].g,ue+=hs,3>=ne){var ro,Al=In[0];for(ro=1;ro<an;++ro)In[ro]>Al&&(Al=In[ro]);dn+=Al}}if(Ce.nd=jr,Ce.Qb=0,jr&&(Ce.qb=(Bn[3][sr[3]+0].value<<24|Bn[1][sr[1]+0].value<<16|Bn[2][sr[2]+0].value)>>>0,Bi==0&&256>Bn[0][sr[0]+0].value&&(Ce.Qb=1,Ce.qb+=Bn[0][sr[0]+0].value<<8)),Ce.jc=!Ce.Qb&&6>dn,Ce.jc){var fs,Br=Ce;for(fs=0;fs<Mi;++fs){var oi=fs,si=Br.pd[oi],us=Br.G[0][Br.H[0]+oi];256<=us.value?(si.g=us.g+256,si.value=us.value):(si.g=0,si.value=0,oi>>=on(us,8,si),oi>>=on(Br.G[1][Br.H[1]+oi],16,si),oi>>=on(Br.G[2][Br.H[2]+oi],0,si),on(Br.G[3][Br.H[3]+oi],24,si))}}}rn.vc=de,rn.Wb=_e,rn.Ya=Rn,rn.yc=Dn,Lt=1;break e}Lt=0}if(!(y=Lt)){m.a=3;break t}if(0<tt){if(F.ua=1<<tt,!M(F.Wa,tt)){m.a=1,y=0;break t}}else F.ua=0;var Nl=m,wc=_,W1=N,Ll=Nl.s,Sl=Ll.xc;if(Nl.c=wc,Nl.i=W1,Ll.md=At(wc,Sl),Ll.wc=Sl==0?-1:(1<<Sl)-1,d){m.xb=_1;break t}if((G=a(_*N))==null){m.a=1,y=0;break t}y=(y=rr(m,G,0,_,N,N,null))&&!k.h;break t}return y?(b!=null?b[0]=G:(n(G==null),n(d)),m.$=0,d||Gn(F)):Gn(F),y}function wi(o,s){var d=o.c*o.i,m=d+s+16*s;return n(o.c<=s),o.V=a(m),o.V==null?(o.Ta=null,o.Ua=0,o.a=1,0):(o.Ta=o.V,o.Ua=o.Ba+d+s,1)}function Ji(o,s){var d=o.C,m=s-d,b=o.V,y=o.Ba+o.c*d;for(n(s<=o.l.o);0<m;){var _=16<m?16:m,N=o.l.ma,k=o.l.width,F=k*_,G=N.ca,tt=N.tb+k*d,E=o.Ta,Z=o.Ua;vi(o,_,b,y),Wh(E,Z,G,tt,F),dr(N,d,d+_,G,tt,k),m-=_,b+=_*o.c,d+=_}n(d==s),o.C=o.Ma=s}function Qi(){this.ub=this.yd=this.td=this.Rb=0}function ta(){this.Kd=this.Ld=this.Ud=this.Td=this.i=this.c=0}function Ys(){this.Fb=this.Bb=this.Cb=0,this.Zb=a(4),this.Lb=a(4)}function Fa(){this.Yb=(function(){var o=[];return(function s(d,m,b){for(var y=b[m],_=0;_<y&&(d.push(b.length>m+1?[]:0),!(b.length<m+1));_++)s(d[_],m+1,b)})(o,0,[3,11]),o})()}function Co(){this.jb=a(3),this.Wc=l([4,8],Fa),this.Xc=l([4,17],Fa)}function Oo(){this.Pc=this.wb=this.Tb=this.zd=0,this.vd=new a(4),this.od=new a(4)}function Vn(){this.ld=this.La=this.dd=this.tc=0}function Ea(){this.Na=this.la=0}function To(){this.Sc=[0,0],this.Eb=[0,0],this.Qc=[0,0],this.ia=this.lc=0}function Ca(){this.ad=a(384),this.Za=0,this.Ob=a(16),this.$b=this.Ad=this.ia=this.Gc=this.Hc=this.Dd=0}function Do(){this.uc=this.M=this.Nb=0,this.wa=Array(new Vn),this.Y=0,this.ya=Array(new Ca),this.aa=0,this.l=new ea}function Mo(){this.y=a(16),this.f=a(8),this.ea=a(8)}function Ro(){this.cb=this.a=0,this.sc="",this.m=new x,this.Od=new Qi,this.Kc=new ta,this.ed=new Oo,this.Qa=new Ys,this.Ic=this.$c=this.Aa=0,this.D=new Do,this.Xb=this.Va=this.Hb=this.zb=this.yb=this.Ub=this.za=0,this.Jc=h(8,x),this.ia=0,this.pb=h(4,To),this.Pa=new Co,this.Bd=this.kc=0,this.Ac=[],this.Bc=0,this.zc=[0,0,0,0],this.Gd=Array(new Mo),this.Hd=0,this.rb=Array(new Ea),this.sb=0,this.wa=Array(new Vn),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 Ca),this.L=this.aa=0,this.gd=l([4,2],Vn),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 ea(){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 Ks(){var o=new Ro;return o!=null&&(o.a=0,o.sc="OK",o.cb=0,o.Xb=0,Qa||(Qa=Ir)),o}function Ke(o,s,d){return o.a==0&&(o.a=s,o.sc=d,o.cb=0),0}function jo(o,s,d){return 3<=d&&o[s+0]==157&&o[s+1]==1&&o[s+2]==42}function Bo(o,s){if(o==null)return 0;if(o.a=0,o.sc="OK",s==null)return Ke(o,2,"null VP8Io passed to VP8GetHeaders()");var d=s.data,m=s.w,b=s.ha;if(4>b)return Ke(o,7,"Truncated header.");var y=d[m+0]|d[m+1]<<8|d[m+2]<<16,_=o.Od;if(_.Rb=!(1&y),_.td=y>>1&7,_.yd=y>>4&1,_.ub=y>>5,3<_.td)return Ke(o,3,"Incorrect keyframe parameters.");if(!_.yd)return Ke(o,4,"Frame not displayable.");m+=3,b-=3;var N=o.Kc;if(_.Rb){if(7>b)return Ke(o,7,"cannot parse picture header");if(!jo(d,m,b))return Ke(o,3,"Bad code word");N.c=16383&(d[m+4]<<8|d[m+3]),N.Td=d[m+4]>>6,N.i=16383&(d[m+6]<<8|d[m+5]),N.Ud=d[m+6]>>6,m+=7,b-=7,o.za=N.c+15>>4,o.Ub=N.i+15>>4,s.width=N.c,s.height=N.i,s.Da=0,s.j=0,s.v=0,s.va=s.width,s.o=s.height,s.da=0,s.ib=s.width,s.hb=s.height,s.U=s.width,s.T=s.height,i((y=o.Pa).jb,0,255,y.jb.length),n((y=o.Qa)!=null),y.Cb=0,y.Bb=0,y.Fb=1,i(y.Zb,0,0,y.Zb.length),i(y.Lb,0,0,y.Lb)}if(_.ub>b)return Ke(o,7,"bad partition length");lt(y=o.m,d,m,_.ub),m+=_.ub,b-=_.ub,_.Rb&&(N.Ld=at(y),N.Kd=at(y)),N=o.Qa;var k,F=o.Pa;if(n(y!=null),n(N!=null),N.Cb=at(y),N.Cb){if(N.Bb=at(y),at(y)){for(N.Fb=at(y),k=0;4>k;++k)N.Zb[k]=at(y)?et(y,7):0;for(k=0;4>k;++k)N.Lb[k]=at(y)?et(y,6):0}if(N.Bb)for(k=0;3>k;++k)F.jb[k]=at(y)?ct(y,8):255}else N.Bb=0;if(y.Ka)return Ke(o,3,"cannot parse segment header");if((N=o.ed).zd=at(y),N.Tb=ct(y,6),N.wb=ct(y,3),N.Pc=at(y),N.Pc&&at(y)){for(F=0;4>F;++F)at(y)&&(N.vd[F]=et(y,6));for(F=0;4>F;++F)at(y)&&(N.od[F]=et(y,6))}if(o.L=N.Tb==0?0:N.zd?1:2,y.Ka)return Ke(o,3,"cannot parse filter header");var G=b;if(b=k=m,m=k+G,N=G,o.Xb=(1<<ct(o.m,2))-1,G<3*(F=o.Xb))d=7;else{for(k+=3*F,N-=3*F,G=0;G<F;++G){var tt=d[b+0]|d[b+1]<<8|d[b+2]<<16;tt>N&&(tt=N),lt(o.Jc[+G],d,k,tt),k+=tt,N-=tt,b+=3}lt(o.Jc[+F],d,k,N),d=k<m?0:5}if(d!=0)return Ke(o,d,"cannot parse partitions");for(d=ct(k=o.m,7),b=at(k)?et(k,4):0,m=at(k)?et(k,4):0,N=at(k)?et(k,4):0,F=at(k)?et(k,4):0,k=at(k)?et(k,4):0,G=o.Qa,tt=0;4>tt;++tt){if(G.Cb){var E=G.Zb[tt];G.Fb||(E+=d)}else{if(0<tt){o.pb[tt]=o.pb[0];continue}E=d}var Z=o.pb[tt];Z.Sc[0]=ml[Re(E+b,127)],Z.Sc[1]=vl[Re(E+0,127)],Z.Eb[0]=2*ml[Re(E+m,127)],Z.Eb[1]=101581*vl[Re(E+N,127)]>>16,8>Z.Eb[1]&&(Z.Eb[1]=8),Z.Qc[0]=ml[Re(E+F,117)],Z.Qc[1]=vl[Re(E+k,127)],Z.lc=E+k}if(!_.Rb)return Ke(o,4,"Not a key frame.");for(at(y),_=o.Pa,d=0;4>d;++d){for(b=0;8>b;++b)for(m=0;3>m;++m)for(N=0;11>N;++N)F=mt(y,w1[d][b][m][N])?ct(y,8):v1[d][b][m][N],_.Wc[d][b].Yb[m][N]=F;for(b=0;17>b;++b)_.Xc[d][b]=_.Wc[d][y1[b]]}return o.kc=at(y),o.kc&&(o.Bd=ct(y,8)),o.cb=1}function Ir(o,s,d,m,b,y,_){var N=s[b].Yb[d];for(d=0;16>b;++b){if(!mt(o,N[d+0]))return b;for(;!mt(o,N[d+1]);)if(N=s[++b].Yb[0],d=0,b==16)return 16;var k=s[b+1].Yb;if(mt(o,N[d+2])){var F=o,G=0;if(mt(F,(E=N)[(tt=d)+3]))if(mt(F,E[tt+6])){for(N=0,tt=2*(G=mt(F,E[tt+8]))+(E=mt(F,E[tt+9+G])),G=0,E=g1[tt];E[N];++N)G+=G+mt(F,E[N]);G+=3+(8<<tt)}else mt(F,E[tt+7])?(G=7+2*mt(F,165),G+=mt(F,145)):G=5+mt(F,159);else G=mt(F,E[tt+4])?3+mt(F,E[tt+5]):2;N=k[2]}else G=1,N=k[1];k=_+m1[b],0>(F=o).b&&ot(F);var tt,E=F.b,Z=(tt=F.Ca>>1)-(F.I>>E)>>31;--F.b,F.Ca+=Z,F.Ca|=1,F.I-=(tt+1&Z)<<E,y[k]=((G^Z)-Z)*m[(0<b)+0]}return 16}function yi(o){var s=o.rb[o.sb-1];s.la=0,s.Na=0,i(o.zc,0,0,o.zc.length),o.ja=0}function ir(o,s,d,m,b){b=o[s+d+32*m]+(b>>3),o[s+d+32*m]=-256&b?0>b?0:255:b}function _i(o,s,d,m,b,y){ir(o,s,0,d,m+b),ir(o,s,1,d,m+y),ir(o,s,2,d,m-y),ir(o,s,3,d,m-b)}function qe(o){return(20091*o>>16)+o}function Oa(o,s,d,m){var b,y=0,_=a(16);for(b=0;4>b;++b){var N=o[s+0]+o[s+8],k=o[s+0]-o[s+8],F=(35468*o[s+4]>>16)-qe(o[s+12]),G=qe(o[s+4])+(35468*o[s+12]>>16);_[y+0]=N+G,_[y+1]=k+F,_[y+2]=k-F,_[y+3]=N-G,y+=4,s++}for(b=y=0;4>b;++b)N=(o=_[y+0]+4)+_[y+8],k=o-_[y+8],F=(35468*_[y+4]>>16)-qe(_[y+12]),ir(d,m,0,0,N+(G=qe(_[y+4])+(35468*_[y+12]>>16))),ir(d,m,1,0,k+F),ir(d,m,2,0,k-F),ir(d,m,3,0,N-G),y++,m+=32}function Xs(o,s,d,m){var b=o[s+0]+4,y=35468*o[s+4]>>16,_=qe(o[s+4]),N=35468*o[s+1]>>16;_i(d,m,0,b+_,o=qe(o[s+1]),N),_i(d,m,1,b+y,o,N),_i(d,m,2,b-y,o,N),_i(d,m,3,b-_,o,N)}function Js(o,s,d,m,b){Oa(o,s,d,m),b&&Oa(o,s+16,d,m+4)}function Qs(o,s,d,m){ji(o,s+0,d,m,1),ji(o,s+32,d,m+128,1)}function gr(o,s,d,m){var b;for(o=o[s+0]+4,b=0;4>b;++b)for(s=0;4>s;++s)ir(d,m,s,b,o)}function zo(o,s,d,m){o[s+0]&&ye(o,s+0,d,m),o[s+16]&&ye(o,s+16,d,m+4),o[s+32]&&ye(o,s+32,d,m+128),o[s+48]&&ye(o,s+48,d,m+128+4)}function Uo(o,s,d,m){var b,y=a(16);for(b=0;4>b;++b){var _=o[s+0+b]+o[s+12+b],N=o[s+4+b]+o[s+8+b],k=o[s+4+b]-o[s+8+b],F=o[s+0+b]-o[s+12+b];y[0+b]=_+N,y[8+b]=_-N,y[4+b]=F+k,y[12+b]=F-k}for(b=0;4>b;++b)_=(o=y[0+4*b]+3)+y[3+4*b],N=y[1+4*b]+y[2+4*b],k=y[1+4*b]-y[2+4*b],F=o-y[3+4*b],d[m+0]=_+N>>3,d[m+16]=F+k>>3,d[m+32]=_-N>>3,d[m+48]=F-k>>3,m+=64}function Vr(o,s,d){var m,b=s-32,y=Tn,_=255-o[b-1];for(m=0;m<d;++m){var N,k=y,F=_+o[s-1];for(N=0;N<d;++N)o[s+N]=k[F+o[b+N]];s+=32}}function Ta(o,s){Vr(o,s,4)}function tl(o,s){Vr(o,s,8)}function el(o,s){Vr(o,s,16)}function nl(o,s){var d;for(d=0;16>d;++d)r(o,s+32*d,o,s-32,16)}function Da(o,s){var d;for(d=16;0<d;--d)i(o,s,o[s-1],16),s+=32}function xi(o,s,d){var m;for(m=0;16>m;++m)i(s,d+32*m,o,16)}function Zr(o,s){var d,m=16;for(d=0;16>d;++d)m+=o[s-1+32*d]+o[s+d-32];xi(m>>5,o,s)}function rl(o,s){var d,m=8;for(d=0;16>d;++d)m+=o[s-1+32*d];xi(m>>4,o,s)}function Ai(o,s){var d,m=8;for(d=0;16>d;++d)m+=o[s+d-32];xi(m>>4,o,s)}function Ma(o,s){xi(128,o,s)}function Yt(o,s,d){return o+2*s+d+2>>2}function il(o,s){var d,m=s-32;for(m=new Uint8Array([Yt(o[m-1],o[m+0],o[m+1]),Yt(o[m+0],o[m+1],o[m+2]),Yt(o[m+1],o[m+2],o[m+3]),Yt(o[m+2],o[m+3],o[m+4])]),d=0;4>d;++d)r(o,s+32*d,m,0,m.length)}function al(o,s){var d=o[s-1],m=o[s-1+32],b=o[s-1+64],y=o[s-1+96];xt(o,s+0,16843009*Yt(o[s-1-32],d,m)),xt(o,s+32,16843009*Yt(d,m,b)),xt(o,s+64,16843009*Yt(m,b,y)),xt(o,s+96,16843009*Yt(b,y,y))}function ol(o,s){var d,m=4;for(d=0;4>d;++d)m+=o[s+d-32]+o[s-1+32*d];for(m>>=3,d=0;4>d;++d)i(o,s+32*d,m,4)}function sl(o,s){var d=o[s-1+0],m=o[s-1+32],b=o[s-1+64],y=o[s-1-32],_=o[s+0-32],N=o[s+1-32],k=o[s+2-32],F=o[s+3-32];o[s+0+96]=Yt(m,b,o[s-1+96]),o[s+1+96]=o[s+0+64]=Yt(d,m,b),o[s+2+96]=o[s+1+64]=o[s+0+32]=Yt(y,d,m),o[s+3+96]=o[s+2+64]=o[s+1+32]=o[s+0+0]=Yt(_,y,d),o[s+3+64]=o[s+2+32]=o[s+1+0]=Yt(N,_,y),o[s+3+32]=o[s+2+0]=Yt(k,N,_),o[s+3+0]=Yt(F,k,N)}function Fr(o,s){var d=o[s+1-32],m=o[s+2-32],b=o[s+3-32],y=o[s+4-32],_=o[s+5-32],N=o[s+6-32],k=o[s+7-32];o[s+0+0]=Yt(o[s+0-32],d,m),o[s+1+0]=o[s+0+32]=Yt(d,m,b),o[s+2+0]=o[s+1+32]=o[s+0+64]=Yt(m,b,y),o[s+3+0]=o[s+2+32]=o[s+1+64]=o[s+0+96]=Yt(b,y,_),o[s+3+32]=o[s+2+64]=o[s+1+96]=Yt(y,_,N),o[s+3+64]=o[s+2+96]=Yt(_,N,k),o[s+3+96]=Yt(N,k,k)}function Er(o,s){var d=o[s-1+0],m=o[s-1+32],b=o[s-1+64],y=o[s-1-32],_=o[s+0-32],N=o[s+1-32],k=o[s+2-32],F=o[s+3-32];o[s+0+0]=o[s+1+64]=y+_+1>>1,o[s+1+0]=o[s+2+64]=_+N+1>>1,o[s+2+0]=o[s+3+64]=N+k+1>>1,o[s+3+0]=k+F+1>>1,o[s+0+96]=Yt(b,m,d),o[s+0+64]=Yt(m,d,y),o[s+0+32]=o[s+1+96]=Yt(d,y,_),o[s+1+32]=o[s+2+96]=Yt(y,_,N),o[s+2+32]=o[s+3+96]=Yt(_,N,k),o[s+3+32]=Yt(N,k,F)}function ll(o,s){var d=o[s+0-32],m=o[s+1-32],b=o[s+2-32],y=o[s+3-32],_=o[s+4-32],N=o[s+5-32],k=o[s+6-32],F=o[s+7-32];o[s+0+0]=d+m+1>>1,o[s+1+0]=o[s+0+64]=m+b+1>>1,o[s+2+0]=o[s+1+64]=b+y+1>>1,o[s+3+0]=o[s+2+64]=y+_+1>>1,o[s+0+32]=Yt(d,m,b),o[s+1+32]=o[s+0+96]=Yt(m,b,y),o[s+2+32]=o[s+1+96]=Yt(b,y,_),o[s+3+32]=o[s+2+96]=Yt(y,_,N),o[s+3+64]=Yt(_,N,k),o[s+3+96]=Yt(N,k,F)}function hl(o,s){var d=o[s-1+0],m=o[s-1+32],b=o[s-1+64],y=o[s-1+96];o[s+0+0]=d+m+1>>1,o[s+2+0]=o[s+0+32]=m+b+1>>1,o[s+2+32]=o[s+0+64]=b+y+1>>1,o[s+1+0]=Yt(d,m,b),o[s+3+0]=o[s+1+32]=Yt(m,b,y),o[s+3+32]=o[s+1+64]=Yt(b,y,y),o[s+3+64]=o[s+2+64]=o[s+0+96]=o[s+1+96]=o[s+2+96]=o[s+3+96]=y}function na(o,s){var d=o[s-1+0],m=o[s-1+32],b=o[s-1+64],y=o[s-1+96],_=o[s-1-32],N=o[s+0-32],k=o[s+1-32],F=o[s+2-32];o[s+0+0]=o[s+2+32]=d+_+1>>1,o[s+0+32]=o[s+2+64]=m+d+1>>1,o[s+0+64]=o[s+2+96]=b+m+1>>1,o[s+0+96]=y+b+1>>1,o[s+3+0]=Yt(N,k,F),o[s+2+0]=Yt(_,N,k),o[s+1+0]=o[s+3+32]=Yt(d,_,N),o[s+1+32]=o[s+3+64]=Yt(m,d,_),o[s+1+64]=o[s+3+96]=Yt(b,m,d),o[s+1+96]=Yt(y,b,m)}function Ra(o,s){var d;for(d=0;8>d;++d)r(o,s+32*d,o,s-32,8)}function Ni(o,s){var d;for(d=0;8>d;++d)i(o,s,o[s-1],8),s+=32}function ra(o,s,d){var m;for(m=0;8>m;++m)i(s,d+32*m,o,8)}function ia(o,s){var d,m=8;for(d=0;8>d;++d)m+=o[s+d-32]+o[s-1+32*d];ra(m>>4,o,s)}function cl(o,s){var d,m=4;for(d=0;8>d;++d)m+=o[s+d-32];ra(m>>3,o,s)}function ja(o,s){var d,m=4;for(d=0;8>d;++d)m+=o[s-1+32*d];ra(m>>3,o,s)}function Ba(o,s){ra(128,o,s)}function Li(o,s,d){var m=o[s-d],b=o[s+0],y=3*(b-m)+fl[1020+o[s-2*d]-o[s+d]],_=Xo[112+(y+4>>3)];o[s-d]=Tn[255+m+Xo[112+(y+3>>3)]],o[s+0]=Tn[255+b-_]}function Si(o,s,d,m){var b=o[s+0],y=o[s+d];return Kn[255+o[s-2*d]-o[s-d]]>m||Kn[255+y-b]>m}function za(o,s,d,m){return 4*Kn[255+o[s-d]-o[s+0]]+Kn[255+o[s-2*d]-o[s+d]]<=m}function aa(o,s,d,m,b){var y=o[s-3*d],_=o[s-2*d],N=o[s-d],k=o[s+0],F=o[s+d],G=o[s+2*d],tt=o[s+3*d];return 4*Kn[255+N-k]+Kn[255+_-F]>m?0:Kn[255+o[s-4*d]-y]<=b&&Kn[255+y-_]<=b&&Kn[255+_-N]<=b&&Kn[255+tt-G]<=b&&Kn[255+G-F]<=b&&Kn[255+F-k]<=b}function Ua(o,s,d,m){var b=2*m+1;for(m=0;16>m;++m)za(o,s+m,d,b)&&Li(o,s+m,d)}function ki(o,s,d,m){var b=2*m+1;for(m=0;16>m;++m)za(o,s+m*d,1,b)&&Li(o,s+m*d,1)}function qo(o,s,d,m){var b;for(b=3;0<b;--b)Ua(o,s+=4*d,d,m)}function Ho(o,s,d,m){var b;for(b=3;0<b;--b)ki(o,s+=4,d,m)}function Cr(o,s,d,m,b,y,_,N){for(y=2*y+1;0<b--;){if(aa(o,s,d,y,_))if(Si(o,s,d,N))Li(o,s,d);else{var k=o,F=s,G=d,tt=k[F-2*G],E=k[F-G],Z=k[F+0],X=k[F+G],ht=k[F+2*G],J=27*(gt=fl[1020+3*(Z-E)+fl[1020+tt-X]])+63>>7,ft=18*gt+63>>7,gt=9*gt+63>>7;k[F-3*G]=Tn[255+k[F-3*G]+gt],k[F-2*G]=Tn[255+tt+ft],k[F-G]=Tn[255+E+J],k[F+0]=Tn[255+Z-J],k[F+G]=Tn[255+X-ft],k[F+2*G]=Tn[255+ht-gt]}s+=m}}function Or(o,s,d,m,b,y,_,N){for(y=2*y+1;0<b--;){if(aa(o,s,d,y,_))if(Si(o,s,d,N))Li(o,s,d);else{var k=o,F=s,G=d,tt=k[F-G],E=k[F+0],Z=k[F+G],X=Xo[112+(4+(ht=3*(E-tt))>>3)],ht=Xo[112+(ht+3>>3)],J=X+1>>1;k[F-2*G]=Tn[255+k[F-2*G]+J],k[F-G]=Tn[255+tt+ht],k[F+0]=Tn[255+E-X],k[F+G]=Tn[255+Z-J]}s+=m}}function Wo(o,s,d,m,b,y){Cr(o,s,d,1,16,m,b,y)}function Go(o,s,d,m,b,y){Cr(o,s,1,d,16,m,b,y)}function Pi(o,s,d,m,b,y){var _;for(_=3;0<_;--_)Or(o,s+=4*d,d,1,16,m,b,y)}function Vo(o,s,d,m,b,y){var _;for(_=3;0<_;--_)Or(o,s+=4,1,d,16,m,b,y)}function c(o,s,d,m,b,y,_,N){Cr(o,s,b,1,8,y,_,N),Cr(d,m,b,1,8,y,_,N)}function v(o,s,d,m,b,y,_,N){Cr(o,s,1,b,8,y,_,N),Cr(d,m,1,b,8,y,_,N)}function O(o,s,d,m,b,y,_,N){Or(o,s+4*b,b,1,8,y,_,N),Or(d,m+4*b,b,1,8,y,_,N)}function z(o,s,d,m,b,y,_,N){Or(o,s+4,1,b,8,y,_,N),Or(d,m+4,1,b,8,y,_,N)}function K(){this.ba=new Se,this.ec=[],this.cc=[],this.Mc=[],this.Dc=this.Nc=this.dc=this.fc=0,this.Oa=new we,this.memory=0,this.Ib="OutputFunc",this.Jb="OutputAlphaFunc",this.Nd="OutputRowFunc"}function dt(){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 yt(){this.nc=this.Ea=this.b=this.hc=0,this.K=[],this.w=0}function Et(){this.ua=0,this.Wa=new re,this.vb=new re,this.md=this.xc=this.wc=0,this.vc=[],this.Wb=0,this.Ya=new it,this.yc=new H}function Tt(){this.xb=this.a=0,this.l=new ea,this.ca=new Se,this.V=[],this.Ba=0,this.Ta=[],this.Ua=0,this.m=new D,this.Pb=0,this.wd=new D,this.Ma=this.$=this.C=this.i=this.c=this.xd=0,this.s=new Et,this.ab=0,this.gc=h(4,yt),this.Oc=0}function Zt(){this.Lc=this.Z=this.$a=this.i=this.c=0,this.l=new ea,this.ic=0,this.ca=[],this.tb=0,this.qd=null,this.rd=0}function Kt(o,s,d,m,b,y,_){for(o=o==null?0:o[s+0],s=0;s<_;++s)b[y+s]=o+d[m+s]&255,o=b[y+s]}function me(o,s,d,m,b,y,_){var N;if(o==null)Kt(null,null,d,m,b,y,_);else for(N=0;N<_;++N)b[y+N]=o[s+N]+d[m+N]&255}function De(o,s,d,m,b,y,_){if(o==null)Kt(null,null,d,m,b,y,_);else{var N,k=o[s+0],F=k,G=k;for(N=0;N<_;++N)F=G+(k=o[s+N])-F,G=d[m+N]+(-256&F?0>F?0:255:F)&255,F=k,b[y+N]=G}}function Xe(o,s,d,m){var b=s.width,y=s.o;if(n(o!=null&&s!=null),0>d||0>=m||d+m>y)return null;if(!o.Cc){if(o.ga==null){var _;if(o.ga=new Zt,(_=o.ga==null)||(_=s.width*s.o,n(o.Gb.length==0),o.Gb=a(_),o.Uc=0,o.Gb==null?_=0:(o.mb=o.Gb,o.nb=o.Uc,o.rc=null,_=1),_=!_),!_){_=o.ga;var N=o.Fa,k=o.P,F=o.qc,G=o.mb,tt=o.nb,E=k+1,Z=F-1,X=_.l;if(n(N!=null&&G!=null&&s!=null),ri[0]=null,ri[1]=Kt,ri[2]=me,ri[3]=De,_.ca=G,_.tb=tt,_.c=s.width,_.i=s.height,n(0<_.c&&0<_.i),1>=F)s=0;else if(_.$a=3&N[k+0],_.Z=N[k+0]>>2&3,_.Lc=N[k+0]>>4&3,k=N[k+0]>>6&3,0>_.$a||1<_.$a||4<=_.Z||1<_.Lc||k)s=0;else if(X.put=Wt,X.ac=ur,X.bc=kr,X.ma=_,X.width=s.width,X.height=s.height,X.Da=s.Da,X.v=s.v,X.va=s.va,X.j=s.j,X.o=s.o,_.$a)t:{n(_.$a==1),s=bi();e:for(;;){if(s==null){s=0;break t}if(n(_!=null),_.mc=s,s.c=_.c,s.i=_.i,s.l=_.l,s.l.ma=_,s.l.width=_.c,s.l.height=_.i,s.a=0,ut(s.m,N,E,Z),!pr(_.c,_.i,1,s,null)||(s.ab==1&&s.gc[0].hc==3&&er(s.s)?(_.ic=1,N=s.c*s.i,s.Ta=null,s.Ua=0,s.V=a(N),s.Ba=0,s.V==null?(s.a=1,s=0):s=1):(_.ic=0,s=wi(s,_.c)),!s))break e;s=1;break t}_.mc=null,s=0}else s=Z>=_.c*_.i;_=!s}if(_)return null;o.ga.Lc!=1?o.Ga=0:m=y-d}n(o.ga!=null),n(d+m<=y);t:{if(s=(N=o.ga).c,y=N.l.o,N.$a==0){if(E=o.rc,Z=o.Vc,X=o.Fa,k=o.P+1+d*s,F=o.mb,G=o.nb+d*s,n(k<=o.P+o.qc),N.Z!=0)for(n(ri[N.Z]!=null),_=0;_<m;++_)ri[N.Z](E,Z,X,k,F,G,s),E=F,Z=G,G+=s,k+=s;else for(_=0;_<m;++_)r(F,G,X,k,s),E=F,Z=G,G+=s,k+=s;o.rc=E,o.Vc=Z}else{if(n(N.mc!=null),s=d+m,n((_=N.mc)!=null),n(s<=_.i),_.C>=s)s=1;else if(N.ic||Zn(),N.ic){N=_.V,E=_.Ba,Z=_.c;var ht=_.i,J=(X=1,k=_.$/Z,F=_.$%Z,G=_.m,tt=_.s,_.$),ft=Z*ht,gt=Z*s,_t=tt.wc,bt=J<gt?hn(tt,F,k):null;n(J<=ft),n(s<=ht),n(er(tt));e:for(;;){for(;!G.h&&J<gt;){if(F&_t||(bt=hn(tt,F,k)),n(bt!=null),nt(G),256>(ht=Me(bt.G[0],bt.H[0],G)))N[E+J]=ht,++J,++F>=Z&&(F=0,++k<=s&&!(k%16)&&nr(_,k));else{if(!(280>ht)){X=0;break e}ht=Hn(ht-256,G);var Rt,It=Me(bt.G[4],bt.H[4],G);if(nt(G),!(J>=(It=Wn(Z,It=Hn(It,G)))&&ft-J>=ht)){X=0;break e}for(Rt=0;Rt<ht;++Rt)N[E+J+Rt]=N[E+J+Rt-It];for(J+=ht,F+=ht;F>=Z;)F-=Z,++k<=s&&!(k%16)&&nr(_,k);J<gt&&F&_t&&(bt=hn(tt,F,k))}n(G.h==V(G))}nr(_,k>s?s:k);break e}!X||G.h&&J<ft?(X=0,_.a=G.h?5:3):_.$=J,s=X}else s=rr(_,_.V,_.Ba,_.c,_.i,s,Ji);if(!s){m=0;break t}}d+m>=y&&(o.Cc=1),m=1}if(!m)return null;if(o.Cc&&((m=o.ga)!=null&&(m.mc=null),o.ga=null,0<o.Ga))return alert("todo:WebPDequantizeLevels"),null}return o.nb+d*b}function Ee(o,s,d,m,b,y){for(;0<b--;){var _,N=o,k=s+(d?1:0),F=o,G=s+(d?0:3);for(_=0;_<m;++_){var tt=F[G+4*_];tt!=255&&(tt*=32897,N[k+4*_+0]=N[k+4*_+0]*tt>>23,N[k+4*_+1]=N[k+4*_+1]*tt>>23,N[k+4*_+2]=N[k+4*_+2]*tt>>23)}s+=y}}function tn(o,s,d,m,b){for(;0<m--;){var y;for(y=0;y<d;++y){var _=o[s+2*y+0],N=15&(F=o[s+2*y+1]),k=4369*N,F=(240&F|F>>4)*k>>16;o[s+2*y+0]=(240&_|_>>4)*k>>16&240|(15&_|_<<4)*k>>16>>4&15,o[s+2*y+1]=240&F|N}s+=b}}function Je(o,s,d,m,b,y,_,N){var k,F,G=255;for(F=0;F<b;++F){for(k=0;k<m;++k){var tt=o[s+k];y[_+4*k]=tt,G&=tt}s+=d,_+=N}return G!=255}function cn(o,s,d,m,b){var y;for(y=0;y<b;++y)d[m+y]=o[s+y]>>8}function Zn(){Ja=Ee,qh=tn,Hh=Je,Wh=cn}function kn(o,s,d){j[o]=function(m,b,y,_,N,k,F,G,tt,E,Z,X,ht,J,ft,gt,_t){var bt,Rt=_t-1>>1,It=N[k+0]|F[G+0]<<16,oe=tt[E+0]|Z[X+0]<<16;n(m!=null);var Ct=3*It+oe+131074>>2;for(s(m[b+0],255&Ct,Ct>>16,ht,J),y!=null&&(Ct=3*oe+It+131074>>2,s(y[_+0],255&Ct,Ct>>16,ft,gt)),bt=1;bt<=Rt;++bt){var ce=N[k+bt]|F[G+bt]<<16,nn=tt[E+bt]|Z[X+bt]<<16,se=It+ce+oe+nn+524296,Ot=se+2*(ce+oe)>>3;Ct=Ot+It>>1,It=(se=se+2*(It+nn)>>3)+ce>>1,s(m[b+2*bt-1],255&Ct,Ct>>16,ht,J+(2*bt-1)*d),s(m[b+2*bt-0],255&It,It>>16,ht,J+(2*bt-0)*d),y!=null&&(Ct=se+oe>>1,It=Ot+nn>>1,s(y[_+2*bt-1],255&Ct,Ct>>16,ft,gt+(2*bt-1)*d),s(y[_+2*bt+0],255&It,It>>16,ft,gt+(2*bt+0)*d)),It=ce,oe=nn}1&_t||(Ct=3*It+oe+131074>>2,s(m[b+_t-1],255&Ct,Ct>>16,ht,J+(_t-1)*d),y!=null&&(Ct=3*oe+It+131074>>2,s(y[_+_t-1],255&Ct,Ct>>16,ft,gt+(_t-1)*d)))}}function Zo(){Xn[Jo]=x1,Xn[Qo]=ec,Xn[Kh]=A1,Xn[ts]=nc,Xn[es]=rc,Xn[ul]=ic,Xn[Xh]=N1,Xn[dl]=ec,Xn[pl]=nc,Xn[ns]=rc,Xn[gl]=ic}function oa(o){return o&~L1?0>o?0:255:o>>ac}function Ii(o,s){return oa((19077*o>>8)+(26149*s>>8)-14234)}function $r(o,s,d){return oa((19077*o>>8)-(6419*s>>8)-(13320*d>>8)+8708)}function Fi(o,s){return oa((19077*o>>8)+(33050*s>>8)-17685)}function Ei(o,s,d,m,b){m[b+0]=Ii(o,d),m[b+1]=$r(o,s,d),m[b+2]=Fi(o,s)}function Ci(o,s,d,m,b){m[b+0]=Fi(o,s),m[b+1]=$r(o,s,d),m[b+2]=Ii(o,d)}function mn(o,s,d,m,b){var y=$r(o,s,d);s=y<<3&224|Fi(o,s)>>3,m[b+0]=248&Ii(o,d)|y>>5,m[b+1]=s}function Oi(o,s,d,m,b){var y=240&Fi(o,s)|15;m[b+0]=240&Ii(o,d)|$r(o,s,d)>>4,m[b+1]=y}function Ti(o,s,d,m,b){m[b+0]=255,Ei(o,s,d,m,b+1)}function qa(o,s,d,m,b){Ci(o,s,d,m,b),m[b+3]=255}function Ha(o,s,d,m,b){Ei(o,s,d,m,b),m[b+3]=255}function Re(o,s){return 0>o?0:o>s?s:o}function Tr(o,s,d){j[o]=function(m,b,y,_,N,k,F,G,tt){for(var E=G+(-2&tt)*d;G!=E;)s(m[b+0],y[_+0],N[k+0],F,G),s(m[b+1],y[_+0],N[k+0],F,G+d),b+=2,++_,++k,G+=2*d;1&tt&&s(m[b+0],y[_+0],N[k+0],F,G)}}function sa(o,s,d){return d==0?o==0?s==0?6:5:s==0?4:0:d}function $o(o,s,d,m,b){switch(o>>>30){case 3:ji(s,d,m,b,0);break;case 2:Yn(s,d,m,b);break;case 1:ye(s,d,m,b)}}function $n(o,s){var d,m,b=s.M,y=s.Nb,_=o.oc,N=o.pc+40,k=o.oc,F=o.pc+584,G=o.oc,tt=o.pc+600;for(d=0;16>d;++d)_[N+32*d-1]=129;for(d=0;8>d;++d)k[F+32*d-1]=129,G[tt+32*d-1]=129;for(0<b?_[N-1-32]=k[F-1-32]=G[tt-1-32]=129:(i(_,N-32-1,127,21),i(k,F-32-1,127,9),i(G,tt-32-1,127,9)),m=0;m<o.za;++m){var E=s.ya[s.aa+m];if(0<m){for(d=-1;16>d;++d)r(_,N+32*d-4,_,N+32*d+12,4);for(d=-1;8>d;++d)r(k,F+32*d-4,k,F+32*d+4,4),r(G,tt+32*d-4,G,tt+32*d+4,4)}var Z=o.Gd,X=o.Hd+m,ht=E.ad,J=E.Hc;if(0<b&&(r(_,N-32,Z[X].y,0,16),r(k,F-32,Z[X].f,0,8),r(G,tt-32,Z[X].ea,0,8)),E.Za){var ft=_,gt=N-32+16;for(0<b&&(m>=o.za-1?i(ft,gt,Z[X].y[15],4):r(ft,gt,Z[X+1].y,0,4)),d=0;4>d;d++)ft[gt+128+d]=ft[gt+256+d]=ft[gt+384+d]=ft[gt+0+d];for(d=0;16>d;++d,J<<=2)ft=_,gt=N+sc[d],ar[E.Ob[d]](ft,gt),$o(J,ht,16*+d,ft,gt)}else if(ft=sa(m,b,E.Ob[0]),ni[ft](_,N),J!=0)for(d=0;16>d;++d,J<<=2)$o(J,ht,16*+d,_,N+sc[d]);for(d=E.Gc,ft=sa(m,b,E.Dd),Rr[ft](k,F),Rr[ft](G,tt),J=ht,ft=k,gt=F,255&(E=0|d)&&(170&E?br(J,256,ft,gt):ke(J,256,ft,gt)),E=G,J=tt,255&(d>>=8)&&(170&d?br(ht,320,E,J):ke(ht,320,E,J)),b<o.Ub-1&&(r(Z[X].y,0,_,N+480,16),r(Z[X].f,0,k,F+224,8),r(Z[X].ea,0,G,tt+224,8)),d=8*y*o.B,Z=o.sa,X=o.ta+16*m+16*y*o.R,ht=o.qa,E=o.ra+8*m+d,J=o.Ha,ft=o.Ia+8*m+d,d=0;16>d;++d)r(Z,X+d*o.R,_,N+32*d,16);for(d=0;8>d;++d)r(ht,E+d*o.B,k,F+32*d,8),r(J,ft+d*o.B,G,tt+32*d,8)}}function Di(o,s,d,m,b,y,_,N,k){var F=[0],G=[0],tt=0,E=k!=null?k.kd:0,Z=k??new dt;if(o==null||12>d)return 7;Z.data=o,Z.w=s,Z.ha=d,s=[s],d=[d],Z.gb=[Z.gb];t:{var X=s,ht=d,J=Z.gb;if(n(o!=null),n(ht!=null),n(J!=null),J[0]=0,12<=ht[0]&&!e(o,X[0],"RIFF")){if(e(o,X[0]+8,"WEBP")){J=3;break t}var ft=st(o,X[0]+4);if(12>ft||4294967286<ft){J=3;break t}if(E&&ft>ht[0]-8){J=7;break t}J[0]=ft,X[0]+=12,ht[0]-=12}J=0}if(J!=0)return J;for(ft=0<Z.gb[0],d=d[0];;){t:{var gt=o;ht=s,J=d;var _t=F,bt=G,Rt=X=[0];if((Ct=tt=[tt])[0]=0,8>J[0])J=7;else{if(!e(gt,ht[0],"VP8X")){if(st(gt,ht[0]+4)!=10){J=3;break t}if(18>J[0]){J=7;break t}var It=st(gt,ht[0]+8),oe=1+Pt(gt,ht[0]+12);if(2147483648<=oe*(gt=1+Pt(gt,ht[0]+15))){J=3;break t}Rt!=null&&(Rt[0]=It),_t!=null&&(_t[0]=oe),bt!=null&&(bt[0]=gt),ht[0]+=18,J[0]-=18,Ct[0]=1}J=0}}if(tt=tt[0],X=X[0],J!=0)return J;if(ht=!!(2&X),!ft&&tt)return 3;if(y!=null&&(y[0]=!!(16&X)),_!=null&&(_[0]=ht),N!=null&&(N[0]=0),_=F[0],X=G[0],tt&&ht&&k==null){J=0;break}if(4>d){J=7;break}if(ft&&tt||!ft&&!tt&&!e(o,s[0],"ALPH")){d=[d],Z.na=[Z.na],Z.P=[Z.P],Z.Sa=[Z.Sa];t:{It=o,J=s,ft=d;var Ct=Z.gb;_t=Z.na,bt=Z.P,Rt=Z.Sa,oe=22,n(It!=null),n(ft!=null),gt=J[0];var ce=ft[0];for(n(_t!=null),n(Rt!=null),_t[0]=null,bt[0]=null,Rt[0]=0;;){if(J[0]=gt,ft[0]=ce,8>ce){J=7;break t}var nn=st(It,gt+4);if(4294967286<nn){J=3;break t}var se=8+nn+1&-2;if(oe+=se,0<Ct&&oe>Ct){J=3;break t}if(!e(It,gt,"VP8 ")||!e(It,gt,"VP8L")){J=0;break t}if(ce[0]<se){J=7;break t}e(It,gt,"ALPH")||(_t[0]=It,bt[0]=gt+8,Rt[0]=nn),gt+=se,ce-=se}}if(d=d[0],Z.na=Z.na[0],Z.P=Z.P[0],Z.Sa=Z.Sa[0],J!=0)break}d=[d],Z.Ja=[Z.Ja],Z.xa=[Z.xa];t:if(Ct=o,J=s,ft=d,_t=Z.gb[0],bt=Z.Ja,Rt=Z.xa,It=J[0],gt=!e(Ct,It,"VP8 "),oe=!e(Ct,It,"VP8L"),n(Ct!=null),n(ft!=null),n(bt!=null),n(Rt!=null),8>ft[0])J=7;else{if(gt||oe){if(Ct=st(Ct,It+4),12<=_t&&Ct>_t-12){J=3;break t}if(E&&Ct>ft[0]-8){J=7;break t}bt[0]=Ct,J[0]+=8,ft[0]-=8,Rt[0]=oe}else Rt[0]=5<=ft[0]&&Ct[It+0]==47&&!(Ct[It+4]>>5),bt[0]=ft[0];J=0}if(d=d[0],Z.Ja=Z.Ja[0],Z.xa=Z.xa[0],s=s[0],J!=0)break;if(4294967286<Z.Ja)return 3;if(N==null||ht||(N[0]=Z.xa?2:1),_=[_],X=[X],Z.xa){if(5>d){J=7;break}N=_,E=X,ht=y,o==null||5>d?o=0:5<=d&&o[s+0]==47&&!(o[s+4]>>5)?(ft=[0],Ct=[0],_t=[0],ut(bt=new D,o,s,d),Pr(bt,ft,Ct,_t)?(N!=null&&(N[0]=ft[0]),E!=null&&(E[0]=Ct[0]),ht!=null&&(ht[0]=_t[0]),o=1):o=0):o=0}else{if(10>d){J=7;break}N=X,o==null||10>d||!jo(o,s+3,d-3)?o=0:(E=o[s+0]|o[s+1]<<8|o[s+2]<<16,ht=16383&(o[s+7]<<8|o[s+6]),o=16383&(o[s+9]<<8|o[s+8]),1&E||3<(E>>1&7)||!(E>>4&1)||E>>5>=Z.Ja||!ht||!o?o=0:(_&&(_[0]=ht),N&&(N[0]=o),o=1))}if(!o||(_=_[0],X=X[0],tt&&(F[0]!=_||G[0]!=X)))return 3;k!=null&&(k[0]=Z,k.offset=s-k.w,n(4294967286>s-k.w),n(k.offset==k.ha-d));break}return J==0||J==7&&tt&&k==null?(y!=null&&(y[0]|=Z.na!=null&&0<Z.na.length),m!=null&&(m[0]=_),b!=null&&(b[0]=X),0):J}function Wa(o,s,d){var m=s.width,b=s.height,y=0,_=0,N=m,k=b;if(s.Da=o!=null&&0<o.Da,s.Da&&(N=o.cd,k=o.bd,y=o.v,_=o.j,11>d||(y&=-2,_&=-2),0>y||0>_||0>=N||0>=k||y+N>m||_+k>b))return 0;if(s.v=y,s.j=_,s.va=y+N,s.o=_+k,s.U=N,s.T=k,s.da=o!=null&&0<o.da,s.da){if(!qt(N,k,d=[o.ib],y=[o.hb]))return 0;s.ib=d[0],s.hb=y[0]}return s.ob=o!=null&&o.ob,s.Kb=o==null||!o.Sd,s.da&&(s.ob=s.ib<3*m/4&&s.hb<3*b/4,s.Kb=0),1}function Ga(o){if(o==null)return 2;if(11>o.S){var s=o.f.RGBA;s.fb+=(o.height-1)*s.A,s.A=-s.A}else s=o.f.kb,o=o.height,s.O+=(o-1)*s.fa,s.fa=-s.fa,s.N+=(o-1>>1)*s.Ab,s.Ab=-s.Ab,s.W+=(o-1>>1)*s.Db,s.Db=-s.Db,s.F!=null&&(s.J+=(o-1)*s.lb,s.lb=-s.lb);return 0}function Yr(o,s,d,m){if(m==null||0>=o||0>=s)return 2;if(d!=null){if(d.Da){var b=d.cd,y=d.bd,_=-2&d.v,N=-2&d.j;if(0>_||0>N||0>=b||0>=y||_+b>o||N+y>s)return 2;o=b,s=y}if(d.da){if(!qt(o,s,b=[d.ib],y=[d.hb]))return 2;o=b[0],s=y[0]}}m.width=o,m.height=s;t:{var k=m.width,F=m.height;if(o=m.S,0>=k||0>=F||!(o>=Jo&&13>o))o=2;else{if(0>=m.Rd&&m.sd==null){_=y=b=s=0;var G=(N=k*lc[o])*F;if(11>o||(y=(F+1)/2*(s=(k+1)/2),o==12&&(_=(b=k)*F)),(F=a(G+2*y+_))==null){o=1;break t}m.sd=F,11>o?((k=m.f.RGBA).eb=F,k.fb=0,k.A=N,k.size=G):((k=m.f.kb).y=F,k.O=0,k.fa=N,k.Fd=G,k.f=F,k.N=0+G,k.Ab=s,k.Cd=y,k.ea=F,k.W=0+G+y,k.Db=s,k.Ed=y,o==12&&(k.F=F,k.J=0+G+2*y),k.Tc=_,k.lb=b)}if(s=1,b=m.S,y=m.width,_=m.height,b>=Jo&&13>b)if(11>b)o=m.f.RGBA,s&=(N=Math.abs(o.A))*(_-1)+y<=o.size,s&=N>=y*lc[b],s&=o.eb!=null;else{o=m.f.kb,N=(y+1)/2,G=(_+1)/2,k=Math.abs(o.fa),F=Math.abs(o.Ab);var tt=Math.abs(o.Db),E=Math.abs(o.lb),Z=E*(_-1)+y;s&=k*(_-1)+y<=o.Fd,s&=F*(G-1)+N<=o.Cd,s=(s&=tt*(G-1)+N<=o.Ed)&k>=y&F>=N&tt>=N,s&=o.y!=null,s&=o.f!=null,s&=o.ea!=null,b==12&&(s&=E>=y,s&=Z<=o.Tc,s&=o.F!=null)}else s=0;o=s?0:2}}return o!=0||d!=null&&d.fd&&(o=Ga(m)),o}var Mi=64,Cn=[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],On=24,Kr=32,Dr=8,Xr=[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];St("Predictor0","PredictorAdd0"),j.Predictor0=function(){return 4278190080},j.Predictor1=function(o){return o},j.Predictor2=function(o,s,d){return s[d+0]},j.Predictor3=function(o,s,d){return s[d+1]},j.Predictor4=function(o,s,d){return s[d-1]},j.Predictor5=function(o,s,d){return Ut(Ut(o,s[d+1]),s[d+0])},j.Predictor6=function(o,s,d){return Ut(o,s[d-1])},j.Predictor7=function(o,s,d){return Ut(o,s[d+0])},j.Predictor8=function(o,s,d){return Ut(s[d-1],s[d+0])},j.Predictor9=function(o,s,d){return Ut(s[d+0],s[d+1])},j.Predictor10=function(o,s,d){return Ut(Ut(o,s[d-1]),Ut(s[d+0],s[d+1]))},j.Predictor11=function(o,s,d){var m=s[d+0];return 0>=Qt(m>>24&255,o>>24&255,(s=s[d-1])>>24&255)+Qt(m>>16&255,o>>16&255,s>>16&255)+Qt(m>>8&255,o>>8&255,s>>8&255)+Qt(255&m,255&o,255&s)?m:o},j.Predictor12=function(o,s,d){var m=s[d+0];return(pe((o>>24&255)+(m>>24&255)-((s=s[d-1])>>24&255))<<24|pe((o>>16&255)+(m>>16&255)-(s>>16&255))<<16|pe((o>>8&255)+(m>>8&255)-(s>>8&255))<<8|pe((255&o)+(255&m)-(255&s)))>>>0},j.Predictor13=function(o,s,d){var m=s[d-1];return(Jt((o=Ut(o,s[d+0]))>>24&255,m>>24&255)<<24|Jt(o>>16&255,m>>16&255)<<16|Jt(o>>8&255,m>>8&255)<<8|Jt(255&o,255&m))>>>0};var Va=j.PredictorAdd0;j.PredictorAdd1=Ae,St("Predictor2","PredictorAdd2"),St("Predictor3","PredictorAdd3"),St("Predictor4","PredictorAdd4"),St("Predictor5","PredictorAdd5"),St("Predictor6","PredictorAdd6"),St("Predictor7","PredictorAdd7"),St("Predictor8","PredictorAdd8"),St("Predictor9","PredictorAdd9"),St("Predictor10","PredictorAdd10"),St("Predictor11","PredictorAdd11"),St("Predictor12","PredictorAdd12"),St("Predictor13","PredictorAdd13");var la=j.PredictorAdd2;zt("ColorIndexInverseTransform","MapARGB","32b",function(o){return o>>8&255},function(o){return o}),zt("VP8LColorIndexInverseTransformAlpha","MapAlpha","8b",function(o){return o},function(o){return o>>8&255});var He,Yo=j.ColorIndexInverseTransform,mr=j.MapARGB,vr=j.VP8LColorIndexInverseTransformAlpha,Za=j.MapAlpha,$a=j.VP8LPredictorsAdd=[];$a.length=16,(j.VP8LPredictors=[]).length=16,(j.VP8LPredictorsAdd_C=[]).length=16,(j.VP8LPredictors_C=[]).length=16;var Ya,Ka,Jr,Qr,ti,Ri,ei,ji,Yn,br,ye,ke,We,en,Mr,Xa,ha,Ko,Mh,Rh,jh,Bh,zh,Uh,Ja,qh,Hh,Wh,Gh=a(511),Vh=a(2041),Zh=a(225),$h=a(767),Yh=0,fl=Vh,Xo=Zh,Tn=$h,Kn=Gh,Jo=0,Qo=1,Kh=2,ts=3,es=4,ul=5,Xh=6,dl=7,pl=8,ns=9,gl=10,l1=[2,3,7],h1=[3,3,11],Jh=[280,256,256,256,40],c1=[0,1,1,1,0],f1=[17,18,0,1,2,3,4,5,16,6,7,8,9,10,11,12,13,14,15],u1=[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],d1=[2954,2956,2958,2962,2970,2986,3018,3082,3212,3468,3980,5004],p1=8,ml=[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],vl=[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],Qa=null,g1=[[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]],m1=[0,1,4,8,5,2,3,6,9,12,13,10,7,11,14,15],Qh=[-0,1,-1,2,-2,3,4,6,-3,5,-4,-5,-6,7,-7,8,-8,-9],v1=[[[[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]]]],b1=[[[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]]],w1=[[[[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]]]],y1=[0,1,2,3,6,4,5,6,6,6,6,6,6,6,6,7,0],ni=[],ar=[],Rr=[],_1=1,tc=2,ri=[],Xn=[];kn("UpsampleRgbLinePair",Ei,3),kn("UpsampleBgrLinePair",Ci,3),kn("UpsampleRgbaLinePair",Ha,4),kn("UpsampleBgraLinePair",qa,4),kn("UpsampleArgbLinePair",Ti,4),kn("UpsampleRgba4444LinePair",Oi,2),kn("UpsampleRgb565LinePair",mn,2);var x1=j.UpsampleRgbLinePair,A1=j.UpsampleBgrLinePair,ec=j.UpsampleRgbaLinePair,nc=j.UpsampleBgraLinePair,rc=j.UpsampleArgbLinePair,ic=j.UpsampleRgba4444LinePair,N1=j.UpsampleRgb565LinePair,rs=16,is=1<<rs-1,to=-227,bl=482,ac=6,L1=(256<<ac)-1,oc=0,S1=a(256),k1=a(256),P1=a(256),I1=a(256),F1=a(bl-to),E1=a(bl-to);Tr("YuvToRgbRow",Ei,3),Tr("YuvToBgrRow",Ci,3),Tr("YuvToRgbaRow",Ha,4),Tr("YuvToBgraRow",qa,4),Tr("YuvToArgbRow",Ti,4),Tr("YuvToRgba4444Row",Oi,2),Tr("YuvToRgb565Row",mn,2);var sc=[0,4,8,12,128,132,136,140,256,260,264,268,384,388,392,396],as=[0,2,8],C1=[8,7,6,4,4,2,2,2,1,1,1,1],O1=1;this.WebPDecodeRGBA=function(o,s,d,m,b){var y=Qo,_=new K,N=new Se;_.ba=N,N.S=y,N.width=[N.width],N.height=[N.height];var k=N.width,F=N.height,G=new $t;if(G==null||o==null)var tt=2;else n(G!=null),tt=Di(o,s,d,G.width,G.height,G.Pd,G.Qd,G.format,null);if(tt!=0?k=0:(k!=null&&(k[0]=G.width[0]),F!=null&&(F[0]=G.height[0]),k=1),k){N.width=N.width[0],N.height=N.height[0],m!=null&&(m[0]=N.width),b!=null&&(b[0]=N.height);t:{if(m=new ea,(b=new dt).data=o,b.w=s,b.ha=d,b.kd=1,s=[0],n(b!=null),((o=Di(b.data,b.w,b.ha,null,null,null,s,null,b))==0||o==7)&&s[0]&&(o=4),(s=o)==0){if(n(_!=null),m.data=b.data,m.w=b.w+b.offset,m.ha=b.ha-b.offset,m.put=Wt,m.ac=ur,m.bc=kr,m.ma=_,b.xa){if((o=bi())==null){_=1;break t}if((function(E,Z){var X=[0],ht=[0],J=[0];e:for(;;){if(E==null)return 0;if(Z==null)return E.a=2,0;if(E.l=Z,E.a=0,ut(E.m,Z.data,Z.w,Z.ha),!Pr(E.m,X,ht,J)){E.a=3;break e}if(E.xb=tc,Z.width=X[0],Z.height=ht[0],!pr(X[0],ht[0],1,E,null))break e;return 1}return n(E.a!=0),0})(o,m)){if(m=(s=Yr(m.width,m.height,_.Oa,_.ba))==0){e:{m=o;n:for(;;){if(m==null){m=0;break e}if(n(m.s.yc!=null),n(m.s.Ya!=null),n(0<m.s.Wb),n((d=m.l)!=null),n((b=d.ma)!=null),m.xb!=0){if(m.ca=b.ba,m.tb=b.tb,n(m.ca!=null),!Wa(b.Oa,d,ts)){m.a=2;break n}if(!wi(m,d.width)||d.da)break n;if((d.da||ee(m.ca.S))&&Zn(),11>m.ca.S||(alert("todo:WebPInitConvertARGBToYUV"),m.ca.f.kb.F!=null&&Zn()),m.Pb&&0<m.s.ua&&m.s.vb.X==null&&!M(m.s.vb,m.s.Wa.Xa)){m.a=1;break n}m.xb=0}if(!rr(m,m.V,m.Ba,m.c,m.i,d.o,Gr))break n;b.Dc=m.Ma,m=1;break e}n(m.a!=0),m=0}m=!m}m&&(s=o.a)}else s=o.a}else{if((o=new Ks)==null){_=1;break t}if(o.Fa=b.na,o.P=b.P,o.qc=b.Sa,Bo(o,m)){if((s=Yr(m.width,m.height,_.Oa,_.ba))==0){if(o.Aa=0,d=_.Oa,n((b=o)!=null),d!=null){if(0<(k=0>(k=d.Md)?0:100<k?255:255*k/100)){for(F=G=0;4>F;++F)12>(tt=b.pb[F]).lc&&(tt.ia=k*C1[0>tt.lc?0:tt.lc]>>3),G|=tt.ia;G&&(alert("todo:VP8InitRandom"),b.ia=1)}b.Ga=d.Id,100<b.Ga?b.Ga=100:0>b.Ga&&(b.Ga=0)}(function(E,Z){if(E==null)return 0;if(Z==null)return Ke(E,2,"NULL VP8Io parameter in VP8Decode().");if(!E.cb&&!Bo(E,Z))return 0;if(n(E.cb),Z.ac==null||Z.ac(Z)){Z.ob&&(E.L=0);var X=as[E.L];if(E.L==2?(E.yb=0,E.zb=0):(E.yb=Z.v-X>>4,E.zb=Z.j-X>>4,0>E.yb&&(E.yb=0),0>E.zb&&(E.zb=0)),E.Va=Z.o+15+X>>4,E.Hb=Z.va+15+X>>4,E.Hb>E.za&&(E.Hb=E.za),E.Va>E.Ub&&(E.Va=E.Ub),0<E.L){var ht=E.ed;for(X=0;4>X;++X){var J;if(E.Qa.Cb){var ft=E.Qa.Lb[X];E.Qa.Fb||(ft+=ht.Tb)}else ft=ht.Tb;for(J=0;1>=J;++J){var gt=E.gd[X][J],_t=ft;if(ht.Pc&&(_t+=ht.vd[0],J&&(_t+=ht.od[0])),0<(_t=0>_t?0:63<_t?63:_t)){var bt=_t;0<ht.wb&&(bt=4<ht.wb?bt>>2:bt>>1)>9-ht.wb&&(bt=9-ht.wb),1>bt&&(bt=1),gt.dd=bt,gt.tc=2*_t+bt,gt.ld=40<=_t?2:15<=_t?1:0}else gt.tc=0;gt.La=J}}}X=0}else Ke(E,6,"Frame setup failed"),X=E.a;if(X=X==0){if(X){E.$c=0,0<E.Aa||(E.Ic=O1);e:{X=E.Ic,ht=4*(bt=E.za);var Rt=32*bt,It=bt+1,oe=0<E.L?bt*(0<E.Aa?2:1):0,Ct=(E.Aa==2?2:1)*bt;if((gt=ht+832+(J=3*(16*X+as[E.L])/2*Rt)+(ft=E.Fa!=null&&0<E.Fa.length?E.Kc.c*E.Kc.i:0))!=gt)X=0;else{if(gt>E.Vb){if(E.Vb=0,E.Ec=a(gt),E.Fc=0,E.Ec==null){X=Ke(E,1,"no memory during frame initialization.");break e}E.Vb=gt}gt=E.Ec,_t=E.Fc,E.Ac=gt,E.Bc=_t,_t+=ht,E.Gd=h(Rt,Mo),E.Hd=0,E.rb=h(It+1,Ea),E.sb=1,E.wa=oe?h(oe,Vn):null,E.Y=0,E.D.Nb=0,E.D.wa=E.wa,E.D.Y=E.Y,0<E.Aa&&(E.D.Y+=bt),n(!0),E.oc=gt,E.pc=_t,_t+=832,E.ya=h(Ct,Ca),E.aa=0,E.D.ya=E.ya,E.D.aa=E.aa,E.Aa==2&&(E.D.aa+=bt),E.R=16*bt,E.B=8*bt,bt=(Rt=as[E.L])*E.R,Rt=Rt/2*E.B,E.sa=gt,E.ta=_t+bt,E.qa=E.sa,E.ra=E.ta+16*X*E.R+Rt,E.Ha=E.qa,E.Ia=E.ra+8*X*E.B+Rt,E.$c=0,_t+=J,E.mb=ft?gt:null,E.nb=ft?_t:null,n(_t+ft<=E.Fc+E.Vb),yi(E),i(E.Ac,E.Bc,0,ht),X=1}}if(X){if(Z.ka=0,Z.y=E.sa,Z.O=E.ta,Z.f=E.qa,Z.N=E.ra,Z.ea=E.Ha,Z.Vd=E.Ia,Z.fa=E.R,Z.Rc=E.B,Z.F=null,Z.J=0,!Yh){for(X=-255;255>=X;++X)Gh[255+X]=0>X?-X:X;for(X=-1020;1020>=X;++X)Vh[1020+X]=-128>X?-128:127<X?127:X;for(X=-112;112>=X;++X)Zh[112+X]=-16>X?-16:15<X?15:X;for(X=-255;510>=X;++X)$h[255+X]=0>X?0:255<X?255:X;Yh=1}ei=Uo,ji=Js,br=Qs,ye=gr,ke=zo,Yn=Xs,We=Wo,en=Go,Mr=c,Xa=v,ha=Pi,Ko=Vo,Mh=O,Rh=z,jh=Ua,Bh=ki,zh=qo,Uh=Ho,ar[0]=ol,ar[1]=Ta,ar[2]=il,ar[3]=al,ar[4]=sl,ar[5]=Er,ar[6]=Fr,ar[7]=ll,ar[8]=na,ar[9]=hl,ni[0]=Zr,ni[1]=el,ni[2]=nl,ni[3]=Da,ni[4]=rl,ni[5]=Ai,ni[6]=Ma,Rr[0]=ia,Rr[1]=tl,Rr[2]=Ra,Rr[3]=Ni,Rr[4]=ja,Rr[5]=cl,Rr[6]=Ba,X=1}else X=0}X&&(X=(function(ce,nn){for(ce.M=0;ce.M<ce.Va;++ce.M){var se,Ot=ce.Jc[ce.M&ce.Xb],Lt=ce.m,Ge=ce;for(se=0;se<Ge.za;++se){var ne=Lt,ue=Ge,Oe=ue.Ac,fn=ue.Bc+4*se,xn=ue.zc,je=ue.ya[ue.aa+se];if(ue.Qa.Bb?je.$b=mt(ne,ue.Pa.jb[0])?2+mt(ne,ue.Pa.jb[2]):mt(ne,ue.Pa.jb[1]):je.$b=0,ue.kc&&(je.Ad=mt(ne,ue.Bd)),je.Za=!mt(ne,145)+0,je.Za){var vn=je.Ob,An=0;for(ue=0;4>ue;++ue){var rn,de=xn[0+ue];for(rn=0;4>rn;++rn){de=b1[Oe[fn+rn]][de];for(var _e=Qh[mt(ne,de[0])];0<_e;)_e=Qh[2*_e+mt(ne,de[_e])];de=-_e,Oe[fn+rn]=de}r(vn,An,Oe,fn,4),An+=4,xn[0+ue]=de}}else de=mt(ne,156)?mt(ne,128)?1:3:mt(ne,163)?2:0,je.Ob[0]=de,i(Oe,fn,de,4),i(xn,0,de,4);je.Dd=mt(ne,142)?mt(ne,114)?mt(ne,183)?1:3:2:0}if(Ge.m.Ka)return Ke(ce,7,"Premature end-of-partition0 encountered.");for(;ce.ja<ce.za;++ce.ja){if(Ge=Ot,ne=(Lt=ce).rb[Lt.sb-1],Oe=Lt.rb[Lt.sb+Lt.ja],se=Lt.ya[Lt.aa+Lt.ja],fn=Lt.kc?se.Ad:0)ne.la=Oe.la=0,se.Za||(ne.Na=Oe.Na=0),se.Hc=0,se.Gc=0,se.ia=0;else{var Be,xe;if(ne=Oe,Oe=Ge,fn=Lt.Pa.Xc,xn=Lt.ya[Lt.aa+Lt.ja],je=Lt.pb[xn.$b],ue=xn.ad,vn=0,An=Lt.rb[Lt.sb-1],de=rn=0,i(ue,vn,0,384),xn.Za)var un=0,or=fn[3];else{_e=a(16);var Ve=ne.Na+An.Na;if(Ve=Qa(Oe,fn[1],Ve,je.Eb,0,_e,0),ne.Na=An.Na=(0<Ve)+0,1<Ve)ei(_e,0,ue,vn);else{var Pn=_e[0]+3>>3;for(_e=0;256>_e;_e+=16)ue[vn+_e]=Pn}un=1,or=fn[0]}var Pe=15&ne.la,an=15&An.la;for(_e=0;4>_e;++_e){var Dn=1&an;for(Pn=xe=0;4>Pn;++Pn)Pe=Pe>>1|(Dn=(Ve=Qa(Oe,or,Ve=Dn+(1&Pe),je.Sc,un,ue,vn))>un)<<7,xe=xe<<2|(3<Ve?3:1<Ve?2:ue[vn+0]!=0),vn+=16;Pe>>=4,an=an>>1|Dn<<7,rn=(rn<<8|xe)>>>0}for(or=Pe,un=an>>4,Be=0;4>Be;Be+=2){for(xe=0,Pe=ne.la>>4+Be,an=An.la>>4+Be,_e=0;2>_e;++_e){for(Dn=1&an,Pn=0;2>Pn;++Pn)Ve=Dn+(1&Pe),Pe=Pe>>1|(Dn=0<(Ve=Qa(Oe,fn[2],Ve,je.Qc,0,ue,vn)))<<3,xe=xe<<2|(3<Ve?3:1<Ve?2:ue[vn+0]!=0),vn+=16;Pe>>=2,an=an>>1|Dn<<5}de|=xe<<4*Be,or|=Pe<<4<<Be,un|=(240&an)<<Be}ne.la=or,An.la=un,xn.Hc=rn,xn.Gc=de,xn.ia=43690&de?0:je.ia,fn=!(rn|de)}if(0<Lt.L&&(Lt.wa[Lt.Y+Lt.ja]=Lt.gd[se.$b][se.Za],Lt.wa[Lt.Y+Lt.ja].La|=!fn),Ge.Ka)return Ke(ce,7,"Premature end-of-file encountered.")}if(yi(ce),Lt=nn,Ge=1,se=(Ot=ce).D,ne=0<Ot.L&&Ot.M>=Ot.zb&&Ot.M<=Ot.Va,Ot.Aa==0)e:{if(se.M=Ot.M,se.uc=ne,$n(Ot,se),Ge=1,se=(xe=Ot.D).Nb,ne=(de=as[Ot.L])*Ot.R,Oe=de/2*Ot.B,_e=16*se*Ot.R,Pn=8*se*Ot.B,fn=Ot.sa,xn=Ot.ta-ne+_e,je=Ot.qa,ue=Ot.ra-Oe+Pn,vn=Ot.Ha,An=Ot.Ia-Oe+Pn,an=(Pe=xe.M)==0,rn=Pe>=Ot.Va-1,Ot.Aa==2&&$n(Ot,xe),xe.uc)for(Dn=(Ve=Ot).D.M,n(Ve.D.uc),xe=Ve.yb;xe<Ve.Hb;++xe){un=xe,or=Dn;var Nn=(Mn=(dn=Ve).D).Nb;Be=dn.R;var Mn=Mn.wa[Mn.Y+un],Rn=dn.sa,In=dn.ta+16*Nn*Be+16*un,jn=Mn.dd,Ce=Mn.tc;if(Ce!=0)if(n(3<=Ce),dn.L==1)0<un&&Bh(Rn,In,Be,Ce+4),Mn.La&&Uh(Rn,In,Be,Ce),0<or&&jh(Rn,In,Be,Ce+4),Mn.La&&zh(Rn,In,Be,Ce);else{var Bn=dn.B,sr=dn.qa,Bi=dn.ra+8*Nn*Bn+8*un,jr=dn.Ha,dn=dn.Ia+8*Nn*Bn+8*un;Nn=Mn.ld,0<un&&(en(Rn,In,Be,Ce+4,jn,Nn),Xa(sr,Bi,jr,dn,Bn,Ce+4,jn,Nn)),Mn.La&&(Ko(Rn,In,Be,Ce,jn,Nn),Rh(sr,Bi,jr,dn,Bn,Ce,jn,Nn)),0<or&&(We(Rn,In,Be,Ce+4,jn,Nn),Mr(sr,Bi,jr,dn,Bn,Ce+4,jn,Nn)),Mn.La&&(ha(Rn,In,Be,Ce,jn,Nn),Mh(sr,Bi,jr,dn,Bn,Ce,jn,Nn))}}if(Ot.ia&&alert("todo:DitherRow"),Lt.put!=null){if(xe=16*Pe,Pe=16*(Pe+1),an?(Lt.y=Ot.sa,Lt.O=Ot.ta+_e,Lt.f=Ot.qa,Lt.N=Ot.ra+Pn,Lt.ea=Ot.Ha,Lt.W=Ot.Ia+Pn):(xe-=de,Lt.y=fn,Lt.O=xn,Lt.f=je,Lt.N=ue,Lt.ea=vn,Lt.W=An),rn||(Pe-=de),Pe>Lt.o&&(Pe=Lt.o),Lt.F=null,Lt.J=null,Ot.Fa!=null&&0<Ot.Fa.length&&xe<Pe&&(Lt.J=Xe(Ot,Lt,xe,Pe-xe),Lt.F=Ot.mb,Lt.F==null&&Lt.F.length==0)){Ge=Ke(Ot,3,"Could not decode alpha data.");break e}xe<Lt.j&&(de=Lt.j-xe,xe=Lt.j,n(!(1&de)),Lt.O+=Ot.R*de,Lt.N+=Ot.B*(de>>1),Lt.W+=Ot.B*(de>>1),Lt.F!=null&&(Lt.J+=Lt.width*de)),xe<Pe&&(Lt.O+=Lt.v,Lt.N+=Lt.v>>1,Lt.W+=Lt.v>>1,Lt.F!=null&&(Lt.J+=Lt.v),Lt.ka=xe-Lt.j,Lt.U=Lt.va-Lt.v,Lt.T=Pe-xe,Ge=Lt.put(Lt))}se+1!=Ot.Ic||rn||(r(Ot.sa,Ot.ta-ne,fn,xn+16*Ot.R,ne),r(Ot.qa,Ot.ra-Oe,je,ue+8*Ot.B,Oe),r(Ot.Ha,Ot.Ia-Oe,vn,An+8*Ot.B,Oe))}if(!Ge)return Ke(ce,6,"Output aborted.")}return 1})(E,Z)),Z.bc!=null&&Z.bc(Z),X&=1}return X?(E.cb=0,X):0})(o,m)||(s=o.a)}}else s=o.a}s==0&&_.Oa!=null&&_.Oa.fd&&(s=Ga(_.ba))}_=s}y=_!=0?null:11>y?N.f.RGBA.eb:N.f.kb.y}else y=null;return y};var lc=[3,4,3,4,4,2,2,4,4,4,2,1,1]};function u(j,Q){for(var S="",C=0;C<4;C++)S+=String.fromCharCode(j[Q++]);return S}function g(j,Q){return j[Q+0]|j[Q+1]<<8}function w(j,Q){return(j[Q+0]|j[Q+1]<<8|j[Q+2]<<16)>>>0}function A(j,Q){return(j[Q+0]|j[Q+1]<<8|j[Q+2]<<16|j[Q+3]<<24)>>>0}new f;var p=[0],I=[0],P=[],T=new f,L=t,W=(function(j,Q){var S={},C=0,H=!1,U=0,it=0;if(S.frames=[],!(function(x,D){for(var R=0;R<4;R++)if(x[D+R]!="RIFF".charCodeAt(R))return!0;return!1})(j,Q)){for(A(j,Q+=4),Q+=8;Q<j.length;){var lt=u(j,Q),ct=A(j,Q+=4);Q+=4;var et=ct+(1&ct);switch(lt){case"VP8 ":case"VP8L":S.frames[C]===void 0&&(S.frames[C]={}),(wt=S.frames[C]).src_off=H?it:Q-8,wt.src_size=U+ct+8,C++,H&&(H=!1,U=0,it=0);break;case"VP8X":(wt=S.header={}).feature_flags=j[Q];var ut=Q+4;wt.canvas_width=1+w(j,ut),ut+=3,wt.canvas_height=1+w(j,ut),ut+=3;break;case"ALPH":H=!0,U=et+8,it=Q-8;break;case"ANIM":(wt=S.header).bgcolor=A(j,Q),ut=Q+4,wt.loop_count=g(j,ut),ut+=2;break;case"ANMF":var Nt,wt;(wt=S.frames[C]={}).offset_x=2*w(j,Q),Q+=3,wt.offset_y=2*w(j,Q),Q+=3,wt.width=1+w(j,Q),Q+=3,wt.height=1+w(j,Q),Q+=3,wt.duration=w(j,Q),Q+=3,Nt=j[Q++],wt.dispose=1&Nt,wt.blend=Nt>>1&1}lt!="ANMF"&&(Q+=et)}return S}})(L,0);W.response=L,W.rgbaoutput=!0,W.dataurl=!1;var q=W.header?W.header:null,B=W.frames?W.frames:null;if(q){q.loop_counter=q.loop_count,p=[q.canvas_height],I=[q.canvas_width];for(var rt=0;rt<B.length&&B[rt].blend!=0;rt++);}var vt=B[0],pt=T.WebPDecodeRGBA(L,vt.src_off,vt.src_size,I,p);vt.rgba=pt,vt.imgwidth=I[0],vt.imgheight=p[0];for(var Y=0;Y<I[0]*p[0]*4;Y++)P[Y]=pt[Y];return this.width=I,this.height=p,this.data=P,this}(function(t){var n,e,r,i,a,h,l,f,u,g=function(x){return x=x||{},this.isStrokeTransparent=x.isStrokeTransparent||!1,this.strokeOpacity=x.strokeOpacity||1,this.strokeStyle=x.strokeStyle||"#000000",this.fillStyle=x.fillStyle||"#000000",this.isFillTransparent=x.isFillTransparent||!1,this.fillOpacity=x.fillOpacity||1,this.font=x.font||"10px sans-serif",this.textBaseline=x.textBaseline||"alphabetic",this.textAlign=x.textAlign||"left",this.lineWidth=x.lineWidth||1,this.lineJoin=x.lineJoin||"miter",this.lineCap=x.lineCap||"butt",this.path=x.path||[],this.transform=x.transform!==void 0?x.transform.clone():new f,this.globalCompositeOperation=x.globalCompositeOperation||"normal",this.globalAlpha=x.globalAlpha||1,this.clip_path=x.clip_path||[],this.currentPoint=x.currentPoint||new h,this.miterLimit=x.miterLimit||10,this.lastPoint=x.lastPoint||new h,this.lineDashOffset=x.lineDashOffset||0,this.lineDash=x.lineDash||[],this.margin=x.margin||[0,0,0,0],this.prevPageLastElemOffset=x.prevPageLastElemOffset||0,this.ignoreClearRect=typeof x.ignoreClearRect!="boolean"||x.ignoreClearRect,this};t.events.push(["initialized",function(){this.context2d=new w(this),n=this.internal.f2,e=this.internal.getCoordinateString,r=this.internal.getVerticalCoordinateString,i=this.internal.getHorizontalCoordinate,a=this.internal.getVerticalCoordinate,h=this.internal.Point,l=this.internal.Rectangle,f=this.internal.Matrix,u=new g}]);var w=function(x){Object.defineProperty(this,"canvas",{get:function(){return{parentNode:!1,style:!1}}});var D=x;Object.defineProperty(this,"pdf",{get:function(){return D}});var R=!1;Object.defineProperty(this,"pageWrapXEnabled",{get:function(){return R},set:function(st){R=!!st}});var V=!1;Object.defineProperty(this,"pageWrapYEnabled",{get:function(){return V},set:function(st){V=!!st}});var $=0;Object.defineProperty(this,"posX",{get:function(){return $},set:function(st){isNaN(st)||($=st)}});var nt=0;Object.defineProperty(this,"posY",{get:function(){return nt},set:function(st){isNaN(st)||(nt=st)}}),Object.defineProperty(this,"margin",{get:function(){return u.margin},set:function(st){var M;typeof st=="number"?M=[st,st,st,st]:((M=new Array(4))[0]=st[0],M[1]=st.length>=2?st[1]:M[0],M[2]=st.length>=3?st[2]:M[0],M[3]=st.length>=4?st[3]:M[1]),u.margin=M}});var ot=!1;Object.defineProperty(this,"autoPaging",{get:function(){return ot},set:function(st){ot=st}});var at=0;Object.defineProperty(this,"lastBreak",{get:function(){return at},set:function(st){at=st}});var mt=[];Object.defineProperty(this,"pageBreaks",{get:function(){return mt},set:function(st){mt=st}}),Object.defineProperty(this,"ctx",{get:function(){return u},set:function(st){st instanceof g&&(u=st)}}),Object.defineProperty(this,"path",{get:function(){return u.path},set:function(st){u.path=st}});var xt=[];Object.defineProperty(this,"ctxStack",{get:function(){return xt},set:function(st){xt=st}}),Object.defineProperty(this,"fillStyle",{get:function(){return this.ctx.fillStyle},set:function(st){var M;M=A(st),this.ctx.fillStyle=M.style,this.ctx.isFillTransparent=M.a===0,this.ctx.fillOpacity=M.a,this.pdf.setFillColor(M.r,M.g,M.b,{a:M.a}),this.pdf.setTextColor(M.r,M.g,M.b,{a:M.a})}}),Object.defineProperty(this,"strokeStyle",{get:function(){return this.ctx.strokeStyle},set:function(st){var M=A(st);this.ctx.strokeStyle=M.style,this.ctx.isStrokeTransparent=M.a===0,this.ctx.strokeOpacity=M.a,M.a===0?this.pdf.setDrawColor(255,255,255):(M.a,this.pdf.setDrawColor(M.r,M.g,M.b))}}),Object.defineProperty(this,"lineCap",{get:function(){return this.ctx.lineCap},set:function(st){["butt","round","square"].indexOf(st)!==-1&&(this.ctx.lineCap=st,this.pdf.setLineCap(st))}}),Object.defineProperty(this,"lineWidth",{get:function(){return this.ctx.lineWidth},set:function(st){isNaN(st)||(this.ctx.lineWidth=st,this.pdf.setLineWidth(st))}}),Object.defineProperty(this,"lineJoin",{get:function(){return this.ctx.lineJoin},set:function(st){["bevel","round","miter"].indexOf(st)!==-1&&(this.ctx.lineJoin=st,this.pdf.setLineJoin(st))}}),Object.defineProperty(this,"miterLimit",{get:function(){return this.ctx.miterLimit},set:function(st){isNaN(st)||(this.ctx.miterLimit=st,this.pdf.setMiterLimit(st))}}),Object.defineProperty(this,"textBaseline",{get:function(){return this.ctx.textBaseline},set:function(st){this.ctx.textBaseline=st}}),Object.defineProperty(this,"textAlign",{get:function(){return this.ctx.textAlign},set:function(st){["right","end","center","left","start"].indexOf(st)!==-1&&(this.ctx.textAlign=st)}});var kt=null,Pt=null;Object.defineProperty(this,"fontFaces",{get:function(){return Pt},set:function(st){kt=null,Pt=st}}),Object.defineProperty(this,"font",{get:function(){return this.ctx.font},set:function(st){var M;if(this.ctx.font=st,(M=/^\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(st))!==null){var le=M[1];M[2];var re=M[3],qt=M[4];M[5];var At=M[6],jt=/^([.\d]+)((?:%|in|[cem]m|ex|p[ctx]))$/i.exec(qt)[2];qt=Math.floor(jt==="px"?parseFloat(qt)*this.pdf.internal.scaleFactor:jt==="em"?parseFloat(qt)*this.pdf.getFontSize():parseFloat(qt)*this.pdf.internal.scaleFactor),this.pdf.setFontSize(qt);var St=(function(Gt){var zt,Fe,ge=[],Mt=Gt.trim();if(Mt==="")return Nh;if(Mt in Su)return[Su[Mt]];for(;Mt!=="";){switch(Fe=null,zt=(Mt=Pu(Mt)).charAt(0)){case'"':case"'":Fe=bd(Mt.substring(1),zt);break;default:Fe=wd(Mt)}if(Fe===null||(ge.push(Fe[0]),(Mt=Pu(Fe[1]))!==""&&Mt.charAt(0)!==","))return Nh;Mt=Mt.replace(/^,/,"")}return ge})(At);if(this.fontFaces){var ie=(function(Gt,zt){if(kt===null){var Fe=(function(ge){var Mt=[];return Object.keys(ge).forEach(function(te){ge[te].forEach(function(Le){var Ht=null;switch(Le){case"bold":Ht={family:te,weight:"bold"};break;case"italic":Ht={family:te,style:"italic"};break;case"bolditalic":Ht={family:te,weight:"bold",style:"italic"};break;case"":case"normal":Ht={family:te}}Ht!==null&&(Ht.ref={name:te,style:Le},Mt.push(Ht))})}),Mt})(Gt.getFontList());kt=(function(ge){for(var Mt={},te=0;te<ge.length;++te){var Le=Ah(ge[te]),Ht=Le.family,he=Le.stretch,ee=Le.style,Ue=Le.weight;Mt[Ht]=Mt[Ht]||{},Mt[Ht][he]=Mt[Ht][he]||{},Mt[Ht][he][ee]=Mt[Ht][he][ee]||{},Mt[Ht][he][ee][Ue]=Le}return Mt})(Fe.concat(zt))}return kt})(this.pdf,this.fontFaces),Ut=St.map(function(Gt){return{family:Gt,stretch:"normal",weight:re,style:le}}),pe=(function(Gt,zt,Fe){for(var ge=(Fe=Fe||{}).defaultFontFamily||"times",Mt=Object.assign({},vd,Fe.genericFontFamilies||{}),te=null,Le=null,Ht=0;Ht<zt.length;++Ht)if(Mt[(te=Ah(zt[Ht])).family]&&(te.family=Mt[te.family]),Gt.hasOwnProperty(te.family)){Le=Gt[te.family];break}if(!(Le=Le||Gt[ge]))throw new Error("Could not find a font-family for the rule '"+ku(te)+"' and default family '"+ge+"'.");if(Le=(function(he,ee){if(ee[he])return ee[he];var Ue=Fh[he],Qe=Ue<=Fh.normal?-1:1,Se=Lu(ee,Xu,Ue,Qe);if(!Se)throw new Error("Could not find a matching font-stretch value for "+he);return Se})(te.stretch,Le),Le=(function(he,ee){if(ee[he])return ee[he];for(var Ue=Ku[he],Qe=0;Qe<Ue.length;++Qe)if(ee[Ue[Qe]])return ee[Ue[Qe]];throw new Error("Could not find a matching font-style for "+he)})(te.style,Le),!(Le=(function(he,ee){if(ee[he])return ee[he];if(he===400&&ee[500])return ee[500];if(he===500&&ee[400])return ee[400];var Ue=md[he],Qe=Lu(ee,Ju,Ue,he<400?-1:1);if(!Qe)throw new Error("Could not find a matching font-weight for value "+he);return Qe})(te.weight,Le)))throw new Error("Failed to resolve a font for the rule '"+ku(te)+"'.");return Le})(ie,Ut);this.pdf.setFont(pe.ref.name,pe.ref.style)}else{var Jt="";(re==="bold"||parseInt(re,10)>=700||le==="bold")&&(Jt="bold"),le==="italic"&&(Jt+="italic"),Jt.length===0&&(Jt="normal");for(var Qt="",Ae={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"},ae=0;ae<St.length;ae++){if(this.pdf.internal.getFont(St[ae],Jt,{noFallback:!0,disableWarning:!0})!==void 0){Qt=St[ae];break}if(Jt==="bolditalic"&&this.pdf.internal.getFont(St[ae],"bold",{noFallback:!0,disableWarning:!0})!==void 0)Qt=St[ae],Jt="bold";else if(this.pdf.internal.getFont(St[ae],"normal",{noFallback:!0,disableWarning:!0})!==void 0){Qt=St[ae],Jt="normal";break}}if(Qt===""){for(var Bt=0;Bt<St.length;Bt++)if(Ae[St[Bt]]){Qt=Ae[St[Bt]];break}}Qt=Qt===""?"Times":Qt,this.pdf.setFont(Qt,Jt)}}}}),Object.defineProperty(this,"globalCompositeOperation",{get:function(){return this.ctx.globalCompositeOperation},set:function(st){this.ctx.globalCompositeOperation=st}}),Object.defineProperty(this,"globalAlpha",{get:function(){return this.ctx.globalAlpha},set:function(st){this.ctx.globalAlpha=st}}),Object.defineProperty(this,"lineDashOffset",{get:function(){return this.ctx.lineDashOffset},set:function(st){this.ctx.lineDashOffset=st,wt.call(this)}}),Object.defineProperty(this,"lineDash",{get:function(){return this.ctx.lineDash},set:function(st){this.ctx.lineDash=st,wt.call(this)}}),Object.defineProperty(this,"ignoreClearRect",{get:function(){return this.ctx.ignoreClearRect},set:function(st){this.ctx.ignoreClearRect=!!st}})};w.prototype.setLineDash=function(x){this.lineDash=x},w.prototype.getLineDash=function(){return this.lineDash.length%2?this.lineDash.concat(this.lineDash):this.lineDash.slice()},w.prototype.fill=function(){B.call(this,"fill",!1)},w.prototype.stroke=function(){B.call(this,"stroke",!1)},w.prototype.beginPath=function(){this.path=[{type:"begin"}]},w.prototype.moveTo=function(x,D){if(isNaN(x)||isNaN(D))throw Ie.error("jsPDF.context2d.moveTo: Invalid arguments",arguments),new Error("Invalid arguments passed to jsPDF.context2d.moveTo");var R=this.ctx.transform.applyToPoint(new h(x,D));this.path.push({type:"mt",x:R.x,y:R.y}),this.ctx.lastPoint=new h(x,D)},w.prototype.closePath=function(){var x=new h(0,0),D=0;for(D=this.path.length-1;D!==-1;D--)if(this.path[D].type==="begin"&&Ne(this.path[D+1])==="object"&&typeof this.path[D+1].x=="number"){x=new h(this.path[D+1].x,this.path[D+1].y);break}this.path.push({type:"close"}),this.ctx.lastPoint=new h(x.x,x.y)},w.prototype.lineTo=function(x,D){if(isNaN(x)||isNaN(D))throw Ie.error("jsPDF.context2d.lineTo: Invalid arguments",arguments),new Error("Invalid arguments passed to jsPDF.context2d.lineTo");var R=this.ctx.transform.applyToPoint(new h(x,D));this.path.push({type:"lt",x:R.x,y:R.y}),this.ctx.lastPoint=new h(R.x,R.y)},w.prototype.clip=function(){this.ctx.clip_path=JSON.parse(JSON.stringify(this.path)),B.call(this,null,!0)},w.prototype.quadraticCurveTo=function(x,D,R,V){if(isNaN(R)||isNaN(V)||isNaN(x)||isNaN(D))throw Ie.error("jsPDF.context2d.quadraticCurveTo: Invalid arguments",arguments),new Error("Invalid arguments passed to jsPDF.context2d.quadraticCurveTo");var $=this.ctx.transform.applyToPoint(new h(R,V)),nt=this.ctx.transform.applyToPoint(new h(x,D));this.path.push({type:"qct",x1:nt.x,y1:nt.y,x:$.x,y:$.y}),this.ctx.lastPoint=new h($.x,$.y)},w.prototype.bezierCurveTo=function(x,D,R,V,$,nt){if(isNaN($)||isNaN(nt)||isNaN(x)||isNaN(D)||isNaN(R)||isNaN(V))throw Ie.error("jsPDF.context2d.bezierCurveTo: Invalid arguments",arguments),new Error("Invalid arguments passed to jsPDF.context2d.bezierCurveTo");var ot=this.ctx.transform.applyToPoint(new h($,nt)),at=this.ctx.transform.applyToPoint(new h(x,D)),mt=this.ctx.transform.applyToPoint(new h(R,V));this.path.push({type:"bct",x1:at.x,y1:at.y,x2:mt.x,y2:mt.y,x:ot.x,y:ot.y}),this.ctx.lastPoint=new h(ot.x,ot.y)},w.prototype.arc=function(x,D,R,V,$,nt){if(isNaN(x)||isNaN(D)||isNaN(R)||isNaN(V)||isNaN($))throw Ie.error("jsPDF.context2d.arc: Invalid arguments",arguments),new Error("Invalid arguments passed to jsPDF.context2d.arc");if(nt=!!nt,!this.ctx.transform.isIdentity){var ot=this.ctx.transform.applyToPoint(new h(x,D));x=ot.x,D=ot.y;var at=this.ctx.transform.applyToPoint(new h(0,R)),mt=this.ctx.transform.applyToPoint(new h(0,0));R=Math.sqrt(Math.pow(at.x-mt.x,2)+Math.pow(at.y-mt.y,2))}Math.abs($-V)>=2*Math.PI&&(V=0,$=2*Math.PI),this.path.push({type:"arc",x,y:D,radius:R,startAngle:V,endAngle:$,counterclockwise:nt})},w.prototype.arcTo=function(x,D,R,V,$){throw new Error("arcTo not implemented.")},w.prototype.rect=function(x,D,R,V){if(isNaN(x)||isNaN(D)||isNaN(R)||isNaN(V))throw Ie.error("jsPDF.context2d.rect: Invalid arguments",arguments),new Error("Invalid arguments passed to jsPDF.context2d.rect");this.moveTo(x,D),this.lineTo(x+R,D),this.lineTo(x+R,D+V),this.lineTo(x,D+V),this.lineTo(x,D),this.lineTo(x+R,D),this.lineTo(x,D)},w.prototype.fillRect=function(x,D,R,V){if(isNaN(x)||isNaN(D)||isNaN(R)||isNaN(V))throw Ie.error("jsPDF.context2d.fillRect: Invalid arguments",arguments),new Error("Invalid arguments passed to jsPDF.context2d.fillRect");if(!p.call(this)){var $={};this.lineCap!=="butt"&&($.lineCap=this.lineCap,this.lineCap="butt"),this.lineJoin!=="miter"&&($.lineJoin=this.lineJoin,this.lineJoin="miter"),this.beginPath(),this.rect(x,D,R,V),this.fill(),$.hasOwnProperty("lineCap")&&(this.lineCap=$.lineCap),$.hasOwnProperty("lineJoin")&&(this.lineJoin=$.lineJoin)}},w.prototype.strokeRect=function(x,D,R,V){if(isNaN(x)||isNaN(D)||isNaN(R)||isNaN(V))throw Ie.error("jsPDF.context2d.strokeRect: Invalid arguments",arguments),new Error("Invalid arguments passed to jsPDF.context2d.strokeRect");I.call(this)||(this.beginPath(),this.rect(x,D,R,V),this.stroke())},w.prototype.clearRect=function(x,D,R,V){if(isNaN(x)||isNaN(D)||isNaN(R)||isNaN(V))throw Ie.error("jsPDF.context2d.clearRect: Invalid arguments",arguments),new Error("Invalid arguments passed to jsPDF.context2d.clearRect");this.ignoreClearRect||(this.fillStyle="#ffffff",this.fillRect(x,D,R,V))},w.prototype.save=function(x){x=typeof x!="boolean"||x;for(var D=this.pdf.internal.getCurrentPageInfo().pageNumber,R=0;R<this.pdf.internal.getNumberOfPages();R++)this.pdf.setPage(R+1),this.pdf.internal.out("q");if(this.pdf.setPage(D),x){this.ctx.fontSize=this.pdf.internal.getFontSize();var V=new g(this.ctx);this.ctxStack.push(this.ctx),this.ctx=V}},w.prototype.restore=function(x){x=typeof x!="boolean"||x;for(var D=this.pdf.internal.getCurrentPageInfo().pageNumber,R=0;R<this.pdf.internal.getNumberOfPages();R++)this.pdf.setPage(R+1),this.pdf.internal.out("Q");this.pdf.setPage(D),x&&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)},w.prototype.toDataURL=function(){throw new Error("toDataUrl not implemented.")};var A=function(x){var D,R,V,$;if(x.isCanvasGradient===!0&&(x=x.getColor()),!x)return{r:0,g:0,b:0,a:0,style:x};if(/transparent|rgba\s*\(\s*(\d+)\s*,\s*(\d+)\s*,\s*(\d+)\s*,\s*0+\s*\)/.test(x))D=0,R=0,V=0,$=0;else{var nt=/rgb\s*\(\s*(\d+)\s*,\s*(\d+)\s*,\s*(\d+)\s*\)/.exec(x);if(nt!==null)D=parseInt(nt[1]),R=parseInt(nt[2]),V=parseInt(nt[3]),$=1;else if((nt=/rgba\s*\(\s*(\d+)\s*,\s*(\d+)\s*,\s*(\d+)\s*,\s*([\d.]+)\s*\)/.exec(x))!==null)D=parseInt(nt[1]),R=parseInt(nt[2]),V=parseInt(nt[3]),$=parseFloat(nt[4]);else{if($=1,typeof x=="string"&&x.charAt(0)!=="#"){var ot=new Hu(x);x=ot.ok?ot.toHex():"#000000"}x.length===4?(D=x.substring(1,2),D+=D,R=x.substring(2,3),R+=R,V=x.substring(3,4),V+=V):(D=x.substring(1,3),R=x.substring(3,5),V=x.substring(5,7)),D=parseInt(D,16),R=parseInt(R,16),V=parseInt(V,16)}}return{r:D,g:R,b:V,a:$,style:x}},p=function(){return this.ctx.isFillTransparent||this.globalAlpha==0},I=function(){return!!(this.ctx.isStrokeTransparent||this.globalAlpha==0)};w.prototype.fillText=function(x,D,R,V){if(isNaN(D)||isNaN(R)||typeof x!="string")throw Ie.error("jsPDF.context2d.fillText: Invalid arguments",arguments),new Error("Invalid arguments passed to jsPDF.context2d.fillText");if(V=isNaN(V)?void 0:V,!p.call(this)){var $=et(this.ctx.transform.rotation),nt=this.ctx.transform.scaleX;C.call(this,{text:x,x:D,y:R,scale:nt,angle:$,align:this.textAlign,maxWidth:V})}},w.prototype.strokeText=function(x,D,R,V){if(isNaN(D)||isNaN(R)||typeof x!="string")throw Ie.error("jsPDF.context2d.strokeText: Invalid arguments",arguments),new Error("Invalid arguments passed to jsPDF.context2d.strokeText");if(!I.call(this)){V=isNaN(V)?void 0:V;var $=et(this.ctx.transform.rotation),nt=this.ctx.transform.scaleX;C.call(this,{text:x,x:D,y:R,scale:nt,renderingMode:"stroke",angle:$,align:this.textAlign,maxWidth:V})}},w.prototype.measureText=function(x){if(typeof x!="string")throw Ie.error("jsPDF.context2d.measureText: Invalid arguments",arguments),new Error("Invalid arguments passed to jsPDF.context2d.measureText");var D=this.pdf,R=this.pdf.internal.scaleFactor,V=D.internal.getFontSize(),$=D.getStringUnitWidth(x)*V/D.internal.scaleFactor;return new function(nt){var ot=(nt=nt||{}).width||0;return Object.defineProperty(this,"width",{get:function(){return ot}}),this}({width:$*=Math.round(96*R/72*1e4)/1e4})},w.prototype.scale=function(x,D){if(isNaN(x)||isNaN(D))throw Ie.error("jsPDF.context2d.scale: Invalid arguments",arguments),new Error("Invalid arguments passed to jsPDF.context2d.scale");var R=new f(x,0,0,D,0,0);this.ctx.transform=this.ctx.transform.multiply(R)},w.prototype.rotate=function(x){if(isNaN(x))throw Ie.error("jsPDF.context2d.rotate: Invalid arguments",arguments),new Error("Invalid arguments passed to jsPDF.context2d.rotate");var D=new f(Math.cos(x),Math.sin(x),-Math.sin(x),Math.cos(x),0,0);this.ctx.transform=this.ctx.transform.multiply(D)},w.prototype.translate=function(x,D){if(isNaN(x)||isNaN(D))throw Ie.error("jsPDF.context2d.translate: Invalid arguments",arguments),new Error("Invalid arguments passed to jsPDF.context2d.translate");var R=new f(1,0,0,1,x,D);this.ctx.transform=this.ctx.transform.multiply(R)},w.prototype.transform=function(x,D,R,V,$,nt){if(isNaN(x)||isNaN(D)||isNaN(R)||isNaN(V)||isNaN($)||isNaN(nt))throw Ie.error("jsPDF.context2d.transform: Invalid arguments",arguments),new Error("Invalid arguments passed to jsPDF.context2d.transform");var ot=new f(x,D,R,V,$,nt);this.ctx.transform=this.ctx.transform.multiply(ot)},w.prototype.setTransform=function(x,D,R,V,$,nt){x=isNaN(x)?1:x,D=isNaN(D)?0:D,R=isNaN(R)?0:R,V=isNaN(V)?1:V,$=isNaN($)?0:$,nt=isNaN(nt)?0:nt,this.ctx.transform=new f(x,D,R,V,$,nt)};var P=function(){return this.margin[0]>0||this.margin[1]>0||this.margin[2]>0||this.margin[3]>0};w.prototype.drawImage=function(x,D,R,V,$,nt,ot,at,mt){var xt=this.pdf.getImageProperties(x),kt=1,Pt=1,st=1,M=1;V!==void 0&&at!==void 0&&(st=at/V,M=mt/$,kt=xt.width/V*at/V,Pt=xt.height/$*mt/$),nt===void 0&&(nt=D,ot=R,D=0,R=0),V!==void 0&&at===void 0&&(at=V,mt=$),V===void 0&&at===void 0&&(at=xt.width,mt=xt.height);for(var le,re=this.ctx.transform.decompose(),qt=et(re.rotate.shx),At=new f,jt=(At=(At=(At=At.multiply(re.translate)).multiply(re.skew)).multiply(re.scale)).applyToRectangle(new l(nt-D*st,ot-R*M,V*kt,$*Pt)),St=T.call(this,jt),ie=[],Ut=0;Ut<St.length;Ut+=1)ie.indexOf(St[Ut])===-1&&ie.push(St[Ut]);if(q(ie),this.autoPaging)for(var pe=ie[0],Jt=ie[ie.length-1],Qt=pe;Qt<Jt+1;Qt++){this.pdf.setPage(Qt);var Ae=this.pdf.internal.pageSize.width-this.margin[3]-this.margin[1],ae=Qt===1?this.posY+this.margin[0]:this.margin[0],Bt=this.pdf.internal.pageSize.height-this.posY-this.margin[0]-this.margin[2],Gt=this.pdf.internal.pageSize.height-this.margin[0]-this.margin[2],zt=Qt===1?0:Bt+(Qt-2)*Gt;if(this.ctx.clip_path.length!==0){var Fe=this.path;le=JSON.parse(JSON.stringify(this.ctx.clip_path)),this.path=W(le,this.posX+this.margin[3],-zt+ae+this.ctx.prevPageLastElemOffset),rt.call(this,"fill",!0),this.path=Fe}var ge=JSON.parse(JSON.stringify(jt));ge=W([ge],this.posX+this.margin[3],-zt+ae+this.ctx.prevPageLastElemOffset)[0];var Mt=(Qt>pe||Qt<Jt)&&P.call(this);Mt&&(this.pdf.saveGraphicsState(),this.pdf.rect(this.margin[3],this.margin[0],Ae,Gt,null).clip().discardPath()),this.pdf.addImage(x,"JPEG",ge.x,ge.y,ge.w,ge.h,null,null,qt),Mt&&this.pdf.restoreGraphicsState()}else this.pdf.addImage(x,"JPEG",jt.x,jt.y,jt.w,jt.h,null,null,qt)};var T=function(x,D,R){var V=[];D=D||this.pdf.internal.pageSize.width,R=R||this.pdf.internal.pageSize.height-this.margin[0]-this.margin[2];var $=this.posY+this.ctx.prevPageLastElemOffset;switch(x.type){default:case"mt":case"lt":V.push(Math.floor((x.y+$)/R)+1);break;case"arc":V.push(Math.floor((x.y+$-x.radius)/R)+1),V.push(Math.floor((x.y+$+x.radius)/R)+1);break;case"qct":var nt=ut(this.ctx.lastPoint.x,this.ctx.lastPoint.y,x.x1,x.y1,x.x,x.y);V.push(Math.floor((nt.y+$)/R)+1),V.push(Math.floor((nt.y+nt.h+$)/R)+1);break;case"bct":var ot=Nt(this.ctx.lastPoint.x,this.ctx.lastPoint.y,x.x1,x.y1,x.x2,x.y2,x.x,x.y);V.push(Math.floor((ot.y+$)/R)+1),V.push(Math.floor((ot.y+ot.h+$)/R)+1);break;case"rect":V.push(Math.floor((x.y+$)/R)+1),V.push(Math.floor((x.y+x.h+$)/R)+1)}for(var at=0;at<V.length;at+=1)for(;this.pdf.internal.getNumberOfPages()<V[at];)L.call(this);return V},L=function(){var x=this.fillStyle,D=this.strokeStyle,R=this.font,V=this.lineCap,$=this.lineWidth,nt=this.lineJoin;this.pdf.addPage(),this.fillStyle=x,this.strokeStyle=D,this.font=R,this.lineCap=V,this.lineWidth=$,this.lineJoin=nt},W=function(x,D,R){for(var V=0;V<x.length;V++)switch(x[V].type){case"bct":x[V].x2+=D,x[V].y2+=R;case"qct":x[V].x1+=D,x[V].y1+=R;default:x[V].x+=D,x[V].y+=R}return x},q=function(x){return x.sort(function(D,R){return D-R})},B=function(x,D){for(var R,V,$=this.fillStyle,nt=this.strokeStyle,ot=this.lineCap,at=this.lineWidth,mt=Math.abs(at*this.ctx.transform.scaleX),xt=this.lineJoin,kt=JSON.parse(JSON.stringify(this.path)),Pt=JSON.parse(JSON.stringify(this.path)),st=[],M=0;M<Pt.length;M++)if(Pt[M].x!==void 0)for(var le=T.call(this,Pt[M]),re=0;re<le.length;re+=1)st.indexOf(le[re])===-1&&st.push(le[re]);for(var qt=0;qt<st.length;qt++)for(;this.pdf.internal.getNumberOfPages()<st[qt];)L.call(this);if(q(st),this.autoPaging)for(var At=st[0],jt=st[st.length-1],St=At;St<jt+1;St++){this.pdf.setPage(St),this.fillStyle=$,this.strokeStyle=nt,this.lineCap=ot,this.lineWidth=mt,this.lineJoin=xt;var ie=this.pdf.internal.pageSize.width-this.margin[3]-this.margin[1],Ut=St===1?this.posY+this.margin[0]:this.margin[0],pe=this.pdf.internal.pageSize.height-this.posY-this.margin[0]-this.margin[2],Jt=this.pdf.internal.pageSize.height-this.margin[0]-this.margin[2],Qt=St===1?0:pe+(St-2)*Jt;if(this.ctx.clip_path.length!==0){var Ae=this.path;R=JSON.parse(JSON.stringify(this.ctx.clip_path)),this.path=W(R,this.posX+this.margin[3],-Qt+Ut+this.ctx.prevPageLastElemOffset),rt.call(this,x,!0),this.path=Ae}if(V=JSON.parse(JSON.stringify(kt)),this.path=W(V,this.posX+this.margin[3],-Qt+Ut+this.ctx.prevPageLastElemOffset),D===!1||St===0){var ae=(St>At||St<jt)&&P.call(this);ae&&(this.pdf.saveGraphicsState(),this.pdf.rect(this.margin[3],this.margin[0],ie,Jt,null).clip().discardPath()),rt.call(this,x,D),ae&&this.pdf.restoreGraphicsState()}this.lineWidth=at}else this.lineWidth=mt,rt.call(this,x,D),this.lineWidth=at;this.path=kt},rt=function(x,D){if((x!=="stroke"||D||!I.call(this))&&(x==="stroke"||D||!p.call(this))){for(var R,V,$=[],nt=this.path,ot=0;ot<nt.length;ot++){var at=nt[ot];switch(at.type){case"begin":$.push({begin:!0});break;case"close":$.push({close:!0});break;case"mt":$.push({start:at,deltas:[],abs:[]});break;case"lt":var mt=$.length;if(nt[ot-1]&&!isNaN(nt[ot-1].x)&&(R=[at.x-nt[ot-1].x,at.y-nt[ot-1].y],mt>0)){for(;mt>=0;mt--)if($[mt-1].close!==!0&&$[mt-1].begin!==!0){$[mt-1].deltas.push(R),$[mt-1].abs.push(at);break}}break;case"bct":R=[at.x1-nt[ot-1].x,at.y1-nt[ot-1].y,at.x2-nt[ot-1].x,at.y2-nt[ot-1].y,at.x-nt[ot-1].x,at.y-nt[ot-1].y],$[$.length-1].deltas.push(R);break;case"qct":var xt=nt[ot-1].x+2/3*(at.x1-nt[ot-1].x),kt=nt[ot-1].y+2/3*(at.y1-nt[ot-1].y),Pt=at.x+2/3*(at.x1-at.x),st=at.y+2/3*(at.y1-at.y),M=at.x,le=at.y;R=[xt-nt[ot-1].x,kt-nt[ot-1].y,Pt-nt[ot-1].x,st-nt[ot-1].y,M-nt[ot-1].x,le-nt[ot-1].y],$[$.length-1].deltas.push(R);break;case"arc":$.push({deltas:[],abs:[],arc:!0}),Array.isArray($[$.length-1].abs)&&$[$.length-1].abs.push(at)}}V=D?null:x==="stroke"?"stroke":"fill";for(var re=!1,qt=0;qt<$.length;qt++)if($[qt].arc)for(var At=$[qt].abs,jt=0;jt<At.length;jt++){var St=At[jt];St.type==="arc"?Y.call(this,St.x,St.y,St.radius,St.startAngle,St.endAngle,St.counterclockwise,void 0,D,!re):H.call(this,St.x,St.y),re=!0}else if($[qt].close===!0)this.pdf.internal.out("h"),re=!1;else if($[qt].begin!==!0){var ie=$[qt].start.x,Ut=$[qt].start.y;U.call(this,$[qt].deltas,ie,Ut),re=!0}V&&j.call(this,V),D&&Q.call(this)}},vt=function(x){var D=this.pdf.internal.getFontSize()/this.pdf.internal.scaleFactor,R=D*(this.pdf.internal.getLineHeightFactor()-1);switch(this.ctx.textBaseline){case"bottom":return x-R;case"top":return x+D-R;case"hanging":return x+D-2*R;case"middle":return x+D/2-R;default:return x}},pt=function(x){return x+this.pdf.internal.getFontSize()/this.pdf.internal.scaleFactor*(this.pdf.internal.getLineHeightFactor()-1)};w.prototype.createLinearGradient=function(){var x=function(){};return x.colorStops=[],x.addColorStop=function(D,R){this.colorStops.push([D,R])},x.getColor=function(){return this.colorStops.length===0?"#000000":this.colorStops[0][1]},x.isCanvasGradient=!0,x},w.prototype.createPattern=function(){return this.createLinearGradient()},w.prototype.createRadialGradient=function(){return this.createLinearGradient()};var Y=function(x,D,R,V,$,nt,ot,at,mt){for(var xt=lt.call(this,R,V,$,nt),kt=0;kt<xt.length;kt++){var Pt=xt[kt];kt===0&&(mt?S.call(this,Pt.x1+x,Pt.y1+D):H.call(this,Pt.x1+x,Pt.y1+D)),it.call(this,x,D,Pt.x2,Pt.y2,Pt.x3,Pt.y3,Pt.x4,Pt.y4)}at?Q.call(this):j.call(this,ot)},j=function(x){switch(x){case"stroke":this.pdf.internal.out("S");break;case"fill":this.pdf.internal.out("f")}},Q=function(){this.pdf.clip(),this.pdf.discardPath()},S=function(x,D){this.pdf.internal.out(e(x)+" "+r(D)+" m")},C=function(x){var D;switch(x.align){case"right":case"end":D="right";break;case"center":D="center";break;default:D="left"}var R=this.pdf.getTextDimensions(x.text),V=vt.call(this,x.y),$=pt.call(this,V)-R.h,nt=this.ctx.transform.applyToPoint(new h(x.x,V)),ot=this.ctx.transform.decompose(),at=new f;at=(at=(at=at.multiply(ot.translate)).multiply(ot.skew)).multiply(ot.scale);for(var mt,xt,kt,Pt=this.ctx.transform.applyToRectangle(new l(x.x,V,R.w,R.h)),st=at.applyToRectangle(new l(x.x,$,R.w,R.h)),M=T.call(this,st),le=[],re=0;re<M.length;re+=1)le.indexOf(M[re])===-1&&le.push(M[re]);if(q(le),this.autoPaging)for(var qt=le[0],At=le[le.length-1],jt=qt;jt<At+1;jt++){this.pdf.setPage(jt);var St=jt===1?this.posY+this.margin[0]:this.margin[0],ie=this.pdf.internal.pageSize.height-this.posY-this.margin[0]-this.margin[2],Ut=this.pdf.internal.pageSize.height-this.margin[2],pe=Ut-this.margin[0],Jt=this.pdf.internal.pageSize.width-this.margin[1],Qt=Jt-this.margin[3],Ae=jt===1?0:ie+(jt-2)*pe;if(this.ctx.clip_path.length!==0){var ae=this.path;mt=JSON.parse(JSON.stringify(this.ctx.clip_path)),this.path=W(mt,this.posX+this.margin[3],-1*Ae+St),rt.call(this,"fill",!0),this.path=ae}var Bt=W([JSON.parse(JSON.stringify(st))],this.posX+this.margin[3],-Ae+St+this.ctx.prevPageLastElemOffset)[0];x.scale>=.01&&(xt=this.pdf.internal.getFontSize(),this.pdf.setFontSize(xt*x.scale),kt=this.lineWidth,this.lineWidth=kt*x.scale);var Gt=this.autoPaging!=="text";if(Gt||Bt.y+Bt.h<=Ut){if(Gt||Bt.y>=St&&Bt.x<=Jt){var zt=Gt?x.text:this.pdf.splitTextToSize(x.text,x.maxWidth||Jt-Bt.x)[0],Fe=W([JSON.parse(JSON.stringify(Pt))],this.posX+this.margin[3],-Ae+St+this.ctx.prevPageLastElemOffset)[0],ge=Gt&&(jt>qt||jt<At)&&P.call(this);ge&&(this.pdf.saveGraphicsState(),this.pdf.rect(this.margin[3],this.margin[0],Qt,pe,null).clip().discardPath()),this.pdf.text(zt,Fe.x,Fe.y,{angle:x.angle,align:D,renderingMode:x.renderingMode}),ge&&this.pdf.restoreGraphicsState()}}else Bt.y<Ut&&(this.ctx.prevPageLastElemOffset+=Ut-Bt.y);x.scale>=.01&&(this.pdf.setFontSize(xt),this.lineWidth=kt)}else x.scale>=.01&&(xt=this.pdf.internal.getFontSize(),this.pdf.setFontSize(xt*x.scale),kt=this.lineWidth,this.lineWidth=kt*x.scale),this.pdf.text(x.text,nt.x+this.posX,nt.y+this.posY,{angle:x.angle,align:D,renderingMode:x.renderingMode,maxWidth:x.maxWidth}),x.scale>=.01&&(this.pdf.setFontSize(xt),this.lineWidth=kt)},H=function(x,D,R,V){R=R||0,V=V||0,this.pdf.internal.out(e(x+R)+" "+r(D+V)+" l")},U=function(x,D,R){return this.pdf.lines(x,D,R,null,null)},it=function(x,D,R,V,$,nt,ot,at){this.pdf.internal.out([n(i(R+x)),n(a(V+D)),n(i($+x)),n(a(nt+D)),n(i(ot+x)),n(a(at+D)),"c"].join(" "))},lt=function(x,D,R,V){for(var $=2*Math.PI,nt=Math.PI/2;D>R;)D-=$;var ot=Math.abs(R-D);ot<$&&V&&(ot=$-ot);for(var at=[],mt=V?-1:1,xt=D;ot>1e-5;){var kt=xt+mt*Math.min(ot,nt);at.push(ct.call(this,x,xt,kt)),ot-=Math.abs(kt-xt),xt=kt}return at},ct=function(x,D,R){var V=(R-D)/2,$=x*Math.cos(V),nt=x*Math.sin(V),ot=$,at=-nt,mt=ot*ot+at*at,xt=mt+ot*$+at*nt,kt=4/3*(Math.sqrt(2*mt*xt)-xt)/(ot*nt-at*$),Pt=ot-kt*at,st=at+kt*ot,M=Pt,le=-st,re=V+D,qt=Math.cos(re),At=Math.sin(re);return{x1:x*Math.cos(D),y1:x*Math.sin(D),x2:Pt*qt-st*At,y2:Pt*At+st*qt,x3:M*qt-le*At,y3:M*At+le*qt,x4:x*Math.cos(R),y4:x*Math.sin(R)}},et=function(x){return 180*x/Math.PI},ut=function(x,D,R,V,$,nt){var ot=x+.5*(R-x),at=D+.5*(V-D),mt=$+.5*(R-$),xt=nt+.5*(V-nt),kt=Math.min(x,$,ot,mt),Pt=Math.max(x,$,ot,mt),st=Math.min(D,nt,at,xt),M=Math.max(D,nt,at,xt);return new l(kt,st,Pt-kt,M-st)},Nt=function(x,D,R,V,$,nt,ot,at){var mt,xt,kt,Pt,st,M,le,re,qt,At,jt,St,ie,Ut,pe=R-x,Jt=V-D,Qt=$-R,Ae=nt-V,ae=ot-$,Bt=at-nt;for(xt=0;xt<41;xt++)qt=(le=(kt=x+(mt=xt/40)*pe)+mt*((st=R+mt*Qt)-kt))+mt*(st+mt*($+mt*ae-st)-le),At=(re=(Pt=D+mt*Jt)+mt*((M=V+mt*Ae)-Pt))+mt*(M+mt*(nt+mt*Bt-M)-re),xt==0?(jt=qt,St=At,ie=qt,Ut=At):(jt=Math.min(jt,qt),St=Math.min(St,At),ie=Math.max(ie,qt),Ut=Math.max(Ut,At));return new l(Math.round(jt),Math.round(St),Math.round(ie-jt),Math.round(Ut-St))},wt=function(){if(this.prevLineDash||this.ctx.lineDash.length||this.ctx.lineDashOffset){var x,D,R=(x=this.ctx.lineDash,D=this.ctx.lineDashOffset,JSON.stringify({lineDash:x,lineDashOffset:D}));this.prevLineDash!==R&&(this.pdf.setLineDash(this.ctx.lineDash,this.ctx.lineDashOffset),this.prevLineDash=R)}}})(Dt.API),(function(t){var n=function(h){var l,f,u,g,w,A,p,I,P,T;for(/[^\x00-\xFF]/.test(h),f=[],u=0,g=(h+=l="\0\0\0\0".slice(h.length%4||4)).length;g>u;u+=4)(w=(h.charCodeAt(u)<<24)+(h.charCodeAt(u+1)<<16)+(h.charCodeAt(u+2)<<8)+h.charCodeAt(u+3))!==0?(A=(w=((w=((w=((w=(w-(T=w%85))/85)-(P=w%85))/85)-(I=w%85))/85)-(p=w%85))/85)%85,f.push(A+33,p+33,I+33,P+33,T+33)):f.push(122);return(function(L,W){for(var q=W;q>0;q--)L.pop()})(f,l.length),String.fromCharCode.apply(String,f)+"~>"},e=function(h){var l,f,u,g,w,A=String,p="length",I=255,P="charCodeAt",T="slice",L="replace";for(h[T](-2),h=h[T](0,-2)[L](/\s/g,"")[L]("z","!!!!!"),u=[],g=0,w=(h+=l="uuuuu"[T](h[p]%5||5))[p];w>g;g+=5)f=52200625*(h[P](g)-33)+614125*(h[P](g+1)-33)+7225*(h[P](g+2)-33)+85*(h[P](g+3)-33)+(h[P](g+4)-33),u.push(I&f>>24,I&f>>16,I&f>>8,I&f);return(function(W,q){for(var B=q;B>0;B--)W.pop()})(u,l[p]),A.fromCharCode.apply(A,u)},r=function(h){return h.split("").map(function(l){return("0"+l.charCodeAt().toString(16)).slice(-2)}).join("")+">"},i=function(h){var l=new RegExp(/^([0-9A-Fa-f]{2})+$/);if((h=h.replace(/\s/g,"")).indexOf(">")!==-1&&(h=h.substr(0,h.indexOf(">"))),h.length%2&&(h+="0"),l.test(h)===!1)return"";for(var f="",u=0;u<h.length;u+=2)f+=String.fromCharCode("0x"+(h[u]+h[u+1]));return f},a=function(h){for(var l=new Uint8Array(h.length),f=h.length;f--;)l[f]=h.charCodeAt(f);return(l=ps(l)).reduce(function(u,g){return u+String.fromCharCode(g)},"")};t.processDataByFilters=function(h,l){var f=0,u=h||"",g=[];for(typeof(l=l||[])=="string"&&(l=[l]),f=0;f<l.length;f+=1)switch(l[f]){case"ASCII85Decode":case"/ASCII85Decode":u=e(u),g.push("/ASCII85Encode");break;case"ASCII85Encode":case"/ASCII85Encode":u=n(u),g.push("/ASCII85Decode");break;case"ASCIIHexDecode":case"/ASCIIHexDecode":u=i(u),g.push("/ASCIIHexEncode");break;case"ASCIIHexEncode":case"/ASCIIHexEncode":u=r(u),g.push("/ASCIIHexDecode");break;case"FlateEncode":case"/FlateEncode":u=a(u),g.push("/FlateDecode");break;default:throw new Error('The filter: "'+l[f]+'" is not implemented')}return{data:u,reverseChain:g.reverse().join(" ")}}})(Dt.API),(function(t){t.loadFile=function(n,e,r){return(function(i,a,h){a=a!==!1,h=typeof h=="function"?h:function(){};var l=void 0;try{l=(function(f,u,g){var w=new XMLHttpRequest,A=0,p=function(I){var P=I.length,T=[],L=String.fromCharCode;for(A=0;A<P;A+=1)T.push(L(255&I.charCodeAt(A)));return T.join("")};if(w.open("GET",f,!u),w.overrideMimeType("text/plain; charset=x-user-defined"),u===!1&&(w.onload=function(){w.status===200?g(p(this.responseText)):g(void 0)}),w.send(null),u&&w.status===200)return p(w.responseText)})(i,a,h)}catch{}return l})(n,e,r)},t.loadImageFile=t.loadFile})(Dt.API),(function(t){function n(){return(Vt.html2canvas?Promise.resolve(Vt.html2canvas):import("./6QZUTDMP.js")).catch(function(l){return Promise.reject(new Error("Could not load html2canvas: "+l))}).then(function(l){return l.default?l.default:l})}function e(){return(Vt.DOMPurify?Promise.resolve(Vt.DOMPurify):import("./ZVTKIZVK.js")).catch(function(l){return Promise.reject(new Error("Could not load dompurify: "+l))}).then(function(l){return l.default?l.default:l})}var r=function(l){var f=Ne(l);return f==="undefined"?"undefined":f==="string"||l instanceof String?"string":f==="number"||l instanceof Number?"number":f==="function"||l instanceof Function?"function":l&&l.constructor===Array?"array":l&&l.nodeType===1?"element":f==="object"?"object":"unknown"},i=function(l,f){var u=document.createElement(l);for(var g in f.className&&(u.className=f.className),f.innerHTML&&f.dompurify&&(u.innerHTML=f.dompurify.sanitize(f.innerHTML)),f.style)u.style[g]=f.style[g];return u},a=function l(f,u){for(var g=f.nodeType===3?document.createTextNode(f.nodeValue):f.cloneNode(!1),w=f.firstChild;w;w=w.nextSibling)u!==!0&&w.nodeType===1&&w.nodeName==="SCRIPT"||g.appendChild(l(w,u));return f.nodeType===1&&(f.nodeName==="CANVAS"?(g.width=f.width,g.height=f.height,g.getContext("2d").drawImage(f,0,0)):f.nodeName!=="TEXTAREA"&&f.nodeName!=="SELECT"||(g.value=f.value),g.addEventListener("load",function(){g.scrollTop=f.scrollTop,g.scrollLeft=f.scrollLeft},!0)),g},h=function l(f){var u=Object.assign(l.convert(Promise.resolve()),JSON.parse(JSON.stringify(l.template))),g=l.convert(Promise.resolve(),u);return(g=g.setProgress(1,l,1,[l])).set(f)};(h.prototype=Object.create(Promise.prototype)).constructor=h,h.convert=function(l,f){return l.__proto__=f||h.prototype,l},h.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"}},h.prototype.from=function(l,f){return this.then(function(){switch(f=f||(function(u){switch(r(u)){case"string":return"string";case"element":return u.nodeName.toLowerCase()==="canvas"?"canvas":"element";default:return"unknown"}})(l),f){case"string":return this.then(e).then(function(u){return this.set({src:i("div",{innerHTML:l,dompurify:u})})});case"element":return this.set({src:l});case"canvas":return this.set({canvas:l});case"img":return this.set({img:l});default:return this.error("Unknown source type.")}})},h.prototype.to=function(l){switch(l){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.")}},h.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 l={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},f=a(this.prop.src,this.opt.html2canvas.javascriptEnabled);f.tagName==="BODY"&&(l.height=Math.max(document.body.scrollHeight,document.body.offsetHeight,document.documentElement.clientHeight,document.documentElement.scrollHeight,document.documentElement.offsetHeight)+"px"),this.prop.overlay=i("div",{className:"html2pdf__overlay",style:{position:"fixed",overflow:"hidden",zIndex:1e3,left:"-100000px",right:0,bottom:0,top:0}}),this.prop.container=i("div",{className:"html2pdf__container",style:l}),this.prop.container.appendChild(f),this.prop.container.firstChild.appendChild(i("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"})},h.prototype.toCanvas=function(){var l=[function(){return document.body.contains(this.prop.container)||this.toContainer()}];return this.thenList(l).then(n).then(function(f){var u=Object.assign({},this.opt.html2canvas);return delete u.onrendered,f(this.prop.container,u)}).then(function(f){(this.opt.html2canvas.onrendered||function(){})(f),this.prop.canvas=f,document.body.removeChild(this.prop.overlay)})},h.prototype.toContext2d=function(){var l=[function(){return document.body.contains(this.prop.container)||this.toContainer()}];return this.thenList(l).then(n).then(function(f){var u=this.opt.jsPDF,g=this.opt.fontFaces,w=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,A=Object.assign({async:!0,allowTaint:!0,scale:w,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 A.onrendered,u.context2d.autoPaging=this.opt.autoPaging===void 0||this.opt.autoPaging,u.context2d.posX=this.opt.x,u.context2d.posY=this.opt.y,u.context2d.margin=this.opt.margin,u.context2d.fontFaces=g,g)for(var p=0;p<g.length;++p){var I=g[p],P=I.src.find(function(T){return T.format==="truetype"});P&&u.addFont(P.url,I.ref.name,I.ref.style)}return A.windowHeight=A.windowHeight||0,A.windowHeight=A.windowHeight==0?Math.max(this.prop.container.clientHeight,this.prop.container.scrollHeight,this.prop.container.offsetHeight):A.windowHeight,u.context2d.save(!0),f(this.prop.container,A)}).then(function(f){this.opt.jsPDF.context2d.restore(!0),(this.opt.html2canvas.onrendered||function(){})(f),this.prop.canvas=f,document.body.removeChild(this.prop.overlay)})},h.prototype.toImg=function(){return this.thenList([function(){return this.prop.canvas||this.toCanvas()}]).then(function(){var l=this.prop.canvas.toDataURL("image/"+this.opt.image.type,this.opt.image.quality);this.prop.img=document.createElement("img"),this.prop.img.src=l})},h.prototype.toPdf=function(){return this.thenList([function(){return this.toContext2d()}]).then(function(){this.prop.pdf=this.prop.pdf||this.opt.jsPDF})},h.prototype.output=function(l,f,u){return(u=u||"pdf").toLowerCase()==="img"||u.toLowerCase()==="image"?this.outputImg(l,f):this.outputPdf(l,f)},h.prototype.outputPdf=function(l,f){return this.thenList([function(){return this.prop.pdf||this.toPdf()}]).then(function(){return this.prop.pdf.output(l,f)})},h.prototype.outputImg=function(l){return this.thenList([function(){return this.prop.img||this.toImg()}]).then(function(){switch(l){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 "'+l+'" is not supported.'}})},h.prototype.save=function(l){return this.thenList([function(){return this.prop.pdf||this.toPdf()}]).set(l?{filename:l}:null).then(function(){this.prop.pdf.save(this.opt.filename)})},h.prototype.doCallback=function(){return this.thenList([function(){return this.prop.pdf||this.toPdf()}]).then(function(){this.prop.callback(this.prop.pdf)})},h.prototype.set=function(l){if(r(l)!=="object")return this;var f=Object.keys(l||{}).map(function(u){if(u in h.template.prop)return function(){this.prop[u]=l[u]};switch(u){case"margin":return this.setMargin.bind(this,l.margin);case"jsPDF":return function(){return this.opt.jsPDF=l.jsPDF,this.setPageSize()};case"pageSize":return this.setPageSize.bind(this,l.pageSize);default:return function(){this.opt[u]=l[u]}}},this);return this.then(function(){return this.thenList(f)})},h.prototype.get=function(l,f){return this.then(function(){var u=l in h.template.prop?this.prop[l]:this.opt[l];return f?f(u):u})},h.prototype.setMargin=function(l){return this.then(function(){switch(r(l)){case"number":l=[l,l,l,l];case"array":if(l.length===2&&(l=[l[0],l[1],l[0],l[1]]),l.length===4)break;default:return this.error("Invalid margin array.")}this.opt.margin=l}).then(this.setPageSize)},h.prototype.setPageSize=function(l){function f(u,g){return Math.floor(u*g/72*96)}return this.then(function(){(l=l||Dt.getPageSize(this.opt.jsPDF)).hasOwnProperty("inner")||(l.inner={width:l.width-this.opt.margin[1]-this.opt.margin[3],height:l.height-this.opt.margin[0]-this.opt.margin[2]},l.inner.px={width:f(l.inner.width,l.k),height:f(l.inner.height,l.k)},l.inner.ratio=l.inner.height/l.inner.width),this.prop.pageSize=l})},h.prototype.setProgress=function(l,f,u,g){return l!=null&&(this.progress.val=l),f!=null&&(this.progress.state=f),u!=null&&(this.progress.n=u),g!=null&&(this.progress.stack=g),this.progress.ratio=this.progress.val/this.progress.state,this},h.prototype.updateProgress=function(l,f,u,g){return this.setProgress(l?this.progress.val+l:null,f||null,u?this.progress.n+u:null,g?this.progress.stack.concat(g):null)},h.prototype.then=function(l,f){var u=this;return this.thenCore(l,f,function(g,w){return u.updateProgress(null,null,1,[g]),Promise.prototype.then.call(this,function(A){return u.updateProgress(null,g),A}).then(g,w).then(function(A){return u.updateProgress(1),A})})},h.prototype.thenCore=function(l,f,u){u=u||Promise.prototype.then;var g=this;l&&(l=l.bind(g)),f&&(f=f.bind(g));var w=Promise.toString().indexOf("[native code]")!==-1&&Promise.name==="Promise"?g:h.convert(Object.assign({},g),Promise.prototype),A=u.call(w,l,f);return h.convert(A,g.__proto__)},h.prototype.thenExternal=function(l,f){return Promise.prototype.then.call(this,l,f)},h.prototype.thenList=function(l){var f=this;return l.forEach(function(u){f=f.thenCore(u)}),f},h.prototype.catch=function(l){l&&(l=l.bind(this));var f=Promise.prototype.catch.call(this,l);return h.convert(f,this)},h.prototype.catchExternal=function(l){return Promise.prototype.catch.call(this,l)},h.prototype.error=function(l){return this.then(function(){throw new Error(l)})},h.prototype.using=h.prototype.set,h.prototype.saveAs=h.prototype.save,h.prototype.export=h.prototype.output,h.prototype.run=h.prototype.then,Dt.getPageSize=function(l,f,u){if(Ne(l)==="object"){var g=l;l=g.orientation,f=g.unit||f,u=g.format||u}f=f||"mm",u=u||"a4",l=(""+(l||"P")).toLowerCase();var w,A=(""+u).toLowerCase(),p={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(f){case"pt":w=1;break;case"mm":w=72/25.4;break;case"cm":w=72/2.54;break;case"in":w=72;break;case"px":w=.75;break;case"pc":case"em":w=12;break;case"ex":w=6;break;default:throw"Invalid unit: "+f}var I,P=0,T=0;if(p.hasOwnProperty(A))P=p[A][1]/w,T=p[A][0]/w;else try{P=u[1],T=u[0]}catch{throw new Error("Invalid format: "+u)}if(l==="p"||l==="portrait")l="p",T>P&&(I=T,T=P,P=I);else{if(l!=="l"&&l!=="landscape")throw"Invalid orientation: "+l;l="l",P>T&&(I=T,T=P,P=I)}return{width:T,height:P,unit:f,k:w,orientation:l}},t.html=function(l,f){(f=f||{}).callback=f.callback||function(){},f.html2canvas=f.html2canvas||{},f.html2canvas.canvas=f.html2canvas.canvas||this.canvas,f.jsPDF=f.jsPDF||this,f.fontFaces=f.fontFaces?f.fontFaces.map(Ah):null;var u=new h(f);return f.worker?u:u.from(l).doCallback()}})(Dt.API),Dt.API.addJS=function(t){return Fu=t,this.internal.events.subscribe("postPutResources",function(){Rs=this.internal.newObject(),this.internal.out("<<"),this.internal.out("/Names [(EmbeddedJS) "+(Rs+1)+" 0 R]"),this.internal.out(">>"),this.internal.out("endobj"),Iu=this.internal.newObject(),this.internal.out("<<"),this.internal.out("/S /JavaScript"),this.internal.out("/JS ("+Fu+")"),this.internal.out(">>"),this.internal.out("endobj")}),this.internal.events.subscribe("putCatalog",function(){Rs!==void 0&&Iu!==void 0&&this.internal.out("/Names <</JavaScript "+Rs+" 0 R>>")}),this},(function(t){var n;t.events.push(["postPutResources",function(){var e=this,r=/^(\d+) 0 obj$/;if(this.outline.root.children.length>0)for(var i=e.outline.render().split(/\r\n/),a=0;a<i.length;a++){var h=i[a],l=r.exec(h);if(l!=null){var f=l[1];e.internal.newObjectDeferredBegin(f,!1)}e.internal.write(h)}if(this.outline.createNamedDestinations){var u=this.internal.pages.length,g=[];for(a=0;a<u;a++){var w=e.internal.newObject();g.push(w);var A=e.internal.getPageInfo(a+1);e.internal.write("<< /D["+A.objId+" 0 R /XYZ null null null]>> endobj")}var p=e.internal.newObject();for(e.internal.write("<< /Names [ "),a=0;a<g.length;a++)e.internal.write("(page_"+(a+1)+")"+g[a]+" 0 R");e.internal.write(" ] >>","endobj"),n=e.internal.newObject(),e.internal.write("<< /Dests "+p+" 0 R"),e.internal.write(">>","endobj")}}]),t.events.push(["putCatalog",function(){var e=this;e.outline.root.children.length>0&&(e.internal.write("/Outlines",this.outline.makeRef(this.outline.root)),this.outline.createNamedDestinations&&e.internal.write("/Names "+n+" 0 R"))}]),t.events.push(["initialized",function(){var e=this;e.outline={createNamedDestinations:!1,root:{children:[]}},e.outline.add=function(r,i,a){var h={title:i,options:a,children:[]};return r==null&&(r=this.root),r.children.push(h),h},e.outline.render=function(){return this.ctx={},this.ctx.val="",this.ctx.pdf=e,this.genIds_r(this.root),this.renderRoot(this.root),this.renderItems(this.root),this.ctx.val},e.outline.genIds_r=function(r){r.id=e.internal.newObjectDeferred();for(var i=0;i<r.children.length;i++)this.genIds_r(r.children[i])},e.outline.renderRoot=function(r){this.objStart(r),this.line("/Type /Outlines"),r.children.length>0&&(this.line("/First "+this.makeRef(r.children[0])),this.line("/Last "+this.makeRef(r.children[r.children.length-1]))),this.line("/Count "+this.count_r({count:0},r)),this.objEnd()},e.outline.renderItems=function(r){for(var i=this.ctx.pdf.internal.getVerticalCoordinateString,a=0;a<r.children.length;a++){var h=r.children[a];this.objStart(h),this.line("/Title "+this.makeString(h.title)),this.line("/Parent "+this.makeRef(r)),a>0&&this.line("/Prev "+this.makeRef(r.children[a-1])),a<r.children.length-1&&this.line("/Next "+this.makeRef(r.children[a+1])),h.children.length>0&&(this.line("/First "+this.makeRef(h.children[0])),this.line("/Last "+this.makeRef(h.children[h.children.length-1])));var l=this.count=this.count_r({count:0},h);if(l>0&&this.line("/Count "+l),h.options&&h.options.pageNumber){var f=e.internal.getPageInfo(h.options.pageNumber);this.line("/Dest ["+f.objId+" 0 R /XYZ 0 "+i(0)+" 0]")}this.objEnd()}for(var u=0;u<r.children.length;u++)this.renderItems(r.children[u])},e.outline.line=function(r){this.ctx.val+=r+`\r
|
44
|
+
`),n}}},createDefaultAppearanceStream:function(t){var n=t.scope.internal.getFont(t.fontName,t.fontStyle).id,e=t.scope.__private__.encodeColorString(t.color);return"/"+n+" "+t.fontSize+" Tf "+e}};Ft.internal={Bezier_C:.551915024494,calculateCross:function(t){var n=Ft.internal.getWidth(t),e=Ft.internal.getHeight(t),r=Math.min(n,e);return{x1:{x:(n-r)/2,y:(e-r)/2+r},x2:{x:(n-r)/2+r,y:(e-r)/2},x3:{x:(n-r)/2,y:(e-r)/2},x4:{x:(n-r)/2+r,y:(e-r)/2+r}}}},Ft.internal.getWidth=function(t){var n=0;return Ne(t)==="object"&&(n=Nu(t.Rect[2])),n},Ft.internal.getHeight=function(t){var n=0;return Ne(t)==="object"&&(n=Nu(t.Rect[3])),n};var gd=ze.addField=function(t){if(pd(this,t),!(t instanceof cr))throw new Error("Invalid argument passed to jsPDF.addField.");var n;return(n=t).scope.internal.acroformPlugin.printedOut&&(n.scope.internal.acroformPlugin.printedOut=!1,n.scope.internal.acroformPlugin.acroFormDictionaryRoot=null),n.scope.internal.acroformPlugin.acroFormDictionaryRoot.Fields.push(n),t.page=t.scope.internal.getCurrentPageInfo().pageNumber,this};ze.AcroFormChoiceField=La,ze.AcroFormListBox=Sa,ze.AcroFormComboBox=ka,ze.AcroFormEditBox=zs,ze.AcroFormButton=ln,ze.AcroFormPushButton=Us,ze.AcroFormRadioButton=Pa,ze.AcroFormCheckBox=qs,ze.AcroFormTextField=Ki,ze.AcroFormPasswordField=Hs,ze.AcroFormAppearance=Ft,ze.AcroForm={ChoiceField:La,ListBox:Sa,ComboBox:ka,EditBox:zs,Button:ln,PushButton:Us,RadioButton:Pa,CheckBox:qs,TextField:Ki,PasswordField:Hs,Appearance:Ft},Dt.AcroForm={ChoiceField:La,ListBox:Sa,ComboBox:ka,EditBox:zs,Button:ln,PushButton:Us,RadioButton:Pa,CheckBox:qs,TextField:Ki,PasswordField:Hs,Appearance:Ft};var mg=Dt.AcroForm;function Yu(t){return t.reduce(function(n,e,r){return n[e]=r,n},{})}(function(t){var n="addImage_";t.__addimage__={};var e="UNKNOWN",r={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=t.__addimage__.getImageFileTypeByImageData=function(S,C){var H,U,it,lt,ct,et=e;if((C=C||e)==="RGBA"||S.data!==void 0&&S.data instanceof Uint8ClampedArray&&"height"in S&&"width"in S)return"RGBA";if(vt(S))for(ct in r)for(it=r[ct],H=0;H<it.length;H+=1){for(lt=!0,U=0;U<it[H].length;U+=1)if(it[H][U]!==void 0&&it[H][U]!==S[U]){lt=!1;break}if(lt===!0){et=ct;break}}else for(ct in r)for(it=r[ct],H=0;H<it.length;H+=1){for(lt=!0,U=0;U<it[H].length;U+=1)if(it[H][U]!==void 0&&it[H][U]!==S.charCodeAt(U)){lt=!1;break}if(lt===!0){et=ct;break}}return et===e&&C!==e&&(et=C),et},a=function S(C){for(var H=this.internal.write,U=this.internal.putStream,it=(0,this.internal.getFilters)();it.indexOf("FlateEncode")!==-1;)it.splice(it.indexOf("FlateEncode"),1);C.objectId=this.internal.newObject();var lt=[];if(lt.push({key:"Type",value:"/XObject"}),lt.push({key:"Subtype",value:"/Image"}),lt.push({key:"Width",value:C.width}),lt.push({key:"Height",value:C.height}),C.colorSpace===L.INDEXED?lt.push({key:"ColorSpace",value:"[/Indexed /DeviceRGB "+(C.palette.length/3-1)+" "+("sMask"in C&&C.sMask!==void 0?C.objectId+2:C.objectId+1)+" 0 R]"}):(lt.push({key:"ColorSpace",value:"/"+C.colorSpace}),C.colorSpace===L.DEVICE_CMYK&<.push({key:"Decode",value:"[1 0 1 0 1 0 1 0]"})),lt.push({key:"BitsPerComponent",value:C.bitsPerComponent}),"decodeParameters"in C&&C.decodeParameters!==void 0&<.push({key:"DecodeParms",value:"<<"+C.decodeParameters+">>"}),"transparency"in C&&Array.isArray(C.transparency)&&C.transparency.length>0){for(var ct="",et=0,ut=C.transparency.length;et<ut;et++)ct+=C.transparency[et]+" "+C.transparency[et]+" ";lt.push({key:"Mask",value:"["+ct+"]"})}C.sMask!==void 0&<.push({key:"SMask",value:C.objectId+1+" 0 R"});var Nt=C.filter!==void 0?["/"+C.filter]:void 0;if(U({data:C.data,additionalKeyValues:lt,alreadyAppliedFilters:Nt,objectId:C.objectId}),H("endobj"),"sMask"in C&&C.sMask!==void 0){var wt,x=(wt=C.sMaskBitsPerComponent)!==null&&wt!==void 0?wt:C.bitsPerComponent,D={width:C.width,height:C.height,colorSpace:"DeviceGray",bitsPerComponent:x,data:C.sMask};"filter"in C&&(D.decodeParameters="/Predictor ".concat(C.predictor," /Colors 1 /BitsPerComponent ").concat(x," /Columns ").concat(C.width),D.filter=C.filter),S.call(this,D)}if(C.colorSpace===L.INDEXED){var R=this.internal.newObject();U({data:Y(new Uint8Array(C.palette)),objectId:R}),H("endobj")}},h=function(){var S=this.internal.collections[n+"images"];for(var C in S)a.call(this,S[C])},l=function(){var S,C=this.internal.collections[n+"images"],H=this.internal.write;for(var U in C)H("/I"+(S=C[U]).index,S.objectId,"0","R")},f=function(){this.internal.collections[n+"images"]||(this.internal.collections[n+"images"]={},this.internal.events.subscribe("putResources",h),this.internal.events.subscribe("putXobjectDict",l))},u=function(){var S=this.internal.collections[n+"images"];return f.call(this),S},g=function(){return Object.keys(this.internal.collections[n+"images"]).length},w=function(S){return typeof t["process"+S.toUpperCase()]=="function"},A=function(S){return Ne(S)==="object"&&S.nodeType===1},p=function(S,C){if(S.nodeName==="IMG"&&S.hasAttribute("src")){var H=""+S.getAttribute("src");if(H.indexOf("data:image/")===0)return Bs(unescape(H).split("base64,").pop());var U=t.loadFile(H,!0);if(U!==void 0)return U}if(S.nodeName==="CANVAS"){if(S.width===0||S.height===0)throw new Error("Given canvas must have data. Canvas width: "+S.width+", height: "+S.height);var it;switch(C){case"PNG":it="image/png";break;case"WEBP":it="image/webp";break;default:it="image/jpeg"}return Bs(S.toDataURL(it,1).split("base64,").pop())}},I=function(S){var C=this.internal.collections[n+"images"];if(C){for(var H in C)if(S===C[H].alias)return C[H]}},P=function(S,C,H){return S||C||(S=-96,C=-96),S<0&&(S=-1*H.width*72/S/this.internal.scaleFactor),C<0&&(C=-1*H.height*72/C/this.internal.scaleFactor),S===0&&(S=C*H.width/H.height),C===0&&(C=S*H.height/H.width),[S,C]},T=function(S,C,H,U,it,lt){var ct=P.call(this,H,U,it),et=this.internal.getCoordinateString,ut=this.internal.getVerticalCoordinateString,Nt=u.call(this);if(H=ct[0],U=ct[1],Nt[it.index]=it,lt){lt*=Math.PI/180;var wt=Math.cos(lt),x=Math.sin(lt),D=function(V){return V.toFixed(4)},R=[D(wt),D(x),D(-1*x),D(wt),0,0,"cm"]}this.internal.write("q"),lt?(this.internal.write([1,"0","0",1,et(S),ut(C+U),"cm"].join(" ")),this.internal.write(R.join(" ")),this.internal.write([et(H),"0","0",et(U),"0","0","cm"].join(" "))):this.internal.write([et(H),"0","0",et(U),et(S),ut(C+U),"cm"].join(" ")),this.isAdvancedAPI()&&this.internal.write([1,0,0,-1,0,0,"cm"].join(" ")),this.internal.write("/I"+it.index+" Do"),this.internal.write("Q")},L=t.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"};t.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 W=t.image_compression={NONE:"NONE",FAST:"FAST",MEDIUM:"MEDIUM",SLOW:"SLOW"},q=t.__addimage__.sHashCode=function(S){var C,H,U=0;if(typeof S=="string")for(H=S.length,C=0;C<H;C++)U=(U<<5)-U+S.charCodeAt(C),U|=0;else if(vt(S))for(H=S.byteLength/2,C=0;C<H;C++)U=(U<<5)-U+S[C],U|=0;return U},B=t.__addimage__.validateStringAsBase64=function(S){(S=S||"").toString().trim();var C=!0;return S.length===0&&(C=!1),S.length%4!=0&&(C=!1),/^[A-Za-z0-9+/]+$/.test(S.substr(0,S.length-2))===!1&&(C=!1),/^[A-Za-z0-9/][A-Za-z0-9+/]|[A-Za-z0-9+/]=|==$/.test(S.substr(-2))===!1&&(C=!1),C},rt=t.__addimage__.extractImageFromDataUrl=function(S){if(S==null||!(S=S.trim()).startsWith("data:"))return null;var C=S.indexOf(",");return C<0?null:S.substring(0,C).trim().endsWith("base64")?S.substring(C+1):null};t.__addimage__.isArrayBuffer=function(S){return S instanceof ArrayBuffer};var vt=t.__addimage__.isArrayBufferView=function(S){return S instanceof Int8Array||S instanceof Uint8Array||S instanceof Uint8ClampedArray||S instanceof Int16Array||S instanceof Uint16Array||S instanceof Int32Array||S instanceof Uint32Array||S instanceof Float32Array||S instanceof Float64Array},pt=t.__addimage__.binaryStringToUint8Array=function(S){for(var C=S.length,H=new Uint8Array(C),U=0;U<C;U++)H[U]=S.charCodeAt(U);return H},Y=t.__addimage__.arrayBufferToBinaryString=function(S){for(var C="",H=vt(S)?S:new Uint8Array(S),U=0;U<H.length;U+=8192)C+=String.fromCharCode.apply(null,H.subarray(U,U+8192));return C};t.addImage=function(){var S,C,H,U,it,lt,ct,et,ut;if(typeof arguments[1]=="number"?(C=e,H=arguments[1],U=arguments[2],it=arguments[3],lt=arguments[4],ct=arguments[5],et=arguments[6],ut=arguments[7]):(C=arguments[1],H=arguments[2],U=arguments[3],it=arguments[4],lt=arguments[5],ct=arguments[6],et=arguments[7],ut=arguments[8]),Ne(S=arguments[0])==="object"&&!A(S)&&"imageData"in S){var Nt=S;S=Nt.imageData,C=Nt.format||C||e,H=Nt.x||H||0,U=Nt.y||U||0,it=Nt.w||Nt.width||it,lt=Nt.h||Nt.height||lt,ct=Nt.alias||ct,et=Nt.compression||et,ut=Nt.rotation||Nt.angle||ut}var wt=this.internal.getFilters();if(et===void 0&&wt.indexOf("FlateEncode")!==-1&&(et="SLOW"),isNaN(H)||isNaN(U))throw new Error("Invalid coordinates passed to jsPDF.addImage");f.call(this);var x=j.call(this,S,C,ct,et);return T.call(this,H,U,it,lt,x,ut),this};var j=function(S,C,H,U){var it,lt,ct;if(typeof S=="string"&&i(S)===e){S=unescape(S);var et=Q(S,!1);(et!==""||(et=t.loadFile(S,!0))!==void 0)&&(S=et)}if(A(S)&&(S=p(S,C)),C=i(S,C),!w(C))throw new Error("addImage does not support files of type '"+C+"', please ensure that a plugin for '"+C+"' support is added.");if(((ct=H)==null||ct.length===0)&&(H=(function(ut){return typeof ut=="string"||vt(ut)?q(ut):vt(ut.data)?q(ut.data):null})(S)),(it=I.call(this,H))||(S instanceof Uint8Array||C==="RGBA"||(lt=S,S=pt(S)),it=this["process"+C.toUpperCase()](S,g.call(this),H,(function(ut){return ut&&typeof ut=="string"&&(ut=ut.toUpperCase()),ut in t.image_compression?ut:W.NONE})(U),lt)),!it)throw new Error("An unknown error occurred whilst processing the image.");return it},Q=t.__addimage__.convertBase64ToBinaryString=function(S,C){C=typeof C!="boolean"||C;var H,U="";if(typeof S=="string"){var it;H=(it=rt(S))!==null&&it!==void 0?it:S;try{U=Bs(H)}catch(lt){if(C)throw B(H)?new Error("atob-Error in jsPDF.convertBase64ToBinaryString "+lt.message):new Error("Supplied Data is not a valid base64-String jsPDF.convertBase64ToBinaryString ")}}return U};t.getImageProperties=function(S){var C,H,U="";if(A(S)&&(S=p(S)),typeof S=="string"&&i(S)===e&&((U=Q(S,!1))===""&&(U=t.loadFile(S)||""),S=U),H=i(S),!w(H))throw new Error("addImage does not support files of type '"+H+"', please ensure that a plugin for '"+H+"' support is added.");if(S instanceof Uint8Array||(S=pt(S)),!(C=this["process"+H.toUpperCase()](S)))throw new Error("An unknown error occurred whilst processing the image");return C.fileType=H,C}})(Dt.API),(function(t){var n=function(e){if(e!==void 0&&e!="")return!0};Dt.API.events.push(["addPage",function(e){this.internal.getPageInfo(e.pageNumber).pageContext.annotations=[]}]),t.events.push(["putPage",function(e){for(var r,i,a,h=this.internal.getCoordinateString,l=this.internal.getVerticalCoordinateString,f=this.internal.getPageInfoByObjId(e.objId),u=e.pageContext.annotations,g=!1,w=0;w<u.length&&!g;w++)switch((r=u[w]).type){case"link":(n(r.options.url)||n(r.options.pageNumber))&&(g=!0);break;case"reference":case"text":case"freetext":g=!0}if(g!=0){this.internal.write("/Annots [");for(var A=0;A<u.length;A++){r=u[A];var p=this.internal.pdfEscape,I=this.internal.getEncryptor(e.objId);switch(r.type){case"reference":this.internal.write(" "+r.object.objId+" 0 R ");break;case"text":var P=this.internal.newAdditionalObject(),T=this.internal.newAdditionalObject(),L=this.internal.getEncryptor(P.objId),W=r.title||"Note";a="<</Type /Annot /Subtype /Text "+(i="/Rect ["+h(r.bounds.x)+" "+l(r.bounds.y+r.bounds.h)+" "+h(r.bounds.x+r.bounds.w)+" "+l(r.bounds.y)+"] ")+"/Contents ("+p(L(r.contents))+")",a+=" /Popup "+T.objId+" 0 R",a+=" /P "+f.objId+" 0 R",a+=" /T ("+p(L(W))+") >>",P.content=a;var q=P.objId+" 0 R";a="<</Type /Annot /Subtype /Popup "+(i="/Rect ["+h(r.bounds.x+30)+" "+l(r.bounds.y+r.bounds.h)+" "+h(r.bounds.x+r.bounds.w+30)+" "+l(r.bounds.y)+"] ")+" /Parent "+q,r.open&&(a+=" /Open true"),a+=" >>",T.content=a,this.internal.write(P.objId,"0 R",T.objId,"0 R");break;case"freetext":i="/Rect ["+h(r.bounds.x)+" "+l(r.bounds.y)+" "+h(r.bounds.x+r.bounds.w)+" "+l(r.bounds.y+r.bounds.h)+"] ";var B=r.color||"#000000";a="<</Type /Annot /Subtype /FreeText "+i+"/Contents ("+p(I(r.contents))+")",a+=" /DS(font: Helvetica,sans-serif 12.0pt; text-align:left; color:#"+B+")",a+=" /Border [0 0 0]",a+=" >>",this.internal.write(a);break;case"link":if(r.options.name){var rt=this.annotations._nameMap[r.options.name];r.options.pageNumber=rt.page,r.options.top=rt.y}else r.options.top||(r.options.top=0);if(i="/Rect ["+r.finalBounds.x+" "+r.finalBounds.y+" "+r.finalBounds.w+" "+r.finalBounds.h+"] ",a="",r.options.url)a="<</Type /Annot /Subtype /Link "+i+"/Border [0 0 0] /A <</S /URI /URI ("+p(I(r.options.url))+") >>";else if(r.options.pageNumber)switch(a="<</Type /Annot /Subtype /Link "+i+"/Border [0 0 0] /Dest ["+this.internal.getPageInfo(r.options.pageNumber).objId+" 0 R",r.options.magFactor=r.options.magFactor||"XYZ",r.options.magFactor){case"Fit":a+=" /Fit]";break;case"FitH":a+=" /FitH "+r.options.top+"]";break;case"FitV":r.options.left=r.options.left||0,a+=" /FitV "+r.options.left+"]";break;default:var vt=l(r.options.top);r.options.left=r.options.left||0,r.options.zoom===void 0&&(r.options.zoom=0),a+=" /XYZ "+r.options.left+" "+vt+" "+r.options.zoom+"]"}a!=""&&(a+=" >>",this.internal.write(a))}}this.internal.write("]")}}]),t.createAnnotation=function(e){var r=this.internal.getCurrentPageInfo();switch(e.type){case"link":this.link(e.bounds.x,e.bounds.y,e.bounds.w,e.bounds.h,e);break;case"text":case"freetext":r.pageContext.annotations.push(e)}},t.link=function(e,r,i,a,h){var l=this.internal.getCurrentPageInfo(),f=this.internal.getCoordinateString,u=this.internal.getVerticalCoordinateString;l.pageContext.annotations.push({finalBounds:{x:f(e),y:u(r),w:f(e+i),h:u(r+a)},options:h,type:"link"})},t.textWithLink=function(e,r,i,a){var h,l,f=this.getTextWidth(e),u=this.internal.getLineHeight()/this.internal.scaleFactor;if(a.maxWidth!==void 0){l=a.maxWidth;var g=this.splitTextToSize(e,l).length;h=Math.ceil(u*g)}else l=f,h=u;return this.text(e,r,i,a),i+=.2*u,a.align==="center"&&(r-=f/2),a.align==="right"&&(r-=f),this.link(r,i-u,l,h,a),f},t.getTextWidth=function(e){var r=this.internal.getFontSize();return this.getStringUnitWidth(e)*r/this.internal.scaleFactor}})(Dt.API),(function(t){var n={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]},e={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}},r={1612:64606,1613:64607,1614:64608,1615:64609,1616:64610},i=[1570,1571,1573,1575];t.__arabicParser__={};var a=t.__arabicParser__.isInArabicSubstitutionA=function(P){return n[P.charCodeAt(0)]!==void 0},h=t.__arabicParser__.isArabicLetter=function(P){return typeof P=="string"&&/^[\u0600-\u06FF\u0750-\u077F\u08A0-\u08FF\uFB50-\uFDFF\uFE70-\uFEFF]+$/.test(P)},l=t.__arabicParser__.isArabicEndLetter=function(P){return h(P)&&a(P)&&n[P.charCodeAt(0)].length<=2},f=t.__arabicParser__.isArabicAlfLetter=function(P){return h(P)&&i.indexOf(P.charCodeAt(0))>=0};t.__arabicParser__.arabicLetterHasIsolatedForm=function(P){return h(P)&&a(P)&&n[P.charCodeAt(0)].length>=1};var u=t.__arabicParser__.arabicLetterHasFinalForm=function(P){return h(P)&&a(P)&&n[P.charCodeAt(0)].length>=2};t.__arabicParser__.arabicLetterHasInitialForm=function(P){return h(P)&&a(P)&&n[P.charCodeAt(0)].length>=3};var g=t.__arabicParser__.arabicLetterHasMedialForm=function(P){return h(P)&&a(P)&&n[P.charCodeAt(0)].length==4},w=t.__arabicParser__.resolveLigatures=function(P){var T=0,L=e,W="",q=0;for(T=0;T<P.length;T+=1)L[P.charCodeAt(T)]!==void 0?(q++,typeof(L=L[P.charCodeAt(T)])=="number"&&(W+=String.fromCharCode(L),L=e,q=0),T===P.length-1&&(L=e,W+=P.charAt(T-(q-1)),T-=q-1,q=0)):(L=e,W+=P.charAt(T-q),T-=q,q=0);return W};t.__arabicParser__.isArabicDiacritic=function(P){return P!==void 0&&r[P.charCodeAt(0)]!==void 0};var A=t.__arabicParser__.getCorrectForm=function(P,T,L){return h(P)?a(P)===!1?-1:!u(P)||!h(T)&&!h(L)||!h(L)&&l(T)||l(P)&&!h(T)||l(P)&&f(T)||l(P)&&l(T)?0:g(P)&&h(T)&&!l(T)&&h(L)&&u(L)?3:l(P)||!h(L)?1:2:-1},p=function(P){var T=0,L=0,W=0,q="",B="",rt="",vt=(P=P||"").split("\\s+"),pt=[];for(T=0;T<vt.length;T+=1){for(pt.push(""),L=0;L<vt[T].length;L+=1)q=vt[T][L],B=vt[T][L-1],rt=vt[T][L+1],h(q)?(W=A(q,B,rt),pt[T]+=W!==-1?String.fromCharCode(n[q.charCodeAt(0)][W]):q):pt[T]+=q;pt[T]=w(pt[T])}return pt.join(" ")},I=t.__arabicParser__.processArabic=t.processArabic=function(){var P,T=typeof arguments[0]=="string"?arguments[0]:arguments[0].text,L=[];if(Array.isArray(T)){var W=0;for(L=[],W=0;W<T.length;W+=1)Array.isArray(T[W])?L.push([p(T[W][0]),T[W][1],T[W][2]]):L.push([p(T[W])]);P=L}else P=p(T);return typeof arguments[0]=="string"?P:(arguments[0].text=P,arguments[0])};t.events.push(["preProcessText",I])})(Dt.API),Dt.API.autoPrint=function(t){var n;return(t=t||{}).variant=t.variant||"non-conform",t.variant==="javascript"?this.addJS("print({});"):(this.internal.events.subscribe("postPutResources",function(){n=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 "+n+" 0 R")})),this},(function(t){var n=function(){var e=void 0;Object.defineProperty(this,"pdf",{get:function(){return e},set:function(l){e=l}});var r=150;Object.defineProperty(this,"width",{get:function(){return r},set:function(l){r=isNaN(l)||Number.isInteger(l)===!1||l<0?150:l,this.getContext("2d").pageWrapXEnabled&&(this.getContext("2d").pageWrapX=r+1)}});var i=300;Object.defineProperty(this,"height",{get:function(){return i},set:function(l){i=isNaN(l)||Number.isInteger(l)===!1||l<0?300:l,this.getContext("2d").pageWrapYEnabled&&(this.getContext("2d").pageWrapY=i+1)}});var a=[];Object.defineProperty(this,"childNodes",{get:function(){return a},set:function(l){a=l}});var h={};Object.defineProperty(this,"style",{get:function(){return h},set:function(l){h=l}}),Object.defineProperty(this,"parentNode",{})};n.prototype.getContext=function(e,r){var i;if((e=e||"2d")!=="2d")return null;for(i in r)this.pdf.context2d.hasOwnProperty(i)&&(this.pdf.context2d[i]=r[i]);return this.pdf.context2d._canvas=this,this.pdf.context2d},n.prototype.toDataURL=function(){throw new Error("toDataURL is not implemented.")},t.events.push(["initialized",function(){this.canvas=new n,this.canvas.pdf=this}])})(Dt.API),(function(t){var n={left:0,top:0,bottom:0,right:0},e=!1,r=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({},n),this.internal.__cell__.margins.width=this.getPageWidth(),i.call(this))},i=function(){this.internal.__cell__.lastCell=new a,this.internal.__cell__.pages=1},a=function(){var f=arguments[0];Object.defineProperty(this,"x",{enumerable:!0,get:function(){return f},set:function(P){f=P}});var u=arguments[1];Object.defineProperty(this,"y",{enumerable:!0,get:function(){return u},set:function(P){u=P}});var g=arguments[2];Object.defineProperty(this,"width",{enumerable:!0,get:function(){return g},set:function(P){g=P}});var w=arguments[3];Object.defineProperty(this,"height",{enumerable:!0,get:function(){return w},set:function(P){w=P}});var A=arguments[4];Object.defineProperty(this,"text",{enumerable:!0,get:function(){return A},set:function(P){A=P}});var p=arguments[5];Object.defineProperty(this,"lineNumber",{enumerable:!0,get:function(){return p},set:function(P){p=P}});var I=arguments[6];return Object.defineProperty(this,"align",{enumerable:!0,get:function(){return I},set:function(P){I=P}}),this};a.prototype.clone=function(){return new a(this.x,this.y,this.width,this.height,this.text,this.lineNumber,this.align)},a.prototype.toArray=function(){return[this.x,this.y,this.width,this.height,this.text,this.lineNumber,this.align]},t.setHeaderFunction=function(f){return r.call(this),this.internal.__cell__.headerFunction=typeof f=="function"?f:void 0,this},t.getTextDimensions=function(f,u){r.call(this);var g=(u=u||{}).fontSize||this.getFontSize(),w=u.font||this.getFont(),A=u.scaleFactor||this.internal.scaleFactor,p=0,I=0,P=0,T=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 L=u.maxWidth;L>0?typeof f=="string"?f=this.splitTextToSize(f,L):Object.prototype.toString.call(f)==="[object Array]"&&(f=f.reduce(function(q,B){return q.concat(T.splitTextToSize(B,L))},[])):f=Array.isArray(f)?f:[f];for(var W=0;W<f.length;W++)p<(P=this.getStringUnitWidth(f[W],{font:w})*g)&&(p=P);return p!==0&&(I=f.length),{w:p/=A,h:Math.max((I*g*this.getLineHeightFactor()-g*(this.getLineHeightFactor()-1))/A,0)}},t.cellAddPage=function(){r.call(this),this.addPage();var f=this.internal.__cell__.margins||n;return this.internal.__cell__.lastCell=new a(f.left,f.top,void 0,void 0),this.internal.__cell__.pages+=1,this};var h=t.cell=function(){var f;f=arguments[0]instanceof a?arguments[0]:new a(arguments[0],arguments[1],arguments[2],arguments[3],arguments[4],arguments[5]),r.call(this);var u=this.internal.__cell__.lastCell,g=this.internal.__cell__.padding,w=this.internal.__cell__.margins||n,A=this.internal.__cell__.tableHeaderRow,p=this.internal.__cell__.printHeaders;return u.lineNumber!==void 0&&(u.lineNumber===f.lineNumber?(f.x=(u.x||0)+(u.width||0),f.y=u.y||0):u.y+u.height+f.height+w.bottom>this.getPageHeight()?(this.cellAddPage(),f.y=w.top,p&&A&&(this.printHeaderRow(f.lineNumber,!0),f.y+=A[0].height)):f.y=u.y+u.height||f.y),f.text[0]!==void 0&&(this.rect(f.x,f.y,f.width,f.height,e===!0?"FD":void 0),f.align==="right"?this.text(f.text,f.x+f.width-g,f.y+g,{align:"right",baseline:"top"}):f.align==="center"?this.text(f.text,f.x+f.width/2,f.y+g,{align:"center",baseline:"top",maxWidth:f.width-g-g}):this.text(f.text,f.x+g,f.y+g,{align:"left",baseline:"top",maxWidth:f.width-g-g})),this.internal.__cell__.lastCell=f,this};t.table=function(f,u,g,w,A){if(r.call(this),!g)throw new Error("No data for PDF table.");var p,I,P,T,L=[],W=[],q=[],B={},rt={},vt=[],pt=[],Y=(A=A||{}).autoSize||!1,j=A.printHeaders!==!1,Q=A.css&&A.css["font-size"]!==void 0?16*A.css["font-size"]:A.fontSize||12,S=A.margins||Object.assign({width:this.getPageWidth()},n),C=typeof A.padding=="number"?A.padding:3,H=A.headerBackgroundColor||"#c8c8c8",U=A.headerTextColor||"#000";if(i.call(this),this.internal.__cell__.printHeaders=j,this.internal.__cell__.margins=S,this.internal.__cell__.table_font_size=Q,this.internal.__cell__.padding=C,this.internal.__cell__.headerBackgroundColor=H,this.internal.__cell__.headerTextColor=U,this.setFontSize(Q),w==null)W=L=Object.keys(g[0]),q=L.map(function(){return"left"});else if(Array.isArray(w)&&Ne(w[0])==="object")for(L=w.map(function(Nt){return Nt.name}),W=w.map(function(Nt){return Nt.prompt||Nt.name||""}),q=w.map(function(Nt){return Nt.align||"left"}),p=0;p<w.length;p+=1)rt[w[p].name]=.7499990551181103*w[p].width;else Array.isArray(w)&&typeof w[0]=="string"&&(W=L=w,q=L.map(function(){return"left"}));if(Y||Array.isArray(w)&&typeof w[0]=="string")for(p=0;p<L.length;p+=1){for(B[T=L[p]]=g.map(function(Nt){return Nt[T]}),this.setFont(void 0,"bold"),vt.push(this.getTextDimensions(W[p],{fontSize:this.internal.__cell__.table_font_size,scaleFactor:this.internal.scaleFactor}).w),I=B[T],this.setFont(void 0,"normal"),P=0;P<I.length;P+=1)vt.push(this.getTextDimensions(I[P],{fontSize:this.internal.__cell__.table_font_size,scaleFactor:this.internal.scaleFactor}).w);rt[T]=Math.max.apply(null,vt)+C+C,vt=[]}if(j){var it={};for(p=0;p<L.length;p+=1)it[L[p]]={},it[L[p]].text=W[p],it[L[p]].align=q[p];var lt=l.call(this,it,rt);pt=L.map(function(Nt){return new a(f,u,rt[Nt],lt,it[Nt].text,void 0,it[Nt].align)}),this.setTableHeaderRow(pt),this.printHeaderRow(1,!1)}var ct=w.reduce(function(Nt,wt){return Nt[wt.name]=wt.align,Nt},{});for(p=0;p<g.length;p+=1){"rowStart"in A&&A.rowStart instanceof Function&&A.rowStart({row:p,data:g[p]},this);var et=l.call(this,g[p],rt);for(P=0;P<L.length;P+=1){var ut=g[p][L[P]];"cellStart"in A&&A.cellStart instanceof Function&&A.cellStart({row:p,col:P,data:ut},this),h.call(this,new a(f,u,rt[L[P]],et,ut,p+2,ct[L[P]]))}}return this.internal.__cell__.table_x=f,this.internal.__cell__.table_y=u,this};var l=function(f,u){var g=this.internal.__cell__.padding,w=this.internal.__cell__.table_font_size,A=this.internal.scaleFactor;return Object.keys(f).map(function(p){var I=f[p];return this.splitTextToSize(I.hasOwnProperty("text")?I.text:I,u[p]-g-g)},this).map(function(p){return this.getLineHeightFactor()*p.length*w/A+g+g},this).reduce(function(p,I){return Math.max(p,I)},0)};t.setTableHeaderRow=function(f){r.call(this),this.internal.__cell__.tableHeaderRow=f},t.printHeaderRow=function(f,u){if(r.call(this),!this.internal.__cell__.tableHeaderRow)throw new Error("Property tableHeaderRow does not exist.");var g;if(e=!0,typeof this.internal.__cell__.headerFunction=="function"){var w=this.internal.__cell__.headerFunction(this,this.internal.__cell__.pages);this.internal.__cell__.lastCell=new a(w[0],w[1],w[2],w[3],void 0,-1)}this.setFont(void 0,"bold");for(var A=[],p=0;p<this.internal.__cell__.tableHeaderRow.length;p+=1){g=this.internal.__cell__.tableHeaderRow[p].clone(),u&&(g.y=this.internal.__cell__.margins.top||0,A.push(g)),g.lineNumber=f;var I=this.getTextColor();this.setTextColor(this.internal.__cell__.headerTextColor),this.setFillColor(this.internal.__cell__.headerBackgroundColor),h.call(this,g),this.setTextColor(I)}A.length>0&&this.setTableHeaderRow(A),this.setFont(void 0,"normal"),e=!1}})(Dt.API);var Ku={italic:["italic","oblique","normal"],oblique:["oblique","italic","normal"],normal:["normal","oblique","italic"]},Xu=["ultra-condensed","extra-condensed","condensed","semi-condensed","normal","semi-expanded","expanded","extra-expanded","ultra-expanded"],Fh=Yu(Xu),Ju=[100,200,300,400,500,600,700,800,900],md=Yu(Ju);function Ah(t){var n=t.family.replace(/"|'/g,"").toLowerCase(),e=(function(a){return Ku[a=a||"normal"]?a:"normal"})(t.style),r=(function(a){return a?typeof a=="number"?a>=100&&a<=900&&a%100==0?a:400:/^\d00$/.test(a)?parseInt(a):a==="bold"?700:400:400})(t.weight),i=(function(a){return typeof Fh[a=a||"normal"]=="number"?a:"normal"})(t.stretch);return{family:n,style:e,weight:r,stretch:i,src:t.src||[],ref:t.ref||{name:n,style:[i,e,r].join(" ")}}}function Lu(t,n,e,r){var i;for(i=e;i>=0&&i<n.length;i+=r)if(t[n[i]])return t[n[i]];for(i=e;i>=0&&i<n.length;i-=r)if(t[n[i]])return t[n[i]]}var vd={"sans-serif":"helvetica",fixed:"courier",monospace:"courier",terminal:"courier",cursive:"times",fantasy:"times",serif:"times"},Su={caption:"times",icon:"times",menu:"times","message-box":"times","small-caption":"times","status-bar":"times"};function ku(t){return[t.stretch,t.style,t.weight,t.family].join(" ")}function Pu(t){return t.trimLeft()}function bd(t,n){for(var e=0;e<t.length;){if(t.charAt(e)===n)return[t.substring(0,e),t.substring(e+1)];e+=1}return null}function wd(t){var n=t.match(/^(-[a-z_]|[a-z_])[a-z0-9_-]*/i);return n===null?null:[n[0],t.substring(n[0].length)]}var Rs,Iu,Fu,_a,js,Eu,Cu,Ou,Nh=["times"];function Tu(t,n,e,r,i){var a=4,h=Mu;switch(i){case Dt.API.image_compression.FAST:a=1,h=Du;break;case Dt.API.image_compression.MEDIUM:a=6,h=Ru;break;case Dt.API.image_compression.SLOW:a=9,h=ju}t=(function(f,u,g,w){for(var A,p=f.length/u,I=new Uint8Array(f.length+p),P=[yd,Du,Mu,Ru,ju],T=0;T<p;T+=1){var L=T*u,W=f.subarray(L,L+u);if(w)I.set(w(W,g,A),L+T);else{for(var q=P.length,B=[],rt=0;rt<q;rt+=1)B[rt]=P[rt](W,g,A);var vt=xd(B.concat());I.set(B[vt],L+T)}A=W}return I})(t,n,Math.ceil(e*r/8),h);var l=ps(t,{level:a});return Dt.API.__addimage__.arrayBufferToBinaryString(l)}function yd(t){var n=Array.apply([],t);return n.unshift(0),n}function Du(t,n){var e=t.length,r=[];r[0]=1;for(var i=0;i<e;i+=1){var a=t[i-n]||0;r[i+1]=t[i]-a+256&255}return r}function Mu(t,n,e){var r=t.length,i=[];i[0]=2;for(var a=0;a<r;a+=1){var h=e&&e[a]||0;i[a+1]=t[a]-h+256&255}return i}function Ru(t,n,e){var r=t.length,i=[];i[0]=3;for(var a=0;a<r;a+=1){var h=t[a-n]||0,l=e&&e[a]||0;i[a+1]=t[a]+256-(h+l>>>1)&255}return i}function ju(t,n,e){var r=t.length,i=[];i[0]=4;for(var a=0;a<r;a+=1){var h=_d(t[a-n]||0,e&&e[a]||0,e&&e[a-n]||0);i[a+1]=t[a]-h+256&255}return i}function _d(t,n,e){if(t===n&&n===e)return t;var r=Math.abs(n-e),i=Math.abs(t-e),a=Math.abs(t+n-e-e);return r<=i&&r<=a?t:i<=a?n:e}function xd(t){var n=t.map(function(e){return e.reduce(function(r,i){return r+Math.abs(i)},0)});return n.indexOf(Math.min.apply(null,n))}function Lh(t,n,e){var r=n*e,i=Math.floor(r/8),a=16-(r-8*i+e),h=(1<<e)-1;return Qu(t,i)>>a&h}function Bu(t,n,e,r){var i=e*r,a=Math.floor(i/8),h=16-(i-8*a+r),l=(1<<r)-1,f=(n&l)<<h;(function(u,g,w){if(g+1<u.byteLength)u.setUint16(g,w,!1);else{var A=w>>8&255;u.setUint8(g,A)}})(t,a,Qu(t,a)&~(l<<h)&65535|f)}function Qu(t,n){return n+1<t.byteLength?t.getUint16(n,!1):t.getUint8(n)<<8}function Ad(t){var n=0;if(t[n++]!==71||t[n++]!==73||t[n++]!==70||t[n++]!==56||(t[n++]+1&253)!=56||t[n++]!==97)throw new Error("Invalid GIF 87a/89a header.");var e=t[n++]|t[n++]<<8,r=t[n++]|t[n++]<<8,i=t[n++],a=i>>7,h=1<<1+(7&i);t[n++],t[n++];var l=null,f=null;a&&(l=n,f=h,n+=3*h);var u=!0,g=[],w=0,A=null,p=0,I=null;for(this.width=e,this.height=r;u&&n<t.length;)switch(t[n++]){case 33:switch(t[n++]){case 255:if(t[n]!==11||t[n+1]==78&&t[n+2]==69&&t[n+3]==84&&t[n+4]==83&&t[n+5]==67&&t[n+6]==65&&t[n+7]==80&&t[n+8]==69&&t[n+9]==50&&t[n+10]==46&&t[n+11]==48&&t[n+12]==3&&t[n+13]==1&&t[n+16]==0)n+=14,I=t[n++]|t[n++]<<8,n++;else for(n+=12;;){if(!((S=t[n++])>=0))throw Error("Invalid block size");if(S===0)break;n+=S}break;case 249:if(t[n++]!==4||t[n+4]!==0)throw new Error("Invalid graphics extension block.");var P=t[n++];w=t[n++]|t[n++]<<8,A=t[n++],1&P||(A=null),p=P>>2&7,n++;break;case 254:for(;;){if(!((S=t[n++])>=0))throw Error("Invalid block size");if(S===0)break;n+=S}break;default:throw new Error("Unknown graphic control label: 0x"+t[n-1].toString(16))}break;case 44:var T=t[n++]|t[n++]<<8,L=t[n++]|t[n++]<<8,W=t[n++]|t[n++]<<8,q=t[n++]|t[n++]<<8,B=t[n++],rt=B>>6&1,vt=1<<1+(7&B),pt=l,Y=f,j=!1;B>>7&&(j=!0,pt=n,Y=vt,n+=3*vt);var Q=n;for(n++;;){var S;if(!((S=t[n++])>=0))throw Error("Invalid block size");if(S===0)break;n+=S}g.push({x:T,y:L,width:W,height:q,has_local_palette:j,palette_offset:pt,palette_size:Y,data_offset:Q,data_length:n-Q,transparent_index:A,interlaced:!!rt,delay:w,disposal:p});break;case 59:u=!1;break;default:throw new Error("Unknown gif block: 0x"+t[n-1].toString(16))}this.numFrames=function(){return g.length},this.loopCount=function(){return I},this.frameInfo=function(C){if(C<0||C>=g.length)throw new Error("Frame index out of range.");return g[C]},this.decodeAndBlitFrameBGRA=function(C,H){var U=this.frameInfo(C),it=U.width*U.height,lt=new Uint8Array(it);zu(t,U.data_offset,lt,it);var ct=U.palette_offset,et=U.transparent_index;et===null&&(et=256);var ut=U.width,Nt=e-ut,wt=ut,x=4*(U.y*e+U.x),D=4*((U.y+U.height)*e+U.x),R=x,V=4*Nt;U.interlaced===!0&&(V+=4*e*7);for(var $=8,nt=0,ot=lt.length;nt<ot;++nt){var at=lt[nt];if(wt===0&&(wt=ut,(R+=V)>=D&&(V=4*Nt+4*e*($-1),R=x+(ut+Nt)*($<<1),$>>=1)),at===et)R+=4;else{var mt=t[ct+3*at],xt=t[ct+3*at+1],kt=t[ct+3*at+2];H[R++]=kt,H[R++]=xt,H[R++]=mt,H[R++]=255}--wt}},this.decodeAndBlitFrameRGBA=function(C,H){var U=this.frameInfo(C),it=U.width*U.height,lt=new Uint8Array(it);zu(t,U.data_offset,lt,it);var ct=U.palette_offset,et=U.transparent_index;et===null&&(et=256);var ut=U.width,Nt=e-ut,wt=ut,x=4*(U.y*e+U.x),D=4*((U.y+U.height)*e+U.x),R=x,V=4*Nt;U.interlaced===!0&&(V+=4*e*7);for(var $=8,nt=0,ot=lt.length;nt<ot;++nt){var at=lt[nt];if(wt===0&&(wt=ut,(R+=V)>=D&&(V=4*Nt+4*e*($-1),R=x+(ut+Nt)*($<<1),$>>=1)),at===et)R+=4;else{var mt=t[ct+3*at],xt=t[ct+3*at+1],kt=t[ct+3*at+2];H[R++]=mt,H[R++]=xt,H[R++]=kt,H[R++]=255}--wt}}}function zu(t,n,e,r){for(var i=t[n++],a=1<<i,h=a+1,l=h+1,f=i+1,u=(1<<f)-1,g=0,w=0,A=0,p=t[n++],I=new Int32Array(4096),P=null;;){for(;g<16&&p!==0;)w|=t[n++]<<g,g+=8,p===1?p=t[n++]:--p;if(g<f)break;var T=w&u;if(w>>=f,g-=f,T!==a){if(T===h)break;for(var L=T<l?T:P,W=0,q=L;q>a;)q=I[q]>>8,++W;var B=q;if(A+W+(L!==T?1:0)>r)return void Ie.log("Warning, gif stream longer than expected.");e[A++]=B;var rt=A+=W;for(L!==T&&(e[A++]=B),q=L;W--;)q=I[q],e[--rt]=255&q,q>>=8;P!==null&&l<4096&&(I[l++]=P<<8|B,l>=u+1&&f<12&&(++f,u=u<<1|1)),P=T}else l=h+1,u=(1<<(f=i+1))-1,P=null}return A!==r&&Ie.log("Warning, gif stream shorter than expected."),e}function Sh(t){var n,e,r,i,a,h=Math.floor,l=new Array(64),f=new Array(64),u=new Array(64),g=new Array(64),w=new Array(65535),A=new Array(65535),p=new Array(64),I=new Array(64),P=[],T=0,L=7,W=new Array(64),q=new Array(64),B=new Array(64),rt=new Array(256),vt=new Array(2048),pt=[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],Y=[0,0,1,5,1,1,1,1,1,1,0,0,0,0,0,0,0],j=[0,1,2,3,4,5,6,7,8,9,10,11],Q=[0,0,2,1,3,3,2,4,3,5,5,4,4,0,0,1,125],S=[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],C=[0,0,3,1,1,1,1,1,1,1,1,1,0,0,0,0,0],H=[0,1,2,3,4,5,6,7,8,9,10,11],U=[0,0,2,1,2,4,4,3,4,7,5,4,4,0,1,2,119],it=[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 lt(x,D){for(var R=0,V=0,$=new Array,nt=1;nt<=16;nt++){for(var ot=1;ot<=x[nt];ot++)$[D[V]]=[],$[D[V]][0]=R,$[D[V]][1]=nt,V++,R++;R*=2}return $}function ct(x){for(var D=x[0],R=x[1]-1;R>=0;)D&1<<R&&(T|=1<<L),R--,--L<0&&(T==255?(et(255),et(0)):et(T),L=7,T=0)}function et(x){P.push(x)}function ut(x){et(x>>8&255),et(255&x)}function Nt(x,D,R,V,$){for(var nt,ot=$[0],at=$[240],mt=(function(At,jt){var St,ie,Ut,pe,Jt,Qt,Ae,ae,Bt,Gt,zt=0;for(Bt=0;Bt<8;++Bt){St=At[zt],ie=At[zt+1],Ut=At[zt+2],pe=At[zt+3],Jt=At[zt+4],Qt=At[zt+5],Ae=At[zt+6];var Fe=St+(ae=At[zt+7]),ge=St-ae,Mt=ie+Ae,te=ie-Ae,Le=Ut+Qt,Ht=Ut-Qt,he=pe+Jt,ee=pe-Jt,Ue=Fe+he,Qe=Fe-he,Se=Mt+Le,$t=Mt-Le;At[zt]=Ue+Se,At[zt+4]=Ue-Se;var we=.707106781*($t+Qe);At[zt+2]=Qe+we,At[zt+6]=Qe-we;var mi=.382683433*((Ue=ee+Ht)-($t=te+ge)),gn=.5411961*Ue+mi,Sr=1.306562965*$t+mi,ur=.707106781*(Se=Ht+te),Wt=ge+ur,kr=ge-ur;At[zt+5]=kr+gn,At[zt+3]=kr-gn,At[zt+1]=Wt+Sr,At[zt+7]=Wt-Sr,zt+=8}for(zt=0,Bt=0;Bt<8;++Bt){St=At[zt],ie=At[zt+8],Ut=At[zt+16],pe=At[zt+24],Jt=At[zt+32],Qt=At[zt+40],Ae=At[zt+48];var Pr=St+(ae=At[zt+56]),Hn=St-ae,Wn=ie+Ae,Me=ie-Ae,on=Ut+Qt,hn=Ut-Qt,vi=pe+Jt,Gr=pe-Jt,er=Pr+vi,dr=Pr-vi,nr=Wn+on,rr=Wn-on;At[zt]=er+nr,At[zt+32]=er-nr;var Gn=.707106781*(rr+dr);At[zt+16]=dr+Gn,At[zt+48]=dr-Gn;var bi=.382683433*((er=Gr+hn)-(rr=Me+Hn)),pr=.5411961*er+bi,wi=1.306562965*rr+bi,Ji=.707106781*(nr=hn+Me),Qi=Hn+Ji,ta=Hn-Ji;At[zt+40]=ta+pr,At[zt+24]=ta-pr,At[zt+8]=Qi+wi,At[zt+56]=Qi-wi,zt++}for(Bt=0;Bt<64;++Bt)Gt=At[Bt]*jt[Bt],p[Bt]=Gt>0?Gt+.5|0:Gt-.5|0;return p})(x,D),xt=0;xt<64;++xt)I[pt[xt]]=mt[xt];var kt=I[0]-R;R=I[0],kt==0?ct(V[0]):(ct(V[A[nt=32767+kt]]),ct(w[nt]));for(var Pt=63;Pt>0&&I[Pt]==0;)Pt--;if(Pt==0)return ct(ot),R;for(var st,M=1;M<=Pt;){for(var le=M;I[M]==0&&M<=Pt;)++M;var re=M-le;if(re>=16){st=re>>4;for(var qt=1;qt<=st;++qt)ct(at);re&=15}nt=32767+I[M],ct($[(re<<4)+A[nt]]),ct(w[nt]),M++}return Pt!=63&&ct(ot),R}function wt(x){x=Math.min(Math.max(x,1),100),a!=x&&((function(D){for(var R=[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],V=0;V<64;V++){var $=h((R[V]*D+50)/100);$=Math.min(Math.max($,1),255),l[pt[V]]=$}for(var nt=[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],ot=0;ot<64;ot++){var at=h((nt[ot]*D+50)/100);at=Math.min(Math.max(at,1),255),f[pt[ot]]=at}for(var mt=[1,1.387039845,1.306562965,1.175875602,1,.785694958,.5411961,.275899379],xt=0,kt=0;kt<8;kt++)for(var Pt=0;Pt<8;Pt++)u[xt]=1/(l[pt[xt]]*mt[kt]*mt[Pt]*8),g[xt]=1/(f[pt[xt]]*mt[kt]*mt[Pt]*8),xt++})(x<50?Math.floor(5e3/x):Math.floor(200-2*x)),a=x)}this.encode=function(x,D){D&&wt(D),P=new Array,T=0,L=7,ut(65496),ut(65504),ut(16),et(74),et(70),et(73),et(70),et(0),et(1),et(1),et(0),ut(1),ut(1),et(0),et(0),(function(){ut(65499),ut(132),et(0);for(var ie=0;ie<64;ie++)et(l[ie]);et(1);for(var Ut=0;Ut<64;Ut++)et(f[Ut])})(),(function(ie,Ut){ut(65472),ut(17),et(8),ut(Ut),ut(ie),et(3),et(1),et(17),et(0),et(2),et(17),et(1),et(3),et(17),et(1)})(x.width,x.height),(function(){ut(65476),ut(418),et(0);for(var ie=0;ie<16;ie++)et(Y[ie+1]);for(var Ut=0;Ut<=11;Ut++)et(j[Ut]);et(16);for(var pe=0;pe<16;pe++)et(Q[pe+1]);for(var Jt=0;Jt<=161;Jt++)et(S[Jt]);et(1);for(var Qt=0;Qt<16;Qt++)et(C[Qt+1]);for(var Ae=0;Ae<=11;Ae++)et(H[Ae]);et(17);for(var ae=0;ae<16;ae++)et(U[ae+1]);for(var Bt=0;Bt<=161;Bt++)et(it[Bt])})(),ut(65498),ut(12),et(3),et(1),et(0),et(2),et(17),et(3),et(17),et(0),et(63),et(0);var R=0,V=0,$=0;T=0,L=7,this.encode.displayName="_encode_";for(var nt,ot,at,mt,xt,kt,Pt,st,M,le=x.data,re=x.width,qt=x.height,At=4*re,jt=0;jt<qt;){for(nt=0;nt<At;){for(xt=At*jt+nt,Pt=-1,st=0,M=0;M<64;M++)kt=xt+(st=M>>3)*At+(Pt=4*(7&M)),jt+st>=qt&&(kt-=At*(jt+1+st-qt)),nt+Pt>=At&&(kt-=nt+Pt-At+4),ot=le[kt++],at=le[kt++],mt=le[kt++],W[M]=(vt[ot]+vt[at+256|0]+vt[mt+512|0]>>16)-128,q[M]=(vt[ot+768|0]+vt[at+1024|0]+vt[mt+1280|0]>>16)-128,B[M]=(vt[ot+1280|0]+vt[at+1536|0]+vt[mt+1792|0]>>16)-128;R=Nt(W,u,R,n,r),V=Nt(q,g,V,e,i),$=Nt(B,g,$,e,i),nt+=32}jt+=8}if(L>=0){var St=[];St[1]=L+1,St[0]=(1<<L+1)-1,ct(St)}return ut(65497),new Uint8Array(P)},t=t||50,(function(){for(var x=String.fromCharCode,D=0;D<256;D++)rt[D]=x(D)})(),n=lt(Y,j),e=lt(C,H),r=lt(Q,S),i=lt(U,it),(function(){for(var x=1,D=2,R=1;R<=15;R++){for(var V=x;V<D;V++)A[32767+V]=R,w[32767+V]=[],w[32767+V][1]=R,w[32767+V][0]=V;for(var $=-(D-1);$<=-x;$++)A[32767+$]=R,w[32767+$]=[],w[32767+$][1]=R,w[32767+$][0]=D-1+$;x<<=1,D<<=1}})(),(function(){for(var x=0;x<256;x++)vt[x]=19595*x,vt[x+256|0]=38470*x,vt[x+512|0]=7471*x+32768,vt[x+768|0]=-11059*x,vt[x+1024|0]=-21709*x,vt[x+1280|0]=32768*x+8421375,vt[x+1536|0]=-27439*x,vt[x+1792|0]=-5329*x})(),wt(t)}function hr(t,n){if(this.pos=0,this.buffer=t,this.datav=new DataView(t.buffer),this.is_with_alpha=!!n,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 Uu(t){function n(j){if(!j)throw Error("assert :P")}function e(j,Q,S){for(var C=0;4>C;C++)if(j[Q+C]!=S.charCodeAt(C))return!0;return!1}function r(j,Q,S,C,H){for(var U=0;U<H;U++)j[Q+U]=S[C+U]}function i(j,Q,S,C){for(var H=0;H<C;H++)j[Q+H]=S}function a(j){return new Int32Array(j)}function h(j,Q){for(var S=[],C=0;C<j;C++)S.push(new Q);return S}function l(j,Q){var S=[];return(function C(H,U,it){for(var lt=it[U],ct=0;ct<lt&&(H.push(it.length>U+1?[]:new Q),!(it.length<U+1));ct++)C(H[ct],U+1,it)})(S,0,j),S}var f=function(){var j=this;function Q(o,s){for(var d=1<<s-1>>>0;o&d;)d>>>=1;return d?(o&d-1)+d:o}function S(o,s,d,m,b){n(!(m%d));do o[s+(m-=d)]=b;while(0<m)}function C(o,s,d,m,b){if(n(2328>=b),512>=b)var y=a(512);else if((y=a(b))==null)return 0;return(function(_,N,k,F,G,tt){var E,Z,X=N,ht=1<<k,J=a(16),ft=a(16);for(n(G!=0),n(F!=null),n(_!=null),n(0<k),Z=0;Z<G;++Z){if(15<F[Z])return 0;++J[F[Z]]}if(J[0]==G)return 0;for(ft[1]=0,E=1;15>E;++E){if(J[E]>1<<E)return 0;ft[E+1]=ft[E]+J[E]}for(Z=0;Z<G;++Z)E=F[Z],0<F[Z]&&(tt[ft[E]++]=Z);if(ft[15]==1)return(F=new H).g=0,F.value=tt[0],S(_,X,1,ht,F),ht;var gt,_t=-1,bt=ht-1,Rt=0,It=1,oe=1,Ct=1<<k;for(Z=0,E=1,G=2;E<=k;++E,G<<=1){if(It+=oe<<=1,0>(oe-=J[E]))return 0;for(;0<J[E];--J[E])(F=new H).g=E,F.value=tt[Z++],S(_,X+Rt,G,Ct,F),Rt=Q(Rt,E)}for(E=k+1,G=2;15>=E;++E,G<<=1){if(It+=oe<<=1,0>(oe-=J[E]))return 0;for(;0<J[E];--J[E]){if(F=new H,(Rt&bt)!=_t){for(X+=Ct,gt=1<<(_t=E)-k;15>_t&&!(0>=(gt-=J[_t]));)++_t,gt<<=1;ht+=Ct=1<<(gt=_t-k),_[N+(_t=Rt&bt)].g=gt+k,_[N+_t].value=X-N-_t}F.g=E-k,F.value=tt[Z++],S(_,X+(Rt>>k),G,Ct,F),Rt=Q(Rt,E)}}return It!=2*ft[15]-1?0:ht})(o,s,d,m,b,y)}function H(){this.value=this.g=0}function U(){this.value=this.g=0}function it(){this.G=h(5,H),this.H=a(5),this.jc=this.Qb=this.qb=this.nd=0,this.pd=h(Mi,U)}function lt(o,s,d,m){n(o!=null),n(s!=null),n(2147483648>m),o.Ca=254,o.I=0,o.b=-8,o.Ka=0,o.oa=s,o.pa=d,o.Jd=s,o.Yc=d+m,o.Zc=4<=m?d+m-4+1:d,ot(o)}function ct(o,s){for(var d=0;0<s--;)d|=mt(o,128)<<s;return d}function et(o,s){var d=ct(o,s);return at(o)?-d:d}function ut(o,s,d,m){var b,y=0;for(n(o!=null),n(s!=null),n(4294967288>m),o.Sb=m,o.Ra=0,o.u=0,o.h=0,4<m&&(m=4),b=0;b<m;++b)y+=s[d+b]<<8*b;o.Ra=y,o.bb=m,o.oa=s,o.pa=d}function Nt(o){for(;8<=o.u&&o.bb<o.Sb;)o.Ra>>>=8,o.Ra+=o.oa[o.pa+o.bb]<<Kr-8>>>0,++o.bb,o.u-=8;V(o)&&(o.h=1,o.u=0)}function wt(o,s){if(n(0<=s),!o.h&&s<=On){var d=R(o)&Cn[s];return o.u+=s,Nt(o),d}return o.h=1,o.u=0}function x(){this.b=this.Ca=this.I=0,this.oa=[],this.pa=0,this.Jd=[],this.Yc=0,this.Zc=[],this.Ka=0}function D(){this.Ra=0,this.oa=[],this.h=this.u=this.bb=this.Sb=this.pa=0}function R(o){return o.Ra>>>(o.u&Kr-1)>>>0}function V(o){return n(o.bb<=o.Sb),o.h||o.bb==o.Sb&&o.u>Kr}function $(o,s){o.u=s,o.h=V(o)}function nt(o){o.u>=Dr&&(n(o.u>=Dr),Nt(o))}function ot(o){n(o!=null&&o.oa!=null),o.pa<o.Zc?(o.I=(o.oa[o.pa++]|o.I<<8)>>>0,o.b+=8):(n(o!=null&&o.oa!=null),o.pa<o.Yc?(o.b+=8,o.I=o.oa[o.pa++]|o.I<<8):o.Ka?o.b=0:(o.I<<=8,o.b+=8,o.Ka=1))}function at(o){return ct(o,1)}function mt(o,s){var d=o.Ca;0>o.b&&ot(o);var m=o.b,b=d*s>>>8,y=(o.I>>>m>b)+0;for(y?(d-=b,o.I-=b+1<<m>>>0):d=b+1,m=d,b=0;256<=m;)b+=8,m>>=8;return m=7^b+Xr[m],o.b-=m,o.Ca=(d<<m)-1,y}function xt(o,s,d){o[s+0]=d>>24&255,o[s+1]=d>>16&255,o[s+2]=d>>8&255,o[s+3]=255&d}function kt(o,s){return o[s+0]|o[s+1]<<8}function Pt(o,s){return kt(o,s)|o[s+2]<<16}function st(o,s){return kt(o,s)|kt(o,s+2)<<16}function M(o,s){var d=1<<s;return n(o!=null),n(0<s),o.X=a(d),o.X==null?0:(o.Mb=32-s,o.Xa=s,1)}function le(o,s){n(o!=null),n(s!=null),n(o.Xa==s.Xa),r(s.X,0,o.X,0,1<<s.Xa)}function re(){this.X=[],this.Xa=this.Mb=0}function qt(o,s,d,m){n(d!=null),n(m!=null);var b=d[0],y=m[0];return b==0&&(b=(o*y+s/2)/s),y==0&&(y=(s*b+o/2)/o),0>=b||0>=y?0:(d[0]=b,m[0]=y,1)}function At(o,s){return o+(1<<s)-1>>>s}function jt(o,s){return((4278255360&o)+(4278255360&s)>>>0&4278255360)+((16711935&o)+(16711935&s)>>>0&16711935)>>>0}function St(o,s){j[s]=function(d,m,b,y,_,N,k){var F;for(F=0;F<_;++F){var G=j[o](N[k+F-1],b,y+F);N[k+F]=jt(d[m+F],G)}}}function ie(){this.ud=this.hd=this.jd=0}function Ut(o,s){return((4278124286&(o^s))>>>1)+(o&s)>>>0}function pe(o){return 0<=o&&256>o?o:0>o?0:255<o?255:void 0}function Jt(o,s){return pe(o+(o-s+.5>>1))}function Qt(o,s,d){return Math.abs(s-d)-Math.abs(o-d)}function Ae(o,s,d,m,b,y,_){for(m=y[_-1],d=0;d<b;++d)y[_+d]=m=jt(o[s+d],m)}function ae(o,s,d,m,b){var y;for(y=0;y<d;++y){var _=o[s+y],N=_>>8&255,k=16711935&(k=(k=16711935&_)+((N<<16)+N));m[b+y]=(4278255360&_)+k>>>0}}function Bt(o,s){s.jd=255&o,s.hd=o>>8&255,s.ud=o>>16&255}function Gt(o,s,d,m,b,y){var _;for(_=0;_<m;++_){var N=s[d+_],k=N>>>8,F=N,G=255&(G=(G=N>>>16)+((o.jd<<24>>24)*(k<<24>>24)>>>5));F=255&(F=(F+=(o.hd<<24>>24)*(k<<24>>24)>>>5)+((o.ud<<24>>24)*(G<<24>>24)>>>5)),b[y+_]=(4278255360&N)+(G<<16)+F}}function zt(o,s,d,m,b){j[s]=function(y,_,N,k,F,G,tt,E,Z){for(k=tt;k<E;++k)for(tt=0;tt<Z;++tt)F[G++]=b(N[m(y[_++])])},j[o]=function(y,_,N,k,F,G,tt){var E=8>>y.b,Z=y.Ea,X=y.K[0],ht=y.w;if(8>E)for(y=(1<<y.b)-1,ht=(1<<E)-1;_<N;++_){var J,ft=0;for(J=0;J<Z;++J)J&y||(ft=m(k[F++])),G[tt++]=b(X[ft&ht]),ft>>=E}else j["VP8LMapColor"+d](k,F,X,ht,G,tt,_,N,Z)}}function Fe(o,s,d,m,b){for(d=s+d;s<d;){var y=o[s++];m[b++]=y>>16&255,m[b++]=y>>8&255,m[b++]=255&y}}function ge(o,s,d,m,b){for(d=s+d;s<d;){var y=o[s++];m[b++]=y>>16&255,m[b++]=y>>8&255,m[b++]=255&y,m[b++]=y>>24&255}}function Mt(o,s,d,m,b){for(d=s+d;s<d;){var y=(_=o[s++])>>16&240|_>>12&15,_=240&_|_>>28&15;m[b++]=y,m[b++]=_}}function te(o,s,d,m,b){for(d=s+d;s<d;){var y=(_=o[s++])>>16&248|_>>13&7,_=_>>5&224|_>>3&31;m[b++]=y,m[b++]=_}}function Le(o,s,d,m,b){for(d=s+d;s<d;){var y=o[s++];m[b++]=255&y,m[b++]=y>>8&255,m[b++]=y>>16&255}}function Ht(o,s,d,m,b,y){if(y==0)for(d=s+d;s<d;)xt(m,((y=o[s++])[0]>>24|y[1]>>8&65280|y[2]<<8&16711680|y[3]<<24)>>>0),b+=32;else r(m,b,o,s,d)}function he(o,s){j[s][0]=j[o+"0"],j[s][1]=j[o+"1"],j[s][2]=j[o+"2"],j[s][3]=j[o+"3"],j[s][4]=j[o+"4"],j[s][5]=j[o+"5"],j[s][6]=j[o+"6"],j[s][7]=j[o+"7"],j[s][8]=j[o+"8"],j[s][9]=j[o+"9"],j[s][10]=j[o+"10"],j[s][11]=j[o+"11"],j[s][12]=j[o+"12"],j[s][13]=j[o+"13"],j[s][14]=j[o+"0"],j[s][15]=j[o+"0"]}function ee(o){return o==dl||o==pl||o==ns||o==gl}function Ue(){this.eb=[],this.size=this.A=this.fb=0}function Qe(){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 Se(){this.Rd=this.height=this.width=this.S=0,this.f={},this.f.RGBA=new Ue,this.f.kb=new Qe,this.sd=null}function $t(){this.width=[0],this.height=[0],this.Pd=[0],this.Qd=[0],this.format=[0]}function we(){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 mi(o){return alert("todo:WebPSamplerProcessPlane"),o.T}function gn(o,s){var d=o.T,m=s.ba.f.RGBA,b=m.eb,y=m.fb+o.ka*m.A,_=Xn[s.ba.S],N=o.y,k=o.O,F=o.f,G=o.N,tt=o.ea,E=o.W,Z=s.cc,X=s.dc,ht=s.Mc,J=s.Nc,ft=o.ka,gt=o.ka+o.T,_t=o.U,bt=_t+1>>1;for(ft==0?_(N,k,null,null,F,G,tt,E,F,G,tt,E,b,y,null,null,_t):(_(s.ec,s.fc,N,k,Z,X,ht,J,F,G,tt,E,b,y-m.A,b,y,_t),++d);ft+2<gt;ft+=2)Z=F,X=G,ht=tt,J=E,G+=o.Rc,E+=o.Rc,y+=2*m.A,_(N,(k+=2*o.fa)-o.fa,N,k,Z,X,ht,J,F,G,tt,E,b,y-m.A,b,y,_t);return k+=o.fa,o.j+gt<o.o?(r(s.ec,s.fc,N,k,_t),r(s.cc,s.dc,F,G,bt),r(s.Mc,s.Nc,tt,E,bt),d--):1>||_(N,k,null,null,F,G,tt,E,F,G,tt,E,b,y+m.A,null,null,_t),d}function Sr(o,s,d){var m=o.F,b=[o.J];if(m!=null){var y=o.U,_=s.ba.S,N=_==es||_==ns;s=s.ba.f.RGBA;var k=[0],F=o.ka;k[0]=o.T,o.Kb&&(F==0?--k[0]:(--F,b[0]-=o.width),o.j+o.ka+o.T==o.o&&(k[0]=o.o-o.j-F));var G=s.eb;F=s.fb+F*s.A,o=Hh(m,b[0],o.width,y,k,G,F+(N?0:3),s.A),n(d==k),o&&ee(_)&&Ja(G,F,N,y,k,s.A)}return 0}function ur(o){var s=o.ma,d=s.ba.S,m=11>d,b=d==Qo||d==ts||d==es||d==ul||d==12||ee(d);if(s.memory=null,s.Ib=null,s.Jb=null,s.Nd=null,!Wa(s.Oa,o,b?11:12))return 0;if(b&&ee(d)&&Zo(),o.da)alert("todo:use_scaling");else{if(m){if(s.Ib=mi,o.Kb){if(d=o.U+1>>1,s.memory=a(o.U+2*d),s.memory==null)return 0;s.ec=s.memory,s.fc=0,s.cc=s.ec,s.dc=s.fc+o.U,s.Mc=s.cc,s.Nc=s.dc+d,s.Ib=gn,Zo()}}else alert("todo:EmitYUV");b&&(s.Jb=Sr,m&&Zn())}if(m&&!oc){for(o=0;256>o;++o)S1[o]=89858*(o-128)+is>>rs,I1[o]=-22014*(o-128)+is,P1[o]=-45773*(o-128),k1[o]=113618*(o-128)+is>>rs;for(o=to;o<bl;++o)s=76283*(o-16)+is>>rs,F1[o-to]=Re(s,255),E1[o-to]=Re(s+8>>4,15);oc=1}return 1}function Wt(o){var s=o.ma,d=o.U,m=o.T;return n(!(1&o.ka)),0>=d||0>=m?0:(d=s.Ib(o,s),s.Jb!=null&&s.Jb(o,s,d),s.Dc+=d,1)}function kr(o){o.ma.memory=null}function Pr(o,s,d,m){return wt(o,8)!=47?0:(s[0]=wt(o,14)+1,d[0]=wt(o,14)+1,m[0]=wt(o,1),wt(o,3)!=0?0:!o.h)}function Hn(o,s){if(4>o)return o+1;var d=o-2>>1;return(2+(1&o)<<d)+wt(s,d)+1}function Wn(o,s){return 120<s?s-120:1<=(d=((d=u1[s-1])>>4)*o+(8-(15&d)))?d:1;var d}function Me(o,s,d){var m=R(d),b=o[s+=255&m].g-8;return 0<b&&($(d,d.u+8),m=R(d),s+=o[s].value,s+=m&(1<<b)-1),$(d,d.u+o[s].g),o[s].value}function on(o,s,d){return d.g+=o.g,d.value+=o.value<<s>>>0,n(8>=d.g),o.g}function hn(o,s,d){var m=o.xc;return n((s=m==0?0:o.vc[o.md*(d>>m)+(s>>m)])<o.Wb),o.Ya[s]}function vi(o,s,d,m){var b=o.ab,y=o.c*s,_=o.C;s=_+s;var N=d,k=m;for(m=o.Ta,d=o.Ua;0<b--;){var F=o.gc[b],G=_,tt=s,E=N,Z=k,X=(k=m,N=d,F.Ea);switch(n(G<tt),n(tt<=F.nc),F.hc){case 2:He(E,Z,(tt-G)*X,k,N);break;case 0:var ht=G,J=tt,ft=k,gt=N,_t=(Ct=F).Ea;ht==0&&(Va(E,Z,null,null,1,ft,gt),Ae(E,Z+1,0,0,_t-1,ft,gt+1),Z+=_t,gt+=_t,++ht);for(var bt=1<<Ct.b,Rt=bt-1,It=At(_t,Ct.b),oe=Ct.K,Ct=Ct.w+(ht>>Ct.b)*It;ht<J;){var ce=oe,nn=Ct,se=1;for(la(E,Z,ft,gt-_t,1,ft,gt);se<_t;){var Ot=(se&~Rt)+bt;Ot>_t&&(Ot=_t),(0,$a[ce[nn++]>>8&15])(E,Z+ +se,ft,gt+se-_t,Ot-se,ft,gt+se),se=Ot}Z+=_t,gt+=_t,++ht&Rt||(Ct+=It)}tt!=F.nc&&r(k,N-X,k,N+(tt-G-1)*X,X);break;case 1:for(X=E,J=Z,_t=(E=F.Ea)-(gt=E&~(ft=(Z=1<<F.b)-1)),ht=At(E,F.b),bt=F.K,F=F.w+(G>>F.b)*ht;G<tt;){for(Rt=bt,It=F,oe=new ie,Ct=J+gt,ce=J+E;J<Ct;)Bt(Rt[It++],oe),Ya(oe,X,J,Z,k,N),J+=Z,N+=Z;J<ce&&(Bt(Rt[It++],oe),Ya(oe,X,J,_t,k,N),J+=_t,N+=_t),++G&ft||(F+=ht)}break;case 3:if(E==k&&Z==N&&0<F.b){for(J=k,E=X=N+(tt-G)*X-(gt=(tt-G)*At(F.Ea,F.b)),Z=k,ft=N,ht=[],gt=(_t=gt)-1;0<=gt;--gt)ht[gt]=Z[ft+gt];for(gt=_t-1;0<=gt;--gt)J[E+gt]=ht[gt];Yo(F,G,tt,k,X,k,N)}else Yo(F,G,tt,E,Z,k,N)}N=m,k=d}k!=d&&r(m,d,N,k,y)}function Gr(o,s){var d=o.V,m=o.Ba+o.c*o.C,b=s-o.C;if(n(s<=o.l.o),n(16>=b),0<b){var y=o.l,_=o.Ta,N=o.Ua,k=y.width;if(vi(o,b,d,m),b=N=[N],n((d=o.C)<(m=s)),n(y.v<y.va),m>y.o&&(m=y.o),d<y.j){var F=y.j-d;d=y.j,b[0]+=F*k}if(d>=m?d=0:(b[0]+=4*y.v,y.ka=d-y.j,y.U=y.va-y.v,y.T=m-d,d=1),d){if(N=N[0],11>(d=o.ca).S){var G=d.f.RGBA,tt=(m=d.S,b=y.U,y=y.T,F=G.eb,G.A),E=y;for(G=G.fb+o.Ma*G.A;0<E--;){var Z=_,X=N,ht=b,J=F,ft=G;switch(m){case Jo:Ka(Z,X,ht,J,ft);break;case Qo:Jr(Z,X,ht,J,ft);break;case dl:Jr(Z,X,ht,J,ft),Ja(J,ft,0,ht,1,0);break;case Kh:Ri(Z,X,ht,J,ft);break;case ts:Ht(Z,X,ht,J,ft,1);break;case pl:Ht(Z,X,ht,J,ft,1),Ja(J,ft,0,ht,1,0);break;case es:Ht(Z,X,ht,J,ft,0);break;case ns:Ht(Z,X,ht,J,ft,0),Ja(J,ft,1,ht,1,0);break;case ul:Qr(Z,X,ht,J,ft);break;case gl:Qr(Z,X,ht,J,ft),qh(J,ft,ht,1,0);break;case Xh:ti(Z,X,ht,J,ft);break;default:n(0)}N+=k,G+=tt}o.Ma+=y}else alert("todo:EmitRescaledRowsYUVA");n(o.Ma<=d.height)}}o.C=s,n(o.C<=o.i)}function er(o){var s;if(0<o.ua)return 0;for(s=0;s<o.Wb;++s){var d=o.Ya[s].G,m=o.Ya[s].H;if(0<d[1][m[1]+0].g||0<d[2][m[2]+0].g||0<d[3][m[3]+0].g)return 0}return 1}function dr(o,s,d,m,b,y){if(o.Z!=0){var _=o.qd,N=o.rd;for(n(ri[o.Z]!=null);s<d;++s)ri[o.Z](_,N,m,b,m,b,y),_=m,N=b,b+=y;o.qd=_,o.rd=N}}function nr(o,s){var d=o.l.ma,m=d.Z==0||d.Z==1?o.l.j:o.C;if(m=o.C<m?m:o.C,n(s<=o.l.o),s>m){var b=o.l.width,y=d.ca,_=d.tb+b*m,N=o.V,k=o.Ba+o.c*m,F=o.gc;n(o.ab==1),n(F[0].hc==3),vr(F[0],m,s,N,k,y,_),dr(d,m,s,y,_,b)}o.C=o.Ma=s}function rr(o,s,d,m,b,y,_){var N=o.$/m,k=o.$%m,F=o.m,G=o.s,tt=d+o.$,E=tt;b=d+m*b;var Z=d+m*y,X=280+G.ua,ht=o.Pb?N:16777216,J=0<G.ua?G.Wa:null,ft=G.wc,gt=tt<Z?hn(G,k,N):null;n(o.C<y),n(Z<=b);var _t=!1;t:for(;;){for(;_t||tt<Z;){var bt=0;if(N>=ht){var Rt=tt-d;n((ht=o).Pb),ht.wd=ht.m,ht.xd=Rt,0<ht.s.ua&&le(ht.s.Wa,ht.s.vb),ht=N+p1}if(k&ft||(gt=hn(G,k,N)),n(gt!=null),gt.Qb&&(s[tt]=gt.qb,_t=!0),!_t)if(nt(F),gt.jc){bt=F,Rt=s;var It=tt,oe=gt.pd[R(bt)&Mi-1];n(gt.jc),256>oe.g?($(bt,bt.u+oe.g),Rt[It]=oe.value,bt=0):($(bt,bt.u+oe.g-256),n(256<=oe.value),bt=oe.value),bt==0&&(_t=!0)}else bt=Me(gt.G[0],gt.H[0],F);if(F.h)break;if(_t||256>bt){if(!_t)if(gt.nd)s[tt]=(gt.qb|bt<<8)>>>0;else{if(nt(F),_t=Me(gt.G[1],gt.H[1],F),nt(F),Rt=Me(gt.G[2],gt.H[2],F),It=Me(gt.G[3],gt.H[3],F),F.h)break;s[tt]=(It<<24|_t<<16|bt<<8|Rt)>>>0}if(_t=!1,++tt,++k>=m&&(k=0,++N,_!=null&&N<=y&&!(N%16)&&_(o,N),J!=null))for(;E<tt;)bt=s[E++],J.X[(506832829*bt&4294967295)>>>J.Mb]=bt}else if(280>bt){if(bt=Hn(bt-256,F),Rt=Me(gt.G[4],gt.H[4],F),nt(F),Rt=Wn(m,Rt=Hn(Rt,F)),F.h)break;if(tt-d<Rt||b-tt<bt)break t;for(It=0;It<bt;++It)s[tt+It]=s[tt+It-Rt];for(tt+=bt,k+=bt;k>=m;)k-=m,++N,_!=null&&N<=y&&!(N%16)&&_(o,N);if(n(tt<=b),k&ft&&(gt=hn(G,k,N)),J!=null)for(;E<tt;)bt=s[E++],J.X[(506832829*bt&4294967295)>>>J.Mb]=bt}else{if(!(bt<X))break t;for(_t=bt-280,n(J!=null);E<tt;)bt=s[E++],J.X[(506832829*bt&4294967295)>>>J.Mb]=bt;bt=tt,n(!(_t>>>(Rt=J).Xa)),s[bt]=Rt.X[_t],_t=!0}_t||n(F.h==V(F))}if(o.Pb&&F.h&&tt<b)n(o.m.h),o.a=5,o.m=o.wd,o.$=o.xd,0<o.s.ua&&le(o.s.vb,o.s.Wa);else{if(F.h)break t;_?.(o,N>y?y:N),o.a=0,o.$=tt-d}return 1}return o.a=3,0}function Gn(o){n(o!=null),o.vc=null,o.yc=null,o.Ya=null;var s=o.Wa;s!=null&&(s.X=null),o.vb=null,n(o!=null)}function bi(){var o=new Tt;return o==null?null:(o.a=0,o.xb=tc,he("Predictor","VP8LPredictors"),he("Predictor","VP8LPredictors_C"),he("PredictorAdd","VP8LPredictorsAdd"),he("PredictorAdd","VP8LPredictorsAdd_C"),He=ae,Ya=Gt,Ka=Fe,Jr=ge,Qr=Mt,ti=te,Ri=Le,j.VP8LMapColor32b=mr,j.VP8LMapColor8b=Za,o)}function pr(o,s,d,m,b){var y=1,_=[o],N=[s],k=m.m,F=m.s,G=null,tt=0;t:for(;;){if(d)for(;y&&wt(k,1);){var E=_,Z=N,X=m,ht=1,J=X.m,ft=X.gc[X.ab],gt=wt(J,2);if(X.Oc&1<<gt)y=0;else{switch(X.Oc|=1<<gt,ft.hc=gt,ft.Ea=E[0],ft.nc=Z[0],ft.K=[null],++X.ab,n(4>=X.ab),gt){case 0:case 1:ft.b=wt(J,3)+2,ht=pr(At(ft.Ea,ft.b),At(ft.nc,ft.b),0,X,ft.K),ft.K=ft.K[0];break;case 3:var _t,bt=wt(J,8)+1,Rt=16<bt?0:4<bt?1:2<bt?2:3;if(E[0]=At(ft.Ea,Rt),ft.b=Rt,_t=ht=pr(bt,1,0,X,ft.K)){var It,oe=bt,Ct=ft,ce=1<<(8>>Ct.b),nn=a(ce);if(nn==null)_t=0;else{var se=Ct.K[0],Ot=Ct.w;for(nn[0]=Ct.K[0][0],It=1;It<1*oe;++It)nn[It]=jt(se[Ot+It],nn[It-1]);for(;It<4*ce;++It)nn[It]=0;Ct.K[0]=null,Ct.K[0]=nn,_t=1}}ht=_t;break;case 2:break;default:n(0)}y=ht}}if(_=_[0],N=N[0],y&&wt(k,1)&&!(y=1<=(tt=wt(k,4))&&11>=tt)){m.a=3;break t}var Lt;if(Lt=y)e:{var Ge,ne,ue,Oe=m,fn=_,xn=N,je=tt,vn=d,An=Oe.m,rn=Oe.s,de=[null],_e=1,Be=0,xe=d1[je];n:for(;;){if(vn&&wt(An,1)){var un=wt(An,3)+2,or=At(fn,un),Ve=At(xn,un),Pn=or*Ve;if(!pr(or,Ve,0,Oe,de))break n;for(de=de[0],rn.xc=un,Ge=0;Ge<Pn;++Ge){var Pe=de[Ge]>>8&65535;de[Ge]=Pe,Pe>=_e&&(_e=Pe+1)}}if(An.h)break n;for(ne=0;5>ne;++ne){var an=Jh[ne];!ne&&0<je&&(an+=1<<je),Be<an&&(Be=an)}var Dn=h(_e*xe,H),Nn=_e,Mn=h(Nn,it);if(Mn==null)var Rn=null;else n(65536>=Nn),Rn=Mn;var In=a(Be);if(Rn==null||In==null||Dn==null){Oe.a=1;break n}var jn=Dn;for(Ge=ue=0;Ge<_e;++Ge){var Ce=Rn[Ge],Bn=Ce.G,sr=Ce.H,Bi=0,jr=1,dn=0;for(ne=0;5>ne;++ne){an=Jh[ne],Bn[ne]=jn,sr[ne]=ue,!ne&&0<je&&(an+=1<<je);i:{var os,wl=an,ss=Oe,eo=In,T1=jn,D1=ue,yl=0,ii=ss.m,M1=wt(ii,1);if(i(eo,0,0,wl),M1){var R1=wt(ii,1)+1,j1=wt(ii,1),hc=wt(ii,j1==0?1:8);eo[hc]=1,R1==2&&(eo[hc=wt(ii,8)]=1);var ls=1}else{var cc=a(19),fc=wt(ii,4)+4;if(19<fc){ss.a=3;var hs=0;break i}for(os=0;os<fc;++os)cc[f1[os]]=wt(ii,3);var _l=void 0,no=void 0,uc=ss,B1=cc,cs=wl,dc=eo,xl=0,ai=uc.m,pc=8,gc=h(128,H);r:for(;C(gc,0,7,B1,19);){if(wt(ai,1)){var z1=2+2*wt(ai,3);if((_l=2+wt(ai,z1))>cs)break r}else _l=cs;for(no=0;no<cs&&_l--;){nt(ai);var mc=gc[0+(127&R(ai))];$(ai,ai.u+mc.g);var ca=mc.value;if(16>ca)dc[no++]=ca,ca!=0&&(pc=ca);else{var U1=ca==16,vc=ca-16,q1=h1[vc],bc=wt(ai,l1[vc])+q1;if(no+bc>cs)break r;for(var H1=U1?pc:0;0<bc--;)dc[no++]=H1}}xl=1;break r}xl||(uc.a=3),ls=xl}(ls=ls&&!ii.h)&&(yl=C(T1,D1,8,eo,wl)),ls&&yl!=0?hs=yl:(ss.a=3,hs=0)}if(hs==0)break n;if(jr&&c1[ne]==1&&(jr=jn[ue].g==0),Bi+=jn[ue].g,ue+=hs,3>=ne){var ro,Al=In[0];for(ro=1;ro<an;++ro)In[ro]>Al&&(Al=In[ro]);dn+=Al}}if(Ce.nd=jr,Ce.Qb=0,jr&&(Ce.qb=(Bn[3][sr[3]+0].value<<24|Bn[1][sr[1]+0].value<<16|Bn[2][sr[2]+0].value)>>>0,Bi==0&&256>Bn[0][sr[0]+0].value&&(Ce.Qb=1,Ce.qb+=Bn[0][sr[0]+0].value<<8)),Ce.jc=!Ce.Qb&&6>dn,Ce.jc){var fs,Br=Ce;for(fs=0;fs<Mi;++fs){var oi=fs,si=Br.pd[oi],us=Br.G[0][Br.H[0]+oi];256<=us.value?(si.g=us.g+256,si.value=us.value):(si.g=0,si.value=0,oi>>=on(us,8,si),oi>>=on(Br.G[1][Br.H[1]+oi],16,si),oi>>=on(Br.G[2][Br.H[2]+oi],0,si),on(Br.G[3][Br.H[3]+oi],24,si))}}}rn.vc=de,rn.Wb=_e,rn.Ya=Rn,rn.yc=Dn,Lt=1;break e}Lt=0}if(!(y=Lt)){m.a=3;break t}if(0<tt){if(F.ua=1<<tt,!M(F.Wa,tt)){m.a=1,y=0;break t}}else F.ua=0;var Nl=m,wc=_,W1=N,Ll=Nl.s,Sl=Ll.xc;if(Nl.c=wc,Nl.i=W1,Ll.md=At(wc,Sl),Ll.wc=Sl==0?-1:(1<<Sl)-1,d){m.xb=_1;break t}if((G=a(_*N))==null){m.a=1,y=0;break t}y=(y=rr(m,G,0,_,N,N,null))&&!k.h;break t}return y?(b!=null?b[0]=G:(n(G==null),n(d)),m.$=0,d||Gn(F)):Gn(F),y}function wi(o,s){var d=o.c*o.i,m=d+s+16*s;return n(o.c<=s),o.V=a(m),o.V==null?(o.Ta=null,o.Ua=0,o.a=1,0):(o.Ta=o.V,o.Ua=o.Ba+d+s,1)}function Ji(o,s){var d=o.C,m=s-d,b=o.V,y=o.Ba+o.c*d;for(n(s<=o.l.o);0<m;){var _=16<m?16:m,N=o.l.ma,k=o.l.width,F=k*_,G=N.ca,tt=N.tb+k*d,E=o.Ta,Z=o.Ua;vi(o,_,b,y),Wh(E,Z,G,tt,F),dr(N,d,d+_,G,tt,k),m-=_,b+=_*o.c,d+=_}n(d==s),o.C=o.Ma=s}function Qi(){this.ub=this.yd=this.td=this.Rb=0}function ta(){this.Kd=this.Ld=this.Ud=this.Td=this.i=this.c=0}function Ys(){this.Fb=this.Bb=this.Cb=0,this.Zb=a(4),this.Lb=a(4)}function Fa(){this.Yb=(function(){var o=[];return(function s(d,m,b){for(var y=b[m],_=0;_<y&&(d.push(b.length>m+1?[]:0),!(b.length<m+1));_++)s(d[_],m+1,b)})(o,0,[3,11]),o})()}function Co(){this.jb=a(3),this.Wc=l([4,8],Fa),this.Xc=l([4,17],Fa)}function Oo(){this.Pc=this.wb=this.Tb=this.zd=0,this.vd=new a(4),this.od=new a(4)}function Vn(){this.ld=this.La=this.dd=this.tc=0}function Ea(){this.Na=this.la=0}function To(){this.Sc=[0,0],this.Eb=[0,0],this.Qc=[0,0],this.ia=this.lc=0}function Ca(){this.ad=a(384),this.Za=0,this.Ob=a(16),this.$b=this.Ad=this.ia=this.Gc=this.Hc=this.Dd=0}function Do(){this.uc=this.M=this.Nb=0,this.wa=Array(new Vn),this.Y=0,this.ya=Array(new Ca),this.aa=0,this.l=new ea}function Mo(){this.y=a(16),this.f=a(8),this.ea=a(8)}function Ro(){this.cb=this.a=0,this.sc="",this.m=new x,this.Od=new Qi,this.Kc=new ta,this.ed=new Oo,this.Qa=new Ys,this.Ic=this.$c=this.Aa=0,this.D=new Do,this.Xb=this.Va=this.Hb=this.zb=this.yb=this.Ub=this.za=0,this.Jc=h(8,x),this.ia=0,this.pb=h(4,To),this.Pa=new Co,this.Bd=this.kc=0,this.Ac=[],this.Bc=0,this.zc=[0,0,0,0],this.Gd=Array(new Mo),this.Hd=0,this.rb=Array(new Ea),this.sb=0,this.wa=Array(new Vn),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 Ca),this.L=this.aa=0,this.gd=l([4,2],Vn),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 ea(){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 Ks(){var o=new Ro;return o!=null&&(o.a=0,o.sc="OK",o.cb=0,o.Xb=0,Qa||(Qa=Ir)),o}function Ke(o,s,d){return o.a==0&&(o.a=s,o.sc=d,o.cb=0),0}function jo(o,s,d){return 3<=d&&o[s+0]==157&&o[s+1]==1&&o[s+2]==42}function Bo(o,s){if(o==null)return 0;if(o.a=0,o.sc="OK",s==null)return Ke(o,2,"null VP8Io passed to VP8GetHeaders()");var d=s.data,m=s.w,b=s.ha;if(4>b)return Ke(o,7,"Truncated header.");var y=d[m+0]|d[m+1]<<8|d[m+2]<<16,_=o.Od;if(_.Rb=!(1&y),_.td=y>>1&7,_.yd=y>>4&1,_.ub=y>>5,3<_.td)return Ke(o,3,"Incorrect keyframe parameters.");if(!_.yd)return Ke(o,4,"Frame not displayable.");m+=3,b-=3;var N=o.Kc;if(_.Rb){if(7>b)return Ke(o,7,"cannot parse picture header");if(!jo(d,m,b))return Ke(o,3,"Bad code word");N.c=16383&(d[m+4]<<8|d[m+3]),N.Td=d[m+4]>>6,N.i=16383&(d[m+6]<<8|d[m+5]),N.Ud=d[m+6]>>6,m+=7,b-=7,o.za=N.c+15>>4,o.Ub=N.i+15>>4,s.width=N.c,s.height=N.i,s.Da=0,s.j=0,s.v=0,s.va=s.width,s.o=s.height,s.da=0,s.ib=s.width,s.hb=s.height,s.U=s.width,s.T=s.height,i((y=o.Pa).jb,0,255,y.jb.length),n((y=o.Qa)!=null),y.Cb=0,y.Bb=0,y.Fb=1,i(y.Zb,0,0,y.Zb.length),i(y.Lb,0,0,y.Lb)}if(_.ub>b)return Ke(o,7,"bad partition length");lt(y=o.m,d,m,_.ub),m+=_.ub,b-=_.ub,_.Rb&&(N.Ld=at(y),N.Kd=at(y)),N=o.Qa;var k,F=o.Pa;if(n(y!=null),n(N!=null),N.Cb=at(y),N.Cb){if(N.Bb=at(y),at(y)){for(N.Fb=at(y),k=0;4>k;++k)N.Zb[k]=at(y)?et(y,7):0;for(k=0;4>k;++k)N.Lb[k]=at(y)?et(y,6):0}if(N.Bb)for(k=0;3>k;++k)F.jb[k]=at(y)?ct(y,8):255}else N.Bb=0;if(y.Ka)return Ke(o,3,"cannot parse segment header");if((N=o.ed).zd=at(y),N.Tb=ct(y,6),N.wb=ct(y,3),N.Pc=at(y),N.Pc&&at(y)){for(F=0;4>F;++F)at(y)&&(N.vd[F]=et(y,6));for(F=0;4>F;++F)at(y)&&(N.od[F]=et(y,6))}if(o.L=N.Tb==0?0:N.zd?1:2,y.Ka)return Ke(o,3,"cannot parse filter header");var G=b;if(b=k=m,m=k+G,N=G,o.Xb=(1<<ct(o.m,2))-1,G<3*(F=o.Xb))d=7;else{for(k+=3*F,N-=3*F,G=0;G<F;++G){var tt=d[b+0]|d[b+1]<<8|d[b+2]<<16;tt>N&&(tt=N),lt(o.Jc[+G],d,k,tt),k+=tt,N-=tt,b+=3}lt(o.Jc[+F],d,k,N),d=k<m?0:5}if(d!=0)return Ke(o,d,"cannot parse partitions");for(d=ct(k=o.m,7),b=at(k)?et(k,4):0,m=at(k)?et(k,4):0,N=at(k)?et(k,4):0,F=at(k)?et(k,4):0,k=at(k)?et(k,4):0,G=o.Qa,tt=0;4>tt;++tt){if(G.Cb){var E=G.Zb[tt];G.Fb||(E+=d)}else{if(0<tt){o.pb[tt]=o.pb[0];continue}E=d}var Z=o.pb[tt];Z.Sc[0]=ml[Re(E+b,127)],Z.Sc[1]=vl[Re(E+0,127)],Z.Eb[0]=2*ml[Re(E+m,127)],Z.Eb[1]=101581*vl[Re(E+N,127)]>>16,8>Z.Eb[1]&&(Z.Eb[1]=8),Z.Qc[0]=ml[Re(E+F,117)],Z.Qc[1]=vl[Re(E+k,127)],Z.lc=E+k}if(!_.Rb)return Ke(o,4,"Not a key frame.");for(at(y),_=o.Pa,d=0;4>d;++d){for(b=0;8>b;++b)for(m=0;3>m;++m)for(N=0;11>N;++N)F=mt(y,w1[d][b][m][N])?ct(y,8):v1[d][b][m][N],_.Wc[d][b].Yb[m][N]=F;for(b=0;17>b;++b)_.Xc[d][b]=_.Wc[d][y1[b]]}return o.kc=at(y),o.kc&&(o.Bd=ct(y,8)),o.cb=1}function Ir(o,s,d,m,b,y,_){var N=s[b].Yb[d];for(d=0;16>b;++b){if(!mt(o,N[d+0]))return b;for(;!mt(o,N[d+1]);)if(N=s[++b].Yb[0],d=0,b==16)return 16;var k=s[b+1].Yb;if(mt(o,N[d+2])){var F=o,G=0;if(mt(F,(E=N)[(tt=d)+3]))if(mt(F,E[tt+6])){for(N=0,tt=2*(G=mt(F,E[tt+8]))+(E=mt(F,E[tt+9+G])),G=0,E=g1[tt];E[N];++N)G+=G+mt(F,E[N]);G+=3+(8<<tt)}else mt(F,E[tt+7])?(G=7+2*mt(F,165),G+=mt(F,145)):G=5+mt(F,159);else G=mt(F,E[tt+4])?3+mt(F,E[tt+5]):2;N=k[2]}else G=1,N=k[1];k=_+m1[b],0>(F=o).b&&ot(F);var tt,E=F.b,Z=(tt=F.Ca>>1)-(F.I>>E)>>31;--F.b,F.Ca+=Z,F.Ca|=1,F.I-=(tt+1&Z)<<E,y[k]=((G^Z)-Z)*m[(0<b)+0]}return 16}function yi(o){var s=o.rb[o.sb-1];s.la=0,s.Na=0,i(o.zc,0,0,o.zc.length),o.ja=0}function ir(o,s,d,m,b){b=o[s+d+32*m]+(b>>3),o[s+d+32*m]=-256&b?0>b?0:255:b}function _i(o,s,d,m,b,y){ir(o,s,0,d,m+b),ir(o,s,1,d,m+y),ir(o,s,2,d,m-y),ir(o,s,3,d,m-b)}function qe(o){return(20091*o>>16)+o}function Oa(o,s,d,m){var b,y=0,_=a(16);for(b=0;4>b;++b){var N=o[s+0]+o[s+8],k=o[s+0]-o[s+8],F=(35468*o[s+4]>>16)-qe(o[s+12]),G=qe(o[s+4])+(35468*o[s+12]>>16);_[y+0]=N+G,_[y+1]=k+F,_[y+2]=k-F,_[y+3]=N-G,y+=4,s++}for(b=y=0;4>b;++b)N=(o=_[y+0]+4)+_[y+8],k=o-_[y+8],F=(35468*_[y+4]>>16)-qe(_[y+12]),ir(d,m,0,0,N+(G=qe(_[y+4])+(35468*_[y+12]>>16))),ir(d,m,1,0,k+F),ir(d,m,2,0,k-F),ir(d,m,3,0,N-G),y++,m+=32}function Xs(o,s,d,m){var b=o[s+0]+4,y=35468*o[s+4]>>16,_=qe(o[s+4]),N=35468*o[s+1]>>16;_i(d,m,0,b+_,o=qe(o[s+1]),N),_i(d,m,1,b+y,o,N),_i(d,m,2,b-y,o,N),_i(d,m,3,b-_,o,N)}function Js(o,s,d,m,b){Oa(o,s,d,m),b&&Oa(o,s+16,d,m+4)}function Qs(o,s,d,m){ji(o,s+0,d,m,1),ji(o,s+32,d,m+128,1)}function gr(o,s,d,m){var b;for(o=o[s+0]+4,b=0;4>b;++b)for(s=0;4>s;++s)ir(d,m,s,b,o)}function zo(o,s,d,m){o[s+0]&&ye(o,s+0,d,m),o[s+16]&&ye(o,s+16,d,m+4),o[s+32]&&ye(o,s+32,d,m+128),o[s+48]&&ye(o,s+48,d,m+128+4)}function Uo(o,s,d,m){var b,y=a(16);for(b=0;4>b;++b){var _=o[s+0+b]+o[s+12+b],N=o[s+4+b]+o[s+8+b],k=o[s+4+b]-o[s+8+b],F=o[s+0+b]-o[s+12+b];y[0+b]=_+N,y[8+b]=_-N,y[4+b]=F+k,y[12+b]=F-k}for(b=0;4>b;++b)_=(o=y[0+4*b]+3)+y[3+4*b],N=y[1+4*b]+y[2+4*b],k=y[1+4*b]-y[2+4*b],F=o-y[3+4*b],d[m+0]=_+N>>3,d[m+16]=F+k>>3,d[m+32]=_-N>>3,d[m+48]=F-k>>3,m+=64}function Vr(o,s,d){var m,b=s-32,y=Tn,_=255-o[b-1];for(m=0;m<d;++m){var N,k=y,F=_+o[s-1];for(N=0;N<d;++N)o[s+N]=k[F+o[b+N]];s+=32}}function Ta(o,s){Vr(o,s,4)}function tl(o,s){Vr(o,s,8)}function el(o,s){Vr(o,s,16)}function nl(o,s){var d;for(d=0;16>d;++d)r(o,s+32*d,o,s-32,16)}function Da(o,s){var d;for(d=16;0<d;--d)i(o,s,o[s-1],16),s+=32}function xi(o,s,d){var m;for(m=0;16>m;++m)i(s,d+32*m,o,16)}function Zr(o,s){var d,m=16;for(d=0;16>d;++d)m+=o[s-1+32*d]+o[s+d-32];xi(m>>5,o,s)}function rl(o,s){var d,m=8;for(d=0;16>d;++d)m+=o[s-1+32*d];xi(m>>4,o,s)}function Ai(o,s){var d,m=8;for(d=0;16>d;++d)m+=o[s+d-32];xi(m>>4,o,s)}function Ma(o,s){xi(128,o,s)}function Yt(o,s,d){return o+2*s+d+2>>2}function il(o,s){var d,m=s-32;for(m=new Uint8Array([Yt(o[m-1],o[m+0],o[m+1]),Yt(o[m+0],o[m+1],o[m+2]),Yt(o[m+1],o[m+2],o[m+3]),Yt(o[m+2],o[m+3],o[m+4])]),d=0;4>d;++d)r(o,s+32*d,m,0,m.length)}function al(o,s){var d=o[s-1],m=o[s-1+32],b=o[s-1+64],y=o[s-1+96];xt(o,s+0,16843009*Yt(o[s-1-32],d,m)),xt(o,s+32,16843009*Yt(d,m,b)),xt(o,s+64,16843009*Yt(m,b,y)),xt(o,s+96,16843009*Yt(b,y,y))}function ol(o,s){var d,m=4;for(d=0;4>d;++d)m+=o[s+d-32]+o[s-1+32*d];for(m>>=3,d=0;4>d;++d)i(o,s+32*d,m,4)}function sl(o,s){var d=o[s-1+0],m=o[s-1+32],b=o[s-1+64],y=o[s-1-32],_=o[s+0-32],N=o[s+1-32],k=o[s+2-32],F=o[s+3-32];o[s+0+96]=Yt(m,b,o[s-1+96]),o[s+1+96]=o[s+0+64]=Yt(d,m,b),o[s+2+96]=o[s+1+64]=o[s+0+32]=Yt(y,d,m),o[s+3+96]=o[s+2+64]=o[s+1+32]=o[s+0+0]=Yt(_,y,d),o[s+3+64]=o[s+2+32]=o[s+1+0]=Yt(N,_,y),o[s+3+32]=o[s+2+0]=Yt(k,N,_),o[s+3+0]=Yt(F,k,N)}function Fr(o,s){var d=o[s+1-32],m=o[s+2-32],b=o[s+3-32],y=o[s+4-32],_=o[s+5-32],N=o[s+6-32],k=o[s+7-32];o[s+0+0]=Yt(o[s+0-32],d,m),o[s+1+0]=o[s+0+32]=Yt(d,m,b),o[s+2+0]=o[s+1+32]=o[s+0+64]=Yt(m,b,y),o[s+3+0]=o[s+2+32]=o[s+1+64]=o[s+0+96]=Yt(b,y,_),o[s+3+32]=o[s+2+64]=o[s+1+96]=Yt(y,_,N),o[s+3+64]=o[s+2+96]=Yt(_,N,k),o[s+3+96]=Yt(N,k,k)}function Er(o,s){var d=o[s-1+0],m=o[s-1+32],b=o[s-1+64],y=o[s-1-32],_=o[s+0-32],N=o[s+1-32],k=o[s+2-32],F=o[s+3-32];o[s+0+0]=o[s+1+64]=y+_+1>>1,o[s+1+0]=o[s+2+64]=_+N+1>>1,o[s+2+0]=o[s+3+64]=N+k+1>>1,o[s+3+0]=k+F+1>>1,o[s+0+96]=Yt(b,m,d),o[s+0+64]=Yt(m,d,y),o[s+0+32]=o[s+1+96]=Yt(d,y,_),o[s+1+32]=o[s+2+96]=Yt(y,_,N),o[s+2+32]=o[s+3+96]=Yt(_,N,k),o[s+3+32]=Yt(N,k,F)}function ll(o,s){var d=o[s+0-32],m=o[s+1-32],b=o[s+2-32],y=o[s+3-32],_=o[s+4-32],N=o[s+5-32],k=o[s+6-32],F=o[s+7-32];o[s+0+0]=d+m+1>>1,o[s+1+0]=o[s+0+64]=m+b+1>>1,o[s+2+0]=o[s+1+64]=b+y+1>>1,o[s+3+0]=o[s+2+64]=y+_+1>>1,o[s+0+32]=Yt(d,m,b),o[s+1+32]=o[s+0+96]=Yt(m,b,y),o[s+2+32]=o[s+1+96]=Yt(b,y,_),o[s+3+32]=o[s+2+96]=Yt(y,_,N),o[s+3+64]=Yt(_,N,k),o[s+3+96]=Yt(N,k,F)}function hl(o,s){var d=o[s-1+0],m=o[s-1+32],b=o[s-1+64],y=o[s-1+96];o[s+0+0]=d+m+1>>1,o[s+2+0]=o[s+0+32]=m+b+1>>1,o[s+2+32]=o[s+0+64]=b+y+1>>1,o[s+1+0]=Yt(d,m,b),o[s+3+0]=o[s+1+32]=Yt(m,b,y),o[s+3+32]=o[s+1+64]=Yt(b,y,y),o[s+3+64]=o[s+2+64]=o[s+0+96]=o[s+1+96]=o[s+2+96]=o[s+3+96]=y}function na(o,s){var d=o[s-1+0],m=o[s-1+32],b=o[s-1+64],y=o[s-1+96],_=o[s-1-32],N=o[s+0-32],k=o[s+1-32],F=o[s+2-32];o[s+0+0]=o[s+2+32]=d+_+1>>1,o[s+0+32]=o[s+2+64]=m+d+1>>1,o[s+0+64]=o[s+2+96]=b+m+1>>1,o[s+0+96]=y+b+1>>1,o[s+3+0]=Yt(N,k,F),o[s+2+0]=Yt(_,N,k),o[s+1+0]=o[s+3+32]=Yt(d,_,N),o[s+1+32]=o[s+3+64]=Yt(m,d,_),o[s+1+64]=o[s+3+96]=Yt(b,m,d),o[s+1+96]=Yt(y,b,m)}function Ra(o,s){var d;for(d=0;8>d;++d)r(o,s+32*d,o,s-32,8)}function Ni(o,s){var d;for(d=0;8>d;++d)i(o,s,o[s-1],8),s+=32}function ra(o,s,d){var m;for(m=0;8>m;++m)i(s,d+32*m,o,8)}function ia(o,s){var d,m=8;for(d=0;8>d;++d)m+=o[s+d-32]+o[s-1+32*d];ra(m>>4,o,s)}function cl(o,s){var d,m=4;for(d=0;8>d;++d)m+=o[s+d-32];ra(m>>3,o,s)}function ja(o,s){var d,m=4;for(d=0;8>d;++d)m+=o[s-1+32*d];ra(m>>3,o,s)}function Ba(o,s){ra(128,o,s)}function Li(o,s,d){var m=o[s-d],b=o[s+0],y=3*(b-m)+fl[1020+o[s-2*d]-o[s+d]],_=Xo[112+(y+4>>3)];o[s-d]=Tn[255+m+Xo[112+(y+3>>3)]],o[s+0]=Tn[255+b-_]}function Si(o,s,d,m){var b=o[s+0],y=o[s+d];return Kn[255+o[s-2*d]-o[s-d]]>m||Kn[255+y-b]>m}function za(o,s,d,m){return 4*Kn[255+o[s-d]-o[s+0]]+Kn[255+o[s-2*d]-o[s+d]]<=m}function aa(o,s,d,m,b){var y=o[s-3*d],_=o[s-2*d],N=o[s-d],k=o[s+0],F=o[s+d],G=o[s+2*d],tt=o[s+3*d];return 4*Kn[255+N-k]+Kn[255+_-F]>m?0:Kn[255+o[s-4*d]-y]<=b&&Kn[255+y-_]<=b&&Kn[255+_-N]<=b&&Kn[255+tt-G]<=b&&Kn[255+G-F]<=b&&Kn[255+F-k]<=b}function Ua(o,s,d,m){var b=2*m+1;for(m=0;16>m;++m)za(o,s+m,d,b)&&Li(o,s+m,d)}function ki(o,s,d,m){var b=2*m+1;for(m=0;16>m;++m)za(o,s+m*d,1,b)&&Li(o,s+m*d,1)}function qo(o,s,d,m){var b;for(b=3;0<b;--b)Ua(o,s+=4*d,d,m)}function Ho(o,s,d,m){var b;for(b=3;0<b;--b)ki(o,s+=4,d,m)}function Cr(o,s,d,m,b,y,_,N){for(y=2*y+1;0<b--;){if(aa(o,s,d,y,_))if(Si(o,s,d,N))Li(o,s,d);else{var k=o,F=s,G=d,tt=k[F-2*G],E=k[F-G],Z=k[F+0],X=k[F+G],ht=k[F+2*G],J=27*(gt=fl[1020+3*(Z-E)+fl[1020+tt-X]])+63>>7,ft=18*gt+63>>7,gt=9*gt+63>>7;k[F-3*G]=Tn[255+k[F-3*G]+gt],k[F-2*G]=Tn[255+tt+ft],k[F-G]=Tn[255+E+J],k[F+0]=Tn[255+Z-J],k[F+G]=Tn[255+X-ft],k[F+2*G]=Tn[255+ht-gt]}s+=m}}function Or(o,s,d,m,b,y,_,N){for(y=2*y+1;0<b--;){if(aa(o,s,d,y,_))if(Si(o,s,d,N))Li(o,s,d);else{var k=o,F=s,G=d,tt=k[F-G],E=k[F+0],Z=k[F+G],X=Xo[112+(4+(ht=3*(E-tt))>>3)],ht=Xo[112+(ht+3>>3)],J=X+1>>1;k[F-2*G]=Tn[255+k[F-2*G]+J],k[F-G]=Tn[255+tt+ht],k[F+0]=Tn[255+E-X],k[F+G]=Tn[255+Z-J]}s+=m}}function Wo(o,s,d,m,b,y){Cr(o,s,d,1,16,m,b,y)}function Go(o,s,d,m,b,y){Cr(o,s,1,d,16,m,b,y)}function Pi(o,s,d,m,b,y){var _;for(_=3;0<_;--_)Or(o,s+=4*d,d,1,16,m,b,y)}function Vo(o,s,d,m,b,y){var _;for(_=3;0<_;--_)Or(o,s+=4,1,d,16,m,b,y)}function c(o,s,d,m,b,y,_,N){Cr(o,s,b,1,8,y,_,N),Cr(d,m,b,1,8,y,_,N)}function v(o,s,d,m,b,y,_,N){Cr(o,s,1,b,8,y,_,N),Cr(d,m,1,b,8,y,_,N)}function O(o,s,d,m,b,y,_,N){Or(o,s+4*b,b,1,8,y,_,N),Or(d,m+4*b,b,1,8,y,_,N)}function z(o,s,d,m,b,y,_,N){Or(o,s+4,1,b,8,y,_,N),Or(d,m+4,1,b,8,y,_,N)}function K(){this.ba=new Se,this.ec=[],this.cc=[],this.Mc=[],this.Dc=this.Nc=this.dc=this.fc=0,this.Oa=new we,this.memory=0,this.Ib="OutputFunc",this.Jb="OutputAlphaFunc",this.Nd="OutputRowFunc"}function dt(){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 yt(){this.nc=this.Ea=this.b=this.hc=0,this.K=[],this.w=0}function Et(){this.ua=0,this.Wa=new re,this.vb=new re,this.md=this.xc=this.wc=0,this.vc=[],this.Wb=0,this.Ya=new it,this.yc=new H}function Tt(){this.xb=this.a=0,this.l=new ea,this.ca=new Se,this.V=[],this.Ba=0,this.Ta=[],this.Ua=0,this.m=new D,this.Pb=0,this.wd=new D,this.Ma=this.$=this.C=this.i=this.c=this.xd=0,this.s=new Et,this.ab=0,this.gc=h(4,yt),this.Oc=0}function Zt(){this.Lc=this.Z=this.$a=this.i=this.c=0,this.l=new ea,this.ic=0,this.ca=[],this.tb=0,this.qd=null,this.rd=0}function Kt(o,s,d,m,b,y,_){for(o=o==null?0:o[s+0],s=0;s<_;++s)b[y+s]=o+d[m+s]&255,o=b[y+s]}function me(o,s,d,m,b,y,_){var N;if(o==null)Kt(null,null,d,m,b,y,_);else for(N=0;N<_;++N)b[y+N]=o[s+N]+d[m+N]&255}function De(o,s,d,m,b,y,_){if(o==null)Kt(null,null,d,m,b,y,_);else{var N,k=o[s+0],F=k,G=k;for(N=0;N<_;++N)F=G+(k=o[s+N])-F,G=d[m+N]+(-256&F?0>F?0:255:F)&255,F=k,b[y+N]=G}}function Xe(o,s,d,m){var b=s.width,y=s.o;if(n(o!=null&&s!=null),0>d||0>=m||d+m>y)return null;if(!o.Cc){if(o.ga==null){var _;if(o.ga=new Zt,(_=o.ga==null)||(_=s.width*s.o,n(o.Gb.length==0),o.Gb=a(_),o.Uc=0,o.Gb==null?_=0:(o.mb=o.Gb,o.nb=o.Uc,o.rc=null,_=1),_=!_),!_){_=o.ga;var N=o.Fa,k=o.P,F=o.qc,G=o.mb,tt=o.nb,E=k+1,Z=F-1,X=_.l;if(n(N!=null&&G!=null&&s!=null),ri[0]=null,ri[1]=Kt,ri[2]=me,ri[3]=De,_.ca=G,_.tb=tt,_.c=s.width,_.i=s.height,n(0<_.c&&0<_.i),1>=F)s=0;else if(_.$a=3&N[k+0],_.Z=N[k+0]>>2&3,_.Lc=N[k+0]>>4&3,k=N[k+0]>>6&3,0>_.$a||1<_.$a||4<=_.Z||1<_.Lc||k)s=0;else if(X.put=Wt,X.ac=ur,X.bc=kr,X.ma=_,X.width=s.width,X.height=s.height,X.Da=s.Da,X.v=s.v,X.va=s.va,X.j=s.j,X.o=s.o,_.$a)t:{n(_.$a==1),s=bi();e:for(;;){if(s==null){s=0;break t}if(n(_!=null),_.mc=s,s.c=_.c,s.i=_.i,s.l=_.l,s.l.ma=_,s.l.width=_.c,s.l.height=_.i,s.a=0,ut(s.m,N,E,Z),!pr(_.c,_.i,1,s,null)||(s.ab==1&&s.gc[0].hc==3&&er(s.s)?(_.ic=1,N=s.c*s.i,s.Ta=null,s.Ua=0,s.V=a(N),s.Ba=0,s.V==null?(s.a=1,s=0):s=1):(_.ic=0,s=wi(s,_.c)),!s))break e;s=1;break t}_.mc=null,s=0}else s=Z>=_.c*_.i;_=!s}if(_)return null;o.ga.Lc!=1?o.Ga=0:m=y-d}n(o.ga!=null),n(d+m<=y);t:{if(s=(N=o.ga).c,y=N.l.o,N.$a==0){if(E=o.rc,Z=o.Vc,X=o.Fa,k=o.P+1+d*s,F=o.mb,G=o.nb+d*s,n(k<=o.P+o.qc),N.Z!=0)for(n(ri[N.Z]!=null),_=0;_<m;++_)ri[N.Z](E,Z,X,k,F,G,s),E=F,Z=G,G+=s,k+=s;else for(_=0;_<m;++_)r(F,G,X,k,s),E=F,Z=G,G+=s,k+=s;o.rc=E,o.Vc=Z}else{if(n(N.mc!=null),s=d+m,n((_=N.mc)!=null),n(s<=_.i),_.C>=s)s=1;else if(N.ic||Zn(),N.ic){N=_.V,E=_.Ba,Z=_.c;var ht=_.i,J=(X=1,k=_.$/Z,F=_.$%Z,G=_.m,tt=_.s,_.$),ft=Z*ht,gt=Z*s,_t=tt.wc,bt=J<gt?hn(tt,F,k):null;n(J<=ft),n(s<=ht),n(er(tt));e:for(;;){for(;!G.h&&J<gt;){if(F&_t||(bt=hn(tt,F,k)),n(bt!=null),nt(G),256>(ht=Me(bt.G[0],bt.H[0],G)))N[E+J]=ht,++J,++F>=Z&&(F=0,++k<=s&&!(k%16)&&nr(_,k));else{if(!(280>ht)){X=0;break e}ht=Hn(ht-256,G);var Rt,It=Me(bt.G[4],bt.H[4],G);if(nt(G),!(J>=(It=Wn(Z,It=Hn(It,G)))&&ft-J>=ht)){X=0;break e}for(Rt=0;Rt<ht;++Rt)N[E+J+Rt]=N[E+J+Rt-It];for(J+=ht,F+=ht;F>=Z;)F-=Z,++k<=s&&!(k%16)&&nr(_,k);J<gt&&F&_t&&(bt=hn(tt,F,k))}n(G.h==V(G))}nr(_,k>s?s:k);break e}!X||G.h&&J<ft?(X=0,_.a=G.h?5:3):_.$=J,s=X}else s=rr(_,_.V,_.Ba,_.c,_.i,s,Ji);if(!s){m=0;break t}}d+m>=y&&(o.Cc=1),m=1}if(!m)return null;if(o.Cc&&((m=o.ga)!=null&&(m.mc=null),o.ga=null,0<o.Ga))return alert("todo:WebPDequantizeLevels"),null}return o.nb+d*b}function Ee(o,s,d,m,b,y){for(;0<b--;){var _,N=o,k=s+(d?1:0),F=o,G=s+(d?0:3);for(_=0;_<m;++_){var tt=F[G+4*_];tt!=255&&(tt*=32897,N[k+4*_+0]=N[k+4*_+0]*tt>>23,N[k+4*_+1]=N[k+4*_+1]*tt>>23,N[k+4*_+2]=N[k+4*_+2]*tt>>23)}s+=y}}function tn(o,s,d,m,b){for(;0<m--;){var y;for(y=0;y<d;++y){var _=o[s+2*y+0],N=15&(F=o[s+2*y+1]),k=4369*N,F=(240&F|F>>4)*k>>16;o[s+2*y+0]=(240&_|_>>4)*k>>16&240|(15&_|_<<4)*k>>16>>4&15,o[s+2*y+1]=240&F|N}s+=b}}function Je(o,s,d,m,b,y,_,N){var k,F,G=255;for(F=0;F<b;++F){for(k=0;k<m;++k){var tt=o[s+k];y[_+4*k]=tt,G&=tt}s+=d,_+=N}return G!=255}function cn(o,s,d,m,b){var y;for(y=0;y<b;++y)d[m+y]=o[s+y]>>8}function Zn(){Ja=Ee,qh=tn,Hh=Je,Wh=cn}function kn(o,s,d){j[o]=function(m,b,y,_,N,k,F,G,tt,E,Z,X,ht,J,ft,gt,_t){var bt,Rt=_t-1>>1,It=N[k+0]|F[G+0]<<16,oe=tt[E+0]|Z[X+0]<<16;n(m!=null);var Ct=3*It+oe+131074>>2;for(s(m[b+0],255&Ct,Ct>>16,ht,J),y!=null&&(Ct=3*oe+It+131074>>2,s(y[_+0],255&Ct,Ct>>16,ft,gt)),bt=1;bt<=Rt;++bt){var ce=N[k+bt]|F[G+bt]<<16,nn=tt[E+bt]|Z[X+bt]<<16,se=It+ce+oe+nn+524296,Ot=se+2*(ce+oe)>>3;Ct=Ot+It>>1,It=(se=se+2*(It+nn)>>3)+ce>>1,s(m[b+2*bt-1],255&Ct,Ct>>16,ht,J+(2*bt-1)*d),s(m[b+2*bt-0],255&It,It>>16,ht,J+(2*bt-0)*d),y!=null&&(Ct=se+oe>>1,It=Ot+nn>>1,s(y[_+2*bt-1],255&Ct,Ct>>16,ft,gt+(2*bt-1)*d),s(y[_+2*bt+0],255&It,It>>16,ft,gt+(2*bt+0)*d)),It=ce,oe=nn}1&_t||(Ct=3*It+oe+131074>>2,s(m[b+_t-1],255&Ct,Ct>>16,ht,J+(_t-1)*d),y!=null&&(Ct=3*oe+It+131074>>2,s(y[_+_t-1],255&Ct,Ct>>16,ft,gt+(_t-1)*d)))}}function Zo(){Xn[Jo]=x1,Xn[Qo]=ec,Xn[Kh]=A1,Xn[ts]=nc,Xn[es]=rc,Xn[ul]=ic,Xn[Xh]=N1,Xn[dl]=ec,Xn[pl]=nc,Xn[ns]=rc,Xn[gl]=ic}function oa(o){return o&~L1?0>o?0:255:o>>ac}function Ii(o,s){return oa((19077*o>>8)+(26149*s>>8)-14234)}function $r(o,s,d){return oa((19077*o>>8)-(6419*s>>8)-(13320*d>>8)+8708)}function Fi(o,s){return oa((19077*o>>8)+(33050*s>>8)-17685)}function Ei(o,s,d,m,b){m[b+0]=Ii(o,d),m[b+1]=$r(o,s,d),m[b+2]=Fi(o,s)}function Ci(o,s,d,m,b){m[b+0]=Fi(o,s),m[b+1]=$r(o,s,d),m[b+2]=Ii(o,d)}function mn(o,s,d,m,b){var y=$r(o,s,d);s=y<<3&224|Fi(o,s)>>3,m[b+0]=248&Ii(o,d)|y>>5,m[b+1]=s}function Oi(o,s,d,m,b){var y=240&Fi(o,s)|15;m[b+0]=240&Ii(o,d)|$r(o,s,d)>>4,m[b+1]=y}function Ti(o,s,d,m,b){m[b+0]=255,Ei(o,s,d,m,b+1)}function qa(o,s,d,m,b){Ci(o,s,d,m,b),m[b+3]=255}function Ha(o,s,d,m,b){Ei(o,s,d,m,b),m[b+3]=255}function Re(o,s){return 0>o?0:o>s?s:o}function Tr(o,s,d){j[o]=function(m,b,y,_,N,k,F,G,tt){for(var E=G+(-2&tt)*d;G!=E;)s(m[b+0],y[_+0],N[k+0],F,G),s(m[b+1],y[_+0],N[k+0],F,G+d),b+=2,++_,++k,G+=2*d;1&tt&&s(m[b+0],y[_+0],N[k+0],F,G)}}function sa(o,s,d){return d==0?o==0?s==0?6:5:s==0?4:0:d}function $o(o,s,d,m,b){switch(o>>>30){case 3:ji(s,d,m,b,0);break;case 2:Yn(s,d,m,b);break;case 1:ye(s,d,m,b)}}function $n(o,s){var d,m,b=s.M,y=s.Nb,_=o.oc,N=o.pc+40,k=o.oc,F=o.pc+584,G=o.oc,tt=o.pc+600;for(d=0;16>d;++d)_[N+32*d-1]=129;for(d=0;8>d;++d)k[F+32*d-1]=129,G[tt+32*d-1]=129;for(0<b?_[N-1-32]=k[F-1-32]=G[tt-1-32]=129:(i(_,N-32-1,127,21),i(k,F-32-1,127,9),i(G,tt-32-1,127,9)),m=0;m<o.za;++m){var E=s.ya[s.aa+m];if(0<m){for(d=-1;16>d;++d)r(_,N+32*d-4,_,N+32*d+12,4);for(d=-1;8>d;++d)r(k,F+32*d-4,k,F+32*d+4,4),r(G,tt+32*d-4,G,tt+32*d+4,4)}var Z=o.Gd,X=o.Hd+m,ht=E.ad,J=E.Hc;if(0<b&&(r(_,N-32,Z[X].y,0,16),r(k,F-32,Z[X].f,0,8),r(G,tt-32,Z[X].ea,0,8)),E.Za){var ft=_,gt=N-32+16;for(0<b&&(m>=o.za-1?i(ft,gt,Z[X].y[15],4):r(ft,gt,Z[X+1].y,0,4)),d=0;4>d;d++)ft[gt+128+d]=ft[gt+256+d]=ft[gt+384+d]=ft[gt+0+d];for(d=0;16>d;++d,J<<=2)ft=_,gt=N+sc[d],ar[E.Ob[d]](ft,gt),$o(J,ht,16*+d,ft,gt)}else if(ft=sa(m,b,E.Ob[0]),ni[ft](_,N),J!=0)for(d=0;16>d;++d,J<<=2)$o(J,ht,16*+d,_,N+sc[d]);for(d=E.Gc,ft=sa(m,b,E.Dd),Rr[ft](k,F),Rr[ft](G,tt),J=ht,ft=k,gt=F,255&(E=0|d)&&(170&E?br(J,256,ft,gt):ke(J,256,ft,gt)),E=G,J=tt,255&(d>>=8)&&(170&d?br(ht,320,E,J):ke(ht,320,E,J)),b<o.Ub-1&&(r(Z[X].y,0,_,N+480,16),r(Z[X].f,0,k,F+224,8),r(Z[X].ea,0,G,tt+224,8)),d=8*y*o.B,Z=o.sa,X=o.ta+16*m+16*y*o.R,ht=o.qa,E=o.ra+8*m+d,J=o.Ha,ft=o.Ia+8*m+d,d=0;16>d;++d)r(Z,X+d*o.R,_,N+32*d,16);for(d=0;8>d;++d)r(ht,E+d*o.B,k,F+32*d,8),r(J,ft+d*o.B,G,tt+32*d,8)}}function Di(o,s,d,m,b,y,_,N,k){var F=[0],G=[0],tt=0,E=k!=null?k.kd:0,Z=k??new dt;if(o==null||12>d)return 7;Z.data=o,Z.w=s,Z.ha=d,s=[s],d=[d],Z.gb=[Z.gb];t:{var X=s,ht=d,J=Z.gb;if(n(o!=null),n(ht!=null),n(J!=null),J[0]=0,12<=ht[0]&&!e(o,X[0],"RIFF")){if(e(o,X[0]+8,"WEBP")){J=3;break t}var ft=st(o,X[0]+4);if(12>ft||4294967286<ft){J=3;break t}if(E&&ft>ht[0]-8){J=7;break t}J[0]=ft,X[0]+=12,ht[0]-=12}J=0}if(J!=0)return J;for(ft=0<Z.gb[0],d=d[0];;){t:{var gt=o;ht=s,J=d;var _t=F,bt=G,Rt=X=[0];if((Ct=tt=[tt])[0]=0,8>J[0])J=7;else{if(!e(gt,ht[0],"VP8X")){if(st(gt,ht[0]+4)!=10){J=3;break t}if(18>J[0]){J=7;break t}var It=st(gt,ht[0]+8),oe=1+Pt(gt,ht[0]+12);if(2147483648<=oe*(gt=1+Pt(gt,ht[0]+15))){J=3;break t}Rt!=null&&(Rt[0]=It),_t!=null&&(_t[0]=oe),bt!=null&&(bt[0]=gt),ht[0]+=18,J[0]-=18,Ct[0]=1}J=0}}if(tt=tt[0],X=X[0],J!=0)return J;if(ht=!!(2&X),!ft&&tt)return 3;if(y!=null&&(y[0]=!!(16&X)),_!=null&&(_[0]=ht),N!=null&&(N[0]=0),_=F[0],X=G[0],tt&&ht&&k==null){J=0;break}if(4>d){J=7;break}if(ft&&tt||!ft&&!tt&&!e(o,s[0],"ALPH")){d=[d],Z.na=[Z.na],Z.P=[Z.P],Z.Sa=[Z.Sa];t:{It=o,J=s,ft=d;var Ct=Z.gb;_t=Z.na,bt=Z.P,Rt=Z.Sa,oe=22,n(It!=null),n(ft!=null),gt=J[0];var ce=ft[0];for(n(_t!=null),n(Rt!=null),_t[0]=null,bt[0]=null,Rt[0]=0;;){if(J[0]=gt,ft[0]=ce,8>ce){J=7;break t}var nn=st(It,gt+4);if(4294967286<nn){J=3;break t}var se=8+nn+1&-2;if(oe+=se,0<Ct&&oe>Ct){J=3;break t}if(!e(It,gt,"VP8 ")||!e(It,gt,"VP8L")){J=0;break t}if(ce[0]<se){J=7;break t}e(It,gt,"ALPH")||(_t[0]=It,bt[0]=gt+8,Rt[0]=nn),gt+=se,ce-=se}}if(d=d[0],Z.na=Z.na[0],Z.P=Z.P[0],Z.Sa=Z.Sa[0],J!=0)break}d=[d],Z.Ja=[Z.Ja],Z.xa=[Z.xa];t:if(Ct=o,J=s,ft=d,_t=Z.gb[0],bt=Z.Ja,Rt=Z.xa,It=J[0],gt=!e(Ct,It,"VP8 "),oe=!e(Ct,It,"VP8L"),n(Ct!=null),n(ft!=null),n(bt!=null),n(Rt!=null),8>ft[0])J=7;else{if(gt||oe){if(Ct=st(Ct,It+4),12<=_t&&Ct>_t-12){J=3;break t}if(E&&Ct>ft[0]-8){J=7;break t}bt[0]=Ct,J[0]+=8,ft[0]-=8,Rt[0]=oe}else Rt[0]=5<=ft[0]&&Ct[It+0]==47&&!(Ct[It+4]>>5),bt[0]=ft[0];J=0}if(d=d[0],Z.Ja=Z.Ja[0],Z.xa=Z.xa[0],s=s[0],J!=0)break;if(4294967286<Z.Ja)return 3;if(N==null||ht||(N[0]=Z.xa?2:1),_=[_],X=[X],Z.xa){if(5>d){J=7;break}N=_,E=X,ht=y,o==null||5>d?o=0:5<=d&&o[s+0]==47&&!(o[s+4]>>5)?(ft=[0],Ct=[0],_t=[0],ut(bt=new D,o,s,d),Pr(bt,ft,Ct,_t)?(N!=null&&(N[0]=ft[0]),E!=null&&(E[0]=Ct[0]),ht!=null&&(ht[0]=_t[0]),o=1):o=0):o=0}else{if(10>d){J=7;break}N=X,o==null||10>d||!jo(o,s+3,d-3)?o=0:(E=o[s+0]|o[s+1]<<8|o[s+2]<<16,ht=16383&(o[s+7]<<8|o[s+6]),o=16383&(o[s+9]<<8|o[s+8]),1&E||3<(E>>1&7)||!(E>>4&1)||E>>5>=Z.Ja||!ht||!o?o=0:(_&&(_[0]=ht),N&&(N[0]=o),o=1))}if(!o||(_=_[0],X=X[0],tt&&(F[0]!=_||G[0]!=X)))return 3;k!=null&&(k[0]=Z,k.offset=s-k.w,n(4294967286>s-k.w),n(k.offset==k.ha-d));break}return J==0||J==7&&tt&&k==null?(y!=null&&(y[0]|=Z.na!=null&&0<Z.na.length),m!=null&&(m[0]=_),b!=null&&(b[0]=X),0):J}function Wa(o,s,d){var m=s.width,b=s.height,y=0,_=0,N=m,k=b;if(s.Da=o!=null&&0<o.Da,s.Da&&(N=o.cd,k=o.bd,y=o.v,_=o.j,11>d||(y&=-2,_&=-2),0>y||0>_||0>=N||0>=k||y+N>m||_+k>b))return 0;if(s.v=y,s.j=_,s.va=y+N,s.o=_+k,s.U=N,s.T=k,s.da=o!=null&&0<o.da,s.da){if(!qt(N,k,d=[o.ib],y=[o.hb]))return 0;s.ib=d[0],s.hb=y[0]}return s.ob=o!=null&&o.ob,s.Kb=o==null||!o.Sd,s.da&&(s.ob=s.ib<3*m/4&&s.hb<3*b/4,s.Kb=0),1}function Ga(o){if(o==null)return 2;if(11>o.S){var s=o.f.RGBA;s.fb+=(o.height-1)*s.A,s.A=-s.A}else s=o.f.kb,o=o.height,s.O+=(o-1)*s.fa,s.fa=-s.fa,s.N+=(o-1>>1)*s.Ab,s.Ab=-s.Ab,s.W+=(o-1>>1)*s.Db,s.Db=-s.Db,s.F!=null&&(s.J+=(o-1)*s.lb,s.lb=-s.lb);return 0}function Yr(o,s,d,m){if(m==null||0>=o||0>=s)return 2;if(d!=null){if(d.Da){var b=d.cd,y=d.bd,_=-2&d.v,N=-2&d.j;if(0>_||0>N||0>=b||0>=y||_+b>o||N+y>s)return 2;o=b,s=y}if(d.da){if(!qt(o,s,b=[d.ib],y=[d.hb]))return 2;o=b[0],s=y[0]}}m.width=o,m.height=s;t:{var k=m.width,F=m.height;if(o=m.S,0>=k||0>=F||!(o>=Jo&&13>o))o=2;else{if(0>=m.Rd&&m.sd==null){_=y=b=s=0;var G=(N=k*lc[o])*F;if(11>o||(y=(F+1)/2*(s=(k+1)/2),o==12&&(_=(b=k)*F)),(F=a(G+2*y+_))==null){o=1;break t}m.sd=F,11>o?((k=m.f.RGBA).eb=F,k.fb=0,k.A=N,k.size=G):((k=m.f.kb).y=F,k.O=0,k.fa=N,k.Fd=G,k.f=F,k.N=0+G,k.Ab=s,k.Cd=y,k.ea=F,k.W=0+G+y,k.Db=s,k.Ed=y,o==12&&(k.F=F,k.J=0+G+2*y),k.Tc=_,k.lb=b)}if(s=1,b=m.S,y=m.width,_=m.height,b>=Jo&&13>b)if(11>b)o=m.f.RGBA,s&=(N=Math.abs(o.A))*(_-1)+y<=o.size,s&=N>=y*lc[b],s&=o.eb!=null;else{o=m.f.kb,N=(y+1)/2,G=(_+1)/2,k=Math.abs(o.fa),F=Math.abs(o.Ab);var tt=Math.abs(o.Db),E=Math.abs(o.lb),Z=E*(_-1)+y;s&=k*(_-1)+y<=o.Fd,s&=F*(G-1)+N<=o.Cd,s=(s&=tt*(G-1)+N<=o.Ed)&k>=y&F>=N&tt>=N,s&=o.y!=null,s&=o.f!=null,s&=o.ea!=null,b==12&&(s&=E>=y,s&=Z<=o.Tc,s&=o.F!=null)}else s=0;o=s?0:2}}return o!=0||d!=null&&d.fd&&(o=Ga(m)),o}var Mi=64,Cn=[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],On=24,Kr=32,Dr=8,Xr=[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];St("Predictor0","PredictorAdd0"),j.Predictor0=function(){return 4278190080},j.Predictor1=function(o){return o},j.Predictor2=function(o,s,d){return s[d+0]},j.Predictor3=function(o,s,d){return s[d+1]},j.Predictor4=function(o,s,d){return s[d-1]},j.Predictor5=function(o,s,d){return Ut(Ut(o,s[d+1]),s[d+0])},j.Predictor6=function(o,s,d){return Ut(o,s[d-1])},j.Predictor7=function(o,s,d){return Ut(o,s[d+0])},j.Predictor8=function(o,s,d){return Ut(s[d-1],s[d+0])},j.Predictor9=function(o,s,d){return Ut(s[d+0],s[d+1])},j.Predictor10=function(o,s,d){return Ut(Ut(o,s[d-1]),Ut(s[d+0],s[d+1]))},j.Predictor11=function(o,s,d){var m=s[d+0];return 0>=Qt(m>>24&255,o>>24&255,(s=s[d-1])>>24&255)+Qt(m>>16&255,o>>16&255,s>>16&255)+Qt(m>>8&255,o>>8&255,s>>8&255)+Qt(255&m,255&o,255&s)?m:o},j.Predictor12=function(o,s,d){var m=s[d+0];return(pe((o>>24&255)+(m>>24&255)-((s=s[d-1])>>24&255))<<24|pe((o>>16&255)+(m>>16&255)-(s>>16&255))<<16|pe((o>>8&255)+(m>>8&255)-(s>>8&255))<<8|pe((255&o)+(255&m)-(255&s)))>>>0},j.Predictor13=function(o,s,d){var m=s[d-1];return(Jt((o=Ut(o,s[d+0]))>>24&255,m>>24&255)<<24|Jt(o>>16&255,m>>16&255)<<16|Jt(o>>8&255,m>>8&255)<<8|Jt(255&o,255&m))>>>0};var Va=j.PredictorAdd0;j.PredictorAdd1=Ae,St("Predictor2","PredictorAdd2"),St("Predictor3","PredictorAdd3"),St("Predictor4","PredictorAdd4"),St("Predictor5","PredictorAdd5"),St("Predictor6","PredictorAdd6"),St("Predictor7","PredictorAdd7"),St("Predictor8","PredictorAdd8"),St("Predictor9","PredictorAdd9"),St("Predictor10","PredictorAdd10"),St("Predictor11","PredictorAdd11"),St("Predictor12","PredictorAdd12"),St("Predictor13","PredictorAdd13");var la=j.PredictorAdd2;zt("ColorIndexInverseTransform","MapARGB","32b",function(o){return o>>8&255},function(o){return o}),zt("VP8LColorIndexInverseTransformAlpha","MapAlpha","8b",function(o){return o},function(o){return o>>8&255});var He,Yo=j.ColorIndexInverseTransform,mr=j.MapARGB,vr=j.VP8LColorIndexInverseTransformAlpha,Za=j.MapAlpha,$a=j.VP8LPredictorsAdd=[];$a.length=16,(j.VP8LPredictors=[]).length=16,(j.VP8LPredictorsAdd_C=[]).length=16,(j.VP8LPredictors_C=[]).length=16;var Ya,Ka,Jr,Qr,ti,Ri,ei,ji,Yn,br,ye,ke,We,en,Mr,Xa,ha,Ko,Mh,Rh,jh,Bh,zh,Uh,Ja,qh,Hh,Wh,Gh=a(511),Vh=a(2041),Zh=a(225),$h=a(767),Yh=0,fl=Vh,Xo=Zh,Tn=$h,Kn=Gh,Jo=0,Qo=1,Kh=2,ts=3,es=4,ul=5,Xh=6,dl=7,pl=8,ns=9,gl=10,l1=[2,3,7],h1=[3,3,11],Jh=[280,256,256,256,40],c1=[0,1,1,1,0],f1=[17,18,0,1,2,3,4,5,16,6,7,8,9,10,11,12,13,14,15],u1=[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],d1=[2954,2956,2958,2962,2970,2986,3018,3082,3212,3468,3980,5004],p1=8,ml=[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],vl=[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],Qa=null,g1=[[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]],m1=[0,1,4,8,5,2,3,6,9,12,13,10,7,11,14,15],Qh=[-0,1,-1,2,-2,3,4,6,-3,5,-4,-5,-6,7,-7,8,-8,-9],v1=[[[[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]]]],b1=[[[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]]],w1=[[[[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]]]],y1=[0,1,2,3,6,4,5,6,6,6,6,6,6,6,6,7,0],ni=[],ar=[],Rr=[],_1=1,tc=2,ri=[],Xn=[];kn("UpsampleRgbLinePair",Ei,3),kn("UpsampleBgrLinePair",Ci,3),kn("UpsampleRgbaLinePair",Ha,4),kn("UpsampleBgraLinePair",qa,4),kn("UpsampleArgbLinePair",Ti,4),kn("UpsampleRgba4444LinePair",Oi,2),kn("UpsampleRgb565LinePair",mn,2);var x1=j.UpsampleRgbLinePair,A1=j.UpsampleBgrLinePair,ec=j.UpsampleRgbaLinePair,nc=j.UpsampleBgraLinePair,rc=j.UpsampleArgbLinePair,ic=j.UpsampleRgba4444LinePair,N1=j.UpsampleRgb565LinePair,rs=16,is=1<<rs-1,to=-227,bl=482,ac=6,L1=(256<<ac)-1,oc=0,S1=a(256),k1=a(256),P1=a(256),I1=a(256),F1=a(bl-to),E1=a(bl-to);Tr("YuvToRgbRow",Ei,3),Tr("YuvToBgrRow",Ci,3),Tr("YuvToRgbaRow",Ha,4),Tr("YuvToBgraRow",qa,4),Tr("YuvToArgbRow",Ti,4),Tr("YuvToRgba4444Row",Oi,2),Tr("YuvToRgb565Row",mn,2);var sc=[0,4,8,12,128,132,136,140,256,260,264,268,384,388,392,396],as=[0,2,8],C1=[8,7,6,4,4,2,2,2,1,1,1,1],O1=1;this.WebPDecodeRGBA=function(o,s,d,m,b){var y=Qo,_=new K,N=new Se;_.ba=N,N.S=y,N.width=[N.width],N.height=[N.height];var k=N.width,F=N.height,G=new $t;if(G==null||o==null)var tt=2;else n(G!=null),tt=Di(o,s,d,G.width,G.height,G.Pd,G.Qd,G.format,null);if(tt!=0?k=0:(k!=null&&(k[0]=G.width[0]),F!=null&&(F[0]=G.height[0]),k=1),k){N.width=N.width[0],N.height=N.height[0],m!=null&&(m[0]=N.width),b!=null&&(b[0]=N.height);t:{if(m=new ea,(b=new dt).data=o,b.w=s,b.ha=d,b.kd=1,s=[0],n(b!=null),((o=Di(b.data,b.w,b.ha,null,null,null,s,null,b))==0||o==7)&&s[0]&&(o=4),(s=o)==0){if(n(_!=null),m.data=b.data,m.w=b.w+b.offset,m.ha=b.ha-b.offset,m.put=Wt,m.ac=ur,m.bc=kr,m.ma=_,b.xa){if((o=bi())==null){_=1;break t}if((function(E,Z){var X=[0],ht=[0],J=[0];e:for(;;){if(E==null)return 0;if(Z==null)return E.a=2,0;if(E.l=Z,E.a=0,ut(E.m,Z.data,Z.w,Z.ha),!Pr(E.m,X,ht,J)){E.a=3;break e}if(E.xb=tc,Z.width=X[0],Z.height=ht[0],!pr(X[0],ht[0],1,E,null))break e;return 1}return n(E.a!=0),0})(o,m)){if(m=(s=Yr(m.width,m.height,_.Oa,_.ba))==0){e:{m=o;n:for(;;){if(m==null){m=0;break e}if(n(m.s.yc!=null),n(m.s.Ya!=null),n(0<m.s.Wb),n((d=m.l)!=null),n((b=d.ma)!=null),m.xb!=0){if(m.ca=b.ba,m.tb=b.tb,n(m.ca!=null),!Wa(b.Oa,d,ts)){m.a=2;break n}if(!wi(m,d.width)||d.da)break n;if((d.da||ee(m.ca.S))&&Zn(),11>m.ca.S||(alert("todo:WebPInitConvertARGBToYUV"),m.ca.f.kb.F!=null&&Zn()),m.Pb&&0<m.s.ua&&m.s.vb.X==null&&!M(m.s.vb,m.s.Wa.Xa)){m.a=1;break n}m.xb=0}if(!rr(m,m.V,m.Ba,m.c,m.i,d.o,Gr))break n;b.Dc=m.Ma,m=1;break e}n(m.a!=0),m=0}m=!m}m&&(s=o.a)}else s=o.a}else{if((o=new Ks)==null){_=1;break t}if(o.Fa=b.na,o.P=b.P,o.qc=b.Sa,Bo(o,m)){if((s=Yr(m.width,m.height,_.Oa,_.ba))==0){if(o.Aa=0,d=_.Oa,n((b=o)!=null),d!=null){if(0<(k=0>(k=d.Md)?0:100<k?255:255*k/100)){for(F=G=0;4>F;++F)12>(tt=b.pb[F]).lc&&(tt.ia=k*C1[0>tt.lc?0:tt.lc]>>3),G|=tt.ia;G&&(alert("todo:VP8InitRandom"),b.ia=1)}b.Ga=d.Id,100<b.Ga?b.Ga=100:0>b.Ga&&(b.Ga=0)}(function(E,Z){if(E==null)return 0;if(Z==null)return Ke(E,2,"NULL VP8Io parameter in VP8Decode().");if(!E.cb&&!Bo(E,Z))return 0;if(n(E.cb),Z.ac==null||Z.ac(Z)){Z.ob&&(E.L=0);var X=as[E.L];if(E.L==2?(E.yb=0,E.zb=0):(E.yb=Z.v-X>>4,E.zb=Z.j-X>>4,0>E.yb&&(E.yb=0),0>E.zb&&(E.zb=0)),E.Va=Z.o+15+X>>4,E.Hb=Z.va+15+X>>4,E.Hb>E.za&&(E.Hb=E.za),E.Va>E.Ub&&(E.Va=E.Ub),0<E.L){var ht=E.ed;for(X=0;4>X;++X){var J;if(E.Qa.Cb){var ft=E.Qa.Lb[X];E.Qa.Fb||(ft+=ht.Tb)}else ft=ht.Tb;for(J=0;1>=J;++J){var gt=E.gd[X][J],_t=ft;if(ht.Pc&&(_t+=ht.vd[0],J&&(_t+=ht.od[0])),0<(_t=0>_t?0:63<_t?63:_t)){var bt=_t;0<ht.wb&&(bt=4<ht.wb?bt>>2:bt>>1)>9-ht.wb&&(bt=9-ht.wb),1>bt&&(bt=1),gt.dd=bt,gt.tc=2*_t+bt,gt.ld=40<=_t?2:15<=_t?1:0}else gt.tc=0;gt.La=J}}}X=0}else Ke(E,6,"Frame setup failed"),X=E.a;if(X=X==0){if(X){E.$c=0,0<E.Aa||(E.Ic=O1);e:{X=E.Ic,ht=4*(bt=E.za);var Rt=32*bt,It=bt+1,oe=0<E.L?bt*(0<E.Aa?2:1):0,Ct=(E.Aa==2?2:1)*bt;if((gt=ht+832+(J=3*(16*X+as[E.L])/2*Rt)+(ft=E.Fa!=null&&0<E.Fa.length?E.Kc.c*E.Kc.i:0))!=gt)X=0;else{if(gt>E.Vb){if(E.Vb=0,E.Ec=a(gt),E.Fc=0,E.Ec==null){X=Ke(E,1,"no memory during frame initialization.");break e}E.Vb=gt}gt=E.Ec,_t=E.Fc,E.Ac=gt,E.Bc=_t,_t+=ht,E.Gd=h(Rt,Mo),E.Hd=0,E.rb=h(It+1,Ea),E.sb=1,E.wa=oe?h(oe,Vn):null,E.Y=0,E.D.Nb=0,E.D.wa=E.wa,E.D.Y=E.Y,0<E.Aa&&(E.D.Y+=bt),n(!0),E.oc=gt,E.pc=_t,_t+=832,E.ya=h(Ct,Ca),E.aa=0,E.D.ya=E.ya,E.D.aa=E.aa,E.Aa==2&&(E.D.aa+=bt),E.R=16*bt,E.B=8*bt,bt=(Rt=as[E.L])*E.R,Rt=Rt/2*E.B,E.sa=gt,E.ta=_t+bt,E.qa=E.sa,E.ra=E.ta+16*X*E.R+Rt,E.Ha=E.qa,E.Ia=E.ra+8*X*E.B+Rt,E.$c=0,_t+=J,E.mb=ft?gt:null,E.nb=ft?_t:null,n(_t+ft<=E.Fc+E.Vb),yi(E),i(E.Ac,E.Bc,0,ht),X=1}}if(X){if(Z.ka=0,Z.y=E.sa,Z.O=E.ta,Z.f=E.qa,Z.N=E.ra,Z.ea=E.Ha,Z.Vd=E.Ia,Z.fa=E.R,Z.Rc=E.B,Z.F=null,Z.J=0,!Yh){for(X=-255;255>=X;++X)Gh[255+X]=0>X?-X:X;for(X=-1020;1020>=X;++X)Vh[1020+X]=-128>X?-128:127<X?127:X;for(X=-112;112>=X;++X)Zh[112+X]=-16>X?-16:15<X?15:X;for(X=-255;510>=X;++X)$h[255+X]=0>X?0:255<X?255:X;Yh=1}ei=Uo,ji=Js,br=Qs,ye=gr,ke=zo,Yn=Xs,We=Wo,en=Go,Mr=c,Xa=v,ha=Pi,Ko=Vo,Mh=O,Rh=z,jh=Ua,Bh=ki,zh=qo,Uh=Ho,ar[0]=ol,ar[1]=Ta,ar[2]=il,ar[3]=al,ar[4]=sl,ar[5]=Er,ar[6]=Fr,ar[7]=ll,ar[8]=na,ar[9]=hl,ni[0]=Zr,ni[1]=el,ni[2]=nl,ni[3]=Da,ni[4]=rl,ni[5]=Ai,ni[6]=Ma,Rr[0]=ia,Rr[1]=tl,Rr[2]=Ra,Rr[3]=Ni,Rr[4]=ja,Rr[5]=cl,Rr[6]=Ba,X=1}else X=0}X&&(X=(function(ce,nn){for(ce.M=0;ce.M<ce.Va;++ce.M){var se,Ot=ce.Jc[ce.M&ce.Xb],Lt=ce.m,Ge=ce;for(se=0;se<Ge.za;++se){var ne=Lt,ue=Ge,Oe=ue.Ac,fn=ue.Bc+4*se,xn=ue.zc,je=ue.ya[ue.aa+se];if(ue.Qa.Bb?je.$b=mt(ne,ue.Pa.jb[0])?2+mt(ne,ue.Pa.jb[2]):mt(ne,ue.Pa.jb[1]):je.$b=0,ue.kc&&(je.Ad=mt(ne,ue.Bd)),je.Za=!mt(ne,145)+0,je.Za){var vn=je.Ob,An=0;for(ue=0;4>ue;++ue){var rn,de=xn[0+ue];for(rn=0;4>rn;++rn){de=b1[Oe[fn+rn]][de];for(var _e=Qh[mt(ne,de[0])];0<_e;)_e=Qh[2*_e+mt(ne,de[_e])];de=-_e,Oe[fn+rn]=de}r(vn,An,Oe,fn,4),An+=4,xn[0+ue]=de}}else de=mt(ne,156)?mt(ne,128)?1:3:mt(ne,163)?2:0,je.Ob[0]=de,i(Oe,fn,de,4),i(xn,0,de,4);je.Dd=mt(ne,142)?mt(ne,114)?mt(ne,183)?1:3:2:0}if(Ge.m.Ka)return Ke(ce,7,"Premature end-of-partition0 encountered.");for(;ce.ja<ce.za;++ce.ja){if(Ge=Ot,ne=(Lt=ce).rb[Lt.sb-1],Oe=Lt.rb[Lt.sb+Lt.ja],se=Lt.ya[Lt.aa+Lt.ja],fn=Lt.kc?se.Ad:0)ne.la=Oe.la=0,se.Za||(ne.Na=Oe.Na=0),se.Hc=0,se.Gc=0,se.ia=0;else{var Be,xe;if(ne=Oe,Oe=Ge,fn=Lt.Pa.Xc,xn=Lt.ya[Lt.aa+Lt.ja],je=Lt.pb[xn.$b],ue=xn.ad,vn=0,An=Lt.rb[Lt.sb-1],de=rn=0,i(ue,vn,0,384),xn.Za)var un=0,or=fn[3];else{_e=a(16);var Ve=ne.Na+An.Na;if(Ve=Qa(Oe,fn[1],Ve,je.Eb,0,_e,0),ne.Na=An.Na=(0<Ve)+0,1<Ve)ei(_e,0,ue,vn);else{var Pn=_e[0]+3>>3;for(_e=0;256>_e;_e+=16)ue[vn+_e]=Pn}un=1,or=fn[0]}var Pe=15&ne.la,an=15&An.la;for(_e=0;4>_e;++_e){var Dn=1&an;for(Pn=xe=0;4>Pn;++Pn)Pe=Pe>>1|(Dn=(Ve=Qa(Oe,or,Ve=Dn+(1&Pe),je.Sc,un,ue,vn))>un)<<7,xe=xe<<2|(3<Ve?3:1<Ve?2:ue[vn+0]!=0),vn+=16;Pe>>=4,an=an>>1|Dn<<7,rn=(rn<<8|xe)>>>0}for(or=Pe,un=an>>4,Be=0;4>Be;Be+=2){for(xe=0,Pe=ne.la>>4+Be,an=An.la>>4+Be,_e=0;2>_e;++_e){for(Dn=1&an,Pn=0;2>Pn;++Pn)Ve=Dn+(1&Pe),Pe=Pe>>1|(Dn=0<(Ve=Qa(Oe,fn[2],Ve,je.Qc,0,ue,vn)))<<3,xe=xe<<2|(3<Ve?3:1<Ve?2:ue[vn+0]!=0),vn+=16;Pe>>=2,an=an>>1|Dn<<5}de|=xe<<4*Be,or|=Pe<<4<<Be,un|=(240&an)<<Be}ne.la=or,An.la=un,xn.Hc=rn,xn.Gc=de,xn.ia=43690&de?0:je.ia,fn=!(rn|de)}if(0<Lt.L&&(Lt.wa[Lt.Y+Lt.ja]=Lt.gd[se.$b][se.Za],Lt.wa[Lt.Y+Lt.ja].La|=!fn),Ge.Ka)return Ke(ce,7,"Premature end-of-file encountered.")}if(yi(ce),Lt=nn,Ge=1,se=(Ot=ce).D,ne=0<Ot.L&&Ot.M>=Ot.zb&&Ot.M<=Ot.Va,Ot.Aa==0)e:{if(se.M=Ot.M,se.uc=ne,$n(Ot,se),Ge=1,se=(xe=Ot.D).Nb,ne=(de=as[Ot.L])*Ot.R,Oe=de/2*Ot.B,_e=16*se*Ot.R,Pn=8*se*Ot.B,fn=Ot.sa,xn=Ot.ta-ne+_e,je=Ot.qa,ue=Ot.ra-Oe+Pn,vn=Ot.Ha,An=Ot.Ia-Oe+Pn,an=(Pe=xe.M)==0,rn=Pe>=Ot.Va-1,Ot.Aa==2&&$n(Ot,xe),xe.uc)for(Dn=(Ve=Ot).D.M,n(Ve.D.uc),xe=Ve.yb;xe<Ve.Hb;++xe){un=xe,or=Dn;var Nn=(Mn=(dn=Ve).D).Nb;Be=dn.R;var Mn=Mn.wa[Mn.Y+un],Rn=dn.sa,In=dn.ta+16*Nn*Be+16*un,jn=Mn.dd,Ce=Mn.tc;if(Ce!=0)if(n(3<=Ce),dn.L==1)0<un&&Bh(Rn,In,Be,Ce+4),Mn.La&&Uh(Rn,In,Be,Ce),0<or&&jh(Rn,In,Be,Ce+4),Mn.La&&zh(Rn,In,Be,Ce);else{var Bn=dn.B,sr=dn.qa,Bi=dn.ra+8*Nn*Bn+8*un,jr=dn.Ha,dn=dn.Ia+8*Nn*Bn+8*un;Nn=Mn.ld,0<un&&(en(Rn,In,Be,Ce+4,jn,Nn),Xa(sr,Bi,jr,dn,Bn,Ce+4,jn,Nn)),Mn.La&&(Ko(Rn,In,Be,Ce,jn,Nn),Rh(sr,Bi,jr,dn,Bn,Ce,jn,Nn)),0<or&&(We(Rn,In,Be,Ce+4,jn,Nn),Mr(sr,Bi,jr,dn,Bn,Ce+4,jn,Nn)),Mn.La&&(ha(Rn,In,Be,Ce,jn,Nn),Mh(sr,Bi,jr,dn,Bn,Ce,jn,Nn))}}if(Ot.ia&&alert("todo:DitherRow"),Lt.put!=null){if(xe=16*Pe,Pe=16*(Pe+1),an?(Lt.y=Ot.sa,Lt.O=Ot.ta+_e,Lt.f=Ot.qa,Lt.N=Ot.ra+Pn,Lt.ea=Ot.Ha,Lt.W=Ot.Ia+Pn):(xe-=de,Lt.y=fn,Lt.O=xn,Lt.f=je,Lt.N=ue,Lt.ea=vn,Lt.W=An),rn||(Pe-=de),Pe>Lt.o&&(Pe=Lt.o),Lt.F=null,Lt.J=null,Ot.Fa!=null&&0<Ot.Fa.length&&xe<Pe&&(Lt.J=Xe(Ot,Lt,xe,Pe-xe),Lt.F=Ot.mb,Lt.F==null&&Lt.F.length==0)){Ge=Ke(Ot,3,"Could not decode alpha data.");break e}xe<Lt.j&&(de=Lt.j-xe,xe=Lt.j,n(!(1&de)),Lt.O+=Ot.R*de,Lt.N+=Ot.B*(de>>1),Lt.W+=Ot.B*(de>>1),Lt.F!=null&&(Lt.J+=Lt.width*de)),xe<Pe&&(Lt.O+=Lt.v,Lt.N+=Lt.v>>1,Lt.W+=Lt.v>>1,Lt.F!=null&&(Lt.J+=Lt.v),Lt.ka=xe-Lt.j,Lt.U=Lt.va-Lt.v,Lt.T=Pe-xe,Ge=Lt.put(Lt))}se+1!=Ot.Ic||rn||(r(Ot.sa,Ot.ta-ne,fn,xn+16*Ot.R,ne),r(Ot.qa,Ot.ra-Oe,je,ue+8*Ot.B,Oe),r(Ot.Ha,Ot.Ia-Oe,vn,An+8*Ot.B,Oe))}if(!Ge)return Ke(ce,6,"Output aborted.")}return 1})(E,Z)),Z.bc!=null&&Z.bc(Z),X&=1}return X?(E.cb=0,X):0})(o,m)||(s=o.a)}}else s=o.a}s==0&&_.Oa!=null&&_.Oa.fd&&(s=Ga(_.ba))}_=s}y=_!=0?null:11>y?N.f.RGBA.eb:N.f.kb.y}else y=null;return y};var lc=[3,4,3,4,4,2,2,4,4,4,2,1,1]};function u(j,Q){for(var S="",C=0;C<4;C++)S+=String.fromCharCode(j[Q++]);return S}function g(j,Q){return j[Q+0]|j[Q+1]<<8}function w(j,Q){return(j[Q+0]|j[Q+1]<<8|j[Q+2]<<16)>>>0}function A(j,Q){return(j[Q+0]|j[Q+1]<<8|j[Q+2]<<16|j[Q+3]<<24)>>>0}new f;var p=[0],I=[0],P=[],T=new f,L=t,W=(function(j,Q){var S={},C=0,H=!1,U=0,it=0;if(S.frames=[],!(function(x,D){for(var R=0;R<4;R++)if(x[D+R]!="RIFF".charCodeAt(R))return!0;return!1})(j,Q)){for(A(j,Q+=4),Q+=8;Q<j.length;){var lt=u(j,Q),ct=A(j,Q+=4);Q+=4;var et=ct+(1&ct);switch(lt){case"VP8 ":case"VP8L":S.frames[C]===void 0&&(S.frames[C]={}),(wt=S.frames[C]).src_off=H?it:Q-8,wt.src_size=U+ct+8,C++,H&&(H=!1,U=0,it=0);break;case"VP8X":(wt=S.header={}).feature_flags=j[Q];var ut=Q+4;wt.canvas_width=1+w(j,ut),ut+=3,wt.canvas_height=1+w(j,ut),ut+=3;break;case"ALPH":H=!0,U=et+8,it=Q-8;break;case"ANIM":(wt=S.header).bgcolor=A(j,Q),ut=Q+4,wt.loop_count=g(j,ut),ut+=2;break;case"ANMF":var Nt,wt;(wt=S.frames[C]={}).offset_x=2*w(j,Q),Q+=3,wt.offset_y=2*w(j,Q),Q+=3,wt.width=1+w(j,Q),Q+=3,wt.height=1+w(j,Q),Q+=3,wt.duration=w(j,Q),Q+=3,Nt=j[Q++],wt.dispose=1&Nt,wt.blend=Nt>>1&1}lt!="ANMF"&&(Q+=et)}return S}})(L,0);W.response=L,W.rgbaoutput=!0,W.dataurl=!1;var q=W.header?W.header:null,B=W.frames?W.frames:null;if(q){q.loop_counter=q.loop_count,p=[q.canvas_height],I=[q.canvas_width];for(var rt=0;rt<B.length&&B[rt].blend!=0;rt++);}var vt=B[0],pt=T.WebPDecodeRGBA(L,vt.src_off,vt.src_size,I,p);vt.rgba=pt,vt.imgwidth=I[0],vt.imgheight=p[0];for(var Y=0;Y<I[0]*p[0]*4;Y++)P[Y]=pt[Y];return this.width=I,this.height=p,this.data=P,this}(function(t){var n,e,r,i,a,h,l,f,u,g=function(x){return x=x||{},this.isStrokeTransparent=x.isStrokeTransparent||!1,this.strokeOpacity=x.strokeOpacity||1,this.strokeStyle=x.strokeStyle||"#000000",this.fillStyle=x.fillStyle||"#000000",this.isFillTransparent=x.isFillTransparent||!1,this.fillOpacity=x.fillOpacity||1,this.font=x.font||"10px sans-serif",this.textBaseline=x.textBaseline||"alphabetic",this.textAlign=x.textAlign||"left",this.lineWidth=x.lineWidth||1,this.lineJoin=x.lineJoin||"miter",this.lineCap=x.lineCap||"butt",this.path=x.path||[],this.transform=x.transform!==void 0?x.transform.clone():new f,this.globalCompositeOperation=x.globalCompositeOperation||"normal",this.globalAlpha=x.globalAlpha||1,this.clip_path=x.clip_path||[],this.currentPoint=x.currentPoint||new h,this.miterLimit=x.miterLimit||10,this.lastPoint=x.lastPoint||new h,this.lineDashOffset=x.lineDashOffset||0,this.lineDash=x.lineDash||[],this.margin=x.margin||[0,0,0,0],this.prevPageLastElemOffset=x.prevPageLastElemOffset||0,this.ignoreClearRect=typeof x.ignoreClearRect!="boolean"||x.ignoreClearRect,this};t.events.push(["initialized",function(){this.context2d=new w(this),n=this.internal.f2,e=this.internal.getCoordinateString,r=this.internal.getVerticalCoordinateString,i=this.internal.getHorizontalCoordinate,a=this.internal.getVerticalCoordinate,h=this.internal.Point,l=this.internal.Rectangle,f=this.internal.Matrix,u=new g}]);var w=function(x){Object.defineProperty(this,"canvas",{get:function(){return{parentNode:!1,style:!1}}});var D=x;Object.defineProperty(this,"pdf",{get:function(){return D}});var R=!1;Object.defineProperty(this,"pageWrapXEnabled",{get:function(){return R},set:function(st){R=!!st}});var V=!1;Object.defineProperty(this,"pageWrapYEnabled",{get:function(){return V},set:function(st){V=!!st}});var $=0;Object.defineProperty(this,"posX",{get:function(){return $},set:function(st){isNaN(st)||($=st)}});var nt=0;Object.defineProperty(this,"posY",{get:function(){return nt},set:function(st){isNaN(st)||(nt=st)}}),Object.defineProperty(this,"margin",{get:function(){return u.margin},set:function(st){var M;typeof st=="number"?M=[st,st,st,st]:((M=new Array(4))[0]=st[0],M[1]=st.length>=2?st[1]:M[0],M[2]=st.length>=3?st[2]:M[0],M[3]=st.length>=4?st[3]:M[1]),u.margin=M}});var ot=!1;Object.defineProperty(this,"autoPaging",{get:function(){return ot},set:function(st){ot=st}});var at=0;Object.defineProperty(this,"lastBreak",{get:function(){return at},set:function(st){at=st}});var mt=[];Object.defineProperty(this,"pageBreaks",{get:function(){return mt},set:function(st){mt=st}}),Object.defineProperty(this,"ctx",{get:function(){return u},set:function(st){st instanceof g&&(u=st)}}),Object.defineProperty(this,"path",{get:function(){return u.path},set:function(st){u.path=st}});var xt=[];Object.defineProperty(this,"ctxStack",{get:function(){return xt},set:function(st){xt=st}}),Object.defineProperty(this,"fillStyle",{get:function(){return this.ctx.fillStyle},set:function(st){var M;M=A(st),this.ctx.fillStyle=M.style,this.ctx.isFillTransparent=M.a===0,this.ctx.fillOpacity=M.a,this.pdf.setFillColor(M.r,M.g,M.b,{a:M.a}),this.pdf.setTextColor(M.r,M.g,M.b,{a:M.a})}}),Object.defineProperty(this,"strokeStyle",{get:function(){return this.ctx.strokeStyle},set:function(st){var M=A(st);this.ctx.strokeStyle=M.style,this.ctx.isStrokeTransparent=M.a===0,this.ctx.strokeOpacity=M.a,M.a===0?this.pdf.setDrawColor(255,255,255):(M.a,this.pdf.setDrawColor(M.r,M.g,M.b))}}),Object.defineProperty(this,"lineCap",{get:function(){return this.ctx.lineCap},set:function(st){["butt","round","square"].indexOf(st)!==-1&&(this.ctx.lineCap=st,this.pdf.setLineCap(st))}}),Object.defineProperty(this,"lineWidth",{get:function(){return this.ctx.lineWidth},set:function(st){isNaN(st)||(this.ctx.lineWidth=st,this.pdf.setLineWidth(st))}}),Object.defineProperty(this,"lineJoin",{get:function(){return this.ctx.lineJoin},set:function(st){["bevel","round","miter"].indexOf(st)!==-1&&(this.ctx.lineJoin=st,this.pdf.setLineJoin(st))}}),Object.defineProperty(this,"miterLimit",{get:function(){return this.ctx.miterLimit},set:function(st){isNaN(st)||(this.ctx.miterLimit=st,this.pdf.setMiterLimit(st))}}),Object.defineProperty(this,"textBaseline",{get:function(){return this.ctx.textBaseline},set:function(st){this.ctx.textBaseline=st}}),Object.defineProperty(this,"textAlign",{get:function(){return this.ctx.textAlign},set:function(st){["right","end","center","left","start"].indexOf(st)!==-1&&(this.ctx.textAlign=st)}});var kt=null,Pt=null;Object.defineProperty(this,"fontFaces",{get:function(){return Pt},set:function(st){kt=null,Pt=st}}),Object.defineProperty(this,"font",{get:function(){return this.ctx.font},set:function(st){var M;if(this.ctx.font=st,(M=/^\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(st))!==null){var le=M[1];M[2];var re=M[3],qt=M[4];M[5];var At=M[6],jt=/^([.\d]+)((?:%|in|[cem]m|ex|p[ctx]))$/i.exec(qt)[2];qt=Math.floor(jt==="px"?parseFloat(qt)*this.pdf.internal.scaleFactor:jt==="em"?parseFloat(qt)*this.pdf.getFontSize():parseFloat(qt)*this.pdf.internal.scaleFactor),this.pdf.setFontSize(qt);var St=(function(Gt){var zt,Fe,ge=[],Mt=Gt.trim();if(Mt==="")return Nh;if(Mt in Su)return[Su[Mt]];for(;Mt!=="";){switch(Fe=null,zt=(Mt=Pu(Mt)).charAt(0)){case'"':case"'":Fe=bd(Mt.substring(1),zt);break;default:Fe=wd(Mt)}if(Fe===null||(ge.push(Fe[0]),(Mt=Pu(Fe[1]))!==""&&Mt.charAt(0)!==","))return Nh;Mt=Mt.replace(/^,/,"")}return ge})(At);if(this.fontFaces){var ie=(function(Gt,zt){if(kt===null){var Fe=(function(ge){var Mt=[];return Object.keys(ge).forEach(function(te){ge[te].forEach(function(Le){var Ht=null;switch(Le){case"bold":Ht={family:te,weight:"bold"};break;case"italic":Ht={family:te,style:"italic"};break;case"bolditalic":Ht={family:te,weight:"bold",style:"italic"};break;case"":case"normal":Ht={family:te}}Ht!==null&&(Ht.ref={name:te,style:Le},Mt.push(Ht))})}),Mt})(Gt.getFontList());kt=(function(ge){for(var Mt={},te=0;te<ge.length;++te){var Le=Ah(ge[te]),Ht=Le.family,he=Le.stretch,ee=Le.style,Ue=Le.weight;Mt[Ht]=Mt[Ht]||{},Mt[Ht][he]=Mt[Ht][he]||{},Mt[Ht][he][ee]=Mt[Ht][he][ee]||{},Mt[Ht][he][ee][Ue]=Le}return Mt})(Fe.concat(zt))}return kt})(this.pdf,this.fontFaces),Ut=St.map(function(Gt){return{family:Gt,stretch:"normal",weight:re,style:le}}),pe=(function(Gt,zt,Fe){for(var ge=(Fe=Fe||{}).defaultFontFamily||"times",Mt=Object.assign({},vd,Fe.genericFontFamilies||{}),te=null,Le=null,Ht=0;Ht<zt.length;++Ht)if(Mt[(te=Ah(zt[Ht])).family]&&(te.family=Mt[te.family]),Gt.hasOwnProperty(te.family)){Le=Gt[te.family];break}if(!(Le=Le||Gt[ge]))throw new Error("Could not find a font-family for the rule '"+ku(te)+"' and default family '"+ge+"'.");if(Le=(function(he,ee){if(ee[he])return ee[he];var Ue=Fh[he],Qe=Ue<=Fh.normal?-1:1,Se=Lu(ee,Xu,Ue,Qe);if(!Se)throw new Error("Could not find a matching font-stretch value for "+he);return Se})(te.stretch,Le),Le=(function(he,ee){if(ee[he])return ee[he];for(var Ue=Ku[he],Qe=0;Qe<Ue.length;++Qe)if(ee[Ue[Qe]])return ee[Ue[Qe]];throw new Error("Could not find a matching font-style for "+he)})(te.style,Le),!(Le=(function(he,ee){if(ee[he])return ee[he];if(he===400&&ee[500])return ee[500];if(he===500&&ee[400])return ee[400];var Ue=md[he],Qe=Lu(ee,Ju,Ue,he<400?-1:1);if(!Qe)throw new Error("Could not find a matching font-weight for value "+he);return Qe})(te.weight,Le)))throw new Error("Failed to resolve a font for the rule '"+ku(te)+"'.");return Le})(ie,Ut);this.pdf.setFont(pe.ref.name,pe.ref.style)}else{var Jt="";(re==="bold"||parseInt(re,10)>=700||le==="bold")&&(Jt="bold"),le==="italic"&&(Jt+="italic"),Jt.length===0&&(Jt="normal");for(var Qt="",Ae={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"},ae=0;ae<St.length;ae++){if(this.pdf.internal.getFont(St[ae],Jt,{noFallback:!0,disableWarning:!0})!==void 0){Qt=St[ae];break}if(Jt==="bolditalic"&&this.pdf.internal.getFont(St[ae],"bold",{noFallback:!0,disableWarning:!0})!==void 0)Qt=St[ae],Jt="bold";else if(this.pdf.internal.getFont(St[ae],"normal",{noFallback:!0,disableWarning:!0})!==void 0){Qt=St[ae],Jt="normal";break}}if(Qt===""){for(var Bt=0;Bt<St.length;Bt++)if(Ae[St[Bt]]){Qt=Ae[St[Bt]];break}}Qt=Qt===""?"Times":Qt,this.pdf.setFont(Qt,Jt)}}}}),Object.defineProperty(this,"globalCompositeOperation",{get:function(){return this.ctx.globalCompositeOperation},set:function(st){this.ctx.globalCompositeOperation=st}}),Object.defineProperty(this,"globalAlpha",{get:function(){return this.ctx.globalAlpha},set:function(st){this.ctx.globalAlpha=st}}),Object.defineProperty(this,"lineDashOffset",{get:function(){return this.ctx.lineDashOffset},set:function(st){this.ctx.lineDashOffset=st,wt.call(this)}}),Object.defineProperty(this,"lineDash",{get:function(){return this.ctx.lineDash},set:function(st){this.ctx.lineDash=st,wt.call(this)}}),Object.defineProperty(this,"ignoreClearRect",{get:function(){return this.ctx.ignoreClearRect},set:function(st){this.ctx.ignoreClearRect=!!st}})};w.prototype.setLineDash=function(x){this.lineDash=x},w.prototype.getLineDash=function(){return this.lineDash.length%2?this.lineDash.concat(this.lineDash):this.lineDash.slice()},w.prototype.fill=function(){B.call(this,"fill",!1)},w.prototype.stroke=function(){B.call(this,"stroke",!1)},w.prototype.beginPath=function(){this.path=[{type:"begin"}]},w.prototype.moveTo=function(x,D){if(isNaN(x)||isNaN(D))throw Ie.error("jsPDF.context2d.moveTo: Invalid arguments",arguments),new Error("Invalid arguments passed to jsPDF.context2d.moveTo");var R=this.ctx.transform.applyToPoint(new h(x,D));this.path.push({type:"mt",x:R.x,y:R.y}),this.ctx.lastPoint=new h(x,D)},w.prototype.closePath=function(){var x=new h(0,0),D=0;for(D=this.path.length-1;D!==-1;D--)if(this.path[D].type==="begin"&&Ne(this.path[D+1])==="object"&&typeof this.path[D+1].x=="number"){x=new h(this.path[D+1].x,this.path[D+1].y);break}this.path.push({type:"close"}),this.ctx.lastPoint=new h(x.x,x.y)},w.prototype.lineTo=function(x,D){if(isNaN(x)||isNaN(D))throw Ie.error("jsPDF.context2d.lineTo: Invalid arguments",arguments),new Error("Invalid arguments passed to jsPDF.context2d.lineTo");var R=this.ctx.transform.applyToPoint(new h(x,D));this.path.push({type:"lt",x:R.x,y:R.y}),this.ctx.lastPoint=new h(R.x,R.y)},w.prototype.clip=function(){this.ctx.clip_path=JSON.parse(JSON.stringify(this.path)),B.call(this,null,!0)},w.prototype.quadraticCurveTo=function(x,D,R,V){if(isNaN(R)||isNaN(V)||isNaN(x)||isNaN(D))throw Ie.error("jsPDF.context2d.quadraticCurveTo: Invalid arguments",arguments),new Error("Invalid arguments passed to jsPDF.context2d.quadraticCurveTo");var $=this.ctx.transform.applyToPoint(new h(R,V)),nt=this.ctx.transform.applyToPoint(new h(x,D));this.path.push({type:"qct",x1:nt.x,y1:nt.y,x:$.x,y:$.y}),this.ctx.lastPoint=new h($.x,$.y)},w.prototype.bezierCurveTo=function(x,D,R,V,$,nt){if(isNaN($)||isNaN(nt)||isNaN(x)||isNaN(D)||isNaN(R)||isNaN(V))throw Ie.error("jsPDF.context2d.bezierCurveTo: Invalid arguments",arguments),new Error("Invalid arguments passed to jsPDF.context2d.bezierCurveTo");var ot=this.ctx.transform.applyToPoint(new h($,nt)),at=this.ctx.transform.applyToPoint(new h(x,D)),mt=this.ctx.transform.applyToPoint(new h(R,V));this.path.push({type:"bct",x1:at.x,y1:at.y,x2:mt.x,y2:mt.y,x:ot.x,y:ot.y}),this.ctx.lastPoint=new h(ot.x,ot.y)},w.prototype.arc=function(x,D,R,V,$,nt){if(isNaN(x)||isNaN(D)||isNaN(R)||isNaN(V)||isNaN($))throw Ie.error("jsPDF.context2d.arc: Invalid arguments",arguments),new Error("Invalid arguments passed to jsPDF.context2d.arc");if(nt=!!nt,!this.ctx.transform.isIdentity){var ot=this.ctx.transform.applyToPoint(new h(x,D));x=ot.x,D=ot.y;var at=this.ctx.transform.applyToPoint(new h(0,R)),mt=this.ctx.transform.applyToPoint(new h(0,0));R=Math.sqrt(Math.pow(at.x-mt.x,2)+Math.pow(at.y-mt.y,2))}Math.abs($-V)>=2*Math.PI&&(V=0,$=2*Math.PI),this.path.push({type:"arc",x,y:D,radius:R,startAngle:V,endAngle:$,counterclockwise:nt})},w.prototype.arcTo=function(x,D,R,V,$){throw new Error("arcTo not implemented.")},w.prototype.rect=function(x,D,R,V){if(isNaN(x)||isNaN(D)||isNaN(R)||isNaN(V))throw Ie.error("jsPDF.context2d.rect: Invalid arguments",arguments),new Error("Invalid arguments passed to jsPDF.context2d.rect");this.moveTo(x,D),this.lineTo(x+R,D),this.lineTo(x+R,D+V),this.lineTo(x,D+V),this.lineTo(x,D),this.lineTo(x+R,D),this.lineTo(x,D)},w.prototype.fillRect=function(x,D,R,V){if(isNaN(x)||isNaN(D)||isNaN(R)||isNaN(V))throw Ie.error("jsPDF.context2d.fillRect: Invalid arguments",arguments),new Error("Invalid arguments passed to jsPDF.context2d.fillRect");if(!p.call(this)){var $={};this.lineCap!=="butt"&&($.lineCap=this.lineCap,this.lineCap="butt"),this.lineJoin!=="miter"&&($.lineJoin=this.lineJoin,this.lineJoin="miter"),this.beginPath(),this.rect(x,D,R,V),this.fill(),$.hasOwnProperty("lineCap")&&(this.lineCap=$.lineCap),$.hasOwnProperty("lineJoin")&&(this.lineJoin=$.lineJoin)}},w.prototype.strokeRect=function(x,D,R,V){if(isNaN(x)||isNaN(D)||isNaN(R)||isNaN(V))throw Ie.error("jsPDF.context2d.strokeRect: Invalid arguments",arguments),new Error("Invalid arguments passed to jsPDF.context2d.strokeRect");I.call(this)||(this.beginPath(),this.rect(x,D,R,V),this.stroke())},w.prototype.clearRect=function(x,D,R,V){if(isNaN(x)||isNaN(D)||isNaN(R)||isNaN(V))throw Ie.error("jsPDF.context2d.clearRect: Invalid arguments",arguments),new Error("Invalid arguments passed to jsPDF.context2d.clearRect");this.ignoreClearRect||(this.fillStyle="#ffffff",this.fillRect(x,D,R,V))},w.prototype.save=function(x){x=typeof x!="boolean"||x;for(var D=this.pdf.internal.getCurrentPageInfo().pageNumber,R=0;R<this.pdf.internal.getNumberOfPages();R++)this.pdf.setPage(R+1),this.pdf.internal.out("q");if(this.pdf.setPage(D),x){this.ctx.fontSize=this.pdf.internal.getFontSize();var V=new g(this.ctx);this.ctxStack.push(this.ctx),this.ctx=V}},w.prototype.restore=function(x){x=typeof x!="boolean"||x;for(var D=this.pdf.internal.getCurrentPageInfo().pageNumber,R=0;R<this.pdf.internal.getNumberOfPages();R++)this.pdf.setPage(R+1),this.pdf.internal.out("Q");this.pdf.setPage(D),x&&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)},w.prototype.toDataURL=function(){throw new Error("toDataUrl not implemented.")};var A=function(x){var D,R,V,$;if(x.isCanvasGradient===!0&&(x=x.getColor()),!x)return{r:0,g:0,b:0,a:0,style:x};if(/transparent|rgba\s*\(\s*(\d+)\s*,\s*(\d+)\s*,\s*(\d+)\s*,\s*0+\s*\)/.test(x))D=0,R=0,V=0,$=0;else{var nt=/rgb\s*\(\s*(\d+)\s*,\s*(\d+)\s*,\s*(\d+)\s*\)/.exec(x);if(nt!==null)D=parseInt(nt[1]),R=parseInt(nt[2]),V=parseInt(nt[3]),$=1;else if((nt=/rgba\s*\(\s*(\d+)\s*,\s*(\d+)\s*,\s*(\d+)\s*,\s*([\d.]+)\s*\)/.exec(x))!==null)D=parseInt(nt[1]),R=parseInt(nt[2]),V=parseInt(nt[3]),$=parseFloat(nt[4]);else{if($=1,typeof x=="string"&&x.charAt(0)!=="#"){var ot=new Hu(x);x=ot.ok?ot.toHex():"#000000"}x.length===4?(D=x.substring(1,2),D+=D,R=x.substring(2,3),R+=R,V=x.substring(3,4),V+=V):(D=x.substring(1,3),R=x.substring(3,5),V=x.substring(5,7)),D=parseInt(D,16),R=parseInt(R,16),V=parseInt(V,16)}}return{r:D,g:R,b:V,a:$,style:x}},p=function(){return this.ctx.isFillTransparent||this.globalAlpha==0},I=function(){return!!(this.ctx.isStrokeTransparent||this.globalAlpha==0)};w.prototype.fillText=function(x,D,R,V){if(isNaN(D)||isNaN(R)||typeof x!="string")throw Ie.error("jsPDF.context2d.fillText: Invalid arguments",arguments),new Error("Invalid arguments passed to jsPDF.context2d.fillText");if(V=isNaN(V)?void 0:V,!p.call(this)){var $=et(this.ctx.transform.rotation),nt=this.ctx.transform.scaleX;C.call(this,{text:x,x:D,y:R,scale:nt,angle:$,align:this.textAlign,maxWidth:V})}},w.prototype.strokeText=function(x,D,R,V){if(isNaN(D)||isNaN(R)||typeof x!="string")throw Ie.error("jsPDF.context2d.strokeText: Invalid arguments",arguments),new Error("Invalid arguments passed to jsPDF.context2d.strokeText");if(!I.call(this)){V=isNaN(V)?void 0:V;var $=et(this.ctx.transform.rotation),nt=this.ctx.transform.scaleX;C.call(this,{text:x,x:D,y:R,scale:nt,renderingMode:"stroke",angle:$,align:this.textAlign,maxWidth:V})}},w.prototype.measureText=function(x){if(typeof x!="string")throw Ie.error("jsPDF.context2d.measureText: Invalid arguments",arguments),new Error("Invalid arguments passed to jsPDF.context2d.measureText");var D=this.pdf,R=this.pdf.internal.scaleFactor,V=D.internal.getFontSize(),$=D.getStringUnitWidth(x)*V/D.internal.scaleFactor;return new function(nt){var ot=(nt=nt||{}).width||0;return Object.defineProperty(this,"width",{get:function(){return ot}}),this}({width:$*=Math.round(96*R/72*1e4)/1e4})},w.prototype.scale=function(x,D){if(isNaN(x)||isNaN(D))throw Ie.error("jsPDF.context2d.scale: Invalid arguments",arguments),new Error("Invalid arguments passed to jsPDF.context2d.scale");var R=new f(x,0,0,D,0,0);this.ctx.transform=this.ctx.transform.multiply(R)},w.prototype.rotate=function(x){if(isNaN(x))throw Ie.error("jsPDF.context2d.rotate: Invalid arguments",arguments),new Error("Invalid arguments passed to jsPDF.context2d.rotate");var D=new f(Math.cos(x),Math.sin(x),-Math.sin(x),Math.cos(x),0,0);this.ctx.transform=this.ctx.transform.multiply(D)},w.prototype.translate=function(x,D){if(isNaN(x)||isNaN(D))throw Ie.error("jsPDF.context2d.translate: Invalid arguments",arguments),new Error("Invalid arguments passed to jsPDF.context2d.translate");var R=new f(1,0,0,1,x,D);this.ctx.transform=this.ctx.transform.multiply(R)},w.prototype.transform=function(x,D,R,V,$,nt){if(isNaN(x)||isNaN(D)||isNaN(R)||isNaN(V)||isNaN($)||isNaN(nt))throw Ie.error("jsPDF.context2d.transform: Invalid arguments",arguments),new Error("Invalid arguments passed to jsPDF.context2d.transform");var ot=new f(x,D,R,V,$,nt);this.ctx.transform=this.ctx.transform.multiply(ot)},w.prototype.setTransform=function(x,D,R,V,$,nt){x=isNaN(x)?1:x,D=isNaN(D)?0:D,R=isNaN(R)?0:R,V=isNaN(V)?1:V,$=isNaN($)?0:$,nt=isNaN(nt)?0:nt,this.ctx.transform=new f(x,D,R,V,$,nt)};var P=function(){return this.margin[0]>0||this.margin[1]>0||this.margin[2]>0||this.margin[3]>0};w.prototype.drawImage=function(x,D,R,V,$,nt,ot,at,mt){var xt=this.pdf.getImageProperties(x),kt=1,Pt=1,st=1,M=1;V!==void 0&&at!==void 0&&(st=at/V,M=mt/$,kt=xt.width/V*at/V,Pt=xt.height/$*mt/$),nt===void 0&&(nt=D,ot=R,D=0,R=0),V!==void 0&&at===void 0&&(at=V,mt=$),V===void 0&&at===void 0&&(at=xt.width,mt=xt.height);for(var le,re=this.ctx.transform.decompose(),qt=et(re.rotate.shx),At=new f,jt=(At=(At=(At=At.multiply(re.translate)).multiply(re.skew)).multiply(re.scale)).applyToRectangle(new l(nt-D*st,ot-R*M,V*kt,$*Pt)),St=T.call(this,jt),ie=[],Ut=0;Ut<St.length;Ut+=1)ie.indexOf(St[Ut])===-1&&ie.push(St[Ut]);if(q(ie),this.autoPaging)for(var pe=ie[0],Jt=ie[ie.length-1],Qt=pe;Qt<Jt+1;Qt++){this.pdf.setPage(Qt);var Ae=this.pdf.internal.pageSize.width-this.margin[3]-this.margin[1],ae=Qt===1?this.posY+this.margin[0]:this.margin[0],Bt=this.pdf.internal.pageSize.height-this.posY-this.margin[0]-this.margin[2],Gt=this.pdf.internal.pageSize.height-this.margin[0]-this.margin[2],zt=Qt===1?0:Bt+(Qt-2)*Gt;if(this.ctx.clip_path.length!==0){var Fe=this.path;le=JSON.parse(JSON.stringify(this.ctx.clip_path)),this.path=W(le,this.posX+this.margin[3],-zt+ae+this.ctx.prevPageLastElemOffset),rt.call(this,"fill",!0),this.path=Fe}var ge=JSON.parse(JSON.stringify(jt));ge=W([ge],this.posX+this.margin[3],-zt+ae+this.ctx.prevPageLastElemOffset)[0];var Mt=(Qt>pe||Qt<Jt)&&P.call(this);Mt&&(this.pdf.saveGraphicsState(),this.pdf.rect(this.margin[3],this.margin[0],Ae,Gt,null).clip().discardPath()),this.pdf.addImage(x,"JPEG",ge.x,ge.y,ge.w,ge.h,null,null,qt),Mt&&this.pdf.restoreGraphicsState()}else this.pdf.addImage(x,"JPEG",jt.x,jt.y,jt.w,jt.h,null,null,qt)};var T=function(x,D,R){var V=[];D=D||this.pdf.internal.pageSize.width,R=R||this.pdf.internal.pageSize.height-this.margin[0]-this.margin[2];var $=this.posY+this.ctx.prevPageLastElemOffset;switch(x.type){default:case"mt":case"lt":V.push(Math.floor((x.y+$)/R)+1);break;case"arc":V.push(Math.floor((x.y+$-x.radius)/R)+1),V.push(Math.floor((x.y+$+x.radius)/R)+1);break;case"qct":var nt=ut(this.ctx.lastPoint.x,this.ctx.lastPoint.y,x.x1,x.y1,x.x,x.y);V.push(Math.floor((nt.y+$)/R)+1),V.push(Math.floor((nt.y+nt.h+$)/R)+1);break;case"bct":var ot=Nt(this.ctx.lastPoint.x,this.ctx.lastPoint.y,x.x1,x.y1,x.x2,x.y2,x.x,x.y);V.push(Math.floor((ot.y+$)/R)+1),V.push(Math.floor((ot.y+ot.h+$)/R)+1);break;case"rect":V.push(Math.floor((x.y+$)/R)+1),V.push(Math.floor((x.y+x.h+$)/R)+1)}for(var at=0;at<V.length;at+=1)for(;this.pdf.internal.getNumberOfPages()<V[at];)L.call(this);return V},L=function(){var x=this.fillStyle,D=this.strokeStyle,R=this.font,V=this.lineCap,$=this.lineWidth,nt=this.lineJoin;this.pdf.addPage(),this.fillStyle=x,this.strokeStyle=D,this.font=R,this.lineCap=V,this.lineWidth=$,this.lineJoin=nt},W=function(x,D,R){for(var V=0;V<x.length;V++)switch(x[V].type){case"bct":x[V].x2+=D,x[V].y2+=R;case"qct":x[V].x1+=D,x[V].y1+=R;default:x[V].x+=D,x[V].y+=R}return x},q=function(x){return x.sort(function(D,R){return D-R})},B=function(x,D){for(var R,V,$=this.fillStyle,nt=this.strokeStyle,ot=this.lineCap,at=this.lineWidth,mt=Math.abs(at*this.ctx.transform.scaleX),xt=this.lineJoin,kt=JSON.parse(JSON.stringify(this.path)),Pt=JSON.parse(JSON.stringify(this.path)),st=[],M=0;M<Pt.length;M++)if(Pt[M].x!==void 0)for(var le=T.call(this,Pt[M]),re=0;re<le.length;re+=1)st.indexOf(le[re])===-1&&st.push(le[re]);for(var qt=0;qt<st.length;qt++)for(;this.pdf.internal.getNumberOfPages()<st[qt];)L.call(this);if(q(st),this.autoPaging)for(var At=st[0],jt=st[st.length-1],St=At;St<jt+1;St++){this.pdf.setPage(St),this.fillStyle=$,this.strokeStyle=nt,this.lineCap=ot,this.lineWidth=mt,this.lineJoin=xt;var ie=this.pdf.internal.pageSize.width-this.margin[3]-this.margin[1],Ut=St===1?this.posY+this.margin[0]:this.margin[0],pe=this.pdf.internal.pageSize.height-this.posY-this.margin[0]-this.margin[2],Jt=this.pdf.internal.pageSize.height-this.margin[0]-this.margin[2],Qt=St===1?0:pe+(St-2)*Jt;if(this.ctx.clip_path.length!==0){var Ae=this.path;R=JSON.parse(JSON.stringify(this.ctx.clip_path)),this.path=W(R,this.posX+this.margin[3],-Qt+Ut+this.ctx.prevPageLastElemOffset),rt.call(this,x,!0),this.path=Ae}if(V=JSON.parse(JSON.stringify(kt)),this.path=W(V,this.posX+this.margin[3],-Qt+Ut+this.ctx.prevPageLastElemOffset),D===!1||St===0){var ae=(St>At||St<jt)&&P.call(this);ae&&(this.pdf.saveGraphicsState(),this.pdf.rect(this.margin[3],this.margin[0],ie,Jt,null).clip().discardPath()),rt.call(this,x,D),ae&&this.pdf.restoreGraphicsState()}this.lineWidth=at}else this.lineWidth=mt,rt.call(this,x,D),this.lineWidth=at;this.path=kt},rt=function(x,D){if((x!=="stroke"||D||!I.call(this))&&(x==="stroke"||D||!p.call(this))){for(var R,V,$=[],nt=this.path,ot=0;ot<nt.length;ot++){var at=nt[ot];switch(at.type){case"begin":$.push({begin:!0});break;case"close":$.push({close:!0});break;case"mt":$.push({start:at,deltas:[],abs:[]});break;case"lt":var mt=$.length;if(nt[ot-1]&&!isNaN(nt[ot-1].x)&&(R=[at.x-nt[ot-1].x,at.y-nt[ot-1].y],mt>0)){for(;mt>=0;mt--)if($[mt-1].close!==!0&&$[mt-1].begin!==!0){$[mt-1].deltas.push(R),$[mt-1].abs.push(at);break}}break;case"bct":R=[at.x1-nt[ot-1].x,at.y1-nt[ot-1].y,at.x2-nt[ot-1].x,at.y2-nt[ot-1].y,at.x-nt[ot-1].x,at.y-nt[ot-1].y],$[$.length-1].deltas.push(R);break;case"qct":var xt=nt[ot-1].x+2/3*(at.x1-nt[ot-1].x),kt=nt[ot-1].y+2/3*(at.y1-nt[ot-1].y),Pt=at.x+2/3*(at.x1-at.x),st=at.y+2/3*(at.y1-at.y),M=at.x,le=at.y;R=[xt-nt[ot-1].x,kt-nt[ot-1].y,Pt-nt[ot-1].x,st-nt[ot-1].y,M-nt[ot-1].x,le-nt[ot-1].y],$[$.length-1].deltas.push(R);break;case"arc":$.push({deltas:[],abs:[],arc:!0}),Array.isArray($[$.length-1].abs)&&$[$.length-1].abs.push(at)}}V=D?null:x==="stroke"?"stroke":"fill";for(var re=!1,qt=0;qt<$.length;qt++)if($[qt].arc)for(var At=$[qt].abs,jt=0;jt<At.length;jt++){var St=At[jt];St.type==="arc"?Y.call(this,St.x,St.y,St.radius,St.startAngle,St.endAngle,St.counterclockwise,void 0,D,!re):H.call(this,St.x,St.y),re=!0}else if($[qt].close===!0)this.pdf.internal.out("h"),re=!1;else if($[qt].begin!==!0){var ie=$[qt].start.x,Ut=$[qt].start.y;U.call(this,$[qt].deltas,ie,Ut),re=!0}V&&j.call(this,V),D&&Q.call(this)}},vt=function(x){var D=this.pdf.internal.getFontSize()/this.pdf.internal.scaleFactor,R=D*(this.pdf.internal.getLineHeightFactor()-1);switch(this.ctx.textBaseline){case"bottom":return x-R;case"top":return x+D-R;case"hanging":return x+D-2*R;case"middle":return x+D/2-R;default:return x}},pt=function(x){return x+this.pdf.internal.getFontSize()/this.pdf.internal.scaleFactor*(this.pdf.internal.getLineHeightFactor()-1)};w.prototype.createLinearGradient=function(){var x=function(){};return x.colorStops=[],x.addColorStop=function(D,R){this.colorStops.push([D,R])},x.getColor=function(){return this.colorStops.length===0?"#000000":this.colorStops[0][1]},x.isCanvasGradient=!0,x},w.prototype.createPattern=function(){return this.createLinearGradient()},w.prototype.createRadialGradient=function(){return this.createLinearGradient()};var Y=function(x,D,R,V,$,nt,ot,at,mt){for(var xt=lt.call(this,R,V,$,nt),kt=0;kt<xt.length;kt++){var Pt=xt[kt];kt===0&&(mt?S.call(this,Pt.x1+x,Pt.y1+D):H.call(this,Pt.x1+x,Pt.y1+D)),it.call(this,x,D,Pt.x2,Pt.y2,Pt.x3,Pt.y3,Pt.x4,Pt.y4)}at?Q.call(this):j.call(this,ot)},j=function(x){switch(x){case"stroke":this.pdf.internal.out("S");break;case"fill":this.pdf.internal.out("f")}},Q=function(){this.pdf.clip(),this.pdf.discardPath()},S=function(x,D){this.pdf.internal.out(e(x)+" "+r(D)+" m")},C=function(x){var D;switch(x.align){case"right":case"end":D="right";break;case"center":D="center";break;default:D="left"}var R=this.pdf.getTextDimensions(x.text),V=vt.call(this,x.y),$=pt.call(this,V)-R.h,nt=this.ctx.transform.applyToPoint(new h(x.x,V)),ot=this.ctx.transform.decompose(),at=new f;at=(at=(at=at.multiply(ot.translate)).multiply(ot.skew)).multiply(ot.scale);for(var mt,xt,kt,Pt=this.ctx.transform.applyToRectangle(new l(x.x,V,R.w,R.h)),st=at.applyToRectangle(new l(x.x,$,R.w,R.h)),M=T.call(this,st),le=[],re=0;re<M.length;re+=1)le.indexOf(M[re])===-1&&le.push(M[re]);if(q(le),this.autoPaging)for(var qt=le[0],At=le[le.length-1],jt=qt;jt<At+1;jt++){this.pdf.setPage(jt);var St=jt===1?this.posY+this.margin[0]:this.margin[0],ie=this.pdf.internal.pageSize.height-this.posY-this.margin[0]-this.margin[2],Ut=this.pdf.internal.pageSize.height-this.margin[2],pe=Ut-this.margin[0],Jt=this.pdf.internal.pageSize.width-this.margin[1],Qt=Jt-this.margin[3],Ae=jt===1?0:ie+(jt-2)*pe;if(this.ctx.clip_path.length!==0){var ae=this.path;mt=JSON.parse(JSON.stringify(this.ctx.clip_path)),this.path=W(mt,this.posX+this.margin[3],-1*Ae+St),rt.call(this,"fill",!0),this.path=ae}var Bt=W([JSON.parse(JSON.stringify(st))],this.posX+this.margin[3],-Ae+St+this.ctx.prevPageLastElemOffset)[0];x.scale>=.01&&(xt=this.pdf.internal.getFontSize(),this.pdf.setFontSize(xt*x.scale),kt=this.lineWidth,this.lineWidth=kt*x.scale);var Gt=this.autoPaging!=="text";if(Gt||Bt.y+Bt.h<=Ut){if(Gt||Bt.y>=St&&Bt.x<=Jt){var zt=Gt?x.text:this.pdf.splitTextToSize(x.text,x.maxWidth||Jt-Bt.x)[0],Fe=W([JSON.parse(JSON.stringify(Pt))],this.posX+this.margin[3],-Ae+St+this.ctx.prevPageLastElemOffset)[0],ge=Gt&&(jt>qt||jt<At)&&P.call(this);ge&&(this.pdf.saveGraphicsState(),this.pdf.rect(this.margin[3],this.margin[0],Qt,pe,null).clip().discardPath()),this.pdf.text(zt,Fe.x,Fe.y,{angle:x.angle,align:D,renderingMode:x.renderingMode}),ge&&this.pdf.restoreGraphicsState()}}else Bt.y<Ut&&(this.ctx.prevPageLastElemOffset+=Ut-Bt.y);x.scale>=.01&&(this.pdf.setFontSize(xt),this.lineWidth=kt)}else x.scale>=.01&&(xt=this.pdf.internal.getFontSize(),this.pdf.setFontSize(xt*x.scale),kt=this.lineWidth,this.lineWidth=kt*x.scale),this.pdf.text(x.text,nt.x+this.posX,nt.y+this.posY,{angle:x.angle,align:D,renderingMode:x.renderingMode,maxWidth:x.maxWidth}),x.scale>=.01&&(this.pdf.setFontSize(xt),this.lineWidth=kt)},H=function(x,D,R,V){R=R||0,V=V||0,this.pdf.internal.out(e(x+R)+" "+r(D+V)+" l")},U=function(x,D,R){return this.pdf.lines(x,D,R,null,null)},it=function(x,D,R,V,$,nt,ot,at){this.pdf.internal.out([n(i(R+x)),n(a(V+D)),n(i($+x)),n(a(nt+D)),n(i(ot+x)),n(a(at+D)),"c"].join(" "))},lt=function(x,D,R,V){for(var $=2*Math.PI,nt=Math.PI/2;D>R;)D-=$;var ot=Math.abs(R-D);ot<$&&V&&(ot=$-ot);for(var at=[],mt=V?-1:1,xt=D;ot>1e-5;){var kt=xt+mt*Math.min(ot,nt);at.push(ct.call(this,x,xt,kt)),ot-=Math.abs(kt-xt),xt=kt}return at},ct=function(x,D,R){var V=(R-D)/2,$=x*Math.cos(V),nt=x*Math.sin(V),ot=$,at=-nt,mt=ot*ot+at*at,xt=mt+ot*$+at*nt,kt=4/3*(Math.sqrt(2*mt*xt)-xt)/(ot*nt-at*$),Pt=ot-kt*at,st=at+kt*ot,M=Pt,le=-st,re=V+D,qt=Math.cos(re),At=Math.sin(re);return{x1:x*Math.cos(D),y1:x*Math.sin(D),x2:Pt*qt-st*At,y2:Pt*At+st*qt,x3:M*qt-le*At,y3:M*At+le*qt,x4:x*Math.cos(R),y4:x*Math.sin(R)}},et=function(x){return 180*x/Math.PI},ut=function(x,D,R,V,$,nt){var ot=x+.5*(R-x),at=D+.5*(V-D),mt=$+.5*(R-$),xt=nt+.5*(V-nt),kt=Math.min(x,$,ot,mt),Pt=Math.max(x,$,ot,mt),st=Math.min(D,nt,at,xt),M=Math.max(D,nt,at,xt);return new l(kt,st,Pt-kt,M-st)},Nt=function(x,D,R,V,$,nt,ot,at){var mt,xt,kt,Pt,st,M,le,re,qt,At,jt,St,ie,Ut,pe=R-x,Jt=V-D,Qt=$-R,Ae=nt-V,ae=ot-$,Bt=at-nt;for(xt=0;xt<41;xt++)qt=(le=(kt=x+(mt=xt/40)*pe)+mt*((st=R+mt*Qt)-kt))+mt*(st+mt*($+mt*ae-st)-le),At=(re=(Pt=D+mt*Jt)+mt*((M=V+mt*Ae)-Pt))+mt*(M+mt*(nt+mt*Bt-M)-re),xt==0?(jt=qt,St=At,ie=qt,Ut=At):(jt=Math.min(jt,qt),St=Math.min(St,At),ie=Math.max(ie,qt),Ut=Math.max(Ut,At));return new l(Math.round(jt),Math.round(St),Math.round(ie-jt),Math.round(Ut-St))},wt=function(){if(this.prevLineDash||this.ctx.lineDash.length||this.ctx.lineDashOffset){var x,D,R=(x=this.ctx.lineDash,D=this.ctx.lineDashOffset,JSON.stringify({lineDash:x,lineDashOffset:D}));this.prevLineDash!==R&&(this.pdf.setLineDash(this.ctx.lineDash,this.ctx.lineDashOffset),this.prevLineDash=R)}}})(Dt.API),(function(t){var n=function(h){var l,f,u,g,w,A,p,I,P,T;for(/[^\x00-\xFF]/.test(h),f=[],u=0,g=(h+=l="\0\0\0\0".slice(h.length%4||4)).length;g>u;u+=4)(w=(h.charCodeAt(u)<<24)+(h.charCodeAt(u+1)<<16)+(h.charCodeAt(u+2)<<8)+h.charCodeAt(u+3))!==0?(A=(w=((w=((w=((w=(w-(T=w%85))/85)-(P=w%85))/85)-(I=w%85))/85)-(p=w%85))/85)%85,f.push(A+33,p+33,I+33,P+33,T+33)):f.push(122);return(function(L,W){for(var q=W;q>0;q--)L.pop()})(f,l.length),String.fromCharCode.apply(String,f)+"~>"},e=function(h){var l,f,u,g,w,A=String,p="length",I=255,P="charCodeAt",T="slice",L="replace";for(h[T](-2),h=h[T](0,-2)[L](/\s/g,"")[L]("z","!!!!!"),u=[],g=0,w=(h+=l="uuuuu"[T](h[p]%5||5))[p];w>g;g+=5)f=52200625*(h[P](g)-33)+614125*(h[P](g+1)-33)+7225*(h[P](g+2)-33)+85*(h[P](g+3)-33)+(h[P](g+4)-33),u.push(I&f>>24,I&f>>16,I&f>>8,I&f);return(function(W,q){for(var B=q;B>0;B--)W.pop()})(u,l[p]),A.fromCharCode.apply(A,u)},r=function(h){return h.split("").map(function(l){return("0"+l.charCodeAt().toString(16)).slice(-2)}).join("")+">"},i=function(h){var l=new RegExp(/^([0-9A-Fa-f]{2})+$/);if((h=h.replace(/\s/g,"")).indexOf(">")!==-1&&(h=h.substr(0,h.indexOf(">"))),h.length%2&&(h+="0"),l.test(h)===!1)return"";for(var f="",u=0;u<h.length;u+=2)f+=String.fromCharCode("0x"+(h[u]+h[u+1]));return f},a=function(h){for(var l=new Uint8Array(h.length),f=h.length;f--;)l[f]=h.charCodeAt(f);return(l=ps(l)).reduce(function(u,g){return u+String.fromCharCode(g)},"")};t.processDataByFilters=function(h,l){var f=0,u=h||"",g=[];for(typeof(l=l||[])=="string"&&(l=[l]),f=0;f<l.length;f+=1)switch(l[f]){case"ASCII85Decode":case"/ASCII85Decode":u=e(u),g.push("/ASCII85Encode");break;case"ASCII85Encode":case"/ASCII85Encode":u=n(u),g.push("/ASCII85Decode");break;case"ASCIIHexDecode":case"/ASCIIHexDecode":u=i(u),g.push("/ASCIIHexEncode");break;case"ASCIIHexEncode":case"/ASCIIHexEncode":u=r(u),g.push("/ASCIIHexDecode");break;case"FlateEncode":case"/FlateEncode":u=a(u),g.push("/FlateDecode");break;default:throw new Error('The filter: "'+l[f]+'" is not implemented')}return{data:u,reverseChain:g.reverse().join(" ")}}})(Dt.API),(function(t){t.loadFile=function(n,e,r){return(function(i,a,h){a=a!==!1,h=typeof h=="function"?h:function(){};var l=void 0;try{l=(function(f,u,g){var w=new XMLHttpRequest,A=0,p=function(I){var P=I.length,T=[],L=String.fromCharCode;for(A=0;A<P;A+=1)T.push(L(255&I.charCodeAt(A)));return T.join("")};if(w.open("GET",f,!u),w.overrideMimeType("text/plain; charset=x-user-defined"),u===!1&&(w.onload=function(){w.status===200?g(p(this.responseText)):g(void 0)}),w.send(null),u&&w.status===200)return p(w.responseText)})(i,a,h)}catch{}return l})(n,e,r)},t.loadImageFile=t.loadFile})(Dt.API),(function(t){function n(){return(Vt.html2canvas?Promise.resolve(Vt.html2canvas):import("./WZEVKWM7.js")).catch(function(l){return Promise.reject(new Error("Could not load html2canvas: "+l))}).then(function(l){return l.default?l.default:l})}function e(){return(Vt.DOMPurify?Promise.resolve(Vt.DOMPurify):import("./XSZKL3RH.js")).catch(function(l){return Promise.reject(new Error("Could not load dompurify: "+l))}).then(function(l){return l.default?l.default:l})}var r=function(l){var f=Ne(l);return f==="undefined"?"undefined":f==="string"||l instanceof String?"string":f==="number"||l instanceof Number?"number":f==="function"||l instanceof Function?"function":l&&l.constructor===Array?"array":l&&l.nodeType===1?"element":f==="object"?"object":"unknown"},i=function(l,f){var u=document.createElement(l);for(var g in f.className&&(u.className=f.className),f.innerHTML&&f.dompurify&&(u.innerHTML=f.dompurify.sanitize(f.innerHTML)),f.style)u.style[g]=f.style[g];return u},a=function l(f,u){for(var g=f.nodeType===3?document.createTextNode(f.nodeValue):f.cloneNode(!1),w=f.firstChild;w;w=w.nextSibling)u!==!0&&w.nodeType===1&&w.nodeName==="SCRIPT"||g.appendChild(l(w,u));return f.nodeType===1&&(f.nodeName==="CANVAS"?(g.width=f.width,g.height=f.height,g.getContext("2d").drawImage(f,0,0)):f.nodeName!=="TEXTAREA"&&f.nodeName!=="SELECT"||(g.value=f.value),g.addEventListener("load",function(){g.scrollTop=f.scrollTop,g.scrollLeft=f.scrollLeft},!0)),g},h=function l(f){var u=Object.assign(l.convert(Promise.resolve()),JSON.parse(JSON.stringify(l.template))),g=l.convert(Promise.resolve(),u);return(g=g.setProgress(1,l,1,[l])).set(f)};(h.prototype=Object.create(Promise.prototype)).constructor=h,h.convert=function(l,f){return l.__proto__=f||h.prototype,l},h.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"}},h.prototype.from=function(l,f){return this.then(function(){switch(f=f||(function(u){switch(r(u)){case"string":return"string";case"element":return u.nodeName.toLowerCase()==="canvas"?"canvas":"element";default:return"unknown"}})(l),f){case"string":return this.then(e).then(function(u){return this.set({src:i("div",{innerHTML:l,dompurify:u})})});case"element":return this.set({src:l});case"canvas":return this.set({canvas:l});case"img":return this.set({img:l});default:return this.error("Unknown source type.")}})},h.prototype.to=function(l){switch(l){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.")}},h.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 l={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},f=a(this.prop.src,this.opt.html2canvas.javascriptEnabled);f.tagName==="BODY"&&(l.height=Math.max(document.body.scrollHeight,document.body.offsetHeight,document.documentElement.clientHeight,document.documentElement.scrollHeight,document.documentElement.offsetHeight)+"px"),this.prop.overlay=i("div",{className:"html2pdf__overlay",style:{position:"fixed",overflow:"hidden",zIndex:1e3,left:"-100000px",right:0,bottom:0,top:0}}),this.prop.container=i("div",{className:"html2pdf__container",style:l}),this.prop.container.appendChild(f),this.prop.container.firstChild.appendChild(i("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"})},h.prototype.toCanvas=function(){var l=[function(){return document.body.contains(this.prop.container)||this.toContainer()}];return this.thenList(l).then(n).then(function(f){var u=Object.assign({},this.opt.html2canvas);return delete u.onrendered,f(this.prop.container,u)}).then(function(f){(this.opt.html2canvas.onrendered||function(){})(f),this.prop.canvas=f,document.body.removeChild(this.prop.overlay)})},h.prototype.toContext2d=function(){var l=[function(){return document.body.contains(this.prop.container)||this.toContainer()}];return this.thenList(l).then(n).then(function(f){var u=this.opt.jsPDF,g=this.opt.fontFaces,w=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,A=Object.assign({async:!0,allowTaint:!0,scale:w,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 A.onrendered,u.context2d.autoPaging=this.opt.autoPaging===void 0||this.opt.autoPaging,u.context2d.posX=this.opt.x,u.context2d.posY=this.opt.y,u.context2d.margin=this.opt.margin,u.context2d.fontFaces=g,g)for(var p=0;p<g.length;++p){var I=g[p],P=I.src.find(function(T){return T.format==="truetype"});P&&u.addFont(P.url,I.ref.name,I.ref.style)}return A.windowHeight=A.windowHeight||0,A.windowHeight=A.windowHeight==0?Math.max(this.prop.container.clientHeight,this.prop.container.scrollHeight,this.prop.container.offsetHeight):A.windowHeight,u.context2d.save(!0),f(this.prop.container,A)}).then(function(f){this.opt.jsPDF.context2d.restore(!0),(this.opt.html2canvas.onrendered||function(){})(f),this.prop.canvas=f,document.body.removeChild(this.prop.overlay)})},h.prototype.toImg=function(){return this.thenList([function(){return this.prop.canvas||this.toCanvas()}]).then(function(){var l=this.prop.canvas.toDataURL("image/"+this.opt.image.type,this.opt.image.quality);this.prop.img=document.createElement("img"),this.prop.img.src=l})},h.prototype.toPdf=function(){return this.thenList([function(){return this.toContext2d()}]).then(function(){this.prop.pdf=this.prop.pdf||this.opt.jsPDF})},h.prototype.output=function(l,f,u){return(u=u||"pdf").toLowerCase()==="img"||u.toLowerCase()==="image"?this.outputImg(l,f):this.outputPdf(l,f)},h.prototype.outputPdf=function(l,f){return this.thenList([function(){return this.prop.pdf||this.toPdf()}]).then(function(){return this.prop.pdf.output(l,f)})},h.prototype.outputImg=function(l){return this.thenList([function(){return this.prop.img||this.toImg()}]).then(function(){switch(l){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 "'+l+'" is not supported.'}})},h.prototype.save=function(l){return this.thenList([function(){return this.prop.pdf||this.toPdf()}]).set(l?{filename:l}:null).then(function(){this.prop.pdf.save(this.opt.filename)})},h.prototype.doCallback=function(){return this.thenList([function(){return this.prop.pdf||this.toPdf()}]).then(function(){this.prop.callback(this.prop.pdf)})},h.prototype.set=function(l){if(r(l)!=="object")return this;var f=Object.keys(l||{}).map(function(u){if(u in h.template.prop)return function(){this.prop[u]=l[u]};switch(u){case"margin":return this.setMargin.bind(this,l.margin);case"jsPDF":return function(){return this.opt.jsPDF=l.jsPDF,this.setPageSize()};case"pageSize":return this.setPageSize.bind(this,l.pageSize);default:return function(){this.opt[u]=l[u]}}},this);return this.then(function(){return this.thenList(f)})},h.prototype.get=function(l,f){return this.then(function(){var u=l in h.template.prop?this.prop[l]:this.opt[l];return f?f(u):u})},h.prototype.setMargin=function(l){return this.then(function(){switch(r(l)){case"number":l=[l,l,l,l];case"array":if(l.length===2&&(l=[l[0],l[1],l[0],l[1]]),l.length===4)break;default:return this.error("Invalid margin array.")}this.opt.margin=l}).then(this.setPageSize)},h.prototype.setPageSize=function(l){function f(u,g){return Math.floor(u*g/72*96)}return this.then(function(){(l=l||Dt.getPageSize(this.opt.jsPDF)).hasOwnProperty("inner")||(l.inner={width:l.width-this.opt.margin[1]-this.opt.margin[3],height:l.height-this.opt.margin[0]-this.opt.margin[2]},l.inner.px={width:f(l.inner.width,l.k),height:f(l.inner.height,l.k)},l.inner.ratio=l.inner.height/l.inner.width),this.prop.pageSize=l})},h.prototype.setProgress=function(l,f,u,g){return l!=null&&(this.progress.val=l),f!=null&&(this.progress.state=f),u!=null&&(this.progress.n=u),g!=null&&(this.progress.stack=g),this.progress.ratio=this.progress.val/this.progress.state,this},h.prototype.updateProgress=function(l,f,u,g){return this.setProgress(l?this.progress.val+l:null,f||null,u?this.progress.n+u:null,g?this.progress.stack.concat(g):null)},h.prototype.then=function(l,f){var u=this;return this.thenCore(l,f,function(g,w){return u.updateProgress(null,null,1,[g]),Promise.prototype.then.call(this,function(A){return u.updateProgress(null,g),A}).then(g,w).then(function(A){return u.updateProgress(1),A})})},h.prototype.thenCore=function(l,f,u){u=u||Promise.prototype.then;var g=this;l&&(l=l.bind(g)),f&&(f=f.bind(g));var w=Promise.toString().indexOf("[native code]")!==-1&&Promise.name==="Promise"?g:h.convert(Object.assign({},g),Promise.prototype),A=u.call(w,l,f);return h.convert(A,g.__proto__)},h.prototype.thenExternal=function(l,f){return Promise.prototype.then.call(this,l,f)},h.prototype.thenList=function(l){var f=this;return l.forEach(function(u){f=f.thenCore(u)}),f},h.prototype.catch=function(l){l&&(l=l.bind(this));var f=Promise.prototype.catch.call(this,l);return h.convert(f,this)},h.prototype.catchExternal=function(l){return Promise.prototype.catch.call(this,l)},h.prototype.error=function(l){return this.then(function(){throw new Error(l)})},h.prototype.using=h.prototype.set,h.prototype.saveAs=h.prototype.save,h.prototype.export=h.prototype.output,h.prototype.run=h.prototype.then,Dt.getPageSize=function(l,f,u){if(Ne(l)==="object"){var g=l;l=g.orientation,f=g.unit||f,u=g.format||u}f=f||"mm",u=u||"a4",l=(""+(l||"P")).toLowerCase();var w,A=(""+u).toLowerCase(),p={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(f){case"pt":w=1;break;case"mm":w=72/25.4;break;case"cm":w=72/2.54;break;case"in":w=72;break;case"px":w=.75;break;case"pc":case"em":w=12;break;case"ex":w=6;break;default:throw"Invalid unit: "+f}var I,P=0,T=0;if(p.hasOwnProperty(A))P=p[A][1]/w,T=p[A][0]/w;else try{P=u[1],T=u[0]}catch{throw new Error("Invalid format: "+u)}if(l==="p"||l==="portrait")l="p",T>P&&(I=T,T=P,P=I);else{if(l!=="l"&&l!=="landscape")throw"Invalid orientation: "+l;l="l",P>T&&(I=T,T=P,P=I)}return{width:T,height:P,unit:f,k:w,orientation:l}},t.html=function(l,f){(f=f||{}).callback=f.callback||function(){},f.html2canvas=f.html2canvas||{},f.html2canvas.canvas=f.html2canvas.canvas||this.canvas,f.jsPDF=f.jsPDF||this,f.fontFaces=f.fontFaces?f.fontFaces.map(Ah):null;var u=new h(f);return f.worker?u:u.from(l).doCallback()}})(Dt.API),Dt.API.addJS=function(t){return Fu=t,this.internal.events.subscribe("postPutResources",function(){Rs=this.internal.newObject(),this.internal.out("<<"),this.internal.out("/Names [(EmbeddedJS) "+(Rs+1)+" 0 R]"),this.internal.out(">>"),this.internal.out("endobj"),Iu=this.internal.newObject(),this.internal.out("<<"),this.internal.out("/S /JavaScript"),this.internal.out("/JS ("+Fu+")"),this.internal.out(">>"),this.internal.out("endobj")}),this.internal.events.subscribe("putCatalog",function(){Rs!==void 0&&Iu!==void 0&&this.internal.out("/Names <</JavaScript "+Rs+" 0 R>>")}),this},(function(t){var n;t.events.push(["postPutResources",function(){var e=this,r=/^(\d+) 0 obj$/;if(this.outline.root.children.length>0)for(var i=e.outline.render().split(/\r\n/),a=0;a<i.length;a++){var h=i[a],l=r.exec(h);if(l!=null){var f=l[1];e.internal.newObjectDeferredBegin(f,!1)}e.internal.write(h)}if(this.outline.createNamedDestinations){var u=this.internal.pages.length,g=[];for(a=0;a<u;a++){var w=e.internal.newObject();g.push(w);var A=e.internal.getPageInfo(a+1);e.internal.write("<< /D["+A.objId+" 0 R /XYZ null null null]>> endobj")}var p=e.internal.newObject();for(e.internal.write("<< /Names [ "),a=0;a<g.length;a++)e.internal.write("(page_"+(a+1)+")"+g[a]+" 0 R");e.internal.write(" ] >>","endobj"),n=e.internal.newObject(),e.internal.write("<< /Dests "+p+" 0 R"),e.internal.write(">>","endobj")}}]),t.events.push(["putCatalog",function(){var e=this;e.outline.root.children.length>0&&(e.internal.write("/Outlines",this.outline.makeRef(this.outline.root)),this.outline.createNamedDestinations&&e.internal.write("/Names "+n+" 0 R"))}]),t.events.push(["initialized",function(){var e=this;e.outline={createNamedDestinations:!1,root:{children:[]}},e.outline.add=function(r,i,a){var h={title:i,options:a,children:[]};return r==null&&(r=this.root),r.children.push(h),h},e.outline.render=function(){return this.ctx={},this.ctx.val="",this.ctx.pdf=e,this.genIds_r(this.root),this.renderRoot(this.root),this.renderItems(this.root),this.ctx.val},e.outline.genIds_r=function(r){r.id=e.internal.newObjectDeferred();for(var i=0;i<r.children.length;i++)this.genIds_r(r.children[i])},e.outline.renderRoot=function(r){this.objStart(r),this.line("/Type /Outlines"),r.children.length>0&&(this.line("/First "+this.makeRef(r.children[0])),this.line("/Last "+this.makeRef(r.children[r.children.length-1]))),this.line("/Count "+this.count_r({count:0},r)),this.objEnd()},e.outline.renderItems=function(r){for(var i=this.ctx.pdf.internal.getVerticalCoordinateString,a=0;a<r.children.length;a++){var h=r.children[a];this.objStart(h),this.line("/Title "+this.makeString(h.title)),this.line("/Parent "+this.makeRef(r)),a>0&&this.line("/Prev "+this.makeRef(r.children[a-1])),a<r.children.length-1&&this.line("/Next "+this.makeRef(r.children[a+1])),h.children.length>0&&(this.line("/First "+this.makeRef(h.children[0])),this.line("/Last "+this.makeRef(h.children[h.children.length-1])));var l=this.count=this.count_r({count:0},h);if(l>0&&this.line("/Count "+l),h.options&&h.options.pageNumber){var f=e.internal.getPageInfo(h.options.pageNumber);this.line("/Dest ["+f.objId+" 0 R /XYZ 0 "+i(0)+" 0]")}this.objEnd()}for(var u=0;u<r.children.length;u++)this.renderItems(r.children[u])},e.outline.line=function(r){this.ctx.val+=r+`\r
|
45
45
|
`},e.outline.makeRef=function(r){return r.id+" 0 R"},e.outline.makeString=function(r){return"("+e.internal.pdfEscape(r)+")"},e.outline.objStart=function(r){this.ctx.val+=`\r
|
46
46
|
`+r.id+` 0 obj\r
|
47
47
|
<<\r
|
@@ -49,7 +49,7 @@ T* `):c.join(` Tj
|
|
49
49
|
endobj\r
|
50
50
|
`},e.outline.count_r=function(r,i){for(var a=0;a<i.children.length;a++)r.count++,this.count_r(r,i.children[a]);return r.count}}])})(Dt.API),(function(t){var n=[192,193,194,195,196,197,198,199];t.processJPEG=function(e,r,i,a,h,l){var f,u=this.decode.DCT_DECODE,g=null;if(typeof e=="string"||this.__addimage__.isArrayBuffer(e)||this.__addimage__.isArrayBufferView(e)){switch(e=h||e,e=this.__addimage__.isArrayBuffer(e)?new Uint8Array(e):e,f=(function(w){for(var A,p=256*w.charCodeAt(4)+w.charCodeAt(5),I=w.length,P={width:0,height:0,numcomponents:1},T=4;T<I;T+=2){if(T+=p,n.indexOf(w.charCodeAt(T+1))!==-1){A=256*w.charCodeAt(T+5)+w.charCodeAt(T+6),P={width:256*w.charCodeAt(T+7)+w.charCodeAt(T+8),height:A,numcomponents:w.charCodeAt(T+9)};break}p=256*w.charCodeAt(T+2)+w.charCodeAt(T+3)}return P})(e=this.__addimage__.isArrayBufferView(e)?this.__addimage__.arrayBufferToBinaryString(e):e),f.numcomponents){case 1:l=this.color_spaces.DEVICE_GRAY;break;case 4:l=this.color_spaces.DEVICE_CMYK;break;case 3:l=this.color_spaces.DEVICE_RGB}g={data:e,width:f.width,height:f.height,colorSpace:l,bitsPerComponent:8,filter:u,index:r,alias:i}}return g}})(Dt.API),Dt.API.processPNG=function(t,n,e,r){if(this.__addimage__.isArrayBuffer(t)&&(t=new Uint8Array(t)),this.__addimage__.isArrayBufferView(t)){var i,a=bu(t,{checkCrc:!0}),h=a.width,l=a.height,f=a.channels,u=a.palette,g=a.depth;i=u&&f===1?(function(Y){for(var j=Y.width,Q=Y.height,S=Y.data,C=Y.palette,H=Y.depth,U=!1,it=[],lt=[],ct=void 0,et=!1,ut=0,Nt=0;Nt<C.length;Nt++){var wt=Dl(C[Nt],4),x=wt[0],D=wt[1],R=wt[2],V=wt[3];it.push(x,D,R),V!=null&&(V===0?(ut++,lt.length<1&<.push(Nt)):V<255&&(et=!0))}if(et||ut>1){U=!0,lt=void 0;var $=j*Q;ct=new Uint8Array($);for(var nt=new DataView(S.buffer),ot=0;ot<$;ot++){var at=Lh(nt,ot,H),mt=Dl(C[at],4)[3];ct[ot]=mt}}else ut===0&&(lt=void 0);return{colorSpace:"Indexed",colorsPerPixel:1,sMaskBitsPerComponent:U?8:void 0,colorBytes:S,alphaBytes:ct,needSMask:U,palette:it,mask:lt}})(a):f===2||f===4?(function(Y){for(var j=Y.data,Q=Y.width,S=Y.height,C=Y.channels,H=Y.depth,U=C===2?"DeviceGray":"DeviceRGB",it=C-1,lt=Q*S,ct=it,et=lt*ct,ut=1*lt,Nt=Math.ceil(et*H/8),wt=Math.ceil(ut*H/8),x=new Uint8Array(Nt),D=new Uint8Array(wt),R=new DataView(j.buffer),V=new DataView(x.buffer),$=new DataView(D.buffer),nt=!1,ot=0;ot<lt;ot++){for(var at=ot*C,mt=0;mt<ct;mt++)Bu(V,Lh(R,at+mt,H),ot*ct+mt,H);var xt=Lh(R,at+ct,H);xt<(1<<H)-1&&(nt=!0),Bu($,xt,1*ot,H)}return{colorSpace:U,colorsPerPixel:it,sMaskBitsPerComponent:nt?H:void 0,colorBytes:x,alphaBytes:D,needSMask:nt}})(a):(function(Y){var j=Y.data,Q=Y.channels===1?"DeviceGray":"DeviceRGB";return{colorSpace:Q,colorsPerPixel:Q==="DeviceGray"?1:3,colorBytes:j instanceof Uint16Array?(function(S){for(var C=S.length,H=new Uint8Array(2*C),U=new DataView(H.buffer,H.byteOffset,H.byteLength),it=0;it<C;it++)U.setUint16(2*it,S[it],!1);return H})(j):j,needSMask:!1}})(a);var w,A,p,I=i,P=I.colorSpace,T=I.colorsPerPixel,L=I.sMaskBitsPerComponent,W=I.colorBytes,q=I.alphaBytes,B=I.needSMask,rt=I.palette,vt=I.mask,pt=null;return r!==Dt.API.image_compression.NONE&&typeof ps=="function"?(pt=(function(Y){var j;switch(Y){case Dt.API.image_compression.FAST:j=11;break;case Dt.API.image_compression.MEDIUM:j=13;break;case Dt.API.image_compression.SLOW:j=14;break;default:j=12}return j})(r),w=this.decode.FLATE_DECODE,A="/Predictor ".concat(pt," /Colors ").concat(T," /BitsPerComponent ").concat(g," /Columns ").concat(h),t=Tu(W,Math.ceil(h*T*g/8),T,g,r),B&&(p=Tu(q,Math.ceil(h*L/8),1,L,r))):(w=void 0,A=void 0,t=W,B&&(p=q)),(this.__addimage__.isArrayBuffer(t)||this.__addimage__.isArrayBufferView(t))&&(t=this.__addimage__.arrayBufferToBinaryString(t)),(p&&this.__addimage__.isArrayBuffer(p)||this.__addimage__.isArrayBufferView(p))&&(p=this.__addimage__.arrayBufferToBinaryString(p)),{alias:e,data:t,index:n,filter:w,decodeParameters:A,transparency:vt,palette:rt,sMask:p,predictor:pt,width:h,height:l,bitsPerComponent:g,sMaskBitsPerComponent:L,colorSpace:P}}},(function(t){t.processGIF89A=function(n,e,r,i){var a=new Ad(n),h=a.width,l=a.height,f=[];a.decodeAndBlitFrameRGBA(0,f);var u={data:f,width:h,height:l},g=new Sh(100).encode(u,100);return t.processJPEG.call(this,g,e,r,i)},t.processGIF87A=t.processGIF89A})(Dt.API),hr.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 t=this.colors===0?1<<this.bitPP:this.colors;this.palette=new Array(t);for(var n=0;n<t;n++){var e=this.datav.getUint8(this.pos++,!0),r=this.datav.getUint8(this.pos++,!0),i=this.datav.getUint8(this.pos++,!0),a=this.datav.getUint8(this.pos++,!0);this.palette[n]={red:i,green:r,blue:e,quad:a}}}this.height<0&&(this.height*=-1,this.bottom_up=!1)},hr.prototype.parseBGR=function(){this.pos=this.offset;try{var t="bit"+this.bitPP,n=this.width*this.height*4;this.data=new Uint8Array(n),this[t]()}catch(e){Ie.log("bit decode error:"+e)}},hr.prototype.bit1=function(){var t,n=Math.ceil(this.width/8),e=n%4;for(t=this.height-1;t>=0;t--){for(var r=this.bottom_up?t:this.height-1-t,i=0;i<n;i++)for(var a=this.datav.getUint8(this.pos++,!0),h=r*this.width*4+8*i*4,l=0;l<8&&8*i+l<this.width;l++){var f=this.palette[a>>7-l&1];this.data[h+4*l]=f.blue,this.data[h+4*l+1]=f.green,this.data[h+4*l+2]=f.red,this.data[h+4*l+3]=255}e!==0&&(this.pos+=4-e)}},hr.prototype.bit4=function(){for(var t=Math.ceil(this.width/2),n=t%4,e=this.height-1;e>=0;e--){for(var r=this.bottom_up?e:this.height-1-e,i=0;i<t;i++){var a=this.datav.getUint8(this.pos++,!0),h=r*this.width*4+2*i*4,l=a>>4,f=15&a,u=this.palette[l];if(this.data[h]=u.blue,this.data[h+1]=u.green,this.data[h+2]=u.red,this.data[h+3]=255,2*i+1>=this.width)break;u=this.palette[f],this.data[h+4]=u.blue,this.data[h+4+1]=u.green,this.data[h+4+2]=u.red,this.data[h+4+3]=255}n!==0&&(this.pos+=4-n)}},hr.prototype.bit8=function(){for(var t=this.width%4,n=this.height-1;n>=0;n--){for(var e=this.bottom_up?n:this.height-1-n,r=0;r<this.width;r++){var i=this.datav.getUint8(this.pos++,!0),a=e*this.width*4+4*r;if(i<this.palette.length){var h=this.palette[i];this.data[a]=h.red,this.data[a+1]=h.green,this.data[a+2]=h.blue,this.data[a+3]=255}else this.data[a]=255,this.data[a+1]=255,this.data[a+2]=255,this.data[a+3]=255}t!==0&&(this.pos+=4-t)}},hr.prototype.bit15=function(){for(var t=this.width%3,n=parseInt("11111",2),e=this.height-1;e>=0;e--){for(var r=this.bottom_up?e:this.height-1-e,i=0;i<this.width;i++){var a=this.datav.getUint16(this.pos,!0);this.pos+=2;var h=(a&n)/n*255|0,l=(a>>5&n)/n*255|0,f=(a>>10&n)/n*255|0,u=a>>15?255:0,g=r*this.width*4+4*i;this.data[g]=f,this.data[g+1]=l,this.data[g+2]=h,this.data[g+3]=u}this.pos+=t}},hr.prototype.bit16=function(){for(var t=this.width%3,n=parseInt("11111",2),e=parseInt("111111",2),r=this.height-1;r>=0;r--){for(var i=this.bottom_up?r:this.height-1-r,a=0;a<this.width;a++){var h=this.datav.getUint16(this.pos,!0);this.pos+=2;var l=(h&n)/n*255|0,f=(h>>5&e)/e*255|0,u=(h>>11)/n*255|0,g=i*this.width*4+4*a;this.data[g]=u,this.data[g+1]=f,this.data[g+2]=l,this.data[g+3]=255}this.pos+=t}},hr.prototype.bit24=function(){for(var t=this.height-1;t>=0;t--){for(var n=this.bottom_up?t:this.height-1-t,e=0;e<this.width;e++){var r=this.datav.getUint8(this.pos++,!0),i=this.datav.getUint8(this.pos++,!0),a=this.datav.getUint8(this.pos++,!0),h=n*this.width*4+4*e;this.data[h]=a,this.data[h+1]=i,this.data[h+2]=r,this.data[h+3]=255}this.pos+=this.width%4}},hr.prototype.bit32=function(){for(var t=this.height-1;t>=0;t--)for(var n=this.bottom_up?t:this.height-1-t,e=0;e<this.width;e++){var r=this.datav.getUint8(this.pos++,!0),i=this.datav.getUint8(this.pos++,!0),a=this.datav.getUint8(this.pos++,!0),h=this.datav.getUint8(this.pos++,!0),l=n*this.width*4+4*e;this.data[l]=a,this.data[l+1]=i,this.data[l+2]=r,this.data[l+3]=h}},hr.prototype.getData=function(){return this.data},(function(t){t.processBMP=function(n,e,r,i){var a=new hr(n,!1),h=a.width,l=a.height,f={data:a.getData(),width:h,height:l},u=new Sh(100).encode(f,100);return t.processJPEG.call(this,u,e,r,i)}})(Dt.API),Uu.prototype.getData=function(){return this.data},(function(t){t.processWEBP=function(n,e,r,i){var a=new Uu(n),h=a.width,l=a.height,f={data:a.getData(),width:h,height:l},u=new Sh(100).encode(f,100);return t.processJPEG.call(this,u,e,r,i)}})(Dt.API),Dt.API.processRGBA=function(t,n,e){for(var r=t.data,i=r.length,a=new Uint8Array(i/4*3),h=new Uint8Array(i/4),l=0,f=0,u=0;u<i;u+=4){var g=r[u],w=r[u+1],A=r[u+2],p=r[u+3];a[l++]=g,a[l++]=w,a[l++]=A,h[f++]=p}var I=this.__addimage__.arrayBufferToBinaryString(a);return{alpha:this.__addimage__.arrayBufferToBinaryString(h),data:I,index:n,alias:e,colorSpace:"DeviceRGB",bitsPerComponent:8,width:t.width,height:t.height}},Dt.API.setLanguage=function(t){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"}[t]!==void 0&&(this.internal.languageSettings.languageCode=t,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},_a=Dt.API,js=_a.getCharWidthsArray=function(t,n){var e,r,i=(n=n||{}).font||this.internal.getFont(),a=n.fontSize||this.internal.getFontSize(),h=n.charSpace||this.internal.getCharSpace(),l=n.widths?n.widths:i.metadata.Unicode.widths,f=l.fof?l.fof:1,u=n.kerning?n.kerning:i.metadata.Unicode.kerning,g=u.fof?u.fof:1,w=n.doKerning!==!1,A=0,p=t.length,I=0,P=l[0]||f,T=[];for(e=0;e<p;e++)r=t.charCodeAt(e),typeof i.metadata.widthOfString=="function"?T.push((i.metadata.widthOfGlyph(i.metadata.characterToGlyph(r))+h*(1e3/a)||0)/1e3):(A=w&&Ne(u[r])==="object"&&!isNaN(parseInt(u[r][I],10))?u[r][I]/g:0,T.push((l[r]||P)/f+A)),I=r;return T},Eu=_a.getStringUnitWidth=function(t,n){var e=(n=n||{}).fontSize||this.internal.getFontSize(),r=n.font||this.internal.getFont(),i=n.charSpace||this.internal.getCharSpace();return _a.processArabic&&(t=_a.processArabic(t)),typeof r.metadata.widthOfString=="function"?r.metadata.widthOfString(t,e,i)/e:js.apply(this,arguments).reduce(function(a,h){return a+h},0)},Cu=function(t,n,e,r){for(var i=[],a=0,h=t.length,l=0;a!==h&&l+n[a]<e;)l+=n[a],a++;i.push(t.slice(0,a));var f=a;for(l=0;a!==h;)l+n[a]>r&&(i.push(t.slice(f,a)),l=0,f=a),l+=n[a],a++;return f!==a&&i.push(t.slice(f,a)),i},Ou=function(t,n,e){e||(e={});var r,i,a,h,l,f,u,g=[],w=[g],A=e.textIndent||0,p=0,I=0,P=t.split(" "),T=js.apply(this,[" ",e])[0];if(f=e.lineIndent===-1?P[0].length+2:e.lineIndent||0){var L=Array(f).join(" "),W=[];P.map(function(B){(B=B.split(/\s*\n/)).length>1?W=W.concat(B.map(function(rt,vt){return(vt&&rt.length?`
|
51
51
|
`:"")+rt})):W.push(B[0])}),P=W,f=Eu.apply(this,[L,e])}for(a=0,h=P.length;a<h;a++){var q=0;if(r=P[a],f&&r[0]==`
|
52
|
-
`&&(r=r.substr(1),q=1),A+p+(I=(i=js.apply(this,[r,e])).reduce(function(B,rt){return B+rt},0))>n||q){if(I>n){for(l=Cu.apply(this,[r,i,n-(A+p),n]),g.push(l.shift()),g=[l.pop()];l.length;)w.push([l.shift()]);I=i.slice(r.length-(g[0]?g[0].length:0)).reduce(function(B,rt){return B+rt},0)}else g=[r];w.push(g),A=I+f,p=T}else g.push(r),A+=p+I,p=T}return u=f?function(B,rt){return(rt?L:"")+B.join(" ")}:function(B){return B.join(" ")},w.map(u)},_a.splitTextToSize=function(t,n,e){var r,i=(e=e||{}).fontSize||this.internal.getFontSize(),a=function(g){if(g.widths&&g.kerning)return{widths:g.widths,kerning:g.kerning};var w=this.internal.getFont(g.fontName,g.fontStyle),A="Unicode";return w.metadata[A]?{widths:w.metadata[A].widths||{0:1},kerning:w.metadata[A].kerning||{}}:{font:w.metadata,fontSize:this.internal.getFontSize(),charSpace:this.internal.getCharSpace()}}.call(this,e);r=Array.isArray(t)?t:String(t).split(/\r?\n/);var h=1*this.internal.scaleFactor*n/i;a.textIndent=e.textIndent?1*e.textIndent*this.internal.scaleFactor/i:0,a.lineIndent=e.lineIndent;var l,f,u=[];for(l=0,f=r.length;l<f;l++)u=u.concat(Ou.apply(this,[r[l],h,a]));return u},(function(t){t.__fontmetrics__=t.__fontmetrics__||{};for(var n="0123456789abcdef",e="klmnopqrstuvwxyz",r={},i={},a=0;a<16;a++)r[e[a]]=n[a],i[n[a]]=e[a];var h=function(A){return"0x"+parseInt(A,10).toString(16)},l=t.__fontmetrics__.compress=function(A){var p,I,P,T,L=["{"];for(var W in A){if(p=A[W],isNaN(parseInt(W,10))?I="'"+W+"'":(W=parseInt(W,10),I=(I=h(W).slice(2)).slice(0,-1)+i[I.slice(-1)]),typeof p=="number")p<0?(P=h(p).slice(3),T="-"):(P=h(p).slice(2),T=""),P=T+P.slice(0,-1)+i[P.slice(-1)];else{if(Ne(p)!=="object")throw new Error("Don't know what to do with value type "+Ne(p)+".");P=l(p)}L.push(I+P)}return L.push("}"),L.join("")},f=t.__fontmetrics__.uncompress=function(A){if(typeof A!="string")throw new Error("Invalid argument passed to uncompress.");for(var p,I,P,T,L={},W=1,q=L,B=[],rt="",vt="",pt=A.length-1,Y=1;Y<pt;Y+=1)(T=A[Y])=="'"?p?(P=p.join(""),p=void 0):p=[]:p?p.push(T):T=="{"?(B.push([q,P]),q={},P=void 0):T=="}"?((I=B.pop())[0][I[1]]=q,P=void 0,q=I[0]):T=="-"?W=-1:P===void 0?r.hasOwnProperty(T)?(rt+=r[T],P=parseInt(rt,16)*W,W=1,rt=""):rt+=T:r.hasOwnProperty(T)?(vt+=r[T],q[P]=parseInt(vt,16)*W,W=1,P=void 0,vt=""):vt+=T;return L},u={codePages:["WinAnsiEncoding"],WinAnsiEncoding:f("{19m8n201n9q201o9r201s9l201t9m201u8m201w9n201x9o201y8o202k8q202l8r202m9p202q8p20aw8k203k8t203t8v203u9v2cq8s212m9t15m8w15n9w2dw9s16k8u16l9u17s9z17x8y17y9y}")},g={Unicode:{Courier:u,"Courier-Bold":u,"Courier-BoldOblique":u,"Courier-Oblique":u,Helvetica:u,"Helvetica-Bold":u,"Helvetica-BoldOblique":u,"Helvetica-Oblique":u,"Times-Roman":u,"Times-Bold":u,"Times-BoldItalic":u,"Times-Italic":u}},w={Unicode:{"Courier-Oblique":f("{'widths'{k3w'fof'6o}'kerning'{'fof'-6o}}"),"Times-BoldItalic":f("{'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":f("{'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:f("{'widths'{k3w'fof'6o}'kerning'{'fof'-6o}}"),"Courier-BoldOblique":f("{'widths'{k3w'fof'6o}'kerning'{'fof'-6o}}"),"Times-Bold":f("{'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:f("{'widths'{k3uaw4r19m3m2k1t2l2l202m2y2n3m2p5n202q6o3k3m2s2l2t2l2v3r2w1t3m3m2y1t2z1wbk2sbl3r'fof'6o3n3m3o3m3p3m3q3m3r3m3s3m3t3m3u1w3v1w3w3r3x3r3y3r3z2wbp3t3l3m5v2l5x2l5z3m2q4yfr3r7v3k7w1o7x3k}'kerning'{'fof'-6o}}"),Helvetica:f("{'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":f("{'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:f("{'widths'{k4u2k1w'fof'6o}'kerning'{'fof'-6o}}"),"Courier-Bold":f("{'widths'{k3w'fof'6o}'kerning'{'fof'-6o}}"),"Times-Italic":f("{'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":f("{'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":f("{'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}}}")}};t.events.push(["addFont",function(A){var p=A.font,I=w.Unicode[p.postScriptName];I&&(p.metadata.Unicode={},p.metadata.Unicode.widths=I.widths,p.metadata.Unicode.kerning=I.kerning);var P=g.Unicode[p.postScriptName];P&&(p.metadata.Unicode.encoding=P,p.encoding=P.codePages[0])}])})(Dt.API),(function(t){var n=function(e){for(var r=e.length,i=new Uint8Array(r),a=0;a<r;a++)i[a]=e.charCodeAt(a);return i};t.API.events.push(["addFont",function(e){var r=void 0,i=e.font,a=e.instance;if(!i.isStandardFont){if(a===void 0)throw new Error("Font does not exist in vFS, import fonts or remove declaration doc.addFont('"+i.postScriptName+"').");if(typeof(r=a.existsFileInVFS(i.postScriptName)===!1?a.loadFile(i.postScriptName):a.getFileFromVFS(i.postScriptName))!="string")throw new Error("Font is not stored as string-data in vFS, import fonts or remove declaration doc.addFont('"+i.postScriptName+"').");(function(h,l){l=/^\x00\x01\x00\x00/.test(l)?n(l):n(Bs(l)),h.metadata=t.API.TTFFont.open(l),h.metadata.Unicode=h.metadata.Unicode||{encoding:{},kerning:{},widths:[]},h.metadata.glyIdsUsed=[0]})(i,r)}}])})(Dt),Dt.API.addSvgAsImage=function(t,n,e,r,i,a,h,l){if(isNaN(n)||isNaN(e))throw Ie.error("jsPDF.addSvgAsImage: Invalid coordinates",arguments),new Error("Invalid coordinates passed to jsPDF.addSvgAsImage");if(isNaN(r)||isNaN(i))throw Ie.error("jsPDF.addSvgAsImage: Invalid measurements",arguments),new Error("Invalid measurements (width and/or height) passed to jsPDF.addSvgAsImage");var f=document.createElement("canvas");f.width=r,f.height=i;var u=f.getContext("2d");u.fillStyle="#fff",u.fillRect(0,0,f.width,f.height);var g={ignoreMouse:!0,ignoreAnimation:!0,ignoreDimensions:!0},w=this;return(Vt.canvg?Promise.resolve(Vt.canvg):import("./N427K3D5.js")).catch(function(A){return Promise.reject(new Error("Could not load canvg: "+A))}).then(function(A){return A.default?A.default:A}).then(function(A){return A.fromString(u,t,g)},function(){return Promise.reject(new Error("Could not load canvg."))}).then(function(A){return A.render(g)}).then(function(){w.addImage(f.toDataURL("image/jpeg",1),n,e,r,i,h,l)})},Dt.API.putTotalPages=function(t){var n,e=0;parseInt(this.internal.getFont().id.substr(1),10)<15?(n=new RegExp(t,"g"),e=this.internal.getNumberOfPages()):(n=new RegExp(this.pdfEscape16(t,this.internal.getFont()),"g"),e=this.pdfEscape16(this.internal.getNumberOfPages()+"",this.internal.getFont()));for(var r=1;r<=this.internal.getNumberOfPages();r++)for(var i=0;i<this.internal.pages[r].length;i++)this.internal.pages[r][i]=this.internal.pages[r][i].replace(n,e);return this},Dt.API.viewerPreferences=function(t,n){var e;t=t||{},n=n||!1;var r,i,a,h={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}},l=Object.keys(h),f=[],u=0,g=0,w=0;function A(I,P){var T,L=!1;for(T=0;T<I.length;T+=1)I[T]===P&&(L=!0);return L}if(this.internal.viewerpreferences===void 0&&(this.internal.viewerpreferences={},this.internal.viewerpreferences.configuration=JSON.parse(JSON.stringify(h)),this.internal.viewerpreferences.isSubscribed=!1),e=this.internal.viewerpreferences.configuration,t==="reset"||n===!0){var p=l.length;for(w=0;w<p;w+=1)e[l[w]].value=e[l[w]].defaultValue,e[l[w]].explicitSet=!1}if(Ne(t)==="object"){for(i in t)if(a=t[i],A(l,i)&&a!==void 0){if(e[i].type==="boolean"&&typeof a=="boolean")e[i].value=a;else if(e[i].type==="name"&&A(e[i].valueSet,a))e[i].value=a;else if(e[i].type==="integer"&&Number.isInteger(a))e[i].value=a;else if(e[i].type==="array"){for(u=0;u<a.length;u+=1)if(r=!0,a[u].length===1&&typeof a[u][0]=="number")f.push(String(a[u]-1));else if(a[u].length>1){for(g=0;g<a[u].length;g+=1)typeof a[u][g]!="number"&&(r=!1);r===!0&&f.push([a[u][0]-1,a[u][1]-1].join(" "))}e[i].value="["+f.join(" ")+"]"}else e[i].value=e[i].defaultValue;e[i].explicitSet=!0}}return this.internal.viewerpreferences.isSubscribed===!1&&(this.internal.events.subscribe("putCatalog",function(){var I,P=[];for(I in e)e[I].explicitSet===!0&&(e[I].type==="name"?P.push("/"+I+" /"+e[I].value):P.push("/"+I+" "+e[I].value));P.length!==0&&this.internal.write(`/ViewerPreferences
|
52
|
+
`&&(r=r.substr(1),q=1),A+p+(I=(i=js.apply(this,[r,e])).reduce(function(B,rt){return B+rt},0))>n||q){if(I>n){for(l=Cu.apply(this,[r,i,n-(A+p),n]),g.push(l.shift()),g=[l.pop()];l.length;)w.push([l.shift()]);I=i.slice(r.length-(g[0]?g[0].length:0)).reduce(function(B,rt){return B+rt},0)}else g=[r];w.push(g),A=I+f,p=T}else g.push(r),A+=p+I,p=T}return u=f?function(B,rt){return(rt?L:"")+B.join(" ")}:function(B){return B.join(" ")},w.map(u)},_a.splitTextToSize=function(t,n,e){var r,i=(e=e||{}).fontSize||this.internal.getFontSize(),a=function(g){if(g.widths&&g.kerning)return{widths:g.widths,kerning:g.kerning};var w=this.internal.getFont(g.fontName,g.fontStyle),A="Unicode";return w.metadata[A]?{widths:w.metadata[A].widths||{0:1},kerning:w.metadata[A].kerning||{}}:{font:w.metadata,fontSize:this.internal.getFontSize(),charSpace:this.internal.getCharSpace()}}.call(this,e);r=Array.isArray(t)?t:String(t).split(/\r?\n/);var h=1*this.internal.scaleFactor*n/i;a.textIndent=e.textIndent?1*e.textIndent*this.internal.scaleFactor/i:0,a.lineIndent=e.lineIndent;var l,f,u=[];for(l=0,f=r.length;l<f;l++)u=u.concat(Ou.apply(this,[r[l],h,a]));return u},(function(t){t.__fontmetrics__=t.__fontmetrics__||{};for(var n="0123456789abcdef",e="klmnopqrstuvwxyz",r={},i={},a=0;a<16;a++)r[e[a]]=n[a],i[n[a]]=e[a];var h=function(A){return"0x"+parseInt(A,10).toString(16)},l=t.__fontmetrics__.compress=function(A){var p,I,P,T,L=["{"];for(var W in A){if(p=A[W],isNaN(parseInt(W,10))?I="'"+W+"'":(W=parseInt(W,10),I=(I=h(W).slice(2)).slice(0,-1)+i[I.slice(-1)]),typeof p=="number")p<0?(P=h(p).slice(3),T="-"):(P=h(p).slice(2),T=""),P=T+P.slice(0,-1)+i[P.slice(-1)];else{if(Ne(p)!=="object")throw new Error("Don't know what to do with value type "+Ne(p)+".");P=l(p)}L.push(I+P)}return L.push("}"),L.join("")},f=t.__fontmetrics__.uncompress=function(A){if(typeof A!="string")throw new Error("Invalid argument passed to uncompress.");for(var p,I,P,T,L={},W=1,q=L,B=[],rt="",vt="",pt=A.length-1,Y=1;Y<pt;Y+=1)(T=A[Y])=="'"?p?(P=p.join(""),p=void 0):p=[]:p?p.push(T):T=="{"?(B.push([q,P]),q={},P=void 0):T=="}"?((I=B.pop())[0][I[1]]=q,P=void 0,q=I[0]):T=="-"?W=-1:P===void 0?r.hasOwnProperty(T)?(rt+=r[T],P=parseInt(rt,16)*W,W=1,rt=""):rt+=T:r.hasOwnProperty(T)?(vt+=r[T],q[P]=parseInt(vt,16)*W,W=1,P=void 0,vt=""):vt+=T;return L},u={codePages:["WinAnsiEncoding"],WinAnsiEncoding:f("{19m8n201n9q201o9r201s9l201t9m201u8m201w9n201x9o201y8o202k8q202l8r202m9p202q8p20aw8k203k8t203t8v203u9v2cq8s212m9t15m8w15n9w2dw9s16k8u16l9u17s9z17x8y17y9y}")},g={Unicode:{Courier:u,"Courier-Bold":u,"Courier-BoldOblique":u,"Courier-Oblique":u,Helvetica:u,"Helvetica-Bold":u,"Helvetica-BoldOblique":u,"Helvetica-Oblique":u,"Times-Roman":u,"Times-Bold":u,"Times-BoldItalic":u,"Times-Italic":u}},w={Unicode:{"Courier-Oblique":f("{'widths'{k3w'fof'6o}'kerning'{'fof'-6o}}"),"Times-BoldItalic":f("{'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":f("{'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:f("{'widths'{k3w'fof'6o}'kerning'{'fof'-6o}}"),"Courier-BoldOblique":f("{'widths'{k3w'fof'6o}'kerning'{'fof'-6o}}"),"Times-Bold":f("{'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:f("{'widths'{k3uaw4r19m3m2k1t2l2l202m2y2n3m2p5n202q6o3k3m2s2l2t2l2v3r2w1t3m3m2y1t2z1wbk2sbl3r'fof'6o3n3m3o3m3p3m3q3m3r3m3s3m3t3m3u1w3v1w3w3r3x3r3y3r3z2wbp3t3l3m5v2l5x2l5z3m2q4yfr3r7v3k7w1o7x3k}'kerning'{'fof'-6o}}"),Helvetica:f("{'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":f("{'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:f("{'widths'{k4u2k1w'fof'6o}'kerning'{'fof'-6o}}"),"Courier-Bold":f("{'widths'{k3w'fof'6o}'kerning'{'fof'-6o}}"),"Times-Italic":f("{'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":f("{'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":f("{'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}}}")}};t.events.push(["addFont",function(A){var p=A.font,I=w.Unicode[p.postScriptName];I&&(p.metadata.Unicode={},p.metadata.Unicode.widths=I.widths,p.metadata.Unicode.kerning=I.kerning);var P=g.Unicode[p.postScriptName];P&&(p.metadata.Unicode.encoding=P,p.encoding=P.codePages[0])}])})(Dt.API),(function(t){var n=function(e){for(var r=e.length,i=new Uint8Array(r),a=0;a<r;a++)i[a]=e.charCodeAt(a);return i};t.API.events.push(["addFont",function(e){var r=void 0,i=e.font,a=e.instance;if(!i.isStandardFont){if(a===void 0)throw new Error("Font does not exist in vFS, import fonts or remove declaration doc.addFont('"+i.postScriptName+"').");if(typeof(r=a.existsFileInVFS(i.postScriptName)===!1?a.loadFile(i.postScriptName):a.getFileFromVFS(i.postScriptName))!="string")throw new Error("Font is not stored as string-data in vFS, import fonts or remove declaration doc.addFont('"+i.postScriptName+"').");(function(h,l){l=/^\x00\x01\x00\x00/.test(l)?n(l):n(Bs(l)),h.metadata=t.API.TTFFont.open(l),h.metadata.Unicode=h.metadata.Unicode||{encoding:{},kerning:{},widths:[]},h.metadata.glyIdsUsed=[0]})(i,r)}}])})(Dt),Dt.API.addSvgAsImage=function(t,n,e,r,i,a,h,l){if(isNaN(n)||isNaN(e))throw Ie.error("jsPDF.addSvgAsImage: Invalid coordinates",arguments),new Error("Invalid coordinates passed to jsPDF.addSvgAsImage");if(isNaN(r)||isNaN(i))throw Ie.error("jsPDF.addSvgAsImage: Invalid measurements",arguments),new Error("Invalid measurements (width and/or height) passed to jsPDF.addSvgAsImage");var f=document.createElement("canvas");f.width=r,f.height=i;var u=f.getContext("2d");u.fillStyle="#fff",u.fillRect(0,0,f.width,f.height);var g={ignoreMouse:!0,ignoreAnimation:!0,ignoreDimensions:!0},w=this;return(Vt.canvg?Promise.resolve(Vt.canvg):import("./JPAPTSIM.js")).catch(function(A){return Promise.reject(new Error("Could not load canvg: "+A))}).then(function(A){return A.default?A.default:A}).then(function(A){return A.fromString(u,t,g)},function(){return Promise.reject(new Error("Could not load canvg."))}).then(function(A){return A.render(g)}).then(function(){w.addImage(f.toDataURL("image/jpeg",1),n,e,r,i,h,l)})},Dt.API.putTotalPages=function(t){var n,e=0;parseInt(this.internal.getFont().id.substr(1),10)<15?(n=new RegExp(t,"g"),e=this.internal.getNumberOfPages()):(n=new RegExp(this.pdfEscape16(t,this.internal.getFont()),"g"),e=this.pdfEscape16(this.internal.getNumberOfPages()+"",this.internal.getFont()));for(var r=1;r<=this.internal.getNumberOfPages();r++)for(var i=0;i<this.internal.pages[r].length;i++)this.internal.pages[r][i]=this.internal.pages[r][i].replace(n,e);return this},Dt.API.viewerPreferences=function(t,n){var e;t=t||{},n=n||!1;var r,i,a,h={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}},l=Object.keys(h),f=[],u=0,g=0,w=0;function A(I,P){var T,L=!1;for(T=0;T<I.length;T+=1)I[T]===P&&(L=!0);return L}if(this.internal.viewerpreferences===void 0&&(this.internal.viewerpreferences={},this.internal.viewerpreferences.configuration=JSON.parse(JSON.stringify(h)),this.internal.viewerpreferences.isSubscribed=!1),e=this.internal.viewerpreferences.configuration,t==="reset"||n===!0){var p=l.length;for(w=0;w<p;w+=1)e[l[w]].value=e[l[w]].defaultValue,e[l[w]].explicitSet=!1}if(Ne(t)==="object"){for(i in t)if(a=t[i],A(l,i)&&a!==void 0){if(e[i].type==="boolean"&&typeof a=="boolean")e[i].value=a;else if(e[i].type==="name"&&A(e[i].valueSet,a))e[i].value=a;else if(e[i].type==="integer"&&Number.isInteger(a))e[i].value=a;else if(e[i].type==="array"){for(u=0;u<a.length;u+=1)if(r=!0,a[u].length===1&&typeof a[u][0]=="number")f.push(String(a[u]-1));else if(a[u].length>1){for(g=0;g<a[u].length;g+=1)typeof a[u][g]!="number"&&(r=!1);r===!0&&f.push([a[u][0]-1,a[u][1]-1].join(" "))}e[i].value="["+f.join(" ")+"]"}else e[i].value=e[i].defaultValue;e[i].explicitSet=!0}}return this.internal.viewerpreferences.isSubscribed===!1&&(this.internal.events.subscribe("putCatalog",function(){var I,P=[];for(I in e)e[I].explicitSet===!0&&(e[I].type==="name"?P.push("/"+I+" /"+e[I].value):P.push("/"+I+" "+e[I].value));P.length!==0&&this.internal.write(`/ViewerPreferences
|
53
53
|
<<
|
54
54
|
`+P.join(`
|
55
55
|
`)+`
|