@visitscotland/component-library 5.41.6 → 5.42.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/client/manifest.json +1583 -1479
- package/dist/client/scripts/0036243f84e83014237c.js +1 -1
- package/dist/client/scripts/00ccd7949f170b3d738d.js +1 -1
- package/dist/client/scripts/01554a4fdde2d61b4d49.js +1 -1
- package/dist/client/scripts/{a397c46fe765889eba59.js → 01b8e76e714348e01802.js} +1 -1
- package/dist/client/scripts/0389a15654d3a45aab1a.js +1 -1
- package/dist/client/scripts/04b71860f29844231b00.js +1 -1
- package/dist/client/scripts/{e94da6d3801ebb02d8ce.js → 05460edc897f6e35c50e.js} +1 -1
- package/dist/client/scripts/056cd8933beea0edc19e.js +1 -1
- package/dist/client/scripts/{19a97f4c8217fe493368.js → 05964f039507c464d344.js} +1 -1
- package/dist/client/scripts/093dbadb21acf4310ea2.js +1 -1
- package/dist/client/scripts/0965942c287f6c10c83a.js +1 -1
- package/dist/client/scripts/{0da964d971a554507734.js → 096a1dc72c78b8176a60.js} +1 -1
- package/dist/client/scripts/{5389ee753606f9248ce8.js → 09ae016b64791f86ce4a.js} +1 -1
- package/dist/client/scripts/09efaf35581f94d9341a.js +1 -1
- package/dist/client/scripts/0a73fba3841d42f4062e.js +1 -1
- package/dist/client/scripts/0cb36cf0019d0d1516a9.js +1 -0
- package/dist/client/scripts/0e836ffbc4a97ef8a4fb.js +1 -1
- package/dist/client/scripts/0eccccf491d2d8c15ec2.js +1 -1
- package/dist/client/scripts/{2122d479f8a8a3d5a02e.js → 0efef27882999582a48c.js} +1 -1
- package/dist/client/scripts/108124f3353174a3c98b.js +1 -1
- package/dist/client/scripts/10c8c43c2d1d2c9c3ac6.js +1 -1
- package/dist/client/scripts/{149849e9e46fa12a6d57.js → 11bdf203d8398fc93aea.js} +1 -1
- package/dist/client/scripts/1262d9eb296be8be48b9.js +1 -1
- package/dist/client/scripts/{d46534bfd4639ca6592e.js → 12f9d7e13904294edfc5.js} +1 -1
- package/dist/client/scripts/{72709ccc1d539e0e7922.js → 12fa4d6469761cdb8326.js} +1 -1
- package/dist/client/scripts/{bff2361f88ee3867b9b5.js → 144d2007e1b1a85b5cec.js} +1 -1
- package/dist/client/scripts/{607805f92c511232d42e.js → 14552227c097ba45d96d.js} +1 -1
- package/dist/client/scripts/15e9f022c7952c07e6ce.js +1 -1
- package/dist/client/scripts/16a3a76ec493d5af9559.js +1 -1
- package/dist/client/scripts/16d1b6f2e9d13a059244.js +1 -1
- package/dist/client/scripts/16f08d577a78d2740818.js +1 -1
- package/dist/client/scripts/17bca51c0b3e12105894.js +1 -1
- package/dist/client/scripts/1970d55f90fe220cf58b.js +1 -1
- package/dist/client/scripts/1aae8117699af5bed418.js +1 -1
- package/dist/client/scripts/1c048832077af161ca70.js +1 -1
- package/dist/client/scripts/{e31c75f05ebcf9568c26.js → 1cf0a84b704943e20542.js} +1 -1
- package/dist/client/scripts/1dab8b823a9fc7be9e7d.js +1 -1
- package/dist/client/scripts/{830e7f83c507e3b81403.js → 1de9c5ad01140bfb6ca5.js} +1 -1
- package/dist/client/scripts/{4e22e8c6d6968c8bb509.js → 1f4d80572006cd3ff28e.js} +1 -1
- package/dist/client/scripts/{4626c48ced549c077e3e.js → 201941464a25dc50dcec.js} +1 -1
- package/dist/client/scripts/{c21a6c36e3568bdc534f.js → 20d05ca262d096564101.js} +1 -1
- package/dist/client/scripts/{d0754b4aa24deddb7245.js → 21711e87222aa129f005.js} +1 -1
- package/dist/client/scripts/2290109a2b19f24f7f67.js +1 -1
- package/dist/client/scripts/23889a0a798b09d499c1.js +1 -1
- package/dist/client/scripts/{f443edb707d72594a1e7.js → 239e8acfb9f1a566c62f.js} +1 -1
- package/dist/client/scripts/24070a0f940f8ed87a1c.js +1 -1
- package/dist/client/scripts/{adc43fc9fa9ee3c85f21.js → 281fbf5ff6ca8953bd94.js} +1 -1
- package/dist/client/scripts/29d2385ba08f0023585c.js +1 -1
- package/dist/client/scripts/2a0d066c05ce80ef84a2.js +1 -1
- package/dist/client/scripts/2a74d3661f1aeb64da2d.js +1 -1
- package/dist/client/scripts/2bdd4484eaf0f7c7bc7d.js +1 -1
- package/dist/client/scripts/2d931eb506983939dee2.js +1 -1
- package/dist/client/scripts/2e41422c35f0d8147936.js +1 -1
- package/dist/client/scripts/2fb997a43b43bfb18687.js +1 -1
- package/dist/client/scripts/{958dc3347b4c79ae92f0.js → 3173dc863274aa930452.js} +1 -1
- package/dist/client/scripts/31cc034791fd8fed08dc.js +1 -1
- package/dist/client/scripts/{209af26331fa5efbb1e0.js → 34684cbbfd8f07dd7939.js} +1 -1
- package/dist/client/scripts/350b5411ffc3a7b4a42a.js +1 -0
- package/dist/client/scripts/{678be80c89eff10efccf.js → 370e6150fbd0dccf34c7.js} +2 -2
- package/dist/client/scripts/378133b962494b0328be.js +1 -1
- package/dist/client/scripts/38875405be2461bf6367.js +1 -1
- package/dist/client/scripts/38d5589b9158ab8e7423.js +1 -1
- package/dist/client/scripts/392a233a558e074c70d9.js +1 -1
- package/dist/client/scripts/393fa3ee68d9e76e6def.js +1 -1
- package/dist/client/scripts/3967efd5a872171e7230.js +1 -1
- package/dist/client/scripts/{784d227f712ddb91cb2a.js → 39bd197d7d1f66f65105.js} +1 -1
- package/dist/client/scripts/3a54f6b2d5b91ff395dc.js +1 -1
- package/dist/client/scripts/3aaefce16b5df1479178.js +1 -1
- package/dist/client/scripts/3ae3625c5b179d3021e9.js +1 -1
- package/dist/client/scripts/3c5baf37fc4cdec110f6.js +1 -1
- package/dist/client/scripts/3cf61618bc3263a1c0c9.js +1 -1
- package/dist/client/scripts/3ea2352e8a94ddc6dc8a.js +1 -1
- package/dist/client/scripts/{336dc65beaffd0fe9728.js → 404c0b7cff4d305398c5.js} +1 -1
- package/dist/client/scripts/406e9909758efdb1ae29.js +1 -1
- package/dist/client/scripts/408bd09f6eb4f00d6659.js +1 -1
- package/dist/client/scripts/416c4f28b6594389fb58.js +1 -0
- package/dist/client/scripts/41dea7515c49fbb37cd0.js +1 -1
- package/dist/client/scripts/41f72194eda6300eda07.js +1 -0
- package/dist/client/scripts/42233f90e1246c3d508e.js +1 -1
- package/dist/client/scripts/427f4a836835f87aa5a6.js +1 -0
- package/dist/client/scripts/{dba3948d8b668e96cee6.js → 45ea777abdc94a4fe90a.js} +1 -1
- package/dist/client/scripts/{58473b34392d3edecc6c.js → 49ab77897fd7265e3bf1.js} +1 -1
- package/dist/client/scripts/{1c5e74a53e980a13c560.js → 4a5baf290bdcb8866cb3.js} +1 -1
- package/dist/client/scripts/4a7dd18ce8648d5f3748.js +1 -1
- package/dist/client/scripts/{7c55ed358f5750245829.js → 4af4fb2e7934b3943d68.js} +1 -1
- package/dist/client/scripts/{bd3814764b1c7e8c5751.js → 4f47ffaa9a5862cc51d1.js} +1 -1
- package/dist/client/scripts/5032a70c599e2f468071.js +1 -1
- package/dist/client/scripts/507d772ea7c3ad69cd02.js +1 -1
- package/dist/client/scripts/509216b4e74f11f64f80.js +1 -0
- package/dist/client/scripts/{0de83ee7e84dc3cca135.js → 50d64cdbfaa0c7f02bff.js} +1 -1
- package/dist/client/scripts/51240b9c502b2993bd72.js +1 -1
- package/dist/client/scripts/{83df837d0feb863dfcd9.js → 51b02e9cc8dcce007d09.js} +1 -1
- package/dist/client/scripts/{9a3456d670f8b4d54fa7.js → 527999b00f27717c8e3d.js} +1 -1
- package/dist/client/scripts/53251829ca5de2bf36fe.js +1 -0
- package/dist/client/scripts/5338ba2c1a300fb817ad.js +1 -1
- package/dist/client/scripts/{4db66c860932e8c611a3.js → 56b154fca6dd1d2717ab.js} +1 -1
- package/dist/client/scripts/5828c72a7124a5bcb563.js +1 -0
- package/dist/client/scripts/59ab7b4a6827442b90c7.js +1 -1
- package/dist/client/scripts/5a4a97205da676950fcf.js +1 -0
- package/dist/client/scripts/{529b4b855c5a64c0b642.js → 5ba4f0c291b89c266862.js} +1 -1
- package/dist/client/scripts/5bfe1a52e5e438b16b80.js +1 -1
- package/dist/client/scripts/5d1cdcc8987a6cc186f0.js +1 -1
- package/dist/client/scripts/{544b6969eedda98a4909.js → 5eb42ef6d08a351ed72d.js} +1 -1
- package/dist/client/scripts/6011db9e93655179bce2.js +1 -1
- package/dist/client/scripts/{7920255a5c68d97e99d9.js → 6017d8191657aaded718.js} +1 -1
- package/dist/client/scripts/60e11eae5d8e305a26b5.js +1 -1
- package/dist/client/scripts/{aaf155991bb2554936c0.js → 61640640348bfae9911a.js} +1 -1
- package/dist/client/scripts/6198cadc6ef977ea0b7f.js +1 -1
- package/dist/client/scripts/6231f7cde1c1a252e3ff.js +1 -1
- package/dist/client/scripts/{c6fcd69688050e54270d.js → 63325e5621b93d481e33.js} +1 -1
- package/dist/client/scripts/6426b3dc3b49d5317801.js +1 -0
- package/dist/client/scripts/6482c0db9dfb95939fd0.js +1 -1
- package/dist/client/scripts/{b1786948f0135f272a09.js → 656320e03d581a8ea0e1.js} +1 -1
- package/dist/client/scripts/65f43123fc14b35b64d1.js +2 -0
- package/dist/client/scripts/662de3a6d0e84564965f.js +1 -1
- package/dist/client/scripts/66d53fffb25ec07a1aa7.js +1 -1
- package/dist/client/scripts/66d5a4a2cf08cdaa86bb.js +1 -1
- package/dist/client/scripts/69230c65912cdd38a584.js +1 -1
- package/dist/client/scripts/{1077b219313276c21765.js → 6946e6aba0f938c33d41.js} +1 -1
- package/dist/client/scripts/697dab8ed79ec60a309b.js +1 -1
- package/dist/client/scripts/{eda3d84b5c7ef1cf832f.js → 69bcf40c72866c57569c.js} +1 -1
- package/dist/client/scripts/{205795ceed348c421487.js → 6b8c01aec2b272c579b2.js} +1 -1
- package/dist/client/scripts/{c183f805ae8a659449f3.js → 6c01c3fecf56394f299c.js} +1 -1
- package/dist/client/scripts/6dcc7e68252e013045d4.js +1 -1
- package/dist/client/scripts/{529a6860261e6074f3d1.js → 6e12a7ec94aa04c9e19a.js} +1 -1
- package/dist/client/scripts/{f446782fd7a7a2f8aaef.js → 6ec32a52d983bd17d964.js} +1 -1
- package/dist/client/scripts/{60cb2189fbc7f98e341c.js → 6eef2c349f99513c7605.js} +1 -1
- package/dist/client/scripts/{b43eabedc3d8cb405b13.js → 6f304354b9d063f6a388.js} +1 -1
- package/dist/client/scripts/6f579b91d024f526a37f.js +1 -1
- package/dist/client/scripts/701b3f29f72a42f4ba5b.js +1 -1
- package/dist/client/scripts/{e72a9fa25e0cb614b047.js → 7021a1aa103adb4c0afb.js} +1 -1
- package/dist/client/scripts/{69c0b19f9b3d9637c86d.js → 70613f88c015cb23628f.js} +1 -1
- package/dist/client/scripts/70b382267b5513186329.js +2 -0
- package/dist/client/scripts/71ef2d367311e6e5bc86.js +1 -1
- package/dist/client/scripts/73b00f60638d900381f9.js +2 -0
- package/dist/client/scripts/73b00f60638d900381f9.js.LICENSE.txt +5 -0
- package/dist/client/scripts/746da613bad15ee3dcff.js +1 -1
- package/dist/client/scripts/74ecbb4b7b820d191d79.js +1 -1
- package/dist/client/scripts/{52ead081f08a937878ce.js → 764708e59c9e117d7d05.js} +1 -1
- package/dist/client/scripts/{3e5daaae9842486f22de.js → 773d825d249ad0676725.js} +1 -1
- package/dist/client/scripts/{dfb0649a31917de093b0.js → 785f5aedccd25328545f.js} +1 -1
- package/dist/client/scripts/7bd6628181af41e6fc20.js +1 -1
- package/dist/client/scripts/{c44d2718bc46a06944c9.js → 7c47a608596fd7e340ac.js} +1 -1
- package/dist/client/scripts/{ac814e350b080b08f5fe.js → 7d74987d7c93713490df.js} +1 -1
- package/dist/client/scripts/7dc60eea744dfc329db1.js +1 -0
- package/dist/client/scripts/7e85f5e695d079dca886.js +2 -0
- package/dist/client/scripts/7e85f5e695d079dca886.js.LICENSE.txt +1 -0
- package/dist/client/scripts/7f80929b1cc1047be1c9.js +1 -1
- package/dist/client/scripts/{22e270f311f56a5407cb.js → 7f95fbcd683062c20173.js} +1 -1
- package/dist/client/scripts/80482a16fe24140d2a21.js +1 -1
- package/dist/client/scripts/804a497cb44fe949310e.js +1 -1
- package/dist/client/scripts/815b2ba5fab54eebb5ca.js +1 -1
- package/dist/client/scripts/84e8cb222b65ef8c7fd7.js +1 -1
- package/dist/client/scripts/8537711ac020c8f29676.js +1 -1
- package/dist/client/scripts/{2e92c9f1881a5f4f24d8.js → 858d0a582e7ad0c11188.js} +1 -1
- package/dist/client/scripts/86714d804290b9ba22f6.js +1 -1
- package/dist/client/scripts/867ee96ab822b2070c40.js +1 -1
- package/dist/client/scripts/87437d71b7ed0a627316.js +1 -1
- package/dist/client/scripts/8773147ebc61bee2e1a6.js +1 -1
- package/dist/client/scripts/88b02946d875717c7892.js +1 -1
- package/dist/client/scripts/8a563c21fcd39c3edc64.js +1 -1
- package/dist/client/scripts/{6b3a9814dfe9345f60db.js → 8f0d8b6f4cf5ea5d32e3.js} +1 -1
- package/dist/client/scripts/9017b70932ac98380220.js +1 -1
- package/dist/client/scripts/914125d34a0c8421839d.js +1 -1
- package/dist/client/scripts/91501cfefb3e9beeffa4.js +1 -1
- package/dist/client/scripts/91d074c85ca207348249.js +1 -1
- package/dist/client/scripts/91f5a130ef63276c95f1.js +1 -1
- package/dist/client/scripts/92e2f55c77c0b9473c56.js +1 -1
- package/dist/client/scripts/92f88dfc1b040e6657db.js +1 -1
- package/dist/client/scripts/9324abfa574340eb6ede.js +1 -1
- package/dist/client/scripts/933d633cb47a3304650c.js +1 -1
- package/dist/client/scripts/{e0f5acc47ed5ca962695.js → 934ef1913852643b8075.js} +1 -1
- package/dist/client/scripts/93891a876d2976d9805f.js +1 -1
- package/dist/client/scripts/9486014a6b617075b94c.js +1 -1
- package/dist/client/scripts/95239a6c2ab36a9f67e8.js +1 -1
- package/dist/client/scripts/955225d756ed3c4e0856.js +1 -0
- package/dist/client/scripts/{61e2b5d6d91ac1f79caa.js → 969be097de0ece70a219.js} +1 -1
- package/dist/client/scripts/{c92d18059ca7a5fa187e.js → 9795b08c4ac3d39aa734.js} +1 -1
- package/dist/client/scripts/980215f15338a4638935.js +1 -1
- package/dist/client/scripts/9865e2574c6d07158054.js +1 -1
- package/dist/client/scripts/{8bff3de4212bafab4077.js → 9a240e0b21d636d1a38b.js} +1 -1
- package/dist/client/scripts/{eab0059cfa57db0af11c.js → 9be66e00b94134bf8ba1.js} +1 -1
- package/dist/client/scripts/9c4c4822a484f5a5ad19.js +1 -1
- package/dist/client/scripts/9c9ffd5549b3beb747e8.js +1 -0
- package/dist/client/scripts/{382fbb35d40be45010f0.js → 9e4f9b5ccf6374929ffd.js} +1 -1
- package/dist/client/scripts/{5c2b82e012d3f482ead3.js → 9f3a445b7e4a1376917a.js} +1 -1
- package/dist/client/scripts/a1e09e772d99a582aca6.js +1 -1
- package/dist/client/scripts/a256e0ec3a4d4952396d.js +1 -0
- package/dist/client/scripts/a299cbe3889cd21cace8.js +1 -1
- package/dist/client/scripts/a2fe354aca6970fedba6.js +1 -1
- package/dist/client/scripts/a3125245058e27361bb2.js +1 -1
- package/dist/client/scripts/{138cfedbc9aa0fb82acc.js → a35c162c99ace4b92eff.js} +1 -1
- package/dist/client/scripts/a3f9d1ecae4ff253fe3e.js +1 -0
- package/dist/client/scripts/a451e339bbbf4c755dd2.js +1 -1
- package/dist/client/scripts/{55b1f27dcbab64e7f0b4.js → a4919aaeec2b21a6fbc1.js} +1 -1
- package/dist/client/scripts/a49c74188fc5251d8b65.js +1 -1
- package/dist/client/scripts/a4dcfa11d11e734e715b.js +2 -0
- package/dist/client/scripts/{6544d845ce286c6cf7f6.js.LICENSE.txt → a4dcfa11d11e734e715b.js.LICENSE.txt} +1 -1
- package/dist/client/scripts/{2f0aa96a3867425b917c.js → a54ed3a84366af42e9e7.js} +1 -1
- package/dist/client/scripts/a57475df7173017e6067.js +1 -0
- package/dist/client/scripts/{de48ab96f2314589c8f5.js → a5fc4d479e8511e4eb2b.js} +1 -1
- package/dist/client/scripts/a67dfcc6f9de1ceaf9d9.js +1 -1
- package/dist/client/scripts/a6d598ec76e67174f994.js +1 -1
- package/dist/client/scripts/a74cc1abc33d10c98576.js +1 -1
- package/dist/client/scripts/a7dbd4ea0593cac5da1e.js +1 -1
- package/dist/client/scripts/a7f81a333cfee151ffc8.js +1 -1
- package/dist/client/scripts/a8c732ef4e6bb196c696.js +1 -1
- package/dist/client/scripts/{23c68f0836ee164afc97.js → a95791db9a4415066336.js} +1 -1
- package/dist/client/scripts/a964116d7226e0252a4e.js +1 -0
- package/dist/client/scripts/a98815c8466bb8a199d5.js +1 -1
- package/dist/client/scripts/a9887918f6748e99e5e6.js +1 -1
- package/dist/client/scripts/a98a1c78a6e495be1fe3.js +1 -1
- package/dist/client/scripts/a98ae546a5412a626205.js +1 -1
- package/dist/client/scripts/aa420ba8f8c0b546ec1b.js +1 -1
- package/dist/client/scripts/ab31c58b4b87e68b35fb.js +1 -1
- package/dist/client/scripts/abe7bec6335799afee09.js +1 -1
- package/dist/client/scripts/ac9413fc9a5f74284fd0.js +1 -1
- package/dist/client/scripts/ace1879f1508cfa2945b.js +1 -0
- package/dist/client/scripts/ada91090ef1c52557dc9.js +1 -1
- package/dist/client/scripts/ae547edbc8099702ba5a.js +1 -1
- package/dist/client/scripts/ae596ff1996c280c202c.js +1 -1
- package/dist/client/scripts/aed82b4abb9926126fdd.js +1 -1
- package/dist/client/scripts/{23b4b0e265088d24449e.js → af9276e8bebe0ab20336.js} +1 -1
- package/dist/client/scripts/affc2dc765c1741a7319.js +1 -1
- package/dist/client/scripts/b1590b789b54502c0272.js +1 -1
- package/dist/client/scripts/b28351429658bbe84c2b.js +1 -1
- package/dist/client/scripts/{580a33d2a6fd7fafab2e.js → b28545c066f1d7392f38.js} +1 -1
- package/dist/client/scripts/{4adaa88e55937e122c02.js → b6fd2ab6730d6bb9bcdf.js} +1 -1
- package/dist/client/scripts/b83b6b4191840a25baa5.js +1 -1
- package/dist/client/scripts/{b12061cee6bd7ef0da0b.js → b951d27fb7938085152b.js} +1 -1
- package/dist/client/scripts/{3abc2630f32e1ddf96d3.js → baf3f29cb863c2f70914.js} +1 -1
- package/dist/client/scripts/bb787f3765349db90879.js +1 -0
- package/dist/client/scripts/{33243d5f6375a35a5b08.js → bce7cfcab89665d7843d.js} +1 -1
- package/dist/client/scripts/{2862716c5f1748b88abf.js → bcffe26cebcae8869796.js} +1 -1
- package/dist/client/scripts/becfc64a7cf18580f64b.js +1 -1
- package/dist/client/scripts/bf0781d3e1fda7aaf432.js +1 -1
- package/dist/client/scripts/c07d2bb6aab9b5629d10.js +1 -1
- package/dist/client/scripts/{f2a2f7927eed677de0fb.js → c10411cb2fb0d1e96b39.js} +1 -1
- package/dist/client/scripts/c26ce260299263eeb8bb.js +1 -1
- package/dist/client/scripts/c3622d52d3929b8ce67a.js +1 -1
- package/dist/client/scripts/{e8055817c34ca7f2e0d1.js → c3768b5966b8ae4dfaec.js} +1 -1
- package/dist/client/scripts/{31bdae30a445f8caf38d.js → c385596749afa7bb3263.js} +1 -1
- package/dist/client/scripts/c481d06a2d00d82eaaad.js +1 -0
- package/dist/client/scripts/{17f050e8fbf954ca4400.js → c4988b34044304274bd5.js} +1 -1
- package/dist/client/scripts/c5f1674416359d3591b6.js +1 -1
- package/dist/client/scripts/c851b9c277a957cfd5d1.js +1 -0
- package/dist/client/scripts/ca79fa2a1ed7e82e450a.js +1 -1
- package/dist/client/scripts/{eb9ab6dd707734630876.js → cb6f19fdf5a3339ce13a.js} +1 -1
- package/dist/client/scripts/{18fdae02c01f35f20b11.js → cbc09cc950a1dd22d943.js} +1 -1
- package/dist/client/scripts/ccbc92304043924d021b.js +1 -1
- package/dist/client/scripts/{e6d875a37c62f3d3e561.js → cdb04a3db8b41eabef26.js} +1 -1
- package/dist/client/scripts/{9a83b42dbc369d0277e6.js → ce0c092a8914dd6ea4bc.js} +1 -1
- package/dist/client/scripts/ce762c959cf9b699acf8.js +1 -1
- package/dist/client/scripts/d014754e0eff762e6ca9.js +1 -1
- package/dist/client/scripts/d014f1abc1fcc90b5657.js +1 -1
- package/dist/client/scripts/d2b70350d3fa2cef0e39.js +1 -1
- package/dist/client/scripts/d307d2e9cf655c179d77.js +1 -1
- package/dist/client/scripts/{8ce2d092e29a43286f3c.js → d3290ba9c36afffcdaf5.js} +1 -1
- package/dist/client/scripts/d39f4c3cff0aeebb9f76.js +1 -1
- package/dist/client/scripts/d3aa563c4024f80b82d0.js +1 -1
- package/dist/client/scripts/d63d97bbaaf166541301.js +1 -0
- package/dist/client/scripts/d7a62916cee4d6e2b444.js +1 -1
- package/dist/client/scripts/{886d531d72735c6d34f0.js → d84d483d866959c361e3.js} +1 -1
- package/dist/client/scripts/d8502c8331a1e69286ed.js +1 -1
- package/dist/client/scripts/{a6130794c1d33d80488a.js → d90312afbc1bfd9f5a0d.js} +1 -1
- package/dist/client/scripts/db30cb86f2d695ff6d1c.js +1 -1
- package/dist/client/scripts/dc16b2fd8f77226e3fd5.js +1 -1
- package/dist/client/scripts/dca2c65879ee8c6fe5e7.js +1 -1
- package/dist/client/scripts/ddc4d2ea575a50bc4ae3.js +1 -1
- package/dist/client/scripts/de137222b71f4b8d7f47.js +1 -1
- package/dist/client/scripts/df56e8276b6973df6c3c.js +1 -1
- package/dist/client/scripts/dfab0d5501435b36f6fb.js +1 -1
- package/dist/client/scripts/e02282a148d07c58be1b.js +1 -0
- package/dist/client/scripts/e0ae6eb532e9deca95b9.js +1 -1
- package/dist/client/scripts/e0c5487ea1f49ba55654.js +1 -1
- package/dist/client/scripts/{43f8d26f8aecf79a4b3a.js → e1041a8f8fee37da9f64.js} +1 -1
- package/dist/client/scripts/{55718fd925b0c6f0c0fd.js → e19441594c72c7e33187.js} +1 -1
- package/dist/client/scripts/e2b91f9e13b86ff8389c.js +1 -1
- package/dist/client/scripts/e32ea532d3a6b8476e8e.js +1 -1
- package/dist/client/scripts/{38318d710c41e17d02b6.js → e40e16f802cba2b38cd0.js} +1 -1
- package/dist/client/scripts/{2cd9d0c7890646526851.js → e50f735e24a5511e4fe7.js} +1 -1
- package/dist/client/scripts/e53c02752abb05f93abd.js +2 -0
- package/dist/client/scripts/e555e6f7c093044467bd.js +1 -1
- package/dist/client/scripts/e600798c21b1e4b3421a.js +1 -1
- package/dist/client/scripts/e60fe8e9115fe7dd13cf.js +1 -1
- package/dist/client/scripts/e6e11ced2410e20b8d71.js +1 -1
- package/dist/client/scripts/e7b33c7b9c52aa2c42fb.js +1 -1
- package/dist/client/scripts/{e84e2c99fac618724a6b.js → e835ff260d3fbc62fe97.js} +1 -1
- package/dist/client/scripts/e86000417aa87698de4d.js +1 -1
- package/dist/client/scripts/e8e60da8c8779e8707b7.js +1 -0
- package/dist/client/scripts/e949a288ca740fd5e306.js +1 -1
- package/dist/client/scripts/e97cb8c56d2e5ca10a9b.js +1 -1
- package/dist/client/scripts/{c0448d3c462e3deb1993.js → ebd5c31d99bfb280a1c4.js} +1 -1
- package/dist/client/scripts/ebe3c46ecbab47f14ec8.js +1 -0
- package/dist/client/scripts/ed99cbfe5e38529fe2fb.js +1 -0
- package/dist/client/scripts/eeab9a15254a348ad026.js +1 -0
- package/dist/client/scripts/eeaf7a5064376c23e2fd.js +1 -1
- package/dist/client/scripts/{04dfed6889eaadd2afd5.js → f059d5c14973f89cc511.js} +1 -1
- package/dist/client/scripts/f1fc1db1d8256f3c8b0f.js +1 -1
- package/dist/client/scripts/f277be41b5d66b178431.js +1 -1
- package/dist/client/scripts/f2cfbc8d04d591718bf9.js +1 -1
- package/dist/client/scripts/f2ef165911bb1b115aad.js +1 -1
- package/dist/client/scripts/f463c441cd83d40c3f8f.js +1 -1
- package/dist/client/scripts/f4dd172b8568997dcdf4.js +2 -0
- package/dist/client/scripts/f75efc7d112f59f0bf9c.js +1 -1
- package/dist/client/scripts/{4bd0e0de8052cba02172.js → f812bdfd78927c2b61fe.js} +1 -1
- package/dist/client/scripts/{6a18930893f1bec771d8.js → f8e071a1b88fcd7db10a.js} +1 -1
- package/dist/client/scripts/f94be4a838d4a8146c32.js +1 -1
- package/dist/client/scripts/{ab4c23c9be69cc8dc10a.js → fbd887d0bca0878a38f9.js} +1 -1
- package/dist/client/scripts/{2a512ada29fd6340b561.js → fbf1755027488e5b0cfb.js} +1 -1
- package/dist/client/scripts/fc63ac8b05db08b3486b.js +1 -0
- package/dist/client/scripts/fddbb5023e794ab0f98a.js +1 -1
- package/dist/client/scripts/{af5952182a294bc0aa31.js → fec2ba020c24c384b60b.js} +1 -1
- package/dist/client/scripts/fed71972ffa79d797286.js +1 -1
- package/dist/client/scripts/ff80131a5bed70291e0b.js +1 -1
- package/dist/components/{LoadingSpinner-BKvB97F9.mjs → LoadingSpinner-OUYR1Zws.mjs} +4283 -4156
- package/dist/components/LoadingSpinner-W8dEafHA.js +38 -0
- package/dist/components/vs-component-library-maps.js +3 -3
- package/dist/components/vs-component-library-maps.mjs +694 -694
- package/dist/components/vs-component-library.js +2 -2
- package/dist/components/vs-component-library.mjs +7 -7
- package/dist/ssr/index.js +1 -1
- package/dist/ssr/manifest.json +1 -1
- package/package.json +3 -3
- package/dist/client/scripts/02267cd15e5d3c38ec2a.js +0 -1
- package/dist/client/scripts/05ed6c26804615289452.js +0 -1
- package/dist/client/scripts/089accd171820ed54ff9.js +0 -1
- package/dist/client/scripts/0b761938ad36cd67b6bf.js +0 -1
- package/dist/client/scripts/10559d03b0ae2c434d59.js +0 -1
- package/dist/client/scripts/29a09e10b4c826dc6bcd.js +0 -1
- package/dist/client/scripts/3e2a4885ce28b249cd63.js +0 -1
- package/dist/client/scripts/4686de7ea799c8ec1c03.js +0 -1
- package/dist/client/scripts/46b91e4ff55299b16e9b.js +0 -1
- package/dist/client/scripts/52884b53dca6e2248312.js +0 -1
- package/dist/client/scripts/568f78f9b01fc9462683.js +0 -1
- package/dist/client/scripts/5801faf406d084e1f422.js +0 -1
- package/dist/client/scripts/5f831ae065d194ef8b88.js +0 -2
- package/dist/client/scripts/6021921cffa267d6b6a7.js +0 -1
- package/dist/client/scripts/6544d845ce286c6cf7f6.js +0 -2
- package/dist/client/scripts/6b275c100f8042199de9.js +0 -1
- package/dist/client/scripts/715a2208f0956b83dafc.js +0 -1
- package/dist/client/scripts/72e8cf2a7ddceadf4584.js +0 -2
- package/dist/client/scripts/72e8cf2a7ddceadf4584.js.LICENSE.txt +0 -1
- package/dist/client/scripts/8bbb03cef27adbf1052c.js +0 -1
- package/dist/client/scripts/91ec808848d9ef8fde7a.js +0 -1
- package/dist/client/scripts/98b05b5cd0aaffd7572a.js +0 -1
- package/dist/client/scripts/a1d3f1a72e58f869f748.js +0 -1
- package/dist/client/scripts/a55fed95b2f031316caf.js +0 -1
- package/dist/client/scripts/afd5b0c1ea115a131076.js +0 -1
- package/dist/client/scripts/b16d36c13df4f81799dc.js +0 -2
- package/dist/client/scripts/c4c6c4f82f8a5ceb9401.js +0 -1
- package/dist/client/scripts/d92b71a6a05b8f554c7e.js +0 -1
- package/dist/client/scripts/e92b419e81affdea6d7d.js +0 -1
- package/dist/client/scripts/ee1d435693f0ce65b853.js +0 -1
- package/dist/client/scripts/f166c3fa28bce031e937.js +0 -1
- package/dist/client/scripts/f2dfcfa0d38d341fc827.js +0 -2
- package/dist/client/scripts/fdd619f75d63a8628e4e.js +0 -2
- package/dist/client/scripts/fe9b0e3ab93fda599cfb.js +0 -1
- package/dist/client/scripts/feeecf83bdc1c651376a.js +0 -1
- package/dist/components/LoadingSpinner-C8LAYV8q.js +0 -38
- package/dist/client/scripts/{04d55c65d84727be241d.js → 27ab39799c27a6e7c170.js} +0 -0
- package/dist/client/scripts/{678be80c89eff10efccf.js.LICENSE.txt → 370e6150fbd0dccf34c7.js.LICENSE.txt} +0 -0
- package/dist/client/scripts/{fdd619f75d63a8628e4e.js.LICENSE.txt → 65f43123fc14b35b64d1.js.LICENSE.txt} +0 -0
- package/dist/client/scripts/{f2dfcfa0d38d341fc827.js.LICENSE.txt → 70b382267b5513186329.js.LICENSE.txt} +0 -0
- package/dist/client/scripts/{fd3f812603b78fe9978b.js → 81267fad3ff38d811ea7.js} +0 -0
- package/dist/client/scripts/{5c7de0c787b6e213d9a7.js → d94ba5393987a3e2d90a.js} +0 -0
- package/dist/client/scripts/{5f831ae065d194ef8b88.js.LICENSE.txt → e53c02752abb05f93abd.js.LICENSE.txt} +0 -0
- package/dist/client/scripts/{6b563760413cecbb2ea9.js → e6abca5f001c11b9b614.js} +0 -0
- package/dist/client/scripts/{b16d36c13df4f81799dc.js.LICENSE.txt → f4dd172b8568997dcdf4.js.LICENSE.txt} +0 -0
- package/dist/client/styles/{5389ee753606f9248ce8.css → 09ae016b64791f86ce4a.css} +0 -0
- package/dist/client/styles/{72709ccc1d539e0e7922.css → 12fa4d6469761cdb8326.css} +0 -0
- package/dist/client/styles/{f166c3fa28bce031e937.css → 350b5411ffc3a7b4a42a.css} +0 -0
- package/dist/client/styles/{0b761938ad36cd67b6bf.css → 416c4f28b6594389fb58.css} +0 -0
- package/dist/client/styles/{e92b419e81affdea6d7d.css → 41f72194eda6300eda07.css} +0 -0
- package/dist/client/styles/{10559d03b0ae2c434d59.css → 427f4a836835f87aa5a6.css} +0 -0
- package/dist/client/styles/{ee1d435693f0ce65b853.css → 509216b4e74f11f64f80.css} +0 -0
- package/dist/client/styles/{6021921cffa267d6b6a7.css → 53251829ca5de2bf36fe.css} +0 -0
- package/dist/client/styles/{3e2a4885ce28b249cd63.css → 5828c72a7124a5bcb563.css} +0 -0
- package/dist/client/styles/{feeecf83bdc1c651376a.css → 5a4a97205da676950fcf.css} +0 -0
- package/dist/client/styles/{46b91e4ff55299b16e9b.css → 6426b3dc3b49d5317801.css} +0 -0
- package/dist/client/styles/{5801faf406d084e1f422.css → 7dc60eea744dfc329db1.css} +0 -0
- package/dist/client/styles/{089accd171820ed54ff9.css → 955225d756ed3c4e0856.css} +0 -0
- package/dist/client/styles/{6b275c100f8042199de9.css → 9c9ffd5549b3beb747e8.css} +0 -0
- package/dist/client/styles/{c4c6c4f82f8a5ceb9401.css → a256e0ec3a4d4952396d.css} +0 -0
- package/dist/client/styles/{29a09e10b4c826dc6bcd.css → a964116d7226e0252a4e.css} +0 -0
- package/dist/client/styles/{afd5b0c1ea115a131076.css → ace1879f1508cfa2945b.css} +0 -0
- package/dist/client/styles/{8bbb03cef27adbf1052c.css → c481d06a2d00d82eaaad.css} +0 -0
- package/dist/client/styles/{715a2208f0956b83dafc.css → d63d97bbaaf166541301.css} +0 -0
- package/dist/client/styles/{a55fed95b2f031316caf.css → e02282a148d07c58be1b.css} +0 -0
- package/dist/client/styles/{6b563760413cecbb2ea9.css → e6abca5f001c11b9b614.css} +0 -0
- package/dist/client/styles/{fe9b0e3ab93fda599cfb.css → ebe3c46ecbab47f14ec8.css} +0 -0
- package/dist/client/styles/{d92b71a6a05b8f554c7e.css → ed99cbfe5e38529fe2fb.css} +0 -0
- package/dist/client/styles/{568f78f9b01fc9462683.css → eeab9a15254a348ad026.css} +0 -0
- package/dist/ssr/styles/{864095754937ffa99171.css → 28e3bc50aab5464f72f4.css} +28 -28
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { x as ia, H as $v, G as Gx, ag as
|
|
2
|
-
import { ref as gl, resolveComponent as qt,
|
|
1
|
+
import { x as ia, H as $v, G as Gx, ag as Zf, ah as Zv, y as Wx, ai as kt, aj as cu, ak as pu, al as Gf, B as or, am as is, an as Tr, ao as lp, z as ns, ap as hu, aq as Gv, ar as Oa, as as Hx, D as fu, A as du, at as Xx, au as Wf, av as Hf, aw as Wv, ax as Hv, F as Al, ay as Kx, az as cp, aA as Jx, C as Yx, aB as Qx, aC as Xv, aD as Xf, aE as e0, _ as Pn, c as Kf, Q as t0, u as Kv, v as r0, aF as i0, t as n0, m as Jv, a as Yv, V as pp, af as a0, h as o0, g as s0, f as u0, o as ph } from "./LoadingSpinner-OUYR1Zws.mjs";
|
|
2
|
+
import { ref as gl, resolveComponent as qt, openBlock as ut, createElementBlock as Bt, normalizeClass as rn, createVNode as Ht, createElementVNode as $r, createTextVNode as nn, toDisplayString as ni, createBlock as ji, withKeys as Tl, createCommentVNode as kr, renderSlot as Sr, withCtx as Nt, h as l0, render as c0, Fragment as tn, renderList as Jc } from "vue";
|
|
3
3
|
import { defineStore as p0, mapState as as } from "pinia";
|
|
4
4
|
let rs = null;
|
|
5
5
|
typeof window < "u" && (rs = document.currentScript);
|
|
@@ -242,7 +242,7 @@ var Qv = { exports: {} };
|
|
|
242
242
|
function Lt() {
|
|
243
243
|
return ft++;
|
|
244
244
|
}
|
|
245
|
-
function
|
|
245
|
+
function Gt() {
|
|
246
246
|
return function e(t) {
|
|
247
247
|
return t ? (t ^ 16 * Math.random() >> t / 4).toString(16) : ([1e7] + -[1e3] + -4e3 + -8e3 + -1e11).replace(/[018]/g, e);
|
|
248
248
|
}();
|
|
@@ -498,7 +498,7 @@ var Qv = { exports: {} };
|
|
|
498
498
|
var o = this;
|
|
499
499
|
if (!this.pendingRequest && this.queue.length !== 0) {
|
|
500
500
|
var l = this.queue.shift(), c = l.id, h = l.timestamp;
|
|
501
|
-
c && this.success[c] || (this.anonId || this.fetchEventData(), er(this.anonId) || (this.anonId =
|
|
501
|
+
c && this.success[c] || (this.anonId || this.fetchEventData(), er(this.anonId) || (this.anonId = Gt()), this.postEvent(h, { skuToken: this.skuToken }, function(v) {
|
|
502
502
|
v || c && (o.success[c] = !0);
|
|
503
503
|
}, r));
|
|
504
504
|
}
|
|
@@ -516,7 +516,7 @@ var Qv = { exports: {} };
|
|
|
516
516
|
if (!this.pendingRequest && this.queue.length !== 0) {
|
|
517
517
|
this.anonId && this.eventData.lastSuccess && this.eventData.tokenU || this.fetchEventData();
|
|
518
518
|
var l = $a(Ft.ACCESS_TOKEN), c = l ? l.u : Ft.ACCESS_TOKEN, h = c !== this.eventData.tokenU;
|
|
519
|
-
er(this.anonId) || (this.anonId =
|
|
519
|
+
er(this.anonId) || (this.anonId = Gt(), h = !0);
|
|
520
520
|
var v = this.queue.shift();
|
|
521
521
|
if (this.eventData.lastSuccess) {
|
|
522
522
|
var _ = new Date(this.eventData.lastSuccess), x = new Date(v), S = (v - this.eventData.lastSuccess) / 864e5;
|
|
@@ -560,19 +560,19 @@ var Qv = { exports: {} };
|
|
|
560
560
|
o.type === "json" && v.headers.set("Accept", "application/json");
|
|
561
561
|
var T = function(k, U, V) {
|
|
562
562
|
if (!x) {
|
|
563
|
-
if (k && k.message !== "SecurityError" && Rt(k), U && V) return
|
|
563
|
+
if (k && k.message !== "SecurityError" && Rt(k), U && V) return P(U);
|
|
564
564
|
var K = Date.now();
|
|
565
565
|
oe.fetch(v).then(function(W) {
|
|
566
566
|
if (W.ok) {
|
|
567
567
|
var ee = S ? W.clone() : null;
|
|
568
|
-
return
|
|
568
|
+
return P(W, ee, K);
|
|
569
569
|
}
|
|
570
570
|
return l(new fs(W.statusText, W.status, o.url));
|
|
571
571
|
}).catch(function(W) {
|
|
572
572
|
W.code !== 20 && l(new Error(W.message));
|
|
573
573
|
});
|
|
574
574
|
}
|
|
575
|
-
},
|
|
575
|
+
}, P = function(k, U, V) {
|
|
576
576
|
(o.type === "arrayBuffer" ? k.arrayBuffer() : o.type === "json" ? k.json() : k.text()).then(function(K) {
|
|
577
577
|
x || (U && V && function(W, ee, ie) {
|
|
578
578
|
if (Ga(), zi) {
|
|
@@ -647,7 +647,7 @@ var Qv = { exports: {} };
|
|
|
647
647
|
return Wa(Qe(e, { method: "POST" }), t);
|
|
648
648
|
}, I = "data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAEAAAABCAYAAAAfFcSJAAAAC0lEQVQYV2NgAAIAAAUAAarVyFEAAAAASUVORK5CYII=";
|
|
649
649
|
gn = [], _n = 0;
|
|
650
|
-
var
|
|
650
|
+
var E = function(e, t) {
|
|
651
651
|
if (sn.supported && (e.headers || (e.headers = {}), e.headers.accept = "image/webp,*/*"), _n >= Ft.MAX_PARALLEL_IMAGE_REQUESTS) {
|
|
652
652
|
var r = { requestParameters: e, callback: t, cancelled: !1, cancel: function() {
|
|
653
653
|
this.cancelled = !0;
|
|
@@ -658,17 +658,17 @@ var Qv = { exports: {} };
|
|
|
658
658
|
var o = !1, l = function() {
|
|
659
659
|
if (!o) for (o = !0, _n--; gn.length && _n < Ft.MAX_PARALLEL_IMAGE_REQUESTS; ) {
|
|
660
660
|
var h = gn.shift();
|
|
661
|
-
h.cancelled || (h.cancel =
|
|
661
|
+
h.cancelled || (h.cancel = E(h.requestParameters, h.callback).cancel);
|
|
662
662
|
}
|
|
663
663
|
}, c = So(e, function(h, v, _, x) {
|
|
664
664
|
l(), h ? t(h) : v && (wo() ? function(S, T) {
|
|
665
|
-
var
|
|
666
|
-
oe.createImageBitmap(
|
|
665
|
+
var P = new oe.Blob([new Uint8Array(S)], { type: "image/png" });
|
|
666
|
+
oe.createImageBitmap(P).then(function(k) {
|
|
667
667
|
T(null, k);
|
|
668
668
|
}).catch(function(k) {
|
|
669
669
|
T(new Error("Could not load image because of " + k.message + ". Please make sure to use a supported image type such as PNG or JPEG. Note that SVGs are not supported."));
|
|
670
670
|
});
|
|
671
|
-
}(v, t) : function(S, T,
|
|
671
|
+
}(v, t) : function(S, T, P, k) {
|
|
672
672
|
var U = new oe.Image(), V = oe.URL;
|
|
673
673
|
U.onload = function() {
|
|
674
674
|
T(null, U), V.revokeObjectURL(U.src), U.onload = null, oe.requestAnimationFrame(function() {
|
|
@@ -678,7 +678,7 @@ var Qv = { exports: {} };
|
|
|
678
678
|
return T(new Error("Could not load image. Please make sure to use a supported image type such as PNG or JPEG. Note that SVGs are not supported."));
|
|
679
679
|
};
|
|
680
680
|
var K = new oe.Blob([new Uint8Array(S)], { type: "image/png" });
|
|
681
|
-
U.cacheControl =
|
|
681
|
+
U.cacheControl = P, U.expires = k, U.src = S.byteLength ? V.createObjectURL(K) : I;
|
|
682
682
|
}(v, t, _, x));
|
|
683
683
|
});
|
|
684
684
|
return { cancel: function() {
|
|
@@ -832,8 +832,8 @@ var Qv = { exports: {} };
|
|
|
832
832
|
if (x[0] === "#") return x.length === 4 ? (_ = parseInt(x.substr(1), 16)) >= 0 && _ <= 4095 ? [(3840 & _) >> 4 | (3840 & _) >> 8, 240 & _ | (240 & _) >> 4, 15 & _ | (15 & _) << 4, 1] : null : x.length === 7 && (_ = parseInt(x.substr(1), 16)) >= 0 && _ <= 16777215 ? [(16711680 & _) >> 16, (65280 & _) >> 8, 255 & _, 1] : null;
|
|
833
833
|
var S = x.indexOf("("), T = x.indexOf(")");
|
|
834
834
|
if (S !== -1 && T + 1 === x.length) {
|
|
835
|
-
var
|
|
836
|
-
switch (
|
|
835
|
+
var P = x.substr(0, S), k = x.substr(S + 1, T - (S + 1)).split(","), U = 1;
|
|
836
|
+
switch (P) {
|
|
837
837
|
case "rgba":
|
|
838
838
|
if (k.length !== 4) return null;
|
|
839
839
|
U = c(k.pop());
|
|
@@ -983,10 +983,10 @@ var Qv = { exports: {} };
|
|
|
983
983
|
Br.prototype.toJSON = function() {
|
|
984
984
|
return this.message;
|
|
985
985
|
};
|
|
986
|
-
var Di = { string: Me, number: he, boolean: Ie, object: st },
|
|
986
|
+
var Di = { string: Me, number: he, boolean: Ie, object: st }, Xt = function(e, t) {
|
|
987
987
|
this.type = e, this.args = t;
|
|
988
988
|
};
|
|
989
|
-
|
|
989
|
+
Xt.parse = function(e, t) {
|
|
990
990
|
if (e.length < 2) return t.error("Expected at least one argument.");
|
|
991
991
|
var r, o = 1, l = e[0];
|
|
992
992
|
if (l === "array") {
|
|
@@ -1007,21 +1007,21 @@ var Qv = { exports: {} };
|
|
|
1007
1007
|
if (!x) return null;
|
|
1008
1008
|
_.push(x);
|
|
1009
1009
|
}
|
|
1010
|
-
return new
|
|
1011
|
-
},
|
|
1010
|
+
return new Xt(r, _);
|
|
1011
|
+
}, Xt.prototype.evaluate = function(e) {
|
|
1012
1012
|
for (var t = 0; t < this.args.length; t++) {
|
|
1013
1013
|
var r = this.args[t].evaluate(e);
|
|
1014
1014
|
if (!Pt(this.type, lr(r))) return r;
|
|
1015
1015
|
if (t === this.args.length - 1) throw new Br("Expected value to be of type " + gt(this.type) + ", but found " + gt(lr(r)) + " instead.");
|
|
1016
1016
|
}
|
|
1017
1017
|
return null;
|
|
1018
|
-
},
|
|
1018
|
+
}, Xt.prototype.eachChild = function(e) {
|
|
1019
1019
|
this.args.forEach(e);
|
|
1020
|
-
},
|
|
1020
|
+
}, Xt.prototype.outputDefined = function() {
|
|
1021
1021
|
return this.args.every(function(e) {
|
|
1022
1022
|
return e.outputDefined();
|
|
1023
1023
|
});
|
|
1024
|
-
},
|
|
1024
|
+
}, Xt.prototype.serialize = function() {
|
|
1025
1025
|
var e = this.type, t = [e.kind];
|
|
1026
1026
|
if (e.kind === "array") {
|
|
1027
1027
|
var r = e.itemType;
|
|
@@ -1057,8 +1057,8 @@ var Qv = { exports: {} };
|
|
|
1057
1057
|
} else {
|
|
1058
1058
|
var T = t.parse(e[c], 1, Ce);
|
|
1059
1059
|
if (!T) return null;
|
|
1060
|
-
var
|
|
1061
|
-
if (
|
|
1060
|
+
var P = T.type.kind;
|
|
1061
|
+
if (P !== "string" && P !== "value" && P !== "null" && P !== "resolvedImage") return t.error("Formatted text type must be 'string', 'value', 'image' or 'null'.");
|
|
1062
1062
|
l = !0, o.push({ content: T, scale: null, font: null, textColor: null });
|
|
1063
1063
|
}
|
|
1064
1064
|
}
|
|
@@ -1186,20 +1186,20 @@ var Qv = { exports: {} };
|
|
|
1186
1186
|
var ke = Ze[0];
|
|
1187
1187
|
return !Array.isArray(ke) || ke.length === e.length - 1;
|
|
1188
1188
|
}), _ = null, x = 0, S = v; x < S.length; x += 1) {
|
|
1189
|
-
var T = S[x],
|
|
1189
|
+
var T = S[x], P = T[0], k = T[1];
|
|
1190
1190
|
_ = new Ln(t.registry, t.path, null, t.scope);
|
|
1191
1191
|
for (var U = [], V = !1, K = 1; K < e.length; K++) {
|
|
1192
|
-
var W = e[K], ee = Array.isArray(
|
|
1192
|
+
var W = e[K], ee = Array.isArray(P) ? P[K - 1] : P.type, ie = _.parse(W, 1 + U.length, ee);
|
|
1193
1193
|
if (!ie) {
|
|
1194
1194
|
V = !0;
|
|
1195
1195
|
break;
|
|
1196
1196
|
}
|
|
1197
1197
|
U.push(ie);
|
|
1198
1198
|
}
|
|
1199
|
-
if (!V) if (Array.isArray(
|
|
1199
|
+
if (!V) if (Array.isArray(P) && P.length !== U.length) _.error("Expected " + P.length + " arguments, but found " + U.length + " instead.");
|
|
1200
1200
|
else {
|
|
1201
1201
|
for (var ae = 0; ae < U.length; ae++) {
|
|
1202
|
-
var ue = Array.isArray(
|
|
1202
|
+
var ue = Array.isArray(P) ? P[ae] : P.type, de = U[ae];
|
|
1203
1203
|
_.concat(ae + 1).checkSubtype(ue, de.type);
|
|
1204
1204
|
}
|
|
1205
1205
|
if (_.errors.length === 0) return new Vr(o, c, k, U);
|
|
@@ -1238,9 +1238,9 @@ var Qv = { exports: {} };
|
|
|
1238
1238
|
return t[1] > e[1] != r[1] > e[1] && e[0] < (r[0] - t[0]) * (e[1] - t[1]) / (r[1] - t[1]) + t[0];
|
|
1239
1239
|
}
|
|
1240
1240
|
function Su(e, t) {
|
|
1241
|
-
for (var r, o, l, c, h, v, _, x = !1, S = 0, T = t.length; S < T; S++) for (var
|
|
1242
|
-
if ((c = (r = e)[0] - (o =
|
|
1243
|
-
bp(e,
|
|
1241
|
+
for (var r, o, l, c, h, v, _, x = !1, S = 0, T = t.length; S < T; S++) for (var P = t[S], k = 0, U = P.length; k < U - 1; k++) {
|
|
1242
|
+
if ((c = (r = e)[0] - (o = P[k])[0]) * (_ = r[1] - (l = P[k + 1])[1]) - (v = r[0] - l[0]) * (h = r[1] - o[1]) == 0 && c * v <= 0 && h * _ <= 0) return !1;
|
|
1243
|
+
bp(e, P[k], P[k + 1]) && (x = !x);
|
|
1244
1244
|
}
|
|
1245
1245
|
return x;
|
|
1246
1246
|
}
|
|
@@ -1253,8 +1253,8 @@ var Qv = { exports: {} };
|
|
|
1253
1253
|
return h > 0 && v < 0 || h < 0 && v > 0;
|
|
1254
1254
|
}
|
|
1255
1255
|
function Sp(e, t, r) {
|
|
1256
|
-
for (var o = 0, l = r; o < l.length; o += 1) for (var c = l[o], h = 0; h < c.length - 1; ++h) if ((T = [(S = c[h + 1])[0] - (x = c[h])[0], S[1] - x[1]])[0] * (
|
|
1257
|
-
var v, _, x, S, T,
|
|
1256
|
+
for (var o = 0, l = r; o < l.length; o += 1) for (var c = l[o], h = 0; h < c.length - 1; ++h) if ((T = [(S = c[h + 1])[0] - (x = c[h])[0], S[1] - x[1]])[0] * (P = [(_ = t)[0] - (v = e)[0], _[1] - v[1]])[1] - T[1] * P[0] != 0 && Ml(v, _, x, S) && Ml(x, S, v, _)) return !0;
|
|
1257
|
+
var v, _, x, S, T, P;
|
|
1258
1258
|
return !1;
|
|
1259
1259
|
}
|
|
1260
1260
|
function zl(e, t) {
|
|
@@ -1292,15 +1292,15 @@ var Qv = { exports: {} };
|
|
|
1292
1292
|
}
|
|
1293
1293
|
function Bl(e, t, r, o) {
|
|
1294
1294
|
for (var l = 8192 * Math.pow(2, o.z), c = [8192 * o.x, 8192 * o.y], h = [], v = 0, _ = e; v < _.length; v += 1) for (var x = 0, S = _[v]; x < S.length; x += 1) {
|
|
1295
|
-
var T = S[x],
|
|
1296
|
-
Eo(
|
|
1295
|
+
var T = S[x], P = [T.x + c[0], T.y + c[1]];
|
|
1296
|
+
Eo(P, t, r, l), h.push(P);
|
|
1297
1297
|
}
|
|
1298
1298
|
return h;
|
|
1299
1299
|
}
|
|
1300
1300
|
function ds(e, t, r, o) {
|
|
1301
1301
|
for (var l, c = 8192 * Math.pow(2, o.z), h = [8192 * o.x, 8192 * o.y], v = [], _ = 0, x = e; _ < x.length; _ += 1) {
|
|
1302
|
-
for (var S = [], T = 0,
|
|
1303
|
-
var k =
|
|
1302
|
+
for (var S = [], T = 0, P = x[_]; T < P.length; T += 1) {
|
|
1303
|
+
var k = P[T], U = [k.x + h[0], k.y + h[1]];
|
|
1304
1304
|
Jr(t, U), S.push(U);
|
|
1305
1305
|
}
|
|
1306
1306
|
v.push(S);
|
|
@@ -1381,7 +1381,7 @@ var Qv = { exports: {} };
|
|
|
1381
1381
|
if (r.type === "MultiPolygon") {
|
|
1382
1382
|
var S = Tu(r.coordinates, l, c), T = Bl(t.geometry(), o, l, c);
|
|
1383
1383
|
if (!ca(o, l)) return !1;
|
|
1384
|
-
for (var
|
|
1384
|
+
for (var P = 0, k = T; P < k.length; P += 1) if (!wp(k[P], S)) return !1;
|
|
1385
1385
|
}
|
|
1386
1386
|
return !0;
|
|
1387
1387
|
}(e, this.geometries);
|
|
@@ -1395,7 +1395,7 @@ var Qv = { exports: {} };
|
|
|
1395
1395
|
if (r.type === "MultiPolygon") {
|
|
1396
1396
|
var S = Tu(r.coordinates, l, c), T = ds(t.geometry(), o, l, c);
|
|
1397
1397
|
if (!ca(o, l)) return !1;
|
|
1398
|
-
for (var
|
|
1398
|
+
for (var P = 0, k = T; P < k.length; P += 1) if (!Dl(k[P], S)) return !1;
|
|
1399
1399
|
}
|
|
1400
1400
|
return !0;
|
|
1401
1401
|
}(e, this.geometries);
|
|
@@ -1441,7 +1441,7 @@ var Qv = { exports: {} };
|
|
|
1441
1441
|
return l === void 0 && (l = {}), t ? this.concat(t, r, o)._parse(e, l) : this._parse(e, l);
|
|
1442
1442
|
}, Ln.prototype._parse = function(e, t) {
|
|
1443
1443
|
function r(x, S, T) {
|
|
1444
|
-
return T === "assert" ? new
|
|
1444
|
+
return T === "assert" ? new Xt(S, [x]) : T === "coerce" ? new Bi(S, [x]) : x;
|
|
1445
1445
|
}
|
|
1446
1446
|
if (e !== null && typeof e != "string" && typeof e != "boolean" && typeof e != "number" || (e = ["literal", e]), Array.isArray(e)) {
|
|
1447
1447
|
if (e.length === 0) return this.error('Expected an array with at least one element. If you wanted a literal array, use ["literal", []].');
|
|
@@ -1461,10 +1461,10 @@ var Qv = { exports: {} };
|
|
|
1461
1461
|
if (!(c instanceof Kr) && c.type.kind !== "resolvedImage" && function x(S) {
|
|
1462
1462
|
if (S instanceof Bn) return x(S.boundExpression);
|
|
1463
1463
|
if (S instanceof Vr && S.name === "error" || S instanceof un || S instanceof Li) return !1;
|
|
1464
|
-
var T = S instanceof Bi || S instanceof
|
|
1464
|
+
var T = S instanceof Bi || S instanceof Xt, P = !0;
|
|
1465
1465
|
return S.eachChild(function(k) {
|
|
1466
|
-
|
|
1467
|
-
}), !!
|
|
1466
|
+
P = T ? P && x(k) : P && k instanceof Kr;
|
|
1467
|
+
}), !!P && zn(S) && pa(S, ["zoom", "heatmap-density", "line-progress", "accumulated", "is-supported-script"]);
|
|
1468
1468
|
}(c)) {
|
|
1469
1469
|
var _ = new xn();
|
|
1470
1470
|
try {
|
|
@@ -1618,10 +1618,10 @@ var Qv = { exports: {} };
|
|
|
1618
1618
|
var _ = [], x = null;
|
|
1619
1619
|
r === "interpolate-hcl" || r === "interpolate-lab" ? x = Ee : t.expectedType && t.expectedType.kind !== "value" && (x = t.expectedType);
|
|
1620
1620
|
for (var S = 0; S < c.length; S += 2) {
|
|
1621
|
-
var T = c[S],
|
|
1621
|
+
var T = c[S], P = c[S + 1], k = S + 3, U = S + 4;
|
|
1622
1622
|
if (typeof T != "number") return t.error('Input/output pairs for "interpolate" expressions must be defined using literal numeric values (not computed expressions) for the input values.', k);
|
|
1623
1623
|
if (_.length && _[_.length - 1][0] >= T) return t.error('Input/output pairs for "interpolate" expressions must be arranged with input values in strictly ascending order.', k);
|
|
1624
|
-
var V = t.parse(
|
|
1624
|
+
var V = t.parse(P, U, x);
|
|
1625
1625
|
if (!V) return null;
|
|
1626
1626
|
x = x || V.type, _.push([T, V]);
|
|
1627
1627
|
}
|
|
@@ -1795,15 +1795,15 @@ var Qv = { exports: {} };
|
|
|
1795
1795
|
var x = t.concat(h);
|
|
1796
1796
|
if (v.length === 0) return x.error("Expected at least one branch label.");
|
|
1797
1797
|
for (var S = 0, T = v; S < T.length; S += 1) {
|
|
1798
|
-
var
|
|
1799
|
-
if (typeof
|
|
1800
|
-
if (typeof
|
|
1801
|
-
if (typeof
|
|
1798
|
+
var P = T[S];
|
|
1799
|
+
if (typeof P != "number" && typeof P != "string") return x.error("Branch labels must be numbers or strings.");
|
|
1800
|
+
if (typeof P == "number" && Math.abs(P) > Number.MAX_SAFE_INTEGER) return x.error("Branch labels must be integers no larger than " + Number.MAX_SAFE_INTEGER + ".");
|
|
1801
|
+
if (typeof P == "number" && Math.floor(P) !== P) return x.error("Numeric branch labels must be integer values.");
|
|
1802
1802
|
if (r) {
|
|
1803
|
-
if (x.checkSubtype(r, lr(
|
|
1804
|
-
} else r = lr(
|
|
1805
|
-
if (l[String(
|
|
1806
|
-
l[String(
|
|
1803
|
+
if (x.checkSubtype(r, lr(P))) return null;
|
|
1804
|
+
} else r = lr(P);
|
|
1805
|
+
if (l[String(P)] !== void 0) return x.error("Branch labels must be unique.");
|
|
1806
|
+
l[String(P)] = c.length;
|
|
1807
1807
|
}
|
|
1808
1808
|
var k = t.parse(_, h, o);
|
|
1809
1809
|
if (!k) return null;
|
|
@@ -1830,8 +1830,8 @@ var Qv = { exports: {} };
|
|
|
1830
1830
|
for (var v = function(k) {
|
|
1831
1831
|
return e.inputType.kind === "number" ? Number(k) : k;
|
|
1832
1832
|
}, _ = 0, x = r; _ < x.length; _ += 1) {
|
|
1833
|
-
var S = x[_], T = S[0],
|
|
1834
|
-
t.push(
|
|
1833
|
+
var S = x[_], T = S[0], P = S[1];
|
|
1834
|
+
t.push(P.length === 1 ? v(P[0]) : P.map(v)), t.push(this.outputs[outputIndex$1].serialize());
|
|
1835
1835
|
}
|
|
1836
1836
|
return t.push(this.otherwise.serialize()), t;
|
|
1837
1837
|
};
|
|
@@ -1898,7 +1898,7 @@ var Qv = { exports: {} };
|
|
|
1898
1898
|
if (!x) return null;
|
|
1899
1899
|
if (!Ul(v, x.type)) return h.concat(2).error('"' + v + `" comparisons are not supported for type '` + gt(x.type) + "'.");
|
|
1900
1900
|
if (_.type.kind !== x.type.kind && _.type.kind !== "value" && x.type.kind !== "value") return h.error("Cannot compare types '" + gt(_.type) + "' and '" + gt(x.type) + "'.");
|
|
1901
|
-
o && (_.type.kind === "value" && x.type.kind !== "value" ? _ = new
|
|
1901
|
+
o && (_.type.kind === "value" && x.type.kind !== "value" ? _ = new Xt(x.type, [_]) : _.type.kind !== "value" && x.type.kind === "value" && (x = new Xt(_.type, [x])));
|
|
1902
1902
|
var S = null;
|
|
1903
1903
|
if (c.length === 4) {
|
|
1904
1904
|
if (_.type.kind !== "string" && x.type.kind !== "string" && _.type.kind !== "value" && x.type.kind !== "value") return h.error("Cannot use collator to compare non-string types.");
|
|
@@ -2027,7 +2027,7 @@ var Qv = { exports: {} };
|
|
|
2027
2027
|
e.push(t.serialize());
|
|
2028
2028
|
}), e;
|
|
2029
2029
|
};
|
|
2030
|
-
var va = { "==": Ep, "!=": ys, ">": ql, "<": Nl, ">=": $l, "<=": jl, array:
|
|
2030
|
+
var va = { "==": Ep, "!=": ys, ">": ql, "<": Nl, ">=": $l, "<=": jl, array: Xt, at: ha, boolean: Xt, case: ma, coalesce: Rn, collator: un, format: Hi, image: wi, in: fa, "index-of": On, interpolate: Nr, "interpolate-hcl": Nr, "interpolate-lab": Nr, length: Vn, let: Fn, literal: Kr, match: da, number: Xt, "number-format": ya, object: Xt, slice: Un, step: di, string: Xt, "to-boolean": Bi, "to-color": Bi, "to-number": Bi, "to-string": Bi, var: Bn, within: Li };
|
|
2031
2031
|
function Zl(e, t) {
|
|
2032
2032
|
var r = t[0], o = t[1], l = t[2], c = t[3];
|
|
2033
2033
|
r = r.evaluate(e), o = o.evaluate(e), l = l.evaluate(e);
|
|
@@ -2093,18 +2093,18 @@ var Qv = { exports: {} };
|
|
|
2093
2093
|
if (r >= e.stops[l - 1][0]) return e.stops[l - 1][1];
|
|
2094
2094
|
var c = ms(e.stops.map(function(T) {
|
|
2095
2095
|
return T[0];
|
|
2096
|
-
}), r), h = function(T,
|
|
2096
|
+
}), r), h = function(T, P, k, U) {
|
|
2097
2097
|
var V = U - k, K = T - k;
|
|
2098
|
-
return V === 0 ? 0 :
|
|
2098
|
+
return V === 0 ? 0 : P === 1 ? K / V : (Math.pow(P, K) - 1) / (Math.pow(P, V) - 1);
|
|
2099
2099
|
}(r, o, e.stops[c][0], e.stops[c + 1][0]), v = e.stops[c][1], _ = e.stops[c + 1][1], x = Xa[t.type] || Pp;
|
|
2100
2100
|
if (e.colorSpace && e.colorSpace !== "rgb") {
|
|
2101
2101
|
var S = Ol[e.colorSpace];
|
|
2102
|
-
x = function(T,
|
|
2103
|
-
return S.reverse(S.interpolate(S.forward(T), S.forward(
|
|
2102
|
+
x = function(T, P) {
|
|
2103
|
+
return S.reverse(S.interpolate(S.forward(T), S.forward(P), h));
|
|
2104
2104
|
};
|
|
2105
2105
|
}
|
|
2106
2106
|
return typeof v.evaluate == "function" ? { evaluate: function() {
|
|
2107
|
-
for (var T = [],
|
|
2107
|
+
for (var T = [], P = arguments.length; P--; ) T[P] = arguments[P];
|
|
2108
2108
|
var k = v.evaluate.apply(void 0, T), U = _.evaluate.apply(void 0, T);
|
|
2109
2109
|
if (k !== void 0 && U !== void 0) return x(k, U, h);
|
|
2110
2110
|
} } : x(v, _, h);
|
|
@@ -2342,8 +2342,8 @@ var Qv = { exports: {} };
|
|
|
2342
2342
|
else if (v instanceof Rn) for (var x = 0, S = v.args; x < S.length && !(_ = h(S[x])); x += 1) ;
|
|
2343
2343
|
else (v instanceof di || v instanceof Nr) && v.input instanceof Vr && v.input.name === "zoom" && (_ = v);
|
|
2344
2344
|
return _ instanceof _e || v.eachChild(function(T) {
|
|
2345
|
-
var
|
|
2346
|
-
|
|
2345
|
+
var P = h(T);
|
|
2346
|
+
P instanceof _e ? _ = P : !_ && P ? _ = new _e("", '"zoom" expression may only be used as input to a top-level "step" or "interpolate" expression.') : _ && P && _ !== P && (_ = new _e("", 'Only one zoom-based "step" or "interpolate" subexpression may be used in an expression.'));
|
|
2347
2347
|
}), _;
|
|
2348
2348
|
}(r);
|
|
2349
2349
|
return c || l ? c instanceof _e ? _a([c]) : c instanceof Nr && !ko(t) ? _a([new _e("", '"interpolate" expressions cannot be used with this property')]) : Wl(c ? new Ya(o ? "camera" : "composite", e.value, c.labels, c instanceof Nr ? c.interpolation : void 0) : new zo(o ? "constant" : "source", e.value)) : _a([new _e("", '"zoom" expression may only be used as input to a top-level "step" or "interpolate" expression.')]);
|
|
@@ -2365,8 +2365,8 @@ var Qv = { exports: {} };
|
|
|
2365
2365
|
else if (T === "interval") c = Cp;
|
|
2366
2366
|
else if (T === "categorical") {
|
|
2367
2367
|
c = Xl, h = /* @__PURE__ */ Object.create(null);
|
|
2368
|
-
for (var
|
|
2369
|
-
var U = k[
|
|
2368
|
+
for (var P = 0, k = o.stops; P < k.length; P += 1) {
|
|
2369
|
+
var U = k[P];
|
|
2370
2370
|
h[U[0]] = U[1];
|
|
2371
2371
|
}
|
|
2372
2372
|
v = typeof o.stops[0][0];
|
|
@@ -2409,18 +2409,18 @@ var Qv = { exports: {} };
|
|
|
2409
2409
|
var t = e.key, r = e.value, o = e.valueSpec || {}, l = e.objectElementValidators || {}, c = e.style, h = e.styleSpec, v = [], _ = jt(r);
|
|
2410
2410
|
if (_ !== "object") return [new $(t, r, "object expected, " + _ + " found")];
|
|
2411
2411
|
for (var x in r) {
|
|
2412
|
-
var S = x.split(".")[0], T = o[S] || o["*"],
|
|
2413
|
-
if (l[S])
|
|
2414
|
-
else if (o[S])
|
|
2415
|
-
else if (l["*"])
|
|
2412
|
+
var S = x.split(".")[0], T = o[S] || o["*"], P = void 0;
|
|
2413
|
+
if (l[S]) P = l[S];
|
|
2414
|
+
else if (o[S]) P = vt;
|
|
2415
|
+
else if (l["*"]) P = l["*"];
|
|
2416
2416
|
else {
|
|
2417
2417
|
if (!o["*"]) {
|
|
2418
2418
|
v.push(new $(t, r[x], 'unknown property "' + x + '"'));
|
|
2419
2419
|
continue;
|
|
2420
2420
|
}
|
|
2421
|
-
|
|
2421
|
+
P = vt;
|
|
2422
2422
|
}
|
|
2423
|
-
v = v.concat(
|
|
2423
|
+
v = v.concat(P({ key: (t && t + ".") + x, value: r[x], valueSpec: T, style: c, styleSpec: h, object: r, objectKey: x }, r));
|
|
2424
2424
|
}
|
|
2425
2425
|
for (var k in o) l[k] || o[k].required && o[k].default === void 0 && r[k] === void 0 && v.push(new $(t, r, 'missing required property "' + k + '"'));
|
|
2426
2426
|
return v;
|
|
@@ -2457,11 +2457,11 @@ var Qv = { exports: {} };
|
|
|
2457
2457
|
if (V[0].zoom === void 0) return [new $(K, V, "object stop key must have zoom")];
|
|
2458
2458
|
if (V[0].value === void 0) return [new $(K, V, "object stop key must have value")];
|
|
2459
2459
|
if (o && o > xe(V[0].zoom)) return [new $(K, V[0].zoom, "stop zoom values must appear in ascending order")];
|
|
2460
|
-
xe(V[0].zoom) !== o && (o = xe(V[0].zoom), r = void 0, h = {}), U = U.concat(Xi({ key: K + "[0]", value: V[0], valueSpec: { zoom: {} }, style: k.style, styleSpec: k.styleSpec, objectElementValidators: { zoom: Ql, value:
|
|
2461
|
-
} else U = U.concat(
|
|
2460
|
+
xe(V[0].zoom) !== o && (o = xe(V[0].zoom), r = void 0, h = {}), U = U.concat(Xi({ key: K + "[0]", value: V[0], valueSpec: { zoom: {} }, style: k.style, styleSpec: k.styleSpec, objectElementValidators: { zoom: Ql, value: P } }));
|
|
2461
|
+
} else U = U.concat(P({ key: K + "[0]", value: V[0], style: k.style, styleSpec: k.styleSpec }, V));
|
|
2462
2462
|
return Mo(pe(V[1])) ? U.concat([new $(K + "[1]", V[1], "expressions are not allowed in function stops.")]) : U.concat(vt({ key: K + "[1]", value: V[1], valueSpec: l, style: k.style, styleSpec: k.styleSpec }));
|
|
2463
2463
|
}
|
|
2464
|
-
function
|
|
2464
|
+
function P(k, U) {
|
|
2465
2465
|
var V = jt(k.value), K = xe(k.value), W = k.value !== null ? k.value : U;
|
|
2466
2466
|
if (t) {
|
|
2467
2467
|
if (V !== t) return [new $(k.key, W, V + " stop domain type must match previous stop domain type " + t)];
|
|
@@ -2657,8 +2657,8 @@ var Qv = { exports: {} };
|
|
|
2657
2657
|
xe(U.id) === _ && (h = U);
|
|
2658
2658
|
}), h ? h.ref ? t.push(new $(o, r.ref, "ref cannot reference another ref layer")) : v = xe(h.type) : t.push(new $(o, r.ref, 'ref layer "' + _ + '" not found'));
|
|
2659
2659
|
else if (v !== "background") if (r.source) {
|
|
2660
|
-
var
|
|
2661
|
-
|
|
2660
|
+
var P = l.sources && l.sources[r.source], k = P && xe(P.type);
|
|
2661
|
+
P ? k === "vector" && v === "raster" ? t.push(new $(o, r.source, 'layer "' + r.id + '" requires a raster source')) : k === "raster" && v !== "raster" ? t.push(new $(o, r.source, 'layer "' + r.id + '" requires a vector source')) : k !== "vector" || r["source-layer"] ? k === "raster-dem" && v !== "hillshade" ? t.push(new $(o, r.source, "raster-dem source can only be used with layer type 'hillshade'.")) : v !== "line" || !r.paint || !r.paint["line-gradient"] || k === "geojson" && P.lineMetrics || t.push(new $(o, r, 'layer "' + r.id + '" specifies a line-gradient, which requires a GeoJSON source with `lineMetrics` enabled.')) : t.push(new $(o, r, 'layer "' + r.id + '" must specify a "source-layer"')) : t.push(new $(o, r.source, 'source "' + r.source + '" not found'));
|
|
2662
2662
|
} else t.push(new $(o, r, 'missing required property "source"'));
|
|
2663
2663
|
return t = t.concat(Xi({ key: o, value: r, valueSpec: c.layer, style: e.style, styleSpec: e.styleSpec, objectElementValidators: { "*": function() {
|
|
2664
2664
|
return [];
|
|
@@ -2678,7 +2678,7 @@ var Qv = { exports: {} };
|
|
|
2678
2678
|
var t = e.value, r = e.key, o = jt(t);
|
|
2679
2679
|
return o !== "string" ? [new $(r, t, "string expected, " + o + " found")] : [];
|
|
2680
2680
|
}
|
|
2681
|
-
var
|
|
2681
|
+
var Kt = { promoteId: function(e) {
|
|
2682
2682
|
var t = e.key, r = e.value;
|
|
2683
2683
|
if (jt(r) === "string") return wa({ key: t, value: r });
|
|
2684
2684
|
var o = [];
|
|
@@ -2693,9 +2693,9 @@ var Qv = { exports: {} };
|
|
|
2693
2693
|
case "vector":
|
|
2694
2694
|
case "raster":
|
|
2695
2695
|
case "raster-dem":
|
|
2696
|
-
return Xi({ key: r, value: t, valueSpec: o["source_" + h.replace("-", "_")], style: e.style, styleSpec: o, objectElementValidators:
|
|
2696
|
+
return Xi({ key: r, value: t, valueSpec: o["source_" + h.replace("-", "_")], style: e.style, styleSpec: o, objectElementValidators: Kt });
|
|
2697
2697
|
case "geojson":
|
|
2698
|
-
if (c = Xi({ key: r, value: t, valueSpec: o.source_geojson, style: l, styleSpec: o, objectElementValidators:
|
|
2698
|
+
if (c = Xi({ key: r, value: t, valueSpec: o.source_geojson, style: l, styleSpec: o, objectElementValidators: Kt }), t.cluster) for (var v in t.clusterProperties) {
|
|
2699
2699
|
var _ = t.clusterProperties[v], x = _[0], S = typeof x == "string" ? [x, ["accumulated"], ["get", v]] : x;
|
|
2700
2700
|
c.push.apply(c, ba({ key: r + "." + v + ".map", value: _[1], expressionContext: "cluster-map" })), c.push.apply(c, ba({ key: r + "." + v + ".reduce", value: S, expressionContext: "cluster-reduce" }));
|
|
2701
2701
|
}
|
|
@@ -2802,16 +2802,16 @@ var Qv = { exports: {} };
|
|
|
2802
2802
|
}, _r.prototype._queryCell = function(e, t, r, o, l, c, h, v) {
|
|
2803
2803
|
var _ = this.cells[l];
|
|
2804
2804
|
if (_ !== null) for (var x = this.keys, S = this.bboxes, T = 0; T < _.length; T++) {
|
|
2805
|
-
var
|
|
2806
|
-
if (h[
|
|
2807
|
-
var k = 4 *
|
|
2808
|
-
(v ? v(S[k + 0], S[k + 1], S[k + 2], S[k + 3]) : e <= S[k + 2] && t <= S[k + 3] && r >= S[k + 0] && o >= S[k + 1]) ? (h[
|
|
2805
|
+
var P = _[T];
|
|
2806
|
+
if (h[P] === void 0) {
|
|
2807
|
+
var k = 4 * P;
|
|
2808
|
+
(v ? v(S[k + 0], S[k + 1], S[k + 2], S[k + 3]) : e <= S[k + 2] && t <= S[k + 3] && r >= S[k + 0] && o >= S[k + 1]) ? (h[P] = !0, c.push(x[P])) : h[P] = !1;
|
|
2809
2809
|
}
|
|
2810
2810
|
}
|
|
2811
2811
|
}, _r.prototype._forEachCell = function(e, t, r, o, l, c, h, v) {
|
|
2812
|
-
for (var _ = this._convertToCellCoord(e), x = this._convertToCellCoord(t), S = this._convertToCellCoord(r), T = this._convertToCellCoord(o),
|
|
2813
|
-
var U = this.d * k +
|
|
2814
|
-
if ((!v || v(this._convertFromCellCoord(
|
|
2812
|
+
for (var _ = this._convertToCellCoord(e), x = this._convertToCellCoord(t), S = this._convertToCellCoord(r), T = this._convertToCellCoord(o), P = _; P <= S; P++) for (var k = x; k <= T; k++) {
|
|
2813
|
+
var U = this.d * k + P;
|
|
2814
|
+
if ((!v || v(this._convertFromCellCoord(P), this._convertFromCellCoord(k), this._convertFromCellCoord(P + 1), this._convertFromCellCoord(k + 1))) && l.call(this, e, t, r, o, U, c, h, v)) return;
|
|
2815
2815
|
}
|
|
2816
2816
|
}, _r.prototype._convertFromCellCoord = function(e) {
|
|
2817
2817
|
return (e - this.padding) / this.scale;
|
|
@@ -3438,11 +3438,11 @@ var Qv = { exports: {} };
|
|
|
3438
3438
|
return e && (t.__proto__ = e), (t.prototype = Object.create(e && e.prototype)).constructor = t, t.prototype._refreshViews = function() {
|
|
3439
3439
|
this.uint8 = new Uint8Array(this.arrayBuffer), this.uint16 = new Uint16Array(this.arrayBuffer);
|
|
3440
3440
|
}, t.prototype.emplaceBack = function(r, o, l, c, h, v, _, x, S, T) {
|
|
3441
|
-
var
|
|
3442
|
-
return this.resize(
|
|
3443
|
-
}, t.prototype.emplace = function(r, o, l, c, h, v, _, x, S, T,
|
|
3441
|
+
var P = this.length;
|
|
3442
|
+
return this.resize(P + 1), this.emplace(P, r, o, l, c, h, v, _, x, S, T);
|
|
3443
|
+
}, t.prototype.emplace = function(r, o, l, c, h, v, _, x, S, T, P) {
|
|
3444
3444
|
var k = 10 * r;
|
|
3445
|
-
return this.uint16[k + 0] = o, this.uint16[k + 1] = l, this.uint16[k + 2] = c, this.uint16[k + 3] = h, this.uint16[k + 4] = v, this.uint16[k + 5] = _, this.uint16[k + 6] = x, this.uint16[k + 7] = S, this.uint16[k + 8] = T, this.uint16[k + 9] =
|
|
3445
|
+
return this.uint16[k + 0] = o, this.uint16[k + 1] = l, this.uint16[k + 2] = c, this.uint16[k + 3] = h, this.uint16[k + 4] = v, this.uint16[k + 5] = _, this.uint16[k + 6] = x, this.uint16[k + 7] = S, this.uint16[k + 8] = T, this.uint16[k + 9] = P, r;
|
|
3446
3446
|
}, t;
|
|
3447
3447
|
}(Ct);
|
|
3448
3448
|
pn.prototype.bytesPerElement = 20, Fe("StructArrayLayout10ui20", pn);
|
|
@@ -3452,12 +3452,12 @@ var Qv = { exports: {} };
|
|
|
3452
3452
|
}
|
|
3453
3453
|
return e && (t.__proto__ = e), (t.prototype = Object.create(e && e.prototype)).constructor = t, t.prototype._refreshViews = function() {
|
|
3454
3454
|
this.uint8 = new Uint8Array(this.arrayBuffer), this.int16 = new Int16Array(this.arrayBuffer), this.uint16 = new Uint16Array(this.arrayBuffer);
|
|
3455
|
-
}, t.prototype.emplaceBack = function(r, o, l, c, h, v, _, x, S, T,
|
|
3455
|
+
}, t.prototype.emplaceBack = function(r, o, l, c, h, v, _, x, S, T, P, k) {
|
|
3456
3456
|
var U = this.length;
|
|
3457
|
-
return this.resize(U + 1), this.emplace(U, r, o, l, c, h, v, _, x, S, T,
|
|
3458
|
-
}, t.prototype.emplace = function(r, o, l, c, h, v, _, x, S, T,
|
|
3457
|
+
return this.resize(U + 1), this.emplace(U, r, o, l, c, h, v, _, x, S, T, P, k);
|
|
3458
|
+
}, t.prototype.emplace = function(r, o, l, c, h, v, _, x, S, T, P, k, U) {
|
|
3459
3459
|
var V = 12 * r;
|
|
3460
|
-
return this.int16[V + 0] = o, this.int16[V + 1] = l, this.int16[V + 2] = c, this.int16[V + 3] = h, this.uint16[V + 4] = v, this.uint16[V + 5] = _, this.uint16[V + 6] = x, this.uint16[V + 7] = S, this.int16[V + 8] = T, this.int16[V + 9] =
|
|
3460
|
+
return this.int16[V + 0] = o, this.int16[V + 1] = l, this.int16[V + 2] = c, this.int16[V + 3] = h, this.uint16[V + 4] = v, this.uint16[V + 5] = _, this.uint16[V + 6] = x, this.uint16[V + 7] = S, this.int16[V + 8] = T, this.int16[V + 9] = P, this.int16[V + 10] = k, this.int16[V + 11] = U, r;
|
|
3461
3461
|
}, t;
|
|
3462
3462
|
}(Ct);
|
|
3463
3463
|
Ms.prototype.bytesPerElement = 24, Fe("StructArrayLayout4i4ui4i24", Ms);
|
|
@@ -3500,8 +3500,8 @@ var Qv = { exports: {} };
|
|
|
3500
3500
|
var T = this.length;
|
|
3501
3501
|
return this.resize(T + 1), this.emplace(T, r, o, l, c, h, v, _, x, S);
|
|
3502
3502
|
}, t.prototype.emplace = function(r, o, l, c, h, v, _, x, S, T) {
|
|
3503
|
-
var
|
|
3504
|
-
return this.int16[
|
|
3503
|
+
var P = 10 * r, k = 5 * r;
|
|
3504
|
+
return this.int16[P + 0] = o, this.int16[P + 1] = l, this.int16[P + 2] = c, this.int16[P + 3] = h, this.int16[P + 4] = v, this.int16[P + 5] = _, this.uint32[k + 3] = x, this.uint16[P + 8] = S, this.uint16[P + 9] = T, r;
|
|
3505
3505
|
}, t;
|
|
3506
3506
|
}(Ct);
|
|
3507
3507
|
ju.prototype.bytesPerElement = 20, Fe("StructArrayLayout6i1ul2ui20", ju);
|
|
@@ -3571,12 +3571,12 @@ var Qv = { exports: {} };
|
|
|
3571
3571
|
}
|
|
3572
3572
|
return e && (t.__proto__ = e), (t.prototype = Object.create(e && e.prototype)).constructor = t, t.prototype._refreshViews = function() {
|
|
3573
3573
|
this.uint8 = new Uint8Array(this.arrayBuffer), this.int16 = new Int16Array(this.arrayBuffer), this.uint16 = new Uint16Array(this.arrayBuffer), this.uint32 = new Uint32Array(this.arrayBuffer), this.float32 = new Float32Array(this.arrayBuffer);
|
|
3574
|
-
}, t.prototype.emplaceBack = function(r, o, l, c, h, v, _, x, S, T,
|
|
3574
|
+
}, t.prototype.emplaceBack = function(r, o, l, c, h, v, _, x, S, T, P, k, U, V, K, W, ee) {
|
|
3575
3575
|
var ie = this.length;
|
|
3576
|
-
return this.resize(ie + 1), this.emplace(ie, r, o, l, c, h, v, _, x, S, T,
|
|
3577
|
-
}, t.prototype.emplace = function(r, o, l, c, h, v, _, x, S, T,
|
|
3576
|
+
return this.resize(ie + 1), this.emplace(ie, r, o, l, c, h, v, _, x, S, T, P, k, U, V, K, W, ee);
|
|
3577
|
+
}, t.prototype.emplace = function(r, o, l, c, h, v, _, x, S, T, P, k, U, V, K, W, ee, ie) {
|
|
3578
3578
|
var ae = 24 * r, ue = 12 * r, de = 48 * r;
|
|
3579
|
-
return this.int16[ae + 0] = o, this.int16[ae + 1] = l, this.uint16[ae + 2] = c, this.uint16[ae + 3] = h, this.uint32[ue + 2] = v, this.uint32[ue + 3] = _, this.uint32[ue + 4] = x, this.uint16[ae + 10] = S, this.uint16[ae + 11] = T, this.uint16[ae + 12] =
|
|
3579
|
+
return this.int16[ae + 0] = o, this.int16[ae + 1] = l, this.uint16[ae + 2] = c, this.uint16[ae + 3] = h, this.uint32[ue + 2] = v, this.uint32[ue + 3] = _, this.uint32[ue + 4] = x, this.uint16[ae + 10] = S, this.uint16[ae + 11] = T, this.uint16[ae + 12] = P, this.float32[ue + 7] = k, this.float32[ue + 8] = U, this.uint8[de + 36] = V, this.uint8[de + 37] = K, this.uint8[de + 38] = W, this.uint32[ue + 10] = ee, this.int16[ae + 22] = ie, r;
|
|
3580
3580
|
}, t;
|
|
3581
3581
|
}(Ct);
|
|
3582
3582
|
$n.prototype.bytesPerElement = 48, Fe("StructArrayLayout2i2ui3ul3ui2f3ub1ul1i48", $n);
|
|
@@ -3586,12 +3586,12 @@ var Qv = { exports: {} };
|
|
|
3586
3586
|
}
|
|
3587
3587
|
return e && (t.__proto__ = e), (t.prototype = Object.create(e && e.prototype)).constructor = t, t.prototype._refreshViews = function() {
|
|
3588
3588
|
this.uint8 = new Uint8Array(this.arrayBuffer), this.int16 = new Int16Array(this.arrayBuffer), this.uint16 = new Uint16Array(this.arrayBuffer), this.uint32 = new Uint32Array(this.arrayBuffer), this.float32 = new Float32Array(this.arrayBuffer);
|
|
3589
|
-
}, t.prototype.emplaceBack = function(r, o, l, c, h, v, _, x, S, T,
|
|
3589
|
+
}, t.prototype.emplaceBack = function(r, o, l, c, h, v, _, x, S, T, P, k, U, V, K, W, ee, ie, ae, ue, de, be, Te, qe, Pe, Ze, ke, ot) {
|
|
3590
3590
|
var Je = this.length;
|
|
3591
|
-
return this.resize(Je + 1), this.emplace(Je, r, o, l, c, h, v, _, x, S, T,
|
|
3592
|
-
}, t.prototype.emplace = function(r, o, l, c, h, v, _, x, S, T,
|
|
3591
|
+
return this.resize(Je + 1), this.emplace(Je, r, o, l, c, h, v, _, x, S, T, P, k, U, V, K, W, ee, ie, ae, ue, de, be, Te, qe, Pe, Ze, ke, ot);
|
|
3592
|
+
}, t.prototype.emplace = function(r, o, l, c, h, v, _, x, S, T, P, k, U, V, K, W, ee, ie, ae, ue, de, be, Te, qe, Pe, Ze, ke, ot, Je) {
|
|
3593
3593
|
var Ve = 34 * r, lt = 17 * r;
|
|
3594
|
-
return this.int16[Ve + 0] = o, this.int16[Ve + 1] = l, this.int16[Ve + 2] = c, this.int16[Ve + 3] = h, this.int16[Ve + 4] = v, this.int16[Ve + 5] = _, this.int16[Ve + 6] = x, this.int16[Ve + 7] = S, this.uint16[Ve + 8] = T, this.uint16[Ve + 9] =
|
|
3594
|
+
return this.int16[Ve + 0] = o, this.int16[Ve + 1] = l, this.int16[Ve + 2] = c, this.int16[Ve + 3] = h, this.int16[Ve + 4] = v, this.int16[Ve + 5] = _, this.int16[Ve + 6] = x, this.int16[Ve + 7] = S, this.uint16[Ve + 8] = T, this.uint16[Ve + 9] = P, this.uint16[Ve + 10] = k, this.uint16[Ve + 11] = U, this.uint16[Ve + 12] = V, this.uint16[Ve + 13] = K, this.uint16[Ve + 14] = W, this.uint16[Ve + 15] = ee, this.uint16[Ve + 16] = ie, this.uint16[Ve + 17] = ae, this.uint16[Ve + 18] = ue, this.uint16[Ve + 19] = de, this.uint16[Ve + 20] = be, this.uint16[Ve + 21] = Te, this.uint16[Ve + 22] = qe, this.uint32[lt + 12] = Pe, this.float32[lt + 13] = Ze, this.float32[lt + 14] = ke, this.float32[lt + 15] = ot, this.float32[lt + 16] = Je, r;
|
|
3595
3595
|
}, t;
|
|
3596
3596
|
}(Ct);
|
|
3597
3597
|
zs.prototype.bytesPerElement = 68, Fe("StructArrayLayout8i15ui1ul4f68", zs);
|
|
@@ -4152,8 +4152,8 @@ var Qv = { exports: {} };
|
|
|
4152
4152
|
var h = Ar(l, e.type), v = c.value, _ = c.property.specification.type, x = c.property.useIntegerZoom, S = c.property.specification["property-type"], T = S === "cross-faded" || S === "cross-faded-data-driven";
|
|
4153
4153
|
if (v.kind === "constant") this.binders[l] = T ? new at(v.value, h) : new rt(v.value, h, _), o.push("/u_" + l);
|
|
4154
4154
|
else if (v.kind === "source" || T) {
|
|
4155
|
-
var
|
|
4156
|
-
this.binders[l] = T ? new nt(v, _, x, t,
|
|
4155
|
+
var P = ir(l, _, "source");
|
|
4156
|
+
this.binders[l] = T ? new nt(v, _, x, t, P, e.id) : new tt(v, h, _, P), o.push("/a_" + l);
|
|
4157
4157
|
} else {
|
|
4158
4158
|
var k = ir(l, _, "composite");
|
|
4159
4159
|
this.binders[l] = new et(v, h, _, x, t, k), o.push("/z_" + l);
|
|
@@ -4180,10 +4180,10 @@ var Qv = { exports: {} };
|
|
|
4180
4180
|
for (var h in e) for (var v = 0, _ = t.getPositions(h); v < _.length; v += 1) {
|
|
4181
4181
|
var x = _[v], S = r.feature(x.index);
|
|
4182
4182
|
for (var T in this.binders) {
|
|
4183
|
-
var
|
|
4184
|
-
if ((
|
|
4183
|
+
var P = this.binders[T];
|
|
4184
|
+
if ((P instanceof tt || P instanceof et || P instanceof nt) && P.expression.isStateDependent === !0) {
|
|
4185
4185
|
var k = o.paint.get(T);
|
|
4186
|
-
|
|
4186
|
+
P.expression = k.value, P.updatePaintArray(x.start, x.end, S, e[h], l), c = !0;
|
|
4187
4187
|
}
|
|
4188
4188
|
}
|
|
4189
4189
|
}
|
|
@@ -4390,9 +4390,9 @@ var Qv = { exports: {} };
|
|
|
4390
4390
|
var o = this.layers[0], l = [], c = null;
|
|
4391
4391
|
o.type === "circle" && (c = o.layout.get("circle-sort-key"));
|
|
4392
4392
|
for (var h = 0, v = e; h < v.length; h += 1) {
|
|
4393
|
-
var _ = v[h], x = _.feature, S = _.id, T = _.index,
|
|
4393
|
+
var _ = v[h], x = _.feature, S = _.id, T = _.index, P = _.sourceLayerIndex, k = this.layers[0]._featureFilter.needGeometry, U = cr(x, k);
|
|
4394
4394
|
if (this.layers[0]._featureFilter.filter(new pt(this.zoom), U, r)) {
|
|
4395
|
-
var V = c ? c.evaluate(U, {}, r) : void 0, K = { id: S, properties: x.properties, type: x.type, sourceLayerIndex:
|
|
4395
|
+
var V = c ? c.evaluate(U, {}, r) : void 0, K = { id: S, properties: x.properties, type: x.type, sourceLayerIndex: P, index: T, geometry: k ? U.geometry : tr(x), patterns: {}, sortKey: V };
|
|
4396
4396
|
l.push(K);
|
|
4397
4397
|
}
|
|
4398
4398
|
}
|
|
@@ -4417,8 +4417,8 @@ var Qv = { exports: {} };
|
|
|
4417
4417
|
for (var l = 0, c = t; l < c.length; l += 1) for (var h = 0, v = c[l]; h < v.length; h += 1) {
|
|
4418
4418
|
var _ = v[h], x = _.x, S = _.y;
|
|
4419
4419
|
if (!(x < 0 || x >= 8192 || S < 0 || S >= 8192)) {
|
|
4420
|
-
var T = this.segments.prepareSegment(4, this.layoutVertexArray, this.indexArray, e.sortKey),
|
|
4421
|
-
xi(this.layoutVertexArray, x, S, -1, -1), xi(this.layoutVertexArray, x, S, 1, -1), xi(this.layoutVertexArray, x, S, 1, 1), xi(this.layoutVertexArray, x, S, -1, 1), this.indexArray.emplaceBack(
|
|
4420
|
+
var T = this.segments.prepareSegment(4, this.layoutVertexArray, this.indexArray, e.sortKey), P = T.vertexLength;
|
|
4421
|
+
xi(this.layoutVertexArray, x, S, -1, -1), xi(this.layoutVertexArray, x, S, 1, -1), xi(this.layoutVertexArray, x, S, 1, 1), xi(this.layoutVertexArray, x, S, -1, 1), this.indexArray.emplaceBack(P, P + 1, P + 2), this.indexArray.emplaceBack(P, P + 3, P + 2), T.vertexLength += 4, T.primitiveLength += 2;
|
|
4422
4422
|
}
|
|
4423
4423
|
}
|
|
4424
4424
|
this.programConfigurations.populatePaintArrays(this.layoutVertexArray.length, e, r, {}, o);
|
|
@@ -4428,8 +4428,8 @@ var Qv = { exports: {} };
|
|
|
4428
4428
|
return e[0] = 1, e[1] = 0, e[2] = 0, e[3] = 0, e[4] = 0, e[5] = 1, e[6] = 0, e[7] = 0, e[8] = 0, e[9] = 0, e[10] = 1, e[11] = 0, e[12] = 0, e[13] = 0, e[14] = 0, e[15] = 1, e;
|
|
4429
4429
|
}
|
|
4430
4430
|
function ci(e, t, r) {
|
|
4431
|
-
var o = t[0], l = t[1], c = t[2], h = t[3], v = t[4], _ = t[5], x = t[6], S = t[7], T = t[8],
|
|
4432
|
-
return e[0] = ie * o + ae * v + ue * T + de * V, e[1] = ie * l + ae * _ + ue *
|
|
4431
|
+
var o = t[0], l = t[1], c = t[2], h = t[3], v = t[4], _ = t[5], x = t[6], S = t[7], T = t[8], P = t[9], k = t[10], U = t[11], V = t[12], K = t[13], W = t[14], ee = t[15], ie = r[0], ae = r[1], ue = r[2], de = r[3];
|
|
4432
|
+
return e[0] = ie * o + ae * v + ue * T + de * V, e[1] = ie * l + ae * _ + ue * P + de * K, e[2] = ie * c + ae * x + ue * k + de * W, e[3] = ie * h + ae * S + ue * U + de * ee, e[4] = (ie = r[4]) * o + (ae = r[5]) * v + (ue = r[6]) * T + (de = r[7]) * V, e[5] = ie * l + ae * _ + ue * P + de * K, e[6] = ie * c + ae * x + ue * k + de * W, e[7] = ie * h + ae * S + ue * U + de * ee, e[8] = (ie = r[8]) * o + (ae = r[9]) * v + (ue = r[10]) * T + (de = r[11]) * V, e[9] = ie * l + ae * _ + ue * P + de * K, e[10] = ie * c + ae * x + ue * k + de * W, e[11] = ie * h + ae * S + ue * U + de * ee, e[12] = (ie = r[12]) * o + (ae = r[13]) * v + (ue = r[14]) * T + (de = r[15]) * V, e[13] = ie * l + ae * _ + ue * P + de * K, e[14] = ie * c + ae * x + ue * k + de * W, e[15] = ie * h + ae * S + ue * U + de * ee, e;
|
|
4433
4433
|
}
|
|
4434
4434
|
Math.hypot || (Math.hypot = function() {
|
|
4435
4435
|
for (var e = arguments, t = 0, r = arguments.length; r--; ) t += e[r] * e[r];
|
|
@@ -4457,12 +4457,12 @@ var Qv = { exports: {} };
|
|
|
4457
4457
|
var o = r;
|
|
4458
4458
|
return fn("circle-radius", this, o) + fn("circle-stroke-width", this, o) + Er(this.paint.get("circle-translate"));
|
|
4459
4459
|
}, t.prototype.queryIntersectsFeature = function(r, o, l, c, h, v, _, x) {
|
|
4460
|
-
for (var S = Tn(r, this.paint.get("circle-translate"), this.paint.get("circle-translate-anchor"), v.angle, _), T = this.paint.get("circle-radius").evaluate(o, l) + this.paint.get("circle-stroke-width").evaluate(o, l),
|
|
4460
|
+
for (var S = Tn(r, this.paint.get("circle-translate"), this.paint.get("circle-translate-anchor"), v.angle, _), T = this.paint.get("circle-radius").evaluate(o, l) + this.paint.get("circle-stroke-width").evaluate(o, l), P = this.paint.get("circle-pitch-alignment") === "map", k = P ? S : function(be, Te) {
|
|
4461
4461
|
return be.map(function(qe) {
|
|
4462
4462
|
return Wo(qe, Te);
|
|
4463
4463
|
});
|
|
4464
|
-
}(S, x), U =
|
|
4465
|
-
var ie = ee[W], ae =
|
|
4464
|
+
}(S, x), U = P ? T * _ : T, V = 0, K = c; V < K.length; V += 1) for (var W = 0, ee = K[V]; W < ee.length; W += 1) {
|
|
4465
|
+
var ie = ee[W], ae = P ? ie : Wo(ie, x), ue = U, de = Bs([], [ie.x, ie.y, 0, 1], x);
|
|
4466
4466
|
if (this.paint.get("circle-pitch-scale") === "viewport" && this.paint.get("circle-pitch-alignment") === "map" ? ue *= de[3] / v.cameraToCenterDistance : this.paint.get("circle-pitch-scale") === "map" && this.paint.get("circle-pitch-alignment") === "viewport" && (ue *= v.cameraToCenterDistance / de[3]), li(k, ae, ue)) return !0;
|
|
4467
4467
|
}
|
|
4468
4468
|
return !1;
|
|
@@ -4534,7 +4534,7 @@ var Qv = { exports: {} };
|
|
|
4534
4534
|
var S = _ / (r - 1), T = e.clips[h];
|
|
4535
4535
|
c(v, x, T.start * (1 - S) + T.end * S);
|
|
4536
4536
|
}
|
|
4537
|
-
else for (var
|
|
4537
|
+
else for (var P = 0, k = 0; P < r; P++, k += 4) c(0, k, P / (r - 1));
|
|
4538
4538
|
return l;
|
|
4539
4539
|
}
|
|
4540
4540
|
var m_ = function(e) {
|
|
@@ -4566,19 +4566,19 @@ var Qv = { exports: {} };
|
|
|
4566
4566
|
}(cn), g_ = Lr([{ name: "a_pos", components: 2, type: "Int16" }], 4).members, Rp = uc, __ = uc;
|
|
4567
4567
|
function uc(e, t, r) {
|
|
4568
4568
|
r = r || 2;
|
|
4569
|
-
var o, l, c, h, v, _, x, S = t && t.length, T = S ? t[0] * r : e.length,
|
|
4570
|
-
if (!
|
|
4571
|
-
if (S && (
|
|
4569
|
+
var o, l, c, h, v, _, x, S = t && t.length, T = S ? t[0] * r : e.length, P = fd(e, 0, T, r, !0), k = [];
|
|
4570
|
+
if (!P || P.next === P.prev) return k;
|
|
4571
|
+
if (S && (P = function(V, K, W, ee) {
|
|
4572
4572
|
var ie, ae, ue, de = [];
|
|
4573
4573
|
for (ie = 0, ae = K.length; ie < ae; ie++) (ue = fd(V, K[ie] * ee, ie < ae - 1 ? K[ie + 1] * ee : V.length, ee, !1)) === ue.next && (ue.steiner = !0), de.push(E_(ue));
|
|
4574
4574
|
for (de.sort(T_), ie = 0; ie < de.length; ie++) I_(de[ie], W), W = uo(W, W.next);
|
|
4575
4575
|
return W;
|
|
4576
|
-
}(e, t,
|
|
4576
|
+
}(e, t, P, r)), e.length > 80 * r) {
|
|
4577
4577
|
o = c = e[0], l = h = e[1];
|
|
4578
4578
|
for (var U = r; U < T; U += r) (v = e[U]) < o && (o = v), (_ = e[U + 1]) < l && (l = _), v > c && (c = v), _ > h && (h = _);
|
|
4579
4579
|
x = (x = Math.max(c - o, h - l)) !== 0 ? 1 / x : 0;
|
|
4580
4580
|
}
|
|
4581
|
-
return Wu(
|
|
4581
|
+
return Wu(P, k, r, o, l, x), k;
|
|
4582
4582
|
}
|
|
4583
4583
|
function fd(e, t, r, o, l) {
|
|
4584
4584
|
var c, h;
|
|
@@ -4601,10 +4601,10 @@ var Qv = { exports: {} };
|
|
|
4601
4601
|
}
|
|
4602
4602
|
function Wu(e, t, r, o, l, c, h) {
|
|
4603
4603
|
if (e) {
|
|
4604
|
-
!h && c && function(S, T,
|
|
4604
|
+
!h && c && function(S, T, P, k) {
|
|
4605
4605
|
var U = S;
|
|
4606
4606
|
do
|
|
4607
|
-
U.z === null && (U.z = Fp(U.x, U.y, T,
|
|
4607
|
+
U.z === null && (U.z = Fp(U.x, U.y, T, P, k)), U.prevZ = U.prev, U.nextZ = U.next, U = U.next;
|
|
4608
4608
|
while (U !== S);
|
|
4609
4609
|
U.prevZ.nextZ = null, U.prevZ = null, function(V) {
|
|
4610
4610
|
var K, W, ee, ie, ae, ue, de, be, Te = 1;
|
|
@@ -4637,17 +4637,17 @@ var Qv = { exports: {} };
|
|
|
4637
4637
|
function b_(e, t, r, o) {
|
|
4638
4638
|
var l = e.prev, c = e, h = e.next;
|
|
4639
4639
|
if (xr(l, c, h) >= 0) return !1;
|
|
4640
|
-
for (var v = l.x > c.x ? l.x > h.x ? l.x : h.x : c.x > h.x ? c.x : h.x, _ = l.y > c.y ? l.y > h.y ? l.y : h.y : c.y > h.y ? c.y : h.y, x = Fp(l.x < c.x ? l.x < h.x ? l.x : h.x : c.x < h.x ? c.x : h.x, l.y < c.y ? l.y < h.y ? l.y : h.y : c.y < h.y ? c.y : h.y, t, r, o), S = Fp(v, _, t, r, o), T = e.prevZ,
|
|
4641
|
-
if (T !== e.prev && T !== e.next && Rs(l.x, l.y, c.x, c.y, h.x, h.y, T.x, T.y) && xr(T.prev, T, T.next) >= 0 || (T = T.prevZ,
|
|
4642
|
-
|
|
4640
|
+
for (var v = l.x > c.x ? l.x > h.x ? l.x : h.x : c.x > h.x ? c.x : h.x, _ = l.y > c.y ? l.y > h.y ? l.y : h.y : c.y > h.y ? c.y : h.y, x = Fp(l.x < c.x ? l.x < h.x ? l.x : h.x : c.x < h.x ? c.x : h.x, l.y < c.y ? l.y < h.y ? l.y : h.y : c.y < h.y ? c.y : h.y, t, r, o), S = Fp(v, _, t, r, o), T = e.prevZ, P = e.nextZ; T && T.z >= x && P && P.z <= S; ) {
|
|
4641
|
+
if (T !== e.prev && T !== e.next && Rs(l.x, l.y, c.x, c.y, h.x, h.y, T.x, T.y) && xr(T.prev, T, T.next) >= 0 || (T = T.prevZ, P !== e.prev && P !== e.next && Rs(l.x, l.y, c.x, c.y, h.x, h.y, P.x, P.y) && xr(P.prev, P, P.next) >= 0)) return !1;
|
|
4642
|
+
P = P.nextZ;
|
|
4643
4643
|
}
|
|
4644
4644
|
for (; T && T.z >= x; ) {
|
|
4645
4645
|
if (T !== e.prev && T !== e.next && Rs(l.x, l.y, c.x, c.y, h.x, h.y, T.x, T.y) && xr(T.prev, T, T.next) >= 0) return !1;
|
|
4646
4646
|
T = T.prevZ;
|
|
4647
4647
|
}
|
|
4648
|
-
for (;
|
|
4649
|
-
if (
|
|
4650
|
-
|
|
4648
|
+
for (; P && P.z <= S; ) {
|
|
4649
|
+
if (P !== e.prev && P !== e.next && Rs(l.x, l.y, c.x, c.y, h.x, h.y, P.x, P.y) && xr(P.prev, P, P.next) >= 0) return !1;
|
|
4650
|
+
P = P.nextZ;
|
|
4651
4651
|
}
|
|
4652
4652
|
return !0;
|
|
4653
4653
|
}
|
|
@@ -4693,11 +4693,11 @@ var Qv = { exports: {} };
|
|
|
4693
4693
|
} while (h !== l);
|
|
4694
4694
|
if (!c) return null;
|
|
4695
4695
|
if (v === x) return c;
|
|
4696
|
-
var T,
|
|
4696
|
+
var T, P = c, k = c.x, U = c.y, V = 1 / 0;
|
|
4697
4697
|
h = c;
|
|
4698
4698
|
do
|
|
4699
4699
|
v >= h.x && h.x >= k && v !== h.x && Rs(_ < U ? v : x, _, k, U, _ < U ? x : v, _, h.x, h.y) && (T = Math.abs(_ - h.y) / (v - h.x), Hu(h, o) && (T < V || T === V && (h.x > c.x || h.x === c.x && A_(c, h))) && (c = h, V = T)), h = h.next;
|
|
4700
|
-
while (h !==
|
|
4700
|
+
while (h !== P);
|
|
4701
4701
|
return c;
|
|
4702
4702
|
}(e, t)) {
|
|
4703
4703
|
var r = md(t, e);
|
|
@@ -4777,8 +4777,8 @@ var Qv = { exports: {} };
|
|
|
4777
4777
|
(function c(h, v, _, x, S) {
|
|
4778
4778
|
for (; x > _; ) {
|
|
4779
4779
|
if (x - _ > 600) {
|
|
4780
|
-
var T = x - _ + 1,
|
|
4781
|
-
c(h, v, Math.max(_, Math.floor(v -
|
|
4780
|
+
var T = x - _ + 1, P = v - _ + 1, k = Math.log(T), U = 0.5 * Math.exp(2 * k / 3), V = 0.5 * Math.sqrt(k * U * (T - U) / T) * (P - T / 2 < 0 ? -1 : 1);
|
|
4781
|
+
c(h, v, Math.max(_, Math.floor(v - P * U / T + V)), Math.min(x, Math.floor(v + (T - P) * U / T + V)), S);
|
|
4782
4782
|
}
|
|
4783
4783
|
var K = h[v], W = _, ee = x;
|
|
4784
4784
|
for (Ku(h, _, v), S(h[x], K) > 0 && Ku(h, _, x); W < ee; ) {
|
|
@@ -4822,8 +4822,8 @@ var Qv = { exports: {} };
|
|
|
4822
4822
|
for (var c = l.patternDependencies, h = 0, v = t; h < v.length; h += 1) {
|
|
4823
4823
|
var _ = v[h], x = _.paint.get(e + "-pattern").value;
|
|
4824
4824
|
if (x.kind !== "constant") {
|
|
4825
|
-
var S = x.evaluate({ zoom: o - 1 }, r, {}, l.availableImages), T = x.evaluate({ zoom: o }, r, {}, l.availableImages),
|
|
4826
|
-
T = T && T.name ? T.name : T,
|
|
4825
|
+
var S = x.evaluate({ zoom: o - 1 }, r, {}, l.availableImages), T = x.evaluate({ zoom: o }, r, {}, l.availableImages), P = x.evaluate({ zoom: o + 1 }, r, {}, l.availableImages);
|
|
4826
|
+
T = T && T.name ? T.name : T, P = P && P.name ? P.name : P, c[S = S && S.name ? S.name : S] = !0, c[T] = !0, c[P] = !0, r.patterns[_.id] = { min: S, mid: T, max: P };
|
|
4827
4827
|
}
|
|
4828
4828
|
}
|
|
4829
4829
|
return r;
|
|
@@ -4856,9 +4856,9 @@ var Qv = { exports: {} };
|
|
|
4856
4856
|
In.prototype.populate = function(e, t, r) {
|
|
4857
4857
|
this.hasPattern = Np("fill", this.layers, t);
|
|
4858
4858
|
for (var o = this.layers[0].layout.get("fill-sort-key"), l = [], c = 0, h = e; c < h.length; c += 1) {
|
|
4859
|
-
var v = h[c], _ = v.feature, x = v.id, S = v.index, T = v.sourceLayerIndex,
|
|
4859
|
+
var v = h[c], _ = v.feature, x = v.id, S = v.index, T = v.sourceLayerIndex, P = this.layers[0]._featureFilter.needGeometry, k = cr(_, P);
|
|
4860
4860
|
if (this.layers[0]._featureFilter.filter(new pt(this.zoom), k, r)) {
|
|
4861
|
-
var U = o ? o.evaluate(k, {}, r, t.availableImages) : void 0, V = { id: x, properties: _.properties, type: _.type, sourceLayerIndex: T, index: S, geometry:
|
|
4861
|
+
var U = o ? o.evaluate(k, {}, r, t.availableImages) : void 0, V = { id: x, properties: _.properties, type: _.type, sourceLayerIndex: T, index: S, geometry: P ? k.geometry : tr(_), patterns: {}, sortKey: U };
|
|
4862
4862
|
l.push(V);
|
|
4863
4863
|
}
|
|
4864
4864
|
}
|
|
@@ -4891,7 +4891,7 @@ var Qv = { exports: {} };
|
|
|
4891
4891
|
}, In.prototype.addFeature = function(e, t, r, o, l) {
|
|
4892
4892
|
for (var c = 0, h = Vp(t, 500); c < h.length; c += 1) {
|
|
4893
4893
|
for (var v = h[c], _ = 0, x = 0, S = v; x < S.length; x += 1) _ += S[x].length;
|
|
4894
|
-
for (var T = this.segments.prepareSegment(_, this.layoutVertexArray, this.indexArray),
|
|
4894
|
+
for (var T = this.segments.prepareSegment(_, this.layoutVertexArray, this.indexArray), P = T.vertexLength, k = [], U = [], V = 0, K = v; V < K.length; V += 1) {
|
|
4895
4895
|
var W = K[V];
|
|
4896
4896
|
if (W.length !== 0) {
|
|
4897
4897
|
W !== v[0] && U.push(k.length / 2);
|
|
@@ -4901,7 +4901,7 @@ var Qv = { exports: {} };
|
|
|
4901
4901
|
ee.vertexLength += W.length, ee.primitiveLength += W.length;
|
|
4902
4902
|
}
|
|
4903
4903
|
}
|
|
4904
|
-
for (var ue = Rp(k, U), de = 0; de < ue.length; de += 3) this.indexArray.emplaceBack(
|
|
4904
|
+
for (var ue = Rp(k, U), de = 0; de < ue.length; de += 3) this.indexArray.emplaceBack(P + ue[de], P + ue[de + 1], P + ue[de + 2]);
|
|
4905
4905
|
T.vertexLength += _, T.primitiveLength += ue.length / 3;
|
|
4906
4906
|
}
|
|
4907
4907
|
this.programConfigurations.populatePaintArrays(this.layoutVertexArray.length, e, r, l, o);
|
|
@@ -4995,8 +4995,8 @@ var Qv = { exports: {} };
|
|
|
4995
4995
|
}(_), o = 0; o < _.length; o++) for (l = 0; l < _[o].length; l++) S(_[o][l]);
|
|
4996
4996
|
}
|
|
4997
4997
|
_.length === 1 ? _ = _[0] : x = "Multi" + x;
|
|
4998
|
-
var
|
|
4999
|
-
return "id" in this && (
|
|
4998
|
+
var P = { type: "Feature", geometry: { type: x, coordinates: _ }, properties: this.properties };
|
|
4999
|
+
return "id" in this && (P.id = this.id), P;
|
|
5000
5000
|
};
|
|
5001
5001
|
var gd = _d;
|
|
5002
5002
|
function _d(e, t) {
|
|
@@ -5046,8 +5046,8 @@ var Qv = { exports: {} };
|
|
|
5046
5046
|
for (var o = 0, l = e; o < l.length; o += 1) {
|
|
5047
5047
|
var c = l[o], h = c.feature, v = c.id, _ = c.index, x = c.sourceLayerIndex, S = this.layers[0]._featureFilter.needGeometry, T = cr(h, S);
|
|
5048
5048
|
if (this.layers[0]._featureFilter.filter(new pt(this.zoom), T, r)) {
|
|
5049
|
-
var
|
|
5050
|
-
this.hasPattern ? this.features.push(qp("fill-extrusion", this.layers,
|
|
5049
|
+
var P = { id: v, sourceLayerIndex: x, index: _, geometry: S ? T.geometry : tr(h), properties: h.properties, type: h.type, patterns: {} };
|
|
5050
|
+
this.hasPattern ? this.features.push(qp("fill-extrusion", this.layers, P, this.zoom, t)) : this.addFeature(P, P.geometry, _, r, {}), t.featureIndex.insert(h, P.geometry, _, x, this.index, !0);
|
|
5051
5051
|
}
|
|
5052
5052
|
}
|
|
5053
5053
|
}, An.prototype.addFeatures = function(e, t, r) {
|
|
@@ -5068,8 +5068,8 @@ var Qv = { exports: {} };
|
|
|
5068
5068
|
}, An.prototype.addFeature = function(e, t, r, o, l) {
|
|
5069
5069
|
for (var c = 0, h = Vp(t, 500); c < h.length; c += 1) {
|
|
5070
5070
|
for (var v = h[c], _ = 0, x = 0, S = v; x < S.length; x += 1) _ += S[x].length;
|
|
5071
|
-
for (var T = this.segments.prepareSegment(4, this.layoutVertexArray, this.indexArray),
|
|
5072
|
-
var U = k[
|
|
5071
|
+
for (var T = this.segments.prepareSegment(4, this.layoutVertexArray, this.indexArray), P = 0, k = v; P < k.length; P += 1) {
|
|
5072
|
+
var U = k[P];
|
|
5073
5073
|
if (U.length !== 0 && !((lt = U).every(function(it) {
|
|
5074
5074
|
return it.x < 0;
|
|
5075
5075
|
}) || lt.every(function(it) {
|
|
@@ -5121,7 +5121,7 @@ var Qv = { exports: {} };
|
|
|
5121
5121
|
}, t.prototype.is3D = function() {
|
|
5122
5122
|
return !0;
|
|
5123
5123
|
}, t.prototype.queryIntersectsFeature = function(r, o, l, c, h, v, _, x) {
|
|
5124
|
-
var S = Tn(r, this.paint.get("fill-extrusion-translate"), this.paint.get("fill-extrusion-translate-anchor"), v.angle, _), T = this.paint.get("fill-extrusion-height").evaluate(o, l),
|
|
5124
|
+
var S = Tn(r, this.paint.get("fill-extrusion-translate"), this.paint.get("fill-extrusion-translate-anchor"), v.angle, _), T = this.paint.get("fill-extrusion-height").evaluate(o, l), P = this.paint.get("fill-extrusion-base").evaluate(o, l), k = function(V, K, W, ee) {
|
|
5125
5125
|
for (var ie = [], ae = 0, ue = V; ae < ue.length; ae += 1) {
|
|
5126
5126
|
var de = ue[ae], be = [de.x, de.y, 0, 1];
|
|
5127
5127
|
Bs(be, be, K), ie.push(new fe(be[0] / be[3], be[1] / be[3]));
|
|
@@ -5130,7 +5130,7 @@ var Qv = { exports: {} };
|
|
|
5130
5130
|
}(S, x), U = function(V, K, W, ee) {
|
|
5131
5131
|
for (var ie = [], ae = [], ue = ee[8] * K, de = ee[9] * K, be = ee[10] * K, Te = ee[11] * K, qe = ee[8] * W, Pe = ee[9] * W, Ze = ee[10] * W, ke = ee[11] * W, ot = 0, Je = V; ot < Je.length; ot += 1) {
|
|
5132
5132
|
for (var Ve = [], lt = [], it = 0, _t = Je[ot]; it < _t.length; it += 1) {
|
|
5133
|
-
var Ge = _t[it], wt = Ge.x,
|
|
5133
|
+
var Ge = _t[it], wt = Ge.x, Yt = Ge.y, nr = ee[0] * wt + ee[4] * Yt + ee[12], rr = ee[1] * wt + ee[5] * Yt + ee[13], Qt = ee[2] * wt + ee[6] * Yt + ee[14], ar = ee[3] * wt + ee[7] * Yt + ee[15], Pr = Qt + be, Cr = ar + Te, ri = nr + qe, Or = rr + Pe, ii = Qt + Ze, pr = ar + ke, Ur = new fe((nr + ue) / Cr, (rr + de) / Cr);
|
|
5134
5134
|
Ur.z = Pr / Cr, Ve.push(Ur);
|
|
5135
5135
|
var ht = new fe(ri / pr, Or / pr);
|
|
5136
5136
|
ht.z = ii / pr, lt.push(ht);
|
|
@@ -5138,7 +5138,7 @@ var Qv = { exports: {} };
|
|
|
5138
5138
|
ie.push(Ve), ae.push(lt);
|
|
5139
5139
|
}
|
|
5140
5140
|
return [ie, ae];
|
|
5141
|
-
}(c,
|
|
5141
|
+
}(c, P, T, x);
|
|
5142
5142
|
return function(V, K, W) {
|
|
5143
5143
|
var ee = 1 / 0;
|
|
5144
5144
|
en(W, K) && (ee = xd(W, K[0]));
|
|
@@ -5157,7 +5157,7 @@ var Qv = { exports: {} };
|
|
|
5157
5157
|
if (e.length === 1) {
|
|
5158
5158
|
for (var r, o = 0, l = t[o++]; !r || l.equals(r); ) if (!(r = t[o++])) return 1 / 0;
|
|
5159
5159
|
for (; o < t.length; o++) {
|
|
5160
|
-
var c = t[o], h = e[0], v = r.sub(l), _ = c.sub(l), x = h.sub(l), S = Yu(v, v), T = Yu(v, _),
|
|
5160
|
+
var c = t[o], h = e[0], v = r.sub(l), _ = c.sub(l), x = h.sub(l), S = Yu(v, v), T = Yu(v, _), P = Yu(_, _), k = Yu(x, v), U = Yu(x, _), V = S * P - T * T, K = (P * k - T * U) / V, W = (S * U - T * k) / V, ee = l.z * (1 - K - W) + r.z * K + c.z * W;
|
|
5161
5161
|
if (isFinite(ee)) return ee;
|
|
5162
5162
|
}
|
|
5163
5163
|
return 1 / 0;
|
|
@@ -5180,9 +5180,9 @@ var Qv = { exports: {} };
|
|
|
5180
5180
|
pi.prototype.populate = function(e, t, r) {
|
|
5181
5181
|
this.hasPattern = Np("line", this.layers, t);
|
|
5182
5182
|
for (var o = this.layers[0].layout.get("line-sort-key"), l = [], c = 0, h = e; c < h.length; c += 1) {
|
|
5183
|
-
var v = h[c], _ = v.feature, x = v.id, S = v.index, T = v.sourceLayerIndex,
|
|
5183
|
+
var v = h[c], _ = v.feature, x = v.id, S = v.index, T = v.sourceLayerIndex, P = this.layers[0]._featureFilter.needGeometry, k = cr(_, P);
|
|
5184
5184
|
if (this.layers[0]._featureFilter.filter(new pt(this.zoom), k, r)) {
|
|
5185
|
-
var U = o ? o.evaluate(k, {}, r) : void 0, V = { id: x, properties: _.properties, type: _.type, sourceLayerIndex: T, index: S, geometry:
|
|
5185
|
+
var U = o ? o.evaluate(k, {}, r) : void 0, V = { id: x, properties: _.properties, type: _.type, sourceLayerIndex: T, index: S, geometry: P ? k.geometry : tr(_), patterns: {}, sortKey: U };
|
|
5186
5186
|
l.push(V);
|
|
5187
5187
|
}
|
|
5188
5188
|
}
|
|
@@ -5229,7 +5229,7 @@ var Qv = { exports: {} };
|
|
|
5229
5229
|
for (var x = 0; x < _ - 1 && e[x].equals(e[x + 1]); ) x++;
|
|
5230
5230
|
if (!(_ < (v ? 3 : 2))) {
|
|
5231
5231
|
r === "bevel" && (l = 1.05);
|
|
5232
|
-
var S, T = this.overscaling <= 16 ? 122880 / (512 * this.overscaling) : 0,
|
|
5232
|
+
var S, T = this.overscaling <= 16 ? 122880 / (512 * this.overscaling) : 0, P = this.segments.prepareSegment(10 * _, this.layoutVertexArray, this.indexArray), k = void 0, U = void 0, V = void 0, K = void 0;
|
|
5233
5233
|
this.e1 = this.e2 = -1, v && (K = e[x].sub(S = e[_ - 2])._unit()._perp());
|
|
5234
5234
|
for (var W = x; W < _; W++) if (!(U = W === _ - 1 ? v ? e[x + 1] : void 0 : e[W + 1]) || !e[W].equals(U)) {
|
|
5235
5235
|
K && (V = K), S && (k = S), S = e[W], K = U ? U.sub(S)._unit()._perp() : V;
|
|
@@ -5240,40 +5240,40 @@ var Qv = { exports: {} };
|
|
|
5240
5240
|
var qe = S.dist(k);
|
|
5241
5241
|
if (qe > 2 * T) {
|
|
5242
5242
|
var Pe = S.sub(S.sub(k)._mult(T / qe)._round());
|
|
5243
|
-
this.updateDistance(k, Pe), this.addCurrentVertex(Pe, V, 0, 0,
|
|
5243
|
+
this.updateDistance(k, Pe), this.addCurrentVertex(Pe, V, 0, 0, P), k = Pe;
|
|
5244
5244
|
}
|
|
5245
5245
|
}
|
|
5246
5246
|
var Ze = k && U, ke = Ze ? r : v ? "butt" : o;
|
|
5247
|
-
if (Ze && ke === "round" && (ue < c ? ke = "miter" : ue <= 2 && (ke = "fakeround")), ke === "miter" && ue > l && (ke = "bevel"), ke === "bevel" && (ue > 2 && (ke = "flipbevel"), ue < l && (ke = "miter")), k && this.updateDistance(k, S), ke === "miter") ee._mult(ue), this.addCurrentVertex(S, ee, 0, 0,
|
|
5247
|
+
if (Ze && ke === "round" && (ue < c ? ke = "miter" : ue <= 2 && (ke = "fakeround")), ke === "miter" && ue > l && (ke = "bevel"), ke === "bevel" && (ue > 2 && (ke = "flipbevel"), ue < l && (ke = "miter")), k && this.updateDistance(k, S), ke === "miter") ee._mult(ue), this.addCurrentVertex(S, ee, 0, 0, P);
|
|
5248
5248
|
else if (ke === "flipbevel") {
|
|
5249
5249
|
if (ue > 100) ee = K.mult(-1);
|
|
5250
5250
|
else {
|
|
5251
5251
|
var ot = ue * V.add(K).mag() / V.sub(K).mag();
|
|
5252
5252
|
ee._perp()._mult(ot * (Te ? -1 : 1));
|
|
5253
5253
|
}
|
|
5254
|
-
this.addCurrentVertex(S, ee, 0, 0,
|
|
5254
|
+
this.addCurrentVertex(S, ee, 0, 0, P), this.addCurrentVertex(S, ee.mult(-1), 0, 0, P);
|
|
5255
5255
|
} else if (ke === "bevel" || ke === "fakeround") {
|
|
5256
5256
|
var Je = -Math.sqrt(ue * ue - 1), Ve = Te ? Je : 0, lt = Te ? 0 : Je;
|
|
5257
|
-
if (k && this.addCurrentVertex(S, V, Ve, lt,
|
|
5257
|
+
if (k && this.addCurrentVertex(S, V, Ve, lt, P), ke === "fakeround") for (var it = Math.round(180 * de / Math.PI / 20), _t = 1; _t < it; _t++) {
|
|
5258
5258
|
var Ge = _t / it;
|
|
5259
5259
|
if (Ge !== 0.5) {
|
|
5260
5260
|
var wt = Ge - 0.5;
|
|
5261
5261
|
Ge += Ge * wt * (Ge - 1) * ((1.0904 + ie * (ie * (3.55645 - 1.43519 * ie) - 3.2452)) * wt * wt + (0.848013 + ie * (0.215638 * ie - 1.06021)));
|
|
5262
5262
|
}
|
|
5263
|
-
var
|
|
5264
|
-
this.addHalfVertex(S,
|
|
5263
|
+
var Yt = K.sub(V)._mult(Ge)._add(V)._unit()._mult(Te ? -1 : 1);
|
|
5264
|
+
this.addHalfVertex(S, Yt.x, Yt.y, !1, Te, 0, P);
|
|
5265
5265
|
}
|
|
5266
|
-
U && this.addCurrentVertex(S, K, -Ve, -lt,
|
|
5267
|
-
} else if (ke === "butt") this.addCurrentVertex(S, ee, 0, 0,
|
|
5266
|
+
U && this.addCurrentVertex(S, K, -Ve, -lt, P);
|
|
5267
|
+
} else if (ke === "butt") this.addCurrentVertex(S, ee, 0, 0, P);
|
|
5268
5268
|
else if (ke === "square") {
|
|
5269
5269
|
var nr = k ? 1 : -1;
|
|
5270
|
-
this.addCurrentVertex(S, ee, nr, nr,
|
|
5271
|
-
} else ke === "round" && (k && (this.addCurrentVertex(S, V, 0, 0,
|
|
5270
|
+
this.addCurrentVertex(S, ee, nr, nr, P);
|
|
5271
|
+
} else ke === "round" && (k && (this.addCurrentVertex(S, V, 0, 0, P), this.addCurrentVertex(S, V, 1, 1, P, !0)), U && (this.addCurrentVertex(S, K, -1, -1, P, !0), this.addCurrentVertex(S, K, 0, 0, P)));
|
|
5272
5272
|
if (be && W < _ - 1) {
|
|
5273
5273
|
var rr = S.dist(U);
|
|
5274
5274
|
if (rr > 2 * T) {
|
|
5275
|
-
var
|
|
5276
|
-
this.updateDistance(S,
|
|
5275
|
+
var Qt = S.add(U.sub(S)._mult(T / rr)._round());
|
|
5276
|
+
this.updateDistance(S, Qt), this.addCurrentVertex(Qt, K, 0, 0, P), S = Qt;
|
|
5277
5277
|
}
|
|
5278
5278
|
}
|
|
5279
5279
|
}
|
|
@@ -5320,22 +5320,22 @@ var Qv = { exports: {} };
|
|
|
5320
5320
|
return l / 2 + Math.abs(c) + Er(this.paint.get("line-translate"));
|
|
5321
5321
|
}, t.prototype.queryIntersectsFeature = function(r, o, l, c, h, v, _) {
|
|
5322
5322
|
var x = Tn(r, this.paint.get("line-translate"), this.paint.get("line-translate-anchor"), v.angle, _), S = _ / 2 * Td(this.paint.get("line-width").evaluate(o, l), this.paint.get("line-gap-width").evaluate(o, l)), T = this.paint.get("line-offset").evaluate(o, l);
|
|
5323
|
-
return T && (c = function(
|
|
5324
|
-
for (var U = [], V = new fe(0, 0), K = 0; K <
|
|
5325
|
-
for (var W =
|
|
5323
|
+
return T && (c = function(P, k) {
|
|
5324
|
+
for (var U = [], V = new fe(0, 0), K = 0; K < P.length; K++) {
|
|
5325
|
+
for (var W = P[K], ee = [], ie = 0; ie < W.length; ie++) {
|
|
5326
5326
|
var ae = W[ie], ue = W[ie + 1], de = ie === 0 ? V : ae.sub(W[ie - 1])._unit()._perp(), be = ie === W.length - 1 ? V : ue.sub(ae)._unit()._perp(), Te = de._add(be)._unit();
|
|
5327
5327
|
Te._mult(1 / (Te.x * be.x + Te.y * be.y)), ee.push(Te._mult(k)._add(ae));
|
|
5328
5328
|
}
|
|
5329
5329
|
U.push(ee);
|
|
5330
5330
|
}
|
|
5331
5331
|
return U;
|
|
5332
|
-
}(c, T * _)), function(
|
|
5332
|
+
}(c, T * _)), function(P, k, U) {
|
|
5333
5333
|
for (var V = 0; V < k.length; V++) {
|
|
5334
5334
|
var K = k[V];
|
|
5335
|
-
if (
|
|
5336
|
-
for (var W = 0; W < K.length; W++) if (hn(
|
|
5335
|
+
if (P.length >= 3) {
|
|
5336
|
+
for (var W = 0; W < K.length; W++) if (hn(P, K[W])) return !0;
|
|
5337
5337
|
}
|
|
5338
|
-
if (Ui(
|
|
5338
|
+
if (Ui(P, K, U)) return !0;
|
|
5339
5339
|
}
|
|
5340
5340
|
return !1;
|
|
5341
5341
|
}(x, c, S);
|
|
@@ -5357,9 +5357,9 @@ var Qv = { exports: {} };
|
|
|
5357
5357
|
}
|
|
5358
5358
|
Lr([{ name: "triangle", components: 3, type: "Uint16" }]), Lr([{ type: "Int16", name: "anchorX" }, { type: "Int16", name: "anchorY" }, { type: "Uint16", name: "glyphStartIndex" }, { type: "Uint16", name: "numGlyphs" }, { type: "Uint32", name: "vertexStartIndex" }, { type: "Uint32", name: "lineStartIndex" }, { type: "Uint32", name: "lineLength" }, { type: "Uint16", name: "segment" }, { type: "Uint16", name: "lowerSize" }, { type: "Uint16", name: "upperSize" }, { type: "Float32", name: "lineOffsetX" }, { type: "Float32", name: "lineOffsetY" }, { type: "Uint8", name: "writingMode" }, { type: "Uint8", name: "placedOrientation" }, { type: "Uint8", name: "hidden" }, { type: "Uint32", name: "crossTileID" }, { type: "Int16", name: "associatedIconIndex" }]), Lr([{ type: "Int16", name: "anchorX" }, { type: "Int16", name: "anchorY" }, { type: "Int16", name: "rightJustifiedTextSymbolIndex" }, { type: "Int16", name: "centerJustifiedTextSymbolIndex" }, { type: "Int16", name: "leftJustifiedTextSymbolIndex" }, { type: "Int16", name: "verticalPlacedTextSymbolIndex" }, { type: "Int16", name: "placedIconSymbolIndex" }, { type: "Int16", name: "verticalPlacedIconSymbolIndex" }, { type: "Uint16", name: "key" }, { type: "Uint16", name: "textBoxStartIndex" }, { type: "Uint16", name: "textBoxEndIndex" }, { type: "Uint16", name: "verticalTextBoxStartIndex" }, { type: "Uint16", name: "verticalTextBoxEndIndex" }, { type: "Uint16", name: "iconBoxStartIndex" }, { type: "Uint16", name: "iconBoxEndIndex" }, { type: "Uint16", name: "verticalIconBoxStartIndex" }, { type: "Uint16", name: "verticalIconBoxEndIndex" }, { type: "Uint16", name: "featureIndex" }, { type: "Uint16", name: "numHorizontalGlyphVertices" }, { type: "Uint16", name: "numVerticalGlyphVertices" }, { type: "Uint16", name: "numIconVertices" }, { type: "Uint16", name: "numVerticalIconVertices" }, { type: "Uint16", name: "useRuntimeCollisionCircles" }, { type: "Uint32", name: "crossTileID" }, { type: "Float32", name: "textBoxScale" }, { type: "Float32", components: 2, name: "textOffset" }, { type: "Float32", name: "collisionCircleDiameter" }]), Lr([{ type: "Float32", name: "offsetX" }]), Lr([{ type: "Int16", name: "x" }, { type: "Int16", name: "y" }, { type: "Int16", name: "tileUnitDistanceFromAnchor" }]);
|
|
5359
5359
|
var Qu = { "!": "︕", "#": "#", $: "$", "%": "%", "&": "&", "(": "︵", ")": "︶", "*": "*", "+": "+", ",": "︐", "-": "︲", ".": "・", "/": "/", ":": "︓", ";": "︔", "<": "︿", "=": "=", ">": "﹀", "?": "︖", "@": "@", "[": "﹇", "\\": "\", "]": "﹈", "^": "^", _: "︳", "`": "`", "{": "︷", "|": "―", "}": "︸", "~": "~", "¢": "¢", "£": "£", "¥": "¥", "¦": "¦", "¬": "¬", "¯": " ̄", "–": "︲", "—": "︱", "‘": "﹃", "’": "﹄", "“": "﹁", "”": "﹂", "…": "︙", "‧": "・", "₩": "₩", "、": "︑", "。": "︒", "〈": "︿", "〉": "﹀", "《": "︽", "》": "︾", "「": "﹁", "」": "﹂", "『": "﹃", "』": "﹄", "【": "︻", "】": "︼", "〔": "︹", "〕": "︺", "〖": "︗", "〗": "︘", "!": "︕", "(": "︵", ")": "︶", ",": "︐", "-": "︲", ".": "・", ":": "︓", ";": "︔", "<": "︿", ">": "﹀", "?": "︖", "[": "﹇", "]": "﹈", "_": "︳", "{": "︷", "|": "―", "}": "︸", "⦅": "︵", "⦆": "︶", "。": "︒", "「": "﹁", "」": "﹂" }, Ad = function(e, t, r, o, l) {
|
|
5360
|
-
var c, h, v = 8 * l - o - 1, _ = (1 << v) - 1, x = _ >> 1, S = -7, T = l - 1,
|
|
5361
|
-
for (T +=
|
|
5362
|
-
for (h = c & (1 << -S) - 1, c >>= -S, S += o; S > 0; h = 256 * h + e[t + T], T +=
|
|
5360
|
+
var c, h, v = 8 * l - o - 1, _ = (1 << v) - 1, x = _ >> 1, S = -7, T = l - 1, P = -1, k = e[t + T];
|
|
5361
|
+
for (T += P, c = k & (1 << -S) - 1, k >>= -S, S += v; S > 0; c = 256 * c + e[t + T], T += P, S -= 8) ;
|
|
5362
|
+
for (h = c & (1 << -S) - 1, c >>= -S, S += o; S > 0; h = 256 * h + e[t + T], T += P, S -= 8) ;
|
|
5363
5363
|
if (c === 0) c = 1 - x;
|
|
5364
5364
|
else {
|
|
5365
5365
|
if (c === _) return h ? NaN : 1 / 0 * (k ? -1 : 1);
|
|
@@ -5367,8 +5367,8 @@ var Qv = { exports: {} };
|
|
|
5367
5367
|
}
|
|
5368
5368
|
return (k ? -1 : 1) * h * Math.pow(2, c - o);
|
|
5369
5369
|
}, Ed = function(e, t, r, o, l, c) {
|
|
5370
|
-
var h, v, _, x = 8 * c - l - 1, S = (1 << x) - 1, T = S >> 1,
|
|
5371
|
-
for (t = Math.abs(t), isNaN(t) || t === 1 / 0 ? (v = isNaN(t) ? 1 : 0, h = S) : (h = Math.floor(Math.log(t) / Math.LN2), t * (_ = Math.pow(2, -h)) < 1 && (h--, _ *= 2), (t += h + T >= 1 ?
|
|
5370
|
+
var h, v, _, x = 8 * c - l - 1, S = (1 << x) - 1, T = S >> 1, P = l === 23 ? Math.pow(2, -24) - Math.pow(2, -77) : 0, k = 0, U = 1, V = t < 0 || t === 0 && 1 / t < 0 ? 1 : 0;
|
|
5371
|
+
for (t = Math.abs(t), isNaN(t) || t === 1 / 0 ? (v = isNaN(t) ? 1 : 0, h = S) : (h = Math.floor(Math.log(t) / Math.LN2), t * (_ = Math.pow(2, -h)) < 1 && (h--, _ *= 2), (t += h + T >= 1 ? P / _ : P * Math.pow(2, 1 - T)) * _ >= 2 && (h++, _ /= 2), h + T >= S ? (v = 0, h = S) : h + T >= 1 ? (v = (t * _ - 1) * Math.pow(2, l), h += T) : (v = t * Math.pow(2, T - 1) * Math.pow(2, l), h = 0)); l >= 8; e[r + k] = 255 & v, k += U, v /= 256, l -= 8) ;
|
|
5372
5372
|
for (h = h << l | v, x += l; x > 0; e[r + k] = 255 & h, k += U, h /= 256, x -= 8) ;
|
|
5373
5373
|
e[r + k - U] |= 128 * V;
|
|
5374
5374
|
}, hc = Zt;
|
|
@@ -5444,12 +5444,12 @@ var Qv = { exports: {} };
|
|
|
5444
5444
|
e.sort(function(V, K) {
|
|
5445
5445
|
return K.h - V.h;
|
|
5446
5446
|
});
|
|
5447
|
-
for (var h = [{ x: 0, y: 0, w: Math.max(Math.ceil(Math.sqrt(t / 0.95)), r), h: 1 / 0 }], v = 0, _ = 0, x = 0, S = e; x < S.length; x += 1) for (var T = S[x],
|
|
5448
|
-
var k = h[
|
|
5447
|
+
for (var h = [{ x: 0, y: 0, w: Math.max(Math.ceil(Math.sqrt(t / 0.95)), r), h: 1 / 0 }], v = 0, _ = 0, x = 0, S = e; x < S.length; x += 1) for (var T = S[x], P = h.length - 1; P >= 0; P--) {
|
|
5448
|
+
var k = h[P];
|
|
5449
5449
|
if (!(T.w > k.w || T.h > k.h)) {
|
|
5450
5450
|
if (T.x = k.x, T.y = k.y, _ = Math.max(_, T.y + T.h), v = Math.max(v, T.x + T.w), T.w === k.w && T.h === k.h) {
|
|
5451
5451
|
var U = h.pop();
|
|
5452
|
-
|
|
5452
|
+
P < h.length && (h[P] = U);
|
|
5453
5453
|
} else T.h === k.h ? (k.x += T.w, k.w -= T.w) : T.w === k.w ? (k.y += T.h, k.h -= T.h) : (h.push({ x: k.x + T.w, y: k.y, w: k.w - T.w, h: T.h }), k.y += T.h, k.h -= T.h);
|
|
5454
5454
|
break;
|
|
5455
5455
|
}
|
|
@@ -5504,9 +5504,9 @@ var Qv = { exports: {} };
|
|
|
5504
5504
|
return Pd.decode(r.subarray(o, l));
|
|
5505
5505
|
}(this.buf, t, e) : function(r, o, l) {
|
|
5506
5506
|
for (var c = "", h = o; h < l; ) {
|
|
5507
|
-
var v, _, x, S = r[h], T = null,
|
|
5508
|
-
if (h +
|
|
5509
|
-
|
|
5507
|
+
var v, _, x, S = r[h], T = null, P = S > 239 ? 4 : S > 223 ? 3 : S > 191 ? 2 : 1;
|
|
5508
|
+
if (h + P > l) break;
|
|
5509
|
+
P === 1 ? S < 128 && (T = S) : P === 2 ? (192 & (v = r[h + 1])) == 128 && (T = (31 & S) << 6 | 63 & v) <= 127 && (T = null) : P === 3 ? (_ = r[h + 2], (192 & (v = r[h + 1])) == 128 && (192 & _) == 128 && ((T = (15 & S) << 12 | (63 & v) << 6 | 63 & _) <= 2047 || T >= 55296 && T <= 57343) && (T = null)) : P === 4 && (_ = r[h + 2], x = r[h + 3], (192 & (v = r[h + 1])) == 128 && (192 & _) == 128 && (192 & x) == 128 && ((T = (15 & S) << 18 | (63 & v) << 12 | (63 & _) << 6 | 63 & x) <= 65535 || T >= 1114112) && (T = null)), T === null ? (T = 65533, P = 1) : T > 65535 && (T -= 65536, c += String.fromCharCode(T >>> 10 & 1023 | 55296), T = 56320 | 1023 & T), c += String.fromCharCode(T), h += P;
|
|
5510
5510
|
}
|
|
5511
5511
|
return c;
|
|
5512
5512
|
}(this.buf, t, e);
|
|
@@ -5703,7 +5703,7 @@ var Qv = { exports: {} };
|
|
|
5703
5703
|
bi.copy(_.data, h, { x: 0, y: 0 }, { x: x.x + 1, y: x.y + 1 }, _.data);
|
|
5704
5704
|
}
|
|
5705
5705
|
for (var S in t) {
|
|
5706
|
-
var T = t[S],
|
|
5706
|
+
var T = t[S], P = o[S].paddedRect, k = P.x + 1, U = P.y + 1, V = T.data.width, K = T.data.height;
|
|
5707
5707
|
bi.copy(T.data, h, { x: 0, y: 0 }, { x: k, y: U }, T.data), bi.copy(T.data, h, { x: 0, y: K - 1 }, { x: k, y: U - 1 }, { width: V, height: 1 }), bi.copy(T.data, h, { x: 0, y: 0 }, { x: k, y: U + K }, { width: V, height: 1 }), bi.copy(T.data, h, { x: V - 1, y: 0 }, { x: k - 1, y: U }, { width: 1, height: K }), bi.copy(T.data, h, { x: 0, y: 0 }, { x: k + V, y: U }, { width: 1, height: K });
|
|
5708
5708
|
}
|
|
5709
5709
|
this.image = h, this.iconPositions = r, this.patternPositions = o;
|
|
@@ -5735,7 +5735,7 @@ var Qv = { exports: {} };
|
|
|
5735
5735
|
var ti = function() {
|
|
5736
5736
|
this.text = "", this.sectionIndex = [], this.sections = [], this.imageSectionID = null;
|
|
5737
5737
|
};
|
|
5738
|
-
function mc(e, t, r, o, l, c, h, v, _, x, S, T,
|
|
5738
|
+
function mc(e, t, r, o, l, c, h, v, _, x, S, T, P, k, U, V) {
|
|
5739
5739
|
var K, W = ti.fromFeature(e, l);
|
|
5740
5740
|
T === Vi.vertical && W.verticalizePunctuation();
|
|
5741
5741
|
var ee = Ti.processBidirectionalText, ie = Ti.processStyledBidirectionalText;
|
|
@@ -5754,20 +5754,20 @@ var Qv = { exports: {} };
|
|
|
5754
5754
|
ke.text = Ze[0], ke.sectionIndex = Ze[1], ke.sections = W.sections, K.push(ke);
|
|
5755
5755
|
}
|
|
5756
5756
|
} else K = function(Ve, lt) {
|
|
5757
|
-
for (var it = [], _t = Ve.text, Ge = 0, wt = 0,
|
|
5758
|
-
var nr =
|
|
5757
|
+
for (var it = [], _t = Ve.text, Ge = 0, wt = 0, Yt = lt; wt < Yt.length; wt += 1) {
|
|
5758
|
+
var nr = Yt[wt];
|
|
5759
5759
|
it.push(Ve.substring(Ge, nr)), Ge = nr;
|
|
5760
5760
|
}
|
|
5761
5761
|
return Ge < _t.length && it.push(Ve.substring(Ge, _t.length)), it;
|
|
5762
5762
|
}(W, $p(W, x, c, t, o, k, U));
|
|
5763
5763
|
var ot = [], Je = { positionedLines: ot, text: W.toString(), top: S[1], bottom: S[1], left: S[0], right: S[0], writingMode: T, iconsInText: !1, verticalizable: !1 };
|
|
5764
|
-
return function(Ve, lt, it, _t, Ge, wt,
|
|
5764
|
+
return function(Ve, lt, it, _t, Ge, wt, Yt, nr, rr, Qt, ar, Pr) {
|
|
5765
5765
|
for (var Cr = 0, ri = -17, Or = 0, ii = 0, pr = nr === "right" ? 1 : nr === "left" ? 0 : 0.5, Ur = 0, ht = 0, Vt = Ge; ht < Vt.length; ht += 1) {
|
|
5766
5766
|
var Mt = Vt[ht];
|
|
5767
5767
|
Mt.trim();
|
|
5768
5768
|
var bt = Mt.getMaxScale(), hi = 24 * (bt - 1), Gr = { positionedGlyphs: [], lineOffset: 0 };
|
|
5769
5769
|
Ve.positionedLines[Ur] = Gr;
|
|
5770
|
-
var
|
|
5770
|
+
var Wt = Gr.positionedGlyphs, gr = 0;
|
|
5771
5771
|
if (Mt.length()) {
|
|
5772
5772
|
for (var Wr = 0; Wr < Mt.length(); Wr++) {
|
|
5773
5773
|
var St = Mt.getSection(Wr), Xn = Mt.getSectionIndex(Wr), Ni = Mt.getCharCode(Wr), Kn = 0, hr = null, Jn = null, dn = null, Xs = 24, Yo = !(rr === Vi.horizontal || !ar && !As(Ni) || ar && (yc[Ni] || (Da = Ni, Ae.Arabic(Da) || Ae["Arabic Supplement"](Da) || Ae["Arabic Extended-A"](Da) || Ae["Arabic Presentation Forms-A"](Da) || Ae["Arabic Presentation Forms-B"](Da))));
|
|
@@ -5789,14 +5789,14 @@ var Qv = { exports: {} };
|
|
|
5789
5789
|
}
|
|
5790
5790
|
Kn = 24 * (bt - St.scale);
|
|
5791
5791
|
}
|
|
5792
|
-
Yo ? (Ve.verticalizable = !0,
|
|
5792
|
+
Yo ? (Ve.verticalizable = !0, Wt.push({ glyph: Ni, imageName: dn, x: Cr, y: ri + Kn, vertical: Yo, scale: St.scale, fontStack: St.fontStack, sectionIndex: Xn, metrics: hr, rect: Jn }), Cr += Xs * St.scale + Qt) : (Wt.push({ glyph: Ni, imageName: dn, x: Cr, y: ri + Kn, vertical: Yo, scale: St.scale, fontStack: St.fontStack, sectionIndex: Xn, metrics: hr, rect: Jn }), Cr += hr.advance * St.scale + Qt);
|
|
5793
5793
|
}
|
|
5794
|
-
|
|
5794
|
+
Wt.length !== 0 && (Or = Math.max(Cr - Qt, Or), dx(Wt, 0, Wt.length - 1, pr, gr)), Cr = 0;
|
|
5795
5795
|
var Ec = wt * bt + gr;
|
|
5796
5796
|
Gr.lineOffset = Math.max(gr, hi), ri += Ec, ii = Math.max(Ec, ii), ++Ur;
|
|
5797
5797
|
} else ri += wt, ++Ur;
|
|
5798
5798
|
}
|
|
5799
|
-
var Da, al = ri - -17, Qs = Zp(
|
|
5799
|
+
var Da, al = ri - -17, Qs = Zp(Yt), co = Qs.horizontalAlign, eu = Qs.verticalAlign;
|
|
5800
5800
|
(function(Pc, Cc, ol, sl, kc, ul, ll, cl, Mc) {
|
|
5801
5801
|
var tu, zc = (Cc - ol) * kc;
|
|
5802
5802
|
tu = ul !== ll ? -cl * sl - -17 : (-sl * Mc + 0.5) * ll;
|
|
@@ -5805,7 +5805,7 @@ var Qv = { exports: {} };
|
|
|
5805
5805
|
iu.x += zc, iu.y += tu;
|
|
5806
5806
|
}
|
|
5807
5807
|
})(Ve.positionedLines, pr, co, eu, Or, ii, wt, al, Ge.length), Ve.top += -eu * al, Ve.bottom = Ve.top + al, Ve.left += -co * Or, Ve.right = Ve.left + Or;
|
|
5808
|
-
}(Je, t, r, o, K, h, v, _, T, x,
|
|
5808
|
+
}(Je, t, r, o, K, h, v, _, T, x, P, V), !function(Ve) {
|
|
5809
5809
|
for (var lt = 0, it = Ve; lt < it.length; lt += 1) if (it[lt].positionedGlyphs.length !== 0) return !1;
|
|
5810
5810
|
return !0;
|
|
5811
5811
|
}(ot) && Je;
|
|
@@ -5891,11 +5891,11 @@ var Qv = { exports: {} };
|
|
|
5891
5891
|
de += zd(K.getCharCode(be), Te, ie, ae, W, ue);
|
|
5892
5892
|
}
|
|
5893
5893
|
return de / Math.max(1, Math.ceil(de / ee));
|
|
5894
|
-
}(e, t, r, o, l, h), S = e.text.indexOf("") >= 0, T = 0,
|
|
5895
|
-
var k = e.getSection(
|
|
5896
|
-
if (yc[U] || (T += zd(U, k, o, l, t, h)),
|
|
5894
|
+
}(e, t, r, o, l, h), S = e.text.indexOf("") >= 0, T = 0, P = 0; P < e.length(); P++) {
|
|
5895
|
+
var k = e.getSection(P), U = e.getCharCode(P);
|
|
5896
|
+
if (yc[U] || (T += zd(U, k, o, l, t, h)), P < e.length() - 1) {
|
|
5897
5897
|
var V = !((v = U) < 11904 || !(Ae["Bopomofo Extended"](v) || Ae.Bopomofo(v) || Ae["CJK Compatibility Forms"](v) || Ae["CJK Compatibility Ideographs"](v) || Ae["CJK Compatibility"](v) || Ae["CJK Radicals Supplement"](v) || Ae["CJK Strokes"](v) || Ae["CJK Symbols and Punctuation"](v) || Ae["CJK Unified Ideographs Extension A"](v) || Ae["CJK Unified Ideographs"](v) || Ae["Enclosed CJK Letters and Months"](v) || Ae["Halfwidth and Fullwidth Forms"](v) || Ae.Hiragana(v) || Ae["Ideographic Description Characters"](v) || Ae["Kangxi Radicals"](v) || Ae["Katakana Phonetic Extensions"](v) || Ae.Katakana(v) || Ae["Vertical Forms"](v) || Ae["Yi Radicals"](v) || Ae["Yi Syllables"](v)));
|
|
5898
|
-
(Ai[U] || V || k.imageName) && _.push(Bd(
|
|
5898
|
+
(Ai[U] || V || k.imageName) && _.push(Bd(P + 1, T, x, _, fx(U, e.getCharCode(P + 1), V && S), !1));
|
|
5899
5899
|
}
|
|
5900
5900
|
}
|
|
5901
5901
|
return function K(W) {
|
|
@@ -5937,10 +5937,10 @@ var Qv = { exports: {} };
|
|
|
5937
5937
|
var _ = v.content, x = v.pixelRatio || 1;
|
|
5938
5938
|
h = [_[0] / x, _[1] / x, v.displaySize[0] - _[2] / x, v.displaySize[1] - _[3] / x];
|
|
5939
5939
|
}
|
|
5940
|
-
var S, T,
|
|
5940
|
+
var S, T, P, k, U = t.left * c, V = t.right * c;
|
|
5941
5941
|
r === "width" || r === "both" ? (k = l[0] + U - o[3], T = l[0] + V + o[1]) : T = (k = l[0] + (U + V - v.displaySize[0]) / 2) + v.displaySize[0];
|
|
5942
5942
|
var K = t.top * c, W = t.bottom * c;
|
|
5943
|
-
return r === "height" || r === "both" ? (S = l[1] + K - o[0],
|
|
5943
|
+
return r === "height" || r === "both" ? (S = l[1] + K - o[0], P = l[1] + W + o[2]) : P = (S = l[1] + (K + W - v.displaySize[1]) / 2) + v.displaySize[1], { image: v, top: S, right: T, bottom: P, left: k, collisionPadding: h };
|
|
5944
5944
|
}
|
|
5945
5945
|
Ai[10] = !0, Ai[32] = !0, Ai[38] = !0, Ai[40] = !0, Ai[41] = !0, Ai[43] = !0, Ai[45] = !0, Ai[47] = !0, Ai[173] = !0, Ai[183] = !0, Ai[8203] = !0, Ai[8208] = !0, Ai[8211] = !0, Ai[8231] = !0;
|
|
5946
5946
|
var qs = function(e) {
|
|
@@ -5986,8 +5986,8 @@ var Qv = { exports: {} };
|
|
|
5986
5986
|
for (var _ = [], x = 0; v < r / 2; ) {
|
|
5987
5987
|
var S = e[h], T = e[h + 1];
|
|
5988
5988
|
if (!T) return !1;
|
|
5989
|
-
var
|
|
5990
|
-
for (
|
|
5989
|
+
var P = e[h - 1].angleTo(S) - S.angleTo(T);
|
|
5990
|
+
for (P = Math.abs((P + 3 * Math.PI) % (2 * Math.PI) - Math.PI), _.push({ distance: v, angleDelta: P }), x += P; v - _[0].distance > o; ) x -= _.shift().angleDelta;
|
|
5991
5991
|
if (x > l) return !1;
|
|
5992
5992
|
h++, v += S.dist(T);
|
|
5993
5993
|
}
|
|
@@ -6005,16 +6005,16 @@ var Qv = { exports: {} };
|
|
|
6005
6005
|
}
|
|
6006
6006
|
function yx(e, t, r, o, l, c) {
|
|
6007
6007
|
for (var h = Vd(r, l, c), v = Nd(r, o) * c, _ = 0, x = Ud(e) / 2, S = 0; S < e.length - 1; S++) {
|
|
6008
|
-
var T = e[S],
|
|
6008
|
+
var T = e[S], P = e[S + 1], k = T.dist(P);
|
|
6009
6009
|
if (_ + k > x) {
|
|
6010
|
-
var U = (x - _) / k, V = yr(T.x,
|
|
6010
|
+
var U = (x - _) / k, V = yr(T.x, P.x, U), K = yr(T.y, P.y, U), W = new qs(V, K, P.angleTo(T), S);
|
|
6011
6011
|
return W._round(), !h || Od(e, W, v, h, t) ? W : void 0;
|
|
6012
6012
|
}
|
|
6013
6013
|
_ += k;
|
|
6014
6014
|
}
|
|
6015
6015
|
}
|
|
6016
6016
|
function vx(e, t, r, o, l, c, h, v, _) {
|
|
6017
|
-
var x = Vd(o, c, h), S = Nd(o, l), T = S * h,
|
|
6017
|
+
var x = Vd(o, c, h), S = Nd(o, l), T = S * h, P = e[0].x === 0 || e[0].x === _ || e[0].y === 0 || e[0].y === _;
|
|
6018
6018
|
return t - T < t / 4 && (t = T + t / 4), function k(U, V, K, W, ee, ie, ae, ue, de) {
|
|
6019
6019
|
for (var be = ie / 2, Te = Ud(U), qe = 0, Pe = V - K, Ze = [], ke = 0; ke < U.length - 1; ke++) {
|
|
6020
6020
|
for (var ot = U[ke], Je = U[ke + 1], Ve = ot.dist(Je), lt = Je.angleTo(ot); Pe + K < qe + Ve; ) {
|
|
@@ -6027,7 +6027,7 @@ var Qv = { exports: {} };
|
|
|
6027
6027
|
qe += Ve;
|
|
6028
6028
|
}
|
|
6029
6029
|
return ue || Ze.length || ae || (Ze = k(U, qe / 2, K, W, ee, ie, ae, !0, de)), Ze;
|
|
6030
|
-
}(e,
|
|
6030
|
+
}(e, P ? t / 2 * v % t : (S / 2 + 2 * c) * h * v % t, t, x, r, T, P, !1, _);
|
|
6031
6031
|
}
|
|
6032
6032
|
function qd(e, t, r, o, l) {
|
|
6033
6033
|
for (var c = [], h = 0; h < e.length; h++) for (var v = e[h], _ = void 0, x = 0; x < v.length - 1; x++) {
|
|
@@ -6037,23 +6037,23 @@ var Qv = { exports: {} };
|
|
|
6037
6037
|
return c;
|
|
6038
6038
|
}
|
|
6039
6039
|
function jd(e, t, r, o) {
|
|
6040
|
-
var l = [], c = e.image, h = c.pixelRatio, v = c.paddedRect.w - 2, _ = c.paddedRect.h - 2, x = e.right - e.left, S = e.bottom - e.top, T = c.stretchX || [[0, v]],
|
|
6040
|
+
var l = [], c = e.image, h = c.pixelRatio, v = c.paddedRect.w - 2, _ = c.paddedRect.h - 2, x = e.right - e.left, S = e.bottom - e.top, T = c.stretchX || [[0, v]], P = c.stretchY || [[0, _]], k = function(_t, Ge) {
|
|
6041
6041
|
return _t + Ge[1] - Ge[0];
|
|
6042
|
-
}, U = T.reduce(k, 0), V =
|
|
6042
|
+
}, U = T.reduce(k, 0), V = P.reduce(k, 0), K = v - U, W = _ - V, ee = 0, ie = U, ae = 0, ue = V, de = 0, be = K, Te = 0, qe = W;
|
|
6043
6043
|
if (c.content && o) {
|
|
6044
6044
|
var Pe = c.content;
|
|
6045
|
-
ee = vc(T, 0, Pe[0]), ae = vc(
|
|
6045
|
+
ee = vc(T, 0, Pe[0]), ae = vc(P, 0, Pe[1]), ie = vc(T, Pe[0], Pe[2]), ue = vc(P, Pe[1], Pe[3]), de = Pe[0] - ee, Te = Pe[1] - ae, be = Pe[2] - Pe[0] - ie, qe = Pe[3] - Pe[1] - ue;
|
|
6046
6046
|
}
|
|
6047
|
-
var Ze = function(_t, Ge, wt,
|
|
6048
|
-
var nr = gc(_t.stretch - ee, ie, x, e.left), rr = _c(_t.fixed - de, be, _t.stretch, U),
|
|
6047
|
+
var Ze = function(_t, Ge, wt, Yt) {
|
|
6048
|
+
var nr = gc(_t.stretch - ee, ie, x, e.left), rr = _c(_t.fixed - de, be, _t.stretch, U), Qt = gc(Ge.stretch - ae, ue, S, e.top), ar = _c(Ge.fixed - Te, qe, Ge.stretch, V), Pr = gc(wt.stretch - ee, ie, x, e.left), Cr = _c(wt.fixed - de, be, wt.stretch, U), ri = gc(Yt.stretch - ae, ue, S, e.top), Or = _c(Yt.fixed - Te, qe, Yt.stretch, V), ii = new fe(nr, Qt), pr = new fe(Pr, Qt), Ur = new fe(Pr, ri), ht = new fe(nr, ri), Vt = new fe(rr / h, ar / h), Mt = new fe(Cr / h, Or / h), bt = t * Math.PI / 180;
|
|
6049
6049
|
if (bt) {
|
|
6050
|
-
var hi = Math.sin(bt), Gr = Math.cos(bt),
|
|
6051
|
-
ii._matMult(
|
|
6050
|
+
var hi = Math.sin(bt), Gr = Math.cos(bt), Wt = [Gr, -hi, hi, Gr];
|
|
6051
|
+
ii._matMult(Wt), pr._matMult(Wt), ht._matMult(Wt), Ur._matMult(Wt);
|
|
6052
6052
|
}
|
|
6053
6053
|
var gr = _t.stretch + _t.fixed, Wr = Ge.stretch + Ge.fixed;
|
|
6054
|
-
return { tl: ii, tr: pr, bl: ht, br: Ur, tex: { x: c.paddedRect.x + 1 + gr, y: c.paddedRect.y + 1 + Wr, w: wt.stretch + wt.fixed - gr, h:
|
|
6054
|
+
return { tl: ii, tr: pr, bl: ht, br: Ur, tex: { x: c.paddedRect.x + 1 + gr, y: c.paddedRect.y + 1 + Wr, w: wt.stretch + wt.fixed - gr, h: Yt.stretch + Yt.fixed - Wr }, writingMode: void 0, glyphOffset: [0, 0], sectionIndex: 0, pixelOffsetTL: Vt, pixelOffsetBR: Mt, minFontScaleX: be / h / x, minFontScaleY: qe / h / S, isSDF: r };
|
|
6055
6055
|
};
|
|
6056
|
-
if (o && (c.stretchX || c.stretchY)) for (var ke = $d(T, K, U), ot = $d(
|
|
6056
|
+
if (o && (c.stretchX || c.stretchY)) for (var ke = $d(T, K, U), ot = $d(P, W, V), Je = 0; Je < ke.length - 1; Je++) for (var Ve = ke[Je], lt = ke[Je + 1], it = 0; it < ot.length - 1; it++) l.push(Ze(Ve, ot[it], lt, ot[it + 1]));
|
|
6057
6057
|
else l.push(Ze({ fixed: 0, stretch: -1 }, { fixed: 0, stretch: -1 }, { fixed: 0, stretch: v + 1 }, { fixed: 0, stretch: _ + 1 }));
|
|
6058
6058
|
return l;
|
|
6059
6059
|
}
|
|
@@ -6079,8 +6079,8 @@ var Qv = { exports: {} };
|
|
|
6079
6079
|
}
|
|
6080
6080
|
var xc = function(e, t, r, o, l, c, h, v, _, x) {
|
|
6081
6081
|
if (this.boxStartIndex = e.length, _) {
|
|
6082
|
-
var S = c.top, T = c.bottom,
|
|
6083
|
-
|
|
6082
|
+
var S = c.top, T = c.bottom, P = c.collisionPadding;
|
|
6083
|
+
P && (S -= P[1], T += P[3]);
|
|
6084
6084
|
var k = T - S;
|
|
6085
6085
|
k > 0 && (k = Math.max(10, k), this.circleDiameter = k);
|
|
6086
6086
|
} else {
|
|
@@ -6104,18 +6104,18 @@ var Qv = { exports: {} };
|
|
|
6104
6104
|
var x = v[_];
|
|
6105
6105
|
(!_ || x.x < o) && (o = x.x), (!_ || x.y < l) && (l = x.y), (!_ || x.x > c) && (c = x.x), (!_ || x.y > h) && (h = x.y);
|
|
6106
6106
|
}
|
|
6107
|
-
var S = Math.min(c - o, h - l), T = S / 2,
|
|
6107
|
+
var S = Math.min(c - o, h - l), T = S / 2, P = new js([], xx);
|
|
6108
6108
|
if (S === 0) return new fe(o, l);
|
|
6109
|
-
for (var k = o; k < c; k += S) for (var U = l; U < h; U += S)
|
|
6109
|
+
for (var k = o; k < c; k += S) for (var U = l; U < h; U += S) P.push(new $s(k + T, U + T, T, e));
|
|
6110
6110
|
for (var V = function(ee) {
|
|
6111
6111
|
for (var ie = 0, ae = 0, ue = 0, de = ee[0], be = 0, Te = de.length, qe = Te - 1; be < Te; qe = be++) {
|
|
6112
6112
|
var Pe = de[be], Ze = de[qe], ke = Pe.x * Ze.y - Ze.x * Pe.y;
|
|
6113
6113
|
ae += (Pe.x + Ze.x) * ke, ue += (Pe.y + Ze.y) * ke, ie += 3 * ke;
|
|
6114
6114
|
}
|
|
6115
6115
|
return new $s(ae / ie, ue / ie, 0, ee);
|
|
6116
|
-
}(e), K =
|
|
6117
|
-
var W =
|
|
6118
|
-
(W.d > V.d || !V.d) && (V = W, r && console.log("found best %d after %d probes", Math.round(1e4 * W.d) / 1e4, K)), W.max - V.d <= t || (
|
|
6116
|
+
}(e), K = P.length; P.length; ) {
|
|
6117
|
+
var W = P.pop();
|
|
6118
|
+
(W.d > V.d || !V.d) && (V = W, r && console.log("found best %d after %d probes", Math.round(1e4 * W.d) / 1e4, K)), W.max - V.d <= t || (P.push(new $s(W.p.x - (T = W.h / 2), W.p.y - T, T, e)), P.push(new $s(W.p.x + T, W.p.y - T, T, e)), P.push(new $s(W.p.x - T, W.p.y + T, T, e)), P.push(new $s(W.p.x + T, W.p.y + T, T, e)), K += 4);
|
|
6119
6119
|
}
|
|
6120
6120
|
return r && (console.log("num probes: " + K), console.log("best distance: " + V.d)), V.p;
|
|
6121
6121
|
}
|
|
@@ -6124,8 +6124,8 @@ var Qv = { exports: {} };
|
|
|
6124
6124
|
}
|
|
6125
6125
|
function $s(e, t, r, o) {
|
|
6126
6126
|
this.p = new fe(e, t), this.h = r, this.d = function(l, c) {
|
|
6127
|
-
for (var h = !1, v = 1 / 0, _ = 0; _ < c.length; _++) for (var x = c[_], S = 0, T = x.length,
|
|
6128
|
-
var k = x[S], U = x[
|
|
6127
|
+
for (var h = !1, v = 1 / 0, _ = 0; _ < c.length; _++) for (var x = c[_], S = 0, T = x.length, P = T - 1; S < T; P = S++) {
|
|
6128
|
+
var k = x[S], U = x[P];
|
|
6129
6129
|
k.y > l.y != U.y > l.y && l.x < (U.x - k.x) * (l.y - k.y) / (U.y - k.y) + k.x && (h = !h), v = Math.min(v, oo(l, k, U));
|
|
6130
6130
|
}
|
|
6131
6131
|
return (h ? 1 : -1) * Math.sqrt(v);
|
|
@@ -6232,22 +6232,22 @@ var Qv = { exports: {} };
|
|
|
6232
6232
|
}
|
|
6233
6233
|
return "center";
|
|
6234
6234
|
}
|
|
6235
|
-
function Gd(e, t, r, o, l, c, h, v, _, x, S, T,
|
|
6235
|
+
function Gd(e, t, r, o, l, c, h, v, _, x, S, T, P, k, U) {
|
|
6236
6236
|
var V = function(ae, ue, de, be, Te, qe, Pe, Ze) {
|
|
6237
6237
|
for (var ke = be.layout.get("text-rotate").evaluate(qe, {}) * Math.PI / 180, ot = [], Je = 0, Ve = ue.positionedLines; Je < Ve.length; Je += 1) for (var lt = Ve[Je], it = 0, _t = lt.positionedGlyphs; it < _t.length; it += 1) {
|
|
6238
6238
|
var Ge = _t[it];
|
|
6239
6239
|
if (Ge.rect) {
|
|
6240
|
-
var wt = Ge.rect || {},
|
|
6241
|
-
if (Ze && ue.verticalizable && (
|
|
6240
|
+
var wt = Ge.rect || {}, Yt = 4, nr = !0, rr = 1, Qt = 0, ar = (Te || Ze) && Ge.vertical, Pr = Ge.metrics.advance * Ge.scale / 2;
|
|
6241
|
+
if (Ze && ue.verticalizable && (Qt = lt.lineOffset / 2 - (Ge.imageName ? -(24 - Ge.metrics.width * Ge.scale) / 2 : 24 * (Ge.scale - 1))), Ge.imageName) {
|
|
6242
6242
|
var Cr = Pe[Ge.imageName];
|
|
6243
|
-
nr = Cr.sdf,
|
|
6243
|
+
nr = Cr.sdf, Yt = 1 / (rr = Cr.pixelRatio);
|
|
6244
6244
|
}
|
|
6245
|
-
var ri = Te ? [Ge.x + Pr, Ge.y] : [0, 0], Or = Te ? [0, 0] : [Ge.x + Pr + de[0], Ge.y + de[1] -
|
|
6245
|
+
var ri = Te ? [Ge.x + Pr, Ge.y] : [0, 0], Or = Te ? [0, 0] : [Ge.x + Pr + de[0], Ge.y + de[1] - Qt], ii = [0, 0];
|
|
6246
6246
|
ar && (ii = Or, Or = [0, 0]);
|
|
6247
|
-
var pr = (Ge.metrics.left -
|
|
6247
|
+
var pr = (Ge.metrics.left - Yt) * Ge.scale - Pr + Or[0], Ur = (-Ge.metrics.top - Yt) * Ge.scale + Or[1], ht = pr + wt.w * Ge.scale / rr, Vt = Ur + wt.h * Ge.scale / rr, Mt = new fe(pr, Ur), bt = new fe(ht, Ur), hi = new fe(pr, Vt), Gr = new fe(ht, Vt);
|
|
6248
6248
|
if (ar) {
|
|
6249
|
-
var
|
|
6250
|
-
Mt._rotateAround(gr,
|
|
6249
|
+
var Wt = new fe(-Pr, Pr - -17), gr = -Math.PI / 2, Wr = 12 - Pr, St = new fe(22 - Wr, -(Ge.imageName ? Wr : 0)), Xn = new (Function.prototype.bind.apply(fe, [null].concat(ii)))();
|
|
6250
|
+
Mt._rotateAround(gr, Wt)._add(St)._add(Xn), bt._rotateAround(gr, Wt)._add(St)._add(Xn), hi._rotateAround(gr, Wt)._add(St)._add(Xn), Gr._rotateAround(gr, Wt)._add(St)._add(Xn);
|
|
6251
6251
|
}
|
|
6252
6252
|
if (ke) {
|
|
6253
6253
|
var Ni = Math.sin(ke), Kn = Math.cos(ke), hr = [Kn, -Ni, Ni, Kn];
|
|
@@ -6259,7 +6259,7 @@ var Qv = { exports: {} };
|
|
|
6259
6259
|
}
|
|
6260
6260
|
return ot;
|
|
6261
6261
|
}(0, r, v, l, c, h, o, e.allowVerticalPlacement), K = e.textSizeData, W = null;
|
|
6262
|
-
K.kind === "source" ? (W = [128 * l.layout.get("text-size").evaluate(h, {})])[0] > 32640 && Rt(e.layerIds[0] + ': Value for "text-size" is >= 255. Reduce your "text-size".') : K.kind === "composite" && ((W = [128 * k.compositeTextSizes[0].evaluate(h, {}, U), 128 * k.compositeTextSizes[1].evaluate(h, {}, U)])[0] > 32640 || W[1] > 32640) && Rt(e.layerIds[0] + ': Value for "text-size" is >= 255. Reduce your "text-size".'), e.addSymbols(e.text, V, W, v, c, h, x, t, _.lineStartIndex, _.lineLength,
|
|
6262
|
+
K.kind === "source" ? (W = [128 * l.layout.get("text-size").evaluate(h, {})])[0] > 32640 && Rt(e.layerIds[0] + ': Value for "text-size" is >= 255. Reduce your "text-size".') : K.kind === "composite" && ((W = [128 * k.compositeTextSizes[0].evaluate(h, {}, U), 128 * k.compositeTextSizes[1].evaluate(h, {}, U)])[0] > 32640 || W[1] > 32640) && Rt(e.layerIds[0] + ': Value for "text-size" is >= 255. Reduce your "text-size".'), e.addSymbols(e.text, V, W, v, c, h, x, t, _.lineStartIndex, _.lineLength, P, U);
|
|
6263
6263
|
for (var ee = 0, ie = S; ee < ie.length; ee += 1) T[ie[ee]] = e.text.placedSymbolArray.length - 1;
|
|
6264
6264
|
return 4 * V.length;
|
|
6265
6265
|
}
|
|
@@ -6275,9 +6275,9 @@ var Qv = { exports: {} };
|
|
|
6275
6275
|
return l[t].push(o), !1;
|
|
6276
6276
|
}
|
|
6277
6277
|
var wx = Os.VectorTileFeature.types, Sx = [{ name: "a_fade_opacity", components: 1, type: "Uint8", offset: 0 }];
|
|
6278
|
-
function bc(e, t, r, o, l, c, h, v, _, x, S, T,
|
|
6278
|
+
function bc(e, t, r, o, l, c, h, v, _, x, S, T, P) {
|
|
6279
6279
|
var k = v ? Math.min(32640, Math.round(v[0])) : 0, U = v ? Math.min(32640, Math.round(v[1])) : 0;
|
|
6280
|
-
e.emplaceBack(t, r, Math.round(32 * o), Math.round(32 * l), c, h, (k << 1) + (_ ? 1 : 0), U, 16 * x, 16 * S, 256 * T, 256 *
|
|
6280
|
+
e.emplaceBack(t, r, Math.round(32 * o), Math.round(32 * l), c, h, (k << 1) + (_ ? 1 : 0), U, 16 * x, 16 * S, 256 * T, 256 * P);
|
|
6281
6281
|
}
|
|
6282
6282
|
function Xp(e, t, r) {
|
|
6283
6283
|
e.emplaceBack(t.x, t.y, r), e.emplaceBack(t.x, t.y, r), e.emplaceBack(t.x, t.y, r), e.emplaceBack(t.x, t.y, r);
|
|
@@ -6333,7 +6333,7 @@ var Qv = { exports: {} };
|
|
|
6333
6333
|
}, Dt.prototype.populate = function(e, t, r) {
|
|
6334
6334
|
var o = this.layers[0], l = o.layout, c = l.get("text-font"), h = l.get("text-field"), v = l.get("icon-image"), _ = (h.value.kind !== "constant" || h.value.value instanceof Dr && !h.value.value.isEmpty() || h.value.value.toString().length > 0) && (c.value.kind !== "constant" || c.value.value.length > 0), x = v.value.kind !== "constant" || !!v.value.value || Object.keys(v.parameters).length > 0, S = l.get("symbol-sort-key");
|
|
6335
6335
|
if (this.features = [], _ || x) {
|
|
6336
|
-
for (var T = t.iconDependencies,
|
|
6336
|
+
for (var T = t.iconDependencies, P = t.glyphDependencies, k = t.availableImages, U = new pt(this.zoom), V = 0, K = e; V < K.length; V += 1) {
|
|
6337
6337
|
var W = K[V], ee = W.feature, ie = W.id, ae = W.index, ue = W.sourceLayerIndex, de = o._featureFilter.needGeometry, be = cr(ee, de);
|
|
6338
6338
|
if (o._featureFilter.filter(U, be, r)) {
|
|
6339
6339
|
de || (be.geometry = tr(ee));
|
|
@@ -6356,8 +6356,8 @@ var Qv = { exports: {} };
|
|
|
6356
6356
|
var _t = it[lt];
|
|
6357
6357
|
if (_t.image) T[_t.image.name] = !0;
|
|
6358
6358
|
else {
|
|
6359
|
-
var Ge = Fu(Te.toString()), wt = _t.fontStack || Je,
|
|
6360
|
-
this.calculateGlyphDependencies(_t.text,
|
|
6359
|
+
var Ge = Fu(Te.toString()), wt = _t.fontStack || Je, Yt = P[wt] = P[wt] || {};
|
|
6360
|
+
this.calculateGlyphDependencies(_t.text, Yt, Ve, this.allowVerticalPlacement, Ge);
|
|
6361
6361
|
}
|
|
6362
6362
|
}
|
|
6363
6363
|
}
|
|
@@ -6365,34 +6365,34 @@ var Qv = { exports: {} };
|
|
|
6365
6365
|
}
|
|
6366
6366
|
}
|
|
6367
6367
|
l.get("symbol-placement") === "line" && (this.features = function(nr) {
|
|
6368
|
-
var rr = {},
|
|
6369
|
-
function Cr(
|
|
6370
|
-
ar.push(nr[
|
|
6368
|
+
var rr = {}, Qt = {}, ar = [], Pr = 0;
|
|
6369
|
+
function Cr(Wt) {
|
|
6370
|
+
ar.push(nr[Wt]), Pr++;
|
|
6371
6371
|
}
|
|
6372
|
-
function ri(
|
|
6373
|
-
var St =
|
|
6374
|
-
return delete
|
|
6372
|
+
function ri(Wt, gr, Wr) {
|
|
6373
|
+
var St = Qt[Wt];
|
|
6374
|
+
return delete Qt[Wt], Qt[gr] = St, ar[St].geometry[0].pop(), ar[St].geometry[0] = ar[St].geometry[0].concat(Wr[0]), St;
|
|
6375
6375
|
}
|
|
6376
|
-
function Or(
|
|
6376
|
+
function Or(Wt, gr, Wr) {
|
|
6377
6377
|
var St = rr[gr];
|
|
6378
|
-
return delete rr[gr], rr[
|
|
6378
|
+
return delete rr[gr], rr[Wt] = St, ar[St].geometry[0].shift(), ar[St].geometry[0] = Wr[0].concat(ar[St].geometry[0]), St;
|
|
6379
6379
|
}
|
|
6380
|
-
function ii(
|
|
6380
|
+
function ii(Wt, gr, Wr) {
|
|
6381
6381
|
var St = Wr ? gr[0][gr[0].length - 1] : gr[0][0];
|
|
6382
|
-
return
|
|
6382
|
+
return Wt + ":" + St.x + ":" + St.y;
|
|
6383
6383
|
}
|
|
6384
6384
|
for (var pr = 0; pr < nr.length; pr++) {
|
|
6385
6385
|
var Ur = nr[pr], ht = Ur.geometry, Vt = Ur.text ? Ur.text.toString() : null;
|
|
6386
6386
|
if (Vt) {
|
|
6387
6387
|
var Mt = ii(Vt, ht), bt = ii(Vt, ht, !0);
|
|
6388
|
-
if (Mt in
|
|
6388
|
+
if (Mt in Qt && bt in rr && Qt[Mt] !== rr[bt]) {
|
|
6389
6389
|
var hi = Or(Mt, bt, ht), Gr = ri(Mt, bt, ar[hi].geometry);
|
|
6390
|
-
delete rr[Mt], delete
|
|
6391
|
-
} else Mt in
|
|
6390
|
+
delete rr[Mt], delete Qt[bt], Qt[ii(Vt, ar[Gr].geometry, !0)] = Gr, ar[hi].geometry = null;
|
|
6391
|
+
} else Mt in Qt ? ri(Mt, bt, ht) : bt in rr ? Or(Mt, bt, ht) : (Cr(pr), rr[Mt] = Pr - 1, Qt[bt] = Pr - 1);
|
|
6392
6392
|
} else Cr(pr);
|
|
6393
6393
|
}
|
|
6394
|
-
return ar.filter(function(
|
|
6395
|
-
return
|
|
6394
|
+
return ar.filter(function(Wt) {
|
|
6395
|
+
return Wt.geometry;
|
|
6396
6396
|
});
|
|
6397
6397
|
}(this.features)), this.sortFeaturesByKey && this.features.sort(function(nr, rr) {
|
|
6398
6398
|
return nr.sortKey - rr.sortKey;
|
|
@@ -6422,16 +6422,16 @@ var Qv = { exports: {} };
|
|
|
6422
6422
|
}
|
|
6423
6423
|
return { lineStartIndex: r, lineLength: this.lineVertexArray.length - r };
|
|
6424
6424
|
}, Dt.prototype.addSymbols = function(e, t, r, o, l, c, h, v, _, x, S, T) {
|
|
6425
|
-
for (var
|
|
6425
|
+
for (var P = e.indexArray, k = e.layoutVertexArray, U = e.segments.prepareSegment(4 * t.length, k, P, this.canOverlap ? c.sortKey : void 0), V = this.glyphOffsetArray.length, K = U.vertexLength, W = this.allowVerticalPlacement && h === Vi.vertical ? Math.PI / 2 : 0, ee = c.text && c.text.sections, ie = 0; ie < t.length; ie++) {
|
|
6426
6426
|
var ae = t[ie], ue = ae.tl, de = ae.tr, be = ae.bl, Te = ae.br, qe = ae.tex, Pe = ae.pixelOffsetTL, Ze = ae.pixelOffsetBR, ke = ae.minFontScaleX, ot = ae.minFontScaleY, Je = ae.glyphOffset, Ve = ae.isSDF, lt = ae.sectionIndex, it = U.vertexLength, _t = Je[1];
|
|
6427
|
-
bc(k, v.x, v.y, ue.x, _t + ue.y, qe.x, qe.y, r, Ve, Pe.x, Pe.y, ke, ot), bc(k, v.x, v.y, de.x, _t + de.y, qe.x + qe.w, qe.y, r, Ve, Ze.x, Pe.y, ke, ot), bc(k, v.x, v.y, be.x, _t + be.y, qe.x, qe.y + qe.h, r, Ve, Pe.x, Ze.y, ke, ot), bc(k, v.x, v.y, Te.x, _t + Te.y, qe.x + qe.w, qe.y + qe.h, r, Ve, Ze.x, Ze.y, ke, ot), Xp(e.dynamicLayoutVertexArray, v, W),
|
|
6427
|
+
bc(k, v.x, v.y, ue.x, _t + ue.y, qe.x, qe.y, r, Ve, Pe.x, Pe.y, ke, ot), bc(k, v.x, v.y, de.x, _t + de.y, qe.x + qe.w, qe.y, r, Ve, Ze.x, Pe.y, ke, ot), bc(k, v.x, v.y, be.x, _t + be.y, qe.x, qe.y + qe.h, r, Ve, Pe.x, Ze.y, ke, ot), bc(k, v.x, v.y, Te.x, _t + Te.y, qe.x + qe.w, qe.y + qe.h, r, Ve, Ze.x, Ze.y, ke, ot), Xp(e.dynamicLayoutVertexArray, v, W), P.emplaceBack(it, it + 1, it + 2), P.emplaceBack(it + 1, it + 2, it + 3), U.vertexLength += 4, U.primitiveLength += 2, this.glyphOffsetArray.emplaceBack(Je[0]), ie !== t.length - 1 && lt === t[ie + 1].sectionIndex || e.programConfigurations.populatePaintArrays(k.length, c, c.index, {}, T, ee && ee[lt]);
|
|
6428
6428
|
}
|
|
6429
6429
|
e.placedSymbolArray.emplaceBack(v.x, v.y, V, this.glyphOffsetArray.length - V, K, _, x, v.segment, r ? r[0] : 0, r ? r[1] : 0, o[0], o[1], h, 0, !1, 0, S);
|
|
6430
6430
|
}, Dt.prototype._addCollisionDebugVertex = function(e, t, r, o, l, c) {
|
|
6431
6431
|
return t.emplaceBack(0, 0), e.emplaceBack(r.x, r.y, o, l, Math.round(c.x), Math.round(c.y));
|
|
6432
6432
|
}, Dt.prototype.addCollisionDebugVertices = function(e, t, r, o, l, c, h) {
|
|
6433
|
-
var v = l.segments.prepareSegment(4, l.layoutVertexArray, l.indexArray), _ = v.vertexLength, x = l.layoutVertexArray, S = l.collisionVertexArray, T = h.anchorX,
|
|
6434
|
-
this._addCollisionDebugVertex(x, S, c, T,
|
|
6433
|
+
var v = l.segments.prepareSegment(4, l.layoutVertexArray, l.indexArray), _ = v.vertexLength, x = l.layoutVertexArray, S = l.collisionVertexArray, T = h.anchorX, P = h.anchorY;
|
|
6434
|
+
this._addCollisionDebugVertex(x, S, c, T, P, new fe(e, t)), this._addCollisionDebugVertex(x, S, c, T, P, new fe(r, t)), this._addCollisionDebugVertex(x, S, c, T, P, new fe(r, o)), this._addCollisionDebugVertex(x, S, c, T, P, new fe(e, o)), v.vertexLength += 4;
|
|
6435
6435
|
var k = l.indexArray;
|
|
6436
6436
|
k.emplaceBack(_, _ + 1), k.emplaceBack(_ + 1, _ + 2), k.emplaceBack(_ + 2, _ + 3), k.emplaceBack(_ + 3, _), v.primitiveLength += 4;
|
|
6437
6437
|
}, Dt.prototype.addDebugCollisionBoxes = function(e, t, r, o) {
|
|
@@ -6451,8 +6451,8 @@ var Qv = { exports: {} };
|
|
|
6451
6451
|
x.textBox = { x1: T.x1, y1: T.y1, x2: T.x2, y2: T.y2, anchorPointX: T.anchorPointX, anchorPointY: T.anchorPointY }, x.textFeatureIndex = T.featureIndex;
|
|
6452
6452
|
break;
|
|
6453
6453
|
}
|
|
6454
|
-
for (var
|
|
6455
|
-
var k = e.get(
|
|
6454
|
+
for (var P = o; P < l; P++) {
|
|
6455
|
+
var k = e.get(P);
|
|
6456
6456
|
x.verticalTextBox = { x1: k.x1, y1: k.y1, x2: k.x2, y2: k.y2, anchorPointX: k.anchorPointX, anchorPointY: k.anchorPointY }, x.verticalTextFeatureIndex = k.featureIndex;
|
|
6457
6457
|
break;
|
|
6458
6458
|
}
|
|
@@ -6572,7 +6572,7 @@ var Qv = { exports: {} };
|
|
|
6572
6572
|
return !(!this.layout || o.isDataDriven() || l.isDataDriven()) && t.hasPaintOverride(this.layout, r);
|
|
6573
6573
|
}, t.hasPaintOverride = function(r, o) {
|
|
6574
6574
|
var l = r.get("text-field"), c = Kp.paint.properties[o], h = !1, v = function(S) {
|
|
6575
|
-
for (var T = 0,
|
|
6575
|
+
for (var T = 0, P = S; T < P.length; T += 1) if (c.overrides && c.overrides.hasOverride(P[T])) return void (h = !0);
|
|
6576
6576
|
};
|
|
6577
6577
|
if (l.value.kind === "constant" && l.value.value instanceof Dr) v(l.value.value.sections);
|
|
6578
6578
|
else if (l.value.kind === "source") {
|
|
@@ -6697,27 +6697,27 @@ var Qv = { exports: {} };
|
|
|
6697
6697
|
e && (t ? this.setSouthWest(e).setNorthEast(t) : e.length === 4 ? this.setSouthWest([e[0], e[1]]).setNorthEast([e[2], e[3]]) : this.setSouthWest(e[0]).setNorthEast(e[1]));
|
|
6698
6698
|
};
|
|
6699
6699
|
br.prototype.setNorthEast = function(e) {
|
|
6700
|
-
return this._ne = e instanceof
|
|
6700
|
+
return this._ne = e instanceof Jt ? new Jt(e.lng, e.lat) : Jt.convert(e), this;
|
|
6701
6701
|
}, br.prototype.setSouthWest = function(e) {
|
|
6702
|
-
return this._sw = e instanceof
|
|
6702
|
+
return this._sw = e instanceof Jt ? new Jt(e.lng, e.lat) : Jt.convert(e), this;
|
|
6703
6703
|
}, br.prototype.extend = function(e) {
|
|
6704
6704
|
var t, r, o = this._sw, l = this._ne;
|
|
6705
|
-
if (e instanceof
|
|
6705
|
+
if (e instanceof Jt) t = e, r = e;
|
|
6706
6706
|
else {
|
|
6707
|
-
if (!(e instanceof br)) return Array.isArray(e) ? e.length === 4 || e.every(Array.isArray) ? this.extend(br.convert(e)) : this.extend(
|
|
6707
|
+
if (!(e instanceof br)) return Array.isArray(e) ? e.length === 4 || e.every(Array.isArray) ? this.extend(br.convert(e)) : this.extend(Jt.convert(e)) : this;
|
|
6708
6708
|
if (r = e._ne, !(t = e._sw) || !r) return this;
|
|
6709
6709
|
}
|
|
6710
|
-
return o || l ? (o.lng = Math.min(t.lng, o.lng), o.lat = Math.min(t.lat, o.lat), l.lng = Math.max(r.lng, l.lng), l.lat = Math.max(r.lat, l.lat)) : (this._sw = new
|
|
6710
|
+
return o || l ? (o.lng = Math.min(t.lng, o.lng), o.lat = Math.min(t.lat, o.lat), l.lng = Math.max(r.lng, l.lng), l.lat = Math.max(r.lat, l.lat)) : (this._sw = new Jt(t.lng, t.lat), this._ne = new Jt(r.lng, r.lat)), this;
|
|
6711
6711
|
}, br.prototype.getCenter = function() {
|
|
6712
|
-
return new
|
|
6712
|
+
return new Jt((this._sw.lng + this._ne.lng) / 2, (this._sw.lat + this._ne.lat) / 2);
|
|
6713
6713
|
}, br.prototype.getSouthWest = function() {
|
|
6714
6714
|
return this._sw;
|
|
6715
6715
|
}, br.prototype.getNorthEast = function() {
|
|
6716
6716
|
return this._ne;
|
|
6717
6717
|
}, br.prototype.getNorthWest = function() {
|
|
6718
|
-
return new
|
|
6718
|
+
return new Jt(this.getWest(), this.getNorth());
|
|
6719
6719
|
}, br.prototype.getSouthEast = function() {
|
|
6720
|
-
return new
|
|
6720
|
+
return new Jt(this.getEast(), this.getSouth());
|
|
6721
6721
|
}, br.prototype.getWest = function() {
|
|
6722
6722
|
return this._sw.lng;
|
|
6723
6723
|
}, br.prototype.getSouth = function() {
|
|
@@ -6733,32 +6733,32 @@ var Qv = { exports: {} };
|
|
|
6733
6733
|
}, br.prototype.isEmpty = function() {
|
|
6734
6734
|
return !(this._sw && this._ne);
|
|
6735
6735
|
}, br.prototype.contains = function(e) {
|
|
6736
|
-
var t =
|
|
6736
|
+
var t = Jt.convert(e), r = t.lng, o = t.lat, l = this._sw.lng <= r && r <= this._ne.lng;
|
|
6737
6737
|
return this._sw.lng > this._ne.lng && (l = this._sw.lng >= r && r >= this._ne.lng), this._sw.lat <= o && o <= this._ne.lat && l;
|
|
6738
6738
|
}, br.convert = function(e) {
|
|
6739
6739
|
return !e || e instanceof br ? e : new br(e);
|
|
6740
6740
|
};
|
|
6741
|
-
var
|
|
6741
|
+
var Jt = function(e, t) {
|
|
6742
6742
|
if (isNaN(e) || isNaN(t)) throw new Error("Invalid LngLat object: (" + e + ", " + t + ")");
|
|
6743
6743
|
if (this.lng = +e, this.lat = +t, this.lat > 90 || this.lat < -90) throw new Error("Invalid LngLat latitude value: must be between -90 and 90");
|
|
6744
6744
|
};
|
|
6745
|
-
|
|
6746
|
-
return new
|
|
6747
|
-
},
|
|
6745
|
+
Jt.prototype.wrap = function() {
|
|
6746
|
+
return new Jt(Tt(this.lng, -180, 180), this.lat);
|
|
6747
|
+
}, Jt.prototype.toArray = function() {
|
|
6748
6748
|
return [this.lng, this.lat];
|
|
6749
|
-
},
|
|
6749
|
+
}, Jt.prototype.toString = function() {
|
|
6750
6750
|
return "LngLat(" + this.lng + ", " + this.lat + ")";
|
|
6751
|
-
},
|
|
6751
|
+
}, Jt.prototype.distanceTo = function(e) {
|
|
6752
6752
|
var t = Math.PI / 180, r = this.lat * t, o = e.lat * t, l = Math.sin(r) * Math.sin(o) + Math.cos(r) * Math.cos(o) * Math.cos((e.lng - this.lng) * t);
|
|
6753
6753
|
return 63710088e-1 * Math.acos(Math.min(l, 1));
|
|
6754
|
-
},
|
|
6754
|
+
}, Jt.prototype.toBounds = function(e) {
|
|
6755
6755
|
e === void 0 && (e = 0);
|
|
6756
6756
|
var t = 360 * e / 40075017, r = t / Math.cos(Math.PI / 180 * this.lat);
|
|
6757
|
-
return new br(new
|
|
6758
|
-
},
|
|
6759
|
-
if (e instanceof
|
|
6760
|
-
if (Array.isArray(e) && (e.length === 2 || e.length === 3)) return new
|
|
6761
|
-
if (!Array.isArray(e) && typeof e == "object" && e !== null) return new
|
|
6757
|
+
return new br(new Jt(this.lng - r, this.lat - t), new Jt(this.lng + r, this.lat + t));
|
|
6758
|
+
}, Jt.convert = function(e) {
|
|
6759
|
+
if (e instanceof Jt) return e;
|
|
6760
|
+
if (Array.isArray(e) && (e.length === 2 || e.length === 3)) return new Jt(Number(e[0]), Number(e[1]));
|
|
6761
|
+
if (!Array.isArray(e) && typeof e == "object" && e !== null) return new Jt(Number("lng" in e ? e.lng : e.lon), Number(e.lat));
|
|
6762
6762
|
throw new Error("`LngLatLike` argument must be specified as a LngLat instance, an object {lng: <lng>, lat: <lat>}, an object {lon: <lng>, lat: <lat>}, or an array of [<lng>, <lat>]");
|
|
6763
6763
|
};
|
|
6764
6764
|
var Qd = 2 * Math.PI * 63710088e-1;
|
|
@@ -6782,10 +6782,10 @@ var Qv = { exports: {} };
|
|
|
6782
6782
|
};
|
|
6783
6783
|
Ko.fromLngLat = function(e, t) {
|
|
6784
6784
|
t === void 0 && (t = 0);
|
|
6785
|
-
var r =
|
|
6785
|
+
var r = Jt.convert(e);
|
|
6786
6786
|
return new Ko(tm(r.lng), rm(r.lat), im(t, r.lat));
|
|
6787
6787
|
}, Ko.prototype.toLngLat = function() {
|
|
6788
|
-
return new
|
|
6788
|
+
return new Jt(360 * this.x - 180, Yp(this.y));
|
|
6789
6789
|
}, Ko.prototype.toAltitude = function() {
|
|
6790
6790
|
return this.z * em(Yp(this.y));
|
|
6791
6791
|
}, Ko.prototype.meterInMercatorCoordinateUnits = function() {
|
|
@@ -6799,7 +6799,7 @@ var Qv = { exports: {} };
|
|
|
6799
6799
|
return this.z === e.z && this.x === e.x && this.y === e.y;
|
|
6800
6800
|
}, Jo.prototype.url = function(e, t) {
|
|
6801
6801
|
var r, o, l, c, h, v = (o = this.y, l = this.z, c = Yd(256 * (r = this.x), 256 * (o = Math.pow(2, l) - o - 1), l), h = Yd(256 * (r + 1), 256 * (o + 1), l), c[0] + "," + c[1] + "," + h[0] + "," + h[1]), _ = function(x, S, T) {
|
|
6802
|
-
for (var
|
|
6802
|
+
for (var P, k = "", U = x; U > 0; U--) k += (S & (P = 1 << U - 1) ? 1 : 0) + (T & P ? 2 : 0);
|
|
6803
6803
|
return k;
|
|
6804
6804
|
}(this.z, this.x, this.y);
|
|
6805
6805
|
return e[(this.x + this.y) % e.length].replace("{prefix}", (this.x % 16).toString(16) + (this.y % 16).toString(16)).replace("{z}", String(this.z)).replace("{x}", String(this.x)).replace("{y}", String(t === "tms" ? Math.pow(2, this.z) - this.y - 1 : this.y)).replace("{quadkey}", _).replace("{bbox-epsg-3857}", v);
|
|
@@ -6962,7 +6962,7 @@ var Qv = { exports: {} };
|
|
|
6962
6962
|
}
|
|
6963
6963
|
r[h] = r[h] || {}, Qe(r[h], v);
|
|
6964
6964
|
}
|
|
6965
|
-
if (this.stateChanges = {}, this.deletedStates = {}, Object.keys(r).length !== 0) for (var
|
|
6965
|
+
if (this.stateChanges = {}, this.deletedStates = {}, Object.keys(r).length !== 0) for (var P in e) e[P].setFeatureState(r, t);
|
|
6966
6966
|
};
|
|
6967
6967
|
var Ma = function(e, t) {
|
|
6968
6968
|
this.tileID = e, this.x = e.canonical.x, this.y = e.canonical.y, this.z = e.canonical.z, this.grid = new bn(8192, 16, 0), this.grid3D = new bn(8192, 16, 0), this.featureIndexArray = new A(), this.promoteId = t;
|
|
@@ -6988,8 +6988,8 @@ var Qv = { exports: {} };
|
|
|
6988
6988
|
this.featureIndexArray.emplaceBack(r, o, l);
|
|
6989
6989
|
for (var v = c ? this.grid3D : this.grid, _ = 0; _ < t.length; _++) {
|
|
6990
6990
|
for (var x = t[_], S = [1 / 0, 1 / 0, -1 / 0, -1 / 0], T = 0; T < x.length; T++) {
|
|
6991
|
-
var
|
|
6992
|
-
S[0] = Math.min(S[0],
|
|
6991
|
+
var P = x[T];
|
|
6992
|
+
S[0] = Math.min(S[0], P.x), S[1] = Math.min(S[1], P.y), S[2] = Math.max(S[2], P.x), S[3] = Math.max(S[3], P.y);
|
|
6993
6993
|
}
|
|
6994
6994
|
S[0] < 8192 && S[1] < 8192 && S[2] >= 0 && S[3] >= 0 && v.insert(h, S[0], S[1], S[2], S[3]);
|
|
6995
6995
|
}
|
|
@@ -6998,7 +6998,7 @@ var Qv = { exports: {} };
|
|
|
6998
6998
|
}, Ma.prototype.query = function(e, t, r, o) {
|
|
6999
6999
|
var l = this;
|
|
7000
7000
|
this.loadVTLayers();
|
|
7001
|
-
for (var c = e.params || {}, h = 8192 / e.tileSize / e.scale, v = bs(c.filter), _ = e.queryGeometry, x = e.queryPadding * h, S = om(_), T = this.grid.query(S.minX - x, S.minY - x, S.maxX + x, S.maxY + x),
|
|
7001
|
+
for (var c = e.params || {}, h = 8192 / e.tileSize / e.scale, v = bs(c.filter), _ = e.queryGeometry, x = e.queryPadding * h, S = om(_), T = this.grid.query(S.minX - x, S.minY - x, S.maxX + x, S.maxY + x), P = om(e.cameraQueryGeometry), k = this.grid3D.query(P.minX - x, P.minY - x, P.maxX + x, P.maxY + x, function(ae, ue, de, be) {
|
|
7002
7002
|
return function(Te, qe, Pe, Ze, ke) {
|
|
7003
7003
|
for (var ot = 0, Je = Te; ot < Je.length; ot += 1) {
|
|
7004
7004
|
var Ve = Je[ot];
|
|
@@ -7030,12 +7030,12 @@ var Qv = { exports: {} };
|
|
|
7030
7030
|
for (var Pe = 0; Pe < Te.length; Pe++) if (qe.indexOf(Te[Pe]) >= 0) return !0;
|
|
7031
7031
|
return !1;
|
|
7032
7032
|
}(c, T)) {
|
|
7033
|
-
var
|
|
7033
|
+
var P = this.sourceLayerCoder.decode(r), k = this.vtLayers[P].feature(o);
|
|
7034
7034
|
if (l.needGeometry) {
|
|
7035
7035
|
var U = cr(k, !0);
|
|
7036
7036
|
if (!l.filter(new pt(this.tileID.overscaledZ), U, this.tileID.canonical)) return;
|
|
7037
7037
|
} else if (!l.filter(new pt(this.tileID.overscaledZ), k)) return;
|
|
7038
|
-
for (var V = this.getId(k,
|
|
7038
|
+
for (var V = this.getId(k, P), K = 0; K < T.length; K++) {
|
|
7039
7039
|
var W = T[K];
|
|
7040
7040
|
if (!(c && c.indexOf(W) < 0)) {
|
|
7041
7041
|
var ee = v[W];
|
|
@@ -7080,7 +7080,7 @@ var Qv = { exports: {} };
|
|
|
7080
7080
|
for (var o in e.featureIndex && (this.latestFeatureIndex = e.featureIndex, e.rawTileData ? (this.latestRawTileData = e.rawTileData, this.latestFeatureIndex.rawTileData = e.rawTileData) : this.latestRawTileData && (this.latestFeatureIndex.rawTileData = this.latestRawTileData)), this.collisionBoxArray = e.collisionBoxArray, this.buckets = function(x, S) {
|
|
7081
7081
|
var T = {};
|
|
7082
7082
|
if (!S) return T;
|
|
7083
|
-
for (var
|
|
7083
|
+
for (var P = function() {
|
|
7084
7084
|
var V = U[k], K = V.layerIds.map(function(ie) {
|
|
7085
7085
|
return S.getLayer(ie);
|
|
7086
7086
|
}).filter(Boolean);
|
|
@@ -7092,7 +7092,7 @@ var Qv = { exports: {} };
|
|
|
7092
7092
|
}));
|
|
7093
7093
|
for (var W = 0, ee = K; W < ee.length; W += 1) T[ee[W].id] = V;
|
|
7094
7094
|
}
|
|
7095
|
-
}, k = 0, U = x; k < U.length; k += 1)
|
|
7095
|
+
}, k = 0, U = x; k < U.length; k += 1) P();
|
|
7096
7096
|
return T;
|
|
7097
7097
|
}(e.buckets, t.style), this.hasSymbolBuckets = !1, this.buckets) {
|
|
7098
7098
|
var l = this.buckets[o];
|
|
@@ -7134,8 +7134,8 @@ var Qv = { exports: {} };
|
|
|
7134
7134
|
var r = this.latestFeatureIndex;
|
|
7135
7135
|
if (r && r.rawTileData) {
|
|
7136
7136
|
var o = r.loadVTLayers(), l = t ? t.sourceLayer : "", c = o._geojsonTileLayer || o[l];
|
|
7137
|
-
if (c) for (var h = bs(t && t.filter), v = this.tileID.canonical, _ = v.z, x = v.x, S = v.y, T = { z: _, x, y: S },
|
|
7138
|
-
var k = c.feature(
|
|
7137
|
+
if (c) for (var h = bs(t && t.filter), v = this.tileID.canonical, _ = v.z, x = v.x, S = v.y, T = { z: _, x, y: S }, P = 0; P < c.length; P++) {
|
|
7138
|
+
var k = c.feature(P);
|
|
7139
7139
|
if (h.needGeometry) {
|
|
7140
7140
|
var U = cr(k, !0);
|
|
7141
7141
|
if (!h.filter(new pt(this.tileID.overscaledZ), U, this.tileID.canonical)) continue;
|
|
@@ -7206,7 +7206,7 @@ var Qv = { exports: {} };
|
|
|
7206
7206
|
lo.mark(this._marks.end);
|
|
7207
7207
|
var e = lo.getEntriesByName(this._marks.measure);
|
|
7208
7208
|
return e.length === 0 && (lo.measure(this._marks.measure, this._marks.start, this._marks.end), e = lo.getEntriesByName(this._marks.measure), lo.clearMarks(this._marks.start), lo.clearMarks(this._marks.end), lo.clearMeasures(this._marks.measure)), e;
|
|
7209
|
-
}, u.Actor = Ws, u.AlphaImage = Ho, u.CanonicalTileID = Jo, u.CollisionBoxArray = a, u.Color = At, u.DEMData = ka, u.DataConstantProperty = je, u.DictionaryCoder = Sc, u.EXTENT = 8192, u.ErrorEvent = J, u.EvaluationParameters = pt, u.Event = q, u.Evented = Q, u.FeatureIndex = Ma, u.FillBucket = In, u.FillExtrusionBucket = An, u.ImageAtlas = tl, u.ImagePosition = dc, u.LineBucket = pi, u.LngLat =
|
|
7209
|
+
}, u.Actor = Ws, u.AlphaImage = Ho, u.CanonicalTileID = Jo, u.CollisionBoxArray = a, u.Color = At, u.DEMData = ka, u.DataConstantProperty = je, u.DictionaryCoder = Sc, u.EXTENT = 8192, u.ErrorEvent = J, u.EvaluationParameters = pt, u.Event = q, u.Evented = Q, u.FeatureIndex = Ma, u.FillBucket = In, u.FillExtrusionBucket = An, u.ImageAtlas = tl, u.ImagePosition = dc, u.LineBucket = pi, u.LngLat = Jt, u.LngLatBounds = br, u.MercatorCoordinate = Ko, u.ONE_EM = 24, u.OverscaledTileID = wr, u.Point = fe, u.Point$1 = fe, u.Properties = jr, u.Protobuf = hc, u.RGBAImage = bi, u.RequestManager = oi, u.RequestPerformance = sm, u.ResourceType = hs, u.SegmentVector = B, u.SourceFeatureState = Hs, u.StructArrayLayout1ui2 = Gu, u.StructArrayLayout2f1f2i16 = Aa, u.StructArrayLayout2i4 = Ia, u.StructArrayLayout3ui6 = jn, u.StructArrayLayout4i8 = qu, u.SymbolBucket = Dt, u.Texture = Xo, u.Tile = Fr, u.Transitionable = qr, u.Uniform1f = Se, u.Uniform1i = ve, u.Uniform2f = we, u.Uniform3f = ze, u.Uniform4f = $e, u.UniformColor = He, u.UniformMatrix4f = xt, u.UnwrappedTileID = nm, u.ValidationError = $, u.WritingMode = Vi, u.ZoomHistory = Ru, u.add = function(e, t, r) {
|
|
7210
7210
|
return e[0] = t[0] + r[0], e[1] = t[1] + r[1], e[2] = t[2] + r[2], e;
|
|
7211
7211
|
}, u.addDynamicAttributes = Xp, u.asyncAll = function(e, t, r) {
|
|
7212
7212
|
if (!e.length) return r(null, []);
|
|
@@ -7268,7 +7268,7 @@ var Qv = { exports: {} };
|
|
|
7268
7268
|
}, u.evaluateSizeForFeature = Rd, u.evaluateSizeForZoom = Fd, u.evaluateVariableOffset = Zd, u.evented = Uu, u.extend = Qe, u.featureFilter = bs, u.filterObject = ai, u.fromRotation = function(e, t) {
|
|
7269
7269
|
var r = Math.sin(t), o = Math.cos(t);
|
|
7270
7270
|
return e[0] = o, e[1] = r, e[2] = 0, e[3] = -r, e[4] = o, e[5] = 0, e[6] = 0, e[7] = 0, e[8] = 1, e;
|
|
7271
|
-
}, u.getAnchorAlignment = Zp, u.getAnchorJustification = Hp, u.getArrayBuffer = So, u.getImage =
|
|
7271
|
+
}, u.getAnchorAlignment = Zp, u.getAnchorJustification = Hp, u.getArrayBuffer = So, u.getImage = E, u.getJSON = function(e, t) {
|
|
7272
7272
|
return Wa(Qe(e, { type: "json" }), t);
|
|
7273
7273
|
}, u.getRTLTextPluginStatus = Vu, u.getReferrer = la, u.getVideo = function(e, t) {
|
|
7274
7274
|
var r, o, l = oe.document.createElement("video");
|
|
@@ -7282,8 +7282,8 @@ var Qv = { exports: {} };
|
|
|
7282
7282
|
return { cancel: function() {
|
|
7283
7283
|
} };
|
|
7284
7284
|
}, u.identity = Ii, u.invert = function(e, t) {
|
|
7285
|
-
var r = t[0], o = t[1], l = t[2], c = t[3], h = t[4], v = t[5], _ = t[6], x = t[7], S = t[8], T = t[9],
|
|
7286
|
-
return Je ? (e[0] = (v * ot - _ * ke + x * Ze) * (Je = 1 / Je), e[1] = (l * ke - o * ot - c * Ze) * Je, e[2] = (V * be - K * de + W * ue) * Je, e[3] = (
|
|
7285
|
+
var r = t[0], o = t[1], l = t[2], c = t[3], h = t[4], v = t[5], _ = t[6], x = t[7], S = t[8], T = t[9], P = t[10], k = t[11], U = t[12], V = t[13], K = t[14], W = t[15], ee = r * v - o * h, ie = r * _ - l * h, ae = r * x - c * h, ue = o * _ - l * v, de = o * x - c * v, be = l * x - c * _, Te = S * V - T * U, qe = S * K - P * U, Pe = S * W - k * U, Ze = T * K - P * V, ke = T * W - k * V, ot = P * W - k * K, Je = ee * ot - ie * ke + ae * Ze + ue * Pe - de * qe + be * Te;
|
|
7286
|
+
return Je ? (e[0] = (v * ot - _ * ke + x * Ze) * (Je = 1 / Je), e[1] = (l * ke - o * ot - c * Ze) * Je, e[2] = (V * be - K * de + W * ue) * Je, e[3] = (P * de - T * be - k * ue) * Je, e[4] = (_ * Pe - h * ot - x * qe) * Je, e[5] = (r * ot - l * Pe + c * qe) * Je, e[6] = (K * ae - U * be - W * ie) * Je, e[7] = (S * be - P * ae + k * ie) * Je, e[8] = (h * ke - v * Pe + x * Te) * Je, e[9] = (o * Pe - r * ke - c * Te) * Je, e[10] = (U * de - V * ae + W * ee) * Je, e[11] = (T * ae - S * de - k * ee) * Je, e[12] = (v * qe - h * Ze - _ * Te) * Je, e[13] = (r * Ze - o * qe + l * Te) * Je, e[14] = (V * ie - U * ue - K * ee) * Je, e[15] = (S * ue - T * ie + P * ee) * Je, e) : null;
|
|
7287
7287
|
}, u.isChar = Ae, u.isMapboxURL = Ci, u.keysDifference = function(e, t) {
|
|
7288
7288
|
var r = [];
|
|
7289
7289
|
for (var o in e) o in t || r.push(o);
|
|
@@ -7306,8 +7306,8 @@ var Qv = { exports: {} };
|
|
|
7306
7306
|
x.compositeTextSizes = [_["text-size"].possiblyEvaluate(new pt(S.minZoom), h), _["text-size"].possiblyEvaluate(new pt(T), h)];
|
|
7307
7307
|
}
|
|
7308
7308
|
if (e.iconSizeData.kind === "composite") {
|
|
7309
|
-
var
|
|
7310
|
-
x.compositeIconSizes = [_["icon-size"].possiblyEvaluate(new pt(
|
|
7309
|
+
var P = e.iconSizeData, k = P.maxZoom;
|
|
7310
|
+
x.compositeIconSizes = [_["icon-size"].possiblyEvaluate(new pt(P.minZoom), h), _["icon-size"].possiblyEvaluate(new pt(k), h)];
|
|
7311
7311
|
}
|
|
7312
7312
|
x.layoutTextSize = _["text-size"].possiblyEvaluate(new pt(e.zoom + 1), h), x.layoutIconSize = _["icon-size"].possiblyEvaluate(new pt(e.zoom + 1), h), x.textMaxSize = _["text-size"].possiblyEvaluate(new pt(18));
|
|
7313
7313
|
for (var U = 24 * v.get("text-line-height"), V = v.get("text-rotation-alignment") === "map" && v.get("symbol-placement") !== "point", K = v.get("text-keep-upright"), W = v.get("text-size"), ee = function() {
|
|
@@ -7324,25 +7324,25 @@ var Qv = { exports: {} };
|
|
|
7324
7324
|
return 24 * ht;
|
|
7325
7325
|
});
|
|
7326
7326
|
}
|
|
7327
|
-
var Ge = V ? "center" : v.get("text-justify").evaluate(ue, {}, h), wt = v.get("symbol-placement"),
|
|
7328
|
-
e.allowVerticalPlacement && Fu(ot) && (Pe.vertical = mc(Ze, t, r, l, de,
|
|
7327
|
+
var Ge = V ? "center" : v.get("text-justify").evaluate(ue, {}, h), wt = v.get("symbol-placement"), Yt = wt === "point" ? 24 * v.get("text-max-width").evaluate(ue, {}, h) : 0, nr = function() {
|
|
7328
|
+
e.allowVerticalPlacement && Fu(ot) && (Pe.vertical = mc(Ze, t, r, l, de, Yt, U, lt, "left", Ve, ke, Vi.vertical, !0, wt, Te, be));
|
|
7329
7329
|
};
|
|
7330
7330
|
if (!V && it) {
|
|
7331
7331
|
for (var rr = Ge === "auto" ? it.map(function(ht) {
|
|
7332
7332
|
return Hp(ht);
|
|
7333
|
-
}) : [Ge],
|
|
7333
|
+
}) : [Ge], Qt = !1, ar = 0; ar < rr.length; ar++) {
|
|
7334
7334
|
var Pr = rr[ar];
|
|
7335
|
-
if (!Pe.horizontal[Pr]) if (
|
|
7335
|
+
if (!Pe.horizontal[Pr]) if (Qt) Pe.horizontal[Pr] = Pe.horizontal[0];
|
|
7336
7336
|
else {
|
|
7337
|
-
var Cr = mc(Ze, t, r, l, de,
|
|
7338
|
-
Cr && (Pe.horizontal[Pr] = Cr,
|
|
7337
|
+
var Cr = mc(Ze, t, r, l, de, Yt, U, "center", Pr, Ve, ke, Vi.horizontal, !1, wt, Te, be);
|
|
7338
|
+
Cr && (Pe.horizontal[Pr] = Cr, Qt = Cr.positionedLines.length === 1);
|
|
7339
7339
|
}
|
|
7340
7340
|
}
|
|
7341
7341
|
nr();
|
|
7342
7342
|
} else {
|
|
7343
7343
|
Ge === "auto" && (Ge = Hp(lt));
|
|
7344
|
-
var ri = mc(Ze, t, r, l, de,
|
|
7345
|
-
ri && (Pe.horizontal[Ge] = ri), nr(), Fu(ot) && V && K && (Pe.vertical = mc(Ze, t, r, l, de,
|
|
7344
|
+
var ri = mc(Ze, t, r, l, de, Yt, U, lt, Ge, Ve, ke, Vi.horizontal, !1, wt, Te, be);
|
|
7345
|
+
ri && (Pe.horizontal[Ge] = ri), nr(), Fu(ot) && V && K && (Pe.vertical = mc(Ze, t, r, l, de, Yt, U, lt, Ge, Ve, ke, Vi.vertical, !1, wt, Te, be));
|
|
7346
7346
|
}
|
|
7347
7347
|
}
|
|
7348
7348
|
var Or = void 0, ii = !1;
|
|
@@ -7354,10 +7354,10 @@ var Qv = { exports: {} };
|
|
|
7354
7354
|
}(l[ue.icon.name], v.get("icon-offset").evaluate(ue, {}, h), v.get("icon-anchor").evaluate(ue, {}, h)), ii = pr.sdf, e.sdfIcons === void 0 ? e.sdfIcons = pr.sdf : e.sdfIcons !== pr.sdf && Rt("Style sheet warning: Cannot mix SDF and non-SDF icons in one buffer"), (pr.pixelRatio !== e.pixelRatio || v.get("icon-rotate").constantOr(1) !== 0) && (e.iconsNeedLinear = !0));
|
|
7355
7355
|
}
|
|
7356
7356
|
var Ur = Wd(Pe.horizontal) || Pe.vertical;
|
|
7357
|
-
e.iconsInText = !!Ur && Ur.iconsInText, (Ur || Or) && function(ht, Vt, Mt, bt, hi, Gr,
|
|
7357
|
+
e.iconsInText = !!Ur && Ur.iconsInText, (Ur || Or) && function(ht, Vt, Mt, bt, hi, Gr, Wt, gr, Wr, St, Xn) {
|
|
7358
7358
|
var Ni = Gr.textMaxSize.evaluate(Vt, {});
|
|
7359
|
-
Ni === void 0 && (Ni =
|
|
7360
|
-
var Kn, hr = ht.layers[0].layout, Jn = hr.get("icon-offset").evaluate(Vt, {}, Xn), dn = Wd(Mt.horizontal), Xs =
|
|
7359
|
+
Ni === void 0 && (Ni = Wt);
|
|
7360
|
+
var Kn, hr = ht.layers[0].layout, Jn = hr.get("icon-offset").evaluate(Vt, {}, Xn), dn = Wd(Mt.horizontal), Xs = Wt / 24, Yo = ht.tilePixelRatio * Xs, Ks = ht.tilePixelRatio * Ni / 24, za = ht.tilePixelRatio * gr, Js = ht.tilePixelRatio * hr.get("symbol-spacing"), Ic = hr.get("text-padding") * ht.tilePixelRatio, Ys = hr.get("icon-padding") * ht.tilePixelRatio, nl = hr.get("text-max-angle") / 180 * Math.PI, Ac = hr.get("text-rotation-alignment") === "map" && hr.get("symbol-placement") !== "point", Ec = hr.get("icon-rotation-alignment") === "map" && hr.get("symbol-placement") !== "point", Da = hr.get("symbol-placement"), al = Js / 2, Qs = hr.get("icon-text-fit");
|
|
7361
7361
|
bt && Qs !== "none" && (ht.allowVerticalPlacement && Mt.vertical && (Kn = Ld(bt, Mt.vertical, Qs, hr.get("icon-text-fit-padding"), Jn, Xs)), dn && (bt = Ld(bt, dn, Qs, hr.get("icon-text-fit-padding"), Jn, Xs)));
|
|
7362
7362
|
var co = function(Bx, fl) {
|
|
7363
7363
|
fl.x < 0 || fl.x >= 8192 || fl.y < 0 || fl.y >= 8192 || function(fr, En, Lx, po, ih, cm, Dc, Yn, Bc, dl, Lc, Rc, nh, pm, ml, hm, fm, dm, mm, ym, qi, Fc, vm, Qn, Rx) {
|
|
@@ -7391,7 +7391,7 @@ var Qv = { exports: {} };
|
|
|
7391
7391
|
ea = Uc(es, ea), ea = Uc(au, ea), ea = Uc(nu, ea);
|
|
7392
7392
|
var km = (ea = Uc(ou, ea)) > -1 ? 1 : 0;
|
|
7393
7393
|
km && (ea *= Rx / 24), fr.glyphOffsetArray.length >= Dt.MAX_GLYPHS && Rt("Too many glyphs being rendered in a tile. See https://github.com/mapbox/mapbox-gl-js/issues/2907"), qi.sortKey !== void 0 && fr.addToSortKeyRanges(fr.symbolInstances.length, qi.sortKey), fr.symbolInstances.emplaceBack(En.x, En.y, Ba.right >= 0 ? Ba.right : -1, Ba.center >= 0 ? Ba.center : -1, Ba.left >= 0 ? Ba.left : -1, Ba.vertical || -1, ah, oh, Sm, Ox, Ux, Vx, Nx, qx, jx, $x, Zx, dl, bm, wm, _m, xm, km, 0, nh, sh, uh, ea);
|
|
7394
|
-
}(ht, fl, Bx, Mt, bt, hi, Kn, ht.layers[0], ht.collisionBoxArray, Vt.index, Vt.sourceLayerIndex, ht.index, Yo, Ic, Ac, Wr, za, Ys, Ec, Jn, Vt, Gr, St, Xn,
|
|
7394
|
+
}(ht, fl, Bx, Mt, bt, hi, Kn, ht.layers[0], ht.collisionBoxArray, Vt.index, Vt.sourceLayerIndex, ht.index, Yo, Ic, Ac, Wr, za, Ys, Ec, Jn, Vt, Gr, St, Xn, Wt);
|
|
7395
7395
|
};
|
|
7396
7396
|
if (Da === "line") for (var eu = 0, Pc = qd(Vt.geometry, 0, 0, 8192, 8192); eu < Pc.length; eu += 1) for (var Cc = Pc[eu], ol = 0, sl = vx(Cc, Js, nl, Mt.vertical || dn, bt, 24, Ks, ht.overscaling, 8192); ol < sl.length; ol += 1) {
|
|
7397
7397
|
var kc = sl[ol];
|
|
@@ -7434,11 +7434,11 @@ var Qv = { exports: {} };
|
|
|
7434
7434
|
var o = t[0], l = t[1], c = t[2], h = t[3], v = Math.sin(r), _ = Math.cos(r);
|
|
7435
7435
|
return e[0] = o * _ + c * v, e[1] = l * _ + h * v, e[2] = o * -v + c * _, e[3] = l * -v + h * _, e;
|
|
7436
7436
|
}, u.rotateX = function(e, t, r) {
|
|
7437
|
-
var o = Math.sin(r), l = Math.cos(r), c = t[4], h = t[5], v = t[6], _ = t[7], x = t[8], S = t[9], T = t[10],
|
|
7438
|
-
return t !== e && (e[0] = t[0], e[1] = t[1], e[2] = t[2], e[3] = t[3], e[12] = t[12], e[13] = t[13], e[14] = t[14], e[15] = t[15]), e[4] = c * l + x * o, e[5] = h * l + S * o, e[6] = v * l + T * o, e[7] = _ * l +
|
|
7437
|
+
var o = Math.sin(r), l = Math.cos(r), c = t[4], h = t[5], v = t[6], _ = t[7], x = t[8], S = t[9], T = t[10], P = t[11];
|
|
7438
|
+
return t !== e && (e[0] = t[0], e[1] = t[1], e[2] = t[2], e[3] = t[3], e[12] = t[12], e[13] = t[13], e[14] = t[14], e[15] = t[15]), e[4] = c * l + x * o, e[5] = h * l + S * o, e[6] = v * l + T * o, e[7] = _ * l + P * o, e[8] = x * l - c * o, e[9] = S * l - h * o, e[10] = T * l - v * o, e[11] = P * l - _ * o, e;
|
|
7439
7439
|
}, u.rotateZ = function(e, t, r) {
|
|
7440
|
-
var o = Math.sin(r), l = Math.cos(r), c = t[0], h = t[1], v = t[2], _ = t[3], x = t[4], S = t[5], T = t[6],
|
|
7441
|
-
return t !== e && (e[8] = t[8], e[9] = t[9], e[10] = t[10], e[11] = t[11], e[12] = t[12], e[13] = t[13], e[14] = t[14], e[15] = t[15]), e[0] = c * l + x * o, e[1] = h * l + S * o, e[2] = v * l + T * o, e[3] = _ * l +
|
|
7440
|
+
var o = Math.sin(r), l = Math.cos(r), c = t[0], h = t[1], v = t[2], _ = t[3], x = t[4], S = t[5], T = t[6], P = t[7];
|
|
7441
|
+
return t !== e && (e[8] = t[8], e[9] = t[9], e[10] = t[10], e[11] = t[11], e[12] = t[12], e[13] = t[13], e[14] = t[14], e[15] = t[15]), e[0] = c * l + x * o, e[1] = h * l + S * o, e[2] = v * l + T * o, e[3] = _ * l + P * o, e[4] = x * l - c * o, e[5] = S * l - h * o, e[6] = T * l - v * o, e[7] = P * l - _ * o, e;
|
|
7442
7442
|
}, u.scale = function(e, t, r) {
|
|
7443
7443
|
var o = r[0], l = r[1], c = r[2];
|
|
7444
7444
|
return e[0] = t[0] * o, e[1] = t[1] * o, e[2] = t[2] * o, e[3] = t[3] * o, e[4] = t[4] * l, e[5] = t[5] * l, e[6] = t[6] * l, e[7] = t[7] * l, e[8] = t[8] * c, e[9] = t[9] * c, e[10] = t[10] * c, e[11] = t[11] * c, e[12] = t[12], e[13] = t[13], e[14] = t[14], e[15] = t[15], e;
|
|
@@ -7463,8 +7463,8 @@ var Qv = { exports: {} };
|
|
|
7463
7463
|
var o = t[0], l = t[1], c = t[2];
|
|
7464
7464
|
return e[0] = o * r[0] + l * r[3] + c * r[6], e[1] = o * r[1] + l * r[4] + c * r[7], e[2] = o * r[2] + l * r[5] + c * r[8], e;
|
|
7465
7465
|
}, u.transformMat4 = Bs, u.translate = function(e, t, r) {
|
|
7466
|
-
var o, l, c, h, v, _, x, S, T,
|
|
7467
|
-
return t === e ? (e[12] = t[0] * V + t[4] * K + t[8] * W + t[12], e[13] = t[1] * V + t[5] * K + t[9] * W + t[13], e[14] = t[2] * V + t[6] * K + t[10] * W + t[14], e[15] = t[3] * V + t[7] * K + t[11] * W + t[15]) : (l = t[1], c = t[2], h = t[3], v = t[4], _ = t[5], x = t[6], S = t[7], T = t[8],
|
|
7466
|
+
var o, l, c, h, v, _, x, S, T, P, k, U, V = r[0], K = r[1], W = r[2];
|
|
7467
|
+
return t === e ? (e[12] = t[0] * V + t[4] * K + t[8] * W + t[12], e[13] = t[1] * V + t[5] * K + t[9] * W + t[13], e[14] = t[2] * V + t[6] * K + t[10] * W + t[14], e[15] = t[3] * V + t[7] * K + t[11] * W + t[15]) : (l = t[1], c = t[2], h = t[3], v = t[4], _ = t[5], x = t[6], S = t[7], T = t[8], P = t[9], k = t[10], U = t[11], e[0] = o = t[0], e[1] = l, e[2] = c, e[3] = h, e[4] = v, e[5] = _, e[6] = x, e[7] = S, e[8] = T, e[9] = P, e[10] = k, e[11] = U, e[12] = o * V + v * K + T * W + t[12], e[13] = l * V + _ * K + P * W + t[13], e[14] = c * V + x * K + k * W + t[14], e[15] = h * V + S * K + U * W + t[15]), e;
|
|
7468
7468
|
}, u.triggerPluginCompletionEvent = ac, u.uniqueId = Lt, u.validateCustomStyleLayer = function(e) {
|
|
7469
7469
|
var t = [], r = e.id;
|
|
7470
7470
|
return r === void 0 && t.push({ message: "layers." + r + ': missing required property "id"' }), e.render === void 0 && t.push({ message: "layers." + r + ': missing required method "render"' }), e.renderingMode && e.renderingMode !== "2d" && e.renderingMode !== "3d" && t.push({ message: "layers." + r + ': property "renderingMode" must be either "2d" or "3d"' }), t;
|
|
@@ -7475,8 +7475,8 @@ var Qv = { exports: {} };
|
|
|
7475
7475
|
}, u.vectorTile = Os, u.version = "1.13.3", u.warnOnce = Rt, u.webpSupported = sn, u.window = oe, u.wrap = Tt;
|
|
7476
7476
|
}), Z(["./shared"], function(u) {
|
|
7477
7477
|
function ne(I) {
|
|
7478
|
-
var
|
|
7479
|
-
if (
|
|
7478
|
+
var E = typeof I;
|
|
7479
|
+
if (E === "number" || E === "boolean" || E === "string" || I == null) return JSON.stringify(I);
|
|
7480
7480
|
if (Array.isArray(I)) {
|
|
7481
7481
|
for (var C = "[", R = 0, q = I; R < q.length; R += 1) C += ne(q[R]) + ",";
|
|
7482
7482
|
return C + "]";
|
|
@@ -7485,22 +7485,22 @@ var Qv = { exports: {} };
|
|
|
7485
7485
|
return Q + "}";
|
|
7486
7486
|
}
|
|
7487
7487
|
function G(I) {
|
|
7488
|
-
for (var
|
|
7489
|
-
return
|
|
7488
|
+
for (var E = "", C = 0, R = u.refProperties; C < R.length; C += 1) E += "/" + ne(I[R[C]]);
|
|
7489
|
+
return E;
|
|
7490
7490
|
}
|
|
7491
7491
|
var me = function(I) {
|
|
7492
7492
|
this.keyCache = {}, I && this.replace(I);
|
|
7493
7493
|
};
|
|
7494
7494
|
me.prototype.replace = function(I) {
|
|
7495
7495
|
this._layerConfigs = {}, this._layers = {}, this.update(I, []);
|
|
7496
|
-
}, me.prototype.update = function(I,
|
|
7496
|
+
}, me.prototype.update = function(I, E) {
|
|
7497
7497
|
for (var C = this, R = 0, q = I; R < q.length; R += 1) {
|
|
7498
7498
|
var J = q[R];
|
|
7499
7499
|
this._layerConfigs[J.id] = J;
|
|
7500
7500
|
var Q = this._layers[J.id] = u.createStyleLayer(J);
|
|
7501
7501
|
Q._featureFilter = u.featureFilter(Q.filter), this.keyCache[J.id] && delete this.keyCache[J.id];
|
|
7502
7502
|
}
|
|
7503
|
-
for (var D = 0, $ =
|
|
7503
|
+
for (var D = 0, $ = E; D < $.length; D += 1) {
|
|
7504
7504
|
var re = $[D];
|
|
7505
7505
|
delete this.keyCache[re], delete this._layerConfigs[re], delete this._layers[re];
|
|
7506
7506
|
}
|
|
@@ -7528,9 +7528,9 @@ var Qv = { exports: {} };
|
|
|
7528
7528
|
}
|
|
7529
7529
|
};
|
|
7530
7530
|
var fe = function(I) {
|
|
7531
|
-
var
|
|
7531
|
+
var E = {}, C = [];
|
|
7532
7532
|
for (var R in I) {
|
|
7533
|
-
var q = I[R], J =
|
|
7533
|
+
var q = I[R], J = E[R] = {};
|
|
7534
7534
|
for (var Q in q) {
|
|
7535
7535
|
var D = q[+Q];
|
|
7536
7536
|
if (D && D.bitmap.width !== 0 && D.bitmap.height !== 0) {
|
|
@@ -7545,34 +7545,34 @@ var Qv = { exports: {} };
|
|
|
7545
7545
|
for (var _e in pe) {
|
|
7546
7546
|
var Oe = pe[+_e];
|
|
7547
7547
|
if (Oe && Oe.bitmap.width !== 0 && Oe.bitmap.height !== 0) {
|
|
7548
|
-
var Re =
|
|
7548
|
+
var Re = E[xe][_e].rect;
|
|
7549
7549
|
u.AlphaImage.copy(Oe.bitmap, ge, { x: 0, y: 0 }, { x: Re.x + 1, y: Re.y + 1 }, Oe.bitmap);
|
|
7550
7550
|
}
|
|
7551
7551
|
}
|
|
7552
7552
|
}
|
|
7553
|
-
this.image = ge, this.positions =
|
|
7553
|
+
this.image = ge, this.positions = E;
|
|
7554
7554
|
};
|
|
7555
7555
|
u.register("GlyphAtlas", fe);
|
|
7556
7556
|
var De = function(I) {
|
|
7557
7557
|
this.tileID = new u.OverscaledTileID(I.tileID.overscaledZ, I.tileID.wrap, I.tileID.canonical.z, I.tileID.canonical.x, I.tileID.canonical.y), this.uid = I.uid, this.zoom = I.zoom, this.pixelRatio = I.pixelRatio, this.tileSize = I.tileSize, this.source = I.source, this.overscaling = this.tileID.overscaleFactor(), this.showCollisionBoxes = I.showCollisionBoxes, this.collectResourceTiming = !!I.collectResourceTiming, this.returnDependencies = !!I.returnDependencies, this.promoteId = I.promoteId;
|
|
7558
7558
|
};
|
|
7559
|
-
function oe(I,
|
|
7560
|
-
for (var R = new u.EvaluationParameters(
|
|
7559
|
+
function oe(I, E, C) {
|
|
7560
|
+
for (var R = new u.EvaluationParameters(E), q = 0, J = I; q < J.length; q += 1) J[q].recalculate(R, C);
|
|
7561
7561
|
}
|
|
7562
|
-
function ye(I,
|
|
7562
|
+
function ye(I, E) {
|
|
7563
7563
|
var C = u.getArrayBuffer(I.request, function(R, q, J, Q) {
|
|
7564
|
-
R ?
|
|
7564
|
+
R ? E(R) : q && E(null, { vectorTile: new u.vectorTile.VectorTile(new u.pbf(q)), rawData: q, cacheControl: J, expires: Q });
|
|
7565
7565
|
});
|
|
7566
7566
|
return function() {
|
|
7567
|
-
C.cancel(),
|
|
7567
|
+
C.cancel(), E();
|
|
7568
7568
|
};
|
|
7569
7569
|
}
|
|
7570
|
-
De.prototype.parse = function(I,
|
|
7570
|
+
De.prototype.parse = function(I, E, C, R, q) {
|
|
7571
7571
|
var J = this;
|
|
7572
7572
|
this.status = "parsing", this.data = I, this.collisionBoxArray = new u.CollisionBoxArray();
|
|
7573
7573
|
var Q = new u.DictionaryCoder(Object.keys(I.layers).sort()), D = new u.FeatureIndex(this.tileID, this.promoteId);
|
|
7574
7574
|
D.bucketLayerIDs = [];
|
|
7575
|
-
var $, re, ge, xe, pe = {}, _e = { featureIndex: D, iconDependencies: {}, patternDependencies: {}, glyphDependencies: {}, availableImages: C }, Oe =
|
|
7575
|
+
var $, re, ge, xe, pe = {}, _e = { featureIndex: D, iconDependencies: {}, patternDependencies: {}, glyphDependencies: {}, availableImages: C }, Oe = E.familiesBySource[this.source];
|
|
7576
7576
|
for (var Re in Oe) {
|
|
7577
7577
|
var he = I.layers[Re];
|
|
7578
7578
|
if (he) {
|
|
@@ -7617,15 +7617,15 @@ var Qv = { exports: {} };
|
|
|
7617
7617
|
$ || ($ = zt, xe = dt, ur.call(J));
|
|
7618
7618
|
}) : xe = {}, ur.call(this);
|
|
7619
7619
|
};
|
|
7620
|
-
var Be = function(I,
|
|
7621
|
-
this.actor = I, this.layerIndex =
|
|
7620
|
+
var Be = function(I, E, C, R) {
|
|
7621
|
+
this.actor = I, this.layerIndex = E, this.availableImages = C, this.loadVectorData = R || ye, this.loading = {}, this.loaded = {};
|
|
7622
7622
|
};
|
|
7623
|
-
Be.prototype.loadTile = function(I,
|
|
7623
|
+
Be.prototype.loadTile = function(I, E) {
|
|
7624
7624
|
var C = this, R = I.uid;
|
|
7625
7625
|
this.loading || (this.loading = {});
|
|
7626
7626
|
var q = !!(I && I.request && I.request.collectResourceTiming) && new u.RequestPerformance(I.request), J = this.loading[R] = new De(I);
|
|
7627
7627
|
J.abort = this.loadVectorData(I, function(Q, D) {
|
|
7628
|
-
if (delete C.loading[R], Q || !D) return J.status = "done", C.loaded[R] = J,
|
|
7628
|
+
if (delete C.loading[R], Q || !D) return J.status = "done", C.loaded[R] = J, E(Q);
|
|
7629
7629
|
var $ = D.rawData, re = {};
|
|
7630
7630
|
D.expires && (re.expires = D.expires), D.cacheControl && (re.cacheControl = D.cacheControl);
|
|
7631
7631
|
var ge = {};
|
|
@@ -7634,62 +7634,62 @@ var Qv = { exports: {} };
|
|
|
7634
7634
|
xe && (ge.resourceTiming = JSON.parse(JSON.stringify(xe)));
|
|
7635
7635
|
}
|
|
7636
7636
|
J.vectorTile = D.vectorTile, J.parse(D.vectorTile, C.layerIndex, C.availableImages, C.actor, function(pe, _e) {
|
|
7637
|
-
if (pe || !_e) return
|
|
7638
|
-
|
|
7637
|
+
if (pe || !_e) return E(pe);
|
|
7638
|
+
E(null, u.extend({ rawTileData: $.slice(0) }, _e, re, ge));
|
|
7639
7639
|
}), C.loaded = C.loaded || {}, C.loaded[R] = J;
|
|
7640
7640
|
});
|
|
7641
|
-
}, Be.prototype.reloadTile = function(I,
|
|
7641
|
+
}, Be.prototype.reloadTile = function(I, E) {
|
|
7642
7642
|
var C = this, R = this.loaded, q = I.uid, J = this;
|
|
7643
7643
|
if (R && R[q]) {
|
|
7644
7644
|
var Q = R[q];
|
|
7645
7645
|
Q.showCollisionBoxes = I.showCollisionBoxes;
|
|
7646
7646
|
var D = function($, re) {
|
|
7647
7647
|
var ge = Q.reloadCallback;
|
|
7648
|
-
ge && (delete Q.reloadCallback, Q.parse(Q.vectorTile, J.layerIndex, C.availableImages, J.actor, ge)),
|
|
7648
|
+
ge && (delete Q.reloadCallback, Q.parse(Q.vectorTile, J.layerIndex, C.availableImages, J.actor, ge)), E($, re);
|
|
7649
7649
|
};
|
|
7650
7650
|
Q.status === "parsing" ? Q.reloadCallback = D : Q.status === "done" && (Q.vectorTile ? Q.parse(Q.vectorTile, this.layerIndex, this.availableImages, this.actor, D) : D());
|
|
7651
7651
|
}
|
|
7652
|
-
}, Be.prototype.abortTile = function(I,
|
|
7652
|
+
}, Be.prototype.abortTile = function(I, E) {
|
|
7653
7653
|
var C = this.loading, R = I.uid;
|
|
7654
|
-
C && C[R] && C[R].abort && (C[R].abort(), delete C[R]),
|
|
7655
|
-
}, Be.prototype.removeTile = function(I,
|
|
7654
|
+
C && C[R] && C[R].abort && (C[R].abort(), delete C[R]), E();
|
|
7655
|
+
}, Be.prototype.removeTile = function(I, E) {
|
|
7656
7656
|
var C = this.loaded, R = I.uid;
|
|
7657
|
-
C && C[R] && delete C[R],
|
|
7657
|
+
C && C[R] && delete C[R], E();
|
|
7658
7658
|
};
|
|
7659
7659
|
var Ke = u.window.ImageBitmap, Ne = function() {
|
|
7660
7660
|
this.loaded = {};
|
|
7661
7661
|
};
|
|
7662
|
-
function Tt(I,
|
|
7662
|
+
function Tt(I, E) {
|
|
7663
7663
|
if (I.length !== 0) {
|
|
7664
|
-
Qe(I[0],
|
|
7665
|
-
for (var C = 1; C < I.length; C++) Qe(I[C], !
|
|
7664
|
+
Qe(I[0], E);
|
|
7665
|
+
for (var C = 1; C < I.length; C++) Qe(I[C], !E);
|
|
7666
7666
|
}
|
|
7667
7667
|
}
|
|
7668
|
-
function Qe(I,
|
|
7668
|
+
function Qe(I, E) {
|
|
7669
7669
|
for (var C = 0, R = 0, q = 0, J = I.length, Q = J - 1; q < J; Q = q++) {
|
|
7670
7670
|
var D = (I[q][0] - I[Q][0]) * (I[Q][1] + I[q][1]), $ = C + D;
|
|
7671
7671
|
R += Math.abs(C) >= Math.abs(D) ? C - $ + D : D - $ + C, C = $;
|
|
7672
7672
|
}
|
|
7673
|
-
C + R >= 0 != !!
|
|
7673
|
+
C + R >= 0 != !!E && I.reverse();
|
|
7674
7674
|
}
|
|
7675
|
-
Ne.prototype.loadTile = function(I,
|
|
7675
|
+
Ne.prototype.loadTile = function(I, E) {
|
|
7676
7676
|
var C = I.uid, R = I.encoding, q = I.rawImageData, J = Ke && q instanceof Ke ? this.getImageData(q) : q, Q = new u.DEMData(C, J, R);
|
|
7677
|
-
this.loaded = this.loaded || {}, this.loaded[C] = Q,
|
|
7677
|
+
this.loaded = this.loaded || {}, this.loaded[C] = Q, E(null, Q);
|
|
7678
7678
|
}, Ne.prototype.getImageData = function(I) {
|
|
7679
7679
|
this.offscreenCanvas && this.offscreenCanvasContext || (this.offscreenCanvas = new OffscreenCanvas(I.width, I.height), this.offscreenCanvasContext = this.offscreenCanvas.getContext("2d")), this.offscreenCanvas.width = I.width, this.offscreenCanvas.height = I.height, this.offscreenCanvasContext.drawImage(I, 0, 0, I.width, I.height);
|
|
7680
|
-
var
|
|
7681
|
-
return this.offscreenCanvasContext.clearRect(0, 0, this.offscreenCanvas.width, this.offscreenCanvas.height), new u.RGBAImage({ width:
|
|
7680
|
+
var E = this.offscreenCanvasContext.getImageData(-1, -1, I.width + 2, I.height + 2);
|
|
7681
|
+
return this.offscreenCanvasContext.clearRect(0, 0, this.offscreenCanvas.width, this.offscreenCanvas.height), new u.RGBAImage({ width: E.width, height: E.height }, E.data);
|
|
7682
7682
|
}, Ne.prototype.removeTile = function(I) {
|
|
7683
|
-
var
|
|
7684
|
-
|
|
7683
|
+
var E = this.loaded, C = I.uid;
|
|
7684
|
+
E && E[C] && delete E[C];
|
|
7685
7685
|
};
|
|
7686
7686
|
var ft = u.vectorTile.VectorTileFeature.prototype.toGeoJSON, Lt = function(I) {
|
|
7687
7687
|
this._feature = I, this.extent = u.EXTENT, this.type = I.type, this.properties = I.tags, "id" in I && !isNaN(I.id) && (this.id = parseInt(I.id, 10));
|
|
7688
7688
|
};
|
|
7689
7689
|
Lt.prototype.loadGeometry = function() {
|
|
7690
7690
|
if (this._feature.type === 1) {
|
|
7691
|
-
for (var I = [],
|
|
7692
|
-
var R = C[
|
|
7691
|
+
for (var I = [], E = 0, C = this._feature.geometry; E < C.length; E += 1) {
|
|
7692
|
+
var R = C[E];
|
|
7693
7693
|
I.push([new u.Point$1(R[0], R[1])]);
|
|
7694
7694
|
}
|
|
7695
7695
|
return I;
|
|
@@ -7702,118 +7702,118 @@ var Qv = { exports: {} };
|
|
|
7702
7702
|
q.push(D);
|
|
7703
7703
|
}
|
|
7704
7704
|
return q;
|
|
7705
|
-
}, Lt.prototype.toGeoJSON = function(I,
|
|
7706
|
-
return ft.call(this, I,
|
|
7705
|
+
}, Lt.prototype.toGeoJSON = function(I, E, C) {
|
|
7706
|
+
return ft.call(this, I, E, C);
|
|
7707
7707
|
};
|
|
7708
|
-
var
|
|
7708
|
+
var Gt = function(I) {
|
|
7709
7709
|
this.layers = { _geojsonTileLayer: this }, this.name = "_geojsonTileLayer", this.extent = u.EXTENT, this.length = I.length, this._features = I;
|
|
7710
7710
|
};
|
|
7711
|
-
|
|
7711
|
+
Gt.prototype.feature = function(I) {
|
|
7712
7712
|
return new Lt(this._features[I]);
|
|
7713
7713
|
};
|
|
7714
7714
|
var er = u.vectorTile.VectorTileFeature, dr = Mr;
|
|
7715
|
-
function Mr(I,
|
|
7716
|
-
this.options =
|
|
7715
|
+
function Mr(I, E) {
|
|
7716
|
+
this.options = E || {}, this.features = I, this.length = I.length;
|
|
7717
7717
|
}
|
|
7718
|
-
function mr(I,
|
|
7719
|
-
this.id = typeof I.id == "number" ? I.id : void 0, this.type = I.type, this.rawGeometry = I.type === 1 ? [I.geometry] : I.geometry, this.properties = I.tags, this.extent =
|
|
7718
|
+
function mr(I, E) {
|
|
7719
|
+
this.id = typeof I.id == "number" ? I.id : void 0, this.type = I.type, this.rawGeometry = I.type === 1 ? [I.geometry] : I.geometry, this.properties = I.tags, this.extent = E || 4096;
|
|
7720
7720
|
}
|
|
7721
7721
|
Mr.prototype.feature = function(I) {
|
|
7722
7722
|
return new mr(this.features[I], this.options.extent);
|
|
7723
7723
|
}, mr.prototype.loadGeometry = function() {
|
|
7724
7724
|
var I = this.rawGeometry;
|
|
7725
7725
|
this.geometry = [];
|
|
7726
|
-
for (var
|
|
7727
|
-
for (var C = I[
|
|
7726
|
+
for (var E = 0; E < I.length; E++) {
|
|
7727
|
+
for (var C = I[E], R = [], q = 0; q < C.length; q++) R.push(new u.Point$1(C[q][0], C[q][1]));
|
|
7728
7728
|
this.geometry.push(R);
|
|
7729
7729
|
}
|
|
7730
7730
|
return this.geometry;
|
|
7731
7731
|
}, mr.prototype.bbox = function() {
|
|
7732
7732
|
this.geometry || this.loadGeometry();
|
|
7733
|
-
for (var I = this.geometry,
|
|
7733
|
+
for (var I = this.geometry, E = 1 / 0, C = -1 / 0, R = 1 / 0, q = -1 / 0, J = 0; J < I.length; J++) for (var Q = I[J], D = 0; D < Q.length; D++) {
|
|
7734
7734
|
var $ = Q[D];
|
|
7735
|
-
|
|
7735
|
+
E = Math.min(E, $.x), C = Math.max(C, $.x), R = Math.min(R, $.y), q = Math.max(q, $.y);
|
|
7736
7736
|
}
|
|
7737
|
-
return [
|
|
7737
|
+
return [E, R, C, q];
|
|
7738
7738
|
}, mr.prototype.toGeoJSON = er.prototype.toGeoJSON;
|
|
7739
7739
|
var ai = Pi, Ir = dr;
|
|
7740
7740
|
function Pi(I) {
|
|
7741
|
-
var
|
|
7741
|
+
var E = new u.pbf();
|
|
7742
7742
|
return function(C, R) {
|
|
7743
7743
|
for (var q in C.layers) R.writeMessage(3, Rt, C.layers[q]);
|
|
7744
|
-
}(I,
|
|
7744
|
+
}(I, E), E.finish();
|
|
7745
7745
|
}
|
|
7746
|
-
function Rt(I,
|
|
7746
|
+
function Rt(I, E) {
|
|
7747
7747
|
var C;
|
|
7748
|
-
|
|
7748
|
+
E.writeVarintField(15, I.version || 1), E.writeStringField(1, I.name || ""), E.writeVarintField(5, I.extent || 4096);
|
|
7749
7749
|
var R = { keys: [], values: [], keycache: {}, valuecache: {} };
|
|
7750
|
-
for (C = 0; C < I.length; C++) R.feature = I.feature(C),
|
|
7750
|
+
for (C = 0; C < I.length; C++) R.feature = I.feature(C), E.writeMessage(2, zr, R);
|
|
7751
7751
|
var q = R.keys;
|
|
7752
|
-
for (C = 0; C < q.length; C++)
|
|
7752
|
+
for (C = 0; C < q.length; C++) E.writeStringField(3, q[C]);
|
|
7753
7753
|
var J = R.values;
|
|
7754
|
-
for (C = 0; C < J.length; C++)
|
|
7754
|
+
for (C = 0; C < J.length; C++) E.writeMessage(4, us, J[C]);
|
|
7755
7755
|
}
|
|
7756
|
-
function zr(I,
|
|
7756
|
+
function zr(I, E) {
|
|
7757
7757
|
var C = I.feature;
|
|
7758
|
-
C.id !== void 0 &&
|
|
7758
|
+
C.id !== void 0 && E.writeVarintField(1, C.id), E.writeMessage(2, Va, I), E.writeVarintField(3, C.type), E.writeMessage(4, qa, C);
|
|
7759
7759
|
}
|
|
7760
|
-
function Va(I,
|
|
7760
|
+
function Va(I, E) {
|
|
7761
7761
|
var C = I.feature, R = I.keys, q = I.values, J = I.keycache, Q = I.valuecache;
|
|
7762
7762
|
for (var D in C.properties) {
|
|
7763
7763
|
var $ = J[D];
|
|
7764
|
-
$ === void 0 && (R.push(D), J[D] = $ = R.length - 1),
|
|
7764
|
+
$ === void 0 && (R.push(D), J[D] = $ = R.length - 1), E.writeVarint($);
|
|
7765
7765
|
var re = C.properties[D], ge = typeof re;
|
|
7766
7766
|
ge !== "string" && ge !== "boolean" && ge !== "number" && (re = JSON.stringify(re));
|
|
7767
7767
|
var xe = ge + ":" + re, pe = Q[xe];
|
|
7768
|
-
pe === void 0 && (q.push(re), Q[xe] = pe = q.length - 1),
|
|
7768
|
+
pe === void 0 && (q.push(re), Q[xe] = pe = q.length - 1), E.writeVarint(pe);
|
|
7769
7769
|
}
|
|
7770
7770
|
}
|
|
7771
|
-
function fi(I,
|
|
7772
|
-
return (
|
|
7771
|
+
function fi(I, E) {
|
|
7772
|
+
return (E << 3) + (7 & I);
|
|
7773
7773
|
}
|
|
7774
7774
|
function Na(I) {
|
|
7775
7775
|
return I << 1 ^ I >> 31;
|
|
7776
7776
|
}
|
|
7777
|
-
function qa(I,
|
|
7777
|
+
function qa(I, E) {
|
|
7778
7778
|
for (var C = I.loadGeometry(), R = I.type, q = 0, J = 0, Q = C.length, D = 0; D < Q; D++) {
|
|
7779
7779
|
var $ = C[D], re = 1;
|
|
7780
|
-
R === 1 && (re = $.length),
|
|
7780
|
+
R === 1 && (re = $.length), E.writeVarint(fi(1, re));
|
|
7781
7781
|
for (var ge = R === 3 ? $.length - 1 : $.length, xe = 0; xe < ge; xe++) {
|
|
7782
|
-
xe === 1 && R !== 1 &&
|
|
7782
|
+
xe === 1 && R !== 1 && E.writeVarint(fi(2, ge - 1));
|
|
7783
7783
|
var pe = $[xe].x - q, _e = $[xe].y - J;
|
|
7784
|
-
|
|
7784
|
+
E.writeVarint(Na(pe)), E.writeVarint(Na(_e)), q += pe, J += _e;
|
|
7785
7785
|
}
|
|
7786
|
-
R === 3 &&
|
|
7786
|
+
R === 3 && E.writeVarint(fi(7, 1));
|
|
7787
7787
|
}
|
|
7788
7788
|
}
|
|
7789
|
-
function us(I,
|
|
7789
|
+
function us(I, E) {
|
|
7790
7790
|
var C = typeof I;
|
|
7791
|
-
C === "string" ?
|
|
7791
|
+
C === "string" ? E.writeStringField(1, I) : C === "boolean" ? E.writeBooleanField(7, I) : C === "number" && (I % 1 != 0 ? E.writeDoubleField(3, I) : I < 0 ? E.writeSVarintField(6, I) : E.writeVarintField(5, I));
|
|
7792
7792
|
}
|
|
7793
|
-
function Cn(I,
|
|
7794
|
-
$i(I, C, R), $i(
|
|
7793
|
+
function Cn(I, E, C, R) {
|
|
7794
|
+
$i(I, C, R), $i(E, 2 * C, 2 * R), $i(E, 2 * C + 1, 2 * R + 1);
|
|
7795
7795
|
}
|
|
7796
|
-
function $i(I,
|
|
7797
|
-
var R = I[
|
|
7798
|
-
I[
|
|
7796
|
+
function $i(I, E, C) {
|
|
7797
|
+
var R = I[E];
|
|
7798
|
+
I[E] = I[C], I[C] = R;
|
|
7799
7799
|
}
|
|
7800
|
-
function on(I,
|
|
7801
|
-
var q = I - C, J =
|
|
7800
|
+
function on(I, E, C, R) {
|
|
7801
|
+
var q = I - C, J = E - R;
|
|
7802
7802
|
return q * q + J * J;
|
|
7803
7803
|
}
|
|
7804
|
-
ai.fromVectorTileJs = Pi, ai.fromGeojsonVt = function(I,
|
|
7805
|
-
|
|
7804
|
+
ai.fromVectorTileJs = Pi, ai.fromGeojsonVt = function(I, E) {
|
|
7805
|
+
E = E || {};
|
|
7806
7806
|
var C = {};
|
|
7807
|
-
for (var R in I) C[R] = new dr(I[R].features,
|
|
7807
|
+
for (var R in I) C[R] = new dr(I[R].features, E), C[R].name = R, C[R].version = E.version, C[R].extent = E.extent;
|
|
7808
7808
|
return Pi({ layers: C });
|
|
7809
7809
|
}, ai.GeoJSONWrapper = Ir;
|
|
7810
7810
|
var na = function(I) {
|
|
7811
7811
|
return I[0];
|
|
7812
7812
|
}, aa = function(I) {
|
|
7813
7813
|
return I[1];
|
|
7814
|
-
}, kn = function(I,
|
|
7815
|
-
|
|
7816
|
-
for (var J = I.length < 65536 ? Uint16Array : Uint32Array, Q = this.ids = new J(I.length), D = this.coords = new q(2 * I.length), $ = 0; $ < I.length; $++) Q[$] = $, D[2 * $] =
|
|
7814
|
+
}, kn = function(I, E, C, R, q) {
|
|
7815
|
+
E === void 0 && (E = na), C === void 0 && (C = aa), R === void 0 && (R = 64), q === void 0 && (q = Float64Array), this.nodeSize = R, this.points = I;
|
|
7816
|
+
for (var J = I.length < 65536 ? Uint16Array : Uint32Array, Q = this.ids = new J(I.length), D = this.coords = new q(2 * I.length), $ = 0; $ < I.length; $++) Q[$] = $, D[2 * $] = E(I[$]), D[2 * $ + 1] = C(I[$]);
|
|
7817
7817
|
(function re(ge, xe, pe, _e, Oe, Re) {
|
|
7818
7818
|
if (!(Oe - _e <= pe)) {
|
|
7819
7819
|
var he = _e + Oe >> 1;
|
|
@@ -7834,7 +7834,7 @@ var Qv = { exports: {} };
|
|
|
7834
7834
|
}
|
|
7835
7835
|
})(Q, D, R, 0, Q.length - 1, 0);
|
|
7836
7836
|
};
|
|
7837
|
-
kn.prototype.range = function(I,
|
|
7837
|
+
kn.prototype.range = function(I, E, C, R) {
|
|
7838
7838
|
return function(q, J, Q, D, $, re, ge) {
|
|
7839
7839
|
for (var xe, pe, _e = [0, q.length - 1, 0], Oe = []; _e.length; ) {
|
|
7840
7840
|
var Re = _e.pop(), he = _e.pop(), Me = _e.pop();
|
|
@@ -7847,8 +7847,8 @@ var Qv = { exports: {} };
|
|
|
7847
7847
|
}
|
|
7848
7848
|
}
|
|
7849
7849
|
return Oe;
|
|
7850
|
-
}(this.ids, this.coords, I,
|
|
7851
|
-
}, kn.prototype.within = function(I,
|
|
7850
|
+
}(this.ids, this.coords, I, E, C, R, this.nodeSize);
|
|
7851
|
+
}, kn.prototype.within = function(I, E, C) {
|
|
7852
7852
|
return function(R, q, J, Q, D, $) {
|
|
7853
7853
|
for (var re = [0, R.length - 1, 0], ge = [], xe = D * D; re.length; ) {
|
|
7854
7854
|
var pe = re.pop(), _e = re.pop(), Oe = re.pop();
|
|
@@ -7861,37 +7861,37 @@ var Qv = { exports: {} };
|
|
|
7861
7861
|
}
|
|
7862
7862
|
}
|
|
7863
7863
|
return ge;
|
|
7864
|
-
}(this.ids, this.coords, I,
|
|
7864
|
+
}(this.ids, this.coords, I, E, C, this.nodeSize);
|
|
7865
7865
|
};
|
|
7866
7866
|
var xu = { minZoom: 0, maxZoom: 16, minPoints: 2, radius: 40, extent: 512, nodeSize: 64, log: !1, generateId: !1, reduce: null, map: function(I) {
|
|
7867
7867
|
return I;
|
|
7868
7868
|
} }, Hr = function(I) {
|
|
7869
7869
|
this.options = Mn(Object.create(xu), I), this.trees = new Array(this.options.maxZoom + 1);
|
|
7870
7870
|
};
|
|
7871
|
-
function vn(I,
|
|
7872
|
-
return { x: I, y:
|
|
7871
|
+
function vn(I, E, C, R, q) {
|
|
7872
|
+
return { x: I, y: E, zoom: 1 / 0, id: C, parentId: -1, numPoints: R, properties: q };
|
|
7873
7873
|
}
|
|
7874
|
-
function Ft(I,
|
|
7874
|
+
function Ft(I, E) {
|
|
7875
7875
|
var C = I.geometry.coordinates, R = C[1];
|
|
7876
|
-
return { x: Zi(C[0]), y: mt(R), zoom: 1 / 0, index:
|
|
7876
|
+
return { x: Zi(C[0]), y: mt(R), zoom: 1 / 0, index: E, parentId: -1 };
|
|
7877
7877
|
}
|
|
7878
7878
|
function sn(I) {
|
|
7879
|
-
return { type: "Feature", id: I.id, properties: ja(I), geometry: { type: "Point", coordinates: [(R = I.x, 360 * (R - 0.5)), (
|
|
7880
|
-
var
|
|
7879
|
+
return { type: "Feature", id: I.id, properties: ja(I), geometry: { type: "Point", coordinates: [(R = I.x, 360 * (R - 0.5)), (E = I.y, C = (180 - 360 * E) * Math.PI / 180, 360 * Math.atan(Math.exp(C)) / Math.PI - 90)] } };
|
|
7880
|
+
var E, C, R;
|
|
7881
7881
|
}
|
|
7882
7882
|
function ja(I) {
|
|
7883
|
-
var
|
|
7884
|
-
return Mn(Mn({}, I.properties), { cluster: !0, cluster_id: I.id, point_count:
|
|
7883
|
+
var E = I.numPoints, C = E >= 1e4 ? Math.round(E / 1e3) + "k" : E >= 1e3 ? Math.round(E / 100) / 10 + "k" : E;
|
|
7884
|
+
return Mn(Mn({}, I.properties), { cluster: !0, cluster_id: I.id, point_count: E, point_count_abbreviated: C });
|
|
7885
7885
|
}
|
|
7886
7886
|
function Zi(I) {
|
|
7887
7887
|
return I / 360 + 0.5;
|
|
7888
7888
|
}
|
|
7889
7889
|
function mt(I) {
|
|
7890
|
-
var
|
|
7890
|
+
var E = Math.sin(I * Math.PI / 180), C = 0.5 - 0.25 * Math.log((1 + E) / (1 - E)) / Math.PI;
|
|
7891
7891
|
return C < 0 ? 0 : C > 1 ? 1 : C;
|
|
7892
7892
|
}
|
|
7893
|
-
function Mn(I,
|
|
7894
|
-
for (var C in
|
|
7893
|
+
function Mn(I, E) {
|
|
7894
|
+
for (var C in E) I[C] = E[C];
|
|
7895
7895
|
return I;
|
|
7896
7896
|
}
|
|
7897
7897
|
function oi(I) {
|
|
@@ -7900,16 +7900,16 @@ var Qv = { exports: {} };
|
|
|
7900
7900
|
function Ci(I) {
|
|
7901
7901
|
return I.y;
|
|
7902
7902
|
}
|
|
7903
|
-
function bu(I,
|
|
7903
|
+
function bu(I, E, C, R, q, J) {
|
|
7904
7904
|
var Q = q - C, D = J - R;
|
|
7905
7905
|
if (Q !== 0 || D !== 0) {
|
|
7906
|
-
var $ = ((I - C) * Q + (
|
|
7906
|
+
var $ = ((I - C) * Q + (E - R) * D) / (Q * Q + D * D);
|
|
7907
7907
|
$ > 1 ? (C = q, R = J) : $ > 0 && (C += Q * $, R += D * $);
|
|
7908
7908
|
}
|
|
7909
|
-
return (Q = I - C) * Q + (D =
|
|
7909
|
+
return (Q = I - C) * Q + (D = E - R) * D;
|
|
7910
7910
|
}
|
|
7911
|
-
function Gi(I,
|
|
7912
|
-
var q = { id: I === void 0 ? null : I, type:
|
|
7911
|
+
function Gi(I, E, C, R) {
|
|
7912
|
+
var q = { id: I === void 0 ? null : I, type: E, geometry: C, tags: R, minX: 1 / 0, minY: 1 / 0, maxX: -1 / 0, maxY: -1 / 0 };
|
|
7913
7913
|
return function(J) {
|
|
7914
7914
|
var Q = J.geometry, D = J.type;
|
|
7915
7915
|
if (D === "Point" || D === "MultiPoint" || D === "LineString") vo(J, Q);
|
|
@@ -7917,18 +7917,18 @@ var Qv = { exports: {} };
|
|
|
7917
7917
|
else if (D === "MultiPolygon") for ($ = 0; $ < Q.length; $++) for (var re = 0; re < Q[$].length; re++) vo(J, Q[$][re]);
|
|
7918
7918
|
}(q), q;
|
|
7919
7919
|
}
|
|
7920
|
-
function vo(I,
|
|
7921
|
-
for (var C = 0; C <
|
|
7920
|
+
function vo(I, E) {
|
|
7921
|
+
for (var C = 0; C < E.length; C += 3) I.minX = Math.min(I.minX, E[C]), I.minY = Math.min(I.minY, E[C + 1]), I.maxX = Math.max(I.maxX, E[C]), I.maxY = Math.max(I.maxY, E[C + 1]);
|
|
7922
7922
|
}
|
|
7923
|
-
function ki(I,
|
|
7924
|
-
if (
|
|
7925
|
-
var q =
|
|
7926
|
-
if (C.promoteId ? $ =
|
|
7923
|
+
function ki(I, E, C, R) {
|
|
7924
|
+
if (E.geometry) {
|
|
7925
|
+
var q = E.geometry.coordinates, J = E.geometry.type, Q = Math.pow(C.tolerance / ((1 << C.maxZoom) * C.extent), 2), D = [], $ = E.id;
|
|
7926
|
+
if (C.promoteId ? $ = E.properties[C.promoteId] : C.generateId && ($ = R || 0), J === "Point") oa(q, D);
|
|
7927
7927
|
else if (J === "MultiPoint") for (var re = 0; re < q.length; re++) oa(q[re], D);
|
|
7928
7928
|
else if (J === "LineString") $a(q, D, Q, !1);
|
|
7929
7929
|
else if (J === "MultiLineString") {
|
|
7930
7930
|
if (C.lineMetrics) {
|
|
7931
|
-
for (re = 0; re < q.length; re++) $a(q[re], D = [], Q, !1), I.push(Gi($, "LineString", D,
|
|
7931
|
+
for (re = 0; re < q.length; re++) $a(q[re], D = [], Q, !1), I.push(Gi($, "LineString", D, E.properties));
|
|
7932
7932
|
return;
|
|
7933
7933
|
}
|
|
7934
7934
|
Mi(q, D, Q, !1);
|
|
@@ -7936,7 +7936,7 @@ var Qv = { exports: {} };
|
|
|
7936
7936
|
else {
|
|
7937
7937
|
if (J !== "MultiPolygon") {
|
|
7938
7938
|
if (J === "GeometryCollection") {
|
|
7939
|
-
for (re = 0; re <
|
|
7939
|
+
for (re = 0; re < E.geometry.geometries.length; re++) ki(I, { id: $, geometry: E.geometry.geometries[re], properties: E.properties }, C, R);
|
|
7940
7940
|
return;
|
|
7941
7941
|
}
|
|
7942
7942
|
throw new Error("Input data is not a valid GeoJSON object.");
|
|
@@ -7946,19 +7946,19 @@ var Qv = { exports: {} };
|
|
|
7946
7946
|
Mi(q[re], ge, Q, !0), D.push(ge);
|
|
7947
7947
|
}
|
|
7948
7948
|
}
|
|
7949
|
-
I.push(Gi($, J, D,
|
|
7949
|
+
I.push(Gi($, J, D, E.properties));
|
|
7950
7950
|
}
|
|
7951
7951
|
}
|
|
7952
|
-
function oa(I,
|
|
7953
|
-
|
|
7952
|
+
function oa(I, E) {
|
|
7953
|
+
E.push(zi(I[0])), E.push(sa(I[1])), E.push(0);
|
|
7954
7954
|
}
|
|
7955
|
-
function $a(I,
|
|
7955
|
+
function $a(I, E, C, R) {
|
|
7956
7956
|
for (var q, J, Q = 0, D = 0; D < I.length; D++) {
|
|
7957
7957
|
var $ = zi(I[D][0]), re = sa(I[D][1]);
|
|
7958
|
-
|
|
7958
|
+
E.push($), E.push(re), E.push(0), D > 0 && (Q += R ? (q * re - $ * J) / 2 : Math.sqrt(Math.pow($ - q, 2) + Math.pow(re - J, 2))), q = $, J = re;
|
|
7959
7959
|
}
|
|
7960
|
-
var ge =
|
|
7961
|
-
|
|
7960
|
+
var ge = E.length - 3;
|
|
7961
|
+
E[2] = 1, function xe(pe, _e, Oe, Re) {
|
|
7962
7962
|
for (var he, Me = Re, Ie = Oe - _e >> 1, Ee = Oe - _e, st = pe[_e], Ce = pe[_e + 1], yt = pe[Oe], Ot = pe[Oe + 1], ct = _e + 3; ct < Oe; ct += 3) {
|
|
7963
7963
|
var It = bu(pe[ct], pe[ct + 1], st, Ce, yt, Ot);
|
|
7964
7964
|
if (It > Me) he = ct, Me = It;
|
|
@@ -7968,23 +7968,23 @@ var Qv = { exports: {} };
|
|
|
7968
7968
|
}
|
|
7969
7969
|
}
|
|
7970
7970
|
Me > Re && (he - _e > 3 && xe(pe, _e, he, Re), pe[he + 2] = Me, Oe - he > 3 && xe(pe, he, Oe, Re));
|
|
7971
|
-
}(
|
|
7971
|
+
}(E, 0, ge, C), E[ge + 2] = 1, E.size = Math.abs(Q), E.start = 0, E.end = E.size;
|
|
7972
7972
|
}
|
|
7973
|
-
function Mi(I,
|
|
7973
|
+
function Mi(I, E, C, R) {
|
|
7974
7974
|
for (var q = 0; q < I.length; q++) {
|
|
7975
7975
|
var J = [];
|
|
7976
|
-
$a(I[q], J, C, R),
|
|
7976
|
+
$a(I[q], J, C, R), E.push(J);
|
|
7977
7977
|
}
|
|
7978
7978
|
}
|
|
7979
7979
|
function zi(I) {
|
|
7980
7980
|
return I / 360 + 0.5;
|
|
7981
7981
|
}
|
|
7982
7982
|
function sa(I) {
|
|
7983
|
-
var
|
|
7983
|
+
var E = Math.sin(I * Math.PI / 180), C = 0.5 - 0.25 * Math.log((1 + E) / (1 - E)) / Math.PI;
|
|
7984
7984
|
return C < 0 ? 0 : C > 1 ? 1 : C;
|
|
7985
7985
|
}
|
|
7986
|
-
function Wi(I,
|
|
7987
|
-
if (R /=
|
|
7986
|
+
function Wi(I, E, C, R, q, J, Q, D) {
|
|
7987
|
+
if (R /= E, J >= (C /= E) && Q < R) return I;
|
|
7988
7988
|
if (Q < C || J >= R) return null;
|
|
7989
7989
|
for (var $ = [], re = 0; re < I.length; re++) {
|
|
7990
7990
|
var ge = I[re], xe = ge.geometry, pe = ge.type, _e = q === 0 ? ge.minX : ge.minY, Oe = q === 0 ? ge.maxX : ge.maxY;
|
|
@@ -8010,86 +8010,86 @@ var Qv = { exports: {} };
|
|
|
8010
8010
|
}
|
|
8011
8011
|
return $.length ? $ : null;
|
|
8012
8012
|
}
|
|
8013
|
-
function ls(I,
|
|
8013
|
+
function ls(I, E, C, R, q) {
|
|
8014
8014
|
for (var J = 0; J < I.length; J += 3) {
|
|
8015
8015
|
var Q = I[J + q];
|
|
8016
|
-
Q >= C && Q <= R && (
|
|
8016
|
+
Q >= C && Q <= R && (E.push(I[J]), E.push(I[J + 1]), E.push(I[J + 2]));
|
|
8017
8017
|
}
|
|
8018
8018
|
}
|
|
8019
|
-
function cs(I,
|
|
8019
|
+
function cs(I, E, C, R, q, J, Q) {
|
|
8020
8020
|
for (var D, $, re = go(I), ge = q === 0 ? ps : Ga, xe = I.start, pe = 0; pe < I.length - 3; pe += 3) {
|
|
8021
8021
|
var _e = I[pe], Oe = I[pe + 1], Re = I[pe + 2], he = I[pe + 3], Me = I[pe + 4], Ie = q === 0 ? _e : Oe, Ee = q === 0 ? he : Me, st = !1;
|
|
8022
|
-
Q && (D = Math.sqrt(Math.pow(_e - he, 2) + Math.pow(Oe - Me, 2))), Ie < C ? Ee > C && ($ = ge(re, _e, Oe, he, Me, C), Q && (re.start = xe + D * $)) : Ie > R ? Ee < R && ($ = ge(re, _e, Oe, he, Me, R), Q && (re.start = xe + D * $)) : Za(re, _e, Oe, Re), Ee < C && Ie >= C && ($ = ge(re, _e, Oe, he, Me, C), st = !0), Ee > R && Ie <= R && ($ = ge(re, _e, Oe, he, Me, R), st = !0), !J && st && (Q && (re.end = xe + D * $),
|
|
8022
|
+
Q && (D = Math.sqrt(Math.pow(_e - he, 2) + Math.pow(Oe - Me, 2))), Ie < C ? Ee > C && ($ = ge(re, _e, Oe, he, Me, C), Q && (re.start = xe + D * $)) : Ie > R ? Ee < R && ($ = ge(re, _e, Oe, he, Me, R), Q && (re.start = xe + D * $)) : Za(re, _e, Oe, Re), Ee < C && Ie >= C && ($ = ge(re, _e, Oe, he, Me, C), st = !0), Ee > R && Ie <= R && ($ = ge(re, _e, Oe, he, Me, R), st = !0), !J && st && (Q && (re.end = xe + D * $), E.push(re), re = go(I)), Q && (xe += D);
|
|
8023
8023
|
}
|
|
8024
8024
|
var Ce = I.length - 3;
|
|
8025
|
-
_e = I[Ce], Oe = I[Ce + 1], Re = I[Ce + 2], (Ie = q === 0 ? _e : Oe) >= C && Ie <= R && Za(re, _e, Oe, Re), Ce = re.length - 3, J && Ce >= 3 && (re[Ce] !== re[0] || re[Ce + 1] !== re[1]) && Za(re, re[0], re[1], re[2]), re.length &&
|
|
8025
|
+
_e = I[Ce], Oe = I[Ce + 1], Re = I[Ce + 2], (Ie = q === 0 ? _e : Oe) >= C && Ie <= R && Za(re, _e, Oe, Re), Ce = re.length - 3, J && Ce >= 3 && (re[Ce] !== re[0] || re[Ce + 1] !== re[1]) && Za(re, re[0], re[1], re[2]), re.length && E.push(re);
|
|
8026
8026
|
}
|
|
8027
8027
|
function go(I) {
|
|
8028
|
-
var
|
|
8029
|
-
return
|
|
8028
|
+
var E = [];
|
|
8029
|
+
return E.size = I.size, E.start = I.start, E.end = I.end, E;
|
|
8030
8030
|
}
|
|
8031
|
-
function _o(I,
|
|
8032
|
-
for (var Q = 0; Q < I.length; Q++) cs(I[Q],
|
|
8031
|
+
function _o(I, E, C, R, q, J) {
|
|
8032
|
+
for (var Q = 0; Q < I.length; Q++) cs(I[Q], E, C, R, q, J, !1);
|
|
8033
8033
|
}
|
|
8034
|
-
function Za(I,
|
|
8035
|
-
I.push(
|
|
8034
|
+
function Za(I, E, C, R) {
|
|
8035
|
+
I.push(E), I.push(C), I.push(R);
|
|
8036
8036
|
}
|
|
8037
|
-
function ps(I,
|
|
8038
|
-
var Q = (J -
|
|
8037
|
+
function ps(I, E, C, R, q, J) {
|
|
8038
|
+
var Q = (J - E) / (R - E);
|
|
8039
8039
|
return I.push(J), I.push(C + (q - C) * Q), I.push(1), Q;
|
|
8040
8040
|
}
|
|
8041
|
-
function Ga(I,
|
|
8041
|
+
function Ga(I, E, C, R, q, J) {
|
|
8042
8042
|
var Q = (J - C) / (q - C);
|
|
8043
|
-
return I.push(
|
|
8043
|
+
return I.push(E + (R - E) * Q), I.push(J), I.push(1), Q;
|
|
8044
8044
|
}
|
|
8045
|
-
function xo(I,
|
|
8045
|
+
function xo(I, E) {
|
|
8046
8046
|
for (var C = [], R = 0; R < I.length; R++) {
|
|
8047
8047
|
var q, J = I[R], Q = J.type;
|
|
8048
|
-
if (Q === "Point" || Q === "MultiPoint" || Q === "LineString") q = ua(J.geometry,
|
|
8048
|
+
if (Q === "Point" || Q === "MultiPoint" || Q === "LineString") q = ua(J.geometry, E);
|
|
8049
8049
|
else if (Q === "MultiLineString" || Q === "Polygon") {
|
|
8050
8050
|
q = [];
|
|
8051
|
-
for (var D = 0; D < J.geometry.length; D++) q.push(ua(J.geometry[D],
|
|
8051
|
+
for (var D = 0; D < J.geometry.length; D++) q.push(ua(J.geometry[D], E));
|
|
8052
8052
|
} else if (Q === "MultiPolygon") for (q = [], D = 0; D < J.geometry.length; D++) {
|
|
8053
|
-
for (var $ = [], re = 0; re < J.geometry[D].length; re++) $.push(ua(J.geometry[D][re],
|
|
8053
|
+
for (var $ = [], re = 0; re < J.geometry[D].length; re++) $.push(ua(J.geometry[D][re], E));
|
|
8054
8054
|
q.push($);
|
|
8055
8055
|
}
|
|
8056
8056
|
C.push(Gi(J.id, Q, q, J.tags));
|
|
8057
8057
|
}
|
|
8058
8058
|
return C;
|
|
8059
8059
|
}
|
|
8060
|
-
function ua(I,
|
|
8060
|
+
function ua(I, E) {
|
|
8061
8061
|
var C = [];
|
|
8062
8062
|
C.size = I.size, I.start !== void 0 && (C.start = I.start, C.end = I.end);
|
|
8063
|
-
for (var R = 0; R < I.length; R += 3) C.push(I[R] +
|
|
8063
|
+
for (var R = 0; R < I.length; R += 3) C.push(I[R] + E, I[R + 1], I[R + 2]);
|
|
8064
8064
|
return C;
|
|
8065
8065
|
}
|
|
8066
|
-
function bo(I,
|
|
8066
|
+
function bo(I, E) {
|
|
8067
8067
|
if (I.transformed) return I;
|
|
8068
8068
|
var C, R, q, J = 1 << I.z, Q = I.x, D = I.y;
|
|
8069
8069
|
for (C = 0; C < I.features.length; C++) {
|
|
8070
8070
|
var $ = I.features[C], re = $.geometry, ge = $.type;
|
|
8071
|
-
if ($.geometry = [], ge === 1) for (R = 0; R < re.length; R += 2) $.geometry.push(wo(re[R], re[R + 1],
|
|
8071
|
+
if ($.geometry = [], ge === 1) for (R = 0; R < re.length; R += 2) $.geometry.push(wo(re[R], re[R + 1], E, J, Q, D));
|
|
8072
8072
|
else for (R = 0; R < re.length; R++) {
|
|
8073
8073
|
var xe = [];
|
|
8074
|
-
for (q = 0; q < re[R].length; q += 2) xe.push(wo(re[R][q], re[R][q + 1],
|
|
8074
|
+
for (q = 0; q < re[R].length; q += 2) xe.push(wo(re[R][q], re[R][q + 1], E, J, Q, D));
|
|
8075
8075
|
$.geometry.push(xe);
|
|
8076
8076
|
}
|
|
8077
8077
|
}
|
|
8078
8078
|
return I.transformed = !0, I;
|
|
8079
8079
|
}
|
|
8080
|
-
function wo(I,
|
|
8081
|
-
return [Math.round(C * (I * R - q)), Math.round(C * (
|
|
8080
|
+
function wo(I, E, C, R, q, J) {
|
|
8081
|
+
return [Math.round(C * (I * R - q)), Math.round(C * (E * R - J))];
|
|
8082
8082
|
}
|
|
8083
|
-
function hs(I,
|
|
8084
|
-
for (var J =
|
|
8083
|
+
function hs(I, E, C, R, q) {
|
|
8084
|
+
for (var J = E === q.maxZoom ? 0 : q.tolerance / ((1 << E) * q.extent), Q = { features: [], numPoints: 0, numSimplified: 0, numFeatures: 0, source: null, x: C, y: R, z: E, transformed: !1, minX: 2, minY: 1, maxX: -1, maxY: 0 }, D = 0; D < I.length; D++) {
|
|
8085
8085
|
Q.numFeatures++, fs(Q, I[D], J, q);
|
|
8086
8086
|
var $ = I[D].minX, re = I[D].minY, ge = I[D].maxX, xe = I[D].maxY;
|
|
8087
8087
|
$ < Q.minX && (Q.minX = $), re < Q.minY && (Q.minY = re), ge > Q.maxX && (Q.maxX = ge), xe > Q.maxY && (Q.maxY = xe);
|
|
8088
8088
|
}
|
|
8089
8089
|
return Q;
|
|
8090
8090
|
}
|
|
8091
|
-
function fs(I,
|
|
8092
|
-
var q =
|
|
8091
|
+
function fs(I, E, C, R) {
|
|
8092
|
+
var q = E.geometry, J = E.type, Q = [];
|
|
8093
8093
|
if (J === "Point" || J === "MultiPoint") for (var D = 0; D < q.length; D += 3) Q.push(q[D]), Q.push(q[D + 1]), I.numPoints++, I.numSimplified++;
|
|
8094
8094
|
else if (J === "LineString") la(Q, q, I, C, !1, !1);
|
|
8095
8095
|
else if (J === "MultiLineString" || J === "Polygon") for (D = 0; D < q.length; D++) la(Q, q[D], I, C, J === "Polygon", D === 0);
|
|
@@ -8098,20 +8098,20 @@ var Qv = { exports: {} };
|
|
|
8098
8098
|
for (D = 0; D < re.length; D++) la(Q, re[D], I, C, !0, D === 0);
|
|
8099
8099
|
}
|
|
8100
8100
|
if (Q.length) {
|
|
8101
|
-
var ge =
|
|
8101
|
+
var ge = E.tags || null;
|
|
8102
8102
|
if (J === "LineString" && R.lineMetrics) {
|
|
8103
|
-
for (var xe in ge = {},
|
|
8103
|
+
for (var xe in ge = {}, E.tags) ge[xe] = E.tags[xe];
|
|
8104
8104
|
ge.mapbox_clip_start = q.start / q.size, ge.mapbox_clip_end = q.end / q.size;
|
|
8105
8105
|
}
|
|
8106
8106
|
var pe = { geometry: Q, type: J === "Polygon" || J === "MultiPolygon" ? 3 : J === "LineString" || J === "MultiLineString" ? 2 : 1, tags: ge };
|
|
8107
|
-
|
|
8107
|
+
E.id !== null && (pe.id = E.id), I.features.push(pe);
|
|
8108
8108
|
}
|
|
8109
8109
|
}
|
|
8110
|
-
function la(I,
|
|
8110
|
+
function la(I, E, C, R, q, J) {
|
|
8111
8111
|
var Q = R * R;
|
|
8112
|
-
if (R > 0 &&
|
|
8112
|
+
if (R > 0 && E.size < (q ? Q : R)) C.numPoints += E.length / 3;
|
|
8113
8113
|
else {
|
|
8114
|
-
for (var D = [], $ = 0; $ <
|
|
8114
|
+
for (var D = [], $ = 0; $ < E.length; $ += 3) (R === 0 || E[$ + 2] > Q) && (C.numSimplified++, D.push(E[$]), D.push(E[$ + 1])), C.numPoints++;
|
|
8115
8115
|
q && function(re, ge) {
|
|
8116
8116
|
for (var xe = 0, pe = 0, _e = re.length, Oe = _e - 2; pe < _e; Oe = pe, pe += 2) xe += (re[pe] - re[Oe]) * (re[pe + 1] + re[Oe + 1]);
|
|
8117
8117
|
if (xe > 0 === ge) for (pe = 0, _e = re.length; pe < _e / 2; pe += 2) {
|
|
@@ -8121,37 +8121,37 @@ var Qv = { exports: {} };
|
|
|
8121
8121
|
}(D, J), I.push(D);
|
|
8122
8122
|
}
|
|
8123
8123
|
}
|
|
8124
|
-
function gn(I,
|
|
8125
|
-
var C = (
|
|
8124
|
+
function gn(I, E) {
|
|
8125
|
+
var C = (E = this.options = function(q, J) {
|
|
8126
8126
|
for (var Q in J) q[Q] = J[Q];
|
|
8127
8127
|
return q;
|
|
8128
|
-
}(Object.create(this.options),
|
|
8129
|
-
if (C && console.time("preprocess data"),
|
|
8130
|
-
if (
|
|
8128
|
+
}(Object.create(this.options), E)).debug;
|
|
8129
|
+
if (C && console.time("preprocess data"), E.maxZoom < 0 || E.maxZoom > 24) throw new Error("maxZoom should be in the 0-24 range");
|
|
8130
|
+
if (E.promoteId && E.generateId) throw new Error("promoteId and generateId cannot be used together.");
|
|
8131
8131
|
var R = function(q, J) {
|
|
8132
8132
|
var Q = [];
|
|
8133
8133
|
if (q.type === "FeatureCollection") for (var D = 0; D < q.features.length; D++) ki(Q, q.features[D], J, D);
|
|
8134
8134
|
else ki(Q, q.type === "Feature" ? q : { geometry: q }, J);
|
|
8135
8135
|
return Q;
|
|
8136
|
-
}(I,
|
|
8137
|
-
this.tiles = {}, this.tileCoords = [], C && (console.timeEnd("preprocess data"), console.log("index: maxZoom: %d, maxPoints: %d",
|
|
8136
|
+
}(I, E);
|
|
8137
|
+
this.tiles = {}, this.tileCoords = [], C && (console.timeEnd("preprocess data"), console.log("index: maxZoom: %d, maxPoints: %d", E.indexMaxZoom, E.indexMaxPoints), console.time("generate tiles"), this.stats = {}, this.total = 0), (R = function(q, J) {
|
|
8138
8138
|
var Q = J.buffer / J.extent, D = q, $ = Wi(q, 1, -1 - Q, Q, 0, -1, 2, J), re = Wi(q, 1, 1 - Q, 2 + Q, 0, -1, 2, J);
|
|
8139
8139
|
return ($ || re) && (D = Wi(q, 1, -Q, 1 + Q, 0, -1, 2, J) || [], $ && (D = xo($, 1).concat(D)), re && (D = D.concat(xo(re, -1)))), D;
|
|
8140
|
-
}(R,
|
|
8140
|
+
}(R, E)).length && this.splitTile(R, 0, 0, 0), C && (R.length && console.log("features: %d, points: %d", this.tiles[0].numFeatures, this.tiles[0].numPoints), console.timeEnd("generate tiles"), console.log("tiles generated:", this.total, JSON.stringify(this.stats)));
|
|
8141
8141
|
}
|
|
8142
|
-
function _n(I,
|
|
8143
|
-
return 32 * ((1 << I) * C +
|
|
8142
|
+
function _n(I, E, C) {
|
|
8143
|
+
return 32 * ((1 << I) * C + E) + I;
|
|
8144
8144
|
}
|
|
8145
|
-
function Wa(I,
|
|
8145
|
+
function Wa(I, E) {
|
|
8146
8146
|
var C = I.tileID.canonical;
|
|
8147
|
-
if (!this._geoJSONIndex) return
|
|
8147
|
+
if (!this._geoJSONIndex) return E(null, null);
|
|
8148
8148
|
var R = this._geoJSONIndex.getTile(C.z, C.x, C.y);
|
|
8149
|
-
if (!R) return
|
|
8150
|
-
var q = new
|
|
8151
|
-
J.byteOffset === 0 && J.byteLength === J.buffer.byteLength || (J = new Uint8Array(J)),
|
|
8149
|
+
if (!R) return E(null, null);
|
|
8150
|
+
var q = new Gt(R.features), J = ai(q);
|
|
8151
|
+
J.byteOffset === 0 && J.byteLength === J.buffer.byteLength || (J = new Uint8Array(J)), E(null, { vectorTile: q, rawData: J.buffer });
|
|
8152
8152
|
}
|
|
8153
8153
|
Hr.prototype.load = function(I) {
|
|
8154
|
-
var
|
|
8154
|
+
var E = this.options, C = E.log, R = E.minZoom, q = E.maxZoom, J = E.nodeSize;
|
|
8155
8155
|
C && console.time("total time");
|
|
8156
8156
|
var Q = "prepare " + I.length + " points";
|
|
8157
8157
|
C && console.time(Q), this.points = I;
|
|
@@ -8162,22 +8162,22 @@ var Qv = { exports: {} };
|
|
|
8162
8162
|
D = this._cluster(D, re), this.trees[re] = new kn(D, oi, Ci, J, Float32Array), C && console.log("z%d: %d clusters in %dms", re, D.length, +Date.now() - ge);
|
|
8163
8163
|
}
|
|
8164
8164
|
return C && console.timeEnd("total time"), this;
|
|
8165
|
-
}, Hr.prototype.getClusters = function(I,
|
|
8165
|
+
}, Hr.prototype.getClusters = function(I, E) {
|
|
8166
8166
|
var C = ((I[0] + 180) % 360 + 360) % 360 - 180, R = Math.max(-90, Math.min(90, I[1])), q = I[2] === 180 ? 180 : ((I[2] + 180) % 360 + 360) % 360 - 180, J = Math.max(-90, Math.min(90, I[3]));
|
|
8167
8167
|
if (I[2] - I[0] >= 360) C = -180, q = 180;
|
|
8168
8168
|
else if (C > q) {
|
|
8169
|
-
var Q = this.getClusters([C, R, 180, J],
|
|
8169
|
+
var Q = this.getClusters([C, R, 180, J], E), D = this.getClusters([-180, R, q, J], E);
|
|
8170
8170
|
return Q.concat(D);
|
|
8171
8171
|
}
|
|
8172
|
-
for (var $ = this.trees[this._limitZoom(
|
|
8172
|
+
for (var $ = this.trees[this._limitZoom(E)], re = [], ge = 0, xe = $.range(Zi(C), mt(J), Zi(q), mt(R)); ge < xe.length; ge += 1) {
|
|
8173
8173
|
var pe = $.points[xe[ge]];
|
|
8174
8174
|
re.push(pe.numPoints ? sn(pe) : this.points[pe.index]);
|
|
8175
8175
|
}
|
|
8176
8176
|
return re;
|
|
8177
8177
|
}, Hr.prototype.getChildren = function(I) {
|
|
8178
|
-
var
|
|
8178
|
+
var E = this._getOriginId(I), C = this._getOriginZoom(I), R = "No cluster with the specified id.", q = this.trees[C];
|
|
8179
8179
|
if (!q) throw new Error(R);
|
|
8180
|
-
var J = q.points[
|
|
8180
|
+
var J = q.points[E];
|
|
8181
8181
|
if (!J) throw new Error(R);
|
|
8182
8182
|
for (var Q = this.options.radius / (this.options.extent * Math.pow(2, C - 1)), D = [], $ = 0, re = q.within(J.x, J.y, Q); $ < re.length; $ += 1) {
|
|
8183
8183
|
var ge = q.points[re[$]];
|
|
@@ -8185,46 +8185,46 @@ var Qv = { exports: {} };
|
|
|
8185
8185
|
}
|
|
8186
8186
|
if (D.length === 0) throw new Error(R);
|
|
8187
8187
|
return D;
|
|
8188
|
-
}, Hr.prototype.getLeaves = function(I,
|
|
8188
|
+
}, Hr.prototype.getLeaves = function(I, E, C) {
|
|
8189
8189
|
var R = [];
|
|
8190
|
-
return this._appendLeaves(R, I,
|
|
8191
|
-
}, Hr.prototype.getTile = function(I,
|
|
8190
|
+
return this._appendLeaves(R, I, E = E || 10, C = C || 0, 0), R;
|
|
8191
|
+
}, Hr.prototype.getTile = function(I, E, C) {
|
|
8192
8192
|
var R = this.trees[this._limitZoom(I)], q = Math.pow(2, I), J = this.options, Q = J.radius / J.extent, D = (C - Q) / q, $ = (C + 1 + Q) / q, re = { features: [] };
|
|
8193
|
-
return this._addTileFeatures(R.range((
|
|
8193
|
+
return this._addTileFeatures(R.range((E - Q) / q, D, (E + 1 + Q) / q, $), R.points, E, C, q, re), E === 0 && this._addTileFeatures(R.range(1 - Q / q, D, 1, $), R.points, q, C, q, re), E === q - 1 && this._addTileFeatures(R.range(0, D, Q / q, $), R.points, -1, C, q, re), re.features.length ? re : null;
|
|
8194
8194
|
}, Hr.prototype.getClusterExpansionZoom = function(I) {
|
|
8195
|
-
for (var
|
|
8195
|
+
for (var E = this._getOriginZoom(I) - 1; E <= this.options.maxZoom; ) {
|
|
8196
8196
|
var C = this.getChildren(I);
|
|
8197
|
-
if (
|
|
8197
|
+
if (E++, C.length !== 1) break;
|
|
8198
8198
|
I = C[0].properties.cluster_id;
|
|
8199
8199
|
}
|
|
8200
|
-
return
|
|
8201
|
-
}, Hr.prototype._appendLeaves = function(I,
|
|
8202
|
-
for (var J = 0, Q = this.getChildren(
|
|
8200
|
+
return E;
|
|
8201
|
+
}, Hr.prototype._appendLeaves = function(I, E, C, R, q) {
|
|
8202
|
+
for (var J = 0, Q = this.getChildren(E); J < Q.length; J += 1) {
|
|
8203
8203
|
var D = Q[J], $ = D.properties;
|
|
8204
8204
|
if ($ && $.cluster ? q + $.point_count <= R ? q += $.point_count : q = this._appendLeaves(I, $.cluster_id, C, R, q) : q < R ? q++ : I.push(D), I.length === C) break;
|
|
8205
8205
|
}
|
|
8206
8206
|
return q;
|
|
8207
|
-
}, Hr.prototype._addTileFeatures = function(I,
|
|
8207
|
+
}, Hr.prototype._addTileFeatures = function(I, E, C, R, q, J) {
|
|
8208
8208
|
for (var Q = 0, D = I; Q < D.length; Q += 1) {
|
|
8209
|
-
var $ =
|
|
8209
|
+
var $ = E[D[Q]], re = $.numPoints, ge = { type: 1, geometry: [[Math.round(this.options.extent * ($.x * q - C)), Math.round(this.options.extent * ($.y * q - R))]], tags: re ? ja($) : this.points[$.index].properties }, xe = void 0;
|
|
8210
8210
|
re ? xe = $.id : this.options.generateId ? xe = $.index : this.points[$.index].id && (xe = this.points[$.index].id), xe !== void 0 && (ge.id = xe), J.features.push(ge);
|
|
8211
8211
|
}
|
|
8212
8212
|
}, Hr.prototype._limitZoom = function(I) {
|
|
8213
8213
|
return Math.max(this.options.minZoom, Math.min(+I, this.options.maxZoom + 1));
|
|
8214
|
-
}, Hr.prototype._cluster = function(I,
|
|
8215
|
-
for (var C = [], R = this.options, q = R.reduce, J = R.minPoints, Q = R.radius / (R.extent * Math.pow(2,
|
|
8214
|
+
}, Hr.prototype._cluster = function(I, E) {
|
|
8215
|
+
for (var C = [], R = this.options, q = R.reduce, J = R.minPoints, Q = R.radius / (R.extent * Math.pow(2, E)), D = 0; D < I.length; D++) {
|
|
8216
8216
|
var $ = I[D];
|
|
8217
|
-
if (!($.zoom <=
|
|
8218
|
-
$.zoom =
|
|
8219
|
-
for (var re = this.trees[
|
|
8217
|
+
if (!($.zoom <= E)) {
|
|
8218
|
+
$.zoom = E;
|
|
8219
|
+
for (var re = this.trees[E + 1], ge = re.within($.x, $.y, Q), xe = $.numPoints || 1, pe = xe, _e = 0, Oe = ge; _e < Oe.length; _e += 1) {
|
|
8220
8220
|
var Re = re.points[Oe[_e]];
|
|
8221
|
-
Re.zoom >
|
|
8221
|
+
Re.zoom > E && (pe += Re.numPoints || 1);
|
|
8222
8222
|
}
|
|
8223
8223
|
if (pe >= J) {
|
|
8224
|
-
for (var he = $.x * xe, Me = $.y * xe, Ie = q && xe > 1 ? this._map($, !0) : null, Ee = (D << 5) + (
|
|
8224
|
+
for (var he = $.x * xe, Me = $.y * xe, Ie = q && xe > 1 ? this._map($, !0) : null, Ee = (D << 5) + (E + 1) + this.points.length, st = 0, Ce = ge; st < Ce.length; st += 1) {
|
|
8225
8225
|
var yt = re.points[Ce[st]];
|
|
8226
|
-
if (!(yt.zoom <=
|
|
8227
|
-
yt.zoom =
|
|
8226
|
+
if (!(yt.zoom <= E)) {
|
|
8227
|
+
yt.zoom = E;
|
|
8228
8228
|
var Ot = yt.numPoints || 1;
|
|
8229
8229
|
he += yt.x * Ot, Me += yt.y * Ot, yt.parentId = Ee, q && (Ie || (Ie = this._map($, !0)), q(Ie, this._map(yt)));
|
|
8230
8230
|
}
|
|
@@ -8232,7 +8232,7 @@ var Qv = { exports: {} };
|
|
|
8232
8232
|
$.parentId = Ee, C.push(vn(he / pe, Me / pe, Ee, pe, Ie));
|
|
8233
8233
|
} else if (C.push($), pe > 1) for (var ct = 0, It = ge; ct < It.length; ct += 1) {
|
|
8234
8234
|
var gt = re.points[It[ct]];
|
|
8235
|
-
gt.zoom <=
|
|
8235
|
+
gt.zoom <= E || (gt.zoom = E, C.push(gt));
|
|
8236
8236
|
}
|
|
8237
8237
|
}
|
|
8238
8238
|
}
|
|
@@ -8241,46 +8241,46 @@ var Qv = { exports: {} };
|
|
|
8241
8241
|
return I - this.points.length >> 5;
|
|
8242
8242
|
}, Hr.prototype._getOriginZoom = function(I) {
|
|
8243
8243
|
return (I - this.points.length) % 32;
|
|
8244
|
-
}, Hr.prototype._map = function(I,
|
|
8245
|
-
if (I.numPoints) return
|
|
8244
|
+
}, Hr.prototype._map = function(I, E) {
|
|
8245
|
+
if (I.numPoints) return E ? Mn({}, I.properties) : I.properties;
|
|
8246
8246
|
var C = this.points[I.index].properties, R = this.options.map(C);
|
|
8247
|
-
return
|
|
8248
|
-
}, gn.prototype.options = { maxZoom: 14, indexMaxZoom: 5, indexMaxPoints: 1e5, tolerance: 3, extent: 4096, buffer: 64, lineMetrics: !1, promoteId: null, generateId: !1, debug: 0 }, gn.prototype.splitTile = function(I,
|
|
8249
|
-
for (var D = [I,
|
|
8250
|
-
R = D.pop(), C = D.pop(),
|
|
8251
|
-
var ge = 1 <<
|
|
8252
|
-
if (!pe && (re > 1 && console.time("creation"), pe = this.tiles[xe] = hs(I,
|
|
8253
|
-
re > 1 && (console.log("tile z%d-%d-%d (features: %d, points: %d, simplified: %d)",
|
|
8254
|
-
var _e = "z" +
|
|
8247
|
+
return E && R === C ? Mn({}, R) : R;
|
|
8248
|
+
}, gn.prototype.options = { maxZoom: 14, indexMaxZoom: 5, indexMaxPoints: 1e5, tolerance: 3, extent: 4096, buffer: 64, lineMetrics: !1, promoteId: null, generateId: !1, debug: 0 }, gn.prototype.splitTile = function(I, E, C, R, q, J, Q) {
|
|
8249
|
+
for (var D = [I, E, C, R], $ = this.options, re = $.debug; D.length; ) {
|
|
8250
|
+
R = D.pop(), C = D.pop(), E = D.pop(), I = D.pop();
|
|
8251
|
+
var ge = 1 << E, xe = _n(E, C, R), pe = this.tiles[xe];
|
|
8252
|
+
if (!pe && (re > 1 && console.time("creation"), pe = this.tiles[xe] = hs(I, E, C, R, $), this.tileCoords.push({ z: E, x: C, y: R }), re)) {
|
|
8253
|
+
re > 1 && (console.log("tile z%d-%d-%d (features: %d, points: %d, simplified: %d)", E, C, R, pe.numFeatures, pe.numPoints, pe.numSimplified), console.timeEnd("creation"));
|
|
8254
|
+
var _e = "z" + E;
|
|
8255
8255
|
this.stats[_e] = (this.stats[_e] || 0) + 1, this.total++;
|
|
8256
8256
|
}
|
|
8257
8257
|
if (pe.source = I, q) {
|
|
8258
|
-
if (
|
|
8259
|
-
var Oe = 1 << q -
|
|
8258
|
+
if (E === $.maxZoom || E === q) continue;
|
|
8259
|
+
var Oe = 1 << q - E;
|
|
8260
8260
|
if (C !== Math.floor(J / Oe) || R !== Math.floor(Q / Oe)) continue;
|
|
8261
|
-
} else if (
|
|
8261
|
+
} else if (E === $.indexMaxZoom || pe.numPoints <= $.indexMaxPoints) continue;
|
|
8262
8262
|
if (pe.source = null, I.length !== 0) {
|
|
8263
8263
|
re > 1 && console.time("clipping");
|
|
8264
8264
|
var Re, he, Me, Ie, Ee, st, Ce = 0.5 * $.buffer / $.extent, yt = 0.5 - Ce, Ot = 0.5 + Ce, ct = 1 + Ce;
|
|
8265
|
-
Re = he = Me = Ie = null, Ee = Wi(I, ge, C - Ce, C + Ot, 0, pe.minX, pe.maxX, $), st = Wi(I, ge, C + yt, C + ct, 0, pe.minX, pe.maxX, $), I = null, Ee && (Re = Wi(Ee, ge, R - Ce, R + Ot, 1, pe.minY, pe.maxY, $), he = Wi(Ee, ge, R + yt, R + ct, 1, pe.minY, pe.maxY, $), Ee = null), st && (Me = Wi(st, ge, R - Ce, R + Ot, 1, pe.minY, pe.maxY, $), Ie = Wi(st, ge, R + yt, R + ct, 1, pe.minY, pe.maxY, $), st = null), re > 1 && console.timeEnd("clipping"), D.push(Re || [],
|
|
8265
|
+
Re = he = Me = Ie = null, Ee = Wi(I, ge, C - Ce, C + Ot, 0, pe.minX, pe.maxX, $), st = Wi(I, ge, C + yt, C + ct, 0, pe.minX, pe.maxX, $), I = null, Ee && (Re = Wi(Ee, ge, R - Ce, R + Ot, 1, pe.minY, pe.maxY, $), he = Wi(Ee, ge, R + yt, R + ct, 1, pe.minY, pe.maxY, $), Ee = null), st && (Me = Wi(st, ge, R - Ce, R + Ot, 1, pe.minY, pe.maxY, $), Ie = Wi(st, ge, R + yt, R + ct, 1, pe.minY, pe.maxY, $), st = null), re > 1 && console.timeEnd("clipping"), D.push(Re || [], E + 1, 2 * C, 2 * R), D.push(he || [], E + 1, 2 * C, 2 * R + 1), D.push(Me || [], E + 1, 2 * C + 1, 2 * R), D.push(Ie || [], E + 1, 2 * C + 1, 2 * R + 1);
|
|
8266
8266
|
}
|
|
8267
8267
|
}
|
|
8268
|
-
}, gn.prototype.getTile = function(I,
|
|
8268
|
+
}, gn.prototype.getTile = function(I, E, C) {
|
|
8269
8269
|
var R = this.options, q = R.extent, J = R.debug;
|
|
8270
8270
|
if (I < 0 || I > 24) return null;
|
|
8271
|
-
var Q = 1 << I, D = _n(I,
|
|
8271
|
+
var Q = 1 << I, D = _n(I, E = (E % Q + Q) % Q, C);
|
|
8272
8272
|
if (this.tiles[D]) return bo(this.tiles[D], q);
|
|
8273
|
-
J > 1 && console.log("drilling down to z%d-%d-%d", I,
|
|
8274
|
-
for (var $, re = I, ge =
|
|
8275
|
-
return $ && $.source ? (J > 1 && console.log("found parent tile z%d-%d-%d", re, ge, xe), J > 1 && console.time("drilling down"), this.splitTile($.source, re, ge, xe, I,
|
|
8273
|
+
J > 1 && console.log("drilling down to z%d-%d-%d", I, E, C);
|
|
8274
|
+
for (var $, re = I, ge = E, xe = C; !$ && re > 0; ) re--, ge = Math.floor(ge / 2), xe = Math.floor(xe / 2), $ = this.tiles[_n(re, ge, xe)];
|
|
8275
|
+
return $ && $.source ? (J > 1 && console.log("found parent tile z%d-%d-%d", re, ge, xe), J > 1 && console.time("drilling down"), this.splitTile($.source, re, ge, xe, I, E, C), J > 1 && console.timeEnd("drilling down"), this.tiles[D] ? bo(this.tiles[D], q) : null) : null;
|
|
8276
8276
|
};
|
|
8277
8277
|
var So = function(I) {
|
|
8278
|
-
function
|
|
8278
|
+
function E(C, R, q, J) {
|
|
8279
8279
|
I.call(this, C, R, q, Wa), J && (this.loadGeoJSON = J);
|
|
8280
8280
|
}
|
|
8281
|
-
return I && (
|
|
8281
|
+
return I && (E.__proto__ = I), (E.prototype = Object.create(I && I.prototype)).constructor = E, E.prototype.loadData = function(C, R) {
|
|
8282
8282
|
this._pendingCallback && this._pendingCallback(null, { abandoned: !0 }), this._pendingCallback = R, this._pendingLoadDataParams = C, this._state && this._state !== "Idle" ? this._state = "NeedsLoadData" : (this._state = "Coalescing", this._loadData());
|
|
8283
|
-
},
|
|
8283
|
+
}, E.prototype._loadData = function() {
|
|
8284
8284
|
var C = this;
|
|
8285
8285
|
if (this._pendingCallback && this._pendingLoadDataParams) {
|
|
8286
8286
|
var R = this._pendingCallback, q = this._pendingLoadDataParams;
|
|
@@ -8345,12 +8345,12 @@ var Qv = { exports: {} };
|
|
|
8345
8345
|
R(null, ge);
|
|
8346
8346
|
});
|
|
8347
8347
|
}
|
|
8348
|
-
},
|
|
8348
|
+
}, E.prototype.coalesce = function() {
|
|
8349
8349
|
this._state === "Coalescing" ? this._state = "Idle" : this._state === "NeedsLoadData" && (this._state = "Coalescing", this._loadData());
|
|
8350
|
-
},
|
|
8350
|
+
}, E.prototype.reloadTile = function(C, R) {
|
|
8351
8351
|
var q = this.loaded;
|
|
8352
8352
|
return q && q[C.uid] ? I.prototype.reloadTile.call(this, C, R) : this.loadTile(C, R);
|
|
8353
|
-
},
|
|
8353
|
+
}, E.prototype.loadGeoJSON = function(C, R) {
|
|
8354
8354
|
if (C.request) u.getJSON(C.request, R);
|
|
8355
8355
|
else {
|
|
8356
8356
|
if (typeof C.data != "string") return R(new Error("Input data given to '" + C.source + "' is not a valid GeoJSON object."));
|
|
@@ -8360,75 +8360,75 @@ var Qv = { exports: {} };
|
|
|
8360
8360
|
return R(new Error("Input data given to '" + C.source + "' is not a valid GeoJSON object."));
|
|
8361
8361
|
}
|
|
8362
8362
|
}
|
|
8363
|
-
},
|
|
8363
|
+
}, E.prototype.removeSource = function(C, R) {
|
|
8364
8364
|
this._pendingCallback && this._pendingCallback(null, { abandoned: !0 }), R();
|
|
8365
|
-
},
|
|
8365
|
+
}, E.prototype.getClusterExpansionZoom = function(C, R) {
|
|
8366
8366
|
try {
|
|
8367
8367
|
R(null, this._geoJSONIndex.getClusterExpansionZoom(C.clusterId));
|
|
8368
8368
|
} catch (q) {
|
|
8369
8369
|
R(q);
|
|
8370
8370
|
}
|
|
8371
|
-
},
|
|
8371
|
+
}, E.prototype.getClusterChildren = function(C, R) {
|
|
8372
8372
|
try {
|
|
8373
8373
|
R(null, this._geoJSONIndex.getChildren(C.clusterId));
|
|
8374
8374
|
} catch (q) {
|
|
8375
8375
|
R(q);
|
|
8376
8376
|
}
|
|
8377
|
-
},
|
|
8377
|
+
}, E.prototype.getClusterLeaves = function(C, R) {
|
|
8378
8378
|
try {
|
|
8379
8379
|
R(null, this._geoJSONIndex.getLeaves(C.clusterId, C.limit, C.offset));
|
|
8380
8380
|
} catch (q) {
|
|
8381
8381
|
R(q);
|
|
8382
8382
|
}
|
|
8383
|
-
},
|
|
8383
|
+
}, E;
|
|
8384
8384
|
}(Be), sr = function(I) {
|
|
8385
|
-
var
|
|
8385
|
+
var E = this;
|
|
8386
8386
|
this.self = I, this.actor = new u.Actor(I, this), this.layerIndexes = {}, this.availableImages = {}, this.workerSourceTypes = { vector: Be, geojson: So }, this.workerSources = {}, this.demWorkerSources = {}, this.self.registerWorkerSource = function(C, R) {
|
|
8387
|
-
if (
|
|
8388
|
-
|
|
8387
|
+
if (E.workerSourceTypes[C]) throw new Error('Worker source with name "' + C + '" already registered.');
|
|
8388
|
+
E.workerSourceTypes[C] = R;
|
|
8389
8389
|
}, this.self.registerRTLTextPlugin = function(C) {
|
|
8390
8390
|
if (u.plugin.isParsed()) throw new Error("RTL text plugin already registered.");
|
|
8391
8391
|
u.plugin.applyArabicShaping = C.applyArabicShaping, u.plugin.processBidirectionalText = C.processBidirectionalText, u.plugin.processStyledBidirectionalText = C.processStyledBidirectionalText;
|
|
8392
8392
|
};
|
|
8393
8393
|
};
|
|
8394
|
-
return sr.prototype.setReferrer = function(I,
|
|
8395
|
-
this.referrer =
|
|
8396
|
-
}, sr.prototype.setImages = function(I,
|
|
8397
|
-
for (var R in this.availableImages[I] =
|
|
8394
|
+
return sr.prototype.setReferrer = function(I, E) {
|
|
8395
|
+
this.referrer = E;
|
|
8396
|
+
}, sr.prototype.setImages = function(I, E, C) {
|
|
8397
|
+
for (var R in this.availableImages[I] = E, this.workerSources[I]) {
|
|
8398
8398
|
var q = this.workerSources[I][R];
|
|
8399
|
-
for (var J in q) q[J].availableImages =
|
|
8399
|
+
for (var J in q) q[J].availableImages = E;
|
|
8400
8400
|
}
|
|
8401
8401
|
C();
|
|
8402
|
-
}, sr.prototype.setLayers = function(I,
|
|
8403
|
-
this.getLayerIndex(I).replace(
|
|
8404
|
-
}, sr.prototype.updateLayers = function(I,
|
|
8405
|
-
this.getLayerIndex(I).update(
|
|
8406
|
-
}, sr.prototype.loadTile = function(I,
|
|
8407
|
-
this.getWorkerSource(I,
|
|
8408
|
-
}, sr.prototype.loadDEMTile = function(I,
|
|
8409
|
-
this.getDEMWorkerSource(I,
|
|
8410
|
-
}, sr.prototype.reloadTile = function(I,
|
|
8411
|
-
this.getWorkerSource(I,
|
|
8412
|
-
}, sr.prototype.abortTile = function(I,
|
|
8413
|
-
this.getWorkerSource(I,
|
|
8414
|
-
}, sr.prototype.removeTile = function(I,
|
|
8415
|
-
this.getWorkerSource(I,
|
|
8416
|
-
}, sr.prototype.removeDEMTile = function(I,
|
|
8417
|
-
this.getDEMWorkerSource(I,
|
|
8418
|
-
}, sr.prototype.removeSource = function(I,
|
|
8419
|
-
if (this.workerSources[I] && this.workerSources[I][
|
|
8420
|
-
var R = this.workerSources[I][
|
|
8421
|
-
delete this.workerSources[I][
|
|
8422
|
-
}
|
|
8423
|
-
}, sr.prototype.loadWorkerSource = function(I,
|
|
8402
|
+
}, sr.prototype.setLayers = function(I, E, C) {
|
|
8403
|
+
this.getLayerIndex(I).replace(E), C();
|
|
8404
|
+
}, sr.prototype.updateLayers = function(I, E, C) {
|
|
8405
|
+
this.getLayerIndex(I).update(E.layers, E.removedIds), C();
|
|
8406
|
+
}, sr.prototype.loadTile = function(I, E, C) {
|
|
8407
|
+
this.getWorkerSource(I, E.type, E.source).loadTile(E, C);
|
|
8408
|
+
}, sr.prototype.loadDEMTile = function(I, E, C) {
|
|
8409
|
+
this.getDEMWorkerSource(I, E.source).loadTile(E, C);
|
|
8410
|
+
}, sr.prototype.reloadTile = function(I, E, C) {
|
|
8411
|
+
this.getWorkerSource(I, E.type, E.source).reloadTile(E, C);
|
|
8412
|
+
}, sr.prototype.abortTile = function(I, E, C) {
|
|
8413
|
+
this.getWorkerSource(I, E.type, E.source).abortTile(E, C);
|
|
8414
|
+
}, sr.prototype.removeTile = function(I, E, C) {
|
|
8415
|
+
this.getWorkerSource(I, E.type, E.source).removeTile(E, C);
|
|
8416
|
+
}, sr.prototype.removeDEMTile = function(I, E) {
|
|
8417
|
+
this.getDEMWorkerSource(I, E.source).removeTile(E);
|
|
8418
|
+
}, sr.prototype.removeSource = function(I, E, C) {
|
|
8419
|
+
if (this.workerSources[I] && this.workerSources[I][E.type] && this.workerSources[I][E.type][E.source]) {
|
|
8420
|
+
var R = this.workerSources[I][E.type][E.source];
|
|
8421
|
+
delete this.workerSources[I][E.type][E.source], R.removeSource !== void 0 ? R.removeSource(E, C) : C();
|
|
8422
|
+
}
|
|
8423
|
+
}, sr.prototype.loadWorkerSource = function(I, E, C) {
|
|
8424
8424
|
try {
|
|
8425
|
-
this.self.importScripts(
|
|
8425
|
+
this.self.importScripts(E.url), C();
|
|
8426
8426
|
} catch (R) {
|
|
8427
8427
|
C(R.toString());
|
|
8428
8428
|
}
|
|
8429
|
-
}, sr.prototype.syncRTLPluginState = function(I,
|
|
8429
|
+
}, sr.prototype.syncRTLPluginState = function(I, E, C) {
|
|
8430
8430
|
try {
|
|
8431
|
-
u.plugin.setState(
|
|
8431
|
+
u.plugin.setState(E);
|
|
8432
8432
|
var R = u.plugin.getPluginURL();
|
|
8433
8433
|
if (u.plugin.isLoaded() && !u.plugin.isParsed() && R != null) {
|
|
8434
8434
|
this.self.importScripts(R);
|
|
@@ -8439,20 +8439,20 @@ var Qv = { exports: {} };
|
|
|
8439
8439
|
C(J.toString());
|
|
8440
8440
|
}
|
|
8441
8441
|
}, sr.prototype.getAvailableImages = function(I) {
|
|
8442
|
-
var
|
|
8443
|
-
return
|
|
8442
|
+
var E = this.availableImages[I];
|
|
8443
|
+
return E || (E = []), E;
|
|
8444
8444
|
}, sr.prototype.getLayerIndex = function(I) {
|
|
8445
|
-
var
|
|
8446
|
-
return
|
|
8447
|
-
}, sr.prototype.getWorkerSource = function(I,
|
|
8445
|
+
var E = this.layerIndexes[I];
|
|
8446
|
+
return E || (E = this.layerIndexes[I] = new me()), E;
|
|
8447
|
+
}, sr.prototype.getWorkerSource = function(I, E, C) {
|
|
8448
8448
|
var R = this;
|
|
8449
|
-
return this.workerSources[I] || (this.workerSources[I] = {}), this.workerSources[I][
|
|
8449
|
+
return this.workerSources[I] || (this.workerSources[I] = {}), this.workerSources[I][E] || (this.workerSources[I][E] = {}), this.workerSources[I][E][C] || (this.workerSources[I][E][C] = new this.workerSourceTypes[E]({ send: function(q, J, Q) {
|
|
8450
8450
|
R.actor.send(q, J, Q, I);
|
|
8451
|
-
} }, this.getLayerIndex(I), this.getAvailableImages(I))), this.workerSources[I][
|
|
8452
|
-
}, sr.prototype.getDEMWorkerSource = function(I,
|
|
8453
|
-
return this.demWorkerSources[I] || (this.demWorkerSources[I] = {}), this.demWorkerSources[I][
|
|
8454
|
-
}, sr.prototype.enforceCacheSizeLimit = function(I,
|
|
8455
|
-
u.enforceCacheSizeLimit(
|
|
8451
|
+
} }, this.getLayerIndex(I), this.getAvailableImages(I))), this.workerSources[I][E][C];
|
|
8452
|
+
}, sr.prototype.getDEMWorkerSource = function(I, E) {
|
|
8453
|
+
return this.demWorkerSources[I] || (this.demWorkerSources[I] = {}), this.demWorkerSources[I][E] || (this.demWorkerSources[I][E] = new Ne()), this.demWorkerSources[I][E];
|
|
8454
|
+
}, sr.prototype.enforceCacheSizeLimit = function(I, E) {
|
|
8455
|
+
u.enforceCacheSizeLimit(E);
|
|
8456
8456
|
}, typeof WorkerGlobalScope < "u" && typeof self < "u" && self instanceof WorkerGlobalScope && (self.worker = new sr(self)), sr;
|
|
8457
8457
|
}), Z(["./shared"], function(u) {
|
|
8458
8458
|
var ne = u.createCommonjsModule(function(i) {
|
|
@@ -8634,7 +8634,7 @@ var Qv = { exports: {} };
|
|
|
8634
8634
|
}
|
|
8635
8635
|
}
|
|
8636
8636
|
}, a;
|
|
8637
|
-
}(u.Evented), ft = er, Lt = er,
|
|
8637
|
+
}(u.Evented), ft = er, Lt = er, Gt = 1e20;
|
|
8638
8638
|
function er(i, a, n, s, p, f) {
|
|
8639
8639
|
this.fontSize = i || 24, this.buffer = a === void 0 ? 3 : a, this.cutoff = s || 0.25, this.fontFamily = p || "sans-serif", this.fontWeight = f || "normal", this.radius = n || 8;
|
|
8640
8640
|
var y = this.size = this.fontSize + 2 * this.buffer;
|
|
@@ -8651,10 +8651,10 @@ var Qv = { exports: {} };
|
|
|
8651
8651
|
}
|
|
8652
8652
|
}
|
|
8653
8653
|
function Mr(i, a, n, s, p) {
|
|
8654
|
-
n[0] = 0, s[0] = -
|
|
8654
|
+
n[0] = 0, s[0] = -Gt, s[1] = +Gt;
|
|
8655
8655
|
for (var f = 1, y = 0; f < p; f++) {
|
|
8656
8656
|
for (var g = (i[f] + f * f - (i[n[y]] + n[y] * n[y])) / (2 * f - 2 * n[y]); g <= s[y]; ) y--, g = (i[f] + f * f - (i[n[y]] + n[y] * n[y])) / (2 * f - 2 * n[y]);
|
|
8657
|
-
n[++y] = f, s[y] = g, s[y + 1] =
|
|
8657
|
+
n[++y] = f, s[y] = g, s[y + 1] = +Gt;
|
|
8658
8658
|
}
|
|
8659
8659
|
for (f = 0, y = 0; f < p; f++) {
|
|
8660
8660
|
for (; s[y + 1] < f; ) y++;
|
|
@@ -8665,7 +8665,7 @@ var Qv = { exports: {} };
|
|
|
8665
8665
|
this.ctx.clearRect(0, 0, this.size, this.size), this.ctx.fillText(i, this.buffer, this.middle);
|
|
8666
8666
|
for (var a = this.ctx.getImageData(0, 0, this.size, this.size), n = new Uint8ClampedArray(this.size * this.size), s = 0; s < this.size * this.size; s++) {
|
|
8667
8667
|
var p = a.data[4 * s + 3] / 255;
|
|
8668
|
-
this.gridOuter[s] = p === 1 ? 0 : p === 0 ?
|
|
8668
|
+
this.gridOuter[s] = p === 1 ? 0 : p === 0 ? Gt : Math.pow(Math.max(0, 0.5 - p), 2), this.gridInner[s] = p === 1 ? Gt : p === 0 ? 0 : Math.pow(Math.max(0, p - 0.5), 2);
|
|
8669
8669
|
}
|
|
8670
8670
|
for (dr(this.gridOuter, this.size, this.size, this.f, this.d, this.v, this.z), dr(this.gridInner, this.size, this.size, this.f, this.d, this.v, this.z), s = 0; s < this.size * this.size; s++) n[s] = Math.max(0, Math.min(255, Math.round(255 - 255 * ((this.gridOuter[s] - this.gridInner[s]) / this.radius + this.cutoff))));
|
|
8671
8671
|
return n;
|
|
@@ -9639,7 +9639,7 @@ var Qv = { exports: {} };
|
|
|
9639
9639
|
s.framebufferTexture2D(s.FRAMEBUFFER, s.COLOR_ATTACHMENT0, s.TEXTURE_2D, n, 0), this.current = n, this.dirty = !1;
|
|
9640
9640
|
}
|
|
9641
9641
|
}, a;
|
|
9642
|
-
}(sr),
|
|
9642
|
+
}(sr), E = function(i) {
|
|
9643
9643
|
function a() {
|
|
9644
9644
|
i.apply(this, arguments);
|
|
9645
9645
|
}
|
|
@@ -9653,7 +9653,7 @@ var Qv = { exports: {} };
|
|
|
9653
9653
|
}(sr), C = function(i, a, n, s) {
|
|
9654
9654
|
this.context = i, this.width = a, this.height = n;
|
|
9655
9655
|
var p = this.framebuffer = i.gl.createFramebuffer();
|
|
9656
|
-
this.colorAttachment = new I(i, p), s && (this.depthAttachment = new
|
|
9656
|
+
this.colorAttachment = new I(i, p), s && (this.depthAttachment = new E(i, p));
|
|
9657
9657
|
};
|
|
9658
9658
|
C.prototype.destroy = function() {
|
|
9659
9659
|
var i = this.context.gl, a = this.colorAttachment.get();
|
|
@@ -10297,7 +10297,7 @@ var Qv = { exports: {} };
|
|
|
10297
10297
|
var Di = function(i, a, n) {
|
|
10298
10298
|
a === void 0 && (a = new Pt(i.width + 200, i.height + 200, 25)), n === void 0 && (n = new Pt(i.width + 200, i.height + 200, 25)), this.transform = i, this.grid = a, this.ignoredGrid = n, this.pitchfactor = Math.cos(i._pitch) * i.cameraToCenterDistance, this.screenRightBoundary = i.width + 100, this.screenBottomBoundary = i.height + 100, this.gridRightBoundary = i.width + 200, this.gridBottomBoundary = i.height + 200;
|
|
10299
10299
|
};
|
|
10300
|
-
function
|
|
10300
|
+
function Xt(i, a, n) {
|
|
10301
10301
|
return a * (u.EXTENT / (i.tileSize * Math.pow(2, n - i.tileID.overscaledZ)));
|
|
10302
10302
|
}
|
|
10303
10303
|
Di.prototype.placeCollisionBox = function(i, a, n, s, p) {
|
|
@@ -10413,7 +10413,7 @@ var Qv = { exports: {} };
|
|
|
10413
10413
|
Jr.prototype.getBucketParts = function(i, a, n, s) {
|
|
10414
10414
|
var p = n.getBucket(a), f = n.latestFeatureIndex;
|
|
10415
10415
|
if (p && f && a.id === p.layerIds[0]) {
|
|
10416
|
-
var y = n.collisionBoxArray, g = p.layers[0].layout, w = Math.pow(2, this.transform.zoom - n.tileID.overscaledZ), A = n.tileSize / u.EXTENT, z = this.transform.calculatePosMatrix(n.tileID.toUnwrapped()), B = g.get("text-pitch-alignment") === "map", L = g.get("text-rotation-alignment") === "map", j =
|
|
10416
|
+
var y = n.collisionBoxArray, g = p.layers[0].layout, w = Math.pow(2, this.transform.zoom - n.tileID.overscaledZ), A = n.tileSize / u.EXTENT, z = this.transform.calculatePosMatrix(n.tileID.toUnwrapped()), B = g.get("text-pitch-alignment") === "map", L = g.get("text-rotation-alignment") === "map", j = Xt(n, 1, this.transform.zoom), N = ur(z, B, L, this.transform, j), X = null;
|
|
10417
10417
|
if (B) {
|
|
10418
10418
|
var O = zt(z, B, L, this.transform, j);
|
|
10419
10419
|
X = u.multiply([], this.transform.labelPlaneMatrix, O);
|
|
@@ -11808,7 +11808,7 @@ uniform ` + z + " " + B + " u_" + L + `;
|
|
|
11808
11808
|
}
|
|
11809
11809
|
};
|
|
11810
11810
|
function jl(i, a, n) {
|
|
11811
|
-
var s = 1 /
|
|
11811
|
+
var s = 1 / Xt(n, 1, a.transform.tileZoom), p = Math.pow(2, n.tileID.overscaledZ), f = n.tileSize * Math.pow(2, a.transform.tileZoom) / p, y = f * (n.tileID.canonical.x + n.tileID.wrap * p), g = f * n.tileID.canonical.y;
|
|
11812
11812
|
return { u_image: 0, u_texsize: n.imageAtlasTexture.size, u_scale: [s, i.fromScale, i.toScale], u_fade: i.t, u_pixel_coord_upper: [y >> 16, g >> 16], u_pixel_coord_lower: [65535 & y, 65535 & g] };
|
|
11813
11813
|
}
|
|
11814
11814
|
ql.prototype.draw = function(i, a, n, s, p, f, y, g, w, A, z, B, L, j, N, X) {
|
|
@@ -11840,12 +11840,12 @@ uniform ` + z + " " + B + " u_" + L + `;
|
|
|
11840
11840
|
}, ku = function(i, a, n, s) {
|
|
11841
11841
|
var p, f, y = i.transform;
|
|
11842
11842
|
if (s.paint.get("circle-pitch-alignment") === "map") {
|
|
11843
|
-
var g =
|
|
11843
|
+
var g = Xt(n, 1, y.zoom);
|
|
11844
11844
|
p = !0, f = [g, g];
|
|
11845
11845
|
} else p = !1, f = y.pixelsToGLUnits;
|
|
11846
11846
|
return { u_camera_to_center_distance: y.cameraToCenterDistance, u_scale_with_map: +(s.paint.get("circle-pitch-scale") === "map"), u_matrix: i.translatePosMatrix(a.posMatrix, n, s.paint.get("circle-translate"), s.paint.get("circle-translate-anchor")), u_pitch_with_map: +p, u_device_pixel_ratio: u.browser.devicePixelRatio, u_extrude_scale: f };
|
|
11847
11847
|
}, ga = function(i, a, n) {
|
|
11848
|
-
var s =
|
|
11848
|
+
var s = Xt(n, 1, a.zoom), p = Math.pow(2, a.zoom - n.tileID.overscaledZ), f = n.tileID.overscaleFactor();
|
|
11849
11849
|
return { u_matrix: i, u_camera_to_center_distance: a.cameraToCenterDistance, u_pixels_to_tile_units: s, u_extrude_scale: [a.pixelsToGLUnits[0] / (s * p), a.pixelsToGLUnits[1] / (s * p)], u_overscale_factor: f };
|
|
11850
11850
|
}, Wl = function(i, a, n) {
|
|
11851
11851
|
return { u_matrix: i, u_inv_matrix: a, u_camera_to_center_distance: n.cameraToCenterDistance, u_viewport_size: [n.width, n.height] };
|
|
@@ -11854,21 +11854,21 @@ uniform ` + z + " " + B + " u_" + L + `;
|
|
|
11854
11854
|
}, xa = function(i) {
|
|
11855
11855
|
return { u_matrix: i };
|
|
11856
11856
|
}, Hl = function(i, a, n, s) {
|
|
11857
|
-
return { u_matrix: i, u_extrude_scale:
|
|
11857
|
+
return { u_matrix: i, u_extrude_scale: Xt(a, 1, n), u_intensity: s };
|
|
11858
11858
|
}, ko = function(i, a, n) {
|
|
11859
11859
|
var s = i.transform;
|
|
11860
|
-
return { u_matrix: Xl(i, a, n), u_ratio: 1 /
|
|
11860
|
+
return { u_matrix: Xl(i, a, n), u_ratio: 1 / Xt(a, 1, s.zoom), u_device_pixel_ratio: u.browser.devicePixelRatio, u_units_to_pixels: [1 / s.pixelsToGLUnits[0], 1 / s.pixelsToGLUnits[1]] };
|
|
11861
11861
|
}, jt = function(i, a, n, s) {
|
|
11862
11862
|
return u.extend(ko(i, a, n), { u_image: 0, u_image_height: s });
|
|
11863
11863
|
}, vs = function(i, a, n, s) {
|
|
11864
11864
|
var p = i.transform, f = Ka(a, p);
|
|
11865
|
-
return { u_matrix: Xl(i, a, n), u_texsize: a.imageAtlasTexture.size, u_ratio: 1 /
|
|
11865
|
+
return { u_matrix: Xl(i, a, n), u_texsize: a.imageAtlasTexture.size, u_ratio: 1 / Xt(a, 1, p.zoom), u_device_pixel_ratio: u.browser.devicePixelRatio, u_image: 0, u_scale: [f, s.fromScale, s.toScale], u_fade: s.t, u_units_to_pixels: [1 / p.pixelsToGLUnits[0], 1 / p.pixelsToGLUnits[1]] };
|
|
11866
11866
|
}, Pp = function(i, a, n, s, p) {
|
|
11867
11867
|
var f = i.lineAtlas, y = Ka(a, i.transform), g = n.layout.get("line-cap") === "round", w = f.getDash(s.from, g), A = f.getDash(s.to, g), z = w.width * p.fromScale, B = A.width * p.toScale;
|
|
11868
11868
|
return u.extend(ko(i, a, n), { u_patternscale_a: [y / z, -w.height / 2], u_patternscale_b: [y / B, -A.height / 2], u_sdfgamma: f.width / (256 * Math.min(z, B) * u.browser.devicePixelRatio) / 2, u_image: 0, u_tex_y_a: w.y, u_tex_y_b: A.y, u_mix: p.t });
|
|
11869
11869
|
};
|
|
11870
11870
|
function Ka(i, a) {
|
|
11871
|
-
return 1 /
|
|
11871
|
+
return 1 / Xt(i, 1, a.tileZoom);
|
|
11872
11872
|
}
|
|
11873
11873
|
function Xl(i, a, n) {
|
|
11874
11874
|
return i.translatePosMatrix(a.tileID.posMatrix, a, n.paint.get("line-translate"), n.paint.get("line-translate-anchor"));
|
|
@@ -11895,7 +11895,7 @@ uniform ` + z + " " + B + " u_" + L + `;
|
|
|
11895
11895
|
}, Ya = function(i, a, n, s, p, f) {
|
|
11896
11896
|
return u.extend(function(y, g, w, A) {
|
|
11897
11897
|
var z = w.imageManager.getPattern(y.from.toString()), B = w.imageManager.getPattern(y.to.toString()), L = w.imageManager.getPixelSize(), j = L.width, N = L.height, X = Math.pow(2, A.tileID.overscaledZ), O = A.tileSize * Math.pow(2, w.transform.tileZoom) / X, H = O * (A.tileID.canonical.x + A.tileID.wrap * X), Y = O * A.tileID.canonical.y;
|
|
11898
|
-
return { u_image: 0, u_pattern_tl_a: z.tl, u_pattern_br_a: z.br, u_pattern_tl_b: B.tl, u_pattern_br_b: B.br, u_texsize: [j, N], u_mix: g.t, u_pattern_size_a: z.displaySize, u_pattern_size_b: B.displaySize, u_scale_a: g.fromScale, u_scale_b: g.toScale, u_tile_units_to_pixels: 1 /
|
|
11898
|
+
return { u_image: 0, u_pattern_tl_a: z.tl, u_pattern_br_a: z.br, u_pattern_tl_b: B.tl, u_pattern_br_b: B.br, u_texsize: [j, N], u_mix: g.t, u_pattern_size_a: z.displaySize, u_pattern_size_b: B.displaySize, u_scale_a: g.fromScale, u_scale_b: g.toScale, u_tile_units_to_pixels: 1 / Xt(A, 1, w.transform.tileZoom), u_pixel_coord_upper: [H >> 16, Y >> 16], u_pixel_coord_lower: [65535 & H, 65535 & Y] };
|
|
11899
11899
|
}(s, f, n, p), { u_matrix: i, u_opacity: a });
|
|
11900
11900
|
}, Jl = { fillExtrusion: function(i, a) {
|
|
11901
11901
|
return { u_matrix: new u.UniformMatrix4f(i, a.u_matrix), u_lightpos: new u.Uniform3f(i, a.u_lightpos), u_lightintensity: new u.Uniform1f(i, a.u_lightintensity), u_lightcolor: new u.Uniform3f(i, a.u_lightcolor), u_vertical_gradient: new u.Uniform1f(i, a.u_vertical_gradient), u_opacity: new u.Uniform1f(i, a.u_opacity) };
|
|
@@ -12032,7 +12032,7 @@ uniform ` + z + " " + B + " u_" + L + `;
|
|
|
12032
12032
|
var Rr = n.layout.get("icon-size").constantOr(0) !== 1 || He.iconsNeedLinear;
|
|
12033
12033
|
Xe = $e.imageAtlasTexture, Ar = Le || i.options.rotating || i.options.zooming || Rr || at ? j.LINEAR : j.NEAREST, nt = $e.imageAtlasTexture.size;
|
|
12034
12034
|
}
|
|
12035
|
-
var tr =
|
|
12035
|
+
var tr = Xt($e, 1, i.transform.zoom), cr = ur(ze.posMatrix, O, X, i.transform, tr), xi = zt(ze.posMatrix, O, X, i.transform, tr), ei = ce && He.hasTextData(), Gn = n.layout.get("icon-text-fit") !== "none" && ei && He.hasIconData();
|
|
12036
12036
|
H && To(He, ze.posMatrix, i, p, cr, xi, O, A);
|
|
12037
12037
|
var li = i.translatePosMatrix(ze.posMatrix, $e, f, y), en = H || p && ce || Gn ? Xi : cr, Ui = i.translatePosMatrix(xi, $e, f, y, !0), $o = Le && n.paint.get(p ? "text-halo-width" : "icon-halo-width").constantOr(1) !== 0, ao = { program: tt, buffers: We, uniformValues: Le ? He.iconsInText ? _s(rt.kind, et, Y, O, i, li, en, Ui, nt, Ye) : Mo(rt.kind, et, Y, O, i, li, en, Ui, p, nt) : Ja(rt.kind, et, Y, O, i, li, en, Ui, p, nt), atlasTexture: Xe, atlasTextureIcon: ir, atlasInterpolation: Ar, atlasInterpolationIcon: Zr, isSDF: Le, hasHalo: $o };
|
|
12038
12038
|
if (te && He.canOverlap) {
|
|
@@ -12173,7 +12173,7 @@ uniform ` + z + " " + B + " u_" + L + `;
|
|
|
12173
12173
|
for (var N = w.transform, X = B === "map", O = L === "map", H = 0, Y = g; H < Y.length; H += 1) {
|
|
12174
12174
|
var te = Y[H], le = z.getTile(te), se = le.getBucket(A);
|
|
12175
12175
|
if (se && se.text && se.text.segments.get().length) {
|
|
12176
|
-
var ce = u.evaluateSizeForZoom(se.textSizeData, N.zoom), ve =
|
|
12176
|
+
var ce = u.evaluateSizeForZoom(se.textSizeData, N.zoom), ve = Xt(le, 1, w.transform.zoom), Se = ur(te.posMatrix, O, X, w.transform, ve), we = A.layout.get("icon-text-fit") !== "none" && se.hasIconData();
|
|
12177
12177
|
if (ce) {
|
|
12178
12178
|
var ze = Math.pow(2, N.zoom - le.tileID.overscaledZ);
|
|
12179
12179
|
Ql(se, X, O, j, u.symbolSize, N, Se, te.posMatrix, ze, ce, we);
|
|
@@ -12347,12 +12347,12 @@ uniform ` + z + " " + B + " u_" + L + `;
|
|
|
12347
12347
|
var y = p.renderingMode === "3d" ? new R(i.context.gl.LEQUAL, R.ReadWrite, i.depthRangeFor3D) : i.depthModeForSublayer(0, R.ReadOnly);
|
|
12348
12348
|
s.setDepthMode(y), p.render(s.gl, i.transform.customLayerMatrix()), s.setDirty(), i.setBaseState(), s.bindFramebuffer.set(null);
|
|
12349
12349
|
}
|
|
12350
|
-
} },
|
|
12350
|
+
} }, Kt = function(i, a) {
|
|
12351
12351
|
this.context = new D(i), this.transform = a, this._tileTextures = {}, this.setup(), this.numSublayers = $.maxUnderzooming + $.maxOverzooming + 1, this.depthEpsilon = 1 / Math.pow(2, 16), this.crossTileSymbolIndex = new Dn(), this.gpuTimers = {};
|
|
12352
12352
|
};
|
|
12353
|
-
|
|
12353
|
+
Kt.prototype.resize = function(i, a) {
|
|
12354
12354
|
if (this.width = i * u.browser.devicePixelRatio, this.height = a * u.browser.devicePixelRatio, this.context.viewport.set([0, 0, this.width, this.height]), this.style) for (var n = 0, s = this.style._order; n < s.length; n += 1) this.style._layers[s[n]].resize();
|
|
12355
|
-
},
|
|
12355
|
+
}, Kt.prototype.setup = function() {
|
|
12356
12356
|
var i = this.context, a = new u.StructArrayLayout2i4();
|
|
12357
12357
|
a.emplaceBack(0, 0), a.emplaceBack(u.EXTENT, 0), a.emplaceBack(0, u.EXTENT), a.emplaceBack(u.EXTENT, u.EXTENT), this.tileExtentBuffer = i.createVertexBuffer(a, yr.members), this.tileExtentSegments = u.SegmentVector.simpleSegment(0, 0, 4, 2);
|
|
12358
12358
|
var n = new u.StructArrayLayout2i4();
|
|
@@ -12367,12 +12367,12 @@ uniform ` + z + " " + B + " u_" + L + `;
|
|
|
12367
12367
|
y.emplaceBack(0, 1, 2), y.emplaceBack(2, 1, 3), this.quadTriangleIndexBuffer = i.createIndexBuffer(y), this.emptyTexture = new u.Texture(i, { width: 1, height: 1, data: new Uint8Array([0, 0, 0, 0]) }, i.gl.RGBA);
|
|
12368
12368
|
var g = this.context.gl;
|
|
12369
12369
|
this.stencilClearMode = new q({ func: g.ALWAYS, mask: 0 }, 0, 255, g.ZERO, g.ZERO, g.ZERO);
|
|
12370
|
-
},
|
|
12370
|
+
}, Kt.prototype.clearStencil = function() {
|
|
12371
12371
|
var i = this.context, a = i.gl;
|
|
12372
12372
|
this.nextStencilID = 1, this.currentStencilSource = void 0;
|
|
12373
12373
|
var n = u.create();
|
|
12374
12374
|
u.ortho(n, 0, this.width, this.height, 0, 0, 1), u.scale(n, n, [a.drawingBufferWidth, a.drawingBufferHeight, 0]), this.useProgram("clippingMask").draw(i, a.TRIANGLES, R.disabled, this.stencilClearMode, J.disabled, Q.disabled, xa(n), "$clipping", this.viewportBuffer, this.quadTriangleIndexBuffer, this.viewportSegments);
|
|
12375
|
-
},
|
|
12375
|
+
}, Kt.prototype._renderTileClippingMasks = function(i, a) {
|
|
12376
12376
|
if (this.currentStencilSource !== i.source && i.isTileClipped() && a && a.length) {
|
|
12377
12377
|
this.currentStencilSource = i.source;
|
|
12378
12378
|
var n = this.context, s = n.gl;
|
|
@@ -12384,14 +12384,14 @@ uniform ` + z + " " + B + " u_" + L + `;
|
|
|
12384
12384
|
p.draw(n, s.TRIANGLES, R.disabled, new q({ func: s.ALWAYS, mask: 0 }, w, 255, s.KEEP, s.KEEP, s.REPLACE), J.disabled, Q.disabled, xa(g.posMatrix), "$clipping", this.tileExtentBuffer, this.quadTriangleIndexBuffer, this.tileExtentSegments);
|
|
12385
12385
|
}
|
|
12386
12386
|
}
|
|
12387
|
-
},
|
|
12387
|
+
}, Kt.prototype.stencilModeFor3D = function() {
|
|
12388
12388
|
this.currentStencilSource = void 0, this.nextStencilID + 1 > 256 && this.clearStencil();
|
|
12389
12389
|
var i = this.nextStencilID++, a = this.context.gl;
|
|
12390
12390
|
return new q({ func: a.NOTEQUAL, mask: 255 }, i, 255, a.KEEP, a.KEEP, a.REPLACE);
|
|
12391
|
-
},
|
|
12391
|
+
}, Kt.prototype.stencilModeForClipping = function(i) {
|
|
12392
12392
|
var a = this.context.gl;
|
|
12393
12393
|
return new q({ func: a.EQUAL, mask: 255 }, this._tileClippingMaskIDs[i.key], 0, a.KEEP, a.KEEP, a.REPLACE);
|
|
12394
|
-
},
|
|
12394
|
+
}, Kt.prototype.stencilConfigForOverlap = function(i) {
|
|
12395
12395
|
var a, n = this.context.gl, s = i.sort(function(w, A) {
|
|
12396
12396
|
return A.overscaledZ - w.overscaledZ;
|
|
12397
12397
|
}), p = s[s.length - 1].overscaledZ, f = s[0].overscaledZ - p + 1;
|
|
@@ -12401,16 +12401,16 @@ uniform ` + z + " " + B + " u_" + L + `;
|
|
|
12401
12401
|
return this.nextStencilID += f, [y, s];
|
|
12402
12402
|
}
|
|
12403
12403
|
return [(a = {}, a[p] = q.disabled, a), s];
|
|
12404
|
-
},
|
|
12404
|
+
}, Kt.prototype.colorModeForRenderPass = function() {
|
|
12405
12405
|
var i = this.context.gl;
|
|
12406
12406
|
return this._showOverdrawInspector ? new J([i.CONSTANT_COLOR, i.ONE], new u.Color(1 / 8, 1 / 8, 1 / 8, 0), [!0, !0, !0, !0]) : this.renderPass === "opaque" ? J.unblended : J.alphaBlended;
|
|
12407
|
-
},
|
|
12407
|
+
}, Kt.prototype.depthModeForSublayer = function(i, a, n) {
|
|
12408
12408
|
if (!this.opaquePassEnabledForLayer()) return R.disabled;
|
|
12409
12409
|
var s = 1 - ((1 + this.currentLayer) * this.numSublayers + i) * this.depthEpsilon;
|
|
12410
12410
|
return new R(n || this.context.gl.LEQUAL, a, [s, s]);
|
|
12411
|
-
},
|
|
12411
|
+
}, Kt.prototype.opaquePassEnabledForLayer = function() {
|
|
12412
12412
|
return this.currentLayer < this.opaquePassCutoff;
|
|
12413
|
-
},
|
|
12413
|
+
}, Kt.prototype.render = function(i, a) {
|
|
12414
12414
|
var n = this;
|
|
12415
12415
|
this.style = i, this.options = a, this.lineAtlas = i.lineAtlas, this.imageManager = i.imageManager, this.glyphManager = i.glyphManager, this.symbolFadeChange = i.placement.symbolFadeChange(u.browser.now()), this.imageManager.beginFrame();
|
|
12416
12416
|
var s = this.style._order, p = this.style.sourceCaches;
|
|
@@ -12454,60 +12454,60 @@ uniform ` + z + " " + B + " u_" + L + `;
|
|
|
12454
12454
|
Bo(He, We - 1, xt - 10, 2, 20, Le), Bo(He, We - 10, xt - 1, 20, 2, Le);
|
|
12455
12455
|
})(we, $e.x, we.transform.height - $e.y, Du);
|
|
12456
12456
|
}(this), this.context.setDefault();
|
|
12457
|
-
},
|
|
12457
|
+
}, Kt.prototype.renderLayer = function(i, a, n, s) {
|
|
12458
12458
|
n.isHidden(this.transform.zoom) || (n.type === "background" || n.type === "custom" || s.length) && (this.id = n.id, this.gpuTimingStart(n), wa[n.type](i, a, n, s, this.style.placement.variableOffsets), this.gpuTimingEnd());
|
|
12459
|
-
},
|
|
12459
|
+
}, Kt.prototype.gpuTimingStart = function(i) {
|
|
12460
12460
|
if (this.options.gpuTiming) {
|
|
12461
12461
|
var a = this.context.extTimerQuery, n = this.gpuTimers[i.id];
|
|
12462
12462
|
n || (n = this.gpuTimers[i.id] = { calls: 0, cpuTime: 0, query: a.createQueryEXT() }), n.calls++, a.beginQueryEXT(a.TIME_ELAPSED_EXT, n.query);
|
|
12463
12463
|
}
|
|
12464
|
-
},
|
|
12464
|
+
}, Kt.prototype.gpuTimingEnd = function() {
|
|
12465
12465
|
if (this.options.gpuTiming) {
|
|
12466
12466
|
var i = this.context.extTimerQuery;
|
|
12467
12467
|
i.endQueryEXT(i.TIME_ELAPSED_EXT);
|
|
12468
12468
|
}
|
|
12469
|
-
},
|
|
12469
|
+
}, Kt.prototype.collectGpuTimers = function() {
|
|
12470
12470
|
var i = this.gpuTimers;
|
|
12471
12471
|
return this.gpuTimers = {}, i;
|
|
12472
|
-
},
|
|
12472
|
+
}, Kt.prototype.queryGpuTimers = function(i) {
|
|
12473
12473
|
var a = {};
|
|
12474
12474
|
for (var n in i) {
|
|
12475
12475
|
var s = i[n], p = this.context.extTimerQuery, f = p.getQueryObjectEXT(s.query, p.QUERY_RESULT_EXT) / 1e6;
|
|
12476
12476
|
p.deleteQueryEXT(s.query), a[n] = f;
|
|
12477
12477
|
}
|
|
12478
12478
|
return a;
|
|
12479
|
-
},
|
|
12479
|
+
}, Kt.prototype.translatePosMatrix = function(i, a, n, s, p) {
|
|
12480
12480
|
if (!n[0] && !n[1]) return i;
|
|
12481
12481
|
var f = p ? s === "map" ? this.transform.angle : 0 : s === "viewport" ? -this.transform.angle : 0;
|
|
12482
12482
|
if (f) {
|
|
12483
12483
|
var y = Math.sin(f), g = Math.cos(f);
|
|
12484
12484
|
n = [n[0] * g - n[1] * y, n[0] * y + n[1] * g];
|
|
12485
12485
|
}
|
|
12486
|
-
var w = [p ? n[0] :
|
|
12486
|
+
var w = [p ? n[0] : Xt(a, n[0], this.transform.zoom), p ? n[1] : Xt(a, n[1], this.transform.zoom), 0], A = new Float32Array(16);
|
|
12487
12487
|
return u.translate(A, i, w), A;
|
|
12488
|
-
},
|
|
12488
|
+
}, Kt.prototype.saveTileTexture = function(i) {
|
|
12489
12489
|
var a = this._tileTextures[i.size[0]];
|
|
12490
12490
|
a ? a.push(i) : this._tileTextures[i.size[0]] = [i];
|
|
12491
|
-
},
|
|
12491
|
+
}, Kt.prototype.getTileTexture = function(i) {
|
|
12492
12492
|
var a = this._tileTextures[i];
|
|
12493
12493
|
return a && a.length > 0 ? a.pop() : null;
|
|
12494
|
-
},
|
|
12494
|
+
}, Kt.prototype.isPatternMissing = function(i) {
|
|
12495
12495
|
if (!i) return !1;
|
|
12496
12496
|
if (!i.from || !i.to) return !0;
|
|
12497
12497
|
var a = this.imageManager.getPattern(i.from.toString()), n = this.imageManager.getPattern(i.to.toString());
|
|
12498
12498
|
return !a || !n;
|
|
12499
|
-
},
|
|
12499
|
+
}, Kt.prototype.useProgram = function(i, a) {
|
|
12500
12500
|
this.cache = this.cache || {};
|
|
12501
12501
|
var n = "" + i + (a ? a.cacheKey : "") + (this._showOverdrawInspector ? "/overdraw" : "");
|
|
12502
12502
|
return this.cache[n] || (this.cache[n] = new ql(this.context, i, Ep[i], a, Jl[i], this._showOverdrawInspector)), this.cache[n];
|
|
12503
|
-
},
|
|
12503
|
+
}, Kt.prototype.setCustomLayerDefaults = function() {
|
|
12504
12504
|
this.context.unbindVAO(), this.context.cullFace.setDefault(), this.context.activeTexture.setDefault(), this.context.pixelStoreUnpack.setDefault(), this.context.pixelStoreUnpackPremultiplyAlpha.setDefault(), this.context.pixelStoreUnpackFlipY.setDefault();
|
|
12505
|
-
},
|
|
12505
|
+
}, Kt.prototype.setBaseState = function() {
|
|
12506
12506
|
var i = this.context.gl;
|
|
12507
12507
|
this.context.cullFace.set(!1), this.context.viewport.set([0, 0, this.width, this.height]), this.context.blendEquation.set(i.FUNC_ADD);
|
|
12508
|
-
},
|
|
12508
|
+
}, Kt.prototype.initDebugOverlayCanvas = function() {
|
|
12509
12509
|
this.debugOverlayCanvas == null && (this.debugOverlayCanvas = u.window.document.createElement("canvas"), this.debugOverlayCanvas.width = 512, this.debugOverlayCanvas.height = 512, this.debugOverlayTexture = new u.Texture(this.context, this.debugOverlayCanvas, this.context.gl.RGBA));
|
|
12510
|
-
},
|
|
12510
|
+
}, Kt.prototype.destroy = function() {
|
|
12511
12511
|
this.emptyTexture.destroy(), this.debugOverlayTexture && this.debugOverlayTexture.destroy();
|
|
12512
12512
|
};
|
|
12513
12513
|
var Ts = function(i, a) {
|
|
@@ -14196,7 +14196,7 @@ uniform ` + z + " " + B + " u_" + L + `;
|
|
|
14196
14196
|
this._canvas.width = f * s, this._canvas.height = f * p, this._canvas.style.width = s + "px", this._canvas.style.height = p + "px";
|
|
14197
14197
|
}, a.prototype._setupPainter = function() {
|
|
14198
14198
|
var s = u.extend({}, ne.webGLContextAttributes, { failIfMajorPerformanceCaveat: this._failIfMajorPerformanceCaveat, preserveDrawingBuffer: this._preserveDrawingBuffer, antialias: this._antialias || !1 }), p = this._canvas.getContext("webgl", s) || this._canvas.getContext("experimental-webgl", s);
|
|
14199
|
-
p ? (this.painter = new
|
|
14199
|
+
p ? (this.painter = new Kt(p, this.transform), u.webpSupported.testSupport(p)) : this.fire(new u.ErrorEvent(new Error("Failed to initialize WebGL")));
|
|
14200
14200
|
}, a.prototype._contextLost = function(s) {
|
|
14201
14201
|
s.preventDefault(), this._frame && (this._frame.cancel(), this._frame = null), this.fire(new u.Event("webglcontextlost", { originalEvent: s }));
|
|
14202
14202
|
}, a.prototype._contextRestored = function(s) {
|
|
@@ -14930,8 +14930,8 @@ function w0() {
|
|
|
14930
14930
|
for (var Lt = 0; Lt < ye.length; ++Lt)
|
|
14931
14931
|
Qe.push(String(Lt));
|
|
14932
14932
|
if (Ne && ye.length > 0)
|
|
14933
|
-
for (var
|
|
14934
|
-
Qe.push(String(
|
|
14933
|
+
for (var Gt = 0; Gt < ye.length; ++Gt)
|
|
14934
|
+
Qe.push(String(Gt));
|
|
14935
14935
|
else
|
|
14936
14936
|
for (var er in ye)
|
|
14937
14937
|
!(ft && er === "prototype") && d.call(ye, er) && Qe.push(String(er));
|
|
@@ -15080,10 +15080,10 @@ var Lf = Wx, Gm = Lf.custom, Wm = sg(Gm) ? Gm : null, ag = {
|
|
|
15080
15080
|
return d.inspect();
|
|
15081
15081
|
}
|
|
15082
15082
|
if (Y0(d)) {
|
|
15083
|
-
var
|
|
15083
|
+
var Gt = [];
|
|
15084
15084
|
return Om && Om.call(d, function(Rt, zr) {
|
|
15085
|
-
|
|
15086
|
-
}), Xm("Map", rp.call(d),
|
|
15085
|
+
Gt.push(oe(zr, d, !0) + " => " + oe(Rt, d));
|
|
15086
|
+
}), Xm("Map", rp.call(d), Gt, De);
|
|
15087
15087
|
}
|
|
15088
15088
|
if (tb(d)) {
|
|
15089
15089
|
var er = [];
|
|
@@ -15506,12 +15506,12 @@ function Fb() {
|
|
|
15506
15506
|
if (ly) return Ih;
|
|
15507
15507
|
ly = 1;
|
|
15508
15508
|
var m = Tr, d = or, b = Gv, M = Oa, F = kt, Z = m("%BigInt%", !0), u = hg(), ne = ed, G = mg(), me = Mb(), fe = zb(), De = Db(), oe = Bb(), ye = Lb(), Be = Rb(), Ke = d("Array.prototype.reverse"), Ne = d("Array.prototype.slice"), Tt = vu;
|
|
15509
|
-
return Ih = function(ft, Lt,
|
|
15509
|
+
return Ih = function(ft, Lt, Gt) {
|
|
15510
15510
|
if (!u(Tt.size, "$" + ft))
|
|
15511
15511
|
throw new F("Assertion failed: `type` must be a TypedArray element type");
|
|
15512
15512
|
if (!ne(Lt) || !ye(Lt, Be))
|
|
15513
15513
|
throw new F("Assertion failed: `rawBytes` must be an Array of bytes");
|
|
15514
|
-
if (typeof
|
|
15514
|
+
if (typeof Gt != "boolean")
|
|
15515
15515
|
throw new F("Assertion failed: `isLittleEndian` must be a Boolean");
|
|
15516
15516
|
var er = Tt.size["$" + ft];
|
|
15517
15517
|
if (Lt.length !== er)
|
|
@@ -15519,7 +15519,7 @@ function Fb() {
|
|
|
15519
15519
|
var dr = G(ft);
|
|
15520
15520
|
if (dr && !Z)
|
|
15521
15521
|
throw new M("this environment does not support BigInts");
|
|
15522
|
-
return Lt = Ne(Lt, 0, er),
|
|
15522
|
+
return Lt = Ne(Lt, 0, er), Gt || Ke(Lt), ft === "FLOAT32" ? fe(Lt) : ft === "FLOAT64" ? De(Lt) : oe(Lt, er, me(ft), dr);
|
|
15523
15523
|
}, Ih;
|
|
15524
15524
|
}
|
|
15525
15525
|
var Ah, cy;
|
|
@@ -16091,14 +16091,14 @@ function V1() {
|
|
|
16091
16091
|
Qe = oe, ft = "0" + ye;
|
|
16092
16092
|
else {
|
|
16093
16093
|
Ke = b(Ke);
|
|
16094
|
-
var Lt = M(Ke),
|
|
16095
|
-
if (
|
|
16096
|
-
Qe =
|
|
16094
|
+
var Lt = M(Ke), Gt = me(Lt), er = G(Ke - Lt), dr;
|
|
16095
|
+
if (Gt)
|
|
16096
|
+
Qe = Gt.length - 1;
|
|
16097
16097
|
else {
|
|
16098
16098
|
var Mr = u(er, "1");
|
|
16099
16099
|
Mr > -1 && (dr = Mr + 1), Qe = -dr;
|
|
16100
16100
|
}
|
|
16101
|
-
ft =
|
|
16101
|
+
ft = Gt + er, Qe < 0 ? (Qe <= -fe && (dr = fe - 1), ft = ne(ft, dr)) : ft = ne(ft, 1), Qe = ne(oe + me(Qe + fe), -11), ft = ne(ft + ye + "0", 0, 52);
|
|
16102
16102
|
}
|
|
16103
16103
|
for (var mr = Tt + Qe + ft, ai = [], Ir = 0; Ir < 8; Ir++) {
|
|
16104
16104
|
var Pi = Ne ? 8 - Ir - 1 : Ir;
|
|
@@ -16147,7 +16147,7 @@ function q1() {
|
|
|
16147
16147
|
return De(Qe, ft);
|
|
16148
16148
|
if (Tt === "FLOAT64")
|
|
16149
16149
|
return oe(Qe, ft);
|
|
16150
|
-
var Lt = Be.size["$" + Tt],
|
|
16150
|
+
var Lt = Be.size["$" + Tt], Gt = Ke["$" + Tt], er = Gt(Qe);
|
|
16151
16151
|
return ye(er, Lt, ft);
|
|
16152
16152
|
}, cf;
|
|
16153
16153
|
}
|
|
@@ -16937,9 +16937,9 @@ var VS = function(d) {
|
|
|
16937
16937
|
VT(Be, Qe, "UINT8", Lt, !0, "UNORDERED"), Tt += 1, Qe += 1;
|
|
16938
16938
|
}
|
|
16939
16939
|
else
|
|
16940
|
-
for (var
|
|
16940
|
+
for (var Gt = 0; u < G; ) {
|
|
16941
16941
|
var er = Uv(u), dr = RT(M, er);
|
|
16942
|
-
UT(fe, Uv(
|
|
16942
|
+
UT(fe, Uv(Gt), dr, !0), u += 1, Gt += 1;
|
|
16943
16943
|
}
|
|
16944
16944
|
}
|
|
16945
16945
|
return fe;
|
|
@@ -17417,7 +17417,7 @@ function _I(m, d, b, M, F, Z) {
|
|
|
17417
17417
|
"data-test": "vs-map-marker-icon",
|
|
17418
17418
|
class: rn(["vs-map-marker-icon", Z.parentClasses])
|
|
17419
17419
|
}, [
|
|
17420
|
-
|
|
17420
|
+
Ht(u, {
|
|
17421
17421
|
icon: Z.mapMarkerType,
|
|
17422
17422
|
class: rn(["vs-map-marker-icon__marker", Z.markerClasses]),
|
|
17423
17423
|
size: "xl"
|
|
@@ -17560,7 +17560,7 @@ function wI(m, d, b, M, F, Z) {
|
|
|
17560
17560
|
onFocusout: d[5] || (d[5] = (ne) => Z.handleHover("")),
|
|
17561
17561
|
"aria-label": Z.getMarkerIcon
|
|
17562
17562
|
}, [
|
|
17563
|
-
|
|
17563
|
+
Ht(u, {
|
|
17564
17564
|
id: Z.getMarkerIcon,
|
|
17565
17565
|
"is-map-marker": !0,
|
|
17566
17566
|
number: b.feature.properties.stopCount ? b.feature.properties.stopCount : ""
|
|
@@ -18264,7 +18264,7 @@ function kI(m, d, b, M, F, Z) {
|
|
|
18264
18264
|
ref: "mapbox"
|
|
18265
18265
|
}, null, 8, CI)
|
|
18266
18266
|
], 512),
|
|
18267
|
-
|
|
18267
|
+
Ht(ne, { class: "vs-map__no-js" }, {
|
|
18268
18268
|
default: Nt(() => [
|
|
18269
18269
|
Sr(m.$slots, "no-js")
|
|
18270
18270
|
]),
|
|
@@ -18335,14 +18335,14 @@ function BI(m, d, b, M, F, Z) {
|
|
|
18335
18335
|
onFocusout: d[4] || (d[4] = (G) => F.isHovered = !1)
|
|
18336
18336
|
}, [
|
|
18337
18337
|
$r("div", null, [
|
|
18338
|
-
|
|
18338
|
+
Ht(u, {
|
|
18339
18339
|
class: "vs-main-map-category__icon",
|
|
18340
18340
|
id: b.type,
|
|
18341
18341
|
"is-hovered": F.isHovered
|
|
18342
18342
|
}, null, 8, ["id", "is-hovered"]),
|
|
18343
18343
|
nn(" " + ni(b.categoryName), 1)
|
|
18344
18344
|
]),
|
|
18345
|
-
|
|
18345
|
+
Ht(ne, {
|
|
18346
18346
|
icon: "fa-regular fa-arrow-right",
|
|
18347
18347
|
variant: "highlight",
|
|
18348
18348
|
size: "xs",
|
|
@@ -18422,9 +18422,9 @@ const RI = {
|
|
|
18422
18422
|
function OI(m, d, b, M, F, Z) {
|
|
18423
18423
|
const u = qt("VsMapMarkerIcon"), ne = qt("BFormCheckbox"), G = qt("BFormCheckboxGroup"), me = qt("BFormGroup");
|
|
18424
18424
|
return ut(), Bt("div", FI, [
|
|
18425
|
-
|
|
18425
|
+
Ht(me, null, {
|
|
18426
18426
|
default: Nt(() => [
|
|
18427
|
-
|
|
18427
|
+
Ht(G, {
|
|
18428
18428
|
id: "checkbox-group-1",
|
|
18429
18429
|
modelValue: F.selected,
|
|
18430
18430
|
"onUpdate:modelValue": d[0] || (d[0] = (fe) => F.selected = fe),
|
|
@@ -18437,7 +18437,7 @@ function OI(m, d, b, M, F, Z) {
|
|
|
18437
18437
|
onChange: Z.emitChange
|
|
18438
18438
|
}, {
|
|
18439
18439
|
default: Nt(() => [
|
|
18440
|
-
|
|
18440
|
+
Ht(u, {
|
|
18441
18441
|
class: "vs-main-map-subcategory__icon",
|
|
18442
18442
|
id: b.selectedSubCategory
|
|
18443
18443
|
}, null, 8, ["id"]),
|
|
@@ -18580,7 +18580,7 @@ function jI(m, d, b, M, F, Z) {
|
|
|
18580
18580
|
}, null, 8, ["src"])) : kr("", !0)
|
|
18581
18581
|
]),
|
|
18582
18582
|
$r("span", qI, ni(F.formattedData.properties.title), 1),
|
|
18583
|
-
|
|
18583
|
+
Ht(ne, {
|
|
18584
18584
|
icon: "fa-regular fa-arrow-right",
|
|
18585
18585
|
variant: "highlight",
|
|
18586
18586
|
size: "xxs",
|
|
@@ -18710,7 +18710,7 @@ function QI(m, d, b, M, F, Z) {
|
|
|
18710
18710
|
"data-test": "vs-map-with-sidebar-buttons"
|
|
18711
18711
|
}, [
|
|
18712
18712
|
b.filterCount !== null ? (ut(), Bt(tn, { key: 0 }, [
|
|
18713
|
-
|
|
18713
|
+
Ht(u, {
|
|
18714
18714
|
class: "vs-map-with-sidebar-buttons__clear-filters",
|
|
18715
18715
|
"data-test": "vs-map-with-sidebar-buttons__clear-filters",
|
|
18716
18716
|
variant: "secondary",
|
|
@@ -18722,7 +18722,7 @@ function QI(m, d, b, M, F, Z) {
|
|
|
18722
18722
|
]),
|
|
18723
18723
|
_: 1
|
|
18724
18724
|
}, 8, ["onClick"]),
|
|
18725
|
-
|
|
18725
|
+
Ht(u, {
|
|
18726
18726
|
class: "vs-map-with-sidebar-buttons__filters",
|
|
18727
18727
|
"data-test": "vs-map-with-sidebar-buttons__filters",
|
|
18728
18728
|
variant: "secondary",
|
|
@@ -18736,7 +18736,7 @@ function QI(m, d, b, M, F, Z) {
|
|
|
18736
18736
|
_: 1
|
|
18737
18737
|
}, 8, ["onClick"])
|
|
18738
18738
|
], 64)) : (ut(), Bt(tn, { key: 1 }, [
|
|
18739
|
-
|
|
18739
|
+
Ht(u, {
|
|
18740
18740
|
href: b.contentData.properties.link.link,
|
|
18741
18741
|
"data-test": "vs-map-with-sidebar-buttons__discover",
|
|
18742
18742
|
class: "mb-050"
|
|
@@ -18814,7 +18814,7 @@ const eA = /* @__PURE__ */ Pn(YI, [["render", QI]]), tA = {
|
|
|
18814
18814
|
function iA(m, d, b, M, F, Z) {
|
|
18815
18815
|
const u = qt("VsButton");
|
|
18816
18816
|
return ut(), Bt("div", rA, [
|
|
18817
|
-
|
|
18817
|
+
Ht(u, {
|
|
18818
18818
|
class: "vs-main-map-controls__clear-selection",
|
|
18819
18819
|
"data-test": "vs-main-map-subcategory__clear-selection",
|
|
18820
18820
|
size: "sm",
|
|
@@ -18827,7 +18827,7 @@ function iA(m, d, b, M, F, Z) {
|
|
|
18827
18827
|
]),
|
|
18828
18828
|
_: 1
|
|
18829
18829
|
}, 8, ["onClick", "onKeyup"]),
|
|
18830
|
-
|
|
18830
|
+
Ht(u, {
|
|
18831
18831
|
class: "vs-main-map-controls__apply-filters",
|
|
18832
18832
|
"data-test": "vs-main-map-subcategory__apply-filters",
|
|
18833
18833
|
size: "sm",
|
|
@@ -19145,7 +19145,7 @@ function yA(m, d, b, M, F, Z) {
|
|
|
19145
19145
|
}, [
|
|
19146
19146
|
$r("div", oA, [
|
|
19147
19147
|
b.currentStage > 1 || b.selectedSubcategory ? (ut(), Bt("div", sA, [
|
|
19148
|
-
|
|
19148
|
+
Ht(u, {
|
|
19149
19149
|
class: "vs-map-with-sidebar-panel_menu",
|
|
19150
19150
|
icon: "vs-icon-control-menu",
|
|
19151
19151
|
size: "sm",
|
|
@@ -19160,7 +19160,7 @@ function yA(m, d, b, M, F, Z) {
|
|
|
19160
19160
|
}, 8, ["onClick"])
|
|
19161
19161
|
])) : kr("", !0),
|
|
19162
19162
|
b.currentStage === 1 || b.selectedSubcategory ? (ut(), Bt("div", uA, [
|
|
19163
|
-
|
|
19163
|
+
Ht(u, {
|
|
19164
19164
|
"icon-only": "",
|
|
19165
19165
|
icon: "fa-regular fa-arrow-left",
|
|
19166
19166
|
size: "md",
|
|
@@ -19175,7 +19175,7 @@ function yA(m, d, b, M, F, Z) {
|
|
|
19175
19175
|
}, 8, ["onClick"])
|
|
19176
19176
|
])) : kr("", !0),
|
|
19177
19177
|
$r("div", lA, [
|
|
19178
|
-
|
|
19178
|
+
Ht(u, {
|
|
19179
19179
|
"icon-only": "",
|
|
19180
19180
|
icon: "vs-icon-control-dismiss",
|
|
19181
19181
|
size: "md",
|
|
@@ -19191,7 +19191,7 @@ function yA(m, d, b, M, F, Z) {
|
|
|
19191
19191
|
])
|
|
19192
19192
|
]),
|
|
19193
19193
|
b.currentStage > 0 || b.selectedSubcategory ? (ut(), Bt("div", cA, [
|
|
19194
|
-
|
|
19194
|
+
Ht(u, {
|
|
19195
19195
|
"icon-only": "",
|
|
19196
19196
|
icon: "fa-regular fa-arrow-left",
|
|
19197
19197
|
size: "md",
|
|
@@ -19220,7 +19220,7 @@ function yA(m, d, b, M, F, Z) {
|
|
|
19220
19220
|
$r("div", {
|
|
19221
19221
|
class: rn(["vs-map-with-sidebar-panel__reset", b.currentStage < 2 ? "d-lg-none" : ""])
|
|
19222
19222
|
}, [
|
|
19223
|
-
|
|
19223
|
+
Ht(u, {
|
|
19224
19224
|
"icon-only": "",
|
|
19225
19225
|
icon: "vs-icon-control-dismiss",
|
|
19226
19226
|
size: "md",
|
|
@@ -19237,11 +19237,11 @@ function yA(m, d, b, M, F, Z) {
|
|
|
19237
19237
|
], 2),
|
|
19238
19238
|
b.currentStage === 0 ? (ut(), Bt(tn, { key: 0 }, [
|
|
19239
19239
|
b.selectedSubcategory !== null ? (ut(), Bt(tn, { key: 0 }, [
|
|
19240
|
-
|
|
19240
|
+
Ht(G, {
|
|
19241
19241
|
data: Z.selectedSubcategoryData[0].subCategory,
|
|
19242
19242
|
"selected-sub-category": b.selectedSubcategory
|
|
19243
19243
|
}, null, 8, ["data", "selected-sub-category"]),
|
|
19244
|
-
|
|
19244
|
+
Ht(me)
|
|
19245
19245
|
], 64)) : (ut(!0), Bt(tn, { key: 1 }, Jc(Z.filtersWithLocations, (Be) => (ut(), ji(fe, {
|
|
19246
19246
|
key: Be.id,
|
|
19247
19247
|
"category-name": Be.label,
|
|
@@ -19275,7 +19275,7 @@ function yA(m, d, b, M, F, Z) {
|
|
|
19275
19275
|
_: 3
|
|
19276
19276
|
})) : kr("", !0)
|
|
19277
19277
|
]),
|
|
19278
|
-
|
|
19278
|
+
Ht(oe, {
|
|
19279
19279
|
"content-data": {},
|
|
19280
19280
|
"filter-count": m.subCatFilterCount,
|
|
19281
19281
|
onClearFilters: Z.clearSubCatFilters
|
|
@@ -19291,11 +19291,11 @@ function yA(m, d, b, M, F, Z) {
|
|
|
19291
19291
|
]))), 128))
|
|
19292
19292
|
], 64)) : kr("", !0),
|
|
19293
19293
|
b.currentStage === 2 ? (ut(), Bt(tn, { key: 2 }, [
|
|
19294
|
-
|
|
19294
|
+
Ht(ye, {
|
|
19295
19295
|
"heading-level": Z.detailHeadingLevel,
|
|
19296
19296
|
"content-data": Z.currentPlaceData[0]
|
|
19297
19297
|
}, null, 8, ["heading-level", "content-data"]),
|
|
19298
|
-
|
|
19298
|
+
Ht(oe, {
|
|
19299
19299
|
"content-data": Z.currentPlaceData[0]
|
|
19300
19300
|
}, null, 8, ["content-data"])
|
|
19301
19301
|
], 64)) : kr("", !0),
|
|
@@ -19707,9 +19707,9 @@ function _A(m, d, b, M, F, Z) {
|
|
|
19707
19707
|
const u = qt("VsMapWithSidebarPanel"), ne = qt("VsButton"), G = qt("VsMap"), me = qt("VsButtonToggleGroup"), fe = qt("VsWarning"), De = qt("VsCol"), oe = qt("VsRow"), ye = qt("VsContainer");
|
|
19708
19708
|
return ut(), ji(ye, { "data-test": "vs-map-with-sidebar" }, {
|
|
19709
19709
|
default: Nt(() => [
|
|
19710
|
-
|
|
19710
|
+
Ht(oe, null, {
|
|
19711
19711
|
default: Nt(() => [
|
|
19712
|
-
|
|
19712
|
+
Ht(De, null, {
|
|
19713
19713
|
default: Nt(() => [
|
|
19714
19714
|
$r("div", {
|
|
19715
19715
|
class: "vs-map-with-sidebar",
|
|
@@ -19719,7 +19719,7 @@ function _A(m, d, b, M, F, Z) {
|
|
|
19719
19719
|
class: rn(["vs-map-with-sidebar__side-panel", Z.panelDisplayClass]),
|
|
19720
19720
|
"data-test": "vs-map-with-sidebar__side-panel"
|
|
19721
19721
|
}, [
|
|
19722
|
-
|
|
19722
|
+
Ht(u, {
|
|
19723
19723
|
"category-heading": b.categoryHeading,
|
|
19724
19724
|
"selected-category": F.selectedCategory,
|
|
19725
19725
|
"selected-subcategory": F.selectedSubCategory,
|
|
@@ -19762,7 +19762,7 @@ function _A(m, d, b, M, F, Z) {
|
|
|
19762
19762
|
$r("div", {
|
|
19763
19763
|
class: rn(["vs-map-with-sidebar__map", Z.mapDisplayClass])
|
|
19764
19764
|
}, [
|
|
19765
|
-
|
|
19765
|
+
Ht(ne, {
|
|
19766
19766
|
class: "vs-map-with-sidebar__map-toggle",
|
|
19767
19767
|
icon: "vs-icon-control-menu",
|
|
19768
19768
|
size: "sm",
|
|
@@ -19775,7 +19775,7 @@ function _A(m, d, b, M, F, Z) {
|
|
|
19775
19775
|
]),
|
|
19776
19776
|
_: 3
|
|
19777
19777
|
}, 8, ["onClick"]),
|
|
19778
|
-
|
|
19778
|
+
Ht(G, {
|
|
19779
19779
|
"is-visible": !F.panelVisible,
|
|
19780
19780
|
labels: {},
|
|
19781
19781
|
filters: Z.filtersWithLocations,
|
|
@@ -19820,7 +19820,7 @@ function _A(m, d, b, M, F, Z) {
|
|
|
19820
19820
|
}, null, 8, ["initial-selected", "options", "buttons-label", "onToggleChanged"])) : kr("", !0)
|
|
19821
19821
|
], 2)
|
|
19822
19822
|
], 512),
|
|
19823
|
-
|
|
19823
|
+
Ht(fe, { class: "vs-map-with-sidebar__no-js" }, {
|
|
19824
19824
|
default: Nt(() => [
|
|
19825
19825
|
Sr(m.$slots, "no-js")
|
|
19826
19826
|
]),
|