-
Notifications
You must be signed in to change notification settings - Fork 6
/
Copy path76792b88-608eb467ae461dfe87d6.js
2 lines (2 loc) · 75.2 KB
/
76792b88-608eb467ae461dfe87d6.js
1
2
/*! For license information please see 76792b88-608eb467ae461dfe87d6.js.LICENSE.txt */
(window.webpackJsonp=window.webpackJsonp||[]).push([[1],{nDCI:function(e,t,r){!function(e){"use strict";var t=function(){return(t=Object.assign||function(e){for(var t,r=1,n=arguments.length;r<n;r++)for(var o in t=arguments[r])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e}).apply(this,arguments)};function r(e,t,r,n){return new(r||(r=Promise))((function(o,a){function i(e){try{s(n.next(e))}catch(t){a(t)}}function u(e){try{s(n.throw(e))}catch(t){a(t)}}function s(e){var t;e.done?o(e.value):(t=e.value,t instanceof r?t:new r((function(e){e(t)}))).then(i,u)}s((n=n.apply(e,t||[])).next())}))}function n(e,t){var r,n,o,a,i={label:0,sent:function(){if(1&o[0])throw o[1];return o[1]},trys:[],ops:[]};return a={next:u(0),throw:u(1),return:u(2)},"function"==typeof Symbol&&(a[Symbol.iterator]=function(){return this}),a;function u(a){return function(u){return function(a){if(r)throw new TypeError("Generator is already executing.");for(;i;)try{if(r=1,n&&(o=2&a[0]?n.return:a[0]?n.throw||((o=n.return)&&o.call(n),0):n.next)&&!(o=o.call(n,a[1])).done)return o;switch(n=0,o&&(a=[2&a[0],o.value]),a[0]){case 0:case 1:o=a;break;case 4:return i.label++,{value:a[1],done:!1};case 5:i.label++,n=a[1],a=[0];continue;case 7:a=i.ops.pop(),i.trys.pop();continue;default:if(!((o=(o=i.trys).length>0&&o[o.length-1])||6!==a[0]&&2!==a[0])){i=0;continue}if(3===a[0]&&(!o||a[1]>o[0]&&a[1]<o[3])){i.label=a[1];break}if(6===a[0]&&i.label<o[1]){i.label=o[1],o=a;break}if(o&&i.label<o[2]){i.label=o[2],i.ops.push(a);break}o[2]&&i.ops.pop(),i.trys.pop();continue}a=t.call(e,i)}catch(u){a=[6,u],n=0}finally{r=o=0}if(5&a[0])throw a[1];return{value:a[0]?a[1]:void 0,done:!0}}([a,u])}}}function o(e){var t="function"==typeof Symbol&&Symbol.iterator,r=t&&e[t],n=0;if(r)return r.call(e);if(e&&"number"==typeof e.length)return{next:function(){return e&&n>=e.length&&(e=void 0),{value:e&&e[n++],done:!e}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")}function a(e,t){var r="function"==typeof Symbol&&e[Symbol.iterator];if(!r)return e;var n,o,a=r.call(e),i=[];try{for(;(void 0===t||t-- >0)&&!(n=a.next()).done;)i.push(n.value)}catch(u){o={error:u}}finally{try{n&&!n.done&&(r=a.return)&&r.call(a)}finally{if(o)throw o.error}}return i}function i(e,t){for(var r=0,n=t.length,o=e.length;r<n;r++,o++)e[o]=t[r];return e}var u="undefined"==typeof navigator?"some useragent":navigator.userAgent.toLowerCase(),s="undefined"==typeof navigator?"some platform":navigator.platform.toLowerCase(),c=u.includes("chrome")||u.includes("chromium"),l=u.includes("thunderbird"),d=u.includes("firefox")||l;u.includes("vivaldi"),u.includes("yabrowser"),u.includes("opr")||u.includes("opera"),u.includes("edg");var f=u.includes("safari")&&!c,h=s.startsWith("win"),p=s.startsWith("mac");u.includes("mobile");var v,m="function"==typeof ShadowRoot,g="function"==typeof MediaQueryList&&"function"==typeof MediaQueryList.prototype.addEventListener;(v=u.match(/chrom[e|ium]\/([^ ]+)/))&&v[1]&&v[1];var b=function(){try{return document.querySelector(":defined"),!0}catch(e){return!1}}();function y(e,t){return r(this,void 0,void 0,(function(){var r;return n(this,(function(n){switch(n.label){case 0:return[4,fetch(e,{cache:"force-cache",credentials:"omit"})];case 1:if(r=n.sent(),d&&"text/css"===t&&e.startsWith("moz-extension://")&&e.endsWith(".css"))return[2,r];if(t&&!r.headers.get("Content-Type").startsWith(t))throw new Error("Mime type mismatch when loading "+e);if(!r.ok)throw new Error("Unable to load "+e+" "+r.status+" "+r.statusText);return[2,r]}}))}))}function w(e,t){return r(this,void 0,void 0,(function(){return n(this,(function(r){switch(r.label){case 0:return[4,y(e,t)];case 1:return[4,S(r.sent())];case 2:return[2,r.sent()]}}))}))}function S(e){return r(this,void 0,void 0,(function(){var t;return n(this,(function(r){switch(r.label){case 0:return[4,e.blob()];case 1:return t=r.sent(),[4,new Promise((function(e){var r=new FileReader;r.onloadend=function(){return e(r.result)},r.readAsDataURL(t)}))];case 2:return[2,r.sent()]}}))}))}!function(){try{new CSSStyleSheet}catch(e){return!1}}();var k=function(e){return r(void 0,void 0,void 0,(function(){return n(this,(function(t){return[2,Promise.reject(new Error(["Embedded Dark Reader cannot access a cross-origin resource",e,"Overview your URLs and CORS policies or use","`DarkReader.setFetchMethod(fetch: (url) => Promise<Response>))`.","See if using `DarkReader.setFetchMethod(window.fetch)`","before `DarkReader.enable()` works."].join(" ")))]}))}))},_=k;function E(e){return r(this,void 0,void 0,(function(){return n(this,(function(t){switch(t.label){case 0:return[4,_(e)];case 1:return[2,t.sent()]}}))}))}window.chrome||(window.chrome={}),chrome.runtime||(chrome.runtime={});var x=new Set;function C(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];return r(this,void 0,void 0,(function(){var t,r,o,a,i,u,s;return n(this,(function(n){switch(n.label){case 0:if(!e[0]||"fetch"!==e[0].type)return[3,8];t=e[0].id,n.label=1;case 1:return n.trys.push([1,7,,8]),r=e[0].data,o=r.url,a=r.responseType,[4,E(o)];case 2:return i=n.sent(),"data-url"!==a?[3,4]:[4,S(i)];case 3:return u=n.sent(),[3,6];case 4:return[4,i.text()];case 5:u=n.sent(),n.label=6;case 6:return x.forEach((function(e){return e({type:"fetch-response",data:u,error:null,id:t})})),[3,8];case 7:return s=n.sent(),console.error(s),x.forEach((function(e){return e({type:"fetch-response",data:null,err:s,id:t})})),[3,8];case 8:return[2]}}))}))}function V(e){x.add(e)}if("function"==typeof chrome.runtime.sendMessage){var R=chrome.runtime.sendMessage;chrome.runtime.sendMessage=function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];C.apply(void 0,i([],a(e))),R.apply(chrome.runtime,e)}}else chrome.runtime.sendMessage=C;if(chrome.runtime.onMessage||(chrome.runtime.onMessage={}),"function"==typeof chrome.runtime.onMessage.addListener){var M=chrome.runtime.onMessage.addListener;chrome.runtime.onMessage.addListener=function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];V.apply(void 0,i([],a(e))),M.apply(chrome.runtime.onMessage,e)}}else chrome.runtime.onMessage.addListener=V;var T="dynamicTheme",A={background:"#181a1b",text:"#e8e6e3"},L={background:"#dcdad7",text:"#181a1b"},P={mode:1,brightness:100,contrast:100,grayscale:0,sepia:0,useFont:!1,fontFamily:p?"Helvetica Neue":h?"Segoe UI":"Open Sans",textStroke:0,engine:T,stylesheet:"",darkSchemeBackgroundColor:A.background,darkSchemeTextColor:A.text,lightSchemeBackgroundColor:L.background,lightSchemeTextColor:L.text,scrollbarColor:p?"":"auto",selectionColor:"auto",styleSystemControls:!0};function j(e,t){var r,n;if(function(e){return null!=e.length}(e))for(var a=0,i=e.length;a<i;a++)t(e[a]);else try{for(var u=o(e),s=u.next();!s.done;s=u.next())t(s.value)}catch(c){r={error:c}}finally{try{s&&!s.done&&(n=u.return)&&n.call(u)}finally{if(r)throw r.error}}}function O(e,t){j(t,(function(t){return e.push(t)}))}function D(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t]}function F(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t]}function q(e){var t,r=!1,n=null;return Object.assign((function(){for(var o=[],u=0;u<arguments.length;u++)o[u]=arguments[u];t=o,n?r=!0:(e.apply(void 0,i([],a(t))),n=requestAnimationFrame((function(){n=null,r&&(e.apply(void 0,i([],a(t))),r=!1)})))}),{cancel:function(){cancelAnimationFrame(n),r=!1,n=null}})}function N(e){var t=0;return e.seconds&&(t+=1e3*e.seconds),e.minutes&&(t+=60*e.minutes*1e3),e.hours&&(t+=60*e.hours*60*1e3),e.days&&(t+=24*e.days*60*60*1e3),t}function B(e){e&&e.parentNode&&e.parentNode.removeChild(e)}function W(e,t,r){void 0===r&&(r=Function.prototype);var n=N({seconds:2}),o=N({seconds:10}),a=e.previousSibling,i=e.parentNode;if(!i)throw new Error("Unable to watch for node position: parent element not found");if("prev-sibling"===t&&!a)throw new Error("Unable to watch for node position: there is no previous sibling");var u=0,s=null,c=null,l=q((function(){if(!c){u++;var f=Date.now();if(null==s)s=f;else if(u>=10){if(f-s<o)return F("Node position watcher paused: retry in "+n+"ms",e,a),void(c=setTimeout((function(){s=null,u=0,c=null,l()}),n));s=f,u=1}if("parent"===t&&a&&a.parentNode!==i)return F("Unable to restore node position: sibling parent changed",e,a,i),void h();if("prev-sibling"===t){if(null==a.parentNode)return F("Unable to restore node position: sibling was removed",e,a,i),void h();a.parentNode!==i&&(F("Style was moved to another parent",e,a,i),p(a.parentNode))}F("Restoring node position",e,a,i),i.insertBefore(e,a?a.nextSibling:i.firstChild),d.takeRecords(),r&&r()}})),d=new MutationObserver((function(){("parent"===t&&e.parentNode!==i||"prev-sibling"===t&&e.previousSibling!==a)&&l()})),f=function(){d.observe(i,{childList:!0})},h=function(){clearTimeout(c),d.disconnect(),l.cancel()},p=function(e){i=e,h(),f()};return f(),{run:f,stop:h,skip:function(){d.takeRecords()}}}function I(e,t){if(null!=e)for(var r=document.createTreeWalker(e,NodeFilter.SHOW_ELEMENT,{acceptNode:function(e){return null==e.shadowRoot?NodeFilter.FILTER_SKIP:NodeFilter.FILTER_ACCEPT}}),n=e.shadowRoot?r.currentNode:r.nextNode();null!=n;n=r.nextNode())t(n),I(n.shadowRoot,t)}function U(){return"complete"===document.readyState||"interactive"===document.readyState}var $=new Set;function H(e){$.add(e)}function z(e){$.delete(e)}U()||document.addEventListener("readystatechange",(function e(){U()&&(document.removeEventListener("readystatechange",e),$.forEach((function(e){return e()})),$.clear())}));var G,Q=new Map,K=new WeakMap;function J(e,t){var r,n,o;if(Q.has(e))r=Q.get(e),n=K.get(r);else{var a=!1,i=!1;(r=new MutationObserver((function(t){if(function(e){if(e.length>1e3)return!0;for(var t=0,r=0;r<e.length;r++)if((t+=e[r].addedNodes.length)>1e3)return!0;return!1}(t))!a||U()?n.forEach((function(t){return(0,t.onHugeMutations)(e)})):i||(H(o=function(){return n.forEach((function(t){return(0,t.onHugeMutations)(e)}))}),i=!0),a=!0;else{var r=function(e){var t=new Set,r=new Set,n=new Set;e.forEach((function(e){j(e.addedNodes,(function(e){e instanceof Element&&e.isConnected&&t.add(e)})),j(e.removedNodes,(function(e){e instanceof Element&&(e.isConnected?n.add(e):r.add(e))}))})),n.forEach((function(e){return t.delete(e)}));var o=[],a=[];return t.forEach((function(e){t.has(e.parentElement)&&o.push(e)})),r.forEach((function(e){r.has(e.parentElement)&&a.push(e)})),o.forEach((function(e){return t.delete(e)})),a.forEach((function(e){return r.delete(e)})),{additions:t,moves:n,deletions:r}}(t);n.forEach((function(e){return(0,e.onMinorMutations)(r)}))}}))).observe(e,{childList:!0,subtree:!0}),Q.set(e,r),n=new Set,K.set(r,n)}return n.add(t),{disconnect:function(){n.delete(t),o&&z(o),0===n.size&&(r.disconnect(),K.delete(r),Q.delete(e))}}}var X=new Map;function Y(e){return G||(G=document.createElement("a")),G.href=e,G.href}function Z(e,t){void 0===t&&(t=null);var r=e+(t?";"+t:"");if(X.has(r))return X.get(r);if(t){var n=new URL(e,Y(t));return X.set(r,n),n}var o=new URL(Y(e));return X.set(e,o),o}function ee(e,t){if(t.match(/^data\:/))return t;var r=Z(e);return Z(t,r.href).href}function te(e,t){j(e,(function(e){if(e instanceof CSSMediaRule){var r=Array.from(e.media),n=r.some((function(e){return e.startsWith("screen")||e.startsWith("all")})),o=r.some((function(e){return e.startsWith("print")||e.startsWith("speech")}));!n&&o||te(e.cssRules,t)}else if(e instanceof CSSStyleRule)t(e);else if(e instanceof CSSImportRule)try{te(e.styleSheet.cssRules,t)}catch(a){F(a)}else e instanceof CSSSupportsRule?CSS.supports(e.conditionText)&&te(e.cssRules,t):F("CSSRule type not supported",e)}))}var re=["background","border","border-color","border-bottom","border-left","border-right","border-top","outline","outline-color"],ne=f?re.map((function(e){return[e,new RegExp(e+":\\s*(.*?)\\s*;")]})):null;function oe(e,t){j(e,(function(r){var n=e.getPropertyValue(r).trim();n&&t(r,n)})),f&&e.cssText.includes("var(")?ne.forEach((function(r){var n=a(r,2),o=n[0],i=n[1],u=e.cssText.match(i);if(u&&u[1]){var s=u[1].trim();t(o,s)}})):re.forEach((function(r){var n=e.getPropertyValue(r);n&&n.includes("var(")&&t(r,n)}))}var ae=/url\((('.+?')|(".+?")|([^\)]*?))\)/g,ie=/@import\s*(url\()?(('.+?')|(".+?")|([^\)]*?))\)?;?/g;function ue(e){return e.replace(/^url\((.*)\)$/,"$1").replace(/^"(.*)"$/,"$1").replace(/^'(.*)'$/,"$1")}function se(e){var t=Z(e);return""+t.origin+t.pathname.replace(/\?.*$/,"").replace(/(\/)([^\/]+)$/i,"$1")}var ce=/\/\*[\s\S]*?\*\//g,le=/@font-face\s*{[^}]*}/g;function de(e){var t=e.h,r=e.s,n=e.l,o=e.a,i=void 0===o?1:o;if(0===r){var u=a([n,n,n].map((function(e){return Math.round(255*e)})),3),s=u[0],c=u[1];return{r:s,g:u[2],b:c,a:i}}var l=(1-Math.abs(2*n-1))*r,d=l*(1-Math.abs(t/60%2-1)),f=n-l/2,h=a((t<60?[l,d,0]:t<120?[d,l,0]:t<180?[0,l,d]:t<240?[0,d,l]:t<300?[d,0,l]:[l,0,d]).map((function(e){return Math.round(255*(e+f))})),3);return{r:h[0],g:h[1],b:h[2],a:i}}function fe(e){var t=e.r,r=e.g,n=e.b,o=e.a,a=void 0===o?1:o,i=t/255,u=r/255,s=n/255,c=Math.max(i,u,s),l=Math.min(i,u,s),d=c-l,f=(c+l)/2;if(0===d)return{h:0,s:0,l:f,a:a};var h=60*(c===i?(u-s)/d%6:c===u?(s-i)/d+2:(i-u)/d+4);return h<0&&(h+=360),{h:h,s:d/(1-Math.abs(2*f-1)),l:f,a:a}}function he(e,t){void 0===t&&(t=0);var r=e.toFixed(t);if(0===t)return r;var n=r.indexOf(".");if(n>=0){var o=r.match(/0+$/);if(o)return o.index===n+1?r.substring(0,n):r.substring(0,o.index)}return r}function pe(e){var t=e.h,r=e.s,n=e.l,o=e.a;return null!=o&&o<1?"hsla("+he(t)+", "+he(100*r)+"%, "+he(100*n)+"%, "+he(o,2)+")":"hsl("+he(t)+", "+he(100*r)+"%, "+he(100*n)+"%)"}var ve=/^rgba?\([^\(\)]+\)$/,me=/^hsla?\([^\(\)]+\)$/,ge=/^#[0-9a-f]+$/i;function be(e){var t,r,n,o,i,u=e.trim().toLowerCase();if(u.match(ve))return t=a(ye(u,we,Se,ke),4),r=t[0],n=t[1],o=t[2],i=t[3],{r:r,g:n,b:o,a:void 0===i?1:i};if(u.match(me))return function(e){var t=a(ye(e,_e,Ee,xe),4),r=t[0],n=t[1],o=t[2],i=t[3];return de({h:r,s:n,l:o,a:void 0===i?1:i})}(u);if(u.match(ge))return function(e){var t=e.substring(1);switch(t.length){case 3:case 4:var r=a([0,1,2].map((function(e){return parseInt(""+t[e]+t[e],16)})),3),n=r[0],o=r[1],i=r[2],u=3===t.length?1:parseInt(""+t[3]+t[3],16)/255;return{r:n,g:o,b:i,a:u};case 6:case 8:var s=a([0,2,4].map((function(e){return parseInt(t.substring(e,e+2),16)})),3);return n=s[0],o=s[1],i=s[2],u=6===t.length?1:parseInt(t.substring(6,8),16)/255,{r:n,g:o,b:i,a:u}}throw new Error("Unable to parse "+e)}(u);if(Ce.has(u))return function(e){var t=Ce.get(e);return{r:t>>16&255,g:t>>8&255,b:t>>0&255,a:1}}(u);if(Ve.has(u))return function(e){var t=Ve.get(e);return{r:t>>16&255,g:t>>8&255,b:t>>0&255,a:1}}(u);if("transparent"===e)return{r:0,g:0,b:0,a:0};throw new Error("Unable to parse "+e)}function ye(e,t,r,n){var o=e.split(t).filter((function(e){return e})),i=Object.entries(n);return o.map((function(e){return e.trim()})).map((function(e,t){var n,o=i.find((function(t){var r=a(t,1)[0];return e.endsWith(r)}));return n=o?parseFloat(e.substring(0,e.length-o[0].length))/o[1]*r[t]:parseFloat(e),r[t]>1?Math.round(n):n}))}var we=/rgba?|\(|\)|\/|,|\s/gi,Se=[255,255,255,1],ke={"%":100},_e=/hsla?|\(|\)|\/|,|\s/gi,Ee=[360,1,1,1],xe={"%":100,deg:360,rad:2*Math.PI,turn:1},Ce=new Map(Object.entries({aliceblue:15792383,antiquewhite:16444375,aqua:65535,aquamarine:8388564,azure:15794175,beige:16119260,bisque:16770244,black:0,blanchedalmond:16772045,blue:255,blueviolet:9055202,brown:10824234,burlywood:14596231,cadetblue:6266528,chartreuse:8388352,chocolate:13789470,coral:16744272,cornflowerblue:6591981,cornsilk:16775388,crimson:14423100,cyan:65535,darkblue:139,darkcyan:35723,darkgoldenrod:12092939,darkgray:11119017,darkgrey:11119017,darkgreen:25600,darkkhaki:12433259,darkmagenta:9109643,darkolivegreen:5597999,darkorange:16747520,darkorchid:10040012,darkred:9109504,darksalmon:15308410,darkseagreen:9419919,darkslateblue:4734347,darkslategray:3100495,darkslategrey:3100495,darkturquoise:52945,darkviolet:9699539,deeppink:16716947,deepskyblue:49151,dimgray:6908265,dimgrey:6908265,dodgerblue:2003199,firebrick:11674146,floralwhite:16775920,forestgreen:2263842,fuchsia:16711935,gainsboro:14474460,ghostwhite:16316671,gold:16766720,goldenrod:14329120,gray:8421504,grey:8421504,green:32768,greenyellow:11403055,honeydew:15794160,hotpink:16738740,indianred:13458524,indigo:4915330,ivory:16777200,khaki:15787660,lavender:15132410,lavenderblush:16773365,lawngreen:8190976,lemonchiffon:16775885,lightblue:11393254,lightcoral:15761536,lightcyan:14745599,lightgoldenrodyellow:16448210,lightgray:13882323,lightgrey:13882323,lightgreen:9498256,lightpink:16758465,lightsalmon:16752762,lightseagreen:2142890,lightskyblue:8900346,lightslategray:7833753,lightslategrey:7833753,lightsteelblue:11584734,lightyellow:16777184,lime:65280,limegreen:3329330,linen:16445670,magenta:16711935,maroon:8388608,mediumaquamarine:6737322,mediumblue:205,mediumorchid:12211667,mediumpurple:9662683,mediumseagreen:3978097,mediumslateblue:8087790,mediumspringgreen:64154,mediumturquoise:4772300,mediumvioletred:13047173,midnightblue:1644912,mintcream:16121850,mistyrose:16770273,moccasin:16770229,navajowhite:16768685,navy:128,oldlace:16643558,olive:8421376,olivedrab:7048739,orange:16753920,orangered:16729344,orchid:14315734,palegoldenrod:15657130,palegreen:10025880,paleturquoise:11529966,palevioletred:14381203,papayawhip:16773077,peachpuff:16767673,peru:13468991,pink:16761035,plum:14524637,powderblue:11591910,purple:8388736,rebeccapurple:6697881,red:16711680,rosybrown:12357519,royalblue:4286945,saddlebrown:9127187,salmon:16416882,sandybrown:16032864,seagreen:3050327,seashell:16774638,sienna:10506797,silver:12632256,skyblue:8900331,slateblue:6970061,slategray:7372944,slategrey:7372944,snow:16775930,springgreen:65407,steelblue:4620980,tan:13808780,teal:32896,thistle:14204888,tomato:16737095,turquoise:4251856,violet:15631086,wheat:16113331,white:16777215,whitesmoke:16119285,yellow:16776960,yellowgreen:10145074})),Ve=new Map(Object.entries({ActiveBorder:3906044,ActiveCaption:0,AppWorkspace:11184810,Background:6513614,ButtonFace:16777215,ButtonHighlight:15329769,ButtonShadow:10461343,ButtonText:0,CaptionText:0,GrayText:8355711,Highlight:11720703,HighlightText:0,InactiveBorder:16777215,InactiveCaption:16777215,InactiveCaptionText:0,InfoBackground:16514245,InfoText:0,Menu:16185078,MenuText:16777215,Scrollbar:11184810,ThreeDDarkShadow:0,ThreeDFace:12632256,ThreeDHighlight:16777215,ThreeDLightShadow:16777215,ThreeDShadow:0,Window:15527148,WindowFrame:11184810,WindowText:0,"-webkit-focus-ring-color":15046400}).map((function(e){var t=a(e,2),r=t[0],n=t[1];return[r.toLowerCase(),n]})));function Re(e,t,r,n,o){return(e-t)*(o-n)/(r-t)+n}function Me(e,t,r){return Math.min(r,Math.max(t,e))}function Te(e,t){for(var r=[],n=0,o=e.length;n<o;n++){r[n]=[];for(var a=0,i=t[0].length;a<i;a++){for(var u=0,s=0,c=e[0].length;s<c;s++)u+=e[n][s]*t[s][a];r[n][a]=u}}return r}function Ae(e,t,r){void 0===r&&(r=0);for(var n,o=[];n=e.exec(t);)o.push(n[r]);return o}function Le(e){var t=Pe.identity();return 0!==e.sepia&&(t=Te(t,Pe.sepia(e.sepia/100))),0!==e.grayscale&&(t=Te(t,Pe.grayscale(e.grayscale/100))),100!==e.contrast&&(t=Te(t,Pe.contrast(e.contrast/100))),100!==e.brightness&&(t=Te(t,Pe.brightness(e.brightness/100))),1===e.mode&&(t=Te(t,Pe.invertNHue())),t}var Pe={identity:function(){return[[1,0,0,0,0],[0,1,0,0,0],[0,0,1,0,0],[0,0,0,1,0],[0,0,0,0,1]]},invertNHue:function(){return[[.333,-.667,-.667,0,1],[-.667,.333,-.667,0,1],[-.667,-.667,.333,0,1],[0,0,0,1,0],[0,0,0,0,1]]},brightness:function(e){return[[e,0,0,0,0],[0,e,0,0,0],[0,0,e,0,0],[0,0,0,1,0],[0,0,0,0,1]]},contrast:function(e){var t=(1-e)/2;return[[e,0,0,0,t],[0,e,0,0,t],[0,0,e,0,t],[0,0,0,1,0],[0,0,0,0,1]]},sepia:function(e){return[[.393+.607*(1-e),.769-.769*(1-e),.189-.189*(1-e),0,0],[.349-.349*(1-e),.686+.314*(1-e),.168-.168*(1-e),0,0],[.272-.272*(1-e),.534-.534*(1-e),.131+.869*(1-e),0,0],[0,0,0,1,0],[0,0,0,0,1]]},grayscale:function(e){return[[.2126+.7874*(1-e),.7152-.7152*(1-e),.0722-.0722*(1-e),0,0],[.2126-.2126*(1-e),.7152+.2848*(1-e),.0722-.0722*(1-e),0,0],[.2126-.2126*(1-e),.7152-.7152*(1-e),.0722+.9278*(1-e),0,0],[0,0,0,1,0],[0,0,0,0,1]]}};function je(e){return e[1===e.mode?"darkSchemeBackgroundColor":"lightSchemeBackgroundColor"]}function Oe(e){return e[1===e.mode?"darkSchemeTextColor":"lightSchemeTextColor"]}var De=new Map,Fe=new Map;function qe(e){if(Fe.has(e))return Fe.get(e);var t=fe(be(e));return Fe.set(e,t),t}var Ne,Be=["r","g","b","a"],We=["mode","brightness","contrast","grayscale","sepia","darkSchemeBackgroundColor","darkSchemeTextColor","lightSchemeBackgroundColor","lightSchemeTextColor"];function Ie(e,t,r,n,o){var i;De.has(r)?i=De.get(r):(i=new Map,De.set(r,i));var u=function(e,t){return Be.map((function(t){return e[t]})).concat(We.map((function(e){return t[e]}))).join(";")}(e,t);if(i.has(u))return i.get(u);var s=de(r(fe(e),null==n?null:qe(n),null==o?null:qe(o))),c=s.r,l=s.g,d=s.b,f=s.a,h=a(function(e,t){var r=a(e,3),n=Te(t,[[r[0]/255],[r[1]/255],[r[2]/255],[1],[1]]);return[0,1,2].map((function(e){return Me(Math.round(255*n[e][0]),0,255)}))}([c,l,d],Le(t)),3),p=h[0],v=h[1],m=h[2],g=1===f?function(e){var t=e.r,r=e.g,n=e.b,o=e.a;return"#"+(null!=o&&o<1?[t,r,n,Math.round(255*o)]:[t,r,n]).map((function(e){return(e<16?"0":"")+e.toString(16)})).join("")}({r:p,g:v,b:m}):function(e){var t=e.r,r=e.g,n=e.b,o=e.a;return null!=o&&o<1?"rgba("+he(t)+", "+he(r)+", "+he(n)+", "+he(o,2)+")":"rgb("+he(t)+", "+he(r)+", "+he(n)+")"}({r:p,g:v,b:m,a:f});return i.set(u,g),g}function Ue(e){return e}function $e(e,t){var r=je(t);return Ie(e,t,He,Oe(t),r)}function He(e,t,r){var n=e.h,o=e.s,a=e.l,i=e.a,u=a<.5,s=n,c=a;return(u?a<.2||o<.12:o<.24||a>.8&&n>200&&n<280)&&(u?(s=t.h,c=t.s):(s=r.h,c=r.s)),{h:s,s:c,l:Re(a,0,1,t.l,r.l),a:i}}function ze(e,t){var r=e.h,n=e.s,o=e.l,a=e.a,i=n<.12||o>.8&&r>200&&r<280;if(o<.5){var u=Re(o,0,.5,0,.4);return i?{h:t.h,s:t.s,l:u,a:a}:{h:r,s:n,l:u,a:a}}var s=Re(o,.5,1,.4,t.l);if(i)return{h:t.h,s:t.s,l:s,a:a};var c=r;return r>60&&r<180&&(c=r>120?Re(r,120,180,135,180):Re(r,60,120,60,105)),{h:c,s:n,l:s,a:a}}function Ge(e,r){if(0===r.mode)return $e(e,r);var n=je(r);return Ie(e,t(t({},r),{mode:0}),ze,n)}function Qe(e){return Re(e,205,245,205,220)}function Ke(e,t){var r=e.h,n=e.s,o=e.l,a=e.a,i=o<.2||n<.24,u=!i&&r>205&&r<245;if(o>.5){var s=Re(o,.5,1,.55,t.l);if(i)return{h:t.h,s:t.s,l:s,a:a};var c=r;return u&&(c=Qe(r)),{h:c,s:n,l:s,a:a}}if(i)return{h:t.h,s:t.s,l:Re(o,0,.5,t.l,.55),a:a};var l,d=r;return u?(d=Qe(r),l=Re(o,0,.5,t.l,Math.min(1,.55+.05))):l=Re(o,0,.5,t.l,.55),{h:d,s:n,l:l,a:a}}function Je(e,r){if(0===r.mode)return $e(e,r);var n=Oe(r);return Ie(e,t(t({},r),{mode:0}),Ke,n)}function Xe(e,t,r){var n=e.h,o=e.s,a=e.l,i=e.a,u=n,s=o;return(a<.2||o<.24)&&(a<.5?(u=t.h,s=t.s):(u=r.h,s=r.s)),{h:u,s:s,l:Re(a,0,1,.5,.2),a:i}}function Ye(e,r){if(0===r.mode)return $e(e,r);var n=Oe(r),o=je(r);return Ie(e,t(t({},r),{mode:0}),Xe,n,o)}function Ze(e,t){return Ge(e,t)}function et(e){var t=[];return e.mode===Ne.dark&&t.push("invert(100%) hue-rotate(180deg)"),100!==e.brightness&&t.push("brightness("+e.brightness+"%)"),100!==e.contrast&&t.push("contrast("+e.contrast+"%)"),0!==e.grayscale&&t.push("grayscale("+e.grayscale+"%)"),0!==e.sepia&&t.push("sepia("+e.sepia+"%)"),0===t.length?null:t.join(" ")}!function(e){e[e.light=0]="light",e[e.dark=1]="dark"}(Ne||(Ne={}));var tt,rt,nt=0,ot=new Map,at=new Map;function it(e){return r(this,void 0,void 0,(function(){return n(this,(function(t){return[2,new Promise((function(t,r){var n=++nt;ot.set(n,t),at.set(n,r),chrome.runtime.sendMessage({type:"fetch",data:e,id:n})}))]}))}))}function ut(e){return r(this,void 0,void 0,(function(){var r,o,a;return n(this,(function(n){switch(n.label){case 0:return e.startsWith("data:")?(r=e,[3,3]):[3,1];case 1:return[4,st(e)];case 2:r=n.sent(),n.label=3;case 3:return[4,ct(r)];case 4:return o=n.sent(),a=function(e){tt||((tt=document.createElement("canvas")).width=1024,tt.height=1024,(rt=tt.getContext("2d")).imageSmoothingEnabled=!1);var t=e.naturalWidth,r=e.naturalHeight;if(0===r||0===t)return F("logWarn(Image is empty "+e.currentSrc+")"),null;var n=t*r,o=Math.min(1,Math.sqrt(1024/n)),a=Math.ceil(t*o),i=Math.ceil(r*o);rt.clearRect(0,0,a,i),rt.drawImage(e,0,0,t,r,0,0,a,i);var u,s,c,l,d,f,h,p=rt.getImageData(0,0,a,i).data,v=0,m=0,g=0;for(c=0;c<i;c++)for(s=0;s<a;s++)l=p[0+(u=4*(c*a+s))]/255,d=p[u+1]/255,f=p[u+2]/255,p[u+3]/255<.05?v++:((h=.2126*l+.7152*d+.0722*f)<.4&&m++,h>.7&&g++);var b=a*i,y=b-v;return{isDark:m/y>=.7,isLight:g/y>=.7,isTransparent:v/b>=.1,isLarge:n>=48e4}}(o),[2,t({src:e,dataURL:r,width:o.naturalWidth,height:o.naturalHeight},a)]}}))}))}function st(e){return r(this,void 0,void 0,(function(){return n(this,(function(t){switch(t.label){case 0:return new URL(e).origin!==location.origin?[3,2]:[4,w(e)];case 1:return[2,t.sent()];case 2:return[4,it({url:e,responseType:"data-url"})];case 3:return[2,t.sent()]}}))}))}function ct(e){return r(this,void 0,void 0,(function(){return n(this,(function(t){return[2,new Promise((function(t,r){var n=new Image;n.onload=function(){return t(n)},n.onerror=function(){return r("Unable to load image "+e)},n.src=e}))]}))}))}chrome.runtime.onMessage.addListener((function(e){var t=e.type,r=e.data,n=e.error,o=e.id;if("fetch-response"===t){var a=ot.get(o),i=at.get(o);ot.delete(o),at.delete(o),n?i&&i(n):a&&a(r)}}));var lt=new Set;function dt(e,t){for(var r=e.dataURL,n=e.width,o=e.height,a=['<svg xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" width="'+n+'" height="'+o+'">',"<defs>",'<filter id="darkreader-image-filter">','<feColorMatrix type="matrix" values="'+Le(t).slice(0,4).map((function(e){return e.map((function(e){return e.toFixed(3)})).join(" ")})).join(" ")+'" />',"</filter>","</defs>",'<image width="'+n+'" height="'+o+'" filter="url(#darkreader-image-filter)" xlink:href="'+r+'" />',"</svg>"].join(""),i=new Uint8Array(a.length),u=0;u<a.length;u++)i[u]=a.charCodeAt(u);var s=new Blob([i],{type:"image/svg+xml"}),c=URL.createObjectURL(s);return lt.add(c),c}function ft(){tt=null,rt=null,lt.forEach((function(e){return URL.revokeObjectURL(e)})),lt.clear()}function ht(e,t,r,n,o,a){var i=Boolean(r&&r.style&&r.style.getPropertyPriority(e)),u=t;if(e.startsWith("--")){if(s=function(e,t,r,n,o,a){return e.getModifierForVariable({varName:t,sourceValue:r,rule:n,ignoredImgSelectors:o,isCancelled:a})}(n,e,t,r,o,a))return{property:e,value:s,important:i,sourceValue:u}}else if(t.includes("var(")){if(s=function(e,t,r){return e.getModifierForVarDependant(t,r)}(n,e,t))return{property:e,value:s,important:i,sourceValue:u}}else if(e.includes("color")&&"-webkit-print-color-adjust"!==e||"fill"===e||"stroke"===e||"stop-color"===e){if(s=function(e,t){if(gt.has(t.toLowerCase()))return t;try{var r=yt(t);return e.includes("background")?function(e){return Ge(r,e)}:e.includes("border")||e.includes("outline")?function(e){return Ye(r,e)}:function(e){return Je(r,e)}}catch(n){return F("Color parse error",n),null}}(e,t))return{property:e,value:s,important:i,sourceValue:u}}else if("background-image"===e||"list-style-image"===e){if(s=Et(t,r,o,a))return{property:e,value:s,important:i,sourceValue:u}}else if(e.includes("shadow")){var s;if(s=function(e){try{var t=0,r=Ae(/(^|\s)([a-z]+\(.+?\)|#[0-9a-f]+|[a-z]+)(.*?(inset|outset)?($|,))/gi,e,2),n=r.map((function(n,o){var a=t,i=e.indexOf(n,t),u=i+n.length;t=u;var s=wt(n);return s?function(t){return""+e.substring(a,i)+function(e,t){return Ge(e,t)}(s,t)+(o===r.length-1?e.substring(u):"")}:function(){return e.substring(a,u)}}));return function(e){return n.map((function(t){return t(e)})).join("")}}catch(o){return F("Unable to parse shadow "+e,o),null}}(t))return{property:e,value:s,important:i,sourceValue:u}}return null}function pt(e,r,n){var o=[];return r||(o.push("html {"),o.push(" background-color: "+Ge({r:255,g:255,b:255},e)+" !important;"),o.push("}")),o.push((r?"":"html, body, ")+(n?"input, textarea, select, button":"")+" {"),o.push(" background-color: "+Ge({r:255,g:255,b:255},e)+";"),o.push("}"),o.push("html, body, "+(n?"input, textarea, select, button":"")+" {"),o.push(" border-color: "+Ye({r:76,g:76,b:76},e)+";"),o.push(" color: "+Je({r:0,g:0,b:0},e)+";"),o.push("}"),o.push("a {"),o.push(" color: "+Je({r:0,g:64,b:255},e)+";"),o.push("}"),o.push("table {"),o.push(" border-color: "+Ye({r:128,g:128,b:128},e)+";"),o.push("}"),o.push("::placeholder {"),o.push(" color: "+Je({r:169,g:169,b:169},e)+";"),o.push("}"),o.push("input:-webkit-autofill,"),o.push("textarea:-webkit-autofill,"),o.push("select:-webkit-autofill {"),o.push(" background-color: "+Ge({r:250,g:255,b:189},e)+" !important;"),o.push(" color: "+Je({r:0,g:0,b:0},e)+" !important;"),o.push("}"),e.scrollbarColor&&o.push(function(e){var r,n,o,a,i,u,s=[];if("auto"===e.scrollbarColor)r=Ge({r:241,g:241,b:241},e),n=Je({r:96,g:96,b:96},e),o=Ge({r:176,g:176,b:176},e),a=Ge({r:144,g:144,b:144},e),i=Ge({r:96,g:96,b:96},e),u=Ge({r:255,g:255,b:255},e);else{var c=fe(be(e.scrollbarColor)),l=c.l>.5,f=function(e){return t(t({},c),{l:Me(c.l+e,0,1)})},h=function(e){return t(t({},c),{l:Me(c.l-e,0,1)})};r=pe(h(.4)),n=pe(l?h(.4):f(.4)),o=pe(c),a=pe(f(.1)),i=pe(f(.2))}return s.push("::-webkit-scrollbar {"),s.push(" background-color: "+r+";"),s.push(" color: "+n+";"),s.push("}"),s.push("::-webkit-scrollbar-thumb {"),s.push(" background-color: "+o+";"),s.push("}"),s.push("::-webkit-scrollbar-thumb:hover {"),s.push(" background-color: "+a+";"),s.push("}"),s.push("::-webkit-scrollbar-thumb:active {"),s.push(" background-color: "+i+";"),s.push("}"),s.push("::-webkit-scrollbar-corner {"),s.push(" background-color: "+u+";"),s.push("}"),d&&(s.push("* {"),s.push(" scrollbar-color: "+o+" "+r+";"),s.push("}")),s.join("\n")}(e)),e.selectionColor&&o.push(function(e){var t=[],r=vt(e),n=r.backgroundColorSelection,o=r.foregroundColorSelection;return["::selection","::-moz-selection"].forEach((function(e){t.push(e+" {"),t.push(" background-color: "+n+" !important;"),t.push(" color: "+o+" !important;"),t.push("}")})),t.join("\n")}(e)),o.join("\n")}function vt(e){var r,n;if("auto"===e.selectionColor)r=Ge({r:0,g:96,b:212},t(t({},e),{grayscale:0})),n=Je({r:255,g:255,b:255},t(t({},e),{grayscale:0}));else{var o=fe(be(e.selectionColor));r=e.selectionColor,n=o.l<.5?"#FFF":"#000"}return{backgroundColorSelection:r,foregroundColorSelection:n}}function mt(e,t){var r=t.strict,n=[];return n.push("html, body, "+(r?"body :not(iframe)":"body > :not(iframe)")+" {"),n.push(" background-color: "+Ge({r:255,g:255,b:255},e)+" !important;"),n.push(" border-color: "+Ye({r:64,g:64,b:64},e)+" !important;"),n.push(" color: "+Je({r:0,g:0,b:0},e)+" !important;"),n.push("}"),n.join("\n")}var gt=new Set(["inherit","transparent","initial","currentcolor","none","unset"]),bt=new Map;function yt(e){if(e=e.trim(),bt.has(e))return bt.get(e);var t=be(e);return bt.set(e,t),t}function wt(e){try{return yt(e)}catch(t){return null}}var St=/[\-a-z]+gradient\(([^\(\)]*(\(([^\(\)]*(\(.*?\)))*[^\(\)]*\))){0,15}[^\(\)]*\)/g,kt=new Map,_t=new Map;function Et(e,o,a,i){var u=this;try{var s=Ae(St,e),c=Ae(ae,e);if(0===c.length&&0===s.length)return e;var l=function(t){var r=0;return t.map((function(t){var n=e.indexOf(t,r);return r=n+t.length,{match:t,index:n}}))},d=l(c).map((function(e){return t({type:"url"},e)})).concat(l(s).map((function(e){return t({type:"gradient"},e)}))).sort((function(e,t){return e.index-t.index})),f=function(e,r){var n,o=e.isDark,a=e.isLight,i=e.isTransparent,u=e.isLarge,s=e.width;return o&&i&&1===r.mode&&!u&&s>2?(D("Inverting dark image "+e.src),n='url("'+dt(e,t(t({},r),{sepia:Me(r.sepia+10,0,100)}))+'")'):a&&!i&&1===r.mode?u?n="none":(D("Dimming light image "+e.src),n='url("'+dt(e,r)+'")'):0===r.mode&&a&&!u?(D("Applying filter to image "+e.src),n='url("'+dt(e,t(t({},r),{brightness:Me(r.brightness-10,5,200),sepia:Me(r.sepia+10,0,100)}))+'")'):n=null,n},h=[],p=0;return d.forEach((function(t,s){var c=t.match,l=t.type,v=t.index,m=p,g=v+c.length;p=g,h.push((function(){return e.substring(m,v)})),h.push("url"===l?function(e){var t;if(function(e,t){if(!e||0===t.length)return!1;if(t.some((function(e){return"*"===e})))return!0;for(var r=e.split(/,\s*/g),n=function(e){var n=t[e];if(r.some((function(e){return e===n})))return{value:!0}},o=0;o<t.length;o++){var a=n(o);if("object"==typeof a)return a.value}return!1}(o.selectorText,a))return null;var s=ue(e),c=o.parentStyleSheet,l=c.href?se(c.href):(null===(t=c.ownerNode)||void 0===t?void 0:t.baseURI)||location.origin,d='url("'+(s=ee(l,s))+'")';return function(e){return r(u,void 0,void 0,(function(){var t,r;return n(this,(function(n){switch(n.label){case 0:return kt.has(s)?(t=kt.get(s),[3,7]):[3,1];case 1:return n.trys.push([1,6,,7]),_t.has(s)?(r=_t.get(s),[4,new Promise((function(e){return r.push(e)}))]):[3,3];case 2:return(t=n.sent())?[3,5]:[2,null];case 3:return _t.set(s,[]),[4,ut(s)];case 4:t=n.sent(),kt.set(s,t),_t.get(s).forEach((function(e){return e(t)})),_t.delete(s),n.label=5;case 5:return i()?[2,null]:[3,7];case 6:return F(n.sent()),_t.has(s)&&(_t.get(s).forEach((function(e){return e(null)})),_t.delete(s)),[2,d];case 7:return[2,f(t,e)||d]}}))}))}}(c):function(e){var t=e.match(/^(.*-gradient)\((.*)\)$/),r=t[1],n=t[2],o=/^(from|color-stop|to)\(([^\(\)]*?,\s*)?(.*?)\)$/,a=Ae(/([^\(\),]+(\([^\(\)]*(\([^\(\)]*\)*[^\(\)]*)?\))?[^\(\),]*),?/g,n,1).map((function(e){var t=wt(e=e.trim());if(t)return function(e){return Ze(t,e)};var r=e.lastIndexOf(" ");if(t=wt(e.substring(0,r)))return function(n){return Ze(t,n)+" "+e.substring(r+1)};var n=e.match(o);return n&&(t=wt(n[3]))?function(e){return n[1]+"("+(n[2]?n[2]+", ":"")+Ze(t,e)+")"}:function(){return e}}));return function(e){return r+"("+a.map((function(t){return t(e)})).join(", ")+")"}}(c)),s===d.length-1&&h.push((function(){return e.substring(g)}))})),function(e){var t=h.filter(Boolean).map((function(t){return t(e)}));return t.some((function(e){return e instanceof Promise}))?Promise.all(t).then((function(e){return e.join("")})):t.join("")}}catch(v){return F("Unable to parse gradient "+e,v),null}}function xt(){bt.clear(),De.clear(),Fe.clear(),kt.clear(),ft(),_t.clear()}var Ct=new(function(){function e(){this.varTypes=new Map,this.rulesQueue=[],this.definedVars=new Set,this.varRefs=new Map,this.unknownColorVars=new Set,this.unknownBgVars=new Set,this.undefinedVars=new Set,this.initialVarTypes=new Map,this.changedTypeVars=new Set,this.typeChangeSubscriptions=new Map,this.unstableVarValues=new Map}return e.prototype.clear=function(){this.varTypes.clear(),this.rulesQueue.splice(0),this.definedVars.clear(),this.varRefs.clear(),this.unknownColorVars.clear(),this.unknownBgVars.clear(),this.undefinedVars.clear(),this.initialVarTypes.clear(),this.changedTypeVars.clear(),this.typeChangeSubscriptions.clear(),this.unstableVarValues.clear()},e.prototype.isVarType=function(e,t){return this.varTypes.has(e)&&(this.varTypes.get(e)&t)>0},e.prototype.addRulesForMatching=function(e){this.rulesQueue.push(e)},e.prototype.matchVariablesAndDependants=function(){var e=this;this.changedTypeVars.clear(),this.initialVarTypes=new Map(this.varTypes),this.collectRootVariables(),this.rulesQueue.forEach((function(t){return e.collectVariables(t)})),this.rulesQueue.forEach((function(t){return e.collectVarDependants(t)})),this.rulesQueue.splice(0),this.collectRootVarDependants(),this.varRefs.forEach((function(t,r){t.forEach((function(t){e.varTypes.has(r)&&e.resolveVariableType(t,e.varTypes.get(r))}))})),this.unknownColorVars.forEach((function(t){e.unknownBgVars.has(t)?(e.unknownColorVars.delete(t),e.unknownBgVars.delete(t),e.resolveVariableType(t,1)):e.isVarType(t,7)?e.unknownColorVars.delete(t):e.undefinedVars.add(t)})),this.unknownBgVars.forEach((function(t){null!=e.findVarRef(t,(function(t){return e.unknownColorVars.has(t)||e.isVarType(t,6)}))?e.itarateVarRefs(t,(function(t){e.resolveVariableType(t,1)})):e.isVarType(t,9)?e.unknownBgVars.delete(t):e.undefinedVars.add(t)})),this.changedTypeVars.forEach((function(t){e.typeChangeSubscriptions.has(t)&&e.typeChangeSubscriptions.get(t).forEach((function(e){e()}))})),this.changedTypeVars.clear()},e.prototype.getModifierForVariable=function(e){var t=this;return function(r){var n=e.varName,o=e.sourceValue,a=e.rule,i=e.ignoredImgSelectors,u=e.isCancelled,s=function(){var e=[],s=function(a,i,u){if(t.isVarType(n,a)){var s,c=i(n);if(Dt(o))if(Ft(o)){var l=Wt(o,t.unstableVarValues);l||(l=1===a?"#ffffff":"#000000"),s=u(l,r)}else s=Tt(o,(function(e){return i(e)}),(function(e){return u(e,r)}));else s=u(o,r);e.push({property:c,value:s})}};if(s(1,At,qt),s(2,Lt,Nt),s(4,Pt,Bt),t.isVarType(n,8)){var c=jt(n),l=o;Dt(o)&&(l=Tt(o,(function(e){return At(e)}),(function(e){return qt(e,r)})));var d=Et(l,a,i,u);l="function"==typeof d?d(r):d,e.push({property:c,value:l})}return e},c=new Set;return{declarations:s(),onTypeChange:{addListener:function(e){var r=function(){var t=s();e(t)};c.add(r),t.subscribeForVarTypeChange(n,r)},removeListeners:function(){c.forEach((function(e){t.unsubscribeFromVariableTypeChanges(n,e)}))}}}}},e.prototype.getModifierForVarDependant=function(e,t){var r=this;if(t.match(/^\s*(rgb|hsl)a?\(/)){var n=e.startsWith("background"),o="color"===e;return function(e){var a=Wt(t,r.unstableVarValues);return a||(a=n?"#ffffff":"#000000"),(n?qt:o?Nt:Bt)(a,e)}}if("background-color"===e)return function(e){return Tt(t,(function(e){return At(e)}),(function(t){return qt(t,e)}))};if("color"===e)return function(e){return Tt(t,(function(e){return Lt(e)}),(function(t){return Nt(t,e)}))};if("background"===e||"background-image"===e||"box-shadow"===e)return function(e){var n=new Set,o=function(){return Tt(t,(function(e){return r.isVarType(e,1)?At(e):r.isVarType(e,8)?jt(e):(n.add(e),e)}),(function(t){return qt(t,e)}))},a=o();return n.size>0?new Promise((function(e){var t=n.values().next().value;r.subscribeForVarTypeChange(t,(function n(){r.unsubscribeFromVariableTypeChanges(t,n);var a=o();e(a)}))})):a};if(e.startsWith("border")||e.startsWith("outline")){if(t.endsWith(")")){var a=t.match(/((rgb|hsl)a?)\(/);if(a){var i=a.index;return function(e){return Wt(t,r.unstableVarValues)?""+t.substring(0,i)+Bt(Wt(t.substring(i,t.length),r.unstableVarValues),e):t}}}return function(e){return Tt(t,(function(e){return Pt(e)}),(function(t){return Nt(t,e)}))}}return null},e.prototype.subscribeForVarTypeChange=function(e,t){this.typeChangeSubscriptions.has(e)||this.typeChangeSubscriptions.set(e,new Set),this.typeChangeSubscriptions.get(e).add(t)},e.prototype.unsubscribeFromVariableTypeChanges=function(e,t){this.typeChangeSubscriptions.has(e)&&this.typeChangeSubscriptions.get(e).delete(t)},e.prototype.collectVariables=function(e){var t=this;!function(e,t){te(e,(function(e){e.style&&oe(e.style,(function(e,r){e.startsWith("--")&&t(e,r)}))}))}(e,(function(e,r){t.inspectVariable(e,r)}))},e.prototype.collectRootVariables=function(){var e=this;oe(document.documentElement.style,(function(t,r){Ot(t)&&e.inspectVariable(t,r)}))},e.prototype.inspectVariable=function(e,t){this.unstableVarValues.set(e,t),Dt(t)&&Ft(t)&&(this.unknownColorVars.add(e),this.definedVars.add(e)),this.definedVars.has(e)||(this.definedVars.add(e),wt(t)?this.unknownColorVars.add(e):(t.includes("url(")||t.includes("linear-gradient(")||t.includes("radial-gradient("))&&this.resolveVariableType(e,8))},e.prototype.resolveVariableType=function(e,t){var r=this.initialVarTypes.get(e)||0,n=(this.varTypes.get(e)||0)|t;this.varTypes.set(e,n),(n!==r||this.undefinedVars.has(e))&&(this.changedTypeVars.add(e),this.undefinedVars.delete(e)),this.unknownColorVars.delete(e),this.unknownBgVars.delete(e)},e.prototype.collectVarDependants=function(e){var t=this;!function(e,t){te(e,(function(e){e.style&&oe(e.style,(function(e,r){Dt(r)&&t(e,r)}))}))}(e,(function(e,r){t.inspectVerDependant(e,r)}))},e.prototype.collectRootVarDependants=function(){var e=this;oe(document.documentElement.style,(function(t,r){Dt(r)&&e.inspectVerDependant(t,r)}))},e.prototype.inspectVerDependant=function(e,t){var r=this;Ot(e)?this.iterateVarDeps(t,(function(t){r.varRefs.has(e)||r.varRefs.set(e,new Set),r.varRefs.get(e).add(t)})):"background-color"===e||"box-shadow"===e?this.iterateVarDeps(t,(function(e){return r.resolveVariableType(e,1)})):"color"===e?this.iterateVarDeps(t,(function(e){return r.resolveVariableType(e,2)})):e.startsWith("border")||e.startsWith("outline")?this.iterateVarDeps(t,(function(e){return r.resolveVariableType(e,4)})):"background"!==e&&"background-image"!==e||this.iterateVarDeps(t,(function(e){if(!r.isVarType(e,9)){var t=null!=r.findVarRef(e,(function(e){return r.unknownColorVars.has(e)||r.isVarType(e,6)}));r.itarateVarRefs(e,(function(e){t?r.resolveVariableType(e,1):r.unknownBgVars.add(e)}))}}))},e.prototype.iterateVarDeps=function(e,t){var r=new Set;!function(e,t){Tt(e,(function(e){return t(e),e}))}(e,(function(e){return r.add(e)})),r.forEach((function(e){return t(e)}))},e.prototype.findVarRef=function(e,t,r){var n,a;if(void 0===r&&(r=new Set),r.has(e))return null;if(r.add(e),t(e))return e;var i=this.varRefs.get(e);if(!i||0===i.size)return null;try{for(var u=o(i),s=u.next();!s.done;s=u.next()){var c=s.value,l=this.findVarRef(c,t,r);if(l)return l}}catch(d){n={error:d}}finally{try{s&&!s.done&&(a=u.return)&&a.call(u)}finally{if(n)throw n.error}}return null},e.prototype.itarateVarRefs=function(e,t){this.findVarRef(e,(function(e){return t(e),!1}))},e.prototype.putRootVars=function(e,t){var r,n,i=this,u=e.sheet;u.cssRules.length>0&&u.deleteRule(0);var s=new Map;oe(document.documentElement.style,(function(e,r){Ot(e)&&(i.isVarType(e,1)&&s.set(At(e),qt(r,t)),i.isVarType(e,2)&&s.set(Lt(e),Nt(r,t)),i.isVarType(e,4)&&s.set(Pt(e),Bt(r,t)))}));var c=[];c.push(":root {");try{for(var l=o(s),d=l.next();!d.done;d=l.next()){var f=a(d.value,2),h=f[0],p=f[1];c.push(" "+h+": "+p+";")}}catch(m){r={error:m}}finally{try{d&&!d.done&&(n=l.return)&&n.call(l)}finally{if(r)throw r.error}}c.push("}");var v=c.join("\n");u.insertRule(v)},e}());function Vt(e,t){void 0===t&&(t=0);var r=e.indexOf("var(",t);if(r>=0){var n=function(e,t){void 0===t&&(t=0);for(var r=e.length,n=0,o=-1,a=t;a<r;a++)if(0===n){if((i=e.indexOf("(",a))<0)break;o=i,n++,a=i}else{var i,u=e.indexOf(")",a);if(u<0)break;if((i=e.indexOf("(",a))<0||u<i){if(0==--n)return{start:o,end:u+1};a=u}else n++,a=i}return null}(e,r+3);return n?{start:r,end:n.end}:null}}function Rt(e,t){var r=function(e){for(var t,r=[],n=0;t=Vt(e,n);){var o=t.start,a=t.end;r.push({start:o,end:a,value:e.substring(o,a)}),n=t.end+1}return r}(e),n=r.length;if(0===n)return e;var o=e.length,a=r.map((function(e){return t(e.value)})),i=[];i.push(e.substring(0,r[0].start));for(var u=0;u<n;u++){i.push(a[u]);var s=r[u].end,c=u<n-1?r[u+1].start:o;i.push(e.substring(s,c))}return i.join("")}function Mt(e){var t,r,n=e.indexOf(",");return n>=0?(t=e.substring(4,n).trim(),r=e.substring(n+1,e.length-1).trim()):(t=e.substring(4,e.length-1),r=""),{name:t,fallback:r}}function Tt(e,t,r){return Rt(e,(function(e){var n=Mt(e),o=n.name,a=n.fallback,i=t(o);return a?"var("+i+", "+(Dt(a)?Tt(a,t,r):r?r(a):a)+")":"var("+i+")"}))}function At(e){return"--darkreader-bg"+e}function Lt(e){return"--darkreader-text"+e}function Pt(e){return"--darkreader-border"+e}function jt(e){return"--darkreader-bgimg"+e}function Ot(e){return e.startsWith("--")}function Dt(e){return e.includes("var(")}function Ft(e){return e.match(/^\s*(rgb|hsl)a?\(/)}function qt(e,t){var r=wt(e);return r?Ge(r,t):e}function Nt(e,t){var r=wt(e);return r?Je(r,t):e}function Bt(e,t){var r=wt(e);return r?Ye(r,t):e}function Wt(e,t,r){void 0===r&&(r=new Set);var n=!1,o=Rt(e,(function(e){var o=Mt(e),a=o.name,i=o.fallback;if(r.has(a))return n=!0,null;r.add(a);var u=t.get(a)||i,s=null;return u&&(s=Dt(u)?Wt(u,t,r):u),s||(n=!0,null)}));return n?null:o}var It={"background-color":{customProp:"--darkreader-inline-bgcolor",cssProp:"background-color",dataAttr:"data-darkreader-inline-bgcolor"},"background-image":{customProp:"--darkreader-inline-bgimage",cssProp:"background-image",dataAttr:"data-darkreader-inline-bgimage"},"border-color":{customProp:"--darkreader-inline-border",cssProp:"border-color",dataAttr:"data-darkreader-inline-border"},"border-bottom-color":{customProp:"--darkreader-inline-border-bottom",cssProp:"border-bottom-color",dataAttr:"data-darkreader-inline-border-bottom"},"border-left-color":{customProp:"--darkreader-inline-border-left",cssProp:"border-left-color",dataAttr:"data-darkreader-inline-border-left"},"border-right-color":{customProp:"--darkreader-inline-border-right",cssProp:"border-right-color",dataAttr:"data-darkreader-inline-border-right"},"border-top-color":{customProp:"--darkreader-inline-border-top",cssProp:"border-top-color",dataAttr:"data-darkreader-inline-border-top"},"box-shadow":{customProp:"--darkreader-inline-boxshadow",cssProp:"box-shadow",dataAttr:"data-darkreader-inline-boxshadow"},color:{customProp:"--darkreader-inline-color",cssProp:"color",dataAttr:"data-darkreader-inline-color"},fill:{customProp:"--darkreader-inline-fill",cssProp:"fill",dataAttr:"data-darkreader-inline-fill"},stroke:{customProp:"--darkreader-inline-stroke",cssProp:"stroke",dataAttr:"data-darkreader-inline-stroke"},"outline-color":{customProp:"--darkreader-inline-outline",cssProp:"outline-color",dataAttr:"data-darkreader-inline-outline"},"stop-color":{customProp:"--darkreader-inline-stopcolor",cssProp:"stop-color",dataAttr:"data-darkreader-inline-stopcolor"}},Ut=Object.values(It),$t=["style","fill","stop-color","stroke","bgcolor","color"],Ht=$t.map((function(e){return"["+e+"]"})).join(", ");function zt(){return Ut.map((function(e){var t=e.dataAttr,r=e.customProp;return["["+t+"] {"," "+e.cssProp+": var("+r+") !important;","}"].join("\n")})).join("\n")}var Gt=new Map,Qt=new Map;function Kt(e,t,r){Gt.has(e)&&(Gt.get(e).disconnect(),Qt.get(e).disconnect());var n=new WeakSet;function o(e){(function(e){var t=[];return e instanceof Element&&e.matches(Ht)&&t.push(e),(e instanceof Element||m&&e instanceof ShadowRoot||e instanceof Document)&&O(t,e.querySelectorAll(Ht)),t})(e).forEach((function(e){n.has(e)||(n.add(e),t(e))})),I(e,(function(o){n.has(e)||(n.add(e),r(o.shadowRoot),Kt(o.shadowRoot,t,r))}))}var u=J(e,{onMinorMutations:function(e){e.additions.forEach((function(e){return o(e)}))},onHugeMutations:function(){o(e)}});Gt.set(e,u);var s=0,c=null,l=N({seconds:10}),d=N({seconds:2}),f=[],h=null,p=q((function(e){e.forEach((function(e){$t.includes(e.attributeName)&&t(e.target)}))})),v=new MutationObserver((function(e){if(h)f.push.apply(f,i([],a(e)));else{s++;var t=Date.now();if(null==c)c=t;else if(s>=50){if(t-c<l)return h=setTimeout((function(){c=null,s=0,h=null;var e=f;f=[],p(e)}),d),void f.push.apply(f,i([],a(e)));c=t,s=1}p(e)}}));v.observe(e,{attributes:!0,attributeFilter:$t.concat(Ut.map((function(e){return e.dataAttr}))),subtree:!0}),Qt.set(e,v)}var Jt=new WeakMap,Xt=["brightness","contrast","grayscale","sepia","mode"];function Yt(e,t){return $t.map((function(t){return t+'="'+e.getAttribute(t)+'"'})).concat(Xt.map((function(e){return e+'="'+t[e]+'"'}))).join(" ")}function Zt(e,t,r,n){if(Yt(e,t)!==Jt.get(e)){var o=new Set(Object.keys(It));if(r.length>0&&function(e,t){for(var r=0,n=t.length;r<n;r++){var o=t[r];if(e.matches(o))return!0}return!1}(e,r))o.forEach((function(t){e.removeAttribute(It[t].dataAttr)}));else{if(e.hasAttribute("bgcolor")&&(((a=e.getAttribute("bgcolor")).match(/^[0-9a-f]{3}$/i)||a.match(/^[0-9a-f]{6}$/i))&&(a="#"+a),l("background-color","background-color",a)),e.hasAttribute("color")&&(((a=e.getAttribute("color")).match(/^[0-9a-f]{3}$/i)||a.match(/^[0-9a-f]{6}$/i))&&(a="#"+a),l("color","color",a)),e instanceof SVGElement){if(e.hasAttribute("fill")){var a=e.getAttribute("fill"),i=!1;if(!(e instanceof SVGTextElement)){var u=e.getBoundingClientRect(),s=u.width,c=u.height;i=s>32||c>32}l("fill",i?"background-color":"color",a)}e.hasAttribute("stop-color")&&l("stop-color","background-color",e.getAttribute("stop-color"))}e.hasAttribute("stroke")&&(a=e.getAttribute("stroke"),l("stroke",e instanceof SVGLineElement||e instanceof SVGTextElement?"border-color":"color",a)),e.style&&oe(e.style,(function(e,t){"background-image"===e&&t.includes("url")||It.hasOwnProperty(e)&&l(e,e,t)})),e.style&&e instanceof SVGTextElement&&e.style.fill&&l("fill","color",e.style.getPropertyValue("fill")),j(o,(function(t){e.removeAttribute(It[t].dataAttr)})),Jt.set(e,Yt(e,t))}}function l(r,a,i){var u=It[r],s=u.customProp,c=u.dataAttr,l=ht(a,i,null,Ct,n,null);if(l){var d=l.value;"function"==typeof d&&(d=d(t)),e.style.setProperty(s,d),e.hasAttribute(c)||e.setAttribute(c,""),o.delete(r)}}}var er=null,tr=null;function rr(e,t){er=er||e.content;try{var r=be(er);e.content=Ge(r,t)}catch(n){F(n)}}var nr=["mode","brightness","contrast","grayscale","sepia","darkSchemeBackgroundColor","darkSchemeTextColor","lightSchemeBackgroundColor","lightSchemeTextColor"],or=function(){var e=[],t=null;function r(){for(var r;r=e.shift();)r();t=null}return{add:function(n){e.push(n),t||(t=requestAnimationFrame(r))},cancel:function(){e.splice(0),cancelAnimationFrame(t),t=null}}}();function ar(){var e=0,t=new Map,r=new Map,n=new Set,o=null;return{modifySheet:function(u){var s=u.sourceCSSRules,c=u.theme,l=u.ignoreImageAnalysis,d=u.force,f=u.prepareSheet,h=u.isAsyncCancelled,p=0===r.size,v=new Set(r.keys()),m=function(e){return nr.map((function(t){return t+":"+e[t]})).join(";")}(c),g=m!==o,b=[];if(te(s,(function(e){var n=e.cssText,o=!1;if(v.delete(n),t.has(n)||(t.set(n,n),o=!0),o){p=!0;var a=[];e.style&&oe(e.style,(function(t,r){var n=ht(t,r,e,Ct,l,h);n&&a.push(n)}));var i=null;if(a.length>0){var u=e.parentRule;i={selector:e.selectorText,declarations:a,parentRule:u},b.push(i)}r.set(n,i)}else b.push(r.get(n))})),v.forEach((function(e){t.delete(e),r.delete(e)})),o=m,d||p||g){e++;var y=new Map,w=new Map,S=0,k=0,_={rule:null,rules:[],isGroup:!0},E=new WeakMap;n.forEach((function(e){return e()})),n.clear(),b.filter((function(e){return e})).forEach((function(t){var r=t.selector,o=t.declarations,u=function e(t){if(null==t)return _;if(E.has(t))return E.get(t);var r={rule:t,rules:[],isGroup:!0};return E.set(t,r),e(t.parentRule).rules.push(r),r}(t.parentRule),s={selector:r,declarations:[],isGroup:!1},l=s.declarations;function d(t,r,n,o){var a=++S,i={property:t,value:null,important:n,asyncKey:a,sourceValue:o};l.push(i);var u=e;r.then((function(t){t&&!h()&&u===e&&(i.value=t,or.add((function(){h()||u!==e||function(e){var t=y.get(e),r=t.rule,n=t.target,o=t.index;n.deleteRule(o),C(n,o,r),y.delete(e)}(a)})))}))}function f(t,r,o,u){var s=r,c=s.declarations,f=s.onTypeChange,p=++k,v=e,m=l.length,g=[];if(0===c.length){var b={property:t,value:u,important:o,sourceValue:u,varKey:p};l.push(b),g=[b]}c.forEach((function(e){if(e.value instanceof Promise)d(e.property,e.value,o,u);else{var t={property:e.property,value:e.value,important:o,sourceValue:u,varKey:p};l.push(t),g.push(t)}})),f.addListener((function(t){if(!h()&&v===e){var r=t.map((function(e){return{property:e.property,value:e.value,important:o,sourceValue:u,varKey:p}})),n=l.indexOf(g[0],m);l.splice.apply(l,i([n,g.length],a(r))),g=r,function(e){var t=w.get(e),r=t.rule,n=t.target,o=t.index;n.deleteRule(o),C(n,o,r)}(p)}})),n.add((function(){return f.removeListeners()}))}u.rules.push(s),o.forEach((function(e){var t=e.property,r=e.value,n=e.important,o=e.sourceValue;if("function"==typeof r){var a=r(c);a instanceof Promise?d(t,a,n,o):t.startsWith("--")?f(t,a,n,o):l.push({property:t,value:a,important:n,sourceValue:o})}else l.push({property:t,value:r,important:n,sourceValue:o})}))}));var x=f();!function e(t,r,n){t.rules.forEach((function(t){t.isGroup?e(t,function(e,t){var r=e.rule;if(r instanceof CSSMediaRule){var n=r.media,o=t.cssRules.length;return t.insertRule("@media "+n.mediaText+" {}",o),t.cssRules[o]}return t}(t,r),n):n(t,r)}))}(_,x,(function(e,t){var r=t.cssRules.length;e.declarations.forEach((function(n){var o=n.asyncKey,a=n.varKey;null!=o&&y.set(o,{rule:e,target:t,index:r}),null!=a&&w.set(a,{rule:e,target:t,index:r})})),C(t,r,e)}))}function C(e,t,r){var n=r.selector+" { "+r.declarations.map((function(e){var t=e.property,r=e.value,n=e.important,o=e.sourceValue;return t+": "+(null==r?o:r)+(n?" !important":"")+";"})).join(" ")+" }";e.insertRule(n,t)}}}}function ir(e){return(e instanceof HTMLStyleElement||e instanceof SVGStyleElement||e instanceof HTMLLinkElement&&e.rel&&e.rel.toLowerCase().includes("stylesheet")&&!e.disabled)&&!e.classList.contains("darkreader")&&"print"!==e.media&&!e.classList.contains("stylus")}function ur(e,t,r){return void 0===t&&(t=[]),void 0===r&&(r=!0),ir(e)?t.push(e):(e instanceof Element||m&&e instanceof ShadowRoot||e===document)&&(j(e.querySelectorAll('style, link[rel*="stylesheet" i]:not([disabled])'),(function(e){return ur(e,t,!1)})),r&&I(e,(function(e){return ur(e.shadowRoot,t,!1)}))),t}var sr=new WeakSet,cr=new WeakSet,lr=!1;function dr(e,t){for(var o=t.update,i=t.loadingStart,u=t.loadingEnd,s=[],d=e;(d=d.nextElementSibling)&&d.matches(".darkreader");)s.push(d);var h=s.find((function(e){return e.matches(".darkreader--cors")&&!cr.has(e)}))||null,p=s.find((function(e){return e.matches(".darkreader--sync")&&!sr.has(e)}))||null,v=null,m=null,g=!1,b=!0,y=ar(),w=new MutationObserver((function(){o()})),S={attributes:!0,childList:!0,subtree:!0,characterData:!0};function k(){return e instanceof HTMLStyleElement&&e.textContent.trim().match(ie)}function _(){return h?h.sheet.cssRules:k()?null:T()}function E(){h?(e.nextSibling!==h&&e.parentNode.insertBefore(h,e.nextSibling),h.nextSibling!==p&&e.parentNode.insertBefore(p,h.nextSibling)):e.nextSibling!==p&&e.parentNode.insertBefore(p,e.nextSibling)}var x=!1,C=!1;function V(){return r(this,void 0,void 0,(function(){var t,r,o,i,u,s,c;return n(this,(function(n){switch(n.label){case 0:if(!(e instanceof HTMLLinkElement))return[3,7];if(o=a(M(),2),i=o[0],(u=o[1])&&F(u),!(!i&&!u&&!f||f&&!e.sheet||(l=u,l&&l.message&&l.message.includes("loading"))))return[3,5];n.label=1;case 1:return n.trys.push([1,3,,4]),[4,fr(e)];case 2:return n.sent(),[3,4];case 3:return F(n.sent()),C=!0,[3,4];case 4:if(g)return[2,null];c=a(M(),2),i=c[0],(u=c[1])&&F(u),n.label=5;case 5:return null!=i?[2,i]:[4,hr(e.href)];case 6:return t=n.sent(),r=se(e.href),g?[2,null]:[3,8];case 7:if(!k())return[2,null];t=e.textContent.trim(),r=se(location.href),n.label=8;case 8:if(!t)return[3,13];n.label=9;case 9:return n.trys.push([9,11,,12]),[4,pr(t,r)];case 10:return s=n.sent(),h=function(e,t){if(!t)return null;var r=document.createElement("style");return r.classList.add("darkreader"),r.classList.add("darkreader--cors"),r.media="screen",r.textContent=t,e.parentNode.insertBefore(r,e.nextSibling),r.sheet.disabled=!0,cr.add(r),r}(e,s),[3,12];case 11:return F(n.sent()),[3,12];case 12:if(h)return v=W(h,"prev-sibling"),[2,h.sheet.cssRules];n.label=13;case 13:return[2,null]}var l}))}))}var R=!1;function M(){try{return null==e.sheet?[null,null]:[e.sheet.cssRules,null]}catch(t){return[null,t]}}function T(){var e=a(M(),2),t=e[0],r=e[1];return r?(F(r),null):t}function A(){e.addEventListener("__darkreader__updateSheet",q),l||lr&&e.sheet||(L=j(),O(),function t(){j()!==L&&(L=j(),o()),lr&&e.sheet?O():P=requestAnimationFrame(t)}())}var L=null,P=null;function j(){var e=T();return e?e.length:null}function O(){cancelAnimationFrame(P)}var D=!1;function q(){function e(){D=!1,g||o()}lr=!0,O(),D||(D=!0,"function"==typeof queueMicrotask?queueMicrotask(e):requestAnimationFrame(e))}function N(){e.removeEventListener("__darkreader__updateSheet",q),O()}function I(){w.disconnect(),g=!0,v&&v.stop(),m&&m.stop(),N()}var U=0;return{details:function(){var e=_();return e?{rules:e}:(x||C||(x=!0,i(),V().then((function(e){x=!1,u(),e&&o()})).catch((function(e){F(e),x=!1,u()}))),null)},render:function(t,r){var n=_();function o(){p||((p=e instanceof SVGStyleElement?document.createElementNS("http://www.w3.org/2000/svg","style"):document.createElement("style")).classList.add("darkreader"),p.classList.add("darkreader--sync"),p.media="screen",!c&&e.title&&(p.title=e.title),sr.add(p)),m&&m.stop(),E(),null==p.sheet&&(p.textContent="");for(var t=p.sheet,r=t.cssRules.length-1;r>=0;r--)t.deleteRule(r);return m?m.run():m=W(p,"prev-sibling",(function(){R=!0,a()})),p.sheet}function a(){var e=R;R=!1,y.modifySheet({prepareSheet:o,sourceCSSRules:n,theme:t,ignoreImageAnalysis:r,force:e,isAsyncCancelled:function(){return g}}),b=0===p.sheet.cssRules.length}n&&(g=!1,a())},pause:I,destroy:function(){I(),B(h),B(p)},watch:function(){w.observe(e,S),e instanceof HTMLStyleElement&&A()},restore:function(){p&&(++U>10?F("Style sheet was moved multiple times",e):(F("Restore style",p,e),E(),v&&v.skip(),m&&m.skip(),b||(R=!0,o())))}}}function fr(e){return r(this,void 0,void 0,(function(){return n(this,(function(t){return[2,new Promise((function(t,r){var n=function(){e.removeEventListener("load",o),e.removeEventListener("error",a)},o=function(){n(),t()},a=function(){n(),r("Link loading failed "+e.href)};e.addEventListener("load",o),e.addEventListener("error",a)}))]}))}))}function hr(e){return r(this,void 0,void 0,(function(){return n(this,(function(t){switch(t.label){case 0:return e.startsWith("data:")?[4,fetch(e)]:[3,3];case 1:return[4,t.sent().text()];case 2:return[2,t.sent()];case 3:return[4,it({url:e,responseType:"text",mimeType:"text/css"})];case 4:return[2,t.sent()]}}))}))}function pr(e,t,a){return void 0===a&&(a=new Map),r(this,void 0,void 0,(function(){var r,i,u,s,c,l,d,f,h,p;return n(this,(function(n){switch(n.label){case 0:e=function(e,t){return e.replace(ae,(function(e){var r=ue(e);return'url("'+ee(t,r)+'")'}))}(e=function(e){return e.replace(le,"")}(e=e.replace(ce,"")),t),r=Ae(ie,e),n.label=1;case 1:n.trys.push([1,10,11,12]),i=o(r),u=i.next(),n.label=2;case 2:return u.done?[3,9]:(s=u.value,c=ue(s.substring(8).replace(/;$/,"")),l=ee(t,c),d=void 0,a.has(l)?(d=a.get(l),[3,7]):[3,3]);case 3:return n.trys.push([3,6,,7]),[4,hr(l)];case 4:return d=n.sent(),a.set(l,d),[4,pr(d,se(l),a)];case 5:return d=n.sent(),[3,7];case 6:return F(n.sent()),d="",[3,7];case 7:e=e.split(s).join(d),n.label=8;case 8:return u=i.next(),[3,2];case 9:return[3,12];case 10:return f=n.sent(),h={error:f},[3,12];case 11:try{u&&!u.done&&(p=i.return)&&p.call(i)}finally{if(h)throw h.error}return[7];case 12:return[2,e=e.trim()]}}))}))}document.addEventListener("__darkreader__inlineScriptsAllowed",(function(){lr=!0}));var vr,mr,gr=[],br=new Map;function yr(e){b&&j(e.querySelectorAll(":not(:defined)"),(function(e){var t=e.tagName.toLowerCase();br.has(t)||(br.set(t,new Set),function(e){return r(this,void 0,void 0,(function(){return n(this,(function(t){return[2,new Promise((function(t){window.customElements&&"function"==typeof customElements.whenDefined?customElements.whenDefined(e).then(t):wr?(Sr.set(e,t),document.dispatchEvent(new CustomEvent("__darkreader__addUndefinedResolver",{detail:{tag:e}}))):requestAnimationFrame((function r(){var n=br.get(e);n&&n.size>0&&(n.values().next().value.matches(":defined")?t():requestAnimationFrame(r))}))}))]}))}))}(t).then((function(){if(mr){var e=br.get(t);br.delete(t),mr(Array.from(e))}}))),br.get(t).add(e)}))}var wr=!1;document.addEventListener("__darkreader__inlineScriptsAllowed",(function(){wr=!0}));var Sr=new Map;function kr(e){wr=!0,Sr.has(e.detail.tag)&&Sr.get(e.detail.tag)()}function _r(e,t,r){Er();var n=new Set(e),o=new WeakMap,a=new WeakMap;function i(e){o.set(e,e.previousElementSibling),a.set(e,e.nextElementSibling)}function u(e){var r=e.createdStyles,u=e.removedStyles,s=e.movedStyles;r.forEach((function(e){return i(e)})),s.forEach((function(e){return i(e)})),u.forEach((function(e){return t=e,o.delete(t),void a.delete(t);var t})),r.forEach((function(e){return n.add(e)})),u.forEach((function(e){return n.delete(e)})),r.size+u.size+s.size>0&&t({created:Array.from(r),removed:Array.from(u),moved:Array.from(s),updated:[]})}function s(e){var t=e.additions,r=e.moves,n=e.deletions,o=new Set,a=new Set,i=new Set;t.forEach((function(e){return ur(e).forEach((function(e){return o.add(e)}))})),n.forEach((function(e){return ur(e).forEach((function(e){return a.add(e)}))})),r.forEach((function(e){return ur(e).forEach((function(e){return i.add(e)}))})),u({createdStyles:o,removedStyles:a,movedStyles:i}),t.forEach((function(e){I(e,f),yr(e)}))}function c(e){var t=new Set(ur(e)),r=new Set,i=new Set,s=new Set;t.forEach((function(e){n.has(e)||r.add(e)})),n.forEach((function(e){t.has(e)||i.add(e)})),t.forEach((function(e){var t;r.has(e)||i.has(e)||(t=e).previousElementSibling===o.get(t)&&t.nextElementSibling===a.get(t)||s.add(e)})),u({createdStyles:r,removedStyles:i,movedStyles:s}),I(e,f),yr(e)}function l(e){var r=new Set,n=new Set;e.forEach((function(e){var t=e.target;t.isConnected&&(ir(t)?r.add(t):t instanceof HTMLLinkElement&&t.disabled&&n.add(t))})),r.size+n.size>0&&t({updated:Array.from(r),created:[],removed:Array.from(n),moved:[]})}function d(e){var t=J(e,{onMinorMutations:s,onHugeMutations:c}),r=new MutationObserver(l);r.observe(e,{attributes:!0,attributeFilter:["rel","disabled","media"],subtree:!0}),gr.push(t,r),vr.add(e)}function f(e){var t=e.shadowRoot;null==t||vr.has(t)||(d(t),r(t))}e.forEach(i),d(document),I(document.documentElement,f),mr=function(e){var r=[];e.forEach((function(e){return O(r,ur(e.shadowRoot))})),t({created:r,updated:[],removed:[],moved:[]}),e.forEach((function(e){var t=e.shadowRoot;null!=t&&(f(e),I(t,f),yr(t))}))},document.addEventListener("__darkreader__isDefined",kr),yr(document)}function Er(){gr.forEach((function(e){return e.disconnect()})),gr.splice(0,gr.length),vr=new WeakSet,mr=null,br.clear(),document.removeEventListener("__darkreader__isDefined",kr)}var xr=new WeakMap,Cr=new WeakSet;function Vr(e){var t=!1;return{render:function(r,n){e.adoptedStyleSheets.forEach((function(o){if(!Cr.has(o)){var u=o.rules,s=new CSSStyleSheet;ar().modifySheet({prepareSheet:function(){for(var t=s.cssRules.length-1;t>=0;t--)s.deleteRule(t);return function(t,r){var n=i([],a(e.adoptedStyleSheets)),o=n.indexOf(t),u=n.indexOf(r);o!==u-1&&(u>=0&&n.splice(u,1),n.splice(o+1,0,r),e.adoptedStyleSheets=n)}(o,s),xr.set(o,s),Cr.add(s),s},sourceCSSRules:u,theme:r,ignoreImageAnalysis:n,force:!1,isAsyncCancelled:function(){return t}})}}))},destroy:function(){t=!0;var r=i([],a(e.adoptedStyleSheets));e.adoptedStyleSheets.forEach((function(e){if(Cr.has(e)){var t=r.indexOf(e);t>=0&&r.splice(t,1),xr.delete(e),Cr.delete(e)}})),e.adoptedStyleSheets=r}}}function Rr(){document.dispatchEvent(new CustomEvent("__darkreader__inlineScriptsAllowed"));var e=Object.getOwnPropertyDescriptor(CSSStyleSheet.prototype,"addRule"),t=Object.getOwnPropertyDescriptor(CSSStyleSheet.prototype,"insertRule"),r=Object.getOwnPropertyDescriptor(CSSStyleSheet.prototype,"deleteRule"),n=Object.getOwnPropertyDescriptor(CSSStyleSheet.prototype,"removeRule"),o=location.hostname.endsWith("pushbullet.com")||location.hostname.endsWith("ilsole24ore.com"),u=o?Object.getOwnPropertyDescriptor(Document.prototype,"styleSheets"):null,s=function(e){customElements.whenDefined(e.detail.tag).then((function(){document.dispatchEvent(new CustomEvent("__darkreader__isDefined",{detail:{tag:e.detail.tag}}))}))};document.addEventListener("__darkreader__cleanUp",(function a(){Object.defineProperty(CSSStyleSheet.prototype,"addRule",e),Object.defineProperty(CSSStyleSheet.prototype,"insertRule",t),Object.defineProperty(CSSStyleSheet.prototype,"deleteRule",r),Object.defineProperty(CSSStyleSheet.prototype,"removeRule",n),document.removeEventListener("__darkreader__cleanUp",a),document.removeEventListener("__darkreader__addUndefinedResolver",s),o&&Object.defineProperty(Document.prototype,"styleSheets",u)})),document.addEventListener("__darkreader__addUndefinedResolver",s);var c=new Event("__darkreader__updateSheet");Object.defineProperty(CSSStyleSheet.prototype,"addRule",Object.assign({},e,{value:function(t,r,n){return e.value.call(this,t,r,n),this.ownerNode&&!this.ownerNode.classList.contains("darkreader")&&this.ownerNode.dispatchEvent(c),-1}})),Object.defineProperty(CSSStyleSheet.prototype,"insertRule",Object.assign({},t,{value:function(e,r){var n=t.value.call(this,e,r);return this.ownerNode&&!this.ownerNode.classList.contains("darkreader")&&this.ownerNode.dispatchEvent(c),n}})),Object.defineProperty(CSSStyleSheet.prototype,"deleteRule",Object.assign({},r,{value:function(e){r.value.call(this,e),this.ownerNode&&!this.ownerNode.classList.contains("darkreader")&&this.ownerNode.dispatchEvent(c)}})),Object.defineProperty(CSSStyleSheet.prototype,"removeRule",Object.assign({},n,{value:function(e){n.value.call(this,e),this.ownerNode&&!this.ownerNode.classList.contains("darkreader")&&this.ownerNode.dispatchEvent(c)}})),o&&Object.defineProperty(Document.prototype,"styleSheets",Object.assign({},u,{get:function(){var e=i([],a(u.get.call(this))).filter((function(e){return!e.ownerNode.classList.contains("darkreader")}));return Object.setPrototypeOf(e,StyleSheetList.prototype)}}))}var Mr=Array.from(crypto.getRandomValues(new Uint8Array(16))).map((function(e){return((t=e)<16?"0":"")+t.toString(16);var t})).join(""),Tr=new Map,Ar=[],Lr=null,Pr=null,jr=null,Or=null,Dr=null;function Fr(e,t){void 0===t&&(t=document.head||document);var r=t.querySelector("."+e);return r||((r=document.createElement("style")).classList.add("darkreader"),r.classList.add(e),r.media="screen",r.textContent=""),r}var qr=new Map;function Nr(e,t){qr.has(t)&&qr.get(t).stop(),qr.set(t,W(e,"parent"))}function Br(){var e=Fr("darkreader--fallback",document);e.textContent=mt(Lr,{strict:!0}),document.head.insertBefore(e,document.head.firstChild),Nr(e,"fallback");var r=Fr("darkreader--user-agent");r.textContent=pt(Lr,jr,Lr.styleSystemControls),document.head.insertBefore(r,e.nextSibling),Nr(r,"user-agent");var n,o,a=Fr("darkreader--text");Lr.useFont||Lr.textStroke>0?a.textContent=(n=Lr,(o=[]).push("*:not(pre, .far, .fa, .glyphicon) {"),n.useFont&&n.fontFamily&&o.push(" font-family: "+n.fontFamily+" !important;"),n.textStroke>0&&(o.push(" -webkit-text-stroke: "+n.textStroke+"px !important;"),o.push(" text-stroke: "+n.textStroke+"px !important;")),o.push("}"),o.join("\n")):a.textContent="",document.head.insertBefore(a,e.nextSibling),Nr(a,"text");var i=Fr("darkreader--invert");Pr&&Array.isArray(Pr.invert)&&Pr.invert.length>0?i.textContent=[Pr.invert.join(", ")+" {"," filter: "+et(t(t({},Lr),{contrast:0===Lr.mode?Lr.contrast:Me(Lr.contrast-10,0,100)}))+" !important;","}"].join("\n"):i.textContent="",document.head.insertBefore(i,a.nextSibling),Nr(i,"invert");var u=Fr("darkreader--inline");u.textContent=zt(),document.head.insertBefore(u,i.nextSibling),Nr(u,"inline");var s=Fr("darkreader--override");s.textContent=Pr&&Pr.css?Ur(Pr.css):"",document.head.appendChild(s),Nr(s,"override");var c=Fr("darkreader--variables"),l=vt(Lr),d=Lr.darkSchemeBackgroundColor,f=Lr.darkSchemeTextColor,h=Lr.lightSchemeBackgroundColor,p=Lr.lightSchemeTextColor,v=Lr.mode,m=0===v?h:d,g=0===v?p:f;m=Ge(be(m),Lr),g=Je(be(g),Lr),c.textContent=[":root {"," --darkreader-neutral-background: "+m+";"," --darkreader-neutral-text: "+g+";"," --darkreader-selection-background: "+l.backgroundColorSelection+";"," --darkreader-selection-text: "+l.foregroundColorSelection+";","}"].join("\n"),document.head.insertBefore(c,u.nextSibling),Nr(c,"variables");var b=Fr("darkreader--root-vars");document.head.insertBefore(b,c.nextSibling);var y=function(e,t){void 0===t&&(t=document.head||document);var r=t.querySelector("."+e);return r||((r=document.createElement("script")).classList.add("darkreader"),r.classList.add(e)),r}("darkreader--proxy");y.textContent="("+Rr+")()",document.head.insertBefore(y,b.nextSibling)}var Wr=new Set;function Ir(e){var t=Fr("darkreader--inline",e);t.textContent=zt(),e.insertBefore(t,e.firstChild);var r=Fr("darkreader--override",e);r.textContent=Pr&&Pr.css?Ur(Pr.css):"",e.insertBefore(r,t.nextSibling),Wr.add(e)}function Ur(e){return e.replace(/\${(.+?)}/g,(function(e,t){try{var r=yt(t);return Ie(r,Lr,Ue)}catch(n){return F(n),t}}))}function $r(){var e=document.querySelector(".darkreader--fallback");e&&(e.textContent="")}var Hr=0,zr=new Set;function Gr(e){var t=++Hr,r=dr(e,{update:function(){var e=r.details();e&&(Ct.addRulesForMatching(e.rules),Ct.matchVariablesAndDependants(),r.render(Lr,Or))},loadingStart:function(){if(!U()||!Zr){zr.add(t);var e=document.querySelector(".darkreader--fallback");e.textContent||(e.textContent=mt(Lr,{strict:!1}))}},loadingEnd:function(){zr.delete(t),0===zr.size&&U()&&$r()}});return Tr.set(e,r),r}function Qr(e){var t=Tr.get(e);t&&(t.destroy(),Tr.delete(e))}var Kr=q((function(e){Tr.forEach((function(e){return e.render(Lr,Or)})),Ar.forEach((function(e){return e.render(Lr,Or)})),e&&e()})),Jr=function(){Kr.cancel()};function Xr(){0===zr.size&&$r()}var Yr=null,Zr=!document.hidden;function en(){document.removeEventListener("visibilitychange",Yr),Yr=null}function tn(){function e(){var e,t;!function(){Jr();var e=ur(document).filter((function(e){return!Tr.has(e)})).map((function(e){return Gr(e)}));e.map((function(e){return e.details()})).filter((function(e){return e&&e.rules.length>0})).forEach((function(e){Ct.addRulesForMatching(e.rules)})),Ct.matchVariablesAndDependants(),Ct.putRootVars(document.head.querySelector(".darkreader--root-vars"),Lr),Tr.forEach((function(e){return e.render(Lr,Or)})),0===zr.size&&$r(),e.forEach((function(e){return e.watch()}));var t=function(e){for(var t=[],r=0,n=e.length;r<n;r++)t.push(e[r]);return t}(document.querySelectorAll(Ht));I(document.documentElement,(function(e){Ir(e.shadowRoot);var r=e.shadowRoot.querySelectorAll(Ht);r.length>0&&O(t,r)})),t.forEach((function(e){return Zt(e,Lr,Dr,Or)})),rn(document)}(),_r(Array.from(Tr.keys()),(function(e){var t=e.created,r=e.updated,n=e.removed,o=e.moved,a=n,i=t.concat(r).concat(o).filter((function(e){return!Tr.has(e)})),u=o.filter((function(e){return Tr.has(e)}));a.forEach((function(e){return Qr(e)}));var s=i.map((function(e){return Gr(e)}));s.map((function(e){return e.details()})).filter((function(e){return e&&e.rules.length>0})).forEach((function(e){Ct.addRulesForMatching(e.rules)})),Ct.matchVariablesAndDependants(),s.forEach((function(e){return e.render(Lr,Or)})),s.forEach((function(e){return e.watch()})),u.forEach((function(e){return Tr.get(e).restore()}))}),(function(e){Ir(e),rn(e)})),e=function(e){Zt(e,Lr,Dr,Or),e===document.documentElement&&e.getAttribute("style").includes("--")&&(Ct.matchVariablesAndDependants(),Ct.putRootVars(document.head.querySelector(".darkreader--root-vars"),Lr))},t=function(e){Ir(e);var t=e.querySelectorAll(Ht);t.length>0&&j(t,(function(e){return Zt(e,Lr,Dr,Or)}))},Kt(document,e,t),I(document.documentElement,(function(r){Kt(r.shadowRoot,e,t)})),H(Xr)}var t,r,n,o;Br(),document.hidden?(t=e,r=Boolean(Yr),Yr=function(){document.hidden||(en(),t(),Zr=!0)},r||document.addEventListener("visibilitychange",Yr)):e(),n=Lr,(o=document.querySelector('meta[name="theme-color"]'))?rr(o,n):(tr&&tr.disconnect(),(tr=new MutationObserver((function(e){e:for(var t=0;t<e.length;t++)for(var r=e[t].addedNodes,o=0;o<r.length;o++){var a=r[o];if(a instanceof HTMLMetaElement&&"theme-color"===a.name){tr.disconnect(),tr=null,rr(a,n);break e}}}))).observe(document.head,{childList:!0}))}function rn(e){if(Array.isArray(e.adoptedStyleSheets)&&e.adoptedStyleSheets.length>0){var t=Vr(e);Ar.push(t),t.render(Lr,Or)}}function nn(){Tr.forEach((function(e){return e.pause()})),j(qr.values(),(function(e){return e.stop()})),qr.clear(),Er(),Gt.forEach((function(e){return e.disconnect()})),Qt.forEach((function(e){return e.disconnect()})),Gt.clear(),Qt.clear(),z(Xr)}function on(){var e,t=document.querySelector('meta[name="darkreader"]');return t?t.content!==Mr:((e=document.createElement("meta")).name="darkreader",e.content=Mr,document.head.appendChild(e),!1)}function an(e,t,r){if(Lr=e,(Pr=t)?(Or=Array.isArray(Pr.ignoreImageAnalysis)?Pr.ignoreImageAnalysis:[],Dr=Array.isArray(Pr.ignoreInlineStyle)?Pr.ignoreInlineStyle:[]):(Or=[],Dr=[]),jr=r,document.head){if(on())return;document.documentElement.setAttribute("data-darkreader-mode","dynamic"),document.documentElement.setAttribute("data-darkreader-scheme",Lr.mode?"dark":"dimmed"),tn()}else{if(!d){var n=Fr("darkreader--fallback");document.documentElement.appendChild(n),n.textContent=mt(Lr,{strict:!0})}var o=new MutationObserver((function(){if(document.head){if(o.disconnect(),on())return void un();tn()}}));o.observe(document,{childList:!0,subtree:!0})}}function un(){document.documentElement.removeAttribute("data-darkreader-mode"),document.documentElement.removeAttribute("data-darkreader-scheme"),Ct.clear(),X.clear(),en(),Jr(),nn(),xt(),B(document.querySelector(".darkreader--fallback")),document.head&&(function(){tr&&(tr.disconnect(),tr=null);var e=document.querySelector('meta[name="theme-color"]');e&&er&&(e.content=er)}(),B(document.head.querySelector(".darkreader--user-agent")),B(document.head.querySelector(".darkreader--text")),B(document.head.querySelector(".darkreader--invert")),B(document.head.querySelector(".darkreader--inline")),B(document.head.querySelector(".darkreader--override")),B(document.head.querySelector(".darkreader--variables")),B(document.head.querySelector(".darkreader--root-vars")),B(document.head.querySelector('meta[name="darkreader"]')),document.dispatchEvent(new CustomEvent("__darkreader__cleanUp")),B(document.head.querySelector(".darkreader--proxy"))),Wr.forEach((function(e){B(e.querySelector(".darkreader--inline")),B(e.querySelector(".darkreader--override"))})),Wr.clear(),j(Tr.keys(),(function(e){return Qr(e)})),j(document.querySelectorAll(".darkreader"),B),Ar.forEach((function(e){e.destroy()})),Ar.splice(0)}var sn=/url\(\"(blob\:.*?)\"\)/g;function cn(e){return r(this,void 0,void 0,(function(){var t,r;return n(this,(function(n){switch(n.label){case 0:return t=[],Ae(sn,e,1).forEach((function(e){var r=w(e);t.push(r)})),[4,Promise.all(t)];case 1:return r=n.sent(),[2,e.replace(sn,(function(){return'url("'+r.shift()+'")'}))]}}))}))}function ln(){return r(this,void 0,void 0,(function(){function e(e,r){var n=document.querySelector(e);n&&n.textContent&&(t.push("/* "+r+" */"),t.push(n.textContent),t.push(""))}var t,r,o,a,i;return n(this,(function(n){switch(n.label){case 0:return t=['/*\n _______\n / \\\n .==. .==.\n (( ))==(( ))\n / "==" "=="\\\n /____|| || ||___\\\n ________ ____ ________ ___ ___\n | ___ \\ / \\ | ___ \\ | | / /\n | | \\ \\ / /\\ \\ | | \\ \\| |_/ /\n | | ) / /__\\ \\ | |__/ /| ___ \\\n | |__/ / ______ \\| ____ \\| | \\ \\\n_______|_______/__/ ____ \\__\\__|___\\__\\__|___\\__\\____\n| ___ \\ | ____/ / \\ | ___ \\ | ____| ___ \\\n| | \\ \\| |___ / /\\ \\ | | \\ \\| |___| | \\ \\\n| |__/ /| ____/ /__\\ \\ | | ) | ____| |__/ /\n| ____ \\| |__/ ______ \\| |__/ /| |___| ____ \\\n|__| \\__\\____/__/ \\__\\_______/ |______|__| \\__\\\n https://darkreader.org\n*/'],e(".darkreader--fallback","Fallback Style"),e(".darkreader--user-agent","User-Agent Style"),e(".darkreader--text","Text Style"),e(".darkreader--invert","Invert Style"),e(".darkreader--variables","Variables Style"),r=[],document.querySelectorAll(".darkreader--sync").forEach((function(e){j(e.sheet.cssRules,(function(e){e&&e.cssText&&r.push(e.cssText)}))})),0==r.length?[3,2]:(o=function(e){function t(e){return e.replace(/^\s+/,"")}function r(e){return 0===e?"":" ".repeat(4*e)}for(var n=/[^{}]+{\s*}/g;n.test(e);)e=e.replace(n,"");for(var o=e.replace(/\s{2,}/g," ").replace(/\{/g,"{\n").replace(/\}/g,"\n}\n").replace(/\;(?![^\(|\"]*(\)|\"))/g,";\n").replace(/\,(?![^\(|\"]*(\)|\"))/g,",\n").replace(/\n\s*\n/g,"\n").split("\n"),a=0,i=[],u=0,s=o.length;u<s;u++){var c=o[u]+"\n";c.match(/\{/)?i.push(r(a++)+t(c)):c.match(/\}/)?i.push(r(--a)+t(c)):i.push(r(a)+t(c))}return i.join("").trim()}(r.join("\n")),t.push("/* Modified CSS */"),i=(a=t).push,[4,cn(o)]);case 1:i.apply(a,[n.sent()]),t.push(""),n.label=2;case 2:return e(".darkreader--override","Override Style"),[2,t.join("\n")]}}))}))}var dn=!1,fn=function(){try{return window.self!==window.top}catch(e){return console.warn(e),!0}}();function hn(e,r){void 0===e&&(e={}),void 0===r&&(r=null);var n=t(t({},P),e);if(n.engine!==T)throw new Error("Theme engine is not supported.");an(n,r,fn),dn=!0}function pn(){un(),dn=!1}var vn=matchMedia("(prefers-color-scheme: dark)"),mn={themeOptions:null,fixes:null};function gn(){vn.matches?hn(mn.themeOptions,mn.fixes):pn()}var bn=function(e){_=e||k};e.auto=function(e,t){void 0===e&&(e={}),void 0===t&&(t=null),e?(mn={themeOptions:e,fixes:t},gn(),g?vn.addEventListener("change",gn):vn.addListener(gn)):(g?vn.removeEventListener("change",gn):vn.removeListener(gn),pn())},e.disable=pn,e.enable=hn,e.exportGeneratedCSS=function(){return r(this,void 0,void 0,(function(){return n(this,(function(e){switch(e.label){case 0:return[4,ln()];case 1:return[2,e.sent()]}}))}))},e.isEnabled=function(){return dn},e.setFetchMethod=bn,Object.defineProperty(e,"__esModule",{value:!0})}(t)}}]);