diff options
81 files changed, 4962 insertions, 1092 deletions
diff --git a/data/extensions/DMCAreg@0xbeef.coffee/License b/data/extensions/DMCAreg@0xbeef.coffee/License deleted file mode 100644 index 638bb51..0000000 --- a/data/extensions/DMCAreg@0xbeef.coffee/License +++ /dev/null @@ -1,8 +0,0 @@ -Copyright (C) 2017 Nathan Nichols - -Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: - -The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. - -THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL NATHAN NICHOLS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. - diff --git a/data/extensions/DMCAreg@0xbeef.coffee/META-INF/manifest.mf b/data/extensions/DMCAreg@0xbeef.coffee/META-INF/manifest.mf deleted file mode 100644 index 32d4ec4..0000000 --- a/data/extensions/DMCAreg@0xbeef.coffee/META-INF/manifest.mf +++ /dev/null @@ -1,42 +0,0 @@ -Manifest-Version: 1.0 - -Name: blockjs1.js -Digest-Algorithms: MD5 SHA1 -MD5-Digest: EJxqV3sHdfrEnJZogcJFJQ== -SHA1-Digest: t9H09gXcb8mJU0K2MXj+M3/a92c= - -Name: License -Digest-Algorithms: MD5 SHA1 -MD5-Digest: o1+NLuXuBdXDUPbqMKclVg== -SHA1-Digest: 9neKP3yy2up5cLrNOoXL0zOPkJY= - -Name: manifest.json -Digest-Algorithms: MD5 SHA1 -MD5-Digest: wSkRLX9zPT6qxHA/KBuKjA== -SHA1-Digest: LRYM22J0nOa9TGAFPiZ3yAQVHng= - -Name: pay.js -Digest-Algorithms: MD5 SHA1 -MD5-Digest: 8YqH25U8K1pHrnecFcUlNg== -SHA1-Digest: LVBxTR+tNs6IYqxtVG/HxOHQLzE= - -Name: unhidehtml.js -Digest-Algorithms: MD5 SHA1 -MD5-Digest: VjeA5iRQTGfTKX03WqXygg== -SHA1-Digest: aPdjED+4h+IQol3tm9Brlo2WzRQ= - -Name: icons/L4Libre.png -Digest-Algorithms: MD5 SHA1 -MD5-Digest: 4zvLiRtcfTqAAD1tLrsEsw== -SHA1-Digest: GcCCKFQJ8W4Nzd7mW4zEUs0xvg8= - -Name: icons/L4Libre128.png -Digest-Algorithms: MD5 SHA1 -MD5-Digest: BMl+LQVFGtIQC362YUozGA== -SHA1-Digest: c4gIR+7dTNjGG4GxGBOTfen9f/Q= - -Name: icons/L4Libre48.png -Digest-Algorithms: MD5 SHA1 -MD5-Digest: GRl/Cx1lCE7LCMC7s3NEsg== -SHA1-Digest: OPRWh2l1CljS+seEgz068G4P1VA= - diff --git a/data/extensions/DMCAreg@0xbeef.coffee/META-INF/mozilla.rsa b/data/extensions/DMCAreg@0xbeef.coffee/META-INF/mozilla.rsa Binary files differdeleted file mode 100644 index 376403c..0000000 --- a/data/extensions/DMCAreg@0xbeef.coffee/META-INF/mozilla.rsa +++ /dev/null diff --git a/data/extensions/DMCAreg@0xbeef.coffee/META-INF/mozilla.sf b/data/extensions/DMCAreg@0xbeef.coffee/META-INF/mozilla.sf deleted file mode 100644 index 5e8c3e8..0000000 --- a/data/extensions/DMCAreg@0xbeef.coffee/META-INF/mozilla.sf +++ /dev/null @@ -1,4 +0,0 @@ -Signature-Version: 1.0 -MD5-Digest-Manifest: sYPkuHcMxArJcWiXiHnNHg== -SHA1-Digest-Manifest: nYfZzN5bZzdr82hVmfPstjNRMak= - diff --git a/data/extensions/DMCAreg@0xbeef.coffee/blockjs1.js b/data/extensions/DMCAreg@0xbeef.coffee/blockjs1.js deleted file mode 100644 index 591ce1a..0000000 --- a/data/extensions/DMCAreg@0xbeef.coffee/blockjs1.js +++ /dev/null @@ -1,33 +0,0 @@ -/* -Copyright (C) 2017 Nathan Nichols - -Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: - -The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. - -THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL NATHAN NICHOLS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. -*/ -console.log("blockjs1.js[pay.gov]"); - -// get this from the manifest.json directly -/* -var block_urls = [ - "*://actionnetwork.org/letters/*", - "*://www.dailykos.com/*", - "*://act.rootsaction.org/*", - "*://rootscation.org/*", - "*://*.salsalabs.org/*" -]; -*/ -var block_urls = ["https://www.pay.gov/tcsonline/*"]; -function cancel(requestDetails) { - console.log("[pay.gov]Canceling: " + requestDetails.url); - return {cancel: true}; -} - - -browser.webRequest.onBeforeRequest.addListener( - cancel, // function - {urls: block_urls, types: ["script"]}, - ["blocking"] -); diff --git a/data/extensions/DMCAreg@0xbeef.coffee/icons/L4Libre.png b/data/extensions/DMCAreg@0xbeef.coffee/icons/L4Libre.png Binary files differdeleted file mode 100644 index 0ac7b4b..0000000 --- a/data/extensions/DMCAreg@0xbeef.coffee/icons/L4Libre.png +++ /dev/null diff --git a/data/extensions/DMCAreg@0xbeef.coffee/icons/L4Libre128.png b/data/extensions/DMCAreg@0xbeef.coffee/icons/L4Libre128.png Binary files differdeleted file mode 100644 index cb8eea3..0000000 --- a/data/extensions/DMCAreg@0xbeef.coffee/icons/L4Libre128.png +++ /dev/null diff --git a/data/extensions/DMCAreg@0xbeef.coffee/icons/L4Libre48.png b/data/extensions/DMCAreg@0xbeef.coffee/icons/L4Libre48.png Binary files differdeleted file mode 100644 index 66200a9..0000000 --- a/data/extensions/DMCAreg@0xbeef.coffee/icons/L4Libre48.png +++ /dev/null diff --git a/data/extensions/DMCAreg@0xbeef.coffee/manifest.json b/data/extensions/DMCAreg@0xbeef.coffee/manifest.json deleted file mode 100644 index b517556..0000000 --- a/data/extensions/DMCAreg@0xbeef.coffee/manifest.json +++ /dev/null @@ -1,39 +0,0 @@ -{ - "manifest_version": 2, - "name": "LibreJS compatible Pay.gov", - "version": "1.2", - "author": "Nathan Nichols", - "id": "DMCAreg@0xbeef.coffee", - "description": "Allows LibreJS users to register DMCA claim contacts at the DMCA registry.", - "icons": { - "16": "icons/L4Libre.png", - "48": "icons/L4Libre48.png", - "128": "icons/L4Libre128.png" - }, - "applications": { - "gecko": { - "id": "DMCAreg@0xbeef.coffee", - "strict_min_version": "42.0" - } - }, - - "permissions": [ - "webRequest", - "webRequestBlocking" - ], - "background": { - "scripts": ["blockjs1.js"] - }, - - "content_scripts": [ - { - "matches": [ - "https://www.pay.gov/tcsonline/*", - "https://dmca.copyright.gov/*" - ], - "js": [ - "pay.js" - ] - } - ] -} diff --git a/data/extensions/DMCAreg@0xbeef.coffee/pay.js b/data/extensions/DMCAreg@0xbeef.coffee/pay.js deleted file mode 100644 index d7ced0f..0000000 --- a/data/extensions/DMCAreg@0xbeef.coffee/pay.js +++ /dev/null @@ -1,49 +0,0 @@ -/* -Copyright (C) 2017 Nathan Nichols - -Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: - -The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. - -THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL NATHAN NICHOLS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. -*/ -console.log("pay.js"); - -function get_domain(url){ - var domain = url.replace('http://','').replace('https://','').split(/[/?#]/)[0]; - if(url.indexOf("http://") == 0){ - domain = "http://" + domain; - } - else if(url.indexOf("https://") == 0){ - domain = "https://" + domain; - } - domain = domain + "/"; - domain = domain.replace(/ /g,""); - return domain; -} - -if(document.location.href.indexOf("pay.gov/tcsonline/") != -1){ - document.getElementsByClassName("text")[0].remove(); - console.log("detected payment page."); - - if( document.getElementsByClassName("redbuttontext") !== null){ - document.getElementsByClassName("redbuttontext")[0].remove(); - } - - - document.getElementById("hiddenContinueButton").style.display = ""; - document.getElementById("statesCAN").remove(); - document.getElementById("statesUSA").remove(); - document.getElementById("stateText").value = "2 letter code"; -} - -if(get_domain(document.location.href) == "https://dmca.copyright.gov/"){ - var form = document.getElementById("file"); - if(form !== null){ - console.log("upload page detected"); - document.getElementById("btnUpload").disabled = false; - } - - -} - diff --git a/data/extensions/DMCAreg@0xbeef.coffee/unhidehtml.js b/data/extensions/DMCAreg@0xbeef.coffee/unhidehtml.js deleted file mode 100644 index 8ed399c..0000000 --- a/data/extensions/DMCAreg@0xbeef.coffee/unhidehtml.js +++ /dev/null @@ -1,19 +0,0 @@ - -function get_domain(url){ - var domain = url.replace('http://','').replace('https://','').split(/[/?#]/)[0]; - if(url.indexOf("http://") == 0){ - domain = "http://" + domain; - } - else if(url.indexOf("https://") == 0){ - domain = "https://" + domain; - } - domain = domain + "/"; - domain = domain.replace(/ /g,""); - return domain; -} - -if(get_domain(document.location.href) == "https://dmca.copyright.gov/"){ - - - -} diff --git a/data/extensions/SimpleSumOfUs@0xbeef.coffee/License b/data/extensions/SimpleSumOfUs@0xbeef.coffee/License deleted file mode 100644 index 33e9054..0000000 --- a/data/extensions/SimpleSumOfUs@0xbeef.coffee/License +++ /dev/null @@ -1,11 +0,0 @@ -Copyright (C) 2017 Nathan Nichols - -Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: - -The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. - -THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE X CONSORTIUM BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. - -Except as contained in this notice, the name of the X Consortium shall not be used in advertising or otherwise to promote the sale, use or other dealings in this Software without prior written authorization from the X Consortium. - - diff --git a/data/extensions/SimpleSumOfUs@0xbeef.coffee/License~ b/data/extensions/SimpleSumOfUs@0xbeef.coffee/License~ deleted file mode 100644 index e66519b..0000000 --- a/data/extensions/SimpleSumOfUs@0xbeef.coffee/License~ +++ /dev/null @@ -1,4 +0,0 @@ -Copying and distribution of these files, with or without modification, -are permitted in any medium without royalty provided the copyright -notice and this notice are preserved. This file is offered as-is, -without any warranty. diff --git a/data/extensions/SimpleSumOfUs@0xbeef.coffee/META-INF/manifest.mf b/data/extensions/SimpleSumOfUs@0xbeef.coffee/META-INF/manifest.mf deleted file mode 100644 index 52df9bf..0000000 --- a/data/extensions/SimpleSumOfUs@0xbeef.coffee/META-INF/manifest.mf +++ /dev/null @@ -1,47 +0,0 @@ -Manifest-Version: 1.0 - -Name: background.js -Digest-Algorithms: MD5 SHA1 -MD5-Digest: b+hqbG+cxbyn7voEeBC6YA== -SHA1-Digest: oqG7pr53XAo4O0cYevZ5h+QFm38= - -Name: background.js~ -Digest-Algorithms: MD5 SHA1 -MD5-Digest: F9sHiccCOsmqoxeuFpLUpg== -SHA1-Digest: 8FX8zeZe41n5PYWUZJlGZzw+MhQ= - -Name: improve_css.js~ -Digest-Algorithms: MD5 SHA1 -MD5-Digest: SPoSdQ4UV9ha7VtVQr7TSA== -SHA1-Digest: W/cOPUtvc7xRBqk+xIeaNJB0rgc= - -Name: License -Digest-Algorithms: MD5 SHA1 -MD5-Digest: HgKT6ruZj0xmqNQ4iVMdeA== -SHA1-Digest: fKv1UikAKfPIRdhcGHC+j0w+Qug= - -Name: License~ -Digest-Algorithms: MD5 SHA1 -MD5-Digest: uQsUSQeJ2hGiGWkNJivhZQ== -SHA1-Digest: MXOhbF9Sh9YFNeRy9ShSaNE2+4U= - -Name: main.js -Digest-Algorithms: MD5 SHA1 -MD5-Digest: W2QYOY14QJTlytkh9cuE/A== -SHA1-Digest: uK1t9t+sobDUU63+1CpPGV0xwsk= - -Name: main.js~ -Digest-Algorithms: MD5 SHA1 -MD5-Digest: EGCv8OmU0w4fVCaS6JIcwg== -SHA1-Digest: rN2Va7lolNC+XcwF1GUcs13wrr8= - -Name: manifest.json -Digest-Algorithms: MD5 SHA1 -MD5-Digest: jHQUFJK+JkNiuLvnV2RYGw== -SHA1-Digest: S/HNg8iRSNhp3L6jxlO1IBL0SMw= - -Name: manifest.json~ -Digest-Algorithms: MD5 SHA1 -MD5-Digest: P8fv2KGTLcz/ObrcJPN0sQ== -SHA1-Digest: ZFEZZb80US6Y7sJkd1uXi/UHu4A= - diff --git a/data/extensions/SimpleSumOfUs@0xbeef.coffee/META-INF/mozilla.rsa b/data/extensions/SimpleSumOfUs@0xbeef.coffee/META-INF/mozilla.rsa Binary files differdeleted file mode 100644 index c6a9cd0..0000000 --- a/data/extensions/SimpleSumOfUs@0xbeef.coffee/META-INF/mozilla.rsa +++ /dev/null diff --git a/data/extensions/SimpleSumOfUs@0xbeef.coffee/META-INF/mozilla.sf b/data/extensions/SimpleSumOfUs@0xbeef.coffee/META-INF/mozilla.sf deleted file mode 100644 index 1a4861e..0000000 --- a/data/extensions/SimpleSumOfUs@0xbeef.coffee/META-INF/mozilla.sf +++ /dev/null @@ -1,4 +0,0 @@ -Signature-Version: 1.0 -MD5-Digest-Manifest: /Am43YphqfZWnNf6ECgM9A== -SHA1-Digest-Manifest: ddWjaDwQVowyW0xE+V8v/il3Hx4= - diff --git a/data/extensions/SimpleSumOfUs@0xbeef.coffee/background.js b/data/extensions/SimpleSumOfUs@0xbeef.coffee/background.js deleted file mode 100644 index cf96c01..0000000 --- a/data/extensions/SimpleSumOfUs@0xbeef.coffee/background.js +++ /dev/null @@ -1,35 +0,0 @@ -/* - -Copyright (C) 2017 Nathan Nichols - -Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: - -The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. - -THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE X CONSORTIUM BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. - -Except as contained in this notice, the name of the X Consortium shall not be used in advertising or otherwise to promote the sale, use or other dealings in this Software without prior written authorization from the X Consortium. - - - -*/ - - -function redirect(requestDetails) { - console.log("Redirecting: " + requestDetails.url); - return { - redirectUrl: "https://www.sumofus.org/campaigns/" - }; -} -function none(requestDetails) { - console.log("none") -} -function make_page(requestDetails) { - -} - -browser.webRequest.onBeforeRequest.addListener( - redirect, - {urls: ["http://www.sumofus.org/"]}, - ["blocking"] -); diff --git a/data/extensions/SimpleSumOfUs@0xbeef.coffee/background.js~ b/data/extensions/SimpleSumOfUs@0xbeef.coffee/background.js~ deleted file mode 100644 index da8b5d3..0000000 --- a/data/extensions/SimpleSumOfUs@0xbeef.coffee/background.js~ +++ /dev/null @@ -1,37 +0,0 @@ -/* - -Copyright (C) 2017 Nathan Nichols - -Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: - -The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. - -THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE X CONSORTIUM BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. - -Except as contained in this notice, the name of the X Consortium shall not be used in advertising or otherwise to promote the sale, use or other dealings in this Software without prior written authorization from the X Consortium. - - - -*/ - - -function redirect(requestDetails) { - console.log("Redirecting: " + requestDetails.url); - return { - redirectUrl: "https://www.sumofus.org/campaigns/" - }; -} -function none(requestDetails) { - console.log("none") -} -function make_page(requestDetails) { - - console.log("\n\n\nmakin page\n\n\n") - -} - -browser.webRequest.onBeforeRequest.addListener( - redirect, - {urls: ["http://www.sumofus.org/"]}, - ["blocking"] -); diff --git a/data/extensions/SimpleSumOfUs@0xbeef.coffee/improve_css.js~ b/data/extensions/SimpleSumOfUs@0xbeef.coffee/improve_css.js~ deleted file mode 100644 index 6df0af4..0000000 --- a/data/extensions/SimpleSumOfUs@0xbeef.coffee/improve_css.js~ +++ /dev/null @@ -1,24 +0,0 @@ -/* - -Copyright (C) 2017 Nathan Nichols - -Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: - -The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. - -THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE X CONSORTIUM BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. - -Except as contained in this notice, the name of the X Consortium shall not be used in advertising or otherwise to promote the sale, use or other dealings in this Software without prior written authorization from the X Consortium. -*/ - -function wildcard_match(str, rule) { - return new RegExp("^" + rule.split("*").join(".*") + "$").test(str); -} - -var page = window.location.href; -var style = {"text-indent": "50px;","text-align": "left;","color": "black;","font-size": "12pt;"} - -if( wildcard_match(page,"*://*actions.sumofus.org/a/*") ){ - document.getElementsByClassName("body-text main-feature")[0].style = style; - document.body.style.display = style; -} diff --git a/data/extensions/SimpleSumOfUs@0xbeef.coffee/main.js b/data/extensions/SimpleSumOfUs@0xbeef.coffee/main.js deleted file mode 100644 index 25848a4..0000000 --- a/data/extensions/SimpleSumOfUs@0xbeef.coffee/main.js +++ /dev/null @@ -1,87 +0,0 @@ -/* - -Copyright (C) 2017 Nathan Nichols - -Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: - -The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. - -THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE X CONSORTIUM BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. - -Except as contained in this notice, the name of the X Consortium shall not be used in advertising or otherwise to promote the sale, use or other dealings in this Software without prior written authorization from the X Consortium. - - - -*/ - -function wildcard_match(str, rule) { - return new RegExp("^" + rule.split("*").join(".*") + "$").test(str); -} - -var page = window.location.href; -/* -if( wildcard_match(document.getElementsByTagName("pre")[0].innerHTML,'{"follow_up_url":"*"}') ){ - console.log(JSON.parse(document.getElementsByTagName("pre")[0].innerHTML)["follow_up_url"]); -} -*/ - -var style = "div { top: 5%; margin-left: 10%; margin-right: 10%; background-color: white;}" -var sheet = document.createElement('style'); -sheet.innerHTML = style; -document.body.appendChild(sheet); -if( wildcard_match(page,"*://*actions.sumofus.org/api/pages/*/actions") ){ - //console.log("Redirecting..."); - var link = document.body.innerText; - link = JSON.parse(link); - //console.log(link); - document.body.innerHTML = "<h1>You have submitted this petition.</h1>"; -} - -if( wildcard_match(page,"*://*actions.sumofus.org/a/*") ){ - console.log("hello"); - // because I noticed there were two of these for some reason - document.getElementsByTagName("button")[1].remove(); - document.getElementsByTagName("span")[0].innerHTML = ""; - var divs = document.getElementsByTagName("div"); - - document.getElementsByClassName("noscript-notice")[0].remove(); - - // If they change the HTML of the page this might break... - document.getElementsByClassName("petition-bar__content")[0].children[1].children[1].innerHTML = ""; - - for ( i=0; i<document.styleSheets.length; i++) { - void(document.styleSheets.item(i).disabled=true); - } - // apply some basic CSS to make it a bit prettier - var style = "div {margin: 50px; text-align: left; color: black; font-size: 12pt;}"; - var sheet = document.createElement('style'); - sheet.innerHTML = style; - document.body.appendChild(sheet); -} else{ - var xhr = new XMLHttpRequest(); - xhr.onreadystatechange = function() { - if(this["readyState"] == 4 && this["status"] == 200){ - var campaigns = JSON.parse(this.responseText); - //console.log(campaigns); - var s = ""; - var number = ""; - //html_template += '<button onclick="">Show Pictures</button><br>'; - for(var i = 0; i < campaigns.length; i += 1){ - number = (i+1)+"/"+campaigns.length+":"; - s = campaigns[i]["title"]+"<br>"; - html_template += number.link(campaigns[i]["url"])+s; - html_template += "<img src="+'"'+campaigns[i]["image"]+'"'+"><br>"; - } - document.body.innerHTML = html_template; - } - }; - - var html_template = "<h1>[Simple SumOfUs.org]</h1>"; - // URL to get campaigns - var url = "http://actions.sumofus.org/api/pages/featured.json?language=en"; - - document.head.replaceWith(""); - document.body.innerHTML = ""; - xhr.open("GET", url); - xhr.send(); -} diff --git a/data/extensions/SimpleSumOfUs@0xbeef.coffee/main.js~ b/data/extensions/SimpleSumOfUs@0xbeef.coffee/main.js~ deleted file mode 100644 index 84ed786..0000000 --- a/data/extensions/SimpleSumOfUs@0xbeef.coffee/main.js~ +++ /dev/null @@ -1,86 +0,0 @@ -/* - -Copyright (C) 2017 Nathan Nichols - -Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: - -The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. - -THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE X CONSORTIUM BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. - -Except as contained in this notice, the name of the X Consortium shall not be used in advertising or otherwise to promote the sale, use or other dealings in this Software without prior written authorization from the X Consortium. - - - -*/ - -function wildcard_match(str, rule) { - return new RegExp("^" + rule.split("*").join(".*") + "$").test(str); -} - -var page = window.location.href; -/* -if( wildcard_match(document.getElementsByTagName("pre")[0].innerHTML,'{"follow_up_url":"*"}') ){ - console.log(JSON.parse(document.getElementsByTagName("pre")[0].innerHTML)["follow_up_url"]); -} -*/ - -var style = "div { top: 5%; margin-left: 10%; margin-right: 10%; background-color: white;}" -var sheet = document.createElement('style'); -sheet.innerHTML = style; -document.body.appendChild(sheet); -if( wildcard_match(page,"*://*actions.sumofus.org/api/pages/*/actions") ){ - //console.log("Redirecting..."); - var link = document.body.innerText; - link = JSON.parse(link); - //console.log(link); - document.body.innerHTML = "<h1>You have submitted this petition.</h1>"; -} - -if( wildcard_match(page,"*://*actions.sumofus.org/a/*") ){ - console.log("hello"); - // because I noticed there were two of these for some reason - document.getElementsByTagName("button")[1].remove(); - document.getElementsByTagName("span")[0].innerHTML = ""; - var divs = document.getElementsByTagName("div"); - - document.getElementsByClassName("noscript-notice")[0].remove(); - - // If they change the HTML of the page this might break... - document.getElementsByClassName("petition-bar__content")[0].children[1].children[1].innerHTML = ""; - for(var i = 0; i < document.styleSheets.length; i++){ - document.styleSheets[i].disabled = true; - } - // apply some basic CSS to make it a bit prettier - var style = "div {margin: 50px; text-align: left; color: black; font-size: 12pt;}"; - var sheet = document.createElement('style'); - sheet.innerHTML = style; - document.body.appendChild(sheet); -} else{ - var xhr = new XMLHttpRequest(); - xhr.onreadystatechange = function() { - if(this["readyState"] == 4 && this["status"] == 200){ - var campaigns = JSON.parse(this.responseText); - //console.log(campaigns); - var s = ""; - var number = ""; - //html_template += '<button onclick="">Show Pictures</button><br>'; - for(var i = 0; i < campaigns.length; i += 1){ - number = (i+1)+"/"+campaigns.length+":"; - s = campaigns[i]["title"]+"<br>"; - html_template += number.link(campaigns[i]["url"])+s; - html_template += "<img src="+'"'+campaigns[i]["image"]+'"'+"><br>"; - } - document.body.innerHTML = html_template; - } - }; - - var html_template = "<h1>[Simple SumOfUs.org]</h1>"; - // URL to get campaigns - var url = "http://actions.sumofus.org/api/pages/featured.json?language=en"; - - document.head.replaceWith(""); - document.body.innerHTML = ""; - xhr.open("GET", url); - xhr.send(); -} diff --git a/data/extensions/SimpleSumOfUs@0xbeef.coffee/manifest.json b/data/extensions/SimpleSumOfUs@0xbeef.coffee/manifest.json deleted file mode 100644 index 3dae004..0000000 --- a/data/extensions/SimpleSumOfUs@0xbeef.coffee/manifest.json +++ /dev/null @@ -1,35 +0,0 @@ -{ - "manifest_version": 2, - "name": "LibreJS compatible SumOfUs.org", - "version": "1.0", - "author": "Nathan Nichols", - "description": "Makes sumofus.org compatible with LibreJS.", - "applications": { - "gecko": { - "id": "SimpleSumOfUs@0xbeef.coffee", - "strict_min_version": "42.0" - } - }, - "permissions": [ - "webRequestBlocking", - "*://*.sumofus.org/*", - "*://*.actions.sumofus.org/*", - "webRequest" - ], - - "background": { - "scripts": ["background.js"] - }, - "content_scripts": [ - { - "matches": [ - "https://www.sumofus.org/campaigns/*", - "*://*.actions.sumofus.org/a/*", - "*://*.actions.sumofus.org/api/pages/*/actions" - ], - "js": [ - "main.js" - ] - } - ] -} diff --git a/data/extensions/SimpleSumOfUs@0xbeef.coffee/manifest.json~ b/data/extensions/SimpleSumOfUs@0xbeef.coffee/manifest.json~ deleted file mode 100644 index b9de36f..0000000 --- a/data/extensions/SimpleSumOfUs@0xbeef.coffee/manifest.json~ +++ /dev/null @@ -1,36 +0,0 @@ -{ - "manifest_version": 2, - "name": "LibreJS compatible SumOfUs.org", - "version": "1.0", - "author": "Nathan Nichols", - "id": "SimpleSumOfUs@0xbeef.coffee", - "description": "Makes sumofus.org compatible with LibreJS.", - "applications": { - "gecko": { - "id": "SimpleSumOfUs@0xbeef.coffee", - "strict_min_version": "42.0" - } - }, - "permissions": [ - "webRequestBlocking", - "*://*.sumofus.org/*", - "*://*.actions.sumofus.org/*", - "webRequest" - ], - - "background": { - "scripts": ["background.js"] - }, - "content_scripts": [ - { - "matches": [ - "https://www.sumofus.org/campaigns/*", - "*://*.actions.sumofus.org/a/*", - "*://*.actions.sumofus.org/api/pages/*/actions" - ], - "js": [ - "main.js" - ] - } - ] -} diff --git a/data/extensions/gnuzilla-ext-workarounds@gnu.org/LICENSE b/data/extensions/gnuzilla-ext-workarounds@gnu.org/LICENSE new file mode 100644 index 0000000..e72bfdd --- /dev/null +++ b/data/extensions/gnuzilla-ext-workarounds@gnu.org/LICENSE @@ -0,0 +1,674 @@ + GNU GENERAL PUBLIC LICENSE + Version 3, 29 June 2007 + + Copyright (C) 2007 Free Software Foundation, Inc. <https://fsf.org/> + Everyone is permitted to copy and distribute verbatim copies + of this license document, but changing it is not allowed. + + Preamble + + The GNU General Public License is a free, copyleft license for +software and other kinds of works. + + The licenses for most software and other practical works are designed +to take away your freedom to share and change the works. By contrast, +the GNU General Public License is intended to guarantee your freedom to +share and change all versions of a program--to make sure it remains free +software for all its users. We, the Free Software Foundation, use the +GNU General Public License for most of our software; it applies also to +any other work released this way by its authors. You can apply it to +your programs, too. + + When we speak of free software, we are referring to freedom, not +price. Our General Public Licenses are designed to make sure that you +have the freedom to distribute copies of free software (and charge for +them if you wish), that you receive source code or can get it if you +want it, that you can change the software or use pieces of it in new +free programs, and that you know you can do these things. + + To protect your rights, we need to prevent others from denying you +these rights or asking you to surrender the rights. Therefore, you have +certain responsibilities if you distribute copies of the software, or if +you modify it: responsibilities to respect the freedom of others. + + For example, if you distribute copies of such a program, whether +gratis or for a fee, you must pass on to the recipients the same +freedoms that you received. You must make sure that they, too, receive +or can get the source code. And you must show them these terms so they +know their rights. + + Developers that use the GNU GPL protect your rights with two steps: +(1) assert copyright on the software, and (2) offer you this License +giving you legal permission to copy, distribute and/or modify it. + + For the developers' and authors' protection, the GPL clearly explains +that there is no warranty for this free software. For both users' and +authors' sake, the GPL requires that modified versions be marked as +changed, so that their problems will not be attributed erroneously to +authors of previous versions. + + Some devices are designed to deny users access to install or run +modified versions of the software inside them, although the manufacturer +can do so. This is fundamentally incompatible with the aim of +protecting users' freedom to change the software. The systematic +pattern of such abuse occurs in the area of products for individuals to +use, which is precisely where it is most unacceptable. Therefore, we +have designed this version of the GPL to prohibit the practice for those +products. If such problems arise substantially in other domains, we +stand ready to extend this provision to those domains in future versions +of the GPL, as needed to protect the freedom of users. + + Finally, every program is threatened constantly by software patents. +States should not allow patents to restrict development and use of +software on general-purpose computers, but in those that do, we wish to +avoid the special danger that patents applied to a free program could +make it effectively proprietary. To prevent this, the GPL assures that +patents cannot be used to render the program non-free. + + The precise terms and conditions for copying, distribution and +modification follow. + + TERMS AND CONDITIONS + + 0. Definitions. + + "This License" refers to version 3 of the GNU General Public License. + + "Copyright" also means copyright-like laws that apply to other kinds of +works, such as semiconductor masks. + + "The Program" refers to any copyrightable work licensed under this +License. Each licensee is addressed as "you". "Licensees" and +"recipients" may be individuals or organizations. + + To "modify" a work means to copy from or adapt all or part of the work +in a fashion requiring copyright permission, other than the making of an +exact copy. The resulting work is called a "modified version" of the +earlier work or a work "based on" the earlier work. + + A "covered work" means either the unmodified Program or a work based +on the Program. + + To "propagate" a work means to do anything with it that, without +permission, would make you directly or secondarily liable for +infringement under applicable copyright law, except executing it on a +computer or modifying a private copy. Propagation includes copying, +distribution (with or without modification), making available to the +public, and in some countries other activities as well. + + To "convey" a work means any kind of propagation that enables other +parties to make or receive copies. Mere interaction with a user through +a computer network, with no transfer of a copy, is not conveying. + + An interactive user interface displays "Appropriate Legal Notices" +to the extent that it includes a convenient and prominently visible +feature that (1) displays an appropriate copyright notice, and (2) +tells the user that there is no warranty for the work (except to the +extent that warranties are provided), that licensees may convey the +work under this License, and how to view a copy of this License. If +the interface presents a list of user commands or options, such as a +menu, a prominent item in the list meets this criterion. + + 1. Source Code. + + The "source code" for a work means the preferred form of the work +for making modifications to it. "Object code" means any non-source +form of a work. + + A "Standard Interface" means an interface that either is an official +standard defined by a recognized standards body, or, in the case of +interfaces specified for a particular programming language, one that +is widely used among developers working in that language. + + The "System Libraries" of an executable work include anything, other +than the work as a whole, that (a) is included in the normal form of +packaging a Major Component, but which is not part of that Major +Component, and (b) serves only to enable use of the work with that +Major Component, or to implement a Standard Interface for which an +implementation is available to the public in source code form. A +"Major Component", in this context, means a major essential component +(kernel, window system, and so on) of the specific operating system +(if any) on which the executable work runs, or a compiler used to +produce the work, or an object code interpreter used to run it. + + The "Corresponding Source" for a work in object code form means all +the source code needed to generate, install, and (for an executable +work) run the object code and to modify the work, including scripts to +control those activities. However, it does not include the work's +System Libraries, or general-purpose tools or generally available free +programs which are used unmodified in performing those activities but +which are not part of the work. For example, Corresponding Source +includes interface definition files associated with source files for +the work, and the source code for shared libraries and dynamically +linked subprograms that the work is specifically designed to require, +such as by intimate data communication or control flow between those +subprograms and other parts of the work. + + The Corresponding Source need not include anything that users +can regenerate automatically from other parts of the Corresponding +Source. + + The Corresponding Source for a work in source code form is that +same work. + + 2. Basic Permissions. + + All rights granted under this License are granted for the term of +copyright on the Program, and are irrevocable provided the stated +conditions are met. This License explicitly affirms your unlimited +permission to run the unmodified Program. The output from running a +covered work is covered by this License only if the output, given its +content, constitutes a covered work. This License acknowledges your +rights of fair use or other equivalent, as provided by copyright law. + + You may make, run and propagate covered works that you do not +convey, without conditions so long as your license otherwise remains +in force. You may convey covered works to others for the sole purpose +of having them make modifications exclusively for you, or provide you +with facilities for running those works, provided that you comply with +the terms of this License in conveying all material for which you do +not control copyright. Those thus making or running the covered works +for you must do so exclusively on your behalf, under your direction +and control, on terms that prohibit them from making any copies of +your copyrighted material outside their relationship with you. + + Conveying under any other circumstances is permitted solely under +the conditions stated below. Sublicensing is not allowed; section 10 +makes it unnecessary. + + 3. Protecting Users' Legal Rights From Anti-Circumvention Law. + + No covered work shall be deemed part of an effective technological +measure under any applicable law fulfilling obligations under article +11 of the WIPO copyright treaty adopted on 20 December 1996, or +similar laws prohibiting or restricting circumvention of such +measures. + + When you convey a covered work, you waive any legal power to forbid +circumvention of technological measures to the extent such circumvention +is effected by exercising rights under this License with respect to +the covered work, and you disclaim any intention to limit operation or +modification of the work as a means of enforcing, against the work's +users, your or third parties' legal rights to forbid circumvention of +technological measures. + + 4. Conveying Verbatim Copies. + + You may convey verbatim copies of the Program's source code as you +receive it, in any medium, provided that you conspicuously and +appropriately publish on each copy an appropriate copyright notice; +keep intact all notices stating that this License and any +non-permissive terms added in accord with section 7 apply to the code; +keep intact all notices of the absence of any warranty; and give all +recipients a copy of this License along with the Program. + + You may charge any price or no price for each copy that you convey, +and you may offer support or warranty protection for a fee. + + 5. Conveying Modified Source Versions. + + You may convey a work based on the Program, or the modifications to +produce it from the Program, in the form of source code under the +terms of section 4, provided that you also meet all of these conditions: + + a) The work must carry prominent notices stating that you modified + it, and giving a relevant date. + + b) The work must carry prominent notices stating that it is + released under this License and any conditions added under section + 7. This requirement modifies the requirement in section 4 to + "keep intact all notices". + + c) You must license the entire work, as a whole, under this + License to anyone who comes into possession of a copy. This + License will therefore apply, along with any applicable section 7 + additional terms, to the whole of the work, and all its parts, + regardless of how they are packaged. This License gives no + permission to license the work in any other way, but it does not + invalidate such permission if you have separately received it. + + d) If the work has interactive user interfaces, each must display + Appropriate Legal Notices; however, if the Program has interactive + interfaces that do not display Appropriate Legal Notices, your + work need not make them do so. + + A compilation of a covered work with other separate and independent +works, which are not by their nature extensions of the covered work, +and which are not combined with it such as to form a larger program, +in or on a volume of a storage or distribution medium, is called an +"aggregate" if the compilation and its resulting copyright are not +used to limit the access or legal rights of the compilation's users +beyond what the individual works permit. Inclusion of a covered work +in an aggregate does not cause this License to apply to the other +parts of the aggregate. + + 6. Conveying Non-Source Forms. + + You may convey a covered work in object code form under the terms +of sections 4 and 5, provided that you also convey the +machine-readable Corresponding Source under the terms of this License, +in one of these ways: + + a) Convey the object code in, or embodied in, a physical product + (including a physical distribution medium), accompanied by the + Corresponding Source fixed on a durable physical medium + customarily used for software interchange. + + b) Convey the object code in, or embodied in, a physical product + (including a physical distribution medium), accompanied by a + written offer, valid for at least three years and valid for as + long as you offer spare parts or customer support for that product + model, to give anyone who possesses the object code either (1) a + copy of the Corresponding Source for all the software in the + product that is covered by this License, on a durable physical + medium customarily used for software interchange, for a price no + more than your reasonable cost of physically performing this + conveying of source, or (2) access to copy the + Corresponding Source from a network server at no charge. + + c) Convey individual copies of the object code with a copy of the + written offer to provide the Corresponding Source. This + alternative is allowed only occasionally and noncommercially, and + only if you received the object code with such an offer, in accord + with subsection 6b. + + d) Convey the object code by offering access from a designated + place (gratis or for a charge), and offer equivalent access to the + Corresponding Source in the same way through the same place at no + further charge. You need not require recipients to copy the + Corresponding Source along with the object code. If the place to + copy the object code is a network server, the Corresponding Source + may be on a different server (operated by you or a third party) + that supports equivalent copying facilities, provided you maintain + clear directions next to the object code saying where to find the + Corresponding Source. Regardless of what server hosts the + Corresponding Source, you remain obligated to ensure that it is + available for as long as needed to satisfy these requirements. + + e) Convey the object code using peer-to-peer transmission, provided + you inform other peers where the object code and Corresponding + Source of the work are being offered to the general public at no + charge under subsection 6d. + + A separable portion of the object code, whose source code is excluded +from the Corresponding Source as a System Library, need not be +included in conveying the object code work. + + A "User Product" is either (1) a "consumer product", which means any +tangible personal property which is normally used for personal, family, +or household purposes, or (2) anything designed or sold for incorporation +into a dwelling. In determining whether a product is a consumer product, +doubtful cases shall be resolved in favor of coverage. For a particular +product received by a particular user, "normally used" refers to a +typical or common use of that class of product, regardless of the status +of the particular user or of the way in which the particular user +actually uses, or expects or is expected to use, the product. A product +is a consumer product regardless of whether the product has substantial +commercial, industrial or non-consumer uses, unless such uses represent +the only significant mode of use of the product. + + "Installation Information" for a User Product means any methods, +procedures, authorization keys, or other information required to install +and execute modified versions of a covered work in that User Product from +a modified version of its Corresponding Source. The information must +suffice to ensure that the continued functioning of the modified object +code is in no case prevented or interfered with solely because +modification has been made. + + If you convey an object code work under this section in, or with, or +specifically for use in, a User Product, and the conveying occurs as +part of a transaction in which the right of possession and use of the +User Product is transferred to the recipient in perpetuity or for a +fixed term (regardless of how the transaction is characterized), the +Corresponding Source conveyed under this section must be accompanied +by the Installation Information. But this requirement does not apply +if neither you nor any third party retains the ability to install +modified object code on the User Product (for example, the work has +been installed in ROM). + + The requirement to provide Installation Information does not include a +requirement to continue to provide support service, warranty, or updates +for a work that has been modified or installed by the recipient, or for +the User Product in which it has been modified or installed. Access to a +network may be denied when the modification itself materially and +adversely affects the operation of the network or violates the rules and +protocols for communication across the network. + + Corresponding Source conveyed, and Installation Information provided, +in accord with this section must be in a format that is publicly +documented (and with an implementation available to the public in +source code form), and must require no special password or key for +unpacking, reading or copying. + + 7. Additional Terms. + + "Additional permissions" are terms that supplement the terms of this +License by making exceptions from one or more of its conditions. +Additional permissions that are applicable to the entire Program shall +be treated as though they were included in this License, to the extent +that they are valid under applicable law. If additional permissions +apply only to part of the Program, that part may be used separately +under those permissions, but the entire Program remains governed by +this License without regard to the additional permissions. + + When you convey a copy of a covered work, you may at your option +remove any additional permissions from that copy, or from any part of +it. (Additional permissions may be written to require their own +removal in certain cases when you modify the work.) You may place +additional permissions on material, added by you to a covered work, +for which you have or can give appropriate copyright permission. + + Notwithstanding any other provision of this License, for material you +add to a covered work, you may (if authorized by the copyright holders of +that material) supplement the terms of this License with terms: + + a) Disclaiming warranty or limiting liability differently from the + terms of sections 15 and 16 of this License; or + + b) Requiring preservation of specified reasonable legal notices or + author attributions in that material or in the Appropriate Legal + Notices displayed by works containing it; or + + c) Prohibiting misrepresentation of the origin of that material, or + requiring that modified versions of such material be marked in + reasonable ways as different from the original version; or + + d) Limiting the use for publicity purposes of names of licensors or + authors of the material; or + + e) Declining to grant rights under trademark law for use of some + trade names, trademarks, or service marks; or + + f) Requiring indemnification of licensors and authors of that + material by anyone who conveys the material (or modified versions of + it) with contractual assumptions of liability to the recipient, for + any liability that these contractual assumptions directly impose on + those licensors and authors. + + All other non-permissive additional terms are considered "further +restrictions" within the meaning of section 10. If the Program as you +received it, or any part of it, contains a notice stating that it is +governed by this License along with a term that is a further +restriction, you may remove that term. If a license document contains +a further restriction but permits relicensing or conveying under this +License, you may add to a covered work material governed by the terms +of that license document, provided that the further restriction does +not survive such relicensing or conveying. + + If you add terms to a covered work in accord with this section, you +must place, in the relevant source files, a statement of the +additional terms that apply to those files, or a notice indicating +where to find the applicable terms. + + Additional terms, permissive or non-permissive, may be stated in the +form of a separately written license, or stated as exceptions; +the above requirements apply either way. + + 8. Termination. + + You may not propagate or modify a covered work except as expressly +provided under this License. Any attempt otherwise to propagate or +modify it is void, and will automatically terminate your rights under +this License (including any patent licenses granted under the third +paragraph of section 11). + + However, if you cease all violation of this License, then your +license from a particular copyright holder is reinstated (a) +provisionally, unless and until the copyright holder explicitly and +finally terminates your license, and (b) permanently, if the copyright +holder fails to notify you of the violation by some reasonable means +prior to 60 days after the cessation. + + Moreover, your license from a particular copyright holder is +reinstated permanently if the copyright holder notifies you of the +violation by some reasonable means, this is the first time you have +received notice of violation of this License (for any work) from that +copyright holder, and you cure the violation prior to 30 days after +your receipt of the notice. + + Termination of your rights under this section does not terminate the +licenses of parties who have received copies or rights from you under +this License. If your rights have been terminated and not permanently +reinstated, you do not qualify to receive new licenses for the same +material under section 10. + + 9. Acceptance Not Required for Having Copies. + + You are not required to accept this License in order to receive or +run a copy of the Program. Ancillary propagation of a covered work +occurring solely as a consequence of using peer-to-peer transmission +to receive a copy likewise does not require acceptance. However, +nothing other than this License grants you permission to propagate or +modify any covered work. These actions infringe copyright if you do +not accept this License. Therefore, by modifying or propagating a +covered work, you indicate your acceptance of this License to do so. + + 10. Automatic Licensing of Downstream Recipients. + + Each time you convey a covered work, the recipient automatically +receives a license from the original licensors, to run, modify and +propagate that work, subject to this License. You are not responsible +for enforcing compliance by third parties with this License. + + An "entity transaction" is a transaction transferring control of an +organization, or substantially all assets of one, or subdividing an +organization, or merging organizations. If propagation of a covered +work results from an entity transaction, each party to that +transaction who receives a copy of the work also receives whatever +licenses to the work the party's predecessor in interest had or could +give under the previous paragraph, plus a right to possession of the +Corresponding Source of the work from the predecessor in interest, if +the predecessor has it or can get it with reasonable efforts. + + You may not impose any further restrictions on the exercise of the +rights granted or affirmed under this License. For example, you may +not impose a license fee, royalty, or other charge for exercise of +rights granted under this License, and you may not initiate litigation +(including a cross-claim or counterclaim in a lawsuit) alleging that +any patent claim is infringed by making, using, selling, offering for +sale, or importing the Program or any portion of it. + + 11. Patents. + + A "contributor" is a copyright holder who authorizes use under this +License of the Program or a work on which the Program is based. The +work thus licensed is called the contributor's "contributor version". + + A contributor's "essential patent claims" are all patent claims +owned or controlled by the contributor, whether already acquired or +hereafter acquired, that would be infringed by some manner, permitted +by this License, of making, using, or selling its contributor version, +but do not include claims that would be infringed only as a +consequence of further modification of the contributor version. For +purposes of this definition, "control" includes the right to grant +patent sublicenses in a manner consistent with the requirements of +this License. + + Each contributor grants you a non-exclusive, worldwide, royalty-free +patent license under the contributor's essential patent claims, to +make, use, sell, offer for sale, import and otherwise run, modify and +propagate the contents of its contributor version. + + In the following three paragraphs, a "patent license" is any express +agreement or commitment, however denominated, not to enforce a patent +(such as an express permission to practice a patent or covenant not to +sue for patent infringement). To "grant" such a patent license to a +party means to make such an agreement or commitment not to enforce a +patent against the party. + + If you convey a covered work, knowingly relying on a patent license, +and the Corresponding Source of the work is not available for anyone +to copy, free of charge and under the terms of this License, through a +publicly available network server or other readily accessible means, +then you must either (1) cause the Corresponding Source to be so +available, or (2) arrange to deprive yourself of the benefit of the +patent license for this particular work, or (3) arrange, in a manner +consistent with the requirements of this License, to extend the patent +license to downstream recipients. "Knowingly relying" means you have +actual knowledge that, but for the patent license, your conveying the +covered work in a country, or your recipient's use of the covered work +in a country, would infringe one or more identifiable patents in that +country that you have reason to believe are valid. + + If, pursuant to or in connection with a single transaction or +arrangement, you convey, or propagate by procuring conveyance of, a +covered work, and grant a patent license to some of the parties +receiving the covered work authorizing them to use, propagate, modify +or convey a specific copy of the covered work, then the patent license +you grant is automatically extended to all recipients of the covered +work and works based on it. + + A patent license is "discriminatory" if it does not include within +the scope of its coverage, prohibits the exercise of, or is +conditioned on the non-exercise of one or more of the rights that are +specifically granted under this License. You may not convey a covered +work if you are a party to an arrangement with a third party that is +in the business of distributing software, under which you make payment +to the third party based on the extent of your activity of conveying +the work, and under which the third party grants, to any of the +parties who would receive the covered work from you, a discriminatory +patent license (a) in connection with copies of the covered work +conveyed by you (or copies made from those copies), or (b) primarily +for and in connection with specific products or compilations that +contain the covered work, unless you entered into that arrangement, +or that patent license was granted, prior to 28 March 2007. + + Nothing in this License shall be construed as excluding or limiting +any implied license or other defenses to infringement that may +otherwise be available to you under applicable patent law. + + 12. No Surrender of Others' Freedom. + + If conditions are imposed on you (whether by court order, agreement or +otherwise) that contradict the conditions of this License, they do not +excuse you from the conditions of this License. If you cannot convey a +covered work so as to satisfy simultaneously your obligations under this +License and any other pertinent obligations, then as a consequence you may +not convey it at all. For example, if you agree to terms that obligate you +to collect a royalty for further conveying from those to whom you convey +the Program, the only way you could satisfy both those terms and this +License would be to refrain entirely from conveying the Program. + + 13. Use with the GNU Affero General Public License. + + Notwithstanding any other provision of this License, you have +permission to link or combine any covered work with a work licensed +under version 3 of the GNU Affero General Public License into a single +combined work, and to convey the resulting work. The terms of this +License will continue to apply to the part which is the covered work, +but the special requirements of the GNU Affero General Public License, +section 13, concerning interaction through a network will apply to the +combination as such. + + 14. Revised Versions of this License. + + The Free Software Foundation may publish revised and/or new versions of +the GNU General Public License from time to time. Such new versions will +be similar in spirit to the present version, but may differ in detail to +address new problems or concerns. + + Each version is given a distinguishing version number. If the +Program specifies that a certain numbered version of the GNU General +Public License "or any later version" applies to it, you have the +option of following the terms and conditions either of that numbered +version or of any later version published by the Free Software +Foundation. If the Program does not specify a version number of the +GNU General Public License, you may choose any version ever published +by the Free Software Foundation. + + If the Program specifies that a proxy can decide which future +versions of the GNU General Public License can be used, that proxy's +public statement of acceptance of a version permanently authorizes you +to choose that version for the Program. + + Later license versions may give you additional or different +permissions. However, no additional obligations are imposed on any +author or copyright holder as a result of your choosing to follow a +later version. + + 15. Disclaimer of Warranty. + + THERE IS NO WARRANTY FOR THE PROGRAM, TO THE EXTENT PERMITTED BY +APPLICABLE LAW. EXCEPT WHEN OTHERWISE STATED IN WRITING THE COPYRIGHT +HOLDERS AND/OR OTHER PARTIES PROVIDE THE PROGRAM "AS IS" WITHOUT WARRANTY +OF ANY KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING, BUT NOT LIMITED TO, +THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR +PURPOSE. THE ENTIRE RISK AS TO THE QUALITY AND PERFORMANCE OF THE PROGRAM +IS WITH YOU. SHOULD THE PROGRAM PROVE DEFECTIVE, YOU ASSUME THE COST OF +ALL NECESSARY SERVICING, REPAIR OR CORRECTION. + + 16. Limitation of Liability. + + IN NO EVENT UNLESS REQUIRED BY APPLICABLE LAW OR AGREED TO IN WRITING +WILL ANY COPYRIGHT HOLDER, OR ANY OTHER PARTY WHO MODIFIES AND/OR CONVEYS +THE PROGRAM AS PERMITTED ABOVE, BE LIABLE TO YOU FOR DAMAGES, INCLUDING ANY +GENERAL, SPECIAL, INCIDENTAL OR CONSEQUENTIAL DAMAGES ARISING OUT OF THE +USE OR INABILITY TO USE THE PROGRAM (INCLUDING BUT NOT LIMITED TO LOSS OF +DATA OR DATA BEING RENDERED INACCURATE OR LOSSES SUSTAINED BY YOU OR THIRD +PARTIES OR A FAILURE OF THE PROGRAM TO OPERATE WITH ANY OTHER PROGRAMS), +EVEN IF SUCH HOLDER OR OTHER PARTY HAS BEEN ADVISED OF THE POSSIBILITY OF +SUCH DAMAGES. + + 17. Interpretation of Sections 15 and 16. + + If the disclaimer of warranty and limitation of liability provided +above cannot be given local legal effect according to their terms, +reviewing courts shall apply local law that most closely approximates +an absolute waiver of all civil liability in connection with the +Program, unless a warranty or assumption of liability accompanies a +copy of the Program in return for a fee. + + END OF TERMS AND CONDITIONS + + How to Apply These Terms to Your New Programs + + If you develop a new program, and you want it to be of the greatest +possible use to the public, the best way to achieve this is to make it +free software which everyone can redistribute and change under these terms. + + To do so, attach the following notices to the program. It is safest +to attach them to the start of each source file to most effectively +state the exclusion of warranty; and each file should have at least +the "copyright" line and a pointer to where the full notice is found. + + <one line to give the program's name and a brief idea of what it does.> + Copyright (C) <year> <name of author> + + This program is free software: you can redistribute it and/or modify + it under the terms of the GNU General Public License as published by + the Free Software Foundation, either version 3 of the License, or + (at your option) any later version. + + This program is distributed in the hope that it will be useful, + but WITHOUT ANY WARRANTY; without even the implied warranty of + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + GNU General Public License for more details. + + You should have received a copy of the GNU General Public License + along with this program. If not, see <https://www.gnu.org/licenses/>. + +Also add information on how to contact you by electronic and paper mail. + + If the program does terminal interaction, make it output a short +notice like this when it starts in an interactive mode: + + <program> Copyright (C) <year> <name of author> + This program comes with ABSOLUTELY NO WARRANTY; for details type `show w'. + This is free software, and you are welcome to redistribute it + under certain conditions; type `show c' for details. + +The hypothetical commands `show w' and `show c' should show the appropriate +parts of the General Public License. Of course, your program's commands +might be different; for a GUI interface, you would use an "about box". + + You should also get your employer (if you work as a programmer) or school, +if any, to sign a "copyright disclaimer" for the program, if necessary. +For more information on this, and how to apply and follow the GNU GPL, see +<https://www.gnu.org/licenses/>. + + The GNU General Public License does not permit incorporating your program +into proprietary programs. If your program is a subroutine library, you +may consider it more useful to permit linking proprietary applications with +the library. If this is what you want to do, use the GNU Lesser General +Public License instead of this License. But first, please read +<https://www.gnu.org/licenses/why-not-lgpl.html>.
\ No newline at end of file diff --git a/data/extensions/gnuzilla-ext-workarounds@gnu.org/README b/data/extensions/gnuzilla-ext-workarounds@gnu.org/README new file mode 100644 index 0000000..6960094 --- /dev/null +++ b/data/extensions/gnuzilla-ext-workarounds@gnu.org/README @@ -0,0 +1,26 @@ +Google Docs: + +Makes it possible to download some file from google docs. + +For example: https://docs.google.com/document/d/1FTQfTITlMg_f1qQCOJ_RzlPxDUa3bOnoTo-VaiLyIXU/edit + +(type in the extension "pdf") + + +McDonalds Wi-fi: + +Automatically logs in to McDonalds wi-fi when it detects their captive portal. + +Pay.gov: + +Makes it possible to sign up on https://dmca.copyright.gov + +RSF.org: + +Makes it possible to sign RSF.org petitions. + +For example: https://rsf.org/en/khashoggi-affair-petition + +Sumofus.org: + +Makes it possible to view and sign sumofus.org petitions.
\ No newline at end of file diff --git a/data/extensions/gnuzilla-ext-workarounds@gnu.org/README~ b/data/extensions/gnuzilla-ext-workarounds@gnu.org/README~ new file mode 100644 index 0000000..e69de29 --- /dev/null +++ b/data/extensions/gnuzilla-ext-workarounds@gnu.org/README~ diff --git a/data/extensions/gnuzilla-ext-workarounds@gnu.org/background.js b/data/extensions/gnuzilla-ext-workarounds@gnu.org/background.js new file mode 100644 index 0000000..83c6504 --- /dev/null +++ b/data/extensions/gnuzilla-ext-workarounds@gnu.org/background.js @@ -0,0 +1,58 @@ +/* + + Copyright (C) 2017-2019 Nathan Nichols + + This program is free software: you can redistribute it and/or modify + it under the terms of the GNU General Public License as published by + the Free Software Foundation, either version 3 of the License, or + (at your option) any later version. + + This program is distributed in the hope that it will be useful, + but WITHOUT ANY WARRANTY; without even the implied warranty of + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + GNU General Public License for more details. + + You should have received a copy of the GNU General Public License + along with this program. If not, see <http://www.gnu.org/licenses/>. + +*/ + +console.log("background.js"); + +// The browser action + +function launch(){ + var data = {url:"html/domestic.html"} + browser.tabs.create(data); +} + + +browser.browserAction.onClicked.addListener(launch); + +// For sumofus_main.js + +function redirect(requestDetails) { + console.log("Redirecting: " + requestDetails.url); + return { + redirectUrl: "https://www.sumofus.org/campaigns/" + }; +} + +browser.webRequest.onBeforeRequest.addListener( + redirect, + {urls: ["http://www.sumofus.org/"]}, + ["blocking"] +); + +// Prevent google scripts from breaking the google drive add-on +var block_urls = ["*://docs.google.com/*"]; +function cancel(requestDetails) { + console.log("[google docs] Canceling: " + requestDetails.url); + return {cancel: true}; +} + +browser.webRequest.onBeforeRequest.addListener( + cancel, // function + {urls: block_urls, types: ["script"]}, + ["blocking"] +); diff --git a/data/extensions/gnuzilla-ext-workarounds@gnu.org/background.js~ b/data/extensions/gnuzilla-ext-workarounds@gnu.org/background.js~ new file mode 100644 index 0000000..7147378 --- /dev/null +++ b/data/extensions/gnuzilla-ext-workarounds@gnu.org/background.js~ @@ -0,0 +1,59 @@ +/* + + Copyright (C) 2017-2019 Nathan Nichols + Copyright (C) 2019 Free Software Foundation + + This program is free software: you can redistribute it and/or modify + it under the terms of the GNU General Public License as published by + the Free Software Foundation, either version 3 of the License, or + (at your option) any later version. + + This program is distributed in the hope that it will be useful, + but WITHOUT ANY WARRANTY; without even the implied warranty of + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + GNU General Public License for more details. + + You should have received a copy of the GNU General Public License + along with this program. If not, see <http://www.gnu.org/licenses/>. + +*/ + +console.log("background.js"); + +// The browser action + +function launch(){ + var data = {url:"html/domestic.html"} + browser.tabs.create(data); +} + + +browser.browserAction.onClicked.addListener(launch); + +// For sumofus_main.js + +function redirect(requestDetails) { + console.log("Redirecting: " + requestDetails.url); + return { + redirectUrl: "https://www.sumofus.org/campaigns/" + }; +} + +browser.webRequest.onBeforeRequest.addListener( + redirect, + {urls: ["http://www.sumofus.org/"]}, + ["blocking"] +); + +// Prevent google scripts from breaking the google drive add-on +var block_urls = ["*://docs.google.com/*"]; +function cancel(requestDetails) { + console.log("[google docs] Canceling: " + requestDetails.url); + return {cancel: true}; +} + +browser.webRequest.onBeforeRequest.addListener( + cancel, // function + {urls: block_urls, types: ["script"]}, + ["blocking"] +); diff --git a/data/extensions/gnuzilla-ext-workarounds@gnu.org/html/domestic.html b/data/extensions/gnuzilla-ext-workarounds@gnu.org/html/domestic.html new file mode 100644 index 0000000..79578cd --- /dev/null +++ b/data/extensions/gnuzilla-ext-workarounds@gnu.org/html/domestic.html @@ -0,0 +1,806 @@ +<!DOCTYPE html> +<head> + <!-- + + Copyright (C) 2019 Nathan Nichols + + This program is free software: you can redistribute it and/or modify + it under the terms of the GNU General Public License as published by + the Free Software Foundation, either version 3 of the License, or + (at your option) any later version. + + This program is distributed in the hope that it will be useful, + but WITHOUT ANY WARRANTY; without even the implied warranty of + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + GNU General Public License for more details. + + You should have received a copy of the GNU General Public License + along with this program. If not, see <http://www.gnu.org/licenses/>. + + --> + + + + <meta content="text/html;charset=utf-8" http-equiv="Content-Type"> + <meta content="utf-8" http-equiv="encoding"> + + <style> + div.button {max-width: 100px; padding: 10px; background: aquamarine;} + div.button:hover {background: lightgreen;} + </style> + + + +</head> +<body> + <script type="text/javascript" src="./jquery-3.4.1.min.js"></script> + <script type="text/javascript" src="./usps_postage.js"></script> + + <h1>Postage Calculator :D</h1> + <p>This is a utility for calculating United States Postal Service domestic postage rates.</p> + <p><i><u>What is this?</u></i></p> + <p>The postage calculator on the USPS website is impossible to use without running non-free Javascript. This is a work-around.</p> + + <p>Packaged as part of the "Non-free JS Work-around scripts" add-on.</p> + + <h2>Domestic rates</h2> + <form id="main"> + <p>To get a user ID, sign up <a href="https://registration.shippingapis.com/">here</a> and it will be emailed to you.</p> + + User ID:<input type="text" name="USERID"><br> + Service: + <select name="Service"> + <option value="FIRST CLASS">First Class</option> + <option value="FIRST CLASS COMMERCIAL">First Class Commercial</option> + <option value="FIRST CLASS HFP COMMERCIAL">First Class HFP Commercial</option> + <option value="PRIORITY">Priority</option> + <option value="PRIORITY COMMERCIAL">Priority Commercial</option> + <option value="PRIORITY CPP">Priority Cpp</option> + <option value="HFP COMMERCIAL">Priority HFP Commercial</option> + <option value="PRIORITY HFP CPP">Priority HFP CPP</option> + <option value="PRIORITY MAIL EXPRESS">Priority Mail Express</option> + <option value="PRIORITY MAIL EXPRESS COMMERCIAL">Priority Mail Express Commercial</option> + <option value="PRIORITY MAIL EXPRESS CPP">Priority Mail Express CPP</option> + <option value="PRIORITY MAIL EXPRESS">Priority Mail Express Sh</option> + <option value="PRIORITY MAIL EXPRESS SH COMMERCIAL">Priority Mail Express Sh Commercial</option> + <option value="PRIORITY MAIL EXPRESS HFP">Priority Mail Express HFP</option> + <option value="PRIORITY MAIL EXPRESS HFP COMMERCIAL">Priority Mail Express HFP Commercial</option> + <option value="PRIORITY MAIL EXPRESS HFP CPP">Priority Mail Express HFP CPP</option> + <option value="PRIORITY MAIL CUBIC">Priority Mail Cubic</option> + <option value="RETAIL GROUND">Retail Ground</option> + <option value="MEDIA">Media</option> + <option value="LIBRARY">Library</option> + <option value="ALL">All</option> + <option value="ONLINE">Online</option> + <option value="PLUS">Plus</option> + <option value="BPM">BPM</option> + </select><br> + first class mail type: + <select name="FirstClassMailType"> + <option value="LETTER">Letter</option> + <option value="FLAT">Flat</option> + <option value="RETAIL">Retail</option> + <option value="POSTCARD">Postcard</option> + <option value="PACKAGE SERVICE">Package Service</option> + </select><br> + + + ZipOrigination:<input type="text" name="ZipOrigination"><br> + ZipDestination:<input type="text" name="ZipDestination"><br> + Pounds:<input type="text" name="Pounds"><br> + + <!-- + <select name="Size"> + <option value="REGULAR">Regular</option> + <option value="LARGE">Large</option> + </select><br> + --> + + + Container: + <select name="Container"> + <option value="VARIABLE">VARIABLE</option> + <option value="FLAT RATE ENVELOPE">FLAT RATE ENVELOPE</option> + <option value="PADDED FLAT RATE ENVELOPE">PADDED FLAT RATE ENVELOPE</option> + <option value="LEGAL FLAT RATE ENVELOPE">LEGAL FLAT RATE ENVELOPE</option> + <option value="FIRST CLASS">SM FLAT RATE ENVELOPE</option> + <option value="WINDOW FLAT RATE ENVELOPE">WINDOW FLAT RATE ENVELOPE</option> + <option value="GIFT CARD FLAT RATE ENVELOPE">GIFT CARD FLAT RATE ENVELOPE</option> + <option value="SM FLAT RATE BOX">SM FLAT RATE BOX</option> + <option value="MD FLAT RATE BOX">MD FLAT RATE BOX</option> + <option value="LG FLAT RATE BOX">LG FLAT RATE BOX</option> + <option value="REGIONALRATEBOXA">REGIONALRATEBOXA</option> + <option value="REGIONALRATEBOXB">REGIONALRATEBOXB</option> + <option value="CUBIC PARCELS">CUBIC PARCELS</option> + <option value="CUBIC SOFT PACK">CUBIC SOFT PACK</option> + </select><br> + Note: "Cubic Soft Pack" and "Cubic Parcels" are only valid containers for "Priority Mail Cubic" + <br> + Width:<input type="text" name="Width"><br> + Length:<input type="text" name="Length"><br> + Height:<input type="text" name="Height"><br> + Girth:<input type="text" name="Girth"><br> + Value:<input type="text" name="Value"><br> + Amount to collect:<input type="text" name="AmountToCollect"><br> + Special services:<br> + <select name="SpecialService" multiple> + <option value='100'>Insurance</option> + <option value='101'>Insurance – Priority Mail Express</option> + <option value='102'>Return Receipt</option> + <option value='103'>Collect on Delivery</option> + <option value='104'>Certificate of Mailing (Form 3665)</option> + <option value='105'>Certified Mail</option> + <option value='106'>USPS Tracking</option> + <option value='107'>Return Receipt for Merchandise</option> + <option value='108'>Signature Confirmation</option> + <option value='109'>Registered Mail</option> + <option value='110'>Return Receipt Electronic</option> + <option value='112'>Registered mail COD collection Charge</option> + <option value='118'>Return Receipt – Priority Mail Express</option> + <option value='119'>Adult Signature Required</option> + <option value='120'>Adult Signature Restricted Delivery</option> + <option value='125'>Insurance – Priority Mail</option> + <option value='155'>USPS Tracking Electronic</option> + <option value='156'>Signature Confirmation Electronic</option> + <option value='160'>Certificate of Mailing (Form 3817)</option> + <option value='161'>Priority Mail Express 1030 AM Delivery</option> + <option value='170'>Certified Mail Restricted Delivery</option> + <option value='171'>Certified Mail Adult Signature Required</option> + <option value='172'>Certified Mail Adult Signature Restricted Delivery</option> + <option value='173'>Signature Confirm. Restrict. Delivery</option> + <option value='174'>Signature Confirmation Electronic Restricted Delivery</option> + <option value='175'>Collect on Delivery Restricted Delivery</option> + <option value='176'>Registered Mail Restricted Delivery</option> + <option value='177'>Insurance Restricted Delivery</option> + <option value='179'>Insurance Restrict. Delivery – Priority Mail</option> + <option value='178'>Insurance Restrict. Delivery – Priority Mail Express</option> + <option value='180'>Insurance Restrict. Delivery (Bulk Only)</option> + <option value='190'>Special Handling - Fragile</option> + </select><br> + (hold control to select multiple special services if neccessary.)<br> + Content Type: + <select name="ContentType"> + <option value="DEFAULT">Default</option> + <option value="HAZMAT">Hazmat</option> + <option value="CREMATEDREMAINS">Cremated remains</option> + <option value="FRAGILE">fragile</option> + <option value="PERISHABLE">perishable</option> + <option value="PHARMACEUTICALS">pharmaceuticals</option> + <option value="MEDICALSUPPLIES">medical supplies</option> + <option value="LIVES">lives</option> + </select><br> + Content description: + <select name="ContentDescription"> + <option value="BEES">BEES</option> + <option value="DAYOLDPOULTRY">DAYOLDPOULTRY</option> + <option value="ADULTBIRDS">ADULTBIRDS</option> + <option value="OTHER">OTHER</option> + </select><br> + Is machinable: + <select name="Machinable"> + <option value="true">True</option> + <option value="false">False</option> + </select><br> + Is ground only: + <select name="GroundOnly"> + <option value="true">True</option> + <option value="false">False</option> + </select><br> + </form> + <div id="button_domestic" class="button"> + Calculate postage + </div> + + <h2 style="display:none;">International rates</h2> + <form> + User ID:<input type="text" name="USERID2"><br> + Pounds:<input type="text" name="Pounds2"><br> + Value of contents:<input type="text" name="ValueOfContents"><br> + Machinable: + <select name="Machinable2"> + <option value="true">True</option> + <option value="false">False</option> + </select><br> + + Destination is a post office box:<select name="POBoxFlag"> + <option value="Y">Yes</option> + <option value="N">No</option> + </select><br> + + Contains a gift:<select name="GiftFlag"> + <option value="Y">Yes</option> + <option value="N">No</option> + </select><br> + Origin Zip:<input type="text" name="OriginZip"><br> + + Width:<input type="text" name="Width2"><br> + Length:<input type="text" name="Length2"><br> + Height:<input type="text" name="Height2"><br> + Girth:<input type="text" name="Girth2"><br> + + Destination country: + <select name="Country"> + <option value="Abu Dhabi (United Arab Emirates)">Abu Dhabi (United Arab Emirates)</option> + <option value="Admiralty Islands (Papua New Guinea)">Admiralty Islands (Papua New Guinea)</option> + <option value="Afghanistan">Afghanistan</option> + <option value="Aitutaki, Cook Islands (New Zealand)">Aitutaki, Cook Islands (New Zealand)</option> + <option value="Ajman (United Arab Emirates)">Ajman (United Arab Emirates)</option> + <option value="Aland Island (Finland)">Aland Island (Finland)</option> + <option value="Albania">Albania</option> + <option value="Alberta (Canada)">Alberta (Canada)</option> + <option value="Alderney (Channel Islands) (United Kingdom)">Alderney (Channel Islands) (United Kingdom)</option> + <option value="Algeria">Algeria</option> + <option value="Alhucemas (Spain)">Alhucemas (Spain)</option> + <option value="Alofi Island (New Caledonia)">Alofi Island (New Caledonia)</option> + <option value="American Samoa, United State">American Samoa, United State</option> + <option value="(Domestic Mail) See DMM 60">(Domestic Mail) See DMM 60</option> + <option value="Andaman Islands (India)">Andaman Islands (India)</option> + <option value="Andorra">Andorra</option> + <option value="Angola">Angola</option> + <option value="Anguilla">Anguilla</option> + <option value="Anjouan (Comoros)">Anjouan (Comoros)</option> + <option value="Annobon Island (Equatorial Guinea)">Annobon Island (Equatorial Guinea)</option> + <option value="Antigua (Antigua and Barbuda)">Antigua (Antigua and Barbuda)</option> + <option value="Antigua and Barbuda">Antigua and Barbuda</option> + <option value="Argentina">Argentina</option> + <option value="Armenia">Armenia</option> + <option value="Aruba">Aruba</option> + <option value="Ascension">Ascension</option> + <option value="Astypalaia (Greece)">Astypalaia (Greece)</option> + <option value="Atafu (Samoa)">Atafu (Samoa)</option> + <option value="Atiu, Cook Islands (New Zealand)">Atiu, Cook Islands (New Zealand)</option> + <option value="Australia">Australia</option> + <option value="Austria">Austria</option> + <option value="Avarua (New Zealand)">Avarua (New Zealand)</option> + <option value="Azerbaijan">Azerbaijan</option> + <option value="Azores (Portugal)">Azores (Portugal)</option> + <option value="Bahamas">Bahamas</option> + <option value="Bahrain">Bahrain</option> + <option value="Balearic Islands (Spain)">Balearic Islands (Spain)</option> + <option value="Balochistan (Pakistan)">Balochistan (Pakistan)</option> + <option value="Bangladesh">Bangladesh</option> + <option value="Banks Island (Vanuatu)">Banks Island (Vanuatu)</option> + <option value="Barbados">Barbados</option> + <option value="Barbuda (Antigua and Barbuda)">Barbuda (Antigua and Barbuda)</option> + <option value="Barthelemy (Guadeloupe)">Barthelemy (Guadeloupe)</option> + <option value="Belarus">Belarus</option> + <option value="Belgium">Belgium</option> + <option value="Belize">Belize</option> + <option value="Benin">Benin</option> + <option value="Bermuda">Bermuda</option> + <option value="Bhutan">Bhutan</option> + <option value="Bismark Archipelago (Papua New Guinea)">Bismark Archipelago (Papua New Guinea)</option> + <option value="Bolivia">Bolivia</option> + <option value="Bonaire, Sint Eustatius, and Saba">Bonaire, Sint Eustatius, and Saba</option> + <option value="Bora Bora (French Polynesia)">Bora Bora (French Polynesia)</option> + <option value="Borneo (Indonesia)">Borneo (Indonesia)</option> + <option value="Bosnia-Herzegovina">Bosnia-Herzegovina</option> + <option value="Botswana">Botswana</option> + <option value="Bougainville (Papua New Guinea)">Bougainville (Papua New Guinea)</option> + <option value="Bourbon (Reunion)">Bourbon (Reunion)</option> + <option value="Brazil">Brazil</option> + <option value="British Columbia (Canada)">British Columbia (Canada)</option> + <option value="British Guiana (Guyana)">British Guiana (Guyana)</option> + <option value="British Virgin Islands">British Virgin Islands</option> + <option value="Brunei Darussalam">Brunei Darussalam</option> + <option value="Buka (Papua New Guinea)">Buka (Papua New Guinea)</option> + <option value="Bulgaria">Bulgaria</option> + <option value="Burkina Faso">Burkina Faso</option> + <option value="Burma">Burma</option> + <option value="Burundi">Burundi</option> + <option value="Caicos Islands (Turks and Caicos Islands)">Caicos Islands (Turks and Caicos Islands)</option> + <option value="Cambodia">Cambodia</option> + <option value="Cameroon">Cameroon</option> + <option value="Canada">Canada</option> + <option value="Canary Islands (Spain)">Canary Islands (Spain)</option> + <option value="Canton Island (Kiribati)">Canton Island (Kiribati)</option> + <option value="Cape Verde">Cape Verde</option> + <option value="Cayman Islands">Cayman Islands</option> + <option value="Central African Republic">Central African Republic</option> + <option value="Ceuta (Spain)">Ceuta (Spain)</option> + <option value="Ceylon (Sri Lanka)">Ceylon (Sri Lanka)</option> + <option value="Chad">Chad</option> + <option value="Chaferinas Islands (Spain)">Chaferinas Islands (Spain)</option> + <option value="Chalki (Greece)">Chalki (Greece)</option> + <option value="Channel Islands (Jersey, Guernsey, Alderney">Channel Islands (Jersey, Guernsey, Alderney</option> + <option value="and Sark) (United Kingdom)">and Sark) (United Kingdom)</option> + <option value="Chile">Chile</option> + <option value="China">China</option> + <option value="Christiansted, US Virgin Islands, United State">Christiansted, US Virgin Islands, United State</option> + <option value="(Domestic Mail) See DMM 60">(Domestic Mail) See DMM 60</option> + <option value="Christmas Island (Australia)">Christmas Island (Australia)</option> + <option value="Christmas Island (Kiribati)">Christmas Island (Kiribati)</option> + <option value="Chuuk, Micronesia, United State">Chuuk, Micronesia, United State</option> + <option value="(Domestic Mail) See DMM 60">(Domestic Mail) See DMM 60</option> + <option value="Cocos Island (Australia)">Cocos Island (Australia)</option> + <option value="Colombia">Colombia</option> + <option value="Comoros">Comoros</option> + <option value="Congo, Democratic Republic of the">Congo, Democratic Republic of the</option> + <option value="Congo, Republic of the">Congo, Republic of the</option> + <option value="Cook Islands (New Zealand)">Cook Islands (New Zealand)</option> + <option value="Corisco Island (Equatorial Guinea)">Corisco Island (Equatorial Guinea)</option> + <option value="Corsica (France)">Corsica (France)</option> + <option value="Costa Rica">Costa Rica</option> + <option value="Cote d’Ivoire">Cote d’Ivoire</option> + <option value="Crete (Greece)">Crete (Greece)</option> + <option value="Croatia">Croatia</option> + <option value="Cuba">Cuba</option> + <option value="Cumino Island (Malta)">Cumino Island (Malta)</option> + <option value="Curacao">Curacao</option> + <option value="Cyjrenaica (Libya)">Cyjrenaica (Libya)</option> + <option value="Cyprus">Cyprus</option> + <option value="Czech Republic">Czech Republic</option> + <option value="Dahomey (Benin)">Dahomey (Benin)</option> + <option value="Damao (India)">Damao (India)</option> + <option value="Danger Islands (New Zealand)">Danger Islands (New Zealand)</option> + <option value="Denmark">Denmark</option> + <option value="Desirade Island (Guadeloupe)">Desirade Island (Guadeloupe)</option> + <option value="Diu (India)">Diu (India)</option> + <option value="Djibouti">Djibouti</option> + <option value="Dodecanese Islands (Greece)">Dodecanese Islands (Greece)</option> + <option value="Doha (Qatar)">Doha (Qatar)</option> + <option value="Dominica">Dominica</option> + <option value="Dominican Republic">Dominican Republic</option> + <option value="Dubai (United Arab Emirates)">Dubai (United Arab Emirates)</option> + <option value="East Timor (Timor-Leste)">East Timor (Timor-Leste)</option> + <option value="Ebeye, Marshall Islands, United State">Ebeye, Marshall Islands, United State</option> + <option value="(Domestic Mail) See DMM 60">(Domestic Mail) See DMM 60</option> + <option value="Ecuador">Ecuador</option> + <option value="Egypt">Egypt</option> + <option value="Eire (Ireland)">Eire (Ireland)</option> + <option value="El Salvador">El Salvador</option> + <option value="Ellice Islands (Tuvalu)">Ellice Islands (Tuvalu)</option> + <option value="Elobey Islands (Equatorial Guinea)">Elobey Islands (Equatorial Guinea)</option> + <option value="Enderbury Island (Kiribati)">Enderbury Island (Kiribati)</option> + <option value="England (United Kingdom)">England (United Kingdom)</option> + <option value="Equatorial Guinea">Equatorial Guinea</option> + <option value="Eritrea">Eritrea</option> + <option value="Estonia">Estonia</option> + <option value="Eswatini">Eswatini</option> + <option value="Ethiopia">Ethiopia</option> + <option value="Fakaofo (Samoa)">Fakaofo (Samoa)</option> + <option value="Falkland Islands">Falkland Islands</option> + <option value="Fanning Island (Kiribati)">Fanning Island (Kiribati)</option> + <option value="Faroe Islands">Faroe Islands</option> + <option value="Fernando Po (Equatorial Guinea)">Fernando Po (Equatorial Guinea)</option> + <option value="Fezzan (Libya)">Fezzan (Libya)</option> + <option value="Fiji">Fiji</option> + <option value="Finland">Finland</option> + <option value="Formosa (Taiwan)">Formosa (Taiwan)</option> + <option value="France">France</option> + <option value="Frederiksted, US Virgin Islands, United State">Frederiksted, US Virgin Islands, United State</option> + <option value="(Domestic Mail) See DMM 60">(Domestic Mail) See DMM 60</option> + <option value="French Guiana">French Guiana</option> + <option value="French Oceania (French Polynesia)">French Oceania (French Polynesia)</option> + <option value="French Polynesia">French Polynesia</option> + <option value="French West Indies (Guadeloupe)">French West Indies (Guadeloupe)</option> + <option value="French West Indies (Martinique)">French West Indies (Martinique)</option> + <option value="Friendly Islands (Tonga)">Friendly Islands (Tonga)</option> + <option value="Fujairah (United Arab Emirates)">Fujairah (United Arab Emirates)</option> + <option value="Futuna (Wallis and Futuna Islands)">Futuna (Wallis and Futuna Islands)</option> + <option value="Gabon">Gabon</option> + <option value="Gambia">Gambia</option> + <option value="Gambier (French Polynesia)">Gambier (French Polynesia)</option> + <option value="Georgia, Republic of">Georgia, Republic of</option> + <option value="Germany">Germany</option> + <option value="Ghana">Ghana</option> + <option value="Gibraltar">Gibraltar</option> + <option value="Gilbert Islands (Kiribati)">Gilbert Islands (Kiribati)</option> + <option value="Goa (India)">Goa (India)</option> + <option value="Gozo Island (Malta)">Gozo Island (Malta)</option> + <option value="Grand Comoro (Comoros)">Grand Comoro (Comoros)</option> + <option value="Great Britain (United Kingdom)">Great Britain (United Kingdom)</option> + <option value="Greece">Greece</option> + <option value="Greenland">Greenland</option> + <option value="Grenada">Grenada</option> + <option value="Grenadines (Saint Vincent and the Grenadines)">Grenadines (Saint Vincent and the Grenadines)</option> + <option value="Guadeloupe">Guadeloupe</option> + <option value="Guam, United States (Domestic Mail) See DMM 60">Guam, United States (Domestic Mail) See DMM 60</option> + <option value="Guatemala">Guatemala</option> + <option value="Guernsey (Channel Islands) (United Kingdom)">Guernsey (Channel Islands) (United Kingdom)</option> + <option value="Guinea">Guinea</option> + <option value="Guinea–Bissau">Guinea–Bissau</option> + <option value="Guyana">Guyana</option> + <option value="Hainan Island (China)">Hainan Island (China)</option> + <option value="Haiti">Haiti</option> + <option value="Hashemite Kingdom (Jordan)">Hashemite Kingdom (Jordan)</option> + <option value="Hervey, Cook Islands (New Zealand)">Hervey, Cook Islands (New Zealand)</option> + <option value="Hivaoa (French Polynesia)">Hivaoa (French Polynesia)</option> + <option value="Holland (Netherlands)">Holland (Netherlands)</option> + <option value="Honduras">Honduras</option> + <option value="Hong Kong">Hong Kong</option> + <option value="Huahine (French Polynesia)">Huahine (French Polynesia)</option> + <option value="Huan Island (New Caledonia)">Huan Island (New Caledonia)</option> + <option value="Hungary">Hungary</option> + <option value="Iceland">Iceland</option> + <option value="India">India</option> + <option value="Indonesia">Indonesia</option> + <option value="Iran">Iran</option> + <option value="Iraq">Iraq</option> + <option value="Ireland">Ireland</option> + <option value="Irian Barat (Indonesia)">Irian Barat (Indonesia)</option> + <option value="Isle of Man (United Kingdom)">Isle of Man (United Kingdom)</option> + <option value="Isle of Pines (New Caledonia)">Isle of Pines (New Caledonia)</option> + <option value="Isle of Pines, West Indies (Cuba)">Isle of Pines, West Indies (Cuba)</option> + <option value="Israel">Israel</option> + <option value="Issas (Djibouti)">Issas (Djibouti)</option> + <option value="Italy">Italy</option> + <option value="Ivory Coast (Cote d’Ivoire)">Ivory Coast (Cote d’Ivoire)</option> + <option value="Jamaica">Jamaica</option> + <option value="Japan">Japan</option> + <option value="Jersey (Channel Islands) (United Kingdom)">Jersey (Channel Islands) (United Kingdom)</option> + <option value="Johore (Malaysia)">Johore (Malaysia)</option> + <option value="Jordan">Jordan</option> + <option value="Kalymnos (Greece)">Kalymnos (Greece)</option> + <option value="Kampuchea (Cambodia)">Kampuchea (Cambodia)</option> + <option value="Karpathos (Greece)">Karpathos (Greece)</option> + <option value="Kassos (Greece)">Kassos (Greece)</option> + <option value="Kastellorizon (Greece)">Kastellorizon (Greece)</option> + <option value="Kazakhstan">Kazakhstan</option> + <option value="Kedah (Malaysia)">Kedah (Malaysia)</option> + <option value="Keeling Islands (Australia)">Keeling Islands (Australia)</option> + <option value="Kelantan (Malaysia)">Kelantan (Malaysia)</option> + <option value="Kenya">Kenya</option> + <option value="Kingshill, US Virgin Islands, United State">Kingshill, US Virgin Islands, United State</option> + <option value="(Domestic Mail) See DMM 60">(Domestic Mail) See DMM 60</option> + <option value="Kiribati">Kiribati</option> + <option value="Korea, Democratic People’s Republic o">Korea, Democratic People’s Republic o</option> + <option value="(North Korea)">(North Korea)</option> + <option value="Korea, Republic of (South Korea)">Korea, Republic of (South Korea)</option> + <option value="Koror (Palau), United States (Domestic Mail) See DMM 60">Koror (Palau), United States (Domestic Mail) See DMM 60</option> + <option value="Kos (Greece)">Kos (Greece)</option> + <option value="Kosovo, Republic of">Kosovo, Republic of</option> + <option value="Kosrae, Micronesia, United State">Kosrae, Micronesia, United State</option> + <option value="(Domestic Mail) See DMM 60">(Domestic Mail) See DMM 60</option> + <option value="Kowloon (Hong Kong)">Kowloon (Hong Kong)</option> + <option value="Kuwait">Kuwait</option> + <option value="Kwajalein, Marshall Islands, United State">Kwajalein, Marshall Islands, United State</option> + <option value="(Domestic Mail) See DMM 60">(Domestic Mail) See DMM 60</option> + <option value="Kyrgyzstan">Kyrgyzstan</option> + <option value="Labrador (Canada)">Labrador (Canada)</option> + <option value="Labuan (Malaysia)">Labuan (Malaysia)</option> + <option value="Laos">Laos</option> + <option value="Latvia">Latvia</option> + <option value="Lebanon">Lebanon</option> + <option value="Leipsos (Greece)">Leipsos (Greece)</option> + <option value="Leros (Greece)">Leros (Greece)</option> + <option value="Les Saints Island (Guadeloupe)">Les Saints Island (Guadeloupe)</option> + <option value="Lesotho">Lesotho</option> + <option value="Liberia">Liberia</option> + <option value="Libya">Libya</option> + <option value="Liechtenstein">Liechtenstein</option> + <option value="Lithuania">Lithuania</option> + <option value="Lord Howe Island (Australia)">Lord Howe Island (Australia)</option> + <option value="Loyalty Islands (New Caledonia)">Loyalty Islands (New Caledonia)</option> + <option value="Luxembourg">Luxembourg</option> + <option value="Macao">Macao</option> + <option value="Macau (Macao)">Macau (Macao)</option> + <option value="Macedonia, Republic of">Macedonia, Republic of</option> + <option value="Madagascar">Madagascar</option> + <option value="Madeira Islands (Portugal)">Madeira Islands (Portugal)</option> + <option value="Majuro, Marshall Islands, United State">Majuro, Marshall Islands, United State</option> + <option value="(Domestic Mail) See DMM 60">(Domestic Mail) See DMM 60</option> + <option value="Malacca (Malaysia)">Malacca (Malaysia)</option> + <option value="Malawi">Malawi</option> + <option value="Malaysia">Malaysia</option> + <option value="Maldives">Maldives</option> + <option value="Mali">Mali</option> + <option value="Malta">Malta</option> + <option value="Manahiki (New Zealand)">Manahiki (New Zealand)</option> + <option value="Manchuria (China)">Manchuria (China)</option> + <option value="Manitoba (Canada)">Manitoba (Canada)</option> + <option value="Manua Islands, American Samoa">Manua Islands, American Samoa</option> + <option value="United States (Domestic Mail) See DMM 60">United States (Domestic Mail) See DMM 60</option> + <option value="Marie Galante (Guadeloupe)">Marie Galante (Guadeloupe)</option> + <option value="Marquesas Islands (French Polynesia)">Marquesas Islands (French Polynesia)</option> + <option value="Marshall Islands, Republic of the">Marshall Islands, Republic of the</option> + <option value="United States (Domestic Mail) See DMM 60">United States (Domestic Mail) See DMM 60</option> + <option value="Martinique">Martinique</option> + <option value="Mauritania">Mauritania</option> + <option value="Mauritius">Mauritius</option> + <option value="Mayotte (France)">Mayotte (France)</option> + <option value="Melilla (Spain)">Melilla (Spain)</option> + <option value="Mexico">Mexico</option> + <option value="Micronesia, Federated States of">Micronesia, Federated States of</option> + <option value="United States (Domestic Mail) See DMM 60">United States (Domestic Mail) See DMM 60</option> + <option value="Miquelon (Saint Pierre and Miquelon)">Miquelon (Saint Pierre and Miquelon)</option> + <option value="Moheli (Comoros)">Moheli (Comoros)</option> + <option value="Moldova">Moldova</option> + <option value="Monaco (France)">Monaco (France)</option> + <option value="Mongolia">Mongolia</option> + <option value="Montenegro">Montenegro</option> + <option value="Montserrat">Montserrat</option> + <option value="Moorea (French Polynesia)">Moorea (French Polynesia)</option> + <option value="Morocco">Morocco</option> + <option value="Mozambique">Mozambique</option> + <option value="Muscat (Oman)">Muscat (Oman)</option> + <option value="Myanmar (Burma)">Myanmar (Burma)</option> + <option value="Namibia">Namibia</option> + <option value="Nansil Islands (Japan)">Nansil Islands (Japan)</option> + <option value="Nauru">Nauru</option> + <option value="Negri Sembilan (Malaysia)">Negri Sembilan (Malaysia)</option> + <option value="Nepal">Nepal</option> + <option value="Netherlands">Netherlands</option> + <option value="Nevis (Saint Kitts and Nevis)">Nevis (Saint Kitts and Nevis)</option> + <option value="New Britain (Papua New Guinea)">New Britain (Papua New Guinea)</option> + <option value="New Brunswick (Canada)">New Brunswick (Canada)</option> + <option value="New Caledonia">New Caledonia</option> + <option value="New Hanover (Papua New Guinea)">New Hanover (Papua New Guinea)</option> + <option value="New Hebrides (Vanuatu)">New Hebrides (Vanuatu)</option> + <option value="New Ireland (Papua New Guinea)">New Ireland (Papua New Guinea)</option> + <option value="New South Wales (Australia)">New South Wales (Australia)</option> + <option value="New Zealand">New Zealand</option> + <option value="Newfoundland (Canada)">Newfoundland (Canada)</option> + <option value="Nicaragua">Nicaragua</option> + <option value="Niger">Niger</option> + <option value="Nigeria">Nigeria</option> + <option value="Nissiros (Greece)">Nissiros (Greece)</option> + <option value="Niue (New Zealand)">Niue (New Zealand)</option> + <option value="Norfolk Island (Australia)">Norfolk Island (Australia)</option> + <option value="North Borneo (Malaysia)">North Borneo (Malaysia)</option> + <option value="North Korea (Korea, Democratic People’">North Korea (Korea, Democratic People’</option> + <option value="Republic of)">Republic of)</option> + <option value="Northern Ireland (United Kingdom)">Northern Ireland (United Kingdom)</option> + <option value="Northern Mariana Islands, Commonwealth of">Northern Mariana Islands, Commonwealth of</option> + <option value="United States (Domestic Mail) See DMM 60">United States (Domestic Mail) See DMM 60</option> + <option value="Northwest Territory (Canada)">Northwest Territory (Canada)</option> + <option value="Norway">Norway</option> + <option value="Nova Scotia (Canada)">Nova Scotia (Canada)</option> + <option value="Nukahiva (French Polynesia)">Nukahiva (French Polynesia)</option> + <option value="Nukunonu (Samoa)">Nukunonu (Samoa)</option> + <option value="Ocean Island (Kiribati)">Ocean Island (Kiribati)</option> + <option value="Okinawa (Japan)">Okinawa (Japan)</option> + <option value="Oman">Oman</option> + <option value="Ontario (Canada)">Ontario (Canada)</option> + <option value="Pago Pago, American Samoa, United State">Pago Pago, American Samoa, United State</option> + <option value="(Domestic Mail) See DMM 60">(Domestic Mail) See DMM 60</option> + <option value="Pahang (Malaysia)">Pahang (Malaysia)</option> + <option value="Pakistan">Pakistan</option> + <option value="Palau, United States (Domestic Mail) See DMM 60">Palau, United States (Domestic Mail) See DMM 60</option> + <option value="Palmerston, Avarua (New Zealand)">Palmerston, Avarua (New Zealand)</option> + <option value="Panama">Panama</option> + <option value="Papua New Guinea">Papua New Guinea</option> + <option value="Paraguay">Paraguay</option> + <option value="Parry, Cook Islands (New Zealand)">Parry, Cook Islands (New Zealand)</option> + <option value="Patmos (Greece)">Patmos (Greece)</option> + <option value="Pemba (Tanzania)">Pemba (Tanzania)</option> + <option value="Penang (Malaysia)">Penang (Malaysia)</option> + <option value="Penghu Islands (Taiwan)">Penghu Islands (Taiwan)</option> + <option value="Penon de Velez de la Gomera (Spain)">Penon de Velez de la Gomera (Spain)</option> + <option value="Penrhyn, Tongareva (New Zealand)">Penrhyn, Tongareva (New Zealand)</option> + <option value="Perak (Malaysia)">Perak (Malaysia)</option> + <option value="Perlis (Malaysia)">Perlis (Malaysia)</option> + <option value="Persia (Iran)">Persia (Iran)</option> + <option value="Peru">Peru</option> + <option value="Pescadores Islands (Taiwan)">Pescadores Islands (Taiwan)</option> + <option value="Petite Terre (Guadeloupe)">Petite Terre (Guadeloupe)</option> + <option value="Philippines">Philippines</option> + <option value="Pitcairn Island">Pitcairn Island</option> + <option value="Pohnpei, Micronesia, United State">Pohnpei, Micronesia, United State</option> + <option value="(Domestic Mail) See DMM 60">(Domestic Mail) See DMM 60</option> + <option value="Poland">Poland</option> + <option value="Portugal">Portugal</option> + <option value="Prince Edward Island (Canada)">Prince Edward Island (Canada)</option> + <option value="Puerto Rico, United States (Domestic Mail) See DMM 60">Puerto Rico, United States (Domestic Mail) See DMM 60</option> + <option value="Pukapuka (New Zealand)">Pukapuka (New Zealand)</option> + <option value="Qatar">Qatar</option> + <option value="Quebec (Canada)">Quebec (Canada)</option> + <option value="Queensland (Australia)">Queensland (Australia)</option> + <option value="Quemoy (Taiwan)">Quemoy (Taiwan)</option> + <option value="Raiatea (French Polynesia)">Raiatea (French Polynesia)</option> + <option value="Rakaanga (New Zealand)">Rakaanga (New Zealand)</option> + <option value="Rapa (French Polynesia)">Rapa (French Polynesia)</option> + <option value="Rarotonga, Cook Islands (New Zealand)">Rarotonga, Cook Islands (New Zealand)</option> + <option value="Ras al Kaimah (United Arab Emirates)">Ras al Kaimah (United Arab Emirates)</option> + <option value="Redonda (Antigua and Barbuda)">Redonda (Antigua and Barbuda)</option> + <option value="Reunion">Reunion</option> + <option value="Rio Muni (Equatorial Guinea)">Rio Muni (Equatorial Guinea)</option> + <option value="Rodos (Greece)">Rodos (Greece)</option> + <option value="Rodrigues (Mauritius)">Rodrigues (Mauritius)</option> + <option value="Romania">Romania</option> + <option value="Rota, Northern Mariana Islands">Rota, Northern Mariana Islands</option> + <option value="United States (Domestic Mail) See DMM 60">United States (Domestic Mail) See DMM 60</option> + <option value="Russia">Russia</option> + <option value="Rwanda">Rwanda</option> + <option value="Saba (Bonaire, Sint Eustatius, and Saba)">Saba (Bonaire, Sint Eustatius, and Saba)</option> + <option value="Sabah (Malaysia)">Sabah (Malaysia)</option> + <option value="Saint Barthelemy (Guadeloupe)">Saint Barthelemy (Guadeloupe)</option> + <option value="Saint Bartholomew (Guadeloupe)">Saint Bartholomew (Guadeloupe)</option> + <option value="Saint Croix, US Virgin Islands">Saint Croix, US Virgin Islands</option> + <option value="United States (Domestic Mail) See DMM 60">United States (Domestic Mail) See DMM 60</option> + <option value="Saint Helena">Saint Helena</option> + <option value="Saint John, US Virgin Islands">Saint John, US Virgin Islands</option> + <option value="United States (Domestic Mail) See DMM 60">United States (Domestic Mail) See DMM 60</option> + <option value="Saint Kitts and Nevis">Saint Kitts and Nevis</option> + <option value="Saint Lucia">Saint Lucia</option> + <option value="Saint Martin (French) (Guadeloupe)">Saint Martin (French) (Guadeloupe)</option> + <option value="Saint Pierre and Miquelon">Saint Pierre and Miquelon</option> + <option value="Saint Thomas, US Virgin Islands">Saint Thomas, US Virgin Islands</option> + <option value="United States (Domestic Mail) See DMM 60">United States (Domestic Mail) See DMM 60</option> + <option value="Saint Vincent and the Grenadines">Saint Vincent and the Grenadines</option> + <option value="Sainte Marie de Madagascar (Madagascar)">Sainte Marie de Madagascar (Madagascar)</option> + <option value="Saipan, Northern Mariana Islands">Saipan, Northern Mariana Islands</option> + <option value="United States (Domestic Mail) See DMM 60">United States (Domestic Mail) See DMM 60</option> + <option value="Salvador (El Salvador)">Salvador (El Salvador)</option> + <option value="Samoa">Samoa</option> + <option value="Samoa, American, United State">Samoa, American, United State</option> + <option value="(Domestic Mail) See DMM 60">(Domestic Mail) See DMM 60</option> + <option value="San Marino">San Marino</option> + <option value="Santa Cruz Islands (Solomon Islands)">Santa Cruz Islands (Solomon Islands)</option> + <option value="Sao Tome and Principe">Sao Tome and Principe</option> + <option value="Sarawak (Malaysia)">Sarawak (Malaysia)</option> + <option value="Sark (Channel Islands) (United Kingdom)">Sark (Channel Islands) (United Kingdom)</option> + <option value="Saskatchewan (Canada)">Saskatchewan (Canada)</option> + <option value="Saudi Arabia">Saudi Arabia</option> + <option value="Savage Island, Niue (New Zealand)">Savage Island, Niue (New Zealand)</option> + <option value="Savaii Island (Samoa)">Savaii Island (Samoa)</option> + <option value="Scotland (United Kingdom)">Scotland (United Kingdom)</option> + <option value="Seberang Perai (Malaysia)">Seberang Perai (Malaysia)</option> + <option value="Selangor (Malaysia)">Selangor (Malaysia)</option> + <option value="Senegal">Senegal</option> + <option value="Serbia, Republic of">Serbia, Republic of</option> + <option value="Seychelles">Seychelles</option> + <option value="Sharja (United Arab Emirates)">Sharja (United Arab Emirates)</option> + <option value="Shikoku (Japan)">Shikoku (Japan)</option> + <option value="Sierra Leone">Sierra Leone</option> + <option value="Sikkim (India)">Sikkim (India)</option> + <option value="Singapore">Singapore</option> + <option value="Sint Eustatius (Bonaire, Sint Eustatius, and Saba)">Sint Eustatius (Bonaire, Sint Eustatius, and Saba)</option> + <option value="Sint Maarten (Dutch)">Sint Maarten (Dutch)</option> + <option value="Slovak Republic (Slovakia)">Slovak Republic (Slovakia)</option> + <option value="Slovenia">Slovenia</option> + <option value="Society Islands (French Polynesia)">Society Islands (French Polynesia)</option> + <option value="Solomon Islands">Solomon Islands</option> + <option value="Somali Democratic Republic (Somalia)">Somali Democratic Republic (Somalia)</option> + <option value="Somalia">Somalia</option> + <option value="Somaliland (Somalia)">Somaliland (Somalia)</option> + <option value="South Africa">South Africa</option> + <option value="South Australia (Australia)">South Australia (Australia)</option> + <option value="South Georgia (Falkland Islands)">South Georgia (Falkland Islands)</option> + <option value="South Korea (Korea, Republic of)">South Korea (Korea, Republic of)</option> + <option value="Spain">Spain</option> + <option value="Spitzbergen (Norway)">Spitzbergen (Norway)</option> + <option value="Sri Lanka">Sri Lanka</option> + <option value="Sudan">Sudan</option> + <option value="Suriname">Suriname</option> + <option value="Suwarrow Islands (New Zealand)">Suwarrow Islands (New Zealand)</option> + <option value="Swain’s Island, American Samoa">Swain’s Island, American Samoa</option> + <option value="United States (Domestic Mail) See DMM 60">United States (Domestic Mail) See DMM 60</option> + <option value="Swan Islands (Honduras)">Swan Islands (Honduras)</option> + <option value="Swaziland (Eswatini)">Swaziland (Eswatini)</option> + <option value="Sweden">Sweden</option> + <option value="Switzerland">Switzerland</option> + <option value="Symi (Greece)">Symi (Greece)</option> + <option value="Syrian Arab Republic (Syria)">Syrian Arab Republic (Syria)</option> + <option value="Tahaa (French Polynesia)">Tahaa (French Polynesia)</option> + <option value="Tahiti (French Polynesia)">Tahiti (French Polynesia)</option> + <option value="Taiwan">Taiwan</option> + <option value="Tajikistan">Tajikistan</option> + <option value="Tanzania">Tanzania</option> + <option value="Tasmania (Australia)">Tasmania (Australia)</option> + <option value="Tchad (Chad)">Tchad (Chad)</option> + <option value="Thailand">Thailand</option> + <option value="Thursday Island (Australia)">Thursday Island (Australia)</option> + <option value="Tibet (China)">Tibet (China)</option> + <option value="Tilos (Greece)">Tilos (Greece)</option> + <option value="Timor (Indonesia)">Timor (Indonesia)</option> + <option value="Timor-Leste, Democratic Republic of">Timor-Leste, Democratic Republic of</option> + <option value="Tinian, Northern Mariana Islands">Tinian, Northern Mariana Islands</option> + <option value="United States (Domestic Mail) See DMM 60">United States (Domestic Mail) See DMM 60</option> + <option value="Tobago (Trinidad and Tobago)">Tobago (Trinidad and Tobago)</option> + <option value="Togo">Togo</option> + <option value="Tokelau (New Zealand)">Tokelau (New Zealand)</option> + <option value="Tonga">Tonga</option> + <option value="Tongareva (New Zealand)">Tongareva (New Zealand)</option> + <option value="Tori Shima (Japan)">Tori Shima (Japan)</option> + <option value="Torres Island (Vanuatu)">Torres Island (Vanuatu)</option> + <option value="Trans-Jordan, Hashemite Kingdom (Jordan)">Trans-Jordan, Hashemite Kingdom (Jordan)</option> + <option value="Transkei (South Africa)">Transkei (South Africa)</option> + <option value="Trengganu (Malaysia)">Trengganu (Malaysia)</option> + <option value="Trinidad and Tobago">Trinidad and Tobago</option> + <option value="Tripolitania (Libya)">Tripolitania (Libya)</option> + <option value="Tristan da Cunha">Tristan da Cunha</option> + <option value="Trucial States (United Arab Emirates)">Trucial States (United Arab Emirates)</option> + <option value="Tuamotou (French Polynesia)">Tuamotou (French Polynesia)</option> + <option value="Tubuai (French Polynesia)">Tubuai (French Polynesia)</option> + <option value="Tunisia">Tunisia</option> + <option value="Turkey">Turkey</option> + <option value="Turkmenistan">Turkmenistan</option> + <option value="Turks and Caicos Islands">Turks and Caicos Islands</option> + <option value="Tutuila Island, American Samoa">Tutuila Island, American Samoa</option> + <option value="United States (Domestic Mail) See DMM 60">United States (Domestic Mail) See DMM 60</option> + <option value="Tuvalu">Tuvalu</option> + <option value="Uganda">Uganda</option> + <option value="Ukraine">Ukraine</option> + <option value="Umm al Quaiwain (United Arab Emirates)">Umm al Quaiwain (United Arab Emirates)</option> + <option value="Umm Said (Qatar)">Umm Said (Qatar)</option> + <option value="United Arab Emirates">United Arab Emirates</option> + <option value="United Kingdom of Great Britain and Northern Ireland">United Kingdom of Great Britain and Northern Ireland</option> + <option value="United Nations, New York, United State">United Nations, New York, United State</option> + <option value="(Domestic Mail) See DMM 60">(Domestic Mail) See DMM 60</option> + <option value="Upolu Island (Samoa)">Upolu Island (Samoa)</option> + <option value="Uruguay">Uruguay</option> + <option value="Uzbekistan">Uzbekistan</option> + <option value="Vanuatu">Vanuatu</option> + <option value="Vatican City">Vatican City</option> + <option value="Venezuela">Venezuela</option> + <option value="Victoria (Australia)">Victoria (Australia)</option> + <option value="Vietnam">Vietnam</option> + <option value="Virgin Islands (British)">Virgin Islands (British)</option> + <option value="Virgin Islands (US), United State">Virgin Islands (US), United State</option> + <option value="(Domestic Mail) See DMM 60">(Domestic Mail) See DMM 60</option> + <option value="Wales (United Kingdom)">Wales (United Kingdom)</option> + <option value="Wallis and Futuna Islands">Wallis and Futuna Islands</option> + <option value="Wellesley, Province (Malaysia)">Wellesley, Province (Malaysia)</option> + <option value="West New Guinea (Indonesia)">West New Guinea (Indonesia)</option> + <option value="Western Australia (Australia)">Western Australia (Australia)</option> + <option value="Yap, Micronesia, United State">Yap, Micronesia, United State</option> + <option value="(Domestic Mail) See DMM 60">(Domestic Mail) See DMM 60</option> + <option value="Yemen">Yemen</option> + <option value="Yukon Territory (Canada)">Yukon Territory (Canada)</option> + <option value="Zafarani Islands (Spain)">Zafarani Islands (Spain)</option> + <option value="Zambia">Zambia</option> + <option value="Zanzibar (Tanzania)">Zanzibar (Tanzania)</option> + <option value="Zimbabwe">Zimbabwe</option> + + </select><br> + Mail type: + <select name="MailType"> + <option value="ALL">All</option> + <option value="PACKAGE">Package</option> + <option value="POSTCARDS">Postcards</option> + <option value="ENVELOPE">Envelope</option> + <option value="LETTER">Letter</option> + <option value="LARGEENVELOPE">Large Envelope</option> + <option value="FLATRATE">Flat rate</option> + </select><br> + Commercial: + <select name="CommercialFlag"> + <option value="Y">Yes</option> + <option value="N">No</option> + </select><br> + Commercial Plus: + <select name="CommercialPlusFlag"> + <option value="Y">Yes</option> + <option value="N">No</option> + </select><br> + Size: + <select name="Size2"> + <option value="REGULAR">Regular</option> + <option value="LARGE">Large</option> + </select><br> + Container: + <select name="Container2"> + <option value="VARIABLE">VARIABLE</option> + <option value="FLAT RATE ENVELOPE">FLAT RATE ENVELOPE</option> + <option value="PADDED FLAT RATE ENVELOPE">PADDED FLAT RATE ENVELOPE</option> + <option value="LEGAL FLAT RATE ENVELOPE">LEGAL FLAT RATE ENVELOPE</option> + <option value="FIRST CLASS">SM FLAT RATE ENVELOPE</option> + <option value="WINDOW FLAT RATE ENVELOPE">WINDOW FLAT RATE ENVELOPE</option> + <option value="GIFT CARD FLAT RATE ENVELOPE">GIFT CARD FLAT RATE ENVELOPE</option> + <option value="SM FLAT RATE BOX">SM FLAT RATE BOX</option> + <option value="MD FLAT RATE BOX">MD FLAT RATE BOX</option> + <option value="LG FLAT RATE BOX">LG FLAT RATE BOX</option> + <option value="REGIONALRATEBOXA">REGIONALRATEBOXA</option> + <option value="REGIONALRATEBOXB">REGIONALRATEBOXB</option> + <option value="CUBIC PARCELS">CUBIC PARCELS</option> + <option value="CUBIC SOFT PACK">CUBIC SOFT PACK</option> + </select><br> + + </form> + <div id="button_intl" class="button"> + Calculate postage + </div> + + + + <br> + <div id="errors"> + + </div><br> + <br> + <div id="mainrate"> + </div> + <div id="results"> + </div> +</body> diff --git a/data/extensions/gnuzilla-ext-workarounds@gnu.org/html/domestic.html~ b/data/extensions/gnuzilla-ext-workarounds@gnu.org/html/domestic.html~ new file mode 100644 index 0000000..358a5e8 --- /dev/null +++ b/data/extensions/gnuzilla-ext-workarounds@gnu.org/html/domestic.html~ @@ -0,0 +1,807 @@ +<!DOCTYPE html> +<head> + <!-- + + Copyright (C) 2019 Nathan Nichols + Copyright (C) 2019 Free Software Foundation + + This program is free software: you can redistribute it and/or modify + it under the terms of the GNU General Public License as published by + the Free Software Foundation, either version 3 of the License, or + (at your option) any later version. + + This program is distributed in the hope that it will be useful, + but WITHOUT ANY WARRANTY; without even the implied warranty of + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + GNU General Public License for more details. + + You should have received a copy of the GNU General Public License + along with this program. If not, see <http://www.gnu.org/licenses/>. + + --> + + + + <meta content="text/html;charset=utf-8" http-equiv="Content-Type"> + <meta content="utf-8" http-equiv="encoding"> + + <style> + div.button {max-width: 100px; padding: 10px; background: aquamarine;} + div.button:hover {background: lightgreen;} + </style> + + + +</head> +<body> + <script type="text/javascript" src="./jquery-3.4.1.min.js"></script> + <script type="text/javascript" src="./usps_postage.js"></script> + + <h1>Postage Calculator :D</h1> + <p>This is a utility for calculating United States Postal Service domestic postage rates.</p> + <p><i><u>What is this?</u></i></p> + <p>The postage calculator on the USPS website is impossible to use without running non-free Javascript. This is a work-around.</p> + + <p>Packaged as part of the "Non-free JS Work-around scripts" add-on.</p> + + <h2>Domestic rates</h2> + <form id="main"> + <p>To get a user ID, sign up <a href="https://registration.shippingapis.com/">here</a> and it will be emailed to you.</p> + + User ID:<input type="text" name="USERID"><br> + Service: + <select name="Service"> + <option value="FIRST CLASS">First Class</option> + <option value="FIRST CLASS COMMERCIAL">First Class Commercial</option> + <option value="FIRST CLASS HFP COMMERCIAL">First Class HFP Commercial</option> + <option value="PRIORITY">Priority</option> + <option value="PRIORITY COMMERCIAL">Priority Commercial</option> + <option value="PRIORITY CPP">Priority Cpp</option> + <option value="HFP COMMERCIAL">Priority HFP Commercial</option> + <option value="PRIORITY HFP CPP">Priority HFP CPP</option> + <option value="PRIORITY MAIL EXPRESS">Priority Mail Express</option> + <option value="PRIORITY MAIL EXPRESS COMMERCIAL">Priority Mail Express Commercial</option> + <option value="PRIORITY MAIL EXPRESS CPP">Priority Mail Express CPP</option> + <option value="PRIORITY MAIL EXPRESS">Priority Mail Express Sh</option> + <option value="PRIORITY MAIL EXPRESS SH COMMERCIAL">Priority Mail Express Sh Commercial</option> + <option value="PRIORITY MAIL EXPRESS HFP">Priority Mail Express HFP</option> + <option value="PRIORITY MAIL EXPRESS HFP COMMERCIAL">Priority Mail Express HFP Commercial</option> + <option value="PRIORITY MAIL EXPRESS HFP CPP">Priority Mail Express HFP CPP</option> + <option value="PRIORITY MAIL CUBIC">Priority Mail Cubic</option> + <option value="RETAIL GROUND">Retail Ground</option> + <option value="MEDIA">Media</option> + <option value="LIBRARY">Library</option> + <option value="ALL">All</option> + <option value="ONLINE">Online</option> + <option value="PLUS">Plus</option> + <option value="BPM">BPM</option> + </select><br> + first class mail type: + <select name="FirstClassMailType"> + <option value="LETTER">Letter</option> + <option value="FLAT">Flat</option> + <option value="RETAIL">Retail</option> + <option value="POSTCARD">Postcard</option> + <option value="PACKAGE SERVICE">Package Service</option> + </select><br> + + + ZipOrigination:<input type="text" name="ZipOrigination"><br> + ZipDestination:<input type="text" name="ZipDestination"><br> + Pounds:<input type="text" name="Pounds"><br> + + <!-- + <select name="Size"> + <option value="REGULAR">Regular</option> + <option value="LARGE">Large</option> + </select><br> + --> + + + Container: + <select name="Container"> + <option value="VARIABLE">VARIABLE</option> + <option value="FLAT RATE ENVELOPE">FLAT RATE ENVELOPE</option> + <option value="PADDED FLAT RATE ENVELOPE">PADDED FLAT RATE ENVELOPE</option> + <option value="LEGAL FLAT RATE ENVELOPE">LEGAL FLAT RATE ENVELOPE</option> + <option value="FIRST CLASS">SM FLAT RATE ENVELOPE</option> + <option value="WINDOW FLAT RATE ENVELOPE">WINDOW FLAT RATE ENVELOPE</option> + <option value="GIFT CARD FLAT RATE ENVELOPE">GIFT CARD FLAT RATE ENVELOPE</option> + <option value="SM FLAT RATE BOX">SM FLAT RATE BOX</option> + <option value="MD FLAT RATE BOX">MD FLAT RATE BOX</option> + <option value="LG FLAT RATE BOX">LG FLAT RATE BOX</option> + <option value="REGIONALRATEBOXA">REGIONALRATEBOXA</option> + <option value="REGIONALRATEBOXB">REGIONALRATEBOXB</option> + <option value="CUBIC PARCELS">CUBIC PARCELS</option> + <option value="CUBIC SOFT PACK">CUBIC SOFT PACK</option> + </select><br> + Note: "Cubic Soft Pack" and "Cubic Parcels" are only valid containers for "Priority Mail Cubic" + <br> + Width:<input type="text" name="Width"><br> + Length:<input type="text" name="Length"><br> + Height:<input type="text" name="Height"><br> + Girth:<input type="text" name="Girth"><br> + Value:<input type="text" name="Value"><br> + Amount to collect:<input type="text" name="AmountToCollect"><br> + Special services:<br> + <select name="SpecialService" multiple> + <option value='100'>Insurance</option> + <option value='101'>Insurance – Priority Mail Express</option> + <option value='102'>Return Receipt</option> + <option value='103'>Collect on Delivery</option> + <option value='104'>Certificate of Mailing (Form 3665)</option> + <option value='105'>Certified Mail</option> + <option value='106'>USPS Tracking</option> + <option value='107'>Return Receipt for Merchandise</option> + <option value='108'>Signature Confirmation</option> + <option value='109'>Registered Mail</option> + <option value='110'>Return Receipt Electronic</option> + <option value='112'>Registered mail COD collection Charge</option> + <option value='118'>Return Receipt – Priority Mail Express</option> + <option value='119'>Adult Signature Required</option> + <option value='120'>Adult Signature Restricted Delivery</option> + <option value='125'>Insurance – Priority Mail</option> + <option value='155'>USPS Tracking Electronic</option> + <option value='156'>Signature Confirmation Electronic</option> + <option value='160'>Certificate of Mailing (Form 3817)</option> + <option value='161'>Priority Mail Express 1030 AM Delivery</option> + <option value='170'>Certified Mail Restricted Delivery</option> + <option value='171'>Certified Mail Adult Signature Required</option> + <option value='172'>Certified Mail Adult Signature Restricted Delivery</option> + <option value='173'>Signature Confirm. Restrict. Delivery</option> + <option value='174'>Signature Confirmation Electronic Restricted Delivery</option> + <option value='175'>Collect on Delivery Restricted Delivery</option> + <option value='176'>Registered Mail Restricted Delivery</option> + <option value='177'>Insurance Restricted Delivery</option> + <option value='179'>Insurance Restrict. Delivery – Priority Mail</option> + <option value='178'>Insurance Restrict. Delivery – Priority Mail Express</option> + <option value='180'>Insurance Restrict. Delivery (Bulk Only)</option> + <option value='190'>Special Handling - Fragile</option> + </select><br> + (hold control to select multiple special services if neccessary.)<br> + Content Type: + <select name="ContentType"> + <option value="DEFAULT">Default</option> + <option value="HAZMAT">Hazmat</option> + <option value="CREMATEDREMAINS">Cremated remains</option> + <option value="FRAGILE">fragile</option> + <option value="PERISHABLE">perishable</option> + <option value="PHARMACEUTICALS">pharmaceuticals</option> + <option value="MEDICALSUPPLIES">medical supplies</option> + <option value="LIVES">lives</option> + </select><br> + Content description: + <select name="ContentDescription"> + <option value="BEES">BEES</option> + <option value="DAYOLDPOULTRY">DAYOLDPOULTRY</option> + <option value="ADULTBIRDS">ADULTBIRDS</option> + <option value="OTHER">OTHER</option> + </select><br> + Is machinable: + <select name="Machinable"> + <option value="true">True</option> + <option value="false">False</option> + </select><br> + Is ground only: + <select name="GroundOnly"> + <option value="true">True</option> + <option value="false">False</option> + </select><br> + </form> + <div id="button_domestic" class="button"> + Calculate postage + </div> + + <h2 style="display:none;">International rates</h2> + <form> + User ID:<input type="text" name="USERID2"><br> + Pounds:<input type="text" name="Pounds2"><br> + Value of contents:<input type="text" name="ValueOfContents"><br> + Machinable: + <select name="Machinable2"> + <option value="true">True</option> + <option value="false">False</option> + </select><br> + + Destination is a post office box:<select name="POBoxFlag"> + <option value="Y">Yes</option> + <option value="N">No</option> + </select><br> + + Contains a gift:<select name="GiftFlag"> + <option value="Y">Yes</option> + <option value="N">No</option> + </select><br> + Origin Zip:<input type="text" name="OriginZip"><br> + + Width:<input type="text" name="Width2"><br> + Length:<input type="text" name="Length2"><br> + Height:<input type="text" name="Height2"><br> + Girth:<input type="text" name="Girth2"><br> + + Destination country: + <select name="Country"> + <option value="Abu Dhabi (United Arab Emirates)">Abu Dhabi (United Arab Emirates)</option> + <option value="Admiralty Islands (Papua New Guinea)">Admiralty Islands (Papua New Guinea)</option> + <option value="Afghanistan">Afghanistan</option> + <option value="Aitutaki, Cook Islands (New Zealand)">Aitutaki, Cook Islands (New Zealand)</option> + <option value="Ajman (United Arab Emirates)">Ajman (United Arab Emirates)</option> + <option value="Aland Island (Finland)">Aland Island (Finland)</option> + <option value="Albania">Albania</option> + <option value="Alberta (Canada)">Alberta (Canada)</option> + <option value="Alderney (Channel Islands) (United Kingdom)">Alderney (Channel Islands) (United Kingdom)</option> + <option value="Algeria">Algeria</option> + <option value="Alhucemas (Spain)">Alhucemas (Spain)</option> + <option value="Alofi Island (New Caledonia)">Alofi Island (New Caledonia)</option> + <option value="American Samoa, United State">American Samoa, United State</option> + <option value="(Domestic Mail) See DMM 60">(Domestic Mail) See DMM 60</option> + <option value="Andaman Islands (India)">Andaman Islands (India)</option> + <option value="Andorra">Andorra</option> + <option value="Angola">Angola</option> + <option value="Anguilla">Anguilla</option> + <option value="Anjouan (Comoros)">Anjouan (Comoros)</option> + <option value="Annobon Island (Equatorial Guinea)">Annobon Island (Equatorial Guinea)</option> + <option value="Antigua (Antigua and Barbuda)">Antigua (Antigua and Barbuda)</option> + <option value="Antigua and Barbuda">Antigua and Barbuda</option> + <option value="Argentina">Argentina</option> + <option value="Armenia">Armenia</option> + <option value="Aruba">Aruba</option> + <option value="Ascension">Ascension</option> + <option value="Astypalaia (Greece)">Astypalaia (Greece)</option> + <option value="Atafu (Samoa)">Atafu (Samoa)</option> + <option value="Atiu, Cook Islands (New Zealand)">Atiu, Cook Islands (New Zealand)</option> + <option value="Australia">Australia</option> + <option value="Austria">Austria</option> + <option value="Avarua (New Zealand)">Avarua (New Zealand)</option> + <option value="Azerbaijan">Azerbaijan</option> + <option value="Azores (Portugal)">Azores (Portugal)</option> + <option value="Bahamas">Bahamas</option> + <option value="Bahrain">Bahrain</option> + <option value="Balearic Islands (Spain)">Balearic Islands (Spain)</option> + <option value="Balochistan (Pakistan)">Balochistan (Pakistan)</option> + <option value="Bangladesh">Bangladesh</option> + <option value="Banks Island (Vanuatu)">Banks Island (Vanuatu)</option> + <option value="Barbados">Barbados</option> + <option value="Barbuda (Antigua and Barbuda)">Barbuda (Antigua and Barbuda)</option> + <option value="Barthelemy (Guadeloupe)">Barthelemy (Guadeloupe)</option> + <option value="Belarus">Belarus</option> + <option value="Belgium">Belgium</option> + <option value="Belize">Belize</option> + <option value="Benin">Benin</option> + <option value="Bermuda">Bermuda</option> + <option value="Bhutan">Bhutan</option> + <option value="Bismark Archipelago (Papua New Guinea)">Bismark Archipelago (Papua New Guinea)</option> + <option value="Bolivia">Bolivia</option> + <option value="Bonaire, Sint Eustatius, and Saba">Bonaire, Sint Eustatius, and Saba</option> + <option value="Bora Bora (French Polynesia)">Bora Bora (French Polynesia)</option> + <option value="Borneo (Indonesia)">Borneo (Indonesia)</option> + <option value="Bosnia-Herzegovina">Bosnia-Herzegovina</option> + <option value="Botswana">Botswana</option> + <option value="Bougainville (Papua New Guinea)">Bougainville (Papua New Guinea)</option> + <option value="Bourbon (Reunion)">Bourbon (Reunion)</option> + <option value="Brazil">Brazil</option> + <option value="British Columbia (Canada)">British Columbia (Canada)</option> + <option value="British Guiana (Guyana)">British Guiana (Guyana)</option> + <option value="British Virgin Islands">British Virgin Islands</option> + <option value="Brunei Darussalam">Brunei Darussalam</option> + <option value="Buka (Papua New Guinea)">Buka (Papua New Guinea)</option> + <option value="Bulgaria">Bulgaria</option> + <option value="Burkina Faso">Burkina Faso</option> + <option value="Burma">Burma</option> + <option value="Burundi">Burundi</option> + <option value="Caicos Islands (Turks and Caicos Islands)">Caicos Islands (Turks and Caicos Islands)</option> + <option value="Cambodia">Cambodia</option> + <option value="Cameroon">Cameroon</option> + <option value="Canada">Canada</option> + <option value="Canary Islands (Spain)">Canary Islands (Spain)</option> + <option value="Canton Island (Kiribati)">Canton Island (Kiribati)</option> + <option value="Cape Verde">Cape Verde</option> + <option value="Cayman Islands">Cayman Islands</option> + <option value="Central African Republic">Central African Republic</option> + <option value="Ceuta (Spain)">Ceuta (Spain)</option> + <option value="Ceylon (Sri Lanka)">Ceylon (Sri Lanka)</option> + <option value="Chad">Chad</option> + <option value="Chaferinas Islands (Spain)">Chaferinas Islands (Spain)</option> + <option value="Chalki (Greece)">Chalki (Greece)</option> + <option value="Channel Islands (Jersey, Guernsey, Alderney">Channel Islands (Jersey, Guernsey, Alderney</option> + <option value="and Sark) (United Kingdom)">and Sark) (United Kingdom)</option> + <option value="Chile">Chile</option> + <option value="China">China</option> + <option value="Christiansted, US Virgin Islands, United State">Christiansted, US Virgin Islands, United State</option> + <option value="(Domestic Mail) See DMM 60">(Domestic Mail) See DMM 60</option> + <option value="Christmas Island (Australia)">Christmas Island (Australia)</option> + <option value="Christmas Island (Kiribati)">Christmas Island (Kiribati)</option> + <option value="Chuuk, Micronesia, United State">Chuuk, Micronesia, United State</option> + <option value="(Domestic Mail) See DMM 60">(Domestic Mail) See DMM 60</option> + <option value="Cocos Island (Australia)">Cocos Island (Australia)</option> + <option value="Colombia">Colombia</option> + <option value="Comoros">Comoros</option> + <option value="Congo, Democratic Republic of the">Congo, Democratic Republic of the</option> + <option value="Congo, Republic of the">Congo, Republic of the</option> + <option value="Cook Islands (New Zealand)">Cook Islands (New Zealand)</option> + <option value="Corisco Island (Equatorial Guinea)">Corisco Island (Equatorial Guinea)</option> + <option value="Corsica (France)">Corsica (France)</option> + <option value="Costa Rica">Costa Rica</option> + <option value="Cote d’Ivoire">Cote d’Ivoire</option> + <option value="Crete (Greece)">Crete (Greece)</option> + <option value="Croatia">Croatia</option> + <option value="Cuba">Cuba</option> + <option value="Cumino Island (Malta)">Cumino Island (Malta)</option> + <option value="Curacao">Curacao</option> + <option value="Cyjrenaica (Libya)">Cyjrenaica (Libya)</option> + <option value="Cyprus">Cyprus</option> + <option value="Czech Republic">Czech Republic</option> + <option value="Dahomey (Benin)">Dahomey (Benin)</option> + <option value="Damao (India)">Damao (India)</option> + <option value="Danger Islands (New Zealand)">Danger Islands (New Zealand)</option> + <option value="Denmark">Denmark</option> + <option value="Desirade Island (Guadeloupe)">Desirade Island (Guadeloupe)</option> + <option value="Diu (India)">Diu (India)</option> + <option value="Djibouti">Djibouti</option> + <option value="Dodecanese Islands (Greece)">Dodecanese Islands (Greece)</option> + <option value="Doha (Qatar)">Doha (Qatar)</option> + <option value="Dominica">Dominica</option> + <option value="Dominican Republic">Dominican Republic</option> + <option value="Dubai (United Arab Emirates)">Dubai (United Arab Emirates)</option> + <option value="East Timor (Timor-Leste)">East Timor (Timor-Leste)</option> + <option value="Ebeye, Marshall Islands, United State">Ebeye, Marshall Islands, United State</option> + <option value="(Domestic Mail) See DMM 60">(Domestic Mail) See DMM 60</option> + <option value="Ecuador">Ecuador</option> + <option value="Egypt">Egypt</option> + <option value="Eire (Ireland)">Eire (Ireland)</option> + <option value="El Salvador">El Salvador</option> + <option value="Ellice Islands (Tuvalu)">Ellice Islands (Tuvalu)</option> + <option value="Elobey Islands (Equatorial Guinea)">Elobey Islands (Equatorial Guinea)</option> + <option value="Enderbury Island (Kiribati)">Enderbury Island (Kiribati)</option> + <option value="England (United Kingdom)">England (United Kingdom)</option> + <option value="Equatorial Guinea">Equatorial Guinea</option> + <option value="Eritrea">Eritrea</option> + <option value="Estonia">Estonia</option> + <option value="Eswatini">Eswatini</option> + <option value="Ethiopia">Ethiopia</option> + <option value="Fakaofo (Samoa)">Fakaofo (Samoa)</option> + <option value="Falkland Islands">Falkland Islands</option> + <option value="Fanning Island (Kiribati)">Fanning Island (Kiribati)</option> + <option value="Faroe Islands">Faroe Islands</option> + <option value="Fernando Po (Equatorial Guinea)">Fernando Po (Equatorial Guinea)</option> + <option value="Fezzan (Libya)">Fezzan (Libya)</option> + <option value="Fiji">Fiji</option> + <option value="Finland">Finland</option> + <option value="Formosa (Taiwan)">Formosa (Taiwan)</option> + <option value="France">France</option> + <option value="Frederiksted, US Virgin Islands, United State">Frederiksted, US Virgin Islands, United State</option> + <option value="(Domestic Mail) See DMM 60">(Domestic Mail) See DMM 60</option> + <option value="French Guiana">French Guiana</option> + <option value="French Oceania (French Polynesia)">French Oceania (French Polynesia)</option> + <option value="French Polynesia">French Polynesia</option> + <option value="French West Indies (Guadeloupe)">French West Indies (Guadeloupe)</option> + <option value="French West Indies (Martinique)">French West Indies (Martinique)</option> + <option value="Friendly Islands (Tonga)">Friendly Islands (Tonga)</option> + <option value="Fujairah (United Arab Emirates)">Fujairah (United Arab Emirates)</option> + <option value="Futuna (Wallis and Futuna Islands)">Futuna (Wallis and Futuna Islands)</option> + <option value="Gabon">Gabon</option> + <option value="Gambia">Gambia</option> + <option value="Gambier (French Polynesia)">Gambier (French Polynesia)</option> + <option value="Georgia, Republic of">Georgia, Republic of</option> + <option value="Germany">Germany</option> + <option value="Ghana">Ghana</option> + <option value="Gibraltar">Gibraltar</option> + <option value="Gilbert Islands (Kiribati)">Gilbert Islands (Kiribati)</option> + <option value="Goa (India)">Goa (India)</option> + <option value="Gozo Island (Malta)">Gozo Island (Malta)</option> + <option value="Grand Comoro (Comoros)">Grand Comoro (Comoros)</option> + <option value="Great Britain (United Kingdom)">Great Britain (United Kingdom)</option> + <option value="Greece">Greece</option> + <option value="Greenland">Greenland</option> + <option value="Grenada">Grenada</option> + <option value="Grenadines (Saint Vincent and the Grenadines)">Grenadines (Saint Vincent and the Grenadines)</option> + <option value="Guadeloupe">Guadeloupe</option> + <option value="Guam, United States (Domestic Mail) See DMM 60">Guam, United States (Domestic Mail) See DMM 60</option> + <option value="Guatemala">Guatemala</option> + <option value="Guernsey (Channel Islands) (United Kingdom)">Guernsey (Channel Islands) (United Kingdom)</option> + <option value="Guinea">Guinea</option> + <option value="Guinea–Bissau">Guinea–Bissau</option> + <option value="Guyana">Guyana</option> + <option value="Hainan Island (China)">Hainan Island (China)</option> + <option value="Haiti">Haiti</option> + <option value="Hashemite Kingdom (Jordan)">Hashemite Kingdom (Jordan)</option> + <option value="Hervey, Cook Islands (New Zealand)">Hervey, Cook Islands (New Zealand)</option> + <option value="Hivaoa (French Polynesia)">Hivaoa (French Polynesia)</option> + <option value="Holland (Netherlands)">Holland (Netherlands)</option> + <option value="Honduras">Honduras</option> + <option value="Hong Kong">Hong Kong</option> + <option value="Huahine (French Polynesia)">Huahine (French Polynesia)</option> + <option value="Huan Island (New Caledonia)">Huan Island (New Caledonia)</option> + <option value="Hungary">Hungary</option> + <option value="Iceland">Iceland</option> + <option value="India">India</option> + <option value="Indonesia">Indonesia</option> + <option value="Iran">Iran</option> + <option value="Iraq">Iraq</option> + <option value="Ireland">Ireland</option> + <option value="Irian Barat (Indonesia)">Irian Barat (Indonesia)</option> + <option value="Isle of Man (United Kingdom)">Isle of Man (United Kingdom)</option> + <option value="Isle of Pines (New Caledonia)">Isle of Pines (New Caledonia)</option> + <option value="Isle of Pines, West Indies (Cuba)">Isle of Pines, West Indies (Cuba)</option> + <option value="Israel">Israel</option> + <option value="Issas (Djibouti)">Issas (Djibouti)</option> + <option value="Italy">Italy</option> + <option value="Ivory Coast (Cote d’Ivoire)">Ivory Coast (Cote d’Ivoire)</option> + <option value="Jamaica">Jamaica</option> + <option value="Japan">Japan</option> + <option value="Jersey (Channel Islands) (United Kingdom)">Jersey (Channel Islands) (United Kingdom)</option> + <option value="Johore (Malaysia)">Johore (Malaysia)</option> + <option value="Jordan">Jordan</option> + <option value="Kalymnos (Greece)">Kalymnos (Greece)</option> + <option value="Kampuchea (Cambodia)">Kampuchea (Cambodia)</option> + <option value="Karpathos (Greece)">Karpathos (Greece)</option> + <option value="Kassos (Greece)">Kassos (Greece)</option> + <option value="Kastellorizon (Greece)">Kastellorizon (Greece)</option> + <option value="Kazakhstan">Kazakhstan</option> + <option value="Kedah (Malaysia)">Kedah (Malaysia)</option> + <option value="Keeling Islands (Australia)">Keeling Islands (Australia)</option> + <option value="Kelantan (Malaysia)">Kelantan (Malaysia)</option> + <option value="Kenya">Kenya</option> + <option value="Kingshill, US Virgin Islands, United State">Kingshill, US Virgin Islands, United State</option> + <option value="(Domestic Mail) See DMM 60">(Domestic Mail) See DMM 60</option> + <option value="Kiribati">Kiribati</option> + <option value="Korea, Democratic People’s Republic o">Korea, Democratic People’s Republic o</option> + <option value="(North Korea)">(North Korea)</option> + <option value="Korea, Republic of (South Korea)">Korea, Republic of (South Korea)</option> + <option value="Koror (Palau), United States (Domestic Mail) See DMM 60">Koror (Palau), United States (Domestic Mail) See DMM 60</option> + <option value="Kos (Greece)">Kos (Greece)</option> + <option value="Kosovo, Republic of">Kosovo, Republic of</option> + <option value="Kosrae, Micronesia, United State">Kosrae, Micronesia, United State</option> + <option value="(Domestic Mail) See DMM 60">(Domestic Mail) See DMM 60</option> + <option value="Kowloon (Hong Kong)">Kowloon (Hong Kong)</option> + <option value="Kuwait">Kuwait</option> + <option value="Kwajalein, Marshall Islands, United State">Kwajalein, Marshall Islands, United State</option> + <option value="(Domestic Mail) See DMM 60">(Domestic Mail) See DMM 60</option> + <option value="Kyrgyzstan">Kyrgyzstan</option> + <option value="Labrador (Canada)">Labrador (Canada)</option> + <option value="Labuan (Malaysia)">Labuan (Malaysia)</option> + <option value="Laos">Laos</option> + <option value="Latvia">Latvia</option> + <option value="Lebanon">Lebanon</option> + <option value="Leipsos (Greece)">Leipsos (Greece)</option> + <option value="Leros (Greece)">Leros (Greece)</option> + <option value="Les Saints Island (Guadeloupe)">Les Saints Island (Guadeloupe)</option> + <option value="Lesotho">Lesotho</option> + <option value="Liberia">Liberia</option> + <option value="Libya">Libya</option> + <option value="Liechtenstein">Liechtenstein</option> + <option value="Lithuania">Lithuania</option> + <option value="Lord Howe Island (Australia)">Lord Howe Island (Australia)</option> + <option value="Loyalty Islands (New Caledonia)">Loyalty Islands (New Caledonia)</option> + <option value="Luxembourg">Luxembourg</option> + <option value="Macao">Macao</option> + <option value="Macau (Macao)">Macau (Macao)</option> + <option value="Macedonia, Republic of">Macedonia, Republic of</option> + <option value="Madagascar">Madagascar</option> + <option value="Madeira Islands (Portugal)">Madeira Islands (Portugal)</option> + <option value="Majuro, Marshall Islands, United State">Majuro, Marshall Islands, United State</option> + <option value="(Domestic Mail) See DMM 60">(Domestic Mail) See DMM 60</option> + <option value="Malacca (Malaysia)">Malacca (Malaysia)</option> + <option value="Malawi">Malawi</option> + <option value="Malaysia">Malaysia</option> + <option value="Maldives">Maldives</option> + <option value="Mali">Mali</option> + <option value="Malta">Malta</option> + <option value="Manahiki (New Zealand)">Manahiki (New Zealand)</option> + <option value="Manchuria (China)">Manchuria (China)</option> + <option value="Manitoba (Canada)">Manitoba (Canada)</option> + <option value="Manua Islands, American Samoa">Manua Islands, American Samoa</option> + <option value="United States (Domestic Mail) See DMM 60">United States (Domestic Mail) See DMM 60</option> + <option value="Marie Galante (Guadeloupe)">Marie Galante (Guadeloupe)</option> + <option value="Marquesas Islands (French Polynesia)">Marquesas Islands (French Polynesia)</option> + <option value="Marshall Islands, Republic of the">Marshall Islands, Republic of the</option> + <option value="United States (Domestic Mail) See DMM 60">United States (Domestic Mail) See DMM 60</option> + <option value="Martinique">Martinique</option> + <option value="Mauritania">Mauritania</option> + <option value="Mauritius">Mauritius</option> + <option value="Mayotte (France)">Mayotte (France)</option> + <option value="Melilla (Spain)">Melilla (Spain)</option> + <option value="Mexico">Mexico</option> + <option value="Micronesia, Federated States of">Micronesia, Federated States of</option> + <option value="United States (Domestic Mail) See DMM 60">United States (Domestic Mail) See DMM 60</option> + <option value="Miquelon (Saint Pierre and Miquelon)">Miquelon (Saint Pierre and Miquelon)</option> + <option value="Moheli (Comoros)">Moheli (Comoros)</option> + <option value="Moldova">Moldova</option> + <option value="Monaco (France)">Monaco (France)</option> + <option value="Mongolia">Mongolia</option> + <option value="Montenegro">Montenegro</option> + <option value="Montserrat">Montserrat</option> + <option value="Moorea (French Polynesia)">Moorea (French Polynesia)</option> + <option value="Morocco">Morocco</option> + <option value="Mozambique">Mozambique</option> + <option value="Muscat (Oman)">Muscat (Oman)</option> + <option value="Myanmar (Burma)">Myanmar (Burma)</option> + <option value="Namibia">Namibia</option> + <option value="Nansil Islands (Japan)">Nansil Islands (Japan)</option> + <option value="Nauru">Nauru</option> + <option value="Negri Sembilan (Malaysia)">Negri Sembilan (Malaysia)</option> + <option value="Nepal">Nepal</option> + <option value="Netherlands">Netherlands</option> + <option value="Nevis (Saint Kitts and Nevis)">Nevis (Saint Kitts and Nevis)</option> + <option value="New Britain (Papua New Guinea)">New Britain (Papua New Guinea)</option> + <option value="New Brunswick (Canada)">New Brunswick (Canada)</option> + <option value="New Caledonia">New Caledonia</option> + <option value="New Hanover (Papua New Guinea)">New Hanover (Papua New Guinea)</option> + <option value="New Hebrides (Vanuatu)">New Hebrides (Vanuatu)</option> + <option value="New Ireland (Papua New Guinea)">New Ireland (Papua New Guinea)</option> + <option value="New South Wales (Australia)">New South Wales (Australia)</option> + <option value="New Zealand">New Zealand</option> + <option value="Newfoundland (Canada)">Newfoundland (Canada)</option> + <option value="Nicaragua">Nicaragua</option> + <option value="Niger">Niger</option> + <option value="Nigeria">Nigeria</option> + <option value="Nissiros (Greece)">Nissiros (Greece)</option> + <option value="Niue (New Zealand)">Niue (New Zealand)</option> + <option value="Norfolk Island (Australia)">Norfolk Island (Australia)</option> + <option value="North Borneo (Malaysia)">North Borneo (Malaysia)</option> + <option value="North Korea (Korea, Democratic People’">North Korea (Korea, Democratic People’</option> + <option value="Republic of)">Republic of)</option> + <option value="Northern Ireland (United Kingdom)">Northern Ireland (United Kingdom)</option> + <option value="Northern Mariana Islands, Commonwealth of">Northern Mariana Islands, Commonwealth of</option> + <option value="United States (Domestic Mail) See DMM 60">United States (Domestic Mail) See DMM 60</option> + <option value="Northwest Territory (Canada)">Northwest Territory (Canada)</option> + <option value="Norway">Norway</option> + <option value="Nova Scotia (Canada)">Nova Scotia (Canada)</option> + <option value="Nukahiva (French Polynesia)">Nukahiva (French Polynesia)</option> + <option value="Nukunonu (Samoa)">Nukunonu (Samoa)</option> + <option value="Ocean Island (Kiribati)">Ocean Island (Kiribati)</option> + <option value="Okinawa (Japan)">Okinawa (Japan)</option> + <option value="Oman">Oman</option> + <option value="Ontario (Canada)">Ontario (Canada)</option> + <option value="Pago Pago, American Samoa, United State">Pago Pago, American Samoa, United State</option> + <option value="(Domestic Mail) See DMM 60">(Domestic Mail) See DMM 60</option> + <option value="Pahang (Malaysia)">Pahang (Malaysia)</option> + <option value="Pakistan">Pakistan</option> + <option value="Palau, United States (Domestic Mail) See DMM 60">Palau, United States (Domestic Mail) See DMM 60</option> + <option value="Palmerston, Avarua (New Zealand)">Palmerston, Avarua (New Zealand)</option> + <option value="Panama">Panama</option> + <option value="Papua New Guinea">Papua New Guinea</option> + <option value="Paraguay">Paraguay</option> + <option value="Parry, Cook Islands (New Zealand)">Parry, Cook Islands (New Zealand)</option> + <option value="Patmos (Greece)">Patmos (Greece)</option> + <option value="Pemba (Tanzania)">Pemba (Tanzania)</option> + <option value="Penang (Malaysia)">Penang (Malaysia)</option> + <option value="Penghu Islands (Taiwan)">Penghu Islands (Taiwan)</option> + <option value="Penon de Velez de la Gomera (Spain)">Penon de Velez de la Gomera (Spain)</option> + <option value="Penrhyn, Tongareva (New Zealand)">Penrhyn, Tongareva (New Zealand)</option> + <option value="Perak (Malaysia)">Perak (Malaysia)</option> + <option value="Perlis (Malaysia)">Perlis (Malaysia)</option> + <option value="Persia (Iran)">Persia (Iran)</option> + <option value="Peru">Peru</option> + <option value="Pescadores Islands (Taiwan)">Pescadores Islands (Taiwan)</option> + <option value="Petite Terre (Guadeloupe)">Petite Terre (Guadeloupe)</option> + <option value="Philippines">Philippines</option> + <option value="Pitcairn Island">Pitcairn Island</option> + <option value="Pohnpei, Micronesia, United State">Pohnpei, Micronesia, United State</option> + <option value="(Domestic Mail) See DMM 60">(Domestic Mail) See DMM 60</option> + <option value="Poland">Poland</option> + <option value="Portugal">Portugal</option> + <option value="Prince Edward Island (Canada)">Prince Edward Island (Canada)</option> + <option value="Puerto Rico, United States (Domestic Mail) See DMM 60">Puerto Rico, United States (Domestic Mail) See DMM 60</option> + <option value="Pukapuka (New Zealand)">Pukapuka (New Zealand)</option> + <option value="Qatar">Qatar</option> + <option value="Quebec (Canada)">Quebec (Canada)</option> + <option value="Queensland (Australia)">Queensland (Australia)</option> + <option value="Quemoy (Taiwan)">Quemoy (Taiwan)</option> + <option value="Raiatea (French Polynesia)">Raiatea (French Polynesia)</option> + <option value="Rakaanga (New Zealand)">Rakaanga (New Zealand)</option> + <option value="Rapa (French Polynesia)">Rapa (French Polynesia)</option> + <option value="Rarotonga, Cook Islands (New Zealand)">Rarotonga, Cook Islands (New Zealand)</option> + <option value="Ras al Kaimah (United Arab Emirates)">Ras al Kaimah (United Arab Emirates)</option> + <option value="Redonda (Antigua and Barbuda)">Redonda (Antigua and Barbuda)</option> + <option value="Reunion">Reunion</option> + <option value="Rio Muni (Equatorial Guinea)">Rio Muni (Equatorial Guinea)</option> + <option value="Rodos (Greece)">Rodos (Greece)</option> + <option value="Rodrigues (Mauritius)">Rodrigues (Mauritius)</option> + <option value="Romania">Romania</option> + <option value="Rota, Northern Mariana Islands">Rota, Northern Mariana Islands</option> + <option value="United States (Domestic Mail) See DMM 60">United States (Domestic Mail) See DMM 60</option> + <option value="Russia">Russia</option> + <option value="Rwanda">Rwanda</option> + <option value="Saba (Bonaire, Sint Eustatius, and Saba)">Saba (Bonaire, Sint Eustatius, and Saba)</option> + <option value="Sabah (Malaysia)">Sabah (Malaysia)</option> + <option value="Saint Barthelemy (Guadeloupe)">Saint Barthelemy (Guadeloupe)</option> + <option value="Saint Bartholomew (Guadeloupe)">Saint Bartholomew (Guadeloupe)</option> + <option value="Saint Croix, US Virgin Islands">Saint Croix, US Virgin Islands</option> + <option value="United States (Domestic Mail) See DMM 60">United States (Domestic Mail) See DMM 60</option> + <option value="Saint Helena">Saint Helena</option> + <option value="Saint John, US Virgin Islands">Saint John, US Virgin Islands</option> + <option value="United States (Domestic Mail) See DMM 60">United States (Domestic Mail) See DMM 60</option> + <option value="Saint Kitts and Nevis">Saint Kitts and Nevis</option> + <option value="Saint Lucia">Saint Lucia</option> + <option value="Saint Martin (French) (Guadeloupe)">Saint Martin (French) (Guadeloupe)</option> + <option value="Saint Pierre and Miquelon">Saint Pierre and Miquelon</option> + <option value="Saint Thomas, US Virgin Islands">Saint Thomas, US Virgin Islands</option> + <option value="United States (Domestic Mail) See DMM 60">United States (Domestic Mail) See DMM 60</option> + <option value="Saint Vincent and the Grenadines">Saint Vincent and the Grenadines</option> + <option value="Sainte Marie de Madagascar (Madagascar)">Sainte Marie de Madagascar (Madagascar)</option> + <option value="Saipan, Northern Mariana Islands">Saipan, Northern Mariana Islands</option> + <option value="United States (Domestic Mail) See DMM 60">United States (Domestic Mail) See DMM 60</option> + <option value="Salvador (El Salvador)">Salvador (El Salvador)</option> + <option value="Samoa">Samoa</option> + <option value="Samoa, American, United State">Samoa, American, United State</option> + <option value="(Domestic Mail) See DMM 60">(Domestic Mail) See DMM 60</option> + <option value="San Marino">San Marino</option> + <option value="Santa Cruz Islands (Solomon Islands)">Santa Cruz Islands (Solomon Islands)</option> + <option value="Sao Tome and Principe">Sao Tome and Principe</option> + <option value="Sarawak (Malaysia)">Sarawak (Malaysia)</option> + <option value="Sark (Channel Islands) (United Kingdom)">Sark (Channel Islands) (United Kingdom)</option> + <option value="Saskatchewan (Canada)">Saskatchewan (Canada)</option> + <option value="Saudi Arabia">Saudi Arabia</option> + <option value="Savage Island, Niue (New Zealand)">Savage Island, Niue (New Zealand)</option> + <option value="Savaii Island (Samoa)">Savaii Island (Samoa)</option> + <option value="Scotland (United Kingdom)">Scotland (United Kingdom)</option> + <option value="Seberang Perai (Malaysia)">Seberang Perai (Malaysia)</option> + <option value="Selangor (Malaysia)">Selangor (Malaysia)</option> + <option value="Senegal">Senegal</option> + <option value="Serbia, Republic of">Serbia, Republic of</option> + <option value="Seychelles">Seychelles</option> + <option value="Sharja (United Arab Emirates)">Sharja (United Arab Emirates)</option> + <option value="Shikoku (Japan)">Shikoku (Japan)</option> + <option value="Sierra Leone">Sierra Leone</option> + <option value="Sikkim (India)">Sikkim (India)</option> + <option value="Singapore">Singapore</option> + <option value="Sint Eustatius (Bonaire, Sint Eustatius, and Saba)">Sint Eustatius (Bonaire, Sint Eustatius, and Saba)</option> + <option value="Sint Maarten (Dutch)">Sint Maarten (Dutch)</option> + <option value="Slovak Republic (Slovakia)">Slovak Republic (Slovakia)</option> + <option value="Slovenia">Slovenia</option> + <option value="Society Islands (French Polynesia)">Society Islands (French Polynesia)</option> + <option value="Solomon Islands">Solomon Islands</option> + <option value="Somali Democratic Republic (Somalia)">Somali Democratic Republic (Somalia)</option> + <option value="Somalia">Somalia</option> + <option value="Somaliland (Somalia)">Somaliland (Somalia)</option> + <option value="South Africa">South Africa</option> + <option value="South Australia (Australia)">South Australia (Australia)</option> + <option value="South Georgia (Falkland Islands)">South Georgia (Falkland Islands)</option> + <option value="South Korea (Korea, Republic of)">South Korea (Korea, Republic of)</option> + <option value="Spain">Spain</option> + <option value="Spitzbergen (Norway)">Spitzbergen (Norway)</option> + <option value="Sri Lanka">Sri Lanka</option> + <option value="Sudan">Sudan</option> + <option value="Suriname">Suriname</option> + <option value="Suwarrow Islands (New Zealand)">Suwarrow Islands (New Zealand)</option> + <option value="Swain’s Island, American Samoa">Swain’s Island, American Samoa</option> + <option value="United States (Domestic Mail) See DMM 60">United States (Domestic Mail) See DMM 60</option> + <option value="Swan Islands (Honduras)">Swan Islands (Honduras)</option> + <option value="Swaziland (Eswatini)">Swaziland (Eswatini)</option> + <option value="Sweden">Sweden</option> + <option value="Switzerland">Switzerland</option> + <option value="Symi (Greece)">Symi (Greece)</option> + <option value="Syrian Arab Republic (Syria)">Syrian Arab Republic (Syria)</option> + <option value="Tahaa (French Polynesia)">Tahaa (French Polynesia)</option> + <option value="Tahiti (French Polynesia)">Tahiti (French Polynesia)</option> + <option value="Taiwan">Taiwan</option> + <option value="Tajikistan">Tajikistan</option> + <option value="Tanzania">Tanzania</option> + <option value="Tasmania (Australia)">Tasmania (Australia)</option> + <option value="Tchad (Chad)">Tchad (Chad)</option> + <option value="Thailand">Thailand</option> + <option value="Thursday Island (Australia)">Thursday Island (Australia)</option> + <option value="Tibet (China)">Tibet (China)</option> + <option value="Tilos (Greece)">Tilos (Greece)</option> + <option value="Timor (Indonesia)">Timor (Indonesia)</option> + <option value="Timor-Leste, Democratic Republic of">Timor-Leste, Democratic Republic of</option> + <option value="Tinian, Northern Mariana Islands">Tinian, Northern Mariana Islands</option> + <option value="United States (Domestic Mail) See DMM 60">United States (Domestic Mail) See DMM 60</option> + <option value="Tobago (Trinidad and Tobago)">Tobago (Trinidad and Tobago)</option> + <option value="Togo">Togo</option> + <option value="Tokelau (New Zealand)">Tokelau (New Zealand)</option> + <option value="Tonga">Tonga</option> + <option value="Tongareva (New Zealand)">Tongareva (New Zealand)</option> + <option value="Tori Shima (Japan)">Tori Shima (Japan)</option> + <option value="Torres Island (Vanuatu)">Torres Island (Vanuatu)</option> + <option value="Trans-Jordan, Hashemite Kingdom (Jordan)">Trans-Jordan, Hashemite Kingdom (Jordan)</option> + <option value="Transkei (South Africa)">Transkei (South Africa)</option> + <option value="Trengganu (Malaysia)">Trengganu (Malaysia)</option> + <option value="Trinidad and Tobago">Trinidad and Tobago</option> + <option value="Tripolitania (Libya)">Tripolitania (Libya)</option> + <option value="Tristan da Cunha">Tristan da Cunha</option> + <option value="Trucial States (United Arab Emirates)">Trucial States (United Arab Emirates)</option> + <option value="Tuamotou (French Polynesia)">Tuamotou (French Polynesia)</option> + <option value="Tubuai (French Polynesia)">Tubuai (French Polynesia)</option> + <option value="Tunisia">Tunisia</option> + <option value="Turkey">Turkey</option> + <option value="Turkmenistan">Turkmenistan</option> + <option value="Turks and Caicos Islands">Turks and Caicos Islands</option> + <option value="Tutuila Island, American Samoa">Tutuila Island, American Samoa</option> + <option value="United States (Domestic Mail) See DMM 60">United States (Domestic Mail) See DMM 60</option> + <option value="Tuvalu">Tuvalu</option> + <option value="Uganda">Uganda</option> + <option value="Ukraine">Ukraine</option> + <option value="Umm al Quaiwain (United Arab Emirates)">Umm al Quaiwain (United Arab Emirates)</option> + <option value="Umm Said (Qatar)">Umm Said (Qatar)</option> + <option value="United Arab Emirates">United Arab Emirates</option> + <option value="United Kingdom of Great Britain and Northern Ireland">United Kingdom of Great Britain and Northern Ireland</option> + <option value="United Nations, New York, United State">United Nations, New York, United State</option> + <option value="(Domestic Mail) See DMM 60">(Domestic Mail) See DMM 60</option> + <option value="Upolu Island (Samoa)">Upolu Island (Samoa)</option> + <option value="Uruguay">Uruguay</option> + <option value="Uzbekistan">Uzbekistan</option> + <option value="Vanuatu">Vanuatu</option> + <option value="Vatican City">Vatican City</option> + <option value="Venezuela">Venezuela</option> + <option value="Victoria (Australia)">Victoria (Australia)</option> + <option value="Vietnam">Vietnam</option> + <option value="Virgin Islands (British)">Virgin Islands (British)</option> + <option value="Virgin Islands (US), United State">Virgin Islands (US), United State</option> + <option value="(Domestic Mail) See DMM 60">(Domestic Mail) See DMM 60</option> + <option value="Wales (United Kingdom)">Wales (United Kingdom)</option> + <option value="Wallis and Futuna Islands">Wallis and Futuna Islands</option> + <option value="Wellesley, Province (Malaysia)">Wellesley, Province (Malaysia)</option> + <option value="West New Guinea (Indonesia)">West New Guinea (Indonesia)</option> + <option value="Western Australia (Australia)">Western Australia (Australia)</option> + <option value="Yap, Micronesia, United State">Yap, Micronesia, United State</option> + <option value="(Domestic Mail) See DMM 60">(Domestic Mail) See DMM 60</option> + <option value="Yemen">Yemen</option> + <option value="Yukon Territory (Canada)">Yukon Territory (Canada)</option> + <option value="Zafarani Islands (Spain)">Zafarani Islands (Spain)</option> + <option value="Zambia">Zambia</option> + <option value="Zanzibar (Tanzania)">Zanzibar (Tanzania)</option> + <option value="Zimbabwe">Zimbabwe</option> + + </select><br> + Mail type: + <select name="MailType"> + <option value="ALL">All</option> + <option value="PACKAGE">Package</option> + <option value="POSTCARDS">Postcards</option> + <option value="ENVELOPE">Envelope</option> + <option value="LETTER">Letter</option> + <option value="LARGEENVELOPE">Large Envelope</option> + <option value="FLATRATE">Flat rate</option> + </select><br> + Commercial: + <select name="CommercialFlag"> + <option value="Y">Yes</option> + <option value="N">No</option> + </select><br> + Commercial Plus: + <select name="CommercialPlusFlag"> + <option value="Y">Yes</option> + <option value="N">No</option> + </select><br> + Size: + <select name="Size2"> + <option value="REGULAR">Regular</option> + <option value="LARGE">Large</option> + </select><br> + Container: + <select name="Container2"> + <option value="VARIABLE">VARIABLE</option> + <option value="FLAT RATE ENVELOPE">FLAT RATE ENVELOPE</option> + <option value="PADDED FLAT RATE ENVELOPE">PADDED FLAT RATE ENVELOPE</option> + <option value="LEGAL FLAT RATE ENVELOPE">LEGAL FLAT RATE ENVELOPE</option> + <option value="FIRST CLASS">SM FLAT RATE ENVELOPE</option> + <option value="WINDOW FLAT RATE ENVELOPE">WINDOW FLAT RATE ENVELOPE</option> + <option value="GIFT CARD FLAT RATE ENVELOPE">GIFT CARD FLAT RATE ENVELOPE</option> + <option value="SM FLAT RATE BOX">SM FLAT RATE BOX</option> + <option value="MD FLAT RATE BOX">MD FLAT RATE BOX</option> + <option value="LG FLAT RATE BOX">LG FLAT RATE BOX</option> + <option value="REGIONALRATEBOXA">REGIONALRATEBOXA</option> + <option value="REGIONALRATEBOXB">REGIONALRATEBOXB</option> + <option value="CUBIC PARCELS">CUBIC PARCELS</option> + <option value="CUBIC SOFT PACK">CUBIC SOFT PACK</option> + </select><br> + + </form> + <div id="button_intl" class="button"> + Calculate postage + </div> + + + + <br> + <div id="errors"> + + </div><br> + <br> + <div id="mainrate"> + </div> + <div id="results"> + </div> +</body> diff --git a/data/extensions/gnuzilla-ext-workarounds@gnu.org/html/domestic.js~ b/data/extensions/gnuzilla-ext-workarounds@gnu.org/html/domestic.js~ new file mode 100644 index 0000000..693a831 --- /dev/null +++ b/data/extensions/gnuzilla-ext-workarounds@gnu.org/html/domestic.js~ @@ -0,0 +1,375 @@ + +/* + Copyright (C) 2019 Nathan Nichols + + This program is free software: you can redistribute it and/or modify + it under the terms of the GNU General Public License as published by + the Free Software Foundation, either version 3 of the License, or + (at your option) any later version. + + This program is distributed in the hope that it will be useful, + but WITHOUT ANY WARRANTY; without even the implied warranty of + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + GNU General Public License for more details. + + You should have received a copy of the GNU General Public License + along with this program. If not, see <http://www.gnu.org/licenses/>. +*/ + + +console.log("main.js"); + + +function is_in(a, arr){ + for(var i = 0; i < arr.length; i++){ + if(a == arr[i]){ + return true; + } + } + + return false; + +} +function disable(name){ + off = document.getElementsByName(name); + for(var i = 0; i < off.length; i++){ + off[i].style = "display:none;" + } +} +function enable(name){ + on = document.getElementsByName(name); + for(var i = 0; i < on.length; i++){ + on[i].style = "" + } +} + + + +function tag(name){ + return "<"+name+">"; +} +function etag(name){ + return "</"+name+">"; + +} +function surround(name,content){ + return tag(name) + content + etag(name); +} +function visible(name){ + if(document.getElementsByName(name)[0].style.display == "none"){ + return false; + }else{ + return true; + } +} + +function gen_package(data){ + var res = '<Package ID="0">'; + res = res + surround("Service", data["Service"]); + + if(visible("FirstClassMailType")){ + res=res+surround("FirstClassMailType", data["FirstClassMailType"]); + } + res = res + surround("ZipOrigination", data["ZipOrigination"]); + res = res + surround("ZipDestination", data["ZipDestination"]); + res = res + surround("Pounds", data["Pounds"]); + res = res + surround("Ounces", "0"); + + res = res + surround("Container", data["Container"]); + res = res + surround("Machinable", data["Machinable"]); + + res = res + etag("Package"); + + return res; +} + +function build_xml_domestic(data){ + var res = '<RateV4Request USERID="' +data["USERID"] +'">'; + res = res + "<Revision>2</Revision>"; + res = res + gen_package(data); + res = res + etag("RateV4Request"); + return res; +} + +function check_domestic(req){ + console.log("Form changed."); + + serv = req["Service"]; + // "Machinable" required for: + mach=["FIRST CLASS","LETTER","FLAT","RETAIL GROUND","ALL","ONLINE"]; + if(is_in(serv, mach) == true){ + enable("Machinable"); + }else{ + disable("Machinable") + } + + if(serv == "Retail Ground"){ + enable("GroundOnly"); + }else{ + disable("GroundOnly"); + } + + fcmt=["FIRST CLASS","FIRST CLASS COMMERCIAL","FIRST CLASS HFP COMMERCIAL"]; + if(is_in(serv, fcmt)){ + enable("FirstClassMailType"); + }else{ + disable("FirstClassMailType"); + } + + if(resp["ContentType"] == "LIVES"){ + enable("ContentDescription"); + }else{ + disable("ContentDescription"); + } +}; +function check_intl(req){ + console.log("Form changed."); + +}; + + +function byname(name){ + return document.getElementsByName(name)[0].value; +} + +// Return an array of the selected opion values +function select_values(name) { + var opts = document.getElementsByName(name)[0].options + var res = []; + for(var i = 0; i < opts.length; i++){ + if(opts[i].selected){ + res.push(opts[i].value); + } + } + return res; +} + +// reads the form and returns a dictionary +function read_domestic(){ + resp = {}; + resp["USERID"] = byname("USERID"); + resp["Service"] = byname("Service"); + resp["FirstClassMailType"] = byname("FirstClassMailType"); + resp["Machinable"] = byname("Machinable"); + resp["ZipOrigination"] = byname("ZipOrigination"); + resp["ZipDestination"] = byname("ZipDestination"); + resp["Pounds"] = byname("Pounds"); + resp["Container"] = byname("Container"); + //resp["Size"] = byname("Size"); + resp["Width"] = byname("Width"); + resp["Length"] = byname("Length"); + resp["Height"] = byname("Height"); + resp["Girth"] = byname("Girth"); + resp["Value"] = byname("Value"); + resp["AmountToCollect"] = byname("AmountToCollect"); + resp["SpecialServices"] = select_values("SpecialService"); + resp["ContentType"] = byname("ContentType"); + + if(resp["ContentType"] == "DEFAULT"){ + resp["ContentType"] = ""; + } + return resp; +} + + +// reads the form and returns a dictionary +function read_intl(){ + resp = {}; + resp["USERID"] = byname("USERID2"); + resp["Machinable"] = byname("Machinable2"); + resp["MailType"] = byname("MailType"); + //resp["POBoxFlag"] = byname("POBoxFlag"); + //resp["GiftFlag"] = byname("GiftFlag"); + resp["ValueOfContents"] = byname("ValueOfContents"); + resp["Country"] = byname("Country"); + resp["Pounds"] = byname("Pounds2"); + resp["GiftFlag"] = byname("GiftFlag"); + resp["POBoxFlag"] = byname("POBoxFlag"); + resp["OriginZip"] = byname("OriginZip"); + resp["Width"] = byname("Width2"); + resp["Length"] = byname("Length2"); + resp["Height"] = byname("Height2"); + resp["Girth"] = byname("Girth2"); + resp["Container"] = byname("Container2"); + resp["CommercialFlag"] = byname("CommercialFlag"); + resp["CommercialPlusFlag"] = byname("CommercialPlusFlag"); + resp["Size"] = byname("Size2"); + + + return resp; +} + +function decode_html(input){ + var e = document.createElement('div'); + e.innerHTML = input; + return e.childNodes.length === 0 ? "" : e.childNodes[0].nodeValue; +} + + +function make_row(name, avail, price){ + res = "<tr>"; + res = res+"<td>"+name+"</td>"; + res = res+"<td>"+avail+"</td>"; + res = res+"<td>"+price+"</td>"; + res = res+"</tr>\n"; + return res; + +} + +function parse_response(resp){ + console.log(resp.documentElement.outerHTML); + xml_doc = $.parseXML(resp.documentElement.outerHTML); + $xml = $(xml_doc); + errs = $xml.find("Error"); + console.log(errs); + + var res = ""; + + if(errs.length > 0){ + for(var i = 0; i < errs.length; i++){ + res = res+i.toString()+": "+$(errs[i]).find("Description")[0].innerHTML; + res = res +"<br>"; + } + $("#errors").html(res) + $("#mainrate").html(""); + $("#results").html(""); + + return ""; + } + + $pack = $($xml.find("Package")[0]); + + // Get Parse the main result + mailserv = decode_html($pack.find("MailService")[0].innerHTML); + rate = $pack.find("Rate")[0].innerHTML; + + var res = ""; + res = "<b>Mail Service:</b>"+mailserv+"<br>"; + res = res+"<b>Rate:</b>"+rate+"<br>\n" + + // Generate a table of the services available + servs = $pack.find("SpecialService"); + table = make_row("<b> Service name </b>", "<b>Available</b>", "<b>Price</b>"); + for(var i = 0; i < servs.length; i++){ + serv = $(servs[i]); + name = decode_html(serv.find("ServiceName")[0].innerHTML); + avail = serv.find("Available")[0].innerHTML; + price = serv.find("Price")[0].innerHTML; + table = table + make_row(name,avail,price); + } + + table = "<tbody>"+table+"</tbody>"; + $("#mainrate").html(res); + $("#results").html(table); + return table; +} + + +function make_api_call(url){ + $.ajax({ + url: url, + cache: false, + type: 'post', + }).done(function(d){ + console.log("Success"); + var res = parse_response(d); + //$("#results").html(res); + }).always(function(){ + + }).fail(function(d){ + console.log("Failed"); + console.log(d); + }); +} + +function gen_package_intl(data){ + var res = ""; + res = res + '<Package ID="0">'; + res = res + surround("Pounds",data["Pounds"]) + res = res + surround("Ounces","0"); + res = res + surround("Machinable",data["Machinable"]); + res = res + surround("MailType",data["MailType"]); + /* + res = res + "<GXG>" + res = res + surround("POBoxFlag",data["POBoxFlag"]); + res = res + surround("GiftFlag",data["GiftFlag"]); + res = res + "</GXG>" + */ + res = res + surround("ValueOfContents", data["ValueOfContents"]); + res = res + surround("Country",data["Country"]); + //res = res + surround("Size",data["Size"]); + //res = res + surround("Container",data["Container"]); + //res = res + surround("Width",data["Width"]); + //res = res + surround("Length",data["Length"]); + //res = res + surround("Height",data["Height"]); + //res = res + surround("Girth",data["Girth"]); + res = res + surround("OriginZip",data["OriginZip"]); + + res = res + '</Package>'; + + return res; +} + + +function build_xml_intl(data){ + res = ""; + res = res + '<IntlRateV2Request USERID="'+data["USERID"]+'">'; + res = res + gen_package_intl(data); + + res = res + "</IntlRateV2Request>"; + console.log(res); + return res; +}; + + + +window.addEventListener('load', (event) => { + + $("#button_domestic").bind("click",function(){ + console.log("Making request"); + r = read_domestic(); + check_domestic(r); + url = "http://production.shippingapis.com/ShippingAPI.dll?API=RateV4&XML="; + url = url + build_xml_domestic(r); + console.log(url); + make_api_call(url); + }); + + console.log("Window loaded.") + disable("Machinable"); + disable("FirstClassMailType"); + disable("ContentDescription"); + disable("GroundOnly"); + + document.getElementById("button_intl").style = "display:none;"; + document.forms[1].style = "display:none;"; + + document.forms[0].addEventListener("change", function(){ + r = read_domestic(); + check_domestic(r); + url = "http://production.shippingapis.com/ShippingAPI.dll?API=RateV4&XML="; + url = url + build_xml_domestic(r); + console.log(url); + }); + + $("#button_intl").bind("click",function(){ + console.log("Making request"); + r = read_intl(); + check_intl(r); + url = "http://production.shippingapis.com/ShippingAPI.dll?API=IntlRateV2&XML="; + url = url + build_xml_intl(r); + console.log(url); + make_api_call(url); + }); + + document.forms[1].addEventListener("change", function(){ + r = read_intl(); + url = "http://production.shippingapis.com/ShippingAPI.dll?API=IntlRateV2&XML="; + url = url + build_xml_intl(r); + console.log(url); + }); + +}); + + + diff --git a/data/extensions/gnuzilla-ext-workarounds@gnu.org/html/jquery-3.4.1.min.js b/data/extensions/gnuzilla-ext-workarounds@gnu.org/html/jquery-3.4.1.min.js new file mode 100644 index 0000000..a1c07fd --- /dev/null +++ b/data/extensions/gnuzilla-ext-workarounds@gnu.org/html/jquery-3.4.1.min.js @@ -0,0 +1,2 @@ +/*! jQuery v3.4.1 | (c) JS Foundation and other contributors | jquery.org/license */ +!function(e,t){"use strict";"object"==typeof module&&"object"==typeof module.exports?module.exports=e.document?t(e,!0):function(e){if(!e.document)throw new Error("jQuery requires a window with a document");return t(e)}:t(e)}("undefined"!=typeof window?window:this,function(C,e){"use strict";var t=[],E=C.document,r=Object.getPrototypeOf,s=t.slice,g=t.concat,u=t.push,i=t.indexOf,n={},o=n.toString,v=n.hasOwnProperty,a=v.toString,l=a.call(Object),y={},m=function(e){return"function"==typeof e&&"number"!=typeof e.nodeType},x=function(e){return null!=e&&e===e.window},c={type:!0,src:!0,nonce:!0,noModule:!0};function b(e,t,n){var r,i,o=(n=n||E).createElement("script");if(o.text=e,t)for(r in c)(i=t[r]||t.getAttribute&&t.getAttribute(r))&&o.setAttribute(r,i);n.head.appendChild(o).parentNode.removeChild(o)}function w(e){return null==e?e+"":"object"==typeof e||"function"==typeof e?n[o.call(e)]||"object":typeof e}var f="3.4.1",k=function(e,t){return new k.fn.init(e,t)},p=/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g;function d(e){var t=!!e&&"length"in e&&e.length,n=w(e);return!m(e)&&!x(e)&&("array"===n||0===t||"number"==typeof t&&0<t&&t-1 in e)}k.fn=k.prototype={jquery:f,constructor:k,length:0,toArray:function(){return s.call(this)},get:function(e){return null==e?s.call(this):e<0?this[e+this.length]:this[e]},pushStack:function(e){var t=k.merge(this.constructor(),e);return t.prevObject=this,t},each:function(e){return k.each(this,e)},map:function(n){return this.pushStack(k.map(this,function(e,t){return n.call(e,t,e)}))},slice:function(){return this.pushStack(s.apply(this,arguments))},first:function(){return this.eq(0)},last:function(){return this.eq(-1)},eq:function(e){var t=this.length,n=+e+(e<0?t:0);return this.pushStack(0<=n&&n<t?[this[n]]:[])},end:function(){return this.prevObject||this.constructor()},push:u,sort:t.sort,splice:t.splice},k.extend=k.fn.extend=function(){var e,t,n,r,i,o,a=arguments[0]||{},s=1,u=arguments.length,l=!1;for("boolean"==typeof a&&(l=a,a=arguments[s]||{},s++),"object"==typeof a||m(a)||(a={}),s===u&&(a=this,s--);s<u;s++)if(null!=(e=arguments[s]))for(t in e)r=e[t],"__proto__"!==t&&a!==r&&(l&&r&&(k.isPlainObject(r)||(i=Array.isArray(r)))?(n=a[t],o=i&&!Array.isArray(n)?[]:i||k.isPlainObject(n)?n:{},i=!1,a[t]=k.extend(l,o,r)):void 0!==r&&(a[t]=r));return a},k.extend({expando:"jQuery"+(f+Math.random()).replace(/\D/g,""),isReady:!0,error:function(e){throw new Error(e)},noop:function(){},isPlainObject:function(e){var t,n;return!(!e||"[object Object]"!==o.call(e))&&(!(t=r(e))||"function"==typeof(n=v.call(t,"constructor")&&t.constructor)&&a.call(n)===l)},isEmptyObject:function(e){var t;for(t in e)return!1;return!0},globalEval:function(e,t){b(e,{nonce:t&&t.nonce})},each:function(e,t){var n,r=0;if(d(e)){for(n=e.length;r<n;r++)if(!1===t.call(e[r],r,e[r]))break}else for(r in e)if(!1===t.call(e[r],r,e[r]))break;return e},trim:function(e){return null==e?"":(e+"").replace(p,"")},makeArray:function(e,t){var n=t||[];return null!=e&&(d(Object(e))?k.merge(n,"string"==typeof e?[e]:e):u.call(n,e)),n},inArray:function(e,t,n){return null==t?-1:i.call(t,e,n)},merge:function(e,t){for(var n=+t.length,r=0,i=e.length;r<n;r++)e[i++]=t[r];return e.length=i,e},grep:function(e,t,n){for(var r=[],i=0,o=e.length,a=!n;i<o;i++)!t(e[i],i)!==a&&r.push(e[i]);return r},map:function(e,t,n){var r,i,o=0,a=[];if(d(e))for(r=e.length;o<r;o++)null!=(i=t(e[o],o,n))&&a.push(i);else for(o in e)null!=(i=t(e[o],o,n))&&a.push(i);return g.apply([],a)},guid:1,support:y}),"function"==typeof Symbol&&(k.fn[Symbol.iterator]=t[Symbol.iterator]),k.each("Boolean Number String Function Array Date RegExp Object Error Symbol".split(" "),function(e,t){n["[object "+t+"]"]=t.toLowerCase()});var h=function(n){var e,d,b,o,i,h,f,g,w,u,l,T,C,a,E,v,s,c,y,k="sizzle"+1*new Date,m=n.document,S=0,r=0,p=ue(),x=ue(),N=ue(),A=ue(),D=function(e,t){return e===t&&(l=!0),0},j={}.hasOwnProperty,t=[],q=t.pop,L=t.push,H=t.push,O=t.slice,P=function(e,t){for(var n=0,r=e.length;n<r;n++)if(e[n]===t)return n;return-1},R="checked|selected|async|autofocus|autoplay|controls|defer|disabled|hidden|ismap|loop|multiple|open|readonly|required|scoped",M="[\\x20\\t\\r\\n\\f]",I="(?:\\\\.|[\\w-]|[^\0-\\xa0])+",W="\\["+M+"*("+I+")(?:"+M+"*([*^$|!~]?=)"+M+"*(?:'((?:\\\\.|[^\\\\'])*)'|\"((?:\\\\.|[^\\\\\"])*)\"|("+I+"))|)"+M+"*\\]",$=":("+I+")(?:\\((('((?:\\\\.|[^\\\\'])*)'|\"((?:\\\\.|[^\\\\\"])*)\")|((?:\\\\.|[^\\\\()[\\]]|"+W+")*)|.*)\\)|)",F=new RegExp(M+"+","g"),B=new RegExp("^"+M+"+|((?:^|[^\\\\])(?:\\\\.)*)"+M+"+$","g"),_=new RegExp("^"+M+"*,"+M+"*"),z=new RegExp("^"+M+"*([>+~]|"+M+")"+M+"*"),U=new RegExp(M+"|>"),X=new RegExp($),V=new RegExp("^"+I+"$"),G={ID:new RegExp("^#("+I+")"),CLASS:new RegExp("^\\.("+I+")"),TAG:new RegExp("^("+I+"|[*])"),ATTR:new RegExp("^"+W),PSEUDO:new RegExp("^"+$),CHILD:new RegExp("^:(only|first|last|nth|nth-last)-(child|of-type)(?:\\("+M+"*(even|odd|(([+-]|)(\\d*)n|)"+M+"*(?:([+-]|)"+M+"*(\\d+)|))"+M+"*\\)|)","i"),bool:new RegExp("^(?:"+R+")$","i"),needsContext:new RegExp("^"+M+"*[>+~]|:(even|odd|eq|gt|lt|nth|first|last)(?:\\("+M+"*((?:-\\d)?\\d*)"+M+"*\\)|)(?=[^-]|$)","i")},Y=/HTML$/i,Q=/^(?:input|select|textarea|button)$/i,J=/^h\d$/i,K=/^[^{]+\{\s*\[native \w/,Z=/^(?:#([\w-]+)|(\w+)|\.([\w-]+))$/,ee=/[+~]/,te=new RegExp("\\\\([\\da-f]{1,6}"+M+"?|("+M+")|.)","ig"),ne=function(e,t,n){var r="0x"+t-65536;return r!=r||n?t:r<0?String.fromCharCode(r+65536):String.fromCharCode(r>>10|55296,1023&r|56320)},re=/([\0-\x1f\x7f]|^-?\d)|^-$|[^\0-\x1f\x7f-\uFFFF\w-]/g,ie=function(e,t){return t?"\0"===e?"\ufffd":e.slice(0,-1)+"\\"+e.charCodeAt(e.length-1).toString(16)+" ":"\\"+e},oe=function(){T()},ae=be(function(e){return!0===e.disabled&&"fieldset"===e.nodeName.toLowerCase()},{dir:"parentNode",next:"legend"});try{H.apply(t=O.call(m.childNodes),m.childNodes),t[m.childNodes.length].nodeType}catch(e){H={apply:t.length?function(e,t){L.apply(e,O.call(t))}:function(e,t){var n=e.length,r=0;while(e[n++]=t[r++]);e.length=n-1}}}function se(t,e,n,r){var i,o,a,s,u,l,c,f=e&&e.ownerDocument,p=e?e.nodeType:9;if(n=n||[],"string"!=typeof t||!t||1!==p&&9!==p&&11!==p)return n;if(!r&&((e?e.ownerDocument||e:m)!==C&&T(e),e=e||C,E)){if(11!==p&&(u=Z.exec(t)))if(i=u[1]){if(9===p){if(!(a=e.getElementById(i)))return n;if(a.id===i)return n.push(a),n}else if(f&&(a=f.getElementById(i))&&y(e,a)&&a.id===i)return n.push(a),n}else{if(u[2])return H.apply(n,e.getElementsByTagName(t)),n;if((i=u[3])&&d.getElementsByClassName&&e.getElementsByClassName)return H.apply(n,e.getElementsByClassName(i)),n}if(d.qsa&&!A[t+" "]&&(!v||!v.test(t))&&(1!==p||"object"!==e.nodeName.toLowerCase())){if(c=t,f=e,1===p&&U.test(t)){(s=e.getAttribute("id"))?s=s.replace(re,ie):e.setAttribute("id",s=k),o=(l=h(t)).length;while(o--)l[o]="#"+s+" "+xe(l[o]);c=l.join(","),f=ee.test(t)&&ye(e.parentNode)||e}try{return H.apply(n,f.querySelectorAll(c)),n}catch(e){A(t,!0)}finally{s===k&&e.removeAttribute("id")}}}return g(t.replace(B,"$1"),e,n,r)}function ue(){var r=[];return function e(t,n){return r.push(t+" ")>b.cacheLength&&delete e[r.shift()],e[t+" "]=n}}function le(e){return e[k]=!0,e}function ce(e){var t=C.createElement("fieldset");try{return!!e(t)}catch(e){return!1}finally{t.parentNode&&t.parentNode.removeChild(t),t=null}}function fe(e,t){var n=e.split("|"),r=n.length;while(r--)b.attrHandle[n[r]]=t}function pe(e,t){var n=t&&e,r=n&&1===e.nodeType&&1===t.nodeType&&e.sourceIndex-t.sourceIndex;if(r)return r;if(n)while(n=n.nextSibling)if(n===t)return-1;return e?1:-1}function de(t){return function(e){return"input"===e.nodeName.toLowerCase()&&e.type===t}}function he(n){return function(e){var t=e.nodeName.toLowerCase();return("input"===t||"button"===t)&&e.type===n}}function ge(t){return function(e){return"form"in e?e.parentNode&&!1===e.disabled?"label"in e?"label"in e.parentNode?e.parentNode.disabled===t:e.disabled===t:e.isDisabled===t||e.isDisabled!==!t&&ae(e)===t:e.disabled===t:"label"in e&&e.disabled===t}}function ve(a){return le(function(o){return o=+o,le(function(e,t){var n,r=a([],e.length,o),i=r.length;while(i--)e[n=r[i]]&&(e[n]=!(t[n]=e[n]))})})}function ye(e){return e&&"undefined"!=typeof e.getElementsByTagName&&e}for(e in d=se.support={},i=se.isXML=function(e){var t=e.namespaceURI,n=(e.ownerDocument||e).documentElement;return!Y.test(t||n&&n.nodeName||"HTML")},T=se.setDocument=function(e){var t,n,r=e?e.ownerDocument||e:m;return r!==C&&9===r.nodeType&&r.documentElement&&(a=(C=r).documentElement,E=!i(C),m!==C&&(n=C.defaultView)&&n.top!==n&&(n.addEventListener?n.addEventListener("unload",oe,!1):n.attachEvent&&n.attachEvent("onunload",oe)),d.attributes=ce(function(e){return e.className="i",!e.getAttribute("className")}),d.getElementsByTagName=ce(function(e){return e.appendChild(C.createComment("")),!e.getElementsByTagName("*").length}),d.getElementsByClassName=K.test(C.getElementsByClassName),d.getById=ce(function(e){return a.appendChild(e).id=k,!C.getElementsByName||!C.getElementsByName(k).length}),d.getById?(b.filter.ID=function(e){var t=e.replace(te,ne);return function(e){return e.getAttribute("id")===t}},b.find.ID=function(e,t){if("undefined"!=typeof t.getElementById&&E){var n=t.getElementById(e);return n?[n]:[]}}):(b.filter.ID=function(e){var n=e.replace(te,ne);return function(e){var t="undefined"!=typeof e.getAttributeNode&&e.getAttributeNode("id");return t&&t.value===n}},b.find.ID=function(e,t){if("undefined"!=typeof t.getElementById&&E){var n,r,i,o=t.getElementById(e);if(o){if((n=o.getAttributeNode("id"))&&n.value===e)return[o];i=t.getElementsByName(e),r=0;while(o=i[r++])if((n=o.getAttributeNode("id"))&&n.value===e)return[o]}return[]}}),b.find.TAG=d.getElementsByTagName?function(e,t){return"undefined"!=typeof t.getElementsByTagName?t.getElementsByTagName(e):d.qsa?t.querySelectorAll(e):void 0}:function(e,t){var n,r=[],i=0,o=t.getElementsByTagName(e);if("*"===e){while(n=o[i++])1===n.nodeType&&r.push(n);return r}return o},b.find.CLASS=d.getElementsByClassName&&function(e,t){if("undefined"!=typeof t.getElementsByClassName&&E)return t.getElementsByClassName(e)},s=[],v=[],(d.qsa=K.test(C.querySelectorAll))&&(ce(function(e){a.appendChild(e).innerHTML="<a id='"+k+"'></a><select id='"+k+"-\r\\' msallowcapture=''><option selected=''></option></select>",e.querySelectorAll("[msallowcapture^='']").length&&v.push("[*^$]="+M+"*(?:''|\"\")"),e.querySelectorAll("[selected]").length||v.push("\\["+M+"*(?:value|"+R+")"),e.querySelectorAll("[id~="+k+"-]").length||v.push("~="),e.querySelectorAll(":checked").length||v.push(":checked"),e.querySelectorAll("a#"+k+"+*").length||v.push(".#.+[+~]")}),ce(function(e){e.innerHTML="<a href='' disabled='disabled'></a><select disabled='disabled'><option/></select>";var t=C.createElement("input");t.setAttribute("type","hidden"),e.appendChild(t).setAttribute("name","D"),e.querySelectorAll("[name=d]").length&&v.push("name"+M+"*[*^$|!~]?="),2!==e.querySelectorAll(":enabled").length&&v.push(":enabled",":disabled"),a.appendChild(e).disabled=!0,2!==e.querySelectorAll(":disabled").length&&v.push(":enabled",":disabled"),e.querySelectorAll("*,:x"),v.push(",.*:")})),(d.matchesSelector=K.test(c=a.matches||a.webkitMatchesSelector||a.mozMatchesSelector||a.oMatchesSelector||a.msMatchesSelector))&&ce(function(e){d.disconnectedMatch=c.call(e,"*"),c.call(e,"[s!='']:x"),s.push("!=",$)}),v=v.length&&new RegExp(v.join("|")),s=s.length&&new RegExp(s.join("|")),t=K.test(a.compareDocumentPosition),y=t||K.test(a.contains)?function(e,t){var n=9===e.nodeType?e.documentElement:e,r=t&&t.parentNode;return e===r||!(!r||1!==r.nodeType||!(n.contains?n.contains(r):e.compareDocumentPosition&&16&e.compareDocumentPosition(r)))}:function(e,t){if(t)while(t=t.parentNode)if(t===e)return!0;return!1},D=t?function(e,t){if(e===t)return l=!0,0;var n=!e.compareDocumentPosition-!t.compareDocumentPosition;return n||(1&(n=(e.ownerDocument||e)===(t.ownerDocument||t)?e.compareDocumentPosition(t):1)||!d.sortDetached&&t.compareDocumentPosition(e)===n?e===C||e.ownerDocument===m&&y(m,e)?-1:t===C||t.ownerDocument===m&&y(m,t)?1:u?P(u,e)-P(u,t):0:4&n?-1:1)}:function(e,t){if(e===t)return l=!0,0;var n,r=0,i=e.parentNode,o=t.parentNode,a=[e],s=[t];if(!i||!o)return e===C?-1:t===C?1:i?-1:o?1:u?P(u,e)-P(u,t):0;if(i===o)return pe(e,t);n=e;while(n=n.parentNode)a.unshift(n);n=t;while(n=n.parentNode)s.unshift(n);while(a[r]===s[r])r++;return r?pe(a[r],s[r]):a[r]===m?-1:s[r]===m?1:0}),C},se.matches=function(e,t){return se(e,null,null,t)},se.matchesSelector=function(e,t){if((e.ownerDocument||e)!==C&&T(e),d.matchesSelector&&E&&!A[t+" "]&&(!s||!s.test(t))&&(!v||!v.test(t)))try{var n=c.call(e,t);if(n||d.disconnectedMatch||e.document&&11!==e.document.nodeType)return n}catch(e){A(t,!0)}return 0<se(t,C,null,[e]).length},se.contains=function(e,t){return(e.ownerDocument||e)!==C&&T(e),y(e,t)},se.attr=function(e,t){(e.ownerDocument||e)!==C&&T(e);var n=b.attrHandle[t.toLowerCase()],r=n&&j.call(b.attrHandle,t.toLowerCase())?n(e,t,!E):void 0;return void 0!==r?r:d.attributes||!E?e.getAttribute(t):(r=e.getAttributeNode(t))&&r.specified?r.value:null},se.escape=function(e){return(e+"").replace(re,ie)},se.error=function(e){throw new Error("Syntax error, unrecognized expression: "+e)},se.uniqueSort=function(e){var t,n=[],r=0,i=0;if(l=!d.detectDuplicates,u=!d.sortStable&&e.slice(0),e.sort(D),l){while(t=e[i++])t===e[i]&&(r=n.push(i));while(r--)e.splice(n[r],1)}return u=null,e},o=se.getText=function(e){var t,n="",r=0,i=e.nodeType;if(i){if(1===i||9===i||11===i){if("string"==typeof e.textContent)return e.textContent;for(e=e.firstChild;e;e=e.nextSibling)n+=o(e)}else if(3===i||4===i)return e.nodeValue}else while(t=e[r++])n+=o(t);return n},(b=se.selectors={cacheLength:50,createPseudo:le,match:G,attrHandle:{},find:{},relative:{">":{dir:"parentNode",first:!0}," ":{dir:"parentNode"},"+":{dir:"previousSibling",first:!0},"~":{dir:"previousSibling"}},preFilter:{ATTR:function(e){return e[1]=e[1].replace(te,ne),e[3]=(e[3]||e[4]||e[5]||"").replace(te,ne),"~="===e[2]&&(e[3]=" "+e[3]+" "),e.slice(0,4)},CHILD:function(e){return e[1]=e[1].toLowerCase(),"nth"===e[1].slice(0,3)?(e[3]||se.error(e[0]),e[4]=+(e[4]?e[5]+(e[6]||1):2*("even"===e[3]||"odd"===e[3])),e[5]=+(e[7]+e[8]||"odd"===e[3])):e[3]&&se.error(e[0]),e},PSEUDO:function(e){var t,n=!e[6]&&e[2];return G.CHILD.test(e[0])?null:(e[3]?e[2]=e[4]||e[5]||"":n&&X.test(n)&&(t=h(n,!0))&&(t=n.indexOf(")",n.length-t)-n.length)&&(e[0]=e[0].slice(0,t),e[2]=n.slice(0,t)),e.slice(0,3))}},filter:{TAG:function(e){var t=e.replace(te,ne).toLowerCase();return"*"===e?function(){return!0}:function(e){return e.nodeName&&e.nodeName.toLowerCase()===t}},CLASS:function(e){var t=p[e+" "];return t||(t=new RegExp("(^|"+M+")"+e+"("+M+"|$)"))&&p(e,function(e){return t.test("string"==typeof e.className&&e.className||"undefined"!=typeof e.getAttribute&&e.getAttribute("class")||"")})},ATTR:function(n,r,i){return function(e){var t=se.attr(e,n);return null==t?"!="===r:!r||(t+="","="===r?t===i:"!="===r?t!==i:"^="===r?i&&0===t.indexOf(i):"*="===r?i&&-1<t.indexOf(i):"$="===r?i&&t.slice(-i.length)===i:"~="===r?-1<(" "+t.replace(F," ")+" ").indexOf(i):"|="===r&&(t===i||t.slice(0,i.length+1)===i+"-"))}},CHILD:function(h,e,t,g,v){var y="nth"!==h.slice(0,3),m="last"!==h.slice(-4),x="of-type"===e;return 1===g&&0===v?function(e){return!!e.parentNode}:function(e,t,n){var r,i,o,a,s,u,l=y!==m?"nextSibling":"previousSibling",c=e.parentNode,f=x&&e.nodeName.toLowerCase(),p=!n&&!x,d=!1;if(c){if(y){while(l){a=e;while(a=a[l])if(x?a.nodeName.toLowerCase()===f:1===a.nodeType)return!1;u=l="only"===h&&!u&&"nextSibling"}return!0}if(u=[m?c.firstChild:c.lastChild],m&&p){d=(s=(r=(i=(o=(a=c)[k]||(a[k]={}))[a.uniqueID]||(o[a.uniqueID]={}))[h]||[])[0]===S&&r[1])&&r[2],a=s&&c.childNodes[s];while(a=++s&&a&&a[l]||(d=s=0)||u.pop())if(1===a.nodeType&&++d&&a===e){i[h]=[S,s,d];break}}else if(p&&(d=s=(r=(i=(o=(a=e)[k]||(a[k]={}))[a.uniqueID]||(o[a.uniqueID]={}))[h]||[])[0]===S&&r[1]),!1===d)while(a=++s&&a&&a[l]||(d=s=0)||u.pop())if((x?a.nodeName.toLowerCase()===f:1===a.nodeType)&&++d&&(p&&((i=(o=a[k]||(a[k]={}))[a.uniqueID]||(o[a.uniqueID]={}))[h]=[S,d]),a===e))break;return(d-=v)===g||d%g==0&&0<=d/g}}},PSEUDO:function(e,o){var t,a=b.pseudos[e]||b.setFilters[e.toLowerCase()]||se.error("unsupported pseudo: "+e);return a[k]?a(o):1<a.length?(t=[e,e,"",o],b.setFilters.hasOwnProperty(e.toLowerCase())?le(function(e,t){var n,r=a(e,o),i=r.length;while(i--)e[n=P(e,r[i])]=!(t[n]=r[i])}):function(e){return a(e,0,t)}):a}},pseudos:{not:le(function(e){var r=[],i=[],s=f(e.replace(B,"$1"));return s[k]?le(function(e,t,n,r){var i,o=s(e,null,r,[]),a=e.length;while(a--)(i=o[a])&&(e[a]=!(t[a]=i))}):function(e,t,n){return r[0]=e,s(r,null,n,i),r[0]=null,!i.pop()}}),has:le(function(t){return function(e){return 0<se(t,e).length}}),contains:le(function(t){return t=t.replace(te,ne),function(e){return-1<(e.textContent||o(e)).indexOf(t)}}),lang:le(function(n){return V.test(n||"")||se.error("unsupported lang: "+n),n=n.replace(te,ne).toLowerCase(),function(e){var t;do{if(t=E?e.lang:e.getAttribute("xml:lang")||e.getAttribute("lang"))return(t=t.toLowerCase())===n||0===t.indexOf(n+"-")}while((e=e.parentNode)&&1===e.nodeType);return!1}}),target:function(e){var t=n.location&&n.location.hash;return t&&t.slice(1)===e.id},root:function(e){return e===a},focus:function(e){return e===C.activeElement&&(!C.hasFocus||C.hasFocus())&&!!(e.type||e.href||~e.tabIndex)},enabled:ge(!1),disabled:ge(!0),checked:function(e){var t=e.nodeName.toLowerCase();return"input"===t&&!!e.checked||"option"===t&&!!e.selected},selected:function(e){return e.parentNode&&e.parentNode.selectedIndex,!0===e.selected},empty:function(e){for(e=e.firstChild;e;e=e.nextSibling)if(e.nodeType<6)return!1;return!0},parent:function(e){return!b.pseudos.empty(e)},header:function(e){return J.test(e.nodeName)},input:function(e){return Q.test(e.nodeName)},button:function(e){var t=e.nodeName.toLowerCase();return"input"===t&&"button"===e.type||"button"===t},text:function(e){var t;return"input"===e.nodeName.toLowerCase()&&"text"===e.type&&(null==(t=e.getAttribute("type"))||"text"===t.toLowerCase())},first:ve(function(){return[0]}),last:ve(function(e,t){return[t-1]}),eq:ve(function(e,t,n){return[n<0?n+t:n]}),even:ve(function(e,t){for(var n=0;n<t;n+=2)e.push(n);return e}),odd:ve(function(e,t){for(var n=1;n<t;n+=2)e.push(n);return e}),lt:ve(function(e,t,n){for(var r=n<0?n+t:t<n?t:n;0<=--r;)e.push(r);return e}),gt:ve(function(e,t,n){for(var r=n<0?n+t:n;++r<t;)e.push(r);return e})}}).pseudos.nth=b.pseudos.eq,{radio:!0,checkbox:!0,file:!0,password:!0,image:!0})b.pseudos[e]=de(e);for(e in{submit:!0,reset:!0})b.pseudos[e]=he(e);function me(){}function xe(e){for(var t=0,n=e.length,r="";t<n;t++)r+=e[t].value;return r}function be(s,e,t){var u=e.dir,l=e.next,c=l||u,f=t&&"parentNode"===c,p=r++;return e.first?function(e,t,n){while(e=e[u])if(1===e.nodeType||f)return s(e,t,n);return!1}:function(e,t,n){var r,i,o,a=[S,p];if(n){while(e=e[u])if((1===e.nodeType||f)&&s(e,t,n))return!0}else while(e=e[u])if(1===e.nodeType||f)if(i=(o=e[k]||(e[k]={}))[e.uniqueID]||(o[e.uniqueID]={}),l&&l===e.nodeName.toLowerCase())e=e[u]||e;else{if((r=i[c])&&r[0]===S&&r[1]===p)return a[2]=r[2];if((i[c]=a)[2]=s(e,t,n))return!0}return!1}}function we(i){return 1<i.length?function(e,t,n){var r=i.length;while(r--)if(!i[r](e,t,n))return!1;return!0}:i[0]}function Te(e,t,n,r,i){for(var o,a=[],s=0,u=e.length,l=null!=t;s<u;s++)(o=e[s])&&(n&&!n(o,r,i)||(a.push(o),l&&t.push(s)));return a}function Ce(d,h,g,v,y,e){return v&&!v[k]&&(v=Ce(v)),y&&!y[k]&&(y=Ce(y,e)),le(function(e,t,n,r){var i,o,a,s=[],u=[],l=t.length,c=e||function(e,t,n){for(var r=0,i=t.length;r<i;r++)se(e,t[r],n);return n}(h||"*",n.nodeType?[n]:n,[]),f=!d||!e&&h?c:Te(c,s,d,n,r),p=g?y||(e?d:l||v)?[]:t:f;if(g&&g(f,p,n,r),v){i=Te(p,u),v(i,[],n,r),o=i.length;while(o--)(a=i[o])&&(p[u[o]]=!(f[u[o]]=a))}if(e){if(y||d){if(y){i=[],o=p.length;while(o--)(a=p[o])&&i.push(f[o]=a);y(null,p=[],i,r)}o=p.length;while(o--)(a=p[o])&&-1<(i=y?P(e,a):s[o])&&(e[i]=!(t[i]=a))}}else p=Te(p===t?p.splice(l,p.length):p),y?y(null,t,p,r):H.apply(t,p)})}function Ee(e){for(var i,t,n,r=e.length,o=b.relative[e[0].type],a=o||b.relative[" "],s=o?1:0,u=be(function(e){return e===i},a,!0),l=be(function(e){return-1<P(i,e)},a,!0),c=[function(e,t,n){var r=!o&&(n||t!==w)||((i=t).nodeType?u(e,t,n):l(e,t,n));return i=null,r}];s<r;s++)if(t=b.relative[e[s].type])c=[be(we(c),t)];else{if((t=b.filter[e[s].type].apply(null,e[s].matches))[k]){for(n=++s;n<r;n++)if(b.relative[e[n].type])break;return Ce(1<s&&we(c),1<s&&xe(e.slice(0,s-1).concat({value:" "===e[s-2].type?"*":""})).replace(B,"$1"),t,s<n&&Ee(e.slice(s,n)),n<r&&Ee(e=e.slice(n)),n<r&&xe(e))}c.push(t)}return we(c)}return me.prototype=b.filters=b.pseudos,b.setFilters=new me,h=se.tokenize=function(e,t){var n,r,i,o,a,s,u,l=x[e+" "];if(l)return t?0:l.slice(0);a=e,s=[],u=b.preFilter;while(a){for(o in n&&!(r=_.exec(a))||(r&&(a=a.slice(r[0].length)||a),s.push(i=[])),n=!1,(r=z.exec(a))&&(n=r.shift(),i.push({value:n,type:r[0].replace(B," ")}),a=a.slice(n.length)),b.filter)!(r=G[o].exec(a))||u[o]&&!(r=u[o](r))||(n=r.shift(),i.push({value:n,type:o,matches:r}),a=a.slice(n.length));if(!n)break}return t?a.length:a?se.error(e):x(e,s).slice(0)},f=se.compile=function(e,t){var n,v,y,m,x,r,i=[],o=[],a=N[e+" "];if(!a){t||(t=h(e)),n=t.length;while(n--)(a=Ee(t[n]))[k]?i.push(a):o.push(a);(a=N(e,(v=o,m=0<(y=i).length,x=0<v.length,r=function(e,t,n,r,i){var o,a,s,u=0,l="0",c=e&&[],f=[],p=w,d=e||x&&b.find.TAG("*",i),h=S+=null==p?1:Math.random()||.1,g=d.length;for(i&&(w=t===C||t||i);l!==g&&null!=(o=d[l]);l++){if(x&&o){a=0,t||o.ownerDocument===C||(T(o),n=!E);while(s=v[a++])if(s(o,t||C,n)){r.push(o);break}i&&(S=h)}m&&((o=!s&&o)&&u--,e&&c.push(o))}if(u+=l,m&&l!==u){a=0;while(s=y[a++])s(c,f,t,n);if(e){if(0<u)while(l--)c[l]||f[l]||(f[l]=q.call(r));f=Te(f)}H.apply(r,f),i&&!e&&0<f.length&&1<u+y.length&&se.uniqueSort(r)}return i&&(S=h,w=p),c},m?le(r):r))).selector=e}return a},g=se.select=function(e,t,n,r){var i,o,a,s,u,l="function"==typeof e&&e,c=!r&&h(e=l.selector||e);if(n=n||[],1===c.length){if(2<(o=c[0]=c[0].slice(0)).length&&"ID"===(a=o[0]).type&&9===t.nodeType&&E&&b.relative[o[1].type]){if(!(t=(b.find.ID(a.matches[0].replace(te,ne),t)||[])[0]))return n;l&&(t=t.parentNode),e=e.slice(o.shift().value.length)}i=G.needsContext.test(e)?0:o.length;while(i--){if(a=o[i],b.relative[s=a.type])break;if((u=b.find[s])&&(r=u(a.matches[0].replace(te,ne),ee.test(o[0].type)&&ye(t.parentNode)||t))){if(o.splice(i,1),!(e=r.length&&xe(o)))return H.apply(n,r),n;break}}}return(l||f(e,c))(r,t,!E,n,!t||ee.test(e)&&ye(t.parentNode)||t),n},d.sortStable=k.split("").sort(D).join("")===k,d.detectDuplicates=!!l,T(),d.sortDetached=ce(function(e){return 1&e.compareDocumentPosition(C.createElement("fieldset"))}),ce(function(e){return e.innerHTML="<a href='#'></a>","#"===e.firstChild.getAttribute("href")})||fe("type|href|height|width",function(e,t,n){if(!n)return e.getAttribute(t,"type"===t.toLowerCase()?1:2)}),d.attributes&&ce(function(e){return e.innerHTML="<input/>",e.firstChild.setAttribute("value",""),""===e.firstChild.getAttribute("value")})||fe("value",function(e,t,n){if(!n&&"input"===e.nodeName.toLowerCase())return e.defaultValue}),ce(function(e){return null==e.getAttribute("disabled")})||fe(R,function(e,t,n){var r;if(!n)return!0===e[t]?t.toLowerCase():(r=e.getAttributeNode(t))&&r.specified?r.value:null}),se}(C);k.find=h,k.expr=h.selectors,k.expr[":"]=k.expr.pseudos,k.uniqueSort=k.unique=h.uniqueSort,k.text=h.getText,k.isXMLDoc=h.isXML,k.contains=h.contains,k.escapeSelector=h.escape;var T=function(e,t,n){var r=[],i=void 0!==n;while((e=e[t])&&9!==e.nodeType)if(1===e.nodeType){if(i&&k(e).is(n))break;r.push(e)}return r},S=function(e,t){for(var n=[];e;e=e.nextSibling)1===e.nodeType&&e!==t&&n.push(e);return n},N=k.expr.match.needsContext;function A(e,t){return e.nodeName&&e.nodeName.toLowerCase()===t.toLowerCase()}var D=/^<([a-z][^\/\0>:\x20\t\r\n\f]*)[\x20\t\r\n\f]*\/?>(?:<\/\1>|)$/i;function j(e,n,r){return m(n)?k.grep(e,function(e,t){return!!n.call(e,t,e)!==r}):n.nodeType?k.grep(e,function(e){return e===n!==r}):"string"!=typeof n?k.grep(e,function(e){return-1<i.call(n,e)!==r}):k.filter(n,e,r)}k.filter=function(e,t,n){var r=t[0];return n&&(e=":not("+e+")"),1===t.length&&1===r.nodeType?k.find.matchesSelector(r,e)?[r]:[]:k.find.matches(e,k.grep(t,function(e){return 1===e.nodeType}))},k.fn.extend({find:function(e){var t,n,r=this.length,i=this;if("string"!=typeof e)return this.pushStack(k(e).filter(function(){for(t=0;t<r;t++)if(k.contains(i[t],this))return!0}));for(n=this.pushStack([]),t=0;t<r;t++)k.find(e,i[t],n);return 1<r?k.uniqueSort(n):n},filter:function(e){return this.pushStack(j(this,e||[],!1))},not:function(e){return this.pushStack(j(this,e||[],!0))},is:function(e){return!!j(this,"string"==typeof e&&N.test(e)?k(e):e||[],!1).length}});var q,L=/^(?:\s*(<[\w\W]+>)[^>]*|#([\w-]+))$/;(k.fn.init=function(e,t,n){var r,i;if(!e)return this;if(n=n||q,"string"==typeof e){if(!(r="<"===e[0]&&">"===e[e.length-1]&&3<=e.length?[null,e,null]:L.exec(e))||!r[1]&&t)return!t||t.jquery?(t||n).find(e):this.constructor(t).find(e);if(r[1]){if(t=t instanceof k?t[0]:t,k.merge(this,k.parseHTML(r[1],t&&t.nodeType?t.ownerDocument||t:E,!0)),D.test(r[1])&&k.isPlainObject(t))for(r in t)m(this[r])?this[r](t[r]):this.attr(r,t[r]);return this}return(i=E.getElementById(r[2]))&&(this[0]=i,this.length=1),this}return e.nodeType?(this[0]=e,this.length=1,this):m(e)?void 0!==n.ready?n.ready(e):e(k):k.makeArray(e,this)}).prototype=k.fn,q=k(E);var H=/^(?:parents|prev(?:Until|All))/,O={children:!0,contents:!0,next:!0,prev:!0};function P(e,t){while((e=e[t])&&1!==e.nodeType);return e}k.fn.extend({has:function(e){var t=k(e,this),n=t.length;return this.filter(function(){for(var e=0;e<n;e++)if(k.contains(this,t[e]))return!0})},closest:function(e,t){var n,r=0,i=this.length,o=[],a="string"!=typeof e&&k(e);if(!N.test(e))for(;r<i;r++)for(n=this[r];n&&n!==t;n=n.parentNode)if(n.nodeType<11&&(a?-1<a.index(n):1===n.nodeType&&k.find.matchesSelector(n,e))){o.push(n);break}return this.pushStack(1<o.length?k.uniqueSort(o):o)},index:function(e){return e?"string"==typeof e?i.call(k(e),this[0]):i.call(this,e.jquery?e[0]:e):this[0]&&this[0].parentNode?this.first().prevAll().length:-1},add:function(e,t){return this.pushStack(k.uniqueSort(k.merge(this.get(),k(e,t))))},addBack:function(e){return this.add(null==e?this.prevObject:this.prevObject.filter(e))}}),k.each({parent:function(e){var t=e.parentNode;return t&&11!==t.nodeType?t:null},parents:function(e){return T(e,"parentNode")},parentsUntil:function(e,t,n){return T(e,"parentNode",n)},next:function(e){return P(e,"nextSibling")},prev:function(e){return P(e,"previousSibling")},nextAll:function(e){return T(e,"nextSibling")},prevAll:function(e){return T(e,"previousSibling")},nextUntil:function(e,t,n){return T(e,"nextSibling",n)},prevUntil:function(e,t,n){return T(e,"previousSibling",n)},siblings:function(e){return S((e.parentNode||{}).firstChild,e)},children:function(e){return S(e.firstChild)},contents:function(e){return"undefined"!=typeof e.contentDocument?e.contentDocument:(A(e,"template")&&(e=e.content||e),k.merge([],e.childNodes))}},function(r,i){k.fn[r]=function(e,t){var n=k.map(this,i,e);return"Until"!==r.slice(-5)&&(t=e),t&&"string"==typeof t&&(n=k.filter(t,n)),1<this.length&&(O[r]||k.uniqueSort(n),H.test(r)&&n.reverse()),this.pushStack(n)}});var R=/[^\x20\t\r\n\f]+/g;function M(e){return e}function I(e){throw e}function W(e,t,n,r){var i;try{e&&m(i=e.promise)?i.call(e).done(t).fail(n):e&&m(i=e.then)?i.call(e,t,n):t.apply(void 0,[e].slice(r))}catch(e){n.apply(void 0,[e])}}k.Callbacks=function(r){var e,n;r="string"==typeof r?(e=r,n={},k.each(e.match(R)||[],function(e,t){n[t]=!0}),n):k.extend({},r);var i,t,o,a,s=[],u=[],l=-1,c=function(){for(a=a||r.once,o=i=!0;u.length;l=-1){t=u.shift();while(++l<s.length)!1===s[l].apply(t[0],t[1])&&r.stopOnFalse&&(l=s.length,t=!1)}r.memory||(t=!1),i=!1,a&&(s=t?[]:"")},f={add:function(){return s&&(t&&!i&&(l=s.length-1,u.push(t)),function n(e){k.each(e,function(e,t){m(t)?r.unique&&f.has(t)||s.push(t):t&&t.length&&"string"!==w(t)&&n(t)})}(arguments),t&&!i&&c()),this},remove:function(){return k.each(arguments,function(e,t){var n;while(-1<(n=k.inArray(t,s,n)))s.splice(n,1),n<=l&&l--}),this},has:function(e){return e?-1<k.inArray(e,s):0<s.length},empty:function(){return s&&(s=[]),this},disable:function(){return a=u=[],s=t="",this},disabled:function(){return!s},lock:function(){return a=u=[],t||i||(s=t=""),this},locked:function(){return!!a},fireWith:function(e,t){return a||(t=[e,(t=t||[]).slice?t.slice():t],u.push(t),i||c()),this},fire:function(){return f.fireWith(this,arguments),this},fired:function(){return!!o}};return f},k.extend({Deferred:function(e){var o=[["notify","progress",k.Callbacks("memory"),k.Callbacks("memory"),2],["resolve","done",k.Callbacks("once memory"),k.Callbacks("once memory"),0,"resolved"],["reject","fail",k.Callbacks("once memory"),k.Callbacks("once memory"),1,"rejected"]],i="pending",a={state:function(){return i},always:function(){return s.done(arguments).fail(arguments),this},"catch":function(e){return a.then(null,e)},pipe:function(){var i=arguments;return k.Deferred(function(r){k.each(o,function(e,t){var n=m(i[t[4]])&&i[t[4]];s[t[1]](function(){var e=n&&n.apply(this,arguments);e&&m(e.promise)?e.promise().progress(r.notify).done(r.resolve).fail(r.reject):r[t[0]+"With"](this,n?[e]:arguments)})}),i=null}).promise()},then:function(t,n,r){var u=0;function l(i,o,a,s){return function(){var n=this,r=arguments,e=function(){var e,t;if(!(i<u)){if((e=a.apply(n,r))===o.promise())throw new TypeError("Thenable self-resolution");t=e&&("object"==typeof e||"function"==typeof e)&&e.then,m(t)?s?t.call(e,l(u,o,M,s),l(u,o,I,s)):(u++,t.call(e,l(u,o,M,s),l(u,o,I,s),l(u,o,M,o.notifyWith))):(a!==M&&(n=void 0,r=[e]),(s||o.resolveWith)(n,r))}},t=s?e:function(){try{e()}catch(e){k.Deferred.exceptionHook&&k.Deferred.exceptionHook(e,t.stackTrace),u<=i+1&&(a!==I&&(n=void 0,r=[e]),o.rejectWith(n,r))}};i?t():(k.Deferred.getStackHook&&(t.stackTrace=k.Deferred.getStackHook()),C.setTimeout(t))}}return k.Deferred(function(e){o[0][3].add(l(0,e,m(r)?r:M,e.notifyWith)),o[1][3].add(l(0,e,m(t)?t:M)),o[2][3].add(l(0,e,m(n)?n:I))}).promise()},promise:function(e){return null!=e?k.extend(e,a):a}},s={};return k.each(o,function(e,t){var n=t[2],r=t[5];a[t[1]]=n.add,r&&n.add(function(){i=r},o[3-e][2].disable,o[3-e][3].disable,o[0][2].lock,o[0][3].lock),n.add(t[3].fire),s[t[0]]=function(){return s[t[0]+"With"](this===s?void 0:this,arguments),this},s[t[0]+"With"]=n.fireWith}),a.promise(s),e&&e.call(s,s),s},when:function(e){var n=arguments.length,t=n,r=Array(t),i=s.call(arguments),o=k.Deferred(),a=function(t){return function(e){r[t]=this,i[t]=1<arguments.length?s.call(arguments):e,--n||o.resolveWith(r,i)}};if(n<=1&&(W(e,o.done(a(t)).resolve,o.reject,!n),"pending"===o.state()||m(i[t]&&i[t].then)))return o.then();while(t--)W(i[t],a(t),o.reject);return o.promise()}});var $=/^(Eval|Internal|Range|Reference|Syntax|Type|URI)Error$/;k.Deferred.exceptionHook=function(e,t){C.console&&C.console.warn&&e&&$.test(e.name)&&C.console.warn("jQuery.Deferred exception: "+e.message,e.stack,t)},k.readyException=function(e){C.setTimeout(function(){throw e})};var F=k.Deferred();function B(){E.removeEventListener("DOMContentLoaded",B),C.removeEventListener("load",B),k.ready()}k.fn.ready=function(e){return F.then(e)["catch"](function(e){k.readyException(e)}),this},k.extend({isReady:!1,readyWait:1,ready:function(e){(!0===e?--k.readyWait:k.isReady)||(k.isReady=!0)!==e&&0<--k.readyWait||F.resolveWith(E,[k])}}),k.ready.then=F.then,"complete"===E.readyState||"loading"!==E.readyState&&!E.documentElement.doScroll?C.setTimeout(k.ready):(E.addEventListener("DOMContentLoaded",B),C.addEventListener("load",B));var _=function(e,t,n,r,i,o,a){var s=0,u=e.length,l=null==n;if("object"===w(n))for(s in i=!0,n)_(e,t,s,n[s],!0,o,a);else if(void 0!==r&&(i=!0,m(r)||(a=!0),l&&(a?(t.call(e,r),t=null):(l=t,t=function(e,t,n){return l.call(k(e),n)})),t))for(;s<u;s++)t(e[s],n,a?r:r.call(e[s],s,t(e[s],n)));return i?e:l?t.call(e):u?t(e[0],n):o},z=/^-ms-/,U=/-([a-z])/g;function X(e,t){return t.toUpperCase()}function V(e){return e.replace(z,"ms-").replace(U,X)}var G=function(e){return 1===e.nodeType||9===e.nodeType||!+e.nodeType};function Y(){this.expando=k.expando+Y.uid++}Y.uid=1,Y.prototype={cache:function(e){var t=e[this.expando];return t||(t={},G(e)&&(e.nodeType?e[this.expando]=t:Object.defineProperty(e,this.expando,{value:t,configurable:!0}))),t},set:function(e,t,n){var r,i=this.cache(e);if("string"==typeof t)i[V(t)]=n;else for(r in t)i[V(r)]=t[r];return i},get:function(e,t){return void 0===t?this.cache(e):e[this.expando]&&e[this.expando][V(t)]},access:function(e,t,n){return void 0===t||t&&"string"==typeof t&&void 0===n?this.get(e,t):(this.set(e,t,n),void 0!==n?n:t)},remove:function(e,t){var n,r=e[this.expando];if(void 0!==r){if(void 0!==t){n=(t=Array.isArray(t)?t.map(V):(t=V(t))in r?[t]:t.match(R)||[]).length;while(n--)delete r[t[n]]}(void 0===t||k.isEmptyObject(r))&&(e.nodeType?e[this.expando]=void 0:delete e[this.expando])}},hasData:function(e){var t=e[this.expando];return void 0!==t&&!k.isEmptyObject(t)}};var Q=new Y,J=new Y,K=/^(?:\{[\w\W]*\}|\[[\w\W]*\])$/,Z=/[A-Z]/g;function ee(e,t,n){var r,i;if(void 0===n&&1===e.nodeType)if(r="data-"+t.replace(Z,"-$&").toLowerCase(),"string"==typeof(n=e.getAttribute(r))){try{n="true"===(i=n)||"false"!==i&&("null"===i?null:i===+i+""?+i:K.test(i)?JSON.parse(i):i)}catch(e){}J.set(e,t,n)}else n=void 0;return n}k.extend({hasData:function(e){return J.hasData(e)||Q.hasData(e)},data:function(e,t,n){return J.access(e,t,n)},removeData:function(e,t){J.remove(e,t)},_data:function(e,t,n){return Q.access(e,t,n)},_removeData:function(e,t){Q.remove(e,t)}}),k.fn.extend({data:function(n,e){var t,r,i,o=this[0],a=o&&o.attributes;if(void 0===n){if(this.length&&(i=J.get(o),1===o.nodeType&&!Q.get(o,"hasDataAttrs"))){t=a.length;while(t--)a[t]&&0===(r=a[t].name).indexOf("data-")&&(r=V(r.slice(5)),ee(o,r,i[r]));Q.set(o,"hasDataAttrs",!0)}return i}return"object"==typeof n?this.each(function(){J.set(this,n)}):_(this,function(e){var t;if(o&&void 0===e)return void 0!==(t=J.get(o,n))?t:void 0!==(t=ee(o,n))?t:void 0;this.each(function(){J.set(this,n,e)})},null,e,1<arguments.length,null,!0)},removeData:function(e){return this.each(function(){J.remove(this,e)})}}),k.extend({queue:function(e,t,n){var r;if(e)return t=(t||"fx")+"queue",r=Q.get(e,t),n&&(!r||Array.isArray(n)?r=Q.access(e,t,k.makeArray(n)):r.push(n)),r||[]},dequeue:function(e,t){t=t||"fx";var n=k.queue(e,t),r=n.length,i=n.shift(),o=k._queueHooks(e,t);"inprogress"===i&&(i=n.shift(),r--),i&&("fx"===t&&n.unshift("inprogress"),delete o.stop,i.call(e,function(){k.dequeue(e,t)},o)),!r&&o&&o.empty.fire()},_queueHooks:function(e,t){var n=t+"queueHooks";return Q.get(e,n)||Q.access(e,n,{empty:k.Callbacks("once memory").add(function(){Q.remove(e,[t+"queue",n])})})}}),k.fn.extend({queue:function(t,n){var e=2;return"string"!=typeof t&&(n=t,t="fx",e--),arguments.length<e?k.queue(this[0],t):void 0===n?this:this.each(function(){var e=k.queue(this,t,n);k._queueHooks(this,t),"fx"===t&&"inprogress"!==e[0]&&k.dequeue(this,t)})},dequeue:function(e){return this.each(function(){k.dequeue(this,e)})},clearQueue:function(e){return this.queue(e||"fx",[])},promise:function(e,t){var n,r=1,i=k.Deferred(),o=this,a=this.length,s=function(){--r||i.resolveWith(o,[o])};"string"!=typeof e&&(t=e,e=void 0),e=e||"fx";while(a--)(n=Q.get(o[a],e+"queueHooks"))&&n.empty&&(r++,n.empty.add(s));return s(),i.promise(t)}});var te=/[+-]?(?:\d*\.|)\d+(?:[eE][+-]?\d+|)/.source,ne=new RegExp("^(?:([+-])=|)("+te+")([a-z%]*)$","i"),re=["Top","Right","Bottom","Left"],ie=E.documentElement,oe=function(e){return k.contains(e.ownerDocument,e)},ae={composed:!0};ie.getRootNode&&(oe=function(e){return k.contains(e.ownerDocument,e)||e.getRootNode(ae)===e.ownerDocument});var se=function(e,t){return"none"===(e=t||e).style.display||""===e.style.display&&oe(e)&&"none"===k.css(e,"display")},ue=function(e,t,n,r){var i,o,a={};for(o in t)a[o]=e.style[o],e.style[o]=t[o];for(o in i=n.apply(e,r||[]),t)e.style[o]=a[o];return i};function le(e,t,n,r){var i,o,a=20,s=r?function(){return r.cur()}:function(){return k.css(e,t,"")},u=s(),l=n&&n[3]||(k.cssNumber[t]?"":"px"),c=e.nodeType&&(k.cssNumber[t]||"px"!==l&&+u)&&ne.exec(k.css(e,t));if(c&&c[3]!==l){u/=2,l=l||c[3],c=+u||1;while(a--)k.style(e,t,c+l),(1-o)*(1-(o=s()/u||.5))<=0&&(a=0),c/=o;c*=2,k.style(e,t,c+l),n=n||[]}return n&&(c=+c||+u||0,i=n[1]?c+(n[1]+1)*n[2]:+n[2],r&&(r.unit=l,r.start=c,r.end=i)),i}var ce={};function fe(e,t){for(var n,r,i,o,a,s,u,l=[],c=0,f=e.length;c<f;c++)(r=e[c]).style&&(n=r.style.display,t?("none"===n&&(l[c]=Q.get(r,"display")||null,l[c]||(r.style.display="")),""===r.style.display&&se(r)&&(l[c]=(u=a=o=void 0,a=(i=r).ownerDocument,s=i.nodeName,(u=ce[s])||(o=a.body.appendChild(a.createElement(s)),u=k.css(o,"display"),o.parentNode.removeChild(o),"none"===u&&(u="block"),ce[s]=u)))):"none"!==n&&(l[c]="none",Q.set(r,"display",n)));for(c=0;c<f;c++)null!=l[c]&&(e[c].style.display=l[c]);return e}k.fn.extend({show:function(){return fe(this,!0)},hide:function(){return fe(this)},toggle:function(e){return"boolean"==typeof e?e?this.show():this.hide():this.each(function(){se(this)?k(this).show():k(this).hide()})}});var pe=/^(?:checkbox|radio)$/i,de=/<([a-z][^\/\0>\x20\t\r\n\f]*)/i,he=/^$|^module$|\/(?:java|ecma)script/i,ge={option:[1,"<select multiple='multiple'>","</select>"],thead:[1,"<table>","</table>"],col:[2,"<table><colgroup>","</colgroup></table>"],tr:[2,"<table><tbody>","</tbody></table>"],td:[3,"<table><tbody><tr>","</tr></tbody></table>"],_default:[0,"",""]};function ve(e,t){var n;return n="undefined"!=typeof e.getElementsByTagName?e.getElementsByTagName(t||"*"):"undefined"!=typeof e.querySelectorAll?e.querySelectorAll(t||"*"):[],void 0===t||t&&A(e,t)?k.merge([e],n):n}function ye(e,t){for(var n=0,r=e.length;n<r;n++)Q.set(e[n],"globalEval",!t||Q.get(t[n],"globalEval"))}ge.optgroup=ge.option,ge.tbody=ge.tfoot=ge.colgroup=ge.caption=ge.thead,ge.th=ge.td;var me,xe,be=/<|&#?\w+;/;function we(e,t,n,r,i){for(var o,a,s,u,l,c,f=t.createDocumentFragment(),p=[],d=0,h=e.length;d<h;d++)if((o=e[d])||0===o)if("object"===w(o))k.merge(p,o.nodeType?[o]:o);else if(be.test(o)){a=a||f.appendChild(t.createElement("div")),s=(de.exec(o)||["",""])[1].toLowerCase(),u=ge[s]||ge._default,a.innerHTML=u[1]+k.htmlPrefilter(o)+u[2],c=u[0];while(c--)a=a.lastChild;k.merge(p,a.childNodes),(a=f.firstChild).textContent=""}else p.push(t.createTextNode(o));f.textContent="",d=0;while(o=p[d++])if(r&&-1<k.inArray(o,r))i&&i.push(o);else if(l=oe(o),a=ve(f.appendChild(o),"script"),l&&ye(a),n){c=0;while(o=a[c++])he.test(o.type||"")&&n.push(o)}return f}me=E.createDocumentFragment().appendChild(E.createElement("div")),(xe=E.createElement("input")).setAttribute("type","radio"),xe.setAttribute("checked","checked"),xe.setAttribute("name","t"),me.appendChild(xe),y.checkClone=me.cloneNode(!0).cloneNode(!0).lastChild.checked,me.innerHTML="<textarea>x</textarea>",y.noCloneChecked=!!me.cloneNode(!0).lastChild.defaultValue;var Te=/^key/,Ce=/^(?:mouse|pointer|contextmenu|drag|drop)|click/,Ee=/^([^.]*)(?:\.(.+)|)/;function ke(){return!0}function Se(){return!1}function Ne(e,t){return e===function(){try{return E.activeElement}catch(e){}}()==("focus"===t)}function Ae(e,t,n,r,i,o){var a,s;if("object"==typeof t){for(s in"string"!=typeof n&&(r=r||n,n=void 0),t)Ae(e,s,n,r,t[s],o);return e}if(null==r&&null==i?(i=n,r=n=void 0):null==i&&("string"==typeof n?(i=r,r=void 0):(i=r,r=n,n=void 0)),!1===i)i=Se;else if(!i)return e;return 1===o&&(a=i,(i=function(e){return k().off(e),a.apply(this,arguments)}).guid=a.guid||(a.guid=k.guid++)),e.each(function(){k.event.add(this,t,i,r,n)})}function De(e,i,o){o?(Q.set(e,i,!1),k.event.add(e,i,{namespace:!1,handler:function(e){var t,n,r=Q.get(this,i);if(1&e.isTrigger&&this[i]){if(r.length)(k.event.special[i]||{}).delegateType&&e.stopPropagation();else if(r=s.call(arguments),Q.set(this,i,r),t=o(this,i),this[i](),r!==(n=Q.get(this,i))||t?Q.set(this,i,!1):n={},r!==n)return e.stopImmediatePropagation(),e.preventDefault(),n.value}else r.length&&(Q.set(this,i,{value:k.event.trigger(k.extend(r[0],k.Event.prototype),r.slice(1),this)}),e.stopImmediatePropagation())}})):void 0===Q.get(e,i)&&k.event.add(e,i,ke)}k.event={global:{},add:function(t,e,n,r,i){var o,a,s,u,l,c,f,p,d,h,g,v=Q.get(t);if(v){n.handler&&(n=(o=n).handler,i=o.selector),i&&k.find.matchesSelector(ie,i),n.guid||(n.guid=k.guid++),(u=v.events)||(u=v.events={}),(a=v.handle)||(a=v.handle=function(e){return"undefined"!=typeof k&&k.event.triggered!==e.type?k.event.dispatch.apply(t,arguments):void 0}),l=(e=(e||"").match(R)||[""]).length;while(l--)d=g=(s=Ee.exec(e[l])||[])[1],h=(s[2]||"").split(".").sort(),d&&(f=k.event.special[d]||{},d=(i?f.delegateType:f.bindType)||d,f=k.event.special[d]||{},c=k.extend({type:d,origType:g,data:r,handler:n,guid:n.guid,selector:i,needsContext:i&&k.expr.match.needsContext.test(i),namespace:h.join(".")},o),(p=u[d])||((p=u[d]=[]).delegateCount=0,f.setup&&!1!==f.setup.call(t,r,h,a)||t.addEventListener&&t.addEventListener(d,a)),f.add&&(f.add.call(t,c),c.handler.guid||(c.handler.guid=n.guid)),i?p.splice(p.delegateCount++,0,c):p.push(c),k.event.global[d]=!0)}},remove:function(e,t,n,r,i){var o,a,s,u,l,c,f,p,d,h,g,v=Q.hasData(e)&&Q.get(e);if(v&&(u=v.events)){l=(t=(t||"").match(R)||[""]).length;while(l--)if(d=g=(s=Ee.exec(t[l])||[])[1],h=(s[2]||"").split(".").sort(),d){f=k.event.special[d]||{},p=u[d=(r?f.delegateType:f.bindType)||d]||[],s=s[2]&&new RegExp("(^|\\.)"+h.join("\\.(?:.*\\.|)")+"(\\.|$)"),a=o=p.length;while(o--)c=p[o],!i&&g!==c.origType||n&&n.guid!==c.guid||s&&!s.test(c.namespace)||r&&r!==c.selector&&("**"!==r||!c.selector)||(p.splice(o,1),c.selector&&p.delegateCount--,f.remove&&f.remove.call(e,c));a&&!p.length&&(f.teardown&&!1!==f.teardown.call(e,h,v.handle)||k.removeEvent(e,d,v.handle),delete u[d])}else for(d in u)k.event.remove(e,d+t[l],n,r,!0);k.isEmptyObject(u)&&Q.remove(e,"handle events")}},dispatch:function(e){var t,n,r,i,o,a,s=k.event.fix(e),u=new Array(arguments.length),l=(Q.get(this,"events")||{})[s.type]||[],c=k.event.special[s.type]||{};for(u[0]=s,t=1;t<arguments.length;t++)u[t]=arguments[t];if(s.delegateTarget=this,!c.preDispatch||!1!==c.preDispatch.call(this,s)){a=k.event.handlers.call(this,s,l),t=0;while((i=a[t++])&&!s.isPropagationStopped()){s.currentTarget=i.elem,n=0;while((o=i.handlers[n++])&&!s.isImmediatePropagationStopped())s.rnamespace&&!1!==o.namespace&&!s.rnamespace.test(o.namespace)||(s.handleObj=o,s.data=o.data,void 0!==(r=((k.event.special[o.origType]||{}).handle||o.handler).apply(i.elem,u))&&!1===(s.result=r)&&(s.preventDefault(),s.stopPropagation()))}return c.postDispatch&&c.postDispatch.call(this,s),s.result}},handlers:function(e,t){var n,r,i,o,a,s=[],u=t.delegateCount,l=e.target;if(u&&l.nodeType&&!("click"===e.type&&1<=e.button))for(;l!==this;l=l.parentNode||this)if(1===l.nodeType&&("click"!==e.type||!0!==l.disabled)){for(o=[],a={},n=0;n<u;n++)void 0===a[i=(r=t[n]).selector+" "]&&(a[i]=r.needsContext?-1<k(i,this).index(l):k.find(i,this,null,[l]).length),a[i]&&o.push(r);o.length&&s.push({elem:l,handlers:o})}return l=this,u<t.length&&s.push({elem:l,handlers:t.slice(u)}),s},addProp:function(t,e){Object.defineProperty(k.Event.prototype,t,{enumerable:!0,configurable:!0,get:m(e)?function(){if(this.originalEvent)return e(this.originalEvent)}:function(){if(this.originalEvent)return this.originalEvent[t]},set:function(e){Object.defineProperty(this,t,{enumerable:!0,configurable:!0,writable:!0,value:e})}})},fix:function(e){return e[k.expando]?e:new k.Event(e)},special:{load:{noBubble:!0},click:{setup:function(e){var t=this||e;return pe.test(t.type)&&t.click&&A(t,"input")&&De(t,"click",ke),!1},trigger:function(e){var t=this||e;return pe.test(t.type)&&t.click&&A(t,"input")&&De(t,"click"),!0},_default:function(e){var t=e.target;return pe.test(t.type)&&t.click&&A(t,"input")&&Q.get(t,"click")||A(t,"a")}},beforeunload:{postDispatch:function(e){void 0!==e.result&&e.originalEvent&&(e.originalEvent.returnValue=e.result)}}}},k.removeEvent=function(e,t,n){e.removeEventListener&&e.removeEventListener(t,n)},k.Event=function(e,t){if(!(this instanceof k.Event))return new k.Event(e,t);e&&e.type?(this.originalEvent=e,this.type=e.type,this.isDefaultPrevented=e.defaultPrevented||void 0===e.defaultPrevented&&!1===e.returnValue?ke:Se,this.target=e.target&&3===e.target.nodeType?e.target.parentNode:e.target,this.currentTarget=e.currentTarget,this.relatedTarget=e.relatedTarget):this.type=e,t&&k.extend(this,t),this.timeStamp=e&&e.timeStamp||Date.now(),this[k.expando]=!0},k.Event.prototype={constructor:k.Event,isDefaultPrevented:Se,isPropagationStopped:Se,isImmediatePropagationStopped:Se,isSimulated:!1,preventDefault:function(){var e=this.originalEvent;this.isDefaultPrevented=ke,e&&!this.isSimulated&&e.preventDefault()},stopPropagation:function(){var e=this.originalEvent;this.isPropagationStopped=ke,e&&!this.isSimulated&&e.stopPropagation()},stopImmediatePropagation:function(){var e=this.originalEvent;this.isImmediatePropagationStopped=ke,e&&!this.isSimulated&&e.stopImmediatePropagation(),this.stopPropagation()}},k.each({altKey:!0,bubbles:!0,cancelable:!0,changedTouches:!0,ctrlKey:!0,detail:!0,eventPhase:!0,metaKey:!0,pageX:!0,pageY:!0,shiftKey:!0,view:!0,"char":!0,code:!0,charCode:!0,key:!0,keyCode:!0,button:!0,buttons:!0,clientX:!0,clientY:!0,offsetX:!0,offsetY:!0,pointerId:!0,pointerType:!0,screenX:!0,screenY:!0,targetTouches:!0,toElement:!0,touches:!0,which:function(e){var t=e.button;return null==e.which&&Te.test(e.type)?null!=e.charCode?e.charCode:e.keyCode:!e.which&&void 0!==t&&Ce.test(e.type)?1&t?1:2&t?3:4&t?2:0:e.which}},k.event.addProp),k.each({focus:"focusin",blur:"focusout"},function(e,t){k.event.special[e]={setup:function(){return De(this,e,Ne),!1},trigger:function(){return De(this,e),!0},delegateType:t}}),k.each({mouseenter:"mouseover",mouseleave:"mouseout",pointerenter:"pointerover",pointerleave:"pointerout"},function(e,i){k.event.special[e]={delegateType:i,bindType:i,handle:function(e){var t,n=e.relatedTarget,r=e.handleObj;return n&&(n===this||k.contains(this,n))||(e.type=r.origType,t=r.handler.apply(this,arguments),e.type=i),t}}}),k.fn.extend({on:function(e,t,n,r){return Ae(this,e,t,n,r)},one:function(e,t,n,r){return Ae(this,e,t,n,r,1)},off:function(e,t,n){var r,i;if(e&&e.preventDefault&&e.handleObj)return r=e.handleObj,k(e.delegateTarget).off(r.namespace?r.origType+"."+r.namespace:r.origType,r.selector,r.handler),this;if("object"==typeof e){for(i in e)this.off(i,t,e[i]);return this}return!1!==t&&"function"!=typeof t||(n=t,t=void 0),!1===n&&(n=Se),this.each(function(){k.event.remove(this,e,n,t)})}});var je=/<(?!area|br|col|embed|hr|img|input|link|meta|param)(([a-z][^\/\0>\x20\t\r\n\f]*)[^>]*)\/>/gi,qe=/<script|<style|<link/i,Le=/checked\s*(?:[^=]|=\s*.checked.)/i,He=/^\s*<!(?:\[CDATA\[|--)|(?:\]\]|--)>\s*$/g;function Oe(e,t){return A(e,"table")&&A(11!==t.nodeType?t:t.firstChild,"tr")&&k(e).children("tbody")[0]||e}function Pe(e){return e.type=(null!==e.getAttribute("type"))+"/"+e.type,e}function Re(e){return"true/"===(e.type||"").slice(0,5)?e.type=e.type.slice(5):e.removeAttribute("type"),e}function Me(e,t){var n,r,i,o,a,s,u,l;if(1===t.nodeType){if(Q.hasData(e)&&(o=Q.access(e),a=Q.set(t,o),l=o.events))for(i in delete a.handle,a.events={},l)for(n=0,r=l[i].length;n<r;n++)k.event.add(t,i,l[i][n]);J.hasData(e)&&(s=J.access(e),u=k.extend({},s),J.set(t,u))}}function Ie(n,r,i,o){r=g.apply([],r);var e,t,a,s,u,l,c=0,f=n.length,p=f-1,d=r[0],h=m(d);if(h||1<f&&"string"==typeof d&&!y.checkClone&&Le.test(d))return n.each(function(e){var t=n.eq(e);h&&(r[0]=d.call(this,e,t.html())),Ie(t,r,i,o)});if(f&&(t=(e=we(r,n[0].ownerDocument,!1,n,o)).firstChild,1===e.childNodes.length&&(e=t),t||o)){for(s=(a=k.map(ve(e,"script"),Pe)).length;c<f;c++)u=e,c!==p&&(u=k.clone(u,!0,!0),s&&k.merge(a,ve(u,"script"))),i.call(n[c],u,c);if(s)for(l=a[a.length-1].ownerDocument,k.map(a,Re),c=0;c<s;c++)u=a[c],he.test(u.type||"")&&!Q.access(u,"globalEval")&&k.contains(l,u)&&(u.src&&"module"!==(u.type||"").toLowerCase()?k._evalUrl&&!u.noModule&&k._evalUrl(u.src,{nonce:u.nonce||u.getAttribute("nonce")}):b(u.textContent.replace(He,""),u,l))}return n}function We(e,t,n){for(var r,i=t?k.filter(t,e):e,o=0;null!=(r=i[o]);o++)n||1!==r.nodeType||k.cleanData(ve(r)),r.parentNode&&(n&&oe(r)&&ye(ve(r,"script")),r.parentNode.removeChild(r));return e}k.extend({htmlPrefilter:function(e){return e.replace(je,"<$1></$2>")},clone:function(e,t,n){var r,i,o,a,s,u,l,c=e.cloneNode(!0),f=oe(e);if(!(y.noCloneChecked||1!==e.nodeType&&11!==e.nodeType||k.isXMLDoc(e)))for(a=ve(c),r=0,i=(o=ve(e)).length;r<i;r++)s=o[r],u=a[r],void 0,"input"===(l=u.nodeName.toLowerCase())&&pe.test(s.type)?u.checked=s.checked:"input"!==l&&"textarea"!==l||(u.defaultValue=s.defaultValue);if(t)if(n)for(o=o||ve(e),a=a||ve(c),r=0,i=o.length;r<i;r++)Me(o[r],a[r]);else Me(e,c);return 0<(a=ve(c,"script")).length&&ye(a,!f&&ve(e,"script")),c},cleanData:function(e){for(var t,n,r,i=k.event.special,o=0;void 0!==(n=e[o]);o++)if(G(n)){if(t=n[Q.expando]){if(t.events)for(r in t.events)i[r]?k.event.remove(n,r):k.removeEvent(n,r,t.handle);n[Q.expando]=void 0}n[J.expando]&&(n[J.expando]=void 0)}}}),k.fn.extend({detach:function(e){return We(this,e,!0)},remove:function(e){return We(this,e)},text:function(e){return _(this,function(e){return void 0===e?k.text(this):this.empty().each(function(){1!==this.nodeType&&11!==this.nodeType&&9!==this.nodeType||(this.textContent=e)})},null,e,arguments.length)},append:function(){return Ie(this,arguments,function(e){1!==this.nodeType&&11!==this.nodeType&&9!==this.nodeType||Oe(this,e).appendChild(e)})},prepend:function(){return Ie(this,arguments,function(e){if(1===this.nodeType||11===this.nodeType||9===this.nodeType){var t=Oe(this,e);t.insertBefore(e,t.firstChild)}})},before:function(){return Ie(this,arguments,function(e){this.parentNode&&this.parentNode.insertBefore(e,this)})},after:function(){return Ie(this,arguments,function(e){this.parentNode&&this.parentNode.insertBefore(e,this.nextSibling)})},empty:function(){for(var e,t=0;null!=(e=this[t]);t++)1===e.nodeType&&(k.cleanData(ve(e,!1)),e.textContent="");return this},clone:function(e,t){return e=null!=e&&e,t=null==t?e:t,this.map(function(){return k.clone(this,e,t)})},html:function(e){return _(this,function(e){var t=this[0]||{},n=0,r=this.length;if(void 0===e&&1===t.nodeType)return t.innerHTML;if("string"==typeof e&&!qe.test(e)&&!ge[(de.exec(e)||["",""])[1].toLowerCase()]){e=k.htmlPrefilter(e);try{for(;n<r;n++)1===(t=this[n]||{}).nodeType&&(k.cleanData(ve(t,!1)),t.innerHTML=e);t=0}catch(e){}}t&&this.empty().append(e)},null,e,arguments.length)},replaceWith:function(){var n=[];return Ie(this,arguments,function(e){var t=this.parentNode;k.inArray(this,n)<0&&(k.cleanData(ve(this)),t&&t.replaceChild(e,this))},n)}}),k.each({appendTo:"append",prependTo:"prepend",insertBefore:"before",insertAfter:"after",replaceAll:"replaceWith"},function(e,a){k.fn[e]=function(e){for(var t,n=[],r=k(e),i=r.length-1,o=0;o<=i;o++)t=o===i?this:this.clone(!0),k(r[o])[a](t),u.apply(n,t.get());return this.pushStack(n)}});var $e=new RegExp("^("+te+")(?!px)[a-z%]+$","i"),Fe=function(e){var t=e.ownerDocument.defaultView;return t&&t.opener||(t=C),t.getComputedStyle(e)},Be=new RegExp(re.join("|"),"i");function _e(e,t,n){var r,i,o,a,s=e.style;return(n=n||Fe(e))&&(""!==(a=n.getPropertyValue(t)||n[t])||oe(e)||(a=k.style(e,t)),!y.pixelBoxStyles()&&$e.test(a)&&Be.test(t)&&(r=s.width,i=s.minWidth,o=s.maxWidth,s.minWidth=s.maxWidth=s.width=a,a=n.width,s.width=r,s.minWidth=i,s.maxWidth=o)),void 0!==a?a+"":a}function ze(e,t){return{get:function(){if(!e())return(this.get=t).apply(this,arguments);delete this.get}}}!function(){function e(){if(u){s.style.cssText="position:absolute;left:-11111px;width:60px;margin-top:1px;padding:0;border:0",u.style.cssText="position:relative;display:block;box-sizing:border-box;overflow:scroll;margin:auto;border:1px;padding:1px;width:60%;top:1%",ie.appendChild(s).appendChild(u);var e=C.getComputedStyle(u);n="1%"!==e.top,a=12===t(e.marginLeft),u.style.right="60%",o=36===t(e.right),r=36===t(e.width),u.style.position="absolute",i=12===t(u.offsetWidth/3),ie.removeChild(s),u=null}}function t(e){return Math.round(parseFloat(e))}var n,r,i,o,a,s=E.createElement("div"),u=E.createElement("div");u.style&&(u.style.backgroundClip="content-box",u.cloneNode(!0).style.backgroundClip="",y.clearCloneStyle="content-box"===u.style.backgroundClip,k.extend(y,{boxSizingReliable:function(){return e(),r},pixelBoxStyles:function(){return e(),o},pixelPosition:function(){return e(),n},reliableMarginLeft:function(){return e(),a},scrollboxSize:function(){return e(),i}}))}();var Ue=["Webkit","Moz","ms"],Xe=E.createElement("div").style,Ve={};function Ge(e){var t=k.cssProps[e]||Ve[e];return t||(e in Xe?e:Ve[e]=function(e){var t=e[0].toUpperCase()+e.slice(1),n=Ue.length;while(n--)if((e=Ue[n]+t)in Xe)return e}(e)||e)}var Ye=/^(none|table(?!-c[ea]).+)/,Qe=/^--/,Je={position:"absolute",visibility:"hidden",display:"block"},Ke={letterSpacing:"0",fontWeight:"400"};function Ze(e,t,n){var r=ne.exec(t);return r?Math.max(0,r[2]-(n||0))+(r[3]||"px"):t}function et(e,t,n,r,i,o){var a="width"===t?1:0,s=0,u=0;if(n===(r?"border":"content"))return 0;for(;a<4;a+=2)"margin"===n&&(u+=k.css(e,n+re[a],!0,i)),r?("content"===n&&(u-=k.css(e,"padding"+re[a],!0,i)),"margin"!==n&&(u-=k.css(e,"border"+re[a]+"Width",!0,i))):(u+=k.css(e,"padding"+re[a],!0,i),"padding"!==n?u+=k.css(e,"border"+re[a]+"Width",!0,i):s+=k.css(e,"border"+re[a]+"Width",!0,i));return!r&&0<=o&&(u+=Math.max(0,Math.ceil(e["offset"+t[0].toUpperCase()+t.slice(1)]-o-u-s-.5))||0),u}function tt(e,t,n){var r=Fe(e),i=(!y.boxSizingReliable()||n)&&"border-box"===k.css(e,"boxSizing",!1,r),o=i,a=_e(e,t,r),s="offset"+t[0].toUpperCase()+t.slice(1);if($e.test(a)){if(!n)return a;a="auto"}return(!y.boxSizingReliable()&&i||"auto"===a||!parseFloat(a)&&"inline"===k.css(e,"display",!1,r))&&e.getClientRects().length&&(i="border-box"===k.css(e,"boxSizing",!1,r),(o=s in e)&&(a=e[s])),(a=parseFloat(a)||0)+et(e,t,n||(i?"border":"content"),o,r,a)+"px"}function nt(e,t,n,r,i){return new nt.prototype.init(e,t,n,r,i)}k.extend({cssHooks:{opacity:{get:function(e,t){if(t){var n=_e(e,"opacity");return""===n?"1":n}}}},cssNumber:{animationIterationCount:!0,columnCount:!0,fillOpacity:!0,flexGrow:!0,flexShrink:!0,fontWeight:!0,gridArea:!0,gridColumn:!0,gridColumnEnd:!0,gridColumnStart:!0,gridRow:!0,gridRowEnd:!0,gridRowStart:!0,lineHeight:!0,opacity:!0,order:!0,orphans:!0,widows:!0,zIndex:!0,zoom:!0},cssProps:{},style:function(e,t,n,r){if(e&&3!==e.nodeType&&8!==e.nodeType&&e.style){var i,o,a,s=V(t),u=Qe.test(t),l=e.style;if(u||(t=Ge(s)),a=k.cssHooks[t]||k.cssHooks[s],void 0===n)return a&&"get"in a&&void 0!==(i=a.get(e,!1,r))?i:l[t];"string"===(o=typeof n)&&(i=ne.exec(n))&&i[1]&&(n=le(e,t,i),o="number"),null!=n&&n==n&&("number"!==o||u||(n+=i&&i[3]||(k.cssNumber[s]?"":"px")),y.clearCloneStyle||""!==n||0!==t.indexOf("background")||(l[t]="inherit"),a&&"set"in a&&void 0===(n=a.set(e,n,r))||(u?l.setProperty(t,n):l[t]=n))}},css:function(e,t,n,r){var i,o,a,s=V(t);return Qe.test(t)||(t=Ge(s)),(a=k.cssHooks[t]||k.cssHooks[s])&&"get"in a&&(i=a.get(e,!0,n)),void 0===i&&(i=_e(e,t,r)),"normal"===i&&t in Ke&&(i=Ke[t]),""===n||n?(o=parseFloat(i),!0===n||isFinite(o)?o||0:i):i}}),k.each(["height","width"],function(e,u){k.cssHooks[u]={get:function(e,t,n){if(t)return!Ye.test(k.css(e,"display"))||e.getClientRects().length&&e.getBoundingClientRect().width?tt(e,u,n):ue(e,Je,function(){return tt(e,u,n)})},set:function(e,t,n){var r,i=Fe(e),o=!y.scrollboxSize()&&"absolute"===i.position,a=(o||n)&&"border-box"===k.css(e,"boxSizing",!1,i),s=n?et(e,u,n,a,i):0;return a&&o&&(s-=Math.ceil(e["offset"+u[0].toUpperCase()+u.slice(1)]-parseFloat(i[u])-et(e,u,"border",!1,i)-.5)),s&&(r=ne.exec(t))&&"px"!==(r[3]||"px")&&(e.style[u]=t,t=k.css(e,u)),Ze(0,t,s)}}}),k.cssHooks.marginLeft=ze(y.reliableMarginLeft,function(e,t){if(t)return(parseFloat(_e(e,"marginLeft"))||e.getBoundingClientRect().left-ue(e,{marginLeft:0},function(){return e.getBoundingClientRect().left}))+"px"}),k.each({margin:"",padding:"",border:"Width"},function(i,o){k.cssHooks[i+o]={expand:function(e){for(var t=0,n={},r="string"==typeof e?e.split(" "):[e];t<4;t++)n[i+re[t]+o]=r[t]||r[t-2]||r[0];return n}},"margin"!==i&&(k.cssHooks[i+o].set=Ze)}),k.fn.extend({css:function(e,t){return _(this,function(e,t,n){var r,i,o={},a=0;if(Array.isArray(t)){for(r=Fe(e),i=t.length;a<i;a++)o[t[a]]=k.css(e,t[a],!1,r);return o}return void 0!==n?k.style(e,t,n):k.css(e,t)},e,t,1<arguments.length)}}),((k.Tween=nt).prototype={constructor:nt,init:function(e,t,n,r,i,o){this.elem=e,this.prop=n,this.easing=i||k.easing._default,this.options=t,this.start=this.now=this.cur(),this.end=r,this.unit=o||(k.cssNumber[n]?"":"px")},cur:function(){var e=nt.propHooks[this.prop];return e&&e.get?e.get(this):nt.propHooks._default.get(this)},run:function(e){var t,n=nt.propHooks[this.prop];return this.options.duration?this.pos=t=k.easing[this.easing](e,this.options.duration*e,0,1,this.options.duration):this.pos=t=e,this.now=(this.end-this.start)*t+this.start,this.options.step&&this.options.step.call(this.elem,this.now,this),n&&n.set?n.set(this):nt.propHooks._default.set(this),this}}).init.prototype=nt.prototype,(nt.propHooks={_default:{get:function(e){var t;return 1!==e.elem.nodeType||null!=e.elem[e.prop]&&null==e.elem.style[e.prop]?e.elem[e.prop]:(t=k.css(e.elem,e.prop,""))&&"auto"!==t?t:0},set:function(e){k.fx.step[e.prop]?k.fx.step[e.prop](e):1!==e.elem.nodeType||!k.cssHooks[e.prop]&&null==e.elem.style[Ge(e.prop)]?e.elem[e.prop]=e.now:k.style(e.elem,e.prop,e.now+e.unit)}}}).scrollTop=nt.propHooks.scrollLeft={set:function(e){e.elem.nodeType&&e.elem.parentNode&&(e.elem[e.prop]=e.now)}},k.easing={linear:function(e){return e},swing:function(e){return.5-Math.cos(e*Math.PI)/2},_default:"swing"},k.fx=nt.prototype.init,k.fx.step={};var rt,it,ot,at,st=/^(?:toggle|show|hide)$/,ut=/queueHooks$/;function lt(){it&&(!1===E.hidden&&C.requestAnimationFrame?C.requestAnimationFrame(lt):C.setTimeout(lt,k.fx.interval),k.fx.tick())}function ct(){return C.setTimeout(function(){rt=void 0}),rt=Date.now()}function ft(e,t){var n,r=0,i={height:e};for(t=t?1:0;r<4;r+=2-t)i["margin"+(n=re[r])]=i["padding"+n]=e;return t&&(i.opacity=i.width=e),i}function pt(e,t,n){for(var r,i=(dt.tweeners[t]||[]).concat(dt.tweeners["*"]),o=0,a=i.length;o<a;o++)if(r=i[o].call(n,t,e))return r}function dt(o,e,t){var n,a,r=0,i=dt.prefilters.length,s=k.Deferred().always(function(){delete u.elem}),u=function(){if(a)return!1;for(var e=rt||ct(),t=Math.max(0,l.startTime+l.duration-e),n=1-(t/l.duration||0),r=0,i=l.tweens.length;r<i;r++)l.tweens[r].run(n);return s.notifyWith(o,[l,n,t]),n<1&&i?t:(i||s.notifyWith(o,[l,1,0]),s.resolveWith(o,[l]),!1)},l=s.promise({elem:o,props:k.extend({},e),opts:k.extend(!0,{specialEasing:{},easing:k.easing._default},t),originalProperties:e,originalOptions:t,startTime:rt||ct(),duration:t.duration,tweens:[],createTween:function(e,t){var n=k.Tween(o,l.opts,e,t,l.opts.specialEasing[e]||l.opts.easing);return l.tweens.push(n),n},stop:function(e){var t=0,n=e?l.tweens.length:0;if(a)return this;for(a=!0;t<n;t++)l.tweens[t].run(1);return e?(s.notifyWith(o,[l,1,0]),s.resolveWith(o,[l,e])):s.rejectWith(o,[l,e]),this}}),c=l.props;for(!function(e,t){var n,r,i,o,a;for(n in e)if(i=t[r=V(n)],o=e[n],Array.isArray(o)&&(i=o[1],o=e[n]=o[0]),n!==r&&(e[r]=o,delete e[n]),(a=k.cssHooks[r])&&"expand"in a)for(n in o=a.expand(o),delete e[r],o)n in e||(e[n]=o[n],t[n]=i);else t[r]=i}(c,l.opts.specialEasing);r<i;r++)if(n=dt.prefilters[r].call(l,o,c,l.opts))return m(n.stop)&&(k._queueHooks(l.elem,l.opts.queue).stop=n.stop.bind(n)),n;return k.map(c,pt,l),m(l.opts.start)&&l.opts.start.call(o,l),l.progress(l.opts.progress).done(l.opts.done,l.opts.complete).fail(l.opts.fail).always(l.opts.always),k.fx.timer(k.extend(u,{elem:o,anim:l,queue:l.opts.queue})),l}k.Animation=k.extend(dt,{tweeners:{"*":[function(e,t){var n=this.createTween(e,t);return le(n.elem,e,ne.exec(t),n),n}]},tweener:function(e,t){m(e)?(t=e,e=["*"]):e=e.match(R);for(var n,r=0,i=e.length;r<i;r++)n=e[r],dt.tweeners[n]=dt.tweeners[n]||[],dt.tweeners[n].unshift(t)},prefilters:[function(e,t,n){var r,i,o,a,s,u,l,c,f="width"in t||"height"in t,p=this,d={},h=e.style,g=e.nodeType&&se(e),v=Q.get(e,"fxshow");for(r in n.queue||(null==(a=k._queueHooks(e,"fx")).unqueued&&(a.unqueued=0,s=a.empty.fire,a.empty.fire=function(){a.unqueued||s()}),a.unqueued++,p.always(function(){p.always(function(){a.unqueued--,k.queue(e,"fx").length||a.empty.fire()})})),t)if(i=t[r],st.test(i)){if(delete t[r],o=o||"toggle"===i,i===(g?"hide":"show")){if("show"!==i||!v||void 0===v[r])continue;g=!0}d[r]=v&&v[r]||k.style(e,r)}if((u=!k.isEmptyObject(t))||!k.isEmptyObject(d))for(r in f&&1===e.nodeType&&(n.overflow=[h.overflow,h.overflowX,h.overflowY],null==(l=v&&v.display)&&(l=Q.get(e,"display")),"none"===(c=k.css(e,"display"))&&(l?c=l:(fe([e],!0),l=e.style.display||l,c=k.css(e,"display"),fe([e]))),("inline"===c||"inline-block"===c&&null!=l)&&"none"===k.css(e,"float")&&(u||(p.done(function(){h.display=l}),null==l&&(c=h.display,l="none"===c?"":c)),h.display="inline-block")),n.overflow&&(h.overflow="hidden",p.always(function(){h.overflow=n.overflow[0],h.overflowX=n.overflow[1],h.overflowY=n.overflow[2]})),u=!1,d)u||(v?"hidden"in v&&(g=v.hidden):v=Q.access(e,"fxshow",{display:l}),o&&(v.hidden=!g),g&&fe([e],!0),p.done(function(){for(r in g||fe([e]),Q.remove(e,"fxshow"),d)k.style(e,r,d[r])})),u=pt(g?v[r]:0,r,p),r in v||(v[r]=u.start,g&&(u.end=u.start,u.start=0))}],prefilter:function(e,t){t?dt.prefilters.unshift(e):dt.prefilters.push(e)}}),k.speed=function(e,t,n){var r=e&&"object"==typeof e?k.extend({},e):{complete:n||!n&&t||m(e)&&e,duration:e,easing:n&&t||t&&!m(t)&&t};return k.fx.off?r.duration=0:"number"!=typeof r.duration&&(r.duration in k.fx.speeds?r.duration=k.fx.speeds[r.duration]:r.duration=k.fx.speeds._default),null!=r.queue&&!0!==r.queue||(r.queue="fx"),r.old=r.complete,r.complete=function(){m(r.old)&&r.old.call(this),r.queue&&k.dequeue(this,r.queue)},r},k.fn.extend({fadeTo:function(e,t,n,r){return this.filter(se).css("opacity",0).show().end().animate({opacity:t},e,n,r)},animate:function(t,e,n,r){var i=k.isEmptyObject(t),o=k.speed(e,n,r),a=function(){var e=dt(this,k.extend({},t),o);(i||Q.get(this,"finish"))&&e.stop(!0)};return a.finish=a,i||!1===o.queue?this.each(a):this.queue(o.queue,a)},stop:function(i,e,o){var a=function(e){var t=e.stop;delete e.stop,t(o)};return"string"!=typeof i&&(o=e,e=i,i=void 0),e&&!1!==i&&this.queue(i||"fx",[]),this.each(function(){var e=!0,t=null!=i&&i+"queueHooks",n=k.timers,r=Q.get(this);if(t)r[t]&&r[t].stop&&a(r[t]);else for(t in r)r[t]&&r[t].stop&&ut.test(t)&&a(r[t]);for(t=n.length;t--;)n[t].elem!==this||null!=i&&n[t].queue!==i||(n[t].anim.stop(o),e=!1,n.splice(t,1));!e&&o||k.dequeue(this,i)})},finish:function(a){return!1!==a&&(a=a||"fx"),this.each(function(){var e,t=Q.get(this),n=t[a+"queue"],r=t[a+"queueHooks"],i=k.timers,o=n?n.length:0;for(t.finish=!0,k.queue(this,a,[]),r&&r.stop&&r.stop.call(this,!0),e=i.length;e--;)i[e].elem===this&&i[e].queue===a&&(i[e].anim.stop(!0),i.splice(e,1));for(e=0;e<o;e++)n[e]&&n[e].finish&&n[e].finish.call(this);delete t.finish})}}),k.each(["toggle","show","hide"],function(e,r){var i=k.fn[r];k.fn[r]=function(e,t,n){return null==e||"boolean"==typeof e?i.apply(this,arguments):this.animate(ft(r,!0),e,t,n)}}),k.each({slideDown:ft("show"),slideUp:ft("hide"),slideToggle:ft("toggle"),fadeIn:{opacity:"show"},fadeOut:{opacity:"hide"},fadeToggle:{opacity:"toggle"}},function(e,r){k.fn[e]=function(e,t,n){return this.animate(r,e,t,n)}}),k.timers=[],k.fx.tick=function(){var e,t=0,n=k.timers;for(rt=Date.now();t<n.length;t++)(e=n[t])()||n[t]!==e||n.splice(t--,1);n.length||k.fx.stop(),rt=void 0},k.fx.timer=function(e){k.timers.push(e),k.fx.start()},k.fx.interval=13,k.fx.start=function(){it||(it=!0,lt())},k.fx.stop=function(){it=null},k.fx.speeds={slow:600,fast:200,_default:400},k.fn.delay=function(r,e){return r=k.fx&&k.fx.speeds[r]||r,e=e||"fx",this.queue(e,function(e,t){var n=C.setTimeout(e,r);t.stop=function(){C.clearTimeout(n)}})},ot=E.createElement("input"),at=E.createElement("select").appendChild(E.createElement("option")),ot.type="checkbox",y.checkOn=""!==ot.value,y.optSelected=at.selected,(ot=E.createElement("input")).value="t",ot.type="radio",y.radioValue="t"===ot.value;var ht,gt=k.expr.attrHandle;k.fn.extend({attr:function(e,t){return _(this,k.attr,e,t,1<arguments.length)},removeAttr:function(e){return this.each(function(){k.removeAttr(this,e)})}}),k.extend({attr:function(e,t,n){var r,i,o=e.nodeType;if(3!==o&&8!==o&&2!==o)return"undefined"==typeof e.getAttribute?k.prop(e,t,n):(1===o&&k.isXMLDoc(e)||(i=k.attrHooks[t.toLowerCase()]||(k.expr.match.bool.test(t)?ht:void 0)),void 0!==n?null===n?void k.removeAttr(e,t):i&&"set"in i&&void 0!==(r=i.set(e,n,t))?r:(e.setAttribute(t,n+""),n):i&&"get"in i&&null!==(r=i.get(e,t))?r:null==(r=k.find.attr(e,t))?void 0:r)},attrHooks:{type:{set:function(e,t){if(!y.radioValue&&"radio"===t&&A(e,"input")){var n=e.value;return e.setAttribute("type",t),n&&(e.value=n),t}}}},removeAttr:function(e,t){var n,r=0,i=t&&t.match(R);if(i&&1===e.nodeType)while(n=i[r++])e.removeAttribute(n)}}),ht={set:function(e,t,n){return!1===t?k.removeAttr(e,n):e.setAttribute(n,n),n}},k.each(k.expr.match.bool.source.match(/\w+/g),function(e,t){var a=gt[t]||k.find.attr;gt[t]=function(e,t,n){var r,i,o=t.toLowerCase();return n||(i=gt[o],gt[o]=r,r=null!=a(e,t,n)?o:null,gt[o]=i),r}});var vt=/^(?:input|select|textarea|button)$/i,yt=/^(?:a|area)$/i;function mt(e){return(e.match(R)||[]).join(" ")}function xt(e){return e.getAttribute&&e.getAttribute("class")||""}function bt(e){return Array.isArray(e)?e:"string"==typeof e&&e.match(R)||[]}k.fn.extend({prop:function(e,t){return _(this,k.prop,e,t,1<arguments.length)},removeProp:function(e){return this.each(function(){delete this[k.propFix[e]||e]})}}),k.extend({prop:function(e,t,n){var r,i,o=e.nodeType;if(3!==o&&8!==o&&2!==o)return 1===o&&k.isXMLDoc(e)||(t=k.propFix[t]||t,i=k.propHooks[t]),void 0!==n?i&&"set"in i&&void 0!==(r=i.set(e,n,t))?r:e[t]=n:i&&"get"in i&&null!==(r=i.get(e,t))?r:e[t]},propHooks:{tabIndex:{get:function(e){var t=k.find.attr(e,"tabindex");return t?parseInt(t,10):vt.test(e.nodeName)||yt.test(e.nodeName)&&e.href?0:-1}}},propFix:{"for":"htmlFor","class":"className"}}),y.optSelected||(k.propHooks.selected={get:function(e){var t=e.parentNode;return t&&t.parentNode&&t.parentNode.selectedIndex,null},set:function(e){var t=e.parentNode;t&&(t.selectedIndex,t.parentNode&&t.parentNode.selectedIndex)}}),k.each(["tabIndex","readOnly","maxLength","cellSpacing","cellPadding","rowSpan","colSpan","useMap","frameBorder","contentEditable"],function(){k.propFix[this.toLowerCase()]=this}),k.fn.extend({addClass:function(t){var e,n,r,i,o,a,s,u=0;if(m(t))return this.each(function(e){k(this).addClass(t.call(this,e,xt(this)))});if((e=bt(t)).length)while(n=this[u++])if(i=xt(n),r=1===n.nodeType&&" "+mt(i)+" "){a=0;while(o=e[a++])r.indexOf(" "+o+" ")<0&&(r+=o+" ");i!==(s=mt(r))&&n.setAttribute("class",s)}return this},removeClass:function(t){var e,n,r,i,o,a,s,u=0;if(m(t))return this.each(function(e){k(this).removeClass(t.call(this,e,xt(this)))});if(!arguments.length)return this.attr("class","");if((e=bt(t)).length)while(n=this[u++])if(i=xt(n),r=1===n.nodeType&&" "+mt(i)+" "){a=0;while(o=e[a++])while(-1<r.indexOf(" "+o+" "))r=r.replace(" "+o+" "," ");i!==(s=mt(r))&&n.setAttribute("class",s)}return this},toggleClass:function(i,t){var o=typeof i,a="string"===o||Array.isArray(i);return"boolean"==typeof t&&a?t?this.addClass(i):this.removeClass(i):m(i)?this.each(function(e){k(this).toggleClass(i.call(this,e,xt(this),t),t)}):this.each(function(){var e,t,n,r;if(a){t=0,n=k(this),r=bt(i);while(e=r[t++])n.hasClass(e)?n.removeClass(e):n.addClass(e)}else void 0!==i&&"boolean"!==o||((e=xt(this))&&Q.set(this,"__className__",e),this.setAttribute&&this.setAttribute("class",e||!1===i?"":Q.get(this,"__className__")||""))})},hasClass:function(e){var t,n,r=0;t=" "+e+" ";while(n=this[r++])if(1===n.nodeType&&-1<(" "+mt(xt(n))+" ").indexOf(t))return!0;return!1}});var wt=/\r/g;k.fn.extend({val:function(n){var r,e,i,t=this[0];return arguments.length?(i=m(n),this.each(function(e){var t;1===this.nodeType&&(null==(t=i?n.call(this,e,k(this).val()):n)?t="":"number"==typeof t?t+="":Array.isArray(t)&&(t=k.map(t,function(e){return null==e?"":e+""})),(r=k.valHooks[this.type]||k.valHooks[this.nodeName.toLowerCase()])&&"set"in r&&void 0!==r.set(this,t,"value")||(this.value=t))})):t?(r=k.valHooks[t.type]||k.valHooks[t.nodeName.toLowerCase()])&&"get"in r&&void 0!==(e=r.get(t,"value"))?e:"string"==typeof(e=t.value)?e.replace(wt,""):null==e?"":e:void 0}}),k.extend({valHooks:{option:{get:function(e){var t=k.find.attr(e,"value");return null!=t?t:mt(k.text(e))}},select:{get:function(e){var t,n,r,i=e.options,o=e.selectedIndex,a="select-one"===e.type,s=a?null:[],u=a?o+1:i.length;for(r=o<0?u:a?o:0;r<u;r++)if(((n=i[r]).selected||r===o)&&!n.disabled&&(!n.parentNode.disabled||!A(n.parentNode,"optgroup"))){if(t=k(n).val(),a)return t;s.push(t)}return s},set:function(e,t){var n,r,i=e.options,o=k.makeArray(t),a=i.length;while(a--)((r=i[a]).selected=-1<k.inArray(k.valHooks.option.get(r),o))&&(n=!0);return n||(e.selectedIndex=-1),o}}}}),k.each(["radio","checkbox"],function(){k.valHooks[this]={set:function(e,t){if(Array.isArray(t))return e.checked=-1<k.inArray(k(e).val(),t)}},y.checkOn||(k.valHooks[this].get=function(e){return null===e.getAttribute("value")?"on":e.value})}),y.focusin="onfocusin"in C;var Tt=/^(?:focusinfocus|focusoutblur)$/,Ct=function(e){e.stopPropagation()};k.extend(k.event,{trigger:function(e,t,n,r){var i,o,a,s,u,l,c,f,p=[n||E],d=v.call(e,"type")?e.type:e,h=v.call(e,"namespace")?e.namespace.split("."):[];if(o=f=a=n=n||E,3!==n.nodeType&&8!==n.nodeType&&!Tt.test(d+k.event.triggered)&&(-1<d.indexOf(".")&&(d=(h=d.split(".")).shift(),h.sort()),u=d.indexOf(":")<0&&"on"+d,(e=e[k.expando]?e:new k.Event(d,"object"==typeof e&&e)).isTrigger=r?2:3,e.namespace=h.join("."),e.rnamespace=e.namespace?new RegExp("(^|\\.)"+h.join("\\.(?:.*\\.|)")+"(\\.|$)"):null,e.result=void 0,e.target||(e.target=n),t=null==t?[e]:k.makeArray(t,[e]),c=k.event.special[d]||{},r||!c.trigger||!1!==c.trigger.apply(n,t))){if(!r&&!c.noBubble&&!x(n)){for(s=c.delegateType||d,Tt.test(s+d)||(o=o.parentNode);o;o=o.parentNode)p.push(o),a=o;a===(n.ownerDocument||E)&&p.push(a.defaultView||a.parentWindow||C)}i=0;while((o=p[i++])&&!e.isPropagationStopped())f=o,e.type=1<i?s:c.bindType||d,(l=(Q.get(o,"events")||{})[e.type]&&Q.get(o,"handle"))&&l.apply(o,t),(l=u&&o[u])&&l.apply&&G(o)&&(e.result=l.apply(o,t),!1===e.result&&e.preventDefault());return e.type=d,r||e.isDefaultPrevented()||c._default&&!1!==c._default.apply(p.pop(),t)||!G(n)||u&&m(n[d])&&!x(n)&&((a=n[u])&&(n[u]=null),k.event.triggered=d,e.isPropagationStopped()&&f.addEventListener(d,Ct),n[d](),e.isPropagationStopped()&&f.removeEventListener(d,Ct),k.event.triggered=void 0,a&&(n[u]=a)),e.result}},simulate:function(e,t,n){var r=k.extend(new k.Event,n,{type:e,isSimulated:!0});k.event.trigger(r,null,t)}}),k.fn.extend({trigger:function(e,t){return this.each(function(){k.event.trigger(e,t,this)})},triggerHandler:function(e,t){var n=this[0];if(n)return k.event.trigger(e,t,n,!0)}}),y.focusin||k.each({focus:"focusin",blur:"focusout"},function(n,r){var i=function(e){k.event.simulate(r,e.target,k.event.fix(e))};k.event.special[r]={setup:function(){var e=this.ownerDocument||this,t=Q.access(e,r);t||e.addEventListener(n,i,!0),Q.access(e,r,(t||0)+1)},teardown:function(){var e=this.ownerDocument||this,t=Q.access(e,r)-1;t?Q.access(e,r,t):(e.removeEventListener(n,i,!0),Q.remove(e,r))}}});var Et=C.location,kt=Date.now(),St=/\?/;k.parseXML=function(e){var t;if(!e||"string"!=typeof e)return null;try{t=(new C.DOMParser).parseFromString(e,"text/xml")}catch(e){t=void 0}return t&&!t.getElementsByTagName("parsererror").length||k.error("Invalid XML: "+e),t};var Nt=/\[\]$/,At=/\r?\n/g,Dt=/^(?:submit|button|image|reset|file)$/i,jt=/^(?:input|select|textarea|keygen)/i;function qt(n,e,r,i){var t;if(Array.isArray(e))k.each(e,function(e,t){r||Nt.test(n)?i(n,t):qt(n+"["+("object"==typeof t&&null!=t?e:"")+"]",t,r,i)});else if(r||"object"!==w(e))i(n,e);else for(t in e)qt(n+"["+t+"]",e[t],r,i)}k.param=function(e,t){var n,r=[],i=function(e,t){var n=m(t)?t():t;r[r.length]=encodeURIComponent(e)+"="+encodeURIComponent(null==n?"":n)};if(null==e)return"";if(Array.isArray(e)||e.jquery&&!k.isPlainObject(e))k.each(e,function(){i(this.name,this.value)});else for(n in e)qt(n,e[n],t,i);return r.join("&")},k.fn.extend({serialize:function(){return k.param(this.serializeArray())},serializeArray:function(){return this.map(function(){var e=k.prop(this,"elements");return e?k.makeArray(e):this}).filter(function(){var e=this.type;return this.name&&!k(this).is(":disabled")&&jt.test(this.nodeName)&&!Dt.test(e)&&(this.checked||!pe.test(e))}).map(function(e,t){var n=k(this).val();return null==n?null:Array.isArray(n)?k.map(n,function(e){return{name:t.name,value:e.replace(At,"\r\n")}}):{name:t.name,value:n.replace(At,"\r\n")}}).get()}});var Lt=/%20/g,Ht=/#.*$/,Ot=/([?&])_=[^&]*/,Pt=/^(.*?):[ \t]*([^\r\n]*)$/gm,Rt=/^(?:GET|HEAD)$/,Mt=/^\/\//,It={},Wt={},$t="*/".concat("*"),Ft=E.createElement("a");function Bt(o){return function(e,t){"string"!=typeof e&&(t=e,e="*");var n,r=0,i=e.toLowerCase().match(R)||[];if(m(t))while(n=i[r++])"+"===n[0]?(n=n.slice(1)||"*",(o[n]=o[n]||[]).unshift(t)):(o[n]=o[n]||[]).push(t)}}function _t(t,i,o,a){var s={},u=t===Wt;function l(e){var r;return s[e]=!0,k.each(t[e]||[],function(e,t){var n=t(i,o,a);return"string"!=typeof n||u||s[n]?u?!(r=n):void 0:(i.dataTypes.unshift(n),l(n),!1)}),r}return l(i.dataTypes[0])||!s["*"]&&l("*")}function zt(e,t){var n,r,i=k.ajaxSettings.flatOptions||{};for(n in t)void 0!==t[n]&&((i[n]?e:r||(r={}))[n]=t[n]);return r&&k.extend(!0,e,r),e}Ft.href=Et.href,k.extend({active:0,lastModified:{},etag:{},ajaxSettings:{url:Et.href,type:"GET",isLocal:/^(?:about|app|app-storage|.+-extension|file|res|widget):$/.test(Et.protocol),global:!0,processData:!0,async:!0,contentType:"application/x-www-form-urlencoded; charset=UTF-8",accepts:{"*":$t,text:"text/plain",html:"text/html",xml:"application/xml, text/xml",json:"application/json, text/javascript"},contents:{xml:/\bxml\b/,html:/\bhtml/,json:/\bjson\b/},responseFields:{xml:"responseXML",text:"responseText",json:"responseJSON"},converters:{"* text":String,"text html":!0,"text json":JSON.parse,"text xml":k.parseXML},flatOptions:{url:!0,context:!0}},ajaxSetup:function(e,t){return t?zt(zt(e,k.ajaxSettings),t):zt(k.ajaxSettings,e)},ajaxPrefilter:Bt(It),ajaxTransport:Bt(Wt),ajax:function(e,t){"object"==typeof e&&(t=e,e=void 0),t=t||{};var c,f,p,n,d,r,h,g,i,o,v=k.ajaxSetup({},t),y=v.context||v,m=v.context&&(y.nodeType||y.jquery)?k(y):k.event,x=k.Deferred(),b=k.Callbacks("once memory"),w=v.statusCode||{},a={},s={},u="canceled",T={readyState:0,getResponseHeader:function(e){var t;if(h){if(!n){n={};while(t=Pt.exec(p))n[t[1].toLowerCase()+" "]=(n[t[1].toLowerCase()+" "]||[]).concat(t[2])}t=n[e.toLowerCase()+" "]}return null==t?null:t.join(", ")},getAllResponseHeaders:function(){return h?p:null},setRequestHeader:function(e,t){return null==h&&(e=s[e.toLowerCase()]=s[e.toLowerCase()]||e,a[e]=t),this},overrideMimeType:function(e){return null==h&&(v.mimeType=e),this},statusCode:function(e){var t;if(e)if(h)T.always(e[T.status]);else for(t in e)w[t]=[w[t],e[t]];return this},abort:function(e){var t=e||u;return c&&c.abort(t),l(0,t),this}};if(x.promise(T),v.url=((e||v.url||Et.href)+"").replace(Mt,Et.protocol+"//"),v.type=t.method||t.type||v.method||v.type,v.dataTypes=(v.dataType||"*").toLowerCase().match(R)||[""],null==v.crossDomain){r=E.createElement("a");try{r.href=v.url,r.href=r.href,v.crossDomain=Ft.protocol+"//"+Ft.host!=r.protocol+"//"+r.host}catch(e){v.crossDomain=!0}}if(v.data&&v.processData&&"string"!=typeof v.data&&(v.data=k.param(v.data,v.traditional)),_t(It,v,t,T),h)return T;for(i in(g=k.event&&v.global)&&0==k.active++&&k.event.trigger("ajaxStart"),v.type=v.type.toUpperCase(),v.hasContent=!Rt.test(v.type),f=v.url.replace(Ht,""),v.hasContent?v.data&&v.processData&&0===(v.contentType||"").indexOf("application/x-www-form-urlencoded")&&(v.data=v.data.replace(Lt,"+")):(o=v.url.slice(f.length),v.data&&(v.processData||"string"==typeof v.data)&&(f+=(St.test(f)?"&":"?")+v.data,delete v.data),!1===v.cache&&(f=f.replace(Ot,"$1"),o=(St.test(f)?"&":"?")+"_="+kt+++o),v.url=f+o),v.ifModified&&(k.lastModified[f]&&T.setRequestHeader("If-Modified-Since",k.lastModified[f]),k.etag[f]&&T.setRequestHeader("If-None-Match",k.etag[f])),(v.data&&v.hasContent&&!1!==v.contentType||t.contentType)&&T.setRequestHeader("Content-Type",v.contentType),T.setRequestHeader("Accept",v.dataTypes[0]&&v.accepts[v.dataTypes[0]]?v.accepts[v.dataTypes[0]]+("*"!==v.dataTypes[0]?", "+$t+"; q=0.01":""):v.accepts["*"]),v.headers)T.setRequestHeader(i,v.headers[i]);if(v.beforeSend&&(!1===v.beforeSend.call(y,T,v)||h))return T.abort();if(u="abort",b.add(v.complete),T.done(v.success),T.fail(v.error),c=_t(Wt,v,t,T)){if(T.readyState=1,g&&m.trigger("ajaxSend",[T,v]),h)return T;v.async&&0<v.timeout&&(d=C.setTimeout(function(){T.abort("timeout")},v.timeout));try{h=!1,c.send(a,l)}catch(e){if(h)throw e;l(-1,e)}}else l(-1,"No Transport");function l(e,t,n,r){var i,o,a,s,u,l=t;h||(h=!0,d&&C.clearTimeout(d),c=void 0,p=r||"",T.readyState=0<e?4:0,i=200<=e&&e<300||304===e,n&&(s=function(e,t,n){var r,i,o,a,s=e.contents,u=e.dataTypes;while("*"===u[0])u.shift(),void 0===r&&(r=e.mimeType||t.getResponseHeader("Content-Type"));if(r)for(i in s)if(s[i]&&s[i].test(r)){u.unshift(i);break}if(u[0]in n)o=u[0];else{for(i in n){if(!u[0]||e.converters[i+" "+u[0]]){o=i;break}a||(a=i)}o=o||a}if(o)return o!==u[0]&&u.unshift(o),n[o]}(v,T,n)),s=function(e,t,n,r){var i,o,a,s,u,l={},c=e.dataTypes.slice();if(c[1])for(a in e.converters)l[a.toLowerCase()]=e.converters[a];o=c.shift();while(o)if(e.responseFields[o]&&(n[e.responseFields[o]]=t),!u&&r&&e.dataFilter&&(t=e.dataFilter(t,e.dataType)),u=o,o=c.shift())if("*"===o)o=u;else if("*"!==u&&u!==o){if(!(a=l[u+" "+o]||l["* "+o]))for(i in l)if((s=i.split(" "))[1]===o&&(a=l[u+" "+s[0]]||l["* "+s[0]])){!0===a?a=l[i]:!0!==l[i]&&(o=s[0],c.unshift(s[1]));break}if(!0!==a)if(a&&e["throws"])t=a(t);else try{t=a(t)}catch(e){return{state:"parsererror",error:a?e:"No conversion from "+u+" to "+o}}}return{state:"success",data:t}}(v,s,T,i),i?(v.ifModified&&((u=T.getResponseHeader("Last-Modified"))&&(k.lastModified[f]=u),(u=T.getResponseHeader("etag"))&&(k.etag[f]=u)),204===e||"HEAD"===v.type?l="nocontent":304===e?l="notmodified":(l=s.state,o=s.data,i=!(a=s.error))):(a=l,!e&&l||(l="error",e<0&&(e=0))),T.status=e,T.statusText=(t||l)+"",i?x.resolveWith(y,[o,l,T]):x.rejectWith(y,[T,l,a]),T.statusCode(w),w=void 0,g&&m.trigger(i?"ajaxSuccess":"ajaxError",[T,v,i?o:a]),b.fireWith(y,[T,l]),g&&(m.trigger("ajaxComplete",[T,v]),--k.active||k.event.trigger("ajaxStop")))}return T},getJSON:function(e,t,n){return k.get(e,t,n,"json")},getScript:function(e,t){return k.get(e,void 0,t,"script")}}),k.each(["get","post"],function(e,i){k[i]=function(e,t,n,r){return m(t)&&(r=r||n,n=t,t=void 0),k.ajax(k.extend({url:e,type:i,dataType:r,data:t,success:n},k.isPlainObject(e)&&e))}}),k._evalUrl=function(e,t){return k.ajax({url:e,type:"GET",dataType:"script",cache:!0,async:!1,global:!1,converters:{"text script":function(){}},dataFilter:function(e){k.globalEval(e,t)}})},k.fn.extend({wrapAll:function(e){var t;return this[0]&&(m(e)&&(e=e.call(this[0])),t=k(e,this[0].ownerDocument).eq(0).clone(!0),this[0].parentNode&&t.insertBefore(this[0]),t.map(function(){var e=this;while(e.firstElementChild)e=e.firstElementChild;return e}).append(this)),this},wrapInner:function(n){return m(n)?this.each(function(e){k(this).wrapInner(n.call(this,e))}):this.each(function(){var e=k(this),t=e.contents();t.length?t.wrapAll(n):e.append(n)})},wrap:function(t){var n=m(t);return this.each(function(e){k(this).wrapAll(n?t.call(this,e):t)})},unwrap:function(e){return this.parent(e).not("body").each(function(){k(this).replaceWith(this.childNodes)}),this}}),k.expr.pseudos.hidden=function(e){return!k.expr.pseudos.visible(e)},k.expr.pseudos.visible=function(e){return!!(e.offsetWidth||e.offsetHeight||e.getClientRects().length)},k.ajaxSettings.xhr=function(){try{return new C.XMLHttpRequest}catch(e){}};var Ut={0:200,1223:204},Xt=k.ajaxSettings.xhr();y.cors=!!Xt&&"withCredentials"in Xt,y.ajax=Xt=!!Xt,k.ajaxTransport(function(i){var o,a;if(y.cors||Xt&&!i.crossDomain)return{send:function(e,t){var n,r=i.xhr();if(r.open(i.type,i.url,i.async,i.username,i.password),i.xhrFields)for(n in i.xhrFields)r[n]=i.xhrFields[n];for(n in i.mimeType&&r.overrideMimeType&&r.overrideMimeType(i.mimeType),i.crossDomain||e["X-Requested-With"]||(e["X-Requested-With"]="XMLHttpRequest"),e)r.setRequestHeader(n,e[n]);o=function(e){return function(){o&&(o=a=r.onload=r.onerror=r.onabort=r.ontimeout=r.onreadystatechange=null,"abort"===e?r.abort():"error"===e?"number"!=typeof r.status?t(0,"error"):t(r.status,r.statusText):t(Ut[r.status]||r.status,r.statusText,"text"!==(r.responseType||"text")||"string"!=typeof r.responseText?{binary:r.response}:{text:r.responseText},r.getAllResponseHeaders()))}},r.onload=o(),a=r.onerror=r.ontimeout=o("error"),void 0!==r.onabort?r.onabort=a:r.onreadystatechange=function(){4===r.readyState&&C.setTimeout(function(){o&&a()})},o=o("abort");try{r.send(i.hasContent&&i.data||null)}catch(e){if(o)throw e}},abort:function(){o&&o()}}}),k.ajaxPrefilter(function(e){e.crossDomain&&(e.contents.script=!1)}),k.ajaxSetup({accepts:{script:"text/javascript, application/javascript, application/ecmascript, application/x-ecmascript"},contents:{script:/\b(?:java|ecma)script\b/},converters:{"text script":function(e){return k.globalEval(e),e}}}),k.ajaxPrefilter("script",function(e){void 0===e.cache&&(e.cache=!1),e.crossDomain&&(e.type="GET")}),k.ajaxTransport("script",function(n){var r,i;if(n.crossDomain||n.scriptAttrs)return{send:function(e,t){r=k("<script>").attr(n.scriptAttrs||{}).prop({charset:n.scriptCharset,src:n.url}).on("load error",i=function(e){r.remove(),i=null,e&&t("error"===e.type?404:200,e.type)}),E.head.appendChild(r[0])},abort:function(){i&&i()}}});var Vt,Gt=[],Yt=/(=)\?(?=&|$)|\?\?/;k.ajaxSetup({jsonp:"callback",jsonpCallback:function(){var e=Gt.pop()||k.expando+"_"+kt++;return this[e]=!0,e}}),k.ajaxPrefilter("json jsonp",function(e,t,n){var r,i,o,a=!1!==e.jsonp&&(Yt.test(e.url)?"url":"string"==typeof e.data&&0===(e.contentType||"").indexOf("application/x-www-form-urlencoded")&&Yt.test(e.data)&&"data");if(a||"jsonp"===e.dataTypes[0])return r=e.jsonpCallback=m(e.jsonpCallback)?e.jsonpCallback():e.jsonpCallback,a?e[a]=e[a].replace(Yt,"$1"+r):!1!==e.jsonp&&(e.url+=(St.test(e.url)?"&":"?")+e.jsonp+"="+r),e.converters["script json"]=function(){return o||k.error(r+" was not called"),o[0]},e.dataTypes[0]="json",i=C[r],C[r]=function(){o=arguments},n.always(function(){void 0===i?k(C).removeProp(r):C[r]=i,e[r]&&(e.jsonpCallback=t.jsonpCallback,Gt.push(r)),o&&m(i)&&i(o[0]),o=i=void 0}),"script"}),y.createHTMLDocument=((Vt=E.implementation.createHTMLDocument("").body).innerHTML="<form></form><form></form>",2===Vt.childNodes.length),k.parseHTML=function(e,t,n){return"string"!=typeof e?[]:("boolean"==typeof t&&(n=t,t=!1),t||(y.createHTMLDocument?((r=(t=E.implementation.createHTMLDocument("")).createElement("base")).href=E.location.href,t.head.appendChild(r)):t=E),o=!n&&[],(i=D.exec(e))?[t.createElement(i[1])]:(i=we([e],t,o),o&&o.length&&k(o).remove(),k.merge([],i.childNodes)));var r,i,o},k.fn.load=function(e,t,n){var r,i,o,a=this,s=e.indexOf(" ");return-1<s&&(r=mt(e.slice(s)),e=e.slice(0,s)),m(t)?(n=t,t=void 0):t&&"object"==typeof t&&(i="POST"),0<a.length&&k.ajax({url:e,type:i||"GET",dataType:"html",data:t}).done(function(e){o=arguments,a.html(r?k("<div>").append(k.parseHTML(e)).find(r):e)}).always(n&&function(e,t){a.each(function(){n.apply(this,o||[e.responseText,t,e])})}),this},k.each(["ajaxStart","ajaxStop","ajaxComplete","ajaxError","ajaxSuccess","ajaxSend"],function(e,t){k.fn[t]=function(e){return this.on(t,e)}}),k.expr.pseudos.animated=function(t){return k.grep(k.timers,function(e){return t===e.elem}).length},k.offset={setOffset:function(e,t,n){var r,i,o,a,s,u,l=k.css(e,"position"),c=k(e),f={};"static"===l&&(e.style.position="relative"),s=c.offset(),o=k.css(e,"top"),u=k.css(e,"left"),("absolute"===l||"fixed"===l)&&-1<(o+u).indexOf("auto")?(a=(r=c.position()).top,i=r.left):(a=parseFloat(o)||0,i=parseFloat(u)||0),m(t)&&(t=t.call(e,n,k.extend({},s))),null!=t.top&&(f.top=t.top-s.top+a),null!=t.left&&(f.left=t.left-s.left+i),"using"in t?t.using.call(e,f):c.css(f)}},k.fn.extend({offset:function(t){if(arguments.length)return void 0===t?this:this.each(function(e){k.offset.setOffset(this,t,e)});var e,n,r=this[0];return r?r.getClientRects().length?(e=r.getBoundingClientRect(),n=r.ownerDocument.defaultView,{top:e.top+n.pageYOffset,left:e.left+n.pageXOffset}):{top:0,left:0}:void 0},position:function(){if(this[0]){var e,t,n,r=this[0],i={top:0,left:0};if("fixed"===k.css(r,"position"))t=r.getBoundingClientRect();else{t=this.offset(),n=r.ownerDocument,e=r.offsetParent||n.documentElement;while(e&&(e===n.body||e===n.documentElement)&&"static"===k.css(e,"position"))e=e.parentNode;e&&e!==r&&1===e.nodeType&&((i=k(e).offset()).top+=k.css(e,"borderTopWidth",!0),i.left+=k.css(e,"borderLeftWidth",!0))}return{top:t.top-i.top-k.css(r,"marginTop",!0),left:t.left-i.left-k.css(r,"marginLeft",!0)}}},offsetParent:function(){return this.map(function(){var e=this.offsetParent;while(e&&"static"===k.css(e,"position"))e=e.offsetParent;return e||ie})}}),k.each({scrollLeft:"pageXOffset",scrollTop:"pageYOffset"},function(t,i){var o="pageYOffset"===i;k.fn[t]=function(e){return _(this,function(e,t,n){var r;if(x(e)?r=e:9===e.nodeType&&(r=e.defaultView),void 0===n)return r?r[i]:e[t];r?r.scrollTo(o?r.pageXOffset:n,o?n:r.pageYOffset):e[t]=n},t,e,arguments.length)}}),k.each(["top","left"],function(e,n){k.cssHooks[n]=ze(y.pixelPosition,function(e,t){if(t)return t=_e(e,n),$e.test(t)?k(e).position()[n]+"px":t})}),k.each({Height:"height",Width:"width"},function(a,s){k.each({padding:"inner"+a,content:s,"":"outer"+a},function(r,o){k.fn[o]=function(e,t){var n=arguments.length&&(r||"boolean"!=typeof e),i=r||(!0===e||!0===t?"margin":"border");return _(this,function(e,t,n){var r;return x(e)?0===o.indexOf("outer")?e["inner"+a]:e.document.documentElement["client"+a]:9===e.nodeType?(r=e.documentElement,Math.max(e.body["scroll"+a],r["scroll"+a],e.body["offset"+a],r["offset"+a],r["client"+a])):void 0===n?k.css(e,t,i):k.style(e,t,n,i)},s,n?e:void 0,n)}})}),k.each("blur focus focusin focusout resize scroll click dblclick mousedown mouseup mousemove mouseover mouseout mouseenter mouseleave change select submit keydown keypress keyup contextmenu".split(" "),function(e,n){k.fn[n]=function(e,t){return 0<arguments.length?this.on(n,null,e,t):this.trigger(n)}}),k.fn.extend({hover:function(e,t){return this.mouseenter(e).mouseleave(t||e)}}),k.fn.extend({bind:function(e,t,n){return this.on(e,null,t,n)},unbind:function(e,t){return this.off(e,null,t)},delegate:function(e,t,n,r){return this.on(t,e,n,r)},undelegate:function(e,t,n){return 1===arguments.length?this.off(e,"**"):this.off(t,e||"**",n)}}),k.proxy=function(e,t){var n,r,i;if("string"==typeof t&&(n=e[t],t=e,e=n),m(e))return r=s.call(arguments,2),(i=function(){return e.apply(t||this,r.concat(s.call(arguments)))}).guid=e.guid=e.guid||k.guid++,i},k.holdReady=function(e){e?k.readyWait++:k.ready(!0)},k.isArray=Array.isArray,k.parseJSON=JSON.parse,k.nodeName=A,k.isFunction=m,k.isWindow=x,k.camelCase=V,k.type=w,k.now=Date.now,k.isNumeric=function(e){var t=k.type(e);return("number"===t||"string"===t)&&!isNaN(e-parseFloat(e))},"function"==typeof define&&define.amd&&define("jquery",[],function(){return k});var Qt=C.jQuery,Jt=C.$;return k.noConflict=function(e){return C.$===k&&(C.$=Jt),e&&C.jQuery===k&&(C.jQuery=Qt),k},e||(C.jQuery=C.$=k),k}); diff --git a/data/extensions/gnuzilla-ext-workarounds@gnu.org/html/usps_postage.js b/data/extensions/gnuzilla-ext-workarounds@gnu.org/html/usps_postage.js new file mode 100644 index 0000000..3380b61 --- /dev/null +++ b/data/extensions/gnuzilla-ext-workarounds@gnu.org/html/usps_postage.js @@ -0,0 +1,375 @@ +/* + + Copyright (C) 2017-2019 Nathan Nichols + + This program is free software: you can redistribute it and/or modify + it under the terms of the GNU General Public License as published by + the Free Software Foundation, either version 3 of the License, or + (at your option) any later version. + + This program is distributed in the hope that it will be useful, + but WITHOUT ANY WARRANTY; without even the implied warranty of + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + GNU General Public License for more details. + + You should have received a copy of the GNU General Public License + along with this program. If not, see <http://www.gnu.org/licenses/>. + +*/ + +console.log("usps_postage.js"); + + +function is_in(a, arr){ + for(var i = 0; i < arr.length; i++){ + if(a == arr[i]){ + return true; + } + } + + return false; + +} +function disable(name){ + off = document.getElementsByName(name); + for(var i = 0; i < off.length; i++){ + off[i].style = "display:none;" + } +} +function enable(name){ + on = document.getElementsByName(name); + for(var i = 0; i < on.length; i++){ + on[i].style = "" + } +} + + + +function tag(name){ + return "<"+name+">"; +} +function etag(name){ + return "</"+name+">"; + +} +function surround(name,content){ + return tag(name) + content + etag(name); +} +function visible(name){ + if(document.getElementsByName(name)[0].style.display == "none"){ + return false; + }else{ + return true; + } +} + +function gen_package(data){ + var res = '<Package ID="0">'; + res = res + surround("Service", data["Service"]); + + if(visible("FirstClassMailType")){ + res=res+surround("FirstClassMailType", data["FirstClassMailType"]); + } + res = res + surround("ZipOrigination", data["ZipOrigination"]); + res = res + surround("ZipDestination", data["ZipDestination"]); + res = res + surround("Pounds", data["Pounds"]); + res = res + surround("Ounces", "0"); + + res = res + surround("Container", data["Container"]); + res = res + surround("Machinable", data["Machinable"]); + + res = res + etag("Package"); + + return res; +} + +function build_xml_domestic(data){ + var res = '<RateV4Request USERID="' +data["USERID"] +'">'; + res = res + "<Revision>2</Revision>"; + res = res + gen_package(data); + res = res + etag("RateV4Request"); + return res; +} + +function check_domestic(req){ + console.log("Form changed."); + + serv = req["Service"]; + // "Machinable" required for: + mach=["FIRST CLASS","LETTER","FLAT","RETAIL GROUND","ALL","ONLINE"]; + if(is_in(serv, mach) == true){ + enable("Machinable"); + }else{ + disable("Machinable") + } + + if(serv == "Retail Ground"){ + enable("GroundOnly"); + }else{ + disable("GroundOnly"); + } + + fcmt=["FIRST CLASS","FIRST CLASS COMMERCIAL","FIRST CLASS HFP COMMERCIAL"]; + if(is_in(serv, fcmt)){ + enable("FirstClassMailType"); + }else{ + disable("FirstClassMailType"); + } + + if(resp["ContentType"] == "LIVES"){ + enable("ContentDescription"); + }else{ + disable("ContentDescription"); + } +}; +function check_intl(req){ + console.log("Form changed."); + +}; + + +function byname(name){ + return document.getElementsByName(name)[0].value; +} + +// Return an array of the selected opion values +function select_values(name) { + var opts = document.getElementsByName(name)[0].options + var res = []; + for(var i = 0; i < opts.length; i++){ + if(opts[i].selected){ + res.push(opts[i].value); + } + } + return res; +} + +// reads the form and returns a dictionary +function read_domestic(){ + resp = {}; + resp["USERID"] = byname("USERID"); + resp["Service"] = byname("Service"); + resp["FirstClassMailType"] = byname("FirstClassMailType"); + resp["Machinable"] = byname("Machinable"); + resp["ZipOrigination"] = byname("ZipOrigination"); + resp["ZipDestination"] = byname("ZipDestination"); + resp["Pounds"] = byname("Pounds"); + resp["Container"] = byname("Container"); + //resp["Size"] = byname("Size"); + resp["Width"] = byname("Width"); + resp["Length"] = byname("Length"); + resp["Height"] = byname("Height"); + resp["Girth"] = byname("Girth"); + resp["Value"] = byname("Value"); + resp["AmountToCollect"] = byname("AmountToCollect"); + resp["SpecialServices"] = select_values("SpecialService"); + resp["ContentType"] = byname("ContentType"); + + if(resp["ContentType"] == "DEFAULT"){ + resp["ContentType"] = ""; + } + return resp; +} + + +// reads the form and returns a dictionary +function read_intl(){ + resp = {}; + resp["USERID"] = byname("USERID2"); + resp["Machinable"] = byname("Machinable2"); + resp["MailType"] = byname("MailType"); + //resp["POBoxFlag"] = byname("POBoxFlag"); + //resp["GiftFlag"] = byname("GiftFlag"); + resp["ValueOfContents"] = byname("ValueOfContents"); + resp["Country"] = byname("Country"); + resp["Pounds"] = byname("Pounds2"); + resp["GiftFlag"] = byname("GiftFlag"); + resp["POBoxFlag"] = byname("POBoxFlag"); + resp["OriginZip"] = byname("OriginZip"); + resp["Width"] = byname("Width2"); + resp["Length"] = byname("Length2"); + resp["Height"] = byname("Height2"); + resp["Girth"] = byname("Girth2"); + resp["Container"] = byname("Container2"); + resp["CommercialFlag"] = byname("CommercialFlag"); + resp["CommercialPlusFlag"] = byname("CommercialPlusFlag"); + resp["Size"] = byname("Size2"); + + + return resp; +} + +function decode_html(input){ + var e = document.createElement('div'); + e.innerHTML = input; + return e.childNodes.length === 0 ? "" : e.childNodes[0].nodeValue; +} + + +function make_row(name, avail, price){ + res = "<tr>"; + res = res+"<td>"+name+"</td>"; + res = res+"<td>"+avail+"</td>"; + res = res+"<td>"+price+"</td>"; + res = res+"</tr>\n"; + return res; + +} + +function parse_response(resp){ + console.log(resp.documentElement.outerHTML); + xml_doc = $.parseXML(resp.documentElement.outerHTML); + $xml = $(xml_doc); + errs = $xml.find("Error"); + console.log(errs); + + var res = ""; + + if(errs.length > 0){ + for(var i = 0; i < errs.length; i++){ + res = res+i.toString()+": "+$(errs[i]).find("Description")[0].innerHTML; + res = res +"<br>"; + } + $("#errors").html(res) + $("#mainrate").html(""); + $("#results").html(""); + + return ""; + } + + $pack = $($xml.find("Package")[0]); + + // Get Parse the main result + mailserv = decode_html($pack.find("MailService")[0].innerHTML); + rate = $pack.find("Rate")[0].innerHTML; + + var res = ""; + res = "<b>Mail Service:</b>"+mailserv+"<br>"; + res = res+"<b>Rate:</b>"+rate+"<br>\n" + + // Generate a table of the services available + servs = $pack.find("SpecialService"); + table = make_row("<b> Service name </b>", "<b>Available</b>", "<b>Price</b>"); + for(var i = 0; i < servs.length; i++){ + serv = $(servs[i]); + name = decode_html(serv.find("ServiceName")[0].innerHTML); + avail = serv.find("Available")[0].innerHTML; + price = serv.find("Price")[0].innerHTML; + table = table + make_row(name,avail,price); + } + + table = "<tbody>"+table+"</tbody>"; + $("#mainrate").html(res); + $("#results").html(table); + return table; +} + + +function make_api_call(url){ + $.ajax({ + url: url, + cache: false, + type: 'post', + }).done(function(d){ + console.log("Success"); + var res = parse_response(d); + //$("#results").html(res); + }).always(function(){ + + }).fail(function(d){ + console.log("Failed"); + console.log(d); + }); +} + +function gen_package_intl(data){ + var res = ""; + res = res + '<Package ID="0">'; + res = res + surround("Pounds",data["Pounds"]) + res = res + surround("Ounces","0"); + res = res + surround("Machinable",data["Machinable"]); + res = res + surround("MailType",data["MailType"]); + /* + res = res + "<GXG>" + res = res + surround("POBoxFlag",data["POBoxFlag"]); + res = res + surround("GiftFlag",data["GiftFlag"]); + res = res + "</GXG>" + */ + res = res + surround("ValueOfContents", data["ValueOfContents"]); + res = res + surround("Country",data["Country"]); + //res = res + surround("Size",data["Size"]); + //res = res + surround("Container",data["Container"]); + //res = res + surround("Width",data["Width"]); + //res = res + surround("Length",data["Length"]); + //res = res + surround("Height",data["Height"]); + //res = res + surround("Girth",data["Girth"]); + res = res + surround("OriginZip",data["OriginZip"]); + + res = res + '</Package>'; + + return res; +} + + +function build_xml_intl(data){ + res = ""; + res = res + '<IntlRateV2Request USERID="'+data["USERID"]+'">'; + res = res + gen_package_intl(data); + + res = res + "</IntlRateV2Request>"; + console.log(res); + return res; +}; + + + +window.addEventListener('load', (event) => { + + $("#button_domestic").bind("click",function(){ + console.log("Making request"); + r = read_domestic(); + check_domestic(r); + url = "http://production.shippingapis.com/ShippingAPI.dll?API=RateV4&XML="; + url = url + build_xml_domestic(r); + console.log(url); + make_api_call(url); + }); + + console.log("Window loaded.") + disable("Machinable"); + disable("FirstClassMailType"); + disable("ContentDescription"); + disable("GroundOnly"); + + document.getElementById("button_intl").style = "display:none;"; + document.forms[1].style = "display:none;"; + + document.forms[0].addEventListener("change", function(){ + r = read_domestic(); + check_domestic(r); + url = "http://production.shippingapis.com/ShippingAPI.dll?API=RateV4&XML="; + url = url + build_xml_domestic(r); + console.log(url); + }); + + $("#button_intl").bind("click",function(){ + console.log("Making request"); + r = read_intl(); + check_intl(r); + url = "http://production.shippingapis.com/ShippingAPI.dll?API=IntlRateV2&XML="; + url = url + build_xml_intl(r); + console.log(url); + make_api_call(url); + }); + + document.forms[1].addEventListener("change", function(){ + r = read_intl(); + url = "http://production.shippingapis.com/ShippingAPI.dll?API=IntlRateV2&XML="; + url = url + build_xml_intl(r); + console.log(url); + }); + +}); + + + diff --git a/data/extensions/gnuzilla-ext-workarounds@gnu.org/html/usps_postage.js~ b/data/extensions/gnuzilla-ext-workarounds@gnu.org/html/usps_postage.js~ new file mode 100644 index 0000000..bf42d49 --- /dev/null +++ b/data/extensions/gnuzilla-ext-workarounds@gnu.org/html/usps_postage.js~ @@ -0,0 +1,376 @@ +/* + + Copyright (C) 2017-2019 Nathan Nichols + Copyright (C) 2019 Free Software Foundation + + This program is free software: you can redistribute it and/or modify + it under the terms of the GNU General Public License as published by + the Free Software Foundation, either version 3 of the License, or + (at your option) any later version. + + This program is distributed in the hope that it will be useful, + but WITHOUT ANY WARRANTY; without even the implied warranty of + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + GNU General Public License for more details. + + You should have received a copy of the GNU General Public License + along with this program. If not, see <http://www.gnu.org/licenses/>. + +*/ + +console.log("usps_postage.js"); + + +function is_in(a, arr){ + for(var i = 0; i < arr.length; i++){ + if(a == arr[i]){ + return true; + } + } + + return false; + +} +function disable(name){ + off = document.getElementsByName(name); + for(var i = 0; i < off.length; i++){ + off[i].style = "display:none;" + } +} +function enable(name){ + on = document.getElementsByName(name); + for(var i = 0; i < on.length; i++){ + on[i].style = "" + } +} + + + +function tag(name){ + return "<"+name+">"; +} +function etag(name){ + return "</"+name+">"; + +} +function surround(name,content){ + return tag(name) + content + etag(name); +} +function visible(name){ + if(document.getElementsByName(name)[0].style.display == "none"){ + return false; + }else{ + return true; + } +} + +function gen_package(data){ + var res = '<Package ID="0">'; + res = res + surround("Service", data["Service"]); + + if(visible("FirstClassMailType")){ + res=res+surround("FirstClassMailType", data["FirstClassMailType"]); + } + res = res + surround("ZipOrigination", data["ZipOrigination"]); + res = res + surround("ZipDestination", data["ZipDestination"]); + res = res + surround("Pounds", data["Pounds"]); + res = res + surround("Ounces", "0"); + + res = res + surround("Container", data["Container"]); + res = res + surround("Machinable", data["Machinable"]); + + res = res + etag("Package"); + + return res; +} + +function build_xml_domestic(data){ + var res = '<RateV4Request USERID="' +data["USERID"] +'">'; + res = res + "<Revision>2</Revision>"; + res = res + gen_package(data); + res = res + etag("RateV4Request"); + return res; +} + +function check_domestic(req){ + console.log("Form changed."); + + serv = req["Service"]; + // "Machinable" required for: + mach=["FIRST CLASS","LETTER","FLAT","RETAIL GROUND","ALL","ONLINE"]; + if(is_in(serv, mach) == true){ + enable("Machinable"); + }else{ + disable("Machinable") + } + + if(serv == "Retail Ground"){ + enable("GroundOnly"); + }else{ + disable("GroundOnly"); + } + + fcmt=["FIRST CLASS","FIRST CLASS COMMERCIAL","FIRST CLASS HFP COMMERCIAL"]; + if(is_in(serv, fcmt)){ + enable("FirstClassMailType"); + }else{ + disable("FirstClassMailType"); + } + + if(resp["ContentType"] == "LIVES"){ + enable("ContentDescription"); + }else{ + disable("ContentDescription"); + } +}; +function check_intl(req){ + console.log("Form changed."); + +}; + + +function byname(name){ + return document.getElementsByName(name)[0].value; +} + +// Return an array of the selected opion values +function select_values(name) { + var opts = document.getElementsByName(name)[0].options + var res = []; + for(var i = 0; i < opts.length; i++){ + if(opts[i].selected){ + res.push(opts[i].value); + } + } + return res; +} + +// reads the form and returns a dictionary +function read_domestic(){ + resp = {}; + resp["USERID"] = byname("USERID"); + resp["Service"] = byname("Service"); + resp["FirstClassMailType"] = byname("FirstClassMailType"); + resp["Machinable"] = byname("Machinable"); + resp["ZipOrigination"] = byname("ZipOrigination"); + resp["ZipDestination"] = byname("ZipDestination"); + resp["Pounds"] = byname("Pounds"); + resp["Container"] = byname("Container"); + //resp["Size"] = byname("Size"); + resp["Width"] = byname("Width"); + resp["Length"] = byname("Length"); + resp["Height"] = byname("Height"); + resp["Girth"] = byname("Girth"); + resp["Value"] = byname("Value"); + resp["AmountToCollect"] = byname("AmountToCollect"); + resp["SpecialServices"] = select_values("SpecialService"); + resp["ContentType"] = byname("ContentType"); + + if(resp["ContentType"] == "DEFAULT"){ + resp["ContentType"] = ""; + } + return resp; +} + + +// reads the form and returns a dictionary +function read_intl(){ + resp = {}; + resp["USERID"] = byname("USERID2"); + resp["Machinable"] = byname("Machinable2"); + resp["MailType"] = byname("MailType"); + //resp["POBoxFlag"] = byname("POBoxFlag"); + //resp["GiftFlag"] = byname("GiftFlag"); + resp["ValueOfContents"] = byname("ValueOfContents"); + resp["Country"] = byname("Country"); + resp["Pounds"] = byname("Pounds2"); + resp["GiftFlag"] = byname("GiftFlag"); + resp["POBoxFlag"] = byname("POBoxFlag"); + resp["OriginZip"] = byname("OriginZip"); + resp["Width"] = byname("Width2"); + resp["Length"] = byname("Length2"); + resp["Height"] = byname("Height2"); + resp["Girth"] = byname("Girth2"); + resp["Container"] = byname("Container2"); + resp["CommercialFlag"] = byname("CommercialFlag"); + resp["CommercialPlusFlag"] = byname("CommercialPlusFlag"); + resp["Size"] = byname("Size2"); + + + return resp; +} + +function decode_html(input){ + var e = document.createElement('div'); + e.innerHTML = input; + return e.childNodes.length === 0 ? "" : e.childNodes[0].nodeValue; +} + + +function make_row(name, avail, price){ + res = "<tr>"; + res = res+"<td>"+name+"</td>"; + res = res+"<td>"+avail+"</td>"; + res = res+"<td>"+price+"</td>"; + res = res+"</tr>\n"; + return res; + +} + +function parse_response(resp){ + console.log(resp.documentElement.outerHTML); + xml_doc = $.parseXML(resp.documentElement.outerHTML); + $xml = $(xml_doc); + errs = $xml.find("Error"); + console.log(errs); + + var res = ""; + + if(errs.length > 0){ + for(var i = 0; i < errs.length; i++){ + res = res+i.toString()+": "+$(errs[i]).find("Description")[0].innerHTML; + res = res +"<br>"; + } + $("#errors").html(res) + $("#mainrate").html(""); + $("#results").html(""); + + return ""; + } + + $pack = $($xml.find("Package")[0]); + + // Get Parse the main result + mailserv = decode_html($pack.find("MailService")[0].innerHTML); + rate = $pack.find("Rate")[0].innerHTML; + + var res = ""; + res = "<b>Mail Service:</b>"+mailserv+"<br>"; + res = res+"<b>Rate:</b>"+rate+"<br>\n" + + // Generate a table of the services available + servs = $pack.find("SpecialService"); + table = make_row("<b> Service name </b>", "<b>Available</b>", "<b>Price</b>"); + for(var i = 0; i < servs.length; i++){ + serv = $(servs[i]); + name = decode_html(serv.find("ServiceName")[0].innerHTML); + avail = serv.find("Available")[0].innerHTML; + price = serv.find("Price")[0].innerHTML; + table = table + make_row(name,avail,price); + } + + table = "<tbody>"+table+"</tbody>"; + $("#mainrate").html(res); + $("#results").html(table); + return table; +} + + +function make_api_call(url){ + $.ajax({ + url: url, + cache: false, + type: 'post', + }).done(function(d){ + console.log("Success"); + var res = parse_response(d); + //$("#results").html(res); + }).always(function(){ + + }).fail(function(d){ + console.log("Failed"); + console.log(d); + }); +} + +function gen_package_intl(data){ + var res = ""; + res = res + '<Package ID="0">'; + res = res + surround("Pounds",data["Pounds"]) + res = res + surround("Ounces","0"); + res = res + surround("Machinable",data["Machinable"]); + res = res + surround("MailType",data["MailType"]); + /* + res = res + "<GXG>" + res = res + surround("POBoxFlag",data["POBoxFlag"]); + res = res + surround("GiftFlag",data["GiftFlag"]); + res = res + "</GXG>" + */ + res = res + surround("ValueOfContents", data["ValueOfContents"]); + res = res + surround("Country",data["Country"]); + //res = res + surround("Size",data["Size"]); + //res = res + surround("Container",data["Container"]); + //res = res + surround("Width",data["Width"]); + //res = res + surround("Length",data["Length"]); + //res = res + surround("Height",data["Height"]); + //res = res + surround("Girth",data["Girth"]); + res = res + surround("OriginZip",data["OriginZip"]); + + res = res + '</Package>'; + + return res; +} + + +function build_xml_intl(data){ + res = ""; + res = res + '<IntlRateV2Request USERID="'+data["USERID"]+'">'; + res = res + gen_package_intl(data); + + res = res + "</IntlRateV2Request>"; + console.log(res); + return res; +}; + + + +window.addEventListener('load', (event) => { + + $("#button_domestic").bind("click",function(){ + console.log("Making request"); + r = read_domestic(); + check_domestic(r); + url = "http://production.shippingapis.com/ShippingAPI.dll?API=RateV4&XML="; + url = url + build_xml_domestic(r); + console.log(url); + make_api_call(url); + }); + + console.log("Window loaded.") + disable("Machinable"); + disable("FirstClassMailType"); + disable("ContentDescription"); + disable("GroundOnly"); + + document.getElementById("button_intl").style = "display:none;"; + document.forms[1].style = "display:none;"; + + document.forms[0].addEventListener("change", function(){ + r = read_domestic(); + check_domestic(r); + url = "http://production.shippingapis.com/ShippingAPI.dll?API=RateV4&XML="; + url = url + build_xml_domestic(r); + console.log(url); + }); + + $("#button_intl").bind("click",function(){ + console.log("Making request"); + r = read_intl(); + check_intl(r); + url = "http://production.shippingapis.com/ShippingAPI.dll?API=IntlRateV2&XML="; + url = url + build_xml_intl(r); + console.log(url); + make_api_call(url); + }); + + document.forms[1].addEventListener("change", function(){ + r = read_intl(); + url = "http://production.shippingapis.com/ShippingAPI.dll?API=IntlRateV2&XML="; + url = url + build_xml_intl(r); + console.log(url); + }); + +}); + + + diff --git a/data/extensions/rnrMcDonalds@0xbeef.coffee/icons/L4Libre.png b/data/extensions/gnuzilla-ext-workarounds@gnu.org/icons/L4Libre.png Binary files differindex ed0dac1..ed0dac1 100644 --- a/data/extensions/rnrMcDonalds@0xbeef.coffee/icons/L4Libre.png +++ b/data/extensions/gnuzilla-ext-workarounds@gnu.org/icons/L4Libre.png diff --git a/data/extensions/rnrMcDonalds@0xbeef.coffee/icons/L4Libre128.png b/data/extensions/gnuzilla-ext-workarounds@gnu.org/icons/L4Libre128.png Binary files differindex b6d56f1..b6d56f1 100644 --- a/data/extensions/rnrMcDonalds@0xbeef.coffee/icons/L4Libre128.png +++ b/data/extensions/gnuzilla-ext-workarounds@gnu.org/icons/L4Libre128.png diff --git a/data/extensions/rnrMcDonalds@0xbeef.coffee/icons/L4Libre48.png b/data/extensions/gnuzilla-ext-workarounds@gnu.org/icons/L4Libre48.png Binary files differindex 2628bb3..2628bb3 100644 --- a/data/extensions/rnrMcDonalds@0xbeef.coffee/icons/L4Libre48.png +++ b/data/extensions/gnuzilla-ext-workarounds@gnu.org/icons/L4Libre48.png diff --git a/data/extensions/gnuzilla-ext-workarounds@gnu.org/icons/test.png b/data/extensions/gnuzilla-ext-workarounds@gnu.org/icons/test.png Binary files differnew file mode 100644 index 0000000..a43a966 --- /dev/null +++ b/data/extensions/gnuzilla-ext-workarounds@gnu.org/icons/test.png diff --git a/data/extensions/gnuzilla-ext-workarounds@gnu.org/jquery-3.4.1.min.js b/data/extensions/gnuzilla-ext-workarounds@gnu.org/jquery-3.4.1.min.js new file mode 100644 index 0000000..a1c07fd --- /dev/null +++ b/data/extensions/gnuzilla-ext-workarounds@gnu.org/jquery-3.4.1.min.js @@ -0,0 +1,2 @@ +/*! jQuery v3.4.1 | (c) JS Foundation and other contributors | jquery.org/license */ +!function(e,t){"use strict";"object"==typeof module&&"object"==typeof module.exports?module.exports=e.document?t(e,!0):function(e){if(!e.document)throw new Error("jQuery requires a window with a document");return t(e)}:t(e)}("undefined"!=typeof window?window:this,function(C,e){"use strict";var t=[],E=C.document,r=Object.getPrototypeOf,s=t.slice,g=t.concat,u=t.push,i=t.indexOf,n={},o=n.toString,v=n.hasOwnProperty,a=v.toString,l=a.call(Object),y={},m=function(e){return"function"==typeof e&&"number"!=typeof e.nodeType},x=function(e){return null!=e&&e===e.window},c={type:!0,src:!0,nonce:!0,noModule:!0};function b(e,t,n){var r,i,o=(n=n||E).createElement("script");if(o.text=e,t)for(r in c)(i=t[r]||t.getAttribute&&t.getAttribute(r))&&o.setAttribute(r,i);n.head.appendChild(o).parentNode.removeChild(o)}function w(e){return null==e?e+"":"object"==typeof e||"function"==typeof e?n[o.call(e)]||"object":typeof e}var f="3.4.1",k=function(e,t){return new k.fn.init(e,t)},p=/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g;function d(e){var t=!!e&&"length"in e&&e.length,n=w(e);return!m(e)&&!x(e)&&("array"===n||0===t||"number"==typeof t&&0<t&&t-1 in e)}k.fn=k.prototype={jquery:f,constructor:k,length:0,toArray:function(){return s.call(this)},get:function(e){return null==e?s.call(this):e<0?this[e+this.length]:this[e]},pushStack:function(e){var t=k.merge(this.constructor(),e);return t.prevObject=this,t},each:function(e){return k.each(this,e)},map:function(n){return this.pushStack(k.map(this,function(e,t){return n.call(e,t,e)}))},slice:function(){return this.pushStack(s.apply(this,arguments))},first:function(){return this.eq(0)},last:function(){return this.eq(-1)},eq:function(e){var t=this.length,n=+e+(e<0?t:0);return this.pushStack(0<=n&&n<t?[this[n]]:[])},end:function(){return this.prevObject||this.constructor()},push:u,sort:t.sort,splice:t.splice},k.extend=k.fn.extend=function(){var e,t,n,r,i,o,a=arguments[0]||{},s=1,u=arguments.length,l=!1;for("boolean"==typeof a&&(l=a,a=arguments[s]||{},s++),"object"==typeof a||m(a)||(a={}),s===u&&(a=this,s--);s<u;s++)if(null!=(e=arguments[s]))for(t in e)r=e[t],"__proto__"!==t&&a!==r&&(l&&r&&(k.isPlainObject(r)||(i=Array.isArray(r)))?(n=a[t],o=i&&!Array.isArray(n)?[]:i||k.isPlainObject(n)?n:{},i=!1,a[t]=k.extend(l,o,r)):void 0!==r&&(a[t]=r));return a},k.extend({expando:"jQuery"+(f+Math.random()).replace(/\D/g,""),isReady:!0,error:function(e){throw new Error(e)},noop:function(){},isPlainObject:function(e){var t,n;return!(!e||"[object Object]"!==o.call(e))&&(!(t=r(e))||"function"==typeof(n=v.call(t,"constructor")&&t.constructor)&&a.call(n)===l)},isEmptyObject:function(e){var t;for(t in e)return!1;return!0},globalEval:function(e,t){b(e,{nonce:t&&t.nonce})},each:function(e,t){var n,r=0;if(d(e)){for(n=e.length;r<n;r++)if(!1===t.call(e[r],r,e[r]))break}else for(r in e)if(!1===t.call(e[r],r,e[r]))break;return e},trim:function(e){return null==e?"":(e+"").replace(p,"")},makeArray:function(e,t){var n=t||[];return null!=e&&(d(Object(e))?k.merge(n,"string"==typeof e?[e]:e):u.call(n,e)),n},inArray:function(e,t,n){return null==t?-1:i.call(t,e,n)},merge:function(e,t){for(var n=+t.length,r=0,i=e.length;r<n;r++)e[i++]=t[r];return e.length=i,e},grep:function(e,t,n){for(var r=[],i=0,o=e.length,a=!n;i<o;i++)!t(e[i],i)!==a&&r.push(e[i]);return r},map:function(e,t,n){var r,i,o=0,a=[];if(d(e))for(r=e.length;o<r;o++)null!=(i=t(e[o],o,n))&&a.push(i);else for(o in e)null!=(i=t(e[o],o,n))&&a.push(i);return g.apply([],a)},guid:1,support:y}),"function"==typeof Symbol&&(k.fn[Symbol.iterator]=t[Symbol.iterator]),k.each("Boolean Number String Function Array Date RegExp Object Error Symbol".split(" "),function(e,t){n["[object "+t+"]"]=t.toLowerCase()});var h=function(n){var e,d,b,o,i,h,f,g,w,u,l,T,C,a,E,v,s,c,y,k="sizzle"+1*new Date,m=n.document,S=0,r=0,p=ue(),x=ue(),N=ue(),A=ue(),D=function(e,t){return e===t&&(l=!0),0},j={}.hasOwnProperty,t=[],q=t.pop,L=t.push,H=t.push,O=t.slice,P=function(e,t){for(var n=0,r=e.length;n<r;n++)if(e[n]===t)return n;return-1},R="checked|selected|async|autofocus|autoplay|controls|defer|disabled|hidden|ismap|loop|multiple|open|readonly|required|scoped",M="[\\x20\\t\\r\\n\\f]",I="(?:\\\\.|[\\w-]|[^\0-\\xa0])+",W="\\["+M+"*("+I+")(?:"+M+"*([*^$|!~]?=)"+M+"*(?:'((?:\\\\.|[^\\\\'])*)'|\"((?:\\\\.|[^\\\\\"])*)\"|("+I+"))|)"+M+"*\\]",$=":("+I+")(?:\\((('((?:\\\\.|[^\\\\'])*)'|\"((?:\\\\.|[^\\\\\"])*)\")|((?:\\\\.|[^\\\\()[\\]]|"+W+")*)|.*)\\)|)",F=new RegExp(M+"+","g"),B=new RegExp("^"+M+"+|((?:^|[^\\\\])(?:\\\\.)*)"+M+"+$","g"),_=new RegExp("^"+M+"*,"+M+"*"),z=new RegExp("^"+M+"*([>+~]|"+M+")"+M+"*"),U=new RegExp(M+"|>"),X=new RegExp($),V=new RegExp("^"+I+"$"),G={ID:new RegExp("^#("+I+")"),CLASS:new RegExp("^\\.("+I+")"),TAG:new RegExp("^("+I+"|[*])"),ATTR:new RegExp("^"+W),PSEUDO:new RegExp("^"+$),CHILD:new RegExp("^:(only|first|last|nth|nth-last)-(child|of-type)(?:\\("+M+"*(even|odd|(([+-]|)(\\d*)n|)"+M+"*(?:([+-]|)"+M+"*(\\d+)|))"+M+"*\\)|)","i"),bool:new RegExp("^(?:"+R+")$","i"),needsContext:new RegExp("^"+M+"*[>+~]|:(even|odd|eq|gt|lt|nth|first|last)(?:\\("+M+"*((?:-\\d)?\\d*)"+M+"*\\)|)(?=[^-]|$)","i")},Y=/HTML$/i,Q=/^(?:input|select|textarea|button)$/i,J=/^h\d$/i,K=/^[^{]+\{\s*\[native \w/,Z=/^(?:#([\w-]+)|(\w+)|\.([\w-]+))$/,ee=/[+~]/,te=new RegExp("\\\\([\\da-f]{1,6}"+M+"?|("+M+")|.)","ig"),ne=function(e,t,n){var r="0x"+t-65536;return r!=r||n?t:r<0?String.fromCharCode(r+65536):String.fromCharCode(r>>10|55296,1023&r|56320)},re=/([\0-\x1f\x7f]|^-?\d)|^-$|[^\0-\x1f\x7f-\uFFFF\w-]/g,ie=function(e,t){return t?"\0"===e?"\ufffd":e.slice(0,-1)+"\\"+e.charCodeAt(e.length-1).toString(16)+" ":"\\"+e},oe=function(){T()},ae=be(function(e){return!0===e.disabled&&"fieldset"===e.nodeName.toLowerCase()},{dir:"parentNode",next:"legend"});try{H.apply(t=O.call(m.childNodes),m.childNodes),t[m.childNodes.length].nodeType}catch(e){H={apply:t.length?function(e,t){L.apply(e,O.call(t))}:function(e,t){var n=e.length,r=0;while(e[n++]=t[r++]);e.length=n-1}}}function se(t,e,n,r){var i,o,a,s,u,l,c,f=e&&e.ownerDocument,p=e?e.nodeType:9;if(n=n||[],"string"!=typeof t||!t||1!==p&&9!==p&&11!==p)return n;if(!r&&((e?e.ownerDocument||e:m)!==C&&T(e),e=e||C,E)){if(11!==p&&(u=Z.exec(t)))if(i=u[1]){if(9===p){if(!(a=e.getElementById(i)))return n;if(a.id===i)return n.push(a),n}else if(f&&(a=f.getElementById(i))&&y(e,a)&&a.id===i)return n.push(a),n}else{if(u[2])return H.apply(n,e.getElementsByTagName(t)),n;if((i=u[3])&&d.getElementsByClassName&&e.getElementsByClassName)return H.apply(n,e.getElementsByClassName(i)),n}if(d.qsa&&!A[t+" "]&&(!v||!v.test(t))&&(1!==p||"object"!==e.nodeName.toLowerCase())){if(c=t,f=e,1===p&&U.test(t)){(s=e.getAttribute("id"))?s=s.replace(re,ie):e.setAttribute("id",s=k),o=(l=h(t)).length;while(o--)l[o]="#"+s+" "+xe(l[o]);c=l.join(","),f=ee.test(t)&&ye(e.parentNode)||e}try{return H.apply(n,f.querySelectorAll(c)),n}catch(e){A(t,!0)}finally{s===k&&e.removeAttribute("id")}}}return g(t.replace(B,"$1"),e,n,r)}function ue(){var r=[];return function e(t,n){return r.push(t+" ")>b.cacheLength&&delete e[r.shift()],e[t+" "]=n}}function le(e){return e[k]=!0,e}function ce(e){var t=C.createElement("fieldset");try{return!!e(t)}catch(e){return!1}finally{t.parentNode&&t.parentNode.removeChild(t),t=null}}function fe(e,t){var n=e.split("|"),r=n.length;while(r--)b.attrHandle[n[r]]=t}function pe(e,t){var n=t&&e,r=n&&1===e.nodeType&&1===t.nodeType&&e.sourceIndex-t.sourceIndex;if(r)return r;if(n)while(n=n.nextSibling)if(n===t)return-1;return e?1:-1}function de(t){return function(e){return"input"===e.nodeName.toLowerCase()&&e.type===t}}function he(n){return function(e){var t=e.nodeName.toLowerCase();return("input"===t||"button"===t)&&e.type===n}}function ge(t){return function(e){return"form"in e?e.parentNode&&!1===e.disabled?"label"in e?"label"in e.parentNode?e.parentNode.disabled===t:e.disabled===t:e.isDisabled===t||e.isDisabled!==!t&&ae(e)===t:e.disabled===t:"label"in e&&e.disabled===t}}function ve(a){return le(function(o){return o=+o,le(function(e,t){var n,r=a([],e.length,o),i=r.length;while(i--)e[n=r[i]]&&(e[n]=!(t[n]=e[n]))})})}function ye(e){return e&&"undefined"!=typeof e.getElementsByTagName&&e}for(e in d=se.support={},i=se.isXML=function(e){var t=e.namespaceURI,n=(e.ownerDocument||e).documentElement;return!Y.test(t||n&&n.nodeName||"HTML")},T=se.setDocument=function(e){var t,n,r=e?e.ownerDocument||e:m;return r!==C&&9===r.nodeType&&r.documentElement&&(a=(C=r).documentElement,E=!i(C),m!==C&&(n=C.defaultView)&&n.top!==n&&(n.addEventListener?n.addEventListener("unload",oe,!1):n.attachEvent&&n.attachEvent("onunload",oe)),d.attributes=ce(function(e){return e.className="i",!e.getAttribute("className")}),d.getElementsByTagName=ce(function(e){return e.appendChild(C.createComment("")),!e.getElementsByTagName("*").length}),d.getElementsByClassName=K.test(C.getElementsByClassName),d.getById=ce(function(e){return a.appendChild(e).id=k,!C.getElementsByName||!C.getElementsByName(k).length}),d.getById?(b.filter.ID=function(e){var t=e.replace(te,ne);return function(e){return e.getAttribute("id")===t}},b.find.ID=function(e,t){if("undefined"!=typeof t.getElementById&&E){var n=t.getElementById(e);return n?[n]:[]}}):(b.filter.ID=function(e){var n=e.replace(te,ne);return function(e){var t="undefined"!=typeof e.getAttributeNode&&e.getAttributeNode("id");return t&&t.value===n}},b.find.ID=function(e,t){if("undefined"!=typeof t.getElementById&&E){var n,r,i,o=t.getElementById(e);if(o){if((n=o.getAttributeNode("id"))&&n.value===e)return[o];i=t.getElementsByName(e),r=0;while(o=i[r++])if((n=o.getAttributeNode("id"))&&n.value===e)return[o]}return[]}}),b.find.TAG=d.getElementsByTagName?function(e,t){return"undefined"!=typeof t.getElementsByTagName?t.getElementsByTagName(e):d.qsa?t.querySelectorAll(e):void 0}:function(e,t){var n,r=[],i=0,o=t.getElementsByTagName(e);if("*"===e){while(n=o[i++])1===n.nodeType&&r.push(n);return r}return o},b.find.CLASS=d.getElementsByClassName&&function(e,t){if("undefined"!=typeof t.getElementsByClassName&&E)return t.getElementsByClassName(e)},s=[],v=[],(d.qsa=K.test(C.querySelectorAll))&&(ce(function(e){a.appendChild(e).innerHTML="<a id='"+k+"'></a><select id='"+k+"-\r\\' msallowcapture=''><option selected=''></option></select>",e.querySelectorAll("[msallowcapture^='']").length&&v.push("[*^$]="+M+"*(?:''|\"\")"),e.querySelectorAll("[selected]").length||v.push("\\["+M+"*(?:value|"+R+")"),e.querySelectorAll("[id~="+k+"-]").length||v.push("~="),e.querySelectorAll(":checked").length||v.push(":checked"),e.querySelectorAll("a#"+k+"+*").length||v.push(".#.+[+~]")}),ce(function(e){e.innerHTML="<a href='' disabled='disabled'></a><select disabled='disabled'><option/></select>";var t=C.createElement("input");t.setAttribute("type","hidden"),e.appendChild(t).setAttribute("name","D"),e.querySelectorAll("[name=d]").length&&v.push("name"+M+"*[*^$|!~]?="),2!==e.querySelectorAll(":enabled").length&&v.push(":enabled",":disabled"),a.appendChild(e).disabled=!0,2!==e.querySelectorAll(":disabled").length&&v.push(":enabled",":disabled"),e.querySelectorAll("*,:x"),v.push(",.*:")})),(d.matchesSelector=K.test(c=a.matches||a.webkitMatchesSelector||a.mozMatchesSelector||a.oMatchesSelector||a.msMatchesSelector))&&ce(function(e){d.disconnectedMatch=c.call(e,"*"),c.call(e,"[s!='']:x"),s.push("!=",$)}),v=v.length&&new RegExp(v.join("|")),s=s.length&&new RegExp(s.join("|")),t=K.test(a.compareDocumentPosition),y=t||K.test(a.contains)?function(e,t){var n=9===e.nodeType?e.documentElement:e,r=t&&t.parentNode;return e===r||!(!r||1!==r.nodeType||!(n.contains?n.contains(r):e.compareDocumentPosition&&16&e.compareDocumentPosition(r)))}:function(e,t){if(t)while(t=t.parentNode)if(t===e)return!0;return!1},D=t?function(e,t){if(e===t)return l=!0,0;var n=!e.compareDocumentPosition-!t.compareDocumentPosition;return n||(1&(n=(e.ownerDocument||e)===(t.ownerDocument||t)?e.compareDocumentPosition(t):1)||!d.sortDetached&&t.compareDocumentPosition(e)===n?e===C||e.ownerDocument===m&&y(m,e)?-1:t===C||t.ownerDocument===m&&y(m,t)?1:u?P(u,e)-P(u,t):0:4&n?-1:1)}:function(e,t){if(e===t)return l=!0,0;var n,r=0,i=e.parentNode,o=t.parentNode,a=[e],s=[t];if(!i||!o)return e===C?-1:t===C?1:i?-1:o?1:u?P(u,e)-P(u,t):0;if(i===o)return pe(e,t);n=e;while(n=n.parentNode)a.unshift(n);n=t;while(n=n.parentNode)s.unshift(n);while(a[r]===s[r])r++;return r?pe(a[r],s[r]):a[r]===m?-1:s[r]===m?1:0}),C},se.matches=function(e,t){return se(e,null,null,t)},se.matchesSelector=function(e,t){if((e.ownerDocument||e)!==C&&T(e),d.matchesSelector&&E&&!A[t+" "]&&(!s||!s.test(t))&&(!v||!v.test(t)))try{var n=c.call(e,t);if(n||d.disconnectedMatch||e.document&&11!==e.document.nodeType)return n}catch(e){A(t,!0)}return 0<se(t,C,null,[e]).length},se.contains=function(e,t){return(e.ownerDocument||e)!==C&&T(e),y(e,t)},se.attr=function(e,t){(e.ownerDocument||e)!==C&&T(e);var n=b.attrHandle[t.toLowerCase()],r=n&&j.call(b.attrHandle,t.toLowerCase())?n(e,t,!E):void 0;return void 0!==r?r:d.attributes||!E?e.getAttribute(t):(r=e.getAttributeNode(t))&&r.specified?r.value:null},se.escape=function(e){return(e+"").replace(re,ie)},se.error=function(e){throw new Error("Syntax error, unrecognized expression: "+e)},se.uniqueSort=function(e){var t,n=[],r=0,i=0;if(l=!d.detectDuplicates,u=!d.sortStable&&e.slice(0),e.sort(D),l){while(t=e[i++])t===e[i]&&(r=n.push(i));while(r--)e.splice(n[r],1)}return u=null,e},o=se.getText=function(e){var t,n="",r=0,i=e.nodeType;if(i){if(1===i||9===i||11===i){if("string"==typeof e.textContent)return e.textContent;for(e=e.firstChild;e;e=e.nextSibling)n+=o(e)}else if(3===i||4===i)return e.nodeValue}else while(t=e[r++])n+=o(t);return n},(b=se.selectors={cacheLength:50,createPseudo:le,match:G,attrHandle:{},find:{},relative:{">":{dir:"parentNode",first:!0}," ":{dir:"parentNode"},"+":{dir:"previousSibling",first:!0},"~":{dir:"previousSibling"}},preFilter:{ATTR:function(e){return e[1]=e[1].replace(te,ne),e[3]=(e[3]||e[4]||e[5]||"").replace(te,ne),"~="===e[2]&&(e[3]=" "+e[3]+" "),e.slice(0,4)},CHILD:function(e){return e[1]=e[1].toLowerCase(),"nth"===e[1].slice(0,3)?(e[3]||se.error(e[0]),e[4]=+(e[4]?e[5]+(e[6]||1):2*("even"===e[3]||"odd"===e[3])),e[5]=+(e[7]+e[8]||"odd"===e[3])):e[3]&&se.error(e[0]),e},PSEUDO:function(e){var t,n=!e[6]&&e[2];return G.CHILD.test(e[0])?null:(e[3]?e[2]=e[4]||e[5]||"":n&&X.test(n)&&(t=h(n,!0))&&(t=n.indexOf(")",n.length-t)-n.length)&&(e[0]=e[0].slice(0,t),e[2]=n.slice(0,t)),e.slice(0,3))}},filter:{TAG:function(e){var t=e.replace(te,ne).toLowerCase();return"*"===e?function(){return!0}:function(e){return e.nodeName&&e.nodeName.toLowerCase()===t}},CLASS:function(e){var t=p[e+" "];return t||(t=new RegExp("(^|"+M+")"+e+"("+M+"|$)"))&&p(e,function(e){return t.test("string"==typeof e.className&&e.className||"undefined"!=typeof e.getAttribute&&e.getAttribute("class")||"")})},ATTR:function(n,r,i){return function(e){var t=se.attr(e,n);return null==t?"!="===r:!r||(t+="","="===r?t===i:"!="===r?t!==i:"^="===r?i&&0===t.indexOf(i):"*="===r?i&&-1<t.indexOf(i):"$="===r?i&&t.slice(-i.length)===i:"~="===r?-1<(" "+t.replace(F," ")+" ").indexOf(i):"|="===r&&(t===i||t.slice(0,i.length+1)===i+"-"))}},CHILD:function(h,e,t,g,v){var y="nth"!==h.slice(0,3),m="last"!==h.slice(-4),x="of-type"===e;return 1===g&&0===v?function(e){return!!e.parentNode}:function(e,t,n){var r,i,o,a,s,u,l=y!==m?"nextSibling":"previousSibling",c=e.parentNode,f=x&&e.nodeName.toLowerCase(),p=!n&&!x,d=!1;if(c){if(y){while(l){a=e;while(a=a[l])if(x?a.nodeName.toLowerCase()===f:1===a.nodeType)return!1;u=l="only"===h&&!u&&"nextSibling"}return!0}if(u=[m?c.firstChild:c.lastChild],m&&p){d=(s=(r=(i=(o=(a=c)[k]||(a[k]={}))[a.uniqueID]||(o[a.uniqueID]={}))[h]||[])[0]===S&&r[1])&&r[2],a=s&&c.childNodes[s];while(a=++s&&a&&a[l]||(d=s=0)||u.pop())if(1===a.nodeType&&++d&&a===e){i[h]=[S,s,d];break}}else if(p&&(d=s=(r=(i=(o=(a=e)[k]||(a[k]={}))[a.uniqueID]||(o[a.uniqueID]={}))[h]||[])[0]===S&&r[1]),!1===d)while(a=++s&&a&&a[l]||(d=s=0)||u.pop())if((x?a.nodeName.toLowerCase()===f:1===a.nodeType)&&++d&&(p&&((i=(o=a[k]||(a[k]={}))[a.uniqueID]||(o[a.uniqueID]={}))[h]=[S,d]),a===e))break;return(d-=v)===g||d%g==0&&0<=d/g}}},PSEUDO:function(e,o){var t,a=b.pseudos[e]||b.setFilters[e.toLowerCase()]||se.error("unsupported pseudo: "+e);return a[k]?a(o):1<a.length?(t=[e,e,"",o],b.setFilters.hasOwnProperty(e.toLowerCase())?le(function(e,t){var n,r=a(e,o),i=r.length;while(i--)e[n=P(e,r[i])]=!(t[n]=r[i])}):function(e){return a(e,0,t)}):a}},pseudos:{not:le(function(e){var r=[],i=[],s=f(e.replace(B,"$1"));return s[k]?le(function(e,t,n,r){var i,o=s(e,null,r,[]),a=e.length;while(a--)(i=o[a])&&(e[a]=!(t[a]=i))}):function(e,t,n){return r[0]=e,s(r,null,n,i),r[0]=null,!i.pop()}}),has:le(function(t){return function(e){return 0<se(t,e).length}}),contains:le(function(t){return t=t.replace(te,ne),function(e){return-1<(e.textContent||o(e)).indexOf(t)}}),lang:le(function(n){return V.test(n||"")||se.error("unsupported lang: "+n),n=n.replace(te,ne).toLowerCase(),function(e){var t;do{if(t=E?e.lang:e.getAttribute("xml:lang")||e.getAttribute("lang"))return(t=t.toLowerCase())===n||0===t.indexOf(n+"-")}while((e=e.parentNode)&&1===e.nodeType);return!1}}),target:function(e){var t=n.location&&n.location.hash;return t&&t.slice(1)===e.id},root:function(e){return e===a},focus:function(e){return e===C.activeElement&&(!C.hasFocus||C.hasFocus())&&!!(e.type||e.href||~e.tabIndex)},enabled:ge(!1),disabled:ge(!0),checked:function(e){var t=e.nodeName.toLowerCase();return"input"===t&&!!e.checked||"option"===t&&!!e.selected},selected:function(e){return e.parentNode&&e.parentNode.selectedIndex,!0===e.selected},empty:function(e){for(e=e.firstChild;e;e=e.nextSibling)if(e.nodeType<6)return!1;return!0},parent:function(e){return!b.pseudos.empty(e)},header:function(e){return J.test(e.nodeName)},input:function(e){return Q.test(e.nodeName)},button:function(e){var t=e.nodeName.toLowerCase();return"input"===t&&"button"===e.type||"button"===t},text:function(e){var t;return"input"===e.nodeName.toLowerCase()&&"text"===e.type&&(null==(t=e.getAttribute("type"))||"text"===t.toLowerCase())},first:ve(function(){return[0]}),last:ve(function(e,t){return[t-1]}),eq:ve(function(e,t,n){return[n<0?n+t:n]}),even:ve(function(e,t){for(var n=0;n<t;n+=2)e.push(n);return e}),odd:ve(function(e,t){for(var n=1;n<t;n+=2)e.push(n);return e}),lt:ve(function(e,t,n){for(var r=n<0?n+t:t<n?t:n;0<=--r;)e.push(r);return e}),gt:ve(function(e,t,n){for(var r=n<0?n+t:n;++r<t;)e.push(r);return e})}}).pseudos.nth=b.pseudos.eq,{radio:!0,checkbox:!0,file:!0,password:!0,image:!0})b.pseudos[e]=de(e);for(e in{submit:!0,reset:!0})b.pseudos[e]=he(e);function me(){}function xe(e){for(var t=0,n=e.length,r="";t<n;t++)r+=e[t].value;return r}function be(s,e,t){var u=e.dir,l=e.next,c=l||u,f=t&&"parentNode"===c,p=r++;return e.first?function(e,t,n){while(e=e[u])if(1===e.nodeType||f)return s(e,t,n);return!1}:function(e,t,n){var r,i,o,a=[S,p];if(n){while(e=e[u])if((1===e.nodeType||f)&&s(e,t,n))return!0}else while(e=e[u])if(1===e.nodeType||f)if(i=(o=e[k]||(e[k]={}))[e.uniqueID]||(o[e.uniqueID]={}),l&&l===e.nodeName.toLowerCase())e=e[u]||e;else{if((r=i[c])&&r[0]===S&&r[1]===p)return a[2]=r[2];if((i[c]=a)[2]=s(e,t,n))return!0}return!1}}function we(i){return 1<i.length?function(e,t,n){var r=i.length;while(r--)if(!i[r](e,t,n))return!1;return!0}:i[0]}function Te(e,t,n,r,i){for(var o,a=[],s=0,u=e.length,l=null!=t;s<u;s++)(o=e[s])&&(n&&!n(o,r,i)||(a.push(o),l&&t.push(s)));return a}function Ce(d,h,g,v,y,e){return v&&!v[k]&&(v=Ce(v)),y&&!y[k]&&(y=Ce(y,e)),le(function(e,t,n,r){var i,o,a,s=[],u=[],l=t.length,c=e||function(e,t,n){for(var r=0,i=t.length;r<i;r++)se(e,t[r],n);return n}(h||"*",n.nodeType?[n]:n,[]),f=!d||!e&&h?c:Te(c,s,d,n,r),p=g?y||(e?d:l||v)?[]:t:f;if(g&&g(f,p,n,r),v){i=Te(p,u),v(i,[],n,r),o=i.length;while(o--)(a=i[o])&&(p[u[o]]=!(f[u[o]]=a))}if(e){if(y||d){if(y){i=[],o=p.length;while(o--)(a=p[o])&&i.push(f[o]=a);y(null,p=[],i,r)}o=p.length;while(o--)(a=p[o])&&-1<(i=y?P(e,a):s[o])&&(e[i]=!(t[i]=a))}}else p=Te(p===t?p.splice(l,p.length):p),y?y(null,t,p,r):H.apply(t,p)})}function Ee(e){for(var i,t,n,r=e.length,o=b.relative[e[0].type],a=o||b.relative[" "],s=o?1:0,u=be(function(e){return e===i},a,!0),l=be(function(e){return-1<P(i,e)},a,!0),c=[function(e,t,n){var r=!o&&(n||t!==w)||((i=t).nodeType?u(e,t,n):l(e,t,n));return i=null,r}];s<r;s++)if(t=b.relative[e[s].type])c=[be(we(c),t)];else{if((t=b.filter[e[s].type].apply(null,e[s].matches))[k]){for(n=++s;n<r;n++)if(b.relative[e[n].type])break;return Ce(1<s&&we(c),1<s&&xe(e.slice(0,s-1).concat({value:" "===e[s-2].type?"*":""})).replace(B,"$1"),t,s<n&&Ee(e.slice(s,n)),n<r&&Ee(e=e.slice(n)),n<r&&xe(e))}c.push(t)}return we(c)}return me.prototype=b.filters=b.pseudos,b.setFilters=new me,h=se.tokenize=function(e,t){var n,r,i,o,a,s,u,l=x[e+" "];if(l)return t?0:l.slice(0);a=e,s=[],u=b.preFilter;while(a){for(o in n&&!(r=_.exec(a))||(r&&(a=a.slice(r[0].length)||a),s.push(i=[])),n=!1,(r=z.exec(a))&&(n=r.shift(),i.push({value:n,type:r[0].replace(B," ")}),a=a.slice(n.length)),b.filter)!(r=G[o].exec(a))||u[o]&&!(r=u[o](r))||(n=r.shift(),i.push({value:n,type:o,matches:r}),a=a.slice(n.length));if(!n)break}return t?a.length:a?se.error(e):x(e,s).slice(0)},f=se.compile=function(e,t){var n,v,y,m,x,r,i=[],o=[],a=N[e+" "];if(!a){t||(t=h(e)),n=t.length;while(n--)(a=Ee(t[n]))[k]?i.push(a):o.push(a);(a=N(e,(v=o,m=0<(y=i).length,x=0<v.length,r=function(e,t,n,r,i){var o,a,s,u=0,l="0",c=e&&[],f=[],p=w,d=e||x&&b.find.TAG("*",i),h=S+=null==p?1:Math.random()||.1,g=d.length;for(i&&(w=t===C||t||i);l!==g&&null!=(o=d[l]);l++){if(x&&o){a=0,t||o.ownerDocument===C||(T(o),n=!E);while(s=v[a++])if(s(o,t||C,n)){r.push(o);break}i&&(S=h)}m&&((o=!s&&o)&&u--,e&&c.push(o))}if(u+=l,m&&l!==u){a=0;while(s=y[a++])s(c,f,t,n);if(e){if(0<u)while(l--)c[l]||f[l]||(f[l]=q.call(r));f=Te(f)}H.apply(r,f),i&&!e&&0<f.length&&1<u+y.length&&se.uniqueSort(r)}return i&&(S=h,w=p),c},m?le(r):r))).selector=e}return a},g=se.select=function(e,t,n,r){var i,o,a,s,u,l="function"==typeof e&&e,c=!r&&h(e=l.selector||e);if(n=n||[],1===c.length){if(2<(o=c[0]=c[0].slice(0)).length&&"ID"===(a=o[0]).type&&9===t.nodeType&&E&&b.relative[o[1].type]){if(!(t=(b.find.ID(a.matches[0].replace(te,ne),t)||[])[0]))return n;l&&(t=t.parentNode),e=e.slice(o.shift().value.length)}i=G.needsContext.test(e)?0:o.length;while(i--){if(a=o[i],b.relative[s=a.type])break;if((u=b.find[s])&&(r=u(a.matches[0].replace(te,ne),ee.test(o[0].type)&&ye(t.parentNode)||t))){if(o.splice(i,1),!(e=r.length&&xe(o)))return H.apply(n,r),n;break}}}return(l||f(e,c))(r,t,!E,n,!t||ee.test(e)&&ye(t.parentNode)||t),n},d.sortStable=k.split("").sort(D).join("")===k,d.detectDuplicates=!!l,T(),d.sortDetached=ce(function(e){return 1&e.compareDocumentPosition(C.createElement("fieldset"))}),ce(function(e){return e.innerHTML="<a href='#'></a>","#"===e.firstChild.getAttribute("href")})||fe("type|href|height|width",function(e,t,n){if(!n)return e.getAttribute(t,"type"===t.toLowerCase()?1:2)}),d.attributes&&ce(function(e){return e.innerHTML="<input/>",e.firstChild.setAttribute("value",""),""===e.firstChild.getAttribute("value")})||fe("value",function(e,t,n){if(!n&&"input"===e.nodeName.toLowerCase())return e.defaultValue}),ce(function(e){return null==e.getAttribute("disabled")})||fe(R,function(e,t,n){var r;if(!n)return!0===e[t]?t.toLowerCase():(r=e.getAttributeNode(t))&&r.specified?r.value:null}),se}(C);k.find=h,k.expr=h.selectors,k.expr[":"]=k.expr.pseudos,k.uniqueSort=k.unique=h.uniqueSort,k.text=h.getText,k.isXMLDoc=h.isXML,k.contains=h.contains,k.escapeSelector=h.escape;var T=function(e,t,n){var r=[],i=void 0!==n;while((e=e[t])&&9!==e.nodeType)if(1===e.nodeType){if(i&&k(e).is(n))break;r.push(e)}return r},S=function(e,t){for(var n=[];e;e=e.nextSibling)1===e.nodeType&&e!==t&&n.push(e);return n},N=k.expr.match.needsContext;function A(e,t){return e.nodeName&&e.nodeName.toLowerCase()===t.toLowerCase()}var D=/^<([a-z][^\/\0>:\x20\t\r\n\f]*)[\x20\t\r\n\f]*\/?>(?:<\/\1>|)$/i;function j(e,n,r){return m(n)?k.grep(e,function(e,t){return!!n.call(e,t,e)!==r}):n.nodeType?k.grep(e,function(e){return e===n!==r}):"string"!=typeof n?k.grep(e,function(e){return-1<i.call(n,e)!==r}):k.filter(n,e,r)}k.filter=function(e,t,n){var r=t[0];return n&&(e=":not("+e+")"),1===t.length&&1===r.nodeType?k.find.matchesSelector(r,e)?[r]:[]:k.find.matches(e,k.grep(t,function(e){return 1===e.nodeType}))},k.fn.extend({find:function(e){var t,n,r=this.length,i=this;if("string"!=typeof e)return this.pushStack(k(e).filter(function(){for(t=0;t<r;t++)if(k.contains(i[t],this))return!0}));for(n=this.pushStack([]),t=0;t<r;t++)k.find(e,i[t],n);return 1<r?k.uniqueSort(n):n},filter:function(e){return this.pushStack(j(this,e||[],!1))},not:function(e){return this.pushStack(j(this,e||[],!0))},is:function(e){return!!j(this,"string"==typeof e&&N.test(e)?k(e):e||[],!1).length}});var q,L=/^(?:\s*(<[\w\W]+>)[^>]*|#([\w-]+))$/;(k.fn.init=function(e,t,n){var r,i;if(!e)return this;if(n=n||q,"string"==typeof e){if(!(r="<"===e[0]&&">"===e[e.length-1]&&3<=e.length?[null,e,null]:L.exec(e))||!r[1]&&t)return!t||t.jquery?(t||n).find(e):this.constructor(t).find(e);if(r[1]){if(t=t instanceof k?t[0]:t,k.merge(this,k.parseHTML(r[1],t&&t.nodeType?t.ownerDocument||t:E,!0)),D.test(r[1])&&k.isPlainObject(t))for(r in t)m(this[r])?this[r](t[r]):this.attr(r,t[r]);return this}return(i=E.getElementById(r[2]))&&(this[0]=i,this.length=1),this}return e.nodeType?(this[0]=e,this.length=1,this):m(e)?void 0!==n.ready?n.ready(e):e(k):k.makeArray(e,this)}).prototype=k.fn,q=k(E);var H=/^(?:parents|prev(?:Until|All))/,O={children:!0,contents:!0,next:!0,prev:!0};function P(e,t){while((e=e[t])&&1!==e.nodeType);return e}k.fn.extend({has:function(e){var t=k(e,this),n=t.length;return this.filter(function(){for(var e=0;e<n;e++)if(k.contains(this,t[e]))return!0})},closest:function(e,t){var n,r=0,i=this.length,o=[],a="string"!=typeof e&&k(e);if(!N.test(e))for(;r<i;r++)for(n=this[r];n&&n!==t;n=n.parentNode)if(n.nodeType<11&&(a?-1<a.index(n):1===n.nodeType&&k.find.matchesSelector(n,e))){o.push(n);break}return this.pushStack(1<o.length?k.uniqueSort(o):o)},index:function(e){return e?"string"==typeof e?i.call(k(e),this[0]):i.call(this,e.jquery?e[0]:e):this[0]&&this[0].parentNode?this.first().prevAll().length:-1},add:function(e,t){return this.pushStack(k.uniqueSort(k.merge(this.get(),k(e,t))))},addBack:function(e){return this.add(null==e?this.prevObject:this.prevObject.filter(e))}}),k.each({parent:function(e){var t=e.parentNode;return t&&11!==t.nodeType?t:null},parents:function(e){return T(e,"parentNode")},parentsUntil:function(e,t,n){return T(e,"parentNode",n)},next:function(e){return P(e,"nextSibling")},prev:function(e){return P(e,"previousSibling")},nextAll:function(e){return T(e,"nextSibling")},prevAll:function(e){return T(e,"previousSibling")},nextUntil:function(e,t,n){return T(e,"nextSibling",n)},prevUntil:function(e,t,n){return T(e,"previousSibling",n)},siblings:function(e){return S((e.parentNode||{}).firstChild,e)},children:function(e){return S(e.firstChild)},contents:function(e){return"undefined"!=typeof e.contentDocument?e.contentDocument:(A(e,"template")&&(e=e.content||e),k.merge([],e.childNodes))}},function(r,i){k.fn[r]=function(e,t){var n=k.map(this,i,e);return"Until"!==r.slice(-5)&&(t=e),t&&"string"==typeof t&&(n=k.filter(t,n)),1<this.length&&(O[r]||k.uniqueSort(n),H.test(r)&&n.reverse()),this.pushStack(n)}});var R=/[^\x20\t\r\n\f]+/g;function M(e){return e}function I(e){throw e}function W(e,t,n,r){var i;try{e&&m(i=e.promise)?i.call(e).done(t).fail(n):e&&m(i=e.then)?i.call(e,t,n):t.apply(void 0,[e].slice(r))}catch(e){n.apply(void 0,[e])}}k.Callbacks=function(r){var e,n;r="string"==typeof r?(e=r,n={},k.each(e.match(R)||[],function(e,t){n[t]=!0}),n):k.extend({},r);var i,t,o,a,s=[],u=[],l=-1,c=function(){for(a=a||r.once,o=i=!0;u.length;l=-1){t=u.shift();while(++l<s.length)!1===s[l].apply(t[0],t[1])&&r.stopOnFalse&&(l=s.length,t=!1)}r.memory||(t=!1),i=!1,a&&(s=t?[]:"")},f={add:function(){return s&&(t&&!i&&(l=s.length-1,u.push(t)),function n(e){k.each(e,function(e,t){m(t)?r.unique&&f.has(t)||s.push(t):t&&t.length&&"string"!==w(t)&&n(t)})}(arguments),t&&!i&&c()),this},remove:function(){return k.each(arguments,function(e,t){var n;while(-1<(n=k.inArray(t,s,n)))s.splice(n,1),n<=l&&l--}),this},has:function(e){return e?-1<k.inArray(e,s):0<s.length},empty:function(){return s&&(s=[]),this},disable:function(){return a=u=[],s=t="",this},disabled:function(){return!s},lock:function(){return a=u=[],t||i||(s=t=""),this},locked:function(){return!!a},fireWith:function(e,t){return a||(t=[e,(t=t||[]).slice?t.slice():t],u.push(t),i||c()),this},fire:function(){return f.fireWith(this,arguments),this},fired:function(){return!!o}};return f},k.extend({Deferred:function(e){var o=[["notify","progress",k.Callbacks("memory"),k.Callbacks("memory"),2],["resolve","done",k.Callbacks("once memory"),k.Callbacks("once memory"),0,"resolved"],["reject","fail",k.Callbacks("once memory"),k.Callbacks("once memory"),1,"rejected"]],i="pending",a={state:function(){return i},always:function(){return s.done(arguments).fail(arguments),this},"catch":function(e){return a.then(null,e)},pipe:function(){var i=arguments;return k.Deferred(function(r){k.each(o,function(e,t){var n=m(i[t[4]])&&i[t[4]];s[t[1]](function(){var e=n&&n.apply(this,arguments);e&&m(e.promise)?e.promise().progress(r.notify).done(r.resolve).fail(r.reject):r[t[0]+"With"](this,n?[e]:arguments)})}),i=null}).promise()},then:function(t,n,r){var u=0;function l(i,o,a,s){return function(){var n=this,r=arguments,e=function(){var e,t;if(!(i<u)){if((e=a.apply(n,r))===o.promise())throw new TypeError("Thenable self-resolution");t=e&&("object"==typeof e||"function"==typeof e)&&e.then,m(t)?s?t.call(e,l(u,o,M,s),l(u,o,I,s)):(u++,t.call(e,l(u,o,M,s),l(u,o,I,s),l(u,o,M,o.notifyWith))):(a!==M&&(n=void 0,r=[e]),(s||o.resolveWith)(n,r))}},t=s?e:function(){try{e()}catch(e){k.Deferred.exceptionHook&&k.Deferred.exceptionHook(e,t.stackTrace),u<=i+1&&(a!==I&&(n=void 0,r=[e]),o.rejectWith(n,r))}};i?t():(k.Deferred.getStackHook&&(t.stackTrace=k.Deferred.getStackHook()),C.setTimeout(t))}}return k.Deferred(function(e){o[0][3].add(l(0,e,m(r)?r:M,e.notifyWith)),o[1][3].add(l(0,e,m(t)?t:M)),o[2][3].add(l(0,e,m(n)?n:I))}).promise()},promise:function(e){return null!=e?k.extend(e,a):a}},s={};return k.each(o,function(e,t){var n=t[2],r=t[5];a[t[1]]=n.add,r&&n.add(function(){i=r},o[3-e][2].disable,o[3-e][3].disable,o[0][2].lock,o[0][3].lock),n.add(t[3].fire),s[t[0]]=function(){return s[t[0]+"With"](this===s?void 0:this,arguments),this},s[t[0]+"With"]=n.fireWith}),a.promise(s),e&&e.call(s,s),s},when:function(e){var n=arguments.length,t=n,r=Array(t),i=s.call(arguments),o=k.Deferred(),a=function(t){return function(e){r[t]=this,i[t]=1<arguments.length?s.call(arguments):e,--n||o.resolveWith(r,i)}};if(n<=1&&(W(e,o.done(a(t)).resolve,o.reject,!n),"pending"===o.state()||m(i[t]&&i[t].then)))return o.then();while(t--)W(i[t],a(t),o.reject);return o.promise()}});var $=/^(Eval|Internal|Range|Reference|Syntax|Type|URI)Error$/;k.Deferred.exceptionHook=function(e,t){C.console&&C.console.warn&&e&&$.test(e.name)&&C.console.warn("jQuery.Deferred exception: "+e.message,e.stack,t)},k.readyException=function(e){C.setTimeout(function(){throw e})};var F=k.Deferred();function B(){E.removeEventListener("DOMContentLoaded",B),C.removeEventListener("load",B),k.ready()}k.fn.ready=function(e){return F.then(e)["catch"](function(e){k.readyException(e)}),this},k.extend({isReady:!1,readyWait:1,ready:function(e){(!0===e?--k.readyWait:k.isReady)||(k.isReady=!0)!==e&&0<--k.readyWait||F.resolveWith(E,[k])}}),k.ready.then=F.then,"complete"===E.readyState||"loading"!==E.readyState&&!E.documentElement.doScroll?C.setTimeout(k.ready):(E.addEventListener("DOMContentLoaded",B),C.addEventListener("load",B));var _=function(e,t,n,r,i,o,a){var s=0,u=e.length,l=null==n;if("object"===w(n))for(s in i=!0,n)_(e,t,s,n[s],!0,o,a);else if(void 0!==r&&(i=!0,m(r)||(a=!0),l&&(a?(t.call(e,r),t=null):(l=t,t=function(e,t,n){return l.call(k(e),n)})),t))for(;s<u;s++)t(e[s],n,a?r:r.call(e[s],s,t(e[s],n)));return i?e:l?t.call(e):u?t(e[0],n):o},z=/^-ms-/,U=/-([a-z])/g;function X(e,t){return t.toUpperCase()}function V(e){return e.replace(z,"ms-").replace(U,X)}var G=function(e){return 1===e.nodeType||9===e.nodeType||!+e.nodeType};function Y(){this.expando=k.expando+Y.uid++}Y.uid=1,Y.prototype={cache:function(e){var t=e[this.expando];return t||(t={},G(e)&&(e.nodeType?e[this.expando]=t:Object.defineProperty(e,this.expando,{value:t,configurable:!0}))),t},set:function(e,t,n){var r,i=this.cache(e);if("string"==typeof t)i[V(t)]=n;else for(r in t)i[V(r)]=t[r];return i},get:function(e,t){return void 0===t?this.cache(e):e[this.expando]&&e[this.expando][V(t)]},access:function(e,t,n){return void 0===t||t&&"string"==typeof t&&void 0===n?this.get(e,t):(this.set(e,t,n),void 0!==n?n:t)},remove:function(e,t){var n,r=e[this.expando];if(void 0!==r){if(void 0!==t){n=(t=Array.isArray(t)?t.map(V):(t=V(t))in r?[t]:t.match(R)||[]).length;while(n--)delete r[t[n]]}(void 0===t||k.isEmptyObject(r))&&(e.nodeType?e[this.expando]=void 0:delete e[this.expando])}},hasData:function(e){var t=e[this.expando];return void 0!==t&&!k.isEmptyObject(t)}};var Q=new Y,J=new Y,K=/^(?:\{[\w\W]*\}|\[[\w\W]*\])$/,Z=/[A-Z]/g;function ee(e,t,n){var r,i;if(void 0===n&&1===e.nodeType)if(r="data-"+t.replace(Z,"-$&").toLowerCase(),"string"==typeof(n=e.getAttribute(r))){try{n="true"===(i=n)||"false"!==i&&("null"===i?null:i===+i+""?+i:K.test(i)?JSON.parse(i):i)}catch(e){}J.set(e,t,n)}else n=void 0;return n}k.extend({hasData:function(e){return J.hasData(e)||Q.hasData(e)},data:function(e,t,n){return J.access(e,t,n)},removeData:function(e,t){J.remove(e,t)},_data:function(e,t,n){return Q.access(e,t,n)},_removeData:function(e,t){Q.remove(e,t)}}),k.fn.extend({data:function(n,e){var t,r,i,o=this[0],a=o&&o.attributes;if(void 0===n){if(this.length&&(i=J.get(o),1===o.nodeType&&!Q.get(o,"hasDataAttrs"))){t=a.length;while(t--)a[t]&&0===(r=a[t].name).indexOf("data-")&&(r=V(r.slice(5)),ee(o,r,i[r]));Q.set(o,"hasDataAttrs",!0)}return i}return"object"==typeof n?this.each(function(){J.set(this,n)}):_(this,function(e){var t;if(o&&void 0===e)return void 0!==(t=J.get(o,n))?t:void 0!==(t=ee(o,n))?t:void 0;this.each(function(){J.set(this,n,e)})},null,e,1<arguments.length,null,!0)},removeData:function(e){return this.each(function(){J.remove(this,e)})}}),k.extend({queue:function(e,t,n){var r;if(e)return t=(t||"fx")+"queue",r=Q.get(e,t),n&&(!r||Array.isArray(n)?r=Q.access(e,t,k.makeArray(n)):r.push(n)),r||[]},dequeue:function(e,t){t=t||"fx";var n=k.queue(e,t),r=n.length,i=n.shift(),o=k._queueHooks(e,t);"inprogress"===i&&(i=n.shift(),r--),i&&("fx"===t&&n.unshift("inprogress"),delete o.stop,i.call(e,function(){k.dequeue(e,t)},o)),!r&&o&&o.empty.fire()},_queueHooks:function(e,t){var n=t+"queueHooks";return Q.get(e,n)||Q.access(e,n,{empty:k.Callbacks("once memory").add(function(){Q.remove(e,[t+"queue",n])})})}}),k.fn.extend({queue:function(t,n){var e=2;return"string"!=typeof t&&(n=t,t="fx",e--),arguments.length<e?k.queue(this[0],t):void 0===n?this:this.each(function(){var e=k.queue(this,t,n);k._queueHooks(this,t),"fx"===t&&"inprogress"!==e[0]&&k.dequeue(this,t)})},dequeue:function(e){return this.each(function(){k.dequeue(this,e)})},clearQueue:function(e){return this.queue(e||"fx",[])},promise:function(e,t){var n,r=1,i=k.Deferred(),o=this,a=this.length,s=function(){--r||i.resolveWith(o,[o])};"string"!=typeof e&&(t=e,e=void 0),e=e||"fx";while(a--)(n=Q.get(o[a],e+"queueHooks"))&&n.empty&&(r++,n.empty.add(s));return s(),i.promise(t)}});var te=/[+-]?(?:\d*\.|)\d+(?:[eE][+-]?\d+|)/.source,ne=new RegExp("^(?:([+-])=|)("+te+")([a-z%]*)$","i"),re=["Top","Right","Bottom","Left"],ie=E.documentElement,oe=function(e){return k.contains(e.ownerDocument,e)},ae={composed:!0};ie.getRootNode&&(oe=function(e){return k.contains(e.ownerDocument,e)||e.getRootNode(ae)===e.ownerDocument});var se=function(e,t){return"none"===(e=t||e).style.display||""===e.style.display&&oe(e)&&"none"===k.css(e,"display")},ue=function(e,t,n,r){var i,o,a={};for(o in t)a[o]=e.style[o],e.style[o]=t[o];for(o in i=n.apply(e,r||[]),t)e.style[o]=a[o];return i};function le(e,t,n,r){var i,o,a=20,s=r?function(){return r.cur()}:function(){return k.css(e,t,"")},u=s(),l=n&&n[3]||(k.cssNumber[t]?"":"px"),c=e.nodeType&&(k.cssNumber[t]||"px"!==l&&+u)&&ne.exec(k.css(e,t));if(c&&c[3]!==l){u/=2,l=l||c[3],c=+u||1;while(a--)k.style(e,t,c+l),(1-o)*(1-(o=s()/u||.5))<=0&&(a=0),c/=o;c*=2,k.style(e,t,c+l),n=n||[]}return n&&(c=+c||+u||0,i=n[1]?c+(n[1]+1)*n[2]:+n[2],r&&(r.unit=l,r.start=c,r.end=i)),i}var ce={};function fe(e,t){for(var n,r,i,o,a,s,u,l=[],c=0,f=e.length;c<f;c++)(r=e[c]).style&&(n=r.style.display,t?("none"===n&&(l[c]=Q.get(r,"display")||null,l[c]||(r.style.display="")),""===r.style.display&&se(r)&&(l[c]=(u=a=o=void 0,a=(i=r).ownerDocument,s=i.nodeName,(u=ce[s])||(o=a.body.appendChild(a.createElement(s)),u=k.css(o,"display"),o.parentNode.removeChild(o),"none"===u&&(u="block"),ce[s]=u)))):"none"!==n&&(l[c]="none",Q.set(r,"display",n)));for(c=0;c<f;c++)null!=l[c]&&(e[c].style.display=l[c]);return e}k.fn.extend({show:function(){return fe(this,!0)},hide:function(){return fe(this)},toggle:function(e){return"boolean"==typeof e?e?this.show():this.hide():this.each(function(){se(this)?k(this).show():k(this).hide()})}});var pe=/^(?:checkbox|radio)$/i,de=/<([a-z][^\/\0>\x20\t\r\n\f]*)/i,he=/^$|^module$|\/(?:java|ecma)script/i,ge={option:[1,"<select multiple='multiple'>","</select>"],thead:[1,"<table>","</table>"],col:[2,"<table><colgroup>","</colgroup></table>"],tr:[2,"<table><tbody>","</tbody></table>"],td:[3,"<table><tbody><tr>","</tr></tbody></table>"],_default:[0,"",""]};function ve(e,t){var n;return n="undefined"!=typeof e.getElementsByTagName?e.getElementsByTagName(t||"*"):"undefined"!=typeof e.querySelectorAll?e.querySelectorAll(t||"*"):[],void 0===t||t&&A(e,t)?k.merge([e],n):n}function ye(e,t){for(var n=0,r=e.length;n<r;n++)Q.set(e[n],"globalEval",!t||Q.get(t[n],"globalEval"))}ge.optgroup=ge.option,ge.tbody=ge.tfoot=ge.colgroup=ge.caption=ge.thead,ge.th=ge.td;var me,xe,be=/<|&#?\w+;/;function we(e,t,n,r,i){for(var o,a,s,u,l,c,f=t.createDocumentFragment(),p=[],d=0,h=e.length;d<h;d++)if((o=e[d])||0===o)if("object"===w(o))k.merge(p,o.nodeType?[o]:o);else if(be.test(o)){a=a||f.appendChild(t.createElement("div")),s=(de.exec(o)||["",""])[1].toLowerCase(),u=ge[s]||ge._default,a.innerHTML=u[1]+k.htmlPrefilter(o)+u[2],c=u[0];while(c--)a=a.lastChild;k.merge(p,a.childNodes),(a=f.firstChild).textContent=""}else p.push(t.createTextNode(o));f.textContent="",d=0;while(o=p[d++])if(r&&-1<k.inArray(o,r))i&&i.push(o);else if(l=oe(o),a=ve(f.appendChild(o),"script"),l&&ye(a),n){c=0;while(o=a[c++])he.test(o.type||"")&&n.push(o)}return f}me=E.createDocumentFragment().appendChild(E.createElement("div")),(xe=E.createElement("input")).setAttribute("type","radio"),xe.setAttribute("checked","checked"),xe.setAttribute("name","t"),me.appendChild(xe),y.checkClone=me.cloneNode(!0).cloneNode(!0).lastChild.checked,me.innerHTML="<textarea>x</textarea>",y.noCloneChecked=!!me.cloneNode(!0).lastChild.defaultValue;var Te=/^key/,Ce=/^(?:mouse|pointer|contextmenu|drag|drop)|click/,Ee=/^([^.]*)(?:\.(.+)|)/;function ke(){return!0}function Se(){return!1}function Ne(e,t){return e===function(){try{return E.activeElement}catch(e){}}()==("focus"===t)}function Ae(e,t,n,r,i,o){var a,s;if("object"==typeof t){for(s in"string"!=typeof n&&(r=r||n,n=void 0),t)Ae(e,s,n,r,t[s],o);return e}if(null==r&&null==i?(i=n,r=n=void 0):null==i&&("string"==typeof n?(i=r,r=void 0):(i=r,r=n,n=void 0)),!1===i)i=Se;else if(!i)return e;return 1===o&&(a=i,(i=function(e){return k().off(e),a.apply(this,arguments)}).guid=a.guid||(a.guid=k.guid++)),e.each(function(){k.event.add(this,t,i,r,n)})}function De(e,i,o){o?(Q.set(e,i,!1),k.event.add(e,i,{namespace:!1,handler:function(e){var t,n,r=Q.get(this,i);if(1&e.isTrigger&&this[i]){if(r.length)(k.event.special[i]||{}).delegateType&&e.stopPropagation();else if(r=s.call(arguments),Q.set(this,i,r),t=o(this,i),this[i](),r!==(n=Q.get(this,i))||t?Q.set(this,i,!1):n={},r!==n)return e.stopImmediatePropagation(),e.preventDefault(),n.value}else r.length&&(Q.set(this,i,{value:k.event.trigger(k.extend(r[0],k.Event.prototype),r.slice(1),this)}),e.stopImmediatePropagation())}})):void 0===Q.get(e,i)&&k.event.add(e,i,ke)}k.event={global:{},add:function(t,e,n,r,i){var o,a,s,u,l,c,f,p,d,h,g,v=Q.get(t);if(v){n.handler&&(n=(o=n).handler,i=o.selector),i&&k.find.matchesSelector(ie,i),n.guid||(n.guid=k.guid++),(u=v.events)||(u=v.events={}),(a=v.handle)||(a=v.handle=function(e){return"undefined"!=typeof k&&k.event.triggered!==e.type?k.event.dispatch.apply(t,arguments):void 0}),l=(e=(e||"").match(R)||[""]).length;while(l--)d=g=(s=Ee.exec(e[l])||[])[1],h=(s[2]||"").split(".").sort(),d&&(f=k.event.special[d]||{},d=(i?f.delegateType:f.bindType)||d,f=k.event.special[d]||{},c=k.extend({type:d,origType:g,data:r,handler:n,guid:n.guid,selector:i,needsContext:i&&k.expr.match.needsContext.test(i),namespace:h.join(".")},o),(p=u[d])||((p=u[d]=[]).delegateCount=0,f.setup&&!1!==f.setup.call(t,r,h,a)||t.addEventListener&&t.addEventListener(d,a)),f.add&&(f.add.call(t,c),c.handler.guid||(c.handler.guid=n.guid)),i?p.splice(p.delegateCount++,0,c):p.push(c),k.event.global[d]=!0)}},remove:function(e,t,n,r,i){var o,a,s,u,l,c,f,p,d,h,g,v=Q.hasData(e)&&Q.get(e);if(v&&(u=v.events)){l=(t=(t||"").match(R)||[""]).length;while(l--)if(d=g=(s=Ee.exec(t[l])||[])[1],h=(s[2]||"").split(".").sort(),d){f=k.event.special[d]||{},p=u[d=(r?f.delegateType:f.bindType)||d]||[],s=s[2]&&new RegExp("(^|\\.)"+h.join("\\.(?:.*\\.|)")+"(\\.|$)"),a=o=p.length;while(o--)c=p[o],!i&&g!==c.origType||n&&n.guid!==c.guid||s&&!s.test(c.namespace)||r&&r!==c.selector&&("**"!==r||!c.selector)||(p.splice(o,1),c.selector&&p.delegateCount--,f.remove&&f.remove.call(e,c));a&&!p.length&&(f.teardown&&!1!==f.teardown.call(e,h,v.handle)||k.removeEvent(e,d,v.handle),delete u[d])}else for(d in u)k.event.remove(e,d+t[l],n,r,!0);k.isEmptyObject(u)&&Q.remove(e,"handle events")}},dispatch:function(e){var t,n,r,i,o,a,s=k.event.fix(e),u=new Array(arguments.length),l=(Q.get(this,"events")||{})[s.type]||[],c=k.event.special[s.type]||{};for(u[0]=s,t=1;t<arguments.length;t++)u[t]=arguments[t];if(s.delegateTarget=this,!c.preDispatch||!1!==c.preDispatch.call(this,s)){a=k.event.handlers.call(this,s,l),t=0;while((i=a[t++])&&!s.isPropagationStopped()){s.currentTarget=i.elem,n=0;while((o=i.handlers[n++])&&!s.isImmediatePropagationStopped())s.rnamespace&&!1!==o.namespace&&!s.rnamespace.test(o.namespace)||(s.handleObj=o,s.data=o.data,void 0!==(r=((k.event.special[o.origType]||{}).handle||o.handler).apply(i.elem,u))&&!1===(s.result=r)&&(s.preventDefault(),s.stopPropagation()))}return c.postDispatch&&c.postDispatch.call(this,s),s.result}},handlers:function(e,t){var n,r,i,o,a,s=[],u=t.delegateCount,l=e.target;if(u&&l.nodeType&&!("click"===e.type&&1<=e.button))for(;l!==this;l=l.parentNode||this)if(1===l.nodeType&&("click"!==e.type||!0!==l.disabled)){for(o=[],a={},n=0;n<u;n++)void 0===a[i=(r=t[n]).selector+" "]&&(a[i]=r.needsContext?-1<k(i,this).index(l):k.find(i,this,null,[l]).length),a[i]&&o.push(r);o.length&&s.push({elem:l,handlers:o})}return l=this,u<t.length&&s.push({elem:l,handlers:t.slice(u)}),s},addProp:function(t,e){Object.defineProperty(k.Event.prototype,t,{enumerable:!0,configurable:!0,get:m(e)?function(){if(this.originalEvent)return e(this.originalEvent)}:function(){if(this.originalEvent)return this.originalEvent[t]},set:function(e){Object.defineProperty(this,t,{enumerable:!0,configurable:!0,writable:!0,value:e})}})},fix:function(e){return e[k.expando]?e:new k.Event(e)},special:{load:{noBubble:!0},click:{setup:function(e){var t=this||e;return pe.test(t.type)&&t.click&&A(t,"input")&&De(t,"click",ke),!1},trigger:function(e){var t=this||e;return pe.test(t.type)&&t.click&&A(t,"input")&&De(t,"click"),!0},_default:function(e){var t=e.target;return pe.test(t.type)&&t.click&&A(t,"input")&&Q.get(t,"click")||A(t,"a")}},beforeunload:{postDispatch:function(e){void 0!==e.result&&e.originalEvent&&(e.originalEvent.returnValue=e.result)}}}},k.removeEvent=function(e,t,n){e.removeEventListener&&e.removeEventListener(t,n)},k.Event=function(e,t){if(!(this instanceof k.Event))return new k.Event(e,t);e&&e.type?(this.originalEvent=e,this.type=e.type,this.isDefaultPrevented=e.defaultPrevented||void 0===e.defaultPrevented&&!1===e.returnValue?ke:Se,this.target=e.target&&3===e.target.nodeType?e.target.parentNode:e.target,this.currentTarget=e.currentTarget,this.relatedTarget=e.relatedTarget):this.type=e,t&&k.extend(this,t),this.timeStamp=e&&e.timeStamp||Date.now(),this[k.expando]=!0},k.Event.prototype={constructor:k.Event,isDefaultPrevented:Se,isPropagationStopped:Se,isImmediatePropagationStopped:Se,isSimulated:!1,preventDefault:function(){var e=this.originalEvent;this.isDefaultPrevented=ke,e&&!this.isSimulated&&e.preventDefault()},stopPropagation:function(){var e=this.originalEvent;this.isPropagationStopped=ke,e&&!this.isSimulated&&e.stopPropagation()},stopImmediatePropagation:function(){var e=this.originalEvent;this.isImmediatePropagationStopped=ke,e&&!this.isSimulated&&e.stopImmediatePropagation(),this.stopPropagation()}},k.each({altKey:!0,bubbles:!0,cancelable:!0,changedTouches:!0,ctrlKey:!0,detail:!0,eventPhase:!0,metaKey:!0,pageX:!0,pageY:!0,shiftKey:!0,view:!0,"char":!0,code:!0,charCode:!0,key:!0,keyCode:!0,button:!0,buttons:!0,clientX:!0,clientY:!0,offsetX:!0,offsetY:!0,pointerId:!0,pointerType:!0,screenX:!0,screenY:!0,targetTouches:!0,toElement:!0,touches:!0,which:function(e){var t=e.button;return null==e.which&&Te.test(e.type)?null!=e.charCode?e.charCode:e.keyCode:!e.which&&void 0!==t&&Ce.test(e.type)?1&t?1:2&t?3:4&t?2:0:e.which}},k.event.addProp),k.each({focus:"focusin",blur:"focusout"},function(e,t){k.event.special[e]={setup:function(){return De(this,e,Ne),!1},trigger:function(){return De(this,e),!0},delegateType:t}}),k.each({mouseenter:"mouseover",mouseleave:"mouseout",pointerenter:"pointerover",pointerleave:"pointerout"},function(e,i){k.event.special[e]={delegateType:i,bindType:i,handle:function(e){var t,n=e.relatedTarget,r=e.handleObj;return n&&(n===this||k.contains(this,n))||(e.type=r.origType,t=r.handler.apply(this,arguments),e.type=i),t}}}),k.fn.extend({on:function(e,t,n,r){return Ae(this,e,t,n,r)},one:function(e,t,n,r){return Ae(this,e,t,n,r,1)},off:function(e,t,n){var r,i;if(e&&e.preventDefault&&e.handleObj)return r=e.handleObj,k(e.delegateTarget).off(r.namespace?r.origType+"."+r.namespace:r.origType,r.selector,r.handler),this;if("object"==typeof e){for(i in e)this.off(i,t,e[i]);return this}return!1!==t&&"function"!=typeof t||(n=t,t=void 0),!1===n&&(n=Se),this.each(function(){k.event.remove(this,e,n,t)})}});var je=/<(?!area|br|col|embed|hr|img|input|link|meta|param)(([a-z][^\/\0>\x20\t\r\n\f]*)[^>]*)\/>/gi,qe=/<script|<style|<link/i,Le=/checked\s*(?:[^=]|=\s*.checked.)/i,He=/^\s*<!(?:\[CDATA\[|--)|(?:\]\]|--)>\s*$/g;function Oe(e,t){return A(e,"table")&&A(11!==t.nodeType?t:t.firstChild,"tr")&&k(e).children("tbody")[0]||e}function Pe(e){return e.type=(null!==e.getAttribute("type"))+"/"+e.type,e}function Re(e){return"true/"===(e.type||"").slice(0,5)?e.type=e.type.slice(5):e.removeAttribute("type"),e}function Me(e,t){var n,r,i,o,a,s,u,l;if(1===t.nodeType){if(Q.hasData(e)&&(o=Q.access(e),a=Q.set(t,o),l=o.events))for(i in delete a.handle,a.events={},l)for(n=0,r=l[i].length;n<r;n++)k.event.add(t,i,l[i][n]);J.hasData(e)&&(s=J.access(e),u=k.extend({},s),J.set(t,u))}}function Ie(n,r,i,o){r=g.apply([],r);var e,t,a,s,u,l,c=0,f=n.length,p=f-1,d=r[0],h=m(d);if(h||1<f&&"string"==typeof d&&!y.checkClone&&Le.test(d))return n.each(function(e){var t=n.eq(e);h&&(r[0]=d.call(this,e,t.html())),Ie(t,r,i,o)});if(f&&(t=(e=we(r,n[0].ownerDocument,!1,n,o)).firstChild,1===e.childNodes.length&&(e=t),t||o)){for(s=(a=k.map(ve(e,"script"),Pe)).length;c<f;c++)u=e,c!==p&&(u=k.clone(u,!0,!0),s&&k.merge(a,ve(u,"script"))),i.call(n[c],u,c);if(s)for(l=a[a.length-1].ownerDocument,k.map(a,Re),c=0;c<s;c++)u=a[c],he.test(u.type||"")&&!Q.access(u,"globalEval")&&k.contains(l,u)&&(u.src&&"module"!==(u.type||"").toLowerCase()?k._evalUrl&&!u.noModule&&k._evalUrl(u.src,{nonce:u.nonce||u.getAttribute("nonce")}):b(u.textContent.replace(He,""),u,l))}return n}function We(e,t,n){for(var r,i=t?k.filter(t,e):e,o=0;null!=(r=i[o]);o++)n||1!==r.nodeType||k.cleanData(ve(r)),r.parentNode&&(n&&oe(r)&&ye(ve(r,"script")),r.parentNode.removeChild(r));return e}k.extend({htmlPrefilter:function(e){return e.replace(je,"<$1></$2>")},clone:function(e,t,n){var r,i,o,a,s,u,l,c=e.cloneNode(!0),f=oe(e);if(!(y.noCloneChecked||1!==e.nodeType&&11!==e.nodeType||k.isXMLDoc(e)))for(a=ve(c),r=0,i=(o=ve(e)).length;r<i;r++)s=o[r],u=a[r],void 0,"input"===(l=u.nodeName.toLowerCase())&&pe.test(s.type)?u.checked=s.checked:"input"!==l&&"textarea"!==l||(u.defaultValue=s.defaultValue);if(t)if(n)for(o=o||ve(e),a=a||ve(c),r=0,i=o.length;r<i;r++)Me(o[r],a[r]);else Me(e,c);return 0<(a=ve(c,"script")).length&&ye(a,!f&&ve(e,"script")),c},cleanData:function(e){for(var t,n,r,i=k.event.special,o=0;void 0!==(n=e[o]);o++)if(G(n)){if(t=n[Q.expando]){if(t.events)for(r in t.events)i[r]?k.event.remove(n,r):k.removeEvent(n,r,t.handle);n[Q.expando]=void 0}n[J.expando]&&(n[J.expando]=void 0)}}}),k.fn.extend({detach:function(e){return We(this,e,!0)},remove:function(e){return We(this,e)},text:function(e){return _(this,function(e){return void 0===e?k.text(this):this.empty().each(function(){1!==this.nodeType&&11!==this.nodeType&&9!==this.nodeType||(this.textContent=e)})},null,e,arguments.length)},append:function(){return Ie(this,arguments,function(e){1!==this.nodeType&&11!==this.nodeType&&9!==this.nodeType||Oe(this,e).appendChild(e)})},prepend:function(){return Ie(this,arguments,function(e){if(1===this.nodeType||11===this.nodeType||9===this.nodeType){var t=Oe(this,e);t.insertBefore(e,t.firstChild)}})},before:function(){return Ie(this,arguments,function(e){this.parentNode&&this.parentNode.insertBefore(e,this)})},after:function(){return Ie(this,arguments,function(e){this.parentNode&&this.parentNode.insertBefore(e,this.nextSibling)})},empty:function(){for(var e,t=0;null!=(e=this[t]);t++)1===e.nodeType&&(k.cleanData(ve(e,!1)),e.textContent="");return this},clone:function(e,t){return e=null!=e&&e,t=null==t?e:t,this.map(function(){return k.clone(this,e,t)})},html:function(e){return _(this,function(e){var t=this[0]||{},n=0,r=this.length;if(void 0===e&&1===t.nodeType)return t.innerHTML;if("string"==typeof e&&!qe.test(e)&&!ge[(de.exec(e)||["",""])[1].toLowerCase()]){e=k.htmlPrefilter(e);try{for(;n<r;n++)1===(t=this[n]||{}).nodeType&&(k.cleanData(ve(t,!1)),t.innerHTML=e);t=0}catch(e){}}t&&this.empty().append(e)},null,e,arguments.length)},replaceWith:function(){var n=[];return Ie(this,arguments,function(e){var t=this.parentNode;k.inArray(this,n)<0&&(k.cleanData(ve(this)),t&&t.replaceChild(e,this))},n)}}),k.each({appendTo:"append",prependTo:"prepend",insertBefore:"before",insertAfter:"after",replaceAll:"replaceWith"},function(e,a){k.fn[e]=function(e){for(var t,n=[],r=k(e),i=r.length-1,o=0;o<=i;o++)t=o===i?this:this.clone(!0),k(r[o])[a](t),u.apply(n,t.get());return this.pushStack(n)}});var $e=new RegExp("^("+te+")(?!px)[a-z%]+$","i"),Fe=function(e){var t=e.ownerDocument.defaultView;return t&&t.opener||(t=C),t.getComputedStyle(e)},Be=new RegExp(re.join("|"),"i");function _e(e,t,n){var r,i,o,a,s=e.style;return(n=n||Fe(e))&&(""!==(a=n.getPropertyValue(t)||n[t])||oe(e)||(a=k.style(e,t)),!y.pixelBoxStyles()&&$e.test(a)&&Be.test(t)&&(r=s.width,i=s.minWidth,o=s.maxWidth,s.minWidth=s.maxWidth=s.width=a,a=n.width,s.width=r,s.minWidth=i,s.maxWidth=o)),void 0!==a?a+"":a}function ze(e,t){return{get:function(){if(!e())return(this.get=t).apply(this,arguments);delete this.get}}}!function(){function e(){if(u){s.style.cssText="position:absolute;left:-11111px;width:60px;margin-top:1px;padding:0;border:0",u.style.cssText="position:relative;display:block;box-sizing:border-box;overflow:scroll;margin:auto;border:1px;padding:1px;width:60%;top:1%",ie.appendChild(s).appendChild(u);var e=C.getComputedStyle(u);n="1%"!==e.top,a=12===t(e.marginLeft),u.style.right="60%",o=36===t(e.right),r=36===t(e.width),u.style.position="absolute",i=12===t(u.offsetWidth/3),ie.removeChild(s),u=null}}function t(e){return Math.round(parseFloat(e))}var n,r,i,o,a,s=E.createElement("div"),u=E.createElement("div");u.style&&(u.style.backgroundClip="content-box",u.cloneNode(!0).style.backgroundClip="",y.clearCloneStyle="content-box"===u.style.backgroundClip,k.extend(y,{boxSizingReliable:function(){return e(),r},pixelBoxStyles:function(){return e(),o},pixelPosition:function(){return e(),n},reliableMarginLeft:function(){return e(),a},scrollboxSize:function(){return e(),i}}))}();var Ue=["Webkit","Moz","ms"],Xe=E.createElement("div").style,Ve={};function Ge(e){var t=k.cssProps[e]||Ve[e];return t||(e in Xe?e:Ve[e]=function(e){var t=e[0].toUpperCase()+e.slice(1),n=Ue.length;while(n--)if((e=Ue[n]+t)in Xe)return e}(e)||e)}var Ye=/^(none|table(?!-c[ea]).+)/,Qe=/^--/,Je={position:"absolute",visibility:"hidden",display:"block"},Ke={letterSpacing:"0",fontWeight:"400"};function Ze(e,t,n){var r=ne.exec(t);return r?Math.max(0,r[2]-(n||0))+(r[3]||"px"):t}function et(e,t,n,r,i,o){var a="width"===t?1:0,s=0,u=0;if(n===(r?"border":"content"))return 0;for(;a<4;a+=2)"margin"===n&&(u+=k.css(e,n+re[a],!0,i)),r?("content"===n&&(u-=k.css(e,"padding"+re[a],!0,i)),"margin"!==n&&(u-=k.css(e,"border"+re[a]+"Width",!0,i))):(u+=k.css(e,"padding"+re[a],!0,i),"padding"!==n?u+=k.css(e,"border"+re[a]+"Width",!0,i):s+=k.css(e,"border"+re[a]+"Width",!0,i));return!r&&0<=o&&(u+=Math.max(0,Math.ceil(e["offset"+t[0].toUpperCase()+t.slice(1)]-o-u-s-.5))||0),u}function tt(e,t,n){var r=Fe(e),i=(!y.boxSizingReliable()||n)&&"border-box"===k.css(e,"boxSizing",!1,r),o=i,a=_e(e,t,r),s="offset"+t[0].toUpperCase()+t.slice(1);if($e.test(a)){if(!n)return a;a="auto"}return(!y.boxSizingReliable()&&i||"auto"===a||!parseFloat(a)&&"inline"===k.css(e,"display",!1,r))&&e.getClientRects().length&&(i="border-box"===k.css(e,"boxSizing",!1,r),(o=s in e)&&(a=e[s])),(a=parseFloat(a)||0)+et(e,t,n||(i?"border":"content"),o,r,a)+"px"}function nt(e,t,n,r,i){return new nt.prototype.init(e,t,n,r,i)}k.extend({cssHooks:{opacity:{get:function(e,t){if(t){var n=_e(e,"opacity");return""===n?"1":n}}}},cssNumber:{animationIterationCount:!0,columnCount:!0,fillOpacity:!0,flexGrow:!0,flexShrink:!0,fontWeight:!0,gridArea:!0,gridColumn:!0,gridColumnEnd:!0,gridColumnStart:!0,gridRow:!0,gridRowEnd:!0,gridRowStart:!0,lineHeight:!0,opacity:!0,order:!0,orphans:!0,widows:!0,zIndex:!0,zoom:!0},cssProps:{},style:function(e,t,n,r){if(e&&3!==e.nodeType&&8!==e.nodeType&&e.style){var i,o,a,s=V(t),u=Qe.test(t),l=e.style;if(u||(t=Ge(s)),a=k.cssHooks[t]||k.cssHooks[s],void 0===n)return a&&"get"in a&&void 0!==(i=a.get(e,!1,r))?i:l[t];"string"===(o=typeof n)&&(i=ne.exec(n))&&i[1]&&(n=le(e,t,i),o="number"),null!=n&&n==n&&("number"!==o||u||(n+=i&&i[3]||(k.cssNumber[s]?"":"px")),y.clearCloneStyle||""!==n||0!==t.indexOf("background")||(l[t]="inherit"),a&&"set"in a&&void 0===(n=a.set(e,n,r))||(u?l.setProperty(t,n):l[t]=n))}},css:function(e,t,n,r){var i,o,a,s=V(t);return Qe.test(t)||(t=Ge(s)),(a=k.cssHooks[t]||k.cssHooks[s])&&"get"in a&&(i=a.get(e,!0,n)),void 0===i&&(i=_e(e,t,r)),"normal"===i&&t in Ke&&(i=Ke[t]),""===n||n?(o=parseFloat(i),!0===n||isFinite(o)?o||0:i):i}}),k.each(["height","width"],function(e,u){k.cssHooks[u]={get:function(e,t,n){if(t)return!Ye.test(k.css(e,"display"))||e.getClientRects().length&&e.getBoundingClientRect().width?tt(e,u,n):ue(e,Je,function(){return tt(e,u,n)})},set:function(e,t,n){var r,i=Fe(e),o=!y.scrollboxSize()&&"absolute"===i.position,a=(o||n)&&"border-box"===k.css(e,"boxSizing",!1,i),s=n?et(e,u,n,a,i):0;return a&&o&&(s-=Math.ceil(e["offset"+u[0].toUpperCase()+u.slice(1)]-parseFloat(i[u])-et(e,u,"border",!1,i)-.5)),s&&(r=ne.exec(t))&&"px"!==(r[3]||"px")&&(e.style[u]=t,t=k.css(e,u)),Ze(0,t,s)}}}),k.cssHooks.marginLeft=ze(y.reliableMarginLeft,function(e,t){if(t)return(parseFloat(_e(e,"marginLeft"))||e.getBoundingClientRect().left-ue(e,{marginLeft:0},function(){return e.getBoundingClientRect().left}))+"px"}),k.each({margin:"",padding:"",border:"Width"},function(i,o){k.cssHooks[i+o]={expand:function(e){for(var t=0,n={},r="string"==typeof e?e.split(" "):[e];t<4;t++)n[i+re[t]+o]=r[t]||r[t-2]||r[0];return n}},"margin"!==i&&(k.cssHooks[i+o].set=Ze)}),k.fn.extend({css:function(e,t){return _(this,function(e,t,n){var r,i,o={},a=0;if(Array.isArray(t)){for(r=Fe(e),i=t.length;a<i;a++)o[t[a]]=k.css(e,t[a],!1,r);return o}return void 0!==n?k.style(e,t,n):k.css(e,t)},e,t,1<arguments.length)}}),((k.Tween=nt).prototype={constructor:nt,init:function(e,t,n,r,i,o){this.elem=e,this.prop=n,this.easing=i||k.easing._default,this.options=t,this.start=this.now=this.cur(),this.end=r,this.unit=o||(k.cssNumber[n]?"":"px")},cur:function(){var e=nt.propHooks[this.prop];return e&&e.get?e.get(this):nt.propHooks._default.get(this)},run:function(e){var t,n=nt.propHooks[this.prop];return this.options.duration?this.pos=t=k.easing[this.easing](e,this.options.duration*e,0,1,this.options.duration):this.pos=t=e,this.now=(this.end-this.start)*t+this.start,this.options.step&&this.options.step.call(this.elem,this.now,this),n&&n.set?n.set(this):nt.propHooks._default.set(this),this}}).init.prototype=nt.prototype,(nt.propHooks={_default:{get:function(e){var t;return 1!==e.elem.nodeType||null!=e.elem[e.prop]&&null==e.elem.style[e.prop]?e.elem[e.prop]:(t=k.css(e.elem,e.prop,""))&&"auto"!==t?t:0},set:function(e){k.fx.step[e.prop]?k.fx.step[e.prop](e):1!==e.elem.nodeType||!k.cssHooks[e.prop]&&null==e.elem.style[Ge(e.prop)]?e.elem[e.prop]=e.now:k.style(e.elem,e.prop,e.now+e.unit)}}}).scrollTop=nt.propHooks.scrollLeft={set:function(e){e.elem.nodeType&&e.elem.parentNode&&(e.elem[e.prop]=e.now)}},k.easing={linear:function(e){return e},swing:function(e){return.5-Math.cos(e*Math.PI)/2},_default:"swing"},k.fx=nt.prototype.init,k.fx.step={};var rt,it,ot,at,st=/^(?:toggle|show|hide)$/,ut=/queueHooks$/;function lt(){it&&(!1===E.hidden&&C.requestAnimationFrame?C.requestAnimationFrame(lt):C.setTimeout(lt,k.fx.interval),k.fx.tick())}function ct(){return C.setTimeout(function(){rt=void 0}),rt=Date.now()}function ft(e,t){var n,r=0,i={height:e};for(t=t?1:0;r<4;r+=2-t)i["margin"+(n=re[r])]=i["padding"+n]=e;return t&&(i.opacity=i.width=e),i}function pt(e,t,n){for(var r,i=(dt.tweeners[t]||[]).concat(dt.tweeners["*"]),o=0,a=i.length;o<a;o++)if(r=i[o].call(n,t,e))return r}function dt(o,e,t){var n,a,r=0,i=dt.prefilters.length,s=k.Deferred().always(function(){delete u.elem}),u=function(){if(a)return!1;for(var e=rt||ct(),t=Math.max(0,l.startTime+l.duration-e),n=1-(t/l.duration||0),r=0,i=l.tweens.length;r<i;r++)l.tweens[r].run(n);return s.notifyWith(o,[l,n,t]),n<1&&i?t:(i||s.notifyWith(o,[l,1,0]),s.resolveWith(o,[l]),!1)},l=s.promise({elem:o,props:k.extend({},e),opts:k.extend(!0,{specialEasing:{},easing:k.easing._default},t),originalProperties:e,originalOptions:t,startTime:rt||ct(),duration:t.duration,tweens:[],createTween:function(e,t){var n=k.Tween(o,l.opts,e,t,l.opts.specialEasing[e]||l.opts.easing);return l.tweens.push(n),n},stop:function(e){var t=0,n=e?l.tweens.length:0;if(a)return this;for(a=!0;t<n;t++)l.tweens[t].run(1);return e?(s.notifyWith(o,[l,1,0]),s.resolveWith(o,[l,e])):s.rejectWith(o,[l,e]),this}}),c=l.props;for(!function(e,t){var n,r,i,o,a;for(n in e)if(i=t[r=V(n)],o=e[n],Array.isArray(o)&&(i=o[1],o=e[n]=o[0]),n!==r&&(e[r]=o,delete e[n]),(a=k.cssHooks[r])&&"expand"in a)for(n in o=a.expand(o),delete e[r],o)n in e||(e[n]=o[n],t[n]=i);else t[r]=i}(c,l.opts.specialEasing);r<i;r++)if(n=dt.prefilters[r].call(l,o,c,l.opts))return m(n.stop)&&(k._queueHooks(l.elem,l.opts.queue).stop=n.stop.bind(n)),n;return k.map(c,pt,l),m(l.opts.start)&&l.opts.start.call(o,l),l.progress(l.opts.progress).done(l.opts.done,l.opts.complete).fail(l.opts.fail).always(l.opts.always),k.fx.timer(k.extend(u,{elem:o,anim:l,queue:l.opts.queue})),l}k.Animation=k.extend(dt,{tweeners:{"*":[function(e,t){var n=this.createTween(e,t);return le(n.elem,e,ne.exec(t),n),n}]},tweener:function(e,t){m(e)?(t=e,e=["*"]):e=e.match(R);for(var n,r=0,i=e.length;r<i;r++)n=e[r],dt.tweeners[n]=dt.tweeners[n]||[],dt.tweeners[n].unshift(t)},prefilters:[function(e,t,n){var r,i,o,a,s,u,l,c,f="width"in t||"height"in t,p=this,d={},h=e.style,g=e.nodeType&&se(e),v=Q.get(e,"fxshow");for(r in n.queue||(null==(a=k._queueHooks(e,"fx")).unqueued&&(a.unqueued=0,s=a.empty.fire,a.empty.fire=function(){a.unqueued||s()}),a.unqueued++,p.always(function(){p.always(function(){a.unqueued--,k.queue(e,"fx").length||a.empty.fire()})})),t)if(i=t[r],st.test(i)){if(delete t[r],o=o||"toggle"===i,i===(g?"hide":"show")){if("show"!==i||!v||void 0===v[r])continue;g=!0}d[r]=v&&v[r]||k.style(e,r)}if((u=!k.isEmptyObject(t))||!k.isEmptyObject(d))for(r in f&&1===e.nodeType&&(n.overflow=[h.overflow,h.overflowX,h.overflowY],null==(l=v&&v.display)&&(l=Q.get(e,"display")),"none"===(c=k.css(e,"display"))&&(l?c=l:(fe([e],!0),l=e.style.display||l,c=k.css(e,"display"),fe([e]))),("inline"===c||"inline-block"===c&&null!=l)&&"none"===k.css(e,"float")&&(u||(p.done(function(){h.display=l}),null==l&&(c=h.display,l="none"===c?"":c)),h.display="inline-block")),n.overflow&&(h.overflow="hidden",p.always(function(){h.overflow=n.overflow[0],h.overflowX=n.overflow[1],h.overflowY=n.overflow[2]})),u=!1,d)u||(v?"hidden"in v&&(g=v.hidden):v=Q.access(e,"fxshow",{display:l}),o&&(v.hidden=!g),g&&fe([e],!0),p.done(function(){for(r in g||fe([e]),Q.remove(e,"fxshow"),d)k.style(e,r,d[r])})),u=pt(g?v[r]:0,r,p),r in v||(v[r]=u.start,g&&(u.end=u.start,u.start=0))}],prefilter:function(e,t){t?dt.prefilters.unshift(e):dt.prefilters.push(e)}}),k.speed=function(e,t,n){var r=e&&"object"==typeof e?k.extend({},e):{complete:n||!n&&t||m(e)&&e,duration:e,easing:n&&t||t&&!m(t)&&t};return k.fx.off?r.duration=0:"number"!=typeof r.duration&&(r.duration in k.fx.speeds?r.duration=k.fx.speeds[r.duration]:r.duration=k.fx.speeds._default),null!=r.queue&&!0!==r.queue||(r.queue="fx"),r.old=r.complete,r.complete=function(){m(r.old)&&r.old.call(this),r.queue&&k.dequeue(this,r.queue)},r},k.fn.extend({fadeTo:function(e,t,n,r){return this.filter(se).css("opacity",0).show().end().animate({opacity:t},e,n,r)},animate:function(t,e,n,r){var i=k.isEmptyObject(t),o=k.speed(e,n,r),a=function(){var e=dt(this,k.extend({},t),o);(i||Q.get(this,"finish"))&&e.stop(!0)};return a.finish=a,i||!1===o.queue?this.each(a):this.queue(o.queue,a)},stop:function(i,e,o){var a=function(e){var t=e.stop;delete e.stop,t(o)};return"string"!=typeof i&&(o=e,e=i,i=void 0),e&&!1!==i&&this.queue(i||"fx",[]),this.each(function(){var e=!0,t=null!=i&&i+"queueHooks",n=k.timers,r=Q.get(this);if(t)r[t]&&r[t].stop&&a(r[t]);else for(t in r)r[t]&&r[t].stop&&ut.test(t)&&a(r[t]);for(t=n.length;t--;)n[t].elem!==this||null!=i&&n[t].queue!==i||(n[t].anim.stop(o),e=!1,n.splice(t,1));!e&&o||k.dequeue(this,i)})},finish:function(a){return!1!==a&&(a=a||"fx"),this.each(function(){var e,t=Q.get(this),n=t[a+"queue"],r=t[a+"queueHooks"],i=k.timers,o=n?n.length:0;for(t.finish=!0,k.queue(this,a,[]),r&&r.stop&&r.stop.call(this,!0),e=i.length;e--;)i[e].elem===this&&i[e].queue===a&&(i[e].anim.stop(!0),i.splice(e,1));for(e=0;e<o;e++)n[e]&&n[e].finish&&n[e].finish.call(this);delete t.finish})}}),k.each(["toggle","show","hide"],function(e,r){var i=k.fn[r];k.fn[r]=function(e,t,n){return null==e||"boolean"==typeof e?i.apply(this,arguments):this.animate(ft(r,!0),e,t,n)}}),k.each({slideDown:ft("show"),slideUp:ft("hide"),slideToggle:ft("toggle"),fadeIn:{opacity:"show"},fadeOut:{opacity:"hide"},fadeToggle:{opacity:"toggle"}},function(e,r){k.fn[e]=function(e,t,n){return this.animate(r,e,t,n)}}),k.timers=[],k.fx.tick=function(){var e,t=0,n=k.timers;for(rt=Date.now();t<n.length;t++)(e=n[t])()||n[t]!==e||n.splice(t--,1);n.length||k.fx.stop(),rt=void 0},k.fx.timer=function(e){k.timers.push(e),k.fx.start()},k.fx.interval=13,k.fx.start=function(){it||(it=!0,lt())},k.fx.stop=function(){it=null},k.fx.speeds={slow:600,fast:200,_default:400},k.fn.delay=function(r,e){return r=k.fx&&k.fx.speeds[r]||r,e=e||"fx",this.queue(e,function(e,t){var n=C.setTimeout(e,r);t.stop=function(){C.clearTimeout(n)}})},ot=E.createElement("input"),at=E.createElement("select").appendChild(E.createElement("option")),ot.type="checkbox",y.checkOn=""!==ot.value,y.optSelected=at.selected,(ot=E.createElement("input")).value="t",ot.type="radio",y.radioValue="t"===ot.value;var ht,gt=k.expr.attrHandle;k.fn.extend({attr:function(e,t){return _(this,k.attr,e,t,1<arguments.length)},removeAttr:function(e){return this.each(function(){k.removeAttr(this,e)})}}),k.extend({attr:function(e,t,n){var r,i,o=e.nodeType;if(3!==o&&8!==o&&2!==o)return"undefined"==typeof e.getAttribute?k.prop(e,t,n):(1===o&&k.isXMLDoc(e)||(i=k.attrHooks[t.toLowerCase()]||(k.expr.match.bool.test(t)?ht:void 0)),void 0!==n?null===n?void k.removeAttr(e,t):i&&"set"in i&&void 0!==(r=i.set(e,n,t))?r:(e.setAttribute(t,n+""),n):i&&"get"in i&&null!==(r=i.get(e,t))?r:null==(r=k.find.attr(e,t))?void 0:r)},attrHooks:{type:{set:function(e,t){if(!y.radioValue&&"radio"===t&&A(e,"input")){var n=e.value;return e.setAttribute("type",t),n&&(e.value=n),t}}}},removeAttr:function(e,t){var n,r=0,i=t&&t.match(R);if(i&&1===e.nodeType)while(n=i[r++])e.removeAttribute(n)}}),ht={set:function(e,t,n){return!1===t?k.removeAttr(e,n):e.setAttribute(n,n),n}},k.each(k.expr.match.bool.source.match(/\w+/g),function(e,t){var a=gt[t]||k.find.attr;gt[t]=function(e,t,n){var r,i,o=t.toLowerCase();return n||(i=gt[o],gt[o]=r,r=null!=a(e,t,n)?o:null,gt[o]=i),r}});var vt=/^(?:input|select|textarea|button)$/i,yt=/^(?:a|area)$/i;function mt(e){return(e.match(R)||[]).join(" ")}function xt(e){return e.getAttribute&&e.getAttribute("class")||""}function bt(e){return Array.isArray(e)?e:"string"==typeof e&&e.match(R)||[]}k.fn.extend({prop:function(e,t){return _(this,k.prop,e,t,1<arguments.length)},removeProp:function(e){return this.each(function(){delete this[k.propFix[e]||e]})}}),k.extend({prop:function(e,t,n){var r,i,o=e.nodeType;if(3!==o&&8!==o&&2!==o)return 1===o&&k.isXMLDoc(e)||(t=k.propFix[t]||t,i=k.propHooks[t]),void 0!==n?i&&"set"in i&&void 0!==(r=i.set(e,n,t))?r:e[t]=n:i&&"get"in i&&null!==(r=i.get(e,t))?r:e[t]},propHooks:{tabIndex:{get:function(e){var t=k.find.attr(e,"tabindex");return t?parseInt(t,10):vt.test(e.nodeName)||yt.test(e.nodeName)&&e.href?0:-1}}},propFix:{"for":"htmlFor","class":"className"}}),y.optSelected||(k.propHooks.selected={get:function(e){var t=e.parentNode;return t&&t.parentNode&&t.parentNode.selectedIndex,null},set:function(e){var t=e.parentNode;t&&(t.selectedIndex,t.parentNode&&t.parentNode.selectedIndex)}}),k.each(["tabIndex","readOnly","maxLength","cellSpacing","cellPadding","rowSpan","colSpan","useMap","frameBorder","contentEditable"],function(){k.propFix[this.toLowerCase()]=this}),k.fn.extend({addClass:function(t){var e,n,r,i,o,a,s,u=0;if(m(t))return this.each(function(e){k(this).addClass(t.call(this,e,xt(this)))});if((e=bt(t)).length)while(n=this[u++])if(i=xt(n),r=1===n.nodeType&&" "+mt(i)+" "){a=0;while(o=e[a++])r.indexOf(" "+o+" ")<0&&(r+=o+" ");i!==(s=mt(r))&&n.setAttribute("class",s)}return this},removeClass:function(t){var e,n,r,i,o,a,s,u=0;if(m(t))return this.each(function(e){k(this).removeClass(t.call(this,e,xt(this)))});if(!arguments.length)return this.attr("class","");if((e=bt(t)).length)while(n=this[u++])if(i=xt(n),r=1===n.nodeType&&" "+mt(i)+" "){a=0;while(o=e[a++])while(-1<r.indexOf(" "+o+" "))r=r.replace(" "+o+" "," ");i!==(s=mt(r))&&n.setAttribute("class",s)}return this},toggleClass:function(i,t){var o=typeof i,a="string"===o||Array.isArray(i);return"boolean"==typeof t&&a?t?this.addClass(i):this.removeClass(i):m(i)?this.each(function(e){k(this).toggleClass(i.call(this,e,xt(this),t),t)}):this.each(function(){var e,t,n,r;if(a){t=0,n=k(this),r=bt(i);while(e=r[t++])n.hasClass(e)?n.removeClass(e):n.addClass(e)}else void 0!==i&&"boolean"!==o||((e=xt(this))&&Q.set(this,"__className__",e),this.setAttribute&&this.setAttribute("class",e||!1===i?"":Q.get(this,"__className__")||""))})},hasClass:function(e){var t,n,r=0;t=" "+e+" ";while(n=this[r++])if(1===n.nodeType&&-1<(" "+mt(xt(n))+" ").indexOf(t))return!0;return!1}});var wt=/\r/g;k.fn.extend({val:function(n){var r,e,i,t=this[0];return arguments.length?(i=m(n),this.each(function(e){var t;1===this.nodeType&&(null==(t=i?n.call(this,e,k(this).val()):n)?t="":"number"==typeof t?t+="":Array.isArray(t)&&(t=k.map(t,function(e){return null==e?"":e+""})),(r=k.valHooks[this.type]||k.valHooks[this.nodeName.toLowerCase()])&&"set"in r&&void 0!==r.set(this,t,"value")||(this.value=t))})):t?(r=k.valHooks[t.type]||k.valHooks[t.nodeName.toLowerCase()])&&"get"in r&&void 0!==(e=r.get(t,"value"))?e:"string"==typeof(e=t.value)?e.replace(wt,""):null==e?"":e:void 0}}),k.extend({valHooks:{option:{get:function(e){var t=k.find.attr(e,"value");return null!=t?t:mt(k.text(e))}},select:{get:function(e){var t,n,r,i=e.options,o=e.selectedIndex,a="select-one"===e.type,s=a?null:[],u=a?o+1:i.length;for(r=o<0?u:a?o:0;r<u;r++)if(((n=i[r]).selected||r===o)&&!n.disabled&&(!n.parentNode.disabled||!A(n.parentNode,"optgroup"))){if(t=k(n).val(),a)return t;s.push(t)}return s},set:function(e,t){var n,r,i=e.options,o=k.makeArray(t),a=i.length;while(a--)((r=i[a]).selected=-1<k.inArray(k.valHooks.option.get(r),o))&&(n=!0);return n||(e.selectedIndex=-1),o}}}}),k.each(["radio","checkbox"],function(){k.valHooks[this]={set:function(e,t){if(Array.isArray(t))return e.checked=-1<k.inArray(k(e).val(),t)}},y.checkOn||(k.valHooks[this].get=function(e){return null===e.getAttribute("value")?"on":e.value})}),y.focusin="onfocusin"in C;var Tt=/^(?:focusinfocus|focusoutblur)$/,Ct=function(e){e.stopPropagation()};k.extend(k.event,{trigger:function(e,t,n,r){var i,o,a,s,u,l,c,f,p=[n||E],d=v.call(e,"type")?e.type:e,h=v.call(e,"namespace")?e.namespace.split("."):[];if(o=f=a=n=n||E,3!==n.nodeType&&8!==n.nodeType&&!Tt.test(d+k.event.triggered)&&(-1<d.indexOf(".")&&(d=(h=d.split(".")).shift(),h.sort()),u=d.indexOf(":")<0&&"on"+d,(e=e[k.expando]?e:new k.Event(d,"object"==typeof e&&e)).isTrigger=r?2:3,e.namespace=h.join("."),e.rnamespace=e.namespace?new RegExp("(^|\\.)"+h.join("\\.(?:.*\\.|)")+"(\\.|$)"):null,e.result=void 0,e.target||(e.target=n),t=null==t?[e]:k.makeArray(t,[e]),c=k.event.special[d]||{},r||!c.trigger||!1!==c.trigger.apply(n,t))){if(!r&&!c.noBubble&&!x(n)){for(s=c.delegateType||d,Tt.test(s+d)||(o=o.parentNode);o;o=o.parentNode)p.push(o),a=o;a===(n.ownerDocument||E)&&p.push(a.defaultView||a.parentWindow||C)}i=0;while((o=p[i++])&&!e.isPropagationStopped())f=o,e.type=1<i?s:c.bindType||d,(l=(Q.get(o,"events")||{})[e.type]&&Q.get(o,"handle"))&&l.apply(o,t),(l=u&&o[u])&&l.apply&&G(o)&&(e.result=l.apply(o,t),!1===e.result&&e.preventDefault());return e.type=d,r||e.isDefaultPrevented()||c._default&&!1!==c._default.apply(p.pop(),t)||!G(n)||u&&m(n[d])&&!x(n)&&((a=n[u])&&(n[u]=null),k.event.triggered=d,e.isPropagationStopped()&&f.addEventListener(d,Ct),n[d](),e.isPropagationStopped()&&f.removeEventListener(d,Ct),k.event.triggered=void 0,a&&(n[u]=a)),e.result}},simulate:function(e,t,n){var r=k.extend(new k.Event,n,{type:e,isSimulated:!0});k.event.trigger(r,null,t)}}),k.fn.extend({trigger:function(e,t){return this.each(function(){k.event.trigger(e,t,this)})},triggerHandler:function(e,t){var n=this[0];if(n)return k.event.trigger(e,t,n,!0)}}),y.focusin||k.each({focus:"focusin",blur:"focusout"},function(n,r){var i=function(e){k.event.simulate(r,e.target,k.event.fix(e))};k.event.special[r]={setup:function(){var e=this.ownerDocument||this,t=Q.access(e,r);t||e.addEventListener(n,i,!0),Q.access(e,r,(t||0)+1)},teardown:function(){var e=this.ownerDocument||this,t=Q.access(e,r)-1;t?Q.access(e,r,t):(e.removeEventListener(n,i,!0),Q.remove(e,r))}}});var Et=C.location,kt=Date.now(),St=/\?/;k.parseXML=function(e){var t;if(!e||"string"!=typeof e)return null;try{t=(new C.DOMParser).parseFromString(e,"text/xml")}catch(e){t=void 0}return t&&!t.getElementsByTagName("parsererror").length||k.error("Invalid XML: "+e),t};var Nt=/\[\]$/,At=/\r?\n/g,Dt=/^(?:submit|button|image|reset|file)$/i,jt=/^(?:input|select|textarea|keygen)/i;function qt(n,e,r,i){var t;if(Array.isArray(e))k.each(e,function(e,t){r||Nt.test(n)?i(n,t):qt(n+"["+("object"==typeof t&&null!=t?e:"")+"]",t,r,i)});else if(r||"object"!==w(e))i(n,e);else for(t in e)qt(n+"["+t+"]",e[t],r,i)}k.param=function(e,t){var n,r=[],i=function(e,t){var n=m(t)?t():t;r[r.length]=encodeURIComponent(e)+"="+encodeURIComponent(null==n?"":n)};if(null==e)return"";if(Array.isArray(e)||e.jquery&&!k.isPlainObject(e))k.each(e,function(){i(this.name,this.value)});else for(n in e)qt(n,e[n],t,i);return r.join("&")},k.fn.extend({serialize:function(){return k.param(this.serializeArray())},serializeArray:function(){return this.map(function(){var e=k.prop(this,"elements");return e?k.makeArray(e):this}).filter(function(){var e=this.type;return this.name&&!k(this).is(":disabled")&&jt.test(this.nodeName)&&!Dt.test(e)&&(this.checked||!pe.test(e))}).map(function(e,t){var n=k(this).val();return null==n?null:Array.isArray(n)?k.map(n,function(e){return{name:t.name,value:e.replace(At,"\r\n")}}):{name:t.name,value:n.replace(At,"\r\n")}}).get()}});var Lt=/%20/g,Ht=/#.*$/,Ot=/([?&])_=[^&]*/,Pt=/^(.*?):[ \t]*([^\r\n]*)$/gm,Rt=/^(?:GET|HEAD)$/,Mt=/^\/\//,It={},Wt={},$t="*/".concat("*"),Ft=E.createElement("a");function Bt(o){return function(e,t){"string"!=typeof e&&(t=e,e="*");var n,r=0,i=e.toLowerCase().match(R)||[];if(m(t))while(n=i[r++])"+"===n[0]?(n=n.slice(1)||"*",(o[n]=o[n]||[]).unshift(t)):(o[n]=o[n]||[]).push(t)}}function _t(t,i,o,a){var s={},u=t===Wt;function l(e){var r;return s[e]=!0,k.each(t[e]||[],function(e,t){var n=t(i,o,a);return"string"!=typeof n||u||s[n]?u?!(r=n):void 0:(i.dataTypes.unshift(n),l(n),!1)}),r}return l(i.dataTypes[0])||!s["*"]&&l("*")}function zt(e,t){var n,r,i=k.ajaxSettings.flatOptions||{};for(n in t)void 0!==t[n]&&((i[n]?e:r||(r={}))[n]=t[n]);return r&&k.extend(!0,e,r),e}Ft.href=Et.href,k.extend({active:0,lastModified:{},etag:{},ajaxSettings:{url:Et.href,type:"GET",isLocal:/^(?:about|app|app-storage|.+-extension|file|res|widget):$/.test(Et.protocol),global:!0,processData:!0,async:!0,contentType:"application/x-www-form-urlencoded; charset=UTF-8",accepts:{"*":$t,text:"text/plain",html:"text/html",xml:"application/xml, text/xml",json:"application/json, text/javascript"},contents:{xml:/\bxml\b/,html:/\bhtml/,json:/\bjson\b/},responseFields:{xml:"responseXML",text:"responseText",json:"responseJSON"},converters:{"* text":String,"text html":!0,"text json":JSON.parse,"text xml":k.parseXML},flatOptions:{url:!0,context:!0}},ajaxSetup:function(e,t){return t?zt(zt(e,k.ajaxSettings),t):zt(k.ajaxSettings,e)},ajaxPrefilter:Bt(It),ajaxTransport:Bt(Wt),ajax:function(e,t){"object"==typeof e&&(t=e,e=void 0),t=t||{};var c,f,p,n,d,r,h,g,i,o,v=k.ajaxSetup({},t),y=v.context||v,m=v.context&&(y.nodeType||y.jquery)?k(y):k.event,x=k.Deferred(),b=k.Callbacks("once memory"),w=v.statusCode||{},a={},s={},u="canceled",T={readyState:0,getResponseHeader:function(e){var t;if(h){if(!n){n={};while(t=Pt.exec(p))n[t[1].toLowerCase()+" "]=(n[t[1].toLowerCase()+" "]||[]).concat(t[2])}t=n[e.toLowerCase()+" "]}return null==t?null:t.join(", ")},getAllResponseHeaders:function(){return h?p:null},setRequestHeader:function(e,t){return null==h&&(e=s[e.toLowerCase()]=s[e.toLowerCase()]||e,a[e]=t),this},overrideMimeType:function(e){return null==h&&(v.mimeType=e),this},statusCode:function(e){var t;if(e)if(h)T.always(e[T.status]);else for(t in e)w[t]=[w[t],e[t]];return this},abort:function(e){var t=e||u;return c&&c.abort(t),l(0,t),this}};if(x.promise(T),v.url=((e||v.url||Et.href)+"").replace(Mt,Et.protocol+"//"),v.type=t.method||t.type||v.method||v.type,v.dataTypes=(v.dataType||"*").toLowerCase().match(R)||[""],null==v.crossDomain){r=E.createElement("a");try{r.href=v.url,r.href=r.href,v.crossDomain=Ft.protocol+"//"+Ft.host!=r.protocol+"//"+r.host}catch(e){v.crossDomain=!0}}if(v.data&&v.processData&&"string"!=typeof v.data&&(v.data=k.param(v.data,v.traditional)),_t(It,v,t,T),h)return T;for(i in(g=k.event&&v.global)&&0==k.active++&&k.event.trigger("ajaxStart"),v.type=v.type.toUpperCase(),v.hasContent=!Rt.test(v.type),f=v.url.replace(Ht,""),v.hasContent?v.data&&v.processData&&0===(v.contentType||"").indexOf("application/x-www-form-urlencoded")&&(v.data=v.data.replace(Lt,"+")):(o=v.url.slice(f.length),v.data&&(v.processData||"string"==typeof v.data)&&(f+=(St.test(f)?"&":"?")+v.data,delete v.data),!1===v.cache&&(f=f.replace(Ot,"$1"),o=(St.test(f)?"&":"?")+"_="+kt+++o),v.url=f+o),v.ifModified&&(k.lastModified[f]&&T.setRequestHeader("If-Modified-Since",k.lastModified[f]),k.etag[f]&&T.setRequestHeader("If-None-Match",k.etag[f])),(v.data&&v.hasContent&&!1!==v.contentType||t.contentType)&&T.setRequestHeader("Content-Type",v.contentType),T.setRequestHeader("Accept",v.dataTypes[0]&&v.accepts[v.dataTypes[0]]?v.accepts[v.dataTypes[0]]+("*"!==v.dataTypes[0]?", "+$t+"; q=0.01":""):v.accepts["*"]),v.headers)T.setRequestHeader(i,v.headers[i]);if(v.beforeSend&&(!1===v.beforeSend.call(y,T,v)||h))return T.abort();if(u="abort",b.add(v.complete),T.done(v.success),T.fail(v.error),c=_t(Wt,v,t,T)){if(T.readyState=1,g&&m.trigger("ajaxSend",[T,v]),h)return T;v.async&&0<v.timeout&&(d=C.setTimeout(function(){T.abort("timeout")},v.timeout));try{h=!1,c.send(a,l)}catch(e){if(h)throw e;l(-1,e)}}else l(-1,"No Transport");function l(e,t,n,r){var i,o,a,s,u,l=t;h||(h=!0,d&&C.clearTimeout(d),c=void 0,p=r||"",T.readyState=0<e?4:0,i=200<=e&&e<300||304===e,n&&(s=function(e,t,n){var r,i,o,a,s=e.contents,u=e.dataTypes;while("*"===u[0])u.shift(),void 0===r&&(r=e.mimeType||t.getResponseHeader("Content-Type"));if(r)for(i in s)if(s[i]&&s[i].test(r)){u.unshift(i);break}if(u[0]in n)o=u[0];else{for(i in n){if(!u[0]||e.converters[i+" "+u[0]]){o=i;break}a||(a=i)}o=o||a}if(o)return o!==u[0]&&u.unshift(o),n[o]}(v,T,n)),s=function(e,t,n,r){var i,o,a,s,u,l={},c=e.dataTypes.slice();if(c[1])for(a in e.converters)l[a.toLowerCase()]=e.converters[a];o=c.shift();while(o)if(e.responseFields[o]&&(n[e.responseFields[o]]=t),!u&&r&&e.dataFilter&&(t=e.dataFilter(t,e.dataType)),u=o,o=c.shift())if("*"===o)o=u;else if("*"!==u&&u!==o){if(!(a=l[u+" "+o]||l["* "+o]))for(i in l)if((s=i.split(" "))[1]===o&&(a=l[u+" "+s[0]]||l["* "+s[0]])){!0===a?a=l[i]:!0!==l[i]&&(o=s[0],c.unshift(s[1]));break}if(!0!==a)if(a&&e["throws"])t=a(t);else try{t=a(t)}catch(e){return{state:"parsererror",error:a?e:"No conversion from "+u+" to "+o}}}return{state:"success",data:t}}(v,s,T,i),i?(v.ifModified&&((u=T.getResponseHeader("Last-Modified"))&&(k.lastModified[f]=u),(u=T.getResponseHeader("etag"))&&(k.etag[f]=u)),204===e||"HEAD"===v.type?l="nocontent":304===e?l="notmodified":(l=s.state,o=s.data,i=!(a=s.error))):(a=l,!e&&l||(l="error",e<0&&(e=0))),T.status=e,T.statusText=(t||l)+"",i?x.resolveWith(y,[o,l,T]):x.rejectWith(y,[T,l,a]),T.statusCode(w),w=void 0,g&&m.trigger(i?"ajaxSuccess":"ajaxError",[T,v,i?o:a]),b.fireWith(y,[T,l]),g&&(m.trigger("ajaxComplete",[T,v]),--k.active||k.event.trigger("ajaxStop")))}return T},getJSON:function(e,t,n){return k.get(e,t,n,"json")},getScript:function(e,t){return k.get(e,void 0,t,"script")}}),k.each(["get","post"],function(e,i){k[i]=function(e,t,n,r){return m(t)&&(r=r||n,n=t,t=void 0),k.ajax(k.extend({url:e,type:i,dataType:r,data:t,success:n},k.isPlainObject(e)&&e))}}),k._evalUrl=function(e,t){return k.ajax({url:e,type:"GET",dataType:"script",cache:!0,async:!1,global:!1,converters:{"text script":function(){}},dataFilter:function(e){k.globalEval(e,t)}})},k.fn.extend({wrapAll:function(e){var t;return this[0]&&(m(e)&&(e=e.call(this[0])),t=k(e,this[0].ownerDocument).eq(0).clone(!0),this[0].parentNode&&t.insertBefore(this[0]),t.map(function(){var e=this;while(e.firstElementChild)e=e.firstElementChild;return e}).append(this)),this},wrapInner:function(n){return m(n)?this.each(function(e){k(this).wrapInner(n.call(this,e))}):this.each(function(){var e=k(this),t=e.contents();t.length?t.wrapAll(n):e.append(n)})},wrap:function(t){var n=m(t);return this.each(function(e){k(this).wrapAll(n?t.call(this,e):t)})},unwrap:function(e){return this.parent(e).not("body").each(function(){k(this).replaceWith(this.childNodes)}),this}}),k.expr.pseudos.hidden=function(e){return!k.expr.pseudos.visible(e)},k.expr.pseudos.visible=function(e){return!!(e.offsetWidth||e.offsetHeight||e.getClientRects().length)},k.ajaxSettings.xhr=function(){try{return new C.XMLHttpRequest}catch(e){}};var Ut={0:200,1223:204},Xt=k.ajaxSettings.xhr();y.cors=!!Xt&&"withCredentials"in Xt,y.ajax=Xt=!!Xt,k.ajaxTransport(function(i){var o,a;if(y.cors||Xt&&!i.crossDomain)return{send:function(e,t){var n,r=i.xhr();if(r.open(i.type,i.url,i.async,i.username,i.password),i.xhrFields)for(n in i.xhrFields)r[n]=i.xhrFields[n];for(n in i.mimeType&&r.overrideMimeType&&r.overrideMimeType(i.mimeType),i.crossDomain||e["X-Requested-With"]||(e["X-Requested-With"]="XMLHttpRequest"),e)r.setRequestHeader(n,e[n]);o=function(e){return function(){o&&(o=a=r.onload=r.onerror=r.onabort=r.ontimeout=r.onreadystatechange=null,"abort"===e?r.abort():"error"===e?"number"!=typeof r.status?t(0,"error"):t(r.status,r.statusText):t(Ut[r.status]||r.status,r.statusText,"text"!==(r.responseType||"text")||"string"!=typeof r.responseText?{binary:r.response}:{text:r.responseText},r.getAllResponseHeaders()))}},r.onload=o(),a=r.onerror=r.ontimeout=o("error"),void 0!==r.onabort?r.onabort=a:r.onreadystatechange=function(){4===r.readyState&&C.setTimeout(function(){o&&a()})},o=o("abort");try{r.send(i.hasContent&&i.data||null)}catch(e){if(o)throw e}},abort:function(){o&&o()}}}),k.ajaxPrefilter(function(e){e.crossDomain&&(e.contents.script=!1)}),k.ajaxSetup({accepts:{script:"text/javascript, application/javascript, application/ecmascript, application/x-ecmascript"},contents:{script:/\b(?:java|ecma)script\b/},converters:{"text script":function(e){return k.globalEval(e),e}}}),k.ajaxPrefilter("script",function(e){void 0===e.cache&&(e.cache=!1),e.crossDomain&&(e.type="GET")}),k.ajaxTransport("script",function(n){var r,i;if(n.crossDomain||n.scriptAttrs)return{send:function(e,t){r=k("<script>").attr(n.scriptAttrs||{}).prop({charset:n.scriptCharset,src:n.url}).on("load error",i=function(e){r.remove(),i=null,e&&t("error"===e.type?404:200,e.type)}),E.head.appendChild(r[0])},abort:function(){i&&i()}}});var Vt,Gt=[],Yt=/(=)\?(?=&|$)|\?\?/;k.ajaxSetup({jsonp:"callback",jsonpCallback:function(){var e=Gt.pop()||k.expando+"_"+kt++;return this[e]=!0,e}}),k.ajaxPrefilter("json jsonp",function(e,t,n){var r,i,o,a=!1!==e.jsonp&&(Yt.test(e.url)?"url":"string"==typeof e.data&&0===(e.contentType||"").indexOf("application/x-www-form-urlencoded")&&Yt.test(e.data)&&"data");if(a||"jsonp"===e.dataTypes[0])return r=e.jsonpCallback=m(e.jsonpCallback)?e.jsonpCallback():e.jsonpCallback,a?e[a]=e[a].replace(Yt,"$1"+r):!1!==e.jsonp&&(e.url+=(St.test(e.url)?"&":"?")+e.jsonp+"="+r),e.converters["script json"]=function(){return o||k.error(r+" was not called"),o[0]},e.dataTypes[0]="json",i=C[r],C[r]=function(){o=arguments},n.always(function(){void 0===i?k(C).removeProp(r):C[r]=i,e[r]&&(e.jsonpCallback=t.jsonpCallback,Gt.push(r)),o&&m(i)&&i(o[0]),o=i=void 0}),"script"}),y.createHTMLDocument=((Vt=E.implementation.createHTMLDocument("").body).innerHTML="<form></form><form></form>",2===Vt.childNodes.length),k.parseHTML=function(e,t,n){return"string"!=typeof e?[]:("boolean"==typeof t&&(n=t,t=!1),t||(y.createHTMLDocument?((r=(t=E.implementation.createHTMLDocument("")).createElement("base")).href=E.location.href,t.head.appendChild(r)):t=E),o=!n&&[],(i=D.exec(e))?[t.createElement(i[1])]:(i=we([e],t,o),o&&o.length&&k(o).remove(),k.merge([],i.childNodes)));var r,i,o},k.fn.load=function(e,t,n){var r,i,o,a=this,s=e.indexOf(" ");return-1<s&&(r=mt(e.slice(s)),e=e.slice(0,s)),m(t)?(n=t,t=void 0):t&&"object"==typeof t&&(i="POST"),0<a.length&&k.ajax({url:e,type:i||"GET",dataType:"html",data:t}).done(function(e){o=arguments,a.html(r?k("<div>").append(k.parseHTML(e)).find(r):e)}).always(n&&function(e,t){a.each(function(){n.apply(this,o||[e.responseText,t,e])})}),this},k.each(["ajaxStart","ajaxStop","ajaxComplete","ajaxError","ajaxSuccess","ajaxSend"],function(e,t){k.fn[t]=function(e){return this.on(t,e)}}),k.expr.pseudos.animated=function(t){return k.grep(k.timers,function(e){return t===e.elem}).length},k.offset={setOffset:function(e,t,n){var r,i,o,a,s,u,l=k.css(e,"position"),c=k(e),f={};"static"===l&&(e.style.position="relative"),s=c.offset(),o=k.css(e,"top"),u=k.css(e,"left"),("absolute"===l||"fixed"===l)&&-1<(o+u).indexOf("auto")?(a=(r=c.position()).top,i=r.left):(a=parseFloat(o)||0,i=parseFloat(u)||0),m(t)&&(t=t.call(e,n,k.extend({},s))),null!=t.top&&(f.top=t.top-s.top+a),null!=t.left&&(f.left=t.left-s.left+i),"using"in t?t.using.call(e,f):c.css(f)}},k.fn.extend({offset:function(t){if(arguments.length)return void 0===t?this:this.each(function(e){k.offset.setOffset(this,t,e)});var e,n,r=this[0];return r?r.getClientRects().length?(e=r.getBoundingClientRect(),n=r.ownerDocument.defaultView,{top:e.top+n.pageYOffset,left:e.left+n.pageXOffset}):{top:0,left:0}:void 0},position:function(){if(this[0]){var e,t,n,r=this[0],i={top:0,left:0};if("fixed"===k.css(r,"position"))t=r.getBoundingClientRect();else{t=this.offset(),n=r.ownerDocument,e=r.offsetParent||n.documentElement;while(e&&(e===n.body||e===n.documentElement)&&"static"===k.css(e,"position"))e=e.parentNode;e&&e!==r&&1===e.nodeType&&((i=k(e).offset()).top+=k.css(e,"borderTopWidth",!0),i.left+=k.css(e,"borderLeftWidth",!0))}return{top:t.top-i.top-k.css(r,"marginTop",!0),left:t.left-i.left-k.css(r,"marginLeft",!0)}}},offsetParent:function(){return this.map(function(){var e=this.offsetParent;while(e&&"static"===k.css(e,"position"))e=e.offsetParent;return e||ie})}}),k.each({scrollLeft:"pageXOffset",scrollTop:"pageYOffset"},function(t,i){var o="pageYOffset"===i;k.fn[t]=function(e){return _(this,function(e,t,n){var r;if(x(e)?r=e:9===e.nodeType&&(r=e.defaultView),void 0===n)return r?r[i]:e[t];r?r.scrollTo(o?r.pageXOffset:n,o?n:r.pageYOffset):e[t]=n},t,e,arguments.length)}}),k.each(["top","left"],function(e,n){k.cssHooks[n]=ze(y.pixelPosition,function(e,t){if(t)return t=_e(e,n),$e.test(t)?k(e).position()[n]+"px":t})}),k.each({Height:"height",Width:"width"},function(a,s){k.each({padding:"inner"+a,content:s,"":"outer"+a},function(r,o){k.fn[o]=function(e,t){var n=arguments.length&&(r||"boolean"!=typeof e),i=r||(!0===e||!0===t?"margin":"border");return _(this,function(e,t,n){var r;return x(e)?0===o.indexOf("outer")?e["inner"+a]:e.document.documentElement["client"+a]:9===e.nodeType?(r=e.documentElement,Math.max(e.body["scroll"+a],r["scroll"+a],e.body["offset"+a],r["offset"+a],r["client"+a])):void 0===n?k.css(e,t,i):k.style(e,t,n,i)},s,n?e:void 0,n)}})}),k.each("blur focus focusin focusout resize scroll click dblclick mousedown mouseup mousemove mouseover mouseout mouseenter mouseleave change select submit keydown keypress keyup contextmenu".split(" "),function(e,n){k.fn[n]=function(e,t){return 0<arguments.length?this.on(n,null,e,t):this.trigger(n)}}),k.fn.extend({hover:function(e,t){return this.mouseenter(e).mouseleave(t||e)}}),k.fn.extend({bind:function(e,t,n){return this.on(e,null,t,n)},unbind:function(e,t){return this.off(e,null,t)},delegate:function(e,t,n,r){return this.on(t,e,n,r)},undelegate:function(e,t,n){return 1===arguments.length?this.off(e,"**"):this.off(t,e||"**",n)}}),k.proxy=function(e,t){var n,r,i;if("string"==typeof t&&(n=e[t],t=e,e=n),m(e))return r=s.call(arguments,2),(i=function(){return e.apply(t||this,r.concat(s.call(arguments)))}).guid=e.guid=e.guid||k.guid++,i},k.holdReady=function(e){e?k.readyWait++:k.ready(!0)},k.isArray=Array.isArray,k.parseJSON=JSON.parse,k.nodeName=A,k.isFunction=m,k.isWindow=x,k.camelCase=V,k.type=w,k.now=Date.now,k.isNumeric=function(e){var t=k.type(e);return("number"===t||"string"===t)&&!isNaN(e-parseFloat(e))},"function"==typeof define&&define.amd&&define("jquery",[],function(){return k});var Qt=C.jQuery,Jt=C.$;return k.noConflict=function(e){return C.$===k&&(C.$=Jt),e&&C.jQuery===k&&(C.jQuery=Qt),k},e||(C.jQuery=C.$=k),k}); diff --git a/data/extensions/gnuzilla-ext-workarounds@gnu.org/manifest.json b/data/extensions/gnuzilla-ext-workarounds@gnu.org/manifest.json new file mode 100644 index 0000000..000868a --- /dev/null +++ b/data/extensions/gnuzilla-ext-workarounds@gnu.org/manifest.json @@ -0,0 +1,63 @@ +{ + "manifest_version": 2, + "name": "Workarounds for nonfree JS", + "version": "1.0", + "author": "Nathan Nichols", + "description": "A collection of work-around scripts for a few different websites that are impossible to use without non-free JavaScript.", + "icons": { + "16": "icons/L4Libre.png", + "48": "icons/L4Libre48.png", + "128": "icons/L4Libre128.png" + }, + "browser_action": { + "default_icon": "icons/test.png", + "default_title": "Launch USPS tools" + }, + "applications": { + "gecko": { + "id": "gnuzilla-ext-workarounds@gnu.org", + "strict_min_version": "42.0" + } + }, + "background":{ + "scripts": ["background.js"] + }, + "content_scripts": [ + { + "matches": ["*://*.wayport.net/*", + "https://www.sumofus.org/*", + "https://www.sumofus.org/campaigns/*", + "*://*.actions.sumofus.org/a/*", + "*://*.actions.sumofus.org/api/pages/*/actions", + "*://*.actions.sumofus.org/*", + "https://*.pay.gov/*", + "https://dmca.copyright.gov/*", + "*://rsf.org/*", + "*://rsf.secure.force.com/*", + "*://docs.google.com/*", + "*://login-mcd-cluster.prd.snantx.attwifi.com/guest/*", + "https://pgw.ceca.es/cgi-bin/tpv", + "https://pgw.ceca.es/tpvweb/tpv/compra.action", + "*://*.goteo.org/*", + "*://*.sermepa.es/*" + ], + "js": ["jquery-3.4.1.min.js", + "workaround/mcdonalds_wifi.js", + "workaround/sumofus_main.js", + "workaround/paygov_main.js", + "workaround/rsf_main.js", + "workaround/googledocs_main.js", + "workaround/goteo_main.js" + ] + } + ], + "permissions":[ + "*://reg.usps.com/*", + "*://production.shippingapis.com/*", + "webRequestBlocking", + "*://*.sumofus.org/*", + "*://*.actions.sumofus.org/*", + "webRequest", + "*://*.pay.gov/*" + ] +} diff --git a/data/extensions/gnuzilla-ext-workarounds@gnu.org/manifest.json~ b/data/extensions/gnuzilla-ext-workarounds@gnu.org/manifest.json~ new file mode 100644 index 0000000..7b0533c --- /dev/null +++ b/data/extensions/gnuzilla-ext-workarounds@gnu.org/manifest.json~ @@ -0,0 +1,63 @@ +{ + "manifest_version": 2, + "name": "Non-free JS Work-around scripts", + "version": "1.0", + "author": "Nathan Nichols", + "description": "A collection of work-around scripts for a few different websites that are impossible to use without non-free JavaScript.", + "icons": { + "16": "icons/L4Libre.png", + "48": "icons/L4Libre48.png", + "128": "icons/L4Libre128.png" + }, + "browser_action": { + "default_icon": "icons/test.png", + "default_title": "Launch USPS tools" + }, + "applications": { + "gecko": { + "id": "workaround@fsf.org", + "strict_min_version": "42.0" + } + }, + "background":{ + "scripts": ["background.js"] + }, + "content_scripts": [ + { + "matches": ["*://*.wayport.net/*", + "https://www.sumofus.org/*", + "https://www.sumofus.org/campaigns/*", + "*://*.actions.sumofus.org/a/*", + "*://*.actions.sumofus.org/api/pages/*/actions", + "*://*.actions.sumofus.org/*", + "https://*.pay.gov/*", + "https://dmca.copyright.gov/*", + "*://rsf.org/*", + "*://rsf.secure.force.com/*", + "*://docs.google.com/*", + "*://login-mcd-cluster.prd.snantx.attwifi.com/guest/*", + "https://pgw.ceca.es/cgi-bin/tpv", + "https://pgw.ceca.es/tpvweb/tpv/compra.action", + "*://*.goteo.org/*", + "*://*.sermepa.es/*" + ], + "js": ["jquery-3.4.1.min.js", + "workaround/mcdonalds_wifi.js", + "workaround/sumofus_main.js", + "workaround/paygov_main.js", + "workaround/rsf_main.js", + "workaround/googledocs_main.js", + "workaround/goteo_main.js" + ] + } + ], + "permissions":[ + "*://reg.usps.com/*", + "*://production.shippingapis.com/*", + "webRequestBlocking", + "*://*.sumofus.org/*", + "*://*.actions.sumofus.org/*", + "webRequest", + "*://*.pay.gov/*" + ] +} diff --git a/data/extensions/gnuzilla-ext-workarounds@gnu.org/workaround/googledocs_main.js b/data/extensions/gnuzilla-ext-workarounds@gnu.org/workaround/googledocs_main.js new file mode 100644 index 0000000..22ef004 --- /dev/null +++ b/data/extensions/gnuzilla-ext-workarounds@gnu.org/workaround/googledocs_main.js @@ -0,0 +1,121 @@ +/* + + Copyright (C) 2017-2019 Nathan Nichols + + This program is free software: you can redistribute it and/or modify + it under the terms of the GNU General Public License as published by + the Free Software Foundation, either version 3 of the License, or + (at your option) any later version. + + This program is distributed in the hope that it will be useful, + but WITHOUT ANY WARRANTY; without even the implied warranty of + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + GNU General Public License for more details. + + You should have received a copy of the GNU General Public License + along with this program. If not, see <http://www.gnu.org/licenses/>. + +*/ +if(document.location.href.indexOf("docs.google.com") != -1){ + console.log("googledocs_main.js"); + function parseURL(a){ + let url = new URL(a); + var result = Object.create(null); + for(let i of url.searchParams) { + result[i[0]] = i[1]; + } + return JSON.stringify(result, undefined, 4); + } + var id; + var url; + function form_check(){ + console.log("boop"); + var format = ""; + var input = document.getElementsByTagName("input"); + if(input[input.length-1].value != "Expected 3 letter file extension"){ + format = input[input.length-1].value; + } else{ + for(var i = 0; i < input.length-1; i++){ + if(input[i].value != ""){ + format = input[i].value; + break; + } + } + if(format == ""){ + return 0; + } + } + + // Supposed to look like this: + // https://docs.google.com/document/export?format=FORMAT&id=ID + // Thanks to Alyssa Rosenzweig. + var new_url = 'https://docs.google.com/document/export?format='+format+'&id='+id; + document.location.assign(new_url); + return 0; + } + + + var contains_apostrophe = "You don't really want to store your data in a cloudy service do you?"; + var opts_form = + ' <br>'+ + ' <h1>Google Drive without non-free Javascript</h1>'+ + ' '+contains_apostrophe+'<br><br><br>'+ + ' <div id="opts">'+ + ' <b>Please select the format to download in:</b><br><br>'+ + ' <input type="radio" name="format" value="txt"> Plain text ("txt")<br>'+ + ' <input type="radio" name="format" value="odt"> ODT ("odt")<br><br>'+ + ' Or try to get the document in a different format, '+ + ' ("png", "avi", "pdf", etc..):<br><br>'+ + ' <input type="text" value="Expected 3 letter file extension"><br><br>'+ + ' <button id="submit">Go fetch the document<br>'+ + ' </div>'+ + ''+ + ''+ + ''; + + // see if its a document or not. + function check_valid(){ + id = "no ID found."; + var url_arr = document.location.href.split("/"); + for(var i = 0; i < url_arr.length-1; i++){ + if(url_arr[i] == "d"){ + id = url_arr[i+1]; + break; + } + if(url_arr[i].indexOf("id=") != -1){ + id = document.location.href.substring(url_arr[i].indexOf("id=")+3,document.location.href.length); + break; + } + } + console.log(id); + if(id == "no ID found."){ + // do nothing because it could be an info page or something + console.log("no id found."); + return false; + } + else { + return true; + } + } + + + + function main(){ + + if(check_valid()){ + console.log("---------------------------------"+Date.now()+":Detected Google Drive."+"---------------------------------"); + window.stop(); + document.head.innerHTML = ""; + document.body.innerHTML = opts_form; + document.body.style.textAlign = "center"; + document.getElementById("opts").style.textAlign = "left"; + //document.getElementsById("opts").style.float = "left"; + document.body.style.marginTop = "2%" + document.body.style.marginLeft = "25%" + document.body.style.marginRight = "25%" + document.getElementById("submit").addEventListener("click",form_check); + } + return 0; + } + main(); +} diff --git a/data/extensions/gnuzilla-ext-workarounds@gnu.org/workaround/googledocs_main.js~ b/data/extensions/gnuzilla-ext-workarounds@gnu.org/workaround/googledocs_main.js~ new file mode 100644 index 0000000..127aba6 --- /dev/null +++ b/data/extensions/gnuzilla-ext-workarounds@gnu.org/workaround/googledocs_main.js~ @@ -0,0 +1,122 @@ +/* + + Copyright (C) 2017-2019 Nathan Nichols + Copyright (C) 2019 Free Software Foundation + + This program is free software: you can redistribute it and/or modify + it under the terms of the GNU General Public License as published by + the Free Software Foundation, either version 3 of the License, or + (at your option) any later version. + + This program is distributed in the hope that it will be useful, + but WITHOUT ANY WARRANTY; without even the implied warranty of + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + GNU General Public License for more details. + + You should have received a copy of the GNU General Public License + along with this program. If not, see <http://www.gnu.org/licenses/>. + +*/ +if(document.location.href.indexOf("docs.google.com") != -1){ + console.log("googledocs_main.js"); + function parseURL(a){ + let url = new URL(a); + var result = Object.create(null); + for(let i of url.searchParams) { + result[i[0]] = i[1]; + } + return JSON.stringify(result, undefined, 4); + } + var id; + var url; + function form_check(){ + console.log("boop"); + var format = ""; + var input = document.getElementsByTagName("input"); + if(input[input.length-1].value != "Expected 3 letter file extension"){ + format = input[input.length-1].value; + } else{ + for(var i = 0; i < input.length-1; i++){ + if(input[i].value != ""){ + format = input[i].value; + break; + } + } + if(format == ""){ + return 0; + } + } + + // Supposed to look like this: + // https://docs.google.com/document/export?format=FORMAT&id=ID + // Thanks to Alyssa Rosenzweig. + var new_url = 'https://docs.google.com/document/export?format='+format+'&id='+id; + document.location.assign(new_url); + return 0; + } + + + var contains_apostrophe = "You don't really want to store your data in a cloudy service do you?"; + var opts_form = + ' <br>'+ + ' <h1>Google Drive without non-free Javascript</h1>'+ + ' '+contains_apostrophe+'<br><br><br>'+ + ' <div id="opts">'+ + ' <b>Please select the format to download in:</b><br><br>'+ + ' <input type="radio" name="format" value="txt"> Plain text ("txt")<br>'+ + ' <input type="radio" name="format" value="odt"> ODT ("odt")<br><br>'+ + ' Or try to get the document in a different format, '+ + ' ("png", "avi", "pdf", etc..):<br><br>'+ + ' <input type="text" value="Expected 3 letter file extension"><br><br>'+ + ' <button id="submit">Go fetch the document<br>'+ + ' </div>'+ + ''+ + ''+ + ''; + + // see if its a document or not. + function check_valid(){ + id = "no ID found."; + var url_arr = document.location.href.split("/"); + for(var i = 0; i < url_arr.length-1; i++){ + if(url_arr[i] == "d"){ + id = url_arr[i+1]; + break; + } + if(url_arr[i].indexOf("id=") != -1){ + id = document.location.href.substring(url_arr[i].indexOf("id=")+3,document.location.href.length); + break; + } + } + console.log(id); + if(id == "no ID found."){ + // do nothing because it could be an info page or something + console.log("no id found."); + return false; + } + else { + return true; + } + } + + + + function main(){ + + if(check_valid()){ + console.log("---------------------------------"+Date.now()+":Detected Google Drive."+"---------------------------------"); + window.stop(); + document.head.innerHTML = ""; + document.body.innerHTML = opts_form; + document.body.style.textAlign = "center"; + document.getElementById("opts").style.textAlign = "left"; + //document.getElementsById("opts").style.float = "left"; + document.body.style.marginTop = "2%" + document.body.style.marginLeft = "25%" + document.body.style.marginRight = "25%" + document.getElementById("submit").addEventListener("click",form_check); + } + return 0; + } + main(); +} diff --git a/data/extensions/goteo@0xbeef.coffee/goteo.js b/data/extensions/gnuzilla-ext-workarounds@gnu.org/workaround/goteo_main.js index 334fb9d..dd225e2 100644 --- a/data/extensions/goteo@0xbeef.coffee/goteo.js +++ b/data/extensions/gnuzilla-ext-workarounds@gnu.org/workaround/goteo_main.js @@ -1,23 +1,42 @@ /* -Copyright (C) 2017 Nathan Nichols -Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: + Copyright (C) 2017-2019 Nathan Nichols -The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. + This program is free software: you can redistribute it and/or modify + it under the terms of the GNU General Public License as published by + the Free Software Foundation, either version 3 of the License, or + (at your option) any later version. + + This program is distributed in the hope that it will be useful, + but WITHOUT ANY WARRANTY; without even the implied warranty of + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + GNU General Public License for more details. + + You should have received a copy of the GNU General Public License + along with this program. If not, see <http://www.gnu.org/licenses/>. -THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL NATHAN NICHOLS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. */ -function update_currency(){ +if(document.location.href.indexOf("pgw.ceca.es") != -1 + || document.location.href.indexOf("goteo.org") != -1 + || document.location.href.indexOf("sis.sermepa.es") != -1 + ){ + console.log("goteo_main.js"); + function update_currency(){ var curr = document.getElementById("currency_select").selectedOptions[0].innerHTML; var value = document.getElementsByName("Importe")[0].value; value = value.substr(0,value.length-2) + "," + value.substr(value.length-2,value.length)+" "+curr; document.getElementById("imp").innerText = value; var currency = document.getElementsByName("TipoMoneda")[0]; currency.value = document.getElementById("currency_select").value; -} + } + if(document.location.href.indexOf("sermepa.es/sis") != -1){ + console.log("sis.sermepa.es"); + document.forms[0].submit(); + } -if(document.domain.indexOf("goteo.org") == -1){ + + if(document.domain.indexOf("goteo.org") == -1){ var currency_options = '<div class="box mgt"><div class="izq"><label class="bloque">Currency/moneda:</label><select id="currency_select"><option value="978">EUR</option></select></div></div>'; document.getElementById("pago_tarjeta").insertAdjacentHTML("beforeend",currency_options); @@ -29,8 +48,8 @@ if(document.domain.indexOf("goteo.org") == -1){ var opts = ""; for(var i = 0; i < 15; i++){ - var cy = n+i; - opts += "<option value='"+cy+"'>"+cy+"</option>\n"; + var cy = n+i; + opts += "<option value='"+cy+"'>"+cy+"</option>\n"; } document.getElementsByName("elanyo")[0].insertAdjacentHTML("afterbegin",opts); @@ -45,35 +64,35 @@ if(document.domain.indexOf("goteo.org") == -1){ var a = document.getElementsByClassName("izq divizq")[0]; a.addEventListener("click",function(){ - if(document.getElementById("visa").children[0].checked){ - document.getElementById("pago_tarjeta").style.display = "block"; - document.getElementById("pago_tarjetero").style.display = "none"; - document.getElementById("pago_masterpass").style.display = "none"; - } - if(document.getElementById("tarjetero").children[0].checked){ - document.getElementById("pago_tarjeta").style.display = "none"; - document.getElementById("pago_tarjetero").style.display = "block"; - document.getElementById("pago_masterpass").style.display = "none"; - } - if(document.getElementById("masterpass").children[0].checked){ - document.getElementById("pago_tarjeta").style.display = "none"; - document.getElementById("pago_tarjetero").style.display = "none"; - document.getElementById("pago_masterpass").style.display = "block"; - } + if(document.getElementById("visa").children[0].checked){ + document.getElementById("pago_tarjeta").style.display = "block"; + document.getElementById("pago_tarjetero").style.display = "none"; + document.getElementById("pago_masterpass").style.display = "none"; + } + if(document.getElementById("tarjetero").children[0].checked){ + document.getElementById("pago_tarjeta").style.display = "none"; + document.getElementById("pago_tarjetero").style.display = "block"; + document.getElementById("pago_masterpass").style.display = "none"; + } + if(document.getElementById("masterpass").children[0].checked){ + document.getElementById("pago_tarjeta").style.display = "none"; + document.getElementById("pago_tarjetero").style.display = "none"; + document.getElementById("pago_masterpass").style.display = "block"; + } }); a.click(); document.getElementById("pagar").addEventListener("click",function(){ - // Read the inputs and set the form values: - // expire date - var expire = document.getElementsByName("Caducidad")[0]; - expire.value = document.getElementsByName("elanyo")[0].value+document.getElementsByName("elmes")[0].value; - // currency code - var currency = document.getElementsByName("TipoMoneda")[0]; - currency.value = document.getElementById("currency_select").value; - - document.getElementsByTagName("form")[0].submit(); + // Read the inputs and set the form values: + // expire date + var expire = document.getElementsByName("Caducidad")[0]; + expire.value = document.getElementsByName("elanyo")[0].value+document.getElementsByName("elmes")[0].value; + // currency code + var currency = document.getElementsByName("TipoMoneda")[0]; + currency.value = document.getElementById("currency_select").value; + + document.getElementsByTagName("form")[0].submit(); }); var num_op = document.getElementsByName("Num_operacion")[0].value; @@ -87,32 +106,16 @@ if(document.domain.indexOf("goteo.org") == -1){ var value = document.getElementsByName("Importe")[0].value; value = value.substr(0,value.length-2) + "," + value.substr(value.length-2,value.length) + " EUR"; document.getElementById("imp").innerText = value; -} else{ + } else{ console.log("goteo"); // this needs to happen twice for some reason var dropdown = document.getElementsByClassName("dropdown-menu language-dropbox"); var a = []; for(var i = 0; i < dropdown.length; i++){ - a.push(dropdown[i]) + a.push(dropdown[i]) } for(var i = 0; i < a.length; i++){ - a[i].className = ""; + a[i].className = ""; } + } } - - - - - - - - - - - - - - - - - diff --git a/data/extensions/gnuzilla-ext-workarounds@gnu.org/workaround/goteo_main.js~ b/data/extensions/gnuzilla-ext-workarounds@gnu.org/workaround/goteo_main.js~ new file mode 100644 index 0000000..56820fe --- /dev/null +++ b/data/extensions/gnuzilla-ext-workarounds@gnu.org/workaround/goteo_main.js~ @@ -0,0 +1,122 @@ +/* + + Copyright (C) 2017-2019 Nathan Nichols + Copyright (C) 2019 Free Software Foundation + + This program is free software: you can redistribute it and/or modify + it under the terms of the GNU General Public License as published by + the Free Software Foundation, either version 3 of the License, or + (at your option) any later version. + + This program is distributed in the hope that it will be useful, + but WITHOUT ANY WARRANTY; without even the implied warranty of + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + GNU General Public License for more details. + + You should have received a copy of the GNU General Public License + along with this program. If not, see <http://www.gnu.org/licenses/>. + +*/ +if(document.location.href.indexOf("pgw.ceca.es") != -1 + || document.location.href.indexOf("goteo.org") != -1 + || document.location.href.indexOf("sis.sermepa.es") != -1 + ){ + console.log("goteo_main.js"); + function update_currency(){ + var curr = document.getElementById("currency_select").selectedOptions[0].innerHTML; + var value = document.getElementsByName("Importe")[0].value; + value = value.substr(0,value.length-2) + "," + value.substr(value.length-2,value.length)+" "+curr; + document.getElementById("imp").innerText = value; + var currency = document.getElementsByName("TipoMoneda")[0]; + currency.value = document.getElementById("currency_select").value; + } + + if(document.location.href.indexOf("sermepa.es/sis") != -1){ + console.log("sis.sermepa.es"); + document.forms[0].submit(); + } + + + if(document.domain.indexOf("goteo.org") == -1){ + + var currency_options = '<div class="box mgt"><div class="izq"><label class="bloque">Currency/moneda:</label><select id="currency_select"><option value="978">EUR</option></select></div></div>'; + document.getElementById("pago_tarjeta").insertAdjacentHTML("beforeend",currency_options); + document.getElementById("currency_select").addEventListener("change", update_currency); + + // Generate correct year options + var d = new Date(); + var n = d.getFullYear(); + var opts = ""; + + for(var i = 0; i < 15; i++){ + var cy = n+i; + opts += "<option value='"+cy+"'>"+cy+"</option>\n"; + } + + document.getElementsByName("elanyo")[0].insertAdjacentHTML("afterbegin",opts); + document.body.insertAdjacentHTML("afterbegin","<h1>3rd party Javascript activated because you downloaded an add-on to use this page with free Javascript. If you are not running LibreJS, disable this add-on or reload with it enabled.</h1>"); + document.getElementsByTagName("h1")[0].style.display = "inline"; + document.getElementsByTagName("h1")[0].style.color = "red"; + + document.getElementById("visa").children[0]; + document.getElementById("tarjetero").children[0]; + document.getElementById("masterpass").children[0]; + + + var a = document.getElementsByClassName("izq divizq")[0]; + a.addEventListener("click",function(){ + if(document.getElementById("visa").children[0].checked){ + document.getElementById("pago_tarjeta").style.display = "block"; + document.getElementById("pago_tarjetero").style.display = "none"; + document.getElementById("pago_masterpass").style.display = "none"; + } + if(document.getElementById("tarjetero").children[0].checked){ + document.getElementById("pago_tarjeta").style.display = "none"; + document.getElementById("pago_tarjetero").style.display = "block"; + document.getElementById("pago_masterpass").style.display = "none"; + } + if(document.getElementById("masterpass").children[0].checked){ + document.getElementById("pago_tarjeta").style.display = "none"; + document.getElementById("pago_tarjetero").style.display = "none"; + document.getElementById("pago_masterpass").style.display = "block"; + } + }); + + a.click(); + + document.getElementById("pagar").addEventListener("click",function(){ + // Read the inputs and set the form values: + // expire date + var expire = document.getElementsByName("Caducidad")[0]; + expire.value = document.getElementsByName("elanyo")[0].value+document.getElementsByName("elmes")[0].value; + // currency code + var currency = document.getElementsByName("TipoMoneda")[0]; + currency.value = document.getElementById("currency_select").value; + + document.getElementsByTagName("form")[0].submit(); + }); + + var num_op = document.getElementsByName("Num_operacion")[0].value; + document.getElementById("numoperacion").innerText = num_op; + document.getElementById("CSC").style.display = "none"; + document.getElementById("mc_S_ico").style.display = "none"; + document.getElementById("visa_S_ico").style.display = "none"; + document.getElementById("mc_S_ico").style.display = "none"; + document.getElementById("amex_ico").style.display = "none"; + + var value = document.getElementsByName("Importe")[0].value; + value = value.substr(0,value.length-2) + "," + value.substr(value.length-2,value.length) + " EUR"; + document.getElementById("imp").innerText = value; + } else{ + console.log("goteo"); + // this needs to happen twice for some reason + var dropdown = document.getElementsByClassName("dropdown-menu language-dropbox"); + var a = []; + for(var i = 0; i < dropdown.length; i++){ + a.push(dropdown[i]) + } + for(var i = 0; i < a.length; i++){ + a[i].className = ""; + } + } +} diff --git a/data/extensions/gnuzilla-ext-workarounds@gnu.org/workaround/mcdonalds_wifi.js b/data/extensions/gnuzilla-ext-workarounds@gnu.org/workaround/mcdonalds_wifi.js new file mode 100644 index 0000000..33f26d6 --- /dev/null +++ b/data/extensions/gnuzilla-ext-workarounds@gnu.org/workaround/mcdonalds_wifi.js @@ -0,0 +1,75 @@ +/* + + Copyright (C) 2017-2019 Nathan Nichols + + This program is free software: you can redistribute it and/or modify + it under the terms of the GNU General Public License as published by + the Free Software Foundation, either version 3 of the License, or + (at your option) any later version. + + This program is distributed in the hope that it will be useful, + but WITHOUT ANY WARRANTY; without even the implied warranty of + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + GNU General Public License for more details. + + You should have received a copy of the GNU General Public License + along with this program. If not, see <http://www.gnu.org/licenses/>. + +*/ +if(document.location.href.indexOf("login-mcd-cluster.prd.snantx.attwifi.com") != -1){ + console.log("mcdonalds_wifi.js"); + console.log("Detected new style captive portal."); + document.forms[0].submit(); +} + + +// It seems McDonald's captive portal has changed and it no longer +// uses this captive portal. This will be left here in case there +// are some places where the old style captive portal is still in +// use. +if(document.location.href.indexOf("wayport.net") != -1){ + console.log("mcdonalds_wifi.js"); + console.log("Detected old style captive portal."); + + console.log("Detected the McDonald's captive portal.") + var form = document.getElementsByTagName("form"); + var entries = form[0].getElementsByTagName("input"); + var data = new FormData(); + captive_portal_url = "wayport.net" + if ("undefined" === typeof(document.getElementsByTagName("form")[0].action)) { + console.log("no form found.") + } else{ + document.body.style.border = "5px solid red"; + post_url = document.getElementsByTagName("form")[0].action; + var dest = ""; + for(var i = 0; i < entries.length; i++){ + console.log(entries[i].name + ":" + entries[i].value); + + if(entries[i].name == "origDest"){ + dest = entries[i].name; + entries[i].value = "http://www.wikipedia.org"; + } + // Seems like this should be set to 1, not sure if required though + if(entries[i].name == "connect"){ + entries[i].value = "1"; + } + + data.append(entries[i].name,entries[i].value); + + } + var http = new XMLHttpRequest(); + //auth_url = document.URL.substring(0,document.URL.indexOf(captive_portal_url)+captive_portal_url.length); + //auth_url += post_url; + console.log(data); + console.log(post_url); + var xhr = new XMLHttpRequest(); + xhr.open('POST', post_url, true); + xhr.onload = function () { + // do something to response + //console.log(this.responseText); + document.body = this.responseText; + }; + xhr.send(data); + alert("Authenticated to McDonald's Wi-fi.") + } +} diff --git a/data/extensions/gnuzilla-ext-workarounds@gnu.org/workaround/mcdonalds_wifi.js~ b/data/extensions/gnuzilla-ext-workarounds@gnu.org/workaround/mcdonalds_wifi.js~ new file mode 100644 index 0000000..3394b61 --- /dev/null +++ b/data/extensions/gnuzilla-ext-workarounds@gnu.org/workaround/mcdonalds_wifi.js~ @@ -0,0 +1,76 @@ +/* + + Copyright (C) 2017-2019 Nathan Nichols + Copyright (C) 2019 Free Software Foundation + + This program is free software: you can redistribute it and/or modify + it under the terms of the GNU General Public License as published by + the Free Software Foundation, either version 3 of the License, or + (at your option) any later version. + + This program is distributed in the hope that it will be useful, + but WITHOUT ANY WARRANTY; without even the implied warranty of + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + GNU General Public License for more details. + + You should have received a copy of the GNU General Public License + along with this program. If not, see <http://www.gnu.org/licenses/>. + +*/ +if(document.location.href.indexOf("login-mcd-cluster.prd.snantx.attwifi.com") != -1){ + console.log("mcdonalds_wifi.js"); + console.log("Detected new style captive portal."); + document.forms[0].submit(); +} + + +// It seems McDonald's captive portal has changed and it no longer +// uses this captive portal. This will be left here in case there +// are some places where the old style captive portal is still in +// use. +if(document.location.href.indexOf("wayport.net") != -1){ + console.log("mcdonalds_wifi.js"); + console.log("Detected old style captive portal."); + + console.log("Detected the McDonald's captive portal.") + var form = document.getElementsByTagName("form"); + var entries = form[0].getElementsByTagName("input"); + var data = new FormData(); + captive_portal_url = "wayport.net" + if ("undefined" === typeof(document.getElementsByTagName("form")[0].action)) { + console.log("no form found.") + } else{ + document.body.style.border = "5px solid red"; + post_url = document.getElementsByTagName("form")[0].action; + var dest = ""; + for(var i = 0; i < entries.length; i++){ + console.log(entries[i].name + ":" + entries[i].value); + + if(entries[i].name == "origDest"){ + dest = entries[i].name; + entries[i].value = "http://www.wikipedia.org"; + } + // Seems like this should be set to 1, not sure if required though + if(entries[i].name == "connect"){ + entries[i].value = "1"; + } + + data.append(entries[i].name,entries[i].value); + + } + var http = new XMLHttpRequest(); + //auth_url = document.URL.substring(0,document.URL.indexOf(captive_portal_url)+captive_portal_url.length); + //auth_url += post_url; + console.log(data); + console.log(post_url); + var xhr = new XMLHttpRequest(); + xhr.open('POST', post_url, true); + xhr.onload = function () { + // do something to response + //console.log(this.responseText); + document.body = this.responseText; + }; + xhr.send(data); + alert("Authenticated to McDonald's Wi-fi.") + } +} diff --git a/data/extensions/gnuzilla-ext-workarounds@gnu.org/workaround/paygov_main.js b/data/extensions/gnuzilla-ext-workarounds@gnu.org/workaround/paygov_main.js new file mode 100644 index 0000000..f94981f --- /dev/null +++ b/data/extensions/gnuzilla-ext-workarounds@gnu.org/workaround/paygov_main.js @@ -0,0 +1,149 @@ +/* + + Copyright (C) 2017-2019 Nathan Nichols + + This program is free software: you can redistribute it and/or modify + it under the terms of the GNU General Public License as published by + the Free Software Foundation, either version 3 of the License, or + (at your option) any later version. + + This program is distributed in the hope that it will be useful, + but WITHOUT ANY WARRANTY; without even the implied warranty of + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + GNU General Public License for more details. + + You should have received a copy of the GNU General Public License + along with this program. If not, see <http://www.gnu.org/licenses/>. + +*/ + +if(document.location.href.indexOf("copyright.gov")!= -1){ + console.log("paygov_main.js"); + + var content; + function replace_regex(){ + content = document.documentElement.innerHTML; + content = content.replace(/type\s*\=\s*("|')\s*hidden\s*\1\s*;/g,""); + content = content.replace(/display\s*:\s*none/g,""); + content = content.replace(/visibility\s*:\s*hidden/g,""); + document.documentElement.innerHTML = "<html>"+content+"</html>"; + } + + if(window.getComputedStyle(document.body)["display"] == "none"){ + replace_regex(); + } + function parseURL(a){ + let url = new URL(a); + var result = Object.create(null); + for(let i of url.searchParams) { + result[i[0]] = i[1]; + } + return JSON.stringify(result, undefined, 4); + } + function get_domain(url){ + var domain = url.replace('http://','').replace('https://','').split(/[/?#]/)[0]; + if(url.indexOf("http://") == 0){ + domain = "http://" + domain; + } + else if(url.indexOf("https://") == 0){ + domain = "https://" + domain; + } + domain = domain + "/"; + domain = domain.replace(/ /g,""); + return domain; + } + + if(document.location.href.indexOf("pay.gov/tcsonline/") != -1){ + document.getElementsByClassName("text")[0].remove(); + console.log("detected payment page."); + + if( document.getElementsByClassName("redbuttontext") !== null){ + document.getElementsByClassName("redbuttontext")[0].remove(); + } + + + document.getElementById("hiddenContinueButton").style.display = ""; + document.getElementById("statesCAN").remove(); + document.getElementById("statesUSA").remove(); + document.getElementById("stateText").value = "2 letter code"; + } + + if(get_domain(document.location.href) == "https://dmca.copyright.gov/"){ + + document.body.style.display = true; + var csrf = document.getElementsByName("_csrf")[0].content; + console.log("csrf:"+csrf); + var form = document.getElementById("file"); + if(form !== null){ + console.log("upload page detected"); + document.getElementById("btnUpload").disabled = false; + var xml = new XMLHttpRequest(); + //xml.open("POST","https://dmca.copyright.gov/osp/home/alternatename/edit/alternatename.html",true); + var url = "https://dmca.copyright.gov/home/alternatename/edit/alternatenameajaxdisplay.html" + console.log("OPENING "+url); + xml.open("POST",url,true); + console.log("DONE"); + var spid = JSON.parse(parseURL(document.location.href))["spid"]; + console.log("spid:"+spid); + var payload = { + "draw":1, + "columns":[ + { + "data":"name", + "name":"", + "searchable":true, + "orderable":true, + "search":{ + "value":"", + "regex":false + } + }, + { + "data":null, + "name":"", + "searchable":true, + "orderable":false, + "search":{ + "value":"", + "regex":false + } + } + ], + "order":[ + { + "column":0, + "dir":"asc" + } + ], + "start":0, + "length":10, + "search":{ + "value":"", + "regex":false + }, + "spid": spid + }; + + xml.onload = function(){ + console.log(this); + var parser = new DOMParser(); + var doc = parser.parseFromString(this.responseText, "text/html"); + var error = doc.getElementsByClassName("page-head")[0]; + if(error != undefined){ + console.log(error.innerText.replace(/\t/g,"")); + } else{ + console.log(this.responseText); + } + } + console.log("retrieving data..."); + xml.setRequestHeader('Accept', 'application/json'); + xml.setRequestHeader('Content-Type', 'application/json'); + xml.setRequestHeader("csrfHeader", csrf); + + xml.send(payload); + + } + } + + +} diff --git a/data/extensions/gnuzilla-ext-workarounds@gnu.org/workaround/paygov_main.js~ b/data/extensions/gnuzilla-ext-workarounds@gnu.org/workaround/paygov_main.js~ new file mode 100644 index 0000000..e3ddb5c --- /dev/null +++ b/data/extensions/gnuzilla-ext-workarounds@gnu.org/workaround/paygov_main.js~ @@ -0,0 +1,150 @@ +/* + + Copyright (C) 2017-2019 Nathan Nichols + Copyright (C) 2019 Free Software Foundation + + This program is free software: you can redistribute it and/or modify + it under the terms of the GNU General Public License as published by + the Free Software Foundation, either version 3 of the License, or + (at your option) any later version. + + This program is distributed in the hope that it will be useful, + but WITHOUT ANY WARRANTY; without even the implied warranty of + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + GNU General Public License for more details. + + You should have received a copy of the GNU General Public License + along with this program. If not, see <http://www.gnu.org/licenses/>. + +*/ + +if(document.location.href.indexOf("copyright.gov")!= -1){ + console.log("paygov_main.js"); + + var content; + function replace_regex(){ + content = document.documentElement.innerHTML; + content = content.replace(/type\s*\=\s*("|')\s*hidden\s*\1\s*;/g,""); + content = content.replace(/display\s*:\s*none/g,""); + content = content.replace(/visibility\s*:\s*hidden/g,""); + document.documentElement.innerHTML = "<html>"+content+"</html>"; + } + + if(window.getComputedStyle(document.body)["display"] == "none"){ + replace_regex(); + } + function parseURL(a){ + let url = new URL(a); + var result = Object.create(null); + for(let i of url.searchParams) { + result[i[0]] = i[1]; + } + return JSON.stringify(result, undefined, 4); + } + function get_domain(url){ + var domain = url.replace('http://','').replace('https://','').split(/[/?#]/)[0]; + if(url.indexOf("http://") == 0){ + domain = "http://" + domain; + } + else if(url.indexOf("https://") == 0){ + domain = "https://" + domain; + } + domain = domain + "/"; + domain = domain.replace(/ /g,""); + return domain; + } + + if(document.location.href.indexOf("pay.gov/tcsonline/") != -1){ + document.getElementsByClassName("text")[0].remove(); + console.log("detected payment page."); + + if( document.getElementsByClassName("redbuttontext") !== null){ + document.getElementsByClassName("redbuttontext")[0].remove(); + } + + + document.getElementById("hiddenContinueButton").style.display = ""; + document.getElementById("statesCAN").remove(); + document.getElementById("statesUSA").remove(); + document.getElementById("stateText").value = "2 letter code"; + } + + if(get_domain(document.location.href) == "https://dmca.copyright.gov/"){ + + document.body.style.display = true; + var csrf = document.getElementsByName("_csrf")[0].content; + console.log("csrf:"+csrf); + var form = document.getElementById("file"); + if(form !== null){ + console.log("upload page detected"); + document.getElementById("btnUpload").disabled = false; + var xml = new XMLHttpRequest(); + //xml.open("POST","https://dmca.copyright.gov/osp/home/alternatename/edit/alternatename.html",true); + var url = "https://dmca.copyright.gov/home/alternatename/edit/alternatenameajaxdisplay.html" + console.log("OPENING "+url); + xml.open("POST",url,true); + console.log("DONE"); + var spid = JSON.parse(parseURL(document.location.href))["spid"]; + console.log("spid:"+spid); + var payload = { + "draw":1, + "columns":[ + { + "data":"name", + "name":"", + "searchable":true, + "orderable":true, + "search":{ + "value":"", + "regex":false + } + }, + { + "data":null, + "name":"", + "searchable":true, + "orderable":false, + "search":{ + "value":"", + "regex":false + } + } + ], + "order":[ + { + "column":0, + "dir":"asc" + } + ], + "start":0, + "length":10, + "search":{ + "value":"", + "regex":false + }, + "spid": spid + }; + + xml.onload = function(){ + console.log(this); + var parser = new DOMParser(); + var doc = parser.parseFromString(this.responseText, "text/html"); + var error = doc.getElementsByClassName("page-head")[0]; + if(error != undefined){ + console.log(error.innerText.replace(/\t/g,"")); + } else{ + console.log(this.responseText); + } + } + console.log("retrieving data..."); + xml.setRequestHeader('Accept', 'application/json'); + xml.setRequestHeader('Content-Type', 'application/json'); + xml.setRequestHeader("csrfHeader", csrf); + + xml.send(payload); + + } + } + + +} diff --git a/data/extensions/gnuzilla-ext-workarounds@gnu.org/workaround/rsf_main.js b/data/extensions/gnuzilla-ext-workarounds@gnu.org/workaround/rsf_main.js new file mode 100644 index 0000000..2ca2917 --- /dev/null +++ b/data/extensions/gnuzilla-ext-workarounds@gnu.org/workaround/rsf_main.js @@ -0,0 +1,43 @@ +/* + + Copyright (C) 2017-2019 Nathan Nichols + + This program is free software: you can redistribute it and/or modify + it under the terms of the GNU General Public License as published by + the Free Software Foundation, either version 3 of the License, or + (at your option) any later version. + + This program is distributed in the hope that it will be useful, + but WITHOUT ANY WARRANTY; without even the implied warranty of + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + GNU General Public License for more details. + + You should have received a copy of the GNU General Public License + along with this program. If not, see <http://www.gnu.org/licenses/>. + +*/ + +if(document.location.href.indexOf("rsf.org") != -1){ + console.log("rsf_main.js"); + function broken_page(){ + if(document.getElementsByClassName("col-md-4 petition-wrap")[0] === undefined){ + return 0; + } + var iframe_src = document.getElementsByTagName("iframe")[0].src.replace(/[\s\S]+%20/g,""); + document.getElementsByClassName("col-md-4 petition-wrap")[0].insertAdjacentHTML("afterbegin",'<h2 style="background-color: #00ffff;"><a href="'+iframe_src+'">Click here to sign the petition</a><h2>'); + document.getElementsByTagName("iframe")[0].remove(); + } + + function petition_page(){ + document.getElementsByTagName("form")[0].insertAdjacentHTML("beforeend",document.getElementById("ajax-view-state-page-container").innerHTML); + console.log("inserted info"); + } + + if(document.location.href.match("rsf.secure.force.com/petition") !== null){ + console.log("petition");// the page in the iframe + petition_page(); + } else{ + console.log("other page"); + broken_page();// the one with the iframe that is a 404 + } +} diff --git a/data/extensions/gnuzilla-ext-workarounds@gnu.org/workaround/rsf_main.js~ b/data/extensions/gnuzilla-ext-workarounds@gnu.org/workaround/rsf_main.js~ new file mode 100644 index 0000000..7a9c202 --- /dev/null +++ b/data/extensions/gnuzilla-ext-workarounds@gnu.org/workaround/rsf_main.js~ @@ -0,0 +1,44 @@ +/* + + Copyright (C) 2017-2019 Nathan Nichols + Copyright (C) 2019 Free Software Foundation + + This program is free software: you can redistribute it and/or modify + it under the terms of the GNU General Public License as published by + the Free Software Foundation, either version 3 of the License, or + (at your option) any later version. + + This program is distributed in the hope that it will be useful, + but WITHOUT ANY WARRANTY; without even the implied warranty of + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + GNU General Public License for more details. + + You should have received a copy of the GNU General Public License + along with this program. If not, see <http://www.gnu.org/licenses/>. + +*/ + +if(document.location.href.indexOf("rsf.org") != -1){ + console.log("rsf_main.js"); + function broken_page(){ + if(document.getElementsByClassName("col-md-4 petition-wrap")[0] === undefined){ + return 0; + } + var iframe_src = document.getElementsByTagName("iframe")[0].src.replace(/[\s\S]+%20/g,""); + document.getElementsByClassName("col-md-4 petition-wrap")[0].insertAdjacentHTML("afterbegin",'<h2 style="background-color: #00ffff;"><a href="'+iframe_src+'">Click here to sign the petition</a><h2>'); + document.getElementsByTagName("iframe")[0].remove(); + } + + function petition_page(){ + document.getElementsByTagName("form")[0].insertAdjacentHTML("beforeend",document.getElementById("ajax-view-state-page-container").innerHTML); + console.log("inserted info"); + } + + if(document.location.href.match("rsf.secure.force.com/petition") !== null){ + console.log("petition");// the page in the iframe + petition_page(); + } else{ + console.log("other page"); + broken_page();// the one with the iframe that is a 404 + } +} diff --git a/data/extensions/gnuzilla-ext-workarounds@gnu.org/workaround/sumofus_main.js b/data/extensions/gnuzilla-ext-workarounds@gnu.org/workaround/sumofus_main.js new file mode 100644 index 0000000..953c5d8 --- /dev/null +++ b/data/extensions/gnuzilla-ext-workarounds@gnu.org/workaround/sumofus_main.js @@ -0,0 +1,158 @@ +/* + + Copyright (C) 2017-2019 Nathan Nichols + + This program is free software: you can redistribute it and/or modify + it under the terms of the GNU General Public License as published by + the Free Software Foundation, either version 3 of the License, or + (at your option) any later version. + + This program is distributed in the hope that it will be useful, + but WITHOUT ANY WARRANTY; without even the implied warranty of + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + GNU General Public License for more details. + + You should have received a copy of the GNU General Public License + along with this program. If not, see <http://www.gnu.org/licenses/>. + +*/ + +if(document.location.href.indexOf("sumofus") != -1){ + console.log("sumofus_main.js"); + + function wildcard_match(str, rule) { + return new RegExp("^" + rule.split("*").join(".*") + "$").test(str); + } + + var page = window.location.href; + /* + if( wildcard_match(document.getElementsByTagName("pre")[0].innerHTML,'{"follow_up_url":"*"}') ){ + console.log(JSON.parse(document.getElementsByTagName("pre")[0].innerHTML)["follow_up_url"]); + } + */ + + var style = "div { top: 5%; margin-left: 10%; margin-right: 10%; background-color: white;}" + var sheet = document.createElement('style'); + sheet.innerHTML = style; + document.body.appendChild(sheet); + if( wildcard_match(page,"*://*actions.sumofus.org/api/pages/*/actions") ){ + console.log("Submitted petition") + //console.log("Redirecting..."); + var link = document.body.innerText; + link = JSON.parse(link); + //console.log(link); + document.body.innerHTML = "<h1>You have submitted this petition.</h1>"; + } + + + function send_data(data){ + url = document.forms[0].action + + var xhr = new XMLHttpRequest(); + var url_encoded = ""; + var url_encoded_pairs = []; + var name; + + for(name in data){ + temp = encodeURIComponent(name) + '=' + encodeURIComponent(data[name]) + url_encoded_pairs.push(temp); + } + url_encoded = url_encoded_pairs.join('&').replace(/%20/g, '+'); + + xhr.addEventListener('load', function(event){ + console.log("loaded"); + res = JSON.parse(event.target.response); + url = res["follow_up_url"] + document.location = url; + + }); + xhr.addEventListener('error', function(event){ + console.log("Error submitting form."); + }); + + xhr.open('POST', url); + xhr.setRequestHeader('Content-Type', 'application/x-www-form-urlencoded'); + xhr.send(url_encoded); + + } + + if( wildcard_match(page,"*://*actions.sumofus.org/a/*") ){ + console.log("Fixing campaign page"); + + // Make some changes to the page so it's readable. + + // because I noticed there were two of these for some reason + document.getElementsByTagName("button")[1].remove(); + document.getElementsByTagName("span")[0].innerHTML = ""; + var divs = document.getElementsByTagName("div"); + document.getElementsByClassName("noscript-notice")[0].remove(); + + // If they change the HTML of the page this might break... + //document.getElementsByClassName("petition-bar__content")[0].children[1].children[1].innerHTML = ""; + for ( i=0; i<document.styleSheets.length; i++) { + void(document.styleSheets.item(i).disabled=true); + } + // apply some basic CSS + var style = "div {margin: 50px; text-align: left; color: black; font-size: 12pt;}"; + var sheet = document.createElement('style'); + sheet.innerHTML = style; + document.body.appendChild(sheet); + + // Make the button not submit a post request + + document.getElementsByClassName("button action-form__submit-button")[0].type = "button" + + // Add a listener to submit the form + document.getElementsByClassName("button action-form__submit-button")[0].addEventListener("click", function(){ + entries = document.getElementsByClassName("form__content sweet-placeholder__field"); + data = [] + for(i = 0; i < entries.length; i++){ + data.push(entries[i].value); + } + + form_id = document.getElementsByName("form_id")[0].value + res = { + country: data[2], + email: data[0], + form_id: form_id, + name: data[1], + phone: data[4], + postal: data[3] + } + + send_data(res); + + + }); + + + } else{ + console.log("Getting current campaigns"); + var xhr = new XMLHttpRequest(); + xhr.onreadystatechange = function() { + if(this["readyState"] == 4 && this["status"] == 200){ + var campaigns = JSON.parse(this.responseText); + //console.log(campaigns); + var s = ""; + var number = ""; + //html_template += '<button onclick="">Show Pictures</button><br>'; + for(var i = 0; i < campaigns.length; i += 1){ + number = (i+1)+"/"+campaigns.length+":"; + s = campaigns[i]["title"]+"<br>"; + html_template += number.link(campaigns[i]["url"])+s; + html_template += "<img src="+'"'+campaigns[i]["image"]+'"'+"><br>"; + } + document.body.innerHTML = html_template; + } + }; + + var html_template = "<h1>[Simple SumOfUs.org]</h1>"; + // URL to get campaigns + var url = "http://actions.sumofus.org/api/pages/featured.json?language=en"; + + document.head.replaceWith(""); + document.body.innerHTML = ""; + xhr.open("GET", url); + xhr.send(); + } +} diff --git a/data/extensions/gnuzilla-ext-workarounds@gnu.org/workaround/sumofus_main.js~ b/data/extensions/gnuzilla-ext-workarounds@gnu.org/workaround/sumofus_main.js~ new file mode 100644 index 0000000..4f12093 --- /dev/null +++ b/data/extensions/gnuzilla-ext-workarounds@gnu.org/workaround/sumofus_main.js~ @@ -0,0 +1,159 @@ +/* + + Copyright (C) 2017-2019 Nathan Nichols + Copyright (C) 2019 Free Software Foundation + + This program is free software: you can redistribute it and/or modify + it under the terms of the GNU General Public License as published by + the Free Software Foundation, either version 3 of the License, or + (at your option) any later version. + + This program is distributed in the hope that it will be useful, + but WITHOUT ANY WARRANTY; without even the implied warranty of + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + GNU General Public License for more details. + + You should have received a copy of the GNU General Public License + along with this program. If not, see <http://www.gnu.org/licenses/>. + +*/ + +if(document.location.href.indexOf("sumofus") != -1){ + console.log("sumofus_main.js"); + + function wildcard_match(str, rule) { + return new RegExp("^" + rule.split("*").join(".*") + "$").test(str); + } + + var page = window.location.href; + /* + if( wildcard_match(document.getElementsByTagName("pre")[0].innerHTML,'{"follow_up_url":"*"}') ){ + console.log(JSON.parse(document.getElementsByTagName("pre")[0].innerHTML)["follow_up_url"]); + } + */ + + var style = "div { top: 5%; margin-left: 10%; margin-right: 10%; background-color: white;}" + var sheet = document.createElement('style'); + sheet.innerHTML = style; + document.body.appendChild(sheet); + if( wildcard_match(page,"*://*actions.sumofus.org/api/pages/*/actions") ){ + console.log("Submitted petition") + //console.log("Redirecting..."); + var link = document.body.innerText; + link = JSON.parse(link); + //console.log(link); + document.body.innerHTML = "<h1>You have submitted this petition.</h1>"; + } + + + function send_data(data){ + url = document.forms[0].action + + var xhr = new XMLHttpRequest(); + var url_encoded = ""; + var url_encoded_pairs = []; + var name; + + for(name in data){ + temp = encodeURIComponent(name) + '=' + encodeURIComponent(data[name]) + url_encoded_pairs.push(temp); + } + url_encoded = url_encoded_pairs.join('&').replace(/%20/g, '+'); + + xhr.addEventListener('load', function(event){ + console.log("loaded"); + res = JSON.parse(event.target.response); + url = res["follow_up_url"] + document.location = url; + + }); + xhr.addEventListener('error', function(event){ + console.log("Error submitting form."); + }); + + xhr.open('POST', url); + xhr.setRequestHeader('Content-Type', 'application/x-www-form-urlencoded'); + xhr.send(url_encoded); + + } + + if( wildcard_match(page,"*://*actions.sumofus.org/a/*") ){ + console.log("Fixing campaign page"); + + // Make some changes to the page so it's readable. + + // because I noticed there were two of these for some reason + document.getElementsByTagName("button")[1].remove(); + document.getElementsByTagName("span")[0].innerHTML = ""; + var divs = document.getElementsByTagName("div"); + document.getElementsByClassName("noscript-notice")[0].remove(); + + // If they change the HTML of the page this might break... + //document.getElementsByClassName("petition-bar__content")[0].children[1].children[1].innerHTML = ""; + for ( i=0; i<document.styleSheets.length; i++) { + void(document.styleSheets.item(i).disabled=true); + } + // apply some basic CSS + var style = "div {margin: 50px; text-align: left; color: black; font-size: 12pt;}"; + var sheet = document.createElement('style'); + sheet.innerHTML = style; + document.body.appendChild(sheet); + + // Make the button not submit a post request + + document.getElementsByClassName("button action-form__submit-button")[0].type = "button" + + // Add a listener to submit the form + document.getElementsByClassName("button action-form__submit-button")[0].addEventListener("click", function(){ + entries = document.getElementsByClassName("form__content sweet-placeholder__field"); + data = [] + for(i = 0; i < entries.length; i++){ + data.push(entries[i].value); + } + + form_id = document.getElementsByName("form_id")[0].value + res = { + country: data[2], + email: data[0], + form_id: form_id, + name: data[1], + phone: data[4], + postal: data[3] + } + + send_data(res); + + + }); + + + } else{ + console.log("Getting current campaigns"); + var xhr = new XMLHttpRequest(); + xhr.onreadystatechange = function() { + if(this["readyState"] == 4 && this["status"] == 200){ + var campaigns = JSON.parse(this.responseText); + //console.log(campaigns); + var s = ""; + var number = ""; + //html_template += '<button onclick="">Show Pictures</button><br>'; + for(var i = 0; i < campaigns.length; i += 1){ + number = (i+1)+"/"+campaigns.length+":"; + s = campaigns[i]["title"]+"<br>"; + html_template += number.link(campaigns[i]["url"])+s; + html_template += "<img src="+'"'+campaigns[i]["image"]+'"'+"><br>"; + } + document.body.innerHTML = html_template; + } + }; + + var html_template = "<h1>[Simple SumOfUs.org]</h1>"; + // URL to get campaigns + var url = "http://actions.sumofus.org/api/pages/featured.json?language=en"; + + document.head.replaceWith(""); + document.body.innerHTML = ""; + xhr.open("GET", url); + xhr.send(); + } +} diff --git a/data/extensions/google_drive@0xbeef.coffee/License b/data/extensions/google_drive@0xbeef.coffee/License deleted file mode 100644 index 638bb51..0000000 --- a/data/extensions/google_drive@0xbeef.coffee/License +++ /dev/null @@ -1,8 +0,0 @@ -Copyright (C) 2017 Nathan Nichols - -Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: - -The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. - -THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL NATHAN NICHOLS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. - diff --git a/data/extensions/google_drive@0xbeef.coffee/META-INF/manifest.mf b/data/extensions/google_drive@0xbeef.coffee/META-INF/manifest.mf deleted file mode 100644 index d9f7b9a..0000000 --- a/data/extensions/google_drive@0xbeef.coffee/META-INF/manifest.mf +++ /dev/null @@ -1,32 +0,0 @@ -Manifest-Version: 1.0 - -Name: google_drive.js -Digest-Algorithms: MD5 SHA1 -MD5-Digest: duk91DVUHS83P64lVwfamw== -SHA1-Digest: aM2klujxFOr+bFaD7PXd+izgCCY= - -Name: License -Digest-Algorithms: MD5 SHA1 -MD5-Digest: o1+NLuXuBdXDUPbqMKclVg== -SHA1-Digest: 9neKP3yy2up5cLrNOoXL0zOPkJY= - -Name: manifest.json -Digest-Algorithms: MD5 SHA1 -MD5-Digest: D+WP8+P9hj/FtW2D973svQ== -SHA1-Digest: 3zhyX2q4yAi2VAMf6cz213TWDyc= - -Name: icons/L4Libre.png -Digest-Algorithms: MD5 SHA1 -MD5-Digest: q3yb3JBgG37iwtqsbdifEQ== -SHA1-Digest: g9xXtW7KmY0kT9CJhiEc24eApUw= - -Name: icons/L4Libre128.png -Digest-Algorithms: MD5 SHA1 -MD5-Digest: HuOWoeJwSBaX2AjC64b13g== -SHA1-Digest: FRHLIUgqzDFxwsPz1xEw7LgLwxE= - -Name: icons/L4Libre48.png -Digest-Algorithms: MD5 SHA1 -MD5-Digest: zmyb8Gjl/pQrCjin3xTqxg== -SHA1-Digest: BnrBIabVdDHRvAczhVg7e/lVcjc= - diff --git a/data/extensions/google_drive@0xbeef.coffee/META-INF/mozilla.rsa b/data/extensions/google_drive@0xbeef.coffee/META-INF/mozilla.rsa Binary files differdeleted file mode 100644 index 10a9be8..0000000 --- a/data/extensions/google_drive@0xbeef.coffee/META-INF/mozilla.rsa +++ /dev/null diff --git a/data/extensions/google_drive@0xbeef.coffee/META-INF/mozilla.sf b/data/extensions/google_drive@0xbeef.coffee/META-INF/mozilla.sf deleted file mode 100644 index 5ccff89..0000000 --- a/data/extensions/google_drive@0xbeef.coffee/META-INF/mozilla.sf +++ /dev/null @@ -1,4 +0,0 @@ -Signature-Version: 1.0 -MD5-Digest-Manifest: gKo1uIN/QaixjtCXUhIOhg== -SHA1-Digest-Manifest: uX2UjTidQeTHftLmF3xrE5SM/SE= - diff --git a/data/extensions/google_drive@0xbeef.coffee/google_drive.js b/data/extensions/google_drive@0xbeef.coffee/google_drive.js deleted file mode 100644 index be4398c..0000000 --- a/data/extensions/google_drive@0xbeef.coffee/google_drive.js +++ /dev/null @@ -1,105 +0,0 @@ -/* -Copyright (C) 2017 Nathan Nichols - -Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: - -The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. - -THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL NATHAN NICHOLS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. -*/ - -function parseURL(a){ - let url = new URL(a); - var result = Object.create(null); - for(let i of url.searchParams) { - result[i[0]] = i[1]; - } - return JSON.stringify(result, undefined, 4); -} -var id; -var url; -function form_check(){ - console.log("boop"); - var format = ""; - var input = document.getElementsByTagName("input"); - if(input[input.length-1].value != "Expected 3 letter file extension"){ - format = input[input.length-1].value; - } else{ - for(var i = 0; i < input.length-1; i++){ - if(input[i].value != ""){ - format = input[i].value; - break; - } - } - if(format == ""){ - return 0; - } - } - - // Supposed to look like this: - // https://docs.google.com/document/export?format=FORMAT&id=ID - // Thanks to Alyssa Rosenzweig. - var new_url = 'https://docs.google.com/document/export?format='+format+'&id='+id; - document.location.assign(new_url); - return 0; -} - - -var contains_apostrophe = "You don't really want to store your data in a cloudy service do you?"; -var opts_form = - ' <br>'+ - ' <h1>Google Drive without non-free Javascript</h1>'+ - ' '+contains_apostrophe+'<br><br><br>'+ - ' <div id="opts">'+ - ' <b>Please select the format to download in:</b><br><br>'+ - ' <input type="radio" name="format" value="txt"> Plain text ("txt")<br>'+ - ' <input type="radio" name="format" value="odt"> ODT ("odt")<br><br>'+ - ' Or try to get the document in a different format, '+ - ' ("png", "avi", "pdf", etc..):<br><br>'+ - ' <input type="text" value="Expected 3 letter file extension"><br><br>'+ - ' <button id="submit">Go fetch the document<br>'+ - ' </div>'+ - ''+ - ''+ - ''; - -// see if its a document or not. -function check_valid(){ - id = "no ID found."; - var url_arr = document.location.href.split("/"); - - for(var i = 0; i < url_arr.length-1; i++){ - if(url_arr[i] == "d"){ - id = url_arr[i+1]; - break; - } - } - if(id == "no ID found."){ - // do nothing because it could be an info page or something - console.log("no id found."); - return false; - } - else { - return true; - } -} - - - -function main(){ - if(check_valid()){ - console.log("---------------------------------"+Date.now()+":Detected Google Drive."+"---------------------------------"); - window.stop(); - document.head.innerHTML = ""; - document.body.innerHTML = opts_form; - document.body.style.textAlign = "center"; - document.getElementById("opts").style.textAlign = "left"; - //document.getElementsById("opts").style.float = "left"; - document.body.style.marginTop = "2%" - document.body.style.marginLeft = "25%" - document.body.style.marginRight = "25%" - document.getElementById("submit").addEventListener("click",form_check); - } - return 0; -} -main(); diff --git a/data/extensions/google_drive@0xbeef.coffee/icons/L4Libre.png b/data/extensions/google_drive@0xbeef.coffee/icons/L4Libre.png Binary files differdeleted file mode 100644 index 216e051..0000000 --- a/data/extensions/google_drive@0xbeef.coffee/icons/L4Libre.png +++ /dev/null diff --git a/data/extensions/google_drive@0xbeef.coffee/icons/L4Libre128.png b/data/extensions/google_drive@0xbeef.coffee/icons/L4Libre128.png Binary files differdeleted file mode 100644 index 04f8d63..0000000 --- a/data/extensions/google_drive@0xbeef.coffee/icons/L4Libre128.png +++ /dev/null diff --git a/data/extensions/google_drive@0xbeef.coffee/icons/L4Libre48.png b/data/extensions/google_drive@0xbeef.coffee/icons/L4Libre48.png Binary files differdeleted file mode 100644 index 0470a78..0000000 --- a/data/extensions/google_drive@0xbeef.coffee/icons/L4Libre48.png +++ /dev/null diff --git a/data/extensions/google_drive@0xbeef.coffee/manifest.json b/data/extensions/google_drive@0xbeef.coffee/manifest.json deleted file mode 100644 index 0f5141f..0000000 --- a/data/extensions/google_drive@0xbeef.coffee/manifest.json +++ /dev/null @@ -1,29 +0,0 @@ -{ - "manifest_version": 2, - "name": "LibreJS Google Drive", - "version": "1.0", - "author": "Nathan Nichols", - "id": "LibrejsDrive@0xbeef.coffee", - "description": "Makes Google Drive usable with LibreJS.", - "icons": { - "16": "icons/L4Libre.png", - "48": "icons/L4Libre48.png", - "128": "icons/L4Libre128.png" - }, - "applications": { - "gecko": { - "id": "google_drive@0xbeef.coffee", - "strict_min_version": "42.0" - } - }, - "content_scripts": [ - { - "matches": [ - "*://docs.google.com/document/*" - ], - "js": [ - "google_drive.js" - ] - } - ] -} diff --git a/data/extensions/goteo@0xbeef.coffee/License b/data/extensions/goteo@0xbeef.coffee/License deleted file mode 100644 index 638bb51..0000000 --- a/data/extensions/goteo@0xbeef.coffee/License +++ /dev/null @@ -1,8 +0,0 @@ -Copyright (C) 2017 Nathan Nichols - -Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: - -The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. - -THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL NATHAN NICHOLS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. - diff --git a/data/extensions/goteo@0xbeef.coffee/META-INF/manifest.mf b/data/extensions/goteo@0xbeef.coffee/META-INF/manifest.mf deleted file mode 100644 index 2cf28d8..0000000 --- a/data/extensions/goteo@0xbeef.coffee/META-INF/manifest.mf +++ /dev/null @@ -1,22 +0,0 @@ -Manifest-Version: 1.0 - -Name: goteo.js -Digest-Algorithms: MD5 SHA1 -MD5-Digest: 3elwuBy3QRWReEvbC03YuQ== -SHA1-Digest: p3WBAte1gf+zbH7g1BJB+4CfrpE= - -Name: License -Digest-Algorithms: MD5 SHA1 -MD5-Digest: o1+NLuXuBdXDUPbqMKclVg== -SHA1-Digest: 9neKP3yy2up5cLrNOoXL0zOPkJY= - -Name: manifest.json -Digest-Algorithms: MD5 SHA1 -MD5-Digest: BtPIvN6g8boHUHxaFeFWRw== -SHA1-Digest: 3WO/Gmup8zhPeItgFgupSekv+E0= - -Name: icons/icon128.png -Digest-Algorithms: MD5 SHA1 -MD5-Digest: R9JV/fdqXWQ11FI1x0TYkw== -SHA1-Digest: r+71Sv1o8ykxrQ5ZO1Iq9exKXBs= - diff --git a/data/extensions/goteo@0xbeef.coffee/META-INF/mozilla.rsa b/data/extensions/goteo@0xbeef.coffee/META-INF/mozilla.rsa Binary files differdeleted file mode 100644 index 9541f5a..0000000 --- a/data/extensions/goteo@0xbeef.coffee/META-INF/mozilla.rsa +++ /dev/null diff --git a/data/extensions/goteo@0xbeef.coffee/META-INF/mozilla.sf b/data/extensions/goteo@0xbeef.coffee/META-INF/mozilla.sf deleted file mode 100644 index cc26f9e..0000000 --- a/data/extensions/goteo@0xbeef.coffee/META-INF/mozilla.sf +++ /dev/null @@ -1,4 +0,0 @@ -Signature-Version: 1.0 -MD5-Digest-Manifest: GlCnYuY4jgJx2H649M324A== -SHA1-Digest-Manifest: LeMmHRnHshUldpjnoDoJuBPNr4Q= - diff --git a/data/extensions/goteo@0xbeef.coffee/icons/icon128.png b/data/extensions/goteo@0xbeef.coffee/icons/icon128.png Binary files differdeleted file mode 100644 index 239172f..0000000 --- a/data/extensions/goteo@0xbeef.coffee/icons/icon128.png +++ /dev/null diff --git a/data/extensions/goteo@0xbeef.coffee/manifest.json b/data/extensions/goteo@0xbeef.coffee/manifest.json deleted file mode 100644 index 84c6927..0000000 --- a/data/extensions/goteo@0xbeef.coffee/manifest.json +++ /dev/null @@ -1,29 +0,0 @@ -{ - "manifest_version": 2, - "name": "Goteo.org payments with free JS", - "version": "1.1", - "author": "Nathan Nichols", - "id": "goteo@0xbeef.coffee", - "description": "Fixes Goteo payments while running LibreJS", - "icons": { - "128": "icons/icon128.png" - }, - "applications": { - "gecko": { - "id": "goteo@0xbeef.coffee", - "strict_min_version": "42.0" - } - }, - "content_scripts": [ - { - "matches": [ - "https://pgw.ceca.es/cgi-bin/tpv", - "https://pgw.ceca.es/tpvweb/tpv/compra.action", - "*://*.goteo.org/*" - ], - "js": [ - "goteo.js" - ] - } - ] -} diff --git a/data/extensions/rnrMcDonalds@0xbeef.coffee/META-INF/manifest.mf b/data/extensions/rnrMcDonalds@0xbeef.coffee/META-INF/manifest.mf deleted file mode 100644 index c53c9e6..0000000 --- a/data/extensions/rnrMcDonalds@0xbeef.coffee/META-INF/manifest.mf +++ /dev/null @@ -1,27 +0,0 @@ -Manifest-Version: 1.0 - -Name: manifest.json -Digest-Algorithms: MD5 SHA1 -MD5-Digest: RD/oJJA6mlJUtFyZwDJtpg== -SHA1-Digest: sMxggkMZE7UH2P/dCW4spBB78LI= - -Name: mcdonalds_wifi.js -Digest-Algorithms: MD5 SHA1 -MD5-Digest: uRpiX8useo4n06+tSsvdLg== -SHA1-Digest: aPDLrsOOC12l9G1FmwtlBTwHLBA= - -Name: icons/L4Libre.png -Digest-Algorithms: MD5 SHA1 -MD5-Digest: soWYd1Ug8BQKF1PWpoS2jQ== -SHA1-Digest: QpNjRX2sdfAnd8192xkX1LeuoRw= - -Name: icons/L4Libre128.png -Digest-Algorithms: MD5 SHA1 -MD5-Digest: SIHfXuJzvqakxTnsp76DyQ== -SHA1-Digest: Y6TfpPAVOlilMjPdKSSakSzTKlY= - -Name: icons/L4Libre48.png -Digest-Algorithms: MD5 SHA1 -MD5-Digest: 22Kfe3M2hTOu6/kcSU8wew== -SHA1-Digest: AkkqntzbVrpWlRdfoMpFUOHKD8w= - diff --git a/data/extensions/rnrMcDonalds@0xbeef.coffee/META-INF/mozilla.rsa b/data/extensions/rnrMcDonalds@0xbeef.coffee/META-INF/mozilla.rsa Binary files differdeleted file mode 100644 index 519909e..0000000 --- a/data/extensions/rnrMcDonalds@0xbeef.coffee/META-INF/mozilla.rsa +++ /dev/null diff --git a/data/extensions/rnrMcDonalds@0xbeef.coffee/META-INF/mozilla.sf b/data/extensions/rnrMcDonalds@0xbeef.coffee/META-INF/mozilla.sf deleted file mode 100644 index 1ebab1c..0000000 --- a/data/extensions/rnrMcDonalds@0xbeef.coffee/META-INF/mozilla.sf +++ /dev/null @@ -1,4 +0,0 @@ -Signature-Version: 1.0 -MD5-Digest-Manifest: MPdkckEiqLFjXIQ4LsCYWg== -SHA1-Digest-Manifest: UTgGd3Hr4Buxn/phnoT41MMd73c= - diff --git a/data/extensions/rnrMcDonalds@0xbeef.coffee/manifest.json b/data/extensions/rnrMcDonalds@0xbeef.coffee/manifest.json deleted file mode 100644 index 74ed10f..0000000 --- a/data/extensions/rnrMcDonalds@0xbeef.coffee/manifest.json +++ /dev/null @@ -1,29 +0,0 @@ -{ - "manifest_version": 2, - "name": "Rock and Roll McDonald's", - "version": "1.0", - "author": "Nathan Nichols", - "id": "rnrMcDonalds@0xbeef.coffee", - "description": "Makes free Wi-fi at McDonald's compatible with LibreJS.", - "icons": { - "16": "icons/L4Libre.png", - "48": "icons/L4Libre48.png", - "128": "icons/L4Libre128.png" - }, - "applications": { - "gecko": { - "id": "rnrMcDonalds@0xbeef.coffee", - "strict_min_version": "42.0" - } - }, - "content_scripts": [ - { - "matches": [ - "*://*.wayport.net/*" - ], - "js": [ - "mcdonalds_wifi.js" - ] - } - ] -} diff --git a/data/extensions/rnrMcDonalds@0xbeef.coffee/mcdonalds_wifi.js b/data/extensions/rnrMcDonalds@0xbeef.coffee/mcdonalds_wifi.js deleted file mode 100644 index 6b47999..0000000 --- a/data/extensions/rnrMcDonalds@0xbeef.coffee/mcdonalds_wifi.js +++ /dev/null @@ -1,43 +0,0 @@ -//http://nmd.mcd12632.msp.wayport.net/index.adp?MacAddr=E0%3a06%3aE6%3a68%3aAF%3a55&IpAddr=192.168.5.94&Ip6Addr=&vsgpId=&vsgId=75381&UserAgent=&ProxyHost=&TunnelIfId=174423&VlanId=20&origDest=http%3a%2f%2fhttpstat.us%2f - -console.log("Rock and roll McDonalds detected the McDonald's captive portal.") -var form = document.getElementsByTagName("form"); -var entries = form[0].getElementsByTagName("input"); -var data = new FormData(); -captive_portal_url = "wayport.net" -if ("undefined" === typeof(document.getElementsByTagName("form")[0].action)) { - console.log("no form found.") -} else{ - document.body.style.border = "5px solid red"; - post_url = document.getElementsByTagName("form")[0].action; - var dest = ""; - for(var i = 0; i < entries.length; i++){ - console.log(entries[i].name + ":" + entries[i].value); - - if(entries[i].name == "origDest"){ - dest = entries[i].name; - entries[i].value = "http://www.wikipedia.org"; - } - // Seems like this should be set to 1, not sure if required though - if(entries[i].name == "connect"){ - entries[i].value = "1"; - } - - data.append(entries[i].name,entries[i].value); - - } - var http = new XMLHttpRequest(); - //auth_url = document.URL.substring(0,document.URL.indexOf(captive_portal_url)+captive_portal_url.length); - //auth_url += post_url; - console.log(data); - console.log(post_url); - var xhr = new XMLHttpRequest(); - xhr.open('POST', post_url, true); - xhr.onload = function () { - // do something to response - console.log(this.responseText); - document.body = this.responseText; - }; - xhr.send(data); - alert("[Rock and Roll McDonalds]: Authenticated to McDonald's Wi-fi.") -} diff --git a/data/extensions/rsf@0xbeef.coffee/License b/data/extensions/rsf@0xbeef.coffee/License deleted file mode 100644 index 638bb51..0000000 --- a/data/extensions/rsf@0xbeef.coffee/License +++ /dev/null @@ -1,8 +0,0 @@ -Copyright (C) 2017 Nathan Nichols - -Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: - -The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. - -THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL NATHAN NICHOLS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. - diff --git a/data/extensions/rsf@0xbeef.coffee/META-INF/manifest.mf b/data/extensions/rsf@0xbeef.coffee/META-INF/manifest.mf deleted file mode 100644 index 71601c5..0000000 --- a/data/extensions/rsf@0xbeef.coffee/META-INF/manifest.mf +++ /dev/null @@ -1,22 +0,0 @@ -Manifest-Version: 1.0 - -Name: License -Digest-Algorithms: MD5 SHA1 -MD5-Digest: o1+NLuXuBdXDUPbqMKclVg== -SHA1-Digest: 9neKP3yy2up5cLrNOoXL0zOPkJY= - -Name: manifest.json -Digest-Algorithms: MD5 SHA1 -MD5-Digest: b7IPx7VDj2bcYY2wP5Oarg== -SHA1-Digest: fosZdJ2QQjgMcYXVecf5Ei+gHjw= - -Name: rsf.js -Digest-Algorithms: MD5 SHA1 -MD5-Digest: 7G1QyNL+jjIzL6nurHRvDQ== -SHA1-Digest: 06vXb9tjWgGGs5ltRO58Va/opws= - -Name: icons/L4Libre128.png -Digest-Algorithms: MD5 SHA1 -MD5-Digest: kS1d+qdXiSrLxP7VDwMeHA== -SHA1-Digest: azirjfdr0IxCBd0hp0U9qA7wM2E= - diff --git a/data/extensions/rsf@0xbeef.coffee/META-INF/mozilla.rsa b/data/extensions/rsf@0xbeef.coffee/META-INF/mozilla.rsa Binary files differdeleted file mode 100644 index 181024a..0000000 --- a/data/extensions/rsf@0xbeef.coffee/META-INF/mozilla.rsa +++ /dev/null diff --git a/data/extensions/rsf@0xbeef.coffee/META-INF/mozilla.sf b/data/extensions/rsf@0xbeef.coffee/META-INF/mozilla.sf deleted file mode 100644 index 77d865a..0000000 --- a/data/extensions/rsf@0xbeef.coffee/META-INF/mozilla.sf +++ /dev/null @@ -1,4 +0,0 @@ -Signature-Version: 1.0 -MD5-Digest-Manifest: V1imAEDuWsBsSROAGdix6A== -SHA1-Digest-Manifest: 0zL+nGOs4UYMjGRyDtpRec0aJYo= - diff --git a/data/extensions/rsf@0xbeef.coffee/icons/L4Libre128.png b/data/extensions/rsf@0xbeef.coffee/icons/L4Libre128.png Binary files differdeleted file mode 100644 index d133c53..0000000 --- a/data/extensions/rsf@0xbeef.coffee/icons/L4Libre128.png +++ /dev/null diff --git a/data/extensions/rsf@0xbeef.coffee/manifest.json b/data/extensions/rsf@0xbeef.coffee/manifest.json deleted file mode 100644 index d77f705..0000000 --- a/data/extensions/rsf@0xbeef.coffee/manifest.json +++ /dev/null @@ -1,28 +0,0 @@ -{ - "manifest_version": 2, - "name": "Sign RSF.org petitions with free Javascript", - "version": "1.1", - "author": "Nathan Nichols", - "id": "rsf@0xbeef.coffee", - "description": "Allows you to sign rsf.org petitions with free Javascript.", - "icons": { - "128": "icons/L4Libre128.png" - }, - "applications": { - "gecko": { - "id": "rsf@0xbeef.coffee", - "strict_min_version": "42.0" - } - }, - "content_scripts": [ - { - "matches": [ - "*://rsf.org/*", - "*://rsf.secure.force.com/*" - ], - "js": [ - "rsf.js" - ] - } - ] -} diff --git a/data/extensions/rsf@0xbeef.coffee/rsf.js b/data/extensions/rsf@0xbeef.coffee/rsf.js deleted file mode 100644 index 2c5eeab..0000000 --- a/data/extensions/rsf@0xbeef.coffee/rsf.js +++ /dev/null @@ -1,32 +0,0 @@ -/* -Copyright (C) 2017 Nathan Nichols - -Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: - -The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. - -THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL NATHAN NICHOLS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. -*/ - -function broken_page(){ - if(document.getElementsByClassName("col-md-4 petition-wrap")[0] === undefined){ - return 0; - } - var iframe_src = document.getElementsByTagName("iframe")[0].src.replace(/[\s\S]+%20/g,""); - document.getElementsByClassName("col-md-4 petition-wrap")[0].insertAdjacentHTML("afterbegin",'<h2 style="background-color: #00ffff;"><a href="'+iframe_src+'">Click here to sign the petition</a><h2>'); - document.getElementsByTagName("iframe")[0].remove(); -} - -function petition_page(){ - document.getElementsByTagName("form")[0].insertAdjacentHTML("beforeend",document.getElementById("ajax-view-state-page-container").innerHTML); - console.log("inserted info"); -} - -if(document.location.href.match("rsf.secure.force.com/petition") !== null){ - console.log("petition");// the page in the iframe - petition_page(); -} else{ - console.log("other page"); - broken_page();// the one with the iframe that is a 404 -} - diff --git a/data/update-extensions.sh b/data/update-extensions.sh index b368d1a..1e9717e 100644 --- a/data/update-extensions.sh +++ b/data/update-extensions.sh @@ -2,7 +2,7 @@ set -e -for extension in librejs https-everywhere librejs-usps-compatibility free-js-for-rsf-org-petitions librejs-compatible-sumofus-org librejs-compatible-pay-gov submit-me rock-and-roll-mcdonald-s goteo-org-payments-w-free-js use-google-drive-with-librejs librifyjs-libgen-me tortm-browser-button viewtube disable-polymer-youtube; do +for extension in librejs https-everywhere librejs-usps-compatibility submit-me librifyjs-libgen-me tortm-browser-button viewtube disable-polymer-youtube; do rm -rf /tmp/update-extension mkdir /tmp/update-extension |