From 48f0af818ff5074d73c318da521a78f7bdb42bce Mon Sep 17 00:00:00 2001 From: Sebastian Hugentobler Date: Tue, 15 Jun 2021 11:14:46 +0200 Subject: [PATCH] initial commit --- .gitignore | 3 + LICENSE | 374 +++++++++++++++++++++++++++++++++++++++++ README.md | 21 +++ background.js | 202 ++++++++++++++++++++++ icons/map-disabled.png | Bin 0 -> 7561 bytes icons/map.png | Bin 0 -> 8800 bytes manifest.json | 40 +++++ 7 files changed, 640 insertions(+) create mode 100644 .gitignore create mode 100644 LICENSE create mode 100644 README.md create mode 100644 background.js create mode 100644 icons/map-disabled.png create mode 100644 icons/map.png create mode 100644 manifest.json diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..af0faab --- /dev/null +++ b/.gitignore @@ -0,0 +1,3 @@ +*~ +.DS_Store +*.swp diff --git a/LICENSE b/LICENSE new file mode 100644 index 0000000..960630a --- /dev/null +++ b/LICENSE @@ -0,0 +1,374 @@ +Mozilla Public License Version 2.0 +================================== + +1. Definitions +-------------- + +1.1. "Contributor" + means each individual or legal entity that creates, contributes to + the creation of, or owns Covered Software. + +1.2. "Contributor Version" + means the combination of the Contributions of others (if any) used + by a Contributor and that particular Contributor's Contribution. + +1.3. "Contribution" + means Covered Software of a particular Contributor. + +1.4. "Covered Software" + means Source Code Form to which the initial Contributor has attached + the notice in Exhibit A, the Executable Form of such Source Code + Form, and Modifications of such Source Code Form, in each case + including portions thereof. + +1.5. "Incompatible With Secondary Licenses" + means + + (a) that the initial Contributor has attached the notice described + in Exhibit B to the Covered Software; or + + (b) that the Covered Software was made available under the terms of + version 1.1 or earlier of the License, but not also under the + terms of a Secondary License. + +1.6. "Executable Form" + means any form of the work other than Source Code Form. + +1.7. "Larger Work" + means a work that combines Covered Software with other material, in + a separate file or files, that is not Covered Software. + +1.8. "License" + means this document. + +1.9. "Licensable" + means having the right to grant, to the maximum extent possible, + whether at the time of the initial grant or subsequently, any and + all of the rights conveyed by this License. + +1.10. "Modifications" + means any of the following: + + (a) any file in Source Code Form that results from an addition to, + deletion from, or modification of the contents of Covered + Software; or + + (b) any new file in Source Code Form that contains any Covered + Software. + +1.11. "Patent Claims" of a Contributor + means any patent claim(s), including without limitation, method, + process, and apparatus claims, in any patent Licensable by such + Contributor that would be infringed, but for the grant of the + License, by the making, using, selling, offering for sale, having + made, import, or transfer of either its Contributions or its + Contributor Version. + +1.12. "Secondary License" + means either the GNU General Public License, Version 2.0, the GNU + Lesser General Public License, Version 2.1, the GNU Affero General + Public License, Version 3.0, or any later versions of those + licenses. + +1.13. "Source Code Form" + means the form of the work preferred for making modifications. + +1.14. "You" (or "Your") + means an individual or a legal entity exercising rights under this + License. For legal entities, "You" includes any entity that + controls, is controlled by, or is under common control with You. For + purposes of this definition, "control" means (a) the power, direct + or indirect, to cause the direction or management of such entity, + whether by contract or otherwise, or (b) ownership of more than + fifty percent (50%) of the outstanding shares or beneficial + ownership of such entity. + +2. License Grants and Conditions +-------------------------------- + +2.1. Grants + +Each Contributor hereby grants You a world-wide, royalty-free, +non-exclusive license: + +(a) under intellectual property rights (other than patent or trademark) + Licensable by such Contributor to use, reproduce, make available, + modify, display, perform, distribute, and otherwise exploit its + Contributions, either on an unmodified basis, with Modifications, or + as part of a Larger Work; and + +(b) under Patent Claims of such Contributor to make, use, sell, offer + for sale, have made, import, and otherwise transfer either its + Contributions or its Contributor Version. + +2.2. Effective Date + +The licenses granted in Section 2.1 with respect to any Contribution +become effective for each Contribution on the date the Contributor first +distributes such Contribution. + +2.3. Limitations on Grant Scope + +The licenses granted in this Section 2 are the only rights granted under +this License. No additional rights or licenses will be implied from the +distribution or licensing of Covered Software under this License. +Notwithstanding Section 2.1(b) above, no patent license is granted by a +Contributor: + +(a) for any code that a Contributor has removed from Covered Software; + or + +(b) for infringements caused by: (i) Your and any other third party's + modifications of Covered Software, or (ii) the combination of its + Contributions with other software (except as part of its Contributor + Version); or + +(c) under Patent Claims infringed by Covered Software in the absence of + its Contributions. + +This License does not grant any rights in the trademarks, service marks, +or logos of any Contributor (except as may be necessary to comply with +the notice requirements in Section 3.4). + +2.4. Subsequent Licenses + +No Contributor makes additional grants as a result of Your choice to +distribute the Covered Software under a subsequent version of this +License (see Section 10.2) or under the terms of a Secondary License (if +permitted under the terms of Section 3.3). + +2.5. Representation + +Each Contributor represents that the Contributor believes its +Contributions are its original creation(s) or it has sufficient rights +to grant the rights to its Contributions conveyed by this License. + +2.6. Fair Use + +This License is not intended to limit any rights You have under +applicable copyright doctrines of fair use, fair dealing, or other +equivalents. + +2.7. Conditions + +Sections 3.1, 3.2, 3.3, and 3.4 are conditions of the licenses granted +in Section 2.1. + +3. Responsibilities +------------------- + +3.1. Distribution of Source Form + +All distribution of Covered Software in Source Code Form, including any +Modifications that You create or to which You contribute, must be under +the terms of this License. You must inform recipients that the Source +Code Form of the Covered Software is governed by the terms of this +License, and how they can obtain a copy of this License. You may not +attempt to alter or restrict the recipients' rights in the Source Code +Form. + +3.2. Distribution of Executable Form + +If You distribute Covered Software in Executable Form then: + +(a) such Covered Software must also be made available in Source Code + Form, as described in Section 3.1, and You must inform recipients of + the Executable Form how they can obtain a copy of such Source Code + Form by reasonable means in a timely manner, at a charge no more + than the cost of distribution to the recipient; and + +(b) You may distribute such Executable Form under the terms of this + License, or sublicense it under different terms, provided that the + license for the Executable Form does not attempt to limit or alter + the recipients' rights in the Source Code Form under this License. + +3.3. Distribution of a Larger Work + +You may create and distribute a Larger Work under terms of Your choice, +provided that You also comply with the requirements of this License for +the Covered Software. If the Larger Work is a combination of Covered +Software with a work governed by one or more Secondary Licenses, and the +Covered Software is not Incompatible With Secondary Licenses, this +License permits You to additionally distribute such Covered Software +under the terms of such Secondary License(s), so that the recipient of +the Larger Work may, at their option, further distribute the Covered +Software under the terms of either this License or such Secondary +License(s). + +3.4. Notices + +You may not remove or alter the substance of any license notices +(including copyright notices, patent notices, disclaimers of warranty, +or limitations of liability) contained within the Source Code Form of +the Covered Software, except that You may alter any license notices to +the extent required to remedy known factual inaccuracies. + +3.5. Application of Additional Terms + +You may choose to offer, and to charge a fee for, warranty, support, +indemnity or liability obligations to one or more recipients of Covered +Software. However, You may do so only on Your own behalf, and not on +behalf of any Contributor. You must make it absolutely clear that any +such warranty, support, indemnity, or liability obligation is offered by +You alone, and You hereby agree to indemnify every Contributor for any +liability incurred by such Contributor as a result of warranty, support, +indemnity or liability terms You offer. You may include additional +disclaimers of warranty and limitations of liability specific to any +jurisdiction. + +4. Inability to Comply Due to Statute or Regulation +--------------------------------------------------- + +If it is impossible for You to comply with any of the terms of this +License with respect to some or all of the Covered Software due to +statute, judicial order, or regulation then You must: (a) comply with +the terms of this License to the maximum extent possible; and (b) +describe the limitations and the code they affect. Such description must +be placed in a text file included with all distributions of the Covered +Software under this License. Except to the extent prohibited by statute +or regulation, such description must be sufficiently detailed for a +recipient of ordinary skill to be able to understand it. + +5. Termination +-------------- + +5.1. The rights granted under this License will terminate automatically +if You fail to comply with any of its terms. However, if You become +compliant, then the rights granted under this License from a particular +Contributor are reinstated (a) provisionally, unless and until such +Contributor explicitly and finally terminates Your grants, and (b) on an +ongoing basis, if such Contributor fails to notify You of the +non-compliance by some reasonable means prior to 60 days after You have +come back into compliance. Moreover, Your grants from a particular +Contributor are reinstated on an ongoing basis if such Contributor +notifies You of the non-compliance by some reasonable means, this is the +first time You have received notice of non-compliance with this License +from such Contributor, and You become compliant prior to 30 days after +Your receipt of the notice. + +5.2. If You initiate litigation against any entity by asserting a patent +infringement claim (excluding declaratory judgment actions, +counter-claims, and cross-claims) alleging that a Contributor Version +directly or indirectly infringes any patent, then the rights granted to +You by any and all Contributors for the Covered Software under Section +2.1 of this License shall terminate. + +5.3. In the event of termination under Sections 5.1 or 5.2 above, all +end user license agreements (excluding distributors and resellers) which +have been validly granted by You or Your distributors under this License +prior to termination shall survive termination. + +************************************************************************ +* * +* 6. Disclaimer of Warranty * +* ------------------------- * +* * +* Covered Software is provided under this License on an "as is" * +* basis, without warranty of any kind, either expressed, implied, or * +* statutory, including, without limitation, warranties that the * +* Covered Software is free of defects, merchantable, fit for a * +* particular purpose or non-infringing. The entire risk as to the * +* quality and performance of the Covered Software is with You. * +* Should any Covered Software prove defective in any respect, You * +* (not any Contributor) assume the cost of any necessary servicing, * +* repair, or correction. This disclaimer of warranty constitutes an * +* essential part of this License. No use of any Covered Software is * +* authorized under this License except under this disclaimer. * +* * +************************************************************************ + +************************************************************************ +* * +* 7. Limitation of Liability * +* -------------------------- * +* * +* Under no circumstances and under no legal theory, whether tort * +* (including negligence), contract, or otherwise, shall any * +* Contributor, or anyone who distributes Covered Software as * +* permitted above, be liable to You for any direct, indirect, * +* special, incidental, or consequential damages of any character * +* including, without limitation, damages for lost profits, loss of * +* goodwill, work stoppage, computer failure or malfunction, or any * +* and all other commercial damages or losses, even if such party * +* shall have been informed of the possibility of such damages. This * +* limitation of liability shall not apply to liability for death or * +* personal injury resulting from such party's negligence to the * +* extent applicable law prohibits such limitation. Some * +* jurisdictions do not allow the exclusion or limitation of * +* incidental or consequential damages, so this exclusion and * +* limitation may not apply to You. * +* * +************************************************************************ + +8. Litigation +------------- + +Any litigation relating to this License may be brought only in the +courts of a jurisdiction where the defendant maintains its principal +place of business and such litigation shall be governed by laws of that +jurisdiction, without reference to its conflict-of-law provisions. +Nothing in this Section shall prevent a party's ability to bring +cross-claims or counter-claims. + +9. Miscellaneous +---------------- + +This License represents the complete agreement concerning the subject +matter hereof. If any provision of this License is held to be +unenforceable, such provision shall be reformed only to the extent +necessary to make it enforceable. Any law or regulation which provides +that the language of a contract shall be construed against the drafter +shall not be used to construe this License against a Contributor. + +10. Versions of the License +--------------------------- + +10.1. New Versions + +Mozilla Foundation is the license steward. Except as provided in Section +10.3, no one other than the license steward has the right to modify or +publish new versions of this License. Each version will be given a +distinguishing version number. + +10.2. Effect of New Versions + +You may distribute the Covered Software under the terms of the version +of the License under which You originally received the Covered Software, +or under the terms of any subsequent version published by the license +steward. + +10.3. Modified Versions + +If you create software not governed by this License, and you want to +create a new license for such software, you may create and use a +modified version of this License if you rename the license and remove +any references to the name of the license steward (except to note that +such modified license differs from this License). + +10.4. Distributing Source Code Form that is Incompatible With Secondary +Licenses + +If You choose to distribute Source Code Form that is Incompatible With +Secondary Licenses under the terms of this version of the License, the +notice described in Exhibit B of this License must be attached. + +Exhibit A - Source Code Form License Notice +------------------------------------------- + + This Source Code Form is subject to the terms of the Mozilla Public + License, v. 2.0. If a copy of the MPL was not distributed with this + file, You can obtain one at https://mozilla.org/MPL/2.0/. + +If it is not possible or desirable to put the notice in a particular +file, then You may include the notice in a location (such as a LICENSE +file in a relevant directory) where a recipient would be likely to look +for such a notice. + +You may add additional accurate notices of copyright ownership. + +Exhibit B - "Incompatible With Secondary Licenses" Notice +--------------------------------------------------------- + + This Source Code Form is "Incompatible With Secondary Licenses", as + defined by the Mozilla Public License, v. 2.0. + diff --git a/README.md b/README.md new file mode 100644 index 0000000..afa91a0 --- /dev/null +++ b/README.md @@ -0,0 +1,21 @@ +# SAC Route Portal GPX Downloader + +The (Swiss Alpine Club)[https://www.sac-cas.ch/en/] has a great +(route portal)[https://www.sac-cas.ch/en/huts-and-tours/sac-route-portal/] +for finding interesting hiking routes. + +However you can not download the tracks as gpx files, as they argue that the exact +paths are subject to change and it could be dangerous to adhere too closely to them. + +I do agree with that, but you can draw your own routes +and download those, mainly taking some time to draw after the route they are +already showing on the map. + +With this extension you can select any track and then download it as a gpx file +(an active subscription is needed). + +## Be Cautious! +Heed their warning and do not blindly follow the gps track! Use your brain and +plan your route beforehand to be aware of dangerous parts and alternatives. + +Take a look at their [safety instructions](https://www.sac-cas.ch/en/training-and-safety/safety/). diff --git a/background.js b/background.js new file mode 100644 index 0000000..75da0bd --- /dev/null +++ b/background.js @@ -0,0 +1,202 @@ +/* This Source Code Form is subject to the terms of the Mozilla Public + * License, v. 2.0. If a copy of the MPL was not distributed with this + * file, You can obtain one at https://mozilla.org/MPL/2.0/. */ + +let gpxTrack = null; + +/** + * Convert the Swiss projection coordinates to WGS84 (lat/lon). + * + * Calculations from "Approximate formulas for the transformation between Swiss + * projection coordinates and WGS84" by the Swiss Federal Office of Topography, + * swisstopo + * (https://www.swisstopo.admin.ch/en/knowledge-facts/surveying-geodesy/reference-systems/map-projections.html). + * + * @param {*} point Array of Swiss projection coordinates, position 0 is E and 1 is N. + * @returns Track point xml node for gpx. + */ +function toTrackPoint(point) { + // convert LV95 into the civilian system + let y_aux = (point[0] - 2600000)/1000000; + let x_aux = (point[1] - 1200000)/1000000; + + // calculate longitude and latitude in the unit 10000" + let lat = 16.9023892 + + 3.238272 * x_aux - + 0.270978 * Math.pow(y_aux, 2) - + 0.002528 * Math.pow(x_aux, 2) - + 0.0447 * Math.pow(y_aux, 2) * x_aux - + 0.0140 * Math.pow(x_aux, 3); + + let lng = 2.6779094 + + 4.728982 * y_aux + + 0.791484 * y_aux * x_aux + + 0.1306 * y_aux * Math.pow(x_aux, 2) - + 0.0436 * Math.pow(y_aux, 3); + + // unit 10000" to 1" and seconds to degrees (dec) + lat = lat * 100 / 36; + lng = lng * 100 / 36; + + return ``; +} + +/** + * Create track title. + * + * @param {*} geoJson + * @returns Combined route number, id and route title. + */ +function trackTitle(geoJson) { + const route = geoJson.segments[0]; + return `${geoJson.book_route_number}-${route.route_id} ${route.title}`; +} + +/** + * Create a gpx representation from the sac GeoJSON data. + * + * @param {*} geoJson + * @returns Simple gpx string. + */ +function toGpx(geoJson) { + const route = geoJson.segments[0].geom; + const routeTitle = trackTitle(geoJson); + + const xmlString = ` + + + + Track ${routeTitle} + + ${route.coordinates.map(toTrackPoint).join("")} + + + + `; + + const parser = new DOMParser(); + let xmlDoc = parser.parseFromString(xmlString, "text/xml"); + + return new XMLSerializer().serializeToString(xmlDoc.documentElement); +} + +/** + * Intercept the download of GeoJSON data and save it for the background script. + */ +function listener(details) { + let filter = browser.webRequest.filterResponseData(details.requestId); + let decoder = new TextDecoder("utf-8"); + let encoder = new TextEncoder(); + + let data = []; + filter.ondata = event => { + data.push(event.data); + }; + + filter.onstop = async event => { + let blob = new Blob(data, {type: 'text/html'}); + let buffer = await blob.arrayBuffer(); + let str = decoder.decode(buffer); + + gpxTrack = JSON.parse(str); + updateActiveTab(browser.tabs); + + filter.write(encoder.encode(str)); + filter.close(); + }; + + return {}; +} + +/** + * Check if a url should be intercepted. + * + * @param {*} tab + * @returns True if the active tab is an sac website, false otherwise. + */ +function checkTrack(tab) { + if (!tab.url) { + return false; + } + + return tab.url.match("https://www.sac-cas.ch/.*") && gpxTrack; +} + +/** + * If a valid tack was selected, download it as a gpx file. + */ +function handleClick(tab) { + const hasTrack = checkTrack(tab); + if (!hasTrack) { + return; + } + + let blob = new Blob([toGpx(gpxTrack)], {type: "application/gpx+xml"}); + let objectURL = URL.createObjectURL(blob); + + const routeTitle = trackTitle(gpxTrack); + + let downloading = browser.downloads.download({ + url : objectURL, + filename : `track-${routeTitle}.gpx`, + saveAs: true, + conflictAction : 'uniquify' + }); + + downloading.then( + (id) => console.log(`Started downloading: ${id}`), + (error) => console.log(`Download failed: ${error}`)); + gpxTrack = null; +} + +/** + * Update the download icon and text. + */ +function updateActiveTab(tabs) { + function updateTab(tabs) { + if (tabs[0]) { + updateIcon(tabs[0]); + } + } + + let gettingActiveTab = browser.tabs.query({active: true, currentWindow: true}); + gettingActiveTab.then(updateTab); +} + +/** + * Update the download icon. + */ +function updateIcon(tab) { + const hasTrack = checkTrack(tab); + + browser.browserAction.setIcon({ + path: hasTrack ? { + 48: "icons/map.png", + } : { + 48: "icons/map-disabled.png", + }, + tabId: tab.id + }); + browser.browserAction.setTitle({ + title: hasTrack ? `Download track ${trackTitle(gpxTrack)}` : 'No track selected', + tabId: tab.id + }); +} + +browser.webRequest.onBeforeRequest.addListener( + listener, + {urls: ["https://www.sac-cas.ch/*[routeId]*"]}, + ["blocking"] +); + +browser.browserAction.onClicked.addListener(handleClick); + +browser.tabs.onUpdated.addListener(updateActiveTab); +browser.tabs.onActivated.addListener(updateActiveTab); +browser.windows.onFocusChanged.addListener(updateActiveTab); + +updateActiveTab(); diff --git a/icons/map-disabled.png b/icons/map-disabled.png new file mode 100644 index 0000000000000000000000000000000000000000..0bc22908c2a07e9b6395d3cc593286d90f97f5b2 GIT binary patch literal 7561 zcmeHMXH-*L(+*OlBO*;P#sUb0B!ph1H)+zPX*vM{A%vGAZvs{nrAbFY z1yMkd8l(u)L_~^y2lU?SUEllXe(QVx-DKsQeP+)*GxN-xz4l(YU}a&%!zsoI0)co; zjPQ{_Y(`Kv z!Jj0kXB8f(Blae?m=Eye4_@y2%v>Sf=I40B5}qDowO0L5F-hh8h2b}IxWglxKH`^a zCPrG_2YIwws+0oQPOmy7KC4^|a%jmpF!Uj`aowu~uRFK&AR{Ly(Dsu0m(g$HQZ270 zBiVbgYmAU}m&fbl$$6{e@7^?i{t|5e@tn#`VB8*JoR(2)nUU$HR*~ZF$9j#l6!Gba zMb1_KO1>r2AcGxeWWYYogPd-5hw~F>vP(UV-pYRBa;t=+>ti`{xswB^`BlzNwP_Ef zUFi$fdhE$&3IgtSPdyiG_urLTywT)pCvfS8?(wqIX4x@ELf4hu_VdKorx?)~i84+3 zkEQt84z|v_vueL_)Sx7ddTrz{Zsq64f-HX!s>7&R-is5`5o2sy@+1+NLQ@R%pUvbg7>2d2;ZM0Z%!Sx&7 z1v-+~eX^UcI?a_tm<|T?p5xP8dGi_cHd-{Ga@0t~H!qRz&2DqY^VOjV*PV)pIv2&G znH8x#sB2cTl9%Aj=>DT%2@xiKCk4E-ZI1_fO60yA(Kf1^{u-`g4o7Qu2ILP~u?NVH zLn{+263E?Ls_3cjJmd82^|1Gr@4c-&H3r_ixD0N>wV4cZKj(|TcWE_7b-J~}Rw{cX ztd!?LJT$G#S|lO}8lU@!lmgpj71cX;mQ_^xSC<~ThHhW>P zelfH@VXp7MUhJ++k?^1>!8XU2n}o<^iLq1qQoZ5NBw92^$82{e?7Z+%C=%g6E;yS{ zN*WL`yzln3mscWobmImz-~vyCu1HDM!VU=XWgdA{|KeiA?g+JY9O_$4oEzf^YMJgr zX&ZSbBK+-HpWDQ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zDN!u5Ra?AeW`IfdlU0TkrWzJz|IKwcR3@mjcJtEPG=yo3^NzHz0n_oXS6MuKBm5>A zyl3t1SX9TitGie4|B5mf02N+sn-5Rf)s2pefVb$#dUX1jzWC;Orw07S5?-g1A%&~P z&kn6=U3s$M7Iy$JD0Y5W$bE>pJL1Eo=ATD>75hYHXMWz1C2{|ec@Gb zaZI#m!G6mok<@(88zr<0j~$;z z9oK%hwC$Yj9jJLbUaSePA&PmQzEp&{2$v99+oxNpnQ!%uufU1X-tOWkI+2S7$>&Sf zN(xnCN<Yw8&;ZR?0F%J918@r2WHWB)?YEMG;1{Qv7Yt zt}mJzabKN#!uT7;uWz_@K^9(>$UM8*pgi4YDEL@@H&JAm7Hfo9AgkZ5ZPrxr-F>Y8WqtQyYhS-A1qvY|tEzjZ zIOoiDI{Sj2AY*={!GaqpRJ9 literal 0 HcmV?d00001 diff --git a/icons/map.png b/icons/map.png new file mode 100644 index 0000000000000000000000000000000000000000..a46cebbb85767afb026646a87507ba2e0869151a GIT binary patch literal 8800 zcmeHLXH-*7w+H&H!8j4Q2yiRPnsRNAAwYc@GFvq^wNjk zFZt8G7#qGz^fpc3ZthiXc=r5Ludi6MCAqBFM99w(!-|#bgd@I6 z2HlVq7aH^=UsQU%+@7WwVF&!5BK-r;+V6oy4WnwnaPju$-7g}T0RzRk_eV2r zU9|EI?=io{cFdKDXWkbLol^?r4 zRaSfIynn5l%JziU!i)BUl_Q?+alS~qcjqPBn{Q2OYz85(d!hM<=vmjdi(esjsAzzQfA+6Pc z9^1L1+Xq*?Ai)bvv1^_PeXk{MzFqc)+!B~s?o&&ChB+v@7{~HCR&x?@7%LEZ{xbQw zobZ&oi2C7lF3>PrLLD@Dy57*`B7(WVkH_^gxt?Q59;N-0K6M0iC`0oN{wrm^WXczn z-m0>-h=VFN(OXg_DBYLU8T&50II}LLKG~#3i@S}(1q^<1T)ge&Y%&s*vtj3ap0;Q6 z(eQhP`_02`OxuDM61G)F>TMD;*x^xp&z|d3^p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