1if (!Date.now) { 2 Date.now = function now() { 3 return new Date().getTime(); 4 }; 5} 6 7(function(funcName, baseObj) { 8 "use strict"; 9 10 // The public function name defaults to window.docReady 11 // but you can modify the last line of this function to pass in a different object or method name 12 // if you want to put them in a different namespace and those will be used instead of 13 // window.docReady(...) 14 funcName = funcName || "docReady"; 15 baseObj = baseObj || window; 16 var readyList = []; 17 var readyFired = false; 18 var readyEventHandlersInstalled = false; 19 20 // call this when the document is ready 21 // this function protects itself against being called more than once 22 function ready() { 23 if (!readyFired) { 24 25 // this must be set to true before we start calling callbacks 26 readyFired = true; 27 for (var i = 0; i < readyList.length; i++) { 28 29 // if a callback here happens to add new ready handlers, 30 // the docReady() function will see that it already fired 31 // and will schedule the callback to run right after 32 // this event loop finishes so all handlers will still execute 33 // in order and no new ones will be added to the readyList 34 // while we are processing the list 35 readyList[i].fn.call(window, readyList[i].ctx); 36 } 37 38 // allow any closures held by these functions to free 39 readyList = []; 40 } 41 } 42 43 function readyStateChange() { 44 if ( document.readyState === "complete" ) { 45 ready(); 46 } 47 } 48 49 // This is the one public interface 50 // docReady(fn, context); 51 // the context argument is optional - if present, it will be passed 52 // as an argument to the callback 53 baseObj[funcName] = function(callback, context) { 54 if (typeof callback !== "function") { 55 throw new TypeError("callback for docReady(fn) must be a function"); 56 } 57 58 // if ready has already fired, then just schedule the callback 59 // to fire asynchronously, but right away 60 if (readyFired) { 61 setTimeout(function() {callback(context);}, 1); 62 return; 63 } else { 64 65 // add the function and context to the list 66 readyList.push({fn: callback, ctx: context}); 67 } 68 69 // if document already ready to go, schedule the ready function to run 70 // IE only safe when readyState is "complete", others safe when readyState is "interactive" 71 if (document.readyState === "complete" || (!document.attachEvent && document.readyState === "interactive")) { 72 setTimeout(ready, 1); 73 } else if (!readyEventHandlersInstalled) { 74 75 // otherwise if we don't have event handlers installed, install them 76 if (document.addEventListener) { 77 78 // first choice is DOMContentLoaded event 79 document.addEventListener("DOMContentLoaded", ready, false); 80 81 // backup is window load event 82 window.addEventListener("load", ready, false); 83 } else { 84 85 // must be IE 86 document.attachEvent("onreadystatechange", readyStateChange); 87 window.attachEvent("onload", ready); 88 } 89 readyEventHandlersInstalled = true; 90 } 91 } 92})("__sharethis__docReady", window); 93 94// Document.querySelectorAll method 95// http://ajaxian.com/archives/creating-a-queryselector-for-ie-that-runs-at-native-speed 96// Needed for: IE7- 97if (!document.querySelectorAll) { 98 document.querySelectorAll = function(selectors) { 99 var style = document.createElement('style'), elements = [], element; 100 document.documentElement.firstChild.appendChild(style); 101 document._qsa = []; 102 103 style.styleSheet.cssText = selectors + '{x-qsa:expression(document._qsa && document._qsa.push(this))}'; 104 window.scrollBy(0, 0); 105 style.parentNode.removeChild(style); 106 107 while (document._qsa.length) { 108 element = document._qsa.shift(); 109 element.style.removeAttribute('x-qsa'); 110 elements.push(element); 111 } 112 document._qsa = null; 113 return elements; 114 }; 115} 116 117// Document.querySelector method 118// Needed for: IE7- 119if (!document.querySelector) { 120 document.querySelector = function(selectors) { 121 var elements = document.querySelectorAll(selectors); 122 return (elements.length) ? elements[0] : null; 123 }; 124} 125 126if (!Array.isArray) { 127 Array.isArray = function(arg) { 128 return Object.prototype.toString.call(arg) === '[object Array]'; 129 }; 130} 131 132Array.prototype.indexOf || (Array.prototype.indexOf = function(d, e) { 133 var a; 134 if (null == this) throw new TypeError('"this" is null or not defined'); 135 var c = Object(this); 136 var b = c.length >>> 0; 137 if (0 === b) return -1; 138 a = +e || 0; 139 Infinity === Math.abs(a) && (a = 0); 140 if (a >= b) return -1; 141 for (a = Math.max(0 <= a ? a : b - Math.abs(a), 0); a < b;) { 142 if (a in c && c[a] === d) return a; 143 a++; 144 } 145 return -1 146}); 147 148(function() { 149 var st, 150 indexOf = [].indexOf || function(item) { for (var i = 0, l = this.length; i < l; i++) { if (i in this && this[i] === item) return i; } return -1; }; 151 152 if (window.__sharethis__ == null) { 153 window.__sharethis__ = { 154 v: '6.0.0' 155 }; 156 } 157 158 st = window.__sharethis__; 159 160 st.METRICS = "https://platform-metrics-api.sharethis.com"; 161 162 st.API = "https://platform-api.sharethis.com"; 163 164 st.SECOND = 1000; 165 166 st.MINUTE = 60 * st.SECOND; 167 168 st.HOUR = 60 * st.MINUTE; 169 170 st.DAY = 24 * st.HOUR; 171 172 st.WEEK = 7 * st.DAY; 173 174 st.BORDER_BOX = "-moz-box-sizing: border-box;\n-webkit-box-sizing: border-box;\nbox-sizing: border-box;"; 175 176 st.BORDER_RADIUS = function(radius) { 177 return "-moz-border-radius: " + (st.px(radius)) + ";\n-webkit-border-radius: " + (st.px(radius)) + ";\nborder-radius: " + (st.px(radius)) + ";"; 178 }; 179 180 st.BOX_SHADOW = function(value) { 181 return "-moz-box-shadow: " + value + ";\n-webkit-box-shadow: " + value + ";\nbox-shadow: " + value + ";"; 182 }; 183 184 st.FLEX = "-moz-flex: 1;\n-ms-flex: 1;\n-webkit-flex: 1;\nflex: 1;"; 185 186 st.FONT_FAMILY = "font-family: \"Helvetica Neue\", Verdana, Helvetica, Arial, sans-serif;"; 187 188 st.TRANSFORM = function(value) { 189 return "-ms-transform: " + value + ";\n-webkit-transform: " + value + ";\ntransform: " + value + ";"; 190 }; 191 192 st.TRANSITION = function(properties, duration) { 193 var i, len, property, value; 194 if (properties == null) { 195 properties = ['all']; 196 } 197 if (duration == null) { 198 duration = '0.2s'; 199 } 200 value = []; 201 for (i = 0, len = properties.length; i < len; i++) { 202 property = properties[i]; 203 value.push(property + " " + duration + " ease-in"); 204 } 205 value = value.join(', '); 206 return "-moz-transition: " + value + "; -ms-transition: " + value + "; -o-transition: " + value + "; -webkit-transition: " + value + "; transition: " + value + ";"; 207 }; 208 209 st._uid = 0; 210 211 st.uid = function() { 212 return ++st._uid; 213 }; 214 215 st.cache = {}; 216 217 st.get = function(key) { 218 return st.cache[key]; 219 }; 220 221 st.set = function(key, val) { 222 return st.cache[key] = val; 223 }; 224 225 st.has = function(key) { 226 return st.cache[key] != null; 227 }; 228 229 st.addClass = function($el, names) { 230 var current, i, len, name; 231 current = ($el.className || '').split(' '); 232 if (typeof names === 'string') { 233 names = [names]; 234 } 235 for (i = 0, len = names.length; i < len; i++) { 236 name = names[i]; 237 if ((name != null) && indexOf.call(current, name) < 0) { 238 current.push(name); 239 } 240 } 241 return $el.className = current.join(' '); 242 }; 243 244 st.addEventListener = function($el, event, callback) { 245 if (!($el && event && callback)) { 246 return; 247 } 248 if ($el.addEventListener) { 249 return $el.addEventListener(event, callback, false); 250 } else if ($el.attachEvent) { 251 return $el.attachEvent("on" + event, callback); 252 } else { 253 return $el["on" + event] = callback; 254 } 255 }; 256 257 st.capitalize = function(str) { 258 return "" + (str.charAt(0).toUpperCase()) + (str.substring(1).toLowerCase()); 259 }; 260 261 st.close = function($el) { 262 st.removeClass(document.body, 'st-body-no-scroll'); 263 if (!$el) { 264 return; 265 } 266 st.addClass($el, 'st-hidden'); 267 return setTimeout((function() { 268 return st.remove($el); 269 }), 200); 270 }; 271 272 st.css = function(css) { 273 var head, s; 274 head = document.getElementsByTagName('head')[0]; 275 s = document.createElement('style'); 276 s.setAttribute('type', 'text/css'); 277 if (s.styleSheet) { 278 s.styleSheet.cssText = css; 279 } else { 280 s.appendChild(document.createTextNode(css)); 281 } 282 return head.appendChild(s); 283 }; 284 285 st.ecommerce = function() { 286 var ecommerce, has_ldjson, has_og, has_price; 287 has_ldjson = st.meta["@type"] === "Product"; 288 has_og = st.meta["og:type"] === "product"; 289 has_price = st.getMeta(['og:price:amount', 'price', 'product:price:amount']); 290 if (has_ldjson || has_og || has_price) { 291 ecommerce = JSON.stringify(st.omit({ 292 availability: st.getMeta(["og:availability", "product:availability", "availability"]), 293 brand: st.getMeta(["brand", "og:site_name"]), 294 category: st.getMeta(["category"]), 295 currency: st.getMeta(["og:price:currency", "product:price:currency", "priceCurrency"]), 296 description: st.getMeta(["og:description", "twitter:description", "description"]), 297 image: st.getMeta(["og:image:secure_url", "og:image", "twitter:image"]), 298 mpn: st.getMeta(["mpn"]),
299 name: st.getMeta(["og:title", "twitter:title", "name"]), 300 price: st.getMeta(["og:price:amount", "product:price:amount", "price"]), 301 rating: st.getMeta(["og:rating", "ratingValue"]), 302 reviews: st.getMeta(["reviewCount", "ratingCount"]), 303 sku: st.getMeta(["sku"]) 304 })); 305 st.log({ 306 event: 'ecommerce_pview', 307 ecommerce: ecommerce 308 }); 309 st.addEventListener(document, "click", function(e) { 310 var classes, cls, config, event, href, i, len; 311 if (!(e != null ? e.target : void 0)) { 312 return true; 313 } 314 if (e.target.tagName === "A") { 315 href = e.target.getAttribute('href') || ''; 316 if (new RegExp("/cart$").test(href)) { 317 st.log({ 318 event: "view_cart", 319 ecommerce: ecommerce 320 }); 321 return true; 322 } 323 } 324 config = { 325 add_to_cart: ["add_to_cart", "add-to-cart", "addtocart"], 326 add_to_wishlist: ["save-for-later", "wishlist"], 327 buy: ["payment-button"] 328 }; 329 for (event in config) { 330 classes = config[event]; 331 for (i = 0, len = classes.length; i < len; i++) { 332 cls = classes[i]; 333 if (st.hasClassOrId(e.target, cls)) { 334 st.log({ 335 event: event, 336 ecommerce: ecommerce 337 }); 338 return true; 339 } 340 } 341 } 342 return true; 343 }); 344 } 345 return true; 346 }; 347 348 st.emit = function(event, data) { 349 var handler, i, len, ref, ref1, results; 350 ref1 = ((ref = st.handlers) != null ? ref[event] : void 0) || []; 351 results = []; 352 for (i = 0, len = ref1.length; i < len; i++) { 353 handler = ref1[i]; 354 results.push(handler(data)); 355 } 356 return results; 357 }; 358 359 st.formatNumber = function(value) { 360 if (value > 1000000) { 361 return (Math.round(10 * (value / 1000000)) / 10) + "m"; 362 } 363 if (value > 100000) { 364 return (Math.round(value / 1000)) + "k"; 365 } 366 if (value > 1000) { 367 return (Math.round(10 * (value / 1000)) / 10) + "k"; 368 } 369 return "" + value; 370 }; 371 372 st.getCookie = function(name) { 373 var values; 374 values = document.cookie.match("(^|;)\\s*" + name + "\\s*=\\s*([^;]+)"); 375 if (values) { 376 return values.pop(); 377 } 378 return null; 379 }; 380 381 st.getDescription = function() { 382 return st.getMeta(['og:description', 'twitter:description', 'description', 'Description']); 383 }; 384 385 st.getImage = function() { 386 return st.getMeta(['og:image:secure_url', 'og:image', 'twitter:image']); 387 }; 388 389 st.getMeta = function(types) { 390 var i, len, type; 391 for (i = 0, len = types.length; i < len; i++) { 392 type = types[i]; 393 if ((st.meta[type] != null) && typeof st.meta[type] !== 'object') { 394 return "" + st.meta[type]; 395 } 396 } 397 return ''; 398 }; 399 400 st.getScrollbarWidth = function() { 401 var inner, outer, scrollbar_width; 402 outer = document.createElement('div'); 403 outer.style.visibility = 'hidden'; 404 outer.style.width = '100px'; 405 outer.style.msOverflowStyle = 'scrollbar'; 406 outer.style.overflow = 'scroll'; 407 document.body.appendChild(outer); 408 inner = document.createElement('div'); 409 inner.style.width = '100%'; 410 outer.appendChild(inner); 411 scrollbar_width = outer.offsetWidth - inner.offsetWidth; 412 outer.parentNode.removeChild(outer); 413 return scrollbar_width; 414 }; 415 416 st.getScrollDepth = function() { 417 var body, body_height, de, depth, percentage, window_height; 418 de = document.documentElement; 419 body = document.body; 420 body_height = Math.max.apply(Math, [body.scrollHeight || 0, body.offsetHeight || 0, de.clientHeight || 0, de.scrollHeight || 0, de.offsetHeight || 0]); 421 window_height = st.getWindowSize().height; 422 depth = window.pageYOffset || (de || body.parentNode || body).scrollTop; 423 percentage = Math.floor(100 * (window_height + depth) / body_height); 424 return percentage; 425 }; 426 427 st.getShareLabel = function(network, language) { 428 var value; 429 if (language == null) { 430 language = 'en'; 431 } 432 value = ''; 433 switch (network) { 434 case 'blm':
435 value = st.i18n['Support BLM'][language]; 436 break; 437 case 'email': 438 value = st.i18n['email'][language]; 439 break; 440 case 'gmail': 441 value = st.i18n['gmail'][language]; 442 break; 443 case 'flipboard': 444 value = st.i18n['flip'][language]; 445 break; 446 case 'googlebookmarks': 447 value = st.i18n['bookmark'][language]; 448 break; 449 case 'pinterest': 450 value = st.i18n['pin'][language]; 451 break; 452 case 'print': 453 value = st.i18n['print'][language]; 454 break; 455 case 'snapchat': 456 value = st.i18n['snapchat'][language]; 457 break; 458 case 'twitter': 459 value = st.i18n['tweet'][language]; 460 break; 461 case 'yahoomail': 462 value = st.i18n['email'][language]; 463 break; 464 default: 465 value = st.i18n['share'][language]; 466 } 467 if (network === 'blm') { 468 return value; 469 } 470 return st.capitalize(value); 471 }; 472 473 st.getTitle = function() { 474 return st.getMeta(['og:title', 'twitter:title']) || document.title; 475 }; 476 477 st.getQuerystring = function(url) { 478 var a; 479 a = document.createElement('a'); 480 a.setAttribute('href', url); 481 return a.search; 482 }; 483 484 st.getWindowSize = function() { 485 var body, documentElement, innerHeight, innerWidth; 486 body = document.body, documentElement = document.documentElement; 487 innerHeight = window.innerHeight, innerWidth = window.innerWidth; 488 return { 489 height: innerHeight || documentElement.clientHeight || body.clientHeight, 490 width: innerWidth || documentElement.clientWidth || body.clientWidth 491 }; 492 }; 493 494 st.hasClass = function($el, name) { 495 var re; 496 re = new RegExp(name); 497 return re.test(($el.className || '').toLowerCase()); 498 }; 499 500 st.hasClassOrId = function($el, name) { 501 var i, len, re, ref, str; 502 re = new RegExp(name); 503 ref = [$el.className, $el.id]; 504 for (i = 0, len = ref.length; i < len; i++) { 505 str = ref[i]; 506 if (typeof str !== 'string') { 507 continue; 508 } 509 if (re.test((str || '').toLowerCase())) { 510 return true; 511 } 512 } 513 return false; 514 }; 515 516 st.hasCookies = (function() { 517 var has_cookies, key; 518 key = '__sharethis_cookie_test__'; 519 document.cookie = key + "=1;"; 520 has_cookies = document.cookie.indexOf(key) > -1; 521 document.cookie = key + '=; expires=Thu, 01 Jan 1970 00:00:01 GMT;'; 522 return has_cookies; 523 })(); 524 525 st.hasLocalStorage = (function() { 526 var key; 527 key = '__sharethis_local_storage_test__'; 528 try { 529 localStorage.setItem(key, 'hello world'); 530 localStorage.removeItem(key); 531 return true; 532 } catch (error1) { 533 return false; 534 } 535 })(); 536 537 st.hem = function(data) { 538 var params; 539 st._hem = data; 540 if ((data == null) || (data.sha1 == null) || (data.sha256 == null) || (data.md5 == null)) { 541 return 'Not valid data input'; 542 } 543 params = { 544 hem_sha1: data.sha1, 545 hem_sha256: data.sha256, 546 hem_md5: data.md5 547 }; 548 st.send("https://sync.sharethis.com/powr/hem?" + st.qs(params)); 549 }; 550 551 st.hostname = function(url) { 552 var a; 553 if (url == null) { 554 url = st.href; 555 } 556 a = document.createElement('a'); 557 a.setAttribute('href', url); 558 return a.hostname; 559 }; 560 561 st.ibl = function() { 562 var blacklist, domain, hostname, href, i, len, protocol; 563 href = document.referrer; 564 if (href) { 565 hostname = st.hostname(href) || ''; 566 protocol = st.protocol(href) || ''; 567 if (protocol === 'android-app:') { 568 return true; 569 } 570 blacklist = ['aol', 'bing', 'bs.to', 'facebook', 'google', 'yahoo', 'yandex', document.location.hostname]; 571 for (i = 0, len = blacklist.length; i < len; i++) { 572 domain = blacklist[i]; 573 if (hostname.indexOf(domain) > -1) { 574 return true; 575 } 576 } 577 st.log({ 578 event: 'ibl', 579 title: "", 580 url: href 581 }); 582 } 583 return true; 584 }; 585 586 st.img = function(name) { 587 var alt; 588 if (!name) { 589 return; 590 } 591 alt = (name.replace('.svg', '').replace('.png', '')) + " sharing button"; 592 return "<img alt='" + alt + "' src='https://platform-cdn.sharethis.com/img/" + name + "' />"; 593 }; 594 595 st.incLocalStorageShares = function(network, count_url) { 596 var all_counts, network_count, ref, ref1, ref2, ref3, ref4, ref5, total; 597 all_counts = st.storage.get("st_shares_" + count_url); 598 if (all_counts) { 599 network_count = (((ref = all_counts[network]) != null ? ref.value : void 0) + 1) || 0;
600 total = (((ref1 = all_counts["total"]) != null ? ref1.value : void 0) + 1) || 0; 601 if ((ref2 = all_counts[network]) != null) { 602 ref2.value = network_count; 603 } 604 if ((ref3 = all_counts[network]) != null) { 605 ref3.label = st.formatNumber(network_count); 606 } 607 if ((ref4 = all_counts["total"]) != null) { 608 ref4.value = total; 609 } 610 if ((ref5 = all_counts["total"]) != null) { 611 ref5.label = st.formatNumber(total); 612 } 613 all_counts["update_time"] = Math.round(new Date() / 1000); 614 return st.storage.set("st_shares_" + count_url, all_counts); 615 } 616 }; 617 618 st.inc = function($el) { 619 var value; 620 value = st.parseNumber($el.innerText); 621 $el.innerText = st.formatNumber(value + 1); 622 st.addClass($el, 'st-grow'); 623 return setTimeout((function() { 624 return st.removeClass($el, 'st-grow'); 625 }), 400); 626 }; 627 628 st.isEnter = function(e) { 629 return e.which === 13 || e.keyCode === 13; 630 }; 631 632 st.isEsc = function(e) { 633 var ref; 634 return ((ref = e.key) === 'Escape' || ref === 'Esc') || e.keyCode === 27; 635 }; 636 637 st.isValidEmail = function(email) { 638 var re; 639 re = /[^\.\s@][^\s@]*(?!\.)@[^\.\s@]+(?:\.[^\.\s@]+)*/; 640 return re.test(email); 641 }; 642 643 st.js = function(url, id) { 644 var $el, first; 645 $el = document.createElement('script'); 646 $el.async = 1; 647 $el.src = url; 648 if (id) { 649 $el.id = id; 650 } 651 first = document.getElementsByTagName('script')[0]; 652 return first.parentNode.insertBefore($el, first); 653 }; 654 655 st.ldjson = (function() { 656 var el, i, item, len, raw; 657 el = document.querySelector('script[type="application/ld+json"]'); 658 if (el) { 659 try { 660 raw = JSON.parse(el.innerText); 661 if (!Array.isArray(raw)) { 662 raw = [raw]; 663 } 664 for (i = 0, len = raw.length; i < len; i++) { 665 item = raw[i]; 666 if (item["@type"] === "Product") { 667 if (item.offers && !Array.isArray(item.offers)) { 668 item.offers = [item.offers]; 669 } 670 if (item.brand) { 671 item.brand = item.brand.name || item.brand; 672 } 673 if (item.category && Array.isArray(item.category)) { 674 item.category = item.category.join(";"); 675 } 676 return item; 677 } 678 } 679 return null; 680 } catch (error1) { 681 682 } 683 } 684 return null; 685 })(); 686 687 st.loadPixel = function() { 688 var domain, rnd, src; 689 domain = window.location.hostname; 690 rnd = (new Date()).getTime(); 691 src = "https://t.sharethis.com/1/k/t.dhj?" + st.qs({ 692 cid: 'c010', 693 cls: 'B', 694 dmn: domain, 695 gdpr_consent: st.gdpr_consent, 696 gdpr_domain: st.gdpr_consent && st.gdpr_domain, 697 rnd: rnd 698 }); 699 return st.js(src, 'pxscrpt'); 700 }; 701 702 if (st.loader == null) { 703 st.loader = {}; 704 } 705 706 st.load = function(product, config, element) { 707 var base; 708 if (element == null) { 709 element = false; 710 } 711 return typeof (base = st.loader)[product] === "function" ? base[product](config, element) : void 0; 712 }; 713 714 st.loadNonReg = function(product, element) { 715 var alignment, buttonSize, config, fontSize, labels, network, networkTypes, padding, ref, ref1, showTotal, size; 716 networkTypes = (function() { 717 var i, len, ref, results; 718 ref = element.querySelectorAll('span'); 719 results = []; 720 for (i = 0, len = ref.length; i < len; i++) { 721 network = ref[i]; 722 results.push(network.dataset.network); 723 } 724 return results; 725 })(); 726 size = element.dataset.size; 727 buttonSize = 48; 728 alignment = ((ref = element.dataset) != null ? ref.alignment : void 0) || 'left'; 729 labels = (ref1 = element.dataset) != null ? ref1.labels : void 0; 730 showTotal = element.dataset['show_total']; 731 config = {}; 732 if (size === 'small') { 733 buttonSize = 32; 734 fontSize = 11; 735 padding = 8; 736 } 737 if (size === 'medium') { 738 buttonSize = 40; 739 fontSize = 12; 740 padding = 10; 741 } 742 if (size === 'large') { 743 fontSize = 16; 744 padding = 12; 745 } 746 if (product === 'inline-share-buttons') { 747 config = { 748 color: 'social', 749 min_count: 10, 750 radius: 4, 751 show_mobile_buttons: true, 752 spacing: 8, 753 language: 'en' 754 }; 755 alignment = 'center'; 756 } else if (product === 'sticky-share-buttons') { 757 config = { 758 color: 'social', 759 min_count: 10, 760 radius: 4, 761 mobile_breakpoint: 1024, 762 top: 160, 763 show_mobile: true, 764 hide_desktop: false, 765 show_mobile_buttons: true, 766 spacing: 0, 767 language: 'en' 768 }; 769 fontSize = 16; 770 padding = 12; 771 } 772 config.size = buttonSize; 773 config.padding = padding; 774 config.labels = labels; 775 config.font_size = fontSize; 776 config.show_total = showTotal; 777 config.alignment = alignment; 778 config.enabled = true; 779 config.networks = networkTypes; 780 return st.load(product, config, element); 781 }; 782 783 if (st.load_counts_cache == null) { 784 st.load_counts_cache = {}; 785 } 786 787 st.loadCounts = function(options, next) { 788 var base, ourl, ref, ref1, ref2; 789 if (!next) { 790 ref = [{}, options], options = ref[0], next = ref[1]; 791 } 792 if (options.url == null) { 793 options.url = st.href; 794 } 795 ourl = options.url; 796 if ((base = st.load_counts_cache)[ourl] == null) { 797 base[ourl] = { 798 callbacks: [next], 799 response: null, 800 status: 'init' 801 }; 802 } 803 if (((ref1 = st.load_counts_cache[ourl]) != null ? ref1.status : void 0) === 'complete') { 804 return next(st.load_counts_cache[ourl].response); 805 } 806 if (((ref2 = st.load_counts_cache[ourl]) != null ? ref2.status : void 0) === 'in-progress') { 807 return st.load_counts_cache[ourl].callbacks.push(next); 808 } 809 st.load_counts_cache[ourl].status = 'in-progress'; 810 return st.js("https://count-server.sharethis.com/v2.0/get_counts?" + st.qs({ 811 cb: "window.__sharethis__.cb", 812 url: ourl 813 })); 814 }; 815 816 st.cb = function(resp) { 817 var callback, clicks, counts, i, j, len, len1, local_count, network, ourl, reaction, reactions, ref, ref1, shares, total, update_time, value; 818 if (resp == null) { 819 resp = {}; 820 } 821 clicks = resp.clicks, ourl = resp.ourl, reactions = resp.reactions, shares = resp.shares, total = resp.total, update_time = resp.update_time; 822 counts = {}; 823 for (reaction in st.REACTIONS || {}) { 824 value = (reactions != null ? reactions[reaction] : void 0) || 0; 825 counts[reaction] = { 826 value: value, 827 label: st.formatNumber(value) 828 }; 829 } 830 ref = st.networks || []; 831 for (i = 0, len = ref.length; i < len; i++) { 832 network = ref[i]; 833 value = ((clicks != null ? clicks[network] : void 0) || 0) + ((shares != null ? shares[network] : void 0) || 0); 834 counts[network] = { 835 value: value, 836 label: st.formatNumber(value) 837 }; 838 } 839 counts['total'] = { 840 value: total, 841 label: st.formatNumber(total) 842 }; 843 counts["update_time"] = update_time; 844 local_count = st.storage.get("st_shares_" + ourl); 845 if (update_time < (local_count != null ? local_count.update_time : void 0)) { 846 counts = local_count; 847 } 848 st.load_counts_cache[ourl].response = counts; 849 st.load_counts_cache[ourl].status = 'complete'; 850 st.storage.set("st_shares_" + ourl, counts); 851 ref1 = st.load_counts_cache[ourl].callbacks; 852 for (j = 0, len1 = ref1.length; j < len1; j++) { 853 callback = ref1[j]; 854 callback(counts); 855 } 856 return st.load_counts_cache[ourl].callbacks = []; 857 }; 858 859 st.log = function(data, url) { 860 var log, ref; 861 if (url == null) { 862 url = "https://l.sharethis.com/log"; 863 } 864 log = function() { 865 var fpestid, page_info, ref, ref1, ref2, ref3, ref4, ref5, ref6, ref7; 866 data.fcmp = typeof window.__cmp === 'function'; 867 data.fcmpv2 = typeof window.__tcfapi === 'function'; 868 data.has_segmentio = typeof (window.analytics && window.analytics.identify) === 'function'; 869 data.product = st.product; 870 data.publisher = st.property; 871 data.account = st.account; 872 data.ssb = st.ssb; 873 data.refDomain = st.hostname(window.document.referrer); 874 data.refQuery = st.getQuerystring(window.document.referrer); 875 data.source = 'sharethis.js'; 876 if (data.title == null) { 877 data.title = st.getTitle(); 878 } 879 data.ts = Date.now(); 880 data.sop = true; 881 data.cms = st.cms; 882 data.gdpr_consent = st.gdpr_consent; 883 data.gdpr_domain = st.gdpr_domain; 884 data.gdpr_method = st.gdpr_method; 885 data.usprivacy = st.usprivacy; 886 fpestid = st.getCookie("fpestid");
887 try { 888 if (!fpestid) { 889 fpestid = localStorage.getItem("fpestid"); 890 } 891 } catch (error1) {} 892 if (fpestid) { 893 data.fpestid = fpestid; 894 } 895 if (data.description == null) { 896 data.description = st.getDescription(); 897 } 898 data.ua = (ref = st.ua_fields) != null ? ref.ua : void 0; 899 data.ua_full_version_list = (ref1 = st.ua_fields) != null ? ref1.ua_full_version_list : void 0; 900 data.ua_mobile = (ref2 = st.ua_fields) != null ? ref2.ua_mobile : void 0; 901 data.ua_model = (ref3 = st.ua_fields) != null ? ref3.ua_model : void 0; 902 data.ua_platform = (ref4 = st.ua_fields) != null ? ref4.ua_platform : void 0; 903 data.ua_platform_version = (ref5 = st.ua_fields) != null ? ref5.ua_platform_version : void 0; 904 page_info = ((ref6 = window.__stdos__) != null ? (ref7 = ref6.data) != null ? ref7.pageInfo : void 0 : void 0) || {}; 905 if (page_info.override) { 906 data.override = page_info.override; 907 } 908 return st.send(url + "?" + st.qs(data)); 909 }; 910 if (st != null ? (ref = st.consent_queue) != null ? ref.initialized : void 0 : void 0) { 911 log(); 912 return; 913 } 914 if (st.consent_queue == null) { 915 st.consent_queue = { 916 functions: [] 917 }; 918 } 919 return st.consent_queue.functions.push(log); 920 }; 921 922 st.logGoogleAnalyticsEvent = function(category, action, label) { 923 var _gaq, ga; 924 ga = window.ga, _gaq = window._gaq; 925 if (ga) { 926 return ga('send', 'event', category, action, label); 927 } else if (_gaq) { 928 return _gaq.push(['_trackEvent', category, action, label]); 929 } 930 }; 931 932 st.meta = (function() { 933 var el, i, item, j, k, key, len, len1, offer, ref, ref1, ref2, v; 934 item = {}; 935 ref = document.querySelectorAll("meta,[itemprop]"); 936 for (i = 0, len = ref.length; i < len; i++) { 937 el = ref[i]; 938 key = el.getAttribute('property') || el.getAttribute('name') || el.getAttribute('itemprop'); 939 if (key) { 940 if (item[key] == null) { 941 item[key] = el.getAttribute('content') || el.getAttribute("href") || el.innerText; 942 } 943 } 944 } 945 try { 946 if (st.ldjson) { 947 ref1 = st.ldjson; 948 for (k in ref1) { 949 v = ref1[k]; 950 if (item[k] == null) { 951 item[k] = v; 952 } 953 } 954 if (st.ldjson.offers) { 955 ref2 = st.ldjson.offers; 956 for (j = 0, len1 = ref2.length; j < len1; j++) { 957 offer = ref2[j]; 958 for (k in offer) { 959 v = offer[k]; 960 if (item[k] == null) { 961 item[k] = v; 962 } 963 } 964 } 965 } 966 } 967 } catch (error1) { 968 969 } 970 return item; 971 })(); 972 973 st.newElement = function(parent) { 974 var $el, id; 975 if (parent === void 0) { 976 parent = document.body; 977 } 978 $el = document.createElement('div'); 979 id = "st-el-" + (st.uid()); 980 $el.setAttribute('id', id); 981 if (parent) { 982 parent.appendChild($el); 983 } 984 return { 985 $el: $el, 986 id: id 987 }; 988 }; 989 990 st.obl = function(e) { 991 var href, prefix, ref; 992 if ((e != null ? (ref = e.target) != null ? ref.tagName : void 0 : void 0) === 'A') { 993 href = e.target.getAttribute('href') || ''; 994 prefix = href.slice(0, href.indexOf(':')); 995 if (href.slice(0, 4) === 'http' && e.target.hostname !== document.location.hostname) { 996 st.log({ 997 event: 'obl', 998 title: "", 999 url: href 1000 }); 1001 } 1002 } 1003 return true; 1004 }; 1005 1006 st.omit = function(obj) { 1007 var k, res, v; 1008 res = {}; 1009 for (k in obj) { 1010 v = obj[k]; 1011 if (v) { 1012 res[k] = v; 1013 } 1014 } 1015 return res; 1016 }; 1017 1018 st.on = function(event, callback) { 1019 var base; 1020 if (st.handlers == null) { 1021 st.handlers = []; 1022 } 1023 if ((base = st.handlers)[event] == null) { 1024 base[event] = []; 1025 } 1026 return st.handlers[event].push(callback); 1027 }; 1028 1029 st.open = function(url) { 1030 var h, w, wh, ww; 1031 if (!url) { 1032 return; 1033 } 1034 if (st.mobile) { 1035 return window.open(url, '_blank'); 1036 } else if (url.indexOf('mailto:') > -1 || url.indexOf('viber') > -1) { 1037 return document.location = url; 1038 } else {
1039 wh = st.getWindowSize().height; 1040 ww = st.getWindowSize().width; 1041 h = Math.min(600, .6 * wh); 1042 w = Math.min(800, .8 * ww); 1043 return window.open(url, '', ["height=" + h, "left=" + ((ww - w) / 2), "top=" + ((wh - h) / 2), "width=" + w, 'status=1', 'toolbar=0'].join(',')); 1044 } 1045 }; 1046 1047 st.parseNumber = function(value) { 1048 var multiplier; 1049 multiplier = 1; 1050 if (value.indexOf('k') > -1) { 1051 multiplier = 1000; 1052 } 1053 if (value.indexOf('m') > -1) { 1054 multiplier = 1000000; 1055 } 1056 value = value.replace(/[km,]/g, ''); 1057 return multiplier * parseInt(value, 10) || 0; 1058 }; 1059 1060 st.position = function($el, container) { 1061 var _container, _el; 1062 if (container == null) { 1063 container = window; 1064 } 1065 _el = $el.getBoundingClientRect(); 1066 if (container === window) { 1067 return { 1068 left: _el.left + window.scrollX, 1069 top: _el.top + window.scrollY 1070 }; 1071 } else { 1072 _container = container.getBoundingClientRect(); 1073 return { 1074 left: _el.left - _container.left + container.scrollLeft, 1075 top: _el.top - _container.top + container.scrollTop 1076 }; 1077 } 1078 }; 1079 1080 st.protocol = function(url) { 1081 var a; 1082 if (url == null) { 1083 url = st.href; 1084 } 1085 a = document.createElement('a'); 1086 a.setAttribute('href', url); 1087 return a.protocol; 1088 }; 1089 1090 st.px = function(value) { 1091 if (typeof value === 'string') { 1092 return value; 1093 } 1094 return (Math.floor(value)) + "px"; 1095 }; 1096 1097 st.qs = function(params) { 1098 var k, v; 1099 return ((function() { 1100 var results; 1101 results = []; 1102 for (k in params) { 1103 v = params[k]; 1104 if (v != null) { 1105 results.push(k + "=" + (encodeURIComponent(v))); 1106 } 1107 } 1108 return results; 1109 })()).join('&'); 1110 }; 1111 1112 st.react = function(arg) { 1113 var reaction, url; 1114 reaction = arg.reaction, url = arg.url; 1115 if (url == null) { 1116 url = st.href; 1117 } 1118 st.logGoogleAnalyticsEvent('ShareThis', reaction, url); 1119 return st.log({ 1120 event: 'reaction', 1121 reactionType: reaction, 1122 url: url 1123 }); 1124 }; 1125 1126 st.remove = function($el) { 1127 if (!($el != null ? $el.parentNode : void 0)) { 1128 return; 1129 } 1130 return $el.parentNode.removeChild($el); 1131 }; 1132 1133 st.removeClass = function($el, name) { 1134 return $el.className = $el.className.replace(name, ''); 1135 }; 1136 1137 st.removeEventListener = function($el, event, callback) { 1138 if (!($el && event && callback)) { 1139 return; 1140 } 1141 if ($el.removeEventListener) { 1142 return $el.removeEventListener(event, callback, false); 1143 } else if ($el.detachEvent) { 1144 return $el.detachEvent("on" + event, callback); 1145 } else { 1146 return $el["on" + event] = null; 1147 } 1148 }; 1149 1150 st.send = function(resource, params, next) { 1151 var img; 1152 if (params) { 1153 resource = resource + "?" + (st.qs(params)); 1154 } 1155 img = new Image(1, 1); 1156 img.src = resource; 1157 img.onload = function() { 1158 return typeof next === "function" ? next(true) : void 0; 1159 }; 1160 return img.onerror = function() { 1161 return typeof next === "function" ? next(false) : void 0; 1162 }; 1163 }; 1164 1165 st.setCookie = function(name, value, days) { 1166 var date, expires; 1167 if (days) { 1168 date = new Date(); 1169 date.setTime(date.getTime() + (days * 24 * 60 * 60 * 1000)); 1170 expires = "; expires=" + (date.toGMTString()); 1171 } else { 1172 expires = ""; 1173 } 1174 return document.cookie = name + "=" + value + expires + "; path=/"; 1175 }; 1176 1177 st.share = function(config) { 1178 var channel_is_ssb, channels_displayed, copybutton, copymessage, count_url, description, hostname, image, is_android, is_ios, message, network, product, redirects, run, share_url, short_url, subject, title, url, username, wechat; 1179 if (config == null) { 1180 config = {}; 1181 } 1182 channel_is_ssb = config.channel_is_ssb, channels_displayed = config.channels_displayed, count_url = config.count_url, subject = config.subject, share_url = config.share_url, short_url = config.short_url, url = config.url, description = config.description, image = config.image, message = config.message, network = config.network, title = config.title, username = config.username; 1183 channel_is_ssb = false;
1184 if (channels_displayed == null) { 1185 channels_displayed = JSON.stringify([]); 1186 } 1187 count_url = count_url || url || st.href; 1188 if (description == null) { 1189 description = st.getDescription(); 1190 } 1191 if (image == null) { 1192 image = st.getImage(); 1193 } 1194 share_url = share_url || short_url || url || st.href; 1195 if (title == null) { 1196 title = st.getTitle(); 1197 } 1198 if (url == null) { 1199 url = count_url; 1200 } 1201 if (network === 'sharethis') { 1202 return st.load('share-all', { 1203 count_url: count_url, 1204 description: description, 1205 image: image, 1206 share_url: share_url, 1207 short_url: short_url, 1208 title: title, 1209 url: url, 1210 username: username 1211 }); 1212 } 1213 st.incLocalStorageShares(network, count_url); 1214 st.logGoogleAnalyticsEvent('ShareThis', network, count_url); 1215 st.log({ 1216 channel_is_ssb: channel_is_ssb, 1217 channels_displayed: channels_displayed, 1218 destinations: network, 1219 event: 'share', 1220 title: title, 1221 url: count_url 1222 }); 1223 st.emit('share', { 1224 count_url: count_url, 1225 description: description, 1226 image: image, 1227 message: message, 1228 share_url: share_url, 1229 title: title, 1230 url: url, 1231 username: username 1232 }); 1233 if (network === 'wechat') { 1234 if (st.mobile) { 1235 return st.load('share-wechat-mobile', { 1236 url: share_url 1237 }); 1238 } else { 1239 wechat = "https://api.qrserver.com/v1/create-qr-code/?" + st.qs({ 1240 size: "154x154", 1241 data: share_url 1242 }); 1243 st.open(wechat); 1244 } 1245 } 1246 if (network === 'print') { 1247 st.emit('print', { 1248 count_url: count_url, 1249 description: description, 1250 image: image, 1251 message: message, 1252 share_url: share_url, 1253 title: title, 1254 url: url, 1255 username: username 1256 }); 1257 return window.print(); 1258 } 1259 if (network === 'copy') { 1260 navigator.clipboard.writeText(window.location.href); 1261 copybutton = document.querySelector('div[data-network="copy"]'); 1262 if (copybutton) { 1263 copymessage = document.createElement('span'); 1264 copymessage.innerText = 'URL Copied!'; 1265 copymessage.className = 'copy-notify'; 1266 copymessage.style.opacity = '1'; 1267 copymessage.style.width = '100px'; 1268 copymessage.style.transition = 'all .6s'; 1269 copybutton.append(copymessage); 1270 run = function() { 1271 copymessage.style.opacity = '0'; 1272 copymessage.style.minWidth = '0'; 1273 copymessage.style.width = '0'; 1274 copymessage.style.padding = '0'; 1275 copymessage.style.overflow = 'hidden'; 1276 run = function() { 1277 return copymessage.remove(); 1278 }; 1279 return setTimeout(run, 1000); 1280 }; 1281 setTimeout(run, 1500); 1282 } 1283 } 1284 hostname = document.location.hostname; 1285 product = st.product; 1286 is_ios = /iPad|iPhone|iPod/.test(navigator.userAgent); 1287 is_android = /Android/i.test(navigator.userAgent); 1288 redirects = { 1289 blm: "https://secure.actblue.com/donate/ms_blm_homepage_2019", 1290 blogger: "https://www.blogger.com/blog-this.g?" + st.qs({ 1291 n: title, 1292 t: description, 1293 u: share_url 1294 }), 1295 bluesky: "https://bsky.app/intent/compose?" + st.qs({ 1296 text: title + ' url:' + share_url 1297 }), 1298 buffer: "https://buffer.com/add?" + st.qs({ 1299 text: title, 1300 url: share_url 1301 }), 1302 diaspora: "https://share.diasporafoundation.org/?" + st.qs({ 1303 title: title, 1304 url: share_url 1305 }), 1306 delicious: "https://del.icio.us/save?" + st.qs({ 1307 provider: 'sharethis', 1308 title: title, 1309 url: share_url, 1310 v: 5 1311 }), 1312 digg: "https://digg.com/submit?" + st.qs({ 1313 url: share_url 1314 }), 1315 diigo: "https://www.diigo.com/post?" + st.qs({ 1316 title: title, 1317 url: share_url 1318 }), 1319 douban: "http://www.douban.com/recommend/?" + st.qs({ 1320 title: title, 1321 url: share_url 1322 }), 1323 email: "mailto:?" + st.qs({
1324 subject: subject || "I'd like to share a link with you", 1325 body: message || ("" + url) 1326 }), 1327 evernote: "http://www.evernote.com/clip.action?" + st.qs({ 1328 title: title, 1329 url: share_url 1330 }), 1331 facebook: "https://www.facebook.com/sharer.php?" + st.qs({ 1332 t: title, 1333 u: share_url 1334 }), 1335 fark: "https://www.fark.com/submit?" + st.qs({ 1336 new_url: share_url 1337 }), 1338 flipboard: "https://share.flipboard.com/bookmarklet/popout?" + st.qs({ 1339 ext: 'sharethis', 1340 title: title, 1341 url: share_url, 1342 utm_campaign: 'widgets', 1343 utm_content: hostname, 1344 utm_source: 'sharethis', 1345 v: 2 1346 }), 1347 foursquare: 'https://foursquare.com/intent/venue/' + title, 1348 gab: "https://gab.com/compose?url=" + share_url, 1349 getpocket: "https://getpocket.com/edit?" + st.qs({ 1350 url: share_url 1351 }), 1352 gmail: "https://mail.google.com/mail/?view=cm&" + st.qs({ 1353 to: '', 1354 su: title, 1355 body: share_url, 1356 bcc: '', 1357 cc: '' 1358 }), 1359 goodreads: "https://www.goodreads.com/quotes?" + st.qs({ 1360 'quote[url]': share_url 1361 }), 1362 googlebookmarks: "https://www.google.com/bookmarks/mark?" + st.qs({ 1363 op: 'edit', 1364 bkmk: share_url, 1365 title: title, 1366 annotation: description 1367 }), 1368 hackernews: "https://news.ycombinator.com/submitlink?" + st.qs({ 1369 u: share_url, 1370 t: title 1371 }), 1372 houzz: "https://www.houzz.com/imageClipperUpload?" + st.qs({ 1373 link: share_url, 1374 source: 'link', 1375 hzid: '' 1376 }), 1377 instapaper: "http://www.instapaper.com/edit?" + st.qs({ 1378 url: share_url, 1379 title: title, 1380 description: description 1381 }), 1382 iorbix: "https://iorbix.com/m-share?" + st.qs({ 1383 url: share_url, 1384 title: title 1385 }), 1386 kakao: "https://story.kakao.com/share?" + st.qs({ 1387 url: share_url 1388 }), 1389 kindleit: "https://pushtokindle.fivefilters.org/send.php?" + st.qs({ 1390 url: share_url 1391 }), 1392 kooapp: "https://www.kooapp.com/create?" + st.qs({ 1393 title: title, 1394 link: share_url 1395 }), 1396 line: "https://lineit.line.me/share/ui?" + st.qs({ 1397 url: share_url, 1398 text: title || description 1399 }), 1400 linkedin: "https://www.linkedin.com/shareArticle?" + st.qs({ 1401 title: title, 1402 url: share_url 1403 }), 1404 livejournal: "https://www.livejournal.com/update.bml?" + st.qs({ 1405 event: share_url, 1406 subject: title 1407 }), 1408 mailru: "https://connect.mail.ru/share?" + st.qs({ 1409 share_url: share_url 1410 }), 1411 mailru: "https://connect.mail.ru/share?" + st.qs({ 1412 share_url: share_url 1413 }), 1414 meneame: "https://meneame.net/submit.php?" + st.qs({ 1415 url: share_url 1416 }), 1417 messenger: { 1418 "true": "fb-messenger://share/?" + st.qs({ 1419 link: share_url, 1420 app_id: 291494419107518 1421 }), 1422 "false": "https://www.facebook.com/dialog/send?" + st.qs({ 1423 link: share_url, 1424 app_id: 291494419107518, 1425 redirect_uri: "https://www.sharethis.com" 1426 }) 1427 }[st.mobile], 1428 microsoftteams: "https://teams.microsoft.com/l/entity/com.microsoft.teamspace.tab.url.share?" + st.qs({ 1429 webUrl: share_url, 1430 appName: title 1431 }), 1432 naver: "http://share.naver.com/web/shareView.nhn?" + st.qs({ 1433 url: share_url, 1434 title: title 1435 }), 1436 nextdoor: "https://nextdoor.com/sharekit/?" + st.qs({ 1437 source: share_url, 1438 body: title 1439 }), 1440 odnoklassniki: "https://connect.ok.ru/dk?" + st.qs({ 1441 'st.cmd': 'WidgetSharePreview', 1442 'st.shareUrl': share_url 1443 }), 1444 outlook: "https://outlook.live.com/mail/deeplink/compose?" + st.qs({ 1445 path: 'mail inbox', 1446 subject: subject || "I'd like to share a link with you", 1447 body: message || ("" + url) 1448 }), 1449 pinboard: "https://pinboard.in/add?" + st.qs({ 1450 url: share_url, 1451 title: title 1452 }), 1453 pinterest: "https://pinterest.com/pin/create/button/?" + st.qs({ 1454 description: title, 1455 media: image, 1456 url: share_url 1457 }), 1458 plurk: "http://www.plurk.com/?" + st.qs({ 1459 qualifier: 'shares', 1460 status: share_url 1461 }), 1462 qzone: "http://sns.qzone.qq.com/cgi-bin/qzshare/cgi_qzshare_onekey?" + st.qs({ 1463 url: share_url 1464 }), 1465 reddit: "https://reddit.com/submit?" + st.qs({ 1466 title: title, 1467 url: share_url 1468 }), 1469 refind: "https://refind.com?" + st.qs({ 1470 url: share_url 1471 }), 1472 renren: "http://widget.renren.com/dialog/share?" + st.qs({ 1473 resourceUrl: share_url, 1474 srcUrl: share_url, 1475 title: title, 1476 description: description || title 1477 }), 1478 skype: "https://web.skype.com/share?" + st.qs({ 1479 url: share_url, 1480 text: title 1481 }), 1482 sms: "sms:" + (is_ios ? '&' : '?') + "body=" + (encodeURIComponent(share_url)), 1483 snapchat: "https://snapchat.com/scan?" + st.qs({ 1484 attachmentUrl: share_url, 1485 utm_source: 'sharethis' 1486 }), 1487 surfingbird: "http://surfingbird.ru/share?" + st.qs({ 1488 url: share_url, 1489 description: description || title, 1490 title: title 1491 }), 1492 telegram: "https://t.me/share/url?" + st.qs({ 1493 url: share_url, 1494 text: title, 1495 to: '' 1496 }), 1497 tencentqq: "https://sns.qzone.qq.com/cgi-bin/qzshare/cgi_qzshare_onekey?" + st.qs({ 1498 url: share_url, 1499 title: title, 1500 summary: share_url, 1501 desc: description, 1502 pics: image 1503 }), 1504 threads: "https://threads.net/intent/post?" + st.qs({ 1505 text: share_url 1506 }), 1507 threema: "threema://compose?" + st.qs({ 1508 text: share_url, 1509 id: '' 1510 }), 1511 trello: "https://trello.com/add-card?" + st.qs({ 1512 mode: 'popup', 1513 url: share_url, 1514 desc: description || title 1515 }), 1516 tumblr: "https://www.tumblr.com/share?" + st.qs({ 1517 t: title, 1518 u: share_url, 1519 v: 3 1520 }), 1521 twitter: "https://twitter.com/intent/tweet?" + st.qs({ 1522 text: title || description, 1523 url: share_url, 1524 via: username 1525 }), 1526 vk: "https://vk.com/share.php?" + st.qs({ 1527 url: share_url 1528 }), 1529 viber: "viber://forward?" + st.qs({ 1530 text: share_url, 1531 url: 'viber' 1532 }), 1533 weibo: "http://service.weibo.com/share/share.php?" + st.qs({ 1534 title: title, 1535 url: share_url, 1536 pic: image 1537 }),
1538 whatsapp: (!st.mobile ? "https://web.whatsapp.com/send?" : "whatsapp://send?") + st.qs({ 1539 text: share_url 1540 }), 1541 wordpress: "http://wordpress.com/wp-admin/press-this.php?" + st.qs({ 1542 u: share_url, 1543 t: title, 1544 s: description || title, 1545 i: '' 1546 }), 1547 yahoomail: "http://compose.mail.yahoo.com/?" + st.qs({ 1548 to: '', 1549 subject: title, 1550 body: share_url 1551 }), 1552 yummly: "https://www.yummly.com/urb/verify?" + st.qs({ 1553 url: share_url, 1554 title: title, 1555 urbtype: 'bookmarklet', 1556 type: 'agg', 1557 vendor: 'sharethis', 1558 image: image 1559 }), 1560 xing: "https://www.xing.com/app/user?" + st.qs({ 1561 op: 'share', 1562 title: title, 1563 url: share_url 1564 }) 1565 }; 1566 return st.open(redirects[network]); 1567 }; 1568 1569 st.follow = (function(_this) { 1570 return function(config) { 1571 var follow_url, network, url; 1572 if (config == null) { 1573 config = {}; 1574 } 1575 follow_url = config.follow_url, network = config.network, url = config.url; 1576 if (url == null) { 1577 url = st.href; 1578 } 1579 st.log({ 1580 destinations: network, 1581 event: 'follow', 1582 followUrl: follow_url, 1583 url: url 1584 }); 1585 return window.open(follow_url, '_blank'); 1586 }; 1587 })(this); 1588 1589 st.storage = { 1590 get: function(key) { 1591 if (st.hasLocalStorage) { 1592 try { 1593 return JSON.parse(localStorage.getItem(key)); 1594 } catch (error1) {} 1595 } 1596 if (st.hasCookies) { 1597 return st.getCookie(key); 1598 } 1599 return st.get(key); 1600 }, 1601 set: function(key, value) { 1602 if (st.hasLocalStorage) { 1603 return localStorage.setItem(key, JSON.stringify(value)); 1604 } 1605 if (st.hasCookies) { 1606 return st.setCookie(key, value); 1607 } 1608 return st.set(key, value); 1609 } 1610 }; 1611 1612 st.svg = function(paths, size) { 1613 var d; 1614 if (size == null) { 1615 size = 40; 1616 } 1617 if (typeof paths === 'string') { 1618 paths = [paths]; 1619 } 1620 return "<svg fill=\"#fff\" preserveAspectRatio=\"xMidYMid meet\" height=\"1em\" width=\"1em\" viewBox=\"0 0 " + size + " " + size + "\">\n <g>\n " + (((function() { 1621 var i, len, results; 1622 results = []; 1623 for (i = 0, len = paths.length; i < len; i++) { 1624 d = paths[i]; 1625 results.push("<path d='" + d + "'></path>"); 1626 } 1627 return results; 1628 })()).join('')) + "\n </g>\n</svg>"; 1629 }; 1630 1631 st.toggleClass = function($el, name) { 1632 if (st.hasClass($el, name)) { 1633 return st.removeClass($el, name); 1634 } else { 1635 return st.addClass($el, name); 1636 } 1637 }; 1638 1639 st.filterInvalidNetworks = function(networks, valid) { 1640 var n; 1641 if (valid == null) { 1642 valid = st.networks; 1643 } 1644 return (function() { 1645 var i, len, results; 1646 results = []; 1647 for (i = 0, len = networks.length; i < len; i++) { 1648 n = networks[i]; 1649 if (valid.indexOf(n) !== -1) { 1650 results.push(n); 1651 } 1652 } 1653 return results; 1654 })(); 1655 }; 1656 1657 st.tcfapi_listener = (function() { 1658 var interval, start; 1659 start = Date.now(); 1660 return interval = setInterval((function() { 1661 var e; 1662 if (window.__tcfapi) { 1663 try { 1664 window.__tcfapi("addEventListener", 2, function(data) { 1665 if ((data != null ? data.eventStatus : void 0) === "useractioncomplete") { 1666 st.gdpr_consent = data.tcString; 1667 st.gdpr_domain = data.isServiceSpecific ? document.location.hostname : ".sharethis.com"; 1668 st.gdpr_method = "api"; 1669 return st.log({ 1670 event: "updated_consent", 1671 pview_had_consent: st.pview_had_consent 1672 }); 1673 } 1674 }); 1675 } catch (error1) { 1676 e = error1; 1677 } 1678 clearInterval(interval); 1679 } 1680 if (Date.now() - start > 10000) { 1681 return clearInterval(interval); 1682 } 1683 }), 1000); 1684 })(); 1685 1686 st.floc = function() { 1687 var error; 1688 try { 1689 if (document.interestCohort) { 1690 return document.interestCohort().then(function(cohort) { 1691 if (cohort) { 1692 return st.log({ 1693 event: 'floc', 1694 floc: JSON.stringify(cohort) 1695 }); 1696 } 1697 }); 1698 } 1699 } catch (error1) { 1700 error = error1; 1701 } 1702 }; 1703 1704 1705 /* 1706 * Add Listeners 1707 */ 1708 1709 st.addEventListener(document, "click", st.obl); 1710 1711}).call(this); 1712 1713(function(){ 1714 st = window.__sharethis__ 1715 1716 st.CustomColor = class CustomColor {
1717 constructor(r, g, b) { 1718 this.set(r, g, b); 1719 } 1720 1721 toString() { 1722 return `rgb(${Math.round(this.r)}, ${Math.round(this.g)}, ${Math.round(this.b)})`; 1723 } 1724 1725 set(r, g, b) { 1726 this.r = this.clamp(r); 1727 this.g = this.clamp(g); 1728 this.b = this.clamp(b); 1729 } 1730 1731 hueRotate(angle = 0) { 1732 angle = angle / 180 * Math.PI; 1733 const sin = Math.sin(angle); 1734 const cos = Math.cos(angle); 1735 1736 this.multiply([ 1737 0.213 + cos * 0.787 - sin * 0.213, 1738 0.715 - cos * 0.715 - sin * 0.715, 1739 0.072 - cos * 0.072 + sin * 0.928, 1740 0.213 - cos * 0.213 + sin * 0.143, 1741 0.715 + cos * 0.285 + sin * 0.140, 1742 0.072 - cos * 0.072 - sin * 0.283, 1743 0.213 - cos * 0.213 - sin * 0.787, 1744 0.715 - cos * 0.715 + sin * 0.715, 1745 0.072 + cos * 0.928 + sin * 0.072, 1746 ]); 1747 } 1748 1749 grayscale(value = 1) { 1750 this.multiply([ 1751 0.2126 + 0.7874 * (1 - value), 1752 0.7152 - 0.7152 * (1 - value), 1753 0.0722 - 0.0722 * (1 - value), 1754 0.2126 - 0.2126 * (1 - value), 1755 0.7152 + 0.2848 * (1 - value), 1756 0.0722 - 0.0722 * (1 - value), 1757 0.2126 - 0.2126 * (1 - value), 1758 0.7152 - 0.7152 * (1 - value), 1759 0.0722 + 0.9278 * (1 - value), 1760 ]); 1761 } 1762 1763 sepia(value = 1) { 1764 this.multiply([ 1765 0.393 + 0.607 * (1 - value), 1766 0.769 - 0.769 * (1 - value), 1767 0.189 - 0.189 * (1 - value), 1768 0.349 - 0.349 * (1 - value), 1769 0.686 + 0.314 * (1 - value), 1770 0.168 - 0.168 * (1 - value), 1771 0.272 - 0.272 * (1 - value), 1772 0.534 - 0.534 * (1 - value), 1773 0.131 + 0.869 * (1 - value), 1774 ]); 1775 } 1776 1777 saturate(value = 1) { 1778 this.multiply([ 1779 0.213 + 0.787 * value, 1780 0.715 - 0.715 * value, 1781 0.072 - 0.072 * value, 1782 0.213 - 0.213 * value, 1783 0.715 + 0.285 * value, 1784 0.072 - 0.072 * value, 1785 0.213 - 0.213 * value, 1786 0.715 - 0.715 * value, 1787 0.072 + 0.928 * value, 1788 ]); 1789 } 1790 1791 multiply(matrix) { 1792 const newR = this.clamp(this.r * matrix[0] + this.g * matrix[1] + this.b * matrix[2]); 1793 const newG = this.clamp(this.r * matrix[3] + this.g * matrix[4] + this.b * matrix[5]); 1794 const newB = this.clamp(this.r * matrix[6] + this.g * matrix[7] + this.b * matrix[8]); 1795 this.r = newR; 1796 this.g = newG; 1797 this.b = newB; 1798 } 1799 1800 brightness(value = 1) { 1801 this.linear(value); 1802 } 1803 contrast(value = 1) { 1804 this.linear(value, -(0.5 * value) + 0.5); 1805 } 1806 1807 linear(slope = 1, intercept = 0) { 1808 this.r = this.clamp(this.r * slope + intercept * 255); 1809 this.g = this.clamp(this.g * slope + intercept * 255); 1810 this.b = this.clamp(this.b * slope + intercept * 255); 1811 } 1812 1813 invert(value = 1) { 1814 this.r = this.clamp((value + this.r / 255 * (1 - 2 * value)) * 255); 1815 this.g = this.clamp((value + this.g / 255 * (1 - 2 * value)) * 255); 1816 this.b = this.clamp((value + this.b / 255 * (1 - 2 * value)) * 255); 1817 } 1818 1819 hsl() { 1820 // Code taken from https://stackoverflow.com/a/9493060/2688027, licensed under CC BY-SA. 1821 const r = this.r / 255; 1822 const g = this.g / 255; 1823 const b = this.b / 255; 1824 const max = Math.max(r, g, b); 1825 const min = Math.min(r, g, b); 1826 let h, s, l = (max + min) / 2; 1827 1828 if (max === min) { 1829 h = s = 0; 1830 } else { 1831 const d = max - min; 1832 s = l > 0.5 ? d / (2 - max - min) : d / (max + min); 1833 switch (max) { 1834 case r: 1835 h = (g - b) / d + (g < b ? 6 : 0); 1836 break; 1837 1838 case g: 1839 h = (b - r) / d + 2; 1840 break; 1841 1842 case b: 1843 h = (r - g) / d + 4; 1844 break; 1845 } 1846 h /= 6; 1847 } 1848 1849 return { 1850 h: h * 100, 1851 s: s * 100, 1852 l: l * 100, 1853 }; 1854 } 1855 1856 clamp(value) { 1857 if (value > 255) { 1858 value = 255; 1859 } else if (value < 0) { 1860 value = 0; 1861 } 1862 return value; 1863 } 1864 } 1865 1866 st.Solver = class Solver { 1867 constructor(target, baseColor) { 1868 this.target = target; 1869 this.targetHSL = target.hsl(); 1870 this.reusedColor = new st.CustomColor(0, 0, 0); 1871 } 1872 1873 solve() { 1874 const result = this.solveNarrow(this.solveWide()); 1875 return { 1876 values: result.values, 1877 loss: result.loss, 1878 filter: this.css(result.values), 1879 }; 1880 } 1881 1882 solveWide() { 1883 const A = 5; 1884 const c = 15; 1885 const a = [60, 180, 18000, 600, 1.2, 1.2]; 1886 1887 let best = { loss: Infinity }; 1888 for (let i = 0; best.loss > 25 && i < 3; i++) { 1889 const initial = [50, 20, 3750, 50, 100, 100]; 1890 const result = this.spsa(A, a, c, initial, 1000); 1891 if (result.loss < best.loss) { 1892 best = result; 1893 } 1894 } 1895 return best; 1896 } 1897 1898 solveNarrow(wide) { 1899 const A = wide.loss; 1900 const c = 2; 1901 const A1 = A + 1; 1902 const a = [0.25 * A1, 0.25 * A1, A1, 0.25 * A1, 0.2 * A1, 0.2 * A1]; 1903 return this.spsa(A, a, c, wide.values, 500); 1904 } 1905 1906 spsa(A, a, c, values, iters) {
1907 const alpha = 1; 1908 const gamma = 0.16666666666666666; 1909 1910 let best = null; 1911 let bestLoss = Infinity; 1912 const deltas = new Array(6); 1913 const highArgs = new Array(6); 1914 const lowArgs = new Array(6); 1915 1916 for (let k = 0; k < iters; k++) { 1917 const ck = c / Math.pow(k + 1, gamma); 1918 for (let i = 0; i < 6; i++) { 1919 deltas[i] = Math.random() > 0.5 ? 1 : -1; 1920 highArgs[i] = values[i] + ck * deltas[i]; 1921 lowArgs[i] = values[i] - ck * deltas[i]; 1922 } 1923 1924 const lossDiff = this.loss(highArgs) - this.loss(lowArgs); 1925 for (let i = 0; i < 6; i++) { 1926 const g = lossDiff / (2 * ck) * deltas[i]; 1927 const ak = a[i] / Math.pow(A + k + 1, alpha); 1928 values[i] = fix(values[i] - ak * g, i); 1929 } 1930 1931 const loss = this.loss(values); 1932 if (loss < bestLoss) { 1933 best = values.slice(0); 1934 bestLoss = loss; 1935 } 1936 } 1937 return { values: best, loss: bestLoss }; 1938 1939 function fix(value, idx) { 1940 let max = 100; 1941 if (idx === 2 /* saturate */) { 1942 max = 7500; 1943 } else if (idx === 4 /* brightness */ || idx === 5 /* contrast */) { 1944 max = 200; 1945 } 1946 1947 if (idx === 3 /* hue-rotate */) { 1948 if (value > max) { 1949 value %= max; 1950 } else if (value < 0) { 1951 value = max + value % max; 1952 } 1953 } else if (value < 0) { 1954 value = 0; 1955 } else if (value > max) { 1956 value = max; 1957 } 1958 return value; 1959 } 1960 } 1961 1962 loss(filters) { 1963 // Argument is array of percentages. 1964 const color = this.reusedColor; 1965 color.set(0, 0, 0); 1966 1967 color.invert(filters[0] / 100); 1968 color.sepia(filters[1] / 100); 1969 color.saturate(filters[2] / 100); 1970 color.hueRotate(filters[3] * 3.6); 1971 color.brightness(filters[4] / 100); 1972 color.contrast(filters[5] / 100); 1973 1974 const colorHSL = color.hsl(); 1975 return ( 1976 Math.abs(color.r - this.target.r) + 1977 Math.abs(color.g - this.target.g) + 1978 Math.abs(color.b - this.target.b) + 1979 Math.abs(colorHSL.h - this.targetHSL.h) + 1980 Math.abs(colorHSL.s - this.targetHSL.s) + 1981 Math.abs(colorHSL.l - this.targetHSL.l) 1982 ); 1983 } 1984 1985 css(filters) { 1986 function fmt(idx, multiplier = 1) { 1987 if (idx == 0) { 1988 return Math.round(100 - (filters[idx] * multiplier)) 1989 } 1990 return Math.round(filters[idx] * multiplier); 1991 } 1992 return `filter: invert(${fmt(0)}%) sepia(${fmt(1)}%) saturate(${fmt(2)}%) hue-rotate(${fmt(3, 3.6)}deg) brightness(${fmt(4)}%) contrast(${fmt(5)}%);`; 1993 } 1994 } 1995 1996})(); 1997 1998(function() { 1999 var st; 2000 2001 st = window.__sharethis__; 2002 2003 st.hexToRgb = function(hex) { 2004 var result, shorthandRegex; 2005 if (!hex) { 2006 return; 2007 } 2008 if (typeof hex !== 'string') { 2009 return 'Wrong type input'; 2010 } 2011 shorthandRegex = /^#?([a-f\d])([a-f\d])([a-f\d])$/i; 2012 hex = hex.replace(shorthandRegex, (function(_this) { 2013 return function(m, r, g, b) { 2014 return r + r + g + g + b + b; 2015 }; 2016 })(this)); 2017 result = /^#?([a-f\d]{2})([a-f\d]{2})([a-f\d]{2})$/i.exec(hex); 2018 if (result) { 2019 return [parseInt(result[1], 16), parseInt(result[2], 16), parseInt(result[3], 16)]; 2020 } 2021 }; 2022 2023 st.getFilter = function(rgb_hex) { 2024 var color, result, rgb, solver; 2025 rgb = st.hexToRgb(rgb_hex); 2026 if (!rgb) { 2027 return 'Invalid hex'; 2028 } 2029 if (rgb.length !== 3) { 2030 return 'Invalid hex format!'; 2031 } 2032 color = new st.CustomColor(rgb[0], rgb[1], rgb[2]); 2033 solver = new st.Solver(color); 2034 result = solver.solve(); 2035 return result.filter.split(': ')[1]; 2036 }; 2037 2038}).call(this); 2039 2040(function(a,b){window.__sharethis__.mobile = /(android|bb\d+|meego).+mobile|avantgo|bada\/|blackberry|blazer|compal|elaine|fennec|hiptop|iemobile|ip(hone|od)|iris|kindle|lge |maemo|midp|mmp|mobile.+firefox|netfront|opera m(ob|in)i|palm( os)?|phone|p(ixi|re)\/|plucker|pocket|psp|series(4|6)0|symbian|treo|up\.(browser|link)|vodafone|wap|windows ce|xda|xiino/i.test(a)||/1207|6310|6590|3gso|4thp|50[1-6]i|770s|802s|a wa|abac|ac(er|oo|s\-)|ai(ko|rn)|al(av|ca|co)|amoi|an(ex|ny|yw)|aptu|ar(ch|go)|as(te|us)|attw|au(di|\-m|r |s )|avan|be(ck|ll|nq)|bi(lb|rd)|bl(ac|az)|br(e|v)w|bumb|bw\-(n|u)|c55\/|capi|ccwa|cdm\-|cell|chtm|cldc|cmd\-|co(mp|nd)|craw|da(it|ll|ng)|dbte|dc\-s|devi|dica|dmob|do(c|p)o|ds(12|\-d)|el(49|ai)|em(l2|ul)|er(ic|k0)|esl8|ez([4-7]0|os|wa|ze)|fetc|fly(\-|_)|g1 u|g560|gene|gf\-5|g\-mo|go(\.w|od)|gr(ad|un)|haie|hcit|hd\-(m|p|t)|hei\-|hi(pt|ta)|hp( i|ip)|hs\-c|ht(c(\-| |_|a|g|p|s|t)|tp)|hu(aw|tc)|i\-(20|go|ma)|i230|iac( |\-|\/)|ibro|idea|ig01|ikom|im1k|inno|ipaq|iris|ja(t|v)a|jbro|jemu|jigs|kddi|keji|kgt( |\/)|klon|kpt |kwc\-|kyo(c|k)|le(no|xi)|lg( g|\/(k|l|u)|50|54|\-[a-w])|libw|lynx|m1\-w|m3ga|m50\/|ma(te|ui|xo)|mc(01|21|ca)|m\-cr|me(rc|ri)|mi(o8|oa|ts)|mmef|mo(01|02|bi|de|do|t(\-| |o|v)|zz)|mt(50|p1|v )|mwbp|mywa|n10[0-2]|n20[2-3]|n30(0|2)|n50(0|2|5)|n7(0(0|1)|10)|ne((c|m)\-|on|tf|wf|wg|wt)|nok(6|i)|nzph|o2im|op(ti|wv)|oran|owg1|p800|pan(a|d|t)|pdxg|pg(13|\-([1-8]|c))|phil|pire|pl(ay|uc)|pn\-2|po(ck|rt|se)|prox|psio|pt\-g|qa\-a|qc(07|12|21|32|60|\-[2-7]|i\-)|qtek|r380|r600|raks|rim9|ro(ve|zo)|s55\/|sa(ge|ma|mm|ms|ny|va)|sc(01|h\-|oo|p\-)|sdk\/|se(c(\-|0|1)|47|mc|nd|ri)|sgh\-|shar|sie(\-|m)|sk\-0|sl(45|id)|sm(al|ar|b3|it|t5)|so(ft|ny)|sp(01|h\-|v\-|v )|
2040sy(01|mb)|t2(18|50)|t6(00|10|18)|ta(gt|lk)|tcl\-|tdg\-|tel(i|m)|tim\-|t\-mo|to(pl|sh)|ts(70|m\-|m3|m5)|tx\-9|up(\.b|g1|si)|utst|v400|v750|veri|vi(rg|te)|vk(40|5[0-3]|\-v)|vm40|voda|vulc|vx(52|53|60|61|70|80|81|83|85|98)|w3c(\-| )|webc|whit|wi(g |nc|nw)|wmlb|wonu|x700|yas\-|your|zeto|zte\-/i.test(a.substr(0,4))})(navigator.userAgent||navigator.vendor||window.opera); 2041 2042(function(){ 2043 window.__sharethis__.is_ie = /(MSIE|Trident|Edge)/i.test(navigator.userAgent); 2044 window.__sharethis__.is_ie8 = /MSIE 8/i.test(navigator.userAgent); 2045})(); 2046 2047/** 2048 * none: https://goop.com/wellness/ 2049 * anchor.fm: https://www.podcastinsights.com/podcast-embed-players/ 2050 * consensu.org: 2051 * embed.ly: https://embed.ly/code?url=http%3A%2F%2Fgoogle.com 2052 * gfycat: https://developers.gfycat.com/iframe/#gfycat-iframe 2053 * giphy: https://giphy.com/posts/how-to-embed-giphy-gifs-on-your-website 2054 * imgur: https://help.imgur.com/hc/en-us/articles/211273743-Embed-Unit 2055 * instagram: https://www.bbc.com/news/uk-wales-51311320 2056 * megaphone: https://www.podcastinsights.com/podcast-embed-players/ 2057 * reddit: https://redditblog.com/2017/06/14/why-publishers-should-use-reddit-embeds/ 2058 * redditmedia: https://redditblog.com/2017/06/14/why-publishers-should-use-reddit-embeds/ 2059 * soundcloud: https://en.support.wordpress.com/soundcloud-audio-player/ 2060 * spotify: https://www.usmagazine.com/entertainment/news/kim-kardashian-north-asks-if-she-can-visit-prisons-with-me/ 2061 * tiktok: https://jezebel.com/15-tiktoks-that-deserve-academy-awards-1838371668 2062 * twitch: https://www.dexerto.com/entertainment/top-10-most-viewed-twitch-clips-of-all-time-2-310900 2063 * twitter: https://time.com/4128887/kobe-bryant-retirement-celebrities-reaction/ 2064 * vimeo: https://vimeo.zendesk.com/hc/en-us/articles/224969968-Embedding-videos-overview 2065 * youtube: https://electricbikereview.com/gocycle/gs/ 2066 */ 2067 2068/** 2069 * anchor.fm 2070 * tags: iframe 2071 * format: anchor.fm/{content}/embed 2072 * suggestions: add requirement for iframe 2073 */ 2074 2075/** 2076 * facebook.com 2077 * tags: iframe 2078 * format: facebook.com/plugins/{plugin_type} 2079 * exclude: /plugins/like, /plugins/page, /plugins/comment, /plugins/group, /plugins/follow, /plugins/customerchat, /plugins/messenger_checkbox, /plugins/send_to_messenger 2080 * require: /plugins/post, /plugins/video, /plugins/share_button 2081 * even though rhombus collects plugins/share_button i'm not sold we should, doesn't seem to embed to any outside content 2082 * suggestions: add requirement for iframe and update exclude/require statements 2083 */ 2084 2085/** 2086 * gfycat.com 2087 * tags: iframe 2088 * format: gfycat.com/ifr 2089 * suggestions: add requirement for iframe 2090 */ 2091 2092/** 2093 * giphy.com 2094 * tags: iframe 2095 * format: giphy.com/embed 2096 * questions: what happens when we remove the requirement for /embed and introduce a requirement for iframe? 2097 * suggestions: add requirement for iframe 2098 */ 2099 2100/** 2101 * imgur.com 2102 * tags: iframe 2103 * format: imgur.com/{hash}/embed 2104 * suggestions: add requirement for iframe 2105 */ 2106 2107/** 2108 * instagram.com 2109 * tags: iframe, blockquote 2110 * format: www.instagram.com/p 2111 * questions: what happens when we remove the requirement for /p and introduce a requirement for iframe and blockquote? 2112 * suggestions: add requirement for either iframe or blockquote 2113 */ 2114 2115/** 2116 * megaphone.fm 2117 * tags: iframe 2118 * format: player.megaphone.fm 2119 * questions: what happens when we remove the requirement for player and introduce a requirement for iframe? 2120 * suggestions: add requirement for iframe 2121 */ 2122 2123/** 2124 * redditmedia.com 2125 * it's difficult to find any records with redditmedia.com embeds 2126 * we may want to remove the requirment for /r and also look for reddit.com 2127 * suggestions: add requirement for iframe, remove requirement for /r 2128 */ 2129 2130/** 2131 * soundcloud.com 2132 * tags: iframe 2133 * format: w.soundcloud.com/player 2134 * questions: whats happens when we remove the requirement for /player and introduce a requirement for iframe? 2135 * suggestions: add requirement for iframe 2136 */ 2137 2138/** 2139 * spotify.com 2140 * tags: iframe 2141 * format: open.spotify.com/{endpoint} 2142 * exlude: /follow 2143 * require: /embed 2144 * suggestions: add requirement for iframe and update exclude/require statements 2145 */ 2146 2147/** 2148 * tiktok.com 2149 * tags: iframe 2150 * format: tiktok.com/embed/ 2151 * questions: what happens when we remove the requirement for /embed and introduce a requirement for iframe? 2152 * suggestions: add requirement for iframe 2153 */ 2154 2155/** 2156 * twitch.tv 2157 * tags: iframe 2158 * format: clips.twitch.tv/embed 2159 * questions: what happens when we remove the requirement for clips and introduce a requirement for iframe? 2160 * suggestions: add requirement for iframe 2161 */ 2162 2163/** 2164 * twitter.com 2165 * tags: div, blockquote 2166 * format: twitter.com/{user}/status 2167 * questions: this one is difficult because twitter doesn't use iframes (at least in the data we collected) 2168 * questions: it looks like for every embed we pull identical srcs from a div and blockquote 2169 * questions: we probably only need to pull just div 2170 * questions: what happens when we remove the /status requirement? 2171 * suggestions: add requirement for div 2172 */ 2173 2174/** 2175 * vimeo.com 2176 * tags: iframe 2177 * format: player.vimeo.com/video 2178 * questions: what happens when we remove the player requirement and introduce a requirement for iframe? 2179 * suggestions: add requirement for iframe 2180 */ 2181 2182/** 2183 * youtube.com 2184 * tags: iframe 2185 * format: youtube.com/embed 2186 * questions: what happens when we remove the requirement for /embed and introduce a requirement for iframe? 2187 * suggestions: add requirement for iframe 2188 */ 2189 2190// service list 2191var st = window.__sharethis__ || {}; 2192st.getEmbeds = function (next) { 2193 2194 var selectors = [ 2195 '.embed-twitter', 2196 '.embedly-card', 2197 '.fb-post', 2198 '.fb-video', 2199 '.instagram-media', 2200 '.reddit', 2201 '.reddit-card', 2202 '.rm-shortcode', 2203 '.spotify', 2204 '.tumblr-embed', 2205 '.twitter-embed', 2206 '.twitter-follow', 2207 '.twitter-tweet', 2208 '.twitter-video', 2209 '.twitter-widget', 2210 'embed', 2211 'iframe', 2212 '[class^="PIN"]' 2213 ]; 2214 2215 var config = [ 2216 { type: "audio", url: "anchor.fm" }, 2217 { type: "audio", url: "open.spotify.com/embed" }, 2218 { type: "audio", url: "player.megaphone.fm" }, 2219 { type: "audio", url: "playlist.megaphone.fm" }, 2220 { type: "audio", url: "w.soundcloud.com" }, 2221 { type: "image", url: "gfycat.com" }, 2222 { type: "image", url: "giphy.com/embed" }, 2223 { type: "image", url: "imgur.com" }, 2224 { type: "image", url: /(pinterest.com\/pin\/\d+\/)(?!.\S)/, span: true }, 2225 { type: "post", url: "facebook.com/plugins/post" }, 2226 { type: "post", url: "instagram.com/p", blockquote: true }, 2227 { type: "post", url: "linkedin.com/embed" }, 2228 { type: "post", url: "embed.tumblr.com/embed/post" }, 2229 { type: "post", url: /twitter.com\/.*\/status\/[0-9]+$/, blockquote: true }, 2230 { type: "video", url: /facebook.com\/.[^\/]*\/plugins\/video/ }, 2231 { type: "video", url: "facebook.com/plugins/video" }, 2232 { type: "video", url: /tiktok.com\/.[^\/]*\/video/, blockquote: true }, 2233 { type: "video", url: "player.vimeo.com" }, 2234 { type: "video", url: "youtube.com/embed" }, 2235 { type: "video", url: "clips.twitch.tv" }, 2236 { type: "video", url: "player.twitch.tv" } 2237 ]; 2238 2239 var sources = [ 2240 'cite', 2241 'data-click-to-open-target', 2242 'data-href', 2243 'data-instgrm-permalink', 2244 'data-lazy-src', 2245 'data-permalink', 2246 'data-pin-href', 2247 'data-src', 2248 'data-src-2x', 2249 'href', 2250 'src' 2251 ]; 2252 2253 // returns false if element is not an embed 2254 function getEmbedRule(tag, url) { 2255 // ensure the url has a proper prefix 2256 if (url.indexOf('http') != 0 && url.indexOf('//') != 0) { 2257 return false;
2258 } 2259 for (var i in config) { 2260 var rule = config[i]; 2261 var match = url.match(rule.url); 2262 if (match && match.length) { 2263 if (tag == 'iframe' || rule[tag]) { 2264 return rule; 2265 } 2266 return false; 2267 } 2268 } 2269 return false; 2270 } 2271 2272 // find elements 2273 var embeds = {}; 2274 var embed_els = document.querySelectorAll(selectors.join(',')); 2275 for (var i = 0; i < embed_els.length; i++) { 2276 var embed_el = embed_els[i]; 2277 try { 2278 var container = embed_el.shadowRoot || embed_el.parentElement; 2279 // find a valid url 2280 for (var j = 0; j < sources.length; j++) { 2281 var source = sources[j]; 2282 var source_els = container.querySelectorAll("[" + source + "]"); 2283 for (var k = 0; k < source_els.length; k++) { 2284 var source_el = source_els[k]; 2285 var tag = source_el.tagName.toLowerCase(); 2286 if (tag == 'iframe' || tag == 'blockquote' || tag == 'span') { 2287 var url = source_el.getAttribute(source); 2288 var rule = getEmbedRule(tag, url); 2289 if (rule) { 2290 if (url[url.length - 1] == '/') { 2291 url = url.substring(0, url.length - 1); 2292 } 2293 embeds[url] = { el: source_el, type: rule.type }; 2294 } 2295 } 2296 } 2297 } 2298 } 2299 catch (err) { 2300 } 2301 } 2302 2303 // gather output 2304 var result = []; 2305 for (var url in embeds) { 2306 if (next) { 2307 next(embeds[url].el, embeds[url].type, url); 2308 } 2309 result.push(url); 2310 } 2311 2312 return result; 2313} 2314st.embeds = st.getEmbeds(); 2315 2316(function() { 2317 window.__sharethis__.COLORS = { 2318 airbnb: '#FF5A5F', 2319 amazon: '#FFB300', 2320 bandcamp: '#1ca0c3', 2321 behance: '#135bf3', 2322 bitbucket: '#2584ff', 2323 blogger: '#ff8000', 2324 blm: '#000000', 2325 bluesky: '#097AFE', 2326 buffer: '#323B43', 2327 copy: '#14682B', 2328 delicious: '#205cc0', 2329 deviantart: '#21ce4e', 2330 diaspora: '#000000', 2331 discord: "#8c9eff", 2332 digg: '#262626', 2333 diigo: '#5285c4', 2334 douban: '#2E963D', 2335 dribbble: '#e44786', 2336 email: '#7d7d7d', 2337 evernote: '#5BA525', 2338 etsy: '#E67E22', 2339 facebook: '#4267B2', 2340 fark: '#6a6a9c', 2341 flickr: '#ff0084', 2342 flipboard: '#e12828', 2343 foursquare: '#0732A2', 2344 gab: '#1acf79', 2345 getpocket: '#ef4056', 2346 gitlab: '#ff492c', 2347 gmail: '#D44638', 2348 goodreads: '#382110', 2349 googlebookmarks: '#4285F4', 2350 googlemaps: '#4185f3', 2351 github: '#333333', 2352 hackernews: '#ff4000', 2353 houzz: '#4DBC15', 2354 instagram: '#bc2a8d', 2355 instapaper: '#000000', 2356 iorbix: '#364447', 2357 kakao: '#F9DD4A', 2358 kindleit: '#363C3D', 2359 kooapp: '#FACD00', 2360 line: '#00c300', 2361 linkedin: '#0077b5', 2362 livejournal: '#00b0ea', 2363 mailru: '#168de2', 2364 medium: '#333333', 2365 meetup: '#e61b3e', 2366 meneame: '#ff6400', 2367 messenger: '#448AFF', 2368 microsoftteams: '#515bc1', 2369 mix: '#ff8226', 2370 naver: '#07bc5e', 2371 nextdoor: '#8ed500', 2372 odnoklassniki: '#d7772d', 2373 outlook: '#3070CB', 2374 patreon: '#F96854', 2375 pinboard: '#1f36f2', 2376 pinterest: '#CB2027', 2377 plurk: '#FF574D', 2378 print: '#222222', 2379 qzone: '#F1C40F', 2380 quora: '#a62100', 2381 refind: '#4286f4', 2382 reddit: '#ff4500', 2383 renren: '#005baa', 2384 sharethis: '#95D03A', 2385 shares: '#0eb2b2', 2386 skype: '#00aff0', 2387 sms: '#ffbd00', 2388 snapchat: '#fffc00', 2389 slideshare: '#057eb0', 2390 soundcloud: '#ff8800', 2391 spotify: '#1ED760', 2392 stackoverflow: '#c66516', 2393 surfingbird: '#6dd3ff', 2394 telegram: '#0088cc', 2395 tencentqq: '#5790F7', 2396 threads: '#000000', 2397 threema: '#000000', 2398 trello: '#0D63DE', 2399 tiktok: '#4c4c4c', 2400 tripadvisor: '#1ABC9C', 2401 tumblr: '#32506d', 2402 twitch: '#6441A4', 2403 twitter: '#000000', 2404 vk: '#4c6c91', 2405 viber: '#645EA4', 2406 vimeo: '#29B6F6', 2407 wechat: '#4EC034', 2408 weibo: '#ff9933', 2409 whatsapp: '#25d366', 2410 wordpress: '#21759b', 2411 xing: '#1a7576', 2412 yelp: '#d32323', 2413 youtube: '#FF0000', 2414 yahoomail: '#720e9e', 2415 yummly: '#E16120', 2416 zillow: '#006aff', 2417 zomato: '#e23844' 2418 }; 2419 2420}).call(this); 2421 2422(function() { 2423 window.__sharethis__.PRODUCTS = ['custom-share-buttons', 'ecommerce', 'email-list-builder', 'ga', 'gdpr-compliance-tool', 'gdpr-compliance-tool-v2', 'image-share-buttons', 'image-share-buttons-wp', 'inline-follow-buttons', 'inline-reaction-buttons', 'inline-share-buttons', 'inline-share-buttons-wp', 'powr-form-builder', 'powr-popup', 'powr-social-feed', 'privacy-policy-generator', 'privy-share-buttons', 'reviews', 'sop', 'sop-wordpress-plugin', 'sticky-share-buttons', 'sticky-share-buttons-wp', 'top-content', 'unknown', 'video-share-buttons', 'viral-notifications']; 2424 2425}).call(this); 2426 2427(function() { 2428 var st; 2429 2430 st = window.__sharethis__; 2431 2432 st.i18n = { 2433 'angry': { 2434 de: 'wütend', 2435 en: 'angry', 2436 es: 'me enoja', 2437 fr: 'grrr', 2438 it: 'grrr', 2439 ja: 'ã²ã©ãã', 2440 ko: 'íëì', 2441 pt: 'ira', 2442 ru: 'bозмÑÑиÑелÑно', 2443 zh: 'æ' 2444 }, 2445 'Support BLM': { 2446 de: 'Steun BLM', 2447 en: 'Support BLM', 2448 es: 'Subtenu BLM', 2449 fr: 'Soutenir BLM', 2450 it: 'Supporta BLM', 2451 ja: 'BLMããµãã¼ã', 2452 ko: 'BLM ì§ì', 2453 pt: 'Suporte BLM', 2454 ru: 'ÐоддеÑжка BLM', 2455 zh: 'æ¯æBLM', 2456 nl: 'Steun BLM', 2457 ar: 'تبرع ÙØµØ§ÙØ BLM', 2458 bn: 'BLM à¦à§ সাপà§à¦°à§à¦ à¦à¦°à§à¦¨', 2459 hi: 'बà¥à¤à¤²à¤à¤® à¤à¥ सहयà¥à¤', 2460 tr: 'BLM yi Destekle', 2461 vi: 'Ủng há» BLM' 2462 }, 2463 'bookmark': { 2464 de: 'lesezeichen', 2465 en: 'mark', 2466 es: 'marcador',
2467 fr: 'signet', 2468 it: 'segnalibro', 2469 ja: 'ããã', 2470 ko: 'ìí', 2471 pt: 'marca páginas', 2472 ru: 'закладка', 2473 zh: '书ç¾', 2474 nl: 'Markeer', 2475 ar: 'ØªØ«Ø¨ÙØª', 2476 bn: 'মারà§à¦', 2477 hi: 'मारà¥à¤', 2478 tr: 'İÅaretle', 2479 vi: 'Äánh dấu' 2480 }, 2481 'email': { 2482 de: 'emailen', 2483 en: 'email', 2484 es: 'correo electrónico', 2485 fr: 'email', 2486 it: 'e-mail', 2487 ja: 'Eã¡ã¼ã«', 2488 ko: 'ì´ë©ì¼', 2489 pt: 'o email', 2490 ru: 'Ðл. адÑеÑ', 2491 zh: 'çµåé®ä»¶', 2492 nl: 'E-mail', 2493 ar: 'إرساÙ', 2494 bn: 'à¦à¦®à§à¦²', 2495 hi: 'à¤à¤®à¥à¤²', 2496 tr: 'E-posta', 2497 vi: 'Email' 2498 }, 2499 'flip': { 2500 de: 'flip', 2501 en: 'flip', 2502 es: 'Flipear', 2503 fr: 'Ajouter', 2504 it: 'Flip', 2505 ja: 'ããªãã', 2506 ko: 'ê³µì í기', 2507 pt: 'partilhar', 2508 ru: 'ФлипнÑÑÑ', 2509 zh: '翻转', 2510 nl: 'Flip', 2511 ar: 'تغÙÙØ±', 2512 bn: 'à¦à¦²à§à¦à¦¾à¦¨', 2513 hi: 'फ़à¥à¤²à¤¿à¤ª', 2514 tr: 'Döndür', 2515 vi: 'Láºt' 2516 }, 2517 'gmail': { 2518 de: 'emailen', 2519 en: 'email', 2520 es: 'correo electrónico', 2521 fr: 'email', 2522 it: 'e-mail', 2523 ja: 'Eã¡ã¼ã«', 2524 ko: 'ì´ë©ì¼', 2525 pt: 'o email', 2526 ru: 'Ðл. адÑеÑ', 2527 zh: 'çµåé®ä»¶' 2528 }, 2529 'like': { 2530 de: 'mögen', 2531 en: 'like', 2532 es: 'me gusta', 2533 fr: "j'aime", 2534 it: 'mi piace', 2535 ja: 'ãããï¼', 2536 ko: 'ì¢ìì', 2537 pt: 'gosto', 2538 ru: 'hÑавиÑÑÑ', 2539 zh: 'èµ' 2540 }, 2541 'lol': { 2542 de: 'lol', 2543 en: 'lol', 2544 es: 'me divierte', 2545 fr: 'haha', 2546 it: 'ahah', 2547 ja: 'ãããã', 2548 ko: 'ì겨ì', 2549 pt: 'riso', 2550 ru: 'xа-Ñ Ð°', 2551 zh: 'ç¬è¶´' 2552 }, 2553 'love': { 2554 de: 'lieben', 2555 en: 'love', 2556 es: 'me encanta', 2557 fr: "jâadore", 2558 it: 'love', 2559 ja: 'è¶ ãããï¼', 2560 ko: 'ìµê³ ìì', 2561 pt: 'adoro', 2562 ru: 'cÑпеÑ', 2563 zh: '大ç±' 2564 }, 2565 'pin': { 2566 de: 'pin', 2567 en: 'pin', 2568 es: 'pin', 2569 fr: 'épingle', 2570 it: 'pin', 2571 ja: 'ãã³', 2572 ko: 'í', 2573 pt: 'pin', 2574 ru: 'Ðин', 2575 zh: 'é', 2576 nl: 'Pin', 2577 ar: 'Ø¨ÙØªØ±Ø³Øª', 2578 bn: 'পিন', 2579 hi: 'पिन', 2580 tr: 'Pinle', 2581 vi: 'Ghim' 2582 }, 2583 'print': { 2584 de: 'drucken', 2585 en: 'print', 2586 es: 'impresión', 2587 fr: 'mpression', 2588 it: 'stampa', 2589 ja: 'ããªã³ã', 2590 ko: 'ì¸ì', 2591 pt: 'impressão', 2592 ru: 'РаÑпеÑаÑаÑÑ', 2593 zh: 'æå°', 2594 nl: 'Print', 2595 ar: 'طباعة', 2596 bn: 'পà§à¦°à¦¿à¦¨à§à¦ à¦à¦°à§à¦¨', 2597 hi: 'पà¥à¤°à¤¿à¤à¤', 2598 tr: 'Yazdır', 2599 vi: 'In' 2600 }, 2601 'sad': { 2602 de: 'traurig', 2603 en: 'sad', 2604 es: 'me entristece', 2605 fr: 'triste', 2606 it: 'sigh', 2607 ja: 'æ²ããã', 2608 ko: 'ì¬í¼ì', 2609 pt: 'tristeza', 2610 ru: 'cоÑÑвÑÑвÑÑ', 2611 zh: 'å¿ç¢' 2612 }, 2613 'send message': { 2614 zh: 'åä¿¡æ¯' 2615 }, 2616 'share': { 2617 de: 'teilen', 2618 en: 'share', 2619 es: 'compartir', 2620 fr: 'partager', 2621 it: 'condividi', 2622 ja: 'ã·ã§ã¢ãã', 2623 ko: 'ê³µì í기', 2624 pt: 'partilhar', 2625 ru: 'ÐоделиÑÑÑÑ', 2626 zh: 'å享', 2627 nl: 'Deel', 2628 ar: 'Ù Ø´Ø§Ø±ÙØ©', 2629 bn: 'শà§à§à¦¾à¦°', 2630 hi: 'शà¥à¤¯à¤°', 2631 tr: 'PaylaÅ', 2632 vi: 'Chia sẻ' 2633 }, 2634 'shares': { 2635 de: 'teilen', 2636 en: 'shares', 2637 es: 'veces compartido', 2638 fr: 'partages', 2639 it: 'condivisioni', 2640 ja: 'ã·ã§ã¢æ°', 2641 ko: 'ì¬ìí', 2642 pt: 'partilhas', 2643 ru: 'ÐеÑепоÑÑÑ', 2644 zh: '次转å', 2645 nl: 'Deel', 2646 ar: 'Ù Ø´Ø§Ø±ÙØ©', 2647 bn: 'শà§à§à¦¾à¦°', 2648 hi: 'शà¥à¤¯à¤°', 2649 tr: 'PaylaÅ', 2650 vi: 'Chia sẻ' 2651 }, 2652 'snapchat': { 2653 de: 'schnappen', 2654 en: 'snap', 2655 es: 'quebrar',
2656 fr: 'se casser', 2657 it: 'affrettato', 2658 ja: 'ã¹ããã', 2659 ko: 'ì¤ë ', 2660 pt: 'foto', 2661 ru: 'ÑелÑок', 2662 zh: 'å¿«ç §', 2663 nl: 'snap', 2664 ar: 'ÙÙØ±ÙØ¹Ø ÙÙÙØ¬Ø±', 2665 bn: 'аÑнаÑÑка', 2666 hi: 'à¤à¤à¤à¤¾à¤¨à¤¾', 2667 tr: 'patlatmak', 2668 vi: 'búng tay' 2669 }, 2670 'sticky-width': { 2671 de: 120, 2672 en: 120, 2673 es: 140, 2674 fr: 130, 2675 it: 140, 2676 ja: 160, 2677 ko: 120, 2678 pt: 130, 2679 ru: 160, 2680 zh: 120 2681 }, 2682 'subjects': { 2683 'en': "I'd like to share a link with you", 2684 'es': "Me gustarÃa compartir este enlace contigo", 2685 'ru': "Я Ñ Ð¾Ñел Ð±Ñ Ð¿Ð¾Ð´ÐµÐ»Ð¸ÑÑÑÑ Ñ Ð²Ð°Ð¼Ð¸ ÑÑÑлкой", 2686 'zh': "ææ³åä½ å享ä¸ä¸ªä¿¡æ¯" 2687 }, 2688 'tweet': { 2689 de: 'tweeten', 2690 en: 'post', 2691 es: 'twittear', 2692 fr: 'tweeter', 2693 it: 'twittare', 2694 ja: 'ãã¤ã¼ããã', 2695 ko: 'í¸ìí기', 2696 pt: 'tweetar', 2697 ru: 'tвиÑнÑÑÑ', 2698 zh: '忍', 2699 nl: 'Post', 2700 ar: 'تÙÙØªØ±', 2701 bn: 'à¦à§à¦à¦', 2702 hi: 'à¤à¥à¤µà¥à¤', 2703 tr: 'Post', 2704 vi: 'Post' 2705 }, 2706 'wow': { 2707 de: 'wow', 2708 en: 'wow', 2709 es: 'me asombra', 2710 fr: 'wouah', 2711 it: 'wow', 2712 ja: 'ãããã', 2713 ko: 'ë©ì ¸ì', 2714 pt: 'surpresa', 2715 ru: 'yÑ ÑÑ!', 2716 zh: 'å' 2717 }, 2718 'yahoomail': { 2719 de: 'emailen', 2720 en: 'email', 2721 es: 'correo electrónico', 2722 fr: 'email', 2723 it: 'e-mail', 2724 ja: 'Eã¡ã¼ã«', 2725 ko: 'ì´ë©ì¼', 2726 pt: 'o email', 2727 ru: 'Ðл. адÑеÑ', 2728 zh: 'çµåé®ä»¶' 2729 } 2730 }; 2731 2732}).call(this); 2733 2734(function() { 2735 var img, is_ie8; 2736 2737 img = window.__sharethis__.img; 2738 2739 is_ie8 = /MSIE 8.0/.test(navigator.userAgent); 2740 2741 window.__sharethis__.cdn = 'https://platform-cdn.sharethis.com'; 2742 2743 window.__sharethis__.ICONS = { 2744 airbnb: img('airbnb.svg'), 2745 amazon: img('amazon.svg'), 2746 arrow_left: img('arrow_left.svg'), 2747 arrow_right: img('arrow_right.svg'), 2748 bandcamp: img('bandcamp.svg'), 2749 behance: img('behance.svg'), 2750 blogger: img('blogger.svg'), 2751 blm: img('blm.svg'), 2752 bluesky: img('bluesky.svg'), 2753 bitbucket: img('bitbucket.svg'), 2754 buffer: img('buffer.svg'), 2755 close: img('close.svg'), 2756 copy: img('copy.svg'), 2757 delicious: img('delicious.svg'), 2758 deviantart: img('deviantart.svg'), 2759 diaspora: img('diaspora.svg'), 2760 digg: img('digg.svg'), 2761 diigo: img('diigo.svg'), 2762 discord: img('discord.svg'), 2763 douban: img('douban.svg'), 2764 dribbble: img('dribbble.svg'), 2765 email: img('email.svg'), 2766 evernote: img('evernote.svg'), 2767 etsy: img('etsy.svg'), 2768 facebook: img('facebook.svg'), 2769 fark: img('fark.svg'), 2770 flickr: img('flickr.svg'), 2771 flipboard: img('flipboard.svg'), 2772 gab: img('gab.svg'), 2773 getpocket: img('pocket.svg'), 2774 github: img('github.svg'), 2775 gitlab: img('gitlab.svg'), 2776 gmail: img('gmail.svg'), 2777 googlebookmarks: img('googlebookmarks.svg'), 2778 googlemaps: img('googlemaps.svg'), 2779 hackernews: img('hackernews.svg'), 2780 houzz: img('houzz.svg'), 2781 instagram: img('instagram.svg'), 2782 instapaper: img('instapaper.svg'), 2783 iorbix: img('iorbix.svg'), 2784 kakao: img('kakao.svg'), 2785 kindleit: img('kindleit.svg'), 2786 kooapp: img('kooapp.svg'), 2787 line: img('line.svg'), 2788 linkedin: img('linkedin.svg'), 2789 livejournal: img('livejournal.svg'), 2790 mailru: img('mailru.svg'), 2791 medium: img('medium.svg'), 2792 meneame: img('meneame.svg'), 2793 messenger: img('messenger.svg'), 2794 meetup: img('meetup.svg'), 2795 microsoftteams: img('microsoftteams.svg'), 2796 mix: img('mix.svg'), 2797 naver: img('naver.svg'), 2798 nextdoor: img('nextdoor.svg'), 2799 odnoklassniki: img('odnoklassniki.svg'), 2800 outlook: img('outlook.svg'), 2801 patreon: img('patreon.svg'), 2802 pinboard: img('pinboard.svg'), 2803 pinterest: img('pinterest.svg'), 2804 plurk: img('plurk.svg'), 2805 print: img('print.svg'), 2806 quora: img('quora.svg'), 2807 qzone: img('qzone.svg'), 2808 reddit: img('reddit.svg'), 2809 refind: img('refind.svg'), 2810 renren: img('renren.svg'), 2811 sharethis: img('sharethis.svg'), 2812 skype: img('skype.svg'), 2813 slideshare: img('slideshare.svg'), 2814 sms: img('sms.svg'), 2815 snapchat: img('snapchat.svg'), 2816 soundcloud: img('soundcloud.svg'), 2817 spotify: img('spotify.svg'), 2818 stackoverflow: img('stackoverflow.svg'), 2819 surfingbird: img('surfingbird.svg'), 2820 telegram: img('telegram.svg'), 2821 tencentqq: img('tencentqq.svg'), 2822 threads: img('threads.svg'), 2823 threema: img('threema.svg'), 2824 trello: img('trello.svg'), 2825 tiktok: img('tiktok.svg'), 2826 tripadvisor: img('tripadvisor.svg'), 2827 tumblr: img('tumblr.svg'), 2828 twitch: img('twitch.svg'), 2829 twitter: img('twitter.svg'), 2830 vk: img('vk.svg'), 2831 viber: img('viber.svg'), 2832 vimeo: img('vimeo.svg'), 2833 wechat: img('wechat.svg'), 2834 weibo: img('weibo.svg'), 2835 whatsapp: img('whatsapp.svg'), 2836 wordpress: img('wordpress.svg'), 2837 xing: img('xing.svg'), 2838 yahoomail: img('yahoomail.svg'), 2839 yelp: img('yelp.svg'), 2840 youtube: img('youtube.svg'), 2841 yummly: img('yummly.svg'), 2842 zillow: img('zillow.svg'), 2843 zomato: img('zomato.svg') 2844 }; 2845 2846 window.__sharethis__.ICONS_WHITE = { 2847 airbnb: img('airbnb-white.svg'), 2848 amazon: img('amazon-white.svg'), 2849 bandcamp: img('bandcamp-white.svg'), 2850 behance: img('behance-white.svg'), 2851 blogger: img('blogger-white.svg'), 2852 blm: img('blm-white.svg'), 2853 bluesky: img('bluesky-white.svg'), 2854 bitbucket: img('bitbucket-white.svg'), 2855 buffer: img('buffer-white.svg'), 2856 copy: img('copy-white.svg'), 2857 delicious: img('delicious-white.svg'), 2858 deviantart: img('deviantart-white.svg'), 2859 diaspora: img('diaspora-white.svg'), 2860 digg: img('digg-white.svg'), 2861 diigo: img('diigo-white.svg'), 2862 discord: img('discord-white.svg'), 2863 douban: img('douban-white.svg'), 2864 dribbble: img('dribbble-white.svg'), 2865 email: img('email-white.svg'), 2866 etsy: img('etsy-white.svg'), 2867 evernote: img('evernote-white.svg'), 2868 facebook: img('facebook-white.svg'), 2869 fark: img('fark-white.svg'), 2870 flickr: img('flickr-white.svg'), 2871 flipboard: img('flipboard-white.svg'), 2872 gab: img('gab-white.svg'), 2873 getpocket: img('pocket-white.svg'), 2874 github: img('github-white.svg'), 2875 gitlab: img('gitlab-white.svg'), 2876 gmail: img('gmail-white.svg'), 2877 googlebookmarks: img('googlebookmarks-white.svg'), 2878 googlemaps: img('googlemaps-white.svg'), 2879 hackernews: img('hackernews-white.svg'), 2880 houzz: img('houzz-white.svg'), 2881 instagram: img('instagram-white.svg'), 2882 instapaper: img('instapaper-white.svg'), 2883 iorbix: img('iorbix-white.svg'), 2884 kakao: img('kakao-white.svg'), 2885 kindleit: img('kindleit-white.svg'), 2886 kooapp: img('kooapp-white.svg'), 2887 line: img('line-white.svg'), 2888 linkedin: img('linkedin-white.svg'), 2889 livejournal: img('livejournal-white.svg'), 2890 mailru: img('mailru-white.svg'), 2891 medium: img('medium-white.svg'), 2892 meetup: img('meetup-white.svg'), 2893 meneame: img('meneame-white.svg'), 2894 messenger: img('messenger-white.svg'),
2895 microsoftteams: img('microsoftteams-white.svg'), 2896 mix: img('mix-white.svg'), 2897 naver: img('naver-white.svg'), 2898 nextdoor: img('nextdoor-white.svg'), 2899 odnoklassniki: img('odnoklassniki-white.svg'), 2900 outlook: img('outlook-white.svg'), 2901 patreon: img('patreon-white.svg'), 2902 pinboard: img('pinboard-white.svg'), 2903 pinterest: img('pinterest-white.svg'), 2904 plurk: img('plurk-white.svg'), 2905 print: img('print-white.svg'), 2906 quora: img('quora-white.svg'), 2907 qzone: img('qzone-white.svg'), 2908 reddit: img('reddit-white.svg'), 2909 refind: img('refind-white.svg'), 2910 renren: img('renren-white.svg'), 2911 sharethis: img('sharethis-white.svg'), 2912 skype: img('skype-white.svg'), 2913 slideshare: img('slideshare-white.svg'), 2914 sms: img('sms-white.svg'), 2915 snapchat: img('snapchat-white.svg'), 2916 soundcloud: img('soundcloud-white.svg'), 2917 spotify: img('spotify-white.svg'), 2918 stackoverflow: img('stackoverflow-white.svg'), 2919 surfingbird: img('surfingbird-white.svg'), 2920 telegram: img('telegram-white.svg'), 2921 telegram: img('telegram-white.svg'), 2922 tencentqq: img('tencentqq-white.svg'), 2923 threads: img('threads-white.svg'), 2924 threema: img('threema-white.svg'), 2925 trello: img('trello-white.svg'), 2926 tiktok: img('tiktok-white.svg'), 2927 tripadvisor: img('tripadvisor-white.svg'), 2928 tumblr: img('tumblr-white.svg'), 2929 twitch: img('twitch-white.svg'), 2930 twitter: img('twitter-white.svg'), 2931 vk: img('vk-white.svg'), 2932 viber: img('viber-white.svg'), 2933 vimeo: img('vimeo-white.svg'), 2934 wechat: img('wechat-white.svg'), 2935 weibo: img('weibo-white.svg'), 2936 whatsapp: img('whatsapp-white.svg'), 2937 wordpress: img('wordpress-white.svg'), 2938 xing: img('xing-white.svg'), 2939 yahoomail: img('yahoomail-white.svg'), 2940 ycombinator: img('ycombinator-white.svg'), 2941 yelp: img('yelp-white.svg'), 2942 youtube: img('youtube-white.svg'), 2943 yummly: img('yummly-white.svg'), 2944 zillow: img('zillow-white.svg'), 2945 zomato: img('zomato-white.svg') 2946 }; 2947 2948 if (is_ie8) { 2949 window.__sharethis__.ICONS = { 2950 arrow_left: img('left-arrow.png'), 2951 arrow_right: img('right-arrow.png'), 2952 blogger: img('blogger.png'), 2953 bluesky: img('bluesky.png'), 2954 delicious: img('delicious.png'), 2955 digg: img('digg.png'), 2956 email: img('email.png'), 2957 facebook: img('facebook.png'), 2958 flipboard: img('flipboard.png'), 2959 linkedin: img('linkedin.png'), 2960 livejournal: img('livejournal.png'), 2961 mailru: img('mailru.png'), 2962 meneame: img('mename.png'), 2963 odnoklassniki: img('odnoklassniki.png'), 2964 pinterest: img('pinterest.png'), 2965 print: img('print.png'), 2966 reddit: img('reddit.png'), 2967 sharethis: img('sharethis.png'), 2968 sms: img('sms.png'), 2969 tumblr: img('tumblr.png'), 2970 twitter: img('twitter.png'), 2971 vk: img('vk.png'), 2972 weibo: img('weibo.png'), 2973 whatsapp: img('whatsapp.png'), 2974 xing: img('xing.png'), 2975 wechat: img('wechat.png') 2976 }; 2977 } 2978 2979}).call(this); 2980 2981(function() { 2982 var st; 2983 2984 st = window.__sharethis__; 2985 2986 st.networks = ['airbnb', 'amazon', 'blogger', 'blm', 'bluesky', 'buffer', 'copy', 'diaspora', 'diigo', 'digg', 'discord', 'douban', 'email', 'evernote', 'etsy', 'facebook', 'fark', 'flipboard', 'foursquare', 'gab', 'getpocket', 'github', 'gmail', 'googlebookmarks', 'hackernews', 'houzz', 'instapaper', 'iorbix', 'kakao', 'kindleit', 'kooapp', 'line', 'linkedin', 'livejournal', 'mailru', 'meneame', 'messenger', 'microsoftteams', 'naver', 'nextdoor', 'odnoklassniki', 'outlook', 'pinboard', 'pinterest', 'plurk', 'print', 'qzone', 'reddit', 'refind', 'renren', 'sharethis', 'skype', 'sms', 'snapchat', 'surfingbird', 'telegram', 'tencentqq', 'threads', 'threema', 'tiktok', 'trello', 'tripadvisor', 'tumblr', 'twitter', 'vk', 'viber', 'vimeo', 'wechat', 'weibo', 'whatsapp', 'wordpress', 'xing', 'yahoomail', 'yummly', 'zillow']; 2987 2988 st.shareNetworks = ['blm', 'blogger', 'bluesky', 'buffer', 'copy', 'diaspora', 'digg', 'diigo', 'douban', 'email', 'evernote', 'facebook', 'fark', 'flipboard', 'gab', 'getpocket', 'gmail', 'googlebookmarks', 'hackernews', 'houzz', 'instapaper', 'iorbix', 'kakao', 'kindleit', 'kooapp', 'line', 'linkedin', 'livejournal', 'mailru', 'meneame', 'messenger', 'microsoftteam
2988s', 'naver', 'nextdoor', 'odnoklassniki', 'outlook', 'pinboard', 'pinterest', 'plurk', 'print', 'qzone', 'reddit', 'refind', 'renren', 'sharethis', 'skype', 'sms', 'surfingbird', 'telegram', 'tencentqq', 'threema', 'trello', 'tumblr', 'twitter', 'vk', 'viber', 'wechat', 'weibo', 'whatsapp', 'wordpress', 'xing', 'yahoomail', 'yummly']; 2989 2990 st.followNetworks = ['airbnb', 'amazon', 'bandcamp', 'behance', 'bitbucket', 'blogger', 'bluesky', 'deviantart', 'digg', 'discord', 'dribbble', 'etsy', 'facebook', 'flickr', 'flipboard', 'foursquare', 'github', 'gitlab', 'goodreads', 'googlemaps', 'houzz', 'instagram', 'linkedin', 'medium', 'meetup', 'messenger', 'mix', 'odnoklassniki', 'patreon', 'pinterest', 'quora', 'reddit', 'shares', 'skype', 'slideshare', 'snapchat', 'soundcloud', 'spotify', 'stackoverflow', 'telegram', 'threads', 'tiktok', 'trello', 'tripadvisor', 'tumblr', 'twitch', 'twitter', 'vimeo', 'vk', 'wechat', 'weibo', 'whatsapp', 'xing', 'yelp', 'youtube', 'zillow', 'zomato']; 2991 2992}).call(this); 2993 2994(function() { 2995 var st; 2996 2997 st = window.__sharethis__; 2998 2999 st.loader['share-all'] = function(config) { 3000 var $backdrop, $button, $buttons, $close, $el, common_css, count_url, css, description, html, i, id, image, j, len, len1, logo_link, message, network, network_css, ref, ref1, share_url, src, title, url, username; 3001 if (config == null) { 3002 config = {}; 3003 } 3004 count_url = config.count_url, share_url = config.share_url, url = config.url, description = config.description, image = config.image, message = config.message, network = config.network, title = config.title, username = config.username; 3005 ref = st.newElement(), $el = ref.$el, id = ref.id; 3006 st.addClass($el, 'st-hidden'); 3007 common_css = "body.st-body-no-scroll {\n bottom: 0;\n left: 0;\n overflow: hidden;\n position: fixed;\n right: 0;\n top: 0;\n}\n#" + id + " {\n " + st.FONT_FAMILY + "\n " + (st.TRANSITION()) + "\n height: 100%;\n left: 0;\n opacity: 1;\n position: fixed;\n top: 0;\n width: 100%;\n z-index: 99999;\n}\n#" + id + ".st-hidden {\n opacity: 0;\n top: 100%;\n}\n#" + id + " .st-backdrop {\n background: rgba(0, 0, 0, 0.8);\n bottom: 0;\n left: 0;\n position: absolute;\n right: 0;\n top: 0;\n z-index: 10;\n}\n#" + id + " .st-btns {\n bottom: 56px;\n left: 0;\n margin: 100px auto 0;\n max-width: 90%;\n position: absolute;\n right: 0;\n text-align: center;\n top: 10px;\n z-index: 20;\n overflow-y: auto;\n}\n#" + id + " .st-logo {\n background: #4c4c4c;\n bottom: 0;\n cursor: pointer;\n padding: 20px;\n position: absolute;\n text-align: center;\n width: 100%;\n z-index: 30;\n}\n#" + id + " .st-close {\n " + (st.BORDER_RADIUS(28)) + "\n " + st.BORDER_BOX + "\n background: #999;\n bottom: 28px;\n color: #fff;\n cursor: pointer;\n font-size: 36px;\n height: 56px;\n line-height: 28px;\n padding: 10px;\n position: absolute;\n right: 14px;\n width: 56px;\n z-index: 40;\n}\n#" + id + " .st-disclaimer {\n bottom: 72px;\n color: white;\n font-size: 12px;\n left: 50%;\n position: absolute;\n transform: translate(-50%, 0);\n z-index: 30;\n}\n#" + id + " .st-close > img {\n height: 40px;\n width: 40px;\n}\n#" + id + " .st-btn {\n " + (st.BORDER_RADIUS(4)) + "\n " + st.BORDER_BOX + "\n " + (st.TRANSITION()) + "\n color: white;\n cursor: pointer;\n display: inline-block;\n font-size: 12px;\n font-weight: 400;\n height: 48px;\n line-height: 30px;\n margin: 4px;\n opacity: 1;\n overflow: hidden;\n padding: 8px 12px;\n position: relative;\n text-align: left;\n top: 0;\n vertical-align: top;\n width: 148px;\n}\n#" + id + " .st-btn::before {\n " + (st.BORDER_RADIUS(4)) + "\n " + (st.TRANSITION()) + "\n background: #fff;\n content: '';\n height: 100%;\n left: 0;\n opacity: 0;\n position: absolute;\n top: 0;\n width: 100%;\n}\n#" + id + " .st-btn:hover::before {\n opacity: .2;\n}\n#" + id + " .st-btn > svg {\n display: inline-block;\n height: 20px;\n margin-top: 6px;\n vertical-align: top;\n width: 20px;\n}\n#" + id + " .st-btn > img {\n display: inline-block;\n height: 20px;\n margin-top: 6px;\n vertical-align: top;
3007\n width: 20px;\n}\n#" + id + " .st-btn > span {\n display: inline-block;\n letter-spacing: 0.5px;\n text-align: center;\n vertical-align: top;\n width: 96px;\n}\n@media(max-width: 1200px) {\n #" + id + " .st-btns {\n margin-top: 50px;\n }\n}\n@media(max-width: 800px) {\n #" + id + " .st-btns {\n margin: 0 auto;\n max-width: 100%;\n padding: 32px 10px 50px;\n }\n #" + id + " .st-btn {\n width: 130px;\n }\n #" + id + " .st-btn > span {\n width: 74px;\n }\n #" + id + " .st-disclaimer {\n background: #000;\n bottom: 44px;\n font-size: 10px;\n padding: 8px;\n text-align: center;\n width: 100%\n }\n}"; 3008 network_css = ((function() { 3009 var i, len, ref1, results; 3010 ref1 = st.shareNetworks; 3011 results = []; 3012 for (i = 0, len = ref1.length; i < len; i++) { 3013 network = ref1[i]; 3014 results.push("#" + id + " .st-btn[data-network='" + network + "'] {\n background-color: " + st.COLORS[network] + ";\n}"); 3015 } 3016 return results; 3017 })()).join('\n'); 3018 css = common_css; 3019 css += network_css; 3020 st.css(css); 3021 html = "<div class='st-backdrop'></div>"; 3022 html += "<div class='st-btns'>"; 3023 ref1 = st.shareNetworks; 3024 for (i = 0, len = ref1.length; i < len; i++) { 3025 network = ref1[i]; 3026 if (network === 'sharethis') { 3027 continue; 3028 } 3029 if (!st.mobile && (network === 'sms')) { 3030 continue; 3031 } 3032 html += "<div class='st-btn' data-network='" + network + "'>\n " + st.ICONS[network] + "\n <span>" + network + "</span>\n</div>"; 3033 } 3034 html += "</div>"; 3035 src = 'https://platform-cdn.sharethis.com/img/share-this-logo%402x.png'; 3036 logo_link = "https://sharethis.com/platform/share-buttons?" + st.qs({ 3037 utm_source: "share-buttons", 3038 utm_medium: "referral", 3039 utm_campaign: "sharethis-button-referral" 3040 }); 3041 html += "<div class=\"st-logo\">\n <a href=\"" + logo_link + "\" target=\"_blank\">\n <img height=\"16\" width=\"96\" src=\"" + src + "\">\n </a>\n</div>"; 3042 html += "<div class=\"st-close\">\n " + st.ICONS['close'] + "\n</div>"; 3043 html += "<div class=\"st-disclaimer\">\n Third-party platform trademarks and logos appearing here are owned by the\n respective third parties, link to those referenced platforms, and are not\n affiliated with ShareThis.\n</div>"; 3044 $el.innerHTML = html; 3045 $backdrop = $el.querySelector('.st-backdrop'); 3046 $buttons = $el.querySelectorAll('.st-btn'); 3047 $close = $el.querySelector('.st-close'); 3048 st.addEventListener($backdrop, 'click', function() { 3049 return st.close($el); 3050 }); 3051 st.addEventListener($close, 'click', function() { 3052 return st.close($el); 3053 }); 3054 st.addEventListener(document, 'keydown', function(e) { 3055 if (st.isEsc(e)) { 3056 return st.close($el); 3057 } 3058 }); 3059 for (j = 0, len1 = $buttons.length; j < len1; j++) { 3060 $button = $buttons[j]; 3061 st.addEventListener($button, 'click', function() { 3062 st.close($el); 3063 return st.share({ 3064 description: description, 3065 image: image, 3066 network: this.getAttribute('data-network'), 3067 share_url: share_url, 3068 title: title, 3069 url: url, 3070 username: username 3071 }); 3072 }); 3073 } 3074 return setTimeout((function() { 3075 st.removeClass($el, 'st-hidden'); 3076 return st.addClass(document.body, 'st-body-no-scroll'); 3077 }), 10); 3078 }; 3079 3080}).call(this); 3081 3082(function() { 3083 var st; 3084 3085 st = window.__sharethis__; 3086 3087 st.loader['share-wechat-mobile'] = function(config) { 3088 var $backdrop, $close, $copy, $el, $form_input, $open, html, id, mobile_css, ref, src, url; 3089 if (config == null) { 3090 config = {}; 3091 } 3092 url = config.url; 3093 ref = st.newElement(), $el = ref.$el, id = ref.id; 3094 st.addClass($el, 'st-hidden'); 3095 mobile_css = "body.st-body-no-scroll {\n bottom: 0;\n left: 0;\n overflow: hidden;\n position: fixed;\n right: 0;\n top: 0;\n}\n#" + id + " {\n " + (st.TRANSITION()) + "\n " + st.FONT_FAMILY + "\n bottom: 0;\n left: 0;\n opacity: 1;\n overflow-y: auto;\n padding-bottom: 100px;\n position: fixed;\n right: 0;\n text-align: center;\n top: 0;\n width: 100%;\n z-index: 99999;\n}\n\n#" + id + ".st-hidden {\n opacity: 0;\n top: 100%;\n}\n#" + id + " .st-backdrop {\n background: rgba(0, 0, 0, 0.8);\n bottom: 0;\n left: 0;\n position: fixed;\n right: 0;\n top: 0;\n z-index: 10;\n}\n#" + id + " .st-wechat {\n margin-top: 120px;\n height: 64px;\n width: 220px;\n display: inline-block;\n position: relative;\n z-index: 10;\n}\n#" + id + " .st-form {\n margin: 20px auto;\n max-width: 80%;\n position: relative;\n width: 320px;\n z-index: 20;\n}\n#" + id + " .st-form > input {\n " + st.BORDER_BOX + "\n " + (st.BORDER_RADIUS(4)) + "\n background-color: #fff;\n border: 0;\n color: #333;\n display: block;\n font-size: 16px;\n height: 48px;\n margin-bottom: 15px;\n padding: 12px;\n width: 100%;\n}\n#" + id + " .st-form > textarea {\n " + st.BORDER_BOX + "\n " + (st.BORDER_RADIUS(4)) + "\n background-color: #fff;\n border: 0;\n color: #333;\n display: block;\n font-size: 16px;\n height: 96px;\n margin-bottom: 15px;\n padding: 12px;\n width: 100%;\n}\n#" + id + " .st-copy {\n " + (st.BORDER_RADIUS(2)) + "\n background: #4EC034;\n color: #fff;
3095\n cursor: pointer;\n display: inline-block;\n height: 36px;\n letter-spacing: .5px;\n line-height: 36px;\n margin: 15px auto 0 auto;\n padding: 0 10px;\n position: relative;\n text-align: center;\n min-width: 120px;\n z-index: 20;\n}\n#" + id + " .st-open {\n " + (st.BORDER_RADIUS(2)) + "\n background: #4EC034;\n color: #fff;\n cursor: pointer;\n display: inline-block;\n height: 36px;\n letter-spacing: .5px;\n line-height: 36px;\n margin: 15px auto 0 auto;\n padding: 0 10px;\n position: relative;\n text-align: center;\n min-width: 120px;\n z-index: 20;\n}\n#" + id + " .st-logo {\n background: #4c4c4c;\n bottom: 0;\n padding: 20px;\n position: fixed;\n text-align: center;\n width: 100%;\n z-index: 30;\n}\n#" + id + " .st-close {\n " + (st.BORDER_RADIUS(28)) + "\n " + st.BORDER_BOX + "\n background: #999;\n bottom: 28px;\n color: #fff;\n cursor: pointer;\n font-size: 36px;\n height: 56px;\n line-height: 28px;\n padding: 10px;\n position: fixed;\n right: 14px;\n width: 56px;\n z-index: 40;\n}"; 3096 st.css(mobile_css); 3097 html = "<div class='st-backdrop'></div>"; 3098 html += "<div class='st-wechat'>" + st.ICONS['wechatIcon'] + "</div>"; 3099 html += "<div class='st-form'>\n <input class=\"st-url\" type=\"text\" value=\"\" />\n</div>"; 3100 html += "<div class=\"st-copy\">Copy URL</div>\n<div class=\"st-open\" style=\"display: none\">Open WeChat</div>"; 3101 src = 'https://platform-cdn.sharethis.com/img/share-this-logo%402x.png'; 3102 html += "<div class=\"st-logo\">\n <img height=\"16\" width=\"96\" src=\"" + src + "\">\n</div>"; 3103 html += "<div class=\"st-close\">\n " + st.ICONS['close'] + "\n</div>"; 3104 $el.innerHTML = html; 3105 $form_input = $el.querySelector('.st-form > input'); 3106 $backdrop = $el.querySelector('.st-backdrop'); 3107 $close = $el.querySelector('.st-close'); 3108 $copy = $el.querySelector('.st-copy'); 3109 $open = $el.querySelector('.st-open'); 3110 $form_input.value = url; 3111 st.addEventListener($backdrop, 'click', function() { 3112 return st.close($el); 3113 }); 3114 st.addEventListener($close, 'click', function() { 3115 return st.close($el); 3116 }); 3117 st.addEventListener($copy, 'click', function() { 3118 var succeed; 3119 $form_input.setSelectionRange(0, $form_input.value.length); 3120 succeed = document.execCommand('copy'); 3121 if (succeed) { 3122 $copy.innerText = 'Copied!'; 3123 $copy.style.background = '#f9a825'; 3124 return $open.style.display = 'inline-block'; 3125 } 3126 }); 3127 st.addEventListener($open, 'click', function() { 3128 var onError; 3129 onError = function(err) { 3130 $open.innerText = err; 3131 $open.style.background = '#c62828'; 3132 if (st.__share_email_timeout) { 3133 clearTimeout(st.__share_email_timeout); 3134 } 3135 return st.__share_email_timeout = setTimeout((function() { 3136 $open.innerText = 'Open'; 3137 return $open.style.background = '#00c853'; 3138 }), 2000); 3139 }; 3140 $open.innerText = 'Opening...'; 3141 $open.style.background = '#f9a825'; 3142 url = 'weixin://'; 3143 return st.open(url); 3144 }); 3145 st.addEventListener(document, 'keydown', function(e) { 3146 if (st.isEsc(e)) { 3147 return st.close($el); 3148 } 3149 }); 3150 return setTimeout((function() { 3151 st.removeClass($el, 'st-hidden'); 3152 return st.addClass(document.body, 'st-body-no-scroll'); 3153 }), 10); 3154 }; 3155 3156}).call(this); 3157 3158(function() { 3159 var st; 3160 3161 st = window.__sharethis__; 3162 3163 st.REACTIONS = { 3164 slight_smile: { 3165 icon: "<circle cx=\"32\" cy=\"32\" r=\"30\" fill=\"#ffdd67\"/><g fill=\"#664e27\"><circle cx=\"20.5\" cy=\"26.6\" r=\"5\"/><circle cx=\"43.5\" cy=\"26.6\" r=\"5\"/><path d=\"m44.6 40.3c-8.1 5.7-17.1 5.6-25.2 0-1-.7-1.8.5-1.2 1.6 2.5 4 7.4 7.7 13.8 7.7s11.3-3.6 13.8-7.7c.6-1.1-.2-2.3-1.2-1.6\"/></g>", 3166 label: 'like' 3167 }, 3168 heart_eyes: { 3169 icon: "<path d=\"M62,32c0,16.6-13.4,30-30,30C15.4,62,2,48.6,2,32C2,15.4,15.4,2,32,2C48.6,2,62,15.4,62,32z\" fill=\"#ffdd67\"/><g fill=\"#f46767\"><path d=\"m61.8 13.2c-.5-2.7-2-4.9-4.5-5.6-2.7-.7-5.1.3-7.4 2.7-1.3-3.6-3.3-6.3-6.5-7.7-3.2-1.4-6.4-.4-8.4 2.1-2.1 2.6-2.9 6.7-.7 12 2.1 5 11.4 15 11.7 15.3.4-.2 10.8-6.7 13.3-9.9 2.5-3.1 3-6.2 2.5-8.9\"/><path d=\"m29 4.7c-2-2.5-5.2-3.5-8.4-2.1-3.2 1.4-5.2 4.1-6.5 7.7-2.4-2.3-4.8-3.4-7.5-2.6-2.4.7-4 2.9-4.5 5.6-.5 2.6.1 5.8 2.5 8.9 2.6 3.1 13 9.6 13.4 9.8.3-.3 9.6-10.3 11.7-15.3 2.2-5.3 1.4-9.3-.7-12\"/></g><path d=\"m49 38.1c0-.8-.5-1.8-1.8-2.1-3.5-.7-8.6-1.3-15.2-1.3-6.6 0-11.7.7-1
31695.2 1.3-1.4.3-1.8 1.3-1.8 2.1 0 7.3 5.6 14.6 17 14.6 11.4-.1 17-7.4 17-14.6\" fill=\"#664e27\"/><path d=\"m44.7 38.3c-2.2-.4-6.8-1-12.7-1-5.9 0-10.5.6-12.7 1-1.3.2-1.4.7-1.3 1.5.1.4.1 1 .3 1.6.1.6.3.9 1.3.8 1.9-.2 23-.2 24.9 0 1 .1 1.1-.2 1.3-.8.1-.6.2-1.1.3-1.6 0-.8-.1-1.3-1.4-1.5\" fill=\"#fff\"/>", 3170 label: 'love' 3171 }, 3172 laughing: { 3173 icon: "<circle cx=\"32\" cy=\"32\" r=\"30\" fill=\"#ffdd67\"/><g fill=\"#664e27\"><path d=\"m51.7 19.4c.6.3.3 1-.2 1.1-2.7.4-5.5.9-8.3 2.4 4 .7 7.2 2.7 9 4.8.4.5-.1 1.1-.5 1-4.8-1.7-9.7-2.7-15.8-2-.5 0-.9-.2-.8-.7 1.6-7.3 10.9-10 16.6-6.6\"/><path d=\"m12.3 19.4c-.6.3-.3 1 .2 1.1 2.7.4 5.5.9 8.3 2.4-4 .7-7.2 2.7-9 4.8-.4.5.1 1.1.5 1 4.8-1.7 9.7-2.7 15.8-2 .5 0 .9-.2.8-.7-1.6-7.3-10.9-10-16.6-6.6\"/><path d=\"m49.7 34.4c-.4-.5-1.1-.4-1.9-.4-15.8 0-15.8 0-31.6 0-.8 0-1.5-.1-1.9.4-3.9 5 .7 19.6 17.7 19.6 17 0 21.6-14.6 17.7-19.6\"/></g><path d=\"m33.8 41.7c-.6 0-1.5.5-1.1 2 .2.7 1.2 1.6 1.2 2.8 0 2.4-3.8 2.4-3.8 0 0-1.2 1-2 1.2-2.8.3-1.4-.6-2-1.1-2-1.6 0-4.1 1.7-4.1 4.6 0 3.2 2.7 5.8 6 5.8s6-2.6 6-5.8c-.1-2.8-2.7-4.5-4.3-4.6\" fill=\"#4c3526\"/><path d=\"m24.3 50.7c2.2 1 4.8 1.5 7.7 1.5s5.5-.6 7.7-1.5c-2.1-1.1-4.7-1.7-7.7-1.7s-5.6.6-7.7 1.7\" fill=\"#ff717f\"/><path d=\"m47 36c-15 0-15 0-29.9 0-2.1 0-2.1 4-.1 4 10.4 0 19.6 0 30 0 2 0 2-4 0-4\" fill=\"#fff\"/>", 3174 label: 'lol' 3175 }, 3176 astonished: { 3177 icon: "<circle cx=\"32\" cy=\"32\" r=\"30\" fill=\"#ffdd67\"/><circle cx=\"19\" cy=\"29\" r=\"11\" fill=\"#fff\"/><path d=\"m24 29c0 2.8-2.2 5-5 5-2.8 0-5-2.2-5-5s2.2-5 5-5c2.8 0 5 2.2 5 5\" fill=\"#664e27\"/><path d=\"m56 29c0 6.1-4.9 11-11 11-6.1 0-11-4.9-11-11 0-6.1 4.9-11 11-11 6.1 0 11 4.9 11 11\" fill=\"#fff\"/><path d=\"m50 29c0 2.8-2.2 5-5 5-2.8 0-5-2.2-5-5s2.2-5 5-5c2.8 0 5 2.2 5 5\" fill=\"#664e27\"/><g fill=\"#917524\"><path d=\"m50.2 15.8c-3.2-2.7-7.5-3.9-11.7-3.1-.6.1-1.1-2-.4-2.2 4.8-.9 9.8.5 13.5 3.6.6.5-1 2.1-1.4 1.7\"/><path d=\"m25.5 12.5c-4.2-.7-8.5.4-11.7 3.1-.4.4-2-1.2-1.4-1.7 3.7-3.2 8.7-4.5 13.5-3.6.7.2.2 2.3-.4 2.2\"/></g><circle cx=\"32\" cy=\"49\" r=\"9\" fill=\"#664e27\"/><path d=\"m26 46c1.2-2.4 3.4-4 6-4 2.6 0 4.8 1.6 6 4h-12\" fill=\"#fff\"/>", 3178 label: 'wow' 3179 }, 3180 sob: { 3181 icon: "<g fill=\"#65b1ef\"><ellipse cx=\"17.5\" cy=\"59.9\" rx=\"12.5\" ry=\"1.5\"/><ellipse cx=\"44\" cy=\"60.2\" rx=\"18\" ry=\"1.8\"/></g><circle cx=\"32\" cy=\"32\" r=\"30\" fill=\"#ffdd67\"/><path d=\"m44.7 46c-1.4-3.6-4.8-6-12.7-6-8 0-11.3 2.4-12.7 6-.7 1.9.3 5 .3 5 1.3 3.9 1.1 5 12.4 5 11.3 0 11.1-1.1 12.4-5 0 0 1.1-3.1.3-5\" fill=\"#664e27\"/><path d=\"m41 45c.1-.3 0-.6-.2-.8 0 0-2-2.2-8.8-2.2-6.8 0-8.8 2.2-8.8 2.2-.2.1-.2.5-.2.8l.2.6c.1.3.3.5.5.5h16.6c.2 0 .5-.2.5-.5l.2-.6\" fill=\"#fff\"/><g fill=\"#65b1ef\"><path d=\"m44.5 60.5c2.3 0 4.6 0 6.8 0 8.2-9.9-1.5-20 .9-29.8-2.3 0-4.6 2.5-6.8 2.5-3.2 9.5 7.3 17.4-.9 27.3\"/><path d=\"m19.5 60.5c-2.3 0-4.6 0-6.8 0-8.2-9.9 1.5-20-.9-29.8 2.3 0 4.6 2.5 6.8 2.5 3.2 9.5-7.3 17.4.9 27.3\"/></g><g fill=\"#917524\"><path d=\"m40.7 18.3c3 3 7.2 4.5 11.4 4.1.6-.1.9 2.1.2 2.2-4.9.4-9.7-1.3-13.1-4.8-.6-.5 1.1-1.9 1.5-1.5\"/><path d=\"m12 22.4c4.2.4 8.4-1.1 11.4-4.1.4-.4 2.1 1 1.6 1.5-3.4 3.5-8.3 5.2-13.1 4.8-.9 0-.5-2.2.1-2.2\"/></g><g fill=\"#664e27\"><path d=\"m35.9 30.3c4.2 8 12.7 8 16.9 0 .2-.4-.3-.6-1-1-4.2 3.3-11.1 3-14.9 0-.6.4-1.2.6-1 1\"/><path d=\"m11.2 30.3c4.2 8 12.7 8 16.9 0 .2-.4-.3-.6-1-1-4.2 3.3-11.1 3-14.9 0-.7.4-1.2.6-1 1\"/></g>", 3182 label: 'sad' 3183 }, 3184 rage: { 3185 icon: "<circle cx=\"32\" cy=\"32\" r=\"30\" fill=\"#ef5350\"/><path d=\"m41 49.7c-5.8-4.8-12.2-4.8-18 0-.7.6-1.3-.4-.8-1.3 1.8-3.4 5.3-6.5 9.8-6.5s8.1 3.1 9.8 6.5c.5.8-.1 1.8-.8 1.3\" fill=\"#302424\"/><path d=\"m10.2 24.9c-1.5 4.7.6 10 5.3 12.1 4.6 2.2 10 .5 12.7-3.7l-6.9-7.7-11.1-.7\" fill=\"#fff\"/><g fill=\"#302424\"><path d=\"m14.2 25.8c-1.4 2.9-.1 6.4 2.8 7.7 2.9 1.4 6.4.1 7.7-2.8 1-1.9-9.6-6.8-10.5-4.9\"/><path d=\"m10.2 24.9c1.6-1 3.5-1.5 5.4-1.5 1.9 0 3.8.5 5.6 1.3 1.7.8 3.3 2 4.6 3.4 1.2 1.5 2.2 3.2 2.4 5.1-1.3-1.3-2.6-2.4-4-3.4-1.4-1-2.8-1.8-4.2-2.4-1.5-.7-3-1.2-4.6-1.7-1.8-.3-3.4-.6-5.2-.8\"/></g><path d=\"m53.8 24.9c1.5 4.7-.6 10-5.3 12.1-4.6 2.2-10 .5-12.7-3.7l6.9-7.7 11.1-.7\" fill=\"#fff\"/><g fill=\"#302424\"><path d=\"m49.8 25.8c1.4 2.9.1 6.4-2.8 7.7-2.9 1.4-6.4.1-7.7-2.8-1-1.9 9.6-6.8 10.5-4.9\"/><path d=\"m53.8 24.9c-1.6-1-3.5-1.5-5.4-1.5-1.9 0-3.8.5-5.6 1.3-1.7.8-3.3 2-4.6 3.4-1.2 1.5-2.2 3.2-2.4 5.1 1.3-1.3 2.6-2.4 4-3.4 1.4-1 2.8-1.8 4.2-2.4 1.5-.7 3-1.2 4.6-1.7 1.8-.3 3.4-.6 5.2-.8\"/></g>", 3186 label: 'angry'
3187 } 3188 }; 3189 3190}).call(this); 3191 3192(function() { 3193 var i, len, ref, ref1, ref2, ref3, ref4, ref5, ref6, script, scripts, src, st, 3194 indexOf = [].indexOf || function(item) { for (var i = 0, l = this.length; i < l; i++) { if (i in this && this[i] === item) return i; } return -1; }; 3195 3196 st = window.__sharethis__; 3197 3198 if (st.loaded) { 3199 return; 3200 } 3201 3202 st.loaded = true; 3203 3204 scripts = document.getElementsByTagName('script') || []; 3205 3206 for (i = 0, len = scripts.length; i < len; i++) { 3207 script = scripts[i]; 3208 src = script.getAttribute('src'); 3209 if (/\/js\/sharethis.js/.test(src)) { 3210 st.src = src; 3211 st.cms = (ref = /cms=([a-zA-Z0-9]+)/.exec(src)) != null ? ref[1] : void 0; 3212 st.product = (ref1 = /product=([a-zA-Z0-9-]+)/.exec(src)) != null ? ref1[1] : void 0; 3213 st.property = (ref2 = /property=([a-zA-Z0-9]+)/.exec(src)) != null ? ref2[1] : void 0; 3214 st.source = (ref3 = /source=([a-zA-Z0-9-]+)/.exec(src)) != null ? ref3[1] : void 0; 3215 st.ssb = (ref4 = /ssb=([a-zA-Z0-9-]+)/.exec(src)) != null ? ref4[1] : void 0; 3216 st.account = (ref5 = /account=([a-zA-Z0-9-]+)/.exec(src)) != null ? ref5[1] : void 0; 3217 } 3218 } 3219 3220 if (st.cms == null) { 3221 st.cms = 'unknown'; 3222 } 3223 3224 st.href = document.location.href; 3225 3226 if (st.source == null) { 3227 st.source = 'sharethis.js'; 3228 } 3229 3230 if (st.ssb == null) { 3231 st.ssb = 'false'; 3232 } 3233 3234 if (st.account == null) { 3235 st.account = 'true'; 3236 } 3237 3238 if (st.property == null) { 3239 st.property = 'anonymous'; 3240 } 3241 3242 if (st.product == null) { 3243 st.product = 'unknown'; 3244 } 3245 3246 if (ref6 = st.product, indexOf.call(st.PRODUCTS, ref6) < 0) { 3247 st.product = 'unknown'; 3248 } 3249 3250 st.initialize = function(options) { 3251 st.init = function(config) { 3252 st.config = config; 3253 return window.__sharethis__docReady(function() { 3254 var j, len1, product, ref7, results; 3255 if (typeof window.onShareThisLoaded === "function") { 3256 window.onShareThisLoaded(); 3257 } 3258 ref7 = st.PRODUCTS; 3259 results = []; 3260 for (j = 0, len1 = ref7.length; j < len1; j++) { 3261 product = ref7[j]; 3262 results.push(st.load(product, config[product])); 3263 } 3264 return results; 3265 }); 3266 }; 3267 if (st.config) { 3268 return st.init(st.config); 3269 } 3270 if (st.property !== 'anonymous') { 3271 return st.js("https://buttons-config.sharethis.com/js/" + st.property + ".js"); 3272 } else if (st.account !== 'false') { 3273 return setTimeout((function() { 3274 var shareElements, stickyLoaded; 3275 shareElements = document.querySelectorAll('.sharethis-share-buttons'); 3276 if (!shareElements.length) { 3277 return; 3278 } 3279 stickyLoaded = false; 3280 return shareElements.forEach(function(shareElement) { 3281 var ref7, type; 3282 type = (ref7 = shareElement.dataset) != null ? ref7.type : void 0; 3283 if (!type) { 3284 return; 3285 } 3286 if (type === 'sticky-share-buttons') { 3287 if (stickyLoaded) { 3288 return; 3289 } 3290 stickyLoaded = true; 3291 } 3292 return st.loadNonReg(type, shareElement); 3293 }); 3294 }), 10); 3295 } else { 3296 if (st.account === 'false') { 3297 return setTimeout((function() { 3298 return st.load(st.product, { 3299 enabled: true, 3300 is_ssb: st.ssb === 'true', 3301 num_ssb_networks: 6 3302 }); 3303 }), 10); 3304 } else { 3305 return setTimeout((function() { 3306 return st.init({}); 3307 }), 10); 3308 } 3309 } 3310 }; 3311 3312 st.initialize(); 3313 3314 st.ibl(); 3315 3316 st.ecommerce(); 3317 3318 st.floc(); 3319 3320}).call(this); 3321 3322var __stdos__ = __stdos__ || {}; 3323 3324var tpcCookiesEnableCheckingDone = false; 3325var tpcCookiesEnabledStatus = true; 3326 3327if (typeof(__stdos__.data) == "undefined") { 3328 __stdos__.data = { 3329 bInit: false, 3330 pageInfo: {}, 3331 resetPageData: function() { 3332 __stdos__.data.pageInfo.hostname = ""; 3333 __stdos__.data.pageInfo.location = ""; 3334 __stdos__.data.pageInfo.product = "DOS2" 3335 __stdos__.data.pageInfo.url = ""; 3336 __stdos__.data.pageInfo.source = "" 3337 3338 }, 3339 init: function() { 3340 if (!__stdos__.data.bInit) { 3341 __stdos__.data.bInit = true; 3342 __stdos__.data.resetPageData(); 3343 var b = document.location.href; 3344 var a = "", 3345 c = ""; 3346 __stdos__.data.set("fcmp", typeof(window.__cmp) == 'function', "pageInfo"); 3347 __stdos__.data.set("fcmpv2", typeof(window.__tcfapi) == 'function', "pageInfo"); 3348 __stdos__.data.set("has_segmentio", typeof(window.analytics && window.analytics.identify) == 'function', "pageInfo"); 3349 __stdos__.data.set("url", b, "pageInfo"); 3350 __stdos__.data.set("title", document.title, "pageInfo"); 3351 a = (new Date()).getTime().toString(); 3352 c = Number(Math.random().toPrecision(5).toString().substr(2)).toString(); 3353 __stdos__.data.validateRefDomain(); 3354 __stdos__.data.set("hostname", document.location.hostname, "pageInfo"); 3355 __stdos__.data.set("location", document.location.pathname, "pageInfo") 3356 } 3357 }, 3358 validateRefDomain: function() { 3359 var a = __stdos__.data.get("refDomain", "pageInfo"); 3360 if (!a) { 3361 this.setRefDomain(window.document.referrer) 3362 } 3363 }, 3364 setRefDomain: function(a) { 3365 if (a.length == 0) { 3366 return 3367 } 3368 var b = a.replace("http://", "").replace("https://", "").split("/"); 3369 if (b.length > 0) { 3370 a = (typeof(b[0]) != "undefined") ? b[0] : a; 3371 var refQuery = (typeof(b[1]) != "undefined") ? b[1] : ""; 3372 __stdos__.data.set("refQuery", refQuery, "pageInfo"); 3373 __stdos__.data.set("refDomain", a, "pageInfo") 3374 } 3375 }, 3376 set: function(a, c, b) { 3377 if (typeof(c) == "number" || typeof(c) == "boolean") { 3378 __stdos__.data[b][a] = c 3379 } else { 3380 if (typeof(c) == "undefined" || c == null) {} else { 3381 __stdos__.data[b][a] = encodeURIComponent(decodeURIComponent(unescape(c.replace(/<[^<>]*>/gi, " ")).replace(/%/gi, "%25"))); 3382 if (a == "url" || a == "location" || a == "image") { 3383 try { 3384 __stdos__.data[b][a] = encodeURIComponent(decodeURIComponent(decodeURI(c.replace(/<[^<>]*>/gi, " ")).replace(/%/gi, "%25"))) 3385 } catch (d) { 3386 __stdos__.data[b][a] = encodeURIComponent(decodeURIComponent(unescape(c.replace(/<[^<>]*>/gi, " ")).replace(/%/gi, "%25"))) 3387 } 3388 } 3389 } 3390 } 3391 }, 3392 get: function(a, b) { 3393 try { 3394 if (__stdos__.data[b] && __stdos__.data[b][a]) { 3395 return decodeURIComponent(__stdos__.data[b][a]) 3396 } else { 3397 return false 3398 } 3399 } catch (c) { 3400 return false 3401 } 3402 }, 3403 unset: function(a, b) { 3404 if (__stdos__.data[b] && typeof(__stdos__.data[b][a]) != "undefined") { 3405 delete __stdos__.data[b][a] 3406 } 3407 }, 3408 bindEvent: function(element, eventName, eventHandler) { 3409 if (element.addEventListener) { 3410 element.addEventListener(eventName, eventHandler, false); 3411 } else if (element.attachEvent) { 3412 element.attachEvent('on' + eventName, eventHandler); 3413 } 3414 },
3415 debug: function(endpoint, event) { 3416 __stdos__.data.init(); 3417 var a = __stdos__.data.pageInfo; 3418 var c = ""; 3419 var b; 3420 for (b in a) { 3421 c += b + "=" + a[b] + "&" 3422 } 3423 c = c.substring(0, c.length - 1); 3424 3425 var loggerUrl = "https://l.sharethis.com/"; 3426 loggerUrl += endpoint; 3427 loggerUrl += "?event=" + event; 3428 loggerUrl += "&" + c; 3429 3430 var e = new Image(1, 1); 3431 e.src = loggerUrl; 3432 e.onload = function() { 3433 return 3434 }; 3435 }, 3436 parseCookie: function(name, cookie) { 3437 cookie = "; " + cookie 3438 var parts = cookie.split("; "+name+"="); 3439 if(parts.length === 2) { 3440 return parts.pop().split(';').shift(); 3441 }else { 3442 return null; 3443 } 3444 }, 3445 writeCookie: function(name, value, max_age) { 3446 if (!max_age) { 3447 max_age = 33696000 3448 } 3449 var host = (window && window.location && window.location.hostname) || ''; 3450 var parts = host.split('.'); 3451 var domain = ""; 3452 if (parts.length > 1) { 3453 domain = "domain=." + parts.slice(-2).join('.'); 3454 } 3455 var samesite_secure = ""; 3456 try { 3457 document.cookie = "st_samesite=1;SameSite=None;Secure"; 3458 if (__stdos__.data.parseCookie("st_samesite", document.cookie)) { 3459 samesite_secure = "SameSite=None;Secure" 3460 document.cookie = "st_samesite=1;max-age=0;SameSite=None;Secure"; 3461 } 3462 } catch (e) {} 3463 document.cookie = name + "=" + value + ";" + domain + ";path=/;max-age=" + max_age + ";" + samesite_secure; 3464 }, 3465 setConsent: function(consent) { 3466 for(var consent_key in consent) { 3467 __stdos__.data.set(consent_key,consent[consent_key],"pageInfo"); 3468 window.__sharethis__[consent_key] = consent[consent_key]; 3469 } 3470 }, 3471 getEUConsent: function(c) { 3472 3473 function once(fn, context) { 3474 var result; 3475 return function() { 3476 if(fn) { 3477 result = fn.apply(context || this, arguments); 3478 fn = null; 3479 } 3480 return result; 3481 }; 3482 } 3483 3484 var done = once(c); 3485 3486 // set usprivacy first if we have it 3487 var usprivacy = __stdos__.data.parseCookie("usprivacy", document.cookie); 3488 if (usprivacy) __stdos__.data.setConsent({ 3489 usprivacy: usprivacy 3490 }); 3491 3492 // keep track of how long it takes to get consent 3493 var start = Date.now(); 3494 3495 var useCookie = once(function() { 3496 3497 // check for first party cookies 3498 var euconsent_v2 = __stdos__.data.parseCookie("euconsent-v2", document.cookie); 3499 if (euconsent_v2 !== null) { 3500 3501 // use the first party cookie if it exists 3502 __stdos__.data.setConsent({ 3503 gdpr_consent: euconsent_v2, 3504 gdpr_domain: document.location.hostname, 3505 gdpr_method: "cookie" 3506 }); 3507 } 3508 done(); 3509 }); 3510 3511 if (typeof window.__tcfapi == "function") { 3512 3513 // fallback to cookie in case the tcf api is too slow or unavailable 3514 var timeout = setTimeout(useCookie, 5000); 3515 3516 // first we try to get the data from the cmp 3517 // wrap in a try catch since we don't control the tcfapi code on page 3518 try { 3519 3520 const tcfapi_callback = (data) => { 3521 if (data && data.tcString) { 3522 var gdpr_domain = (data.isServiceSpecific) 3523 ? document.location.hostname : ".sharethis.com"; 3524 __stdos__.data.setConsent({ 3525 consent_duration: Date.now() - start, 3526 gdpr_consent: data.tcString, 3527 gdpr_domain: gdpr_domain, 3528 gdpr_method: "api" 3529 }); 3530 clearTimeout(timeout); 3531 done(); 3532 __tcfapi('removeEventListener', 2, () => {}, data.listenerId); 3533 } 3534 } 3535 __tcfapi('addEventListener', 2, tcfapi_callback); 3536 3537 } catch (e) { 3538 3539 // fallback to cookie if there is an error 3540 useCookie(); 3541 } 3542 } else { 3543 3544 // fallback to cookie if the tcfapi doesn't exist 3545 useCookie(); 3546 } 3547 } 3548 }; 3549 __stdos__.data.resetPageData() 3550} 3551__stdos__.logger = { 3552 loggerUrl: "https://l.sharethis.com/", 3553 version: "st_sop.js", 3554 lang: "en", 3555 constructParamString: function() { 3556 var a = __stdos__.data.pageInfo; 3557 var c = ""; 3558 var b; 3559 for (b in a) { 3560 if (a[b] == null || a[b] === "") continue; 3561 c += b + "=" + a[b] + "&" 3562 } 3563 return c.substring(0, c.length - 1) 3564 }, 3565 log: function(a, h, j) { 3566 __stdos__.data.set("ts" + new Date().getTime(), "", "pageInfo") 3567 h = __stdos__.logger.loggerUrl 3568 3569 __stdos__.data.getEUConsent(function(consent){ 3570 if (!window.__sharethis__.consent_queue) { 3571 window.__sharethis__.consent_queue = {} 3572 } 3573 window.__sharethis__.consent_queue.initialized = true; 3574 if (window.__sharethis__.consent_queue.functions) { 3575 for (var i = 0; i < window.__sharethis__.consent_queue.functions.length; i++) { 3576 window.__sharethis__.consent_queue.functions[i](); 3577 } 3578 window.__sharethis__.consent_queue.functions = null; 3579 } 3580 var g = [ 3581 h, 3582 a, 3583 "?event=" + a, 3584 "&" + __stdos__.logger.constructParamString(), 3585 "&version=" + __stdos__.logger.version, 3586 "&lang=" + __stdos__.logger.lang 3587 ].join(''); 3588 var fpestid = __stdos__.data.parseCookie("fpestid", document.cookie);
3589 if (!fpestid) { 3590 try { fpestid = localStorage.getItem("fpestid") } catch(e) {} 3591 } 3592 if (fpestid) { 3593 g += "&fpestid=" + fpestid; 3594 } 3595 var description = window.__sharethis__.getDescription(); 3596 if (description) { 3597 g += "&description=" + encodeURIComponent(description); 3598 } 3599 var gdpr_consent = __stdos__.data.get("gdpr_consent", "pageInfo"); 3600 __stdos__.data.setConsent({ 3601 pview_had_consent: (gdpr_consent) ? true : false 3602 }); 3603 3604 ua_fields = {} 3605 var user_agent_data = {} 3606 window.__sharethis__.ua_fields = ua_fields 3607 try { 3608 if (navigator.userAgentData) { 3609 user_agent_data = navigator.userAgentData; 3610 } 3611 3612 if (Array.isArray(user_agent_data.brands)) { 3613 var ua = "" 3614 user_agent_data.brands.forEach((brand) => { 3615 if (ua) { 3616 ua += ", " 3617 } 3618 ua += `"${brand.brand}";v="${brand.version}"` 3619 }); 3620 g += "&ua=" + encodeURIComponent(ua); 3621 ua_fields.ua = ua 3622 } 3623 3624 if (user_agent_data.mobile !== undefined) { 3625 var ua_mobile = (user_agent_data.mobile) ? "true" : "false"; 3626 g += "&ua_mobile=" + encodeURIComponent(ua_mobile); 3627 ua_fields.ua_mobile = ua_mobile 3628 } 3629 3630 if (user_agent_data.platform) { 3631 var ua_platform = user_agent_data.platform 3632 g += "&ua_platform=" + encodeURIComponent(ua_platform); 3633 ua_fields.ua_platform = ua_platform 3634 } 3635 3636 } catch (e) { 3637 // do nothing for now if it fails 3638 } 3639 3640 // if there is no getHighEntropyValues function create a shell function 3641 // in order to keep the workflow unified 3642 if (!user_agent_data.getHighEntropyValues) { 3643 user_agent_data.getHighEntropyValues = () => { 3644 return new Promise((resolve) => { 3645 resolve({}); 3646 }); 3647 } 3648 } 3649 3650 function once(fn, context) { 3651 var result; 3652 return function() { 3653 if(fn) { 3654 result = fn.apply(context || this, arguments); 3655 fn = null; 3656 } 3657 return result; 3658 }; 3659 } 3660 3661 var sendPageView = once(function() { 3662 3663 try { 3664 try { 3665 if (crypto && crypto.randomUUID) { 3666 g += "&uuid=" + crypto.randomUUID() 3667 } 3668 __stdos__.data.pageInfo.pview_url = g 3669 } catch (e) {} 3670 var c = new XMLHttpRequest(); 3671 c.open("GET", g, true); 3672 c.withCredentials = true; 3673 c.onreadystatechange = function() { 3674 if (this.readyState == this.DONE) { 3675 try { 3676 var res = JSON.parse(c.responseText); 3677 if (typeof(res) !== "undefined") { 3678 __stdos__.data.set("stid", res.stid, "pageInfo"); 3679 if(res.fpestid) { 3680 __stdos__.data.writeCookie("fpestid", res.fpestid, res.fpestid_maxage); 3681 var fpestid_cookie = __stdos__.data.parseCookie("fpestid", document.cookie); 3682 try { 3683 if (!fpestid_cookie) { 3684 localStorage.setItem("fpestid", res.fpestid,); 3685 var timestamp = Math.floor(Date.now() / 1000); 3686 localStorage.setItem("fpestid_timestamp", timestamp.toString()); 3687 } 3688 } 3689 catch(e) {} 3690 } 3691 if(res.status === "true") { 3692 var product = __stdos__.data.get("product", "pageInfo") 3693 3694 if ((product === "ecommerce") || 3695 (product === "privy-share-buttons") || 3696 (product === "ga")) { 3697 return; 3698 } 3699 window.__sharethis__.loadPixel(); 3700 3701 var st_debug = false;
3702 3703 try { 3704 3705 if (window && window.location && window.location.href && window.location.href.endsWith("st_debug=true")) { 3706 st_debug = true 3707 } 3708 3709 // run lotame's panorama id code if indicated by the content rule 3710 if(res.lotame === "true" ) { 3711 !function() { 3712 3713 if (st_debug) { 3714 console.log("lotame firing 1"); 3715 } 3716 3717 // Callback that will be triggered after each call to sync() 3718 // and let you have access to the profile and/or panorama ids 3719 var syncCallback = function (profile) { 3720 3721 if (st_debug) { 3722 console.log("lotame firing 2"); 3723 } 3724 3725 // sync the panorama id 3726 var panorama_id = profile.getPanoramaId(); 3727 if (st_debug) { 3728 console.log(panorama_id); 3729 console.log(res.stid); 3730 } 3731 if (panorama_id && res.stid) { 3732 var url = "https://sync.sharethis.com/panorama" 3733 url += "?uid=" + encodeURIComponent(panorama_id) 3734 url += "&stid=" + encodeURIComponent(res.stid) 3735 st.send(url) 3736 } 3737 3738 }; 3739 3740 var lotame_client_id = '16621'; 3741 var lotame_tag_input = { 3742 config: { 3743 onProfileReady: syncCallback, 3744 } 3745 }; 3746 3747 // Lotame initialization 3748 var lotame_config = lotame_tag_input.config || {}; 3749 var namespace = window['lotame_sync_' + lotame_client_id] = {}; 3750 namespace.config = lotame_config; 3751 namespace.data = {}; 3752 namespace.cmd = namespace.cmd || []; 3753 } (); 3754 3755 window.lotame_sync_16621.cmd.push(function() { 3756 window.lotame_sync_16621.setUserConsent({ 3757 "lotameConsent": true 3758 }); 3759 window.lotame_sync_16621.sync(); 3760 }); 3761 3762 window.__sharethis__.js("https://platform-api.sharethis.com/panorama.js") 3763 } 3764 } catch (e) { 3765 if (st_debug) { 3766 console.log(e) 3767 } 3768 } 3769 3770 } 3771 3772 if(res.dmd === "true") { 3773 window.__sharethis__.js("https://platform-api.sharethis.com/dmd.js") 3774 } 3775 3776 if(res.atlas) { 3777 window.__sharethis__.js("https://platform-api.sharethis.com/atlas-exp.js") 3778 } 3779 3780 } 3781 j ? j() : null 3782 } catch(e) { 3783 } 3784 } 3785 }; 3786 c.send() 3787 } catch (d) { 3788 var e = new Image(1, 1); 3789 e.src = g; 3790 e.onload = function() { 3791 return 3792 }; 3793 j ? j() : null 3794 } 3795 3796 }) 3797 3798 var getOverride = function() { 3799 var is_safari = /^((?!chrome|android).)*safari/i.test(navigator.userAgent); 3800 if (is_safari) { 3801 var req = new XMLHttpRequest(); 3802 req.open("GET", "https://data.stbuttons.click/data", true); 3803 req.onreadystatechange = function() { 3804 try { 3805 if (this.readyState == this.DONE) { 3806 var res = JSON.parse(req.responseText) 3807 if (res.data) { 3808 __stdos__.data.set("override", res.data,"pageInfo"); 3809 g += "&override=" + encodeURIComponent(res.data); 3810 } 3811 sendPageView() 3812 } 3813 } catch(e) { 3814 sendPageView() 3815 } 3816 } 3817 req.send() 3818 3819 // send page view if request doesn't complete in 2 seconds 3820 setTimeout(sendPageView, 2000) 3821 } else { 3822 sendPageView() 3823 } 3824 } 3825 3826 var high_entropy_fields = [ 3827 "model", 3828 "platformVersion", 3829 "fullVersionList" 3830 ] 3831 3832 user_agent_data.getHighEntropyValues(high_entropy_fields).then((high_entropy_values) => { 3833 3834 try { 3835 3836 if (Array.isArray(high_entropy_values.fullVersionList)) { 3837 var ua_full_version_list = "" 3838 high_entropy_values.fullVersionList.forEach((brand) => { 3839 if (ua_full_version_list) { 3840 ua_full_version_list += ", " 3841 } 3842 ua_full_version_list += `"${brand.brand}";v="${brand.version}"` 3843 }); 3844 g += "&ua_full_version_list=" + encodeURIComponent(ua_full_version_list); 3845 ua_fields.ua_full_version_list = ua_full_version_list 3846 } 3847 3848 if (high_entropy_values.model) { 3849 var ua_model = high_entropy_values.model 3850 g += "&ua_model=" + encodeURIComponent(ua_model); 3851 ua_fields.ua_model = ua_model 3852 } 3853 3854 if (high_entropy_values.platformVersion) { 3855 var ua_platform_version = high_entropy_values.platformVersion 3856 g += "&ua_platform_version=" + encodeURIComponent(ua_platform_version); 3857 ua_fields.ua_platform_version = ua_platform_version 3858 } 3859 3860 } catch (e) { 3861 // do nothing for now 3862 } 3863 3864 getOverride() 3865 3866 }); 3867 3868 }) 3869 } 3870}; 3871 3872(function(){ 3873 var _st = window.__sharethis__; 3874 var st_pview_logged = typeof stlib !== 'undefined' && stlib !== null && stlib.onscriptload; 3875 3876 if (!st_pview_logged && !__stdos__.onscriptload && document.URL.indexOf("edge.sharethis.com") == -1) { 3877 __stdos__.data.init(); 3878 __stdos__.data.set("cms", _st.cms, "pageInfo"); 3879 __stdos__.data.set("publisher", _st.property, "pageInfo") 3880 __stdos__.data.set("product", _st.product, "pageInfo") 3881 __stdos__.data.set("source", _st.source, "pageInfo") 3882 if (_st.embeds && st.embeds.length > 0 && !_st.is_ie) { 3883 __stdos__.data.set("embeds_csv", _st.embeds.join(','), "pageInfo") 3884 /* 3885 setTimeout(function(){ 3886 //_st.js("https://platform-api.sharethis.com/rhombus.js") 3887 }, 3000) 3888 */ 3889 } 3890 __stdos__.data.set("sop", true, "pageInfo") 3891 __stdos__.onscriptload = true; 3892 __stdos__.logger.log("pview"); 3893 } 3894})(); 3895 3896 3897 3898(function() { 3899 var st; 3900 3901 st = window.__sharethis__; 3902 3903 st.loadSsb = function($el, config, load) { 3904 var _xhr, is_preview, num_ssb_networks; 3905 num_ssb_networks = config.num_ssb_networks, is_preview = config.is_preview; 3906 if (num_ssb_networks == null) { 3907 num_ssb_networks = 6; 3908 } 3909 if (is_preview == null) { 3910 is_preview = false;
3911 } 3912 if (is_preview) { 3913 load($el, config); 3914 return; 3915 } 3916 _xhr = new XMLHttpRequest(); 3917 _xhr.open("GET", "https://datasphere-sbsvc.sharethis.com?n=" + num_ssb_networks + "&debug"); 3918 _xhr.responseType = "json"; 3919 _xhr.onload = function() { 3920 var ref, ref1; 3921 if ((ref = _xhr.response) != null ? ref.buttons : void 0) { 3922 config.networks = (ref1 = _xhr.response) != null ? ref1.buttons : void 0; 3923 } 3924 return load($el, config); 3925 }; 3926 return _xhr.send(); 3927 }; 3928 3929}).call(this); 3930 3931(function() { 3932 var st; 3933 3934 st = window.__sharethis__; 3935 3936 st.loader['custom-share-buttons'] = function() { 3937 var $button, $buttons, i, j, len, len1, results; 3938 $buttons = document.querySelectorAll('.st-custom-button'); 3939 if ($buttons.length === 0) { 3940 return; 3941 } 3942 for (i = 0, len = $buttons.length; i < len; i++) { 3943 $button = $buttons[i]; 3944 st.addEventListener($button, 'click', function() { 3945 return st.share({ 3946 count_url: this.getAttribute('data-count-url'), 3947 description: this.getAttribute('data-description'), 3948 image: this.getAttribute('data-image'), 3949 message: this.getAttribute('data-message'), 3950 network: this.getAttribute('data-network'), 3951 share_url: this.getAttribute('data-share-url'), 3952 short_url: this.getAttribute('data-short-url'), 3953 subject: this.getAttribute('data-email-subject'), 3954 title: this.getAttribute('data-title'), 3955 url: this.getAttribute('data-url'), 3956 username: this.getAttribute('data-username') 3957 }); 3958 }); 3959 } 3960 results = []; 3961 for (j = 0, len1 = $buttons.length; j < len1; j++) { 3962 $button = $buttons[j]; 3963 results.push((function($button) { 3964 var $count, data_count_url, data_url, network, url; 3965 network = $button.getAttribute('data-network'); 3966 data_url = $button.getAttribute('data-url'); 3967 data_count_url = $button.getAttribute('data-count-url'); 3968 url = data_count_url || data_url || st.href; 3969 $count = $button.querySelector('.count'); 3970 if ($count) { 3971 return st.loadCounts({ 3972 url: url 3973 }, function(counts) { 3974 var label, ref, value; 3975 ref = counts[network] || {}, label = ref.label, value = ref.value; 3976 if (label && value > 0) { 3977 if ($count != null) { 3978 $count.innerHTML = label; 3979 } 3980 return st.removeClass($button, 'st-hide-label'); 3981 } else { 3982 return st.addClass($button, 'st-hide-label'); 3983 } 3984 }); 3985 } 3986 })($button)); 3987 } 3988 return results; 3989 }; 3990 3991}).call(this); 3992 3993(function() { 3994 var st; 3995 3996 st = window.__sharethis__; 3997 3998 st.loader['email-list-builder'] = function(config) { 3999 var $backdrop, $button, $close, $el, $error, $input, $modal, behavior, button_label, color, common_css, container, css, fade_in, headline, hover_css, html, id, message, onClose, onScroll, onSubmit, property, ref, scroll_down, scroll_timeout, send, show, thanks; 4000 if (config == null) { 4001 config = {}; 4002 } 4003 if (!config.enabled) { 4004 return; 4005 } 4006 color = config.color, button_label = config.button_label, headline = config.headline, message = config.message, property = config.property, thanks = config.thanks, scroll_down = config.scroll_down; 4007 behavior = config.behavior, container = config.container, fade_in = config.fade_in, onClose = config.onClose, onSubmit = config.onSubmit; 4008 if (behavior !== 'show') { 4009 if (st.storage.get('st_email_list_builder_email_collected')) { 4010 return; 4011 } 4012 } 4013 if (color == null) { 4014 color = st.COLORS['sharethis']; 4015 } 4016 if (behavior == null) { 4017 behavior = 'smart'; 4018 } 4019 if (button_label == null) { 4020 button_label = 'Join'; 4021 } 4022 if (fade_in == null) { 4023 fade_in = true; 4024 } 4025 if (headline == null) { 4026 headline = 'SUBSCRIBE VIA EMAIL'; 4027 } 4028 if (message == null) { 4029 message = 'Subscribe to out mailing list to get updates!'; 4030 } 4031 if (property == null) { 4032 property = st.property; 4033 } 4034 if (scroll_down == null) { 4035 scroll_down = 0; 4036 } 4037 if (thanks == null) { 4038 thanks = 'Thank you for subscribing!'; 4039 } 4040 if (container == null) { 4041 container = document.body; 4042 } 4043 if (typeof container === 'string') { 4044 container = document.getElementById(container); 4045 } 4046 ref = st.newElement(null), $el = ref.$el, id = ref.id; 4047 st.addClass($el, 'st-email-list-builder'); 4048 if (fade_in) { 4049 st.addClass($el, 'st-hidden'); 4050 } 4051 common_css = "#" + id + " {\n " + st.BORDER_BOX + "\n " + (st.TRANSITION('opacity')) + "\n bottom: 0;\n display: block;\n left: 0;\n opacity: 1;\n position: fixed;\n right: 0;\n text-align: center;\n top: 0;\n z-index: 9999;\n}\n#" + id + ".st-hidden {\n opacity: 0;\n}\n#" + id + " .st-backdrop {\n background: rgba(0, 0, 0, 0.8);\n bottom: 0;\n left: 0;\n position: absolute;\n right: 0;\n top: 0;\n z-index: 10;\n}\n#" + id + " .st-modal {\n " + (st.BORDER_RADIUS(6)) + "\n " + st.BORDER_BOX + "\n " + (st.TRANSITION('opacity')) + "\n background: #fff;\n border-top: 10px solid " + color + ";\n bottom: 0;\n color: #333;\n margin: 100px auto 0;\n max-width: 90%;\n opacity: 1;\n padding: 20px 40px;\n position: relative;\n width: 600px;\n z-index: 20;\n}\n#" + id + " .st-modal.st-hidden {\n opacity: 0;\n}\n#" + id + " .st-headline {\n margin-bottom: 5px;\n font-size: 32px;\n line-height: 38px;\n}\n#" + id + " .st-message {\n margin-bottom: 25px;\n font-size: 18px;\n line-height: 24px;\n}\n#" + id + " .st-error {\n color: red;\n font-size: 14px;
4051\n line-height: 26px;\n}\n#" + id + " input {\n " + st.BORDER_BOX + "\n " + (st.BORDER_RADIUS(4)) + "\n background-color: #fff;\n border: 1px solid #aeaeae;\n color: #333;\n display: block;\n font-size: 15px;\n height: 48px;\n margin-bottom: 25px;\n padding: 12px;\n text-align: center;\n width: 100%;\n}\n#" + id + " .st-btn {\n " + st.BORDER_BOX + "\n " + (st.BORDER_RADIUS(4)) + "\n " + (st.TRANSITION()) + "\n background-color: #fff;\n border: 0;\n background: " + color + ";\n color: #fff;\n cursor: pointer;\n display: inline-block;\n font-size: 18px;\n height: 48px;\n line-height: 48px;\n min-width: 120px;\n padding: 0 20px;\n}\n#" + id + " .st-close {\n " + (st.BOX_SHADOW('0 0 20px black')) + "\n " + (st.BORDER_RADIUS(18)) + "\n background: #555;\n border: 3px solid white;\n cursor: pointer;\n font-size: 24px;\n height: 36px;\n padding-top: 1px;\n position: absolute;\n right: -15px;\n top: -23px;\n width: 36px;\n}"; 4052 hover_css = "#" + id + " .st-btn:hover {\n}"; 4053 css = common_css; 4054 if (!st.mobile) { 4055 css += hover_css; 4056 } 4057 st.css(css); 4058 html = "<div class=\"st-backdrop\"></div>\n<div class=\"st-modal\">\n <div class=\"st-headline\">" + headline + "</div>\n <div class=\"st-message\">" + message + "</div>\n <div class=\"st-error\"></div>\n <input class=\"st-email\" type=\"text\" placeholder=\"[email protected]\" />\n <div class=\"st-btn\">" + button_label + "</div>\n <div class=\"st-close\">\n " + st.ICONS['close'] + "\n </div>\n</div>"; 4059 $el.innerHTML = html; 4060 $backdrop = $el.querySelector('.st-backdrop'); 4061 $button = $el.querySelector('.st-btn'); 4062 $close = $el.querySelector('.st-close'); 4063 $error = $el.querySelector('.st-error'); 4064 $input = $el.querySelector('input'); 4065 $modal = $el.querySelector('.st-modal'); 4066 show = function() { 4067 var onScroll, seen_at; 4068 if (behavior !== 'show') { 4069 seen_at = st.storage.get('st_email_list_builder_seen_at'); 4070 if (Date.now() - seen_at < st.WEEK) { 4071 return; 4072 } 4073 st.storage.set('st_email_list_builder_seen_at', Date.now()); 4074 } 4075 if (container != null) { 4076 container.appendChild($el); 4077 } 4078 if (0 === scroll_down) { 4079 return setTimeout((function() { 4080 return st.removeClass($el, 'st-hidden'); 4081 }), 10); 4082 } else { 4083 onScroll = function(e) {}; 4084 st.addEventListener(document, 'scroll', function(e) { 4085 var scroll_timeout; 4086 if (scroll_timeout) { 4087 clearTimeout(scroll_timeout); 4088 } 4089 return scroll_timeout = setTimeout((function() { 4090 if (st.getScrollDepth() > scroll_down) { 4091 st.removeEventListener(document, 'scroll', onScroll); 4092 return st.removeClass($el, 'st-hidden'); 4093 } 4094 }), 1000); 4095 }); 4096 return st.addEventListener(document, 'scroll', onScroll); 4097 } 4098 }; 4099 st.addEventListener($backdrop, 'click', function() { 4100 st.close($el); 4101 return typeof onClose === "function" ? onClose() : void 0; 4102 }); 4103 st.addEventListener($close, 'click', function() { 4104 st.close($el); 4105 return typeof onClose === "function" ? onClose() : void 0; 4106 }); 4107 st.addEventListener($input, 'keydown', function(e) { 4108 if (st.isEnter(e)) { 4109 send(); 4110 } 4111 return $error.innerHTML = ''; 4112 }); 4113 st.addEventListener($button, 'click', function() { 4114 return send(); 4115 }); 4116 st.addEventListener(document, 'keydown', function(e) { 4117 if (st.isEsc(e)) { 4118 st.close($el); 4119 return typeof onClose === "function" ? onClose() : void 0; 4120 } 4121 }); 4122 send = function() { 4123 var email, url; 4124 email = $el.querySelector('.st-email').value; 4125 url = st.href; 4126 if (!st.isValidEmail(email)) { 4127 $error.innerHTML = 'Please enter a valid email'; 4128 return; 4129 } 4130 st.send(st.API + "/v1.0/email-list-builder/collect", { 4131 email: email, 4132 property: property 4133 }); 4134 st.log({ 4135 event: 'elb-submit', 4136 url: url 4137 }); 4138 st.emit('email-submitted', { 4139 email: email, 4140 property: property, 4141 url: url 4142 }); 4143 st.storage.set('st_email_list_builder_collected', true); 4144 st.addClass($modal, 'st-hidden'); 4145 return setTimeout((function() { 4146 html = "<div class=\"st-headline\">" + thanks + "</div>"; 4147 $modal.innerHTML = html; 4148 st.removeClass($modal, 'st-hidden'); 4149 return setTimeout((function() { 4150 st.close($el); 4151 return typeof onSubmit === "function" ? onSubmit(email) : void 0; 4152 }), 2500); 4153 }), 500); 4154 }; 4155 if (behavior === 'show' || 0 !== scroll_down) { 4156 return show(); 4157 } else { 4158 setTimeout((function() { 4159 return show(); 4160 }), 60 * 1000); 4161 scroll_timeout = null; 4162 onScroll = function(e) { 4163 return st.addEventListener(document, 'scroll', function(e) { 4164 if (scroll_timeout) { 4165 clearTimeout(scroll_timeout); 4166 } 4167 return scroll_timeout = setTimeout((function() { 4168 if (st.getScrollDepth() > 60) { 4169 st.removeEventListener(document, 'scroll', onScroll); 4170 return show(); 4171 } 4172 }), 1000); 4173 }); 4174 }; 4175 return st.addEventListener(document, 'scroll', onScroll); 4176 } 4177 }; 4178 4179}).call(this); 4180 4181(function() { 4182 var st; 4183 4184 st = window.__sharethis__; 4185
4186 st.loader['gdpr-compliance-tool'] = function(config) { 4187 var _xhr, color, commandQueue, display, publisher_name, publisher_purposes, scope; 4188 if (config == null) { 4189 config = {}; 4190 } 4191 if (!config.enabled) { 4192 return; 4193 } 4194 if (window.__cmp) { 4195 return; 4196 } 4197 color = config.color, display = config.display, publisher_name = config.publisher_name, publisher_purposes = config.publisher_purposes, scope = config.scope; 4198 if (color == null) { 4199 color = '#2e7d32'; 4200 } 4201 if (publisher_name == null) { 4202 publisher_name = ''; 4203 } 4204 if (publisher_purposes == null) { 4205 publisher_purposes = []; 4206 } 4207 commandQueue = []; 4208 st.addEventListener('message', function(event) { 4209 return window.__cmp.receiveMessage(event); 4210 }); 4211 window.__cmp = function(command, parameter, callback) { 4212 return commandQueue.push({ 4213 command: command, 4214 paramter: parameter, 4215 callback: callback 4216 }); 4217 }; 4218 window.__cmp.commandQueue = commandQueue; 4219 window.__cmp.receiveMessage = function(event) { 4220 var data; 4221 data = event && event.data && event.data.__cmpCall; 4222 if (data) { 4223 return commandQueue.push({ 4224 callId: data.callId, 4225 command: data.command, 4226 parameter: data.parameter, 4227 event: event 4228 }); 4229 } 4230 }; 4231 window.__cmp.config = { 4232 storeConsentGlobally: scope === 'global', 4233 publisherName: publisher_name, 4234 publisherPurposeList: publisher_purposes, 4235 color: color 4236 }; 4237 if (display === "always") { 4238 __cmp('showConsentTool'); 4239 return st.js("https://gdpr-api.sharethis.com/cmp.js"); 4240 } else if (display === "eu") { 4241 _xhr = new XMLHttpRequest(); 4242 _xhr.open("GET", "https://gdpr-api.sharethis.com/is_eu"); 4243 _xhr.responseType = "json"; 4244 _xhr.onload = (function(_this) { 4245 return function() { 4246 var ref; 4247 if ((ref = _xhr.response) != null ? ref.is_eu : void 0) { 4248 __cmp('showConsentTool'); 4249 return st.js("https://gdpr-api.sharethis.com/cmp.js"); 4250 } 4251 }; 4252 })(this); 4253 return _xhr.send(); 4254 } 4255 }; 4256 4257}).call(this); 4258 4259(function() { 4260 var st; 4261 4262 st = window.__sharethis__; 4263 4264 st.loader['gdpr-compliance-tool-v2'] = function(config) { 4265 var _xhr, background_color, color, display, gear_color, gear_position, language, preview, publisher_name, publisher_purposes, publisher_restrictions, scope, text_color; 4266 if (config == null) { 4267 config = {}; 4268 } 4269 4270 /* 4271 config = { 4272 background_color: '#000000' 4273 color: '#9900ef' 4274 display: 'always' 4275 enabled: true 4276 gear_color: '' 4277 gear_position: 'bottom_left' 4278 language: 'en' 4279 publisher_name: 'ShareThis' 4280 scope: 'global' 4281 text_color: '#ffffff' 4282 } 4283 */ 4284 if (!config.enabled) { 4285 return; 4286 } 4287 preview = config.preview, background_color = config.background_color, color = config.color, display = config.display, gear_color = config.gear_color, gear_position = config.gear_position, language = config.language, publisher_name = config.publisher_name, publisher_purposes = config.publisher_purposes, publisher_restrictions = config.publisher_restrictions, scope = config.scope, text_color = config.text_color; 4288 if (language == null) { 4289 language = 'en'; 4290 } 4291 if (publisher_name == null) { 4292 publisher_name = ''; 4293 } 4294 if (publisher_purposes == null) { 4295 publisher_purposes = []; 4296 } 4297 if (publisher_restrictions == null) { 4298 publisher_restrictions = {}; 4299 } 4300 if (preview == null) { 4301 preview = false; 4302 } 4303 if ((typeof Shopify !== "undefined" && Shopify !== null) && void 0 === (Shopify.designMode != null) && preview === true) { 4304 return; 4305 } 4306 window.__cmpconfig = { 4307 background_color: background_color, 4308 color: color, 4309 gear_color: gear_color, 4310 gear_position: gear_position, 4311 global: scope !== 'publisher', 4312 language: language, 4313 publisher_name: publisher_name, 4314 publisher_restrictions: publisher_restrictions, 4315 purposes: publisher_purposes, 4316 text_color: text_color, 4317 preview: preview 4318 }; 4319 if (display === "always") { 4320 return st.js("https://gdpr-api.sharethis.com/cmp-v2.js"); 4321 } else if (display === "eu") { 4322 _xhr = new XMLHttpRequest(); 4323 _xhr.open("GET", "https://gdpr-api.sharethis.com/is_eu"); 4324 _xhr.responseType = "json"; 4325 _xhr.onload = (function(_this) { 4326 return function() { 4327 var ref; 4328 if ((ref = _xhr.response) != null ? ref.is_eu : void 0) { 4329 return st.js("https://gdpr-api.sharethis.com/cmp-v2.js"); 4330 } 4331 }; 4332 })(this); 4333 return _xhr.send(); 4334 } 4335 }; 4336 4337}).call(this); 4338 4339(function() { 4340 var st; 4341 4342 st = window.__sharethis__; 4343 4344 st.loader['image-share-buttons'] = function(config) { 4345 var $el, $image, $images, alignment, container, enter, exit, i, id, inline_buttons, len, networks, omit_class, onLoad, over_buttons, over_image, padding, radius, ref, size, spacing, src, timeout; 4346 if (config == null) { 4347 config = {}; 4348 } 4349 if (!config.enabled) { 4350 return; 4351 } 4352 alignment = config.alignment, container = config.container, omit_class = config.omit_class, onLoad = config.onLoad, padding = config.padding, networks = config.networks, radius = config.radius, size = config.size, spacing = config.spacing; 4353 if (networks == null) { 4354 networks = ['facebook', 'twitter', 'pinterest', 'email']; 4355 } 4356 if (omit_class == null) { 4357 omit_class = ''; 4358 } 4359 if (padding == null) { 4360 padding = 10; 4361 } 4362 if (radius == null) { 4363 radius = 0; 4364 } 4365 if (size == null) { 4366 size = 40; 4367 } 4368 if (spacing == null) { 4369 spacing = 8; 4370 } 4371 if (typeof container === 'string') { 4372 container = document.getElementById(container); 4373 } 4374 ref = st.newElement(container), $el = ref.$el, id = ref.id; 4375 st.addClass($el, 'st-image-share-buttons'); 4376 $el.style.position = 'absolute'; 4377 inline_buttons = st.load('inline-share-buttons', { 4378 alignment: alignment, 4379 id: id, 4380 enabled: true, 4381 networks: networks, 4382 padding: padding, 4383 radius: radius, 4384 size: size, 4385 spacing: spacing, 4386 onLoad: function() { 4387 st.addClass($el, 'st-hidden'); 4388 return typeof onLoad === "function" ? onLoad() : void 0; 4389 } 4390 }); 4391 timeout = null; 4392 over_buttons = false;
4393 over_image = false; 4394 enter = function($img) { 4395 var left, ref1, src, top; 4396 if (omit_class) { 4397 if (st.hasClass($img, omit_class)) { 4398 return; 4399 } 4400 if (st.hasClass($img.parentNode.parentNode, omit_class)) { 4401 return; 4402 } 4403 if (st.hasClass($img.parentNode, omit_class)) { 4404 return; 4405 } 4406 } 4407 ref1 = st.position($img, container), left = ref1.left, top = ref1.top; 4408 src = $img.getAttribute('src'); 4409 $el.style.width = $img.width + 'px'; 4410 if ($img.height < 200 || $img.width < 200) { 4411 return; 4412 } 4413 if (timeout) { 4414 clearTimeout(timeout); 4415 } 4416 return timeout = setTimeout((function() { 4417 if (inline_buttons != null) { 4418 inline_buttons.modify('image', src); 4419 } 4420 $el.style.left = st.px(left); 4421 $el.style.top = st.px(top); 4422 $el.style.padding = st.px(spacing); 4423 $el.style.boxSizing = 'border-box'; 4424 st.removeClass($el, 'st-hide'); 4425 st.removeClass($el, 'st-hidden'); 4426 return inline_buttons != null ? inline_buttons.resize() : void 0; 4427 }), 10); 4428 }; 4429 exit = function(next) { 4430 if (timeout) { 4431 clearTimeout(timeout); 4432 } 4433 return timeout = setTimeout((function() { 4434 if (over_image || over_buttons) { 4435 return; 4436 } 4437 st.addClass($el, 'st-hide'); 4438 return typeof next === "function" ? next() : void 0; 4439 }), 10); 4440 }; 4441 $images = document.querySelectorAll('img'); 4442 for (i = 0, len = $images.length; i < len; i++) { 4443 $image = $images[i]; 4444 src = $image.getAttribute('src'); 4445 if (/\.(gif|jpg|jpeg|png)$/i.test(src)) { 4446 st.addEventListener($image, 'mouseenter', function() { 4447 over_image = true; 4448 return enter(this); 4449 }); 4450 st.addEventListener($image, 'mouseleave', function() { 4451 over_image = false; 4452 return exit(); 4453 }); 4454 } 4455 } 4456 st.addEventListener($el, 'mouseenter', function() { 4457 return over_buttons = true; 4458 }); 4459 return st.addEventListener($el, 'mouseleave', function() { 4460 over_buttons = false; 4461 return exit(); 4462 }); 4463 }; 4464 4465}).call(this); 4466 4467(function() { 4468 var DOMAINS, load, st; 4469 4470 st = window.__sharethis__; 4471 4472 DOMAINS = { 4473 airbnb: 'https://www.airbnb.com/rooms/', 4474 amazon: 'https://www.amazon.com/gp/profile/', 4475 bandcamp: '', 4476 behance: 'https://www.behance.net/', 4477 bitbucket: 'https://bitbucket.org/', 4478 blogger: 'https://www.blogger.com/', 4479 bluesky: 'https://bsky.app/profile/', 4480 deviantart: '', 4481 digg: 'https://www.digg.com/', 4482 discord: 'https://discord.gg/', 4483 dribbble: 'https://dribbble.com/', 4484 etsy: 'https://www.etsy.com/shop/', 4485 facebook: 'https://www.facebook.com/', 4486 flickr: 'https://www.flickr.com/people/', 4487 flipboard: 'https://flipboard.com/', 4488 foursquare: 'https://foursquare.com/v/', 4489 houzz: 'https://www.houzz.com/user/', 4490 github: 'https://www.github.com/', 4491 gitlab: 'https://gitlab.com/', 4492 googlemaps: '', 4493 goodreads: '', 4494 instagram: 'https://www.instagram.com/', 4495 linkedin: 'https://www.linkedin.com/', 4496 medium: 'https://www.medium.com/', 4497 messenger: 'https://www.messenger.com/', 4498 meetup: 'https://www.meetup.com/members/', 4499 mix: 'https://mix.com/', 4500 odnoklassniki: 'https://ok.ru/', 4501 patreon: 'https://www.patreon.com/', 4502 pinterest: 'https://www.pinterest.com/', 4503 quora: 'https://www.quora.com/', 4504 reddit: 'https://www.reddit.com/', 4505 shares: 'https://shar.es/@', 4506 skype: '', 4507 slideshare: 'https://www.slideshare.net/', 4508 snapchat: 'https://www.snapchat.com/', 4509 soundcloud: 'https://soundcloud.com/', 4510 spotify: 'https://open.spotify.com/', 4511 stackoverflow: 'https://stackoverflow.com/users/', 4512 telegram: 'https://t.me/', 4513 threads: 'https://www.threads.net/@', 4514 tiktok: 'https://www.tiktok.com/@', 4515 trello: 'https://trello.com/', 4516 tripadvisor: 'https://www.tripadvisor.com/Profile/', 4517 tumblr: 'https://www.tumblr.com/', 4518 twitch: 'https://www.twitch.tv/', 4519 twitter: 'https://www.twitter.com/', 4520 vk: 'https://www.vk.com/', 4521 vimeo: 'https://vimeo.com/', 4522 wechat: 'https://web.wechat.com/', 4523 weibo: 'https://www.weibo.com/', 4524 whatsapp: 'https://wa.me/', 4525 xing: 'https://www.xing.com/profile/', 4526 yelp: 'https://www.yelp.com/', 4527 youtube: 'https://www.youtube.com/', 4528 zillow: 'https://www.zillow.com/profile/', 4529 zomato: '' 4530 }; 4531 4532 st.loader['inline-follow-buttons'] = function(config) { 4533 var $el, $els, i, len, results; 4534 if (config == null) { 4535 config = {}; 4536 } 4537 if (!config.enabled) { 4538 return; 4539 } 4540 if (config.id) { 4541 $el = document.getElementById(config.id); 4542 if ($el) { 4543 return load($el, config); 4544 } 4545 } else { 4546 $els = document.querySelectorAll('.sharethis-inline-follow-buttons'); 4547 results = []; 4548 for (i = 0, len = $els.length; i < len; i++) { 4549 $el = $els[i]; 4550 results.push(load($el, config)); 4551 } 4552 return results; 4553 } 4554 }; 4555 4556 load = function($el, config) { 4557 var $button, $buttons, action, action_enable, action_pos, alignment, alignment_opposite, background_color, class_names, color, common_css, css, fade_in, fn, hover_css, html, i, id, index, j, language, len, len1, network, network_css, networks, onLoad, padding, preview, profiles, radius, resize, size, spacing, text_color, text_color_filter, url; 4558 action = config.action, action_enable = config.action_enable, action_pos = config.action_pos, alignment = config.alignment, color = config.color, fade_in = config.fade_in, id = config.id, language = config.language, networks = config.networks, onLoad = config.onLoad, padding = config.padding, profiles = config.profiles, radius = config.radius, size = config.size, spacing = config.spacing, url = config.url, text_color = config.text_color, background_color = config.background_color, preview = config.preview; 4559 alignment_opposite = alignment === 'left' ? 'right' : 'left'; 4560 if (action == null) { 4561 action = 'Follow us:'; 4562 } 4563 if (action_enable == null) { 4564 action_enable = true; 4565 } 4566 if (action_pos == null) { 4567 action_pos = 'top'; 4568 } 4569 if (alignment == null) { 4570 alignment = 'left'; 4571 } 4572 if (color == null) { 4573 color = 'social'; 4574 } 4575 if (fade_in == null) { 4576 fade_in = true; 4577 } 4578 if (language == null) { 4579 language = 'en'; 4580 } 4581 if (networks == null) { 4582 networks = ['facebook', 'twitter', 'pinterest']; 4583 } 4584 if (padding == null) { 4585 padding = 10; 4586 } 4587 if (profiles == null) { 4588 profiles = {}; 4589 } 4590 if (radius == null) { 4591 radius = 0; 4592 } 4593 if (size == null) { 4594 size = 40; 4595 } 4596 if (spacing == null) { 4597 spacing = 8; 4598 } 4599 if (preview == null) { 4600 preview = false;
4601 } 4602 if ((typeof Shopify !== "undefined" && Shopify !== null) && (Shopify.designMode != null)) { 4603 preview = false; 4604 } 4605 if (id == null) { 4606 id = "st-" + (st.uid()); 4607 } 4608 $el.setAttribute('id', id); 4609 st.addClass($el, 'st-inline-follow-buttons'); 4610 st.addClass($el, 'st-#{action_pos}'); 4611 if (fade_in) { 4612 st.addClass($el, 'st-hidden'); 4613 } 4614 if (true === preview) { 4615 st.addClass($el, 'st-preview'); 4616 } 4617 common_css = "#" + id + " {\n " + st.FONT_FAMILY + ";\n direction: ltr;\n display: block;\n opacity: 1;\n text-align: " + alignment + ";\n z-index: 94034;\n}\n#" + id + ".st-animated {\n " + (st.TRANSITION('opacity')) + "\n}\n#" + id + " .st-left {\n display: inline-block;\n padding-top: " + (st.px(size / 4)) + ";\n padding-right: 6px;\n}\n#" + id + ".st-preview {\n display: none!important;\n opacity: 0!important;\n}\n#" + id + " .st-top {\n padding-bottom: " + (st.px(size / 8)) + ";\n}\n#" + id + " .st-right {\n display: inline-block;\n padding-top: " + (st.px(size / 4)) + ";\n padding-left: 4px;\n}\n#" + id + ".st-hidden {\n opacity: " + (fade_in ? 0 : 1) + ";\n}\n#" + id + " .st-btn {\n " + st.BORDER_BOX + "\n " + (st.TRANSITION(['opacity', 'top'])) + "\n " + (st.BORDER_RADIUS(radius)) + "\n border: " + (color === 'white' ? 'solid 0.5px #ccc' : 'none') + ";\n cursor: pointer;\n display: inline-block;\n height: " + (st.px(size)) + ";\n line-height: " + (st.px(size)) + ";\n margin-right: " + (spacing ? st.px(spacing) : 0) + ";\n padding: 0 " + (st.px(padding)) + ";\n position: relative;\n text-align: center;\n top: 0;\n vertical-align: top;\n white-space: nowrap;\n}\n#" + id + " .st-btn:last-child {\n margin-right: 0;\n}\n#" + id + " .st-btn > svg {\n height: " + (st.px(size / 2)) + ";\n width: " + (st.px(size / 2)) + ";\n position: relative;\n top: " + (st.px(size / 4)) + ";\n vertical-align: top;\n}\n#" + id + " .st-btn > img {\n height: " + (st.px(size / 2)) + ";\n width: " + (st.px(size / 2)) + ";\n position: relative;\n top: " + (st.px(size / 4)) + ";\n vertical-align: top;\n}\n#" + id + " .st-btn > span {\n " + (st.TRANSITION()) + "\n color: #fff;\n display: inline-block;\n font-weight: 500;\n letter-spacing: 0.5px;\n min-width: " + (st.px(30 + Math.floor(size * 15 / 16))) + ";\n opacity: 1;\n padding: 0 6px;\n position: relative;\n vertical-align: top;\n}\n#" + id + ".st-justified {\n display: flex;\n text-align: center;\n}\n#" + id + ".st-justified .st-btn {\n " + st.FLEX + "\n}"; 4618 hover_css = "#" + id + " .st-btn:hover {\n opacity: .8;\n top: -4px;\n}"; 4619 text_color_filter = st.getFilter(text_color); 4620 network_css = ((function() { 4621 var i, len, results; 4622 results = []; 4623 for (i = 0, len = networks.length; i < len; i++) { 4624 network = networks[i]; 4625 results.push("#" + id + " .st-btn[data-network='" + network + "'] {\n background-color: " + ((function() { 4626 switch (color) { 4627 case 'social': 4628 return st.COLORS[network]; 4629 case 'black': 4630 return '#000'; 4631 case 'gray': 4632 return '#eee'; 4633 case 'custom': 4634 return background_color; 4635 case 'white': 4636 return '#fff'; 4637 default: 4638 return '#fff'; 4639 } 4640 })()) + "\n}\n#" + id + " .st-btn[data-network='" + network + "'] img {\n filter: " + ((function() { 4641 switch (color) { 4642 case 'black': 4643 return 'invert(0%) sepia(100%) saturate(22%) hue-rotate(45deg) brightness(107%) contrast(105%)'; 4644 case 'gray': 4645 return 'invert(100%) sepia(100%) saturate(22%) hue-rotate(45deg) brightness(107%) contrast(105%)'; 4646 case 'custom': 4647 return text_color_filter; 4648 default: 4649 return ''; 4650 } 4651 })()) + "\n}\n#" + id + " .st-btn[data-network='" + network + "'] > span {\n color: " + ((function() { 4652 switch (color) { 4653 case 'white': 4654 return st.COLORS[network]; 4655 case 'black': 4656 return '#fff'; 4657 case 'gray': 4658 return '#000'; 4659 case 'custom': 4660 return '#fff'; 4661 case 'social': 4662 return '#fff'; 4663 default: 4664 return '#fff'; 4665 } 4666 })()) + "\n}"); 4667 } 4668 return results; 4669 })()).join('\n'); 4670 css = common_css; 4671 css += hover_css; 4672 css += network_css; 4673 st.css(css); 4674 html = ''; 4675 networks = st.filterInvalidNetworks(networks, Object.keys(DOMAINS)); 4676 if (action_enable && (action != null ? action.length : void 0) > 0 && action_pos !== 'right') { 4677 html += "<div class='st-" + action_pos + "'>\n <span>" + action + "</span>\n</div>"; 4678 } 4679 for (index = i = 0, len = networks.length; i < len; index = ++i) { 4680 network = networks[index]; 4681 class_names = ['st-btn']; 4682 if (index === 0) { 4683 class_names.push('st-first'); 4684 } 4685 if (index === networks.length - 1) { 4686 class_names.push('st-last'); 4687 } 4688 html += "<div class='" + (class_names.join(' ')) + "' data-network='" + network + "'>\n " + (color === 'white' ? st.ICONS_WHITE[network] : st.ICONS[network]) + "\n</div>"; 4689 } 4690 if (action_enable && (action != null ? action.length : void 0) > 0 && action_pos === 'right') { 4691 html += "<div class='st-" + action_pos + "'>\n <span>" + (st.capitalize(action)) + "</span>\n</div>"; 4692 } 4693 $el.innerHTML = html; 4694 $buttons = $el.querySelectorAll('.st-btn'); 4695 resize = function() { 4696 var $button, actual, available, j, k, len1, results; 4697 available = $el.offsetWidth; 4698 actual = function() { 4699 var $button, j, len1, width; 4700 width = action_enable ? 70 : 0; 4701 for (j = 0, len1 = $buttons.length; j < len1; j++) { 4702 $button = $buttons[j]; 4703 if ($button.style.display === 'none') { 4704 continue; 4705 } 4706 if (alignment === 'justified') { 4707 width += 160; 4708 } else { 4709 width += $button.offsetWidth + spacing; 4710 } 4711 } 4712 return width; 4713 }; 4714 for (j = 0, len1 = $buttons.length; j < len1; j++) { 4715 $button = $buttons[j]; 4716 $button.style.display = 'inline-block'; 4717 } 4718 results = []; 4719 for (index = k = $buttons.length - 1; k >= 0; index = k += -1) { 4720 $button = $buttons[index]; 4721 if (actual() > available) { 4722 results.push($button.style.display = 'none'); 4723 } else { 4724 results.push(void 0); 4725 } 4726 } 4727 return results; 4728 }; 4729 st.addEventListener(window, 'resize', resize); 4730 fn = function($button) { 4731 return st.addEventListener($button, 'click', function() { 4732 var follow_url; 4733 network = $button.getAttribute('data-network'); 4734 follow_url = DOMAINS[network] + (profiles[network] || ''); 4735 if (network === 'youtube' && profiles[network]) { 4736 follow_url += '?sub_confirmation=1'; 4737 } 4738 if (network === 'tumblr' && profiles[network]) { 4739 follow_url = DOMAINS[network].replace('www', profiles[network]); 4740 } 4741 st.follow({ 4742 follow_url: follow_url, 4743 network: network, 4744 url: url || $el.getAttribute('data-url') 4745 }); 4746 return typeof onLoad === "function" ? onLoad() : void 0; 4747 }); 4748 }; 4749 for (j = 0, len1 = $buttons.length; j < len1; j++) { 4750 $button = $buttons[j]; 4751 fn($button); 4752 } 4753 resize(); 4754 if (fade_in) { 4755 st.addClass($el, 'st-animated'); 4756 } 4757 if (fade_in) { 4758 st.removeClass($el, 'st-hidden'); 4759 } 4760 if (typeof onLoad === "function") { 4761 onLoad(); 4762 } 4763 return { 4764 $buttons: $buttons, 4765 $el: $el, 4766 id: id, 4767 resize: resize 4768 }; 4769 }; 4770 4771}).call(this); 4772 4773(function() { 4774 var load, st; 4775 4776 st = window.__sharethis__; 4777 4778 st.loader['inline-reaction-buttons'] = function(config) { 4779 var $el, $els, i, len, results; 4780 if (config == null) { 4781 config = {}; 4782 } 4783 if (!config.enabled) { 4784 return; 4785 } 4786 if (config.id) { 4787 $el = document.getElementById(config.id); 4788 return load($el, config); 4789 } else { 4790 $els = document.querySelectorAll('.sharethis-inline-reaction-buttons'); 4791 results = []; 4792 for (i = 0, len = $els.length; i < len; i++) { 4793 $el = $els[i]; 4794 results.push(load($el, config)); 4795 } 4796 return results; 4797 } 4798 }; 4799 4800 load = function($el, config) { 4801 var $buttons, alignment, class_names, common_css, css, data_url, fade_in, hover_css, html, i, id, index, item, k, label_span, language, len, min_count, onLoad, onReact, padding, reaction, reactions, ref, ref1, resize, selected_reaction, size, url;
4802 alignment = config.alignment, id = config.id, language = config.language, min_count = config.min_count, padding = config.padding, reactions = config.reactions, size = config.size, url = config.url; 4803 fade_in = config.fade_in, onLoad = config.onLoad, onReact = config.onReact; 4804 data_url = $el.getAttribute('data-url'); 4805 if (fade_in == null) { 4806 fade_in = true; 4807 } 4808 if (min_count == null) { 4809 min_count = 0; 4810 } 4811 if (reactions == null) { 4812 reactions = (function() { 4813 var results; 4814 results = []; 4815 for (k in st.REACTIONS) { 4816 results.push(k); 4817 } 4818 return results; 4819 })(); 4820 } 4821 if (padding == null) { 4822 padding = 10; 4823 } 4824 if (language == null) { 4825 language = 'en'; 4826 } 4827 if (size == null) { 4828 size = 48; 4829 } 4830 if (url == null) { 4831 url = data_url || st.href; 4832 } 4833 selected_reaction = st.storage.get("st_reaction_" + url); 4834 if (id == null) { 4835 id = "st-" + (st.uid()); 4836 } 4837 $el.setAttribute('id', id); 4838 st.addClass($el, ["st-inline-reaction-buttons", "st-" + alignment, selected_reaction ? "st-reacted" : void 0, fade_in ? 'st-hidden' : void 0, language ? 'st-has-labels' : void 0, language !== 'en' ? "st-lang-" + language : void 0]); 4839 common_css = "#" + id + " {\n " + st.FONT_FAMILY + "\n " + (st.TRANSITION('opacity')) + "\n direction: ltr;\n display: block;\n opacity: 1;\n text-align: " + alignment + ";\n}\n#" + id + ".st-hidden {\n opacity: " + (fade_in ? 0 : 1) + ";\n}\n#" + id + " .st-btn {\n " + st.BORDER_BOX + "\n " + (st.TRANSITION()) + "\n display: inline-block;\n font-size: " + (st.px(size / 2)) + ";\n line-height: " + (st.px(size / 2)) + ";\n opacity: 1;\n padding: " + (st.px(padding)) + ";\n position: relative;\n text-align: center;\n vertical-align: top;\n white-space: nowrap;\n width: " + (st.px(size + 2 * padding)) + ";\n}\n#" + id + " .st-btn > svg {\n display: block;\n height: " + (st.px(size)) + ";\n margin: auto;\n width: " + (st.px(size)) + ";\n vertical-align: top;\n}\n#" + id + " .st-btn > span {\n " + (st.TRANSITION('font-size')) + ";\n color: #555;\n font-size: 14px;\n font-weight: 400;\n letter-spacing: 0.5px;\n vertical-align: top;\n}\n#" + id + " .st-btn .st-count.st-grow {\n font-size: 18px;\n}\n#" + id + " .st-btn.st-hide-count .st-count {\n opacity: 0;\n}\n#" + id + " .st-btn .st-text {\n display: none;\n font-weight: bold;\n line-height: 12px;\n white-space: normal;\n word-break: break-all;\n}\n#" + id + ".st-justified {\n display: flex;\n text-align: center;\n}\n#" + id + ".st-justified .st-btn {\n " + st.FLEX + "\n}\n#" + id + " .st-btn.st-selected {\n " + (st.TRANSFORM("scale(1.2)")) + "\n}\n#" + id + ".st-reacted .st-btn:not(.st-selected) {\n filter: grayscale(100%);\n}"; 4840 hover_css = "#" + id + ":not(.st-reacted) .st-btn:hover {\n " + (st.TRANSFORM("scale(1.2)")) + "\n cursor: pointer;\n}\n#" + id + ":not(.st-reacted) .st-btn:active {\n " + (st.TRANSFORM("scale(1.4)")) + "\n}\n#" + id + ".st-has-labels:not(.st-reacted) .st-btn:hover .st-count {\n display: none;\n}\n#" + id + ".st-has-labels:not(.st-reacted) .st-btn:hover .st-text {\n display: block;\n}\n#" + id + ".st-has-labels:not(.st-reacted) .st-btn:hover span {\n font-size: 10px;\n}"; 4841 css = common_css; 4842 if (!st.mobile) { 4843 css += hover_css; 4844 } 4845 st.css(css); 4846 html = ''; 4847 for (index = i = 0, len = reactions.length; i < len; index = ++i) { 4848 reaction = reactions[index]; 4849 if (!st.REACTIONS[reaction]) { 4850 continue; 4851 } 4852 item = st.REACTIONS[reaction]; 4853 class_names = ['st-btn']; 4854 if (reaction === selected_reaction) { 4855 class_names.push('st-selected'); 4856 } 4857 if (index === 0) { 4858 class_names.push('st-first'); 4859 } 4860 if (index === reactions.length - 1) { 4861 class_names.push('st-last'); 4862 } 4863 if (language) { 4864 label_span = "<span class=\"st-text\">\n " + ((ref = st.i18n[item.label]) != null ? (ref1 = ref[language]) != null ? ref1.toUpperCase() : void 0 : void 0) + "\n</span>"; 4865 } else { 4866 label_span = ''; 4867 } 4868 html += "<div class='" + (class_names.join(' ')) + "' data-reaction='" + reaction + "'>
4868\n <svg\n xmlns=\"http://www.w3.org/2000/svg\"\n viewBox=\"0 0 64 64\"\n enable-background=\"new 0 0 64 64\"\n >\n " + item.icon + "\n </svg>\n <span class=\"st-count\"></span>\n " + label_span + "\n</div>"; 4869 } 4870 $el.innerHTML = html; 4871 $buttons = $el.querySelectorAll('.st-btn'); 4872 resize = function() { 4873 var $button, actual, available, j, len1, results, shrink_by; 4874 available = $el.offsetWidth; 4875 actual = function() { 4876 var $button, j, len1, width; 4877 width = 0; 4878 for (j = 0, len1 = $buttons.length; j < len1; j++) { 4879 $button = $buttons[j]; 4880 width += size + 2 * padding; 4881 } 4882 return width; 4883 }; 4884 if (actual() > available) { 4885 shrink_by = available / actual(); 4886 results = []; 4887 for (j = 0, len1 = $buttons.length; j < len1; j++) { 4888 $button = $buttons[j]; 4889 $button.style.padding = st.px(padding * shrink_by); 4890 $button.style.width = st.px((size + 2 * padding) * shrink_by); 4891 $button.querySelector('svg').style.width = st.px(size * shrink_by); 4892 results.push($button.querySelector('svg').style.height = st.px(size * shrink_by)); 4893 } 4894 return results; 4895 } 4896 }; 4897 return st.loadCounts({ 4898 url: url 4899 }, function(counts) { 4900 var $button, fn, j, l, label, len1, len2, ref2, ref3, value; 4901 for (j = 0, len1 = $buttons.length; j < len1; j++) { 4902 $button = $buttons[j]; 4903 reaction = $button.getAttribute('data-reaction'); 4904 ref2 = counts[reaction] || {}, label = ref2.label, value = ref2.value; 4905 if ((ref3 = $button.querySelector('.st-count')) != null) { 4906 ref3.innerHTML = label; 4907 } 4908 if (label && value >= min_count) { 4909 st.removeClass($button, 'st-hide-count'); 4910 } else { 4911 st.addClass($button, 'st-hide-count'); 4912 } 4913 } 4914 resize(); 4915 if (fade_in) { 4916 st.removeClass($el, 'st-hidden'); 4917 } 4918 st.addEventListener(window, 'resize', resize); 4919 fn = function($button) { 4920 return st.addEventListener($button, 'click', function() { 4921 if (st.hasClass($el, 'st-reacted')) { 4922 return; 4923 } 4924 reaction = $button.getAttribute('data-reaction'); 4925 st.addClass($el, 'st-reacted'); 4926 st.addClass($button, 'st-selected'); 4927 st.react({ 4928 reaction: reaction, 4929 url: url 4930 }); 4931 st.inc($button.querySelector('.st-count')); 4932 st.storage.set("st_reaction_" + url, reaction); 4933 return typeof onReact === "function" ? onReact(reaction) : void 0; 4934 }); 4935 }; 4936 for (l = 0, len2 = $buttons.length; l < len2; l++) { 4937 $button = $buttons[l]; 4938 fn($button); 4939 } 4940 return typeof onLoad === "function" ? onLoad() : void 0; 4941 }); 4942 }; 4943 4944}).call(this); 4945 4946(function() { 4947 var load, st; 4948 4949 st = window.__sharethis__; 4950 4951 st.loader['inline-share-buttons'] = function(config, element) { 4952 var $el, $els, i, id, len, loadFn, ref, results; 4953 if (config == null) { 4954 config = {}; 4955 } 4956 if (element == null) { 4957 element = false; 4958 } 4959 if (!config.enabled) { 4960 return; 4961 } 4962 loadFn = load; 4963 if (config.is_ssb) { 4964 loadFn = st.loadSsb; 4965 } 4966 if (config.id) { 4967 $el = document.getElementById(config.id); 4968 if ($el) { 4969 return loadFn($el, config, load); 4970 } 4971 } else if (config.container) { 4972 if (typeof config.container === 'string') { 4973 config.container = document.getElementById(config.container); 4974 } 4975 ref = st.newElement(config.container), $el = ref.$el, id = ref.id; 4976 config.id = id; 4977 if ($el) { 4978 return loadFn($el, config, load); 4979 } 4980 } else { 4981 $els = document.querySelectorAll('.sharethis-inline-share-buttons, .sharethis-share-buttons[data-type="inline-share-buttons"]'); 4982 results = []; 4983 for (i = 0, len = $els.length; i < len; i++) { 4984 $el = $els[i]; 4985 results.push(loadFn($el, config, load)); 4986 } 4987 return results; 4988 } 4989 }; 4990 4991 load = function($el, config) { 4992 var $button, $buttons, $total, $total_label, alignment, alignment_opposite, background_color, class_names, color, common_css, css, description, fade_in, fn, font_size, hover_css, html, i, id, image, index, j, k, label, label_span, labels, language, len, len1, len2, message, min_count, mobile_css, modify, network, network_css, networks, onLoad, padding, preview, radius, ref, resize, show_mobile_buttons, show_total, size, spacing, subject, text_color, text_color_filter, title, url, use_native_counts, username; 4993 color = config.color, fade_in = config.fade_in, onLoad = config.onLoad, alignment = config.alignment, font_size = config.font_size, language = config.language, padding = config.padding, radius = config.radius, size = config.size, spacing = config.spacing, id = config.id, labels = config.labels, min_count = config.min_count, networks = config.networks, show_total = config.show_total, use_native_counts = config.use_native_counts, show_mobile_buttons = config.show_mobile_buttons, url = config.url, title = config.title, image = config.image, description = config.description, username = config.username, message = config.message, subject = config.subject, text_color = config.text_color, background_color = config.background_color, preview = config.preview; 4994 alignment_opposite = alignment === 'left' ? 'right' : 'left'; 4995 if (alignment == null) { 4996 alignment = 'left'; 4997 } 4998 if (background_color == null) { 4999 background_color = '#B581A3'; 5000 } 5001 if (color == null) { 5002 color = 'social'; 5003 } 5004 if (fade_in == null) { 5005 fade_in = true; 5006 } 5007 if (font_size == null) { 5008 font_size = 12; 5009 } 5010 if (text_color == null) { 5011 text_color = '#fff'; 5012 } 5013 if (language == null) { 5014 language = 'en'; 5015 } 5016 if (min_count == null) { 5017 min_count = 0; 5018 } 5019 if (networks == null) { 5020 networks = ['facebook', 'twitter', 'pinterest', 'email', 'sharethis']; 5021 } 5022 if (padding == null) { 5023 padding = 10; 5024 } 5025 if (radius == null) { 5026 radius = 0; 5027 } 5028 if (show_mobile_buttons == null) { 5029 show_mobile_buttons = st.mobile; 5030 } 5031 if (size == null) { 5032 size = 40; 5033 } 5034 if (spacing == null) { 5035 spacing = 8; 5036 } 5037 if (subject == null) { 5038 subject = st.i18n['subjects'][language]; 5039 } 5040 if (use_native_counts == null) { 5041 use_native_counts = true; 5042 } 5043 if (preview == null) { 5044 preview = false;
5045 } 5046 if ((typeof Shopify !== "undefined" && Shopify !== null) && (Shopify.designMode != null)) { 5047 preview = false; 5048 } 5049 if (id == null) { 5050 id = "st-" + (st.uid()); 5051 } 5052 $el.setAttribute('id', id); 5053 st.addClass($el, ["st-" + alignment, language !== 'en' ? "st-lang-" + language : void 0, labels === 'counts' || labels === 'cta' ? 'st-has-labels' : void 0, fade_in ? 'st-hidden' : void 0, true === preview ? 'st-preview' : void 0, 'st-inline-share-buttons']); 5054 common_css = "#" + id + " {\n " + st.FONT_FAMILY + ";\n direction: ltr;\n display: block;\n opacity: 1;\n text-align: " + alignment + ";\n z-index: 94034;\n}\n#" + id + ".st-animated {\n " + (st.TRANSITION('opacity')) + "\n}\n#" + id + ".st-hidden {\n opacity: " + (fade_in ? 0 : 1) + ";\n}\n\n#" + id + ".st-preview {\n display: none!important;\n opacity: 0!important;\n}\n#" + id + ".st-hide {\n display: none;\n}\n#" + id + " .st-btn {\n " + st.BORDER_BOX + "\n " + (st.TRANSITION(['opacity', 'top'])) + "\n " + (st.BORDER_RADIUS(radius)) + "\n border: " + (color === 'white' ? 'solid 1px #ccc' : 'none') + ";\n cursor: pointer;\n display: inline-block;\n font-size: " + (st.px(font_size)) + ";\n height: " + (st.px(size)) + ";\n line-height: " + (st.px(size)) + ";\n margin-right: " + (spacing ? st.px(spacing) : 0) + ";\n padding: 0 " + (st.px(padding)) + ";\n position: relative;\n text-align: center;\n top: 0;\n vertical-align: top;\n white-space: nowrap;\n}\n#" + id + " .st-btn:last-child {\n margin-right: 0;\n}\n#" + id + " .st-btn > svg {\n height: " + (st.px(size / 2)) + ";\n width: " + (st.px(size / 2)) + ";\n position: relative;\n top: " + (st.px(size / 4)) + ";\n vertical-align: top;\n}\n#" + id + " .st-btn > img {\n display: inline-block;\n height: " + (st.px(size / 2)) + ";\n width: " + (st.px(size / 2)) + ";\n position: relative;\n top: " + (st.px(size / 4)) + ";\n vertical-align: top;\n}\n#" + id + " .st-btn > span {\n " + (st.TRANSITION()) + "\n color: #fff;\n display: inline-block;\n font-weight: 500;\n letter-spacing: 0.5px;\n min-width: " + (st.px(30 + Math.floor(size * 15 / 16))) + ";\n opacity: 1;\n padding: 0 6px;\n position: relative;\n vertical-align: top;\n}\n#" + id + ".st-has-labels .st-btn {\n min-width: " + (st.px(60 + Math.floor(size * 15 / 8))) + ";\n}\n#" + id + ".st-has-labels .st-btn.st-remove-label {\n min-width: 50px;\n}\n#" + id + ".st-has-labels .st-btn.st-remove-label > span {\n display: none;\n}\n#" + id + ".st-has-labels .st-btn.st-hide-label > span {\n display: none;\n}\n#" + id + " .st-total {\n color: #555;\n display: inline-block;\n font-weight: 500;\n line-height: " + (st.px(.375 * size)) + ";\n margin-right: 0;\n max-width: 80px;\n padding: 4px 8px;\n text-align: center;\n}\n#" + id + " .st-total.st-hidden {\n display: none;\n}\n#" + id + " .st-total > span {\n font-size: " + (st.px(.5 * size)) + ";\n line-height: " + (st.px(.55 * size)) + ";\n display: block;\n padding: 0;\n}\n#" + id + " .st-total > span.st-shares {\n font-size: " + (st.px(.3 * size)) + ";\n line-height: " + (st.px(.3 * size)) + ";\n}\n#" + id + ".st-justified {\n display: flex;\n text-align: center;\n}\n#" + id + ".st-justified .st-btn {\n " + st.FLEX + "\n}"; 5055 hover_css = "#" + id + " .st-btn:hover {\n opacity: .8;\n top: -4px;\n}"; 5056 mobile_css = "#" + id + " {\n bottom: 0;"; 5057 text_color_filter = st.getFilter(text_color); 5058 network_css = ((function() { 5059 var i, len, results; 5060 results = []; 5061 for (i = 0, len = networks.length; i < len; i++) { 5062 network = networks[i]; 5063 results.push("#" + id + " .st-btn[data-network='" + network + "'] {\n background-color: " + ((function() { 5064 switch (color) { 5065 case 'social': 5066 return st.COLORS[network]; 5067 case 'black': 5068 return '#000'; 5069 case 'gray': 5070 return '#eee'; 5071 case 'custom': 5072 return background_color; 5073 case 'white': 5074 return '#fff'; 5075 default: 5076 return '#fff'; 5077 } 5078 })()) + "\n}\n#" + id + " .st-btn[data-network='" + network + "'] img {\n filter: " + ((function() { 5079 switch (color) { 5080 case 'black': 5081 return 'invert(0%) sepia(100%) saturate(22%) hue-rotate(45deg) brightness(107%) contrast(105%)'; 5082 case 'gray': 5083 return 'invert(100%) sepia(100%) saturate(22%) hue-rotate(45deg) brightness(107%) contrast(105%)'; 5084 case 'custom': 5085 return text_color_filter; 5086 default: 5087 return ''; 5088 } 5089 })()) + "\n}\n#" + id + " .st-btn[data-network='" + network + "'] > span {\n color: " + ((function() { 5090 switch (color) { 5091 case 'white': 5092 return st.COLORS[network]; 5093 case 'black': 5094 return '#fff'; 5095 case 'gray': 5096 return '#000'; 5097 case 'custom': 5098 return text_color; 5099 case 'social': 5100 return '#fff'; 5101 default: 5102 return '#fff'; 5103 } 5104 })()) + "\n}"); 5105 } 5106 return results; 5107 })()).join('\n'); 5108 network_css += "#" + id + " .st-btn[data-network='snapchat'] > span {\n color: " + (color === 'black' ? '#fff' : '#333') + "};\n}"; 5109 css = common_css; 5110 if (!st.mobile) { 5111 css += hover_css; 5112 } 5113 css += network_css; 5114 st.css(css); 5115 html = ''; 5116 networks = st.filterInvalidNetworks(networks); 5117 if (!show_mobile_buttons) { 5118 ref = ['sms']; 5119 for (i = 0, len = ref.length; i < len; i++) { 5120 network = ref[i]; 5121 index = networks.indexOf(network); 5122 if (index > -1) { 5123 networks.splice(index, 1); 5124 } 5125 } 5126 } 5127 if (show_total) { 5128 html += "<div class='st-total st-hidden'>\n <span class='st-label'></span>\n <span class='st-shares'>\n " + (st.capitalize(st.i18n['shares'][language])) + "\n </span>\n</div>"; 5129 } 5130 for (index = j = 0, len1 = networks.length; j < len1; index = ++j) { 5131 network = networks[index]; 5132 class_names = ['st-btn']; 5133 if (index === 0) { 5134 class_names.push('st-first'); 5135 } 5136 if (index === networks.length - 1) { 5137 class_names.push('st-last'); 5138 } 5139 label = st.getShareLabel(network, language); 5140 if (labels !== 'cta') { 5141 label = ''; 5142 } 5143 label_span = "<span class='st-label'>" + label + "</span>"; 5144 html += "<div class='" + (class_names.join(' ')) + "' data-network='" + network + "'>\n " + (color === 'white' ? st.ICONS_WHITE[network] : st.ICONS[network]) + "\n " + (labels === 'counts' || labels === 'cta' ? label_span : '') + "\n</div>"; 5145 } 5146 $el.innerHTML = html; 5147 $buttons = $el.querySelectorAll('.st-btn'); 5148 $total = $el.querySelector('.st-total'); 5149 $total_label = $el.querySelector('.st-total .st-label'); 5150 modify = function(key, value) { 5151 if (key === 'url') { 5152 url = value; 5153 } 5154 if (key === 'image') { 5155 return image = value; 5156 } 5157 }; 5158 resize = function() { 5159 var $button, actual, available, k, l, len2, m, results; 5160 available = $el.offsetWidth; 5161 actual = function() { 5162 var $button, k, len2, width; 5163 width = 0; 5164 if (show_total) { 5165 width += $total.offsetWidth; 5166 } 5167 for (k = 0, len2 = $buttons.length; k < len2; k++) { 5168 $button = $buttons[k]; 5169 if ($button.style.display === 'none') { 5170 continue; 5171 } 5172 if (alignment === 'justified') { 5173 if (st.hasClass($button, 'st-remove-label')) { 5174 width += 65; 5175 } else { 5176 width += 160; 5177 } 5178 } else { 5179 width += $button.offsetWidth + spacing; 5180 } 5181 } 5182 return width; 5183 }; 5184 for (k = 0, len2 = $buttons.length; k < len2; k++) { 5185 $button = $buttons[k]; 5186 $button.style.display = 'inline-block'; 5187 st.removeClass($button, 'st-remove-label'); 5188 } 5189 for (index = l = $buttons.length - 1; l >= 0; index = l += -1) { 5190 $button = $buttons[index]; 5191 if (actual() > available) { 5192 st.addClass($button, 'st-remove-label'); 5193 } 5194 } 5195 results = []; 5196 for (index = m = $buttons.length - 1; m >= 0; index = m += -1) { 5197 $button = $buttons[index]; 5198 if ($button.getAttribute('data-network') === 'sharethis') { 5199 continue; 5200 } 5201 if (actual() > available) { 5202 results.push($button.style.display = 'none'); 5203 } else { 5204 results.push(void 0); 5205 } 5206 } 5207 return results; 5208 }; 5209 st.addEventListener(window, 'resize', resize); 5210 fn = function($button) { 5211 return st.addEventListener($button, 'click', function() { 5212 return st.share({ 5213 channel_is_ssb: config.is_ssb, 5214 channels_displayed: JSON.stringify(config.networks), 5215 count_url: $el.getAttribute('data-count-url'), 5216 description: description || $el.getAttribute('data-description'), 5217 image: image || $el.getAttribute('data-image'), 5218 message: message || ($el != null ? $el.getAttribute('data-message') : void 0), 5219 network: $button.getAttribute('data-network'), 5220 share_url: $el.getAttribute('data-share-url'), 5221 short_url: $el.getAttribute('data-short-url'), 5222 subject: subject || $el.getAttribute('data-email-subject'), 5223 title: title || ($el != null ? $el.getAttribute('data-title') : void 0), 5224 url: url || $el.getAttribute('data-url'), 5225 username: username || $el.getAttribute('data-username') 5226 }); 5227 }); 5228 }; 5229 for (k = 0, len2 = $buttons.length; k < len2; k++) { 5230 $button = $buttons[k]; 5231 fn($button); 5232 } 5233 if (show_total || labels === 'counts') { 5234 st.loadCounts({ 5235 url: url || ($el.getAttribute('data-count-url')) || ($el.getAttribute('data-url')) || st.href 5236 }, function(counts) { 5237 var l, len3, ref1, ref2, ref3, ref4, value; 5238 if (show_total) { 5239 if (((ref1 = counts['total']) != null ? ref1.value : void 0) > min_count) { 5240 $total_label.innerHTML = ((ref2 = counts['total']) != null ? ref2.label : void 0) || ''; 5241 st.removeClass($total, 'st-hidden'); 5242 } else { 5243 st.addClass($total, 'st-hidden'); 5244 } 5245 } 5246 if (labels === 'counts') { 5247 for (l = 0, len3 = $buttons.length; l < len3; l++) { 5248 $button = $buttons[l]; 5249 network = $button.getAttribute('data-network'); 5250 ref3 = counts[network] || {}, label = ref3.label, value = ref3.value; 5251 if (label && value > min_count) { 5252 if ((ref4 = $button.querySelector('.st-label')) != null) { 5253 ref4.innerHTML = label; 5254 } 5255 st.removeClass($button, 'st-hide-label'); 5256 } else { 5257 st.addClass($button, 'st-hide-label'); 5258 } 5259 } 5260 } 5261 resize(); 5262 if (fade_in) { 5263 st.addClass($el, 'st-animated'); 5264 } 5265 if (fade_in) { 5266 st.removeClass($el, 'st-hidden'); 5267 } 5268 return typeof onLoad === "function" ? onLoad() : void 0; 5269 }); 5270 } else { 5271 resize(); 5272 if (fade_in) { 5273 st.addClass($el, 'st-animated'); 5274 } 5275 if (fade_in) { 5276 st.removeClass($el, 'st-hidden'); 5277 } 5278 if (typeof onLoad === "function") { 5279 onLoad(); 5280 } 5281 } 5282 return { 5283 $buttons: $buttons, 5284 $el: $el, 5285 id: id, 5286 modify: modify, 5287 resize: resize 5288 }; 5289 }; 5290 5291}).call(this); 5292 5293 5294(function() { 5295 var st; 5296 5297 st = window.__sharethis__; 5298
5299 st.loader['powr-social-feed'] = function(config) { 5300 if (config == null) { 5301 config = {}; 5302 } 5303 if (!config.enabled) { 5304 return; 5305 } 5306 return st.js("https://platform-api.sharethis.com/powr.js?platform=sharethis"); 5307 }; 5308 5309}).call(this); 5310 5311(function() { 5312 var st; 5313 5314 st = window.__sharethis__; 5315 5316 st.loader['powr-form-builder'] = function(config) { 5317 if (config == null) { 5318 config = {}; 5319 } 5320 if (!config.enabled) { 5321 return; 5322 } 5323 return st.js("https://platform-api.sharethis.com/powr.js?platform=sharethis"); 5324 }; 5325 5326}).call(this); 5327 5328(function() { 5329 var st; 5330 5331 st = window.__sharethis__; 5332 5333 st.loader['powr-popup'] = function(config) { 5334 if (config == null) { 5335 config = {}; 5336 } 5337 if (!config.enabled) { 5338 return; 5339 } 5340 return st.js("https://platform-api.sharethis.com/powr.js?platform=sharethis"); 5341 }; 5342 5343}).call(this); 5344 5345 5346/* 5347 * Loader for privacy-policy-generator 5348 * To update, please refer to `src/functions/privacy-policy-generator/README.md` 5349 */ 5350 5351(function() { 5352 var st; 5353 5354 st = window.__sharethis__; 5355 5356 st.loader['privacy-policy-generator'] = function(config) { 5357 if (config == null) { 5358 config = {}; 5359 } 5360 if (!config.enabled) { 5361 return; 5362 } 5363 return st.js("https://platform-api.sharethis.com/ppg.js"); 5364 }; 5365 5366}).call(this); 5367 5368 5369(function() { 5370 var load, st, 5371 indexOf = [].indexOf || function(item) { for (var i = 0, l = this.length; i < l; i++) { if (i in this && this[i] === item) return i; } return -1; }; 5372 5373 st = window.__sharethis__; 5374 5375 st.loader['sticky-share-buttons'] = function(config) { 5376 var $el, $els, i, id, len, loadFn, ref, ref1, results; 5377 if (config == null) { 5378 config = {}; 5379 } 5380 if (!config.enabled) { 5381 return; 5382 } 5383 loadFn = load; 5384 if (config.is_ssb) { 5385 loadFn = st.loadSsb; 5386 } 5387 if (config.id) { 5388 $el = document.getElementById(config.id); 5389 if ($el) { 5390 return loadFn($el, config, load); 5391 } 5392 } else if (config.container) { 5393 if (typeof config.container === 'string') { 5394 config.container = document.getElementById(config.container); 5395 } 5396 ref = st.newElement(config.container), $el = ref.$el, id = ref.id; 5397 config.id = id; 5398 if ($el) { 5399 return loadFn($el, config, load); 5400 } 5401 } else { 5402 $els = document.querySelectorAll('.sharethis-sticky-share-buttons, .sharethis-share-buttons[data-type="sticky-share-buttons"]'); 5403 if ($els.length === 0) { 5404 ref1 = st.newElement(), $el = ref1.$el, id = ref1.id; 5405 return loadFn($el, config, load); 5406 } else { 5407 results = []; 5408 for (i = 0, len = $els.length; i < len; i++) { 5409 $el = $els[i]; 5410 results.push(loadFn($el, config, load)); 5411 } 5412 return results; 5413 } 5414 } 5415 }; 5416 5417 load = function($el, config) { 5418 var $button, $buttons, $toggle, $total, $total_label, alignment, alignment_opposite, background_color, class_names, color, common_css, container, css, description, fn, font_size, hide_desktop, hover_css, html, i, id, image, index, j, k, label, label_span, labels, language, len, len1, len2, message, min_count, mobile_breakpoint, mobile_css, network, network_css, networks, onLoad, padding, preview, radius, ref, resize, responsive_css, scrollbar_width, show_mobile, show_mobile_buttons, show_toggle, show_total, size, slide_in, spacing, subject, text_color, text_color_filter, title, top, url, use_native_counts, username; 5419 onLoad = config.onLoad, alignment = config.alignment, color = config.color, container = config.container, font_size = config.font_size, hide_desktop = config.hide_desktop, padding = config.padding, radius = config.radius, size = config.size, spacing = config.spacing, id = config.id, labels = config.labels, language = config.language, min_count = config.min_count, networks = config.networks, show_toggle = config.show_toggle, show_total = config.show_total, mobile_breakpoint = config.mobile_breakpoint, show_mobile = config.show_mobile, slide_in = config.slide_in, top = config.top, use_native_counts = config.use_native_counts, show_mobile_buttons = config.show_mobile_buttons, url = config.url, title = config.title, image = config.image, description = config.description, username = config.username, message = config.message, subject = config.subject, text_color = config.text_color, background_color = config.background_color, preview = config.preview; 5420 alignment_opposite = alignment === 'left' ? 'right' : 'left'; 5421 if (alignment == null) { 5422 alignment = 'left'; 5423 } 5424 if (background_color == null) { 5425 background_color = '#B581A3'; 5426 } 5427 if (color == null) { 5428 color = 'social'; 5429 } 5430 if (hide_desktop == null) { 5431 hide_desktop = false;
5432 } 5433 if (text_color == null) { 5434 text_color = '#fff'; 5435 } 5436 if (labels == null) { 5437 labels = 'counts'; 5438 } 5439 if (language == null) { 5440 language = 'en'; 5441 } 5442 if (min_count == null) { 5443 min_count = 0; 5444 } 5445 if (mobile_breakpoint == null) { 5446 mobile_breakpoint = 0; 5447 } 5448 if (networks == null) { 5449 networks = ['facebook', 'twitter', 'pinterest', 'email', 'sharethis', 'sms']; 5450 } 5451 if (padding == null) { 5452 padding = 12; 5453 } 5454 if (radius == null) { 5455 radius = 0; 5456 } 5457 if (show_mobile == null) { 5458 show_mobile = false; 5459 } 5460 if (show_mobile_buttons == null) { 5461 show_mobile_buttons = st.mobile; 5462 } 5463 if (show_toggle == null) { 5464 show_toggle = true; 5465 } 5466 if (show_total == null) { 5467 show_total = false; 5468 } 5469 if (size == null) { 5470 size = 48; 5471 } 5472 if (slide_in == null) { 5473 slide_in = true; 5474 } 5475 if (subject == null) { 5476 subject = st.i18n['subjects'][language]; 5477 } 5478 if (top == null) { 5479 top = 100; 5480 } 5481 if (use_native_counts == null) { 5482 use_native_counts = true; 5483 } 5484 if (preview == null) { 5485 preview = false; 5486 } 5487 if ((typeof Shopify !== "undefined" && Shopify !== null) && (Shopify.designMode != null)) { 5488 preview = false; 5489 } 5490 if (id == null) { 5491 id = "st-" + (st.uid()); 5492 } 5493 $el.setAttribute('id', id); 5494 scrollbar_width = alignment === 'right' ? st.getScrollbarWidth() : 0; 5495 scrollbar_width = 0; 5496 st.addClass($el, ['st-sticky-share-buttons', "st-" + alignment, show_toggle ? 'st-toggleable' : void 0, labels === 'counts' || labels === 'cta' ? 'st-has-labels' : void 0, show_total ? 'st-show-total' : void 0, slide_in ? 'st-hidden' : void 0, language !== 'en' ? "st-lang-" + language : void 0, true === preview ? 'st-preview' : void 0]); 5497 common_css = "#" + id + " {\n " + st.FONT_FAMILY + ";\n " + (st.TRANSITION()) + "\n backface-visibility: hidden;\n display: " + (!hide_desktop ? 'block' : 'none') + ";\n position: fixed;\n opacity: 1;\n text-align: left;\n top: " + (st.px(top)) + ";\n z-index: 94034;\n}\n#" + id + ".st-" + alignment + " {\n " + alignment + ": " + (st.px(scrollbar_width)) + ";\n}\n#" + id + ".st-hidden.st-" + alignment + " {\n " + alignment + ": -" + (st.px(size)) + ";\n}\n#" + id + ".st-hidden {\n width: " + (st.px(2 * size)) + ";\n}\n#" + id + ".st-preview {\n display: none!important;\n opacity: 0!important;\n}\n#" + id + " > div {\n clear: " + alignment + ";\n float: " + alignment + ";\n}\n#" + id + " .st-btn {\n " + st.BORDER_BOX + "\n " + (st.TRANSITION()) + "\n border: " + (color === 'white' ? 'solid 0.5px #ccc' : 'none') + ";\n cursor: pointer;\n display: inline-block;\n font-size: " + (st.px(font_size)) + ";\n height: " + (st.px(size)) + ";\n line-height: " + (st.px(size / 2)) + ";\n margin-bottom: " + (spacing ? st.px(spacing) : 0) + ";\n opacity: 1;\n overflow: hidden;\n padding: " + (st.px(padding)) + ";\n position: relative;\n text-align: left;\n top: 0;\n vertical-align: top;\n white-space: nowrap;\n width: " + (st.px(size)) + ";\n}\n#" + id + " .st-btn.st-first {\n border-top: " + (color === 'white' ? 'solid 1px #ccc' : 'none') + ";\n border-top-" + alignment_opposite + "-radius: " + (st.px(radius)) + ";\n}\n#" + id + " .st-btn.st-last {\n border-bottom: " + (color === 'white' ? 'solid 1px #ccc' : 'none') + ";\n border-bottom-" + alignment_opposite + "-radius: " + (st.px(radius)) + ";\n}\n#" + id + " .st-btn > svg {\n " + (st.TRANSITION()) + "\n height: " + (st.px(size / 2)) + ";\n margin-left: 0;\n vertical-align: top;\n width: " + (st.px(size / 2)) + ";\n}\n#" + id + " .st-btn > img {\n " + (st.TRANSITION()) + "\n height: " + (st.px(size / 2)) + ";\n margin-left: 0;\n vertical-align: top;\n width: " + (st.px(size / 2)) + ";\n}\n#" + id + " .st-btn > span {\n " + (st.TRANSITION()) + "\n color: #fff;\n display: inline-block;\n font-weight: 500;\n left: -35px;\n letter-spacing: 0.5px;\n opacity: 0;\n padding: 0 6px;\n position: relative;\n vertical-align: top;\n filter: alpha(opacity=0);\n}\n#" + id + " .st-btn.st-hide-label > span {\n display: none !important;\n}\n#" + id + " .st-total {\n " + (st.TRANSITION()) + "\n background: #fff;
5497\n color: #555;\n display: inline-block;\n font-weight: 500;\n line-height: " + (st.px(.375 * size)) + ";\n margin-right: 0;\n min-height: 34px;\n max-width: 80px;\n opacity: 1;\n padding: 4px 0;\n text-align: center;\n width: " + (st.px(size)) + ";\n}\n#" + id + " .st-total.st-hidden {\n display: none;\n}\n#" + id + " .st-total > span {\n display: block;\n font-size: " + (st.px(.38 * size)) + ";\n line-height: " + (st.px(.45 * size)) + ";\n padding: 0;\n}\n#" + id + " .st-total > span.st-shares {\n font-size: " + (st.px(.23 * size)) + ";\n line-height: " + (st.px(.23 * size)) + ";\n}\n#" + id + " .st-toggle {\n " + alignment + ": -" + (st.px(size + scrollbar_width)) + ";\n " + (st.TRANSITION()) + "\n background: #ccc;\n border-bottom-" + alignment_opposite + "-radius: " + (st.px(radius)) + ";\n color: white;\n cursor: pointer;\n font-size: " + (st.px(.5 * size)) + ";\n line-height: " + (st.px(.5 * size)) + ";\n position: relative;\n text-align: center;\n width: " + (st.px(size)) + ";\n}\n#" + id + ".st-hidden .st-toggle {\n border-top-" + alignment_opposite + "-radius: " + (st.px(radius)) + ";\n}\n#" + id + ".st-" + alignment + " .st-toggle .st-" + alignment + " {\n display: inline-block;\n}\n#" + id + ".st-" + alignment + ".st-hidden .st-toggle .st-" + alignment + " {\n display: none;\n}\n#" + id + ".st-" + alignment + " .st-toggle .st-" + alignment_opposite + " {\n display: none;\n}\n#" + id + ".st-" + alignment + ".st-hidden .st-toggle .st-" + alignment_opposite + " {\n display: inline-block;\n}"; 5498 mobile_css = "#" + id + " {\n bottom: 0;\n display: " + (show_mobile ? 'flex' : 'none') + ";\n left: 0;\n right: 0;\n top: auto;\n width: 100%;\n}\n#" + id + ".st-hidden {\n bottom: -" + (st.px(size)) + ";\n width: 100%;\n}\n#" + id + ".st-hidden.st-left {\n left: 0;\n}\n#" + id + ".st-hidden.st-right {\n right: 0;\n}\n#" + id + " > div {\n -moz-flex: 1;\n -ms-flex: 1;\n -webkit-flex: 1;\n clear: none;\n flex: 1;\n float: none;\n}\n#" + id + " .st-total {\n background: #fff;\n padding: 6px 8px;\n}\n#" + id + " .st-btn {\n " + (st.BORDER_RADIUS('0 !important')) + "\n text-align: center;\n width: auto;\n}\n#" + id + " .st-btn > span {\n display: none;\n}\n#" + id + " .st-toggle {\n display: none;\n}"; 5499 if (show_mobile && !document.body.style.paddingBottom) { 5500 mobile_css += "body { padding-bottom: 48px; }"; 5501 } 5502 responsive_css = "@media (max-width: " + (st.px(mobile_breakpoint)) + ") {\n " + mobile_css + "\n}";
5503 hover_css = "#" + id + ":hover .st-toggle {\n " + alignment + ": 0;\n}\n#" + id + ".st-hidden:hover .st-toggle {\n " + alignment + ": " + (st.px(size)) + ";\n}\n#" + id + ".st-toggleable:hover .st-btn.st-last {\n border-bottom-" + alignment_opposite + "-radius: 0;\n}\n#" + id + ".st-toggleable:hover .st-btn.st-last:hover {\n border-bottom-" + alignment_opposite + "-radius: " + (st.px(radius)) + ";\n}\n#" + id + " .st-btn:hover {\n border-bottom-" + alignment_opposite + "-radius: " + (st.px(radius)) + ";\n border-top-" + alignment_opposite + "-radius: " + (st.px(radius)) + ";\n}\n#" + id + ".st-has-labels .st-btn:hover {\n width: " + (st.px(st.i18n['sticky-width'][language])) + ";\n}\n#" + id + ":not(.st-has-labels) .st-btn:hover {\n width: " + (st.px(1.3 * size)) + ";\n}\n#" + id + " .st-btn.st-hide-label:hover {\n width: " + (st.px(1.3 * size)) + ";\n}\n#" + id + " .st-btn:hover > svg {\n margin-left: 5px;\n}\n#" + id + " .st-btn:hover > img {\n margin-left: 5px;\n}\n#" + id + " .st-btn:hover > span {\n opacity: 1;\n display: inline-block;\n left: 0;\n filter: alpha(opacity=100);\n}\n@media (max-width: " + (st.px(mobile_breakpoint)) + ") {\n #" + id + " .st-btn:hover > svg {\n margin-left: 0;\n }\n #" + id + " .st-btn:hover > span {\n display: none;\n }\n}"; 5504 text_color_filter = st.getFilter(text_color); 5505 network_css = ((function() { 5506 var i, len, results; 5507 results = []; 5508 for (i = 0, len = networks.length; i < len; i++) { 5509 network = networks[i]; 5510 results.push("#" + id + " .st-btn[data-network='" + network + "'] {\n background-color: " + ((function() { 5511 switch (color) { 5512 case 'social': 5513 return st.COLORS[network]; 5514 case 'black': 5515 return '#000'; 5516 case 'gray': 5517 return '#eee'; 5518 case 'custom': 5519 return background_color; 5520 case 'white': 5521 return '#fff'; 5522 default: 5523 return '#fff'; 5524 } 5525 })()) + "\n}\n#" + id + " .st-btn[data-network='" + network + "'] img {\n filter: " + ((function() { 5526 switch (color) { 5527 case 'black': 5528 return 'invert(0%) sepia(100%) saturate(22%) hue-rotate(45deg) brightness(107%) contrast(105%)'; 5529 case 'gray': 5530 return 'invert(100%) sepia(100%) saturate(22%) hue-rotate(45deg) brightness(107%) contrast(105%)'; 5531 case 'custom': 5532 return text_color_filter; 5533 default: 5534 return ''; 5535 } 5536 })()) + "\n}\n#" + id + " .st-btn[data-network='" + network + "'] > span {\n color: " + ((function() { 5537 switch (color) { 5538 case 'white': 5539 return st.COLORS[network]; 5540 case 'black': 5541 return '#fff'; 5542 case 'gray': 5543 return '#000'; 5544 case 'custom': 5545 return text_color; 5546 case 'social': 5547 return '#fff'; 5548 default: 5549 return '#fff'; 5550 } 5551 })()) + "\n}"); 5552 } 5553 return results; 5554 })()).join('\n'); 5555 network_css += "#" + id + " .st-btn[data-network='snapchat'] > span {\n color: " + (color === 'black' ? '#fff' : '#333') + "};\n}"; 5556 network_css += "#" + id + " .st-btn[data-network='copy']:hover {\n width: max-content;\n}"; 5557 if (network === 'blm') { 5558 network_css += "#" + id + " .st-btn[data-network='blm']:hover {\n width: 165px;\n}"; 5559 } 5560 css = common_css; 5561 if (!st.mobile) { 5562 css += hover_css; 5563 } 5564 if (!st.mobile) { 5565 css += responsive_css; 5566 } 5567 if (st.mobile) { 5568 css += mobile_css; 5569 } 5570 css += network_css; 5571 st.css(css); 5572 if (!show_mobile_buttons) { 5573 ref = ['sms']; 5574 for (i = 0, len = ref.length; i < len; i++) { 5575 network = ref[i]; 5576 index = networks.indexOf(network); 5577 if (index > -1) { 5578 networks.splice(index, 1); 5579 } 5580 } 5581 } 5582 html = ''; 5583 networks = st.filterInvalidNetworks(networks); 5584 if (show_total) { 5585 html += "<div class='st-total st-hidden'>\n <span class='st-label'></span>\n <span class='st-shares'>\n " + (st.capitalize(st.i18n['shares'][language])) + "\n </span>\n</div>"; 5586 } 5587 for (index = j = 0, len1 = networks.length; j < len1; index = ++j) { 5588 network = networks[index]; 5589 class_names = ['st-btn']; 5590 if (index === 0) { 5591 class_names.push('st-first'); 5592 } 5593 if (index === networks.length - 1) { 5594 class_names.push('st-last'); 5595 } 5596 label = st.getShareLabel(network, language); 5597 if (labels !== 'cta') { 5598 label = ''; 5599 } 5600 label_span = "<span class='st-label'>" + label + "</span>"; 5601 html += "<div class='" + (class_names.join(' ')) + "' data-network='" + network + "'>\n " + (color === 'white' ? st.ICONS_WHITE[network] : st.ICONS[network]) + "\n " + (labels === 'counts' || labels === 'cta' ? label_span : '') + "\n</div>"; 5602 } 5603 if (show_toggle) { 5604 html += "<div class=\"st-toggle\">\n <div class=\"st-left\">\n " + st.ICONS['arrow_left'] + "\n </div>\n <div class=\"st-right\">\n " + st.ICONS['arrow_right'] + "\n </div>\n</div>"; 5605 } 5606 $el.innerHTML = html; 5607 $buttons = $el.querySelectorAll('.st-btn'); 5608 $toggle = $el.querySelector('.st-toggle'); 5609 $total = $el.querySelector('.st-total'); 5610 $total_label = $el.querySelector('.st-total .st-label'); 5611 st.addEventListener($toggle, 'click', function() { 5612 return st.toggleClass($el, 'st-hidden'); 5613 }); 5614 resize = function() { 5615 var $button, k, l, len2, len3, max, ref1, results; 5616 max = 100; 5617 if (st.mobile || window.innerWidth < mobile_breakpoint) { 5618 max = 6; 5619 } 5620 if (show_total) { 5621 max--; 5622 } 5623 if (indexOf.call(networks, 'sharethis') >= 0) { 5624 max--; 5625 } 5626 if (indexOf.call(networks, 'sms') >= 0) { 5627 max--; 5628 } 5629 if (indexOf.call(networks, 'whatsapp') >= 0) { 5630 max--; 5631 } 5632 if (indexOf.call(networks, 'messenger') >= 0) { 5633 max--; 5634 } 5635 if (indexOf.call(networks, 'wechat') >= 0) { 5636 max--; 5637 } 5638 for (k = 0, len2 = $buttons.length; k < len2; k++) { 5639 $button = $buttons[k]; 5640 $button.style.display = 'inline-block'; 5641 } 5642 results = []; 5643 for (index = l = 0, len3 = $buttons.length; l < len3; index = ++l) { 5644 $button = $buttons[index]; 5645 if ((ref1 = $button.getAttribute('data-network')) === 'sharethis' || ref1 === 'sms' || ref1 === 'messenger' || ref1 === 'whatsapp' || ref1 === 'wechat') { 5646 continue; 5647 } 5648 if (max-- > 0) { 5649 continue; 5650 } 5651 results.push($button.style.display = 'none'); 5652 } 5653 return results; 5654 }; 5655 st.addEventListener(window, 'resize', resize); 5656 fn = function($button) { 5657 return st.addEventListener($button, 'click', function() { 5658 return st.share({ 5659 channel_is_ssb: config.is_ssb, 5660 channels_displayed: JSON.stringify(config.networks), 5661 count_url: $el != null ? $el.getAttribute('data-count-url') : void 0, 5662 description: description || ($el != null ? $el.getAttribute('data-description') : void 0), 5663 image: image || ($el != null ? $el.getAttribute('data-image') : void 0), 5664 message: message || ($el != null ? $el.getAttribute('data-message') : void 0), 5665 network: $button.getAttribute('data-network'), 5666 share_url: $el != null ? $el.getAttribute('data-short-url') : void 0, 5667 subject: subject || $el.getAttribute('data-email-subject'), 5668 title: title || ($el != null ? $el.getAttribute('data-title') : void 0), 5669 url: url || ($el != null ? $el.getAttribute('data-url') : void 0), 5670 username: username || ($el != null ? $el.getAttribute('data-username') : void 0) 5671 }); 5672 }); 5673 }; 5674 for (k = 0, len2 = $buttons.length; k < len2; k++) { 5675 $button = $buttons[k]; 5676 fn($button); 5677 } 5678 if (show_total || labels === 'counts') { 5679 return st.loadCounts({ 5680 url: url || ($el != null ? $el.getAttribute('data-url') : void 0) 5681 }, function(counts) { 5682 var l, len3, ref1, ref2, ref3, value; 5683 if (show_total) { 5684 if (((ref1 = counts['total']) != null ? ref1.value : void 0) > min_count) { 5685 $total_label.innerHTML = counts['total'].label; 5686 st.removeClass($total, 'st-hidden'); 5687 } else { 5688 st.addClass($total, 'st-hidden'); 5689 } 5690 } 5691 if (labels === 'counts') { 5692 for (l = 0, len3 = $buttons.length; l < len3; l++) { 5693 $button = $buttons[l]; 5694 network = $button.getAttribute('data-network'); 5695 ref2 = counts[network] || {}, label = ref2.label, value = ref2.value; 5696 if (label && value > min_count) { 5697 if ((ref3 = $button.querySelector('.st-label')) != null) { 5698 ref3.innerHTML = label; 5699 } 5700 st.removeClass($button, 'st-hide-label'); 5701 } else { 5702 st.addClass($button, 'st-hide-label'); 5703 } 5704 } 5705 } 5706 resize(); 5707 setTimeout((function() { 5708 return st.removeClass($el, 'st-hidden'); 5709 }), 10); 5710 return typeof onLoad === "function" ? onLoad() : void 0; 5711 }); 5712 } else { 5713 resize(); 5714 setTimeout((function() { 5715 return st.removeClass($el, 'st-hidden'); 5716 }), 10); 5717 return typeof onLoad === "function" ? onLoad() : void 0; 5718 } 5719 }; 5720 5721}).call(this); 5722 5723(function() { 5724 var st; 5725 5726 st = window.__sharethis__; 5727 5728 st.loader['video-share-buttons'] = function(config) { 5729 var alignment, container, networks, omit_class, onLoad, padding, radius, size, spacing; 5730 if (config == null) { 5731 config = {}; 5732 } 5733 if (!config.enabled) { 5734 return; 5735 } 5736 alignment = config.alignment, container = config.container, omit_class = config.omit_class, onLoad = config.onLoad, padding = config.padding, networks = config.networks, radius = config.radius, size = config.size, spacing = config.spacing; 5737 if (networks == null) { 5738 networks = ['facebook', 'twitter', 'pinterest', 'email']; 5739 } 5740 if (omit_class == null) { 5741 omit_class = ''; 5742 } 5743 if (padding == null) { 5744 padding = 10; 5745 } 5746 if (radius == null) { 5747 radius = 0; 5748 } 5749 if (size == null) { 5750 size = 40; 5751 } 5752 if (spacing == null) { 5753 spacing = 8; 5754 } 5755 st.checkClass = function(checkClass, el) {}; 5756 return st.getEmbeds(function(el, type, url) { 5757 var $el, contAlign, id, inline_buttons, ref; 5758 if (type !== 'video') { 5759 return; 5760 } 5761 ref = st.newElement(el), $el = ref.$el, id = ref.id; 5762 if (omit_class) { 5763 if (st.hasClass(el.parentNode.parentNode, omit_class)) { 5764 return; 5765 } 5766 if (st.hasClass(el.parentNode, omit_class)) { 5767 return; 5768 } 5769 } 5770 st.addClass($el, 'st-video-share-buttons'); 5771 $el.style.width = el.offsetWidth.toString() + 'px'; 5772 $el.style.margin = '0'; 5773 $el.style.padding = '0'; 5774 if (el.tagName.toLowerCase() === 'blockquote') { 5775 $el.style.margin = 'auto'; 5776 } 5777 $el.setAttribute('data-url', el.src); 5778 if (!st.is_ie) { 5779 contAlign = getComputedStyle(el.parentElement).textAlign;
5780 if ('center' === contAlign) { 5781 $el.style.margin = 'auto'; 5782 } 5783 } 5784 el.parentNode.insertBefore($el, el.nextSibling); 5785 return inline_buttons = st.load('inline-share-buttons', { 5786 alignment: alignment, 5787 id: id, 5788 enabled: true, 5789 networks: networks, 5790 padding: padding, 5791 radius: radius, 5792 size: size, 5793 spacing: spacing, 5794 onLoad: function() { 5795 st.addClass($el, ''); 5796 return typeof onLoad === "function" ? onLoad() : void 0; 5797 } 5798 }); 5799 }); 5800 }; 5801 5802}).call(this); 5803 5804(function(){window.__sharethis__.md5="bcff99ea74441b4b98a5443878b48702";})();
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.