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