{
    "version": "2.4.2",
    "scriptlets": [
        {
            "names": [
                "amazon-apstag",
                "ubo-amazon_apstag.js",
                "amazon_apstag.js"
            ],
            "scriptlet": "function AmazonApstag(source,args){const uniqueIdentifier=source.uniqueId+source.name+\"_\"+(Array.isArray(args)?args.join(\"_\"):\"\");if(source.uniqueId&&\"done\"===Window.prototype.toString[uniqueIdentifier])return;function noopFunc(){}const updatedArgs=args?[].concat(source).concat(args):[source];try{(function(source){var apstagWrapper={fetchBids(a,b){\"function\"==typeof b&&b([])},init:noopFunc,setDisplayBids:noopFunc,targetingKeys:noopFunc};window.apstag=apstagWrapper,function(e){if(e.verbose){try{var n=console.trace.bind(console),i=\"[AdGuard] \";\"corelibs\"===e.engine?i+=e.ruleText:(e.domainName&&(i+=`${e.domainName}`),e.args?i+=`#%#//scriptlet('${e.name}', '${e.args.join(\"', '\")}')`:i+=`#%#//scriptlet('${e.name}')`),n&&n(i)}catch(e){}\"function\"==typeof window.__debug&&window.__debug(e)}}(source)}).apply(this,updatedArgs),source.uniqueId&&Object.defineProperty(Window.prototype.toString,uniqueIdentifier,{value:\"done\",enumerable:!1,writable:!1,configurable:!1})}catch(e){console.log(e)}}"
        },
        {
            "names": [
                "didomi-loader"
            ],
            "scriptlet": "function DidomiLoader(source,args){const uniqueIdentifier=source.uniqueId+source.name+\"_\"+(Array.isArray(args)?args.join(\"_\"):\"\");if(source.uniqueId&&\"done\"===Window.prototype.toString[uniqueIdentifier])return;function noopFunc(){}function noopArray(){return[]}function trueFunc(){return!0}function falseFunc(){return!1}const updatedArgs=args?[].concat(source).concat(args):[source];try{(function(source){function UserConsentStatusForVendorSubscribe(){}function UserConsentStatusForVendor(){}UserConsentStatusForVendorSubscribe.prototype.filter=function(){return new UserConsentStatusForVendorSubscribe},UserConsentStatusForVendorSubscribe.prototype.subscribe=noopFunc,UserConsentStatusForVendor.prototype.first=function(){return new UserConsentStatusForVendorSubscribe},UserConsentStatusForVendor.prototype.filter=function(){return new UserConsentStatusForVendorSubscribe},UserConsentStatusForVendor.prototype.subscribe=noopFunc;var DidomiWrapper={isConsentRequired:falseFunc,getUserConsentStatusForPurpose:trueFunc,getUserConsentStatus:trueFunc,getUserStatus:noopFunc,getRequiredPurposes:noopArray,getUserConsentStatusForVendor:trueFunc,Purposes:{Cookies:\"cookies\"},notice:{configure:noopFunc,hide:noopFunc,isVisible:falseFunc,show:noopFunc,showDataProcessing:trueFunc},isUserConsentStatusPartial:falseFunc,on:()=>({actions:{},emitter:{},services:{},store:{}}),shouldConsentBeCollected:falseFunc,getUserConsentStatusForAll:noopFunc,getObservableOnUserConsentStatusForVendor:()=>new UserConsentStatusForVendor};window.Didomi=DidomiWrapper,window.didomiState={didomiExperimentId:\"\",didomiExperimentUserGroup:\"\",didomiGDPRApplies:1,didomiIABConsent:\"\",didomiPurposesConsent:\"\",didomiPurposesConsentDenied:\"\",didomiPurposesConsentUnknown:\"\",didomiVendorsConsent:\"\",didomiVendorsConsentDenied:\"\",didomiVendorsConsentUnknown:\"\",didomiVendorsRawConsent:\"\",didomiVendorsRawConsentDenied:\"\",didomiVendorsRawConsentUnknown:\"\"};var tcData={eventStatus:\"tcloaded\",gdprApplies:!1,listenerId:noopFunc,vendor:{consents:[]},purpose:{consents:[]}};window.__tcfapi=function(command,version,callback){\"function\"==typeof callback&&\"removeEventListener\"!==command&&callback(tcData,!0)};var didomiEventListenersWrapper={stub:!0,push:noopFunc};window.didomiEventListeners=didomiEventListenersWrapper;var didomiOnReadyWrapper={stub:!0,push(arg){\"function\"==typeof arg&&(\"complete\"!==document.readyState?window.addEventListener(\"load\",(function(){setTimeout(arg(window.Didomi))})):setTimeout(arg(window.Didomi)))}};window.didomiOnReady=window.didomiOnReady||didomiOnReadyWrapper,Array.isArray(window.didomiOnReady)&&window.didomiOnReady.forEach((function(arg){if(\"function\"==typeof arg)try{setTimeout(arg(window.Didomi))}catch(e){}})),function(e){if(e.verbose){try{var n=console.trace.bind(console),i=\"[AdGuard] \";\"corelibs\"===e.engine?i+=e.ruleText:(e.domainName&&(i+=`${e.domainName}`),e.args?i+=`#%#//scriptlet('${e.name}', '${e.args.join(\"', '\")}')`:i+=`#%#//scriptlet('${e.name}')`),n&&n(i)}catch(e){}\"function\"==typeof window.__debug&&window.__debug(e)}}(source)}).apply(this,updatedArgs),source.uniqueId&&Object.defineProperty(Window.prototype.toString,uniqueIdentifier,{value:\"done\",enumerable:!1,writable:!1,configurable:!1})}catch(e){console.log(e)}}"
        },
        {
            "names": [
                "fingerprintjs2",
                "ubo-fingerprint2.js",
                "fingerprint2.js"
            ],
            "scriptlet": "function Fingerprintjs2(source,args){const uniqueIdentifier=source.uniqueId+source.name+\"_\"+(Array.isArray(args)?args.join(\"_\"):\"\");if(source.uniqueId&&\"done\"===Window.prototype.toString[uniqueIdentifier])return;const updatedArgs=args?[].concat(source).concat(args):[source];try{(function(source){for(var browserId=\"\",i=0;i<8;i+=1)browserId+=(65536*Math.random()+4096).toString(16).slice(-4);var Fingerprint2=function(){};Fingerprint2.prototype={get:Fingerprint2.get=function(options,callback){callback||(callback=options),setTimeout((function(){callback&&callback(browserId,[])}),1)}},window.Fingerprint2=Fingerprint2,window.Fingerprint=Fingerprint2,function(e){if(e.verbose){try{var n=console.trace.bind(console),i=\"[AdGuard] \";\"corelibs\"===e.engine?i+=e.ruleText:(e.domainName&&(i+=`${e.domainName}`),e.args?i+=`#%#//scriptlet('${e.name}', '${e.args.join(\"', '\")}')`:i+=`#%#//scriptlet('${e.name}')`),n&&n(i)}catch(e){}\"function\"==typeof window.__debug&&window.__debug(e)}}(source)}).apply(this,updatedArgs),source.uniqueId&&Object.defineProperty(Window.prototype.toString,uniqueIdentifier,{value:\"done\",enumerable:!1,writable:!1,configurable:!1})}catch(e){console.log(e)}}"
        },
        {
            "names": [
                "fingerprintjs3",
                "ubo-fingerprint3.js",
                "fingerprint3.js"
            ],
            "scriptlet": "function Fingerprintjs3(source,args){const uniqueIdentifier=source.uniqueId+source.name+\"_\"+(Array.isArray(args)?args.join(\"_\"):\"\");if(source.uniqueId&&\"done\"===Window.prototype.toString[uniqueIdentifier])return;function noopStr(){return\"\"}const updatedArgs=args?[].concat(source).concat(args):[source];try{(function(source){var visitorId=function(){for(var id=\"\",i=0;i<8;i+=1)id+=(65536*Math.random()+4096).toString(16).slice(-4);return id}(),FingerprintJS=function(){};FingerprintJS.prototype={load:()=>Promise.resolve(new FingerprintJS),get:()=>Promise.resolve({visitorId:visitorId}),hashComponents:noopStr},window.FingerprintJS=new FingerprintJS,function(e){if(e.verbose){try{var n=console.trace.bind(console),i=\"[AdGuard] \";\"corelibs\"===e.engine?i+=e.ruleText:(e.domainName&&(i+=`${e.domainName}`),e.args?i+=`#%#//scriptlet('${e.name}', '${e.args.join(\"', '\")}')`:i+=`#%#//scriptlet('${e.name}')`),n&&n(i)}catch(e){}\"function\"==typeof window.__debug&&window.__debug(e)}}(source)}).apply(this,updatedArgs),source.uniqueId&&Object.defineProperty(Window.prototype.toString,uniqueIdentifier,{value:\"done\",enumerable:!1,writable:!1,configurable:!1})}catch(e){console.log(e)}}"
        },
        {
            "names": [
                "freewheel-admanager"
            ],
            "scriptlet": "function FreewheelAdManager(source,args){const uniqueIdentifier=source.uniqueId+source.name+\"_\"+(Array.isArray(args)?args.join(\"_\"):\"\");if(source.uniqueId&&\"done\"===Window.prototype.toString[uniqueIdentifier])return;function noopFunc(){}function noopThis(){return this}const updatedArgs=args?[].concat(source).concat(args):[source];try{(function(source){var eventsMap=new Map,adManagerFunc=noopFunc;adManagerFunc.prototype.addEventListener=function(type,callback){type&&eventsMap.set(type,callback)},adManagerFunc.prototype.addKeyValue=noopFunc,adManagerFunc.prototype.addTemporalSlot=noopFunc,adManagerFunc.prototype.dispose=noopFunc,adManagerFunc.prototype.newContext=noopThis,adManagerFunc.prototype.registerCustomPlayer=noopFunc,adManagerFunc.prototype.registerVideoDisplayBase=noopFunc,adManagerFunc.prototype.removeEventListener=noopFunc,adManagerFunc.prototype.resize=noopFunc,adManagerFunc.prototype.setCapability=noopFunc,adManagerFunc.prototype.setContentVideoElement=noopFunc,adManagerFunc.prototype.setLogLevel=noopFunc,adManagerFunc.prototype.setNetwork=noopFunc,adManagerFunc.prototype.setParameter=noopFunc,adManagerFunc.prototype.setProfile=noopFunc,adManagerFunc.prototype.setServer=noopFunc,adManagerFunc.prototype.setSiteSection=noopFunc,adManagerFunc.prototype.setVideoAsset=noopFunc,adManagerFunc.prototype.setVideoDisplaySize=noopFunc,adManagerFunc.prototype.submitRequest=function(){var event={type:window.tv.freewheel.SDK.EVENT_SLOT_ENDED},callbackFunc=eventsMap.get(\"EVENT_SLOT_ENDED\");callbackFunc&&\"function\"==typeof callbackFunc&&setTimeout((function(){try{callbackFunc(event)}catch(ex){}}),1)},window.tv={freewheel:{SDK:{_instanceQueue:{},Ad:noopFunc,AdListener:noopFunc,AdManager:adManagerFunc,EVENT_SLOT_ENDED:\"EVENT_SLOT_ENDED\",setLogLevel:noopFunc}}},function(e){if(e.verbose){try{var n=console.trace.bind(console),i=\"[AdGuard] \";\"corelibs\"===e.engine?i+=e.ruleText:(e.domainName&&(i+=`${e.domainName}`),e.args?i+=`#%#//scriptlet('${e.name}', '${e.args.join(\"', '\")}')`:i+=`#%#//scriptlet('${e.name}')`),n&&n(i)}catch(e){}\"function\"==typeof window.__debug&&window.__debug(e)}}(source)}).apply(this,updatedArgs),source.uniqueId&&Object.defineProperty(Window.prototype.toString,uniqueIdentifier,{value:\"done\",enumerable:!1,writable:!1,configurable:!1})}catch(e){console.log(e)}}"
        },
        {
            "names": [
                "gemius"
            ],
            "scriptlet": "function Gemius(source,args){const uniqueIdentifier=source.uniqueId+source.name+\"_\"+(Array.isArray(args)?args.join(\"_\"):\"\");if(source.uniqueId&&\"done\"===Window.prototype.toString[uniqueIdentifier])return;function noopFunc(){}const updatedArgs=args?[].concat(source).concat(args):[source];try{(function(source){var GemiusPlayer=function(){};GemiusPlayer.prototype={setVideoObject:noopFunc,newProgram:noopFunc,programEvent:noopFunc,newAd:noopFunc,adEvent:noopFunc},window.GemiusPlayer=GemiusPlayer,function(e){if(e.verbose){try{var n=console.trace.bind(console),i=\"[AdGuard] \";\"corelibs\"===e.engine?i+=e.ruleText:(e.domainName&&(i+=`${e.domainName}`),e.args?i+=`#%#//scriptlet('${e.name}', '${e.args.join(\"', '\")}')`:i+=`#%#//scriptlet('${e.name}')`),n&&n(i)}catch(e){}\"function\"==typeof window.__debug&&window.__debug(e)}}(source)}).apply(this,updatedArgs),source.uniqueId&&Object.defineProperty(Window.prototype.toString,uniqueIdentifier,{value:\"done\",enumerable:!1,writable:!1,configurable:!1})}catch(e){console.log(e)}}"
        },
        {
            "names": [
                "google-analytics-ga",
                "ubo-google-analytics_ga.js",
                "google-analytics_ga.js"
            ],
            "scriptlet": "function GoogleAnalyticsGa(source,args){const uniqueIdentifier=source.uniqueId+source.name+\"_\"+(Array.isArray(args)?args.join(\"_\"):\"\");if(source.uniqueId&&\"done\"===Window.prototype.toString[uniqueIdentifier])return;function noopFunc(){}const updatedArgs=args?[].concat(source).concat(args):[source];try{(function(source){function Gaq(){}Gaq.prototype.Na=noopFunc,Gaq.prototype.O=noopFunc,Gaq.prototype.Sa=noopFunc,Gaq.prototype.Ta=noopFunc,Gaq.prototype.Va=noopFunc,Gaq.prototype._createAsyncTracker=noopFunc,Gaq.prototype._getAsyncTracker=noopFunc,Gaq.prototype._getPlugin=noopFunc,Gaq.prototype.push=function(data){\"function\"!=typeof data?!1!==Array.isArray(data)&&(\"string\"==typeof data[0]&&/(^|\\.)_link$/.test(data[0])&&\"string\"==typeof data[1]&&window.location.assign(data[1]),\"_set\"===data[0]&&\"hitCallback\"===data[1]&&\"function\"==typeof data[2]&&data[2]()):data()};var gaq=new Gaq,asyncTrackers=window._gaq||[];if(Array.isArray(asyncTrackers))for(;asyncTrackers[0];)gaq.push(asyncTrackers.shift());function Gat(){}window._gaq=gaq.qf=gaq;var tracker=[\"_addIgnoredOrganic\",\"_addIgnoredRef\",\"_addItem\",\"_addOrganic\",\"_addTrans\",\"_clearIgnoredOrganic\",\"_clearIgnoredRef\",\"_clearOrganic\",\"_cookiePathCopy\",\"_deleteCustomVar\",\"_getName\",\"_setAccount\",\"_getAccount\",\"_getClientInfo\",\"_getDetectFlash\",\"_getDetectTitle\",\"_getLinkerUrl\",\"_getLocalGifPath\",\"_getServiceMode\",\"_getVersion\",\"_getVisitorCustomVar\",\"_initData\",\"_link\",\"_linkByPost\",\"_setAllowAnchor\",\"_setAllowHash\",\"_setAllowLinker\",\"_setCampContentKey\",\"_setCampMediumKey\",\"_setCampNameKey\",\"_setCampNOKey\",\"_setCampSourceKey\",\"_setCampTermKey\",\"_setCampaignCookieTimeout\",\"_setCampaignTrack\",\"_setClientInfo\",\"_setCookiePath\",\"_setCookiePersistence\",\"_setCookieTimeout\",\"_setCustomVar\",\"_setDetectFlash\",\"_setDetectTitle\",\"_setDomainName\",\"_setLocalGifPath\",\"_setLocalRemoteServerMode\",\"_setLocalServerMode\",\"_setReferrerOverride\",\"_setRemoteServerMode\",\"_setSampleRate\",\"_setSessionTimeout\",\"_setSiteSpeedSampleRate\",\"_setSessionCookieTimeout\",\"_setVar\",\"_setVisitorCookieTimeout\",\"_trackEvent\",\"_trackPageLoadTime\",\"_trackPageview\",\"_trackSocial\",\"_trackTiming\",\"_trackTrans\",\"_visitCode\"].reduce((function(res,funcName){return res[funcName]=noopFunc,res}),{});tracker._getLinkerUrl=function(a){return a},tracker._link=function(url){if(\"string\"==typeof url)try{window.location.assign(url)}catch(e){!function(e,o){var r=arguments.length>2&&void 0!==arguments[2]&&arguments[2],a=!(arguments.length>3&&void 0!==arguments[3])||arguments[3],{name:n,verbose:g}=e;if(r||g){var i=console.log;a?i(`${n}: ${o}`):Array.isArray(o)?i(`${n}:`,...o):i(`${n}:`,o)}}(source,e)}},Gat.prototype._anonymizeIP=noopFunc,Gat.prototype._createTracker=noopFunc,Gat.prototype._forceSSL=noopFunc,Gat.prototype._getPlugin=noopFunc,Gat.prototype._getTracker=function(){return tracker},Gat.prototype._getTrackerByName=function(){return tracker},Gat.prototype._getTrackers=noopFunc,Gat.prototype.aa=noopFunc,Gat.prototype.ab=noopFunc,Gat.prototype.hb=noopFunc,Gat.prototype.la=noopFunc,Gat.prototype.oa=noopFunc,Gat.prototype.pa=noopFunc,Gat.prototype.u=noopFunc;var gat=new Gat;window._gat=gat,function(e){if(e.verbose){try{var n=console.trace.bind(console),i=\"[AdGuard] \";\"corelibs\"===e.engine?i+=e.ruleText:(e.domainName&&(i+=`${e.domainName}`),e.args?i+=`#%#//scriptlet('${e.name}', '${e.args.join(\"', '\")}')`:i+=`#%#//scriptlet('${e.name}')`),n&&n(i)}catch(e){}\"function\"==typeof window.__debug&&window.__debug(e)}}(source)}).apply(this,updatedArgs),source.uniqueId&&Object.defineProperty(Window.prototype.toString,uniqueIdentifier,{value:\"done\",enumerable:!1,writable:!1,configurable:!1})}catch(e){console.log(e)}}"
        },
        {
            "names": [
                "google-analytics",
                "ubo-google-analytics_analytics.js",
                "google-analytics_analytics.js",
                "googletagmanager-gtm",
                "ubo-googletagmanager_gtm.js",
                "googletagmanager_gtm.js"
            ],
            "scriptlet": "function GoogleAnalytics(source,args){const uniqueIdentifier=source.uniqueId+source.name+\"_\"+(Array.isArray(args)?args.join(\"_\"):\"\");if(source.uniqueId&&\"done\"===Window.prototype.toString[uniqueIdentifier])return;function noopFunc(){}const updatedArgs=args?[].concat(source).concat(args):[source];try{(function(source){var _window$googleAnalyti,Tracker=function(){},proto=Tracker.prototype;proto.get=noopFunc,proto.set=noopFunc,proto.send=noopFunc;var googleAnalyticsName=window.GoogleAnalyticsObject||\"ga\",queue=null===(_window$googleAnalyti=window[googleAnalyticsName])||void 0===_window$googleAnalyti?void 0:_window$googleAnalyti.q;function ga(a){var len=arguments.length;if(0!==len){var replacer,lastArg=arguments[len-1];lastArg instanceof Object&&null!==lastArg&&\"function\"==typeof lastArg.hitCallback?replacer=lastArg.hitCallback:\"function\"==typeof lastArg&&(replacer=function(){lastArg(ga.create())});try{setTimeout(replacer,1)}catch(ex){}}}if(ga.create=function(){return new Tracker},ga.getByName=function(){return new Tracker},ga.getAll=function(){return[new Tracker]},ga.remove=noopFunc,ga.loaded=!0,window[googleAnalyticsName]=ga,Array.isArray(queue)){var push=function(arg){ga(...arg)};queue.push=push,queue.forEach(push)}var{dataLayer:dataLayer,google_optimize:google_optimize}=window;if(dataLayer instanceof Object!=0){dataLayer.hide instanceof Object&&\"function\"==typeof dataLayer.hide.end&&dataLayer.hide.end();var handleCallback=function(dataObj,funcName){dataObj&&\"function\"==typeof dataObj[funcName]&&setTimeout(dataObj[funcName])};if(\"function\"==typeof dataLayer.push&&(dataLayer.push=function(data){if(data instanceof Object){for(var key in handleCallback(data,\"eventCallback\"),data)handleCallback(data[key],\"event_callback\");data.hasOwnProperty(\"eventCallback\")||data.hasOwnProperty(\"eventCallback\")||[].push.call(window.dataLayer,data)}return Array.isArray(data)&&data.forEach((function(arg){handleCallback(arg,\"callback\")})),noopFunc}),google_optimize instanceof Object&&\"function\"==typeof google_optimize.get){var googleOptimizeWrapper={get:noopFunc};window.google_optimize=googleOptimizeWrapper}!function(e){if(e.verbose){try{var n=console.trace.bind(console),i=\"[AdGuard] \";\"corelibs\"===e.engine?i+=e.ruleText:(e.domainName&&(i+=`${e.domainName}`),e.args?i+=`#%#//scriptlet('${e.name}', '${e.args.join(\"', '\")}')`:i+=`#%#//scriptlet('${e.name}')`),n&&n(i)}catch(e){}\"function\"==typeof window.__debug&&window.__debug(e)}}(source)}}).apply(this,updatedArgs),source.uniqueId&&Object.defineProperty(Window.prototype.toString,uniqueIdentifier,{value:\"done\",enumerable:!1,writable:!1,configurable:!1})}catch(e){console.log(e)}}"
        },
        {
            "names": [
                "google-ima3-dai"
            ],
            "scriptlet": "function GoogleIma3Dai(source,args){const uniqueIdentifier=source.uniqueId+source.name+\"_\"+(Array.isArray(args)?args.join(\"_\"):\"\");if(source.uniqueId&&\"done\"===Window.prototype.toString[uniqueIdentifier])return;function logMessage(e,o){var r=arguments.length>2&&void 0!==arguments[2]&&arguments[2],a=!(arguments.length>3&&void 0!==arguments[3])||arguments[3],{name:n,verbose:g}=e;if(r||g){var i=console.log;a?i(`${n}: ${o}`):Array.isArray(o)?i(`${n}:`,...o):i(`${n}:`,o)}}const updatedArgs=args?[].concat(source).concat(args):[source];try{(function(source){var isRecord=function(value){return\"object\"==typeof value&&null!==value},toStringRecord=function(value){if(!isRecord(value))return{};for(var result={},propertyNames=Object.keys(value),propertyIndex=0;propertyIndex<propertyNames.length;propertyIndex+=1){var propertyName=propertyNames[propertyIndex];result[propertyName]=String(value[propertyName])}return result},getStringValue=function(value){return\"string\"==typeof value&&value.length>0?value:null},initializeEventHandler=function(instance){instance.listeners=new Map},normalizeEventTypes=function(type){if(\"string\"==typeof type)return[type];if(!Array.isArray(type))return[];for(var eventTypes=[],eventTypeIndex=0;eventTypeIndex<type.length;eventTypeIndex+=1){var eventType=type[eventTypeIndex];\"string\"==typeof eventType&&eventTypes.push(eventType)}return eventTypes},initializeStreamRequest=function(instance,streamRequest){instance.adTagParameters={},instance.apiKey=null,instance.authToken=null,instance.format=\"hls\",instance.networkCode=null,instance.omidAccessModeRules=null,instance.streamActivityMonitorId=null,isRecord(streamRequest)&&Object.assign(instance,streamRequest),instance.adTagParameters=toStringRecord(instance.adTagParameters),\"string\"==typeof instance.format&&0!==instance.format.length||(instance.format=\"hls\")},initializePodStreamRequest=function(instance,podStreamRequest){initializeStreamRequest(instance,podStreamRequest),instance.customAssetKey=\"string\"==typeof instance.customAssetKey?instance.customAssetKey:\"\"},EventHandler=function(){initializeEventHandler(this)};EventHandler.prototype.addEventListener=function(type,listener){if(\"function\"==typeof listener)for(var eventTypes=normalizeEventTypes(type),eventTypeIndex=0;eventTypeIndex<eventTypes.length;eventTypeIndex+=1){var eventType=eventTypes[eventTypeIndex];this.listeners.has(eventType)||this.listeners.set(eventType,new Set);var listeners=this.listeners.get(eventType);listeners&&listeners.add(listener)}},EventHandler.prototype.removeEventListener=function(type,listener){if(\"function\"==typeof listener)for(var eventTypes=normalizeEventTypes(type),eventTypeIndex=0;eventTypeIndex<eventTypes.length;eventTypeIndex+=1){var listeners=this.listeners.get(eventTypes[eventTypeIndex]);listeners&&listeners.delete(listener)}},EventHandler.prototype.dispatchEvent=function(streamEvent){var listeners=this.listeners.get(streamEvent.type);if(listeners)for(var _i=0,_Array$from=Array.from(listeners);_i<_Array$from.length;_i++){var _listener=_Array$from[_i];try{_listener(streamEvent)}catch(error){logMessage(source,error)}}};var StreamRequest=function(streamRequest){initializeStreamRequest(this,streamRequest)},LiveStreamRequest=function(liveStreamRequest){initializeStreamRequest(this,liveStreamRequest),this.assetKey=\"string\"==typeof this.assetKey?this.assetKey:\"\"};Object.setPrototypeOf(LiveStreamRequest.prototype,StreamRequest.prototype);var PodStreamRequest=function(podStreamRequest){initializePodStreamRequest(this,podStreamRequest)};Object.setPrototypeOf(PodStreamRequest.prototype,StreamRequest.prototype);var VideoStitcherLiveStreamRequest=function(videoStitcherLiveStreamRequest){initializePodStreamRequest(this,videoStitcherLiveStreamRequest),this.liveStreamEventId=\"string\"==typeof this.liveStreamEventId?this.liveStreamEventId:\"\",this.oAuthToken=\"string\"==typeof this.oAuthToken?this.oAuthToken:null,this.projectNumber=\"string\"==typeof this.projectNumber?this.projectNumber:null,this.region=\"string\"==typeof this.region?this.region:null,this.videoStitcherSessionOptions=isRecord(this.videoStitcherSessionOptions)?this.videoStitcherSessionOptions:null};Object.setPrototypeOf(VideoStitcherLiveStreamRequest.prototype,PodStreamRequest.prototype);var VideoStitcherVodStreamRequest=function(videoStitcherVodStreamRequest){initializeStreamRequest(this,videoStitcherVodStreamRequest),this.adTagUrl=\"string\"==typeof this.adTagUrl?this.adTagUrl:\"\",this.contentSourceUrl=\"string\"==typeof this.contentSourceUrl?this.contentSourceUrl:\"\",this.oAuthToken=\"string\"==typeof this.oAuthToken?this.oAuthToken:null,this.projectNumber=\"string\"==typeof this.projectNumber?this.projectNumber:null,this.region=\"string\"==typeof this.region?this.region:null,this.videoStitcherSessionOptions=isRecord(this.videoStitcherSessionOptions)?this.videoStitcherSessionOptions:null,this.vodConfigId=\"string\"==typeof this.vodConfigId?this.vodConfigId:\"\"};Object.setPrototypeOf(VideoStitcherVodStreamRequest.prototype,StreamRequest.prototype);var VODStreamRequest=function(vodStreamRequest){initializeStreamRequest(this,vodStreamRequest),this.contentSourceId=\"string\"==typeof this.contentSourceId?this.contentSourceId:\"\",this.videoId=\"string\"==typeof this.videoId?this.videoId:\"\"};Object.setPrototypeOf(VODStreamRequest.prototype,StreamRequest.prototype);var StreamData=function(streamData){this.adPeriodData=null,this.adProgressData=null,this.cuepoints=[],this.errorMessage=null,this.manifestFormat=\"HLS\",this.streamId=null,this.subtitles=[],this.url=\"\",isRecord(streamData)&&Object.assign(this,streamData)},StreamEvent=function(type,streamData,ad){this.type=type,this.streamData=streamData||new StreamData,this.ad=ad||null};StreamEvent.Type={AD_BREAK_ENDED:\"adBreakEnded\",AD_BREAK_STARTED:\"adBreakStarted\",AD_PERIOD_ENDED:\"adPeriodEnded\",AD_PERIOD_STARTED:\"adPeriodStarted\",AD_PROGRESS:\"adProgress\",CLICK:\"click\",COMPLETE:\"complete\",CUEPOINTS_CHANGED:\"cuepointsChanged\",ERROR:\"error\",FIRST_QUARTILE:\"firstquartile\",HIDE_AD_UI:\"hideAdUi\",LOADED:\"loaded\",MIDPOINT:\"midpoint\",PAUSED:\"paused\",RESUMED:\"resumed\",SHOW_AD_UI:\"showAdUi\",SKIPPABLE_STATE_CHANGED:\"skippableStateChanged\",SKIPPED:\"skip\",STARTED:\"started\",STREAM_INITIALIZED:\"streamInitialized\",THIRD_QUARTILE:\"thirdquartile\",VIDEO_CLICKED:\"videoClicked\"},StreamEvent.prototype.getAd=function(){return this.ad},StreamEvent.prototype.getStreamData=function(){return this.streamData};var UiSettings=function(){this.locale=\"\"};UiSettings.prototype.getLocale=function(){return this.locale},UiSettings.prototype.setLocale=function(locale){this.locale=locale};var daiSdkFeatureFlagsStorage=new WeakMap,DaiSdkSettingsContainer=function(){daiSdkFeatureFlagsStorage.set(this,{})};DaiSdkSettingsContainer.prototype.getFeatureFlags=function(){return function(instance){var storedFeatureFlags=daiSdkFeatureFlagsStorage.get(instance);if(storedFeatureFlags)return storedFeatureFlags;var nextFeatureFlags={};return daiSdkFeatureFlagsStorage.set(instance,nextFeatureFlags),nextFeatureFlags}(this)},DaiSdkSettingsContainer.prototype.setFeatureFlags=function(featureFlags){daiSdkFeatureFlagsStorage.set(this,Object.assign({},featureFlags))};var hasLiveIdentifiers=function(streamRequest){var liveStreamRequest=streamRequest;return\"string\"==typeof liveStreamRequest.assetKey&&liveStreamRequest.assetKey.length>0},hasPodIdentifiers=function(streamRequest){var podStreamRequest=streamRequest;return\"string\"==typeof podStreamRequest.networkCode&&podStreamRequest.networkCode.length>0&&\"string\"==typeof podStreamRequest.customAssetKey&&podStreamRequest.customAssetKey.length>0},hasVodIdentifiers=function(streamRequest){var vodStreamRequest=streamRequest;return\"string\"==typeof vodStreamRequest.contentSourceId&&vodStreamRequest.contentSourceId.length>0&&\"string\"==typeof vodStreamRequest.videoId&&vodStreamRequest.videoId.length>0},getFallbackStreamId=function(streamRequest){var liveStreamRequest=streamRequest,videoStitcherLiveStreamRequest=streamRequest,videoStitcherVodStreamRequest=streamRequest,vodStreamRequest=streamRequest;return\"string\"==typeof videoStitcherVodStreamRequest.vodConfigId&&videoStitcherVodStreamRequest.vodConfigId.length>0?`mock-video-stitcher-vod-${videoStitcherVodStreamRequest.vodConfigId}`:\"string\"==typeof videoStitcherVodStreamRequest.contentSourceUrl&&videoStitcherVodStreamRequest.contentSourceUrl.length>0?\"mock-video-stitcher-vod\":\"string\"==typeof videoStitcherLiveStreamRequest.liveStreamEventId&&videoStitcherLiveStreamRequest.liveStreamEventId.length>0?`mock-video-stitcher-live-${videoStitcherLiveStreamRequest.liveStreamEventId}`:\"string\"==typeof liveStreamRequest.assetKey&&liveStreamRequest.assetKey.length>0?`mock-live-${liveStreamRequest.assetKey}`:\"string\"==typeof vodStreamRequest.videoId&&vodStreamRequest.videoId.length>0?`mock-vod-${vodStreamRequest.videoId}`:\"mock-stream\"},getDefaultManifestFormat=function(streamRequest){return\"string\"==typeof streamRequest.format&&\"dash\"===streamRequest.format.toLowerCase()?\"DASH\":\"HLS\"},createStreamData=function(streamRequest,cuepoints,errorMessage,streamDataOverrides){var streamData=new StreamData({cuepoints:cuepoints.slice(),errorMessage:errorMessage,manifestFormat:getDefaultManifestFormat(streamRequest),streamId:getFallbackStreamId(streamRequest),url:\"\"});return isRecord(streamDataOverrides)&&Object.assign(streamData,streamDataOverrides),streamData},appendRequestParameters=function(requestUrl,streamRequest){for(var parameterNames=Object.keys(streamRequest.adTagParameters),parameterIndex=0;parameterIndex<parameterNames.length;parameterIndex+=1){var parameterName=parameterNames[parameterIndex];requestUrl.searchParams.set(parameterName,streamRequest.adTagParameters[parameterName])}streamRequest.apiKey&&requestUrl.searchParams.set(\"api-key\",streamRequest.apiKey),streamRequest.authToken&&requestUrl.searchParams.set(\"auth-token\",streamRequest.authToken),streamRequest.streamActivityMonitorId&&requestUrl.searchParams.set(\"dai-sam-id\",streamRequest.streamActivityMonitorId)},buildLiveRequestUrl=function(streamRequest,hostName){var requestUrl=new URL(`${hostName}/ssai/event/${streamRequest.assetKey}/streams`);return appendRequestParameters(requestUrl,streamRequest),requestUrl.toString()},buildPodRequestUrl=function(streamRequest,hostName){var requestUrl=new URL(`${hostName}/ssai/pods/api/v1/network/${streamRequest.networkCode}/custom_asset/${streamRequest.customAssetKey}/stream`),manifestType=\"dash\"===streamRequest.format.toLowerCase()?\"dash\":\"hls\";return appendRequestParameters(requestUrl,streamRequest),requestUrl.searchParams.set(\"manifest-type\",manifestType),requestUrl.toString()},buildVodRequestUrl=function(streamRequest,hostName){var requestFormat=\"dash\"===streamRequest.format.toLowerCase()?\"dash\":\"hls\",requestUrl=new URL(`${hostName}/ondemand/${requestFormat}/content/${streamRequest.contentSourceId}/vid/${streamRequest.videoId}/streams`);return appendRequestParameters(requestUrl,streamRequest),requestUrl.toString()},createStreamDataFromResponse=function(streamRequest,cuepoints,responseData){var podManifestUrl=getStringValue(responseData.pod_manifest_url)||getStringValue(responseData.podManifestUrl)||\"\",responseStreamId=getStringValue(responseData.stream_id)||getStringValue(responseData.streamId),streamUrl=getStringValue(responseData.stream_manifest)||getStringValue(responseData.streamUrl)||podManifestUrl||\"\",responseErrorMessage=function(responseData){return getStringValue(responseData.errorMessage)||getStringValue(responseData.error_message)}(responseData),hasInitializedStream=streamUrl.length>0||null!==responseStreamId&&responseStreamId.length>0,errorMessage=responseErrorMessage||(hasInitializedStream?null:\"Stream initialization response missing stream URL\"),manifestFormat=getStringValue(responseData.manifest_format)||getStringValue(responseData.manifestFormat)||getDefaultManifestFormat(streamRequest),streamId=responseStreamId||getFallbackStreamId(streamRequest),subtitles=Array.isArray(responseData.subtitles)?responseData.subtitles:[];return createStreamData(streamRequest,cuepoints,errorMessage,{manifestFormat:manifestFormat,podManifestUrl:podManifestUrl,pod_manifest_url:podManifestUrl,streamId:streamId,subtitles:subtitles,url:streamUrl})},handleContentLoaded=function(streamManager){!function(streamManager){streamManager.adUiElement&&(streamManager.adUiElement.style.display=\"none\")}(streamManager),function(streamManager){streamManager.videoElement&&!streamManager.videoElement.controls&&(streamManager.videoElement.controls=!0)}(streamManager)},StreamManager=function(videoElement,adUiElement,uiSettings){initializeEventHandler(this),this.videoElement=videoElement||null,this.adUiElement=adUiElement||null,this.uiSettings=uiSettings||new UiSettings,this.clickElement=adUiElement||null,this.streamData=new StreamData,this.streamMonitor={},this.streamRequest=null,this.cuepoints=[],this.lastMetadata=null,this.lastTimedMetadata=null};Object.setPrototypeOf(StreamManager.prototype,EventHandler.prototype),StreamManager.prototype.contentTimeForStreamTime=function(streamTime){return\"number\"==typeof streamTime?streamTime:0},StreamManager.prototype.destroy=function(){this.reset()},StreamManager.prototype.focus=function(){var clickElement=this.clickElement;if(clickElement&&\"function\"==typeof clickElement.focus)try{clickElement.focus()}catch(error){logMessage(source,error)}},StreamManager.prototype.getAdSkippableState=function(){return!0},StreamManager.prototype.getStreamData=function(){return this.streamData},StreamManager.prototype.loadStreamMetadata=function(){handleContentLoaded(this),this.dispatchEvent(new StreamEvent(StreamEvent.Type.LOADED,this.streamData))},StreamManager.prototype.onTimedMetadata=function(metadata){this.lastTimedMetadata=metadata},StreamManager.prototype.previousCuePointForStreamTime=function(streamTime){for(var previousCuePoint=null,cuepointIndex=0;cuepointIndex<this.cuepoints.length;cuepointIndex+=1){var cuepoint=this.cuepoints[cuepointIndex];\"number\"==typeof cuepoint.start&&cuepoint.start<=streamTime&&(previousCuePoint=cuepoint)}return previousCuePoint},StreamManager.prototype.processMetadata=function(type,data,timestamp){this.lastMetadata={data:data,timestamp:timestamp,type:type}},StreamManager.prototype.replaceAdTagParameters=function(adTagParameters){this.streamRequest||(this.streamRequest=new StreamRequest),this.streamRequest.adTagParameters=toStringRecord(adTagParameters)},StreamManager.prototype.requestStream=function(streamRequest){var _this=this,normalizedRequest=function(streamRequest){if(streamRequest instanceof StreamRequest)return streamRequest;if(isRecord(streamRequest)){if(\"string\"==typeof streamRequest.liveStreamEventId)return new VideoStitcherLiveStreamRequest(streamRequest);if(\"string\"==typeof streamRequest.contentSourceUrl||\"string\"==typeof streamRequest.vodConfigId||\"string\"==typeof streamRequest.adTagUrl)return new VideoStitcherVodStreamRequest(streamRequest);if(\"string\"==typeof streamRequest.customAssetKey)return new PodStreamRequest(streamRequest);if(\"string\"==typeof streamRequest.assetKey)return new LiveStreamRequest(streamRequest);if(\"string\"==typeof streamRequest.contentSourceId||\"string\"==typeof streamRequest.videoId)return new VODStreamRequest(streamRequest)}return new StreamRequest}(streamRequest);this.streamRequest=normalizedRequest;var dispatchStreamEvent=function(eventType,streamData){var callback;_this.streamData=streamData,function(eventType){return eventType===StreamEvent.Type.LOADED||eventType===StreamEvent.Type.STREAM_INITIALIZED}(eventType)&&handleContentLoaded(_this),callback=function(){_this.dispatchEvent(new StreamEvent(StreamEvent.Type.STREAM_INITIALIZED,streamData)),_this.dispatchEvent(new StreamEvent(eventType,streamData))},\"function\"!=typeof requestAnimationFrame?setTimeout(callback,0):requestAnimationFrame(callback)};if(function(streamRequest){return hasLiveIdentifiers(streamRequest)||hasPodIdentifiers(streamRequest)||function(streamRequest){var videoStitcherLiveStreamRequest=streamRequest;return\"string\"==typeof videoStitcherLiveStreamRequest.liveStreamEventId&&videoStitcherLiveStreamRequest.liveStreamEventId.length>0}(streamRequest)||function(streamRequest){var videoStitcherVodStreamRequest=streamRequest,hasContentSourceUrl=\"string\"==typeof videoStitcherVodStreamRequest.contentSourceUrl&&videoStitcherVodStreamRequest.contentSourceUrl.length>0,hasVodConfigId=\"string\"==typeof videoStitcherVodStreamRequest.vodConfigId&&videoStitcherVodStreamRequest.vodConfigId.length>0;return hasContentSourceUrl||hasVodConfigId}(streamRequest)||hasVodIdentifiers(streamRequest)}(normalizedRequest)){var requestUrls=function(streamRequest){return hasPodIdentifiers(streamRequest)?[buildPodRequestUrl(streamRequest,\"https://dai.google.com\"),buildPodRequestUrl(streamRequest,\"https://pubads.g.doubleclick.net\")]:hasLiveIdentifiers(streamRequest)?[buildLiveRequestUrl(streamRequest,\"https://dai.google.com\"),buildLiveRequestUrl(streamRequest,\"https://pubads.g.doubleclick.net\")]:hasVodIdentifiers(streamRequest)?[buildVodRequestUrl(streamRequest,\"https://dai.google.com\"),buildVodRequestUrl(streamRequest,\"https://pubads.g.doubleclick.net\")]:[]}(normalizedRequest);if(requestUrls.length>0){var activeRequest=normalizedRequest,_fetchStreamData=async function(requestIndex){try{var fetchResponse=await fetch(requestUrls[requestIndex],{method:\"POST\",credentials:\"include\"}),responseData=await async function(response){var typedResponse=response;if(typedResponse&&!1===typedResponse.ok)throw new Error(`Stream initialization failed with status ${String(typedResponse.status||0)}`);if(typedResponse&&\"function\"==typeof typedResponse.json){var jsonResponse=await typedResponse.json();return isRecord(jsonResponse)?jsonResponse:{}}return isRecord(response)?response:{}}(fetchResponse);if(_this.streamRequest!==activeRequest)return;var _streamData=createStreamDataFromResponse(activeRequest,_this.cuepoints,responseData),eventType=_streamData.errorMessage?StreamEvent.Type.ERROR:StreamEvent.Type.LOADED;dispatchStreamEvent(eventType,_streamData)}catch(error){if(_this.streamRequest!==activeRequest)return;if(requestIndex+1<requestUrls.length)return void await _fetchStreamData(requestIndex+1);dispatchStreamEvent(StreamEvent.Type.ERROR,createStreamData(activeRequest,_this.cuepoints,function(error){return isRecord(error)&&\"string\"==typeof error.message&&error.message.length>0?error.message:\"Stream initialization failed\"}(error)))}};_fetchStreamData(0)}else dispatchStreamEvent(StreamEvent.Type.LOADED,createStreamData(normalizedRequest,this.cuepoints,null))}else dispatchStreamEvent(StreamEvent.Type.ERROR,createStreamData(normalizedRequest,this.cuepoints,\"Missing stream request identifiers\"))},StreamManager.prototype.reset=function(){this.cuepoints=[],this.lastMetadata=null,this.lastTimedMetadata=null,this.streamData=new StreamData,this.streamRequest=null},StreamManager.prototype.setClickElement=function(clickElement){this.adUiElement||(this.clickElement=clickElement)},StreamManager.prototype.streamTimeForContentTime=function(contentTime){return\"number\"==typeof contentTime?contentTime:0};var api={DaiSdkSettings:new DaiSdkSettingsContainer,LiveStreamRequest:LiveStreamRequest,PodStreamRequest:PodStreamRequest,StreamData:StreamData,StreamEvent:StreamEvent,StreamManager:StreamManager,StreamRequest:StreamRequest,UiSettings:UiSettings,VideoStitcherLiveStreamRequest:VideoStitcherLiveStreamRequest,VideoStitcherVodStreamRequest:VideoStitcherVodStreamRequest,VODStreamRequest:VODStreamRequest},globalWindow=window,googleNamespace=isRecord(globalWindow.google)?globalWindow.google:{};isRecord(globalWindow.google)||(globalWindow.google=googleNamespace);var imaNamespace=isRecord(googleNamespace.ima)?googleNamespace.ima:{};googleNamespace.ima=imaNamespace;var daiNamespace=isRecord(imaNamespace.dai)?imaNamespace.dai:{};imaNamespace.dai=daiNamespace;var apiNamespace=isRecord(daiNamespace.api)?daiNamespace.api:{};daiNamespace.api=apiNamespace,Object.assign(apiNamespace,api),function(e){if(e.verbose){try{var n=console.trace.bind(console),i=\"[AdGuard] \";\"corelibs\"===e.engine?i+=e.ruleText:(e.domainName&&(i+=`${e.domainName}`),e.args?i+=`#%#//scriptlet('${e.name}', '${e.args.join(\"', '\")}')`:i+=`#%#//scriptlet('${e.name}')`),n&&n(i)}catch(e){}\"function\"==typeof window.__debug&&window.__debug(e)}}(source)}).apply(this,updatedArgs),source.uniqueId&&Object.defineProperty(Window.prototype.toString,uniqueIdentifier,{value:\"done\",enumerable:!1,writable:!1,configurable:!1})}catch(e){console.log(e)}}"
        },
        {
            "names": [
                "google-ima3",
                "ubo-google-ima.js",
                "google-ima.js"
            ],
            "scriptlet": "function GoogleIma3(source,args){const uniqueIdentifier=source.uniqueId+source.name+\"_\"+(Array.isArray(args)?args.join(\"_\"):\"\");if(source.uniqueId&&\"done\"===Window.prototype.toString[uniqueIdentifier])return;function noopFunc(){}function logMessage(e,o){var r=arguments.length>2&&void 0!==arguments[2]&&arguments[2],a=!(arguments.length>3&&void 0!==arguments[3])||arguments[3],{name:n,verbose:g}=e;if(r||g){var i=console.log;a?i(`${n}: ${o}`):Array.isArray(o)?i(`${n}:`,...o):i(`${n}:`,o)}}const updatedArgs=args?[].concat(source).concat(args):[source];try{(function(source){var _window$google$ima,ima={},AdDisplayContainer=function(containerElement){var divElement=document.createElement(\"div\");divElement.style.setProperty(\"display\",\"none\",\"important\"),divElement.style.setProperty(\"visibility\",\"collapse\",\"important\"),containerElement&&containerElement.appendChild(divElement)};AdDisplayContainer.prototype.destroy=noopFunc,AdDisplayContainer.prototype.initialize=noopFunc;var ImaSdkSettings=function(){};ImaSdkSettings.CompanionBackfillMode={ALWAYS:\"always\",ON_MASTER_AD:\"on_master_ad\"},ImaSdkSettings.VpaidMode={DISABLED:0,ENABLED:1,INSECURE:2},ImaSdkSettings.prototype={c:!0,f:{},i:!1,l:\"\",p:\"\",r:0,t:\"\",v:\"\",getCompanionBackfill:noopFunc,getDisableCustomPlaybackForIOS10Plus(){return this.i},getDisabledFlashAds:function(){return!0},getFeatureFlags(){return this.f},getLocale(){return this.l},getNumRedirects(){return this.r},getPlayerType(){return this.t},getPlayerVersion(){return this.v},getPpid(){return this.p},getVpaidMode(){return this.C},isCookiesEnabled(){return this.c},isVpaidAdapter(){return this.M},setCompanionBackfill:noopFunc,setAutoPlayAdBreaks(a){this.K=a},setCookiesEnabled(c){this.c=!!c},setDisableCustomPlaybackForIOS10Plus(i){this.i=!!i},setDisableFlashAds:noopFunc,setFeatureFlags(f){this.f=!!f},setIsVpaidAdapter(a){this.M=a},setLocale(l){this.l=!!l},setNumRedirects(r){this.r=!!r},setPageCorrelator(a){this.R=a},setPlayerType(t){this.t=!!t},setPlayerVersion(v){this.v=!!v},setPpid(p){this.p=!!p},setVpaidMode(a){this.C=a},setSessionId:noopFunc,setStreamCorrelator:noopFunc,setVpaidAllowed:noopFunc,CompanionBackfillMode:{ALWAYS:\"always\",ON_MASTER_AD:\"on_master_ad\"},VpaidMode:{DISABLED:0,ENABLED:1,INSECURE:2}};var EventHandler=function(){this.listeners=new Map,this._dispatch=function(e){var listeners=this.listeners.get(e.type);listeners=listeners?listeners.values():[];for(var _i=0,_Array$from=Array.from(listeners);_i<_Array$from.length;_i++){var listener=_Array$from[_i];try{listener(e)}catch(r){logMessage(source,r)}}},this.addEventListener=function(types,callback,options,context){Array.isArray(types)||(types=[types]);for(var i=0;i<types.length;i+=1){var type=types[i];this.listeners.has(type)||this.listeners.set(type,new Map),this.listeners.get(type).set(callback,callback.bind(context||this))}},this.removeEventListener=function(types,callback){Array.isArray(types)||(types=[types]);for(var i=0;i<types.length;i+=1){var _this$listeners$get,type=types[i];null===(_this$listeners$get=this.listeners.get(type))||void 0===_this$listeners$get||_this$listeners$get.delete(callback)}}},AdsManager=new EventHandler;AdsManager.volume=1,AdsManager.collapse=noopFunc,AdsManager.configureAdsManager=noopFunc,AdsManager.destroy=noopFunc,AdsManager.discardAdBreak=noopFunc,AdsManager.expand=noopFunc,AdsManager.focus=noopFunc,AdsManager.getAdSkippableState=function(){return!1},AdsManager.getCuePoints=function(){return[0]},AdsManager.getCurrentAd=function(){return currentAd},AdsManager.getCurrentAdCuePoints=function(){return[]},AdsManager.getRemainingTime=function(){return 0},AdsManager.getVolume=function(){return this.volume},AdsManager.init=noopFunc,AdsManager.isCustomClickTrackingUsed=function(){return!1},AdsManager.isCustomPlaybackUsed=function(){return!1},AdsManager.pause=noopFunc,AdsManager.requestNextAdBreak=noopFunc,AdsManager.resize=noopFunc,AdsManager.resume=noopFunc,AdsManager.setVolume=function(v){this.volume=v},AdsManager.skip=noopFunc,AdsManager.start=function(){for(var _i2=0,_arr=[AdEvent.Type.ALL_ADS_COMPLETED,AdEvent.Type.CONTENT_RESUME_REQUESTED];_i2<_arr.length;_i2++){var type=_arr[_i2];try{this._dispatch(new ima.AdEvent(type))}catch(e){logMessage(source,e)}}},AdsManager.stop=noopFunc,AdsManager.updateAdsRenderingSettings=noopFunc;var manager=Object.create(AdsManager),AdsManagerLoadedEvent=function(type,adsRequest,userRequestContext){this.type=type,this.adsRequest=adsRequest,this.userRequestContext=userRequestContext};AdsManagerLoadedEvent.prototype={getAdsManager:function(){return manager},getUserRequestContext(){return this.userRequestContext?this.userRequestContext:{}}},AdsManagerLoadedEvent.Type={ADS_MANAGER_LOADED:\"adsManagerLoaded\"};var AdsLoader=EventHandler;AdsLoader.prototype.settings=new ImaSdkSettings,AdsLoader.prototype.contentComplete=noopFunc,AdsLoader.prototype.destroy=noopFunc,AdsLoader.prototype.getSettings=function(){return this.settings},AdsLoader.prototype.getVersion=function(){return\"3.746.0\"},AdsLoader.prototype.requestAds=function(adsRequest,userRequestContext){var _this=this;requestAnimationFrame((function(){var{ADS_MANAGER_LOADED:ADS_MANAGER_LOADED}=AdsManagerLoadedEvent.Type,event=new ima.AdsManagerLoadedEvent(ADS_MANAGER_LOADED,adsRequest,userRequestContext);_this._dispatch(event)}));var e=new ima.AdError(\"adPlayError\",1205,1205,\"The browser prevented playback initiated without user interaction.\",adsRequest,userRequestContext);requestAnimationFrame((function(){_this._dispatch(new ima.AdErrorEvent(e))}))};var AdsRenderingSettings=noopFunc,AdsRequest=function(){};AdsRequest.prototype={setAdWillAutoPlay:noopFunc,setAdWillPlayMuted:noopFunc,setContinuousPlayback:noopFunc};var AdPodInfo=function(){};AdPodInfo.prototype={getAdPosition:function(){return 1},getIsBumper:function(){return!1},getMaxDuration:function(){return-1},getPodIndex:function(){return 1},getTimeOffset:function(){return 0},getTotalAds:function(){return 1}};var UniversalAdIdInfo=function(){};UniversalAdIdInfo.prototype.getAdIdRegistry=function(){return\"\"},UniversalAdIdInfo.prototype.getAdIsValue=function(){return\"\"};var Ad=function(){};Ad.prototype={pi:new AdPodInfo,getAdId:function(){return\"\"},getAdPodInfo(){return this.pi},getAdSystem:function(){return\"\"},getAdvertiserName:function(){return\"\"},getApiFramework:function(){return null},getCompanionAds:function(){return[]},getContentType:function(){return\"\"},getCreativeId:function(){return\"\"},getCreativeAdId:function(){return\"\"},getDealId:function(){return\"\"},getDescription:function(){return\"\"},getDuration:function(){return 8.5},getHeight:function(){return 0},getMediaUrl:function(){return null},getMinSuggestedDuration:function(){return-2},getSkipTimeOffset:function(){return-1},getSurveyUrl:function(){return null},getTitle:function(){return\"\"},getTraffickingParametersString:function(){return\"\"},getUiElements:function(){return[\"\"]},getUniversalAdIdRegistry:function(){return\"unknown\"},getUniversalAdIds:function(){return[new UniversalAdIdInfo]},getUniversalAdIdValue:function(){return\"unknown\"},getVastMediaBitrate:function(){return 0},getVastMediaHeight:function(){return 0},getVastMediaWidth:function(){return 0},getWidth:function(){return 0},getWrapperAdIds:function(){return[\"\"]},getWrapperAdSystems:function(){return[\"\"]},getWrapperCreativeIds:function(){return[\"\"]},isLinear:function(){return!0},isSkippable:()=>!0};var CompanionAd=function(){};CompanionAd.prototype={getAdSlotId:function(){return\"\"},getContent:function(){return\"\"},getContentType:function(){return\"\"},getHeight:function(){return 1},getWidth:function(){return 1}};var AdError=function(type,code,vast,message,adsRequest,userRequestContext){this.errorCode=code,this.message=message,this.type=type,this.adsRequest=adsRequest,this.userRequestContext=userRequestContext,this.getErrorCode=function(){return this.errorCode},this.getInnerError=function(){return null},this.getMessage=function(){return this.message},this.getType=function(){return this.type},this.getVastErrorCode=function(){return this.vastErrorCode},this.toString=function(){return`AdError ${this.errorCode}: ${this.message}`}};AdError.ErrorCode={},AdError.Type={};var currentAd=function(){try{for(var _i3=0,_Object$values=Object.values(window.vidible._getContexts());_i3<_Object$values.length;_i3++){var _ctx$getPlayer;if(null!==(_ctx$getPlayer=_Object$values[_i3].getPlayer())&&void 0!==_ctx$getPlayer&&null!==(_ctx$getPlayer=_ctx$getPlayer.div)&&void 0!==_ctx$getPlayer&&_ctx$getPlayer.innerHTML.includes(\"www.engadget.com\"))return!0}}catch(e){}return!1}()?void 0:new Ad,AdEvent=function(type){this.type=type};AdEvent.prototype={getAd:function(){return currentAd},getAdData:function(){}},AdEvent.Type={AD_BREAK_READY:\"adBreakReady\",AD_BUFFERING:\"adBuffering\",AD_CAN_PLAY:\"adCanPlay\",AD_METADATA:\"adMetadata\",AD_PROGRESS:\"adProgress\",ALL_ADS_COMPLETED:\"allAdsCompleted\",CLICK:\"click\",COMPLETE:\"complete\",CONTENT_PAUSE_REQUESTED:\"contentPauseRequested\",CONTENT_RESUME_REQUESTED:\"contentResumeRequested\",DURATION_CHANGE:\"durationChange\",EXPANDED_CHANGED:\"expandedChanged\",FIRST_QUARTILE:\"firstQuartile\",IMPRESSION:\"impression\",INTERACTION:\"interaction\",LINEAR_CHANGE:\"linearChange\",LINEAR_CHANGED:\"linearChanged\",LOADED:\"loaded\",LOG:\"log\",MIDPOINT:\"midpoint\",PAUSED:\"pause\",RESUMED:\"resume\",SKIPPABLE_STATE_CHANGED:\"skippableStateChanged\",SKIPPED:\"skip\",STARTED:\"start\",THIRD_QUARTILE:\"thirdQuartile\",USER_CLOSE:\"userClose\",VIDEO_CLICKED:\"videoClicked\",VIDEO_ICON_CLICKED:\"videoIconClicked\",VIEWABLE_IMPRESSION:\"viewable_impression\",VOLUME_CHANGED:\"volumeChange\",VOLUME_MUTED:\"mute\"};var AdErrorEvent=function(error){this.error=error,this.type=\"adError\",this.getError=function(){return this.error},this.getUserRequestContext=function(){var _this$error;return null!==(_this$error=this.error)&&void 0!==_this$error&&_this$error.userRequestContext?this.error.userRequestContext:{}}};AdErrorEvent.Type={AD_ERROR:\"adError\"};var CustomContentLoadedEvent=function(){};CustomContentLoadedEvent.Type={CUSTOM_CONTENT_LOADED:\"deprecated-event\"};var CompanionAdSelectionSettings=function(){};CompanionAdSelectionSettings.CreativeType={ALL:\"All\",FLASH:\"Flash\",IMAGE:\"Image\"},CompanionAdSelectionSettings.ResourceType={ALL:\"All\",HTML:\"Html\",IFRAME:\"IFrame\",STATIC:\"Static\"},CompanionAdSelectionSettings.SizeCriteria={IGNORE:\"IgnoreSize\",SELECT_EXACT_MATCH:\"SelectExactMatch\",SELECT_NEAR_MATCH:\"SelectNearMatch\"};var AdCuePoints=function(){};AdCuePoints.prototype={getCuePoints:function(){return[]},getAdIdRegistry:function(){return\"\"},getAdIdValue:function(){return\"\"}};var AdProgressData=noopFunc;Object.assign(ima,{AdCuePoints:AdCuePoints,AdDisplayContainer:AdDisplayContainer,AdError:AdError,AdErrorEvent:AdErrorEvent,AdEvent:AdEvent,AdPodInfo:AdPodInfo,AdProgressData:AdProgressData,AdsLoader:AdsLoader,AdsManager:manager,AdsManagerLoadedEvent:AdsManagerLoadedEvent,AdsRenderingSettings:AdsRenderingSettings,AdsRequest:AdsRequest,CompanionAd:CompanionAd,CompanionAdSelectionSettings:CompanionAdSelectionSettings,CustomContentLoadedEvent:CustomContentLoadedEvent,gptProxyInstance:{},ImaSdkSettings:ImaSdkSettings,OmidAccessMode:{DOMAIN:\"domain\",FULL:\"full\",LIMITED:\"limited\"},OmidVerificationVendor:{1:\"OTHER\",2:\"MOAT\",3:\"DOUBLEVERIFY\",4:\"INTEGRAL_AD_SCIENCE\",5:\"PIXELATE\",6:\"NIELSEN\",7:\"COMSCORE\",8:\"MEETRICS\",9:\"GOOGLE\",OTHER:1,MOAT:2,DOUBLEVERIFY:3,INTEGRAL_AD_SCIENCE:4,PIXELATE:5,NIELSEN:6,COMSCORE:7,MEETRICS:8,GOOGLE:9},settings:new ImaSdkSettings,UiElements:{AD_ATTRIBUTION:\"adAttribution\",COUNTDOWN:\"countdown\"},UniversalAdIdInfo:UniversalAdIdInfo,VERSION:\"3.746.0\",ViewMode:{FULLSCREEN:\"fullscreen\",NORMAL:\"normal\"}}),window.google||(window.google={}),null!==(_window$google$ima=window.google.ima)&&void 0!==_window$google$ima&&_window$google$ima.dai&&(ima.dai=window.google.ima.dai),window.google.ima=ima,function(e){if(e.verbose){try{var n=console.trace.bind(console),i=\"[AdGuard] \";\"corelibs\"===e.engine?i+=e.ruleText:(e.domainName&&(i+=`${e.domainName}`),e.args?i+=`#%#//scriptlet('${e.name}', '${e.args.join(\"', '\")}')`:i+=`#%#//scriptlet('${e.name}')`),n&&n(i)}catch(e){}\"function\"==typeof window.__debug&&window.__debug(e)}}(source)}).apply(this,updatedArgs),source.uniqueId&&Object.defineProperty(Window.prototype.toString,uniqueIdentifier,{value:\"done\",enumerable:!1,writable:!1,configurable:!1})}catch(e){console.log(e)}}"
        },
        {
            "names": [
                "googlesyndication-adsbygoogle",
                "ubo-googlesyndication_adsbygoogle.js",
                "googlesyndication_adsbygoogle.js"
            ],
            "scriptlet": "function GoogleSyndicationAdsByGoogle(source,args){const uniqueIdentifier=source.uniqueId+source.name+\"_\"+(Array.isArray(args)?args.join(\"_\"):\"\");if(source.uniqueId&&\"done\"===Window.prototype.toString[uniqueIdentifier])return;const updatedArgs=args?[].concat(source).concat(args):[source];try{(function(source){window.adsbygoogle={loaded:!0,push(arg){if(void 0===this.length&&(this.length=0,this.length+=1),null!==arg&&arg instanceof Object&&\"Object\"===arg.constructor.name)for(var _i=0,_Object$keys=Object.keys(arg);_i<_Object$keys.length;_i++){var key=_Object$keys[_i];if(\"function\"==typeof arg[key])try{arg[key].call(this,{})}catch(_unused){}}}};for(var adElems=document.querySelectorAll(\".adsbygoogle\"),css=\"height:1px!important;max-height:1px!important;max-width:1px!important;width:1px!important;\",executed=!1,i=0;i<adElems.length;i+=1){var adElemChildNodes=adElems[i].childNodes,childNodesQuantity=adElemChildNodes.length,areIframesDefined=!1;if(childNodesQuantity>0&&(areIframesDefined=2===childNodesQuantity&&\"iframe\"===adElemChildNodes[0].nodeName.toLowerCase()&&adElemChildNodes[0].id.includes(\"aswift_\")&&\"iframe\"===adElemChildNodes[1].nodeName.toLowerCase()&&adElemChildNodes[1].id.includes(\"google_ads_iframe_\")),!areIframesDefined){adElems[i].setAttribute(\"data-adsbygoogle-status\",\"done\");var aswiftIframe=document.createElement(\"iframe\");aswiftIframe.id=`aswift_${i}`,aswiftIframe.style=css,adElems[i].appendChild(aswiftIframe);var innerAswiftIframe=document.createElement(\"iframe\");aswiftIframe.contentWindow.document.body.appendChild(innerAswiftIframe);var googleadsIframe=document.createElement(\"iframe\");googleadsIframe.id=`google_ads_iframe_${i}`,googleadsIframe.style=css,adElems[i].appendChild(googleadsIframe);var innerGoogleadsIframe=document.createElement(\"iframe\");googleadsIframe.contentWindow.document.body.appendChild(innerGoogleadsIframe),executed=!0}}executed&&function(e){if(e.verbose){try{var n=console.trace.bind(console),i=\"[AdGuard] \";\"corelibs\"===e.engine?i+=e.ruleText:(e.domainName&&(i+=`${e.domainName}`),e.args?i+=`#%#//scriptlet('${e.name}', '${e.args.join(\"', '\")}')`:i+=`#%#//scriptlet('${e.name}')`),n&&n(i)}catch(e){}\"function\"==typeof window.__debug&&window.__debug(e)}}(source)}).apply(this,updatedArgs),source.uniqueId&&Object.defineProperty(Window.prototype.toString,uniqueIdentifier,{value:\"done\",enumerable:!1,writable:!1,configurable:!1})}catch(e){console.log(e)}}"
        },
        {
            "names": [
                "googletagservices-gpt",
                "ubo-googletagservices_gpt.js",
                "googletagservices_gpt.js"
            ],
            "scriptlet": "function GoogleTagServicesGpt(source,args){const uniqueIdentifier=source.uniqueId+source.name+\"_\"+(Array.isArray(args)?args.join(\"_\"):\"\");if(source.uniqueId&&\"done\"===Window.prototype.toString[uniqueIdentifier])return;function noopFunc(){}function noopThis(){return this}function noopNull(){return null}function noopArray(){return[]}function noopStr(){return\"\"}function trueFunc(){return!0}const updatedArgs=args?[].concat(source).concat(args):[source];try{(function(source){var slots=new Map,slotsById=new Map,slotsPerPath=new Map,slotCreatives=new Map,eventCallbacks=new Map,gTargeting=new Map,addEventListener=function(name,listener){return eventCallbacks.has(name)||eventCallbacks.set(name,new Set),eventCallbacks.get(name).add(listener),this},removeEventListener=function(name,listener){return!!eventCallbacks.has(name)&&eventCallbacks.get(name).delete(listener)},fireSlotEvent=function(name,slot){return new Promise((function(resolve){requestAnimationFrame((function(){for(var size=[0,0],callbacksSet=eventCallbacks.get(name)||[],callbackArray=Array.from(callbacksSet),i=0;i<callbackArray.length;i+=1)callbackArray[i]({isEmpty:!0,size:size,slot:slot});resolve()}))}))},displaySlot=function(slot){if(slot){var id=slot.getSlotElementId();if(document.getElementById(id)){var parent=document.getElementById(id);parent&&parent.appendChild(document.createElement(\"div\")),function(slot){for(var node=document.getElementById(slot.getSlotElementId());null!=node&&node.lastChild;)node.lastChild.remove()}(slot),function(slot){var _document$getElementB,eid=`google_ads_iframe_${slot.getId()}`;null===(_document$getElementB=document.getElementById(eid))||void 0===_document$getElementB||_document$getElementB.remove();var node=document.getElementById(slot.getSlotElementId());if(node){var f=document.createElement(\"iframe\");f.id=eid,f.srcdoc=\"<body></body>\",f.style=\"position:absolute; width:0; height:0; left:0; right:0; z-index:-1; border:0\",f.setAttribute(\"width\",0),f.setAttribute(\"height\",0),f.setAttribute(\"data-load-complete\",!0),f.setAttribute(\"data-google-container-id\",!0),f.setAttribute(\"sandbox\",\"\"),node.appendChild(f)}}(slot),fireSlotEvent(\"slotRenderEnded\",slot),fireSlotEvent(\"slotRequested\",slot),fireSlotEvent(\"slotResponseReceived\",slot),fireSlotEvent(\"slotOnload\",slot),fireSlotEvent(\"impressionViewable\",slot)}}},companionAdsService={addEventListener:addEventListener,removeEventListener:removeEventListener,enableSyncLoading:noopFunc,setRefreshUnfilledSlots:noopFunc,getSlots:noopArray},contentService={addEventListener:addEventListener,removeEventListener:removeEventListener,setContent:noopFunc};function PassbackSlot(){}function SizeMappingBuilder(){}PassbackSlot.prototype.display=noopFunc,PassbackSlot.prototype.get=noopNull,PassbackSlot.prototype.set=noopThis,PassbackSlot.prototype.setClickUrl=noopThis,PassbackSlot.prototype.setTagForChildDirectedTreatment=noopThis,PassbackSlot.prototype.setTargeting=noopThis,PassbackSlot.prototype.updateTargetingFromMap=noopThis,SizeMappingBuilder.prototype.addSize=noopThis,SizeMappingBuilder.prototype.build=noopNull;var getTargetingValue=function(v){if(\"string\"==typeof v)return[v];try{return Array.prototype.flat.call(v)}catch(_unused){}return[]},defineSlot=function(adUnitPath,creatives,optDiv){var _document$getElementB2;if(slotsById.has(optDiv))return null===(_document$getElementB2=document.getElementById(optDiv))||void 0===_document$getElementB2||_document$getElementB2.remove(),slotsById.get(optDiv);var attributes=new Map,targeting=new Map,exclusions=new Set,response={advertiserId:void 0,campaignId:void 0,creativeId:void 0,creativeTemplateId:void 0,lineItemId:void 0},sizes=[{getHeight:function(){return 2},getWidth:function(){return 2}}],num=(slotsPerPath.get(adUnitPath)||0)+1;slotsPerPath.set(adUnitPath,num);var id=`${adUnitPath}_${num}`,clickUrl=\"\",collapseEmptyDiv=null,services=new Set,slot={addService:e=>(services.add(e),slot),clearCategoryExclusions:noopThis,clearTargeting(k){void 0===k?targeting.clear():targeting.delete(k)},defineSizeMapping(mapping){return slotCreatives.set(optDiv,mapping),this},get:function(k){return attributes.get(k)},getAdUnitPath:function(){return adUnitPath},getAttributeKeys:function(){return Array.from(attributes.keys())},getCategoryExclusions:function(){return Array.from(exclusions)},getClickUrl:function(){return clickUrl},getCollapseEmptyDiv:function(){return collapseEmptyDiv},getContentUrl:function(){return\"\"},getDivStartsCollapsed:function(){return null},getDomId:function(){return optDiv},getEscapedQemQueryId:function(){return\"\"},getFirstLook:function(){return 0},getId:function(){return id},getHtml:function(){return\"\"},getName:function(){return id},getOutOfPage:function(){return!1},getResponseInformation:function(){return response},getServices:function(){return Array.from(services)},getSizes:function(){return sizes},getSlotElementId:function(){return optDiv},getSlotId:function(){return slot},getTargeting:function(k){return targeting.get(k)||gTargeting.get(k)||[]},getTargetingKeys:function(){return Array.from(new Set(Array.of(...gTargeting.keys(),...targeting.keys())))},getTargetingMap:function(){return Object.assign(Object.fromEntries(gTargeting.entries()),Object.fromEntries(targeting.entries()))},set:(k,v)=>(attributes.set(k,v),slot),setCategoryExclusion:e=>(exclusions.add(e),slot),setClickUrl:u=>(clickUrl=u,slot),setCollapseEmptyDiv:v=>(collapseEmptyDiv=!!v,slot),setSafeFrameConfig:noopThis,setTagForChildDirectedTreatment:noopThis,setTargeting:(k,v)=>(targeting.set(k,getTargetingValue(v)),slot),toString:function(){return id},updateTargetingFromMap:map=>(function(targeting,map){if(\"object\"==typeof map)for(var key in map)Object.prototype.hasOwnProperty.call(map,key)&&targeting.set(key,getTargetingValue(map[key]))}(targeting,map),slot)};return slots.set(adUnitPath,slot),slotsById.set(optDiv,slot),slotCreatives.set(optDiv,creatives),slot},pubAdsService={addEventListener:addEventListener,removeEventListener:removeEventListener,clear:noopFunc,clearCategoryExclusions:noopThis,clearTagForChildDirectedTreatment:noopThis,clearTargeting(k){void 0===k?gTargeting.clear():gTargeting.delete(k)},collapseEmptyDivs:noopFunc,defineOutOfPagePassback:()=>new PassbackSlot,definePassback:()=>new PassbackSlot,disableInitialLoad:noopFunc,display:noopFunc,enableAsyncRendering:noopFunc,enableLazyLoad:noopFunc,enableSingleRequest:noopFunc,enableSyncRendering:noopFunc,enableVideoAds:noopFunc,get:noopNull,getAttributeKeys:noopArray,getTargeting:noopArray,getTargetingKeys:noopArray,getSlots:noopArray,isInitialLoadDisabled:trueFunc,refresh:noopFunc,set:noopThis,setCategoryExclusion:noopThis,setCentering:noopFunc,setCookieOptions:noopThis,setForceSafeFrame:noopThis,setLocation:noopThis,setPrivacySettings:noopThis,setPublisherProvidedId:noopThis,setRequestNonPersonalizedAds:noopThis,setSafeFrameConfig:noopThis,setTagForChildDirectedTreatment:noopThis,setTargeting:noopThis,setVideoContent:noopThis,updateCorrelator:noopFunc},{googletag:googletag={}}=window,{cmd:cmd=[]}=googletag;for(googletag.apiReady=!0,googletag.cmd=[],googletag.cmd.push=function(a){try{a()}catch(ex){}return 1},googletag.companionAds=function(){return companionAdsService},googletag.content=function(){return contentService},googletag.defineOutOfPageSlot=defineSlot,googletag.defineSlot=defineSlot,googletag.destroySlots=function(){slots.clear(),slotsById.clear()},googletag.disablePublisherConsole=noopFunc,googletag.display=function(arg){var id;id=null!=arg&&arg.getSlotElementId?arg.getSlotElementId():null!=arg&&arg.nodeType?arg.id:String(arg),displaySlot(slotsById.get(id))},googletag.enableServices=noopFunc,googletag.getVersion=noopStr,googletag.pubads=function(){return pubAdsService},googletag.pubadsReady=!0,googletag.setAdIframeTitle=noopFunc,googletag.sizeMapping=function(){return new SizeMappingBuilder},window.googletag=googletag;0!==cmd.length;)googletag.cmd.push(cmd.shift());!function(e){if(e.verbose){try{var n=console.trace.bind(console),i=\"[AdGuard] \";\"corelibs\"===e.engine?i+=e.ruleText:(e.domainName&&(i+=`${e.domainName}`),e.args?i+=`#%#//scriptlet('${e.name}', '${e.args.join(\"', '\")}')`:i+=`#%#//scriptlet('${e.name}')`),n&&n(i)}catch(e){}\"function\"==typeof window.__debug&&window.__debug(e)}}(source)}).apply(this,updatedArgs),source.uniqueId&&Object.defineProperty(Window.prototype.toString,uniqueIdentifier,{value:\"done\",enumerable:!1,writable:!1,configurable:!1})}catch(e){console.log(e)}}"
        },
        {
            "names": [
                "matomo"
            ],
            "scriptlet": "function Matomo(source,args){const uniqueIdentifier=source.uniqueId+source.name+\"_\"+(Array.isArray(args)?args.join(\"_\"):\"\");if(source.uniqueId&&\"done\"===Window.prototype.toString[uniqueIdentifier])return;function noopFunc(){}const updatedArgs=args?[].concat(source).concat(args):[source];try{(function(source){var Tracker=function(){};Tracker.prototype.setDoNotTrack=noopFunc,Tracker.prototype.setDomains=noopFunc,Tracker.prototype.setCustomDimension=noopFunc,Tracker.prototype.trackPageView=noopFunc;var AsyncTracker=function(){};AsyncTracker.prototype.addListener=noopFunc;var matomoWrapper={getTracker:Tracker,getAsyncTracker:AsyncTracker};window.Piwik=matomoWrapper,function(e){if(e.verbose){try{var n=console.trace.bind(console),i=\"[AdGuard] \";\"corelibs\"===e.engine?i+=e.ruleText:(e.domainName&&(i+=`${e.domainName}`),e.args?i+=`#%#//scriptlet('${e.name}', '${e.args.join(\"', '\")}')`:i+=`#%#//scriptlet('${e.name}')`),n&&n(i)}catch(e){}\"function\"==typeof window.__debug&&window.__debug(e)}}(source)}).apply(this,updatedArgs),source.uniqueId&&Object.defineProperty(Window.prototype.toString,uniqueIdentifier,{value:\"done\",enumerable:!1,writable:!1,configurable:!1})}catch(e){console.log(e)}}"
        },
        {
            "names": [
                "naver-wcslog"
            ],
            "scriptlet": "function NaverWcslog(source,args){const uniqueIdentifier=source.uniqueId+source.name+\"_\"+(Array.isArray(args)?args.join(\"_\"):\"\");if(source.uniqueId&&\"done\"===Window.prototype.toString[uniqueIdentifier])return;function noopFunc(){}const updatedArgs=args?[].concat(source).concat(args):[source];try{(function(source){window.wcs_add={},window.wcs_do=noopFunc,window.wcs={inflow:noopFunc},function(e){if(e.verbose){try{var n=console.trace.bind(console),i=\"[AdGuard] \";\"corelibs\"===e.engine?i+=e.ruleText:(e.domainName&&(i+=`${e.domainName}`),e.args?i+=`#%#//scriptlet('${e.name}', '${e.args.join(\"', '\")}')`:i+=`#%#//scriptlet('${e.name}')`),n&&n(i)}catch(e){}\"function\"==typeof window.__debug&&window.__debug(e)}}(source)}).apply(this,updatedArgs),source.uniqueId&&Object.defineProperty(Window.prototype.toString,uniqueIdentifier,{value:\"done\",enumerable:!1,writable:!1,configurable:!1})}catch(e){console.log(e)}}"
        },
        {
            "names": [
                "pardot-1.0"
            ],
            "scriptlet": "function Pardot(source,args){const uniqueIdentifier=source.uniqueId+source.name+\"_\"+(Array.isArray(args)?args.join(\"_\"):\"\");if(source.uniqueId&&\"done\"===Window.prototype.toString[uniqueIdentifier])return;function noopFunc(){}function noopStr(){return\"\"}function noopNull(){return null}const updatedArgs=args?[].concat(source).concat(args):[source];try{(function(source){function piTracker(){window.pi={tracker:{visitor_id:\"\",visitor_id_sign:\"\",pi_opt_in:\"\",campaign_id:\"\"}},window.piScriptNum+=1}window.piVersion=\"1.0.2\",window.piScriptNum=0,window.piScriptObj=[],window.checkNamespace=noopFunc,window.getPardotUrl=noopStr,window.piGetParameter=noopNull,window.piSetCookie=noopFunc,window.piGetCookie=noopStr,window.piResponse=noopFunc,window.piTracker=piTracker,piTracker(),function(e){if(e.verbose){try{var n=console.trace.bind(console),i=\"[AdGuard] \";\"corelibs\"===e.engine?i+=e.ruleText:(e.domainName&&(i+=`${e.domainName}`),e.args?i+=`#%#//scriptlet('${e.name}', '${e.args.join(\"', '\")}')`:i+=`#%#//scriptlet('${e.name}')`),n&&n(i)}catch(e){}\"function\"==typeof window.__debug&&window.__debug(e)}}(source)}).apply(this,updatedArgs),source.uniqueId&&Object.defineProperty(Window.prototype.toString,uniqueIdentifier,{value:\"done\",enumerable:!1,writable:!1,configurable:!1})}catch(e){console.log(e)}}"
        },
        {
            "names": [
                "prebid"
            ],
            "scriptlet": "function Prebid(source,args){const uniqueIdentifier=source.uniqueId+source.name+\"_\"+(Array.isArray(args)?args.join(\"_\"):\"\");if(source.uniqueId&&\"done\"===Window.prototype.toString[uniqueIdentifier])return;function noopStr(){return\"\"}function noopArray(){return[]}const updatedArgs=args?[].concat(source).concat(args):[source];try{(function(source){var pushFunction=function(arg){if(\"function\"==typeof arg)try{arg.call()}catch(ex){}},pbjsWrapper={addAdUnits(){},adServers:{dfp:{buildVideoUrl:noopStr}},adUnits:[],aliasBidder(){},cmd:[],enableAnalytics(){},getHighestCpmBids:noopArray,libLoaded:!0,que:[],requestBids(arg){if(arg instanceof Object&&arg.bidsBackHandler)try{arg.bidsBackHandler.call()}catch(ex){}},removeAdUnit(){},setBidderConfig(){},setConfig(){},setTargetingForGPTAsync(){}};pbjsWrapper.cmd.push=pushFunction,pbjsWrapper.que.push=pushFunction,window.pbjs=pbjsWrapper,function(e){if(e.verbose){try{var n=console.trace.bind(console),i=\"[AdGuard] \";\"corelibs\"===e.engine?i+=e.ruleText:(e.domainName&&(i+=`${e.domainName}`),e.args?i+=`#%#//scriptlet('${e.name}', '${e.args.join(\"', '\")}')`:i+=`#%#//scriptlet('${e.name}')`),n&&n(i)}catch(e){}\"function\"==typeof window.__debug&&window.__debug(e)}}(source)}).apply(this,updatedArgs),source.uniqueId&&Object.defineProperty(Window.prototype.toString,uniqueIdentifier,{value:\"done\",enumerable:!1,writable:!1,configurable:!1})}catch(e){console.log(e)}}"
        },
        {
            "names": [
                "scorecardresearch-beacon",
                "ubo-scorecardresearch_beacon.js",
                "scorecardresearch_beacon.js"
            ],
            "scriptlet": "function ScoreCardResearchBeacon(source,args){const uniqueIdentifier=source.uniqueId+source.name+\"_\"+(Array.isArray(args)?args.join(\"_\"):\"\");if(source.uniqueId&&\"done\"===Window.prototype.toString[uniqueIdentifier])return;const updatedArgs=args?[].concat(source).concat(args):[source];try{(function(source){window.COMSCORE={purge(){window._comscore=[]},beacon(){}},function(e){if(e.verbose){try{var n=console.trace.bind(console),i=\"[AdGuard] \";\"corelibs\"===e.engine?i+=e.ruleText:(e.domainName&&(i+=`${e.domainName}`),e.args?i+=`#%#//scriptlet('${e.name}', '${e.args.join(\"', '\")}')`:i+=`#%#//scriptlet('${e.name}')`),n&&n(i)}catch(e){}\"function\"==typeof window.__debug&&window.__debug(e)}}(source)}).apply(this,updatedArgs),source.uniqueId&&Object.defineProperty(Window.prototype.toString,uniqueIdentifier,{value:\"done\",enumerable:!1,writable:!1,configurable:!1})}catch(e){console.log(e)}}"
        },
        {
            "names": [
                "abort-current-inline-script",
                "abort-current-script.js",
                "ubo-abort-current-script.js",
                "acs.js",
                "ubo-acs.js",
                "ubo-abort-current-script",
                "ubo-acs",
                "abort-current-inline-script.js",
                "ubo-abort-current-inline-script.js",
                "acis.js",
                "ubo-acis.js",
                "ubo-abort-current-inline-script",
                "ubo-acis",
                "abp-abort-current-inline-script"
            ],
            "scriptlet": "function abortCurrentInlineScript(source,args){const uniqueIdentifier=source.uniqueId+source.name+\"_\"+(Array.isArray(args)?args.join(\"_\"):\"\");if(source.uniqueId&&\"done\"===Window.prototype.toString[uniqueIdentifier])return;function randomId(){return Math.random().toString(36).slice(2,9)}function getPropertyInChain(e,r){var n=r.indexOf(\".\");if(-1===n)return{base:e,prop:r};var i=r.slice(0,n);if(null===e)return{base:e,prop:i,chain:r};var t=e[i];return r=r.slice(n+1),(e instanceof Object||\"object\"==typeof e)&&function(t){return 0===Object.keys(t).length&&!t.prototype}(e)||null===t?{base:e,prop:i,chain:r}:void 0!==t?getPropertyInChain(t,r):(Object.defineProperty(e,i,{configurable:!0}),{base:e,prop:i,chain:r})}const updatedArgs=args?[].concat(source).concat(args):[source];try{(function(source,property,search){var r,n,searchRegexp=function(e){var r=e||\"\",t=\"/\";if(\"\"===r)return new RegExp(\".?\");var n,i,s=r.lastIndexOf(t),a=r.substring(s+1),g=r.substring(0,s+1),u=(i=a,(n=g).startsWith(t)&&n.endsWith(t)&&!n.endsWith(\"\\\\/\")&&function(e){if(!e)return!1;try{return new RegExp(\"\",e),!0}catch(e){return!1}}(i)?i:\"\");if(r.startsWith(t)&&r.endsWith(t)||u)return new RegExp((u?g:r).slice(1,-1),u);var c=r.replace(/\\\\'/g,\"'\").replace(/\\\\\"/g,'\"').replace(/[.*+?^${}()|[\\]\\\\]/g,\"\\\\$&\");return new RegExp(c)}(search),rid=randomId(),getCurrentScript=function(){if(\"currentScript\"in document)return document.currentScript;var scripts=document.getElementsByTagName(\"script\");return scripts[scripts.length-1]},ourScript=getCurrentScript(),abort=function(){var _scriptEl$src,scriptEl=getCurrentScript();if(scriptEl){var content=scriptEl.textContent;try{content=Object.getOwnPropertyDescriptor(Node.prototype,\"textContent\").get.call(scriptEl)}catch(e){}if(0===content.length&&void 0!==scriptEl.src&&null!==(_scriptEl$src=scriptEl.src)&&void 0!==_scriptEl$src&&_scriptEl$src.startsWith(\"data:text/javascript;base64,\")){var encodedContent=scriptEl.src.slice(28);content=window.atob(encodedContent)}if(scriptEl instanceof HTMLScriptElement&&content.length>0&&scriptEl!==ourScript&&searchRegexp.test(content))throw function(e){if(e.verbose){try{var n=console.trace.bind(console),i=\"[AdGuard] \";\"corelibs\"===e.engine?i+=e.ruleText:(e.domainName&&(i+=`${e.domainName}`),e.args?i+=`#%#//scriptlet('${e.name}', '${e.args.join(\"', '\")}')`:i+=`#%#//scriptlet('${e.name}')`),n&&n(i)}catch(e){}\"function\"==typeof window.__debug&&window.__debug(e)}}(source),new ReferenceError(rid)}},_setChainPropAccess=function(owner,property){var chainInfo=getPropertyInChain(owner,property),{base:base,prop:prop,chain:chain}=chainInfo;if(base instanceof Object!=0||null!==base)if(chain)!function(t,n,e,c){var i;try{i=t[n]}catch(t){i=void 0}Object.defineProperty(t,n,{get:function(){return i},set:function(t){i=t,t instanceof Object&&c(t,e)}})}(owner,prop,chain,_setChainPropAccess);else{var currentValue=base[prop],origDescriptor=Object.getOwnPropertyDescriptor(base,prop);origDescriptor instanceof Object!=0&&origDescriptor.get instanceof Function!=0||(currentValue=base[prop],origDescriptor=void 0);var e,r,t,c,descriptorWrapper=Object.assign({isAbortingSuspended:!1,isolateCallback(r){this.isAbortingSuspended=!0;try{for(var e=arguments.length,n=new Array(e>1?e-1:0),t=1;t<e;t++)n[t-1]=arguments[t];var i=r(...n);return this.isAbortingSuspended=!1,i}catch(r){var s=randomId();throw this.isAbortingSuspended=!1,new ReferenceError(s)}}},{currentValue:currentValue,get(){return this.isAbortingSuspended||this.isolateCallback(abort),origDescriptor instanceof Object?origDescriptor.get.call(base):this.currentValue},set(newValue){this.isAbortingSuspended||this.isolateCallback(abort),origDescriptor instanceof Object?origDescriptor.set.call(base,newValue):this.currentValue=newValue}});e=base,r=prop,t={get:()=>descriptorWrapper.get.call(descriptorWrapper),set(newValue){descriptorWrapper.set.call(descriptorWrapper,newValue)}},(c=Object.getOwnPropertyDescriptor(e,r))&&!c.configurable||Object.defineProperty(e,r,t)}else{var props=property.split(\".\"),propIndex=props.indexOf(prop),baseName=props[propIndex-1];!function(e,o){var r=arguments.length>2&&void 0!==arguments[2]&&arguments[2],a=!(arguments.length>3&&void 0!==arguments[3])||arguments[3],{name:n,verbose:g}=e;if(r||g){var i=console.log;a?i(`${n}: ${o}`):Array.isArray(o)?i(`${n}:`,...o):i(`${n}:`,o)}}(source,`The scriptlet had been executed before the ${baseName} was loaded.`)}};_setChainPropAccess(window,property),window.onerror=(r=rid,n=window.onerror,function(e){if(\"string\"==typeof e&&e.includes(r))return!0;if(n instanceof Function){for(var t=arguments.length,o=new Array(t>1?t-1:0),i=1;i<t;i++)o[i-1]=arguments[i];return n.apply(window,[e,...o])}return!1}).bind()}).apply(this,updatedArgs),source.uniqueId&&Object.defineProperty(Window.prototype.toString,uniqueIdentifier,{value:\"done\",enumerable:!1,writable:!1,configurable:!1})}catch(e){console.log(e)}}"
        },
        {
            "names": [
                "abort-on-property-read",
                "abort-on-property-read.js",
                "ubo-abort-on-property-read.js",
                "aopr.js",
                "ubo-aopr.js",
                "ubo-abort-on-property-read",
                "ubo-aopr",
                "abp-abort-on-property-read"
            ],
            "scriptlet": "function abortOnPropertyRead(source,args){const uniqueIdentifier=source.uniqueId+source.name+\"_\"+(Array.isArray(args)?args.join(\"_\"):\"\");if(source.uniqueId&&\"done\"===Window.prototype.toString[uniqueIdentifier])return;function getPropertyInChain(e,r){var n=r.indexOf(\".\");if(-1===n)return{base:e,prop:r};var i=r.slice(0,n);if(null===e)return{base:e,prop:i,chain:r};var t=e[i];return r=r.slice(n+1),(e instanceof Object||\"object\"==typeof e)&&function(t){return 0===Object.keys(t).length&&!t.prototype}(e)||null===t?{base:e,prop:i,chain:r}:void 0!==t?getPropertyInChain(t,r):(Object.defineProperty(e,i,{configurable:!0}),{base:e,prop:i,chain:r})}const updatedArgs=args?[].concat(source).concat(args):[source];try{(function(source,property){if(property){var r,n,rid=Math.random().toString(36).slice(2,9),abort=function(){throw function(e){if(e.verbose){try{var n=console.trace.bind(console),i=\"[AdGuard] \";\"corelibs\"===e.engine?i+=e.ruleText:(e.domainName&&(i+=`${e.domainName}`),e.args?i+=`#%#//scriptlet('${e.name}', '${e.args.join(\"', '\")}')`:i+=`#%#//scriptlet('${e.name}')`),n&&n(i)}catch(e){}\"function\"==typeof window.__debug&&window.__debug(e)}}(source),new ReferenceError(rid)},_setChainPropAccess=function(owner,property){var e,r,t,c,chainInfo=getPropertyInChain(owner,property),{base:base,prop:prop,chain:chain}=chainInfo;chain?function(t,n,e,c){var i;try{i=t[n]}catch(t){i=void 0}Object.defineProperty(t,n,{get:function(){return i},set:function(t){i=t,t instanceof Object&&c(t,e)}})}(owner,prop,chain,_setChainPropAccess):(e=base,r=prop,t={get:abort,set:function(){}},(c=Object.getOwnPropertyDescriptor(e,r))&&!c.configurable||Object.defineProperty(e,r,t))};_setChainPropAccess(window,property),window.onerror=(r=rid,n=window.onerror,function(e){if(\"string\"==typeof e&&e.includes(r))return!0;if(n instanceof Function){for(var t=arguments.length,o=new Array(t>1?t-1:0),i=1;i<t;i++)o[i-1]=arguments[i];return n.apply(window,[e,...o])}return!1}).bind()}}).apply(this,updatedArgs),source.uniqueId&&Object.defineProperty(Window.prototype.toString,uniqueIdentifier,{value:\"done\",enumerable:!1,writable:!1,configurable:!1})}catch(e){console.log(e)}}"
        },
        {
            "names": [
                "abort-on-property-write",
                "abort-on-property-write.js",
                "ubo-abort-on-property-write.js",
                "aopw.js",
                "ubo-aopw.js",
                "ubo-abort-on-property-write",
                "ubo-aopw",
                "abp-abort-on-property-write"
            ],
            "scriptlet": "function abortOnPropertyWrite(source,args){const uniqueIdentifier=source.uniqueId+source.name+\"_\"+(Array.isArray(args)?args.join(\"_\"):\"\");if(source.uniqueId&&\"done\"===Window.prototype.toString[uniqueIdentifier])return;function getPropertyInChain(e,r){var n=r.indexOf(\".\");if(-1===n)return{base:e,prop:r};var i=r.slice(0,n);if(null===e)return{base:e,prop:i,chain:r};var t=e[i];return r=r.slice(n+1),(e instanceof Object||\"object\"==typeof e)&&function(t){return 0===Object.keys(t).length&&!t.prototype}(e)||null===t?{base:e,prop:i,chain:r}:void 0!==t?getPropertyInChain(t,r):(Object.defineProperty(e,i,{configurable:!0}),{base:e,prop:i,chain:r})}const updatedArgs=args?[].concat(source).concat(args):[source];try{(function(source,property){if(property){var r,n,rid=Math.random().toString(36).slice(2,9),abort=function(){throw function(e){if(e.verbose){try{var n=console.trace.bind(console),i=\"[AdGuard] \";\"corelibs\"===e.engine?i+=e.ruleText:(e.domainName&&(i+=`${e.domainName}`),e.args?i+=`#%#//scriptlet('${e.name}', '${e.args.join(\"', '\")}')`:i+=`#%#//scriptlet('${e.name}')`),n&&n(i)}catch(e){}\"function\"==typeof window.__debug&&window.__debug(e)}}(source),new ReferenceError(rid)},_setChainPropAccess=function(owner,property){var e,r,t,c,chainInfo=getPropertyInChain(owner,property),{base:base,prop:prop,chain:chain}=chainInfo;chain?function(t,n,e,c){var i;try{i=t[n]}catch(t){i=void 0}Object.defineProperty(t,n,{get:function(){return i},set:function(t){i=t,t instanceof Object&&c(t,e)}})}(owner,prop,chain,_setChainPropAccess):(e=base,r=prop,t={set:abort},(c=Object.getOwnPropertyDescriptor(e,r))&&!c.configurable||Object.defineProperty(e,r,t))};_setChainPropAccess(window,property),window.onerror=(r=rid,n=window.onerror,function(e){if(\"string\"==typeof e&&e.includes(r))return!0;if(n instanceof Function){for(var t=arguments.length,o=new Array(t>1?t-1:0),i=1;i<t;i++)o[i-1]=arguments[i];return n.apply(window,[e,...o])}return!1}).bind()}}).apply(this,updatedArgs),source.uniqueId&&Object.defineProperty(Window.prototype.toString,uniqueIdentifier,{value:\"done\",enumerable:!1,writable:!1,configurable:!1})}catch(e){console.log(e)}}"
        },
        {
            "names": [
                "abort-on-stack-trace",
                "abort-on-stack-trace.js",
                "ubo-abort-on-stack-trace.js",
                "aost.js",
                "ubo-aost.js",
                "ubo-abort-on-stack-trace",
                "ubo-aost",
                "abp-abort-on-stack-trace"
            ],
            "scriptlet": "function abortOnStackTrace(source,args){const uniqueIdentifier=source.uniqueId+source.name+\"_\"+(Array.isArray(args)?args.join(\"_\"):\"\");if(source.uniqueId&&\"done\"===Window.prototype.toString[uniqueIdentifier])return;function randomId(){return Math.random().toString(36).slice(2,9)}function getPropertyInChain(e,r){var n=r.indexOf(\".\");if(-1===n)return{base:e,prop:r};var i=r.slice(0,n);if(null===e)return{base:e,prop:i,chain:r};var t=e[i];return r=r.slice(n+1),(e instanceof Object||\"object\"==typeof e)&&function(t){return 0===Object.keys(t).length&&!t.prototype}(e)||null===t?{base:e,prop:i,chain:r}:void 0!==t?getPropertyInChain(t,r):(Object.defineProperty(e,i,{configurable:!0}),{base:e,prop:i,chain:r})}function matchStackTrace(e,t){if(!e||\"\"===e)return!0;var r=function(){try{for(var r=[],e=1;e<10;e+=1){var a=`$${e}`;if(!RegExp[a])break;r.push(RegExp[a])}return r}catch(r){return[]}}();if(function(t,i){var r=\"inlineScript\",n=\"injectedScript\",isInlineScript=function(t){return t.includes(r)},isInjectedScript=function(t){return t.includes(n)};if(!isInlineScript(t)&&!isInjectedScript(t))return!1;var e=window.location.href,s=e.indexOf(\"#\");-1!==s&&(e=e.slice(0,s));var c=i.split(\"\\n\").slice(2).map((function(t){return t.trim()})).map((function(t){var i,s=/(.*?@)?(\\S+)(:\\d+)(:\\d+)\\)?$/.exec(t);if(s){var c,l,a=s[2],u=s[3],o=s[4];if(null!==(c=a)&&void 0!==c&&c.startsWith(\"(\")&&(a=a.slice(1)),null!==(l=a)&&void 0!==l&&l.startsWith(\"<anonymous>\")){var d;a=n;var f=void 0!==s[1]?s[1].slice(0,-1):t.slice(0,s.index).trim();null!==(d=f)&&void 0!==d&&d.startsWith(\"at\")&&(f=f.slice(2).trim()),i=`${f} ${a}${u}${o}`.trim()}else i=a===e?`${r}${u}${o}`.trim():`${a}${u}${o}`.trim()}else i=t;return i}));if(c)for(var l=0;l<c.length;l+=1){if(isInlineScript(t)&&c[l].startsWith(r)&&c[l].match(toRegExp(t)))return!0;if(isInjectedScript(t)&&c[l].startsWith(n)&&c[l].match(toRegExp(t)))return!0}return!1}(e,t))return r.length&&r[0]!==RegExp.$1&&restoreRegExpValues(r),!0;var n=toRegExp(e),a=t.split(\"\\n\").slice(2).map((function(e){return e.trim()})).join(\"\\n\");return r.length&&r[0]!==RegExp.$1&&restoreRegExpValues(r),function(){var t=Object.getOwnPropertyDescriptor(RegExp.prototype,\"test\"),e=null==t?void 0:t.value;if(t&&\"function\"==typeof t.value)return e;throw new Error(\"RegExp.prototype.test is not a function\")}().call(n,a)}function toRegExp(e){var r=e||\"\",t=\"/\";if(\"\"===r)return new RegExp(\".?\");var n,i,s=r.lastIndexOf(t),a=r.substring(s+1),g=r.substring(0,s+1),u=(i=a,(n=g).startsWith(t)&&n.endsWith(t)&&!n.endsWith(\"\\\\/\")&&function(e){if(!e)return!1;try{return new RegExp(\"\",e),!0}catch(e){return!1}}(i)?i:\"\");if(r.startsWith(t)&&r.endsWith(t)||u)return new RegExp((u?g:r).slice(1,-1),u);var c=r.replace(/\\\\'/g,\"'\").replace(/\\\\\"/g,'\"').replace(/[.*+?^${}()|[\\]\\\\]/g,\"\\\\$&\");return new RegExp(c)}function restoreRegExpValues(e){if(e.length)try{var r;r=1===e.length?`(${e[0]})`:e.reduce((function(e,r,t){return 1===t?`(${e}),(${r})`:`${e},(${r})`}));var t=new RegExp(r);e.toString().replace(t,\"\")}catch(e){var n=`Failed to restore RegExp values: ${e}`;console.log(n)}}const updatedArgs=args?[].concat(source).concat(args):[source];try{(function(source,property,stack){if(property&&stack){var r,n,rid=randomId(),abort=function(){throw function(e){if(e.verbose){try{var n=console.trace.bind(console),i=\"[AdGuard] \";\"corelibs\"===e.engine?i+=e.ruleText:(e.domainName&&(i+=`${e.domainName}`),e.args?i+=`#%#//scriptlet('${e.name}', '${e.args.join(\"', '\")}')`:i+=`#%#//scriptlet('${e.name}')`),n&&n(i)}catch(e){}\"function\"==typeof window.__debug&&window.__debug(e)}}(source),new ReferenceError(rid)},_setChainPropAccess=function(owner,property){var chainInfo=getPropertyInChain(owner,property),{base:base,prop:prop,chain:chain}=chainInfo;if(chain)!function(t,n,e,c){var i;try{i=t[n]}catch(t){i=void 0}Object.defineProperty(t,n,{get:function(){return i},set:function(t){i=t,t instanceof Object&&c(t,e)}})}(owner,prop,chain,_setChainPropAccess);else if(stack.match(/^(inlineScript|injectedScript)$/)||function(e){var t,n=function(e){return e.replace(/[.*+?^${}()|[\\]\\\\]/g,\"\\\\$&\")}(e);\"/\"===e[0]&&\"/\"===e[e.length-1]&&(n=e.slice(1,-1));try{t=new RegExp(n),t=!0}catch(e){t=!1}return t}(stack)){var e,r,t,c,descriptorWrapper=Object.assign({isAbortingSuspended:!1,isolateCallback(r){this.isAbortingSuspended=!0;try{for(var e=arguments.length,n=new Array(e>1?e-1:0),t=1;t<e;t++)n[t-1]=arguments[t];var i=r(...n);return this.isAbortingSuspended=!1,i}catch(r){var s=randomId();throw this.isAbortingSuspended=!1,new ReferenceError(s)}}},{value:base[prop],get(){return!this.isAbortingSuspended&&this.isolateCallback(matchStackTrace,stack,(new Error).stack)&&abort(),this.value},set(newValue){!this.isAbortingSuspended&&this.isolateCallback(matchStackTrace,stack,(new Error).stack)&&abort(),this.value=newValue}});e=base,r=prop,t={get:()=>descriptorWrapper.get.call(descriptorWrapper),set(newValue){descriptorWrapper.set.call(descriptorWrapper,newValue)}},(c=Object.getOwnPropertyDescriptor(e,r))&&!c.configurable||Object.defineProperty(e,r,t)}else!function(e,o){var r=arguments.length>2&&void 0!==arguments[2]&&arguments[2],a=!(arguments.length>3&&void 0!==arguments[3])||arguments[3],{name:n,verbose:g}=e;if(r||g){var i=console.log;a?i(`${n}: ${o}`):Array.isArray(o)?i(`${n}:`,...o):i(`${n}:`,o)}}(source,`Invalid parameter: ${stack}`)};_setChainPropAccess(window,property),window.onerror=(r=rid,n=window.onerror,function(e){if(\"string\"==typeof e&&e.includes(r))return!0;if(n instanceof Function){for(var t=arguments.length,o=new Array(t>1?t-1:0),i=1;i<t;i++)o[i-1]=arguments[i];return n.apply(window,[e,...o])}return!1}).bind()}}).apply(this,updatedArgs),source.uniqueId&&Object.defineProperty(Window.prototype.toString,uniqueIdentifier,{value:\"done\",enumerable:!1,writable:!1,configurable:!1})}catch(e){console.log(e)}}"
        },
        {
            "names": [
                "adjust-setInterval",
                "nano-setInterval-booster.js",
                "ubo-nano-setInterval-booster.js",
                "nano-sib.js",
                "ubo-nano-sib.js",
                "adjust-setInterval.js",
                "ubo-adjust-setInterval.js",
                "ubo-nano-setInterval-booster",
                "ubo-nano-sib",
                "ubo-adjust-setInterval"
            ],
            "scriptlet": "function adjustSetInterval(source,args){const uniqueIdentifier=source.uniqueId+source.name+\"_\"+(Array.isArray(args)?args.join(\"_\"):\"\");if(source.uniqueId&&\"done\"===Window.prototype.toString[uniqueIdentifier])return;function nativeIsNaN(N){return(Number.isNaN||window.isNaN)(N)}const updatedArgs=args?[].concat(source).concat(args):[source];try{(function(source,matchCallback,matchDelay,boost){var nativeSetInterval=window.setInterval,matchRegexp=function(e){var r=e||\"\",t=\"/\";if(\"\"===r)return new RegExp(\".?\");var n,i,s=r.lastIndexOf(t),a=r.substring(s+1),g=r.substring(0,s+1),u=(i=a,(n=g).startsWith(t)&&n.endsWith(t)&&!n.endsWith(\"\\\\/\")&&function(e){if(!e)return!1;try{return new RegExp(\"\",e),!0}catch(e){return!1}}(i)?i:\"\");if(r.startsWith(t)&&r.endsWith(t)||u)return new RegExp((u?g:r).slice(1,-1),u);var c=r.replace(/\\\\'/g,\"'\").replace(/\\\\\"/g,'\"').replace(/[.*+?^${}()|[\\]\\\\]/g,\"\\\\$&\");return new RegExp(c)}(matchCallback);window.setInterval=function(callback,delay){if((n=callback)instanceof Function||\"string\"==typeof n)matchRegexp.test(callback.toString())&&(e=delay,function(n){return\"*\"===n}(a=matchDelay)||e===function(a){var e=parseInt(a,10);return nativeIsNaN(e)?1e3:e}(a))&&(delay*=function(t){var e=parseFloat(t),i=nativeIsNaN(e)||!function(i){return(Number.isFinite||window.isFinite)(i)}(e)?.05:e;return i<.001&&(i=.001),i>50&&(i=50),i}(boost),function(e){if(e.verbose){try{var n=console.trace.bind(console),i=\"[AdGuard] \";\"corelibs\"===e.engine?i+=e.ruleText:(e.domainName&&(i+=`${e.domainName}`),e.args?i+=`#%#//scriptlet('${e.name}', '${e.args.join(\"', '\")}')`:i+=`#%#//scriptlet('${e.name}')`),n&&n(i)}catch(e){}\"function\"==typeof window.__debug&&window.__debug(e)}}(source));else{var message=`Scriptlet can't be applied because of invalid callback: '${String(callback)}'`;!function(e,o){var r=arguments.length>2&&void 0!==arguments[2]&&arguments[2],a=!(arguments.length>3&&void 0!==arguments[3])||arguments[3],{name:n,verbose:g}=e;if(r||g){var i=console.log;a?i(`${n}: ${o}`):Array.isArray(o)?i(`${n}:`,...o):i(`${n}:`,o)}}(source,message)}for(var a,e,n,_len=arguments.length,args=new Array(_len>2?_len-2:0),_key=2;_key<_len;_key++)args[_key-2]=arguments[_key];return nativeSetInterval.apply(window,[callback,delay,...args])}}).apply(this,updatedArgs),source.uniqueId&&Object.defineProperty(Window.prototype.toString,uniqueIdentifier,{value:\"done\",enumerable:!1,writable:!1,configurable:!1})}catch(e){console.log(e)}}"
        },
        {
            "names": [
                "adjust-setTimeout",
                "adjust-setTimeout.js",
                "ubo-adjust-setTimeout.js",
                "nano-setTimeout-booster.js",
                "ubo-nano-setTimeout-booster.js",
                "nano-stb.js",
                "ubo-nano-stb.js",
                "ubo-adjust-setTimeout",
                "ubo-nano-setTimeout-booster",
                "ubo-nano-stb"
            ],
            "scriptlet": "function adjustSetTimeout(source,args){const uniqueIdentifier=source.uniqueId+source.name+\"_\"+(Array.isArray(args)?args.join(\"_\"):\"\");if(source.uniqueId&&\"done\"===Window.prototype.toString[uniqueIdentifier])return;function nativeIsNaN(N){return(Number.isNaN||window.isNaN)(N)}const updatedArgs=args?[].concat(source).concat(args):[source];try{(function(source,matchCallback,matchDelay,boost){var nativeSetTimeout=window.setTimeout,matchRegexp=function(e){var r=e||\"\",t=\"/\";if(\"\"===r)return new RegExp(\".?\");var n,i,s=r.lastIndexOf(t),a=r.substring(s+1),g=r.substring(0,s+1),u=(i=a,(n=g).startsWith(t)&&n.endsWith(t)&&!n.endsWith(\"\\\\/\")&&function(e){if(!e)return!1;try{return new RegExp(\"\",e),!0}catch(e){return!1}}(i)?i:\"\");if(r.startsWith(t)&&r.endsWith(t)||u)return new RegExp((u?g:r).slice(1,-1),u);var c=r.replace(/\\\\'/g,\"'\").replace(/\\\\\"/g,'\"').replace(/[.*+?^${}()|[\\]\\\\]/g,\"\\\\$&\");return new RegExp(c)}(matchCallback);window.setTimeout=function(callback,delay){if((n=callback)instanceof Function||\"string\"==typeof n)matchRegexp.test(callback.toString())&&(e=delay,function(n){return\"*\"===n}(a=matchDelay)||e===function(a){var e=parseInt(a,10);return nativeIsNaN(e)?1e3:e}(a))&&(delay*=function(t){var e=parseFloat(t),i=nativeIsNaN(e)||!function(i){return(Number.isFinite||window.isFinite)(i)}(e)?.05:e;return i<.001&&(i=.001),i>50&&(i=50),i}(boost),function(e){if(e.verbose){try{var n=console.trace.bind(console),i=\"[AdGuard] \";\"corelibs\"===e.engine?i+=e.ruleText:(e.domainName&&(i+=`${e.domainName}`),e.args?i+=`#%#//scriptlet('${e.name}', '${e.args.join(\"', '\")}')`:i+=`#%#//scriptlet('${e.name}')`),n&&n(i)}catch(e){}\"function\"==typeof window.__debug&&window.__debug(e)}}(source));else{var message=`Scriptlet can't be applied because of invalid callback: '${String(callback)}'`;!function(e,o){var r=arguments.length>2&&void 0!==arguments[2]&&arguments[2],a=!(arguments.length>3&&void 0!==arguments[3])||arguments[3],{name:n,verbose:g}=e;if(r||g){var i=console.log;a?i(`${n}: ${o}`):Array.isArray(o)?i(`${n}:`,...o):i(`${n}:`,o)}}(source,message)}for(var a,e,n,_len=arguments.length,args=new Array(_len>2?_len-2:0),_key=2;_key<_len;_key++)args[_key-2]=arguments[_key];return nativeSetTimeout.apply(window,[callback,delay,...args])}}).apply(this,updatedArgs),source.uniqueId&&Object.defineProperty(Window.prototype.toString,uniqueIdentifier,{value:\"done\",enumerable:!1,writable:!1,configurable:!1})}catch(e){console.log(e)}}"
        },
        {
            "names": [
                "call-nothrow",
                "call-nothrow.js",
                "ubo-call-nothrow.js",
                "ubo-call-nothrow"
            ],
            "scriptlet": "function callNoThrow(source,args){const uniqueIdentifier=source.uniqueId+source.name+\"_\"+(Array.isArray(args)?args.join(\"_\"):\"\");if(source.uniqueId&&\"done\"===Window.prototype.toString[uniqueIdentifier])return;function getPropertyInChain(e,r){var n=r.indexOf(\".\");if(-1===n)return{base:e,prop:r};var i=r.slice(0,n);if(null===e)return{base:e,prop:i,chain:r};var t=e[i];return r=r.slice(n+1),(e instanceof Object||\"object\"==typeof e)&&function(t){return 0===Object.keys(t).length&&!t.prototype}(e)||null===t?{base:e,prop:i,chain:r}:void 0!==t?getPropertyInChain(t,r):(Object.defineProperty(e,i,{configurable:!0}),{base:e,prop:i,chain:r})}function logMessage(e,o){var r=arguments.length>2&&void 0!==arguments[2]&&arguments[2],a=!(arguments.length>3&&void 0!==arguments[3])||arguments[3],{name:n,verbose:g}=e;if(r||g){var i=console.log;a?i(`${n}: ${o}`):Array.isArray(o)?i(`${n}:`,...o):i(`${n}:`,o)}}const updatedArgs=args?[].concat(source).concat(args):[source];try{(function(source,functionName){if(functionName){var{base:base,prop:prop}=getPropertyInChain(window,functionName);if(base&&prop&&\"function\"==typeof base[prop]){var objectHandler={apply:function(){var result;try{result=Reflect.apply(...arguments)}catch(e){var _message=`Error calling ${functionName}: ${e.message}`;logMessage(source,_message)}return function(e){if(e.verbose){try{var n=console.trace.bind(console),i=\"[AdGuard] \";\"corelibs\"===e.engine?i+=e.ruleText:(e.domainName&&(i+=`${e.domainName}`),e.args?i+=`#%#//scriptlet('${e.name}', '${e.args.join(\"', '\")}')`:i+=`#%#//scriptlet('${e.name}')`),n&&n(i)}catch(e){}\"function\"==typeof window.__debug&&window.__debug(e)}}(source),result}};base[prop]=new Proxy(base[prop],objectHandler)}else logMessage(source,`${functionName} is not a function`)}}).apply(this,updatedArgs),source.uniqueId&&Object.defineProperty(Window.prototype.toString,uniqueIdentifier,{value:\"done\",enumerable:!1,writable:!1,configurable:!1})}catch(e){console.log(e)}}"
        },
        {
            "names": [
                "debug-current-inline-script"
            ],
            "scriptlet": "function debugCurrentInlineScript(source,args){const uniqueIdentifier=source.uniqueId+source.name+\"_\"+(Array.isArray(args)?args.join(\"_\"):\"\");if(source.uniqueId&&\"done\"===Window.prototype.toString[uniqueIdentifier])return;function getPropertyInChain(e,r){var n=r.indexOf(\".\");if(-1===n)return{base:e,prop:r};var i=r.slice(0,n);if(null===e)return{base:e,prop:i,chain:r};var t=e[i];return r=r.slice(n+1),(e instanceof Object||\"object\"==typeof e)&&function(t){return 0===Object.keys(t).length&&!t.prototype}(e)||null===t?{base:e,prop:i,chain:r}:void 0!==t?getPropertyInChain(t,r):(Object.defineProperty(e,i,{configurable:!0}),{base:e,prop:i,chain:r})}const updatedArgs=args?[].concat(source).concat(args):[source];try{(function(source,property,search){var r,n,searchRegexp=function(e){var r=e||\"\",t=\"/\";if(\"\"===r)return new RegExp(\".?\");var n,i,s=r.lastIndexOf(t),a=r.substring(s+1),g=r.substring(0,s+1),u=(i=a,(n=g).startsWith(t)&&n.endsWith(t)&&!n.endsWith(\"\\\\/\")&&function(e){if(!e)return!1;try{return new RegExp(\"\",e),!0}catch(e){return!1}}(i)?i:\"\");if(r.startsWith(t)&&r.endsWith(t)||u)return new RegExp((u?g:r).slice(1,-1),u);var c=r.replace(/\\\\'/g,\"'\").replace(/\\\\\"/g,'\"').replace(/[.*+?^${}()|[\\]\\\\]/g,\"\\\\$&\");return new RegExp(c)}(search),rid=Math.random().toString(36).slice(2,9),getCurrentScript=function(){if(\"currentScript\"in document)return document.currentScript;var scripts=document.getElementsByTagName(\"script\");return scripts[scripts.length-1]},ourScript=getCurrentScript(),abort=function(){var scriptEl=getCurrentScript();if(scriptEl){var content=scriptEl.textContent;try{content=Object.getOwnPropertyDescriptor(Node.prototype,\"textContent\").get.call(scriptEl)}catch(e){}if(scriptEl instanceof HTMLScriptElement&&content.length>0&&scriptEl!==ourScript&&searchRegexp.test(content)){!function(e){if(e.verbose){try{var n=console.trace.bind(console),i=\"[AdGuard] \";\"corelibs\"===e.engine?i+=e.ruleText:(e.domainName&&(i+=`${e.domainName}`),e.args?i+=`#%#//scriptlet('${e.name}', '${e.args.join(\"', '\")}')`:i+=`#%#//scriptlet('${e.name}')`),n&&n(i)}catch(e){}\"function\"==typeof window.__debug&&window.__debug(e)}}(source);debugger}}},_setChainPropAccess=function(owner,property){var chainInfo=getPropertyInChain(owner,property),{base:base,prop:prop,chain:chain}=chainInfo;if(base instanceof Object!=0||null!==base)if(chain)!function(t,n,e,c){var i;try{i=t[n]}catch(t){i=void 0}Object.defineProperty(t,n,{get:function(){return i},set:function(t){i=t,t instanceof Object&&c(t,e)}})}(owner,prop,chain,_setChainPropAccess);else{var e,r,t,c,currentValue=base[prop];e=base,r=prop,t={set:function(value){abort(),currentValue=value},get:function(){return abort(),currentValue}},(c=Object.getOwnPropertyDescriptor(e,r))&&!c.configurable||Object.defineProperty(e,r,t)}else{var props=property.split(\".\"),propIndex=props.indexOf(prop);!function(e,o){var r=arguments.length>2&&void 0!==arguments[2]&&arguments[2],a=!(arguments.length>3&&void 0!==arguments[3])||arguments[3],{name:n,verbose:g}=e;if(r||g){var i=console.log;a?i(`${n}: ${o}`):Array.isArray(o)?i(`${n}:`,...o):i(`${n}:`,o)}}(`The scriptlet had been executed before the ${props[propIndex-1]} was loaded.`,source.verbose)}};_setChainPropAccess(window,property),window.onerror=(r=rid,n=window.onerror,function(e){if(\"string\"==typeof e&&e.includes(r))return!0;if(n instanceof Function){for(var t=arguments.length,o=new Array(t>1?t-1:0),i=1;i<t;i++)o[i-1]=arguments[i];return n.apply(window,[e,...o])}return!1}).bind()}).apply(this,updatedArgs),source.uniqueId&&Object.defineProperty(Window.prototype.toString,uniqueIdentifier,{value:\"done\",enumerable:!1,writable:!1,configurable:!1})}catch(e){console.log(e)}}"
        },
        {
            "names": [
                "debug-on-property-read"
            ],
            "scriptlet": "function debugOnPropertyRead(source,args){const uniqueIdentifier=source.uniqueId+source.name+\"_\"+(Array.isArray(args)?args.join(\"_\"):\"\");if(source.uniqueId&&\"done\"===Window.prototype.toString[uniqueIdentifier])return;function getPropertyInChain(e,r){var n=r.indexOf(\".\");if(-1===n)return{base:e,prop:r};var i=r.slice(0,n);if(null===e)return{base:e,prop:i,chain:r};var t=e[i];return r=r.slice(n+1),(e instanceof Object||\"object\"==typeof e)&&function(t){return 0===Object.keys(t).length&&!t.prototype}(e)||null===t?{base:e,prop:i,chain:r}:void 0!==t?getPropertyInChain(t,r):(Object.defineProperty(e,i,{configurable:!0}),{base:e,prop:i,chain:r})}function noopFunc(){}const updatedArgs=args?[].concat(source).concat(args):[source];try{(function(source,property){if(property){var r,n,rid=Math.random().toString(36).slice(2,9),abort=function(){!function(e){if(e.verbose){try{var n=console.trace.bind(console),i=\"[AdGuard] \";\"corelibs\"===e.engine?i+=e.ruleText:(e.domainName&&(i+=`${e.domainName}`),e.args?i+=`#%#//scriptlet('${e.name}', '${e.args.join(\"', '\")}')`:i+=`#%#//scriptlet('${e.name}')`),n&&n(i)}catch(e){}\"function\"==typeof window.__debug&&window.__debug(e)}}(source);debugger},_setChainPropAccess=function(owner,property){var e,r,t,c,chainInfo=getPropertyInChain(owner,property),{base:base,prop:prop,chain:chain}=chainInfo;chain?function(t,n,e,c){var i;try{i=t[n]}catch(t){i=void 0}Object.defineProperty(t,n,{get:function(){return i},set:function(t){i=t,t instanceof Object&&c(t,e)}})}(owner,prop,chain,_setChainPropAccess):(e=base,r=prop,t={get:abort,set:noopFunc},(c=Object.getOwnPropertyDescriptor(e,r))&&!c.configurable||Object.defineProperty(e,r,t))};_setChainPropAccess(window,property),window.onerror=(r=rid,n=window.onerror,function(e){if(\"string\"==typeof e&&e.includes(r))return!0;if(n instanceof Function){for(var t=arguments.length,o=new Array(t>1?t-1:0),i=1;i<t;i++)o[i-1]=arguments[i];return n.apply(window,[e,...o])}return!1}).bind()}}).apply(this,updatedArgs),source.uniqueId&&Object.defineProperty(Window.prototype.toString,uniqueIdentifier,{value:\"done\",enumerable:!1,writable:!1,configurable:!1})}catch(e){console.log(e)}}"
        },
        {
            "names": [
                "debug-on-property-write"
            ],
            "scriptlet": "function debugOnPropertyWrite(source,args){const uniqueIdentifier=source.uniqueId+source.name+\"_\"+(Array.isArray(args)?args.join(\"_\"):\"\");if(source.uniqueId&&\"done\"===Window.prototype.toString[uniqueIdentifier])return;function getPropertyInChain(e,r){var n=r.indexOf(\".\");if(-1===n)return{base:e,prop:r};var i=r.slice(0,n);if(null===e)return{base:e,prop:i,chain:r};var t=e[i];return r=r.slice(n+1),(e instanceof Object||\"object\"==typeof e)&&function(t){return 0===Object.keys(t).length&&!t.prototype}(e)||null===t?{base:e,prop:i,chain:r}:void 0!==t?getPropertyInChain(t,r):(Object.defineProperty(e,i,{configurable:!0}),{base:e,prop:i,chain:r})}const updatedArgs=args?[].concat(source).concat(args):[source];try{(function(source,property){if(property){var r,n,rid=Math.random().toString(36).slice(2,9),abort=function(){!function(e){if(e.verbose){try{var n=console.trace.bind(console),i=\"[AdGuard] \";\"corelibs\"===e.engine?i+=e.ruleText:(e.domainName&&(i+=`${e.domainName}`),e.args?i+=`#%#//scriptlet('${e.name}', '${e.args.join(\"', '\")}')`:i+=`#%#//scriptlet('${e.name}')`),n&&n(i)}catch(e){}\"function\"==typeof window.__debug&&window.__debug(e)}}(source);debugger},_setChainPropAccess=function(owner,property){var e,r,t,c,chainInfo=getPropertyInChain(owner,property),{base:base,prop:prop,chain:chain}=chainInfo;chain?function(t,n,e,c){var i;try{i=t[n]}catch(t){i=void 0}Object.defineProperty(t,n,{get:function(){return i},set:function(t){i=t,t instanceof Object&&c(t,e)}})}(owner,prop,chain,_setChainPropAccess):(e=base,r=prop,t={set:abort},(c=Object.getOwnPropertyDescriptor(e,r))&&!c.configurable||Object.defineProperty(e,r,t))};_setChainPropAccess(window,property),window.onerror=(r=rid,n=window.onerror,function(e){if(\"string\"==typeof e&&e.includes(r))return!0;if(n instanceof Function){for(var t=arguments.length,o=new Array(t>1?t-1:0),i=1;i<t;i++)o[i-1]=arguments[i];return n.apply(window,[e,...o])}return!1}).bind()}}).apply(this,updatedArgs),source.uniqueId&&Object.defineProperty(Window.prototype.toString,uniqueIdentifier,{value:\"done\",enumerable:!1,writable:!1,configurable:!1})}catch(e){console.log(e)}}"
        },
        {
            "names": [
                "dir-string"
            ],
            "scriptlet": "function dirString(source,args){const uniqueIdentifier=source.uniqueId+source.name+\"_\"+(Array.isArray(args)?args.join(\"_\"):\"\");if(source.uniqueId&&\"done\"===Window.prototype.toString[uniqueIdentifier])return;const updatedArgs=args?[].concat(source).concat(args):[source];try{(function(source,times){var{dir:dir}=console;console.dir=function(object){\"function\"==typeof dir&&dir.call(this,object),function(e){if(e.verbose){try{var n=console.trace.bind(console),i=\"[AdGuard] \";\"corelibs\"===e.engine?i+=e.ruleText:(e.domainName&&(i+=`${e.domainName}`),e.args?i+=`#%#//scriptlet('${e.name}', '${e.args.join(\"', '\")}')`:i+=`#%#//scriptlet('${e.name}')`),n&&n(i)}catch(e){}\"function\"==typeof window.__debug&&window.__debug(e)}}(source)}}).apply(this,updatedArgs),source.uniqueId&&Object.defineProperty(Window.prototype.toString,uniqueIdentifier,{value:\"done\",enumerable:!1,writable:!1,configurable:!1})}catch(e){console.log(e)}}"
        },
        {
            "names": [
                "disable-newtab-links",
                "disable-newtab-links.js",
                "ubo-disable-newtab-links.js",
                "ubo-disable-newtab-links"
            ],
            "scriptlet": "function disableNewtabLinks(source,args){const uniqueIdentifier=source.uniqueId+source.name+\"_\"+(Array.isArray(args)?args.join(\"_\"):\"\");if(source.uniqueId&&\"done\"===Window.prototype.toString[uniqueIdentifier])return;function hit(e){if(e.verbose){try{var n=console.trace.bind(console),i=\"[AdGuard] \";\"corelibs\"===e.engine?i+=e.ruleText:(e.domainName&&(i+=`${e.domainName}`),e.args?i+=`#%#//scriptlet('${e.name}', '${e.args.join(\"', '\")}')`:i+=`#%#//scriptlet('${e.name}')`),n&&n(i)}catch(e){}\"function\"==typeof window.__debug&&window.__debug(e)}}const updatedArgs=args?[].concat(source).concat(args):[source];try{(function(source){document.addEventListener(\"click\",(function(ev){for(var{target:target}=ev;target instanceof Element;){if(\"a\"===target.localName&&target.hasAttribute(\"target\")){ev.stopPropagation(),ev.preventDefault(),hit(source);break}target=target.parentNode}}),{capture:!0})}).apply(this,updatedArgs),source.uniqueId&&Object.defineProperty(Window.prototype.toString,uniqueIdentifier,{value:\"done\",enumerable:!1,writable:!1,configurable:!1})}catch(e){console.log(e)}}"
        },
        {
            "names": [
                "evaldata-prune",
                "evaldata-prune.js",
                "ubo-evaldata-prune.js",
                "ubo-evaldata-prune"
            ],
            "scriptlet": "function evalDataPrune(source,args){const uniqueIdentifier=source.uniqueId+source.name+\"_\"+(Array.isArray(args)?args.join(\"_\"):\"\");if(source.uniqueId&&\"done\"===Window.prototype.toString[uniqueIdentifier])return;function hit(e){if(e.verbose){try{var n=console.trace.bind(console),i=\"[AdGuard] \";\"corelibs\"===e.engine?i+=e.ruleText:(e.domainName&&(i+=`${e.domainName}`),e.args?i+=`#%#//scriptlet('${e.name}', '${e.args.join(\"', '\")}')`:i+=`#%#//scriptlet('${e.name}')`),n&&n(i)}catch(e){}\"function\"==typeof window.__debug&&window.__debug(e)}}function getWildcardPropertyInChain(r,e){var a=arguments.length>2&&void 0!==arguments[2]&&arguments[2],i=arguments.length>3&&void 0!==arguments[3]?arguments[3]:[],t=arguments.length>4?arguments[4]:void 0,o=e.indexOf(\".\");if(-1===o){if(\"*\"===e||\"[]\"===e){for(var n in r)if(Object.prototype.hasOwnProperty.call(r,n))if(void 0!==t){var s=r[n];\"string\"==typeof s&&t instanceof RegExp?t.test(s)&&i.push({base:r,prop:n}):s===t&&i.push({base:r,prop:n})}else i.push({base:r,prop:n})}else if(void 0!==t){var p=r[e];\"string\"==typeof p&&t instanceof RegExp?t.test(p)&&i.push({base:r,prop:e}):r[e]===t&&i.push({base:r,prop:e})}else i.push({base:r,prop:e});return i}var c=e.slice(0,o);if(\"[]\"===c&&Array.isArray(r)||\"*\"===c&&r instanceof Object||\"[-]\"===c&&Array.isArray(r)||\"{-}\"===c&&r instanceof Object){var f=e.slice(o+1),y=Object.keys(r);if(\"{-}\"===c||\"[-]\"===c){var h=Array.isArray(r)?\"array\":\"object\";return(\"{-}\"!==c||\"object\"!==h)&&(\"[-]\"!==c||\"array\"!==h)||y.forEach((function(e){(function(t,r,e){var n=r.split(\".\"),_check=function(t,r){if(null==t)return!1;if(0===r.length)return void 0===e||(\"string\"==typeof t&&e instanceof RegExp?e.test(t):t===e);var n=r[0],i=r.slice(1);if(\"*\"===n||\"[]\"===n){if(Array.isArray(t))return t.some((function(t){return _check(t,i)}));if(\"object\"==typeof t&&null!==t)return Object.keys(t).some((function(r){return _check(t[r],i)}))}return!!Object.prototype.hasOwnProperty.call(t,n)&&_check(t[n],i)};return _check(t,n)})(r[e],f,t)&&i.push({base:r,prop:e})})),i}y.forEach((function(e){getWildcardPropertyInChain(r[e],f,a,i,t)}))}Array.isArray(r)&&r.forEach((function(r){void 0!==r&&getWildcardPropertyInChain(r,e,a,i,t)}));var d=r[c];return e=e.slice(o+1),void 0!==d&&getWildcardPropertyInChain(d,e,a,i,t),i}function logMessage(e,o){var r=arguments.length>2&&void 0!==arguments[2]&&arguments[2],a=!(arguments.length>3&&void 0!==arguments[3])||arguments[3],{name:n,verbose:g}=e;if(r||g){var i=console.log;a?i(`${n}: ${o}`):Array.isArray(o)?i(`${n}:`,...o):i(`${n}:`,o)}}function toRegExp(e){var r=e||\"\",t=\"/\";if(\"\"===r)return new RegExp(\".?\");var n,i,s=r.lastIndexOf(t),a=r.substring(s+1),g=r.substring(0,s+1),u=(i=a,(n=g).startsWith(t)&&n.endsWith(t)&&!n.endsWith(\"\\\\/\")&&function(e){if(!e)return!1;try{return new RegExp(\"\",e),!0}catch(e){return!1}}(i)?i:\"\");if(r.startsWith(t)&&r.endsWith(t)||u)return new RegExp((u?g:r).slice(1,-1),u);var c=r.replace(/\\\\'/g,\"'\").replace(/\\\\\"/g,'\"').replace(/[.*+?^${}()|[\\]\\\\]/g,\"\\\\$&\");return new RegExp(c)}function getPrunePath(t){var r=\".[=].\";if(\"string\"==typeof t&&void 0!==t&&\"\"!==t){var e=function(t){for(var e=[],n=\"\",i=0,a=!1,s=!1;i<t.length;){var u=t[i];if(a)n+=u,\"\\\\\"===u?s=!s:(\"/\"!==u||s||(a=!1),s=!1),i+=1;else{if(\" \"===u||\"\\n\"===u||\"\\t\"===u||\"\\r\"===u||\"\\f\"===u||\"\\v\"===u){for(;i<t.length&&/\\s/.test(t[i]);)i+=1;\"\"!==n&&(e.push(n),n=\"\");continue}if(t.startsWith(r,i)){if(n+=r,\"/\"===t[i+=5]){a=!0,s=!1,n+=\"/\",i+=1;continue}continue}n+=u,i+=1}}return\"\"!==n&&e.push(n),e}(t);return e.map((function(t){var e=t.split(r),n=e[0],i=e[1];return void 0!==i?(\"true\"===i?i=!0:\"false\"===i?i=!1:i.startsWith(\"/\")?i=toRegExp(i):\"string\"==typeof i&&/^\\d+$/.test(i)&&(i=parseFloat(i)),{path:n,value:i}):{path:n}}))}return[]}function restoreRegExpValues(e){if(e.length)try{var r;r=1===e.length?`(${e[0]})`:e.reduce((function(e,r,t){return 1===t?`(${e}),(${r})`:`${e},(${r})`}));var t=new RegExp(r);e.toString().replace(t,\"\")}catch(e){var n=`Failed to restore RegExp values: ${e}`;console.log(n)}}const updatedArgs=args?[].concat(source).concat(args):[source];try{(function(source,propsToRemove,requiredInitialProps,stack){var prunePaths=getPrunePath(propsToRemove),requiredPaths=getPrunePath(requiredInitialProps),nativeObjects={nativeStringify:window.JSON.stringify},evalHandler={apply:function(target,thisArg,args){var data=Reflect.apply(target,thisArg,args);return\"object\"==typeof data&&(data=function(e,r,n,a,t,i){var{nativeStringify:o}=i;if(0===n.length&&0===a.length)return logMessage(e,`${window.location.hostname}\\n${o(r,null,2)}\\nStack trace:\\n${(new Error).stack}`,!0),r&&\"object\"==typeof r&&logMessage(e,r,!0,!1),r;try{if(!1===function(n,t,r,e,a,i){if(!t)return!1;var o,{nativeStringify:u}=i,c=r.map((function(n){return n.path})),f=e.map((function(n){return n.path}));if(0===c.length&&f.length>0){var g=u(t);if(toRegExp(f.join(\"\")).test(g))return logMessage(n,`${window.location.hostname}\\n${u(t,null,2)}\\nStack trace:\\n${(new Error).stack}`,!0),t&&\"object\"==typeof t&&logMessage(n,t,!0,!1),o=!1}if(a&&!function(e,t){if(!e||\"\"===e)return!0;var r=function(){try{for(var r=[],e=1;e<10;e+=1){var a=`$${e}`;if(!RegExp[a])break;r.push(RegExp[a])}return r}catch(r){return[]}}();if(function(t,i){var r=\"inlineScript\",n=\"injectedScript\",isInlineScript=function(t){return t.includes(r)},isInjectedScript=function(t){return t.includes(n)};if(!isInlineScript(t)&&!isInjectedScript(t))return!1;var e=window.location.href,s=e.indexOf(\"#\");-1!==s&&(e=e.slice(0,s));var c=i.split(\"\\n\").slice(2).map((function(t){return t.trim()})).map((function(t){var i,s=/(.*?@)?(\\S+)(:\\d+)(:\\d+)\\)?$/.exec(t);if(s){var c,l,a=s[2],u=s[3],o=s[4];if(null!==(c=a)&&void 0!==c&&c.startsWith(\"(\")&&(a=a.slice(1)),null!==(l=a)&&void 0!==l&&l.startsWith(\"<anonymous>\")){var d;a=n;var f=void 0!==s[1]?s[1].slice(0,-1):t.slice(0,s.index).trim();null!==(d=f)&&void 0!==d&&d.startsWith(\"at\")&&(f=f.slice(2).trim()),i=`${f} ${a}${u}${o}`.trim()}else i=a===e?`${r}${u}${o}`.trim():`${a}${u}${o}`.trim()}else i=t;return i}));if(c)for(var l=0;l<c.length;l+=1){if(isInlineScript(t)&&c[l].startsWith(r)&&c[l].match(toRegExp(t)))return!0;if(isInjectedScript(t)&&c[l].startsWith(n)&&c[l].match(toRegExp(t)))return!0}return!1}(e,t))return r.length&&r[0]!==RegExp.$1&&restoreRegExpValues(r),!0;var n=toRegExp(e),a=t.split(\"\\n\").slice(2).map((function(e){return e.trim()})).join(\"\\n\");return r.length&&r[0]!==RegExp.$1&&restoreRegExpValues(r),function(){var t=Object.getOwnPropertyDescriptor(RegExp.prototype,\"test\"),e=null==t?void 0:t.value;if(t&&\"function\"==typeof t.value)return e;throw new Error(\"RegExp.prototype.test is not a function\")}().call(n,a)}(a,(new Error).stack||\"\"))return o=!1;for(var s,l=[\".*.\",\"*.\",\".*\",\".[].\",\"[].\",\".[]\"],_loop=function(){var n=f[p],r=n.split(\".\").pop(),e=l.some((function(t){return n.includes(t)})),a=getWildcardPropertyInChain(t,n,e);if(!a.length)return{v:o=!1};o=!e;for(var i=0;i<a.length;i+=1){var u=\"string\"==typeof r&&void 0!==a[i].base[r];o=e?u||o:u&&o}},p=0;p<f.length;p+=1)if(s=_loop())return s.v;return o}(e,r,n,a,t,i))return r;n.forEach((function(n){for(var a=n.path,t=n.value,i=getWildcardPropertyInChain(r,a,!0,[],t),o=i.length-1;o>=0;o-=1){var s=i[o];if(void 0!==s&&s.base)if(hit(e),Array.isArray(s.base))try{var l=Number(s.prop);if(Number.isNaN(l))continue;s.base.splice(l,1)}catch(e){console.error(\"Error while deleting array element\",e)}else delete s.base[s.prop]}}))}catch(r){logMessage(e,r)}return r}(source,data,prunePaths,requiredPaths,stack,nativeObjects)),data}};window.eval=new Proxy(window.eval,evalHandler)}).apply(this,updatedArgs),source.uniqueId&&Object.defineProperty(Window.prototype.toString,uniqueIdentifier,{value:\"done\",enumerable:!1,writable:!1,configurable:!1})}catch(e){console.log(e)}}"
        },
        {
            "names": [
                "close-window",
                "window-close-if.js",
                "ubo-window-close-if.js",
                "ubo-window-close-if",
                "close-window.js",
                "ubo-close-window.js",
                "ubo-close-window"
            ],
            "scriptlet": "function forceWindowClose(source,args){const uniqueIdentifier=source.uniqueId+source.name+\"_\"+(Array.isArray(args)?args.join(\"_\"):\"\");if(source.uniqueId&&\"done\"===Window.prototype.toString[uniqueIdentifier])return;function logMessage(e,o){var r=arguments.length>2&&void 0!==arguments[2]&&arguments[2],a=!(arguments.length>3&&void 0!==arguments[3])||arguments[3],{name:n,verbose:g}=e;if(r||g){var i=console.log;a?i(`${n}: ${o}`):Array.isArray(o)?i(`${n}:`,...o):i(`${n}:`,o)}}const updatedArgs=args?[].concat(source).concat(args):[source];try{(function(source){var extCall,path=arguments.length>1&&void 0!==arguments[1]?arguments[1]:\"\";\"function\"==typeof window.close?function(){if(\"\"===path)return!0;var pathRegexp=function(e){var r=e||\"\",t=\"/\";if(\"\"===r)return new RegExp(\".?\");var n,i,s=r.lastIndexOf(t),a=r.substring(s+1),g=r.substring(0,s+1),u=(i=a,(n=g).startsWith(t)&&n.endsWith(t)&&!n.endsWith(\"\\\\/\")&&function(e){if(!e)return!1;try{return new RegExp(\"\",e),!0}catch(e){return!1}}(i)?i:\"\");if(r.startsWith(t)&&r.endsWith(t)||u)return new RegExp((u?g:r).slice(1,-1),u);var c=r.replace(/\\\\'/g,\"'\").replace(/\\\\\"/g,'\"').replace(/[.*+?^${}()|[\\]\\\\]/g,\"\\\\$&\");return new RegExp(c)}(path),currentPath=`${window.location.pathname}${window.location.search}`;return pathRegexp.test(currentPath)}()&&(function(){try{!function(e){if(e.verbose){try{var n=console.trace.bind(console),i=\"[AdGuard] \";\"corelibs\"===e.engine?i+=e.ruleText:(e.domainName&&(i+=`${e.domainName}`),e.args?i+=`#%#//scriptlet('${e.name}', '${e.args.join(\"', '\")}')`:i+=`#%#//scriptlet('${e.name}')`),n&&n(i)}catch(e){}\"function\"==typeof window.__debug&&window.__debug(e)}}(source),window.close()}catch(e){logMessage(source,e)}}(),navigator.userAgent.includes(\"Chrome\")&&(extCall=function(){dispatchEvent(new Event(\"adguard:scriptlet-close-window\"))},window.addEventListener(\"adguard:subscribed-to-close-window\",extCall,{once:!0}),setTimeout((function(){window.removeEventListener(\"adguard:subscribed-to-close-window\",extCall,{once:!0})}),5e3))):logMessage(source,\"window.close() is not a function so 'close-window' scriptlet is unavailable\")}).apply(this,updatedArgs),source.uniqueId&&Object.defineProperty(Window.prototype.toString,uniqueIdentifier,{value:\"done\",enumerable:!1,writable:!1,configurable:!1})}catch(e){console.log(e)}}"
        },
        {
            "names": [
                "hide-in-shadow-dom"
            ],
            "scriptlet": "function hideInShadowDom(source,args){const uniqueIdentifier=source.uniqueId+source.name+\"_\"+(Array.isArray(args)?args.join(\"_\"):\"\");if(source.uniqueId&&\"done\"===Window.prototype.toString[uniqueIdentifier])return;function findHostElements(o){var n=[];return o&&o.querySelectorAll(\"*\").forEach((function(o){o.shadowRoot&&n.push(o)})),n}const updatedArgs=args?[].concat(source).concat(args):[source];try{(function(source,selector,baseSelector){if(Element.prototype.attachShadow){var hideHandler=function(){for(var hostElements=baseSelector?document.querySelectorAll(baseSelector):findHostElements(document.documentElement),_loop=function(){var isHidden=!1,{targets:targets,innerHosts:innerHosts}=function(e,t){var c=[],l=[];t.forEach((function(t){var o=t.querySelectorAll(e);c=c.concat([].slice.call(o));var r=t.shadowRoot,a=r.querySelectorAll(e);c=c.concat([].slice.call(a)),l.push(findHostElements(r))}));var o=function(r){var n=[];r.forEach((function(r){return n.push(r)}));for(var t=[];n.length;){var u=n.pop();Array.isArray(u)?u.forEach((function(r){return n.push(r)})):t.push(u)}return t.reverse()}(l);return{targets:c,innerHosts:o}}(selector,hostElements);targets.forEach((function(targetEl){targetEl.style.cssText=\"display:none!important;\",isHidden=!0})),isHidden&&function(e){if(e.verbose){try{var n=console.trace.bind(console),i=\"[AdGuard] \";\"corelibs\"===e.engine?i+=e.ruleText:(e.domainName&&(i+=`${e.domainName}`),e.args?i+=`#%#//scriptlet('${e.name}', '${e.args.join(\"', '\")}')`:i+=`#%#//scriptlet('${e.name}')`),n&&n(i)}catch(e){}\"function\"==typeof window.__debug&&window.__debug(e)}}(source),hostElements=innerHosts};0!==hostElements.length;)_loop()};hideHandler(),function(t){var e=arguments.length>1&&void 0!==arguments[1]&&arguments[1],n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:[],i=new MutationObserver(function(n,t){var r,e=!1,_wrapper=function(){for(var o=arguments.length,u=new Array(o),f=0;f<o;f++)u[f]=arguments[f];e?r=u:(n(...u),e=!0,setTimeout((function(){e=!1,r&&(_wrapper(...r),r=null)}),t))};return _wrapper}((function(){disconnect(),t(),connect()}),20)),connect=function(){n.length>0?i.observe(document.documentElement,{childList:!0,subtree:!0,attributes:e,attributeFilter:n}):i.observe(document.documentElement,{childList:!0,subtree:!0,attributes:e})},disconnect=function(){i.disconnect()};connect()}(hideHandler,!0)}}).apply(this,updatedArgs),source.uniqueId&&Object.defineProperty(Window.prototype.toString,uniqueIdentifier,{value:\"done\",enumerable:!1,writable:!1,configurable:!1})}catch(e){console.log(e)}}"
        },
        {
            "names": [
                "href-sanitizer",
                "href-sanitizer.js",
                "ubo-href-sanitizer.js",
                "ubo-href-sanitizer"
            ],
            "scriptlet": "function hrefSanitizer(source,args){const uniqueIdentifier=source.uniqueId+source.name+\"_\"+(Array.isArray(args)?args.join(\"_\"):\"\");if(source.uniqueId&&\"done\"===Window.prototype.toString[uniqueIdentifier])return;function logMessage(e,o){var r=arguments.length>2&&void 0!==arguments[2]&&arguments[2],a=!(arguments.length>3&&void 0!==arguments[3])||arguments[3],{name:n,verbose:g}=e;if(r||g){var i=console.log;a?i(`${n}: ${o}`):Array.isArray(o)?i(`${n}:`,...o):i(`${n}:`,o)}}const updatedArgs=args?[].concat(source).concat(args):[source];try{(function(source,selector){var attribute=arguments.length>2&&void 0!==arguments[2]?arguments[2]:\"text\",transform=arguments.length>3&&void 0!==arguments[3]?arguments[3]:\"\";if(selector){var BASE64_DECODE_TRANSFORM_MARKER=new Set([\"base64decode\",\"-base64\"]),regexpNotValidAtStart=/^[^!-~\\xAA\\xB5\\xBA\\xC0-\\xD6\\xD8-\\xF6\\xF8-\\u02C1\\u02C6-\\u02D1\\u02E0-\\u02E4\\u02EC\\u02EE\\u0370-\\u0374\\u0376\\u0377\\u037A-\\u037D\\u037F\\u0386\\u0388-\\u038A\\u038C\\u038E-\\u03A1\\u03A3-\\u03F5\\u03F7-\\u0481\\u048A-\\u052F\\u0531-\\u0556\\u0559\\u0560-\\u0588\\u05D0-\\u05EA\\u05EF-\\u05F2\\u0620-\\u064A\\u066E\\u066F\\u0671-\\u06D3\\u06D5\\u06E5\\u06E6\\u06EE\\u06EF\\u06FA-\\u06FC\\u06FF\\u0710\\u0712-\\u072F\\u074D-\\u07A5\\u07B1\\u07CA-\\u07EA\\u07F4\\u07F5\\u07FA\\u0800-\\u0815\\u081A\\u0824\\u0828\\u0840-\\u0858\\u0860-\\u086A\\u0870-\\u0887\\u0889-\\u088E\\u08A0-\\u08C9\\u0904-\\u0939\\u093D\\u0950\\u0958-\\u0961\\u0971-\\u0980\\u0985-\\u098C\\u098F\\u0990\\u0993-\\u09A8\\u09AA-\\u09B0\\u09B2\\u09B6-\\u09B9\\u09BD\\u09CE\\u09DC\\u09DD\\u09DF-\\u09E1\\u09F0\\u09F1\\u09FC\\u0A05-\\u0A0A\\u0A0F\\u0A10\\u0A13-\\u0A28\\u0A2A-\\u0A30\\u0A32\\u0A33\\u0A35\\u0A36\\u0A38\\u0A39\\u0A59-\\u0A5C\\u0A5E\\u0A72-\\u0A74\\u0A85-\\u0A8D\\u0A8F-\\u0A91\\u0A93-\\u0AA8\\u0AAA-\\u0AB0\\u0AB2\\u0AB3\\u0AB5-\\u0AB9\\u0ABD\\u0AD0\\u0AE0\\u0AE1\\u0AF9\\u0B05-\\u0B0C\\u0B0F\\u0B10\\u0B13-\\u0B28\\u0B2A-\\u0B30\\u0B32\\u0B33\\u0B35-\\u0B39\\u0B3D\\u0B5C\\u0B5D\\u0B5F-\\u0B61\\u0B71\\u0B83\\u0B85-\\u0B8A\\u0B8E-\\u0B90\\u0B92-\\u0B95\\u0B99\\u0B9A\\u0B9C\\u0B9E\\u0B9F\\u0BA3\\u0BA4\\u0BA8-\\u0BAA\\u0BAE-\\u0BB9\\u0BD0\\u0C05-\\u0C0C\\u0C0E-\\u0C10\\u0C12-\\u0C28\\u0C2A-\\u0C39\\u0C3D\\u0C58-\\u0C5A\\u0C5D\\u0C60\\u0C61\\u0C80\\u0C85-\\u0C8C\\u0C8E-\\u0C90\\u0C92-\\u0CA8\\u0CAA-\\u0CB3\\u0CB5-\\u0CB9\\u0CBD\\u0CDD\\u0CDE\\u0CE0\\u0CE1\\u0CF1\\u0CF2\\u0D04-\\u0D0C\\u0D0E-\\u0D10\\u0D12-\\u0D3A\\u0D3D\\u0D4E\\u0D54-\\u0D56\\u0D5F-\\u0D61\\u0D7A-\\u0D7F\\u0D85-\\u0D96\\u0D9A-\\u0DB1\\u0DB3-\\u0DBB\\u0DBD\\u0DC0-\\u0DC6\\u0E01-\\u0E30\\u0E32\\u0E33\\u0E40-\\u0E46\\u0E81\\u0E82\\u0E84\\u0E86-\\u0E8A\\u0E8C-\\u0EA3\\u0EA5\\u0EA7-\\u0EB0\\u0EB2\\u0EB3\\u0EBD\\u0EC0-\\u0EC4\\u0EC6\\u0EDC-\\u0EDF\\u0F00\\u0F40-\\u0F47\\u0F49-\\u0F6C\\u0F88-\\u0F8C\\u1000-\\u102A\\u103F\\u1050-\\u1055\\u105A-\\u105D\\u1061\\u1065\\u1066\\u106E-\\u1070\\u1075-\\u1081\\u108E\\u10A0-\\u10C5\\u10C7\\u10CD\\u10D0-\\u10FA\\u10FC-\\u1248\\u124A-\\u124D\\u1250-\\u1256\\u1258\\u125A-\\u125D\\u1260-\\u1288\\u128A-\\u128D\\u1290-\\u12B0\\u12B2-\\u12B5\\u12B8-\\u12BE\\u12C0\\u12C2-\\u12C5\\u12C8-\\u12D6\\u12D8-\\u1310\\u1312-\\u1315\\u1318-\\u135A\\u1380-\\u138F\\u13A0-\\u13F5\\u13F8-\\u13FD\\u1401-\\u166C\\u166F-\\u167F\\u1681-\\u169A\\u16A0-\\u16EA\\u16F1-\\u16F8\\u1700-\\u1711\\u171F-\\u1731\\u1740-\\u1751\\u1760-\\u176C\\u176E-\\u1770\\u1780-\\u17B3\\u17D7\\u17DC\\u1820-\\u1878\\u1880-\\u1884\\u1887-\\u18A8\\u18AA\\u18B0-\\u18F5\\u1900-\\u191E\\u1950-\\u196D\\u1970-\\u1974\\u1980-\\u19AB\\u19B0-\\u19C9\\u1A00-\\u1A16\\u1A20-\\u1A54\\u1AA7\\u1B05-\\u1B33\\u1B45-\\u1B4C\\u1B83-\\u1BA0\\u1BAE\\u1BAF\\u1BBA-\\u1BE5\\u1C00-\\u1C23\\u1C4D-\\u1C4F\\u1C5A-\\u1C7D\\u1C80-\\u1C8A\\u1C90-\\u1CBA\\u1CBD-\\u1CBF\\u1CE9-\\u1CEC\\u1CEE-\\u1CF3\\u1CF5\\u1CF6\\u1CFA\\u1D00-\\u1DBF\\u1E00-\\u1F15\\u1F18-\\u1F1D\\u1F20-\\u1F45\\u1F48-\\u1F4D\\u1F50-\\u1F57\\u1F59\\u1F5B\\u1F5D\\u1F5F-\\u1F7D\\u1F80-\\u1FB4\\u1FB6-\\u1FBC\\u1FBE\\u1FC2-\\u1FC4\\u1FC6-\\u1FCC\\u1FD0-\\u1FD3\\u1FD6-\\u1FDB\\u1FE0-\\u1FEC\\u1FF2-\\u1FF4\\u1FF6-\\u1FFC\\u2071\\u207F\\u2090-\\u209C\\u2102\\u2107\\u210A-\\u2113\\u2115\\u2119-\\u211D\\u2124\\u2126\\u2128\\u212A-\\u212D\\u212F-\\u2139\\u213C-\\u213F\\u2145-\\u2149\\u214E\\u2183\\u2184\\u2C00-\\u2CE4\\u2CEB-\\u2CEE\\u2CF2\\u2CF3\\u2D00-\\u2D25\\u2D27\\u2D2D\\u2D30-\\u2D67\\u2D6F\\u2D80-\\u2D96\\u2DA0-\\u2DA6\\u2DA8-\\u2DAE\\u2DB0-\\u2DB6\\u2DB8-\\u2DBE\\u2DC0-\\u2DC6\\u2DC8-\\u2DCE\\u2DD0-\\u2DD6\\u2DD8-\\u2DDE\\u2E2F\\u3005\\u3006\\u3031-\\u3035\\u303B\\u303C\\u3041-\\u3096\\u309D-\\u309F\\u30A1-\\u30FA\\u30FC-\\u30FF\\u3105-\\u312F\\u3131-\\u318E\\u31A0-\\u31BF\\u31F0-\\u31FF\\u3400-\\u4DBF\\u4E00-\\uA48C\\uA4D0-\\uA4FD\\uA500-\\uA60C\\uA610-\\uA61F\\uA62A\\uA62B\\uA640-\\uA66E\\uA67F-\\uA69D\\uA6A0-\\uA6E5\\uA717-\\uA71F\\uA722-\\uA788\\uA78B-\\uA7CD\\uA7D0\\uA7D1\\uA7D3\\uA7D5-\\uA7DC\\uA7F2-\\uA801\\uA803-\\uA805\\uA807-\\uA80A\\uA80C-\\uA822\\uA840-\\uA873\\uA882-\\uA8B3\\uA8F2-\\uA8F7\\uA8FB\\uA8FD\\uA8FE\\uA90A-\\uA925\\uA930-\\uA946\\uA960-\\uA97C\\uA984-\\uA9B2\\uA9CF\\uA9E0-\\uA9E4\\uA9E6-\\uA9EF\\uA9FA-\\uA9FE\\uAA00-\\uAA28\\uAA40-\\uAA42\\uAA44-\\uAA4B\\uAA60-\\uAA76\\uAA7A\\uAA7E-\\uAAAF\\uAAB1\\uAAB5\\uAAB6\\uAAB9-\\uAABD\\uAAC0\\uAAC2\\uAADB-\\uAADD\\uAAE0-\\uAAEA\\uAAF2-\\uAAF4\\uAB01-\\uAB06\\uAB09-\\uAB0E\\uAB11-\\uAB16\\uAB20-\\uAB26\\uAB28-\\uAB2E\\uAB30-\\uAB5A\\uAB5C-\\uAB69\\uAB70-\\uABE2\\uAC00-\\uD7A3\\uD7B0-\\uD7C6\\uD7CB-\\uD7FB\\uF900-\\uFA6D\\uFA70-\\uFAD9\\uFB00-\\uFB06\\uFB13-\\uFB17\\uFB1D\\uFB1F-\\uFB28\\uFB2A-\\uFB36\\uFB38-\\uFB3C\\uFB3E\\uFB40\\uFB41\\uFB43\\uFB44\\uFB46-\\uFBB1\\uFBD3-\\uFD3D\\uFD50-\\uFD8F\\uFD92-\\uFDC7\\uFDF0-\\uFDFB\\uFE70-\\uFE74\\uFE76-\\uFEFC\\uFF21-\\uFF3A\\uFF41-\\uFF5A\\uFF66-\\uFFBE\\uFFC2-\\uFFC7\\uFFCA-\\uFFCF\\uFFD2-\\uFFD7\\uFFDA-\\uFFDC\\u{10000}-\\u{1000B}\\u{1000D}-\\u{10026}\\u{10028}-\\u{1003A}\\u{1003C}\\u{1003D}\\u{1003F}-\\u{1004D}\\u{10050}-\\u{1005D}\\u{10080}-\\u{100FA}\\u{10280}-\\u{1029C}\\u{102A0}-\\u{102D0}\\u{10300}-\\u{1031F}\\u{1032D}-\\u{10340}\\u{10342}-\\u{10349}\\u{10350}-\\u{10375}\\u{10380}-\\u{1039D}\\u{103A0}-\\u{103C3}\\u{103C8}-\\u{103CF}\\u{10400}-\\u{1049D}\\u{104B0}-\\u{104D3}\\u{104D8}-\\u{104FB}\\u{10500}-\\u{10527}\\u{10530}-\\u{10563}\\u{10570}-\\u{1057A}\\u{1057C}-\\u{1058A}\\u{1058C}-\\u{10592}\\u{10594}\\u{10595}\\u{10597}-\\u{105A1}\\u{105A3}-\\u{105B1}\\u{105B3}-\\u{105B9}\\u{105BB}\\u{105BC}\\u{105C0}-\\u{105F3}\\u{10600}-\\u{10736}\\u{10740}-\\u{10755}\\u{10760}-\\u{10767}\\u{10780}-\\u{10785}\\u{10787}-\\u{107B0}\\u{107B2}-\\u{107BA}\\u{10800}-\\u{10805}\\u{10808}\\u{1080A}-\\u{10835}\\u{10837}\\u{10838}\\u{1083C}\\u{1083F}-\\u{10855}\\u{10860}-\\u{10876}\\u{10880}-\\u{1089E}\\u{108E0}-\\u{108F2}\\u{108F4}\\u{108F5}\\u{10900}-\\u{10915}\\u{10920}-\\u{10939}\\u{10980}-\\u{109B7}\\u{109BE}\\u{109BF}\\u{10A00}\\u{10A10}-\\u{10A13}\\u{10A15}-\\u{10A17}\\u{10A19}-\\u{10A35}\\u{10A60}-\\u{10A7C}\\u{10A80}-\\u{10A9C}\\u{10AC0}-\\u{10AC7}\\u{10AC9}-\\u{10AE4}\\u{10B00}-\\u{10B35}\\u{10B40}-\\u{10B55}\\u{10B60}-\\u{10B72}\\u{10B80}-\\u{10B91}\\u{10C00}-\\u{10C48}\\u{10C80}-\\u{10CB2}\\u{10CC0}-\\u{10CF2}\\u{10D00}-\\u{10D23}\\u{10D4A}-\\u{10D65}\\u{10D6F}-\\u{10D85}\\u{10E80}-\\u{10EA9}\\u{10EB0}\\u{10EB1}\\u{10EC2}-\\u{10EC4}\\u{10F00}-\\u{10F1C}\\u{10F27}\\u{10F30}-\\u{10F45}\\u{10F70}-\\u{10F81}\\u{10FB0}-\\u{10FC4}\\u{10FE0}-\\u{10FF6}\\u{11003}-\\u{11037}\\u{11071}\\u{11072}\\u{11075}\\u{11083}-\\u{110AF}\\u{110D0}-\\u{110E8}\\u{11103}-\\u{11126}\\u{11144}\\u{11147}\\u{11150}-\\u{11172}\\u{11176}\\u{11183}-\\u{111B2}\\u{111C1}-\\u{111C4}\\u{111DA}\\u{111DC}\\u{11200}-\\u{11211}\\u{11213}-\\u{1122B}\\u{1123F}\\u{11240}\\u{11280}-\\u{11286}\\u{11288}\\u{1128A}-\\u{1128D}\\u{1128F}-\\u{1129D}\\u{1129F}-\\u{112A8}\\u{112B0}-\\u{112DE}\\u{11305}-\\u{1130C}\\u{1130F}\\u{11310}\\u{11313}-\\u{11328}\\u{1132A}-\\u{11330}\\u{11332}\\u{11333}\\u{11335}-\\u{11339}\\u{1133D}\\u{11350}\\u{1135D}-\\u{11361}\\u{11380}-\\u{11389}\\u{1138B}\\u{1138E}\\u{11390}-\\u{113B5}\\u{113B7}\\u{113D1}\\u{113D3}\\u{11400}-\\u{11434}\\u{11447}-\\u{1144A}\\u{1145F}-\\u{11461}\\u{11480}-\\u{114AF}\\u{114C4}\\u{114C5}\\u{114C7}\\u{11580}-\\u{115AE}\\u{115D8}-\\u{115DB}\\u{11600}-\\u{1162F}\\u{11644}\\u{11680}-\\u{116AA}\\u{116B8}\\u{11700}-\\u{1171A}\\u{11740}-\\u{11746}\\u{11800}-\\u{1182B}\\u{118A0}-\\u{118DF}\\u{118FF}-\\u{11906}\\u{11909}\\u{1190C}-\\u{11913}\\u{11915}\\u{11916}\\u{11918}-\\u{1192F}\\u{1193F}\\u{11941}\\u{119A0}-\\u{119A7}\\u{119AA}-\\u{119D0}\\u{119E1}\\u{119E3}\\u{11A00}\\u{11A0B}-\\u{11A32}\\u{11A3A}\\u{11A50}\\u{11A5C}-\\u{11A89}\\u{11A9D}\\u{11AB0}-\\u{11AF8}\\u{11BC0}-\\u{11BE0}\\u{11C00}-\\u{11C08}\\u{11C0A}-\\u{11C2E}\\u{11C40}\\u{11C72}-\\u{11C8F}\\u{11D00}-\\u{11D06}\\u{11D08}\\u{11D09}\\u{11D0B}-\\u{11D30}\\u{11D46}\\u{11D60}-\\u{11D65}\\u{11D67}\\u{11D68}\\u{11D6A}-\\u{11D89}\\u{11D98}\\u{11EE0}-\\u{11EF2}\\u{11F02}\\u{11F04}-\\u{11F10}\\u{11F12}-\\u{11F33}\\u{11FB0}\\u{12000}-\\u{12399}\\u{12480}-\\u{12543}\\u{12F90}-\\u{12FF0}\\u{13000}-\\u{1342F}\\u{13441}-\\u{13446}\\u{13460}-\\u{143FA}\\u{14400}-\\u{14646}\\u{16100}-\\u{1611D}\\u{16800}-\\u{16A38}\\u{16A40}-\\u{16A5E}\\u{16A70}-\\u{16ABE}\\u{16AD0}-\\u{16AED}\\u{16B00}-\\u{16B2F}\\u{16B40}-\\u{16B43}\\u{16B63}-\\u{16B77}\\u{16B7D}-\\u{16B8F}\\u{16D40}-\\u{16D6C}\\u{16E40}-\\u{16E7F}\\u{16F00}-\\u{16F4A}\\u{16F50}\\u{16F93}-\\u{16F9F}\\u{16FE0}\\u{16FE1}\\u{16FE3}\\u{17000}-\\u{187F7}\\u{18800}-\\u{18CD5}\\u{18CFF}-\\u{18D08}\\u{1AFF0}-\\u{1AFF3}\\u{1AFF5}-\\u{1AFFB}\\u{1AFFD}\\u{1AFFE}\\u{1B000}-\\u{1B122}\\u{1B132}\\u{1B150}-\\u{1B152}\\u{1B155}\\u{1B164}-\\u{1B167}\\u{1B170}-\\u{1B2FB}\\u{1BC00}-\\u{1BC6A}\\u{1BC70}-\\u{1BC7C}\\u{1BC80}-\\u{1BC88}\\u{1BC90}-\\u{1BC99}\\u{1D400}-\\u{1D454}\\u{1D456}-\\u{1D49C}\\u{1D49E}\\u{1D49F}\\u{1D4A2}\\u{1D4A5}\\u{1D4A6}\\u{1D4A9}-\\u{1D4AC}\\u{1D4AE}-\\u{1D4B9}\\u{1D4BB}\\u{1D4BD}-\\u{1D4C3}\\u{1D4C5}-\\u{1D505}\\u{1D507}-\\u{1D50A}\\u{1D50D}-\\u{1D514}\\u{1D516}-\\u{1D51C}\\u{1D51E}-\\u{1D539}\\u{1D53B}-\\u{1D53E}\\u{1D540}-\\u{1D544}\\u{1D546}\\u{1D54A}-\\u{1D550}\\u{1D552}-\\u{1D6A5}\\u{1D6A8}-\\u{1D6C0}\\u{1D6C2}-\\u{1D6DA}\\u{1D6DC}-\\u{1D6FA}\\u{1D6FC}-\\u{1D714}\\u{1D716}-\\u{1D734}\\u{1D736}-\\u{1D74E}\\u{1D750}-\\u{1D76E}\\u{1D770}-\\u{1D788}\\u{1D78A}-\\u{1D7A8}\\u{1D7AA}-\\u{1D7C2}\\u{1D7C4}-\\u{1D7CB}\\u{1DF00}-\\u{1DF1E}\\u{1DF25}-\\u{1DF2A}\\u{1E030}-\\u{1E06D}\\u{1E100}-\\u{1E12C}\\u{1E137}-\\u{1E13D}\\u{1E14E}\\u{1E290}-\\u{1E2AD}\\u{1E2C0}-\\u{1E2EB}\\u{1E4D0}-\\u{1E4EB}\\u{1E5D0}-\\u{1E5ED}\\u{1E5F0}\\u{1E7E0}-\\u{1E7E6}\\u{1E7E8}-\\u{1E7EB}\\u{1E7ED}\\u{1E7EE}\\u{1E7F0}-\\u{1E7FE}\\u{1E800}-\\u{1E8C4}\\u{1E900}-\\u{1E943}\\u{1E94B}\\u{1EE00}-\\u{1EE03}\\u{1EE05}-\\u{1EE1F}\\u{1EE21}\\u{1EE22}\\u{1EE24}\\u{1EE27}\\u{1EE29}-\\u{1EE32}\\u{1EE34}-\\u{1EE37}\\u{1EE39}\\u{1EE3B}\\u{1EE42}\\u{1EE47}\\u{1EE49}\\u{1EE4B}\\u{1EE4D}-\\u{1EE4F}\\u{1EE51}\\u{1EE52}\\u{1EE54}\\u{1EE57}\\u{1EE59}\\u{1EE5B}\\u{1EE5D}\\u{1EE5F}\\u{1EE61}\\u{1EE62}\\u{1EE64}\\u{1EE67}-\\u{1EE6A}\\u{1EE6C}-\\u{1EE72}\\u{1EE74}-\\u{1EE77}\\u{1EE79}-\\u{1EE7C}\\u{1EE7E}\\u{1EE80}-\\u{1EE89}\\u{1EE8B}-\\u{1EE9B}\\u{1EEA1}-\\u{1EEA3}\\u{1EEA5}-\\u{1EEA9}\\u{1EEAB}-\\u{1EEBB}\\u{20000}-\\u{2A6DF}\\u{2A700}-\\u{2B739}\\u{2B740}-\\u{2B81D}\\u{2B820}-\\u{2CEA1}\\u{2CEB0}-\\u{2EBE0}\\u{2EBF0}-\\u{2EE5D}\\u{2F800}-\\u{2FA1D}\\u{30000}-\\u{3134A}\\u{31350}-\\u{323AF}]+/u,regexpNotValidAtEnd=/[^!-~\\xAA\\xB5\\xBA\\xC0-\\xD6\\xD8-\\xF6\\xF8-\\u02C1\\u02C6-\\u02D1\\u02E0-\\u02E4\\u02EC\\u02EE\\u0370-\\u0374\\u0376\\u0377\\u037A-\\u037D\\u037F\\u0386\\u0388-\\u038A\\u038C\\u038E-\\u03A1\\u03A3-\\u03F5\\u03F7-\\u0481\\u048A-\\u052F\\u0531-\\u0556\\u0559\\u0560-\\u0588\\u05D0-\\u05EA\\u05EF-\\u05F2\\u0620-\\u064A\\u066E\\u066F\\u0671-\\u06D3\\u06D5\\u06E5\\u06E6\\u06EE\\u06EF\\u06FA-\\u06FC\\u06FF\\u0710\\u0712-\\u072F\\u074D-\\u07A5\\u07B1\\u07CA-\\u07EA\\u07F4\\u07F5\\u07FA\\u0800-\\u0815\\u081A\\u0824\\u0828\\u0840-\\u0858\\u0860-\\u086A\\u0870-\\u0887\\u0889-\\u088E\\u08A0-\\u08C9\\u0904-\\u0939\\u093D\\u0950\\u0958-\\u0961\\u0971-\\u0980\\u0985-\\u098C\\u098F\\u0990\\u0993-\\u09A8\\u09AA-\\u09B0\\u09B2\\u09B6-\\u09B9\\u09BD\\u09CE\\u09DC\\u09DD\\u09DF-\\u09E1\\u09F0\\u09F1\\u09FC\\u0A05-\\u0A0A\\u0A0F\\u0A10\\u0A13-\\u0A28\\u0A2A-\\u0A30\\u0A32\\u0A33\\u0A35\\u0A36\\u0A38\\u0A39\\u0A59-\\u0A5C\\u0A5E\\u0A72-\\u0A74\\u0A85-\\u0A8D\\u0A8F-\\u0A91\\u0A93-\\u0AA8\\u0AAA-\\u0AB0\\u0AB2\\u0AB3\\u0AB5-\\u0AB9\\u0ABD\\u0AD0\\u0AE0\\u0AE1\\u0AF9\\u0B05-\\u0B0C\\u0B0F\\u0B10\\u0B13-\\u0B28\\u0B2A-\\u0B30\\u0B32\\u0B33\\u0B35-\\u0B39\\u0B3D\\u0B5C\\u0B5D\\u0B5F-\\u0B61\\u0B71\\u0B83\\u0B85-\\u0B8A\\u0B8E-\\u0B90\\u0B92-\\u0B95\\u0B99\\u0B9A\\u0B9C\\u0B9E\\u0B9F\\u0BA3\\u0BA4\\u0BA8-\\u0BAA\\u0BAE-\\u0BB9\\u0BD0\\u0C05-\\u0C0C\\u0C0E-\\u0C10\\u0C12-\\u0C28\\u0C2A-\\u0C39\\u0C3D\\u0C58-\\u0C5A\\u0C5D\\u0C60\\u0C61\\u0C80\\u0C85-\\u0C8C\\u0C8E-\\u0C90\\u0C92-\\u0CA8\\u0CAA-\\u0CB3\\u0CB5-\\u0CB9\\u0CBD\\u0CDD\\u0CDE\\u0CE0\\u0CE1\\u0CF1\\u0CF2\\u0D04-\\u0D0C\\u0D0E-\\u0D10\\u0D12-\\u0D3A\\u0D3D\\u0D4E\\u0D54-\\u0D56\\u0D5F-\\u0D61\\u0D7A-\\u0D7F\\u0D85-\\u0D96\\u0D9A-\\u0DB1\\u0DB3-\\u0DBB\\u0DBD\\u0DC0-\\u0DC6\\u0E01-\\u0E30\\u0E32\\u0E33\\u0E40-\\u0E46\\u0E81\\u0E82\\u0E84\\u0E86-\\u0E8A\\u0E8C-\\u0EA3\\u0EA5\\u0EA7-\\u0EB0\\u0EB2\\u0EB3\\u0EBD\\u0EC0-\\u0EC4\\u0EC6\\u0EDC-\\u0EDF\\u0F00\\u0F40-\\u0F47\\u0F49-\\u0F6C\\u0F88-\\u0F8C\\u1000-\\u102A\\u103F\\u1050-\\u1055\\u105A-\\u105D\\u1061\\u1065\\u1066\\u106E-\\u1070\\u1075-\\u1081\\u108E\\u10A0-\\u10C5\\u10C7\\u10CD\\u10D0-\\u10FA\\u10FC-\\u1248\\u124A-\\u124D\\u1250-\\u1256\\u1258\\u125A-\\u125D\\u1260-\\u1288\\u128A-\\u128D\\u1290-\\u12B0\\u12B2-\\u12B5\\u12B8-\\u12BE\\u12C0\\u12C2-\\u12C5\\u12C8-\\u12D6\\u12D8-\\u1310\\u1312-\\u1315\\u1318-\\u135A\\u1380-\\u138F\\u13A0-\\u13F5\\u13F8-\\u13FD\\u1401-\\u166C\\u166F-\\u167F\\u1681-\\u169A\\u16A0-\\u16EA\\u16F1-\\u16F8\\u1700-\\u1711\\u171F-\\u1731\\u1740-\\u1751\\u1760-\\u176C\\u176E-\\u1770\\u1780-\\u17B3\\u17D7\\u17DC\\u1820-\\u1878\\u1880-\\u1884\\u1887-\\u18A8\\u18AA\\u18B0-\\u18F5\\u1900-\\u191E\\u1950-\\u196D\\u1970-\\u1974\\u1980-\\u19AB\\u19B0-\\u19C9\\u1A00-\\u1A16\\u1A20-\\u1A54\\u1AA7\\u1B05-\\u1B33\\u1B45-\\u1B4C\\u1B83-\\u1BA0\\u1BAE\\u1BAF\\u1BBA-\\u1BE5\\u1C00-\\u1C23\\u1C4D-\\u1C4F\\u1C5A-\\u1C7D\\u1C80-\\u1C8A\\u1C90-\\u1CBA\\u1CBD-\\u1CBF\\u1CE9-\\u1CEC\\u1CEE-\\u1CF3\\u1CF5\\u1CF6\\u1CFA\\u1D00-\\u1DBF\\u1E00-\\u1F15\\u1F18-\\u1F1D\\u1F20-\\u1F45\\u1F48-\\u1F4D\\u1F50-\\u1F57\\u1F59\\u1F5B\\u1F5D\\u1F5F-\\u1F7D\\u1F80-\\u1FB4\\u1FB6-\\u1FBC\\u1FBE\\u1FC2-\\u1FC4\\u1FC6-\\u1FCC\\u1FD0-\\u1FD3\\u1FD6-\\u1FDB\\u1FE0-\\u1FEC\\u1FF2-\\u1FF4\\u1FF6-\\u1FFC\\u2071\\u207F\\u2090-\\u209C\\u2102\\u2107\\u210A-\\u2113\\u2115\\u2119-\\u211D\\u2124\\u2126\\u2128\\u212A-\\u212D\\u212F-\\u2139\\u213C-\\u213F\\u2145-\\u2149\\u214E\\u2183\\u2184\\u2C00-\\u2CE4\\u2CEB-\\u2CEE\\u2CF2\\u2CF3\\u2D00-\\u2D25\\u2D27\\u2D2D\\u2D30-\\u2D67\\u2D6F\\u2D80-\\u2D96\\u2DA0-\\u2DA6\\u2DA8-\\u2DAE\\u2DB0-\\u2DB6\\u2DB8-\\u2DBE\\u2DC0-\\u2DC6\\u2DC8-\\u2DCE\\u2DD0-\\u2DD6\\u2DD8-\\u2DDE\\u2E2F\\u3005\\u3006\\u3031-\\u3035\\u303B\\u303C\\u3041-\\u3096\\u309D-\\u309F\\u30A1-\\u30FA\\u30FC-\\u30FF\\u3105-\\u312F\\u3131-\\u318E\\u31A0-\\u31BF\\u31F0-\\u31FF\\u3400-\\u4DBF\\u4E00-\\uA48C\\uA4D0-\\uA4FD\\uA500-\\uA60C\\uA610-\\uA61F\\uA62A\\uA62B\\uA640-\\uA66E\\uA67F-\\uA69D\\uA6A0-\\uA6E5\\uA717-\\uA71F\\uA722-\\uA788\\uA78B-\\uA7CD\\uA7D0\\uA7D1\\uA7D3\\uA7D5-\\uA7DC\\uA7F2-\\uA801\\uA803-\\uA805\\uA807-\\uA80A\\uA80C-\\uA822\\uA840-\\uA873\\uA882-\\uA8B3\\uA8F2-\\uA8F7\\uA8FB\\uA8FD\\uA8FE\\uA90A-\\uA925\\uA930-\\uA946\\uA960-\\uA97C\\uA984-\\uA9B2\\uA9CF\\uA9E0-\\uA9E4\\uA9E6-\\uA9EF\\uA9FA-\\uA9FE\\uAA00-\\uAA28\\uAA40-\\uAA42\\uAA44-\\uAA4B\\uAA60-\\uAA76\\uAA7A\\uAA7E-\\uAAAF\\uAAB1\\uAAB5\\uAAB6\\uAAB9-\\uAABD\\uAAC0\\uAAC2\\uAADB-\\uAADD\\uAAE0-\\uAAEA\\uAAF2-\\uAAF4\\uAB01-\\uAB06\\uAB09-\\uAB0E\\uAB11-\\uAB16\\uAB20-\\uAB26\\uAB28-\\uAB2E\\uAB30-\\uAB5A\\uAB5C-\\uAB69\\uAB70-\\uABE2\\uAC00-\\uD7A3\\uD7B0-\\uD7C6\\uD7CB-\\uD7FB\\uF900-\\uFA6D\\uFA70-\\uFAD9\\uFB00-\\uFB06\\uFB13-\\uFB17\\uFB1D\\uFB1F-\\uFB28\\uFB2A-\\uFB36\\uFB38-\\uFB3C\\uFB3E\\uFB40\\uFB41\\uFB43\\uFB44\\uFB46-\\uFBB1\\uFBD3-\\uFD3D\\uFD50-\\uFD8F\\uFD92-\\uFDC7\\uFDF0-\\uFDFB\\uFE70-\\uFE74\\uFE76-\\uFEFC\\uFF21-\\uFF3A\\uFF41-\\uFF5A\\uFF66-\\uFFBE\\uFFC2-\\uFFC7\\uFFCA-\\uFFCF\\uFFD2-\\uFFD7\\uFFDA-\\uFFDC\\u{10000}-\\u{1000B}\\u{1000D}-\\u{10026}\\u{10028}-\\u{1003A}\\u{1003C}\\u{1003D}\\u{1003F}-\\u{1004D}\\u{10050}-\\u{1005D}\\u{10080}-\\u{100FA}\\u{10280}-\\u{1029C}\\u{102A0}-\\u{102D0}\\u{10300}-\\u{1031F}\\u{1032D}-\\u{10340}\\u{10342}-\\u{10349}\\u{10350}-\\u{10375}\\u{10380}-\\u{1039D}\\u{103A0}-\\u{103C3}\\u{103C8}-\\u{103CF}\\u{10400}-\\u{1049D}\\u{104B0}-\\u{104D3}\\u{104D8}-\\u{104FB}\\u{10500}-\\u{10527}\\u{10530}-\\u{10563}\\u{10570}-\\u{1057A}\\u{1057C}-\\u{1058A}\\u{1058C}-\\u{10592}\\u{10594}\\u{10595}\\u{10597}-\\u{105A1}\\u{105A3}-\\u{105B1}\\u{105B3}-\\u{105B9}\\u{105BB}\\u{105BC}\\u{105C0}-\\u{105F3}\\u{10600}-\\u{10736}\\u{10740}-\\u{10755}\\u{10760}-\\u{10767}\\u{10780}-\\u{10785}\\u{10787}-\\u{107B0}\\u{107B2}-\\u{107BA}\\u{10800}-\\u{10805}\\u{10808}\\u{1080A}-\\u{10835}\\u{10837}\\u{10838}\\u{1083C}\\u{1083F}-\\u{10855}\\u{10860}-\\u{10876}\\u{10880}-\\u{1089E}\\u{108E0}-\\u{108F2}\\u{108F4}\\u{108F5}\\u{10900}-\\u{10915}\\u{10920}-\\u{10939}\\u{10980}-\\u{109B7}\\u{109BE}\\u{109BF}\\u{10A00}\\u{10A10}-\\u{10A13}\\u{10A15}-\\u{10A17}\\u{10A19}-\\u{10A35}\\u{10A60}-\\u{10A7C}\\u{10A80}-\\u{10A9C}\\u{10AC0}-\\u{10AC7}\\u{10AC9}-\\u{10AE4}\\u{10B00}-\\u{10B35}\\u{10B40}-\\u{10B55}\\u{10B60}-\\u{10B72}\\u{10B80}-\\u{10B91}\\u{10C00}-\\u{10C48}\\u{10C80}-\\u{10CB2}\\u{10CC0}-\\u{10CF2}\\u{10D00}-\\u{10D23}\\u{10D4A}-\\u{10D65}\\u{10D6F}-\\u{10D85}\\u{10E80}-\\u{10EA9}\\u{10EB0}\\u{10EB1}\\u{10EC2}-\\u{10EC4}\\u{10F00}-\\u{10F1C}\\u{10F27}\\u{10F30}-\\u{10F45}\\u{10F70}-\\u{10F81}\\u{10FB0}-\\u{10FC4}\\u{10FE0}-\\u{10FF6}\\u{11003}-\\u{11037}\\u{11071}\\u{11072}\\u{11075}\\u{11083}-\\u{110AF}\\u{110D0}-\\u{110E8}\\u{11103}-\\u{11126}\\u{11144}\\u{11147}\\u{11150}-\\u{11172}\\u{11176}\\u{11183}-\\u{111B2}\\u{111C1}-\\u{111C4}\\u{111DA}\\u{111DC}\\u{11200}-\\u{11211}\\u{11213}-\\u{1122B}\\u{1123F}\\u{11240}\\u{11280}-\\u{11286}\\u{11288}\\u{1128A}-\\u{1128D}\\u{1128F}-\\u{1129D}\\u{1129F}-\\u{112A8}\\u{112B0}-\\u{112DE}\\u{11305}-\\u{1130C}\\u{1130F}\\u{11310}\\u{11313}-\\u{11328}\\u{1132A}-\\u{11330}\\u{11332}\\u{11333}\\u{11335}-\\u{11339}\\u{1133D}\\u{11350}\\u{1135D}-\\u{11361}\\u{11380}-\\u{11389}\\u{1138B}\\u{1138E}\\u{11390}-\\u{113B5}\\u{113B7}\\u{113D1}\\u{113D3}\\u{11400}-\\u{11434}\\u{11447}-\\u{1144A}\\u{1145F}-\\u{11461}\\u{11480}-\\u{114AF}\\u{114C4}\\u{114C5}\\u{114C7}\\u{11580}-\\u{115AE}\\u{115D8}-\\u{115DB}\\u{11600}-\\u{1162F}\\u{11644}\\u{11680}-\\u{116AA}\\u{116B8}\\u{11700}-\\u{1171A}\\u{11740}-\\u{11746}\\u{11800}-\\u{1182B}\\u{118A0}-\\u{118DF}\\u{118FF}-\\u{11906}\\u{11909}\\u{1190C}-\\u{11913}\\u{11915}\\u{11916}\\u{11918}-\\u{1192F}\\u{1193F}\\u{11941}\\u{119A0}-\\u{119A7}\\u{119AA}-\\u{119D0}\\u{119E1}\\u{119E3}\\u{11A00}\\u{11A0B}-\\u{11A32}\\u{11A3A}\\u{11A50}\\u{11A5C}-\\u{11A89}\\u{11A9D}\\u{11AB0}-\\u{11AF8}\\u{11BC0}-\\u{11BE0}\\u{11C00}-\\u{11C08}\\u{11C0A}-\\u{11C2E}\\u{11C40}\\u{11C72}-\\u{11C8F}\\u{11D00}-\\u{11D06}\\u{11D08}\\u{11D09}\\u{11D0B}-\\u{11D30}\\u{11D46}\\u{11D60}-\\u{11D65}\\u{11D67}\\u{11D68}\\u{11D6A}-\\u{11D89}\\u{11D98}\\u{11EE0}-\\u{11EF2}\\u{11F02}\\u{11F04}-\\u{11F10}\\u{11F12}-\\u{11F33}\\u{11FB0}\\u{12000}-\\u{12399}\\u{12480}-\\u{12543}\\u{12F90}-\\u{12FF0}\\u{13000}-\\u{1342F}\\u{13441}-\\u{13446}\\u{13460}-\\u{143FA}\\u{14400}-\\u{14646}\\u{16100}-\\u{1611D}\\u{16800}-\\u{16A38}\\u{16A40}-\\u{16A5E}\\u{16A70}-\\u{16ABE}\\u{16AD0}-\\u{16AED}\\u{16B00}-\\u{16B2F}\\u{16B40}-\\u{16B43}\\u{16B63}-\\u{16B77}\\u{16B7D}-\\u{16B8F}\\u{16D40}-\\u{16D6C}\\u{16E40}-\\u{16E7F}\\u{16F00}-\\u{16F4A}\\u{16F50}\\u{16F93}-\\u{16F9F}\\u{16FE0}\\u{16FE1}\\u{16FE3}\\u{17000}-\\u{187F7}\\u{18800}-\\u{18CD5}\\u{18CFF}-\\u{18D08}\\u{1AFF0}-\\u{1AFF3}\\u{1AFF5}-\\u{1AFFB}\\u{1AFFD}\\u{1AFFE}\\u{1B000}-\\u{1B122}\\u{1B132}\\u{1B150}-\\u{1B152}\\u{1B155}\\u{1B164}-\\u{1B167}\\u{1B170}-\\u{1B2FB}\\u{1BC00}-\\u{1BC6A}\\u{1BC70}-\\u{1BC7C}\\u{1BC80}-\\u{1BC88}\\u{1BC90}-\\u{1BC99}\\u{1D400}-\\u{1D454}\\u{1D456}-\\u{1D49C}\\u{1D49E}\\u{1D49F}\\u{1D4A2}\\u{1D4A5}\\u{1D4A6}\\u{1D4A9}-\\u{1D4AC}\\u{1D4AE}-\\u{1D4B9}\\u{1D4BB}\\u{1D4BD}-\\u{1D4C3}\\u{1D4C5}-\\u{1D505}\\u{1D507}-\\u{1D50A}\\u{1D50D}-\\u{1D514}\\u{1D516}-\\u{1D51C}\\u{1D51E}-\\u{1D539}\\u{1D53B}-\\u{1D53E}\\u{1D540}-\\u{1D544}\\u{1D546}\\u{1D54A}-\\u{1D550}\\u{1D552}-\\u{1D6A5}\\u{1D6A8}-\\u{1D6C0}\\u{1D6C2}-\\u{1D6DA}\\u{1D6DC}-\\u{1D6FA}\\u{1D6FC}-\\u{1D714}\\u{1D716}-\\u{1D734}\\u{1D736}-\\u{1D74E}\\u{1D750}-\\u{1D76E}\\u{1D770}-\\u{1D788}\\u{1D78A}-\\u{1D7A8}\\u{1D7AA}-\\u{1D7C2}\\u{1D7C4}-\\u{1D7CB}\\u{1DF00}-\\u{1DF1E}\\u{1DF25}-\\u{1DF2A}\\u{1E030}-\\u{1E06D}\\u{1E100}-\\u{1E12C}\\u{1E137}-\\u{1E13D}\\u{1E14E}\\u{1E290}-\\u{1E2AD}\\u{1E2C0}-\\u{1E2EB}\\u{1E4D0}-\\u{1E4EB}\\u{1E5D0}-\\u{1E5ED}\\u{1E5F0}\\u{1E7E0}-\\u{1E7E6}\\u{1E7E8}-\\u{1E7EB}\\u{1E7ED}\\u{1E7EE}\\u{1E7F0}-\\u{1E7FE}\\u{1E800}-\\u{1E8C4}\\u{1E900}-\\u{1E943}\\u{1E94B}\\u{1EE00}-\\u{1EE03}\\u{1EE05}-\\u{1EE1F}\\u{1EE21}\\u{1EE22}\\u{1EE24}\\u{1EE27}\\u{1EE29}-\\u{1EE32}\\u{1EE34}-\\u{1EE37}\\u{1EE39}\\u{1EE3B}\\u{1EE42}\\u{1EE47}\\u{1EE49}\\u{1EE4B}\\u{1EE4D}-\\u{1EE4F}\\u{1EE51}\\u{1EE52}\\u{1EE54}\\u{1EE57}\\u{1EE59}\\u{1EE5B}\\u{1EE5D}\\u{1EE5F}\\u{1EE61}\\u{1EE62}\\u{1EE64}\\u{1EE67}-\\u{1EE6A}\\u{1EE6C}-\\u{1EE72}\\u{1EE74}-\\u{1EE77}\\u{1EE79}-\\u{1EE7C}\\u{1EE7E}\\u{1EE80}-\\u{1EE89}\\u{1EE8B}-\\u{1EE9B}\\u{1EEA1}-\\u{1EEA3}\\u{1EEA5}-\\u{1EEA9}\\u{1EEAB}-\\u{1EEBB}\\u{20000}-\\u{2A6DF}\\u{2A700}-\\u{2B739}\\u{2B740}-\\u{2B81D}\\u{2B820}-\\u{2CEA1}\\u{2CEB0}-\\u{2EBE0}\\u{2EBF0}-\\u{2EE5D}\\u{2F800}-\\u{2FA1D}\\u{30000}-\\u{3134A}\\u{31350}-\\u{323AF}]+$/u,isValidURL=function(url){try{return new URL(url),!0}catch(_unused){return!1}},_extractURLFromObject=function(obj){for(var key in obj)if(Object.prototype.hasOwnProperty.call(obj,key)){var value=obj[key];if(\"string\"==typeof value&&isValidURL(value))return value;if(\"object\"==typeof value&&null!==value){var result=_extractURLFromObject(value);if(result)return result}}return null},decodeBase64SeveralTimes=function(text,times){for(var content,result=text,i=0;i<times;i+=1)try{result=atob(result)}catch(e){if(result===text)return\"\"}if(isValidURL(result))return result;if((content=result).startsWith(\"{\")&&content.endsWith(\"}\"))try{var parsedResult=JSON.parse(result);return _extractURLFromObject(parsedResult)}catch(ex){return\"\"}return logMessage(source,`Failed to decode base64 string: ${text}`),\"\"},decodeBase64URL=function(url){var{search:search,hash:hash}=new URL(url,document.location.href);return search.length>0?function(search){var decodedParam,validEncodedParam,searchString=search.replace(\"?\",\"\");return searchString.includes(\"&\")?(searchString.split(\"&\").forEach((function(param){(decodedParam=decodeBase64SeveralTimes(param,10))&&decodedParam.length>0&&(validEncodedParam=decodedParam)})),validEncodedParam):decodeBase64SeveralTimes(searchString,10)}(search):hash.length>0?function(hash){var validEncodedHash=\"\";return hash.includes(\"#!\")?validEncodedHash=hash.replace(\"#!\",\"\"):hash.includes(\"#\")&&(validEncodedHash=hash.replace(\"#\",\"\")),validEncodedHash?decodeBase64SeveralTimes(validEncodedHash,10):\"\"}(hash):(logMessage(source,`Failed to execute base64 from URL: ${url}`),null)},sanitize=function(elementSelector){var elements;try{elements=document.querySelectorAll(elementSelector)}catch(e){return void logMessage(source,`Invalid selector \"${elementSelector}\"`)}elements.forEach((function(elem){try{if(\"a\"!==(element=elem).nodeName.toLowerCase()||!element.hasAttribute(\"href\"))return void logMessage(source,`${elem} is not a valid element to sanitize`);var newHref=function(anchor,attr){if(\"text\"===attr)return anchor.textContent?anchor.textContent.replace(regexpNotValidAtStart,\"\").replace(regexpNotValidAtEnd,\"\"):\"\";if(attr.startsWith(\"?\"))try{return new URL(anchor.href,document.location.href).searchParams.get(attr.slice(1))||\"\"}catch(ex){return logMessage(source,`Cannot retrieve the parameter '${attr.slice(1)}' from the URL '${anchor.href}`),\"\"}return attr.startsWith(\"[\")&&attr.endsWith(\"]\")&&anchor.getAttribute(attr.slice(1,-1))||\"\"}(elem,attribute);if(transform)switch(!0){case BASE64_DECODE_TRANSFORM_MARKER.has(transform):newHref=isValidURL(href=newHref)?decodeBase64URL(href)||\"\":decodeBase64SeveralTimes(href,10)||\"\";break;case\"removeHash\"===transform:newHref=(urlObj=new URL(newHref,window.location.origin)).hash?(urlObj.hash=\"\",urlObj.toString()):\"\";break;case transform.startsWith(\"removeParam\"):newHref=function(url,transformValue){var urlObj=new URL(url,window.location.origin),paramNamesToRemoveStr=transformValue.split(\":\")[1];if(!paramNamesToRemoveStr)return urlObj.search=\"\",urlObj.toString();var initSearchParamsLength=urlObj.searchParams.toString().length;return paramNamesToRemoveStr.split(\",\").forEach((function(param){urlObj.searchParams.has(param)&&urlObj.searchParams.delete(param)})),initSearchParamsLength===urlObj.searchParams.toString().length?\"\":urlObj.toString()}(newHref,transform);break;default:return void logMessage(source,`Invalid transform option: \"${transform}\"`)}var newValidHref=function(text){if(!text)return null;try{var{href:href,protocol:protocol}=new URL(text,document.location.href);return\"http:\"!==protocol&&\"https:\"!==protocol?(logMessage(source,`Protocol not allowed: \"${protocol}\", from URL: \"${href}\"`),null):href}catch(_unused2){return null}}(newHref);if(!newValidHref)return void logMessage(source,`Invalid URL: ${newHref}`);var oldHref=elem.href;elem.setAttribute(\"href\",newValidHref),newValidHref!==oldHref&&logMessage(source,`Sanitized \"${oldHref}\" to \"${newValidHref}\".`)}catch(ex){logMessage(source,`Failed to sanitize ${elem}.`)}var urlObj,href,element})),function(e){if(e.verbose){try{var n=console.trace.bind(console),i=\"[AdGuard] \";\"corelibs\"===e.engine?i+=e.ruleText:(e.domainName&&(i+=`${e.domainName}`),e.args?i+=`#%#//scriptlet('${e.name}', '${e.args.join(\"', '\")}')`:i+=`#%#//scriptlet('${e.name}')`),n&&n(i)}catch(e){}\"function\"==typeof window.__debug&&window.__debug(e)}}(source)},run=function(){sanitize(selector),function(t){var e=arguments.length>1&&void 0!==arguments[1]&&arguments[1],n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:[],i=new MutationObserver(function(n,t){var r,e=!1,_wrapper=function(){for(var o=arguments.length,u=new Array(o),f=0;f<o;f++)u[f]=arguments[f];e?r=u:(n(...u),e=!0,setTimeout((function(){e=!1,r&&(_wrapper(...r),r=null)}),t))};return _wrapper}((function(){disconnect(),t(),connect()}),20)),connect=function(){n.length>0?i.observe(document.documentElement,{childList:!0,subtree:!0,attributes:e,attributeFilter:n}):i.observe(document.documentElement,{childList:!0,subtree:!0,attributes:e})},disconnect=function(){i.disconnect()};connect()}((function(){return sanitize(selector)}),!0)};\"loading\"===document.readyState?window.addEventListener(\"DOMContentLoaded\",run,{once:!0}):run()}else logMessage(source,\"Selector is required.\")}).apply(this,updatedArgs),source.uniqueId&&Object.defineProperty(Window.prototype.toString,uniqueIdentifier,{value:\"done\",enumerable:!1,writable:!1,configurable:!1})}catch(e){console.log(e)}}"
        },
        {
            "names": [
                "inject-css-in-shadow-dom"
            ],
            "scriptlet": "function injectCssInShadowDom(source,args){const uniqueIdentifier=source.uniqueId+source.name+\"_\"+(Array.isArray(args)?args.join(\"_\"):\"\");if(source.uniqueId&&\"done\"===Window.prototype.toString[uniqueIdentifier])return;function hit(e){if(e.verbose){try{var n=console.trace.bind(console),i=\"[AdGuard] \";\"corelibs\"===e.engine?i+=e.ruleText:(e.domainName&&(i+=`${e.domainName}`),e.args?i+=`#%#//scriptlet('${e.name}', '${e.args.join(\"', '\")}')`:i+=`#%#//scriptlet('${e.name}')`),n&&n(i)}catch(e){}\"function\"==typeof window.__debug&&window.__debug(e)}}function logMessage(e,o){var r=arguments.length>2&&void 0!==arguments[2]&&arguments[2],a=!(arguments.length>3&&void 0!==arguments[3])||arguments[3],{name:n,verbose:g}=e;if(r||g){var i=console.log;a?i(`${n}: ${o}`):Array.isArray(o)?i(`${n}:`,...o):i(`${n}:`,o)}}const updatedArgs=args?[].concat(source).concat(args):[source];try{(function(source,cssRule){var hostSelector=arguments.length>2&&void 0!==arguments[2]?arguments[2]:\"\",cssInjectionMethod=arguments.length>3&&void 0!==arguments[3]?arguments[3]:\"adoptedStyleSheets\";if(Element.prototype.attachShadow&&\"undefined\"!=typeof Proxy&&\"undefined\"!=typeof Reflect)if(\"adoptedStyleSheets\"===cssInjectionMethod||\"styleTag\"===cssInjectionMethod)if(cssRule.match(/(url|image-set)\\(.*\\)/i))logMessage(source,'\"url()\" function is not allowed for css rules');else{var t,a,e,o,injectStyleTag=function(shadowRoot){try{var styleTag=document.createElement(\"style\");styleTag.innerText=cssRule,shadowRoot.appendChild(styleTag),hit(source)}catch(error){logMessage(source,`Unable to inject style tag due to: \\n'${error.message}'`)}};t=window,a=hostSelector,e=function(shadowRoot){\"adoptedStyleSheets\"===cssInjectionMethod?function(shadowRoot){try{var stylesheet=new CSSStyleSheet;try{stylesheet.insertRule(cssRule)}catch(e){return void logMessage(source,`Unable to apply the rule '${cssRule}' due to: \\n'${e.message}'`)}shadowRoot.adoptedStyleSheets=[...shadowRoot.adoptedStyleSheets,stylesheet],hit(source)}catch(error){logMessage(source,`Unable to inject adopted style sheet due to: \\n'${error.message}'`),injectStyleTag(shadowRoot)}}(shadowRoot):\"styleTag\"===cssInjectionMethod&&injectStyleTag(shadowRoot)},o={apply:function(t,o,c){var h=Reflect.apply(t,o,c);return o&&o.matches(a||\"*\")&&e(h),h}},t.Element.prototype.attachShadow=new Proxy(t.Element.prototype.attachShadow,o)}else logMessage(source,`Unknown cssInjectionMethod: ${cssInjectionMethod}`)}).apply(this,updatedArgs),source.uniqueId&&Object.defineProperty(Window.prototype.toString,uniqueIdentifier,{value:\"done\",enumerable:!1,writable:!1,configurable:!1})}catch(e){console.log(e)}}"
        },
        {
            "names": [
                "json-prune-fetch-response",
                "json-prune-fetch-response.js",
                "ubo-json-prune-fetch-response.js",
                "ubo-json-prune-fetch-response"
            ],
            "scriptlet": "function jsonPruneFetchResponse(source,args){const uniqueIdentifier=source.uniqueId+source.name+\"_\"+(Array.isArray(args)?args.join(\"_\"):\"\");if(source.uniqueId&&\"done\"===Window.prototype.toString[uniqueIdentifier])return;function hit(e){if(e.verbose){try{var n=console.trace.bind(console),i=\"[AdGuard] \";\"corelibs\"===e.engine?i+=e.ruleText:(e.domainName&&(i+=`${e.domainName}`),e.args?i+=`#%#//scriptlet('${e.name}', '${e.args.join(\"', '\")}')`:i+=`#%#//scriptlet('${e.name}')`),n&&n(i)}catch(e){}\"function\"==typeof window.__debug&&window.__debug(e)}}function logMessage(e,o){var r=arguments.length>2&&void 0!==arguments[2]&&arguments[2],a=!(arguments.length>3&&void 0!==arguments[3])||arguments[3],{name:n,verbose:g}=e;if(r||g){var i=console.log;a?i(`${n}: ${o}`):Array.isArray(o)?i(`${n}:`,...o):i(`${n}:`,o)}}function objectToString(t){return t&&\"object\"==typeof t?function(t){return 0===Object.keys(t).length&&!t.prototype}(t)?\"{}\":Object.entries(t).map((function(t){var n=t[0],e=t[1],o=e;return e instanceof Object&&(o=`{ ${objectToString(e)} }`),`${n}:\"${o}\"`})).join(\" \"):String(t)}function noopCallbackFunc(){return noopFunc}function noopFunc(){}function trueFunc(){return!0}function falseFunc(){return!1}function throwFunc(){throw new Error}function noopPromiseReject(){return Promise.reject()}function noopPromiseResolve(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:\"{}\",t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:\"\",s=arguments.length>2&&void 0!==arguments[2]?arguments[2]:\"basic\";if(\"undefined\"!=typeof Response){var n=new Response(e,{headers:{\"Content-Length\":`${e.length}`},status:200,statusText:\"OK\"});return\"opaque\"===s?Object.defineProperties(n,{body:{value:null},status:{value:0},ok:{value:!1},statusText:{value:\"\"},url:{value:\"\"},type:{value:s}}):Object.defineProperties(n,{url:{value:t},type:{value:s}}),Promise.resolve(n)}}function getPrunePath(t){var r=\".[=].\";if(\"string\"==typeof t&&void 0!==t&&\"\"!==t){var e=function(t){for(var e=[],n=\"\",i=0,a=!1,s=!1;i<t.length;){var u=t[i];if(a)n+=u,\"\\\\\"===u?s=!s:(\"/\"!==u||s||(a=!1),s=!1),i+=1;else{if(\" \"===u||\"\\n\"===u||\"\\t\"===u||\"\\r\"===u||\"\\f\"===u||\"\\v\"===u){for(;i<t.length&&/\\s/.test(t[i]);)i+=1;\"\"!==n&&(e.push(n),n=\"\");continue}if(t.startsWith(r,i)){if(n+=r,\"/\"===t[i+=5]){a=!0,s=!1,n+=\"/\",i+=1;continue}continue}n+=u,i+=1}}return\"\"!==n&&e.push(n),e}(t);return e.map((function(t){var e=t.split(r),n=e[0],i=e[1];return void 0!==i?(\"true\"===i?i=!0:\"false\"===i?i=!1:i.startsWith(\"/\")?i=toRegExp(i):\"string\"==typeof i&&/^\\d+$/.test(i)&&(i=parseFloat(i)),{path:n,value:i}):{path:n}}))}return[]}function matchStackTrace(e,t){if(!e||\"\"===e)return!0;var r=function(){try{for(var r=[],e=1;e<10;e+=1){var a=`$${e}`;if(!RegExp[a])break;r.push(RegExp[a])}return r}catch(r){return[]}}();if(function(t,i){var r=\"inlineScript\",n=\"injectedScript\",isInlineScript=function(t){return t.includes(r)},isInjectedScript=function(t){return t.includes(n)};if(!isInlineScript(t)&&!isInjectedScript(t))return!1;var e=window.location.href,s=e.indexOf(\"#\");-1!==s&&(e=e.slice(0,s));var c=i.split(\"\\n\").slice(2).map((function(t){return t.trim()})).map((function(t){var i,s=/(.*?@)?(\\S+)(:\\d+)(:\\d+)\\)?$/.exec(t);if(s){var c,l,a=s[2],u=s[3],o=s[4];if(null!==(c=a)&&void 0!==c&&c.startsWith(\"(\")&&(a=a.slice(1)),null!==(l=a)&&void 0!==l&&l.startsWith(\"<anonymous>\")){var d;a=n;var f=void 0!==s[1]?s[1].slice(0,-1):t.slice(0,s.index).trim();null!==(d=f)&&void 0!==d&&d.startsWith(\"at\")&&(f=f.slice(2).trim()),i=`${f} ${a}${u}${o}`.trim()}else i=a===e?`${r}${u}${o}`.trim():`${a}${u}${o}`.trim()}else i=t;return i}));if(c)for(var l=0;l<c.length;l+=1){if(isInlineScript(t)&&c[l].startsWith(r)&&c[l].match(toRegExp(t)))return!0;if(isInjectedScript(t)&&c[l].startsWith(n)&&c[l].match(toRegExp(t)))return!0}return!1}(e,t))return r.length&&r[0]!==RegExp.$1&&restoreRegExpValues(r),!0;var n=toRegExp(e),a=t.split(\"\\n\").slice(2).map((function(e){return e.trim()})).join(\"\\n\");return r.length&&r[0]!==RegExp.$1&&restoreRegExpValues(r),function(){var t=Object.getOwnPropertyDescriptor(RegExp.prototype,\"test\"),e=null==t?void 0:t.value;if(t&&\"function\"==typeof t.value)return e;throw new Error(\"RegExp.prototype.test is not a function\")}().call(n,a)}function toRegExp(e){var r=e||\"\",t=\"/\";if(\"\"===r)return new RegExp(\".?\");var n,i,s=r.lastIndexOf(t),a=r.substring(s+1),g=r.substring(0,s+1),u=(i=a,(n=g).startsWith(t)&&n.endsWith(t)&&!n.endsWith(\"\\\\/\")&&function(e){if(!e)return!1;try{return new RegExp(\"\",e),!0}catch(e){return!1}}(i)?i:\"\");if(r.startsWith(t)&&r.endsWith(t)||u)return new RegExp((u?g:r).slice(1,-1),u);var c=r.replace(/\\\\'/g,\"'\").replace(/\\\\\"/g,'\"').replace(/[.*+?^${}()|[\\]\\\\]/g,\"\\\\$&\");return new RegExp(c)}function getWildcardPropertyInChain(r,e){var a=arguments.length>2&&void 0!==arguments[2]&&arguments[2],i=arguments.length>3&&void 0!==arguments[3]?arguments[3]:[],t=arguments.length>4?arguments[4]:void 0,o=e.indexOf(\".\");if(-1===o){if(\"*\"===e||\"[]\"===e){for(var n in r)if(Object.prototype.hasOwnProperty.call(r,n))if(void 0!==t){var s=r[n];\"string\"==typeof s&&t instanceof RegExp?t.test(s)&&i.push({base:r,prop:n}):s===t&&i.push({base:r,prop:n})}else i.push({base:r,prop:n})}else if(void 0!==t){var p=r[e];\"string\"==typeof p&&t instanceof RegExp?t.test(p)&&i.push({base:r,prop:e}):r[e]===t&&i.push({base:r,prop:e})}else i.push({base:r,prop:e});return i}var c=e.slice(0,o);if(\"[]\"===c&&Array.isArray(r)||\"*\"===c&&r instanceof Object||\"[-]\"===c&&Array.isArray(r)||\"{-}\"===c&&r instanceof Object){var f=e.slice(o+1),y=Object.keys(r);if(\"{-}\"===c||\"[-]\"===c){var h=Array.isArray(r)?\"array\":\"object\";return(\"{-}\"!==c||\"object\"!==h)&&(\"[-]\"!==c||\"array\"!==h)||y.forEach((function(e){(function(t,r,e){var n=r.split(\".\"),_check=function(t,r){if(null==t)return!1;if(0===r.length)return void 0===e||(\"string\"==typeof t&&e instanceof RegExp?e.test(t):t===e);var n=r[0],i=r.slice(1);if(\"*\"===n||\"[]\"===n){if(Array.isArray(t))return t.some((function(t){return _check(t,i)}));if(\"object\"==typeof t&&null!==t)return Object.keys(t).some((function(r){return _check(t[r],i)}))}return!!Object.prototype.hasOwnProperty.call(t,n)&&_check(t[n],i)};return _check(t,n)})(r[e],f,t)&&i.push({base:r,prop:e})})),i}y.forEach((function(e){getWildcardPropertyInChain(r[e],f,a,i,t)}))}Array.isArray(r)&&r.forEach((function(r){void 0!==r&&getWildcardPropertyInChain(r,e,a,i,t)}));var d=r[c];return e=e.slice(o+1),void 0!==d&&getWildcardPropertyInChain(d,e,a,i,t),i}function restoreRegExpValues(e){if(e.length)try{var r;r=1===e.length?`(${e[0]})`:e.reduce((function(e,r,t){return 1===t?`(${e}),(${r})`:`${e},(${r})`}));var t=new RegExp(r);e.toString().replace(t,\"\")}catch(e){var n=`Failed to restore RegExp values: ${e}`;console.log(n)}}const updatedArgs=args?[].concat(source).concat(args):[source];try{(function(source,propsToRemove,obligatoryProps){var propsToMatch=arguments.length>3&&void 0!==arguments[3]?arguments[3]:\"\",stack=arguments.length>4&&void 0!==arguments[4]?arguments[4]:\"\";if(\"undefined\"!=typeof fetch&&\"undefined\"!=typeof Proxy&&\"undefined\"!=typeof Response){var syntaxModeDetails=function(t,r){var e=\"legacy\",o=\"jsonpath\",s=\"string\"==typeof r?r.trim().toLowerCase():\"\";if(s===e||s===o)return{mode:s};var n=\"string\"==typeof t?t.trim():\"\";return n.startsWith(\"$\")||n.startsWith(\"[?\")?{mode:o}:{mode:e}}(propsToRemove,arguments.length>5&&void 0!==arguments[5]?arguments[5]:\"\"),prunePaths=\"legacy\"===syntaxModeDetails.mode?getPrunePath(propsToRemove):[],requiredPaths=\"legacy\"===syntaxModeDetails.mode?getPrunePath(obligatoryProps):[],nativeRequestClone=window.Request.prototype.clone,nativeResponseClone=window.Response.prototype.clone,nativeFetch=window.fetch,nativeObjects={nativeParse:window.JSON.parse,nativeStringify:window.JSON.stringify},pruneJsonValue=function(root){return\"jsonpath\"===syntaxModeDetails.mode?function(e,r,t,a,n){var i=arguments.length>5&&void 0!==arguments[5]?arguments[5]:\"\",s=arguments.length>6&&void 0!==arguments[6]&&arguments[6],o=\"$\",l=\".\",u=\"..\",p=\"\",c=\"\\\\\",h=\")\",f=\"[\",v=\"@\",d=\"contains\",g=\"equal\",m=\"exists\",y=\"greater_than\",P=\"greater_than_or_equal\",k=\"less_than\",x=\"less_than_or_equal\",S=\"not_equal\",$=\"regex\",C=[\"==\",\"!=\",\"<=\",\">=\",\"*=\",\"=~\",\"<\",\">\",\"=\"],b=/^[A-Za-z_$][\\w$]*$/;function isObjectLike(e){return null!==e&&\"object\"==typeof e}function isPlainObject(e){if(!isObjectLike(e)||Array.isArray(e))return!1;var r=Object.getPrototypeOf(e);return r===Object.prototype||null===r}function isQuoteCharacter(e){return\"'\"===e||'\"'===e}function isEscaped(e,r){for(var t=0,a=r-1;a>=0&&e[a]===c;)t+=1,a-=1;return t%2!=0}function stripQuotes(e){var r=e.trim();if(r.length<2)return r;var t=r[0],a=r[r.length-1];return isQuoteCharacter(t)&&t===a?r.slice(1,-1).split(\"\\\\'\").join(\"'\").split('\\\\\"').join('\"').split(c+c).join(c):r}function appendPath(e,r){return\"number\"==typeof r||/^\\d+$/.test(String(r))?`${e}[${r}]`:b.test(String(r))?`${e}.${r}`:`${e}['${String(r).replace(/'/g,\"\\\\'\")}']`}function createCandidate(e,r,t,a){return{key:t,parent:r,path:a,value:e}}function walkTopLevelChars(e,r){for(var t=0,a=0,n=0,i=null,s=0;s<e.length;s+=1){var o=e[s];if(i){if(o!==i||isEscaped(e,s)||(i=null),r(s,!1))return}else if(isQuoteCharacter(o)){if(i=o,r(s,!1))return}else{var l=!0;if(o===f?t+=1:\"]\"===o?t-=1:\"{\"===o?a+=1:\"}\"===o?a-=1:\"(\"===o?n+=1:o===h?n-=1:l=!1,r(s,!l&&0===t&&0===a&&0===n))return}}}function findClosingBracket(e,r){for(var t=0,a=null,n=r;n<e.length;n+=1){var i=e[n];if(a)i!==a||isEscaped(e,n)||(a=null);else if(isQuoteCharacter(i))a=i;else if(i!==f){if(\"]\"===i&&0==(t-=1))return n}else t+=1}return-1}function splitByTopLevelToken(e,r){var t=[],a=p,n=new Set;return walkTopLevelChars(e,(function(i,s){if(!n.has(i))if(s&&e.startsWith(r,i)){t.push(a.trim()),a=p;for(var o=1;o<r.length;o+=1)n.add(i+o)}else a+=e[i]})),a!==p&&t.push(a.trim()),t}function normalizeFilterPath(e){var r=e.trim();return r.startsWith(v)&&(r=r.slice(1)),r===p?o:r.startsWith(o)?r:r.startsWith(l)||r.startsWith(u)||r.startsWith(f)?`${o}${r}`:`${o}${l}${r}`}function parseFilterExpression(e){var r=e.trim();if(r.startsWith(\"(\")&&r.endsWith(h)){for(var t=0,a=null,n=!1,i=0;i<r.length;i+=1){var s=r[i];if(a)s!==a||isEscaped(r,i)||(a=null);else if(isQuoteCharacter(s))a=s;else if(\"(\"===s)t+=1;else if(s===h&&0==(t-=1)){n=i===r.length-1;break}}n&&(r=r.slice(1,-1).trim())}var u=splitByTopLevelToken(r,\"||\");if(u.length>1)return{conditions:u.map((function(e){return parseFilterExpression(e)})),operator:\"or\"};var p=splitByTopLevelToken(r,\"&&\");if(p.length>1)return{conditions:p.map((function(e){return parseFilterExpression(e)})),operator:\"and\"};if(r.startsWith(\"!\")&&!r.startsWith(\"!=\"))return{condition:parseFilterExpression(r.slice(1).trim()),operator:\"not\"};var c,b,w=(b=null,walkTopLevelChars(c=r,(function(e,r){if(!r)return!1;for(var t=null,a=0;a<C.length;a+=1){var n=C[a];c.startsWith(n,e)&&(null===t||n.length>t.length)&&(t=n)}return null!==t&&(b={index:e,operator:t},!0)})),b);if(!w)return{operator:m,selectorPath:normalizeFilterPath(r)};var W=r.slice(0,w.index).trim(),A=r.slice(w.index+w.operator.length).trim(),E=g;\"!=\"===w.operator?E=S:\"<\"===w.operator?E=k:\"<=\"===w.operator?E=x:\">\"===w.operator?E=y:\">=\"===w.operator?E=P:\"*=\"===w.operator?E=d:(\"=~\"===w.operator||\"=\"===w.operator&&/^\\/.*\\/[a-z]*$/i.test(A))&&(E=$);var O,j,F=A.trim(),L=F===o||F.startsWith(o+l)||F.startsWith(o+f),M=F===v||F.startsWith(v+l)||F.startsWith(v+f);return L||M?{comparisonSelectorPath:normalizeFilterPath(F),operator:E,resolveComparisonAgainstRoot:L,selectorPath:normalizeFilterPath(W)}:{comparisonValue:(O=A,j=O.trim(),\"true\"===j||\"false\"!==j&&(\"null\"===j?null:/^-?\\d+(?:\\.\\d+)?$/.test(j)?Number(j):/^\\/.*\\/[a-z]*$/i.test(j)?toRegExp(j):stripQuotes(j))),operator:E,selectorPath:normalizeFilterPath(W)}}function parseBracketStep(e,r){if(\"*\"===e)return{mode:\"wildcard\",recursive:r};if(e.startsWith(\"?\"))return{filter:parseFilterExpression(e.slice(1)),mode:\"filter\",recursive:r};if(/^\\(@\\.length(?:-\\d+)?\\)$/.test(e)){var t=e.match(/^\\(@\\.length(?:-(\\d+))?\\)$/);return{mode:\"computed-index\",recursive:r,subtractLength:t&&t[1]?Number(t[1]):0}}var a=function(e){var r=[],t=p;return walkTopLevelChars(e,(function(a,n){n&&\":\"===e[a]?(r.push(t.trim()),t=p):t+=e[a]})),r.push(t.trim()),r}(e);if(a.length>1){var n=a[0]===p?void 0:Number(a[0]);return{mode:\"slice\",recursive:r,slice:{end:a[1]===p?void 0:Number(a[1]),start:n,step:a.length>2&&a[2]!==p?Number(a[2]):1}}}var i=function(e,r){var t=[],a=p;return walkTopLevelChars(e,(function(n,i){i&&e[n]===r?(t.push(a.trim()),a=p):a+=e[n]})),a!==p&&t.push(a.trim()),t}(e,\",\");return i.every((function(e){return/^-?\\d+$/.test(e)}))?{indexes:i.map((function(e){return Number(e)})),mode:\"index\",recursive:r}:{mode:\"property\",properties:i.map((function(e){return r=e.trim(),/^\\/.*\\/[a-z]*$/i.test(r)?toRegExp(r):stripQuotes(r);var r})),recursive:r}}function parseJsonPathSelector(e){var r=[],t=0;for(e.startsWith(o)&&(t=1);t<e.length;){var a=!1;if(e.startsWith(u,t)?(a=!0,t+=2):e[t]===l&&(t+=1),t>=e.length)break;if(e[t]!==f)if(\"*\"!==e[t]){for(var n=t;n<e.length&&e[n]!==l&&e[n]!==f;)n+=1;var i=e.slice(t,n).trim();i&&r.push({mode:\"property\",properties:[i],recursive:a}),t=n}else r.push({mode:\"wildcard\",recursive:a}),t+=1;else{var s=findClosingBracket(e,t);if(-1===s)throw new Error(`Invalid JSONPath expression: ${e}`);var p=e.slice(t+1,s).trim();r.push(parseBracketStep(p,a)),t=s+1}}return{steps:r}}function buildAppendUpdater(e,r,t){var a,n=e.trim();if(n.startsWith(\"{\")||n.startsWith(f))a=r(n);else{var i=t(n);if(!i||i.shouldReplaceArgument)throw new Error(`Invalid append value: ${e}`);a=i.constantValue}return function(e){return Array.isArray(e)?Array.isArray(a)?e.concat(a):e.concat([a]):isPlainObject(e)&&isPlainObject(a)?Object.assign({},e,a):\"string\"==typeof e&&\"string\"==typeof a?`${e}${a}`:a}}function buildSetUpdater(e,r,t){var a=e.trim();if(a.startsWith(\"replace(\")&&a.endsWith(h))return function(e,r){var t=r(e.slice(8,-1));if(\"string\"!=typeof t.regex||\"string\"!=typeof t.replacement)throw new Error('Invalid replace payload: \"regex\" and \"replacement\" must be strings');var a=t.regex.startsWith(\"/\")?toRegExp(t.regex):new RegExp(t.regex,t.flags||p);return function(e){return\"string\"!=typeof e?e:e.replace(a,t.replacement)}}(a,r);var n=t(a);if(!n)throw new Error(`Invalid set value: ${e}`);return function(e){return function(e,t){return t.shouldReplaceArgument?\"string\"==typeof e?e.replace(t.replaceRegexValue,t.constantValue):e:!t.shouldMergeJsonValue||null===e||\"object\"!=typeof e||Array.isArray(e)||null===t.constantValue||\"object\"!=typeof t.constantValue||Array.isArray(t.constantValue)?t.constantValue:Object.assign({},e,t.constantValue)}(e,n)}}function getChildCandidates(e){if(!isObjectLike(e.value))return[];for(var r=Object.keys(e.value),t=[],a=0;a<r.length;a+=1){var n=r[a];t.push(createCandidate(e.value[n],e.value,n,appendPath(e.path,n)))}return t}function getRecursiveCandidates(e){for(var r=[e],t=getChildCandidates(e),a=0;a<t.length;a+=1)r.push(t[a]);for(var n=1;n<r.length;){for(var i=getChildCandidates(r[n]),s=0;s<i.length;s+=1)r.push(i[s]);n+=1}return r}function resolveIndex(e,r){return r<0?e+r:r}function applyDirectStep(e,r){var t=[];if(\"property\"===r.mode){if(!isObjectLike(e.value)||!r.properties)return t;for(var a=new Set,n=0;n<r.properties.length;n+=1){var i=r.properties[n];if(i instanceof RegExp)for(var s=Object.keys(e.value),o=0;o<s.length;o+=1){var l=s[o];i.lastIndex=0,i.test(l)&&!a.has(l)&&(a.add(l),t.push(createCandidate(e.value[l],e.value,l,appendPath(e.path,l))))}else!a.has(i)&&Object.prototype.hasOwnProperty.call(e.value,i)&&(a.add(i),t.push(createCandidate(e.value[i],e.value,i,appendPath(e.path,i))))}return t}if(\"wildcard\"===r.mode)return getChildCandidates(e);if(\"index\"===r.mode){if(!Array.isArray(e.value)||!r.indexes)return t;for(var u=0;u<r.indexes.length;u+=1){var p=resolveIndex(e.value.length,r.indexes[u]);p>=0&&p<e.value.length&&t.push(createCandidate(e.value[p],e.value,p,appendPath(e.path,p)))}return t}if(\"computed-index\"===r.mode){if(!Array.isArray(e.value))return t;var c=e.value.length-(r.subtractLength||0);return c>=0&&c<e.value.length&&t.push(createCandidate(e.value[c],e.value,c,appendPath(e.path,c))),t}if(\"slice\"===r.mode){if(!Array.isArray(e.value)||!r.slice)return t;for(var h=function(e,r){var t,a,n=[],i=void 0===r.step?1:r.step;if(0===i)return n;if(t=void 0===r.start?i>0?0:e-1:resolveIndex(e,r.start),a=void 0===r.end?i>0?e:-1:resolveIndex(e,r.end),i>0){for(var s=Math.max(0,t);s<Math.min(e,a);s+=i)n.push(s);return n}for(var o=Math.min(e-1,t);o>Math.max(-1,a);o+=i)n.push(o);return n}(e.value.length,r.slice),f=0;f<h.length;f+=1){var v=h[f];t.push(createCandidate(e.value[v],e.value,v,appendPath(e.path,v)))}}return t}function evaluateSelector(e,t){function matchesFilterValue(e,t){if(\"conditions\"in t)return\"and\"===t.operator?t.conditions.every((function(r){return matchesFilterValue(e,r)})):t.conditions.some((function(r){return matchesFilterValue(e,r)}));if(\"condition\"in t)return!matchesFilterValue(e,t.condition);var a=evaluateSelector(e,parseJsonPathSelector(t.selectorPath));if(t.operator===m)return a.length>0;var n=t.comparisonValue;if(t.comparisonSelectorPath){var i=evaluateSelector(t.resolveComparisonAgainstRoot?r:e,parseJsonPathSelector(t.comparisonSelectorPath));if(0===i.length)return!1;n=i[0].value}for(var s=0;s<a.length;s+=1){var o=a[s].value;if(t.operator!==d){if(t.operator!==$){if(t.operator===g&&o===n)return!0;if(t.operator===S&&o!==n)return!0;if(t.operator===k&&o<n)return!0;if(t.operator===x&&o<=n)return!0;if(t.operator===y&&o>n)return!0;if(t.operator===P&&o>=n)return!0}else if(\"string\"==typeof o&&n instanceof RegExp&&(n.lastIndex=0,n.test(o)))return!0}else if(\"string\"==typeof o&&o.includes(String(n)))return!0}return!1}function applyFilterStep(e,r){for(var t=[],a=0;a<e.length;a+=1){var n=e[a];if(Array.isArray(n.value))for(var i=0;i<n.value.length;i+=1)matchesFilterValue(n.value[i],r)&&t.push(createCandidate(n.value[i],n.value,i,appendPath(n.path,i)));else matchesFilterValue(n.value,r)&&t.push(n)}return t}for(var a=[createCandidate(e,null,null,o)],n=0;n<t.steps.length;n+=1){var i=t.steps[n];if(\"filter\"===i.mode&&i.filter)a=applyFilterStep(a,i.filter);else{for(var s=[],l=0;l<a.length;l+=1)for(var u=a[l],p=i.recursive?getRecursiveCandidates(u):[u],c=0;c<p.length;c+=1)for(var h=applyDirectStep(p[c],i),f=0;f<h.length;f+=1)s.push(h[f]);a=s}}return a}var w=!1;function markMutated(){w=!0}if(!isObjectLike(r))return r;var W,A=(W=a)&&W.nativeParse?W.nativeParse:JSON.parse,E=function(e){return e&&e.nativeStringify?e.nativeStringify:JSON.stringify}(a),O=(new Error).stack||\"\";if(i&&!matchStackTrace(i,O))return r;if(!t)return logMessage(e,`${window.location.hostname}\\n${E(r,null,2)}\\nStack trace:\\n${O}`,!0),logMessage(e,r,!0,!1),r;try{for(var j=function(e,r,t){var n,i=function(e){var r=-1,t=\"remove\",a=0;return walkTopLevelChars(e,(function(n,i){return!!i&&(e.startsWith(\"+=\",n)?(r=n,t=\"append\",a=2,!0):\"=\"===e[n]&&(r=n,t=\"set\",a=1,!0))})),-1===r?{mode:\"remove\",selectorPart:e.trim(),valuePart:p}:{mode:t,selectorPart:e.slice(0,r).trim(),valuePart:e.slice(r+a).trim()}}(e),s=function(e){for(var r=[],t=e.trim();t.startsWith(\"[?\");){var a=findClosingBracket(t,0);if(-1===a)break;var n=t.slice(1,a);r.push(parseFilterExpression(n.slice(1))),t=t.slice(a+1).trim()}return{guards:r,selectorPart:t}}(i.selectorPart),c=parseJsonPathSelector((n=s.selectorPart.trim())===p?o:n.startsWith(o)?n:n.startsWith(l)||n.startsWith(f)||n.startsWith(u)?`${o}${n}`:`${o}${l}${n}`),h={mode:i.mode};return\"append\"===i.mode?h={mode:\"append\",updater:buildAppendUpdater(i.valuePart,r,t)}:\"set\"===i.mode&&(h={mode:\"set\",updater:buildSetUpdater(i.valuePart,r,t)}),{guards:s.guards,mutation:h,selector:c}}(t,A,(function(r){return function(e,l,n){var s,a=\"json:\",r=\"replace:\",t=\"\",o=!1,u=!1;if(l.startsWith(r)){var i=extractRegexAndReplacement(l);if(!i)return logMessage(e,`Invalid argument value format: ${l}`),null;t=i.regexPart,s=i.replacementPart,o=!0}else if(l.startsWith(a))try{s=n(l.slice(a.length)),u=!0}catch(n){return logMessage(e,`Invalid JSON argument value: ${l}`),null}else if(\"undefined\"===l)s=void 0;else if(\"false\"===l)s=!1;else if(\"true\"===l)s=!0;else if(\"null\"===l)s=null;else if(\"NaN\"===l)s=NaN;else if(\"emptyArr\"===l||\"[]\"===l)s=[];else if(\"emptyObj\"===l||\"{}\"===l)s={};else if(\"noopFunc\"===l)s=noopFunc;else if(\"noopCallbackFunc\"===l)s=noopCallbackFunc;else if(\"trueFunc\"===l)s=trueFunc;else if(\"falseFunc\"===l)s=falseFunc;else if(\"throwFunc\"===l)s=throwFunc;else if(\"noopPromiseResolve\"===l)s=noopPromiseResolve;else if(\"noopPromiseReject\"===l)s=noopPromiseReject;else if(/^-?\\d+$/.test(l)){if(s=parseFloat(l),nativeIsNaN(s))return null}else s=l;return{constantValue:s,replaceRegexValue:t,shouldReplaceArgument:o,shouldMergeJsonValue:u}}(e,r,A)})),F=0;F<j.guards.length;F+=1)if(0===evaluateSelector(r,{steps:[{filter:j.guards[F],mode:\"filter\",recursive:!1}]}).length)return r;var L=evaluateSelector(r,j.selector);if(s)return L.length>0&&n&&n(),r;if(!(\"remove\"===j.mutation.mode||\"string\"==typeof e.name&&e.name.startsWith(\"trusted-\")))return logMessage(e,\"JSONPath set and append operations are allowed only in trusted scriptlets\"),r;if(\"remove\"===j.mutation.mode)return function(e){for(var r=new Set,t=new Map,a=0;a<e.length;a+=1){var n=e[a];if(null!==n.parent&&null!==n.key&&!r.has(n.path))if(r.add(n.path),Array.isArray(n.parent)){var i=t.get(n.parent)||[];i.push(Number(n.key)),t.set(n.parent,i)}else delete n.parent[n.key],markMutated()}t.forEach((function(e,r){for(var t=Array.from(new Set(e)).sort((function(e,r){return r-e})),a=0;a<t.length;a+=1){var n=t[a];n>=0&&n<r.length&&(r.splice(n,1),markMutated())}}))}(L),w&&n&&n(),r;j.mutation.updater&&(r=function(e,r,t){for(var a=new Set,n=e,i=0;i<r.length;i+=1){var s=r[i];a.has(s.path)||(a.add(s.path),null!==s.parent||null!==s.key||s.path!==o?null!==s.parent&&null!==s.key&&(s.parent[s.key]=t(s.parent[s.key]),markMutated()):(n=t(n),markMutated()))}return n}(r,L,j.mutation.updater),w&&n&&n())}catch(r){logMessage(e,`JSONPath processing failed for expression '${t}': ${r.message}`)}return r}(source,root,propsToRemove,nativeObjects,(function(){return hit(source)}),stack):function(e,r,n,a,t,i){var{nativeStringify:o}=i;if(0===n.length&&0===a.length)return logMessage(e,`${window.location.hostname}\\n${o(r,null,2)}\\nStack trace:\\n${(new Error).stack}`,!0),r&&\"object\"==typeof r&&logMessage(e,r,!0,!1),r;try{if(!1===function(n,t,r,e,a,i){if(!t)return!1;var o,{nativeStringify:u}=i,c=r.map((function(n){return n.path})),f=e.map((function(n){return n.path}));if(0===c.length&&f.length>0){var g=u(t);if(toRegExp(f.join(\"\")).test(g))return logMessage(n,`${window.location.hostname}\\n${u(t,null,2)}\\nStack trace:\\n${(new Error).stack}`,!0),t&&\"object\"==typeof t&&logMessage(n,t,!0,!1),o=!1}if(a&&!matchStackTrace(a,(new Error).stack||\"\"))return o=!1;for(var s,l=[\".*.\",\"*.\",\".*\",\".[].\",\"[].\",\".[]\"],_loop=function(){var n=f[p],r=n.split(\".\").pop(),e=l.some((function(t){return n.includes(t)})),a=getWildcardPropertyInChain(t,n,e);if(!a.length)return{v:o=!1};o=!e;for(var i=0;i<a.length;i+=1){var u=\"string\"==typeof r&&void 0!==a[i].base[r];o=e?u||o:u&&o}},p=0;p<f.length;p+=1)if(s=_loop())return s.v;return o}(e,r,n,a,t,i))return r;n.forEach((function(n){for(var a=n.path,t=n.value,i=getWildcardPropertyInChain(r,a,!0,[],t),o=i.length-1;o>=0;o-=1){var s=i[o];if(void 0!==s&&s.base)if(hit(e),Array.isArray(s.base))try{var l=Number(s.prop);if(Number.isNaN(l))continue;s.base.splice(l,1)}catch(e){console.error(\"Error while deleting array element\",e)}else delete s.base[s.prop]}}))}catch(r){logMessage(e,r)}return r}(source,root,prunePaths,requiredPaths,stack,nativeObjects)},fetchHandler={apply:async function(target,thisArg,args){var originalResponse,clonedResponse,json,fetchData=function(e,t){var a,c,n={},r=e[0];if(r instanceof Request){var f=function(t){var e=[\"url\",\"method\",\"headers\",\"body\",\"credentials\",\"cache\",\"redirect\",\"referrer\",\"referrerPolicy\",\"integrity\",\"keepalive\",\"signal\",\"mode\"].map((function(e){return[e,t[e]]}));return Object.fromEntries(e)}(t.call(r));a=f.url,c=f}else a=r,c=e[1];return n.url=a,c instanceof Object&&Object.keys(c).forEach((function(e){n[e]=c[e]})),n}(args,nativeRequestClone);if(!function(e,t,r){if(\"\"===t||\"*\"===t)return!0;var a,s=function(e){var r={};return e.split(\" \").forEach((function(e){var n=e.indexOf(\":\"),i=e.slice(0,n);if(function(e){return[\"url\",\"method\",\"headers\",\"body\",\"credentials\",\"cache\",\"redirect\",\"referrer\",\"referrerPolicy\",\"integrity\",\"keepalive\",\"signal\",\"mode\"].includes(e)}(i)){var s=e.slice(n+1);r[i]=s}else r.url=e})),r}(t);if(function(t){return Object.values(t).every((function(t){return function(e){var t,n=function(e){return e.replace(/[.*+?^${}()|[\\]\\\\]/g,\"\\\\$&\")}(e);\"/\"===e[0]&&\"/\"===e[e.length-1]&&(n=e.slice(1,-1));try{t=new RegExp(n),t=!0}catch(e){t=!1}return t}(t)}))}(s)){var n=function(t){var a={};return Object.keys(t).forEach((function(c){a[c]=toRegExp(t[c])})),a}(s);a=Object.keys(n).every((function(e){var t=n[e],a=r[e];return Object.prototype.hasOwnProperty.call(r,e)&&\"string\"==typeof a&&(null==t?void 0:t.test(a))}))}else logMessage(e,`Invalid parameter: ${t}`),a=!1;return a}(source,propsToMatch,fetchData))return Reflect.apply(target,thisArg,args);try{originalResponse=await nativeFetch.apply(null,args),clonedResponse=nativeResponseClone.call(originalResponse)}catch(_unused){return logMessage(source,`Could not make an original fetch request: ${fetchData.url}`),Reflect.apply(target,thisArg,args)}try{json=await originalResponse.json()}catch(e){var message=`Response body can't be converted to json: ${objectToString(fetchData)}`;return logMessage(source,message),clonedResponse}var modifiedJson=pruneJsonValue(json),forgedResponse=function(e,t){var{bodyUsed:s,headers:r,ok:u,redirected:a,status:d,statusText:o,type:l,url:n}=e,v=new Response(t,{status:d,statusText:o,headers:r});return Object.defineProperties(v,{url:{value:n},type:{value:l},ok:{value:u},bodyUsed:{value:s},redirected:{value:a}}),v}(originalResponse,nativeObjects.nativeStringify(modifiedJson));return hit(source),forgedResponse}};window.fetch=new Proxy(window.fetch,fetchHandler)}}).apply(this,updatedArgs),source.uniqueId&&Object.defineProperty(Window.prototype.toString,uniqueIdentifier,{value:\"done\",enumerable:!1,writable:!1,configurable:!1})}catch(e){console.log(e)}}"
        },
        {
            "names": [
                "json-prune",
                "json-prune.js",
                "ubo-json-prune.js",
                "ubo-json-prune",
                "abp-json-prune"
            ],
            "scriptlet": "function jsonPrune(source,args){const uniqueIdentifier=source.uniqueId+source.name+\"_\"+(Array.isArray(args)?args.join(\"_\"):\"\");if(source.uniqueId&&\"done\"===Window.prototype.toString[uniqueIdentifier])return;function hit(e){if(e.verbose){try{var n=console.trace.bind(console),i=\"[AdGuard] \";\"corelibs\"===e.engine?i+=e.ruleText:(e.domainName&&(i+=`${e.domainName}`),e.args?i+=`#%#//scriptlet('${e.name}', '${e.args.join(\"', '\")}')`:i+=`#%#//scriptlet('${e.name}')`),n&&n(i)}catch(e){}\"function\"==typeof window.__debug&&window.__debug(e)}}function matchStackTrace(e,t){if(!e||\"\"===e)return!0;var r=function(){try{for(var r=[],e=1;e<10;e+=1){var a=`$${e}`;if(!RegExp[a])break;r.push(RegExp[a])}return r}catch(r){return[]}}();if(function(t,i){var r=\"inlineScript\",n=\"injectedScript\",isInlineScript=function(t){return t.includes(r)},isInjectedScript=function(t){return t.includes(n)};if(!isInlineScript(t)&&!isInjectedScript(t))return!1;var e=window.location.href,s=e.indexOf(\"#\");-1!==s&&(e=e.slice(0,s));var c=i.split(\"\\n\").slice(2).map((function(t){return t.trim()})).map((function(t){var i,s=/(.*?@)?(\\S+)(:\\d+)(:\\d+)\\)?$/.exec(t);if(s){var c,l,a=s[2],u=s[3],o=s[4];if(null!==(c=a)&&void 0!==c&&c.startsWith(\"(\")&&(a=a.slice(1)),null!==(l=a)&&void 0!==l&&l.startsWith(\"<anonymous>\")){var d;a=n;var f=void 0!==s[1]?s[1].slice(0,-1):t.slice(0,s.index).trim();null!==(d=f)&&void 0!==d&&d.startsWith(\"at\")&&(f=f.slice(2).trim()),i=`${f} ${a}${u}${o}`.trim()}else i=a===e?`${r}${u}${o}`.trim():`${a}${u}${o}`.trim()}else i=t;return i}));if(c)for(var l=0;l<c.length;l+=1){if(isInlineScript(t)&&c[l].startsWith(r)&&c[l].match(toRegExp(t)))return!0;if(isInjectedScript(t)&&c[l].startsWith(n)&&c[l].match(toRegExp(t)))return!0}return!1}(e,t))return r.length&&r[0]!==RegExp.$1&&restoreRegExpValues(r),!0;var n=toRegExp(e),a=t.split(\"\\n\").slice(2).map((function(e){return e.trim()})).join(\"\\n\");return r.length&&r[0]!==RegExp.$1&&restoreRegExpValues(r),function(){var t=Object.getOwnPropertyDescriptor(RegExp.prototype,\"test\"),e=null==t?void 0:t.value;if(t&&\"function\"==typeof t.value)return e;throw new Error(\"RegExp.prototype.test is not a function\")}().call(n,a)}function getWildcardPropertyInChain(r,e){var a=arguments.length>2&&void 0!==arguments[2]&&arguments[2],i=arguments.length>3&&void 0!==arguments[3]?arguments[3]:[],t=arguments.length>4?arguments[4]:void 0,o=e.indexOf(\".\");if(-1===o){if(\"*\"===e||\"[]\"===e){for(var n in r)if(Object.prototype.hasOwnProperty.call(r,n))if(void 0!==t){var s=r[n];\"string\"==typeof s&&t instanceof RegExp?t.test(s)&&i.push({base:r,prop:n}):s===t&&i.push({base:r,prop:n})}else i.push({base:r,prop:n})}else if(void 0!==t){var p=r[e];\"string\"==typeof p&&t instanceof RegExp?t.test(p)&&i.push({base:r,prop:e}):r[e]===t&&i.push({base:r,prop:e})}else i.push({base:r,prop:e});return i}var c=e.slice(0,o);if(\"[]\"===c&&Array.isArray(r)||\"*\"===c&&r instanceof Object||\"[-]\"===c&&Array.isArray(r)||\"{-}\"===c&&r instanceof Object){var f=e.slice(o+1),y=Object.keys(r);if(\"{-}\"===c||\"[-]\"===c){var h=Array.isArray(r)?\"array\":\"object\";return(\"{-}\"!==c||\"object\"!==h)&&(\"[-]\"!==c||\"array\"!==h)||y.forEach((function(e){(function(t,r,e){var n=r.split(\".\"),_check=function(t,r){if(null==t)return!1;if(0===r.length)return void 0===e||(\"string\"==typeof t&&e instanceof RegExp?e.test(t):t===e);var n=r[0],i=r.slice(1);if(\"*\"===n||\"[]\"===n){if(Array.isArray(t))return t.some((function(t){return _check(t,i)}));if(\"object\"==typeof t&&null!==t)return Object.keys(t).some((function(r){return _check(t[r],i)}))}return!!Object.prototype.hasOwnProperty.call(t,n)&&_check(t[n],i)};return _check(t,n)})(r[e],f,t)&&i.push({base:r,prop:e})})),i}y.forEach((function(e){getWildcardPropertyInChain(r[e],f,a,i,t)}))}Array.isArray(r)&&r.forEach((function(r){void 0!==r&&getWildcardPropertyInChain(r,e,a,i,t)}));var d=r[c];return e=e.slice(o+1),void 0!==d&&getWildcardPropertyInChain(d,e,a,i,t),i}function logMessage(e,o){var r=arguments.length>2&&void 0!==arguments[2]&&arguments[2],a=!(arguments.length>3&&void 0!==arguments[3])||arguments[3],{name:n,verbose:g}=e;if(r||g){var i=console.log;a?i(`${n}: ${o}`):Array.isArray(o)?i(`${n}:`,...o):i(`${n}:`,o)}}function getPrunePath(t){var r=\".[=].\";if(\"string\"==typeof t&&void 0!==t&&\"\"!==t){var e=function(t){for(var e=[],n=\"\",i=0,a=!1,s=!1;i<t.length;){var u=t[i];if(a)n+=u,\"\\\\\"===u?s=!s:(\"/\"!==u||s||(a=!1),s=!1),i+=1;else{if(\" \"===u||\"\\n\"===u||\"\\t\"===u||\"\\r\"===u||\"\\f\"===u||\"\\v\"===u){for(;i<t.length&&/\\s/.test(t[i]);)i+=1;\"\"!==n&&(e.push(n),n=\"\");continue}if(t.startsWith(r,i)){if(n+=r,\"/\"===t[i+=5]){a=!0,s=!1,n+=\"/\",i+=1;continue}continue}n+=u,i+=1}}return\"\"!==n&&e.push(n),e}(t);return e.map((function(t){var e=t.split(r),n=e[0],i=e[1];return void 0!==i?(\"true\"===i?i=!0:\"false\"===i?i=!1:i.startsWith(\"/\")?i=toRegExp(i):\"string\"==typeof i&&/^\\d+$/.test(i)&&(i=parseFloat(i)),{path:n,value:i}):{path:n}}))}return[]}function toRegExp(e){var r=e||\"\",t=\"/\";if(\"\"===r)return new RegExp(\".?\");var n,i,s=r.lastIndexOf(t),a=r.substring(s+1),g=r.substring(0,s+1),u=(i=a,(n=g).startsWith(t)&&n.endsWith(t)&&!n.endsWith(\"\\\\/\")&&function(e){if(!e)return!1;try{return new RegExp(\"\",e),!0}catch(e){return!1}}(i)?i:\"\");if(r.startsWith(t)&&r.endsWith(t)||u)return new RegExp((u?g:r).slice(1,-1),u);var c=r.replace(/\\\\'/g,\"'\").replace(/\\\\\"/g,'\"').replace(/[.*+?^${}()|[\\]\\\\]/g,\"\\\\$&\");return new RegExp(c)}function restoreRegExpValues(e){if(e.length)try{var r;r=1===e.length?`(${e[0]})`:e.reduce((function(e,r,t){return 1===t?`(${e}),(${r})`:`${e},(${r})`}));var t=new RegExp(r);e.toString().replace(t,\"\")}catch(e){var n=`Failed to restore RegExp values: ${e}`;console.log(n)}}function noopCallbackFunc(){return noopFunc}function noopFunc(){}function trueFunc(){return!0}function falseFunc(){return!1}function throwFunc(){throw new Error}function noopPromiseReject(){return Promise.reject()}function noopPromiseResolve(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:\"{}\",t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:\"\",s=arguments.length>2&&void 0!==arguments[2]?arguments[2]:\"basic\";if(\"undefined\"!=typeof Response){var n=new Response(e,{headers:{\"Content-Length\":`${e.length}`},status:200,statusText:\"OK\"});return\"opaque\"===s?Object.defineProperties(n,{body:{value:null},status:{value:0},ok:{value:!1},statusText:{value:\"\"},url:{value:\"\"},type:{value:s}}):Object.defineProperties(n,{url:{value:t},type:{value:s}}),Promise.resolve(n)}}const updatedArgs=args?[].concat(source).concat(args):[source];try{(function(source,propsToRemove,requiredInitialProps){var stack=arguments.length>3&&void 0!==arguments[3]?arguments[3]:\"\",syntaxModeDetails=function(t,r){var e=\"legacy\",o=\"jsonpath\",s=\"string\"==typeof r?r.trim().toLowerCase():\"\";if(s===e||s===o)return{mode:s};var n=\"string\"==typeof t?t.trim():\"\";return n.startsWith(\"$\")||n.startsWith(\"[?\")?{mode:o}:{mode:e}}(propsToRemove,arguments.length>4&&void 0!==arguments[4]?arguments[4]:\"\"),prunePaths=\"legacy\"===syntaxModeDetails.mode?getPrunePath(propsToRemove):[],requiredPaths=\"legacy\"===syntaxModeDetails.mode?getPrunePath(requiredInitialProps):[],nativeObjects={nativeParse:window.JSON.parse,nativeStringify:window.JSON.stringify},pruneJsonValue=function(root){return\"jsonpath\"===syntaxModeDetails.mode?function(e,r,t,a,n){var i=arguments.length>5&&void 0!==arguments[5]?arguments[5]:\"\",s=arguments.length>6&&void 0!==arguments[6]&&arguments[6],o=\"$\",l=\".\",u=\"..\",p=\"\",c=\"\\\\\",h=\")\",f=\"[\",v=\"@\",d=\"contains\",g=\"equal\",m=\"exists\",y=\"greater_than\",P=\"greater_than_or_equal\",k=\"less_than\",x=\"less_than_or_equal\",S=\"not_equal\",$=\"regex\",C=[\"==\",\"!=\",\"<=\",\">=\",\"*=\",\"=~\",\"<\",\">\",\"=\"],b=/^[A-Za-z_$][\\w$]*$/;function isObjectLike(e){return null!==e&&\"object\"==typeof e}function isPlainObject(e){if(!isObjectLike(e)||Array.isArray(e))return!1;var r=Object.getPrototypeOf(e);return r===Object.prototype||null===r}function isQuoteCharacter(e){return\"'\"===e||'\"'===e}function isEscaped(e,r){for(var t=0,a=r-1;a>=0&&e[a]===c;)t+=1,a-=1;return t%2!=0}function stripQuotes(e){var r=e.trim();if(r.length<2)return r;var t=r[0],a=r[r.length-1];return isQuoteCharacter(t)&&t===a?r.slice(1,-1).split(\"\\\\'\").join(\"'\").split('\\\\\"').join('\"').split(c+c).join(c):r}function appendPath(e,r){return\"number\"==typeof r||/^\\d+$/.test(String(r))?`${e}[${r}]`:b.test(String(r))?`${e}.${r}`:`${e}['${String(r).replace(/'/g,\"\\\\'\")}']`}function createCandidate(e,r,t,a){return{key:t,parent:r,path:a,value:e}}function walkTopLevelChars(e,r){for(var t=0,a=0,n=0,i=null,s=0;s<e.length;s+=1){var o=e[s];if(i){if(o!==i||isEscaped(e,s)||(i=null),r(s,!1))return}else if(isQuoteCharacter(o)){if(i=o,r(s,!1))return}else{var l=!0;if(o===f?t+=1:\"]\"===o?t-=1:\"{\"===o?a+=1:\"}\"===o?a-=1:\"(\"===o?n+=1:o===h?n-=1:l=!1,r(s,!l&&0===t&&0===a&&0===n))return}}}function findClosingBracket(e,r){for(var t=0,a=null,n=r;n<e.length;n+=1){var i=e[n];if(a)i!==a||isEscaped(e,n)||(a=null);else if(isQuoteCharacter(i))a=i;else if(i!==f){if(\"]\"===i&&0==(t-=1))return n}else t+=1}return-1}function splitByTopLevelToken(e,r){var t=[],a=p,n=new Set;return walkTopLevelChars(e,(function(i,s){if(!n.has(i))if(s&&e.startsWith(r,i)){t.push(a.trim()),a=p;for(var o=1;o<r.length;o+=1)n.add(i+o)}else a+=e[i]})),a!==p&&t.push(a.trim()),t}function normalizeFilterPath(e){var r=e.trim();return r.startsWith(v)&&(r=r.slice(1)),r===p?o:r.startsWith(o)?r:r.startsWith(l)||r.startsWith(u)||r.startsWith(f)?`${o}${r}`:`${o}${l}${r}`}function parseFilterExpression(e){var r=e.trim();if(r.startsWith(\"(\")&&r.endsWith(h)){for(var t=0,a=null,n=!1,i=0;i<r.length;i+=1){var s=r[i];if(a)s!==a||isEscaped(r,i)||(a=null);else if(isQuoteCharacter(s))a=s;else if(\"(\"===s)t+=1;else if(s===h&&0==(t-=1)){n=i===r.length-1;break}}n&&(r=r.slice(1,-1).trim())}var u=splitByTopLevelToken(r,\"||\");if(u.length>1)return{conditions:u.map((function(e){return parseFilterExpression(e)})),operator:\"or\"};var p=splitByTopLevelToken(r,\"&&\");if(p.length>1)return{conditions:p.map((function(e){return parseFilterExpression(e)})),operator:\"and\"};if(r.startsWith(\"!\")&&!r.startsWith(\"!=\"))return{condition:parseFilterExpression(r.slice(1).trim()),operator:\"not\"};var c,b,w=(b=null,walkTopLevelChars(c=r,(function(e,r){if(!r)return!1;for(var t=null,a=0;a<C.length;a+=1){var n=C[a];c.startsWith(n,e)&&(null===t||n.length>t.length)&&(t=n)}return null!==t&&(b={index:e,operator:t},!0)})),b);if(!w)return{operator:m,selectorPath:normalizeFilterPath(r)};var W=r.slice(0,w.index).trim(),A=r.slice(w.index+w.operator.length).trim(),E=g;\"!=\"===w.operator?E=S:\"<\"===w.operator?E=k:\"<=\"===w.operator?E=x:\">\"===w.operator?E=y:\">=\"===w.operator?E=P:\"*=\"===w.operator?E=d:(\"=~\"===w.operator||\"=\"===w.operator&&/^\\/.*\\/[a-z]*$/i.test(A))&&(E=$);var O,j,F=A.trim(),L=F===o||F.startsWith(o+l)||F.startsWith(o+f),M=F===v||F.startsWith(v+l)||F.startsWith(v+f);return L||M?{comparisonSelectorPath:normalizeFilterPath(F),operator:E,resolveComparisonAgainstRoot:L,selectorPath:normalizeFilterPath(W)}:{comparisonValue:(O=A,j=O.trim(),\"true\"===j||\"false\"!==j&&(\"null\"===j?null:/^-?\\d+(?:\\.\\d+)?$/.test(j)?Number(j):/^\\/.*\\/[a-z]*$/i.test(j)?toRegExp(j):stripQuotes(j))),operator:E,selectorPath:normalizeFilterPath(W)}}function parseBracketStep(e,r){if(\"*\"===e)return{mode:\"wildcard\",recursive:r};if(e.startsWith(\"?\"))return{filter:parseFilterExpression(e.slice(1)),mode:\"filter\",recursive:r};if(/^\\(@\\.length(?:-\\d+)?\\)$/.test(e)){var t=e.match(/^\\(@\\.length(?:-(\\d+))?\\)$/);return{mode:\"computed-index\",recursive:r,subtractLength:t&&t[1]?Number(t[1]):0}}var a=function(e){var r=[],t=p;return walkTopLevelChars(e,(function(a,n){n&&\":\"===e[a]?(r.push(t.trim()),t=p):t+=e[a]})),r.push(t.trim()),r}(e);if(a.length>1){var n=a[0]===p?void 0:Number(a[0]);return{mode:\"slice\",recursive:r,slice:{end:a[1]===p?void 0:Number(a[1]),start:n,step:a.length>2&&a[2]!==p?Number(a[2]):1}}}var i=function(e,r){var t=[],a=p;return walkTopLevelChars(e,(function(n,i){i&&e[n]===r?(t.push(a.trim()),a=p):a+=e[n]})),a!==p&&t.push(a.trim()),t}(e,\",\");return i.every((function(e){return/^-?\\d+$/.test(e)}))?{indexes:i.map((function(e){return Number(e)})),mode:\"index\",recursive:r}:{mode:\"property\",properties:i.map((function(e){return r=e.trim(),/^\\/.*\\/[a-z]*$/i.test(r)?toRegExp(r):stripQuotes(r);var r})),recursive:r}}function parseJsonPathSelector(e){var r=[],t=0;for(e.startsWith(o)&&(t=1);t<e.length;){var a=!1;if(e.startsWith(u,t)?(a=!0,t+=2):e[t]===l&&(t+=1),t>=e.length)break;if(e[t]!==f)if(\"*\"!==e[t]){for(var n=t;n<e.length&&e[n]!==l&&e[n]!==f;)n+=1;var i=e.slice(t,n).trim();i&&r.push({mode:\"property\",properties:[i],recursive:a}),t=n}else r.push({mode:\"wildcard\",recursive:a}),t+=1;else{var s=findClosingBracket(e,t);if(-1===s)throw new Error(`Invalid JSONPath expression: ${e}`);var p=e.slice(t+1,s).trim();r.push(parseBracketStep(p,a)),t=s+1}}return{steps:r}}function buildAppendUpdater(e,r,t){var a,n=e.trim();if(n.startsWith(\"{\")||n.startsWith(f))a=r(n);else{var i=t(n);if(!i||i.shouldReplaceArgument)throw new Error(`Invalid append value: ${e}`);a=i.constantValue}return function(e){return Array.isArray(e)?Array.isArray(a)?e.concat(a):e.concat([a]):isPlainObject(e)&&isPlainObject(a)?Object.assign({},e,a):\"string\"==typeof e&&\"string\"==typeof a?`${e}${a}`:a}}function buildSetUpdater(e,r,t){var a=e.trim();if(a.startsWith(\"replace(\")&&a.endsWith(h))return function(e,r){var t=r(e.slice(8,-1));if(\"string\"!=typeof t.regex||\"string\"!=typeof t.replacement)throw new Error('Invalid replace payload: \"regex\" and \"replacement\" must be strings');var a=t.regex.startsWith(\"/\")?toRegExp(t.regex):new RegExp(t.regex,t.flags||p);return function(e){return\"string\"!=typeof e?e:e.replace(a,t.replacement)}}(a,r);var n=t(a);if(!n)throw new Error(`Invalid set value: ${e}`);return function(e){return function(e,t){return t.shouldReplaceArgument?\"string\"==typeof e?e.replace(t.replaceRegexValue,t.constantValue):e:!t.shouldMergeJsonValue||null===e||\"object\"!=typeof e||Array.isArray(e)||null===t.constantValue||\"object\"!=typeof t.constantValue||Array.isArray(t.constantValue)?t.constantValue:Object.assign({},e,t.constantValue)}(e,n)}}function getChildCandidates(e){if(!isObjectLike(e.value))return[];for(var r=Object.keys(e.value),t=[],a=0;a<r.length;a+=1){var n=r[a];t.push(createCandidate(e.value[n],e.value,n,appendPath(e.path,n)))}return t}function getRecursiveCandidates(e){for(var r=[e],t=getChildCandidates(e),a=0;a<t.length;a+=1)r.push(t[a]);for(var n=1;n<r.length;){for(var i=getChildCandidates(r[n]),s=0;s<i.length;s+=1)r.push(i[s]);n+=1}return r}function resolveIndex(e,r){return r<0?e+r:r}function applyDirectStep(e,r){var t=[];if(\"property\"===r.mode){if(!isObjectLike(e.value)||!r.properties)return t;for(var a=new Set,n=0;n<r.properties.length;n+=1){var i=r.properties[n];if(i instanceof RegExp)for(var s=Object.keys(e.value),o=0;o<s.length;o+=1){var l=s[o];i.lastIndex=0,i.test(l)&&!a.has(l)&&(a.add(l),t.push(createCandidate(e.value[l],e.value,l,appendPath(e.path,l))))}else!a.has(i)&&Object.prototype.hasOwnProperty.call(e.value,i)&&(a.add(i),t.push(createCandidate(e.value[i],e.value,i,appendPath(e.path,i))))}return t}if(\"wildcard\"===r.mode)return getChildCandidates(e);if(\"index\"===r.mode){if(!Array.isArray(e.value)||!r.indexes)return t;for(var u=0;u<r.indexes.length;u+=1){var p=resolveIndex(e.value.length,r.indexes[u]);p>=0&&p<e.value.length&&t.push(createCandidate(e.value[p],e.value,p,appendPath(e.path,p)))}return t}if(\"computed-index\"===r.mode){if(!Array.isArray(e.value))return t;var c=e.value.length-(r.subtractLength||0);return c>=0&&c<e.value.length&&t.push(createCandidate(e.value[c],e.value,c,appendPath(e.path,c))),t}if(\"slice\"===r.mode){if(!Array.isArray(e.value)||!r.slice)return t;for(var h=function(e,r){var t,a,n=[],i=void 0===r.step?1:r.step;if(0===i)return n;if(t=void 0===r.start?i>0?0:e-1:resolveIndex(e,r.start),a=void 0===r.end?i>0?e:-1:resolveIndex(e,r.end),i>0){for(var s=Math.max(0,t);s<Math.min(e,a);s+=i)n.push(s);return n}for(var o=Math.min(e-1,t);o>Math.max(-1,a);o+=i)n.push(o);return n}(e.value.length,r.slice),f=0;f<h.length;f+=1){var v=h[f];t.push(createCandidate(e.value[v],e.value,v,appendPath(e.path,v)))}}return t}function evaluateSelector(e,t){function matchesFilterValue(e,t){if(\"conditions\"in t)return\"and\"===t.operator?t.conditions.every((function(r){return matchesFilterValue(e,r)})):t.conditions.some((function(r){return matchesFilterValue(e,r)}));if(\"condition\"in t)return!matchesFilterValue(e,t.condition);var a=evaluateSelector(e,parseJsonPathSelector(t.selectorPath));if(t.operator===m)return a.length>0;var n=t.comparisonValue;if(t.comparisonSelectorPath){var i=evaluateSelector(t.resolveComparisonAgainstRoot?r:e,parseJsonPathSelector(t.comparisonSelectorPath));if(0===i.length)return!1;n=i[0].value}for(var s=0;s<a.length;s+=1){var o=a[s].value;if(t.operator!==d){if(t.operator!==$){if(t.operator===g&&o===n)return!0;if(t.operator===S&&o!==n)return!0;if(t.operator===k&&o<n)return!0;if(t.operator===x&&o<=n)return!0;if(t.operator===y&&o>n)return!0;if(t.operator===P&&o>=n)return!0}else if(\"string\"==typeof o&&n instanceof RegExp&&(n.lastIndex=0,n.test(o)))return!0}else if(\"string\"==typeof o&&o.includes(String(n)))return!0}return!1}function applyFilterStep(e,r){for(var t=[],a=0;a<e.length;a+=1){var n=e[a];if(Array.isArray(n.value))for(var i=0;i<n.value.length;i+=1)matchesFilterValue(n.value[i],r)&&t.push(createCandidate(n.value[i],n.value,i,appendPath(n.path,i)));else matchesFilterValue(n.value,r)&&t.push(n)}return t}for(var a=[createCandidate(e,null,null,o)],n=0;n<t.steps.length;n+=1){var i=t.steps[n];if(\"filter\"===i.mode&&i.filter)a=applyFilterStep(a,i.filter);else{for(var s=[],l=0;l<a.length;l+=1)for(var u=a[l],p=i.recursive?getRecursiveCandidates(u):[u],c=0;c<p.length;c+=1)for(var h=applyDirectStep(p[c],i),f=0;f<h.length;f+=1)s.push(h[f]);a=s}}return a}var w=!1;function markMutated(){w=!0}if(!isObjectLike(r))return r;var W,A=(W=a)&&W.nativeParse?W.nativeParse:JSON.parse,E=function(e){return e&&e.nativeStringify?e.nativeStringify:JSON.stringify}(a),O=(new Error).stack||\"\";if(i&&!matchStackTrace(i,O))return r;if(!t)return logMessage(e,`${window.location.hostname}\\n${E(r,null,2)}\\nStack trace:\\n${O}`,!0),logMessage(e,r,!0,!1),r;try{for(var j=function(e,r,t){var n,i=function(e){var r=-1,t=\"remove\",a=0;return walkTopLevelChars(e,(function(n,i){return!!i&&(e.startsWith(\"+=\",n)?(r=n,t=\"append\",a=2,!0):\"=\"===e[n]&&(r=n,t=\"set\",a=1,!0))})),-1===r?{mode:\"remove\",selectorPart:e.trim(),valuePart:p}:{mode:t,selectorPart:e.slice(0,r).trim(),valuePart:e.slice(r+a).trim()}}(e),s=function(e){for(var r=[],t=e.trim();t.startsWith(\"[?\");){var a=findClosingBracket(t,0);if(-1===a)break;var n=t.slice(1,a);r.push(parseFilterExpression(n.slice(1))),t=t.slice(a+1).trim()}return{guards:r,selectorPart:t}}(i.selectorPart),c=parseJsonPathSelector((n=s.selectorPart.trim())===p?o:n.startsWith(o)?n:n.startsWith(l)||n.startsWith(f)||n.startsWith(u)?`${o}${n}`:`${o}${l}${n}`),h={mode:i.mode};return\"append\"===i.mode?h={mode:\"append\",updater:buildAppendUpdater(i.valuePart,r,t)}:\"set\"===i.mode&&(h={mode:\"set\",updater:buildSetUpdater(i.valuePart,r,t)}),{guards:s.guards,mutation:h,selector:c}}(t,A,(function(r){return function(e,l,n){var s,N,a=\"json:\",r=\"replace:\",t=\"\",o=!1,u=!1;if(l.startsWith(r)){var i=extractRegexAndReplacement(l);if(!i)return logMessage(e,`Invalid argument value format: ${l}`),null;t=i.regexPart,s=i.replacementPart,o=!0}else if(l.startsWith(a))try{s=n(l.slice(a.length)),u=!0}catch(n){return logMessage(e,`Invalid JSON argument value: ${l}`),null}else if(\"undefined\"===l)s=void 0;else if(\"false\"===l)s=!1;else if(\"true\"===l)s=!0;else if(\"null\"===l)s=null;else if(\"NaN\"===l)s=NaN;else if(\"emptyArr\"===l||\"[]\"===l)s=[];else if(\"emptyObj\"===l||\"{}\"===l)s={};else if(\"noopFunc\"===l)s=noopFunc;else if(\"noopCallbackFunc\"===l)s=noopCallbackFunc;else if(\"trueFunc\"===l)s=trueFunc;else if(\"falseFunc\"===l)s=falseFunc;else if(\"throwFunc\"===l)s=throwFunc;else if(\"noopPromiseResolve\"===l)s=noopPromiseResolve;else if(\"noopPromiseReject\"===l)s=noopPromiseReject;else if(/^-?\\d+$/.test(l)){if(N=s=parseFloat(l),(Number.isNaN||window.isNaN)(N))return null}else s=l;return{constantValue:s,replaceRegexValue:t,shouldReplaceArgument:o,shouldMergeJsonValue:u}}(e,r,A)})),F=0;F<j.guards.length;F+=1)if(0===evaluateSelector(r,{steps:[{filter:j.guards[F],mode:\"filter\",recursive:!1}]}).length)return r;var L=evaluateSelector(r,j.selector);if(s)return L.length>0&&n&&n(),r;if(!(\"remove\"===j.mutation.mode||\"string\"==typeof e.name&&e.name.startsWith(\"trusted-\")))return logMessage(e,\"JSONPath set and append operations are allowed only in trusted scriptlets\"),r;if(\"remove\"===j.mutation.mode)return function(e){for(var r=new Set,t=new Map,a=0;a<e.length;a+=1){var n=e[a];if(null!==n.parent&&null!==n.key&&!r.has(n.path))if(r.add(n.path),Array.isArray(n.parent)){var i=t.get(n.parent)||[];i.push(Number(n.key)),t.set(n.parent,i)}else delete n.parent[n.key],markMutated()}t.forEach((function(e,r){for(var t=Array.from(new Set(e)).sort((function(e,r){return r-e})),a=0;a<t.length;a+=1){var n=t[a];n>=0&&n<r.length&&(r.splice(n,1),markMutated())}}))}(L),w&&n&&n(),r;j.mutation.updater&&(r=function(e,r,t){for(var a=new Set,n=e,i=0;i<r.length;i+=1){var s=r[i];a.has(s.path)||(a.add(s.path),null!==s.parent||null!==s.key||s.path!==o?null!==s.parent&&null!==s.key&&(s.parent[s.key]=t(s.parent[s.key]),markMutated()):(n=t(n),markMutated()))}return n}(r,L,j.mutation.updater),w&&n&&n())}catch(r){logMessage(e,`JSONPath processing failed for expression '${t}': ${r.message}`)}return r}(source,root,propsToRemove,nativeObjects,(function(){return hit(source)}),stack):function(e,r,n,a,t,i){var{nativeStringify:o}=i;if(0===n.length&&0===a.length)return logMessage(e,`${window.location.hostname}\\n${o(r,null,2)}\\nStack trace:\\n${(new Error).stack}`,!0),r&&\"object\"==typeof r&&logMessage(e,r,!0,!1),r;try{if(!1===function(n,t,r,e,a,i){if(!t)return!1;var o,{nativeStringify:u}=i,c=r.map((function(n){return n.path})),f=e.map((function(n){return n.path}));if(0===c.length&&f.length>0){var g=u(t);if(toRegExp(f.join(\"\")).test(g))return logMessage(n,`${window.location.hostname}\\n${u(t,null,2)}\\nStack trace:\\n${(new Error).stack}`,!0),t&&\"object\"==typeof t&&logMessage(n,t,!0,!1),o=!1}if(a&&!matchStackTrace(a,(new Error).stack||\"\"))return o=!1;for(var s,l=[\".*.\",\"*.\",\".*\",\".[].\",\"[].\",\".[]\"],_loop=function(){var n=f[p],r=n.split(\".\").pop(),e=l.some((function(t){return n.includes(t)})),a=getWildcardPropertyInChain(t,n,e);if(!a.length)return{v:o=!1};o=!e;for(var i=0;i<a.length;i+=1){var u=\"string\"==typeof r&&void 0!==a[i].base[r];o=e?u||o:u&&o}},p=0;p<f.length;p+=1)if(s=_loop())return s.v;return o}(e,r,n,a,t,i))return r;n.forEach((function(n){for(var a=n.path,t=n.value,i=getWildcardPropertyInChain(r,a,!0,[],t),o=i.length-1;o>=0;o-=1){var s=i[o];if(void 0!==s&&s.base)if(hit(e),Array.isArray(s.base))try{var l=Number(s.prop);if(Number.isNaN(l))continue;s.base.splice(l,1)}catch(e){console.error(\"Error while deleting array element\",e)}else delete s.base[s.prop]}}))}catch(r){logMessage(e,r)}return r}(source,root,prunePaths,requiredPaths,stack,nativeObjects)},jsonParseWrapper=function(){for(var _len=arguments.length,args=new Array(_len),_key=0;_key<_len;_key++)args[_key]=arguments[_key];var root=nativeObjects.nativeParse.apply(JSON,args);return pruneJsonValue(root)};jsonParseWrapper.toString=nativeObjects.nativeParse.toString.bind(nativeObjects.nativeParse),JSON.parse=jsonParseWrapper;var nativeResponseJson=Response.prototype.json;\"undefined\"!=typeof Response&&(Response.prototype.json=function(){return nativeResponseJson.apply(this).then((function(obj){return pruneJsonValue(obj)}))})}).apply(this,updatedArgs),source.uniqueId&&Object.defineProperty(Window.prototype.toString,uniqueIdentifier,{value:\"done\",enumerable:!1,writable:!1,configurable:!1})}catch(e){console.log(e)}}"
        },
        {
            "names": [
                "json-prune-xhr-response",
                "json-prune-xhr-response.js",
                "ubo-json-prune-xhr-response.js",
                "ubo-json-prune-xhr-response"
            ],
            "scriptlet": "function jsonPruneXhrResponse(source,args){const uniqueIdentifier=source.uniqueId+source.name+\"_\"+(Array.isArray(args)?args.join(\"_\"):\"\");if(source.uniqueId&&\"done\"===Window.prototype.toString[uniqueIdentifier])return;function hit(e){if(e.verbose){try{var n=console.trace.bind(console),i=\"[AdGuard] \";\"corelibs\"===e.engine?i+=e.ruleText:(e.domainName&&(i+=`${e.domainName}`),e.args?i+=`#%#//scriptlet('${e.name}', '${e.args.join(\"', '\")}')`:i+=`#%#//scriptlet('${e.name}')`),n&&n(i)}catch(e){}\"function\"==typeof window.__debug&&window.__debug(e)}}function logMessage(e,o){var r=arguments.length>2&&void 0!==arguments[2]&&arguments[2],a=!(arguments.length>3&&void 0!==arguments[3])||arguments[3],{name:n,verbose:g}=e;if(r||g){var i=console.log;a?i(`${n}: ${o}`):Array.isArray(o)?i(`${n}:`,...o):i(`${n}:`,o)}}function toRegExp(e){var r=e||\"\",t=\"/\";if(\"\"===r)return new RegExp(\".?\");var n,i,s=r.lastIndexOf(t),a=r.substring(s+1),g=r.substring(0,s+1),u=(i=a,(n=g).startsWith(t)&&n.endsWith(t)&&!n.endsWith(\"\\\\/\")&&function(e){if(!e)return!1;try{return new RegExp(\"\",e),!0}catch(e){return!1}}(i)?i:\"\");if(r.startsWith(t)&&r.endsWith(t)||u)return new RegExp((u?g:r).slice(1,-1),u);var c=r.replace(/\\\\'/g,\"'\").replace(/\\\\\"/g,'\"').replace(/[.*+?^${}()|[\\]\\\\]/g,\"\\\\$&\");return new RegExp(c)}function noopCallbackFunc(){return noopFunc}function noopFunc(){}function trueFunc(){return!0}function falseFunc(){return!1}function throwFunc(){throw new Error}function noopPromiseReject(){return Promise.reject()}function noopPromiseResolve(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:\"{}\",t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:\"\",s=arguments.length>2&&void 0!==arguments[2]?arguments[2]:\"basic\";if(\"undefined\"!=typeof Response){var n=new Response(e,{headers:{\"Content-Length\":`${e.length}`},status:200,statusText:\"OK\"});return\"opaque\"===s?Object.defineProperties(n,{body:{value:null},status:{value:0},ok:{value:!1},statusText:{value:\"\"},url:{value:\"\"},type:{value:s}}):Object.defineProperties(n,{url:{value:t},type:{value:s}}),Promise.resolve(n)}}function getPrunePath(t){var r=\".[=].\";if(\"string\"==typeof t&&void 0!==t&&\"\"!==t){var e=function(t){for(var e=[],n=\"\",i=0,a=!1,s=!1;i<t.length;){var u=t[i];if(a)n+=u,\"\\\\\"===u?s=!s:(\"/\"!==u||s||(a=!1),s=!1),i+=1;else{if(\" \"===u||\"\\n\"===u||\"\\t\"===u||\"\\r\"===u||\"\\f\"===u||\"\\v\"===u){for(;i<t.length&&/\\s/.test(t[i]);)i+=1;\"\"!==n&&(e.push(n),n=\"\");continue}if(t.startsWith(r,i)){if(n+=r,\"/\"===t[i+=5]){a=!0,s=!1,n+=\"/\",i+=1;continue}continue}n+=u,i+=1}}return\"\"!==n&&e.push(n),e}(t);return e.map((function(t){var e=t.split(r),n=e[0],i=e[1];return void 0!==i?(\"true\"===i?i=!0:\"false\"===i?i=!1:i.startsWith(\"/\")?i=toRegExp(i):\"string\"==typeof i&&/^\\d+$/.test(i)&&(i=parseFloat(i)),{path:n,value:i}):{path:n}}))}return[]}function getXhrData(r,t,a,e,n){return{method:r,url:t,async:a,user:e,password:n}}function matchStackTrace(e,t){if(!e||\"\"===e)return!0;var r=function(){try{for(var r=[],e=1;e<10;e+=1){var a=`$${e}`;if(!RegExp[a])break;r.push(RegExp[a])}return r}catch(r){return[]}}();if(function(t,i){var r=\"inlineScript\",n=\"injectedScript\",isInlineScript=function(t){return t.includes(r)},isInjectedScript=function(t){return t.includes(n)};if(!isInlineScript(t)&&!isInjectedScript(t))return!1;var e=window.location.href,s=e.indexOf(\"#\");-1!==s&&(e=e.slice(0,s));var c=i.split(\"\\n\").slice(2).map((function(t){return t.trim()})).map((function(t){var i,s=/(.*?@)?(\\S+)(:\\d+)(:\\d+)\\)?$/.exec(t);if(s){var c,l,a=s[2],u=s[3],o=s[4];if(null!==(c=a)&&void 0!==c&&c.startsWith(\"(\")&&(a=a.slice(1)),null!==(l=a)&&void 0!==l&&l.startsWith(\"<anonymous>\")){var d;a=n;var f=void 0!==s[1]?s[1].slice(0,-1):t.slice(0,s.index).trim();null!==(d=f)&&void 0!==d&&d.startsWith(\"at\")&&(f=f.slice(2).trim()),i=`${f} ${a}${u}${o}`.trim()}else i=a===e?`${r}${u}${o}`.trim():`${a}${u}${o}`.trim()}else i=t;return i}));if(c)for(var l=0;l<c.length;l+=1){if(isInlineScript(t)&&c[l].startsWith(r)&&c[l].match(toRegExp(t)))return!0;if(isInjectedScript(t)&&c[l].startsWith(n)&&c[l].match(toRegExp(t)))return!0}return!1}(e,t))return r.length&&r[0]!==RegExp.$1&&restoreRegExpValues(r),!0;var n=toRegExp(e),a=t.split(\"\\n\").slice(2).map((function(e){return e.trim()})).join(\"\\n\");return r.length&&r[0]!==RegExp.$1&&restoreRegExpValues(r),function(){var t=Object.getOwnPropertyDescriptor(RegExp.prototype,\"test\"),e=null==t?void 0:t.value;if(t&&\"function\"==typeof t.value)return e;throw new Error(\"RegExp.prototype.test is not a function\")}().call(n,a)}function getWildcardPropertyInChain(r,e){var a=arguments.length>2&&void 0!==arguments[2]&&arguments[2],i=arguments.length>3&&void 0!==arguments[3]?arguments[3]:[],t=arguments.length>4?arguments[4]:void 0,o=e.indexOf(\".\");if(-1===o){if(\"*\"===e||\"[]\"===e){for(var n in r)if(Object.prototype.hasOwnProperty.call(r,n))if(void 0!==t){var s=r[n];\"string\"==typeof s&&t instanceof RegExp?t.test(s)&&i.push({base:r,prop:n}):s===t&&i.push({base:r,prop:n})}else i.push({base:r,prop:n})}else if(void 0!==t){var p=r[e];\"string\"==typeof p&&t instanceof RegExp?t.test(p)&&i.push({base:r,prop:e}):r[e]===t&&i.push({base:r,prop:e})}else i.push({base:r,prop:e});return i}var c=e.slice(0,o);if(\"[]\"===c&&Array.isArray(r)||\"*\"===c&&r instanceof Object||\"[-]\"===c&&Array.isArray(r)||\"{-}\"===c&&r instanceof Object){var f=e.slice(o+1),y=Object.keys(r);if(\"{-}\"===c||\"[-]\"===c){var h=Array.isArray(r)?\"array\":\"object\";return(\"{-}\"!==c||\"object\"!==h)&&(\"[-]\"!==c||\"array\"!==h)||y.forEach((function(e){(function(t,r,e){var n=r.split(\".\"),_check=function(t,r){if(null==t)return!1;if(0===r.length)return void 0===e||(\"string\"==typeof t&&e instanceof RegExp?e.test(t):t===e);var n=r[0],i=r.slice(1);if(\"*\"===n||\"[]\"===n){if(Array.isArray(t))return t.some((function(t){return _check(t,i)}));if(\"object\"==typeof t&&null!==t)return Object.keys(t).some((function(r){return _check(t[r],i)}))}return!!Object.prototype.hasOwnProperty.call(t,n)&&_check(t[n],i)};return _check(t,n)})(r[e],f,t)&&i.push({base:r,prop:e})})),i}y.forEach((function(e){getWildcardPropertyInChain(r[e],f,a,i,t)}))}Array.isArray(r)&&r.forEach((function(r){void 0!==r&&getWildcardPropertyInChain(r,e,a,i,t)}));var d=r[c];return e=e.slice(o+1),void 0!==d&&getWildcardPropertyInChain(d,e,a,i,t),i}function restoreRegExpValues(e){if(e.length)try{var r;r=1===e.length?`(${e[0]})`:e.reduce((function(e,r,t){return 1===t?`(${e}),(${r})`:`${e},(${r})`}));var t=new RegExp(r);e.toString().replace(t,\"\")}catch(e){var n=`Failed to restore RegExp values: ${e}`;console.log(n)}}const updatedArgs=args?[].concat(source).concat(args):[source];try{(function(source,propsToRemove,obligatoryProps){var propsToMatch=arguments.length>3&&void 0!==arguments[3]?arguments[3]:\"\",stack=arguments.length>4&&void 0!==arguments[4]?arguments[4]:\"\";if(\"undefined\"!=typeof Proxy){var shouldLog=!propsToRemove&&!obligatoryProps,syntaxModeDetails=function(t,r){var e=\"legacy\",o=\"jsonpath\",s=\"string\"==typeof r?r.trim().toLowerCase():\"\";if(s===e||s===o)return{mode:s};var n=\"string\"==typeof t?t.trim():\"\";return n.startsWith(\"$\")||n.startsWith(\"[?\")?{mode:o}:{mode:e}}(propsToRemove,arguments.length>5&&void 0!==arguments[5]?arguments[5]:\"\"),prunePaths=\"legacy\"===syntaxModeDetails.mode?getPrunePath(propsToRemove):[],requiredPaths=\"legacy\"===syntaxModeDetails.mode?getPrunePath(obligatoryProps):[],nativeParse=window.JSON.parse,nativeStringify=window.JSON.stringify,nativeObjects={nativeParse:nativeParse,nativeStringify:nativeStringify},pruneJsonValue=function(root){return\"jsonpath\"===syntaxModeDetails.mode?function(e,r,t,a,n){var i=arguments.length>5&&void 0!==arguments[5]?arguments[5]:\"\",s=arguments.length>6&&void 0!==arguments[6]&&arguments[6],o=\"$\",l=\".\",u=\"..\",p=\"\",c=\"\\\\\",h=\")\",f=\"[\",v=\"@\",d=\"contains\",g=\"equal\",m=\"exists\",y=\"greater_than\",P=\"greater_than_or_equal\",k=\"less_than\",x=\"less_than_or_equal\",S=\"not_equal\",$=\"regex\",C=[\"==\",\"!=\",\"<=\",\">=\",\"*=\",\"=~\",\"<\",\">\",\"=\"],b=/^[A-Za-z_$][\\w$]*$/;function isObjectLike(e){return null!==e&&\"object\"==typeof e}function isPlainObject(e){if(!isObjectLike(e)||Array.isArray(e))return!1;var r=Object.getPrototypeOf(e);return r===Object.prototype||null===r}function isQuoteCharacter(e){return\"'\"===e||'\"'===e}function isEscaped(e,r){for(var t=0,a=r-1;a>=0&&e[a]===c;)t+=1,a-=1;return t%2!=0}function stripQuotes(e){var r=e.trim();if(r.length<2)return r;var t=r[0],a=r[r.length-1];return isQuoteCharacter(t)&&t===a?r.slice(1,-1).split(\"\\\\'\").join(\"'\").split('\\\\\"').join('\"').split(c+c).join(c):r}function appendPath(e,r){return\"number\"==typeof r||/^\\d+$/.test(String(r))?`${e}[${r}]`:b.test(String(r))?`${e}.${r}`:`${e}['${String(r).replace(/'/g,\"\\\\'\")}']`}function createCandidate(e,r,t,a){return{key:t,parent:r,path:a,value:e}}function walkTopLevelChars(e,r){for(var t=0,a=0,n=0,i=null,s=0;s<e.length;s+=1){var o=e[s];if(i){if(o!==i||isEscaped(e,s)||(i=null),r(s,!1))return}else if(isQuoteCharacter(o)){if(i=o,r(s,!1))return}else{var l=!0;if(o===f?t+=1:\"]\"===o?t-=1:\"{\"===o?a+=1:\"}\"===o?a-=1:\"(\"===o?n+=1:o===h?n-=1:l=!1,r(s,!l&&0===t&&0===a&&0===n))return}}}function findClosingBracket(e,r){for(var t=0,a=null,n=r;n<e.length;n+=1){var i=e[n];if(a)i!==a||isEscaped(e,n)||(a=null);else if(isQuoteCharacter(i))a=i;else if(i!==f){if(\"]\"===i&&0==(t-=1))return n}else t+=1}return-1}function splitByTopLevelToken(e,r){var t=[],a=p,n=new Set;return walkTopLevelChars(e,(function(i,s){if(!n.has(i))if(s&&e.startsWith(r,i)){t.push(a.trim()),a=p;for(var o=1;o<r.length;o+=1)n.add(i+o)}else a+=e[i]})),a!==p&&t.push(a.trim()),t}function normalizeFilterPath(e){var r=e.trim();return r.startsWith(v)&&(r=r.slice(1)),r===p?o:r.startsWith(o)?r:r.startsWith(l)||r.startsWith(u)||r.startsWith(f)?`${o}${r}`:`${o}${l}${r}`}function parseFilterExpression(e){var r=e.trim();if(r.startsWith(\"(\")&&r.endsWith(h)){for(var t=0,a=null,n=!1,i=0;i<r.length;i+=1){var s=r[i];if(a)s!==a||isEscaped(r,i)||(a=null);else if(isQuoteCharacter(s))a=s;else if(\"(\"===s)t+=1;else if(s===h&&0==(t-=1)){n=i===r.length-1;break}}n&&(r=r.slice(1,-1).trim())}var u=splitByTopLevelToken(r,\"||\");if(u.length>1)return{conditions:u.map((function(e){return parseFilterExpression(e)})),operator:\"or\"};var p=splitByTopLevelToken(r,\"&&\");if(p.length>1)return{conditions:p.map((function(e){return parseFilterExpression(e)})),operator:\"and\"};if(r.startsWith(\"!\")&&!r.startsWith(\"!=\"))return{condition:parseFilterExpression(r.slice(1).trim()),operator:\"not\"};var c,b,w=(b=null,walkTopLevelChars(c=r,(function(e,r){if(!r)return!1;for(var t=null,a=0;a<C.length;a+=1){var n=C[a];c.startsWith(n,e)&&(null===t||n.length>t.length)&&(t=n)}return null!==t&&(b={index:e,operator:t},!0)})),b);if(!w)return{operator:m,selectorPath:normalizeFilterPath(r)};var W=r.slice(0,w.index).trim(),A=r.slice(w.index+w.operator.length).trim(),E=g;\"!=\"===w.operator?E=S:\"<\"===w.operator?E=k:\"<=\"===w.operator?E=x:\">\"===w.operator?E=y:\">=\"===w.operator?E=P:\"*=\"===w.operator?E=d:(\"=~\"===w.operator||\"=\"===w.operator&&/^\\/.*\\/[a-z]*$/i.test(A))&&(E=$);var O,j,F=A.trim(),L=F===o||F.startsWith(o+l)||F.startsWith(o+f),M=F===v||F.startsWith(v+l)||F.startsWith(v+f);return L||M?{comparisonSelectorPath:normalizeFilterPath(F),operator:E,resolveComparisonAgainstRoot:L,selectorPath:normalizeFilterPath(W)}:{comparisonValue:(O=A,j=O.trim(),\"true\"===j||\"false\"!==j&&(\"null\"===j?null:/^-?\\d+(?:\\.\\d+)?$/.test(j)?Number(j):/^\\/.*\\/[a-z]*$/i.test(j)?toRegExp(j):stripQuotes(j))),operator:E,selectorPath:normalizeFilterPath(W)}}function parseBracketStep(e,r){if(\"*\"===e)return{mode:\"wildcard\",recursive:r};if(e.startsWith(\"?\"))return{filter:parseFilterExpression(e.slice(1)),mode:\"filter\",recursive:r};if(/^\\(@\\.length(?:-\\d+)?\\)$/.test(e)){var t=e.match(/^\\(@\\.length(?:-(\\d+))?\\)$/);return{mode:\"computed-index\",recursive:r,subtractLength:t&&t[1]?Number(t[1]):0}}var a=function(e){var r=[],t=p;return walkTopLevelChars(e,(function(a,n){n&&\":\"===e[a]?(r.push(t.trim()),t=p):t+=e[a]})),r.push(t.trim()),r}(e);if(a.length>1){var n=a[0]===p?void 0:Number(a[0]);return{mode:\"slice\",recursive:r,slice:{end:a[1]===p?void 0:Number(a[1]),start:n,step:a.length>2&&a[2]!==p?Number(a[2]):1}}}var i=function(e,r){var t=[],a=p;return walkTopLevelChars(e,(function(n,i){i&&e[n]===r?(t.push(a.trim()),a=p):a+=e[n]})),a!==p&&t.push(a.trim()),t}(e,\",\");return i.every((function(e){return/^-?\\d+$/.test(e)}))?{indexes:i.map((function(e){return Number(e)})),mode:\"index\",recursive:r}:{mode:\"property\",properties:i.map((function(e){return r=e.trim(),/^\\/.*\\/[a-z]*$/i.test(r)?toRegExp(r):stripQuotes(r);var r})),recursive:r}}function parseJsonPathSelector(e){var r=[],t=0;for(e.startsWith(o)&&(t=1);t<e.length;){var a=!1;if(e.startsWith(u,t)?(a=!0,t+=2):e[t]===l&&(t+=1),t>=e.length)break;if(e[t]!==f)if(\"*\"!==e[t]){for(var n=t;n<e.length&&e[n]!==l&&e[n]!==f;)n+=1;var i=e.slice(t,n).trim();i&&r.push({mode:\"property\",properties:[i],recursive:a}),t=n}else r.push({mode:\"wildcard\",recursive:a}),t+=1;else{var s=findClosingBracket(e,t);if(-1===s)throw new Error(`Invalid JSONPath expression: ${e}`);var p=e.slice(t+1,s).trim();r.push(parseBracketStep(p,a)),t=s+1}}return{steps:r}}function buildAppendUpdater(e,r,t){var a,n=e.trim();if(n.startsWith(\"{\")||n.startsWith(f))a=r(n);else{var i=t(n);if(!i||i.shouldReplaceArgument)throw new Error(`Invalid append value: ${e}`);a=i.constantValue}return function(e){return Array.isArray(e)?Array.isArray(a)?e.concat(a):e.concat([a]):isPlainObject(e)&&isPlainObject(a)?Object.assign({},e,a):\"string\"==typeof e&&\"string\"==typeof a?`${e}${a}`:a}}function buildSetUpdater(e,r,t){var a=e.trim();if(a.startsWith(\"replace(\")&&a.endsWith(h))return function(e,r){var t=r(e.slice(8,-1));if(\"string\"!=typeof t.regex||\"string\"!=typeof t.replacement)throw new Error('Invalid replace payload: \"regex\" and \"replacement\" must be strings');var a=t.regex.startsWith(\"/\")?toRegExp(t.regex):new RegExp(t.regex,t.flags||p);return function(e){return\"string\"!=typeof e?e:e.replace(a,t.replacement)}}(a,r);var n=t(a);if(!n)throw new Error(`Invalid set value: ${e}`);return function(e){return function(e,t){return t.shouldReplaceArgument?\"string\"==typeof e?e.replace(t.replaceRegexValue,t.constantValue):e:!t.shouldMergeJsonValue||null===e||\"object\"!=typeof e||Array.isArray(e)||null===t.constantValue||\"object\"!=typeof t.constantValue||Array.isArray(t.constantValue)?t.constantValue:Object.assign({},e,t.constantValue)}(e,n)}}function getChildCandidates(e){if(!isObjectLike(e.value))return[];for(var r=Object.keys(e.value),t=[],a=0;a<r.length;a+=1){var n=r[a];t.push(createCandidate(e.value[n],e.value,n,appendPath(e.path,n)))}return t}function getRecursiveCandidates(e){for(var r=[e],t=getChildCandidates(e),a=0;a<t.length;a+=1)r.push(t[a]);for(var n=1;n<r.length;){for(var i=getChildCandidates(r[n]),s=0;s<i.length;s+=1)r.push(i[s]);n+=1}return r}function resolveIndex(e,r){return r<0?e+r:r}function applyDirectStep(e,r){var t=[];if(\"property\"===r.mode){if(!isObjectLike(e.value)||!r.properties)return t;for(var a=new Set,n=0;n<r.properties.length;n+=1){var i=r.properties[n];if(i instanceof RegExp)for(var s=Object.keys(e.value),o=0;o<s.length;o+=1){var l=s[o];i.lastIndex=0,i.test(l)&&!a.has(l)&&(a.add(l),t.push(createCandidate(e.value[l],e.value,l,appendPath(e.path,l))))}else!a.has(i)&&Object.prototype.hasOwnProperty.call(e.value,i)&&(a.add(i),t.push(createCandidate(e.value[i],e.value,i,appendPath(e.path,i))))}return t}if(\"wildcard\"===r.mode)return getChildCandidates(e);if(\"index\"===r.mode){if(!Array.isArray(e.value)||!r.indexes)return t;for(var u=0;u<r.indexes.length;u+=1){var p=resolveIndex(e.value.length,r.indexes[u]);p>=0&&p<e.value.length&&t.push(createCandidate(e.value[p],e.value,p,appendPath(e.path,p)))}return t}if(\"computed-index\"===r.mode){if(!Array.isArray(e.value))return t;var c=e.value.length-(r.subtractLength||0);return c>=0&&c<e.value.length&&t.push(createCandidate(e.value[c],e.value,c,appendPath(e.path,c))),t}if(\"slice\"===r.mode){if(!Array.isArray(e.value)||!r.slice)return t;for(var h=function(e,r){var t,a,n=[],i=void 0===r.step?1:r.step;if(0===i)return n;if(t=void 0===r.start?i>0?0:e-1:resolveIndex(e,r.start),a=void 0===r.end?i>0?e:-1:resolveIndex(e,r.end),i>0){for(var s=Math.max(0,t);s<Math.min(e,a);s+=i)n.push(s);return n}for(var o=Math.min(e-1,t);o>Math.max(-1,a);o+=i)n.push(o);return n}(e.value.length,r.slice),f=0;f<h.length;f+=1){var v=h[f];t.push(createCandidate(e.value[v],e.value,v,appendPath(e.path,v)))}}return t}function evaluateSelector(e,t){function matchesFilterValue(e,t){if(\"conditions\"in t)return\"and\"===t.operator?t.conditions.every((function(r){return matchesFilterValue(e,r)})):t.conditions.some((function(r){return matchesFilterValue(e,r)}));if(\"condition\"in t)return!matchesFilterValue(e,t.condition);var a=evaluateSelector(e,parseJsonPathSelector(t.selectorPath));if(t.operator===m)return a.length>0;var n=t.comparisonValue;if(t.comparisonSelectorPath){var i=evaluateSelector(t.resolveComparisonAgainstRoot?r:e,parseJsonPathSelector(t.comparisonSelectorPath));if(0===i.length)return!1;n=i[0].value}for(var s=0;s<a.length;s+=1){var o=a[s].value;if(t.operator!==d){if(t.operator!==$){if(t.operator===g&&o===n)return!0;if(t.operator===S&&o!==n)return!0;if(t.operator===k&&o<n)return!0;if(t.operator===x&&o<=n)return!0;if(t.operator===y&&o>n)return!0;if(t.operator===P&&o>=n)return!0}else if(\"string\"==typeof o&&n instanceof RegExp&&(n.lastIndex=0,n.test(o)))return!0}else if(\"string\"==typeof o&&o.includes(String(n)))return!0}return!1}function applyFilterStep(e,r){for(var t=[],a=0;a<e.length;a+=1){var n=e[a];if(Array.isArray(n.value))for(var i=0;i<n.value.length;i+=1)matchesFilterValue(n.value[i],r)&&t.push(createCandidate(n.value[i],n.value,i,appendPath(n.path,i)));else matchesFilterValue(n.value,r)&&t.push(n)}return t}for(var a=[createCandidate(e,null,null,o)],n=0;n<t.steps.length;n+=1){var i=t.steps[n];if(\"filter\"===i.mode&&i.filter)a=applyFilterStep(a,i.filter);else{for(var s=[],l=0;l<a.length;l+=1)for(var u=a[l],p=i.recursive?getRecursiveCandidates(u):[u],c=0;c<p.length;c+=1)for(var h=applyDirectStep(p[c],i),f=0;f<h.length;f+=1)s.push(h[f]);a=s}}return a}var w=!1;function markMutated(){w=!0}if(!isObjectLike(r))return r;var W,A=(W=a)&&W.nativeParse?W.nativeParse:JSON.parse,E=function(e){return e&&e.nativeStringify?e.nativeStringify:JSON.stringify}(a),O=(new Error).stack||\"\";if(i&&!matchStackTrace(i,O))return r;if(!t)return logMessage(e,`${window.location.hostname}\\n${E(r,null,2)}\\nStack trace:\\n${O}`,!0),logMessage(e,r,!0,!1),r;try{for(var j=function(e,r,t){var n,i=function(e){var r=-1,t=\"remove\",a=0;return walkTopLevelChars(e,(function(n,i){return!!i&&(e.startsWith(\"+=\",n)?(r=n,t=\"append\",a=2,!0):\"=\"===e[n]&&(r=n,t=\"set\",a=1,!0))})),-1===r?{mode:\"remove\",selectorPart:e.trim(),valuePart:p}:{mode:t,selectorPart:e.slice(0,r).trim(),valuePart:e.slice(r+a).trim()}}(e),s=function(e){for(var r=[],t=e.trim();t.startsWith(\"[?\");){var a=findClosingBracket(t,0);if(-1===a)break;var n=t.slice(1,a);r.push(parseFilterExpression(n.slice(1))),t=t.slice(a+1).trim()}return{guards:r,selectorPart:t}}(i.selectorPart),c=parseJsonPathSelector((n=s.selectorPart.trim())===p?o:n.startsWith(o)?n:n.startsWith(l)||n.startsWith(f)||n.startsWith(u)?`${o}${n}`:`${o}${l}${n}`),h={mode:i.mode};return\"append\"===i.mode?h={mode:\"append\",updater:buildAppendUpdater(i.valuePart,r,t)}:\"set\"===i.mode&&(h={mode:\"set\",updater:buildSetUpdater(i.valuePart,r,t)}),{guards:s.guards,mutation:h,selector:c}}(t,A,(function(r){return function(e,l,n){var s,a=\"json:\",r=\"replace:\",t=\"\",o=!1,u=!1;if(l.startsWith(r)){var i=extractRegexAndReplacement(l);if(!i)return logMessage(e,`Invalid argument value format: ${l}`),null;t=i.regexPart,s=i.replacementPart,o=!0}else if(l.startsWith(a))try{s=n(l.slice(a.length)),u=!0}catch(n){return logMessage(e,`Invalid JSON argument value: ${l}`),null}else if(\"undefined\"===l)s=void 0;else if(\"false\"===l)s=!1;else if(\"true\"===l)s=!0;else if(\"null\"===l)s=null;else if(\"NaN\"===l)s=NaN;else if(\"emptyArr\"===l||\"[]\"===l)s=[];else if(\"emptyObj\"===l||\"{}\"===l)s={};else if(\"noopFunc\"===l)s=noopFunc;else if(\"noopCallbackFunc\"===l)s=noopCallbackFunc;else if(\"trueFunc\"===l)s=trueFunc;else if(\"falseFunc\"===l)s=falseFunc;else if(\"throwFunc\"===l)s=throwFunc;else if(\"noopPromiseResolve\"===l)s=noopPromiseResolve;else if(\"noopPromiseReject\"===l)s=noopPromiseReject;else if(/^-?\\d+$/.test(l)){if(s=parseFloat(l),nativeIsNaN(s))return null}else s=l;return{constantValue:s,replaceRegexValue:t,shouldReplaceArgument:o,shouldMergeJsonValue:u}}(e,r,A)})),F=0;F<j.guards.length;F+=1)if(0===evaluateSelector(r,{steps:[{filter:j.guards[F],mode:\"filter\",recursive:!1}]}).length)return r;var L=evaluateSelector(r,j.selector);if(s)return L.length>0&&n&&n(),r;if(!(\"remove\"===j.mutation.mode||\"string\"==typeof e.name&&e.name.startsWith(\"trusted-\")))return logMessage(e,\"JSONPath set and append operations are allowed only in trusted scriptlets\"),r;if(\"remove\"===j.mutation.mode)return function(e){for(var r=new Set,t=new Map,a=0;a<e.length;a+=1){var n=e[a];if(null!==n.parent&&null!==n.key&&!r.has(n.path))if(r.add(n.path),Array.isArray(n.parent)){var i=t.get(n.parent)||[];i.push(Number(n.key)),t.set(n.parent,i)}else delete n.parent[n.key],markMutated()}t.forEach((function(e,r){for(var t=Array.from(new Set(e)).sort((function(e,r){return r-e})),a=0;a<t.length;a+=1){var n=t[a];n>=0&&n<r.length&&(r.splice(n,1),markMutated())}}))}(L),w&&n&&n(),r;j.mutation.updater&&(r=function(e,r,t){for(var a=new Set,n=e,i=0;i<r.length;i+=1){var s=r[i];a.has(s.path)||(a.add(s.path),null!==s.parent||null!==s.key||s.path!==o?null!==s.parent&&null!==s.key&&(s.parent[s.key]=t(s.parent[s.key]),markMutated()):(n=t(n),markMutated()))}return n}(r,L,j.mutation.updater),w&&n&&n())}catch(r){logMessage(e,`JSONPath processing failed for expression '${t}': ${r.message}`)}return r}(source,root,propsToRemove,nativeObjects,(function(){return hit(source)}),\"\"):function(e,r,n,a,t,i){var{nativeStringify:o}=i;if(0===n.length&&0===a.length)return logMessage(e,`${window.location.hostname}\\n${o(r,null,2)}\\nStack trace:\\n${(new Error).stack}`,!0),r&&\"object\"==typeof r&&logMessage(e,r,!0,!1),r;try{if(!1===function(n,t,r,e,a,i){if(!t)return!1;var o,{nativeStringify:u}=i,c=r.map((function(n){return n.path})),f=e.map((function(n){return n.path}));if(0===c.length&&f.length>0){var g=u(t);if(toRegExp(f.join(\"\")).test(g))return logMessage(n,`${window.location.hostname}\\n${u(t,null,2)}\\nStack trace:\\n${(new Error).stack}`,!0),t&&\"object\"==typeof t&&logMessage(n,t,!0,!1),o=!1}if(a&&!matchStackTrace(a,(new Error).stack||\"\"))return o=!1;for(var s,l=[\".*.\",\"*.\",\".*\",\".[].\",\"[].\",\".[]\"],_loop=function(){var n=f[p],r=n.split(\".\").pop(),e=l.some((function(t){return n.includes(t)})),a=getWildcardPropertyInChain(t,n,e);if(!a.length)return{v:o=!1};o=!e;for(var i=0;i<a.length;i+=1){var u=\"string\"==typeof r&&void 0!==a[i].base[r];o=e?u||o:u&&o}},p=0;p<f.length;p+=1)if(s=_loop())return s.v;return o}(e,r,n,a,t,i))return r;n.forEach((function(n){for(var a=n.path,t=n.value,i=getWildcardPropertyInChain(r,a,!0,[],t),o=i.length-1;o>=0;o-=1){var s=i[o];if(void 0!==s&&s.base)if(hit(e),Array.isArray(s.base))try{var l=Number(s.prop);if(Number.isNaN(l))continue;s.base.splice(l,1)}catch(e){console.error(\"Error while deleting array element\",e)}else delete s.base[s.prop]}}))}catch(r){logMessage(e,r)}return r}(source,root,prunePaths,requiredPaths,\"\",nativeObjects)},nativeOpen=window.XMLHttpRequest.prototype.open,nativeSend=window.XMLHttpRequest.prototype.send,matchedXhrRequests=new Map,xhrRequestHeaders=new Map,setRequestHeaderHandler={apply:function(setRequestHeader,thisArgument,argsList){var headers=xhrRequestHeaders.get(thisArgument);return headers&&headers.push(argsList),Reflect.apply(setRequestHeader,thisArgument,argsList)}},openHandler={apply:function(target,thisArg,args){var xhrData=getXhrData.apply(null,args);return(function(e,t,r){if(\"\"===t||\"*\"===t)return!0;var a,s=function(e){var r={};return e.split(\" \").forEach((function(e){var n=e.indexOf(\":\"),i=e.slice(0,n);if(function(e){return[\"url\",\"method\",\"headers\",\"body\",\"credentials\",\"cache\",\"redirect\",\"referrer\",\"referrerPolicy\",\"integrity\",\"keepalive\",\"signal\",\"mode\"].includes(e)}(i)){var s=e.slice(n+1);r[i]=s}else r.url=e})),r}(t);if(function(t){return Object.values(t).every((function(t){return function(e){var t,n=function(e){return e.replace(/[.*+?^${}()|[\\]\\\\]/g,\"\\\\$&\")}(e);\"/\"===e[0]&&\"/\"===e[e.length-1]&&(n=e.slice(1,-1));try{t=new RegExp(n),t=!0}catch(e){t=!1}return t}(t)}))}(s)){var n=function(t){var a={};return Object.keys(t).forEach((function(c){a[c]=toRegExp(t[c])})),a}(s);a=Object.keys(n).every((function(e){var t=n[e],a=r[e];return Object.prototype.hasOwnProperty.call(r,e)&&\"string\"==typeof a&&(null==t?void 0:t.test(a))}))}else logMessage(e,`Invalid parameter: ${t}`),a=!1;return a}(source,propsToMatch,xhrData)||shouldLog)&&matchedXhrRequests.set(thisArg,xhrData),matchedXhrRequests.has(thisArg)&&!xhrRequestHeaders.has(thisArg)&&(xhrRequestHeaders.set(thisArg,[]),thisArg.setRequestHeader=new Proxy(thisArg.setRequestHeader,setRequestHeaderHandler)),Reflect.apply(target,thisArg,args)}},sendHandler={apply:function(target,thisArg,args){if(!matchedXhrRequests.has(thisArg))return Reflect.apply(target,thisArg,args);var xhrData=matchedXhrRequests.get(thisArg),stackTrace=(new Error).stack||\"\";if(!xhrData||stack&&!matchStackTrace(stack,stackTrace))return xhrRequestHeaders.delete(thisArg),matchedXhrRequests.delete(thisArg),Reflect.apply(target,thisArg,args);var forgedRequest=new XMLHttpRequest;forgedRequest.withCredentials=thisArg.withCredentials,forgedRequest.addEventListener(\"readystatechange\",(function(){if(4===forgedRequest.readyState){var{readyState:readyState,response:response,responseText:responseText,responseURL:responseURL,responseXML:responseXML,status:status,statusText:statusText}=forgedRequest,content=responseText||response;if(\"string\"==typeof content||\"object\"==typeof content){var modifiedContent;if(\"string\"==typeof content)try{var jsonContent=nativeParse(content);if(shouldLog)logMessage(source,`${window.location.hostname}\\n${nativeStringify(jsonContent,null,2)}\\nStack trace:\\n${stackTrace}`,!0),logMessage(source,jsonContent,!0,!1),modifiedContent=content;else{modifiedContent=pruneJsonValue(jsonContent);try{var{responseType:responseType}=thisArg;switch(responseType){case\"\":case\"text\":modifiedContent=nativeStringify(modifiedContent);break;case\"arraybuffer\":modifiedContent=(new TextEncoder).encode(nativeStringify(modifiedContent)).buffer;break;case\"blob\":modifiedContent=new Blob([nativeStringify(modifiedContent)])}}catch(error){logMessage(source,`Response body cannot be converted to response type: '${content}'`),modifiedContent=content}}}catch(error){logMessage(source,`Response body cannot be converted to json: '${content}'`),modifiedContent=content}Object.defineProperties(thisArg,{readyState:{value:readyState,writable:!1},responseURL:{value:responseURL,writable:!1},responseXML:{value:responseXML,writable:!1},status:{value:status,writable:!1},statusText:{value:statusText,writable:!1},response:{value:modifiedContent,writable:!1},responseText:{value:modifiedContent,writable:!1}}),setTimeout((function(){var stateEvent=new Event(\"readystatechange\");thisArg.dispatchEvent(stateEvent);var loadEvent=new Event(\"load\");thisArg.dispatchEvent(loadEvent);var loadEndEvent=new Event(\"loadend\");thisArg.dispatchEvent(loadEndEvent)}),1),hit(source)}}})),nativeOpen.apply(forgedRequest,[xhrData.method,xhrData.url,Boolean(xhrData.async)]),(xhrRequestHeaders.get(thisArg)||[]).forEach((function(header){forgedRequest.setRequestHeader(header[0],header[1])})),xhrRequestHeaders.delete(thisArg),matchedXhrRequests.delete(thisArg);try{Reflect.apply(nativeSend,forgedRequest,args)}catch(_unused){return Reflect.apply(target,thisArg,args)}}};XMLHttpRequest.prototype.open=new Proxy(XMLHttpRequest.prototype.open,openHandler),XMLHttpRequest.prototype.send=new Proxy(XMLHttpRequest.prototype.send,sendHandler)}}).apply(this,updatedArgs),source.uniqueId&&Object.defineProperty(Window.prototype.toString,uniqueIdentifier,{value:\"done\",enumerable:!1,writable:!1,configurable:!1})}catch(e){console.log(e)}}"
        },
        {
            "names": [
                "log-addEventListener",
                "addEventListener-logger.js",
                "ubo-addEventListener-logger.js",
                "aell.js",
                "ubo-aell.js",
                "ubo-addEventListener-logger",
                "ubo-aell"
            ],
            "scriptlet": "function logAddEventListener(source,args){const uniqueIdentifier=source.uniqueId+source.name+\"_\"+(Array.isArray(args)?args.join(\"_\"):\"\");if(source.uniqueId&&\"done\"===Window.prototype.toString[uniqueIdentifier])return;function convertTypeToString(n){return void 0===n?\"undefined\":\"object\"==typeof n?null===n?\"null\":objectToString(n):String(n)}function logMessage(e,o){var r=arguments.length>2&&void 0!==arguments[2]&&arguments[2],a=!(arguments.length>3&&void 0!==arguments[3])||arguments[3],{name:n,verbose:g}=e;if(r||g){var i=console.log;a?i(`${n}: ${o}`):Array.isArray(o)?i(`${n}:`,...o):i(`${n}:`,o)}}function objectToString(t){return t&&\"object\"==typeof t?function(t){return 0===Object.keys(t).length&&!t.prototype}(t)?\"{}\":Object.entries(t).map((function(t){var n=t[0],e=t[1],o=e;return e instanceof Object&&(o=`{ ${objectToString(e)} }`),`${n}:\"${o}\"`})).join(\" \"):String(t)}const updatedArgs=args?[].concat(source).concat(args):[source];try{(function(source,noProtect){var nativeAddEventListener=window.EventTarget.prototype.addEventListener;function addEventListenerWrapper(type,listener){var _this$constructor,n;if(null!=type&&(void 0!==(n=listener)&&(\"function\"==typeof n||\"object\"==typeof n&&null!==n&&\"handleEvent\"in n&&\"function\"==typeof n.handleEvent))){var targetElement,targetElementInfo,listenerInfo=function(n){return\"function\"==typeof n?n.toString():n.handleEvent.toString()}(listener);this&&(this instanceof Window?targetElementInfo=\"window\":this instanceof Document?targetElementInfo=\"document\":this instanceof Element&&(targetElement=this,targetElementInfo=function(e){if(!(e&&e instanceof Element&&e.attributes&&e.nodeName))return\"\";for(var t=e.attributes,n=e.nodeName.toLowerCase(),a=0;a<t.length;a+=1){var r=t[a];n+=`[${r.name}=\"${r.value}\"]`}return n}(this))),targetElementInfo?(logMessage(source,`addEventListener(\"${type}\", ${listenerInfo})\\nElement: ${targetElementInfo}`,!0),targetElement&&console.log(\"log-addEventListener Element:\",targetElement)):logMessage(source,`addEventListener(\"${type}\", ${listenerInfo})`,!0),function(e){if(e.verbose){try{var n=console.trace.bind(console),i=\"[AdGuard] \";\"corelibs\"===e.engine?i+=e.ruleText:(e.domainName&&(i+=`${e.domainName}`),e.args?i+=`#%#//scriptlet('${e.name}', '${e.args.join(\"', '\")}')`:i+=`#%#//scriptlet('${e.name}')`),n&&n(i)}catch(e){}\"function\"==typeof window.__debug&&window.__debug(e)}}(source)}else{var _message2=`Invalid event type or listener passed to addEventListener:\\n        type: ${convertTypeToString(type)}\\n        listener: ${convertTypeToString(listener)}`;logMessage(source,_message2,!0)}var context=this;this&&\"Window\"===(null===(_this$constructor=this.constructor)||void 0===_this$constructor?void 0:_this$constructor.name)&&this!==window&&(context=window);for(var _len=arguments.length,args=new Array(_len>2?_len-2:0),_key=2;_key<_len;_key++)args[_key-2]=arguments[_key];return nativeAddEventListener.apply(context,[type,listener,...args])}if(\"true\"===noProtect)window.EventTarget.prototype.addEventListener=addEventListenerWrapper;else{var descriptor={configurable:!0,set:function(){},get:function(){return addEventListenerWrapper}};Object.defineProperty(window.EventTarget.prototype,\"addEventListener\",descriptor),Object.defineProperty(window,\"addEventListener\",descriptor),Object.defineProperty(document,\"addEventListener\",descriptor)}}).apply(this,updatedArgs),source.uniqueId&&Object.defineProperty(Window.prototype.toString,uniqueIdentifier,{value:\"done\",enumerable:!1,writable:!1,configurable:!1})}catch(e){console.log(e)}}"
        },
        {
            "names": [
                "log-eval"
            ],
            "scriptlet": "function logEval(source,args){const uniqueIdentifier=source.uniqueId+source.name+\"_\"+(Array.isArray(args)?args.join(\"_\"):\"\");if(source.uniqueId&&\"done\"===Window.prototype.toString[uniqueIdentifier])return;function hit(e){if(e.verbose){try{var n=console.trace.bind(console),i=\"[AdGuard] \";\"corelibs\"===e.engine?i+=e.ruleText:(e.domainName&&(i+=`${e.domainName}`),e.args?i+=`#%#//scriptlet('${e.name}', '${e.args.join(\"', '\")}')`:i+=`#%#//scriptlet('${e.name}')`),n&&n(i)}catch(e){}\"function\"==typeof window.__debug&&window.__debug(e)}}function logMessage(e,o){var r=arguments.length>2&&void 0!==arguments[2]&&arguments[2],a=!(arguments.length>3&&void 0!==arguments[3])||arguments[3],{name:n,verbose:g}=e;if(r||g){var i=console.log;a?i(`${n}: ${o}`):Array.isArray(o)?i(`${n}:`,...o):i(`${n}:`,o)}}const updatedArgs=args?[].concat(source).concat(args):[source];try{(function(source){var nativeEval=window.eval;window.eval=function(str){return hit(source),logMessage(source,`eval(\"${str}\")`,!0),nativeEval(str)};var nativeFunction=window.Function;function FunctionWrapper(){hit(source);for(var _len=arguments.length,args=new Array(_len),_key=0;_key<_len;_key++)args[_key]=arguments[_key];return logMessage(source,`new Function(${args.join(\", \")})`,!0),nativeFunction.apply(this,[...args])}FunctionWrapper.prototype=Object.create(nativeFunction.prototype),FunctionWrapper.prototype.constructor=FunctionWrapper,window.Function=FunctionWrapper}).apply(this,updatedArgs),source.uniqueId&&Object.defineProperty(Window.prototype.toString,uniqueIdentifier,{value:\"done\",enumerable:!1,writable:!1,configurable:!1})}catch(e){console.log(e)}}"
        },
        {
            "names": [
                "log",
                "abp-log"
            ],
            "scriptlet": "function log(source,args){const uniqueIdentifier=source.uniqueId+source.name+\"_\"+(Array.isArray(args)?args.join(\"_\"):\"\");if(source.uniqueId&&\"done\"===Window.prototype.toString[uniqueIdentifier])return;const updatedArgs=args?[].concat(source).concat(args):[source];try{(function(){for(var _len=arguments.length,args=new Array(_len),_key=0;_key<_len;_key++)args[_key]=arguments[_key];console.log(args)}).apply(this,updatedArgs),source.uniqueId&&Object.defineProperty(Window.prototype.toString,uniqueIdentifier,{value:\"done\",enumerable:!1,writable:!1,configurable:!1})}catch(e){console.log(e)}}"
        },
        {
            "names": [
                "log-on-stack-trace"
            ],
            "scriptlet": "function logOnStackTrace(source,args){const uniqueIdentifier=source.uniqueId+source.name+\"_\"+(Array.isArray(args)?args.join(\"_\"):\"\");if(source.uniqueId&&\"done\"===Window.prototype.toString[uniqueIdentifier])return;function getPropertyInChain(e,r){var n=r.indexOf(\".\");if(-1===n)return{base:e,prop:r};var i=r.slice(0,n);if(null===e)return{base:e,prop:i,chain:r};var t=e[i];return r=r.slice(n+1),(e instanceof Object||\"object\"==typeof e)&&function(t){return 0===Object.keys(t).length&&!t.prototype}(e)||null===t?{base:e,prop:i,chain:r}:void 0!==t?getPropertyInChain(t,r):(Object.defineProperty(e,i,{configurable:!0}),{base:e,prop:i,chain:r})}function hit(e){if(e.verbose){try{var n=console.trace.bind(console),i=\"[AdGuard] \";\"corelibs\"===e.engine?i+=e.ruleText:(e.domainName&&(i+=`${e.domainName}`),e.args?i+=`#%#//scriptlet('${e.name}', '${e.args.join(\"', '\")}')`:i+=`#%#//scriptlet('${e.name}')`),n&&n(i)}catch(e){}\"function\"==typeof window.__debug&&window.__debug(e)}}function logMessage(e,o){var r=arguments.length>2&&void 0!==arguments[2]&&arguments[2],a=!(arguments.length>3&&void 0!==arguments[3])||arguments[3],{name:n,verbose:g}=e;if(r||g){var i=console.log;a?i(`${n}: ${o}`):Array.isArray(o)?i(`${n}:`,...o):i(`${n}:`,o)}}const updatedArgs=args?[].concat(source).concat(args):[source];try{(function(source,property){if(property){var refineStackTrace=function(stackString){var regExpValues=function(){try{for(var r=[],e=1;e<10;e+=1){var a=`$${e}`;if(!RegExp[a])break;r.push(RegExp[a])}return r}catch(r){return[]}}(),logInfoArray=stackString.split(\"\\n\").slice(2).map((function(line){return line.replace(/ {4}at /,\"\")})).map((function(line){var funcName,funcFullPath,reg=/\\(([^\\)]+)\\)/,regFirefox=/(.*?@)(\\S+)(:\\d+):\\d+\\)?$/;return line.match(reg)?(funcName=line.split(\" \").slice(0,-1).join(\" \"),funcFullPath=line.match(reg)[1]):line.match(regFirefox)?(funcName=line.split(\"@\").slice(0,-1).join(\" \"),funcFullPath=line.match(regFirefox)[2]):(funcName=\"function name is not available\",funcFullPath=line),[funcName,funcFullPath]})),logInfoObject={};return logInfoArray.forEach((function(pair){logInfoObject[pair[0]]=pair[1]})),regExpValues.length&&regExpValues[0]!==RegExp.$1&&function(e){if(e.length)try{var r=\"\";r=1===e.length?`(${e[0]})`:e.reduce((function(e,r,t){return 1===t?`(${e}),(${r})`:`${e},(${r})`}));var t=new RegExp(r);e.toString().replace(t,\"\")}catch(e){var n=`Failed to restore RegExp values: ${e}`;console.log(n)}}(regExpValues),logInfoObject},_setChainPropAccess=function(owner,property){var chainInfo=getPropertyInChain(owner,property),{base:base,prop:prop,chain:chain}=chainInfo;if(chain)!function(t,n,e,c){var i;try{i=t[n]}catch(t){i=void 0}Object.defineProperty(t,n,{get:function(){return i},set:function(t){i=t,t instanceof Object&&c(t,e)}})}(owner,prop,chain,_setChainPropAccess);else{var e,r,t,c,value=base[prop];e=base,r=prop,t={get:()=>(hit(source),logMessage(source,`Get ${prop}`,!0),console.table(refineStackTrace((new Error).stack)),value),set(newValue){hit(source),logMessage(source,`Set ${prop}`,!0),console.table(refineStackTrace((new Error).stack)),value=newValue}},(c=Object.getOwnPropertyDescriptor(e,r))&&!c.configurable||Object.defineProperty(e,r,t)}};_setChainPropAccess(window,property)}}).apply(this,updatedArgs),source.uniqueId&&Object.defineProperty(Window.prototype.toString,uniqueIdentifier,{value:\"done\",enumerable:!1,writable:!1,configurable:!1})}catch(e){console.log(e)}}"
        },
        {
            "names": [
                "m3u-prune",
                "m3u-prune.js",
                "ubo-m3u-prune.js",
                "ubo-m3u-prune"
            ],
            "scriptlet": "function m3uPrune(source,args){const uniqueIdentifier=source.uniqueId+source.name+\"_\"+(Array.isArray(args)?args.join(\"_\"):\"\");if(source.uniqueId&&\"done\"===Window.prototype.toString[uniqueIdentifier])return;function hit(e){if(e.verbose){try{var n=console.trace.bind(console),i=\"[AdGuard] \";\"corelibs\"===e.engine?i+=e.ruleText:(e.domainName&&(i+=`${e.domainName}`),e.args?i+=`#%#//scriptlet('${e.name}', '${e.args.join(\"', '\")}')`:i+=`#%#//scriptlet('${e.name}')`),n&&n(i)}catch(e){}\"function\"==typeof window.__debug&&window.__debug(e)}}function toRegExp(e){var r=e||\"\",t=\"/\";if(\"\"===r)return new RegExp(\".?\");var n,i,s=r.lastIndexOf(t),a=r.substring(s+1),g=r.substring(0,s+1),u=(i=a,(n=g).startsWith(t)&&n.endsWith(t)&&!n.endsWith(\"\\\\/\")&&function(e){if(!e)return!1;try{return new RegExp(\"\",e),!0}catch(e){return!1}}(i)?i:\"\");if(r.startsWith(t)&&r.endsWith(t)||u)return new RegExp((u?g:r).slice(1,-1),u);var c=r.replace(/\\\\'/g,\"'\").replace(/\\\\\"/g,'\"').replace(/[.*+?^${}()|[\\]\\\\]/g,\"\\\\$&\");return new RegExp(c)}function logMessage(e,o){var r=arguments.length>2&&void 0!==arguments[2]&&arguments[2],a=!(arguments.length>3&&void 0!==arguments[3])||arguments[3],{name:n,verbose:g}=e;if(r||g){var i=console.log;a?i(`${n}: ${o}`):Array.isArray(o)?i(`${n}:`,...o):i(`${n}:`,o)}}function getXhrData(r,t,a,e,n){return{method:r,url:t,async:a,user:e,password:n}}const updatedArgs=args?[].concat(source).concat(args):[source];try{(function(source,propsToRemove){var urlToMatch=arguments.length>2&&void 0!==arguments[2]?arguments[2]:\"\";if(\"undefined\"!=typeof Reflect&&\"undefined\"!=typeof fetch&&\"undefined\"!=typeof Proxy&&\"undefined\"!=typeof Response){var xhrData,shouldPruneResponse=!1,shouldLogContent=\"true\"===(arguments.length>3&&void 0!==arguments[3]&&arguments[3]),urlMatchRegexp=toRegExp(urlToMatch),AD_MARKER_ASSET=\"#EXT-X-ASSET:\",AD_MARKER_CUE=\"#EXT-X-CUE:\",AD_MARKER_CUE_IN=\"#EXT-X-CUE-IN\",AD_MARKER_DISCONTINUITY=\"#EXT-X-DISCONTINUITY\",AD_MARKER_EXTINF=\"#EXTINF\",AD_MARKER_EXTM3U=\"#EXTM3U\",AD_MARKER_SCTE35=\"#EXT-X-SCTE35:\",COMCAST_AD_MARKER_AD=\"-AD-\",COMCAST_AD_MARKER_VAST=\"-VAST-\",COMCAST_AD_MARKER_VMAP_AD=\"-VMAP-AD-\",COMCAST_AD_MARKER_VMAP_AD_BREAK=\"#EXT-X-VMAP-AD-BREAK:\",TAGS_ALLOWLIST=[\"#EXT-X-TARGETDURATION\",\"#EXT-X-MEDIA-SEQUENCE\",\"#EXT-X-DISCONTINUITY-SEQUENCE\",\"#EXT-X-ENDLIST\",\"#EXT-X-PLAYLIST-TYPE\",\"#EXT-X-I-FRAMES-ONLY\",\"#EXT-X-MEDIA\",\"#EXT-X-STREAM-INF\",\"#EXT-X-I-FRAME-STREAM-INF\",\"#EXT-X-SESSION-DATA\",\"#EXT-X-SESSION-KEY\",\"#EXT-X-INDEPENDENT-SEGMENTS\",\"#EXT-X-START\"],isAllowedTag=function(str){return TAGS_ALLOWLIST.some((function(el){return str.startsWith(el)}))},_pruneExtinfFromVmapBlock=function(lines,i){var array=lines.slice(),index=i;if(array[index].includes(AD_MARKER_EXTINF)&&(array[index]=void 0,array[index+=1].includes(AD_MARKER_DISCONTINUITY))){array[index]=void 0;var prunedExtinf=_pruneExtinfFromVmapBlock(array,index+=1);array=prunedExtinf.array,index=prunedExtinf.index}return{array:array,index:index}},removeM3ULineRegexp=toRegExp(propsToRemove),isM3U=function(text){if(\"string\"==typeof text){var trimmedText=text.trim();return trimmedText.startsWith(AD_MARKER_EXTM3U)||trimmedText.startsWith(COMCAST_AD_MARKER_VMAP_AD_BREAK)}return!1},isPruningNeeded=function(text,regexp){return isM3U(text)&&regexp.test(text)},pruneM3U=function(text){shouldLogContent&&logMessage(source,`Original M3U content:\\n${text}`);var lines=text.split(/\\r?\\n/);return text.includes(COMCAST_AD_MARKER_VMAP_AD_BREAK)?(lines=(lines=function(lines){for(var array=lines.slice(),i=0;i<array.length-1;i+=1)if((array[i].includes(COMCAST_AD_MARKER_VMAP_AD)||array[i].includes(COMCAST_AD_MARKER_VAST)||array[i].includes(COMCAST_AD_MARKER_AD))&&(array[i]=void 0,array[i+1].includes(AD_MARKER_EXTINF))){var prunedExtinf=_pruneExtinfFromVmapBlock(array,i+=1);array=prunedExtinf.array,i=prunedExtinf.index-1}return array}(lines)).filter((function(l){return!!l})).join(\"\\n\"),shouldLogContent&&logMessage(source,`Modified M3U content:\\n${lines}`),lines):(lines=(lines=function(lines){for(var i=0;i<lines.length-1;i+=1){var _lines$i;if(null!==(_lines$i=lines[i])&&void 0!==_lines$i&&_lines$i.startsWith(\"#\")&&removeM3ULineRegexp.test(lines[i])){var segmentName=lines[i].substring(0,lines[i].indexOf(\":\"));if(!segmentName)return lines;lines[i]=void 0;for(var j=i+=1;j<lines.length;j+=1){if(lines[j].includes(segmentName)||isAllowedTag(lines[j])){i=j-1;break}lines[j]=void 0}}}return lines}(lines)).map((function(line,index,array){return void 0===line||(line=function(line,index,array){return line.startsWith(AD_MARKER_CUE)?(line=void 0,array[index+=1].startsWith(AD_MARKER_ASSET)&&(array[index]=void 0,index+=1),array[index].startsWith(AD_MARKER_SCTE35)&&(array[index]=void 0,index+=1),array[index].startsWith(AD_MARKER_CUE_IN)&&(array[index]=void 0,index+=1),array[index].startsWith(AD_MARKER_SCTE35)&&(array[index]=void 0),line):line}(line,index,array),void 0!==line&&(line=function(line,index,array){return line.startsWith(AD_MARKER_EXTINF)&&removeM3ULineRegexp.test(array[index+1])?(isAllowedTag(array[index])||(array[index]=void 0),isAllowedTag(array[index+=1])||(array[index]=void 0),array[index+=1].startsWith(AD_MARKER_DISCONTINUITY)&&(array[index]=void 0),line):line}(line,index,array))),line})).filter((function(l){return!!l})).join(\"\\n\"),shouldLogContent&&logMessage(source,`Modified M3U content:\\n${lines}`),lines)},nativeOpen=window.XMLHttpRequest.prototype.open,nativeSend=window.XMLHttpRequest.prototype.send,openHandler={apply:function(target,thisArg,args){if(xhrData=getXhrData.apply(null,args),function(e,t,r){if(\"\"===t||\"*\"===t)return!0;var a,s=function(e){var r={};return e.split(\" \").forEach((function(e){var n=e.indexOf(\":\"),i=e.slice(0,n);if(function(e){return[\"url\",\"method\",\"headers\",\"body\",\"credentials\",\"cache\",\"redirect\",\"referrer\",\"referrerPolicy\",\"integrity\",\"keepalive\",\"signal\",\"mode\"].includes(e)}(i)){var s=e.slice(n+1);r[i]=s}else r.url=e})),r}(t);if(function(t){return Object.values(t).every((function(t){return function(e){var t,n=function(e){return e.replace(/[.*+?^${}()|[\\]\\\\]/g,\"\\\\$&\")}(e);\"/\"===e[0]&&\"/\"===e[e.length-1]&&(n=e.slice(1,-1));try{t=new RegExp(n),t=!0}catch(e){t=!1}return t}(t)}))}(s)){var n=function(t){var a={};return Object.keys(t).forEach((function(c){a[c]=toRegExp(t[c])})),a}(s);a=Object.keys(n).every((function(e){var t=n[e],a=r[e];return Object.prototype.hasOwnProperty.call(r,e)&&\"string\"==typeof a&&(null==t?void 0:t.test(a))}))}else logMessage(e,`Invalid parameter: ${t}`),a=!1;return a}(source,urlToMatch,xhrData)&&(thisArg.shouldBePruned=!0),thisArg.shouldBePruned){thisArg.collectedHeaders=[];var setRequestHeaderHandler={apply:function(target,thisArg,args){return thisArg.collectedHeaders.push(args),Reflect.apply(target,thisArg,args)}};thisArg.setRequestHeader=new Proxy(thisArg.setRequestHeader,setRequestHeaderHandler)}return Reflect.apply(target,thisArg,args)}},sendHandler={apply:function(target,thisArg,args){if(!thisArg.shouldBePruned||![\"\",\"text\"].includes(thisArg.responseType))return Reflect.apply(target,thisArg,args);var forgedRequest=new XMLHttpRequest;forgedRequest.addEventListener(\"readystatechange\",(function(){if(4===forgedRequest.readyState){var{readyState:readyState,response:response,responseText:responseText,responseURL:responseURL,responseXML:responseXML,status:status,statusText:statusText}=forgedRequest;if(\"string\"==typeof(responseText||response)){propsToRemove?shouldPruneResponse=isPruningNeeded(response,removeM3ULineRegexp):isM3U(response)&&logMessage(source,`XMLHttpRequest.open() URL: ${responseURL}\\nresponse: ${response}`);var responseContent=shouldPruneResponse?pruneM3U(response):response;Object.defineProperties(thisArg,{readyState:{value:readyState,writable:!1},responseURL:{value:responseURL,writable:!1},responseXML:{value:responseXML,writable:!1},status:{value:status,writable:!1},statusText:{value:statusText,writable:!1},response:{value:responseContent,writable:!1},responseText:{value:responseContent,writable:!1}}),setTimeout((function(){var stateEvent=new Event(\"readystatechange\");thisArg.dispatchEvent(stateEvent);var loadEvent=new Event(\"load\");thisArg.dispatchEvent(loadEvent);var loadEndEvent=new Event(\"loadend\");thisArg.dispatchEvent(loadEndEvent)}),1),hit(source)}}})),nativeOpen.apply(forgedRequest,[xhrData.method,xhrData.url]),thisArg.collectedHeaders.forEach((function(header){var name=header[0],value=header[1];forgedRequest.setRequestHeader(name,value)})),thisArg.collectedHeaders=[];try{Reflect.apply(nativeSend,forgedRequest,args)}catch(_unused){return Reflect.apply(target,thisArg,args)}}};XMLHttpRequest.prototype.open=new Proxy(XMLHttpRequest.prototype.open,openHandler),XMLHttpRequest.prototype.send=new Proxy(XMLHttpRequest.prototype.send,sendHandler);var nativeFetch=window.fetch,fetchHandler={apply:async function(target,thisArg,args){var fetchURL=args[0]instanceof Request?args[0].url:args[0];if(\"string\"!=typeof fetchURL||0===fetchURL.length)return Reflect.apply(target,thisArg,args);if(urlMatchRegexp.test(fetchURL)){var response=await nativeFetch(...args),clonedResponse=response.clone(),responseText=await response.text();if(!propsToRemove&&isM3U(responseText))return logMessage(source,`fetch URL: ${fetchURL}\\nresponse text: ${responseText}`),clonedResponse;if(isPruningNeeded(responseText,removeM3ULineRegexp)){var prunedText=pruneM3U(responseText);return hit(source),new Response(prunedText,{status:response.status,statusText:response.statusText,headers:response.headers})}return clonedResponse}return Reflect.apply(target,thisArg,args)}};window.fetch=new Proxy(window.fetch,fetchHandler)}}).apply(this,updatedArgs),source.uniqueId&&Object.defineProperty(Window.prototype.toString,uniqueIdentifier,{value:\"done\",enumerable:!1,writable:!1,configurable:!1})}catch(e){console.log(e)}}"
        },
        {
            "names": [
                "metrika-yandex-tag"
            ],
            "scriptlet": "function metrikaYandexTag(source,args){const uniqueIdentifier=source.uniqueId+source.name+\"_\"+(Array.isArray(args)?args.join(\"_\"):\"\");if(source.uniqueId&&\"done\"===Window.prototype.toString[uniqueIdentifier])return;function noopFunc(){}const updatedArgs=args?[].concat(source).concat(args):[source];try{(function(source){var asyncCallbackFromOptions=function(id,param){var options=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},{callback:callback}=options,{ctx:ctx}=options;\"function\"==typeof callback&&(callback=void 0!==ctx?callback.bind(ctx):callback,setTimeout((function(){return callback()})))},api={addFileExtension:noopFunc,extLink:asyncCallbackFromOptions,file:asyncCallbackFromOptions,getClientID:function(id,cb){cb&&setTimeout(cb(null))},hit:asyncCallbackFromOptions,notBounce:asyncCallbackFromOptions,params:noopFunc,reachGoal:function(id,target,params,callback,ctx){asyncCallbackFromOptions(null,null,{callback:callback,ctx:ctx})},setUserID:noopFunc,userParams:noopFunc,destruct:noopFunc};function init(id){window[`yaCounter${id}`]=api,document.dispatchEvent(new Event(`yacounter${id}inited`))}function ym(id,funcName){if(\"init\"===funcName)return init(id);for(var _len=arguments.length,args=new Array(_len>2?_len-2:0),_key=2;_key<_len;_key++)args[_key-2]=arguments[_key];return api[funcName]&&api[funcName](id,...args)}void 0===window.ym?(window.ym=ym,ym.a=[]):window.ym&&window.ym.a&&(ym.a=window.ym.a,window.ym=ym,window.ym.a.forEach((function(params){init(params[0])}))),function(e){if(e.verbose){try{var n=console.trace.bind(console),i=\"[AdGuard] \";\"corelibs\"===e.engine?i+=e.ruleText:(e.domainName&&(i+=`${e.domainName}`),e.args?i+=`#%#//scriptlet('${e.name}', '${e.args.join(\"', '\")}')`:i+=`#%#//scriptlet('${e.name}')`),n&&n(i)}catch(e){}\"function\"==typeof window.__debug&&window.__debug(e)}}(source)}).apply(this,updatedArgs),source.uniqueId&&Object.defineProperty(Window.prototype.toString,uniqueIdentifier,{value:\"done\",enumerable:!1,writable:!1,configurable:!1})}catch(e){console.log(e)}}"
        },
        {
            "names": [
                "metrika-yandex-watch"
            ],
            "scriptlet": "function metrikaYandexWatch(source,args){const uniqueIdentifier=source.uniqueId+source.name+\"_\"+(Array.isArray(args)?args.join(\"_\"):\"\");if(source.uniqueId&&\"done\"===Window.prototype.toString[uniqueIdentifier])return;function noopFunc(){}function noopArray(){return[]}const updatedArgs=args?[].concat(source).concat(args):[source];try{(function(source){var cbName=\"yandex_metrika_callbacks\",asyncCallbackFromOptions=function(){var options=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},{callback:callback}=options,{ctx:ctx}=options;\"function\"==typeof callback&&(callback=void 0!==ctx?callback.bind(ctx):callback,setTimeout((function(){return callback()})))};function Metrika(){}Metrika.counters=noopArray,Metrika.prototype.addFileExtension=noopFunc,Metrika.prototype.getClientID=noopFunc,Metrika.prototype.setUserID=noopFunc,Metrika.prototype.userParams=noopFunc,Metrika.prototype.params=noopFunc,Metrika.prototype.counters=noopArray,Metrika.prototype.extLink=function(url,options){asyncCallbackFromOptions(options)},Metrika.prototype.file=function(url,options){asyncCallbackFromOptions(options)},Metrika.prototype.hit=function(url,options){asyncCallbackFromOptions(options)},Metrika.prototype.reachGoal=function(target,params,cb,ctx){asyncCallbackFromOptions({callback:cb,ctx:ctx})},Metrika.prototype.notBounce=asyncCallbackFromOptions,window.Ya?window.Ya.Metrika=Metrika:window.Ya={Metrika:Metrika},window[cbName]&&Array.isArray(window[cbName])&&window[cbName].forEach((function(func){\"function\"==typeof func&&func()})),function(e){if(e.verbose){try{var n=console.trace.bind(console),i=\"[AdGuard] \";\"corelibs\"===e.engine?i+=e.ruleText:(e.domainName&&(i+=`${e.domainName}`),e.args?i+=`#%#//scriptlet('${e.name}', '${e.args.join(\"', '\")}')`:i+=`#%#//scriptlet('${e.name}')`),n&&n(i)}catch(e){}\"function\"==typeof window.__debug&&window.__debug(e)}}(source)}).apply(this,updatedArgs),source.uniqueId&&Object.defineProperty(Window.prototype.toString,uniqueIdentifier,{value:\"done\",enumerable:!1,writable:!1,configurable:!1})}catch(e){console.log(e)}}"
        },
        {
            "names": [
                "no-protected-audience"
            ],
            "scriptlet": "function noProtectedAudience(source,args){const uniqueIdentifier=source.uniqueId+source.name+\"_\"+(Array.isArray(args)?args.join(\"_\"):\"\");if(source.uniqueId&&\"done\"===Window.prototype.toString[uniqueIdentifier])return;function noopStr(){return\"\"}function noopFunc(){}function noopResolveVoid(){return Promise.resolve(void 0)}function noopResolveNull(){return Promise.resolve(null)}const updatedArgs=args?[].concat(source).concat(args):[source];try{(function(source){if(Document instanceof Object!=0){for(var protectedAudienceMethods={joinAdInterestGroup:noopResolveVoid,runAdAuction:noopResolveNull,leaveAdInterestGroup:noopResolveVoid,clearOriginJoinedAdInterestGroups:noopResolveVoid,createAuctionNonce:noopStr,updateAdInterestGroups:noopFunc},_i=0,_Object$keys=Object.keys(protectedAudienceMethods);_i<_Object$keys.length;_i++){var methodName=_Object$keys[_i],prototype=Navigator.prototype;Object.prototype.hasOwnProperty.call(prototype,methodName)&&prototype[methodName]instanceof Function!=0&&(prototype[methodName]=protectedAudienceMethods[methodName])}!function(e){if(e.verbose){try{var n=console.trace.bind(console),i=\"[AdGuard] \";\"corelibs\"===e.engine?i+=e.ruleText:(e.domainName&&(i+=`${e.domainName}`),e.args?i+=`#%#//scriptlet('${e.name}', '${e.args.join(\"', '\")}')`:i+=`#%#//scriptlet('${e.name}')`),n&&n(i)}catch(e){}\"function\"==typeof window.__debug&&window.__debug(e)}}(source)}}).apply(this,updatedArgs),source.uniqueId&&Object.defineProperty(Window.prototype.toString,uniqueIdentifier,{value:\"done\",enumerable:!1,writable:!1,configurable:!1})}catch(e){console.log(e)}}"
        },
        {
            "names": [
                "no-topics"
            ],
            "scriptlet": "function noTopics(source,args){const uniqueIdentifier=source.uniqueId+source.name+\"_\"+(Array.isArray(args)?args.join(\"_\"):\"\");if(source.uniqueId&&\"done\"===Window.prototype.toString[uniqueIdentifier])return;const updatedArgs=args?[].concat(source).concat(args):[source];try{(function(source){Document instanceof Object!=0&&Object.prototype.hasOwnProperty.call(Document.prototype,\"browsingTopics\")&&Document.prototype.browsingTopics instanceof Function!=0&&(Document.prototype.browsingTopics=function(){return function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:\"{}\",t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:\"\",s=arguments.length>2&&void 0!==arguments[2]?arguments[2]:\"basic\";if(\"undefined\"!=typeof Response){var n=new Response(e,{headers:{\"Content-Length\":`${e.length}`},status:200,statusText:\"OK\"});return\"opaque\"===s?Object.defineProperties(n,{body:{value:null},status:{value:0},ok:{value:!1},statusText:{value:\"\"},url:{value:\"\"},type:{value:s}}):Object.defineProperties(n,{url:{value:t},type:{value:s}}),Promise.resolve(n)}}(\"[]\")},function(e){if(e.verbose){try{var n=console.trace.bind(console),i=\"[AdGuard] \";\"corelibs\"===e.engine?i+=e.ruleText:(e.domainName&&(i+=`${e.domainName}`),e.args?i+=`#%#//scriptlet('${e.name}', '${e.args.join(\"', '\")}')`:i+=`#%#//scriptlet('${e.name}')`),n&&n(i)}catch(e){}\"function\"==typeof window.__debug&&window.__debug(e)}}(source))}).apply(this,updatedArgs),source.uniqueId&&Object.defineProperty(Window.prototype.toString,uniqueIdentifier,{value:\"done\",enumerable:!1,writable:!1,configurable:!1})}catch(e){console.log(e)}}"
        },
        {
            "names": [
                "noeval",
                "noeval.js",
                "silent-noeval.js",
                "ubo-noeval.js",
                "ubo-silent-noeval.js",
                "ubo-noeval",
                "ubo-silent-noeval"
            ],
            "scriptlet": "function noeval(source,args){const uniqueIdentifier=source.uniqueId+source.name+\"_\"+(Array.isArray(args)?args.join(\"_\"):\"\");if(source.uniqueId&&\"done\"===Window.prototype.toString[uniqueIdentifier])return;const updatedArgs=args?[].concat(source).concat(args):[source];try{(function(source){window.eval=function(s){!function(e){if(e.verbose){try{var n=console.trace.bind(console),i=\"[AdGuard] \";\"corelibs\"===e.engine?i+=e.ruleText:(e.domainName&&(i+=`${e.domainName}`),e.args?i+=`#%#//scriptlet('${e.name}', '${e.args.join(\"', '\")}')`:i+=`#%#//scriptlet('${e.name}')`),n&&n(i)}catch(e){}\"function\"==typeof window.__debug&&window.__debug(e)}}(source),function(e,o){var r=arguments.length>2&&void 0!==arguments[2]&&arguments[2],a=!(arguments.length>3&&void 0!==arguments[3])||arguments[3],{name:n,verbose:g}=e;if(r||g){var i=console.log;a?i(`${n}: ${o}`):Array.isArray(o)?i(`${n}:`,...o):i(`${n}:`,o)}}(source,`AdGuard has prevented eval:\\n${s}`,!0)}.bind()}).apply(this,updatedArgs),source.uniqueId&&Object.defineProperty(Window.prototype.toString,uniqueIdentifier,{value:\"done\",enumerable:!1,writable:!1,configurable:!1})}catch(e){console.log(e)}}"
        },
        {
            "names": [
                "nowebrtc",
                "nowebrtc.js",
                "ubo-nowebrtc.js",
                "ubo-nowebrtc"
            ],
            "scriptlet": "function nowebrtc(source,args){const uniqueIdentifier=source.uniqueId+source.name+\"_\"+(Array.isArray(args)?args.join(\"_\"):\"\");if(source.uniqueId&&\"done\"===Window.prototype.toString[uniqueIdentifier])return;function noopFunc(){}const updatedArgs=args?[].concat(source).concat(args):[source];try{(function(source){var propertyName=\"\";if(window.RTCPeerConnection?propertyName=\"RTCPeerConnection\":window.webkitRTCPeerConnection&&(propertyName=\"webkitRTCPeerConnection\"),\"\"!==propertyName){var rtcReplacement=function(config){var message=`Document tried to create an RTCPeerConnection: ${function(e){var t=\"undefined\";if(null===e)t=\"null\";else if(e instanceof Object){var r=\"iceServers\",n=\"urls\";Object.prototype.hasOwnProperty.call(e,r)&&e[r]&&Object.prototype.hasOwnProperty.call(e[r][0],n)&&e[r][0][n]&&(t=e[r][0][n].toString())}return t}(config)}`;!function(e,o){var r=arguments.length>2&&void 0!==arguments[2]&&arguments[2],a=!(arguments.length>3&&void 0!==arguments[3])||arguments[3],{name:n,verbose:g}=e;if(r||g){var i=console.log;a?i(`${n}: ${o}`):Array.isArray(o)?i(`${n}:`,...o):i(`${n}:`,o)}}(source,message),function(e){if(e.verbose){try{var n=console.trace.bind(console),i=\"[AdGuard] \";\"corelibs\"===e.engine?i+=e.ruleText:(e.domainName&&(i+=`${e.domainName}`),e.args?i+=`#%#//scriptlet('${e.name}', '${e.args.join(\"', '\")}')`:i+=`#%#//scriptlet('${e.name}')`),n&&n(i)}catch(e){}\"function\"==typeof window.__debug&&window.__debug(e)}}(source)};rtcReplacement.prototype={close:noopFunc,createDataChannel:noopFunc,createOffer:noopFunc,setRemoteDescription:noopFunc};var rtc=window[propertyName];window[propertyName]=rtcReplacement,rtc.prototype&&(rtc.prototype.createDataChannel=function(a,b){return{close:noopFunc,send:noopFunc}}.bind(null))}}).apply(this,updatedArgs),source.uniqueId&&Object.defineProperty(Window.prototype.toString,uniqueIdentifier,{value:\"done\",enumerable:!1,writable:!1,configurable:!1})}catch(e){console.log(e)}}"
        },
        {
            "names": [
                "prevent-addEventListener",
                "addEventListener-defuser.js",
                "ubo-addEventListener-defuser.js",
                "aeld.js",
                "ubo-aeld.js",
                "ubo-addEventListener-defuser",
                "ubo-aeld",
                "abp-prevent-listener"
            ],
            "scriptlet": "function preventAddEventListener(source,args){const uniqueIdentifier=source.uniqueId+source.name+\"_\"+(Array.isArray(args)?args.join(\"_\"):\"\");if(source.uniqueId&&\"done\"===Window.prototype.toString[uniqueIdentifier])return;function toRegExp(e){var r=e||\"\",t=\"/\";if(\"\"===r)return new RegExp(\".?\");var n,i,s=r.lastIndexOf(t),a=r.substring(s+1),g=r.substring(0,s+1),u=(i=a,(n=g).startsWith(t)&&n.endsWith(t)&&!n.endsWith(\"\\\\/\")&&function(e){if(!e)return!1;try{return new RegExp(\"\",e),!0}catch(e){return!1}}(i)?i:\"\");if(r.startsWith(t)&&r.endsWith(t)||u)return new RegExp((u?g:r).slice(1,-1),u);var c=r.replace(/\\\\'/g,\"'\").replace(/\\\\\"/g,'\"').replace(/[.*+?^${}()|[\\]\\\\]/g,\"\\\\$&\");return new RegExp(c)}function logMessage(e,o){var r=arguments.length>2&&void 0!==arguments[2]&&arguments[2],a=!(arguments.length>3&&void 0!==arguments[3])||arguments[3],{name:n,verbose:g}=e;if(r||g){var i=console.log;a?i(`${n}: ${o}`):Array.isArray(o)?i(`${n}:`,...o):i(`${n}:`,o)}}const updatedArgs=args?[].concat(source).concat(args):[source];try{(function(source,typeSearch,listenerSearch,additionalArgName,additionalArgValue,noProtect){var elementToMatch,typeSearchRegexp=toRegExp(typeSearch),listenerSearchRegexp=toRegExp(listenerSearch);if(additionalArgName){if(\"elements\"!==additionalArgName)return void logMessage(source,`Invalid \"additionalArgName\": ${additionalArgName}\\nOnly \"elements\" is supported.`);if(!additionalArgValue)return void logMessage(source,'\"additionalArgValue\" is required.');elementToMatch=additionalArgValue}var nativeAddEventListener=window.EventTarget.prototype.addEventListener;function addEventListenerWrapper(type,listener){var _this$constructor,element,n,shouldPrevent=!1;if(null!=type&&(void 0!==(n=listener)&&(\"function\"==typeof n||\"object\"==typeof n&&null!==n&&\"handleEvent\"in n&&\"function\"==typeof n.handleEvent))&&(shouldPrevent=typeSearchRegexp.test(type.toString())&&listenerSearchRegexp.test(function(n){return\"function\"==typeof n?n.toString():n.handleEvent.toString()}(listener))&&(element=this,void 0===elementToMatch||(\"window\"===elementToMatch?element===window:\"document\"===elementToMatch?element===document:!!(element&&element.matches&&element.matches(elementToMatch))))),!shouldPrevent){var context=this;this&&\"Window\"===(null===(_this$constructor=this.constructor)||void 0===_this$constructor?void 0:_this$constructor.name)&&this!==window&&(context=window);for(var _len=arguments.length,args=new Array(_len>2?_len-2:0),_key=2;_key<_len;_key++)args[_key-2]=arguments[_key];return nativeAddEventListener.apply(context,[type,listener,...args])}!function(e){if(e.verbose){try{var n=console.trace.bind(console),i=\"[AdGuard] \";\"corelibs\"===e.engine?i+=e.ruleText:(e.domainName&&(i+=`${e.domainName}`),e.args?i+=`#%#//scriptlet('${e.name}', '${e.args.join(\"', '\")}')`:i+=`#%#//scriptlet('${e.name}')`),n&&n(i)}catch(e){}\"function\"==typeof window.__debug&&window.__debug(e)}}(source)}if(\"true\"===noProtect)window.EventTarget.prototype.addEventListener=addEventListenerWrapper;else{var descriptor={configurable:!0,set:function(){},get:function(){return addEventListenerWrapper}};Object.defineProperty(window.EventTarget.prototype,\"addEventListener\",descriptor),Object.defineProperty(window,\"addEventListener\",descriptor),Object.defineProperty(document,\"addEventListener\",descriptor)}}).apply(this,updatedArgs),source.uniqueId&&Object.defineProperty(Window.prototype.toString,uniqueIdentifier,{value:\"done\",enumerable:!1,writable:!1,configurable:!1})}catch(e){console.log(e)}}"
        },
        {
            "names": [
                "prevent-adfly"
            ],
            "scriptlet": "function preventAdfly(source,args){const uniqueIdentifier=source.uniqueId+source.name+\"_\"+(Array.isArray(args)?args.join(\"_\"):\"\");if(source.uniqueId&&\"done\"===Window.prototype.toString[uniqueIdentifier])return;const updatedArgs=args?[].concat(source).concat(args):[source];try{(function(source){var val,e,r,t,c,isDigit=function(data){return/^\\d$/.test(data)},applyHandler=!0;e=window,r=\"ysmm\",t={configurable:!1,set:function(value){if(applyHandler){applyHandler=!1;try{\"string\"==typeof value&&function(encodedURL){for(var evenChars=\"\",oddChars=\"\",i=0;i<encodedURL.length;i+=1)i%2==0?evenChars+=encodedURL.charAt(i):oddChars=encodedURL.charAt(i)+oddChars;for(var data=(evenChars+oddChars).split(\"\"),_i=0;_i<data.length;_i+=1)if(isDigit(data[_i]))for(var ii=_i+1;ii<data.length;ii+=1)if(isDigit(data[ii])){var temp=parseInt(data[_i],10)^parseInt(data[ii],10);temp<10&&(data[_i]=temp.toString()),_i=ii;break}data=data.join(\"\");var decodedURL=window.atob(data).slice(16,-16);window.stop&&window.stop(),window.onbeforeunload=null,window.location.href=decodedURL}(value)}catch(err){}}val=value},get:function(){return val}},(c=Object.getOwnPropertyDescriptor(e,r))&&!c.configurable||(Object.defineProperty(e,r,t),0)?function(e,o){var r=arguments.length>2&&void 0!==arguments[2]&&arguments[2],a=!(arguments.length>3&&void 0!==arguments[3])||arguments[3],{name:n,verbose:g}=e;if(r||g){var i=console.log;a?i(`${n}: ${o}`):Array.isArray(o)?i(`${n}:`,...o):i(`${n}:`,o)}}(source,\"Failed to set up prevent-adfly scriptlet\"):function(e){if(e.verbose){try{var n=console.trace.bind(console),i=\"[AdGuard] \";\"corelibs\"===e.engine?i+=e.ruleText:(e.domainName&&(i+=`${e.domainName}`),e.args?i+=`#%#//scriptlet('${e.name}', '${e.args.join(\"', '\")}')`:i+=`#%#//scriptlet('${e.name}')`),n&&n(i)}catch(e){}\"function\"==typeof window.__debug&&window.__debug(e)}}(source)}).apply(this,updatedArgs),source.uniqueId&&Object.defineProperty(Window.prototype.toString,uniqueIdentifier,{value:\"done\",enumerable:!1,writable:!1,configurable:!1})}catch(e){console.log(e)}}"
        },
        {
            "names": [
                "prevent-bab",
                "ubo-nobab",
                "nobab",
                "bab-defuser",
                "nobab.js",
                "ubo-nobab.js",
                "bab-defuser.js"
            ],
            "scriptlet": "function preventBab(source,args){const uniqueIdentifier=source.uniqueId+source.name+\"_\"+(Array.isArray(args)?args.join(\"_\"):\"\");if(source.uniqueId&&\"done\"===Window.prototype.toString[uniqueIdentifier])return;function hit(e){if(e.verbose){try{var n=console.trace.bind(console),i=\"[AdGuard] \";\"corelibs\"===e.engine?i+=e.ruleText:(e.domainName&&(i+=`${e.domainName}`),e.args?i+=`#%#//scriptlet('${e.name}', '${e.args.join(\"', '\")}')`:i+=`#%#//scriptlet('${e.name}')`),n&&n(i)}catch(e){}\"function\"==typeof window.__debug&&window.__debug(e)}}const updatedArgs=args?[].concat(source).concat(args):[source];try{(function(source){var nativeSetTimeout=window.setTimeout,babRegex=/\\.bab_elementid.$/;window.setTimeout=function(callback){if(\"string\"!=typeof callback||!babRegex.test(callback)){for(var _len=arguments.length,args=new Array(_len>1?_len-1:0),_key=1;_key<_len;_key++)args[_key-1]=arguments[_key];return nativeSetTimeout.apply(window,[callback,...args])}hit(source)};var signatures=[[\"blockadblock\"],[\"babasbm\"],[/getItem\\('babn'\\)/],[\"getElementById\",\"String.fromCharCode\",\"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789\",\"charAt\",\"DOMContentLoaded\",\"AdBlock\",\"addEventListener\",\"doScroll\",\"fromCharCode\",\"<<2|r>>4\",\"sessionStorage\",\"clientWidth\",\"localStorage\",\"Math\",\"random\"]],nativeEval=window.eval;window.eval=function(str){if(!function(str){if(\"string\"!=typeof str)return!1;for(var i=0;i<signatures.length;i+=1){for(var tokens=signatures[i],match=0,j=0;j<tokens.length;j+=1){var token=tokens[j];(token instanceof RegExp?token.test(str):str.includes(token))&&(match+=1)}if(match/tokens.length>=.8)return!0}return!1}(str))return nativeEval(str);hit(source);var bodyEl=document.body;bodyEl&&bodyEl.style.removeProperty(\"visibility\");var el=document.getElementById(\"babasbmsgx\");el&&el.parentNode.removeChild(el)}.bind(window),window.eval.toString=nativeEval.toString.bind(nativeEval)}).apply(this,updatedArgs),source.uniqueId&&Object.defineProperty(Window.prototype.toString,uniqueIdentifier,{value:\"done\",enumerable:!1,writable:!1,configurable:!1})}catch(e){console.log(e)}}"
        },
        {
            "names": [
                "prevent-canvas",
                "prevent-canvas.js",
                "ubo-prevent-canvas.js",
                "ubo-prevent-canvas"
            ],
            "scriptlet": "function preventCanvas(source,args){const uniqueIdentifier=source.uniqueId+source.name+\"_\"+(Array.isArray(args)?args.join(\"_\"):\"\");if(source.uniqueId&&\"done\"===Window.prototype.toString[uniqueIdentifier])return;function toRegExp(e){var r=e||\"\",t=\"/\";if(\"\"===r)return new RegExp(\".?\");var n,i,s=r.lastIndexOf(t),a=r.substring(s+1),g=r.substring(0,s+1),u=(i=a,(n=g).startsWith(t)&&n.endsWith(t)&&!n.endsWith(\"\\\\/\")&&function(e){if(!e)return!1;try{return new RegExp(\"\",e),!0}catch(e){return!1}}(i)?i:\"\");if(r.startsWith(t)&&r.endsWith(t)||u)return new RegExp((u?g:r).slice(1,-1),u);var c=r.replace(/\\\\'/g,\"'\").replace(/\\\\\"/g,'\"').replace(/[.*+?^${}()|[\\]\\\\]/g,\"\\\\$&\");return new RegExp(c)}const updatedArgs=args?[].concat(source).concat(args):[source];try{(function(source,contextType){var canvasHandler={apply:function(target,thisArg,argumentsList){var t,i,type=argumentsList[0],shouldPrevent=!1;if(contextType)if(i=t=contextType,null!=t&&t.startsWith(\"!\")&&(i=t.slice(1)),function(e){var t,n=function(e){return e.replace(/[.*+?^${}()|[\\]\\\\]/g,\"\\\\$&\")}(e);\"/\"===e[0]&&\"/\"===e[e.length-1]&&(n=e.slice(1,-1));try{t=new RegExp(n),t=!0}catch(e){t=!1}return t}(i)){var{isInvertedMatch:isInvertedMatch,matchRegexp:matchRegexp}=function(t){var e=!!t&&(null==t?void 0:t.startsWith(\"!\")),a=e?t.slice(1):t;return{isInvertedMatch:e,matchRegexp:toRegExp(a),matchValue:a}}(contextType);shouldPrevent=matchRegexp.test(type)!==isInvertedMatch}else!function(e,o){var r=arguments.length>2&&void 0!==arguments[2]&&arguments[2],a=!(arguments.length>3&&void 0!==arguments[3])||arguments[3],{name:n,verbose:g}=e;if(r||g){var i=console.log;a?i(`${n}: ${o}`):Array.isArray(o)?i(`${n}:`,...o):i(`${n}:`,o)}}(source,`Invalid contextType parameter: ${contextType}`),shouldPrevent=!1;else shouldPrevent=!0;return shouldPrevent?(function(e){if(e.verbose){try{var n=console.trace.bind(console),i=\"[AdGuard] \";\"corelibs\"===e.engine?i+=e.ruleText:(e.domainName&&(i+=`${e.domainName}`),e.args?i+=`#%#//scriptlet('${e.name}', '${e.args.join(\"', '\")}')`:i+=`#%#//scriptlet('${e.name}')`),n&&n(i)}catch(e){}\"function\"==typeof window.__debug&&window.__debug(e)}}(source),null):Reflect.apply(target,thisArg,argumentsList)}};window.HTMLCanvasElement.prototype.getContext=new Proxy(window.HTMLCanvasElement.prototype.getContext,canvasHandler)}).apply(this,updatedArgs),source.uniqueId&&Object.defineProperty(Window.prototype.toString,uniqueIdentifier,{value:\"done\",enumerable:!1,writable:!1,configurable:!1})}catch(e){console.log(e)}}"
        },
        {
            "names": [
                "prevent-constructor"
            ],
            "scriptlet": "function preventConstructor(source,args){const uniqueIdentifier=source.uniqueId+source.name+\"_\"+(Array.isArray(args)?args.join(\"_\"):\"\");if(source.uniqueId&&\"done\"===Window.prototype.toString[uniqueIdentifier])return;function toRegExp(e){var r=e||\"\",t=\"/\";if(\"\"===r)return new RegExp(\".?\");var n,i,s=r.lastIndexOf(t),a=r.substring(s+1),g=r.substring(0,s+1),u=(i=a,(n=g).startsWith(t)&&n.endsWith(t)&&!n.endsWith(\"\\\\/\")&&function(e){if(!e)return!1;try{return new RegExp(\"\",e),!0}catch(e){return!1}}(i)?i:\"\");if(r.startsWith(t)&&r.endsWith(t)||u)return new RegExp((u?g:r).slice(1,-1),u);var c=r.replace(/\\\\'/g,\"'\").replace(/\\\\\"/g,'\"').replace(/[.*+?^${}()|[\\]\\\\]/g,\"\\\\$&\");return new RegExp(c)}function logMessage(e,o){var r=arguments.length>2&&void 0!==arguments[2]&&arguments[2],a=!(arguments.length>3&&void 0!==arguments[3])||arguments[3],{name:n,verbose:g}=e;if(r||g){var i=console.log;a?i(`${n}: ${o}`):Array.isArray(o)?i(`${n}:`,...o):i(`${n}:`,o)}}function noopFunc(){}const updatedArgs=args?[].concat(source).concat(args):[source];try{(function(source,constructorName,argumentsMatch){if(constructorName){var nativeConstructor=window[constructorName];if(\"function\"==typeof nativeConstructor){var arrayArgPatterns=function(input){if(!input)return null;if(input.trim().startsWith(\"[\")&&input.trim().endsWith(\"]\"))try{var parsed=JSON.parse(input);return Array.isArray(parsed)?parsed.map((function(p){return String(p)})):(logMessage(source,\"Invalid argumentsMatch: not an array\"),null)}catch(e){return logMessage(source,`Invalid JSON in argumentsMatch: ${input}`),null}return null}(argumentsMatch),isMatchingSuspended=!1,constructorHandler={construct:function(target,args,newTarget){if(isMatchingSuspended)return Reflect.construct(target,args,newTarget);isMatchingSuspended=!0;var shouldPrevent=!1;if(argumentsMatch)if(null!==arrayArgPatterns){shouldPrevent=!0;for(var i=0;i<arrayArgPatterns.length;i+=1){var pattern=arrayArgPatterns[i];if(\"*\"!==pattern){if(i>=args.length){var msg=`Pattern expects argument at position ${i}, but constructor called with ${args.length} arguments`;logMessage(source,msg),shouldPrevent=!1;break}var arg=args[i],argStr=void 0;if(\"function\"==typeof arg)argStr=arg.toString();else if(\"object\"==typeof arg&&null!==arg)try{argStr=JSON.stringify(arg)}catch(e){argStr=String(arg)}else argStr=String(arg);if(!toRegExp(pattern).test(argStr)){shouldPrevent=!1;break}}}}else{var firstArgStr,firstArg=args[0];if(\"function\"==typeof firstArg)firstArgStr=firstArg.toString();else if(\"object\"==typeof firstArg&&null!==firstArg)try{firstArgStr=JSON.stringify(firstArg)}catch(e){firstArgStr=String(firstArg)}else firstArgStr=String(firstArg);shouldPrevent=toRegExp(argumentsMatch).test(firstArgStr)}else shouldPrevent=!0;if(!shouldPrevent)return isMatchingSuspended=!1,Reflect.construct(target,args,newTarget);!function(e){if(e.verbose){try{var n=console.trace.bind(console),i=\"[AdGuard] \";\"corelibs\"===e.engine?i+=e.ruleText:(e.domainName&&(i+=`${e.domainName}`),e.args?i+=`#%#//scriptlet('${e.name}', '${e.args.join(\"', '\")}')`:i+=`#%#//scriptlet('${e.name}')`),n&&n(i)}catch(e){}\"function\"==typeof window.__debug&&window.__debug(e)}}(source);try{var result=Reflect.construct(target,[noopFunc],newTarget);return isMatchingSuspended=!1,result}catch(e){return isMatchingSuspended=!1,Object.create(target.prototype||null)}},get:(target,prop,receiver)=>\"toString\"===prop?Function.prototype.toString.bind(target):Reflect.get(target,prop,receiver)};window[constructorName]=new Proxy(nativeConstructor,constructorHandler)}else logMessage(source,`\"${constructorName}\" is not a function`)}}).apply(this,updatedArgs),source.uniqueId&&Object.defineProperty(Window.prototype.toString,uniqueIdentifier,{value:\"done\",enumerable:!1,writable:!1,configurable:!1})}catch(e){console.log(e)}}"
        },
        {
            "names": [
                "prevent-element-src-loading"
            ],
            "scriptlet": "function preventElementSrcLoading(source,args){const uniqueIdentifier=source.uniqueId+source.name+\"_\"+(Array.isArray(args)?args.join(\"_\"):\"\");if(source.uniqueId&&\"done\"===Window.prototype.toString[uniqueIdentifier])return;function hit(e){if(e.verbose){try{var n=console.trace.bind(console),i=\"[AdGuard] \";\"corelibs\"===e.engine?i+=e.ruleText:(e.domainName&&(i+=`${e.domainName}`),e.args?i+=`#%#//scriptlet('${e.name}', '${e.args.join(\"', '\")}')`:i+=`#%#//scriptlet('${e.name}')`),n&&n(i)}catch(e){}\"function\"==typeof window.__debug&&window.__debug(e)}}function safeGetDescriptor(r,e){var t=Object.getOwnPropertyDescriptor(r,e);return t&&t.configurable?t:null}function noopFunc(){}const updatedArgs=args?[].concat(source).concat(args):[source];try{(function(source,tagName,match){if(\"undefined\"!=typeof Proxy&&\"undefined\"!=typeof Reflect){var instance,srcMockData={script:\"data:text/javascript;base64,KCk9Pnt9\",img:\"data:image/gif;base64,R0lGODlhAQABAAAAACH5BAEKAAEALAAAAAABAAEAAAICTAEAOw==\",iframe:\"data:text/html;base64, PGRpdj48L2Rpdj4=\",link:\"data:text/plain;base64,\"};if(\"script\"===tagName)instance=HTMLScriptElement;else if(\"img\"===tagName)instance=HTMLImageElement;else if(\"iframe\"===tagName)instance=HTMLIFrameElement;else{if(\"link\"!==tagName)return;instance=HTMLLinkElement}var policy=function(t){var r,e=null==t||null===(r=t.api)||void 0===r?void 0:r.policy;if(e)return e;var n=\"AGPolicy\",i=window.trustedTypes,u=!!i,c={HTML:\"TrustedHTML\",Script:\"TrustedScript\",ScriptURL:\"TrustedScriptURL\"};if(!u)return{name:n,isSupported:u,TrustedType:c,createHTML:function(t){return t},createScript:function(t){return t},createScriptURL:function(t){return t},create:function(t,r){return r},getAttributeType:function(){return null},convertAttributeToTrusted:function(t,r,e){return e},getPropertyType:function(){return null},convertPropertyToTrusted:function(t,r,e){return e},isHTML:function(){return!1},isScript:function(){return!1},isScriptURL:function(){return!1}};var o=i.createPolicy(n,{createHTML:function(t){return t},createScript:function(t){return t},createScriptURL:function(t){return t}}),createHTML=function(t){return o.createHTML(t)},createScript=function(t){return o.createScript(t)},createScriptURL=function(t){return o.createScriptURL(t)},create=function(t,r){switch(t){case c.HTML:return createHTML(r);case c.Script:return createScript(r);case c.ScriptURL:return createScriptURL(r);default:return r}},p=i.getAttributeType.bind(i),T=i.getPropertyType.bind(i),s=i.isHTML.bind(i),a=i.isScript.bind(i),f=i.isScriptURL.bind(i);return{name:n,isSupported:u,TrustedType:c,createHTML:createHTML,createScript:createScript,createScriptURL:createScriptURL,create:create,getAttributeType:p,convertAttributeToTrusted:function(t,r,e,n,i){var u=p(t,r,n,i);return u?create(u,e):e},getPropertyType:T,convertPropertyToTrusted:function(t,r,e,n){var i=T(t,r,n);return i?create(i,e):e},isHTML:s,isScript:a,isScriptURL:f}}(source),SOURCE_PROPERTY_NAME=\"link\"===tagName?\"href\":\"src\",searchRegexp=function(e){var r=e||\"\",t=\"/\";if(\"\"===r)return new RegExp(\".?\");var n,i,s=r.lastIndexOf(t),a=r.substring(s+1),g=r.substring(0,s+1),u=(i=a,(n=g).startsWith(t)&&n.endsWith(t)&&!n.endsWith(\"\\\\/\")&&function(e){if(!e)return!1;try{return new RegExp(\"\",e),!0}catch(e){return!1}}(i)?i:\"\");if(r.startsWith(t)&&r.endsWith(t)||u)return new RegExp((u?g:r).slice(1,-1),u);var c=r.replace(/\\\\'/g,\"'\").replace(/\\\\\"/g,'\"').replace(/[.*+?^${}()|[\\]\\\\]/g,\"\\\\$&\");return new RegExp(c)}(match),setMatchedAttribute=function(elem){return elem.setAttribute(source.name,\"matched\")},setAttributeHandler={apply:function(target,thisArg,args){if(!args[0]||!args[1])return Reflect.apply(target,thisArg,args);var nodeName=thisArg.nodeName.toLowerCase(),attrName=args[0].toLowerCase(),attrValue=args[1];return attrName===SOURCE_PROPERTY_NAME&&tagName.toLowerCase()===nodeName&&srcMockData[nodeName]&&searchRegexp.test(attrValue)?(hit(source),setMatchedAttribute(thisArg),Reflect.apply(target,thisArg,[attrName,srcMockData[nodeName]])):Reflect.apply(target,thisArg,args)}};instance.prototype.setAttribute=new Proxy(Element.prototype.setAttribute,setAttributeHandler);var origSrcDescriptor=safeGetDescriptor(instance.prototype,SOURCE_PROPERTY_NAME);if(origSrcDescriptor){Object.defineProperty(instance.prototype,SOURCE_PROPERTY_NAME,{enumerable:!0,configurable:!0,get(){return origSrcDescriptor.get.call(this)},set(urlValue){var nodeName=this.nodeName.toLowerCase();if(tagName.toLowerCase()!==nodeName||!srcMockData[nodeName]||!searchRegexp.test(urlValue))return origSrcDescriptor.set.call(this,urlValue),!0;var mockData=srcMockData[nodeName];\"undefined\"!=typeof TrustedScriptURL&&null!=policy&&policy.isSupported&&urlValue instanceof TrustedScriptURL&&(mockData=policy.createScriptURL(mockData)),setMatchedAttribute(this),origSrcDescriptor.set.call(this,mockData),hit(source)}});var origOnerrorDescriptor=safeGetDescriptor(HTMLElement.prototype,\"onerror\");if(origOnerrorDescriptor){Object.defineProperty(HTMLElement.prototype,\"onerror\",{enumerable:!0,configurable:!0,get(){return origOnerrorDescriptor.get.call(this)},set(cb){return\"matched\"===this.getAttribute(source.name)?(origOnerrorDescriptor.set.call(this,noopFunc),!0):(origOnerrorDescriptor.set.call(this,cb),!0)}});var addEventListenerHandler={apply:function(target,thisArg,args){if(!args[0]||!args[1]||!thisArg)return Reflect.apply(target,thisArg,args);var eventName=args[0];return\"function\"==typeof thisArg.getAttribute&&\"matched\"===thisArg.getAttribute(source.name)&&\"error\"===eventName?Reflect.apply(target,thisArg,[eventName,noopFunc]):Reflect.apply(target,thisArg,args)}};EventTarget.prototype.addEventListener=new Proxy(EventTarget.prototype.addEventListener,addEventListenerHandler),function(tagName,src){window.addEventListener(\"error\",(function(event){event.target&&event.target.nodeName&&event.target.nodeName.toLowerCase()===tagName&&event.target.src&&src.test(event.target.src)&&(hit(source),\"function\"!=typeof event.target.onload?event.target.onerror=noopFunc:event.target.onerror=event.target.onload)}),!0)}(tagName,searchRegexp)}}}}).apply(this,updatedArgs),source.uniqueId&&Object.defineProperty(Window.prototype.toString,uniqueIdentifier,{value:\"done\",enumerable:!1,writable:!1,configurable:!1})}catch(e){console.log(e)}}"
        },
        {
            "names": [
                "prevent-eval-if",
                "noeval-if.js",
                "ubo-noeval-if.js",
                "ubo-noeval-if"
            ],
            "scriptlet": "function preventEvalIf(source,args){const uniqueIdentifier=source.uniqueId+source.name+\"_\"+(Array.isArray(args)?args.join(\"_\"):\"\");if(source.uniqueId&&\"done\"===Window.prototype.toString[uniqueIdentifier])return;const updatedArgs=args?[].concat(source).concat(args):[source];try{(function(source,search){var searchRegexp=function(e){var r=e||\"\",t=\"/\";if(\"\"===r)return new RegExp(\".?\");var n,i,s=r.lastIndexOf(t),a=r.substring(s+1),g=r.substring(0,s+1),u=(i=a,(n=g).startsWith(t)&&n.endsWith(t)&&!n.endsWith(\"\\\\/\")&&function(e){if(!e)return!1;try{return new RegExp(\"\",e),!0}catch(e){return!1}}(i)?i:\"\");if(r.startsWith(t)&&r.endsWith(t)||u)return new RegExp((u?g:r).slice(1,-1),u);var c=r.replace(/\\\\'/g,\"'\").replace(/\\\\\"/g,'\"').replace(/[.*+?^${}()|[\\]\\\\]/g,\"\\\\$&\");return new RegExp(c)}(search),nativeEval=window.eval;window.eval=function(payload){if(!searchRegexp.test(payload.toString()))return nativeEval.call(window,payload);!function(e){if(e.verbose){try{var n=console.trace.bind(console),i=\"[AdGuard] \";\"corelibs\"===e.engine?i+=e.ruleText:(e.domainName&&(i+=`${e.domainName}`),e.args?i+=`#%#//scriptlet('${e.name}', '${e.args.join(\"', '\")}')`:i+=`#%#//scriptlet('${e.name}')`),n&&n(i)}catch(e){}\"function\"==typeof window.__debug&&window.__debug(e)}}(source)}.bind(window),window.eval.toString=nativeEval.toString.bind(nativeEval)}).apply(this,updatedArgs),source.uniqueId&&Object.defineProperty(Window.prototype.toString,uniqueIdentifier,{value:\"done\",enumerable:!1,writable:!1,configurable:!1})}catch(e){console.log(e)}}"
        },
        {
            "names": [
                "prevent-fab-3.2.0",
                "nofab.js",
                "ubo-nofab.js",
                "fuckadblock.js-3.2.0",
                "ubo-fuckadblock.js-3.2.0",
                "ubo-nofab"
            ],
            "scriptlet": "function preventFab(source,args){const uniqueIdentifier=source.uniqueId+source.name+\"_\"+(Array.isArray(args)?args.join(\"_\"):\"\");if(source.uniqueId&&\"done\"===Window.prototype.toString[uniqueIdentifier])return;function noopFunc(){}function noopThis(){return this}const updatedArgs=args?[].concat(source).concat(args):[source];try{(function(source){!function(e){if(e.verbose){try{var n=console.trace.bind(console),i=\"[AdGuard] \";\"corelibs\"===e.engine?i+=e.ruleText:(e.domainName&&(i+=`${e.domainName}`),e.args?i+=`#%#//scriptlet('${e.name}', '${e.args.join(\"', '\")}')`:i+=`#%#//scriptlet('${e.name}')`),n&&n(i)}catch(e){}\"function\"==typeof window.__debug&&window.__debug(e)}}(source);var Fab=function(){};Fab.prototype.check=noopFunc,Fab.prototype.clearEvent=noopFunc,Fab.prototype.emitEvent=noopFunc,Fab.prototype.on=function(a,b){return a||b(),this},Fab.prototype.onDetected=noopThis,Fab.prototype.onNotDetected=function(a){return a(),this},Fab.prototype.setOption=noopFunc,Fab.prototype.options={set:noopFunc,get:noopFunc};var fab=new Fab,getSetFab={get:()=>Fab,set(){}},getsetfab={get:()=>fab,set(){}};Object.prototype.hasOwnProperty.call(window,\"FuckAdBlock\")?window.FuckAdBlock=Fab:Object.defineProperty(window,\"FuckAdBlock\",getSetFab),Object.prototype.hasOwnProperty.call(window,\"BlockAdBlock\")?window.BlockAdBlock=Fab:Object.defineProperty(window,\"BlockAdBlock\",getSetFab),Object.prototype.hasOwnProperty.call(window,\"SniffAdBlock\")?window.SniffAdBlock=Fab:Object.defineProperty(window,\"SniffAdBlock\",getSetFab),Object.prototype.hasOwnProperty.call(window,\"fuckAdBlock\")?window.fuckAdBlock=fab:Object.defineProperty(window,\"fuckAdBlock\",getsetfab),Object.prototype.hasOwnProperty.call(window,\"blockAdBlock\")?window.blockAdBlock=fab:Object.defineProperty(window,\"blockAdBlock\",getsetfab),Object.prototype.hasOwnProperty.call(window,\"sniffAdBlock\")?window.sniffAdBlock=fab:Object.defineProperty(window,\"sniffAdBlock\",getsetfab)}).apply(this,updatedArgs),source.uniqueId&&Object.defineProperty(Window.prototype.toString,uniqueIdentifier,{value:\"done\",enumerable:!1,writable:!1,configurable:!1})}catch(e){console.log(e)}}"
        },
        {
            "names": [
                "prevent-fetch",
                "prevent-fetch.js",
                "ubo-prevent-fetch.js",
                "ubo-prevent-fetch",
                "no-fetch-if.js",
                "ubo-no-fetch-if.js",
                "ubo-no-fetch-if"
            ],
            "scriptlet": "function preventFetch(source,args){const uniqueIdentifier=source.uniqueId+source.name+\"_\"+(Array.isArray(args)?args.join(\"_\"):\"\");if(source.uniqueId&&\"done\"===Window.prototype.toString[uniqueIdentifier])return;function hit(e){if(e.verbose){try{var n=console.trace.bind(console),i=\"[AdGuard] \";\"corelibs\"===e.engine?i+=e.ruleText:(e.domainName&&(i+=`${e.domainName}`),e.args?i+=`#%#//scriptlet('${e.name}', '${e.args.join(\"', '\")}')`:i+=`#%#//scriptlet('${e.name}')`),n&&n(i)}catch(e){}\"function\"==typeof window.__debug&&window.__debug(e)}}function objectToString(t){return t&&\"object\"==typeof t?function(t){return 0===Object.keys(t).length&&!t.prototype}(t)?\"{}\":Object.entries(t).map((function(t){var n=t[0],e=t[1],o=e;return e instanceof Object&&(o=`{ ${objectToString(e)} }`),`${n}:\"${o}\"`})).join(\" \"):String(t)}function logMessage(e,o){var r=arguments.length>2&&void 0!==arguments[2]&&arguments[2],a=!(arguments.length>3&&void 0!==arguments[3])||arguments[3],{name:n,verbose:g}=e;if(r||g){var i=console.log;a?i(`${n}: ${o}`):Array.isArray(o)?i(`${n}:`,...o):i(`${n}:`,o)}}function noopPromiseResolve(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:\"{}\",t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:\"\",s=arguments.length>2&&void 0!==arguments[2]?arguments[2]:\"basic\";if(\"undefined\"!=typeof Response){var n=new Response(e,{headers:{\"Content-Length\":`${e.length}`},status:200,statusText:\"OK\"});return\"opaque\"===s?Object.defineProperties(n,{body:{value:null},status:{value:0},ok:{value:!1},statusText:{value:\"\"},url:{value:\"\"},type:{value:s}}):Object.defineProperties(n,{url:{value:t},type:{value:s}}),Promise.resolve(n)}}function nativeIsFinite(i){return(Number.isFinite||window.isFinite)(i)}function getNumberFromString(n){var N,r=parseInt(n,10);return N=r,(Number.isNaN||window.isNaN)(N)?null:r}const updatedArgs=args?[].concat(source).concat(args):[source];try{(function(source,propsToMatch){var responseBody=arguments.length>2&&void 0!==arguments[2]?arguments[2]:\"emptyObj\",responseType=arguments.length>3?arguments[3]:void 0;if(\"undefined\"!=typeof fetch&&\"undefined\"!=typeof Proxy&&\"undefined\"!=typeof Response){var strResponseBody,nativeRequestClone=Request.prototype.clone;if(\"\"===responseBody||\"emptyObj\"===responseBody)strResponseBody=\"{}\";else if(\"emptyArr\"===responseBody)strResponseBody=\"[]\";else if(\"emptyStr\"===responseBody)strResponseBody=\"\";else{if(\"true\"!==responseBody&&!responseBody.match(/^length:\\d+-\\d+$/))return void logMessage(source,`Invalid responseBody parameter: '${responseBody}'`);strResponseBody=function(e){var t=e;if(\"true\"===t)return Math.random().toString(36).slice(-10);if(t=t.replace(\"length:\",\"\"),!/^\\d+-\\d+$/.test(t))return null;var n=getNumberFromString(t.split(\"-\")[0]),r=getNumberFromString(t.split(\"-\")[1]);if(!nativeIsFinite(n)||!nativeIsFinite(r))return null;if(n>r){var i=n;n=r,r=i}if(r>5e5)return null;var a=function(t,n){return t=Math.ceil(t),n=Math.floor(n),Math.floor(Math.random()*(n-t+1)+t)}(n,r);return function(r){for(var t=\"\",a=\"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789!@#$%^&*()_+=~\",n=0;n<r;n+=1)t+=a.charAt(Math.floor(76*Math.random()));return t}(a)}(responseBody)}if(void 0===responseType||function(responseType){return[\"basic\",\"cors\",\"opaque\"].includes(responseType)}(responseType)){var EXTENSION_SCHEMES=[\"chrome-extension:\",\"moz-extension:\",\"ms-browser-extension:\",\"safari-web-extension:\"],fetchHandler={apply:async function(target,thisArg,args){var url,fetchData=function(e,t){var a,c,n={},r=e[0];if(r instanceof Request){var f=function(t){var e=[\"url\",\"method\",\"headers\",\"body\",\"credentials\",\"cache\",\"redirect\",\"referrer\",\"referrerPolicy\",\"integrity\",\"keepalive\",\"signal\",\"mode\"].map((function(e){return[e,t[e]]}));return Object.fromEntries(e)}(t.call(r));a=f.url,c=f}else a=r,c=e[1];return n.url=a,c instanceof Object&&Object.keys(c).forEach((function(e){n[e]=c[e]})),n}(args,nativeRequestClone);if(void 0===propsToMatch)return logMessage(source,`fetch( ${objectToString(fetchData)} )`,!0),hit(source),Reflect.apply(target,thisArg,args);if(function(e,t,r){if(\"\"===t||\"*\"===t)return!0;var a,s=function(e){var r={};return e.split(\" \").forEach((function(e){var n=e.indexOf(\":\"),i=e.slice(0,n);if(function(e){return[\"url\",\"method\",\"headers\",\"body\",\"credentials\",\"cache\",\"redirect\",\"referrer\",\"referrerPolicy\",\"integrity\",\"keepalive\",\"signal\",\"mode\"].includes(e)}(i)){var s=e.slice(n+1);r[i]=s}else r.url=e})),r}(t);if(function(t){return Object.values(t).every((function(t){return function(e){var t,n=function(e){return e.replace(/[.*+?^${}()|[\\]\\\\]/g,\"\\\\$&\")}(e);\"/\"===e[0]&&\"/\"===e[e.length-1]&&(n=e.slice(1,-1));try{t=new RegExp(n),t=!0}catch(e){t=!1}return t}(t)}))}(s)){var n=function(t){var a={};return Object.keys(t).forEach((function(c){a[c]=function(e){var r=e||\"\",t=\"/\";if(\"\"===r)return new RegExp(\".?\");var n,i,s=r.lastIndexOf(t),a=r.substring(s+1),g=r.substring(0,s+1),u=(i=a,(n=g).startsWith(t)&&n.endsWith(t)&&!n.endsWith(\"\\\\/\")&&function(e){if(!e)return!1;try{return new RegExp(\"\",e),!0}catch(e){return!1}}(i)?i:\"\");if(r.startsWith(t)&&r.endsWith(t)||u)return new RegExp((u?g:r).slice(1,-1),u);var c=r.replace(/\\\\'/g,\"'\").replace(/\\\\\"/g,'\"').replace(/[.*+?^${}()|[\\]\\\\]/g,\"\\\\$&\");return new RegExp(c)}(t[c])})),a}(s);a=Object.keys(n).every((function(e){var t=n[e],a=r[e];return Object.prototype.hasOwnProperty.call(r,e)&&\"string\"==typeof a&&(null==t?void 0:t.test(a))}))}else logMessage(e,`Invalid parameter: ${t}`),a=!1;return a}(source,propsToMatch,fetchData)){var finalResponseType;hit(source);try{finalResponseType=responseType||function(request){try{var{mode:mode}=request;if(void 0===mode||\"cors\"===mode||\"no-cors\"===mode)return new URL(request.url).origin===document.location.origin?\"basic\":\"no-cors\"===mode?\"opaque\":\"cors\"}catch(error){logMessage(source,`Could not determine response type: ${error}`)}}(fetchData);var origResponse=await Reflect.apply(target,thisArg,args);return!origResponse.ok||(url=origResponse.url,EXTENSION_SCHEMES.some((function(scheme){return url.startsWith(scheme)})))?noopPromiseResolve(strResponseBody,fetchData.url,finalResponseType):function(e){var t,s=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{body:\"{}\"},u={};null==e||null===(t=e.headers)||void 0===t||t.forEach((function(e,t){u[t]=e}));var n=new Response(s.body,{status:e.status,statusText:e.statusText,headers:u});return Object.defineProperties(n,{url:{value:e.url},type:{value:s.type||e.type}}),n}(origResponse,{body:strResponseBody,type:finalResponseType})}catch(ex){return noopPromiseResolve(strResponseBody,fetchData.url,finalResponseType)}}return Reflect.apply(target,thisArg,args)}};fetch=new Proxy(fetch,fetchHandler)}else logMessage(source,`Invalid responseType parameter: '${responseType}'`)}}).apply(this,updatedArgs),source.uniqueId&&Object.defineProperty(Window.prototype.toString,uniqueIdentifier,{value:\"done\",enumerable:!1,writable:!1,configurable:!1})}catch(e){console.log(e)}}"
        },
        {
            "names": [
                "prevent-innerHTML",
                "prevent-innerHTML.js",
                "ubo-prevent-innerHTML.js",
                "ubo-prevent-innerHTML"
            ],
            "scriptlet": "function preventInnerHTML(source,args){const uniqueIdentifier=source.uniqueId+source.name+\"_\"+(Array.isArray(args)?args.join(\"_\"):\"\");if(source.uniqueId&&\"done\"===Window.prototype.toString[uniqueIdentifier])return;function hit(e){if(e.verbose){try{var n=console.trace.bind(console),i=\"[AdGuard] \";\"corelibs\"===e.engine?i+=e.ruleText:(e.domainName&&(i+=`${e.domainName}`),e.args?i+=`#%#//scriptlet('${e.name}', '${e.args.join(\"', '\")}')`:i+=`#%#//scriptlet('${e.name}')`),n&&n(i)}catch(e){}\"function\"==typeof window.__debug&&window.__debug(e)}}function logMessage(e,o){var r=arguments.length>2&&void 0!==arguments[2]&&arguments[2],a=!(arguments.length>3&&void 0!==arguments[3])||arguments[3],{name:n,verbose:g}=e;if(r||g){var i=console.log;a?i(`${n}: ${o}`):Array.isArray(o)?i(`${n}:`,...o):i(`${n}:`,o)}}function toRegExp(e){var r=e||\"\",t=\"/\";if(\"\"===r)return new RegExp(\".?\");var n,i,s=r.lastIndexOf(t),a=r.substring(s+1),g=r.substring(0,s+1),u=(i=a,(n=g).startsWith(t)&&n.endsWith(t)&&!n.endsWith(\"\\\\/\")&&function(e){if(!e)return!1;try{return new RegExp(\"\",e),!0}catch(e){return!1}}(i)?i:\"\");if(r.startsWith(t)&&r.endsWith(t)||u)return new RegExp((u?g:r).slice(1,-1),u);var c=r.replace(/\\\\'/g,\"'\").replace(/\\\\\"/g,'\"').replace(/[.*+?^${}()|[\\]\\\\]/g,\"\\\\$&\");return new RegExp(c)}const updatedArgs=args?[].concat(source).concat(args):[source];try{(function(source){var t,e,a,selector=arguments.length>1&&void 0!==arguments[1]?arguments[1]:\"\",pattern=arguments.length>2&&void 0!==arguments[2]?arguments[2]:\"\",replacement=arguments.length>3?arguments[3]:void 0,{isInvertedMatch:isInvertedMatch,matchRegexp:matchRegexp}=(e=!!(t=pattern)&&(null==t?void 0:t.startsWith(\"!\")),a=e?t.slice(1):t,{isInvertedMatch:e,matchRegexp:toRegExp(a),matchValue:a}),nativeDescriptor=Object.getOwnPropertyDescriptor(Element.prototype,\"innerHTML\");if(void 0!==nativeDescriptor){var shouldPrevent=function(element,value){if(\"\"!==selector){if(\"function\"!=typeof element.matches)return!1;try{if(!1===element.matches(selector))return!1}catch(e){return logMessage(source,`prevent-innerHTML: invalid selector \"${selector}\"`,!0),!1}}var patternMatches=matchRegexp.test(String(value));return isInvertedMatch?!patternMatches:patternMatches};Object.defineProperty(Element.prototype,\"innerHTML\",{configurable:!0,enumerable:!0,get(){var value=nativeDescriptor.get?nativeDescriptor.get.call(this):nativeDescriptor.value;return void 0!==replacement&&shouldPrevent(this,value)?(hit(source),logMessage(source,\"Replaced innerHTML getter value\"),replacement):value},set(value){if(shouldPrevent(this,value))return hit(source),void logMessage(source,\"Prevented innerHTML assignment\");nativeDescriptor.set&&nativeDescriptor.set.call(this,value)}})}}).apply(this,updatedArgs),source.uniqueId&&Object.defineProperty(Window.prototype.toString,uniqueIdentifier,{value:\"done\",enumerable:!1,writable:!1,configurable:!1})}catch(e){console.log(e)}}"
        },
        {
            "names": [
                "prevent-navigation"
            ],
            "scriptlet": "function preventNavigation(source,args){const uniqueIdentifier=source.uniqueId+source.name+\"_\"+(Array.isArray(args)?args.join(\"_\"):\"\");if(source.uniqueId&&\"done\"===Window.prototype.toString[uniqueIdentifier])return;function hit(e){if(e.verbose){try{var n=console.trace.bind(console),i=\"[AdGuard] \";\"corelibs\"===e.engine?i+=e.ruleText:(e.domainName&&(i+=`${e.domainName}`),e.args?i+=`#%#//scriptlet('${e.name}', '${e.args.join(\"', '\")}')`:i+=`#%#//scriptlet('${e.name}')`),n&&n(i)}catch(e){}\"function\"==typeof window.__debug&&window.__debug(e)}}function logMessage(e,o){var r=arguments.length>2&&void 0!==arguments[2]&&arguments[2],a=!(arguments.length>3&&void 0!==arguments[3])||arguments[3],{name:n,verbose:g}=e;if(r||g){var i=console.log;a?i(`${n}: ${o}`):Array.isArray(o)?i(`${n}:`,...o):i(`${n}:`,o)}}const updatedArgs=args?[].concat(source).concat(args):[source];try{(function(source,urlPattern){var nav=window.navigation;if(nav){var shouldLog=void 0===urlPattern,pattern=null;\"location.href\"===urlPattern?pattern=window.location.href:\"string\"==typeof urlPattern&&(pattern=function(e){var r=e||\"\",t=\"/\";if(\"\"===r)return new RegExp(\".?\");var n,i,s=r.lastIndexOf(t),a=r.substring(s+1),g=r.substring(0,s+1),u=(i=a,(n=g).startsWith(t)&&n.endsWith(t)&&!n.endsWith(\"\\\\/\")&&function(e){if(!e)return!1;try{return new RegExp(\"\",e),!0}catch(e){return!1}}(i)?i:\"\");if(r.startsWith(t)&&r.endsWith(t)||u)return new RegExp((u?g:r).slice(1,-1),u);var c=r.replace(/\\\\'/g,\"'\").replace(/\\\\\"/g,'\"').replace(/[.*+?^${}()|[\\]\\\\]/g,\"\\\\$&\");return new RegExp(c)}(urlPattern)),nav.addEventListener(\"navigate\",(function(event){var _event$destination,patternUrl,url,destinationURL=null==event||null===(_event$destination=event.destination)||void 0===_event$destination?void 0:_event$destination.url;if(destinationURL)return shouldLog?(hit(source),void logMessage(source,`Navigating to: ${destinationURL}`)):(url=destinationURL,void((patternUrl=pattern)&&(\"string\"==typeof patternUrl?url===patternUrl:patternUrl.test(url))&&(event.preventDefault(),hit(source),logMessage(source,`Blocked navigation to: ${destinationURL}`))))}))}}).apply(this,updatedArgs),source.uniqueId&&Object.defineProperty(Window.prototype.toString,uniqueIdentifier,{value:\"done\",enumerable:!1,writable:!1,configurable:!1})}catch(e){console.log(e)}}"
        },
        {
            "names": [
                "prevent-popads-net",
                "popads.net.js",
                "ubo-popads.net.js",
                "ubo-popads.net"
            ],
            "scriptlet": "function preventPopadsNet(source,args){const uniqueIdentifier=source.uniqueId+source.name+\"_\"+(Array.isArray(args)?args.join(\"_\"):\"\");if(source.uniqueId&&\"done\"===Window.prototype.toString[uniqueIdentifier])return;const updatedArgs=args?[].concat(source).concat(args):[source];try{(function(source){var r,n,rid=Math.random().toString(36).slice(2,9),throwError=function(){throw new ReferenceError(rid)};delete window.PopAds,delete window.popns,Object.defineProperties(window,{PopAds:{set:throwError},popns:{set:throwError}}),window.onerror=(r=rid,n=window.onerror,function(e){if(\"string\"==typeof e&&e.includes(r))return!0;if(n instanceof Function){for(var t=arguments.length,o=new Array(t>1?t-1:0),i=1;i<t;i++)o[i-1]=arguments[i];return n.apply(window,[e,...o])}return!1}).bind(),function(e){if(e.verbose){try{var n=console.trace.bind(console),i=\"[AdGuard] \";\"corelibs\"===e.engine?i+=e.ruleText:(e.domainName&&(i+=`${e.domainName}`),e.args?i+=`#%#//scriptlet('${e.name}', '${e.args.join(\"', '\")}')`:i+=`#%#//scriptlet('${e.name}')`),n&&n(i)}catch(e){}\"function\"==typeof window.__debug&&window.__debug(e)}}(source)}).apply(this,updatedArgs),source.uniqueId&&Object.defineProperty(Window.prototype.toString,uniqueIdentifier,{value:\"done\",enumerable:!1,writable:!1,configurable:!1})}catch(e){console.log(e)}}"
        },
        {
            "names": [
                "prevent-refresh",
                "prevent-refresh.js",
                "refresh-defuser.js",
                "refresh-defuser",
                "ubo-prevent-refresh.js",
                "ubo-prevent-refresh",
                "ubo-refresh-defuser.js",
                "ubo-refresh-defuser"
            ],
            "scriptlet": "function preventRefresh(source,args){const uniqueIdentifier=source.uniqueId+source.name+\"_\"+(Array.isArray(args)?args.join(\"_\"):\"\");if(source.uniqueId&&\"done\"===Window.prototype.toString[uniqueIdentifier])return;function getNumberFromString(n){var N,r=parseInt(n,10);return N=r,(Number.isNaN||window.isNaN)(N)?null:r}const updatedArgs=args?[].concat(source).concat(args):[source];try{(function(source,delaySec){var getMetaElements=function(){var metaNodes=[];try{metaNodes=document.querySelectorAll('meta[http-equiv=\"refresh\" i][content]')}catch(e){try{metaNodes=document.querySelectorAll('meta[http-equiv=\"refresh\"][content]')}catch(e){!function(e,o){var r=arguments.length>2&&void 0!==arguments[2]&&arguments[2],a=!(arguments.length>3&&void 0!==arguments[3])||arguments[3],{name:n,verbose:g}=e;if(r||g){var i=console.log;a?i(`${n}: ${o}`):Array.isArray(o)?i(`${n}:`,...o):i(`${n}:`,o)}}(source,e)}}return Array.from(metaNodes)},stop=function(){var metaElements=getMetaElements();if(0!==metaElements.length){var secondsToRun=getNumberFromString(delaySec);null===secondsToRun&&(secondsToRun=function(metaElements){var delays=metaElements.map((function(meta){var contentString=meta.getAttribute(\"content\");if(0===contentString.length)return null;var limiterIndex=contentString.indexOf(\";\");return getNumberFromString(-1!==limiterIndex?contentString.substring(0,limiterIndex):contentString)})).filter((function(delay){return null!==delay}));return delays.length?delays.reduce((function(a,b){return Math.min(a,b)})):null}(metaElements)),null!==secondsToRun&&setTimeout((function(){window.stop(),function(e){if(e.verbose){try{var n=console.trace.bind(console),i=\"[AdGuard] \";\"corelibs\"===e.engine?i+=e.ruleText:(e.domainName&&(i+=`${e.domainName}`),e.args?i+=`#%#//scriptlet('${e.name}', '${e.args.join(\"', '\")}')`:i+=`#%#//scriptlet('${e.name}')`),n&&n(i)}catch(e){}\"function\"==typeof window.__debug&&window.__debug(e)}}(source)}),1e3*secondsToRun)}};\"loading\"===document.readyState?document.addEventListener(\"DOMContentLoaded\",stop,{once:!0}):stop()}).apply(this,updatedArgs),source.uniqueId&&Object.defineProperty(Window.prototype.toString,uniqueIdentifier,{value:\"done\",enumerable:!1,writable:!1,configurable:!1})}catch(e){console.log(e)}}"
        },
        {
            "names": [
                "prevent-requestAnimationFrame",
                "no-requestAnimationFrame-if.js",
                "ubo-no-requestAnimationFrame-if.js",
                "norafif.js",
                "ubo-norafif.js",
                "ubo-no-requestAnimationFrame-if",
                "ubo-norafif"
            ],
            "scriptlet": "function preventRequestAnimationFrame(source,args){const uniqueIdentifier=source.uniqueId+source.name+\"_\"+(Array.isArray(args)?args.join(\"_\"):\"\");if(source.uniqueId&&\"done\"===Window.prototype.toString[uniqueIdentifier])return;function hit(e){if(e.verbose){try{var n=console.trace.bind(console),i=\"[AdGuard] \";\"corelibs\"===e.engine?i+=e.ruleText:(e.domainName&&(i+=`${e.domainName}`),e.args?i+=`#%#//scriptlet('${e.name}', '${e.args.join(\"', '\")}')`:i+=`#%#//scriptlet('${e.name}')`),n&&n(i)}catch(e){}\"function\"==typeof window.__debug&&window.__debug(e)}}function noopFunc(){}function toRegExp(e){var r=e||\"\",t=\"/\";if(\"\"===r)return new RegExp(\".?\");var n,i,s=r.lastIndexOf(t),a=r.substring(s+1),g=r.substring(0,s+1),u=(i=a,(n=g).startsWith(t)&&n.endsWith(t)&&!n.endsWith(\"\\\\/\")&&function(e){if(!e)return!1;try{return new RegExp(\"\",e),!0}catch(e){return!1}}(i)?i:\"\");if(r.startsWith(t)&&r.endsWith(t)||u)return new RegExp((u?g:r).slice(1,-1),u);var c=r.replace(/\\\\'/g,\"'\").replace(/\\\\\"/g,'\"').replace(/[.*+?^${}()|[\\]\\\\]/g,\"\\\\$&\");return new RegExp(c)}const updatedArgs=args?[].concat(source).concat(args):[source];try{(function(source,match){var t,e,a,nativeRequestAnimationFrame=window.requestAnimationFrame,shouldLog=void 0===match,{isInvertedMatch:isInvertedMatch,matchRegexp:matchRegexp}=(e=!!(t=match)&&(null==t?void 0:t.startsWith(\"!\")),a=e?t.slice(1):t,{isInvertedMatch:e,matchRegexp:toRegExp(a),matchValue:a});window.requestAnimationFrame=function(callback){var n,shouldPrevent=!1;if(shouldLog?(hit(source),function(e,o){var r=arguments.length>2&&void 0!==arguments[2]&&arguments[2],a=!(arguments.length>3&&void 0!==arguments[3])||arguments[3],{name:n,verbose:g}=e;if(r||g){var i=console.log;a?i(`${n}: ${o}`):Array.isArray(o)?i(`${n}:`,...o):i(`${n}:`,o)}}(source,`requestAnimationFrame(${String(callback)})`,!0)):((n=callback)instanceof Function||\"string\"==typeof n)&&function(e){var t,n=function(e){return e.replace(/[.*+?^${}()|[\\]\\\\]/g,\"\\\\$&\")}(e);\"/\"===e[0]&&\"/\"===e[e.length-1]&&(n=e.slice(1,-1));try{t=new RegExp(n),t=!0}catch(e){t=!1}return t}(match)&&(shouldPrevent=matchRegexp.test(callback.toString())!==isInvertedMatch),shouldPrevent)return hit(source),nativeRequestAnimationFrame(noopFunc);for(var _len=arguments.length,args=new Array(_len>1?_len-1:0),_key=1;_key<_len;_key++)args[_key-1]=arguments[_key];return nativeRequestAnimationFrame.apply(window,[callback,...args])}}).apply(this,updatedArgs),source.uniqueId&&Object.defineProperty(Window.prototype.toString,uniqueIdentifier,{value:\"done\",enumerable:!1,writable:!1,configurable:!1})}catch(e){console.log(e)}}"
        },
        {
            "names": [
                "prevent-setInterval",
                "no-setInterval-if.js",
                "ubo-no-setInterval-if.js",
                "setInterval-defuser.js",
                "ubo-setInterval-defuser.js",
                "nosiif.js",
                "ubo-nosiif.js",
                "sid.js",
                "ubo-sid.js",
                "ubo-no-setInterval-if",
                "ubo-setInterval-defuser",
                "ubo-nosiif",
                "ubo-sid"
            ],
            "scriptlet": "function preventSetInterval(source,args){const uniqueIdentifier=source.uniqueId+source.name+\"_\"+(Array.isArray(args)?args.join(\"_\"):\"\");if(source.uniqueId&&\"done\"===Window.prototype.toString[uniqueIdentifier])return;function hit(e){if(e.verbose){try{var n=console.trace.bind(console),i=\"[AdGuard] \";\"corelibs\"===e.engine?i+=e.ruleText:(e.domainName&&(i+=`${e.domainName}`),e.args?i+=`#%#//scriptlet('${e.name}', '${e.args.join(\"', '\")}')`:i+=`#%#//scriptlet('${e.name}')`),n&&n(i)}catch(e){}\"function\"==typeof window.__debug&&window.__debug(e)}}function noopFunc(){}function toRegExp(e){var r=e||\"\",t=\"/\";if(\"\"===r)return new RegExp(\".?\");var n,i,s=r.lastIndexOf(t),a=r.substring(s+1),g=r.substring(0,s+1),u=(i=a,(n=g).startsWith(t)&&n.endsWith(t)&&!n.endsWith(\"\\\\/\")&&function(e){if(!e)return!1;try{return new RegExp(\"\",e),!0}catch(e){return!1}}(i)?i:\"\");if(r.startsWith(t)&&r.endsWith(t)||u)return new RegExp((u?g:r).slice(1,-1),u);var c=r.replace(/\\\\'/g,\"'\").replace(/\\\\\"/g,'\"').replace(/[.*+?^${}()|[\\]\\\\]/g,\"\\\\$&\");return new RegExp(c)}function nativeIsNaN(N){return(Number.isNaN||window.isNaN)(N)}const updatedArgs=args?[].concat(source).concat(args):[source];try{(function(source,matchCallback,matchDelay){var shouldLog=void 0===matchCallback&&void 0===matchDelay,setIntervalHandler={apply:function(target,thisArg,args){var callback=args[0],delay=args[1],shouldPrevent=!1;return shouldLog?(hit(source),function(e,o){var r=arguments.length>2&&void 0!==arguments[2]&&arguments[2],a=!(arguments.length>3&&void 0!==arguments[3])||arguments[3],{name:n,verbose:g}=e;if(r||g){var i=console.log;a?i(`${n}: ${o}`):Array.isArray(o)?i(`${n}:`,...o):i(`${n}:`,o)}}(source,`setInterval(${String(callback)}, ${delay})`,!0)):shouldPrevent=function(a){var{callback:e,delay:t,matchCallback:r,matchDelay:l}=a;if(!function(n){return n instanceof Function||\"string\"==typeof n}(e))return!1;if(!function(t){var i=t;return null!=t&&t.startsWith(\"!\")&&(i=t.slice(1)),function(e){var t,n=function(e){return e.replace(/[.*+?^${}()|[\\]\\\\]/g,\"\\\\$&\")}(e);\"/\"===e[0]&&\"/\"===e[e.length-1]&&(n=e.slice(1,-1));try{t=new RegExp(n),t=!0}catch(e){t=!1}return t}(i)}(r)||l&&!function(a){var t=a;null!=a&&a.startsWith(\"!\")&&(t=a.slice(1));var i=parseFloat(t);return!nativeIsNaN(i)&&function(i){return(Number.isFinite||window.isFinite)(i)}(i)}(l))return!1;var{isInvertedMatch:c,matchRegexp:i}=function(t){var e=!!t&&(null==t?void 0:t.startsWith(\"!\")),a=e?t.slice(1):t;return{isInvertedMatch:e,matchRegexp:toRegExp(a),matchValue:a}}(r),{isInvertedDelayMatch:n,delayMatch:s}=function(a){var e=null==a?void 0:a.startsWith(\"!\"),t=e?a.slice(1):a,l=parseInt(t,10);return{isInvertedDelayMatch:e,delayMatch:nativeIsNaN(l)?null:l}}(l),d=function(a){var e=Math.floor(parseInt(a,10));return\"number\"!=typeof e||nativeIsNaN(e)?a:e}(t),h=String(e);return null===s?i.test(h)!==c:r?i.test(h)!==c&&d===s!==n:d===s!==n}({callback:callback,delay:delay,matchCallback:matchCallback,matchDelay:matchDelay}),shouldPrevent&&(hit(source),args[0]=noopFunc),target.apply(thisArg,args)}};window.setInterval=new Proxy(window.setInterval,setIntervalHandler)}).apply(this,updatedArgs),source.uniqueId&&Object.defineProperty(Window.prototype.toString,uniqueIdentifier,{value:\"done\",enumerable:!1,writable:!1,configurable:!1})}catch(e){console.log(e)}}"
        },
        {
            "names": [
                "prevent-setTimeout",
                "no-setTimeout-if.js",
                "ubo-no-setTimeout-if.js",
                "nostif.js",
                "ubo-nostif.js",
                "ubo-no-setTimeout-if",
                "ubo-nostif",
                "setTimeout-defuser.js",
                "ubo-setTimeout-defuser.js",
                "ubo-setTimeout-defuser",
                "std.js",
                "ubo-std.js",
                "ubo-std"
            ],
            "scriptlet": "function preventSetTimeout(source,args){const uniqueIdentifier=source.uniqueId+source.name+\"_\"+(Array.isArray(args)?args.join(\"_\"):\"\");if(source.uniqueId&&\"done\"===Window.prototype.toString[uniqueIdentifier])return;function hit(e){if(e.verbose){try{var n=console.trace.bind(console),i=\"[AdGuard] \";\"corelibs\"===e.engine?i+=e.ruleText:(e.domainName&&(i+=`${e.domainName}`),e.args?i+=`#%#//scriptlet('${e.name}', '${e.args.join(\"', '\")}')`:i+=`#%#//scriptlet('${e.name}')`),n&&n(i)}catch(e){}\"function\"==typeof window.__debug&&window.__debug(e)}}function noopFunc(){}function toRegExp(e){var r=e||\"\",t=\"/\";if(\"\"===r)return new RegExp(\".?\");var n,i,s=r.lastIndexOf(t),a=r.substring(s+1),g=r.substring(0,s+1),u=(i=a,(n=g).startsWith(t)&&n.endsWith(t)&&!n.endsWith(\"\\\\/\")&&function(e){if(!e)return!1;try{return new RegExp(\"\",e),!0}catch(e){return!1}}(i)?i:\"\");if(r.startsWith(t)&&r.endsWith(t)||u)return new RegExp((u?g:r).slice(1,-1),u);var c=r.replace(/\\\\'/g,\"'\").replace(/\\\\\"/g,'\"').replace(/[.*+?^${}()|[\\]\\\\]/g,\"\\\\$&\");return new RegExp(c)}function nativeIsNaN(N){return(Number.isNaN||window.isNaN)(N)}const updatedArgs=args?[].concat(source).concat(args):[source];try{(function(source,matchCallback,matchDelay){var shouldLog=void 0===matchCallback&&void 0===matchDelay,setTimeoutHandler={apply:function(target,thisArg,args){var callback=args[0],delay=args[1],shouldPrevent=!1;return shouldLog?(hit(source),function(e,o){var r=arguments.length>2&&void 0!==arguments[2]&&arguments[2],a=!(arguments.length>3&&void 0!==arguments[3])||arguments[3],{name:n,verbose:g}=e;if(r||g){var i=console.log;a?i(`${n}: ${o}`):Array.isArray(o)?i(`${n}:`,...o):i(`${n}:`,o)}}(source,`setTimeout(${String(callback)}, ${delay})`,!0)):shouldPrevent=function(a){var{callback:e,delay:t,matchCallback:r,matchDelay:l}=a;if(!function(n){return n instanceof Function||\"string\"==typeof n}(e))return!1;if(!function(t){var i=t;return null!=t&&t.startsWith(\"!\")&&(i=t.slice(1)),function(e){var t,n=function(e){return e.replace(/[.*+?^${}()|[\\]\\\\]/g,\"\\\\$&\")}(e);\"/\"===e[0]&&\"/\"===e[e.length-1]&&(n=e.slice(1,-1));try{t=new RegExp(n),t=!0}catch(e){t=!1}return t}(i)}(r)||l&&!function(a){var t=a;null!=a&&a.startsWith(\"!\")&&(t=a.slice(1));var i=parseFloat(t);return!nativeIsNaN(i)&&function(i){return(Number.isFinite||window.isFinite)(i)}(i)}(l))return!1;var{isInvertedMatch:c,matchRegexp:i}=function(t){var e=!!t&&(null==t?void 0:t.startsWith(\"!\")),a=e?t.slice(1):t;return{isInvertedMatch:e,matchRegexp:toRegExp(a),matchValue:a}}(r),{isInvertedDelayMatch:n,delayMatch:s}=function(a){var e=null==a?void 0:a.startsWith(\"!\"),t=e?a.slice(1):a,l=parseInt(t,10);return{isInvertedDelayMatch:e,delayMatch:nativeIsNaN(l)?null:l}}(l),d=function(a){var e=Math.floor(parseInt(a,10));return\"number\"!=typeof e||nativeIsNaN(e)?a:e}(t),h=String(e);return null===s?i.test(h)!==c:r?i.test(h)!==c&&d===s!==n:d===s!==n}({callback:callback,delay:delay,matchCallback:matchCallback,matchDelay:matchDelay}),shouldPrevent&&(hit(source),args[0]=noopFunc),target.apply(thisArg,args)}};window.setTimeout=new Proxy(window.setTimeout,setTimeoutHandler)}).apply(this,updatedArgs),source.uniqueId&&Object.defineProperty(Window.prototype.toString,uniqueIdentifier,{value:\"done\",enumerable:!1,writable:!1,configurable:!1})}catch(e){console.log(e)}}"
        },
        {
            "names": [
                "prevent-window-open",
                "window.open-defuser.js",
                "ubo-window.open-defuser.js",
                "ubo-window.open-defuser",
                "nowoif.js",
                "ubo-nowoif.js",
                "ubo-nowoif",
                "no-window-open-if.js",
                "ubo-no-window-open-if.js",
                "ubo-no-window-open-if"
            ],
            "scriptlet": "function preventWindowOpen(source,args){const uniqueIdentifier=source.uniqueId+source.name+\"_\"+(Array.isArray(args)?args.join(\"_\"):\"\");if(source.uniqueId&&\"done\"===Window.prototype.toString[uniqueIdentifier])return;function hit(e){if(e.verbose){try{var n=console.trace.bind(console),i=\"[AdGuard] \";\"corelibs\"===e.engine?i+=e.ruleText:(e.domainName&&(i+=`${e.domainName}`),e.args?i+=`#%#//scriptlet('${e.name}', '${e.args.join(\"', '\")}')`:i+=`#%#//scriptlet('${e.name}')`),n&&n(i)}catch(e){}\"function\"==typeof window.__debug&&window.__debug(e)}}function isValidStrPattern(e){var t,n=function(e){return e.replace(/[.*+?^${}()|[\\]\\\\]/g,\"\\\\$&\")}(e);\"/\"===e[0]&&\"/\"===e[e.length-1]&&(n=e.slice(1,-1));try{t=new RegExp(n),t=!0}catch(e){t=!1}return t}function toRegExp(e){var r=e||\"\",t=\"/\";if(\"\"===r)return new RegExp(\".?\");var n,i,s=r.lastIndexOf(t),a=r.substring(s+1),g=r.substring(0,s+1),u=(i=a,(n=g).startsWith(t)&&n.endsWith(t)&&!n.endsWith(\"\\\\/\")&&function(e){if(!e)return!1;try{return new RegExp(\"\",e),!0}catch(e){return!1}}(i)?i:\"\");if(r.startsWith(t)&&r.endsWith(t)||u)return new RegExp((u?g:r).slice(1,-1),u);var c=r.replace(/\\\\'/g,\"'\").replace(/\\\\\"/g,'\"').replace(/[.*+?^${}()|[\\]\\\\]/g,\"\\\\$&\");return new RegExp(c)}function logMessage(e,o){var r=arguments.length>2&&void 0!==arguments[2]&&arguments[2],a=!(arguments.length>3&&void 0!==arguments[3])||arguments[3],{name:n,verbose:g}=e;if(r||g){var i=console.log;a?i(`${n}: ${o}`):Array.isArray(o)?i(`${n}:`,...o):i(`${n}:`,o)}}function noopFunc(){}function trueFunc(){return!0}const updatedArgs=args?[].concat(source).concat(args):[source];try{(function(source){var match=arguments.length>1&&void 0!==arguments[1]?arguments[1]:\"*\",delay=arguments.length>2?arguments[2]:void 0,replacement=arguments.length>3?arguments[3]:void 0,nativeOpen=window.open,isNewSyntax=\"0\"!==match&&\"1\"!==match,combineArgs=function(url,args){return args&&args.length>0?`${url} ${args.join(\" \")}`:url};window.open=isNewSyntax?function(url){for(var shouldLog=replacement&&replacement.includes(\"log\"),_len2=arguments.length,args=new Array(_len2>1?_len2-1:0),_key2=1;_key2<_len2;_key2++)args[_key2-1]=arguments[_key2];if(shouldLog){var argsStr=args&&args.length>0?`, ${args.join(\", \")}`:\"\";logMessage(source,`${url}${argsStr}`,!0),hit(source)}var t,i,n,N,shouldPrevent=!1;if(\"*\"===match)shouldPrevent=!0;else if(i=t=match,null!=t&&t.startsWith(\"!\")&&(i=t.slice(1)),isValidStrPattern(i)){var{isInvertedMatch:isInvertedMatch,matchRegexp:matchRegexp}=function(t){var e=!!t&&(null==t?void 0:t.startsWith(\"!\")),a=e?t.slice(1):t;return{isInvertedMatch:e,matchRegexp:toRegExp(a),matchValue:a}}(match),argsToCheck=combineArgs(url,args);shouldPrevent=matchRegexp.test(argsToCheck)!==isInvertedMatch}else logMessage(source,`Invalid parameter: ${match}`),shouldPrevent=!1;if(shouldPrevent){var result,parsedDelay=parseInt(delay,10);if(N=parsedDelay,(Number.isNaN||window.isNaN)(N))result=null;else{var decoy=function(e){var t,r=function(e){return e.Object=\"data\",e.Iframe=\"src\",e}({}),{replacement:n,url:o,delay:a}=e;t=\"obj\"===n?\"object\":\"iframe\";var i=document.createElement(t);return i instanceof HTMLObjectElement?i[r.Object]=o:i instanceof HTMLIFrameElement&&(i[r.Iframe]=o),i.style.setProperty(\"height\",\"1px\",\"important\"),i.style.setProperty(\"position\",\"fixed\",\"important\"),i.style.setProperty(\"top\",\"-1px\",\"important\"),i.style.setProperty(\"width\",\"1px\",\"important\"),document.body.appendChild(i),setTimeout((function(){return i.remove()}),1e3*a),i}({replacement:replacement,url:url,delay:parsedDelay}),popup=decoy.contentWindow;if(\"object\"==typeof popup&&null!==popup)Object.defineProperty(popup,\"closed\",{value:!1}),Object.defineProperty(popup,\"opener\",{value:window}),Object.defineProperty(popup,\"frameElement\",{value:null});else{var nativeGetter=decoy.contentWindow&&decoy.contentWindow.get;Object.defineProperty(decoy,\"contentWindow\",{get:(n=nativeGetter,function(t,e){return(!e||\"closed\"!==e)&&(\"function\"==typeof n?noopFunc:e&&t[e])})}),popup=decoy.contentWindow}result=popup}return hit(source),result}return nativeOpen.apply(window,[url,...args])}:function(str){match=Number(match)>0;for(var _len=arguments.length,args=new Array(_len>1?_len-1:0),_key=1;_key<_len;_key++)args[_key-1]=arguments[_key];if(!isValidStrPattern(delay))return logMessage(source,`Invalid parameter: ${delay}`),nativeOpen.apply(window,[str,...args]);var searchRegexp=toRegExp(delay),argsToCheck=combineArgs(str,args);return match!==searchRegexp.test(argsToCheck)?nativeOpen.apply(window,[str,...args]):(hit(source),function(e){var n;if(e){if(\"trueFunc\"===e)n=trueFunc;else if(e.includes(\"=\")&&e.startsWith(\"{\")&&e.endsWith(\"}\")){var t=e.slice(1,-1),u=function(r,n){if(!r||!n)return r;var e=r.indexOf(n);return e<0?r:r.substring(0,e)}(t,\"=\");\"noopFunc\"===function(n,r){if(!n)return n;var t=n.indexOf(r);return t<0?\"\":n.substring(t+r.length)}(t,\"=\")&&((n={})[u]=noopFunc)}}else n=noopFunc;return n}(replacement))},window.open.toString=nativeOpen.toString.bind(nativeOpen)}).apply(this,updatedArgs),source.uniqueId&&Object.defineProperty(Window.prototype.toString,uniqueIdentifier,{value:\"done\",enumerable:!1,writable:!1,configurable:!1})}catch(e){console.log(e)}}"
        },
        {
            "names": [
                "prevent-xhr",
                "no-xhr-if.js",
                "ubo-no-xhr-if.js",
                "ubo-no-xhr-if"
            ],
            "scriptlet": "function preventXHR(source,args){const uniqueIdentifier=source.uniqueId+source.name+\"_\"+(Array.isArray(args)?args.join(\"_\"):\"\");if(source.uniqueId&&\"done\"===Window.prototype.toString[uniqueIdentifier])return;function hit(e){if(e.verbose){try{var n=console.trace.bind(console),i=\"[AdGuard] \";\"corelibs\"===e.engine?i+=e.ruleText:(e.domainName&&(i+=`${e.domainName}`),e.args?i+=`#%#//scriptlet('${e.name}', '${e.args.join(\"', '\")}')`:i+=`#%#//scriptlet('${e.name}')`),n&&n(i)}catch(e){}\"function\"==typeof window.__debug&&window.__debug(e)}}function objectToString(t){return t&&\"object\"==typeof t?function(t){return 0===Object.keys(t).length&&!t.prototype}(t)?\"{}\":Object.entries(t).map((function(t){var n=t[0],e=t[1],o=e;return e instanceof Object&&(o=`{ ${objectToString(e)} }`),`${n}:\"${o}\"`})).join(\" \"):String(t)}function getXhrData(r,t,a,e,n){return{method:r,url:t,async:a,user:e,password:n}}function logMessage(e,o){var r=arguments.length>2&&void 0!==arguments[2]&&arguments[2],a=!(arguments.length>3&&void 0!==arguments[3])||arguments[3],{name:n,verbose:g}=e;if(r||g){var i=console.log;a?i(`${n}: ${o}`):Array.isArray(o)?i(`${n}:`,...o):i(`${n}:`,o)}}function getNumberFromString(n){var N,r=parseInt(n,10);return N=r,(Number.isNaN||window.isNaN)(N)?null:r}function nativeIsFinite(i){return(Number.isFinite||window.isFinite)(i)}const updatedArgs=args?[].concat(source).concat(args):[source];try{(function(source,propsToMatch,customResponseText){if(\"undefined\"!=typeof Proxy){var xhrData,nativeOpen=window.XMLHttpRequest.prototype.open,nativeGetResponseHeader=window.XMLHttpRequest.prototype.getResponseHeader,nativeGetAllResponseHeaders=window.XMLHttpRequest.prototype.getAllResponseHeaders,matchedXhrRequests=new Map,xhrRequestHeaders=new Map,modifiedResponse=\"\",modifiedResponseText=\"\",openHandler={apply:function(target,thisArg,args){if(xhrData=getXhrData.apply(null,args),void 0===propsToMatch?(logMessage(source,`xhr( ${objectToString(xhrData)} )`,!0),hit(source)):function(e,t,r){if(\"\"===t||\"*\"===t)return!0;var a,s=function(e){var r={};return e.split(\" \").forEach((function(e){var n=e.indexOf(\":\"),i=e.slice(0,n);if(function(e){return[\"url\",\"method\",\"headers\",\"body\",\"credentials\",\"cache\",\"redirect\",\"referrer\",\"referrerPolicy\",\"integrity\",\"keepalive\",\"signal\",\"mode\"].includes(e)}(i)){var s=e.slice(n+1);r[i]=s}else r.url=e})),r}(t);if(function(t){return Object.values(t).every((function(t){return function(e){var t,n=function(e){return e.replace(/[.*+?^${}()|[\\]\\\\]/g,\"\\\\$&\")}(e);\"/\"===e[0]&&\"/\"===e[e.length-1]&&(n=e.slice(1,-1));try{t=new RegExp(n),t=!0}catch(e){t=!1}return t}(t)}))}(s)){var n=function(t){var a={};return Object.keys(t).forEach((function(c){a[c]=function(e){var r=e||\"\",t=\"/\";if(\"\"===r)return new RegExp(\".?\");var n,i,s=r.lastIndexOf(t),a=r.substring(s+1),g=r.substring(0,s+1),u=(i=a,(n=g).startsWith(t)&&n.endsWith(t)&&!n.endsWith(\"\\\\/\")&&function(e){if(!e)return!1;try{return new RegExp(\"\",e),!0}catch(e){return!1}}(i)?i:\"\");if(r.startsWith(t)&&r.endsWith(t)||u)return new RegExp((u?g:r).slice(1,-1),u);var c=r.replace(/\\\\'/g,\"'\").replace(/\\\\\"/g,'\"').replace(/[.*+?^${}()|[\\]\\\\]/g,\"\\\\$&\");return new RegExp(c)}(t[c])})),a}(s);a=Object.keys(n).every((function(e){var t=n[e],a=r[e];return Object.prototype.hasOwnProperty.call(r,e)&&\"string\"==typeof a&&(null==t?void 0:t.test(a))}))}else logMessage(e,`Invalid parameter: ${t}`),a=!1;return a}(source,propsToMatch,xhrData)&&(\"function\"==typeof thisArg.onreadystatechange&&(xhrData.shouldFireFirstStage=!0),matchedXhrRequests.set(thisArg,xhrData)),matchedXhrRequests.has(thisArg)&&!xhrRequestHeaders.has(thisArg)){xhrRequestHeaders.set(thisArg,[]);var setRequestHeaderHandler={apply:function(target,thisArg,args){var headers=xhrRequestHeaders.get(thisArg);return headers&&headers.push(args),Reflect.apply(target,thisArg,args)}};thisArg.setRequestHeader=new Proxy(thisArg.setRequestHeader,setRequestHeaderHandler)}return Reflect.apply(target,thisArg,args)}},sendHandler={apply:function(target,thisArg,args){if(!matchedXhrRequests.has(thisArg))return Reflect.apply(target,thisArg,args);var storedXhrData=matchedXhrRequests.get(thisArg);if(\"blob\"===thisArg.responseType&&(modifiedResponse=new Blob),\"arraybuffer\"===thisArg.responseType&&(modifiedResponse=new ArrayBuffer),customResponseText){var randomText=function(e){var t=e;if(\"true\"===t)return Math.random().toString(36).slice(-10);if(t=t.replace(\"length:\",\"\"),!/^\\d+-\\d+$/.test(t))return null;var n=getNumberFromString(t.split(\"-\")[0]),r=getNumberFromString(t.split(\"-\")[1]);if(!nativeIsFinite(n)||!nativeIsFinite(r))return null;if(n>r){var i=n;n=r,r=i}if(r>5e5)return null;var a=function(t,n){return t=Math.ceil(t),n=Math.floor(n),Math.floor(Math.random()*(n-t+1)+t)}(n,r);return function(r){for(var t=\"\",a=\"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789!@#$%^&*()_+=~\",n=0;n<r;n+=1)t+=a.charAt(Math.floor(76*Math.random()));return t}(a)}(customResponseText);randomText?(modifiedResponse=randomText,modifiedResponseText=randomText):logMessage(source,`Invalid randomize parameter: '${customResponseText}'`)}var forgedRequest=new XMLHttpRequest,transitionReadyState=function(state){if(2===state){var{responseURL:responseURL}=forgedRequest;Object.defineProperties(thisArg,{responseURL:{value:responseURL||storedXhrData.url,writable:!1}})}if(4===state){var{responseXML:responseXML}=forgedRequest;Object.defineProperties(thisArg,{readyState:{value:4,writable:!1},statusText:{value:\"OK\",writable:!1},responseXML:{value:responseXML,writable:!1},status:{value:200,writable:!1},response:{value:modifiedResponse,writable:!1},responseText:{value:modifiedResponseText,writable:!1}}),hit(source)}else Object.defineProperty(thisArg,\"readyState\",{value:state,writable:!0,configurable:!0});var stateEvent=new Event(\"readystatechange\");thisArg.dispatchEvent(stateEvent)};forgedRequest.addEventListener(\"readystatechange\",(function(){matchedXhrRequests.get(thisArg).shouldFireFirstStage&&transitionReadyState(1);var loadStartEvent=new ProgressEvent(\"loadstart\");thisArg.dispatchEvent(loadStartEvent),transitionReadyState(2),transitionReadyState(3);var progressEvent=new ProgressEvent(\"progress\");thisArg.dispatchEvent(progressEvent),transitionReadyState(4)})),setTimeout((function(){var loadEvent=new ProgressEvent(\"load\");thisArg.dispatchEvent(loadEvent);var loadEndEvent=new ProgressEvent(\"loadend\");thisArg.dispatchEvent(loadEndEvent)}),1),nativeOpen.apply(forgedRequest,[storedXhrData.method,storedXhrData.url]),(xhrRequestHeaders.get(thisArg)||[]).forEach((function(header){var name=header[0],value=header[1];forgedRequest.setRequestHeader(name,value)}))}},getHeaderHandler={apply:function(target,thisArg,args){var collectedHeaders=xhrRequestHeaders.get(thisArg);if(!collectedHeaders)return nativeGetResponseHeader.apply(thisArg,args);if(!collectedHeaders.length)return null;var searchHeaderName=args[0].toLowerCase(),matchedHeader=collectedHeaders.find((function(header){return header[0].toLowerCase()===searchHeaderName}));return matchedHeader?matchedHeader[1]:null}},getAllHeadersHandler={apply:function(target,thisArg){var collectedHeaders=xhrRequestHeaders.get(thisArg);return collectedHeaders?collectedHeaders.length?collectedHeaders.map((function(header){var headerName=header[0],headerValue=header[1];return`${headerName.toLowerCase()}: ${headerValue}`})).join(\"\\r\\n\"):\"\":nativeGetAllResponseHeaders.call(thisArg)}};XMLHttpRequest.prototype.open=new Proxy(XMLHttpRequest.prototype.open,openHandler),XMLHttpRequest.prototype.send=new Proxy(XMLHttpRequest.prototype.send,sendHandler),XMLHttpRequest.prototype.getResponseHeader=new Proxy(XMLHttpRequest.prototype.getResponseHeader,getHeaderHandler),XMLHttpRequest.prototype.getAllResponseHeaders=new Proxy(XMLHttpRequest.prototype.getAllResponseHeaders,getAllHeadersHandler)}}).apply(this,updatedArgs),source.uniqueId&&Object.defineProperty(Window.prototype.toString,uniqueIdentifier,{value:\"done\",enumerable:!1,writable:!1,configurable:!1})}catch(e){console.log(e)}}"
        },
        {
            "names": [
                "remove-attr",
                "remove-attr.js",
                "ubo-remove-attr.js",
                "ra.js",
                "ubo-ra.js",
                "ubo-remove-attr",
                "ubo-ra"
            ],
            "scriptlet": "function removeAttr(source,args){const uniqueIdentifier=source.uniqueId+source.name+\"_\"+(Array.isArray(args)?args.join(\"_\"):\"\");if(source.uniqueId&&\"done\"===Window.prototype.toString[uniqueIdentifier])return;function observeDOMChanges(t){var e=arguments.length>1&&void 0!==arguments[1]&&arguments[1],n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:[],i=new MutationObserver(function(n,t){var r,e=!1,_wrapper=function(){for(var o=arguments.length,u=new Array(o),f=0;f<o;f++)u[f]=arguments[f];e?r=u:(n(...u),e=!0,setTimeout((function(){e=!1,r&&(_wrapper(...r),r=null)}),t))};return _wrapper}((function(){disconnect(),t(),connect()}),20)),connect=function(){n.length>0?i.observe(document.documentElement,{childList:!0,subtree:!0,attributes:e,attributeFilter:n}):i.observe(document.documentElement,{childList:!0,subtree:!0,attributes:e})},disconnect=function(){i.disconnect()};connect()}const updatedArgs=args?[].concat(source).concat(args):[source];try{(function(source,attrs,selector){var applying=arguments.length>3&&void 0!==arguments[3]?arguments[3]:\"asap stay\";if(attrs){attrs=attrs.split(/\\s*\\|\\s*/),selector||(selector=`[${attrs.join(\"],[\")}]`);var t,e,n,a,r,s,rmattr=function(){var nodes=[];try{nodes=[].slice.call(document.querySelectorAll(selector))}catch(e){!function(e,o){var r=arguments.length>2&&void 0!==arguments[2]&&arguments[2],a=!(arguments.length>3&&void 0!==arguments[3])||arguments[3],{name:n,verbose:g}=e;if(r||g){var i=console.log;a?i(`${n}: ${o}`):Array.isArray(o)?i(`${n}:`,...o):i(`${n}:`,o)}}(source,`Invalid selector arg: '${selector}'`)}var removed=!1;nodes.forEach((function(node){attrs.forEach((function(attr){node.removeAttribute(attr),removed=!0}))})),removed&&function(e){if(e.verbose){try{var n=console.trace.bind(console),i=\"[AdGuard] \";\"corelibs\"===e.engine?i+=e.ruleText:(e.domainName&&(i+=`${e.domainName}`),e.args?i+=`#%#//scriptlet('${e.name}', '${e.args.join(\"', '\")}')`:i+=`#%#//scriptlet('${e.name}')`),n&&n(i)}catch(e){}\"function\"==typeof window.__debug&&window.__debug(e)}}(source)},flags=(t=applying,e=\"asap\",n=\"complete\",a=\"stay\",r=new Set([e,n,a]),s=new Set(t.trim().split(\" \").filter((function(t){return r.has(t)}))),{ASAP:e,COMPLETE:n,STAY:a,hasFlag:function(t){return s.has(t)}});flags.hasFlag(flags.ASAP)&&(\"loading\"===document.readyState?window.addEventListener(\"DOMContentLoaded\",rmattr,{once:!0}):rmattr()),\"complete\"!==document.readyState&&flags.hasFlag(flags.COMPLETE)?window.addEventListener(\"load\",(function(){rmattr(),flags.hasFlag(flags.STAY)&&observeDOMChanges(rmattr,!0)}),{once:!0}):flags.hasFlag(flags.STAY)&&(applying.includes(\" \")||rmattr(),observeDOMChanges(rmattr,!0))}}).apply(this,updatedArgs),source.uniqueId&&Object.defineProperty(Window.prototype.toString,uniqueIdentifier,{value:\"done\",enumerable:!1,writable:!1,configurable:!1})}catch(e){console.log(e)}}"
        },
        {
            "names": [
                "remove-class",
                "remove-class.js",
                "ubo-remove-class.js",
                "rc.js",
                "ubo-rc.js",
                "ubo-remove-class",
                "ubo-rc"
            ],
            "scriptlet": "function removeClass(source,args){const uniqueIdentifier=source.uniqueId+source.name+\"_\"+(Array.isArray(args)?args.join(\"_\"):\"\");if(source.uniqueId&&\"done\"===Window.prototype.toString[uniqueIdentifier])return;function observeDOMChanges(t){var e=arguments.length>1&&void 0!==arguments[1]&&arguments[1],n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:[],i=new MutationObserver(function(n,t){var r,e=!1,_wrapper=function(){for(var o=arguments.length,u=new Array(o),f=0;f<o;f++)u[f]=arguments[f];e?r=u:(n(...u),e=!0,setTimeout((function(){e=!1,r&&(_wrapper(...r),r=null)}),t))};return _wrapper}((function(){disconnect(),t(),connect()}),20)),connect=function(){n.length>0?i.observe(document.documentElement,{childList:!0,subtree:!0,attributes:e,attributeFilter:n}):i.observe(document.documentElement,{childList:!0,subtree:!0,attributes:e})},disconnect=function(){i.disconnect()};connect()}const updatedArgs=args?[].concat(source).concat(args):[source];try{(function(source,classNames,selector){var applying=arguments.length>3&&void 0!==arguments[3]?arguments[3]:\"asap stay\";if(classNames){classNames=classNames.split(/\\s*\\|\\s*/);var selectors=[];selector||(selectors=classNames.map((function(className){return`.${className}`})));var t,e,n,a,r,s,removeClassHandler=function(){var nodes=new Set;if(selector){var foundNodes=[];try{foundNodes=[].slice.call(document.querySelectorAll(selector))}catch(e){!function(e,o){var r=arguments.length>2&&void 0!==arguments[2]&&arguments[2],a=!(arguments.length>3&&void 0!==arguments[3])||arguments[3],{name:n,verbose:g}=e;if(r||g){var i=console.log;a?i(`${n}: ${o}`):Array.isArray(o)?i(`${n}:`,...o):i(`${n}:`,o)}}(source,`Invalid selector arg: '${selector}'`)}foundNodes.forEach((function(n){return nodes.add(n)}))}else selectors.length>0&&selectors.forEach((function(s){for(var elements=document.querySelectorAll(s),i=0;i<elements.length;i+=1){var element=elements[i];nodes.add(element)}}));var removed=!1;nodes.forEach((function(node){classNames.forEach((function(className){node.classList.contains(className)&&(node.classList.remove(className),removed=!0)}))})),removed&&function(e){if(e.verbose){try{var n=console.trace.bind(console),i=\"[AdGuard] \";\"corelibs\"===e.engine?i+=e.ruleText:(e.domainName&&(i+=`${e.domainName}`),e.args?i+=`#%#//scriptlet('${e.name}', '${e.args.join(\"', '\")}')`:i+=`#%#//scriptlet('${e.name}')`),n&&n(i)}catch(e){}\"function\"==typeof window.__debug&&window.__debug(e)}}(source)},CLASS_ATTR_NAME=[\"class\"],flags=(t=applying,e=\"asap\",n=\"complete\",a=\"stay\",r=new Set([e,n,a]),s=new Set(t.trim().split(\" \").filter((function(t){return r.has(t)}))),{ASAP:e,COMPLETE:n,STAY:a,hasFlag:function(t){return s.has(t)}});flags.hasFlag(flags.ASAP)&&(\"loading\"===document.readyState?window.addEventListener(\"DOMContentLoaded\",removeClassHandler,{once:!0}):removeClassHandler()),\"complete\"!==document.readyState&&flags.hasFlag(flags.COMPLETE)?window.addEventListener(\"load\",(function(){removeClassHandler(),flags.hasFlag(flags.STAY)&&observeDOMChanges(removeClassHandler,!0,CLASS_ATTR_NAME)}),{once:!0}):flags.hasFlag(flags.STAY)&&(applying.includes(\" \")||removeClassHandler(),observeDOMChanges(removeClassHandler,!0,CLASS_ATTR_NAME))}}).apply(this,updatedArgs),source.uniqueId&&Object.defineProperty(Window.prototype.toString,uniqueIdentifier,{value:\"done\",enumerable:!1,writable:!1,configurable:!1})}catch(e){console.log(e)}}"
        },
        {
            "names": [
                "remove-cookie",
                "cookie-remover.js",
                "ubo-cookie-remover.js",
                "ubo-cookie-remover",
                "remove-cookie.js",
                "ubo-remove-cookie.js",
                "ubo-remove-cookie",
                "abp-cookie-remover"
            ],
            "scriptlet": "function removeCookie(source,args){const uniqueIdentifier=source.uniqueId+source.name+\"_\"+(Array.isArray(args)?args.join(\"_\"):\"\");if(source.uniqueId&&\"done\"===Window.prototype.toString[uniqueIdentifier])return;const updatedArgs=args?[].concat(source).concat(args):[source];try{(function(source,match){var matchRegexp=function(e){var r=e||\"\",t=\"/\";if(\"\"===r)return new RegExp(\".?\");var n,i,s=r.lastIndexOf(t),a=r.substring(s+1),g=r.substring(0,s+1),u=(i=a,(n=g).startsWith(t)&&n.endsWith(t)&&!n.endsWith(\"\\\\/\")&&function(e){if(!e)return!1;try{return new RegExp(\"\",e),!0}catch(e){return!1}}(i)?i:\"\");if(r.startsWith(t)&&r.endsWith(t)||u)return new RegExp((u?g:r).slice(1,-1),u);var c=r.replace(/\\\\'/g,\"'\").replace(/\\\\\"/g,'\"').replace(/[.*+?^${}()|[\\]\\\\]/g,\"\\\\$&\");return new RegExp(c)}(match),removeCookieFromHost=function(cookieName,hostName){var cookieSpec=`${cookieName}=`,domain1=`; domain=${hostName}`,domain2=`; domain=.${hostName}`,path=\"; path=/\",expiration=\"; expires=Thu, 01 Jan 1970 00:00:00 GMT\";document.cookie=cookieSpec+expiration,document.cookie=cookieSpec+domain1+expiration,document.cookie=cookieSpec+domain2+expiration,document.cookie=cookieSpec+path+expiration,document.cookie=cookieSpec+domain1+path+expiration,document.cookie=cookieSpec+domain2+path+expiration,function(e){if(e.verbose){try{var n=console.trace.bind(console),i=\"[AdGuard] \";\"corelibs\"===e.engine?i+=e.ruleText:(e.domainName&&(i+=`${e.domainName}`),e.args?i+=`#%#//scriptlet('${e.name}', '${e.args.join(\"', '\")}')`:i+=`#%#//scriptlet('${e.name}')`),n&&n(i)}catch(e){}\"function\"==typeof window.__debug&&window.__debug(e)}}(source)},rmCookie=function(){document.cookie.split(\";\").forEach((function(cookieStr){var pos=cookieStr.indexOf(\"=\");if(-1!==pos){var cookieName=cookieStr.slice(0,pos).trim();if(matchRegexp.test(cookieName))for(var hostParts=document.location.hostname.split(\".\"),i=0;i<=hostParts.length-1;i+=1){var hostName=hostParts.slice(i).join(\".\");hostName&&removeCookieFromHost(cookieName,hostName)}}}))};rmCookie(),window.addEventListener(\"beforeunload\",rmCookie)}).apply(this,updatedArgs),source.uniqueId&&Object.defineProperty(Window.prototype.toString,uniqueIdentifier,{value:\"done\",enumerable:!1,writable:!1,configurable:!1})}catch(e){console.log(e)}}"
        },
        {
            "names": [
                "remove-in-shadow-dom"
            ],
            "scriptlet": "function removeInShadowDom(source,args){const uniqueIdentifier=source.uniqueId+source.name+\"_\"+(Array.isArray(args)?args.join(\"_\"):\"\");if(source.uniqueId&&\"done\"===Window.prototype.toString[uniqueIdentifier])return;function findHostElements(o){var n=[];return o&&o.querySelectorAll(\"*\").forEach((function(o){o.shadowRoot&&n.push(o)})),n}const updatedArgs=args?[].concat(source).concat(args):[source];try{(function(source,selector,baseSelector){if(Element.prototype.attachShadow){var removeHandler=function(){for(var hostElements=baseSelector?document.querySelectorAll(baseSelector):findHostElements(document.documentElement),_loop=function(){var isRemoved=!1,{targets:targets,innerHosts:innerHosts}=function(e,t){var c=[],l=[];t.forEach((function(t){var o=t.querySelectorAll(e);c=c.concat([].slice.call(o));var r=t.shadowRoot,a=r.querySelectorAll(e);c=c.concat([].slice.call(a)),l.push(findHostElements(r))}));var o=function(r){var n=[];r.forEach((function(r){return n.push(r)}));for(var t=[];n.length;){var u=n.pop();Array.isArray(u)?u.forEach((function(r){return n.push(r)})):t.push(u)}return t.reverse()}(l);return{targets:c,innerHosts:o}}(selector,hostElements);targets.forEach((function(targetEl){targetEl.remove(),isRemoved=!0})),isRemoved&&function(e){if(e.verbose){try{var n=console.trace.bind(console),i=\"[AdGuard] \";\"corelibs\"===e.engine?i+=e.ruleText:(e.domainName&&(i+=`${e.domainName}`),e.args?i+=`#%#//scriptlet('${e.name}', '${e.args.join(\"', '\")}')`:i+=`#%#//scriptlet('${e.name}')`),n&&n(i)}catch(e){}\"function\"==typeof window.__debug&&window.__debug(e)}}(source),hostElements=innerHosts};0!==hostElements.length;)_loop()};removeHandler(),function(t){var e=arguments.length>1&&void 0!==arguments[1]&&arguments[1],n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:[],i=new MutationObserver(function(n,t){var r,e=!1,_wrapper=function(){for(var o=arguments.length,u=new Array(o),f=0;f<o;f++)u[f]=arguments[f];e?r=u:(n(...u),e=!0,setTimeout((function(){e=!1,r&&(_wrapper(...r),r=null)}),t))};return _wrapper}((function(){disconnect(),t(),connect()}),20)),connect=function(){n.length>0?i.observe(document.documentElement,{childList:!0,subtree:!0,attributes:e,attributeFilter:n}):i.observe(document.documentElement,{childList:!0,subtree:!0,attributes:e})},disconnect=function(){i.disconnect()};connect()}(removeHandler,!0)}}).apply(this,updatedArgs),source.uniqueId&&Object.defineProperty(Window.prototype.toString,uniqueIdentifier,{value:\"done\",enumerable:!1,writable:!1,configurable:!1})}catch(e){console.log(e)}}"
        },
        {
            "names": [
                "remove-node-text",
                "remove-node-text.js",
                "ubo-remove-node-text.js",
                "rmnt.js",
                "ubo-rmnt.js",
                "ubo-remove-node-text",
                "ubo-rmnt"
            ],
            "scriptlet": "function removeNodeText(source,args){const uniqueIdentifier=source.uniqueId+source.name+\"_\"+(Array.isArray(args)?args.join(\"_\"):\"\");if(source.uniqueId&&\"done\"===Window.prototype.toString[uniqueIdentifier])return;function handleExistingNodes(e,n,o){(o?document.querySelectorAll(o):[document]).forEach((function(o){return function(o){if(\"#text\"===e){var r=nodeListToArray(o.childNodes).filter((function(e){return e.nodeType===Node.TEXT_NODE}));n(r)}else{var t=nodeListToArray(o.querySelectorAll(e));n(t)}}(o)}))}function nodeListToArray(r){for(var n=[],o=0;o<r.length;o+=1)n.push(r[o]);return n}function toRegExp(e){var r=e||\"\",t=\"/\";if(\"\"===r)return new RegExp(\".?\");var n,i,s=r.lastIndexOf(t),a=r.substring(s+1),g=r.substring(0,s+1),u=(i=a,(n=g).startsWith(t)&&n.endsWith(t)&&!n.endsWith(\"\\\\/\")&&function(e){if(!e)return!1;try{return new RegExp(\"\",e),!0}catch(e){return!1}}(i)?i:\"\");if(r.startsWith(t)&&r.endsWith(t)||u)return new RegExp((u?g:r).slice(1,-1),u);var c=r.replace(/\\\\'/g,\"'\").replace(/\\\\\"/g,'\"').replace(/[.*+?^${}()|[\\]\\\\]/g,\"\\\\$&\");return new RegExp(c)}const updatedArgs=args?[].concat(source).concat(args):[source];try{(function(source,nodeName,textMatch,parentSelector){var{selector:selector,nodeNameMatch:nodeNameMatch,textContentMatch:textContentMatch}=function(t,e){var a,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null,r=\"/\",s=!(t.startsWith(r)&&t.endsWith(r)),o=s?t:\"*\",h=s?t:toRegExp(t),i=e.startsWith(r)?toRegExp(e):e;return n&&(a=n.startsWith(r)?toRegExp(n):n),{selector:o,nodeNameMatch:h,textContentMatch:i,patternMatch:a}}(nodeName,textMatch),handleNodes=function(nodes){return nodes.forEach((function(node){(function(e,t,n){var{nodeName:o,textContent:s}=e,a=o.toLowerCase();return null!==s&&\"\"!==s&&(t instanceof RegExp?t.test(a):t===a)&&(n instanceof RegExp?n.test(s):s.includes(n))})(node,nodeNameMatch,textContentMatch)&&function(e,t,n,r){var{textContent:a}=t;if(a){var i=a.replace(n,r);\"SCRIPT\"===t.nodeName&&(i=function(t){var r,e=null==t||null===(r=t.api)||void 0===r?void 0:r.policy;if(e)return e;var n=\"AGPolicy\",i=window.trustedTypes,u=!!i,c={HTML:\"TrustedHTML\",Script:\"TrustedScript\",ScriptURL:\"TrustedScriptURL\"};if(!u)return{name:n,isSupported:u,TrustedType:c,createHTML:function(t){return t},createScript:function(t){return t},createScriptURL:function(t){return t},create:function(t,r){return r},getAttributeType:function(){return null},convertAttributeToTrusted:function(t,r,e){return e},getPropertyType:function(){return null},convertPropertyToTrusted:function(t,r,e){return e},isHTML:function(){return!1},isScript:function(){return!1},isScriptURL:function(){return!1}};var o=i.createPolicy(n,{createHTML:function(t){return t},createScript:function(t){return t},createScriptURL:function(t){return t}}),createHTML=function(t){return o.createHTML(t)},createScript=function(t){return o.createScript(t)},createScriptURL=function(t){return o.createScriptURL(t)},create=function(t,r){switch(t){case c.HTML:return createHTML(r);case c.Script:return createScript(r);case c.ScriptURL:return createScriptURL(r);default:return r}},p=i.getAttributeType.bind(i),T=i.getPropertyType.bind(i),s=i.isHTML.bind(i),a=i.isScript.bind(i),f=i.isScriptURL.bind(i);return{name:n,isSupported:u,TrustedType:c,createHTML:createHTML,createScript:createScript,createScriptURL:createScriptURL,create:create,getAttributeType:p,convertAttributeToTrusted:function(t,r,e,n,i){var u=p(t,r,n,i);return u?create(u,e):e},getPropertyType:T,convertPropertyToTrusted:function(t,r,e,n){var i=T(t,r,n);return i?create(i,e):e},isHTML:s,isScript:a,isScriptURL:f}}(e).createScript(i)),t.textContent=i,function(e){if(e.verbose){try{var n=console.trace.bind(console),i=\"[AdGuard] \";\"corelibs\"===e.engine?i+=e.ruleText:(e.domainName&&(i+=`${e.domainName}`),e.args?i+=`#%#//scriptlet('${e.name}', '${e.args.join(\"', '\")}')`:i+=`#%#//scriptlet('${e.name}')`),n&&n(i)}catch(e){}\"function\"==typeof window.__debug&&window.__debug(e)}}(e)}}(source,node,/^[^]*$/,\"\")}))};document.documentElement&&handleExistingNodes(selector,handleNodes,parentSelector),function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{subtree:!0,childList:!0},n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:1e4,o=new MutationObserver((function(n,o){o.disconnect(),e(n,o),o.observe(document.documentElement,t)}));o.observe(document.documentElement,t),\"number\"==typeof n&&setTimeout((function(){return o.disconnect()}),n)}((function(mutations){return d=handleNodes,e=selector,o=parentSelector,t=function(d){for(var e=[],r=0;r<d.length;r+=1)for(var{addedNodes:n}=d[r],o=0;o<n.length;o+=1)e.push(n[o]);return e}(mutations),void(e&&o?t.forEach((function(){handleExistingNodes(e,d,o)})):d(t));var d,e,o,t}))}).apply(this,updatedArgs),source.uniqueId&&Object.defineProperty(Window.prototype.toString,uniqueIdentifier,{value:\"done\",enumerable:!1,writable:!1,configurable:!1})}catch(e){console.log(e)}}"
        },
        {
            "names": [
                "remove-request-query-parameter",
                "abp-strip-fetch-query-parameter"
            ],
            "scriptlet": "function removeRequestQueryParameter(source,args){const uniqueIdentifier=source.uniqueId+source.name+\"_\"+(Array.isArray(args)?args.join(\"_\"):\"\");if(source.uniqueId&&\"done\"===Window.prototype.toString[uniqueIdentifier])return;function logMessage(e,o){var r=arguments.length>2&&void 0!==arguments[2]&&arguments[2],a=!(arguments.length>3&&void 0!==arguments[3])||arguments[3],{name:n,verbose:g}=e;if(r||g){var i=console.log;a?i(`${n}: ${o}`):Array.isArray(o)?i(`${n}:`,...o):i(`${n}:`,o)}}function toRegExp(e){var r=e||\"\",t=\"/\";if(\"\"===r)return new RegExp(\".?\");var n,i,s=r.lastIndexOf(t),a=r.substring(s+1),g=r.substring(0,s+1),u=(i=a,(n=g).startsWith(t)&&n.endsWith(t)&&!n.endsWith(\"\\\\/\")&&function(e){if(!e)return!1;try{return new RegExp(\"\",e),!0}catch(e){return!1}}(i)?i:\"\");if(r.startsWith(t)&&r.endsWith(t)||u)return new RegExp((u?g:r).slice(1,-1),u);var c=r.replace(/\\\\'/g,\"'\").replace(/\\\\\"/g,'\"').replace(/[.*+?^${}()|[\\]\\\\]/g,\"\\\\$&\");return new RegExp(c)}const updatedArgs=args?[].concat(source).concat(args):[source];try{(function(source,parametersToRemove,urlPattern){if(parametersToRemove){var regexpParamsToRemove,urlPatternRegExp=null;if(urlPattern)try{urlPatternRegExp=toRegExp(urlPattern)}catch(e){return void logMessage(source,`Invalid URL pattern: ${urlPattern}`)}try{if(parametersToRemove.startsWith(\"/\"))regexpParamsToRemove=[toRegExp(parametersToRemove)];else{var paramsToRemove=function(t,n){for(var e=[],i=\"\",g=0;g<t.length;)\"\\\\\"===t[g]&&g+1<t.length&&t.substring(g+1,g+1+n.length)===n?(i+=n,g+=1+n.length):t.substring(g,g+n.length)===n?(e.push(i),i=\"\",g+=n.length):(i+=t[g],g+=1);return e.push(i),e}(parametersToRemove,\",\");regexpParamsToRemove=paramsToRemove.map((function(param){return toRegExp(param)}))}}catch(e){return void logMessage(source,`Invalid parameter pattern: ${parametersToRemove}`)}var removeParams=function(url){try{var modified=!1,urlObj=new URL(url,window.location.origin);if(Array.from(urlObj.searchParams.keys()).forEach((function(paramName){regexpParamsToRemove.some((function(regex){return regex.lastIndex=0,regex.test(paramName)}))&&(urlObj.searchParams.delete(paramName),modified=!0)})),modified)return function(e){if(e.verbose){try{var n=console.trace.bind(console),i=\"[AdGuard] \";\"corelibs\"===e.engine?i+=e.ruleText:(e.domainName&&(i+=`${e.domainName}`),e.args?i+=`#%#//scriptlet('${e.name}', '${e.args.join(\"', '\")}')`:i+=`#%#//scriptlet('${e.name}')`),n&&n(i)}catch(e){}\"function\"==typeof window.__debug&&window.__debug(e)}}(source),urlObj.toString()}catch(e){logMessage(source,`Cannot remove query parameters from URL: ${url}`)}return url},xhrHandler={apply:function(target,thisArg,argumentsList){var url,urlArg=argumentsList[1];if(!urlArg)return Reflect.apply(target,thisArg,argumentsList);if(\"string\"==typeof urlArg)url=urlArg;else{if(!(urlArg instanceof URL))return Reflect.apply(target,thisArg,argumentsList);url=urlArg.toString()}if(urlPatternRegExp&&!urlPatternRegExp.test(url))return Reflect.apply(target,thisArg,argumentsList);var newUrl=removeParams(url);return argumentsList[1]=newUrl,Reflect.apply(target,thisArg,argumentsList)}},fetchHandler={apply:function(target,thisArg,argumentsList){var requestUrl={url:\"\",type:\"\"},urlArg=argumentsList[0];if(!urlArg)return Reflect.apply(target,thisArg,argumentsList);if(\"string\"==typeof urlArg?(requestUrl.url=urlArg,requestUrl.type=\"string\"):urlArg instanceof URL?(requestUrl.url=urlArg.toString(),requestUrl.type=\"string\"):urlArg instanceof Request&&(requestUrl.url=urlArg.url,requestUrl.type=\"request\"),!requestUrl.url)return Reflect.apply(target,thisArg,argumentsList);if(urlPatternRegExp&&!urlPatternRegExp.test(requestUrl.url))return Reflect.apply(target,thisArg,argumentsList);var newUrl=removeParams(requestUrl.url);if(newUrl===requestUrl.url)return Reflect.apply(target,thisArg,argumentsList);if(\"string\"===requestUrl.type)argumentsList[0]=newUrl;else if(\"request\"===requestUrl.type){var originalRequest=argumentsList[0];argumentsList[0]=new Request(newUrl,originalRequest)}return Reflect.apply(target,thisArg,argumentsList)}};window.XMLHttpRequest.prototype.open=new Proxy(window.XMLHttpRequest.prototype.open,xhrHandler),window.fetch=new Proxy(window.fetch,fetchHandler)}else logMessage(source,\"Missing parameters to remove\")}).apply(this,updatedArgs),source.uniqueId&&Object.defineProperty(Window.prototype.toString,uniqueIdentifier,{value:\"done\",enumerable:!1,writable:!1,configurable:!1})}catch(e){console.log(e)}}"
        },
        {
            "names": [
                "set-attr",
                "set-attr.js",
                "ubo-set-attr.js",
                "ubo-set-attr"
            ],
            "scriptlet": "function setAttr(source,args){const uniqueIdentifier=source.uniqueId+source.name+\"_\"+(Array.isArray(args)?args.join(\"_\"):\"\");if(source.uniqueId&&\"done\"===Window.prototype.toString[uniqueIdentifier])return;function setAttributeBySelector(e,t,l,o){var r,c=arguments.length>4&&void 0!==arguments[4]?arguments[4]:defaultAttributeSetter;try{r=document.querySelectorAll(t)}catch(l){return void logMessage(e,`Failed to find elements matching selector \"${t}\"`)}if(r&&0!==r.length)try{r.forEach((function(e){return c(e,l,o)})),function(e){if(e.verbose){try{var n=console.trace.bind(console),i=\"[AdGuard] \";\"corelibs\"===e.engine?i+=e.ruleText:(e.domainName&&(i+=`${e.domainName}`),e.args?i+=`#%#//scriptlet('${e.name}', '${e.args.join(\"', '\")}')`:i+=`#%#//scriptlet('${e.name}')`),n&&n(i)}catch(e){}\"function\"==typeof window.__debug&&window.__debug(e)}}(e)}catch(t){logMessage(e,`Failed to set [${l}=\"${o}\"] to each of selected elements.`)}}function defaultAttributeSetter(t,e,r){return t.setAttribute(e,r)}function logMessage(e,o){var r=arguments.length>2&&void 0!==arguments[2]&&arguments[2],a=!(arguments.length>3&&void 0!==arguments[3])||arguments[3],{name:n,verbose:g}=e;if(r||g){var i=console.log;a?i(`${n}: ${o}`):Array.isArray(o)?i(`${n}:`,...o):i(`${n}:`,o)}}const updatedArgs=args?[].concat(source).concat(args):[source];try{(function(source,selector,attr){var value=arguments.length>3&&void 0!==arguments[3]?arguments[3]:\"\";if(selector&&attr){var N,n,attributeHandler,shouldCopyValue=value.startsWith(\"[\")&&value.endsWith(\"]\"),isValidValue=0===value.length||(N=parseInt(value,10),!(Number.isNaN||window.isNaN)(N)&&parseInt(value,10)>=0&&parseInt(value,10)<=32767)||[\"true\",\"false\"].includes(value.toLowerCase());shouldCopyValue||isValidValue?(shouldCopyValue&&(attributeHandler=function(elem,attr,value){var valueToCopy=elem.getAttribute(value.slice(1,-1));null===valueToCopy&&logMessage(source,`No element attribute found to copy value from: ${value}`),elem.setAttribute(attr,valueToCopy)}),setAttributeBySelector(source,selector,attr,value,attributeHandler),function(t){var e=arguments.length>1&&void 0!==arguments[1]&&arguments[1],n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:[],i=new MutationObserver(function(n,t){var r,e=!1,_wrapper=function(){for(var o=arguments.length,u=new Array(o),f=0;f<o;f++)u[f]=arguments[f];e?r=u:(n(...u),e=!0,setTimeout((function(){e=!1,r&&(_wrapper(...r),r=null)}),t))};return _wrapper}((function(){disconnect(),t(),connect()}),20)),connect=function(){n.length>0?i.observe(document.documentElement,{childList:!0,subtree:!0,attributes:e,attributeFilter:n}):i.observe(document.documentElement,{childList:!0,subtree:!0,attributes:e})},disconnect=function(){i.disconnect()};connect()}((function(){return setAttributeBySelector(source,selector,attr,value,attributeHandler)}),!0)):logMessage(source,`Invalid attribute value provided: '${n=value,void 0===n?\"undefined\":\"object\"==typeof n?null===n?\"null\":objectToString(n):String(n)}'`)}}).apply(this,updatedArgs),source.uniqueId&&Object.defineProperty(Window.prototype.toString,uniqueIdentifier,{value:\"done\",enumerable:!1,writable:!1,configurable:!1})}catch(e){console.log(e)}}"
        },
        {
            "names": [
                "set-constant",
                "set-constant.js",
                "ubo-set-constant.js",
                "set.js",
                "ubo-set.js",
                "ubo-set-constant",
                "ubo-set",
                "abp-override-property-read"
            ],
            "scriptlet": "function setConstant(source,args){const uniqueIdentifier=source.uniqueId+source.name+\"_\"+(Array.isArray(args)?args.join(\"_\"):\"\");if(source.uniqueId&&\"done\"===Window.prototype.toString[uniqueIdentifier])return;function hit(e){if(e.verbose){try{var n=console.trace.bind(console),i=\"[AdGuard] \";\"corelibs\"===e.engine?i+=e.ruleText:(e.domainName&&(i+=`${e.domainName}`),e.args?i+=`#%#//scriptlet('${e.name}', '${e.args.join(\"', '\")}')`:i+=`#%#//scriptlet('${e.name}')`),n&&n(i)}catch(e){}\"function\"==typeof window.__debug&&window.__debug(e)}}function noopFunc(){}function noopCallbackFunc(){return noopFunc}function trueFunc(){return!0}function falseFunc(){return!1}function throwFunc(){throw new Error}function noopPromiseReject(){return Promise.reject()}function noopPromiseResolve(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:\"{}\",t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:\"\",s=arguments.length>2&&void 0!==arguments[2]?arguments[2]:\"basic\";if(\"undefined\"!=typeof Response){var n=new Response(e,{headers:{\"Content-Length\":`${e.length}`},status:200,statusText:\"OK\"});return\"opaque\"===s?Object.defineProperties(n,{body:{value:null},status:{value:0},ok:{value:!1},statusText:{value:\"\"},url:{value:\"\"},type:{value:s}}):Object.defineProperties(n,{url:{value:t},type:{value:s}}),Promise.resolve(n)}}function nativeIsNaN(N){return(Number.isNaN||window.isNaN)(N)}function toRegExp(e){var r=e||\"\",t=\"/\";if(\"\"===r)return new RegExp(\".?\");var n,i,s=r.lastIndexOf(t),a=r.substring(s+1),g=r.substring(0,s+1),u=(i=a,(n=g).startsWith(t)&&n.endsWith(t)&&!n.endsWith(\"\\\\/\")&&function(e){if(!e)return!1;try{return new RegExp(\"\",e),!0}catch(e){return!1}}(i)?i:\"\");if(r.startsWith(t)&&r.endsWith(t)||u)return new RegExp((u?g:r).slice(1,-1),u);var c=r.replace(/\\\\'/g,\"'\").replace(/\\\\\"/g,'\"').replace(/[.*+?^${}()|[\\]\\\\]/g,\"\\\\$&\");return new RegExp(c)}function restoreRegExpValues(e){if(e.length)try{var r;r=1===e.length?`(${e[0]})`:e.reduce((function(e,r,t){return 1===t?`(${e}),(${r})`:`${e},(${r})`}));var t=new RegExp(r);e.toString().replace(t,\"\")}catch(e){var n=`Failed to restore RegExp values: ${e}`;console.log(n)}}function getPropertyInChain(e,r){var n=r.indexOf(\".\");if(-1===n)return{base:e,prop:r};var i=r.slice(0,n);if(null===e)return{base:e,prop:i,chain:r};var t=e[i];return r=r.slice(n+1),(e instanceof Object||\"object\"==typeof e)&&isEmptyObject(e)||null===t?{base:e,prop:i,chain:r}:void 0!==t?getPropertyInChain(t,r):(Object.defineProperty(e,i,{configurable:!0}),{base:e,prop:i,chain:r})}function isEmptyObject(t){return 0===Object.keys(t).length&&!t.prototype}function getDescriptorAddon(){return{isAbortingSuspended:!1,isolateCallback(r){this.isAbortingSuspended=!0;try{for(var e=arguments.length,n=new Array(e>1?e-1:0),t=1;t<e;t++)n[t-1]=arguments[t];var i=r(...n);return this.isAbortingSuspended=!1,i}catch(r){var s=randomId();throw this.isAbortingSuspended=!1,new ReferenceError(s)}}}}const updatedArgs=args?[].concat(source).concat(args):[source];try{(function(source,property,value){var r,stack=arguments.length>3&&void 0!==arguments[3]?arguments[3]:\"\",valueWrapper=arguments.length>4&&void 0!==arguments[4]?arguments[4]:\"\",setProxyTrap=arguments.length>5&&void 0!==arguments[5]&&arguments[5];if([\"set-constant.js\",\"ubo-set-constant.js\",\"set.js\",\"ubo-set.js\",\"ubo-set-constant\",\"ubo-set\"].includes(source.name)&&(1!==stack.length&&(nativeIsNaN(r=parseInt(stack,10))||!r)&&(valueWrapper=stack),stack=void 0),property){var constantValue,isProxyTrapSet=!1;if(\"undefined\"===value)constantValue=void 0;else if(\"false\"===value)constantValue=!1;else if(\"true\"===value)constantValue=!0;else if(\"null\"===value)constantValue=null;else if(\"emptyArr\"===value)constantValue=[];else if(\"emptyObj\"===value)constantValue={};else if(\"noopFunc\"===value)constantValue=noopFunc;else if(\"noopCallbackFunc\"===value)constantValue=noopCallbackFunc;else if(\"trueFunc\"===value)constantValue=trueFunc;else if(\"falseFunc\"===value)constantValue=falseFunc;else if(\"throwFunc\"===value)constantValue=throwFunc;else if(\"noopPromiseResolve\"===value)constantValue=noopPromiseResolve;else if(\"noopPromiseReject\"===value)constantValue=noopPromiseReject;else if(/^\\d+$/.test(value)){if(nativeIsNaN(constantValue=parseFloat(value)))return;if(Math.abs(constantValue)>32767)return}else if(\"-1\"===value)constantValue=-1;else if(\"\"===value)constantValue=\"\";else if(\"yes\"===value)constantValue=\"yes\";else{if(\"no\"!==value)return;constantValue=\"no\"}[\"asFunction\",\"asCallback\",\"asResolved\",\"asRejected\"].includes(valueWrapper)&&(constantValue={asFunction:v=>function(){return v},asCallback:v=>function(){return function(){return v}},asResolved:v=>Promise.resolve(v),asRejected:v=>Promise.reject(v)}[valueWrapper](constantValue));var canceled=!1,setChainPropAccess=function(t){var{source:e,stack:r,mustCancel:i,trapProp:n,getConstantValue:a,setConstantValue:s}=t,_setChainPropAccess=function(t,c){var o=getPropertyInChain(t,c),{base:u,prop:d,chain:f}=o,h={factValue:void 0,init(t){return this.factValue=t,!0},get(){return this.factValue},set(t){this.factValue!==t&&(this.factValue=t,t instanceof Object&&_setChainPropAccess(t,f))}},l={factValue:void 0,descriptorAddon:getDescriptorAddon(),init(t){return!i(t)&&(this.factValue=t,!0)},get(){if(!r)return hit(e),a();if(!this.descriptorAddon.isAbortingSuspended){this.descriptorAddon.isAbortingSuspended=!0;var t=!1;try{t=function(e,t){if(!e||\"\"===e)return!0;var r=function(){try{for(var r=[],e=1;e<10;e+=1){var a=`$${e}`;if(!RegExp[a])break;r.push(RegExp[a])}return r}catch(r){return[]}}();if(function(t,i){var r=\"inlineScript\",n=\"injectedScript\",isInlineScript=function(t){return t.includes(r)},isInjectedScript=function(t){return t.includes(n)};if(!isInlineScript(t)&&!isInjectedScript(t))return!1;var e=window.location.href,s=e.indexOf(\"#\");-1!==s&&(e=e.slice(0,s));var c=i.split(\"\\n\").slice(2).map((function(t){return t.trim()})).map((function(t){var i,s=/(.*?@)?(\\S+)(:\\d+)(:\\d+)\\)?$/.exec(t);if(s){var c,l,a=s[2],u=s[3],o=s[4];if(null!==(c=a)&&void 0!==c&&c.startsWith(\"(\")&&(a=a.slice(1)),null!==(l=a)&&void 0!==l&&l.startsWith(\"<anonymous>\")){var d;a=n;var f=void 0!==s[1]?s[1].slice(0,-1):t.slice(0,s.index).trim();null!==(d=f)&&void 0!==d&&d.startsWith(\"at\")&&(f=f.slice(2).trim()),i=`${f} ${a}${u}${o}`.trim()}else i=a===e?`${r}${u}${o}`.trim():`${a}${u}${o}`.trim()}else i=t;return i}));if(c)for(var l=0;l<c.length;l+=1){if(isInlineScript(t)&&c[l].startsWith(r)&&c[l].match(toRegExp(t)))return!0;if(isInjectedScript(t)&&c[l].startsWith(n)&&c[l].match(toRegExp(t)))return!0}return!1}(e,t))return r.length&&r[0]!==RegExp.$1&&restoreRegExpValues(r),!0;var n=toRegExp(e),a=t.split(\"\\n\").slice(2).map((function(e){return e.trim()})).join(\"\\n\");return r.length&&r[0]!==RegExp.$1&&restoreRegExpValues(r),function(){var t=Object.getOwnPropertyDescriptor(RegExp.prototype,\"test\"),e=null==t?void 0:t.value;if(t&&\"function\"==typeof t.value)return e;throw new Error(\"RegExp.prototype.test is not a function\")}().call(n,a)}(r,(new Error).stack||\"\")}catch(t){return this.descriptorAddon.isAbortingSuspended=!1,this.factValue}if(this.descriptorAddon.isAbortingSuspended=!1,t)return hit(e),a()}return this.factValue},set(t){i(t)?s(t):this.factValue=t}};if(f)if(void 0===u||null!==u[d]){(u instanceof Object||\"object\"==typeof u)&&isEmptyObject(u)&&n(u,d,!0,h);var p=t[d];(p instanceof Object||\"object\"==typeof p&&null!==p)&&_setChainPropAccess(p,f),n(u,d,!0,h)}else n(u,d,!0,h);else n(u,d,!1,l)};return _setChainPropAccess}({source:source,stack:stack,mustCancel:function(value){return canceled||(canceled=void 0!==value&&void 0!==constantValue&&typeof value!=typeof constantValue&&null!==value)},trapProp:function(base,prop,configurable,handler){if(!handler.init(base[prop]))return!1;var prevSetter,origDescriptor=Object.getOwnPropertyDescriptor(base,prop);if(origDescriptor instanceof Object){if(!origDescriptor.configurable)return function(e,o){var r=arguments.length>2&&void 0!==arguments[2]&&arguments[2],a=!(arguments.length>3&&void 0!==arguments[3])||arguments[3],{name:n,verbose:g}=e;if(r||g){var i=console.log;a?i(`${n}: ${o}`):Array.isArray(o)?i(`${n}:`,...o):i(`${n}:`,o)}}(source,`Property '${prop}' is not configurable`),!1;base[prop]&&(base[prop]=constantValue),origDescriptor.set instanceof Function&&(prevSetter=origDescriptor.set)}return Object.defineProperty(base,prop,{configurable:configurable,get:()=>handler.get(),set(a){if(void 0!==prevSetter&&prevSetter(a),a instanceof Object){var propertiesToCheck=property.split(\".\").slice(1);setProxyTrap&&!isProxyTrapSet&&(isProxyTrapSet=!0,a=new Proxy(a,{get:function(target,propertyKey,val){return propertiesToCheck.reduce((function(object,currentProp,index,array){var currentObj=null==object?void 0:object[currentProp];return index===array.length-1&&currentObj!==constantValue&&(object[currentProp]=constantValue),currentObj||object}),target),Reflect.get(target,propertyKey,val)}}))}handler.set(a)}}),!0},getConstantValue:function(){return constantValue},setConstantValue:function(v){constantValue=v}});setChainPropAccess(window,property)}}).apply(this,updatedArgs),source.uniqueId&&Object.defineProperty(Window.prototype.toString,uniqueIdentifier,{value:\"done\",enumerable:!1,writable:!1,configurable:!1})}catch(e){console.log(e)}}"
        },
        {
            "names": [
                "set-cookie",
                "set-cookie.js",
                "ubo-set-cookie.js",
                "ubo-set-cookie"
            ],
            "scriptlet": "function setCookie(source,args){const uniqueIdentifier=source.uniqueId+source.name+\"_\"+(Array.isArray(args)?args.join(\"_\"):\"\");if(source.uniqueId&&\"done\"===Window.prototype.toString[uniqueIdentifier])return;function logMessage(e,o){var r=arguments.length>2&&void 0!==arguments[2]&&arguments[2],a=!(arguments.length>3&&void 0!==arguments[3])||arguments[3],{name:n,verbose:g}=e;if(r||g){var i=console.log;a?i(`${n}: ${o}`):Array.isArray(o)?i(`${n}:`,...o):i(`${n}:`,o)}}const updatedArgs=args?[].concat(source).concat(args):[source];try{(function(source,name,value){var n,path=arguments.length>3&&void 0!==arguments[3]?arguments[3]:\"/\",domain=arguments.length>4&&void 0!==arguments[4]?arguments[4]:\"\",validValue=function(e){if(!e)return null;var n,N;if(new Set([\"true\",\"t\",\"false\",\"f\",\"yes\",\"y\",\"no\",\"n\",\"ok\",\"on\",\"off\",\"accept\",\"accepted\",\"notaccepted\",\"reject\",\"rejected\",\"allow\",\"allowed\",\"disallow\",\"deny\",\"denied\",\"enable\",\"enabled\",\"disable\",\"disabled\",\"necessary\",\"required\",\"hide\",\"hidden\",\"essential\",\"nonessential\",\"checked\",\"unchecked\",\"forbidden\",\"forever\",\"declined\",\"mandatory\",\"all\"]).has(e.toLowerCase()))n=e;else if(\"emptyArr\"===e)n=\"[]\";else if(\"emptyObj\"===e)n=\"{}\";else{if(!/^\\d+$/.test(e))return null;if(N=n=parseFloat(e),(Number.isNaN||window.isNaN)(N))return null;if(Math.abs(n)<0||Math.abs(n)>32767)return null}return n}(value);if(null!==validValue)if(\"/\"===(n=path)||\"none\"===n)if(document.location.origin.includes(domain)){var cookieToSet=function(e,o,i){var n=arguments.length>3&&void 0!==arguments[3]?arguments[3]:\"\",t=!(arguments.length>4&&void 0!==arguments[4])||arguments[4];if(!t&&`${o}`.includes(\";\")||e.includes(\";\"))return null;var r=`${e}=${t?encodeURIComponent(o):o}`;if(e.startsWith(\"__Host-\"))return r+=\"; path=/; secure\",n&&console.debug(`Domain value: \"${n}\" has been ignored, because is not allowed for __Host- prefixed cookies`),r;var s=function(t){return\"/\"===t?\"path=/\":\"\"}(i);return s&&(r+=`; ${s}`),e.startsWith(\"__Secure-\")&&(r+=\"; secure\"),n&&(r+=`; domain=${n}`),r}(name,validValue,path,domain,!1);cookieToSet?(function(e){if(e.verbose){try{var n=console.trace.bind(console),i=\"[AdGuard] \";\"corelibs\"===e.engine?i+=e.ruleText:(e.domainName&&(i+=`${e.domainName}`),e.args?i+=`#%#//scriptlet('${e.name}', '${e.args.join(\"', '\")}')`:i+=`#%#//scriptlet('${e.name}')`),n&&n(i)}catch(e){}\"function\"==typeof window.__debug&&window.__debug(e)}}(source),document.cookie=cookieToSet):logMessage(source,\"Invalid cookie name or value\")}else logMessage(source,`Cookie domain not matched by origin: '${domain}'`);else logMessage(source,`Invalid cookie path: '${path}'`);else logMessage(source,`Invalid cookie value: '${validValue}'`)}).apply(this,updatedArgs),source.uniqueId&&Object.defineProperty(Window.prototype.toString,uniqueIdentifier,{value:\"done\",enumerable:!1,writable:!1,configurable:!1})}catch(e){console.log(e)}}"
        },
        {
            "names": [
                "set-cookie-reload",
                "set-cookie-reload.js",
                "ubo-set-cookie-reload.js",
                "ubo-set-cookie-reload"
            ],
            "scriptlet": "function setCookieReload(source,args){const uniqueIdentifier=source.uniqueId+source.name+\"_\"+(Array.isArray(args)?args.join(\"_\"):\"\");if(source.uniqueId&&\"done\"===Window.prototype.toString[uniqueIdentifier])return;function logMessage(e,o){var r=arguments.length>2&&void 0!==arguments[2]&&arguments[2],a=!(arguments.length>3&&void 0!==arguments[3])||arguments[3],{name:n,verbose:g}=e;if(r||g){var i=console.log;a?i(`${n}: ${o}`):Array.isArray(o)?i(`${n}:`,...o):i(`${n}:`,o)}}function isCookieSetWithValue(e,t,r){return e.split(\";\").some((function(e){var n=e.indexOf(\"=\");if(-1===n)return!1;var i=e.slice(0,n).trim(),a=e.slice(n+1).trim();if(new Set([\"$now$\",\"$currentDate$\",\"$currentISODate$\"]).has(r)){var u=Date.now(),s=/^\\d+$/.test(a)?parseInt(a,10):new Date(a).getTime();return t===i&&s>u-864e5}return t===i&&r===a}))}const updatedArgs=args?[].concat(source).concat(args):[source];try{(function(source,name,value){var path=arguments.length>3&&void 0!==arguments[3]?arguments[3]:\"/\",domain=arguments.length>4&&void 0!==arguments[4]?arguments[4]:\"\";if(!isCookieSetWithValue(document.cookie,name,value)){var n,validValue=function(e){if(!e)return null;var n,N;if(new Set([\"true\",\"t\",\"false\",\"f\",\"yes\",\"y\",\"no\",\"n\",\"ok\",\"on\",\"off\",\"accept\",\"accepted\",\"notaccepted\",\"reject\",\"rejected\",\"allow\",\"allowed\",\"disallow\",\"deny\",\"denied\",\"enable\",\"enabled\",\"disable\",\"disabled\",\"necessary\",\"required\",\"hide\",\"hidden\",\"essential\",\"nonessential\",\"checked\",\"unchecked\",\"forbidden\",\"forever\",\"declined\",\"mandatory\",\"all\"]).has(e.toLowerCase()))n=e;else if(\"emptyArr\"===e)n=\"[]\";else if(\"emptyObj\"===e)n=\"{}\";else{if(!/^\\d+$/.test(e))return null;if(N=n=parseFloat(e),(Number.isNaN||window.isNaN)(N))return null;if(Math.abs(n)<0||Math.abs(n)>32767)return null}return n}(value);if(null!==validValue)if(\"/\"===(n=path)||\"none\"===n)if(document.location.origin.includes(domain)){var cookieToSet=function(e,o,i){var n=arguments.length>3&&void 0!==arguments[3]?arguments[3]:\"\",t=!(arguments.length>4&&void 0!==arguments[4])||arguments[4];if(!t&&`${o}`.includes(\";\")||e.includes(\";\"))return null;var r=`${e}=${t?encodeURIComponent(o):o}`;if(e.startsWith(\"__Host-\"))return r+=\"; path=/; secure\",n&&console.debug(`Domain value: \"${n}\" has been ignored, because is not allowed for __Host- prefixed cookies`),r;var s=function(t){return\"/\"===t?\"path=/\":\"\"}(i);return s&&(r+=`; ${s}`),e.startsWith(\"__Secure-\")&&(r+=\"; secure\"),n&&(r+=`; domain=${n}`),r}(name,validValue,path,domain,!1);cookieToSet?(document.cookie=cookieToSet,function(e){if(e.verbose){try{var n=console.trace.bind(console),i=\"[AdGuard] \";\"corelibs\"===e.engine?i+=e.ruleText:(e.domainName&&(i+=`${e.domainName}`),e.args?i+=`#%#//scriptlet('${e.name}', '${e.args.join(\"', '\")}')`:i+=`#%#//scriptlet('${e.name}')`),n&&n(i)}catch(e){}\"function\"==typeof window.__debug&&window.__debug(e)}}(source),isCookieSetWithValue(document.cookie,name,value)&&window.location.reload()):logMessage(source,\"Invalid cookie name or value\")}else logMessage(source,`Cookie domain not matched by origin: '${domain}'`);else logMessage(source,`Invalid cookie path: '${path}'`);else logMessage(source,`Invalid cookie value: '${value}'`)}}).apply(this,updatedArgs),source.uniqueId&&Object.defineProperty(Window.prototype.toString,uniqueIdentifier,{value:\"done\",enumerable:!1,writable:!1,configurable:!1})}catch(e){console.log(e)}}"
        },
        {
            "names": [
                "set-local-storage-item",
                "set-local-storage-item.js",
                "ubo-set-local-storage-item.js",
                "ubo-set-local-storage-item"
            ],
            "scriptlet": "function setLocalStorageItem(source,args){const uniqueIdentifier=source.uniqueId+source.name+\"_\"+(Array.isArray(args)?args.join(\"_\"):\"\");if(source.uniqueId&&\"done\"===Window.prototype.toString[uniqueIdentifier])return;function logMessage(e,o){var r=arguments.length>2&&void 0!==arguments[2]&&arguments[2],a=!(arguments.length>3&&void 0!==arguments[3])||arguments[3],{name:n,verbose:g}=e;if(r||g){var i=console.log;a?i(`${n}: ${o}`):Array.isArray(o)?i(`${n}:`,...o):i(`${n}:`,o)}}const updatedArgs=args?[].concat(source).concat(args):[source];try{(function(source,key,value){if(void 0!==key){var validValue;try{validValue=function(e){if(\"string\"!=typeof e)throw new Error(\"Invalid value\");var r,N;if(new Set([\"undefined\",\"false\",\"true\",\"null\",\"\",\"yes\",\"no\",\"on\",\"off\",\"accept\",\"accepted\",\"reject\",\"rejected\",\"allowed\",\"denied\",\"forbidden\",\"forever\"]).has(e.toLowerCase()))r=e;else if(\"emptyArr\"===e)r=\"[]\";else if(\"emptyObj\"===e)r=\"{}\";else if(/^\\d+$/.test(e)){if(N=r=parseFloat(e),(Number.isNaN||window.isNaN)(N))throw new Error(\"Invalid value\");if(Math.abs(r)>32767)throw new Error(\"Invalid value\")}else{if(\"$remove$\"!==e)throw new Error(\"Invalid value\");r=\"$remove$\"}return r}(value)}catch(_unused){return void logMessage(source,`Invalid storage item value: '${value}'`)}var{localStorage:localStorage}=window;\"$remove$\"===validValue?function(e,t,o){try{if(o.startsWith(\"/\")&&(o.endsWith(\"/\")||o.endsWith(\"/i\"))&&function(e){var t,n=function(e){return e.replace(/[.*+?^${}()|[\\]\\\\]/g,\"\\\\$&\")}(e);\"/\"===e[0]&&\"/\"===e[e.length-1]&&(n=e.slice(1,-1));try{t=new RegExp(n),t=!0}catch(e){t=!1}return t}(o)){var r=function(e){var r=e||\"\",t=\"/\";if(\"\"===r)return new RegExp(\".?\");var n,i,s=r.lastIndexOf(t),a=r.substring(s+1),g=r.substring(0,s+1),u=(i=a,(n=g).startsWith(t)&&n.endsWith(t)&&!n.endsWith(\"\\\\/\")&&function(e){if(!e)return!1;try{return new RegExp(\"\",e),!0}catch(e){return!1}}(i)?i:\"\");if(r.startsWith(t)&&r.endsWith(t)||u)return new RegExp((u?g:r).slice(1,-1),u);var c=r.replace(/\\\\'/g,\"'\").replace(/\\\\\"/g,'\"').replace(/[.*+?^${}()|[\\]\\\\]/g,\"\\\\$&\");return new RegExp(c)}(o);Object.keys(t).forEach((function(e){r.test(e)&&t.removeItem(e)}))}else t.removeItem(o)}catch(t){logMessage(e,`Unable to remove storage item due to: ${t.message}`)}}(source,localStorage,key):function(e,t,s,a){try{t.setItem(s,a)}catch(t){logMessage(e,`Unable to set storage item due to: ${t.message}`)}}(source,localStorage,key,validValue),function(e){if(e.verbose){try{var n=console.trace.bind(console),i=\"[AdGuard] \";\"corelibs\"===e.engine?i+=e.ruleText:(e.domainName&&(i+=`${e.domainName}`),e.args?i+=`#%#//scriptlet('${e.name}', '${e.args.join(\"', '\")}')`:i+=`#%#//scriptlet('${e.name}')`),n&&n(i)}catch(e){}\"function\"==typeof window.__debug&&window.__debug(e)}}(source)}else logMessage(source,\"Item key should be specified.\")}).apply(this,updatedArgs),source.uniqueId&&Object.defineProperty(Window.prototype.toString,uniqueIdentifier,{value:\"done\",enumerable:!1,writable:!1,configurable:!1})}catch(e){console.log(e)}}"
        },
        {
            "names": [
                "set-popads-dummy",
                "popads-dummy.js",
                "ubo-popads-dummy.js",
                "ubo-popads-dummy"
            ],
            "scriptlet": "function setPopadsDummy(source,args){const uniqueIdentifier=source.uniqueId+source.name+\"_\"+(Array.isArray(args)?args.join(\"_\"):\"\");if(source.uniqueId&&\"done\"===Window.prototype.toString[uniqueIdentifier])return;function hit(e){if(e.verbose){try{var n=console.trace.bind(console),i=\"[AdGuard] \";\"corelibs\"===e.engine?i+=e.ruleText:(e.domainName&&(i+=`${e.domainName}`),e.args?i+=`#%#//scriptlet('${e.name}', '${e.args.join(\"', '\")}')`:i+=`#%#//scriptlet('${e.name}')`),n&&n(i)}catch(e){}\"function\"==typeof window.__debug&&window.__debug(e)}}const updatedArgs=args?[].concat(source).concat(args):[source];try{(function(source){delete window.PopAds,delete window.popns,Object.defineProperties(window,{PopAds:{get:function(){return hit(source),{}}},popns:{get:function(){return hit(source),{}}}})}).apply(this,updatedArgs),source.uniqueId&&Object.defineProperty(Window.prototype.toString,uniqueIdentifier,{value:\"done\",enumerable:!1,writable:!1,configurable:!1})}catch(e){console.log(e)}}"
        },
        {
            "names": [
                "set-session-storage-item",
                "set-session-storage-item.js",
                "ubo-set-session-storage-item.js",
                "ubo-set-session-storage-item"
            ],
            "scriptlet": "function setSessionStorageItem(source,args){const uniqueIdentifier=source.uniqueId+source.name+\"_\"+(Array.isArray(args)?args.join(\"_\"):\"\");if(source.uniqueId&&\"done\"===Window.prototype.toString[uniqueIdentifier])return;function logMessage(e,o){var r=arguments.length>2&&void 0!==arguments[2]&&arguments[2],a=!(arguments.length>3&&void 0!==arguments[3])||arguments[3],{name:n,verbose:g}=e;if(r||g){var i=console.log;a?i(`${n}: ${o}`):Array.isArray(o)?i(`${n}:`,...o):i(`${n}:`,o)}}const updatedArgs=args?[].concat(source).concat(args):[source];try{(function(source,key,value){if(void 0!==key){var validValue;try{validValue=function(e){if(\"string\"!=typeof e)throw new Error(\"Invalid value\");var r,N;if(new Set([\"undefined\",\"false\",\"true\",\"null\",\"\",\"yes\",\"no\",\"on\",\"off\",\"accept\",\"accepted\",\"reject\",\"rejected\",\"allowed\",\"denied\",\"forbidden\",\"forever\"]).has(e.toLowerCase()))r=e;else if(\"emptyArr\"===e)r=\"[]\";else if(\"emptyObj\"===e)r=\"{}\";else if(/^\\d+$/.test(e)){if(N=r=parseFloat(e),(Number.isNaN||window.isNaN)(N))throw new Error(\"Invalid value\");if(Math.abs(r)>32767)throw new Error(\"Invalid value\")}else{if(\"$remove$\"!==e)throw new Error(\"Invalid value\");r=\"$remove$\"}return r}(value)}catch(_unused){return void logMessage(source,`Invalid storage item value: '${value}'`)}var{sessionStorage:sessionStorage}=window;\"$remove$\"===validValue?function(e,t,o){try{if(o.startsWith(\"/\")&&(o.endsWith(\"/\")||o.endsWith(\"/i\"))&&function(e){var t,n=function(e){return e.replace(/[.*+?^${}()|[\\]\\\\]/g,\"\\\\$&\")}(e);\"/\"===e[0]&&\"/\"===e[e.length-1]&&(n=e.slice(1,-1));try{t=new RegExp(n),t=!0}catch(e){t=!1}return t}(o)){var r=function(e){var r=e||\"\",t=\"/\";if(\"\"===r)return new RegExp(\".?\");var n,i,s=r.lastIndexOf(t),a=r.substring(s+1),g=r.substring(0,s+1),u=(i=a,(n=g).startsWith(t)&&n.endsWith(t)&&!n.endsWith(\"\\\\/\")&&function(e){if(!e)return!1;try{return new RegExp(\"\",e),!0}catch(e){return!1}}(i)?i:\"\");if(r.startsWith(t)&&r.endsWith(t)||u)return new RegExp((u?g:r).slice(1,-1),u);var c=r.replace(/\\\\'/g,\"'\").replace(/\\\\\"/g,'\"').replace(/[.*+?^${}()|[\\]\\\\]/g,\"\\\\$&\");return new RegExp(c)}(o);Object.keys(t).forEach((function(e){r.test(e)&&t.removeItem(e)}))}else t.removeItem(o)}catch(t){logMessage(e,`Unable to remove storage item due to: ${t.message}`)}}(source,sessionStorage,key):function(e,t,s,a){try{t.setItem(s,a)}catch(t){logMessage(e,`Unable to set storage item due to: ${t.message}`)}}(source,sessionStorage,key,validValue),function(e){if(e.verbose){try{var n=console.trace.bind(console),i=\"[AdGuard] \";\"corelibs\"===e.engine?i+=e.ruleText:(e.domainName&&(i+=`${e.domainName}`),e.args?i+=`#%#//scriptlet('${e.name}', '${e.args.join(\"', '\")}')`:i+=`#%#//scriptlet('${e.name}')`),n&&n(i)}catch(e){}\"function\"==typeof window.__debug&&window.__debug(e)}}(source)}else logMessage(source,\"Item key should be specified.\")}).apply(this,updatedArgs),source.uniqueId&&Object.defineProperty(Window.prototype.toString,uniqueIdentifier,{value:\"done\",enumerable:!1,writable:!1,configurable:!1})}catch(e){console.log(e)}}"
        },
        {
            "names": [
                "spoof-css",
                "spoof-css.js",
                "ubo-spoof-css.js",
                "ubo-spoof-css"
            ],
            "scriptlet": "function spoofCSS(source,args){const uniqueIdentifier=source.uniqueId+source.name+\"_\"+(Array.isArray(args)?args.join(\"_\"):\"\");if(source.uniqueId&&\"done\"===Window.prototype.toString[uniqueIdentifier])return;function hit(e){if(e.verbose){try{var n=console.trace.bind(console),i=\"[AdGuard] \";\"corelibs\"===e.engine?i+=e.ruleText:(e.domainName&&(i+=`${e.domainName}`),e.args?i+=`#%#//scriptlet('${e.name}', '${e.args.join(\"', '\")}')`:i+=`#%#//scriptlet('${e.name}')`),n&&n(i)}catch(e){}\"function\"==typeof window.__debug&&window.__debug(e)}}const updatedArgs=args?[].concat(source).concat(args):[source];try{(function(source,selectors,cssPropertyName,cssPropertyValue){if(selectors){var shouldDebug=!(\"debug\"!==cssPropertyName||!cssPropertyValue),propToValueMap=new Map;if([\"spoof-css.js\",\"ubo-spoof-css.js\",\"ubo-spoof-css\"].includes(source.name)){var{args:args}=source,arrayOfProperties=[];arrayOfProperties=\"debug\"===args.at(-2)?args.slice(1,-2):args.slice(1);for(var i=0;i<arrayOfProperties.length&&\"\"!==arrayOfProperties[i];i+=2)propToValueMap.set(convertToCamelCase(arrayOfProperties[i]),arrayOfProperties[i+1])}else cssPropertyName&&cssPropertyValue&&!shouldDebug&&propToValueMap.set(convertToCamelCase(cssPropertyName),cssPropertyValue);var spoofStyle=function(cssProperty,realCssValue){return propToValueMap.has(cssProperty)?propToValueMap.get(cssProperty):realCssValue},cloakFunc=function(fn,thisArg,fnName){var cloakedToString=function(){return`function ${fnName}() { [native code] }`},toStringOfToString=function(){return\"function toString() { [native code] }\"};toStringOfToString.toString=toStringOfToString,cloakedToString.toString=toStringOfToString;var bound=fn.bind(thisArg);return Object.defineProperty(bound,\"name\",{value:fnName}),Object.defineProperty(bound,\"toString\",{value:cloakedToString}),bound},setRectValue=function(rect,prop,value){Object.defineProperty(rect,prop,{value:parseFloat(value)})},propsToBindSet=new Set([\"__defineGetter__\",\"__defineSetter__\",\"__lookupGetter__\",\"__lookupSetter__\"]),getter=function(target,prop,receiver){if(hit(source),\"toString\"===prop)return fnName=target.name||\"getComputedStyle\",toString=function(){return`function ${fnName}() { [native code] }`},(toStringOfToString=function(){return\"function toString() { [native code] }\"}).toString=toStringOfToString,toString.toString=toStringOfToString,toString;var fnName,toString,toStringOfToString;if(propsToBindSet.has(prop)){var nativeFn=target[prop];if(\"function\"==typeof nativeFn)return nativeFn.bind(target)}return Reflect.get(target,prop,receiver)},getComputedStyleHandler={apply:function(target,thisArg,args){if(shouldDebug)debugger;var style=Reflect.apply(target,thisArg,args);if(!args[0].matches(selectors))return style;var proxiedStyle=new Proxy(style,{get(target,prop){var CSSStyleProp=target[prop];return\"function\"!=typeof CSSStyleProp?spoofStyle(prop,CSSStyleProp||\"\"):\"getPropertyValue\"!==prop?cloakFunc(CSSStyleProp,target,prop):cloakFunc((function(cssPropName){var cssValue=target[cssPropName]||\"\";return spoofStyle(cssPropName,cssValue)}),target,\"getPropertyValue\")},getOwnPropertyDescriptor:(target,prop)=>propToValueMap.has(prop)?{configurable:!0,enumerable:!0,value:propToValueMap.get(prop),writable:!0}:Reflect.getOwnPropertyDescriptor(target,prop)});return hit(source),proxiedStyle},get:getter};window.getComputedStyle=new Proxy(window.getComputedStyle,getComputedStyleHandler);var getBoundingClientRectHandler={apply:function(target,thisArg,args){if(shouldDebug)debugger;var rect=Reflect.apply(target,thisArg,args);if(!thisArg.matches(selectors))return rect;var{x:x,y:y,height:height,width:width}=rect,newDOMRect=new window.DOMRect(x,y,width,height);return propToValueMap.has(\"top\")&&setRectValue(newDOMRect,\"top\",propToValueMap.get(\"top\")),propToValueMap.has(\"bottom\")&&setRectValue(newDOMRect,\"bottom\",propToValueMap.get(\"bottom\")),propToValueMap.has(\"left\")&&setRectValue(newDOMRect,\"left\",propToValueMap.get(\"left\")),propToValueMap.has(\"right\")&&setRectValue(newDOMRect,\"right\",propToValueMap.get(\"right\")),propToValueMap.has(\"height\")&&setRectValue(newDOMRect,\"height\",propToValueMap.get(\"height\")),propToValueMap.has(\"width\")&&setRectValue(newDOMRect,\"width\",propToValueMap.get(\"width\")),hit(source),newDOMRect},get:getter};window.Element.prototype.getBoundingClientRect=new Proxy(window.Element.prototype.getBoundingClientRect,getBoundingClientRectHandler)}function convertToCamelCase(cssProperty){if(!cssProperty.includes(\"-\"))return cssProperty;var splittedProperty=cssProperty.split(\"-\"),firstPart=splittedProperty[0],secondPart=splittedProperty[1];return`${firstPart}${secondPart[0].toUpperCase()}${secondPart.slice(1)}`}}).apply(this,updatedArgs),source.uniqueId&&Object.defineProperty(Window.prototype.toString,uniqueIdentifier,{value:\"done\",enumerable:!1,writable:!1,configurable:!1})}catch(e){console.log(e)}}"
        },
        {
            "names": [
                "trusted-click-element"
            ],
            "scriptlet": "function trustedClickElement(source,args){const uniqueIdentifier=source.uniqueId+source.name+\"_\"+(Array.isArray(args)?args.join(\"_\"):\"\");if(source.uniqueId&&\"done\"===Window.prototype.toString[uniqueIdentifier])return;function toRegExp(e){var r=e||\"\",t=\"/\";if(\"\"===r)return new RegExp(\".?\");var n,i,s=r.lastIndexOf(t),a=r.substring(s+1),g=r.substring(0,s+1),u=(i=a,(n=g).startsWith(t)&&n.endsWith(t)&&!n.endsWith(\"\\\\/\")&&function(e){if(!e)return!1;try{return new RegExp(\"\",e),!0}catch(e){return!1}}(i)?i:\"\");if(r.startsWith(t)&&r.endsWith(t)||u)return new RegExp((u?g:r).slice(1,-1),u);var c=r.replace(/\\\\'/g,\"'\").replace(/\\\\\"/g,'\"').replace(/[.*+?^${}()|[\\]\\\\]/g,\"\\\\$&\");return new RegExp(c)}function parseCookieString(i){var r=i.split(\";\"),n={};return r.forEach((function(i){var r,t=\"\",e=i.indexOf(\"=\");-1===e?r=i.trim():(r=i.slice(0,e).trim(),t=i.slice(e+1)),n[r]=t||null})),n}function logMessage(e,o){var r=arguments.length>2&&void 0!==arguments[2]&&arguments[2],a=!(arguments.length>3&&void 0!==arguments[3])||arguments[3],{name:n,verbose:g}=e;if(r||g){var i=console.log;a?i(`${n}: ${o}`):Array.isArray(o)?i(`${n}:`,...o):i(`${n}:`,o)}}function parseMatchArg(t){var e=!!t&&(null==t?void 0:t.startsWith(\"!\")),a=e?t.slice(1):t;return{isInvertedMatch:e,matchRegexp:toRegExp(a),matchValue:a}}function queryShadowSelector(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:document.documentElement,l=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null,r=arguments.length>3?arguments[3]:void 0,o=e.indexOf(\" >>> \");if(-1===o)return l?function(e,n,t){for(var l=e.querySelectorAll(n),r=0;r<l.length;r+=1)if(doesElementContainText(l[r],t))return l[r];return null}(t,e,l):t.querySelector(e);var i=e.slice(0,o).trim(),u=t.querySelector(i);if(!u)return null;var d=u.shadowRoot||(null==r?void 0:r.get(u));return d?queryShadowSelector(e.slice(o+5).trim(),d,l,r):null}function triggerMainObserver(){var e=`adg-${Math.random().toString(36).slice(2,9)}`,t=document.documentElement;t.setAttribute(e,\"\"),t.removeAttribute(e)}function clickElement(e){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:\"\",t=e.getBoundingClientRect(),o=t.left+t.width/2,i=t.top+t.height/2,r={bubbles:!0,cancelable:!0,composed:!0,view:window,clientX:o,clientY:i,screenX:o+window.screenX,screenY:i+window.screenY,button:0,buttons:1},u=Object.assign({},r,{bubbles:!1}),c=Object.assign({},r,{buttons:0}),createEventProxy=function(n,t){var o=arguments.length>2&&void 0!==arguments[2]&&arguments[2],i=n.defaultPrevented,r=!1;return new Proxy(n,{get(n,u){if(\"isTrusted\"===u)return!0;if(!o){var c=Reflect.get(n,u);return\"function\"==typeof c?c.bind(n):c}if(\"nativeEvent\"===u)return n;if(\"target\"===u||\"srcElement\"===u||\"currentTarget\"===u)return e;if(\"type\"===u)return t;if(\"defaultPrevented\"===u)return i;if(\"persist\"===u)return function(){};if(\"isDefaultPrevented\"===u)return function(){return i};if(\"isPropagationStopped\"===u)return function(){return r};if(\"preventDefault\"===u)return function(){i=!0,n.preventDefault()};if(\"stopPropagation\"===u)return function(){r=!0,n.stopPropagation()};if(\"stopImmediatePropagation\"===u)return function(){r=!0,\"function\"==typeof n.stopImmediatePropagation&&n.stopImmediatePropagation()};var s=Reflect.get(n,u);return\"function\"==typeof s?s.bind(n):s}})},s=Object.keys(e).find((function(e){return e.startsWith(\"__reactProps$\")}));if(s&&\"native\"!==n){var a=e[s];if(a&&\"function\"==typeof a.onClick){if(\"function\"==typeof a.onFocus){var f=\"function\"==typeof FocusEvent?new FocusEvent(\"focus\",{bubbles:!1,cancelable:!1,composed:!0,relatedTarget:null}):new Event(\"focus\",{bubbles:!1,cancelable:!1,composed:!0}),p=createEventProxy(f,\"focus\",!0);a.onFocus.call(e,p)}var v=new MouseEvent(\"click\",c),l=createEventProxy(v,\"click\",!0);return void a.onClick.call(e,l)}}!function(){var n,t,o,i,s=\"function\"==typeof PointerEvent,a=new Set([\"click\",\"mousedown\",\"mouseup\",\"mouseover\",\"mouseenter\",\"pointerdown\",\"pointerup\",\"pointerover\",\"pointerenter\"]),f=(n=e,t=a,o=new Map,i=n,t.forEach((function(e){var n=`on${e}`,t=i[n];\"function\"!=typeof t||o.has(n)||(o.set(n,t),i[n]=function(n){var o=createEventProxy(n,e);return t.call(this,o)})})),function(){o.forEach((function(e,n){i[n]=e}))});try{s&&(e.dispatchEvent(new PointerEvent(\"pointerover\",r)),e.dispatchEvent(new PointerEvent(\"pointerenter\",u))),e.dispatchEvent(new MouseEvent(\"mouseover\",r)),e.dispatchEvent(new MouseEvent(\"mouseenter\",u)),s&&e.dispatchEvent(new PointerEvent(\"pointerdown\",r)),e.dispatchEvent(new MouseEvent(\"mousedown\",r)),e.focus(),s&&e.dispatchEvent(new PointerEvent(\"pointerup\",c)),e.dispatchEvent(new MouseEvent(\"mouseup\",c)),e.dispatchEvent(new MouseEvent(\"click\",c))}finally{f()}}()}function doesElementContainText(t,e){var{textContent:n}=t;return!!n&&e.test(n)}const updatedArgs=args?[].concat(source).concat(args):[source];try{(function(source,selectors){var extraMatch=arguments.length>2&&void 0!==arguments[2]?arguments[2]:\"\",delay=arguments.length>3&&void 0!==arguments[3]?arguments[3]:NaN,reload=arguments.length>4&&void 0!==arguments[4]?arguments[4]:\"\",observerTimeoutSec=arguments.length>5&&void 0!==arguments[5]?arguments[5]:NaN;if(selectors){var sleep=function(delayMs){return new Promise((function(resolve){setTimeout(resolve,delayMs)}))};!function(){var e=Symbol.for(\"adg-spoof-click-isTrusted\");if(!EventTarget.prototype[e]){var t=new Set([\"click\",\"mousedown\",\"mouseup\",\"mouseover\",\"mouseenter\",\"pointerdown\",\"pointerup\",\"pointerover\",\"pointerenter\"]),r=EventTarget.prototype.addEventListener,n=EventTarget.prototype.removeEventListener,o=new WeakMap,getMapKey=function(e,t){return`${e}\\0${function(e){var t;return\"boolean\"==typeof e?e:null!==(t=null==e?void 0:e.capture)&&void 0!==t&&t}(t)}`};EventTarget.prototype.addEventListener=function(e,n,i){if(!n||!t.has(e))return r.call(this,e,n,i);var a=\"function\"==typeof n,s=getMapKey(e,i),wrapped=function(e){var t=new Proxy(e,{get(e,t){if(\"isTrusted\"===t)return!0;var r=Reflect.get(e,t);return\"function\"==typeof r?r.bind(e):r},set:(e,t,r)=>Reflect.set(e,t,r)});return a?n.call(this,t):n.handleEvent.call(n,t)},u=n,l=o.get(u);l||(l=new Map,o.set(u,l));var v=l.get(s);return v||l.set(s,wrapped),r.call(this,e,v||wrapped,i)},EventTarget.prototype.removeEventListener=function(e,r,i){if(!r||!t.has(e))return n.call(this,e,r,i);var a=r,s=getMapKey(e,i),u=o.get(a);if(u&&u.has(s)){var l=u.get(s);return u.delete(s),n.call(this,e,l,i)}return n.call(this,e,r,i)},EventTarget.prototype[e]=!0}}();var closedShadowRoots=new WeakMap,bridgeObservers=new Set;if(selectors.includes(\" >>> \")){var attachShadowHandler={apply:function(target,thisArg,argumentsList){var _argumentsList$,shadowRoot=Reflect.apply(target,thisArg,argumentsList);\"closed\"===(null===(_argumentsList$=argumentsList[0])||void 0===_argumentsList$?void 0:_argumentsList$.mode)&&closedShadowRoots.set(thisArg,shadowRoot);var bridgeObserver=new MutationObserver((function(mutations){triggerMainObserver(),mutations.forEach((function(mutation){var e;e=mutation.addedNodes,Array.from(e).forEach((function(e){e instanceof HTMLIFrameElement&&e.addEventListener(\"load\",(function(){triggerMainObserver()})),e instanceof Element&&e.querySelectorAll(\"iframe\").forEach((function(e){e.addEventListener(\"load\",(function(){triggerMainObserver()}))}))}))}))}));return bridgeObserver.observe(shadowRoot,{childList:!0,subtree:!0}),bridgeObservers.add(bridgeObserver),shadowRoot}};window.Element.prototype.attachShadow=new Proxy(window.Element.prototype.attachShadow,attachShadowHandler)}var parsedDelayMs,disconnectBridgeObservers=function(){bridgeObservers.forEach((function(obs){return obs.disconnect()})),bridgeObservers.clear()},observerTimeoutMs=1e4;if(observerTimeoutSec){var parsedTimeout=Number(observerTimeoutSec);if(!Number.isInteger(parsedTimeout)||parsedTimeout<=0)return void logMessage(source,`Passed observer timeout '${observerTimeoutSec}' is invalid`);observerTimeoutMs=1e3*parsedTimeout}if(delay){if(parsedDelayMs=Number(delay),!Number.isInteger(parsedDelayMs)||parsedDelayMs<0)return void logMessage(source,`Passed delay '${delay}' is invalid`);if(parsedDelayMs>=observerTimeoutMs)return void logMessage(source,`Passed delay '${delay}' is bigger than ${observerTimeoutMs} ms`)}var canClick=!parsedDelayMs,cookieMatches=[],localStorageMatches=[],textMatches=\"\",clickType=\"\",isInvertedMatchCookie=!1,isInvertedMatchLocalStorage=!1;if(extraMatch&&extraMatch.split(/(,\\s*){1}(?=!?cookie:|!?localStorage:|containsText:|clickType:)/).map((function(matchStr){return matchStr.trim()})).forEach((function(matchStr){if(matchStr.includes(\"cookie:\")){var{isInvertedMatch:isInvertedMatch,matchValue:matchValue}=parseMatchArg(matchStr);isInvertedMatchCookie=isInvertedMatch;var cookieMatch=matchValue.replace(\"cookie:\",\"\");cookieMatches.push(cookieMatch)}if(matchStr.includes(\"localStorage:\")){var{isInvertedMatch:_isInvertedMatch,matchValue:_matchValue}=parseMatchArg(matchStr);isInvertedMatchLocalStorage=_isInvertedMatch;var localStorageMatch=_matchValue.replace(\"localStorage:\",\"\");localStorageMatches.push(localStorageMatch)}if(matchStr.includes(\"containsText:\")){var{matchValue:_matchValue2}=parseMatchArg(matchStr),textMatch=_matchValue2.replace(\"containsText:\",\"\");textMatches=textMatch}if(matchStr.includes(\"clickType:\")){var{isInvertedMatch:_isInvertedMatch2,matchValue:_matchValue3}=parseMatchArg(matchStr);if(_isInvertedMatch2)return void logMessage(source,`Passed click type '${matchStr}' is invalid`);var passedClickType=_matchValue3.replace(\"clickType:\",\"\");if(\"native\"!==passedClickType)return void logMessage(source,`Passed click type '${passedClickType}' is invalid`);clickType=passedClickType}})),cookieMatches.length>0){var parsedCookieMatches=parseCookieString(cookieMatches.join(\";\")),parsedCookies=parseCookieString(document.cookie),cookieKeys=Object.keys(parsedCookies);if(0===cookieKeys.length)return;if(Object.keys(parsedCookieMatches).every((function(key){var valueMatch=parsedCookieMatches[key]?toRegExp(parsedCookieMatches[key]):null,keyMatch=toRegExp(key);return cookieKeys.some((function(cookieKey){if(!keyMatch.test(cookieKey))return!1;if(!valueMatch)return!0;var parsedCookieValue=parsedCookies[cookieKey];return!!parsedCookieValue&&valueMatch.test(parsedCookieValue)}))}))===isInvertedMatchCookie)return}if(localStorageMatches.length>0&&localStorageMatches.every((function(str){var itemValue=window.localStorage.getItem(str);return itemValue||\"\"===itemValue}))===isInvertedMatchLocalStorage)return;var textMatchRegexp=textMatches?toRegExp(textMatches):null,selectorsSequence=selectors.split(\",\").map((function(selector){return selector.trim()})),createElementObj=function(element,selector){return{element:element||null,clicked:!1,selectorText:selector||null}},elementsSequence=Array(selectorsSequence.length).fill(createElementObj(null)),findAndClickElement=function(elementObj){try{if(!elementObj.selectorText)return;var element=queryShadowSelector(elementObj.selectorText,document.documentElement,null,closedShadowRoots);if(!element)return void logMessage(source,`Could not find element: '${elementObj.selectorText}'`);clickElement(element,clickType),elementObj.clicked=!0}catch(error){logMessage(source,`Could not click element: '${elementObj.selectorText}'`)}},shouldReloadAfterClick=!1,reloadDelayMs=500;if(reload){var reloadSplit=reload.split(\":\"),reloadMarker=reloadSplit[0],reloadValue=reloadSplit[1];if(\"reloadAfterClick\"!==reloadMarker)return void logMessage(source,`Passed reload option '${reload}' is invalid`);if(reloadValue){var passedReload=Number(reloadValue);if(Number.isNaN(passedReload))return void logMessage(source,`Passed reload delay value '${passedReload}' is invalid`);if(passedReload>observerTimeoutMs)return void logMessage(source,`Passed reload delay value '${passedReload}' is bigger than maximum ${observerTimeoutMs} ms`);reloadDelayMs=passedReload}shouldReloadAfterClick=!0}var canReload=!0,clickElementsBySequence=async function(){for(var i=0;i<elementsSequence.length;i+=1){var elementObj=elementsSequence[i];if(i>=1&&await sleep(150),!elementObj.element)break;elementObj.clicked||(elementObj.element.isConnected?(clickElement(elementObj.element,clickType),elementObj.clicked=!0):findAndClickElement(elementObj))}var allElementsClicked=elementsSequence.every((function(elementObj){return!0===elementObj.clicked}));allElementsClicked&&(shouldReloadAfterClick&&canReload&&(canReload=!1,setTimeout((function(){window.location.reload()}),reloadDelayMs)),function(e){if(e.verbose){try{var n=console.trace.bind(console),i=\"[AdGuard] \";\"corelibs\"===e.engine?i+=e.ruleText:(e.domainName&&(i+=`${e.domainName}`),e.args?i+=`#%#//scriptlet('${e.name}', '${e.args.join(\"', '\")}')`:i+=`#%#//scriptlet('${e.name}')`),n&&n(i)}catch(e){}\"function\"==typeof window.__debug&&window.__debug(e)}}(source))},fulfillAndHandleSelectors=function(){var fulfilledSelectors=[];return selectorsSequence.forEach((function(selector,i){if(selector){var element=queryShadowSelector(selector,document.documentElement,textMatchRegexp,closedShadowRoots);element&&(function(element,i,selector){var elementObj=createElementObj(element,selector);elementsSequence[i]=elementObj,canClick&&clickElementsBySequence()}(element,i,selector),fulfilledSelectors.push(selector))}})),selectorsSequence=selectorsSequence.map((function(selector){return selector&&fulfilledSelectors.includes(selector)?null:selector}))},findElements=function(mutations,observer){(selectorsSequence=fulfillAndHandleSelectors()).every((function(selector){return null===selector}))&&(observer.disconnect(),disconnectBridgeObservers())},initializeMutationObserver=function(){var n,t,r,e,_wrapper,observer=new MutationObserver((n=findElements,t=20,e=!1,_wrapper=function(){for(var o=arguments.length,u=new Array(o),f=0;f<o;f++)u[f]=arguments[f];e?r=u:(n(...u),e=!0,setTimeout((function(){e=!1,r&&(_wrapper(...r),r=null)}),t))},_wrapper));observer.observe(document.documentElement,{attributes:!0,childList:!0,subtree:!0}),setTimeout((function(){observer.disconnect(),disconnectBridgeObservers()}),observerTimeoutMs)};selectorsSequence.every((function(selector){return!!selector&&!!queryShadowSelector(selector,document.documentElement,textMatchRegexp,closedShadowRoots)}))?(fulfillAndHandleSelectors(),disconnectBridgeObservers()):initializeMutationObserver(),parsedDelayMs&&setTimeout((function(){clickElementsBySequence(),canClick=!0}),parsedDelayMs)}}).apply(this,updatedArgs),source.uniqueId&&Object.defineProperty(Window.prototype.toString,uniqueIdentifier,{value:\"done\",enumerable:!1,writable:!1,configurable:!1})}catch(e){console.log(e)}}"
        },
        {
            "names": [
                "trusted-create-element"
            ],
            "scriptlet": "function trustedCreateElement(source,args){const uniqueIdentifier=source.uniqueId+source.name+\"_\"+(Array.isArray(args)?args.join(\"_\"):\"\");if(source.uniqueId&&\"done\"===Window.prototype.toString[uniqueIdentifier])return;function logMessage(e,o){var r=arguments.length>2&&void 0!==arguments[2]&&arguments[2],a=!(arguments.length>3&&void 0!==arguments[3])||arguments[3],{name:n,verbose:g}=e;if(r||g){var i=console.log;a?i(`${n}: ${o}`):Array.isArray(o)?i(`${n}:`,...o):i(`${n}:`,o)}}const updatedArgs=args?[].concat(source).concat(args):[source];try{(function(source,parentSelector,tagName){var attributePairs=arguments.length>3&&void 0!==arguments[3]?arguments[3]:\"\",textContent=arguments.length>4&&void 0!==arguments[4]?arguments[4]:\"\",cleanupDelayMs=arguments.length>5&&void 0!==arguments[5]?arguments[5]:NaN;if(parentSelector&&tagName&&\"trusted-create-element-window\"!==window.name){var element,logError=function(prefix,error){logMessage(source,`${prefix} due to ${function(e){var r;if(\"object\"==typeof(r=e)&&null!==r&&\"message\"in r&&\"string\"==typeof r.message)return e.message;try{return new Error(JSON.stringify(e)).message}catch(r){return new Error(String(e)).message}}(error)}`)},trustedTypesApi=function(t){var r,e=null==t||null===(r=t.api)||void 0===r?void 0:r.policy;if(e)return e;var n=\"AGPolicy\",i=window.trustedTypes,u=!!i,c={HTML:\"TrustedHTML\",Script:\"TrustedScript\",ScriptURL:\"TrustedScriptURL\"};if(!u)return{name:n,isSupported:u,TrustedType:c,createHTML:function(t){return t},createScript:function(t){return t},createScriptURL:function(t){return t},create:function(t,r){return r},getAttributeType:function(){return null},convertAttributeToTrusted:function(t,r,e){return e},getPropertyType:function(){return null},convertPropertyToTrusted:function(t,r,e){return e},isHTML:function(){return!1},isScript:function(){return!1},isScriptURL:function(){return!1}};var o=i.createPolicy(n,{createHTML:function(t){return t},createScript:function(t){return t},createScriptURL:function(t){return t}}),createHTML=function(t){return o.createHTML(t)},createScript=function(t){return o.createScript(t)},createScriptURL=function(t){return o.createScriptURL(t)},create=function(t,r){switch(t){case c.HTML:return createHTML(r);case c.Script:return createScript(r);case c.ScriptURL:return createScriptURL(r);default:return r}},p=i.getAttributeType.bind(i),T=i.getPropertyType.bind(i),s=i.isHTML.bind(i),a=i.isScript.bind(i),f=i.isScriptURL.bind(i);return{name:n,isSupported:u,TrustedType:c,createHTML:createHTML,createScript:createScript,createScriptURL:createScriptURL,create:create,getAttributeType:p,convertAttributeToTrusted:function(t,r,e,n,i){var u=p(t,r,n,i);return u?create(u,e):e},getPropertyType:T,convertPropertyToTrusted:function(t,r,e,n){var i=T(t,r,n);return i?create(i,e):e},isHTML:s,isScript:a,isScriptURL:f}}(source);try{element=document.createElement(tagName),\"script\"===tagName.toLowerCase()&&textContent?element.textContent=trustedTypesApi.createScript(textContent):element.textContent=textContent}catch(e){return void logError(`Cannot create element with tag name '${tagName}'`,e)}var timerId,attributes=[];try{attributes=function(e){if(!e)return[];for(var r=[],t=0;t<e.length;t+=1){for(var i=\"\",n=\"\";t<e.length&&\"=\"!==e[t]&&\" \"!==e[t];)i+=e[t],t+=1;if(t<e.length&&\"=\"===e[t]){var o=null;if(\"'\"!==e[t+=1]&&'\"'!==e[t])throw new Error(`Attribute value should be quoted: \"${e.slice(t)}\"`);for(o=e[t],t+=1;t<e.length;t+=1)if(e[t]===o){if(\"\\\\\"!==e[t-1]){t+=1,o=null;break}n=`${n.slice(0,-1)}${o}`}else n+=e[t];if(null!==o)throw new Error(`Unbalanced quote for attribute value: '${e}'`)}if(i=i.trim(),n=n.trim(),!i){if(!n)continue;throw new Error(`Attribute name before '=' should be specified: '${e}'`)}if(r.push({name:i,value:n}),e[t]&&\" \"!==e[t])throw new Error(`No space before attribute: '${e.slice(t)}'`)}return r}(attributePairs)}catch(e){return void logError(`Cannot parse attributePairs param: '${attributePairs}'`,e)}attributes.forEach((function(attr){try{var trustedValue=trustedTypesApi.convertAttributeToTrusted(tagName,attr.name,attr.value);element.setAttribute(attr.name,trustedValue)}catch(e){logError(`Cannot set attribute '${attr.name}' with value '${attr.value}'`,e)}}));var elementCreated=!1,elementRemoved=!1,findParentAndAppendEl=function(parentElSelector,el,removeElDelayMs){var parentEl,N;try{parentEl=document.querySelector(parentElSelector)}catch(e){return logError(`Cannot find parent element by selector '${parentElSelector}'`,e),!1}if(!parentEl)return logMessage(source,`No parent element found by selector: '${parentElSelector}'`),!1;try{parentEl.contains(el)||parentEl.append(el),el instanceof HTMLIFrameElement&&el.contentWindow&&(el.contentWindow.name=\"trusted-create-element-window\"),elementCreated=!0,function(e){if(e.verbose){try{var n=console.trace.bind(console),i=\"[AdGuard] \";\"corelibs\"===e.engine?i+=e.ruleText:(e.domainName&&(i+=`${e.domainName}`),e.args?i+=`#%#//scriptlet('${e.name}', '${e.args.join(\"', '\")}')`:i+=`#%#//scriptlet('${e.name}')`),n&&n(i)}catch(e){}\"function\"==typeof window.__debug&&window.__debug(e)}}(source)}catch(e){return logError(`Cannot append child to parent by selector '${parentElSelector}'`,e),!1}return N=removeElDelayMs,(Number.isNaN||window.isNaN)(N)||(timerId=setTimeout((function(){el.remove(),elementRemoved=!0,clearTimeout(timerId)}),removeElDelayMs)),!0};findParentAndAppendEl(parentSelector,element,cleanupDelayMs)||function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{subtree:!0,childList:!0},n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:1e4,o=new MutationObserver((function(n,o){o.disconnect(),e(n,o),o.observe(document.documentElement,t)}));o.observe(document.documentElement,t),\"number\"==typeof n&&setTimeout((function(){return o.disconnect()}),n)}((function(mutations,observer){(elementRemoved||elementCreated||findParentAndAppendEl(parentSelector,element,cleanupDelayMs))&&observer.disconnect()}))}}).apply(this,updatedArgs),source.uniqueId&&Object.defineProperty(Window.prototype.toString,uniqueIdentifier,{value:\"done\",enumerable:!1,writable:!1,configurable:!1})}catch(e){console.log(e)}}"
        },
        {
            "names": [
                "trusted-dispatch-event"
            ],
            "scriptlet": "function trustedDispatchEvent(source,args){const uniqueIdentifier=source.uniqueId+source.name+\"_\"+(Array.isArray(args)?args.join(\"_\"):\"\");if(source.uniqueId&&\"done\"===Window.prototype.toString[uniqueIdentifier])return;const updatedArgs=args?[].concat(source).concat(args):[source];try{(function(source,event,target){if(event){var hasBeenDispatched=!1,eventTarget=document;\"window\"===target&&(eventTarget=window);var events=new Set,dispatch=function(){var customEvent=new Event(event);\"string\"==typeof target&&\"window\"!==target&&(eventTarget=document.querySelector(target));var isEventAdded=events.has(event);!hasBeenDispatched&&isEventAdded&&eventTarget&&(hasBeenDispatched=!0,function(e){if(e.verbose){try{var n=console.trace.bind(console),i=\"[AdGuard] \";\"corelibs\"===e.engine?i+=e.ruleText:(e.domainName&&(i+=`${e.domainName}`),e.args?i+=`#%#//scriptlet('${e.name}', '${e.args.join(\"', '\")}')`:i+=`#%#//scriptlet('${e.name}')`),n&&n(i)}catch(e){}\"function\"==typeof window.__debug&&window.__debug(e)}}(source),eventTarget.dispatchEvent(customEvent))},handler={apply:function(eventListener,thisArg,args){var eventName=args[0];return thisArg&&eventName&&(events.add(eventName),setTimeout((function(){dispatch()}),1)),Reflect.apply(eventListener,thisArg,args)}};EventTarget.prototype.addEventListener=new Proxy(EventTarget.prototype.addEventListener,handler)}}).apply(this,updatedArgs),source.uniqueId&&Object.defineProperty(Window.prototype.toString,uniqueIdentifier,{value:\"done\",enumerable:!1,writable:!1,configurable:!1})}catch(e){console.log(e)}}"
        },
        {
            "names": [
                "trusted-json-set-fetch-response"
            ],
            "scriptlet": "function trustedJsonSetFetchResponse(source,args){const uniqueIdentifier=source.uniqueId+source.name+\"_\"+(Array.isArray(args)?args.join(\"_\"):\"\");if(source.uniqueId&&\"done\"===Window.prototype.toString[uniqueIdentifier])return;function logMessage(e,o){var r=arguments.length>2&&void 0!==arguments[2]&&arguments[2],a=!(arguments.length>3&&void 0!==arguments[3])||arguments[3],{name:n,verbose:g}=e;if(r||g){var i=console.log;a?i(`${n}: ${o}`):Array.isArray(o)?i(`${n}:`,...o):i(`${n}:`,o)}}function objectToString(t){return t&&\"object\"==typeof t?function(t){return 0===Object.keys(t).length&&!t.prototype}(t)?\"{}\":Object.entries(t).map((function(t){var n=t[0],e=t[1],o=e;return e instanceof Object&&(o=`{ ${objectToString(e)} }`),`${n}:\"${o}\"`})).join(\" \"):String(t)}function getPrunePath(t){var r=\".[=].\";if(\"string\"==typeof t&&void 0!==t&&\"\"!==t){var e=function(t){for(var e=[],n=\"\",i=0,a=!1,s=!1;i<t.length;){var u=t[i];if(a)n+=u,\"\\\\\"===u?s=!s:(\"/\"!==u||s||(a=!1),s=!1),i+=1;else{if(\" \"===u||\"\\n\"===u||\"\\t\"===u||\"\\r\"===u||\"\\f\"===u||\"\\v\"===u){for(;i<t.length&&/\\s/.test(t[i]);)i+=1;\"\"!==n&&(e.push(n),n=\"\");continue}if(t.startsWith(r,i)){if(n+=r,\"/\"===t[i+=5]){a=!0,s=!1,n+=\"/\",i+=1;continue}continue}n+=u,i+=1}}return\"\"!==n&&e.push(n),e}(t);return e.map((function(t){var e=t.split(r),n=e[0],i=e[1];return void 0!==i?(\"true\"===i?i=!0:\"false\"===i?i=!1:i.startsWith(\"/\")?i=toRegExp(i):\"string\"==typeof i&&/^\\d+$/.test(i)&&(i=parseFloat(i)),{path:n,value:i}):{path:n}}))}return[]}function forgeResponse(e,t){var{bodyUsed:s,headers:r,ok:u,redirected:a,status:d,statusText:o,type:l,url:n}=e,v=new Response(t,{status:d,statusText:o,headers:r});return Object.defineProperties(v,{url:{value:n},type:{value:l},ok:{value:u},bodyUsed:{value:s},redirected:{value:a}}),v}function matchStackTrace(e,t){if(!e||\"\"===e)return!0;var r=function(){try{for(var r=[],e=1;e<10;e+=1){var a=`$${e}`;if(!RegExp[a])break;r.push(RegExp[a])}return r}catch(r){return[]}}();if(function(t,i){var r=\"inlineScript\",n=\"injectedScript\",isInlineScript=function(t){return t.includes(r)},isInjectedScript=function(t){return t.includes(n)};if(!isInlineScript(t)&&!isInjectedScript(t))return!1;var e=window.location.href,s=e.indexOf(\"#\");-1!==s&&(e=e.slice(0,s));var c=i.split(\"\\n\").slice(2).map((function(t){return t.trim()})).map((function(t){var i,s=/(.*?@)?(\\S+)(:\\d+)(:\\d+)\\)?$/.exec(t);if(s){var c,l,a=s[2],u=s[3],o=s[4];if(null!==(c=a)&&void 0!==c&&c.startsWith(\"(\")&&(a=a.slice(1)),null!==(l=a)&&void 0!==l&&l.startsWith(\"<anonymous>\")){var d;a=n;var f=void 0!==s[1]?s[1].slice(0,-1):t.slice(0,s.index).trim();null!==(d=f)&&void 0!==d&&d.startsWith(\"at\")&&(f=f.slice(2).trim()),i=`${f} ${a}${u}${o}`.trim()}else i=a===e?`${r}${u}${o}`.trim():`${a}${u}${o}`.trim()}else i=t;return i}));if(c)for(var l=0;l<c.length;l+=1){if(isInlineScript(t)&&c[l].startsWith(r)&&c[l].match(toRegExp(t)))return!0;if(isInjectedScript(t)&&c[l].startsWith(n)&&c[l].match(toRegExp(t)))return!0}return!1}(e,t))return r.length&&r[0]!==RegExp.$1&&restoreRegExpValues(r),!0;var n=toRegExp(e),a=t.split(\"\\n\").slice(2).map((function(e){return e.trim()})).join(\"\\n\");return r.length&&r[0]!==RegExp.$1&&restoreRegExpValues(r),function(){var t=Object.getOwnPropertyDescriptor(RegExp.prototype,\"test\"),e=null==t?void 0:t.value;if(t&&\"function\"==typeof t.value)return e;throw new Error(\"RegExp.prototype.test is not a function\")}().call(n,a)}function toRegExp(e){var r=e||\"\",t=\"/\";if(\"\"===r)return new RegExp(\".?\");var n,i,s=r.lastIndexOf(t),a=r.substring(s+1),g=r.substring(0,s+1),u=(i=a,(n=g).startsWith(t)&&n.endsWith(t)&&!n.endsWith(\"\\\\/\")&&function(e){if(!e)return!1;try{return new RegExp(\"\",e),!0}catch(e){return!1}}(i)?i:\"\");if(r.startsWith(t)&&r.endsWith(t)||u)return new RegExp((u?g:r).slice(1,-1),u);var c=r.replace(/\\\\'/g,\"'\").replace(/\\\\\"/g,'\"').replace(/[.*+?^${}()|[\\]\\\\]/g,\"\\\\$&\");return new RegExp(c)}function getWildcardPropertyInChain(r,e){var a=arguments.length>2&&void 0!==arguments[2]&&arguments[2],i=arguments.length>3&&void 0!==arguments[3]?arguments[3]:[],t=arguments.length>4?arguments[4]:void 0,o=e.indexOf(\".\");if(-1===o){if(\"*\"===e||\"[]\"===e){for(var n in r)if(Object.prototype.hasOwnProperty.call(r,n))if(void 0!==t){var s=r[n];\"string\"==typeof s&&t instanceof RegExp?t.test(s)&&i.push({base:r,prop:n}):s===t&&i.push({base:r,prop:n})}else i.push({base:r,prop:n})}else if(void 0!==t){var p=r[e];\"string\"==typeof p&&t instanceof RegExp?t.test(p)&&i.push({base:r,prop:e}):r[e]===t&&i.push({base:r,prop:e})}else i.push({base:r,prop:e});return i}var c=e.slice(0,o);if(\"[]\"===c&&Array.isArray(r)||\"*\"===c&&r instanceof Object||\"[-]\"===c&&Array.isArray(r)||\"{-}\"===c&&r instanceof Object){var f=e.slice(o+1),y=Object.keys(r);if(\"{-}\"===c||\"[-]\"===c){var h=Array.isArray(r)?\"array\":\"object\";return(\"{-}\"!==c||\"object\"!==h)&&(\"[-]\"!==c||\"array\"!==h)||y.forEach((function(e){(function(t,r,e){var n=r.split(\".\"),_check=function(t,r){if(null==t)return!1;if(0===r.length)return void 0===e||(\"string\"==typeof t&&e instanceof RegExp?e.test(t):t===e);var n=r[0],i=r.slice(1);if(\"*\"===n||\"[]\"===n){if(Array.isArray(t))return t.some((function(t){return _check(t,i)}));if(\"object\"==typeof t&&null!==t)return Object.keys(t).some((function(r){return _check(t[r],i)}))}return!!Object.prototype.hasOwnProperty.call(t,n)&&_check(t[n],i)};return _check(t,n)})(r[e],f,t)&&i.push({base:r,prop:e})})),i}y.forEach((function(e){getWildcardPropertyInChain(r[e],f,a,i,t)}))}Array.isArray(r)&&r.forEach((function(r){void 0!==r&&getWildcardPropertyInChain(r,e,a,i,t)}));var d=r[c];return e=e.slice(o+1),void 0!==d&&getWildcardPropertyInChain(d,e,a,i,t),i}function restoreRegExpValues(e){if(e.length)try{var r;r=1===e.length?`(${e[0]})`:e.reduce((function(e,r,t){return 1===t?`(${e}),(${r})`:`${e},(${r})`}));var t=new RegExp(r);e.toString().replace(t,\"\")}catch(e){var n=`Failed to restore RegExp values: ${e}`;console.log(n)}}function noopCallbackFunc(){return noopFunc}function noopFunc(){}function trueFunc(){return!0}function falseFunc(){return!1}function throwFunc(){throw new Error}function noopPromiseReject(){return Promise.reject()}function noopPromiseResolve(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:\"{}\",t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:\"\",s=arguments.length>2&&void 0!==arguments[2]?arguments[2]:\"basic\";if(\"undefined\"!=typeof Response){var n=new Response(e,{headers:{\"Content-Length\":`${e.length}`},status:200,statusText:\"OK\"});return\"opaque\"===s?Object.defineProperties(n,{body:{value:null},status:{value:0},ok:{value:!1},statusText:{value:\"\"},url:{value:\"\"},type:{value:s}}):Object.defineProperties(n,{url:{value:t},type:{value:s}}),Promise.resolve(n)}}function getJsonSetValue(e,t){return t.shouldReplaceArgument?\"string\"==typeof e?e.replace(t.replaceRegexValue,t.constantValue):e:!t.shouldMergeJsonValue||null===e||\"object\"!=typeof e||Array.isArray(e)||null===t.constantValue||\"object\"!=typeof t.constantValue||Array.isArray(t.constantValue)?t.constantValue:Object.assign({},e,t.constantValue)}function hit(e){if(e.verbose){try{var n=console.trace.bind(console),i=\"[AdGuard] \";\"corelibs\"===e.engine?i+=e.ruleText:(e.domainName&&(i+=`${e.domainName}`),e.args?i+=`#%#//scriptlet('${e.name}', '${e.args.join(\"', '\")}')`:i+=`#%#//scriptlet('${e.name}')`),n&&n(i)}catch(e){}\"function\"==typeof window.__debug&&window.__debug(e)}}function parseJsonSetArgumentValue(e,l,n){var s,N,a=\"json:\",t=\"\",o=!1,u=!1;if(l.startsWith(\"replace:\")){var i=function(e){if(e){var r=e.slice(8),t=\"\";if(r.endsWith(\"/g\")&&(r=r.slice(0,-1),t=\"g\"),r.startsWith(\"/\")&&r.endsWith(\"/\")){for(var i=r.slice(1,-1),a=-1,c=0;c<i.length;c+=1)if(\"/\"===i[c]){for(var f=!1,n=c-1;n>=0&&\"\\\\\"===i[n];)f=!f,n-=1;if(!f){a=c;break}}if(-1!==a){var s=`/${i.slice(0,a)}/${t}`,l=i.slice(a+1);if(s&&\"//\"!==s){var g;try{g=toRegExp(s)}catch(e){return}if(g)return{regexPart:g,replacementPart:l}}}}}}(l);if(!i)return logMessage(e,`Invalid argument value format: ${l}`),null;t=i.regexPart,s=i.replacementPart,o=!0}else if(l.startsWith(a))try{s=n(l.slice(5)),u=!0}catch(n){return logMessage(e,`Invalid JSON argument value: ${l}`),null}else{if(\"undefined\"===l)s=void 0;else if(\"false\"===l)s=!1;else if(\"true\"===l)s=!0;else if(\"null\"===l)s=null;else if(\"NaN\"===l)s=NaN;else if(\"emptyArr\"===l||\"[]\"===l)s=[];else if(\"emptyObj\"===l||\"{}\"===l)s={};else if(\"noopFunc\"===l)s=noopFunc;else if(\"noopCallbackFunc\"===l)s=noopCallbackFunc;else if(\"trueFunc\"===l)s=trueFunc;else if(\"falseFunc\"===l)s=falseFunc;else if(\"throwFunc\"===l)s=throwFunc;else if(\"noopPromiseResolve\"===l)s=noopPromiseResolve;else if(\"noopPromiseReject\"===l)s=noopPromiseReject;else if(/^-?\\d+$/.test(l)){if(s=parseFloat(l),N=s,(Number.isNaN||window.isNaN)(N))return null}else s=l}return{constantValue:s,replaceRegexValue:t,shouldReplaceArgument:o,shouldMergeJsonValue:u}}const updatedArgs=args?[].concat(source).concat(args):[source];try{(function(source,propsPath,argumentValue){var requiredInitialProps=arguments.length>3&&void 0!==arguments[3]?arguments[3]:\"\",propsToMatch=arguments.length>4&&void 0!==arguments[4]?arguments[4]:\"\",stack=arguments.length>5&&void 0!==arguments[5]?arguments[5]:\"\",verbose=arguments.length>7&&void 0!==arguments[7]?arguments[7]:\"\",syntaxModeDetails=function(t,r){var e=\"legacy\",o=\"jsonpath\",s=\"string\"==typeof r?r.trim().toLowerCase():\"\";if(s===e||s===o)return{mode:s};var n=\"string\"==typeof t?t.trim():\"\";return n.startsWith(\"$\")||n.startsWith(\"[?\")?{mode:o}:{mode:e}}(propsPath,arguments.length>6&&void 0!==arguments[6]?arguments[6]:\"\"),jsonPathExpression=\"jsonpath\"===syntaxModeDetails.mode?function(e,i){var r=e.trim();if(\"\"===r)return r;for(var f=0,l=0,s=0,n=null,t=0;t<r.length;t+=1){var o=r[t];if(n){if(o===n){for(var u=0,a=t-1;a>=0&&\"\\\\\"===r[a];)u+=1,a-=1;u%2==0&&(n=null)}}else if(\"'\"!==o&&'\"'!==o)if(\"[\"!==o)if(\"]\"!==o)if(\"{\"!==o)if(\"}\"!==o)if(\"(\"!==o)if(\")\"!==o){if(0===f&&0===l&&0===s&&(r.startsWith(\"+=\",t)||\"=\"===o))return r}else s-=1;else s+=1;else l-=1;else l+=1;else f-=1;else f+=1;else n=o}return\"$remove$\"===i?r:void 0===i?\"\":`${r}=${String(i)}`}(propsPath,argumentValue):\"\";if(propsPath&&\"undefined\"!=typeof fetch&&\"undefined\"!=typeof Proxy&&\"undefined\"!=typeof Response&&(\"legacy\"!==syntaxModeDetails.mode||void 0!==argumentValue))if(\"jsonpath\"!==syntaxModeDetails.mode||\"\"!==jsonPathExpression){var shouldLogContent=\"true\"===verbose,nativeObjects={nativeFetch:window.fetch,nativeParse:window.JSON.parse,nativeStringify:window.JSON.stringify,nativeRequestClone:window.Request.prototype.clone,nativeResponseClone:window.Response.prototype.clone},parsedArgumentValue=\"legacy\"===syntaxModeDetails.mode?parseJsonSetArgumentValue(source,argumentValue,nativeObjects.nativeParse):null;if(\"legacy\"!==syntaxModeDetails.mode||parsedArgumentValue){var setPathObj=(\"legacy\"===syntaxModeDetails.mode?getPrunePath(propsPath):[])[0],requiredPaths=\"legacy\"===syntaxModeDetails.mode?getPrunePath(requiredInitialProps):[],getValueToSet=function(currentValue){return parsedArgumentValue?getJsonSetValue(currentValue,parsedArgumentValue):currentValue},applyJsonMutation=function(jsonValue){return\"jsonpath\"===syntaxModeDetails.mode?function(e,r,t,a,n){var i=arguments.length>5&&void 0!==arguments[5]?arguments[5]:\"\",s=arguments.length>6&&void 0!==arguments[6]&&arguments[6],o=\"$\",l=\".\",u=\"..\",p=\"\",c=\"\\\\\",h=\")\",f=\"[\",v=\"@\",d=\"contains\",g=\"equal\",m=\"exists\",y=\"greater_than\",P=\"greater_than_or_equal\",k=\"less_than\",x=\"less_than_or_equal\",S=\"not_equal\",$=\"regex\",C=[\"==\",\"!=\",\"<=\",\">=\",\"*=\",\"=~\",\"<\",\">\",\"=\"],b=/^[A-Za-z_$][\\w$]*$/;function isObjectLike(e){return null!==e&&\"object\"==typeof e}function isPlainObject(e){if(!isObjectLike(e)||Array.isArray(e))return!1;var r=Object.getPrototypeOf(e);return r===Object.prototype||null===r}function isQuoteCharacter(e){return\"'\"===e||'\"'===e}function isEscaped(e,r){for(var t=0,a=r-1;a>=0&&e[a]===c;)t+=1,a-=1;return t%2!=0}function stripQuotes(e){var r=e.trim();if(r.length<2)return r;var t=r[0],a=r[r.length-1];return isQuoteCharacter(t)&&t===a?r.slice(1,-1).split(\"\\\\'\").join(\"'\").split('\\\\\"').join('\"').split(c+c).join(c):r}function appendPath(e,r){return\"number\"==typeof r||/^\\d+$/.test(String(r))?`${e}[${r}]`:b.test(String(r))?`${e}.${r}`:`${e}['${String(r).replace(/'/g,\"\\\\'\")}']`}function createCandidate(e,r,t,a){return{key:t,parent:r,path:a,value:e}}function walkTopLevelChars(e,r){for(var t=0,a=0,n=0,i=null,s=0;s<e.length;s+=1){var o=e[s];if(i){if(o!==i||isEscaped(e,s)||(i=null),r(s,!1))return}else if(isQuoteCharacter(o)){if(i=o,r(s,!1))return}else{var l=!0;if(o===f?t+=1:\"]\"===o?t-=1:\"{\"===o?a+=1:\"}\"===o?a-=1:\"(\"===o?n+=1:o===h?n-=1:l=!1,r(s,!l&&0===t&&0===a&&0===n))return}}}function findClosingBracket(e,r){for(var t=0,a=null,n=r;n<e.length;n+=1){var i=e[n];if(a)i!==a||isEscaped(e,n)||(a=null);else if(isQuoteCharacter(i))a=i;else if(i!==f){if(\"]\"===i&&0==(t-=1))return n}else t+=1}return-1}function splitByTopLevelToken(e,r){var t=[],a=p,n=new Set;return walkTopLevelChars(e,(function(i,s){if(!n.has(i))if(s&&e.startsWith(r,i)){t.push(a.trim()),a=p;for(var o=1;o<r.length;o+=1)n.add(i+o)}else a+=e[i]})),a!==p&&t.push(a.trim()),t}function normalizeFilterPath(e){var r=e.trim();return r.startsWith(v)&&(r=r.slice(1)),r===p?o:r.startsWith(o)?r:r.startsWith(l)||r.startsWith(u)||r.startsWith(f)?`${o}${r}`:`${o}${l}${r}`}function parseFilterExpression(e){var r=e.trim();if(r.startsWith(\"(\")&&r.endsWith(h)){for(var t=0,a=null,n=!1,i=0;i<r.length;i+=1){var s=r[i];if(a)s!==a||isEscaped(r,i)||(a=null);else if(isQuoteCharacter(s))a=s;else if(\"(\"===s)t+=1;else if(s===h&&0==(t-=1)){n=i===r.length-1;break}}n&&(r=r.slice(1,-1).trim())}var u=splitByTopLevelToken(r,\"||\");if(u.length>1)return{conditions:u.map((function(e){return parseFilterExpression(e)})),operator:\"or\"};var p=splitByTopLevelToken(r,\"&&\");if(p.length>1)return{conditions:p.map((function(e){return parseFilterExpression(e)})),operator:\"and\"};if(r.startsWith(\"!\")&&!r.startsWith(\"!=\"))return{condition:parseFilterExpression(r.slice(1).trim()),operator:\"not\"};var c,b,w=(b=null,walkTopLevelChars(c=r,(function(e,r){if(!r)return!1;for(var t=null,a=0;a<C.length;a+=1){var n=C[a];c.startsWith(n,e)&&(null===t||n.length>t.length)&&(t=n)}return null!==t&&(b={index:e,operator:t},!0)})),b);if(!w)return{operator:m,selectorPath:normalizeFilterPath(r)};var W=r.slice(0,w.index).trim(),A=r.slice(w.index+w.operator.length).trim(),E=g;\"!=\"===w.operator?E=S:\"<\"===w.operator?E=k:\"<=\"===w.operator?E=x:\">\"===w.operator?E=y:\">=\"===w.operator?E=P:\"*=\"===w.operator?E=d:(\"=~\"===w.operator||\"=\"===w.operator&&/^\\/.*\\/[a-z]*$/i.test(A))&&(E=$);var O,j,F=A.trim(),L=F===o||F.startsWith(o+l)||F.startsWith(o+f),M=F===v||F.startsWith(v+l)||F.startsWith(v+f);return L||M?{comparisonSelectorPath:normalizeFilterPath(F),operator:E,resolveComparisonAgainstRoot:L,selectorPath:normalizeFilterPath(W)}:{comparisonValue:(O=A,j=O.trim(),\"true\"===j||\"false\"!==j&&(\"null\"===j?null:/^-?\\d+(?:\\.\\d+)?$/.test(j)?Number(j):/^\\/.*\\/[a-z]*$/i.test(j)?toRegExp(j):stripQuotes(j))),operator:E,selectorPath:normalizeFilterPath(W)}}function parseBracketStep(e,r){if(\"*\"===e)return{mode:\"wildcard\",recursive:r};if(e.startsWith(\"?\"))return{filter:parseFilterExpression(e.slice(1)),mode:\"filter\",recursive:r};if(/^\\(@\\.length(?:-\\d+)?\\)$/.test(e)){var t=e.match(/^\\(@\\.length(?:-(\\d+))?\\)$/);return{mode:\"computed-index\",recursive:r,subtractLength:t&&t[1]?Number(t[1]):0}}var a=function(e){var r=[],t=p;return walkTopLevelChars(e,(function(a,n){n&&\":\"===e[a]?(r.push(t.trim()),t=p):t+=e[a]})),r.push(t.trim()),r}(e);if(a.length>1){var n=a[0]===p?void 0:Number(a[0]);return{mode:\"slice\",recursive:r,slice:{end:a[1]===p?void 0:Number(a[1]),start:n,step:a.length>2&&a[2]!==p?Number(a[2]):1}}}var i=function(e,r){var t=[],a=p;return walkTopLevelChars(e,(function(n,i){i&&e[n]===r?(t.push(a.trim()),a=p):a+=e[n]})),a!==p&&t.push(a.trim()),t}(e,\",\");return i.every((function(e){return/^-?\\d+$/.test(e)}))?{indexes:i.map((function(e){return Number(e)})),mode:\"index\",recursive:r}:{mode:\"property\",properties:i.map((function(e){return r=e.trim(),/^\\/.*\\/[a-z]*$/i.test(r)?toRegExp(r):stripQuotes(r);var r})),recursive:r}}function parseJsonPathSelector(e){var r=[],t=0;for(e.startsWith(o)&&(t=1);t<e.length;){var a=!1;if(e.startsWith(u,t)?(a=!0,t+=2):e[t]===l&&(t+=1),t>=e.length)break;if(e[t]!==f)if(\"*\"!==e[t]){for(var n=t;n<e.length&&e[n]!==l&&e[n]!==f;)n+=1;var i=e.slice(t,n).trim();i&&r.push({mode:\"property\",properties:[i],recursive:a}),t=n}else r.push({mode:\"wildcard\",recursive:a}),t+=1;else{var s=findClosingBracket(e,t);if(-1===s)throw new Error(`Invalid JSONPath expression: ${e}`);var p=e.slice(t+1,s).trim();r.push(parseBracketStep(p,a)),t=s+1}}return{steps:r}}function buildAppendUpdater(e,r,t){var a,n=e.trim();if(n.startsWith(\"{\")||n.startsWith(f))a=r(n);else{var i=t(n);if(!i||i.shouldReplaceArgument)throw new Error(`Invalid append value: ${e}`);a=i.constantValue}return function(e){return Array.isArray(e)?Array.isArray(a)?e.concat(a):e.concat([a]):isPlainObject(e)&&isPlainObject(a)?Object.assign({},e,a):\"string\"==typeof e&&\"string\"==typeof a?`${e}${a}`:a}}function buildSetUpdater(e,r,t){var a=e.trim();if(a.startsWith(\"replace(\")&&a.endsWith(h))return function(e,r){var t=r(e.slice(8,-1));if(\"string\"!=typeof t.regex||\"string\"!=typeof t.replacement)throw new Error('Invalid replace payload: \"regex\" and \"replacement\" must be strings');var a=t.regex.startsWith(\"/\")?toRegExp(t.regex):new RegExp(t.regex,t.flags||p);return function(e){return\"string\"!=typeof e?e:e.replace(a,t.replacement)}}(a,r);var n=t(a);if(!n)throw new Error(`Invalid set value: ${e}`);return function(e){return getJsonSetValue(e,n)}}function getChildCandidates(e){if(!isObjectLike(e.value))return[];for(var r=Object.keys(e.value),t=[],a=0;a<r.length;a+=1){var n=r[a];t.push(createCandidate(e.value[n],e.value,n,appendPath(e.path,n)))}return t}function getRecursiveCandidates(e){for(var r=[e],t=getChildCandidates(e),a=0;a<t.length;a+=1)r.push(t[a]);for(var n=1;n<r.length;){for(var i=getChildCandidates(r[n]),s=0;s<i.length;s+=1)r.push(i[s]);n+=1}return r}function resolveIndex(e,r){return r<0?e+r:r}function applyDirectStep(e,r){var t=[];if(\"property\"===r.mode){if(!isObjectLike(e.value)||!r.properties)return t;for(var a=new Set,n=0;n<r.properties.length;n+=1){var i=r.properties[n];if(i instanceof RegExp)for(var s=Object.keys(e.value),o=0;o<s.length;o+=1){var l=s[o];i.lastIndex=0,i.test(l)&&!a.has(l)&&(a.add(l),t.push(createCandidate(e.value[l],e.value,l,appendPath(e.path,l))))}else!a.has(i)&&Object.prototype.hasOwnProperty.call(e.value,i)&&(a.add(i),t.push(createCandidate(e.value[i],e.value,i,appendPath(e.path,i))))}return t}if(\"wildcard\"===r.mode)return getChildCandidates(e);if(\"index\"===r.mode){if(!Array.isArray(e.value)||!r.indexes)return t;for(var u=0;u<r.indexes.length;u+=1){var p=resolveIndex(e.value.length,r.indexes[u]);p>=0&&p<e.value.length&&t.push(createCandidate(e.value[p],e.value,p,appendPath(e.path,p)))}return t}if(\"computed-index\"===r.mode){if(!Array.isArray(e.value))return t;var c=e.value.length-(r.subtractLength||0);return c>=0&&c<e.value.length&&t.push(createCandidate(e.value[c],e.value,c,appendPath(e.path,c))),t}if(\"slice\"===r.mode){if(!Array.isArray(e.value)||!r.slice)return t;for(var h=function(e,r){var t,a,n=[],i=void 0===r.step?1:r.step;if(0===i)return n;if(t=void 0===r.start?i>0?0:e-1:resolveIndex(e,r.start),a=void 0===r.end?i>0?e:-1:resolveIndex(e,r.end),i>0){for(var s=Math.max(0,t);s<Math.min(e,a);s+=i)n.push(s);return n}for(var o=Math.min(e-1,t);o>Math.max(-1,a);o+=i)n.push(o);return n}(e.value.length,r.slice),f=0;f<h.length;f+=1){var v=h[f];t.push(createCandidate(e.value[v],e.value,v,appendPath(e.path,v)))}}return t}function evaluateSelector(e,t){function matchesFilterValue(e,t){if(\"conditions\"in t)return\"and\"===t.operator?t.conditions.every((function(r){return matchesFilterValue(e,r)})):t.conditions.some((function(r){return matchesFilterValue(e,r)}));if(\"condition\"in t)return!matchesFilterValue(e,t.condition);var a=evaluateSelector(e,parseJsonPathSelector(t.selectorPath));if(t.operator===m)return a.length>0;var n=t.comparisonValue;if(t.comparisonSelectorPath){var i=evaluateSelector(t.resolveComparisonAgainstRoot?r:e,parseJsonPathSelector(t.comparisonSelectorPath));if(0===i.length)return!1;n=i[0].value}for(var s=0;s<a.length;s+=1){var o=a[s].value;if(t.operator!==d){if(t.operator!==$){if(t.operator===g&&o===n)return!0;if(t.operator===S&&o!==n)return!0;if(t.operator===k&&o<n)return!0;if(t.operator===x&&o<=n)return!0;if(t.operator===y&&o>n)return!0;if(t.operator===P&&o>=n)return!0}else if(\"string\"==typeof o&&n instanceof RegExp&&(n.lastIndex=0,n.test(o)))return!0}else if(\"string\"==typeof o&&o.includes(String(n)))return!0}return!1}function applyFilterStep(e,r){for(var t=[],a=0;a<e.length;a+=1){var n=e[a];if(Array.isArray(n.value))for(var i=0;i<n.value.length;i+=1)matchesFilterValue(n.value[i],r)&&t.push(createCandidate(n.value[i],n.value,i,appendPath(n.path,i)));else matchesFilterValue(n.value,r)&&t.push(n)}return t}for(var a=[createCandidate(e,null,null,o)],n=0;n<t.steps.length;n+=1){var i=t.steps[n];if(\"filter\"===i.mode&&i.filter)a=applyFilterStep(a,i.filter);else{for(var s=[],l=0;l<a.length;l+=1)for(var u=a[l],p=i.recursive?getRecursiveCandidates(u):[u],c=0;c<p.length;c+=1)for(var h=applyDirectStep(p[c],i),f=0;f<h.length;f+=1)s.push(h[f]);a=s}}return a}var w=!1;function markMutated(){w=!0}if(!isObjectLike(r))return r;var W,A=(W=a)&&W.nativeParse?W.nativeParse:JSON.parse,E=function(e){return e&&e.nativeStringify?e.nativeStringify:JSON.stringify}(a),O=(new Error).stack||\"\";if(i&&!matchStackTrace(i,O))return r;if(!t)return logMessage(e,`${window.location.hostname}\\n${E(r,null,2)}\\nStack trace:\\n${O}`,!0),logMessage(e,r,!0,!1),r;try{for(var j=function(e,r,t){var n,i=function(e){var r=-1,t=\"remove\",a=0;return walkTopLevelChars(e,(function(n,i){return!!i&&(e.startsWith(\"+=\",n)?(r=n,t=\"append\",a=2,!0):\"=\"===e[n]&&(r=n,t=\"set\",a=1,!0))})),-1===r?{mode:\"remove\",selectorPart:e.trim(),valuePart:p}:{mode:t,selectorPart:e.slice(0,r).trim(),valuePart:e.slice(r+a).trim()}}(e),s=function(e){for(var r=[],t=e.trim();t.startsWith(\"[?\");){var a=findClosingBracket(t,0);if(-1===a)break;var n=t.slice(1,a);r.push(parseFilterExpression(n.slice(1))),t=t.slice(a+1).trim()}return{guards:r,selectorPart:t}}(i.selectorPart),c=parseJsonPathSelector((n=s.selectorPart.trim())===p?o:n.startsWith(o)?n:n.startsWith(l)||n.startsWith(f)||n.startsWith(u)?`${o}${n}`:`${o}${l}${n}`),h={mode:i.mode};return\"append\"===i.mode?h={mode:\"append\",updater:buildAppendUpdater(i.valuePart,r,t)}:\"set\"===i.mode&&(h={mode:\"set\",updater:buildSetUpdater(i.valuePart,r,t)}),{guards:s.guards,mutation:h,selector:c}}(t,A,(function(r){return parseJsonSetArgumentValue(e,r,A)})),F=0;F<j.guards.length;F+=1)if(0===evaluateSelector(r,{steps:[{filter:j.guards[F],mode:\"filter\",recursive:!1}]}).length)return r;var L=evaluateSelector(r,j.selector);if(s)return L.length>0&&n&&n(),r;if(!(\"remove\"===j.mutation.mode||\"string\"==typeof e.name&&e.name.startsWith(\"trusted-\")))return logMessage(e,\"JSONPath set and append operations are allowed only in trusted scriptlets\"),r;if(\"remove\"===j.mutation.mode)return function(e){for(var r=new Set,t=new Map,a=0;a<e.length;a+=1){var n=e[a];if(null!==n.parent&&null!==n.key&&!r.has(n.path))if(r.add(n.path),Array.isArray(n.parent)){var i=t.get(n.parent)||[];i.push(Number(n.key)),t.set(n.parent,i)}else delete n.parent[n.key],markMutated()}t.forEach((function(e,r){for(var t=Array.from(new Set(e)).sort((function(e,r){return r-e})),a=0;a<t.length;a+=1){var n=t[a];n>=0&&n<r.length&&(r.splice(n,1),markMutated())}}))}(L),w&&n&&n(),r;j.mutation.updater&&(r=function(e,r,t){for(var a=new Set,n=e,i=0;i<r.length;i+=1){var s=r[i];a.has(s.path)||(a.add(s.path),null!==s.parent||null!==s.key||s.path!==o?null!==s.parent&&null!==s.key&&(s.parent[s.key]=t(s.parent[s.key]),markMutated()):(n=t(n),markMutated()))}return n}(r,L,j.mutation.updater),w&&n&&n())}catch(r){logMessage(e,`JSONPath processing failed for expression '${t}': ${r.message}`)}return r}(source,jsonValue,jsonPathExpression,nativeObjects,(function(){return hit(source)}),stack):function(e,n,t,r,o,a,i,s,l){var{nativeStringify:c}=s,notifyMutation=function(){hit(e),l&&l()};if(!t)return logMessage(e,`${window.location.hostname}\\n${c(n,null,2)}\\nStack trace:\\n${(new Error).stack}`,!0),n&&\"object\"==typeof n&&logMessage(e,n,!0,!1),n;try{if(!1===function(n,t,r,e,a,i){if(!t)return!1;var o,{nativeStringify:u}=i,c=r.map((function(n){return n.path})),f=e.map((function(n){return n.path}));if(0===c.length&&f.length>0){var g=u(t);if(toRegExp(f.join(\"\")).test(g))return logMessage(n,`${window.location.hostname}\\n${u(t,null,2)}\\nStack trace:\\n${(new Error).stack}`,!0),t&&\"object\"==typeof t&&logMessage(n,t,!0,!1),o=!1}if(a&&!matchStackTrace(a,(new Error).stack||\"\"))return o=!1;for(var s,l=[\".*.\",\"*.\",\".*\",\".[].\",\"[].\",\".[]\"],_loop=function(){var n=f[p],r=n.split(\".\").pop(),e=l.some((function(t){return n.includes(t)})),a=getWildcardPropertyInChain(t,n,e);if(!a.length)return{v:o=!1};o=!e;for(var i=0;i<a.length;i+=1){var u=\"string\"==typeof r&&void 0!==a[i].base[r];o=e?u||o:u&&o}},p=0;p<f.length;p+=1)if(s=_loop())return s.v;return o}(e,n,[{path:t}],a,i,s))return n;var g=[\".*.\",\"*.\",\".*\",\".[].\",\"[].\",\".[]\"].some((function(e){return t.includes(e)})),f=getWildcardPropertyInChain(n,t,g,[],r);if(f.length>0)for(var u=0;u<f.length;u+=1){var v=f[u];v&&v.base&&(v.base[v.prop]=o(v.base[v.prop]),notifyMutation())}else if(!g&&void 0===r){for(var h=t.split(\".\"),p=n,d=0;d<h.length-1;d+=1){var b=h[d];void 0!==p[b]&&null!==p[b]&&\"object\"==typeof p[b]||(p[b]={}),p=p[b]}var y=h[h.length-1];p[y]=o(p[y]),notifyMutation()}}catch(n){logMessage(e,n)}return n}(source,jsonValue,(null==setPathObj?void 0:setPathObj.path)||\"\",null==setPathObj?void 0:setPathObj.value,getValueToSet,requiredPaths,stack,nativeObjects)},fetchHandler={apply:async function(target,thisArg,args){var originalResponse,clonedResponse,textContent,fetchData=function(e,t){var a,c,n={},r=e[0];if(r instanceof Request){var f=function(t){var e=[\"url\",\"method\",\"headers\",\"body\",\"credentials\",\"cache\",\"redirect\",\"referrer\",\"referrerPolicy\",\"integrity\",\"keepalive\",\"signal\",\"mode\"].map((function(e){return[e,t[e]]}));return Object.fromEntries(e)}(t.call(r));a=f.url,c=f}else a=r,c=e[1];return n.url=a,c instanceof Object&&Object.keys(c).forEach((function(e){n[e]=c[e]})),n}(args,nativeObjects.nativeRequestClone);if(!function(e,t,r){if(\"\"===t||\"*\"===t)return!0;var a,s=function(e){var r={};return e.split(\" \").forEach((function(e){var n=e.indexOf(\":\"),i=e.slice(0,n);if(function(e){return[\"url\",\"method\",\"headers\",\"body\",\"credentials\",\"cache\",\"redirect\",\"referrer\",\"referrerPolicy\",\"integrity\",\"keepalive\",\"signal\",\"mode\"].includes(e)}(i)){var s=e.slice(n+1);r[i]=s}else r.url=e})),r}(t);if(function(t){return Object.values(t).every((function(t){return function(e){var t,n=function(e){return e.replace(/[.*+?^${}()|[\\]\\\\]/g,\"\\\\$&\")}(e);\"/\"===e[0]&&\"/\"===e[e.length-1]&&(n=e.slice(1,-1));try{t=new RegExp(n),t=!0}catch(e){t=!1}return t}(t)}))}(s)){var n=function(t){var a={};return Object.keys(t).forEach((function(c){a[c]=toRegExp(t[c])})),a}(s);a=Object.keys(n).every((function(e){var t=n[e],a=r[e];return Object.prototype.hasOwnProperty.call(r,e)&&\"string\"==typeof a&&(null==t?void 0:t.test(a))}))}else logMessage(e,`Invalid parameter: ${t}`),a=!1;return a}(source,propsToMatch,fetchData))return Reflect.apply(target,thisArg,args);try{originalResponse=await nativeObjects.nativeFetch.apply(null,args),clonedResponse=nativeObjects.nativeResponseClone.call(originalResponse)}catch(_unused){return logMessage(source,`Could not make an original fetch request: ${fetchData.url}`),Reflect.apply(target,thisArg,args)}try{textContent=await originalResponse.text()}catch(_unused2){var message=`Response body can't be converted to text: ${objectToString(fetchData)}`;return logMessage(source,message),clonedResponse}try{var json=nativeObjects.nativeParse(textContent);shouldLogContent&&(logMessage(source,`Original content:\\n${window.location.hostname}\\n${nativeObjects.nativeStringify(json,null,2)}\\nStack trace:\\n${(new Error).stack||\"\"}`,!0),logMessage(source,json,!0,!1));var modifiedJson=applyJsonMutation(json);return shouldLogContent&&(logMessage(source,`Modified content:\\n${window.location.hostname}\\n${nativeObjects.nativeStringify(modifiedJson,null,2)}\\nStack trace:\\n${(new Error).stack||\"\"}`,!0),logMessage(source,modifiedJson,!0,!1)),forgeResponse(originalResponse,nativeObjects.nativeStringify(modifiedJson))}catch(_unused3){}try{var lineEditResult=function(n,i){for(var e=arguments.length>2&&void 0!==arguments[2]?arguments[2]:\"\",t=e.includes(\"\\r\\n\")?\"\\r\\n\":\"\\n\",r=e.split(/\\r?\\n/),s=[],a=i.nativeParse||JSON.parse,o=i.nativeStringify||JSON.stringify,v=!1,h=0;h<r.length;h+=1){var l=r[h],u=void 0;try{u=a(l)}catch(n){}if(\"object\"==typeof u&&null!==u){v=!0;var f=o(u),p=n(u);if(void 0!==p){var c=o(p);c!==f?s.push(c):s.push(l)}else s.push(l)}else s.push(l)}return{hasJsonLines:v,text:s.join(t)}}((function(parsedLine){return applyJsonMutation(parsedLine)}),nativeObjects,textContent);if(lineEditResult.hasJsonLines)return shouldLogContent&&(logMessage(source,`Original content:\\n${window.location.hostname}\\n${textContent}\\nStack trace:\\n${(new Error).stack||\"\"}`,!0),logMessage(source,`Modified content:\\n${window.location.hostname}\\n${lineEditResult.text}\\nStack trace:\\n${(new Error).stack||\"\"}`,!0)),forgeResponse(originalResponse,lineEditResult.text);var _message=`Response body can't be converted to json: ${objectToString(fetchData)}`;return logMessage(source,_message),clonedResponse}catch(error){var _message2=`Response body can't be converted to json: ${objectToString(fetchData)}`;return logMessage(source,_message2),clonedResponse}},get:function(target,propName,receiver){return\"toString\"===propName?target.toString.bind(target):Reflect.get(target,propName,receiver)}};window.fetch=new Proxy(window.fetch,fetchHandler)}}else logMessage(source,\"JSONPath mode requires argumentValue unless propsPath already contains an inline mutation\")}).apply(this,updatedArgs),source.uniqueId&&Object.defineProperty(Window.prototype.toString,uniqueIdentifier,{value:\"done\",enumerable:!1,writable:!1,configurable:!1})}catch(e){console.log(e)}}"
        },
        {
            "names": [
                "trusted-json-set"
            ],
            "scriptlet": "function trustedJsonSet(source,args){const uniqueIdentifier=source.uniqueId+source.name+\"_\"+(Array.isArray(args)?args.join(\"_\"):\"\");if(source.uniqueId&&\"done\"===Window.prototype.toString[uniqueIdentifier])return;function hit(e){if(e.verbose){try{var n=console.trace.bind(console),i=\"[AdGuard] \";\"corelibs\"===e.engine?i+=e.ruleText:(e.domainName&&(i+=`${e.domainName}`),e.args?i+=`#%#//scriptlet('${e.name}', '${e.args.join(\"', '\")}')`:i+=`#%#//scriptlet('${e.name}')`),n&&n(i)}catch(e){}\"function\"==typeof window.__debug&&window.__debug(e)}}function noopCallbackFunc(){return noopFunc}function noopFunc(){}function trueFunc(){return!0}function falseFunc(){return!1}function throwFunc(){throw new Error}function noopPromiseReject(){return Promise.reject()}function noopPromiseResolve(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:\"{}\",t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:\"\",s=arguments.length>2&&void 0!==arguments[2]?arguments[2]:\"basic\";if(\"undefined\"!=typeof Response){var n=new Response(e,{headers:{\"Content-Length\":`${e.length}`},status:200,statusText:\"OK\"});return\"opaque\"===s?Object.defineProperties(n,{body:{value:null},status:{value:0},ok:{value:!1},statusText:{value:\"\"},url:{value:\"\"},type:{value:s}}):Object.defineProperties(n,{url:{value:t},type:{value:s}}),Promise.resolve(n)}}function nativeIsNaN(N){return(Number.isNaN||window.isNaN)(N)}function matchStackTrace(e,t){if(!e||\"\"===e)return!0;var r=function(){try{for(var r=[],e=1;e<10;e+=1){var a=`$${e}`;if(!RegExp[a])break;r.push(RegExp[a])}return r}catch(r){return[]}}();if(function(t,i){var r=\"inlineScript\",n=\"injectedScript\",isInlineScript=function(t){return t.includes(r)},isInjectedScript=function(t){return t.includes(n)};if(!isInlineScript(t)&&!isInjectedScript(t))return!1;var e=window.location.href,s=e.indexOf(\"#\");-1!==s&&(e=e.slice(0,s));var c=i.split(\"\\n\").slice(2).map((function(t){return t.trim()})).map((function(t){var i,s=/(.*?@)?(\\S+)(:\\d+)(:\\d+)\\)?$/.exec(t);if(s){var c,l,a=s[2],u=s[3],o=s[4];if(null!==(c=a)&&void 0!==c&&c.startsWith(\"(\")&&(a=a.slice(1)),null!==(l=a)&&void 0!==l&&l.startsWith(\"<anonymous>\")){var d;a=n;var f=void 0!==s[1]?s[1].slice(0,-1):t.slice(0,s.index).trim();null!==(d=f)&&void 0!==d&&d.startsWith(\"at\")&&(f=f.slice(2).trim()),i=`${f} ${a}${u}${o}`.trim()}else i=a===e?`${r}${u}${o}`.trim():`${a}${u}${o}`.trim()}else i=t;return i}));if(c)for(var l=0;l<c.length;l+=1){if(isInlineScript(t)&&c[l].startsWith(r)&&c[l].match(toRegExp(t)))return!0;if(isInjectedScript(t)&&c[l].startsWith(n)&&c[l].match(toRegExp(t)))return!0}return!1}(e,t))return r.length&&r[0]!==RegExp.$1&&restoreRegExpValues(r),!0;var n=toRegExp(e),a=t.split(\"\\n\").slice(2).map((function(e){return e.trim()})).join(\"\\n\");return r.length&&r[0]!==RegExp.$1&&restoreRegExpValues(r),function(){var t=Object.getOwnPropertyDescriptor(RegExp.prototype,\"test\"),e=null==t?void 0:t.value;if(t&&\"function\"==typeof t.value)return e;throw new Error(\"RegExp.prototype.test is not a function\")}().call(n,a)}function getPropertyInChain(e,r){var n=r.indexOf(\".\");if(-1===n)return{base:e,prop:r};var i=r.slice(0,n);if(null===e)return{base:e,prop:i,chain:r};var t=e[i];return r=r.slice(n+1),(e instanceof Object||\"object\"==typeof e)&&function(t){return 0===Object.keys(t).length&&!t.prototype}(e)||null===t?{base:e,prop:i,chain:r}:void 0!==t?getPropertyInChain(t,r):(Object.defineProperty(e,i,{configurable:!0}),{base:e,prop:i,chain:r})}function getWildcardPropertyInChain(r,e){var a=arguments.length>2&&void 0!==arguments[2]&&arguments[2],i=arguments.length>3&&void 0!==arguments[3]?arguments[3]:[],t=arguments.length>4?arguments[4]:void 0,o=e.indexOf(\".\");if(-1===o){if(\"*\"===e||\"[]\"===e){for(var n in r)if(Object.prototype.hasOwnProperty.call(r,n))if(void 0!==t){var s=r[n];\"string\"==typeof s&&t instanceof RegExp?t.test(s)&&i.push({base:r,prop:n}):s===t&&i.push({base:r,prop:n})}else i.push({base:r,prop:n})}else if(void 0!==t){var p=r[e];\"string\"==typeof p&&t instanceof RegExp?t.test(p)&&i.push({base:r,prop:e}):r[e]===t&&i.push({base:r,prop:e})}else i.push({base:r,prop:e});return i}var c=e.slice(0,o);if(\"[]\"===c&&Array.isArray(r)||\"*\"===c&&r instanceof Object||\"[-]\"===c&&Array.isArray(r)||\"{-}\"===c&&r instanceof Object){var f=e.slice(o+1),y=Object.keys(r);if(\"{-}\"===c||\"[-]\"===c){var h=Array.isArray(r)?\"array\":\"object\";return(\"{-}\"!==c||\"object\"!==h)&&(\"[-]\"!==c||\"array\"!==h)||y.forEach((function(e){(function(t,r,e){var n=r.split(\".\"),_check=function(t,r){if(null==t)return!1;if(0===r.length)return void 0===e||(\"string\"==typeof t&&e instanceof RegExp?e.test(t):t===e);var n=r[0],i=r.slice(1);if(\"*\"===n||\"[]\"===n){if(Array.isArray(t))return t.some((function(t){return _check(t,i)}));if(\"object\"==typeof t&&null!==t)return Object.keys(t).some((function(r){return _check(t[r],i)}))}return!!Object.prototype.hasOwnProperty.call(t,n)&&_check(t[n],i)};return _check(t,n)})(r[e],f,t)&&i.push({base:r,prop:e})})),i}y.forEach((function(e){getWildcardPropertyInChain(r[e],f,a,i,t)}))}Array.isArray(r)&&r.forEach((function(r){void 0!==r&&getWildcardPropertyInChain(r,e,a,i,t)}));var d=r[c];return e=e.slice(o+1),void 0!==d&&getWildcardPropertyInChain(d,e,a,i,t),i}function logMessage(e,o){var r=arguments.length>2&&void 0!==arguments[2]&&arguments[2],a=!(arguments.length>3&&void 0!==arguments[3])||arguments[3],{name:n,verbose:g}=e;if(r||g){var i=console.log;a?i(`${n}: ${o}`):Array.isArray(o)?i(`${n}:`,...o):i(`${n}:`,o)}}function getPrunePath(t){var r=\".[=].\";if(\"string\"==typeof t&&void 0!==t&&\"\"!==t){var e=function(t){for(var e=[],n=\"\",i=0,a=!1,s=!1;i<t.length;){var u=t[i];if(a)n+=u,\"\\\\\"===u?s=!s:(\"/\"!==u||s||(a=!1),s=!1),i+=1;else{if(\" \"===u||\"\\n\"===u||\"\\t\"===u||\"\\r\"===u||\"\\f\"===u||\"\\v\"===u){for(;i<t.length&&/\\s/.test(t[i]);)i+=1;\"\"!==n&&(e.push(n),n=\"\");continue}if(t.startsWith(r,i)){if(n+=r,\"/\"===t[i+=5]){a=!0,s=!1,n+=\"/\",i+=1;continue}continue}n+=u,i+=1}}return\"\"!==n&&e.push(n),e}(t);return e.map((function(t){var e=t.split(r),n=e[0],i=e[1];return void 0!==i?(\"true\"===i?i=!0:\"false\"===i?i=!1:i.startsWith(\"/\")?i=toRegExp(i):\"string\"==typeof i&&/^\\d+$/.test(i)&&(i=parseFloat(i)),{path:n,value:i}):{path:n}}))}return[]}function toRegExp(e){var r=e||\"\",t=\"/\";if(\"\"===r)return new RegExp(\".?\");var n,i,s=r.lastIndexOf(t),a=r.substring(s+1),g=r.substring(0,s+1),u=(i=a,(n=g).startsWith(t)&&n.endsWith(t)&&!n.endsWith(\"\\\\/\")&&function(e){if(!e)return!1;try{return new RegExp(\"\",e),!0}catch(e){return!1}}(i)?i:\"\");if(r.startsWith(t)&&r.endsWith(t)||u)return new RegExp((u?g:r).slice(1,-1),u);var c=r.replace(/\\\\'/g,\"'\").replace(/\\\\\"/g,'\"').replace(/[.*+?^${}()|[\\]\\\\]/g,\"\\\\$&\");return new RegExp(c)}function restoreRegExpValues(e){if(e.length)try{var r;r=1===e.length?`(${e[0]})`:e.reduce((function(e,r,t){return 1===t?`(${e}),(${r})`:`${e},(${r})`}));var t=new RegExp(r);e.toString().replace(t,\"\")}catch(e){var n=`Failed to restore RegExp values: ${e}`;console.log(n)}}function getJsonSetValue(e,t){return t.shouldReplaceArgument?\"string\"==typeof e?e.replace(t.replaceRegexValue,t.constantValue):e:!t.shouldMergeJsonValue||null===e||\"object\"!=typeof e||Array.isArray(e)||null===t.constantValue||\"object\"!=typeof t.constantValue||Array.isArray(t.constantValue)?t.constantValue:Object.assign({},e,t.constantValue)}function parseJsonSetArgumentValue(e,l,n){var s,a=\"json:\",t=\"\",o=!1,u=!1;if(l.startsWith(\"replace:\")){var i=function(e){if(e){var r=e.slice(8),t=\"\";if(r.endsWith(\"/g\")&&(r=r.slice(0,-1),t=\"g\"),r.startsWith(\"/\")&&r.endsWith(\"/\")){for(var i=r.slice(1,-1),a=-1,c=0;c<i.length;c+=1)if(\"/\"===i[c]){for(var f=!1,n=c-1;n>=0&&\"\\\\\"===i[n];)f=!f,n-=1;if(!f){a=c;break}}if(-1!==a){var s=`/${i.slice(0,a)}/${t}`,l=i.slice(a+1);if(s&&\"//\"!==s){var g;try{g=toRegExp(s)}catch(e){return}if(g)return{regexPart:g,replacementPart:l}}}}}}(l);if(!i)return logMessage(e,`Invalid argument value format: ${l}`),null;t=i.regexPart,s=i.replacementPart,o=!0}else if(l.startsWith(a))try{s=n(l.slice(5)),u=!0}catch(n){return logMessage(e,`Invalid JSON argument value: ${l}`),null}else{if(\"undefined\"===l)s=void 0;else if(\"false\"===l)s=!1;else if(\"true\"===l)s=!0;else if(\"null\"===l)s=null;else if(\"NaN\"===l)s=NaN;else if(\"emptyArr\"===l||\"[]\"===l)s=[];else if(\"emptyObj\"===l||\"{}\"===l)s={};else if(\"noopFunc\"===l)s=noopFunc;else if(\"noopCallbackFunc\"===l)s=noopCallbackFunc;else if(\"trueFunc\"===l)s=trueFunc;else if(\"falseFunc\"===l)s=falseFunc;else if(\"throwFunc\"===l)s=throwFunc;else if(\"noopPromiseResolve\"===l)s=noopPromiseResolve;else if(\"noopPromiseReject\"===l)s=noopPromiseReject;else if(/^-?\\d+$/.test(l)){if(nativeIsNaN(s=parseFloat(l)))return null}else s=l}return{constantValue:s,replaceRegexValue:t,shouldReplaceArgument:o,shouldMergeJsonValue:u}}function jsonPath(e,r,t,a,n){var i=arguments.length>5&&void 0!==arguments[5]?arguments[5]:\"\",s=arguments.length>6&&void 0!==arguments[6]&&arguments[6],o=\"$\",l=\".\",u=\"..\",p=\"\",c=\"\\\\\",h=\")\",f=\"[\",v=\"@\",d=\"contains\",g=\"equal\",m=\"exists\",y=\"greater_than\",P=\"greater_than_or_equal\",k=\"less_than\",x=\"less_than_or_equal\",S=\"not_equal\",$=\"regex\",C=[\"==\",\"!=\",\"<=\",\">=\",\"*=\",\"=~\",\"<\",\">\",\"=\"],b=/^[A-Za-z_$][\\w$]*$/;function isObjectLike(e){return null!==e&&\"object\"==typeof e}function isPlainObject(e){if(!isObjectLike(e)||Array.isArray(e))return!1;var r=Object.getPrototypeOf(e);return r===Object.prototype||null===r}function isQuoteCharacter(e){return\"'\"===e||'\"'===e}function isEscaped(e,r){for(var t=0,a=r-1;a>=0&&e[a]===c;)t+=1,a-=1;return t%2!=0}function stripQuotes(e){var r=e.trim();if(r.length<2)return r;var t=r[0],a=r[r.length-1];return isQuoteCharacter(t)&&t===a?r.slice(1,-1).split(\"\\\\'\").join(\"'\").split('\\\\\"').join('\"').split(c+c).join(c):r}function appendPath(e,r){return\"number\"==typeof r||/^\\d+$/.test(String(r))?`${e}[${r}]`:b.test(String(r))?`${e}.${r}`:`${e}['${String(r).replace(/'/g,\"\\\\'\")}']`}function createCandidate(e,r,t,a){return{key:t,parent:r,path:a,value:e}}function walkTopLevelChars(e,r){for(var t=0,a=0,n=0,i=null,s=0;s<e.length;s+=1){var o=e[s];if(i){if(o!==i||isEscaped(e,s)||(i=null),r(s,!1))return}else if(isQuoteCharacter(o)){if(i=o,r(s,!1))return}else{var l=!0;if(o===f?t+=1:\"]\"===o?t-=1:\"{\"===o?a+=1:\"}\"===o?a-=1:\"(\"===o?n+=1:o===h?n-=1:l=!1,r(s,!l&&0===t&&0===a&&0===n))return}}}function findClosingBracket(e,r){for(var t=0,a=null,n=r;n<e.length;n+=1){var i=e[n];if(a)i!==a||isEscaped(e,n)||(a=null);else if(isQuoteCharacter(i))a=i;else if(i!==f){if(\"]\"===i&&0==(t-=1))return n}else t+=1}return-1}function splitByTopLevelToken(e,r){var t=[],a=p,n=new Set;return walkTopLevelChars(e,(function(i,s){if(!n.has(i))if(s&&e.startsWith(r,i)){t.push(a.trim()),a=p;for(var o=1;o<r.length;o+=1)n.add(i+o)}else a+=e[i]})),a!==p&&t.push(a.trim()),t}function normalizeFilterPath(e){var r=e.trim();return r.startsWith(v)&&(r=r.slice(1)),r===p?o:r.startsWith(o)?r:r.startsWith(l)||r.startsWith(u)||r.startsWith(f)?`${o}${r}`:`${o}${l}${r}`}function parseFilterExpression(e){var r=e.trim();if(r.startsWith(\"(\")&&r.endsWith(h)){for(var t=0,a=null,n=!1,i=0;i<r.length;i+=1){var s=r[i];if(a)s!==a||isEscaped(r,i)||(a=null);else if(isQuoteCharacter(s))a=s;else if(\"(\"===s)t+=1;else if(s===h&&0==(t-=1)){n=i===r.length-1;break}}n&&(r=r.slice(1,-1).trim())}var u=splitByTopLevelToken(r,\"||\");if(u.length>1)return{conditions:u.map((function(e){return parseFilterExpression(e)})),operator:\"or\"};var p=splitByTopLevelToken(r,\"&&\");if(p.length>1)return{conditions:p.map((function(e){return parseFilterExpression(e)})),operator:\"and\"};if(r.startsWith(\"!\")&&!r.startsWith(\"!=\"))return{condition:parseFilterExpression(r.slice(1).trim()),operator:\"not\"};var c,b,w=(b=null,walkTopLevelChars(c=r,(function(e,r){if(!r)return!1;for(var t=null,a=0;a<C.length;a+=1){var n=C[a];c.startsWith(n,e)&&(null===t||n.length>t.length)&&(t=n)}return null!==t&&(b={index:e,operator:t},!0)})),b);if(!w)return{operator:m,selectorPath:normalizeFilterPath(r)};var W=r.slice(0,w.index).trim(),A=r.slice(w.index+w.operator.length).trim(),E=g;\"!=\"===w.operator?E=S:\"<\"===w.operator?E=k:\"<=\"===w.operator?E=x:\">\"===w.operator?E=y:\">=\"===w.operator?E=P:\"*=\"===w.operator?E=d:(\"=~\"===w.operator||\"=\"===w.operator&&/^\\/.*\\/[a-z]*$/i.test(A))&&(E=$);var O,j,F=A.trim(),L=F===o||F.startsWith(o+l)||F.startsWith(o+f),M=F===v||F.startsWith(v+l)||F.startsWith(v+f);return L||M?{comparisonSelectorPath:normalizeFilterPath(F),operator:E,resolveComparisonAgainstRoot:L,selectorPath:normalizeFilterPath(W)}:{comparisonValue:(O=A,j=O.trim(),\"true\"===j||\"false\"!==j&&(\"null\"===j?null:/^-?\\d+(?:\\.\\d+)?$/.test(j)?Number(j):/^\\/.*\\/[a-z]*$/i.test(j)?toRegExp(j):stripQuotes(j))),operator:E,selectorPath:normalizeFilterPath(W)}}function parseBracketStep(e,r){if(\"*\"===e)return{mode:\"wildcard\",recursive:r};if(e.startsWith(\"?\"))return{filter:parseFilterExpression(e.slice(1)),mode:\"filter\",recursive:r};if(/^\\(@\\.length(?:-\\d+)?\\)$/.test(e)){var t=e.match(/^\\(@\\.length(?:-(\\d+))?\\)$/);return{mode:\"computed-index\",recursive:r,subtractLength:t&&t[1]?Number(t[1]):0}}var a=function(e){var r=[],t=p;return walkTopLevelChars(e,(function(a,n){n&&\":\"===e[a]?(r.push(t.trim()),t=p):t+=e[a]})),r.push(t.trim()),r}(e);if(a.length>1){var n=a[0]===p?void 0:Number(a[0]);return{mode:\"slice\",recursive:r,slice:{end:a[1]===p?void 0:Number(a[1]),start:n,step:a.length>2&&a[2]!==p?Number(a[2]):1}}}var i=function(e){var t=[],a=p;return walkTopLevelChars(e,(function(n,i){i&&\",\"===e[n]?(t.push(a.trim()),a=p):a+=e[n]})),a!==p&&t.push(a.trim()),t}(e);return i.every((function(e){return/^-?\\d+$/.test(e)}))?{indexes:i.map((function(e){return Number(e)})),mode:\"index\",recursive:r}:{mode:\"property\",properties:i.map((function(e){return r=e.trim(),/^\\/.*\\/[a-z]*$/i.test(r)?toRegExp(r):stripQuotes(r);var r})),recursive:r}}function parseJsonPathSelector(e){var r=[],t=0;for(e.startsWith(o)&&(t=1);t<e.length;){var a=!1;if(e.startsWith(u,t)?(a=!0,t+=2):e[t]===l&&(t+=1),t>=e.length)break;if(e[t]!==f)if(\"*\"!==e[t]){for(var n=t;n<e.length&&e[n]!==l&&e[n]!==f;)n+=1;var i=e.slice(t,n).trim();i&&r.push({mode:\"property\",properties:[i],recursive:a}),t=n}else r.push({mode:\"wildcard\",recursive:a}),t+=1;else{var s=findClosingBracket(e,t);if(-1===s)throw new Error(`Invalid JSONPath expression: ${e}`);var p=e.slice(t+1,s).trim();r.push(parseBracketStep(p,a)),t=s+1}}return{steps:r}}function buildAppendUpdater(e,r,t){var a,n=e.trim();if(n.startsWith(\"{\")||n.startsWith(f))a=r(n);else{var i=t(n);if(!i||i.shouldReplaceArgument)throw new Error(`Invalid append value: ${e}`);a=i.constantValue}return function(e){return Array.isArray(e)?Array.isArray(a)?e.concat(a):e.concat([a]):isPlainObject(e)&&isPlainObject(a)?Object.assign({},e,a):\"string\"==typeof e&&\"string\"==typeof a?`${e}${a}`:a}}function buildSetUpdater(e,r,t){var a=e.trim();if(a.startsWith(\"replace(\")&&a.endsWith(h))return function(e,r){var t=r(e.slice(8,-1));if(\"string\"!=typeof t.regex||\"string\"!=typeof t.replacement)throw new Error('Invalid replace payload: \"regex\" and \"replacement\" must be strings');var a=t.regex.startsWith(\"/\")?toRegExp(t.regex):new RegExp(t.regex,t.flags||p);return function(e){return\"string\"!=typeof e?e:e.replace(a,t.replacement)}}(a,r);var n=t(a);if(!n)throw new Error(`Invalid set value: ${e}`);return function(e){return getJsonSetValue(e,n)}}function getChildCandidates(e){if(!isObjectLike(e.value))return[];for(var r=Object.keys(e.value),t=[],a=0;a<r.length;a+=1){var n=r[a];t.push(createCandidate(e.value[n],e.value,n,appendPath(e.path,n)))}return t}function getRecursiveCandidates(e){for(var r=[e],t=getChildCandidates(e),a=0;a<t.length;a+=1)r.push(t[a]);for(var n=1;n<r.length;){for(var i=getChildCandidates(r[n]),s=0;s<i.length;s+=1)r.push(i[s]);n+=1}return r}function resolveIndex(e,r){return r<0?e+r:r}function applyDirectStep(e,r){var t=[];if(\"property\"===r.mode){if(!isObjectLike(e.value)||!r.properties)return t;for(var a=new Set,n=0;n<r.properties.length;n+=1){var i=r.properties[n];if(i instanceof RegExp)for(var s=Object.keys(e.value),o=0;o<s.length;o+=1){var l=s[o];i.lastIndex=0,i.test(l)&&!a.has(l)&&(a.add(l),t.push(createCandidate(e.value[l],e.value,l,appendPath(e.path,l))))}else!a.has(i)&&Object.prototype.hasOwnProperty.call(e.value,i)&&(a.add(i),t.push(createCandidate(e.value[i],e.value,i,appendPath(e.path,i))))}return t}if(\"wildcard\"===r.mode)return getChildCandidates(e);if(\"index\"===r.mode){if(!Array.isArray(e.value)||!r.indexes)return t;for(var u=0;u<r.indexes.length;u+=1){var p=resolveIndex(e.value.length,r.indexes[u]);p>=0&&p<e.value.length&&t.push(createCandidate(e.value[p],e.value,p,appendPath(e.path,p)))}return t}if(\"computed-index\"===r.mode){if(!Array.isArray(e.value))return t;var c=e.value.length-(r.subtractLength||0);return c>=0&&c<e.value.length&&t.push(createCandidate(e.value[c],e.value,c,appendPath(e.path,c))),t}if(\"slice\"===r.mode){if(!Array.isArray(e.value)||!r.slice)return t;for(var h=function(e,r){var t,a,n=[],i=void 0===r.step?1:r.step;if(0===i)return n;if(t=void 0===r.start?i>0?0:e-1:resolveIndex(e,r.start),a=void 0===r.end?i>0?e:-1:resolveIndex(e,r.end),i>0){for(var s=Math.max(0,t);s<Math.min(e,a);s+=i)n.push(s);return n}for(var o=Math.min(e-1,t);o>Math.max(-1,a);o+=i)n.push(o);return n}(e.value.length,r.slice),f=0;f<h.length;f+=1){var v=h[f];t.push(createCandidate(e.value[v],e.value,v,appendPath(e.path,v)))}}return t}function evaluateSelector(e,t){function matchesFilterValue(e,t){if(\"conditions\"in t)return\"and\"===t.operator?t.conditions.every((function(r){return matchesFilterValue(e,r)})):t.conditions.some((function(r){return matchesFilterValue(e,r)}));if(\"condition\"in t)return!matchesFilterValue(e,t.condition);var a=evaluateSelector(e,parseJsonPathSelector(t.selectorPath));if(t.operator===m)return a.length>0;var n=t.comparisonValue;if(t.comparisonSelectorPath){var i=evaluateSelector(t.resolveComparisonAgainstRoot?r:e,parseJsonPathSelector(t.comparisonSelectorPath));if(0===i.length)return!1;n=i[0].value}for(var s=0;s<a.length;s+=1){var o=a[s].value;if(t.operator!==d){if(t.operator!==$){if(t.operator===g&&o===n)return!0;if(t.operator===S&&o!==n)return!0;if(t.operator===k&&o<n)return!0;if(t.operator===x&&o<=n)return!0;if(t.operator===y&&o>n)return!0;if(t.operator===P&&o>=n)return!0}else if(\"string\"==typeof o&&n instanceof RegExp&&(n.lastIndex=0,n.test(o)))return!0}else if(\"string\"==typeof o&&o.includes(String(n)))return!0}return!1}function applyFilterStep(e,r){for(var t=[],a=0;a<e.length;a+=1){var n=e[a];if(Array.isArray(n.value))for(var i=0;i<n.value.length;i+=1)matchesFilterValue(n.value[i],r)&&t.push(createCandidate(n.value[i],n.value,i,appendPath(n.path,i)));else matchesFilterValue(n.value,r)&&t.push(n)}return t}for(var a=[createCandidate(e,null,null,o)],n=0;n<t.steps.length;n+=1){var i=t.steps[n];if(\"filter\"===i.mode&&i.filter)a=applyFilterStep(a,i.filter);else{for(var s=[],l=0;l<a.length;l+=1)for(var u=a[l],p=i.recursive?getRecursiveCandidates(u):[u],c=0;c<p.length;c+=1)for(var h=applyDirectStep(p[c],i),f=0;f<h.length;f+=1)s.push(h[f]);a=s}}return a}var w=!1;function markMutated(){w=!0}if(!isObjectLike(r))return r;var W,A=(W=a)&&W.nativeParse?W.nativeParse:JSON.parse,E=function(e){return e&&e.nativeStringify?e.nativeStringify:JSON.stringify}(a),O=(new Error).stack||\"\";if(i&&!matchStackTrace(i,O))return r;if(!t)return logMessage(e,`${window.location.hostname}\\n${E(r,null,2)}\\nStack trace:\\n${O}`,!0),logMessage(e,r,!0,!1),r;try{for(var j=function(e,r,t){var n,i=function(e){var r=-1,t=\"remove\",a=0;return walkTopLevelChars(e,(function(n,i){return!!i&&(e.startsWith(\"+=\",n)?(r=n,t=\"append\",a=2,!0):\"=\"===e[n]&&(r=n,t=\"set\",a=1,!0))})),-1===r?{mode:\"remove\",selectorPart:e.trim(),valuePart:p}:{mode:t,selectorPart:e.slice(0,r).trim(),valuePart:e.slice(r+a).trim()}}(e),s=function(e){for(var r=[],t=e.trim();t.startsWith(\"[?\");){var a=findClosingBracket(t,0);if(-1===a)break;var n=t.slice(1,a);r.push(parseFilterExpression(n.slice(1))),t=t.slice(a+1).trim()}return{guards:r,selectorPart:t}}(i.selectorPart),c=parseJsonPathSelector((n=s.selectorPart.trim())===p?o:n.startsWith(o)?n:n.startsWith(l)||n.startsWith(f)||n.startsWith(u)?`${o}${n}`:`${o}${l}${n}`),h={mode:i.mode};return\"append\"===i.mode?h={mode:\"append\",updater:buildAppendUpdater(i.valuePart,r,t)}:\"set\"===i.mode&&(h={mode:\"set\",updater:buildSetUpdater(i.valuePart,r,t)}),{guards:s.guards,mutation:h,selector:c}}(t,A,(function(r){return parseJsonSetArgumentValue(e,r,A)})),F=0;F<j.guards.length;F+=1)if(0===evaluateSelector(r,{steps:[{filter:j.guards[F],mode:\"filter\",recursive:!1}]}).length)return r;var L=evaluateSelector(r,j.selector);if(s)return L.length>0&&n&&n(),r;if(!(\"remove\"===j.mutation.mode||\"string\"==typeof e.name&&e.name.startsWith(\"trusted-\")))return logMessage(e,\"JSONPath set and append operations are allowed only in trusted scriptlets\"),r;if(\"remove\"===j.mutation.mode)return function(e){for(var r=new Set,t=new Map,a=0;a<e.length;a+=1){var n=e[a];if(null!==n.parent&&null!==n.key&&!r.has(n.path))if(r.add(n.path),Array.isArray(n.parent)){var i=t.get(n.parent)||[];i.push(Number(n.key)),t.set(n.parent,i)}else delete n.parent[n.key],markMutated()}t.forEach((function(e,r){for(var t=Array.from(new Set(e)).sort((function(e,r){return r-e})),a=0;a<t.length;a+=1){var n=t[a];n>=0&&n<r.length&&(r.splice(n,1),markMutated())}}))}(L),w&&n&&n(),r;j.mutation.updater&&(r=function(e,r,t){for(var a=new Set,n=e,i=0;i<r.length;i+=1){var s=r[i];a.has(s.path)||(a.add(s.path),null!==s.parent||null!==s.key||s.path!==o?null!==s.parent&&null!==s.key&&(s.parent[s.key]=t(s.parent[s.key]),markMutated()):(n=t(n),markMutated()))}return n}(r,L,j.mutation.updater),w&&n&&n())}catch(r){logMessage(e,`JSONPath processing failed for expression '${t}': ${r.message}`)}return r}function resolveJsonSyntaxMode(t,r){var e=\"legacy\",o=\"jsonpath\",s=\"string\"==typeof r?r.trim().toLowerCase():\"\";if(s===e||s===o)return{mode:s};var n=\"string\"==typeof t?t.trim():\"\";return n.startsWith(\"$\")||n.startsWith(\"[?\")?{mode:o}:{mode:e}}const updatedArgs=args?[].concat(source).concat(args):[source];try{(function(source,methodPath,propsPath,argumentValue,requiredInitialProps){var jsonSource=arguments.length>5&&void 0!==arguments[5]?arguments[5]:\"result\",stack=arguments.length>6&&void 0!==arguments[6]?arguments[6]:\"\",isLogOnlyMode=!propsPath,shouldLogVerboseContent=\"true\"===(arguments.length>8&&void 0!==arguments[8]?arguments[8]:\"\")&&!isLogOnlyMode,syntaxModeDetails=isLogOnlyMode?{mode:\"legacy\"}:resolveJsonSyntaxMode(propsPath,arguments.length>7&&void 0!==arguments[7]?arguments[7]:\"\"),jsonPathExpression=isLogOnlyMode||\"jsonpath\"!==syntaxModeDetails.mode?\"\":function(e,i){var r=e.trim();if(\"\"===r)return r;for(var f=0,l=0,s=0,n=null,t=0;t<r.length;t+=1){var o=r[t];if(n){if(o===n){for(var u=0,a=t-1;a>=0&&\"\\\\\"===r[a];)u+=1,a-=1;u%2==0&&(n=null)}}else if(\"'\"!==o&&'\"'!==o)if(\"[\"!==o)if(\"]\"!==o)if(\"{\"!==o)if(\"}\"!==o)if(\"(\"!==o)if(\")\"!==o){if(0===f&&0===l&&0===s&&(r.startsWith(\"+=\",t)||\"=\"===o))return r}else s-=1;else s+=1;else l-=1;else l+=1;else f-=1;else f+=1;else n=o}return\"$remove$\"===i?r:void 0===i?\"\":`${r}=${String(i)}`}(propsPath,argumentValue);if(methodPath&&(isLogOnlyMode||\"legacy\"!==syntaxModeDetails.mode||void 0!==argumentValue))if(isLogOnlyMode||\"jsonpath\"!==syntaxModeDetails.mode||\"\"!==jsonPathExpression){var parsedArgumentValue,isStructuredCloneSupported=\"function\"==typeof structuredClone,nativeObjects={nativeStringify:window.JSON.stringify,nativeParse:window.JSON.parse},createClonedObjectLogMessage=function(label,value){if(isStructuredCloneSupported)try{return[label,structuredClone(value)]}catch(error){try{return[label,nativeObjects.nativeParse(nativeObjects.nativeStringify(value))]}catch(_unused){return[`Could not clone content of ${methodPath} (original and modified objects are the same): ${error.message}\\n`,value]}}try{return[label,nativeObjects.nativeParse(nativeObjects.nativeStringify(value))]}catch(_unused2){return[`Structured cloning is not supported (original and modified objects are the same) for ${label}\\n`,value]}},createContentLabel=function(kind){var details=\"\";return propsPath?details=` (propsPath: ${propsPath}, argumentValue: ${argumentValue})`:isLogOnlyMode&&requiredInitialProps&&(details=` (requiredInitialProps: ${requiredInitialProps})`),`${arguments.length>1&&void 0!==arguments[1]&&arguments[1]?\"Modified\":\"Original\"} content ${kind} of ${methodPath}${details}:\\n`},logStringContent=function(content,stackTrace){var logEntry=[createContentLabel(\"string\",arguments.length>2&&void 0!==arguments[2]&&arguments[2]),window.location.hostname,content,\"Stack trace:\",stackTrace].join(\"\\n\");logMessage(source,logEntry,!0)},logOriginalStructuredContent=function(value,stackTrace){logStringContent(nativeObjects.nativeStringify(value,null,2),stackTrace),function(label,value){var message=createClonedObjectLogMessage(label,value);logMessage(source,message,!0,!1)}(createContentLabel(\"object\"),value)},logModifiedStructuredContent=function(value,stackTrace){logStringContent(nativeObjects.nativeStringify(value,null,2),stackTrace,!0);var message=[createContentLabel(\"object\",!0),value];logMessage(source,message,!0,!1)},captureOriginalStructuredContent=function(value){return{objectLogMessage:createClonedObjectLogMessage(createContentLabel(\"object\"),value),stringContent:nativeObjects.nativeStringify(value,null,2)}},logCapturedOriginalStructuredContent=function(snapshot,stackTrace){logStringContent(snapshot.stringContent,stackTrace),logMessage(source,snapshot.objectLogMessage,!0,!1)},JSON_SOURCES_ARG=\"arg\",JSON_SOURCES_ARGS=\"args\",JSON_SOURCES_THIS=\"this\",JSON_SOURCES_RESULT=\"result\",JSON_SOURCES_ALL=\"all\";if(!isLogOnlyMode&&\"legacy\"===syntaxModeDetails.mode){var parsedLegacyArgumentValue=parseJsonSetArgumentValue(source,argumentValue,nativeObjects.nativeParse);if(!parsedLegacyArgumentValue)return;parsedArgumentValue=parsedLegacyArgumentValue}var getPathParts=getPropertyInChain,{base:base,chain:chain,prop:prop}=getPathParts(window,methodPath);if(void 0===chain){var nativeMethod=base[prop];if(nativeMethod&&\"function\"==typeof nativeMethod){var setPathObj=(\"legacy\"===syntaxModeDetails.mode?getPrunePath(propsPath):[])[0],requiredPaths=isLogOnlyMode||\"legacy\"!==syntaxModeDetails.mode?[]:getPrunePath(requiredInitialProps),logOnlyRequiredInitialPropsSyntax=isLogOnlyMode?resolveJsonSyntaxMode(requiredInitialProps,void 0):{mode:\"legacy\"},logOnlyRequiredPaths=isLogOnlyMode&&\"legacy\"===logOnlyRequiredInitialPropsSyntax.mode?getPrunePath(requiredInitialProps):[],normalizedJsonSource=\"argument\"===jsonSource?JSON_SOURCES_ARG:\"arguments\"===jsonSource?JSON_SOURCES_ARGS:\"thisArg\"===jsonSource?JSON_SOURCES_THIS:/^arg:(\\d+\\|)*\\d+$/.test(jsonSource.trim())?jsonSource.trim():jsonSource!==JSON_SOURCES_ARG&&jsonSource!==JSON_SOURCES_ARGS&&jsonSource!==JSON_SOURCES_THIS&&jsonSource!==JSON_SOURCES_RESULT&&jsonSource!==JSON_SOURCES_ALL?JSON_SOURCES_RESULT:jsonSource,logOnlyJsonPathFilter=isLogOnlyMode&&\"jsonpath\"===logOnlyRequiredInitialPropsSyntax.mode?requiredInitialProps:\"\",logOnlyMatchPattern=isLogOnlyMode?logOnlyRequiredPaths.map((function(obj){return obj.path})).join(\"\"):\"\",getValueToSet=function(currentValue){return void 0===parsedArgumentValue?currentValue:getJsonSetValue(currentValue,parsedArgumentValue)},applyJsonMutation=function(jsonValue){var changed=!1;if(\"jsonpath\"===syntaxModeDetails.mode){var _value=jsonPath(source,jsonValue,jsonPathExpression,nativeObjects,(function(){changed=!0,hit(source)}),stack);return{changed:changed,value:_value}}var value=function(e,n,t,r,o,a,i,s,l){var{nativeStringify:c}=s,notifyMutation=function(){hit(e),l&&l()};if(!t)return logMessage(e,`${window.location.hostname}\\n${c(n,null,2)}\\nStack trace:\\n${(new Error).stack}`,!0),n&&\"object\"==typeof n&&logMessage(e,n,!0,!1),n;try{if(!1===function(n,t,r,e,a,i){if(!t)return!1;var o,{nativeStringify:u}=i,c=r.map((function(n){return n.path})),f=e.map((function(n){return n.path}));if(0===c.length&&f.length>0){var g=u(t);if(toRegExp(f.join(\"\")).test(g))return logMessage(n,`${window.location.hostname}\\n${u(t,null,2)}\\nStack trace:\\n${(new Error).stack}`,!0),t&&\"object\"==typeof t&&logMessage(n,t,!0,!1),o=!1}if(a&&!matchStackTrace(a,(new Error).stack||\"\"))return o=!1;for(var s,l=[\".*.\",\"*.\",\".*\",\".[].\",\"[].\",\".[]\"],_loop=function(){var n=f[p],r=n.split(\".\").pop(),e=l.some((function(t){return n.includes(t)})),a=getWildcardPropertyInChain(t,n,e);if(!a.length)return{v:o=!1};o=!e;for(var i=0;i<a.length;i+=1){var u=\"string\"==typeof r&&void 0!==a[i].base[r];o=e?u||o:u&&o}},p=0;p<f.length;p+=1)if(s=_loop())return s.v;return o}(e,n,[{path:t}],a,i,s))return n;var g=[\".*.\",\"*.\",\".*\",\".[].\",\"[].\",\".[]\"].some((function(e){return t.includes(e)})),f=getWildcardPropertyInChain(n,t,g,[],r);if(f.length>0)for(var u=0;u<f.length;u+=1){var v=f[u];v&&v.base&&(v.base[v.prop]=o(v.base[v.prop]),notifyMutation())}else if(!g&&void 0===r){for(var h=t.split(\".\"),p=n,d=0;d<h.length-1;d+=1){var b=h[d];void 0!==p[b]&&null!==p[b]&&\"object\"==typeof p[b]||(p[b]={}),p=p[b]}var y=h[h.length-1];p[y]=o(p[y]),notifyMutation()}}catch(n){logMessage(e,n)}return n}(source,jsonValue,(null==setPathObj?void 0:setPathObj.path)||\"\",null==setPathObj?void 0:setPathObj.value,getValueToSet,requiredPaths,stack,nativeObjects,(function(){changed=!0}));return{changed:changed,value:value}},shouldLogOriginalContent=function(content,jsonValue){return logOnlyJsonPathFilter?null!=jsonValue&&\"object\"==typeof jsonValue&&function(n,t,o,r){if(!o)return!0;var a=!1;return jsonPath(n,t,o,r,(function(){a=!0}),arguments.length>4&&void 0!==arguments[4]?arguments[4]:\"\",!0),a}(source,jsonValue,logOnlyJsonPathFilter,nativeObjects):!logOnlyMatchPattern||toRegExp(logOnlyMatchPattern).test(content)},modifyJsonValue=function(jsonValue,errorMessage){var currentStackTrace=(new Error).stack||\"\";if(isLogOnlyMode){if(!stack||matchStackTrace(stack,currentStackTrace))try{!function(jsonValue,stackTrace){if(null===jsonValue||\"object\"!=typeof jsonValue){if(\"string\"==typeof jsonValue){try{var parsedValue=nativeObjects.nativeParse(jsonValue);if(null!==parsedValue&&\"object\"==typeof parsedValue){var _serializedContent=nativeObjects.nativeStringify(parsedValue);if(!shouldLogOriginalContent(_serializedContent,parsedValue))return;return void logOriginalStructuredContent(parsedValue,stackTrace)}}catch(_unused3){}if(!shouldLogOriginalContent(jsonValue))return;logStringContent(jsonValue,stackTrace)}}else{var serializedContent=nativeObjects.nativeStringify(jsonValue);if(!shouldLogOriginalContent(serializedContent,jsonValue))return;logOriginalStructuredContent(jsonValue,stackTrace)}}(jsonValue,currentStackTrace)}catch(error){logMessage(source,`${errorMessage}: ${error.message}`)}return jsonValue}if(null!==jsonValue&&\"object\"==typeof jsonValue)try{var originalSnapshot=shouldLogVerboseContent?captureOriginalStructuredContent(jsonValue):null,mutationResult=applyJsonMutation(jsonValue);return shouldLogVerboseContent&&mutationResult.changed&&originalSnapshot&&(logCapturedOriginalStructuredContent(originalSnapshot,currentStackTrace),logModifiedStructuredContent(mutationResult.value,currentStackTrace)),mutationResult.value}catch(error){return logMessage(source,`${errorMessage}: ${error.message}`),jsonValue}if(\"string\"==typeof jsonValue){var messageError=\"\";try{var parsedValue=nativeObjects.nativeParse(jsonValue);if(null!==parsedValue&&\"object\"==typeof parsedValue){var _originalSnapshot=shouldLogVerboseContent?captureOriginalStructuredContent(parsedValue):null,_mutationResult=applyJsonMutation(parsedValue);return shouldLogVerboseContent&&_mutationResult.changed&&_originalSnapshot&&(logCapturedOriginalStructuredContent(_originalSnapshot,currentStackTrace),logModifiedStructuredContent(_mutationResult.value,currentStackTrace)),nativeObjects.nativeStringify(_mutationResult.value)}}catch(error){messageError=error instanceof Error?error.message:String(error)}try{var changed=!1,lineEditResult=function(n,i){for(var e=arguments.length>2&&void 0!==arguments[2]?arguments[2]:\"\",t=e.includes(\"\\r\\n\")?\"\\r\\n\":\"\\n\",r=e.split(/\\r?\\n/),s=[],a=i.nativeParse||JSON.parse,o=i.nativeStringify||JSON.stringify,v=!1,h=0;h<r.length;h+=1){var l=r[h],u=void 0;try{u=a(l)}catch(n){}if(\"object\"==typeof u&&null!==u){v=!0;var f=o(u),p=n(u);if(void 0!==p){var c=o(p);c!==f?s.push(c):s.push(l)}else s.push(l)}else s.push(l)}return{hasJsonLines:v,text:s.join(t)}}((function(parsedLine){var mutationResult=applyJsonMutation(parsedLine);return mutationResult.changed&&(changed=!0),mutationResult.value}),nativeObjects,jsonValue);return lineEditResult.hasJsonLines?(shouldLogVerboseContent&&changed&&(logStringContent(jsonValue,currentStackTrace),logStringContent(lineEditResult.text,currentStackTrace,!0)),lineEditResult.text):(lineEditResult.hasJsonLines||logMessage(source,`Error parsing JSON string: ${messageError}`),jsonValue)}catch(error){return logMessage(source,`${errorMessage}: ${error.message}`),jsonValue}}return jsonValue},isMatchingSuspended=!1,objectHandler={apply:function(target,thisArg,args){try{if(isMatchingSuspended)return isMatchingSuspended=!1,Reflect.apply(target,thisArg,args);isMatchingSuspended=!0;for(var selectedArgumentIndexes=function(argsLength){if(normalizedJsonSource===JSON_SOURCES_ARG)return argsLength>0?[0]:[];if(normalizedJsonSource.startsWith(\"arg:\")){for(var rawIndexes=normalizedJsonSource.slice(4).split(\"|\"),indexes=[],i=0;i<rawIndexes.length;i+=1){var parsedIndex=parseFloat(rawIndexes[i]);if(!nativeIsNaN(parsedIndex)){var index=parsedIndex;index<0||index>=argsLength||indexes.includes(index)||indexes.push(index)}}return indexes}return[]}(args.length),i=0;i<selectedArgumentIndexes.length;i+=1){var index=selectedArgumentIndexes[i];args[index]=modifyJsonValue(args[index],`Error during setting the argument at index ${index}`)}if(normalizedJsonSource===JSON_SOURCES_ARGS||normalizedJsonSource===JSON_SOURCES_ALL)for(var _i=0;_i<args.length;_i+=1)args[_i]=modifyJsonValue(args[_i],`Error during setting the argument at index ${_i}`);var modifiedThisArg=thisArg;normalizedJsonSource!==JSON_SOURCES_THIS&&normalizedJsonSource!==JSON_SOURCES_ALL||(modifiedThisArg=modifyJsonValue(thisArg,\"Error during setting the thisArg value\"));var result=Reflect.apply(target,modifiedThisArg,args);return normalizedJsonSource!==JSON_SOURCES_RESULT&&normalizedJsonSource!==JSON_SOURCES_ALL||(result=modifyJsonValue(result,\"Error during setting the result value\")),isMatchingSuspended=!1,result}catch(error){return isMatchingSuspended=!1,logMessage(source,`Unexpected error during JSON modification: ${error.message}`),Reflect.apply(target,thisArg,args)}},get:function(target,propName,receiver){return\"toString\"===propName?target.toString.bind(target):Reflect.get(target,propName,receiver)}};base[prop]=new Proxy(nativeMethod,objectHandler)}else logMessage(source,`Could not retrieve the method: ${methodPath}`)}else logMessage(source,`Could not reach the end of the prop chain: ${methodPath}`)}else logMessage(source,\"JSONPath mode requires argumentValue unless propsPath already contains an inline mutation\")}).apply(this,updatedArgs),source.uniqueId&&Object.defineProperty(Window.prototype.toString,uniqueIdentifier,{value:\"done\",enumerable:!1,writable:!1,configurable:!1})}catch(e){console.log(e)}}"
        },
        {
            "names": [
                "trusted-json-set-xhr-response"
            ],
            "scriptlet": "function trustedJsonSetXhrResponse(source,args){const uniqueIdentifier=source.uniqueId+source.name+\"_\"+(Array.isArray(args)?args.join(\"_\"):\"\");if(source.uniqueId&&\"done\"===Window.prototype.toString[uniqueIdentifier])return;function logMessage(e,o){var r=arguments.length>2&&void 0!==arguments[2]&&arguments[2],a=!(arguments.length>3&&void 0!==arguments[3])||arguments[3],{name:n,verbose:g}=e;if(r||g){var i=console.log;a?i(`${n}: ${o}`):Array.isArray(o)?i(`${n}:`,...o):i(`${n}:`,o)}}function getPrunePath(t){var r=\".[=].\";if(\"string\"==typeof t&&void 0!==t&&\"\"!==t){var e=function(t){for(var e=[],n=\"\",i=0,a=!1,s=!1;i<t.length;){var u=t[i];if(a)n+=u,\"\\\\\"===u?s=!s:(\"/\"!==u||s||(a=!1),s=!1),i+=1;else{if(\" \"===u||\"\\n\"===u||\"\\t\"===u||\"\\r\"===u||\"\\f\"===u||\"\\v\"===u){for(;i<t.length&&/\\s/.test(t[i]);)i+=1;\"\"!==n&&(e.push(n),n=\"\");continue}if(t.startsWith(r,i)){if(n+=r,\"/\"===t[i+=5]){a=!0,s=!1,n+=\"/\",i+=1;continue}continue}n+=u,i+=1}}return\"\"!==n&&e.push(n),e}(t);return e.map((function(t){var e=t.split(r),n=e[0],i=e[1];return void 0!==i?(\"true\"===i?i=!0:\"false\"===i?i=!1:i.startsWith(\"/\")?i=toRegExp(i):\"string\"==typeof i&&/^\\d+$/.test(i)&&(i=parseFloat(i)),{path:n,value:i}):{path:n}}))}return[]}function getXhrData(r,t,a,e,n){return{method:r,url:t,async:a,user:e,password:n}}function matchStackTrace(e,t){if(!e||\"\"===e)return!0;var r=function(){try{for(var r=[],e=1;e<10;e+=1){var a=`$${e}`;if(!RegExp[a])break;r.push(RegExp[a])}return r}catch(r){return[]}}();if(function(t,i){var r=\"inlineScript\",n=\"injectedScript\",isInlineScript=function(t){return t.includes(r)},isInjectedScript=function(t){return t.includes(n)};if(!isInlineScript(t)&&!isInjectedScript(t))return!1;var e=window.location.href,s=e.indexOf(\"#\");-1!==s&&(e=e.slice(0,s));var c=i.split(\"\\n\").slice(2).map((function(t){return t.trim()})).map((function(t){var i,s=/(.*?@)?(\\S+)(:\\d+)(:\\d+)\\)?$/.exec(t);if(s){var c,l,a=s[2],u=s[3],o=s[4];if(null!==(c=a)&&void 0!==c&&c.startsWith(\"(\")&&(a=a.slice(1)),null!==(l=a)&&void 0!==l&&l.startsWith(\"<anonymous>\")){var d;a=n;var f=void 0!==s[1]?s[1].slice(0,-1):t.slice(0,s.index).trim();null!==(d=f)&&void 0!==d&&d.startsWith(\"at\")&&(f=f.slice(2).trim()),i=`${f} ${a}${u}${o}`.trim()}else i=a===e?`${r}${u}${o}`.trim():`${a}${u}${o}`.trim()}else i=t;return i}));if(c)for(var l=0;l<c.length;l+=1){if(isInlineScript(t)&&c[l].startsWith(r)&&c[l].match(toRegExp(t)))return!0;if(isInjectedScript(t)&&c[l].startsWith(n)&&c[l].match(toRegExp(t)))return!0}return!1}(e,t))return r.length&&r[0]!==RegExp.$1&&restoreRegExpValues(r),!0;var n=toRegExp(e),a=t.split(\"\\n\").slice(2).map((function(e){return e.trim()})).join(\"\\n\");return r.length&&r[0]!==RegExp.$1&&restoreRegExpValues(r),function(){var t=Object.getOwnPropertyDescriptor(RegExp.prototype,\"test\"),e=null==t?void 0:t.value;if(t&&\"function\"==typeof t.value)return e;throw new Error(\"RegExp.prototype.test is not a function\")}().call(n,a)}function getWildcardPropertyInChain(r,e){var a=arguments.length>2&&void 0!==arguments[2]&&arguments[2],i=arguments.length>3&&void 0!==arguments[3]?arguments[3]:[],t=arguments.length>4?arguments[4]:void 0,o=e.indexOf(\".\");if(-1===o){if(\"*\"===e||\"[]\"===e){for(var n in r)if(Object.prototype.hasOwnProperty.call(r,n))if(void 0!==t){var s=r[n];\"string\"==typeof s&&t instanceof RegExp?t.test(s)&&i.push({base:r,prop:n}):s===t&&i.push({base:r,prop:n})}else i.push({base:r,prop:n})}else if(void 0!==t){var p=r[e];\"string\"==typeof p&&t instanceof RegExp?t.test(p)&&i.push({base:r,prop:e}):r[e]===t&&i.push({base:r,prop:e})}else i.push({base:r,prop:e});return i}var c=e.slice(0,o);if(\"[]\"===c&&Array.isArray(r)||\"*\"===c&&r instanceof Object||\"[-]\"===c&&Array.isArray(r)||\"{-}\"===c&&r instanceof Object){var f=e.slice(o+1),y=Object.keys(r);if(\"{-}\"===c||\"[-]\"===c){var h=Array.isArray(r)?\"array\":\"object\";return(\"{-}\"!==c||\"object\"!==h)&&(\"[-]\"!==c||\"array\"!==h)||y.forEach((function(e){(function(t,r,e){var n=r.split(\".\"),_check=function(t,r){if(null==t)return!1;if(0===r.length)return void 0===e||(\"string\"==typeof t&&e instanceof RegExp?e.test(t):t===e);var n=r[0],i=r.slice(1);if(\"*\"===n||\"[]\"===n){if(Array.isArray(t))return t.some((function(t){return _check(t,i)}));if(\"object\"==typeof t&&null!==t)return Object.keys(t).some((function(r){return _check(t[r],i)}))}return!!Object.prototype.hasOwnProperty.call(t,n)&&_check(t[n],i)};return _check(t,n)})(r[e],f,t)&&i.push({base:r,prop:e})})),i}y.forEach((function(e){getWildcardPropertyInChain(r[e],f,a,i,t)}))}Array.isArray(r)&&r.forEach((function(r){void 0!==r&&getWildcardPropertyInChain(r,e,a,i,t)}));var d=r[c];return e=e.slice(o+1),void 0!==d&&getWildcardPropertyInChain(d,e,a,i,t),i}function restoreRegExpValues(e){if(e.length)try{var r;r=1===e.length?`(${e[0]})`:e.reduce((function(e,r,t){return 1===t?`(${e}),(${r})`:`${e},(${r})`}));var t=new RegExp(r);e.toString().replace(t,\"\")}catch(e){var n=`Failed to restore RegExp values: ${e}`;console.log(n)}}function noopCallbackFunc(){return noopFunc}function noopFunc(){}function trueFunc(){return!0}function falseFunc(){return!1}function throwFunc(){throw new Error}function noopPromiseReject(){return Promise.reject()}function noopPromiseResolve(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:\"{}\",t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:\"\",s=arguments.length>2&&void 0!==arguments[2]?arguments[2]:\"basic\";if(\"undefined\"!=typeof Response){var n=new Response(e,{headers:{\"Content-Length\":`${e.length}`},status:200,statusText:\"OK\"});return\"opaque\"===s?Object.defineProperties(n,{body:{value:null},status:{value:0},ok:{value:!1},statusText:{value:\"\"},url:{value:\"\"},type:{value:s}}):Object.defineProperties(n,{url:{value:t},type:{value:s}}),Promise.resolve(n)}}function getJsonSetValue(e,t){return t.shouldReplaceArgument?\"string\"==typeof e?e.replace(t.replaceRegexValue,t.constantValue):e:!t.shouldMergeJsonValue||null===e||\"object\"!=typeof e||Array.isArray(e)||null===t.constantValue||\"object\"!=typeof t.constantValue||Array.isArray(t.constantValue)?t.constantValue:Object.assign({},e,t.constantValue)}function hit(e){if(e.verbose){try{var n=console.trace.bind(console),i=\"[AdGuard] \";\"corelibs\"===e.engine?i+=e.ruleText:(e.domainName&&(i+=`${e.domainName}`),e.args?i+=`#%#//scriptlet('${e.name}', '${e.args.join(\"', '\")}')`:i+=`#%#//scriptlet('${e.name}')`),n&&n(i)}catch(e){}\"function\"==typeof window.__debug&&window.__debug(e)}}function parseJsonSetArgumentValue(e,l,n){var s,N,a=\"json:\",t=\"\",o=!1,u=!1;if(l.startsWith(\"replace:\")){var i=function(e){if(e){var r=e.slice(8),t=\"\";if(r.endsWith(\"/g\")&&(r=r.slice(0,-1),t=\"g\"),r.startsWith(\"/\")&&r.endsWith(\"/\")){for(var i=r.slice(1,-1),a=-1,c=0;c<i.length;c+=1)if(\"/\"===i[c]){for(var f=!1,n=c-1;n>=0&&\"\\\\\"===i[n];)f=!f,n-=1;if(!f){a=c;break}}if(-1!==a){var s=`/${i.slice(0,a)}/${t}`,l=i.slice(a+1);if(s&&\"//\"!==s){var g;try{g=toRegExp(s)}catch(e){return}if(g)return{regexPart:g,replacementPart:l}}}}}}(l);if(!i)return logMessage(e,`Invalid argument value format: ${l}`),null;t=i.regexPart,s=i.replacementPart,o=!0}else if(l.startsWith(a))try{s=n(l.slice(5)),u=!0}catch(n){return logMessage(e,`Invalid JSON argument value: ${l}`),null}else{if(\"undefined\"===l)s=void 0;else if(\"false\"===l)s=!1;else if(\"true\"===l)s=!0;else if(\"null\"===l)s=null;else if(\"NaN\"===l)s=NaN;else if(\"emptyArr\"===l||\"[]\"===l)s=[];else if(\"emptyObj\"===l||\"{}\"===l)s={};else if(\"noopFunc\"===l)s=noopFunc;else if(\"noopCallbackFunc\"===l)s=noopCallbackFunc;else if(\"trueFunc\"===l)s=trueFunc;else if(\"falseFunc\"===l)s=falseFunc;else if(\"throwFunc\"===l)s=throwFunc;else if(\"noopPromiseResolve\"===l)s=noopPromiseResolve;else if(\"noopPromiseReject\"===l)s=noopPromiseReject;else if(/^-?\\d+$/.test(l)){if(s=parseFloat(l),N=s,(Number.isNaN||window.isNaN)(N))return null}else s=l}return{constantValue:s,replaceRegexValue:t,shouldReplaceArgument:o,shouldMergeJsonValue:u}}function toRegExp(e){var r=e||\"\",t=\"/\";if(\"\"===r)return new RegExp(\".?\");var n,i,s=r.lastIndexOf(t),a=r.substring(s+1),g=r.substring(0,s+1),u=(i=a,(n=g).startsWith(t)&&n.endsWith(t)&&!n.endsWith(\"\\\\/\")&&function(e){if(!e)return!1;try{return new RegExp(\"\",e),!0}catch(e){return!1}}(i)?i:\"\");if(r.startsWith(t)&&r.endsWith(t)||u)return new RegExp((u?g:r).slice(1,-1),u);var c=r.replace(/\\\\'/g,\"'\").replace(/\\\\\"/g,'\"').replace(/[.*+?^${}()|[\\]\\\\]/g,\"\\\\$&\");return new RegExp(c)}const updatedArgs=args?[].concat(source).concat(args):[source];try{(function(source,propsPath,argumentValue){var requiredInitialProps=arguments.length>3&&void 0!==arguments[3]?arguments[3]:\"\",propsToMatch=arguments.length>4&&void 0!==arguments[4]?arguments[4]:\"\",stack=arguments.length>5&&void 0!==arguments[5]?arguments[5]:\"\",verbose=arguments.length>7&&void 0!==arguments[7]?arguments[7]:\"\",syntaxModeDetails=function(t,r){var e=\"legacy\",o=\"jsonpath\",s=\"string\"==typeof r?r.trim().toLowerCase():\"\";if(s===e||s===o)return{mode:s};var n=\"string\"==typeof t?t.trim():\"\";return n.startsWith(\"$\")||n.startsWith(\"[?\")?{mode:o}:{mode:e}}(propsPath,arguments.length>6&&void 0!==arguments[6]?arguments[6]:\"\"),jsonPathExpression=\"jsonpath\"===syntaxModeDetails.mode?function(e,i){var r=e.trim();if(\"\"===r)return r;for(var f=0,l=0,s=0,n=null,t=0;t<r.length;t+=1){var o=r[t];if(n){if(o===n){for(var u=0,a=t-1;a>=0&&\"\\\\\"===r[a];)u+=1,a-=1;u%2==0&&(n=null)}}else if(\"'\"!==o&&'\"'!==o)if(\"[\"!==o)if(\"]\"!==o)if(\"{\"!==o)if(\"}\"!==o)if(\"(\"!==o)if(\")\"!==o){if(0===f&&0===l&&0===s&&(r.startsWith(\"+=\",t)||\"=\"===o))return r}else s-=1;else s+=1;else l-=1;else l+=1;else f-=1;else f+=1;else n=o}return\"$remove$\"===i?r:void 0===i?\"\":`${r}=${String(i)}`}(propsPath,argumentValue):\"\";if(propsPath&&\"undefined\"!=typeof Proxy&&(\"legacy\"!==syntaxModeDetails.mode||void 0!==argumentValue))if(\"jsonpath\"!==syntaxModeDetails.mode||\"\"!==jsonPathExpression){var shouldLogContent=\"true\"===verbose,parsedArgumentValue=\"legacy\"===syntaxModeDetails.mode?parseJsonSetArgumentValue(source,argumentValue,window.JSON.parse):null;if(\"legacy\"!==syntaxModeDetails.mode||parsedArgumentValue){var setPathObj=(\"legacy\"===syntaxModeDetails.mode?getPrunePath(propsPath):[])[0],requiredPaths=\"legacy\"===syntaxModeDetails.mode?getPrunePath(requiredInitialProps):[],nativeObjects={nativeParse:window.JSON.parse,nativeStringify:window.JSON.stringify},nativeOpen=window.XMLHttpRequest.prototype.open,nativeSend=window.XMLHttpRequest.prototype.send,matchedXhrRequests=new Map,xhrRequestHeaders=new Map,getValueToSet=function(currentValue){return parsedArgumentValue?getJsonSetValue(currentValue,parsedArgumentValue):currentValue},applyJsonMutation=function(jsonValue){return\"jsonpath\"===syntaxModeDetails.mode?function(e,r,t,a,n){var i=arguments.length>5&&void 0!==arguments[5]?arguments[5]:\"\",s=arguments.length>6&&void 0!==arguments[6]&&arguments[6],o=\"$\",l=\".\",u=\"..\",p=\"\",c=\"\\\\\",h=\")\",f=\"[\",v=\"@\",d=\"contains\",g=\"equal\",m=\"exists\",y=\"greater_than\",P=\"greater_than_or_equal\",k=\"less_than\",x=\"less_than_or_equal\",S=\"not_equal\",$=\"regex\",C=[\"==\",\"!=\",\"<=\",\">=\",\"*=\",\"=~\",\"<\",\">\",\"=\"],b=/^[A-Za-z_$][\\w$]*$/;function isObjectLike(e){return null!==e&&\"object\"==typeof e}function isPlainObject(e){if(!isObjectLike(e)||Array.isArray(e))return!1;var r=Object.getPrototypeOf(e);return r===Object.prototype||null===r}function isQuoteCharacter(e){return\"'\"===e||'\"'===e}function isEscaped(e,r){for(var t=0,a=r-1;a>=0&&e[a]===c;)t+=1,a-=1;return t%2!=0}function stripQuotes(e){var r=e.trim();if(r.length<2)return r;var t=r[0],a=r[r.length-1];return isQuoteCharacter(t)&&t===a?r.slice(1,-1).split(\"\\\\'\").join(\"'\").split('\\\\\"').join('\"').split(c+c).join(c):r}function appendPath(e,r){return\"number\"==typeof r||/^\\d+$/.test(String(r))?`${e}[${r}]`:b.test(String(r))?`${e}.${r}`:`${e}['${String(r).replace(/'/g,\"\\\\'\")}']`}function createCandidate(e,r,t,a){return{key:t,parent:r,path:a,value:e}}function walkTopLevelChars(e,r){for(var t=0,a=0,n=0,i=null,s=0;s<e.length;s+=1){var o=e[s];if(i){if(o!==i||isEscaped(e,s)||(i=null),r(s,!1))return}else if(isQuoteCharacter(o)){if(i=o,r(s,!1))return}else{var l=!0;if(o===f?t+=1:\"]\"===o?t-=1:\"{\"===o?a+=1:\"}\"===o?a-=1:\"(\"===o?n+=1:o===h?n-=1:l=!1,r(s,!l&&0===t&&0===a&&0===n))return}}}function findClosingBracket(e,r){for(var t=0,a=null,n=r;n<e.length;n+=1){var i=e[n];if(a)i!==a||isEscaped(e,n)||(a=null);else if(isQuoteCharacter(i))a=i;else if(i!==f){if(\"]\"===i&&0==(t-=1))return n}else t+=1}return-1}function splitByTopLevelToken(e,r){var t=[],a=p,n=new Set;return walkTopLevelChars(e,(function(i,s){if(!n.has(i))if(s&&e.startsWith(r,i)){t.push(a.trim()),a=p;for(var o=1;o<r.length;o+=1)n.add(i+o)}else a+=e[i]})),a!==p&&t.push(a.trim()),t}function normalizeFilterPath(e){var r=e.trim();return r.startsWith(v)&&(r=r.slice(1)),r===p?o:r.startsWith(o)?r:r.startsWith(l)||r.startsWith(u)||r.startsWith(f)?`${o}${r}`:`${o}${l}${r}`}function parseFilterExpression(e){var r=e.trim();if(r.startsWith(\"(\")&&r.endsWith(h)){for(var t=0,a=null,n=!1,i=0;i<r.length;i+=1){var s=r[i];if(a)s!==a||isEscaped(r,i)||(a=null);else if(isQuoteCharacter(s))a=s;else if(\"(\"===s)t+=1;else if(s===h&&0==(t-=1)){n=i===r.length-1;break}}n&&(r=r.slice(1,-1).trim())}var u=splitByTopLevelToken(r,\"||\");if(u.length>1)return{conditions:u.map((function(e){return parseFilterExpression(e)})),operator:\"or\"};var p=splitByTopLevelToken(r,\"&&\");if(p.length>1)return{conditions:p.map((function(e){return parseFilterExpression(e)})),operator:\"and\"};if(r.startsWith(\"!\")&&!r.startsWith(\"!=\"))return{condition:parseFilterExpression(r.slice(1).trim()),operator:\"not\"};var c,b,w=(b=null,walkTopLevelChars(c=r,(function(e,r){if(!r)return!1;for(var t=null,a=0;a<C.length;a+=1){var n=C[a];c.startsWith(n,e)&&(null===t||n.length>t.length)&&(t=n)}return null!==t&&(b={index:e,operator:t},!0)})),b);if(!w)return{operator:m,selectorPath:normalizeFilterPath(r)};var W=r.slice(0,w.index).trim(),A=r.slice(w.index+w.operator.length).trim(),E=g;\"!=\"===w.operator?E=S:\"<\"===w.operator?E=k:\"<=\"===w.operator?E=x:\">\"===w.operator?E=y:\">=\"===w.operator?E=P:\"*=\"===w.operator?E=d:(\"=~\"===w.operator||\"=\"===w.operator&&/^\\/.*\\/[a-z]*$/i.test(A))&&(E=$);var O,j,F=A.trim(),L=F===o||F.startsWith(o+l)||F.startsWith(o+f),M=F===v||F.startsWith(v+l)||F.startsWith(v+f);return L||M?{comparisonSelectorPath:normalizeFilterPath(F),operator:E,resolveComparisonAgainstRoot:L,selectorPath:normalizeFilterPath(W)}:{comparisonValue:(O=A,j=O.trim(),\"true\"===j||\"false\"!==j&&(\"null\"===j?null:/^-?\\d+(?:\\.\\d+)?$/.test(j)?Number(j):/^\\/.*\\/[a-z]*$/i.test(j)?toRegExp(j):stripQuotes(j))),operator:E,selectorPath:normalizeFilterPath(W)}}function parseBracketStep(e,r){if(\"*\"===e)return{mode:\"wildcard\",recursive:r};if(e.startsWith(\"?\"))return{filter:parseFilterExpression(e.slice(1)),mode:\"filter\",recursive:r};if(/^\\(@\\.length(?:-\\d+)?\\)$/.test(e)){var t=e.match(/^\\(@\\.length(?:-(\\d+))?\\)$/);return{mode:\"computed-index\",recursive:r,subtractLength:t&&t[1]?Number(t[1]):0}}var a=function(e){var r=[],t=p;return walkTopLevelChars(e,(function(a,n){n&&\":\"===e[a]?(r.push(t.trim()),t=p):t+=e[a]})),r.push(t.trim()),r}(e);if(a.length>1){var n=a[0]===p?void 0:Number(a[0]);return{mode:\"slice\",recursive:r,slice:{end:a[1]===p?void 0:Number(a[1]),start:n,step:a.length>2&&a[2]!==p?Number(a[2]):1}}}var i=function(e,r){var t=[],a=p;return walkTopLevelChars(e,(function(n,i){i&&e[n]===r?(t.push(a.trim()),a=p):a+=e[n]})),a!==p&&t.push(a.trim()),t}(e,\",\");return i.every((function(e){return/^-?\\d+$/.test(e)}))?{indexes:i.map((function(e){return Number(e)})),mode:\"index\",recursive:r}:{mode:\"property\",properties:i.map((function(e){return r=e.trim(),/^\\/.*\\/[a-z]*$/i.test(r)?toRegExp(r):stripQuotes(r);var r})),recursive:r}}function parseJsonPathSelector(e){var r=[],t=0;for(e.startsWith(o)&&(t=1);t<e.length;){var a=!1;if(e.startsWith(u,t)?(a=!0,t+=2):e[t]===l&&(t+=1),t>=e.length)break;if(e[t]!==f)if(\"*\"!==e[t]){for(var n=t;n<e.length&&e[n]!==l&&e[n]!==f;)n+=1;var i=e.slice(t,n).trim();i&&r.push({mode:\"property\",properties:[i],recursive:a}),t=n}else r.push({mode:\"wildcard\",recursive:a}),t+=1;else{var s=findClosingBracket(e,t);if(-1===s)throw new Error(`Invalid JSONPath expression: ${e}`);var p=e.slice(t+1,s).trim();r.push(parseBracketStep(p,a)),t=s+1}}return{steps:r}}function buildAppendUpdater(e,r,t){var a,n=e.trim();if(n.startsWith(\"{\")||n.startsWith(f))a=r(n);else{var i=t(n);if(!i||i.shouldReplaceArgument)throw new Error(`Invalid append value: ${e}`);a=i.constantValue}return function(e){return Array.isArray(e)?Array.isArray(a)?e.concat(a):e.concat([a]):isPlainObject(e)&&isPlainObject(a)?Object.assign({},e,a):\"string\"==typeof e&&\"string\"==typeof a?`${e}${a}`:a}}function buildSetUpdater(e,r,t){var a=e.trim();if(a.startsWith(\"replace(\")&&a.endsWith(h))return function(e,r){var t=r(e.slice(8,-1));if(\"string\"!=typeof t.regex||\"string\"!=typeof t.replacement)throw new Error('Invalid replace payload: \"regex\" and \"replacement\" must be strings');var a=t.regex.startsWith(\"/\")?toRegExp(t.regex):new RegExp(t.regex,t.flags||p);return function(e){return\"string\"!=typeof e?e:e.replace(a,t.replacement)}}(a,r);var n=t(a);if(!n)throw new Error(`Invalid set value: ${e}`);return function(e){return getJsonSetValue(e,n)}}function getChildCandidates(e){if(!isObjectLike(e.value))return[];for(var r=Object.keys(e.value),t=[],a=0;a<r.length;a+=1){var n=r[a];t.push(createCandidate(e.value[n],e.value,n,appendPath(e.path,n)))}return t}function getRecursiveCandidates(e){for(var r=[e],t=getChildCandidates(e),a=0;a<t.length;a+=1)r.push(t[a]);for(var n=1;n<r.length;){for(var i=getChildCandidates(r[n]),s=0;s<i.length;s+=1)r.push(i[s]);n+=1}return r}function resolveIndex(e,r){return r<0?e+r:r}function applyDirectStep(e,r){var t=[];if(\"property\"===r.mode){if(!isObjectLike(e.value)||!r.properties)return t;for(var a=new Set,n=0;n<r.properties.length;n+=1){var i=r.properties[n];if(i instanceof RegExp)for(var s=Object.keys(e.value),o=0;o<s.length;o+=1){var l=s[o];i.lastIndex=0,i.test(l)&&!a.has(l)&&(a.add(l),t.push(createCandidate(e.value[l],e.value,l,appendPath(e.path,l))))}else!a.has(i)&&Object.prototype.hasOwnProperty.call(e.value,i)&&(a.add(i),t.push(createCandidate(e.value[i],e.value,i,appendPath(e.path,i))))}return t}if(\"wildcard\"===r.mode)return getChildCandidates(e);if(\"index\"===r.mode){if(!Array.isArray(e.value)||!r.indexes)return t;for(var u=0;u<r.indexes.length;u+=1){var p=resolveIndex(e.value.length,r.indexes[u]);p>=0&&p<e.value.length&&t.push(createCandidate(e.value[p],e.value,p,appendPath(e.path,p)))}return t}if(\"computed-index\"===r.mode){if(!Array.isArray(e.value))return t;var c=e.value.length-(r.subtractLength||0);return c>=0&&c<e.value.length&&t.push(createCandidate(e.value[c],e.value,c,appendPath(e.path,c))),t}if(\"slice\"===r.mode){if(!Array.isArray(e.value)||!r.slice)return t;for(var h=function(e,r){var t,a,n=[],i=void 0===r.step?1:r.step;if(0===i)return n;if(t=void 0===r.start?i>0?0:e-1:resolveIndex(e,r.start),a=void 0===r.end?i>0?e:-1:resolveIndex(e,r.end),i>0){for(var s=Math.max(0,t);s<Math.min(e,a);s+=i)n.push(s);return n}for(var o=Math.min(e-1,t);o>Math.max(-1,a);o+=i)n.push(o);return n}(e.value.length,r.slice),f=0;f<h.length;f+=1){var v=h[f];t.push(createCandidate(e.value[v],e.value,v,appendPath(e.path,v)))}}return t}function evaluateSelector(e,t){function matchesFilterValue(e,t){if(\"conditions\"in t)return\"and\"===t.operator?t.conditions.every((function(r){return matchesFilterValue(e,r)})):t.conditions.some((function(r){return matchesFilterValue(e,r)}));if(\"condition\"in t)return!matchesFilterValue(e,t.condition);var a=evaluateSelector(e,parseJsonPathSelector(t.selectorPath));if(t.operator===m)return a.length>0;var n=t.comparisonValue;if(t.comparisonSelectorPath){var i=evaluateSelector(t.resolveComparisonAgainstRoot?r:e,parseJsonPathSelector(t.comparisonSelectorPath));if(0===i.length)return!1;n=i[0].value}for(var s=0;s<a.length;s+=1){var o=a[s].value;if(t.operator!==d){if(t.operator!==$){if(t.operator===g&&o===n)return!0;if(t.operator===S&&o!==n)return!0;if(t.operator===k&&o<n)return!0;if(t.operator===x&&o<=n)return!0;if(t.operator===y&&o>n)return!0;if(t.operator===P&&o>=n)return!0}else if(\"string\"==typeof o&&n instanceof RegExp&&(n.lastIndex=0,n.test(o)))return!0}else if(\"string\"==typeof o&&o.includes(String(n)))return!0}return!1}function applyFilterStep(e,r){for(var t=[],a=0;a<e.length;a+=1){var n=e[a];if(Array.isArray(n.value))for(var i=0;i<n.value.length;i+=1)matchesFilterValue(n.value[i],r)&&t.push(createCandidate(n.value[i],n.value,i,appendPath(n.path,i)));else matchesFilterValue(n.value,r)&&t.push(n)}return t}for(var a=[createCandidate(e,null,null,o)],n=0;n<t.steps.length;n+=1){var i=t.steps[n];if(\"filter\"===i.mode&&i.filter)a=applyFilterStep(a,i.filter);else{for(var s=[],l=0;l<a.length;l+=1)for(var u=a[l],p=i.recursive?getRecursiveCandidates(u):[u],c=0;c<p.length;c+=1)for(var h=applyDirectStep(p[c],i),f=0;f<h.length;f+=1)s.push(h[f]);a=s}}return a}var w=!1;function markMutated(){w=!0}if(!isObjectLike(r))return r;var W,A=(W=a)&&W.nativeParse?W.nativeParse:JSON.parse,E=function(e){return e&&e.nativeStringify?e.nativeStringify:JSON.stringify}(a),O=(new Error).stack||\"\";if(i&&!matchStackTrace(i,O))return r;if(!t)return logMessage(e,`${window.location.hostname}\\n${E(r,null,2)}\\nStack trace:\\n${O}`,!0),logMessage(e,r,!0,!1),r;try{for(var j=function(e,r,t){var n,i=function(e){var r=-1,t=\"remove\",a=0;return walkTopLevelChars(e,(function(n,i){return!!i&&(e.startsWith(\"+=\",n)?(r=n,t=\"append\",a=2,!0):\"=\"===e[n]&&(r=n,t=\"set\",a=1,!0))})),-1===r?{mode:\"remove\",selectorPart:e.trim(),valuePart:p}:{mode:t,selectorPart:e.slice(0,r).trim(),valuePart:e.slice(r+a).trim()}}(e),s=function(e){for(var r=[],t=e.trim();t.startsWith(\"[?\");){var a=findClosingBracket(t,0);if(-1===a)break;var n=t.slice(1,a);r.push(parseFilterExpression(n.slice(1))),t=t.slice(a+1).trim()}return{guards:r,selectorPart:t}}(i.selectorPart),c=parseJsonPathSelector((n=s.selectorPart.trim())===p?o:n.startsWith(o)?n:n.startsWith(l)||n.startsWith(f)||n.startsWith(u)?`${o}${n}`:`${o}${l}${n}`),h={mode:i.mode};return\"append\"===i.mode?h={mode:\"append\",updater:buildAppendUpdater(i.valuePart,r,t)}:\"set\"===i.mode&&(h={mode:\"set\",updater:buildSetUpdater(i.valuePart,r,t)}),{guards:s.guards,mutation:h,selector:c}}(t,A,(function(r){return parseJsonSetArgumentValue(e,r,A)})),F=0;F<j.guards.length;F+=1)if(0===evaluateSelector(r,{steps:[{filter:j.guards[F],mode:\"filter\",recursive:!1}]}).length)return r;var L=evaluateSelector(r,j.selector);if(s)return L.length>0&&n&&n(),r;if(!(\"remove\"===j.mutation.mode||\"string\"==typeof e.name&&e.name.startsWith(\"trusted-\")))return logMessage(e,\"JSONPath set and append operations are allowed only in trusted scriptlets\"),r;if(\"remove\"===j.mutation.mode)return function(e){for(var r=new Set,t=new Map,a=0;a<e.length;a+=1){var n=e[a];if(null!==n.parent&&null!==n.key&&!r.has(n.path))if(r.add(n.path),Array.isArray(n.parent)){var i=t.get(n.parent)||[];i.push(Number(n.key)),t.set(n.parent,i)}else delete n.parent[n.key],markMutated()}t.forEach((function(e,r){for(var t=Array.from(new Set(e)).sort((function(e,r){return r-e})),a=0;a<t.length;a+=1){var n=t[a];n>=0&&n<r.length&&(r.splice(n,1),markMutated())}}))}(L),w&&n&&n(),r;j.mutation.updater&&(r=function(e,r,t){for(var a=new Set,n=e,i=0;i<r.length;i+=1){var s=r[i];a.has(s.path)||(a.add(s.path),null!==s.parent||null!==s.key||s.path!==o?null!==s.parent&&null!==s.key&&(s.parent[s.key]=t(s.parent[s.key]),markMutated()):(n=t(n),markMutated()))}return n}(r,L,j.mutation.updater),w&&n&&n())}catch(r){logMessage(e,`JSONPath processing failed for expression '${t}': ${r.message}`)}return r}(source,jsonValue,jsonPathExpression,nativeObjects,(function(){return hit(source)}),\"\"):function(e,n,t,r,o,a,i,s,l){var{nativeStringify:c}=s,notifyMutation=function(){hit(e),l&&l()};if(!t)return logMessage(e,`${window.location.hostname}\\n${c(n,null,2)}\\nStack trace:\\n${(new Error).stack}`,!0),n&&\"object\"==typeof n&&logMessage(e,n,!0,!1),n;try{if(!1===function(n,t,r,e,a,i){if(!t)return!1;var o,{nativeStringify:u}=i,c=r.map((function(n){return n.path})),f=e.map((function(n){return n.path}));if(0===c.length&&f.length>0){var g=u(t);if(toRegExp(f.join(\"\")).test(g))return logMessage(n,`${window.location.hostname}\\n${u(t,null,2)}\\nStack trace:\\n${(new Error).stack}`,!0),t&&\"object\"==typeof t&&logMessage(n,t,!0,!1),o=!1}if(a&&!matchStackTrace(a,(new Error).stack||\"\"))return o=!1;for(var s,l=[\".*.\",\"*.\",\".*\",\".[].\",\"[].\",\".[]\"],_loop=function(){var n=f[p],r=n.split(\".\").pop(),e=l.some((function(t){return n.includes(t)})),a=getWildcardPropertyInChain(t,n,e);if(!a.length)return{v:o=!1};o=!e;for(var i=0;i<a.length;i+=1){var u=\"string\"==typeof r&&void 0!==a[i].base[r];o=e?u||o:u&&o}},p=0;p<f.length;p+=1)if(s=_loop())return s.v;return o}(e,n,[{path:t}],a,i,s))return n;var g=[\".*.\",\"*.\",\".*\",\".[].\",\"[].\",\".[]\"].some((function(e){return t.includes(e)})),f=getWildcardPropertyInChain(n,t,g,[],r);if(f.length>0)for(var u=0;u<f.length;u+=1){var v=f[u];v&&v.base&&(v.base[v.prop]=o(v.base[v.prop]),notifyMutation())}else if(!g&&void 0===r){for(var h=t.split(\".\"),p=n,d=0;d<h.length-1;d+=1){var b=h[d];void 0!==p[b]&&null!==p[b]&&\"object\"==typeof p[b]||(p[b]={}),p=p[b]}var y=h[h.length-1];p[y]=o(p[y]),notifyMutation()}}catch(n){logMessage(e,n)}return n}(source,jsonValue,(null==setPathObj?void 0:setPathObj.path)||\"\",null==setPathObj?void 0:setPathObj.value,getValueToSet,requiredPaths,\"\",nativeObjects)},setRequestHeaderHandler={apply:function(setRequestHeader,thisArgument,argsList){var headers=xhrRequestHeaders.get(thisArgument);return headers&&headers.push(argsList),Reflect.apply(setRequestHeader,thisArgument,argsList)}},openHandler={apply:function(target,thisArg,args){var xhrData=getXhrData.apply(null,args);return function(e,t,r){if(\"\"===t||\"*\"===t)return!0;var a,s=function(e){var r={};return e.split(\" \").forEach((function(e){var n=e.indexOf(\":\"),i=e.slice(0,n);if(function(e){return[\"url\",\"method\",\"headers\",\"body\",\"credentials\",\"cache\",\"redirect\",\"referrer\",\"referrerPolicy\",\"integrity\",\"keepalive\",\"signal\",\"mode\"].includes(e)}(i)){var s=e.slice(n+1);r[i]=s}else r.url=e})),r}(t);if(function(t){return Object.values(t).every((function(t){return function(e){var t,n=function(e){return e.replace(/[.*+?^${}()|[\\]\\\\]/g,\"\\\\$&\")}(e);\"/\"===e[0]&&\"/\"===e[e.length-1]&&(n=e.slice(1,-1));try{t=new RegExp(n),t=!0}catch(e){t=!1}return t}(t)}))}(s)){var n=function(t){var a={};return Object.keys(t).forEach((function(c){a[c]=toRegExp(t[c])})),a}(s);a=Object.keys(n).every((function(e){var t=n[e],a=r[e];return Object.prototype.hasOwnProperty.call(r,e)&&\"string\"==typeof a&&(null==t?void 0:t.test(a))}))}else logMessage(e,`Invalid parameter: ${t}`),a=!1;return a}(source,propsToMatch,xhrData)&&matchedXhrRequests.set(thisArg,xhrData),matchedXhrRequests.has(thisArg)&&!xhrRequestHeaders.has(thisArg)&&(xhrRequestHeaders.set(thisArg,[]),thisArg.setRequestHeader=new Proxy(thisArg.setRequestHeader,setRequestHeaderHandler)),Reflect.apply(target,thisArg,args)}},sendHandler={apply:function(target,thisArg,args){if(!matchedXhrRequests.has(thisArg))return Reflect.apply(target,thisArg,args);var stackTrace=(new Error).stack||\"\";if(stack&&!matchStackTrace(stack,stackTrace))return xhrRequestHeaders.delete(thisArg),matchedXhrRequests.delete(thisArg),Reflect.apply(target,thisArg,args);var xhrData=matchedXhrRequests.get(thisArg);if(!xhrData)return xhrRequestHeaders.delete(thisArg),matchedXhrRequests.delete(thisArg),Reflect.apply(target,thisArg,args);var forgedRequest=new XMLHttpRequest;forgedRequest.withCredentials=thisArg.withCredentials,forgedRequest.addEventListener(\"readystatechange\",(function(){if(4===forgedRequest.readyState){var{readyState:readyState,response:response,responseText:responseText,responseURL:responseURL,responseXML:responseXML,status:status,statusText:statusText}=forgedRequest,content=responseText||response;if(\"string\"==typeof content||\"object\"==typeof content){var modifiedContent=content;if(\"string\"==typeof content){var jsonContent,parseFailed=!1;try{jsonContent=nativeObjects.nativeParse(content)}catch(_unused){parseFailed=!0}if(parseFailed)try{var lineEditResult=function(n,i){for(var e=arguments.length>2&&void 0!==arguments[2]?arguments[2]:\"\",t=e.includes(\"\\r\\n\")?\"\\r\\n\":\"\\n\",r=e.split(/\\r?\\n/),s=[],a=i.nativeParse||JSON.parse,o=i.nativeStringify||JSON.stringify,v=!1,h=0;h<r.length;h+=1){var l=r[h],u=void 0;try{u=a(l)}catch(n){}if(\"object\"==typeof u&&null!==u){v=!0;var f=o(u),p=n(u);if(void 0!==p){var c=o(p);c!==f?s.push(c):s.push(l)}else s.push(l)}else s.push(l)}return{hasJsonLines:v,text:s.join(t)}}((function(parsedLine){return applyJsonMutation(parsedLine)}),nativeObjects,content);if(lineEditResult.hasJsonLines){modifiedContent=lineEditResult.text,shouldLogContent&&(logMessage(source,`Original content:\\n${window.location.hostname}\\n${content}\\nStack trace:\\n${stackTrace}`,!0),logMessage(source,`Modified content:\\n${window.location.hostname}\\n${modifiedContent}\\nStack trace:\\n${stackTrace}`,!0));try{var{responseType:responseType}=thisArg;switch(responseType){case\"arraybuffer\":modifiedContent=(new TextEncoder).encode(modifiedContent).buffer;break;case\"blob\":modifiedContent=new Blob([modifiedContent])}}catch(_unused2){modifiedContent=content}}else logMessage(source,`Response body cannot be converted to json: '${content}'`),modifiedContent=content}catch(_unused3){logMessage(source,`Response body cannot be converted to json: '${content}'`),modifiedContent=content}else{shouldLogContent&&(logMessage(source,`Original content:\\n${window.location.hostname}\\n${nativeObjects.nativeStringify(jsonContent,null,2)}\\nStack trace:\\n${stackTrace}`,!0),logMessage(source,jsonContent,!0,!1)),modifiedContent=applyJsonMutation(jsonContent),shouldLogContent&&(logMessage(source,`Modified content:\\n${window.location.hostname}\\n${nativeObjects.nativeStringify(modifiedContent,null,2)}\\nStack trace:\\n${stackTrace}`,!0),logMessage(source,modifiedContent,!0,!1));try{var{responseType:_responseType}=thisArg;switch(_responseType){case\"\":case\"text\":modifiedContent=nativeObjects.nativeStringify(modifiedContent);break;case\"arraybuffer\":modifiedContent=(new TextEncoder).encode(nativeObjects.nativeStringify(modifiedContent)).buffer;break;case\"blob\":modifiedContent=new Blob([nativeObjects.nativeStringify(modifiedContent)])}}catch(_unused4){modifiedContent=content}}}else null!==content&&(modifiedContent=applyJsonMutation(content));Object.defineProperties(thisArg,{readyState:{value:readyState,writable:!1},responseURL:{value:responseURL,writable:!1},responseXML:{value:responseXML,writable:!1},status:{value:status,writable:!1},statusText:{value:statusText,writable:!1},response:{value:modifiedContent,writable:!1},responseText:{value:modifiedContent,writable:!1}}),setTimeout((function(){var stateEvent=new Event(\"readystatechange\");thisArg.dispatchEvent(stateEvent);var loadEvent=new Event(\"load\");thisArg.dispatchEvent(loadEvent);var loadEndEvent=new Event(\"loadend\");thisArg.dispatchEvent(loadEndEvent)}),1)}}})),nativeOpen.apply(forgedRequest,[xhrData.method,xhrData.url,Boolean(xhrData.async)]),(xhrRequestHeaders.get(thisArg)||[]).forEach((function(header){forgedRequest.setRequestHeader(header[0],header[1])})),xhrRequestHeaders.delete(thisArg),matchedXhrRequests.delete(thisArg);try{Reflect.apply(nativeSend,forgedRequest,args)}catch(_unused5){return Reflect.apply(target,thisArg,args)}}};XMLHttpRequest.prototype.open=new Proxy(XMLHttpRequest.prototype.open,openHandler),XMLHttpRequest.prototype.send=new Proxy(XMLHttpRequest.prototype.send,sendHandler)}}else logMessage(source,\"JSONPath mode requires argumentValue unless propsPath already contains an inline mutation\")}).apply(this,updatedArgs),source.uniqueId&&Object.defineProperty(Window.prototype.toString,uniqueIdentifier,{value:\"done\",enumerable:!1,writable:!1,configurable:!1})}catch(e){console.log(e)}}"
        },
        {
            "names": [
                "trusted-prune-inbound-object"
            ],
            "scriptlet": "function trustedPruneInboundObject(source,args){const uniqueIdentifier=source.uniqueId+source.name+\"_\"+(Array.isArray(args)?args.join(\"_\"):\"\");if(source.uniqueId&&\"done\"===Window.prototype.toString[uniqueIdentifier])return;function hit(e){if(e.verbose){try{var n=console.trace.bind(console),i=\"[AdGuard] \";\"corelibs\"===e.engine?i+=e.ruleText:(e.domainName&&(i+=`${e.domainName}`),e.args?i+=`#%#//scriptlet('${e.name}', '${e.args.join(\"', '\")}')`:i+=`#%#//scriptlet('${e.name}')`),n&&n(i)}catch(e){}\"function\"==typeof window.__debug&&window.__debug(e)}}function getPropertyInChain(e,r){var n=r.indexOf(\".\");if(-1===n)return{base:e,prop:r};var i=r.slice(0,n);if(null===e)return{base:e,prop:i,chain:r};var t=e[i];return r=r.slice(n+1),(e instanceof Object||\"object\"==typeof e)&&function(t){return 0===Object.keys(t).length&&!t.prototype}(e)||null===t?{base:e,prop:i,chain:r}:void 0!==t?getPropertyInChain(t,r):(Object.defineProperty(e,i,{configurable:!0}),{base:e,prop:i,chain:r})}function getWildcardPropertyInChain(r,e){var a=arguments.length>2&&void 0!==arguments[2]&&arguments[2],i=arguments.length>3&&void 0!==arguments[3]?arguments[3]:[],t=arguments.length>4?arguments[4]:void 0,o=e.indexOf(\".\");if(-1===o){if(\"*\"===e||\"[]\"===e){for(var n in r)if(Object.prototype.hasOwnProperty.call(r,n))if(void 0!==t){var s=r[n];\"string\"==typeof s&&t instanceof RegExp?t.test(s)&&i.push({base:r,prop:n}):s===t&&i.push({base:r,prop:n})}else i.push({base:r,prop:n})}else if(void 0!==t){var p=r[e];\"string\"==typeof p&&t instanceof RegExp?t.test(p)&&i.push({base:r,prop:e}):r[e]===t&&i.push({base:r,prop:e})}else i.push({base:r,prop:e});return i}var c=e.slice(0,o);if(\"[]\"===c&&Array.isArray(r)||\"*\"===c&&r instanceof Object||\"[-]\"===c&&Array.isArray(r)||\"{-}\"===c&&r instanceof Object){var f=e.slice(o+1),y=Object.keys(r);if(\"{-}\"===c||\"[-]\"===c){var h=Array.isArray(r)?\"array\":\"object\";return(\"{-}\"!==c||\"object\"!==h)&&(\"[-]\"!==c||\"array\"!==h)||y.forEach((function(e){(function(t,r,e){var n=r.split(\".\"),_check=function(t,r){if(null==t)return!1;if(0===r.length)return void 0===e||(\"string\"==typeof t&&e instanceof RegExp?e.test(t):t===e);var n=r[0],i=r.slice(1);if(\"*\"===n||\"[]\"===n){if(Array.isArray(t))return t.some((function(t){return _check(t,i)}));if(\"object\"==typeof t&&null!==t)return Object.keys(t).some((function(r){return _check(t[r],i)}))}return!!Object.prototype.hasOwnProperty.call(t,n)&&_check(t[n],i)};return _check(t,n)})(r[e],f,t)&&i.push({base:r,prop:e})})),i}y.forEach((function(e){getWildcardPropertyInChain(r[e],f,a,i,t)}))}Array.isArray(r)&&r.forEach((function(r){void 0!==r&&getWildcardPropertyInChain(r,e,a,i,t)}));var d=r[c];return e=e.slice(o+1),void 0!==d&&getWildcardPropertyInChain(d,e,a,i,t),i}function logMessage(e,o){var r=arguments.length>2&&void 0!==arguments[2]&&arguments[2],a=!(arguments.length>3&&void 0!==arguments[3])||arguments[3],{name:n,verbose:g}=e;if(r||g){var i=console.log;a?i(`${n}: ${o}`):Array.isArray(o)?i(`${n}:`,...o):i(`${n}:`,o)}}function getPrunePath(t){var r=\".[=].\";if(\"string\"==typeof t&&void 0!==t&&\"\"!==t){var e=function(t){for(var e=[],n=\"\",i=0,a=!1,s=!1;i<t.length;){var u=t[i];if(a)n+=u,\"\\\\\"===u?s=!s:(\"/\"!==u||s||(a=!1),s=!1),i+=1;else{if(\" \"===u||\"\\n\"===u||\"\\t\"===u||\"\\r\"===u||\"\\f\"===u||\"\\v\"===u){for(;i<t.length&&/\\s/.test(t[i]);)i+=1;\"\"!==n&&(e.push(n),n=\"\");continue}if(t.startsWith(r,i)){if(n+=r,\"/\"===t[i+=5]){a=!0,s=!1,n+=\"/\",i+=1;continue}continue}n+=u,i+=1}}return\"\"!==n&&e.push(n),e}(t);return e.map((function(t){var e=t.split(r),n=e[0],i=e[1];return void 0!==i?(\"true\"===i?i=!0:\"false\"===i?i=!1:i.startsWith(\"/\")?i=toRegExp(i):\"string\"==typeof i&&/^\\d+$/.test(i)&&(i=parseFloat(i)),{path:n,value:i}):{path:n}}))}return[]}function toRegExp(e){var r=e||\"\",t=\"/\";if(\"\"===r)return new RegExp(\".?\");var n,i,s=r.lastIndexOf(t),a=r.substring(s+1),g=r.substring(0,s+1),u=(i=a,(n=g).startsWith(t)&&n.endsWith(t)&&!n.endsWith(\"\\\\/\")&&function(e){if(!e)return!1;try{return new RegExp(\"\",e),!0}catch(e){return!1}}(i)?i:\"\");if(r.startsWith(t)&&r.endsWith(t)||u)return new RegExp((u?g:r).slice(1,-1),u);var c=r.replace(/\\\\'/g,\"'\").replace(/\\\\\"/g,'\"').replace(/[.*+?^${}()|[\\]\\\\]/g,\"\\\\$&\");return new RegExp(c)}function restoreRegExpValues(e){if(e.length)try{var r;r=1===e.length?`(${e[0]})`:e.reduce((function(e,r,t){return 1===t?`(${e}),(${r})`:`${e},(${r})`}));var t=new RegExp(r);e.toString().replace(t,\"\")}catch(e){var n=`Failed to restore RegExp values: ${e}`;console.log(n)}}const updatedArgs=args?[].concat(source).concat(args):[source];try{(function(source,functionName,propsToRemove,requiredInitialProps){var stack=arguments.length>4&&void 0!==arguments[4]?arguments[4]:\"\";if(functionName){var nativeObjects={nativeStringify:window.JSON.stringify},{base:base,prop:prop}=getPropertyInChain(window,functionName);if(base&&prop&&\"function\"==typeof base[prop]){var prunePaths=getPrunePath(propsToRemove),requiredPaths=getPrunePath(requiredInitialProps),objectHandler={apply:function(target,thisArg,args){var data=args[0];return\"object\"==typeof data&&(data=function(e,r,n,a,t,i){var{nativeStringify:o}=i;if(0===n.length&&0===a.length)return logMessage(e,`${window.location.hostname}\\n${o(r,null,2)}\\nStack trace:\\n${(new Error).stack}`,!0),r&&\"object\"==typeof r&&logMessage(e,r,!0,!1),r;try{if(!1===function(n,t,r,e,a,i){if(!t)return!1;var o,{nativeStringify:u}=i,c=r.map((function(n){return n.path})),f=e.map((function(n){return n.path}));if(0===c.length&&f.length>0){var g=u(t);if(toRegExp(f.join(\"\")).test(g))return logMessage(n,`${window.location.hostname}\\n${u(t,null,2)}\\nStack trace:\\n${(new Error).stack}`,!0),t&&\"object\"==typeof t&&logMessage(n,t,!0,!1),o=!1}if(a&&!function(e,t){if(!e||\"\"===e)return!0;var r=function(){try{for(var r=[],e=1;e<10;e+=1){var a=`$${e}`;if(!RegExp[a])break;r.push(RegExp[a])}return r}catch(r){return[]}}();if(function(t,i){var r=\"inlineScript\",n=\"injectedScript\",isInlineScript=function(t){return t.includes(r)},isInjectedScript=function(t){return t.includes(n)};if(!isInlineScript(t)&&!isInjectedScript(t))return!1;var e=window.location.href,s=e.indexOf(\"#\");-1!==s&&(e=e.slice(0,s));var c=i.split(\"\\n\").slice(2).map((function(t){return t.trim()})).map((function(t){var i,s=/(.*?@)?(\\S+)(:\\d+)(:\\d+)\\)?$/.exec(t);if(s){var c,l,a=s[2],u=s[3],o=s[4];if(null!==(c=a)&&void 0!==c&&c.startsWith(\"(\")&&(a=a.slice(1)),null!==(l=a)&&void 0!==l&&l.startsWith(\"<anonymous>\")){var d;a=n;var f=void 0!==s[1]?s[1].slice(0,-1):t.slice(0,s.index).trim();null!==(d=f)&&void 0!==d&&d.startsWith(\"at\")&&(f=f.slice(2).trim()),i=`${f} ${a}${u}${o}`.trim()}else i=a===e?`${r}${u}${o}`.trim():`${a}${u}${o}`.trim()}else i=t;return i}));if(c)for(var l=0;l<c.length;l+=1){if(isInlineScript(t)&&c[l].startsWith(r)&&c[l].match(toRegExp(t)))return!0;if(isInjectedScript(t)&&c[l].startsWith(n)&&c[l].match(toRegExp(t)))return!0}return!1}(e,t))return r.length&&r[0]!==RegExp.$1&&restoreRegExpValues(r),!0;var n=toRegExp(e),a=t.split(\"\\n\").slice(2).map((function(e){return e.trim()})).join(\"\\n\");return r.length&&r[0]!==RegExp.$1&&restoreRegExpValues(r),function(){var t=Object.getOwnPropertyDescriptor(RegExp.prototype,\"test\"),e=null==t?void 0:t.value;if(t&&\"function\"==typeof t.value)return e;throw new Error(\"RegExp.prototype.test is not a function\")}().call(n,a)}(a,(new Error).stack||\"\"))return o=!1;for(var s,l=[\".*.\",\"*.\",\".*\",\".[].\",\"[].\",\".[]\"],_loop=function(){var n=f[p],r=n.split(\".\").pop(),e=l.some((function(t){return n.includes(t)})),a=getWildcardPropertyInChain(t,n,e);if(!a.length)return{v:o=!1};o=!e;for(var i=0;i<a.length;i+=1){var u=\"string\"==typeof r&&void 0!==a[i].base[r];o=e?u||o:u&&o}},p=0;p<f.length;p+=1)if(s=_loop())return s.v;return o}(e,r,n,a,t,i))return r;n.forEach((function(n){for(var a=n.path,t=n.value,i=getWildcardPropertyInChain(r,a,!0,[],t),o=i.length-1;o>=0;o-=1){var s=i[o];if(void 0!==s&&s.base)if(hit(e),Array.isArray(s.base))try{var l=Number(s.prop);if(Number.isNaN(l))continue;s.base.splice(l,1)}catch(e){console.error(\"Error while deleting array element\",e)}else delete s.base[s.prop]}}))}catch(r){logMessage(e,r)}return r}(source,data,prunePaths,requiredPaths,stack,nativeObjects),args[0]=data),Reflect.apply(target,thisArg,args)}};base[prop]=new Proxy(base[prop],objectHandler)}else logMessage(source,`${functionName} is not a function`)}}).apply(this,updatedArgs),source.uniqueId&&Object.defineProperty(Window.prototype.toString,uniqueIdentifier,{value:\"done\",enumerable:!1,writable:!1,configurable:!1})}catch(e){console.log(e)}}"
        },
        {
            "names": [
                "trusted-replace-argument"
            ],
            "scriptlet": "function trustedReplaceArgument(source,args){const uniqueIdentifier=source.uniqueId+source.name+\"_\"+(Array.isArray(args)?args.join(\"_\"):\"\");if(source.uniqueId&&\"done\"===Window.prototype.toString[uniqueIdentifier])return;function hit(e){if(e.verbose){try{var n=console.trace.bind(console),i=\"[AdGuard] \";\"corelibs\"===e.engine?i+=e.ruleText:(e.domainName&&(i+=`${e.domainName}`),e.args?i+=`#%#//scriptlet('${e.name}', '${e.args.join(\"', '\")}')`:i+=`#%#//scriptlet('${e.name}')`),n&&n(i)}catch(e){}\"function\"==typeof window.__debug&&window.__debug(e)}}function noopCallbackFunc(){return noopFunc}function noopFunc(){}function trueFunc(){return!0}function falseFunc(){return!1}function throwFunc(){throw new Error}function noopPromiseReject(){return Promise.reject()}function noopPromiseResolve(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:\"{}\",t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:\"\",s=arguments.length>2&&void 0!==arguments[2]?arguments[2]:\"basic\";if(\"undefined\"!=typeof Response){var n=new Response(e,{headers:{\"Content-Length\":`${e.length}`},status:200,statusText:\"OK\"});return\"opaque\"===s?Object.defineProperties(n,{body:{value:null},status:{value:0},ok:{value:!1},statusText:{value:\"\"},url:{value:\"\"},type:{value:s}}):Object.defineProperties(n,{url:{value:t},type:{value:s}}),Promise.resolve(n)}}function getPropertyInChain(e,r){var n=r.indexOf(\".\");if(-1===n)return{base:e,prop:r};var i=r.slice(0,n);if(null===e)return{base:e,prop:i,chain:r};var t=e[i];return r=r.slice(n+1),(e instanceof Object||\"object\"==typeof e)&&function(t){return 0===Object.keys(t).length&&!t.prototype}(e)||null===t?{base:e,prop:i,chain:r}:void 0!==t?getPropertyInChain(t,r):(Object.defineProperty(e,i,{configurable:!0}),{base:e,prop:i,chain:r})}function logMessage(e,o){var r=arguments.length>2&&void 0!==arguments[2]&&arguments[2],a=!(arguments.length>3&&void 0!==arguments[3])||arguments[3],{name:n,verbose:g}=e;if(r||g){var i=console.log;a?i(`${n}: ${o}`):Array.isArray(o)?i(`${n}:`,...o):i(`${n}:`,o)}}function toRegExp(e){var r=e||\"\",t=\"/\";if(\"\"===r)return new RegExp(\".?\");var n,i,s=r.lastIndexOf(t),a=r.substring(s+1),g=r.substring(0,s+1),u=(i=a,(n=g).startsWith(t)&&n.endsWith(t)&&!n.endsWith(\"\\\\/\")&&function(e){if(!e)return!1;try{return new RegExp(\"\",e),!0}catch(e){return!1}}(i)?i:\"\");if(r.startsWith(t)&&r.endsWith(t)||u)return new RegExp((u?g:r).slice(1,-1),u);var c=r.replace(/\\\\'/g,\"'\").replace(/\\\\\"/g,'\"').replace(/[.*+?^${}()|[\\]\\\\]/g,\"\\\\$&\");return new RegExp(c)}function restoreRegExpValues(e){if(e.length)try{var r;r=1===e.length?`(${e[0]})`:e.reduce((function(e,r,t){return 1===t?`(${e}),(${r})`:`${e},(${r})`}));var t=new RegExp(r);e.toString().replace(t,\"\")}catch(e){var n=`Failed to restore RegExp values: ${e}`;console.log(n)}}const updatedArgs=args?[].concat(source).concat(args):[source];try{(function(source,methodPath,argumentIndex,argumentValue,pattern){var stack=arguments.length>5&&void 0!==arguments[5]?arguments[5]:\"\",verbose=arguments.length>6&&void 0!==arguments[6]?arguments[6]:\"false\";if((methodPath&&argumentIndex&&argumentValue||\"false\"!==verbose)&&(methodPath||\"true\"!==verbose)){var constantValue,N,SHOULD_LOG_ONLY=!(\"true\"!==verbose||argumentIndex||argumentValue||pattern||stack),MARKERS_JSON=\"json:\",MARKERS_REPLACE=\"replace:\",replaceRegexValue=\"\",shouldReplaceArgument=!1;if(argumentValue.startsWith(MARKERS_REPLACE)){var replacementRegexPair=function(e){if(e){var r=e.slice(8),t=\"\";if(r.endsWith(\"/g\")&&(r=r.slice(0,-1),t=\"g\"),r.startsWith(\"/\")&&r.endsWith(\"/\")){for(var i=r.slice(1,-1),a=-1,c=0;c<i.length;c+=1)if(\"/\"===i[c]){for(var f=!1,n=c-1;n>=0&&\"\\\\\"===i[n];)f=!f,n-=1;if(!f){a=c;break}}if(-1!==a){var s=`/${i.slice(0,a)}/${t}`,l=i.slice(a+1);if(s&&\"//\"!==s){var g;try{g=toRegExp(s)}catch(e){return}if(g)return{regexPart:g,replacementPart:l}}}}}}(argumentValue);if(!replacementRegexPair)return void logMessage(source,`Invalid argument value format: ${argumentValue}`);replaceRegexValue=replacementRegexPair.regexPart,constantValue=replacementRegexPair.replacementPart,shouldReplaceArgument=!0}else if(argumentValue.startsWith(MARKERS_JSON))try{constantValue=JSON.parse(argumentValue.slice(MARKERS_JSON.length))}catch(error){return void logMessage(source,`Invalid JSON argument value: ${argumentValue}`)}else if(\"undefined\"===argumentValue)constantValue=void 0;else if(\"false\"===argumentValue)constantValue=!1;else if(\"true\"===argumentValue)constantValue=!0;else if(\"null\"===argumentValue)constantValue=null;else if(\"emptyArr\"===argumentValue)constantValue=[];else if(\"emptyObj\"===argumentValue)constantValue={};else if(\"noopFunc\"===argumentValue)constantValue=noopFunc;else if(\"noopCallbackFunc\"===argumentValue)constantValue=noopCallbackFunc;else if(\"trueFunc\"===argumentValue)constantValue=trueFunc;else if(\"falseFunc\"===argumentValue)constantValue=falseFunc;else if(\"throwFunc\"===argumentValue)constantValue=throwFunc;else if(\"noopPromiseResolve\"===argumentValue)constantValue=noopPromiseResolve;else if(\"noopPromiseReject\"===argumentValue)constantValue=noopPromiseReject;else if(/^-?\\d+$/.test(argumentValue)){if(N=constantValue=parseFloat(argumentValue),(Number.isNaN||window.isNaN)(N))return}else constantValue=argumentValue;var getPathParts=getPropertyInChain,{base:base,chain:chain,prop:prop}=getPathParts(window,methodPath);if(void 0===chain){var nativeMethod=base[prop];if(nativeMethod&&\"function\"==typeof nativeMethod){var stringifyObject=function(obj){return JSON.stringify(obj,(function(key,value){return\"function\"==typeof value?value.toString():value}))},createFormattedMessage=function(args){var when=arguments.length>1&&void 0!==arguments[1]?arguments[1]:\"original\",formattedArgs=args.map((function(arg,index){if(\"object\"==typeof arg&&null!==arg)try{return`${index}: ${stringifyObject(arg)} // Object converted to string`}catch(e){return`${index}: ${String(arg)} // Object conversion failed`}return`${index}: ${String(arg)}`}));return`${methodPath} ${\"modified\"===when?\"modified\":when} arguments:\\n${formattedArgs.join(\",\\n\")}`},checkArgument=function(arg){if(stack&&!function(e,t){if(!e||\"\"===e)return!0;var r=function(){try{for(var r=[],e=1;e<10;e+=1){var a=`$${e}`;if(!RegExp[a])break;r.push(RegExp[a])}return r}catch(r){return[]}}();if(function(t,i){var r=\"inlineScript\",n=\"injectedScript\",isInlineScript=function(t){return t.includes(r)},isInjectedScript=function(t){return t.includes(n)};if(!isInlineScript(t)&&!isInjectedScript(t))return!1;var e=window.location.href,s=e.indexOf(\"#\");-1!==s&&(e=e.slice(0,s));var c=i.split(\"\\n\").slice(2).map((function(t){return t.trim()})).map((function(t){var i,s=/(.*?@)?(\\S+)(:\\d+)(:\\d+)\\)?$/.exec(t);if(s){var c,l,a=s[2],u=s[3],o=s[4];if(null!==(c=a)&&void 0!==c&&c.startsWith(\"(\")&&(a=a.slice(1)),null!==(l=a)&&void 0!==l&&l.startsWith(\"<anonymous>\")){var d;a=n;var f=void 0!==s[1]?s[1].slice(0,-1):t.slice(0,s.index).trim();null!==(d=f)&&void 0!==d&&d.startsWith(\"at\")&&(f=f.slice(2).trim()),i=`${f} ${a}${u}${o}`.trim()}else i=a===e?`${r}${u}${o}`.trim():`${a}${u}${o}`.trim()}else i=t;return i}));if(c)for(var l=0;l<c.length;l+=1){if(isInlineScript(t)&&c[l].startsWith(r)&&c[l].match(toRegExp(t)))return!0;if(isInjectedScript(t)&&c[l].startsWith(n)&&c[l].match(toRegExp(t)))return!0}return!1}(e,t))return r.length&&r[0]!==RegExp.$1&&restoreRegExpValues(r),!0;var n=toRegExp(e),a=t.split(\"\\n\").slice(2).map((function(e){return e.trim()})).join(\"\\n\");return r.length&&r[0]!==RegExp.$1&&restoreRegExpValues(r),function(){var t=Object.getOwnPropertyDescriptor(RegExp.prototype,\"test\"),e=null==t?void 0:t.value;if(t&&\"function\"==typeof t.value)return e;throw new Error(\"RegExp.prototype.test is not a function\")}().call(n,a)}(stack,(new Error).stack||\"\"))return!1;if(pattern){if(\"object\"==typeof arg&&null!==arg)try{var argString=stringifyObject(arg);return!!argString&&toRegExp(pattern).test(argString)}catch(error){logMessage(source,`Failed to stringify argument: ${arg}\\nError: ${error}`)}var argumentContent=String(arg);return!!argumentContent&&toRegExp(pattern).test(argumentContent)}return!0},isMatchingSuspended=!1,objectHandler={apply:function(target,thisArg,argumentsList){if(isMatchingSuspended)return isMatchingSuspended=!1,Reflect.apply(target,thisArg,argumentsList);if(isMatchingSuspended=!0,\"true\"===verbose){var formattedMessage=createFormattedMessage(argumentsList);logMessage(source,formattedMessage)}if(SHOULD_LOG_ONLY)return isMatchingSuspended=!1,Reflect.apply(target,thisArg,argumentsList);var argumentToReplace=argumentsList[Number(argumentIndex)];if(!checkArgument(argumentToReplace))return isMatchingSuspended=!1,Reflect.apply(target,thisArg,argumentsList);if(argumentsList[Number(argumentIndex)]=\"string\"==typeof argumentToReplace&&shouldReplaceArgument?argumentToReplace.replace(replaceRegexValue,constantValue):constantValue,\"true\"===verbose){var _formattedMessage=createFormattedMessage(argumentsList,\"modified\");logMessage(source,_formattedMessage)}return hit(source),isMatchingSuspended=!1,Reflect.apply(target,thisArg,argumentsList)},construct:function(target,argumentsList,newTarget){if(isMatchingSuspended)return isMatchingSuspended=!1,Reflect.construct(target,argumentsList,newTarget);if(isMatchingSuspended=!0,\"true\"===verbose){var formattedMessage=createFormattedMessage(argumentsList);logMessage(source,formattedMessage)}if(SHOULD_LOG_ONLY)return isMatchingSuspended=!1,Reflect.construct(target,argumentsList,newTarget);var argumentToReplace=argumentsList[Number(argumentIndex)];if(!checkArgument(argumentToReplace))return isMatchingSuspended=!1,Reflect.construct(target,argumentsList,newTarget);if(argumentsList[Number(argumentIndex)]=\"string\"==typeof argumentToReplace&&shouldReplaceArgument?argumentToReplace.replace(replaceRegexValue,constantValue):constantValue,\"true\"===verbose){var _formattedMessage2=createFormattedMessage(argumentsList,\"modified\");logMessage(source,_formattedMessage2)}return hit(source),isMatchingSuspended=!1,Reflect.construct(target,argumentsList,newTarget)},get:function(target,propName,receiver){return\"toString\"===propName?target.toString.bind(target):Reflect.get(target,propName,receiver)}};base[prop]=new Proxy(nativeMethod,objectHandler)}else logMessage(source,`Could not retrieve the method: ${methodPath}`)}else logMessage(source,`Could not reach the end of the prop chain: ${methodPath}`)}}).apply(this,updatedArgs),source.uniqueId&&Object.defineProperty(Window.prototype.toString,uniqueIdentifier,{value:\"done\",enumerable:!1,writable:!1,configurable:!1})}catch(e){console.log(e)}}"
        },
        {
            "names": [
                "trusted-replace-fetch-response"
            ],
            "scriptlet": "function trustedReplaceFetchResponse(source,args){const uniqueIdentifier=source.uniqueId+source.name+\"_\"+(Array.isArray(args)?args.join(\"_\"):\"\");if(source.uniqueId&&\"done\"===Window.prototype.toString[uniqueIdentifier])return;function hit(e){if(e.verbose){try{var n=console.trace.bind(console),i=\"[AdGuard] \";\"corelibs\"===e.engine?i+=e.ruleText:(e.domainName&&(i+=`${e.domainName}`),e.args?i+=`#%#//scriptlet('${e.name}', '${e.args.join(\"', '\")}')`:i+=`#%#//scriptlet('${e.name}')`),n&&n(i)}catch(e){}\"function\"==typeof window.__debug&&window.__debug(e)}}function logMessage(e,o){var r=arguments.length>2&&void 0!==arguments[2]&&arguments[2],a=!(arguments.length>3&&void 0!==arguments[3])||arguments[3],{name:n,verbose:g}=e;if(r||g){var i=console.log;a?i(`${n}: ${o}`):Array.isArray(o)?i(`${n}:`,...o):i(`${n}:`,o)}}function objectToString(t){return t&&\"object\"==typeof t?function(t){return 0===Object.keys(t).length&&!t.prototype}(t)?\"{}\":Object.entries(t).map((function(t){var n=t[0],e=t[1],o=e;return e instanceof Object&&(o=`{ ${objectToString(e)} }`),`${n}:\"${o}\"`})).join(\" \"):String(t)}function toRegExp(e){var r=e||\"\",t=\"/\";if(\"\"===r)return new RegExp(\".?\");var n,i,s=r.lastIndexOf(t),a=r.substring(s+1),g=r.substring(0,s+1),u=(i=a,(n=g).startsWith(t)&&n.endsWith(t)&&!n.endsWith(\"\\\\/\")&&function(e){if(!e)return!1;try{return new RegExp(\"\",e),!0}catch(e){return!1}}(i)?i:\"\");if(r.startsWith(t)&&r.endsWith(t)||u)return new RegExp((u?g:r).slice(1,-1),u);var c=r.replace(/\\\\'/g,\"'\").replace(/\\\\\"/g,'\"').replace(/[.*+?^${}()|[\\]\\\\]/g,\"\\\\$&\");return new RegExp(c)}const updatedArgs=args?[].concat(source).concat(args):[source];try{(function(source){var pattern=arguments.length>1&&void 0!==arguments[1]?arguments[1]:\"\",replacement=arguments.length>2&&void 0!==arguments[2]?arguments[2]:\"\",propsToMatch=arguments.length>3&&void 0!==arguments[3]?arguments[3]:\"\";if(\"undefined\"!=typeof fetch&&\"undefined\"!=typeof Proxy&&\"undefined\"!=typeof Response)if(\"\"!==pattern||\"\"===replacement){var fetchData,shouldLog=\"\"===pattern&&\"\"===replacement,shouldLogContent=\"true\"===(arguments.length>4&&void 0!==arguments[4]&&arguments[4]),nativeRequestClone=Request.prototype.clone,nativeFetch=fetch,fetchHandler={apply:function(target,thisArg,args){return fetchData=function(e,t){var a,c,n={},r=e[0];if(r instanceof Request){var f=function(t){var e=[\"url\",\"method\",\"headers\",\"body\",\"credentials\",\"cache\",\"redirect\",\"referrer\",\"referrerPolicy\",\"integrity\",\"keepalive\",\"signal\",\"mode\"].map((function(e){return[e,t[e]]}));return Object.fromEntries(e)}(t.call(r));a=f.url,c=f}else a=r,c=e[1];return n.url=a,c instanceof Object&&Object.keys(c).forEach((function(e){n[e]=c[e]})),n}(args,nativeRequestClone),shouldLog?(logMessage(source,`fetch( ${objectToString(fetchData)} )`,!0),hit(source),Reflect.apply(target,thisArg,args)):function(e,t,r){if(\"\"===t||\"*\"===t)return!0;var a,s=function(e){var r={};return e.split(\" \").forEach((function(e){var n=e.indexOf(\":\"),i=e.slice(0,n);if(function(e){return[\"url\",\"method\",\"headers\",\"body\",\"credentials\",\"cache\",\"redirect\",\"referrer\",\"referrerPolicy\",\"integrity\",\"keepalive\",\"signal\",\"mode\"].includes(e)}(i)){var s=e.slice(n+1);r[i]=s}else r.url=e})),r}(t);if(function(t){return Object.values(t).every((function(t){return function(e){var t,n=function(e){return e.replace(/[.*+?^${}()|[\\]\\\\]/g,\"\\\\$&\")}(e);\"/\"===e[0]&&\"/\"===e[e.length-1]&&(n=e.slice(1,-1));try{t=new RegExp(n),t=!0}catch(e){t=!1}return t}(t)}))}(s)){var n=function(t){var a={};return Object.keys(t).forEach((function(c){a[c]=toRegExp(t[c])})),a}(s);a=Object.keys(n).every((function(e){var t=n[e],a=r[e];return Object.prototype.hasOwnProperty.call(r,e)&&\"string\"==typeof a&&(null==t?void 0:t.test(a))}))}else logMessage(e,`Invalid parameter: ${t}`),a=!1;return a}(source,propsToMatch,fetchData)?nativeFetch.apply(null,args).then((function(response){return response.clone().text().then((function(bodyText){var patternRegexp=\"*\"===pattern?/(\\n|.)*/:toRegExp(pattern);if(\"*\"!==pattern&&!patternRegexp.test(bodyText))return response;shouldLogContent&&logMessage(source,`Original text content: ${bodyText}`);var modifiedTextContent=bodyText.replace(patternRegexp,replacement);shouldLogContent&&logMessage(source,`Modified text content: ${modifiedTextContent}`);var forgedResponse=function(e,t){var{bodyUsed:s,headers:r,ok:u,redirected:a,status:d,statusText:o,type:l,url:n}=e,v=new Response(t,{status:d,statusText:o,headers:r});return Object.defineProperties(v,{url:{value:n},type:{value:l},ok:{value:u},bodyUsed:{value:s},redirected:{value:a}}),v}(response,modifiedTextContent);return hit(source),forgedResponse})).catch((function(){var fetchDataStr=objectToString(fetchData);return logMessage(source,`Response body can't be converted to text: ${fetchDataStr}`),response}))})).catch((function(){return Reflect.apply(target,thisArg,args)})):Reflect.apply(target,thisArg,args)}};fetch=new Proxy(fetch,fetchHandler)}else logMessage(source,\"Pattern argument should not be empty string\")}).apply(this,updatedArgs),source.uniqueId&&Object.defineProperty(Window.prototype.toString,uniqueIdentifier,{value:\"done\",enumerable:!1,writable:!1,configurable:!1})}catch(e){console.log(e)}}"
        },
        {
            "names": [
                "trusted-replace-node-text"
            ],
            "scriptlet": "function trustedReplaceNodeText(source,args){const uniqueIdentifier=source.uniqueId+source.name+\"_\"+(Array.isArray(args)?args.join(\"_\"):\"\");if(source.uniqueId&&\"done\"===Window.prototype.toString[uniqueIdentifier])return;function handleExistingNodes(e,n,o){(o?document.querySelectorAll(o):[document]).forEach((function(o){return function(o){if(\"#text\"===e){var r=nodeListToArray(o.childNodes).filter((function(e){return e.nodeType===Node.TEXT_NODE}));n(r)}else{var t=nodeListToArray(o.querySelectorAll(e));n(t)}}(o)}))}function logMessage(e,o){var r=arguments.length>2&&void 0!==arguments[2]&&arguments[2],a=!(arguments.length>3&&void 0!==arguments[3])||arguments[3],{name:n,verbose:g}=e;if(r||g){var i=console.log;a?i(`${n}: ${o}`):Array.isArray(o)?i(`${n}:`,...o):i(`${n}:`,o)}}function nodeListToArray(r){for(var n=[],o=0;o<r.length;o+=1)n.push(r[o]);return n}function toRegExp(e){var r=e||\"\",t=\"/\";if(\"\"===r)return new RegExp(\".?\");var n,i,s=r.lastIndexOf(t),a=r.substring(s+1),g=r.substring(0,s+1),u=(i=a,(n=g).startsWith(t)&&n.endsWith(t)&&!n.endsWith(\"\\\\/\")&&function(e){if(!e)return!1;try{return new RegExp(\"\",e),!0}catch(e){return!1}}(i)?i:\"\");if(r.startsWith(t)&&r.endsWith(t)||u)return new RegExp((u?g:r).slice(1,-1),u);var c=r.replace(/\\\\'/g,\"'\").replace(/\\\\\"/g,'\"').replace(/[.*+?^${}()|[\\]\\\\]/g,\"\\\\$&\");return new RegExp(c)}const updatedArgs=args?[].concat(source).concat(args):[source];try{(function(source,nodeName,textMatch,pattern,replacement){for(var fixQuotes=function(str){return\"string\"!=typeof str?str:str.replace(/\\\\'/g,\"'\").replace(/\\\\\"/g,'\"')},fixedPattern=fixQuotes(pattern),fixedReplacement=fixQuotes(replacement),{selector:selector,nodeNameMatch:nodeNameMatch,textContentMatch:textContentMatch,patternMatch:patternMatch}=function(t,e){var a,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null,r=\"/\",s=!(t.startsWith(r)&&t.endsWith(r)),o=s?t:\"*\",h=s?t:toRegExp(t),i=e.startsWith(r)?toRegExp(e):e;return n&&(a=n.startsWith(r)?toRegExp(n):n),{selector:o,nodeNameMatch:h,textContentMatch:i,patternMatch:a}}(nodeName,textMatch,fixedPattern),_len=arguments.length,extraArgs=new Array(_len>5?_len-5:0),_key=5;_key<_len;_key++)extraArgs[_key-5]=arguments[_key];var shouldLog=extraArgs.includes(\"verbose\"),handleNodes=function(nodes){return nodes.forEach((function(node){if(function(e,t,n){var{nodeName:o,textContent:s}=e,a=o.toLowerCase();return null!==s&&\"\"!==s&&(t instanceof RegExp?t.test(a):t===a)&&(n instanceof RegExp?n.test(s):s.includes(n))}(node,nodeNameMatch,textContentMatch)){if(shouldLog){var originalText=node.textContent;originalText&&logMessage(source,`Original text content: ${originalText}`)}if(function(e,t,n,r){var{textContent:a}=t;if(a){var i=a.replace(n,r);\"SCRIPT\"===t.nodeName&&(i=function(t){var r,e=null==t||null===(r=t.api)||void 0===r?void 0:r.policy;if(e)return e;var n=\"AGPolicy\",i=window.trustedTypes,u=!!i,c={HTML:\"TrustedHTML\",Script:\"TrustedScript\",ScriptURL:\"TrustedScriptURL\"};if(!u)return{name:n,isSupported:u,TrustedType:c,createHTML:function(t){return t},createScript:function(t){return t},createScriptURL:function(t){return t},create:function(t,r){return r},getAttributeType:function(){return null},convertAttributeToTrusted:function(t,r,e){return e},getPropertyType:function(){return null},convertPropertyToTrusted:function(t,r,e){return e},isHTML:function(){return!1},isScript:function(){return!1},isScriptURL:function(){return!1}};var o=i.createPolicy(n,{createHTML:function(t){return t},createScript:function(t){return t},createScriptURL:function(t){return t}}),createHTML=function(t){return o.createHTML(t)},createScript=function(t){return o.createScript(t)},createScriptURL=function(t){return o.createScriptURL(t)},create=function(t,r){switch(t){case c.HTML:return createHTML(r);case c.Script:return createScript(r);case c.ScriptURL:return createScriptURL(r);default:return r}},p=i.getAttributeType.bind(i),T=i.getPropertyType.bind(i),s=i.isHTML.bind(i),a=i.isScript.bind(i),f=i.isScriptURL.bind(i);return{name:n,isSupported:u,TrustedType:c,createHTML:createHTML,createScript:createScript,createScriptURL:createScriptURL,create:create,getAttributeType:p,convertAttributeToTrusted:function(t,r,e,n,i){var u=p(t,r,n,i);return u?create(u,e):e},getPropertyType:T,convertPropertyToTrusted:function(t,r,e,n){var i=T(t,r,n);return i?create(i,e):e},isHTML:s,isScript:a,isScriptURL:f}}(e).createScript(i)),t.textContent=i,function(e){if(e.verbose){try{var n=console.trace.bind(console),i=\"[AdGuard] \";\"corelibs\"===e.engine?i+=e.ruleText:(e.domainName&&(i+=`${e.domainName}`),e.args?i+=`#%#//scriptlet('${e.name}', '${e.args.join(\"', '\")}')`:i+=`#%#//scriptlet('${e.name}')`),n&&n(i)}catch(e){}\"function\"==typeof window.__debug&&window.__debug(e)}}(e)}}(source,node,patternMatch,fixedReplacement),shouldLog){var modifiedText=node.textContent;modifiedText&&logMessage(source,`Modified text content: ${modifiedText}`)}}}))};document.documentElement&&handleExistingNodes(selector,handleNodes),function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{subtree:!0,childList:!0},n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:1e4,o=new MutationObserver((function(n,o){o.disconnect(),e(n,o),o.observe(document.documentElement,t)}));o.observe(document.documentElement,t),\"number\"==typeof n&&setTimeout((function(){return o.disconnect()}),n)}((function(mutations){return d=handleNodes,t=function(d){for(var e=[],r=0;r<d.length;r+=1)for(var{addedNodes:n}=d[r],o=0;o<n.length;o+=1)e.push(n[o]);return e}(mutations),void(e&&o?t.forEach((function(){handleExistingNodes(e,d,o)})):d(t));var d,e,o,t}))}).apply(this,updatedArgs),source.uniqueId&&Object.defineProperty(Window.prototype.toString,uniqueIdentifier,{value:\"done\",enumerable:!1,writable:!1,configurable:!1})}catch(e){console.log(e)}}"
        },
        {
            "names": [
                "trusted-replace-outbound-text"
            ],
            "scriptlet": "function trustedReplaceOutboundText(source,args){const uniqueIdentifier=source.uniqueId+source.name+\"_\"+(Array.isArray(args)?args.join(\"_\"):\"\");if(source.uniqueId&&\"done\"===Window.prototype.toString[uniqueIdentifier])return;function getPropertyInChain(e,r){var n=r.indexOf(\".\");if(-1===n)return{base:e,prop:r};var i=r.slice(0,n);if(null===e)return{base:e,prop:i,chain:r};var t=e[i];return r=r.slice(n+1),(e instanceof Object||\"object\"==typeof e)&&function(t){return 0===Object.keys(t).length&&!t.prototype}(e)||null===t?{base:e,prop:i,chain:r}:void 0!==t?getPropertyInChain(t,r):(Object.defineProperty(e,i,{configurable:!0}),{base:e,prop:i,chain:r})}function logMessage(e,o){var r=arguments.length>2&&void 0!==arguments[2]&&arguments[2],a=!(arguments.length>3&&void 0!==arguments[3])||arguments[3],{name:n,verbose:g}=e;if(r||g){var i=console.log;a?i(`${n}: ${o}`):Array.isArray(o)?i(`${n}:`,...o):i(`${n}:`,o)}}function toRegExp(e){var r=e||\"\",t=\"/\";if(\"\"===r)return new RegExp(\".?\");var n,i,s=r.lastIndexOf(t),a=r.substring(s+1),g=r.substring(0,s+1),u=(i=a,(n=g).startsWith(t)&&n.endsWith(t)&&!n.endsWith(\"\\\\/\")&&function(e){if(!e)return!1;try{return new RegExp(\"\",e),!0}catch(e){return!1}}(i)?i:\"\");if(r.startsWith(t)&&r.endsWith(t)||u)return new RegExp((u?g:r).slice(1,-1),u);var c=r.replace(/\\\\'/g,\"'\").replace(/\\\\\"/g,'\"').replace(/[.*+?^${}()|[\\]\\\\]/g,\"\\\\$&\");return new RegExp(c)}function restoreRegExpValues(e){if(e.length)try{var r;r=1===e.length?`(${e[0]})`:e.reduce((function(e,r,t){return 1===t?`(${e}),(${r})`:`${e},(${r})`}));var t=new RegExp(r);e.toString().replace(t,\"\")}catch(e){var n=`Failed to restore RegExp values: ${e}`;console.log(n)}}const updatedArgs=args?[].concat(source).concat(args):[source];try{(function(source,methodPath){var textToReplace=arguments.length>2&&void 0!==arguments[2]?arguments[2]:\"\",replacement=arguments.length>3&&void 0!==arguments[3]?arguments[3]:\"\",decodeMethod=arguments.length>4&&void 0!==arguments[4]?arguments[4]:\"\",stack=arguments.length>5&&void 0!==arguments[5]?arguments[5]:\"\",logContent=arguments.length>6&&void 0!==arguments[6]?arguments[6]:\"\";if(methodPath){var getPathParts=getPropertyInChain,{base:base,chain:chain,prop:prop}=getPathParts(window,methodPath);if(void 0===chain){var nativeMethod=base[prop];if(nativeMethod&&\"function\"==typeof nativeMethod){var decodeAndReplaceContent=function(content,pattern,textReplacement,decode,log){if(\"base64\"===decode)try{if(!function(str){try{if(\"\"===str)return!1;var decodedString=atob(str),encodedString=btoa(decodedString),stringWithoutPadding=str.replace(/=+$/,\"\");return encodedString.replace(/=+$/,\"\")===stringWithoutPadding}catch(e){return!1}}(content))return logMessage(source,`Text content is not a valid base64 encoded string: ${content}`),content;var decodedContent=atob(content);log&&logMessage(source,`Decoded text content: ${decodedContent}`);var modifiedContent=textToReplace?decodedContent.replace(pattern,textReplacement):decodedContent;return log&&logMessage(source,modifiedContent!==decodedContent?`Modified decoded text content: ${modifiedContent}`:\"Decoded text content was not modified\"),btoa(modifiedContent)}catch(e){return content}return content.replace(pattern,textReplacement)},logOriginalContent=!textToReplace||!!logContent,logModifiedContent=!!logContent,logDecodedContent=!!decodeMethod&&!!logContent,isMatchingSuspended=!1,objectHandler={apply:function(target,thisArg,argumentsList){if(isMatchingSuspended)return Reflect.apply(target,thisArg,argumentsList);isMatchingSuspended=!0,function(e){if(e.verbose){try{var n=console.trace.bind(console),i=\"[AdGuard] \";\"corelibs\"===e.engine?i+=e.ruleText:(e.domainName&&(i+=`${e.domainName}`),e.args?i+=`#%#//scriptlet('${e.name}', '${e.args.join(\"', '\")}')`:i+=`#%#//scriptlet('${e.name}')`),n&&n(i)}catch(e){}\"function\"==typeof window.__debug&&window.__debug(e)}}(source);var result=Reflect.apply(target,thisArg,argumentsList);if(stack&&!function(e,t){if(!e||\"\"===e)return!0;var r=function(){try{for(var r=[],e=1;e<10;e+=1){var a=`$${e}`;if(!RegExp[a])break;r.push(RegExp[a])}return r}catch(r){return[]}}();if(function(t,i){var r=\"inlineScript\",n=\"injectedScript\",isInlineScript=function(t){return t.includes(r)},isInjectedScript=function(t){return t.includes(n)};if(!isInlineScript(t)&&!isInjectedScript(t))return!1;var e=window.location.href,s=e.indexOf(\"#\");-1!==s&&(e=e.slice(0,s));var c=i.split(\"\\n\").slice(2).map((function(t){return t.trim()})).map((function(t){var i,s=/(.*?@)?(\\S+)(:\\d+)(:\\d+)\\)?$/.exec(t);if(s){var c,l,a=s[2],u=s[3],o=s[4];if(null!==(c=a)&&void 0!==c&&c.startsWith(\"(\")&&(a=a.slice(1)),null!==(l=a)&&void 0!==l&&l.startsWith(\"<anonymous>\")){var d;a=n;var f=void 0!==s[1]?s[1].slice(0,-1):t.slice(0,s.index).trim();null!==(d=f)&&void 0!==d&&d.startsWith(\"at\")&&(f=f.slice(2).trim()),i=`${f} ${a}${u}${o}`.trim()}else i=a===e?`${r}${u}${o}`.trim():`${a}${u}${o}`.trim()}else i=t;return i}));if(c)for(var l=0;l<c.length;l+=1){if(isInlineScript(t)&&c[l].startsWith(r)&&c[l].match(toRegExp(t)))return!0;if(isInjectedScript(t)&&c[l].startsWith(n)&&c[l].match(toRegExp(t)))return!0}return!1}(e,t))return r.length&&r[0]!==RegExp.$1&&restoreRegExpValues(r),!0;var n=toRegExp(e),a=t.split(\"\\n\").slice(2).map((function(e){return e.trim()})).join(\"\\n\");return r.length&&r[0]!==RegExp.$1&&restoreRegExpValues(r),function(){var t=Object.getOwnPropertyDescriptor(RegExp.prototype,\"test\"),e=null==t?void 0:t.value;if(t&&\"function\"==typeof t.value)return e;throw new Error(\"RegExp.prototype.test is not a function\")}().call(n,a)}(stack,(new Error).stack||\"\"))return result;if(\"string\"==typeof result){logOriginalContent&&logMessage(source,`Original text content: ${result}`);var patternRegexp=toRegExp(textToReplace),modifiedContent=textToReplace||logDecodedContent?decodeAndReplaceContent(result,patternRegexp,replacement,decodeMethod,logContent):result;return logModifiedContent&&logMessage(source,modifiedContent!==result?`Modified text content: ${modifiedContent}`:\"Text content was not modified\"),isMatchingSuspended=!1,modifiedContent}return isMatchingSuspended=!1,logMessage(source,\"Content is not a string\"),result}};base[prop]=new Proxy(nativeMethod,objectHandler)}else logMessage(source,`Could not retrieve the method: ${methodPath}`)}else logMessage(source,`Could not reach the end of the prop chain: ${methodPath}`)}}).apply(this,updatedArgs),source.uniqueId&&Object.defineProperty(Window.prototype.toString,uniqueIdentifier,{value:\"done\",enumerable:!1,writable:!1,configurable:!1})}catch(e){console.log(e)}}"
        },
        {
            "names": [
                "trusted-replace-xhr-response"
            ],
            "scriptlet": "function trustedReplaceXhrResponse(source,args){const uniqueIdentifier=source.uniqueId+source.name+\"_\"+(Array.isArray(args)?args.join(\"_\"):\"\");if(source.uniqueId&&\"done\"===Window.prototype.toString[uniqueIdentifier])return;function hit(e){if(e.verbose){try{var n=console.trace.bind(console),i=\"[AdGuard] \";\"corelibs\"===e.engine?i+=e.ruleText:(e.domainName&&(i+=`${e.domainName}`),e.args?i+=`#%#//scriptlet('${e.name}', '${e.args.join(\"', '\")}')`:i+=`#%#//scriptlet('${e.name}')`),n&&n(i)}catch(e){}\"function\"==typeof window.__debug&&window.__debug(e)}}function logMessage(e,o){var r=arguments.length>2&&void 0!==arguments[2]&&arguments[2],a=!(arguments.length>3&&void 0!==arguments[3])||arguments[3],{name:n,verbose:g}=e;if(r||g){var i=console.log;a?i(`${n}: ${o}`):Array.isArray(o)?i(`${n}:`,...o):i(`${n}:`,o)}}function toRegExp(e){var r=e||\"\",t=\"/\";if(\"\"===r)return new RegExp(\".?\");var n,i,s=r.lastIndexOf(t),a=r.substring(s+1),g=r.substring(0,s+1),u=(i=a,(n=g).startsWith(t)&&n.endsWith(t)&&!n.endsWith(\"\\\\/\")&&function(e){if(!e)return!1;try{return new RegExp(\"\",e),!0}catch(e){return!1}}(i)?i:\"\");if(r.startsWith(t)&&r.endsWith(t)||u)return new RegExp((u?g:r).slice(1,-1),u);var c=r.replace(/\\\\'/g,\"'\").replace(/\\\\\"/g,'\"').replace(/[.*+?^${}()|[\\]\\\\]/g,\"\\\\$&\");return new RegExp(c)}function objectToString(t){return t&&\"object\"==typeof t?function(t){return 0===Object.keys(t).length&&!t.prototype}(t)?\"{}\":Object.entries(t).map((function(t){var n=t[0],e=t[1],o=e;return e instanceof Object&&(o=`{ ${objectToString(e)} }`),`${n}:\"${o}\"`})).join(\" \"):String(t)}function getXhrData(r,t,a,e,n){return{method:r,url:t,async:a,user:e,password:n}}const updatedArgs=args?[].concat(source).concat(args):[source];try{(function(source){var pattern=arguments.length>1&&void 0!==arguments[1]?arguments[1]:\"\",replacement=arguments.length>2&&void 0!==arguments[2]?arguments[2]:\"\",propsToMatch=arguments.length>3&&void 0!==arguments[3]?arguments[3]:\"\";if(\"undefined\"!=typeof Proxy)if(\"\"!==pattern||\"\"===replacement){var xhrData,shouldLog=\"\"===pattern&&\"\"===replacement,shouldLogContent=\"true\"===(arguments.length>4&&void 0!==arguments[4]&&arguments[4]),nativeOpen=window.XMLHttpRequest.prototype.open,nativeSend=window.XMLHttpRequest.prototype.send,matchedXhrRequests=new Set,xhrRequestHeaders=new Map,openHandler={apply:function(target,thisArg,args){if(xhrData=getXhrData.apply(null,args),shouldLog){var _message=`xhr( ${objectToString(xhrData)} )`;return logMessage(source,_message,!0),hit(source),Reflect.apply(target,thisArg,args)}if(function(e,t,r){if(\"\"===t||\"*\"===t)return!0;var a,s=function(e){var r={};return e.split(\" \").forEach((function(e){var n=e.indexOf(\":\"),i=e.slice(0,n);if(function(e){return[\"url\",\"method\",\"headers\",\"body\",\"credentials\",\"cache\",\"redirect\",\"referrer\",\"referrerPolicy\",\"integrity\",\"keepalive\",\"signal\",\"mode\"].includes(e)}(i)){var s=e.slice(n+1);r[i]=s}else r.url=e})),r}(t);if(function(t){return Object.values(t).every((function(t){return function(e){var t,n=function(e){return e.replace(/[.*+?^${}()|[\\]\\\\]/g,\"\\\\$&\")}(e);\"/\"===e[0]&&\"/\"===e[e.length-1]&&(n=e.slice(1,-1));try{t=new RegExp(n),t=!0}catch(e){t=!1}return t}(t)}))}(s)){var n=function(t){var a={};return Object.keys(t).forEach((function(c){a[c]=toRegExp(t[c])})),a}(s);a=Object.keys(n).every((function(e){var t=n[e],a=r[e];return Object.prototype.hasOwnProperty.call(r,e)&&\"string\"==typeof a&&(null==t?void 0:t.test(a))}))}else logMessage(e,`Invalid parameter: ${t}`),a=!1;return a}(source,propsToMatch,xhrData)&&matchedXhrRequests.add(thisArg),matchedXhrRequests.has(thisArg)&&!xhrRequestHeaders.has(thisArg)){xhrRequestHeaders.set(thisArg,[]);var setRequestHeaderHandler={apply:function(target,thisArg,args){var headers=xhrRequestHeaders.get(thisArg);return headers&&headers.push(args),Reflect.apply(target,thisArg,args)}};thisArg.setRequestHeader=new Proxy(thisArg.setRequestHeader,setRequestHeaderHandler)}return Reflect.apply(target,thisArg,args)}},sendHandler={apply:function(target,thisArg,args){if(!matchedXhrRequests.has(thisArg))return Reflect.apply(target,thisArg,args);var forgedRequest=new XMLHttpRequest;forgedRequest.withCredentials=thisArg.withCredentials,forgedRequest.addEventListener(\"readystatechange\",(function(){if(4===forgedRequest.readyState){var{readyState:readyState,response:response,responseText:responseText,responseURL:responseURL,responseXML:responseXML,status:status,statusText:statusText}=forgedRequest,content=responseText||response;if(\"string\"==typeof content){var patternRegexp=\"*\"===pattern?/(\\n|.)*/:toRegExp(pattern),isPatternFound=\"*\"===pattern||patternRegexp.test(content),responseContent=content;isPatternFound&&(shouldLogContent&&logMessage(source,`Original text content: ${content}`),responseContent=content.replace(patternRegexp,replacement),shouldLogContent&&logMessage(source,`Modified text content: ${responseContent}`)),Object.defineProperties(thisArg,{readyState:{value:readyState,writable:!1},responseURL:{value:responseURL,writable:!1},responseXML:{value:responseXML,writable:!1},status:{value:status,writable:!1},statusText:{value:statusText,writable:!1},response:{value:responseContent,writable:!1},responseText:{value:responseContent,writable:!1}}),setTimeout((function(){var stateEvent=new Event(\"readystatechange\");thisArg.dispatchEvent(stateEvent);var loadEvent=new ProgressEvent(\"load\");thisArg.dispatchEvent(loadEvent);var loadEndEvent=new ProgressEvent(\"loadend\");thisArg.dispatchEvent(loadEndEvent)}),1),isPatternFound&&hit(source)}}})),nativeOpen.apply(forgedRequest,[xhrData.method,xhrData.url]),(xhrRequestHeaders.get(thisArg)||[]).forEach((function(header){var name=header[0],value=header[1];forgedRequest.setRequestHeader(name,value)})),xhrRequestHeaders.delete(thisArg),matchedXhrRequests.delete(thisArg);try{Reflect.apply(nativeSend,forgedRequest,args)}catch(_unused){return Reflect.apply(target,thisArg,args)}}};XMLHttpRequest.prototype.open=new Proxy(XMLHttpRequest.prototype.open,openHandler),XMLHttpRequest.prototype.send=new Proxy(XMLHttpRequest.prototype.send,sendHandler)}else logMessage(source,\"Pattern argument should not be empty string.\")}).apply(this,updatedArgs),source.uniqueId&&Object.defineProperty(Window.prototype.toString,uniqueIdentifier,{value:\"done\",enumerable:!1,writable:!1,configurable:!1})}catch(e){console.log(e)}}"
        },
        {
            "names": [
                "trusted-set-attr"
            ],
            "scriptlet": "function trustedSetAttr(source,args){const uniqueIdentifier=source.uniqueId+source.name+\"_\"+(Array.isArray(args)?args.join(\"_\"):\"\");if(source.uniqueId&&\"done\"===Window.prototype.toString[uniqueIdentifier])return;function setAttributeBySelector(e,t,l,o){var r,c=arguments.length>4&&void 0!==arguments[4]?arguments[4]:defaultAttributeSetter;try{r=document.querySelectorAll(t)}catch(l){return void logMessage(e,`Failed to find elements matching selector \"${t}\"`)}if(r&&0!==r.length)try{r.forEach((function(e){return c(e,l,o)})),function(e){if(e.verbose){try{var n=console.trace.bind(console),i=\"[AdGuard] \";\"corelibs\"===e.engine?i+=e.ruleText:(e.domainName&&(i+=`${e.domainName}`),e.args?i+=`#%#//scriptlet('${e.name}', '${e.args.join(\"', '\")}')`:i+=`#%#//scriptlet('${e.name}')`),n&&n(i)}catch(e){}\"function\"==typeof window.__debug&&window.__debug(e)}}(e)}catch(t){logMessage(e,`Failed to set [${l}=\"${o}\"] to each of selected elements.`)}}function defaultAttributeSetter(t,e,r){return t.setAttribute(e,r)}function logMessage(e,o){var r=arguments.length>2&&void 0!==arguments[2]&&arguments[2],a=!(arguments.length>3&&void 0!==arguments[3])||arguments[3],{name:n,verbose:g}=e;if(r||g){var i=console.log;a?i(`${n}: ${o}`):Array.isArray(o)?i(`${n}:`,...o):i(`${n}:`,o)}}const updatedArgs=args?[].concat(source).concat(args):[source];try{(function(source,selector,attr){var value=arguments.length>3&&void 0!==arguments[3]?arguments[3]:\"\";selector&&attr&&(setAttributeBySelector(source,selector,attr,value),function(t){var e=arguments.length>1&&void 0!==arguments[1]&&arguments[1],n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:[],i=new MutationObserver(function(n,t){var r,e=!1,_wrapper=function(){for(var o=arguments.length,u=new Array(o),f=0;f<o;f++)u[f]=arguments[f];e?r=u:(n(...u),e=!0,setTimeout((function(){e=!1,r&&(_wrapper(...r),r=null)}),t))};return _wrapper}((function(){disconnect(),t(),connect()}),20)),connect=function(){n.length>0?i.observe(document.documentElement,{childList:!0,subtree:!0,attributes:e,attributeFilter:n}):i.observe(document.documentElement,{childList:!0,subtree:!0,attributes:e})},disconnect=function(){i.disconnect()};connect()}((function(){return setAttributeBySelector(source,selector,attr,value)}),!0))}).apply(this,updatedArgs),source.uniqueId&&Object.defineProperty(Window.prototype.toString,uniqueIdentifier,{value:\"done\",enumerable:!1,writable:!1,configurable:!1})}catch(e){console.log(e)}}"
        },
        {
            "names": [
                "trusted-set-constant"
            ],
            "scriptlet": "function trustedSetConstant(source,args){const uniqueIdentifier=source.uniqueId+source.name+\"_\"+(Array.isArray(args)?args.join(\"_\"):\"\");if(source.uniqueId&&\"done\"===Window.prototype.toString[uniqueIdentifier])return;function hit(e){if(e.verbose){try{var n=console.trace.bind(console),i=\"[AdGuard] \";\"corelibs\"===e.engine?i+=e.ruleText:(e.domainName&&(i+=`${e.domainName}`),e.args?i+=`#%#//scriptlet('${e.name}', '${e.args.join(\"', '\")}')`:i+=`#%#//scriptlet('${e.name}')`),n&&n(i)}catch(e){}\"function\"==typeof window.__debug&&window.__debug(e)}}function logMessage(e,o){var r=arguments.length>2&&void 0!==arguments[2]&&arguments[2],a=!(arguments.length>3&&void 0!==arguments[3])||arguments[3],{name:n,verbose:g}=e;if(r||g){var i=console.log;a?i(`${n}: ${o}`):Array.isArray(o)?i(`${n}:`,...o):i(`${n}:`,o)}}function getPropertyInChain(e,r){var n=r.indexOf(\".\");if(-1===n)return{base:e,prop:r};var i=r.slice(0,n);if(null===e)return{base:e,prop:i,chain:r};var t=e[i];return r=r.slice(n+1),(e instanceof Object||\"object\"==typeof e)&&isEmptyObject(e)||null===t?{base:e,prop:i,chain:r}:void 0!==t?getPropertyInChain(t,r):(Object.defineProperty(e,i,{configurable:!0}),{base:e,prop:i,chain:r})}function toRegExp(e){var r=e||\"\",t=\"/\";if(\"\"===r)return new RegExp(\".?\");var n,i,s=r.lastIndexOf(t),a=r.substring(s+1),g=r.substring(0,s+1),u=(i=a,(n=g).startsWith(t)&&n.endsWith(t)&&!n.endsWith(\"\\\\/\")&&function(e){if(!e)return!1;try{return new RegExp(\"\",e),!0}catch(e){return!1}}(i)?i:\"\");if(r.startsWith(t)&&r.endsWith(t)||u)return new RegExp((u?g:r).slice(1,-1),u);var c=r.replace(/\\\\'/g,\"'\").replace(/\\\\\"/g,'\"').replace(/[.*+?^${}()|[\\]\\\\]/g,\"\\\\$&\");return new RegExp(c)}function isEmptyObject(t){return 0===Object.keys(t).length&&!t.prototype}function restoreRegExpValues(e){if(e.length)try{var r;r=1===e.length?`(${e[0]})`:e.reduce((function(e,r,t){return 1===t?`(${e}),(${r})`:`${e},(${r})`}));var t=new RegExp(r);e.toString().replace(t,\"\")}catch(e){var n=`Failed to restore RegExp values: ${e}`;console.log(n)}}function getDescriptorAddon(){return{isAbortingSuspended:!1,isolateCallback(r){this.isAbortingSuspended=!0;try{for(var e=arguments.length,n=new Array(e>1?e-1:0),t=1;t<e;t++)n[t-1]=arguments[t];var i=r(...n);return this.isAbortingSuspended=!1,i}catch(r){var s=randomId();throw this.isAbortingSuspended=!1,new ReferenceError(s)}}}}const updatedArgs=args?[].concat(source).concat(args):[source];try{(function(source,property,value,stack){if(property){var constantValue;try{constantValue=function(r){if(\"undefined\"!==r){if(\"false\"===r)return!1;if(\"true\"===r)return!0;if(\"null\"===r)return null;if(\"NaN\"===r)return NaN;if(r.startsWith(\"/\")&&r.endsWith(\"/\"))return toRegExp(r);var e=Number(r);if(N=e,!(Number.isNaN||window.isNaN)(N)){if(Math.abs(e)>32767)throw new Error(\"number values bigger than 32767 are not allowed\");return e}try{var t=JSON.parse(r);if(t instanceof Object||\"string\"==typeof t)return t}catch(e){return r}return r}var N}(value)}catch(e){return void logMessage(source,e)}var canceled=!1,setChainPropAccess=function(t){var{source:e,stack:r,mustCancel:i,trapProp:n,getConstantValue:a,setConstantValue:s}=t,_setChainPropAccess=function(t,c){var o=getPropertyInChain(t,c),{base:u,prop:d,chain:f}=o,h={factValue:void 0,init(t){return this.factValue=t,!0},get(){return this.factValue},set(t){this.factValue!==t&&(this.factValue=t,t instanceof Object&&_setChainPropAccess(t,f))}},l={factValue:void 0,descriptorAddon:getDescriptorAddon(),init(t){return!i(t)&&(this.factValue=t,!0)},get(){if(!r)return hit(e),a();if(!this.descriptorAddon.isAbortingSuspended){this.descriptorAddon.isAbortingSuspended=!0;var t=!1;try{t=function(e,t){if(!e||\"\"===e)return!0;var r=function(){try{for(var r=[],e=1;e<10;e+=1){var a=`$${e}`;if(!RegExp[a])break;r.push(RegExp[a])}return r}catch(r){return[]}}();if(function(t,i){var r=\"inlineScript\",n=\"injectedScript\",isInlineScript=function(t){return t.includes(r)},isInjectedScript=function(t){return t.includes(n)};if(!isInlineScript(t)&&!isInjectedScript(t))return!1;var e=window.location.href,s=e.indexOf(\"#\");-1!==s&&(e=e.slice(0,s));var c=i.split(\"\\n\").slice(2).map((function(t){return t.trim()})).map((function(t){var i,s=/(.*?@)?(\\S+)(:\\d+)(:\\d+)\\)?$/.exec(t);if(s){var c,l,a=s[2],u=s[3],o=s[4];if(null!==(c=a)&&void 0!==c&&c.startsWith(\"(\")&&(a=a.slice(1)),null!==(l=a)&&void 0!==l&&l.startsWith(\"<anonymous>\")){var d;a=n;var f=void 0!==s[1]?s[1].slice(0,-1):t.slice(0,s.index).trim();null!==(d=f)&&void 0!==d&&d.startsWith(\"at\")&&(f=f.slice(2).trim()),i=`${f} ${a}${u}${o}`.trim()}else i=a===e?`${r}${u}${o}`.trim():`${a}${u}${o}`.trim()}else i=t;return i}));if(c)for(var l=0;l<c.length;l+=1){if(isInlineScript(t)&&c[l].startsWith(r)&&c[l].match(toRegExp(t)))return!0;if(isInjectedScript(t)&&c[l].startsWith(n)&&c[l].match(toRegExp(t)))return!0}return!1}(e,t))return r.length&&r[0]!==RegExp.$1&&restoreRegExpValues(r),!0;var n=toRegExp(e),a=t.split(\"\\n\").slice(2).map((function(e){return e.trim()})).join(\"\\n\");return r.length&&r[0]!==RegExp.$1&&restoreRegExpValues(r),function(){var t=Object.getOwnPropertyDescriptor(RegExp.prototype,\"test\"),e=null==t?void 0:t.value;if(t&&\"function\"==typeof t.value)return e;throw new Error(\"RegExp.prototype.test is not a function\")}().call(n,a)}(r,(new Error).stack||\"\")}catch(t){return this.descriptorAddon.isAbortingSuspended=!1,this.factValue}if(this.descriptorAddon.isAbortingSuspended=!1,t)return hit(e),a()}return this.factValue},set(t){i(t)?s(t):this.factValue=t}};if(f)if(void 0===u||null!==u[d]){(u instanceof Object||\"object\"==typeof u)&&isEmptyObject(u)&&n(u,d,!0,h);var p=t[d];(p instanceof Object||\"object\"==typeof p&&null!==p)&&_setChainPropAccess(p,f),n(u,d,!0,h)}else n(u,d,!0,h);else n(u,d,!1,l)};return _setChainPropAccess}({source:source,stack:stack,mustCancel:function(value){return canceled||(canceled=void 0!==value&&void 0!==constantValue&&typeof value!=typeof constantValue&&null!==value)},trapProp:function(base,prop,configurable,handler){if(!handler.init(base[prop]))return!1;var prevSetter,origDescriptor=Object.getOwnPropertyDescriptor(base,prop);if(origDescriptor instanceof Object){if(!origDescriptor.configurable)return logMessage(source,`Property '${prop}' is not configurable`),!1;base[prop]=constantValue,origDescriptor.set instanceof Function&&(prevSetter=origDescriptor.set)}return Object.defineProperty(base,prop,{configurable:configurable,get:()=>handler.get(),set(a){void 0!==prevSetter&&prevSetter(a),handler.set(a)}}),!0},getConstantValue:function(){return constantValue},setConstantValue:function(v){constantValue=v}});setChainPropAccess(window,property)}}).apply(this,updatedArgs),source.uniqueId&&Object.defineProperty(Window.prototype.toString,uniqueIdentifier,{value:\"done\",enumerable:!1,writable:!1,configurable:!1})}catch(e){console.log(e)}}"
        },
        {
            "names": [
                "trusted-set-cookie"
            ],
            "scriptlet": "function trustedSetCookie(source,args){const uniqueIdentifier=source.uniqueId+source.name+\"_\"+(Array.isArray(args)?args.join(\"_\"):\"\");if(source.uniqueId&&\"done\"===Window.prototype.toString[uniqueIdentifier])return;function logMessage(e,o){var r=arguments.length>2&&void 0!==arguments[2]&&arguments[2],a=!(arguments.length>3&&void 0!==arguments[3])||arguments[3],{name:n,verbose:g}=e;if(r||g){var i=console.log;a?i(`${n}: ${o}`):Array.isArray(o)?i(`${n}:`,...o):i(`${n}:`,o)}}const updatedArgs=args?[].concat(source).concat(args):[source];try{(function(source,name,value){var offsetExpiresSec=arguments.length>3&&void 0!==arguments[3]?arguments[3]:\"\",path=arguments.length>4&&void 0!==arguments[4]?arguments[4]:\"/\",domain=arguments.length>5&&void 0!==arguments[5]?arguments[5]:\"\";if(void 0!==name)if(void 0!==value){var t,e,n,parsedValue=(e=t=value,\"$now$\"===t?e=Date.now().toString():\"$currentDate$\"===t?e=Date():\"$currentISODate$\"===t&&(e=(new Date).toISOString()),e);if(\"/\"===(n=path)||\"none\"===n)if(document.location.origin.includes(domain)){var cookieToSet=function(e,o,i){var n=arguments.length>3&&void 0!==arguments[3]?arguments[3]:\"\",t=!(arguments.length>4&&void 0!==arguments[4])||arguments[4];if(!t&&`${o}`.includes(\";\")||e.includes(\";\"))return null;var r=`${e}=${t?encodeURIComponent(o):o}`;if(e.startsWith(\"__Host-\"))return r+=\"; path=/; secure\",n&&console.debug(`Domain value: \"${n}\" has been ignored, because is not allowed for __Host- prefixed cookies`),r;var s=function(t){return\"/\"===t?\"path=/\":\"\"}(i);return s&&(r+=`; ${s}`),e.startsWith(\"__Secure-\")&&(r+=\"; secure\"),n&&(r+=`; domain=${n}`),r}(name,parsedValue,path,domain,!1);if(cookieToSet){if(offsetExpiresSec){var parsedOffsetMs=function(e){var r;if(\"1year\"===e)r=31536e3;else if(\"1day\"===e)r=86400;else if(r=Number.parseInt(e,10),Number.isNaN(r))return null;return 1e3*r}(offsetExpiresSec);if(!parsedOffsetMs)return void logMessage(source,`Invalid offsetExpiresSec value: ${offsetExpiresSec}`);var expires=Date.now()+parsedOffsetMs;cookieToSet+=`; expires=${new Date(expires).toUTCString()}`}document.cookie=cookieToSet,function(e){if(e.verbose){try{var n=console.trace.bind(console),i=\"[AdGuard] \";\"corelibs\"===e.engine?i+=e.ruleText:(e.domainName&&(i+=`${e.domainName}`),e.args?i+=`#%#//scriptlet('${e.name}', '${e.args.join(\"', '\")}')`:i+=`#%#//scriptlet('${e.name}')`),n&&n(i)}catch(e){}\"function\"==typeof window.__debug&&window.__debug(e)}}(source)}else logMessage(source,\"Invalid cookie name or value\")}else logMessage(source,`Cookie domain not matched by origin: '${domain}'`);else logMessage(source,`Invalid cookie path: '${path}'`)}else logMessage(source,\"Cookie value should be specified\");else logMessage(source,\"Cookie name should be specified\")}).apply(this,updatedArgs),source.uniqueId&&Object.defineProperty(Window.prototype.toString,uniqueIdentifier,{value:\"done\",enumerable:!1,writable:!1,configurable:!1})}catch(e){console.log(e)}}"
        },
        {
            "names": [
                "trusted-set-cookie-reload"
            ],
            "scriptlet": "function trustedSetCookieReload(source,args){const uniqueIdentifier=source.uniqueId+source.name+\"_\"+(Array.isArray(args)?args.join(\"_\"):\"\");if(source.uniqueId&&\"done\"===Window.prototype.toString[uniqueIdentifier])return;function logMessage(e,o){var r=arguments.length>2&&void 0!==arguments[2]&&arguments[2],a=!(arguments.length>3&&void 0!==arguments[3])||arguments[3],{name:n,verbose:g}=e;if(r||g){var i=console.log;a?i(`${n}: ${o}`):Array.isArray(o)?i(`${n}:`,...o):i(`${n}:`,o)}}function isCookieSetWithValue(e,t,r){return e.split(\";\").some((function(e){var n=e.indexOf(\"=\");if(-1===n)return!1;var i=e.slice(0,n).trim(),a=e.slice(n+1).trim();if(new Set([\"$now$\",\"$currentDate$\",\"$currentISODate$\"]).has(r)){var u=Date.now(),s=/^\\d+$/.test(a)?parseInt(a,10):new Date(a).getTime();return t===i&&s>u-864e5}return t===i&&r===a}))}const updatedArgs=args?[].concat(source).concat(args):[source];try{(function(source,name,value){var offsetExpiresSec=arguments.length>3&&void 0!==arguments[3]?arguments[3]:\"\",path=arguments.length>4&&void 0!==arguments[4]?arguments[4]:\"/\",domain=arguments.length>5&&void 0!==arguments[5]?arguments[5]:\"\";if(void 0!==name)if(void 0!==value){if(!isCookieSetWithValue(document.cookie,name,value)){var t,e,n,parsedValue=(e=t=value,\"$now$\"===t?e=Date.now().toString():\"$currentDate$\"===t?e=Date():\"$currentISODate$\"===t&&(e=(new Date).toISOString()),e);if(\"/\"===(n=path)||\"none\"===n)if(document.location.origin.includes(domain)){var cookieToSet=function(e,o,i){var n=arguments.length>3&&void 0!==arguments[3]?arguments[3]:\"\",t=!(arguments.length>4&&void 0!==arguments[4])||arguments[4];if(!t&&`${o}`.includes(\";\")||e.includes(\";\"))return null;var r=`${e}=${t?encodeURIComponent(o):o}`;if(e.startsWith(\"__Host-\"))return r+=\"; path=/; secure\",n&&console.debug(`Domain value: \"${n}\" has been ignored, because is not allowed for __Host- prefixed cookies`),r;var s=function(t){return\"/\"===t?\"path=/\":\"\"}(i);return s&&(r+=`; ${s}`),e.startsWith(\"__Secure-\")&&(r+=\"; secure\"),n&&(r+=`; domain=${n}`),r}(name,parsedValue,path,domain,!1);if(cookieToSet){if(offsetExpiresSec){var parsedOffsetMs=function(e){var r;if(\"1year\"===e)r=31536e3;else if(\"1day\"===e)r=86400;else if(r=Number.parseInt(e,10),Number.isNaN(r))return null;return 1e3*r}(offsetExpiresSec);if(!parsedOffsetMs)return void logMessage(source,`Invalid offsetExpiresSec value: ${offsetExpiresSec}`);var expires=Date.now()+parsedOffsetMs;cookieToSet+=`; expires=${new Date(expires).toUTCString()}`}document.cookie=cookieToSet,function(e){if(e.verbose){try{var n=console.trace.bind(console),i=\"[AdGuard] \";\"corelibs\"===e.engine?i+=e.ruleText:(e.domainName&&(i+=`${e.domainName}`),e.args?i+=`#%#//scriptlet('${e.name}', '${e.args.join(\"', '\")}')`:i+=`#%#//scriptlet('${e.name}')`),n&&n(i)}catch(e){}\"function\"==typeof window.__debug&&window.__debug(e)}}(source);var cookieValueToCheck=function(){var r=document.cookie.split(\";\"),n={};return r.forEach((function(i){var r,t=\"\",e=i.indexOf(\"=\");-1===e?r=i.trim():(r=i.slice(0,e).trim(),t=i.slice(e+1)),n[r]=t||null})),n}()[name];isCookieSetWithValue(document.cookie,name,cookieValueToCheck)&&window.location.reload()}else logMessage(source,\"Invalid cookie name or value\")}else logMessage(source,`Cookie domain not matched by origin: '${domain}'`);else logMessage(source,`Invalid cookie path: '${path}'`)}}else logMessage(source,\"Cookie value should be specified\");else logMessage(source,\"Cookie name should be specified\")}).apply(this,updatedArgs),source.uniqueId&&Object.defineProperty(Window.prototype.toString,uniqueIdentifier,{value:\"done\",enumerable:!1,writable:!1,configurable:!1})}catch(e){console.log(e)}}"
        },
        {
            "names": [
                "trusted-set-local-storage-item"
            ],
            "scriptlet": "function trustedSetLocalStorageItem(source,args){const uniqueIdentifier=source.uniqueId+source.name+\"_\"+(Array.isArray(args)?args.join(\"_\"):\"\");if(source.uniqueId&&\"done\"===Window.prototype.toString[uniqueIdentifier])return;function logMessage(e,o){var r=arguments.length>2&&void 0!==arguments[2]&&arguments[2],a=!(arguments.length>3&&void 0!==arguments[3])||arguments[3],{name:n,verbose:g}=e;if(r||g){var i=console.log;a?i(`${n}: ${o}`):Array.isArray(o)?i(`${n}:`,...o):i(`${n}:`,o)}}const updatedArgs=args?[].concat(source).concat(args):[source];try{(function(source,key,value){if(void 0!==key)if(void 0!==value){var t,e,parsedValue=(e=t=value,\"$now$\"===t?e=Date.now().toString():\"$currentDate$\"===t?e=Date():\"$currentISODate$\"===t&&(e=(new Date).toISOString()),e),{localStorage:localStorage}=window;!function(e,t,s,a){try{t.setItem(s,a)}catch(t){logMessage(e,`Unable to set storage item due to: ${t.message}`)}}(source,localStorage,key,parsedValue),function(e){if(e.verbose){try{var n=console.trace.bind(console),i=\"[AdGuard] \";\"corelibs\"===e.engine?i+=e.ruleText:(e.domainName&&(i+=`${e.domainName}`),e.args?i+=`#%#//scriptlet('${e.name}', '${e.args.join(\"', '\")}')`:i+=`#%#//scriptlet('${e.name}')`),n&&n(i)}catch(e){}\"function\"==typeof window.__debug&&window.__debug(e)}}(source)}else logMessage(source,\"Item value should be specified\");else logMessage(source,\"Item key should be specified\")}).apply(this,updatedArgs),source.uniqueId&&Object.defineProperty(Window.prototype.toString,uniqueIdentifier,{value:\"done\",enumerable:!1,writable:!1,configurable:!1})}catch(e){console.log(e)}}"
        },
        {
            "names": [
                "trusted-set-session-storage-item"
            ],
            "scriptlet": "function trustedSetSessionStorageItem(source,args){const uniqueIdentifier=source.uniqueId+source.name+\"_\"+(Array.isArray(args)?args.join(\"_\"):\"\");if(source.uniqueId&&\"done\"===Window.prototype.toString[uniqueIdentifier])return;function logMessage(e,o){var r=arguments.length>2&&void 0!==arguments[2]&&arguments[2],a=!(arguments.length>3&&void 0!==arguments[3])||arguments[3],{name:n,verbose:g}=e;if(r||g){var i=console.log;a?i(`${n}: ${o}`):Array.isArray(o)?i(`${n}:`,...o):i(`${n}:`,o)}}const updatedArgs=args?[].concat(source).concat(args):[source];try{(function(source,key,value){if(void 0!==key)if(void 0!==value){var t,e,parsedValue=(e=t=value,\"$now$\"===t?e=Date.now().toString():\"$currentDate$\"===t?e=Date():\"$currentISODate$\"===t&&(e=(new Date).toISOString()),e),{sessionStorage:sessionStorage}=window;!function(e,t,s,a){try{t.setItem(s,a)}catch(t){logMessage(e,`Unable to set storage item due to: ${t.message}`)}}(source,sessionStorage,key,parsedValue),function(e){if(e.verbose){try{var n=console.trace.bind(console),i=\"[AdGuard] \";\"corelibs\"===e.engine?i+=e.ruleText:(e.domainName&&(i+=`${e.domainName}`),e.args?i+=`#%#//scriptlet('${e.name}', '${e.args.join(\"', '\")}')`:i+=`#%#//scriptlet('${e.name}')`),n&&n(i)}catch(e){}\"function\"==typeof window.__debug&&window.__debug(e)}}(source)}else logMessage(source,\"Item value should be specified\");else logMessage(source,\"Item key should be specified\")}).apply(this,updatedArgs),source.uniqueId&&Object.defineProperty(Window.prototype.toString,uniqueIdentifier,{value:\"done\",enumerable:!1,writable:!1,configurable:!1})}catch(e){console.log(e)}}"
        },
        {
            "names": [
                "trusted-suppress-native-method"
            ],
            "scriptlet": "function trustedSuppressNativeMethod(source,args){const uniqueIdentifier=source.uniqueId+source.name+\"_\"+(Array.isArray(args)?args.join(\"_\"):\"\");if(source.uniqueId&&\"done\"===Window.prototype.toString[uniqueIdentifier])return;function logMessage(e,o){var r=arguments.length>2&&void 0!==arguments[2]&&arguments[2],a=!(arguments.length>3&&void 0!==arguments[3])||arguments[3],{name:n,verbose:g}=e;if(r||g){var i=console.log;a?i(`${n}: ${o}`):Array.isArray(o)?i(`${n}:`,...o):i(`${n}:`,o)}}function getPropertyInChain(e,r){var n=r.indexOf(\".\");if(-1===n)return{base:e,prop:r};var i=r.slice(0,n);if(null===e)return{base:e,prop:i,chain:r};var t=e[i];return r=r.slice(n+1),(e instanceof Object||\"object\"==typeof e)&&function(t){return 0===Object.keys(t).length&&!t.prototype}(e)||null===t?{base:e,prop:i,chain:r}:void 0!==t?getPropertyInChain(t,r):(Object.defineProperty(e,i,{configurable:!0}),{base:e,prop:i,chain:r})}function isValueMatched(t,r){return\"function\"!=typeof t&&(nativeIsNaN(t)?nativeIsNaN(r):null==t||\"number\"==typeof t||\"boolean\"==typeof t?t===r:\"string\"==typeof t?(\"string\"==typeof r||r instanceof RegExp)&&function(t,n){return\"string\"==typeof n?\"\"===n?t===n:t.includes(n):n instanceof RegExp&&n.test(t)}(t,r):Array.isArray(t)&&Array.isArray(r)?function(r,n){if(0===r.length)return 0===n.length;if(0===n.length)return!1;for(var t,_loop=function(){var t=n[e];return r.some((function(r){return isValueMatched(r,t)}))?0:{v:!1}},e=0;e<n.length;e+=1)if(0!==(t=_loop())&&t)return t.v;return!0}(t,r):!(!isArbitraryObject(t)||!isArbitraryObject(r))&&function(e,t){for(var r=Object.keys(t),a=0;a<r.length;a+=1){var c=r[a];if(!isValueMatched(e[c],t[c]))return!1}return!0}(t,r))}function toRegExp(e){var r=e||\"\",t=\"/\";if(\"\"===r)return new RegExp(\".?\");var n,i,s=r.lastIndexOf(t),a=r.substring(s+1),g=r.substring(0,s+1),u=(i=a,(n=g).startsWith(t)&&n.endsWith(t)&&!n.endsWith(\"\\\\/\")&&function(e){if(!e)return!1;try{return new RegExp(\"\",e),!0}catch(e){return!1}}(i)?i:\"\");if(r.startsWith(t)&&r.endsWith(t)||u)return new RegExp((u?g:r).slice(1,-1),u);var c=r.replace(/\\\\'/g,\"'\").replace(/\\\\\"/g,'\"').replace(/[.*+?^${}()|[\\]\\\\]/g,\"\\\\$&\");return new RegExp(c)}function nativeIsNaN(N){return(Number.isNaN||window.isNaN)(N)}function isArbitraryObject(r){return!(null===r||\"object\"!=typeof r||Array.isArray(r)||r instanceof RegExp)}function restoreRegExpValues(e){if(e.length)try{var r;r=1===e.length?`(${e[0]})`:e.reduce((function(e,r,t){return 1===t?`(${e}),(${r})`:`${e},(${r})`}));var t=new RegExp(r);e.toString().replace(t,\"\")}catch(e){var n=`Failed to restore RegExp values: ${e}`;console.log(n)}}const updatedArgs=args?[].concat(source).concat(args):[source];try{(function(source,methodPath,signatureStr){var stack=arguments.length>4&&void 0!==arguments[4]?arguments[4]:\"\";if(methodPath&&signatureStr){var r,n,signatureMatcher,suppress=\"abort\"===(arguments.length>3&&void 0!==arguments[3]?arguments[3]:\"abort\")?(r=Math.random().toString(36).slice(2,9),n=!1,function(){throw n||(window.onerror=function(r){var n=window.onerror;return function(e){if(\"string\"==typeof e&&e.includes(r))return!0;if(n instanceof Function){for(var t=arguments.length,o=new Array(t>1?t-1:0),i=1;i<t;i++)o[i-1]=arguments[i];return n.apply(window,[e,...o])}return!1}}(r),n=!0),new ReferenceError(r)}):function(){};try{signatureMatcher=function(e){for(var i=[],n=\"\",t=!1,f=0;f<e.length;){var r=e[f];if(t){if(\"/\"===r){for(var u=0,o=n.length-1;o>=0&&\"\\\\\"===n[o];)u+=1,o-=1;if(u%2==0){for(n+=r,f+=1;f<e.length&&/[gimsuy]/.test(e[f]);)n+=e[f],f+=1;t=!1;continue}}}else{if(\"/\"===r&&\"\"===n){t=!0,n+=r,f+=1;continue}if(\"|\"===r){i.push(n),n=\"\",f+=1;continue}}n+=r,f+=1}return i.push(n),i}(signatureStr).map((function(value){return\" \"===value?value:function(r){if(\"undefined\"!==r){if(\"false\"===r)return!1;if(\"true\"===r)return!0;if(\"null\"===r)return null;if(\"NaN\"===r)return NaN;if(r.startsWith(\"/\")&&r.endsWith(\"/\"))return toRegExp(r);var e=Number(r);if(!nativeIsNaN(e)){if(Math.abs(e)>32767)throw new Error(\"number values bigger than 32767 are not allowed\");return e}try{var t=JSON.parse(r);if(t instanceof Object||\"string\"==typeof t)return t}catch(e){return r}return r}}(value)}))}catch(e){return void logMessage(source,`Could not parse the signature matcher: ${function(e){var r;if(\"object\"==typeof(r=e)&&null!==r&&\"message\"in r&&\"string\"==typeof r.message)return e.message;try{return new Error(JSON.stringify(e)).message}catch(r){return new Error(String(e)).message}}(e)}`)}var getPathParts=getPropertyInChain,{base:base,chain:chain,prop:prop}=getPathParts(window,methodPath);if(void 0===chain){var nativeMethod=base[prop];if(nativeMethod&&\"function\"==typeof nativeMethod){var isMatchingSuspended=!1;base[prop]=new Proxy(nativeMethod,{apply:function(target,thisArg,argumentsList){if(isMatchingSuspended)return Reflect.apply(target,thisArg,argumentsList);if(isMatchingSuspended=!0,stack&&!function(e,t){if(!e||\"\"===e)return!0;var r=function(){try{for(var r=[],e=1;e<10;e+=1){var a=`$${e}`;if(!RegExp[a])break;r.push(RegExp[a])}return r}catch(r){return[]}}();if(function(t,i){var r=\"inlineScript\",n=\"injectedScript\",isInlineScript=function(t){return t.includes(r)},isInjectedScript=function(t){return t.includes(n)};if(!isInlineScript(t)&&!isInjectedScript(t))return!1;var e=window.location.href,s=e.indexOf(\"#\");-1!==s&&(e=e.slice(0,s));var c=i.split(\"\\n\").slice(2).map((function(t){return t.trim()})).map((function(t){var i,s=/(.*?@)?(\\S+)(:\\d+)(:\\d+)\\)?$/.exec(t);if(s){var c,l,a=s[2],u=s[3],o=s[4];if(null!==(c=a)&&void 0!==c&&c.startsWith(\"(\")&&(a=a.slice(1)),null!==(l=a)&&void 0!==l&&l.startsWith(\"<anonymous>\")){var d;a=n;var f=void 0!==s[1]?s[1].slice(0,-1):t.slice(0,s.index).trim();null!==(d=f)&&void 0!==d&&d.startsWith(\"at\")&&(f=f.slice(2).trim()),i=`${f} ${a}${u}${o}`.trim()}else i=a===e?`${r}${u}${o}`.trim():`${a}${u}${o}`.trim()}else i=t;return i}));if(c)for(var l=0;l<c.length;l+=1){if(isInlineScript(t)&&c[l].startsWith(r)&&c[l].match(toRegExp(t)))return!0;if(isInjectedScript(t)&&c[l].startsWith(n)&&c[l].match(toRegExp(t)))return!0}return!1}(e,t))return r.length&&r[0]!==RegExp.$1&&restoreRegExpValues(r),!0;var n=toRegExp(e),a=t.split(\"\\n\").slice(2).map((function(e){return e.trim()})).join(\"\\n\");return r.length&&r[0]!==RegExp.$1&&restoreRegExpValues(r),function(){var t=Object.getOwnPropertyDescriptor(RegExp.prototype,\"test\"),e=null==t?void 0:t.value;if(t&&\"function\"==typeof t.value)return e;throw new Error(\"RegExp.prototype.test is not a function\")}().call(n,a)}(stack,(new Error).stack||\"\"))return isMatchingSuspended=!1,Reflect.apply(target,thisArg,argumentsList);var nativeArguments,isMatching=(nativeArguments=argumentsList,signatureMatcher.every((function(matcher,i){return\" \"===matcher||isValueMatched(nativeArguments[i],matcher)})));return isMatchingSuspended=!1,isMatching?(function(e){if(e.verbose){try{var n=console.trace.bind(console),i=\"[AdGuard] \";\"corelibs\"===e.engine?i+=e.ruleText:(e.domainName&&(i+=`${e.domainName}`),e.args?i+=`#%#//scriptlet('${e.name}', '${e.args.join(\"', '\")}')`:i+=`#%#//scriptlet('${e.name}')`),n&&n(i)}catch(e){}\"function\"==typeof window.__debug&&window.__debug(e)}}(source),suppress()):Reflect.apply(target,thisArg,argumentsList)}})}else logMessage(source,`Could not retrieve the method: ${methodPath}`)}else logMessage(source,`Could not reach the end of the prop chain: ${methodPath}`)}}).apply(this,updatedArgs),source.uniqueId&&Object.defineProperty(Window.prototype.toString,uniqueIdentifier,{value:\"done\",enumerable:!1,writable:!1,configurable:!1})}catch(e){console.log(e)}}"
        },
        {
            "names": [
                "xml-prune",
                "xml-prune.js",
                "ubo-xml-prune.js",
                "ubo-xml-prune"
            ],
            "scriptlet": "function xmlPrune(source,args){const uniqueIdentifier=source.uniqueId+source.name+\"_\"+(Array.isArray(args)?args.join(\"_\"):\"\");if(source.uniqueId&&\"done\"===Window.prototype.toString[uniqueIdentifier])return;function hit(e){if(e.verbose){try{var n=console.trace.bind(console),i=\"[AdGuard] \";\"corelibs\"===e.engine?i+=e.ruleText:(e.domainName&&(i+=`${e.domainName}`),e.args?i+=`#%#//scriptlet('${e.name}', '${e.args.join(\"', '\")}')`:i+=`#%#//scriptlet('${e.name}')`),n&&n(i)}catch(e){}\"function\"==typeof window.__debug&&window.__debug(e)}}function logMessage(e,o){var r=arguments.length>2&&void 0!==arguments[2]&&arguments[2],a=!(arguments.length>3&&void 0!==arguments[3])||arguments[3],{name:n,verbose:g}=e;if(r||g){var i=console.log;a?i(`${n}: ${o}`):Array.isArray(o)?i(`${n}:`,...o):i(`${n}:`,o)}}function toRegExp(e){var r=e||\"\",t=\"/\";if(\"\"===r)return new RegExp(\".?\");var n,i,s=r.lastIndexOf(t),a=r.substring(s+1),g=r.substring(0,s+1),u=(i=a,(n=g).startsWith(t)&&n.endsWith(t)&&!n.endsWith(\"\\\\/\")&&function(e){if(!e)return!1;try{return new RegExp(\"\",e),!0}catch(e){return!1}}(i)?i:\"\");if(r.startsWith(t)&&r.endsWith(t)||u)return new RegExp((u?g:r).slice(1,-1),u);var c=r.replace(/\\\\'/g,\"'\").replace(/\\\\\"/g,'\"').replace(/[.*+?^${}()|[\\]\\\\]/g,\"\\\\$&\");return new RegExp(c)}function getXhrData(r,t,a,e,n){return{method:r,url:t,async:a,user:e,password:n}}const updatedArgs=args?[].concat(source).concat(args):[source];try{(function(source,propsToRemove){var optionalProp=arguments.length>2&&void 0!==arguments[2]?arguments[2]:\"\",urlToMatch=arguments.length>3&&void 0!==arguments[3]?arguments[3]:\"\";if(\"undefined\"!=typeof Reflect&&\"undefined\"!=typeof fetch&&\"undefined\"!=typeof Proxy&&\"undefined\"!=typeof Response){var xhrData,shouldPruneResponse=!1,shouldLogContent=\"true\"===(arguments.length>4&&void 0!==arguments[4]&&arguments[4]),urlMatchRegexp=toRegExp(urlToMatch),isXpath=propsToRemove&&propsToRemove.startsWith(\"xpath(\"),getXPathElements=function(contextNode){var matchedElements=[];try{for(var elementsToRemove=propsToRemove.slice(6,-1),xpathResult=contextNode.evaluate(elementsToRemove,contextNode,null,XPathResult.UNORDERED_NODE_SNAPSHOT_TYPE,null),i=0;i<xpathResult.snapshotLength;i+=1)matchedElements.push(xpathResult.snapshotItem(i))}catch(ex){logMessage(source,`Invalid XPath parameter: ${propsToRemove}\\n${ex}`)}return matchedElements},isXML=function(text){if(\"string\"==typeof text){var trimmedText=text.trim();if(trimmedText.startsWith(\"<\")&&trimmedText.endsWith(\">\"))return!0}return!1},createXMLDocument=function(text){return(new DOMParser).parseFromString(text,\"text/xml\")},isPruningNeeded=function(response,propsToRemove){if(!isXML(response))return!1;var docXML=createXMLDocument(response);return isXpath?getXPathElements(docXML):!!docXML.querySelector(propsToRemove)},pruneXML=function(text){if(!isXML(text))return shouldPruneResponse=!1,text;var xmlDoc=createXMLDocument(text);if(xmlDoc.querySelector(\"parsererror\"))return text;if(\"\"!==optionalProp&&null===xmlDoc.querySelector(optionalProp))return shouldPruneResponse=!1,text;var elements=isXpath?getXPathElements(xmlDoc):xmlDoc.querySelectorAll(propsToRemove);if(!elements.length)return shouldPruneResponse=!1,text;if(shouldLogContent){var cloneXmlDoc=xmlDoc.cloneNode(!0);logMessage(source,\"Original xml:\"),logMessage(source,cloneXmlDoc,!0,!1)}return isXpath?elements.forEach((function(element){1===element.nodeType?element.remove():2===element.nodeType&&element.ownerElement.removeAttribute(element.nodeName)})):elements.forEach((function(elem){elem.remove()})),shouldLogContent&&(logMessage(source,\"Modified xml:\"),logMessage(source,xmlDoc,!0,!1)),(new XMLSerializer).serializeToString(xmlDoc)},nativeOpen=window.XMLHttpRequest.prototype.open,nativeSend=window.XMLHttpRequest.prototype.send,matchedXhrRequests=new Set,xhrRequestHeaders=new Map,openHandler={apply:function(target,thisArg,args){if(xhrData=getXhrData.apply(null,args),function(e,t,r){if(\"\"===t||\"*\"===t)return!0;var a,s=function(e){var r={};return e.split(\" \").forEach((function(e){var n=e.indexOf(\":\"),i=e.slice(0,n);if(function(e){return[\"url\",\"method\",\"headers\",\"body\",\"credentials\",\"cache\",\"redirect\",\"referrer\",\"referrerPolicy\",\"integrity\",\"keepalive\",\"signal\",\"mode\"].includes(e)}(i)){var s=e.slice(n+1);r[i]=s}else r.url=e})),r}(t);if(function(t){return Object.values(t).every((function(t){return function(e){var t,n=function(e){return e.replace(/[.*+?^${}()|[\\]\\\\]/g,\"\\\\$&\")}(e);\"/\"===e[0]&&\"/\"===e[e.length-1]&&(n=e.slice(1,-1));try{t=new RegExp(n),t=!0}catch(e){t=!1}return t}(t)}))}(s)){var n=function(t){var a={};return Object.keys(t).forEach((function(c){a[c]=toRegExp(t[c])})),a}(s);a=Object.keys(n).every((function(e){var t=n[e],a=r[e];return Object.prototype.hasOwnProperty.call(r,e)&&\"string\"==typeof a&&(null==t?void 0:t.test(a))}))}else logMessage(e,`Invalid parameter: ${t}`),a=!1;return a}(source,urlToMatch,xhrData)&&matchedXhrRequests.add(thisArg),matchedXhrRequests.has(thisArg)&&!xhrRequestHeaders.has(thisArg)){xhrRequestHeaders.set(thisArg,[]);var setRequestHeaderHandler={apply:function(target,thisArg,args){var headers=xhrRequestHeaders.get(thisArg);return headers&&headers.push(args),Reflect.apply(target,thisArg,args)}};thisArg.setRequestHeader=new Proxy(thisArg.setRequestHeader,setRequestHeaderHandler)}return Reflect.apply(target,thisArg,args)}},sendHandler={apply:function(target,thisArg,args){if(!matchedXhrRequests.has(thisArg)||![\"\",\"text\"].includes(thisArg.responseType))return Reflect.apply(target,thisArg,args);var forgedRequest=new XMLHttpRequest;forgedRequest.withCredentials=thisArg.withCredentials,forgedRequest.addEventListener(\"readystatechange\",(function(){if(4===forgedRequest.readyState){var{readyState:readyState,response:response,responseText:responseText,responseURL:responseURL,responseXML:responseXML,status:status,statusText:statusText}=forgedRequest;if(\"string\"==typeof(responseText||response)){propsToRemove?shouldPruneResponse=isPruningNeeded(response,propsToRemove):isXML(response)&&(logMessage(source,`XMLHttpRequest.open() URL: ${responseURL}\\nresponse: ${response}`),logMessage(source,createXMLDocument(response),!0,!1));var responseContent=shouldPruneResponse?pruneXML(response):response;Object.defineProperties(thisArg,{readyState:{value:readyState,writable:!1},responseURL:{value:responseURL,writable:!1},responseXML:{value:responseXML,writable:!1},status:{value:status,writable:!1},statusText:{value:statusText,writable:!1},response:{value:responseContent,writable:!1},responseText:{value:responseContent,writable:!1}}),setTimeout((function(){var stateEvent=new Event(\"readystatechange\");thisArg.dispatchEvent(stateEvent);var loadEvent=new ProgressEvent(\"load\");thisArg.dispatchEvent(loadEvent);var loadEndEvent=new ProgressEvent(\"loadend\");thisArg.dispatchEvent(loadEndEvent)}),1),shouldPruneResponse&&hit(source)}}})),nativeOpen.apply(forgedRequest,[xhrData.method,xhrData.url]),(xhrRequestHeaders.get(thisArg)||[]).forEach((function(header){var name=header[0],value=header[1];forgedRequest.setRequestHeader(name,value)})),xhrRequestHeaders.delete(thisArg),matchedXhrRequests.delete(thisArg);try{Reflect.apply(nativeSend,forgedRequest,args)}catch(_unused){return Reflect.apply(target,thisArg,args)}}};XMLHttpRequest.prototype.open=new Proxy(XMLHttpRequest.prototype.open,openHandler),XMLHttpRequest.prototype.send=new Proxy(XMLHttpRequest.prototype.send,sendHandler);var nativeFetch=window.fetch,fetchHandler={apply:async function(target,thisArg,args){var fetchURL=args[0]instanceof Request?args[0].url:args[0];if(\"string\"!=typeof fetchURL||0===fetchURL.length)return Reflect.apply(target,thisArg,args);if(urlMatchRegexp.test(fetchURL)){var response=await nativeFetch(...args),clonedResponse=response.clone(),responseText=await response.text();if(!(shouldPruneResponse=isPruningNeeded(responseText,propsToRemove)))return logMessage(source,`fetch URL: ${fetchURL}\\nresponse text: ${responseText}`),logMessage(source,createXMLDocument(responseText),!0,!1),clonedResponse;var prunedText=pruneXML(responseText);return shouldPruneResponse?(hit(source),new Response(prunedText,{status:response.status,statusText:response.statusText,headers:response.headers})):clonedResponse}return Reflect.apply(target,thisArg,args)}};window.fetch=new Proxy(window.fetch,fetchHandler)}}).apply(this,updatedArgs),source.uniqueId&&Object.defineProperty(Window.prototype.toString,uniqueIdentifier,{value:\"done\",enumerable:!1,writable:!1,configurable:!1})}catch(e){console.log(e)}}"
        }
    ]
}