jellyfin-tizen-bratanmaboy 0.1.51
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/.github/renovate.json +12 -0
- package/.github/workflows/wiki-sync.yml +28 -0
- package/README.md +126 -0
- package/config.xml +15 -0
- package/gulpfile.babel.js +141 -0
- package/icon.png +0 -0
- package/index.html +6 -0
- package/package.json +38 -0
- package/tizen-adapter.js +44 -0
- package/tizen.js +202 -0
- package/www/10092.c37bcafcc8eb7c5c080e.chunk.js +1 -0
- package/www/10393.ebea4771b8940214f3ad.chunk.js +1 -0
- package/www/10455.4a668edb0928c7a2844e.chunk.js +1 -0
- package/www/1051.4d2f5a7e0cc6440d5450.chunk.js +1 -0
- package/www/10540.304a396a5b1390876019.chunk.js +1 -0
- package/www/10647.8add23ed190cf74bf51d.chunk.js +1 -0
- package/www/10739.7693393cabff33c60b7f.chunk.js +1 -0
- package/www/10807.e1743b7841c6545d31dd.chunk.js +1 -0
- package/www/11061.c6832aa3f616532f40d0.chunk.js +1 -0
- package/www/1161.332f1bb195913f384a65.chunk.js +1 -0
- package/www/11762.15524a9c403437ce5301.chunk.js +1 -0
- package/www/12011.caf0203da8f0cfecacca.chunk.js +1 -0
- package/www/12060.7a1c0894cd74bb119b1e.chunk.js +1 -0
- package/www/12143.b101bb4a23ec7dbf0c03.chunk.js +1 -0
- package/www/12323.d74b7fd2793b31f58e32.chunk.js +1 -0
- package/www/12394.2d9a92cf5ecbf770e406.css +1 -0
- package/www/12394.623f94449c2a08cd76c0.chunk.js +1 -0
- package/www/12519.18f1249ed943c27c3292.chunk.js +1 -0
- package/www/12551.d58283586a0911b4a1ab.chunk.js +1 -0
- package/www/12557.58fa22481fa0d2b7ea6f.chunk.js +1 -0
- package/www/12849.165eba3ae25610c54f9c.chunk.js +1 -0
- package/www/1286.3acbc7f647ded14104c9.chunk.js +1 -0
- package/www/13115.5ef43e6c459b87e21f5b.chunk.js +1 -0
- package/www/13135.b2f4c0978e9a1e488686.chunk.js +1 -0
- package/www/13231.0c7f2d70fea0bbea93cf.chunk.js +1 -0
- package/www/13280.3c6f3d62d8d0ae339242.chunk.js +1 -0
- package/www/13280.f87d086900749f799ea2.css +2 -0
- package/www/13356.a9874690b5d027afc12f.chunk.js +1 -0
- package/www/1367.e18e3aedec5be8b220e9.chunk.js +1 -0
- package/www/1368.2d9f126e7c7d1ec60a80.chunk.js +1 -0
- package/www/13734.1201e8671a965866da64.chunk.js +1 -0
- package/www/13872.ee9ff6d3dafefc5e09f8.chunk.js +1 -0
- package/www/13960.a45937110b391d04be75.chunk.js +1 -0
- package/www/14112.437263e4bb45e3c7dded.chunk.js +1 -0
- package/www/14245.bc1136c35dbc9cf76522.chunk.js +1 -0
- package/www/14245.f517756c675c2040ffba.css +5 -0
- package/www/1451.aaece936db9799ec625b.chunk.js +1 -0
- package/www/1451.af33df2c298573856469.css +3 -0
- package/www/14553.10c031dfbceb73e7b532.chunk.js +1 -0
- package/www/14866.a729d4f295de6bab8bb9.chunk.js +1 -0
- package/www/1488.da11cc6a8e47136c4770.chunk.js +1 -0
- package/www/15015.5d6d7e28b56159ecc7bb.chunk.js +1 -0
- package/www/15126.3e16fd591da757b2ce43.chunk.js +1 -0
- package/www/15141.fa82523711199c18b452.chunk.js +1 -0
- package/www/15190.d1ff5bd3ab7bcb027cda.chunk.js +1 -0
- package/www/15605.d365e1cb9e57bc5971c2.chunk.js +1 -0
- package/www/15686.d06004b9c5f1b259a5ca.chunk.js +1 -0
- package/www/15889.5ae32a4d5b8185fbb761.chunk.js +1 -0
- package/www/16235.cadf59a5da4529021747.chunk.js +1 -0
- package/www/16327.18dd1add69992aefb82b.chunk.js +1 -0
- package/www/16504.8dc96690f3f1c6bb4c19.chunk.js +1 -0
- package/www/16526.3a7e5d22c99d7fde506b.chunk.js +1 -0
- package/www/16566.bea5fb7b7a6ddfc79bfe.chunk.js +1 -0
- package/www/16614.47c610eafa7751cda457.chunk.js +1 -0
- package/www/16914.5f3fb5fccd5b65e1c1cf.chunk.js +1 -0
- package/www/17133.2417ebee8f73d3658175.chunk.js +1 -0
- package/www/17290.ff5e6bcae3fb2d8f0570.chunk.js +1 -0
- package/www/17355.af8023f05e56fef53448.chunk.js +1 -0
- package/www/17427.0d62f29d829d9b116e66.chunk.js +1 -0
- package/www/17443.148c14e52a3c6366e738.chunk.js +1 -0
- package/www/17443.572b47e6c02dfcde2c23.css +1 -0
- package/www/17486.c51cdc8d76819a800db5.chunk.js +1 -0
- package/www/17864.c42430268ab6e7fabba1.chunk.js +1 -0
- package/www/18078.529ad263def31f084c62.css +3 -0
- package/www/1831.444b435456582b81aaf4.css +6 -0
- package/www/1831.eca3a1235144d80a758c.chunk.js +1 -0
- package/www/1836.83c87c6a277213c7583b.chunk.js +1 -0
- package/www/1836.94db4f3644a2ad201efe.css +1 -0
- package/www/18395.2c846c324f87760440d8.chunk.js +1 -0
- package/www/18591.7f67c4b46848307ec6bf.chunk.js +1 -0
- package/www/18934.424bde358e2729267f1d.chunk.js +1 -0
- package/www/1912.35ab9b055c3f606202db.chunk.js +1 -0
- package/www/19187.981714c2337caf7e9875.chunk.js +1 -0
- package/www/19292.ca209ff2dd4fe521f001.chunk.js +1 -0
- package/www/19842.ede512101627a3a4d02d.chunk.js +1 -0
- package/www/1986.a7bd24313d598fd0f4ba.chunk.js +1 -0
- package/www/19863.6df7a560c7676008c11b.chunk.js +1 -0
- package/www/19907.519b327b385a50a70817.chunk.js +2 -0
- package/www/19907.519b327b385a50a70817.chunk.js.LICENSE.txt +1 -0
- package/www/20472.4c20e2e8eaea3f0188c9.chunk.js +1 -0
- package/www/2077.ad6a957b7c9feb6fc268.chunk.js +1 -0
- package/www/20779.fd5f8f52385600fa545e.chunk.js +1 -0
- package/www/20963.55b764490ba3e9015e43.chunk.js +1 -0
- package/www/20963.b483681abaab07461325.css +1 -0
- package/www/21152.3c9de3369a58d9bb0f9b.chunk.js +1 -0
- package/www/21188.6e6f2ff810f8a6249e79.chunk.js +1 -0
- package/www/21252.8c1fc82b3fce0590ba63.chunk.js +1 -0
- package/www/21654.49cf39c6aaa9e2ecb23c.chunk.js +1 -0
- package/www/21721.78f7b8a3ba5cc7d8f80b.chunk.js +1 -0
- package/www/21789.53b74dc7795960528d4a.chunk.js +1 -0
- package/www/21933.c51cdc8d76819a800db5.chunk.js +1 -0
- package/www/21935.61699c397386289b84b9.chunk.js +1 -0
- package/www/22197.36ddaa33204fb9ddd8c6.chunk.js +1 -0
- package/www/22356.ed1e8baae07c7434e3e9.chunk.js +1 -0
- package/www/22424.b571889c02e438bf5510.chunk.js +1 -0
- package/www/22770.5608c24e450e07e2250d.chunk.js +1 -0
- package/www/22837.4379d3e3aef9f37a049b.chunk.js +1 -0
- package/www/22882.98f6daca891885520875.css +6 -0
- package/www/23717.5c79cff02606a51e16d3.chunk.js +1 -0
- package/www/23789.9a3dd8d034702af1b84e.chunk.js +1 -0
- package/www/24135.306b4dffe60dc2dc0250.chunk.js +1 -0
- package/www/242.b251eb237b86cde7edce.chunk.js +1 -0
- package/www/24364.10c34ac276dba4a42b99.chunk.js +1 -0
- package/www/24450.e567b722f4ef6bfab80f.chunk.js +1 -0
- package/www/24468.823221d3ee63dfe059d0.chunk.js +1 -0
- package/www/24855.aee7c42eabf2ecf05da5.chunk.js +1 -0
- package/www/24871.3ea5154a81e4ab458386.chunk.js +1 -0
- package/www/24872.a047fd6af8ffb42955e2.chunk.js +1 -0
- package/www/24879.cd9140b80a5b7c22d6df.chunk.js +1 -0
- package/www/25029.c740550ffb49da467fbb.css +1 -0
- package/www/25029.f8b01027b883c0b02c64.chunk.js +1 -0
- package/www/25091.19afcf9ee1dc02577c43.chunk.js +1 -0
- package/www/25137.961528bad23bbad87544.chunk.js +1 -0
- package/www/25148.64afcf3658659e994a15.chunk.js +1 -0
- package/www/25242.fce9f738ccb0bc6105f3.chunk.js +1 -0
- package/www/25348.10043daf2671fc8859af.css +1 -0
- package/www/25348.a5fe264650ffc6a300ef.chunk.js +1 -0
- package/www/25671.959c6339769cc852c55d.chunk.js +1 -0
- package/www/25709.981683813ac03bd8c66c.chunk.js +1 -0
- package/www/25742.dba0c2ea882e31eebf16.chunk.js +1 -0
- package/www/25890.5ceaee4cdd054b9fc915.chunk.js +1 -0
- package/www/25995.0c517caf9577a784cbfe.chunk.js +1 -0
- package/www/26273.3cb0e4af987c66da3c58.chunk.js +1 -0
- package/www/26368.bdfd6750dd615ef77766.chunk.js +1 -0
- package/www/26668.9be73e891a994b445103.chunk.js +1 -0
- package/www/26711.b483681abaab07461325.css +1 -0
- package/www/26711.f3e19744aec63497ba09.chunk.js +1 -0
- package/www/26839.a0cc7c326cca06a685c6.chunk.js +1 -0
- package/www/26855.4980d0c9417a2d1d4a27.chunk.js +1 -0
- package/www/26908.a3b99830988411102528.chunk.js +1 -0
- package/www/26914.07cbab3d355637fc106b.css +1 -0
- package/www/26914.57dd5a366438b238205b.chunk.js +2 -0
- package/www/26914.57dd5a366438b238205b.chunk.js.LICENSE.txt +1 -0
- package/www/26954.e6b5de8a1016b4ef4306.chunk.js +1 -0
- package/www/27046.fa82523711199c18b452.chunk.js +1 -0
- package/www/27114.6f11832f410a51b1112e.chunk.js +1 -0
- package/www/27711.0430b3485b637ae620ec.chunk.js +1 -0
- package/www/27884.bda8d58a4ecedec16b11.css +1 -0
- package/www/27884.c48cc8ef1ddb52897b42.chunk.js +1 -0
- package/www/27892.8c9905c52054153ebcea.chunk.js +1 -0
- package/www/27924.954b42999d5c0a4ad136.chunk.js +1 -0
- package/www/28048.3ee633e6fbb36a4b57a6.chunk.js +1 -0
- package/www/28463.3045e23f3659654d9af4.chunk.js +1 -0
- package/www/28567.ef79c7f22b1beeb79f07.chunk.js +1 -0
- package/www/28662.43515735361d13902797.chunk.js +1 -0
- package/www/28982.e195b4cb44ec6694727c.chunk.js +1 -0
- package/www/29035.dbb4b720a849877fe4f7.chunk.js +1 -0
- package/www/29083.0ab60d2e6a86fa2ad7f3.chunk.js +1 -0
- package/www/29108.656f5d89af61740f8f20.chunk.js +1 -0
- package/www/2917.4307d952be85f450b5fa.chunk.js +1 -0
- package/www/29467.eb3c994c0ddf32d7bb22.chunk.js +1 -0
- package/www/29477.ec9580b3bec86d1641d8.chunk.js +1 -0
- package/www/29773.0118498909d2625e212c.chunk.js +1 -0
- package/www/30121.4e7c6851ad6f0befadf5.chunk.js +1 -0
- package/www/30657.444b435456582b81aaf4.css +6 -0
- package/www/30657.ab2e0985d6436bfe3a8c.chunk.js +1 -0
- package/www/30745.a1de5f02b9ab1fa16359.chunk.js +1 -0
- package/www/30793.49296a97ffa6c129fd49.chunk.js +1 -0
- package/www/3080.097c0969d9225ae0e948.chunk.js +1 -0
- package/www/3083.071f787bc472810ee689.chunk.js +1 -0
- package/www/30869.d80e0b7dafd24a04aa82.chunk.js +1 -0
- package/www/31297.da0b3b294f6326119063.chunk.js +1 -0
- package/www/31402.f0d3864e419c56c24f56.chunk.js +1 -0
- package/www/31421.d7f3bf442cae4f56571b.chunk.js +1 -0
- package/www/31759.6d565935b797866530ed.chunk.js +1 -0
- package/www/31768.6df7a560c7676008c11b.chunk.js +1 -0
- package/www/31773.572fcd035ddff7dfea96.chunk.js +1 -0
- package/www/31974.909af7387d6095b84995.chunk.js +1 -0
- package/www/32689.df61fa573a270c43c76b.chunk.js +1 -0
- package/www/32721.bfde69083a6ae513ba97.css +3 -0
- package/www/32721.c6b0ccd421f063bbf5e2.chunk.js +2 -0
- package/www/32721.c6b0ccd421f063bbf5e2.chunk.js.LICENSE.txt +1 -0
- package/www/32894.1e1322489c09cd3f42bc.chunk.js +1 -0
- package/www/32896.7ae7c8f3d7a787e1eb66.chunk.js +1 -0
- package/www/32px.7b8ef9809145cfec0aa6.png +0 -0
- package/www/33188.e1743b7841c6545d31dd.chunk.js +1 -0
- package/www/332.ad647ed3eff57062f990.chunk.js +1 -0
- package/www/33625.29d5d3a3b37f4c996cfe.chunk.js +1 -0
- package/www/3376.83a9432dddc82e1fa59a.chunk.js +1 -0
- package/www/33792.b441e44a6caafda8ebb0.chunk.js +1 -0
- package/www/33796.bfb28fda95f360f73305.css +2 -0
- package/www/3380.4dc1e171984a8e6fea43.css +2 -0
- package/www/3380.595f8977ab432d484705.chunk.js +1 -0
- package/www/33858.b41a661856943d58a4e7.chunk.js +1 -0
- package/www/33978.da6c68924ccc446010d9.chunk.js +1 -0
- package/www/34157.4f6f03d8313181ce8821.chunk.js +1 -0
- package/www/34286.658873a3645429fa261e.chunk.js +1 -0
- package/www/34624.e86f71849566dfc230ac.chunk.js +1 -0
- package/www/34644.bd73b9577f13214df501.chunk.js +1 -0
- package/www/35090.29e7d34960b24abbef8c.chunk.js +1 -0
- package/www/35115.4ef465939de339b2e5af.chunk.js +1 -0
- package/www/35172.c920bc7288c67573d3e7.chunk.js +1 -0
- package/www/35308.2de443eb1beb01f2299c.css +1 -0
- package/www/35308.a8726e9eb79173d6fa4c.chunk.js +1 -0
- package/www/35569.e513b5520c7d10b0c5ce.chunk.js +1 -0
- package/www/35601.4938a804b29c99bbbdbd.chunk.js +1 -0
- package/www/36104.32bffb52be76300592fe.chunk.js +1 -0
- package/www/36117.5990db3732d23e480626.chunk.js +1 -0
- package/www/36154.16c3e67fd7ec4450111e.css +2 -0
- package/www/36154.2ce2a684991f3f89f7ca.chunk.js +1 -0
- package/www/36165.8d93fbea1b1c6dad888c.chunk.js +1 -0
- package/www/36293.17adaeeb977f45217ad1.chunk.js +1 -0
- package/www/36392.c3dab72ac18ff20bb9a0.chunk.js +1 -0
- package/www/36934.47c1128a0b3ebd24761e.chunk.js +1 -0
- package/www/36962.77646dce0c02cbcc4fb8.chunk.js +1 -0
- package/www/37117.60f1b1fe71c08399cba7.chunk.js +1 -0
- package/www/37202.b4c861a959198ab568d5.chunk.js +1 -0
- package/www/37290.af9d9df2996a4cd850b1.chunk.js +1 -0
- package/www/37418.6da98d96a24d230f4962.chunk.js +1 -0
- package/www/37491.3b9cfbafaf300a8253ff.chunk.js +1 -0
- package/www/37522.fa82523711199c18b452.chunk.js +1 -0
- package/www/37625.7d244710cfd35e490660.chunk.js +1 -0
- package/www/37658.9a1fd43942524f7e474a.chunk.js +1 -0
- package/www/3767.aef59dc08f22402f40e6.chunk.js +1 -0
- package/www/3776.f46aa66b273cb2199582.chunk.js +1 -0
- package/www/37821.657eef9ddbfef807d3ad.chunk.js +1 -0
- package/www/38082.d5c479298b0138321239.chunk.js +1 -0
- package/www/38122.5484b7a8e84127a41eab.chunk.js +1 -0
- package/www/38619.4a3d5cf80b2b7aabe6df.chunk.js +1 -0
- package/www/38775.fd8071f5e1ab154ea19f.chunk.js +1 -0
- package/www/3888.7da541436acd95af2f65.chunk.js +1 -0
- package/www/38965.a085962443408ce8acfa.chunk.js +1 -0
- package/www/39232.e6ee197b3d379ec39900.chunk.js +1 -0
- package/www/39233.947d54266f65cf06dd1c.chunk.js +1 -0
- package/www/39345.32f4c4c204ffc4d7bf43.css +2 -0
- package/www/39345.9e7a7ae012b09b3ffbca.chunk.js +1 -0
- package/www/39373.8f71dab04f96a55261c3.chunk.js +1 -0
- package/www/39469.4a76a57fffdd9469adfa.chunk.js +2 -0
- package/www/39469.4a76a57fffdd9469adfa.chunk.js.LICENSE.txt +1 -0
- package/www/39718.74dc46dbb7c30307cf7c.chunk.js +1 -0
- package/www/39867.c51cdc8d76819a800db5.chunk.js +1 -0
- package/www/4003.8ff666796e99d6c22cb4.chunk.js +1 -0
- package/www/40247.d9d4d760cf4e52445e24.chunk.js +1 -0
- package/www/40248.e00ae5b824f83f245803.css +2 -0
- package/www/40459.f59b2cc0a89e3e86be1b.css +3 -0
- package/www/40465.0f765067305280ecf22d.chunk.js +1 -0
- package/www/40501.384eec3a00b3836128da.css +1 -0
- package/www/40501.ec04eb5e3add9a092c56.chunk.js +1 -0
- package/www/40592.aaaacb22d22a31193afb.chunk.js +1 -0
- package/www/40622.c6dc6ae6aa81dd817c9a.chunk.js +1 -0
- package/www/4069.434cfc46c90a1da39b36.chunk.js +1 -0
- package/www/40815.d881107cd3bbae65c5c4.chunk.js +1 -0
- package/www/40852.8280deaa99c0ddcb2918.chunk.js +1 -0
- package/www/40946.24f1d9f052c8feeac9e4.chunk.js +1 -0
- package/www/40px.106a7abc109fb5e78742.png +0 -0
- package/www/41049.4651bbb17d54ac332a68.chunk.js +1 -0
- package/www/4113.83b0350d733cb0566fab.chunk.js +1 -0
- package/www/41241.ca932f4033dcc476c245.chunk.js +1 -0
- package/www/41247.14586f0cc695ab1ad7e5.chunk.js +1 -0
- package/www/41286.4143914319ce70bbde19.chunk.js +1 -0
- package/www/42033.c723936a8855bd63e2e7.chunk.js +1 -0
- package/www/42206.00abfda62ecc3d4fe3d8.chunk.js +1 -0
- package/www/42244.6df7a560c7676008c11b.chunk.js +1 -0
- package/www/42351.d33d63e0380214b03fe8.chunk.js +1 -0
- package/www/42546.1a3070fe74ac2e54c74c.chunk.js +1 -0
- package/www/42635.763faac2b41802fdfc09.chunk.js +1 -0
- package/www/42870.b8321b966a90bbedb1d6.chunk.js +1 -0
- package/www/4330.b9973a8ebf133359701e.chunk.js +1 -0
- package/www/4350.536308f849b6a3be873a.chunk.js +1 -0
- package/www/43531.22bad7739c765ce1704a.chunk.js +1 -0
- package/www/44119.da8b31127255cd54ed95.chunk.js +1 -0
- package/www/44184.678acea44af5dab1fff7.chunk.js +1 -0
- package/www/44314.c51cdc8d76819a800db5.chunk.js +1 -0
- package/www/44336.d2209df0e02327df0057.chunk.js +1 -0
- package/www/44418.ed34c2b74297f2f90586.chunk.js +1 -0
- package/www/44426.81093e525739091e0578.chunk.js +1 -0
- package/www/44599.b42aefaa4c79d0e2b43b.chunk.js +1 -0
- package/www/44599.c073a0d3c812c26291eb.css +3 -0
- package/www/44717.8a83f4265befa615c3fe.chunk.js +1 -0
- package/www/44910.384eec3a00b3836128da.css +1 -0
- package/www/44910.3d5f017edc10c656aa7d.chunk.js +1 -0
- package/www/45085.8ba0c1d33608e2186d97.chunk.js +1 -0
- package/www/45101.f1714f7f719c88825d75.chunk.js +1 -0
- package/www/45198.c71174a239823da4a824.chunk.js +1 -0
- package/www/45315.5f462d374685a41835b6.chunk.js +1 -0
- package/www/45568.ab4ed4bd7c2bc72cb6f0.chunk.js +2 -0
- package/www/45568.ab4ed4bd7c2bc72cb6f0.chunk.js.LICENSE.txt +1 -0
- package/www/45645.2f7e5f7df67f82a82670.chunk.js +1 -0
- package/www/45654.1da51a7b2bc0c71828e5.chunk.js +1 -0
- package/www/45859.e8dcce8f71a536a30cda.chunk.js +1 -0
- package/www/4588.d6bde28623ba22810c27.chunk.js +1 -0
- package/www/45995.4dda14c2f98251d83dd3.chunk.js +1 -0
- package/www/46226.2abb7c79d9723d9ab236.chunk.js +1 -0
- package/www/46555.e3701e816d2a00b028b4.chunk.js +1 -0
- package/www/46629.9039e3158f55405c5856.chunk.js +1 -0
- package/www/46634.3aebfb8dd8b16615bdfc.chunk.js +1 -0
- package/www/4665.fa82523711199c18b452.chunk.js +1 -0
- package/www/46655.76ded64dd120088ae54a.chunk.js +1 -0
- package/www/46783.38c4bb39a145d2669cc8.chunk.js +1 -0
- package/www/46902.ae7a4bb861dbba8487cb.chunk.js +1 -0
- package/www/46967.03edf3bb7ee048ee10be.css +1 -0
- package/www/46967.bundle.js +2 -0
- package/www/46967.bundle.js.LICENSE.txt +62 -0
- package/www/47066.8501db96b310c5236fbd.chunk.js +1 -0
- package/www/47102.08d31cedb607d2dcc462.chunk.js +2 -0
- package/www/47102.08d31cedb607d2dcc462.chunk.js.LICENSE.txt +1 -0
- package/www/47102.c3cf0b7d0055206a0dfb.css +1 -0
- package/www/47203.31029f17eda43682b271.chunk.js +1 -0
- package/www/47279.ee7aa2601493726fa16b.chunk.js +1 -0
- package/www/47352.06e912cf03532e2d00ee.chunk.js +1 -0
- package/www/47472.ead193e1e4096120377c.css +1 -0
- package/www/47472.f16a508b3c09cde4868f.chunk.js +1 -0
- package/www/47649.ff8086d3bdcd0eae3246.chunk.js +1 -0
- package/www/47886.2227149884409c97c464.chunk.js +1 -0
- package/www/4800.fc4aca768cc0befdfa96.chunk.js +1 -0
- package/www/48016.e501e1e84bd87929dfc6.chunk.js +1 -0
- package/www/48230.a4a798b17ea8afeeaa83.chunk.js +1 -0
- package/www/48232.134409824a0b9855e352.chunk.js +1 -0
- package/www/48315.3a4e09742e223c15fa94.chunk.js +1 -0
- package/www/48557.cdc4fc8f784908fcdef6.chunk.js +1 -0
- package/www/48631.43b9ec289191f9613c7b.chunk.js +1 -0
- package/www/48979.fe19cf280dfec2089780.chunk.js +1 -0
- package/www/49092.e9d80a53c7b83479360a.chunk.js +1 -0
- package/www/49182.22fad06d3f89bcc7f92c.chunk.js +1 -0
- package/www/49275.33d120633061a9265caa.chunk.js +1 -0
- package/www/49275.667e823ce6c9b896cd5b.css +1 -0
- package/www/49427.fa82523711199c18b452.chunk.js +1 -0
- package/www/49516.bd4fcff26bd6434ea7fa.chunk.js +1 -0
- package/www/4952.3353e359c110a315f0b9.chunk.js +1 -0
- package/www/4969.4d966ab630991ceee3a8.chunk.js +1 -0
- package/www/49702.c12bae1c6737452ea830.chunk.js +1 -0
- package/www/49771.934d9027d7a3ed46e1cd.chunk.js +1 -0
- package/www/49882.4fad4d40868a9fae9ff0.chunk.js +1 -0
- package/www/49931.62f927ff9ff2ec423a5a.chunk.js +1 -0
- package/www/50256.2938c27fef3c42aa5f4e.chunk.js +1 -0
- package/www/50304.92a4007d7d3a944a6093.chunk.js +1 -0
- package/www/50352.5427cc0541ad3b448f58.chunk.js +1 -0
- package/www/50959.4d8604e1fa199bbd0c6b.chunk.js +1 -0
- package/www/51239.5449494861dae97d4368.chunk.js +1 -0
- package/www/51664.450bfed9f284319ca990.chunk.js +1 -0
- package/www/51797.0a30071e000698aa4cd8.chunk.js +1 -0
- package/www/5218.557444624b12fb0166b6.chunk.js +1 -0
- package/www/52294.ade80ed07e11118cc05a.chunk.js +1 -0
- package/www/52361.4dc1e171984a8e6fea43.css +2 -0
- package/www/52361.63ac4090b9e6bf3be1f1.chunk.js +1 -0
- package/www/52470.191f468ac6550373c2c9.chunk.js +1 -0
- package/www/5289.70589ab0f4b4c4a24f50.chunk.js +1 -0
- package/www/53054.7723323bdb1b44f2f548.chunk.js +1 -0
- package/www/53402.8cd8dec5ae93323650f4.chunk.js +1 -0
- package/www/53408.a083386c2f0baceecd7f.chunk.js +1 -0
- package/www/53610.9bb06dac33bf0f65e0bf.chunk.js +1 -0
- package/www/53687.4c07532713deabe0cf5b.chunk.js +1 -0
- package/www/53736.a0af9b4fe452a44fe3a4.chunk.js +1 -0
- package/www/53823.84b7d1702e48fc03eeba.chunk.js +1 -0
- package/www/53872.a75e089da1e9d88cba8e.chunk.js +1 -0
- package/www/54147.66b9ce8d4c8d8df0108c.chunk.js +1 -0
- package/www/54384.359285e1fdea52a411f0.chunk.js +1 -0
- package/www/54552.244b2e6c6410a7dc4ed4.chunk.js +1 -0
- package/www/54623.b483681abaab07461325.css +1 -0
- package/www/54623.c584e2fb11478a872cc9.chunk.js +1 -0
- package/www/54693.70e6d166fd56544c490e.chunk.js +1 -0
- package/www/54738.f43993231f782a76656b.chunk.js +1 -0
- package/www/54847.fff2a5ef0ced820e0cdf.chunk.js +1 -0
- package/www/55075.d80e8adfd8ed629c3a1f.chunk.js +1 -0
- package/www/55355.99f1c2a4f2c37f89e04a.chunk.js +1 -0
- package/www/55645.76685b9facb596525286.chunk.js +1 -0
- package/www/55802.f8496f55901a6b8dfa6f.chunk.js +2 -0
- package/www/55802.f8496f55901a6b8dfa6f.chunk.js.LICENSE.txt +1 -0
- package/www/56068.0781347dabc19e98eae3.chunk.js +1 -0
- package/www/56127.f991ed447313fa59390e.chunk.js +1 -0
- package/www/56213.a6cde3c8ba80d7030952.chunk.js +1 -0
- package/www/56754.f4b0bd403f5b7b35d13d.chunk.js +1 -0
- package/www/56778.c5ef93ae44d0379c9173.chunk.js +1 -0
- package/www/56785.e283cfd281738bf63c5e.chunk.js +1 -0
- package/www/5692.284dcfd7d05bdc343807.chunk.js +1 -0
- package/www/56941.048f97852aff23b4a2e5.chunk.js +1 -0
- package/www/57104.c5a20a2157c3baad2ef7.chunk.js +1 -0
- package/www/57308.80b6da5de6af7ff5617c.chunk.js +1 -0
- package/www/57407.fd8d0c491d4f1c953017.chunk.js +1 -0
- package/www/57663.4a0a3cf21647184072e4.chunk.js +1 -0
- package/www/57688.0f21f84159d94a559f6c.chunk.js +1 -0
- package/www/57949.890260722af4eefd0e71.chunk.js +1 -0
- package/www/57965.26dd509418c86f1d915c.chunk.js +1 -0
- package/www/58292.c31433fa79506ef461f1.chunk.js +1 -0
- package/www/58389.c31eccb6b688da49e8e6.chunk.js +1 -0
- package/www/58807.d525f4c425aa95316c53.chunk.js +1 -0
- package/www/59034.85fd9053c675fac1ac7e.chunk.js +1 -0
- package/www/59127.3d4c6cc5b59fb02d5da1.chunk.js +1 -0
- package/www/59186.9366e3b7d95471a15705.chunk.js +1 -0
- package/www/59222.ad8db1ef52e965ea787a.chunk.js +1 -0
- package/www/59258.478f0549ad435368bc8a.chunk.js +1 -0
- package/www/59290.c651b8d08e70d17f522d.chunk.js +1 -0
- package/www/59456.25ccecb20c57f96d859c.chunk.js +1 -0
- package/www/59459.4d50dbebc77870ab1d40.chunk.js +1 -0
- package/www/59498.5c5877ea94fb9b055d0a.chunk.js +1 -0
- package/www/59553.710162c69d10b457fc42.chunk.js +1 -0
- package/www/59613.4e0c9b0aed530eae5b93.chunk.js +1 -0
- package/www/59631.a5f100ca0aa18b26d77a.chunk.js +1 -0
- package/www/59670.78b10a8dcfc2e52d84a7.chunk.js +1 -0
- package/www/59801.684b62f968928a0322f4.chunk.js +1 -0
- package/www/59801.ba78708e821289d81fe1.css +2 -0
- package/www/59867.46e0fcbd1a6543776a7b.chunk.js +1 -0
- package/www/59871.748b370ef92753c59d85.chunk.js +1 -0
- package/www/5996.3ba6e1a4ca85802cdc57.chunk.js +1 -0
- package/www/5996.e6b901a15202346f9ee4.css +1 -0
- package/www/60278.18d089b0eb6c432c00e6.chunk.js +1 -0
- package/www/60278.e6b901a15202346f9ee4.css +1 -0
- package/www/60347.6a8933f6b7f451009b24.chunk.js +1 -0
- package/www/60389.31ecb542e720edc29088.chunk.js +1 -0
- package/www/60545.dd706d73e94a95788879.chunk.js +1 -0
- package/www/60607.99b4e7093f1e284e3961.chunk.js +1 -0
- package/www/60850.948fd7bea7d5742ffc0e.chunk.js +1 -0
- package/www/60910.e06d664893d325ef2b85.chunk.js +1 -0
- package/www/6140.3b6e6b4e55a292de264d.chunk.js +1 -0
- package/www/61470.579917fe550ea650a8d0.chunk.js +1 -0
- package/www/6157.a14f1bd3270a147be772.chunk.js +1 -0
- package/www/61695.d1d93e07a510cb5c72b4.chunk.js +1 -0
- package/www/61745.8195d76d4beff202020f.chunk.js +1 -0
- package/www/61989.133b82da373746471685.chunk.js +1 -0
- package/www/61989.a66306069d8df20abbd3.css +3 -0
- package/www/62083.ed07ffc5920c00112000.chunk.js +1 -0
- package/www/6223.6fbd7b5c3ac5f6a3a387.chunk.js +1 -0
- package/www/62248.c51cdc8d76819a800db5.chunk.js +1 -0
- package/www/62265.164825b64fde038500e5.chunk.js +1 -0
- package/www/62275.cb303b8c83690fde2929.chunk.js +1 -0
- package/www/62368.62bee403583fc591a741.chunk.js +1 -0
- package/www/62373.0787be9787b2f99d3152.chunk.js +1 -0
- package/www/62654.46c1a6d716ebf4a3a544.chunk.js +1 -0
- package/www/62762.4dcfb39a4d100a7ec1ca.chunk.js +1 -0
- package/www/6282.33397626ba6e179dff5f.chunk.js +1 -0
- package/www/62840.529ad263def31f084c62.css +3 -0
- package/www/62882.384eec3a00b3836128da.css +1 -0
- package/www/62882.ec04eb5e3add9a092c56.chunk.js +1 -0
- package/www/63025.9621d175054dc0f74a04.chunk.js +1 -0
- package/www/63039.0e55ee4e9a806b3b45ee.chunk.js +1 -0
- package/www/6339.8d8b974bb0477c170b07.chunk.js +1 -0
- package/www/63525.b8fe6eaa9ff3025d892c.chunk.js +1 -0
- package/www/63585.1f7a4ef2c375a1b4db28.chunk.js +1 -0
- package/www/6368.c64b97b9cb20b3772646.chunk.js +1 -0
- package/www/63741.56f0258f4df1fcfe33a6.chunk.js +1 -0
- package/www/63741.92d62a235d695e5a00ca.css +5 -0
- package/www/64422.3eb8906c2038e6c3ec42.chunk.js +1 -0
- package/www/6464.011b01f894cea75a3aa2.chunk.js +1 -0
- package/www/64671.1120e9f12b8046e5aca6.chunk.js +1 -0
- package/www/64790.1474e86e2968130aac5f.chunk.js +1 -0
- package/www/6496.820f6a55d98c6299419b.css +1 -0
- package/www/6496.a2625db83f5e6116653d.chunk.js +1 -0
- package/www/65005.2641321a78d62b908c7b.chunk.js +1 -0
- package/www/65202.32934b673c12d90b7bc8.chunk.js +1 -0
- package/www/653.48092087f91549065db8.chunk.js +1 -0
- package/www/65312.c12eb50b429fcf557551.chunk.js +1 -0
- package/www/6546.38b7cdf41427d3035a15.chunk.js +1 -0
- package/www/65470.423f60583230aec41be9.chunk.js +1 -0
- package/www/65920.bc3046fd01c123994283.chunk.js +1 -0
- package/www/66124.a88d63383cc5ff0a89aa.chunk.js +1 -0
- package/www/66429.46d365b88e6331aabe7b.chunk.js +1 -0
- package/www/66884.1cd569ac04ac2a6cd721.css +2 -0
- package/www/66907.c1099bcc4adc88034837.chunk.js +1 -0
- package/www/66923.0db1c08d003d3c7780c6.css +1 -0
- package/www/66923.aa4d29e6cde8593235c4.chunk.js +1 -0
- package/www/66955.6968b693f859f60d3a3f.chunk.js +1 -0
- package/www/66995.8690f11c04cf2356a7aa.chunk.js +1 -0
- package/www/67056.efef8ac9e3c33a8da956.chunk.js +1 -0
- package/www/67248.01408b2b05dbac53a2f9.chunk.js +1 -0
- package/www/67322.2af0a1a39d8974eda39a.chunk.js +1 -0
- package/www/67503.16eb262bbe4804efa17e.chunk.js +1 -0
- package/www/67515.b33e5fb92f51d4ee2129.chunk.js +1 -0
- package/www/6753.2c803aec4e4517e9cf44.chunk.js +1 -0
- package/www/67734.32c1655da3a732673cf3.chunk.js +2 -0
- package/www/67734.32c1655da3a732673cf3.chunk.js.LICENSE.txt +21 -0
- package/www/67942.6d2511c4a5cd18b8a781.chunk.js +1 -0
- package/www/68085.7598e492dd997997594b.chunk.js +1 -0
- package/www/68134.841dc8f96c0ab4e37b73.chunk.js +1 -0
- package/www/6828.f7e490be04bfa0718826.chunk.js +1 -0
- package/www/68385.008288b25e83f732c8e2.chunk.js +1 -0
- package/www/68402.1538d7133cecb0190050.chunk.js +1 -0
- package/www/68413.fd47b46245a5934670be.chunk.js +1 -0
- package/www/68448.92582e12be9bb8470b00.chunk.js +1 -0
- package/www/68481.9e175af00b7bf2330bda.chunk.js +1 -0
- package/www/685.beb0dc74d98242f1359a.chunk.js +1 -0
- package/www/68603.6c4daa3c063b03183af4.chunk.js +1 -0
- package/www/68603.bfde69083a6ae513ba97.css +3 -0
- package/www/68971.add693c416ecf0cf921e.chunk.js +1 -0
- package/www/69260.724083a2d4fea0a0e22c.chunk.js +1 -0
- package/www/6940.60007da63834710b4a64.chunk.js +1 -0
- package/www/69520.7ddaec0e7b314b7f1226.chunk.js +1 -0
- package/www/69729.2a4bd44922cb7a5a276b.chunk.js +1 -0
- package/www/69729.cd82215571c37ba5ff1e.css +2 -0
- package/www/69773.70737cb405476ba96346.chunk.js +1 -0
- package/www/69793.0d78c17b3976d7125af7.chunk.js +1 -0
- package/www/69793.2afc548e31bf7838dbba.css +1 -0
- package/www/69881.311682122fe78447c162.chunk.js +1 -0
- package/www/69881.85d5c8ac3936b68e702e.css +1 -0
- package/www/7006.0e66e010907144fcddd5.chunk.js +1 -0
- package/www/70179.055d0c90e45760254000.chunk.js +1 -0
- package/www/70242.50f1516209af161ccd2c.chunk.js +1 -0
- package/www/70356.892520fa210989c913b5.chunk.js +1 -0
- package/www/7046.b7059bdefec8edb5431e.chunk.js +1 -0
- package/www/70525.a75300d5880d41709b94.chunk.js +1 -0
- package/www/70538.3b7704dc35185792d64b.css +1 -0
- package/www/70538.d6c399619eb76106c279.chunk.js +2 -0
- package/www/70538.d6c399619eb76106c279.chunk.js.LICENSE.txt +1 -0
- package/www/70546.65ae15ab3dfeedf2c4c8.chunk.js +1 -0
- package/www/70712.d190199560416b290687.chunk.js +1 -0
- package/www/7082.a8bf4b8be729a4b3c8b0.chunk.js +1 -0
- package/www/70831.e2c00925861f2a08979e.chunk.js +1 -0
- package/www/71103.24d1c0c56e491cc31f9f.chunk.js +1 -0
- package/www/71454.46d2c499ae1164063e43.css +1 -0
- package/www/71454.6f226f75b9359303c24a.chunk.js +1 -0
- package/www/71680.d28f69c4aa446ebe5a27.chunk.js +1 -0
- package/www/71805.79e55e6d30c7ff145bef.chunk.js +1 -0
- package/www/71808.fa82523711199c18b452.chunk.js +1 -0
- package/www/71830.043397bf8e1a49f82a2d.css +1 -0
- package/www/71830.466454b43fc846ba9455.chunk.js +1 -0
- package/www/7184.869df815febd2c11640c.chunk.js +1 -0
- package/www/71934.520fbed2e300705d5d0e.chunk.js +1 -0
- package/www/72044.76a2f66e3b54b6e3f530.chunk.js +1 -0
- package/www/72044.aca0df64c251e55de26b.css +7 -0
- package/www/72143.694bf196c1052b788cc6.chunk.js +1 -0
- package/www/72241.cfdf42c41898f2052aa5.chunk.js +1 -0
- package/www/72327.0241239b0df63cc77f92.chunk.js +1 -0
- package/www/72389.4cac7fba5e9d40660a0d.chunk.js +1 -0
- package/www/72409.e44c7e8e98d0c720b59e.chunk.js +1 -0
- package/www/72422.3bcffa4f38d08d04123c.chunk.js +1 -0
- package/www/72521.d31ee84e2c9918dfbd9d.chunk.js +1 -0
- package/www/72681.75fdfc69953da6603f9d.css +3 -0
- package/www/72681.ad4298295b25895cf8e4.chunk.js +1 -0
- package/www/73041.de059eb86a8a9f358f73.chunk.js +1 -0
- package/www/73073.dbbe8bf6d415a8a1f83b.chunk.js +1 -0
- package/www/73233.820553057e01362cf06f.chunk.js +2 -0
- package/www/73233.820553057e01362cf06f.chunk.js.LICENSE.txt +5 -0
- package/www/73557.d41c49b3803bc83e5e6d.chunk.js +1 -0
- package/www/73653.c22d0cb070bdd711c82e.chunk.js +1 -0
- package/www/73769.aa416205c4041b94da16.chunk.js +1 -0
- package/www/73775.328f37fbd89d1ebb43bb.chunk.js +1 -0
- package/www/7389.bcf94941a0963ed00372.chunk.js +1 -0
- package/www/73913.cd4c40ed65d908cf027e.chunk.js +1 -0
- package/www/73957.50c733560ce1f2cc71ff.chunk.js +1 -0
- package/www/74317.34ce77d63167f8c37ca8.chunk.js +1 -0
- package/www/74535.f698e40b2d689693fd4b.chunk.js +1 -0
- package/www/74645.241d4e2ce583ffc91ee4.chunk.js +1 -0
- package/www/74645.f87d086900749f799ea2.css +2 -0
- package/www/74776.ef5f72d7d4b45f5fe3f8.chunk.js +1 -0
- package/www/74959.8a0032b5a3eb36d81f4a.chunk.js +1 -0
- package/www/75101.6df7a560c7676008c11b.chunk.js +1 -0
- package/www/75209.7074aef6806b56e665ad.chunk.js +1 -0
- package/www/75336.a0a122d93bfcefc3b28e.chunk.js +1 -0
- package/www/75681.d6bf8403eea4c7ef13e6.chunk.js +1 -0
- package/www/75783.db1eeb700502823879c2.chunk.js +1 -0
- package/www/76004.596c29bba17a38e1a9ed.chunk.js +1 -0
- package/www/76068.d5d6e3a74aa53598781a.chunk.js +1 -0
- package/www/76183.9806fcbdaddee7f3dc63.chunk.js +1 -0
- package/www/76476.35d448ae9c84cd7f5867.chunk.js +1 -0
- package/www/76542.033e6959b8ca2bb863d3.css +1 -0
- package/www/76542.15de4ad05e464892082c.chunk.js +1 -0
- package/www/7662.4813545f3269d287465a.chunk.js +1 -0
- package/www/76892.2a6dc51bbc670e638e1e.chunk.js +1 -0
- package/www/77004.4dc1e171984a8e6fea43.css +2 -0
- package/www/77004.88fcb90b98d5af32d850.chunk.js +1 -0
- package/www/7720.a00d14d5ec094516b17b.chunk.js +1 -0
- package/www/77236.e9da4c3111ec90b25327.chunk.js +1 -0
- package/www/77350.43194372bfcf37a6b509.chunk.js +1 -0
- package/www/77499.3e44c61f1e051b0ff466.chunk.js +1 -0
- package/www/77551.936c43ca73712da12e57.chunk.js +1 -0
- package/www/77613.d905cb2254a7e274252b.chunk.js +1 -0
- package/www/77826.e1d0f90cf600674783a2.chunk.js +1 -0
- package/www/7802.387fcfaa7c2ce77245ec.chunk.js +1 -0
- package/www/78283.8a762f8ee2a3b006d5f1.chunk.js +1 -0
- package/www/78588.cbf276c13c41300a918e.chunk.js +1 -0
- package/www/78651.d0435760c49846cd2945.chunk.js +1 -0
- package/www/78654.54b1dc5183535998dfa9.chunk.js +1 -0
- package/www/78747.f5cb18607247f4d19295.chunk.js +1 -0
- package/www/78938.1fe19c216761bd72cbd5.chunk.js +1 -0
- package/www/78968.a131722fe82a76f957e4.chunk.js +1 -0
- package/www/78995.13ebaf554ded59be91f7.chunk.js +1 -0
- package/www/79033.30ea47853200c7a05173.chunk.js +1 -0
- package/www/79245.ebc48bda73527bdfa36e.css +1 -0
- package/www/79336.22741acf845e478c6f3d.chunk.js +1 -0
- package/www/79357.675e1f1461d7705702ac.chunk.js +1 -0
- package/www/79657.c93598b16e75e8952617.chunk.js +1 -0
- package/www/79681.e1d5353fa8b802b0e94a.chunk.js +1 -0
- package/www/79870.77130ce83fa324fe650d.chunk.js +1 -0
- package/www/80083.7a16e3bb446c4a138ced.chunk.js +1 -0
- package/www/80106.9c93c0399234d2361e6b.chunk.js +1 -0
- package/www/80144.e65265c19683fc836e3b.chunk.js +1 -0
- package/www/80401.01b40a404b52ef2c31de.chunk.js +1 -0
- package/www/80625.62403d665d6052691154.chunk.js +1 -0
- package/www/80999.a301655f650b159635eb.chunk.js +1 -0
- package/www/80999.b483681abaab07461325.css +1 -0
- package/www/8117.b20dc23cd1c982b00a2b.chunk.js +1 -0
- package/www/8140.6572b84decfc0332a1a7.chunk.js +1 -0
- package/www/81477.b773dc6ab112776f3298.chunk.js +1 -0
- package/www/81508.0e857cf57199c7a82aa2.chunk.js +1 -0
- package/www/81613.c740550ffb49da467fbb.css +1 -0
- package/www/81613.da4b1f96f2d812035be8.chunk.js +1 -0
- package/www/81790.0889d90e8012c7119b7a.chunk.js +1 -0
- package/www/81949.2faeeace2f02c88a9388.chunk.js +1 -0
- package/www/81949.4dc1e171984a8e6fea43.css +2 -0
- package/www/81954.92bfa3629c1b8a3aed8b.chunk.js +1 -0
- package/www/81992.7a5b27d3f3209dc548e1.chunk.js +1 -0
- package/www/82067.7b575654853a9bc8f384.chunk.js +1 -0
- package/www/82381.38c83d39877828c0d309.chunk.js +1 -0
- package/www/82393.e8cef3972fb438a53eb1.chunk.js +1 -0
- package/www/82509.74e447466c96079d37bf.chunk.js +1 -0
- package/www/82681.613d570ad9e00091cb3f.chunk.js +1 -0
- package/www/82718.e975663faaac71ee6a1f.chunk.js +1 -0
- package/www/82728.6a8933f6b7f451009b24.chunk.js +1 -0
- package/www/83116.ddda2c4a0dd5d5ff7336.chunk.js +1 -0
- package/www/83180.1e7a792308c6e41ddc48.chunk.js +1 -0
- package/www/83208.8671841ae624a9a7f003.chunk.js +1 -0
- package/www/83357.0481a3f35a51c1f38617.chunk.js +1 -0
- package/www/83370.eed7f5f4c65c4afdd558.chunk.js +1 -0
- package/www/83461.37e0a9c62b92106774b8.chunk.js +1 -0
- package/www/83518.84d86d0f301cc604d612.chunk.js +1 -0
- package/www/83619.19bce6e5d03668318ac8.chunk.js +1 -0
- package/www/83756.e9381051d2f5bf196d1b.chunk.js +1 -0
- package/www/84019.1c052899bccf78544e76.chunk.js +1 -0
- package/www/84020.bf73bd9b24e28a00e80c.chunk.js +1 -0
- package/www/84055.0848431ec7bb483ae89a.chunk.js +1 -0
- package/www/84158.b965d0fbed7b231d8996.css +1 -0
- package/www/84158.fce39de3bc6fc52f730c.chunk.js +1 -0
- package/www/84348.6e10fcc21e65c16ed553.chunk.js +1 -0
- package/www/8444.280930dddfdc96303849.chunk.js +1 -0
- package/www/84499.cda277b1072a26a9a9b8.chunk.js +1 -0
- package/www/84501.873e0a5827ed21e10553.css +1 -0
- package/www/84501.c519e2b7c417db2f6bee.chunk.js +1 -0
- package/www/84903.360aacc55a4698e6a674.chunk.js +1 -0
- package/www/85065.bfa6f0fad6b4328d259e.chunk.js +1 -0
- package/www/85234.7bea5848e2b1a33aa174.chunk.js +1 -0
- package/www/8528.d43d010f53b953d10119.chunk.js +1 -0
- package/www/85447.15cb1105bfb62154089d.chunk.js +1 -0
- package/www/8575.7c0c1963384d9ff63eda.chunk.js +1 -0
- package/www/8575.f181f20df0b13586dc25.css +1 -0
- package/www/85794.d6548f60c794bfbb2cd3.chunk.js +1 -0
- package/www/86376.87ce012f8ba76b09eb9c.css +4 -0
- package/www/86442.83e3d02d391091ea5c36.chunk.js +1 -0
- package/www/86678.584363de260c000f4e73.css +1 -0
- package/www/86707.8974ad993644b59e2e2a.chunk.js +1 -0
- package/www/86748.34a8c3db5d34b0084852.chunk.js +1 -0
- package/www/87034.623352f44e4b5dbfefbb.chunk.js +1 -0
- package/www/87074.ef2ccb91f0ef353a8e90.chunk.js +1 -0
- package/www/87219.6fc93b4bef5ea14fad02.chunk.js +1 -0
- package/www/87241.243ce18689386b08486c.chunk.js +1 -0
- package/www/87300.37f8f6672df9d27b25f5.chunk.js +1 -0
- package/www/8734.835e2a199be53fbec67c.chunk.js +1 -0
- package/www/87399.386197ca49ff8f641dbc.chunk.js +1 -0
- package/www/8752.48a741b7e428c6a2cbf0.css +1 -0
- package/www/8752.91667f102a1946dbc81a.chunk.js +1 -0
- package/www/87652.f5c35fdc0eb65cfdde95.chunk.js +1 -0
- package/www/87717.ee307ba4e2b186ad5b53.chunk.js +1 -0
- package/www/87738.6fcfc3a09a0cea86f24c.chunk.js +1 -0
- package/www/87803.7787846ed63c715d7634.chunk.js +1 -0
- package/www/88309.d313880df21a7ae5bb16.chunk.js +1 -0
- package/www/8833.77ce69033f17998d25c7.chunk.js +1 -0
- package/www/88449.0a7d265bb153d2e1ab3c.chunk.js +1 -0
- package/www/88559.f287911588e0db1eaed1.chunk.js +1 -0
- package/www/8860.d873a914568b7d0a53e7.chunk.js +1 -0
- package/www/88637.bcc8d094cfd9fd0ee791.chunk.js +1 -0
- package/www/88711.df50260b6d411bbd86da.chunk.js +1 -0
- package/www/88918.194567484a7a2b99f980.chunk.js +1 -0
- package/www/8892.8da942770a8b50b4c1c9.chunk.js +1 -0
- package/www/88981.3147f0c2c59352d0e3a5.chunk.js +1 -0
- package/www/89009.81ca2bcc6e47e0a7e0e5.chunk.js +1 -0
- package/www/89083.8c9b506eebc550bafed1.chunk.js +1 -0
- package/www/89268.e0e39f0f6208ce6c8965.chunk.js +1 -0
- package/www/89336.0fbfa783adadc917dbc4.chunk.js +1 -0
- package/www/89775.63b6e30c1e7dda6ab4ec.chunk.js +1 -0
- package/www/89903.6097d0168ff539d1a391.chunk.js +1 -0
- package/www/90156.8d81e5a610b9e9243194.chunk.js +1 -0
- package/www/90207.d34a472dfca0a2603805.chunk.js +1 -0
- package/www/90285.214e8119655fedae83bf.chunk.js +1 -0
- package/www/90810.19be4944e7a0c3ff5c5f.chunk.js +1 -0
- package/www/91054.5ec0955bfe72642be58c.chunk.js +1 -0
- package/www/91163.71692a25dea2923df610.chunk.js +1 -0
- package/www/91684.552c7787d919f50adfb3.chunk.js +1 -0
- package/www/91719.e3a7701a23e2819f1e3b.chunk.js +1 -0
- package/www/91737.46d2c499ae1164063e43.css +1 -0
- package/www/91737.b9baab0479e3b2a202c2.chunk.js +1 -0
- package/www/91763.71b4835acef4c14f7070.chunk.js +1 -0
- package/www/91786.d10df3d1f8574b8bed3e.chunk.js +1 -0
- package/www/9205.d363b445ec61ccf4f681.chunk.js +1 -0
- package/www/92102.173f44d6d01c1ee47c3f.chunk.js +1 -0
- package/www/92364.542fd0c51d750273bee1.chunk.js +1 -0
- package/www/93384.4776516ee4b9ef1375dc.chunk.js +1 -0
- package/www/93551.a4baeb2e8d605c34debc.chunk.js +1 -0
- package/www/93634.97de4c8e3aa61c4d5e98.chunk.js +1 -0
- package/www/93763.5a73e4982892a6668b51.chunk.js +1 -0
- package/www/93855.5a03a47acf849021f21e.chunk.js +1 -0
- package/www/9387.6df7a560c7676008c11b.chunk.js +1 -0
- package/www/93958.dc2c6d2f0cc42f5ee79c.chunk.js +1 -0
- package/www/93969.266b5e6103f91934f26e.chunk.js +1 -0
- package/www/94160.e50a357853ff3e0e654e.chunk.js +1 -0
- package/www/94238.9ab4b1cc10273a800eff.chunk.js +1 -0
- package/www/94247.6f937472b48e75b9cb04.chunk.js +1 -0
- package/www/9446.779d6b388d6b0c388c44.chunk.js +1 -0
- package/www/94728.c502efaf465b2c664226.chunk.js +1 -0
- package/www/94734.1526a30e2a739cfc3cba.chunk.js +1 -0
- package/www/94809.eb4370998b46edd2e1e8.chunk.js +1 -0
- package/www/95062.22dd6dea7c6d8b41cfc4.chunk.js +1 -0
- package/www/95062.8eec879acea06fa39023.css +2 -0
- package/www/95105.c51cdc8d76819a800db5.chunk.js +1 -0
- package/www/95171.e731736b1560278c6322.chunk.js +1 -0
- package/www/95454.7ebdada6cdb84acba6e9.chunk.js +2 -0
- package/www/95454.7ebdada6cdb84acba6e9.chunk.js.LICENSE.txt +1 -0
- package/www/95697.529ad263def31f084c62.css +3 -0
- package/www/95926.8c0133d208ea6285d75c.chunk.js +1 -0
- package/www/95992.e63e28bcd141d01e6962.chunk.js +1 -0
- package/www/96077.7e6c33a638b2b618f508.chunk.js +1 -0
- package/www/9611.9ced7965ec68f1223141.chunk.js +1 -0
- package/www/9684.7548089601c0d4a6f711.chunk.js +1 -0
- package/www/97073.797c5d0c5fc927d6a927.chunk.js +1 -0
- package/www/97112.e32f111ea2e6d2c7b38e.chunk.js +1 -0
- package/www/97480.060cb32185481eb3fc71.chunk.js +1 -0
- package/www/97482.6df7a560c7676008c11b.chunk.js +1 -0
- package/www/97672.88886378732de01a0a09.chunk.js +1 -0
- package/www/97689.90cace1e5c093a77b39d.chunk.js +1 -0
- package/www/98216.588a5e935759c7eb046b.chunk.js +1 -0
- package/www/98481.033e6959b8ca2bb863d3.css +1 -0
- package/www/98481.a256278d8cf20f2551ae.chunk.js +1 -0
- package/www/98610.537f74fab9da8585f340.chunk.js +1 -0
- package/www/98618.8944f222b95bb989acfe.chunk.js +1 -0
- package/www/98769.eb17c0a7cbbfd6defc54.chunk.js +1 -0
- package/www/98931.d8ecf56e8251c655e1e0.chunk.js +1 -0
- package/www/99049.ac743beeb22ff575e18b.chunk.js +1 -0
- package/www/99883.cdb8bf2456d86c774380.chunk.js +1 -0
- package/www/99911.96739e32337332dad222.chunk.js +1 -0
- package/www/MaterialIcons-Regular.08cefa1bc6566a650da7.woff +0 -0
- package/www/MaterialIcons-Regular.2d8017489da689caedc1.woff2 +0 -0
- package/www/MaterialIcons-Regular.698bd8550d863c20a3e1.ttf +0 -0
- package/www/MaterialIcons-Regular.af9a28e7f261a412f581.eot +0 -0
- package/www/ab-json.f9b38ac7a9bf6509f345.chunk.js +1 -0
- package/www/activity.b3a0796313d1218314a0.chunk.js +1 -0
- package/www/af-json.f94cdb79d6cb18fbf76b.chunk.js +1 -0
- package/www/ar-json.5c8bbb2a331f8c91e087.chunk.js +1 -0
- package/www/as-json.c9ec5dcf74b613f34865.chunk.js +1 -0
- package/www/assets/audio/silence.mp3 +0 -0
- package/www/assets/img/avatar.png +0 -0
- package/www/assets/img/devices/android.svg +4 -0
- package/www/assets/img/devices/apple.svg +1 -0
- package/www/assets/img/devices/chrome.svg +1 -0
- package/www/assets/img/devices/edge.svg +1 -0
- package/www/assets/img/devices/edgechromium.svg +1 -0
- package/www/assets/img/devices/finamp.svg +7 -0
- package/www/assets/img/devices/firefox.svg +1 -0
- package/www/assets/img/devices/firetv.svg +1 -0
- package/www/assets/img/devices/home-assistant.svg +1 -0
- package/www/assets/img/devices/html5.svg +1 -0
- package/www/assets/img/devices/kodi.svg +11 -0
- package/www/assets/img/devices/msie.svg +1 -0
- package/www/assets/img/devices/opera.svg +1 -0
- package/www/assets/img/devices/other.svg +1 -0
- package/www/assets/img/devices/playstation.svg +1 -0
- package/www/assets/img/devices/roku.svg +7 -0
- package/www/assets/img/devices/safari.svg +1 -0
- package/www/assets/img/devices/samsungtv.svg +1 -0
- package/www/assets/img/devices/titanos.svg +12 -0
- package/www/assets/img/devices/webos.svg +31 -0
- package/www/assets/img/devices/windows.svg +1 -0
- package/www/assets/img/devices/xbox.svg +1 -0
- package/www/assets/img/equalizer-paused.png +0 -0
- package/www/assets/img/equalizer.gif +0 -0
- package/www/assets/img/fresh.svg +20 -0
- package/www/assets/img/rotten.svg +1 -0
- package/www/backdropScreensaver-plugin.b5da582b42865c50390c.chunk.js +1 -0
- package/www/backups.fe49fae27db0ff6cb33d.chunk.js +1 -0
- package/www/banner-dark.31011bc0c5e6acb07879.png +0 -0
- package/www/banner-light.b113d4d1c6c07fcb73f0.png +0 -0
- package/www/be-by-json.66f767fa7b520f04453e.chunk.js +1 -0
- package/www/bg-bg-json.80bb516913c5a7470603.chunk.js +1 -0
- package/www/blurhash.worker.bundle.js +1 -0
- package/www/bn-json.ab32a30a20633f4c8a2c.chunk.js +1 -0
- package/www/bn_BD-json.d5331166ed714bc844ab.chunk.js +1 -0
- package/www/bookPlayer-plugin.55f809614832cbd9cf79.css +1 -0
- package/www/bookPlayer-plugin.9f1a07293508b053f6a8.chunk.js +2 -0
- package/www/bookPlayer-plugin.9f1a07293508b053f6a8.chunk.js.LICENSE.txt +1 -0
- package/www/bookPlayer-style-scss.55f809614832cbd9cf79.css +1 -0
- package/www/bookPlayer-style-scss.9c199262ede9dcc9645a.chunk.js +1 -0
- package/www/bookPlayer-tableOfContents.cc6c9a91fae86466c8d3.chunk.js +1 -0
- package/www/bookPlayer-template-html.085c91e49d348eab6387.chunk.js +1 -0
- package/www/br-json.c16aa93b4cd37220f88d.chunk.js +1 -0
- package/www/branding.2d2ddffb8d34c1596c9e.chunk.js +1 -0
- package/www/ca-json.20a8d18f19bdf7f10c4a.chunk.js +1 -0
- package/www/ch-json.e0add4c660aa265e4d90.chunk.js +1 -0
- package/www/chromecastPlayer-castSenderApi.9464cdc56b94a114d819.chunk.js +1 -0
- package/www/chromecastPlayer-plugin.3c6e1b12d73c84b2e1d4.chunk.js +1 -0
- package/www/ckb-json.a38a531bf45fb9d84c07.chunk.js +1 -0
- package/www/comicsPlayer-plugin.69bfe13f659ce6243479.chunk.js +2 -0
- package/www/comicsPlayer-plugin.69bfe13f659ce6243479.chunk.js.LICENSE.txt +7 -0
- package/www/comicsPlayer-plugin.819b6c930e413c7e0b31.css +1 -0
- package/www/comicsPlayer-style-scss.819b6c930e413c7e0b31.css +1 -0
- package/www/comicsPlayer-style-scss.dd279afabb6def7c0d08.chunk.js +1 -0
- package/www/config.json +50 -0
- package/www/cs-json.831ead2b5759d8726f0b.chunk.js +1 -0
- package/www/cy-json.8471b1404f9db2f06bc2.chunk.js +1 -0
- package/www/da-json.8cd34ab5bc63336d1174.chunk.js +1 -0
- package/www/de-json.11ca62412b97e366bba0.chunk.js +1 -0
- package/www/devices.63c6c846a395b0972e22.chunk.js +1 -0
- package/www/dv-json.9ef834c2dbdea05a43ea.chunk.js +1 -0
- package/www/edititemmetadata-html.73580261ddfe3c52b75c.chunk.js +1 -0
- package/www/edititemmetadata.81f5848418581057ae5a.chunk.js +1 -0
- package/www/el-json.fc264057b9e067d46bf5.chunk.js +1 -0
- package/www/empty.6de874568a98308c4a74.png +0 -0
- package/www/en-gb-json.5de216176fdfdba1cf9a.chunk.js +1 -0
- package/www/en-us-json.db7a5599b25483e42e2a.chunk.js +1 -0
- package/www/en_US-json.657cf5b036cf38af0c28.chunk.js +1 -0
- package/www/enm-json.b3e2fcb22bfb8dd88efa.chunk.js +1 -0
- package/www/eo-json.0e4eddd23d5f6229ebe0.chunk.js +1 -0
- package/www/es-ar-json.0a316bf4dd5a0cf15c54.chunk.js +1 -0
- package/www/es-json.573406cfc05cd80da4cb.chunk.js +1 -0
- package/www/es-mx-json.7053d4eeeaf431adc319.chunk.js +1 -0
- package/www/es_419-json.7d95ea6be5a4f3a68b70.chunk.js +1 -0
- package/www/es_DO-json.120d1e8560632de85c56.chunk.js +1 -0
- package/www/et-json.78ca6f5013f6929a1790.chunk.js +1 -0
- package/www/eu-json.2513cc32f369c90d83ac.chunk.js +1 -0
- package/www/experimentalWarnings-plugin.0228a8832bf32c350b47.chunk.js +1 -0
- package/www/fa-json.b2a42097e2d0d86eaba0.chunk.js +1 -0
- package/www/favicon.bc8d51405ec040305a87.ico +0 -0
- package/www/favicons/touchicon.png +0 -0
- package/www/favicons/touchicon114.png +0 -0
- package/www/favicons/touchicon144.png +0 -0
- package/www/favicons/touchicon512.png +0 -0
- package/www/favicons/touchicon72.png +0 -0
- package/www/favorites.3a3a24865e3b5fc3d8f7.chunk.js +1 -0
- package/www/favorites.fe3da754ca151eace417.css +4 -0
- package/www/fi-json.24e9357c3a0bbd881071.chunk.js +1 -0
- package/www/fil-json.438fbd8262760ea38bcf.chunk.js +1 -0
- package/www/finish-index-html.b32fc64a975f26f5382c.chunk.js +1 -0
- package/www/finish.738b407906b7ea53aadc.chunk.js +1 -0
- package/www/fo-json.4ed0f5f7ed02951917dd.chunk.js +1 -0
- package/www/fr-ca-json.5c8582414b19021a9f98.chunk.js +1 -0
- package/www/fr-json.96d63cc0689f33f563ef.chunk.js +1 -0
- package/www/ga-json.bed0081cdb29f14049e2.chunk.js +1 -0
- package/www/gl-json.5a79f2d0b544550438ae.chunk.js +1 -0
- package/www/gsw-json.3468f6b9c6c882f2a011.chunk.js +1 -0
- package/www/gu-json.e1db15382c60a79df08d.chunk.js +1 -0
- package/www/he-json.4a786c5cf1753363a35a.chunk.js +1 -0
- package/www/hi-in-json.ae6838b12fe1bbcd59f6.chunk.js +1 -0
- package/www/home-html.8ce38bc7d6dc073656d4.chunk.js +1 -0
- package/www/home-js.193c6fa7a64e52078d35.css +5 -0
- package/www/home-tsx.d3bf094b69e3b7e9a426.css +2 -0
- package/www/home-tsx.d6dc8795af99d9b3947f.chunk.js +1 -0
- package/www/home.193c6fa7a64e52078d35.css +5 -0
- package/www/home.caca5fffc9caf3ef8b23.chunk.js +1 -0
- package/www/hometab.a4729fe70426a3d965e2.css +5 -0
- package/www/hometab.de9e654dd24ed11d8f22.chunk.js +1 -0
- package/www/homevideos.0f920c2dfd2699de5fea.css +10 -0
- package/www/homevideos.6eb642fb97120c09757c.chunk.js +1 -0
- package/www/hr-json.53e8364f7172e11ae8f6.chunk.js +1 -0
- package/www/ht-json.0c1f6e91dd5fad0807a5.chunk.js +1 -0
- package/www/htmlAudioPlayer-plugin.59566b2aae80dd5c2e56.chunk.js +2 -0
- package/www/htmlAudioPlayer-plugin.59566b2aae80dd5c2e56.chunk.js.LICENSE.txt +1 -0
- package/www/htmlVideoPlayer-plugin.067cf3e86d5294617bd6.chunk.js +2 -0
- package/www/htmlVideoPlayer-plugin.067cf3e86d5294617bd6.chunk.js.LICENSE.txt +1 -0
- package/www/htmlVideoPlayer-style-scss.6919e19d581252e83cdd.css +1 -0
- package/www/htmlVideoPlayer-style-scss.ec2cfc8eec2032e63451.chunk.js +1 -0
- package/www/hu-json.49d0f4a80d04c6765969.chunk.js +1 -0
- package/www/hy-json.24e5f535aa03e8c479fc.chunk.js +1 -0
- package/www/icon-transparent.baba78f2a106d9baee83.png +0 -0
- package/www/id-json.20f6ba80bae6167593b6.chunk.js +1 -0
- package/www/index.f7535abb11bd716049aa.chunk.js +1 -0
- package/www/index.html +1 -0
- package/www/is-is-json.c3c2133700de4b7a1409.chunk.js +1 -0
- package/www/it-json.6b66192da418d95fa445.chunk.js +1 -0
- package/www/itemDetails-index-html.61e51b51db575335a632.chunk.js +1 -0
- package/www/itemDetails.c0c17b27d889eda96662.chunk.js +1 -0
- package/www/itemDetails.c8609767f06ba1b9d6a9.css +8 -0
- package/www/ja-json.442936b5bf6efa6f37dc.chunk.js +1 -0
- package/www/jbo-json.e485d9d9f6269185222e.chunk.js +1 -0
- package/www/ka-json.993cd2b283ca155a5141.chunk.js +1 -0
- package/www/kab-json.374abc369bf33c3b71f7.chunk.js +1 -0
- package/www/keys.c03b60fe478027af23f7.chunk.js +1 -0
- package/www/kk-json.12b6d61073c6882b4180.chunk.js +1 -0
- package/www/kn-json.4ec59d8d92b4576d059e.chunk.js +1 -0
- package/www/ko-json.f9f45c01b832ca2d0b04.chunk.js +1 -0
- package/www/kw-json.a07fa89d4b996c4a0749.chunk.js +1 -0
- package/www/ky-json.7713a9a033c3773fb6d6.chunk.js +1 -0
- package/www/lb-json.2ea3d4bf44d648c45260.chunk.js +1 -0
- package/www/libraries/default.woff2 +0 -0
- package/www/libraries/libarchive.wasm +0 -0
- package/www/libraries/libpgs.worker.js +1 -0
- package/www/libraries/npo.js +2 -0
- package/www/libraries/npo.js.LICENSE.txt +4 -0
- package/www/libraries/pdf.worker.js +2 -0
- package/www/libraries/pdf.worker.js.LICENSE.txt +21 -0
- package/www/libraries/subtitles-octopus-worker-legacy.js +1 -0
- package/www/libraries/subtitles-octopus-worker.js +1 -0
- package/www/libraries/subtitles-octopus-worker.wasm +0 -0
- package/www/libraries/worker-bundle.js +2 -0
- package/www/libraries/worker-bundle.js.LICENSE.txt +5 -0
- package/www/libraries-display.77108e3a19467b9f6569.chunk.js +1 -0
- package/www/libraries-metadata.4860712b6addf527719f.chunk.js +1 -0
- package/www/libraries-nfo.2ffd9779de732897fb51.chunk.js +1 -0
- package/www/libraries.1b6e01d67fa7276dd291.css +9 -0
- package/www/libraries.d26a2f50d48196e60886.chunk.js +1 -0
- package/www/library-html.dcc2bafa565379553f04.chunk.js +1 -0
- package/www/library.830a66ed7e296a8143e4.chunk.js +1 -0
- package/www/library.b965d0fbed7b231d8996.css +1 -0
- package/www/list-html.2fccfe3772389f74f8c9.chunk.js +1 -0
- package/www/list.40b08310ad3e6b6c4713.chunk.js +1 -0
- package/www/list.f1839d83c8868c6e82cc.css +10 -0
- package/www/livetv-html.2d796ed703bf42b20e73.chunk.js +1 -0
- package/www/livetv-livetvchannels.5fc261a4e81aed02e63e.chunk.js +1 -0
- package/www/livetv-livetvchannels.c1d6586feb638a7e0ef6.css +4 -0
- package/www/livetv-livetvguide.045d5d89a9e93846d938.css +5 -0
- package/www/livetv-livetvguide.21c9562f6a6e955afe09.chunk.js +1 -0
- package/www/livetv-livetvrecordings.9399ff956e642aad8cc3.css +3 -0
- package/www/livetv-livetvrecordings.e982387b3bcd5eeec87d.chunk.js +1 -0
- package/www/livetv-livetvschedule.3334c914b2a6b6f361f1.chunk.js +1 -0
- package/www/livetv-livetvschedule.9399ff956e642aad8cc3.css +3 -0
- package/www/livetv-livetvseriestimers.3b278bf4c6eef7bd61b8.chunk.js +1 -0
- package/www/livetv-livetvseriestimers.9399ff956e642aad8cc3.css +3 -0
- package/www/livetv-livetvsuggested.126d1ceb3b3898fda401.css +4 -0
- package/www/livetv-livetvsuggested.e54627afd5d905316a61.chunk.js +1 -0
- package/www/livetv-recordings.2eed0b9a281380a8d82a.chunk.js +1 -0
- package/www/livetv.ae6bfc83359267008eff.css +11 -0
- package/www/livetv.b442d3a1ce93a0ec3d56.chunk.js +1 -0
- package/www/livetvguideprovider-html.ae3b06188d073d33c1e3.chunk.js +1 -0
- package/www/livetvguideprovider.01145dddc730ae3ad429.chunk.js +1 -0
- package/www/livetvtuner-html.69b396b5e4c34e3460d0.chunk.js +1 -0
- package/www/livetvtuner.4dc1e171984a8e6fea43.css +2 -0
- package/www/livetvtuner.5bea29917f988194e4f8.chunk.js +1 -0
- package/www/logoScreensaver-plugin.7faf55f00dae2ae2fe14.chunk.js +1 -0
- package/www/logoScreensaver-style-scss.01124e8151a735bf5143.css +1 -0
- package/www/logoScreensaver-style-scss.1161b3305c308ae1ac05.chunk.js +1 -0
- package/www/logs-file.80ee8477c3ba25f2f174.chunk.js +1 -0
- package/www/logs.22d415847cf13921bce6.chunk.js +1 -0
- package/www/lt-lt-json.3b202fe78ae13a62c437.chunk.js +1 -0
- package/www/lv-json.3b8a384e8542f4f3d346.chunk.js +1 -0
- package/www/lyrics-html.ef96ab2e93a37d1d37aa.chunk.js +1 -0
- package/www/lyrics.47280782d601234a9f36.chunk.js +1 -0
- package/www/lyrics.9625003329b18be27f24.css +4 -0
- package/www/main.jellyfin.531d16f3e53182483f0c.css +21 -0
- package/www/main.jellyfin.bundle.js +2 -0
- package/www/main.jellyfin.bundle.js.LICENSE.txt +3 -0
- package/www/manifest.json +32 -0
- package/www/mg-json.2772a599cebe2d271327.chunk.js +1 -0
- package/www/mi-json.aa2371a07e45ac856a18.chunk.js +1 -0
- package/www/mk-json.ef469f3b82bf12e6a532.chunk.js +1 -0
- package/www/ml-json.bf01787e06468e2a1c1d.chunk.js +1 -0
- package/www/mn-json.0ff71a4da32ae77bd02a.chunk.js +1 -0
- package/www/movies-moviecollections.4a4739da334460fe5b4d.css +5 -0
- package/www/movies-moviecollections.7d62d934e6c0d2309c59.chunk.js +1 -0
- package/www/movies-moviegenres.0a37d86b1a206c539952.chunk.js +1 -0
- package/www/movies-moviegenres.9399ff956e642aad8cc3.css +3 -0
- package/www/movies-movies-html.e46b23a6e0232ba19d7c.chunk.js +1 -0
- package/www/movies-movies.04b9944684c735e904c1.chunk.js +1 -0
- package/www/movies-movies.346cc652b7004c7d7134.css +6 -0
- package/www/movies-moviesrecommended.2dc2cf4af9e9d639ce92.chunk.js +1 -0
- package/www/movies-moviesrecommended.de76fc4246dd02899a89.css +8 -0
- package/www/movies.0f920c2dfd2699de5fea.css +10 -0
- package/www/movies.4106553c773ffeda5bc3.chunk.js +1 -0
- package/www/mr-json.54b930c33f7cbb3430c0.chunk.js +1 -0
- package/www/ms-json.2ef7a3ca2dd65bedb764.chunk.js +1 -0
- package/www/mt-json.3192e829187509ee59f3.chunk.js +1 -0
- package/www/music-music-html.0825e46fb57aa6751ccc.chunk.js +1 -0
- package/www/music-musicalbums.04b9944684c735e904c1.chunk.js +1 -0
- package/www/music-musicalbums.11618d599d3a1ff28942.css +6 -0
- package/www/music-musicartists.04b9944684c735e904c1.chunk.js +1 -0
- package/www/music-musicartists.11618d599d3a1ff28942.css +6 -0
- package/www/music-musicgenres.6cd00a795341797414d4.chunk.js +1 -0
- package/www/music-musicgenres.9399ff956e642aad8cc3.css +3 -0
- package/www/music-musicplaylists.9399ff956e642aad8cc3.css +3 -0
- package/www/music-musicplaylists.f248d5dfdb674305b30b.chunk.js +1 -0
- package/www/music-musicrecommended.0e26b3c6499b3d353304.css +7 -0
- package/www/music-musicrecommended.85f5b5d049cc541d4b77.chunk.js +1 -0
- package/www/music-songs.202093eaf305fedfbc41.css +5 -0
- package/www/music-songs.b25792d809f6c2b940c2.chunk.js +1 -0
- package/www/music.0f920c2dfd2699de5fea.css +10 -0
- package/www/music.c9283625aa8ef4ae59d4.chunk.js +1 -0
- package/www/my-json.cabae35b5a68d79bf75c.chunk.js +1 -0
- package/www/nb-json.c2a1f0deabbf3a771b55.chunk.js +1 -0
- package/www/ne-json.af00b804957ff520c7b8.chunk.js +1 -0
- package/www/networking-html.4a61cc55192c23085dcf.chunk.js +1 -0
- package/www/networking.34cfc227b7f7bfbc8676.chunk.js +1 -0
- package/www/networking.4dc1e171984a8e6fea43.css +2 -0
- package/www/nl-json.1b97130650a57c023a5d.chunk.js +1 -0
- package/www/nn-json.eeef06ee14e7528b19cf.chunk.js +1 -0
- package/www/node_modules.@jellyfin.libass-wasm.8dcfb0ee7fb67255fe6d.chunk.js +1 -0
- package/www/node_modules.@jellyfin.sdk.bundle.js +2 -0
- package/www/node_modules.@jellyfin.sdk.bundle.js.LICENSE.txt +1 -0
- package/www/node_modules.@mui.icons-material.bundle.js +1 -0
- package/www/node_modules.@mui.material.bundle.js +1 -0
- package/www/node_modules.@mui.system.bundle.js +1 -0
- package/www/node_modules.@mui.utils.bundle.js +1 -0
- package/www/node_modules.@mui.x-date-pickers.170228dfe32c48e7dd1d.chunk.js +1 -0
- package/www/node_modules.@popperjs.core.bundle.js +1 -0
- package/www/node_modules.@remix-run.router.bundle.js +2 -0
- package/www/node_modules.@remix-run.router.bundle.js.LICENSE.txt +12 -0
- package/www/node_modules.@tanstack.query-core.bundle.js +2 -0
- package/www/node_modules.@tanstack.query-core.bundle.js.LICENSE.txt +1 -0
- package/www/node_modules.@tanstack.table-core.4d12ce2639beaa5b8880.chunk.js +2 -0
- package/www/node_modules.@tanstack.table-core.4d12ce2639beaa5b8880.chunk.js.LICENSE.txt +10 -0
- package/www/node_modules.@tanstack.virtual-core.77eaf9b6feedd4e74913.chunk.js +1 -0
- package/www/node_modules.@xmldom.xmldom.e7c9c292c1869576604c.chunk.js +1 -0
- package/www/node_modules.abortcontroller-polyfill.bundle.js +1 -0
- package/www/node_modules.axios.bundle.js +2 -0
- package/www/node_modules.axios.bundle.js.LICENSE.txt +1 -0
- package/www/node_modules.core-js.bundle.js +1 -0
- package/www/node_modules.date-fns._lib.6a36280083a45271c884.chunk.js +1 -0
- package/www/node_modules.date-fns.a4fc07d6d209f74cd8a0.chunk.js +1 -0
- package/www/node_modules.date-fns.esm.bundle.js +1 -0
- package/www/node_modules.date-fns.format.3248065c0a445a07e614.chunk.js +1 -0
- package/www/node_modules.date-fns.isMatch.b5627fe6ba9099e94eb9.chunk.js +1 -0
- package/www/node_modules.date-fns.locale.be-tarask.34f00097866ff40ede2d.chunk.js +1 -0
- package/www/node_modules.date-fns.locale.be.2516fc492eb52c28482f.chunk.js +1 -0
- package/www/node_modules.date-fns.locale.kk.96c958b22037a0e9a74a.chunk.js +1 -0
- package/www/node_modules.date-fns.locale.ru.204e9a52d45bf6228476.chunk.js +1 -0
- package/www/node_modules.date-fns.locale.ta.64fb2a3a8e86ac027795.chunk.js +1 -0
- package/www/node_modules.date-fns.locale.uk.2e89fdaa5d7e3aefef53.chunk.js +1 -0
- package/www/node_modules.date-fns.parse.a90c3fe5a72d818766c3.chunk.js +1 -0
- package/www/node_modules.dompurify.bundle.js +2 -0
- package/www/node_modules.dompurify.bundle.js.LICENSE.txt +1 -0
- package/www/node_modules.entities.d297a174fde5c8f3fbc7.chunk.js +1 -0
- package/www/node_modules.epubjs.e8e2a24909ffe427c795.chunk.js +1 -0
- package/www/node_modules.flv.js.0f24d33035c950e4e069.chunk.js +2 -0
- package/www/node_modules.flv.js.0f24d33035c950e4e069.chunk.js.LICENSE.txt +283 -0
- package/www/node_modules.history.bundle.js +1 -0
- package/www/node_modules.hls.js.d1fbdb00c8f7e5cc7cb8.chunk.js +1 -0
- package/www/node_modules.intersection-observer.bundle.js +1 -0
- package/www/node_modules.jellyfin-apiclient.bundle.js +2 -0
- package/www/node_modules.jellyfin-apiclient.bundle.js.LICENSE.txt +1 -0
- package/www/node_modules.jquery.bundle.js +2 -0
- package/www/node_modules.jquery.bundle.js.LICENSE.txt +10 -0
- package/www/node_modules.jstree.53d3d6f2b783a4aef76a.chunk.js +2 -0
- package/www/node_modules.jstree.53d3d6f2b783a4aef76a.chunk.js.LICENSE.txt +67 -0
- package/www/node_modules.jszip.c4a58cbf99c347b50bc6.chunk.js +2 -0
- package/www/node_modules.jszip.c4a58cbf99c347b50bc6.chunk.js.LICENSE.txt +11 -0
- package/www/node_modules.libpgs.d1eeb7be8d71b7ab114d.chunk.js +1 -0
- package/www/node_modules.linkify-it.b39967a31bdcf2f7ae31.chunk.js +1 -0
- package/www/node_modules.localforage.4b2a2f8b573f0c35e266.chunk.js +2 -0
- package/www/node_modules.localforage.4b2a2f8b573f0c35e266.chunk.js.LICENSE.txt +6 -0
- package/www/node_modules.lodash-es.bundle.js +1 -0
- package/www/node_modules.markdown-it.ab3f9d08cb52d5a9c2d4.chunk.js +1 -0
- package/www/node_modules.material-react-table.1b44fb088e2188e27421.chunk.js +1 -0
- package/www/node_modules.pdfjs-dist.a463f5c2034b4bca7c76.chunk.js +2 -0
- package/www/node_modules.pdfjs-dist.a463f5c2034b4bca7c76.chunk.js.LICENSE.txt +23 -0
- package/www/node_modules.react-dom.bundle.js +2 -0
- package/www/node_modules.react-dom.bundle.js.LICENSE.txt +9 -0
- package/www/node_modules.react-lazy-load-image-component.4c0850deb4bb234feecf.chunk.js +1 -0
- package/www/node_modules.react-router-dom.bundle.js +2 -0
- package/www/node_modules.react-router-dom.bundle.js.LICENSE.txt +12 -0
- package/www/node_modules.react-router.bundle.js +2 -0
- package/www/node_modules.react-router.bundle.js.LICENSE.txt +10 -0
- package/www/node_modules.react-transition-group.bundle.js +1 -0
- package/www/node_modules.regenerator-runtime.bundle.js +1 -0
- package/www/node_modules.resize-observer-polyfill.bundle.js +1 -0
- package/www/node_modules.sortablejs.082c1a2573a84c9cf2f5.chunk.js +2 -0
- package/www/node_modules.sortablejs.082c1a2573a84c9cf2f5.chunk.js.LICENSE.txt +6 -0
- package/www/node_modules.swiper.47b109d6d74ec4a8f006.chunk.js +1 -0
- package/www/node_modules.webcomponents.js.bundle.js +2 -0
- package/www/node_modules.webcomponents.js.bundle.js.LICENSE.txt +9 -0
- package/www/notificationicon.d6ecf2254db85ff3b545.png +0 -0
- package/www/oc-json.7f9a1e074432991161cf.chunk.js +1 -0
- package/www/pa-json.8991ba701eec5df4b840.chunk.js +1 -0
- package/www/pdfPlayer-plugin.cd5ed0191dc31caf9eb4.css +1 -0
- package/www/pdfPlayer-plugin.f8339bb66605ccba93f3.chunk.js +1 -0
- package/www/pdfPlayer-style-scss.97b97f36c807beef809c.chunk.js +1 -0
- package/www/pdfPlayer-style-scss.cd5ed0191dc31caf9eb4.css +1 -0
- package/www/photoPlayer-plugin.cf143f97de5058c90340.chunk.js +1 -0
- package/www/pl-json.f32655e8c5243d6876f6.chunk.js +1 -0
- package/www/playAccessValidation-plugin.fdc30340e8a53db1d51e.chunk.js +1 -0
- package/www/playback-queue-index-html.44a444c26179cbc1ee51.chunk.js +1 -0
- package/www/playback-queue.8cec2b9e4fe5075d70d5.chunk.js +1 -0
- package/www/playback-queue.b7a92393e1051a878bb0.css +10 -0
- package/www/playback-resume.41ba023f4e1e21d1eeea.chunk.js +1 -0
- package/www/playback-streaming.addfcd64c6452375d6fd.chunk.js +1 -0
- package/www/playback-transcoding.e959baf9509d5b170095.chunk.js +1 -0
- package/www/playback-trickplay.5e3dcb286068a91d8fa8.chunk.js +1 -0
- package/www/playback-video-index-html.fb812af814e8c8697a00.chunk.js +1 -0
- package/www/playback-video.307c03a68b62db732104.css +9 -0
- package/www/playback-video.bc46e73c4b45995d9ead.chunk.js +2 -0
- package/www/playback-video.bc46e73c4b45995d9ead.chunk.js.LICENSE.txt +1 -0
- package/www/plugins-plugin.a067614e764f6fff0ad4.chunk.js +1 -0
- package/www/plugins-repositories.ad08e2b6e4be11df20e9.chunk.js +1 -0
- package/www/plugins.c089eff1cd2723c1fd0a.chunk.js +1 -0
- package/www/pr-json.7ce40512429f513bbcbc.chunk.js +1 -0
- package/www/pt-br-json.47b20f986973853d3831.chunk.js +1 -0
- package/www/pt-json.414682d212bbdbc9b6e6.chunk.js +1 -0
- package/www/pt-pt-json.f9d2296f571db8994d5d.chunk.js +1 -0
- package/www/quickConnect-quickConnect-scss.4c92d97afe73121ced6c.css +1 -0
- package/www/quickConnect-quickConnect-scss.fb670f98a64eda3b07bc.chunk.js +1 -0
- package/www/quickConnect.4c92d97afe73121ced6c.css +1 -0
- package/www/quickConnect.b98cfd376bcf31e7140d.chunk.js +1 -0
- package/www/remote-index-html.e62580ddb5524c9847da.chunk.js +1 -0
- package/www/remote.13c314ccaa6e08b64d03.chunk.js +1 -0
- package/www/remote.4dc1e171984a8e6fea43.css +2 -0
- package/www/ro-json.718e61098f1ef330af78.chunk.js +1 -0
- package/www/robots.txt +2 -0
- package/www/ru-json.14922348f130ebb4c4b7.chunk.js +1 -0
- package/www/runtime.bundle.js +1 -0
- package/www/search.92b9d032fb2558a9df1a.chunk.js +1 -0
- package/www/search.d8744ed84b1a641aee12.css +6 -0
- package/www/serviceworker.js +1 -0
- package/www/session-addServer-index-html.f7af069cf025b73b94b7.chunk.js +1 -0
- package/www/session-addServer.a4b3a7e5511e019cab5e.chunk.js +1 -0
- package/www/session-forgotPassword.62e8687b3779fa93cdc2.chunk.js +1 -0
- package/www/session-login-index-html.7df1620bd3afcef60eb7.chunk.js +1 -0
- package/www/session-login-login-scss.b6ea6799adef0a59ea03.chunk.js +1 -0
- package/www/session-login-login-scss.b767cf817e3eb2387cd8.css +1 -0
- package/www/session-login.872eaba65c6e2216aba6.css +4 -0
- package/www/session-login.8a2d93cd7e80b4599d80.chunk.js +2 -0
- package/www/session-login.8a2d93cd7e80b4599d80.chunk.js.LICENSE.txt +1 -0
- package/www/session-resetPassword-index-html.ef3ca45b4689d7f291ad.chunk.js +1 -0
- package/www/session-resetPassword.69bc0e8183831f79b50d.chunk.js +1 -0
- package/www/session-selectServer-index-html.347605e4b514c26fef7a.chunk.js +1 -0
- package/www/session-selectServer.79650bbe6c9edb13add0.css +5 -0
- package/www/session-selectServer.b11cb994b7a5cce8d07f.chunk.js +1 -0
- package/www/sessionPlayer-plugin.b0fb6e5a7eb9fb4d93e5.chunk.js +2 -0
- package/www/sessionPlayer-plugin.b0fb6e5a7eb9fb4d93e5.chunk.js.LICENSE.txt +1 -0
- package/www/settings-index-html.eb37b8107cd35488a326.chunk.js +1 -0
- package/www/settings-index-js.4dc1e171984a8e6fea43.css +2 -0
- package/www/settings-index-js.4fabccf7bc602cfc9590.chunk.js +1 -0
- package/www/settings-index-tsx.77f6477f3864ce6c90a4.chunk.js +1 -0
- package/www/settings.4dc1e171984a8e6fea43.css +2 -0
- package/www/settings.f8f7b81e1fe36b403d19.chunk.js +1 -0
- package/www/shows-episodes.202093eaf305fedfbc41.css +5 -0
- package/www/shows-episodes.3848d26f3fb7e815e878.chunk.js +1 -0
- package/www/shows-tvgenres.7d88250be71445c48b9d.chunk.js +1 -0
- package/www/shows-tvgenres.9399ff956e642aad8cc3.css +3 -0
- package/www/shows-tvrecommended-html.3d0256d4d69fc7214104.chunk.js +1 -0
- package/www/shows-tvrecommended.0e26b3c6499b3d353304.css +7 -0
- package/www/shows-tvrecommended.72e70b2e8bf889ad66f2.chunk.js +1 -0
- package/www/shows-tvshows.04b9944684c735e904c1.chunk.js +1 -0
- package/www/shows-tvshows.82c485200adfd27ea9d7.css +6 -0
- package/www/shows-tvstudios.8e44cbd7944caaa48a9b.chunk.js +1 -0
- package/www/shows-tvstudios.9399ff956e642aad8cc3.css +3 -0
- package/www/shows-tvupcoming.1336baae29bdcc6e225e.chunk.js +1 -0
- package/www/shows-tvupcoming.9399ff956e642aad8cc3.css +3 -0
- package/www/shows.0f920c2dfd2699de5fea.css +10 -0
- package/www/shows.31c9e0251166d4c44439.chunk.js +1 -0
- package/www/si-json.a87fd1bce907710c4cec.chunk.js +1 -0
- package/www/sk-json.b7f11dc68ebe3a9ece05.chunk.js +1 -0
- package/www/sl-si-json.fdbc510576a9292c9331.chunk.js +1 -0
- package/www/so-json.b7525fa8db0abdc2dba9.chunk.js +1 -0
- package/www/sq-json.91b8577196cb40beed24.chunk.js +1 -0
- package/www/sr-json.c2a6938dc5fbbee4c245.chunk.js +1 -0
- package/www/start-index-html.8799498149b52451853c.chunk.js +1 -0
- package/www/start.4dc1e171984a8e6fea43.css +2 -0
- package/www/start.68923e2b7ee4440c751a.chunk.js +1 -0
- package/www/sv-json.4b73a785db8bb4a5f78b.chunk.js +1 -0
- package/www/sw-json.189d0e881d62d27a1151.chunk.js +1 -0
- package/www/syncPlay-core-Controller.a7967003c588dfb6c0b4.chunk.js +1 -0
- package/www/syncPlay-core-Helper.6bf69e6132c723e48c93.chunk.js +1 -0
- package/www/syncPlay-core-Manager.95461ee270e7ba910365.chunk.js +1 -0
- package/www/syncPlay-core-PlaybackCore.cc8de35f6e45025ba142.chunk.js +2 -0
- package/www/syncPlay-core-PlaybackCore.cc8de35f6e45025ba142.chunk.js.LICENSE.txt +1 -0
- package/www/syncPlay-core-QueueCore.6bf69e6132c723e48c93.chunk.js +1 -0
- package/www/syncPlay-core-Settings.3e32674e620f081d69eb.chunk.js +1 -0
- package/www/syncPlay-core-players-GenericPlayer.cc8d40d4a63a6a6abee2.chunk.js +1 -0
- package/www/syncPlay-core-players-PlayerFactory.8308e55d1d427d87db90.chunk.js +1 -0
- package/www/syncPlay-core-timeSync-TimeSync.59d09f138144a1059689.chunk.js +1 -0
- package/www/syncPlay-core-timeSync-TimeSyncCore.162197982249d3f49ce5.chunk.js +1 -0
- package/www/syncPlay-core-timeSync-TimeSyncServer.1f074b554b63634070d5.chunk.js +1 -0
- package/www/syncPlay-core.5c3129f05e7d92ce7b35.chunk.js +1 -0
- package/www/syncPlay-plugin.f532382eb6cd87a2687a.chunk.js +1 -0
- package/www/syncPlay-ui-groupSelectionMenu-scss.433a04a3c37c093590de.chunk.js +1 -0
- package/www/syncPlay-ui-groupSelectionMenu-scss.5de1fdfb8f3bb80a1dfb.css +1 -0
- package/www/syncPlay-ui-groupSelectionMenu.0fe4c3641f8de0fe510f.chunk.js +1 -0
- package/www/syncPlay-ui-groupSelectionMenu.bfde69083a6ae513ba97.css +3 -0
- package/www/syncPlay-ui-playbackPermissionManager.05baa8c2fecb6fe2c12e.chunk.js +1 -0
- package/www/syncPlay-ui-players-HtmlAudioPlayer.3de6fd4a4fce53fe49dd.chunk.js +1 -0
- package/www/syncPlay-ui-players-HtmlVideoPlayer.9f6ea856bc1c5b5aeb09.chunk.js +1 -0
- package/www/syncPlay-ui-players-NoActivePlayer.dc48ccbdf66b838f4b34.chunk.js +1 -0
- package/www/syncPlay-ui-players-QueueManager.7302fa192b13a12acc1a.chunk.js +1 -0
- package/www/syncPlay-ui-settings-SettingsEditor.4dc1e171984a8e6fea43.css +2 -0
- package/www/syncPlay-ui-settings-editor-html.596e49f135d17d457a2e.chunk.js +1 -0
- package/www/ta-json.93441609729cbac071aa.chunk.js +1 -0
- package/www/tasks-task.a3607d81ca3fb78136c1.chunk.js +1 -0
- package/www/tasks.34dd269581acdff45fb0.chunk.js +1 -0
- package/www/te-json.44d57c4c2025b13af172.chunk.js +1 -0
- package/www/th-json.e1bfdd90be4b8a2361a2.chunk.js +1 -0
- package/www/themes/_base/theme.css +1 -0
- package/www/themes/_base.bundle.js +1 -0
- package/www/themes/appletv/theme.css +1 -0
- package/www/themes/appletv.bundle.js +1 -0
- package/www/themes/blueradiance/bg.jpg +0 -0
- package/www/themes/blueradiance/theme.css +1 -0
- package/www/themes/blueradiance.bundle.js +1 -0
- package/www/themes/dark/theme.css +1 -0
- package/www/themes/dark.bundle.js +1 -0
- package/www/themes/light/theme.css +1 -0
- package/www/themes/light.bundle.js +1 -0
- package/www/themes/purplehaze/bg.jpg +0 -0
- package/www/themes/purplehaze/theme.css +1 -0
- package/www/themes/purplehaze.bundle.js +1 -0
- package/www/themes/wmc/theme.css +1 -0
- package/www/themes/wmc.bundle.js +1 -0
- package/www/throbber.f3bc149017432b87da2e.gif +0 -0
- package/www/touchicon.f5bbb798cb2c65908633.png +0 -0
- package/www/touchicon144.39209dd2362c0db7c673.png +0 -0
- package/www/tr-json.fd3412020b473eb2e96c.chunk.js +1 -0
- package/www/ug-json.a3b3e30fdc60c22f197a.chunk.js +1 -0
- package/www/uk-json.b41224b0f0e6535294fd.chunk.js +1 -0
- package/www/ur_PK-json.c6bc6718d3a64da2c938.chunk.js +1 -0
- package/www/user-controls-index-html.ef65ed406ef218b479be.chunk.js +1 -0
- package/www/user-controls.44dd33b7ed091c39c6be.chunk.js +1 -0
- package/www/user-display-index-html.e55f212f1a8fdcbeac6b.chunk.js +1 -0
- package/www/user-display-index-js.14fffe456f27b2c8eecc.css +3 -0
- package/www/user-display-index-tsx.36a65085192e96ae248e.chunk.js +1 -0
- package/www/user-display.14fffe456f27b2c8eecc.css +3 -0
- package/www/user-display.84bdb0011d90c9e9c0d7.chunk.js +1 -0
- package/www/user-home-index-html.fa17c7e8a3e77b3c1d63.chunk.js +1 -0
- package/www/user-home.069ec6a484229e1c235c.chunk.js +1 -0
- package/www/user-home.32aa40dc7f5ac395403e.css +7 -0
- package/www/user-index-html.6a8ee8df81ea0fdb4547.chunk.js +1 -0
- package/www/user-playback-index-html.790048974d41c90271a2.chunk.js +1 -0
- package/www/user-playback.4dc1e171984a8e6fea43.css +2 -0
- package/www/user-playback.df3d8017d047a6d6bf0b.chunk.js +1 -0
- package/www/user-settings.62d7bfb9b675a43c6530.chunk.js +1 -0
- package/www/user-subtitles-index-html.514ead6fd3cfc3016648.chunk.js +1 -0
- package/www/user-subtitles.649f43bdfa106505fa0a.css +4 -0
- package/www/user-subtitles.dc4cf434111d14f68c38.chunk.js +1 -0
- package/www/user-userprofile.f15366fd87ea3a594c64.chunk.js +1 -0
- package/www/user.7abdbbd33a5819846cc8.chunk.js +2 -0
- package/www/user.7abdbbd33a5819846cc8.chunk.js.LICENSE.txt +1 -0
- package/www/users-access.a2ae69f204702c14532d.chunk.js +1 -0
- package/www/users-add.eb636eb4efee1e92102a.chunk.js +1 -0
- package/www/users-parentalcontrol.e57b97ab683e297f81cd.chunk.js +1 -0
- package/www/users-password.6195fa8f1db58d0bf662.chunk.js +1 -0
- package/www/users-profile.267b9136593bb210de4f.chunk.js +1 -0
- package/www/users.078161ae17ad4d733949.css +1 -0
- package/www/users.bfeb0ef52308ebfbfd62.chunk.js +1 -0
- package/www/uz-json.276a5aef5b5ffc088a96.chunk.js +1 -0
- package/www/vi-json.2b29ade4a0e5e4469ace.chunk.js +1 -0
- package/www/youtubePlayer-plugin.c07fa18848798922d354.chunk.js +1 -0
- package/www/youtubePlayer-style-scss.0d35158d7780ff3daaf7.css +1 -0
- package/www/youtubePlayer-style-scss.18e51e68781f1f56f34d.chunk.js +1 -0
- package/www/zh-cn-json.95ba54759310b47cbb12.chunk.js +1 -0
- package/www/zh-hk-json.7c153e704f1976e6ef50.chunk.js +1 -0
- package/www/zh-tw-json.4e0d1509e80bfe6f5d0e.chunk.js +1 -0
- package/www/zu-json.be3249932a9c4d01bc25.chunk.js +1 -0
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
/*! For license information please see node_modules.pdfjs-dist.a463f5c2034b4bca7c76.chunk.js.LICENSE.txt */
|
|
2
|
+
(self.webpackChunk=self.webpackChunk||[]).push([[69601],{12565:function(module,exports,__webpack_require__){var __WEBPACK_AMD_DEFINE_ARRAY__,__WEBPACK_AMD_DEFINE_RESULT__,root,factory;function _superPropGet(e,t,a,i){var r=_get3(_getPrototypeOf(1&i?e.prototype:e),t,a);return 2&i&&"function"==typeof r?function(e){return r.apply(a,e)}:r}function _get3(){return _get3="undefined"!=typeof Reflect&&Reflect.get?Reflect.get.bind():function(e,t,a){var i=_superPropBase(e,t);if(i){var r=Object.getOwnPropertyDescriptor(i,t);return r.get?r.get.call(arguments.length<3?e:a):r.value}},_get3.apply(null,arguments)}function _superPropBase(e,t){for(;!{}.hasOwnProperty.call(e,t)&&null!==(e=_getPrototypeOf(e)););return e}function ownKeys(e,t){var a=Object.keys(e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);t&&(i=i.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),a.push.apply(a,i)}return a}function _objectSpread(e){for(var t=1;t<arguments.length;t++){var a=null!=arguments[t]?arguments[t]:{};t%2?ownKeys(Object(a),!0).forEach((function(t){_defineProperty(e,t,a[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(a)):ownKeys(Object(a)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(a,t))}))}return e}function _readOnlyError(e){throw new TypeError('"'+e+'" is read-only')}function _classPrivateGetter(e,t,a){return a(_assertClassBrand(e,t))}function _defineProperty(e,t,a){return(t=_toPropertyKey(t))in e?Object.defineProperty(e,t,{value:a,enumerable:!0,configurable:!0,writable:!0}):e[t]=a,e}function _classPrivateMethodInitSpec(e,t){_checkPrivateRedeclaration(e,t),t.add(e)}function _regenerator(){var e,t,a="function"==typeof Symbol?Symbol:{},i=a.iterator||"@@iterator",r=a.toStringTag||"@@toStringTag";function n(a,i,r,n){var l=i&&i.prototype instanceof o?i:o,c=Object.create(l.prototype);return _regeneratorDefine2(c,"_invoke",function(a,i,r){var n,o,l,c=0,u=r||[],d=!1,h={p:0,n:0,v:e,a:v,f:v.bind(e,4),d:function(t,a){return n=t,o=0,l=e,h.n=a,s}};function v(a,i){for(o=a,l=i,t=0;!d&&c&&!r&&t<u.length;t++){var r,n=u[t],v=h.p,f=n[2];a>3?(r=f===i)&&(l=n[(o=n[4])?5:(o=3,3)],n[4]=n[5]=e):n[0]<=v&&((r=a<2&&v<n[1])?(o=0,h.v=i,h.n=n[1]):v<f&&(r=a<3||n[0]>i||i>f)&&(n[4]=a,n[5]=i,h.n=f,o=0))}if(r||a>1)return s;throw d=!0,i}return function(r,u,f){if(c>1)throw TypeError("Generator is already running");for(d&&1===u&&v(u,f),o=u,l=f;(t=o<2?e:l)||!d;){n||(o?o<3?(o>1&&(h.n=-1),v(o,l)):h.n=l:h.v=l);try{if(c=2,n){if(o||(r="next"),t=n[r]){if(!(t=t.call(n,l)))throw TypeError("iterator result is not an object");if(!t.done)return t;l=t.value,o<2&&(o=0)}else 1===o&&(t=n.return)&&t.call(n),o<2&&(l=TypeError("The iterator does not provide a '"+r+"' method"),o=1);n=e}else if((t=(d=h.n<0)?l:a.call(i,h))!==s)break}catch(t){n=e,o=1,l=t}finally{c=1}}return{value:t,done:d}}}(a,r,n),!0),c}var s={};function o(){}function l(){}function c(){}t=Object.getPrototypeOf;var u=[][i]?t(t([][i]())):(_regeneratorDefine2(t={},i,(function(){return this})),t),d=c.prototype=o.prototype=Object.create(u);function h(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,c):(e.__proto__=c,_regeneratorDefine2(e,r,"GeneratorFunction")),e.prototype=Object.create(d),e}return l.prototype=c,_regeneratorDefine2(d,"constructor",c),_regeneratorDefine2(c,"constructor",l),l.displayName="GeneratorFunction",_regeneratorDefine2(c,r,"GeneratorFunction"),_regeneratorDefine2(d),_regeneratorDefine2(d,r,"Generator"),_regeneratorDefine2(d,i,(function(){return this})),_regeneratorDefine2(d,"toString",(function(){return"[object Generator]"})),(_regenerator=function(){return{w:n,m:h}})()}function _regeneratorDefine2(e,t,a,i){var r=Object.defineProperty;try{r({},"",{})}catch(e){r=0}_regeneratorDefine2=function(e,t,a,i){if(t)r?r(e,t,{value:a,enumerable:!i,configurable:!i,writable:!i}):e[t]=a;else{var n=function(t,a){_regeneratorDefine2(e,t,(function(e){return this._invoke(t,a,e)}))};n("next",0),n("throw",1),n("return",2)}},_regeneratorDefine2(e,t,a,i)}function asyncGeneratorStep(e,t,a,i,r,n,s){try{var o=e[n](s),l=o.value}catch(e){return void a(e)}o.done?t(l):Promise.resolve(l).then(i,r)}function _asyncToGenerator(e){return function(){var t=this,a=arguments;return new Promise((function(i,r){var n=e.apply(t,a);function s(e){asyncGeneratorStep(n,i,r,s,o,"next",e)}function o(e){asyncGeneratorStep(n,i,r,s,o,"throw",e)}s(void 0)}))}}function _classPrivateFieldInitSpec(e,t,a){_checkPrivateRedeclaration(e,t),t.set(e,a)}function _checkPrivateRedeclaration(e,t){if(t.has(e))throw new TypeError("Cannot initialize the same private elements twice on an object")}function _classPrivateFieldGet(e,t){return e.get(_assertClassBrand(e,t))}function _classPrivateFieldSet(e,t,a){return e.set(_assertClassBrand(e,t),a),a}function _assertClassBrand(e,t,a){if("function"==typeof e?e===t:e.has(t))return arguments.length<3?t:a;throw new TypeError("Private element is not present on this object")}function _toConsumableArray(e){return _arrayWithoutHoles(e)||_iterableToArray(e)||_unsupportedIterableToArray(e)||_nonIterableSpread()}function _nonIterableSpread(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}function _iterableToArray(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}function _arrayWithoutHoles(e){if(Array.isArray(e))return _arrayLikeToArray(e)}function _slicedToArray(e,t){return _arrayWithHoles(e)||_iterableToArrayLimit(e,t)||_unsupportedIterableToArray(e,t)||_nonIterableRest()}function _nonIterableRest(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}function _iterableToArrayLimit(e,t){var a=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=a){var i,r,n,s,o=[],l=!0,c=!1;try{if(n=(a=a.call(e)).next,0===t){if(Object(a)!==a)return;l=!1}else for(;!(l=(i=n.call(a)).done)&&(o.push(i.value),o.length!==t);l=!0);}catch(e){c=!0,r=e}finally{try{if(!l&&null!=a.return&&(s=a.return(),Object(s)!==s))return}finally{if(c)throw r}}return o}}function _arrayWithHoles(e){if(Array.isArray(e))return e}function _createForOfIteratorHelper(e,t){var a="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(!a){if(Array.isArray(e)||(a=_unsupportedIterableToArray(e))||t&&e&&"number"==typeof e.length){a&&(e=a);var i=0,r=function(){};return{s:r,n:function(){return i>=e.length?{done:!0}:{done:!1,value:e[i++]}},e:function(e){throw e},f:r}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var n,s=!0,o=!1;return{s:function(){a=a.call(e)},n:function(){var e=a.next();return s=e.done,e},e:function(e){o=!0,n=e},f:function(){try{s||null==a.return||a.return()}finally{if(o)throw n}}}}function _unsupportedIterableToArray(e,t){if(e){if("string"==typeof e)return _arrayLikeToArray(e,t);var a={}.toString.call(e).slice(8,-1);return"Object"===a&&e.constructor&&(a=e.constructor.name),"Map"===a||"Set"===a?Array.from(e):"Arguments"===a||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(a)?_arrayLikeToArray(e,t):void 0}}function _arrayLikeToArray(e,t){(null==t||t>e.length)&&(t=e.length);for(var a=0,i=Array(t);a<t;a++)i[a]=e[a];return i}function _defineProperties(e,t){for(var a=0;a<t.length;a++){var i=t[a];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,_toPropertyKey(i.key),i)}}function _createClass(e,t,a){return t&&_defineProperties(e.prototype,t),a&&_defineProperties(e,a),Object.defineProperty(e,"prototype",{writable:!1}),e}function _toPropertyKey(e){var t=_toPrimitive(e,"string");return"symbol"==_typeof(t)?t:t+""}function _toPrimitive(e,t){if("object"!=_typeof(e)||!e)return e;var a=e[Symbol.toPrimitive];if(void 0!==a){var i=a.call(e,t||"default");if("object"!=_typeof(i))return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}function _classCallCheck(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function _callSuper(e,t,a){return t=_getPrototypeOf(t),_possibleConstructorReturn(e,_isNativeReflectConstruct()?Reflect.construct(t,a||[],_getPrototypeOf(e).constructor):t.apply(e,a))}function _possibleConstructorReturn(e,t){if(t&&("object"==_typeof(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return _assertThisInitialized(e)}function _assertThisInitialized(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function _isNativeReflectConstruct(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return(_isNativeReflectConstruct=function(){return!!e})()}function _getPrototypeOf(e){return _getPrototypeOf=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},_getPrototypeOf(e)}function _inherits(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&_setPrototypeOf(e,t)}function _setPrototypeOf(e,t){return _setPrototypeOf=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},_setPrototypeOf(e,t)}function _typeof(e){return _typeof="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},_typeof(e)}module=__webpack_require__.nmd(module),__webpack_require__(29305),__webpack_require__(32733),__webpack_require__(84701),__webpack_require__(81678),__webpack_require__(2623),__webpack_require__(24776),__webpack_require__(86765),__webpack_require__(14382),__webpack_require__(68854),__webpack_require__(37224),__webpack_require__(69892),__webpack_require__(76281),__webpack_require__(84734),__webpack_require__(44962),__webpack_require__(17731),__webpack_require__(86584),__webpack_require__(89336),__webpack_require__(74576),__webpack_require__(63979),__webpack_require__(66781),__webpack_require__(74455),__webpack_require__(4754),__webpack_require__(10849),__webpack_require__(58551),__webpack_require__(2647),__webpack_require__(34695),__webpack_require__(90448),__webpack_require__(70389),__webpack_require__(94),__webpack_require__(54731),__webpack_require__(9698),__webpack_require__(77575),__webpack_require__(33087),__webpack_require__(36947),__webpack_require__(57132),__webpack_require__(13225),__webpack_require__(36457),__webpack_require__(88908),__webpack_require__(26437),__webpack_require__(83810),__webpack_require__(52697),__webpack_require__(78557),__webpack_require__(64628),__webpack_require__(67593),__webpack_require__(96054),__webpack_require__(90076),__webpack_require__(45309),__webpack_require__(21359),__webpack_require__(61642),__webpack_require__(646),__webpack_require__(95021),__webpack_require__(73687),__webpack_require__(92745),__webpack_require__(50987),__webpack_require__(99425),__webpack_require__(83994),__webpack_require__(53819),__webpack_require__(39999),__webpack_require__(79682),__webpack_require__(93062),__webpack_require__(11810),__webpack_require__(64062),__webpack_require__(46968),__webpack_require__(50980),__webpack_require__(87723),__webpack_require__(96919),__webpack_require__(94630),__webpack_require__(83320),__webpack_require__(4716),__webpack_require__(33054),__webpack_require__(82281),__webpack_require__(23236),__webpack_require__(89717),__webpack_require__(57268),__webpack_require__(32650),__webpack_require__(34581),__webpack_require__(31937),__webpack_require__(88064),__webpack_require__(85486),__webpack_require__(4181),__webpack_require__(1421),__webpack_require__(18750),__webpack_require__(50789),__webpack_require__(63171),__webpack_require__(67689),__webpack_require__(14715),__webpack_require__(39111),__webpack_require__(73015),__webpack_require__(47762),__webpack_require__(84518),__webpack_require__(90580),__webpack_require__(82402),__webpack_require__(38296),__webpack_require__(97747),__webpack_require__(23630),__webpack_require__(82367),__webpack_require__(24362),__webpack_require__(76218),__webpack_require__(99102),root=globalThis,factory=function(){return function(){"use strict";var __webpack_modules__=[,function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.VerbosityLevel=t.Util=t.UnknownErrorException=t.UnexpectedResponseException=t.TextRenderingMode=t.RenderingIntentFlag=t.PromiseCapability=t.PermissionFlag=t.PasswordResponses=t.PasswordException=t.PageActionEventType=t.OPS=t.MissingPDFException=t.MAX_IMAGE_SIZE_TO_CACHE=t.LINE_FACTOR=t.LINE_DESCENT_FACTOR=t.InvalidPDFException=t.ImageKind=t.IDENTITY_MATRIX=t.FormatError=t.FeatureTest=t.FONT_IDENTITY_MATRIX=t.DocumentActionEventType=t.CMapCompressionType=t.BaseException=t.BASELINE_FACTOR=t.AnnotationType=t.AnnotationReplyType=t.AnnotationPrefix=t.AnnotationMode=t.AnnotationFlag=t.AnnotationFieldFlag=t.AnnotationEditorType=t.AnnotationEditorPrefix=t.AnnotationEditorParamsType=t.AnnotationBorderStyleType=t.AnnotationActionEventType=t.AbortException=void 0,t.assert=function(e,t){e||s(t)},t.bytesToString=_,t.createValidAbsoluteUrl=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null,a=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null;if(!e)return null;try{if(a&&"string"==typeof e){if(a.addDefaultProtocol&&e.startsWith("www.")){var i=e.match(/\./g);(null==i?void 0:i.length)>=2&&(e="http://".concat(e))}if(a.tryConvertEncoding)try{e=A(e)}catch(e){}}var r=t?new URL(e,t):new URL(e);if(function(e){switch(null==e?void 0:e.protocol){case"http:":case"https:":case"ftp:":case"mailto:":case"tel:":return!0;default:return!1}}(r))return r}catch(e){}return null},t.getModificationDate=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:new Date;return[e.getUTCFullYear().toString(),(e.getUTCMonth()+1).toString().padStart(2,"0"),e.getUTCDate().toString().padStart(2,"0"),e.getUTCHours().toString().padStart(2,"0"),e.getUTCMinutes().toString().padStart(2,"0"),e.getUTCSeconds().toString().padStart(2,"0")].join("")},t.getUuid=function(){var e,t;if("undefined"!=typeof crypto&&"function"==typeof(null===(e=crypto)||void 0===e?void 0:e.randomUUID))return crypto.randomUUID();var a=new Uint8Array(32);if("undefined"!=typeof crypto&&"function"==typeof(null===(t=crypto)||void 0===t?void 0:t.getRandomValues))crypto.getRandomValues(a);else for(var i=0;i<32;i++)a[i]=Math.floor(255*Math.random());return _(a)},t.getVerbosityLevel=function(){return r},t.info=function(e){r>=i.INFOS&&console.log("Info: ".concat(e))},t.isArrayBuffer=function(e){return"object"===_typeof(e)&&void 0!==(null==e?void 0:e.byteLength)},t.isArrayEqual=function(e,t){if(e.length!==t.length)return!1;for(var a=0,i=e.length;a<i;a++)if(e[a]!==t[a])return!1;return!0},t.isNodeJS=void 0,t.normalizeUnicode=function(e){return S||(S=/([\xA0\xB5\u037E\u0EB3\u2000-\u200A\u202F\u2126\uFB00-\uFB04\uFB06\uFB20-\uFB36\uFB38-\uFB3C\uFB3E\uFB40\uFB41\uFB43\uFB44\uFB46-\uFBA1\uFBA4-\uFBA9\uFBAE-\uFBB1\uFBD3-\uFBDC\uFBDE-\uFBE7\uFBEA-\uFBF8\uFBFC\uFBFD\uFC00-\uFC5D\uFC64-\uFCF1\uFCF5-\uFD3D\uFD88\uFDF4\uFDFA\uFDFB\uFE71\uFE77\uFE79\uFE7B\uFE7D]+)|(\uFB05+)/g,C=new Map([["ſt","ſt"]])),e.replaceAll(S,(function(e,t,a){return t?t.normalize("NFKC"):C.get(a)}))},t.objectFromMap=function(e){var t,a=Object.create(null),i=_createForOfIteratorHelper(e);try{for(i.s();!(t=i.n()).done;){var r=_slicedToArray(t.value,2),n=r[0],s=r[1];a[n]=s}}catch(e){i.e(e)}finally{i.f()}return a},t.objectSize=function(e){return Object.keys(e).length},t.setVerbosityLevel=function(e){Number.isInteger(e)&&(r=e)},t.shadow=o,t.string32=function(e){return String.fromCharCode(e>>24&255,e>>16&255,e>>8&255,255&e)},t.stringToBytes=g,t.stringToPDFString=function(e){var t;if(e[0]>="ï"&&("þ"===e[0]&&"ÿ"===e[1]?t="utf-16be":"ÿ"===e[0]&&"þ"===e[1]?t="utf-16le":"ï"===e[0]&&"»"===e[1]&&"¿"===e[2]&&(t="utf-8"),t))try{var a=new TextDecoder(t,{fatal:!0}),i=g(e);return a.decode(i)}catch(e){n('stringToPDFString: "'.concat(e,'".'))}for(var r=[],s=0,o=e.length;s<o;s++){var l=k[e.charCodeAt(s)];r.push(l?String.fromCharCode(l):e.charAt(s))}return r.join("")},t.stringToUTF8String=A,t.unreachable=s,t.utf8StringToString=function(e){return unescape(encodeURIComponent(e))},t.warn=n;var a=!("object"!==("undefined"==typeof process?"undefined":_typeof(process))||process+""!="[object process]"||process.versions.nw||process.versions.electron&&process.type&&"browser"!==process.type);t.isNodeJS=a,t.IDENTITY_MATRIX=[1,0,0,1,0,0],t.FONT_IDENTITY_MATRIX=[.001,0,0,.001,0,0],t.MAX_IMAGE_SIZE_TO_CACHE=1e7,t.LINE_FACTOR=1.35,t.LINE_DESCENT_FACTOR=.35;t.BASELINE_FACTOR=.35/1.35,t.RenderingIntentFlag={ANY:1,DISPLAY:2,PRINT:4,SAVE:8,ANNOTATIONS_FORMS:16,ANNOTATIONS_STORAGE:32,ANNOTATIONS_DISABLE:64,OPLIST:256},t.AnnotationMode={DISABLE:0,ENABLE:1,ENABLE_FORMS:2,ENABLE_STORAGE:3},t.AnnotationEditorPrefix="pdfjs_internal_editor_",t.AnnotationEditorType={DISABLE:-1,NONE:0,FREETEXT:3,STAMP:13,INK:15},t.AnnotationEditorParamsType={RESIZE:1,CREATE:2,FREETEXT_SIZE:11,FREETEXT_COLOR:12,FREETEXT_OPACITY:13,INK_COLOR:21,INK_THICKNESS:22,INK_OPACITY:23},t.PermissionFlag={PRINT:4,MODIFY_CONTENTS:8,COPY:16,MODIFY_ANNOTATIONS:32,FILL_INTERACTIVE_FORMS:256,COPY_FOR_ACCESSIBILITY:512,ASSEMBLE:1024,PRINT_HIGH_QUALITY:2048},t.TextRenderingMode={FILL:0,STROKE:1,FILL_STROKE:2,INVISIBLE:3,FILL_ADD_TO_PATH:4,STROKE_ADD_TO_PATH:5,FILL_STROKE_ADD_TO_PATH:6,ADD_TO_PATH:7,FILL_STROKE_MASK:3,ADD_TO_PATH_FLAG:4},t.ImageKind={GRAYSCALE_1BPP:1,RGB_24BPP:2,RGBA_32BPP:3},t.AnnotationType={TEXT:1,LINK:2,FREETEXT:3,LINE:4,SQUARE:5,CIRCLE:6,POLYGON:7,POLYLINE:8,HIGHLIGHT:9,UNDERLINE:10,SQUIGGLY:11,STRIKEOUT:12,STAMP:13,CARET:14,INK:15,POPUP:16,FILEATTACHMENT:17,SOUND:18,MOVIE:19,WIDGET:20,SCREEN:21,PRINTERMARK:22,TRAPNET:23,WATERMARK:24,THREED:25,REDACT:26},t.AnnotationReplyType={GROUP:"Group",REPLY:"R"},t.AnnotationFlag={INVISIBLE:1,HIDDEN:2,PRINT:4,NOZOOM:8,NOROTATE:16,NOVIEW:32,READONLY:64,LOCKED:128,TOGGLENOVIEW:256,LOCKEDCONTENTS:512},t.AnnotationFieldFlag={READONLY:1,REQUIRED:2,NOEXPORT:4,MULTILINE:4096,PASSWORD:8192,NOTOGGLETOOFF:16384,RADIO:32768,PUSHBUTTON:65536,COMBO:131072,EDIT:262144,SORT:524288,FILESELECT:1048576,MULTISELECT:2097152,DONOTSPELLCHECK:4194304,DONOTSCROLL:8388608,COMB:16777216,RICHTEXT:33554432,RADIOSINUNISON:33554432,COMMITONSELCHANGE:67108864},t.AnnotationBorderStyleType={SOLID:1,DASHED:2,BEVELED:3,INSET:4,UNDERLINE:5},t.AnnotationActionEventType={E:"Mouse Enter",X:"Mouse Exit",D:"Mouse Down",U:"Mouse Up",Fo:"Focus",Bl:"Blur",PO:"PageOpen",PC:"PageClose",PV:"PageVisible",PI:"PageInvisible",K:"Keystroke",F:"Format",V:"Validate",C:"Calculate"},t.DocumentActionEventType={WC:"WillClose",WS:"WillSave",DS:"DidSave",WP:"WillPrint",DP:"DidPrint"},t.PageActionEventType={O:"PageOpen",C:"PageClose"};var i={ERRORS:0,WARNINGS:1,INFOS:5};t.VerbosityLevel=i,t.CMapCompressionType={NONE:0,BINARY:1},t.OPS={dependency:1,setLineWidth:2,setLineCap:3,setLineJoin:4,setMiterLimit:5,setDash:6,setRenderingIntent:7,setFlatness:8,setGState:9,save:10,restore:11,transform:12,moveTo:13,lineTo:14,curveTo:15,curveTo2:16,curveTo3:17,closePath:18,rectangle:19,stroke:20,closeStroke:21,fill:22,eoFill:23,fillStroke:24,eoFillStroke:25,closeFillStroke:26,closeEOFillStroke:27,endPath:28,clip:29,eoClip:30,beginText:31,endText:32,setCharSpacing:33,setWordSpacing:34,setHScale:35,setLeading:36,setFont:37,setTextRenderingMode:38,setTextRise:39,moveText:40,setLeadingMoveText:41,setTextMatrix:42,nextLine:43,showText:44,showSpacedText:45,nextLineShowText:46,nextLineSetSpacingShowText:47,setCharWidth:48,setCharWidthAndBounds:49,setStrokeColorSpace:50,setFillColorSpace:51,setStrokeColor:52,setStrokeColorN:53,setFillColor:54,setFillColorN:55,setStrokeGray:56,setFillGray:57,setStrokeRGBColor:58,setFillRGBColor:59,setStrokeCMYKColor:60,setFillCMYKColor:61,shadingFill:62,beginInlineImage:63,beginImageData:64,endInlineImage:65,paintXObject:66,markPoint:67,markPointProps:68,beginMarkedContent:69,beginMarkedContentProps:70,endMarkedContent:71,beginCompat:72,endCompat:73,paintFormXObjectBegin:74,paintFormXObjectEnd:75,beginGroup:76,endGroup:77,beginAnnotation:80,endAnnotation:81,paintImageMaskXObject:83,paintImageMaskXObjectGroup:84,paintImageXObject:85,paintInlineImageXObject:86,paintInlineImageXObjectGroup:87,paintImageXObjectRepeat:88,paintImageMaskXObjectRepeat:89,paintSolidColorImageMask:90,constructPath:91},t.PasswordResponses={NEED_PASSWORD:1,INCORRECT_PASSWORD:2};var r=i.WARNINGS;function n(e){r>=i.WARNINGS&&console.log("Warning: ".concat(e))}function s(e){throw new Error(e)}function o(e,t,a){var i=arguments.length>3&&void 0!==arguments[3]&&arguments[3];return Object.defineProperty(e,t,{value:a,enumerable:!i,configurable:!0,writable:!1}),a}var l=function(){function e(t,a){this.constructor===e&&s("Cannot initialize BaseException."),this.message=t,this.name=a}return e.prototype=new Error,e.constructor=e,e}();t.BaseException=l;var c=function(e){function t(e,a){var i;return _classCallCheck(this,t),(i=_callSuper(this,t,[e,"PasswordException"])).code=a,i}return _inherits(t,e),_createClass(t)}(l);t.PasswordException=c;var u=function(e){function t(e,a){var i;return _classCallCheck(this,t),(i=_callSuper(this,t,[e,"UnknownErrorException"])).details=a,i}return _inherits(t,e),_createClass(t)}(l);t.UnknownErrorException=u;var d=function(e){function t(e){return _classCallCheck(this,t),_callSuper(this,t,[e,"InvalidPDFException"])}return _inherits(t,e),_createClass(t)}(l);t.InvalidPDFException=d;var h=function(e){function t(e){return _classCallCheck(this,t),_callSuper(this,t,[e,"MissingPDFException"])}return _inherits(t,e),_createClass(t)}(l);t.MissingPDFException=h;var v=function(e){function t(e,a){var i;return _classCallCheck(this,t),(i=_callSuper(this,t,[e,"UnexpectedResponseException"])).status=a,i}return _inherits(t,e),_createClass(t)}(l);t.UnexpectedResponseException=v;var f=function(e){function t(e){return _classCallCheck(this,t),_callSuper(this,t,[e,"FormatError"])}return _inherits(t,e),_createClass(t)}(l);t.FormatError=f;var p=function(e){function t(e){return _classCallCheck(this,t),_callSuper(this,t,[e,"AbortException"])}return _inherits(t,e),_createClass(t)}(l);function _(e){"object"===_typeof(e)&&void 0!==(null==e?void 0:e.length)||s("Invalid argument for bytesToString");var t=e.length,a=8192;if(t<a)return String.fromCharCode.apply(null,e);for(var i=[],r=0;r<t;r+=a){var n=Math.min(r+a,t),o=e.subarray(r,n);i.push(String.fromCharCode.apply(null,o))}return i.join("")}function g(e){"string"!=typeof e&&s("Invalid argument for stringToBytes");for(var t=e.length,a=new Uint8Array(t),i=0;i<t;++i)a[i]=255&e.charCodeAt(i);return a}t.AbortException=p;var y=function(){return _createClass((function e(){_classCallCheck(this,e)}),null,[{key:"isLittleEndian",get:function(){return o(this,"isLittleEndian",((e=new Uint8Array(4))[0]=1,1===new Uint32Array(e.buffer,0,1)[0]));var e}},{key:"isEvalSupported",get:function(){return o(this,"isEvalSupported",function(){try{return new Function(""),!0}catch(e){return!1}}())}},{key:"isOffscreenCanvasSupported",get:function(){return o(this,"isOffscreenCanvasSupported","undefined"!=typeof OffscreenCanvas)}},{key:"platform",get:function(){return"undefined"==typeof navigator?o(this,"platform",{isWin:!1,isMac:!1}):o(this,"platform",{isWin:navigator.platform.includes("Win"),isMac:navigator.platform.includes("Mac")})}},{key:"isCSSRoundSupported",get:function(){var e,t;return o(this,"isCSSRoundSupported",null===(e=globalThis.CSS)||void 0===e||null===(t=e.supports)||void 0===t?void 0:t.call(e,"width: round(1.5px, 1px)"))}}])}();t.FeatureTest=y;var m=_toConsumableArray(Array(256).keys()).map((function(e){return e.toString(16).padStart(2,"0")})),b=function(){return _createClass((function e(){_classCallCheck(this,e)}),null,[{key:"makeHexColor",value:function(e,t,a){return"#".concat(m[e]).concat(m[t]).concat(m[a])}},{key:"scaleMinMax",value:function(e,t){var a;e[0]?(e[0]<0&&(a=t[0],t[0]=t[1],t[1]=a),t[0]*=e[0],t[1]*=e[0],e[3]<0&&(a=t[2],t[2]=t[3],t[3]=a),t[2]*=e[3],t[3]*=e[3]):(a=t[0],t[0]=t[2],t[2]=a,a=t[1],t[1]=t[3],t[3]=a,e[1]<0&&(a=t[2],t[2]=t[3],t[3]=a),t[2]*=e[1],t[3]*=e[1],e[2]<0&&(a=t[0],t[0]=t[1],t[1]=a),t[0]*=e[2],t[1]*=e[2]),t[0]+=e[4],t[1]+=e[4],t[2]+=e[5],t[3]+=e[5]}},{key:"transform",value:function(e,t){return[e[0]*t[0]+e[2]*t[1],e[1]*t[0]+e[3]*t[1],e[0]*t[2]+e[2]*t[3],e[1]*t[2]+e[3]*t[3],e[0]*t[4]+e[2]*t[5]+e[4],e[1]*t[4]+e[3]*t[5]+e[5]]}},{key:"applyTransform",value:function(e,t){return[e[0]*t[0]+e[1]*t[2]+t[4],e[0]*t[1]+e[1]*t[3]+t[5]]}},{key:"applyInverseTransform",value:function(e,t){var a=t[0]*t[3]-t[1]*t[2];return[(e[0]*t[3]-e[1]*t[2]+t[2]*t[5]-t[4]*t[3])/a,(-e[0]*t[1]+e[1]*t[0]+t[4]*t[1]-t[5]*t[0])/a]}},{key:"getAxialAlignedBoundingBox",value:function(e,t){var a=this.applyTransform(e,t),i=this.applyTransform(e.slice(2,4),t),r=this.applyTransform([e[0],e[3]],t),n=this.applyTransform([e[2],e[1]],t);return[Math.min(a[0],i[0],r[0],n[0]),Math.min(a[1],i[1],r[1],n[1]),Math.max(a[0],i[0],r[0],n[0]),Math.max(a[1],i[1],r[1],n[1])]}},{key:"inverseTransform",value:function(e){var t=e[0]*e[3]-e[1]*e[2];return[e[3]/t,-e[1]/t,-e[2]/t,e[0]/t,(e[2]*e[5]-e[4]*e[3])/t,(e[4]*e[1]-e[5]*e[0])/t]}},{key:"singularValueDecompose2dScale",value:function(e){var t=[e[0],e[2],e[1],e[3]],a=e[0]*t[0]+e[1]*t[2],i=e[0]*t[1]+e[1]*t[3],r=e[2]*t[0]+e[3]*t[2],n=e[2]*t[1]+e[3]*t[3],s=(a+n)/2,o=Math.sqrt(Math.pow(a+n,2)-4*(a*n-r*i))/2,l=s+o||1,c=s-o||1;return[Math.sqrt(l),Math.sqrt(c)]}},{key:"normalizeRect",value:function(e){var t=e.slice(0);return e[0]>e[2]&&(t[0]=e[2],t[2]=e[0]),e[1]>e[3]&&(t[1]=e[3],t[3]=e[1]),t}},{key:"intersect",value:function(e,t){var a=Math.max(Math.min(e[0],e[2]),Math.min(t[0],t[2])),i=Math.min(Math.max(e[0],e[2]),Math.max(t[0],t[2]));if(a>i)return null;var r=Math.max(Math.min(e[1],e[3]),Math.min(t[1],t[3])),n=Math.min(Math.max(e[1],e[3]),Math.max(t[1],t[3]));return r>n?null:[a,r,i,n]}},{key:"bezierBoundingBox",value:function(e,t,a,i,r,n,s,o){for(var l,c,u,d,h,v,f,p,_=[],g=[[],[]],y=0;y<2;++y)if(0===y?(c=6*e-12*a+6*r,l=-3*e+9*a-9*r+3*s,u=3*a-3*e):(c=6*t-12*i+6*n,l=-3*t+9*i-9*n+3*o,u=3*i-3*t),Math.abs(l)<1e-12){if(Math.abs(c)<1e-12)continue;0<(d=-u/c)&&d<1&&_.push(d)}else f=c*c-4*u*l,p=Math.sqrt(f),f<0||(0<(h=(-c+p)/(2*l))&&h<1&&_.push(h),0<(v=(-c-p)/(2*l))&&v<1&&_.push(v));for(var m,b=_.length,k=b;b--;)m=1-(d=_[b]),g[0][b]=m*m*m*e+3*m*m*d*a+3*m*d*d*r+d*d*d*s,g[1][b]=m*m*m*t+3*m*m*d*i+3*m*d*d*n+d*d*d*o;return g[0][k]=e,g[1][k]=t,g[0][k+1]=s,g[1][k+1]=o,g[0].length=g[1].length=k+2,[Math.min.apply(Math,_toConsumableArray(g[0])),Math.min.apply(Math,_toConsumableArray(g[1])),Math.max.apply(Math,_toConsumableArray(g[0])),Math.max.apply(Math,_toConsumableArray(g[1]))]}}])}();t.Util=b;var k=[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,728,711,710,729,733,731,730,732,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,8226,8224,8225,8230,8212,8211,402,8260,8249,8250,8722,8240,8222,8220,8221,8216,8217,8218,8482,64257,64258,321,338,352,376,381,305,322,339,353,382,0,8364];function A(e){return decodeURIComponent(escape(e))}var P=new WeakMap,F=function(){return _createClass((function e(){var t=this;_classCallCheck(this,e),_classPrivateFieldInitSpec(this,P,!1),this.promise=new Promise((function(e,a){t.resolve=function(a){_classPrivateFieldSet(P,t,!0),e(a)},t.reject=function(e){_classPrivateFieldSet(P,t,!0),a(e)}}))}),[{key:"settled",get:function(){return _classPrivateFieldGet(P,this)}}])}();t.PromiseCapability=F;var S=null,C=null;t.AnnotationPrefix="pdfjs_internal_id_"},function(__unused_webpack_module,exports,__w_pdfjs_require__){Object.defineProperty(exports,"__esModule",{value:!0}),exports.RenderTask=exports.PDFWorkerUtil=exports.PDFWorker=exports.PDFPageProxy=exports.PDFDocumentProxy=exports.PDFDocumentLoadingTask=exports.PDFDataRangeTransport=exports.LoopbackPort=exports.DefaultStandardFontDataFactory=exports.DefaultFilterFactory=exports.DefaultCanvasFactory=exports.DefaultCMapReaderFactory=void 0,Object.defineProperty(exports,"SVGGraphics",{enumerable:!0,get:function(){return _displaySvg.SVGGraphics}}),exports.build=void 0,exports.getDocument=getDocument,exports.version=void 0;var _util=__w_pdfjs_require__(1),_annotation_storage=__w_pdfjs_require__(3),_display_utils=__w_pdfjs_require__(6),_font_loader=__w_pdfjs_require__(9),_displayNode_utils=__w_pdfjs_require__(10),_canvas=__w_pdfjs_require__(11),_worker_options=__w_pdfjs_require__(14),_message_handler=__w_pdfjs_require__(15),_metadata=__w_pdfjs_require__(16),_optional_content_config=__w_pdfjs_require__(17),_transport_stream=__w_pdfjs_require__(18),_displayFetch_stream=__w_pdfjs_require__(19),_displayNetwork=__w_pdfjs_require__(22),_displayNode_stream=__w_pdfjs_require__(23),_displaySvg=__w_pdfjs_require__(24),_xfa_text=__w_pdfjs_require__(25),DEFAULT_RANGE_CHUNK_SIZE=65536,RENDERING_CANCELLED_TIMEOUT=100,DELAYED_CLEANUP_TIMEOUT=5e3,DefaultCanvasFactory=_util.isNodeJS?_displayNode_utils.NodeCanvasFactory:_display_utils.DOMCanvasFactory;exports.DefaultCanvasFactory=DefaultCanvasFactory;var DefaultCMapReaderFactory=_util.isNodeJS?_displayNode_utils.NodeCMapReaderFactory:_display_utils.DOMCMapReaderFactory;exports.DefaultCMapReaderFactory=DefaultCMapReaderFactory;var DefaultFilterFactory=_util.isNodeJS?_displayNode_utils.NodeFilterFactory:_display_utils.DOMFilterFactory;exports.DefaultFilterFactory=DefaultFilterFactory;var DefaultStandardFontDataFactory=_util.isNodeJS?_displayNode_utils.NodeStandardFontDataFactory:_display_utils.DOMStandardFontDataFactory;function getDocument(e){var t,a;if("string"==typeof e||e instanceof URL?e={url:e}:(0,_util.isArrayBuffer)(e)&&(e={data:e}),"object"!==_typeof(e))throw new Error("Invalid parameter in getDocument, need parameter object.");if(!e.url&&!e.data&&!e.range)throw new Error("Invalid parameter object: need either .data, .range or .url");var i=new PDFDocumentLoadingTask,r=i.docId,n=e.url?getUrlProp(e.url):null,s=e.data?getDataProp(e.data):null,o=e.httpHeaders||null,l=!0===e.withCredentials,c=null!==(t=e.password)&&void 0!==t?t:null,u=e.range instanceof PDFDataRangeTransport?e.range:null,d=Number.isInteger(e.rangeChunkSize)&&e.rangeChunkSize>0?e.rangeChunkSize:DEFAULT_RANGE_CHUNK_SIZE,h=e.worker instanceof PDFWorker?e.worker:null,v=e.verbosity,f="string"!=typeof e.docBaseUrl||(0,_display_utils.isDataScheme)(e.docBaseUrl)?null:e.docBaseUrl,p="string"==typeof e.cMapUrl?e.cMapUrl:null,_=!1!==e.cMapPacked,g=e.CMapReaderFactory||DefaultCMapReaderFactory,y="string"==typeof e.standardFontDataUrl?e.standardFontDataUrl:null,m=e.StandardFontDataFactory||DefaultStandardFontDataFactory,b=!0!==e.stopAtErrors,k=Number.isInteger(e.maxImageSize)&&e.maxImageSize>-1?e.maxImageSize:-1,A=!1!==e.isEvalSupported,P="boolean"==typeof e.isOffscreenCanvasSupported?e.isOffscreenCanvasSupported:!_util.isNodeJS,F=Number.isInteger(e.canvasMaxAreaInBytes)?e.canvasMaxAreaInBytes:-1,S="boolean"==typeof e.disableFontFace?e.disableFontFace:_util.isNodeJS,C=!0===e.fontExtraProperties,w=!0===e.enableXfa,x=e.ownerDocument||globalThis.document,E=!0===e.disableRange,T=!0===e.disableStream,M=!0===e.disableAutoFetch,I=!0===e.pdfBug,R=u?u.length:null!==(a=e.length)&&void 0!==a?a:NaN,D="boolean"==typeof e.useSystemFonts?e.useSystemFonts:!_util.isNodeJS&&!S,O="boolean"==typeof e.useWorkerFetch?e.useWorkerFetch:g===_display_utils.DOMCMapReaderFactory&&m===_display_utils.DOMStandardFontDataFactory&&p&&y&&(0,_display_utils.isValidFetchUrl)(p,document.baseURI)&&(0,_display_utils.isValidFetchUrl)(y,document.baseURI),G=e.canvasFactory||new DefaultCanvasFactory({ownerDocument:x}),L=e.filterFactory||new DefaultFilterFactory({docId:r,ownerDocument:x});(0,_util.setVerbosityLevel)(v);var B={canvasFactory:G,filterFactory:L};if(O||(B.cMapReaderFactory=new g({baseUrl:p,isCompressed:_}),B.standardFontDataFactory=new m({baseUrl:y})),!h){var N={verbosity:v,port:_worker_options.GlobalWorkerOptions.workerPort};h=N.port?PDFWorker.fromPort(N):new PDFWorker(N),i._worker=h}var W={docId:r,apiVersion:"3.11.174",data:s,password:c,disableAutoFetch:M,rangeChunkSize:d,length:R,docBaseUrl:f,enableXfa:w,evaluatorOptions:{maxImageSize:k,disableFontFace:S,ignoreErrors:b,isEvalSupported:A,isOffscreenCanvasSupported:P,canvasMaxAreaInBytes:F,fontExtraProperties:C,useSystemFonts:D,cMapUrl:O?p:null,standardFontDataUrl:O?y:null}},j={ignoreErrors:b,isEvalSupported:A,disableFontFace:S,fontExtraProperties:C,enableXfa:w,ownerDocument:x,disableAutoFetch:M,pdfBug:I,styleElement:null};return h.promise.then((function(){if(i.destroyed)throw new Error("Loading aborted");var e=_fetchDocument(h,W),t=new Promise((function(e){var t,a;u?t=new _transport_stream.PDFDataTransportStream({length:R,initialData:u.initialData,progressiveDone:u.progressiveDone,contentDispositionFilename:u.contentDispositionFilename,disableRange:E,disableStream:T},u):s||(a={url:n,length:R,httpHeaders:o,withCredentials:l,rangeChunkSize:d,disableRange:E,disableStream:T},t=_util.isNodeJS?new _displayNode_stream.PDFNodeStream(a):(0,_display_utils.isValidFetchUrl)(a.url)?new _displayFetch_stream.PDFFetchStream(a):new _displayNetwork.PDFNetworkStream(a)),e(t)}));return Promise.all([e,t]).then((function(e){var t=_slicedToArray(e,2),a=t[0],n=t[1];if(i.destroyed)throw new Error("Loading aborted");var s=new _message_handler.MessageHandler(r,a,h.port),o=new WorkerTransport(s,i,n,j,B);i._transport=o,s.send("Ready",null)}))})).catch(i._capability.reject),i}function _fetchDocument(e,t){return _fetchDocument2.apply(this,arguments)}function _fetchDocument2(){return(_fetchDocument2=_asyncToGenerator(_regenerator().m((function e(t,a){var i;return _regenerator().w((function(e){for(;;)switch(e.n){case 0:if(!t.destroyed){e.n=1;break}throw new Error("Worker was destroyed");case 1:return e.n=2,t.messageHandler.sendWithPromise("GetDocRequest",a,a.data?[a.data.buffer]:null);case 2:if(i=e.v,!t.destroyed){e.n=3;break}throw new Error("Worker was destroyed");case 3:return e.a(2,i)}}),e)})))).apply(this,arguments)}function getUrlProp(e){if(e instanceof URL)return e.href;try{return new URL(e,window.location).href}catch(t){if(_util.isNodeJS&&"string"==typeof e)return e}throw new Error("Invalid PDF url data: either string or URL-object is expected in the url property.")}function getDataProp(e){if(_util.isNodeJS&&"undefined"!=typeof Buffer&&e instanceof Buffer)throw new Error("Please provide binary data as `Uint8Array`, rather than `Buffer`.");if(e instanceof Uint8Array&&e.byteLength===e.buffer.byteLength)return e;if("string"==typeof e)return(0,_util.stringToBytes)(e);if("object"===_typeof(e)&&!isNaN(null==e?void 0:e.length)||(0,_util.isArrayBuffer)(e))return new Uint8Array(e);throw new Error("Invalid PDF binary data: either TypedArray, string, or array-like object is expected in the data property.")}exports.DefaultStandardFontDataFactory=DefaultStandardFontDataFactory;var PDFDocumentLoadingTask=function(){return _createClass((function e(){var t,a;_classCallCheck(this,e),this._capability=new _util.PromiseCapability,this._transport=null,this._worker=null,this.docId="d".concat((_docId._=(t=_docId._,a=t++,t),a)),this.destroyed=!1,this.onPassword=null,this.onProgress=null}),[{key:"promise",get:function(){return this._capability.promise}},{key:"destroy",value:(e=_asyncToGenerator(_regenerator().m((function e(){var t,a,i,r;return _regenerator().w((function(e){for(;;)switch(e.n){case 0:return this.destroyed=!0,e.p=1,null!==(t=this._worker)&&void 0!==t&&t.port&&(this._worker._pendingDestroy=!0),e.n=2,null===(a=this._transport)||void 0===a?void 0:a.destroy();case 2:e.n=4;break;case 3:throw e.p=3,r=e.v,null!==(i=this._worker)&&void 0!==i&&i.port&&delete this._worker._pendingDestroy,r;case 4:this._transport=null,this._worker&&(this._worker.destroy(),this._worker=null);case 5:return e.a(2)}}),e,this,[[1,3]])}))),function(){return e.apply(this,arguments)})}]);var e}(),_docId={_:0};exports.PDFDocumentLoadingTask=PDFDocumentLoadingTask;var PDFDataRangeTransport=function(){return _createClass((function e(t,a){var i=arguments.length>2&&void 0!==arguments[2]&&arguments[2],r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:null;_classCallCheck(this,e),this.length=t,this.initialData=a,this.progressiveDone=i,this.contentDispositionFilename=r,this._rangeListeners=[],this._progressListeners=[],this._progressiveReadListeners=[],this._progressiveDoneListeners=[],this._readyCapability=new _util.PromiseCapability}),[{key:"addRangeListener",value:function(e){this._rangeListeners.push(e)}},{key:"addProgressListener",value:function(e){this._progressListeners.push(e)}},{key:"addProgressiveReadListener",value:function(e){this._progressiveReadListeners.push(e)}},{key:"addProgressiveDoneListener",value:function(e){this._progressiveDoneListeners.push(e)}},{key:"onDataRange",value:function(e,t){var a,i=_createForOfIteratorHelper(this._rangeListeners);try{for(i.s();!(a=i.n()).done;)(0,a.value)(e,t)}catch(e){i.e(e)}finally{i.f()}}},{key:"onDataProgress",value:function(e,t){var a=this;this._readyCapability.promise.then((function(){var i,r=_createForOfIteratorHelper(a._progressListeners);try{for(r.s();!(i=r.n()).done;)(0,i.value)(e,t)}catch(e){r.e(e)}finally{r.f()}}))}},{key:"onDataProgressiveRead",value:function(e){var t=this;this._readyCapability.promise.then((function(){var a,i=_createForOfIteratorHelper(t._progressiveReadListeners);try{for(i.s();!(a=i.n()).done;)(0,a.value)(e)}catch(e){i.e(e)}finally{i.f()}}))}},{key:"onDataProgressiveDone",value:function(){var e=this;this._readyCapability.promise.then((function(){var t,a=_createForOfIteratorHelper(e._progressiveDoneListeners);try{for(a.s();!(t=a.n()).done;)(0,t.value)()}catch(e){a.e(e)}finally{a.f()}}))}},{key:"transportReady",value:function(){this._readyCapability.resolve()}},{key:"requestDataRange",value:function(e,t){(0,_util.unreachable)("Abstract method PDFDataRangeTransport.requestDataRange")}},{key:"abort",value:function(){}}])}();exports.PDFDataRangeTransport=PDFDataRangeTransport;var PDFDocumentProxy=function(){return _createClass((function e(t,a){var i=this;_classCallCheck(this,e),this._pdfInfo=t,this._transport=a,Object.defineProperty(this,"getJavaScript",{value:function(){return(0,_display_utils.deprecated)("`PDFDocumentProxy.getJavaScript`, please use `PDFDocumentProxy.getJSActions` instead."),i.getJSActions().then((function(e){if(!e)return e;var t=[];for(var a in e)t.push.apply(t,_toConsumableArray(e[a]));return t}))}})}),[{key:"annotationStorage",get:function(){return this._transport.annotationStorage}},{key:"filterFactory",get:function(){return this._transport.filterFactory}},{key:"numPages",get:function(){return this._pdfInfo.numPages}},{key:"fingerprints",get:function(){return this._pdfInfo.fingerprints}},{key:"isPureXfa",get:function(){return(0,_util.shadow)(this,"isPureXfa",!!this._transport._htmlForXfa)}},{key:"allXfaHtml",get:function(){return this._transport._htmlForXfa}},{key:"getPage",value:function(e){return this._transport.getPage(e)}},{key:"getPageIndex",value:function(e){return this._transport.getPageIndex(e)}},{key:"getDestinations",value:function(){return this._transport.getDestinations()}},{key:"getDestination",value:function(e){return this._transport.getDestination(e)}},{key:"getPageLabels",value:function(){return this._transport.getPageLabels()}},{key:"getPageLayout",value:function(){return this._transport.getPageLayout()}},{key:"getPageMode",value:function(){return this._transport.getPageMode()}},{key:"getViewerPreferences",value:function(){return this._transport.getViewerPreferences()}},{key:"getOpenAction",value:function(){return this._transport.getOpenAction()}},{key:"getAttachments",value:function(){return this._transport.getAttachments()}},{key:"getJSActions",value:function(){return this._transport.getDocJSActions()}},{key:"getOutline",value:function(){return this._transport.getOutline()}},{key:"getOptionalContentConfig",value:function(){return this._transport.getOptionalContentConfig()}},{key:"getPermissions",value:function(){return this._transport.getPermissions()}},{key:"getMetadata",value:function(){return this._transport.getMetadata()}},{key:"getMarkInfo",value:function(){return this._transport.getMarkInfo()}},{key:"getData",value:function(){return this._transport.getData()}},{key:"saveDocument",value:function(){return this._transport.saveDocument()}},{key:"getDownloadInfo",value:function(){return this._transport.downloadInfoCapability.promise}},{key:"cleanup",value:function(){var e=arguments.length>0&&void 0!==arguments[0]&&arguments[0];return this._transport.startCleanup(e||this.isPureXfa)}},{key:"destroy",value:function(){return this.loadingTask.destroy()}},{key:"loadingParams",get:function(){return this._transport.loadingParams}},{key:"loadingTask",get:function(){return this._transport.loadingTask}},{key:"getFieldObjects",value:function(){return this._transport.getFieldObjects()}},{key:"hasJSActions",value:function(){return this._transport.hasJSActions()}},{key:"getCalculationOrderIds",value:function(){return this._transport.getCalculationOrderIds()}}])}();exports.PDFDocumentProxy=PDFDocumentProxy;var _delayedCleanupTimeout=new WeakMap,_pendingCleanup=new WeakMap,_PDFPageProxy_brand=new WeakSet,PDFPageProxy=function(){return _createClass((function e(t,a,i){var r=arguments.length>3&&void 0!==arguments[3]&&arguments[3];_classCallCheck(this,e),_classPrivateMethodInitSpec(this,_PDFPageProxy_brand),_classPrivateFieldInitSpec(this,_delayedCleanupTimeout,null),_classPrivateFieldInitSpec(this,_pendingCleanup,!1),this._pageIndex=t,this._pageInfo=a,this._transport=i,this._stats=r?new _display_utils.StatTimer:null,this._pdfBug=r,this.commonObjs=i.commonObjs,this.objs=new PDFObjects,this._maybeCleanupAfterRender=!1,this._intentStates=new Map,this.destroyed=!1}),[{key:"pageNumber",get:function(){return this._pageIndex+1}},{key:"rotate",get:function(){return this._pageInfo.rotate}},{key:"ref",get:function(){return this._pageInfo.ref}},{key:"userUnit",get:function(){return this._pageInfo.userUnit}},{key:"view",get:function(){return this._pageInfo.view}},{key:"getViewport",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.scale,a=e.rotation,i=void 0===a?this.rotate:a,r=e.offsetX,n=void 0===r?0:r,s=e.offsetY,o=void 0===s?0:s,l=e.dontFlip,c=void 0!==l&&l;return new _display_utils.PageViewport({viewBox:this.view,scale:t,rotation:i,offsetX:n,offsetY:o,dontFlip:c})}},{key:"getAnnotations",value:function(){var e=(arguments.length>0&&void 0!==arguments[0]?arguments[0]:{}).intent,t=void 0===e?"display":e,a=this._transport.getRenderingIntent(t);return this._transport.getAnnotations(this._pageIndex,a.renderingIntent)}},{key:"getJSActions",value:function(){return this._transport.getPageJSActions(this._pageIndex)}},{key:"filterFactory",get:function(){return this._transport.filterFactory}},{key:"isPureXfa",get:function(){return(0,_util.shadow)(this,"isPureXfa",!!this._transport._htmlForXfa)}},{key:"getXfa",value:(e=_asyncToGenerator(_regenerator().m((function e(){var t;return _regenerator().w((function(e){for(;;)if(0===e.n)return e.a(2,(null===(t=this._transport._htmlForXfa)||void 0===t?void 0:t.children[this._pageIndex])||null)}),e,this)}))),function(){return e.apply(this,arguments)})},{key:"render",value:function(e){var t,a,i=this,r=e.canvasContext,n=e.viewport,s=e.intent,o=void 0===s?"display":s,l=e.annotationMode,c=void 0===l?_util.AnnotationMode.ENABLE:l,u=e.transform,d=void 0===u?null:u,h=e.background,v=void 0===h?null:h,f=e.optionalContentConfigPromise,p=void 0===f?null:f,_=e.annotationCanvasMap,g=void 0===_?null:_,y=e.pageColors,m=void 0===y?null:y,b=e.printAnnotationStorage,k=void 0===b?null:b;null===(t=this._stats)||void 0===t||t.time("Overall");var A=this._transport.getRenderingIntent(o,c,k);_classPrivateFieldSet(_pendingCleanup,this,!1),_assertClassBrand(_PDFPageProxy_brand,this,_abortDelayedCleanup).call(this),p||(p=this._transport.getOptionalContentConfig());var P=this._intentStates.get(A.cacheKey);P||(P=Object.create(null),this._intentStates.set(A.cacheKey,P)),P.streamReaderCancelTimeout&&(clearTimeout(P.streamReaderCancelTimeout),P.streamReaderCancelTimeout=null);var F,S=!!(A.renderingIntent&_util.RenderingIntentFlag.PRINT);P.displayReadyCapability||(P.displayReadyCapability=new _util.PromiseCapability,P.operatorList={fnArray:[],argsArray:[],lastChunk:!1,separateAnnots:null},null===(F=this._stats)||void 0===F||F.time("Page Request"),this._pumpOperatorList(A));var C=function(e){var t,a;P.renderTasks.delete(w),(i._maybeCleanupAfterRender||S)&&_classPrivateFieldSet(_pendingCleanup,i,!0),_assertClassBrand(_PDFPageProxy_brand,i,_tryCleanup).call(i,!S),e?(w.capability.reject(e),i._abortOperatorList({intentState:P,reason:e instanceof Error?e:new Error(e)})):w.capability.resolve(),null===(t=i._stats)||void 0===t||t.timeEnd("Rendering"),null===(a=i._stats)||void 0===a||a.timeEnd("Overall")},w=new InternalRenderTask({callback:C,params:{canvasContext:r,viewport:n,transform:d,background:v},objs:this.objs,commonObjs:this.commonObjs,annotationCanvasMap:g,operatorList:P.operatorList,pageIndex:this._pageIndex,canvasFactory:this._transport.canvasFactory,filterFactory:this._transport.filterFactory,useRequestAnimationFrame:!S,pdfBug:this._pdfBug,pageColors:m});((a=P).renderTasks||(a.renderTasks=new Set)).add(w);var x=w.task;return Promise.all([P.displayReadyCapability.promise,p]).then((function(e){var t,a=_slicedToArray(e,2),r=a[0],n=a[1];i.destroyed?C():(null===(t=i._stats)||void 0===t||t.time("Rendering"),w.initializeGraphics({transparency:r,optionalContentConfig:n}),w.operatorListChanged())})).catch(C),x}},{key:"getOperatorList",value:function(){var e,t,a,i=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},r=i.intent,n=void 0===r?"display":r,s=i.annotationMode,o=void 0===s?_util.AnnotationMode.ENABLE:s,l=i.printAnnotationStorage,c=void 0===l?null:l,u=this._transport.getRenderingIntent(n,o,c,!0),d=this._intentStates.get(u.cacheKey);return d||(d=Object.create(null),this._intentStates.set(u.cacheKey,d)),d.opListReadCapability||((e=Object.create(null)).operatorListChanged=function(){d.operatorList.lastChunk&&(d.opListReadCapability.resolve(d.operatorList),d.renderTasks.delete(e))},d.opListReadCapability=new _util.PromiseCapability,((t=d).renderTasks||(t.renderTasks=new Set)).add(e),d.operatorList={fnArray:[],argsArray:[],lastChunk:!1,separateAnnots:null},null===(a=this._stats)||void 0===a||a.time("Page Request"),this._pumpOperatorList(u)),d.opListReadCapability.promise}},{key:"streamTextContent",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.includeMarkedContent,a=void 0!==t&&t,i=e.disableNormalization,r=void 0!==i&&i;return this._transport.messageHandler.sendWithStream("GetTextContent",{pageIndex:this._pageIndex,includeMarkedContent:!0===a,disableNormalization:!0===r},{highWaterMark:100,size:function(e){return e.items.length}})}},{key:"getTextContent",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};if(this._transport._htmlForXfa)return this.getXfa().then((function(e){return _xfa_text.XfaText.textContent(e)}));var t=this.streamTextContent(e);return new Promise((function(e,a){var i=t.getReader(),r={items:[],styles:Object.create(null)};!function t(){i.read().then((function(a){var i,n=a.value;a.done?e(r):(Object.assign(r.styles,n.styles),(i=r.items).push.apply(i,_toConsumableArray(n.items)),t())}),a)}()}))}},{key:"getStructTree",value:function(){return this._transport.getStructTree(this._pageIndex)}},{key:"_destroy",value:function(){this.destroyed=!0;var e,t=[],a=_createForOfIteratorHelper(this._intentStates.values());try{for(a.s();!(e=a.n()).done;){var i=e.value;if(this._abortOperatorList({intentState:i,reason:new Error("Page was destroyed."),force:!0}),!i.opListReadCapability){var r,n=_createForOfIteratorHelper(i.renderTasks);try{for(n.s();!(r=n.n()).done;){var s=r.value;t.push(s.completed),s.cancel()}}catch(e){n.e(e)}finally{n.f()}}}}catch(e){a.e(e)}finally{a.f()}return this.objs.clear(),_classPrivateFieldSet(_pendingCleanup,this,!1),_assertClassBrand(_PDFPageProxy_brand,this,_abortDelayedCleanup).call(this),Promise.all(t)}},{key:"cleanup",value:function(){var e=arguments.length>0&&void 0!==arguments[0]&&arguments[0];_classPrivateFieldSet(_pendingCleanup,this,!0);var t=_assertClassBrand(_PDFPageProxy_brand,this,_tryCleanup).call(this,!1);return e&&t&&this._stats&&(this._stats=new _display_utils.StatTimer),t}},{key:"_startRenderPage",value:function(e,t){var a,i,r=this._intentStates.get(t);r&&(null===(a=this._stats)||void 0===a||a.timeEnd("Page Request"),null===(i=r.displayReadyCapability)||void 0===i||i.resolve(e))}},{key:"_renderPageChunk",value:function(e,t){for(var a=0,i=e.length;a<i;a++)t.operatorList.fnArray.push(e.fnArray[a]),t.operatorList.argsArray.push(e.argsArray[a]);t.operatorList.lastChunk=e.lastChunk,t.operatorList.separateAnnots=e.separateAnnots;var r,n=_createForOfIteratorHelper(t.renderTasks);try{for(n.s();!(r=n.n()).done;)r.value.operatorListChanged()}catch(e){n.e(e)}finally{n.f()}e.lastChunk&&_assertClassBrand(_PDFPageProxy_brand,this,_tryCleanup).call(this,!0)}},{key:"_pumpOperatorList",value:function(e){var t=this,a=e.renderingIntent,i=e.cacheKey,r=e.annotationStorageSerializable,n=r.map,s=r.transfers,o=this._transport.messageHandler.sendWithStream("GetOperatorList",{pageIndex:this._pageIndex,intent:a,cacheKey:i,annotationStorage:n},s).getReader(),l=this._intentStates.get(i);l.streamReader=o;var c=function(){o.read().then((function(e){var a=e.value;e.done?l.streamReader=null:t._transport.destroyed||(t._renderPageChunk(a,l),c())}),(function(e){if(l.streamReader=null,!t._transport.destroyed){if(l.operatorList){l.operatorList.lastChunk=!0;var a,i=_createForOfIteratorHelper(l.renderTasks);try{for(i.s();!(a=i.n()).done;)a.value.operatorListChanged()}catch(e){i.e(e)}finally{i.f()}_assertClassBrand(_PDFPageProxy_brand,t,_tryCleanup).call(t,!0)}if(l.displayReadyCapability)l.displayReadyCapability.reject(e);else{if(!l.opListReadCapability)throw e;l.opListReadCapability.reject(e)}}}))};c()}},{key:"_abortOperatorList",value:function(e){var t=this,a=e.intentState,i=e.reason,r=e.force,n=void 0!==r&&r;if(a.streamReader){if(a.streamReaderCancelTimeout&&(clearTimeout(a.streamReaderCancelTimeout),a.streamReaderCancelTimeout=null),!n){if(a.renderTasks.size>0)return;if(i instanceof _display_utils.RenderingCancelledException){var s=RENDERING_CANCELLED_TIMEOUT;return i.extraDelay>0&&i.extraDelay<1e3&&(s+=i.extraDelay),void(a.streamReaderCancelTimeout=setTimeout((function(){a.streamReaderCancelTimeout=null,t._abortOperatorList({intentState:a,reason:i,force:!0})}),s))}}if(a.streamReader.cancel(new _util.AbortException(i.message)).catch((function(){})),a.streamReader=null,!this._transport.destroyed){var o,l=_createForOfIteratorHelper(this._intentStates);try{for(l.s();!(o=l.n()).done;){var c=_slicedToArray(o.value,2),u=c[0];if(c[1]===a){this._intentStates.delete(u);break}}}catch(e){l.e(e)}finally{l.f()}this.cleanup()}}}},{key:"stats",get:function(){return this._stats}}]);var e}();function _tryCleanup(){var e=this,t=arguments.length>0&&void 0!==arguments[0]&&arguments[0];if(_assertClassBrand(_PDFPageProxy_brand,this,_abortDelayedCleanup).call(this),!_classPrivateFieldGet(_pendingCleanup,this)||this.destroyed)return!1;if(t)return _classPrivateFieldSet(_delayedCleanupTimeout,this,setTimeout((function(){_classPrivateFieldSet(_delayedCleanupTimeout,e,null),_assertClassBrand(_PDFPageProxy_brand,e,_tryCleanup).call(e,!1)}),DELAYED_CLEANUP_TIMEOUT)),!1;var a,i=_createForOfIteratorHelper(this._intentStates.values());try{for(i.s();!(a=i.n()).done;){var r=a.value,n=r.renderTasks,s=r.operatorList;if(n.size>0||!s.lastChunk)return!1}}catch(e){i.e(e)}finally{i.f()}return this._intentStates.clear(),this.objs.clear(),_classPrivateFieldSet(_pendingCleanup,this,!1),!0}function _abortDelayedCleanup(){_classPrivateFieldGet(_delayedCleanupTimeout,this)&&(clearTimeout(_classPrivateFieldGet(_delayedCleanupTimeout,this)),_classPrivateFieldSet(_delayedCleanupTimeout,this,null))}exports.PDFPageProxy=PDFPageProxy;var _listeners=new WeakMap,_deferred=new WeakMap,LoopbackPort=function(){return _createClass((function e(){_classCallCheck(this,e),_classPrivateFieldInitSpec(this,_listeners,new Set),_classPrivateFieldInitSpec(this,_deferred,Promise.resolve())}),[{key:"postMessage",value:function(e,t){var a=this,i={data:structuredClone(e,t?{transfer:t}:null)};_classPrivateFieldGet(_deferred,this).then((function(){var e,t=_createForOfIteratorHelper(_classPrivateFieldGet(_listeners,a));try{for(t.s();!(e=t.n()).done;)e.value.call(a,i)}catch(e){t.e(e)}finally{t.f()}}))}},{key:"addEventListener",value:function(e,t){_classPrivateFieldGet(_listeners,this).add(t)}},{key:"removeEventListener",value:function(e,t){_classPrivateFieldGet(_listeners,this).delete(t)}},{key:"terminate",value:function(){_classPrivateFieldGet(_listeners,this).clear()}}])}();exports.LoopbackPort=LoopbackPort;var PDFWorkerUtil={isWorkerDisabled:!1,fallbackWorkerSrc:null,fakeWorkerId:0};if(exports.PDFWorkerUtil=PDFWorkerUtil,_util.isNodeJS)PDFWorkerUtil.isWorkerDisabled=!0,PDFWorkerUtil.fallbackWorkerSrc="./pdf.worker.js";else if("object"===("undefined"==typeof document?"undefined":_typeof(document))){var _document,pdfjsFilePath=null===(_document=document)||void 0===_document||null===(_document=_document.currentScript)||void 0===_document?void 0:_document.src;pdfjsFilePath&&(PDFWorkerUtil.fallbackWorkerSrc=pdfjsFilePath.replace(/(\.(?:min\.)?js)(\?.*)?$/i,".worker$1$2"))}PDFWorkerUtil.isSameOrigin=function(e,t){var a;try{if(!(a=new URL(e)).origin||"null"===a.origin)return!1}catch(e){return!1}var i=new URL(t,a);return a.origin===i.origin},PDFWorkerUtil.createCDNWrapper=function(e){var t='importScripts("'.concat(e,'");');return URL.createObjectURL(new Blob([t]))};var PDFWorker=function(){function PDFWorker(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.name,a=void 0===t?null:t,i=e.port,r=void 0===i?null:i,n=e.verbosity,s=void 0===n?(0,_util.getVerbosityLevel)():n;if(_classCallCheck(this,PDFWorker),this.name=a,this.destroyed=!1,this.verbosity=s,this._readyCapability=new _util.PromiseCapability,this._port=null,this._webWorker=null,this._messageHandler=null,r){var o;if(null!==(o=_workerPorts._)&&void 0!==o&&o.has(r))throw new Error("Cannot use more than one PDFWorker per port.");return(_workerPorts._||(_workerPorts._=new WeakMap)).set(r,this),void this._initializeFromPort(r)}this._initialize()}return _createClass(PDFWorker,[{key:"promise",get:function(){return this._readyCapability.promise}},{key:"port",get:function(){return this._port}},{key:"messageHandler",get:function(){return this._messageHandler}},{key:"_initializeFromPort",value:function(e){this._port=e,this._messageHandler=new _message_handler.MessageHandler("main","worker",e),this._messageHandler.on("ready",(function(){})),this._readyCapability.resolve(),this._messageHandler.send("configure",{verbosity:this.verbosity})}},{key:"_initialize",value:function(){var e=this;if(!PDFWorkerUtil.isWorkerDisabled&&!PDFWorker._mainThreadWorkerMessageHandler){var t=PDFWorker.workerSrc;try{PDFWorkerUtil.isSameOrigin(window.location.href,t)||(t=PDFWorkerUtil.createCDNWrapper(new URL(t,window.location).href));var a=new Worker(t),i=new _message_handler.MessageHandler("main","worker",a),r=function(){a.removeEventListener("error",n),i.destroy(),a.terminate(),e.destroyed?e._readyCapability.reject(new Error("Worker was destroyed")):e._setupFakeWorker()},n=function(){e._webWorker||r()};a.addEventListener("error",n),i.on("test",(function(t){a.removeEventListener("error",n),e.destroyed?r():t?(e._messageHandler=i,e._port=a,e._webWorker=a,e._readyCapability.resolve(),i.send("configure",{verbosity:e.verbosity})):(e._setupFakeWorker(),i.destroy(),a.terminate())})),i.on("ready",(function(t){if(a.removeEventListener("error",n),e.destroyed)r();else try{s()}catch(t){e._setupFakeWorker()}}));var s=function(){var e=new Uint8Array;i.send("test",e,[e.buffer])};return void s()}catch(e){(0,_util.info)("The worker has been disabled.")}}this._setupFakeWorker()}},{key:"_setupFakeWorker",value:function(){var e=this;PDFWorkerUtil.isWorkerDisabled||((0,_util.warn)("Setting up fake worker."),PDFWorkerUtil.isWorkerDisabled=!0),PDFWorker._setupFakeWorkerGlobal.then((function(t){if(e.destroyed)e._readyCapability.reject(new Error("Worker was destroyed"));else{var a=new LoopbackPort;e._port=a;var i="fake".concat(PDFWorkerUtil.fakeWorkerId++),r=new _message_handler.MessageHandler(i+"_worker",i,a);t.setup(r,a);var n=new _message_handler.MessageHandler(i,i+"_worker",a);e._messageHandler=n,e._readyCapability.resolve(),n.send("configure",{verbosity:e.verbosity})}})).catch((function(t){e._readyCapability.reject(new Error('Setting up fake worker failed: "'.concat(t.message,'".')))}))}},{key:"destroy",value:function(){var e;this.destroyed=!0,this._webWorker&&(this._webWorker.terminate(),this._webWorker=null),null===(e=_workerPorts._)||void 0===e||e.delete(this._port),this._port=null,this._messageHandler&&(this._messageHandler.destroy(),this._messageHandler=null)}}],[{key:"fromPort",value:function(e){var t;if(null==e||!e.port)throw new Error("PDFWorker.fromPort - invalid method signature.");var a=null===(t=_assertClassBrand(PDFWorker,this,_workerPorts)._)||void 0===t?void 0:t.get(e.port);if(a){if(a._pendingDestroy)throw new Error("PDFWorker.fromPort - the worker is being destroyed.\nPlease remember to await `PDFDocumentLoadingTask.destroy()`-calls.");return a}return new PDFWorker(e)}},{key:"workerSrc",get:function(){if(_worker_options.GlobalWorkerOptions.workerSrc)return _worker_options.GlobalWorkerOptions.workerSrc;if(null!==PDFWorkerUtil.fallbackWorkerSrc)return _util.isNodeJS||(0,_display_utils.deprecated)('No "GlobalWorkerOptions.workerSrc" specified.'),PDFWorkerUtil.fallbackWorkerSrc;throw new Error('No "GlobalWorkerOptions.workerSrc" specified.')}},{key:"_mainThreadWorkerMessageHandler",get:function(){try{var e;return(null===(e=globalThis.pdfjsWorker)||void 0===e?void 0:e.WorkerMessageHandler)||null}catch(e){return null}}},{key:"_setupFakeWorkerGlobal",get:function get(){var _this13=this,loader=function(){var _ref13=_asyncToGenerator(_regenerator().m((function _callee3(){var mainWorkerMessageHandler,worker;return _regenerator().w((function(_context3){for(;;)switch(_context3.n){case 0:if(mainWorkerMessageHandler=_this13._mainThreadWorkerMessageHandler,!mainWorkerMessageHandler){_context3.n=1;break}return _context3.a(2,mainWorkerMessageHandler);case 1:if(!_util.isNodeJS){_context3.n=2;break}return worker=eval("require")(_this13.workerSrc),_context3.a(2,worker.WorkerMessageHandler);case 2:return _context3.n=3,(0,_display_utils.loadScript)(_this13.workerSrc);case 3:return _context3.a(2,window.pdfjsWorker.WorkerMessageHandler)}}),_callee3)})));return function(){return _ref13.apply(this,arguments)}}();return(0,_util.shadow)(this,"_setupFakeWorkerGlobal",loader())}}])}(),_workerPorts={_:void 0};exports.PDFWorker=PDFWorker;var _methodPromises=new WeakMap,_pageCache=new WeakMap,_pagePromises=new WeakMap,_passwordCapability=new WeakMap,_WorkerTransport_brand=new WeakSet,WorkerTransport=function(){return _createClass((function e(t,a,i,r,n){_classCallCheck(this,e),_classPrivateMethodInitSpec(this,_WorkerTransport_brand),_classPrivateFieldInitSpec(this,_methodPromises,new Map),_classPrivateFieldInitSpec(this,_pageCache,new Map),_classPrivateFieldInitSpec(this,_pagePromises,new Map),_classPrivateFieldInitSpec(this,_passwordCapability,null),this.messageHandler=t,this.loadingTask=a,this.commonObjs=new PDFObjects,this.fontLoader=new _font_loader.FontLoader({ownerDocument:r.ownerDocument,styleElement:r.styleElement}),this._params=r,this.canvasFactory=n.canvasFactory,this.filterFactory=n.filterFactory,this.cMapReaderFactory=n.cMapReaderFactory,this.standardFontDataFactory=n.standardFontDataFactory,this.destroyed=!1,this.destroyCapability=null,this._networkStream=i,this._fullReader=null,this._lastProgress=null,this.downloadInfoCapability=new _util.PromiseCapability,this.setupMessageHandler()}),[{key:"annotationStorage",get:function(){return(0,_util.shadow)(this,"annotationStorage",new _annotation_storage.AnnotationStorage)}},{key:"getRenderingIntent",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:_util.AnnotationMode.ENABLE,a=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null,i=arguments.length>3&&void 0!==arguments[3]&&arguments[3],r=_util.RenderingIntentFlag.DISPLAY,n=_annotation_storage.SerializableEmpty;switch(e){case"any":r=_util.RenderingIntentFlag.ANY;break;case"display":break;case"print":r=_util.RenderingIntentFlag.PRINT;break;default:(0,_util.warn)("getRenderingIntent - invalid intent: ".concat(e))}switch(t){case _util.AnnotationMode.DISABLE:r+=_util.RenderingIntentFlag.ANNOTATIONS_DISABLE;break;case _util.AnnotationMode.ENABLE:break;case _util.AnnotationMode.ENABLE_FORMS:r+=_util.RenderingIntentFlag.ANNOTATIONS_FORMS;break;case _util.AnnotationMode.ENABLE_STORAGE:n=((r+=_util.RenderingIntentFlag.ANNOTATIONS_STORAGE)&_util.RenderingIntentFlag.PRINT&&a instanceof _annotation_storage.PrintAnnotationStorage?a:this.annotationStorage).serializable;break;default:(0,_util.warn)("getRenderingIntent - invalid annotationMode: ".concat(t))}return i&&(r+=_util.RenderingIntentFlag.OPLIST),{renderingIntent:r,cacheKey:"".concat(r,"_").concat(n.hash),annotationStorageSerializable:n}}},{key:"destroy",value:function(){var e,t=this;if(this.destroyCapability)return this.destroyCapability.promise;this.destroyed=!0,this.destroyCapability=new _util.PromiseCapability,null===(e=_classPrivateFieldGet(_passwordCapability,this))||void 0===e||e.reject(new Error("Worker was destroyed during onPassword callback"));var a,i=[],r=_createForOfIteratorHelper(_classPrivateFieldGet(_pageCache,this).values());try{for(r.s();!(a=r.n()).done;){var n=a.value;i.push(n._destroy())}}catch(e){r.e(e)}finally{r.f()}_classPrivateFieldGet(_pageCache,this).clear(),_classPrivateFieldGet(_pagePromises,this).clear(),this.hasOwnProperty("annotationStorage")&&this.annotationStorage.resetModified();var s=this.messageHandler.sendWithPromise("Terminate",null);return i.push(s),Promise.all(i).then((function(){var e;t.commonObjs.clear(),t.fontLoader.clear(),_classPrivateFieldGet(_methodPromises,t).clear(),t.filterFactory.destroy(),null===(e=t._networkStream)||void 0===e||e.cancelAllRequests(new _util.AbortException("Worker was terminated.")),t.messageHandler&&(t.messageHandler.destroy(),t.messageHandler=null),t.destroyCapability.resolve()}),this.destroyCapability.reject),this.destroyCapability.promise}},{key:"setupMessageHandler",value:function(){var e=this,t=this.messageHandler,a=this.loadingTask;t.on("GetReader",(function(t,a){(0,_util.assert)(e._networkStream,"GetReader - no `IPDFStream` instance available."),e._fullReader=e._networkStream.getFullReader(),e._fullReader.onProgress=function(t){e._lastProgress={loaded:t.loaded,total:t.total}},a.onPull=function(){e._fullReader.read().then((function(e){var t=e.value;e.done?a.close():((0,_util.assert)(t instanceof ArrayBuffer,"GetReader - expected an ArrayBuffer."),a.enqueue(new Uint8Array(t),1,[t]))})).catch((function(e){a.error(e)}))},a.onCancel=function(t){e._fullReader.cancel(t),a.ready.catch((function(t){if(!e.destroyed)throw t}))}})),t.on("ReaderHeadersReady",(function(t){var i=new _util.PromiseCapability,r=e._fullReader;return r.headersReady.then((function(){var t;r.isStreamingSupported&&r.isRangeSupported||(e._lastProgress&&(null===(t=a.onProgress)||void 0===t||t.call(a,e._lastProgress)),r.onProgress=function(e){var t;null===(t=a.onProgress)||void 0===t||t.call(a,{loaded:e.loaded,total:e.total})}),i.resolve({isStreamingSupported:r.isStreamingSupported,isRangeSupported:r.isRangeSupported,contentLength:r.contentLength})}),i.reject),i.promise})),t.on("GetRangeReader",(function(t,a){(0,_util.assert)(e._networkStream,"GetRangeReader - no `IPDFStream` instance available.");var i=e._networkStream.getRangeReader(t.begin,t.end);i?(a.onPull=function(){i.read().then((function(e){var t=e.value;e.done?a.close():((0,_util.assert)(t instanceof ArrayBuffer,"GetRangeReader - expected an ArrayBuffer."),a.enqueue(new Uint8Array(t),1,[t]))})).catch((function(e){a.error(e)}))},a.onCancel=function(t){i.cancel(t),a.ready.catch((function(t){if(!e.destroyed)throw t}))}):a.close()})),t.on("GetDoc",(function(t){var i=t.pdfInfo;e._numPages=i.numPages,e._htmlForXfa=i.htmlForXfa,delete i.htmlForXfa,a._capability.resolve(new PDFDocumentProxy(i,e))})),t.on("DocException",(function(e){var t;switch(e.name){case"PasswordException":t=new _util.PasswordException(e.message,e.code);break;case"InvalidPDFException":t=new _util.InvalidPDFException(e.message);break;case"MissingPDFException":t=new _util.MissingPDFException(e.message);break;case"UnexpectedResponseException":t=new _util.UnexpectedResponseException(e.message,e.status);break;case"UnknownErrorException":t=new _util.UnknownErrorException(e.message,e.details);break;default:(0,_util.unreachable)("DocException - expected a valid Error.")}a._capability.reject(t)})),t.on("PasswordRequest",(function(t){if(_classPrivateFieldSet(_passwordCapability,e,new _util.PromiseCapability),a.onPassword)try{a.onPassword((function(t){t instanceof Error?_classPrivateFieldGet(_passwordCapability,e).reject(t):_classPrivateFieldGet(_passwordCapability,e).resolve({password:t})}),t.code)}catch(t){_classPrivateFieldGet(_passwordCapability,e).reject(t)}else _classPrivateFieldGet(_passwordCapability,e).reject(new _util.PasswordException(t.message,t.code));return _classPrivateFieldGet(_passwordCapability,e).promise})),t.on("DataLoaded",(function(t){var i;null===(i=a.onProgress)||void 0===i||i.call(a,{loaded:t.length,total:t.length}),e.downloadInfoCapability.resolve(t)})),t.on("StartRenderPage",(function(t){e.destroyed||_classPrivateFieldGet(_pageCache,e).get(t.pageIndex)._startRenderPage(t.transparency,t.cacheKey)})),t.on("commonobj",(function(a){var i,r=_slicedToArray(a,3),n=r[0],s=r[1],o=r[2];if(!e.destroyed&&!e.commonObjs.has(n))switch(s){case"Font":var l=e._params;if("error"in o){var c=o.error;(0,_util.warn)("Error during font loading: ".concat(c)),e.commonObjs.resolve(n,c);break}var u=l.pdfBug&&null!==(i=globalThis.FontInspector)&&void 0!==i&&i.enabled?function(e,t){return globalThis.FontInspector.fontAdded(e,t)}:null,d=new _font_loader.FontFaceObject(o,{isEvalSupported:l.isEvalSupported,disableFontFace:l.disableFontFace,ignoreErrors:l.ignoreErrors,inspectFont:u});e.fontLoader.bind(d).catch((function(e){return t.sendWithPromise("FontFallback",{id:n})})).finally((function(){!l.fontExtraProperties&&d.data&&(d.data=null),e.commonObjs.resolve(n,d)}));break;case"FontPath":case"Image":case"Pattern":e.commonObjs.resolve(n,o);break;default:throw new Error("Got unknown common object type ".concat(s))}})),t.on("obj",(function(t){var a=_slicedToArray(t,4),i=a[0],r=a[1],n=a[2],s=a[3];if(!e.destroyed){var o=_classPrivateFieldGet(_pageCache,e).get(r);if(!o.objs.has(i))switch(n){case"Image":var l;o.objs.resolve(i,s),s&&(s.bitmap?s.width*s.height*4:(null===(l=s.data)||void 0===l?void 0:l.length)||0)>_util.MAX_IMAGE_SIZE_TO_CACHE&&(o._maybeCleanupAfterRender=!0);break;case"Pattern":o.objs.resolve(i,s);break;default:throw new Error("Got unknown object type ".concat(n))}}})),t.on("DocProgress",(function(t){var i;e.destroyed||null===(i=a.onProgress)||void 0===i||i.call(a,{loaded:t.loaded,total:t.total})})),t.on("FetchBuiltInCMap",(function(t){return e.destroyed?Promise.reject(new Error("Worker was destroyed.")):e.cMapReaderFactory?e.cMapReaderFactory.fetch(t):Promise.reject(new Error("CMapReaderFactory not initialized, see the `useWorkerFetch` parameter."))})),t.on("FetchStandardFontData",(function(t){return e.destroyed?Promise.reject(new Error("Worker was destroyed.")):e.standardFontDataFactory?e.standardFontDataFactory.fetch(t):Promise.reject(new Error("StandardFontDataFactory not initialized, see the `useWorkerFetch` parameter."))}))}},{key:"getData",value:function(){return this.messageHandler.sendWithPromise("GetData",null)}},{key:"saveDocument",value:function(){var e,t,a=this;this.annotationStorage.size<=0&&(0,_util.warn)("saveDocument called while `annotationStorage` is empty, please use the getData-method instead.");var i=this.annotationStorage.serializable,r=i.map,n=i.transfers;return this.messageHandler.sendWithPromise("SaveDocument",{isPureXfa:!!this._htmlForXfa,numPages:this._numPages,annotationStorage:r,filename:null!==(e=null===(t=this._fullReader)||void 0===t?void 0:t.filename)&&void 0!==e?e:null},n).finally((function(){a.annotationStorage.resetModified()}))}},{key:"getPage",value:function(e){var t=this;if(!Number.isInteger(e)||e<=0||e>this._numPages)return Promise.reject(new Error("Invalid page request."));var a=e-1,i=_classPrivateFieldGet(_pagePromises,this).get(a);if(i)return i;var r=this.messageHandler.sendWithPromise("GetPage",{pageIndex:a}).then((function(e){if(t.destroyed)throw new Error("Transport destroyed");var i=new PDFPageProxy(a,e,t,t._params.pdfBug);return _classPrivateFieldGet(_pageCache,t).set(a,i),i}));return _classPrivateFieldGet(_pagePromises,this).set(a,r),r}},{key:"getPageIndex",value:function(e){return"object"!==_typeof(e)||null===e||!Number.isInteger(e.num)||e.num<0||!Number.isInteger(e.gen)||e.gen<0?Promise.reject(new Error("Invalid pageIndex request.")):this.messageHandler.sendWithPromise("GetPageIndex",{num:e.num,gen:e.gen})}},{key:"getAnnotations",value:function(e,t){return this.messageHandler.sendWithPromise("GetAnnotations",{pageIndex:e,intent:t})}},{key:"getFieldObjects",value:function(){return _assertClassBrand(_WorkerTransport_brand,this,_cacheSimpleMethod).call(this,"GetFieldObjects")}},{key:"hasJSActions",value:function(){return _assertClassBrand(_WorkerTransport_brand,this,_cacheSimpleMethod).call(this,"HasJSActions")}},{key:"getCalculationOrderIds",value:function(){return this.messageHandler.sendWithPromise("GetCalculationOrderIds",null)}},{key:"getDestinations",value:function(){return this.messageHandler.sendWithPromise("GetDestinations",null)}},{key:"getDestination",value:function(e){return"string"!=typeof e?Promise.reject(new Error("Invalid destination request.")):this.messageHandler.sendWithPromise("GetDestination",{id:e})}},{key:"getPageLabels",value:function(){return this.messageHandler.sendWithPromise("GetPageLabels",null)}},{key:"getPageLayout",value:function(){return this.messageHandler.sendWithPromise("GetPageLayout",null)}},{key:"getPageMode",value:function(){return this.messageHandler.sendWithPromise("GetPageMode",null)}},{key:"getViewerPreferences",value:function(){return this.messageHandler.sendWithPromise("GetViewerPreferences",null)}},{key:"getOpenAction",value:function(){return this.messageHandler.sendWithPromise("GetOpenAction",null)}},{key:"getAttachments",value:function(){return this.messageHandler.sendWithPromise("GetAttachments",null)}},{key:"getDocJSActions",value:function(){return _assertClassBrand(_WorkerTransport_brand,this,_cacheSimpleMethod).call(this,"GetDocJSActions")}},{key:"getPageJSActions",value:function(e){return this.messageHandler.sendWithPromise("GetPageJSActions",{pageIndex:e})}},{key:"getStructTree",value:function(e){return this.messageHandler.sendWithPromise("GetStructTree",{pageIndex:e})}},{key:"getOutline",value:function(){return this.messageHandler.sendWithPromise("GetOutline",null)}},{key:"getOptionalContentConfig",value:function(){return this.messageHandler.sendWithPromise("GetOptionalContentConfig",null).then((function(e){return new _optional_content_config.OptionalContentConfig(e)}))}},{key:"getPermissions",value:function(){return this.messageHandler.sendWithPromise("GetPermissions",null)}},{key:"getMetadata",value:function(){var e=this,t="GetMetadata",a=_classPrivateFieldGet(_methodPromises,this).get(t);if(a)return a;var i=this.messageHandler.sendWithPromise(t,null).then((function(t){var a,i,r,n;return{info:t[0],metadata:t[1]?new _metadata.Metadata(t[1]):null,contentDispositionFilename:null!==(a=null===(i=e._fullReader)||void 0===i?void 0:i.filename)&&void 0!==a?a:null,contentLength:null!==(r=null===(n=e._fullReader)||void 0===n?void 0:n.contentLength)&&void 0!==r?r:null}}));return _classPrivateFieldGet(_methodPromises,this).set(t,i),i}},{key:"getMarkInfo",value:function(){return this.messageHandler.sendWithPromise("GetMarkInfo",null)}},{key:"startCleanup",value:(e=_asyncToGenerator(_regenerator().m((function e(){var t,a,i,r,n,s=arguments;return _regenerator().w((function(e){for(;;)switch(e.n){case 0:if(t=s.length>0&&void 0!==s[0]&&s[0],!this.destroyed){e.n=1;break}return e.a(2);case 1:return e.n=2,this.messageHandler.sendWithPromise("Cleanup",null);case 2:a=_createForOfIteratorHelper(_classPrivateFieldGet(_pageCache,this).values()),e.p=3,a.s();case 4:if((i=a.n()).done){e.n=6;break}if((r=i.value).cleanup()){e.n=5;break}throw new Error("startCleanup: Page ".concat(r.pageNumber," is currently rendering."));case 5:e.n=4;break;case 6:e.n=8;break;case 7:e.p=7,n=e.v,a.e(n);case 8:return e.p=8,a.f(),e.f(8);case 9:this.commonObjs.clear(),t||this.fontLoader.clear(),_classPrivateFieldGet(_methodPromises,this).clear(),this.filterFactory.destroy(!0);case 10:return e.a(2)}}),e,this,[[3,7,8,9]])}))),function(){return e.apply(this,arguments)})},{key:"loadingParams",get:function(){var e=this._params,t=e.disableAutoFetch,a=e.enableXfa;return(0,_util.shadow)(this,"loadingParams",{disableAutoFetch:t,enableXfa:a})}}]);var e}();function _cacheSimpleMethod(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null,a=_classPrivateFieldGet(_methodPromises,this).get(e);if(a)return a;var i=this.messageHandler.sendWithPromise(e,t);return _classPrivateFieldGet(_methodPromises,this).set(e,i),i}var _objs=new WeakMap,_PDFObjects_brand=new WeakSet,PDFObjects=function(){return _createClass((function e(){_classCallCheck(this,e),_classPrivateMethodInitSpec(this,_PDFObjects_brand),_classPrivateFieldInitSpec(this,_objs,Object.create(null))}),[{key:"get",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null;if(t){var a=_assertClassBrand(_PDFObjects_brand,this,_ensureObj).call(this,e);return a.capability.promise.then((function(){return t(a.data)})),null}var i=_classPrivateFieldGet(_objs,this)[e];if(null==i||!i.capability.settled)throw new Error("Requesting object that isn't resolved yet ".concat(e,"."));return i.data}},{key:"has",value:function(e){var t=_classPrivateFieldGet(_objs,this)[e];return(null==t?void 0:t.capability.settled)||!1}},{key:"resolve",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null,a=_assertClassBrand(_PDFObjects_brand,this,_ensureObj).call(this,e);a.data=t,a.capability.resolve()}},{key:"clear",value:function(){for(var e in _classPrivateFieldGet(_objs,this)){var t,a=_classPrivateFieldGet(_objs,this)[e].data;null==a||null===(t=a.bitmap)||void 0===t||t.close()}_classPrivateFieldSet(_objs,this,Object.create(null))}}])}();function _ensureObj(e){var t;return(t=_classPrivateFieldGet(_objs,this))[e]||(t[e]={capability:new _util.PromiseCapability,data:null})}var _internalRenderTask=new WeakMap,RenderTask=function(){return _createClass((function e(t){_classCallCheck(this,e),_classPrivateFieldInitSpec(this,_internalRenderTask,null),_classPrivateFieldSet(_internalRenderTask,this,t),this.onContinue=null}),[{key:"promise",get:function(){return _classPrivateFieldGet(_internalRenderTask,this).capability.promise}},{key:"cancel",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0;_classPrivateFieldGet(_internalRenderTask,this).cancel(null,e)}},{key:"separateAnnots",get:function(){var e=_classPrivateFieldGet(_internalRenderTask,this).operatorList.separateAnnots;if(!e)return!1;var t=_classPrivateFieldGet(_internalRenderTask,this).annotationCanvasMap;return e.form||e.canvas&&(null==t?void 0:t.size)>0}}])}();exports.RenderTask=RenderTask;var InternalRenderTask=function(){return _createClass((function e(t){var a=t.callback,i=t.params,r=t.objs,n=t.commonObjs,s=t.annotationCanvasMap,o=t.operatorList,l=t.pageIndex,c=t.canvasFactory,u=t.filterFactory,d=t.useRequestAnimationFrame,h=void 0!==d&&d,v=t.pdfBug,f=void 0!==v&&v,p=t.pageColors,_=void 0===p?null:p;_classCallCheck(this,e),this.callback=a,this.params=i,this.objs=r,this.commonObjs=n,this.annotationCanvasMap=s,this.operatorListIdx=null,this.operatorList=o,this._pageIndex=l,this.canvasFactory=c,this.filterFactory=u,this._pdfBug=f,this.pageColors=_,this.running=!1,this.graphicsReadyCallback=null,this.graphicsReady=!1,this._useRequestAnimationFrame=!0===h&&"undefined"!=typeof window,this.cancelled=!1,this.capability=new _util.PromiseCapability,this.task=new RenderTask(this),this._cancelBound=this.cancel.bind(this),this._continueBound=this._continue.bind(this),this._scheduleNextBound=this._scheduleNext.bind(this),this._nextBound=this._next.bind(this),this._canvas=i.canvasContext.canvas}),[{key:"completed",get:function(){return this.capability.promise.catch((function(){}))}},{key:"initializeGraphics",value:function(e){var t,a,i=e.transparency,r=void 0!==i&&i,n=e.optionalContentConfig;if(!this.cancelled){if(this._canvas){if(_canvasInUse._.has(this._canvas))throw new Error("Cannot use the same canvas during multiple render() operations. Use different canvas or ensure previous operations were cancelled or completed.");_canvasInUse._.add(this._canvas)}this._pdfBug&&null!==(t=globalThis.StepperManager)&&void 0!==t&&t.enabled&&(this.stepper=globalThis.StepperManager.create(this._pageIndex),this.stepper.init(this.operatorList),this.stepper.nextBreakPoint=this.stepper.getNextBreakPoint());var s=this.params,o=s.canvasContext,l=s.viewport,c=s.transform,u=s.background;this.gfx=new _canvas.CanvasGraphics(o,this.commonObjs,this.objs,this.canvasFactory,this.filterFactory,{optionalContentConfig:n},this.annotationCanvasMap,this.pageColors),this.gfx.beginDrawing({transform:c,viewport:l,transparency:r,background:u}),this.operatorListIdx=0,this.graphicsReady=!0,null===(a=this.graphicsReadyCallback)||void 0===a||a.call(this)}}},{key:"cancel",value:function(){var e,t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null,a=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;this.running=!1,this.cancelled=!0,null===(e=this.gfx)||void 0===e||e.endDrawing(),_canvasInUse._.delete(this._canvas),this.callback(t||new _display_utils.RenderingCancelledException("Rendering cancelled, page ".concat(this._pageIndex+1),a))}},{key:"operatorListChanged",value:function(){var e;this.graphicsReady?(null===(e=this.stepper)||void 0===e||e.updateOperatorList(this.operatorList),this.running||this._continue()):this.graphicsReadyCallback||(this.graphicsReadyCallback=this._continueBound)}},{key:"_continue",value:function(){this.running=!0,this.cancelled||(this.task.onContinue?this.task.onContinue(this._scheduleNextBound):this._scheduleNext())}},{key:"_scheduleNext",value:function(){var e=this;this._useRequestAnimationFrame?window.requestAnimationFrame((function(){e._nextBound().catch(e._cancelBound)})):Promise.resolve().then(this._nextBound).catch(this._cancelBound)}},{key:"_next",value:(e=_asyncToGenerator(_regenerator().m((function e(){return _regenerator().w((function(e){for(;;)switch(e.n){case 0:if(!this.cancelled){e.n=1;break}return e.a(2);case 1:this.operatorListIdx=this.gfx.executeOperatorList(this.operatorList,this.operatorListIdx,this._continueBound,this.stepper),this.operatorListIdx===this.operatorList.argsArray.length&&(this.running=!1,this.operatorList.lastChunk&&(this.gfx.endDrawing(),_canvasInUse._.delete(this._canvas),this.callback()));case 2:return e.a(2)}}),e,this)}))),function(){return e.apply(this,arguments)})}]);var e}(),_canvasInUse={_:new WeakSet},version="3.11.174";exports.version=version;var build="ce8716743";exports.build=build},function(e,t,a){Object.defineProperty(t,"__esModule",{value:!0}),t.SerializableEmpty=t.PrintAnnotationStorage=t.AnnotationStorage=void 0;var i=a(1),r=a(4),n=a(8),s=Object.freeze({map:null,hash:"",transfers:void 0});t.SerializableEmpty=s;var o=new WeakMap,l=new WeakMap,c=new WeakSet,u=function(){return _createClass((function e(){_classCallCheck(this,e),_classPrivateMethodInitSpec(this,c),_classPrivateFieldInitSpec(this,o,!1),_classPrivateFieldInitSpec(this,l,new Map),this.onSetModified=null,this.onResetModified=null,this.onAnnotationEditor=null}),[{key:"getValue",value:function(e,t){var a=_classPrivateFieldGet(l,this).get(e);return void 0===a?t:Object.assign(t,a)}},{key:"getRawValue",value:function(e){return _classPrivateFieldGet(l,this).get(e)}},{key:"remove",value:function(e){if(_classPrivateFieldGet(l,this).delete(e),0===_classPrivateFieldGet(l,this).size&&this.resetModified(),"function"==typeof this.onAnnotationEditor){var t,a=_createForOfIteratorHelper(_classPrivateFieldGet(l,this).values());try{for(a.s();!(t=a.n()).done;)if(t.value instanceof r.AnnotationEditor)return}catch(e){a.e(e)}finally{a.f()}this.onAnnotationEditor(null)}}},{key:"setValue",value:function(e,t){var a=_classPrivateFieldGet(l,this).get(e),i=!1;if(void 0!==a)for(var n=0,s=Object.entries(t);n<s.length;n++){var o=_slicedToArray(s[n],2),u=o[0],h=o[1];a[u]!==h&&(i=!0,a[u]=h)}else i=!0,_classPrivateFieldGet(l,this).set(e,t);i&&_assertClassBrand(c,this,d).call(this),t instanceof r.AnnotationEditor&&"function"==typeof this.onAnnotationEditor&&this.onAnnotationEditor(t.constructor._type)}},{key:"has",value:function(e){return _classPrivateFieldGet(l,this).has(e)}},{key:"getAll",value:function(){return _classPrivateFieldGet(l,this).size>0?(0,i.objectFromMap)(_classPrivateFieldGet(l,this)):null}},{key:"setAll",value:function(e){for(var t=0,a=Object.entries(e);t<a.length;t++){var i=_slicedToArray(a[t],2),r=i[0],n=i[1];this.setValue(r,n)}}},{key:"size",get:function(){return _classPrivateFieldGet(l,this).size}},{key:"resetModified",value:function(){_classPrivateFieldGet(o,this)&&(_classPrivateFieldSet(o,this,!1),"function"==typeof this.onResetModified&&this.onResetModified())}},{key:"print",get:function(){return new v(this)}},{key:"serializable",get:function(){if(0===_classPrivateFieldGet(l,this).size)return s;var e,t=new Map,a=new n.MurmurHash3_64,i=[],o=Object.create(null),c=!1,u=_createForOfIteratorHelper(_classPrivateFieldGet(l,this));try{for(u.s();!(e=u.n()).done;){var d=_slicedToArray(e.value,2),h=d[0],v=d[1],f=v instanceof r.AnnotationEditor?v.serialize(!1,o):v;f&&(t.set(h,f),a.update("".concat(h,":").concat(JSON.stringify(f))),c||(c=!!f.bitmap))}}catch(e){u.e(e)}finally{u.f()}if(c){var p,_=_createForOfIteratorHelper(t.values());try{for(_.s();!(p=_.n()).done;){var g=p.value;g.bitmap&&i.push(g.bitmap)}}catch(e){_.e(e)}finally{_.f()}}return t.size>0?{map:t,hash:a.hexdigest(),transfers:i}:s}}])}();function d(){_classPrivateFieldGet(o,this)||(_classPrivateFieldSet(o,this,!0),"function"==typeof this.onSetModified&&this.onSetModified())}t.AnnotationStorage=u;var h=new WeakMap,v=function(e){function t(e){var a;_classCallCheck(this,t),_classPrivateFieldInitSpec(a=_callSuper(this,t),h,void 0);var i=e.serializable,r=i.map,n=i.hash,s=i.transfers,o=structuredClone(r,s?{transfer:s}:null);return _classPrivateFieldSet(h,a,{map:o,hash:n,transfers:s}),a}return _inherits(t,e),_createClass(t,[{key:"print",get:function(){(0,i.unreachable)("Should not call PrintAnnotationStorage.print")}},{key:"serializable",get:function(){return _classPrivateFieldGet(h,this)}}])}(u);t.PrintAnnotationStorage=v},function(e,t,a){var i;Object.defineProperty(t,"__esModule",{value:!0}),t.AnnotationEditor=void 0;var r=a(5),n=a(1),s=a(6),o=new WeakMap,l=new WeakMap,c=new WeakMap,u=new WeakMap,d=new WeakMap,h=new WeakMap,v=new WeakMap,f=new WeakMap,p=new WeakMap,_=new WeakMap,g=new WeakMap,y=new WeakMap,m=new WeakMap,b=new WeakMap,k=new WeakSet,A=function(){function e(t){_classCallCheck(this,e),_classPrivateMethodInitSpec(this,k),_classPrivateFieldInitSpec(this,o,""),_classPrivateFieldInitSpec(this,l,!1),_classPrivateFieldInitSpec(this,c,null),_classPrivateFieldInitSpec(this,u,null),_classPrivateFieldInitSpec(this,d,null),_classPrivateFieldInitSpec(this,h,!1),_classPrivateFieldInitSpec(this,v,null),_classPrivateFieldInitSpec(this,f,this.focusin.bind(this)),_classPrivateFieldInitSpec(this,p,this.focusout.bind(this)),_classPrivateFieldInitSpec(this,_,!1),_classPrivateFieldInitSpec(this,g,!1),_classPrivateFieldInitSpec(this,y,!1),_defineProperty(this,"_initialOptions",Object.create(null)),_defineProperty(this,"_uiManager",null),_defineProperty(this,"_focusEventsAllowed",!0),_defineProperty(this,"_l10nPromise",null),_classPrivateFieldInitSpec(this,m,!1),_classPrivateFieldInitSpec(this,b,e._zIndex++),this.constructor===e&&(0,n.unreachable)("Cannot initialize AnnotationEditor."),this.parent=t.parent,this.id=t.id,this.width=this.height=null,this.pageIndex=t.parent.pageIndex,this.name=t.name,this.div=null,this._uiManager=t.uiManager,this.annotationElementId=null,this._willKeepAspectRatio=!1,this._initialOptions.isCentered=t.isCentered,this._structTreeParentId=null;var a=this.parent.viewport,i=a.rotation,r=a.rawDims,s=r.pageWidth,A=r.pageHeight,P=r.pageX,F=r.pageY;this.rotation=i,this.pageRotation=(360+i-this._uiManager.viewParameters.rotation)%360,this.pageDimensions=[s,A],this.pageTranslation=[P,F];var S=_slicedToArray(this.parentDimensions,2),C=S[0],w=S[1];this.x=t.x/C,this.y=t.y/w,this.isAttachedToDOM=!1,this.deleted=!1}return _createClass(e,[{key:"editorType",get:function(){return Object.getPrototypeOf(this).constructor._type}},{key:"propertiesToUpdate",get:function(){return[]}},{key:"_isDraggable",get:function(){return _classPrivateFieldGet(m,this)},set:function(e){var t;_classPrivateFieldSet(m,this,e),null===(t=this.div)||void 0===t||t.classList.toggle("draggable",e)}},{key:"center",value:function(){var e=_slicedToArray(this.pageDimensions,2),t=e[0],a=e[1];switch(this.parentRotation){case 90:this.x-=this.height*a/(2*t),this.y+=this.width*t/(2*a);break;case 180:this.x+=this.width/2,this.y+=this.height/2;break;case 270:this.x+=this.height*a/(2*t),this.y-=this.width*t/(2*a);break;default:this.x-=this.width/2,this.y-=this.height/2}this.fixAndSetPosition()}},{key:"addCommands",value:function(e){this._uiManager.addCommands(e)}},{key:"currentLayer",get:function(){return this._uiManager.currentLayer}},{key:"setInBackground",value:function(){this.div.style.zIndex=0}},{key:"setInForeground",value:function(){this.div.style.zIndex=_classPrivateFieldGet(b,this)}},{key:"setParent",value:function(e){null!==e&&(this.pageIndex=e.pageIndex,this.pageDimensions=e.pageDimensions),this.parent=e}},{key:"focusin",value:function(e){this._focusEventsAllowed&&(_classPrivateFieldGet(_,this)?_classPrivateFieldSet(_,this,!1):this.parent.setSelected(this))}},{key:"focusout",value:function(e){var t;if(this._focusEventsAllowed&&this.isAttachedToDOM){var a=e.relatedTarget;null!=a&&a.closest("#".concat(this.id))||(e.preventDefault(),null!==(t=this.parent)&&void 0!==t&&t.isMultipleSelection||this.commitOrRemove())}}},{key:"commitOrRemove",value:function(){this.isEmpty()?this.remove():this.commit()}},{key:"commit",value:function(){this.addToAnnotationStorage()}},{key:"addToAnnotationStorage",value:function(){this._uiManager.addToAnnotationStorage(this)}},{key:"setAt",value:function(e,t,a,i){var r=_slicedToArray(this.parentDimensions,2),n=r[0],s=r[1],o=_slicedToArray(this.screenToPageTranslation(a,i),2);a=o[0],i=o[1],this.x=(e+a)/n,this.y=(t+i)/s,this.fixAndSetPosition()}},{key:"translate",value:function(e,t){_assertClassBrand(k,this,P).call(this,this.parentDimensions,e,t)}},{key:"translateInPage",value:function(e,t){_assertClassBrand(k,this,P).call(this,this.pageDimensions,e,t),this.div.scrollIntoView({block:"nearest"})}},{key:"drag",value:function(e,t){var a=_slicedToArray(this.parentDimensions,2),i=a[0],r=a[1];if(this.x+=e/i,this.y+=t/r,this.parent&&(this.x<0||this.x>1||this.y<0||this.y>1)){var n=this.div.getBoundingClientRect(),s=n.x,o=n.y;this.parent.findNewParent(this,s,o)&&(this.x-=Math.floor(this.x),this.y-=Math.floor(this.y))}var l=this.x,c=this.y,u=_slicedToArray(_assertClassBrand(k,this,F).call(this),2);l+=u[0],c+=u[1],this.div.style.left="".concat((100*l).toFixed(2),"%"),this.div.style.top="".concat((100*c).toFixed(2),"%"),this.div.scrollIntoView({block:"nearest"})}},{key:"fixAndSetPosition",value:function(){var e=_slicedToArray(this.pageDimensions,2),t=e[0],a=e[1],i=this.x,r=this.y,n=this.width,s=this.height;switch(n*=t,s*=a,i*=t,r*=a,this.rotation){case 0:i=Math.max(0,Math.min(t-n,i)),r=Math.max(0,Math.min(a-s,r));break;case 90:i=Math.max(0,Math.min(t-s,i)),r=Math.min(a,Math.max(n,r));break;case 180:i=Math.min(t,Math.max(n,i)),r=Math.min(a,Math.max(s,r));break;case 270:i=Math.min(t,Math.max(s,i)),r=Math.max(0,Math.min(a-n,r))}this.x=i/=t,this.y=r/=a;var o=_slicedToArray(_assertClassBrand(k,this,F).call(this),2);i+=o[0],r+=o[1];var l=this.div.style;l.left="".concat((100*i).toFixed(2),"%"),l.top="".concat((100*r).toFixed(2),"%"),this.moveInDOM()}},{key:"screenToPageTranslation",value:function(t,a){return S.call(e,t,a,this.parentRotation)}},{key:"pageTranslationToScreen",value:function(t,a){return S.call(e,t,a,360-this.parentRotation)}},{key:"parentScale",get:function(){return this._uiManager.viewParameters.realScale}},{key:"parentRotation",get:function(){return(this._uiManager.viewParameters.rotation+this.pageRotation)%360}},{key:"parentDimensions",get:function(){var e=this.parentScale,t=_slicedToArray(this.pageDimensions,2),a=t[0]*e,i=t[1]*e;return n.FeatureTest.isCSSRoundSupported?[Math.round(a),Math.round(i)]:[a,i]}},{key:"setDims",value:function(t,a){var i,r=_slicedToArray(this.parentDimensions,2),n=r[0],s=r[1];this.div.style.width="".concat((100*t/n).toFixed(2),"%"),_classPrivateFieldGet(h,this)||(this.div.style.height="".concat((100*a/s).toFixed(2),"%")),null===(i=_classPrivateFieldGet(c,this))||void 0===i||i.classList.toggle("small",t<e.SMALL_EDITOR_SIZE||a<e.SMALL_EDITOR_SIZE)}},{key:"fixDims",value:function(){var e=this.div.style,t=e.height,a=e.width,i=a.endsWith("%"),r=!_classPrivateFieldGet(h,this)&&t.endsWith("%");if(!i||!r){var n=_slicedToArray(this.parentDimensions,2),s=n[0],o=n[1];i||(e.width="".concat((100*parseFloat(a)/s).toFixed(2),"%")),_classPrivateFieldGet(h,this)||r||(e.height="".concat((100*parseFloat(t)/o).toFixed(2),"%"))}}},{key:"getInitialTranslation",value:function(){return[0,0]}},{key:"addAltTextButton",value:(t=_asyncToGenerator(_regenerator().m((function t(){var a,i,r=this;return _regenerator().w((function(t){for(;;)switch(t.n){case 0:if(!_classPrivateFieldGet(c,this)){t.n=1;break}return t.a(2);case 1:return(a=_classPrivateFieldSet(c,this,document.createElement("button"))).className="altText",t.n=2,e._l10nPromise.get("editor_alt_text_button_label");case 2:i=t.v,a.textContent=i,a.setAttribute("aria-label",i),a.tabIndex="0",a.addEventListener("contextmenu",s.noContextMenu),a.addEventListener("pointerdown",(function(e){return e.stopPropagation()})),a.addEventListener("click",(function(e){e.preventDefault(),r._uiManager.editAltText(r)}),{capture:!0}),a.addEventListener("keydown",(function(e){e.target===a&&"Enter"===e.key&&(e.preventDefault(),r._uiManager.editAltText(r))})),_assertClassBrand(k,this,T).call(this),this.div.append(a),e.SMALL_EDITOR_SIZE||(e.SMALL_EDITOR_SIZE=Math.min(128,Math.round(1.4*a.getBoundingClientRect().width)));case 3:return t.a(2)}}),t,this)}))),function(){return t.apply(this,arguments)})},{key:"getClientDimensions",value:function(){return this.div.getBoundingClientRect()}},{key:"altTextData",get:function(){return{altText:_classPrivateFieldGet(o,this),decorative:_classPrivateFieldGet(l,this)}},set:function(e){var t=e.altText,a=e.decorative;_classPrivateFieldGet(o,this)===t&&_classPrivateFieldGet(l,this)===a||(_classPrivateFieldSet(o,this,t),_classPrivateFieldSet(l,this,a),_assertClassBrand(k,this,T).call(this))}},{key:"render",value:function(){this.div=document.createElement("div"),this.div.setAttribute("data-editor-rotation",(360-this.rotation)%360),this.div.className=this.name,this.div.setAttribute("id",this.id),this.div.setAttribute("tabIndex",0),this.setInForeground(),this.div.addEventListener("focusin",_classPrivateFieldGet(f,this)),this.div.addEventListener("focusout",_classPrivateFieldGet(p,this));var e=_slicedToArray(this.parentDimensions,2),t=e[0],a=e[1];this.parentRotation%180!=0&&(this.div.style.maxWidth="".concat((100*a/t).toFixed(2),"%"),this.div.style.maxHeight="".concat((100*t/a).toFixed(2),"%"));var i=_slicedToArray(this.getInitialTranslation(),2),n=i[0],s=i[1];return this.translate(n,s),(0,r.bindEvents)(this,this.div,["pointerdown"]),this.div}},{key:"pointerdown",value:function(e){var t=n.FeatureTest.platform.isMac;0!==e.button||e.ctrlKey&&t?e.preventDefault():(_classPrivateFieldSet(_,this,!0),_assertClassBrand(k,this,I).call(this,e))}},{key:"moveInDOM",value:function(){var e;null===(e=this.parent)||void 0===e||e.moveEditorInDOM(this)}},{key:"_setParentAndPosition",value:function(e,t,a){e.changeParent(this),this.x=t,this.y=a,this.fixAndSetPosition()}},{key:"getRect",value:function(e,t){var a=this.parentScale,i=_slicedToArray(this.pageDimensions,2),r=i[0],n=i[1],s=_slicedToArray(this.pageTranslation,2),o=s[0],l=s[1],c=e/a,u=t/a,d=this.x*r,h=this.y*n,v=this.width*r,f=this.height*n;switch(this.rotation){case 0:return[d+c+o,n-h-u-f+l,d+c+v+o,n-h-u+l];case 90:return[d+u+o,n-h+c+l,d+u+f+o,n-h+c+v+l];case 180:return[d-c-v+o,n-h+u+l,d-c+o,n-h+u+f+l];case 270:return[d-u-f+o,n-h-c-v+l,d-u+o,n-h-c+l];default:throw new Error("Invalid rotation")}}},{key:"getRectInCurrentCoords",value:function(e,t){var a=_slicedToArray(e,4),i=a[0],r=a[1],n=a[2],s=a[3],o=n-i,l=s-r;switch(this.rotation){case 0:return[i,t-s,o,l];case 90:return[i,t-r,l,o];case 180:return[n,t-r,o,l];case 270:return[n,t-s,l,o];default:throw new Error("Invalid rotation")}}},{key:"onceAdded",value:function(){}},{key:"isEmpty",value:function(){return!1}},{key:"enableEditMode",value:function(){_classPrivateFieldSet(y,this,!0)}},{key:"disableEditMode",value:function(){_classPrivateFieldSet(y,this,!1)}},{key:"isInEditMode",value:function(){return _classPrivateFieldGet(y,this)}},{key:"shouldGetKeyboardEvents",value:function(){return!1}},{key:"needsToBeRebuilt",value:function(){return this.div&&!this.isAttachedToDOM}},{key:"rebuild",value:function(){var e,t;null===(e=this.div)||void 0===e||e.addEventListener("focusin",_classPrivateFieldGet(f,this)),null===(t=this.div)||void 0===t||t.addEventListener("focusout",_classPrivateFieldGet(p,this))}},{key:"serialize",value:function(){(0,n.unreachable)("An editor must be serializable")}},{key:"remove",value:function(){var e;this.div.removeEventListener("focusin",_classPrivateFieldGet(f,this)),this.div.removeEventListener("focusout",_classPrivateFieldGet(p,this)),this.isEmpty()||this.commit(),this.parent?this.parent.remove(this):this._uiManager.removeEditor(this),null===(e=_classPrivateFieldGet(c,this))||void 0===e||e.remove(),_classPrivateFieldSet(c,this,null),_classPrivateFieldSet(u,this,null)}},{key:"isResizable",get:function(){return!1}},{key:"makeResizable",value:function(){this.isResizable&&(_assertClassBrand(k,this,w).call(this),_classPrivateFieldGet(v,this).classList.remove("hidden"))}},{key:"select",value:function(){var e;this.makeResizable(),null===(e=this.div)||void 0===e||e.classList.add("selectedEditor")}},{key:"unselect",value:function(){var e,t,a;null===(e=_classPrivateFieldGet(v,this))||void 0===e||e.classList.add("hidden"),null===(t=this.div)||void 0===t||t.classList.remove("selectedEditor"),null!==(a=this.div)&&void 0!==a&&a.contains(document.activeElement)&&this._uiManager.currentLayer.div.focus()}},{key:"updateParams",value:function(e,t){}},{key:"disableEditing",value:function(){_classPrivateFieldGet(c,this)&&(_classPrivateFieldGet(c,this).hidden=!0)}},{key:"enableEditing",value:function(){_classPrivateFieldGet(c,this)&&(_classPrivateFieldGet(c,this).hidden=!1)}},{key:"enterInEditMode",value:function(){}},{key:"contentDiv",get:function(){return this.div}},{key:"isEditing",get:function(){return _classPrivateFieldGet(g,this)},set:function(e){_classPrivateFieldSet(g,this,e),this.parent&&(e?(this.parent.setSelected(this),this.parent.setActiveEditor(this)):this.parent.setActiveEditor(null))}},{key:"setAspectRatio",value:function(e,t){_classPrivateFieldSet(h,this,!0);var a=e/t,i=this.div.style;i.aspectRatio=a,i.height="auto"}}],[{key:"_defaultLineColor",get:function(){return(0,n.shadow)(this,"_defaultLineColor",this._colorManager.getHexCode("CanvasText"))}},{key:"deleteAnnotationElement",value:function(e){var t=new R({id:e.parent.getNextId(),parent:e.parent,uiManager:e._uiManager});t.annotationElementId=e.annotationElementId,t.deleted=!0,t._uiManager.addToAnnotationStorage(t)}},{key:"initialize",value:function(t){var a=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null;if(e._l10nPromise||(e._l10nPromise=new Map(["editor_alt_text_button_label","editor_alt_text_edit_button_label","editor_alt_text_decorative_tooltip"].map((function(e){return[e,t.get(e)]})))),null!=a&&a.strings){var i,r=_createForOfIteratorHelper(a.strings);try{for(r.s();!(i=r.n()).done;){var n=i.value;e._l10nPromise.set(n,t.get(n))}}catch(e){r.e(e)}finally{r.f()}}if(-1===e._borderLineWidth){var s=getComputedStyle(document.documentElement);e._borderLineWidth=parseFloat(s.getPropertyValue("--outline-width"))||0}}},{key:"updateDefaultParams",value:function(e,t){}},{key:"defaultPropertiesToUpdate",get:function(){return[]}},{key:"isHandlingMimeForPasting",value:function(e){return!1}},{key:"paste",value:function(e,t){(0,n.unreachable)("Not implemented")}},{key:"deserialize",value:function(e,t,a){var i=new this.prototype.constructor({parent:t,id:t.getNextId(),uiManager:a});i.rotation=e.rotation;var r=_slicedToArray(i.pageDimensions,2),n=r[0],s=r[1],o=_slicedToArray(i.getRectInCurrentCoords(e.rect,s),4),l=o[0],c=o[1],u=o[2],d=o[3];return i.x=l/n,i.y=c/s,i.width=u/n,i.height=d/s,i}},{key:"MIN_SIZE",get:function(){return 16}}]);var t}();function P(e,t,a){var i=_slicedToArray(e,2),r=i[0],n=i[1],s=_slicedToArray(this.screenToPageTranslation(t,a),2);t=s[0],a=s[1],this.x+=t/r,this.y+=a/n,this.fixAndSetPosition()}function F(){var e=_slicedToArray(this.parentDimensions,2),t=e[0],a=e[1],r=i._borderLineWidth,n=r/t,s=r/a;switch(this.rotation){case 90:return[-n,s];case 180:return[n,s];case 270:return[n,-s];default:return[-n,-s]}}function S(e,t,a){switch(a){case 90:return[t,-e];case 180:return[-e,-t];case 270:return[-t,e];default:return[e,t]}}function C(e){switch(e){case 90:var t=_slicedToArray(this.pageDimensions,2),a=t[0],i=t[1];return[0,-a/i,i/a,0];case 180:return[-1,0,0,-1];case 270:var r=_slicedToArray(this.pageDimensions,2),n=r[0],s=r[1];return[0,n/s,-s/n,0];default:return[1,0,0,1]}}function w(){if(!_classPrivateFieldGet(v,this)){_classPrivateFieldSet(v,this,document.createElement("div")),_classPrivateFieldGet(v,this).classList.add("resizers");var e=["topLeft","topRight","bottomRight","bottomLeft"];this._willKeepAspectRatio||e.push("topMiddle","middleRight","bottomMiddle","middleLeft");for(var t=0,a=e;t<a.length;t++){var i=a[t],r=document.createElement("div");_classPrivateFieldGet(v,this).append(r),r.classList.add("resizer",i),r.addEventListener("pointerdown",_assertClassBrand(k,this,x).bind(this,i)),r.addEventListener("contextmenu",s.noContextMenu)}this.div.prepend(_classPrivateFieldGet(v,this))}}function x(e,t){var a=this;t.preventDefault();var i=n.FeatureTest.platform.isMac;if(!(0!==t.button||t.ctrlKey&&i)){var r=_assertClassBrand(k,this,E).bind(this,e),s=this._isDraggable;this._isDraggable=!1;var o={passive:!0,capture:!0};window.addEventListener("pointermove",r,o);var l=this.x,c=this.y,u=this.width,d=this.height,h=this.parent.div.style.cursor,v=this.div.style.cursor;this.div.style.cursor=this.parent.div.style.cursor=window.getComputedStyle(t.target).cursor;var f=function(){a._isDraggable=s,window.removeEventListener("pointerup",f),window.removeEventListener("blur",f),window.removeEventListener("pointermove",r,o),a.parent.div.style.cursor=h,a.div.style.cursor=v;var e=a.x,t=a.y,i=a.width,n=a.height;e===l&&t===c&&i===u&&n===d||a.addCommands({cmd:function(){a.width=i,a.height=n,a.x=e,a.y=t;var r=_slicedToArray(a.parentDimensions,2),s=r[0],o=r[1];a.setDims(s*i,o*n),a.fixAndSetPosition()},undo:function(){a.width=u,a.height=d,a.x=l,a.y=c;var e=_slicedToArray(a.parentDimensions,2),t=e[0],i=e[1];a.setDims(t*u,i*d),a.fixAndSetPosition()},mustExec:!0})};window.addEventListener("pointerup",f),window.addEventListener("blur",f)}}function E(e,t){var a,r,n=_slicedToArray(this.parentDimensions,2),s=n[0],o=n[1],l=this.x,c=this.y,u=this.width,d=this.height,h=i.MIN_SIZE/s,v=i.MIN_SIZE/o,f=function(e){return Math.round(1e4*e)/1e4},p=_assertClassBrand(k,this,C).call(this,this.rotation),_=function(e,t){return[p[0]*e+p[2]*t,p[1]*e+p[3]*t]},g=_assertClassBrand(k,this,C).call(this,360-this.rotation),y=!1,m=!1;switch(e){case"topLeft":y=!0,a=function(e,t){return[0,0]},r=function(e,t){return[e,t]};break;case"topMiddle":a=function(e,t){return[e/2,0]},r=function(e,t){return[e/2,t]};break;case"topRight":y=!0,a=function(e,t){return[e,0]},r=function(e,t){return[0,t]};break;case"middleRight":m=!0,a=function(e,t){return[e,t/2]},r=function(e,t){return[0,t/2]};break;case"bottomRight":y=!0,a=function(e,t){return[e,t]},r=function(e,t){return[0,0]};break;case"bottomMiddle":a=function(e,t){return[e/2,t]},r=function(e,t){return[e/2,0]};break;case"bottomLeft":y=!0,a=function(e,t){return[0,t]},r=function(e,t){return[e,0]};break;case"middleLeft":m=!0,a=function(e,t){return[0,t/2]},r=function(e,t){return[e,t/2]}}var b,A,P=a(u,d),F=r(u,d),S=_.apply(void 0,_toConsumableArray(F)),w=f(l+S[0]),x=f(c+S[1]),E=1,T=1,M=_slicedToArray(this.screenToPageTranslation(t.movementX,t.movementY),2),I=M[0],R=M[1],D=_slicedToArray((b=I/s,A=R/o,[g[0]*b+g[2]*A,g[1]*b+g[3]*A]),2);if(I=D[0],R=D[1],y){var O=Math.hypot(u,d);E=T=Math.max(Math.min(Math.hypot(F[0]-P[0]-I,F[1]-P[1]-R)/O,1/u,1/d),h/u,v/d)}else m?E=Math.max(h,Math.min(1,Math.abs(F[0]-P[0]-I)))/u:T=Math.max(v,Math.min(1,Math.abs(F[1]-P[1]-R)))/d;var G=f(u*E),L=f(d*T),B=w-(S=_.apply(void 0,_toConsumableArray(r(G,L))))[0],N=x-S[1];this.width=G,this.height=L,this.x=B,this.y=N,this.setDims(s*G,o*L),this.fixAndSetPosition()}function T(){return M.apply(this,arguments)}function M(){return(M=_asyncToGenerator(_regenerator().m((function e(){var t,a,r,n,s,h=this;return _regenerator().w((function(e){for(;;)switch(e.n){case 0:if(t=_classPrivateFieldGet(c,this)){e.n=1;break}return e.a(2);case 1:if(_classPrivateFieldGet(o,this)||_classPrivateFieldGet(l,this)){e.n=2;break}return t.classList.remove("done"),null===(a=_classPrivateFieldGet(u,this))||void 0===a||a.remove(),e.a(2);case 2:if(i._l10nPromise.get("editor_alt_text_edit_button_label").then((function(e){t.setAttribute("aria-label",e)})),(r=_classPrivateFieldGet(u,this))||(_classPrivateFieldSet(u,this,r=document.createElement("span")),r.className="tooltip",r.setAttribute("role","tooltip"),n=r.id="alt-text-tooltip-".concat(this.id),t.setAttribute("aria-describedby",n),t.addEventListener("mouseenter",(function(){_classPrivateFieldSet(d,h,setTimeout((function(){_classPrivateFieldSet(d,h,null),_classPrivateFieldGet(u,h).classList.add("show"),h._uiManager._eventBus.dispatch("reporttelemetry",{source:h,details:{type:"editing",subtype:h.editorType,data:{action:"alt_text_tooltip"}}})}),100))})),t.addEventListener("mouseleave",(function(){var e;clearTimeout(_classPrivateFieldGet(d,h)),_classPrivateFieldSet(d,h,null),null===(e=_classPrivateFieldGet(u,h))||void 0===e||e.classList.remove("show")}))),t.classList.add("done"),!_classPrivateFieldGet(l,this)){e.n=4;break}return e.n=3,i._l10nPromise.get("editor_alt_text_decorative_tooltip");case 3:s=e.v,e.n=5;break;case 4:s=_classPrivateFieldGet(o,this);case 5:r.innerText=s,r.parentNode||t.append(r);case 6:return e.a(2)}}),e,this)})))).apply(this,arguments)}function I(e){var t=this;if(this._isDraggable){var a,i,r=this._uiManager.isSelected(this);this._uiManager.setUpDragSession(),r&&(a={passive:!0,capture:!0},i=function(e){var a=_slicedToArray(t.screenToPageTranslation(e.movementX,e.movementY),2),i=a[0],r=a[1];t._uiManager.dragSelectedEditors(i,r)},window.addEventListener("pointermove",i,a));var s=function(){if(window.removeEventListener("pointerup",s),window.removeEventListener("blur",s),r&&window.removeEventListener("pointermove",i,a),_classPrivateFieldSet(_,t,!1),!t._uiManager.endDragSession()){var o=n.FeatureTest.platform.isMac;e.ctrlKey&&!o||e.shiftKey||e.metaKey&&o?t.parent.toggleSelected(t):t.parent.setSelected(t)}};window.addEventListener("pointerup",s),window.addEventListener("blur",s)}}i=A,_defineProperty(A,"_borderLineWidth",-1),_defineProperty(A,"_colorManager",new r.ColorManager),_defineProperty(A,"_zIndex",1),_defineProperty(A,"SMALL_EDITOR_SIZE",0),t.AnnotationEditor=A;var R=function(e){function t(e){var a;return _classCallCheck(this,t),(a=_callSuper(this,t,[e])).annotationElementId=e.annotationElementId,a.deleted=!0,a}return _inherits(t,e),_createClass(t,[{key:"serialize",value:function(){return{id:this.annotationElementId,deleted:!0,pageIndex:this.pageIndex}}}])}(A)},function(e,t,a){var i;Object.defineProperty(t,"__esModule",{value:!0}),t.KeyboardManager=t.CommandManager=t.ColorManager=t.AnnotationEditorUIManager=void 0,t.bindEvents=function(e,t,a){var i,r=_createForOfIteratorHelper(a);try{for(r.s();!(i=r.n()).done;){var n=i.value;t.addEventListener(n,e[n].bind(e))}}catch(e){r.e(e)}finally{r.f()}},t.opacityToHex=function(e){return Math.round(Math.min(255,Math.max(1,255*e))).toString(16).padStart(2,"0")};var r=a(1),n=a(6),s=new WeakMap,o=function(){return _createClass((function e(){_classCallCheck(this,e),_classPrivateFieldInitSpec(this,s,0)}),[{key:"getId",value:function(){var e,t;return"".concat(r.AnnotationEditorPrefix).concat((_classPrivateFieldSet(s,this,(e=_classPrivateFieldGet(s,this),t=e++,e)),t))}}])}(),l=new WeakMap,c=new WeakMap,u=new WeakMap,d=new WeakSet,h=function(){return _createClass((function e(){_classCallCheck(this,e),_classPrivateMethodInitSpec(this,d),_classPrivateFieldInitSpec(this,l,(0,r.getUuid)()),_classPrivateFieldInitSpec(this,c,0),_classPrivateFieldInitSpec(this,u,null)}),[{key:"getFromFile",value:(a=_asyncToGenerator(_regenerator().m((function e(t){var a,i,r,n;return _regenerator().w((function(e){for(;;)if(0===e.n)return a=t.lastModified,i=t.name,r=t.size,n=t.type,e.a(2,_assertClassBrand(d,this,v).call(this,"".concat(a,"_").concat(i,"_").concat(r,"_").concat(n),t))}),e,this)}))),function(e){return a.apply(this,arguments)})},{key:"getFromUrl",value:(t=_asyncToGenerator(_regenerator().m((function e(t){return _regenerator().w((function(e){for(;;)if(0===e.n)return e.a(2,_assertClassBrand(d,this,v).call(this,t,t))}),e,this)}))),function(e){return t.apply(this,arguments)})},{key:"getFromId",value:(e=_asyncToGenerator(_regenerator().m((function e(t){var a;return _regenerator().w((function(e){for(;;)switch(e.n){case 0:if(_classPrivateFieldGet(u,this)||_classPrivateFieldSet(u,this,new Map),a=_classPrivateFieldGet(u,this).get(t)){e.n=1;break}return e.a(2,null);case 1:if(!a.bitmap){e.n=2;break}return a.refCounter+=1,e.a(2,a);case 2:if(!a.file){e.n=3;break}return e.a(2,this.getFromFile(a.file));case 3:return e.a(2,this.getFromUrl(a.url))}}),e,this)}))),function(t){return e.apply(this,arguments)})},{key:"getSvgUrl",value:function(e){var t=_classPrivateFieldGet(u,this).get(e);return null!=t&&t.isSvg?t.svgUrl:null}},{key:"deleteId",value:function(e){_classPrivateFieldGet(u,this)||_classPrivateFieldSet(u,this,new Map);var t=_classPrivateFieldGet(u,this).get(e);t&&(t.refCounter-=1,0===t.refCounter&&(t.bitmap=null))}},{key:"isValidId",value:function(e){return e.startsWith("image_".concat(_classPrivateFieldGet(l,this),"_"))}}],[{key:"_isSVGFittingCanvas",get:function(){var e=new OffscreenCanvas(1,3).getContext("2d"),t=new Image;t.src='data:image/svg+xml;charset=UTF-8,<svg viewBox="0 0 1 1" width="1" height="1" xmlns="http://www.w3.org/2000/svg"><rect width="1" height="1" style="fill:red;"/></svg>';var a=t.decode().then((function(){return e.drawImage(t,0,0,1,1,0,0,1,3),0===new Uint32Array(e.getImageData(0,0,1,1).data.buffer)[0]}));return(0,r.shadow)(this,"_isSVGFittingCanvas",a)}}]);var e,t,a}();function v(e,t){return f.apply(this,arguments)}function f(){return(f=_asyncToGenerator(_regenerator().m((function e(t,a){var r,n,s,o,d,h,v,f,p,_,g;return _regenerator().w((function(e){for(;;)switch(e.n){case 0:if(_classPrivateFieldGet(u,this)||_classPrivateFieldSet(u,this,new Map),null!==(n=_classPrivateFieldGet(u,this).get(t))){e.n=1;break}return e.a(2,null);case 1:if(null===(r=n)||void 0===r||!r.bitmap){e.n=2;break}return n.refCounter+=1,e.a(2,n);case 2:if(e.p=2,n||(n={bitmap:null,id:"image_".concat(_classPrivateFieldGet(l,this),"_").concat((_classPrivateFieldSet(c,this,(s=_classPrivateFieldGet(c,this),o=s++,s)),o)),refCounter:0,isSvg:!1}),"string"!=typeof a){e.n=6;break}return n.url=a,e.n=3,fetch(a);case 3:if((h=e.v).ok){e.n=4;break}throw new Error(h.statusText);case 4:return e.n=5,h.blob();case 5:d=e.v,e.n=7;break;case 6:d=n.file=a;case 7:if("image/svg+xml"!==d.type){e.n=9;break}return v=i._isSVGFittingCanvas,f=new FileReader,p=new Image,_=new Promise((function(e,t){p.onload=function(){n.bitmap=p,n.isSvg=!0,e()},f.onload=_asyncToGenerator(_regenerator().m((function e(){var t,a;return _regenerator().w((function(e){for(;;)switch(e.n){case 0:return t=n.svgUrl=f.result,e.n=1,v;case 1:if(!e.v){e.n=2;break}a="".concat(t,"#svgView(preserveAspectRatio(none))"),e.n=3;break;case 2:a=t;case 3:p.src=a;case 4:return e.a(2)}}),e)}))),p.onerror=f.onerror=t})),f.readAsDataURL(d),e.n=8,_;case 8:e.n=11;break;case 9:return e.n=10,createImageBitmap(d);case 10:n.bitmap=e.v;case 11:n.refCounter=1,e.n=13;break;case 12:e.p=12,g=e.v,console.error(g),n=null;case 13:return _classPrivateFieldGet(u,this).set(t,n),n&&_classPrivateFieldGet(u,this).set(n.id,n),e.a(2,n)}}),e,this,[[2,12]])})))).apply(this,arguments)}i=h;var p=new WeakMap,_=new WeakMap,g=new WeakMap,y=new WeakMap,m=function(){return _createClass((function e(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:128;_classCallCheck(this,e),_classPrivateFieldInitSpec(this,p,[]),_classPrivateFieldInitSpec(this,_,!1),_classPrivateFieldInitSpec(this,g,void 0),_classPrivateFieldInitSpec(this,y,-1),_classPrivateFieldSet(g,this,t)}),[{key:"add",value:function(e){var t=e.cmd,a=e.undo,i=e.mustExec,r=e.type,n=void 0===r?NaN:r,s=e.overwriteIfSameType,o=void 0!==s&&s,l=e.keepUndo,c=void 0!==l&&l;if(i&&t(),!_classPrivateFieldGet(_,this)){var u={cmd:t,undo:a,type:n};if(-1===_classPrivateFieldGet(y,this))return _classPrivateFieldGet(p,this).length>0&&(_classPrivateFieldGet(p,this).length=0),_classPrivateFieldSet(y,this,0),void _classPrivateFieldGet(p,this).push(u);if(o&&_classPrivateFieldGet(p,this)[_classPrivateFieldGet(y,this)].type===n)return c&&(u.undo=_classPrivateFieldGet(p,this)[_classPrivateFieldGet(y,this)].undo),void(_classPrivateFieldGet(p,this)[_classPrivateFieldGet(y,this)]=u);var d=_classPrivateFieldGet(y,this)+1;d===_classPrivateFieldGet(g,this)?_classPrivateFieldGet(p,this).splice(0,1):(_classPrivateFieldSet(y,this,d),d<_classPrivateFieldGet(p,this).length&&_classPrivateFieldGet(p,this).splice(d)),_classPrivateFieldGet(p,this).push(u)}}},{key:"undo",value:function(){-1!==_classPrivateFieldGet(y,this)&&(_classPrivateFieldSet(_,this,!0),_classPrivateFieldGet(p,this)[_classPrivateFieldGet(y,this)].undo(),_classPrivateFieldSet(_,this,!1),_classPrivateFieldSet(y,this,_classPrivateFieldGet(y,this)-1))}},{key:"redo",value:function(){_classPrivateFieldGet(y,this)<_classPrivateFieldGet(p,this).length-1&&(_classPrivateFieldSet(y,this,_classPrivateFieldGet(y,this)+1),_classPrivateFieldSet(_,this,!0),_classPrivateFieldGet(p,this)[_classPrivateFieldGet(y,this)].cmd(),_classPrivateFieldSet(_,this,!1))}},{key:"hasSomethingToUndo",value:function(){return-1!==_classPrivateFieldGet(y,this)}},{key:"hasSomethingToRedo",value:function(){return _classPrivateFieldGet(y,this)<_classPrivateFieldGet(p,this).length-1}},{key:"destroy",value:function(){_classPrivateFieldSet(p,this,null)}}])}();t.CommandManager=m;var b=new WeakSet,k=function(){return _createClass((function e(t){_classCallCheck(this,e),_classPrivateMethodInitSpec(this,b),this.buffer=[],this.callbacks=new Map,this.allKeys=new Set;var a,i=r.FeatureTest.platform.isMac,n=_createForOfIteratorHelper(t);try{for(n.s();!(a=n.n()).done;){var s,o=_slicedToArray(a.value,3),l=o[0],c=o[1],u=o[2],d=void 0===u?{}:u,h=_createForOfIteratorHelper(l);try{for(h.s();!(s=h.n()).done;){var v=s.value,f=v.startsWith("mac+");i&&f?(this.callbacks.set(v.slice(4),{callback:c,options:d}),this.allKeys.add(v.split("+").at(-1))):i||f||(this.callbacks.set(v,{callback:c,options:d}),this.allKeys.add(v.split("+").at(-1)))}}catch(e){h.e(e)}finally{h.f()}}}catch(e){n.e(e)}finally{n.f()}}),[{key:"exec",value:function(e,t){if(this.allKeys.has(t.key)){var a=this.callbacks.get(_assertClassBrand(b,this,A).call(this,t));if(a){var i=a.callback,r=a.options,n=r.bubbles,s=void 0!==n&&n,o=r.args,l=void 0===o?[]:o,c=r.checker,u=void 0===c?null:c;u&&!u(e,t)||(i.bind.apply(i,[e].concat(_toConsumableArray(l)))(),s||(t.stopPropagation(),t.preventDefault()))}}}}])}();function A(e){e.altKey&&this.buffer.push("alt"),e.ctrlKey&&this.buffer.push("ctrl"),e.metaKey&&this.buffer.push("meta"),e.shiftKey&&this.buffer.push("shift"),this.buffer.push(e.key);var t=this.buffer.join("+");return this.buffer.length=0,t}t.KeyboardManager=k;var P=function(){function e(){_classCallCheck(this,e)}return _createClass(e,[{key:"_colors",get:function(){var e=new Map([["CanvasText",null],["Canvas",null]]);return(0,n.getColorValues)(e),(0,r.shadow)(this,"_colors",e)}},{key:"convert",value:function(t){var a=(0,n.getRGB)(t);if(!window.matchMedia("(forced-colors: active)").matches)return a;var i,r=_createForOfIteratorHelper(this._colors);try{for(r.s();!(i=r.n()).done;){var s=_slicedToArray(i.value,2),o=s[0];if(s[1].every((function(e,t){return e===a[t]})))return e._colorsMapping.get(o)}}catch(e){r.e(e)}finally{r.f()}return a}},{key:"getHexCode",value:function(e){var t,a=this._colors.get(e);return a?(t=r.Util).makeHexColor.apply(t,_toConsumableArray(a)):e}}])}();_defineProperty(P,"_colorsMapping",new Map([["CanvasText",[0,0,0]],["Canvas",[255,255,255]]])),t.ColorManager=P;var F=new WeakMap,S=new WeakMap,C=new WeakMap,w=new WeakMap,x=new WeakMap,E=new WeakMap,T=new WeakMap,M=new WeakMap,I=new WeakMap,R=new WeakMap,D=new WeakMap,O=new WeakMap,G=new WeakMap,L=new WeakMap,B=new WeakMap,N=new WeakMap,W=new WeakMap,j=new WeakMap,H=new WeakMap,U=new WeakMap,q=new WeakMap,z=new WeakMap,V=new WeakMap,X=new WeakMap,K=new WeakMap,Y=new WeakMap,J=new WeakMap,Q=new WeakMap,Z=new WeakMap,$=new WeakMap,ee=new WeakMap,te=new WeakMap,ae=new WeakMap,ie=new WeakMap,re=new WeakSet,ne=function(){function e(t,a,i,s,l,c){_classCallCheck(this,e),_classPrivateMethodInitSpec(this,re),_classPrivateFieldInitSpec(this,F,null),_classPrivateFieldInitSpec(this,S,new Map),_classPrivateFieldInitSpec(this,C,new Map),_classPrivateFieldInitSpec(this,w,null),_classPrivateFieldInitSpec(this,x,null),_classPrivateFieldInitSpec(this,E,new m),_classPrivateFieldInitSpec(this,T,0),_classPrivateFieldInitSpec(this,M,new Set),_classPrivateFieldInitSpec(this,I,null),_classPrivateFieldInitSpec(this,R,null),_classPrivateFieldInitSpec(this,D,new Set),_classPrivateFieldInitSpec(this,O,null),_classPrivateFieldInitSpec(this,G,new o),_classPrivateFieldInitSpec(this,L,!1),_classPrivateFieldInitSpec(this,B,!1),_classPrivateFieldInitSpec(this,N,null),_classPrivateFieldInitSpec(this,W,r.AnnotationEditorType.NONE),_classPrivateFieldInitSpec(this,j,new Set),_classPrivateFieldInitSpec(this,H,null),_classPrivateFieldInitSpec(this,U,this.blur.bind(this)),_classPrivateFieldInitSpec(this,q,this.focus.bind(this)),_classPrivateFieldInitSpec(this,z,this.copy.bind(this)),_classPrivateFieldInitSpec(this,V,this.cut.bind(this)),_classPrivateFieldInitSpec(this,X,this.paste.bind(this)),_classPrivateFieldInitSpec(this,K,this.keydown.bind(this)),_classPrivateFieldInitSpec(this,Y,this.onEditingAction.bind(this)),_classPrivateFieldInitSpec(this,J,this.onPageChanging.bind(this)),_classPrivateFieldInitSpec(this,Q,this.onScaleChanging.bind(this)),_classPrivateFieldInitSpec(this,Z,this.onRotationChanging.bind(this)),_classPrivateFieldInitSpec(this,$,{isEditing:!1,isEmpty:!0,hasSomethingToUndo:!1,hasSomethingToRedo:!1,hasSelectedEditor:!1}),_classPrivateFieldInitSpec(this,ee,[0,0]),_classPrivateFieldInitSpec(this,te,null),_classPrivateFieldInitSpec(this,ae,null),_classPrivateFieldInitSpec(this,ie,null),_classPrivateFieldSet(ae,this,t),_classPrivateFieldSet(ie,this,a),_classPrivateFieldSet(w,this,i),this._eventBus=s,this._eventBus._on("editingaction",_classPrivateFieldGet(Y,this)),this._eventBus._on("pagechanging",_classPrivateFieldGet(J,this)),this._eventBus._on("scalechanging",_classPrivateFieldGet(Q,this)),this._eventBus._on("rotationchanging",_classPrivateFieldGet(Z,this)),_classPrivateFieldSet(x,this,l.annotationStorage),_classPrivateFieldSet(O,this,l.filterFactory),_classPrivateFieldSet(H,this,c),this.viewParameters={realScale:n.PixelsPerInch.PDF_TO_CSS_UNITS,rotation:0}}return _createClass(e,[{key:"destroy",value:function(){_assertClassBrand(re,this,ce).call(this),_assertClassBrand(re,this,oe).call(this),this._eventBus._off("editingaction",_classPrivateFieldGet(Y,this)),this._eventBus._off("pagechanging",_classPrivateFieldGet(J,this)),this._eventBus._off("scalechanging",_classPrivateFieldGet(Q,this)),this._eventBus._off("rotationchanging",_classPrivateFieldGet(Z,this));var e,t=_createForOfIteratorHelper(_classPrivateFieldGet(C,this).values());try{for(t.s();!(e=t.n()).done;)e.value.destroy()}catch(e){t.e(e)}finally{t.f()}_classPrivateFieldGet(C,this).clear(),_classPrivateFieldGet(S,this).clear(),_classPrivateFieldGet(D,this).clear(),_classPrivateFieldSet(F,this,null),_classPrivateFieldGet(j,this).clear(),_classPrivateFieldGet(E,this).destroy(),_classPrivateFieldGet(w,this).destroy()}},{key:"hcmFilter",get:function(){return(0,r.shadow)(this,"hcmFilter",_classPrivateFieldGet(H,this)?_classPrivateFieldGet(O,this).addHCMFilter(_classPrivateFieldGet(H,this).foreground,_classPrivateFieldGet(H,this).background):"none")}},{key:"direction",get:function(){return(0,r.shadow)(this,"direction",getComputedStyle(_classPrivateFieldGet(ae,this)).direction)}},{key:"editAltText",value:function(e){var t;null===(t=_classPrivateFieldGet(w,this))||void 0===t||t.editAltText(this,e)}},{key:"onPageChanging",value:function(e){var t=e.pageNumber;_classPrivateFieldSet(T,this,t-1)}},{key:"focusMainContainer",value:function(){_classPrivateFieldGet(ae,this).focus()}},{key:"findParent",value:function(e,t){var a,i=_createForOfIteratorHelper(_classPrivateFieldGet(C,this).values());try{for(i.s();!(a=i.n()).done;){var r=a.value,n=r.div.getBoundingClientRect(),s=n.x,o=n.y,l=n.width,c=n.height;if(e>=s&&e<=s+l&&t>=o&&t<=o+c)return r}}catch(e){i.e(e)}finally{i.f()}return null}},{key:"disableUserSelect",value:function(){var e=arguments.length>0&&void 0!==arguments[0]&&arguments[0];_classPrivateFieldGet(ie,this).classList.toggle("noUserSelect",e)}},{key:"addShouldRescale",value:function(e){_classPrivateFieldGet(D,this).add(e)}},{key:"removeShouldRescale",value:function(e){_classPrivateFieldGet(D,this).delete(e)}},{key:"onScaleChanging",value:function(e){var t=e.scale;this.commitOrRemove(),this.viewParameters.realScale=t*n.PixelsPerInch.PDF_TO_CSS_UNITS;var a,i=_createForOfIteratorHelper(_classPrivateFieldGet(D,this));try{for(i.s();!(a=i.n()).done;)a.value.onScaleChanging()}catch(e){i.e(e)}finally{i.f()}}},{key:"onRotationChanging",value:function(e){var t=e.pagesRotation;this.commitOrRemove(),this.viewParameters.rotation=t}},{key:"addToAnnotationStorage",value:function(e){e.isEmpty()||!_classPrivateFieldGet(x,this)||_classPrivateFieldGet(x,this).has(e.id)||_classPrivateFieldGet(x,this).setValue(e.id,e)}},{key:"blur",value:function(){if(this.hasSelection){var e,t=document.activeElement,a=_createForOfIteratorHelper(_classPrivateFieldGet(j,this));try{for(a.s();!(e=a.n()).done;){var i=e.value;if(i.div.contains(t)){_classPrivateFieldSet(N,this,[i,t]),i._focusEventsAllowed=!1;break}}}catch(e){a.e(e)}finally{a.f()}}}},{key:"focus",value:function(){if(_classPrivateFieldGet(N,this)){var e=_slicedToArray(_classPrivateFieldGet(N,this),2),t=e[0],a=e[1];_classPrivateFieldSet(N,this,null),a.addEventListener("focusin",(function(){t._focusEventsAllowed=!0}),{once:!0}),a.focus()}}},{key:"addEditListeners",value:function(){_assertClassBrand(re,this,le).call(this),_assertClassBrand(re,this,ue).call(this)}},{key:"removeEditListeners",value:function(){_assertClassBrand(re,this,ce).call(this),_assertClassBrand(re,this,de).call(this)}},{key:"copy",value:function(e){var t;if(e.preventDefault(),null===(t=_classPrivateFieldGet(F,this))||void 0===t||t.commitOrRemove(),this.hasSelection){var a,i=[],r=_createForOfIteratorHelper(_classPrivateFieldGet(j,this));try{for(r.s();!(a=r.n()).done;){var n=a.value.serialize(!0);n&&i.push(n)}}catch(e){r.e(e)}finally{r.f()}0!==i.length&&e.clipboardData.setData("application/pdfjs",JSON.stringify(i))}}},{key:"cut",value:function(e){this.copy(e),this.delete()}},{key:"paste",value:function(e){var t=this;e.preventDefault();var a,i=e.clipboardData,n=_createForOfIteratorHelper(i.items);try{for(n.s();!(a=n.n()).done;){var s,o=a.value,l=_createForOfIteratorHelper(_classPrivateFieldGet(R,this));try{for(l.s();!(s=l.n()).done;){var c=s.value;if(c.isHandlingMimeForPasting(o.type))return void c.paste(o,this.currentLayer)}}catch(e){l.e(e)}finally{l.f()}}}catch(e){n.e(e)}finally{n.f()}var u=i.getData("application/pdfjs");if(u){try{u=JSON.parse(u)}catch(e){return void(0,r.warn)('paste: "'.concat(e.message,'".'))}if(Array.isArray(u)){this.unselectAll();var d=this.currentLayer;try{var h,v=[],f=_createForOfIteratorHelper(u);try{for(f.s();!(h=f.n()).done;){var p=h.value,_=d.deserialize(p);if(!_)return;v.push(_)}}catch(e){f.e(e)}finally{f.f()}this.addCommands({cmd:function(){for(var e=0,a=v;e<a.length;e++){var i=a[e];_assertClassBrand(re,t,_e).call(t,i)}_assertClassBrand(re,t,ye).call(t,v)},undo:function(){for(var e=0,t=v;e<t.length;e++)t[e].remove()},mustExec:!0})}catch(e){(0,r.warn)('paste: "'.concat(e.message,'".'))}}}}},{key:"keydown",value:function(t){var a;null!==(a=this.getActive())&&void 0!==a&&a.shouldGetKeyboardEvents()||e._keyboardManager.exec(this,t)}},{key:"onEditingAction",value:function(e){["undo","redo","delete","selectAll"].includes(e.name)&&this[e.name]()}},{key:"setEditingState",value:function(e){e?(_assertClassBrand(re,this,se).call(this),_assertClassBrand(re,this,le).call(this),_assertClassBrand(re,this,ue).call(this),_assertClassBrand(re,this,he).call(this,{isEditing:_classPrivateFieldGet(W,this)!==r.AnnotationEditorType.NONE,isEmpty:_assertClassBrand(re,this,ge).call(this),hasSomethingToUndo:_classPrivateFieldGet(E,this).hasSomethingToUndo(),hasSomethingToRedo:_classPrivateFieldGet(E,this).hasSomethingToRedo(),hasSelectedEditor:!1})):(_assertClassBrand(re,this,oe).call(this),_assertClassBrand(re,this,ce).call(this),_assertClassBrand(re,this,de).call(this),_assertClassBrand(re,this,he).call(this,{isEditing:!1}),this.disableUserSelect(!1))}},{key:"registerEditorTypes",value:function(e){if(!_classPrivateFieldGet(R,this)){_classPrivateFieldSet(R,this,e);var t,a=_createForOfIteratorHelper(_classPrivateFieldGet(R,this));try{for(a.s();!(t=a.n()).done;){var i=t.value;_assertClassBrand(re,this,ve).call(this,i.defaultPropertiesToUpdate)}}catch(e){a.e(e)}finally{a.f()}}}},{key:"getId",value:function(){return _classPrivateFieldGet(G,this).getId()}},{key:"currentLayer",get:function(){return _classPrivateFieldGet(C,this).get(_classPrivateFieldGet(T,this))}},{key:"getLayer",value:function(e){return _classPrivateFieldGet(C,this).get(e)}},{key:"currentPageIndex",get:function(){return _classPrivateFieldGet(T,this)}},{key:"addLayer",value:function(e){_classPrivateFieldGet(C,this).set(e.pageIndex,e),_classPrivateFieldGet(L,this)?e.enable():e.disable()}},{key:"removeLayer",value:function(e){_classPrivateFieldGet(C,this).delete(e.pageIndex)}},{key:"updateMode",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null;if(_classPrivateFieldGet(W,this)!==e){if(_classPrivateFieldSet(W,this,e),e===r.AnnotationEditorType.NONE)return this.setEditingState(!1),void _assertClassBrand(re,this,pe).call(this);this.setEditingState(!0),_assertClassBrand(re,this,fe).call(this),this.unselectAll();var a,i=_createForOfIteratorHelper(_classPrivateFieldGet(C,this).values());try{for(i.s();!(a=i.n()).done;)a.value.updateMode(e)}catch(e){i.e(e)}finally{i.f()}if(t){var n,s=_createForOfIteratorHelper(_classPrivateFieldGet(S,this).values());try{for(s.s();!(n=s.n()).done;){var o=n.value;if(o.annotationElementId===t){this.setSelected(o),o.enterInEditMode();break}}}catch(e){s.e(e)}finally{s.f()}}}}},{key:"updateToolbar",value:function(e){e!==_classPrivateFieldGet(W,this)&&this._eventBus.dispatch("switchannotationeditormode",{source:this,mode:e})}},{key:"updateParams",value:function(e,t){if(_classPrivateFieldGet(R,this))if(e!==r.AnnotationEditorParamsType.CREATE){var a,i=_createForOfIteratorHelper(_classPrivateFieldGet(j,this));try{for(i.s();!(a=i.n()).done;)a.value.updateParams(e,t)}catch(e){i.e(e)}finally{i.f()}var n,s=_createForOfIteratorHelper(_classPrivateFieldGet(R,this));try{for(s.s();!(n=s.n()).done;)n.value.updateDefaultParams(e,t)}catch(e){s.e(e)}finally{s.f()}}else this.currentLayer.addNewEditor(e)}},{key:"enableWaiting",value:function(){var e=arguments.length>0&&void 0!==arguments[0]&&arguments[0];if(_classPrivateFieldGet(B,this)!==e){_classPrivateFieldSet(B,this,e);var t,a=_createForOfIteratorHelper(_classPrivateFieldGet(C,this).values());try{for(a.s();!(t=a.n()).done;){var i=t.value;e?i.disableClick():i.enableClick(),i.div.classList.toggle("waiting",e)}}catch(e){a.e(e)}finally{a.f()}}}},{key:"getEditors",value:function(e){var t,a=[],i=_createForOfIteratorHelper(_classPrivateFieldGet(S,this).values());try{for(i.s();!(t=i.n()).done;){var r=t.value;r.pageIndex===e&&a.push(r)}}catch(e){i.e(e)}finally{i.f()}return a}},{key:"getEditor",value:function(e){return _classPrivateFieldGet(S,this).get(e)}},{key:"addEditor",value:function(e){_classPrivateFieldGet(S,this).set(e.id,e)}},{key:"removeEditor",value:function(e){var t;_classPrivateFieldGet(S,this).delete(e.id),this.unselect(e),e.annotationElementId&&_classPrivateFieldGet(M,this).has(e.annotationElementId)||null===(t=_classPrivateFieldGet(x,this))||void 0===t||t.remove(e.id)}},{key:"addDeletedAnnotationElement",value:function(e){_classPrivateFieldGet(M,this).add(e.annotationElementId),e.deleted=!0}},{key:"isDeletedAnnotationElement",value:function(e){return _classPrivateFieldGet(M,this).has(e)}},{key:"removeDeletedAnnotationElement",value:function(e){_classPrivateFieldGet(M,this).delete(e.annotationElementId),e.deleted=!1}},{key:"setActiveEditor",value:function(e){_classPrivateFieldGet(F,this)!==e&&(_classPrivateFieldSet(F,this,e),e&&_assertClassBrand(re,this,ve).call(this,e.propertiesToUpdate))}},{key:"toggleSelected",value:function(e){if(_classPrivateFieldGet(j,this).has(e))return _classPrivateFieldGet(j,this).delete(e),e.unselect(),void _assertClassBrand(re,this,he).call(this,{hasSelectedEditor:this.hasSelection});_classPrivateFieldGet(j,this).add(e),e.select(),_assertClassBrand(re,this,ve).call(this,e.propertiesToUpdate),_assertClassBrand(re,this,he).call(this,{hasSelectedEditor:!0})}},{key:"setSelected",value:function(e){var t,a=_createForOfIteratorHelper(_classPrivateFieldGet(j,this));try{for(a.s();!(t=a.n()).done;){var i=t.value;i!==e&&i.unselect()}}catch(e){a.e(e)}finally{a.f()}_classPrivateFieldGet(j,this).clear(),_classPrivateFieldGet(j,this).add(e),e.select(),_assertClassBrand(re,this,ve).call(this,e.propertiesToUpdate),_assertClassBrand(re,this,he).call(this,{hasSelectedEditor:!0})}},{key:"isSelected",value:function(e){return _classPrivateFieldGet(j,this).has(e)}},{key:"unselect",value:function(e){e.unselect(),_classPrivateFieldGet(j,this).delete(e),_assertClassBrand(re,this,he).call(this,{hasSelectedEditor:this.hasSelection})}},{key:"hasSelection",get:function(){return 0!==_classPrivateFieldGet(j,this).size}},{key:"undo",value:function(){_classPrivateFieldGet(E,this).undo(),_assertClassBrand(re,this,he).call(this,{hasSomethingToUndo:_classPrivateFieldGet(E,this).hasSomethingToUndo(),hasSomethingToRedo:!0,isEmpty:_assertClassBrand(re,this,ge).call(this)})}},{key:"redo",value:function(){_classPrivateFieldGet(E,this).redo(),_assertClassBrand(re,this,he).call(this,{hasSomethingToUndo:!0,hasSomethingToRedo:_classPrivateFieldGet(E,this).hasSomethingToRedo(),isEmpty:_assertClassBrand(re,this,ge).call(this)})}},{key:"addCommands",value:function(e){_classPrivateFieldGet(E,this).add(e),_assertClassBrand(re,this,he).call(this,{hasSomethingToUndo:!0,hasSomethingToRedo:!1,isEmpty:_assertClassBrand(re,this,ge).call(this)})}},{key:"delete",value:function(){var e=this;if(this.commitOrRemove(),this.hasSelection){var t=_toConsumableArray(_classPrivateFieldGet(j,this));this.addCommands({cmd:function(){var e,a=_createForOfIteratorHelper(t);try{for(a.s();!(e=a.n()).done;)e.value.remove()}catch(e){a.e(e)}finally{a.f()}},undo:function(){var a,i=_createForOfIteratorHelper(t);try{for(i.s();!(a=i.n()).done;){var r=a.value;_assertClassBrand(re,e,_e).call(e,r)}}catch(e){i.e(e)}finally{i.f()}},mustExec:!0})}}},{key:"commitOrRemove",value:function(){var e;null===(e=_classPrivateFieldGet(F,this))||void 0===e||e.commitOrRemove()}},{key:"hasSomethingToControl",value:function(){return _classPrivateFieldGet(F,this)||this.hasSelection}},{key:"selectAll",value:function(){var e,t=_createForOfIteratorHelper(_classPrivateFieldGet(j,this));try{for(t.s();!(e=t.n()).done;)e.value.commit()}catch(e){t.e(e)}finally{t.f()}_assertClassBrand(re,this,ye).call(this,_classPrivateFieldGet(S,this).values())}},{key:"unselectAll",value:function(){if(_classPrivateFieldGet(F,this))_classPrivateFieldGet(F,this).commitOrRemove();else if(this.hasSelection){var e,t=_createForOfIteratorHelper(_classPrivateFieldGet(j,this));try{for(t.s();!(e=t.n()).done;)e.value.unselect()}catch(e){t.e(e)}finally{t.f()}_classPrivateFieldGet(j,this).clear(),_assertClassBrand(re,this,he).call(this,{hasSelectedEditor:!1})}}},{key:"translateSelectedEditors",value:function(e,t){var a=this;if(arguments.length>2&&void 0!==arguments[2]&&arguments[2]||this.commitOrRemove(),this.hasSelection){_classPrivateFieldGet(ee,this)[0]+=e,_classPrivateFieldGet(ee,this)[1]+=t;var i=_slicedToArray(_classPrivateFieldGet(ee,this),2),r=i[0],n=i[1],s=_toConsumableArray(_classPrivateFieldGet(j,this));_classPrivateFieldGet(te,this)&&clearTimeout(_classPrivateFieldGet(te,this)),_classPrivateFieldSet(te,this,setTimeout((function(){_classPrivateFieldSet(te,a,null),_classPrivateFieldGet(ee,a)[0]=_classPrivateFieldGet(ee,a)[1]=0,a.addCommands({cmd:function(){var e,t=_createForOfIteratorHelper(s);try{for(t.s();!(e=t.n()).done;){var i=e.value;_classPrivateFieldGet(S,a).has(i.id)&&i.translateInPage(r,n)}}catch(e){t.e(e)}finally{t.f()}},undo:function(){var e,t=_createForOfIteratorHelper(s);try{for(t.s();!(e=t.n()).done;){var i=e.value;_classPrivateFieldGet(S,a).has(i.id)&&i.translateInPage(-r,-n)}}catch(e){t.e(e)}finally{t.f()}},mustExec:!1})}),1e3));var o,l=_createForOfIteratorHelper(s);try{for(l.s();!(o=l.n()).done;)o.value.translateInPage(e,t)}catch(e){l.e(e)}finally{l.f()}}}},{key:"setUpDragSession",value:function(){if(this.hasSelection){this.disableUserSelect(!0),_classPrivateFieldSet(I,this,new Map);var e,t=_createForOfIteratorHelper(_classPrivateFieldGet(j,this));try{for(t.s();!(e=t.n()).done;){var a=e.value;_classPrivateFieldGet(I,this).set(a,{savedX:a.x,savedY:a.y,savedPageIndex:a.pageIndex,newX:0,newY:0,newPageIndex:-1})}}catch(e){t.e(e)}finally{t.f()}}}},{key:"endDragSession",value:function(){var e=this;if(!_classPrivateFieldGet(I,this))return!1;this.disableUserSelect(!1);var t=_classPrivateFieldGet(I,this);_classPrivateFieldSet(I,this,null);var a,i=!1,r=_createForOfIteratorHelper(t);try{for(r.s();!(a=r.n()).done;){var n=_slicedToArray(a.value,2),s=n[0],o=s.x,l=s.y,c=s.pageIndex,u=n[1];u.newX=o,u.newY=l,u.newPageIndex=c,i||(i=o!==u.savedX||l!==u.savedY||c!==u.savedPageIndex)}}catch(e){r.e(e)}finally{r.f()}if(!i)return!1;var d=function(t,a,i,r){if(_classPrivateFieldGet(S,e).has(t.id)){var n=_classPrivateFieldGet(C,e).get(r);n?t._setParentAndPosition(n,a,i):(t.pageIndex=r,t.x=a,t.y=i)}};return this.addCommands({cmd:function(){var e,a=_createForOfIteratorHelper(t);try{for(a.s();!(e=a.n()).done;){var i=_slicedToArray(e.value,2),r=i[0],n=i[1],s=n.newX,o=n.newY,l=n.newPageIndex;d(r,s,o,l)}}catch(e){a.e(e)}finally{a.f()}},undo:function(){var e,a=_createForOfIteratorHelper(t);try{for(a.s();!(e=a.n()).done;){var i=_slicedToArray(e.value,2),r=i[0],n=i[1],s=n.savedX,o=n.savedY,l=n.savedPageIndex;d(r,s,o,l)}}catch(e){a.e(e)}finally{a.f()}},mustExec:!0}),!0}},{key:"dragSelectedEditors",value:function(e,t){if(_classPrivateFieldGet(I,this)){var a,i=_createForOfIteratorHelper(_classPrivateFieldGet(I,this).keys());try{for(i.s();!(a=i.n()).done;)a.value.drag(e,t)}catch(e){i.e(e)}finally{i.f()}}}},{key:"rebuild",value:function(e){if(null===e.parent){var t=this.getLayer(e.pageIndex);t?(t.changeParent(e),t.addOrRebuild(e)):(this.addEditor(e),this.addToAnnotationStorage(e),e.rebuild())}else e.parent.addOrRebuild(e)}},{key:"isActive",value:function(e){return _classPrivateFieldGet(F,this)===e}},{key:"getActive",value:function(){return _classPrivateFieldGet(F,this)}},{key:"getMode",value:function(){return _classPrivateFieldGet(W,this)}},{key:"imageManager",get:function(){return(0,r.shadow)(this,"imageManager",new h)}}],[{key:"_keyboardManager",get:function(){var t=e.prototype,a=function(e){var t=document.activeElement;return t&&_classPrivateFieldGet(ae,e).contains(t)&&e.hasSomethingToControl()},i=this.TRANSLATE_SMALL,n=this.TRANSLATE_BIG;return(0,r.shadow)(this,"_keyboardManager",new k([[["ctrl+a","mac+meta+a"],t.selectAll],[["ctrl+z","mac+meta+z"],t.undo],[["ctrl+y","ctrl+shift+z","mac+meta+shift+z","ctrl+shift+Z","mac+meta+shift+Z"],t.redo],[["Backspace","alt+Backspace","ctrl+Backspace","shift+Backspace","mac+Backspace","mac+alt+Backspace","mac+ctrl+Backspace","Delete","ctrl+Delete","shift+Delete","mac+Delete"],t.delete],[["Escape","mac+Escape"],t.unselectAll],[["ArrowLeft","mac+ArrowLeft"],t.translateSelectedEditors,{args:[-i,0],checker:a}],[["ctrl+ArrowLeft","mac+shift+ArrowLeft"],t.translateSelectedEditors,{args:[-n,0],checker:a}],[["ArrowRight","mac+ArrowRight"],t.translateSelectedEditors,{args:[i,0],checker:a}],[["ctrl+ArrowRight","mac+shift+ArrowRight"],t.translateSelectedEditors,{args:[n,0],checker:a}],[["ArrowUp","mac+ArrowUp"],t.translateSelectedEditors,{args:[0,-i],checker:a}],[["ctrl+ArrowUp","mac+shift+ArrowUp"],t.translateSelectedEditors,{args:[0,-n],checker:a}],[["ArrowDown","mac+ArrowDown"],t.translateSelectedEditors,{args:[0,i],checker:a}],[["ctrl+ArrowDown","mac+shift+ArrowDown"],t.translateSelectedEditors,{args:[0,n],checker:a}]]))}}])}();function se(){window.addEventListener("focus",_classPrivateFieldGet(q,this)),window.addEventListener("blur",_classPrivateFieldGet(U,this))}function oe(){window.removeEventListener("focus",_classPrivateFieldGet(q,this)),window.removeEventListener("blur",_classPrivateFieldGet(U,this))}function le(){window.addEventListener("keydown",_classPrivateFieldGet(K,this),{capture:!0})}function ce(){window.removeEventListener("keydown",_classPrivateFieldGet(K,this),{capture:!0})}function ue(){document.addEventListener("copy",_classPrivateFieldGet(z,this)),document.addEventListener("cut",_classPrivateFieldGet(V,this)),document.addEventListener("paste",_classPrivateFieldGet(X,this))}function de(){document.removeEventListener("copy",_classPrivateFieldGet(z,this)),document.removeEventListener("cut",_classPrivateFieldGet(V,this)),document.removeEventListener("paste",_classPrivateFieldGet(X,this))}function he(e){var t=this;Object.entries(e).some((function(e){var a=_slicedToArray(e,2),i=a[0],r=a[1];return _classPrivateFieldGet($,t)[i]!==r}))&&this._eventBus.dispatch("annotationeditorstateschanged",{source:this,details:Object.assign(_classPrivateFieldGet($,this),e)})}function ve(e){this._eventBus.dispatch("annotationeditorparamschanged",{source:this,details:e})}function fe(){if(!_classPrivateFieldGet(L,this)){_classPrivateFieldSet(L,this,!0);var e,t=_createForOfIteratorHelper(_classPrivateFieldGet(C,this).values());try{for(t.s();!(e=t.n()).done;)e.value.enable()}catch(e){t.e(e)}finally{t.f()}}}function pe(){if(this.unselectAll(),_classPrivateFieldGet(L,this)){_classPrivateFieldSet(L,this,!1);var e,t=_createForOfIteratorHelper(_classPrivateFieldGet(C,this).values());try{for(t.s();!(e=t.n()).done;)e.value.disable()}catch(e){t.e(e)}finally{t.f()}}}function _e(e){var t=_classPrivateFieldGet(C,this).get(e.pageIndex);t?t.addOrRebuild(e):this.addEditor(e)}function ge(){if(0===_classPrivateFieldGet(S,this).size)return!0;if(1===_classPrivateFieldGet(S,this).size){var e,t=_createForOfIteratorHelper(_classPrivateFieldGet(S,this).values());try{for(t.s();!(e=t.n()).done;)return e.value.isEmpty()}catch(e){t.e(e)}finally{t.f()}}return!1}function ye(e){_classPrivateFieldGet(j,this).clear();var t,a=_createForOfIteratorHelper(e);try{for(a.s();!(t=a.n()).done;){var i=t.value;i.isEmpty()||(_classPrivateFieldGet(j,this).add(i),i.select())}}catch(e){a.e(e)}finally{a.f()}_assertClassBrand(re,this,he).call(this,{hasSelectedEditor:!0})}_defineProperty(ne,"TRANSLATE_SMALL",1),_defineProperty(ne,"TRANSLATE_BIG",10),t.AnnotationEditorUIManager=ne},function(e,t,a){var i;Object.defineProperty(t,"__esModule",{value:!0}),t.StatTimer=t.RenderingCancelledException=t.PixelsPerInch=t.PageViewport=t.PDFDateString=t.DOMStandardFontDataFactory=t.DOMSVGFactory=t.DOMFilterFactory=t.DOMCanvasFactory=t.DOMCMapReaderFactory=void 0,t.deprecated=function(e){console.log("Deprecated API usage: "+e)},t.getColorValues=function(e){var t=document.createElement("span");t.style.visibility="hidden",document.body.append(t);var a,i=_createForOfIteratorHelper(e.keys());try{for(i.s();!(a=i.n()).done;){var r=a.value;t.style.color=r;var n=window.getComputedStyle(t).color;e.set(r,j(n))}}catch(e){i.e(e)}finally{i.f()}t.remove()},t.getCurrentTransform=function(e){var t=e.getTransform();return[t.a,t.b,t.c,t.d,t.e,t.f]},t.getCurrentTransformInverse=function(e){var t=e.getTransform().invertSelf();return[t.a,t.b,t.c,t.d,t.e,t.f]},t.getFilenameFromUrl=function(e){if(!(arguments.length>1&&void 0!==arguments[1]&&arguments[1])){var t=e.split(/[#?]/,1);e=_slicedToArray(t,1)[0]}return e.substring(e.lastIndexOf("/")+1)},t.getPdfFilenameFromUrl=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"document.pdf";if("string"!=typeof e)return t;if(G(e))return(0,n.warn)('getPdfFilenameFromUrl: ignore "data:"-URL for performance reasons.'),t;var a=/[^/?#=]+\.pdf\b(?!.*\.pdf\b)/i,i=/^(?:(?:[^:]+:)?\/\/[^/]+)?([^?#]*)(\?[^#]*)?(#.*)?$/.exec(e),r=a.exec(i[1])||a.exec(i[2])||a.exec(i[3]);if(r&&(r=r[0]).includes("%"))try{r=a.exec(decodeURIComponent(r))[0]}catch(e){}return r||t},t.getRGB=j,t.getXfaPageViewport=function(e,t){var a=t.scale,i=void 0===a?1:a,r=t.rotation,n=void 0===r?0:r,s=e.attributes.style,o=s.width,l=s.height,c=[0,0,parseInt(o),parseInt(l)];return new D({viewBox:c,scale:i,rotation:n})},t.isDataScheme=G,t.isPdfFile=function(e){return"string"==typeof e&&/\.pdf$/i.test(e)},t.isValidFetchUrl=N,t.loadScript=function(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];return new Promise((function(a,i){var r=document.createElement("script");r.src=e,r.onload=function(e){t&&r.remove(),a(e)},r.onerror=function(){i(new Error("Cannot load script at: ".concat(r.src)))},(document.head||document.documentElement).append(r)}))},t.noContextMenu=function(e){e.preventDefault()},t.setLayerDimensions=function(e,t){var a=arguments.length>2&&void 0!==arguments[2]&&arguments[2],i=!(arguments.length>3&&void 0!==arguments[3])||arguments[3];if(t instanceof D){var r=t.rawDims,s=r.pageWidth,o=r.pageHeight,l=e.style,c=n.FeatureTest.isCSSRoundSupported,u="var(--scale-factor) * ".concat(s,"px"),d="var(--scale-factor) * ".concat(o,"px"),h=c?"round(".concat(u,", 1px)"):"calc(".concat(u,")"),v=c?"round(".concat(d,", 1px)"):"calc(".concat(d,")");a&&t.rotation%180!=0?(l.width=v,l.height=h):(l.width=h,l.height=v)}i&&e.setAttribute("data-main-rotation",t.rotation)};var r=a(7),n=a(1),s="http://www.w3.org/2000/svg",o=_createClass((function e(){_classCallCheck(this,e)}));i=o,_defineProperty(o,"CSS",96),_defineProperty(o,"PDF",72),_defineProperty(o,"PDF_TO_CSS_UNITS",i.CSS/i.PDF),t.PixelsPerInch=o;var l=new WeakMap,c=new WeakMap,u=new WeakMap,d=new WeakMap,h=new WeakMap,v=new WeakMap,f=new WeakMap,p=new WeakMap,_=new WeakMap,g=new WeakMap,y=new WeakMap,m=new WeakSet,b=function(e){function t(){var e,a=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},i=a.docId,r=a.ownerDocument,n=void 0===r?globalThis.document:r;return _classCallCheck(this,t),_classPrivateMethodInitSpec(e=_callSuper(this,t),m),_classPrivateFieldInitSpec(e,l,void 0),_classPrivateFieldInitSpec(e,c,void 0),_classPrivateFieldInitSpec(e,u,void 0),_classPrivateFieldInitSpec(e,d,void 0),_classPrivateFieldInitSpec(e,h,void 0),_classPrivateFieldInitSpec(e,v,void 0),_classPrivateFieldInitSpec(e,f,void 0),_classPrivateFieldInitSpec(e,p,void 0),_classPrivateFieldInitSpec(e,_,void 0),_classPrivateFieldInitSpec(e,g,void 0),_classPrivateFieldInitSpec(e,y,0),_classPrivateFieldSet(u,e,i),_classPrivateFieldSet(d,e,n),e}return _inherits(t,e),_createClass(t,[{key:"addFilter",value:function(e){var t,a;if(!e)return"none";var i,r,n,s,o=_classPrivateGetter(m,this,k).get(e);if(o)return o;if(1===e.length){for(var l=e[0],c=new Array(256),d=0;d<256;d++)c[d]=l[d]/255;s=i=r=n=c.join(",")}else{for(var h=_slicedToArray(e,3),v=h[0],f=h[1],p=h[2],_=new Array(256),g=new Array(256),b=new Array(256),A=0;A<256;A++)_[A]=v[A]/255,g[A]=f[A]/255,b[A]=p[A]/255;i=_.join(","),r=g.join(","),n=b.join(","),s="".concat(i).concat(r).concat(n)}if(o=_classPrivateGetter(m,this,k).get(s))return _classPrivateGetter(m,this,k).set(e,o),o;var P="g_".concat(_classPrivateFieldGet(u,this),"_transfer_map_").concat((_classPrivateFieldSet(y,this,(t=_classPrivateFieldGet(y,this),a=t++,t)),a)),S="url(#".concat(P,")");_classPrivateGetter(m,this,k).set(e,S),_classPrivateGetter(m,this,k).set(s,S);var w=_assertClassBrand(m,this,F).call(this,P);return _assertClassBrand(m,this,C).call(this,i,r,n,w),S}},{key:"addHCMFilter",value:function(e,t){var a,i,r,s="".concat(e,"-").concat(t);if(_classPrivateFieldGet(v,this)===s)return _classPrivateFieldGet(f,this);if(_classPrivateFieldSet(v,this,s),_classPrivateFieldSet(f,this,"none"),null===(a=_classPrivateFieldGet(h,this))||void 0===a||a.remove(),!e||!t)return _classPrivateFieldGet(f,this);var o=_assertClassBrand(m,this,w).call(this,e);e=(i=n.Util).makeHexColor.apply(i,_toConsumableArray(o));var l=_assertClassBrand(m,this,w).call(this,t);if(t=(r=n.Util).makeHexColor.apply(r,_toConsumableArray(l)),_classPrivateGetter(m,this,A).style.color="","#000000"===e&&"#ffffff"===t||e===t)return _classPrivateFieldGet(f,this);for(var c=new Array(256),d=0;d<=255;d++){var _=d/255;c[d]=_<=.03928?_/12.92:Math.pow((_+.055)/1.055,2.4)}var g=c.join(","),y="g_".concat(_classPrivateFieldGet(u,this),"_hcm_filter"),b=_classPrivateFieldSet(p,this,_assertClassBrand(m,this,F).call(this,y));_assertClassBrand(m,this,C).call(this,g,g,g,b),_assertClassBrand(m,this,P).call(this,b);var k=function(e,t){for(var a=o[e]/255,i=l[e]/255,r=new Array(t+1),n=0;n<=t;n++)r[n]=a+n/t*(i-a);return r.join(",")};return _assertClassBrand(m,this,C).call(this,k(0,5),k(1,5),k(2,5),b),_classPrivateFieldSet(f,this,"url(#".concat(y,")")),_classPrivateFieldGet(f,this)}},{key:"addHighlightHCMFilter",value:function(e,t,a,i){var r,n="".concat(e,"-").concat(t,"-").concat(a,"-").concat(i);if(_classPrivateFieldGet(_,this)===n)return _classPrivateFieldGet(g,this);if(_classPrivateFieldSet(_,this,n),_classPrivateFieldSet(g,this,"none"),null===(r=_classPrivateFieldGet(p,this))||void 0===r||r.remove(),!e||!t)return _classPrivateFieldGet(g,this);var s=_slicedToArray([e,t].map(_assertClassBrand(m,this,w).bind(this)),2),o=s[0],l=s[1],c=Math.round(.2126*o[0]+.7152*o[1]+.0722*o[2]),d=Math.round(.2126*l[0]+.7152*l[1]+.0722*l[2]),h=_slicedToArray([a,i].map(_assertClassBrand(m,this,w).bind(this)),2),v=h[0],f=h[1];if(d<c){var y=[d,c,f,v];c=y[0],d=y[1],v=y[2],f=y[3]}_classPrivateGetter(m,this,A).style.color="";var b=function(e,t,a){for(var i=new Array(256),r=(d-c)/a,n=e/255,s=(t-e)/(255*a),o=0,l=0;l<=a;l++){for(var u=Math.round(c+l*r),h=n+l*s,v=o;v<=u;v++)i[v]=h;o=u+1}for(var f=o;f<256;f++)i[f]=i[o-1];return i.join(",")},k="g_".concat(_classPrivateFieldGet(u,this),"_hcm_highlight_filter"),S=_classPrivateFieldSet(p,this,_assertClassBrand(m,this,F).call(this,k));return _assertClassBrand(m,this,P).call(this,S),_assertClassBrand(m,this,C).call(this,b(v[0],f[0],5),b(v[1],f[1],5),b(v[2],f[2],5),S),_classPrivateFieldSet(g,this,"url(#".concat(k,")")),_classPrivateFieldGet(g,this)}},{key:"destroy",value:function(){arguments.length>0&&void 0!==arguments[0]&&arguments[0]&&(_classPrivateFieldGet(f,this)||_classPrivateFieldGet(g,this))||(_classPrivateFieldGet(c,this)&&(_classPrivateFieldGet(c,this).parentNode.parentNode.remove(),_classPrivateFieldSet(c,this,null)),_classPrivateFieldGet(l,this)&&(_classPrivateFieldGet(l,this).clear(),_classPrivateFieldSet(l,this,null)),_classPrivateFieldSet(y,this,0))}}])}(r.BaseFilterFactory);function k(e){return _classPrivateFieldGet(l,e)||_classPrivateFieldSet(l,e,new Map)}function A(e){if(!_classPrivateFieldGet(c,e)){var t=_classPrivateFieldGet(d,e).createElement("div"),a=t.style;a.visibility="hidden",a.contain="strict",a.width=a.height=0,a.position="absolute",a.top=a.left=0,a.zIndex=-1;var i=_classPrivateFieldGet(d,e).createElementNS(s,"svg");i.setAttribute("width",0),i.setAttribute("height",0),_classPrivateFieldSet(c,e,_classPrivateFieldGet(d,e).createElementNS(s,"defs")),t.append(i),i.append(_classPrivateFieldGet(c,e)),_classPrivateFieldGet(d,e).body.append(t)}return _classPrivateFieldGet(c,e)}function P(e){var t=_classPrivateFieldGet(d,this).createElementNS(s,"feColorMatrix");t.setAttribute("type","matrix"),t.setAttribute("values","0.2126 0.7152 0.0722 0 0 0.2126 0.7152 0.0722 0 0 0.2126 0.7152 0.0722 0 0 0 0 0 1 0"),e.append(t)}function F(e){var t=_classPrivateFieldGet(d,this).createElementNS(s,"filter");return t.setAttribute("color-interpolation-filters","sRGB"),t.setAttribute("id",e),_classPrivateGetter(m,this,A).append(t),t}function S(e,t,a){var i=_classPrivateFieldGet(d,this).createElementNS(s,t);i.setAttribute("type","discrete"),i.setAttribute("tableValues",a),e.append(i)}function C(e,t,a,i){var r=_classPrivateFieldGet(d,this).createElementNS(s,"feComponentTransfer");i.append(r),_assertClassBrand(m,this,S).call(this,r,"feFuncR",e),_assertClassBrand(m,this,S).call(this,r,"feFuncG",t),_assertClassBrand(m,this,S).call(this,r,"feFuncB",a)}function w(e){return _classPrivateGetter(m,this,A).style.color=e,j(getComputedStyle(_classPrivateGetter(m,this,A)).getPropertyValue("color"))}t.DOMFilterFactory=b;var x=function(e){function t(){var e,a=(arguments.length>0&&void 0!==arguments[0]?arguments[0]:{}).ownerDocument,i=void 0===a?globalThis.document:a;return _classCallCheck(this,t),(e=_callSuper(this,t))._document=i,e}return _inherits(t,e),_createClass(t,[{key:"_createCanvas",value:function(e,t){var a=this._document.createElement("canvas");return a.width=e,a.height=t,a}}])}(r.BaseCanvasFactory);function E(e){return T.apply(this,arguments)}function T(){return T=_asyncToGenerator(_regenerator().m((function e(t){var a,i,r,s,o,l,c,u=arguments;return _regenerator().w((function(e){for(;;)switch(e.n){case 0:if(a=u.length>1&&void 0!==u[1]&&u[1],!N(t,document.baseURI)){e.n=7;break}return e.n=1,fetch(t);case 1:if((i=e.v).ok){e.n=2;break}throw new Error(i.statusText);case 2:if(!a){e.n=4;break}return s=Uint8Array,e.n=3,i.arrayBuffer();case 3:o=e.v,r=new s(o),e.n=6;break;case 4:return l=n.stringToBytes,e.n=5,i.text();case 5:c=e.v,r=l(c);case 6:return e.a(2,r);case 7:return e.a(2,new Promise((function(e,i){var r=new XMLHttpRequest;r.open("GET",t,!0),a&&(r.responseType="arraybuffer"),r.onreadystatechange=function(){if(r.readyState===XMLHttpRequest.DONE){var t;if((200===r.status||0===r.status)&&(a&&r.response?t=new Uint8Array(r.response):!a&&r.responseText&&(t=(0,n.stringToBytes)(r.responseText)),t))return void e(t);i(new Error(r.statusText))}},r.send(null)})))}}),e)}))),T.apply(this,arguments)}t.DOMCanvasFactory=x;var M=function(e){function t(){return _classCallCheck(this,t),_callSuper(this,t,arguments)}return _inherits(t,e),_createClass(t,[{key:"_fetchData",value:function(e,t){return E(e,this.isCompressed).then((function(e){return{cMapData:e,compressionType:t}}))}}])}(r.BaseCMapReaderFactory);t.DOMCMapReaderFactory=M;var I=function(e){function t(){return _classCallCheck(this,t),_callSuper(this,t,arguments)}return _inherits(t,e),_createClass(t,[{key:"_fetchData",value:function(e){return E(e,!0)}}])}(r.BaseStandardFontDataFactory);t.DOMStandardFontDataFactory=I;var R=function(e){function t(){return _classCallCheck(this,t),_callSuper(this,t,arguments)}return _inherits(t,e),_createClass(t,[{key:"_createSVG",value:function(e){return document.createElementNS(s,e)}}])}(r.BaseSVGFactory);t.DOMSVGFactory=R;var D=function(){function e(t){var a=t.viewBox,i=t.scale,r=t.rotation,n=t.offsetX,s=void 0===n?0:n,o=t.offsetY,l=void 0===o?0:o,c=t.dontFlip,u=void 0!==c&&c;_classCallCheck(this,e),this.viewBox=a,this.scale=i,this.rotation=r,this.offsetX=s,this.offsetY=l;var d,h,v,f,p,_,g,y,m=(a[2]+a[0])/2,b=(a[3]+a[1])/2;switch((r%=360)<0&&(r+=360),r){case 180:d=-1,h=0,v=0,f=1;break;case 90:d=0,h=1,v=1,f=0;break;case 270:d=0,h=-1,v=-1,f=0;break;case 0:d=1,h=0,v=0,f=-1;break;default:throw new Error("PageViewport: Invalid rotation, must be a multiple of 90 degrees.")}u&&(v=-v,f=-f),0===d?(p=Math.abs(b-a[1])*i+s,_=Math.abs(m-a[0])*i+l,g=(a[3]-a[1])*i,y=(a[2]-a[0])*i):(p=Math.abs(m-a[0])*i+s,_=Math.abs(b-a[1])*i+l,g=(a[2]-a[0])*i,y=(a[3]-a[1])*i),this.transform=[d*i,h*i,v*i,f*i,p-d*i*m-v*i*b,_-h*i*m-f*i*b],this.width=g,this.height=y}return _createClass(e,[{key:"rawDims",get:function(){var e=this.viewBox;return(0,n.shadow)(this,"rawDims",{pageWidth:e[2]-e[0],pageHeight:e[3]-e[1],pageX:e[0],pageY:e[1]})}},{key:"clone",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},a=t.scale,i=void 0===a?this.scale:a,r=t.rotation,n=void 0===r?this.rotation:r,s=t.offsetX,o=void 0===s?this.offsetX:s,l=t.offsetY,c=void 0===l?this.offsetY:l,u=t.dontFlip,d=void 0!==u&&u;return new e({viewBox:this.viewBox.slice(),scale:i,rotation:n,offsetX:o,offsetY:c,dontFlip:d})}},{key:"convertToViewportPoint",value:function(e,t){return n.Util.applyTransform([e,t],this.transform)}},{key:"convertToViewportRectangle",value:function(e){var t=n.Util.applyTransform([e[0],e[1]],this.transform),a=n.Util.applyTransform([e[2],e[3]],this.transform);return[t[0],t[1],a[0],a[1]]}},{key:"convertToPdfPoint",value:function(e,t){return n.Util.applyInverseTransform([e,t],this.transform)}}])}();t.PageViewport=D;var O=function(e){function t(e){var a,i=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;return _classCallCheck(this,t),(a=_callSuper(this,t,[e,"RenderingCancelledException"])).extraDelay=i,a}return _inherits(t,e),_createClass(t)}(n.BaseException);function G(e){for(var t=e.length,a=0;a<t&&""===e[a].trim();)a++;return"data:"===e.substring(a,a+5).toLowerCase()}t.RenderingCancelledException=O;var L,B=function(){return _createClass((function e(){_classCallCheck(this,e),_defineProperty(this,"started",Object.create(null)),_defineProperty(this,"times",[])}),[{key:"time",value:function(e){e in this.started&&(0,n.warn)("Timer is already running for ".concat(e)),this.started[e]=Date.now()}},{key:"timeEnd",value:function(e){e in this.started||(0,n.warn)("Timer has not been started for ".concat(e)),this.times.push({name:e,start:this.started[e],end:Date.now()}),delete this.started[e]}},{key:"toString",value:function(){var e,t=[],a=0,i=_createForOfIteratorHelper(this.times);try{for(i.s();!(e=i.n()).done;){var r=e.value.name;a=Math.max(r.length,a)}}catch(e){i.e(e)}finally{i.f()}var n,s=_createForOfIteratorHelper(this.times);try{for(s.s();!(n=s.n()).done;){var o=n.value,l=o.name,c=o.start,u=o.end;t.push("".concat(l.padEnd(a)," ").concat(u-c,"ms\n"))}}catch(e){s.e(e)}finally{s.f()}return t.join("")}}])}();function N(e,t){try{var a=(t?new URL(e,t):new URL(e)).protocol;return"http:"===a||"https:"===a}catch(e){return!1}}t.StatTimer=B;var W=function(){return _createClass((function e(){_classCallCheck(this,e)}),null,[{key:"toDateObject",value:function(e){if(!e||"string"!=typeof e)return null;L||(L=new RegExp("^D:(\\d{4})(\\d{2})?(\\d{2})?(\\d{2})?(\\d{2})?(\\d{2})?([Z|+|-])?(\\d{2})?'?(\\d{2})?'?"));var t=L.exec(e);if(!t)return null;var a=parseInt(t[1],10),i=parseInt(t[2],10);i=i>=1&&i<=12?i-1:0;var r=parseInt(t[3],10);r=r>=1&&r<=31?r:1;var n=parseInt(t[4],10);n=n>=0&&n<=23?n:0;var s=parseInt(t[5],10);s=s>=0&&s<=59?s:0;var o=parseInt(t[6],10);o=o>=0&&o<=59?o:0;var l=t[7]||"Z",c=parseInt(t[8],10);c=c>=0&&c<=23?c:0;var u=parseInt(t[9],10)||0;return u=u>=0&&u<=59?u:0,"-"===l?(n+=c,s+=u):"+"===l&&(n-=c,s-=u),new Date(Date.UTC(a,i,r,n,s,o))}}])}();function j(e){if(e.startsWith("#")){var t=parseInt(e.slice(1),16);return[(16711680&t)>>16,(65280&t)>>8,255&t]}return e.startsWith("rgb(")?e.slice(4,-1).split(",").map((function(e){return parseInt(e)})):e.startsWith("rgba(")?e.slice(5,-1).split(",").map((function(e){return parseInt(e)})).slice(0,3):((0,n.warn)('Not a valid color format: "'.concat(e,'"')),[0,0,0])}t.PDFDateString=W},function(e,t,a){Object.defineProperty(t,"__esModule",{value:!0}),t.BaseStandardFontDataFactory=t.BaseSVGFactory=t.BaseFilterFactory=t.BaseCanvasFactory=t.BaseCMapReaderFactory=void 0;var i=a(1),r=function(){return _createClass((function e(){_classCallCheck(this,e),this.constructor===e&&(0,i.unreachable)("Cannot initialize BaseFilterFactory.")}),[{key:"addFilter",value:function(e){return"none"}},{key:"addHCMFilter",value:function(e,t){return"none"}},{key:"addHighlightHCMFilter",value:function(e,t,a,i){return"none"}},{key:"destroy",value:function(){}}])}();t.BaseFilterFactory=r;var n=function(){return _createClass((function e(){_classCallCheck(this,e),this.constructor===e&&(0,i.unreachable)("Cannot initialize BaseCanvasFactory.")}),[{key:"create",value:function(e,t){if(e<=0||t<=0)throw new Error("Invalid canvas size");var a=this._createCanvas(e,t);return{canvas:a,context:a.getContext("2d")}}},{key:"reset",value:function(e,t,a){if(!e.canvas)throw new Error("Canvas is not specified");if(t<=0||a<=0)throw new Error("Invalid canvas size");e.canvas.width=t,e.canvas.height=a}},{key:"destroy",value:function(e){if(!e.canvas)throw new Error("Canvas is not specified");e.canvas.width=0,e.canvas.height=0,e.canvas=null,e.context=null}},{key:"_createCanvas",value:function(e,t){(0,i.unreachable)("Abstract method `_createCanvas` called.")}}])}();t.BaseCanvasFactory=n;var s=function(){return _createClass((function e(t){var a=t.baseUrl,r=void 0===a?null:a,n=t.isCompressed,s=void 0===n||n;_classCallCheck(this,e),this.constructor===e&&(0,i.unreachable)("Cannot initialize BaseCMapReaderFactory."),this.baseUrl=r,this.isCompressed=s}),[{key:"fetch",value:(e=_asyncToGenerator(_regenerator().m((function e(t){var a,r,n,s=this;return _regenerator().w((function(e){for(;;)switch(e.n){case 0:if(a=t.name,this.baseUrl){e.n=1;break}throw new Error('The CMap "baseUrl" parameter must be specified, ensure that the "cMapUrl" and "cMapPacked" API parameters are provided.');case 1:if(a){e.n=2;break}throw new Error("CMap name must be specified.");case 2:return r=this.baseUrl+a+(this.isCompressed?".bcmap":""),n=this.isCompressed?i.CMapCompressionType.BINARY:i.CMapCompressionType.NONE,e.a(2,this._fetchData(r,n).catch((function(e){throw new Error("Unable to load ".concat(s.isCompressed?"binary ":"","CMap at: ").concat(r))})))}}),e,this)}))),function(t){return e.apply(this,arguments)})},{key:"_fetchData",value:function(e,t){(0,i.unreachable)("Abstract method `_fetchData` called.")}}]);var e}();t.BaseCMapReaderFactory=s;var o=function(){return _createClass((function e(t){var a=t.baseUrl,r=void 0===a?null:a;_classCallCheck(this,e),this.constructor===e&&(0,i.unreachable)("Cannot initialize BaseStandardFontDataFactory."),this.baseUrl=r}),[{key:"fetch",value:(e=_asyncToGenerator(_regenerator().m((function e(t){var a,i;return _regenerator().w((function(e){for(;;)switch(e.n){case 0:if(a=t.filename,this.baseUrl){e.n=1;break}throw new Error('The standard font "baseUrl" parameter must be specified, ensure that the "standardFontDataUrl" API parameter is provided.');case 1:if(a){e.n=2;break}throw new Error("Font filename must be specified.");case 2:return i="".concat(this.baseUrl).concat(a),e.a(2,this._fetchData(i).catch((function(e){throw new Error("Unable to load font data at: ".concat(i))})))}}),e,this)}))),function(t){return e.apply(this,arguments)})},{key:"_fetchData",value:function(e){(0,i.unreachable)("Abstract method `_fetchData` called.")}}]);var e}();t.BaseStandardFontDataFactory=o;var l=function(){return _createClass((function e(){_classCallCheck(this,e),this.constructor===e&&(0,i.unreachable)("Cannot initialize BaseSVGFactory.")}),[{key:"create",value:function(e,t){var a=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(e<=0||t<=0)throw new Error("Invalid SVG dimensions");var i=this._createSVG("svg:svg");return i.setAttribute("version","1.1"),a||(i.setAttribute("width","".concat(e,"px")),i.setAttribute("height","".concat(t,"px"))),i.setAttribute("preserveAspectRatio","none"),i.setAttribute("viewBox","0 0 ".concat(e," ").concat(t)),i}},{key:"createElement",value:function(e){if("string"!=typeof e)throw new Error("Invalid SVG element type");return this._createSVG(e)}},{key:"_createSVG",value:function(e){(0,i.unreachable)("Abstract method `_createSVG` called.")}}])}();t.BaseSVGFactory=l},function(e,t,a){Object.defineProperty(t,"__esModule",{value:!0}),t.MurmurHash3_64=void 0;var i=a(1),r=3285377520,n=4294901760,s=65535,o=function(){return _createClass((function e(t){_classCallCheck(this,e),this.h1=t?4294967295&t:r,this.h2=t?4294967295&t:r}),[{key:"update",value:function(e){var t,a;if("string"==typeof e){t=new Uint8Array(2*e.length),a=0;for(var r=0,o=e.length;r<o;r++){var l=e.charCodeAt(r);l<=255?t[a++]=l:(t[a++]=l>>>8,t[a++]=255&l)}}else{if(!(0,i.isArrayBuffer)(e))throw new Error("Wrong data format in MurmurHash3_64_update. Input must be a string or array.");a=(t=e.slice()).byteLength}for(var c=a>>2,u=a-4*c,d=new Uint32Array(t.buffer,0,c),h=0,v=0,f=this.h1,p=this.h2,_=3432918353,g=461845907,y=11601,m=13715,b=0;b<c;b++)1&b?f=5*(f=(f^=h=(h=(h=(h=d[b])*_&n|h*y&s)<<15|h>>>17)*g&n|h*m&s)<<13|f>>>19)+3864292196:p=5*(p=(p^=v=(v=(v=(v=d[b])*_&n|v*y&s)<<15|v>>>17)*g&n|v*m&s)<<13|p>>>19)+3864292196;switch(h=0,u){case 3:h^=t[4*c+2]<<16;case 2:h^=t[4*c+1]<<8;case 1:h=(h=(h=(h^=t[4*c])*_&n|h*y&s)<<15|h>>>17)*g&n|h*m&s,1&c?f^=h:p^=h}this.h1=f,this.h2=p}},{key:"hexdigest",value:function(){var e=this.h1,t=this.h2;return e=3981806797*(e^=t>>>1)&n|36045*e&s,e=444984403*(e^=(t=4283543511*t&n|(2950163797*(t<<16|e>>>16)&n)>>>16)>>>1)&n|60499*e&s,((e^=(t=3301882366*t&n|(3120437893*(t<<16|e>>>16)&n)>>>16)>>>1)>>>0).toString(16).padStart(8,"0")+(t>>>0).toString(16).padStart(8,"0")}}])}();t.MurmurHash3_64=o},function(e,t,a){Object.defineProperty(t,"__esModule",{value:!0}),t.FontLoader=t.FontFaceObject=void 0;var i=a(1),r=new WeakMap,n=function(){return _createClass((function e(t){var a=t.ownerDocument,i=void 0===a?globalThis.document:a;t.styleElement,_classCallCheck(this,e),_classPrivateFieldInitSpec(this,r,new Set),this._document=i,this.nativeFontFaces=new Set,this.styleElement=null,this.loadingRequests=[],this.loadTestFontId=0}),[{key:"addNativeFontFace",value:function(e){this.nativeFontFaces.add(e),this._document.fonts.add(e)}},{key:"removeNativeFontFace",value:function(e){this.nativeFontFaces.delete(e),this._document.fonts.delete(e)}},{key:"insertRule",value:function(e){this.styleElement||(this.styleElement=this._document.createElement("style"),this._document.documentElement.getElementsByTagName("head")[0].append(this.styleElement));var t=this.styleElement.sheet;t.insertRule(e,t.cssRules.length)}},{key:"clear",value:function(){var e,t=_createForOfIteratorHelper(this.nativeFontFaces);try{for(t.s();!(e=t.n()).done;){var a=e.value;this._document.fonts.delete(a)}}catch(e){t.e(e)}finally{t.f()}this.nativeFontFaces.clear(),_classPrivateFieldGet(r,this).clear(),this.styleElement&&(this.styleElement.remove(),this.styleElement=null)}},{key:"loadSystemFont",value:(t=_asyncToGenerator(_regenerator().m((function e(t){var a,n,s,o;return _regenerator().w((function(e){for(;;)switch(e.n){case 0:if(t&&!_classPrivateFieldGet(r,this).has(t.loadedName)){e.n=1;break}return e.a(2);case 1:if((0,i.assert)(!this.disableFontFace,"loadSystemFont shouldn't be called when `disableFontFace` is set."),!this.isFontLoadingAPISupported){e.n=6;break}return a=t.loadedName,n=t.src,s=t.style,o=new FontFace(a,n,s),this.addNativeFontFace(o),e.p=2,e.n=3,o.load();case 3:_classPrivateFieldGet(r,this).add(a),e.n=5;break;case 4:e.p=4,e.v,(0,i.warn)("Cannot load system font: ".concat(t.baseFontName,", installing it could help to improve PDF rendering.")),this.removeNativeFontFace(o);case 5:return e.a(2);case 6:(0,i.unreachable)("Not implemented: loadSystemFont without the Font Loading API.");case 7:return e.a(2)}}),e,this,[[2,4]])}))),function(e){return t.apply(this,arguments)})},{key:"bind",value:(e=_asyncToGenerator(_regenerator().m((function e(t){var a,r,n,s=this;return _regenerator().w((function(e){for(;;)switch(e.n){case 0:if(!(t.attached||t.missingFile&&!t.systemFontInfo)){e.n=1;break}return e.a(2);case 1:if(t.attached=!0,!t.systemFontInfo){e.n=3;break}return e.n=2,this.loadSystemFont(t.systemFontInfo);case 2:case 7:case 10:return e.a(2);case 3:if(!this.isFontLoadingAPISupported){e.n=8;break}if(!(a=t.createNativeFontFace())){e.n=7;break}return this.addNativeFontFace(a),e.p=4,e.n=5,a.loaded;case 5:e.n=7;break;case 6:throw e.p=6,n=e.v,(0,i.warn)("Failed to load font '".concat(a.family,"': '").concat(n,"'.")),t.disableFontFace=!0,n;case 8:if(!(r=t.createFontFaceRule())){e.n=10;break}if(this.insertRule(r),!this.isSyncFontLoadingSupported){e.n=9;break}return e.a(2);case 9:return e.n=10,new Promise((function(e){var a=s._queueLoadingCallback(e);s._prepareFontLoadEvent(t,a)}))}}),e,this,[[4,6]])}))),function(t){return e.apply(this,arguments)})},{key:"isFontLoadingAPISupported",get:function(){var e,t=!(null===(e=this._document)||void 0===e||!e.fonts);return(0,i.shadow)(this,"isFontLoadingAPISupported",t)}},{key:"isSyncFontLoadingSupported",get:function(){var e=!1;return(i.isNodeJS||"undefined"!=typeof navigator&&/Mozilla\/5.0.*?rv:\d+.*? Gecko/.test(navigator.userAgent))&&(e=!0),(0,i.shadow)(this,"isSyncFontLoadingSupported",e)}},{key:"_queueLoadingCallback",value:function(e){var t=this.loadingRequests,a={done:!1,complete:function(){for((0,i.assert)(!a.done,"completeRequest() cannot be called twice."),a.done=!0;t.length>0&&t[0].done;){var e=t.shift();setTimeout(e.callback,0)}},callback:e};return t.push(a),a}},{key:"_loadTestFont",get:function(){var e=atob("T1RUTwALAIAAAwAwQ0ZGIDHtZg4AAAOYAAAAgUZGVE1lkzZwAAAEHAAAABxHREVGABQAFQAABDgAAAAeT1MvMlYNYwkAAAEgAAAAYGNtYXABDQLUAAACNAAAAUJoZWFk/xVFDQAAALwAAAA2aGhlYQdkA+oAAAD0AAAAJGhtdHgD6AAAAAAEWAAAAAZtYXhwAAJQAAAAARgAAAAGbmFtZVjmdH4AAAGAAAAAsXBvc3T/hgAzAAADeAAAACAAAQAAAAEAALZRFsRfDzz1AAsD6AAAAADOBOTLAAAAAM4KHDwAAAAAA+gDIQAAAAgAAgAAAAAAAAABAAADIQAAAFoD6AAAAAAD6AABAAAAAAAAAAAAAAAAAAAAAQAAUAAAAgAAAAQD6AH0AAUAAAKKArwAAACMAooCvAAAAeAAMQECAAACAAYJAAAAAAAAAAAAAQAAAAAAAAAAAAAAAFBmRWQAwAAuAC4DIP84AFoDIQAAAAAAAQAAAAAAAAAAACAAIAABAAAADgCuAAEAAAAAAAAAAQAAAAEAAAAAAAEAAQAAAAEAAAAAAAIAAQAAAAEAAAAAAAMAAQAAAAEAAAAAAAQAAQAAAAEAAAAAAAUAAQAAAAEAAAAAAAYAAQAAAAMAAQQJAAAAAgABAAMAAQQJAAEAAgABAAMAAQQJAAIAAgABAAMAAQQJAAMAAgABAAMAAQQJAAQAAgABAAMAAQQJAAUAAgABAAMAAQQJAAYAAgABWABYAAAAAAAAAwAAAAMAAAAcAAEAAAAAADwAAwABAAAAHAAEACAAAAAEAAQAAQAAAC7//wAAAC7////TAAEAAAAAAAABBgAAAQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAEAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAMAAAAAAAD/gwAyAAAAAQAAAAAAAAAAAAAAAAAAAAABAAQEAAEBAQJYAAEBASH4DwD4GwHEAvgcA/gXBIwMAYuL+nz5tQXkD5j3CBLnEQACAQEBIVhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYAAABAQAADwACAQEEE/t3Dov6fAH6fAT+fPp8+nwHDosMCvm1Cvm1DAz6fBQAAAAAAAABAAAAAMmJbzEAAAAAzgTjFQAAAADOBOQpAAEAAAAAAAAADAAUAAQAAAABAAAAAgABAAAAAAAAAAAD6AAAAAAAAA==");return(0,i.shadow)(this,"_loadTestFont",e)}},{key:"_prepareFontLoadEvent",value:function(e,t){function a(e,t){return e.charCodeAt(t)<<24|e.charCodeAt(t+1)<<16|e.charCodeAt(t+2)<<8|255&e.charCodeAt(t+3)}function r(e,t,a,i){return e.substring(0,t)+i+e.substring(t+a)}var n,s,o=this._document.createElement("canvas");o.width=1,o.height=1;var l=o.getContext("2d"),c=0,u="lt".concat(Date.now()).concat(this.loadTestFontId++),d=this._loadTestFont,h=1482184792,v=a(d=r(d,976,u.length,u),16);for(n=0,s=u.length-3;n<s;n+=4)v=v-h+a(u,n)|0;n<u.length&&(v=v-h+a(u+"XXX",n)|0),d=r(d,16,4,(0,i.string32)(v));var f="url(data:font/opentype;base64,".concat(btoa(d),");"),p='@font-face {font-family:"'.concat(u,'";src:').concat(f,"}");this.insertRule(p);var _=this._document.createElement("div");_.style.visibility="hidden",_.style.width=_.style.height="10px",_.style.position="absolute",_.style.top=_.style.left="0px";for(var g=0,y=[e.loadedName,u];g<y.length;g++){var m=y[g],b=this._document.createElement("span");b.textContent="Hi",b.style.fontFamily=m,_.append(b)}this._document.body.append(_),function e(t,a){if(++c>30)return(0,i.warn)("Load test font never loaded."),void a();l.font="30px "+t,l.fillText(".",0,20),l.getImageData(0,0,1,1).data[3]>0?a():setTimeout(e.bind(null,t,a))}(u,(function(){_.remove(),t.complete()}))}}]);var e,t}();t.FontLoader=n;var s=function(){return _createClass((function e(t,a){var i=a.isEvalSupported,r=void 0===i||i,n=a.disableFontFace,s=void 0!==n&&n,o=a.ignoreErrors,l=void 0!==o&&o,c=a.inspectFont,u=void 0===c?null:c;for(var d in _classCallCheck(this,e),this.compiledGlyphs=Object.create(null),t)this[d]=t[d];this.isEvalSupported=!1!==r,this.disableFontFace=!0===s,this.ignoreErrors=!0===l,this._inspectFont=u}),[{key:"createNativeFontFace",value:function(){var e,t;if(!this.data||this.disableFontFace)return null;if(this.cssFontInfo){var a={weight:this.cssFontInfo.fontWeight};this.cssFontInfo.italicAngle&&(a.style="oblique ".concat(this.cssFontInfo.italicAngle,"deg")),t=new FontFace(this.cssFontInfo.fontFamily,this.data,a)}else t=new FontFace(this.loadedName,this.data,{});return null===(e=this._inspectFont)||void 0===e||e.call(this,this),t}},{key:"createFontFaceRule",value:function(){var e;if(!this.data||this.disableFontFace)return null;var t,a=(0,i.bytesToString)(this.data),r="url(data:".concat(this.mimetype,";base64,").concat(btoa(a),");");if(this.cssFontInfo){var n="font-weight: ".concat(this.cssFontInfo.fontWeight,";");this.cssFontInfo.italicAngle&&(n+="font-style: oblique ".concat(this.cssFontInfo.italicAngle,"deg;")),t='@font-face {font-family:"'.concat(this.cssFontInfo.fontFamily,'";').concat(n,"src:").concat(r,"}")}else t='@font-face {font-family:"'.concat(this.loadedName,'";src:').concat(r,"}");return null===(e=this._inspectFont)||void 0===e||e.call(this,this,r),t}},{key:"getPathGenerator",value:function(e,t){if(void 0!==this.compiledGlyphs[t])return this.compiledGlyphs[t];var a;try{a=e.get(this.loadedName+"_path_"+t)}catch(e){if(!this.ignoreErrors)throw e;return(0,i.warn)('getPathGenerator - ignoring character: "'.concat(e,'".')),this.compiledGlyphs[t]=function(e,t){}}if(this.isEvalSupported&&i.FeatureTest.isEvalSupported){var r,n=[],s=_createForOfIteratorHelper(a);try{for(s.s();!(r=s.n()).done;){var o=r.value,l=void 0!==o.args?o.args.join(","):"";n.push("c.",o.cmd,"(",l,");\n")}}catch(e){s.e(e)}finally{s.f()}return this.compiledGlyphs[t]=new Function("c","size",n.join(""))}return this.compiledGlyphs[t]=function(e,t){var i,r=_createForOfIteratorHelper(a);try{for(r.s();!(i=r.n()).done;){var n=i.value;"scale"===n.cmd&&(n.args=[t,-t]),e[n.cmd].apply(e,n.args)}}catch(e){r.e(e)}finally{r.f()}}}}])}();t.FontFaceObject=s},function(e,t,a){Object.defineProperty(t,"__esModule",{value:!0}),t.NodeStandardFontDataFactory=t.NodeFilterFactory=t.NodeCanvasFactory=t.NodeCMapReaderFactory=void 0;var i=a(7),r=(a(1),function(e){return new Promise((function(t,a){__webpack_require__(21673).readFile(e,(function(e,i){!e&&i?t(new Uint8Array(i)):a(new Error(e))}))}))}),n=function(e){function t(){return _classCallCheck(this,t),_callSuper(this,t,arguments)}return _inherits(t,e),_createClass(t)}(i.BaseFilterFactory);t.NodeFilterFactory=n;var s=function(e){function t(){return _classCallCheck(this,t),_callSuper(this,t,arguments)}return _inherits(t,e),_createClass(t,[{key:"_createCanvas",value:function(e,t){return __webpack_require__(45956).createCanvas(e,t)}}])}(i.BaseCanvasFactory);t.NodeCanvasFactory=s;var o=function(e){function t(){return _classCallCheck(this,t),_callSuper(this,t,arguments)}return _inherits(t,e),_createClass(t,[{key:"_fetchData",value:function(e,t){return r(e).then((function(e){return{cMapData:e,compressionType:t}}))}}])}(i.BaseCMapReaderFactory);t.NodeCMapReaderFactory=o;var l=function(e){function t(){return _classCallCheck(this,t),_callSuper(this,t,arguments)}return _inherits(t,e),_createClass(t,[{key:"_fetchData",value:function(e){return r(e)}}])}(i.BaseStandardFontDataFactory);t.NodeStandardFontDataFactory=l},function(e,t,a){Object.defineProperty(t,"__esModule",{value:!0}),t.CanvasGraphics=void 0;var i=a(1),r=a(6),n=a(12),s=a(13),o=4096,l=16,c=function(){return _createClass((function e(t){_classCallCheck(this,e),this.canvasFactory=t,this.cache=Object.create(null)}),[{key:"getCanvas",value:function(e,t,a){var i;return void 0!==this.cache[e]?(i=this.cache[e],this.canvasFactory.reset(i,t,a)):(i=this.canvasFactory.create(t,a),this.cache[e]=i),i}},{key:"delete",value:function(e){delete this.cache[e]}},{key:"clear",value:function(){for(var e in this.cache){var t=this.cache[e];this.canvasFactory.destroy(t),delete this.cache[e]}}}])}();function u(e,t,a,i,n,s,o,l,c,u){var d=_slicedToArray((0,r.getCurrentTransform)(e),6),h=d[0],v=d[1],f=d[2],p=d[3],_=d[4],g=d[5];if(0===v&&0===f){var y=o*h+_,m=Math.round(y),b=l*p+g,k=Math.round(b),A=(o+c)*h+_,P=Math.abs(Math.round(A)-m)||1,F=(l+u)*p+g,S=Math.abs(Math.round(F)-k)||1;return e.setTransform(Math.sign(h),0,0,Math.sign(p),m,k),e.drawImage(t,a,i,n,s,0,0,P,S),e.setTransform(h,v,f,p,_,g),[P,S]}if(0===h&&0===p){var C=l*f+_,w=Math.round(C),x=o*v+g,E=Math.round(x),T=(l+u)*f+_,M=Math.abs(Math.round(T)-w)||1,I=(o+c)*v+g,R=Math.abs(Math.round(I)-E)||1;return e.setTransform(0,Math.sign(v),Math.sign(f),0,w,E),e.drawImage(t,a,i,n,s,0,0,R,M),e.setTransform(h,v,f,p,_,g),[R,M]}return e.drawImage(t,a,i,n,s,o,l,c,u),[Math.hypot(h,v)*c,Math.hypot(f,p)*u]}var d=function(){return _createClass((function e(t,a){_classCallCheck(this,e),this.alphaIsShape=!1,this.fontSize=0,this.fontSizeScale=1,this.textMatrix=i.IDENTITY_MATRIX,this.textMatrixScale=1,this.fontMatrix=i.FONT_IDENTITY_MATRIX,this.leading=0,this.x=0,this.y=0,this.lineX=0,this.lineY=0,this.charSpacing=0,this.wordSpacing=0,this.textHScale=1,this.textRenderingMode=i.TextRenderingMode.FILL,this.textRise=0,this.fillColor="#000000",this.strokeColor="#000000",this.patternFill=!1,this.fillAlpha=1,this.strokeAlpha=1,this.lineWidth=1,this.activeSMask=null,this.transferMaps="none",this.startNewPathAndClipBox([0,0,t,a])}),[{key:"clone",value:function(){var e=Object.create(this);return e.clipBox=this.clipBox.slice(),e}},{key:"setCurrentPoint",value:function(e,t){this.x=e,this.y=t}},{key:"updatePathMinMax",value:function(e,t,a){var r=_slicedToArray(i.Util.applyTransform([t,a],e),2);t=r[0],a=r[1],this.minX=Math.min(this.minX,t),this.minY=Math.min(this.minY,a),this.maxX=Math.max(this.maxX,t),this.maxY=Math.max(this.maxY,a)}},{key:"updateRectMinMax",value:function(e,t){var a=i.Util.applyTransform(t,e),r=i.Util.applyTransform(t.slice(2),e);this.minX=Math.min(this.minX,a[0],r[0]),this.minY=Math.min(this.minY,a[1],r[1]),this.maxX=Math.max(this.maxX,a[0],r[0]),this.maxY=Math.max(this.maxY,a[1],r[1])}},{key:"updateScalingPathMinMax",value:function(e,t){i.Util.scaleMinMax(e,t),this.minX=Math.min(this.minX,t[0]),this.maxX=Math.max(this.maxX,t[1]),this.minY=Math.min(this.minY,t[2]),this.maxY=Math.max(this.maxY,t[3])}},{key:"updateCurvePathMinMax",value:function(e,t,a,r,n,s,o,l,c,u){var d=i.Util.bezierBoundingBox(t,a,r,n,s,o,l,c);if(u)return u[0]=Math.min(u[0],d[0],d[2]),u[1]=Math.max(u[1],d[0],d[2]),u[2]=Math.min(u[2],d[1],d[3]),void(u[3]=Math.max(u[3],d[1],d[3]));this.updateRectMinMax(e,d)}},{key:"getPathBoundingBox",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:n.PathType.FILL,t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null,a=[this.minX,this.minY,this.maxX,this.maxY];if(e===n.PathType.STROKE){t||(0,i.unreachable)("Stroke bounding box must include transform.");var r=i.Util.singularValueDecompose2dScale(t),s=r[0]*this.lineWidth/2,o=r[1]*this.lineWidth/2;a[0]-=s,a[1]-=o,a[2]+=s,a[3]+=o}return a}},{key:"updateClipFromPath",value:function(){var e=i.Util.intersect(this.clipBox,this.getPathBoundingBox());this.startNewPathAndClipBox(e||[0,0,0,0])}},{key:"isEmptyClip",value:function(){return this.minX===1/0}},{key:"startNewPathAndClipBox",value:function(e){this.clipBox=e,this.minX=1/0,this.minY=1/0,this.maxX=0,this.maxY=0}},{key:"getClippedPathBoundingBox",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:n.PathType.FILL,t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null;return i.Util.intersect(this.clipBox,this.getPathBoundingBox(e,t))}}])}();function h(e,t){if("undefined"!=typeof ImageData&&t instanceof ImageData)e.putImageData(t,0,0);else{var a,r,n,s,o,c=t.height,u=t.width,d=c%l,h=(c-d)/l,v=0===d?h:h+1,f=e.createImageData(u,l),p=0,_=t.data,g=f.data;if(t.kind===i.ImageKind.GRAYSCALE_1BPP){var y=_.byteLength,m=new Uint32Array(g.buffer,0,g.byteLength>>2),b=m.length,k=u+7>>3,A=4294967295,P=i.FeatureTest.isLittleEndian?4278190080:255;for(r=0;r<v;r++){for(s=r<h?l:d,a=0,n=0;n<s;n++){for(var F=y-p,S=0,C=F>k?u:8*F-7,w=-8&C,x=0,E=0;S<w;S+=8)E=_[p++],m[a++]=128&E?A:P,m[a++]=64&E?A:P,m[a++]=32&E?A:P,m[a++]=16&E?A:P,m[a++]=8&E?A:P,m[a++]=4&E?A:P,m[a++]=2&E?A:P,m[a++]=1&E?A:P;for(;S<C;S++)0===x&&(E=_[p++],x=128),m[a++]=E&x?A:P,x>>=1}for(;a<b;)m[a++]=0;e.putImageData(f,0,r*l)}}else if(t.kind===i.ImageKind.RGBA_32BPP){for(n=0,o=u*l*4,r=0;r<h;r++)g.set(_.subarray(p,p+o)),p+=o,e.putImageData(f,0,n),n+=l;r<v&&(o=u*d*4,g.set(_.subarray(p,p+o)),e.putImageData(f,0,n))}else{if(t.kind!==i.ImageKind.RGB_24BPP)throw new Error("bad image kind: ".concat(t.kind));for(o=u*(s=l),r=0;r<v;r++){for(r>=h&&(o=u*(s=d)),a=0,n=o;n--;)g[a++]=_[p++],g[a++]=_[p++],g[a++]=_[p++],g[a++]=255;e.putImageData(f,0,r*l)}}}}function v(e,t){if(t.bitmap)e.drawImage(t.bitmap,0,0);else for(var a=t.height,i=t.width,r=a%l,n=(a-r)/l,o=0===r?n:n+1,c=e.createImageData(i,l),u=0,d=t.data,h=c.data,v=0;v<o;v++){var f=v<n?l:r;u=(0,s.convertBlackAndWhiteToRGBA)({src:d,srcPos:u,dest:h,width:i,height:f,nonBlackColor:0}).srcPos,e.putImageData(c,0,v*l)}}function f(e,t){for(var a=0,i=["strokeStyle","fillStyle","fillRule","globalAlpha","lineWidth","lineCap","lineJoin","miterLimit","globalCompositeOperation","font","filter"];a<i.length;a++){var r=i[a];void 0!==e[r]&&(t[r]=e[r])}void 0!==e.setLineDash&&(t.setLineDash(e.getLineDash()),t.lineDashOffset=e.lineDashOffset)}function p(e){if(e.strokeStyle=e.fillStyle="#000000",e.fillRule="nonzero",e.globalAlpha=1,e.lineWidth=1,e.lineCap="butt",e.lineJoin="miter",e.miterLimit=10,e.globalCompositeOperation="source-over",e.font="10px sans-serif",void 0!==e.setLineDash&&(e.setLineDash([]),e.lineDashOffset=0),!i.isNodeJS){var t=e.filter;"none"!==t&&""!==t&&(e.filter="none")}}function _(e,t,a,i){for(var r=e.length,n=3;n<r;n+=4){var s=e[n];if(0===s)e[n-3]=t,e[n-2]=a,e[n-1]=i;else if(s<255){var o=255-s;e[n-3]=e[n-3]*s+t*o>>8,e[n-2]=e[n-2]*s+a*o>>8,e[n-1]=e[n-1]*s+i*o>>8}}}function g(e,t,a){for(var i=e.length,r=1/255,n=3;n<i;n+=4){var s=a?a[e[n]]:e[n];t[n]=t[n]*s*r|0}}function y(e,t,a){for(var i=e.length,r=3;r<i;r+=4){var n=77*e[r-3]+152*e[r-2]+28*e[r-1];t[r]=a?t[r]*a[n>>8]>>8:t[r]*n>>16}}function m(e,t){var a=i.Util.singularValueDecompose2dScale(e);a[0]=Math.fround(a[0]),a[1]=Math.fround(a[1]);var n=Math.fround((globalThis.devicePixelRatio||1)*r.PixelsPerInch.PDF_TO_CSS_UNITS);return void 0!==t?t:a[0]<=n||a[1]<=n}var b=["butt","round","square"],k=["miter","round","bevel"],A={},P={},F=new WeakSet,S=function(){function e(t,a,i,r,n,s,o,l){var u=s.optionalContentConfig,h=s.markedContentStack,v=void 0===h?null:h;_classCallCheck(this,e),_classPrivateMethodInitSpec(this,F),this.ctx=t,this.current=new d(this.ctx.canvas.width,this.ctx.canvas.height),this.stateStack=[],this.pendingClip=null,this.pendingEOFill=!1,this.res=null,this.xobjs=null,this.commonObjs=a,this.objs=i,this.canvasFactory=r,this.filterFactory=n,this.groupStack=[],this.processingType3=null,this.baseTransform=null,this.baseTransformStack=[],this.groupLevel=0,this.smaskStack=[],this.smaskCounter=0,this.tempSMask=null,this.suspendedCtx=null,this.contentVisible=!0,this.markedContentStack=v||[],this.optionalContentConfig=u,this.cachedCanvases=new c(this.canvasFactory),this.cachedPatterns=new Map,this.annotationCanvasMap=o,this.viewportScale=1,this.outputScaleX=1,this.outputScaleY=1,this.pageColors=l,this._cachedScaleForStroking=[-1,0],this._cachedGetSinglePixelWidth=null,this._cachedBitmapsMap=new Map}return _createClass(e,[{key:"getObject",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null;return"string"==typeof e?e.startsWith("g_")?this.commonObjs.get(e):this.objs.get(e):t}},{key:"beginDrawing",value:function(e){var t,a,i=e.transform,n=e.viewport,s=e.transparency,o=void 0!==s&&s,l=e.background,c=void 0===l?null:l,u=this.ctx.canvas.width,d=this.ctx.canvas.height,h=this.ctx.fillStyle;if(this.ctx.fillStyle=c||"#ffffff",this.ctx.fillRect(0,0,u,d),this.ctx.fillStyle=h,o){var v,f=this.cachedCanvases.getCanvas("transparent",u,d);this.compositeCtx=this.ctx,this.transparentCanvas=f.canvas,this.ctx=f.context,this.ctx.save(),(v=this.ctx).transform.apply(v,_toConsumableArray((0,r.getCurrentTransform)(this.compositeCtx)))}this.ctx.save(),p(this.ctx),i&&((a=this.ctx).transform.apply(a,_toConsumableArray(i)),this.outputScaleX=i[0],this.outputScaleY=i[0]),(t=this.ctx).transform.apply(t,_toConsumableArray(n.transform)),this.viewportScale=n.scale,this.baseTransform=(0,r.getCurrentTransform)(this.ctx)}},{key:"executeOperatorList",value:function(e,t,a,r){var n=e.argsArray,s=e.fnArray,o=t||0,l=n.length;if(l===o)return o;for(var c,u=l-o>10&&"function"==typeof a,d=u?Date.now()+15:0,h=0,v=this.commonObjs,f=this.objs;;){if(void 0!==r&&o===r.nextBreakPoint)return r.breakIt(o,a),o;if((c=s[o])!==i.OPS.dependency)this[c].apply(this,n[o]);else{var p,_=_createForOfIteratorHelper(n[o]);try{for(_.s();!(p=_.n()).done;){var g=p.value,y=g.startsWith("g_")?v:f;if(!y.has(g))return y.get(g,a),o}}catch(e){_.e(e)}finally{_.f()}}if(++o===l)return o;if(u&&++h>10){if(Date.now()>d)return a(),o;h=0}}}},{key:"endDrawing",value:function(){_assertClassBrand(F,this,C).call(this),this.cachedCanvases.clear(),this.cachedPatterns.clear();var e,t=_createForOfIteratorHelper(this._cachedBitmapsMap.values());try{for(t.s();!(e=t.n()).done;){var a,i=e.value,r=_createForOfIteratorHelper(i.values());try{for(r.s();!(a=r.n()).done;){var n=a.value;"undefined"!=typeof HTMLCanvasElement&&n instanceof HTMLCanvasElement&&(n.width=n.height=0)}}catch(e){r.e(e)}finally{r.f()}i.clear()}}catch(e){t.e(e)}finally{t.f()}this._cachedBitmapsMap.clear(),_assertClassBrand(F,this,w).call(this)}},{key:"_scaleImage",value:function(e,t){for(var a,i,r=e.width,n=e.height,s=Math.max(Math.hypot(t[0],t[1]),1),o=Math.max(Math.hypot(t[2],t[3]),1),l=r,c=n,u="prescale1";s>2&&l>1||o>2&&c>1;){var d=l,h=c;s>2&&l>1&&(s/=l/(d=l>=16384?Math.floor(l/2)-1||1:Math.ceil(l/2))),o>2&&c>1&&(o/=c/(h=c>=16384?Math.floor(c/2)-1||1:Math.ceil(c)/2)),(i=(a=this.cachedCanvases.getCanvas(u,d,h)).context).clearRect(0,0,d,h),i.drawImage(e,0,0,l,c,0,0,d,h),e=a.canvas,l=d,c=h,u="prescale1"===u?"prescale2":"prescale1"}return{img:e,paintWidth:l,paintHeight:c}}},{key:"_createMaskCanvas",value:function(e){var t,a,s,o,l=this.ctx,c=e.width,d=e.height,h=this.current.fillColor,f=this.current.patternFill,p=(0,r.getCurrentTransform)(l);if((e.bitmap||e.data)&&e.count>1){var _=e.bitmap||e.data.buffer;a=JSON.stringify(f?p:[p.slice(0,4),h]),(t=this._cachedBitmapsMap.get(_))||(t=new Map,this._cachedBitmapsMap.set(_,t));var g=t.get(a);if(g&&!f)return{canvas:g,offsetX:Math.round(Math.min(p[0],p[2])+p[4]),offsetY:Math.round(Math.min(p[1],p[3])+p[5])};s=g}s||v((o=this.cachedCanvases.getCanvas("maskCanvas",c,d)).context,e);var y=i.Util.transform(p,[1/c,0,0,-1/d,0,0]);y=i.Util.transform(y,[1,0,0,1,0,-d]);var b=i.Util.applyTransform([0,0],y),k=i.Util.applyTransform([c,d],y),A=i.Util.normalizeRect([b[0],b[1],k[0],k[1]]),P=Math.round(A[2]-A[0])||1,F=Math.round(A[3]-A[1])||1,S=this.cachedCanvases.getCanvas("fillCanvas",P,F),C=S.context,w=Math.min(b[0],k[0]),x=Math.min(b[1],k[1]);C.translate(-w,-x),C.transform.apply(C,_toConsumableArray(y)),s||(s=(s=this._scaleImage(o.canvas,(0,r.getCurrentTransformInverse)(C))).img,t&&f&&t.set(a,s)),C.imageSmoothingEnabled=m((0,r.getCurrentTransform)(C),e.interpolate),u(C,s,0,0,s.width,s.height,0,0,c,d),C.globalCompositeOperation="source-in";var E=i.Util.transform((0,r.getCurrentTransformInverse)(C),[1,0,0,1,-w,-x]);return C.fillStyle=f?h.getPattern(l,this,E,n.PathType.FILL):h,C.fillRect(0,0,c,d),t&&!f&&(this.cachedCanvases.delete("fillCanvas"),t.set(a,S.canvas)),{canvas:S.canvas,offsetX:Math.round(w),offsetY:Math.round(x)}}},{key:"setLineWidth",value:function(e){e!==this.current.lineWidth&&(this._cachedScaleForStroking[0]=-1),this.current.lineWidth=e,this.ctx.lineWidth=e}},{key:"setLineCap",value:function(e){this.ctx.lineCap=b[e]}},{key:"setLineJoin",value:function(e){this.ctx.lineJoin=k[e]}},{key:"setMiterLimit",value:function(e){this.ctx.miterLimit=e}},{key:"setDash",value:function(e,t){var a=this.ctx;void 0!==a.setLineDash&&(a.setLineDash(e),a.lineDashOffset=t)}},{key:"setRenderingIntent",value:function(e){}},{key:"setFlatness",value:function(e){}},{key:"setGState",value:function(e){var t,a=_createForOfIteratorHelper(e);try{for(a.s();!(t=a.n()).done;){var i=_slicedToArray(t.value,2),r=i[0],n=i[1];switch(r){case"LW":this.setLineWidth(n);break;case"LC":this.setLineCap(n);break;case"LJ":this.setLineJoin(n);break;case"ML":this.setMiterLimit(n);break;case"D":this.setDash(n[0],n[1]);break;case"RI":this.setRenderingIntent(n);break;case"FL":this.setFlatness(n);break;case"Font":this.setFont(n[0],n[1]);break;case"CA":this.current.strokeAlpha=n;break;case"ca":this.current.fillAlpha=n,this.ctx.globalAlpha=n;break;case"BM":this.ctx.globalCompositeOperation=n;break;case"SMask":this.current.activeSMask=n?this.tempSMask:null,this.tempSMask=null,this.checkSMaskState();break;case"TR":this.ctx.filter=this.current.transferMaps=this.filterFactory.addFilter(n)}}}catch(e){a.e(e)}finally{a.f()}}},{key:"inSMaskMode",get:function(){return!!this.suspendedCtx}},{key:"checkSMaskState",value:function(){var e=this.inSMaskMode;this.current.activeSMask&&!e?this.beginSMaskMode():!this.current.activeSMask&&e&&this.endSMaskMode()}},{key:"beginSMaskMode",value:function(){if(this.inSMaskMode)throw new Error("beginSMaskMode called while already in smask mode");var e=this.ctx.canvas.width,t=this.ctx.canvas.height,a="smaskGroupAt"+this.groupLevel,i=this.cachedCanvases.getCanvas(a,e,t);this.suspendedCtx=this.ctx,this.ctx=i.context;var n=this.ctx;n.setTransform.apply(n,_toConsumableArray((0,r.getCurrentTransform)(this.suspendedCtx))),f(this.suspendedCtx,n),function(e,t){if(e._removeMirroring)throw new Error("Context is already forwarding operations.");e.__originalSave=e.save,e.__originalRestore=e.restore,e.__originalRotate=e.rotate,e.__originalScale=e.scale,e.__originalTranslate=e.translate,e.__originalTransform=e.transform,e.__originalSetTransform=e.setTransform,e.__originalResetTransform=e.resetTransform,e.__originalClip=e.clip,e.__originalMoveTo=e.moveTo,e.__originalLineTo=e.lineTo,e.__originalBezierCurveTo=e.bezierCurveTo,e.__originalRect=e.rect,e.__originalClosePath=e.closePath,e.__originalBeginPath=e.beginPath,e._removeMirroring=function(){e.save=e.__originalSave,e.restore=e.__originalRestore,e.rotate=e.__originalRotate,e.scale=e.__originalScale,e.translate=e.__originalTranslate,e.transform=e.__originalTransform,e.setTransform=e.__originalSetTransform,e.resetTransform=e.__originalResetTransform,e.clip=e.__originalClip,e.moveTo=e.__originalMoveTo,e.lineTo=e.__originalLineTo,e.bezierCurveTo=e.__originalBezierCurveTo,e.rect=e.__originalRect,e.closePath=e.__originalClosePath,e.beginPath=e.__originalBeginPath,delete e._removeMirroring},e.save=function(){t.save(),this.__originalSave()},e.restore=function(){t.restore(),this.__originalRestore()},e.translate=function(e,a){t.translate(e,a),this.__originalTranslate(e,a)},e.scale=function(e,a){t.scale(e,a),this.__originalScale(e,a)},e.transform=function(e,a,i,r,n,s){t.transform(e,a,i,r,n,s),this.__originalTransform(e,a,i,r,n,s)},e.setTransform=function(e,a,i,r,n,s){t.setTransform(e,a,i,r,n,s),this.__originalSetTransform(e,a,i,r,n,s)},e.resetTransform=function(){t.resetTransform(),this.__originalResetTransform()},e.rotate=function(e){t.rotate(e),this.__originalRotate(e)},e.clip=function(e){t.clip(e),this.__originalClip(e)},e.moveTo=function(e,a){t.moveTo(e,a),this.__originalMoveTo(e,a)},e.lineTo=function(e,a){t.lineTo(e,a),this.__originalLineTo(e,a)},e.bezierCurveTo=function(e,a,i,r,n,s){t.bezierCurveTo(e,a,i,r,n,s),this.__originalBezierCurveTo(e,a,i,r,n,s)},e.rect=function(e,a,i,r){t.rect(e,a,i,r),this.__originalRect(e,a,i,r)},e.closePath=function(){t.closePath(),this.__originalClosePath()},e.beginPath=function(){t.beginPath(),this.__originalBeginPath()}}(n,this.suspendedCtx),this.setGState([["BM","source-over"],["ca",1],["CA",1]])}},{key:"endSMaskMode",value:function(){if(!this.inSMaskMode)throw new Error("endSMaskMode called while not in smask mode");this.ctx._removeMirroring(),f(this.ctx,this.suspendedCtx),this.ctx=this.suspendedCtx,this.suspendedCtx=null}},{key:"compose",value:function(e){if(this.current.activeSMask){e?(e[0]=Math.floor(e[0]),e[1]=Math.floor(e[1]),e[2]=Math.ceil(e[2]),e[3]=Math.ceil(e[3])):e=[0,0,this.ctx.canvas.width,this.ctx.canvas.height];var t=this.current.activeSMask;(function(e,t,a,i){var r=i[0],n=i[1],s=i[2]-r,o=i[3]-n;0!==s&&0!==o&&(function(e,t,a,i,r,n,s,o,l,c,u){for(var d=!!n,h=d?n[0]:0,v=d?n[1]:0,f=d?n[2]:0,p="Luminosity"===r?y:g,m=Math.min(i,Math.ceil(1048576/a)),b=0;b<i;b+=m){var k=Math.min(m,i-b),A=e.getImageData(o-c,b+(l-u),a,k),P=t.getImageData(o,b+l,a,k);d&&_(A.data,h,v,f),p(A.data,P.data,s),t.putImageData(P,o,b+l)}}(t.context,a,s,o,t.subtype,t.backdrop,t.transferMap,r,n,t.offsetX,t.offsetY),e.save(),e.globalAlpha=1,e.globalCompositeOperation="source-over",e.setTransform(1,0,0,1,0,0),e.drawImage(a.canvas,0,0),e.restore())})(this.suspendedCtx,t,this.ctx,e),this.ctx.save(),this.ctx.setTransform(1,0,0,1,0,0),this.ctx.clearRect(0,0,this.ctx.canvas.width,this.ctx.canvas.height),this.ctx.restore()}}},{key:"save",value:function(){this.inSMaskMode?(f(this.ctx,this.suspendedCtx),this.suspendedCtx.save()):this.ctx.save();var e=this.current;this.stateStack.push(e),this.current=e.clone()}},{key:"restore",value:function(){0===this.stateStack.length&&this.inSMaskMode&&this.endSMaskMode(),0!==this.stateStack.length&&(this.current=this.stateStack.pop(),this.inSMaskMode?(this.suspendedCtx.restore(),f(this.suspendedCtx,this.ctx)):this.ctx.restore(),this.checkSMaskState(),this.pendingClip=null,this._cachedScaleForStroking[0]=-1,this._cachedGetSinglePixelWidth=null)}},{key:"transform",value:function(e,t,a,i,r,n){this.ctx.transform(e,t,a,i,r,n),this._cachedScaleForStroking[0]=-1,this._cachedGetSinglePixelWidth=null}},{key:"constructPath",value:function(e,t,a){for(var n,s,o=this.ctx,l=this.current,c=l.x,u=l.y,d=(0,r.getCurrentTransform)(o),h=0===d[0]&&0===d[3]||0===d[1]&&0===d[2],v=h?a.slice(0):null,f=0,p=0,_=e.length;f<_;f++)switch(0|e[f]){case i.OPS.rectangle:c=t[p++],u=t[p++];var g=t[p++],y=t[p++],m=c+g,b=u+y;o.moveTo(c,u),0===g||0===y?o.lineTo(m,b):(o.lineTo(m,u),o.lineTo(m,b),o.lineTo(c,b)),h||l.updateRectMinMax(d,[c,u,m,b]),o.closePath();break;case i.OPS.moveTo:c=t[p++],u=t[p++],o.moveTo(c,u),h||l.updatePathMinMax(d,c,u);break;case i.OPS.lineTo:c=t[p++],u=t[p++],o.lineTo(c,u),h||l.updatePathMinMax(d,c,u);break;case i.OPS.curveTo:n=c,s=u,c=t[p+4],u=t[p+5],o.bezierCurveTo(t[p],t[p+1],t[p+2],t[p+3],c,u),l.updateCurvePathMinMax(d,n,s,t[p],t[p+1],t[p+2],t[p+3],c,u,v),p+=6;break;case i.OPS.curveTo2:n=c,s=u,o.bezierCurveTo(c,u,t[p],t[p+1],t[p+2],t[p+3]),l.updateCurvePathMinMax(d,n,s,c,u,t[p],t[p+1],t[p+2],t[p+3],v),c=t[p+2],u=t[p+3],p+=4;break;case i.OPS.curveTo3:n=c,s=u,c=t[p+2],u=t[p+3],o.bezierCurveTo(t[p],t[p+1],c,u,c,u),l.updateCurvePathMinMax(d,n,s,t[p],t[p+1],c,u,c,u,v),p+=4;break;case i.OPS.closePath:o.closePath()}h&&l.updateScalingPathMinMax(d,v),l.setCurrentPoint(c,u)}},{key:"closePath",value:function(){this.ctx.closePath()}},{key:"stroke",value:function(){var e=!(arguments.length>0&&void 0!==arguments[0])||arguments[0],t=this.ctx,a=this.current.strokeColor;t.globalAlpha=this.current.strokeAlpha,this.contentVisible&&("object"===_typeof(a)&&null!=a&&a.getPattern?(t.save(),t.strokeStyle=a.getPattern(t,this,(0,r.getCurrentTransformInverse)(t),n.PathType.STROKE),this.rescaleAndStroke(!1),t.restore()):this.rescaleAndStroke(!0)),e&&this.consumePath(this.current.getClippedPathBoundingBox()),t.globalAlpha=this.current.fillAlpha}},{key:"closeStroke",value:function(){this.closePath(),this.stroke()}},{key:"fill",value:function(){var e=!(arguments.length>0&&void 0!==arguments[0])||arguments[0],t=this.ctx,a=this.current.fillColor,i=!1;this.current.patternFill&&(t.save(),t.fillStyle=a.getPattern(t,this,(0,r.getCurrentTransformInverse)(t),n.PathType.FILL),i=!0);var s=this.current.getClippedPathBoundingBox();this.contentVisible&&null!==s&&(this.pendingEOFill?(t.fill("evenodd"),this.pendingEOFill=!1):t.fill()),i&&t.restore(),e&&this.consumePath(s)}},{key:"eoFill",value:function(){this.pendingEOFill=!0,this.fill()}},{key:"fillStroke",value:function(){this.fill(!1),this.stroke(!1),this.consumePath()}},{key:"eoFillStroke",value:function(){this.pendingEOFill=!0,this.fillStroke()}},{key:"closeFillStroke",value:function(){this.closePath(),this.fillStroke()}},{key:"closeEOFillStroke",value:function(){this.pendingEOFill=!0,this.closePath(),this.fillStroke()}},{key:"endPath",value:function(){this.consumePath()}},{key:"clip",value:function(){this.pendingClip=A}},{key:"eoClip",value:function(){this.pendingClip=P}},{key:"beginText",value:function(){this.current.textMatrix=i.IDENTITY_MATRIX,this.current.textMatrixScale=1,this.current.x=this.current.lineX=0,this.current.y=this.current.lineY=0}},{key:"endText",value:function(){var e=this.pendingTextPaths,t=this.ctx;if(void 0!==e){t.save(),t.beginPath();var a,i=_createForOfIteratorHelper(e);try{for(i.s();!(a=i.n()).done;){var r=a.value;t.setTransform.apply(t,_toConsumableArray(r.transform)),t.translate(r.x,r.y),r.addToPath(t,r.fontSize)}}catch(e){i.e(e)}finally{i.f()}t.restore(),t.clip(),t.beginPath(),delete this.pendingTextPaths}else t.beginPath()}},{key:"setCharSpacing",value:function(e){this.current.charSpacing=e}},{key:"setWordSpacing",value:function(e){this.current.wordSpacing=e}},{key:"setHScale",value:function(e){this.current.textHScale=e/100}},{key:"setLeading",value:function(e){this.current.leading=-e}},{key:"setFont",value:function(e,t){var a,r=this.commonObjs.get(e),n=this.current;if(!r)throw new Error("Can't find font for ".concat(e));if(n.fontMatrix=r.fontMatrix||i.FONT_IDENTITY_MATRIX,0!==n.fontMatrix[0]&&0!==n.fontMatrix[3]||(0,i.warn)("Invalid font matrix for font "+e),t<0?(t=-t,n.fontDirection=-1):n.fontDirection=1,this.current.font=r,this.current.fontSize=t,!r.isType3Font){var s=r.loadedName||"sans-serif",o=(null===(a=r.systemFontInfo)||void 0===a?void 0:a.css)||'"'.concat(s,'", ').concat(r.fallbackName),l="normal";r.black?l="900":r.bold&&(l="bold");var c=r.italic?"italic":"normal",u=t;t<16?u=16:t>100&&(u=100),this.current.fontSizeScale=t/u,this.ctx.font="".concat(c," ").concat(l," ").concat(u,"px ").concat(o)}}},{key:"setTextRenderingMode",value:function(e){this.current.textRenderingMode=e}},{key:"setTextRise",value:function(e){this.current.textRise=e}},{key:"moveText",value:function(e,t){this.current.x=this.current.lineX+=e,this.current.y=this.current.lineY+=t}},{key:"setLeadingMoveText",value:function(e,t){this.setLeading(-t),this.moveText(e,t)}},{key:"setTextMatrix",value:function(e,t,a,i,r,n){this.current.textMatrix=[e,t,a,i,r,n],this.current.textMatrixScale=Math.hypot(e,t),this.current.x=this.current.lineX=0,this.current.y=this.current.lineY=0}},{key:"nextLine",value:function(){this.moveText(0,this.current.leading)}},{key:"paintChar",value:function(e,t,a,n){var s,o=this.ctx,l=this.current,c=l.font,u=l.textRenderingMode,d=l.fontSize/l.fontSizeScale,h=u&i.TextRenderingMode.FILL_STROKE_MASK,v=!!(u&i.TextRenderingMode.ADD_TO_PATH_FLAG),f=l.patternFill&&!c.missingFile;(c.disableFontFace||v||f)&&(s=c.getPathGenerator(this.commonObjs,e)),c.disableFontFace||f?(o.save(),o.translate(t,a),o.beginPath(),s(o,d),n&&o.setTransform.apply(o,_toConsumableArray(n)),h!==i.TextRenderingMode.FILL&&h!==i.TextRenderingMode.FILL_STROKE||o.fill(),h!==i.TextRenderingMode.STROKE&&h!==i.TextRenderingMode.FILL_STROKE||o.stroke(),o.restore()):(h!==i.TextRenderingMode.FILL&&h!==i.TextRenderingMode.FILL_STROKE||o.fillText(e,t,a),h!==i.TextRenderingMode.STROKE&&h!==i.TextRenderingMode.FILL_STROKE||o.strokeText(e,t,a)),v&&(this.pendingTextPaths||(this.pendingTextPaths=[])).push({transform:(0,r.getCurrentTransform)(o),x:t,y:a,fontSize:d,addToPath:s})}},{key:"isFontSubpixelAAEnabled",get:function(){var e=this.cachedCanvases.getCanvas("isFontSubpixelAAEnabled",10,10).context;e.scale(1.5,1),e.fillText("I",0,10);for(var t=e.getImageData(0,0,10,10).data,a=!1,r=3;r<t.length;r+=4)if(t[r]>0&&t[r]<255){a=!0;break}return(0,i.shadow)(this,"isFontSubpixelAAEnabled",a)}},{key:"showText",value:function(e){var t=this.current,a=t.font;if(a.isType3Font)return this.showType3Text(e);var s=t.fontSize;if(0!==s){var o,l=this.ctx,c=t.fontSizeScale,u=t.charSpacing,d=t.wordSpacing,h=t.fontDirection,v=t.textHScale*h,f=e.length,p=a.vertical,_=p?1:-1,g=a.defaultVMetrics,y=s*t.fontMatrix[0],m=t.textRenderingMode===i.TextRenderingMode.FILL&&!a.disableFontFace&&!t.patternFill;if(l.save(),l.transform.apply(l,_toConsumableArray(t.textMatrix)),l.translate(t.x,t.y+t.textRise),h>0?l.scale(v,-1):l.scale(v,1),t.patternFill){l.save();var b=t.fillColor.getPattern(l,this,(0,r.getCurrentTransformInverse)(l),n.PathType.FILL);o=(0,r.getCurrentTransform)(l),l.restore(),l.fillStyle=b}var k=t.lineWidth,A=t.textMatrixScale;if(0===A||0===k){var P=t.textRenderingMode&i.TextRenderingMode.FILL_STROKE_MASK;P!==i.TextRenderingMode.STROKE&&P!==i.TextRenderingMode.FILL_STROKE||(k=this.getSinglePixelWidth())}else k/=A;if(1!==c&&(l.scale(c,c),k/=c),l.lineWidth=k,a.isInvalidPDFjsFont){var F,S=[],C=0,w=_createForOfIteratorHelper(e);try{for(w.s();!(F=w.n()).done;){var x=F.value;S.push(x.unicode),C+=x.width}}catch(e){w.e(e)}finally{w.f()}return l.fillText(S.join(""),0,0),t.x+=C*y*v,l.restore(),void this.compose()}var E,T=0;for(E=0;E<f;++E){var M=e[E];if("number"!=typeof M){var I=!1,R=(M.isSpace?d:0)+u,D=M.fontChar,O=M.accent,G=void 0,L=void 0,B=M.width;if(p){var N=M.vmetric||g,W=-(M.vmetric?N[1]:.5*B)*y,j=N[2]*y;B=N?-N[0]:B,G=W/c,L=(T+j)/c}else G=T/c,L=0;if(a.remeasure&&B>0){var H=1e3*l.measureText(D).width/s*c;if(B<H&&this.isFontSubpixelAAEnabled){var U=B/H;I=!0,l.save(),l.scale(U,1),G/=U}else B!==H&&(G+=(B-H)/2e3*s/c)}if(this.contentVisible&&(M.isInFont||a.missingFile))if(m&&!O)l.fillText(D,G,L);else if(this.paintChar(D,G,L,o),O){var q=G+s*O.offset.x/c,z=L-s*O.offset.y/c;this.paintChar(O.fontChar,q,z,o)}T+=p?B*y-R*h:B*y+R*h,I&&l.restore()}else T+=_*M*s/1e3}p?t.y-=T:t.x+=T*v,l.restore(),this.compose()}}},{key:"showType3Text",value:function(e){var t,a,r,n,s=this.ctx,o=this.current,l=o.font,c=o.fontSize,u=o.fontDirection,d=l.vertical?1:-1,h=o.charSpacing,v=o.wordSpacing,f=o.textHScale*u,p=o.fontMatrix||i.FONT_IDENTITY_MATRIX,_=e.length;if(o.textRenderingMode!==i.TextRenderingMode.INVISIBLE&&0!==c){for(this._cachedScaleForStroking[0]=-1,this._cachedGetSinglePixelWidth=null,s.save(),s.transform.apply(s,_toConsumableArray(o.textMatrix)),s.translate(o.x,o.y),s.scale(f,u),t=0;t<_;++t)if("number"!=typeof(a=e[t])){var g=(a.isSpace?v:0)+h,y=l.charProcOperatorList[a.operatorListId];y?(this.contentVisible&&(this.processingType3=a,this.save(),s.scale(c,c),s.transform.apply(s,_toConsumableArray(p)),this.executeOperatorList(y),this.restore()),r=i.Util.applyTransform([a.width,0],p)[0]*c+g,s.translate(r,0),o.x+=r*f):(0,i.warn)('Type3 character "'.concat(a.operatorListId,'" is not available.'))}else n=d*a*c/1e3,this.ctx.translate(n,0),o.x+=n*f;s.restore(),this.processingType3=null}}},{key:"setCharWidth",value:function(e,t){}},{key:"setCharWidthAndBounds",value:function(e,t,a,i,r,n){this.ctx.rect(a,i,r-a,n-i),this.ctx.clip(),this.endPath()}},{key:"getColorN_Pattern",value:function(t){var a,i=this;if("TilingPattern"===t[0]){var s=t[1],o=this.baseTransform||(0,r.getCurrentTransform)(this.ctx),l={createCanvasGraphics:function(t){return new e(t,i.commonObjs,i.objs,i.canvasFactory,i.filterFactory,{optionalContentConfig:i.optionalContentConfig,markedContentStack:i.markedContentStack})}};a=new n.TilingPattern(t,s,this.ctx,l,o)}else a=this._getPattern(t[1],t[2]);return a}},{key:"setStrokeColorN",value:function(){this.current.strokeColor=this.getColorN_Pattern(arguments)}},{key:"setFillColorN",value:function(){this.current.fillColor=this.getColorN_Pattern(arguments),this.current.patternFill=!0}},{key:"setStrokeRGBColor",value:function(e,t,a){var r=i.Util.makeHexColor(e,t,a);this.ctx.strokeStyle=r,this.current.strokeColor=r}},{key:"setFillRGBColor",value:function(e,t,a){var r=i.Util.makeHexColor(e,t,a);this.ctx.fillStyle=r,this.current.fillColor=r,this.current.patternFill=!1}},{key:"_getPattern",value:function(e){var t,a=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null;return this.cachedPatterns.has(e)?t=this.cachedPatterns.get(e):(t=(0,n.getShadingPattern)(this.getObject(e)),this.cachedPatterns.set(e,t)),a&&(t.matrix=a),t}},{key:"shadingFill",value:function(e){if(this.contentVisible){var t=this.ctx;this.save();var a=this._getPattern(e);t.fillStyle=a.getPattern(t,this,(0,r.getCurrentTransformInverse)(t),n.PathType.SHADING);var s=(0,r.getCurrentTransformInverse)(t);if(s){var o=t.canvas,l=o.width,c=o.height,u=_slicedToArray(i.Util.getAxialAlignedBoundingBox([0,0,l,c],s),4),d=u[0],h=u[1],v=u[2],f=u[3];this.ctx.fillRect(d,h,v-d,f-h)}else this.ctx.fillRect(-1e10,-1e10,2e10,2e10);this.compose(this.current.getClippedPathBoundingBox()),this.restore()}}},{key:"beginInlineImage",value:function(){(0,i.unreachable)("Should not call beginInlineImage")}},{key:"beginImageData",value:function(){(0,i.unreachable)("Should not call beginImageData")}},{key:"paintFormXObjectBegin",value:function(e,t){if(this.contentVisible&&(this.save(),this.baseTransformStack.push(this.baseTransform),Array.isArray(e)&&6===e.length&&this.transform.apply(this,_toConsumableArray(e)),this.baseTransform=(0,r.getCurrentTransform)(this.ctx),t)){var a=t[2]-t[0],i=t[3]-t[1];this.ctx.rect(t[0],t[1],a,i),this.current.updateRectMinMax((0,r.getCurrentTransform)(this.ctx),t),this.clip(),this.endPath()}}},{key:"paintFormXObjectEnd",value:function(){this.contentVisible&&(this.restore(),this.baseTransform=this.baseTransformStack.pop())}},{key:"beginGroup",value:function(e){if(this.contentVisible){this.save(),this.inSMaskMode&&(this.endSMaskMode(),this.current.activeSMask=null);var t=this.ctx;e.isolated||(0,i.info)("TODO: Support non-isolated groups."),e.knockout&&(0,i.warn)("Knockout groups not supported.");var a=(0,r.getCurrentTransform)(t);if(e.matrix&&t.transform.apply(t,_toConsumableArray(e.matrix)),!e.bbox)throw new Error("Bounding box is required.");var n=i.Util.getAxialAlignedBoundingBox(e.bbox,(0,r.getCurrentTransform)(t)),s=[0,0,t.canvas.width,t.canvas.height];n=i.Util.intersect(n,s)||[0,0,0,0];var l=Math.floor(n[0]),c=Math.floor(n[1]),u=Math.max(Math.ceil(n[2])-l,1),d=Math.max(Math.ceil(n[3])-c,1),h=1,v=1;u>o&&(h=u/o,u=o),d>o&&(v=d/o,d=o),this.current.startNewPathAndClipBox([0,0,u,d]);var p="groupAt"+this.groupLevel;e.smask&&(p+="_smask_"+this.smaskCounter++%2);var _=this.cachedCanvases.getCanvas(p,u,d),g=_.context;g.scale(1/h,1/v),g.translate(-l,-c),g.transform.apply(g,_toConsumableArray(a)),e.smask?this.smaskStack.push({canvas:_.canvas,context:g,offsetX:l,offsetY:c,scaleX:h,scaleY:v,subtype:e.smask.subtype,backdrop:e.smask.backdrop,transferMap:e.smask.transferMap||null,startTransformInverse:null}):(t.setTransform(1,0,0,1,0,0),t.translate(l,c),t.scale(h,v),t.save()),f(t,g),this.ctx=g,this.setGState([["BM","source-over"],["ca",1],["CA",1]]),this.groupStack.push(t),this.groupLevel++}}},{key:"endGroup",value:function(e){if(this.contentVisible){this.groupLevel--;var t=this.ctx,a=this.groupStack.pop();if(this.ctx=a,this.ctx.imageSmoothingEnabled=!1,e.smask)this.tempSMask=this.smaskStack.pop(),this.restore();else{var n;this.ctx.restore();var s=(0,r.getCurrentTransform)(this.ctx);this.restore(),this.ctx.save(),(n=this.ctx).setTransform.apply(n,_toConsumableArray(s));var o=i.Util.getAxialAlignedBoundingBox([0,0,t.canvas.width,t.canvas.height],s);this.ctx.drawImage(t.canvas,0,0),this.ctx.restore(),this.compose(o)}}}},{key:"beginAnnotation",value:function(e,t,a,n,s){var o;if(_assertClassBrand(F,this,C).call(this),p(this.ctx),this.ctx.save(),this.save(),this.baseTransform&&(o=this.ctx).setTransform.apply(o,_toConsumableArray(this.baseTransform)),Array.isArray(t)&&4===t.length){var l=t[2]-t[0],c=t[3]-t[1];if(s&&this.annotationCanvasMap){(a=a.slice())[4]-=t[0],a[5]-=t[1],(t=t.slice())[0]=t[1]=0,t[2]=l,t[3]=c;var u=_slicedToArray(i.Util.singularValueDecompose2dScale((0,r.getCurrentTransform)(this.ctx)),2),h=u[0],v=u[1],f=this.viewportScale,_=Math.ceil(l*this.outputScaleX*f),g=Math.ceil(c*this.outputScaleY*f);this.annotationCanvas=this.canvasFactory.create(_,g);var y=this.annotationCanvas,m=y.canvas,b=y.context;this.annotationCanvasMap.set(e,m),this.annotationCanvas.savedCtx=this.ctx,this.ctx=b,this.ctx.save(),this.ctx.setTransform(h,0,0,-v,0,c*v),p(this.ctx)}else p(this.ctx),this.ctx.rect(t[0],t[1],l,c),this.ctx.clip(),this.endPath()}this.current=new d(this.ctx.canvas.width,this.ctx.canvas.height),this.transform.apply(this,_toConsumableArray(a)),this.transform.apply(this,_toConsumableArray(n))}},{key:"endAnnotation",value:function(){this.annotationCanvas&&(this.ctx.restore(),_assertClassBrand(F,this,w).call(this),this.ctx=this.annotationCanvas.savedCtx,delete this.annotationCanvas.savedCtx,delete this.annotationCanvas)}},{key:"paintImageMaskXObject",value:function(e){if(this.contentVisible){var t=e.count;(e=this.getObject(e.data,e)).count=t;var a=this.ctx,i=this.processingType3;if(i&&(void 0===i.compiled&&(i.compiled=function(e){var t=e.width,a=e.height;if(t>1e3||a>1e3)return null;var i,r,n,s,o=new Uint8Array([0,2,4,0,1,0,5,4,8,10,0,8,0,2,1,0]),l=t+1,c=new Uint8Array(l*(a+1)),u=t+7&-8,d=new Uint8Array(u*a),h=0,v=_createForOfIteratorHelper(e.data);try{for(v.s();!(s=v.n()).done;)for(var f=s.value,p=128;p>0;)d[h++]=f&p?0:255,p>>=1}catch(e){v.e(e)}finally{v.f()}var _=0;for(0!==d[h=0]&&(c[0]=1,++_),r=1;r<t;r++)d[h]!==d[h+1]&&(c[r]=d[h]?2:1,++_),h++;for(0!==d[h]&&(c[r]=2,++_),i=1;i<a;i++){n=i*l,d[(h=i*u)-u]!==d[h]&&(c[n]=d[h]?1:8,++_);var g=(d[h]?4:0)+(d[h-u]?8:0);for(r=1;r<t;r++)o[g=(g>>2)+(d[h+1]?4:0)+(d[h-u+1]?8:0)]&&(c[n+r]=o[g],++_),h++;if(d[h-u]!==d[h]&&(c[n+r]=d[h]?2:4,++_),_>1e3)return null}for(n=i*l,0!==d[h=u*(a-1)]&&(c[n]=8,++_),r=1;r<t;r++)d[h]!==d[h+1]&&(c[n+r]=d[h]?4:8,++_),h++;if(0!==d[h]&&(c[n+r]=4,++_),_>1e3)return null;var y=new Int32Array([0,l,-1,0,-l,0,0,0,1]),m=new Path2D;for(i=0;_&&i<=a;i++){for(var b=i*l,k=b+t;b<k&&!c[b];)b++;if(b!==k){m.moveTo(b%l,i);var A=b,P=c[b];do{var F=y[P];do{b+=F}while(!c[b]);var S=c[b];5!==S&&10!==S?(P=S,c[b]=0):(P=S&51*P>>4,c[b]&=P>>2|P<<2),m.lineTo(b%l,b/l|0),c[b]||--_}while(A!==b);--i}}return d=null,c=null,function(e){e.save(),e.scale(1/t,-1/a),e.translate(0,-a),e.fill(m),e.beginPath(),e.restore()}}(e)),i.compiled))i.compiled(a);else{var r=this._createMaskCanvas(e),n=r.canvas;a.save(),a.setTransform(1,0,0,1,0,0),a.drawImage(n,r.offsetX,r.offsetY),a.restore(),this.compose()}}}},{key:"paintImageMaskXObjectRepeat",value:function(e,t){var a=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0,n=arguments.length>3&&void 0!==arguments[3]?arguments[3]:0,s=arguments.length>4?arguments[4]:void 0,o=arguments.length>5?arguments[5]:void 0;if(this.contentVisible){e=this.getObject(e.data,e);var l=this.ctx;l.save();var c=(0,r.getCurrentTransform)(l);l.transform(t,a,n,s,0,0);var u=this._createMaskCanvas(e);l.setTransform(1,0,0,1,u.offsetX-c[4],u.offsetY-c[5]);for(var d=0,h=o.length;d<h;d+=2){var v=i.Util.transform(c,[t,a,n,s,o[d],o[d+1]]),f=_slicedToArray(i.Util.applyTransform([0,0],v),2),p=f[0],_=f[1];l.drawImage(u.canvas,p,_)}l.restore(),this.compose()}}},{key:"paintImageMaskXObjectGroup",value:function(e){if(this.contentVisible){var t,a=this.ctx,i=this.current.fillColor,s=this.current.patternFill,o=_createForOfIteratorHelper(e);try{for(o.s();!(t=o.n()).done;){var l=t.value,c=l.data,d=l.width,h=l.height,f=l.transform,p=this.cachedCanvases.getCanvas("maskCanvas",d,h),_=p.context;_.save(),v(_,this.getObject(c,l)),_.globalCompositeOperation="source-in",_.fillStyle=s?i.getPattern(_,this,(0,r.getCurrentTransformInverse)(a),n.PathType.FILL):i,_.fillRect(0,0,d,h),_.restore(),a.save(),a.transform.apply(a,_toConsumableArray(f)),a.scale(1,-1),u(a,p.canvas,0,0,d,h,0,-1,1,1),a.restore()}}catch(e){o.e(e)}finally{o.f()}this.compose()}}},{key:"paintImageXObject",value:function(e){if(this.contentVisible){var t=this.getObject(e);t?this.paintInlineImageXObject(t):(0,i.warn)("Dependent image isn't ready yet")}}},{key:"paintImageXObjectRepeat",value:function(e,t,a,r){if(this.contentVisible){var n=this.getObject(e);if(n){for(var s=n.width,o=n.height,l=[],c=0,u=r.length;c<u;c+=2)l.push({transform:[t,0,0,a,r[c],r[c+1]],x:0,y:0,w:s,h:o});this.paintInlineImageXObjectGroup(n,l)}else(0,i.warn)("Dependent image isn't ready yet")}}},{key:"applyTransferMapsToCanvas",value:function(e){return"none"!==this.current.transferMaps&&(e.filter=this.current.transferMaps,e.drawImage(e.canvas,0,0),e.filter="none"),e.canvas}},{key:"applyTransferMapsToBitmap",value:function(e){if("none"===this.current.transferMaps)return e.bitmap;var t=e.bitmap,a=e.width,i=e.height,r=this.cachedCanvases.getCanvas("inlineImage",a,i),n=r.context;return n.filter=this.current.transferMaps,n.drawImage(t,0,0),n.filter="none",r.canvas}},{key:"paintInlineImageXObject",value:function(e){if(this.contentVisible){var t,a=e.width,n=e.height,s=this.ctx;if(this.save(),!i.isNodeJS){var o=s.filter;"none"!==o&&""!==o&&(s.filter="none")}if(s.scale(1/a,-1/n),e.bitmap)t=this.applyTransferMapsToBitmap(e);else if("function"==typeof HTMLElement&&e instanceof HTMLElement||!e.data)t=e;else{var l=this.cachedCanvases.getCanvas("inlineImage",a,n).context;h(l,e),t=this.applyTransferMapsToCanvas(l)}var c=this._scaleImage(t,(0,r.getCurrentTransformInverse)(s));s.imageSmoothingEnabled=m((0,r.getCurrentTransform)(s),e.interpolate),u(s,c.img,0,0,c.paintWidth,c.paintHeight,0,-n,a,n),this.compose(),this.restore()}}},{key:"paintInlineImageXObjectGroup",value:function(e,t){if(this.contentVisible){var a,i=this.ctx;if(e.bitmap)a=e.bitmap;else{var r=e.width,n=e.height,s=this.cachedCanvases.getCanvas("inlineImage",r,n).context;h(s,e),a=this.applyTransferMapsToCanvas(s)}var o,l=_createForOfIteratorHelper(t);try{for(l.s();!(o=l.n()).done;){var c=o.value;i.save(),i.transform.apply(i,_toConsumableArray(c.transform)),i.scale(1,-1),u(i,a,c.x,c.y,c.w,c.h,0,-1,1,1),i.restore()}}catch(e){l.e(e)}finally{l.f()}this.compose()}}},{key:"paintSolidColorImageMask",value:function(){this.contentVisible&&(this.ctx.fillRect(0,0,1,1),this.compose())}},{key:"markPoint",value:function(e){}},{key:"markPointProps",value:function(e,t){}},{key:"beginMarkedContent",value:function(e){this.markedContentStack.push({visible:!0})}},{key:"beginMarkedContentProps",value:function(e,t){"OC"===e?this.markedContentStack.push({visible:this.optionalContentConfig.isVisible(t)}):this.markedContentStack.push({visible:!0}),this.contentVisible=this.isContentVisible()}},{key:"endMarkedContent",value:function(){this.markedContentStack.pop(),this.contentVisible=this.isContentVisible()}},{key:"beginCompat",value:function(){}},{key:"endCompat",value:function(){}},{key:"consumePath",value:function(e){var t=this.current.isEmptyClip();this.pendingClip&&this.current.updateClipFromPath(),this.pendingClip||this.compose(e);var a=this.ctx;this.pendingClip&&(t||(this.pendingClip===P?a.clip("evenodd"):a.clip()),this.pendingClip=null),this.current.startNewPathAndClipBox(this.current.clipBox),a.beginPath()}},{key:"getSinglePixelWidth",value:function(){if(!this._cachedGetSinglePixelWidth){var e=(0,r.getCurrentTransform)(this.ctx);if(0===e[1]&&0===e[2])this._cachedGetSinglePixelWidth=1/Math.min(Math.abs(e[0]),Math.abs(e[3]));else{var t=Math.abs(e[0]*e[3]-e[2]*e[1]),a=Math.hypot(e[0],e[2]),i=Math.hypot(e[1],e[3]);this._cachedGetSinglePixelWidth=Math.max(a,i)/t}}return this._cachedGetSinglePixelWidth}},{key:"getScaleForStroking",value:function(){if(-1===this._cachedScaleForStroking[0]){var e,t,a=this.current.lineWidth,i=this.ctx.getTransform(),r=i.a,n=i.b,s=i.c,o=i.d;if(0===n&&0===s){var l=Math.abs(r),c=Math.abs(o);if(l===c)if(0===a)e=t=1/l;else{var u=l*a;e=t=u<1?1/u:1}else if(0===a)e=1/l,t=1/c;else{var d=l*a,h=c*a;e=d<1?1/d:1,t=h<1?1/h:1}}else{var v=Math.abs(r*o-n*s),f=Math.hypot(r,n),p=Math.hypot(s,o);if(0===a)e=p/v,t=f/v;else{var _=a*v;e=p>_?p/_:1,t=f>_?f/_:1}}this._cachedScaleForStroking[0]=e,this._cachedScaleForStroking[1]=t}return this._cachedScaleForStroking}},{key:"rescaleAndStroke",value:function(e){var t=this.ctx,a=this.current.lineWidth,i=_slicedToArray(this.getScaleForStroking(),2),r=i[0],n=i[1];if(t.lineWidth=a||1,1!==r||1!==n){var s=t.getLineDash();if(e&&t.save(),t.scale(r,n),s.length>0){var o=Math.max(r,n);t.setLineDash(s.map((function(e){return e/o}))),t.lineDashOffset/=o}t.stroke(),e&&t.restore()}else t.stroke()}},{key:"isContentVisible",value:function(){for(var e=this.markedContentStack.length-1;e>=0;e--)if(!this.markedContentStack[e].visible)return!1;return!0}}])}();function C(){for(;this.stateStack.length||this.inSMaskMode;)this.restore();this.ctx.restore(),this.transparentCanvas&&(this.ctx=this.compositeCtx,this.ctx.save(),this.ctx.setTransform(1,0,0,1,0,0),this.ctx.drawImage(this.transparentCanvas,0,0),this.ctx.restore(),this.transparentCanvas=null)}function w(){if(this.pageColors){var e=this.filterFactory.addHCMFilter(this.pageColors.foreground,this.pageColors.background);if("none"!==e){var t=this.ctx.filter;this.ctx.filter=e,this.ctx.drawImage(this.ctx.canvas,0,0),this.ctx.filter=t}}}for(var x in t.CanvasGraphics=S,i.OPS)void 0!==S.prototype[x]&&(S.prototype[i.OPS[x]]=S.prototype[x])},function(e,t,a){Object.defineProperty(t,"__esModule",{value:!0}),t.TilingPattern=t.PathType=void 0,t.getShadingPattern=function(e){switch(e[0]){case"RadialAxial":return new l(e);case"Mesh":return new d(e);case"Dummy":return new h}throw new Error("Unknown IR type: ".concat(e[0]))};var i=a(1),r=a(6),n={FILL:"Fill",STROKE:"Stroke",SHADING:"Shading"};function s(e,t){if(t){var a=t[2]-t[0],i=t[3]-t[1],r=new Path2D;r.rect(t[0],t[1],a,i),e.clip(r)}}t.PathType=n;var o=function(){return _createClass((function e(){_classCallCheck(this,e),this.constructor===e&&(0,i.unreachable)("Cannot initialize BaseShadingPattern.")}),[{key:"getPattern",value:function(){(0,i.unreachable)("Abstract method `getPattern` called.")}}])}(),l=function(e){function t(e){var a;return _classCallCheck(this,t),(a=_callSuper(this,t))._type=e[1],a._bbox=e[2],a._colorStops=e[3],a._p0=e[4],a._p1=e[5],a._r0=e[6],a._r1=e[7],a.matrix=null,a}return _inherits(t,e),_createClass(t,[{key:"_createGradient",value:function(e){var t;"axial"===this._type?t=e.createLinearGradient(this._p0[0],this._p0[1],this._p1[0],this._p1[1]):"radial"===this._type&&(t=e.createRadialGradient(this._p0[0],this._p0[1],this._r0,this._p1[0],this._p1[1],this._r1));var a,i=_createForOfIteratorHelper(this._colorStops);try{for(i.s();!(a=i.n()).done;){var r=a.value;t.addColorStop(r[0],r[1])}}catch(e){i.e(e)}finally{i.f()}return t}},{key:"getPattern",value:function(e,t,a,o){var l;if(o===n.STROKE||o===n.FILL){var c=t.current.getClippedPathBoundingBox(o,(0,r.getCurrentTransform)(e))||[0,0,0,0],u=Math.ceil(c[2]-c[0])||1,d=Math.ceil(c[3]-c[1])||1,h=t.cachedCanvases.getCanvas("pattern",u,d,!0),v=h.context;v.clearRect(0,0,v.canvas.width,v.canvas.height),v.beginPath(),v.rect(0,0,v.canvas.width,v.canvas.height),v.translate(-c[0],-c[1]),a=i.Util.transform(a,[1,0,0,1,c[0],c[1]]),v.transform.apply(v,_toConsumableArray(t.baseTransform)),this.matrix&&v.transform.apply(v,_toConsumableArray(this.matrix)),s(v,this._bbox),v.fillStyle=this._createGradient(v),v.fill(),l=e.createPattern(h.canvas,"no-repeat");var f=new DOMMatrix(a);l.setTransform(f)}else s(e,this._bbox),l=this._createGradient(e);return l}}])}(o);function c(e,t,a,i,r,n,s,o){var l,c=t.coords,u=t.colors,d=e.data,h=4*e.width;c[a+1]>c[i+1]&&(l=a,a=i,i=l,l=n,n=s,s=l),c[i+1]>c[r+1]&&(l=i,i=r,r=l,l=s,s=o,o=l),c[a+1]>c[i+1]&&(l=a,a=i,i=l,l=n,n=s,s=l);var v=(c[a]+t.offsetX)*t.scaleX,f=(c[a+1]+t.offsetY)*t.scaleY,p=(c[i]+t.offsetX)*t.scaleX,_=(c[i+1]+t.offsetY)*t.scaleY,g=(c[r]+t.offsetX)*t.scaleX,y=(c[r+1]+t.offsetY)*t.scaleY;if(!(f>=y))for(var m,b,k,A,P,F,S,C,w=u[n],x=u[n+1],E=u[n+2],T=u[s],M=u[s+1],I=u[s+2],R=u[o],D=u[o+1],O=u[o+2],G=Math.round(f),L=Math.round(y),B=G;B<=L;B++){if(B<_){var N=B<f?0:(f-B)/(f-_);m=v-(v-p)*N,b=w-(w-T)*N,k=x-(x-M)*N,A=E-(E-I)*N}else{var W;m=p-(p-g)*(W=B>y?1:_===y?0:(_-B)/(_-y)),b=T-(T-R)*W,k=M-(M-D)*W,A=I-(I-O)*W}var j=void 0;P=v-(v-g)*(j=B<f?0:B>y?1:(f-B)/(f-y)),F=w-(w-R)*j,S=x-(x-D)*j,C=E-(E-O)*j;for(var H=Math.round(Math.min(m,P)),U=Math.round(Math.max(m,P)),q=h*B+4*H,z=H;z<=U;z++)(j=(m-z)/(m-P))<0?j=0:j>1&&(j=1),d[q++]=b-(b-F)*j|0,d[q++]=k-(k-S)*j|0,d[q++]=A-(A-C)*j|0,d[q++]=255}}function u(e,t,a){var i,r,n=t.coords,s=t.colors;switch(t.type){case"lattice":var o=t.verticesPerRow,l=Math.floor(n.length/o)-1,u=o-1;for(i=0;i<l;i++)for(var d=i*o,h=0;h<u;h++,d++)c(e,a,n[d],n[d+1],n[d+o],s[d],s[d+1],s[d+o]),c(e,a,n[d+o+1],n[d+1],n[d+o],s[d+o+1],s[d+1],s[d+o]);break;case"triangles":for(i=0,r=n.length;i<r;i+=3)c(e,a,n[i],n[i+1],n[i+2],s[i],s[i+1],s[i+2]);break;default:throw new Error("illegal figure")}}var d=function(e){function t(e){var a;return _classCallCheck(this,t),(a=_callSuper(this,t))._coords=e[2],a._colors=e[3],a._figures=e[4],a._bounds=e[5],a._bbox=e[7],a._background=e[8],a.matrix=null,a}return _inherits(t,e),_createClass(t,[{key:"_createMeshCanvas",value:function(e,t,a){var i=Math.floor(this._bounds[0]),r=Math.floor(this._bounds[1]),n=Math.ceil(this._bounds[2])-i,s=Math.ceil(this._bounds[3])-r,o=Math.min(Math.ceil(Math.abs(n*e[0]*1.1)),3e3),l=Math.min(Math.ceil(Math.abs(s*e[1]*1.1)),3e3),c=n/o,d=s/l,h={coords:this._coords,colors:this._colors,offsetX:-i,offsetY:-r,scaleX:1/c,scaleY:1/d},v=o+4,f=l+4,p=a.getCanvas("mesh",v,f,!1),_=p.context,g=_.createImageData(o,l);if(t)for(var y=g.data,m=0,b=y.length;m<b;m+=4)y[m]=t[0],y[m+1]=t[1],y[m+2]=t[2],y[m+3]=255;var k,A=_createForOfIteratorHelper(this._figures);try{for(A.s();!(k=A.n()).done;)u(g,k.value,h)}catch(e){A.e(e)}finally{A.f()}return _.putImageData(g,2,2),{canvas:p.canvas,offsetX:i-2*c,offsetY:r-2*d,scaleX:c,scaleY:d}}},{key:"getPattern",value:function(e,t,a,o){var l;if(s(e,this._bbox),o===n.SHADING)l=i.Util.singularValueDecompose2dScale((0,r.getCurrentTransform)(e));else if(l=i.Util.singularValueDecompose2dScale(t.baseTransform),this.matrix){var c=i.Util.singularValueDecompose2dScale(this.matrix);l=[l[0]*c[0],l[1]*c[1]]}var u=this._createMeshCanvas(l,o===n.SHADING?null:this._background,t.cachedCanvases);return o!==n.SHADING&&(e.setTransform.apply(e,_toConsumableArray(t.baseTransform)),this.matrix&&e.transform.apply(e,_toConsumableArray(this.matrix))),e.translate(u.offsetX,u.offsetY),e.scale(u.scaleX,u.scaleY),e.createPattern(u.canvas,"no-repeat")}}])}(o),h=function(e){function t(){return _classCallCheck(this,t),_callSuper(this,t,arguments)}return _inherits(t,e),_createClass(t,[{key:"getPattern",value:function(){return"hotpink"}}])}(o),v=function(){function e(t,a,i,r,n){_classCallCheck(this,e),this.operatorList=t[2],this.matrix=t[3]||[1,0,0,1,0,0],this.bbox=t[4],this.xstep=t[5],this.ystep=t[6],this.paintType=t[7],this.tilingType=t[8],this.color=a,this.ctx=i,this.canvasGraphicsFactory=r,this.baseTransform=n}return _createClass(e,[{key:"createPatternCanvas",value:function(e){var t=this.operatorList,a=this.bbox,n=this.xstep,s=this.ystep,o=this.paintType,l=this.tilingType,c=this.color,u=this.canvasGraphicsFactory;(0,i.info)("TilingType: "+l);var d=a[0],h=a[1],v=a[2],f=a[3],p=i.Util.singularValueDecompose2dScale(this.matrix),_=i.Util.singularValueDecompose2dScale(this.baseTransform),g=[p[0]*_[0],p[1]*_[1]],y=this.getSizeAndScale(n,this.ctx.canvas.width,g[0]),m=this.getSizeAndScale(s,this.ctx.canvas.height,g[1]),b=e.cachedCanvases.getCanvas("pattern",y.size,m.size,!0),k=b.context,A=u.createCanvasGraphics(k);A.groupLevel=e.groupLevel,this.setFillAndStrokeStyleToContext(A,o,c);var P=d,F=h,S=v,C=f;return d<0&&(P=0,S+=Math.abs(d)),h<0&&(F=0,C+=Math.abs(h)),k.translate(-y.scale*P,-m.scale*F),A.transform(y.scale,0,0,m.scale,0,0),k.save(),this.clipBbox(A,P,F,S,C),A.baseTransform=(0,r.getCurrentTransform)(A.ctx),A.executeOperatorList(t),A.endDrawing(),{canvas:b.canvas,scaleX:y.scale,scaleY:m.scale,offsetX:P,offsetY:F}}},{key:"getSizeAndScale",value:function(t,a,i){t=Math.abs(t);var r=Math.max(e.MAX_PATTERN_SIZE,a),n=Math.ceil(t*i);return n>=r?n=r:i=n/t,{scale:i,size:n}}},{key:"clipBbox",value:function(e,t,a,i,n){var s=i-t,o=n-a;e.ctx.rect(t,a,s,o),e.current.updateRectMinMax((0,r.getCurrentTransform)(e.ctx),[t,a,i,n]),e.clip(),e.endPath()}},{key:"setFillAndStrokeStyleToContext",value:function(e,t,a){var r=e.ctx,n=e.current;switch(t){case 1:var s=this.ctx;r.fillStyle=s.fillStyle,r.strokeStyle=s.strokeStyle,n.fillColor=s.fillStyle,n.strokeColor=s.strokeStyle;break;case 2:var o=i.Util.makeHexColor(a[0],a[1],a[2]);r.fillStyle=o,r.strokeStyle=o,n.fillColor=o,n.strokeColor=o;break;default:throw new i.FormatError("Unsupported paint type: ".concat(t))}}},{key:"getPattern",value:function(e,t,a,r){var s=a;r!==n.SHADING&&(s=i.Util.transform(s,t.baseTransform),this.matrix&&(s=i.Util.transform(s,this.matrix)));var o=this.createPatternCanvas(t),l=new DOMMatrix(s);l=(l=l.translate(o.offsetX,o.offsetY)).scale(1/o.scaleX,1/o.scaleY);var c=e.createPattern(o.canvas,"repeat");return c.setTransform(l),c}}])}();_defineProperty(v,"MAX_PATTERN_SIZE",3e3),t.TilingPattern=v},function(e,t,a){Object.defineProperty(t,"__esModule",{value:!0}),t.convertBlackAndWhiteToRGBA=r,t.convertToRGBA=function(e){switch(e.kind){case i.ImageKind.GRAYSCALE_1BPP:return r(e);case i.ImageKind.RGB_24BPP:return function(e){var t=e.src,a=e.srcPos,r=void 0===a?0:a,n=e.dest,s=e.destPos,o=void 0===s?0:s,l=(e.width,e.height,0),c=t.length>>2,u=new Uint32Array(t.buffer,r,c);if(i.FeatureTest.isLittleEndian){for(;l<c-2;l+=3,o+=4){var d=u[l],h=u[l+1],v=u[l+2];n[o]=4278190080|d,n[o+1]=d>>>24|h<<8|4278190080,n[o+2]=h>>>16|v<<16|4278190080,n[o+3]=v>>>8|4278190080}for(var f=4*l,p=t.length;f<p;f+=3)n[o++]=t[f]|t[f+1]<<8|t[f+2]<<16|4278190080}else{for(;l<c-2;l+=3,o+=4){var _=u[l],g=u[l+1],y=u[l+2];n[o]=255|_,n[o+1]=_<<24|g>>>8|255,n[o+2]=g<<16|y>>>16|255,n[o+3]=y<<8|255}for(var m=4*l,b=t.length;m<b;m+=3)n[o++]=t[m]<<24|t[m+1]<<16|t[m+2]<<8|255}return{srcPos:r,destPos:o}}(e)}return null},t.grayToRGBA=function(e,t){if(i.FeatureTest.isLittleEndian)for(var a=0,r=e.length;a<r;a++)t[a]=65793*e[a]|4278190080;else for(var n=0,s=e.length;n<s;n++)t[n]=16843008*e[n]|255};var i=a(1);function r(e){var t=e.src,a=e.srcPos,r=void 0===a?0:a,n=e.dest,s=e.width,o=e.height,l=e.nonBlackColor,c=void 0===l?4294967295:l,u=e.inverseDecode,d=void 0!==u&&u,h=i.FeatureTest.isLittleEndian?4278190080:255,v=_slicedToArray(d?[c,h]:[h,c],2),f=v[0],p=v[1],_=s>>3,g=7&s,y=t.length;n=new Uint32Array(n.buffer);for(var m=0,b=0;b<o;b++){for(var k=r+_;r<k;r++){var A=r<y?t[r]:255;n[m++]=128&A?p:f,n[m++]=64&A?p:f,n[m++]=32&A?p:f,n[m++]=16&A?p:f,n[m++]=8&A?p:f,n[m++]=4&A?p:f,n[m++]=2&A?p:f,n[m++]=1&A?p:f}if(0!==g)for(var P=r<y?t[r++]:255,F=0;F<g;F++)n[m++]=P&1<<7-F?p:f}return{srcPos:r,destPos:m}}},function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.GlobalWorkerOptions=void 0;var a=Object.create(null);t.GlobalWorkerOptions=a,a.workerPort=null,a.workerSrc=""},function(e,t,a){Object.defineProperty(t,"__esModule",{value:!0}),t.MessageHandler=void 0;var i=a(1);function r(e){switch(e instanceof Error||"object"===_typeof(e)&&null!==e||(0,i.unreachable)('wrapReason: Expected "reason" to be a (possibly cloned) Error.'),e.name){case"AbortException":return new i.AbortException(e.message);case"MissingPDFException":return new i.MissingPDFException(e.message);case"PasswordException":return new i.PasswordException(e.message,e.code);case"UnexpectedResponseException":return new i.UnexpectedResponseException(e.message,e.status);case"UnknownErrorException":return new i.UnknownErrorException(e.message,e.details);default:return new i.UnknownErrorException(e.message,e.toString())}}var n=new WeakSet,s=function(){return _createClass((function e(t,a,i){var s=this;_classCallCheck(this,e),_classPrivateMethodInitSpec(this,n),this.sourceName=t,this.targetName=a,this.comObj=i,this.callbackId=1,this.streamId=1,this.streamSinks=Object.create(null),this.streamControllers=Object.create(null),this.callbackCapabilities=Object.create(null),this.actionHandler=Object.create(null),this._onComObjOnMessage=function(e){var t=e.data;if(t.targetName===s.sourceName)if(t.stream)_assertClassBrand(n,s,l).call(s,t);else if(t.callback){var a=t.callbackId,c=s.callbackCapabilities[a];if(!c)throw new Error("Cannot resolve callback ".concat(a));if(delete s.callbackCapabilities[a],1===t.callback)c.resolve(t.data);else{if(2!==t.callback)throw new Error("Unexpected callback case");c.reject(r(t.reason))}}else{var u=s.actionHandler[t.action];if(!u)throw new Error("Unknown action from worker: ".concat(t.action));if(t.callbackId){var d=s.sourceName,h=t.sourceName;new Promise((function(e){e(u(t.data))})).then((function(e){i.postMessage({sourceName:d,targetName:h,callback:1,callbackId:t.callbackId,data:e})}),(function(e){i.postMessage({sourceName:d,targetName:h,callback:2,callbackId:t.callbackId,reason:r(e)})}))}else t.streamId?_assertClassBrand(n,s,o).call(s,t):u(t.data)}},i.addEventListener("message",this._onComObjOnMessage)}),[{key:"on",value:function(e,t){var a=this.actionHandler;if(a[e])throw new Error('There is already an actionName called "'.concat(e,'"'));a[e]=t}},{key:"send",value:function(e,t,a){this.comObj.postMessage({sourceName:this.sourceName,targetName:this.targetName,action:e,data:t},a)}},{key:"sendWithPromise",value:function(e,t,a){var r=this.callbackId++,n=new i.PromiseCapability;this.callbackCapabilities[r]=n;try{this.comObj.postMessage({sourceName:this.sourceName,targetName:this.targetName,action:e,callbackId:r,data:t},a)}catch(e){n.reject(e)}return n.promise}},{key:"sendWithStream",value:function(e,t,a,n){var s=this,o=this.streamId++,l=this.sourceName,c=this.targetName,u=this.comObj;return new ReadableStream({start:function(a){var r=new i.PromiseCapability;return s.streamControllers[o]={controller:a,startCall:r,pullCall:null,cancelCall:null,isClosed:!1},u.postMessage({sourceName:l,targetName:c,action:e,streamId:o,data:t,desiredSize:a.desiredSize},n),r.promise},pull:function(e){var t=new i.PromiseCapability;return s.streamControllers[o].pullCall=t,u.postMessage({sourceName:l,targetName:c,stream:6,streamId:o,desiredSize:e.desiredSize}),t.promise},cancel:function(e){(0,i.assert)(e instanceof Error,"cancel must have a valid reason");var t=new i.PromiseCapability;return s.streamControllers[o].cancelCall=t,s.streamControllers[o].isClosed=!0,u.postMessage({sourceName:l,targetName:c,stream:1,streamId:o,reason:r(e)}),t.promise}},a)}},{key:"destroy",value:function(){this.comObj.removeEventListener("message",this._onComObjOnMessage)}}])}();function o(e){var t=e.streamId,a=this.sourceName,n=e.sourceName,s=this.comObj,o=this,l=this.actionHandler[e.action],c={enqueue:function(e){var r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:1,o=arguments.length>2?arguments[2]:void 0;if(!this.isCancelled){var l=this.desiredSize;this.desiredSize-=r,l>0&&this.desiredSize<=0&&(this.sinkCapability=new i.PromiseCapability,this.ready=this.sinkCapability.promise),s.postMessage({sourceName:a,targetName:n,stream:4,streamId:t,chunk:e},o)}},close:function(){this.isCancelled||(this.isCancelled=!0,s.postMessage({sourceName:a,targetName:n,stream:3,streamId:t}),delete o.streamSinks[t])},error:function(e){(0,i.assert)(e instanceof Error,"error must have a valid reason"),this.isCancelled||(this.isCancelled=!0,s.postMessage({sourceName:a,targetName:n,stream:5,streamId:t,reason:r(e)}))},sinkCapability:new i.PromiseCapability,onPull:null,onCancel:null,isCancelled:!1,desiredSize:e.desiredSize,ready:null};c.sinkCapability.resolve(),c.ready=c.sinkCapability.promise,this.streamSinks[t]=c,new Promise((function(t){t(l(e.data,c))})).then((function(){s.postMessage({sourceName:a,targetName:n,stream:8,streamId:t,success:!0})}),(function(e){s.postMessage({sourceName:a,targetName:n,stream:8,streamId:t,reason:r(e)})}))}function l(e){var t=e.streamId,a=this.sourceName,s=e.sourceName,o=this.comObj,l=this.streamControllers[t],u=this.streamSinks[t];switch(e.stream){case 8:e.success?l.startCall.resolve():l.startCall.reject(r(e.reason));break;case 7:e.success?l.pullCall.resolve():l.pullCall.reject(r(e.reason));break;case 6:if(!u){o.postMessage({sourceName:a,targetName:s,stream:7,streamId:t,success:!0});break}u.desiredSize<=0&&e.desiredSize>0&&u.sinkCapability.resolve(),u.desiredSize=e.desiredSize,new Promise((function(e){var t;e(null===(t=u.onPull)||void 0===t?void 0:t.call(u))})).then((function(){o.postMessage({sourceName:a,targetName:s,stream:7,streamId:t,success:!0})}),(function(e){o.postMessage({sourceName:a,targetName:s,stream:7,streamId:t,reason:r(e)})}));break;case 4:if((0,i.assert)(l,"enqueue should have stream controller"),l.isClosed)break;l.controller.enqueue(e.chunk);break;case 3:if((0,i.assert)(l,"close should have stream controller"),l.isClosed)break;l.isClosed=!0,l.controller.close(),_assertClassBrand(n,this,c).call(this,l,t);break;case 5:(0,i.assert)(l,"error should have stream controller"),l.controller.error(r(e.reason)),_assertClassBrand(n,this,c).call(this,l,t);break;case 2:e.success?l.cancelCall.resolve():l.cancelCall.reject(r(e.reason)),_assertClassBrand(n,this,c).call(this,l,t);break;case 1:if(!u)break;new Promise((function(t){var a;t(null===(a=u.onCancel)||void 0===a?void 0:a.call(u,r(e.reason)))})).then((function(){o.postMessage({sourceName:a,targetName:s,stream:2,streamId:t,success:!0})}),(function(e){o.postMessage({sourceName:a,targetName:s,stream:2,streamId:t,reason:r(e)})})),u.sinkCapability.reject(r(e.reason)),u.isCancelled=!0,delete this.streamSinks[t];break;default:throw new Error("Unexpected stream case")}}function c(e,t){return u.apply(this,arguments)}function u(){return(u=_asyncToGenerator(_regenerator().m((function e(t,a){var i,r,n;return _regenerator().w((function(e){for(;;)switch(e.n){case 0:return e.n=1,Promise.allSettled([null===(i=t.startCall)||void 0===i?void 0:i.promise,null===(r=t.pullCall)||void 0===r?void 0:r.promise,null===(n=t.cancelCall)||void 0===n?void 0:n.promise]);case 1:delete this.streamControllers[a];case 2:return e.a(2)}}),e,this)})))).apply(this,arguments)}t.MessageHandler=s},function(e,t,a){Object.defineProperty(t,"__esModule",{value:!0}),t.Metadata=void 0;var i=a(1),r=new WeakMap,n=new WeakMap,s=function(){return _createClass((function e(t){var a=t.parsedData,i=t.rawData;_classCallCheck(this,e),_classPrivateFieldInitSpec(this,r,void 0),_classPrivateFieldInitSpec(this,n,void 0),_classPrivateFieldSet(r,this,a),_classPrivateFieldSet(n,this,i)}),[{key:"getRaw",value:function(){return _classPrivateFieldGet(n,this)}},{key:"get",value:function(e){var t;return null!==(t=_classPrivateFieldGet(r,this).get(e))&&void 0!==t?t:null}},{key:"getAll",value:function(){return(0,i.objectFromMap)(_classPrivateFieldGet(r,this))}},{key:"has",value:function(e){return _classPrivateFieldGet(r,this).has(e)}}])}();t.Metadata=s},function(e,t,a){Object.defineProperty(t,"__esModule",{value:!0}),t.OptionalContentConfig=void 0;var i=a(1),r=a(8),n=Symbol("INTERNAL"),s=new WeakMap,o=function(){return _createClass((function e(t,a){_classCallCheck(this,e),_classPrivateFieldInitSpec(this,s,!0),this.name=t,this.intent=a}),[{key:"visible",get:function(){return _classPrivateFieldGet(s,this)}},{key:"_setVisible",value:function(e,t){e!==n&&(0,i.unreachable)("Internal method `_setVisible` called."),_classPrivateFieldSet(s,this,t)}}])}(),l=new WeakMap,c=new WeakMap,u=new WeakMap,d=new WeakMap,h=new WeakSet,v=function(){return _createClass((function e(t){if(_classCallCheck(this,e),_classPrivateMethodInitSpec(this,h),_classPrivateFieldInitSpec(this,l,null),_classPrivateFieldInitSpec(this,c,new Map),_classPrivateFieldInitSpec(this,u,null),_classPrivateFieldInitSpec(this,d,null),this.name=null,this.creator=null,null!==t){this.name=t.name,this.creator=t.creator,_classPrivateFieldSet(d,this,t.order);var a,i=_createForOfIteratorHelper(t.groups);try{for(i.s();!(a=i.n()).done;){var r=a.value;_classPrivateFieldGet(c,this).set(r.id,new o(r.name,r.intent))}}catch(e){i.e(e)}finally{i.f()}if("OFF"===t.baseState){var s,v=_createForOfIteratorHelper(_classPrivateFieldGet(c,this).values());try{for(v.s();!(s=v.n()).done;)s.value._setVisible(n,!1)}catch(e){v.e(e)}finally{v.f()}}var f,p=_createForOfIteratorHelper(t.on);try{for(p.s();!(f=p.n()).done;){var _=f.value;_classPrivateFieldGet(c,this).get(_)._setVisible(n,!0)}}catch(e){p.e(e)}finally{p.f()}var g,y=_createForOfIteratorHelper(t.off);try{for(y.s();!(g=y.n()).done;){var m=g.value;_classPrivateFieldGet(c,this).get(m)._setVisible(n,!1)}}catch(e){y.e(e)}finally{y.f()}_classPrivateFieldSet(u,this,this.getHash())}}),[{key:"isVisible",value:function(e){if(0===_classPrivateFieldGet(c,this).size)return!0;if(!e)return(0,i.warn)("Optional content group not defined."),!0;if("OCG"===e.type)return _classPrivateFieldGet(c,this).has(e.id)?_classPrivateFieldGet(c,this).get(e.id).visible:((0,i.warn)("Optional content group not found: ".concat(e.id)),!0);if("OCMD"===e.type){if(e.expression)return _assertClassBrand(h,this,f).call(this,e.expression);if(!e.policy||"AnyOn"===e.policy){var t,a=_createForOfIteratorHelper(e.ids);try{for(a.s();!(t=a.n()).done;){var r=t.value;if(!_classPrivateFieldGet(c,this).has(r))return(0,i.warn)("Optional content group not found: ".concat(r)),!0;if(_classPrivateFieldGet(c,this).get(r).visible)return!0}}catch(e){a.e(e)}finally{a.f()}return!1}if("AllOn"===e.policy){var n,s=_createForOfIteratorHelper(e.ids);try{for(s.s();!(n=s.n()).done;){var o=n.value;if(!_classPrivateFieldGet(c,this).has(o))return(0,i.warn)("Optional content group not found: ".concat(o)),!0;if(!_classPrivateFieldGet(c,this).get(o).visible)return!1}}catch(e){s.e(e)}finally{s.f()}return!0}if("AnyOff"===e.policy){var l,u=_createForOfIteratorHelper(e.ids);try{for(u.s();!(l=u.n()).done;){var d=l.value;if(!_classPrivateFieldGet(c,this).has(d))return(0,i.warn)("Optional content group not found: ".concat(d)),!0;if(!_classPrivateFieldGet(c,this).get(d).visible)return!0}}catch(e){u.e(e)}finally{u.f()}return!1}if("AllOff"===e.policy){var v,p=_createForOfIteratorHelper(e.ids);try{for(p.s();!(v=p.n()).done;){var _=v.value;if(!_classPrivateFieldGet(c,this).has(_))return(0,i.warn)("Optional content group not found: ".concat(_)),!0;if(_classPrivateFieldGet(c,this).get(_).visible)return!1}}catch(e){p.e(e)}finally{p.f()}return!0}return(0,i.warn)("Unknown optional content policy ".concat(e.policy,".")),!0}return(0,i.warn)("Unknown group type ".concat(e.type,".")),!0}},{key:"setVisibility",value:function(e){var t=!(arguments.length>1&&void 0!==arguments[1])||arguments[1];_classPrivateFieldGet(c,this).has(e)?(_classPrivateFieldGet(c,this).get(e)._setVisible(n,!!t),_classPrivateFieldSet(l,this,null)):(0,i.warn)("Optional content group not found: ".concat(e))}},{key:"hasInitialVisibility",get:function(){return null===_classPrivateFieldGet(u,this)||this.getHash()===_classPrivateFieldGet(u,this)}},{key:"getOrder",value:function(){return _classPrivateFieldGet(c,this).size?_classPrivateFieldGet(d,this)?_classPrivateFieldGet(d,this).slice():_toConsumableArray(_classPrivateFieldGet(c,this).keys()):null}},{key:"getGroups",value:function(){return _classPrivateFieldGet(c,this).size>0?(0,i.objectFromMap)(_classPrivateFieldGet(c,this)):null}},{key:"getGroup",value:function(e){return _classPrivateFieldGet(c,this).get(e)||null}},{key:"getHash",value:function(){if(null!==_classPrivateFieldGet(l,this))return _classPrivateFieldGet(l,this);var e,t=new r.MurmurHash3_64,a=_createForOfIteratorHelper(_classPrivateFieldGet(c,this));try{for(a.s();!(e=a.n()).done;){var i=_slicedToArray(e.value,2),n=i[0],s=i[1];t.update("".concat(n,":").concat(s.visible))}}catch(e){a.e(e)}finally{a.f()}return _classPrivateFieldSet(l,this,t.hexdigest())}}])}();function f(e){var t=e.length;if(t<2)return!0;for(var a=e[0],r=1;r<t;r++){var n=e[r],s=void 0;if(Array.isArray(n))s=_assertClassBrand(h,this,f).call(this,n);else{if(!_classPrivateFieldGet(c,this).has(n))return(0,i.warn)("Optional content group not found: ".concat(n)),!0;s=_classPrivateFieldGet(c,this).get(n).visible}switch(a){case"And":if(!s)return!1;break;case"Or":if(s)return!0;break;case"Not":return!s;default:return!0}}return"And"===a}t.OptionalContentConfig=v},function(e,t,a){Object.defineProperty(t,"__esModule",{value:!0}),t.PDFDataTransportStream=void 0;var i=a(1),r=a(6),n=function(){return _createClass((function e(t,a){var r=this,n=t.length,s=t.initialData,o=t.progressiveDone,l=void 0!==o&&o,c=t.contentDispositionFilename,u=void 0===c?null:c,d=t.disableRange,h=void 0!==d&&d,v=t.disableStream,f=void 0!==v&&v;if(_classCallCheck(this,e),(0,i.assert)(a,'PDFDataTransportStream - missing required "pdfDataRangeTransport" argument.'),this._queuedChunks=[],this._progressiveDone=l,this._contentDispositionFilename=u,(null==s?void 0:s.length)>0){var p=s instanceof Uint8Array&&s.byteLength===s.buffer.byteLength?s.buffer:new Uint8Array(s).buffer;this._queuedChunks.push(p)}this._pdfDataRangeTransport=a,this._isStreamingSupported=!f,this._isRangeSupported=!h,this._contentLength=n,this._fullRequestReader=null,this._rangeReaders=[],this._pdfDataRangeTransport.addRangeListener((function(e,t){r._onReceiveData({begin:e,chunk:t})})),this._pdfDataRangeTransport.addProgressListener((function(e,t){r._onProgress({loaded:e,total:t})})),this._pdfDataRangeTransport.addProgressiveReadListener((function(e){r._onReceiveData({chunk:e})})),this._pdfDataRangeTransport.addProgressiveDoneListener((function(){r._onProgressiveDone()})),this._pdfDataRangeTransport.transportReady()}),[{key:"_onReceiveData",value:function(e){var t=e.begin,a=e.chunk,r=a instanceof Uint8Array&&a.byteLength===a.buffer.byteLength?a.buffer:new Uint8Array(a).buffer;if(void 0===t)this._fullRequestReader?this._fullRequestReader._enqueue(r):this._queuedChunks.push(r);else{var n=this._rangeReaders.some((function(e){return e._begin===t&&(e._enqueue(r),!0)}));(0,i.assert)(n,"_onReceiveData - no `PDFDataTransportStreamRangeReader` instance found.")}}},{key:"_progressiveDataLength",get:function(){var e,t;return null!==(e=null===(t=this._fullRequestReader)||void 0===t?void 0:t._loaded)&&void 0!==e?e:0}},{key:"_onProgress",value:function(e){var t,a,i,r;void 0===e.total?null===(t=this._rangeReaders[0])||void 0===t||null===(a=t.onProgress)||void 0===a||a.call(t,{loaded:e.loaded}):null===(i=this._fullRequestReader)||void 0===i||null===(r=i.onProgress)||void 0===r||r.call(i,{loaded:e.loaded,total:e.total})}},{key:"_onProgressiveDone",value:function(){var e;null===(e=this._fullRequestReader)||void 0===e||e.progressiveDone(),this._progressiveDone=!0}},{key:"_removeRangeReader",value:function(e){var t=this._rangeReaders.indexOf(e);t>=0&&this._rangeReaders.splice(t,1)}},{key:"getFullReader",value:function(){(0,i.assert)(!this._fullRequestReader,"PDFDataTransportStream.getFullReader can only be called once.");var e=this._queuedChunks;return this._queuedChunks=null,new s(this,e,this._progressiveDone,this._contentDispositionFilename)}},{key:"getRangeReader",value:function(e,t){if(t<=this._progressiveDataLength)return null;var a=new o(this,e,t);return this._pdfDataRangeTransport.requestDataRange(e,t),this._rangeReaders.push(a),a}},{key:"cancelAllRequests",value:function(e){var t;null===(t=this._fullRequestReader)||void 0===t||t.cancel(e);var a,i=_createForOfIteratorHelper(this._rangeReaders.slice(0));try{for(i.s();!(a=i.n()).done;)a.value.cancel(e)}catch(e){i.e(e)}finally{i.f()}this._pdfDataRangeTransport.abort()}}])}();t.PDFDataTransportStream=n;var s=function(){return _createClass((function e(t,a){var i=arguments.length>2&&void 0!==arguments[2]&&arguments[2],n=arguments.length>3&&void 0!==arguments[3]?arguments[3]:null;_classCallCheck(this,e),this._stream=t,this._done=i||!1,this._filename=(0,r.isPdfFile)(n)?n:null,this._queuedChunks=a||[],this._loaded=0;var s,o=_createForOfIteratorHelper(this._queuedChunks);try{for(o.s();!(s=o.n()).done;){var l=s.value;this._loaded+=l.byteLength}}catch(e){o.e(e)}finally{o.f()}this._requests=[],this._headersReady=Promise.resolve(),t._fullRequestReader=this,this.onProgress=null}),[{key:"_enqueue",value:function(e){this._done||(this._requests.length>0?this._requests.shift().resolve({value:e,done:!1}):this._queuedChunks.push(e),this._loaded+=e.byteLength)}},{key:"headersReady",get:function(){return this._headersReady}},{key:"filename",get:function(){return this._filename}},{key:"isRangeSupported",get:function(){return this._stream._isRangeSupported}},{key:"isStreamingSupported",get:function(){return this._stream._isStreamingSupported}},{key:"contentLength",get:function(){return this._stream._contentLength}},{key:"read",value:(e=_asyncToGenerator(_regenerator().m((function e(){var t,a;return _regenerator().w((function(e){for(;;)switch(e.n){case 0:if(!(this._queuedChunks.length>0)){e.n=1;break}return t=this._queuedChunks.shift(),e.a(2,{value:t,done:!1});case 1:if(!this._done){e.n=2;break}return e.a(2,{value:void 0,done:!0});case 2:return a=new i.PromiseCapability,this._requests.push(a),e.a(2,a.promise)}}),e,this)}))),function(){return e.apply(this,arguments)})},{key:"cancel",value:function(e){this._done=!0;var t,a=_createForOfIteratorHelper(this._requests);try{for(a.s();!(t=a.n()).done;)t.value.resolve({value:void 0,done:!0})}catch(e){a.e(e)}finally{a.f()}this._requests.length=0}},{key:"progressiveDone",value:function(){this._done||(this._done=!0)}}]);var e}(),o=function(){return _createClass((function e(t,a,i){_classCallCheck(this,e),this._stream=t,this._begin=a,this._end=i,this._queuedChunk=null,this._requests=[],this._done=!1,this.onProgress=null}),[{key:"_enqueue",value:function(e){if(!this._done){if(0===this._requests.length)this._queuedChunk=e;else{this._requests.shift().resolve({value:e,done:!1});var t,a=_createForOfIteratorHelper(this._requests);try{for(a.s();!(t=a.n()).done;)t.value.resolve({value:void 0,done:!0})}catch(e){a.e(e)}finally{a.f()}this._requests.length=0}this._done=!0,this._stream._removeRangeReader(this)}}},{key:"isStreamingSupported",get:function(){return!1}},{key:"read",value:(e=_asyncToGenerator(_regenerator().m((function e(){var t,a;return _regenerator().w((function(e){for(;;)switch(e.n){case 0:if(!this._queuedChunk){e.n=1;break}return t=this._queuedChunk,this._queuedChunk=null,e.a(2,{value:t,done:!1});case 1:if(!this._done){e.n=2;break}return e.a(2,{value:void 0,done:!0});case 2:return a=new i.PromiseCapability,this._requests.push(a),e.a(2,a.promise)}}),e,this)}))),function(){return e.apply(this,arguments)})},{key:"cancel",value:function(e){this._done=!0;var t,a=_createForOfIteratorHelper(this._requests);try{for(a.s();!(t=a.n()).done;)t.value.resolve({value:void 0,done:!0})}catch(e){a.e(e)}finally{a.f()}this._requests.length=0,this._stream._removeRangeReader(this)}}]);var e}()},function(e,t,a){Object.defineProperty(t,"__esModule",{value:!0}),t.PDFFetchStream=void 0;var i=a(1),r=a(20);function n(e,t,a){return{method:"GET",headers:e,signal:a.signal,mode:"cors",credentials:t?"include":"same-origin",redirect:"follow"}}function s(e){var t=new Headers;for(var a in e){var i=e[a];void 0!==i&&t.append(a,i)}return t}function o(e){return e instanceof Uint8Array?e.buffer:e instanceof ArrayBuffer?e:((0,i.warn)("getArrayBuffer - unexpected data format: ".concat(e)),new Uint8Array(e).buffer)}var l=function(){return _createClass((function e(t){_classCallCheck(this,e),this.source=t,this.isHttp=/^https?:/i.test(t.url),this.httpHeaders=this.isHttp&&t.httpHeaders||{},this._fullRequestReader=null,this._rangeRequestReaders=[]}),[{key:"_progressiveDataLength",get:function(){var e,t;return null!==(e=null===(t=this._fullRequestReader)||void 0===t?void 0:t._loaded)&&void 0!==e?e:0}},{key:"getFullReader",value:function(){return(0,i.assert)(!this._fullRequestReader,"PDFFetchStream.getFullReader can only be called once."),this._fullRequestReader=new c(this),this._fullRequestReader}},{key:"getRangeReader",value:function(e,t){if(t<=this._progressiveDataLength)return null;var a=new u(this,e,t);return this._rangeRequestReaders.push(a),a}},{key:"cancelAllRequests",value:function(e){var t;null===(t=this._fullRequestReader)||void 0===t||t.cancel(e);var a,i=_createForOfIteratorHelper(this._rangeRequestReaders.slice(0));try{for(i.s();!(a=i.n()).done;)a.value.cancel(e)}catch(e){i.e(e)}finally{i.f()}}}])}();t.PDFFetchStream=l;var c=function(){return _createClass((function e(t){var a=this;_classCallCheck(this,e),this._stream=t,this._reader=null,this._loaded=0,this._filename=null;var o=t.source;this._withCredentials=o.withCredentials||!1,this._contentLength=o.length,this._headersCapability=new i.PromiseCapability,this._disableRange=o.disableRange||!1,this._rangeChunkSize=o.rangeChunkSize,this._rangeChunkSize||this._disableRange||(this._disableRange=!0),this._abortController=new AbortController,this._isStreamingSupported=!o.disableStream,this._isRangeSupported=!o.disableRange,this._headers=s(this._stream.httpHeaders);var l=o.url;fetch(l,n(this._headers,this._withCredentials,this._abortController)).then((function(e){if(!(0,r.validateResponseStatus)(e.status))throw(0,r.createResponseStatusError)(e.status,l);a._reader=e.body.getReader(),a._headersCapability.resolve();var t=function(t){return e.headers.get(t)},n=(0,r.validateRangeRequestCapabilities)({getResponseHeader:t,isHttp:a._stream.isHttp,rangeChunkSize:a._rangeChunkSize,disableRange:a._disableRange}),s=n.allowRangeRequests,o=n.suggestedLength;a._isRangeSupported=s,a._contentLength=o||a._contentLength,a._filename=(0,r.extractFilenameFromHeader)(t),!a._isStreamingSupported&&a._isRangeSupported&&a.cancel(new i.AbortException("Streaming is disabled."))})).catch(this._headersCapability.reject),this.onProgress=null}),[{key:"headersReady",get:function(){return this._headersCapability.promise}},{key:"filename",get:function(){return this._filename}},{key:"contentLength",get:function(){return this._contentLength}},{key:"isRangeSupported",get:function(){return this._isRangeSupported}},{key:"isStreamingSupported",get:function(){return this._isStreamingSupported}},{key:"read",value:(e=_asyncToGenerator(_regenerator().m((function e(){var t,a,i,r;return _regenerator().w((function(e){for(;;)switch(e.n){case 0:return e.n=1,this._headersCapability.promise;case 1:return e.n=2,this._reader.read();case 2:if(a=e.v,i=a.value,!(r=a.done)){e.n=3;break}return e.a(2,{value:i,done:r});case 3:return this._loaded+=i.byteLength,null===(t=this.onProgress)||void 0===t||t.call(this,{loaded:this._loaded,total:this._contentLength}),e.a(2,{value:o(i),done:!1})}}),e,this)}))),function(){return e.apply(this,arguments)})},{key:"cancel",value:function(e){var t;null===(t=this._reader)||void 0===t||t.cancel(e),this._abortController.abort()}}]);var e}(),u=function(){return _createClass((function e(t,a,o){var l=this;_classCallCheck(this,e),this._stream=t,this._reader=null,this._loaded=0;var c=t.source;this._withCredentials=c.withCredentials||!1,this._readCapability=new i.PromiseCapability,this._isStreamingSupported=!c.disableStream,this._abortController=new AbortController,this._headers=s(this._stream.httpHeaders),this._headers.append("Range","bytes=".concat(a,"-").concat(o-1));var u=c.url;fetch(u,n(this._headers,this._withCredentials,this._abortController)).then((function(e){if(!(0,r.validateResponseStatus)(e.status))throw(0,r.createResponseStatusError)(e.status,u);l._readCapability.resolve(),l._reader=e.body.getReader()})).catch(this._readCapability.reject),this.onProgress=null}),[{key:"isStreamingSupported",get:function(){return this._isStreamingSupported}},{key:"read",value:(e=_asyncToGenerator(_regenerator().m((function e(){var t,a,i,r;return _regenerator().w((function(e){for(;;)switch(e.n){case 0:return e.n=1,this._readCapability.promise;case 1:return e.n=2,this._reader.read();case 2:if(a=e.v,i=a.value,!(r=a.done)){e.n=3;break}return e.a(2,{value:i,done:r});case 3:return this._loaded+=i.byteLength,null===(t=this.onProgress)||void 0===t||t.call(this,{loaded:this._loaded}),e.a(2,{value:o(i),done:!1})}}),e,this)}))),function(){return e.apply(this,arguments)})},{key:"cancel",value:function(e){var t;null===(t=this._reader)||void 0===t||t.cancel(e),this._abortController.abort()}}]);var e}()},function(e,t,a){Object.defineProperty(t,"__esModule",{value:!0}),t.createResponseStatusError=function(e,t){return 404===e||0===e&&t.startsWith("file:")?new i.MissingPDFException('Missing PDF "'+t+'".'):new i.UnexpectedResponseException("Unexpected server response (".concat(e,') while retrieving PDF "').concat(t,'".'),e)},t.extractFilenameFromHeader=function(e){var t=e("Content-Disposition");if(t){var a=(0,r.getFilenameFromContentDispositionHeader)(t);if(a.includes("%"))try{a=decodeURIComponent(a)}catch(e){}if((0,n.isPdfFile)(a))return a}return null},t.validateRangeRequestCapabilities=function(e){var t=e.getResponseHeader,a=e.isHttp,i=e.rangeChunkSize,r=e.disableRange,n={allowRangeRequests:!1,suggestedLength:void 0},s=parseInt(t("Content-Length"),10);return Number.isInteger(s)?(n.suggestedLength=s,s<=2*i||r||!a||"bytes"!==t("Accept-Ranges")||"identity"!==(t("Content-Encoding")||"identity")||(n.allowRangeRequests=!0),n):n},t.validateResponseStatus=function(e){return 200===e||206===e};var i=a(1),r=a(21),n=a(6)},function(e,t,a){Object.defineProperty(t,"__esModule",{value:!0}),t.getFilenameFromContentDispositionHeader=function(e){var t=!0,a=s("filename\\*","i").exec(e);if(a){var r=c(a=a[1]);return l(r=d(r=u(r=unescape(r))))}if(a=function(e){for(var t,a=[],i=s("filename\\*((?!0\\d)\\d+)(\\*?)","ig");null!==(t=i.exec(e));){var r=_slicedToArray(t,4),n=r[1],o=r[2],l=r[3];if((n=parseInt(n,10))in a){if(0===n)break}else a[n]=[o,l]}for(var d=[],h=0;h<a.length&&h in a;++h){var v=_slicedToArray(a[h],2),f=v[0],p=v[1];p=c(p),f&&(p=unescape(p),0===h&&(p=u(p))),d.push(p)}return d.join("")}(e))return l(d(a));if(a=s("filename","i").exec(e)){var n=c(a=a[1]);return l(n=d(n))}function s(e,t){return new RegExp("(?:^|;)\\s*"+e+'\\s*=\\s*([^";\\s][^;\\s]*|"(?:[^"\\\\]|\\\\"?)+"?)',t)}function o(e,a){if(e){if(!/^[\x00-\xFF]+$/.test(a))return a;try{var r=new TextDecoder(e,{fatal:!0}),n=(0,i.stringToBytes)(a);a=r.decode(n),t=!1}catch(e){}}return a}function l(e){return t&&/[\x80-\xff]/.test(e)&&(e=o("utf-8",e),t&&(e=o("iso-8859-1",e))),e}function c(e){if(e.startsWith('"')){for(var t=e.slice(1).split('\\"'),a=0;a<t.length;++a){var i=t[a].indexOf('"');-1!==i&&(t[a]=t[a].slice(0,i),t.length=a+1),t[a]=t[a].replaceAll(/\\(.)/g,"$1")}e=t.join('"')}return e}function u(e){var t=e.indexOf("'");return-1===t?e:o(e.slice(0,t),e.slice(t+1).replace(/^[^']*'/,""))}function d(e){return!e.startsWith("=?")||/[\x00-\x19\x80-\xff]/.test(e)?e:e.replaceAll(/=\?([\w-]*)\?([QqBb])\?((?:[^?]|\?(?!=))*)\?=/g,(function(e,t,a,i){if("q"===a||"Q"===a)return o(t,i=(i=i.replaceAll("_"," ")).replaceAll(/=([0-9a-fA-F]{2})/g,(function(e,t){return String.fromCharCode(parseInt(t,16))})));try{i=atob(i)}catch(e){}return o(t,i)}))}return""};var i=a(1)},function(e,t,a){Object.defineProperty(t,"__esModule",{value:!0}),t.PDFNetworkStream=void 0;var i=a(1),r=a(20),n=function(){return _createClass((function e(t){var a=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};_classCallCheck(this,e),this.url=t,this.isHttp=/^https?:/i.test(t),this.httpHeaders=this.isHttp&&a.httpHeaders||Object.create(null),this.withCredentials=a.withCredentials||!1,this.currXhrId=0,this.pendingRequests=Object.create(null)}),[{key:"requestRange",value:function(e,t,a){var i={begin:e,end:t};for(var r in a)i[r]=a[r];return this.request(i)}},{key:"requestFull",value:function(e){return this.request(e)}},{key:"request",value:function(e){var t=new XMLHttpRequest,a=this.currXhrId++,i=this.pendingRequests[a]={xhr:t};for(var r in t.open("GET",this.url),t.withCredentials=this.withCredentials,this.httpHeaders){var n=this.httpHeaders[r];void 0!==n&&t.setRequestHeader(r,n)}return this.isHttp&&"begin"in e&&"end"in e?(t.setRequestHeader("Range","bytes=".concat(e.begin,"-").concat(e.end-1)),i.expectedStatus=206):i.expectedStatus=200,t.responseType="arraybuffer",e.onError&&(t.onerror=function(a){e.onError(t.status)}),t.onreadystatechange=this.onStateChange.bind(this,a),t.onprogress=this.onProgress.bind(this,a),i.onHeadersReceived=e.onHeadersReceived,i.onDone=e.onDone,i.onError=e.onError,i.onProgress=e.onProgress,t.send(null),a}},{key:"onProgress",value:function(e,t){var a,i=this.pendingRequests[e];i&&(null===(a=i.onProgress)||void 0===a||a.call(i,t))}},{key:"onStateChange",value:function(e,t){var a=this.pendingRequests[e];if(a){var r=a.xhr;if(r.readyState>=2&&a.onHeadersReceived&&(a.onHeadersReceived(),delete a.onHeadersReceived),4===r.readyState&&e in this.pendingRequests)if(delete this.pendingRequests[e],0===r.status&&this.isHttp){var n;null===(n=a.onError)||void 0===n||n.call(a,r.status)}else{var s=r.status||200;if(200===s&&206===a.expectedStatus||s===a.expectedStatus){var o=function(e){var t=e.response;return"string"!=typeof t?t:(0,i.stringToBytes)(t).buffer}(r);if(206===s){var l=r.getResponseHeader("Content-Range"),c=/bytes (\d+)-(\d+)\/(\d+)/.exec(l);a.onDone({begin:parseInt(c[1],10),chunk:o})}else if(o)a.onDone({begin:0,chunk:o});else{var u;null===(u=a.onError)||void 0===u||u.call(a,r.status)}}else{var d;null===(d=a.onError)||void 0===d||d.call(a,r.status)}}}}},{key:"getRequestXhr",value:function(e){return this.pendingRequests[e].xhr}},{key:"isPendingRequest",value:function(e){return e in this.pendingRequests}},{key:"abortRequest",value:function(e){var t=this.pendingRequests[e].xhr;delete this.pendingRequests[e],t.abort()}}])}(),s=function(){return _createClass((function e(t){_classCallCheck(this,e),this._source=t,this._manager=new n(t.url,{httpHeaders:t.httpHeaders,withCredentials:t.withCredentials}),this._rangeChunkSize=t.rangeChunkSize,this._fullRequestReader=null,this._rangeRequestReaders=[]}),[{key:"_onRangeRequestReaderClosed",value:function(e){var t=this._rangeRequestReaders.indexOf(e);t>=0&&this._rangeRequestReaders.splice(t,1)}},{key:"getFullReader",value:function(){return(0,i.assert)(!this._fullRequestReader,"PDFNetworkStream.getFullReader can only be called once."),this._fullRequestReader=new o(this._manager,this._source),this._fullRequestReader}},{key:"getRangeReader",value:function(e,t){var a=new l(this._manager,e,t);return a.onClosed=this._onRangeRequestReaderClosed.bind(this),this._rangeRequestReaders.push(a),a}},{key:"cancelAllRequests",value:function(e){var t;null===(t=this._fullRequestReader)||void 0===t||t.cancel(e);var a,i=_createForOfIteratorHelper(this._rangeRequestReaders.slice(0));try{for(i.s();!(a=i.n()).done;)a.value.cancel(e)}catch(e){i.e(e)}finally{i.f()}}}])}();t.PDFNetworkStream=s;var o=function(){return _createClass((function e(t,a){_classCallCheck(this,e),this._manager=t;var r={onHeadersReceived:this._onHeadersReceived.bind(this),onDone:this._onDone.bind(this),onError:this._onError.bind(this),onProgress:this._onProgress.bind(this)};this._url=a.url,this._fullRequestId=t.requestFull(r),this._headersReceivedCapability=new i.PromiseCapability,this._disableRange=a.disableRange||!1,this._contentLength=a.length,this._rangeChunkSize=a.rangeChunkSize,this._rangeChunkSize||this._disableRange||(this._disableRange=!0),this._isStreamingSupported=!1,this._isRangeSupported=!1,this._cachedChunks=[],this._requests=[],this._done=!1,this._storedError=void 0,this._filename=null,this.onProgress=null}),[{key:"_onHeadersReceived",value:function(){var e=this._fullRequestId,t=this._manager.getRequestXhr(e),a=function(e){return t.getResponseHeader(e)},i=(0,r.validateRangeRequestCapabilities)({getResponseHeader:a,isHttp:this._manager.isHttp,rangeChunkSize:this._rangeChunkSize,disableRange:this._disableRange}),n=i.allowRangeRequests,s=i.suggestedLength;n&&(this._isRangeSupported=!0),this._contentLength=s||this._contentLength,this._filename=(0,r.extractFilenameFromHeader)(a),this._isRangeSupported&&this._manager.abortRequest(e),this._headersReceivedCapability.resolve()}},{key:"_onDone",value:function(e){if(e&&(this._requests.length>0?this._requests.shift().resolve({value:e.chunk,done:!1}):this._cachedChunks.push(e.chunk)),this._done=!0,!(this._cachedChunks.length>0)){var t,a=_createForOfIteratorHelper(this._requests);try{for(a.s();!(t=a.n()).done;)t.value.resolve({value:void 0,done:!0})}catch(e){a.e(e)}finally{a.f()}this._requests.length=0}}},{key:"_onError",value:function(e){this._storedError=(0,r.createResponseStatusError)(e,this._url),this._headersReceivedCapability.reject(this._storedError);var t,a=_createForOfIteratorHelper(this._requests);try{for(a.s();!(t=a.n()).done;)t.value.reject(this._storedError)}catch(e){a.e(e)}finally{a.f()}this._requests.length=0,this._cachedChunks.length=0}},{key:"_onProgress",value:function(e){var t;null===(t=this.onProgress)||void 0===t||t.call(this,{loaded:e.loaded,total:e.lengthComputable?e.total:this._contentLength})}},{key:"filename",get:function(){return this._filename}},{key:"isRangeSupported",get:function(){return this._isRangeSupported}},{key:"isStreamingSupported",get:function(){return this._isStreamingSupported}},{key:"contentLength",get:function(){return this._contentLength}},{key:"headersReady",get:function(){return this._headersReceivedCapability.promise}},{key:"read",value:(e=_asyncToGenerator(_regenerator().m((function e(){var t,a;return _regenerator().w((function(e){for(;;)switch(e.n){case 0:if(!this._storedError){e.n=1;break}throw this._storedError;case 1:if(!(this._cachedChunks.length>0)){e.n=2;break}return t=this._cachedChunks.shift(),e.a(2,{value:t,done:!1});case 2:if(!this._done){e.n=3;break}return e.a(2,{value:void 0,done:!0});case 3:return a=new i.PromiseCapability,this._requests.push(a),e.a(2,a.promise)}}),e,this)}))),function(){return e.apply(this,arguments)})},{key:"cancel",value:function(e){this._done=!0,this._headersReceivedCapability.reject(e);var t,a=_createForOfIteratorHelper(this._requests);try{for(a.s();!(t=a.n()).done;)t.value.resolve({value:void 0,done:!0})}catch(e){a.e(e)}finally{a.f()}this._requests.length=0,this._manager.isPendingRequest(this._fullRequestId)&&this._manager.abortRequest(this._fullRequestId),this._fullRequestReader=null}}]);var e}(),l=function(){return _createClass((function e(t,a,i){_classCallCheck(this,e),this._manager=t;var r={onDone:this._onDone.bind(this),onError:this._onError.bind(this),onProgress:this._onProgress.bind(this)};this._url=t.url,this._requestId=t.requestRange(a,i,r),this._requests=[],this._queuedChunk=null,this._done=!1,this._storedError=void 0,this.onProgress=null,this.onClosed=null}),[{key:"_close",value:function(){var e;null===(e=this.onClosed)||void 0===e||e.call(this,this)}},{key:"_onDone",value:function(e){var t=e.chunk;this._requests.length>0?this._requests.shift().resolve({value:t,done:!1}):this._queuedChunk=t,this._done=!0;var a,i=_createForOfIteratorHelper(this._requests);try{for(i.s();!(a=i.n()).done;)a.value.resolve({value:void 0,done:!0})}catch(e){i.e(e)}finally{i.f()}this._requests.length=0,this._close()}},{key:"_onError",value:function(e){this._storedError=(0,r.createResponseStatusError)(e,this._url);var t,a=_createForOfIteratorHelper(this._requests);try{for(a.s();!(t=a.n()).done;)t.value.reject(this._storedError)}catch(e){a.e(e)}finally{a.f()}this._requests.length=0,this._queuedChunk=null}},{key:"_onProgress",value:function(e){var t;this.isStreamingSupported||null===(t=this.onProgress)||void 0===t||t.call(this,{loaded:e.loaded})}},{key:"isStreamingSupported",get:function(){return!1}},{key:"read",value:(e=_asyncToGenerator(_regenerator().m((function e(){var t,a;return _regenerator().w((function(e){for(;;)switch(e.n){case 0:if(!this._storedError){e.n=1;break}throw this._storedError;case 1:if(null===this._queuedChunk){e.n=2;break}return t=this._queuedChunk,this._queuedChunk=null,e.a(2,{value:t,done:!1});case 2:if(!this._done){e.n=3;break}return e.a(2,{value:void 0,done:!0});case 3:return a=new i.PromiseCapability,this._requests.push(a),e.a(2,a.promise)}}),e,this)}))),function(){return e.apply(this,arguments)})},{key:"cancel",value:function(e){this._done=!0;var t,a=_createForOfIteratorHelper(this._requests);try{for(a.s();!(t=a.n()).done;)t.value.resolve({value:void 0,done:!0})}catch(e){a.e(e)}finally{a.f()}this._requests.length=0,this._manager.isPendingRequest(this._requestId)&&this._manager.abortRequest(this._requestId),this._close()}}]);var e}()},function(e,t,a){Object.defineProperty(t,"__esModule",{value:!0}),t.PDFNodeStream=void 0;var i=a(1),r=a(20),n=/^file:\/\/\/[a-zA-Z]:\//,s=function(){return _createClass((function e(t){var a,i,r;_classCallCheck(this,e),this.source=t,this.url=(a=t.url,"file:"===(r=(i=__webpack_require__(79395)).parse(a)).protocol||r.host?r:/^[a-z]:[/\\]/i.test(a)?i.parse("file:///".concat(a)):(r.host||(r.protocol="file:"),r)),this.isHttp="http:"===this.url.protocol||"https:"===this.url.protocol,this.isFsUrl="file:"===this.url.protocol,this.httpHeaders=this.isHttp&&t.httpHeaders||{},this._fullRequestReader=null,this._rangeRequestReaders=[]}),[{key:"_progressiveDataLength",get:function(){var e,t;return null!==(e=null===(t=this._fullRequestReader)||void 0===t?void 0:t._loaded)&&void 0!==e?e:0}},{key:"getFullReader",value:function(){return(0,i.assert)(!this._fullRequestReader,"PDFNodeStream.getFullReader can only be called once."),this._fullRequestReader=this.isFsUrl?new h(this):new u(this),this._fullRequestReader}},{key:"getRangeReader",value:function(e,t){if(t<=this._progressiveDataLength)return null;var a=this.isFsUrl?new v(this,e,t):new d(this,e,t);return this._rangeRequestReaders.push(a),a}},{key:"cancelAllRequests",value:function(e){var t;null===(t=this._fullRequestReader)||void 0===t||t.cancel(e);var a,i=_createForOfIteratorHelper(this._rangeRequestReaders.slice(0));try{for(i.s();!(a=i.n()).done;)a.value.cancel(e)}catch(e){i.e(e)}finally{i.f()}}}])}();t.PDFNodeStream=s;var o=function(){return _createClass((function e(t){_classCallCheck(this,e),this._url=t.url,this._done=!1,this._storedError=null,this.onProgress=null;var a=t.source;this._contentLength=a.length,this._loaded=0,this._filename=null,this._disableRange=a.disableRange||!1,this._rangeChunkSize=a.rangeChunkSize,this._rangeChunkSize||this._disableRange||(this._disableRange=!0),this._isStreamingSupported=!a.disableStream,this._isRangeSupported=!a.disableRange,this._readableStream=null,this._readCapability=new i.PromiseCapability,this._headersCapability=new i.PromiseCapability}),[{key:"headersReady",get:function(){return this._headersCapability.promise}},{key:"filename",get:function(){return this._filename}},{key:"contentLength",get:function(){return this._contentLength}},{key:"isRangeSupported",get:function(){return this._isRangeSupported}},{key:"isStreamingSupported",get:function(){return this._isStreamingSupported}},{key:"read",value:(e=_asyncToGenerator(_regenerator().m((function e(){var t,a,r;return _regenerator().w((function(e){for(;;)switch(e.n){case 0:return e.n=1,this._readCapability.promise;case 1:if(!this._done){e.n=2;break}return e.a(2,{value:void 0,done:!0});case 2:if(!this._storedError){e.n=3;break}throw this._storedError;case 3:if(null!==(a=this._readableStream.read())){e.n=4;break}return this._readCapability=new i.PromiseCapability,e.a(2,this.read());case 4:return this._loaded+=a.length,null===(t=this.onProgress)||void 0===t||t.call(this,{loaded:this._loaded,total:this._contentLength}),r=new Uint8Array(a).buffer,e.a(2,{value:r,done:!1})}}),e,this)}))),function(){return e.apply(this,arguments)})},{key:"cancel",value:function(e){this._readableStream?this._readableStream.destroy(e):this._error(e)}},{key:"_error",value:function(e){this._storedError=e,this._readCapability.resolve()}},{key:"_setReadableStream",value:function(e){var t=this;this._readableStream=e,e.on("readable",(function(){t._readCapability.resolve()})),e.on("end",(function(){e.destroy(),t._done=!0,t._readCapability.resolve()})),e.on("error",(function(e){t._error(e)})),!this._isStreamingSupported&&this._isRangeSupported&&this._error(new i.AbortException("streaming is disabled")),this._storedError&&this._readableStream.destroy(this._storedError)}}]);var e}(),l=function(){return _createClass((function e(t){_classCallCheck(this,e),this._url=t.url,this._done=!1,this._storedError=null,this.onProgress=null,this._loaded=0,this._readableStream=null,this._readCapability=new i.PromiseCapability;var a=t.source;this._isStreamingSupported=!a.disableStream}),[{key:"isStreamingSupported",get:function(){return this._isStreamingSupported}},{key:"read",value:(e=_asyncToGenerator(_regenerator().m((function e(){var t,a,r;return _regenerator().w((function(e){for(;;)switch(e.n){case 0:return e.n=1,this._readCapability.promise;case 1:if(!this._done){e.n=2;break}return e.a(2,{value:void 0,done:!0});case 2:if(!this._storedError){e.n=3;break}throw this._storedError;case 3:if(null!==(a=this._readableStream.read())){e.n=4;break}return this._readCapability=new i.PromiseCapability,e.a(2,this.read());case 4:return this._loaded+=a.length,null===(t=this.onProgress)||void 0===t||t.call(this,{loaded:this._loaded}),r=new Uint8Array(a).buffer,e.a(2,{value:r,done:!1})}}),e,this)}))),function(){return e.apply(this,arguments)})},{key:"cancel",value:function(e){this._readableStream?this._readableStream.destroy(e):this._error(e)}},{key:"_error",value:function(e){this._storedError=e,this._readCapability.resolve()}},{key:"_setReadableStream",value:function(e){var t=this;this._readableStream=e,e.on("readable",(function(){t._readCapability.resolve()})),e.on("end",(function(){e.destroy(),t._done=!0,t._readCapability.resolve()})),e.on("error",(function(e){t._error(e)})),this._storedError&&this._readableStream.destroy(this._storedError)}}]);var e}();function c(e,t){return{protocol:e.protocol,auth:e.auth,host:e.hostname,port:e.port,path:e.path,method:"GET",headers:t}}var u=function(e){function t(e){var a;_classCallCheck(this,t);var n=function(t){if(404===t.statusCode){var n=new i.MissingPDFException('Missing PDF "'.concat(a._url,'".'));return a._storedError=n,void a._headersCapability.reject(n)}a._headersCapability.resolve(),a._setReadableStream(t);var s=function(e){return a._readableStream.headers[e.toLowerCase()]},o=(0,r.validateRangeRequestCapabilities)({getResponseHeader:s,isHttp:e.isHttp,rangeChunkSize:a._rangeChunkSize,disableRange:a._disableRange}),l=o.allowRangeRequests,c=o.suggestedLength;a._isRangeSupported=l,a._contentLength=c||a._contentLength,a._filename=(0,r.extractFilenameFromHeader)(s)};if((a=_callSuper(this,t,[e]))._request=null,"http:"===a._url.protocol){var s=__webpack_require__(42688);a._request=s.request(c(a._url,e.httpHeaders),n)}else{var o=__webpack_require__(18123);a._request=o.request(c(a._url,e.httpHeaders),n)}return a._request.on("error",(function(e){a._storedError=e,a._headersCapability.reject(e)})),a._request.end(),a}return _inherits(t,e),_createClass(t)}(o),d=function(e){function t(e,a,r){var n;for(var s in _classCallCheck(this,t),(n=_callSuper(this,t,[e]))._httpHeaders={},e.httpHeaders){var o=e.httpHeaders[s];void 0!==o&&(n._httpHeaders[s]=o)}n._httpHeaders.Range="bytes=".concat(a,"-").concat(r-1);var l=function(e){if(404!==e.statusCode)n._setReadableStream(e);else{var t=new i.MissingPDFException('Missing PDF "'.concat(n._url,'".'));n._storedError=t}};if(n._request=null,"http:"===n._url.protocol){var u=__webpack_require__(42688);n._request=u.request(c(n._url,n._httpHeaders),l)}else{var d=__webpack_require__(18123);n._request=d.request(c(n._url,n._httpHeaders),l)}return n._request.on("error",(function(e){n._storedError=e})),n._request.end(),n}return _inherits(t,e),_createClass(t)}(l),h=function(e){function t(e){var a;_classCallCheck(this,t),a=_callSuper(this,t,[e]);var r=decodeURIComponent(a._url.path);n.test(a._url.href)&&(r=r.replace(/^\//,""));var s=__webpack_require__(21673);return s.lstat(r,(function(e,t){if(e)return"ENOENT"===e.code&&(e=new i.MissingPDFException('Missing PDF "'.concat(r,'".'))),a._storedError=e,void a._headersCapability.reject(e);a._contentLength=t.size,a._setReadableStream(s.createReadStream(r)),a._headersCapability.resolve()})),a}return _inherits(t,e),_createClass(t)}(o),v=function(e){function t(e,a,i){var r;_classCallCheck(this,t),r=_callSuper(this,t,[e]);var s=decodeURIComponent(r._url.path);n.test(r._url.href)&&(s=s.replace(/^\//,""));var o=__webpack_require__(21673);return r._setReadableStream(o.createReadStream(s,{start:a,end:i-1})),r}return _inherits(t,e),_createClass(t)}(l)},function(e,t,a){Object.defineProperty(t,"__esModule",{value:!0}),t.SVGGraphics=void 0;var i=a(6),r=a(1),n="normal",s="#000000",o=["butt","round","square"],l=["miter","round","bevel"],c=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"",a=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(URL.createObjectURL&&"undefined"!=typeof Blob&&!a)return URL.createObjectURL(new Blob([e],{type:t}));for(var i="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=",r="data:".concat(t,";base64,"),n=0,s=e.length;n<s;n+=3){var o=255&e[n],l=255&e[n+1],c=255&e[n+2];r+=i[o>>2]+i[(3&o)<<4|l>>4]+i[n+1<s?(15&l)<<2|c>>6:64]+i[n+2<s?63&c:64]}return r},u=function(){for(var e=new Uint8Array([137,80,78,71,13,10,26,10]),t=new Int32Array(256),a=0;a<256;a++){for(var i=a,n=0;n<8;n++)i=1&i?3988292384^i>>1&2147483647:i>>1&2147483647;t[a]=i}function s(e,a,i,r){var n=r,s=a.length;i[n]=s>>24&255,i[n+1]=s>>16&255,i[n+2]=s>>8&255,i[n+3]=255&s,i[n+=4]=255&e.charCodeAt(0),i[n+1]=255&e.charCodeAt(1),i[n+2]=255&e.charCodeAt(2),i[n+3]=255&e.charCodeAt(3),n+=4,i.set(a,n);var o=function(e,a,i){for(var r=-1,n=a;n<i;n++){var s=255&(r^e[n]);r=r>>>8^t[s]}return~r}(i,r+4,n+=a.length);i[n]=o>>24&255,i[n+1]=o>>16&255,i[n+2]=o>>8&255,i[n+3]=255&o}function o(e){var t=e.length,a=65535,i=Math.ceil(t/a),r=new Uint8Array(2+t+5*i+4),n=0;r[n++]=120,r[n++]=156;for(var s=0;t>a;)r[n++]=0,r[n++]=255,r[n++]=255,r[n++]=0,r[n++]=0,r.set(e.subarray(s,s+a),n),n+=a,s+=a,t-=a;r[n++]=1,r[n++]=255&t,r[n++]=t>>8&255,r[n++]=255&~t,r[n++]=(65535&~t)>>8&255,r.set(e.subarray(s),n),n+=e.length-s;var o=function(e,t,a){for(var i=1,r=0,n=0;n<a;++n)r=(r+(i=(i+(255&e[n]))%65521))%65521;return r<<16|i}(e,0,e.length);return r[n++]=o>>24&255,r[n++]=o>>16&255,r[n++]=o>>8&255,r[n++]=255&o,r}return function(t,a,i){return function(t,a,i,n){var l,u,d,h=t.width,v=t.height,f=t.data;switch(a){case r.ImageKind.GRAYSCALE_1BPP:u=0,l=1,d=h+7>>3;break;case r.ImageKind.RGB_24BPP:u=2,l=8,d=3*h;break;case r.ImageKind.RGBA_32BPP:u=6,l=8,d=4*h;break;default:throw new Error("invalid format")}for(var p=new Uint8Array((1+d)*v),_=0,g=0,y=0;y<v;++y)p[_++]=0,p.set(f.subarray(g,g+d),_),g+=d,_+=d;if(a===r.ImageKind.GRAYSCALE_1BPP&&n){_=0;for(var m=0;m<v;m++){_++;for(var b=0;b<d;b++)p[_++]^=255}}var k=new Uint8Array([h>>24&255,h>>16&255,h>>8&255,255&h,v>>24&255,v>>16&255,v>>8&255,255&v,l,u,0,0,0]),A=function(e){if(!r.isNodeJS)return o(e);try{var t=parseInt(process.versions.node)>=8?e:Buffer.from(e),a=__webpack_require__(19319).deflateSync(t,{level:9});return a instanceof Uint8Array?a:new Uint8Array(a)}catch(e){(0,r.warn)("Not compressing PNG because zlib.deflateSync is unavailable: "+e)}return o(e)}(p),P=e.length+36+k.length+A.length,F=new Uint8Array(P),S=0;return F.set(e,S),s("IHDR",k,F,S+=e.length),s("IDATA",A,F,S+=12+k.length),S+=12+A.length,s("IEND",new Uint8Array(0),F,S),c(F,"image/png",i)}(t,void 0===t.kind?r.ImageKind.GRAYSCALE_1BPP:t.kind,a,i)}}(),d=function(){return _createClass((function e(){_classCallCheck(this,e),this.fontSizeScale=1,this.fontWeight=n,this.fontSize=0,this.textMatrix=r.IDENTITY_MATRIX,this.fontMatrix=r.FONT_IDENTITY_MATRIX,this.leading=0,this.textRenderingMode=r.TextRenderingMode.FILL,this.textMatrixScale=1,this.x=0,this.y=0,this.lineX=0,this.lineY=0,this.charSpacing=0,this.wordSpacing=0,this.textHScale=1,this.textRise=0,this.fillColor=s,this.strokeColor="#000000",this.fillAlpha=1,this.strokeAlpha=1,this.lineWidth=1,this.lineJoin="",this.lineCap="",this.miterLimit=0,this.dashArray=[],this.dashPhase=0,this.dependencies=[],this.activeClipUrl=null,this.clipGroup=null,this.maskId=""}),[{key:"clone",value:function(){return Object.create(this)}},{key:"setCurrentPoint",value:function(e,t){this.x=e,this.y=t}}])}();function h(e){if(Number.isInteger(e))return e.toString();var t=e.toFixed(10),a=t.length-1;if("0"!==t[a])return t;do{a--}while("0"===t[a]);return t.substring(0,"."===t[a]?a:a+1)}function v(e){if(0===e[4]&&0===e[5]){if(0===e[1]&&0===e[2])return 1===e[0]&&1===e[3]?"":"scale(".concat(h(e[0])," ").concat(h(e[3]),")");if(e[0]===e[3]&&e[1]===-e[2]){var t=180*Math.acos(e[0])/Math.PI;return"rotate(".concat(h(t),")")}}else if(1===e[0]&&0===e[1]&&0===e[2]&&1===e[3])return"translate(".concat(h(e[4])," ").concat(h(e[5]),")");return"matrix(".concat(h(e[0])," ").concat(h(e[1])," ").concat(h(e[2])," ").concat(h(e[3])," ").concat(h(e[4])," ")+"".concat(h(e[5]),")")}var f=0,p=0,_=0,g=function(){return _createClass((function e(t,a){var n=arguments.length>2&&void 0!==arguments[2]&&arguments[2];for(var s in _classCallCheck(this,e),(0,i.deprecated)("The SVG back-end is no longer maintained and *may* be removed in the future."),this.svgFactory=new i.DOMSVGFactory,this.current=new d,this.transformMatrix=r.IDENTITY_MATRIX,this.transformStack=[],this.extraStack=[],this.commonObjs=t,this.objs=a,this.pendingClip=null,this.pendingEOFill=!1,this.embedFonts=!1,this.embeddedFonts=Object.create(null),this.cssStyle=null,this.forceDataSchema=!!n,this._operatorIdMapping=[],r.OPS)this._operatorIdMapping[r.OPS[s]]=s}),[{key:"getObject",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null;return"string"==typeof e?e.startsWith("g_")?this.commonObjs.get(e):this.objs.get(e):t}},{key:"save",value:function(){this.transformStack.push(this.transformMatrix);var e=this.current;this.extraStack.push(e),this.current=e.clone()}},{key:"restore",value:function(){this.transformMatrix=this.transformStack.pop(),this.current=this.extraStack.pop(),this.pendingClip=null,this.tgrp=null}},{key:"group",value:function(e){this.save(),this.executeOpTree(e),this.restore()}},{key:"loadDependencies",value:function(e){for(var t=this,a=e.fnArray,i=e.argsArray,n=0,s=a.length;n<s;n++)if(a[n]===r.OPS.dependency){var o,l=_createForOfIteratorHelper(i[n]);try{var c=function(){var e=o.value,a=e.startsWith("g_")?t.commonObjs:t.objs,i=new Promise((function(t){a.get(e,t)}));t.current.dependencies.push(i)};for(l.s();!(o=l.n()).done;)c()}catch(e){l.e(e)}finally{l.f()}}return Promise.all(this.current.dependencies)}},{key:"transform",value:function(e,t,a,i,n,s){var o=[e,t,a,i,n,s];this.transformMatrix=r.Util.transform(this.transformMatrix,o),this.tgrp=null}},{key:"getSVG",value:function(e,t){var a=this;this.viewport=t;var i=this._initialize(t);return this.loadDependencies(e).then((function(){return a.transformMatrix=r.IDENTITY_MATRIX,a.executeOpTree(a.convertOpList(e)),i}))}},{key:"convertOpList",value:function(e){for(var t=this._operatorIdMapping,a=e.argsArray,i=e.fnArray,r=[],n=0,s=i.length;n<s;n++){var o=i[n];r.push({fnId:o,fn:t[o],args:a[n]})}return function(e){var t,a=[],i=[],r=_createForOfIteratorHelper(e);try{for(r.s();!(t=r.n()).done;){var n=t.value;"save"!==n.fn?"restore"===n.fn?a=i.pop():a.push(n):(a.push({fnId:92,fn:"group",items:[]}),i.push(a),a=a.at(-1).items)}}catch(e){r.e(e)}finally{r.f()}return a}(r)}},{key:"executeOpTree",value:function(e){var t,a=_createForOfIteratorHelper(e);try{for(a.s();!(t=a.n()).done;){var i=t.value,n=i.fn,s=i.fnId,o=i.args;switch(0|s){case r.OPS.beginText:this.beginText();break;case r.OPS.dependency:break;case r.OPS.setLeading:this.setLeading(o);break;case r.OPS.setLeadingMoveText:this.setLeadingMoveText(o[0],o[1]);break;case r.OPS.setFont:this.setFont(o);break;case r.OPS.showText:case r.OPS.showSpacedText:this.showText(o[0]);break;case r.OPS.endText:this.endText();break;case r.OPS.moveText:this.moveText(o[0],o[1]);break;case r.OPS.setCharSpacing:this.setCharSpacing(o[0]);break;case r.OPS.setWordSpacing:this.setWordSpacing(o[0]);break;case r.OPS.setHScale:this.setHScale(o[0]);break;case r.OPS.setTextMatrix:this.setTextMatrix(o[0],o[1],o[2],o[3],o[4],o[5]);break;case r.OPS.setTextRise:this.setTextRise(o[0]);break;case r.OPS.setTextRenderingMode:this.setTextRenderingMode(o[0]);break;case r.OPS.setLineWidth:this.setLineWidth(o[0]);break;case r.OPS.setLineJoin:this.setLineJoin(o[0]);break;case r.OPS.setLineCap:this.setLineCap(o[0]);break;case r.OPS.setMiterLimit:this.setMiterLimit(o[0]);break;case r.OPS.setFillRGBColor:this.setFillRGBColor(o[0],o[1],o[2]);break;case r.OPS.setStrokeRGBColor:this.setStrokeRGBColor(o[0],o[1],o[2]);break;case r.OPS.setStrokeColorN:this.setStrokeColorN(o);break;case r.OPS.setFillColorN:this.setFillColorN(o);break;case r.OPS.shadingFill:this.shadingFill(o[0]);break;case r.OPS.setDash:this.setDash(o[0],o[1]);break;case r.OPS.setRenderingIntent:this.setRenderingIntent(o[0]);break;case r.OPS.setFlatness:this.setFlatness(o[0]);break;case r.OPS.setGState:this.setGState(o[0]);break;case r.OPS.fill:this.fill();break;case r.OPS.eoFill:this.eoFill();break;case r.OPS.stroke:this.stroke();break;case r.OPS.fillStroke:this.fillStroke();break;case r.OPS.eoFillStroke:this.eoFillStroke();break;case r.OPS.clip:this.clip("nonzero");break;case r.OPS.eoClip:this.clip("evenodd");break;case r.OPS.paintSolidColorImageMask:this.paintSolidColorImageMask();break;case r.OPS.paintImageXObject:this.paintImageXObject(o[0]);break;case r.OPS.paintInlineImageXObject:this.paintInlineImageXObject(o[0]);break;case r.OPS.paintImageMaskXObject:this.paintImageMaskXObject(o[0]);break;case r.OPS.paintFormXObjectBegin:this.paintFormXObjectBegin(o[0],o[1]);break;case r.OPS.paintFormXObjectEnd:this.paintFormXObjectEnd();break;case r.OPS.closePath:this.closePath();break;case r.OPS.closeStroke:this.closeStroke();break;case r.OPS.closeFillStroke:this.closeFillStroke();break;case r.OPS.closeEOFillStroke:this.closeEOFillStroke();break;case r.OPS.nextLine:this.nextLine();break;case r.OPS.transform:this.transform(o[0],o[1],o[2],o[3],o[4],o[5]);break;case r.OPS.constructPath:this.constructPath(o[0],o[1]);break;case r.OPS.endPath:this.endPath();break;case 92:this.group(i.items);break;default:(0,r.warn)("Unimplemented operator ".concat(n))}}}catch(e){a.e(e)}finally{a.f()}}},{key:"setWordSpacing",value:function(e){this.current.wordSpacing=e}},{key:"setCharSpacing",value:function(e){this.current.charSpacing=e}},{key:"nextLine",value:function(){this.moveText(0,this.current.leading)}},{key:"setTextMatrix",value:function(e,t,a,i,r,n){var s=this.current;s.textMatrix=s.lineMatrix=[e,t,a,i,r,n],s.textMatrixScale=Math.hypot(e,t),s.x=s.lineX=0,s.y=s.lineY=0,s.xcoords=[],s.ycoords=[],s.tspan=this.svgFactory.createElement("svg:tspan"),s.tspan.setAttributeNS(null,"font-family",s.fontFamily),s.tspan.setAttributeNS(null,"font-size","".concat(h(s.fontSize),"px")),s.tspan.setAttributeNS(null,"y",h(-s.y)),s.txtElement=this.svgFactory.createElement("svg:text"),s.txtElement.append(s.tspan)}},{key:"beginText",value:function(){var e=this.current;e.x=e.lineX=0,e.y=e.lineY=0,e.textMatrix=r.IDENTITY_MATRIX,e.lineMatrix=r.IDENTITY_MATRIX,e.textMatrixScale=1,e.tspan=this.svgFactory.createElement("svg:tspan"),e.txtElement=this.svgFactory.createElement("svg:text"),e.txtgrp=this.svgFactory.createElement("svg:g"),e.xcoords=[],e.ycoords=[]}},{key:"moveText",value:function(e,t){var a=this.current;a.x=a.lineX+=e,a.y=a.lineY+=t,a.xcoords=[],a.ycoords=[],a.tspan=this.svgFactory.createElement("svg:tspan"),a.tspan.setAttributeNS(null,"font-family",a.fontFamily),a.tspan.setAttributeNS(null,"font-size","".concat(h(a.fontSize),"px")),a.tspan.setAttributeNS(null,"y",h(-a.y))}},{key:"showText",value:function(e){var t=this.current,a=t.font,i=t.fontSize;if(0!==i){var o,l=t.fontSizeScale,c=t.charSpacing,u=t.wordSpacing,d=t.fontDirection,f=t.textHScale*d,p=a.vertical,_=p?1:-1,g=a.defaultVMetrics,y=i*t.fontMatrix[0],m=0,b=_createForOfIteratorHelper(e);try{for(b.s();!(o=b.n()).done;){var k=o.value;if(null!==k)if("number"!=typeof k){var A=(k.isSpace?u:0)+c,P=k.fontChar,F=void 0,S=void 0,C=k.width;if(p){var w=void 0,x=k.vmetric||g;w=-(w=k.vmetric?x[1]:.5*C)*y;var E=x[2]*y;C=x?-x[0]:C,F=w/l,S=(m+E)/l}else F=m/l,S=0;(k.isInFont||a.missingFile)&&(t.xcoords.push(t.x+F),p&&t.ycoords.push(-t.y+S),t.tspan.textContent+=P),m+=p?C*y-A*d:C*y+A*d}else m+=_*k*i/1e3;else m+=d*u}}catch(e){b.e(e)}finally{b.f()}t.tspan.setAttributeNS(null,"x",t.xcoords.map(h).join(" ")),p?t.tspan.setAttributeNS(null,"y",t.ycoords.map(h).join(" ")):t.tspan.setAttributeNS(null,"y",h(-t.y)),p?t.y-=m:t.x+=m*f,t.tspan.setAttributeNS(null,"font-family",t.fontFamily),t.tspan.setAttributeNS(null,"font-size","".concat(h(t.fontSize),"px")),"normal"!==t.fontStyle&&t.tspan.setAttributeNS(null,"font-style",t.fontStyle),t.fontWeight!==n&&t.tspan.setAttributeNS(null,"font-weight",t.fontWeight);var T=t.textRenderingMode&r.TextRenderingMode.FILL_STROKE_MASK;if(T===r.TextRenderingMode.FILL||T===r.TextRenderingMode.FILL_STROKE?(t.fillColor!==s&&t.tspan.setAttributeNS(null,"fill",t.fillColor),t.fillAlpha<1&&t.tspan.setAttributeNS(null,"fill-opacity",t.fillAlpha)):t.textRenderingMode===r.TextRenderingMode.ADD_TO_PATH?t.tspan.setAttributeNS(null,"fill","transparent"):t.tspan.setAttributeNS(null,"fill","none"),T===r.TextRenderingMode.STROKE||T===r.TextRenderingMode.FILL_STROKE){var M=1/(t.textMatrixScale||1);this._setStrokeAttributes(t.tspan,M)}var I=t.textMatrix;0!==t.textRise&&((I=I.slice())[5]+=t.textRise),t.txtElement.setAttributeNS(null,"transform","".concat(v(I)," scale(").concat(h(f),", -1)")),t.txtElement.setAttributeNS("http://www.w3.org/XML/1998/namespace","xml:space","preserve"),t.txtElement.append(t.tspan),t.txtgrp.append(t.txtElement),this._ensureTransformGroup().append(t.txtElement)}}},{key:"setLeadingMoveText",value:function(e,t){this.setLeading(-t),this.moveText(e,t)}},{key:"addFontStyle",value:function(e){if(!e.data)throw new Error('addFontStyle: No font data available, ensure that the "fontExtraProperties" API parameter is set.');this.cssStyle||(this.cssStyle=this.svgFactory.createElement("svg:style"),this.cssStyle.setAttributeNS(null,"type","text/css"),this.defs.append(this.cssStyle));var t=c(e.data,e.mimetype,this.forceDataSchema);this.cssStyle.textContent+='@font-face { font-family: "'.concat(e.loadedName,'";')+" src: url(".concat(t,"); }\n")}},{key:"setFont",value:function(e){var t=this.current,a=this.commonObjs.get(e[0]),i=e[1];t.font=a,!this.embedFonts||a.missingFile||this.embeddedFonts[a.loadedName]||(this.addFontStyle(a),this.embeddedFonts[a.loadedName]=a),t.fontMatrix=a.fontMatrix||r.FONT_IDENTITY_MATRIX;var n="normal";a.black?n="900":a.bold&&(n="bold");var s=a.italic?"italic":"normal";i<0?(i=-i,t.fontDirection=-1):t.fontDirection=1,t.fontSize=i,t.fontFamily=a.loadedName,t.fontWeight=n,t.fontStyle=s,t.tspan=this.svgFactory.createElement("svg:tspan"),t.tspan.setAttributeNS(null,"y",h(-t.y)),t.xcoords=[],t.ycoords=[]}},{key:"endText",value:function(){var e,t=this.current;t.textRenderingMode&r.TextRenderingMode.ADD_TO_PATH_FLAG&&null!==(e=t.txtElement)&&void 0!==e&&e.hasChildNodes()&&(t.element=t.txtElement,this.clip("nonzero"),this.endPath())}},{key:"setLineWidth",value:function(e){e>0&&(this.current.lineWidth=e)}},{key:"setLineCap",value:function(e){this.current.lineCap=o[e]}},{key:"setLineJoin",value:function(e){this.current.lineJoin=l[e]}},{key:"setMiterLimit",value:function(e){this.current.miterLimit=e}},{key:"setStrokeAlpha",value:function(e){this.current.strokeAlpha=e}},{key:"setStrokeRGBColor",value:function(e,t,a){this.current.strokeColor=r.Util.makeHexColor(e,t,a)}},{key:"setFillAlpha",value:function(e){this.current.fillAlpha=e}},{key:"setFillRGBColor",value:function(e,t,a){this.current.fillColor=r.Util.makeHexColor(e,t,a),this.current.tspan=this.svgFactory.createElement("svg:tspan"),this.current.xcoords=[],this.current.ycoords=[]}},{key:"setStrokeColorN",value:function(e){this.current.strokeColor=this._makeColorN_Pattern(e)}},{key:"setFillColorN",value:function(e){this.current.fillColor=this._makeColorN_Pattern(e)}},{key:"shadingFill",value:function(e){var t=this.viewport,a=t.width,i=t.height,n=r.Util.inverseTransform(this.transformMatrix),s=_slicedToArray(r.Util.getAxialAlignedBoundingBox([0,0,a,i],n),4),o=s[0],l=s[1],c=s[2],u=s[3],d=this.svgFactory.createElement("svg:rect");d.setAttributeNS(null,"x",o),d.setAttributeNS(null,"y",l),d.setAttributeNS(null,"width",c-o),d.setAttributeNS(null,"height",u-l),d.setAttributeNS(null,"fill",this._makeShadingPattern(e)),this.current.fillAlpha<1&&d.setAttributeNS(null,"fill-opacity",this.current.fillAlpha),this._ensureTransformGroup().append(d)}},{key:"_makeColorN_Pattern",value:function(e){return"TilingPattern"===e[0]?this._makeTilingPattern(e):this._makeShadingPattern(e)}},{key:"_makeTilingPattern",value:function(e){var t=e[1],a=e[2],i=e[3]||r.IDENTITY_MATRIX,n=_slicedToArray(e[4],4),s=n[0],o=n[1],l=n[2],c=n[3],u=e[5],d=e[6],h=e[7],v="shading".concat(_++),f=_slicedToArray(r.Util.normalizeRect([].concat(_toConsumableArray(r.Util.applyTransform([s,o],i)),_toConsumableArray(r.Util.applyTransform([l,c],i)))),4),p=f[0],g=f[1],y=f[2],m=f[3],b=_slicedToArray(r.Util.singularValueDecompose2dScale(i),2),k=u*b[0],A=d*b[1],P=this.svgFactory.createElement("svg:pattern");P.setAttributeNS(null,"id",v),P.setAttributeNS(null,"patternUnits","userSpaceOnUse"),P.setAttributeNS(null,"width",k),P.setAttributeNS(null,"height",A),P.setAttributeNS(null,"x","".concat(p)),P.setAttributeNS(null,"y","".concat(g));var F=this.svg,S=this.transformMatrix,C=this.current.fillColor,w=this.current.strokeColor,x=this.svgFactory.create(y-p,m-g);if(this.svg=x,this.transformMatrix=i,2===h){var E,T=(E=r.Util).makeHexColor.apply(E,_toConsumableArray(t));this.current.fillColor=T,this.current.strokeColor=T}return this.executeOpTree(this.convertOpList(a)),this.svg=F,this.transformMatrix=S,this.current.fillColor=C,this.current.strokeColor=w,P.append(x.childNodes[0]),this.defs.append(P),"url(#".concat(v,")")}},{key:"_makeShadingPattern",value:function(e){switch("string"==typeof e&&(e=this.objs.get(e)),e[0]){case"RadialAxial":var t,a="shading".concat(_++),i=e[3];switch(e[1]){case"axial":var n=e[4],s=e[5];(t=this.svgFactory.createElement("svg:linearGradient")).setAttributeNS(null,"id",a),t.setAttributeNS(null,"gradientUnits","userSpaceOnUse"),t.setAttributeNS(null,"x1",n[0]),t.setAttributeNS(null,"y1",n[1]),t.setAttributeNS(null,"x2",s[0]),t.setAttributeNS(null,"y2",s[1]);break;case"radial":var o=e[4],l=e[5],c=e[6],u=e[7];(t=this.svgFactory.createElement("svg:radialGradient")).setAttributeNS(null,"id",a),t.setAttributeNS(null,"gradientUnits","userSpaceOnUse"),t.setAttributeNS(null,"cx",l[0]),t.setAttributeNS(null,"cy",l[1]),t.setAttributeNS(null,"r",u),t.setAttributeNS(null,"fx",o[0]),t.setAttributeNS(null,"fy",o[1]),t.setAttributeNS(null,"fr",c);break;default:throw new Error("Unknown RadialAxial type: ".concat(e[1]))}var d,h=_createForOfIteratorHelper(i);try{for(h.s();!(d=h.n()).done;){var v=d.value,f=this.svgFactory.createElement("svg:stop");f.setAttributeNS(null,"offset",v[0]),f.setAttributeNS(null,"stop-color",v[1]),t.append(f)}}catch(e){h.e(e)}finally{h.f()}return this.defs.append(t),"url(#".concat(a,")");case"Mesh":return(0,r.warn)("Unimplemented pattern Mesh"),null;case"Dummy":return"hotpink";default:throw new Error("Unknown IR type: ".concat(e[0]))}}},{key:"setDash",value:function(e,t){this.current.dashArray=e,this.current.dashPhase=t}},{key:"constructPath",value:function(e,t){var a,i=this.current,n=i.x,s=i.y,o=[],l=0,c=_createForOfIteratorHelper(e);try{for(c.s();!(a=c.n()).done;)switch(0|a.value){case r.OPS.rectangle:n=t[l++],s=t[l++];var u=t[l++],d=t[l++],v=n+u,f=s+d;o.push("M",h(n),h(s),"L",h(v),h(s),"L",h(v),h(f),"L",h(n),h(f),"Z");break;case r.OPS.moveTo:n=t[l++],s=t[l++],o.push("M",h(n),h(s));break;case r.OPS.lineTo:n=t[l++],s=t[l++],o.push("L",h(n),h(s));break;case r.OPS.curveTo:n=t[l+4],s=t[l+5],o.push("C",h(t[l]),h(t[l+1]),h(t[l+2]),h(t[l+3]),h(n),h(s)),l+=6;break;case r.OPS.curveTo2:o.push("C",h(n),h(s),h(t[l]),h(t[l+1]),h(t[l+2]),h(t[l+3])),n=t[l+2],s=t[l+3],l+=4;break;case r.OPS.curveTo3:n=t[l+2],s=t[l+3],o.push("C",h(t[l]),h(t[l+1]),h(n),h(s),h(n),h(s)),l+=4;break;case r.OPS.closePath:o.push("Z")}}catch(e){c.e(e)}finally{c.f()}o=o.join(" "),i.path&&e.length>0&&e[0]!==r.OPS.rectangle&&e[0]!==r.OPS.moveTo?o=i.path.getAttributeNS(null,"d")+o:(i.path=this.svgFactory.createElement("svg:path"),this._ensureTransformGroup().append(i.path)),i.path.setAttributeNS(null,"d",o),i.path.setAttributeNS(null,"fill","none"),i.element=i.path,i.setCurrentPoint(n,s)}},{key:"endPath",value:function(){var e=this.current;if(e.path=null,this.pendingClip)if(e.element){var t="clippath".concat(f++),a=this.svgFactory.createElement("svg:clipPath");a.setAttributeNS(null,"id",t),a.setAttributeNS(null,"transform",v(this.transformMatrix));var i=e.element.cloneNode(!0);if("evenodd"===this.pendingClip?i.setAttributeNS(null,"clip-rule","evenodd"):i.setAttributeNS(null,"clip-rule","nonzero"),this.pendingClip=null,a.append(i),this.defs.append(a),e.activeClipUrl){e.clipGroup=null;var r,n=_createForOfIteratorHelper(this.extraStack);try{for(n.s();!(r=n.n()).done;)r.value.clipGroup=null}catch(e){n.e(e)}finally{n.f()}a.setAttributeNS(null,"clip-path",e.activeClipUrl)}e.activeClipUrl="url(#".concat(t,")"),this.tgrp=null}else this.pendingClip=null}},{key:"clip",value:function(e){this.pendingClip=e}},{key:"closePath",value:function(){var e=this.current;if(e.path){var t="".concat(e.path.getAttributeNS(null,"d"),"Z");e.path.setAttributeNS(null,"d",t)}}},{key:"setLeading",value:function(e){this.current.leading=-e}},{key:"setTextRise",value:function(e){this.current.textRise=e}},{key:"setTextRenderingMode",value:function(e){this.current.textRenderingMode=e}},{key:"setHScale",value:function(e){this.current.textHScale=e/100}},{key:"setRenderingIntent",value:function(e){}},{key:"setFlatness",value:function(e){}},{key:"setGState",value:function(e){var t,a=_createForOfIteratorHelper(e);try{for(a.s();!(t=a.n()).done;){var i=_slicedToArray(t.value,2),n=i[0],s=i[1];switch(n){case"LW":this.setLineWidth(s);break;case"LC":this.setLineCap(s);break;case"LJ":this.setLineJoin(s);break;case"ML":this.setMiterLimit(s);break;case"D":this.setDash(s[0],s[1]);break;case"RI":this.setRenderingIntent(s);break;case"FL":this.setFlatness(s);break;case"Font":this.setFont(s);break;case"CA":this.setStrokeAlpha(s);break;case"ca":this.setFillAlpha(s);break;default:(0,r.warn)("Unimplemented graphic state operator ".concat(n))}}}catch(e){a.e(e)}finally{a.f()}}},{key:"fill",value:function(){var e=this.current;e.element&&(e.element.setAttributeNS(null,"fill",e.fillColor),e.element.setAttributeNS(null,"fill-opacity",e.fillAlpha),this.endPath())}},{key:"stroke",value:function(){var e=this.current;e.element&&(this._setStrokeAttributes(e.element),e.element.setAttributeNS(null,"fill","none"),this.endPath())}},{key:"_setStrokeAttributes",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:1,a=this.current,i=a.dashArray;1!==t&&i.length>0&&(i=i.map((function(e){return t*e}))),e.setAttributeNS(null,"stroke",a.strokeColor),e.setAttributeNS(null,"stroke-opacity",a.strokeAlpha),e.setAttributeNS(null,"stroke-miterlimit",h(a.miterLimit)),e.setAttributeNS(null,"stroke-linecap",a.lineCap),e.setAttributeNS(null,"stroke-linejoin",a.lineJoin),e.setAttributeNS(null,"stroke-width",h(t*a.lineWidth)+"px"),e.setAttributeNS(null,"stroke-dasharray",i.map(h).join(" ")),e.setAttributeNS(null,"stroke-dashoffset",h(t*a.dashPhase)+"px")}},{key:"eoFill",value:function(){var e;null===(e=this.current.element)||void 0===e||e.setAttributeNS(null,"fill-rule","evenodd"),this.fill()}},{key:"fillStroke",value:function(){this.stroke(),this.fill()}},{key:"eoFillStroke",value:function(){var e;null===(e=this.current.element)||void 0===e||e.setAttributeNS(null,"fill-rule","evenodd"),this.fillStroke()}},{key:"closeStroke",value:function(){this.closePath(),this.stroke()}},{key:"closeFillStroke",value:function(){this.closePath(),this.fillStroke()}},{key:"closeEOFillStroke",value:function(){this.closePath(),this.eoFillStroke()}},{key:"paintSolidColorImageMask",value:function(){var e=this.svgFactory.createElement("svg:rect");e.setAttributeNS(null,"x","0"),e.setAttributeNS(null,"y","0"),e.setAttributeNS(null,"width","1px"),e.setAttributeNS(null,"height","1px"),e.setAttributeNS(null,"fill",this.current.fillColor),this._ensureTransformGroup().append(e)}},{key:"paintImageXObject",value:function(e){var t=this.getObject(e);t?this.paintInlineImageXObject(t):(0,r.warn)("Dependent image with object ID ".concat(e," is not ready yet"))}},{key:"paintInlineImageXObject",value:function(e,t){var a=e.width,i=e.height,r=u(e,this.forceDataSchema,!!t),n=this.svgFactory.createElement("svg:rect");n.setAttributeNS(null,"x","0"),n.setAttributeNS(null,"y","0"),n.setAttributeNS(null,"width",h(a)),n.setAttributeNS(null,"height",h(i)),this.current.element=n,this.clip("nonzero");var s=this.svgFactory.createElement("svg:image");s.setAttributeNS("http://www.w3.org/1999/xlink","xlink:href",r),s.setAttributeNS(null,"x","0"),s.setAttributeNS(null,"y",h(-i)),s.setAttributeNS(null,"width",h(a)+"px"),s.setAttributeNS(null,"height",h(i)+"px"),s.setAttributeNS(null,"transform","scale(".concat(h(1/a)," ").concat(h(-1/i),")")),t?t.append(s):this._ensureTransformGroup().append(s)}},{key:"paintImageMaskXObject",value:function(e){var t=this.getObject(e.data,e);if(t.bitmap)(0,r.warn)("paintImageMaskXObject: ImageBitmap support is not implemented, ensure that the `isOffscreenCanvasSupported` API parameter is disabled.");else{var a=this.current,i=t.width,n=t.height,s=a.fillColor;a.maskId="mask".concat(p++);var o=this.svgFactory.createElement("svg:mask");o.setAttributeNS(null,"id",a.maskId);var l=this.svgFactory.createElement("svg:rect");l.setAttributeNS(null,"x","0"),l.setAttributeNS(null,"y","0"),l.setAttributeNS(null,"width",h(i)),l.setAttributeNS(null,"height",h(n)),l.setAttributeNS(null,"fill",s),l.setAttributeNS(null,"mask","url(#".concat(a.maskId,")")),this.defs.append(o),this._ensureTransformGroup().append(l),this.paintInlineImageXObject(t,o)}}},{key:"paintFormXObjectBegin",value:function(e,t){if(Array.isArray(e)&&6===e.length&&this.transform(e[0],e[1],e[2],e[3],e[4],e[5]),t){var a=t[2]-t[0],i=t[3]-t[1],r=this.svgFactory.createElement("svg:rect");r.setAttributeNS(null,"x",t[0]),r.setAttributeNS(null,"y",t[1]),r.setAttributeNS(null,"width",h(a)),r.setAttributeNS(null,"height",h(i)),this.current.element=r,this.clip("nonzero"),this.endPath()}}},{key:"paintFormXObjectEnd",value:function(){}},{key:"_initialize",value:function(e){var t=this.svgFactory.create(e.width,e.height),a=this.svgFactory.createElement("svg:defs");t.append(a),this.defs=a;var i=this.svgFactory.createElement("svg:g");return i.setAttributeNS(null,"transform",v(e.transform)),t.append(i),this.svg=i,t}},{key:"_ensureClipGroup",value:function(){if(!this.current.clipGroup){var e=this.svgFactory.createElement("svg:g");e.setAttributeNS(null,"clip-path",this.current.activeClipUrl),this.svg.append(e),this.current.clipGroup=e}return this.current.clipGroup}},{key:"_ensureTransformGroup",value:function(){return this.tgrp||(this.tgrp=this.svgFactory.createElement("svg:g"),this.tgrp.setAttributeNS(null,"transform",v(this.transformMatrix)),this.current.activeClipUrl?this._ensureClipGroup().append(this.tgrp):this.svg.append(this.tgrp)),this.tgrp}}])}();t.SVGGraphics=g},function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.XfaText=void 0;var a=function(){function e(){_classCallCheck(this,e)}return _createClass(e,null,[{key:"textContent",value:function(t){var a=[],i={items:a,styles:Object.create(null)};return function t(i){var r;if(i){var n=null,s=i.name;if("#text"===s)n=i.value;else{if(!e.shouldBuildText(s))return;null!=i&&null!==(r=i.attributes)&&void 0!==r&&r.textContent?n=i.attributes.textContent:i.value&&(n=i.value)}if(null!==n&&a.push({str:n}),i.children){var o,l=_createForOfIteratorHelper(i.children);try{for(l.s();!(o=l.n()).done;)t(o.value)}catch(e){l.e(e)}finally{l.f()}}}}(t),i}},{key:"shouldBuildText",value:function(e){return!("textarea"===e||"input"===e||"option"===e||"select"===e)}}])}();t.XfaText=a},function(e,t,a){Object.defineProperty(t,"__esModule",{value:!0}),t.TextLayerRenderTask=void 0,t.renderTextLayer=function(e){e.textContentSource||!e.textContent&&!e.textContentStream||((0,r.deprecated)("The TextLayerRender `textContent`/`textContentStream` parameters will be removed in the future, please use `textContentSource` instead."),e.textContentSource=e.textContent||e.textContentStream);var t=e.container,a=e.viewport,i=getComputedStyle(t),n=i.getPropertyValue("visibility"),s=parseFloat(i.getPropertyValue("--scale-factor"));"visible"===n&&(!s||Math.abs(s-a.scale)>1e-5)&&console.error("The `--scale-factor` CSS-variable must be set, to the same value as `viewport.scale`, either on the `container`-element itself or higher up in the DOM.");var o=new u(e);return o._render(),o},t.updateTextLayer=function(e){var t=e.container,a=e.viewport,i=e.textDivs,n=e.textDivProperties,s=e.isOffscreenCanvasSupported,l=e.mustRotate,u=void 0===l||l,d=e.mustRescale,h=void 0===d||d;if(u&&(0,r.setLayerDimensions)(t,{rotation:a.rotation}),h){var v,f=o(0,s),p={prevFontSize:null,prevFontFamily:null,div:null,scale:a.scale*(globalThis.devicePixelRatio||1),properties:null,ctx:f},_=_createForOfIteratorHelper(i);try{for(_.s();!(v=_.n()).done;){var g=v.value;p.properties=n.get(g),p.div=g,c(p)}}catch(e){_.e(e)}finally{_.f()}}};var i=a(1),r=a(6),n=30,s=new Map;function o(e,t){var a;if(t&&i.FeatureTest.isOffscreenCanvasSupported)a=new OffscreenCanvas(e,e).getContext("2d",{alpha:!1});else{var r=document.createElement("canvas");r.width=r.height=e,a=r.getContext("2d",{alpha:!1})}return a}function l(e,t,a){var r=document.createElement("span"),l={angle:0,canvasWidth:0,hasText:""!==t.str,hasEOL:t.hasEOL,fontSize:0};e._textDivs.push(r);var c=i.Util.transform(e._transform,t.transform),u=Math.atan2(c[1],c[0]),d=a[t.fontName];d.vertical&&(u+=Math.PI/2);var h,v,f=Math.hypot(c[2],c[3]),p=f*function(e,t){var a=s.get(e);if(a)return a;var i=o(n,t);i.font="".concat(n,"px ").concat(e);var r=i.measureText(""),l=r.fontBoundingBoxAscent,c=Math.abs(r.fontBoundingBoxDescent);if(l){var u=l/(l+c);return s.set(e,u),i.canvas.width=i.canvas.height=0,u}i.strokeStyle="red",i.clearRect(0,0,n,n),i.strokeText("g",0,0);var d=i.getImageData(0,0,n,n).data;c=0;for(var h=d.length-1-3;h>=0;h-=4)if(d[h]>0){c=Math.ceil(h/4/n);break}i.clearRect(0,0,n,n),i.strokeText("A",0,n),l=0;for(var v=0,f=(d=i.getImageData(0,0,n,n).data).length;v<f;v+=4)if(d[v]>0){l=n-Math.floor(v/4/n);break}if(i.canvas.width=i.canvas.height=0,l){var p=l/(l+c);return s.set(e,p),p}return s.set(e,.8),.8}(d.fontFamily,e._isOffscreenCanvasSupported);0===u?(h=c[4],v=c[5]-p):(h=c[4]+p*Math.sin(u),v=c[5]-p*Math.cos(u));var _="calc(var(--scale-factor)*",g=r.style;e._container===e._rootContainer?(g.left="".concat((100*h/e._pageWidth).toFixed(2),"%"),g.top="".concat((100*v/e._pageHeight).toFixed(2),"%")):(g.left="".concat(_).concat(h.toFixed(2),"px)"),g.top="".concat(_).concat(v.toFixed(2),"px)")),g.fontSize="".concat(_).concat(f.toFixed(2),"px)"),g.fontFamily=d.fontFamily,l.fontSize=f,r.setAttribute("role","presentation"),r.textContent=t.str,r.dir=t.dir,e._fontInspectorEnabled&&(r.dataset.fontName=t.fontName),0!==u&&(l.angle=u*(180/Math.PI));var y=!1;if(t.str.length>1)y=!0;else if(" "!==t.str&&t.transform[0]!==t.transform[3]){var m=Math.abs(t.transform[0]),b=Math.abs(t.transform[3]);m!==b&&Math.max(m,b)/Math.min(m,b)>1.5&&(y=!0)}y&&(l.canvasWidth=d.vertical?t.height:t.width),e._textDivProperties.set(r,l),e._isReadableStream&&e._layoutText(r)}function c(e){var t=e.div,a=e.scale,i=e.properties,r=e.ctx,n=e.prevFontSize,s=e.prevFontFamily,o=t.style,l="";if(0!==i.canvasWidth&&i.hasText){var c=o.fontFamily,u=i.canvasWidth,d=i.fontSize;n===d&&s===c||(r.font="".concat(d*a,"px ").concat(c),e.prevFontSize=d,e.prevFontFamily=c);var h=r.measureText(t.textContent).width;h>0&&(l="scaleX(".concat(u*a/h,")"))}0!==i.angle&&(l="rotate(".concat(i.angle,"deg) ").concat(l)),l.length>0&&(o.transform=l)}var u=function(){return _createClass((function e(t){var a,n=this,s=t.textContentSource,l=t.container,c=t.viewport,u=t.textDivs,d=t.textDivProperties,h=t.textContentItemsStr,v=t.isOffscreenCanvasSupported;_classCallCheck(this,e),this._textContentSource=s,this._isReadableStream=s instanceof ReadableStream,this._container=this._rootContainer=l,this._textDivs=u||[],this._textContentItemsStr=h||[],this._isOffscreenCanvasSupported=v,this._fontInspectorEnabled=!(null===(a=globalThis.FontInspector)||void 0===a||!a.enabled),this._reader=null,this._textDivProperties=d||new WeakMap,this._canceled=!1,this._capability=new i.PromiseCapability,this._layoutTextParams={prevFontSize:null,prevFontFamily:null,div:null,scale:c.scale*(globalThis.devicePixelRatio||1),properties:null,ctx:o(0,v)};var f=c.rawDims,p=f.pageWidth,_=f.pageHeight,g=f.pageX,y=f.pageY;this._transform=[1,0,0,-1,-g,y+_],this._pageWidth=p,this._pageHeight=_,(0,r.setLayerDimensions)(l,c),this._capability.promise.finally((function(){n._layoutTextParams=null})).catch((function(){}))}),[{key:"promise",get:function(){return this._capability.promise}},{key:"cancel",value:function(){this._canceled=!0,this._reader&&(this._reader.cancel(new i.AbortException("TextLayer task cancelled.")).catch((function(){})),this._reader=null),this._capability.reject(new i.AbortException("TextLayer task cancelled."))}},{key:"_processItems",value:function(e,t){var a,i=_createForOfIteratorHelper(e);try{for(i.s();!(a=i.n()).done;){var r=a.value;if(void 0!==r.str)this._textContentItemsStr.push(r.str),l(this,r,t);else if("beginMarkedContentProps"===r.type||"beginMarkedContent"===r.type){var n=this._container;this._container=document.createElement("span"),this._container.classList.add("markedContent"),null!==r.id&&this._container.setAttribute("id","".concat(r.id)),n.append(this._container)}else"endMarkedContent"===r.type&&(this._container=this._container.parentNode)}}catch(e){i.e(e)}finally{i.f()}}},{key:"_layoutText",value:function(e){var t=this._layoutTextParams.properties=this._textDivProperties.get(e);if(this._layoutTextParams.div=e,c(this._layoutTextParams),t.hasText&&this._container.append(e),t.hasEOL){var a=document.createElement("br");a.setAttribute("role","presentation"),this._container.append(a)}}},{key:"_render",value:function(){var e=this,t=new i.PromiseCapability,a=Object.create(null);if(this._isReadableStream){var r=function(){e._reader.read().then((function(i){var n=i.value;i.done?t.resolve():(Object.assign(a,n.styles),e._processItems(n.items,a),r())}),t.reject)};this._reader=this._textContentSource.getReader(),r()}else{if(!this._textContentSource)throw new Error('No "textContentSource" parameter specified.');var n=this._textContentSource,s=n.items,o=n.styles;this._processItems(s,o),t.resolve()}t.promise.then((function(){a=null,function(e){if(!e._canceled){var t=e._textDivs,a=e._capability;if(t.length>1e5)a.resolve();else{if(!e._isReadableStream){var i,r=_createForOfIteratorHelper(t);try{for(r.s();!(i=r.n()).done;){var n=i.value;e._layoutText(n)}}catch(e){r.e(e)}finally{r.f()}}a.resolve()}}}(e)}),this._capability.reject)}}])}();t.TextLayerRenderTask=u},function(e,t,a){Object.defineProperty(t,"__esModule",{value:!0}),t.AnnotationEditorLayer=void 0;var i=a(1),r=a(4),n=a(28),s=a(33),o=a(6),l=a(34),c=new WeakMap,u=new WeakMap,d=new WeakMap,h=new WeakMap,v=new WeakMap,f=new WeakMap,p=new WeakMap,_=new WeakMap,g=new WeakMap,y=new WeakMap,m=new WeakSet,b=function(){return _createClass((function e(t){var a=t.uiManager,i=t.pageIndex,r=t.div,o=t.accessibilityManager,b=t.annotationLayer,k=t.viewport,A=t.l10n;_classCallCheck(this,e),_classPrivateMethodInitSpec(this,m),_classPrivateFieldInitSpec(this,c,void 0),_classPrivateFieldInitSpec(this,u,!1),_classPrivateFieldInitSpec(this,d,null),_classPrivateFieldInitSpec(this,h,this.pointerup.bind(this)),_classPrivateFieldInitSpec(this,v,this.pointerdown.bind(this)),_classPrivateFieldInitSpec(this,f,new Map),_classPrivateFieldInitSpec(this,p,!1),_classPrivateFieldInitSpec(this,_,!1),_classPrivateFieldInitSpec(this,g,!1),_classPrivateFieldInitSpec(this,y,void 0);var P=[n.FreeTextEditor,s.InkEditor,l.StampEditor];if(!e._initialized){e._initialized=!0;var F,S=_createForOfIteratorHelper(P);try{for(S.s();!(F=S.n()).done;)F.value.initialize(A)}catch(e){S.e(e)}finally{S.f()}}a.registerEditorTypes(P),_classPrivateFieldSet(y,this,a),this.pageIndex=i,this.div=r,_classPrivateFieldSet(c,this,o),_classPrivateFieldSet(d,this,b),this.viewport=k,_classPrivateFieldGet(y,this).addLayer(this)}),[{key:"isEmpty",get:function(){return 0===_classPrivateFieldGet(f,this).size}},{key:"updateToolbar",value:function(e){_classPrivateFieldGet(y,this).updateToolbar(e)}},{key:"updateMode",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:_classPrivateFieldGet(y,this).getMode();_assertClassBrand(m,this,F).call(this),e===i.AnnotationEditorType.INK?(this.addInkEditorIfNeeded(!1),this.disableClick()):this.enableClick(),e!==i.AnnotationEditorType.NONE&&(this.div.classList.toggle("freeTextEditing",e===i.AnnotationEditorType.FREETEXT),this.div.classList.toggle("inkEditing",e===i.AnnotationEditorType.INK),this.div.classList.toggle("stampEditing",e===i.AnnotationEditorType.STAMP),this.div.hidden=!1)}},{key:"addInkEditorIfNeeded",value:function(e){if(e||_classPrivateFieldGet(y,this).getMode()===i.AnnotationEditorType.INK){if(!e){var t,a=_createForOfIteratorHelper(_classPrivateFieldGet(f,this).values());try{for(a.s();!(t=a.n()).done;){var r=t.value;if(r.isEmpty())return void r.setInBackground()}}catch(e){a.e(e)}finally{a.f()}}_assertClassBrand(m,this,A).call(this,{offsetX:0,offsetY:0},!1).setInBackground()}}},{key:"setEditingState",value:function(e){_classPrivateFieldGet(y,this).setEditingState(e)}},{key:"addCommands",value:function(e){_classPrivateFieldGet(y,this).addCommands(e)}},{key:"enable",value:function(){this.div.style.pointerEvents="auto";var e,t=new Set,a=_createForOfIteratorHelper(_classPrivateFieldGet(f,this).values());try{for(a.s();!(e=a.n()).done;){var i=e.value;i.enableEditing(),i.annotationElementId&&t.add(i.annotationElementId)}}catch(e){a.e(e)}finally{a.f()}if(_classPrivateFieldGet(d,this)){var r,n=_createForOfIteratorHelper(_classPrivateFieldGet(d,this).getEditableAnnotations());try{for(n.s();!(r=n.n()).done;){var s=r.value;if(s.hide(),!_classPrivateFieldGet(y,this).isDeletedAnnotationElement(s.data.id)&&!t.has(s.data.id)){var o=this.deserialize(s);o&&(this.addOrRebuild(o),o.enableEditing())}}}catch(e){n.e(e)}finally{n.f()}}}},{key:"disable",value:function(){_classPrivateFieldSet(g,this,!0),this.div.style.pointerEvents="none";var e,t=new Set,a=_createForOfIteratorHelper(_classPrivateFieldGet(f,this).values());try{for(a.s();!(e=a.n()).done;){var i,r=e.value;r.disableEditing(),r.annotationElementId&&null===r.serialize()?(null===(i=this.getEditableAnnotation(r.annotationElementId))||void 0===i||i.show(),r.remove()):t.add(r.annotationElementId)}}catch(e){a.e(e)}finally{a.f()}if(_classPrivateFieldGet(d,this)){var n,s=_createForOfIteratorHelper(_classPrivateFieldGet(d,this).getEditableAnnotations());try{for(s.s();!(n=s.n()).done;){var o=n.value,l=o.data.id;t.has(l)||_classPrivateFieldGet(y,this).isDeletedAnnotationElement(l)||o.show()}}catch(e){s.e(e)}finally{s.f()}}_assertClassBrand(m,this,F).call(this),this.isEmpty&&(this.div.hidden=!0),_classPrivateFieldSet(g,this,!1)}},{key:"getEditableAnnotation",value:function(e){var t;return(null===(t=_classPrivateFieldGet(d,this))||void 0===t?void 0:t.getEditableAnnotation(e))||null}},{key:"setActiveEditor",value:function(e){_classPrivateFieldGet(y,this).getActive()!==e&&_classPrivateFieldGet(y,this).setActiveEditor(e)}},{key:"enableClick",value:function(){this.div.addEventListener("pointerdown",_classPrivateFieldGet(v,this)),this.div.addEventListener("pointerup",_classPrivateFieldGet(h,this))}},{key:"disableClick",value:function(){this.div.removeEventListener("pointerdown",_classPrivateFieldGet(v,this)),this.div.removeEventListener("pointerup",_classPrivateFieldGet(h,this))}},{key:"attach",value:function(e){_classPrivateFieldGet(f,this).set(e.id,e);var t=e.annotationElementId;t&&_classPrivateFieldGet(y,this).isDeletedAnnotationElement(t)&&_classPrivateFieldGet(y,this).removeDeletedAnnotationElement(e)}},{key:"detach",value:function(e){var t;_classPrivateFieldGet(f,this).delete(e.id),null===(t=_classPrivateFieldGet(c,this))||void 0===t||t.removePointerInTextLayer(e.contentDiv),!_classPrivateFieldGet(g,this)&&e.annotationElementId&&_classPrivateFieldGet(y,this).addDeletedAnnotationElement(e)}},{key:"remove",value:function(e){var t=this;this.detach(e),_classPrivateFieldGet(y,this).removeEditor(e),e.div.contains(document.activeElement)&&setTimeout((function(){_classPrivateFieldGet(y,t).focusMainContainer()}),0),e.div.remove(),e.isAttachedToDOM=!1,_classPrivateFieldGet(_,this)||this.addInkEditorIfNeeded(!1)}},{key:"changeParent",value:function(e){var t;e.parent!==this&&(e.annotationElementId&&(_classPrivateFieldGet(y,this).addDeletedAnnotationElement(e.annotationElementId),r.AnnotationEditor.deleteAnnotationElement(e),e.annotationElementId=null),this.attach(e),null===(t=e.parent)||void 0===t||t.detach(e),e.setParent(this),e.div&&e.isAttachedToDOM&&(e.div.remove(),this.div.append(e.div)))}},{key:"add",value:function(e){if(this.changeParent(e),_classPrivateFieldGet(y,this).addEditor(e),this.attach(e),!e.isAttachedToDOM){var t=e.render();this.div.append(t),e.isAttachedToDOM=!0}e.fixAndSetPosition(),e.onceAdded(),_classPrivateFieldGet(y,this).addToAnnotationStorage(e)}},{key:"moveEditorInDOM",value:function(e){var t;if(e.isAttachedToDOM){var a=document.activeElement;e.div.contains(a)&&(e._focusEventsAllowed=!1,setTimeout((function(){e.div.contains(document.activeElement)?e._focusEventsAllowed=!0:(e.div.addEventListener("focusin",(function(){e._focusEventsAllowed=!0}),{once:!0}),a.focus())}),0)),e._structTreeParentId=null===(t=_classPrivateFieldGet(c,this))||void 0===t?void 0:t.moveElementInDOM(this.div,e.div,e.contentDiv,!0)}}},{key:"addOrRebuild",value:function(e){e.needsToBeRebuilt()?e.rebuild():this.add(e)}},{key:"addUndoableEditor",value:function(e){this.addCommands({cmd:function(){return e._uiManager.rebuild(e)},undo:function(){e.remove()},mustExec:!1})}},{key:"getNextId",value:function(){return _classPrivateFieldGet(y,this).getId()}},{key:"pasteEditor",value:function(e,t){_classPrivateFieldGet(y,this).updateToolbar(e),_classPrivateFieldGet(y,this).updateMode(e);var a=_assertClassBrand(m,this,P).call(this),i=a.offsetX,r=a.offsetY,n=this.getNextId(),s=_assertClassBrand(m,this,k).call(this,_objectSpread({parent:this,id:n,x:i,y:r,uiManager:_classPrivateFieldGet(y,this),isCentered:!0},t));s&&this.add(s)}},{key:"deserialize",value:function(e){var t;switch(null!==(t=e.annotationType)&&void 0!==t?t:e.annotationEditorType){case i.AnnotationEditorType.FREETEXT:return n.FreeTextEditor.deserialize(e,this,_classPrivateFieldGet(y,this));case i.AnnotationEditorType.INK:return s.InkEditor.deserialize(e,this,_classPrivateFieldGet(y,this));case i.AnnotationEditorType.STAMP:return l.StampEditor.deserialize(e,this,_classPrivateFieldGet(y,this))}return null}},{key:"addNewEditor",value:function(){_assertClassBrand(m,this,A).call(this,_assertClassBrand(m,this,P).call(this),!0)}},{key:"setSelected",value:function(e){_classPrivateFieldGet(y,this).setSelected(e)}},{key:"toggleSelected",value:function(e){_classPrivateFieldGet(y,this).toggleSelected(e)}},{key:"isSelected",value:function(e){return _classPrivateFieldGet(y,this).isSelected(e)}},{key:"unselect",value:function(e){_classPrivateFieldGet(y,this).unselect(e)}},{key:"pointerup",value:function(e){var t=i.FeatureTest.platform.isMac;0!==e.button||e.ctrlKey&&t||e.target===this.div&&_classPrivateFieldGet(p,this)&&(_classPrivateFieldSet(p,this,!1),_classPrivateFieldGet(u,this)?_classPrivateFieldGet(y,this).getMode()!==i.AnnotationEditorType.STAMP?_assertClassBrand(m,this,A).call(this,e,!1):_classPrivateFieldGet(y,this).unselectAll():_classPrivateFieldSet(u,this,!0))}},{key:"pointerdown",value:function(e){if(_classPrivateFieldGet(p,this))_classPrivateFieldSet(p,this,!1);else{var t=i.FeatureTest.platform.isMac;if(!(0!==e.button||e.ctrlKey&&t)&&e.target===this.div){_classPrivateFieldSet(p,this,!0);var a=_classPrivateFieldGet(y,this).getActive();_classPrivateFieldSet(u,this,!a||a.isEmpty())}}}},{key:"findNewParent",value:function(e,t,a){var i=_classPrivateFieldGet(y,this).findParent(t,a);return null!==i&&i!==this&&(i.changeParent(e),!0)}},{key:"destroy",value:function(){var e;(null===(e=_classPrivateFieldGet(y,this).getActive())||void 0===e?void 0:e.parent)===this&&(_classPrivateFieldGet(y,this).commitOrRemove(),_classPrivateFieldGet(y,this).setActiveEditor(null));var t,a=_createForOfIteratorHelper(_classPrivateFieldGet(f,this).values());try{for(a.s();!(t=a.n()).done;){var i,r=t.value;null===(i=_classPrivateFieldGet(c,this))||void 0===i||i.removePointerInTextLayer(r.contentDiv),r.setParent(null),r.isAttachedToDOM=!1,r.div.remove()}}catch(e){a.e(e)}finally{a.f()}this.div=null,_classPrivateFieldGet(f,this).clear(),_classPrivateFieldGet(y,this).removeLayer(this)}},{key:"render",value:function(e){var t=e.viewport;this.viewport=t,(0,o.setLayerDimensions)(this.div,t);var a,i=_createForOfIteratorHelper(_classPrivateFieldGet(y,this).getEditors(this.pageIndex));try{for(i.s();!(a=i.n()).done;){var r=a.value;this.add(r)}}catch(e){i.e(e)}finally{i.f()}this.updateMode()}},{key:"update",value:function(e){var t=e.viewport;_classPrivateFieldGet(y,this).commitOrRemove(),this.viewport=t,(0,o.setLayerDimensions)(this.div,{rotation:t.rotation}),this.updateMode()}},{key:"pageDimensions",get:function(){var e=this.viewport.rawDims;return[e.pageWidth,e.pageHeight]}}])}();function k(e){switch(_classPrivateFieldGet(y,this).getMode()){case i.AnnotationEditorType.FREETEXT:return new n.FreeTextEditor(e);case i.AnnotationEditorType.INK:return new s.InkEditor(e);case i.AnnotationEditorType.STAMP:return new l.StampEditor(e)}return null}function A(e,t){var a=this.getNextId(),i=_assertClassBrand(m,this,k).call(this,{parent:this,id:a,x:e.offsetX,y:e.offsetY,uiManager:_classPrivateFieldGet(y,this),isCentered:t});return i&&this.add(i),i}function P(){var e=this.div.getBoundingClientRect(),t=e.x,a=e.y,i=e.width,r=e.height,n=Math.max(0,t),s=Math.max(0,a),o=(n+Math.min(window.innerWidth,t+i))/2-t,l=(s+Math.min(window.innerHeight,a+r))/2-a,c=_slicedToArray(this.viewport.rotation%180==0?[o,l]:[l,o],2);return{offsetX:c[0],offsetY:c[1]}}function F(){_classPrivateFieldSet(_,this,!0);var e,t=_createForOfIteratorHelper(_classPrivateFieldGet(f,this).values());try{for(t.s();!(e=t.n()).done;){var a=e.value;a.isEmpty()&&a.remove()}}catch(e){t.e(e)}finally{t.f()}_classPrivateFieldSet(_,this,!1)}_defineProperty(b,"_initialized",!1),t.AnnotationEditorLayer=b},function(e,t,a){var i;Object.defineProperty(t,"__esModule",{value:!0}),t.FreeTextEditor=void 0;var r=a(1),n=a(5),s=a(4),o=a(29),l=new WeakMap,c=new WeakMap,u=new WeakMap,d=new WeakMap,h=new WeakMap,v=new WeakMap,f=new WeakMap,p=new WeakMap,_=new WeakMap,g=new WeakSet,y=function(e){function t(e){var a;return _classCallCheck(this,t),_classPrivateMethodInitSpec(a=_callSuper(this,t,[_objectSpread(_objectSpread({},e),{},{name:"freeTextEditor"})]),g),_classPrivateFieldInitSpec(a,l,a.editorDivBlur.bind(a)),_classPrivateFieldInitSpec(a,c,a.editorDivFocus.bind(a)),_classPrivateFieldInitSpec(a,u,a.editorDivInput.bind(a)),_classPrivateFieldInitSpec(a,d,a.editorDivKeydown.bind(a)),_classPrivateFieldInitSpec(a,h,void 0),_classPrivateFieldInitSpec(a,v,""),_classPrivateFieldInitSpec(a,f,"".concat(a.id,"-editor")),_classPrivateFieldInitSpec(a,p,void 0),_classPrivateFieldInitSpec(a,_,null),_classPrivateFieldSet(h,a,e.color||t._defaultColor||s.AnnotationEditor._defaultLineColor),_classPrivateFieldSet(p,a,e.fontSize||t._defaultFontSize),a}return _inherits(t,e),_createClass(t,[{key:"updateParams",value:function(e,t){switch(e){case r.AnnotationEditorParamsType.FREETEXT_SIZE:_assertClassBrand(g,this,m).call(this,t);break;case r.AnnotationEditorParamsType.FREETEXT_COLOR:_assertClassBrand(g,this,b).call(this,t)}}},{key:"propertiesToUpdate",get:function(){return[[r.AnnotationEditorParamsType.FREETEXT_SIZE,_classPrivateFieldGet(p,this)],[r.AnnotationEditorParamsType.FREETEXT_COLOR,_classPrivateFieldGet(h,this)]]}},{key:"_translateEmpty",value:function(e,t){this._uiManager.translateSelectedEditors(e,t,!0)}},{key:"getInitialTranslation",value:function(){var e=this.parentScale;return[-t._internalPadding*e,-(t._internalPadding+_classPrivateFieldGet(p,this))*e]}},{key:"rebuild",value:function(){this.parent&&(_superPropGet(t,"rebuild",this,3)([]),null!==this.div&&(this.isAttachedToDOM||this.parent.add(this)))}},{key:"enableEditMode",value:function(){this.isInEditMode()||(this.parent.setEditingState(!1),this.parent.updateToolbar(r.AnnotationEditorType.FREETEXT),_superPropGet(t,"enableEditMode",this,3)([]),this.overlayDiv.classList.remove("enabled"),this.editorDiv.contentEditable=!0,this._isDraggable=!1,this.div.removeAttribute("aria-activedescendant"),this.editorDiv.addEventListener("keydown",_classPrivateFieldGet(d,this)),this.editorDiv.addEventListener("focus",_classPrivateFieldGet(c,this)),this.editorDiv.addEventListener("blur",_classPrivateFieldGet(l,this)),this.editorDiv.addEventListener("input",_classPrivateFieldGet(u,this)))}},{key:"disableEditMode",value:function(){this.isInEditMode()&&(this.parent.setEditingState(!0),_superPropGet(t,"disableEditMode",this,3)([]),this.overlayDiv.classList.add("enabled"),this.editorDiv.contentEditable=!1,this.div.setAttribute("aria-activedescendant",_classPrivateFieldGet(f,this)),this._isDraggable=!0,this.editorDiv.removeEventListener("keydown",_classPrivateFieldGet(d,this)),this.editorDiv.removeEventListener("focus",_classPrivateFieldGet(c,this)),this.editorDiv.removeEventListener("blur",_classPrivateFieldGet(l,this)),this.editorDiv.removeEventListener("input",_classPrivateFieldGet(u,this)),this.div.focus({preventScroll:!0}),this.isEditing=!1,this.parent.div.classList.add("freeTextEditing"))}},{key:"focusin",value:function(e){this._focusEventsAllowed&&(_superPropGet(t,"focusin",this,3)([e]),e.target!==this.editorDiv&&this.editorDiv.focus())}},{key:"onceAdded",value:function(){var e;this.width?_assertClassBrand(g,this,S).call(this):(this.enableEditMode(),this.editorDiv.focus(),null!==(e=this._initialOptions)&&void 0!==e&&e.isCentered&&this.center(),this._initialOptions=null)}},{key:"isEmpty",value:function(){return!this.editorDiv||""===this.editorDiv.innerText.trim()}},{key:"remove",value:function(){this.isEditing=!1,this.parent&&(this.parent.setEditingState(!0),this.parent.div.classList.add("freeTextEditing")),_superPropGet(t,"remove",this,3)([])}},{key:"commit",value:function(){var e=this;if(this.isInEditMode()){_superPropGet(t,"commit",this,3)([]),this.disableEditMode();var a=_classPrivateFieldGet(v,this),i=_classPrivateFieldSet(v,this,_assertClassBrand(g,this,k).call(this).trimEnd());if(a!==i){var r=function(t){_classPrivateFieldSet(v,e,t),t?(_assertClassBrand(g,e,P).call(e),e._uiManager.rebuild(e),_assertClassBrand(g,e,A).call(e)):e.remove()};this.addCommands({cmd:function(){r(i)},undo:function(){r(a)},mustExec:!1}),_assertClassBrand(g,this,A).call(this)}}}},{key:"shouldGetKeyboardEvents",value:function(){return this.isInEditMode()}},{key:"enterInEditMode",value:function(){this.enableEditMode(),this.editorDiv.focus()}},{key:"dblclick",value:function(e){this.enterInEditMode()}},{key:"keydown",value:function(e){e.target===this.div&&"Enter"===e.key&&(this.enterInEditMode(),e.preventDefault())}},{key:"editorDivKeydown",value:function(e){t._keyboardManager.exec(this,e)}},{key:"editorDivFocus",value:function(e){this.isEditing=!0}},{key:"editorDivBlur",value:function(e){this.isEditing=!1}},{key:"editorDivInput",value:function(e){this.parent.div.classList.toggle("freeTextEditing",this.isEmpty())}},{key:"disableEditing",value:function(){this.editorDiv.setAttribute("role","comment"),this.editorDiv.removeAttribute("aria-multiline")}},{key:"enableEditing",value:function(){this.editorDiv.setAttribute("role","textbox"),this.editorDiv.setAttribute("aria-multiline",!0)}},{key:"render",value:function(){var e,a,i=this;if(this.div)return this.div;this.width&&(e=this.x,a=this.y),_superPropGet(t,"render",this,3)([]),this.editorDiv=document.createElement("div"),this.editorDiv.className="internal",this.editorDiv.setAttribute("id",_classPrivateFieldGet(f,this)),this.enableEditing(),s.AnnotationEditor._l10nPromise.get("editor_free_text2_aria_label").then((function(e){var t;return null===(t=i.editorDiv)||void 0===t?void 0:t.setAttribute("aria-label",e)})),s.AnnotationEditor._l10nPromise.get("free_text2_default_content").then((function(e){var t;return null===(t=i.editorDiv)||void 0===t?void 0:t.setAttribute("default-content",e)})),this.editorDiv.contentEditable=!0;var r=this.editorDiv.style;if(r.fontSize="calc(".concat(_classPrivateFieldGet(p,this),"px * var(--scale-factor))"),r.color=_classPrivateFieldGet(h,this),this.div.append(this.editorDiv),this.overlayDiv=document.createElement("div"),this.overlayDiv.classList.add("overlay","enabled"),this.div.append(this.overlayDiv),(0,n.bindEvents)(this,this.div,["dblclick","keydown"]),this.width){var o=_slicedToArray(this.parentDimensions,2),l=o[0],c=o[1];if(this.annotationElementId){var u=_classPrivateFieldGet(_,this).position,d=_slicedToArray(this.getInitialTranslation(),2),v=d[0],y=d[1],m=_slicedToArray(this.pageTranslationToScreen(v,y),2);v=m[0],y=m[1];var b,k,A=_slicedToArray(this.pageDimensions,2),F=A[0],S=A[1],C=_slicedToArray(this.pageTranslation,2),w=C[0],x=C[1];switch(this.rotation){case 0:b=e+(u[0]-w)/F,k=a+this.height-(u[1]-x)/S;break;case 90:b=e+(u[0]-w)/F,k=a-(u[1]-x)/S;var E=[y,-v];v=E[0],y=E[1];break;case 180:b=e-this.width+(u[0]-w)/F,k=a-(u[1]-x)/S;var T=[-v,-y];v=T[0],y=T[1];break;case 270:b=e+(u[0]-w-this.height*S)/F,k=a+(u[1]-x-this.width*F)/S;var M=[-y,v];v=M[0],y=M[1]}this.setAt(b*l,k*c,v,y)}else this.setAt(e*l,a*c,this.width*l,this.height*c);_assertClassBrand(g,this,P).call(this),this._isDraggable=!0,this.editorDiv.contentEditable=!1}else this._isDraggable=!1,this.editorDiv.contentEditable=!0;return this.div}},{key:"contentDiv",get:function(){return this.editorDiv}},{key:"serialize",value:function(){var e=arguments.length>0&&void 0!==arguments[0]&&arguments[0];if(this.isEmpty())return null;if(this.deleted)return{pageIndex:this.pageIndex,id:this.annotationElementId,deleted:!0};var a=t._internalPadding*this.parentScale,i=this.getRect(a,a),n=s.AnnotationEditor._colorManager.convert(this.isAttachedToDOM?getComputedStyle(this.editorDiv).color:_classPrivateFieldGet(h,this)),o={annotationType:r.AnnotationEditorType.FREETEXT,color:n,fontSize:_classPrivateFieldGet(p,this),value:_classPrivateFieldGet(v,this),pageIndex:this.pageIndex,rect:i,rotation:this.rotation,structTreeParentId:this._structTreeParentId};return e?o:this.annotationElementId&&!_assertClassBrand(g,this,F).call(this,o)?null:(o.id=this.annotationElementId,o)}}],[{key:"_keyboardManager",get:function(){var e=t.prototype,a=function(e){return e.isEmpty()},i=n.AnnotationEditorUIManager.TRANSLATE_SMALL,s=n.AnnotationEditorUIManager.TRANSLATE_BIG;return(0,r.shadow)(this,"_keyboardManager",new n.KeyboardManager([[["ctrl+s","mac+meta+s","ctrl+p","mac+meta+p"],e.commitOrRemove,{bubbles:!0}],[["ctrl+Enter","mac+meta+Enter","Escape","mac+Escape"],e.commitOrRemove],[["ArrowLeft","mac+ArrowLeft"],e._translateEmpty,{args:[-i,0],checker:a}],[["ctrl+ArrowLeft","mac+shift+ArrowLeft"],e._translateEmpty,{args:[-s,0],checker:a}],[["ArrowRight","mac+ArrowRight"],e._translateEmpty,{args:[i,0],checker:a}],[["ctrl+ArrowRight","mac+shift+ArrowRight"],e._translateEmpty,{args:[s,0],checker:a}],[["ArrowUp","mac+ArrowUp"],e._translateEmpty,{args:[0,-i],checker:a}],[["ctrl+ArrowUp","mac+shift+ArrowUp"],e._translateEmpty,{args:[0,-s],checker:a}],[["ArrowDown","mac+ArrowDown"],e._translateEmpty,{args:[0,i],checker:a}],[["ctrl+ArrowDown","mac+shift+ArrowDown"],e._translateEmpty,{args:[0,s],checker:a}]]))}},{key:"initialize",value:function(e){s.AnnotationEditor.initialize(e,{strings:["free_text2_default_content","editor_free_text2_aria_label"]});var t=getComputedStyle(document.documentElement);this._internalPadding=parseFloat(t.getPropertyValue("--freetext-padding"))}},{key:"updateDefaultParams",value:function(e,a){switch(e){case r.AnnotationEditorParamsType.FREETEXT_SIZE:t._defaultFontSize=a;break;case r.AnnotationEditorParamsType.FREETEXT_COLOR:t._defaultColor=a}}},{key:"defaultPropertiesToUpdate",get:function(){return[[r.AnnotationEditorParamsType.FREETEXT_SIZE,t._defaultFontSize],[r.AnnotationEditorParamsType.FREETEXT_COLOR,t._defaultColor||s.AnnotationEditor._defaultLineColor]]}},{key:"deserialize",value:function(e,a,i){var n,s=null;if(e instanceof o.FreeTextAnnotationElement){var l=e,c=l.data,u=c.defaultAppearanceData,d=u.fontSize,f=u.fontColor,g=c.rect,y=c.rotation,m=c.id,b=l.textContent,k=l.textPosition,A=l.parent.page.pageNumber;if(!b||0===b.length)return null;s=e={annotationType:r.AnnotationEditorType.FREETEXT,color:Array.from(f),fontSize:d,value:b.join("\n"),position:k,pageIndex:A-1,rect:g,rotation:y,id:m,deleted:!1}}var P=_superPropGet(t,"deserialize",this,2)([e,a,i]);return _classPrivateFieldSet(p,P,e.fontSize),_classPrivateFieldSet(h,P,(n=r.Util).makeHexColor.apply(n,_toConsumableArray(e.color))),_classPrivateFieldSet(v,P,e.value),P.annotationElementId=e.id||null,_classPrivateFieldSet(_,P,s),P}}])}(s.AnnotationEditor);function m(e){var t=this,a=function(e){t.editorDiv.style.fontSize="calc(".concat(e,"px * var(--scale-factor))"),t.translate(0,-(e-_classPrivateFieldGet(p,t))*t.parentScale),_classPrivateFieldSet(p,t,e),_assertClassBrand(g,t,A).call(t)},i=_classPrivateFieldGet(p,this);this.addCommands({cmd:function(){a(e)},undo:function(){a(i)},mustExec:!0,type:r.AnnotationEditorParamsType.FREETEXT_SIZE,overwriteIfSameType:!0,keepUndo:!0})}function b(e){var t=this,a=_classPrivateFieldGet(h,this);this.addCommands({cmd:function(){_classPrivateFieldSet(h,t,t.editorDiv.style.color=e)},undo:function(){_classPrivateFieldSet(h,t,t.editorDiv.style.color=a)},mustExec:!0,type:r.AnnotationEditorParamsType.FREETEXT_COLOR,overwriteIfSameType:!0,keepUndo:!0})}function k(){var e=this.editorDiv.getElementsByTagName("div");if(0===e.length)return this.editorDiv.innerText;var t,a=[],i=_createForOfIteratorHelper(e);try{for(i.s();!(t=i.n()).done;){var r=t.value;a.push(r.innerText.replace(/\r\n?|\n/,""))}}catch(e){i.e(e)}finally{i.f()}return a.join("\n")}function A(){var e,t=_slicedToArray(this.parentDimensions,2),a=t[0],i=t[1];if(this.isAttachedToDOM)e=this.div.getBoundingClientRect();else{var r=this.currentLayer,n=this.div,s=n.style.display;n.style.display="hidden",r.div.append(this.div),e=n.getBoundingClientRect(),n.remove(),n.style.display=s}this.rotation%180==this.parentRotation%180?(this.width=e.width/a,this.height=e.height/i):(this.width=e.height/a,this.height=e.width/i),this.fixAndSetPosition()}function P(){if(this.editorDiv.replaceChildren(),_classPrivateFieldGet(v,this)){var e,t=_createForOfIteratorHelper(_classPrivateFieldGet(v,this).split("\n"));try{for(t.s();!(e=t.n()).done;){var a=e.value,i=document.createElement("div");i.append(a?document.createTextNode(a):document.createElement("br")),this.editorDiv.append(i)}}catch(e){t.e(e)}finally{t.f()}}}function F(e){var t=_classPrivateFieldGet(_,this),a=t.value,i=t.fontSize,r=t.color,n=t.rect,s=t.pageIndex;return e.value!==a||e.fontSize!==i||e.rect.some((function(e,t){return Math.abs(e-n[t])>=1}))||e.color.some((function(e,t){return e!==r[t]}))||e.pageIndex!==s}function S(){var e=this,t=arguments.length>0&&void 0!==arguments[0]&&arguments[0];if(this.annotationElementId)if(_assertClassBrand(g,this,A).call(this),t||0!==this.width&&0!==this.height){var a=i._internalPadding*this.parentScale;_classPrivateFieldGet(_,this).rect=this.getRect(a,a)}else setTimeout((function(){return _assertClassBrand(g,e,S).call(e,!0)}),0)}i=y,_defineProperty(y,"_freeTextDefaultContent",""),_defineProperty(y,"_internalPadding",0),_defineProperty(y,"_defaultColor",null),_defineProperty(y,"_defaultFontSize",10),_defineProperty(y,"_type","freetext"),t.FreeTextEditor=y},function(e,t,a){Object.defineProperty(t,"__esModule",{value:!0}),t.StampAnnotationElement=t.InkAnnotationElement=t.FreeTextAnnotationElement=t.AnnotationLayer=void 0;var i=a(1),r=a(6),n=a(3),s=a(30),o=a(31),l=a(32),c=1e3,u=new WeakSet;function d(e){return{width:e[2]-e[0],height:e[3]-e[1]}}var h=function(){return _createClass((function e(){_classCallCheck(this,e)}),null,[{key:"create",value:function(e){switch(e.data.annotationType){case i.AnnotationType.LINK:return new _(e);case i.AnnotationType.TEXT:return new m(e);case i.AnnotationType.WIDGET:switch(e.data.fieldType){case"Tx":return new k(e);case"Btn":return e.data.radioButton?new F(e):e.data.checkBox?new P(e):new S(e);case"Ch":return new C(e);case"Sig":return new A(e)}return new b(e);case i.AnnotationType.POPUP:return new w(e);case i.AnnotationType.FREETEXT:return new Q(e);case i.AnnotationType.LINE:return new $(e);case i.AnnotationType.SQUARE:return new te(e);case i.AnnotationType.CIRCLE:return new ie(e);case i.AnnotationType.POLYLINE:return new ne(e);case i.AnnotationType.CARET:return new oe(e);case i.AnnotationType.INK:return new ce(e);case i.AnnotationType.POLYGON:return new se(e);case i.AnnotationType.HIGHLIGHT:return new ue(e);case i.AnnotationType.UNDERLINE:return new de(e);case i.AnnotationType.SQUIGGLY:return new he(e);case i.AnnotationType.STRIKEOUT:return new ve(e);case i.AnnotationType.STAMP:return new fe(e);case i.AnnotationType.FILEATTACHMENT:return new ge(e);default:return new f(e)}}}])}(),v=new WeakMap,f=function(){function e(t){var a=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},i=a.isRenderable,r=void 0!==i&&i,n=a.ignoreBorder,s=void 0!==n&&n,o=a.createQuadrilaterals,l=void 0!==o&&o;_classCallCheck(this,e),_classPrivateFieldInitSpec(this,v,!1),this.isRenderable=r,this.data=t.data,this.layer=t.layer,this.linkService=t.linkService,this.downloadManager=t.downloadManager,this.imageResourcesPath=t.imageResourcesPath,this.renderForms=t.renderForms,this.svgFactory=t.svgFactory,this.annotationStorage=t.annotationStorage,this.enableScripting=t.enableScripting,this.hasJSActions=t.hasJSActions,this._fieldObjects=t.fieldObjects,this.parent=t.parent,r&&(this.container=this._createContainer(s)),l&&this._createQuadrilaterals()}return _createClass(e,[{key:"hasPopupData",get:function(){return e._hasPopupData(this.data)}},{key:"_createContainer",value:function(e){var t=this.data,a=this.parent,r=a.page,n=a.viewport,s=document.createElement("section");s.setAttribute("data-annotation-id",t.id),this instanceof b||(s.tabIndex=c),s.style.zIndex=this.parent.zIndex++,this.data.popupRef&&s.setAttribute("aria-haspopup","dialog"),t.noRotate&&s.classList.add("norotate");var o=n.rawDims,l=o.pageWidth,u=o.pageHeight,h=o.pageX,f=o.pageY;if(!t.rect||this instanceof w){var p=t.rotation;return t.hasOwnCanvas||0===p||this.setRotation(p,s),s}var _=d(t.rect),g=_.width,y=_.height,m=i.Util.normalizeRect([t.rect[0],r.view[3]-t.rect[1]+r.view[1],t.rect[2],r.view[3]-t.rect[3]+r.view[1]]);if(!e&&t.borderStyle.width>0){s.style.borderWidth="".concat(t.borderStyle.width,"px");var k=t.borderStyle.horizontalCornerRadius,A=t.borderStyle.verticalCornerRadius;if(k>0||A>0){var P="calc(".concat(k,"px * var(--scale-factor)) / calc(").concat(A,"px * var(--scale-factor))");s.style.borderRadius=P}else if(this instanceof F){var S="calc(".concat(g,"px * var(--scale-factor)) / calc(").concat(y,"px * var(--scale-factor))");s.style.borderRadius=S}switch(t.borderStyle.style){case i.AnnotationBorderStyleType.SOLID:s.style.borderStyle="solid";break;case i.AnnotationBorderStyleType.DASHED:s.style.borderStyle="dashed";break;case i.AnnotationBorderStyleType.BEVELED:(0,i.warn)("Unimplemented border style: beveled");break;case i.AnnotationBorderStyleType.INSET:(0,i.warn)("Unimplemented border style: inset");break;case i.AnnotationBorderStyleType.UNDERLINE:s.style.borderBottomStyle="solid"}var C=t.borderColor||null;C?(_classPrivateFieldSet(v,this,!0),s.style.borderColor=i.Util.makeHexColor(0|C[0],0|C[1],0|C[2])):s.style.borderWidth=0}s.style.left="".concat(100*(m[0]-h)/l,"%"),s.style.top="".concat(100*(m[1]-f)/u,"%");var x=t.rotation;return t.hasOwnCanvas||0===x?(s.style.width="".concat(100*g/l,"%"),s.style.height="".concat(100*y/u,"%")):this.setRotation(x,s),s}},{key:"setRotation",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:this.container;if(this.data.rect){var a,i,r=this.parent.viewport.rawDims,n=r.pageWidth,s=r.pageHeight,o=d(this.data.rect),l=o.width,c=o.height;e%180==0?(a=100*l/n,i=100*c/s):(a=100*c/n,i=100*l/s),t.style.width="".concat(a,"%"),t.style.height="".concat(i,"%"),t.setAttribute("data-main-rotation",(360-e)%360)}}},{key:"_commonActions",get:function(){var e=this,t=function(t,a,i){var r=i.detail[t],n=r[0],o=r.slice(1);i.target.style[a]=s.ColorConverters["".concat(n,"_HTML")](o),e.annotationStorage.setValue(e.data.id,_defineProperty({},a,s.ColorConverters["".concat(n,"_rgb")](o)))};return(0,i.shadow)(this,"_commonActions",{display:function(t){var a=t.detail.display,i=a%2==1;e.container.style.visibility=i?"hidden":"visible",e.annotationStorage.setValue(e.data.id,{noView:i,noPrint:1===a||2===a})},print:function(t){e.annotationStorage.setValue(e.data.id,{noPrint:!t.detail.print})},hidden:function(t){var a=t.detail.hidden;e.container.style.visibility=a?"hidden":"visible",e.annotationStorage.setValue(e.data.id,{noPrint:a,noView:a})},focus:function(e){setTimeout((function(){return e.target.focus({preventScroll:!1})}),0)},userName:function(e){e.target.title=e.detail.userName},readonly:function(e){e.target.disabled=e.detail.readonly},required:function(t){e._setRequired(t.target,t.detail.required)},bgColor:function(e){t("bgColor","backgroundColor",e)},fillColor:function(e){t("fillColor","backgroundColor",e)},fgColor:function(e){t("fgColor","color",e)},textColor:function(e){t("textColor","color",e)},borderColor:function(e){t("borderColor","borderColor",e)},strokeColor:function(e){t("strokeColor","borderColor",e)},rotation:function(t){var a=t.detail.rotation;e.setRotation(a),e.annotationStorage.setValue(e.data.id,{rotation:a})}})}},{key:"_dispatchEventFromSandbox",value:function(e,t){for(var a=this._commonActions,i=0,r=Object.keys(t.detail);i<r.length;i++){var n=r[i],s=e[n]||a[n];null==s||s(t)}}},{key:"_setDefaultPropertiesFromJS",value:function(e){if(this.enableScripting){var t=this.annotationStorage.getRawValue(this.data.id);if(t)for(var a=this._commonActions,i=0,r=Object.entries(t);i<r.length;i++){var n=_slicedToArray(r[i],2),s=n[0],o=n[1],l=a[s];l&&(l({detail:_defineProperty({},s,o),target:e}),delete t[s])}}}},{key:"_createQuadrilaterals",value:function(){if(this.container){var e=this.data.quadPoints;if(e){var t=_slicedToArray(this.data.rect,4),a=t[0],i=t[1],r=t[2],n=t[3];if(1===e.length){var s=_slicedToArray(e[0],3),o=s[1],l=o.x,c=o.y,u=s[2],d=u.x,h=u.y;if(r===l&&n===c&&a===d&&i===h)return}var f,p=this.container.style;if(_classPrivateFieldGet(v,this)){var _=p.borderColor,g=p.borderWidth;p.borderWidth=0,f=["url('data:image/svg+xml;utf8,",'<svg xmlns="http://www.w3.org/2000/svg"',' preserveAspectRatio="none" viewBox="0 0 1 1">','<g fill="transparent" stroke="'.concat(_,'" stroke-width="').concat(g,'">')],this.container.classList.add("hasBorder")}var y=r-a,m=n-i,b=this.svgFactory,k=b.createElement("svg");k.classList.add("quadrilateralsContainer"),k.setAttribute("width",0),k.setAttribute("height",0);var A=b.createElement("defs");k.append(A);var P=b.createElement("clipPath"),F="clippath_".concat(this.data.id);P.setAttribute("id",F),P.setAttribute("clipPathUnits","objectBoundingBox"),A.append(P);var S,C=_createForOfIteratorHelper(e);try{for(C.s();!(S=C.n()).done;){var w,x=_slicedToArray(S.value,3),E=x[1],T=E.x,M=E.y,I=x[2],R=I.x,D=I.y,O=b.createElement("rect"),G=(R-a)/y,L=(n-M)/m,B=(T-R)/y,N=(M-D)/m;O.setAttribute("x",G),O.setAttribute("y",L),O.setAttribute("width",B),O.setAttribute("height",N),P.append(O),null===(w=f)||void 0===w||w.push('<rect vector-effect="non-scaling-stroke" x="'.concat(G,'" y="').concat(L,'" width="').concat(B,'" height="').concat(N,'"/>'))}}catch(e){C.e(e)}finally{C.f()}_classPrivateFieldGet(v,this)&&(f.push("</g></svg>')"),p.backgroundImage=f.join("")),this.container.append(k),this.container.style.clipPath="url(#".concat(F,")")}}}},{key:"_createPopup",value:function(){var e=this.container,t=this.data;e.setAttribute("aria-haspopup","dialog");var a=new w({data:{color:t.color,titleObj:t.titleObj,modificationDate:t.modificationDate,contentsObj:t.contentsObj,richText:t.richText,parentRect:t.rect,borderStyle:0,id:"popup_".concat(t.id),rotation:t.rotation},parent:this.parent,elements:[this]});this.parent.div.append(a.render())}},{key:"render",value:function(){(0,i.unreachable)("Abstract method `AnnotationElement.render` called")}},{key:"_getElementsByName",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null,a=[];if(this._fieldObjects){var r=this._fieldObjects[e];if(r){var n,s=_createForOfIteratorHelper(r);try{for(s.s();!(n=s.n()).done;){var o=n.value,l=o.page,c=o.id,d=o.exportValues;if(-1!==l&&c!==t){var h="string"==typeof d?d:null,v=document.querySelector('[data-element-id="'.concat(c,'"]'));!v||u.has(v)?a.push({id:c,exportValue:h,domElement:v}):(0,i.warn)("_getElementsByName - element not allowed: ".concat(c))}}}catch(e){s.e(e)}finally{s.f()}}return a}var f,p=_createForOfIteratorHelper(document.getElementsByName(e));try{for(p.s();!(f=p.n()).done;){var _=f.value,g=_.exportValue,y=_.getAttribute("data-element-id");y!==t&&u.has(_)&&a.push({id:y,exportValue:g,domElement:_})}}catch(e){p.e(e)}finally{p.f()}return a}},{key:"show",value:function(){var e;this.container&&(this.container.hidden=!1),null===(e=this.popup)||void 0===e||e.maybeShow()}},{key:"hide",value:function(){var e;this.container&&(this.container.hidden=!0),null===(e=this.popup)||void 0===e||e.forceHide()}},{key:"getElementsToTriggerPopup",value:function(){return this.container}},{key:"addHighlightArea",value:function(){var e=this.getElementsToTriggerPopup();if(Array.isArray(e)){var t,a=_createForOfIteratorHelper(e);try{for(a.s();!(t=a.n()).done;)t.value.classList.add("highlightArea")}catch(e){a.e(e)}finally{a.f()}}else e.classList.add("highlightArea")}},{key:"_editOnDoubleClick",value:function(){var e=this,t=this.annotationEditorType,a=this.data.id;this.container.addEventListener("dblclick",(function(){var i;null===(i=e.linkService.eventBus)||void 0===i||i.dispatch("switchannotationeditormode",{source:e,mode:t,editId:a})}))}}],[{key:"_hasPopupData",value:function(e){var t=e.titleObj,a=e.contentsObj,i=e.richText;return!!(null!=t&&t.str||null!=a&&a.str||null!=i&&i.str)}}])}(),p=new WeakSet,_=function(e){function t(e){var a,i=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null;return _classCallCheck(this,t),_classPrivateMethodInitSpec(a=_callSuper(this,t,[e,{isRenderable:!0,ignoreBorder:!(null==i||!i.ignoreBorder),createQuadrilaterals:!0}]),p),a.isTooltipOnly=e.data.isTooltipOnly,a}return _inherits(t,e),_createClass(t,[{key:"render",value:function(){var e=this.data,t=this.linkService,a=document.createElement("a");a.setAttribute("data-element-id",e.id);var i=!1;return e.url?(t.addLinkAttributes(a,e.url,e.newWindow),i=!0):e.action?(this._bindNamedAction(a,e.action),i=!0):e.attachment?(this._bindAttachment(a,e.attachment),i=!0):e.setOCGState?(_assertClassBrand(p,this,y).call(this,a,e.setOCGState),i=!0):e.dest?(this._bindLink(a,e.dest),i=!0):(e.actions&&(e.actions.Action||e.actions["Mouse Up"]||e.actions["Mouse Down"])&&this.enableScripting&&this.hasJSActions&&(this._bindJSAction(a,e),i=!0),e.resetForm?(this._bindResetFormAction(a,e.resetForm),i=!0):this.isTooltipOnly&&!i&&(this._bindLink(a,""),i=!0)),this.container.classList.add("linkAnnotation"),i&&this.container.append(a),this.container}},{key:"_bindLink",value:function(e,t){var a=this;e.href=this.linkService.getDestinationHash(t),e.onclick=function(){return t&&a.linkService.goToDestination(t),!1},(t||""===t)&&_assertClassBrand(p,this,g).call(this)}},{key:"_bindNamedAction",value:function(e,t){var a=this;e.href=this.linkService.getAnchorUrl(""),e.onclick=function(){return a.linkService.executeNamedAction(t),!1},_assertClassBrand(p,this,g).call(this)}},{key:"_bindAttachment",value:function(e,t){var a=this;e.href=this.linkService.getAnchorUrl(""),e.onclick=function(){var e;return null===(e=a.downloadManager)||void 0===e||e.openOrDownloadData(a.container,t.content,t.filename),!1},_assertClassBrand(p,this,g).call(this)}},{key:"_bindJSAction",value:function(e,t){var a=this;e.href=this.linkService.getAnchorUrl("");for(var i=new Map([["Action","onclick"],["Mouse Up","onmouseup"],["Mouse Down","onmousedown"]]),r=function(){var r=s[n],o=i.get(r);if(!o)return 1;e[o]=function(){var e;return null===(e=a.linkService.eventBus)||void 0===e||e.dispatch("dispatcheventinsandbox",{source:a,detail:{id:t.id,name:r}}),!1}},n=0,s=Object.keys(t.actions);n<s.length;n++)r();e.onclick||(e.onclick=function(){return!1}),_assertClassBrand(p,this,g).call(this)}},{key:"_bindResetFormAction",value:function(e,t){var a=this,r=e.onclick;if(r||(e.href=this.linkService.getAnchorUrl("")),_assertClassBrand(p,this,g).call(this),!this._fieldObjects)return(0,i.warn)('_bindResetFormAction - "resetForm" action not supported, ensure that the `fieldObjects` parameter is provided.'),void(r||(e.onclick=function(){return!1}));e.onclick=function(){null==r||r();var e=t.fields,n=t.refs,s=t.include,o=[];if(0!==e.length||0!==n.length){var l,c=new Set(n),d=_createForOfIteratorHelper(e);try{for(d.s();!(l=d.n()).done;){var h,v=l.value,f=_createForOfIteratorHelper(a._fieldObjects[v]||[]);try{for(f.s();!(h=f.n()).done;){var p=h.value.id;c.add(p)}}catch(e){f.e(e)}finally{f.f()}}}catch(e){d.e(e)}finally{d.f()}for(var _=0,g=Object.values(a._fieldObjects);_<g.length;_++){var y,m=_createForOfIteratorHelper(g[_]);try{for(m.s();!(y=m.n()).done;){var b=y.value;c.has(b.id)===s&&o.push(b)}}catch(e){m.e(e)}finally{m.f()}}}else for(var k=0,A=Object.values(a._fieldObjects);k<A.length;k++){var P=A[k];o.push.apply(o,_toConsumableArray(P))}for(var F,S=a.annotationStorage,C=[],w=0,x=o;w<x.length;w++){var E=x[w],T=E.id;switch(C.push(T),E.type){case"text":var M=E.defaultValue||"";S.setValue(T,{value:M});break;case"checkbox":case"radiobutton":var I=E.defaultValue===E.exportValues;S.setValue(T,{value:I});break;case"combobox":case"listbox":var R=E.defaultValue||"";S.setValue(T,{value:R});break;default:continue}var D=document.querySelector('[data-element-id="'.concat(T,'"]'));D&&(u.has(D)?D.dispatchEvent(new Event("resetform")):(0,i.warn)("_bindResetFormAction - element not allowed: ".concat(T)))}return a.enableScripting&&(null===(F=a.linkService.eventBus)||void 0===F||F.dispatch("dispatcheventinsandbox",{source:a,detail:{id:"app",ids:C,name:"ResetForm"}})),!1}}}])}(f);function g(){this.container.setAttribute("data-internal-link","")}function y(e,t){var a=this;e.href=this.linkService.getAnchorUrl(""),e.onclick=function(){return a.linkService.executeSetOCGState(t),!1},_assertClassBrand(p,this,g).call(this)}var m=function(e){function t(e){return _classCallCheck(this,t),_callSuper(this,t,[e,{isRenderable:!0}])}return _inherits(t,e),_createClass(t,[{key:"render",value:function(){this.container.classList.add("textAnnotation");var e=document.createElement("img");return e.src=this.imageResourcesPath+"annotation-"+this.data.name.toLowerCase()+".svg",e.alt="[{{type}} Annotation]",e.dataset.l10nId="text_annotation_type",e.dataset.l10nArgs=JSON.stringify({type:this.data.name}),!this.data.popupRef&&this.hasPopupData&&this._createPopup(),this.container.append(e),this.container}}])}(f),b=function(e){function t(){return _classCallCheck(this,t),_callSuper(this,t,arguments)}return _inherits(t,e),_createClass(t,[{key:"render",value:function(){return this.data.alternativeText&&(this.container.title=this.data.alternativeText),this.container}},{key:"showElementAndHideCanvas",value:function(e){var t;this.data.hasOwnCanvas&&("CANVAS"===(null===(t=e.previousSibling)||void 0===t?void 0:t.nodeName)&&(e.previousSibling.hidden=!0),e.hidden=!1)}},{key:"_getKeyModifier",value:function(e){var t=i.FeatureTest.platform,a=t.isWin,r=t.isMac;return a&&e.ctrlKey||r&&e.metaKey}},{key:"_setEventListener",value:function(e,t,a,i,r){var n=this;a.includes("mouse")?e.addEventListener(a,(function(e){var t;null===(t=n.linkService.eventBus)||void 0===t||t.dispatch("dispatcheventinsandbox",{source:n,detail:{id:n.data.id,name:i,value:r(e),shift:e.shiftKey,modifier:n._getKeyModifier(e)}})})):e.addEventListener(a,(function(e){var s;if("blur"===a){if(!t.focused||!e.relatedTarget)return;t.focused=!1}else if("focus"===a){if(t.focused)return;t.focused=!0}r&&(null===(s=n.linkService.eventBus)||void 0===s||s.dispatch("dispatcheventinsandbox",{source:n,detail:{id:n.data.id,name:i,value:r(e)}}))}))}},{key:"_setEventListeners",value:function(e,t,a,i){var r,n=_createForOfIteratorHelper(a);try{for(n.s();!(r=n.n()).done;){var s,o,l,c=_slicedToArray(r.value,2),u=c[0],d=c[1];("Action"===d||null!==(s=this.data.actions)&&void 0!==s&&s[d])&&("Focus"!==d&&"Blur"!==d||t||(t={focused:!1}),this._setEventListener(e,t,u,d,i),"Focus"!==d||null!==(o=this.data.actions)&&void 0!==o&&o.Blur?"Blur"!==d||null!==(l=this.data.actions)&&void 0!==l&&l.Focus||this._setEventListener(e,t,"focus","Focus",null):this._setEventListener(e,t,"blur","Blur",null))}}catch(e){n.e(e)}finally{n.f()}}},{key:"_setBackgroundColor",value:function(e){var t=this.data.backgroundColor||null;e.style.backgroundColor=null===t?"transparent":i.Util.makeHexColor(t[0],t[1],t[2])}},{key:"_setTextStyle",value:function(e){var t,a=this.data.defaultAppearanceData.fontColor,r=this.data.defaultAppearanceData.fontSize||9,n=e.style,s=function(e){return Math.round(10*e)/10};if(this.data.multiLine){var o=Math.abs(this.data.rect[3]-this.data.rect[1]-2),l=o/(Math.round(o/(i.LINE_FACTOR*r))||1);t=Math.min(r,s(l/i.LINE_FACTOR))}else{var c=Math.abs(this.data.rect[3]-this.data.rect[1]-2);t=Math.min(r,s(c/i.LINE_FACTOR))}n.fontSize="calc(".concat(t,"px * var(--scale-factor))"),n.color=i.Util.makeHexColor(a[0],a[1],a[2]),null!==this.data.textAlignment&&(n.textAlign=["left","center","right"][this.data.textAlignment])}},{key:"_setRequired",value:function(e,t){t?e.setAttribute("required",!0):e.removeAttribute("required"),e.setAttribute("aria-required",t)}}])}(f),k=function(e){function t(e){return _classCallCheck(this,t),_callSuper(this,t,[e,{isRenderable:e.renderForms||!e.data.hasAppearance&&!!e.data.fieldValue}])}return _inherits(t,e),_createClass(t,[{key:"setPropertyOnSiblings",value:function(e,t,a,i){var r,n=this.annotationStorage,s=_createForOfIteratorHelper(this._getElementsByName(e.name,e.id));try{for(s.s();!(r=s.n()).done;){var o=r.value;o.domElement&&(o.domElement[t]=a),n.setValue(o.id,_defineProperty({},i,a))}}catch(e){s.e(e)}finally{s.f()}}},{key:"render",value:function(){var e=this,t=this.annotationStorage,a=this.data.id;this.container.classList.add("textWidgetAnnotation");var i=null;if(this.renderForms){var r,n=t.getValue(a,{value:this.data.fieldValue}),s=n.value||"",o=t.getValue(a,{charLimit:this.data.maxLen}).charLimit;o&&s.length>o&&(s=s.slice(0,o));var l=n.formattedValue||(null===(r=this.data.textContent)||void 0===r?void 0:r.join("\n"))||null;l&&this.data.comb&&(l=l.replaceAll(/\s+/g,""));var d={userValue:s,formattedValue:l,lastCommittedValue:null,commitKey:1,focused:!1};this.data.multiLine?((i=document.createElement("textarea")).textContent=null!=l?l:s,this.data.doNotScroll&&(i.style.overflowY="hidden")):((i=document.createElement("input")).type="text",i.setAttribute("value",null!=l?l:s),this.data.doNotScroll&&(i.style.overflowX="hidden")),this.data.hasOwnCanvas&&(i.hidden=!0),u.add(i),i.setAttribute("data-element-id",a),i.disabled=this.data.readOnly,i.name=this.data.fieldName,i.tabIndex=c,this._setRequired(i,this.data.required),o&&(i.maxLength=o),i.addEventListener("input",(function(r){t.setValue(a,{value:r.target.value}),e.setPropertyOnSiblings(i,"value",r.target.value,"value"),d.formattedValue=null})),i.addEventListener("resetform",(function(t){var a,r=null!==(a=e.data.defaultFieldValue)&&void 0!==a?a:"";i.value=d.userValue=r,d.formattedValue=null}));var h=function(e){var t=d.formattedValue;null!=t&&(e.target.value=t),e.target.scrollLeft=0};if(this.enableScripting&&this.hasJSActions){var v;i.addEventListener("focus",(function(e){if(!d.focused){var t=e.target;d.userValue&&(t.value=d.userValue),d.lastCommittedValue=t.value,d.commitKey=1,d.focused=!0}})),i.addEventListener("updatefromsandbox",(function(i){e.showElementAndHideCanvas(i.target);var r={value:function(e){var i;d.userValue=null!==(i=e.detail.value)&&void 0!==i?i:"",t.setValue(a,{value:d.userValue.toString()}),e.target.value=d.userValue},formattedValue:function(e){var i=e.detail.formattedValue;d.formattedValue=i,null!=i&&e.target!==document.activeElement&&(e.target.value=i),t.setValue(a,{formattedValue:i})},selRange:function(e){var t;(t=e.target).setSelectionRange.apply(t,_toConsumableArray(e.detail.selRange))},charLimit:function(i){var r,n=i.detail.charLimit,s=i.target;if(0!==n){s.setAttribute("maxLength",n);var o=d.userValue;!o||o.length<=n||(o=o.slice(0,n),s.value=d.userValue=o,t.setValue(a,{value:o}),null===(r=e.linkService.eventBus)||void 0===r||r.dispatch("dispatcheventinsandbox",{source:e,detail:{id:a,name:"Keystroke",value:o,willCommit:!0,commitKey:1,selStart:s.selectionStart,selEnd:s.selectionEnd}}))}else s.removeAttribute("maxLength")}};e._dispatchEventFromSandbox(r,i)})),i.addEventListener("keydown",(function(t){var i;d.commitKey=1;var r=-1;if("Escape"===t.key?r=0:"Enter"!==t.key||e.data.multiLine?"Tab"===t.key&&(d.commitKey=3):r=2,-1!==r){var n=t.target.value;d.lastCommittedValue!==n&&(d.lastCommittedValue=n,d.userValue=n,null===(i=e.linkService.eventBus)||void 0===i||i.dispatch("dispatcheventinsandbox",{source:e,detail:{id:a,name:"Keystroke",value:n,willCommit:!0,commitKey:r,selStart:t.target.selectionStart,selEnd:t.target.selectionEnd}}))}}));var f=h;h=null,i.addEventListener("blur",(function(t){if(d.focused&&t.relatedTarget){d.focused=!1;var i,r=t.target.value;d.userValue=r,d.lastCommittedValue!==r&&(null===(i=e.linkService.eventBus)||void 0===i||i.dispatch("dispatcheventinsandbox",{source:e,detail:{id:a,name:"Keystroke",value:r,willCommit:!0,commitKey:d.commitKey,selStart:t.target.selectionStart,selEnd:t.target.selectionEnd}})),f(t)}})),null!==(v=this.data.actions)&&void 0!==v&&v.Keystroke&&i.addEventListener("beforeinput",(function(t){var i;d.lastCommittedValue=null;var r=t.data,n=t.target,s=n.value,o=n.selectionStart,l=n.selectionEnd,c=o,u=l;switch(t.inputType){case"deleteWordBackward":var h=s.substring(0,o).match(/\w*[^\w]*$/);h&&(c-=h[0].length);break;case"deleteWordForward":var v=s.substring(o).match(/^[^\w]*\w*/);v&&(u+=v[0].length);break;case"deleteContentBackward":o===l&&(c-=1);break;case"deleteContentForward":o===l&&(u+=1)}t.preventDefault(),null===(i=e.linkService.eventBus)||void 0===i||i.dispatch("dispatcheventinsandbox",{source:e,detail:{id:a,name:"Keystroke",value:s,change:r||"",willCommit:!1,selStart:c,selEnd:u}})})),this._setEventListeners(i,d,[["focus","Focus"],["blur","Blur"],["mousedown","Mouse Down"],["mouseenter","Mouse Enter"],["mouseleave","Mouse Exit"],["mouseup","Mouse Up"]],(function(e){return e.target.value}))}if(h&&i.addEventListener("blur",h),this.data.comb){var p=(this.data.rect[2]-this.data.rect[0])/o;i.classList.add("comb"),i.style.letterSpacing="calc(".concat(p,"px * var(--scale-factor) - 1ch)")}}else(i=document.createElement("div")).textContent=this.data.fieldValue,i.style.verticalAlign="middle",i.style.display="table-cell";return this._setTextStyle(i),this._setBackgroundColor(i),this._setDefaultPropertiesFromJS(i),this.container.append(i),this.container}}])}(b),A=function(e){function t(e){return _classCallCheck(this,t),_callSuper(this,t,[e,{isRenderable:!!e.data.hasOwnCanvas}])}return _inherits(t,e),_createClass(t)}(b),P=function(e){function t(e){return _classCallCheck(this,t),_callSuper(this,t,[e,{isRenderable:e.renderForms}])}return _inherits(t,e),_createClass(t,[{key:"render",value:function(){var e=this,t=this.annotationStorage,a=this.data,i=a.id,r=t.getValue(i,{value:a.exportValue===a.fieldValue}).value;"string"==typeof r&&(r="Off"!==r,t.setValue(i,{value:r})),this.container.classList.add("buttonWidgetAnnotation","checkBox");var n=document.createElement("input");return u.add(n),n.setAttribute("data-element-id",i),n.disabled=a.readOnly,this._setRequired(n,this.data.required),n.type="checkbox",n.name=a.fieldName,r&&n.setAttribute("checked",!0),n.setAttribute("exportValue",a.exportValue),n.tabIndex=c,n.addEventListener("change",(function(r){var n,s=r.target,o=s.name,l=s.checked,c=_createForOfIteratorHelper(e._getElementsByName(o,i));try{for(c.s();!(n=c.n()).done;){var u=n.value,d=l&&u.exportValue===a.exportValue;u.domElement&&(u.domElement.checked=d),t.setValue(u.id,{value:d})}}catch(e){c.e(e)}finally{c.f()}t.setValue(i,{value:l})})),n.addEventListener("resetform",(function(e){var t=a.defaultFieldValue||"Off";e.target.checked=t===a.exportValue})),this.enableScripting&&this.hasJSActions&&(n.addEventListener("updatefromsandbox",(function(a){var r={value:function(e){e.target.checked="Off"!==e.detail.value,t.setValue(i,{value:e.target.checked})}};e._dispatchEventFromSandbox(r,a)})),this._setEventListeners(n,null,[["change","Validate"],["change","Action"],["focus","Focus"],["blur","Blur"],["mousedown","Mouse Down"],["mouseenter","Mouse Enter"],["mouseleave","Mouse Exit"],["mouseup","Mouse Up"]],(function(e){return e.target.checked}))),this._setBackgroundColor(n),this._setDefaultPropertiesFromJS(n),this.container.append(n),this.container}}])}(b),F=function(e){function t(e){return _classCallCheck(this,t),_callSuper(this,t,[e,{isRenderable:e.renderForms}])}return _inherits(t,e),_createClass(t,[{key:"render",value:function(){var e=this;this.container.classList.add("buttonWidgetAnnotation","radioButton");var t=this.annotationStorage,a=this.data,i=a.id,r=t.getValue(i,{value:a.fieldValue===a.buttonValue}).value;"string"==typeof r&&(r=r!==a.buttonValue,t.setValue(i,{value:r}));var n=document.createElement("input");if(u.add(n),n.setAttribute("data-element-id",i),n.disabled=a.readOnly,this._setRequired(n,this.data.required),n.type="radio",n.name=a.fieldName,r&&n.setAttribute("checked",!0),n.tabIndex=c,n.addEventListener("change",(function(a){var r,n=a.target,s=n.name,o=n.checked,l=_createForOfIteratorHelper(e._getElementsByName(s,i));try{for(l.s();!(r=l.n()).done;){var c=r.value;t.setValue(c.id,{value:!1})}}catch(e){l.e(e)}finally{l.f()}t.setValue(i,{value:o})})),n.addEventListener("resetform",(function(e){var t=a.defaultFieldValue;e.target.checked=null!=t&&t===a.buttonValue})),this.enableScripting&&this.hasJSActions){var s=a.buttonValue;n.addEventListener("updatefromsandbox",(function(a){var r={value:function(a){var r,n=s===a.detail.value,o=_createForOfIteratorHelper(e._getElementsByName(a.target.name));try{for(o.s();!(r=o.n()).done;){var l=r.value,c=n&&l.id===i;l.domElement&&(l.domElement.checked=c),t.setValue(l.id,{value:c})}}catch(e){o.e(e)}finally{o.f()}}};e._dispatchEventFromSandbox(r,a)})),this._setEventListeners(n,null,[["change","Validate"],["change","Action"],["focus","Focus"],["blur","Blur"],["mousedown","Mouse Down"],["mouseenter","Mouse Enter"],["mouseleave","Mouse Exit"],["mouseup","Mouse Up"]],(function(e){return e.target.checked}))}return this._setBackgroundColor(n),this._setDefaultPropertiesFromJS(n),this.container.append(n),this.container}}])}(b),S=function(e){function t(e){return _classCallCheck(this,t),_callSuper(this,t,[e,{ignoreBorder:e.data.hasAppearance}])}return _inherits(t,e),_createClass(t,[{key:"render",value:function(){var e=this,a=_superPropGet(t,"render",this,3)([]);a.classList.add("buttonWidgetAnnotation","pushButton"),this.data.alternativeText&&(a.title=this.data.alternativeText);var i=a.lastChild;return this.enableScripting&&this.hasJSActions&&i&&(this._setDefaultPropertiesFromJS(i),i.addEventListener("updatefromsandbox",(function(t){e._dispatchEventFromSandbox({},t)}))),a}}])}(_),C=function(e){function t(e){return _classCallCheck(this,t),_callSuper(this,t,[e,{isRenderable:e.renderForms}])}return _inherits(t,e),_createClass(t,[{key:"render",value:function(){var e=this;this.container.classList.add("choiceWidgetAnnotation");var t=this.annotationStorage,a=this.data.id,i=t.getValue(a,{value:this.data.fieldValue}),r=document.createElement("select");u.add(r),r.setAttribute("data-element-id",a),r.disabled=this.data.readOnly,this._setRequired(r,this.data.required),r.name=this.data.fieldName,r.tabIndex=c;var n=this.data.combo&&this.data.options.length>0;this.data.combo||(r.size=this.data.options.length,this.data.multiSelect&&(r.multiple=!0)),r.addEventListener("resetform",(function(t){var a,i=e.data.defaultFieldValue,n=_createForOfIteratorHelper(r.options);try{for(n.s();!(a=n.n()).done;){var s=a.value;s.selected=s.value===i}}catch(e){n.e(e)}finally{n.f()}}));var s,o=_createForOfIteratorHelper(this.data.options);try{for(o.s();!(s=o.n()).done;){var l=s.value,d=document.createElement("option");d.textContent=l.displayValue,d.value=l.exportValue,i.value.includes(l.exportValue)&&(d.setAttribute("selected",!0),n=!1),r.append(d)}}catch(e){o.e(e)}finally{o.f()}var h=null;if(n){var v=document.createElement("option");v.value=" ",v.setAttribute("hidden",!0),v.setAttribute("selected",!0),r.prepend(v),h=function(){v.remove(),r.removeEventListener("input",h),h=null},r.addEventListener("input",h)}var f=function(e){var t=e?"value":"textContent",a=r.options;return r.multiple?Array.prototype.filter.call(a,(function(e){return e.selected})).map((function(e){return e[t]})):-1===a.selectedIndex?null:a[a.selectedIndex][t]},p=f(!1),_=function(e){var t=e.target.options;return Array.prototype.map.call(t,(function(e){return{displayValue:e.textContent,exportValue:e.value}}))};return this.enableScripting&&this.hasJSActions?(r.addEventListener("updatefromsandbox",(function(i){var n={value:function(e){var i;null===(i=h)||void 0===i||i();var n,s=e.detail.value,o=new Set(Array.isArray(s)?s:[s]),l=_createForOfIteratorHelper(r.options);try{for(l.s();!(n=l.n()).done;){var c=n.value;c.selected=o.has(c.value)}}catch(e){l.e(e)}finally{l.f()}t.setValue(a,{value:f(!0)}),p=f(!1)},multipleSelection:function(e){r.multiple=!0},remove:function(e){var i=r.options,n=e.detail.remove;if(i[n].selected=!1,r.remove(n),i.length>0){var s=Array.prototype.findIndex.call(i,(function(e){return e.selected}));-1===s&&(i[0].selected=!0)}t.setValue(a,{value:f(!0),items:_(e)}),p=f(!1)},clear:function(e){for(;0!==r.length;)r.remove(0);t.setValue(a,{value:null,items:[]}),p=f(!1)},insert:function(e){var i=e.detail.insert,n=i.index,s=i.displayValue,o=i.exportValue,l=r.children[n],c=document.createElement("option");c.textContent=s,c.value=o,l?l.before(c):r.append(c),t.setValue(a,{value:f(!0),items:_(e)}),p=f(!1)},items:function(e){for(var i=e.detail.items;0!==r.length;)r.remove(0);var n,s=_createForOfIteratorHelper(i);try{for(s.s();!(n=s.n()).done;){var o=n.value,l=o.displayValue,c=o.exportValue,u=document.createElement("option");u.textContent=l,u.value=c,r.append(u)}}catch(e){s.e(e)}finally{s.f()}r.options.length>0&&(r.options[0].selected=!0),t.setValue(a,{value:f(!0),items:_(e)}),p=f(!1)},indices:function(e){var i,r=new Set(e.detail.indices),n=_createForOfIteratorHelper(e.target.options);try{for(n.s();!(i=n.n()).done;){var s=i.value;s.selected=r.has(s.index)}}catch(e){n.e(e)}finally{n.f()}t.setValue(a,{value:f(!0)}),p=f(!1)},editable:function(e){e.target.disabled=!e.detail.editable}};e._dispatchEventFromSandbox(n,i)})),r.addEventListener("input",(function(i){var r,n=f(!0);t.setValue(a,{value:n}),i.preventDefault(),null===(r=e.linkService.eventBus)||void 0===r||r.dispatch("dispatcheventinsandbox",{source:e,detail:{id:a,name:"Keystroke",value:p,changeEx:n,willCommit:!1,commitKey:1,keyDown:!1}})})),this._setEventListeners(r,null,[["focus","Focus"],["blur","Blur"],["mousedown","Mouse Down"],["mouseenter","Mouse Enter"],["mouseleave","Mouse Exit"],["mouseup","Mouse Up"],["input","Action"],["input","Validate"]],(function(e){return e.target.value}))):r.addEventListener("input",(function(e){t.setValue(a,{value:f(!0)})})),this.data.combo&&this._setTextStyle(r),this._setBackgroundColor(r),this._setDefaultPropertiesFromJS(r),this.container.append(r),this.container}}])}(b),w=function(e){function t(e){var a;_classCallCheck(this,t);var i=e.data,r=e.elements;return(a=_callSuper(this,t,[e,{isRenderable:f._hasPopupData(i)}])).elements=r,a}return _inherits(t,e),_createClass(t,[{key:"render",value:function(){this.container.classList.add("popupAnnotation");var e,t=new V({container:this.container,color:this.data.color,titleObj:this.data.titleObj,modificationDate:this.data.modificationDate,contentsObj:this.data.contentsObj,richText:this.data.richText,rect:this.data.rect,parentRect:this.data.parentRect||null,parent:this.parent,elements:this.elements,open:this.data.open}),a=[],r=_createForOfIteratorHelper(this.elements);try{for(r.s();!(e=r.n()).done;){var n=e.value;n.popup=t,a.push(n.data.id),n.addHighlightArea()}}catch(e){r.e(e)}finally{r.f()}return this.container.setAttribute("aria-controls",a.map((function(e){return"".concat(i.AnnotationPrefix).concat(e)})).join(",")),this.container}}])}(f),x=new WeakMap,E=new WeakMap,T=new WeakMap,M=new WeakMap,I=new WeakMap,R=new WeakMap,D=new WeakMap,O=new WeakMap,G=new WeakMap,L=new WeakMap,B=new WeakMap,N=new WeakMap,W=new WeakMap,j=new WeakMap,H=new WeakMap,U=new WeakMap,q=new WeakMap,z=new WeakSet,V=function(){return _createClass((function e(t){var a=t.container,i=t.color,n=t.elements,s=t.titleObj,o=t.modificationDate,l=t.contentsObj,c=t.richText,u=t.parent,d=t.rect,h=t.parentRect,v=t.open;_classCallCheck(this,e),_classPrivateMethodInitSpec(this,z),_classPrivateFieldInitSpec(this,x,null),_classPrivateFieldInitSpec(this,E,_assertClassBrand(z,this,X).bind(this)),_classPrivateFieldInitSpec(this,T,_assertClassBrand(z,this,J).bind(this)),_classPrivateFieldInitSpec(this,M,_assertClassBrand(z,this,Y).bind(this)),_classPrivateFieldInitSpec(this,I,_assertClassBrand(z,this,K).bind(this)),_classPrivateFieldInitSpec(this,R,null),_classPrivateFieldInitSpec(this,D,null),_classPrivateFieldInitSpec(this,O,null),_classPrivateFieldInitSpec(this,G,null),_classPrivateFieldInitSpec(this,L,null),_classPrivateFieldInitSpec(this,B,null),_classPrivateFieldInitSpec(this,N,!1),_classPrivateFieldInitSpec(this,W,null),_classPrivateFieldInitSpec(this,j,null),_classPrivateFieldInitSpec(this,H,null),_classPrivateFieldInitSpec(this,U,null),_classPrivateFieldInitSpec(this,q,!1),_classPrivateFieldSet(D,this,a),_classPrivateFieldSet(U,this,s),_classPrivateFieldSet(O,this,l),_classPrivateFieldSet(H,this,c),_classPrivateFieldSet(L,this,u),_classPrivateFieldSet(R,this,i),_classPrivateFieldSet(j,this,d),_classPrivateFieldSet(B,this,h),_classPrivateFieldSet(G,this,n);var f=r.PDFDateString.toDateObject(o);f&&_classPrivateFieldSet(x,this,u.l10n.get("annotation_date_string",{date:f.toLocaleDateString(),time:f.toLocaleTimeString()})),this.trigger=n.flatMap((function(e){return e.getElementsToTriggerPopup()}));var p,_=_createForOfIteratorHelper(this.trigger);try{for(_.s();!(p=_.n()).done;){var g=p.value;g.addEventListener("click",_classPrivateFieldGet(I,this)),g.addEventListener("mouseenter",_classPrivateFieldGet(M,this)),g.addEventListener("mouseleave",_classPrivateFieldGet(T,this)),g.classList.add("popupTriggerArea")}}catch(e){_.e(e)}finally{_.f()}var y,m=_createForOfIteratorHelper(n);try{for(m.s();!(y=m.n()).done;){var b;null===(b=y.value.container)||void 0===b||b.addEventListener("keydown",_classPrivateFieldGet(E,this))}}catch(e){m.e(e)}finally{m.f()}_classPrivateFieldGet(D,this).hidden=!0,v&&_assertClassBrand(z,this,K).call(this)}),[{key:"render",value:function(){if(!_classPrivateFieldGet(W,this)){var e=_classPrivateFieldGet(L,this),t=e.page.view,a=e.viewport.rawDims,r=a.pageWidth,n=a.pageHeight,s=a.pageX,o=a.pageY,c=_classPrivateFieldSet(W,this,document.createElement("div"));if(c.className="popup",_classPrivateFieldGet(R,this)){var u,d,h=c.style.outlineColor=(u=i.Util).makeHexColor.apply(u,_toConsumableArray(_classPrivateFieldGet(R,this)));CSS.supports("background-color","color-mix(in srgb, red 30%, white)")?c.style.backgroundColor="color-mix(in srgb, ".concat(h," 30%, white)"):c.style.backgroundColor=(d=i.Util).makeHexColor.apply(d,_toConsumableArray(_classPrivateFieldGet(R,this).map((function(e){return Math.floor(.7*(255-e)+e)}))))}var v=document.createElement("span");v.className="header";var f=document.createElement("h1");v.append(f);var p=_classPrivateFieldGet(U,this);if(f.dir=p.dir,f.textContent=p.str,c.append(v),_classPrivateFieldGet(x,this)){var _=document.createElement("span");_.classList.add("popupDate"),_classPrivateFieldGet(x,this).then((function(e){_.textContent=e})),v.append(_)}var g=_classPrivateFieldGet(O,this),y=_classPrivateFieldGet(H,this);if(null==y||!y.str||null!=g&&g.str&&g.str!==y.str){var m=this._formatContents(g);c.append(m)}else l.XfaLayer.render({xfaHtml:y.html,intent:"richText",div:c}),c.lastChild.classList.add("richText","popupContent");var b,k=!!_classPrivateFieldGet(B,this),A=_classPrivateFieldGet(k?B:j,this),P=_createForOfIteratorHelper(_classPrivateFieldGet(G,this));try{for(P.s();!(b=P.n()).done;){var F=b.value;if(!A||null!==i.Util.intersect(F.data.rect,A)){A=F.data.rect,k=!0;break}}}catch(e){P.e(e)}finally{P.f()}var S=i.Util.normalizeRect([A[0],t[3]-A[1]+t[1],A[2],t[3]-A[3]+t[1]]),C=k?A[2]-A[0]+5:0,w=S[0]+C,E=S[1],T=_classPrivateFieldGet(D,this).style;T.left="".concat(100*(w-s)/r,"%"),T.top="".concat(100*(E-o)/n,"%"),_classPrivateFieldGet(D,this).append(c)}}},{key:"_formatContents",value:function(e){var t=e.str,a=e.dir,i=document.createElement("p");i.classList.add("popupContent"),i.dir=a;for(var r=t.split(/(?:\r\n?|\n)/),n=0,s=r.length;n<s;++n){var o=r[n];i.append(document.createTextNode(o)),n<s-1&&i.append(document.createElement("br"))}return i}},{key:"forceHide",value:function(){_classPrivateFieldSet(q,this,this.isVisible),_classPrivateFieldGet(q,this)&&(_classPrivateFieldGet(D,this).hidden=!0)}},{key:"maybeShow",value:function(){_classPrivateFieldGet(q,this)&&(_classPrivateFieldSet(q,this,!1),_classPrivateFieldGet(D,this).hidden=!1)}},{key:"isVisible",get:function(){return!1===_classPrivateFieldGet(D,this).hidden}}])}();function X(e){e.altKey||e.shiftKey||e.ctrlKey||e.metaKey||("Enter"===e.key||"Escape"===e.key&&_classPrivateFieldGet(N,this))&&_assertClassBrand(z,this,K).call(this)}function K(){_classPrivateFieldSet(N,this,!_classPrivateFieldGet(N,this)),_classPrivateFieldGet(N,this)?(_assertClassBrand(z,this,Y).call(this),_classPrivateFieldGet(D,this).addEventListener("click",_classPrivateFieldGet(I,this)),_classPrivateFieldGet(D,this).addEventListener("keydown",_classPrivateFieldGet(E,this))):(_assertClassBrand(z,this,J).call(this),_classPrivateFieldGet(D,this).removeEventListener("click",_classPrivateFieldGet(I,this)),_classPrivateFieldGet(D,this).removeEventListener("keydown",_classPrivateFieldGet(E,this)))}function Y(){_classPrivateFieldGet(W,this)||this.render(),this.isVisible?_classPrivateFieldGet(N,this)&&_classPrivateFieldGet(D,this).classList.add("focused"):(_classPrivateFieldGet(D,this).hidden=!1,_classPrivateFieldGet(D,this).style.zIndex=parseInt(_classPrivateFieldGet(D,this).style.zIndex)+1e3)}function J(){_classPrivateFieldGet(D,this).classList.remove("focused"),!_classPrivateFieldGet(N,this)&&this.isVisible&&(_classPrivateFieldGet(D,this).hidden=!0,_classPrivateFieldGet(D,this).style.zIndex=parseInt(_classPrivateFieldGet(D,this).style.zIndex)-1e3)}var Q=function(e){function t(e){var a;return _classCallCheck(this,t),(a=_callSuper(this,t,[e,{isRenderable:!0,ignoreBorder:!0}])).textContent=e.data.textContent,a.textPosition=e.data.textPosition,a.annotationEditorType=i.AnnotationEditorType.FREETEXT,a}return _inherits(t,e),_createClass(t,[{key:"render",value:function(){if(this.container.classList.add("freeTextAnnotation"),this.textContent){var e=document.createElement("div");e.classList.add("annotationTextContent"),e.setAttribute("role","comment");var t,a=_createForOfIteratorHelper(this.textContent);try{for(a.s();!(t=a.n()).done;){var i=t.value,r=document.createElement("span");r.textContent=i,e.append(r)}}catch(e){a.e(e)}finally{a.f()}this.container.append(e)}return!this.data.popupRef&&this.hasPopupData&&this._createPopup(),this._editOnDoubleClick(),this.container}}])}(f);t.FreeTextAnnotationElement=Q;var Z=new WeakMap,$=function(e){function t(e){var a;return _classCallCheck(this,t),_classPrivateFieldInitSpec(a=_callSuper(this,t,[e,{isRenderable:!0,ignoreBorder:!0}]),Z,null),a}return _inherits(t,e),_createClass(t,[{key:"render",value:function(){this.container.classList.add("lineAnnotation");var e=this.data,t=d(e.rect),a=t.width,i=t.height,r=this.svgFactory.create(a,i,!0),n=_classPrivateFieldSet(Z,this,this.svgFactory.createElement("svg:line"));return n.setAttribute("x1",e.rect[2]-e.lineCoordinates[0]),n.setAttribute("y1",e.rect[3]-e.lineCoordinates[1]),n.setAttribute("x2",e.rect[2]-e.lineCoordinates[2]),n.setAttribute("y2",e.rect[3]-e.lineCoordinates[3]),n.setAttribute("stroke-width",e.borderStyle.width||1),n.setAttribute("stroke","transparent"),n.setAttribute("fill","transparent"),r.append(n),this.container.append(r),!e.popupRef&&this.hasPopupData&&this._createPopup(),this.container}},{key:"getElementsToTriggerPopup",value:function(){return _classPrivateFieldGet(Z,this)}},{key:"addHighlightArea",value:function(){this.container.classList.add("highlightArea")}}])}(f),ee=new WeakMap,te=function(e){function t(e){var a;return _classCallCheck(this,t),_classPrivateFieldInitSpec(a=_callSuper(this,t,[e,{isRenderable:!0,ignoreBorder:!0}]),ee,null),a}return _inherits(t,e),_createClass(t,[{key:"render",value:function(){this.container.classList.add("squareAnnotation");var e=this.data,t=d(e.rect),a=t.width,i=t.height,r=this.svgFactory.create(a,i,!0),n=e.borderStyle.width,s=_classPrivateFieldSet(ee,this,this.svgFactory.createElement("svg:rect"));return s.setAttribute("x",n/2),s.setAttribute("y",n/2),s.setAttribute("width",a-n),s.setAttribute("height",i-n),s.setAttribute("stroke-width",n||1),s.setAttribute("stroke","transparent"),s.setAttribute("fill","transparent"),r.append(s),this.container.append(r),!e.popupRef&&this.hasPopupData&&this._createPopup(),this.container}},{key:"getElementsToTriggerPopup",value:function(){return _classPrivateFieldGet(ee,this)}},{key:"addHighlightArea",value:function(){this.container.classList.add("highlightArea")}}])}(f),ae=new WeakMap,ie=function(e){function t(e){var a;return _classCallCheck(this,t),_classPrivateFieldInitSpec(a=_callSuper(this,t,[e,{isRenderable:!0,ignoreBorder:!0}]),ae,null),a}return _inherits(t,e),_createClass(t,[{key:"render",value:function(){this.container.classList.add("circleAnnotation");var e=this.data,t=d(e.rect),a=t.width,i=t.height,r=this.svgFactory.create(a,i,!0),n=e.borderStyle.width,s=_classPrivateFieldSet(ae,this,this.svgFactory.createElement("svg:ellipse"));return s.setAttribute("cx",a/2),s.setAttribute("cy",i/2),s.setAttribute("rx",a/2-n/2),s.setAttribute("ry",i/2-n/2),s.setAttribute("stroke-width",n||1),s.setAttribute("stroke","transparent"),s.setAttribute("fill","transparent"),r.append(s),this.container.append(r),!e.popupRef&&this.hasPopupData&&this._createPopup(),this.container}},{key:"getElementsToTriggerPopup",value:function(){return _classPrivateFieldGet(ae,this)}},{key:"addHighlightArea",value:function(){this.container.classList.add("highlightArea")}}])}(f),re=new WeakMap,ne=function(e){function t(e){var a;return _classCallCheck(this,t),_classPrivateFieldInitSpec(a=_callSuper(this,t,[e,{isRenderable:!0,ignoreBorder:!0}]),re,null),a.containerClassName="polylineAnnotation",a.svgElementName="svg:polyline",a}return _inherits(t,e),_createClass(t,[{key:"render",value:function(){this.container.classList.add(this.containerClassName);var e,t=this.data,a=d(t.rect),i=a.width,r=a.height,n=this.svgFactory.create(i,r,!0),s=[],o=_createForOfIteratorHelper(t.vertices);try{for(o.s();!(e=o.n()).done;){var l=e.value,c=l.x-t.rect[0],u=t.rect[3]-l.y;s.push(c+","+u)}}catch(e){o.e(e)}finally{o.f()}s=s.join(" ");var h=_classPrivateFieldSet(re,this,this.svgFactory.createElement(this.svgElementName));return h.setAttribute("points",s),h.setAttribute("stroke-width",t.borderStyle.width||1),h.setAttribute("stroke","transparent"),h.setAttribute("fill","transparent"),n.append(h),this.container.append(n),!t.popupRef&&this.hasPopupData&&this._createPopup(),this.container}},{key:"getElementsToTriggerPopup",value:function(){return _classPrivateFieldGet(re,this)}},{key:"addHighlightArea",value:function(){this.container.classList.add("highlightArea")}}])}(f),se=function(e){function t(e){var a;return _classCallCheck(this,t),(a=_callSuper(this,t,[e])).containerClassName="polygonAnnotation",a.svgElementName="svg:polygon",a}return _inherits(t,e),_createClass(t)}(ne),oe=function(e){function t(e){return _classCallCheck(this,t),_callSuper(this,t,[e,{isRenderable:!0,ignoreBorder:!0}])}return _inherits(t,e),_createClass(t,[{key:"render",value:function(){return this.container.classList.add("caretAnnotation"),!this.data.popupRef&&this.hasPopupData&&this._createPopup(),this.container}}])}(f),le=new WeakMap,ce=function(e){function t(e){var a;return _classCallCheck(this,t),_classPrivateFieldInitSpec(a=_callSuper(this,t,[e,{isRenderable:!0,ignoreBorder:!0}]),le,[]),a.containerClassName="inkAnnotation",a.svgElementName="svg:polyline",a.annotationEditorType=i.AnnotationEditorType.INK,a}return _inherits(t,e),_createClass(t,[{key:"render",value:function(){this.container.classList.add(this.containerClassName);var e,t=this.data,a=d(t.rect),i=a.width,r=a.height,n=this.svgFactory.create(i,r,!0),s=_createForOfIteratorHelper(t.inkLists);try{for(s.s();!(e=s.n()).done;){var o,l=e.value,c=[],u=_createForOfIteratorHelper(l);try{for(u.s();!(o=u.n()).done;){var h=o.value,v=h.x-t.rect[0],f=t.rect[3]-h.y;c.push("".concat(v,",").concat(f))}}catch(e){u.e(e)}finally{u.f()}c=c.join(" ");var p=this.svgFactory.createElement(this.svgElementName);_classPrivateFieldGet(le,this).push(p),p.setAttribute("points",c),p.setAttribute("stroke-width",t.borderStyle.width||1),p.setAttribute("stroke","transparent"),p.setAttribute("fill","transparent"),!t.popupRef&&this.hasPopupData&&this._createPopup(),n.append(p)}}catch(e){s.e(e)}finally{s.f()}return this.container.append(n),this.container}},{key:"getElementsToTriggerPopup",value:function(){return _classPrivateFieldGet(le,this)}},{key:"addHighlightArea",value:function(){this.container.classList.add("highlightArea")}}])}(f);t.InkAnnotationElement=ce;var ue=function(e){function t(e){return _classCallCheck(this,t),_callSuper(this,t,[e,{isRenderable:!0,ignoreBorder:!0,createQuadrilaterals:!0}])}return _inherits(t,e),_createClass(t,[{key:"render",value:function(){return!this.data.popupRef&&this.hasPopupData&&this._createPopup(),this.container.classList.add("highlightAnnotation"),this.container}}])}(f),de=function(e){function t(e){return _classCallCheck(this,t),_callSuper(this,t,[e,{isRenderable:!0,ignoreBorder:!0,createQuadrilaterals:!0}])}return _inherits(t,e),_createClass(t,[{key:"render",value:function(){return!this.data.popupRef&&this.hasPopupData&&this._createPopup(),this.container.classList.add("underlineAnnotation"),this.container}}])}(f),he=function(e){function t(e){return _classCallCheck(this,t),_callSuper(this,t,[e,{isRenderable:!0,ignoreBorder:!0,createQuadrilaterals:!0}])}return _inherits(t,e),_createClass(t,[{key:"render",value:function(){return!this.data.popupRef&&this.hasPopupData&&this._createPopup(),this.container.classList.add("squigglyAnnotation"),this.container}}])}(f),ve=function(e){function t(e){return _classCallCheck(this,t),_callSuper(this,t,[e,{isRenderable:!0,ignoreBorder:!0,createQuadrilaterals:!0}])}return _inherits(t,e),_createClass(t,[{key:"render",value:function(){return!this.data.popupRef&&this.hasPopupData&&this._createPopup(),this.container.classList.add("strikeoutAnnotation"),this.container}}])}(f),fe=function(e){function t(e){return _classCallCheck(this,t),_callSuper(this,t,[e,{isRenderable:!0,ignoreBorder:!0}])}return _inherits(t,e),_createClass(t,[{key:"render",value:function(){return this.container.classList.add("stampAnnotation"),!this.data.popupRef&&this.hasPopupData&&this._createPopup(),this.container}}])}(f);t.StampAnnotationElement=fe;var pe=new WeakMap,_e=new WeakSet,ge=function(e){function t(e){var a,i;_classCallCheck(this,t),_classPrivateMethodInitSpec(i=_callSuper(this,t,[e,{isRenderable:!0}]),_e),_classPrivateFieldInitSpec(i,pe,null);var n=i.data.file,s=n.filename,o=n.content;return i.filename=(0,r.getFilenameFromUrl)(s,!0),i.content=o,null===(a=i.linkService.eventBus)||void 0===a||a.dispatch("fileattachmentannotation",{source:i,filename:s,content:o}),i}return _inherits(t,e),_createClass(t,[{key:"render",value:function(){var e=this;this.container.classList.add("fileAttachmentAnnotation");var t,a=this.container,r=this.data;r.hasAppearance||0===r.fillAlpha?t=document.createElement("div"):((t=document.createElement("img")).src="".concat(this.imageResourcesPath,"annotation-").concat(/paperclip/i.test(r.name)?"paperclip":"pushpin",".svg"),r.fillAlpha&&r.fillAlpha<1&&(t.style="filter: opacity(".concat(Math.round(100*r.fillAlpha),"%);"))),t.addEventListener("dblclick",_assertClassBrand(_e,this,ye).bind(this)),_classPrivateFieldSet(pe,this,t);var n=i.FeatureTest.platform.isMac;return a.addEventListener("keydown",(function(t){"Enter"===t.key&&(n?t.metaKey:t.ctrlKey)&&_assertClassBrand(_e,e,ye).call(e)})),!r.popupRef&&this.hasPopupData?this._createPopup():t.classList.add("popupTriggerArea"),a.append(t),a}},{key:"getElementsToTriggerPopup",value:function(){return _classPrivateFieldGet(pe,this)}},{key:"addHighlightArea",value:function(){this.container.classList.add("highlightArea")}}])}(f);function ye(){var e;null===(e=this.downloadManager)||void 0===e||e.openOrDownloadData(this.container,this.content,this.filename)}var me=new WeakMap,be=new WeakMap,ke=new WeakMap,Ae=new WeakSet,Pe=function(){return _createClass((function e(t){var a=t.div,i=t.accessibilityManager,r=t.annotationCanvasMap,n=t.l10n,s=t.page,l=t.viewport;_classCallCheck(this,e),_classPrivateMethodInitSpec(this,Ae),_classPrivateFieldInitSpec(this,me,null),_classPrivateFieldInitSpec(this,be,null),_classPrivateFieldInitSpec(this,ke,new Map),this.div=a,_classPrivateFieldSet(me,this,i),_classPrivateFieldSet(be,this,r),this.l10n=n,this.page=s,this.viewport=l,this.zIndex=0,this.l10n||(this.l10n=o.NullL10n)}),[{key:"render",value:(e=_asyncToGenerator(_regenerator().m((function e(t){var a,s,o,l,c,u,v,f,p,_,g,y,m,b,k,A;return _regenerator().w((function(e){for(;;)switch(e.n){case 0:a=t.annotations,s=this.div,(0,r.setLayerDimensions)(s,this.viewport),o=new Map,l={data:null,layer:s,linkService:t.linkService,downloadManager:t.downloadManager,imageResourcesPath:t.imageResourcesPath||"",renderForms:!1!==t.renderForms,svgFactory:new r.DOMSVGFactory,annotationStorage:t.annotationStorage||new n.AnnotationStorage,enableScripting:!0===t.enableScripting,hasJSActions:t.hasJSActions,fieldObjects:t.fieldObjects,parent:this,elements:null},c=_createForOfIteratorHelper(a),e.p=1,c.s();case 2:if((u=c.n()).done){e.n=10;break}if(!(v=u.value).noHTML){e.n=3;break}return e.a(3,9);case 3:if(f=v.annotationType===i.AnnotationType.POPUP){e.n=5;break}if(p=d(v.rect),_=p.width,g=p.height,!(_<=0||g<=0)){e.n=4;break}return e.a(3,9);case 4:e.n=7;break;case 5:if(y=o.get(v.id)){e.n=6;break}return e.a(3,9);case 6:l.elements=y;case 7:if(l.data=v,(m=h.create(l)).isRenderable){e.n=8;break}return e.a(3,9);case 8:!f&&v.popupRef&&((b=o.get(v.popupRef))?b.push(m):o.set(v.popupRef,[m])),m.annotationEditorType>0&&_classPrivateFieldGet(ke,this).set(m.data.id,m),k=m.render(),v.hidden&&(k.style.visibility="hidden"),_assertClassBrand(Ae,this,Fe).call(this,k,v.id);case 9:e.n=2;break;case 10:e.n=12;break;case 11:e.p=11,A=e.v,c.e(A);case 12:return e.p=12,c.f(),e.f(12);case 13:return _assertClassBrand(Ae,this,Se).call(this),e.n=14,this.l10n.translate(s);case 14:return e.a(2)}}),e,this,[[1,11,12,13]])}))),function(t){return e.apply(this,arguments)})},{key:"update",value:function(e){var t=e.viewport,a=this.div;this.viewport=t,(0,r.setLayerDimensions)(a,{rotation:t.rotation}),_assertClassBrand(Ae,this,Se).call(this),a.hidden=!1}},{key:"getEditableAnnotations",value:function(){return Array.from(_classPrivateFieldGet(ke,this).values())}},{key:"getEditableAnnotation",value:function(e){return _classPrivateFieldGet(ke,this).get(e)}}]);var e}();function Fe(e,t){var a,r=e.firstChild||e;r.id="".concat(i.AnnotationPrefix).concat(t),this.div.append(e),null===(a=_classPrivateFieldGet(me,this))||void 0===a||a.moveElementInDOM(this.div,e,r,!1)}function Se(){if(_classPrivateFieldGet(be,this)){var e,t=this.div,a=_createForOfIteratorHelper(_classPrivateFieldGet(be,this));try{for(a.s();!(e=a.n()).done;){var i=_slicedToArray(e.value,2),r=i[0],n=i[1],s=t.querySelector('[data-annotation-id="'.concat(r,'"]'));if(s){var o=s.firstChild;o?"CANVAS"===o.nodeName?o.replaceWith(n):o.before(n):s.append(n)}}}catch(e){a.e(e)}finally{a.f()}_classPrivateFieldGet(be,this).clear()}}t.AnnotationLayer=Pe},function(e,t){function a(e){return Math.floor(255*Math.max(0,Math.min(1,e))).toString(16).padStart(2,"0")}function i(e){return Math.max(0,Math.min(255,255*e))}Object.defineProperty(t,"__esModule",{value:!0}),t.ColorConverters=void 0;var r=function(){return _createClass((function e(){_classCallCheck(this,e)}),null,[{key:"CMYK_G",value:function(e){var t=_slicedToArray(e,4),a=t[0],i=t[1],r=t[2],n=t[3];return["G",1-Math.min(1,.3*a+.59*r+.11*i+n)]}},{key:"G_CMYK",value:function(e){return["CMYK",0,0,0,1-_slicedToArray(e,1)[0]]}},{key:"G_RGB",value:function(e){var t=_slicedToArray(e,1)[0];return["RGB",t,t,t]}},{key:"G_rgb",value:function(e){var t=_slicedToArray(e,1)[0];return[t=i(t),t,t]}},{key:"G_HTML",value:function(e){var t=a(_slicedToArray(e,1)[0]);return"#".concat(t).concat(t).concat(t)}},{key:"RGB_G",value:function(e){var t=_slicedToArray(e,3);return["G",.3*t[0]+.59*t[1]+.11*t[2]]}},{key:"RGB_rgb",value:function(e){return e.map(i)}},{key:"RGB_HTML",value:function(e){return"#".concat(e.map(a).join(""))}},{key:"T_HTML",value:function(){return"#00000000"}},{key:"T_rgb",value:function(){return[null]}},{key:"CMYK_RGB",value:function(e){var t=_slicedToArray(e,4),a=t[0],i=t[1],r=t[2],n=t[3];return["RGB",1-Math.min(1,a+n),1-Math.min(1,r+n),1-Math.min(1,i+n)]}},{key:"CMYK_rgb",value:function(e){var t=_slicedToArray(e,4),a=t[0],r=t[1],n=t[2],s=t[3];return[i(1-Math.min(1,a+s)),i(1-Math.min(1,n+s)),i(1-Math.min(1,r+s))]}},{key:"CMYK_HTML",value:function(e){var t=this.CMYK_RGB(e).slice(1);return this.RGB_HTML(t)}},{key:"RGB_CMYK",value:function(e){var t=_slicedToArray(e,3),a=1-t[0],i=1-t[1],r=1-t[2];return["CMYK",a,i,r,Math.min(a,i,r)]}}])}();t.ColorConverters=r},function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.NullL10n=void 0,t.getL10nFallback=i;var a={of_pages:"of {{pagesCount}}",page_of_pages:"({{pageNumber}} of {{pagesCount}})",document_properties_kb:"{{size_kb}} KB ({{size_b}} bytes)",document_properties_mb:"{{size_mb}} MB ({{size_b}} bytes)",document_properties_date_string:"{{date}}, {{time}}",document_properties_page_size_unit_inches:"in",document_properties_page_size_unit_millimeters:"mm",document_properties_page_size_orientation_portrait:"portrait",document_properties_page_size_orientation_landscape:"landscape",document_properties_page_size_name_a3:"A3",document_properties_page_size_name_a4:"A4",document_properties_page_size_name_letter:"Letter",document_properties_page_size_name_legal:"Legal",document_properties_page_size_dimension_string:"{{width}} × {{height}} {{unit}} ({{orientation}})",document_properties_page_size_dimension_name_string:"{{width}} × {{height}} {{unit}} ({{name}}, {{orientation}})",document_properties_linearized_yes:"Yes",document_properties_linearized_no:"No",additional_layers:"Additional Layers",page_landmark:"Page {{page}}",thumb_page_title:"Page {{page}}",thumb_page_canvas:"Thumbnail of Page {{page}}",find_reached_top:"Reached top of document, continued from bottom",find_reached_bottom:"Reached end of document, continued from top","find_match_count[one]":"{{current}} of {{total}} match","find_match_count[other]":"{{current}} of {{total}} matches","find_match_count_limit[one]":"More than {{limit}} match","find_match_count_limit[other]":"More than {{limit}} matches",find_not_found:"Phrase not found",page_scale_width:"Page Width",page_scale_fit:"Page Fit",page_scale_auto:"Automatic Zoom",page_scale_actual:"Actual Size",page_scale_percent:"{{scale}}%",loading_error:"An error occurred while loading the PDF.",invalid_file_error:"Invalid or corrupted PDF file.",missing_file_error:"Missing PDF file.",unexpected_response_error:"Unexpected server response.",rendering_error:"An error occurred while rendering the page.",annotation_date_string:"{{date}}, {{time}}",printing_not_supported:"Warning: Printing is not fully supported by this browser.",printing_not_ready:"Warning: The PDF is not fully loaded for printing.",web_fonts_disabled:"Web fonts are disabled: unable to use embedded PDF fonts.",free_text2_default_content:"Start typing…",editor_free_text2_aria_label:"Text Editor",editor_ink2_aria_label:"Draw Editor",editor_ink_canvas_aria_label:"User-created image",editor_alt_text_button_label:"Alt text",editor_alt_text_edit_button_label:"Edit alt text",editor_alt_text_decorative_tooltip:"Marked as decorative"};function i(e,t){switch(e){case"find_match_count":e="find_match_count[".concat(1===t.total?"one":"other","]");break;case"find_match_count_limit":e="find_match_count_limit[".concat(1===t.limit?"one":"other","]")}return a[e]||""}function r(e,t){return t?e.replaceAll(/\{\{\s*(\w+)\s*\}\}/g,(function(e,a){return a in t?t[a]:"{{"+a+"}}"})):e}a.print_progress_percent="{{progress}}%";var n={getLanguage:function(){return _asyncToGenerator(_regenerator().m((function e(){return _regenerator().w((function(e){for(;;)if(0===e.n)return e.a(2,"en-us")}),e)})))()},getDirection:function(){return _asyncToGenerator(_regenerator().m((function e(){return _regenerator().w((function(e){for(;;)if(0===e.n)return e.a(2,"ltr")}),e)})))()},get:function(e){var t=arguments;return _asyncToGenerator(_regenerator().m((function a(){var n,s;return _regenerator().w((function(a){for(;;)if(0===a.n)return n=t.length>1&&void 0!==t[1]?t[1]:null,s=t.length>2&&void 0!==t[2]?t[2]:i(e,n),a.a(2,r(s,n))}),a)})))()},translate:function(e){return _asyncToGenerator(_regenerator().m((function e(){return _regenerator().w((function(e){for(;;)if(0===e.n)return e.a(2)}),e)})))()}};t.NullL10n=n},function(e,t,a){Object.defineProperty(t,"__esModule",{value:!0}),t.XfaLayer=void 0;var i=a(25),r=function(){return _createClass((function e(){_classCallCheck(this,e)}),null,[{key:"setupStorage",value:function(e,t,a,i,r){var n=i.getValue(t,{value:null});switch(a.name){case"textarea":if(null!==n.value&&(e.textContent=n.value),"print"===r)break;e.addEventListener("input",(function(e){i.setValue(t,{value:e.target.value})}));break;case"input":if("radio"===a.attributes.type||"checkbox"===a.attributes.type){if(n.value===a.attributes.xfaOn?e.setAttribute("checked",!0):n.value===a.attributes.xfaOff&&e.removeAttribute("checked"),"print"===r)break;e.addEventListener("change",(function(e){i.setValue(t,{value:e.target.checked?e.target.getAttribute("xfaOn"):e.target.getAttribute("xfaOff")})}))}else{if(null!==n.value&&e.setAttribute("value",n.value),"print"===r)break;e.addEventListener("input",(function(e){i.setValue(t,{value:e.target.value})}))}break;case"select":if(null!==n.value){e.setAttribute("value",n.value);var s,o=_createForOfIteratorHelper(a.children);try{for(o.s();!(s=o.n()).done;){var l=s.value;l.attributes.value===n.value?l.attributes.selected=!0:l.attributes.hasOwnProperty("selected")&&delete l.attributes.selected}}catch(e){o.e(e)}finally{o.f()}}e.addEventListener("input",(function(e){var a=e.target.options,r=-1===a.selectedIndex?"":a[a.selectedIndex].value;i.setValue(t,{value:r})}))}}},{key:"setAttributes",value:function(e){var t=e.html,a=e.element,i=e.storage,r=void 0===i?null:i,n=e.intent,s=e.linkService,o=a.attributes,l=t instanceof HTMLAnchorElement;"radio"===o.type&&(o.name="".concat(o.name,"-").concat(n));for(var c=0,u=Object.entries(o);c<u.length;c++){var d=_slicedToArray(u[c],2),h=d[0],v=d[1];if(null!=v)switch(h){case"class":v.length&&t.setAttribute(h,v.join(" "));break;case"dataId":break;case"id":t.setAttribute("data-element-id",v);break;case"style":Object.assign(t.style,v);break;case"textContent":t.textContent=v;break;default:(!l||"href"!==h&&"newWindow"!==h)&&t.setAttribute(h,v)}}l&&s.addLinkAttributes(t,o.href,o.newWindow),r&&o.dataId&&this.setupStorage(t,o.dataId,a,r)}},{key:"render",value:function(e){var t=e.annotationStorage,a=e.linkService,r=e.xfaHtml,n=e.intent||"display",s=document.createElement(r.name);r.attributes&&this.setAttributes({html:s,element:r,intent:n,linkService:a});var o=[[r,-1,s]],l=e.div;if(l.append(s),e.viewport){var c="matrix(".concat(e.viewport.transform.join(","),")");l.style.transform=c}"richText"!==n&&l.setAttribute("class","xfaLayer xfaFont");for(var u=[];o.length>0;){var d,h=_slicedToArray(o.at(-1),3),v=h[0],f=h[1],p=h[2];if(f+1!==v.children.length){var _=v.children[++o.at(-1)[1]];if(null!==_){var g=_.name;if("#text"!==g){var y=null!=_&&null!==(d=_.attributes)&&void 0!==d&&d.xmlns?document.createElementNS(_.attributes.xmlns,g):document.createElement(g);if(p.append(y),_.attributes&&this.setAttributes({html:y,element:_,storage:t,intent:n,linkService:a}),_.children&&_.children.length>0)o.push([_,-1,y]);else if(_.value){var m=document.createTextNode(_.value);i.XfaText.shouldBuildText(g)&&u.push(m),y.append(m)}}else{var b=document.createTextNode(_.value);u.push(b),p.append(b)}}}else o.pop()}var k,A=_createForOfIteratorHelper(l.querySelectorAll(".xfaNonInteractive input, .xfaNonInteractive textarea"));try{for(A.s();!(k=A.n()).done;)k.value.setAttribute("readOnly",!0)}catch(e){A.e(e)}finally{A.f()}return{textDivs:u}}},{key:"update",value:function(e){var t="matrix(".concat(e.viewport.transform.join(","),")");e.div.style.transform=t,e.div.hidden=!1}}])}();t.XfaLayer=r},function(e,t,a){var i;Object.defineProperty(t,"__esModule",{value:!0}),t.InkEditor=void 0;var r=a(1),n=a(4),s=a(29),o=a(6),l=a(5),c=new WeakMap,u=new WeakMap,d=new WeakMap,h=new WeakMap,v=new WeakMap,f=new WeakMap,p=new WeakMap,_=new WeakMap,g=new WeakMap,y=new WeakMap,m=new WeakMap,b=new WeakMap,k=new WeakMap,A=new WeakMap,P=new WeakSet,F=function(e){function t(e){var a;return _classCallCheck(this,t),_classPrivateMethodInitSpec(a=_callSuper(this,t,[_objectSpread(_objectSpread({},e),{},{name:"inkEditor"})]),P),_classPrivateFieldInitSpec(a,c,0),_classPrivateFieldInitSpec(a,u,0),_classPrivateFieldInitSpec(a,d,a.canvasPointermove.bind(a)),_classPrivateFieldInitSpec(a,h,a.canvasPointerleave.bind(a)),_classPrivateFieldInitSpec(a,v,a.canvasPointerup.bind(a)),_classPrivateFieldInitSpec(a,f,a.canvasPointerdown.bind(a)),_classPrivateFieldInitSpec(a,p,new Path2D),_classPrivateFieldInitSpec(a,_,!1),_classPrivateFieldInitSpec(a,g,!1),_classPrivateFieldInitSpec(a,y,!1),_classPrivateFieldInitSpec(a,m,null),_classPrivateFieldInitSpec(a,b,0),_classPrivateFieldInitSpec(a,k,0),_classPrivateFieldInitSpec(a,A,null),a.color=e.color||null,a.thickness=e.thickness||null,a.opacity=e.opacity||null,a.paths=[],a.bezierPath2D=[],a.allRawPaths=[],a.currentPath=[],a.scaleFactor=1,a.translationX=a.translationY=0,a.x=0,a.y=0,a._willKeepAspectRatio=!0,a}return _inherits(t,e),_createClass(t,[{key:"updateParams",value:function(e,t){switch(e){case r.AnnotationEditorParamsType.INK_THICKNESS:_assertClassBrand(P,this,S).call(this,t);break;case r.AnnotationEditorParamsType.INK_COLOR:_assertClassBrand(P,this,C).call(this,t);break;case r.AnnotationEditorParamsType.INK_OPACITY:_assertClassBrand(P,this,w).call(this,t)}}},{key:"propertiesToUpdate",get:function(){var e;return[[r.AnnotationEditorParamsType.INK_THICKNESS,this.thickness||t._defaultThickness],[r.AnnotationEditorParamsType.INK_COLOR,this.color||t._defaultColor||n.AnnotationEditor._defaultLineColor],[r.AnnotationEditorParamsType.INK_OPACITY,Math.round(100*(null!==(e=this.opacity)&&void 0!==e?e:t._defaultOpacity))]]}},{key:"rebuild",value:function(){this.parent&&(_superPropGet(t,"rebuild",this,3)([]),null!==this.div&&(this.canvas||(_assertClassBrand(P,this,N).call(this),_assertClassBrand(P,this,W).call(this)),this.isAttachedToDOM||(this.parent.add(this),_assertClassBrand(P,this,j).call(this)),_assertClassBrand(P,this,J).call(this)))}},{key:"remove",value:function(){null!==this.canvas&&(this.isEmpty()||this.commit(),this.canvas.width=this.canvas.height=0,this.canvas.remove(),this.canvas=null,_classPrivateFieldGet(m,this).disconnect(),_classPrivateFieldSet(m,this,null),_superPropGet(t,"remove",this,3)([]))}},{key:"setParent",value:function(e){!this.parent&&e?this._uiManager.removeShouldRescale(this):this.parent&&null===e&&this._uiManager.addShouldRescale(this),_superPropGet(t,"setParent",this,3)([e])}},{key:"onScaleChanging",value:function(){var e=_slicedToArray(this.parentDimensions,2),t=e[0],a=e[1],i=this.width*t,r=this.height*a;this.setDimensions(i,r)}},{key:"enableEditMode",value:function(){_classPrivateFieldGet(_,this)||null===this.canvas||(_superPropGet(t,"enableEditMode",this,3)([]),this._isDraggable=!1,this.canvas.addEventListener("pointerdown",_classPrivateFieldGet(f,this)))}},{key:"disableEditMode",value:function(){this.isInEditMode()&&null!==this.canvas&&(_superPropGet(t,"disableEditMode",this,3)([]),this._isDraggable=!this.isEmpty(),this.div.classList.remove("editing"),this.canvas.removeEventListener("pointerdown",_classPrivateFieldGet(f,this)))}},{key:"onceAdded",value:function(){this._isDraggable=!this.isEmpty()}},{key:"isEmpty",value:function(){return 0===this.paths.length||1===this.paths.length&&0===this.paths[0].length}},{key:"commit",value:function(){_classPrivateFieldGet(_,this)||(_superPropGet(t,"commit",this,3)([]),this.isEditing=!1,this.disableEditMode(),this.setInForeground(),_classPrivateFieldSet(_,this,!0),this.div.classList.add("disabled"),_assertClassBrand(P,this,J).call(this,!0),this.makeResizable(),this.parent.addInkEditorIfNeeded(!0),this.moveInDOM(),this.div.focus({preventScroll:!0}))}},{key:"focusin",value:function(e){this._focusEventsAllowed&&(_superPropGet(t,"focusin",this,3)([e]),this.enableEditMode())}},{key:"canvasPointerdown",value:function(e){0===e.button&&this.isInEditMode()&&!_classPrivateFieldGet(_,this)&&(this.setInForeground(),e.preventDefault(),"mouse"!==e.type&&this.div.focus(),_assertClassBrand(P,this,T).call(this,e.offsetX,e.offsetY))}},{key:"canvasPointermove",value:function(e){e.preventDefault(),_assertClassBrand(P,this,M).call(this,e.offsetX,e.offsetY)}},{key:"canvasPointerup",value:function(e){e.preventDefault(),_assertClassBrand(P,this,B).call(this,e)}},{key:"canvasPointerleave",value:function(e){_assertClassBrand(P,this,B).call(this,e)}},{key:"isResizable",get:function(){return!this.isEmpty()&&_classPrivateFieldGet(_,this)}},{key:"render",value:function(){var e,a,i=this;if(this.div)return this.div;this.width&&(e=this.x,a=this.y),_superPropGet(t,"render",this,3)([]),n.AnnotationEditor._l10nPromise.get("editor_ink2_aria_label").then((function(e){var t;return null===(t=i.div)||void 0===t?void 0:t.setAttribute("aria-label",e)}));var r=_slicedToArray(_assertClassBrand(P,this,x).call(this),4),s=r[0],o=r[1],l=r[2],c=r[3];if(this.setAt(s,o,0,0),this.setDims(l,c),_assertClassBrand(P,this,N).call(this),this.width){var u=_slicedToArray(this.parentDimensions,2),d=u[0],h=u[1];this.setAspectRatio(this.width*d,this.height*h),this.setAt(e*d,a*h,this.width*d,this.height*h),_classPrivateFieldSet(y,this,!0),_assertClassBrand(P,this,j).call(this),this.setDims(this.width*d,this.height*h),_assertClassBrand(P,this,L).call(this),this.div.classList.add("disabled")}else this.div.classList.add("editing"),this.enableEditMode();return _assertClassBrand(P,this,W).call(this),this.div}},{key:"setDimensions",value:function(e,t){var a=Math.round(e),i=Math.round(t);if(_classPrivateFieldGet(b,this)!==a||_classPrivateFieldGet(k,this)!==i){_classPrivateFieldSet(b,this,a),_classPrivateFieldSet(k,this,i),this.canvas.style.visibility="hidden";var r=_slicedToArray(this.parentDimensions,2),n=r[0],s=r[1];this.width=e/n,this.height=t/s,this.fixAndSetPosition(),_classPrivateFieldGet(_,this)&&_assertClassBrand(P,this,H).call(this,e,t),_assertClassBrand(P,this,j).call(this),_assertClassBrand(P,this,L).call(this),this.canvas.style.visibility="visible",this.fixDims()}}},{key:"serialize",value:function(){if(this.isEmpty())return null;var e=this.getRect(0,0),t=n.AnnotationEditor._colorManager.convert(this.ctx.strokeStyle);return{annotationType:r.AnnotationEditorType.INK,color:t,thickness:this.thickness,opacity:this.opacity,paths:_assertClassBrand(P,this,X).call(this,this.scaleFactor/this.parentScale,this.translationX,this.translationY,e),pageIndex:this.pageIndex,rect:e,rotation:this.rotation,structTreeParentId:this._structTreeParentId}}}],[{key:"initialize",value:function(e){n.AnnotationEditor.initialize(e,{strings:["editor_ink_canvas_aria_label","editor_ink2_aria_label"]})}},{key:"updateDefaultParams",value:function(e,a){switch(e){case r.AnnotationEditorParamsType.INK_THICKNESS:t._defaultThickness=a;break;case r.AnnotationEditorParamsType.INK_COLOR:t._defaultColor=a;break;case r.AnnotationEditorParamsType.INK_OPACITY:t._defaultOpacity=a/100}}},{key:"defaultPropertiesToUpdate",get:function(){return[[r.AnnotationEditorParamsType.INK_THICKNESS,t._defaultThickness],[r.AnnotationEditorParamsType.INK_COLOR,t._defaultColor||n.AnnotationEditor._defaultLineColor],[r.AnnotationEditorParamsType.INK_OPACITY,Math.round(100*t._defaultOpacity)]]}},{key:"deserialize",value:function(e,a,i){var o;if(e instanceof s.InkAnnotationElement)return null;var l=_superPropGet(t,"deserialize",this,2)([e,a,i]);l.thickness=e.thickness,l.color=(o=r.Util).makeHexColor.apply(o,_toConsumableArray(e.color)),l.opacity=e.opacity;var d=_slicedToArray(l.pageDimensions,2),h=d[0],v=d[1],f=l.width*h,p=l.height*v,g=l.parentScale,y=e.thickness/2;_classPrivateFieldSet(_,l,!0),_classPrivateFieldSet(b,l,Math.round(f)),_classPrivateFieldSet(k,l,Math.round(p));var m,A=e.paths,F=e.rect,S=e.rotation,C=_createForOfIteratorHelper(A);try{for(C.s();!(m=C.n()).done;){var w=m.value.bezier;w=V.call(t,w,F,S);var x=[];l.paths.push(x);for(var E=g*(w[0]-y),T=g*(w[1]-y),M=2,I=w.length;M<I;M+=6){var R=g*(w[M]-y),D=g*(w[M+1]-y),O=g*(w[M+2]-y),G=g*(w[M+3]-y),L=g*(w[M+4]-y),B=g*(w[M+5]-y);x.push([[E,T],[R,D],[O,G],[L,B]]),E=L,T=B}var N=_assertClassBrand(t,this,q).call(this,x);l.bezierPath2D.push(N)}}catch(e){C.e(e)}finally{C.f()}var W=_assertClassBrand(P,l,K).call(l);return _classPrivateFieldSet(u,l,Math.max(n.AnnotationEditor.MIN_SIZE,W[2]-W[0])),_classPrivateFieldSet(c,l,Math.max(n.AnnotationEditor.MIN_SIZE,W[3]-W[1])),_assertClassBrand(P,l,H).call(l,f,p),l}}])}(n.AnnotationEditor);function S(e){var t=this,a=this.thickness;this.addCommands({cmd:function(){t.thickness=e,_assertClassBrand(P,t,J).call(t)},undo:function(){t.thickness=a,_assertClassBrand(P,t,J).call(t)},mustExec:!0,type:r.AnnotationEditorParamsType.INK_THICKNESS,overwriteIfSameType:!0,keepUndo:!0})}function C(e){var t=this,a=this.color;this.addCommands({cmd:function(){t.color=e,_assertClassBrand(P,t,L).call(t)},undo:function(){t.color=a,_assertClassBrand(P,t,L).call(t)},mustExec:!0,type:r.AnnotationEditorParamsType.INK_COLOR,overwriteIfSameType:!0,keepUndo:!0})}function w(e){var t=this;e/=100;var a=this.opacity;this.addCommands({cmd:function(){t.opacity=e,_assertClassBrand(P,t,L).call(t)},undo:function(){t.opacity=a,_assertClassBrand(P,t,L).call(t)},mustExec:!0,type:r.AnnotationEditorParamsType.INK_OPACITY,overwriteIfSameType:!0,keepUndo:!0})}function x(){var e=this.parentRotation,t=_slicedToArray(this.parentDimensions,2),a=t[0],i=t[1];switch(e){case 90:return[0,i,i,a];case 180:return[a,i,a,i];case 270:return[a,0,i,a];default:return[0,0,a,i]}}function E(){var e=this.ctx,t=this.color,a=this.opacity,i=this.thickness,r=this.parentScale,n=this.scaleFactor;e.lineWidth=i*r/n,e.lineCap="round",e.lineJoin="round",e.miterLimit=10,e.strokeStyle="".concat(t).concat((0,l.opacityToHex)(a))}function T(e,t){var a,r=this;this.canvas.addEventListener("contextmenu",o.noContextMenu),this.canvas.addEventListener("pointerleave",_classPrivateFieldGet(h,this)),this.canvas.addEventListener("pointermove",_classPrivateFieldGet(d,this)),this.canvas.addEventListener("pointerup",_classPrivateFieldGet(v,this)),this.canvas.removeEventListener("pointerdown",_classPrivateFieldGet(f,this)),this.isEditing=!0,_classPrivateFieldGet(y,this)||(_classPrivateFieldSet(y,this,!0),_assertClassBrand(P,this,j).call(this),this.thickness||(this.thickness=i._defaultThickness),this.color||(this.color=i._defaultColor||n.AnnotationEditor._defaultLineColor),null!==(a=this.opacity)&&void 0!==a||(this.opacity=i._defaultOpacity)),this.currentPath.push([e,t]),_classPrivateFieldSet(g,this,!1),_assertClassBrand(P,this,E).call(this),_classPrivateFieldSet(A,this,(function(){_assertClassBrand(P,r,D).call(r),_classPrivateFieldGet(A,r)&&window.requestAnimationFrame(_classPrivateFieldGet(A,r))})),window.requestAnimationFrame(_classPrivateFieldGet(A,this))}function M(e,t){var a,i=_slicedToArray(this.currentPath.at(-1),2),r=i[0],n=i[1];if(!(this.currentPath.length>1&&e===r&&t===n)){var s,o,l=this.currentPath,c=_classPrivateFieldGet(p,this);if(l.push([e,t]),_classPrivateFieldSet(g,this,!0),l.length<=2)return(s=c).moveTo.apply(s,_toConsumableArray(l[0])),void c.lineTo(e,t);3===l.length&&(_classPrivateFieldSet(p,this,c=new Path2D),(o=c).moveTo.apply(o,_toConsumableArray(l[0]))),(a=_assertClassBrand(P,this,O)).call.apply(a,[this,c].concat(_toConsumableArray(l.at(-3)),_toConsumableArray(l.at(-2)),[e,t]))}}function I(){var e;if(0!==this.currentPath.length){var t=this.currentPath.at(-1);(e=_classPrivateFieldGet(p,this)).lineTo.apply(e,_toConsumableArray(t))}}function R(e,t){var a,i=this;if(_classPrivateFieldSet(A,this,null),e=Math.min(Math.max(e,0),this.canvas.width),t=Math.min(Math.max(t,0),this.canvas.height),_assertClassBrand(P,this,M).call(this,e,t),_assertClassBrand(P,this,I).call(this),1!==this.currentPath.length)a=_assertClassBrand(P,this,G).call(this);else{var r=[e,t];a=[[r,r.slice(),r.slice(),r]]}var n=_classPrivateFieldGet(p,this),s=this.currentPath;this.currentPath=[],_classPrivateFieldSet(p,this,new Path2D),this.addCommands({cmd:function(){i.allRawPaths.push(s),i.paths.push(a),i.bezierPath2D.push(n),i.rebuild()},undo:function(){i.allRawPaths.pop(),i.paths.pop(),i.bezierPath2D.pop(),0===i.paths.length?i.remove():(i.canvas||(_assertClassBrand(P,i,N).call(i),_assertClassBrand(P,i,W).call(i)),_assertClassBrand(P,i,J).call(i))},mustExec:!0})}function D(){if(_classPrivateFieldGet(g,this)){_classPrivateFieldSet(g,this,!1),Math.ceil(this.thickness*this.parentScale);var e=this.currentPath.slice(-3),t=e.map((function(e){return e[0]})),a=e.map((function(e){return e[1]})),i=(Math.min.apply(Math,_toConsumableArray(t)),Math.max.apply(Math,_toConsumableArray(t)),Math.min.apply(Math,_toConsumableArray(a)),Math.max.apply(Math,_toConsumableArray(a)),this.ctx);i.save(),i.clearRect(0,0,this.canvas.width,this.canvas.height);var r,n=_createForOfIteratorHelper(this.bezierPath2D);try{for(n.s();!(r=n.n()).done;){var s=r.value;i.stroke(s)}}catch(e){n.e(e)}finally{n.f()}i.stroke(_classPrivateFieldGet(p,this)),i.restore()}}function O(e,t,a,i,r,n,s){var o=(t+i)/2,l=(a+r)/2,c=(i+n)/2,u=(r+s)/2;e.bezierCurveTo(o+2*(i-o)/3,l+2*(r-l)/3,c+2*(i-c)/3,u+2*(r-u)/3,c,u)}function G(){var e=this.currentPath;if(e.length<=2)return[[e[0],e[0],e.at(-1),e.at(-1)]];var t,a=[],i=_slicedToArray(e[0],2),r=i[0],n=i[1];for(t=1;t<e.length-2;t++){var s=_slicedToArray(e[t],2),o=s[0],l=s[1],c=_slicedToArray(e[t+1],2),u=(o+c[0])/2,d=(l+c[1])/2,h=[r+2*(o-r)/3,n+2*(l-n)/3],v=[u+2*(o-u)/3,d+2*(l-d)/3];a.push([[r,n],h,v,[u,d]]),r=u,n=d}var f=_slicedToArray(e[t],2),p=f[0],_=f[1],g=_slicedToArray(e[t+1],2),y=g[0],m=g[1],b=[r+2*(p-r)/3,n+2*(_-n)/3],k=[y+2*(p-y)/3,m+2*(_-m)/3];return a.push([[r,n],b,k,[y,m]]),a}function L(){if(this.isEmpty())_assertClassBrand(P,this,U).call(this);else{_assertClassBrand(P,this,E).call(this);var e=this.canvas,t=this.ctx;t.setTransform(1,0,0,1,0,0),t.clearRect(0,0,e.width,e.height),_assertClassBrand(P,this,U).call(this);var a,i=_createForOfIteratorHelper(this.bezierPath2D);try{for(i.s();!(a=i.n()).done;){var r=a.value;t.stroke(r)}}catch(e){i.e(e)}finally{i.f()}}}function B(e){var t=this;this.canvas.removeEventListener("pointerleave",_classPrivateFieldGet(h,this)),this.canvas.removeEventListener("pointermove",_classPrivateFieldGet(d,this)),this.canvas.removeEventListener("pointerup",_classPrivateFieldGet(v,this)),this.canvas.addEventListener("pointerdown",_classPrivateFieldGet(f,this)),setTimeout((function(){t.canvas.removeEventListener("contextmenu",o.noContextMenu)}),10),_assertClassBrand(P,this,R).call(this,e.offsetX,e.offsetY),this.addToAnnotationStorage(),this.setInBackground()}function N(){var e=this;this.canvas=document.createElement("canvas"),this.canvas.width=this.canvas.height=0,this.canvas.className="inkEditorCanvas",n.AnnotationEditor._l10nPromise.get("editor_ink_canvas_aria_label").then((function(t){var a;return null===(a=e.canvas)||void 0===a?void 0:a.setAttribute("aria-label",t)})),this.div.append(this.canvas),this.ctx=this.canvas.getContext("2d")}function W(){var e=this;_classPrivateFieldSet(m,this,new ResizeObserver((function(t){var a=t[0].contentRect;a.width&&a.height&&e.setDimensions(a.width,a.height)}))),_classPrivateFieldGet(m,this).observe(this.div)}function j(){if(_classPrivateFieldGet(y,this)){var e=_slicedToArray(this.parentDimensions,2),t=e[0],a=e[1];this.canvas.width=Math.ceil(this.width*t),this.canvas.height=Math.ceil(this.height*a),_assertClassBrand(P,this,U).call(this)}}function H(e,t){var a=_assertClassBrand(P,this,Y).call(this),i=(e-a)/_classPrivateFieldGet(u,this),r=(t-a)/_classPrivateFieldGet(c,this);this.scaleFactor=Math.min(i,r)}function U(){var e=_assertClassBrand(P,this,Y).call(this)/2;this.ctx.setTransform(this.scaleFactor,0,0,this.scaleFactor,this.translationX*this.scaleFactor+e,this.translationY*this.scaleFactor+e)}function q(e){for(var t=new Path2D,a=0,i=e.length;a<i;a++){var r=_slicedToArray(e[a],4),n=r[0],s=r[1],o=r[2],l=r[3];0===a&&t.moveTo.apply(t,_toConsumableArray(n)),t.bezierCurveTo(s[0],s[1],o[0],o[1],l[0],l[1])}return t}function z(e,t,a){var i=_slicedToArray(t,4),r=i[0],n=i[1],s=i[2],o=i[3];switch(a){case 0:for(var l=0,c=e.length;l<c;l+=2)e[l]+=r,e[l+1]=o-e[l+1];break;case 90:for(var u=0,d=e.length;u<d;u+=2){var h=e[u];e[u]=e[u+1]+r,e[u+1]=h+n}break;case 180:for(var v=0,f=e.length;v<f;v+=2)e[v]=s-e[v],e[v+1]+=n;break;case 270:for(var p=0,_=e.length;p<_;p+=2){var g=e[p];e[p]=s-e[p+1],e[p+1]=o-g}break;default:throw new Error("Invalid rotation")}return e}function V(e,t,a){var i=_slicedToArray(t,4),r=i[0],n=i[1],s=i[2],o=i[3];switch(a){case 0:for(var l=0,c=e.length;l<c;l+=2)e[l]-=r,e[l+1]=o-e[l+1];break;case 90:for(var u=0,d=e.length;u<d;u+=2){var h=e[u];e[u]=e[u+1]-n,e[u+1]=h-r}break;case 180:for(var v=0,f=e.length;v<f;v+=2)e[v]=s-e[v],e[v+1]-=n;break;case 270:for(var p=0,_=e.length;p<_;p+=2){var g=e[p];e[p]=o-e[p+1],e[p+1]=s-g}break;default:throw new Error("Invalid rotation")}return e}function X(e,t,a,r){var n,s=[],o=this.thickness/2,l=e*t+o,c=e*a+o,u=_createForOfIteratorHelper(this.paths);try{for(u.s();!(n=u.n()).done;){for(var d=n.value,h=[],v=[],f=0,p=d.length;f<p;f++){var _=_slicedToArray(d[f],4),g=_[0],y=_[1],m=_[2],b=_[3],k=e*g[0]+l,A=e*g[1]+c,P=e*y[0]+l,F=e*y[1]+c,S=e*m[0]+l,C=e*m[1]+c,w=e*b[0]+l,x=e*b[1]+c;0===f&&(h.push(k,A),v.push(k,A)),h.push(P,F,S,C,w,x),v.push(P,F),f===p-1&&v.push(w,x)}s.push({bezier:z.call(i,h,r,this.rotation),points:z.call(i,v,r,this.rotation)})}}catch(e){u.e(e)}finally{u.f()}return s}function K(){var e,t=1/0,a=-1/0,i=1/0,n=-1/0,s=_createForOfIteratorHelper(this.paths);try{for(s.s();!(e=s.n()).done;){var o,l=_createForOfIteratorHelper(e.value);try{for(l.s();!(o=l.n()).done;){var c,u=_slicedToArray(o.value,4),d=u[0],h=u[1],v=u[2],f=u[3],p=(c=r.Util).bezierBoundingBox.apply(c,_toConsumableArray(d).concat(_toConsumableArray(h),_toConsumableArray(v),_toConsumableArray(f)));t=Math.min(t,p[0]),i=Math.min(i,p[1]),a=Math.max(a,p[2]),n=Math.max(n,p[3])}}catch(e){l.e(e)}finally{l.f()}}}catch(e){s.e(e)}finally{s.f()}return[t,i,a,n]}function Y(){return _classPrivateFieldGet(_,this)?Math.ceil(this.thickness*this.parentScale):0}function J(){var e=arguments.length>0&&void 0!==arguments[0]&&arguments[0];if(!this.isEmpty())if(_classPrivateFieldGet(_,this)){var t=_assertClassBrand(P,this,K).call(this),a=_assertClassBrand(P,this,Y).call(this);_classPrivateFieldSet(u,this,Math.max(n.AnnotationEditor.MIN_SIZE,t[2]-t[0])),_classPrivateFieldSet(c,this,Math.max(n.AnnotationEditor.MIN_SIZE,t[3]-t[1]));var i=Math.ceil(a+_classPrivateFieldGet(u,this)*this.scaleFactor),r=Math.ceil(a+_classPrivateFieldGet(c,this)*this.scaleFactor),s=_slicedToArray(this.parentDimensions,2),o=s[0],l=s[1];this.width=i/o,this.height=r/l,this.setAspectRatio(i,r);var d=this.translationX,h=this.translationY;this.translationX=-t[0],this.translationY=-t[1],_assertClassBrand(P,this,j).call(this),_assertClassBrand(P,this,L).call(this),_classPrivateFieldSet(b,this,i),_classPrivateFieldSet(k,this,r),this.setDims(i,r);var v=e?a/this.scaleFactor/2:0;this.translate(d-this.translationX-v,h-this.translationY-v)}else _assertClassBrand(P,this,L).call(this)}i=F,_defineProperty(F,"_defaultColor",null),_defineProperty(F,"_defaultOpacity",1),_defineProperty(F,"_defaultThickness",1),_defineProperty(F,"_type","ink"),t.InkEditor=F},function(e,t,a){var i;Object.defineProperty(t,"__esModule",{value:!0}),t.StampEditor=void 0;var r=a(1),n=a(4),s=a(6),o=a(29),l=new WeakMap,c=new WeakMap,u=new WeakMap,d=new WeakMap,h=new WeakMap,v=new WeakMap,f=new WeakMap,p=new WeakMap,_=new WeakMap,g=new WeakMap,y=new WeakSet,m=function(e){function t(e){var a;return _classCallCheck(this,t),_classPrivateMethodInitSpec(a=_callSuper(this,t,[_objectSpread(_objectSpread({},e),{},{name:"stampEditor"})]),y),_classPrivateFieldInitSpec(a,l,null),_classPrivateFieldInitSpec(a,c,null),_classPrivateFieldInitSpec(a,u,null),_classPrivateFieldInitSpec(a,d,null),_classPrivateFieldInitSpec(a,h,null),_classPrivateFieldInitSpec(a,v,null),_classPrivateFieldInitSpec(a,f,null),_classPrivateFieldInitSpec(a,p,null),_classPrivateFieldInitSpec(a,_,!1),_classPrivateFieldInitSpec(a,g,!1),_classPrivateFieldSet(d,a,e.bitmapUrl),_classPrivateFieldSet(h,a,e.bitmapFile),a}return _inherits(t,e),_createClass(t,[{key:"remove",value:function(){var e,a;_classPrivateFieldGet(c,this)&&(_classPrivateFieldSet(l,this,null),this._uiManager.imageManager.deleteId(_classPrivateFieldGet(c,this)),null===(e=_classPrivateFieldGet(v,this))||void 0===e||e.remove(),_classPrivateFieldSet(v,this,null),null===(a=_classPrivateFieldGet(f,this))||void 0===a||a.disconnect(),_classPrivateFieldSet(f,this,null)),_superPropGet(t,"remove",this,3)([])}},{key:"rebuild",value:function(){this.parent?(_superPropGet(t,"rebuild",this,3)([]),null!==this.div&&(_classPrivateFieldGet(c,this)&&_assertClassBrand(y,this,A).call(this),this.isAttachedToDOM||this.parent.add(this))):_classPrivateFieldGet(c,this)&&_assertClassBrand(y,this,A).call(this)}},{key:"onceAdded",value:function(){this._isDraggable=!0,this.div.focus()}},{key:"isEmpty",value:function(){return!(_classPrivateFieldGet(u,this)||_classPrivateFieldGet(l,this)||_classPrivateFieldGet(d,this)||_classPrivateFieldGet(h,this))}},{key:"isResizable",get:function(){return!0}},{key:"render",value:function(){if(this.div)return this.div;var e,a;if(this.width&&(e=this.x,a=this.y),_superPropGet(t,"render",this,3)([]),this.div.hidden=!0,_classPrivateFieldGet(l,this)?_assertClassBrand(y,this,P).call(this):_assertClassBrand(y,this,A).call(this),this.width){var i=_slicedToArray(this.parentDimensions,2),r=i[0],n=i[1];this.setAt(e*r,a*n,this.width*r,this.height*n)}return this.div}},{key:"serialize",value:function(){var e=arguments.length>0&&void 0!==arguments[0]&&arguments[0],t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null;if(this.isEmpty())return null;var a={annotationType:r.AnnotationEditorType.STAMP,bitmapId:_classPrivateFieldGet(c,this),pageIndex:this.pageIndex,rect:this.getRect(0,0),rotation:this.rotation,isSvg:_classPrivateFieldGet(_,this),structTreeParentId:this._structTreeParentId};if(e)return a.bitmapUrl=_assertClassBrand(y,this,w).call(this,!0),a.accessibilityData=this.altTextData,a;var i=this.altTextData,n=i.decorative,s=i.altText;if(!n&&s&&(a.accessibilityData={type:"Figure",alt:s}),null===t)return a;t.stamps||(t.stamps=new Map);var o=_classPrivateFieldGet(_,this)?(a.rect[2]-a.rect[0])*(a.rect[3]-a.rect[1]):null;if(t.stamps.has(_classPrivateFieldGet(c,this))){if(_classPrivateFieldGet(_,this)){var l=t.stamps.get(_classPrivateFieldGet(c,this));o>l.area&&(l.area=o,l.serialized.bitmap.close(),l.serialized.bitmap=_assertClassBrand(y,this,w).call(this,!1))}}else t.stamps.set(_classPrivateFieldGet(c,this),{area:o,serialized:a}),a.bitmap=_assertClassBrand(y,this,w).call(this,!1);return a}}],[{key:"initialize",value:function(e){n.AnnotationEditor.initialize(e)}},{key:"supportedTypes",get:function(){return(0,r.shadow)(this,"supportedTypes",["apng","avif","bmp","gif","jpeg","png","svg+xml","webp","x-icon"].map((function(e){return"image/".concat(e)})))}},{key:"supportedTypesStr",get:function(){return(0,r.shadow)(this,"supportedTypesStr",this.supportedTypes.join(","))}},{key:"isHandlingMimeForPasting",value:function(e){return this.supportedTypes.includes(e)}},{key:"paste",value:function(e,t){t.pasteEditor(r.AnnotationEditorType.STAMP,{bitmapFile:e.getAsFile()})}},{key:"deserialize",value:function(e,a,i){if(e instanceof o.StampAnnotationElement)return null;var r=_superPropGet(t,"deserialize",this,2)([e,a,i]),n=e.rect,s=e.bitmapUrl,l=e.bitmapId,u=e.isSvg,h=e.accessibilityData;l&&i.imageManager.isValidId(l)?_classPrivateFieldSet(c,r,l):_classPrivateFieldSet(d,r,s),_classPrivateFieldSet(_,r,u);var v=_slicedToArray(r.pageDimensions,2),f=v[0],p=v[1];return r.width=(n[2]-n[0])/f,r.height=(n[3]-n[1])/p,h&&(r.altTextData=h),r}}])}(n.AnnotationEditor);function b(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];e?(_classPrivateFieldSet(l,this,e.bitmap),t||(_classPrivateFieldSet(c,this,e.id),_classPrivateFieldSet(_,this,e.isSvg)),_assertClassBrand(y,this,P).call(this)):this.remove()}function k(){_classPrivateFieldSet(u,this,null),this._uiManager.enableWaiting(!1),_classPrivateFieldGet(v,this)&&this.div.focus()}function A(){var e=this;if(_classPrivateFieldGet(c,this))return this._uiManager.enableWaiting(!0),void this._uiManager.imageManager.getFromId(_classPrivateFieldGet(c,this)).then((function(t){return _assertClassBrand(y,e,b).call(e,t,!0)})).finally((function(){return _assertClassBrand(y,e,k).call(e)}));if(_classPrivateFieldGet(d,this)){var t=_classPrivateFieldGet(d,this);return _classPrivateFieldSet(d,this,null),this._uiManager.enableWaiting(!0),void _classPrivateFieldSet(u,this,this._uiManager.imageManager.getFromUrl(t).then((function(t){return _assertClassBrand(y,e,b).call(e,t)})).finally((function(){return _assertClassBrand(y,e,k).call(e)})))}if(_classPrivateFieldGet(h,this)){var a=_classPrivateFieldGet(h,this);return _classPrivateFieldSet(h,this,null),this._uiManager.enableWaiting(!0),void _classPrivateFieldSet(u,this,this._uiManager.imageManager.getFromFile(a).then((function(t){return _assertClassBrand(y,e,b).call(e,t)})).finally((function(){return _assertClassBrand(y,e,k).call(e)})))}var r=document.createElement("input");r.type="file",r.accept=i.supportedTypesStr,_classPrivateFieldSet(u,this,new Promise((function(t){r.addEventListener("change",_asyncToGenerator(_regenerator().m((function a(){var i;return _regenerator().w((function(a){for(;;)switch(a.n){case 0:if(r.files&&0!==r.files.length){a.n=1;break}e.remove(),a.n=3;break;case 1:return e._uiManager.enableWaiting(!0),a.n=2,e._uiManager.imageManager.getFromFile(r.files[0]);case 2:i=a.v,_assertClassBrand(y,e,b).call(e,i);case 3:t();case 4:return a.a(2)}}),a)})))),r.addEventListener("cancel",(function(){e.remove(),t()}))})).finally((function(){return _assertClassBrand(y,e,k).call(e)}))),r.click()}function P(){var e=this.div,t=_classPrivateFieldGet(l,this),a=t.width,i=t.height,r=_slicedToArray(this.pageDimensions,2),n=r[0],s=r[1],o=.75;if(this.width)a=this.width*n,i=this.height*s;else if(a>o*n||i>o*s){var c=Math.min(o*n/a,o*s/i);a*=c,i*=c}var u=_slicedToArray(this.parentDimensions,2),d=u[0],h=u[1];this.setDims(a*d/n,i*h/s),this._uiManager.enableWaiting(!1);var f=_classPrivateFieldSet(v,this,document.createElement("canvas"));e.append(f),e.hidden=!1,_assertClassBrand(y,this,C).call(this,a,i),_assertClassBrand(y,this,x).call(this),_classPrivateFieldGet(g,this)||(this.parent.addUndoableEditor(this),_classPrivateFieldSet(g,this,!0)),this._uiManager._eventBus.dispatch("reporttelemetry",{source:this,details:{type:"editing",subtype:this.editorType,data:{action:"inserted_image"}}}),this.addAltTextButton()}function F(e,t){var a,i=this,r=_slicedToArray(this.parentDimensions,2),n=r[0],s=r[1];this.width=e/n,this.height=t/s,this.setDims(e,t),null!==(a=this._initialOptions)&&void 0!==a&&a.isCentered?this.center():this.fixAndSetPosition(),this._initialOptions=null,null!==_classPrivateFieldGet(p,this)&&clearTimeout(_classPrivateFieldGet(p,this)),_classPrivateFieldSet(p,this,setTimeout((function(){_classPrivateFieldSet(p,i,null),_assertClassBrand(y,i,C).call(i,e,t)}),200))}function S(e,t){for(var a=_classPrivateFieldGet(l,this),i=a.width,r=a.height,n=_classPrivateFieldGet(l,this);i>2*e||r>2*t;){var s=i,o=r;i>2*e&&(i=i>=16384?Math.floor(i/2)-1:Math.ceil(i/2)),r>2*t&&(r=r>=16384?Math.floor(r/2)-1:Math.ceil(r/2));var c=new OffscreenCanvas(i,r);c.getContext("2d").drawImage(n,0,0,s,o,0,0,i,r),n=c.transferToImageBitmap()}return n}function C(e,t){e=Math.ceil(e),t=Math.ceil(t);var a=_classPrivateFieldGet(v,this);if(a&&(a.width!==e||a.height!==t)){a.width=e,a.height=t;var i=_classPrivateFieldGet(_,this)?_classPrivateFieldGet(l,this):_assertClassBrand(y,this,S).call(this,e,t),r=a.getContext("2d");r.filter=this._uiManager.hcmFilter,r.drawImage(i,0,0,i.width,i.height,0,0,e,t)}}function w(e){if(e){if(_classPrivateFieldGet(_,this)){var t=this._uiManager.imageManager.getSvgUrl(_classPrivateFieldGet(c,this));if(t)return t}var a=document.createElement("canvas"),i=_classPrivateFieldGet(l,this);return a.width=i.width,a.height=i.height,a.getContext("2d").drawImage(_classPrivateFieldGet(l,this),0,0),a.toDataURL()}if(_classPrivateFieldGet(_,this)){var r=_slicedToArray(this.pageDimensions,2),n=r[0],o=r[1],u=Math.round(this.width*n*s.PixelsPerInch.PDF_TO_CSS_UNITS),d=Math.round(this.height*o*s.PixelsPerInch.PDF_TO_CSS_UNITS),h=new OffscreenCanvas(u,d);return h.getContext("2d").drawImage(_classPrivateFieldGet(l,this),0,0,_classPrivateFieldGet(l,this).width,_classPrivateFieldGet(l,this).height,0,0,u,d),h.transferToImageBitmap()}return structuredClone(_classPrivateFieldGet(l,this))}function x(){var e=this;_classPrivateFieldSet(f,this,new ResizeObserver((function(t){var a=t[0].contentRect;a.width&&a.height&&_assertClassBrand(y,e,F).call(e,a.width,a.height)}))),_classPrivateFieldGet(f,this).observe(this.div)}i=m,_defineProperty(m,"_type","stamp"),t.StampEditor=m}],__webpack_module_cache__={};function __w_pdfjs_require__(e){var t=__webpack_module_cache__[e];if(void 0!==t)return t.exports;var a=__webpack_module_cache__[e]={exports:{}};return __webpack_modules__[e](a,a.exports,__w_pdfjs_require__),a.exports}var __nested_webpack_exports__={};return function(){var e=__nested_webpack_exports__;Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"AbortException",{enumerable:!0,get:function(){return t.AbortException}}),Object.defineProperty(e,"AnnotationEditorLayer",{enumerable:!0,get:function(){return n.AnnotationEditorLayer}}),Object.defineProperty(e,"AnnotationEditorParamsType",{enumerable:!0,get:function(){return t.AnnotationEditorParamsType}}),Object.defineProperty(e,"AnnotationEditorType",{enumerable:!0,get:function(){return t.AnnotationEditorType}}),Object.defineProperty(e,"AnnotationEditorUIManager",{enumerable:!0,get:function(){return s.AnnotationEditorUIManager}}),Object.defineProperty(e,"AnnotationLayer",{enumerable:!0,get:function(){return o.AnnotationLayer}}),Object.defineProperty(e,"AnnotationMode",{enumerable:!0,get:function(){return t.AnnotationMode}}),Object.defineProperty(e,"CMapCompressionType",{enumerable:!0,get:function(){return t.CMapCompressionType}}),Object.defineProperty(e,"DOMSVGFactory",{enumerable:!0,get:function(){return i.DOMSVGFactory}}),Object.defineProperty(e,"FeatureTest",{enumerable:!0,get:function(){return t.FeatureTest}}),Object.defineProperty(e,"GlobalWorkerOptions",{enumerable:!0,get:function(){return l.GlobalWorkerOptions}}),Object.defineProperty(e,"ImageKind",{enumerable:!0,get:function(){return t.ImageKind}}),Object.defineProperty(e,"InvalidPDFException",{enumerable:!0,get:function(){return t.InvalidPDFException}}),Object.defineProperty(e,"MissingPDFException",{enumerable:!0,get:function(){return t.MissingPDFException}}),Object.defineProperty(e,"OPS",{enumerable:!0,get:function(){return t.OPS}}),Object.defineProperty(e,"PDFDataRangeTransport",{enumerable:!0,get:function(){return a.PDFDataRangeTransport}}),Object.defineProperty(e,"PDFDateString",{enumerable:!0,get:function(){return i.PDFDateString}}),Object.defineProperty(e,"PDFWorker",{enumerable:!0,get:function(){return a.PDFWorker}}),Object.defineProperty(e,"PasswordResponses",{enumerable:!0,get:function(){return t.PasswordResponses}}),Object.defineProperty(e,"PermissionFlag",{enumerable:!0,get:function(){return t.PermissionFlag}}),Object.defineProperty(e,"PixelsPerInch",{enumerable:!0,get:function(){return i.PixelsPerInch}}),Object.defineProperty(e,"PromiseCapability",{enumerable:!0,get:function(){return t.PromiseCapability}}),Object.defineProperty(e,"RenderingCancelledException",{enumerable:!0,get:function(){return i.RenderingCancelledException}}),Object.defineProperty(e,"SVGGraphics",{enumerable:!0,get:function(){return a.SVGGraphics}}),Object.defineProperty(e,"UnexpectedResponseException",{enumerable:!0,get:function(){return t.UnexpectedResponseException}}),Object.defineProperty(e,"Util",{enumerable:!0,get:function(){return t.Util}}),Object.defineProperty(e,"VerbosityLevel",{enumerable:!0,get:function(){return t.VerbosityLevel}}),Object.defineProperty(e,"XfaLayer",{enumerable:!0,get:function(){return c.XfaLayer}}),Object.defineProperty(e,"build",{enumerable:!0,get:function(){return a.build}}),Object.defineProperty(e,"createValidAbsoluteUrl",{enumerable:!0,get:function(){return t.createValidAbsoluteUrl}}),Object.defineProperty(e,"getDocument",{enumerable:!0,get:function(){return a.getDocument}}),Object.defineProperty(e,"getFilenameFromUrl",{enumerable:!0,get:function(){return i.getFilenameFromUrl}}),Object.defineProperty(e,"getPdfFilenameFromUrl",{enumerable:!0,get:function(){return i.getPdfFilenameFromUrl}}),Object.defineProperty(e,"getXfaPageViewport",{enumerable:!0,get:function(){return i.getXfaPageViewport}}),Object.defineProperty(e,"isDataScheme",{enumerable:!0,get:function(){return i.isDataScheme}}),Object.defineProperty(e,"isPdfFile",{enumerable:!0,get:function(){return i.isPdfFile}}),Object.defineProperty(e,"loadScript",{enumerable:!0,get:function(){return i.loadScript}}),Object.defineProperty(e,"noContextMenu",{enumerable:!0,get:function(){return i.noContextMenu}}),Object.defineProperty(e,"normalizeUnicode",{enumerable:!0,get:function(){return t.normalizeUnicode}}),Object.defineProperty(e,"renderTextLayer",{enumerable:!0,get:function(){return r.renderTextLayer}}),Object.defineProperty(e,"setLayerDimensions",{enumerable:!0,get:function(){return i.setLayerDimensions}}),Object.defineProperty(e,"shadow",{enumerable:!0,get:function(){return t.shadow}}),Object.defineProperty(e,"updateTextLayer",{enumerable:!0,get:function(){return r.updateTextLayer}}),Object.defineProperty(e,"version",{enumerable:!0,get:function(){return a.version}});var t=__w_pdfjs_require__(1),a=__w_pdfjs_require__(2),i=__w_pdfjs_require__(6),r=__w_pdfjs_require__(26),n=__w_pdfjs_require__(27),s=__w_pdfjs_require__(5),o=__w_pdfjs_require__(29),l=__w_pdfjs_require__(14),c=__w_pdfjs_require__(32)}(),__nested_webpack_exports__}()},"object"===_typeof(exports)&&"object"===_typeof(module)?module.exports=root.pdfjsLib=factory():void 0===(__WEBPACK_AMD_DEFINE_RESULT__=function(){return root.pdfjsLib=factory()}.apply(exports,__WEBPACK_AMD_DEFINE_ARRAY__=[]))||(module.exports=__WEBPACK_AMD_DEFINE_RESULT__)}}]);
|