douyinWEB/backend/neko/tampermonkey-seed/Default/Extensions/dhdgffkkebhmkfjojejmpbldmpobfkfo/5.5.0_0/extension.js
eric d409e416da Ship physical dual-edge stack, Studio CDP live metrics, and ops tooling.
Capture Neko/WG/network hubs, Studio viewer charts, physical deploy docs, and one-shot scripts so VPS vs physical can be toggled later without losing WIP.

Co-authored-by: Cursor <cursoragent@cursor.com>
2026-09-04 22:42:40 -05:00

939 lines
522 KiB
JavaScript
Raw Blame History

This file contains invisible Unicode characters

This file contains invisible Unicode characters that are indistinguishable to humans but may be processed differently by a computer. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

(()=>{function e(i){var r=n[i];if(void 0!==r)return r.exports;var s=n[i]={exports:{}};return t[i](s,s.exports,e),s.exports}var t={2672:e=>{e.exports={meta:{type:"suggestion",docs:{description:"aligns attributes in the metadata",category:"Stylistic Issues"},schema:[{type:"integer",minimum:1,default:2}],messages:{spaceMetadata:"The metadata is not spaced"},fixable:"code"},create:e=>{const t=e.options[0]||2,n=e.getSourceCode(),i=n.getAllComments();let r=!1,s=!1,o=[],a={},l={}
;for(const e of i.filter((e=>"Line"===e.type)))s||(r&&"==/UserScript=="===e.value.trim()?(l=e.loc.end,s=!0):r||"==UserScript=="!==e.value.trim()?r&&e.value.trim().startsWith("@")&&o.push({key:e.value.trim().slice(1).split(/\s/)[0],space:/^\S*(\s+)/.exec(e.value.trim().slice(1))[1].length,line:e.loc.start.line,comment:e}):(a=e.loc.start,r=!0));if(0===Object.keys(l).length&&(l=n.getLocFromIndex(n.getText().length)),0===o.length)return{};const c=Math.max(...o.map((e=>e.key.length)))+t
;return(o.map((e=>e.space)).sort()[0]<t||o.map((e=>e.key.length+e.space)).find((e=>e!==c)))&&e.report({loc:{start:a,end:l},messageId:"spaceMetadata",fix:function(e){const t=[];for(const i of o)if(i.key.length+i.space!==c){const r=/^(.*?@\S*)/.exec(n.getLines()[i.line-1])[1].length;t.push(e.replaceTextRange([n.getIndexFromLoc({line:i.line,column:r}),n.getIndexFromLoc({line:i.line,column:r+i.space})]," ".repeat(c-i.key.length)))}return t}}),{}}}},3316:(e,t,n)=>{const i=n(2598)
;e.exports=i("include",!1,(({attrVal:e,context:t})=>{e.val.startsWith("/")&&t.report({loc:{start:{line:e.loc.start.line,column:0},end:e.loc.end},messageId:"avoidRegExpInclude"})}),{avoidRegExpInclude:"Using a regular expression at '@include' can cause performance issues. Use a regular @include or @match instead."})},8039:e=>{e.exports={meta:{type:"suggestion",docs:{description:"ensure userscripts end with .user.js",category:"Best Practices"},schema:[{enum:["always","never"]}],messages:{
filenameExtension:"Rename '{{ oldFilename }}' to '{{ newFilename }}'"}},create:e=>{const t=e.getFilename();return"<input>"===t||"<text>"===t?{}:{Program(){(!t.endsWith(".user.js")&&(!e.options[0]||"always"===e.options[0])||t.endsWith(".user.js")&&"never"===e.options[0])&&e.report({loc:{column:0,line:1},messageId:"filenameExtension",data:{newFilename:t.replace("always"===e.options[0]?/.js$/:/.user.js$/,"always"===e.options[0]?".user.js":".js"),oldFilename:t}})}}}}},70:(e,t,n)=>{
const i=n(2598),r=["addElement","addStyle","addValueChangeListener","cookie","deleteValue","deleteValues","download","getResourceText","getResourceURL","getTab","getTabs","getValue","getValues","info","listValues","log","notification","openInTab","registerMenuCommand","removeValueChangeListener","saveTab","setClipboard","setValue","setValues","unregisterMenuCommand","webRequest","xmlhttpRequest"].map((e=>`GM_${e}`)),s=["addElement","addStyle","addValueChangeListener","cookie","deleteValue","deleteValues","download","getResourceText","getResourceUrl","getTab","getTabs","getValue","getValues","info","listValues","log","notification","openInTab","registerMenuCommand","removeValueChangeListener","saveTab","setClipboard","setValue","setValues","unregisterMenuCommand","webRequest","xmlHttpRequest"].map((e=>`GM.${e}`)),o=new Set([...r,...s,"none","unsafeWindow","window.close","window.focus","window.onurlchange"])
;e.exports=i("grant",!1,(({attrVal:e,context:t})=>{const n=e.val;o.has(n)||t.report({loc:{start:{line:e.loc.start.line,column:0},end:e.loc.end},messageId:"grantHasInvalidArgument",data:{argument:n}})}),{grantHasInvalidArgument:"'{{ argument }}' is not a valid @grant argument"})},8754:(e,t,n)=>{
const i=n(2598),r=new Set(["antifeature","author","connect","contributor","contributors","copyright","defaulticon","description","developer","downloadURL","exclude","grant","history","homepage","homepageURL","icon","icon64","icon64URL","iconURL","include","license","match","name","namespace","nocompat","noframes","require","resource","run-at","run-in","sandbox","source","supportURL","tag","unwrap","updateURL","version","website"].map((e=>`@${e}`))),s=["name","description","antifeature"].map((e=>new RegExp(`^@${e}(:\\S+)?$`)))
;e.exports=i("headers",!1,(({attrVal:e,context:t})=>{const n=t.options[0],i=new Set((n&&n.allowed||[]).map((e=>`@${e}`)));for(const n of e){const e=`@${n.key}`;r.has(e)||i.has(e)||s.some((t=>t.test(e)))||t.report({loc:{start:{line:n.loc.start.line,column:0},end:n.loc.end},messageId:"invalidHeader",data:{header:e}})}}),{invalidHeader:"'{{ header }}' is not a valid userscript header"},!1,/./,!0,[{type:"object",properties:{allowed:{type:"array"}},additionalProperties:!1}])},1763:e=>{e.exports={
meta:{type:"suggestion",docs:{description:"ensure userscripts have valid metadata",category:"Possible Errors"},messages:{metadataRequired:"Add metadata to the userscript",moveMetadataToTop:"Move the metadata to the top of the file",noClosingMetadata:"Closing metadata comment not found",noCodeBetween:"Code found between in metadata",attributeNotStartsWithAtTheRate:"Attributes should begin with @"},schema:[{type:"object",properties:{top:{enum:["required","optional"],default:"required"}},
additionalProperties:!1}]},create:e=>{const t=e.getSourceCode(),n=t.getAllComments(),i=t.lines;let r=!1,s=!1;for(const[t,n]of i.entries()){if(s)continue;const i={start:{line:t+1,column:0},end:{line:t+1,column:n.length}};r&&!n.trim().startsWith("//")&&n.trim()?e.report({loc:i,messageId:"noCodeBetween"
}):r&&n.trim().startsWith("//")&&"==/UserScript=="===n.trim().slice(2).trim()?s=!0:!r&&n.trim().startsWith("//")&&"==UserScript=="===n.trim().slice(2).trim()?r=!0:r&&!n.trim().slice(2).trim().startsWith("@")&&n.trim().slice(2).trim()&&e.report({loc:i,messageId:"attributeNotStartsWithAtTheRate"})}return{Program(t){0!==n.length&&n.find((e=>"==UserScript=="===e.value.trim()&&"Line"===e.type))?(n.find((e=>"==/UserScript=="===e.value.trim()&&"Line"===e.type))||e.report({
loc:n.find((e=>"==UserScript=="===e.value.trim()&&"Line"===e.type)).loc,messageId:"noClosingMetadata"}),e.options[0]&&e.options[0].top&&"required"!==e.options[0].top||"==UserScript=="===n[0].value.trim()&&1===n[0].loc.start.line||e.report({loc:n.find((e=>"==UserScript=="===e.value.trim()&&"Line"===e.type)).loc,messageId:"moveMetadataToTop"})):e.report({node:t,messageId:"metadataRequired"})}}}}},4350:e=>{e.exports={meta:{type:"suggestion",docs:{
description:"ensure atributes are prefixed by one space",category:"Possible Errors"},messages:{attributeNotPrefixedBySpace:"Attributes should be prefixed by one space"},schema:[]},create:e=>{const t=e.getSourceCode().lines;let n=!1,i=!1;for(const[r,s]of t.entries()){if(i)continue;const t=s.trim()
;n&&t.startsWith("//")&&"==/UserScript=="===t.slice(2).trim()?i=!0:!n&&t.startsWith("//")&&"==UserScript=="===t.slice(2).trim()?n=!0:n&&t.slice(2).trim().startsWith("@")&&t.startsWith("//")&&(!t.startsWith("// ")||t.startsWith("// "))&&e.report({loc:{start:{line:r+1,column:0},end:{line:r+1,column:s.length}},messageId:"attributeNotPrefixedBySpace"})}return{}}}},230:(e,t,n)=>{const i=n(2598);e.exports=i("description",!0,(({attrVal:e,context:t})=>{let n=[]
;for(let i of e)n.includes(i.key)?t.report({loc:i.loc,messageId:"multipleDescriptions"}):n.push(i.key)}),{multipleDescriptions:"Include only one description for each language"},!1,/^description(:\S+)?$/,!0)},8295:(e,t,n)=>{const i=n(2598),r=/^name(:\S+)?$/;e.exports=i("name",!0,(({attrVal:e,context:t,metadata:n})=>{let i=[];for(let n of e)i.includes(n.key)?t.report({loc:n.loc,messageId:"multipleNames"}):i.push(n.key);const s=Object.values(n)
;if(s.find(((e,t)=>0!==t&&r.test(e[0]?e[0].key:e.key)&&!r.test(s[t-1][0]?s[t-1][0].key:s[t-1].key)))){const n=t.getSourceCode(),i=n.getAllComments(),r=i.find((e=>"==/UserScript=="===e.value.trim()&&"Line"===e.type));t.report({loc:{start:i.find((e=>"==UserScript=="===e.value.trim()&&"Line"===e.type)).loc.start,end:r?r.loc.end:{line:n.lines.length,column:0}},messageId:"nameAtBeginning",fix:function(n){let i=[];for(let r of e){Array.isArray(r)||(r=[r])
;for(let e of r)i.push(n.removeRange(e.comment.range.map(((n,i)=>0===i?n-t.getSourceCode().lines[e.loc.start.line-1].split("//")[0].length-1:n))))}return i.push(n.insertTextAfterRange(t.getSourceCode().getAllComments().find((e=>"==UserScript=="===e.value.trim())).range,e.sort(((e,t)=>"name"===e.key?-1:"name"===t.key?1:0)).map((e=>`\n${t.getSourceCode().lines[e.loc.start.line-1].split("//")[0]}//${e.comment.value}`)).join(""))),i}})}}),{multipleNames:"Include only one name for each language",
nameAtBeginning:"The names should be at the beginning of the metadata"},!0,r,!0)},3880:(e,t,n)=>{const i=n(2598);e.exports=i("version",!0,(({attrVal:e,index:t,context:n})=>{t>0&&n.report({loc:e.loc,messageId:"multipleVersions"}),/^([^\s.]+)(\.[^\s.]+)*$/.test(e.val)||n.report({loc:{start:{line:e.loc.start.line,column:/^(\s*\/\/\s*)/.exec(n.getSourceCode().lines[e.comment.loc.start.line])[1].length-1},end:e.loc.end},messageId:"invalidVersion"})}),{multipleVersions:"Include only one version",
invalidVersion:"Invalid version"})},2215:(e,t,n)=>{const i=n(2598),r=["downloadURL","updateURL"];e.exports=i(r,!1,(({attrVal:e,metadata:t,context:n,keyName:i})=>{const s=r.find((e=>e!==i));t[s]||n.report({loc:e.loc,messageId:"missingAttribute",data:{attribute:s},fix:function(t){return t.insertTextAfterRange(e.comment.range,`\n${n.getSourceCode().lines[e.comment.loc.start.line-1].replace(/^(\s*\/\/\s*@)\S*/,"$1"+s)}`)}})}),{
missingAttribute:"Didn't find attribute '{{ attribute }}' in the metadata"},!0)},1933:(e,t,n)=>{const i=n(2598),r=["homepage","homepageURL"];e.exports=i(r,!1,(({attrVal:e,metadata:t,context:n,keyName:i})=>{const s=r.find((e=>e!==i));t[s]||n.report({loc:e.loc,messageId:"missingAttribute",data:{attribute:s},fix:function(t){return t.insertTextAfterRange(e.comment.range,`\n${n.getSourceCode().lines[e.comment.loc.start.line-1].replace(/^(\s*\/\/\s*@)\S*/,"$1"+s)}`)}})}),{
missingAttribute:"Didn't find attribute '{{ attribute }}' in the metadata"},!0)},2598:e=>{e.exports=function(e,t,n=!1,i={},r=!1,s=new RegExp("^("+("string"==typeof e?e:e.join("|"))+")$"),o=!1,a){return"string"==typeof e&&(e=[e]),{meta:{type:"suggestion",docs:{description:`${t?"require "+(n?"and validate ":""):"validate "}${e.join(" and ")} in the metadata for userscripts`,category:"Best Practices"},schema:t?[{enum:["required","optional"],default:"required"}]:a||void 0,messages:{
missingAttribute:`Didn't find attribute '${e}' in the metadata`,...i},fixable:r?"code":void 0},create:e=>{const i=e.getSourceCode().getAllComments();let r=!1,a=!1,l=!1,c={};for(const e of i.filter((e=>"Line"===e.type)))if(!l)if(r&&"==/UserScript=="===e.value.trim())l=!0;else if(r||"==UserScript=="!==e.value.trim()){if(r&&e.value.trim().startsWith("@")){const t=e.value.trim().slice(1).split(/[\t ]/)[0],n={val:e.value.trim().slice(1).split(/[\t ]/).slice(1).join(" ").trim(),loc:e.loc,comment:e,
key:t};if(c[t]){Array.isArray(c[t])||(c[t]=[c[t]]),c[t].push(n);continue}c[t]=n}}else r=!0,a=!0;const d=Object.keys(c);if(!t||!a||e.options[0]&&"required"!==e.options[0]||d.find((e=>s.test(e)))){if(n&&d.find((e=>s.test(e))))if(o){const t=[];for(const e in d)s.test(d[e])&&t.push(+e);const i=t.map((e=>c[d[e]])).reduce(((e,t)=>Array.isArray(t)?[...e,...t]:[...e,t]),[]);n({attrVal:i,index:[...i.keys()],indexMatch:t.reduce(((e,t)=>Array.isArray(c[d[t]])?[...e,...c[d[t]].map((()=>d))]:[...e,t]),[]),
metadata:c,context:e,keyName:t.map((e=>d[e]))})}else for(const t in d)if(s.test(d[t]))if(Array.isArray(c[d[t]]))for(const[i,r]of c[d[t]].entries())n({attrVal:r,index:i,indexMatch:t,metadata:c,context:e,keyName:d[t]});else n({attrVal:c[d[t]],index:0,indexMatch:t,metadata:c,context:e,keyName:d[t]})}else e.report({loc:i.find((e=>"==UserScript=="===e.value.trim()&&"Line"===e.type)).loc,messageId:"missingAttribute"});return{}}}}},2462:(e,t,n)=>{e.exports=function e(t,n,i){function r(o){if(!n[o]){
if(!t[o]){if(s)return s(o,!0);var a=new Error("Cannot find module '"+o+"'");throw a.code="MODULE_NOT_FOUND",a}var l=n[o]={exports:{}};t[o][0].call(l.exports,(function(e){return r(t[o][1][e]||e)}),l,l.exports,e,t,n,i)}return n[o].exports}for(var s=void 0,o=0;o<i.length;o++)r(i[o]);return r}({1:[function(e,t,n){"use strict";var i=e("./utils"),r=e("./support"),s="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=";n.encode=function(e){
for(var t,n,r,o,a,l,c,d=[],u=0,A=e.length,h=A,p="string"!==i.getTypeOf(e);u<e.length;)h=A-u,p?(t=e[u++],n=u<A?e[u++]:0,r=u<A?e[u++]:0):(t=e.charCodeAt(u++),n=u<A?e.charCodeAt(u++):0,r=u<A?e.charCodeAt(u++):0),o=t>>2,a=(3&t)<<4|n>>4,l=h>1?(15&n)<<2|r>>6:64,c=h>2?63&r:64,d.push(s.charAt(o)+s.charAt(a)+s.charAt(l)+s.charAt(c));return d.join("")},n.decode=function(e){var t,n,i,o,a,l,c=0,d=0;if("data:"===e.substr(0,5))throw new Error("Invalid base64 input, it looks like a data url.")
;var u,A=3*(e=e.replace(/[^A-Za-z0-9\+\/\=]/g,"")).length/4;if(e.charAt(e.length-1)===s.charAt(64)&&A--,e.charAt(e.length-2)===s.charAt(64)&&A--,A%1!=0)throw new Error("Invalid base64 input, bad content length.");for(u=r.uint8array?new Uint8Array(0|A):new Array(0|A);c<e.length;)t=s.indexOf(e.charAt(c++))<<2|(o=s.indexOf(e.charAt(c++)))>>4,n=(15&o)<<4|(a=s.indexOf(e.charAt(c++)))>>2,i=(3&a)<<6|(l=s.indexOf(e.charAt(c++))),u[d++]=t,64!==a&&(u[d++]=n),64!==l&&(u[d++]=i);return u}},{"./support":30,
"./utils":32}],2:[function(e,t){"use strict";function n(e,t,n,i,r){this.compressedSize=e,this.uncompressedSize=t,this.crc32=n,this.compression=i,this.compressedContent=r}var i=e("./external"),r=e("./stream/DataWorker"),s=e("./stream/DataLengthProbe"),o=e("./stream/Crc32Probe");s=e("./stream/DataLengthProbe"),n.prototype={getContentWorker:function(){var e=new r(i.Promise.resolve(this.compressedContent)).pipe(this.compression.uncompressWorker()).pipe(new s("data_length")),t=this
;return e.on("end",(function(){if(this.streamInfo.data_length!==t.uncompressedSize)throw new Error("Bug : uncompressed data size mismatch")})),e},getCompressedWorker:function(){return new r(i.Promise.resolve(this.compressedContent)).withStreamInfo("compressedSize",this.compressedSize).withStreamInfo("uncompressedSize",this.uncompressedSize).withStreamInfo("crc32",this.crc32).withStreamInfo("compression",this.compression)}},n.createWorkerFrom=function(e,t,n){
return e.pipe(new o).pipe(new s("uncompressedSize")).pipe(t.compressWorker(n)).pipe(new s("compressedSize")).withStreamInfo("compression",t)},t.exports=n},{"./external":6,"./stream/Crc32Probe":25,"./stream/DataLengthProbe":26,"./stream/DataWorker":27}],3:[function(e,t,n){"use strict";var i=e("./stream/GenericWorker");n.STORE={magic:"\0\0",compressWorker:function(){return new i("STORE compression")},uncompressWorker:function(){return new i("STORE decompression")}},n.DEFLATE=e("./flate")},{
"./flate":7,"./stream/GenericWorker":28}],4:[function(e,t){"use strict";var n=e("./utils"),i=function(){for(var e,t=[],n=0;n<256;n++){e=n;for(var i=0;i<8;i++)e=1&e?3988292384^e>>>1:e>>>1;t[n]=e}return t}();t.exports=function(e,t){return void 0!==e&&e.length?"string"!==n.getTypeOf(e)?function(e,t,n){var r=i,s=0+n;e^=-1;for(var o=0;o<s;o++)e=e>>>8^r[255&(e^t[o])];return-1^e}(0|t,e,e.length):function(e,t,n){var r=i,s=0+n;e^=-1;for(var o=0;o<s;o++)e=e>>>8^r[255&(e^t.charCodeAt(o))];return-1^e
}(0|t,e,e.length):0}},{"./utils":32}],5:[function(e,t,n){"use strict";n.base64=!1,n.binary=!1,n.dir=!1,n.createFolders=!0,n.date=null,n.compression=null,n.compressionOptions=null,n.comment=null,n.unixPermissions=null,n.dosPermissions=null},{}],6:[function(e,t){"use strict";var n;n="undefined"!=typeof Promise?Promise:e("lie"),t.exports={Promise:n}},{lie:37}],7:[function(e,t,n){"use strict";function i(e,t){a.call(this,"FlateWorker/"+e),this._pako=null,this._pakoAction=e,this._pakoOptions=t,
this.meta={}}var r="undefined"!=typeof Uint8Array&&"undefined"!=typeof Uint16Array&&"undefined"!=typeof Uint32Array,s=e("pako"),o=e("./utils"),a=e("./stream/GenericWorker"),l=r?"uint8array":"array";n.magic="\b\0",o.inherits(i,a),i.prototype.processChunk=function(e){this.meta=e.meta,null===this._pako&&this._createPako(),this._pako.push(o.transformTo(l,e.data),!1)},i.prototype.flush=function(){a.prototype.flush.call(this),null===this._pako&&this._createPako(),this._pako.push([],!0)},
i.prototype.cleanUp=function(){a.prototype.cleanUp.call(this),this._pako=null},i.prototype._createPako=function(){this._pako=new s[this._pakoAction]({raw:!0,level:this._pakoOptions.level||-1});var e=this;this._pako.onData=function(t){e.push({data:t,meta:e.meta})}},n.compressWorker=function(e){return new i("Deflate",e)},n.uncompressWorker=function(){return new i("Inflate",{})}},{"./stream/GenericWorker":28,"./utils":32,pako:38}],8:[function(e,t){"use strict";function n(e,t,n,i){
r.call(this,"ZipFileWorker"),this.bytesWritten=0,this.zipComment=t,this.zipPlatform=n,this.encodeFileName=i,this.streamFiles=e,this.accumulate=!1,this.contentBuffer=[],this.dirRecords=[],this.currentSourceOffset=0,this.entriesCount=0,this.currentFile=null,this._sources=[]}var i=e("../utils"),r=e("../stream/GenericWorker"),s=e("../utf8"),o=e("../crc32"),a=e("../signature"),l=function(e,t){var n,i="";for(n=0;n<t;n++)i+=String.fromCharCode(255&e),e>>>=8;return i},c=function(e,t,n,r,c,d){
var u,A,h=e.file,p=e.compression,f=d!==s.utf8encode,m=i.transformTo("string",d(h.name)),g=i.transformTo("string",s.utf8encode(h.name)),_=h.comment,b=i.transformTo("string",d(_)),v=i.transformTo("string",s.utf8encode(_)),w=g.length!==h.name.length,y=v.length!==_.length,k="",R="",x="",C=h.dir,E=h.date,G={crc32:0,compressedSize:0,uncompressedSize:0};t&&!n||(G.crc32=e.crc32,G.compressedSize=e.compressedSize,G.uncompressedSize=e.uncompressedSize);var Z=0;t&&(Z|=8),f||!w&&!y||(Z|=2048);var S,B,T=0,I=0
;C&&(T|=16),"UNIX"===c?(I=798,T|=(B=S=h.unixPermissions,S||(B=C?16893:33204),(65535&B)<<16)):(I=20,T|=63&(h.dosPermissions||0)),u=E.getUTCHours(),u<<=6,u|=E.getUTCMinutes(),u<<=5,u|=E.getUTCSeconds()/2,A=E.getUTCFullYear()-1980,A<<=4,A|=E.getUTCMonth()+1,A<<=5,A|=E.getUTCDate(),w&&(R=l(1,1)+l(o(m),4)+g,k+="up"+l(R.length,2)+R),y&&(x=l(1,1)+l(o(b),4)+v,k+="uc"+l(x.length,2)+x);var U="";return U+="\n\0",U+=l(Z,2),U+=p.magic,U+=l(u,2),U+=l(A,2),U+=l(G.crc32,4),U+=l(G.compressedSize,4),
U+=l(G.uncompressedSize,4),U+=l(m.length,2),U+=l(k.length,2),{fileRecord:a.LOCAL_FILE_HEADER+U+m+k,dirRecord:a.CENTRAL_FILE_HEADER+l(I,2)+U+l(b.length,2)+"\0\0\0\0"+l(T,4)+l(r,4)+m+k+b}},d=function(e){return a.DATA_DESCRIPTOR+l(e.crc32,4)+l(e.compressedSize,4)+l(e.uncompressedSize,4)};i.inherits(n,r),n.prototype.push=function(e){var t=e.meta.percent||0,n=this.entriesCount,i=this._sources.length;this.accumulate?this.contentBuffer.push(e):(this.bytesWritten+=e.data.length,
r.prototype.push.call(this,{data:e.data,meta:{currentFile:this.currentFile,percent:n?(t+100*(n-i-1))/n:100}}))},n.prototype.openedSource=function(e){this.currentSourceOffset=this.bytesWritten,this.currentFile=e.file.name;var t=this.streamFiles&&!e.file.dir;if(t){var n=c(e,t,!1,this.currentSourceOffset,this.zipPlatform,this.encodeFileName);this.push({data:n.fileRecord,meta:{percent:0}})}else this.accumulate=!0},n.prototype.closedSource=function(e){this.accumulate=!1
;var t=this.streamFiles&&!e.file.dir,n=c(e,t,!0,this.currentSourceOffset,this.zipPlatform,this.encodeFileName);if(this.dirRecords.push(n.dirRecord),t)this.push({data:d(e),meta:{percent:100}});else for(this.push({data:n.fileRecord,meta:{percent:0}});this.contentBuffer.length;)this.push(this.contentBuffer.shift());this.currentFile=null},n.prototype.flush=function(){for(var e=this.bytesWritten,t=0;t<this.dirRecords.length;t++)this.push({data:this.dirRecords[t],meta:{percent:100}})
;var n=this.bytesWritten-e,r=function(e,t,n,r,s){var o=i.transformTo("string",s(r));return a.CENTRAL_DIRECTORY_END+"\0\0\0\0"+l(e,2)+l(e,2)+l(t,4)+l(n,4)+l(o.length,2)+o}(this.dirRecords.length,n,e,this.zipComment,this.encodeFileName);this.push({data:r,meta:{percent:100}})},n.prototype.prepareNextSource=function(){this.previous=this._sources.shift(),this.openedSource(this.previous.streamInfo),this.isPaused?this.previous.pause():this.previous.resume()},n.prototype.registerPrevious=function(e){
this._sources.push(e);var t=this;return e.on("data",(function(e){t.processChunk(e)})),e.on("end",(function(){t.closedSource(t.previous.streamInfo),t._sources.length?t.prepareNextSource():t.end()})),e.on("error",(function(e){t.error(e)})),this},n.prototype.resume=function(){return!!r.prototype.resume.call(this)&&(!this.previous&&this._sources.length?(this.prepareNextSource(),!0):this.previous||this._sources.length||this.generatedError?void 0:(this.end(),!0))},n.prototype.error=function(e){
var t=this._sources;if(!r.prototype.error.call(this,e))return!1;for(var n=0;n<t.length;n++)try{t[n].error(e)}catch(e){}return!0},n.prototype.lock=function(){r.prototype.lock.call(this);for(var e=this._sources,t=0;t<e.length;t++)e[t].lock()},t.exports=n},{"../crc32":4,"../signature":23,"../stream/GenericWorker":28,"../utf8":31,"../utils":32}],9:[function(e,t,n){"use strict";var i=e("../compressions"),r=e("./ZipFileWorker");n.generateWorker=function(e,t,n){
var s=new r(t.streamFiles,n,t.platform,t.encodeFileName),o=0;try{e.forEach((function(e,n){o++;var r=function(e,t){var n=e||t,r=i[n];if(!r)throw new Error(n+" is not a valid compression method !");return r}(n.options.compression,t.compression),a=n.options.compressionOptions||t.compressionOptions||{},l=n.dir,c=n.date;n._compressWorker(r,a).withStreamInfo("file",{name:e,dir:l,date:c,comment:n.comment||"",unixPermissions:n.unixPermissions,dosPermissions:n.dosPermissions}).pipe(s)})),s.entriesCount=o
}catch(e){s.error(e)}return s}},{"../compressions":3,"./ZipFileWorker":8}],10:[function(e,t){"use strict";function n(){if(!(this instanceof n))return new n;if(arguments.length)throw new Error("The constructor with parameters has been removed in JSZip 3.0, please check the upgrade guide.");this.files={},this.comment=null,this.root="",this.clone=function(){var e=new n;for(var t in this)"function"!=typeof this[t]&&(e[t]=this[t]);return e}}n.prototype=e("./object"),n.prototype.loadAsync=e("./load"),
n.support=e("./support"),n.defaults=e("./defaults"),n.version="3.5.0",n.loadAsync=function(e,t){return(new n).loadAsync(e,t)},n.external=e("./external"),t.exports=n},{"./defaults":5,"./external":6,"./load":11,"./object":15,"./support":30}],11:[function(e,t){"use strict";function n(e){return new r.Promise((function(t,n){var i=e.decompressed.getContentWorker().pipe(new a);i.on("error",(function(e){n(e)})).on("end",(function(){
i.streamInfo.crc32!==e.decompressed.crc32?n(new Error("Corrupted zip : CRC32 mismatch")):t()})).resume()}))}var i=e("./utils"),r=e("./external"),s=e("./utf8"),o=(i=e("./utils"),e("./zipEntries")),a=e("./stream/Crc32Probe"),l=e("./nodejsUtils");t.exports=function(e,t){var a=this;return t=i.extend(t||{},{base64:!1,checkCRC32:!1,optimizedBinaryString:!1,createFolders:!1,decodeFileName:s.utf8decode}),
l.isNode&&l.isStream(e)?r.Promise.reject(new Error("JSZip can't accept a stream when loading a zip file.")):i.prepareContent("the loaded zip file",e,!0,t.optimizedBinaryString,t.base64).then((function(e){var n=new o(t);return n.load(e),n})).then((function(e){var i=[r.Promise.resolve(e)],s=e.files;if(t.checkCRC32)for(var o=0;o<s.length;o++)i.push(n(s[o]));return r.Promise.all(i)})).then((function(e){for(var n=e.shift(),i=n.files,r=0;r<i.length;r++){var s=i[r];a.file(s.fileNameStr,s.decompressed,{
binary:!0,optimizedBinaryString:!0,date:s.date,dir:s.dir,comment:s.fileCommentStr.length?s.fileCommentStr:null,unixPermissions:s.unixPermissions,dosPermissions:s.dosPermissions,createFolders:t.createFolders})}return n.zipComment.length&&(a.comment=n.zipComment),a}))}},{"./external":6,"./nodejsUtils":14,"./stream/Crc32Probe":25,"./utf8":31,"./utils":32,"./zipEntries":33}],12:[function(e,t){"use strict";function n(e,t){r.call(this,"Nodejs stream input adapter for "+e),this._upstreamEnded=!1,
this._bindStream(t)}var i=e("../utils"),r=e("../stream/GenericWorker");i.inherits(n,r),n.prototype._bindStream=function(e){var t=this;this._stream=e,e.pause(),e.on("data",(function(e){t.push({data:e,meta:{percent:0}})})).on("error",(function(e){t.isPaused?this.generatedError=e:t.error(e)})).on("end",(function(){t.isPaused?t._upstreamEnded=!0:t.end()}))},n.prototype.pause=function(){return!!r.prototype.pause.call(this)&&(this._stream.pause(),!0)},n.prototype.resume=function(){
return!!r.prototype.resume.call(this)&&(this._upstreamEnded?this.end():this._stream.resume(),!0)},t.exports=n},{"../stream/GenericWorker":28,"../utils":32}],13:[function(e,t){"use strict";function n(e,t,n){i.call(this,t),this._helper=e;var r=this;e.on("data",(function(e,t){r.push(e)||r._helper.pause(),n&&n(t)})).on("error",(function(e){r.emit("error",e)})).on("end",(function(){r.push(null)}))}var i=e("readable-stream").Readable;e("../utils").inherits(n,i),n.prototype._read=function(){
this._helper.resume()},t.exports=n},{"../utils":32,"readable-stream":16}],14:[function(e,t){"use strict";t.exports={isNode:"undefined"!=typeof Buffer,newBufferFrom:function(e,t){if(Buffer.from&&Buffer.from!==Uint8Array.from)return Buffer.from(e,t);if("number"==typeof e)throw new Error('The "data" argument must not be a number');return new Buffer(e,t)},allocBuffer:function(e){if(Buffer.alloc)return Buffer.alloc(e);var t=new Buffer(e);return t.fill(0),t},isBuffer:function(e){
return Buffer.isBuffer(e)},isStream:function(e){return e&&"function"==typeof e.on&&"function"==typeof e.pause&&"function"==typeof e.resume}}},{}],15:[function(e,t){"use strict";function n(e){return"[object RegExp]"==={}.toString.call(e)}var i=e("./utf8"),r=e("./utils"),s=e("./stream/GenericWorker"),o=e("./stream/StreamHelper"),a=e("./defaults"),l=e("./compressedObject"),c=e("./zipObject"),d=e("./generate"),u=e("./nodejsUtils"),A=e("./nodejs/NodejsStreamInputAdapter"),h=function(e,t,n){
var i,o=r.getTypeOf(t),d=r.extend(n||{},a);d.date=d.date||new Date,null!==d.compression&&(d.compression=d.compression.toUpperCase()),"string"==typeof d.unixPermissions&&(d.unixPermissions=parseInt(d.unixPermissions,8)),d.unixPermissions&&16384&d.unixPermissions&&(d.dir=!0),d.dosPermissions&&16&d.dosPermissions&&(d.dir=!0),d.dir&&(e=f(e)),d.createFolders&&(i=p(e))&&m.call(this,i,!0);var h,g="string"===o&&!1===d.binary&&!1===d.base64;n&&void 0!==n.binary||(d.binary=!g),
(t instanceof l&&0===t.uncompressedSize||d.dir||!t||0===t.length)&&(d.base64=!1,d.binary=!0,t="",d.compression="STORE",o="string"),h=t instanceof l||t instanceof s?t:u.isNode&&u.isStream(t)?new A(e,t):r.prepareContent(e,t,d.binary,d.optimizedBinaryString,d.base64);var _=new c(e,h,d);this.files[e]=_},p=function(e){"/"===e.slice(-1)&&(e=e.substring(0,e.length-1));var t=e.lastIndexOf("/");return t>0?e.substring(0,t):""},f=function(e){return"/"!==e.slice(-1)&&(e+="/"),e},m=function(e,t){
return t=void 0!==t?t:a.createFolders,e=f(e),this.files[e]||h.call(this,e,null,{dir:!0,createFolders:t}),this.files[e]},g={load:function(){throw new Error("This method has been removed in JSZip 3.0, please check the upgrade guide.")},forEach:function(e){var t,n,i;for(t in this.files)this.files.hasOwnProperty(t)&&(i=this.files[t],(n=t.slice(this.root.length,t.length))&&t.slice(0,this.root.length)===this.root&&e(n,i))},filter:function(e){var t=[];return this.forEach((function(n,i){
e(n,i)&&t.push(i)})),t},file:function(e,t,i){if(1===arguments.length){if(n(e)){var r=e;return this.filter((function(e,t){return!t.dir&&r.test(e)}))}var s=this.files[this.root+e];return s&&!s.dir?s:null}return e=this.root+e,h.call(this,e,t,i),this},folder:function(e){if(!e)return this;if(n(e))return this.filter((function(t,n){return n.dir&&e.test(t)}));var t=this.root+e,i=m.call(this,t),r=this.clone();return r.root=i.name,r},remove:function(e){e=this.root+e;var t=this.files[e]
;if(t||("/"!==e.slice(-1)&&(e+="/"),t=this.files[e]),t&&!t.dir)delete this.files[e];else for(var n=this.filter((function(t,n){return n.name.slice(0,e.length)===e})),i=0;i<n.length;i++)delete this.files[n[i].name];return this},generate:function(){throw new Error("This method has been removed in JSZip 3.0, please check the upgrade guide.")},generateInternalStream:function(e){var t,n={};try{if((n=r.extend(e||{},{streamFiles:!1,compression:"STORE",compressionOptions:null,type:"",platform:"DOS",
comment:null,mimeType:"application/zip",encodeFileName:i.utf8encode})).type=n.type.toLowerCase(),n.compression=n.compression.toUpperCase(),"binarystring"===n.type&&(n.type="string"),!n.type)throw new Error("No output type specified.");r.checkSupport(n.type),"darwin"!==n.platform&&"freebsd"!==n.platform&&"linux"!==n.platform&&"sunos"!==n.platform||(n.platform="UNIX"),"win32"===n.platform&&(n.platform="DOS");var a=n.comment||this.comment||"";t=d.generateWorker(this,n,a)}catch(e){
(t=new s("error")).error(e)}return new o(t,n.type||"string",n.mimeType)},generateAsync:function(e,t){return this.generateInternalStream(e).accumulate(t)},generateNodeStream:function(e,t){return(e=e||{}).type||(e.type="nodebuffer"),this.generateInternalStream(e).toNodejsStream(t)}};t.exports=g},{"./compressedObject":2,"./defaults":5,"./generate":9,"./nodejs/NodejsStreamInputAdapter":12,"./nodejsUtils":14,"./stream/GenericWorker":28,"./stream/StreamHelper":29,"./utf8":31,"./utils":32,
"./zipObject":35}],16:[function(e,t){t.exports=e("stream")},{stream:void 0}],17:[function(e,t){"use strict";function n(e){i.call(this,e);for(var t=0;t<this.data.length;t++)e[t]=255&e[t]}var i=e("./DataReader");e("../utils").inherits(n,i),n.prototype.byteAt=function(e){return this.data[this.zero+e]},n.prototype.lastIndexOfSignature=function(e){
for(var t=e.charCodeAt(0),n=e.charCodeAt(1),i=e.charCodeAt(2),r=e.charCodeAt(3),s=this.length-4;s>=0;--s)if(this.data[s]===t&&this.data[s+1]===n&&this.data[s+2]===i&&this.data[s+3]===r)return s-this.zero;return-1},n.prototype.readAndCheckSignature=function(e){var t=e.charCodeAt(0),n=e.charCodeAt(1),i=e.charCodeAt(2),r=e.charCodeAt(3),s=this.readData(4);return t===s[0]&&n===s[1]&&i===s[2]&&r===s[3]},n.prototype.readData=function(e){if(this.checkOffset(e),0===e)return[]
;var t=this.data.slice(this.zero+this.index,this.zero+this.index+e);return this.index+=e,t},t.exports=n},{"../utils":32,"./DataReader":18}],18:[function(e,t){"use strict";function n(e){this.data=e,this.length=e.length,this.index=0,this.zero=0}var i=e("../utils");n.prototype={checkOffset:function(e){this.checkIndex(this.index+e)},checkIndex:function(e){if(this.length<this.zero+e||e<0)throw new Error("End of data reached (data length = "+this.length+", asked index = "+e+"). Corrupted zip ?")},
setIndex:function(e){this.checkIndex(e),this.index=e},skip:function(e){this.setIndex(this.index+e)},byteAt:function(){},readInt:function(e){var t,n=0;for(this.checkOffset(e),t=this.index+e-1;t>=this.index;t--)n=(n<<8)+this.byteAt(t);return this.index+=e,n},readString:function(e){return i.transformTo("string",this.readData(e))},readData:function(){},lastIndexOfSignature:function(){},readAndCheckSignature:function(){},readDate:function(){var e=this.readInt(4)
;return new Date(Date.UTC(1980+(e>>25&127),(e>>21&15)-1,e>>16&31,e>>11&31,e>>5&63,(31&e)<<1))}},t.exports=n},{"../utils":32}],19:[function(e,t){"use strict";function n(e){i.call(this,e)}var i=e("./Uint8ArrayReader");e("../utils").inherits(n,i),n.prototype.readData=function(e){this.checkOffset(e);var t=this.data.slice(this.zero+this.index,this.zero+this.index+e);return this.index+=e,t},t.exports=n},{"../utils":32,"./Uint8ArrayReader":21}],20:[function(e,t){"use strict";function n(e){
i.call(this,e)}var i=e("./DataReader");e("../utils").inherits(n,i),n.prototype.byteAt=function(e){return this.data.charCodeAt(this.zero+e)},n.prototype.lastIndexOfSignature=function(e){return this.data.lastIndexOf(e)-this.zero},n.prototype.readAndCheckSignature=function(e){return e===this.readData(4)},n.prototype.readData=function(e){this.checkOffset(e);var t=this.data.slice(this.zero+this.index,this.zero+this.index+e);return this.index+=e,t},t.exports=n},{"../utils":32,"./DataReader":18}],
21:[function(e,t){"use strict";function n(e){i.call(this,e)}var i=e("./ArrayReader");e("../utils").inherits(n,i),n.prototype.readData=function(e){if(this.checkOffset(e),0===e)return new Uint8Array(0);var t=this.data.subarray(this.zero+this.index,this.zero+this.index+e);return this.index+=e,t},t.exports=n},{"../utils":32,"./ArrayReader":17}],22:[function(e,t){"use strict"
;var n=e("../utils"),i=e("../support"),r=e("./ArrayReader"),s=e("./StringReader"),o=e("./NodeBufferReader"),a=e("./Uint8ArrayReader");t.exports=function(e){var t=n.getTypeOf(e);return n.checkSupport(t),"string"!==t||i.uint8array?"nodebuffer"===t?new o(e):i.uint8array?new a(n.transformTo("uint8array",e)):new r(n.transformTo("array",e)):new s(e)}},{"../support":30,"../utils":32,"./ArrayReader":17,"./NodeBufferReader":19,"./StringReader":20,"./Uint8ArrayReader":21}],23:[function(e,t,n){"use strict"
;n.LOCAL_FILE_HEADER="PK",n.CENTRAL_FILE_HEADER="PK",n.CENTRAL_DIRECTORY_END="PK",n.ZIP64_CENTRAL_DIRECTORY_LOCATOR="PK",n.ZIP64_CENTRAL_DIRECTORY_END="PK",n.DATA_DESCRIPTOR="PK\b"},{}],24:[function(e,t){"use strict";function n(e){i.call(this,"ConvertWorker to "+e),this.destType=e}var i=e("./GenericWorker"),r=e("../utils");r.inherits(n,i),n.prototype.processChunk=function(e){this.push({data:r.transformTo(this.destType,e.data),meta:e.meta})},t.exports=n},{"../utils":32,
"./GenericWorker":28}],25:[function(e,t){"use strict";function n(){i.call(this,"Crc32Probe"),this.withStreamInfo("crc32",0)}var i=e("./GenericWorker"),r=e("../crc32");e("../utils").inherits(n,i),n.prototype.processChunk=function(e){this.streamInfo.crc32=r(e.data,this.streamInfo.crc32||0),this.push(e)},t.exports=n},{"../crc32":4,"../utils":32,"./GenericWorker":28}],26:[function(e,t){"use strict";function n(e){r.call(this,"DataLengthProbe for "+e),this.propName=e,this.withStreamInfo(e,0)}
var i=e("../utils"),r=e("./GenericWorker");i.inherits(n,r),n.prototype.processChunk=function(e){if(e){var t=this.streamInfo[this.propName]||0;this.streamInfo[this.propName]=t+e.data.length}r.prototype.processChunk.call(this,e)},t.exports=n},{"../utils":32,"./GenericWorker":28}],27:[function(e,t){"use strict";function n(e){r.call(this,"DataWorker");var t=this;this.dataIsReady=!1,this.index=0,this.max=0,this.data=null,this.type="",this._tickScheduled=!1,e.then((function(e){t.dataIsReady=!0,
t.data=e,t.max=e&&e.length||0,t.type=i.getTypeOf(e),t.isPaused||t._tickAndRepeat()}),(function(e){t.error(e)}))}var i=e("../utils"),r=e("./GenericWorker");i.inherits(n,r),n.prototype.cleanUp=function(){r.prototype.cleanUp.call(this),this.data=null},n.prototype.resume=function(){return!!r.prototype.resume.call(this)&&(!this._tickScheduled&&this.dataIsReady&&(this._tickScheduled=!0,i.delay(this._tickAndRepeat,[],this)),!0)},n.prototype._tickAndRepeat=function(){this._tickScheduled=!1,
this.isPaused||this.isFinished||(this._tick(),this.isFinished||(i.delay(this._tickAndRepeat,[],this),this._tickScheduled=!0))},n.prototype._tick=function(){if(this.isPaused||this.isFinished)return!1;var e=null,t=Math.min(this.max,this.index+16384);if(this.index>=this.max)return this.end();switch(this.type){case"string":e=this.data.substring(this.index,t);break;case"uint8array":e=this.data.subarray(this.index,t);break;case"array":case"nodebuffer":e=this.data.slice(this.index,t)}
return this.index=t,this.push({data:e,meta:{percent:this.max?this.index/this.max*100:0}})},t.exports=n},{"../utils":32,"./GenericWorker":28}],28:[function(e,t){"use strict";function n(e){this.name=e||"default",this.streamInfo={},this.generatedError=null,this.extraStreamInfo={},this.isPaused=!0,this.isFinished=!1,this.isLocked=!1,this._listeners={data:[],end:[],error:[]},this.previous=null}n.prototype={push:function(e){this.emit("data",e)},end:function(){if(this.isFinished)return!1;this.flush()
;try{this.emit("end"),this.cleanUp(),this.isFinished=!0}catch(e){this.emit("error",e)}return!0},error:function(e){return!this.isFinished&&(this.isPaused?this.generatedError=e:(this.isFinished=!0,this.emit("error",e),this.previous&&this.previous.error(e),this.cleanUp()),!0)},on:function(e,t){return this._listeners[e].push(t),this},cleanUp:function(){this.streamInfo=this.generatedError=this.extraStreamInfo=null,this._listeners=[]},emit:function(e,t){
if(this._listeners[e])for(var n=0;n<this._listeners[e].length;n++)this._listeners[e][n].call(this,t)},pipe:function(e){return e.registerPrevious(this)},registerPrevious:function(e){if(this.isLocked)throw new Error("The stream '"+this+"' has already been used.");this.streamInfo=e.streamInfo,this.mergeStreamInfo(),this.previous=e;var t=this;return e.on("data",(function(e){t.processChunk(e)})),e.on("end",(function(){t.end()})),e.on("error",(function(e){t.error(e)})),this},pause:function(){
return!this.isPaused&&!this.isFinished&&(this.isPaused=!0,this.previous&&this.previous.pause(),!0)},resume:function(){if(!this.isPaused||this.isFinished)return!1;this.isPaused=!1;var e=!1;return this.generatedError&&(this.error(this.generatedError),e=!0),this.previous&&this.previous.resume(),!e},flush:function(){},processChunk:function(e){this.push(e)},withStreamInfo:function(e,t){return this.extraStreamInfo[e]=t,this.mergeStreamInfo(),this},mergeStreamInfo:function(){
for(var e in this.extraStreamInfo)this.extraStreamInfo.hasOwnProperty(e)&&(this.streamInfo[e]=this.extraStreamInfo[e])},lock:function(){if(this.isLocked)throw new Error("The stream '"+this+"' has already been used.");this.isLocked=!0,this.previous&&this.previous.lock()},toString:function(){var e="Worker "+this.name;return this.previous?this.previous+" -> "+e:e}},t.exports=n},{}],29:[function(e,t){"use strict";function n(e,t,n){var o=t;switch(t){case"blob":case"arraybuffer":o="uint8array";break
;case"base64":o="string"}try{this._internalType=o,this._outputType=t,this._mimeType=n,i.checkSupport(o),this._worker=e.pipe(new r(o)),e.lock()}catch(e){this._worker=new s("error"),this._worker.error(e)}}var i=e("../utils"),r=e("./ConvertWorker"),s=e("./GenericWorker"),o=e("../base64"),a=e("../support"),l=e("../external"),c=null;if(a.nodestream)try{c=e("../nodejs/NodejsStreamOutputAdapter")}catch(e){}n.prototype={accumulate:function(e){return t=this,n=e,new l.Promise((function(e,r){
var s=[],a=t._internalType,l=t._outputType,c=t._mimeType;t.on("data",(function(e,t){s.push(e),n&&n(t)})).on("error",(function(e){s=[],r(e)})).on("end",(function(){try{var t=function(e,t,n){switch(e){case"blob":return i.newBlob(i.transformTo("arraybuffer",t),n);case"base64":return o.encode(t);default:return i.transformTo(e,t)}}(l,function(e,t){var n,i=0,r=null,s=0;for(n=0;n<t.length;n++)s+=t[n].length;switch(e){case"string":return t.join("");case"array":return[].concat.apply([],t)
;case"uint8array":for(r=new Uint8Array(s),n=0;n<t.length;n++)r.set(t[n],i),i+=t[n].length;return r;case"nodebuffer":return Buffer.concat(t);default:throw new Error("concat : unsupported type '"+e+"'")}}(a,s),c);e(t)}catch(e){r(e)}s=[]})).resume()}));var t,n},on:function(e,t){var n=this;return"data"===e?this._worker.on(e,(function(e){t.call(n,e.data,e.meta)})):this._worker.on(e,(function(){i.delay(t,arguments,n)})),this},resume:function(){return i.delay(this._worker.resume,[],this._worker),this},
pause:function(){return this._worker.pause(),this},toNodejsStream:function(e){if(i.checkSupport("nodestream"),"nodebuffer"!==this._outputType)throw new Error(this._outputType+" is not supported by this method");return new c(this,{objectMode:"nodebuffer"!==this._outputType},e)}},t.exports=n},{"../base64":1,"../external":6,"../nodejs/NodejsStreamOutputAdapter":13,"../support":30,"../utils":32,"./ConvertWorker":24,"./GenericWorker":28}],30:[function(e,t,n){"use strict";if(n.base64=!0,n.array=!0,
n.string=!0,n.arraybuffer="undefined"!=typeof ArrayBuffer&&"undefined"!=typeof Uint8Array,n.nodebuffer="undefined"!=typeof Buffer,n.uint8array="undefined"!=typeof Uint8Array,"undefined"==typeof ArrayBuffer)n.blob=!1;else{var i=new ArrayBuffer(0);try{n.blob=0===new Blob([i],{type:"application/zip"}).size}catch(e){try{var r=new(self.BlobBuilder||self.WebKitBlobBuilder||self.MozBlobBuilder||self.MSBlobBuilder);r.append(i),n.blob=0===r.getBlob("application/zip").size}catch(e){n.blob=!1}}}try{
n.nodestream=!!e("readable-stream").Readable}catch(e){n.nodestream=!1}},{"readable-stream":16}],31:[function(e,t,n){"use strict";function i(){l.call(this,"utf-8 decode"),this.leftOver=null}function r(){l.call(this,"utf-8 encode")}for(var s=e("./utils"),o=e("./support"),a=e("./nodejsUtils"),l=e("./stream/GenericWorker"),c=new Array(256),d=0;d<256;d++)c[d]=d>=252?6:d>=248?5:d>=240?4:d>=224?3:d>=192?2:1;c[254]=c[254]=1,n.utf8encode=function(e){
return o.nodebuffer?a.newBufferFrom(e,"utf-8"):function(e){var t,n,i,r,s,a=e.length,l=0;for(r=0;r<a;r++)55296==(64512&(n=e.charCodeAt(r)))&&r+1<a&&56320==(64512&(i=e.charCodeAt(r+1)))&&(n=65536+(n-55296<<10)+(i-56320),r++),l+=n<128?1:n<2048?2:n<65536?3:4;for(t=o.uint8array?new Uint8Array(l):new Array(l),s=0,r=0;s<l;r++)55296==(64512&(n=e.charCodeAt(r)))&&r+1<a&&56320==(64512&(i=e.charCodeAt(r+1)))&&(n=65536+(n-55296<<10)+(i-56320),r++),n<128?t[s++]=n:n<2048?(t[s++]=192|n>>>6,
t[s++]=128|63&n):n<65536?(t[s++]=224|n>>>12,t[s++]=128|n>>>6&63,t[s++]=128|63&n):(t[s++]=240|n>>>18,t[s++]=128|n>>>12&63,t[s++]=128|n>>>6&63,t[s++]=128|63&n);return t}(e)},n.utf8decode=function(e){return o.nodebuffer?s.transformTo("nodebuffer",e).toString("utf-8"):function(e){var t,n,i,r,o=e.length,a=new Array(2*o);for(n=0,t=0;t<o;)if((i=e[t++])<128)a[n++]=i;else if((r=c[i])>4)a[n++]=65533,t+=r-1;else{for(i&=2===r?31:3===r?15:7;r>1&&t<o;)i=i<<6|63&e[t++],r--
;r>1?a[n++]=65533:i<65536?a[n++]=i:(i-=65536,a[n++]=55296|i>>10&1023,a[n++]=56320|1023&i)}return a.length!==n&&(a.subarray?a=a.subarray(0,n):a.length=n),s.applyFromCharCode(a)}(e=s.transformTo(o.uint8array?"uint8array":"array",e))},s.inherits(i,l),i.prototype.processChunk=function(e){var t=s.transformTo(o.uint8array?"uint8array":"array",e.data);if(this.leftOver&&this.leftOver.length){if(o.uint8array){var i=t;(t=new Uint8Array(i.length+this.leftOver.length)).set(this.leftOver,0),
t.set(i,this.leftOver.length)}else t=this.leftOver.concat(t);this.leftOver=null}var r=function(e,t){var n;for((t=t||e.length)>e.length&&(t=e.length),n=t-1;n>=0&&128==(192&e[n]);)n--;return n<0||0===n?t:n+c[e[n]]>t?n:t}(t),a=t;r!==t.length&&(o.uint8array?(a=t.subarray(0,r),this.leftOver=t.subarray(r,t.length)):(a=t.slice(0,r),this.leftOver=t.slice(r,t.length))),this.push({data:n.utf8decode(a),meta:e.meta})},i.prototype.flush=function(){this.leftOver&&this.leftOver.length&&(this.push({
data:n.utf8decode(this.leftOver),meta:{}}),this.leftOver=null)},n.Utf8DecodeWorker=i,s.inherits(r,l),r.prototype.processChunk=function(e){this.push({data:n.utf8encode(e.data),meta:e.meta})},n.Utf8EncodeWorker=r},{"./nodejsUtils":14,"./stream/GenericWorker":28,"./support":30,"./utils":32}],32:[function(e,t,n){"use strict";function i(e){return e}function r(e,t){for(var n=0;n<e.length;++n)t[n]=255&e.charCodeAt(n);return t}function s(e){var t=65536,i=n.getTypeOf(e),r=!0
;if("uint8array"===i?r=A.applyCanBeUsed.uint8array:"nodebuffer"===i&&(r=A.applyCanBeUsed.nodebuffer),r)for(;t>1;)try{return A.stringifyByChunk(e,i,t)}catch(e){t=Math.floor(t/2)}return A.stringifyByChar(e)}function o(e,t){for(var n=0;n<e.length;n++)t[n]=e[n];return t}var a=e("./support"),l=e("./base64"),c=e("./nodejsUtils"),d=e("set-immediate-shim"),u=e("./external");n.newBlob=function(e,t){n.checkSupport("blob");try{return new Blob([e],{type:t})}catch(n){try{
var i=new(self.BlobBuilder||self.WebKitBlobBuilder||self.MozBlobBuilder||self.MSBlobBuilder);return i.append(e),i.getBlob(t)}catch(e){throw new Error("Bug : can't construct the Blob.")}}};var A={stringifyByChunk:function(e,t,n){var i=[],r=0,s=e.length;if(s<=n)return String.fromCharCode.apply(null,e);for(;r<s;)"array"===t||"nodebuffer"===t?i.push(String.fromCharCode.apply(null,e.slice(r,Math.min(r+n,s)))):i.push(String.fromCharCode.apply(null,e.subarray(r,Math.min(r+n,s)))),r+=n;return i.join("")
},stringifyByChar:function(e){for(var t="",n=0;n<e.length;n++)t+=String.fromCharCode(e[n]);return t},applyCanBeUsed:{uint8array:function(){try{return a.uint8array&&1===String.fromCharCode.apply(null,new Uint8Array(1)).length}catch(e){return!1}}(),nodebuffer:function(){try{return a.nodebuffer&&1===String.fromCharCode.apply(null,c.allocBuffer(1)).length}catch(e){return!1}}()}};n.applyFromCharCode=s;var h={};h.string={string:i,array:function(e){return r(e,new Array(e.length))},
arraybuffer:function(e){return h.string.uint8array(e).buffer},uint8array:function(e){return r(e,new Uint8Array(e.length))},nodebuffer:function(e){return r(e,c.allocBuffer(e.length))}},h.array={string:s,array:i,arraybuffer:function(e){return new Uint8Array(e).buffer},uint8array:function(e){return new Uint8Array(e)},nodebuffer:function(e){return c.newBufferFrom(e)}},h.arraybuffer={string:function(e){return s(new Uint8Array(e))},array:function(e){return o(new Uint8Array(e),new Array(e.byteLength))
},arraybuffer:i,uint8array:function(e){return new Uint8Array(e)},nodebuffer:function(e){return c.newBufferFrom(new Uint8Array(e))}},h.uint8array={string:s,array:function(e){return o(e,new Array(e.length))},arraybuffer:function(e){return e.buffer},uint8array:i,nodebuffer:function(e){return c.newBufferFrom(e)}},h.nodebuffer={string:s,array:function(e){return o(e,new Array(e.length))},arraybuffer:function(e){return h.nodebuffer.uint8array(e).buffer},uint8array:function(e){
return o(e,new Uint8Array(e.length))},nodebuffer:i},n.transformTo=function(e,t){if(t||(t=""),!e)return t;n.checkSupport(e);var i=n.getTypeOf(t);return h[i][e](t)},n.getTypeOf=function(e){return"string"==typeof e?"string":"[object Array]"==={}.toString.call(e)?"array":a.nodebuffer&&c.isBuffer(e)?"nodebuffer":a.uint8array&&e instanceof Uint8Array?"uint8array":a.arraybuffer&&e instanceof ArrayBuffer?"arraybuffer":void 0},n.checkSupport=function(e){
if(!a[e.toLowerCase()])throw new Error(e+" is not supported by this platform")},n.MAX_VALUE_16BITS=65535,n.MAX_VALUE_32BITS=-1,n.pretty=function(e){var t,n,i="";for(n=0;n<(e||"").length;n++)i+="\\x"+((t=e.charCodeAt(n))<16?"0":"")+t.toString(16).toUpperCase();return i},n.delay=function(e,t,n){d((function(){e.apply(n||null,t||[])}))},n.inherits=function(e,t){var n=function(){};n.prototype=t.prototype,e.prototype=new n},n.extend=function(){var e,t,n={}
;for(e=0;e<arguments.length;e++)for(t in arguments[e])arguments[e].hasOwnProperty(t)&&void 0===n[t]&&(n[t]=arguments[e][t]);return n},n.prepareContent=function(e,t,i,s,o){return u.Promise.resolve(t).then((function(e){return a.blob&&(e instanceof Blob||-1!==["[object File]","[object Blob]"].indexOf({}.toString.call(e)))&&"undefined"!=typeof FileReader?new u.Promise((function(t,n){var i=new FileReader;i.onload=function(e){t(e.target.result)},i.onerror=function(e){n(e.target.error)},
i.readAsArrayBuffer(e)})):e})).then((function(t){var c,d=n.getTypeOf(t);return d?("arraybuffer"===d?t=n.transformTo("uint8array",t):"string"===d&&(o?t=l.decode(t):i&&!0!==s&&(t=r(c=t,a.uint8array?new Uint8Array(c.length):new Array(c.length)))),t):u.Promise.reject(new Error("Can't read the data of '"+e+"'. Is it in a supported JavaScript type (String, Blob, ArrayBuffer, etc) ?"))}))}},{"./base64":1,"./external":6,"./nodejsUtils":14,"./support":30,"set-immediate-shim":54}],33:[function(e,t){
"use strict";function n(e){this.files=[],this.loadOptions=e}var i=e("./reader/readerFor"),r=e("./utils"),s=e("./signature"),o=e("./zipEntry"),a=(e("./utf8"),e("./support"));n.prototype={checkSignature:function(e){if(!this.reader.readAndCheckSignature(e)){this.reader.index-=4;var t=this.reader.readString(4);throw new Error("Corrupted zip or bug: unexpected signature ("+r.pretty(t)+", expected "+r.pretty(e)+")")}},isSignature:function(e,t){var n=this.reader.index;this.reader.setIndex(e)
;var i=this.reader.readString(4)===t;return this.reader.setIndex(n),i},readBlockEndOfCentral:function(){this.diskNumber=this.reader.readInt(2),this.diskWithCentralDirStart=this.reader.readInt(2),this.centralDirRecordsOnThisDisk=this.reader.readInt(2),this.centralDirRecords=this.reader.readInt(2),this.centralDirSize=this.reader.readInt(4),this.centralDirOffset=this.reader.readInt(4),this.zipCommentLength=this.reader.readInt(2)
;var e=this.reader.readData(this.zipCommentLength),t=a.uint8array?"uint8array":"array",n=r.transformTo(t,e);this.zipComment=this.loadOptions.decodeFileName(n)},readBlockZip64EndOfCentral:function(){this.zip64EndOfCentralSize=this.reader.readInt(8),this.reader.skip(4),this.diskNumber=this.reader.readInt(4),this.diskWithCentralDirStart=this.reader.readInt(4),this.centralDirRecordsOnThisDisk=this.reader.readInt(8),this.centralDirRecords=this.reader.readInt(8),
this.centralDirSize=this.reader.readInt(8),this.centralDirOffset=this.reader.readInt(8),this.zip64ExtensibleData={};for(var e,t,n,i=this.zip64EndOfCentralSize-44;0<i;)e=this.reader.readInt(2),t=this.reader.readInt(4),n=this.reader.readData(t),this.zip64ExtensibleData[e]={id:e,length:t,value:n}},readBlockZip64EndOfCentralLocator:function(){if(this.diskWithZip64CentralDirStart=this.reader.readInt(4),this.relativeOffsetEndOfZip64CentralDir=this.reader.readInt(8),
this.disksCount=this.reader.readInt(4),this.disksCount>1)throw new Error("Multi-volumes zip are not supported")},readLocalFiles:function(){var e,t;for(e=0;e<this.files.length;e++)t=this.files[e],this.reader.setIndex(t.localHeaderOffset),this.checkSignature(s.LOCAL_FILE_HEADER),t.readLocalPart(this.reader),t.handleUTF8(),t.processAttributes()},readCentralDir:function(){var e;for(this.reader.setIndex(this.centralDirOffset);this.reader.readAndCheckSignature(s.CENTRAL_FILE_HEADER);)(e=new o({
zip64:this.zip64},this.loadOptions)).readCentralPart(this.reader),this.files.push(e);if(this.centralDirRecords!==this.files.length&&0!==this.centralDirRecords&&0===this.files.length)throw new Error("Corrupted zip or bug: expected "+this.centralDirRecords+" records in central dir, got "+this.files.length)},readEndOfCentral:function(){var e=this.reader.lastIndexOfSignature(s.CENTRAL_DIRECTORY_END)
;if(e<0)throw this.isSignature(0,s.LOCAL_FILE_HEADER)?new Error("Corrupted zip: can't find end of central directory"):new Error("Can't find end of central directory : is this a zip file ? If it is, see https://stuk.github.io/jszip/documentation/howto/read_zip.html");this.reader.setIndex(e);var t=e;if(this.checkSignature(s.CENTRAL_DIRECTORY_END),this.readBlockEndOfCentral(),
this.diskNumber===r.MAX_VALUE_16BITS||this.diskWithCentralDirStart===r.MAX_VALUE_16BITS||this.centralDirRecordsOnThisDisk===r.MAX_VALUE_16BITS||this.centralDirRecords===r.MAX_VALUE_16BITS||this.centralDirSize===r.MAX_VALUE_32BITS||this.centralDirOffset===r.MAX_VALUE_32BITS){if(this.zip64=!0,(e=this.reader.lastIndexOfSignature(s.ZIP64_CENTRAL_DIRECTORY_LOCATOR))<0)throw new Error("Corrupted zip: can't find the ZIP64 end of central directory locator");if(this.reader.setIndex(e),
this.checkSignature(s.ZIP64_CENTRAL_DIRECTORY_LOCATOR),this.readBlockZip64EndOfCentralLocator(),!this.isSignature(this.relativeOffsetEndOfZip64CentralDir,s.ZIP64_CENTRAL_DIRECTORY_END)&&(this.relativeOffsetEndOfZip64CentralDir=this.reader.lastIndexOfSignature(s.ZIP64_CENTRAL_DIRECTORY_END),this.relativeOffsetEndOfZip64CentralDir<0))throw new Error("Corrupted zip: can't find the ZIP64 end of central directory");this.reader.setIndex(this.relativeOffsetEndOfZip64CentralDir),
this.checkSignature(s.ZIP64_CENTRAL_DIRECTORY_END),this.readBlockZip64EndOfCentral()}var n=this.centralDirOffset+this.centralDirSize;this.zip64&&(n+=20,n+=12+this.zip64EndOfCentralSize);var i=t-n;if(i>0)this.isSignature(t,s.CENTRAL_FILE_HEADER)||(this.reader.zero=i);else if(i<0)throw new Error("Corrupted zip: missing "+Math.abs(i)+" bytes.")},prepareReader:function(e){this.reader=i(e)},load:function(e){this.prepareReader(e),this.readEndOfCentral(),this.readCentralDir(),this.readLocalFiles()}},
t.exports=n},{"./reader/readerFor":22,"./signature":23,"./support":30,"./utf8":31,"./utils":32,"./zipEntry":34}],34:[function(e,t){"use strict";function n(e,t){this.options=e,this.loadOptions=t}var i=e("./reader/readerFor"),r=e("./utils"),s=e("./compressedObject"),o=e("./crc32"),a=e("./utf8"),l=e("./compressions"),c=e("./support");n.prototype={isEncrypted:function(){return 1==(1&this.bitFlag)},useUTF8:function(){return 2048==(2048&this.bitFlag)},readLocalPart:function(e){var t,n;if(e.skip(22),
this.fileNameLength=e.readInt(2),n=e.readInt(2),this.fileName=e.readData(this.fileNameLength),e.skip(n),-1===this.compressedSize||-1===this.uncompressedSize)throw new Error("Bug or corrupted zip : didn't get enough information from the central directory (compressedSize === -1 || uncompressedSize === -1)");if(null===(t=function(e){for(var t in l)if(l.hasOwnProperty(t)&&l[t].magic===e)return l[t];return null
}(this.compressionMethod)))throw new Error("Corrupted zip : compression "+r.pretty(this.compressionMethod)+" unknown (inner file : "+r.transformTo("string",this.fileName)+")");this.decompressed=new s(this.compressedSize,this.uncompressedSize,this.crc32,t,e.readData(this.compressedSize))},readCentralPart:function(e){this.versionMadeBy=e.readInt(2),e.skip(2),this.bitFlag=e.readInt(2),this.compressionMethod=e.readString(2),this.date=e.readDate(),this.crc32=e.readInt(4),
this.compressedSize=e.readInt(4),this.uncompressedSize=e.readInt(4);var t=e.readInt(2);if(this.extraFieldsLength=e.readInt(2),this.fileCommentLength=e.readInt(2),this.diskNumberStart=e.readInt(2),this.internalFileAttributes=e.readInt(2),this.externalFileAttributes=e.readInt(4),this.localHeaderOffset=e.readInt(4),this.isEncrypted())throw new Error("Encrypted zip are not supported");e.skip(t),this.readExtraFields(e),this.parseZIP64ExtraField(e),this.fileComment=e.readData(this.fileCommentLength)},
processAttributes:function(){this.unixPermissions=null,this.dosPermissions=null;var e=this.versionMadeBy>>8;this.dir=!!(16&this.externalFileAttributes),0===e&&(this.dosPermissions=63&this.externalFileAttributes),3===e&&(this.unixPermissions=this.externalFileAttributes>>16&65535),this.dir||"/"!==this.fileNameStr.slice(-1)||(this.dir=!0)},parseZIP64ExtraField:function(){if(this.extraFields[1]){var e=i(this.extraFields[1].value)
;this.uncompressedSize===r.MAX_VALUE_32BITS&&(this.uncompressedSize=e.readInt(8)),this.compressedSize===r.MAX_VALUE_32BITS&&(this.compressedSize=e.readInt(8)),this.localHeaderOffset===r.MAX_VALUE_32BITS&&(this.localHeaderOffset=e.readInt(8)),this.diskNumberStart===r.MAX_VALUE_32BITS&&(this.diskNumberStart=e.readInt(4))}},readExtraFields:function(e){var t,n,i,r=e.index+this.extraFieldsLength;for(this.extraFields||(this.extraFields={});e.index+4<r;)t=e.readInt(2),n=e.readInt(2),i=e.readData(n),
this.extraFields[t]={id:t,length:n,value:i};e.setIndex(r)},handleUTF8:function(){var e=c.uint8array?"uint8array":"array";if(this.useUTF8())this.fileNameStr=a.utf8decode(this.fileName),this.fileCommentStr=a.utf8decode(this.fileComment);else{var t=this.findExtraFieldUnicodePath();if(null!==t)this.fileNameStr=t;else{var n=r.transformTo(e,this.fileName);this.fileNameStr=this.loadOptions.decodeFileName(n)}var i=this.findExtraFieldUnicodeComment();if(null!==i)this.fileCommentStr=i;else{
var s=r.transformTo(e,this.fileComment);this.fileCommentStr=this.loadOptions.decodeFileName(s)}}},findExtraFieldUnicodePath:function(){var e=this.extraFields[28789];if(e){var t=i(e.value);return 1!==t.readInt(1)||o(this.fileName)!==t.readInt(4)?null:a.utf8decode(t.readData(e.length-5))}return null},findExtraFieldUnicodeComment:function(){var e=this.extraFields[25461];if(e){var t=i(e.value);return 1!==t.readInt(1)||o(this.fileComment)!==t.readInt(4)?null:a.utf8decode(t.readData(e.length-5))}
return null}},t.exports=n},{"./compressedObject":2,"./compressions":3,"./crc32":4,"./reader/readerFor":22,"./support":30,"./utf8":31,"./utils":32}],35:[function(e,t){"use strict";var n=e("./stream/StreamHelper"),i=e("./stream/DataWorker"),r=e("./utf8"),s=e("./compressedObject"),o=e("./stream/GenericWorker"),a=function(e,t,n){this.name=e,this.dir=n.dir,this.date=n.date,this.comment=n.comment,this.unixPermissions=n.unixPermissions,this.dosPermissions=n.dosPermissions,this._data=t,
this._dataBinary=n.binary,this.options={compression:n.compression,compressionOptions:n.compressionOptions}};a.prototype={internalStream:function(e){var t=null,i="string";try{if(!e)throw new Error("No output type specified.");var s="string"===(i=e.toLowerCase())||"text"===i;"binarystring"!==i&&"text"!==i||(i="string"),t=this._decompressWorker();var a=!this._dataBinary;a&&!s&&(t=t.pipe(new r.Utf8EncodeWorker)),!a&&s&&(t=t.pipe(new r.Utf8DecodeWorker))}catch(e){(t=new o("error")).error(e)}
return new n(t,i,"")},async:function(e,t){return this.internalStream(e).accumulate(t)},nodeStream:function(e,t){return this.internalStream(e||"nodebuffer").toNodejsStream(t)},_compressWorker:function(e,t){if(this._data instanceof s&&this._data.compression.magic===e.magic)return this._data.getCompressedWorker();var n=this._decompressWorker();return this._dataBinary||(n=n.pipe(new r.Utf8EncodeWorker)),s.createWorkerFrom(n,e,t)},_decompressWorker:function(){
return this._data instanceof s?this._data.getContentWorker():this._data instanceof o?this._data:new i(this._data)}};for(var l=["asText","asBinary","asNodeBuffer","asUint8Array","asArrayBuffer"],c=function(){throw new Error("This method has been removed in JSZip 3.0, please check the upgrade guide.")},d=0;d<l.length;d++)a.prototype[l[d]]=c;t.exports=a},{"./compressedObject":2,"./stream/DataWorker":27,"./stream/GenericWorker":28,"./stream/StreamHelper":29,"./utf8":31}],36:[function(e,t){
(function(e){"use strict";function n(){var e,t;r=!0;for(var n=d.length;n;){for(t=d,d=[],e=-1;++e<n;)t[e]();n=d.length}r=!1}var i,r,s=e.MutationObserver||e.WebKitMutationObserver;if(s){var o=0,a=new s(n),l=e.document.createTextNode("");a.observe(l,{characterData:!0}),i=function(){l.data=o=++o%2}}else if(e.setImmediate||void 0===e.MessageChannel)i="document"in e&&"onreadystatechange"in e.document.createElement("script")?function(){var t=e.document.createElement("script")
;t.onreadystatechange=function(){n(),t.onreadystatechange=null,t.parentNode.removeChild(t),t=null},e.document.documentElement.appendChild(t)}:function(){setTimeout(n,0)};else{var c=new e.MessageChannel;c.port1.onmessage=n,i=function(){c.port2.postMessage(0)}}var d=[];t.exports=function(e){1!==d.push(e)||r||i()}}).call(this,void 0!==n.g?n.g:"undefined"!=typeof self?self:"undefined"!=typeof window?window:{})},{}],37:[function(e,t){"use strict";function n(){}function i(e){
if("function"!=typeof e)throw new TypeError("resolver must be a function");this.state=h,this.queue=[],this.outcome=void 0,e!==n&&a(this,e)}function r(e,t,n){this.promise=e,"function"==typeof t&&(this.onFulfilled=t,this.callFulfilled=this.otherCallFulfilled),"function"==typeof n&&(this.onRejected=n,this.callRejected=this.otherCallRejected)}function s(e,t,n){c((function(){var i;try{i=t(n)}catch(t){return d.reject(e,t)}
i===e?d.reject(e,new TypeError("Cannot resolve promise with itself")):d.resolve(e,i)}))}function o(e){var t=e&&e.then;if(e&&("object"==typeof e||"function"==typeof e)&&"function"==typeof t)return function(){t.apply(e,arguments)}}function a(e,t){function n(t){r||(r=!0,d.reject(e,t))}function i(t){r||(r=!0,d.resolve(e,t))}var r=!1,s=l((function(){t(i,n)}));"error"===s.status&&n(s.value)}function l(e,t){var n={};try{n.value=e(t),n.status="success"}catch(e){n.status="error",n.value=e}return n}
var c=e("immediate"),d={},u=["REJECTED"],A=["FULFILLED"],h=["PENDING"];t.exports=i,i.prototype.finally=function(e){if("function"!=typeof e)return this;var t=this.constructor;return this.then((function(n){return t.resolve(e()).then((function(){return n}))}),(function(n){return t.resolve(e()).then((function(){throw n}))}))},i.prototype.catch=function(e){return this.then(null,e)},i.prototype.then=function(e,t){if("function"!=typeof e&&this.state===A||"function"!=typeof t&&this.state===u)return this
;var i=new this.constructor(n);return this.state!==h?s(i,this.state===A?e:t,this.outcome):this.queue.push(new r(i,e,t)),i},r.prototype.callFulfilled=function(e){d.resolve(this.promise,e)},r.prototype.otherCallFulfilled=function(e){s(this.promise,this.onFulfilled,e)},r.prototype.callRejected=function(e){d.reject(this.promise,e)},r.prototype.otherCallRejected=function(e){s(this.promise,this.onRejected,e)},d.resolve=function(e,t){var n=l(o,t);if("error"===n.status)return d.reject(e,n.value)
;var i=n.value;if(i)a(e,i);else{e.state=A,e.outcome=t;for(var r=-1,s=e.queue.length;++r<s;)e.queue[r].callFulfilled(t)}return e},d.reject=function(e,t){e.state=u,e.outcome=t;for(var n=-1,i=e.queue.length;++n<i;)e.queue[n].callRejected(t);return e},i.resolve=function(e){return e instanceof this?e:d.resolve(new this(n),e)},i.reject=function(e){var t=new this(n);return d.reject(t,e)},i.all=function(e){function t(e,t){i.resolve(e).then((function(e){o[t]=e,++a!==r||s||(s=!0,d.resolve(c,o))
}),(function(e){s||(s=!0,d.reject(c,e))}))}var i=this;if("[object Array]"!=={}.toString.call(e))return this.reject(new TypeError("must be an array"));var r=e.length,s=!1;if(!r)return this.resolve([]);for(var o=new Array(r),a=0,l=-1,c=new this(n);++l<r;)t(e[l],l);return c},i.race=function(e){if("[object Array]"!=={}.toString.call(e))return this.reject(new TypeError("must be an array"));var t,i=e.length,r=!1;if(!i)return this.resolve([]);for(var s=-1,o=new this(n);++s<i;)t=e[s],
this.resolve(t).then((function(e){r||(r=!0,d.resolve(o,e))}),(function(e){r||(r=!0,d.reject(o,e))}));return o}},{immediate:36}],38:[function(e,t){"use strict";var n={};(0,e("./lib/utils/common").assign)(n,e("./lib/deflate"),e("./lib/inflate"),e("./lib/zlib/constants")),t.exports=n},{"./lib/deflate":39,"./lib/inflate":40,"./lib/utils/common":41,"./lib/zlib/constants":44}],39:[function(e,t,n){"use strict";function i(e){if(!(this instanceof i))return new i(e);this.options=o.assign({level:A,
method:p,chunkSize:16384,windowBits:15,memLevel:8,strategy:h,to:""},e||{});var t=this.options;t.raw&&t.windowBits>0?t.windowBits=-t.windowBits:t.gzip&&t.windowBits>0&&t.windowBits<16&&(t.windowBits+=16),this.err=0,this.msg="",this.ended=!1,this.chunks=[],this.strm=new c,this.strm.avail_out=0;var n=s.deflateInit2(this.strm,t.level,t.method,t.windowBits,t.memLevel,t.strategy);if(n!==u)throw new Error(l[n]);if(t.header&&s.deflateSetHeader(this.strm,t.header),t.dictionary){var r
;if(r="string"==typeof t.dictionary?a.string2buf(t.dictionary):"[object ArrayBuffer]"===d.call(t.dictionary)?new Uint8Array(t.dictionary):t.dictionary,(n=s.deflateSetDictionary(this.strm,r))!==u)throw new Error(l[n]);this._dict_set=!0}}function r(e,t){var n=new i(t);if(n.push(e,!0),n.err)throw n.msg||l[n.err];return n.result}var s=e("./zlib/deflate"),o=e("./utils/common"),a=e("./utils/strings"),l=e("./zlib/messages"),c=e("./zlib/zstream"),d={}.toString,u=0,A=-1,h=0,p=8
;i.prototype.push=function(e,t){var n,i,r=this.strm,l=this.options.chunkSize;if(this.ended)return!1;i=t===~~t?t:!0===t?4:0,"string"==typeof e?r.input=a.string2buf(e):"[object ArrayBuffer]"===d.call(e)?r.input=new Uint8Array(e):r.input=e,r.next_in=0,r.avail_in=r.input.length;do{if(0===r.avail_out&&(r.output=new o.Buf8(l),r.next_out=0,r.avail_out=l),1!==(n=s.deflate(r,i))&&n!==u)return this.onEnd(n),this.ended=!0,!1
;0!==r.avail_out&&(0!==r.avail_in||4!==i&&2!==i)||("string"===this.options.to?this.onData(a.buf2binstring(o.shrinkBuf(r.output,r.next_out))):this.onData(o.shrinkBuf(r.output,r.next_out)))}while((r.avail_in>0||0===r.avail_out)&&1!==n);return 4===i?(n=s.deflateEnd(this.strm),this.onEnd(n),this.ended=!0,n===u):2!==i||(this.onEnd(u),r.avail_out=0,!0)},i.prototype.onData=function(e){this.chunks.push(e)},i.prototype.onEnd=function(e){
e===u&&("string"===this.options.to?this.result=this.chunks.join(""):this.result=o.flattenChunks(this.chunks)),this.chunks=[],this.err=e,this.msg=this.strm.msg},n.Deflate=i,n.deflate=r,n.deflateRaw=function(e,t){return(t=t||{}).raw=!0,r(e,t)},n.gzip=function(e,t){return(t=t||{}).gzip=!0,r(e,t)}},{"./utils/common":41,"./utils/strings":42,"./zlib/deflate":46,"./zlib/messages":51,"./zlib/zstream":53}],40:[function(e,t,n){"use strict";function i(e){if(!(this instanceof i))return new i(e)
;this.options=o.assign({chunkSize:16384,windowBits:0,to:""},e||{});var t=this.options;t.raw&&t.windowBits>=0&&t.windowBits<16&&(t.windowBits=-t.windowBits,0===t.windowBits&&(t.windowBits=-15)),!(t.windowBits>=0&&t.windowBits<16)||e&&e.windowBits||(t.windowBits+=32),t.windowBits>15&&t.windowBits<48&&0==(15&t.windowBits)&&(t.windowBits|=15),this.err=0,this.msg="",this.ended=!1,this.chunks=[],this.strm=new d,this.strm.avail_out=0;var n=s.inflateInit2(this.strm,t.windowBits)
;if(n!==l.Z_OK)throw new Error(c[n]);this.header=new u,s.inflateGetHeader(this.strm,this.header)}function r(e,t){var n=new i(t);if(n.push(e,!0),n.err)throw n.msg||c[n.err];return n.result}var s=e("./zlib/inflate"),o=e("./utils/common"),a=e("./utils/strings"),l=e("./zlib/constants"),c=e("./zlib/messages"),d=e("./zlib/zstream"),u=e("./zlib/gzheader"),A={}.toString;i.prototype.push=function(e,t){var n,i,r,c,d,u,h=this.strm,p=this.options.chunkSize,f=this.options.dictionary,m=!1
;if(this.ended)return!1;i=t===~~t?t:!0===t?l.Z_FINISH:l.Z_NO_FLUSH,"string"==typeof e?h.input=a.binstring2buf(e):"[object ArrayBuffer]"===A.call(e)?h.input=new Uint8Array(e):h.input=e,h.next_in=0,h.avail_in=h.input.length;do{if(0===h.avail_out&&(h.output=new o.Buf8(p),h.next_out=0,h.avail_out=p),(n=s.inflate(h,l.Z_NO_FLUSH))===l.Z_NEED_DICT&&f&&(u="string"==typeof f?a.string2buf(f):"[object ArrayBuffer]"===A.call(f)?new Uint8Array(f):f,n=s.inflateSetDictionary(this.strm,u)),
n===l.Z_BUF_ERROR&&!0===m&&(n=l.Z_OK,m=!1),n!==l.Z_STREAM_END&&n!==l.Z_OK)return this.onEnd(n),this.ended=!0,!1;h.next_out&&(0!==h.avail_out&&n!==l.Z_STREAM_END&&(0!==h.avail_in||i!==l.Z_FINISH&&i!==l.Z_SYNC_FLUSH)||("string"===this.options.to?(r=a.utf8border(h.output,h.next_out),c=h.next_out-r,d=a.buf2string(h.output,r),h.next_out=c,h.avail_out=p-c,c&&o.arraySet(h.output,h.output,r,c,0),this.onData(d)):this.onData(o.shrinkBuf(h.output,h.next_out)))),0===h.avail_in&&0===h.avail_out&&(m=!0)
}while((h.avail_in>0||0===h.avail_out)&&n!==l.Z_STREAM_END);return n===l.Z_STREAM_END&&(i=l.Z_FINISH),i===l.Z_FINISH?(n=s.inflateEnd(this.strm),this.onEnd(n),this.ended=!0,n===l.Z_OK):i!==l.Z_SYNC_FLUSH||(this.onEnd(l.Z_OK),h.avail_out=0,!0)},i.prototype.onData=function(e){this.chunks.push(e)},i.prototype.onEnd=function(e){e===l.Z_OK&&("string"===this.options.to?this.result=this.chunks.join(""):this.result=o.flattenChunks(this.chunks)),this.chunks=[],this.err=e,this.msg=this.strm.msg},
n.Inflate=i,n.inflate=r,n.inflateRaw=function(e,t){return(t=t||{}).raw=!0,r(e,t)},n.ungzip=r},{"./utils/common":41,"./utils/strings":42,"./zlib/constants":44,"./zlib/gzheader":47,"./zlib/inflate":49,"./zlib/messages":51,"./zlib/zstream":53}],41:[function(e,t,n){"use strict";var i="undefined"!=typeof Uint8Array&&"undefined"!=typeof Uint16Array&&"undefined"!=typeof Int32Array;n.assign=function(e){for(var t=[].slice.call(arguments,1);t.length;){var n=t.shift();if(n){
if("object"!=typeof n)throw new TypeError(n+"must be non-object");for(var i in n)n.hasOwnProperty(i)&&(e[i]=n[i])}}return e},n.shrinkBuf=function(e,t){return e.length===t?e:e.subarray?e.subarray(0,t):(e.length=t,e)};var r={arraySet:function(e,t,n,i,r){if(t.subarray&&e.subarray)e.set(t.subarray(n,n+i),r);else for(var s=0;s<i;s++)e[r+s]=t[n+s]},flattenChunks:function(e){var t,n,i,r,s,o;for(i=0,t=0,n=e.length;t<n;t++)i+=e[t].length;for(o=new Uint8Array(i),r=0,t=0,n=e.length;t<n;t++)s=e[t],
o.set(s,r),r+=s.length;return o}},s={arraySet:function(e,t,n,i,r){for(var s=0;s<i;s++)e[r+s]=t[n+s]},flattenChunks:function(e){return[].concat.apply([],e)}};n.setTyped=function(e){e?(n.Buf8=Uint8Array,n.Buf16=Uint16Array,n.Buf32=Int32Array,n.assign(n,r)):(n.Buf8=Array,n.Buf16=Array,n.Buf32=Array,n.assign(n,s))},n.setTyped(i)},{}],42:[function(e,t,n){"use strict";function i(e,t){if(t<65537&&(e.subarray&&o||!e.subarray&&s))return String.fromCharCode.apply(null,r.shrinkBuf(e,t))
;for(var n="",i=0;i<t;i++)n+=String.fromCharCode(e[i]);return n}var r=e("./common"),s=!0,o=!0;try{String.fromCharCode.apply(null,[0])}catch(e){s=!1}try{String.fromCharCode.apply(null,new Uint8Array(1))}catch(e){o=!1}for(var a=new r.Buf8(256),l=0;l<256;l++)a[l]=l>=252?6:l>=248?5:l>=240?4:l>=224?3:l>=192?2:1;a[254]=a[254]=1,n.string2buf=function(e){var t,n,i,s,o,a=e.length,l=0
;for(s=0;s<a;s++)55296==(64512&(n=e.charCodeAt(s)))&&s+1<a&&56320==(64512&(i=e.charCodeAt(s+1)))&&(n=65536+(n-55296<<10)+(i-56320),s++),l+=n<128?1:n<2048?2:n<65536?3:4;for(t=new r.Buf8(l),o=0,s=0;o<l;s++)55296==(64512&(n=e.charCodeAt(s)))&&s+1<a&&56320==(64512&(i=e.charCodeAt(s+1)))&&(n=65536+(n-55296<<10)+(i-56320),s++),n<128?t[o++]=n:n<2048?(t[o++]=192|n>>>6,t[o++]=128|63&n):n<65536?(t[o++]=224|n>>>12,t[o++]=128|n>>>6&63,t[o++]=128|63&n):(t[o++]=240|n>>>18,t[o++]=128|n>>>12&63,
t[o++]=128|n>>>6&63,t[o++]=128|63&n);return t},n.buf2binstring=function(e){return i(e,e.length)},n.binstring2buf=function(e){for(var t=new r.Buf8(e.length),n=0,i=t.length;n<i;n++)t[n]=e.charCodeAt(n);return t},n.buf2string=function(e,t){var n,r,s,o,l=t||e.length,c=new Array(2*l);for(r=0,n=0;n<l;)if((s=e[n++])<128)c[r++]=s;else if((o=a[s])>4)c[r++]=65533,n+=o-1;else{for(s&=2===o?31:3===o?15:7;o>1&&n<l;)s=s<<6|63&e[n++],o--;o>1?c[r++]=65533:s<65536?c[r++]=s:(s-=65536,c[r++]=55296|s>>10&1023,
c[r++]=56320|1023&s)}return i(c,r)},n.utf8border=function(e,t){var n;for((t=t||e.length)>e.length&&(t=e.length),n=t-1;n>=0&&128==(192&e[n]);)n--;return n<0||0===n?t:n+a[e[n]]>t?n:t}},{"./common":41}],43:[function(e,t){"use strict";t.exports=function(e,t,n,i){for(var r=65535&e|0,s=e>>>16&65535|0,o=0;0!==n;){n-=o=n>2e3?2e3:n;do{s=s+(r=r+t[i++]|0)|0}while(--o);r%=65521,s%=65521}return r|s<<16|0}},{}],44:[function(e,t){"use strict";t.exports={Z_NO_FLUSH:0,Z_PARTIAL_FLUSH:1,Z_SYNC_FLUSH:2,
Z_FULL_FLUSH:3,Z_FINISH:4,Z_BLOCK:5,Z_TREES:6,Z_OK:0,Z_STREAM_END:1,Z_NEED_DICT:2,Z_ERRNO:-1,Z_STREAM_ERROR:-2,Z_DATA_ERROR:-3,Z_BUF_ERROR:-5,Z_NO_COMPRESSION:0,Z_BEST_SPEED:1,Z_BEST_COMPRESSION:9,Z_DEFAULT_COMPRESSION:-1,Z_FILTERED:1,Z_HUFFMAN_ONLY:2,Z_RLE:3,Z_FIXED:4,Z_DEFAULT_STRATEGY:0,Z_BINARY:0,Z_TEXT:1,Z_UNKNOWN:2,Z_DEFLATED:8}},{}],45:[function(e,t){"use strict";var n=function(){for(var e,t=[],n=0;n<256;n++){e=n;for(var i=0;i<8;i++)e=1&e?3988292384^e>>>1:e>>>1;t[n]=e}return t}()
;t.exports=function(e,t,i,r){var s=n,o=r+i;e^=-1;for(var a=r;a<o;a++)e=e>>>8^s[255&(e^t[a])];return-1^e}},{}],46:[function(e,t,n){"use strict";function i(e,t){return e.msg=R[t],t}function r(e){return(e<<1)-(e>4?9:0)}function s(e){for(var t=e.length;--t>=0;)e[t]=0}function o(e){var t=e.state,n=t.pending;n>e.avail_out&&(n=e.avail_out),0!==n&&(v.arraySet(e.output,t.pending_buf,t.pending_out,n,e.next_out),e.next_out+=n,t.pending_out+=n,e.total_out+=n,e.avail_out-=n,t.pending-=n,
0===t.pending&&(t.pending_out=0))}function a(e,t){w._tr_flush_block(e,e.block_start>=0?e.block_start:-1,e.strstart-e.block_start,t),e.block_start=e.strstart,o(e.strm)}function l(e,t){e.pending_buf[e.pending++]=t}function c(e,t){e.pending_buf[e.pending++]=t>>>8&255,e.pending_buf[e.pending++]=255&t}function d(e,t){
var n,i,r=e.max_chain_length,s=e.strstart,o=e.prev_length,a=e.nice_match,l=e.strstart>e.w_size-P?e.strstart-(e.w_size-P):0,c=e.window,d=e.w_mask,u=e.prev,A=e.strstart+z,h=c[s+o-1],p=c[s+o];e.prev_length>=e.good_match&&(r>>=2),a>e.lookahead&&(a=e.lookahead);do{if(c[(n=t)+o]===p&&c[n+o-1]===h&&c[n]===c[s]&&c[++n]===c[s+1]){s+=2,n++;do{}while(c[++s]===c[++n]&&c[++s]===c[++n]&&c[++s]===c[++n]&&c[++s]===c[++n]&&c[++s]===c[++n]&&c[++s]===c[++n]&&c[++s]===c[++n]&&c[++s]===c[++n]&&s<A);if(i=z-(A-s),
s=A-z,i>o){if(e.match_start=t,o=i,i>=a)break;h=c[s+o-1],p=c[s+o]}}}while((t=u[t&d])>l&&0!=--r);return o<=e.lookahead?o:e.lookahead}function u(e){var t,n,i,r,s,o,a,l,c,d,u=e.w_size;do{if(r=e.window_size-e.lookahead-e.strstart,e.strstart>=u+(u-P)){v.arraySet(e.window,e.window,u,u,0),e.match_start-=u,e.strstart-=u,e.block_start-=u,t=n=e.hash_size;do{i=e.head[--t],e.head[t]=i>=u?i-u:0}while(--n);t=n=u;do{i=e.prev[--t],e.prev[t]=i>=u?i-u:0}while(--n);r+=u}if(0===e.strm.avail_in)break;if(o=e.strm,
a=e.window,l=e.strstart+e.lookahead,c=r,d=void 0,(d=o.avail_in)>c&&(d=c),n=0===d?0:(o.avail_in-=d,v.arraySet(a,o.input,o.next_in,d,l),1===o.state.wrap?o.adler=y(o.adler,a,d,l):2===o.state.wrap&&(o.adler=k(o.adler,a,d,l)),o.next_in+=d,o.total_in+=d,d),e.lookahead+=n,e.lookahead+e.insert>=O)for(s=e.strstart-e.insert,e.ins_h=e.window[s],e.ins_h=(e.ins_h<<e.hash_shift^e.window[s+1])&e.hash_mask;e.insert&&(e.ins_h=(e.ins_h<<e.hash_shift^e.window[s+O-1])&e.hash_mask,e.prev[s&e.w_mask]=e.head[e.ins_h],
e.head[e.ins_h]=s,s++,e.insert--,!(e.lookahead+e.insert<O)););}while(e.lookahead<P&&0!==e.strm.avail_in)}function A(e,t){for(var n,i;;){if(e.lookahead<P){if(u(e),e.lookahead<P&&t===x)return q;if(0===e.lookahead)break}if(n=0,e.lookahead>=O&&(e.ins_h=(e.ins_h<<e.hash_shift^e.window[e.strstart+O-1])&e.hash_mask,n=e.prev[e.strstart&e.w_mask]=e.head[e.ins_h],e.head[e.ins_h]=e.strstart),0!==n&&e.strstart-n<=e.w_size-P&&(e.match_length=d(e,n)),
e.match_length>=O)if(i=w._tr_tally(e,e.strstart-e.match_start,e.match_length-O),e.lookahead-=e.match_length,e.match_length<=e.max_lazy_match&&e.lookahead>=O){e.match_length--;do{e.strstart++,e.ins_h=(e.ins_h<<e.hash_shift^e.window[e.strstart+O-1])&e.hash_mask,n=e.prev[e.strstart&e.w_mask]=e.head[e.ins_h],e.head[e.ins_h]=e.strstart}while(0!=--e.match_length);e.strstart++}else e.strstart+=e.match_length,e.match_length=0,e.ins_h=e.window[e.strstart],
e.ins_h=(e.ins_h<<e.hash_shift^e.window[e.strstart+1])&e.hash_mask;else i=w._tr_tally(e,0,e.window[e.strstart]),e.lookahead--,e.strstart++;if(i&&(a(e,!1),0===e.strm.avail_out))return q}return e.insert=e.strstart<O-1?e.strstart:O-1,t===C?(a(e,!0),0===e.strm.avail_out?W:Y):e.last_lit&&(a(e,!1),0===e.strm.avail_out)?q:X}function h(e,t){for(var n,i,r;;){if(e.lookahead<P){if(u(e),e.lookahead<P&&t===x)return q;if(0===e.lookahead)break}if(n=0,
e.lookahead>=O&&(e.ins_h=(e.ins_h<<e.hash_shift^e.window[e.strstart+O-1])&e.hash_mask,n=e.prev[e.strstart&e.w_mask]=e.head[e.ins_h],e.head[e.ins_h]=e.strstart),e.prev_length=e.match_length,e.prev_match=e.match_start,e.match_length=O-1,0!==n&&e.prev_length<e.max_lazy_match&&e.strstart-n<=e.w_size-P&&(e.match_length=d(e,n),e.match_length<=5&&(e.strategy===S||e.match_length===O&&e.strstart-e.match_start>4096)&&(e.match_length=O-1)),e.prev_length>=O&&e.match_length<=e.prev_length){
r=e.strstart+e.lookahead-O,i=w._tr_tally(e,e.strstart-1-e.prev_match,e.prev_length-O),e.lookahead-=e.prev_length-1,e.prev_length-=2;do{++e.strstart<=r&&(e.ins_h=(e.ins_h<<e.hash_shift^e.window[e.strstart+O-1])&e.hash_mask,n=e.prev[e.strstart&e.w_mask]=e.head[e.ins_h],e.head[e.ins_h]=e.strstart)}while(0!=--e.prev_length);if(e.match_available=0,e.match_length=O-1,e.strstart++,i&&(a(e,!1),0===e.strm.avail_out))return q}else if(e.match_available){
if((i=w._tr_tally(e,0,e.window[e.strstart-1]))&&a(e,!1),e.strstart++,e.lookahead--,0===e.strm.avail_out)return q}else e.match_available=1,e.strstart++,e.lookahead--}return e.match_available&&(i=w._tr_tally(e,0,e.window[e.strstart-1]),e.match_available=0),e.insert=e.strstart<O-1?e.strstart:O-1,t===C?(a(e,!0),0===e.strm.avail_out?W:Y):e.last_lit&&(a(e,!1),0===e.strm.avail_out)?q:X}function p(e,t,n,i,r){this.good_length=e,this.max_lazy=t,this.nice_length=n,this.max_chain=i,this.func=r}function f(){
this.strm=null,this.status=0,this.pending_buf=null,this.pending_buf_size=0,this.pending_out=0,this.pending=0,this.wrap=0,this.gzhead=null,this.gzindex=0,this.method=I,this.last_flush=-1,this.w_size=0,this.w_bits=0,this.w_mask=0,this.window=null,this.window_size=0,this.prev=null,this.head=null,this.ins_h=0,this.hash_size=0,this.hash_bits=0,this.hash_mask=0,this.hash_shift=0,this.block_start=0,this.match_length=0,this.prev_match=0,this.match_available=0,this.strstart=0,this.match_start=0,
this.lookahead=0,this.prev_length=0,this.max_chain_length=0,this.max_lazy_match=0,this.level=0,this.strategy=0,this.good_match=0,this.nice_match=0,this.dyn_ltree=new v.Buf16(2*j),this.dyn_dtree=new v.Buf16(2*(2*F+1)),this.bl_tree=new v.Buf16(2*(2*M+1)),s(this.dyn_ltree),s(this.dyn_dtree),s(this.bl_tree),this.l_desc=null,this.d_desc=null,this.bl_desc=null,this.bl_count=new v.Buf16(D+1),this.heap=new v.Buf16(2*L+1),s(this.heap),this.heap_len=0,this.heap_max=0,this.depth=new v.Buf16(2*L+1),
s(this.depth),this.l_buf=0,this.lit_bufsize=0,this.last_lit=0,this.d_buf=0,this.opt_len=0,this.static_len=0,this.matches=0,this.insert=0,this.bi_buf=0,this.bi_valid=0}function m(e){var t;return e&&e.state?(e.total_in=e.total_out=0,e.data_type=T,(t=e.state).pending=0,t.pending_out=0,t.wrap<0&&(t.wrap=-t.wrap),t.status=t.wrap?N:Q,e.adler=2===t.wrap?0:1,t.last_flush=x,w._tr_init(t),E):i(e,G)}function g(e){var t,n=m(e);return n===E&&((t=e.state).window_size=2*t.w_size,s(t.head),
t.max_lazy_match=b[t.level].max_lazy,t.good_match=b[t.level].good_length,t.nice_match=b[t.level].nice_length,t.max_chain_length=b[t.level].max_chain,t.strstart=0,t.block_start=0,t.lookahead=0,t.insert=0,t.match_length=t.prev_length=O-1,t.match_available=0,t.ins_h=0),n}function _(e,t,n,r,s,o){if(!e)return G;var a=1;if(t===Z&&(t=6),r<0?(a=0,r=-r):r>15&&(a=2,r-=16),s<1||s>U||n!==I||r<8||r>15||t<0||t>9||o<0||o>B)return i(e,G);8===r&&(r=9);var l=new f;return e.state=l,l.strm=e,l.wrap=a,l.gzhead=null,
l.w_bits=r,l.w_size=1<<l.w_bits,l.w_mask=l.w_size-1,l.hash_bits=s+7,l.hash_size=1<<l.hash_bits,l.hash_mask=l.hash_size-1,l.hash_shift=~~((l.hash_bits+O-1)/O),l.window=new v.Buf8(2*l.w_size),l.head=new v.Buf16(l.hash_size),l.prev=new v.Buf16(l.w_size),l.lit_bufsize=1<<s+6,l.pending_buf_size=4*l.lit_bufsize,l.pending_buf=new v.Buf8(l.pending_buf_size),l.d_buf=1*l.lit_bufsize,l.l_buf=3*l.lit_bufsize,l.level=t,l.strategy=o,l.method=n,g(e)}
var b,v=e("../utils/common"),w=e("./trees"),y=e("./adler32"),k=e("./crc32"),R=e("./messages"),x=0,C=4,E=0,G=-2,Z=-1,S=1,B=4,T=2,I=8,U=9,L=286,F=30,M=19,j=2*L+1,D=15,O=3,z=258,P=z+O+1,N=42,V=103,Q=113,H=666,q=1,X=2,W=3,Y=4;b=[new p(0,0,0,0,(function(e,t){var n=65535;for(n>e.pending_buf_size-5&&(n=e.pending_buf_size-5);;){if(e.lookahead<=1){if(u(e),0===e.lookahead&&t===x)return q;if(0===e.lookahead)break}e.strstart+=e.lookahead,e.lookahead=0;var i=e.block_start+n
;if((0===e.strstart||e.strstart>=i)&&(e.lookahead=e.strstart-i,e.strstart=i,a(e,!1),0===e.strm.avail_out))return q;if(e.strstart-e.block_start>=e.w_size-P&&(a(e,!1),0===e.strm.avail_out))return q}return e.insert=0,t===C?(a(e,!0),0===e.strm.avail_out?W:Y):(e.strstart>e.block_start&&(a(e,!1),e.strm.avail_out),q)
})),new p(4,4,8,4,A),new p(4,5,16,8,A),new p(4,6,32,32,A),new p(4,4,16,16,h),new p(8,16,32,32,h),new p(8,16,128,128,h),new p(8,32,128,256,h),new p(32,128,258,1024,h),new p(32,258,258,4096,h)],n.deflateInit=function(e,t){return _(e,t,I,15,8,0)},n.deflateInit2=_,n.deflateReset=g,n.deflateResetKeep=m,n.deflateSetHeader=function(e,t){return e&&e.state?2!==e.state.wrap?G:(e.state.gzhead=t,E):G},n.deflate=function(e,t){var n,d,A,h;if(!e||!e.state||t>5||t<0)return e?i(e,G):G;if(d=e.state,
!e.output||!e.input&&0!==e.avail_in||d.status===H&&t!==C)return i(e,0===e.avail_out?-5:G);if(d.strm=e,n=d.last_flush,d.last_flush=t,d.status===N)if(2===d.wrap)e.adler=0,l(d,31),l(d,139),l(d,8),d.gzhead?(l(d,(d.gzhead.text?1:0)+(d.gzhead.hcrc?2:0)+(d.gzhead.extra?4:0)+(d.gzhead.name?8:0)+(d.gzhead.comment?16:0)),l(d,255&d.gzhead.time),l(d,d.gzhead.time>>8&255),l(d,d.gzhead.time>>16&255),l(d,d.gzhead.time>>24&255),l(d,9===d.level?2:d.strategy>=2||d.level<2?4:0),l(d,255&d.gzhead.os),
d.gzhead.extra&&d.gzhead.extra.length&&(l(d,255&d.gzhead.extra.length),l(d,d.gzhead.extra.length>>8&255)),d.gzhead.hcrc&&(e.adler=k(e.adler,d.pending_buf,d.pending,0)),d.gzindex=0,d.status=69):(l(d,0),l(d,0),l(d,0),l(d,0),l(d,0),l(d,9===d.level?2:d.strategy>=2||d.level<2?4:0),l(d,3),d.status=Q);else{var p=I+(d.w_bits-8<<4)<<8;p|=(d.strategy>=2||d.level<2?0:d.level<6?1:6===d.level?2:3)<<6,0!==d.strstart&&(p|=32),p+=31-p%31,d.status=Q,c(d,p),0!==d.strstart&&(c(d,e.adler>>>16),c(d,65535&e.adler)),
e.adler=1}if(69===d.status)if(d.gzhead.extra){for(A=d.pending;d.gzindex<(65535&d.gzhead.extra.length)&&(d.pending!==d.pending_buf_size||(d.gzhead.hcrc&&d.pending>A&&(e.adler=k(e.adler,d.pending_buf,d.pending-A,A)),o(e),A=d.pending,d.pending!==d.pending_buf_size));)l(d,255&d.gzhead.extra[d.gzindex]),d.gzindex++;d.gzhead.hcrc&&d.pending>A&&(e.adler=k(e.adler,d.pending_buf,d.pending-A,A)),d.gzindex===d.gzhead.extra.length&&(d.gzindex=0,d.status=73)}else d.status=73
;if(73===d.status)if(d.gzhead.name){A=d.pending;do{if(d.pending===d.pending_buf_size&&(d.gzhead.hcrc&&d.pending>A&&(e.adler=k(e.adler,d.pending_buf,d.pending-A,A)),o(e),A=d.pending,d.pending===d.pending_buf_size)){h=1;break}h=d.gzindex<d.gzhead.name.length?255&d.gzhead.name.charCodeAt(d.gzindex++):0,l(d,h)}while(0!==h);d.gzhead.hcrc&&d.pending>A&&(e.adler=k(e.adler,d.pending_buf,d.pending-A,A)),0===h&&(d.gzindex=0,d.status=91)}else d.status=91;if(91===d.status)if(d.gzhead.comment){A=d.pending
;do{if(d.pending===d.pending_buf_size&&(d.gzhead.hcrc&&d.pending>A&&(e.adler=k(e.adler,d.pending_buf,d.pending-A,A)),o(e),A=d.pending,d.pending===d.pending_buf_size)){h=1;break}h=d.gzindex<d.gzhead.comment.length?255&d.gzhead.comment.charCodeAt(d.gzindex++):0,l(d,h)}while(0!==h);d.gzhead.hcrc&&d.pending>A&&(e.adler=k(e.adler,d.pending_buf,d.pending-A,A)),0===h&&(d.status=V)}else d.status=V;if(d.status===V&&(d.gzhead.hcrc?(d.pending+2>d.pending_buf_size&&o(e),
d.pending+2<=d.pending_buf_size&&(l(d,255&e.adler),l(d,e.adler>>8&255),e.adler=0,d.status=Q)):d.status=Q),0!==d.pending){if(o(e),0===e.avail_out)return d.last_flush=-1,E}else if(0===e.avail_in&&r(t)<=r(n)&&t!==C)return i(e,-5);if(d.status===H&&0!==e.avail_in)return i(e,-5);if(0!==e.avail_in||0!==d.lookahead||t!==x&&d.status!==H){var f=2===d.strategy?function(e,t){for(var n;;){if(0===e.lookahead&&(u(e),0===e.lookahead)){if(t===x)return q;break}if(e.match_length=0,
n=w._tr_tally(e,0,e.window[e.strstart]),e.lookahead--,e.strstart++,n&&(a(e,!1),0===e.strm.avail_out))return q}return e.insert=0,t===C?(a(e,!0),0===e.strm.avail_out?W:Y):e.last_lit&&(a(e,!1),0===e.strm.avail_out)?q:X}(d,t):3===d.strategy?function(e,t){for(var n,i,r,s,o=e.window;;){if(e.lookahead<=z){if(u(e),e.lookahead<=z&&t===x)return q;if(0===e.lookahead)break}if(e.match_length=0,e.lookahead>=O&&e.strstart>0&&(i=o[r=e.strstart-1])===o[++r]&&i===o[++r]&&i===o[++r]){s=e.strstart+z
;do{}while(i===o[++r]&&i===o[++r]&&i===o[++r]&&i===o[++r]&&i===o[++r]&&i===o[++r]&&i===o[++r]&&i===o[++r]&&r<s);e.match_length=z-(s-r),e.match_length>e.lookahead&&(e.match_length=e.lookahead)}if(e.match_length>=O?(n=w._tr_tally(e,1,e.match_length-O),e.lookahead-=e.match_length,e.strstart+=e.match_length,e.match_length=0):(n=w._tr_tally(e,0,e.window[e.strstart]),e.lookahead--,e.strstart++),n&&(a(e,!1),0===e.strm.avail_out))return q}return e.insert=0,t===C?(a(e,!0),
0===e.strm.avail_out?W:Y):e.last_lit&&(a(e,!1),0===e.strm.avail_out)?q:X}(d,t):b[d.level].func(d,t);if(f!==W&&f!==Y||(d.status=H),f===q||f===W)return 0===e.avail_out&&(d.last_flush=-1),E;if(f===X&&(1===t?w._tr_align(d):5!==t&&(w._tr_stored_block(d,0,0,!1),3===t&&(s(d.head),0===d.lookahead&&(d.strstart=0,d.block_start=0,d.insert=0))),o(e),0===e.avail_out))return d.last_flush=-1,E}return t!==C?E:d.wrap<=0?1:(2===d.wrap?(l(d,255&e.adler),l(d,e.adler>>8&255),l(d,e.adler>>16&255),
l(d,e.adler>>24&255),l(d,255&e.total_in),l(d,e.total_in>>8&255),l(d,e.total_in>>16&255),l(d,e.total_in>>24&255)):(c(d,e.adler>>>16),c(d,65535&e.adler)),o(e),d.wrap>0&&(d.wrap=-d.wrap),0!==d.pending?E:1)},n.deflateEnd=function(e){var t;return e&&e.state?(t=e.state.status)!==N&&69!==t&&73!==t&&91!==t&&t!==V&&t!==Q&&t!==H?i(e,G):(e.state=null,t===Q?i(e,-3):E):G},n.deflateSetDictionary=function(e,t){var n,i,r,o,a,l,c,d,A=t.length;if(!e||!e.state)return G
;if(2===(o=(n=e.state).wrap)||1===o&&n.status!==N||n.lookahead)return G;for(1===o&&(e.adler=y(e.adler,t,A,0)),n.wrap=0,A>=n.w_size&&(0===o&&(s(n.head),n.strstart=0,n.block_start=0,n.insert=0),d=new v.Buf8(n.w_size),v.arraySet(d,t,A-n.w_size,n.w_size,0),t=d,A=n.w_size),a=e.avail_in,l=e.next_in,c=e.input,e.avail_in=A,e.next_in=0,e.input=t,u(n);n.lookahead>=O;){i=n.strstart,r=n.lookahead-(O-1);do{n.ins_h=(n.ins_h<<n.hash_shift^n.window[i+O-1])&n.hash_mask,n.prev[i&n.w_mask]=n.head[n.ins_h],
n.head[n.ins_h]=i,i++}while(--r);n.strstart=i,n.lookahead=O-1,u(n)}return n.strstart+=n.lookahead,n.block_start=n.strstart,n.insert=n.lookahead,n.lookahead=0,n.match_length=n.prev_length=O-1,n.match_available=0,e.next_in=l,e.input=c,e.avail_in=a,n.wrap=o,E},n.deflateInfo="pako deflate (from Nodeca project)"},{"../utils/common":41,"./adler32":43,"./crc32":45,"./messages":51,"./trees":52}],47:[function(e,t){"use strict";t.exports=function(){this.text=0,this.time=0,this.xflags=0,this.os=0,
this.extra=null,this.extra_len=0,this.name="",this.comment="",this.hcrc=0,this.done=!1}},{}],48:[function(e,t){"use strict";t.exports=function(e,t){var n,i,r,s,o,a,l,c,d,u,A,h,p,f,m,g,_,b,v,w,y,k,R,x,C;n=e.state,i=e.next_in,x=e.input,r=i+(e.avail_in-5),s=e.next_out,C=e.output,o=s-(t-e.avail_out),a=s+(e.avail_out-257),l=n.dmax,c=n.wsize,d=n.whave,u=n.wnext,A=n.window,h=n.hold,p=n.bits,f=n.lencode,m=n.distcode,g=(1<<n.lenbits)-1,_=(1<<n.distbits)-1;e:do{p<15&&(h+=x[i++]<<p,p+=8,h+=x[i++]<<p,p+=8),
b=f[h&g];t:for(;;){if(h>>>=v=b>>>24,p-=v,0==(v=b>>>16&255))C[s++]=65535&b;else{if(!(16&v)){if(0==(64&v)){b=f[(65535&b)+(h&(1<<v)-1)];continue t}if(32&v){n.mode=12;break e}e.msg="invalid literal/length code",n.mode=30;break e}w=65535&b,(v&=15)&&(p<v&&(h+=x[i++]<<p,p+=8),w+=h&(1<<v)-1,h>>>=v,p-=v),p<15&&(h+=x[i++]<<p,p+=8,h+=x[i++]<<p,p+=8),b=m[h&_];n:for(;;){if(h>>>=v=b>>>24,p-=v,!(16&(v=b>>>16&255))){if(0==(64&v)){b=m[(65535&b)+(h&(1<<v)-1)];continue n}e.msg="invalid distance code",n.mode=30
;break e}if(y=65535&b,p<(v&=15)&&(h+=x[i++]<<p,(p+=8)<v&&(h+=x[i++]<<p,p+=8)),(y+=h&(1<<v)-1)>l){e.msg="invalid distance too far back",n.mode=30;break e}if(h>>>=v,p-=v,y>(v=s-o)){if((v=y-v)>d&&n.sane){e.msg="invalid distance too far back",n.mode=30;break e}if(k=0,R=A,0===u){if(k+=c-v,v<w){w-=v;do{C[s++]=A[k++]}while(--v);k=s-y,R=C}}else if(u<v){if(k+=c+u-v,(v-=u)<w){w-=v;do{C[s++]=A[k++]}while(--v);if(k=0,u<w){w-=v=u;do{C[s++]=A[k++]}while(--v);k=s-y,R=C}}}else if(k+=u-v,v<w){w-=v;do{
C[s++]=A[k++]}while(--v);k=s-y,R=C}for(;w>2;)C[s++]=R[k++],C[s++]=R[k++],C[s++]=R[k++],w-=3;w&&(C[s++]=R[k++],w>1&&(C[s++]=R[k++]))}else{k=s-y;do{C[s++]=C[k++],C[s++]=C[k++],C[s++]=C[k++],w-=3}while(w>2);w&&(C[s++]=C[k++],w>1&&(C[s++]=C[k++]))}break}}break}}while(i<r&&s<a);i-=w=p>>3,h&=(1<<(p-=w<<3))-1,e.next_in=i,e.next_out=s,e.avail_in=i<r?r-i+5:5-(i-r),e.avail_out=s<a?a-s+257:257-(s-a),n.hold=h,n.bits=p}},{}],49:[function(e,t,n){"use strict";function i(e){
return(e>>>24&255)+(e>>>8&65280)+((65280&e)<<8)+((255&e)<<24)}function r(){this.mode=0,this.last=!1,this.wrap=0,this.havedict=!1,this.flags=0,this.dmax=0,this.check=0,this.total=0,this.head=null,this.wbits=0,this.wsize=0,this.whave=0,this.wnext=0,this.window=null,this.hold=0,this.bits=0,this.length=0,this.offset=0,this.extra=0,this.lencode=null,this.distcode=null,this.lenbits=0,this.distbits=0,this.ncode=0,this.nlen=0,this.ndist=0,this.have=0,this.next=null,this.lens=new h.Buf16(320),
this.work=new h.Buf16(288),this.lendyn=null,this.distdyn=null,this.sane=0,this.back=0,this.was=0}function s(e){var t;return e&&e.state?(t=e.state,e.total_in=e.total_out=t.total=0,e.msg="",t.wrap&&(e.adler=1&t.wrap),t.mode=y,t.last=0,t.havedict=0,t.dmax=32768,t.head=null,t.hold=0,t.bits=0,t.lencode=t.lendyn=new h.Buf32(x),t.distcode=t.distdyn=new h.Buf32(C),t.sane=1,t.back=-1,v):w}function o(e){var t;return e&&e.state?((t=e.state).wsize=0,t.whave=0,t.wnext=0,s(e)):w}function a(e,t){var n,i
;return e&&e.state?(i=e.state,t<0?(n=0,t=-t):(n=1+(t>>4),t<48&&(t&=15)),t&&(t<8||t>15)?w:(null!==i.window&&i.wbits!==t&&(i.window=null),i.wrap=n,i.wbits=t,o(e))):w}function l(e,t){var n,i;return e?(i=new r,e.state=i,i.window=null,(n=a(e,t))!==v&&(e.state=null),n):w}function c(e){if(E){var t;for(u=new h.Buf32(512),A=new h.Buf32(32),t=0;t<144;)e.lens[t++]=8;for(;t<256;)e.lens[t++]=9;for(;t<280;)e.lens[t++]=7;for(;t<288;)e.lens[t++]=8;for(g(_,e.lens,0,288,u,0,e.work,{bits:9}),
t=0;t<32;)e.lens[t++]=5;g(b,e.lens,0,32,A,0,e.work,{bits:5}),E=!1}e.lencode=u,e.lenbits=9,e.distcode=A,e.distbits=5}function d(e,t,n,i){var r,s=e.state;return null===s.window&&(s.wsize=1<<s.wbits,s.wnext=0,s.whave=0,s.window=new h.Buf8(s.wsize)),i>=s.wsize?(h.arraySet(s.window,t,n-s.wsize,s.wsize,0),s.wnext=0,s.whave=s.wsize):((r=s.wsize-s.wnext)>i&&(r=i),h.arraySet(s.window,t,n-i,r,s.wnext),(i-=r)?(h.arraySet(s.window,t,n-i,i,0),s.wnext=i,s.whave=s.wsize):(s.wnext+=r,
s.wnext===s.wsize&&(s.wnext=0),s.whave<s.wsize&&(s.whave+=r))),0}var u,A,h=e("../utils/common"),p=e("./adler32"),f=e("./crc32"),m=e("./inffast"),g=e("./inftrees"),_=1,b=2,v=0,w=-2,y=1,k=12,R=30,x=852,C=592,E=!0;n.inflateReset=o,n.inflateReset2=a,n.inflateResetKeep=s,n.inflateInit=function(e){return l(e,15)},n.inflateInit2=l,n.inflate=function(e,t){var n,r,s,o,a,l,u,A,x,C,E,G,Z,S,B,T,I,U,L,F,M,j,D,O,z=0,P=new h.Buf8(4),N=[16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15]
;if(!e||!e.state||!e.output||!e.input&&0!==e.avail_in)return w;(n=e.state).mode===k&&(n.mode=13),a=e.next_out,s=e.output,u=e.avail_out,o=e.next_in,r=e.input,l=e.avail_in,A=n.hold,x=n.bits,C=l,E=u,j=v;e:for(;;)switch(n.mode){case y:if(0===n.wrap){n.mode=13;break}for(;x<16;){if(0===l)break e;l--,A+=r[o++]<<x,x+=8}if(2&n.wrap&&35615===A){n.check=0,P[0]=255&A,P[1]=A>>>8&255,n.check=f(n.check,P,2,0),A=0,x=0,n.mode=2;break}if(n.flags=0,n.head&&(n.head.done=!1),!(1&n.wrap)||(((255&A)<<8)+(A>>8))%31){
e.msg="incorrect header check",n.mode=R;break}if(8!=(15&A)){e.msg="unknown compression method",n.mode=R;break}if(x-=4,M=8+(15&(A>>>=4)),0===n.wbits)n.wbits=M;else if(M>n.wbits){e.msg="invalid window size",n.mode=R;break}n.dmax=1<<M,e.adler=n.check=1,n.mode=512&A?10:k,A=0,x=0;break;case 2:for(;x<16;){if(0===l)break e;l--,A+=r[o++]<<x,x+=8}if(n.flags=A,8!=(255&n.flags)){e.msg="unknown compression method",n.mode=R;break}if(57344&n.flags){e.msg="unknown header flags set",n.mode=R;break}
n.head&&(n.head.text=A>>8&1),512&n.flags&&(P[0]=255&A,P[1]=A>>>8&255,n.check=f(n.check,P,2,0)),A=0,x=0,n.mode=3;case 3:for(;x<32;){if(0===l)break e;l--,A+=r[o++]<<x,x+=8}n.head&&(n.head.time=A),512&n.flags&&(P[0]=255&A,P[1]=A>>>8&255,P[2]=A>>>16&255,P[3]=A>>>24&255,n.check=f(n.check,P,4,0)),A=0,x=0,n.mode=4;case 4:for(;x<16;){if(0===l)break e;l--,A+=r[o++]<<x,x+=8}n.head&&(n.head.xflags=255&A,n.head.os=A>>8),512&n.flags&&(P[0]=255&A,P[1]=A>>>8&255,n.check=f(n.check,P,2,0)),A=0,x=0,n.mode=5
;case 5:if(1024&n.flags){for(;x<16;){if(0===l)break e;l--,A+=r[o++]<<x,x+=8}n.length=A,n.head&&(n.head.extra_len=A),512&n.flags&&(P[0]=255&A,P[1]=A>>>8&255,n.check=f(n.check,P,2,0)),A=0,x=0}else n.head&&(n.head.extra=null);n.mode=6;case 6:if(1024&n.flags&&((G=n.length)>l&&(G=l),G&&(n.head&&(M=n.head.extra_len-n.length,n.head.extra||(n.head.extra=new Array(n.head.extra_len)),h.arraySet(n.head.extra,r,o,G,M)),512&n.flags&&(n.check=f(n.check,r,G,o)),l-=G,o+=G,n.length-=G),n.length))break e
;n.length=0,n.mode=7;case 7:if(2048&n.flags){if(0===l)break e;G=0;do{M=r[o+G++],n.head&&M&&n.length<65536&&(n.head.name+=String.fromCharCode(M))}while(M&&G<l);if(512&n.flags&&(n.check=f(n.check,r,G,o)),l-=G,o+=G,M)break e}else n.head&&(n.head.name=null);n.length=0,n.mode=8;case 8:if(4096&n.flags){if(0===l)break e;G=0;do{M=r[o+G++],n.head&&M&&n.length<65536&&(n.head.comment+=String.fromCharCode(M))}while(M&&G<l);if(512&n.flags&&(n.check=f(n.check,r,G,o)),l-=G,o+=G,M)break e
}else n.head&&(n.head.comment=null);n.mode=9;case 9:if(512&n.flags){for(;x<16;){if(0===l)break e;l--,A+=r[o++]<<x,x+=8}if(A!==(65535&n.check)){e.msg="header crc mismatch",n.mode=R;break}A=0,x=0}n.head&&(n.head.hcrc=n.flags>>9&1,n.head.done=!0),e.adler=n.check=0,n.mode=k;break;case 10:for(;x<32;){if(0===l)break e;l--,A+=r[o++]<<x,x+=8}e.adler=n.check=i(A),A=0,x=0,n.mode=11;case 11:if(0===n.havedict)return e.next_out=a,e.avail_out=u,e.next_in=o,e.avail_in=l,n.hold=A,n.bits=x,2;e.adler=n.check=1,
n.mode=k;case k:if(5===t||6===t)break e;case 13:if(n.last){A>>>=7&x,x-=7&x,n.mode=27;break}for(;x<3;){if(0===l)break e;l--,A+=r[o++]<<x,x+=8}switch(n.last=1&A,x-=1,3&(A>>>=1)){case 0:n.mode=14;break;case 1:if(c(n),n.mode=20,6===t){A>>>=2,x-=2;break e}break;case 2:n.mode=17;break;case 3:e.msg="invalid block type",n.mode=R}A>>>=2,x-=2;break;case 14:for(A>>>=7&x,x-=7&x;x<32;){if(0===l)break e;l--,A+=r[o++]<<x,x+=8}if((65535&A)!=(A>>>16^65535)){e.msg="invalid stored block lengths",n.mode=R;break}
if(n.length=65535&A,A=0,x=0,n.mode=15,6===t)break e;case 15:n.mode=16;case 16:if(G=n.length){if(G>l&&(G=l),G>u&&(G=u),0===G)break e;h.arraySet(s,r,o,G,a),l-=G,o+=G,u-=G,a+=G,n.length-=G;break}n.mode=k;break;case 17:for(;x<14;){if(0===l)break e;l--,A+=r[o++]<<x,x+=8}if(n.nlen=257+(31&A),A>>>=5,x-=5,n.ndist=1+(31&A),A>>>=5,x-=5,n.ncode=4+(15&A),A>>>=4,x-=4,n.nlen>286||n.ndist>30){e.msg="too many length or distance symbols",n.mode=R;break}n.have=0,n.mode=18;case 18:for(;n.have<n.ncode;){for(;x<3;){
if(0===l)break e;l--,A+=r[o++]<<x,x+=8}n.lens[N[n.have++]]=7&A,A>>>=3,x-=3}for(;n.have<19;)n.lens[N[n.have++]]=0;if(n.lencode=n.lendyn,n.lenbits=7,D={bits:n.lenbits},j=g(0,n.lens,0,19,n.lencode,0,n.work,D),n.lenbits=D.bits,j){e.msg="invalid code lengths set",n.mode=R;break}n.have=0,n.mode=19;case 19:for(;n.have<n.nlen+n.ndist;){for(;T=(z=n.lencode[A&(1<<n.lenbits)-1])>>>16&255,I=65535&z,!((B=z>>>24)<=x);){if(0===l)break e;l--,A+=r[o++]<<x,x+=8}if(I<16)A>>>=B,x-=B,n.lens[n.have++]=I;else{
if(16===I){for(O=B+2;x<O;){if(0===l)break e;l--,A+=r[o++]<<x,x+=8}if(A>>>=B,x-=B,0===n.have){e.msg="invalid bit length repeat",n.mode=R;break}M=n.lens[n.have-1],G=3+(3&A),A>>>=2,x-=2}else if(17===I){for(O=B+3;x<O;){if(0===l)break e;l--,A+=r[o++]<<x,x+=8}x-=B,M=0,G=3+(7&(A>>>=B)),A>>>=3,x-=3}else{for(O=B+7;x<O;){if(0===l)break e;l--,A+=r[o++]<<x,x+=8}x-=B,M=0,G=11+(127&(A>>>=B)),A>>>=7,x-=7}if(n.have+G>n.nlen+n.ndist){e.msg="invalid bit length repeat",n.mode=R;break}for(;G--;)n.lens[n.have++]=M}}
if(n.mode===R)break;if(0===n.lens[256]){e.msg="invalid code -- missing end-of-block",n.mode=R;break}if(n.lenbits=9,D={bits:n.lenbits},j=g(_,n.lens,0,n.nlen,n.lencode,0,n.work,D),n.lenbits=D.bits,j){e.msg="invalid literal/lengths set",n.mode=R;break}if(n.distbits=6,n.distcode=n.distdyn,D={bits:n.distbits},j=g(b,n.lens,n.nlen,n.ndist,n.distcode,0,n.work,D),n.distbits=D.bits,j){e.msg="invalid distances set",n.mode=R;break}if(n.mode=20,6===t)break e;case 20:n.mode=21;case 21:if(l>=6&&u>=258){
e.next_out=a,e.avail_out=u,e.next_in=o,e.avail_in=l,n.hold=A,n.bits=x,m(e,E),a=e.next_out,s=e.output,u=e.avail_out,o=e.next_in,r=e.input,l=e.avail_in,A=n.hold,x=n.bits,n.mode===k&&(n.back=-1);break}for(n.back=0;T=(z=n.lencode[A&(1<<n.lenbits)-1])>>>16&255,I=65535&z,!((B=z>>>24)<=x);){if(0===l)break e;l--,A+=r[o++]<<x,x+=8}if(T&&0==(240&T)){for(U=B,L=T,F=I;T=(z=n.lencode[F+((A&(1<<U+L)-1)>>U)])>>>16&255,I=65535&z,!(U+(B=z>>>24)<=x);){if(0===l)break e;l--,A+=r[o++]<<x,x+=8}A>>>=U,x-=U,n.back+=U}
if(A>>>=B,x-=B,n.back+=B,n.length=I,0===T){n.mode=26;break}if(32&T){n.back=-1,n.mode=k;break}if(64&T){e.msg="invalid literal/length code",n.mode=R;break}n.extra=15&T,n.mode=22;case 22:if(n.extra){for(O=n.extra;x<O;){if(0===l)break e;l--,A+=r[o++]<<x,x+=8}n.length+=A&(1<<n.extra)-1,A>>>=n.extra,x-=n.extra,n.back+=n.extra}n.was=n.length,n.mode=23;case 23:for(;T=(z=n.distcode[A&(1<<n.distbits)-1])>>>16&255,I=65535&z,!((B=z>>>24)<=x);){if(0===l)break e;l--,A+=r[o++]<<x,x+=8}if(0==(240&T)){for(U=B,
L=T,F=I;T=(z=n.distcode[F+((A&(1<<U+L)-1)>>U)])>>>16&255,I=65535&z,!(U+(B=z>>>24)<=x);){if(0===l)break e;l--,A+=r[o++]<<x,x+=8}A>>>=U,x-=U,n.back+=U}if(A>>>=B,x-=B,n.back+=B,64&T){e.msg="invalid distance code",n.mode=R;break}n.offset=I,n.extra=15&T,n.mode=24;case 24:if(n.extra){for(O=n.extra;x<O;){if(0===l)break e;l--,A+=r[o++]<<x,x+=8}n.offset+=A&(1<<n.extra)-1,A>>>=n.extra,x-=n.extra,n.back+=n.extra}if(n.offset>n.dmax){e.msg="invalid distance too far back",n.mode=R;break}n.mode=25;case 25:
if(0===u)break e;if(G=E-u,n.offset>G){if((G=n.offset-G)>n.whave&&n.sane){e.msg="invalid distance too far back",n.mode=R;break}G>n.wnext?(G-=n.wnext,Z=n.wsize-G):Z=n.wnext-G,G>n.length&&(G=n.length),S=n.window}else S=s,Z=a-n.offset,G=n.length;G>u&&(G=u),u-=G,n.length-=G;do{s[a++]=S[Z++]}while(--G);0===n.length&&(n.mode=21);break;case 26:if(0===u)break e;s[a++]=n.length,u--,n.mode=21;break;case 27:if(n.wrap){for(;x<32;){if(0===l)break e;l--,A|=r[o++]<<x,x+=8}if(E-=u,e.total_out+=E,n.total+=E,
E&&(e.adler=n.check=n.flags?f(n.check,s,E,a-E):p(n.check,s,E,a-E)),E=u,(n.flags?A:i(A))!==n.check){e.msg="incorrect data check",n.mode=R;break}A=0,x=0}n.mode=28;case 28:if(n.wrap&&n.flags){for(;x<32;){if(0===l)break e;l--,A+=r[o++]<<x,x+=8}if(A!==(4294967295&n.total)){e.msg="incorrect length check",n.mode=R;break}A=0,x=0}n.mode=29;case 29:j=1;break e;case R:j=-3;break e;case 31:return-4;default:return w}return e.next_out=a,e.avail_out=u,e.next_in=o,e.avail_in=l,n.hold=A,n.bits=x,
(n.wsize||E!==e.avail_out&&n.mode<R&&(n.mode<27||4!==t))&&d(e,e.output,e.next_out,E-e.avail_out)?(n.mode=31,-4):(C-=e.avail_in,E-=e.avail_out,e.total_in+=C,e.total_out+=E,n.total+=E,n.wrap&&E&&(e.adler=n.check=n.flags?f(n.check,s,E,e.next_out-E):p(n.check,s,E,e.next_out-E)),e.data_type=n.bits+(n.last?64:0)+(n.mode===k?128:0)+(20===n.mode||15===n.mode?256:0),(0===C&&0===E||4===t)&&j===v&&(j=-5),j)},n.inflateEnd=function(e){if(!e||!e.state)return w;var t=e.state;return t.window&&(t.window=null),
e.state=null,v},n.inflateGetHeader=function(e,t){var n;return e&&e.state?0==(2&(n=e.state).wrap)?w:(n.head=t,t.done=!1,v):w},n.inflateSetDictionary=function(e,t){var n,i=t.length;return e&&e.state?0!==(n=e.state).wrap&&11!==n.mode?w:11===n.mode&&p(1,t,i,0)!==n.check?-3:d(e,t,i,i)?(n.mode=31,-4):(n.havedict=1,v):w},n.inflateInfo="pako inflate (from Nodeca project)"},{"../utils/common":41,"./adler32":43,"./crc32":45,"./inffast":48,"./inftrees":50}],50:[function(e,t){"use strict"
;var n=e("../utils/common"),i=[3,4,5,6,7,8,9,10,11,13,15,17,19,23,27,31,35,43,51,59,67,83,99,115,131,163,195,227,258,0,0],r=[16,16,16,16,16,16,16,16,17,17,17,17,18,18,18,18,19,19,19,19,20,20,20,20,21,21,21,21,16,72,78],s=[1,2,3,4,5,7,9,13,17,25,33,49,65,97,129,193,257,385,513,769,1025,1537,2049,3073,4097,6145,8193,12289,16385,24577,0,0],o=[16,16,16,16,17,17,18,18,19,19,20,20,21,21,22,22,23,23,24,24,25,25,26,26,27,27,28,28,29,29,64,64];t.exports=function(e,t,a,l,c,d,u,A){
var h,p,f,m,g,_,b,v,w,y=A.bits,k=0,R=0,x=0,C=0,E=0,G=0,Z=0,S=0,B=0,T=0,I=null,U=0,L=new n.Buf16(16),F=new n.Buf16(16),M=null,j=0;for(k=0;k<=15;k++)L[k]=0;for(R=0;R<l;R++)L[t[a+R]]++;for(E=y,C=15;C>=1&&0===L[C];C--);if(E>C&&(E=C),0===C)return c[d++]=20971520,c[d++]=20971520,A.bits=1,0;for(x=1;x<C&&0===L[x];x++);for(E<x&&(E=x),S=1,k=1;k<=15;k++)if(S<<=1,(S-=L[k])<0)return-1;if(S>0&&(0===e||1!==C))return-1;for(F[1]=0,k=1;k<15;k++)F[k+1]=F[k]+L[k];for(R=0;R<l;R++)0!==t[a+R]&&(u[F[t[a+R]]++]=R)
;if(0===e?(I=M=u,_=19):1===e?(I=i,U-=257,M=r,j-=257,_=256):(I=s,M=o,_=-1),T=0,R=0,k=x,g=d,G=E,Z=0,f=-1,m=(B=1<<E)-1,1===e&&B>852||2===e&&B>592)return 1;for(;;){b=k-Z,u[R]<_?(v=0,w=u[R]):u[R]>_?(v=M[j+u[R]],w=I[U+u[R]]):(v=96,w=0),h=1<<k-Z,x=p=1<<G;do{c[g+(T>>Z)+(p-=h)]=b<<24|v<<16|w|0}while(0!==p);for(h=1<<k-1;T&h;)h>>=1;if(0!==h?(T&=h-1,T+=h):T=0,R++,0==--L[k]){if(k===C)break;k=t[a+u[R]]}if(k>E&&(T&m)!==f){for(0===Z&&(Z=E),g+=x,S=1<<(G=k-Z);G+Z<C&&!((S-=L[G+Z])<=0);)G++,S<<=1;if(B+=1<<G,
1===e&&B>852||2===e&&B>592)return 1;c[f=T&m]=E<<24|G<<16|g-d|0}}return 0!==T&&(c[g+T]=k-Z<<24|64<<16|0),A.bits=E,0}},{"../utils/common":41}],51:[function(e,t){"use strict";t.exports={2:"need dictionary",1:"stream end",0:"","-1":"file error","-2":"stream error","-3":"data error","-4":"insufficient memory","-5":"buffer error","-6":"incompatible version"}},{}],52:[function(e,t,n){"use strict";function i(e){for(var t=e.length;--t>=0;)e[t]=0}function r(e,t,n,i,r){this.static_tree=e,this.extra_bits=t,
this.extra_base=n,this.elems=i,this.max_length=r,this.has_stree=e&&e.length}function s(e,t){this.dyn_tree=e,this.max_code=0,this.stat_desc=t}function o(e){return e<256?O[e]:O[256+(e>>>7)]}function a(e,t){e.pending_buf[e.pending++]=255&t,e.pending_buf[e.pending++]=t>>>8&255}function l(e,t,n){e.bi_valid>Z-n?(e.bi_buf|=t<<e.bi_valid&65535,a(e,e.bi_buf),e.bi_buf=t>>Z-e.bi_valid,e.bi_valid+=n-Z):(e.bi_buf|=t<<e.bi_valid&65535,e.bi_valid+=n)}function c(e,t,n){l(e,n[2*t],n[2*t+1])}function d(e,t){
var n=0;do{n|=1&e,e>>>=1,n<<=1}while(--t>0);return n>>>1}function u(e,t,n){var i,r,s=new Array(G+1),o=0;for(i=1;i<=G;i++)s[i]=o=o+n[i-1]<<1;for(r=0;r<=t;r++){var a=e[2*r+1];0!==a&&(e[2*r]=d(s[a]++,a))}}function A(e){var t;for(t=0;t<R;t++)e.dyn_ltree[2*t]=0;for(t=0;t<x;t++)e.dyn_dtree[2*t]=0;for(t=0;t<C;t++)e.bl_tree[2*t]=0;e.dyn_ltree[2*S]=1,e.opt_len=e.static_len=0,e.last_lit=e.matches=0}function h(e){e.bi_valid>8?a(e,e.bi_buf):e.bi_valid>0&&(e.pending_buf[e.pending++]=e.bi_buf),e.bi_buf=0,
e.bi_valid=0}function p(e,t,n,i){var r=2*t,s=2*n;return e[r]<e[s]||e[r]===e[s]&&i[t]<=i[n]}function f(e,t,n){for(var i=e.heap[n],r=n<<1;r<=e.heap_len&&(r<e.heap_len&&p(t,e.heap[r+1],e.heap[r],e.depth)&&r++,!p(t,i,e.heap[r],e.depth));)e.heap[n]=e.heap[r],n=r,r<<=1;e.heap[n]=i}function m(e,t,n){var i,r,s,a,d=0;if(0!==e.last_lit)do{i=e.pending_buf[e.d_buf+2*d]<<8|e.pending_buf[e.d_buf+2*d+1],r=e.pending_buf[e.l_buf+d],d++,0===i?c(e,r,t):(c(e,(s=z[r])+k+1,t),0!==(a=U[s])&&l(e,r-=P[s],a),
c(e,s=o(--i),n),0!==(a=L[s])&&l(e,i-=H[s],a))}while(d<e.last_lit);c(e,S,t)}function g(e,t){var n,i,r,s=t.dyn_tree,o=t.stat_desc.static_tree,a=t.stat_desc.has_stree,l=t.stat_desc.elems,c=-1;for(e.heap_len=0,e.heap_max=E,n=0;n<l;n++)0!==s[2*n]?(e.heap[++e.heap_len]=c=n,e.depth[n]=0):s[2*n+1]=0;for(;e.heap_len<2;)s[2*(r=e.heap[++e.heap_len]=c<2?++c:0)]=1,e.depth[r]=0,e.opt_len--,a&&(e.static_len-=o[2*r+1]);for(t.max_code=c,n=e.heap_len>>1;n>=1;n--)f(e,s,n);r=l;do{n=e.heap[1],
e.heap[1]=e.heap[e.heap_len--],f(e,s,1),i=e.heap[1],e.heap[--e.heap_max]=n,e.heap[--e.heap_max]=i,s[2*r]=s[2*n]+s[2*i],e.depth[r]=(e.depth[n]>=e.depth[i]?e.depth[n]:e.depth[i])+1,s[2*n+1]=s[2*i+1]=r,e.heap[1]=r++,f(e,s,1)}while(e.heap_len>=2);e.heap[--e.heap_max]=e.heap[1],function(e,t){var n,i,r,s,o,a,l=t.dyn_tree,c=t.max_code,d=t.stat_desc.static_tree,u=t.stat_desc.has_stree,A=t.stat_desc.extra_bits,h=t.stat_desc.extra_base,p=t.stat_desc.max_length,f=0;for(s=0;s<=G;s++)e.bl_count[s]=0
;for(l[2*e.heap[e.heap_max]+1]=0,n=e.heap_max+1;n<E;n++)(s=l[2*l[2*(i=e.heap[n])+1]+1]+1)>p&&(s=p,f++),l[2*i+1]=s,i>c||(e.bl_count[s]++,o=0,i>=h&&(o=A[i-h]),a=l[2*i],e.opt_len+=a*(s+o),u&&(e.static_len+=a*(d[2*i+1]+o)));if(0!==f){do{for(s=p-1;0===e.bl_count[s];)s--;e.bl_count[s]--,e.bl_count[s+1]+=2,e.bl_count[p]--,f-=2}while(f>0);for(s=p;0!==s;s--)for(i=e.bl_count[s];0!==i;)(r=e.heap[--n])>c||(l[2*r+1]!==s&&(e.opt_len+=(s-l[2*r+1])*l[2*r],l[2*r+1]=s),i--)}}(e,t),u(s,c,e.bl_count)}
function _(e,t,n){var i,r,s=-1,o=t[1],a=0,l=7,c=4;for(0===o&&(l=138,c=3),t[2*(n+1)+1]=65535,i=0;i<=n;i++)r=o,o=t[2*(i+1)+1],++a<l&&r===o||(a<c?e.bl_tree[2*r]+=a:0!==r?(r!==s&&e.bl_tree[2*r]++,e.bl_tree[2*B]++):a<=10?e.bl_tree[2*T]++:e.bl_tree[2*I]++,a=0,s=r,0===o?(l=138,c=3):r===o?(l=6,c=3):(l=7,c=4))}function b(e,t,n){var i,r,s=-1,o=t[1],a=0,d=7,u=4;for(0===o&&(d=138,u=3),i=0;i<=n;i++)if(r=o,o=t[2*(i+1)+1],!(++a<d&&r===o)){if(a<u)do{c(e,r,e.bl_tree)
}while(0!=--a);else 0!==r?(r!==s&&(c(e,r,e.bl_tree),a--),c(e,B,e.bl_tree),l(e,a-3,2)):a<=10?(c(e,T,e.bl_tree),l(e,a-3,3)):(c(e,I,e.bl_tree),l(e,a-11,7));a=0,s=r,0===o?(d=138,u=3):r===o?(d=6,u=3):(d=7,u=4)}}function v(e,t,n,i){l(e,(y<<1)+(i?1:0),3),function(e,t,n){h(e),a(e,n),a(e,~n),w.arraySet(e.pending_buf,e.window,t,n,e.pending),e.pending+=n}(e,t,n)}
var w=e("../utils/common"),y=0,k=256,R=k+1+29,x=30,C=19,E=2*R+1,G=15,Z=16,S=256,B=16,T=17,I=18,U=[0,0,0,0,0,0,0,0,1,1,1,1,2,2,2,2,3,3,3,3,4,4,4,4,5,5,5,5,0],L=[0,0,0,0,1,1,2,2,3,3,4,4,5,5,6,6,7,7,8,8,9,9,10,10,11,11,12,12,13,13],F=[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,2,3,7],M=[16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15],j=new Array(2*(R+2));i(j);var D=new Array(2*x);i(D);var O=new Array(512);i(O);var z=new Array(256);i(z);var P=new Array(29);i(P);var N,V,Q,H=new Array(x);i(H);var q=!1
;n._tr_init=function(e){q||(function(){var e,t,n,i,s,o=new Array(G+1);for(n=0,i=0;i<28;i++)for(P[i]=n,e=0;e<1<<U[i];e++)z[n++]=i;for(z[n-1]=i,s=0,i=0;i<16;i++)for(H[i]=s,e=0;e<1<<L[i];e++)O[s++]=i;for(s>>=7;i<x;i++)for(H[i]=s<<7,e=0;e<1<<L[i]-7;e++)O[256+s++]=i;for(t=0;t<=G;t++)o[t]=0;for(e=0;e<=143;)j[2*e+1]=8,e++,o[8]++;for(;e<=255;)j[2*e+1]=9,e++,o[9]++;for(;e<=279;)j[2*e+1]=7,e++,o[7]++;for(;e<=287;)j[2*e+1]=8,e++,o[8]++;for(u(j,R+1,o),e=0;e<x;e++)D[2*e+1]=5,D[2*e]=d(e,5)
;N=new r(j,U,k+1,R,G),V=new r(D,L,0,x,G),Q=new r(new Array(0),F,0,C,7)}(),q=!0),e.l_desc=new s(e.dyn_ltree,N),e.d_desc=new s(e.dyn_dtree,V),e.bl_desc=new s(e.bl_tree,Q),e.bi_buf=0,e.bi_valid=0,A(e)},n._tr_stored_block=v,n._tr_flush_block=function(e,t,n,i){var r,s,o=0;e.level>0?(2===e.strm.data_type&&(e.strm.data_type=function(e){var t,n=4093624447;for(t=0;t<=31;t++,n>>>=1)if(1&n&&0!==e.dyn_ltree[2*t])return 0;if(0!==e.dyn_ltree[18]||0!==e.dyn_ltree[20]||0!==e.dyn_ltree[26])return 1
;for(t=32;t<k;t++)if(0!==e.dyn_ltree[2*t])return 1;return 0}(e)),g(e,e.l_desc),g(e,e.d_desc),o=function(e){var t;for(_(e,e.dyn_ltree,e.l_desc.max_code),_(e,e.dyn_dtree,e.d_desc.max_code),g(e,e.bl_desc),t=C-1;t>=3&&0===e.bl_tree[2*M[t]+1];t--);return e.opt_len+=3*(t+1)+5+5+4,t}(e),r=e.opt_len+3+7>>>3,(s=e.static_len+3+7>>>3)<=r&&(r=s)):r=s=n+5,n+4<=r&&-1!==t?v(e,t,n,i):4===e.strategy||s===r?(l(e,2+(i?1:0),3),m(e,j,D)):(l(e,4+(i?1:0),3),function(e,t,n,i){var r;for(l(e,t-257,5),l(e,n-1,5),
l(e,i-4,4),r=0;r<i;r++)l(e,e.bl_tree[2*M[r]+1],3);b(e,e.dyn_ltree,t-1),b(e,e.dyn_dtree,n-1)}(e,e.l_desc.max_code+1,e.d_desc.max_code+1,o+1),m(e,e.dyn_ltree,e.dyn_dtree)),A(e),i&&h(e)},n._tr_tally=function(e,t,n){return e.pending_buf[e.d_buf+2*e.last_lit]=t>>>8&255,e.pending_buf[e.d_buf+2*e.last_lit+1]=255&t,e.pending_buf[e.l_buf+e.last_lit]=255&n,e.last_lit++,0===t?e.dyn_ltree[2*n]++:(e.matches++,t--,e.dyn_ltree[2*(z[n]+k+1)]++,e.dyn_dtree[2*o(t)]++),e.last_lit===e.lit_bufsize-1},
n._tr_align=function(e){l(e,2,3),c(e,S,j),function(e){16===e.bi_valid?(a(e,e.bi_buf),e.bi_buf=0,e.bi_valid=0):e.bi_valid>=8&&(e.pending_buf[e.pending++]=255&e.bi_buf,e.bi_buf>>=8,e.bi_valid-=8)}(e)}},{"../utils/common":41}],53:[function(e,t){"use strict";t.exports=function(){this.input=null,this.next_in=0,this.avail_in=0,this.total_in=0,this.output=null,this.next_out=0,this.avail_out=0,this.total_out=0,this.msg="",this.state=null,this.data_type=2,this.adler=0}},{}],54:[function(e,t){"use strict"
;t.exports="function"==typeof setImmediate?setImmediate:function(){var e=[].slice.apply(arguments);e.splice(1,0,0),setTimeout.apply(null,e)}},{}]},{},[10])(10)}},n={};e.n=t=>{var n=t&&t.__esModule?()=>t.default:()=>t;return e.d(n,{a:n}),n},e.d=(t,n)=>{for(var i in n)e.o(n,i)&&!e.o(t,i)&&Object.defineProperty(t,i,{enumerable:!0,get:n[i]})},e.g=function(){if("object"==typeof globalThis)return globalThis;try{return this||new Function("return this")()}catch(e){
if("object"==typeof window)return window}}(),e.o=(e,t)=>({}.hasOwnProperty.call(e,t)),(()=>{"use strict";function t(e,t){return null===e||void 0===e&&t?"":void 0===e?void 0:`${e}`}function n(e){if(this.data="",this.read=0,"string"==typeof e)this.data=e;else if(Sr.isArrayBuffer(e)||Sr.isArrayBufferView(e)){var t=new Uint8Array(e);try{this.data=String.fromCharCode.apply(null,t)}catch(e){for(var i=0;i<t.length;++i)this.putByte(t[i])}
}else(e instanceof n||"object"==typeof e&&"string"==typeof e.data&&"number"==typeof e.read)&&(this.data=e.data,this.read=e.read);this._constructedStringLength=0}function i(e,t,n){for(var i,r,s,o,a,l,c,d,u,A,h,p,f,m=n.length();m>=64;){for(a=0;a<16;++a)t[a]=n.getInt32();for(;a<64;++a)i=((i=t[a-2])>>>17|i<<15)^(i>>>19|i<<13)^i>>>10,r=((r=t[a-15])>>>7|r<<25)^(r>>>18|r<<14)^r>>>3,t[a]=i+t[a-7]+r+t[a-16]|0;for(l=e.h0,c=e.h1,d=e.h2,u=e.h3,A=e.h4,h=e.h5,p=e.h6,f=e.h7,
a=0;a<64;++a)s=(l>>>2|l<<30)^(l>>>13|l<<19)^(l>>>22|l<<10),o=l&c|d&(l^c),i=f+((A>>>6|A<<26)^(A>>>11|A<<21)^(A>>>25|A<<7))+(p^A&(h^p))+Ur[a]+t[a],f=p,p=h,h=A,A=u+i|0,u=d,d=c,c=l,l=i+(r=s+o)|0;e.h0=e.h0+l|0,e.h1=e.h1+c|0,e.h2=e.h2+d|0,e.h3=e.h3+u|0,e.h4=e.h4+A|0,e.h5=e.h5+h|0,e.h6=e.h6+p|0,e.h7=e.h7+f|0,m-=64}}let r;Object.fromEntries?r=Object.fromEntries:(r=e=>[...e].reduce(((e,[t,n])=>(e[t]=n,e)),{}),Object.fromEntries=r),Object.defineProperties(Promise.prototype,{done:{value:function(e){
return this.then(((...t)=>e.apply(this,t)))},configurable:!0,enumerable:!0,writable:!1},fail:{value:function(e){return this.then((()=>{}),((...t)=>e.apply(this,t)))},configurable:!0,enumerable:!0,writable:!1},always:{value:function(e){return this.then(((...t)=>e.apply(this,t)),((...t)=>e.apply(this,t)))},configurable:!0,enumerable:!0,writable:!1}})
;const s=Promise,{AbortController:o,FileReader:a,TextDecoder:l,atob:c,btoa:d,clearInterval:u,clearTimeout:A,crypto:h,decodeURIComponent:p,encodeURIComponent:f,escape:m,location:g,setInterval:_,setTimeout:b,unescape:v}=self;let{fetch:w}=self;g.origin,g.host;const{addEventListener:y,removeEventListener:k}=self,R=y,{DOMParser:x,Notification:C,Image:E,Worker:G,alert:Z,confirm:S,document:B,screen:T,webkitNotifications:I,navigation:U,showOpenFilePicker:L}=self;let F;try{F=self.localStorage}catch(e){}
const M=F;let{XMLHttpRequest:j}=self;const{clients:D}=self,O=(e,t)=>{null==t&&(t=[]);const n=new RegExp("(\\"+["/",".","+","?","|","(",")","[","]","{","}","\\"].concat(t).join("|\\")+")","g");return e.replace(n,"\\$1")},z=e=>O(e,["*"]),P={"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;","\\":"&bsol;"},N=e=>(({}.toString.apply(e).match(/\s([a-z|A-Z]+)/)||[])[1]),V=(e,t)=>{const n=N(e);if("Array"===n||"NodeList"===n){for(let n=0;n<e.length;n++)if(!1===t(e[n],n))return}else if("XPathResult"===n){
let n=e.iterateNext(),i=0;for(;n;){if(!1===t(n,i++))return;n=e.iterateNext()}}else for(const n in e)if(e.hasOwnProperty(n)&&!1===t(e[n],n))return},Q=(e,t,n,i)=>{let r;if(Array.isArray(n)){const e={};n.forEach((t=>{e[t]=!0})),r=e}else r=n;return V(r||e,((n,s)=>{if(!r||r.hasOwnProperty(s)){let n;const o=e[s],a=N(o);if("Undefined"==a)return;if(r&&i&&(n=N(r[s]))&&n!==a&&("Array"===n||"Object"===n))return;"Object"==a?(t[s]={},Q(o,t[s],r?r[s]:null)):"Array"==a?(t[s]=[],Q(o,t[s])):t[s]=o}})),t
},H=(e,t)=>{let n=!0;if("object"!=typeof e||"object"!=typeof t||null===e||null===t)return e===t;for(const[i,r]of Object.entries(t))if(void 0!==r&&(n=void 0!==e[i]&&(null===r?null===e[i]:r instanceof RegExp?!!`${e[i]}`.match(r):"object"==typeof r?H(e[i],r):e[i]===r),!n))break;return n},q=(e,t,n)=>{void 0===n&&(n="-");const i=t?/[:<>|~?*\x00-\x1F\uFDD0-\uFDEF"]/g:/[:<>|~?*\x00-\x1F\uFDD0-\uFDEF"\/\\]|^[.]|[.]$/g
;return!t&&/^((CON|PRN|AUX|NUL|CLOCK\$|COM[1-9]|LPT[1-9])(\..*)?|device(\..*)?|desktop.ini|thumbs.db)$/i.test(e)?(n||"_")+e.replace(i,n):e.replace(i,n)},X=()=>"xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx".replace(/[xy]/g,(e=>{const t=16*Math.random()|0;return("x"==e?t:3&t|8).toString(16)})),W=(e,t)=>{const n=[];for(let i=0,r=e.length;i<r;i+=t)n.push(e.slice(i,t+i));return n},Y=e=>{let t,n,i=e.length;for(;0!==i;)n=Math.floor(Math.random()*i),i-=1,t=e[i],e[i]=e[n],e[n]=t;return e},J="display: none;"
;let K=0;const $=[],ee=()=>{const e=["debug"],t=["log"],n=["warn","info"],i=["error"],r=[...e,...t,...n,...i],s=i;K>=80&&s.push(...e),K>=60&&s.push(...t),K>=30&&s.push(...n),r.forEach((e=>te[e]=s.includes(e)?console[e].bind(console):()=>{}))},te={set:e=>{K=e,$.forEach((e=>{e(te,K)})),ee()},get:()=>K,get verbose(){return(te.debug||(()=>{})).bind(console)},debug:()=>{},log:()=>{},warn:()=>{},info:()=>{},error:()=>{},addChangeListener:e=>{$.push(e)}};ee();const ne=e=>v(f(e)),ie=e=>p(m(e)),re=e=>{
let t="";for(let n=0;n<e.length;n++)t+=String.fromCharCode(255&e.charCodeAt(n));return d(t)},se=e=>c(e),oe=(e,t)=>{try{let n;n="object"==typeof t?t.encoding:t,n&&"utf-8"==n.toLowerCase()&&(e=ne(e));const i=new Uint8Array(e.length);for(let t=0;t<e.length;t++)i[t]=255&e.charCodeAt(t);return i.buffer}catch(e){te.warn(e)}return new Uint8Array(0).buffer},ae=(e,t)=>new Promise(((n,i)=>{const r=t&&t.encoding?"text/plain":"binary/octet-stream",s=new Blob([e],{type:r}),o=new a;o.onload=e=>{
e.target?n(e.target.result):i(new Error("Could not convert array to string!"))},t&&t.encoding?o.readAsText(s,t.encoding):o.readAsBinaryString(s)})),le=(e,t)=>{const n=(e,t)=>e<<t|e>>>32-t,i=(e,t)=>{const n=2147483648&e,i=2147483648&t,r=1073741824&e,s=1073741824&t,o=(1073741823&e)+(1073741823&t);return r&s?2147483648^o^n^i:r|s?1073741824&o?3221225472^o^n^i:1073741824^o^n^i:o^n^i},r=(e,t,r,s,o,a,l)=>(e=i(e,i(i(((e,t,n)=>e&t|~e&n)(t,r,s),o),l)),
i(n(e,a),t)),s=(e,t,r,s,o,a,l)=>(e=i(e,i(i(((e,t,n)=>e&n|t&~n)(t,r,s),o),l)),i(n(e,a),t)),o=(e,t,r,s,o,a,l)=>(e=i(e,i(i(((e,t,n)=>e^t^n)(t,r,s),o),l)),i(n(e,a),t)),a=(e,t,r,s,o,a,l)=>(e=i(e,i(i(((e,t,n)=>t^(e|~n))(t,r,s),o),l)),i(n(e,a),t)),l=e=>{let t,n,i="",r="";for(n=0;n<=3;n++)t=e>>>8*n&255,r="0"+t.toString(16),i+=r.substr(r.length-2,2);return i};let c,d,u,A,h,p,f,m,g,_=[];for(t&&"utf-8"==t.toLowerCase()&&(e=ne(e)),_=(e=>{let t;const n=e.length,i=n+8,r=16*((i-i%64)/64+1),s=Array(r-1)
;let o=0,a=0;for(;a<n;)t=(a-a%4)/4,o=a%4*8,s[t]=s[t]|e.charCodeAt(a)<<o,a++;return t=(a-a%4)/4,o=a%4*8,s[t]=s[t]|128<<o,s[r-2]=n<<3,s[r-1]=n>>>29,s})(e),p=1732584193,f=4023233417,m=2562383102,g=271733878,c=0;c<_.length;c+=16)d=p,u=f,A=m,h=g,p=r(p,f,m,g,_[c+0],7,3614090360),g=r(g,p,f,m,_[c+1],12,3905402710),m=r(m,g,p,f,_[c+2],17,606105819),f=r(f,m,g,p,_[c+3],22,3250441966),p=r(p,f,m,g,_[c+4],7,4118548399),g=r(g,p,f,m,_[c+5],12,1200080426),m=r(m,g,p,f,_[c+6],17,2821735955),
f=r(f,m,g,p,_[c+7],22,4249261313),p=r(p,f,m,g,_[c+8],7,1770035416),g=r(g,p,f,m,_[c+9],12,2336552879),m=r(m,g,p,f,_[c+10],17,4294925233),f=r(f,m,g,p,_[c+11],22,2304563134),p=r(p,f,m,g,_[c+12],7,1804603682),g=r(g,p,f,m,_[c+13],12,4254626195),m=r(m,g,p,f,_[c+14],17,2792965006),f=r(f,m,g,p,_[c+15],22,1236535329),p=s(p,f,m,g,_[c+1],5,4129170786),g=s(g,p,f,m,_[c+6],9,3225465664),m=s(m,g,p,f,_[c+11],14,643717713),f=s(f,m,g,p,_[c+0],20,3921069994),p=s(p,f,m,g,_[c+5],5,3593408605),
g=s(g,p,f,m,_[c+10],9,38016083),m=s(m,g,p,f,_[c+15],14,3634488961),f=s(f,m,g,p,_[c+4],20,3889429448),p=s(p,f,m,g,_[c+9],5,568446438),g=s(g,p,f,m,_[c+14],9,3275163606),m=s(m,g,p,f,_[c+3],14,4107603335),f=s(f,m,g,p,_[c+8],20,1163531501),p=s(p,f,m,g,_[c+13],5,2850285829),g=s(g,p,f,m,_[c+2],9,4243563512),m=s(m,g,p,f,_[c+7],14,1735328473),f=s(f,m,g,p,_[c+12],20,2368359562),p=o(p,f,m,g,_[c+5],4,4294588738),g=o(g,p,f,m,_[c+8],11,2272392833),m=o(m,g,p,f,_[c+11],16,1839030562),
f=o(f,m,g,p,_[c+14],23,4259657740),p=o(p,f,m,g,_[c+1],4,2763975236),g=o(g,p,f,m,_[c+4],11,1272893353),m=o(m,g,p,f,_[c+7],16,4139469664),f=o(f,m,g,p,_[c+10],23,3200236656),p=o(p,f,m,g,_[c+13],4,681279174),g=o(g,p,f,m,_[c+0],11,3936430074),m=o(m,g,p,f,_[c+3],16,3572445317),f=o(f,m,g,p,_[c+6],23,76029189),p=o(p,f,m,g,_[c+9],4,3654602809),g=o(g,p,f,m,_[c+12],11,3873151461),m=o(m,g,p,f,_[c+15],16,530742520),f=o(f,m,g,p,_[c+2],23,3299628645),p=a(p,f,m,g,_[c+0],6,4096336452),
g=a(g,p,f,m,_[c+7],10,1126891415),m=a(m,g,p,f,_[c+14],15,2878612391),f=a(f,m,g,p,_[c+5],21,4237533241),p=a(p,f,m,g,_[c+12],6,1700485571),g=a(g,p,f,m,_[c+3],10,2399980690),m=a(m,g,p,f,_[c+10],15,4293915773),f=a(f,m,g,p,_[c+1],21,2240044497),p=a(p,f,m,g,_[c+8],6,1873313359),g=a(g,p,f,m,_[c+15],10,4264355552),m=a(m,g,p,f,_[c+6],15,2734768916),f=a(f,m,g,p,_[c+13],21,1309151649),p=a(p,f,m,g,_[c+4],6,4149444226),g=a(g,p,f,m,_[c+11],10,3174756917),m=a(m,g,p,f,_[c+2],15,718787259),
f=a(f,m,g,p,_[c+9],21,3951481745),p=i(p,d),f=i(f,u),m=i(m,A),g=i(g,h);return(l(p)+l(f)+l(m)+l(g)).toLowerCase()},ce=e=>{let t;t=e.split(",")[0].includes("base64")?c(e.split(",")[1]):v(e.split(",")[1]);const n=e.split(",")[0].split(":")[1].split(";")[0];return new Blob([oe(t)],{type:n})},de=e=>new Promise((t=>{const n=new a;n.onload=e=>{var n;t((null===(n=e.target)||void 0===n?void 0:n.result)||void 0)},n.readAsDataURL(e)})),ue=async(e,t)=>new Promise((n=>{const i=new a;i.onload=()=>{
n(i.result||"")},i.onerror=e=>{te.warn(`unable to decode data ${e}`),n(void 0)},t?i.readAsText(e,t):i.readAsBinaryString(e)})),Ae=(e,t)=>re(e+"_"+t).replace(/[^0-9a-zA-Z_-]/g,""),he=e=>{const t={};let n=window.location.search.replace(/^\?/,"");const i=window.location.hash.replace(/^#/,"");n?e&&i&&(n=n+"&"+i):n=i;const r=n.split("&");let s;for(let e=0;e<r.length;e++){if(s=r[e].split("="),2!=s.length){const e=s[0],t=s.slice(1).join("=");s=[e,t]}t[s[0]]=decodeURIComponent(s[1])}return t},pe=e=>{
setTimeout((()=>{alert(e)}),1)},fe=(e,t,n,i,r,s)=>{let o;try{let a=e+"_"+Ae(n,i);if(null!=r&&(a+="_"+r),o=document.getElementById(a),o&&s){const t=document.createElement(e);t.setAttribute("id",a);const n=o.parentNode;n.insertBefore(t,o),n.removeChild(o),o=t}else o?o.inserted=!0:(o=document.createElement(e),o.setAttribute("id",a));t&&o.setAttribute("class",t),o.__removeChild||(o.__removeChild=o.removeChild,o.removeChild=e=>{delete e.inserted,o.__removeChild(e)}),
o.__appendChild||(o.__appendChild=o.appendChild,o.appendChild=(e,t)=>{"Array"!==N(e)&&(e=[e]),e.forEach((e=>{(!e.parentElement&&!e.inserted||t)&&o.__appendChild(e)}))}),o.__insertBefore||(o.__insertBefore=o.insertBefore,o.insertBefore=(e,t)=>{e.parentElement||e.inserted||o.__insertBefore(e,t)})}catch(e){console.log("options: Error:"+e.message)}return o},me=(e,t,n,i,r)=>fe(e,null,t,n,i,r),ge=globalThis;let _e,be,ve,we,ye,{chrome:ke,browser:Re}=ge;const xe=()=>{if(void 0!==be)return be;try{
be=-1!=navigator.userAgent.indexOf("Mac OS X")}catch(e){}return be};we=()=>{if(void 0!==_e)return _e;try{const e=navigator.userAgent.match(/Chrom(e|ium)\/([0-9]+)\./);e&&(_e=parseInt(e[2]))}catch(e){}return _e},ye=()=>{if(void 0!==ve)return ve;try{ve=-1!=navigator.userAgent.search(/Android|Mobile/)}catch(e){}return ve},we();const Ce={CLOSE_ALLOWED:!0,MIN_DELAY:xe()?150:0},Ee={DEFAULT:"storage.local",SECURE:!1,NO_WARNING:!1},Ge=["chrome-extension:"];[].concat(["chrome"]);const Ze=e=>{
window.setTimeout((()=>location.reload()),e||0)},Se=(()=>{const e={getInternalPathRegexp:function(e,t){const n=new RegExp("(\\"+["/",".","+","?","|","(",")","[","]","{","}","\\"].join("|\\")+")","g"),i=Ge[0]+"//"+Se.id+"/";return new RegExp(i.replace(n,"\\$1")+"([a-zA-Z"+(e?"\\/":"")+"]*)"+(t||"").replace(n,"\\$1"))},getInternalPageRegexp:function(){return Se.getInternalPathRegexp(!1,".html")},getPlatformInfo:e=>ke.runtime.getPlatformInfo(e),getBrowserInfo:e=>{e({name:"Chrome",version:`${we()}`,
vendor:"unknown"})}};return Object.defineProperty(e,"lastError",{get:()=>ke.runtime.lastError,enumerable:!0}),Object.defineProperty(e,"id",{get:()=>ke.runtime.id,enumerable:!0}),Object.defineProperty(e,"short_id",{get:()=>e.id.replace(/[^0-9a-zA-Z]/g,"").substr(0,4),enumerable:!0}),e})(),Be=(()=>{let e;return Object.defineProperties({},{inIncognitoContext:{get:()=>(void 0===e&&(e=ke.extension.inIncognitoContext),e),set:t=>{e=t},enumerable:!0},...Object.getOwnPropertyDescriptors({
getURL:function(e){return ke.runtime.getURL(e)},sendMessage:(e,t)=>ke.runtime.sendMessage(e,t),onMessage:{addListener:e=>ke.runtime.onMessage.addListener(e)},connect:e=>ke.runtime.connect({name:e}),urls:{prepareForReport:function(e){return e}}})})})(),Te=e=>{const t=(()=>{let e,t;const n=[],i=[],r=e=>{i.push(e),s()},s=()=>{if(void 0!==e){let n;for(;i.length;)n=i.shift(),void 0!==n.state&&n.state!==e||"function"==typeof n.f&&n.f.call(o,t)}},o={promise:()=>o,done:e=>(r({state:!0,f:e}),o),
fail:e=>(r({state:!1,f:e}),o),always:e=>(r({f:e}),o),progress:e=>(e&&n.push(e),o),then:(e,n,i)=>Te((r=>{const s=(e,n)=>(...i)=>{const s=e?e(t):void 0,o=s&&"function"==typeof s.promise?s.promise():null,a=s&&"function"==typeof s.then?s:null;if(o)o.done((e=>r.resolve(e))).fail(((...e)=>r.reject(e[0]))).progress(((...e)=>r.notify(...e)));else if(a)a.then(((...e)=>r.resolve(...e)),(e=>r.reject(e)));else{const t=e?[s]:i;r[n](t[0])}};o.done(s(e,"resolve")),o.fail(s(n,"reject")),
o.progress(s(i,"notify"))})).promise(),each:e=>{const t=Te();return o.then((n=>{const i=Array.isArray(n)?n:[n];Te.when(i.map((t=>e(t)))).then(t.resolve)})),t.promise()},iterate:e=>{const t=Te();return o.then((n=>{const i=(Array.isArray(n)?n:[n]).map((t=>()=>e(t)));Te.onebyone(i,!0).done((e=>{t.resolve(e)})).fail(t.reject)})),t.promise()}};return{get:()=>o,try_resolve:n=>(void 0===e&&(e=!0,t=n),s(),o),try_reject:n=>(void 0===e&&(e=!1,t=n),s(),o),do_notify:e=>((e=>{n.forEach((t=>t(e)))})(e),o)}
})(),n={promise:()=>t.get(),resolve:e=>t.try_resolve(e),reject:e=>t.try_reject(e),notify:e=>t.do_notify(e),consume:e=>(e&&e.promise?e.promise().done((e=>n.resolve(e))).fail(((...e)=>n.reject(e[0]))).progress((e=>n.notify(e))):e&&e.then?e.then((e=>n.resolve(e)),((...e)=>n.reject(e[0]))):te.warn("promise: incompatible object given to consume()",e),n.promise())};return e&&e(n),n};Te.Pledge=(...e)=>{const t=Te();return t.resolve(...e),t.promise()},Te.Breach=(...e)=>{const t=Te()
;return t.reject(e[0]),t.promise()},Te.onebyone=(e,t=!0)=>{const n=[],i=Te();let r=0;const s=()=>{if(r<e.length){const o=(0,e[r++])();o&&o.promise?o.promise().done((e=>{n.push(e),s()})).fail((()=>{if(n.push(null),t)return i.reject();s()})):o&&o.then?o.then((e=>{n.push(e),s()}),(()=>{if(n.push(null),t)return i.reject();s()})):(n.push(o),s())}else i.resolve(n)};return s(),i.promise()},Te.or=e=>{let t;const n=Te(),i=()=>{e.length?(t=e.shift(),
t&&Te.Pledge().then(t).done(n.resolve).fail(i)):n.reject()};return i(),n.promise()},Te.sidebyside=e=>{e=Array.isArray(e)?e:[e];const t=Te();let n=e.length;return n?e.forEach((e=>{e&&e.promise&&e.promise().always((()=>{0==--n&&t.resolve()}))})):t.resolve(),t.promise()},Te.when=e=>{e=Array.isArray(e)?e:[e];const t=Te();let n=e.length;const i=[];return n?e.forEach((e=>{let r;if(e&&e.promise)r=e.promise();else{if(!e.then)return void te.warn("promise: incompatible object given to when()",e);r=e}
r.fail((()=>{t.reject(),n=-1})).done((e=>{i.push(e),0==--n&&t.resolve(i)}))})):t.resolve(i),t.promise()},Te.all=e=>Te.when(e).then((()=>{})),Te.from=e=>{const t=Te();return e.then(t.resolve,t.reject),t.promise()},Te.heal=e=>e instanceof Array?Te.all(e.map((e=>Te.from(e).then((()=>{}),(()=>Te.Pledge()))))):Te.from(e).then((()=>{}),(()=>{}));let Ie=[];const Ue={},Le={},Fe=(e,t)=>{const n="string"==typeof e?[e]:e,i=()=>{n.every((e=>!!Me[e]))?t():Ie.push(i)};n.forEach((e=>{
if(void 0===Me[e]&&void 0===Ue[e]){const t=b((()=>{Le[e]||(delete Ue[e],je(e),Oe(Be.getURL(e+".js"),(()=>{De(e)})))}),0);Ue[e]=()=>{A(t),delete Ue[e]}}})),i()},Me={},je=e=>{Le[e]=!0},De=e=>{if(!Me[e]){let t;Me[e]=!0,delete Le[e],(t=Ue[e])&&t(),(()=>{const e=Ie;Ie=[];for(const t of e)t()})()}},Oe=(e,t)=>{let n=1;const i=()=>{0==--n&&t&&t()};("string"==typeof e?[e]:e).forEach((e=>{n++;try{!function(e,t){{const n=document.createElement("script");n.setAttribute("src",e),t&&(n.onload=()=>t(!0),
n.onerror=()=>t(!1)),(document.head||document.body||document.documentElement||document).appendChild(n)}}(e,(t=>{t||te.warn("registry: self.load "+e+" failed! "),i()}))}catch(t){te.warn("registry: self.load "+e+" failed! ",t),i()}})),i()};class ze{constructor(){this.events={}}on(e,t,n){const i=void 0===n||Array.isArray(n)?n:[n],{events:r}=this;let s=r[e];return s||(s=[],r[e]=s),s.push({listener:t,filter:i}),()=>this.off(e,t)}once(e,t,n){
const i=void 0===n||Array.isArray(n)?n:[n],r=this.on(e,((...e)=>(r(),t.bind(this)(...e))),i);return r}off(e,t){const n=this.events[e];n&&(this.events[e]=n.filter((e=>e.listener!==t)))}has(e,t){const n=this.events[e];return!!n&&n.some((e=>e.listener===t))}emit(e,...t){const n=this.events[e];if(n)for(const e of n){const{listener:n,filter:i}=e;if((!i||H(t,i))&&!0===n(...t))return!0}return!1}listening(e,t){const n=this.events[e];if(n){if(t){const e=Array.isArray(t)?t:[t]
;return n.filter((t=>!t.filter||H(t.filter,e))).length}return n.length}return 0}}const Pe=e=>new s((t=>He(t,e)));let Ne=0;const Ve=(e,t)=>{const n=Date.now();if(Ne+e<n)return new s((e=>b((()=>{Ne=Date.now(),e()}),t||0)))},Qe=async function(e,...t){await Ve(1e3),e.apply(this,t)},He=function(e,t){return t?b.apply(this,[e,t]):(Qe.apply(this,[e]),0)},qe=e=>{const t=[],n=[],i=()=>{let r;if(n.length<e.threads&&t.length&&(r=t.shift())){const e=r.fn();let t;if(void 0!==e.catch){const n=Te()
;e.then(n.resolve).catch(n.reject),t=n.promise()}else t=e;n.push(t),t.always((()=>{let e;(e=n.indexOf(t))>-1&&n.splice(e,1),i()})),r.p.consume(t)}};return{add:function(e){const n=Te();return t.push({fn:e,p:n}),i(),n.promise()}}},Xe=e=>{const t={},{retimeout_on_get:n,timeout:i,check_interval:r,auto_remove_mutex:s}=Object.assign({retimeout_on_get:!1,timeout:300,check_interval:120},e||{});let o;const a=()=>{l(),o=b(d,1e3*r)},l=()=>{o&&A(o),o=null},c=e=>{const n=t[e];if(delete t[e],n){
const{d:t,value:i}=n;return t.resolve([e,i]),i}},d=()=>{o=null;const e=Date.now()-1e3*i,n=Object.entries(t).filter((([t,n])=>n.ts<e));n.length?(s?s.acquire():Te.Pledge()).then((()=>{n.forEach((([e,t])=>{const n=t&&t.d;n&&n.resolve([e,t.value]),c(e)})),s&&s.release(),a()})):a()};return i&&a(),{set:(e,n)=>{const i=Te();return t[e]={value:n,ts:Date.now(),d:i},i.promise()},get:(e,i)=>{const r=t[e];return r?(n&&(r.ts=Date.now()),r.value):i},remove:c,removeAll:()=>{Object.keys(t).map((e=>c(e)))}}}
;class We{constructor(e=1){if(this.waiting=[],e<0)throw new Error("Count must not be negative");this._count=e}acquire(){if(this._count>0)return this._count--,Te.Pledge();{const e=Te();return this.waiting.push(e.resolve),e.promise()}}release(){if(this.waiting.length>0){const e=this.waiting.shift();e&&e(void 0)}else this._count++}get count(){return this._count}}const Ye=new We(1),Je=new ze,Ke={};let $e=[];Je.on("download",(({id:e,url:t,error:n})=>{const i=Ke[e]
;i?(i.state=n?"interrupted":"complete",$e.forEach((t=>{t({id:e,state:{current:i.state}})})),b((()=>{delete Ke[e]}),6e4)):console.warn("download event for unknown id",e,t)}));const et={notDetermined:void 0,denied:"denied",authorized:"granted",provisional:"granted"};let tt=[],nt=[],it=[],rt=et.notDetermined;Je.on("notification",(({id:e,clicked:t,error:n})=>{n?console.warn("notifications: error",e,n):(t&&tt.forEach((function(t){t(e)})),nt.forEach((function(t){t(e)})))})),
Je.on("permission",(({permission:e})=>{rt=et[e],it.forEach((function(e){e(rt)}))}));let st=!0;(async()=>{await null,st=!1})();const ot=Object.defineProperties({},{...Object.getOwnPropertyDescriptors(Be),...Object.getOwnPropertyDescriptors({onConnect:{addListener:function(e){return ke.runtime.onUserScriptConnect?ke.runtime.onUserScriptConnect.addListener(e):console.error("chrome.runtime.onUserScriptConnect is not available!"),ke.runtime.onConnect.addListener(e)}},onConnectExternal:{
addListener:function(e){return ke.runtime.onConnectExternal.addListener(e)}},onMessageExternal:{addListener:function(e){return ke.runtime.onMessageExternal.addListener(e)}},onMessage:{...Be.onMessage,addDynamicListener:e=>{const t=(t,n,i)=>e(t,n,i);ke.runtime.onUserScriptMessage?ke.runtime.onUserScriptMessage.addListener(t):console.error("chrome.runtime.onUserScriptMessage is not available!"),Be.onMessage.addListener(t)},addListener:e=>ot.onMessage.addDynamicListener(e)}}),inIncognitoContext:{
get:function(){return Be.inIncognitoContext}},manifest:{get:function(){return ke.runtime.getManifest()}}}),at=Object.defineProperties({},{...Object.getOwnPropertyDescriptors(Se),...Object.getOwnPropertyDescriptors({onInstalled:{addListener:function(e){ke.runtime.onInstalled&&ke.runtime.onInstalled.addListener(e)}},onUpdateAvailable:{addListener:function(e){ke.runtime.onUpdateAvailable&&ke.runtime.onUpdateAvailable.addListener(e)}},setUninstallURL:e=>{
ke.runtime.setUninstallURL&&ke.runtime.setUninstallURL(e)},getContexts:async e=>{if("getContexts"in ke.runtime)return await ke.runtime.getContexts(e)}})}),lt={onActivated:{addListener:function(e){return ke.tabs.onActivated.addListener(e)},addDynamicListener:function(e){return ke.tabs.onActivated.addListener(e)},removeListener:function(e){return ke.tabs.onActivated.removeListener(e)}},onUpdated:{addListener:function(e){return ke.tabs.onUpdated.addListener(e)},addDynamicListener:function(e){
return ke.tabs.onUpdated.addListener(e)},removeListener:function(e){return ke.tabs.onUpdated.removeListener(e)}},onReplaced:{addListener:function(e){if(ke.tabs.onReplaced)return ke.tabs.onReplaced.addListener(e)},addDynamicListener:function(e){if(ke.tabs.onReplaced)return ke.tabs.onReplaced.addListener(e)},removeListener:function(e){return ke.tabs.onReplaced.removeListener(e)}},onRemoved:{addListener:function(e){return ke.tabs.onRemoved.addListener(e)},addDynamicListener:function(e){
return ke.tabs.onRemoved.addListener(e)},removeListener:function(e){return ke.tabs.onRemoved.removeListener(e)}},executeScript:function(e,t,n){return ke.tabs.executeScript(e,t,n)},create:function(e,t){let{url:n,active:i,index:r,openerTabId:s,windowId:o,parent:a,incognito:l}=e;const c={url:n,active:i,index:r,openerTabId:s,windowId:o};a&&(void 0!==(s=a.id)&&(s<0?console.warn(`tabs.create: openerTabId lower than 0 is not supported -> ${s}!`):c.openerTabId=s),
void 0!==(o=a.windowId)&&(c.windowId=o)),l&&ct.supported?ct.getAll({windowTypes:["normal"]},(e=>{let n;return e.some((e=>e.incognito?n=e.id:null)),void 0===n?ke.windows.create({url:c.url,incognito:!0},t):(c.windowId=n,ke.tabs.create(c,t))})):ke.tabs.create(c,t)},update:function(e,t,n){return ke.tabs.update(e,t,n)},remove:function(e,t){return ke.tabs.remove(e,t)},highlight:function(e,t){if(!e||!e.tabs)return void(t&&t());const n=e.tabs instanceof Array?e.tabs:[e.tabs];if(!ke.tabs.highlight){
const e=n.pop();return ke.tabs.update(e,{active:!0},(()=>{t&&t()}))}{const e=[];let i;const r=()=>{if(!n.length)return ke.tabs.highlight({windowId:i,tabs:e},(()=>{ke.windows.update(i,{focused:!0},(()=>{t&&t()}))}));{const t=n.pop();ke.tabs.get(t,(t=>{void 0===i&&(i=t.windowId),t.windowId===i&&e.push(t.index),r()}))}};r()}},getSelected:function(e,t){let n=1;const i=()=>lt.query({active:!0,lastFocusedWindow:!0,...e?{windowId:e}:{}},(e=>{ke.runtime.lastError&&n-- >0?b(i,1):t&&t(e[0])}));return i()
},get:function(e,t){return ke.tabs.get(e,t)},query:function(e,t){return ke.tabs.query(e,(e=>t(e||[])))},sendMessage:function(e,t,n,i){return"function"==typeof n&&(i=n,n={}),ke.tabs.sendMessage(e,t,n,i)}},ct=ke&&ke.windows&&ke.windows.getAll?{supported:!0,getAll:function(e,t){ke.windows.getAll?ke.windows.getAll(e,(e=>t(e||[]))):t([])},update:function(e,t,n){return ke.windows.update(e,t,n)},get:function(e,t,n){return ke.windows.get(e,t,n)}}:{supported:!1
},dt=(ke&&ke.webRequest&&ke.webRequest.OnBeforeSendHeadersOptions&&ke.webRequest.OnBeforeSendHeadersOptions.hasOwnProperty("EXTRA_HEADERS"),!ke||ke.webNavigation,ke&&ke.webNavigation&&(ke.webNavigation.onHistoryStateUpdated||ke.webNavigation.onReferenceFragmentUpdated)||console.warn("webNavigation onReferenceFragmentUpdated or onHistoryStateUpdated not supported, onurlchange will not work!"),ke&&ke.action,
ke&&ke.declarativeContent&&ke.declarativeContent.onPageChanged&&(ke.declarativeContent.PageStateMatcher,ke.declarativeContent.RequestContentScript),Re&&Re.contentScripts&&Re.contentScripts.register,Re&&Re.userScripts&&Re.userScripts.register,(()=>{const e=ke;e&&e.scripting&&e.scripting.executeScript})(),ke&&ke.declarativeNetRequest&&ke.declarativeNetRequest.updateSessionRules&&ke.declarativeNetRequest.getSessionRules,(()=>{const e=Re||ke;e&&e.storage&&e.storage.session})(),
!!ke&&ke.storage.managed,{cache:{},isAllowed:function(e){return ke.extension.isAllowedFileSchemeAccess?ke.extension.isAllowedFileSchemeAccess(e):e(!1)},get:async function(e,t,n){try{const n=await w(e),i=await n.blob();t(await new Response(i).arrayBuffer())}catch(e){n(e.message)}}}),ut=(Object.defineProperties({},{...Object.getOwnPropertyDescriptors({isDefaultStoreId:e=>!(void 0!==e),getIdFromStoreId:()=>{}}),...Object.getOwnPropertyDescriptors({getAll:function(e,t){return ke.cookies.getAll(e,t)
},remove:function(e,t){return ke.cookies.remove(e,t)},set:function(e,t){return ke.cookies.set(e,t)}})}),ke&&ke.commands&&ke.commands.onCommand,(()=>{const e=ke&&ke.notifications;e&&e.getPermissionLevel&&e.onPermissionLevelChanged&&e.onClicked})(),ke&&ke.contextMenus&&ke.contextMenus.create&&ke.contextMenus.update&&ke.contextMenus.remove,(()=>{const e=ke&&ke.permissions&&!!ke.permissions.getAll;return e?{supported:e,getAll:t=>{if(e)return ke.permissions.getAll(t);t&&t({permissions:[],origins:[]})
},contains:(t,n)=>{if(e)return ke.permissions.contains(t,n);n&&n(!1)},request:(t,n)=>{if(e)return ke.permissions.request(t,n);n&&n(!1)},remove:(t,n)=>{if(e)return ke.permissions.remove(t,n);n&&n(!1)},onAdded:{addListener:t=>{if(e&&ke.permissions.onAdded)return ke.permissions.onAdded.addListener(t)}},onRemoved:{addListener:t=>{if(e&&ke.permissions.onRemoved)return ke.permissions.onRemoved.addListener(t)}}}:{supported:!1}})()),At={native_support:!0,getMessage:function(...e){
return ke.i18n.getMessage(...e)},getUILanguage:function(){return ke.i18n.getUILanguage?ke.i18n.getUILanguage():navigator.language},getAcceptLanguages:function(e){return ke.i18n.getAcceptLanguages?ke.i18n.getAcceptLanguages(e):e([])}};!ke||!ke.alarms||ke.alarms.create;let ht=!1;(async()=>{try{M&&(Ee.NO_WARNING="nowarning"===M.getItem("#brokenprofile"))}catch(e){console.warn("prep: error at storage type detection",e)}dt.isAllowed((e=>{ht=e}))})();const pt="en";let ft={},mt={},gt=null
;const _t=[],bt=async e=>{const t=`_locales/${e}/messages.json`,n=await(e=>{let t;const n=Be.getURL(e);return Te((async({resolve:i})=>{try{if(j){const r=new j;j.onlyasync?(r.open("GET",n),r.onload=()=>{i(r.responseText)},r.onerror=()=>{i()},r.send(null)):(r.open("GET",n,!1),r.send(null),t=r.responseText,t||te.warn("registry: content of "+e+" is null!"),i(t))}else i(await w(n).then((e=>e.text())))}catch(e){te.log("getRaw:"+e),i()}})).promise()})(t);try{if(n)return JSON.parse(n)}catch(e){}
te.warn("i18n: parsing locale "+e+" failed!")},vt=async e=>{e=e.concat(pt);let t=-1,n=null;const i=async()=>{if(t++,t<e.length){const r=e[t];if(!r||!kt.includes(r))return i();try{const e=await bt(r);if(!e)throw new Error("locale parsing failed!");n=r,ft=e}catch(e){return i()}if(!Rt&&r!=pt)try{const e=await bt(pt);mt=e||{}}catch(e){}}};return await i(),n},wt=e=>e?e.replace(/-/g,"_").split("_").map(((e,t)=>t?e.toUpperCase():e.toLowerCase())).join("_"):e,yt=(e,t)=>{let n,i
;return t=t||(gt?[gt,gt.split("_")[0]].concat(_t).filter((e=>e)):_t),V(t,((t,r)=>{const s=Number(r);if(V(e,((e,r)=>{const o=Number(r),a=wt(e),l=a.split(/_/)[0];if(a==t)return i=o,!1;l==t&&(void 0===n||s<n)&&(i=o,n=s)})),void 0!==i)return!1})),void 0===i?i:e[i]},kt=[{value:"ar",name:"Arabic - ‎‫العربية‬‎"},{value:"be",name:"Belarusian - беларуская"},{value:"cs",name:"Czech - čeština"},{value:"da",name:"Danish - dansk"},{value:"de",name:"German - Deutsch"},{value:"el",
name:"Hellenic (Greek) - Ελληνικά"},{value:"en",name:"English"},{value:"es",name:"Spanish - español"},{value:"fr",name:"French - français"},{value:"he",name:"Hebrew - עברית"},{value:"hi",name:"Hindi - हिन्दी"},{value:"hr",name:"Croatian - hrvatski"},{value:"hu",name:"Hungarian - magyar"},{value:"id",name:"Indonesian - Indonesia"},{value:"it",name:"Italian - italiano"},{value:"ja",name:"Japanese - 日本語"},{value:"ko",name:"Korean - 한국어"},{value:"mk",name:"Macedonian - македонски"},{value:"nb",
name:"Norwegian - norsk"},{value:"nl",name:"Dutch - Nederlands"},{value:"pl",name:"Polish - polski"},{value:"pt_BR",name:"Portuguese (Brazil) - português (Brasil)"},{value:"pt_PT",name:"Portuguese (Portugal) - português (Portugal)"},{value:"ru",name:"Russian - русский"},{value:"sk",name:"Slovak - slovenčina"},{value:"sr",name:"Serbian - српски"},{value:"tr",name:"Turkish - Türkçe"},{value:"uk",name:"Ukrainian - українська"},{value:"vi",name:"Vietnamese - Tiếng Việt"},{value:"zh_CN",
name:"Chinese (Simplified) - 中文(简体中文)"},{value:"zh_TW",name:"Chinese (Traditional) - 中文(繁體)"}].map((e=>e.value)),Rt=!(void 0===At)&&At.native_support,xt=(e,...t)=>{let n;return gt&&(n=ft[e]||mt[e])?((e,t)=>{let n,i=e.message;return n=1==t.length&&Array.isArray(t[0])?t[0]:t,e.placeholders&&Object.entries(e.placeholders).forEach((([e,t])=>{try{const r=Number(t.content.replace(/^\$/,""))-1;let s;r<n.length?(s=n[r],
i=i.replace("$"+e+"$",s)):te.log('i18n: invalid argument count on processing "'+i+'" with args '+JSON.stringify(n))}catch(e){te.log('i18n: error processing "'+i+'" with args '+JSON.stringify(n))}})),i})(n,t):(Rt&&(n=((e,...t)=>{const n=[],i=e=>{for(let t=0;t<e.length;t++)Array.isArray(e[t])?i(e[t]):n.push(String(e[t]))};return i(t),At.getMessage(e,n)})(e,...t))||(n=function(e,...t){let n=e;1==t.length&&Array.isArray(t[0])&&(t=t[0]);const i=new RegExp("(^|_)0[a-zA-Z]+0(_|$)")
;for(let e=0;e<t.length;e++){const r=n.match(i);if(!r){te.log("i18n: getMessage(): wrong argument count!!!");break}n=n.replace(i,(r[1]?" ":"")+t[e]+(r[2]?" ":""))}return n.replace(/_/g," ")}(e,...t),te.warn("i18n: missing translation"+n)),n)},Ct=(e,t)=>{let n;const i=e[t];if(e){let r=e[t+"_i18n"]||{};i&&(r={en:i,...r});const s=yt(Object.keys(r));void 0!==s&&(n=r[s])}return n||i},Et=async e=>{let t=e;if("null"===e&&(t=null),t&&(t=wt(t)),
!t&&Rt)gt=t;else if(t!==gt)return vt([t,..._t,gt].filter((e=>e))).then((t=>{gt=t,gt!=e&&te.log("i18n: retrieving locale "+t+" failed!")}))},Gt=yt,Zt=(e,t)=>{for(let n=0,i=e.length;n<i;n++)if(e[n]==t)return!0;return!1},St=(e,t)=>{const n=document.querySelectorAll(t);let i=e.parentNode;for(;i&&!Zt(n,i);)i=i.parentNode;return i},Bt=e=>e&&void 0!==e.nodeType,Tt=e=>e&&void 0!==e.tagName,It=(...e)=>{const n=e.length>1?e:e[0];if(null==n?void 0:n.queryHelper)return n
;if("function"==typeof n)return"loading"!=window.document.readyState?n(null):window.addEventListener("DOMContentLoaded",n),It([]);if("string"==typeof n){let e=[];if("<"==n.trim()[0]){let t=n;try{if(-1!=t.indexOf("<script")){const n=/<script[^>]*>[^<]*<\/script>/g,i=/([^\r\n\t\f\v= '"]+)(?:=(["'])?((?:.(?!\2?\s+(?:\S+)=|\2))+.)\2?)?/g,r=t.match(n);r&&r.length&&(t=t.replace(n,""),r.forEach((t=>{const n=t.match(i);if(!n||!n.length)return;const r={};if(n.slice(1,-1).forEach((e=>{
const t=e.split("="),n=t.shift()||e;r[n]=(t.join("=")||"").replace(/^"|"$/g,"")})),!r.src)return void console.error(`ssjq: unable to parse "${t}"`,r);const s=document.createElement("script");["src","async"].forEach((e=>{void 0!==r[e]&&s.setAttribute(e,r[e])})),e.push(s)})))}const n=/^<([^>]+)>$/.exec(t);n&&2==n.length&&(t=`${t}</${n[1].split(" ")[0]}>`);const i=(new DOMParser).parseFromString(t,"text/html"),r=[].slice.call(i.body.children);e=r.concat(e)}catch(t){console.error(`ssjq: ${t}`),e=[]}
}else{const t=document.querySelectorAll(n);e=[].slice.call(t)}return It(e)}if(Array.isArray(n)){const e=[].concat(...n.map((e=>Array.isArray(e)?e:"string"==typeof e?It(e):[e])).filter((e=>e))),i={},r=Object.assign(e,{queryHelper:!0,append:(...t)=>(t.forEach((t=>{const n=e[0];Bt(n)&&It(t).forEach((e=>n.appendChild(It(e)[0])))})),It(e)),appendTo:t=>{const n=It(t);return e.filter(Bt).forEach((e=>n.append(e))),It(e)},insertBefore:t=>{const n=[...e];if(e.length){
const i=It(t)[0],r=null==i?void 0:i.parentNode;r&&e.forEach((e=>{const t=It(e)[0];t&&(r.insertBefore(t,i),n.push(t))}))}return It(n)},remove:()=>(e.filter(Bt).forEach((e=>{var t;return null===(t=e.parentNode)||void 0===t?void 0:t.removeChild(e)})),It([])),replaceWith:t=>{const n=e[0];if(n){const e=(e=>e&&e.queryHelper)(n)?n[0]:n,i=It(t),r=i.shift();return void 0!==r&&Tt(e)&&(e.replaceWith(r),i.forEach((e=>{var t;null===(t=r.parentNode)||void 0===t||t.insertBefore(e,r.nextSibling)}))),It(e)}
return It(e)},prevAll:t=>{var n;const i=e[0];if(!i)return It([]);const r=null===(n=It(i).parent())||void 0===n?void 0:n.children(t);if(!r||!r.length)return It([]);const s=[];for(let e=0;e<r.length;e++){const t=r[e];if(t==i)break;s.push(t)}return It(s.reverse())},nextAll:t=>{var n;const i=e[0];if(!i)return It([]);const r=null===(n=It(i).parent())||void 0===n?void 0:n.children(t);if(!r||!r.length)return It([]);const s=[];let o=!1;for(let e=0;e<r.length;e++){const t=r[e];o&&s.push(t),t==i&&(o=!0)}
return It(s)},addClass:t=>{const n=t.trim().split(" ");return e.filter(Tt).forEach((e=>n.forEach((t=>e.classList.add(t))))),It(e)},removeClass:t=>{const n=t.trim().split(" ");return e.filter(Tt).forEach((e=>n.forEach((t=>e.classList.remove(t))))),It(e)},toggleClass:(t,n)=>(t.trim().split(" ").forEach((t=>{!0===n?r.addClass(t):!1===n?r.removeClass(t):e.filter(Tt).forEach((e=>e.classList.toggle(t)))})),It(e)),hasClass:t=>!!e.filter((e=>Tt(e)&&e.classList.contains(t))).length,is:t=>{const n=e[0]
;if(n&&Tt(n))return":visible"==t?"none"!==window.getComputedStyle(n).display:":checked"==t?1==n.checked:void 0},attr:(t,n)=>{if(e.length){const i=(t,n)=>{null===n?e.filter(Tt).forEach((e=>e.removeAttribute(t))):e.filter(Tt).forEach((e=>e.setAttribute(t,n.toString())))};if("string"==typeof t){if(void 0===n){const n=e[0];return Tt(n)&&n.getAttribute(t)||void 0}i(t,n)}else for(const e of Object.keys(t))i(e,t[e])}return It(e)},prop:(t,n)=>{if(e.length){const i=(t,n)=>{
null===n?e.filter(Tt).forEach((e=>{delete e[t],e.removeAttribute(t)})):e.forEach((e=>e[t]=n))};if("string"==typeof t){if(void 0===n)return e[0][t];i(t,n)}else for(const e of Object.keys(t))i(e,t[e])}return It(e)},text:n=>void 0===n?e.length?e.filter(Tt).map((e=>"textarea"==e.type?e.value:e.innerText)).join(""):void 0:(e.length&&null!=n&&e.filter(Tt).forEach((e=>{"textarea"==e.type?e.value=`${n}`:e.innerText=t(n)})),It(e)),html:n=>{if(e.length){
if(void 0===n)return e.filter(Tt).map((e=>e.innerHTML)).join("");e.filter(Tt).forEach((e=>e.innerHTML=t(n)))}return It(e)},closest:t=>{const n=[];for(const i of e){const e=Tt(i)&&St(i,t);e&&n.push(e)}return It(n)},parent:()=>{const t=e[0];return Tt(t)?It(t.parentNode):It([])},children:t=>{const n=e[0];if(Tt(n))if(t){if(n.querySelectorAll){const e=n.querySelectorAll(t);return It([].slice.call(e))}}else if(n.children)return It([].slice.call(n.children));return It([])},find:t=>{let n=[]
;return e.forEach((e=>{It(e).children(t).forEach((e=>{const i=It(e).find(t).toArray();n=[...n,e,...i]}))})),It(n)},each:t=>(e.forEach(((e,n)=>t(n,e))),It(e)),not:t=>{const n=It(t);return It(e.filter((e=>-1===n.indexOf(It(e)[0]))))},first:()=>It(e.slice(0,1)),toArray:()=>[...e],bind:(t,n)=>(t.split(" ").forEach((t=>{(i[t]||(i[t]=[])).push(n),e.forEach((e=>e.addEventListener(t,n)))})),It(e)),unbind:t=>(t.split(" ").forEach((t=>{i[t]&&(i[t].forEach((n=>{e.forEach((e=>{e.removeEventListener(t,n)}))
})),i[t]=[])})),It(e)),value:n=>{if(void 0===n){let t;return e.slice().reverse().some((e=>{if(!e.disabled)if("checkbox"==e.type){if(1==e.checked)return t=e.value,!0}else{if("radio"!=e.type)return t=e.value,!0;if(1==e.checked)return t=e.value,!0}})),t}{const i=e.length?e[e.length-1]:void 0;return i&&("checkbox"==i.type?i.value==n&&(i.checked=!0):"select-one"==i.type?i.value=t(n):((e=>e&&void 0!==e.type)(i)&&"text"==i.type&&(i.value=t(n)),i.setAttribute("value",t(n)))),It(e)}},data:(n,i)=>{
const r=e[0];return Tt(r)&&r.dataset?void 0===i?r.dataset[n]:(null===i?delete r.dataset[n]:r.dataset[n]=t(i),It(e)):void 0===i?It(e):void 0},offset:()=>{const t=e[0];return Tt(t)&&(null==t?void 0:t.getBoundingClientRect())||{left:-1,top:-1,right:-1,bottom:-1,x:-1,y:-1,height:-1,width:-1}},height:()=>{const t=e[0];return t&&((e=>e&&void 0!==e.document)(t)?window.innerHeight:t.offsetHeight)||0},scrollTop:()=>{const t=e[0];return t&&(t.scrollTop||t.pageYOffset)||0},get:t=>e[t],
on:(t,n)=>(t.split(" ").forEach((t=>e.forEach((e=>null==e?void 0:e.addEventListener(t,n))))),It(e)),off:(t,n)=>(t.split(" ").forEach((t=>e.forEach((e=>null==e?void 0:e.removeEventListener(t,n))))),It(e)),trigger:(t,n)=>{const i=new Event(t,{bubbles:!0,cancelable:!0});return n&&Object.assign(i,n),e.forEach((e=>{if(["focus","blur"].includes(t)){const n=e[t];"function"==typeof n&&n.apply(e,[])}e.dispatchEvent(i)})),It(e)},toggle:t=>(e.forEach((e=>{const n=It(e)
;(void 0===t?n.is(":visible"):!t)?n.hide():n.show()})),It(e)),hide:()=>(e.filter(Tt).forEach((e=>{var t;const n=null===(t=null==e?void 0:e.style)||void 0===t?void 0:t.display;n&&-1==n.indexOf("none")&&(e.backuped_display=n),It(e).attr("style","display: none !important")})),It(e)),fadeOut:async t=>new Promise((n=>{e.filter(Tt).forEach((e=>{e.style.opacity="1",e.style.transition=`opacity ${t||150}ms`,setTimeout((()=>{e.style.opacity="0"}),1)})),setTimeout((()=>{e.filter(Tt).forEach((e=>{
e.style.transition="",e.style.opacity=""})),r.hide(),n(It(e))}),(t||150)+1)})),show:()=>(e.filter(Tt).forEach((e=>{e.style.display=e.backuped_display||""})),It(e)),fadeIn:async t=>new Promise((n=>{e.filter(Tt).forEach((e=>{e.style.opacity="0",e.style.transition=`opacity ${t||150}ms`,setTimeout((()=>{e.style.opacity="1"}),1)})),r.show(),setTimeout((()=>{e.filter(Tt).forEach((e=>{e.style.transition="",e.style.opacity=""})),n(It(e))}),(t||150)+1)})),animate:(t,n)=>new Promise((i=>{const r=e[0]
;r.current_action&&window.clearInterval(r.current_action),r.current_action=window.setInterval((()=>{if(void 0!==t.scrollTop){const n=r===window?document.documentElement:r,s=n.scrollTop;n.scrollTop<t.scrollTop?n.scrollTop=n.scrollTop+3:n.scrollTop=n.scrollTop-3,(n.scrollTop===s||Math.abs(n.scrollTop-t.scrollTop)<=3)&&(n.scrollTop=t.scrollTop,window.clearInterval(r.current_action),delete r.current_action,i(It(e))),window.getComputedStyle(n)}else e.forEach((e=>{if(void 0!==t.height){
const n=It(e).get(0);n&&n.style&&(n.style.height=`${t.height}px`)}})),i(It(e))}),void 0===n?100:n)})),serialize:()=>{if(1==e.length&&(t=e[0])&&"FORM"==t.tagName)return It(e[0]).find("input, textarea, select, button").map((e=>{const t=e.name,n=It(e).value();if("string"==typeof t&&"string"==typeof n)return`${t}=${encodeURIComponent(n)}`})).filter((e=>"string"==typeof e)).join("&");var t}});return r}return It(void 0===n||null==n?[]:[n])};let Ut=null,Lt=null;const Ft=(e,t)=>{t||(t={})
;const n="ct",i="0",r=me("div",n,i,"p"),s=fe("div","curbg",n,i,"c"),o=fe("div",t.fixed?"curmiddle_fixed":"curmiddle_relative",n,i,"d");r.inserted||(r.setAttribute("class","curouter hide"),r.setAttribute("style","z-index: 10000"));const a=((e,t,n,i)=>{i||(i="");const r=fe("table","curtable",t,n,"table"+i),s=fe("tr","",t,n,"tr2"+i),o=fe("td","curtableoutertd",t,n,"td1"+i),a=fe("td","curtableinner",t,n,"td2"+i),l=fe("td","curtableoutertd",t,n,"td3"+i);return s.appendChild(o),s.appendChild(a),
s.appendChild(l),r.appendChild(s),e&&a.appendChild(e),r})(e,n,i);return o.appendChild(a),r.appendChild(o),r.appendChild(s),r.show=()=>{r.setAttribute("class","curouter block")},r.hide=()=>{r.setAttribute("class","curouter hide")},r.remove=()=>{r.parentNode&&r.parentNode.removeChild(r)},r.setText=e=>{r.text=e},r.print=e=>{r.text&&(r.text.textContent=e)},document.body.appendChild(r),r},Mt=()=>{const e=document.createElement("div");e.setAttribute("class","curcontainer")
;const t=document.createElement("div");t.setAttribute("class","curwaithead");const n=document.createElement("div");return n.setAttribute("class","curwaitmsg"),e.appendChild(t),e.appendChild(n),{head:t,outer:e,inner:n}},jt={wait:e=>{if(document.body){if(void 0===e&&(e=xt("Please_wait___")),null===Lt){Ut&&(Ut.remove(),Ut=null);const t=e=>{const t=Mt(),n=t.inner,i=document.createElement("div");return i.textContent=e,i.setAttribute("class","curtext"),
It(n).append(It('<div class="lds-css ng-scope"><div class="lds-dual-ring"><div></div><div></div></div></div>')).append(i),{all:t.outer,text:i}};Lt=0;const n=t(e);return Ut=Ft(n.all,{fixed:!0}),Ut.setText(n.text),Ut.show(),!0}return 0===Lt&&(void 0===e&&(e=xt("Please_wait___")),Ut)?(e&&Ut.print(e),Ut.show(),!0):void 0}},hide:()=>{0===Lt&&(Ut&&Ut.hide(),Lt=null)},dialog:(e,t)=>{if(!document.body)return;if(1===Lt)return!1;if(null!==Lt)return;Ut&&(Ut.remove(),Ut=null),Lt=1;const n=Mt()
;if(n.inner.appendChild(e),Ut=Ft(n.outer),Ut.show(),t){const e=document.createElement("div");e.setAttribute("class","curclose"),n.head.appendChild(e),e.addEventListener("click",(()=>t())),Ut.addEventListener("keydown",(e=>{27==e.keyCode&&(t(),e.preventDefault())}),!0),Ut.setAttribute("tabindex",0)}return!0},hideDialog:()=>{1===Lt&&(Ut&&Ut.hide(),Lt=null)}};let Dt=null,Ot=2;const zt=(e,t)=>{let n=e,i=t;const r=()=>{null!=Dt&&window.clearTimeout(Dt),Dt=null},s=e=>{e&&(r(),n&&(n(e),n=null))}
;Dt=window.setTimeout((()=>{if(r(),Ot-- >0&&n&&i)return zt(n,i),void(n=i=null);i&&i()}),5e3);const o={method:"ping"};try{ot.sendMessage(o,s)}catch(e){}},Pt=zt,Nt=[{name:xt("Default"),layout:"default",value:"default"},{name:xt("Default_Light"),layout:"default",theme:"light",value:"default#light"},{name:xt("Default_Dark"),layout:"default",theme:"dark",value:"default#dark"},{name:xt("Default_Darker"),layout:"default",theme:"darker",
footer:'Theme by <a href="https://github.com/narcolepticinsomniac" target="blank">narcolepticinsomniac</a> from the <a href="https://github.com/openstyles/stylus" target="blank">Stylus</a> project.',value:"default#darker"}],Vt={default:xt("Default"),monokai:"Monokai",solarized:"Solarized","mdn-like":"MDN-like",eclipse:"Eclipse",railscasts:"RailsCasts",zenburn:"ZenBurn",claude:"Claude"},Qt={
unknown:"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAIAAAAC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iNhIi8+PHBhdGggZmlsbD0iIzJFQ0M3MSIgbWFzaz0idXJsKCNiKSIgZD0iTTExLjI1IDB2MTQuNjI1SDBWMHoiLz48cGF0aCBmaWxsPSIjRTc0QzNDIiBtYXNrPSJ1cmwoI2IpIiBkPSJNMjQgMHY3Ljg3NUgxMi43NVYweiIvPjxwYXRoIGZpbGw9IiNGMzlDMTIiIG1hc2s9InVybCgjYikiIGQ9Ik0xMS4yNSAxNi4xMjVWMjRIMHYtNy44NzV6Ii8+PHBhdGggZmlsbD0iIzM0OThEQiIgbWFzaz0idXJsKCNiKSIgZD0iTTI0IDkuNTYzdjE0LjYyNEgxMi43NVY5LjU2M3oiLz48L2c+PC9zdmc+"
},Ht='<g><path class="st0" d="M304.8,0H95.2C42.6,0,0,42.6,0,95.2v209.6C0,357.4,42.6,400,95.2,400h209.6c52.6,0,95.2-42.6,95.2-95.2V95.2C400,42.6,357.4,0,304.8,0zM106.3,375C61.4,375,25,338.6,25,293.8c0-44.9,36.4-81.3,81.3-81.3c44.9,0,81.3,36.4,81.3,81.3C187.5,338.6,151.1,375,106.3,375zM293.8,375c-44.9,0-81.3-36.4-81.3-81.3c0-44.9,36.4-81.3,81.3-81.3c44.9,0,81.3,36.4,81.3,81.3C375,338.6,338.6,375,293.8,375z"></path></g><g class="st2"><path class="st3" d="M304.8,0H95.2C42.6,0,0,42.6,0,95.2v209.6C0,357.4,42.6,400,95.2,400h209.6c52.6,0,95.2-42.6,95.2-95.2V95.2C400,42.6,357.4,0,304.8,0zM106.3,375C61.4,375,25,338.6,25,293.8c0-44.9,36.4-81.3,81.3-81.3c44.9,0,81.3,36.4,81.3,81.3C187.5,338.6,151.1,375,106.3,375zM293.8,375c-44.9,0-81.3-36.4-81.3-81.3c0-44.9,36.4-81.3,81.3-81.3c44.9,0,81.3,36.4,81.3,81.3C375,338.6,338.6,375,293.8,375z"></path></g>',qt=[[100,56,22,"#272727"],[120,48,6,"#272727"],[76,48,22,"#272727"],[48,56,22,"#272727"],[84,28,11,"#272727"],[56,36,11,"#272727"],[100,32,11,"#272727"],[132,44,22,"#272727"],[152,132,22,"#1a1a1a",.5902],[116,32,11,"#272727"],[36,44,11,"#272727"],[128,144,22,"#1a1a1a",.2601],[132,36,6,"#272727"],[8,144,22,"#1a1a1a",.5728],[12,112,22,"#1a1a1a",.3512],[4,116,6,"#1a1a1a",.2],[108,24,6,"#272727"],[84,40,6,"#272727"],[64,116,22,"#1a1a1a",.0345],[56,28,6,"#272727"],[96,128,22,"#1a1a1a",.0749],[32,156,22,"#1a1a1a",.5441],[60,156,22,"#1b1b1b",.6994],[148,112,11,"#1a1a1a",.0029],[44,20,11,"#262626"],[124,60,6,"#272727"],[0,124,11,"#1a1a1a",.1999],[28,56,11,"#272727"],[72,144,11,"#1b1b1b",.4494],[76,72,22,"#272727"],[96,120,6,"#1a1a1a",.0066],[84,108,6,"#1d1d1d"],[12,104,6,"#1c1c1c"],[148,104,6,"#1a1a1a",.0687],[76,20,6,"#252525"],[68,104,11,"#1b1b1b",.0739],[0,96,11,"#1a1a1a",.2],[20,44,11,"#262626"],[144,92,11,"#1e1e1e",.9215],[160,124,6,"#1a1a1a",.6605],[0,80,11,"#1b1b1b",.2],[8,4,22,"#1d1d1d",.2362],[16,72,22,"#232323"],[92,160,21,"#1c1c1c",.6],[144,32,11,"#262626"],[12,44,6,"#202020"],[4,72,6,"#1b1b1b",.2],[52,12,6,"#202020"],[0,48,11,"#1b1b1b",.2],[44,0,11,"#1b1b1b",.1986],[144,24,6,"#242424"],[120,84,22,"#202020",.5576],[144,8,11,"#1c1c1c",.6423],[156,36,22,"#202020",.7486],[68,84,6,"#252525"],[156,64,22,"#202020",.7619],[0,60,11,"#1b1b1b",.2],[112,88,6,"#212121"],[52,84,11,"#212121"],[44,92,6,"#1c1c1c",.7096],[148,68,6,"#272727"],[100,88,11,"#222222"],[136,8,6,"#1c1c1c",.9155],[84,4,22,"#212121",.8095],[108,4,11,"#1d1d1d",.6],[76,8,6,"#1c1c1c"],[164,96,16,"#1b1b1b",.5],[148,168,13,"#1a1a1a",.0081],[168,20,12,"#1b1b1b",.0081],[64,28,6,"#272727"],[72,40,6,"#272727"],[44,32,11,"#272727"],[56,20,6,"#252525"],[40,60,6,"#272727"],[84,156,6,"#1d1d1d"],[156,100,6,"#1d1d1d"],[28,104,6,"#1a1a1a",.0182],[136,68,11,"#272727"],[40,72,6,"#272727"],[160,16,6,"#1a1a1a",.091],[120,12,11,"#222222"],[32,4,11,"#1c1c1c",.4571],[140,168,7,"#1a1a1a",.4414],[28,32,11,"#272727"],[4,136,6,"#1a1a1a",.1155],[108,44,11,"#272727"],[116,156,11,"#1a1a1a",.5235],[100,108,11,"#1a1a1a",.0313],[20,36,6,"#232323"],[92,104,6,"#1e1e1e"],[88,140,6,"#1b1b1b"],[12,36,6,"#1e1e1e"],[64,4,11,"#1d1d1d",.6],[88,128,6,"#1b1b1b"],[36,16,6,"#212121"],[16,56,11,"#242424"],[124,76,6,"#272727"],[68,92,6,"#202020"],[164,112,9,"#1a1a1a"],[4,40,6,"#1a1a1a",.1416],[48,48,6,"#272727"],[68,20,6,"#252525"],[128,28,6,"#272727"],[136,28,6,"#272727"],[152,160,6,"#1a1a1a",.9558],[128,68,6,"#272727"],[136,20,6,"#242424"],[144,84,6,"#242424"],[124,4,6,"#1a1a1a",.2],[164,88,9,"#1c1c1c"],[128,168,13,"#1a1a1a",.3226],[112,168,13,"#1a1a1a",.3333],[36,96,6,"#1b1b1b",.3675],[96,152,6,"#1c1c1c"],[24,96,6,"#1e1e1e"],[156,88,6,"#212121"],[104,80,6,"#272727"],[24,168,7,"#1b1b1b",.001],[100,48,6,"#272727"],[112,96,6,"#1b1b1b",.4376],[164,156,16,"#1a1a1a",7e-4],[52,96,11,"#1b1b1b",.0114],[44,12,6,"#1f1f1f"],[44,80,6,"#252525"],[76,28,6,"#272727"],[64,48,6,"#272727"],[116,24,6,"#272727"],[8,28,6,"#1a1a1a",.2598],[168,124,7,"#1a1a1a",.6667],[108,152,6,"#1a1a1a",.1464],[100,100,6,"#1d1d1d",.9972],[88,120,6,"#1a1a1a"],[20,104,6,"#1b1b1b",.992],[16,96,6,"#1e1e1e"],[16,28,6,"#1f1f1f"],[76,96,6,"#202020"],[156,24,11,"#1e1e1e",.9831],[4,108,6,"#1a1a1a",.2],[84,96,6,"#232323"],[92,112,6,"#1b1b1b"],[92,96,6,"#222222"],[108,16,6,"#232323"],[148,76,6,"#262626"],[92,40,6,"#272727"],[88,148,6,"#1d1d1d"],[56,48,6,"#272727"],[12,136,6,"#1a1a1a"],[32,24,6,"#242424"],[20,136,6,"#1a1a1a",.0281],[56,4,6,"#1a1a1a",.2],[156,0,17,"#1a1a1a",7e-4],[32,148,9,"#1a1a1a",.0045],[84,168,9,"#1b1b1b",.5],[112,80,9,"#252525"],[130,5,6,"#1b1b1b",.398],[130,10,6,"#1e1e1e"],[155,10,6,"#1a1a1a",.0019],[30,15,6,"#1f1f1f"],[60,15,6,"#222222"],[65,15,6,"#232323"],[70,15,6,"#232323"],[75,15,6,"#222222"],[115,15,6,"#232323"],[130,15,6,"#222222"],[135,15,6,"#212121"],[155,15,6,"#1b1b1b",.6529],[130,20,6,"#252525"],[150,20,6,"#202020"],[25,25,6,"#222222"],[70,25,6,"#272727"],[95,25,6,"#272727"],[100,25,6,"#272727"],[150,25,6,"#222222"],[70,30,6,"#272727"],[95,30,6,"#272727"],[110,30,6,"#272727"],[5,35,6,"#1a1a1a",.1598],[70,35,6,"#272727"],[75,35,6,"#272727"],[95,35,6,"#272727"],[110,35,6,"#272727"],[30,45,6,"#272727"],[70,45,6,"#272727"],[125,45,6,"#272727"],[10,50,6,"#1e1e1e"],[15,50,6,"#222222"],[30,50,6,"#272727"],[70,50,6,"#272727"],[125,50,6,"#272727"],[10,55,6,"#1e1e1e"],[40,55,6,"#272727"],[70,55,6,"#272727"],[125,55,6,"#272727"],[10,60,6,"#1e1e1e"],[70,60,6,"#272727"],[10,65,6,"#1e1e1e"],[40,65,6,"#272727"],[70,65,6,"#272727"],[10,70,6,"#1e1e1e"],[70,70,6,"#272727"],[10,75,6,"#1e1e1e"],[70,75,6,"#272727"],[130,75,6,"#272727"],[10,80,6,"#1e1e1e"],[110,80,6,"#262626"],[115,80,6,"#262626"],[10,85,6,"#1d1d1d"],[40,85,6,"#222222"],[45,85,6,"#222222"],[150,85,6,"#232323"],[5,90,6,"#1b1b1b",.4],[10,90,6,"#1d1d1d"],[10,95,6,"#1c1c1c"],[30,95,6,"#1c1c1c",.9914],[155,95,6,"#1f1f1f"],[105,100,6,"#1b1b1b",.5139],[155,105,6,"#1b1b1b",.9544],[85,115,6,"#1b1b1b"],[85,135,6,"#1b1b1b"],[90,135,6,"#1b1b1b"],[30,150,6,"#1a1a1a",.0362],[90,155,6,"#1e1e1e"],[150,155,6,"#1a1a1a"],[155,155,6,"#1a1a1a"],[55,160,6,"#1a1a1a",.7636],[55,165,6,"#1b1b1b"],[85,165,6,"#1c1c1c"],[55,170,6,"#1a1a1a",.4],[85,170,6,"#1b1b1b",.4]],Xt={
images:{origin:e=>Qt["gst"==e?"gh":e]||Qt.unknown,brand:e=>"data:image/svg+xml,"+encodeURI({tampermonkey:`<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 400 400' width='400px' height='400px'>${Ht}</svg>`,tampermonkey2:`\n<svg xmlns="http://www.w3.org/2000/svg" width="180" height="180" viewBox="0 0 180 180" shape-rendering="crispEdges">\n <symbol id="tm" viewBox="0 0 400 400">${Ht}</symbol>\n ${qt.map((e=>{const[t,n,i,r,s]=e
;return`<use href="#tm" x="${t}" y="${n}" width="${i}" height="${i}" fill="${r}" fill-opacity="${(+s||1)/5}"></use>`}))}\n</svg>`,
monkey:"\n<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 59.16 69.57' width='60px' height='70px'>\n <g transform='translate(-110.73,-61.49)'>\n <path d='m 130.15,99.28 c 2.9,-1.3 4.93,-4.22 4.94,-7.6 0,-4.61 -3.74,-8.35 -8.35,-8.35 -4.61,0 -8.35,3.74 -8.35,8.35 0,4.6 3.74,8.34 8.35,8.34 0.72,0 1.41,-0.1 2.08,-0.27 0.41,-0.18 0.85,-0.33 1.32,-0.46 z m -7.55,-6.13 c 0,-2.3 1.87,-4.17 4.18,-4.17 0.58,0 1.15,0.12 1.65,0.34 -0.11,0.31 -0.18,0.65 -0.18,1.0 0,1.53 1.19,2.79 2.7,2.91 -0.04,2.26 -1.89,4.09 -4.17,4.09 -2.3,0 -4.18,-1.87 -4.18,-4.17' style='fill:#ffffff;fill-opacity:1;fill-rule:nonzero;stroke:none;stroke-width:0.03' />\n <path d='m 146.01,83.31 c -4.61,0 -8.35,3.74 -8.35,8.35 0,3.35 1.97,6.23 4.82,7.56 0.55,0.14 1.08,0.32 1.56,0.54 0.63,0.15 1.28,0.24 1.96,0.24 4.6,0 8.34,-3.74 8.35,-8.35 0,-4.61 -3.74,-8.35 -8.35,-8.35 z m 0.04,14.01 c -2.3,0 -4.17,-1.87 -4.17,-4.17 0,-2.3 1.87,-4.17 4.17,-4.17 0.51,0 1.01,0.09 1.46,0.26 -0.13,0.33 -0.21,0.7 -0.21,1.08 0,1.61 1.3,2.92 2.92,2.92 -0.05,2.26 -1.9,4.08 -4.17,4.08' style='fill:#ffffff;fill-opacity:1;fill-rule:nonzero;stroke:none;stroke-width:0.03' />\n <path d='m 144.48,101.56 c -0.88,-0.89 -2.66,-1.31 -4.61,-1.49 0.0,-0.06 0.02,-0.13 0.02,-0.2 0,-0.14 -0.02,-0.28 -0.05,-0.41 -0.06,-0.24 -0.18,-0.46 -0.33,-0.65 -0.31,-0.37 -0.77,-0.62 -1.3,-0.62 -0.48,0 -0.92,0.2 -1.23,0.53 -0.16,0.17 -0.28,0.38 -0.36,0.61 -0.05,0.17 -0.09,0.35 -0.09,0.54 0,0.02 0.0,0.04 0.0,0.06 -0.03,0 -0.07,-7.94e-4 -0.11,-7.94e-4 -0.05,0 -0.11,0 -0.18,0 0.0,-0.02 0.0,-0.04 0.0,-0.06 0,-0.19 -0.03,-0.37 -0.09,-0.54 -0.07,-0.23 -0.2,-0.44 -0.36,-0.61 -0.31,-0.33 -0.74,-0.53 -1.23,-0.53 -0.53,0 -1.0,0.25 -1.32,0.63 -0.15,0.19 -0.26,0.41 -0.32,0.65 -0.03,0.13 -0.05,0.26 -0.05,0.4 0,0.07 0.01,0.14 0.02,0.21 -1.76,0.17 -3.61,0.58 -4.53,1.49 -0.29,0.28 -0.48,0.62 -0.55,1.02 -0.02,0.1 -0.03,0.22 -0.03,0.33 0,3.35 3.73,5.89 8.68,5.89 4.78,0 8.68,-2.64 8.68,-5.89 0,-0.11 -0.02,-0.22 -0.03,-0.33 -0.06,-0.39 -0.25,-0.73 -0.53,-1.02 z m -7.01,-1.7 c 0,-0.21 0.09,-0.4 0.24,-0.53 0.12,-0.11 0.28,-0.18 0.47,-0.18 0.2,0 0.38,0.08 0.51,0.22 0.12,0.12 0.2,0.3 0.2,0.49 0,0.04 -0.01,0.08 -0.02,0.13 -0.06,0.33 -0.34,0.58 -0.69,0.58 -0.36,0 -0.66,-0.28 -0.7,-0.64 -0.0,-0.02 -0.01,-0.05 -0.01,-0.07 z m -3.68,0 c 0,-0.19 0.07,-0.36 0.19,-0.49 0.13,-0.13 0.31,-0.22 0.52,-0.22 0.18,0 0.34,0.07 0.47,0.18 0.14,0.13 0.24,0.31 0.24,0.53 0,0.02 -0.01,0.04 -0.01,0.07 -0.03,0.35 -0.33,0.64 -0.7,0.64 -0.35,0 -0.63,-0.25 -0.69,-0.58 -0.0,-0.04 -0.02,-0.08 -0.02,-0.13 z m -0.16,6.82 c -0.93,0 -1.7,-0.76 -1.7,-1.7 h 0.49 0.49 c 0,0.39 0.32,0.72 0.72,0.72 0.39,0 0.72,-0.32 0.72,-0.72 h 0.49 0.49 c 0,0.93 -0.76,1.7 -1.7,1.7' style='fill:#ffffff;fill-opacity:1;fill-rule:nonzero;stroke:none;stroke-width:0.03' />\n <path d='m 115.82,89.87 c -1.14,-0.47 -2.52,-0.26 -3.29,0.5 -0.36,0.36 -0.7,0.99 -0.3,1.93 0.45,1.07 1.22,2.33 2.01,3.29 0.99,1.2 1.64,1.49 1.87,1.47 0.13,-0.01 0.27,-0.27 0.37,-0.67 l 0.02,0.0 c -0.44,-1.11 -0.69,-2.32 -0.69,-3.6 v -2.93' style='fill:#ffffff;fill-opacity:1;fill-rule:nonzero;stroke:none;stroke-width:0.03' />\n <path d='m 160.15,90.37 c -0.75,-0.75 -2.09,-0.96 -3.23,-0.52 v 2.95 c 0,1.29 -0.25,2.52 -0.71,3.65 0.09,0.36 0.22,0.6 0.35,0.61 0.23,0.01 0.88,-0.27 1.87,-1.47 0.78,-0.95 1.56,-2.21 2.01,-3.29 0.39,-0.94 0.05,-1.57 -0.3,-1.93' style='fill:#ffffff;fill-opacity:1;fill-rule:nonzero;stroke:none;stroke-width:0.03' />\n <path d='m 130.96,93.23 c -1.51,-0.11 -2.7,-1.37 -2.7,-2.91 0,-0.35 0.06,-0.69 0.18,-1.0 -0.5,-0.22 -1.06,-0.34 -1.65,-0.34 -2.3,0 -4.18,1.87 -4.18,4.17 0,2.3 1.87,4.17 4.18,4.17 2.28,0 4.13,-1.82 4.17,-4.09' style='fill:#282a2b;fill-opacity:1;fill-rule:nonzero;stroke:none;stroke-width:0.03' />\n <path d='m 146.05,97.32 c 2.27,0 4.12,-1.81 4.17,-4.08 -1.61,-0.0 -2.92,-1.31 -2.92,-2.92 0,-0.38 0.07,-0.75 0.21,-1.08 -0.45,-0.17 -0.95,-0.26 -1.46,-0.26 -2.3,0 -4.17,1.87 -4.17,4.17 0,2.3 1.87,4.17 4.17,4.17' style='fill:#282a2b;fill-opacity:1;fill-rule:nonzero;stroke:none;stroke-width:0.03' />\n <path d='m 146.29,102.92 c 0,-0.11 -0.0,-0.22 -0.01,-0.33 h 0.86 c 3.46,0 6.5,-1.81 8.23,-4.53 0.03,-0.05 0.07,-0.1 0.1,-0.16 0.3,0.33 0.66,0.46 0.96,0.48 0.04,0.0 0.08,0.0 0.13,0.0 0.83,0 1.79,-0.65 2.86,-1.95 0.86,-1.04 1.71,-2.43 2.21,-3.61 0.52,-1.24 0.31,-2.46 -0.58,-3.37 -1.01,-1.01 -2.65,-1.38 -4.15,-0.97 V 86.44 71.27 c 1e-5,-5.4 -4.37,-9.78 -9.78,-9.78 h -21.53 c -5.4,0 -9.78,4.37 -9.78,9.78 v 15.21 2.0 c -1.52,-0.42 -3.19,-0.07 -4.21,0.95 -0.89,0.9 -1.11,2.12 -0.58,3.37 0.5,1.18 1.34,2.56 2.21,3.61 1.07,1.29 2.03,1.95 2.86,1.95 0.04,0 0.08,-0.0 0.13,-0.0 0.31,-0.02 0.68,-0.15 1.0,-0.52 0.03,0.05 0.06,0.1 0.1,0.15 1.73,2.74 4.77,4.58 8.26,4.58 h 0.86 c -0.01,0.11 -0.01,0.22 -0.01,0.33 0,4.06 4.26,7.12 9.92,7.12 5.46,0 9.91,-3.19 9.91,-7.12 z m 13.86,-12.55 c 0.36,0.36 0.7,0.99 0.3,1.93 -0.45,1.07 -1.22,2.33 -2.01,3.29 -0.99,1.2 -1.64,1.49 -1.87,1.47 -0.12,-0.01 -0.26,-0.25 -0.35,-0.61 0.45,-1.12 0.71,-2.35 0.71,-3.65 v -2.95 c 1.13,-0.43 2.47,-0.22 3.23,0.52 z m -14.14,-7.05 c 4.61,0 8.35,3.74 8.35,8.35 -0.01,4.61 -3.75,8.35 -8.35,8.35 -0.67,0 -1.33,-0.08 -1.96,-0.24 -0.47,-0.22 -1.0,-0.4 -1.56,-0.54 -2.84,-1.33 -4.82,-4.21 -4.82,-7.56 0,-4.61 3.74,-8.35 8.35,-8.35 z m -29.52,13.09 c -0.09,0.39 -0.23,0.65 -0.37,0.67 -0.23,0.01 -0.88,-0.27 -1.87,-1.47 -0.78,-0.95 -1.56,-2.21 -2.01,-3.29 -0.39,-0.94 -0.05,-1.57 0.3,-1.93 0.76,-0.76 2.14,-0.97 3.29,-0.5 v 2.93 c 0,1.27 0.25,2.48 0.69,3.6 z m 1.9,-4.72 c 0,-4.61 3.74,-8.35 8.35,-8.35 4.61,0 8.35,3.74 8.35,8.35 -0.0,3.38 -2.03,6.3 -4.94,7.6 -0.46,0.12 -0.91,0.27 -1.32,0.46 -0.66,0.17 -1.36,0.27 -2.08,0.27 -4.61,0 -8.35,-3.74 -8.35,-8.34 z m 9.29,11.24 c 0,-0.11 0.01,-0.22 0.03,-0.33 0.07,-0.39 0.26,-0.73 0.55,-1.02 0.91,-0.9 2.76,-1.31 4.53,-1.49 -0.0,-0.06 -0.02,-0.13 -0.02,-0.21 0,-0.14 0.02,-0.27 0.05,-0.4 0.06,-0.24 0.17,-0.46 0.32,-0.65 0.31,-0.38 0.78,-0.63 1.32,-0.63 0.48,0 0.92,0.2 1.23,0.53 0.16,0.17 0.28,0.38 0.36,0.61 0.05,0.17 0.09,0.35 0.09,0.54 0,0.02 -0.0,0.04 -0.0,0.06 0.06,0 0.12,0 0.18,0 0.03,0 0.07,7.94e-4 0.11,7.94e-4 -0.0,-0.02 -0.0,-0.04 -0.0,-0.06 0,-0.19 0.03,-0.37 0.09,-0.54 0.07,-0.23 0.2,-0.44 0.36,-0.61 0.31,-0.32 0.74,-0.53 1.23,-0.53 0.52,0 0.99,0.24 1.3,0.62 0.15,0.19 0.27,0.41 0.33,0.65 0.03,0.13 0.05,0.27 0.05,0.41 0,0.07 -0.01,0.13 -0.02,0.2 1.94,0.18 3.73,0.59 4.61,1.49 0.28,0.28 0.46,0.62 0.53,1.02 0.01,0.11 0.03,0.21 0.03,0.33 0,3.24 -3.89,5.89 -8.68,5.89 -4.95,0 -8.68,-2.53 -8.68,-5.89' style='fill:#282a2b;fill-opacity:1;fill-rule:nonzero;stroke:none;stroke-width:0.03' />\n <path d='m 134.49,100.58 c 0.37,0 0.66,-0.28 0.7,-0.64 0.0,-0.02 0.01,-0.04 0.01,-0.07 0,-0.21 -0.09,-0.4 -0.24,-0.53 -0.12,-0.11 -0.29,-0.18 -0.47,-0.18 -0.2,0 -0.38,0.08 -0.52,0.22 -0.12,0.12 -0.19,0.3 -0.19,0.49 0,0.04 0.01,0.08 0.02,0.13 0.06,0.33 0.34,0.58 0.69,0.58' style='fill:#282a2b;fill-opacity:1;fill-rule:nonzero;stroke:none;stroke-width:0.03' />\n <path d='m 138.18,100.58 c 0.35,0 0.62,-0.25 0.69,-0.58 0.0,-0.04 0.02,-0.08 0.02,-0.13 0,-0.19 -0.07,-0.36 -0.2,-0.49 -0.13,-0.13 -0.31,-0.22 -0.51,-0.22 -0.18,0 -0.34,0.07 -0.47,0.18 -0.15,0.13 -0.24,0.31 -0.24,0.53 0,0.02 0.01,0.05 0.01,0.07 0.04,0.35 0.33,0.64 0.7,0.64' style='fill:#282a2b;fill-opacity:1;fill-rule:nonzero;stroke:none;stroke-width:0.03' />\n <path d='m 134.33,104.97 c -3.4e-4,0.39 -0.32,0.72 -0.72,0.72 -0.39,0 -0.72,-0.32 -0.72,-0.72 h -0.49 -0.49 c 0,0.93 0.76,1.7 1.7,1.7 0.93,0 1.7,-0.76 1.7,-1.7 h -0.49 -0.49' style='fill:#282a2b;fill-opacity:1;fill-rule:nonzero;stroke:none;stroke-width:0.03' />\n <path d='m 165.85,106.2 -0.22,-0.22 c -4.1,-4.1 -10.78,-4.1 -14.88,0 -1.78,1.78 -2.77,4.16 -2.77,6.68 0,2.52 0.98,4.9 2.77,6.68 l 0.08,0.08 c 1.66,1.66 3.85,2.5 6.04,2.5 2.19,-2.7e-4 4.37,-0.83 6.04,-2.5 2.45,-2.45 2.45,-6.44 0,-8.9 -0.57,-0.57 -1.5,-0.57 -2.08,0 -0.57,0.57 -0.57,1.5 0,2.08 1.3,1.3 1.3,3.42 0,4.73 -2.18,2.18 -5.73,2.18 -7.92,0 l -0.08,-0.08 c -1.22,-1.22 -1.9,-2.86 -1.9,-4.6 0,-1.73 0.67,-3.37 1.9,-4.6 2.95,-2.95 7.76,-2.95 10.71,0 l 0.22,0.22 c 4.23,4.23 4.23,11.13 0,15.37 -2.87,2.86 -6.68,4.45 -10.74,4.45 h -4.03 c 0.06,-0.28 0.11,-0.59 0.11,-0.94 0,-4.96 -7.31,-7.35 -7.23,-10.18 0.19,-6.94 -9.38,-7.21 -9.58,-0.27 -0.19,6.97 -1.11,14.35 6.29,14.35 0.64,0 1.26,-0.0 1.86,-0.0 0.03,0.0 0.07,0.01 0.11,0.01 h 12.46 c 4.84,0 9.4,-1.88 12.82,-5.31 5.38,-5.38 5.38,-14.15 0,-19.54' style='fill:#282a2b;fill-opacity:1;fill-rule:nonzero;stroke:none;stroke-width:0.03' />\n </g>\n</svg>",
webdav:"<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 640 512' width='640px' height='512px'><path d='M537.585 226.56C541.725 215.836 544 204.184 544 192c0-53.019-42.981-96-96-96-19.729 0-38.065 5.954-53.316 16.159C367.042 64.248 315.288 32 256 32c-88.366 0-160 71.634-160 160 0 2.728.07 5.439.204 8.133C40.171 219.845 0 273.227 0 336c0 79.529 64.471 144 144 144h368c70.692 0 128-57.308 128-128 0-61.93-43.983-113.586-102.415-125.44z'/></svg>",
yandex:"<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 256 512' width='256px' height='512px'><path d='M153.1 315.8L65.7 512H2l96-209.8c-45.1-22.9-75.2-64.4-75.2-141.1C22.7 53.7 90.8 0 171.7 0H254v512h-55.1V315.8h-45.8zm45.8-269.3h-29.4c-44.4 0-87.4 29.4-87.4 114.6 0 82.3 39.4 108.8 87.4 108.8h29.4V46.5z'/></svg>",
firefox:"<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 496 512' width='496px' height='512px'><path d='M496 262.5C497.6 380.8 388.9 504 248 504c-106.7 0-190.9-62.5-229.8-151.7-43-97.7-5.7-251.6 70.3-320.3l-2.7 69.7c3.9-5 32.5-6.4 37.1 0C139 71 190.7 48 232.1 47.2c-15.8 13.3-52.2 61.6-49.2 86.2 20.2 6.4 51.1 6.6 67.4 7.7 5 2.8 4.1 19.6-5.8 33.4 0 0-13 18-48.1 24.3l2.7 41.1-37-7.4c-12.4 31.5 17.4 59.4 48.4 54.2 34.3-5.8 45.9-32 70-30.6 23.8 1.4 33.2 14.6 30.1 27.1 0 0-3.9 14.9-29.6 12.4-21.8 34.5-50.4 53.5-97.3 49.4 71.3 59.1 168.3 5.5 192.6-42.8 24.3-48.1 8-122.1-16.3-142.3 28.7 12.4 43.7 27.6 54.2 55.5 5.5-61.9-22.9-132.1-73.8-173.3C436 70.1 494.3 144.2 496 262.5z'/></svg>",
chrome:"<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 496 512' width='496px' height='512px'><path d='M131.5 217.5L55.1 100.1c47.6-59.2 119-91.8 192-92.1 42.3-.3 85.5 10.5 124.8 33.2 43.4 25.2 76.4 61.4 97.4 103L264 133.4c-58.1-3.4-113.4 29.3-132.5 84.1zm32.9 38.5c0 46.2 37.4 83.6 83.6 83.6s83.6-37.4 83.6-83.6-37.4-83.6-83.6-83.6-83.6 37.3-83.6 83.6zm314.9-89.2L339.6 174c37.9 44.3 38.5 108.2 6.6 157.2L234.1 503.6c46.5 2.5 94.4-7.7 137.8-32.9 107.4-62 150.9-192 107.4-303.9zM133.7 303.6L40.4 120.1C14.9 159.1 0 205.9 0 256c0 124 90.8 226.7 209.5 244.9l63.7-124.8c-57.6 10.8-113.2-20.8-139.5-72.5z'/></svg>",
onedrive:"<svg xmlns='http://www.w3.org/2000/svg' id='Layer_1' data-name='Layer 1' viewBox='0 0 24 24' width='24px' height='24px'><title>Artboard 1</title><g id='Templates'><path d='M17,10.57a3,3,0,0,1,1.18.23,3.11,3.11,0,0,1,1,.64,2.82,2.82,0,0,1,.65,1,3,3,0,0,1-1.6,3.95,3.08,3.08,0,0,1-1.16.23H8a4,4,0,0,1-1.56-.31,4,4,0,0,1,0-7.38A4,4,0,0,1,8,8.57a3.54,3.54,0,0,1,.73.07,4.63,4.63,0,0,1,.72-.87,4.72,4.72,0,0,1,.89-.65,4.58,4.58,0,0,1,1-.41,4.79,4.79,0,0,1,1.13-.14,4.37,4.37,0,0,1,1.64.3,4.55,4.55,0,0,1,1.36.84,4.39,4.39,0,0,1,1,1.27A4.66,4.66,0,0,1,17,10.57Z'/></g></svg>",
gdrive:"<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 512 512' width='512px' height='512px'><path d='M339 314.9L175.4 32h161.2l163.6 282.9H339zm-137.5 23.6L120.9 480h310.5L512 338.5H201.5zM154.1 67.4L0 338.5 80.6 480 237 208.8 154.1 67.4z'/></svg>",
dropbox:"<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 512 512' width='512px' height='512px'><path d='M256 87.2l-151.9 93.9L0 97.5 150.6 0 256 87.2zM0 265.3l150.6 98.3 105.4-88L104.1 181 0 265.3zm256 10.3l105.4 88L512 265.3l-104.1-84.2L256 275.6zM512 97.5L361.4 0 256 87.2l151.9 93.9L512 97.5zM256.3 294.6l-105.7 87.7-45.2-29.5V385l150.9 90.5L407.2 385v-32.2L362 382.3l-105.7-87.7z'/></svg>",
instagram:"<svg version='1.1' id='Layer_1' xmlns='http://www.w3.org/2000/svg' xmlns:xlink='http://www.w3.org/1999/xlink' x='0px' y='0px' viewBox='5 4 44 44' width='44px' height='44px' style='enable-background:new 5 4 44 44;' xml:space='preserve'><style type='text/css'>.st0{fill:none;}</style><g><rect x='-0.2' y='0.1' class='st0' width='53.8' height='53.4'/><path d='M48.1,26.3c0,4.3,0,7.2-0.1,8.8c-0.2,3.9-1.3,6.9-3.5,9s-5.1,3.3-9,3.5c-1.6,0.1-4.6,0.1-8.8,0.1c-4.3,0-7.2,0-8.8-0.1 c-3.9-0.2-6.9-1.3-9-3.5c-2.1-2.1-3.3-5.1-3.5-9c-0.1-1.6-0.1-4.6-0.1-8.8s0-7.2,0.1-8.8c0.2-3.9,1.3-6.9,3.5-9 c2.1-2.1,5.1-3.3,9-3.5c1.6-0.1,4.6-0.1,8.8-0.1c4.3,0,7.2,0,8.8,0.1c3.9,0.2,6.9,1.3,9,3.5s3.3,5.1,3.5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4,18.5c2.1,2.1,3.2,4.7,3.2,7.8s-1.1,5.6-3.2,7.8c-2.1,2.1-4.7,3.2-7.8,3.2c-3.1,0-5.6-1.1-7.8-3.2c-2.1-2.1-3.2-4.7-3.2-7.8 s1.1-5.6,3.2-7.8c2.1-2.1,4.7-3.2,7.8-3.2C29.7,15.3,32.3,16.3,34.4,18.5z M31.7,31.3c1.4-1.4,2.1-3.1,2.1-5s-0.7-3.7-2.1-5.1 c-1.4-1.4-3.1-2.1-5.1-2.1c-2,0-3.7,0.7-5.1,2.1s-2.1,3.1-2.1,5.1s0.7,3.7,2.1,5c1.4,1.4,3.1,2.1,5.1,2.1 C28.6,33.4,30.3,32.7,31.7,31.3z M39.9,13c0.5,0.5,0.8,1.1,0.8,1.8c0,0.7-0.3,1.3-0.8,1.8c-0.5,0.5-1.1,0.8-1.8,0.8 s-1.3-0.3-1.8-0.8c-0.5-0.5-0.8-1.1-0.8-1.8c0-0.7,0.3-1.3,0.8-1.8c0.5-0.5,1.1-0.8,1.8-0.8S39.4,12.5,39.9,13z'/></g></svg>",
facebook:"<svg version='1.1' id='Layer_1' xmlns='http://www.w3.org/2000/svg' xmlns:xlink='http://www.w3.org/1999/xlink' x='0px' y='0px' viewBox='0 0 30 30' width='30px' height='30px' style='enable-background:new 0 0 30 30;' xml:space='preserve'><style type='text/css'>.f{}.c{fill:none;}</style><g><circle class='c' cx='15' cy='15' r='13' stroke='black' stroke-width='3'/><path class='f' d='M16.4,23.9v-8.1h2.7l0.4-3.2h-3.1v-2c0-0.9,0.3-1.5,1.6-1.5l1.7,0V6.2c-0.3,0-1.3-0.1-2.4-0.1c-2.4,0-4.1,1.5-4.1,4.2v2.3h-2.7v3.2h2.7v8.1H16.4z'/></g></svg>",
edge:'\n<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 256 256" width="256px" height="256px">\n <defs>\n <radialGradient id="b" cx="161.8" cy="68.9" r="95.4" gradientTransform="matrix(1 0 0 -.95 0 248.8)" gradientUnits="userSpaceOnUse">\n <stop offset=".7" stop-opacity="0"/>\n <stop offset=".9" stop-opacity=".5"/>\n <stop offset="1"/>\n </radialGradient>\n <radialGradient id="d" cx="-340.3" cy="63" r="143.2" gradientTransform="matrix(.15 -.99 -.8 -.12 176.6 -125.4)" gradientUnits="userSpaceOnUse">\n <stop offset=".8" stop-opacity="0"/>\n <stop offset=".9" stop-opacity=".5"/>\n <stop offset="1"/>\n </radialGradient>\n <radialGradient id="e" cx="113.4" cy="570.2" r="202.4" gradientTransform="matrix(-.04 1 2.13 .08 -1179.5 -106.7)" gradientUnits="userSpaceOnUse">\n <stop offset="0" stop-color="#35c1f1"/>\n <stop offset=".1" stop-color="#34c1ed"/>\n <stop offset=".2" stop-color="#2fc2df"/>\n <stop offset=".3" stop-color="#2bc3d2"/>\n <stop offset=".7" stop-color="#36c752"/>\n </radialGradient>\n <radialGradient id="f" cx="376.5" cy="568" r="97.3" gradientTransform="matrix(.28 .96 .78 -.23 -303.8 -148.5)" gradientUnits="userSpaceOnUse">\n <stop offset="0" stop-color="#66eb6e"/>\n <stop offset="1" stop-color="#66eb6e" stop-opacity="0"/>\n </radialGradient>\n <linearGradient id="a" x1="63.3" y1="84" x2="241.7" y2="84" gradientTransform="matrix(1 0 0 -1 0 266)" gradientUnits="userSpaceOnUse">\n <stop offset="0" stop-color="#0c59a4"/>\n <stop offset="1" stop-color="#114a8b"/>\n </linearGradient>\n <linearGradient id="c" x1="157.3" y1="161.4" x2="46" y2="40.1" gradientTransform="matrix(1 0 0 -1 0 266)" gradientUnits="userSpaceOnUse">\n <stop offset="0" stop-color="#1b9de2"/>\n <stop offset=".2" stop-color="#1595df"/>\n <stop offset=".7" stop-color="#0680d7"/>\n <stop offset="1" stop-color="#0078d4"/>\n </linearGradient>\n </defs>\n <path d="M235.7 195.5a93.7 93.7 0 0 1-10.6 4.7 101.9 101.9 0 0 1-35.9 6.4c-47.3 0-88.5-32.5-88.5-74.3a31.5 31.5 0 0 1 16.4-27.3c-42.8 1.8-53.8 46.4-53.8 72.5 0 74 68.1 81.4 82.8 81.4 7.9 0 19.8-2.3 27-4.6l1.3-.4a128.3 128.3 0 0 0 66.6-52.8 4 4 0 0 0-5.3-5.6Z" transform="translate(-4.6 -5)" style="fill:url(#a)"/>\n <path d="M235.7 195.5a93.7 93.7 0 0 1-10.6 4.7 101.9 101.9 0 0 1-35.9 6.4c-47.3 0-88.5-32.5-88.5-74.3a31.5 31.5 0 0 1 16.4-27.3c-42.8 1.8-53.8 46.4-53.8 72.5 0 74 68.1 81.4 82.8 81.4 7.9 0 19.8-2.3 27-4.6l1.3-.4a128.3 128.3 0 0 0 66.6-52.8 4 4 0 0 0-5.3-5.6Z" transform="translate(-4.6 -5)" style="isolation:isolate;opacity:.35;fill:url(#b)"/>\n <path d="M110.3 246.3A79.2 79.2 0 0 1 87.6 225a80.7 80.7 0 0 1 29.5-120c3.2-1.5 8.5-4.1 15.6-4a32.4 32.4 0 0 1 25.7 13 31.9 31.9 0 0 1 6.3 18.7c0-.2 24.5-79.6-80-79.6-43.9 0-80 41.6-80 78.2a130.2 130.2 0 0 0 12.1 56 128 128 0 0 0 156.4 67 75.5 75.5 0 0 1-62.8-8Z" transform="translate(-4.6 -5)" style="fill:url(#c)"/>\n <path d="M110.3 246.3A79.2 79.2 0 0 1 87.6 225a80.7 80.7 0 0 1 29.5-120c3.2-1.5 8.5-4.1 15.6-4a32.4 32.4 0 0 1 25.7 13 31.9 31.9 0 0 1 6.3 18.7c0-.2 24.5-79.6-80-79.6-43.9 0-80 41.6-80 78.2a130.2 130.2 0 0 0 12.1 56 128 128 0 0 0 156.4 67 75.5 75.5 0 0 1-62.8-8Z" transform="translate(-4.6 -5)" style="opacity:.41;fill:url(#d);isolation:isolate"/>\n <path d="M157 153.8c-.9 1-3.4 2.5-3.4 5.6 0 2.6 1.7 5.2 4.8 7.3 14.3 10 41.4 8.6 41.5 8.6a59.6 59.6 0 0 0 30.3-8.3 61.4 61.4 0 0 0 30.4-52.9c.3-22.4-8-37.3-11.3-43.9C228 28.8 182.3 5 132.6 5a128 128 0 0 0-128 126.2c.5-36.5 36.8-66 80-66 3.5 0 23.5.3 42 10a72.6 72.6 0 0 1 30.9 29.3c6.1 10.6 7.2 24.1 7.2 29.5s-2.7 13.3-7.8 19.9Z" transform="translate(-4.6 -5)" style="fill:url(#e)"/>\n <path d="M157 153.8c-.9 1-3.4 2.5-3.4 5.6 0 2.6 1.7 5.2 4.8 7.3 14.3 10 41.4 8.6 41.5 8.6a59.6 59.6 0 0 0 30.3-8.3 61.4 61.4 0 0 0 30.4-52.9c.3-22.4-8-37.3-11.3-43.9C228 28.8 182.3 5 132.6 5a128 128 0 0 0-128 126.2c.5-36.5 36.8-66 80-66 3.5 0 23.5.3 42 10a72.6 72.6 0 0 1 30.9 29.3c6.1 10.6 7.2 24.1 7.2 29.5s-2.7 13.3-7.8 19.9Z" transform="translate(-4.6 -5)" style="fill:url(#f)"/>\n</svg>',
android:'\n<svg xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" viewBox="-147 -70 294 345" width="468px" height="415px">\n <g fill="#a4c639">\n <use stroke-width="14.4" xlink:href="#b" stroke="#FFF"/>\n <use xlink:href="#a" transform="scale(-1,1)"/>\n <g id="a" stroke="#FFF" stroke-width="7.2">\n <rect rx="6.5" transform="rotate(29)" height="86" width="13" y="-86" x="14"/>\n <rect id="c" rx="24" height="133" width="48" y="41" x="-143"/>\n <use y="97" x="85" xlink:href="#c"/>\n </g>\n <g id="b">\n <ellipse cy="41" rx="91" ry="84"/>\n <rect rx="22" height="182" width="182" y="20" x="-91"/>\n </g>\n </g>\n <g stroke="#FFF" stroke-width="7.2" fill="#FFF">\n <path d="m-95 44.5h190"/><circle cx="-42" r="4"/><circle cx="42" r="4"/>\n </g>\n</svg>',
safari:'\n<svg class="svg-inline--fa fa-safari fa-w-16 min-w1 w-auto" aria-hidden="true" data-fa-processed="" data-prefix="fab" data-icon="safari" role="img" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 512 512" width="512px" height="512px">\n <path fill="currentColor" d="M236.9 256.8c0-9.1 6.6-17.7 16.3-17.7 8.9 0 17.4 6.4 17.4 16.1 0 9.1-6.4 17.7-16.1 17.7-9 0-17.6-6.7-17.6-16.1zM504 256c0 137-111 248-248 248S8 393 8 256 119 8 256 8s248 111 248 248zm-26.6 0c0-122.3-99.1-221.4-221.4-221.4S34.6 133.7 34.6 256 133.7 477.4 256 477.4 477.4 378.3 477.4 256zm-72.5 96.6c0 3.6 13 10.2 16.3 12.2-27.4 41.5-69.8 71.4-117.9 83.3l-4.4-18.5c-.3-2.5-1.9-2.8-4.2-2.8-1.9 0-3 2.8-2.8 4.2l4.4 18.8c-13.3 2.8-26.8 4.2-40.4 4.2-36.3 0-72-10.2-103-29.1 1.7-2.8 12.2-18 12.2-20.2 0-1.9-1.7-3.6-3.6-3.6-3.9 0-12.2 16.6-14.7 19.9-41.8-27.7-72-70.6-83.6-119.6l19.1-4.2c2.2-.6 2.8-2.2 2.8-4.2 0-1.9-2.8-3-4.4-2.8L62 294.5c-2.5-12.7-3.9-25.5-3.9-38.5 0-37.1 10.5-73.6 30.2-104.9 2.8 1.7 16.1 10.8 18.3 10.8 1.9 0 3.6-1.4 3.6-3.3 0-3.9-14.7-11.3-18-13.6 28.2-41.2 71.1-70.9 119.8-81.9l4.2 18.5c.6 2.2 2.2 2.8 4.2 2.8s3-2.8 2.8-4.4L219 61.7c12.2-2.2 24.6-3.6 37.1-3.6 37.1 0 73.3 10.5 104.9 30.2-1.9 2.8-10.8 15.8-10.8 18 0 1.9 1.4 3.6 3.3 3.6 3.9 0 11.3-14.4 13.3-17.7 41 27.7 70.3 70 81.7 118.2l-15.5 3.3c-2.5.6-2.8 2.2-2.8 4.4 0 1.9 2.8 3 4.2 2.8l15.8-3.6c2.5 12.7 3.9 25.7 3.9 38.7 0 36.3-10 72-28.8 102.7-2.8-1.4-14.4-9.7-16.6-9.7-2.1 0-3.8 1.7-3.8 3.6zm-33.2-242.2c-13 12.2-134.2 123.7-137.6 129.5l-96.6 160.5c12.7-11.9 134.2-124 137.3-129.3l96.9-160.7z">\n </path>\n</svg>',
apple:'\n<svg class="svg-inline--fa fa-apple fa-w-14 min-w1 w-auto" aria-hidden="true" data-fa-processed="" data-prefix="fab" data-icon="apple" role="img" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 448 512" width="448px" height="512px">\n <path fill="currentColor" d="M247.2 137.6c-6.2 1.9-15.3 3.5-27.9 4.6 1.1-56.7 29.9-96.6 88-110.1 9.3 41.6-26.1 94.1-60.1 105.5zm121.3 72.7c6.4-9.4 16.6-19.9 30.6-31.7-22.3-27.6-48.1-44.3-85.1-44.3-35.4 0-65.2 18.2-87 18.2-18.5 0-51.9-16.1-84.5-16.1-69.6 0-106.5 68.1-106.5 139C36 354.2 95.7 480 156.2 480c23.8 0 45.2-18 73.5-18 29.3 0 52.8 17.2 80.3 17.2 46 0 88.6-77.5 102-119.7-46.8-14.3-84.4-90.2-43.5-149.2z">\n </path>\n</svg>\n'
}[e]).replace(/#|%20|%0A/g,(e=>"#"==e?"%23":" ")),empty:"data:image/gif;base64,R0lGODlhAQABAAAAACH5BAEKAAEALAAAAAABAAEAAAICTAEAOw=="},getLayouts:()=>Nt.map((e=>{const{name:t,theme:n,layout:i}=e;return{name:t,value:n?[i,n].join("#"):i}})),getLayoutByValue:e=>{let t;return Nt.some((n=>{if(n.value===e)return t=n,!0})),t},getEditorThemes:()=>Object.keys(Vt).map((e=>({name:Vt[e]||e,value:e})))},Wt=(()=>{const e=M;let t,n;return{cache:function(){const t=document.documentElement,n=location.pathname
;if(e&&t&&n)try{const i=JSON.parse(e.getItem("background")||"{}");i[n]={class:t.getAttribute("class")},e.setItem("background",JSON.stringify(i))}catch(e){}},reset:function(){n=!0;const e=document.documentElement;"string"==typeof t&&e&&e.setAttribute("class",t)},restore:function(){if(n)return;const i=location.pathname;if(e&&i)try{let n;const r=e.getItem("background");if(r&&(n=JSON.parse(r))&&(n=n[i])&&n.class){const e=document.documentElement;if(!e)return;t=e.getAttribute("class")||"",
t.split(" ").includes(n.class)||e.setAttribute("class",t+" "+n.class)}}catch(e){}}}})(),{getLayoutByValue:Yt}=Xt;let Jt;const Kt=e=>{const t=()=>{e(),Wt.restore()};en?document.body?t():window.addEventListener("DOMContentLoaded",t):($t=$t||[]).push((()=>{Kt(e)})),Jt&&(window.clearTimeout(Jt),Jt=void 0)};let $t,en=!1;const tn=e=>{en=!0,$t&&($t.forEach((e=>{e()})),$t=void 0),Pt((t=>{if(t&&t.pong){let e,n=t.config.layout
;window.matchMedia("(prefers-color-scheme: dark)").matches&&!n.includes("#")&&(n+="#dark");const i=Yt(n);if(!i)return void te.warn(`Unknown layout ${n}`);const{theme:r,footer:s}=i;r&&"light"!==r?(s&&window.setTimeout((()=>{const e=document.querySelectorAll(".footer")[0];e&&(e.innerHTML=s)}),0),e=r):e="default";const o="chromium",a="page_"+location.pathname.substr(1).split(".")[0].replace(/[^a-z0-9]/gi,"_");Wt.reset(),document.documentElement.classList.add(ye()?"mobile":"desktop",e,o,a),
window.setTimeout(Wt.cache,500)}e.suc&&e.suc()}),e.fail)
},nn="aaa\naarp\nabb\nabbott\nabogado\nac\nacademy\naccenture\naccountant\naccountants\naco\nactive\nactor\nad\nadac\nads\nadult\nae\naeg\naero\naf\nafl\nag\nagency\nai\naig\nairforce\nairtel\nal\nalibaba\nalipay\nallfinanz\nalsace\nam\namica\namsterdam\nan\nanalytics\nandroid\nao\napartments\napp\napple\naq\naquarelle\nar\naramco\narchi\narmy\narpa\narte\nas\nasia\nassociates\nat\nattorney\nau\nauction\naudi\naudio\nauthor\nauto\nautos\naw\nax\naxa\naz\nazure\nba\nbaidu\nband\nbank\nbar\nbarcelona\nbarclaycard\nbarclays\nbargains\nbauhaus\nbayern\nbb\nbbc\nbbva\nbcn\nbd\nbe\nbeats\nbeer\nbentley\nberlin\nbest\nbet\nbf\nbg\nbh\nbharti\nbi\nbible\nbid\nbike\nbing\nbingo\nbio\nbiz\nbj\nbl\nblack\nblackfriday\nbloomberg\nblue\nbm\nbms\nbmw\nbn\nbnl\nbnpparibas\nbo\nboats\nboehringer\nbom\nbond\nboo\nbook\nboots\nbosch\nbostik\nbot\nboutique\nbq\nbr\nbradesco\nbridgestone\nbroadway\nbroker\nbrother\nbrussels\nbs\nbt\nbudapest\nbugatti\nbuild\nbuilders\nbusiness\nbuy\nbuzz\nbv\nbw\nby\nbz\nbzh\nca\ncab\ncafe\ncal\ncall\ncamera\ncamp\ncancerresearch\ncanon\ncapetown\ncapital\ncar\ncaravan\ncards\ncare\ncareer\ncareers\ncars\ncartier\ncasa\ncash\ncasino\ncat\ncatering\ncba\ncbn\ncc\ncd\nceb\ncenter\nceo\ncern\ncf\ncfa\ncfd\ncg\nch\nchanel\nchannel\nchat\ncheap\nchloe\nchristmas\nchrome\nchurch\nci\ncipriani\ncircle\ncisco\ncitic\ncity\ncityeats\nck\ncl\nclaims\ncleaning\nclick\nclinic\nclinique\nclothing\ncloud\nclub\nclubmed\ncm\ncn\nco\ncoach\ncodes\ncoffee\ncollege\ncologne\ncom\ncommbank\ncommunity\ncompany\ncompare\ncomputer\ncomsec\ncondos\nconstruction\nconsulting\ncontact\ncontractors\ncooking\ncool\ncoop\ncorsica\ncountry\ncoupons\ncourses\ncr\ncredit\ncreditcard\ncreditunion\ncricket\ncrown\ncrs\ncruises\ncsc\ncu\ncuisinella\ncv\ncw\ncx\ncy\ncymru\ncyou\ncz\ndabur\ndad\ndance\ndate\ndating\ndatsun\nday\ndclk\nde\ndealer\ndeals\ndegree\ndelivery\ndell\ndeloitte\ndelta\ndemocrat\ndental\ndentist\ndesi\ndesign\ndev\ndiamonds\ndiet\ndigital\ndirect\ndirectory\ndiscount\ndj\ndk\ndm\ndnp\ndo\ndocs\ndog\ndoha\ndomains\ndoosan\ndownload\ndrive\ndubai\ndurban\ndvag\ndz\nearth\neat\nec\nedeka\nedu\neducation\nee\neg\neh\nemail\nemerck\nenergy\nengineer\nengineering\nenterprises\nepson\nequipment\ner\nerni\nes\nesq\nestate\net\neu\neurovision\neus\nevents\neverbank\nexchange\nexpert\nexposed\nexpress\nfage\nfail\nfairwinds\nfaith\nfamily\nfan\nfans\nfarm\nfashion\nfast\nfeedback\nferrero\nfi\nfilm\nfinal\nfinance\nfinancial\nfirestone\nfirmdale\nfish\nfishing\nfit\nfitness\nfj\nfk\nflickr\nflights\nflorist\nflowers\nflsmidth\nfly\nfm\nfo\nfoo\nfootball\nford\nforex\nforsale\nforum\nfoundation\nfox\nfr\nfresenius\nfrl\nfrogans\nfrontier\nfund\nfurniture\nfutbol\nfyi\nga\ngal\ngallery\ngallup\ngame\ngarden\ngb\ngbiz\ngd\ngdn\nge\ngea\ngent\ngenting\ngf\ngg\nggee\ngh\ngi\ngift\ngifts\ngives\ngiving\ngl\nglass\ngle\nglobal\nglobo\ngm\ngmail\ngmo\ngmx\ngn\ngold\ngoldpoint\ngolf\ngoo\ngoog\ngoogle\ngop\ngot\ngov\ngp\ngq\ngr\ngrainger\ngraphics\ngratis\ngreen\ngripe\ngroup\ngs\ngt\ngu\ngucci\nguge\nguide\nguitars\nguru\ngw\ngy\nhamburg\nhangout\nhaus\nhdfcbank\nhealth\nhealthcare\nhelp\nhelsinki\nhere\nhermes\nhiphop\nhitachi\nhiv\nhk\nhm\nhn\nhockey\nholdings\nholiday\nhomedepot\nhomes\nhonda\nhorse\nhost\nhosting\nhoteles\nhotmail\nhouse\nhow\nhr\nhsbc\nht\nhu\nhyundai\nibm\nicbc\nice\nicu\nid\nie\nifm\niinet\nil\nim\nimmo\nimmobilien\nin\nindustries\ninfiniti\ninfo\ning\nink\ninstitute\ninsurance\ninsure\nint\ninternational\ninvestments\nio\nipiranga\niq\nir\nirish\nis\niselect\nist\nistanbul\nit\nitau\niwc\njaguar\njava\njcb\nje\njetzt\njewelry\njlc\njll\njm\njmp\njo\njobs\njoburg\njot\njoy\njp\njprs\njuegos\nkaufen\nkddi\nke\nkfh\nkg\nkh\nki\nkia\nkim\nkinder\nkitchen\nkiwi\nkm\nkn\nkoeln\nkomatsu\nkp\nkpn\nkr\nkrd\nkred\nkw\nky\nkyoto\nkz\nla\nlacaixa\nlamborghini\nlamer\nlancaster\nland\nlandrover\nlanxess\nlasalle\nlat\nlatrobe\nlaw\nlawyer\nlb\nlc\nlds\nlease\nleclerc\nlegal\nlexus\nlgbt\nli\nliaison\nlidl\nlife\nlifeinsurance\nlifestyle\nlighting\nlike\nlimited\nlimo\nlincoln\nlinde\nlink\nlive\nliving\nlixil\nlk\nloan\nloans\nlol\nlondon\nlotte\nlotto\nlove\nlr\nls\nlt\nltd\nltda\nlu\nlupin\nluxe\nluxury\nlv\nly\nma\nmadrid\nmaif\nmaison\nmakeup\nman\nmanagement\nmango\nmarket\nmarketing\nmarkets\nmarriott\nmba\nmc\nmd\nme\nmed\nmedia\nmeet\nmelbourne\nmeme\nmemorial\nmen\nmenu\nmeo\nmf\nmg\nmh\nmiami\nmicrosoft\nmil\nmini\nmk\nml\nmm\nmma\nmn\nmo\nmobi\nmobily\nmoda\nmoe\nmoi\nmom\nmonash\nmoney\nmontblanc\nmormon\nmortgage\nmoscow\nmotorcycles\nmov\nmovie\nmovistar\nmp\nmq\nmr\nms\nmt\nmtn\nmtpc\nmtr\nmu\nmuseum\nmutuelle\nmv\nmw\nmx\nmy\nmz\nna\nnadex\nnagoya\nname\nnatura\nnavy\nnc\nne\nnec\nnet\nnetbank\nnetwork\nneustar\nnew\nnews\nnexus\nnf\nng\nngo\nnhk\nni\nnico\nnikon\nninja\nnissan\nnl\nno\nnokia\nnorton\nnowruz\nnp\nnr\nnra\nnrw\nntt\nnu\nnyc\nnz\nobi\noffice\nokinawa\nom\nomega\none\nong\nonl\nonline\nooo\noracle\norange\norg\norganic\norigins\nosaka\notsuka\novh\npa\npage\npamperedchef\npanerai\nparis\npars\npartners\nparts\nparty\npe\npet\npf\npg\nph\npharmacy\nphilips\nphoto\nphotography\nphotos\nphysio\npiaget\npics\npictet\npictures\npid\npin\nping\npink\npizza\npk\npl\nplace\nplay\nplaystation\nplumbing\nplus\npm\npn\npohl\npoker\nporn\npost\npr\npraxi\npress\npro\nprod\nproductions\nprof\npromo\nproperties\nproperty\nprotection\nps\npt\npub\npw\npwc\npy\nqa\nqpon\nquebec\nquest\nracing\nre\nread\nrealtor\nrealty\nrecipes\nred\nredstone\nredumbrella\nrehab\nreise\nreisen\nreit\nren\nrent\nrentals\nrepair\nreport\nrepublican\nrest\nrestaurant\nreview\nreviews\nrexroth\nrich\nricoh\nrio\nrip\nro\nrocher\nrocks\nrodeo\nroom\nrs\nrsvp\nru\nruhr\nrun\nrw\nrwe\nryukyu\nsa\nsaarland\nsafe\nsafety\nsakura\nsale\nsalon\nsamsung\nsandvik\nsandvikcoromant\nsanofi\nsap\nsapo\nsarl\nsas\nsaxo\nsb\nsbs\nsc\nsca\nscb\nschaeffler\nschmidt\nscholarships\nschool\nschule\nschwarz\nscience\nscor\nscot\nsd\nse\nseat\nsecurity\nseek\nselect\nsener\nservices\nseven\nsew\nsex\nsexy\nsfr\nsg\nsh\nsharp\nshell\nshia\nshiksha\nshoes\nshow\nshriram\nsi\nsingles\nsite\nsj\nsk\nski\nskin\nsky\nskype\nsl\nsm\nsmile\nsn\nsncf\nso\nsoccer\nsocial\nsoftbank\nsoftware\nsohu\nsolar\nsolutions\nsony\nsoy\nspace\nspiegel\nspreadbetting\nsr\nsrl\nss\nst\nstada\nstar\nstarhub\nstatefarm\nstatoil\nstc\nstcgroup\nstockholm\nstorage\nstudio\nstudy\nstyle\nsu\nsucks\nsupplies\nsupply\nsupport\nsurf\nsurgery\nsuzuki\nsv\nswatch\nswiss\nsx\nsy\nsydney\nsymantec\nsystems\nsz\ntab\ntaipei\ntaobao\ntatamotors\ntatar\ntattoo\ntax\ntaxi\ntc\ntci\ntd\nteam\ntech\ntechnology\ntel\ntelefonica\ntemasek\ntennis\ntf\ntg\nth\nthd\ntheater\ntheatre\ntickets\ntienda\ntiffany\ntips\ntires\ntirol\ntj\ntk\ntl\ntm\ntmall\ntn\nto\ntoday\ntokyo\ntools\ntop\ntoray\ntoshiba\ntours\ntown\ntoyota\ntoys\ntp\ntr\ntrade\ntrading\ntraining\ntravel\ntravelers\ntravelersinsurance\ntrust\ntrv\ntt\ntube\ntui\ntushu\ntv\ntvs\ntw\ntz\nua\nubs\nug\nuk\num\nunicom\nuniversity\nuno\nuol\nus\nuy\nuz\nva\nvacations\nvana\nvc\nve\nvegas\nventures\nverisign\nversicherung\nvet\nvg\nvi\nviajes\nvideo\nvillas\nvin\nvip\nvirgin\nvision\nvista\nvistaprint\nviva\nvlaanderen\nvn\nvodka\nvolkswagen\nvote\nvoting\nvoto\nvoyage\nvu\nwales\nwalter\nwang\nwanggou\nwatch\nwatches\nweather\nweatherchannel\nwebcam\nweber\nwebsite\nwed\nwedding\nweir\nwf\nwhoswho\nwien\nwiki\nwilliamhill\nwin\nwindows\nwine\nwme\nwolterskluwer\nwork\nworks\nworld\nws\nwtc\nwtf\nxbox\nxerox\nxin\n测试\nकॉम\nपरीक्षा\n佛山\n慈善\n集团\n在线\n한국\n点看\nคอม\nভারত\n八卦\n‏موقع‎\nবাংলা\n公益\n公司\n移动\n我爱你\nмосква\nиспытание\nқаз\nонлайн\nсайт\n联通\nсрб\nбел\n‏קום‎\n时尚\n테스트\n淡马锡\nорг\nनेट\n삼성\nசிங்கப்பூர்\n商标\n商店\n商城\nдети\nмкд\n‏טעסט‎\nею\nポイント\n新闻\n工行\n‏كوم‎\n中文网\n中信\n中国\n中國\n娱乐\n谷歌\nభారత్\nලංකා\n购物\n測試\nભારત\nभारत\n‏آزمایشی‎\nபரிட்சை\n网店\nसंगठन\n餐厅\n网络\nком\nукр\n香港\n诺基亚\nδοκιμή\n飞利浦\n‏إختبار‎\n台湾\n台灣\n手表\n手机\nмон\n‏الجزائر‎\n‏عمان‎\n‏ارامكو‎\n‏ایران‎\n‏امارات‎\n‏بازار‎\n‏پاکستان‎\n‏الاردن‎\n‏موبايلي‎\n‏بھارت‎\n‏المغرب‎\n‏السعودية‎\n‏سودان‎\n‏همراه‎\n‏عراق‎\n‏مليسيا‎\n澳門\n닷컴\n政府\n‏شبكة‎\n‏بيتك‎\nგე\n机构\n组织机构\n健康\nไทย\n‏سورية‎\nрус\nрф\n珠宝\n‏تونس‎\n大拿\nみんな\nグーグル\nελ\n世界\nਭਾਰਤ\n网址\n닷넷\nコム\n游戏\nvermögensberater\nvermögensberatung\n企业\n信息\n‏مصر‎\n‏قطر‎\n广东\nஇலங்கை\nஇந்தியா\nհայ\n新加坡\n‏فلسطين‎\nテスト\n政务\nxperia\nxxx\nxyz\nyachts\nyahoo\nyamaxun\nyandex\nye\nyodobashi\nyoga\nyokohama\nyoutube\nyt\nza\nzara\nzero\nzip\nzm\nzone\nzuerich\nzw".split("\n").join("|"),rn="ac.cn\nac.jp\nac.uk\nad.jp\nah.cn\naichi.jp\nakita.jp\naomori.jp\nasn.au\nbj.cn\nchiba.jp\nco.cc\nco.ck\nco.fk\nco.gg\nco.im\nco.in\nco.ir\nco.je\nco.jp\nco.kr\nco.ma\ncom.ac\ncom.af\ncom.ag\ncom.ai\ncom.al\ncom.ar\ncom.au\ncom.aw\ncom.az\ncom.ba\ncom.bb\ncom.bh\ncom.bi\ncom.bm\ncom.bo\ncom.br\ncom.bs\ncom.bt\ncom.by\ncom.bz\ncom.ci\ncom.cm\ncom.cn\ncom.co\ncom.cu\ncom.cw\ncom.cy\ncom.de\ncom.dm\ncom.do\ncom.dz\ncom.ec\ncom.ee\ncom.eg\ncom.es\ncom.et\ncom.fr\ncom.ge\ncom.gh\ncom.gi\ncom.gl\ncom.gn\ncom.gp\ncom.gr\ncom.gt\ncom.gu\ncom.gy\ncom.hk\ncom.hn\ncom.hr\ncom.ht\ncom.im\ncom.io\ncom.iq\ncom.is\ncom.jo\ncom.kg\ncom.ki\ncom.km\ncom.kp\ncom.ky\ncom.kz\ncom.la\ncom.lb\ncom.lc\ncom.lk\ncom.lr\ncom.lv\ncom.ly\ncom.mg\ncom.mk\ncom.ml\ncom.mo\ncom.ms\ncom.mt\ncom.mu\ncom.mv\ncom.mw\ncom.mx\ncom.my\ncom.na\ncom.nf\ncom.ng\ncom.ni\ncom.nr\ncom.om\ncom.pa\ncom.pe\ncom.pf\ncom.ph\ncom.pk\ncom.pl\ncom.pr\ncom.ps\ncom.pt\ncom.py\ncom.qa\ncom.re\ncom.ro\ncom.ru\ncom.rw\ncom.sa\ncom.sb\ncom.sc\ncom.sd\ncom.se\ncom.sg\ncom.sh\ncom.sl\ncom.sn\ncom.so\ncom.st\ncom.sv\ncom.sy\ncom.tj\ncom.tm\ncom.tn\ncom.to\ncom.tr\ncom.tt\ncom.tw\nco.mu\ncom.ua\ncom.ug\ncom.uy\ncom.uz\ncom.vc\ncom.ve\ncom.vi\ncom.vn\ncom.vu\ncom.ws\ncom.zm\nconf.au\nco.nz\nco.rw\nco.th\nco.tj\nco.tt\nco.tv\nco.tz\nco.ug\nco.uk\nco.us\nco.ve\nco.yu\nco.za\nco.zm\nco.zw\ncq.cn\ncsiro.au\nde.net\ndk.org\ned.jp\nedu.au\nedu.cn\nedu.uk\nehime.jp\neu.org\nfukui.jp\nfukuoka.jp\nfukushima.jp\ngb.net\ngd.cn\ngifu.jp\ngo.jp\ngov.au\ngov.cn\ngov.jp\ngov.uk\ngr.jp\ngs.cn\ngunma.jp\ngx.cn\ngz.cn\nhb.cn\nhe.cn\nhi.cn\nhiroshima.jp\nhk.cn\nhl.cn\nhn.cn\nhokkaido.jp\nhyogo.jp\nibaraki.jp\nid.au\ninfo.au\nishikawa.jp\niwate.jp\njl.cn\njs.cn\nkagawa.jp\nkagoshima.jp\nkanagawa.jp\nkanazawa.jp\nkawasaki.jp\nkitakyushu.jp\nkobe.jp\nkochi.jp\nkumamoto.jp\nkyoto.jp\nlg.jp\nln.cn\nltd.uk\nmatsuyama.jp\nme.uk\nmie.jp\nmiyagi.jp\nmiyazaki.jp\nmo.cn\nmod.uk\nnagano.jp\nnagasaki.jp\nnagoya.jp\nnara.jp\nne.jp\nnet.au\nnet.cn\nnet.jp\nnet.uk\nnhs.uk\nnic.uk\nniigata.jp\nnm.cn\nnx.cn\noita.jp\nokayama.jp\nokinawa.jp\norg.au\norg.cn\norg.jp\norg.uk\nor.jp\nosaka.jp\notc.au\noz.au\nplc.uk\npolice.uk\nqh.cn\nsaga.jp\nsaitama.jp\nsapporo.jp\nsc.cn\nsch.uk\nsendai.jp\nsh.cn\nshiga.jp\nshimane.jp\nshizuoka.jp\nsn.cn\nsx.cn\ntakamatsu.jp\ntelememo.au\ntj.cn\ntochigi.jp\ntokushima.jp\ntokyo.jp\ntottori.jp\ntoyama.jp\ntw.cn\nuk.net\nutsunomiya.jp\nwakayama.jp\nxj.cn\nxz.cn\nyamagata.jp\nyamaguchi.jp\nyamanashi.jp\nyn.cn\nyokohama.jp\nzj.cn".split("\n").join("|"),sn=(".("+[nn,rn].join("|")+")").replace(/\./gi,"\\."),on=Xe({
timeout:180,check_interval:120,retimeout_on_get:!0}),an=e=>e.split("").map((e=>{const t=e.toLowerCase(),n=e.toUpperCase();return t!=n?"["+t+n+"]":e})).join(""),ln="://",cn=(e,t)=>{let{scheme:n,host:i,path:r}=(e=>{let t,n,i,r;const s="/",o=e.replace(/\$$/,"").split(ln);o.length<2?(t="",n=e):(t=o[0].replace(/^\^/,""),n=o.slice(1).join(ln));const a=n.split(s);if(r=a.length<2?"/":s+a.slice(1).join(s),i=a[0],
"http*"===t||t.match(/\*|http|https|file|ftp/)||(te.warn('uri: override scheme "'+t+'" with "*"'),t="*"),"file"===t)i="";else{const e=i,t=i.match(/\*$|(\*\.)?[^/*]+/);i=(t?t[0]:"").replace(/:[0-9]*$/,""),i!==e&&te.warn('uri: override host "'+e+'" with "'+i+'"')}return r&&r.substr(0,1)===s||(te.warn('uri: prefix path "'+r+'" with "/"'),r=s+r),{scheme:t,host:i,path:r}})(e);return n="http*"===n?"https?":O(n).replace(/\*/gi,"[^:/#?]*"),i=O(i).replace(/\*\\\./gi,"(*\\.)?").replace(/\*/gi,"[^#?/]*"),
r=O(r).replace(/\*/gi,".*"),i=i.replace(new RegExp(O(".tld")+"$"),sn),t?(n=n.toLowerCase(),i=i.toLowerCase()):(n=an(n),i=an(i)),i+="(:[0-9]{1,5})?","^"+n+O(ln)+i+r+"$"},dn=["protocol","hostname","origin"],un=["port"],An=["pathname"],hn=["search","hash"];let pn;const fn={protocol:"",scheme:"",origin:"",pathname:"",hostname:"",port:void 0,search:"",hash:""},mn=(e,t,n)=>{let i=Object.assign({},fn);if(null==e);else if(["data:","view-source:"].some((t=>e.startsWith(t)))){i.origin="null"
;const t=e.indexOf(":");i.protocol=e.substr(0,t+1),i.pathname=e.substr(t+1)}else{let r,s;try{r=new URL(e)}catch(t){try{const t="http:";s=X(),r=new URL(e||"/",`${t}//${s}/${s}`)}catch(e){s=void 0}}if(r){let{protocol:o,origin:a,pathname:l,hostname:c,port:d,search:u,hash:A,username:h,password:p}=r;if(s&&(o=a="",c===s&&(c=""),l=l.replace(`/${s}`,"")),n){const t=e.indexOf("?"),n=e.indexOf("#");-1!==t&&""===u&&(-1===n||n>t)&&(u="?"),-1!==n&&""===A&&(A="#")}if(i={protocol:o,origin:a,pathname:l,
hostname:c,port:parseInt(d)||void 0,search:u,hash:A,username:h,password:p},!t&&o){if(0!==e.toLowerCase().indexOf(o))if(e.startsWith("//"))i.origin="",i.protocol="";else{if(!["/","?","#"].includes(e[0]))return mn("/"+e);pn=pn||mn("",!0),[...hn,...An].forEach((e=>{pn[e]===i[e]&&(i[e]="")})),dn.forEach((e=>{i[e]=""})),un.forEach((e=>{i[e]=void 0}))}["tampermonkey:"].includes(i.protocol)&&(i.pathname=((i.hostname?"/"+i.hostname:"")+(i.pathname||"")).replace(/^\/+/,"/"),i.hostname="")}}}
return 0===i.port&&(i.port=void 0),Object.defineProperties(i,{domain:{get:function(){const e=i.hostname.split("."),t=e.pop();let n=`${e.pop()}.${t}`;return _n(n)&&(n=`${e.pop()}.${n}`),n}},scheme:{get:function(){return i.protocol.replace(/:$/,"")}}}),i};let gn;const _n=e=>(gn=gn||new RegExp("^("+rn.replace(/\./g,"\\.")+")$"),!!e.match(gn)),bn=(e,t)=>{if(null==e)return;const n=`${e}+${!!t}`;let i=on.get(n);return i||(i=mn(e,!1,t),on.set(n,i),i)
},vn=e=>Object.entries(e).map((([e,t])=>void 0===t?null:f(e)+"="+f(t))).filter((e=>e)).join("&"),wn="mtm_visitor",yn="default",kn="pageview",Rn="script_update",xn="script",Cn="cloud",En="deploy",Gn="event",Zn="pageview",Sn="ping",Bn="https://a.tampermonkey.net/matomo.php",Tn=M;let In,Un,Ln,Fn=null;const Mn=()=>({url:Bn,siteId:4,tracker:{[yn]:{enabled:Wn(4,1)},[xn]:{enabled:!0},[Rn]:{enabled:Wn(4,10)},[Cn]:{enabled:Wn(4,5e-4)},[En]:{enabled:!0}}}),jn=()=>({url:Bn,siteId:5,tracker:{[yn]:{
enabled:Wn(5,10)},[xn]:{enabled:!0},[Rn]:{enabled:Wn(5,10)},[Cn]:{enabled:Wn(5,.001)},[En]:{enabled:!0}}}),Dn=()=>({url:Bn,siteId:6,tracker:{[yn]:{enabled:Wn(6,50)},[xn]:{enabled:!0},[Rn]:{enabled:Wn(6,10)},[Cn]:{enabled:Wn(6,.01)},[En]:{enabled:!0}}}),On=()=>({url:Bn,siteId:7,tracker:{[yn]:{enabled:!0},[xn]:{enabled:!0},[Rn]:{enabled:Wn(7,10)},[Cn]:{enabled:Wn(7,.01)},[En]:{enabled:!0}}}),zn={default:jn,gcal:jn,iikm:Mn,fcmf:Mn,saap:On,swgx:On,fire:Dn,firb:Dn,dhdg:()=>({url:Bn,siteId:3,tracker:{
[yn]:{enabled:Wn(3,1)},[xn]:{enabled:!0},[Rn]:{enabled:Wn(3,10)},[Cn]:{enabled:Wn(3,5e-4)},[En]:{enabled:!0}}}),mfdh:jn,heif:()=>({url:"http://a.userscript.grobilan:8081/matomo.php",siteId:2,tracker:{[yn]:{enabled:!0}}})};let Pn;const Nn=[{msg:"a disconnected port"},{msg:"Function.prototype.apply: Arguments list has wrong type",url:"event_bindings"},{msg:"Script error."}],Vn=e=>[...Array(e)].map((()=>Math.floor(16*Math.random()).toString(16))).join(""),Qn=e=>{if(!Tn)return
;const t=[e.uuid,e.createTs,e.visitCount,e.currentVisitTs,e.lastVisitTs].join(".");Tn.setItem(wn,t)},Hn=e=>{const t=e||yn,n=Pn.tracker[t]||Pn.tracker[yn];return n.enabled?{url:Pn.url,siteId:Pn.siteId,options:n}:null},qn=Vn(6),Xn=async(e,t,n)=>{if(!e)return;const i=(()=>{if(!Tn)return;const e=Tn.getItem(wn);if(!e)return;const t=e.split(".");if(t.length>=5){t.unshift("0");const[e,n,i,r,s,o]=t;return{createdNow:!1,newVisitor:e,uuid:n,createTs:i,visitCount:r,currentVisitTs:s,lastVisitTs:o}}
})()||(()=>{const e=Math.floor(Date.now()/1e3).toString(),t={createdNow:!0,newVisitor:"1",uuid:Vn(16),createTs:e,visitCount:"0",currentVisitTs:e,lastVisitTs:""};return Qn(t),t})();let r;const s=new Date,o={idsite:e.siteId,rec:1,action_name:B?B.title:g.href||Se.short_id,url:g.href,_id:i.uuid,rand:Vn(4),apiv:1,h:s.getHours(),m:s.getMinutes(),s:s.getSeconds(),cookie:1,pv_id:qn},a={...o,_idts:Number(i.createTs),_idvc:Number(i.visitCount),_viewts:Number(i.lastVisitTs),
res:T?`${T.width}x${T.height}`:"0x0"};if(t==Zn){const e=Un?{gt_ms:Un}:{},t={...o,...a,...e,new_visit:1};Qn((e=>{const t=Math.floor(Date.now()/1e3).toString();return e.newVisitor="0",e.visitCount=(Number(e.visitCount)+1).toString(),e.lastVisitTs=e.currentVisitTs,e.currentVisitTs=t,e})(i)),r=t}else if(t==Gn){if(!n)return;r={...o,ca:1,e_c:n.category,e_a:n.action,e_n:n.name,e_v:n.value}}else{if(t!=Sn)return;r={...o,...a,ping:1}}r=Object.assign(o,r);const l=`${e.url}?${vn(r)}`;if(B){
const e=B.createElement("img");e.src=l,e.onload=()=>{var t;null===(t=e.parentNode)||void 0===t||t.removeChild(e)},e.onerror=()=>{var t;null===(t=e.parentNode)||void 0===t||t.removeChild(e)},(B.body||B.head||B.documentElement).appendChild(e)}else try{await w(l)}catch(e){te.warn("stats:",e)}},Wn=(e,t)=>{let n=100*Math.random()<t;if(Tn)try{let i,r;const s=["wsr",e,t].join("_"),o=Date.now(),a=864e7;if(i=Tn.getItem(s)){try{r=JSON.parse(i)}catch(e){}(!r||r.ts+a<o)&&(r={ts:o,w:n})}else r={ts:o,w:n}
;n=r.w,Tn.setItem(s,JSON.stringify(r))}catch(e){}return n};let Yn=Te();const Jn=()=>null===Fn&&Yn?Yn.promise():Te.Pledge(!!Fn);let Kn;const $n=(e,t)=>{Kn=`${(null==t?void 0:t.version)||""} `;const n=Se.short_id;Pn=(zn[n]||zn[yn])(),R("error",(t=>{const{message:n,filename:i,lineno:r,colno:s,error:o}=t;((t,n,i,r,s)=>{let o="";if(s)try{o=s.stack||""}catch(e){}ii(t.toString(),Kn+e+"@"+Be.urls.prepareForReport(n||""),[i+":"+r,o].join(";"))})(n,i,r,s,o)}));const i=t=>{let n="";try{n=t.stack}catch(e){}
ii("CSP violation of "+t.effectiveDirective,Kn+e+"@"+Be.urls.prepareForReport(t.documentURI),[t.sourceFile," -> ",t.lineNumber+":"+t.columnNumber,n].join(";"))};B?B.addEventListener("securitypolicyviolation",(e=>i(e))):R("securitypolicyviolation",(e=>i(e))),(null==t?void 0:t.started)&&(Un=Date.now()-t.started.getTime())},ei=e=>{Fn=e,Yn&&(Yn.resolve(Fn),Yn=void 0),Fn?ti():Ln&&(u(Ln),Ln=void 0)},ti=()=>{In&&(Xn(Hn(kn),Zn),In=!1),Ln=_((()=>Xn(Hn(kn),Sn)),864e5)},ni=async(e,t,n)=>{
if(!await Jn())return;let i="",r="";"init"===t?(r="Initialized",i=e):"error"===t&&(r="Error",i=e+" -> "+n),Xn(Hn(Cn),Gn,{category:"Cloud",action:r,name:i})},ii=async(e,t,n)=>{if(!await Jn())return;void 0===n&&(t+=" "+g.href,n="");let i=!1;for(const n of Nn){if(!n.msg&&!n.url)return;n.msg&&-1==e.indexOf(n.msg)||n.url&&-1==t.indexOf(n.url)||(i=!0)}i||Xn(Hn("error"),Gn,{category:"Error",action:e,name:t+":"+n})};var ri=e(2462),si=e.n(ri);const oi=(()=>{let e,t,n=!1;const i=()=>{const e=Te()
;return t=e,e};return{write:()=>{const t=Te();return n=!1,e=new(si()),t.resolve(e),t.promise()},open:r=>{const s=i();return n=!0,si().loadAsync(r).then((t=>{e=t,s.resolve(e)}),(e=>{t&&t.reject(e),s.reject(e)})),s.promise()},entries:()=>{const t=i(),n=e.files,r=Object.keys(n).map((e=>{const t=n[e];if(t&&!t.dir)return{filename:t.name}})).filter((e=>e));return t.resolve(r),t.promise()},get:t=>{const n=i(),r=e.file(t.filename);return r?r.async("arraybuffer").then((e=>{n.resolve(e)})):n.resolve(),
n.promise()},put:(t,n,r)=>{const s=i();try{e.file(t,n,{date:r?new Date(r):void 0}),s.resolve()}catch(e){s.reject(e)}return s.promise()},end:()=>{const t=i();return n?t.reject():e.generateAsync({type:"blob",compression:"DEFLATE",comment:"Created by Tampermonkey"}).then((e=>t.resolve(e)),(e=>t.reject(e))),t.promise()}}})(),ai=function(e,t){const n=Te();return Te.Pledge().then((()=>oi.write())).then((()=>{const t=Te(),i={},r=(e,t)=>{let n=[e,t].join(".");if(i[n]){let s;do{s=e+" ("+i[n]+")",
n=[s,t].join("."),i[n]++}while(i[n]);return r(s,t)}return i[n]=1,n},s=e.length,o=()=>{if(!e.length)return t.resolve();const i=e.shift();if(!i)return t.resolve();const a=i.meta.name.replace(/[\\/$*?|]/g,"-"),l=r(a,"user.js"),c=r(a,"options.json"),d=r(a,"storage.json"),u={options:i.options,settings:i.settings,meta:i.meta},A=JSON.stringify(u),h=i.storage?JSON.stringify(i.storage):null;n.notify("Zip: "+Math.floor((s-e.length)/s*100)+"%"),
oi.put(l,i.source,i.meta.modified).then((()=>oi.put(c,A))).then((()=>h?oi.put(d,h):Te.Pledge())).then((()=>{if(!i.resources.length&&!i.requires.length)return Te.Pledge();const e=[];return["resources","requires"].forEach((t=>{const n=i[t];n&&n.length&&n.forEach((n=>{if(void 0===n.source)return;const i=n.meta.name.replace(/[\\/$*?|]/g,"-"),r=le(t+n.meta.url),s=[l,r,i].join("-"),o=JSON.stringify(n.meta),a=oe(n.source,{encoding:"resources"==t?void 0:"UTF-8"
}),c=oi.put(s,a).then((()=>oi.put(s+"."+t+".json",o)));e.push(c)}))})),Te.when(e)})).fail((()=>{te.log("porter: add to zip failed")})).always((async()=>{await Ve(1e3),o()}))};return o(),t.promise()})).then((()=>t?oi.put("Tampermonkey.global.json",JSON.stringify(t)):Te.Pledge())).then((()=>oi.end())).done((e=>{n.resolve(e)})).fail((()=>{n.reject()})),n.promise()},li=function(e,t){const n=Te(),i={created_by:"Tampermonkey",version:"1",scripts:[],settings:t};return e.forEach((e=>{const t={
name:e.meta.name,options:e.options,storage:e.storage,enabled:e.settings.enabled,position:e.settings.position,file_url:e.meta.file_url,uuid:e.meta.uuid,source:re(ne(e.source))};["resources","requires"].forEach((n=>{const i=e[n];if(!i||!i.length)return;const r=t[n]=[];i.forEach((e=>{if(void 0===e.source)return;const t=e.meta,n=re(ne(e.source));r.push({meta:t,source:n})}))})),i.scripts.push(t)})),n.resolve(JSON.stringify(i)),n.promise()}
;var ci=e(8039),di=e.n(ci),ui=e(70),Ai=e.n(ui),hi=e(8754),pi=e.n(hi),fi=e(1763),mi=e.n(fi),gi=e(8295),_i=e.n(gi),bi=e(230),vi=e.n(bi),wi=e(3880),yi=e.n(wi),ki=e(4350),Ri=e.n(ki),xi=e(1933),Ci=e.n(xi),Ei=e(2215),Gi=e.n(Ei),Zi=e(2672),Si=e.n(Zi),Bi=e(3316),Ti=e.n(Bi);const Ii={rules:{"userscripts/filename-user":di(),"userscripts/no-invalid-grant":Ai(),"userscripts/no-invalid-headers":pi(),"userscripts/no-invalid-metadata":mi(),"userscripts/require-name":_i(),"userscripts/require-description":vi(),
"userscripts/require-version":yi(),"userscripts/require-attribute-space-prefix":Ri(),"userscripts/use-homepage-and-url":Ci(),"userscripts/use-download-and-update-url":Gi(),"userscripts/align-attributes":Si(),"userscripts/avoid-regexp-include":Ti()}};let Ui;const Li=we();let Fi=!0,Mi=!!G;if(M){let e;try{e=M.getItem("lint_worker")||""}catch(e){}"false"==e&&(Mi=!1)}Ui=Li>=94?2022:Li>=86?2021:Li>=83?2020:Li>=64?2018:Li>=59?2017:Li>=47?2015:5,Li<77||Li>100?(Fi=!1,
te.warn("hint: disable inline ESLint config due to web worker CSP issues","https://bugs.chromium.org/p/chromium/issues/detail?id=777076","https://bugs.chromium.org/p/chromium/issues/detail?id=159303")):Mi||(Fi=!1,te.warn("hint: disable inline ESLint config because web workers are unavailable and this extension's CSP doesn't allow unsafe eval, which is required for ESLint's dynamic reconfigration"));const ji={"userscripts/no-invalid-grant":1,"userscripts/no-invalid-headers":1,
"userscripts/no-invalid-metadata":[2,{top:"optional"}],"userscripts/require-name":[2,"required"],"userscripts/require-description":[1,"required"],"userscripts/require-version":[1,"required"],"userscripts/require-attribute-space-prefix":1,"userscripts/use-homepage-and-url":0,"userscripts/use-download-and-update-url":1,"userscripts/avoid-regexp-include":1},Di={env:{es6:Ui>=2015,browser:!0},parserOptions:{ecmaVersion:Ui,sourceType:"script",ecmaFeatures:{globalReturn:!0},allowAwaitOutsideFunction:!0
},rules:{curly:[1,"multi-line"],"dot-location":0,"dot-notation":[1,{allowKeywords:!0}],"no-caller":1,"no-case-declarations":2,"no-div-regex":0,"no-empty-pattern":2,"no-eq-null":0,"no-eval":1,"no-extra-bind":1,"no-fallthrough":1,"no-implicit-globals":2,"no-implied-eval":1,"no-lone-blocks":1,"no-loop-func":1,"no-multi-spaces":1,"no-multi-str":1,"no-native-reassign":1,"no-octal-escape":2,"no-octal":2,"no-proto":1,"no-redeclare":2,"no-return-assign":1,"no-sequences":1,"no-undef":1,
"no-useless-call":1,"no-useless-concat":1,"no-with":1}
},Oi={},zi=["uneval","unsafeWindow","GM_info","GM","GM_addStyle","GM_addElement","GM_cookie","GM_deleteValue","GM_listValues","GM_getValue","GM_download","GM_log","GM_registerMenuCommand","GM_unregisterMenuCommand","GM_openInTab","GM_setValue","GM_addValueChangeListener","GM_removeValueChangeListener","GM_xmlhttpRequest","GM_webRequest","GM_getTab","GM_saveTab","GM_getTabs","GM_setClipboard","GM_notification","GM_getResourceText","GM_getResourceURL"];let Pi;const Ni={};let Vi
;const Qi=e=>e.map((e=>{const{message:t}=e;if(!Fi){let n;t&&((n=t.match(/Configuration for rule "([^"]+)"[\s\S]*evaluate a string as JavaScript[\s\S]*/))||(n=t.match(/Configuration for rule "([^"]+)" is invalid:[\s\S]*call to Function\(\) blocked by CSP/)))&&(e.message=`Rule "${n[1]}": ESLint inline configuration is not supported by this browser.`,e.severity=1)}return e})).filter((e=>e)),Hi={},qi=e=>{const t=null==e?void 0:e.keys,n={keys:t,default:()=>[],set:(e,t)=>(e.push(t),e)}
;return(null==t?void 0:t.length)&&t.forEach((e=>Hi[e]=n)),n},Xi=e=>{const t=null==e?void 0:e.keys,n={keys:t,default:()=>null,set:(t,n,i)=>{const r=(null==e?void 0:e.convert)?e.convert(n,i):n;return null===t?r:t}};return(null==t?void 0:t.length)&&t.forEach((e=>Hi[e]=n)),n},Wi=e=>{const t=null==e?void 0:e.keys,n={default:()=>null,set:()=>!0};return(null==t?void 0:t.length)&&t.forEach((e=>Hi[e]=n)),n},Yi=e=>{const t=null==e?void 0:e.keys,n={keys:t,default:()=>({}),set:(t,n,i,r)=>{
r=r?wt(r):"default";const s=(null==e?void 0:e.convert)?e.convert(n,i):n;return t[r]=t[r]||s,t}};return(null==t?void 0:t.length)&&t.forEach((e=>Hi[e]=n)),n},Ji={name:Yi({convert:e=>null==e?void 0:e.replace(/\s\s+/g," ")}),version:Xi({convert:e=>(null==e?void 0:e.replace(/\s/g,""))||e}),grants:qi({keys:["grant"]}),icon:Xi({keys:["icon","iconURL","iconUrl","defaulticon"]}),icon64:Xi({keys:["icon64","iconURL64"]}),supportURL:Xi({keys:["supportURL","supportUrl"]}),fileURL:Xi(),downloadURL:Xi({
keys:["downloadURL","downloadUrl"]}),updateURL:Xi({keys:["updateURL","updateUrl"]}),namespace:Xi({convert:e=>""===e?null:e}),author:Xi(),copyright:Xi(),homepage:Xi({keys:["homepage","homepageURL","homepageUrl","website","source"]}),description:Yi(),includes:qi({keys:["include"]}),excludes:qi({keys:["exclude"]}),matches:qi({keys:["match"]}),requires:qi({keys:["require"]}),resources:(e=>{const t=null==e?void 0:e.keys,n={keys:t,default:()=>({}),set:(t,n,i)=>{const r=n.match(/^(\S*)\s+(.*)/)
;if(r&&void 0===t[r[1]]){const n=(null==e?void 0:e.convert)?e.convert(r[2],i):r[2];t[r[1]]=n}return t}};return(null==t?void 0:t.length)&&t.forEach((e=>Hi[e]=n)),n})({keys:["resource"]}),sandbox:Xi({keys:["sandbox","inject-into"],convert:(e,t)=>null!==e&&"inject-into"===t?{auto:"DOM",content:"DOM",page:null}[e]||null:e}),tags:qi({keys:["tag"]}),noframes:Wi(),unwrap:Wi(),connects:qi({keys:["connect","connect-src","domain"]}),webRequest:qi(),"run-at":Xi(),"run-in":qi(),antifeatures:(e=>{
const t=null==e?void 0:e.keys,n={keys:t,default:()=>({}),set:(t,n,i,r)=>{var s;r=r?wt(r):"default";const o=n.match(/^(\S*)\s+(.*)/);if(o){const n=t[s=o[1]]||(t[s]={}),a=(null==e?void 0:e.convert)?e.convert(o[2],i):o[2];n[r]=a}return t}};return(null==t?void 0:t.length)&&t.forEach((e=>Hi[e]=n)),n})({keys:["antifeature"]})},Ki={};Object.entries(Ji).forEach((([e,t])=>{t.keys?t.keys.forEach((t=>{Ki[t]=e})):Ki[e]=e}));const $i=(()=>{const e=e=>{const t=e.split(".")
;return t.slice(0,3).concat([t.slice(3).join(".")]).concat([0,0,0,0]).slice(0,4).map((e=>{const t=e.toString().match(/((?:-?[0-9]+)?)([^0-9]*)((?:[0-9]+)?)(.*)/);return t?[Number(t[1]),t[2],Number(t[3]),t[4]]:[]})).reduce(((e,t)=>e.concat(t)))},t=(n,i)=>{const r=Array.isArray(n)?n:e(n),s=Array.isArray(i)?i:e(i);for(let e=0;e<16;e++){const n=r[e],i=s[e];if(e%2==1){if(!n&&i)return t.eNEWER;if(n&&!i)return t.eOLDER;const e=n.match(/\w/g)||[],r=i.match(/\w/g)||[]
;for(let n=0;n<Math.min(e.length,r.length);n++){if(e[n].charCodeAt(0)>r[n].charCodeAt(0))return t.eNEWER;if(e[n].charCodeAt(0)<r[n].charCodeAt(0))return t.eOLDER}if(e.length>r.length)return t.eNEWER;if(e.length<r.length)return t.eOLDER}else{if(Number(n)>Number(i))return t.eNEWER;if(Number(n)<Number(i))return t.eOLDER}}return t.eEQUAL};return t.eERROR=-2,t.eOLDER=-1,t.eEQUAL=0,t.eNEWER=1,t
})(),er="try to take over the world!",tr="This script was deleted from Greasy Fork, and due to its negative effects, it has been automatically removed from your browser.";var nr;new class{constructor(){this.regexps=["https?://userscripts\\.org/scripts/(source|version)/([0-9]{1,9})\\.user\\.js","https?://userscripts-mirror\\.org/scripts/(source|version)/([0-9]{1,9})\\.user\\.js"],this.domains=["userscripts.org","userscripts-mirror.org"]}test(e){
const t=this.regexps.reduce(((t,n)=>t||e.match(new RegExp(n))),null);if(t&&3==t.length)return{id:t[2],token:"uso",meta_url:!0,url:"http://userscripts-mirror.org/scripts/show/"+t[2],code_url:"http://userscripts-mirror.org/scripts/review/"+t[2],issue_url:"http://contactbyweb.com/userscripts-mirror"}}updates(e){return!1}},new class{constructor(){
this.regexps=["https?://greasyfork\\.org/(?:[^/]+/)?scripts/([^/-]+).*/code.*\\.user\\.js","https?://update.greasyfork\\.org/(?:[^/]+/)?scripts/([^/-]+).*/.*\\.user\\.js"],this.domains=["greasyfork.org","update.greasyfork.org"]}test(e){const t=this.regexps.reduce(((t,n)=>t||e.match(new RegExp(n))),null);if(t&&2==t.length){const e=t[1];return{id:e,token:"gf",meta_url:!0,url:"https://greasyfork.org/scripts/"+e,issue_url:"https://greasyfork.org/scripts/"+e+"/feedback",
code_url:"https://greasyfork.org/scripts/"+e+"/code"}}}async converts(e){let t,n=e;if(n){const e=n.description.trim();e===er?n.description="":e===tr&&(n=null,t="deleted by hoster")}return{script:n,warning:t}}updates(e){const t=new RegExp("https?://greasyfork\\.org/scripts/[^/]+/code/.*\\.user\\.js.*version=[0-9]+.*"),n=new RegExp("https?://update\\.greasyfork\\.org/scripts/[^/]+/[^/]+/[^/]+\\.user\\.js");return!e.match(n)&&!e.match(t)}},new class{constructor(){
this.regexps=["https?://sleazyfork\\.org/(?:[^/]+/)?scripts/([^/-]+).*/code.*\\.user\\.js","https?://update.sleazyfork\\.org/(?:[^/]+/)?scripts/([^/-]+).*/.*\\.user\\.js"],this.domains=["sleazyfork.org","update.sleazyfork.org"]}test(e){const t=this.regexps.reduce(((t,n)=>t||e.match(new RegExp(n))),null);if(t&&2==t.length){const e=t[1];return{id:e,token:"sf",meta_url:!0,url:"https://sleazyfork.org/scripts/"+e,issue_url:"https://sleazyfork.org/scripts/"+e+"/feedback",
code_url:"https://sleazyfork.org/scripts/"+e+"/code"}}}async converts(e){let t,n=e;if(n){const e=n.description.trim();e===er?n.description="":e===tr&&(n=null,t="deleted by hoster")}return{script:n,warning:t}}updates(e){const t=new RegExp("https?://sleazyfork\\.org/scripts/([^/]+)/code/.*\\.user\\.js.*version=[0-9]+.*"),n=new RegExp("https?://update\\.sleazyfork\\.org/scripts/[^/]+/[^/]+/[^/]+\\.user\\.js");return!e.match(n)&&!e.match(t)}},new class{constructor(){
this.regexps=["https?://openuserjs\\.org/install/([^/]+)+/(.+?)(?:\\.min)?\\.user\\.js"],this.domains=["openuserjs.org"]}test(e){const t=this.regexps.reduce(((t,n)=>t||e.match(new RegExp(n))),null);if(t&&3==t.length)return t.shift(),{id:t.join("/"),token:"ouj",meta_header:!0,url:"https://openuserjs.org/scripts/"+t[0]+"/"+t[1],issue_url:"https://openuserjs.org/scripts/"+t[0]+"/"+t[1]+"/issues",code_url:"https://openuserjs.org/scripts/"+t[0]+"/"+t[1]+"/source"}}async converts(e){const t=e
;return t&&t.description.trim()===er&&(t.description=""),{script:t,warning:void 0}}updates(e){return!0}},new class{constructor(){
this.regexps=["https?://raw\\.githubusercontent\\.com/([^/]+)/([^/]+)/[^/]+/(.*)\\.user\\.js","https?://github\\.com/([^/]+)/([^/]+)/raw/[^/]+/(.*)\\.user\\.js","https?://raw.github\\.com/([^/]+)/([^/]+)/[^/]+/(.*)\\.user\\.js","https?://github\\.com/([^/]+)/([^/]+)/releases/latest/download/(.*)\\.user\\.js","https?://github\\.com/([^/]+)/([^/]+)/releases/download/[^/]+/(.*)\\.user\\.js","https?://(([^\\.]+).github\\.io)/(.*)\\.user\\.js"],
this.domains=["github.com","githubusercontent.com","github.io"]}test(e){let t;const n=this.regexps.slice(0,-1).reduce(((t,n)=>t||e.match(new RegExp(n))),null),i=this.regexps.slice(-1).reduce(((t,n)=>t||e.match(new RegExp(n))),null);if(n&&4==n.length||i&&4==i.length){let e;if(n){n.shift();const[i,r,s]=n;e=[i,r].join("/"),t=[i,r].concat(r==s?[]:s).join("/")}else{if(!i)throw new Error("Should never happen!");{i.shift();const[n,r,s]=i;e=[r,n].join("/"),t=[r,n].concat(n==s?[]:s).join("/")}}return{
id:t,token:"gh",url:"https://github.com/"+e,issue_url:"https://github.com/"+e+"/issues"}}}updates(e){return!0}},new class{constructor(){this.regexps=["https?://gist\\.github\\.com/([^/]+)/([^/]+)/raw/(.*/)?.*\\.user\\.js","https?://gist\\.githubusercontent\\.com/([^/]+)/([^/]+)/raw/(.*/)?.*\\.user\\.js"],this.domains=["gist.github.com","gist.githubusercontent.com"]}test(e){const t=this.regexps.reduce(((t,n)=>t||e.match(new RegExp(n))),null);if(t&&4==t.length){const e=t[1],n=t[2],i=`${e}/${n}`
;if(n&&i)return{id:i,token:"gst",url:`https://gist.github.com/${i}`,issue_url:`https://gist.github.com/${i}#new_comment_field`,code_url:`https://gist.github.com/${i}`}}}updates(e){const t=this.regexps.reduce(((t,n)=>t||e.match(new RegExp(n))),null);return!(!t||null!=t[3])}},new class{constructor(){this.regexps=["https?://gitlab\\.com/([^/]+)(?:/([^/]+))?/([^/-]{1,1}[^/]+)/?(?:-/)?(snippets/[^/]+/)?(raw|wikis)/(?:[^/]+/)?(.*?)\\.user\\.js"],this.domains=["gitlab.com"]}test(e){
const t=this.regexps.reduce(((t,n)=>t||e.match(new RegExp(n))),null);if(t&&7==t.length){const[,e,n,i,,,r]=t,s=[e].concat([n,i].filter((e=>e))).join("/");return{id:[s].concat(i==r?[]:r).join("/"),token:"gl",url:"https://gitlab.com/"+s,issue_url:"https://gitlab.com/"+s+"/issues"}}}updates(e){return!0}},new class{constructor(){this.regexps=["https?://bitbucket\\.org/([^/]+)/([^/]+)/raw/[^/]+/(.*)\\.user\\.js","https?://bitbucket\\.org/([^/]+)/([^/]+)/downloads/(.*)\\.user\\.js"],
this.domains=["bitbucket.org"]}test(e){const t=this.regexps.reduce(((t,n)=>t||e.match(new RegExp(n))),null);if(t&&4==t.length){t.shift();const[e,n,i]=t,r=[e,n].concat(n==i?[]:i).join("/"),s=[e,n].join("/");return{id:r,token:"bb",url:"https://bitbucket.org/"+s,issue_url:"https://bitbucket.org/"+s+"/issues"}}}updates(e){return!0}},new class{constructor(){this.regexps=["https?://userstyles\\.org/styles/userjs/([^/]+)/.*\\.user\\.js"],this.domains=["userstyles.org"]}test(e){
const t=this.regexps.reduce(((t,n)=>t||e.match(new RegExp(n))),null);if(t&&2==t.length)return t.shift(),{id:t[0],token:"usty",url:"https://userstyles.org/styles/"+t[0],issue_url:"https://forum.userstyles.org/post/discussion?Discussion/StyleID="+t[0]}}async converts(e){let t,n,i,r;const s=[{tag:"includes",re:/(?: \|\| \(new RegExp\("\^)([^$]+)(?:\$"\)\)\.test\(document\.location\.href\))/g,idx:1,value:e=>"/^"+e.replace(/\\\\(.)/g,"\\$1")+"$/"},{tag:"includes",
re:/(?: \|\| \(document\.location\.href\.indexOf\(")([^"]+)"(?:\) == 0\))/g,idx:1,value:e=>e+"*"},{tag:"matches",re:/(?: \|\| \(document\.domain == ")([^"]+)"(?: \|\| document\.domain\.substring\(document\.domain\.indexOf\("[^"]+"\) \+ 1\) == "[^"]+"\))/g,idx:1,value:e=>"*."+e}],o=new RegExp("(?:if \\(false)("+s.map((e=>"(?:"+e.re.source+")")).join("|")+")+","g")
;return e.textContent&&0===e.includes.length&&0===e.matches.length&&0===e.excludes.length&&e.options&&e.options.override&&e.options.override.orig_includes&&0===e.options.override.orig_includes.length&&e.options.override.orig_matches&&0===e.options.override.orig_matches.length&&(n=e.textContent.match(o))&&(n.forEach((t=>{s.forEach((n=>{for(;i=n.re.exec(t);)if(i.length>n.idx){const t=n.value(i[n.idx]);e.options.override["orig_"+n.tag].push(t),e[n.tag].push(t),r=!0}}))})),r&&(t="includes added")),
0===e.grant.length&&(e.grant.push("GM_addStyle"),t="includes added"),{script:e,info:t}}updates(e){return!0}},new class{constructor(){this.regexps=["https://static\\.iitc\\.me/build/release/(plugins/)?(.*)\\.user\\.js","https://iitc\\.app/build/release/(plugins/)?(.*)\\.user\\.js","https?://socialfixer\\.com/socialfixer\\.user\\.js","https?://www\\.fbpurity\\.com/.*\\.user\\.js"],this.domains=["static.iitc.me","iitc.app","socialfixer.com","fbpurity.com"]}test(e){
const[t,n,i,r]=this.regexps,s=e.match(new RegExp(t));if(s&&3===s.length){s.shift();const[e,t]=s,n="iitc-project/ingress-intel-total-conversion";return{id:[n].concat(e?[e,t]:[]).join("/").replace(/\/\//g,"/"),token:"gh",url:"https://github.com/"+n,issue_url:"https://github.com/"+n+"/issues"}}const o=e.match(new RegExp(n));if(o&&3===o.length){o.shift();const[e,t]=o,n="IITC-CE/ingress-intel-total-conversion";return{id:[n].concat(e?[e,t]:[]).join("/").replace(/\/\//g,"/"),token:"gh",
url:"https://github.com/"+n,issue_url:"https://github.com/"+n+"/issues"}}return e.match(new RegExp(i))?{id:"socialfixer",token:"web",url:"http://socialfixer.com",issue_url:"https://www.facebook.com/groups/SocialFixerUsersSupport/"}:e.match(new RegExp(r))?{id:"fbpurity",token:"web",url:"https://www.fbpurity.com/",issue_url:"https://www.facebook.com/fluffbustingpurity"}:void 0}updates(e){return!0}},function(e){e[e.OBJ_URL=1]="OBJ_URL",e[e.BLOB=2]="BLOB",e[e.BINARY=4]="BINARY",
e[e.DATA_URI=8]="DATA_URI"}(nr||(nr={}));const ir=nr.OBJ_URL+0+nr.BINARY+nr.DATA_URI,rr=e=>void 0!==e.objUrl,sr=e=>void 0!==e.blob,or=e=>void 0!==e.dataUri,ar=e=>void 0!==e.binary;class lr{constructor(e,t){if(rr(e)){this.objUrl=e.objUrl.url,this.type=e.objUrl.type;const t=e.objUrl.revoke;t&&(lr.objUrlDisposers[this.objUrl]=t)}else if(sr(e))this.blob=e.blob;else if(or(e))this.dataUri=e.dataUri;else{if(!ar(e))throw new Error("incompatible TransferableData");this.binary=e.binary,this.type=e.type}
this.kinds=t||ir}async dispose(){if(this.objUrl){const e=lr.objUrlDisposers,t=e[this.objUrl];t?(delete e[this.objUrl],await t()):URL.revokeObjectURL(this.objUrl)}}async toTransferableData(){if(this.kinds&nr.OBJ_URL){if(!this.objUrl&&(!this.blob&&this.dataUri&&(this.blob=ce(this.dataUri)),this.blob&&(this.objUrl=URL.createObjectURL(this.blob)),!this.objUrl))throw new Error("incomplete Transferable");return{objUrl:{url:this.objUrl,type:this.type}}}if(this.kinds&nr.BLOB){
if(!this.blob&&(this.objUrl?this.blob=await w(this.objUrl).then((e=>e.blob())):this.dataUri&&(this.blob=ce(this.dataUri)),!this.blob))throw new Error("incomplete Transferable");return{blob:this.blob}}if(this.kinds&nr.BINARY){if(void 0===this.binary){let e=this.blob;if(!e&&this.objUrl&&(e=await w(this.objUrl).then((e=>e.blob()))),e&&(this.binary=await ue(e),this.type=this.type||e.type),void 0===this.binary)throw new Error("incomplete Transferable")}return{binary:this.binary,
type:this.type||"application/octet-stream"}}if(this.kinds&nr.DATA_URI){if(!this.dataUri){let e=this.blob;if(!e&&this.objUrl&&(e=await w(this.objUrl).then((e=>e.blob()))),e&&(this.dataUri=await de(e)),!this.dataUri)throw new Error("incomplete Transferable")}return{dataUri:this.dataUri}}throw new Error("incompatible Transferable")}get tryObjectUrl(){return this.objUrl}get tryBlob(){return this.blob}get tryDataUri(){return this.dataUri}get tryBinary(){return this.binary}async toBlob(){
if(this.blob)return this.blob;if(!this.objUrl){if(this.dataUri)return ce(this.dataUri);if(this.binary)return new Blob([oe(this.binary)],{type:this.type||"application/octet-stream"});throw new Error("incompatible Transferable")}try{return await(await w(this.objUrl)).blob()}catch(e){return}}async toDataUri(){if(this.dataUri)return this.dataUri;{const e=await this.toBlob();if(!e)throw new Error("incompatible Transferable");return await de(e)}}async toObjectUrl(){if(this.objUrl)return this.objUrl;{
const e=await this.toBlob();if(!e)return;return this.objUrl=URL.createObjectURL(e)}}static fromTransferableData(e){return e&&(sr(e)||rr(e)||or(e)||ar(e))?new lr(e):void 0}}lr.objUrlDisposers={};const cr={};Je.on("xhr",(function(e){let t,n;void 0!==(t=e.id)&&void 0!==(n=cr[t])&&n.handle(e)&&delete cr[t]}));class dr{constructor(e){this.readyState=dr.UNSENT,this.status=0,this.statusText="",this.responseType="",this.async=!0,this.timeout=-1,this.canceled=!1,this.loaded=0,this.headers={},
this.onreadystatechange=null,this.onredirect=null,this.onopen=null,this.onload=null,this.onloadstart=null,this.onprogress=null,this.onabort=null,this.onerror=null,this.ontimeout=null,this.upload={onprogress:null,loaded:0,total:void 0},this.open=function(e,t,n=!0,i,r){if(this.method=e,this.url=t,this.async=n,this.user=i,this.password=r,this.responseURL=t,!this.async)throw new Error("Synchronous requests are not supported");this.onopen&&this.onopen(this)},this.send=async function(e){
this.mime_type&&(this.request_headers||(this.request_headers={}),this.request_headers["content-type"]||(this.request_headers["content-type"]=this.mime_type)),(this.user||this.password)&&(this.request_headers||(this.request_headers={}),this.request_headers.Authorization="Basic "+d((this.user||"")+":"+(this.password||"")));const t=this.method||"GET",n=this.url;if(!n)throw new Error("No URL specified");const i={method:t,url:n,headers:this.request_headers,timeout:this.timeout>0?this.timeout:void 0,
anonymous:"withCredentials"in this?!this.withCredentials:this.options&&!!this.options.anonymous},r=e=>{this.method&&"POST"==this.method.toUpperCase()&&(this.request_headers||(this.request_headers={}),this.request_headers["content-type"]||(this.request_headers["content-type"]=e))};if(e){let t,n="";if(e instanceof Blob){t=e.size;const s=await ue(e);s?(i.data=re(s),r(n)):(this.readyState=0,this.statusText="data read error",this.onerror&&this.onerror(this))}else t=e.length,n="text/plain",
i.data=re(ne(e));r(n),this.upload&&(this.upload.loaded=0,this.upload.total=t)}(async e=>{await Ye.acquire();try{let t;const n=await Promise.race([new Promise(((n,i)=>{t=b((()=>{t=void 0,i(`timeout: ${e.method}`)}),15e3)})),Re.runtime.sendNativeMessage("application",e)]);return void 0!==t&&A(t),n}catch(e){throw console.error("sendNativeMessage",e),e}finally{Ye.release()}})({method:"xhr",id:this.id,details:i}),e&&this.upload&&this.upload.onprogress&&this.upload.onprogress.apply(this,[this.upload])
},this.abort=function(){this.canceled=!0,delete cr[this.id],this.onabort&&this.onabort(this)},this.overrideMimeType=function(e){this.mime_type=e},this.getAllResponseHeaders=function(){const e=this.headers;return Object.keys(e).map((function(t){const n=e[t];return n&&n.includes(",")?n.split(",").map((function(e){return t+":"+e.trimStart()})).join("\r\n"):t+":"+n})).join("\r\n")},this.getResponseHeader=function(e){return this.headers[e]},this.setRequestHeader=function(e,t){
null!==t&&(this.request_headers||(this.request_headers={}),this.request_headers[e.trim().toLowerCase()]=t.trim())},this.toString=function(){return"[object XMLHttpRequest]"},this.handle=function(e){const t=e.data,n=()=>{this.onprogress&&this.onprogress(this)};if(t.timeout)this.ontimeout&&this.ontimeout.apply(this,[this]);else if(1==t.readyState&&"loaded"in t)this.upload&&this.upload.onprogress&&(this.upload.loaded=t.loaded||0,this.upload.total=t.total,
this.upload.onprogress.apply(this,[this.upload]));else if(2==t.readyState&&301==t.status)Object.assign(this,t),this.onredirect&&this.onredirect(this);else if(t.readyState!=this.readyState){if(Object.assign(this,t),this.onreadystatechange&&this.onreadystatechange(this),4==t.readyState){const e=t.status;return e>=400?this.onload&&this.onload.apply(this,[this]):e>=300||(e>=200?this.onload&&this.onload.apply(this,[this]):e>=100||0===e&&this.onerror&&this.onerror.apply(this,[this])),!0}
t.readyState>1?n():1==t.readyState&&this.onloadstart&&this.onloadstart.apply(this,[this])}else 3==t.readyState&&(Object.assign(this,t),n())},this.id=Date.now()+(Math.random()+1).toString(36).substring(7),this.options=e,cr[this.id]=this}get lengthComputable(){return null!=this.total}get target(){return this}get response(){const e=Ar(this.responseData);if(null==e)return null
;const t=this.responseType?this.responseType.toLowerCase():"",n=(this.headers?this.headers["content-type"]:null)||"binary/octet-stream";return ur(e,t,n)}get responseText(){const e=Ar(this.responseData);return null==e?null:ur(e,this.mime_type?"binary":"text")}get responseXML(){const e=Ar(this.responseData);if(null==e)return null;const t=(this.headers?this.headers["content-type"]:null)||"";return ur(e,"document",t.split(";")[0])}}dr.UNSENT=0,dr.OPENED=1,dr.HEADERS_RECEIVED=2,dr.LOADING=3,
dr.DONE=4,dr.toString=function(){return"[XMLHttpRequest]"};const ur=function(e,t,n){let i;if("arraybuffer"==t)i=oe(e);else if("blob"==t)i=new Blob([oe(e)],{type:n});else if("json"==t)i=JSON.parse(ie(e));else{if("document"==t)return"text/xml"==n&&x?(new x).parseFromString(e,n):null;if("text"==t||n&&(n.match(/charset=(utf[-_]?8)/i)||"text/html"==n))try{i=ie(e)}catch(t){i=e}else i=e}return i},Ar=e=>{try{if(void 0===e)return;return se(e)}catch(e){return void console.warn("XmlHttpRequest:",e)}}
;var hr;!function(e){e.TESTING="TESTING",e.AUDIO_PLAYBACK="AUDIO_PLAYBACK",e.IFRAME_SCRIPTING="IFRAME_SCRIPTING",e.DOM_SCRAPING="DOM_SCRAPING",e.BLOBS="BLOBS",e.DOM_PARSER="DOM_PARSER",e.USER_MEDIA="USER_MEDIA",e.DISPLAY_MEDIA="DISPLAY_MEDIA",e.WEB_RTC="WEB_RTC",e.CLIPBOARD="CLIPBOARD",e.LOCAL_STORAGE="LOCAL_STORAGE",e.WORKERS="WORKERS",e.BATTERY_STATUS="BATTERY_STATUS",e.MATCH_MEDIA="MATCH_MEDIA",e.GEOLOCATION="GEOLOCATION"}(hr||(hr={}));let pr={},fr=()=>s.resolve({done:()=>{}})
;const mr=["internal","user-agent","accept-charset","accept-encoding","access-control-request-headers","access-control-request-method","connection","content-length","cookie","cookie2","date","dnt","expect","host","keep-alive","origin","referer","te","trailer","transfer-encoding","upgrade","via"],gr={"cache-control":"no-cache",pragma:"no-cache"},_r={"cache-control":"max-age=0, must-revalidate"},br=e=>{const t={},n={};return Object.keys(e).forEach((i=>{let r=i,s=e[i];var o;o=i.toLowerCase(),
mr.includes(o)||0===o.indexOf("proxy-")||0===o.indexOf("sec-")?n[r]=s:t[r]=s})),{...Object.keys(n).length?{forbidden:n}:{},...Object.keys(t).length?{regular:t}:{}}},vr=e=>({responseText:"",response:null,readyState:4,responseHeaders:"",status:0,statusText:"",error:e=e||"Forbidden"}),wr=e=>e&&"object"==typeof e&&"type"in e&&"value"in e,yr=e=>{if("Blob"===e.type)return new Blob([oe(e.value)]);if("File"===e.type){if(!e.name)return;return new File([oe(e.value)],e.name,{type:e.meta,
lastModified:e.lastModified||Date.now()})}if("FormData"==e.type){const t=new FormData;return e.value.forEach((({name:e,value:n})=>{const i=yr(n);void 0!==i?t.append(e,i):te.warn("Unable to un-typify value for FormData field",n)})),t}if("URLSearchParams"===e.type)return new URLSearchParams(e.value);if("Array"===e.type||"Object"===e.type){let t,n,i;"Object"===e.type?(i=Object.keys(e.value),n=e=>e<i.length?i[e]:null,t={}):(n=t=>t<e.value.length?t:null,t=[])
;for(let i,r=0;null!==(i=n(r));r++)t[i]=yr(e.value[i]);return t}return e.value},kr=e=>{const t={};return e&&e.split("\n").forEach((e=>{const n=e.match(/^([^:]+): ?(.*)/);if(n){const e=n[1].toLowerCase();t[e]=(void 0!==t[e]?t[e]+",":"")+(n[2]||"").replace(/,/g,"%2C")}})),t},Rr=(e,t,n)=>{const i={...t||{}},r=async(e,t)=>{const n=i[e];n&&n("function"==typeof t?await t():t)},s=async(e,t)=>{i[e]&&(await r(e,t),i[e]=void 0)};if(!(n=n||{}).internal&&(o=e.url,
!["https:","http:","data:","blob"].some((e=>o.startsWith(e))))){te.warn("xhr: invalid scheme of url:",e.url);const t=vr("Invalid scheme");return s("onerror",t),void s("ondone",t)}var o;const a=void 0!==e.responseType?e.responseType.toLowerCase():void 0,l=e.redirect&&"follow"!==e.redirect,c=(e.proxy&&e.proxy.type,!pr.mozAnon&&e.anonymous||"stream"==a||l||!e.partialSize&&a||"typified"===e.data_type),d=e.fetch||!1;return c||d?Er(e,i,n,e.retries||0,s,r):Gr(e,i,n,e.retries||0,s,r)
},xr="tm-finalurl"+Se.short_id.toLowerCase(),Cr="tm-setcookie"+Se.short_id.toLowerCase(),Er=(e,t,n,i,r,s)=>{const a=x,l=!e.redirect||"follow"===e.redirect;let c,u,h,p;const f=(t,n,i)=>{const r=[];let s;const o=i||t.headers;if(o){const n=[],i=[];o.forEach(((e,t)=>{const o=t.toLowerCase();o.startsWith(Cr)?n.push(e):"set-cookie"===o?i.push(e):o===xr?s=e:r.push(o+":"+e)})),s=l?s||t.url:e.url,(n.length?n:i).forEach((e=>r.push("set-cookie:"+e)))}const a=void 0===n?4:n,c=t.status||0,d=t.statusText||""
;return{readyState:a,responseHeaders:r.join("\r\n"),finalUrl:s,status:c,statusText:d}},m=(e,t,n)=>Object.assign(n||{},{lengthComputable:void 0!==e,loaded:e,done:e,position:e,total:t,totalSize:t}),g=e=>{let t;p&&p(),u||(h?(t=f({status:408,statusText:"Request Timeout"}),r("ontimeout")):"AbortError"==(null==e?void 0:e.name)?(t=vr("aborted"),r("onabort",t)):(t=f({status:408,statusText:(null==e?void 0:e.message)||"Request Timeout"}),r("onerror",t)),u=!0,r("ondone",t))
},_=e.responseType?e.responseType.toLowerCase():"";if("document"==_&&!a)return void g({name:"Error",message:"response type not supported"});const v=async(e,t,i)=>{let r;if(i)r=e;else{const t=e;if(!n.no_blob&&!n.foreign_context){let e;return e=new lr({blob:t},nr.OBJ_URL),s("onpartial",{tfd:await e.toTransferableData()}),void b((()=>e.dispose()),2e4)}{const e=await ue(t);if(!e)return void te.warn("xhr: failed to convert blob to binary text");r=e}}const o=W(r,t);o.forEach(((e,t)=>{s("onpartial",{
partial:e,index:t,length:o.length})}))};let y=!1;const k=e=>{e&&(h=!0),R?R.abort():h?g():g({name:"AbortError",message:"Aborted by user"})};let R;return(async()=>{try{const C={};C.method=e.method||"GET";const E=bn(e.url);let G,Z;if(E){let t=!1;E.username&&(e.user=e.user||E.username,t=!0),E.password&&(e.password=e.password||E.password,t=!0),G=t?(h=E,((x=x||{}).noprotocol?"":["about:"].includes(h.protocol)?h.protocol:h.protocol+"//")+(x.auth&&(h.username||h.password)?((e,t)=>{
const n=e=>e.replace(/[^A-Za-z0-9-._~!$&'()*+,;=]/g,(e=>"%"+e.charCodeAt(0).toString(16).toUpperCase()));return n(e)+(t?":"+n(t):"")+"@"})(h.username||"",h.password)+"@":"")+h.hostname+(!x.noport&&h.port&&h.port>0?":"+h.port:"")+(x.nopath?"":x.nofile?h.pathname.replace(/\/[^/]*$/,"/"):h.pathname+(x.nosearch?"":h.search))):e.url}else G=e.url;if(e.headers){let{forbidden:t,regular:n}=br(e.headers);Z=n,t&&te.warn("xhr: setting forbidden headers in non-bg environment is not supported!",t)}
if(l||(C.redirect=e.redirect,te.warn("xhr: setting redirect in non-bg environment is not supported!",e.redirect)),e.proxy,!p){const{done:e}=await fr(G,C.method);p=()=>{e(),p=void 0}}e.nocache?C.cache="reload":e.revalidate&&(C.cache="default",Z=Z||{},Z={...Z,..._r}),e.anonymous?C.credentials="omit":C.credentials="include",e.user&&e.password&&(Z=Z||{},Z.Authorization="Basic "+d(e.user+":"+e.password)),Z&&(C.headers=new Headers(Z)),
void 0!==e.data&&null!==e.data&&(wr(e.data)&&"typified"===e.data_type?C.body=yr(e.data):"string"==typeof e.data?C.body=e.data:C.body=JSON.stringify(e.data)),R=o?new o:void 0,R&&(C.signal=R.signal),r("onloadstart",f({status:0,statusText:""},1)),w(G,C).then((async o=>{var l,d,h;let g;if(c&&(A(c),c=null),p&&p(),u)return;let b=f(o,void 0,g);if(b.status>0&&(b.status<200||b.status>=399)&&i>0)return void Er(e,t,n,i-1,r,s);const{partialSize:w,overrideMimeType:k,responseType:R}=e
;if(o.ok)if(s("onreadystatechange",f(o,2,g)),"stream"==_){const t=null===(l=o.body)||void 0===l?void 0:l.getReader();if(t)for(;;){const{done:n,value:i}=await t.read();if(i){const t=new Blob([i]);await v(t,parseInt(e.partialSize),!1)}if(n)break}}else{const t=await(async(e,t)=>{var n;const i=null===(n=e.body)||void 0===n?void 0:n.getReader();if(i){const n=[];let r=0;const o=parseInt(e.headers.get("Content-Length")||"-1");for(;;){const{done:a,value:l}=await i.read();if(l&&(n.push(l),r+=l.length,
await s("onprogress",(async()=>{const n=f(e,3,t);return m(r,o,n)}))),a)break}const a=new Uint8Array(r);let l=0;for(const e of n)a.set(e,l),l+=e.length;return a}{const n=await e.arrayBuffer();return await s("onprogress",(async()=>{const i=f(e,3,t);return m(n.byteLength,n.byteLength,i)})),new Uint8Array(n)}})(o,g),n=null===(d=o.headers)||void 0===d?void 0:d.get("Content-Type"),i=((null===(h=k||n)||void 0===h?void 0:h.toLowerCase().match(/charset=([^;]+)/))||[])[1],r=()=>new Blob([t],{
type:k||n||"binary/octet-stream"});if(w){let t;["arraybuffer","blob"].includes(_)||void 0!==k?(b.response=r(),t=!1):(b.response=await ue(r(),i||"utf-8"),t=!0),b=await(async(t,n)=>{if(e.partialSize){const i=t.response;["response","responseText","responseXML"].forEach((e=>{delete t[e]})),!y&&i&&(y=!0,await v(i,parseInt(e.partialSize),n))}return t})(b,t)}else if(void 0!==R){let e;if("arraybuffer"==_)b.response=t.buffer;else if("blob"==_)b.response=r();else if("document"==_){
e=(n||"text/xml").toString().split(";")[0];const t=new a,s=await ue(r(),i||"utf-8");b.response=t.parseFromString(s||"",e)}else if("json"==_){const e=await ue(r(),i||"utf-8");b.response=JSON.parse(e||"")}else te.warn("xhr: responseType",_," is not implemented!"),b.responseText=b.response=await ue(r(),i||"utf-8")}else{const e=await ue(r(),i||"utf-8");b.responseText=b.response=e}}else if(b.responseXML=void 0,"follow"!==e.redirect&&"opaqueredirect"==o.type){const e=f(o,2,g)
;e.responseText=e.response=b.responseText=b.response=void 0,e.status=b.status=301,s("onreadystatechange",e)}else{s("onreadystatechange",f(o,2,g));try{if("stream"==_){const t=await o.text(),n=new Blob([t]);await v(n,parseInt(e.partialSize),!1)}else b.responseText=b.response=await o.text()}catch(e){}}r("onreadystatechange",b),r("onload",b),r("ondone",b)})).catch((async e=>{g(e)})),void 0!==e.timeout&&null!==e.data&&(c=b((()=>{c=null,k(!0)}),e.timeout))}catch(e){p&&p();const t=e
;te.error(t.message,t.stack);const n=vr(t.message);r("onerror",n),r("ondone",n)}var h,x})(),{abort:()=>k()}},Gr=(e,t,n,i,r,s)=>{const o=e.responseType?e.responseType.toLowerCase():"";let a,l;e.anonymous&&(a=pr.mozAnon?{mozAnon:!0}:{anonymous:!0});const c=j;if(!c)throw new Error("internal error: XMLHttpRequest not available!");const d=new c(a),u=t=>{let n="",i=e.url;if(d.readyState>=2){let e;n=d.getAllResponseHeaders(),n&&(n=n.replace(/tm-finalurl[0-9a-zA-Z]*: .*[\r\n]{1,2}/i,""),
n=n.replace(/tm-setcookie[0-9a-zA-Z]+-[0-9]+:/gi,"set-cookie:")),(e=d.getResponseHeader(xr)||d.responseURL)&&(i=e)}const r={readyState:d.readyState,responseHeaders:n,finalUrl:i,status:d.readyState>=2?d.status:0,statusText:d.readyState>=2?d.statusText:""};return t&&4==d.readyState?d.responseType?(r.responseXML=void 0,r.responseText=void 0,r.responseType=d.responseType,r.response=d.response):(r.responseXML=d.responseXML||void 0,r.responseText=d.responseText,
r.response=d.response):(r.responseXML=void 0,r.responseText="",r.response=void 0),r};let A=!1;const h=async t=>{if(e.partialSize){const i=t.response,r=!["arraybuffer","blob"].includes(o);["response","responseText","responseXML"].forEach((e=>{delete t[e]})),!A&&i&&(A=!0,await(async(e,t,i)=>{let r;if(i)r=e;else{const t=e;if(!n.no_blob&&!n.foreign_context){let e;return e=new lr({blob:t},nr.OBJ_URL),s("onpartial",{tfd:await e.toTransferableData()}),void b((()=>e.dispose()),2e4)}{const e=await ue(t)
;if(!e)return void te.warn("xhr: failed to convert blob to binary text");r=e}}const o=W(r,t);o.forEach(((e,t)=>{s("onpartial",{partial:e,index:t,length:o.length})}))})(i,parseInt(e.partialSize),r))}return t},p=qe({threads:1}),f=e=>t=>p.add((()=>e(t)));return(async()=>{e.method=e.method||"GET";const{done:a}=await fr(e.url,e.method),c=async e=>{await r("ondone",e),a()},A={onload:f((async()=>{let o=u(!0)
;o.status>0&&(o.status<200||o.status>=300)&&i>0?Gr(e,t,n,i-1,r,s):(e.partialSize&&(o=await h(o)),await r("onload",o),4==o.readyState&&await c(o))})),onerror:f((async()=>{const o=u();4==o.readyState&&200!=o.status&&0!=o.status&&i>0?Gr(e,t,n,i-1,r,s):(await r("onerror",o),await c(o))})),onloadstart:f((async()=>{await s("onloadstart",(()=>u()))})),onreadystatechange:f((async()=>{await s("onreadystatechange",(async()=>{let e=u();return e=await h(e),e}))})),onredirect:f((async()=>{
await s("onredirect",(()=>u()))})),onprogress:f((async e=>{await s("onprogress",(async()=>{let t=u();return t=await h(t),g(e,t)}))})),ontimeout:f((async()=>{const e=u();await r("ontimeout"),await c(e)})),onabort:f((async()=>{const e=vr("aborted");await r("onabort"),await c(e)}))},p={onuploadprogress:f((async e=>{await s("onuploadprogress",(async()=>g(e)))}))},m=0==Object.keys(A).concat(["ondone"]).filter((e=>!!t[e])).length;if(m)throw new Error("Synchronous XHR is not supported anymore")
;const g=(e,t)=>{let n,i,r,s,o,a;try{if(e.lengthComputable||e.total>0)n=e.loaded,i=e.total;else if(t){const r=!d.responseType||["","text"].includes(d.responseType)?d.responseText:null;let s=Number(kr(t.responseHeaders)["content-length"]||"");const o=t.readyState>2&&r?r.length:0;0==s&&(s=-1),n=e.loaded||o,i=e.total||s}s=e.lengthComputable,r=n,o=n,a=i}catch(e){}return Object.assign(t||{},{lengthComputable:s,loaded:r,done:n,position:o,total:i,totalSize:a})
},_=["ontimeout","onload","onerror","onabort"];Object.keys(A).forEach((e=>{(t[e]||_.includes(e))&&(d[e]=A[e])}));const b={onuploadprogress:"onprogress"};d.upload&&Object.keys(p).forEach((e=>{const n=b[e];n&&t[e]&&(d.upload[n]=p[e])}));try{let t;if(d.open(e.method,e.url,!m,e.user,e.password),e.headers){const{forbidden:n,regular:i}=br(e.headers);t={...i,...n}}(e.nocache||e.revalidate)&&(t=t||{},e.nocache?t={...t,...gr}:e.revalidate&&(t={...t,..._r})),t&&Object.keys(t).forEach((e=>{try{
d.setRequestHeader(e,t[e])}catch(n){te.warn("xhr: rejected header",e,t[e])}})),void 0!==e.overrideMimeType&&d.overrideMimeType(e.overrideMimeType),e.partialSize?["arraybuffer","blob"].includes(o)?d.responseType=e.responseType="blob":delete e.responseType:void 0!==e.responseType&&(l=e.responseType.toLowerCase(),"xml"!=l&&"headers"!=l&&"stream"!=l&&(d.responseType=l)),void 0!==e.timeout&&(d.timeout=e.timeout),
void 0!==e.data?wr(e.data)&&"typified"===e.data_type?d.send(yr(e.data)):"string"==typeof e.data?d.send(e.data):d.send(JSON.stringify(e.data)):d.send()}catch(e){const t=e;te.error(t.stack);const n=vr(t.message);r("onerror",n),await c(n)}})(),{abort:function(){d.abort()}}};var Zr={},Sr=Zr.util=Zr.util||{};Sr.isArrayBuffer=function(e){return"undefined"!=typeof ArrayBuffer&&e instanceof ArrayBuffer},Sr.isArrayBufferView=function(e){return e&&Sr.isArrayBuffer(e.buffer)&&void 0!==e.byteLength},
Sr.ByteBuffer=n,Sr.ByteStringBuffer=n,Sr.ByteStringBuffer.prototype._optimizeConstructedString=function(e){this._constructedStringLength+=e,this._constructedStringLength>4096&&(this.data.substr(0,1),this._constructedStringLength=0)},Sr.ByteStringBuffer.prototype.length=function(){return this.data.length-this.read},Sr.ByteStringBuffer.prototype.isEmpty=function(){return this.length()<=0},Sr.ByteStringBuffer.prototype.putByte=function(e){return this.putBytes(String.fromCharCode(e))},
Sr.ByteStringBuffer.prototype.fillWithByte=function(e,t){e=String.fromCharCode(e);for(var n=this.data;t>0;)1&t&&(n+=e),(t>>>=1)>0&&(e+=e);return this.data=n,this._optimizeConstructedString(t),this},Sr.ByteStringBuffer.prototype.putBytes=function(e){return this.data+=e,this._optimizeConstructedString(e.length),this},Sr.ByteStringBuffer.prototype.putString=function(e){return this.putBytes(Sr.encodeUtf8(e))},Sr.ByteStringBuffer.prototype.putInt16=function(e){
return this.putBytes(String.fromCharCode(e>>8&255)+String.fromCharCode(255&e))},Sr.ByteStringBuffer.prototype.putInt24=function(e){return this.putBytes(String.fromCharCode(e>>16&255)+String.fromCharCode(e>>8&255)+String.fromCharCode(255&e))},Sr.ByteStringBuffer.prototype.putInt32=function(e){return this.putBytes(String.fromCharCode(e>>24&255)+String.fromCharCode(e>>16&255)+String.fromCharCode(e>>8&255)+String.fromCharCode(255&e))},Sr.ByteStringBuffer.prototype.putInt16Le=function(e){
return this.putBytes(String.fromCharCode(255&e)+String.fromCharCode(e>>8&255))},Sr.ByteStringBuffer.prototype.putInt24Le=function(e){return this.putBytes(String.fromCharCode(255&e)+String.fromCharCode(e>>8&255)+String.fromCharCode(e>>16&255))},Sr.ByteStringBuffer.prototype.putInt32Le=function(e){return this.putBytes(String.fromCharCode(255&e)+String.fromCharCode(e>>8&255)+String.fromCharCode(e>>16&255)+String.fromCharCode(e>>24&255))},Sr.ByteStringBuffer.prototype.putInt=function(e,t){var n=""
;do{t-=8,n+=String.fromCharCode(e>>t&255)}while(t>0);return this.putBytes(n)},Sr.ByteStringBuffer.prototype.putSignedInt=function(e,t){return e<0&&(e+=2<<t-1),this.putInt(e,t)},Sr.ByteStringBuffer.prototype.putBuffer=function(e){return this.putBytes(e.getBytes())},Sr.ByteStringBuffer.prototype.getByte=function(){return this.data.charCodeAt(this.read++)},Sr.ByteStringBuffer.prototype.getInt16=function(){var e=this.data.charCodeAt(this.read)<<8^this.data.charCodeAt(this.read+1)
;return this.read+=2,e},Sr.ByteStringBuffer.prototype.getInt24=function(){var e=this.data.charCodeAt(this.read)<<16^this.data.charCodeAt(this.read+1)<<8^this.data.charCodeAt(this.read+2);return this.read+=3,e},Sr.ByteStringBuffer.prototype.getInt32=function(){var e=this.data.charCodeAt(this.read)<<24^this.data.charCodeAt(this.read+1)<<16^this.data.charCodeAt(this.read+2)<<8^this.data.charCodeAt(this.read+3);return this.read+=4,e},Sr.ByteStringBuffer.prototype.getInt16Le=function(){
var e=this.data.charCodeAt(this.read)^this.data.charCodeAt(this.read+1)<<8;return this.read+=2,e},Sr.ByteStringBuffer.prototype.getInt24Le=function(){var e=this.data.charCodeAt(this.read)^this.data.charCodeAt(this.read+1)<<8^this.data.charCodeAt(this.read+2)<<16;return this.read+=3,e},Sr.ByteStringBuffer.prototype.getInt32Le=function(){var e=this.data.charCodeAt(this.read)^this.data.charCodeAt(this.read+1)<<8^this.data.charCodeAt(this.read+2)<<16^this.data.charCodeAt(this.read+3)<<24
;return this.read+=4,e},Sr.ByteStringBuffer.prototype.getInt=function(e){var t=0;do{t=(t<<8)+this.data.charCodeAt(this.read++),e-=8}while(e>0);return t},Sr.ByteStringBuffer.prototype.getSignedInt=function(e){var t=this.getInt(e),n=2<<e-2;return t>=n&&(t-=n<<1),t},Sr.ByteStringBuffer.prototype.getBytes=function(e){var t;return e?(e=Math.min(this.length(),e),t=this.data.slice(this.read,this.read+e),this.read+=e):0===e?t="":(t=0===this.read?this.data:this.data.slice(this.read),this.clear()),t},
Sr.ByteStringBuffer.prototype.bytes=function(e){return void 0===e?this.data.slice(this.read):this.data.slice(this.read,this.read+e)},Sr.ByteStringBuffer.prototype.at=function(e){return this.data.charCodeAt(this.read+e)},Sr.ByteStringBuffer.prototype.setAt=function(e,t){return this.data=this.data.substr(0,this.read+e)+String.fromCharCode(t)+this.data.substr(this.read+e+1),this},Sr.ByteStringBuffer.prototype.last=function(){return this.data.charCodeAt(this.data.length-1)},
Sr.ByteStringBuffer.prototype.copy=function(){var e=Sr.createBuffer(this.data);return e.read=this.read,e},Sr.ByteStringBuffer.prototype.compact=function(){return this.read>0&&(this.data=this.data.slice(this.read),this.read=0),this},Sr.ByteStringBuffer.prototype.clear=function(){return this.data="",this.read=0,this},Sr.ByteStringBuffer.prototype.truncate=function(e){var t=Math.max(0,this.length()-e);return this.data=this.data.substr(this.read,t),this.read=0,this},
Sr.ByteStringBuffer.prototype.toHex=function(){for(var e="",t=this.read;t<this.data.length;++t){var n=this.data.charCodeAt(t);n<16&&(e+="0"),e+=n.toString(16)}return e},Sr.ByteStringBuffer.prototype.toString=function(){return Sr.decodeUtf8(this.bytes())},Sr.createBuffer=function(e,t){return t=t||"raw",void 0!==e&&"utf8"===t&&(e=Sr.encodeUtf8(e)),new Sr.ByteBuffer(e)},Sr.fillString=function(e,t){for(var n="";t>0;)1&t&&(n+=e),(t>>>=1)>0&&(e+=e);return n},Sr.encodeUtf8=function(e){
return unescape(encodeURIComponent(e))},Sr.decodeUtf8=function(e){return decodeURIComponent(escape(e))};var Br=Zr.sha256=Zr.sha256||{};Zr.md=Zr.md||{},Zr.md.algorithms=Zr.md.algorithms||{},Zr.md.sha256=Zr.md.algorithms.sha256=Br,Br.create=function(){Ir||(Tr=String.fromCharCode(128),Tr+=Zr.util.fillString(String.fromCharCode(0),64),
Ur=[1116352408,1899447441,3049323471,3921009573,961987163,1508970993,2453635748,2870763221,3624381080,310598401,607225278,1426881987,1925078388,2162078206,2614888103,3248222580,3835390401,4022224774,264347078,604807628,770255983,1249150122,1555081692,1996064986,2554220882,2821834349,2952996808,3210313671,3336571891,3584528711,113926993,338241895,666307205,773529912,1294757372,1396182291,1695183700,1986661051,2177026350,2456956037,2730485921,2820302411,3259730800,3345764771,3516065817,3600352804,4094571909,275423344,430227734,506948616,659060556,883997877,958139571,1322822218,1537002063,1747873779,1955562222,2024104815,2227730452,2361852424,2428436474,2756734187,3204031479,3329325298],
Ir=!0);var e=null,t=Zr.util.createBuffer(),n=new Array(64),r={algorithm:"sha256",blockLength:64,digestLength:32,messageLength:0,messageLength64:[0,0],start:function(){return r.messageLength=0,r.messageLength64=[0,0],t=Zr.util.createBuffer(),e={h0:1779033703,h1:3144134277,h2:1013904242,h3:2773480762,h4:1359893119,h5:2600822924,h6:528734635,h7:1541459225},r}};return r.start(),r.update=function(s,o){return"utf8"===o&&(s=Zr.util.encodeUtf8(s)),r.messageLength+=s.length,
r.messageLength64[0]+=s.length/4294967296>>>0,r.messageLength64[1]+=s.length>>>0,t.putBytes(s),i(e,n,t),(t.read>2048||0===t.length())&&t.compact(),r},r.digest=function(){var s=Zr.util.createBuffer();s.putBytes(t.bytes()),s.putBytes(Tr.substr(0,64-(r.messageLength64[1]+8&63))),s.putInt32(r.messageLength64[0]<<3|r.messageLength64[0]>>>28),s.putInt32(r.messageLength64[1]<<3);var o={h0:e.h0,h1:e.h1,h2:e.h2,h3:e.h3,h4:e.h4,h5:e.h5,h6:e.h6,h7:e.h7};i(o,n,s);var a=Zr.util.createBuffer()
;return a.putInt32(o.h0),a.putInt32(o.h1),a.putInt32(o.h2),a.putInt32(o.h3),a.putInt32(o.h4),a.putInt32(o.h5),a.putInt32(o.h6),a.putInt32(o.h7),a},r};var Tr=null,Ir=!1,Ur=null;Sr.hasWideChar=function(e){for(var t=0;t<e.length;t++)if(e.charCodeAt(t)>>>8)return!0;return!1};const Lr=function(e,t){var n=Zr.md.sha256.create();return n.update(e,"UTF-8"==t||void 0===t&&Sr.hasWideChar(e)?"utf8":void 0),n.digest().toHex()},Fr=e=>{if(!x)throw new Error("DOMParser not available")
;return(new x).parseFromString(e,"text/xml")},Mr=e=>{var t;let n;return e&&(n=(null===(t=e.firstChild)||void 0===t?void 0:t.nextSibling)?e.firstChild.nextSibling:e.firstChild),n},jr=(e,t)=>{let n,i;if((n=e.getElementsByTagNameNS("*",t)[0])&&(i=n.firstChild))return i.nodeValue||void 0},Dr=async e=>{if(x){const t=Fr(e);let n;if(!t||!(n=Mr(t))||!n.childNodes)return;return(async e=>{const t=[],n=e.getElementsByTagNameNS("*","response");for(let e=0;e<n.length;e++){const i=n[e];let r=jr(i,"href")
;if(null==r)continue;r=r.replace(/\/$/,"");const s=i.getElementsByTagNameNS("*","propstat")[0].getElementsByTagNameNS("*","prop")[0],o=jr(s,"getlastmodified"),a=jr(s,"getetag"),l=parseInt(jr(s,"getcontentlength")||"");if(s.getElementsByTagNameNS("*","resourcetype")[0].getElementsByTagNameNS("*","collection")[0]);else{const e={etag:a,name:r,id:r,modifiedTime:new Date(o||0).getTime(),size:l>=0?l:void 0,removed:-1==l};t.push(e)}}return t})(n)}throw new Error("DOMParser not available")
},Or=async e=>{if(x){const t=Fr(e);let n;if(!t||!(n=Mr(t))||!n.childNodes)return;return(e=>jr(e,"td:cursor"))(n)}throw new Error("DOMParser not available")};let zr;const Pr=qe({threads:1}),Nr=(e,t)=>{const n=(e?e.split("/"):[]).concat(t?[t]:[]).join("/");return n?("/"==n.substr(0,1)?"":"/")+n:""};let Vr=()=>({get:()=>Te.Breach(),set:()=>Te.Breach(),delete:()=>Te.Breach(),clear:()=>Te.Breach()});const Qr=e=>{const t=(e.match(/[\dA-F]{2}/gi)||[]).map((e=>parseInt(e,16)))
;return new Uint8Array(t).buffer},Hr=e=>{const t={type:e,request:e=>{const t=()=>{const t=Te(),n=e=>{te.log("rest service: request failed",e),t.reject(e)},i=Object.assign({},e),r="headers"===i.responseType;return r&&delete i.responseType,Rr(i,{onload:e=>{if([200,201,204,207].includes(e.status)){let n;n=r?kr(e.responseHeaders):e.response,t.resolve({result:n})}else n(e)},onerror:n,ontimeout:()=>n("timed out"),onprogress:e=>t.notify(e),onuploadprogress:e=>t.notify(e)},{internal:!0}),t.promise()}
;return e.no_queue?t():Pr.add(t)},error:t=>{const n=t;let i;if(void 0!==n.status){i=n.status.toString();try{i=i+" | "+n.responseText}catch(e){}}else i=t;ni(e,"error","request: "+i)},wait:e=>(...t)=>e(...t).then((e=>e),(e=>(e=>Te.Breach(e?e.responseText||e.statusText:void 0))(e))),changes:(()=>{let e;return{listen:()=>(e||(e=Te(),t.watch&&t.watch.start()),e.promise()),notify:t=>{e.notify(t)},stop:()=>(t.watch&&t.watch.stop(),Te.Pledge())}})()};return t},qr=e=>{const t=Object.assign({},e),n=t.type
;if(void 0===n)throw new Error("Internal error");let i,r,s=[];const o=e=>{const t={client_id:d.config.client_id,redirect_uri:d.config.redirect_uri,state:r,scope:d.config.scope,refresh_token:e};return d.config.redirect_uri+"?"+vn(t)},a=e=>{let t,n;if(e&&0===e.indexOf(d.config.redirect_uri)&&(n=bn(e))&&("string"!=typeof(i=n)&&(i=i.search?i.search.substring(1):i.hash?i.hash.substring(1):""),t=i.split("&").reduce(((e,t)=>{const n=t.split("=");return e[p(n[0])]=p(n[1]),e
}),{}))&&(t.access_token||t.error)&&t.state===r)return{uid:t.uid,access_token:t.access_token,refresh_token:t.refresh_token,error:t.error};var i};let l;const c={};Object.defineProperty(c,"credentials",{get:()=>(l||(l=Vr(e.type)),l),enumerable:!1});const d=Object.assign(c,e,{...t,config:{...t.config,auth_prefix:"Bearer"},request:e=>Te((async({resolve:t,reject:n})=>{if(!e.no_auth){const t=(await d.credentials.get()).access_token;if(!t)return void n("Authentication failed");e.headers=e.headers||{},
e.headers.Authorization=d.config.auth_prefix+" "+t}t()})).promise().then((()=>t.request(e))),oauth:{run:()=>{if(i)return i;let e=Te();const t=i=e.promise();r="!!"+n+"-"+X();const{redirect_uri:s,refresh_supported:l}=d.config,c=void 0,u=async(t,n)=>{const i=e;e=void 0,await d.credentials.set(n),null==i||i.resolve(),t&&t.close()},A=e=>Te((({resolve:t})=>{Rr({url:e,responseType:"json"},{ondone:e=>t(e)},{internal:!0})})).promise();return d.credentials.get().then((async e=>{const t=e.refresh_token
;if(l&&t){let e,i=1e3,r=4;const s=[200,400,401,403,404,405,406,408,412],a=o(t);for(;!e;)e=await A(a),e&&s.includes(e.status)||!(--r>=0)||(await Pe(i),i=Math.min(3*i,36e5),e=void 0);if(200==e.status){const t=e.response;if(t){if(!t.error&&t.access_token){const{access_token:e,refresh_token:n,basic_auth:i,uid:r}=t;return void u(null,{access_token:e,refresh_token:n,basic_auth:i,uid:r})}ni(n,"error","auth refresh token use: "+(t.error||"!access_token"))}
}else ni(n,"error",`auth refresh token use failed with status ${e.status}`)}})).then((()=>{if(!e)return;if(!l)return Te.Pledge();const t=Te(),i=zr({url:o(),filter:c});return i.promise.progress((t=>{let r;e&&(r=a(t.url))&&(r.error||!r.access_token?(ni(n,"error","auth refresh: "+(r.error||"!access_token")),d.config.refresh_supported=!1):u(i,r))})).always(t.resolve),t.promise()})).then((()=>{if(!e)return;const t=Te(),i=zr({url:d.config.request_uri+"?"+vn({response_type:d.config.response_type,
client_id:d.config.client_id,redirect_uri:d.config.redirect_uri,state:r,scope:d.config.scope}),filter:c});return i.promise.progress((t=>{let r;e&&(r=a(t.url))&&(r.error||!r.access_token?ni(n,"error","auth: "+(r.error||"!access_token")):u(i,r))})).always(t.resolve),t.promise()})).done((()=>{i=void 0,e&&e.reject("auth_failed")})),t},revoke:()=>d.credentials.get().then((e=>{const i=e.access_token;return i?(r=r||"!!"+n+"-"+X(),t.request({method:"GET",retry_auth:!1,url:`${Wr}/revoke?`+vn({token:i,
state:r})}).then((()=>d.oauth.reset()),(()=>d.oauth.reset()))):Te.Breach()})),reset:()=>d.credentials.clear()},wait:e=>t.wait(((...t)=>d.credentials.get().then((n=>{if(n.access_token)return e(...t);{const n=Te();return s.push((()=>n.consume(e(...t)))),d.oauth.run().done((()=>{s.forEach((e=>e())),s=[]})).fail((e=>{n.reject(e)})),n.promise()}}))))});return d},Xr=e=>{let t,n,i,r;const s=Te();let o,a,l,c,d,u=null,h=null
;const f=Object.assign({},e),m=e=>f.wait(((...t)=>v.init().then((()=>e(...t))))),g=(e,t)=>{const n=t||{};return n.set_current_list&&(o={}),v.request({method:"PROPFIND",url:e,headers:{"Content-Type":"text/xml; charset=UTF-8",Depth:void 0!==n.depth?n.depth:1}}).then((async e=>{const t=e.result;if(null==t)return;const i=await Dr(t);if(void 0===i)return;const r=_(i);if(n.set_current_list){const e=await Or(t);e&&(a=e),r.forEach((e=>{o[e.id]=e}))}return r
})).then((e=>void 0===e?Te.Breach("not found"):e))},_=e=>e.map((e=>{const{id:r,...s}=e,o=r.replace(new RegExp("^("+[O(n+t)+"/?",O(i+t)+"/?"].join("|")+")"),"");let a;try{a=p(o)}catch(e){a=r}return{id:o,...s,name:a}})),v=Object.assign(e,{...e,config:{...e.config,watch_interval:36e5,root:void 0,path:void 0},request:e=>(e.fetch=!0,e.anonymous=!0,f.request(e).then((e=>e),(t=>{const n=(null==t?void 0:t.status)||-1;return!t||[429,500].includes(n)?(e.backoff=2*(e.backoff||1e3),
Pe(e.backoff).then((()=>v.request(e)))):404==n?Te.Pledge(t):(v.error(t),Te.Breach(t))}))),init:()=>{if(r)return r;t=Nr(v.config.root,v.config.path),n=v.config.url||"","/"==n.slice(-1)&&(n=n.slice(0,-1));const e=bn(n);if(!e)return Te.Breach("invalid url");i=e.pathname,"/"==i.slice(-1)&&(i=i.slice(0,-1));const o=Te(),a=r=o.promise();return v.request({method:"OPTIONS",url:`${n}/`,responseType:"headers"}).done((e=>{const t=e.result;let n
;t&&(n=t["access-control-allow-methods"])&&n.includes("EDITOR")&&(d=!0)})).always((()=>{g(`${n}${t}/`,{depth:0}).done((()=>{o.resolve(),s.resolve()})).fail((()=>{const e=[];Te.onebyone(t.split("/").filter((e=>e)).map((t=>{e.push(t);const i=e.join("/");return()=>v.request({method:"MKCOL",url:`${n}/${i}/`,headers:{"Content-Type":"text/xml; charset=UTF-8"}}).then((e=>e),(e=>{if(405==((null==e?void 0:e.status)||-1))return Te.Pledge(e)}))}))).done((()=>{o.resolve(),s.resolve()})).fail((()=>{r=void 0,
o.reject()}))}))})),a},list:m((e=>g(`${n}${t}/`,{set_current_list:!0}).then((t=>{const n={};return t.map((t=>{if(!e){if(n[t.id])return;n[t.id]=!0}return{name:t.name,id:t.id,size:t.size||0,etag:t.etag,modified:t.modifiedTime,precision:1e3,removed:t.removed}})).filter((e=>e))})))),get:m((e=>{const i=e.id||e;return v.request({method:"GET",url:n+Nr(t,i),headers:{"Content-Type":"text/xml; charset=UTF-8"},responseType:"arraybuffer"}).then((e=>{const t=e.result;return new Blob([t])}))})),
put:m(((e,i,r)=>{const s=e.id||e;let o,a,l;const c={"Content-Type":"application/octet-stream"};let d=!1;return r&&r.lastModified&&(d=null===h,o=r.lastModified,l=new Date(r.lastModified).toISOString(),a=r.lastModified/1e3,(h||d)&&(c["X-OC-Mtime"]=a)),v.request({method:"PUT",url:n+Nr(t,s),headers:c,data_type:"typified",data:{type:"raw",value:i},responseType:"headers"}).then((e=>{const i=e.result;if(i&&d){let e
;h=!("accepted"!=i["x-oc-mtime"]&&(!i.date||!(e=new Date(i.date).getTime())||e!=o&&e!=Math.floor(a)))}if(!h&&!u&&l){const e=()=>{te.warn("WebDAV: no way to set file modification date! This might cause redundant up and downloads."),u=!0};return v.request({method:"PROPPATCH",url:n+Nr(t,s),headers:{"Content-Type":"text/xml; charset=UTF-8"},
data:['<?xml version="1.0"?>','<d:propertyupdate xmlns:d="DAV:">',"<d:set>","<d:prop>",`<d:getlastmodified>${l}</d:getlastmodified>`,"</d:prop>","</d:set>","</d:propertyupdate>"].join("")}).then((async t=>{const n=t.result;if(null===n)return;const i=await(async e=>{if(x){const t=Fr(e);if(!t)return;return(e=>{var t;let n,i,r,s
;if((n=e.childNodes[0])&&(i=n.getElementsByTagNameNS("*","status")[0])&&(r=null===(t=i.firstChild)||void 0===t?void 0:t.nodeValue)&&(s=r.match(/HTTP\/[0-9.]+ ([1-5][0-9][0-9])/)))return[parseInt(s[1])]})(t)}throw new Error("DOMParser not available")})(n);i&&403===i[0]&&e()}),(()=>(e(),Te.Pledge())))}}))})),delete:m((e=>{const i=e.id||e;return v.request({method:"DELETE",url:n+Nr(t,i),headers:{"Content-Type":"text/xml; charset=UTF-8"}})})),watch:{start:()=>{if(l)return;let e=100;const i=l=X()
;let r=null;const d=()=>{if(c=void 0,l)if(!1===r){const e=o;g(`${n}${t}/`,{set_current_list:!0}).then((()=>{e&&(Object.keys(e).forEach((t=>{const n=o[t],i=e[t];n?i.modifiedTime!=n.modifiedTime&&f.changes.notify({time:n.modifiedTime,name:n.name,id:n.id}):f.changes.notify({time:Date.now(),name:i.name,id:i.id,removed:!0})})),Object.keys(o).forEach((t=>{if(!e[t]){const e=o[t];f.changes.notify({time:e.modifiedTime,name:e.name,id:e.id})}})))})).fail((e=>{te.warn("WebDAV: file changes check failed",e)
})).always((()=>{c=b(d,v.config.watch_interval)}))}else((e,t)=>{const n={"Content-Type":"text/xml; charset=UTF-8",Depth:1,Timeout:90};return t&&(n.Cursor=t),v.request({method:"SUBSCRIBE",url:e,headers:n,no_queue:!0}).then((async e=>{const t=e.result;if(null===t)return Te.Pledge({changes:[],cursor:a});const n=await Dr(t);return void 0!==n?{changes:_(n),cursor:await Or(t)}:void 0})).then((e=>void 0===e?Te.Breach():e))})(`${n}${t}/`,a).then((t=>{r=!0;const n=t.changes;a=t.cursor,e=100,
n.forEach((e=>{f.changes.notify({time:e.modifiedTime,name:e.name,id:e.id,removed:e.removed})}))}),(()=>{if(null!==r)return e*=2,Pe(e);r=!1})).always(d)},u=()=>!l||l!==i;s.promise().then((()=>{u()||m((()=>u()?Te.Breach():(d(),Te.Pledge())))()}))},stop:()=>{l=void 0,c&&(A(c),c=void 0)}},getRemoteUrl:e=>{if(d)return n+Nr(t,e)+"?method=editor#bypass=true"},getRemoteDomains:()=>{var e;return[((null===(e=bn(n))||void 0===e?void 0:e.origin)||"").replace(/^.*:\/\//,"")]}});return v
},Wr="https://accounts.tampermonkey.net/e/oauth2/v1",Yr={drive:()=>{let e;M&&(e=parseInt(M.getItem("gdrive_poll_interval")||""))||(e=18e5);const t=qr(Hr("drive")),n=Object.assign({},t),i="appDataFolder";let r,s;const o=Object.assign(t,{...t,config:{...t.config,redirect_uri:`${Wr}/auth`,refresh_supported:!0,request_uri:"https://accounts.google.com/o/oauth2/v2/auth",client_id:"408438522028-3cgn3t3jas3fak7isbnfod1q4h15g2fv.apps.googleusercontent.com",
scope:"https://www.googleapis.com/auth/drive.appdata",response_type:"token",watch_interval:e},request:e=>n.request(e).then((e=>e),(t=>{const n=(null==t?void 0:t.status)||-1;return!t||[403,429,500].includes(n)?(e.backoff=2*(e.backoff||1e3),Pe(e.backoff).then((()=>o.request(e)))):[400,401].includes(n)?(te.warn("Google Drive: authentication error",t),o.credentials.delete("access_token").then((()=>{if(!e.retry_auth)return e.retry_auth=!0,o.oauth.run().fail((e=>o.error(e))).then((()=>o.request(e)))
}))):404==n?Te.Pledge(t):(o.error(t),Te.Breach(t))})),list:n.wait((e=>{let t=[];const n=Te(),r=e=>"https://www.googleapis.com/drive/v3/files?"+vn({spaces:i,pageToken:e,orderBy:"modifiedTime desc",fields:"nextPageToken, files(id, size, name, modifiedTime, md5Checksum)",pageSize:500}),s=e=>{o.request({method:"GET",url:e,headers:{"Content-Type":"application/json"}}).then((e=>{const i=e.result,o=i?JSON.parse(i):{files:[]};if(t=t.concat(o.files),o.nextPageToken)return s(r(o.nextPageToken))
;n.resolve(t)}))};return s(r()),n.promise().then((t=>{const n={};return t.map((t=>{if(!e){if(n[t.name])return;n[t.name]=!0}return{name:t.name,size:t.size||0,id:t.id,md5:t.md5Checksum,modified:new Date(t.modifiedTime).getTime()}})).filter((e=>e))}))})),get:n.wait((e=>{const t=e.id||e;return o.request({method:"GET",url:"https://www.googleapis.com/drive/v3/files/"+t+"?"+vn({spaces:i,alt:"media"}),responseType:"arraybuffer"}).then((e=>{const t=e.result;return new Blob([t])}))})),
put:n.wait(((e,t,n)=>{const r=e,s=r.name||e,a=r.id,l=X();return Te.Pledge().then((()=>{if(t)return ue(t)})).then((e=>{const t=n&&n.lastModified?new Date(n.lastModified).toISOString():void 0,r=[];return r.push("--"+l),r.push("Content-Type: application/json"),r.push(""),r.push(JSON.stringify({name:s,parents:a?void 0:[i],modifiedTime:t})),r.push("--"+l),e&&(r.push("Content-Type: application/octet-stream"),r.push("Content-Transfer-Encoding: base64"),r.push(""),r.push(re(e)),r.push("--"+l+"--")),
r.push(""),o.request({method:a||!e?"PATCH":"POST",url:"https://www.googleapis.com/"+(e?"upload/":"")+"drive/v3/files"+(a?"/"+a:"")+"?"+vn({uploadType:"multipart"}),headers:{"Content-Type":"multipart/related; boundary="+l},data:r.join("\r\n")})}))})),delete:n.wait((e=>{const t=e.id||e;return o.request({method:"DELETE",url:"https://www.googleapis.com/drive/v3/files/"+t+"?"+vn({spaces:i}),headers:{"Content-Type":"application/json"}})})),revoke:()=>o.oauth.revoke(),compare:(e,t)=>{const n=Te();let i
;return(i=e.md5)&&i==le(t,"utf-8")?n.resolve(!0):n.resolve(!1),n.promise()},watch:{start:()=>{if(r)return;let e;r=!0;const t=()=>{s=null,r&&o.request({method:"GET",url:"https://www.googleapis.com/drive/v3/changes/?"+vn({pageToken:e,spaces:i,pageSize:1e3,includeRemoved:!0}),headers:{"Content-Type":"application/json"}}).then((t=>{const n=t.result;if(!r)return Te.Breach();const i=n?JSON.parse(n):{};if(!(e=i.newStartPageToken))return te.warn("Google Drive: watch token error",n),o.watch.stop()
;i.nextPageToken&&te.warn("Google Drive: too much changes",n),(i.changes||[]).forEach((e=>{let t;const n=e.file;"file"===e.type&&n&&(t=Date.parse(e.time),isNaN(t)&&(t=Date.now()),o.changes.notify({id:n.id,time:t,name:n.name,removed:e.removed}))}))})).fail((e=>{te.warn("Google Drive: file changes check failed",e)})).always((()=>{s=b(t,o.config.watch_interval)}))};n.wait((()=>r?o.request({method:"GET",url:"https://www.googleapis.com/drive/v3/changes/startPageToken",headers:{
"Content-Type":"application/json"}}).then((n=>{const i=n.result,r=i?JSON.parse(i):{};if(!(e=r.startPageToken))return te.warn("Google Drive: watch token error",i),o.watch.stop();t()})):Te.Breach()))()},stop:()=>{r=!1,s&&(A(s),s=null)}},getRemoteUrl:void 0});return o},dropbox:e=>{const t=e.path||"";let n;M&&(n=parseInt(M.getItem("dropbox_poll_interval")||""))||(n=18e5);const i=qr(Hr("dropbox")),r=Object.assign({},i);let s,o,a,l,c=!0;const d=e=>{let n=[];const i=Te(),r=e=>{u.request({method:"POST",
url:"https://api.dropboxapi.com/2/files/list_folder"+(e?"/continue":""),headers:{"Content-Type":"application/json"},data:{path:e?void 0:Nr(t),cursor:e}}).then((e=>{const t=e.result,s=t?JSON.parse(t):{entries:[]};if(n=n.concat(s.entries),s.has_more&&s.cursor)return r(s.cursor);i.resolve({list:n,cursor:s.cursor})})).fail(i.reject)};return c?(c=!1,u.put(".version",new Blob([Jr])).then((()=>{r(e)})).fail(i.reject)):r(e),i.promise()},u=Object.assign(i,{...i,config:{...i.config,
redirect_uri:`${Wr}/auth`,request_uri:"https://www.dropbox.com/oauth2/authorize",client_id:"gq3auc9yym0e21y",response_type:"token",watch_interval:n?Number(n):0},request:e=>r.request(e).then((e=>e),(t=>{const n=(null==t?void 0:t.status)||-1;return!t||[500,429].includes(n)?(e.backoff=2*(e.backoff||1e3),Pe(e.backoff).then((()=>u.request(e)))):[401].includes(n)?(te.warn("Dropbox: authentication error",t),u.credentials.delete("access_token").then((()=>{if(!e.retry_auth)return e.retry_auth=!0,
u.oauth.run().fail((e=>u.error(e))).then((()=>u.request(e)))}))):(u.error(t),Te.Breach(t))})),list:r.wait((e=>d().then((t=>{const n={};return o=t.cursor,t.list.map((t=>{if(!e){if(n[t.name])return;n[t.name]=!0}return{name:t.name,size:t.size,dropbox_hash:t.content_hash,modified:new Date(t.client_modified).getTime(),precision:1e3}})).filter((e=>e))})).always((()=>{s&&o&&(s(),s=null)})))),get:r.wait((e=>{const n=e.name||e;return u.request({method:"POST",
url:"https://content.dropboxapi.com/2/files/download",headers:{"Dropbox-API-Arg":JSON.stringify({path:Nr(t,n)})},responseType:"arraybuffer"}).then((e=>{const t=e.result;return new Blob([t])}))})),put:r.wait(((e,n,i)=>{const r=e.name||e,s=i&&i.lastModified?(new Date(i.lastModified).toISOString().match(/[^:]*:[^:]*:[^:.a-zA_Z]*/)||"")[0]+"Z":void 0;return u.request({method:"POST",url:"https://content.dropboxapi.com/2/files/upload",headers:{"Dropbox-API-Arg":JSON.stringify({path:Nr(t,r),
client_modified:s,mode:"overwrite"}),"Content-Type":"application/octet-stream"},data_type:"typified",data:{type:"raw",value:n}})})),delete:r.wait((e=>{const n=e.name||e;return u.request({method:"POST",url:"https://api.dropboxapi.com/2/files/delete",headers:{"Content-Type":"application/json"},data:{path:Nr(t,n)}})})),revoke:()=>u.credentials.get().then((e=>e.access_token?r.request({method:"POST",url:"https://api.dropboxapi.com/2/auth/token/revoke"}).always((()=>u.oauth.reset())):Te.Breach())),
compare:(e,t)=>{const n=Te(),i=4194304,r=oe(t,{encoding:"utf-8"}),s=[],o=r.byteLength;let a=1;const l=async()=>{if(0==--a){let t=new ArrayBuffer(0);s.forEach((e=>{e&&(t=((e,t)=>{const n=new Uint8Array(e.byteLength+t.byteLength);return n.set(new Uint8Array(e),0),n.set(new Uint8Array(t),e.byteLength),n.buffer})(t,e))}));const i=await ae(t),r=Lr(i,"ASCII");n.resolve(r==e.dropbox_hash)}};for(let e=0,t=0;t<o;t+=i,e++)(e=>{s.push(null),a++,ae(r.slice(t,t+Math.min(i,o-t))).then((t=>{
const n=Lr(t,"ASCII");s[e]=Qr(n),l()}),(()=>{te.warn("Dropbox: unable to calculate SHA-256 hashes"),n.reject()}))})(e);return l(),n.promise()},watch:{start:()=>{if(a)return;a=!0;let e=0;const t=()=>{if(l=null,e=0,a)return o?void u.request({method:"POST",url:"https://notify.dropboxapi.com/2/files/list_folder/longpoll",headers:{"Content-Type":"application/json"},no_auth:!0,no_queue:!0,data:{cursor:o,timeout:180}}).then((t=>{const n=t.result;if(!a)return Te.Breach();const i=n?JSON.parse(n):{}
;return i.backoff&&(e=1e3*i.backoff),i.changes?Pe(6e4).then((()=>d(o))).then((e=>(o=e.cursor)?e.list:(te.warn("Dropbox: watch token error",n),u.watch.stop()))):null})).then((e=>{e&&e.forEach((e=>{let t;const n=e[".tag"];["file","deleted"].includes(n)&&(t=Date.parse(e.server_modified),u.changes.notify({id:e.id,time:t,name:e.name,removed:"deleted"==n}))}))})).fail((e=>{te.warn("Dropbox: file changes check failed",e)})).always((()=>{l=b(t,e+u.config.watch_interval)
})):(te.warn("Dropbox: watch token error",o),u.watch.stop())};r.wait((()=>a?(o?t():s=t,Te.Pledge()):Te.Breach()))()},stop:()=>{a=!1,l&&(A(l),l=null)}},getRemoteDomains:()=>["dropbox.com","dropboxapi.com"],getRemoteUrl:void 0});return u},onedrive:e=>{const t=e.path||"";let n,i;n=18e5;const r=qr(Hr("onedrive")),s=Object.assign({},r);let o,a;const l=e=>{const n=Te();let r=[];const s=o=>{c.request({method:"GET",
url:o||"https://api.onedrive.com/v1.0/drive/special"+(t?"/approot:"+Nr(t)+":/children":"/approot/children"),headers:{"Content-Type":"application/json"}}).then((t=>{const o=t.result,a=o?JSON.parse(o):{value:[]};if(r=r.concat(a.value.map((e=>{var t,n,i;const r=(null===(t=null==e?void 0:e.fileSystemInfo)||void 0===t?void 0:t.lastModifiedDateTime)||0,s=(null===(i=null===(n=null==e?void 0:e.file)||void 0===n?void 0:n.hashes)||void 0===i?void 0:i.sha1Hash)||void 0;return{id:e.id,name:e.name,
size:e.size,sha1:s,modified:new Date(r).getTime()}}))),a["@odata.nextLink"])return s(a["@odata.nextLink"]);e.set_current_list&&(i=r),n.resolve(r)})).fail((e=>n.reject(e)))};return s(),n.promise()},c=Object.assign(r,{...r,config:{...r.config,redirect_uri:`${Wr}/auth`,refresh_supported:!0,request_uri:"https://login.live.com/oauth20_authorize.srf",client_id:"000000004C1A3122",response_type:"token",scope:"onedrive.appfolder",watch_interval:18e5},request:e=>s.request(e).then((e=>e),(t=>{
const n=(null==t?void 0:t.status)||-1;return!t||[429,500].includes(n)?(e.backoff=2*(e.backoff||1e3),Pe(e.backoff).then((()=>c.request(e)))):[401,403].includes(n)?(te.warn("OneDrive: authentication error",t),c.credentials.delete("access_token").then((()=>{if(!e.retry_auth)return e.retry_auth=!0,c.oauth.run().fail((e=>c.error(e))).then((()=>c.request(e)))}))):404==n?Te.Pledge(t):(c.error(t),Te.Breach(t))})),list:s.wait((()=>l({set_current_list:!0}))),get:s.wait((e=>{const n=e.name||e
;return c.request({method:"GET",url:"https://api.onedrive.com/v1.0/drive/special/approot:"+Nr(t,f(n))+":/content",responseType:"arraybuffer"}).then((e=>{const t=e.result;return new Blob([t])}))})),put:s.wait(((e,n,i)=>{const r=e.name||e,s=f(r.replace(/[#%<>:"|?*/\\]/g,"-"));return c.request({method:"PUT",url:"https://api.onedrive.com/v1.0/drive/special/approot:"+Nr(t,s)+":/content",headers:{"Content-Type":"application/octet-stream"},data_type:"typified",data:{type:"raw",value:n}}).then((e=>{
const t=i&&i.lastModified?new Date(i.lastModified).toISOString():void 0;if(!t)return e;const n=e.result,r=JSON.parse(n);return c.request({method:"PATCH",url:"https://api.onedrive.com/v1.0/drive/items/"+r.id,headers:{"Content-Type":"application/json"},data:JSON.stringify({fileSystemInfo:{lastModifiedDateTime:t}})})}))})),delete:s.wait((e=>{const n=e.name||e;return c.request({method:"DELETE",url:"https://api.onedrive.com/v1.0/drive/special/approot:"+Nr(t,f(n))})})),revoke:()=>c.oauth.revoke(),
watch:{start:()=>{if(o)return;o=!0;const e=()=>{if(a=null,!o)return;const t=i;l({set_current_list:!0}).then((()=>{if(!t)return;const e={},n={};i.forEach((t=>{e[t.id]=t})),t.forEach((e=>{n[e.id]=e})),Object.keys(n).forEach((t=>{const i=e[t],r=n[t];i?r.modified!=i.modified&&c.changes.notify({time:i.modified,name:i.name}):c.changes.notify({time:Date.now(),name:r.name,removed:!0})})),Object.keys(e).forEach((t=>{if(!n[t]){const n=e[t];c.changes.notify({time:n.modified,name:n.name})}}))})).fail((e=>{
te.warn("OneDrive: file changes check failed",e)})).always((()=>{a=b(e,c.config.watch_interval)}))};s.wait((()=>o?(e(),Te.Pledge()):Te.Breach()))()},stop:()=>{o=!1,a&&(A(a),a=null)}},getRemoteDomains:()=>["onedrive.live.com"],getRemoteUrl:void 0});return c},yandex:()=>{let e;e=18e5;const t=qr(Hr("yandex")),n=Xr(t),i=Object.assign({},n);let r;const s=Object.assign(n,{...t,...n,config:{...n.config,root:"/Programs/Tampermonkey",url:"https://webdav.yandex.ru",redirect_uri:`${Wr}/auth`,
refresh_supported:!0,request_uri:"https://oauth.yandex.com/authorize",client_id:"a591fcd2ccd248f0baa84222898065f4",response_type:"token",auth_prefix:"OAuth",watch_interval:18e5},init:()=>{if(r)return r;const e=Te();return r=e.promise(),s.request({method:"GET",url:"https://cloud-api.yandex.net/v1/disk/"}).done((e=>{const t=e.result,n=t?JSON.parse(t):{}
;n.total_space&&n.used_space&&(n.used_space+5e7>n.total_space?te.warn("Yandex: low disk space warning, only "+(n.total_space-n.used_space)+" bytes available"):te.log("Yandex: "+(n.total_space-n.used_space)+" bytes on disk available!"))})).always((()=>{e.consume(i.init())})),r},getRemoteDomains:()=>["disk.yandex.com"],getRemoteUrl:void 0,list:e=>i.list(e).then((e=>e.map((e=>(e.md5=e.etag,e))))),request:e=>(()=>{const t=e.headers=e.headers||{};if(t["X-Requested-With"]="XMLHttpRequest",
"PUT"==e.method&&wr(e.data)&&"raw"==e.data.type&&e.data.value){const n=Te();return ue(e.data.value).then((e=>{const n=e||"";t.Etag=le(n),t.Sha256=Lr(n,"ASCII")})).always(n.resolve),n.promise()}return Te.Pledge()})().then((()=>i.request(e))).then((e=>e),(t=>{const n=(null==t?void 0:t.status)||-1;return[401].includes(n)?(te.warn("Yandex: authentication error",t),s.credentials.delete("access_token").then((()=>{if(!e.retry_auth)return e.retry_auth=!0,
s.oauth.run().fail((e=>s.error(e))).then((()=>i.request(e)))}))):t})),compare:(e,t)=>{const n=Te();let i;return(i=e.md5)&&i==le(t,"utf-8")?n.resolve(!0):n.resolve(!1),n.promise()},revoke:()=>s.oauth.revoke()});return s},webdav:e=>{let t;t=18e5;const n=e.url;if(n){const t=n.toLowerCase();t.startsWith("webdav")?e.url=n.replace(/^webdav/i,"http"):t.startsWith("http")||(e.url=`http://${n}`)}const i=Xr((e=>{const t=Object.assign({},e);if(void 0===t.type)throw new Error("Internal error")
;const n=Object.assign(e,{...t,config:{...t.config},credentials:{get:()=>Te.Pledge({basic_auth:n.config.basic_auth}),set:()=>Te.Breach(),delete:e=>Te((({resolve:t,reject:i})=>{"basic_auth"===e?(delete n.config[e],t()):i()})).promise(),clear:()=>Te.Breach()},request:e=>Te((async({resolve:t,reject:i})=>{if(!e.no_auth){const t=(await n.credentials.get()).basic_auth;if(!t)return void i("Authentication failed");e.headers=e.headers||{},e.headers.Authorization="Basic "+t}t()
})).promise().then((()=>t.request(e))).then((e=>e),(t=>{if(!e.no_auth){const e=(null==t?void 0:t.status)||-1;[401].includes(e)&&(te.warn("basic auth: authentication error",t),n.credentials.delete("basic_auth"))}return t})),wait:e=>t.wait(((...t)=>e(...t)))});return n})(Hr("webdav")));return Object.assign(i,{...i,config:{...i.config,root:"Tampermonkey",watch_interval:18e5,...e}})}};let Jr;Object.keys(Yr);const Kr=new ze,$r=(e,t)=>window.sendMessage(e,t),es={images:{origin:Xt.images.origin,
brand:Xt.images.brand,get:function(e){return{about:"info-circle blue",bug:"bug",button_ok:"check green",cancel:"times red",check:"badge-check",clock:"clock green",cloud:"cloud",critical:"exclamation-triangle orange",contrib:"heart",db:"database grey",delete:"trash-alt",download:"spinner rotate",edit:"edit",edit_add:"plus-square",editor_cancel:"undo",enabler:"angle-right",enabler_enabled:"angle-down",error:"bell red",exit:"times",filesave:"save",filter:"filter",flag:"flag",
encrypted:"lock orange",save_to_disk:"download",help:"question-square",home:"home",import:"upload",incognito:"eye-slash",info:"info-square",no_script:"info",lock:"cog",menu_cmd:"cogs",ctx_exec:"play-circle",mobile:"mobile-alt",no:"minus-circle red",no_domain:"thumbs-down red",open:"folder-open",question_mark:"question-circle",resources:"cloud purple",script_add:"plus-square",script_cancel:"industry-alt",script_download:"file-code purple",script_search:"search",tags:"tags",track:"upload",
trash:"trash-alt",permissionless:"star-exclamation green",update:"sync",updatable:"arrow-circle-up green",utilities:"cog",web:"globe blue",windowlist:"window-restore grey",yes_domain:"thumbs-up green"}[e]||""}},formatBytes:(e,t)=>{if(0==e)return"0 Byte";const n=void 0===t?3:t,i=[e=>xt("0number0_Bytes",e),e=>xt("0number0_KB",e),e=>xt("0number0_MB",e),e=>xt("0number0_GB",e),e=>xt("0number0_TB",e)],r=Math.max(Math.min(Math.floor(Math.log(e)/Math.log(1e3)),i.length-1),0)
;return i[r]((0===t?Math.round:e=>e)(e/Math.pow(1e3,r)).toFixed(n))}},ts="monkey_clip",ns=es.images,is=new ze,rs=[{id:"L001",get question(){return xt("There_are_no_active_scripts__Do_you_want_to_search_for_userscripts_")},tags:["FirstSteps"],url:(e=>{const t=e.www;return`${e.protocol}//${t?t+".":""}${e.domain}`})({protocol:"https:",www:"www",api:"api",domain:"userscript.zone"})+"?"+vn({utm_source:"ext",utm_medium:"clip".substr(0,3),utm_campaign:Se.short_id})},{id:"Q101",get question(){
return xt("Do_you_need_help_working_with_Tampermonkey_")},tags:["General","FirstSteps"]},{id:"Q102",get question(){return xt("Do_you_need_help_installing_new_scripts_to_Tampermonkey_")},tags:["ScriptManagement","FirstSteps"]},{id:"Q103",get question(){return xt("Would_you_like_to_know_how_to_overwrite_or_extend_a_script_s_includes_and_or_excludes_")},tags:["ScriptManagement","Customization"]},{id:"Q105",get question(){
return xt("Do_you_need_help_syncing_all_your_installed_scripts_to_another_browser_")},tags:["ScriptManagement","Sync"]},{id:"Q106",get question(){return xt("Would_you_like_to_learn_how_to_export_and_import_your_scripts_")},tags:["ScriptManagement","Sync"]},{id:"Q204",get question(){return xt("Do_you_want_to_know_how_to_allow_Tampermonkey_access_to_local_file_URIs_")},tags:["ExtensionSettings","SecurityPrivacy"]},{id:"Q303",get question(){
return xt("One_of_your_scripts_is_blacklisted__Would_you_like_to_know_why_")},tags:["Blacklisted"]},{id:"Q400",get question(){return xt("Do_you_need_help_viewing_and_editing_values_stored_by_a_userscript_")},tags:["ScriptManagement","Customization","ScriptSettings"]},{id:"Q402",get question(){return xt("Do_you_want_to_use_an_external_editor_to_edit_your_scripts__nWould_you_like_to_know_how_to_set_this_up_")},tags:["ScriptManagement","Customization"]},{id:"Q404",get question(){
return xt("Are_you_unsure_about_what__sandbox_value_to_use_")},tags:["ScriptManagement","Customization"]},{id:"Q600",get question(){return xt("Do_you_need_help_finding_Tampermonkey_s_console_output_")},tags:["Troubleshooting"]
}].filter((e=>!!e)),ss=['<div class="monkey-clip">','<div class="speech-bubble">','<div class="header"></div>','<button class="close" type="button"><svg width="1em" height="1em" viewBox="0 0 24 24" fill="none" class="frame-11g4mt0 e13lhb5m0"><path fill-rule="evenodd" clip-rule="evenodd" d="M6.293 6.293a1 1 0 0 1 1.414 0L12 10.586l4.293-4.293a1 1 0 1 1 1.414 1.414L13.414 12l4.293 4.293a1 1 0 0 1-1.414 1.414L12 13.414l-4.293 4.293a1 1 0 0 1-1.414-1.414L10.586 12 6.293 7.707a1 1 0 0 1 0-1.414Z" fill="currentColor"></path></svg></button><a class="yes" href="#">','<div class="help-text"></div>','</a><div class="clickable disable"></div>',"</div>",`<img src="${ns.brand("monkey")}" alt="Tampermonkey Bot" class="helper-image">`,"</div>"]
;let os;const as=e=>{if(M)try{M.setItem(ts,JSON.stringify(e))}catch(e){console.error(e)}},ls=(()=>{let e;const t=[],n=(()=>{if(M)try{const e=M.getItem(ts);return e?JSON.parse(e):{enabled:!0,lastShown:0,shown:{}}}catch(e){console.error(e)}return{enabled:!1,lastShown:0,shown:{}}})(),i=e=>{const i=Object.keys(n.shown);return(e=>{const t=new Set;return e.forEach((e=>{rs.filter((t=>t.tags.includes(e))).forEach((e=>t.add(e)))})),Array.from(t)})(e).filter((({id:e})=>!t.includes(e)&&!i.includes(e)))
},r={init:()=>{if(!os){if(!n.enabled)return;os=It(ss.join("")).hide(),It("body").append(os),is.on("numberOfScripts",(e=>{const t=[];0!==e.count&&0!==e.enabled||t.push("FirstSteps"),e.blacklisted>0&&t.push("Blacklisted");const n=Y(i(t))[0];n&&r.show(n)})),is.on("scriptEditorOpened",(e=>{if("new-user-script"==e.uuid)return;const t=Y(i(["Customization","ScriptSettings"]))[0];t&&r.show(t)})),is.on("storageEditorOpened",(()=>{const e=Y(i(["ScriptSettings"]))[0];e&&r.show(e)})),
os.find(".header").text(xt("0name0_Your_service_bot",xt("Tam"))),os.find(".yes").on("click",(function(e){const t=this.getAttribute("href");t&&(window.open(t,"_blank"),e.preventDefault()),r.close()}));const t=os.find(".no").text(xt("Close")),s=os.find(".close").attr("title",xt("Close"));It(t,s).on("click",(t=>{t.preventDefault(),e&&(n.shown[e]={date:Date.now()},as(n)),r.close()})),os.find(".disable").text(xt("Disable")).on("click",(e=>{e.preventDefault(),n.enabled=!1,as(n),r.close()})),
window.setTimeout((()=>{const e=i(["General","Sync","ExtensionSettings","SecurityPrivacy","Troubleshooting"]),t=Y(e)[0];t&&r.show(t)}),1e3)}},show:({id:i,url:r,question:s})=>{e||n.enabled&&(n.lastShown=Date.now(),as(n),t.push(i),e=i,os.find(".help-text").text(s),os.find(".yes").attr("href",r||`https://www.tampermonkey.net/faq.php#${e}`),os.fadeIn(1e3))},close:()=>{e=void 0,os.fadeOut(1e3)}};return r})(),cs={glog(e){if(e<1)throw new Error("glog("+e+")");return cs.LOG_TABLE[e]},gexp(e){
for(;e<0;)e+=255;for(;e>=256;)e-=255;return cs.EXP_TABLE[e]},EXP_TABLE:new Array(256),LOG_TABLE:new Array(256)};for(let e=0;e<8;e++)cs.EXP_TABLE[e]=1<<e;for(let e=8;e<256;e++)cs.EXP_TABLE[e]=cs.EXP_TABLE[e-4]^cs.EXP_TABLE[e-5]^cs.EXP_TABLE[e-6]^cs.EXP_TABLE[e-8];for(let e=0;e<255;e++)cs.LOG_TABLE[cs.EXP_TABLE[e]]=e;class ds{constructor(e,t){if(null==e.length)throw new Error(e.length+"/"+t);let n=0;for(;n<e.length&&0===e[n];)n++;this.num=new Array(e.length-n+t)
;for(let t=0;t<e.length-n;t++)this.num[t]=e[t+n]}get(e){return this.num[e]}getLength(){return this.num.length}multiply(e){const t=new Array(this.getLength()+e.getLength()-1);for(let n=0;n<this.getLength();n++)for(let i=0;i<e.getLength();i++)t[n+i]^=cs.gexp(cs.glog(this.get(n))+cs.glog(e.get(i)));return new ds(t,0)}mod(e){if(this.getLength()-e.getLength()<0)return this;const t=cs.glog(this.get(0))-cs.glog(e.get(0)),n=new Array(this.getLength());for(let e=0;e<this.getLength();e++)n[e]=this.get(e)
;for(let i=0;i<e.getLength();i++)n[i]^=cs.gexp(cs.glog(e.get(i))+t);return new ds(n,0).mod(e)}}const us={
PATTERN_POSITION_TABLE:[[],[6,18],[6,22],[6,26],[6,30],[6,34],[6,22,38],[6,24,42],[6,26,46],[6,28,50],[6,30,54],[6,32,58],[6,34,62],[6,26,46,66],[6,26,48,70],[6,26,50,74],[6,30,54,78],[6,30,56,82],[6,30,58,86],[6,34,62,90],[6,28,50,72,94],[6,26,50,74,98],[6,30,54,78,102],[6,28,54,80,106],[6,32,58,84,110],[6,30,58,86,114],[6,34,62,90,118],[6,26,50,74,98,122],[6,30,54,78,102,126],[6,26,52,78,104,130],[6,30,56,82,108,134],[6,34,60,86,112,138],[6,30,58,86,114,142],[6,34,62,90,118,146],[6,30,54,78,102,126,150],[6,24,50,76,102,128,154],[6,28,54,80,106,132,158],[6,32,58,84,110,136,162],[6,26,54,82,110,138,166],[6,30,58,86,114,142,170]],
G15:1335,G18:7973,G15_MASK:21522,getBCHTypeInfo(e){let t=e<<10;for(;us.getBCHDigit(t)-us.getBCHDigit(us.G15)>=0;)t^=us.G15<<us.getBCHDigit(t)-us.getBCHDigit(us.G15);return(e<<10|t)^us.G15_MASK},getBCHTypeNumber(e){let t=e<<12;for(;us.getBCHDigit(t)-us.getBCHDigit(us.G18)>=0;)t^=us.G18<<us.getBCHDigit(t)-us.getBCHDigit(us.G18);return e<<12|t},getBCHDigit(e){let t=0;for(;0!==e;)t++,e>>>=1;return t},getPatternPosition:e=>us.PATTERN_POSITION_TABLE[e-1],getMask(e,t,n){switch(e){case 0:
return(t+n)%2==0;case 1:return t%2==0;case 2:return n%3==0;case 3:return(t+n)%3==0;case 4:return(Math.floor(t/2)+Math.floor(n/3))%2==0;case 5:return t*n%2+t*n%3==0;case 6:return(t*n%2+t*n%3)%2==0;case 7:return(t*n%3+(t+n)%2)%2==0;default:throw new Error("bad maskPattern:"+e)}},getErrorCorrectPolynomial(e){let t=new ds([1],0);for(let n=0;n<e;n++)t=t.multiply(new ds([1,cs.gexp(n)],0));return t},getLengthInBits(e,t){if(t>=1&&t<10)switch(e){case 1:return 10;case 2:return 9;case 4:case 8:return 8
;default:throw new Error("mode:"+e)}else if(t<27)switch(e){case 1:return 12;case 2:return 11;case 4:return 16;case 8:return 10;default:throw new Error("mode:"+e)}else{if(!(t<41))throw new Error("type:"+t);switch(e){case 1:return 14;case 2:return 13;case 4:return 16;case 8:return 12;default:throw new Error("mode:"+e)}}},getLostPoint(e){const t=e.getModuleCount();let n=0;for(let i=0;i<t;i++)for(let r=0;r<t;r++){let s=0;const o=e.isDark(i,r)
;for(let n=-1;n<=1;n++)if(!(i+n<0||t<=i+n))for(let a=-1;a<=1;a++)r+a<0||t<=r+a||0===n&&0===a||o===e.isDark(i+n,r+a)&&s++;s>5&&(n+=3+s-5)}for(let i=0;i<t-1;i++)for(let r=0;r<t-1;r++){let t=0;e.isDark(i,r)&&t++,e.isDark(i+1,r)&&t++,e.isDark(i,r+1)&&t++,e.isDark(i+1,r+1)&&t++,0!==t&&4!==t||(n+=3)}for(let i=0;i<t;i++)for(let r=0;r<t-6;r++)e.isDark(i,r)&&!e.isDark(i,r+1)&&e.isDark(i,r+2)&&e.isDark(i,r+3)&&e.isDark(i,r+4)&&!e.isDark(i,r+5)&&e.isDark(i,r+6)&&(n+=40)
;for(let i=0;i<t;i++)for(let r=0;r<t-6;r++)e.isDark(r,i)&&!e.isDark(r+1,i)&&e.isDark(r+2,i)&&e.isDark(r+3,i)&&e.isDark(r+4,i)&&!e.isDark(r+5,i)&&e.isDark(r+6,i)&&(n+=40);let i=0;for(let n=0;n<t;n++)for(let r=0;r<t;r++)e.isDark(r,n)&&i++;return n+=Math.abs(100*i/t/t-50)/5*10,n}};class As{getLength(){return this.data.length}write(e){for(let t=0;t<this.data.length;t++)e.put(this.data.charCodeAt(t),8)}constructor(e){this.mode=4,this.data=e}}class hs{constructor(){this.buffer=[],this.length=0}get(e){
const t=Math.floor(e/8);return 1==(this.buffer[t]>>>7-e%8&1)}put(e,t){for(let n=0;n<t;n++)this.putBit(1==(e>>>t-n-1&1))}getLengthInBits(){return this.length}putBit(e){const t=Math.floor(this.length/8);this.buffer.length<=t&&this.buffer.push(0),e&&(this.buffer[t]|=128>>>this.length%8),this.length++}}class ps{constructor(e,t){this.totalCount=e,this.dataCount=t}static getRSBlocks(e,t){const n=this.getRsBlockTable(e,t)
;if(void 0===n)throw new Error("bad rs block @ typeNumber:"+e+"/errorCorrectLevel:"+t);const i=n.length/3,r=[];for(let e=0;e<i;e++){const t=n[3*e],i=n[3*e+1],s=n[3*e+2];for(let e=0;e<t;e++)r.push(new ps(i,s))}return r}static getRsBlockTable(e,t){switch(t){case 1:return this.RS_BLOCK_TABLE[4*(e-1)];case 0:return this.RS_BLOCK_TABLE[4*(e-1)+1];case 3:return this.RS_BLOCK_TABLE[4*(e-1)+2];case 2:return this.RS_BLOCK_TABLE[4*(e-1)+3];default:return}}}
ps.RS_BLOCK_TABLE=[[1,26,19],[1,26,16],[1,26,13],[1,26,9],[1,44,34],[1,44,28],[1,44,22],[1,44,16],[1,70,55],[1,70,44],[2,35,17],[2,35,13],[1,100,80],[2,50,32],[2,50,24],[4,25,9],[1,134,108],[2,67,43],[2,33,15,2,34,16],[2,33,11,2,34,12],[2,86,68],[4,43,27],[4,43,19],[4,43,15],[2,98,78],[4,49,31],[2,32,14,4,33,15],[4,39,13,1,40,14],[2,121,97],[2,60,38,2,61,39],[4,40,18,2,41,19],[4,40,14,2,41,15],[2,146,116],[3,58,36,2,59,37],[4,36,16,4,37,17],[4,36,12,4,37,13],[2,86,68,2,87,69],[4,69,43,1,70,44],[6,43,19,2,44,20],[6,43,15,2,44,16],[4,101,81],[1,80,50,4,81,51],[4,50,22,4,51,23],[3,36,12,8,37,13],[2,116,92,2,117,93],[6,58,36,2,59,37],[4,46,20,6,47,21],[7,42,14,4,43,15],[4,133,107],[8,59,37,1,60,38],[8,44,20,4,45,21],[12,33,11,4,34,12],[3,145,115,1,146,116],[4,64,40,5,65,41],[11,36,16,5,37,17],[11,36,12,5,37,13],[5,109,87,1,110,88],[5,65,41,5,66,42],[5,54,24,7,55,25],[11,36,12],[5,122,98,1,123,99],[7,73,45,3,74,46],[15,43,19,2,44,20],[3,45,15,13,46,16],[1,135,107,5,136,108],[10,74,46,1,75,47],[1,50,22,15,51,23],[2,42,14,17,43,15],[5,150,120,1,151,121],[9,69,43,4,70,44],[17,50,22,1,51,23],[2,42,14,19,43,15],[3,141,113,4,142,114],[3,70,44,11,71,45],[17,47,21,4,48,22],[9,39,13,16,40,14],[3,135,107,5,136,108],[3,67,41,13,68,42],[15,54,24,5,55,25],[15,43,15,10,44,16],[4,144,116,4,145,117],[17,68,42],[17,50,22,6,51,23],[19,46,16,6,47,17],[2,139,111,7,140,112],[17,74,46],[7,54,24,16,55,25],[34,37,13],[4,151,121,5,152,122],[4,75,47,14,76,48],[11,54,24,14,55,25],[16,45,15,14,46,16],[6,147,117,4,148,118],[6,73,45,14,74,46],[11,54,24,16,55,25],[30,46,16,2,47,17],[8,132,106,4,133,107],[8,75,47,13,76,48],[7,54,24,22,55,25],[22,45,15,13,46,16],[10,142,114,2,143,115],[19,74,46,4,75,47],[28,50,22,6,51,23],[33,46,16,4,47,17],[8,152,122,4,153,123],[22,73,45,3,74,46],[8,53,23,26,54,24],[12,45,15,28,46,16],[3,147,117,10,148,118],[3,73,45,23,74,46],[4,54,24,31,55,25],[11,45,15,31,46,16],[7,146,116,7,147,117],[21,73,45,7,74,46],[1,53,23,37,54,24],[19,45,15,26,46,16],[5,145,115,10,146,116],[19,75,47,10,76,48],[15,54,24,25,55,25],[23,45,15,25,46,16],[13,145,115,3,146,116],[2,74,46,29,75,47],[42,54,24,1,55,25],[23,45,15,28,46,16],[17,145,115],[10,74,46,23,75,47],[10,54,24,35,55,25],[19,45,15,35,46,16],[17,145,115,1,146,116],[14,74,46,21,75,47],[29,54,24,19,55,25],[11,45,15,46,46,16],[13,145,115,6,146,116],[14,74,46,23,75,47],[44,54,24,7,55,25],[59,46,16,1,47,17],[12,151,121,7,152,122],[12,75,47,26,76,48],[39,54,24,14,55,25],[22,45,15,41,46,16],[6,151,121,14,152,122],[6,75,47,34,76,48],[46,54,24,10,55,25],[2,45,15,64,46,16],[17,152,122,4,153,123],[29,74,46,14,75,47],[49,54,24,10,55,25],[24,45,15,46,46,16],[4,152,122,18,153,123],[13,74,46,32,75,47],[48,54,24,14,55,25],[42,45,15,32,46,16],[20,147,117,4,148,118],[40,75,47,7,76,48],[43,54,24,22,55,25],[10,45,15,67,46,16],[19,148,118,6,149,119],[18,75,47,31,76,48],[34,54,24,34,55,25],[20,45,15,61,46,16]]
;const fs=ps;class ms{constructor(e,t){this.typeNumber=e,this.errorCorrectLevel=t,this.modules=[],this.moduleCount=0,this.dataCache=null,this.dataList=[]}addData(e){const t=new As(e);this.dataList.push(t),this.dataCache=null}isDark(e,t){if(e<0||this.moduleCount<=e||t<0||this.moduleCount<=t)throw new Error(e+","+t);return this.modules[e][t]}getModuleCount(){return this.moduleCount}make(){if(this.typeNumber<1){let e;for(e=1;e<40;e++){const t=fs.getRSBlocks(e,this.errorCorrectLevel),n=new hs
;let i=0;for(let e=0;e<t.length;e++)i+=t[e].dataCount;for(let t=0;t<this.dataList.length;t++){const i=this.dataList[t];n.put(i.mode,4),n.put(i.getLength(),us.getLengthInBits(i.mode,e)),i.write(n)}if(n.getLengthInBits()<=8*i)break}this.typeNumber=e}this.makeImpl(!1,this.getBestMaskPattern())}makeImpl(e,t){this.moduleCount=4*this.typeNumber+17,this.modules=new Array(this.moduleCount);for(let e=0;e<this.moduleCount;e++){this.modules[e]=new Array(this.moduleCount)
;for(let t=0;t<this.moduleCount;t++)this.modules[e][t]=null}this.setupPositionProbePattern(0,0),this.setupPositionProbePattern(this.moduleCount-7,0),this.setupPositionProbePattern(0,this.moduleCount-7),this.setupPositionAdjustPattern(),this.setupTimingPattern(),this.setupTypeInfo(e,t),this.typeNumber>=7&&this.setupTypeNumber(e),null==this.dataCache&&(this.dataCache=ms.createData(this.typeNumber,this.errorCorrectLevel,this.dataList)),this.mapData(this.dataCache,t)}setupPositionProbePattern(e,t){
for(let n=-1;n<=7;n++)if(!(e+n<=-1||this.moduleCount<=e+n))for(let i=-1;i<=7;i++)t+i<=-1||this.moduleCount<=t+i||(this.modules[e+n][t+i]=n>=0&&n<=6&&(0===i||6===i)||i>=0&&i<=6&&(0===n||6===n)||n>=2&&n<=4&&i>=2&&i<=4)}getBestMaskPattern(){let e=0,t=0;for(let n=0;n<8;n++){this.makeImpl(!0,n);const i=us.getLostPoint(this);(0===n||e>i)&&(e=i,t=n)}return t}createMovieClip(e,t,n){const i=e.createEmptyMovieClip(t,n);this.make();for(let e=0;e<this.modules.length;e++){const t=1*e
;for(let n=0;n<this.modules[e].length;n++){const r=1*n;this.modules[e][n]&&(i.beginFill(0,100),i.moveTo(r,t),i.lineTo(r+1,t),i.lineTo(r+1,t+1),i.lineTo(r,t+1),i.endFill())}}return i}setupTimingPattern(){for(let e=8;e<this.moduleCount-8;e++)null==this.modules[e][6]&&(this.modules[e][6]=e%2==0);for(let e=8;e<this.moduleCount-8;e++)null==this.modules[6][e]&&(this.modules[6][e]=e%2==0)}setupPositionAdjustPattern(){const e=us.getPatternPosition(this.typeNumber)
;for(let t=0;t<e.length;t++)for(let n=0;n<e.length;n++){const i=e[t],r=e[n];if(null==this.modules[i][r])for(let e=-2;e<=2;e++)for(let t=-2;t<=2;t++)this.modules[i+e][r+t]=-2===e||2===e||-2===t||2===t||0===e&&0===t}}setupTypeNumber(e){const t=us.getBCHTypeNumber(this.typeNumber);for(let n=0;n<18;n++){const i=!e&&1==(t>>n&1);this.modules[Math.floor(n/3)][n%3+this.moduleCount-8-3]=i}for(let n=0;n<18;n++){const i=!e&&1==(t>>n&1);this.modules[n%3+this.moduleCount-8-3][Math.floor(n/3)]=i}}
setupTypeInfo(e,t){const n=this.errorCorrectLevel<<3|t,i=us.getBCHTypeInfo(n);for(let t=0;t<15;t++){const n=!e&&1==(i>>t&1);t<6?this.modules[t][8]=n:t<8?this.modules[t+1][8]=n:this.modules[this.moduleCount-15+t][8]=n}for(let t=0;t<15;t++){const n=!e&&1==(i>>t&1);t<8?this.modules[8][this.moduleCount-t-1]=n:t<9?this.modules[8][15-t-1+1]=n:this.modules[8][15-t-1]=n}this.modules[this.moduleCount-8][8]=!e}mapData(e,t){let n=-1,i=this.moduleCount-1,r=7,s=0
;for(let o=this.moduleCount-1;o>0;o-=2)for(6===o&&o--;;){for(let n=0;n<2;n++)if(null==this.modules[i][o-n]){let a=!1;s<e.length&&(a=1==(e[s]>>>r&1)),us.getMask(t,i,o-n)&&(a=!a),this.modules[i][o-n]=a,r--,-1===r&&(s++,r=7)}if(i+=n,i<0||this.moduleCount<=i){i-=n,n=-n;break}}}static createData(e,t,n){const i=fs.getRSBlocks(e,t),r=new hs;for(let t=0;t<n.length;t++){const i=n[t];r.put(i.mode,4),r.put(i.getLength(),us.getLengthInBits(i.mode,e)),i.write(r)}let s=0
;for(let e=0;e<i.length;e++)s+=i[e].dataCount;if(r.getLengthInBits()>8*s)throw new Error("code length overflow. ("+r.getLengthInBits()+">"+8*s+")");for(r.getLengthInBits()+4<=8*s&&r.put(0,4);r.getLengthInBits()%8!=0;)r.putBit(!1);for(;!(r.getLengthInBits()>=8*s||(r.put(ms.PAD0,8),r.getLengthInBits()>=8*s));)r.put(ms.PAD1,8);return ms.createBytes(r,i)}static createBytes(e,t){let n=0,i=0,r=0;const s=new Array(t.length),o=new Array(t.length);for(let a=0;a<t.length;a++){
const l=t[a].dataCount,c=t[a].totalCount-l;i=Math.max(i,l),r=Math.max(r,c),s[a]=new Array(l);for(let t=0;t<s[a].length;t++)s[a][t]=255&e.buffer[t+n];n+=l;const d=us.getErrorCorrectPolynomial(c),u=new ds(s[a],d.getLength()-1).mod(d);o[a]=new Array(d.getLength()-1);for(let e=0;e<o[a].length;e++){const t=e+u.getLength()-o[a].length;o[a][e]=t>=0?u.get(t):0}}let a=0;for(let e=0;e<t.length;e++)a+=t[e].totalCount;const l=new Array(a);let c=0
;for(let e=0;e<i;e++)for(let n=0;n<t.length;n++)e<s[n].length&&(l[c++]=s[n][e]);for(let e=0;e<r;e++)for(let n=0;n<t.length;n++)e<o[n].length&&(l[c++]=o[n][e]);return l}static createCanvas(e){const t=Object.assign({width:256,height:256,correctLevel:2,background:"#ffffff",foreground:"#000000"},e),n=new ms(-1,t.correctLevel);n.addData(t.text),n.make();const i=document.createElement("canvas");i.width=t.width,i.height=t.height;const r=i.getContext("2d")
;if(!r)throw new Error("Unable to get canvas context");const s=t.width/n.getModuleCount(),o=t.height/n.getModuleCount();for(let e=0;e<n.getModuleCount();e++)for(let i=0;i<n.getModuleCount();i++){r.fillStyle=n.isDark(e,i)?t.foreground:t.background;const a=Math.ceil((i+1)*s)-Math.floor(i*s),l=Math.ceil((e+1)*o)-Math.floor(e*o);r.fillRect(Math.round(i*s),Math.round(e*o),a,l)}return i}static setCanvas(e,t){const n=document.getElementById(e)
;if(!n)throw new Error("Unable to find element by the given id!");n.innerHTML="",n.appendChild(ms.createCanvas(t))}}ms.PAD0=236,ms.PAD1=17;const gs=es.images,_s=(e,t,n,i,r)=>{const s=(i.uuid?i.uuid:"")+i.id;t.title=e;const o=xs({after:{image:r||"help"},name:i.name,id:s});o&&n.appendChild(o)},bs=(e,t,n,i,r,s)=>{const o=fe("i","far fa-"+e,t,n,i,!0);if(r&&(o.title=r),o.key=n,o.name=t,s){const e=o.getAttribute("class")||"";o.setAttribute("class",e+" clickable"),o.addEventListener("click",s,!0)}
return o},vs=(e,t,n)=>{const{onClick:i,onAuxClick:r,onDelete:s,disabled:o,onAdd:a,color:l,class:c}=n||{},{bg:d,fg:u,bc:A}=((e,t)=>{const n=t||(e=>Lr(e))(e).substring(0,6),i=(r=n,(299*parseInt(r.substr(0,2),16)+587*parseInt(r.substr(2,2),16)+114*parseInt(r.substr(4,2),16))/1e3>=128?"000000":"FFFFFF");var r;const s=(e=>{const t=(299*parseInt(e.substr(0,2),16)+587*parseInt(e.substr(2,2),16)+114*parseInt(e.substr(4,2),16))/1e3;return t>=220||t<=50?"6d6d6d":""})(n);return{bg:`#${n}`,fg:`#${i}`,
bc:s?`#${s}`:void 0}})(e,l),h=fe("span","tag"+(o?" disabled":"")+(c?" "+c:""),t.uuid,"tag"+t.id,e);if(h.setAttribute("style",`background-color: ${d}; color: ${u}; ${A?"border: 1px solid "+A:""}`),h.textContent=e,o&&h.setAttribute("title",xt("This_tag_is_not_part_of_the_system_tag_list_")),!h.inserted&&i&&h.addEventListener("click",i),!h.inserted&&i&&h.addEventListener("auxclick",r),a){const n=fe("i","far fa-"+gs.get("edit_add"),t.uuid,"tag_add",e);n.setAttribute("title",xt("Add_Tag_to_System")),
h.appendChild(n),n.inserted||n.addEventListener("click",a)}if(s){const n=fe("i","far fa-"+gs.get("delete"),t.uuid,"tag_delete",e);n.setAttribute("title",xt("Delete")),h.appendChild(n),n.inserted||n.addEventListener("click",s)}return h},ws=(e,t,n)=>{const i=(t.uuid?t.uuid:"")+t.id,r=me("div",t.name,i,"input");r.key=t.id;const s=me("input",t.name,i,"input",!0),o=e.split("##");s.name=t.name,s.uuid=t.uuid,s.key=t.id,s.oldvalue=t.value,s.value=null!=t.value?t.value:"",
s.type=t.password?"password":"text",s.setAttribute("spellcheck","false"),t.placeholder&&s.setAttribute("placeholder",t.placeholder),n&&!s.inserted&&s.addEventListener("change",n);const a=fe("span","optiondesc",t.name,i,"s1"),l=me("span",t.name,i,"s2");return a.textContent=o[0]+":",o.length>1&&(l.textContent=o[1]),r.appendChild(a),r.appendChild(s),r.appendChild(l),t.enabledBy&&r.setAttribute("name","enabled_by_"+t.enabledBy),{elem:r,input:s}},ys=(e,t,n,i,r)=>{
const s=(t.uuid?t.uuid:"")+t.id,o=me("div",t.name,s,"outer_dd");o.key=t.id;const a=me("select",t.name,s,"dd",!0);let l=!1,c=t.array&&t.value?t.value.join(","):t.value;if(n&&Object.keys(n).forEach((e=>{const i=me("option",t.name,n[e].name,"dd"+s,!0);i.textContent=n[e].name.replace(/(?:&#x([a-fA-F0-9]+);|&#([0-9]+);)/g,((e,t,n)=>t?String.fromCharCode(parseInt(t,16)):String.fromCharCode(parseInt(n,10))));const r=n[e].value,o=i.value=t.array&&r?r.join(","):r;i.warning=n[e].warning,l|=!!n[e].warning,
n[e].enabledBy&&i.setAttribute("name","enabled_by_"+n[e].enabledBy),t.enabler&&n[e].enable&&i.setAttribute("enables",JSON.stringify(n[e].enable)),o==c&&(i.selected=!0),a.appendChild(i)})),a.key=t.id,a.name=t.name,a.uuid=t.uuid,a.reload=t.reload,a.warning=t.warning,a.oldvalue=t.value,a.valtype="native",a.array=t.array,a.inserted||(i&&a.addEventListener("change",i),l&&r&&a.addEventListener("change",r)),null!==e){const n=fe("span","optiondesc",t.name,s,"inner_dd");n.textContent=e+": ",
o.appendChild(n)}return o.appendChild(a),t.desc&&_s(t.desc,o,o,t),t.enabledBy&&o.setAttribute("name","enabled_by_"+t.enabledBy),{elem:o,select:a}},ks=(e,t,n)=>{const i=(t.uuid?t.uuid:"")+t.id;let r=null;return r=fe("input","button",t.name,i,"bu",!0),r.name=t.name,r.uuid=t.uuid,r.key=t.id,r.type="button",r.value=t.name,r.data=t.data,r.reload=t.reload,r.ignore=t.ignore||t.reload,r.warning=t.warning,t.enabledBy&&r.setAttribute("name","enabled_by_"+t.enabledBy),
!r.inserted&&n&&r.addEventListener("click",n),r},Rs=(e,t,n,i)=>{let r=null;return r=fe("input","button",e,t,"bu",!0),r.name=e,r.key=t,r.type="button",r.value=n,!r.inserted&&i&&r.addEventListener("click",i),r},xs=(e,t)=>{const n=(e.uuid?e.uuid:"")+e.id;let i,r,s;if(r=e.after||e.validation){if(s=e.validation?"validation":"help",t&&(s+=" clickable"),i=fe("span",s,e.name,n,s,!0),r.image){const e=bs(gs.get(r.image),n,"after_icon"),t=[];r.opacity&&t.push("opacity: "+r.opacity),
e.setAttribute("style",t.join(";")),i.appendChild(e)}i&&(t&&i.addEventListener("click",t),r.msg&&i.setAttribute("title",r.msg))}return i},Cs=e=>({"&":"&amp;","<":"&lt;",">":"&gt;"}[e]||e),Es={getInfoFromUrl:e=>{let t;if(-1!=e.search(/\/\^?(http(s|s\?|\.\+)?|\.\*):\/\/(\.\*)*\$?\/?$/)||-1!=e.search(/htt(ps|p):\/\/(\*\/\*|\*)*$/)||-1!=e.search(/\*:\/\/(\*\/\*|\*)*$/)||"*"==e)return{dom:"*",tld:"*"};0==e.search(/\//)?(t=e,t=t.replace(/\([^\)]*\)[\?|\+|\*|\{[^\}]*]*/g,""),
t=t.replace(/\[[^\]]*\][\?|\+|\*|\{[^\}]*]*/g,""),t=t.replace(/^\/|\/$|\^|\$|\\\?.*|#.*|\?|\(|\)|\+|\\|\.\*|/g,"")):t=e,t=t.replace(/^\*:\/\//,"http://"),0!=t.search("http")&&(t="http://"+t);const n=t.split("/");if(n.length<3)return null;const i=n[2].split(".");if(i.length<2)return null;const r=i[i.length-1].split(":")[0];let s=i[i.length-2];"*"!==s&&(s=s.replace(/\*/g,""));const o=[];for(let e=i.length-3;e>=0&&-1==i[e].search("\\*");e--)o.push(i[e]);return{tld:r,dom:s,subdom:o.reverse()}},
getValue:e=>{let t=e.value;if("native"===e.valtype)if("undefined"===t)t=void 0;else if("null"===t)t=null;else try{t=JSON.parse(t)}catch(e){}return t},safeTagsReplace:e=>e.replace(/[&<>]/g,Cs),addClass:(e,t)=>{let n=e.getAttribute("class")||"";const i=new RegExp("[ \t]*"+t+"[ \t]*");-1==n.search(i)&&(n=(n?n+" ":"")+t),e.setAttribute("class",n)},toggleClass:(e,t)=>{let n=e.getAttribute("class")||"";const i=new RegExp("[ \t]*"+t+"[ \t]*");n=-1!=n.search(i)?n.replace(i,""):(n?n+" ":"")+t,
e.setAttribute("class",n)},setHelp:_s,createAfterIcon:xs,createEnabler:(e,t,n,i,r)=>{const s=i.append,o=i.disabled,a=i.title,l=fe("div",(o?"":"clickable ")+"enabler "+e,t,n+"_enabler",s,"wrap");l.appendChild([fe("i","far fa-toggle-on on",t,n+"toggle-on"),fe("i","far fa-toggle-on fa-flip-horizontal off greyed",t,n+"toggle-off")]),i.onf&&l.appendChild(fe("i","far fa-toggle-off fa-flip-horizontal onf",t,n+"toggle-onf")),a&&(l.title=a),l.key=n,l.uuid=t;const c="enabler_enabled"
;return o||l.addEventListener("click",(e=>(It(l).hasClass(c)?It(l).removeClass(c):It(l).addClass(c),r&&window.setTimeout((()=>{r.call(l)}),100),e.stopPropagation(),e.preventDefault(),!1)),!0),l},createImage:(e,t,n,i,r,s)=>{const o=fe("img","icon16",t,n,i,!0);if(o.setAttribute("src",e),o.key=n,r&&(o.title=r),t&&(o.name=t),s){const e=o.getAttribute("class")||"";o.setAttribute("class",e+" clickable"),o.addEventListener("click",s,!0)}return o},createIcon:bs,createFileInput:(e,t,n)=>{
const i=fe("input","import","file",null,null,!0);return i.inserted||(i.type="file",n&&i.addEventListener("change",n)),i},createNamedSettings:(e,t,n)=>{const i=(t.uuid?t.uuid:"")+t.id,r=fe("div","settingsta",t.name,i,"named_wrapper"),s=fe("div","named",t.name,i,"named_settings"),o=[],a=me("span",t.name,i,"s1");return e&&(a.textContent=e+":"),t.desc&&_s(t.desc,a,a,t),r.appendChild(a),r.appendChild(s),r.key=t.id,t.value.forEach((e=>{
const r=fe("div","",t.name+e.name,i,"named",!0),a=fe("div","",t.name+e.name,i,"named_label",!0);a.textContent=e.name,r.appendChild(a);const l=me("textarea",t.name+e.name,i,"textarea",!0);l.setAttribute("spellcheck","false"),l.name=t.name,l.key=t.id,l.named_name=e.name,l.uuid=t.uuid,l.named=!0,l.oldvalue=e.value||"",l.value=e.value||"",n&&!l.inserted&&l.addEventListener("change",n),r.appendChild(l),s.appendChild(r),o.push(l)})),{elem:r,textareas:o,label:a}},createTextarea:(e,t,n)=>{
const i=(t.uuid?t.uuid:"")+t.id,r=me("div",t.name,i,"textarea");r.key=t.id;const s=fe("textarea","settingsta",t.name,i,"textarea",!0);s.setAttribute("spellcheck","false"),s.name=t.name,s.key=t.id,s.uuid=t.uuid,s.json=t.json,s.array=t.array,s.oldvalue=t.value,void 0===t.value||null===t.value?s.value="":t.array?s.value=t.value.join("\n"):t.json?s.value=JSON.stringify(t.value,null,4):s.value=t.value,n&&!s.inserted&&s.addEventListener("change",n);const o=me("span",t.name,i,"s1")
;return e&&(o.textContent=e+":"),t.desc&&_s(t.desc,o,o,t),r.appendChild(o),r.appendChild(s),{elem:r,textarea:s,label:o}},createTag:vs,createTagEditor:(e,t,n,i)=>{const{onTagClick:r,onChange:s,onTagAdd:o,tagsToAdd:a}=i||{},l=(t.uuid?t.uuid:"")+t.id,c=fe("div",t.name,l,"tag_editor");c.key=t.id;const d=fe("textarea","hidden",t.name,l,"textarea",!0);d.setAttribute("spellcheck","false"),d.name=t.name,d.key=t.id,d.uuid=t.uuid,d.oldvalue=t.value,d.value=JSON.stringify(t.value,null,4)
;const u=fe("span","optiondesc",t.name,l,"s1");e&&(u.textContent=e+":"),t.desc&&_s(t.desc,u,u,t);const A=fe("div","tag_editor",t.name,l,"tag_editor",!0),h=Object.entries(n).sort((([e],[t])=>{const n=e.toUpperCase(),i=t.toUpperCase();return n<i?-1:n>i?1:0})),p=(e,i)=>{const{color:a,add:l,click:c,disabled:u}=i,h=vs(e,{...t,id:"editor"+e},{onClick:c?()=>r&&r(e):void 0,class:c?"clickable":void 0,onDelete:()=>{delete n[e],d.value=JSON.stringify(n,null,4),h.remove(),s&&s(n)},
onAdd:l?()=>o&&o(e):void 0,disabled:u,color:a});A.appendChild(h)},f=a?ys(xt("Add_Tag"),{...t,id:"new_tag",value:a[0]||""},a.reduce(((e,t)=>(e[t]={name:t,value:t},e)),{}),null,null):ws(xt("New_Tag"),{...t,id:"new_tag",value:""}),m=me("input","new_tag_add_button",l,"editor"+t.name,!0);return a&&0==a.length?m.setAttribute("disabled","disabled"):m.removeAttribute("disabled"),m.type="button",m.value=xt("Add"),m.addEventListener("click",(function(){const e=a?f.select:f.input,t=e.value
;t&&(n[t]?alert(xt("Tag_Already_Exists")):(a||(e.value=""),p(t,{click:!!r,add:!!o}),n[t]={},d.value=JSON.stringify(n,null,4),s&&s(n)))})),f.elem.appendChild(m),(()=>{for(const[e,t]of h)p(e,t)})(),c.appendChild(u),c.appendChild(A),c.appendChild(f.elem),c.appendChild(d),{elem:c,textarea:d,label:u}},createFileSelect:(e,t,n)=>{const i=(t.uuid?t.uuid:"")+t.id,r=me("input",t.name,i,"file");if(r.inserted||(r.type="file",r.addEventListener("change",(e=>{n(e.target.files)}),!1),
t.accept&&r.setAttribute("accept",t.accept)),e){const n=me("div",t.name,i,"input"),s=me("span",t.name,i,"s1");return s.textContent=e+":",n.appendChild(s),n.appendChild(r),{elem:n,input:r}}return{elem:r}},createInput:ws,createColorChooser:(e,t,n)=>{const i=(t.uuid?t.uuid:"")+t.id,r=ws(e,t,n),s=function(){n&&n.apply(this,arguments);const e=(this.value.match(/[a-fA-F0-9]+/)||"")[0];e&&[3,6].includes(e.length)&&o.setAttribute("style","background-color: #"+e+";")}
;r.input.inserted||r.input.addEventListener("keyup",s);const o=fe("span","color_choosed",t.name,i,"col");return r.col=o,r.elem.appendChild(r.col),s.call(r.input),r},createPassword:(e,t,n)=>{const i=ws(e,t,n);return i.input.setAttribute("type","password"),i},createCheckbox:(e,t,n)=>{const i=(t.uuid?t.uuid:"")+t.id,r=fe("div","checkbox",t.name,i,"cb1");r.key=t.id;const s=me("input",t.name,i,"cb",!0);s.title=t.desc?t.desc:"",s.name=t.name,s.uuid=t.uuid,s.key=t.id,s.reload=t.reload,
s.warning=t.warning,s.oldvalue=t.enabled,s.checked=t.enabled,s.type="checkbox",s.valtype="boolean",n&&!s.inserted&&s.addEventListener("click",n);const o=fe("span","checkbox_desc",t.name,i,"cb2");return o.textContent=e,t.desc&&_s(t.desc,r,o,t),r.appendChild(s),r.appendChild(o),{elem:r,input:s,span:o}},createDropDown:ys,createImageButton:(e,t,n,i,r)=>{let s=null,o=null,a=null;return s=fe("button","imgbutton button",e,t,"bu",!0),o=fe("div","imgbutton_container",e,t,"bu_container"),o.appendChild(s),
s.uuid=e,s.key=t,a=fe("i","imgbutton_image far fa-"+i,e,t,"bu_img",!0),s.appendChild(a),s.title=a.title=a.alt=n,!s.inserted&&r&&s.addEventListener("click",r),o},createImageTextButton:(e,t,n,i,r)=>{const s=fe("button","button imgtextbutton",e,t+n,"itb",!0);if(s.key=t,s.uuid=e,i){const r=bs(gs.get(i),e,t+n+"itb",i);s.appendChild(r)}const o=me("span",e,t+n,"itb");return o.textContent=n,s.appendChild(o),r&&s.addEventListener("click",r),s},createButton:function(e,t){
return"Object"===N(t)?ks.apply(this,arguments):Rs.apply(this,arguments)},createPosition:(e,t,n)=>{const i=(t.uuid?t.uuid:"")+t.id,r=me("div",t.name,i,"pos1"),s=me("select",t.name,i,"pos",!0);for(let e=1;e<=t.posof;e++){const n=me("option",t.name,i,"opt"+e);n.textContent=e,e==t.pos&&(n.selected=!0),s.appendChild(n)}s.key=t.id,s.uuid=t.uuid,s.name=t.name,s.valtype="native",n&&!s.inserted&&s.addEventListener("change",n);const o=fe("span","optiondesc",t.name,i,"pos2");return o.textContent=e,
r.appendChild(o),r.appendChild(s),r},createSearchBox:e=>{const t=fe("div","searchbox","search_inner"),n=fe("div","searchbox_mv","search_inner_mv"),i=fe("input","searchbox_input","search_input"),r=fe("input","searchbox_button","search_button");i.type="text",i.setAttribute("spellcheck","false"),i.value=e,r.type="button",r.value="Go";const s=()=>{const e=i.value;window.location=window.location.origin+window.location.pathname+"?url="+encodeURIComponent(e)};return r.addEventListener("click",s),
i.addEventListener("keyup",(e=>{e&&13==e.keyCode&&s()})),n.appendChild(i),n.appendChild(r),t.appendChild(n),t},createSocialButtons:()=>{const e=[],t=fe("a","","github_link");t.href="https://github.com/derjanb",t.target="_blank";const n=fe("img","icon16","github");n.setAttribute("src",gs.origin("gh")),t.appendChild(n),e.push(t);const i=fe("a","","facebook_link");i.href="https://www.facebook.com/tampermonkey",i.target="_blank";const r=fe("img","icon16","facebook")
;r.setAttribute("src",gs.brand("facebook")),i.appendChild(r),e.push(i);const s=fe("a","","insta_link");s.href="https://www.instagram.com/der_jan_b/",s.target="_blank";const o=fe("img","icon16","instagram");return o.setAttribute("src",gs.brand("instagram")),s.appendChild(o),e.push(s),e},createGobalHint:(e,t)=>{
const{id:n,class:i,text:r,qr:s,title:o,image:a,instant:l,onclick:c,onclose:d,onbuttonclick:u,timeout:A,delay:h,done:p,buttons:f}=e,m=!!s,g="global_hint_"+(i||"warning")+(c?" clickable":""),_=n||Date.now(),b=fe(m?"table":"span",[m?"table noborder":"simple","global_hint",g].join(" "),"globalhint",_),v=me("span","globalhint_c",_),w=me("span","globalhint_t",_);let y,k;if(m){const e=me("tr","globalhint_tr",_);b.appendChild(e)
;const t=fe("td","qr","globalhint_td1",_),n=fe("td","text","globalhint_td2",_),i=me("td","globalhint_td2",_);e.appendChild([t,n,i]),n.appendChild(v),y=me("span","globalhint_mi",_),t.appendChild(y),k=i}else b.appendChild(v),y=k=v;if(o&&(w.title=o),a&&v.appendChild(bs(gs.get(a),"globalhint_"+_,"icon"+_)),w.innerHTML=(e=>{const t=new RegExp(`[${Object.keys(P).map((e=>z(e))).join("")}]`,"g");return e.replace(t,(e=>P[e]||e))})(r).split("\n").join("<br>"),c&&!w.inserted&&w.addEventListener("click",c),
v.appendChild(w),s){const e=fe("div","qr","globalhint_qr",_),{img:t,...n}=s;(async(e,t)=>{let{size:n,text:i,img:r,csize:s,bsize:o,oversample:a,pixelPrecise:l}=t;if(!i)return;let c,d=1,u=n||225,A=n||225;if(s=s||75,o=o||0,l){const e=window.devicePixelRatio;if("number"==typeof e){const t=Math.min(Math.max(1,e),3);d=Math.round(t);const n=d*Math.round(u/t);c=`width: ${d*Math.round(A/t)}px; height: ${n}px;`}}a&&(c=c||`width: ${d*A}px; height: ${d*u}px;`,u*=a,A*=a,s*=a,o*=a);const h=ms.createCanvas({
width:A,height:u,correctLevel:r?3:1,background:"#ffffff",foreground:"#000000",text:i});if(c&&h.setAttribute("style",c),e.append(h),r){const e=h.getContext("2d");if(e){let t,n;if(o&&(t=(A-s-o)/2,e.fillStyle="#ffffff",e.fillRect(t,t,s+o,s+o)),r.startsWith("data:image/svg")){const e=new Image;e.src=r,await e.decode(),n=await createImageBitmap(e,{resizeWidth:s,resizeHeight:s})}else n=await fetch(r).then((e=>e.blob())).then((e=>createImageBitmap(e)));t=(A-s)/2,e.drawImage(n,t,t,s,s)}}})(e,{...n,
...t?{img:gs.brand(t)}:{}}),y.appendChild(e),c&&!w.inserted&&e.addEventListener("click",c)}f&&f.forEach((e=>{const{text:t,id:n}=e,i=me(m?"a":"button","globalhint_b",n);i.textContent=t,u&&!i.inserted&&i.addEventListener("click",(t=>{u(e),x(),t.stopPropagation()}),!0),v.appendChild(i)}));const R=It(b);l||(R.hide(),window.setTimeout((()=>{R.fadeIn(500)}),h||1));const x=()=>{l?(R.hide(),R.remove()):R.fadeOut(500).then((()=>{R.remove()})),p&&p(b)};if(A&&window.setTimeout(x,A),!A||A>18e5){
const e=fe("span","close","gh_close",_);k.appendChild(e),e.addEventListener("click",(e=>{x(),d&&d(),e.stopPropagation()}),!0)}return R.appendTo(t||document.body),R},isScrolledIntoView:(e,t,n)=>{const i=It(e),r=It(t),s=n&&n.padding&&n.padding.top||0,o=n&&n.padding&&n.padding.bottom||0,a=r.height(),l=i.offset().top-r.offset().top;return l+i.height()<=a-o&&l>=0+s}},Gs=Es,Zs={},Ss={create:(e,t,n,i)=>{const r=(o=/[0-9a-zA-Z]/g,(s=e)&&o?(s.match(o)||[]).join(""):"");var s,o;let a=!1;null==n&&(n={
tv:"tv",tv_table:"tv_table",tr_tabs:"tr_tabs",tr_content:"tr_content",td_content:"td_content",td_tabs:"td_tabs",tv_tabs_fill:"tv_tabs_fill",tv_tabs_table:"tv_tabs_table",tv_tabs_align:"tv_tabs_align",tv_contents:"tv_contents",tv_tab_selected:"tv_tab tv_selected",tv_tab_close:"tv_tab_close",tv_tab:"tv_tab",tv_content:"tv_content"});const l=fe("div",n.tv,"main"+r),c=fe("table",n.tv_table+" noborder","main_table"+r);c.inserted?a=!0:(Zs[r]={},Zs[r].g_entries={},Zs[r].g_selectedId=null)
;const d=fe("tr",n.tr_tabs,"tabs"+t.id+r),u=fe("td",n.td_tabs,"pages"+r),A=fe("div",n.tv_tabs_fill,"tv_tabs_fill"+r),h=fe("div",n.tv_tabs_table,"tv_tabs_table"+r),p=fe("div",n.tv_tabs_align,"tv_tabs_align"+r),f=fe("tr",n.tr_content,"content"+t.id+r),m=fe("td",n.td_content,"content"+r),g=fe("div",n.tv_contents,"tv_content"+r),_=me("tfoot","tv_footer_t"+r),b=me("tr","tv_footer_tr"+r),v=me("td","tv_footer_td"+r);_.appendChild(b),b.appendChild(v),h.tabIndex=-1,h.appendChild(p),A.appendChild(h),
u.appendChild(A),d.appendChild(u),c.appendChild(d),m.appendChild(g),f.appendChild(m),c.appendChild(f),c.appendChild(_),l.appendChild(c),t.appendChild(l);const w=(e,t,n)=>{t?e.setAttribute("style",""):e.setAttribute("style",n?"position:absolute; left: -20000px; top: -200000px; width: 1px; height: 1px;":J),e.setAttribute("vis",t.toString())},y=(e,t)=>{const n=e.getId();if(Zs[r].g_entries[n]){if(t==Zs[r].g_entries[n].visible)return;Zs[r].g_entries[n].visible=t,w(Zs[r].g_entries[n].tab,t)}
},k=(e,t)=>{e&&w(e.content,t,!1)},R=e=>{if(null===e)return null;const t=Object.keys(Zs[r].g_entries);for(let n,i=0;n=t[i];i++){const t=Zs[r].g_entries[n];if(t.entry.getId()==e)return t.entry}return null},x=e=>{e.hide();const t=e.getId(),n=Zs[r].g_entries[t];if(n){n.tab.parentNode.removeChild(n.tab),n.content.parentNode.removeChild(n.content);const e=(e=>{const t=Object.keys(Zs[r].g_entries);for(let n,i=0;n=t[i];i++)if(Zs[r].g_entries[n].tab.id==e.id)return n;return null})(n.tab)
;e&&delete Zs[r].g_entries[e]}else console.log("tv: WARN: tab not part of tabview!")};let C=null;return a?C=Zs[r].tv:(C={getTabById:R,getSelectedTab:function(){return R(Zs[r].g_selectedId)},getAllTabs:function(){const e=It(p).find("div[tvid]");let t,n;const i=[];return e.each((r=>{(t=It(e.get(r)).attr("tvid"))&&(n=R(t))&&i.push(n)})),i},getNextTab:function(){const e=It(p).find("div[tvid]");let t;return Zs[r].g_selectedId&&e.each(((n,i)=>{
t||It(i).attr("tvid")===Zs[r].g_selectedId&&(t=It(e.get(n+1)).attr("tvid"))})),R(t||e.first().attr("tvid"))},getPreviousTab:function(){const e=It(p).find("div[tvid]");let t;return Zs[r].g_selectedId&&e.each(((n,i)=>{t||It(i).attr("tvid")===Zs[r].g_selectedId&&(t=It(e.get(n-1)).attr("tvid"))})),R(t||e.last().attr("tvid"))},removeTab:x,appendTab:function(e,t,n,i,r){return this.insertTab(void 0,e,t,n,i,r)},insertTab:function(e,t,s,o,a,l){null===e&&(e=p.firstChild)
;const c="tab_"+t,d=me("div",c,"content"+r),u=void 0!==d.inserted&&1==d.inserted,A=me("div",c,"head_text"+r);if(s.appendChild(A),l){const e=fe("div",n.tv_tab_close,c,"tv_close"+r,"tab_close");e.inserted||(e.addEventListener("click",(()=>l())),s.addEventListener("auxclick",(e=>{e&&1==e.button&&l()}))),s.appendChild(e)}if(u){const e=(e=>{const t=Object.keys(Zs[r].g_entries);for(let n,i=0;n=t[i];i++){const t=Zs[r].g_entries[n];if(t.tab.id==e.id)return t}return null})(d);if(e)return e.entry
;console.log("tv: WARN: old tab, but not in tabs collection!")}let h;const f=t,m=e=>{""!=e.target.className&&e.target.className==n.tv_tab_close||h.select()};return d.setAttribute("tvid",t),d.tabIndex=0,d.addEventListener("click",m),d.addEventListener("keypress",(e=>{const{keyCode:t}=e;13!=t&&32!=t||m(e)})),s.addEventListener("click",m),d.setAttribute("name","tabview_tab"+r),d.setAttribute("class",n.tv_tab),d.appendChild(s),e?p.insertBefore(d,e):p.appendChild(d),
o.setAttribute("name","tabview_content"+r),o.setAttribute("class",n.tv_content),g.appendChild(o),h={getId:function(){return f},isVisible:function(){return"true"==d.getAttribute("vis")},isSelected:function(){return Zs[r].g_selectedId==this.getId()},isCloseable:function(){return!!l},modified:function(){return It(s).hasClass("modified")},remove:function(){x(this)},hide:function(){(e=>{const t=e.getId(),n=t==Zs[r].g_selectedId
;if(Zs[r].g_entries[t]?y(e,!1):console.log("tv: WARN: tab not part of tabview!"),n){let e=null,t=null;for(const n in Zs[r].g_entries)Zs[r].g_entries[n].visible&&(e=Zs[r].g_entries[n],t||e.closable||(t=e));i||e.closable||(e=t),e?e.entry.select():(Zs[r].g_selectedId=null,console.log("tv: WARN: selected tab set, but entry collection empty!"))}})(this)},show:function(){(e=>{const t=e.getId();Zs[r].g_entries[t]?y(e,!0):console.log("tv: WARN: tab not part of tabview!")})(this)},select:function(e){
if(!e&&h.isSelected())return;const t=Te();a&&a(t.promise()),(e=>{if(e.getId()==Zs[r].g_selectedId)return;const t=e.getId();Zs[r].g_selectedId&&k(Zs[r].g_entries[Zs[r].g_selectedId],!1),Object.keys(Zs[r].g_entries).forEach((e=>{const i=Zs[r].g_entries[e];i.entry.getId()==t?i.visible?i.selected||(i.tab.setAttribute("class",n.tv_tab_selected),k(i,!0),i.selected=!0):console.log("tv: WARN: tab selected but not visible!"):i.selected&&(i.tab.setAttribute("class",n.tv_tab),k(i,!1),i.selected=!1)})),
Zs[r].g_selectedId=t})(this),t.resolve()},setHeading:function(e,t,n){const i=s.firstChild;if(t&&e.length>t){const r=Math.round(t/2);i.textContent=e.substr(0,r)+"..."+e.substr(r-t),i.title=n||e}else i.textContent=e},toggleClass:function(e,t){It(s,g).toggleClass(e,t)},close:function(){l&&l()}},Zs[r].g_entries[f]={entry:h,tab:d,content:o,closable:null!=l},k(Zs[r].g_entries[f],!1),h.show(),h},setFooter:function(e){v.appendChild(e)}},Zs[r].tv=C),C}},Bs=Ss,Ts=(Xe({timeout:10800,check_interval:300,
retimeout_on_get:!0}),qe({threads:5}),e=>{const t=(typeof e)[0];if("o"===t)try{e=t+JSON.stringify(e)}catch(n){console.error("Storage: setValue ERROR: "+n.message),e=t+JSON.stringify({})}else e=t+e;return e}),Is=new ze;window.requestFileSystem||(window.requestFileSystem=window.webkitRequestFileSystem);const Us=es.images,Ls=window.CodeMirror,Fs=window.MirrorFrame,Ms="chrome";window.setTimeout=He,window.Hinter={hint:(e,t)=>{const n=Te(),i=n.promise(),r=t||{},s=r.options||Oi;let o
;if(r.config?(o=JSON.parse(JSON.stringify(r.config)),"object"!=typeof o&&(o={})):o=JSON.parse(JSON.stringify(Di)),r.userscript||r.external){const e={};V(zi,(t=>{e[t]="writeable"})),o.globals={...e,...o.globals}}if(r.userscript&&(o.rules={...ji,...o.rules}),e)if(Mi&&G){const t=G,r=()=>{const e=new t("lint.js");e.onmessage=e=>{const t=e.data,{results:n,id:i}=t;let r,s;i&&(r=Ni[i])&&(s=r.d)&&(delete Ni[i],n?s.resolve(Qi(n)):s.reject(t.error||"Unknown error")),a(!!i)};const n={method:"base_uri",
value:Be.getURL("/")};return e.postMessage(n),Vi=void 0,e},a=e=>{if(Pi=Pi||r(),e)Vi=void 0;else if(Vi)return;let t,n=Date.now();if(Object.keys(Ni).forEach((e=>{Ni[e].ts<=n&&(t=Ni[e],n=t.ts)})),t){Vi=t.id;const e={method:t.method,id:t.id,config:t.c,options:t.o,text:t.t};Pi.postMessage(e)}};i.abort=()=>{Pi&&(Pi.terminate(),Pi=void 0,a())},Pi||r();const l=X(),c={method:"lint",id:l,d:n,t:e,c:o,o:s,ts:Date.now()};Ni[l]=c,a()}else Fe("vendor/eslint/eslint",(()=>{try{const t=((e,t,n)=>{
const i=self.eslint,r={problem:"error",layout:1,suggestion:1},s=new i.Linter;if(s.defineRules(Ii.rules),t.extends&&t.extends.includes("eslint:recommended")){const e=t.rules=t.rules||{};s.getRules().forEach((function(t,n){if(!t||void 0!==e[n])return;const i=t.meta;if(!i)return;const s=i.docs;if(!s||!s.recommended)return;let o;const a=[(i.type?r[i.type]:null)||1],l=i.schema;if(l){const e={};(Array.isArray(l)?l:[l]).forEach((t=>{if("object"!=t.type)return;const n=t.properties
;n&&Object.entries(n).forEach((([t,n])=>{const i=n.default;void 0!==i&&!1!==i&&(e[t]=n.default,o=!0)}))})),o&&a.push(e)}e[n]=a}))}return s.verify(e,t,n)})(e,o,s);n.resolve(Qi(t||[]))}catch(e){n.reject(e.message)}}));else n.resolve([]);return i}};const js=()=>{const e=ye();Kt((()=>{const t={};let n={};const i=[],r={},s={};let o={},a={};const l={},c=(()=>{let e,t,n,i,r,s;if((e=M)&&(t=e.getItem("export_tm_settings"),n="true"===t,t=e.getItem("export_externals"),i="false"!==t,
t=e.getItem("export_script_storage"),s="false"!==t,r=e.getItem("cloud_config")))try{r=JSON.parse(se(r))}catch(e){}return{script_storage:s,add_tm_settings:n,include_externals:i,cloud_config:r}})();let d;const u={},h=function(e,t){let n,i;if((n=u[e])&&(i=n[t]))return i.apply(this,[].slice.call(arguments,2))},p=e=>{const t=e.msg||e;if(e.once){if(s[t])return!0;s[t]=!0}let n=confirm(t),i={};return n&&e.ok?i=e.ok:!n&&e.cancel&&(i=e.cancel),(e.ok||e.cancel)&&(n=!0),i.url&&$r({method:"newTab",url:i.url
},(()=>{})),n},f=(e,t)=>{try{const n=()=>{};t?$r({method:"newTab",url:e},n):lt.getSelected(null,(i=>{lt.sendMessage(i.id,{method:"loadUrl",url:e,newtab:t},n)}))}catch(e){console.log("lU: "+e.message)}},m=(e,t,n,i,r)=>{i=i||{};const s=Gs.createImage(i.default_icon||Xt.images.empty,void 0,n,t,i.title,r);if(s.inserted)return s;Array.isArray(e)||(e=e?[e]:[]);const o=async()=>{if(0==e.length){if(i.fill_with_question_mark&&s.parentNode){const e=Gs.createIcon(Us.get("question_mark"),t+"_ico",n)
;s.parentNode.insertBefore(e,s),s.parentNode.removeChild(s)}return}const r=e.shift(),a=0==e.length;let l,c;if(r.startsWith("data:")?l=r:c=await((e,t)=>{const n=Te();return $r({method:"imageUrlToTransferable",url:e,fallback:t},(e=>{n.resolve(e?lr.fromTransferableData(e.transferable):void 0)})),n.promise()})(r,a),l)s.setAttribute("src",l);else if(c)if(c.tryObjectUrl)s.setAttribute("src",c.tryObjectUrl);else if(c.tryDataUri)s.setAttribute("src",c.tryDataUri);else{
const e=await c.toBlob(),t=URL.createObjectURL(e);s.setAttribute("src",t),s.onload=()=>URL.revokeObjectURL(t)}else await o()};return o(),i.title&&(s.title=i.title),s};let g=!1;const _=e=>{if(g)return;const t=gt,n=It("<div>").hide(),i=e=>{e?(n.html("").append(It('<div class="contrib_iframe" style="font-size: 2.5em;"></div>').append(It('<div style="padding-top: 150px;">').text(e))),window.setTimeout(i,1e3)):(n.fadeOut(1e3),window.setTimeout(jt.hideDialog,1e3))
},r=It('<iframe src="https://www.tampermonkey.net/contrib.php?embedded=2'+(t?"&locale="+t:"")+"&src="+(e||"e")+at.short_id+'" class="contrib_iframe"></iframe>'),s=[It('<button class="contrib_button">').html(xt("Remind_me_later")).on("click",(()=>{O("later"),i(xt("Ok"))})),It('<button class="contrib_button">').html(xt("I_contributed_already")).on("click",(()=>{O("contributed"),i(xt("Thank_you_very_much_"))
})),It('<button class="contrib_button">').html(xt("I_dont_want_to_contribute")).on("click",(()=>{O("hide"),i(xt("Ok"))}))],o=()=>{const e=jt.dialog(n[0]);!0===e?(n.fadeIn(1e3),O("dialog")):void 0===e&&window.setTimeout(o,500),r.unbind("load error")};r.bind("load",(()=>o())),r.bind("error",(()=>n.remove())),n.append(r,s).appendTo(document.body),g=!0,window.addEventListener("message",(e=>{let t;const r=e.data.clicked||e.data.type,s=e.data.amount,o=e.data.currency,a=e.data.redirect_url
;if(r)if(a&&f(a,!0),e.data.success){t=It(".contrib_iframe");const n=t.data("oheight");if(!n||n<0||n>1e3)return;t.animate({height:n},1e3),O("contributed",r,{id:e.data.id})}else e.data.clicked&&(O("clicked",r,{amount:s||"?",currency:o||"?"}),It(".contrib_button").remove(),n.append(It('<button class="contrib_button">').text(xt("Ok")).on("click",(()=>{i()}))),e.data.enlarge&&(t=It(".contrib_iframe"),t.data("oheight",t.height()),t.animate({height:740},1e3)))}),!1)},v=()=>{
if(M)return M.getItem("sort_key")},w=()=>{if(M)return M.getItem("sort_sequence")},y=e=>{if(M)return M.setItem("sort_key",e)},k=e=>{if(M)return M.setItem("sort_sequence",e)},R=e=>{const t=(e,n)=>e.tagName==n?e:e.parentNode?t(e.parentNode,n):null;let n="down"==w(),i=null,r=[],s=0;const a=Date.now();Object.keys(o).forEach((e=>{const n=o[e];if(!n)return void console.warn("options: something went wrong!",e);const l=t(n.dom,"TR");if(l){const e=t(l,"TBODY");let o,c
;i?e&&i!=e&&console.warn("options: different parents?!?!"):i=e,s++,(!(o=n.script.lastModified||n.script.lastUpdated)||(c=a-parseInt(o))&&isNaN(c))&&(c=0);const{code:d,resources:u,requires:A}=Le(n.script),h=d+u+A;r.push({tr:l,sites:C.get(n.script),enabled:n.script.enabled,size:h,position:n.script.position?n.script.position:1e3+s,name:Ct(n.script,"name").toLowerCase(),homepage:[n.script.origin?bn(n.script.origin.url).hostname:"z",Ue(n.script)?bn(Ue(n.script)).hostname:"z"].join("_"),updated:c,
version:n.script.version||""}),l.inserted=!1,l.parentNode&&l.parentNode.removeChild(l)}else console.log("options: unable to sort script at pos "+n.pos)})),r=(e=>{let t;const i=e=>(t,n)=>t[e]-n[e],r=v();var s,o;return"pos"==r?t=i("position"):"enabled"==r?(s="enabled",o=n,t=(e,t)=>{const n=(o^e[s]?"a":"b")+e.name,i=(o^t[s]?"a":"b")+t.name;return n<i?-1:n>i?1:0},
n=null):t="ver"==r?(e=>(t,n)=>$i(String(t[e]),String(n[e])))("version"):"size"==r?i("size"):"updated"==r?i("updated"):(e=>(t,n)=>t[e]<n[e]?-1:t[e]>n[e]?1:0)(r),e.sort(t),e})(r),n&&(r=r.reverse());for(let e=0;e<s;e++)i.appendChild(r[e].tr);It(".sorting").forEach((e=>{It(e)["pos"==v()&&"up"==w()?"fadeIn":"fadeOut"]()})),e&&e()},x=Xe({timeout:600,check_interval:300,retimeout_on_get:!0}),C=(()=>{let e={};const t=e=>e.toString().length<7?t("0"+e):e,n=e=>{if(e.includes||e.matches){
const t={},n=[],i=[],r=e.includes.length?e.includes:e.matches;for(let s=0;s<r.length;s++){const o=r[s];if(!o){console.log("o: Warn: script '"+e.name+"' has invalid include (index: "+s+")");continue}const a=x.get(o),l=(void 0!==a?a:null)||Gs.getInfoFromUrl(o);void 0===a&&x.set(o,l),l&&l.dom?t[l.dom]?i.push({include:o,info:l}):(t[l.dom]=!0,n.push({include:o,info:l})):n.push({include:o})}return n.concat(i)}};return{init:function(t){e={},t.forEach((t=>{const i=n(t);i&&i.length&&i.forEach((t=>{
t.info&&(e[t.info.dom]=(e[t.info.dom]||0)+1)}))}))},get:function(i){const r=n(i);if(!r||!r.length)return t(0);const s=r.map((t=>t.info?{score:1e3*e[t.info.dom]+t.info.dom.charCodeAt(0)||0,dom:t.info.dom}:{score:0,dom:""})).sort(((e,t)=>t.score-e.score))[0];return t(s.score)+s.dom},topIcons:function(t,i){let r;const s=[],o=n(t);if(!o||!o.length)return[];const a=o.map((t=>(t.score=t.info&&e[t.info.dom]||0,t))).sort(((e,t)=>t.score-e.score));return V(a,(e=>{const n=e.info;if(0==i--){
const e=fe("span","",t.uuid,"tbc");return e.textContent="...",s.push(e),!1}if(!n)return r=Gs.createIcon(Us.get("question_mark"),"favicon",t.uuid,e.include,e.include),void s.push(r);if("*"==n.tld)return r=Gs.createIcon(Us.get("web"),"web",t.uuid,e.include,e.include),s.push(r),!1;let o="com",a="";"*"!=n.tld&&"tld"!=n.tld&&(o=n.tld),n.subdom.length&&(a=n.subdom.join(".")+".");const l=(a+n.dom+"."+o).replace(/\*|^\./g,""),[c,d]=Fe(l);r=m([c,d].filter((e=>e)),"favicon",t.uuid,{
fill_with_question_mark:!0,title:e.include}),s.push(r)})),s}}})();let E=null;const G=()=>{E&&(window.clearTimeout(E),E=null)},Z=async(e,t)=>{let n;const i=e.key||"general";(n=mt[i])&&(await It(n).fadeOut(500)).remove();const{info_url:r,buttons:s,deleted:o}=e;o||(mt[i]=Gs.createGobalHint({onclick:r?()=>{f(r,!0)}:null,onbuttonclick:s?e=>{e.id?$(e.id).always((()=>{t&&t()})):e.url?f(e.url,!0):console.error("options: no button id or url")}:null,onclose:()=>{t&&t()},id:i,...e
},It("body > div.status")[0]))},S=(e,t,n,i)=>{void 0===i&&(i=3e3),Z({key:"success",text:e,image:t,class:n,delay:1e3,timeout:i,done:()=>{}})},B=e=>{S(e||xt("Operation_completed_successfully"),"button_ok","notice")},T=(e,t)=>{void 0===t&&(t="button_ok"),S(e,t,"information",8e3)},I=(e,t)=>{void 0===t&&(t="error"),S(e,t,"warning",8e3)},U=e=>{E||(E=window.setTimeout((()=>{E=null,jt.wait(xt("Please_wait___"))}),e||500))};let F=null,j=null;const D=(e,t)=>{null!=F?(window.clearTimeout(F),F=null,
D(e||j.items,e?t:j.with_scripts)):(j={items:e,with_scripts:t},F=window.setTimeout((()=>{F=null,j.with_scripts&&(o={},a={}),Se(j.items);let e=0,t=0,n=0;Object.values(o).forEach((({script:i})=>{e++,i.enabled&&t++,(i.blacklisted||i.foisted)&&n++})),is.emit("numberOfScripts",{count:e,enabled:t,blacklisted:n}),j=null}),50))},O=(e,t,n)=>{const i=Te();return $r({method:"begEvent",action:e,type:t,extra:n},(e=>{e?i.resolve(e):i.reject()})),i.promise()},P=(e,t)=>{let n=Te();try{
const{json:i,code:r,url:s,data:o,tfd:a}=e;U();const l=ot.connect("importEx");l.onMessage.addListener((e=>{if(!n)return;const{items:t,reload:i,success:r,error:s,progress:o}=e;o?n.notify(o):(G(),s?(n.reject(s),jt.hide()):(i?window.setTimeout((()=>{Ze()}),500):t?(r?B():I(xt("Action_failed")),D(t,!0)):jt.hide(),n.resolve(e)),n=null,l.disconnect())})),l.onDisconnect.addListener((()=>{n&&n.reject("communication lost")})),l.postMessage({method:"importEx",json:i,data:o,code:r,url:s,tfd:a,reload:t.reload
})}catch(e){console.log("sS: "+e.message),n.reject(e.message||"unknown error")}return n.promise()},H=(e,t,n,i)=>W({uuid:e},t,n,i),W=(e,t,n,i)=>{const r=Te();void 0===n.reload&&(n.reload=!0);try{n.auto_save||U(),$r({...e,method:"saveScript",code:t,clean:n.clean,force:n.force,new_script:n.new_script,auto_save:n.auto_save,restore:n.restore,lastModTime:n.lastModTime,reload:n.reload},(e=>{n.auto_save||((i||B)(),G()),(e=e||{}).items?D(e.items,!0):jt.hide(),!t&&n.reload&&jt.hide(),r.resolve(e)}))
}catch(e){console.log("sS: "+e.message),r.reject({err:e.message})}return r.promise()},Y=(e,t,i)=>{const r=Te();try{U(),$r({method:"setOption",name:e,value:t},(e=>{G(),e?(B(),n=e.options||n,!i&&e.items?D(e.items,!1):jt.hide(),r.resolve(e)):(I(xt("Action_failed")),jt.hide(),r.reject())}))}catch(e){console.log("sO: "+e.message),r.reject({err:e.message})}return r.promise()},K=e=>{const t=Te();try{U(),$r({method:"purgeScripts",uuids:e},(e=>{G(),e?(e.items?(B(),D(e.items,!1)):jt.hide(),
t.resolve(e)):(I(xt("Action_failed")),jt.hide(),t.reject())}))}catch(e){console.log("sO: "+e.message),t.reject({err:e.message})}return t.promise()},$=(e,t,n)=>{const i=Te();try{let r;U(),"run_sync"===e&&(r=e=>jt.wait(e.text),Is.on("syncProgressEvent",r)),$r({method:"buttonPress",name:e,data:t},(t=>{"run_sync"===e&&Is.off("syncProgressEvent",r),G(),t?(!n&&t.items?(B(),D(t.items,!1)):jt.hide(),i.resolve(t)):(I(xt("Action_failed")),jt.hide(),i.reject())}))}catch(e){console.log("sO: "+e.message),
i.reject({err:e.message})}return i.promise()},ee=(e,t)=>Te((({resolve:n})=>{$r({method:"miscConfig",action:"set",realm:"cloud",key:e,config:t},(e=>{n(e)}))})).promise(),te=(e,t)=>{U(),$r({method:"loadTree",complete:e.complete,uuid:e.uuid,url:e.url,referrer:e.referrer,layout:e.layout,filter:e.filter},(e=>{G(),(e=e||{}).items||(e.error?pe(e.error):confirm(xt("An_internal_error_occured_Do_you_want_to_visit_the_forum_"))&&(window.location.href="https://www.tampermonkey.net/bug")),t(e)}))},ne=()=>{
const e=ot.connect("syncInfo");e.onMessage.addListener((e=>{e&&Is.emit("syncProgressEvent",e.info)})),e.onDisconnect.addListener((()=>{setTimeout(ne,500)})),e.postMessage({method:"syncInfo"})},oe=()=>{Te.onebyone(["options.scripts","options.trash"].map((e=>()=>{const t=Te();return te({referrer:e},(e=>{t.resolve(e.items||[])})),t.promise()}))).then((e=>{const t=e.reduce(((e,t)=>e.concat(t)),[]).filter((e=>e));t&&t.length?D(t,!0):jt.hide()}))},ae=(e,t,i)=>{null==i&&(i=!0);try{const r={
method:"modifyScriptOptions",uuid:e,reload:i};for(const e in t)t.hasOwnProperty(e)&&(r[e]=t[e]);U(),$r(r,(e=>{G(),e?(n=e.options||n,e.i18n&&Et(e.i18n),B(),e.items?D(e.items,!0):jt.hide()):(I(xt("Action_failed")),jt.hide())}))}catch(e){console.log("mSo: "+e.message)}},le=(e,t,n,i)=>{try{const r={method:"saveStorageKey",uuid:e,key:t,value:n,removed:i,id:"options"};U(),$r(r,(e=>{G(),e?B():I(xt("Action_failed")),jt.hide()}))}catch(e){console.log("sSk: "+e.message)}
},ce=window.navigator.userAgent.includes("Mac")?"mac":"other";let de;window.addEventListener("keydown",(e=>{let t,n,i=!1;if("keydown"==e.type&&!e.defaultPrevented){if(27==e.keyCode){if(t=d.getTabById("dashboard"),!t.isSelected())return;if(e.target&&"text"==e.target.type)return void It(e.target).trigger("blur");u.multiselect.toggleRow(!1),i=!0}else("mac"!=ce&&39==e.keyCode||"mac"==ce&&40==e.keyCode)&&!e.ctrlKey&&e.altKey&&!e.shiftKey?(n=d.getNextTab(),n&&(n.select(),
i=!0)):("mac"!=ce&&37==e.keyCode||"mac"==ce&&38==e.keyCode)&&!e.ctrlKey&&e.altKey&&!e.shiftKey&&(n=d.getPreviousTab(),n&&(n.select(),i=!0));return i?(e.stopPropagation(),e.preventDefault(),!1):void 0}}),!0),window.addEventListener("keydown",(e=>{let t,n,i=!1;if("keydown"==e.type&&!e.defaultPrevented){if(112==e.keyCode)t=d.getTabById("help"),t&&t.select(),i=!0;else if(38!=e.keyCode&&40!=e.keyCode||!e.shiftKey){if(70==e.keyCode&&(e.ctrlKey||e.metaKey)){if(t=d.getTabById("dashboard"),
!t.isSelected())return;u.multiselect.toggleRow(!0,!0),i=!0}else if(65==e.keyCode&&(e.ctrlKey||e.metaKey)){if(t=d.getTabById("dashboard"),!t.isSelected()||e.target&&"text"==e.target.type)return;u.multiselect.un_selectAll(!0),i=!0}}else{if(t=d.getTabById("dashboard"),!t.isSelected())return;let r=dt.length&&dt[dt.length-1];r&&(r=It(r))&&(()=>{i=!0;const t=r.closest("tr");if(!t.length)return;let s,o;if(38==e.keyCode?(n=It(t.prevAll("tr").filter((e=>It(e).is(":visible")))[0]),
s=!0):(n=It(t.nextAll("tr").filter((e=>It(e).is(":visible")))[0]),s=!1),!n.length)return;const a=n.find('input[name="scriptselectors"]');if(dt.includes(a[0])?(dt.pop(),r.prop("checked",!1),r.removeClass("selected"),o=r):a.length&&(a.prop("checked",!0),a.addClass("selected"),dt.push(a[0]),void 0===dt.direction&&(dt.direction=s),o=a),o){const e=It(".scripttable").parent().get(0),{top:t,bottom:i}=e.getBoundingClientRect(),r=n,o=3*r.height(),a=e.scrollTop;if(!Gs.isScrolledIntoView(r,e,{padding:s?{
top:o}:{bottom:o}})){const n=s?r.offset().top-t-o-r.height():r.offset().top-t-(i-t)+o+2*r.height(),l=Math.floor(a+n);It(e).animate({scrollTop:l},0)}u.multiselect.single_click()}})()}return i?(e.stopPropagation(),e.preventDefault(),!1):void 0}}),!1),document.addEventListener("dragover",(e=>e.preventDefault())),document.addEventListener("drop",(async e=>{try{const t=e.dataTransfer.files[0];if(!t)return;const n=await new lr({blob:t}).toTransferableData();$("installFromUrl",{transferable:n}),
e.preventDefault()}catch(e){}}),!0);const ue=(()=>{const e={};let t;const n=()=>{de=he(!0);const n=window.location.hash;t!==n&&(t=n,Object.keys(e).forEach((t=>{const n=e[t];o.is(n.main,n.sub)&&n.fn(o.get().sub)})))};let r;n(),window.onhashchange=function(){r||n.apply(this,arguments)};const s=e=>{r=!0,e(),r=!1},o={set:function(e){const t=o.get();let i;i="object"==typeof e?[e.main,e.sub].filter((e=>e)):arguments,t.main===i[0]&&t.sub===i[1]||(!i[0]&&i[1]?o.setSub(i[1]):s((()=>{
window.location.hash="nav="+[].join.call(i,"+"),n()})))},setSub:function(e){const t=o.get();t.sub!==e&&s((()=>{window.location.hash="nav="+(t.main?t.main:"")+"+"+e,n()}))},get:function(){const e=de.nav?de.nav.split("+"):[];return{main:e[0],sub:e[1]}},is:function(e,t){const n=o.get(),i=!e||n.main===e,r=!t||n.sub===t;return i&&r},isSub:function(e){return o.is(null,e)},registerListener:function(t,n,i){void 0===i&&(i=n,n=null);const r=[t,n].join("+");return e[r]={main:t,sub:n,fn:i},
o.is(t,n)&&i(o.get().sub),r},unregisterListener:function(t){delete e[t]},clear:function(){o.set("")}},a=o.get();return i.push((()=>{const e=d.getTabById(a.main);if(e)return e.select(!0);if(a.main){const e=d.getTabById("dashboard");e&&e.select(!0),i.push((()=>{window.setTimeout((()=>{o.set(a)}),0)}))}else window.onhashchange()})),o})();i.push((()=>{n.statistics_enabled&&($n("opt",{version:ot.manifest.version}),ei(!0))}));const ge=(()=>{let e={};const t={clear:()=>{V(e,(e=>A(e))),e={}},is:(n,i)=>{
const r=void 0!==e[n];return i&&t.add(n),r},add:(n,i)=>{t.is(n)&&A(e[n]),e[n]=b((()=>{delete e[n]}),i||1e3)}};return t})(),_e=()=>{for(;i.length;)try{i.shift()()}catch(e){console.warn("doneListeners:",e)}},be=(e,t)=>{const n=me("input",e.name,e.id,"Save");return n.inserted||(n.type="button",n.section=e,n.disabled=!0,n.value=xt("Save"),n.addEventListener("click",(function(){if(t&&t.warning&&!p(t.warning))return;const e=It(this.section).find("input, select, textarea").toArray(),n=[],i=[]
;for(let r=0;r<e.length;r++){let s=null;const o=e[r],a=o.key;if(i.includes(o))continue;let l=o.tagName.toLowerCase();if("input"==l&&(l=o.type),"textarea"==l)if(o.named){const e=document.getElementsByName(o.name);s=[],V(e,(e=>{s.push({name:e.named_name,value:e.value}),i.push(e)}))}else if(o.array){const e=o.value;s="null"===e?null:o.value.split("\n").map((e=>e.trim())).filter((e=>e))}else if(o.json){let e;try{s=(e=o.value)&&(e=e.trim())?JSON.parse(e):null}catch(e){
return void pe(xt("Unable_to_parse_0name0",o.name))}}else s=o.value;else if("checkbox"==l)s=o.checked;else if("select"==l){let e=0;o.selectedIndex>=0&&o.selectedIndex<o.options.length&&(e=o.selectedIndex),s=o[e]?o[e].value:o.options[0].value,o.array&&(s="null"===s?null:s.split(",").map((e=>e.trim())).filter((e=>e)))}else"button"==l||(s=o.value);a&&n.push(Y(a,s,t&&t.reload))}t&&t.reload&&(jt.wait(),Te.when(n).done((()=>{Ze()})))}),!1)),n},ve=e?6:15,we=(r,s,c,d)=>{let A,h,m,g,_,b,x=[]
;const E=(e,t)=>{if(c)if(c.save_button)It(e).on("change",(()=>{c.save_button.disabled=!1,Z()})),It(t).on("input propertychange",(()=>{c.save_button.disabled=!1,Z()}));else{const e="Section needs a save button!";console.error(e,c)}},Z=()=>{c.on_save_button_state_change&&c.on_save_button_state_change.forEach((e=>e()))};if(s.divider)return null;if(s.checkbox)c&&c.need_save?s.enabler&&(m=function(){const e=document.getElementsByName("enabled_by_"+this.key);V(e,(e=>{
this.checked?e.removeAttribute("disabled"):e.setAttribute("disabled","disabled")}))},i.push((()=>m.bind(A.input)()))):m=function(){let e=!0;const t=this;t.warning&&(e=p(t.warning),e||(t.checked=!t.checked)),e&&Y(this.key,t.checked,t.reload).always((()=>{t.reload&&Ze(500)}))},A=Gs.createCheckbox(s.name,s,m),x.push(A.elem),c&&c.save_button&&E(null,A.input);else if(s.button)m=function(){let e=!0;const t=this;t.warning&&(e=p(t.warning)),e&&$(t.key,t.data,t.ignore).always((()=>{t.reload&&Ze(500)}))},
A=Gs.createButton(s.name,s,m),s.needsSave&&c&&c.save_button&&(c.on_save_button_state_change||(c.on_save_button_state_change=[]),c.on_save_button_state_change.push((()=>{A.disabled=!c.save_button.disabled}))),x.push(A);else if(s.status){A=Gs.createTextarea(s.name,s),A.textarea.setAttribute("readonly",!0),A.textarea.setAttribute("class","settingsta event_status"),l[s.event]&&Is.off(s.event,l[s.event]);const e=e=>{A.textarea.value=(new Date).toLocaleString()+": "+e.text+"\n"+A.textarea.value}
;l[s.event]=e,Is.on(s.event,e),x.push({element:A.elem,validation:A.label})}else if(s.named)A=Gs.createNamedSettings(s.name,s),x.push({element:A.elem,validation:A.label}),E(null,A.textareas);else if(s.tags)A=Gs.createTagEditor(s.name,s,s.value,{onChange:e=>{Y(s.id,e,s.reload)}}),x.push({element:A.elem,validation:A.label});else if(s.input)A=Gs.createTextarea(s.name,s),x.push({element:A.elem,validation:A.label}),E(null,A.textarea);else if(s.permission){
const e=s.value,t=!e.length,n=Ie(xt("Host_permissions_denied_by_user_"),{id:"permissions",item:s},t?["<"+xt("No_previously_denied_runtime_host_permissions_found")+">"]:e,(e=>$("permissions",{origins:e||[],reset:null===e}).then((e=>e.granted),(()=>!1))));It(n.elem).addClass("cludes"),It(n.select,n.buttons).prop("disabled",!!t||null),x.push(n.elem)}else if(s.text)A=Gs.createInput(s.name,s),x.push(A.elem),E(A.input);else if(s.color)A=Gs.createColorChooser(s.name,s),x.push(A.elem),
E(A.input);else if(s.password)A=Gs.createPassword(s.name,s),x.push(A.elem),E(A.input);else if(s.select){h=function(){let e=!0;const t=this;t.warning&&(e=p(t.warning),e||(t.value=t.oldvalue)),e&&Y(t.key,Gs.getValue(t),t.reload).always((()=>{t.reload&&Ze(500)}))};const e=function(){let e=!0;this.selectedOptions.length&&this.selectedOptions[0].warning&&this.selectedOptions[0].value!==this.oldvalue&&(e=p(this.selectedOptions[0].warning),e||(this.value=this.previousValue||this.oldvalue)),
this.previousValue=this.value};c&&c.need_save&&(h=s.enabler?function(){const e=document.getElementsByName("enabled_by_"+this.key),t=(this.selectedIndex<this.options.length?this.options[this.selectedIndex]:this.options[0]).getAttribute("enables"),n=t?JSON.parse(t):{};V(e,(e=>{void 0===n[e.key]||n[e.key]?e.setAttribute("style",""):e.setAttribute("style",J)}))}:null),A=Gs.createDropDown(s.name,s,s.select,h,e),x.push(A.elem),c&&c.save_button&&E(A.select),r&&s.enabler&&(()=>{const e=h,t=A
;i.push((()=>{e.apply(t.select,[])}))})()}else if(s.url){const e=me("a",s.name,s.id);e.href="#",e.url=s.url,e.newtab=s.newtab,e.inserted||(h=function(){f(this.url,this.newtab)},e.addEventListener("click",h)),e.textContent=s.name,x=Array(ve),x[3]=e}else if(s.main_menu_item){if(_=me("div",s.name||s.image,s.id),s.image){const e=Gs.createIcon(Us.get(s.image),"",s.uuid,s.id);_.appendChild(e)}else _.textContent=s.name||"";s.title&&(_.title=s.title)
;const o=me("div",s.name,s.id,"tab_content"),l=((t,r)=>{const s=(e,t,n,i,r)=>{let s;const o=fe("th","settingsth",e.name,e.id,t),a=fe("a","settingsth_a",e.name,e.id,t+"_a");a.setAttribute("name","settingsth_a"+e.name);const l=fe("a","settingsth_a_up",e.name,e.id,t+"_a_up");l.setAttribute("name","settingsth_a_up"+e.name);const c=fe("a","settingsth_a_down",e.name,e.id,t+"_a_down");c.setAttribute("name","settingsth_a_down"+e.name);const d=()=>{((t,n,i)=>{
const r=document.getElementsByName("settingsth_a_up"+e.name),o=document.getElementsByName("settingsth_a_down"+e.name);for(s=0;s<r.length;s++)r[s].style.display="none";for(s=0;s<o.length;s++)o[s].style.display="none";"up"==w()?n.style.display="":i.style.display=""})(0,l,c)},u=()=>{d()},A=()=>{window.setTimeout((()=>{v()==i?k("down"==w()?"up":"down"):y(i),R(u)}),0)};return o.inserted||(o.appendChild(a),o.appendChild(c),o.appendChild(l),a.addEventListener("click",A),l.addEventListener("click",A),
c.addEventListener("click",A),a.textContent=n+" ",a.href="#",l.innerHTML="&#x25B4;",l.href="#",c.innerHTML="&#x25BE;",c.href="#"),r&&!v()?(y(i),k("up"),window.setTimeout(d,0)):i==v()&&window.setTimeout(d,0),o};let o,l,c,d,A,h;if(A=me("tbody",t.name,t.id,"body"),h=me("thead",t.name,t.id,"head"),"dashboard"==t.id){const a=ft(t),A=ct(t);o=me("table",t.name,t.id,"main"),o.inserted||o.setAttribute("class","scripttable multiselect");const p=fe("th","script_sel",t.name,t.id,"thead_sel")
;p.appendChild(a.selAllm);const f=ve-2,m=fe("th","left",t.name,t.id,"thead_multi_action");m.setAttribute("colspan",f),m.appendChild(a.actionBox),m.appendChild(A);const g=fe("th","right",t.name,t.id,"thead_multi_close");g.appendChild(a.close),c=fe("tr","multiselectrow",t.name,t.id,"filler_multi"),c.appendChild([p,m,g]),d=fe("tr","multiselectscrolldummy",t.name,t.id,"scrolldummy");const _=fe("th","left",t.name,t.id,"scrolldummyth");_.setAttribute("colspan",f),d.appendChild([_]),
l=fe("tr","scripttr multiselectreplaced",t.name,t.id,"filler");const b=fe("th","script_sel",t.name,t.id,"thead_sel");b.appendChild(a.selAll);const y=s(t,"thead_pos",xt("Position"),"pos"),k=s(t,"thead_en",xt("Enabled"),"enabled"),R=fe("th","thead_icon",t.name,t.id,"thead_icon"),x=s(t,"thead_name",xt("Name"),"name",!0),C=fe("th","settingsth",t.name,t.id,"thead_del");if(C.textContent=xt("Actions"),e)V([b,y,k,R,x,C],(e=>{l.appendChild(e)}));else{
const e=s(t,"thead_ver",xt("Version"),"ver"),r=s(t,"thead_size",xt("Size"),"size"),o=fe("th","settingsth small",t.name,t.id,"thead_type"),a=fe("span","script_type",t.name,t.id,"thead_type_span");a.textContent=xt("Type"),o.appendChild(a);const c=fe("th","settingsth small",t.name,t.id,"thead_sync");c.textContent="";const d=s(t,"thead_sites",xt("Sites"),"sites"),u=fe("th","settingsth",t.name,t.id,"thead_features");u.textContent=xt("Features")
;const A=s(t,"thead_homepage",xt("Homepage"),"homepage"),h=s(t,"thead_updated",xt("Last_updated"),"updated"),p=fe("th","settingsth",t.name,t.id,"thead_sort"),f=fe("span","sorting",t.name,t.id,"thead_sort_span");f.textContent=xt("Sort"),"pos"==v()&&"up"==w()||f.setAttribute("style","display: none;"),p.appendChild(f);const m=()=>{n.sync_enabled&&(c.textContent=xt("Imported"))};i.push(m),V([b,y,k,R,x,e,r,o,c,d,u,A,h,p,C],(e=>{l.appendChild(e)}))}h.appendChild([c,d,l]),
l.inserted||(u.multiselect.checkScroll=()=>{const e=It(h),t=e.is(":visible")&&It(c).is(":visible")&&It(r).scrollTop()>0;e.toggleClass("multiscrolling",t)},It(r).on("scroll",u.multiselect.checkScroll))}else if("trash"==t.id){o=fe("table","settingstable",t.name,t.id,"main");const e=fe("tr","","tr_trash"),n=fe("td","","td_trash"),i=fe("div","trash_actions","div_trash_actions");n.appendChild(i),e.appendChild(n),o.appendChild(e)
;const r=Gs.createButton("restore_all",`${t.uuid}_delall`,xt("Restore_all"),(()=>{if(confirm(xt("Really_restore_all_userscripts_"))){const e=Object.keys(a);W({uuids:e},null,{reload:!0,restore:!0},void 0),e.length&&jt.wait()}})),s=Gs.createButton("delete_all",`${t.uuid}_delall`,xt("Delete_all"),(()=>{if(confirm(xt("Really_delete_all_userscripts_"))){const e=Object.keys(a);K(e),e.length&&jt.wait()}}));i.appendChild([r,s])}else o=fe("table","settingstable",t.name,t.id,"main")
;return o.appendChild(h),o.appendChild(A),{table:o,head:h,body:A}})(s,o);o.appendChild(l.table);let A=null;const h=d.appendTab(s.id,_,o,(e=>{e.then((()=>{A&&(t.global?A():i.push(A)),ue.set(s.id),document.title=s.name}))}));ue.registerListener(s.id,(()=>{h.select()})),s.hidden?h.hide():h.show(),s.referrer&&(A=()=>{A=null,U(50),te({referrer:s.referrer},(e=>{e.items&&e.items.forEach((e=>{we(r,e,c,d)})),_e(),G(),jt.hide()}))}),s.items&&ke(l.body,s.items,null,d),
!t.global&&s.selected_default&&i.push((()=>{d.getSelectedTab()||h.select()}))}else if(s.sub_menu_item)g=fe("div","section type_"+s.id,s.name,s.id,"section"),_=fe("div","section_head",s.name,s.id,"head"),b=fe("table","section_content",s.name,s.id,"content"),_.textContent=s.name,g.appendChild(_),s.desc&&Gs.setHelp(s.desc,_,_,s),g.appendChild(b),s.need_save&&(s.save_button=be(b,s)),ke(b,s.items,s,d),s.save_button&&b.appendChild(s.save_button),x.push(g);else if(s.userscript)if(s.deleted){a[s.uuid]={
dom:r,script:s};const e=fe("div","trash_list","deleted_scripts");e.appendChild(Ve(s,e,d)),e.inserted||fe("td","","td_trash").appendChild(e)}else if(x=Qe(s,r,d),o[s.uuid]={dom:r,script:s},r.setAttribute("class","scripttr"),s.nnew)r.setAttribute("style","display: none;");else{const e="script_refresh";ge.is(e)||(i.push((()=>{C.init(Object.values(o).map((e=>e.script))),u.multiselect.single_click(),R(),t.scripts=!0,ge.clear()})),ge.add(e))}else{const e=me("span","",s.uuid||s.id+s.name)
;e.textContent=s.name,x=Array(ve),x[3]=e}return x.forEach((e=>{if(e){if(void 0!==s.level&&(e.element||e).setAttribute("style",s.level>n.configMode?J:""),s.hint){const t=me("span","",s.uuid||s.id+s.name,"hint");t.textContent=s.hint,e.appendChild(t)}s.validation&&Re(s,e.validation||e.element||e),s.width&&e.setAttribute("class","width-172-"+s.width)}})),r&&(b=r.getAttribute("class"),_=" hide",!1===s.visible?b=(b||"")+_:b&&(b=b.replace(_,"")),r.setAttribute("class",b)),x},ke=(e,t,n,i)=>{
Object.keys(t).forEach((r=>{const s=t[r],o=e?fe("tr","settingstr",s.uuid||s.id+s.name,"pi"):null,a=we(o,s,n,i);a&&a.length&&(e&&e.appendChild(o),V(a,((e,t)=>{let n=e,i="";"Object"===N(e)&&(n=e.element,i=e.style||"");const r=fe("td",i+" settingstd","",s.uuid||s.id+s.name,t);e&&r.appendChild(n),o&&o.appendChild(r)})))}))},Re=(e,t)=>{let n;if(e.validation){e.validation.url&&(n=function(){f(this.url,!0)});const i=Gs.createAfterIcon(e,n);i&&(i.url=e.validation?e.validation.url:void 0,
t.appendChild(i))}},xe=(e,t)=>{const n=Te(),i=[];return((e,t)=>{const n=[];let i,r=Te();const s=e=>{r&&(e&&r.reject(),i&&i.disconnect(),r=null)};try{U(),i=ot.connect("exportToJson"),i.onMessage.addListener((e=>{if(r)if(e.partial&&n.push(e.partial),e.done){const e=n.join("");let t;try{t=JSON.parse(e)}catch(e){}G(),jt.hide(),t?r.resolve(t):r.reject(),s()}else e.error&&s(!0)})),i.onDisconnect.addListener((()=>{s(!0)})),i.postMessage({method:"exportToJson",ids:e,options:t})}catch(e){
console.log("eJ: "+e.message),s(!0)}return r.promise()})(e,t).done((e=>{e.scripts.forEach((e=>{e.uuid&&e.userscript&&!e.system&&!e.nnew&&(e.code&&""!=e.code.trim()?i.push((e=>{const t=e=>{var t;return e.url?{meta:{name:null===(t=bn(e.url))||void 0===t?void 0:t.pathname.split("/").pop(),url:e.url,sri:e.sri,ts:e.ts,mimetype:e.mimetype,modified:e.modified},source:e.data.content}:void 0};return{source:e.code,meta:{name:e.name,uuid:e.uuid,modified:e.lastModified,
file_url:e.file_url&&e.file_url.trim()?e.file_url:void 0},settings:{enabled:e.enabled,position:e.position},resources:e.resources?e.resources.map(t).filter((e=>e)):[],requires:e.requires?e.requires.map(t).filter((e=>e)):[],storage:e.storage||{ts:0,data:{}},options:e.options}})(e)):console.log("options: Strange script: "+e.name))})),n.resolve({scripts:i,global_settings:e.global_settings})})).fail((()=>{n.reject()})),n.promise()};let Ce=()=>(ye(),window.saveAs=async(e,t)=>{const n=new lr({blob:e})
;((e,t,n)=>{try{const{tfd:i}=e,r={method:"download",details:{from:{tfd:i},name:t,saveAs:!0},id:"options"};U(),$r(r,(e=>{G(),e&&e.load?B():e&&!e.error||I(xt("Action_failed")),jt.hide(),n&&n()}))}catch(e){console.log("dDU: "+e.message)}})({tfd:await n.toTransferableData()},t,(()=>n.dispose()))},Te.Pledge());const Ee=e=>({get:t=>(e=>Te((({resolve:t})=>{$r({method:"miscConfig",action:"get",realm:"cloud",key:e},(e=>{e?t(e.config||{}):(console.warn("sO: getting cloud info failed"),t({}))}))
})).promise())(e).then((e=>{if(t){const n={};return t.forEach((t=>{n[t]=e[t]})),n}return e})),set:t=>(Kr.emit("credentials",{type:e,credentials:t}),ee(e,t)),delete:t=>ee(e,{[t]:null}),clear:()=>ee(e,null)}),Ge=e=>{const t={name:"utils",id:"utils"},r=me("div",t.name,t.id,"tab_util_h"),s=r.textContent=xt("Utilities"),o=me("div",t.name,t.id,"tab_util");e.appendTab(t.id,r,o,(e=>{e.then((()=>{ue.set(t.id),document.title=s}))})).show();const a=fe("div","tv_util",t.name,t.id,"tab_util_cont")
;let l=()=>{((e,t,n)=>{zr=e=>{let t=Te();const n=ot.connect("tabWatch");return n.onMessage.addListener((e=>{let i;t&&((i=e.tab)?t.notify(i):(t.resolve(),t=null,n.disconnect()))})),n.onDisconnect.addListener((()=>{t&&t.resolve()})),n.postMessage({method:"tabWatch",url:e.url,filter:e.filter,active:!1}),{promise:t.promise(),close:function(){t&&t.resolve(),n.disconnect()}}},Jr=n,Vr=t})(0,Ee,ot.manifest.version),l=null},d={};const u=e=>{let t,n;return t="webdav"==e&&(n=c.cloud_config)?{url:n.url,
basic_auth:re(n.user+":"+n.pass)}:{},d[e]=d[e]||Yr[e](t)},A=()=>xe(null,{storage:c.script_storage,global_settings:c.add_tm_settings,externals:c.include_externals}).then((e=>(jt.wait(),ai(e.scripts,e.global_settings).progress(jt.wait).done((()=>B())).fail((()=>I(xt("Action_failed"))))))),h=async e=>{jt.wait();for(let t,n=0;t=e[n];n++){const e=new lr({blob:t}),n=await e.toTransferableData();P({tfd:n},{reload:!0}).progress((e=>jt.wait(e))).fail((e=>{I(e||xt("Unable_to_parse_this_"))
})).always((()=>{jt.hide(),e.dispose()}))}},p=e=>{jt.wait();const n=H.select.value,i=H.select.selectedOptions[0].text;l&&l(),(e?Te.Pledge(e):u(n).list().progress((e=>{e.total>0&&jt.wait(i+": "+Math.floor(e.loaded/e.total*100)+"%")}))).then((e=>(e=e.filter((e=>e.name.match(/\.zip$/)))).length?e:Te.Breach("empty"))).then((r=>{const s=Te(),o=X(),a=fe("table","nowrap file_select","table",o),l=me("thead","thead",o);a.appendChild(l);const c=me("th","thead_th",o);c.setAttribute("colspan","3"),
l.appendChild(c);const d=me("span","thead_span",o);d.textContent=xt("Please_select_a_file"),c.appendChild(d),r.sort(((e,t)=>e.modified-t.modified)).forEach(((t,r)=>{const l=It('<input class="button" type="button" value="'+xt("Import")+'">').on("click",(()=>{s.resolve(t),jt.hideDialog(),jt.wait()})),c=It('<input class="button" type="button" value="'+xt("Delete")+'">').on("click",(()=>{It(h).hide(),u(n).delete(t).always((()=>{t.name="<deleted>",A(),setTimeout((()=>p()),500)}))
})),d=It('<input class="button" type="button" value="'+xt("Save_to_disk")+'">').on("click",(()=>{jt.hideDialog(),jt.wait(),u(n).get(t).progress((e=>{e.total>0&&jt.wait(i+": "+Math.floor(e.loaded/e.total*100)+"%")})).then((e=>{Ce().done((()=>{saveAs(e,q(t.name)),B()})).fail((()=>I(xt("Action_failed"))))})).always((()=>{jt.hide(),p(e)}))})),h=me("tr","tr",r,o);a.appendChild(h),
[t.name,es.formatBytes(t.size,2),new Date(t.modified).toLocaleString().replace((new Date).toLocaleDateString(),xt("Today")),[l,c,d]].forEach(((e,t)=>{const n=me("td","td"+t,r,o);h.appendChild(n),n.appendChild(It("<span>")[Array.isArray(e)?"append":"text"](e).get(0),!0)}))}));const A=()=>{s.reject("cancel"),jt.hideDialog()},h=It('<input class="button" type="button" value="'+xt("Cancel")+'">').on("click",A),f=me("tfoot","tfoot",o);a.appendChild(f);const m=me("tr","tfoot_tr",o);f.appendChild(m)
;const g=me("td","td",t,o);return g.setAttribute("colspan","3"),m.appendChild(g),g.appendChild(h.get(0),!0),window.setTimeout((()=>h.trigger("focus")),100),jt.hide(),jt.dialog(a,A),s.promise()})).then((e=>u(n).get(e).progress((e=>{e.total>0&&jt.wait(i+": "+Math.floor(e.loaded/e.total*100)+"%")})))).then((e=>h([e]))).fail((e=>{let t;"empty"===e?t=xt("No_backups_found"):"cancel"==e||("auth_failed"==e?console.warn("cloud: Authentication failed"):t=xt("Error")+": "+(e||xt("Action_failed"))),
t&&pe(t),jt.hide()}))},f=Gs.createButton(t.name,t.id+"_i_ta",xt("Import"),(()=>{P({json:x.value},{reload:!0}).fail((e=>{I(e||xt("Unable_to_parse_this_"))}))})),m=Gs.createButton(t.name,t.id+"_i_cloud",xt("Show_backups"),(()=>p())),g=Gs.createButton(t.name,t.id+"_i_url",xt("Install"),(()=>(jt.wait(),P({url:de.value},{reload:!0}).progress((e=>jt.wait(e))).fail((e=>{I(e||xt("Unable_to_parse_this_"))})).always(jt.hide)))),_=Gs.createButton(t.name,t.id+"_e_ta",xt("Export"),(()=>{jt.wait(),xe(null,{
storage:c.script_storage,global_settings:c.add_tm_settings,externals:c.include_externals}).then((e=>li(e.scripts,e.global_settings))).done((e=>{x.value=e,B()})).fail((()=>I(xt("Action_failed")))).always(jt.hide)})),b=Gs.createButton(t.name,t.id+"_e_file",xt("Export"),(()=>{jt.wait(),xe(null,{storage:c.script_storage,global_settings:c.add_tm_settings,externals:c.include_externals}).then((e=>li(e.scripts,e.global_settings).then((e=>Ce().done((()=>{const t=new Blob([e],{type:"text/plain"})
;saveAs(t,q("tampermonkey-backup-"+Ms+"-"+(new Date).toISOString().replace(/[.:]/g,"-")+".txt")),B()})))))).fail((()=>I(xt("Action_failed")))).always(jt.hide)})),v=Gs.createButton(t.name,t.id+"_e_zip",xt("Export"),(()=>A().then((e=>{Ce().done((()=>{saveAs(e,q("tampermonkey-backup-"+Ms+"-"+(new Date).toISOString().replace(/[.:]/g,"-")+".zip"))}))})).always(jt.hide))),w=Gs.createButton(t.name,t.id+"_e_zip",xt("Export"),(()=>{const e=Te(),t=H.select.value,n=H.select.selectedOptions[0].text
;var i,r,s;return i=xt("Name"),r="backup-"+Ms+"-"+(new Date).toISOString().replace(/[.:]/g,"-"),s=i=>{i?e.consume((e=>A().then((i=>(jt.wait(n+"..."),l&&l(),u(t).put(e+".zip",i).progress((e=>{e.total>0&&jt.wait(n+":"+Math.floor(e.loaded/e.total*100)+"%")}))))).fail((e=>{pe(xt("Error")+": "+(e||xt("Action_failed")))})).always(jt.hide))(i)):e.reject("aborted")},setTimeout((()=>{const e=prompt(i,r);s&&s(e)}),1),e.promise()})),y=Gs.createCheckbox(xt("Include_TM_settings"),{
id:t.id+"_e_export_tm_settings",enabled:"true"},(function(){c.add_tm_settings=this.checked,M&&M.setItem("export_tm_settings",c.add_tm_settings)}));y.elem.setAttribute("style","padding-left: 2px"),y.input.checked=c.add_tm_settings;const k=Gs.createCheckbox(xt("Include_script_storage"),{id:t.id+"_e_export_storage",enabled:"true"},(function(){c.script_storage=this.checked,M&&M.setItem("export_script_storage",c.script_storage)}));k.elem.setAttribute("style","padding-left: 2px; display: inline"),
k.input.checked=c.script_storage;const R=Gs.createCheckbox(xt("Include_script_externals"),{id:t.id+"_e_export_externals",enabled:"true"},(function(){c.include_externals=this.checked,M&&M.setItem("export_externals",c.include_externals)}));R.elem.setAttribute("style","padding-left: 2px"),R.input.checked=c.include_externals;var x=fe("textarea","importta",t.name,t.id,"ta");x.setAttribute("spellcheck","false")
;const C=fe("div","section",t.name,t.id,"ta"),E=fe("div","section_head",t.name,t.id,"head_ta"),G=fe("div","section_content",t.name,t.id,"content_ta");E.textContent=xt("General"),G.appendChild(k.elem),G.appendChild(y.elem),G.appendChild(R.elem),C.appendChild(E),C.appendChild(G);const Z=fe("div","section",t.name,t.id,"ta"),S=fe("div","section_head",t.name,t.id,"head_ta"),T=fe("div","section_content",t.name,t.id,"content_ta");S.textContent=xt("TextArea"),T.appendChild(_),T.appendChild(f),
T.appendChild(x),Z.appendChild(S),Z.appendChild(T);const U=fe("div","section",t.name,t.id,"sb"),L=fe("div","section_head",t.name,t.id,"head_sb"),F=fe("div","section_content",t.name,t.id,"content_sb");L.textContent=xt("Zip"),U.appendChild(L),U.appendChild(F),F.appendChild(v);const j=fe("div","section",t.name,t.id,"sb"),D=fe("div","section_head",t.name,t.id,"head_sb"),O=fe("div","section_content",t.name,t.id,"content_sb"),z=M,N=function(){It($).toggle("webdav"===this.value);const e=u(this.value)
;It(ee).toggle(e&&!!e.revoke),z&&z.setItem("cloud_type",this.value)};let Q;z&&(Q=z.getItem("cloud_type"));var H=Gs.createDropDown(xt("Type"),{id:"cloud_type",value:Q||"drive"},[{name:xt("Google_Drive"),value:"drive"},{name:xt("Dropbox"),value:"dropbox"},{name:xt("OneDrive"),value:"onedrive"},{name:xt("Yandex_Disk"),value:"yandex"},{name:xt("WebDAV"),value:"webdav"}].filter((e=>e)),N);const W=e=>function(){let t;d={},(c.cloud_config=c.cloud_config||{})[e]=this.value,
(t=M)&&t.setItem("cloud_config",re(JSON.stringify(c.cloud_config)))},Y=Gs.createInput(xt("URL"),{id:"select_cloud_url",uuid:t.uuid,value:(c.cloud_config?c.cloud_config.url:null)||""},W("url")),J=Gs.createInput(xt("Login"),{id:"select_cloud_username",uuid:t.uuid,value:(c.cloud_config?c.cloud_config.user:null)||""},W("user")),K=Gs.createInput(xt("Password"),{id:"select_cloud_password",uuid:t.uuid,password:!0,value:(c.cloud_config?c.cloud_config.pass:null)||""},W("pass")),$=[Y.elem,J.elem,K.elem]
;i.push((()=>{N.apply(H.select,[])})),D.textContent=xt("Cloud"),j.appendChild(D),j.appendChild(O),O.appendChild([H.elem].concat($)),O.appendChild(w),O.appendChild(m);const ee=Gs.createButton("revoke_token_button",t.uuid,xt("Revoke_Access_Token"),(()=>{l&&l(),It(ee).prop("disabled",!0);const e=u(H.select.value);jt.wait(),e.revoke().then((()=>Pe(15e3))).done((()=>B())).fail((()=>I(xt("Action_failed")))).always((()=>{jt.hide(),It(ee).prop("disabled",!1)}))}));O.appendChild(ee)
;const te=fe("div","section",t.name,t.id,"fi"),ne=fe("div","section_head",t.name,t.id,"head_fi"),ie=fe("div","section_content",t.name,t.id,"content_fi");ne.textContent=xt("File"),te.appendChild(ne),te.appendChild(ie),ie.appendChild(b);const se=["application/javascript","application/json","application/zip","text/plain"].join(","),oe=Gs.createFileSelect("",{name:"file",id:t.id,accept:se
},h),ae=fe("div","section",t.name,t.id,"ifi"),le=fe("div","section_head",t.name,t.id,"head_ifi"),ce=fe("div","section_content",t.name,t.id,"content_ifi");ce.appendChild(oe.elem),le.textContent=xt("Import_from_file"),ae.appendChild(le),ae.appendChild(ce);const de=fe("input","updateurl_input",t.name,t.id,"url");de.setAttribute("type","text"),de.setAttribute("spellcheck","false")
;const Ae=fe("div","section",t.name,t.id,"ur"),he=fe("div","section_head",t.name,t.id,"head_ur"),ge=fe("div","section_content",t.name,t.id,"content_ur");he.textContent=xt("Import_from_URL"),Ae.appendChild(he),Ae.appendChild(ge),ge.appendChild(de),ge.appendChild(g),a.appendChild(C),"undefined"!=typeof Blob&&a.appendChild(j),a.appendChild(ae),a.appendChild(U),"undefined"!=typeof Blob&&a.appendChild(te),a.appendChild(Z),a.appendChild(Ae),V([Z],(e=>{const t=" hide";let i=e.getAttribute("class")
;n.configMode<50?i+=t:i=i.replace(t,""),e.setAttribute("class",i)})),o.appendChild(a)},Se=e=>{ke(null,e,null,d),jt.hide(),_e()},Be=(e,t,n,i)=>{void 0===i&&(i={});const r=t.item,s=r.uuid+(i.orig||"")+t.id,o=(i.orig?"orig_":"use_")+t.id,a=e=>"select_"+Ae(e,r.uuid)+"_sel1",l=fe("div","cludes",e,s,"cb1"),c=me("span",e,s,"cb2");if(i.orig){const n=function(){if("checkbox"==this.type){const e={};e[this.key]=this.checked,ae(this.uuid,e)}
},i="merge_"+t.id,s=!!(r.options&&r.options.override&&r.options.override[i]),o=Gs.createCheckbox(e,{id:i,uuid:r.uuid,enabled:s},n);c.appendChild(o.elem)}else c.textContent=e;const d=fe("select","cludes",o,r.uuid,"sel1");d.innerHTML="",d.setAttribute("size","6"),d.setAttribute("multiple","true");for(let e=0;e<n.length;e++){const t=document.createElement("option");t.value=t.text=n[e],d.appendChild(t)}l.appendChild(c),r.desc&&Gs.setHelp(r.desc,l,c,r),l.appendChild(d);const u=e=>{
const t=[],n=e&&e.options;for(let e=0,i=n.length;e<i;e++)n[e].selected&&t.push(n[e]);return t},A=()=>{const e=a("use_"+("excludes"==t.id?"includes":"excludes")),n=document.getElementById(e),i=u(d);let r=!1;const s="matches"==t.id;i.forEach((e=>{const t=s?"/"+cn(e.value,!0)+"/":e.value;let i;e&&!n.querySelector('option[value="'+t+'"]')&&(i=e.cloneNode(!0),s&&(i.value=t,i.textContent=t),n.appendChild(i),r=!0)})),r&&g()},h=()=>{const e=prompt(xt("Enter_the_new_rule"));if(e){
const t=document.createElement("option");t.value=t.text=e.trim(),d.appendChild(t),g()}},p=()=>{const e=d.options[d.selectedIndex];if(!e)return;const t=prompt(xt("Enter_the_new_rule"),e.value);t&&(e.value=e.text=t.trim(),g())},f=()=>{const e=u(d);let t=!1;e.forEach((e=>{e&&(e.parentNode.removeChild(e),t=!0)})),t&&g()},m=e=>{const t=[];for(let n=0;n<e.options.length;n++)t.push(e.options[n].value);return t};var g=()=>{const e={includes:m(document.getElementById(a("use_includes"))),
matches:m(document.getElementById(a("use_matches"))),excludes:m(document.getElementById(a("use_excludes"))),connects:m(document.getElementById(a("use_connects"))),temp_connects:m(document.getElementById(a("use_temp_connects"))),blockers:m(document.getElementById(a("use_blockers")))};return ae(r.uuid,e),!0};if(i.other_name){const t=me("button",e,s,"btn1",!0);t.textContent=xt("Add_as_0clude0",i.other_name),t.addEventListener("click",A,!1),l.appendChild(t)}else if(!i.orig){
const t=me("button",e,s,"btn2",!0);t.textContent=xt("Add")+"...",t.addEventListener("click",h,!1),l.appendChild(t);const n=me("button",e,s,"btn3",!0);n.textContent=xt("Edit")+"...",n.addEventListener("click",p,!1),l.appendChild(n);const i=me("button",e,s,"btn4",!0);i.textContent=xt("Remove"),i.addEventListener("click",f,!1),l.appendChild(i)}return{elem:l}},Ie=(e,t,n,i)=>{const r=t.item,s=r.uuid+t.id,o="permission_"+t.id,a=fe("div","permissions",e,s,"cb1"),l=me("span",e,s,"cb2");l.textContent=e
;const c=fe("select","permissions",o,r.uuid,"sel1");c.innerHTML="",c.setAttribute("size","6"),c.setAttribute("multiple","true");for(let e=0;e<n.length;e++){const t=document.createElement("option");t.value=t.text=n[e],c.appendChild(t)}a.appendChild(l),r.desc&&Gs.setHelp(r.desc,a,l,r),a.appendChild(c);const d=(e,t)=>{const n=[],i=e&&e.options;for(let e=0,r=i.length;e<r;e++)void 0!==t&&i[e].selected!==t||n.push(i[e]);return n},u=e=>{const t=e.reduce(((e,t)=>{const n=t.value;return n&&(e[n]=!0),e
}),{}),n=Object.keys(t);n.length&&i(n)},A=me("button",e,s,"btn1",!0);A.textContent=xt("Grant_selected"),A.addEventListener("click",(()=>{const e=d(c,!0);u(e)}),!1),a.appendChild(A);const h=me("button",e,s,"btn2",!0);h.textContent=xt("Grant_all"),h.addEventListener("click",(()=>{const e=d(c);u(e)}),!1),a.appendChild(h);const p=me("button",e,s,"btn3",!0);return p.textContent=xt("Reset_list"),p.addEventListener("click",(()=>{i(null)}),!1),a.appendChild(p),{elem:a,select:c,buttons:[A,h,p]}
},Ue=e=>e.homepage?e.homepage:e.namespace&&0==e.namespace.search(/https?:\/\//)?e.namespace:null,Le=e=>({code:(e.code?e.code:e).length,requires:(e.requires||[]).reduce(((e,{data:t})=>e+(t&&t.content?t.content:t).length||0),0),resources:(e.resources||[]).reduce(((e,{data:t})=>e+(t&&t.content?t.content:t).length||0),0)}),Fe=e=>{const t="http://"+e+"/";let i
;return i=0==t.indexOf("http://userscripts.org/")||0==t.indexOf("http://userscripts.com/")?Us.origin("uso"):"native"==n.favicon_service?t+"favicon.ico":"duckduckgo"==n.favicon_service?"https://icons.duckduckgo.com/ip2/"+encodeURIComponent(e)+".ico":"https://www.google.com/s2/favicons?sz=64&domain="+encodeURIComponent(e),[i]},Me={save:{text:xt("Save"),command:"save"},save_to_disk:{text:xt("Save_to_disk"),command:"save_to_disk"},cancel:{text:xt("Editor_reset"),command:"cancel"},update:{
text:xt("Check_for_Updates"),command:"update"},remove:{text:xt("Delete"),command:"remove"},close:{text:xt("Close"),command:"close"},undo:{text:xt("Undo"),command:"undo"},redo:{text:xt("Redo"),command:"redo"},cut:{text:xt("Cut"),command:"cut"},copy:{text:xt("Copy"),command:"copy"},paste:{text:xt("Paste"),command:"paste"},delete:{text:xt("Delete"),command:"delete"},selectAll:{text:xt("Select_All"),command:"selectAll"},toggleComment:{text:xt("Toggle_Comment"),command:"toggleComment"},
toggleCommentIndented:{text:xt("Toggle_Comment_Indented"),command:"toggleCommentIndented"},toggleBlockComment:{text:xt("Toggle_Block_Comment"),command:"toggleBlockComment"},intelligentTab:{text:xt("Indent"),command:"intelligentTab"},indentLess:{text:xt("Indent_Less"),command:"indentLess"},indentMore:{text:xt("Indent_More"),command:"indentMore"},reindentall:{text:xt("Auto_Indent_all"),command:"reindentall"},swapLineUp:{text:xt("Move_Line_Up"),command:"swapLineUp"},swapLineDown:{
text:xt("Move_Line_Down"),command:"swapLineDown"},duplicateLine:{text:xt("Duplicate_Lines"),command:"duplicateLine"},deleteLine:{text:xt("Delete_Line"),command:"deleteLine"},joinLines:{text:xt("Join_Lines"),command:"joinLines"},insertLineBefore:{text:xt("Insert_Line_Before"),command:"insertLineBefore"},insertLineAfter:{text:xt("Insert_Line_After"),command:"insertLineAfter"},upcaseAtCursor:{text:xt("Upper_Case"),command:"upcaseAtCursor"},downcaseAtCursor:{text:xt("Lower_Case"),
command:"downcaseAtCursor"},delLineLeft:{text:xt("Delete_Line_Left"),command:"delLineLeft"},delLineRight:{text:xt("Delete_Line_Right"),command:"delLineRight"},delGroupBefore:{text:xt("Delete_to_Previous_Word_Boundary"),command:"delGroupBefore"},delGroupAfter:{text:xt("Delete_to_Next_Word_Boundary"),command:"delGroupAfter"},transposeChars:{text:xt("Transpose"),command:"transposeChars"},sortLines:{text:xt("Lines"),command:"sortLines"},sortLinesInsensitive:{text:xt("Line_Case_Insensitive"),
command:"sortLinesInsensitive"},fold:{text:xt("Fold"),command:"fold"},unfold:{text:xt("Unfold"),command:"unfold"},foldAll:{text:xt("Fold_All"),command:"foldAll"},unfoldAll:{text:xt("Unfold_All"),command:"unfoldAll"},setSublimeMark:{text:xt("Set_Sublime_Mark"),command:"setSublimeMark"},selectToSublimeMark:{text:xt("Select_to_Sublime_Mark"),command:"selectToSublimeMark"},swapWithSublimeMark:{text:xt("Swap_with_Sublime_Mark"),command:"swapWithSublimeMark"},deleteToSublimeMark:{
text:xt("Delete_to_Sublime_Mark"),command:"deleteToSublimeMark"},sublimeYank:{text:xt("Yank_Sublime_Mark"),command:"sublimeYank"},undoSelection:{text:xt("Undo"),command:"undoSelection"},redoSelection:{text:xt("Redo"),command:"redoSelection"},selectMatchingPartsOfCurrentSelection:{text:xt("Incremental_Find"),command:"selectMatchingPartsOfCurrentSelection"},selectLinesUpward:{text:xt("Add_Selection_Above"),command:"selectLinesUpward"},selectLinesDownward:{text:xt("Add_Selection_Below"),
command:"selectLinesDownward"},splitSelection:{text:xt("Split_into_Lines"),command:"splitSelection"},selectLine:{text:xt("Select_Line"),command:"selectLine"},selectScope:{text:xt("Select_Scope"),command:"selectScope"},selectBookmarks:{text:xt("Select_Bookmarks"),command:"selectBookmarks"},selectBetweenBrackets:{text:xt("Select_between_Brackets"),command:"selectBetweenBrackets"},selectNextOccurrence:{text:xt("Select_Next_Occurrence"),command:"selectNextOccurrence"},selectAllOccurrences:{
text:xt("Select_All_Occurrences"),command:"selectAllOccurrences"},find:{text:xt("Find"),command:"find"},replace:{text:xt("Replace"),command:"replace"},replaceAll:{text:xt("Replace_All"),command:"replaceAll"},findNext:{text:xt("Find_Next"),command:"findNext"},findPrev:{text:xt("Find_Previous"),command:"findPrev"},findUnder:{text:xt("Find_Under"),command:"findUnder"},findAllUnder:{text:xt("Find_All_Under"),command:"findAllUnder"},findUnderPrevious:{text:xt("Find_Under_Previous"),
command:"findUnderPrevious"},jump:{text:xt("Jump_to_line"),command:"jump"},goDocStart:{text:xt("Document_Start"),command:"goDocStart"},goDocEnd:{text:xt("Document_End"),command:"goDocEnd"},goGroupLeft:{text:xt("Group_Left"),command:"goGroupLeft"},goGroupRight:{text:xt("Group_Right"),command:"goGroupRight"},goToBracket:{text:xt("Closing_Bracket"),command:"goToBracket"},goLineUp:{text:xt("Line_Up"),command:"goLineUp"},goLineDown:{text:xt("Line_Down"),command:"goLineDown"},showInCenter:{
text:xt("Center_Cursor"),command:"showInCenter"},scrollLineUp:{text:xt("Line_Up"),command:"scrollLineUp"},scrollLineDown:{text:xt("Line_Down"),command:"scrollLineDown"},toggleBookmark:{text:xt("Toggle"),command:"toggleBookmark"},clearBookmarks:{text:xt("Clear_All"),command:"clearBookmarks"},nextBookmark:{text:xt("Next_Bookmark"),command:"nextBookmark"},prevBookmark:{text:xt("Prev_Bookmark"),command:"prevBookmark"},macro:{text:xt("Insert_constructor"),command:"macro"},lint_script:{
text:xt("Run_syntax_check"),command:"lint_script"},reset:{text:xt("Full_reset"),command:"reset"},previousTab:{text:xt("Previous_tab"),command:"previousTab"},nextTab:{text:xt("Next_tab"),command:"nextTab"},nextTheme:{text:xt("Next_theme"),command:"nextTheme"},autocomplete:{text:xt("Autocomplete"),command:"autocomplete"},backOrClose:{text:xt("Back_or_close"),command:"backOrClose"},wrapLines:{text:xt("Wrap_lines"),command:"wrapLines"},splitSelectionByLine:{text:xt("Split_selection_by_line"),
command:"splitSelectionByLine"},smartBackspace:{text:xt("Smart_Backspace"),command:"smartBackspace"},skipAndSelectNextOccurrence:{text:xt("Skip_and_select_next_occurrence"),command:"skipAndSelectNextOccurrence"},addCursorToPrevLine:{text:xt("Add_cursor_to_prev_line"),command:"addCursorToPrevLine"},addCursorToNextLine:{text:xt("Add_cursor_to_next_line"),command:"addCursorToNextLine"},findIncremental:{text:xt("Find_incremental"),command:"findIncremental"},findIncrementalReverse:{
text:xt("Find_incremental_reverse"),command:"findIncrementalReverse"},nextProblem:{text:xt("Next_Problem"),command:"nextProblem"},prevProblem:{text:xt("Prev_Problem"),command:"prevProblem"}},je=(e,t)=>{const i=me("div",e.uuid,"script_setting_h"),r=me("div",e.uuid,"script_settings_c");i.textContent=xt("Settings");const s=function(){const e={};if("checkbox"==this.type)e[this.key]=!!this.checked,ae(this.uuid,e);else if("button"==this.type)e[this.key]=!this.oldvalue,
ae(this.uuid,e);else if("select-one"==this.type){let t=Gs.getValue(this);this.array&&null!==t&&(t=t.split(",").map((e=>e.trim())).filter((e=>e))),e[this.key]=t,ae(this.uuid,e)}else if("text"==this.type||"textarea"==this.type){const t=Gs.getValue(this);e[this.key]=t,ae(this.uuid,e)}},o=Gs.createCheckbox(xt("Enabled"),{id:"enabled",uuid:e.uuid,name:"upd",enabled:e.enabled},s).elem,a=Gs.createPosition(xt("Position_")+": ",{id:"position",uuid:e.uuid,name:"pos",pos:e.position,posof:e.positionof
},s),l=Gs.createDropDown(xt("Run_at"),{id:"run_at",uuid:e.uuid,name:"run-at",value:e.options.run_at},[{name:"document-start",value:"document-start"},{name:"document-body",value:"document-body"},{name:"document-end",value:"document-end"},{name:"document-idle",value:"document-idle"},{name:"context-menu",value:"context-menu"},{name:xt("Default"),value:null}],s),c=Gs.createDropDown(xt("No_frames"),{id:"noframes",uuid:e.uuid,name:"no_frames",value:e.options.noframes},[{name:xt("Yes"),value:!0},{
name:xt("No"),value:!1},{name:xt("Default"),value:null}],s),d=Gs.createDropDown(xt("Run_in"),{id:"run_in",uuid:e.uuid,name:"run_in",array:!0,value:e.options.run_in},[{name:xt("Incognito_tabs"),value:["incognito-tabs"]},{name:xt("Normal_tabs"),value:["normal-tabs"]},{name:xt("All_tabs"),value:[]},{name:xt("Default"),value:null}],s),u=Gs.createCheckbox(xt("Check_for_Updates"),{id:"check_for_updates",uuid:e.uuid,name:"upd",enabled:e.options.check_for_updates});if(e.options.user_modified){
const t=xt("This_script_has_local_modifications_and_needs_to_be_updated_manually");Gs.setHelp(t,u.elem,u.span,e,"critical")}const A=Gs.createInput(xt("Update_URL_"),{id:"file_url",uuid:e.uuid,name:"uu",value:e.file_url});A.input.setAttribute("class","updateurl_input"),A.elem.setAttribute("class","updateurl"),e.is_external&&A.input.setAttribute("readonly","true");const p=t=>(e.options&&e.options.override?e.options.override[t]:null)||[],f=Be(xt("Original_includes"),{id:"includes",item:e
},p("orig_includes"),{orig:!0,other_name:xt("User_excludes")}),m=Be(xt("Original_matches"),{id:"matches",item:e},p("orig_matches"),{orig:!0,other_name:xt("User_excludes")}),g=Be(xt("Original_excludes"),{id:"excludes",item:e},p("orig_excludes"),{orig:!0,other_name:xt("User_includes")}),_=fe("div","clear",e.uuid,"clear"),b=Be(xt("User_includes"),{id:"includes",item:e},p("use_includes")),v=Be(xt("User_matches"),{id:"matches",item:e},p("use_matches")),w=Be(xt("User_excludes"),{id:"excludes",item:e
},p("use_excludes")),y=Be(xt("Original_domain_whitelist"),{id:"connects",item:e},e.connects,{orig:!0}),k=Be(xt("Temporary_domain_whitelist"),{id:"temp_connects",item:e},e.temp_connects),R=Be(xt("User_domain_whitelist"),{id:"connects",item:e},p("use_connects")),x=Be(xt("User_domain_blacklist"),{id:"blockers",item:e},p("use_blockers")),C=[Gs.createCheckbox(xt("Apply_compatibility_options_to_required_script_too"),{id:"compatopts_for_requires",uuid:e.uuid,name:"",
enabled:e.options.compatopts_for_requires},s),Gs.createCheckbox(xt("Fix_wrappedJSObject_property_access"),{id:"compat_wrappedjsobject",uuid:e.uuid,name:"",enabled:e.options.compat_wrappedjsobject},s),Gs.createCheckbox(xt("Convert_CDATA_sections_into_a_chrome_compatible_format"),{id:"compat_metadata",uuid:e.uuid,name:"",enabled:e.options.compat_metadata},s),Gs.createCheckbox(xt("Replace_for_each_statements"),{id:"compat_foreach",uuid:e.uuid,name:"",enabled:e.options.compat_foreach
},s),Gs.createDropDown(xt("Add_GM_functions_to_this_or_window"),{id:"compat_powerful_this",uuid:e.uuid,name:"",value:e.options.compat_powerful_this,desc:xt("Enabling_this_makes_it_easy_for_scripts_to_leak_it_s_granted_powers_to_the_page_Therefore__off__is_the_safest_option_",xt("Off"))},[{name:xt("Auto"),value:null},{name:xt("On"),value:!0},{name:xt("Off"),value:!1
}],s)],E=fe("div","section",e.uuid,"ta_opt"),G=fe("div","section_head",e.uuid,"head_ta_opt"),Z=fe("div","section_content",e.uuid,"content_ta_opt");G.textContent=xt("General"),E.appendChild(G),E.appendChild(Z);const S=fe("div","section",e.uuid,"ta_upd"),B=fe("div","section_head",e.uuid,"head_ta_upd"),T=fe("div","section_content",e.uuid,"content_ta_upd");B.textContent=xt("Updates"),S.appendChild(B),S.appendChild(T)
;const I=fe("div","section",e.uuid,"ta_cludes"),U=fe("div","section_head",e.uuid,"head_ta_cludes"),L=fe("div","section_content",e.uuid,"content_ta_cludes");U.textContent=xt("Includes_Excludes"),I.appendChild(U),I.appendChild(L);const F=fe("div","section",e.uuid,"ta_security"),M=fe("div","section_head",e.uuid,"head_ta_security"),j=fe("div","section_content",e.uuid,"content_ta_security");M.textContent=xt("XHR_Security"),F.appendChild(M),F.appendChild(j)
;const D=fe("div","section",e.uuid,"ta_compat"),O=fe("div","section_head",e.uuid,"head_ta_compat"),z=fe("div","section_content",e.uuid,"content_ta_compat");O.textContent=xt("GM_compat_options_"),D.appendChild(O),D.appendChild(z),Z.appendChild(o),Z.appendChild(a),Z.appendChild(l.elem),Z.appendChild(c.elem),Z.appendChild(d.elem);const P=Gs.createButton("save_update_button",e.uuid,xt("Save"),(()=>{s.apply(u.input,[]),e.is_external||s.apply(A.input,[])
})),N=Gs.createButton("start_update_button",e.uuid,e.updatable?xt("Apply_update"):xt("Check_for_userscripts_updates"),(()=>h(e.uuid,"scriptUpdate")));T.appendChild([u.elem,A.elem,P,N]),L.appendChild([f.elem,m.elem,g.elem,_,b.elem,v.elem,w.elem]);const V=[y.elem,k.elem,R.elem,x.elem];It(V).addClass("domain"),j.appendChild(V);for(let e=0;e<C.length;e++)z.appendChild(C[e].elem);const Q={name:"",uuid:e.uuid,id:"comment",value:e.options.comment},H=Gs.createTextarea(null,Q)
;H.elem.setAttribute("class","script_setting_wrapper");const q=me("div",e.uuid,"save"),X=Gs.createButton("save_button",e.uuid,xt("Save"),(()=>{s.apply(H.textarea,[])}));q.appendChild(X);const W=fe("div","section",e.uuid,"ta_comment"),J=fe("div","section_head",e.uuid,"head_ta_comment"),K=fe("div","section_content",e.uuid,"content_ta_comment");let $;if(J.textContent=xt("Comment"),W.appendChild(J),W.appendChild(K),K.appendChild(H.elem),K.appendChild(q),n.tags_enabled){
$=fe("div","section scriptsettings",e.uuid,"ta_tags");const t={name:"",uuid:e.uuid,id:"tags"};let i={};const r=n.tags||{};e.options.tags.forEach((e=>{const t=r[e];i[e]={...t||{},disabled:t?void 0:xt("This_tag_is_not_part_of_the_system_tag_list_"),add:!t}}));const s=Gs.createTagEditor(xt("Tags"),t,i,{tagsToAdd:Object.keys(r).filter((e=>!i[e])),onTagAdd:t=>{const r=n.tags||{};r[t]||(r[t]={},Y("tags",r),ae(e.uuid,{tags:Object.keys(i)}))},onChange:t=>{ae(e.uuid,{tags:Object.keys(t)})}
}),o=fe("div","section_head",e.uuid,"head_ta_tags"),a=fe("div","section_content",e.uuid,"content_ta_tags");o.textContent=xt("Script_Tags"),$.appendChild(o),$.appendChild(a),a.appendChild(s.elem)}const ee=fe("div","section",e.uuid,"ta_det"),te=fe("div","section_head",e.uuid,"head_ta_det"),ne=fe("div","section_content",e.uuid,"content_ta_det");te.textContent=xt("Details"),ee.appendChild(te),ee.appendChild(ne),te.textContent=xt("Details")
;const ie=fe("table","script_details",e.uuid,"script_details");[{label:xt("Size"),value:es.formatBytes((e.code?e.code:e).length,2)},{label:xt("Last_updated"),value:new Date(e.lastModified||e.lastUpdated).toLocaleString()},{label:xt("UUID"),value:e.uuid}].forEach((t=>{const n=fe("tr","external_desc",e.uuid,t.label,"tr"),i=fe("td","external_desc",e.uuid,t.label,"td1"),r=fe("td","",e.uuid,t.label,"td2");i.textContent=t.label,r.textContent=t.value,n.appendChild(i),n.appendChild(r),ie.appendChild(n)
})),ne.appendChild(ie),r.appendChild([ee,E,S,...n.tags_enabled?[$]:[],I,F,D,W]);const re=t.appendTab("settings",i,r,(e=>{e.then((()=>{ue.setSub("settings")}))}));return ue.registerListener(e.uuid,"settings",(()=>{re.select()})),{}},De=(e,t,n,i)=>{const r=fe("table","externals",e.uuid,"outer_req2html",t,!0);let s=0;const o=[{label:xt("URL"),prop:"display_url"},{label:xt("Size"),prop:"data",fn:function(e){let t="?";return e&&(void 0!==e.length?t=e.length:void 0!==e.content&&(t=e.content.length)),
es.formatBytes(t,2)}},{label:xt("MIME_Type"),prop:"mimetype"},{label:xt("Subresource_Integrity"),prop:"sri",fn:function(e){return e?e.type+"="+e.value:xt("_not_set_")}},{label:xt("Last_updated"),prop:"ts",fn:function(e){return e?new Date(e).toString():null}}];if(o.push({label:xt("User_modified"),prop:"modified",klass:"validation",title:xt("This_external_resource_will_not_auto_update__Please_delete_it_in_order_to_enable_updates_again_"),icon:Us.get("info"),fn:function(e){return e?xt("Yes"):null}
}),e[t].forEach((a=>{const l=s+Ae(a.url)+t;o.forEach((t=>{let n;const i=fe("tr","",e.uuid,t.prop,"tr"+l),s=fe("td","external_label",e.uuid,t.prop,"td1"+l),o=fe("td","external_desc",e.uuid,t.prop,"td2"+l);if(s.textContent=t.label,o.textContent=n=(t.fn?t.fn:e=>e)(a[t.prop]),null!==n){if(t.klass&&It(o).addClass(t.klass),t.title&&o.setAttribute("title",t.title),t.icon){const n=fe("span","validation",e.uuid,"validation","span"+l)
;n.appendChild(Gs.createIcon(t.icon+" red","warning",e.uuid,l+"no_require_update_warning")),o.appendChild(n)}i.appendChild(s),i.appendChild(o),r.appendChild(i)}}));const c=fe("tr","external_desc_buttons",e.uuid,a.url,"tr"+l),d=fe("td","",e.uuid,"buttons","td"+l);if(c.appendChild(d),r.appendChild(c),a.ts){if("requires"==t||a.viewable){const t=me("span",e.uuid,"edit_external"+l),r=Gs.createImageTextButton(e.uuid,"edit_external"+l,a.editable?xt("Edit"):xt("View"),"edit",(()=>{Oe(n,e.uuid,a,i)}))
;t.appendChild(r),d.appendChild(t)}const r=me("span",e.uuid,"update_external"+l),s=Gs.createImageTextButton(e.uuid,"update_external"+l,xt("Update"),"update",(()=>{((e,t)=>{try{U(),$r({method:"buttonPress",name:"externals_update",scriptuid:e,safe_url:t},(e=>{G(),e?(B(),e.items?D(e.items,!1):jt.hide()):(I(xt("Action_failed")),jt.hide())}))}catch(e){console.log("dEx: "+e.message)}})(e.uuid,a.url),s.parentNode&&s.parentNode.removeChild(s)}));r.appendChild(s),d.appendChild(r)
;const o=me("span",e.uuid,"delete_external"+l),c=Gs.createImageTextButton(e.uuid,"delete_external"+l,xt("Delete"),"delete",(()=>{((e,t)=>{try{U(),$r({method:"buttonPress",name:"externals_delete",scriptuid:e,safe_url:t},(e=>{G(),e?(B(),e.items?D(e.items,!1):jt.hide()):(I(xt("Action_failed")),jt.hide())}))}catch(e){console.log("dEx: "+e.message)}})(e.uuid,a.url),c.parentNode&&c.parentNode.removeChild(c)}));o.appendChild(c),d.appendChild(o)}s++})),!s){
const t=fe("tr","script_desc",e.uuid,s,"tr"),n=fe("td","script_desc",e.uuid,s,"td1");n.textContent=xt("No_entry_found"),t.appendChild(n),r.appendChild(t)}return r},Oe=(e,t,n,i)=>{const s="externals-"+t+"-"+n.url;u[s]={};const o=Ne({uuid:s,script_uuid:t,readonly:!n.editable,mimetype:n.mimetype,name:xt("Externals")+" - "+n.url,file_url:n.url,referrer:"options.scripts.userscripts"},e,(()=>{i(o.getEditor())}),(()=>{delete r["tab"+s],delete r["editor"+s],delete u[s]}));o.show()},ze=(e,t,i)=>{
const s=fe("tr","editor_container p100100",e.uuid,"container"),a=i.mimetype||"text/javascript",l=!a||/(application|text)\/(?:x-)?(?:java|ecma)script/.test(a);if(!e.nnew&&h(e.uuid,"lastI"))return r["editor"+e.uuid]||{};e.nnew&&(e.code=(e=>{const t=de.url?se(de.url):null,n=(new Date).toISOString().split("T")
;return e.replace("<$URL$>",t||"https://*/*").replace("<$ICON$>",t?Fe(bn(t).domain)[0]:Xt.images.empty).replace("<$DATE$>",n[0]).replace("<$DATETIME$>",n[0]+"-"+n[1].split(".")[0].replace(/:/g,"-"))})(n.script_templates[0].value))
;const c=me("div",e.uuid,"script_editor_h"),d=c.inserted,A=me("div",e.uuid,"script_editor_c"),p=fe("tr","editormenubar",e.uuid,"container_menu"),f=fe("tr","editorbuttonbar",e.uuid,"container_button_menu"),m=fe("table","editor_container_o p100100 noborder",e.uuid,"container_o");m.appendChild(f),m.appendChild(p),m.appendChild(s),A.appendChild(m);const g=new We(1),_=()=>{let t=!1;return s.editor&&(n.editor_enabled?t|=s.editor.changed&&s.editor.mirror.historySize().undo:t=s.editor.value!=e.code),t
},b=()=>{h(e.uuid,"saveToDisk")},v=async t=>{Ls.commands.trimTrailingSpacesIfEnabled(s.editor.mirror),await h(e.uuid,"saveEm",{from_external:t})},w=(e,t,n)=>{i.do_close&&i.do_close(t,n)},y=()=>{confirm(xt("Really_factory_reset_this_script_"))&&u[e.uuid].fullReset((e=>{e.cleaned&&w(0,!0,!1)}))},k=t=>{if((t||confirm(xt("Really_reset_all_changes_")))&&s.editor){const t=e.code||"";n.editor_enabled?(s.editor.mirror.setValue(t),x(!1)):s.editor.value=t}},R=()=>{w(0,!0,!1),u[e.uuid].deleteScript()
},x=e=>{s.editor.changed!=e&&(i.set_tab_class&&i.set_tab_class("modified",e),ie.toggleClass("modified",e)),s.editor.changed=e},C=()=>{window.setTimeout((()=>{let e;n.editor_enabled&&(e=s.editor)&&(jt.wait(),window.setTimeout((()=>{(()=>{const t=e.mirror.performLint(!0);return t&&t.then?t:Te.Pledge(t)})().then((()=>{const t=e.mirror.state.lint?e.mirror.state.lint.marked:null;if(t&&t.length){1===t.length?I(xt("One_error_or_hint_was_found_")):I(xt("0count0_errors_or_hints_were_found_",t.length))
;for(let n,i=0;n=t[i];i++){let t,i,r;if(void 0!==n.line&&void 0!==n.column?(i=n.line,r=n.column):n.lines&&n.lines.length&&(t=n.lines[0],i=t.lineNo()+1,r=t.markedSpans&&t.markedSpans.length?t.markedSpans[0].from+1:1),i&&r){e.mirror.setCursor(i-1,r-1),e.mirror.focus();break}}}else T(xt("No_syntax_errors_were_found_"));jt.hide()}))}),100))}),0)},E=fe("td","",e.uuid,"editor_buttonmenu_td");f.appendChild(E);const Z=fe("ul","editormenu",e.uuid,"editormenu"),S=fe("td","",e.uuid,"editormenu_td");let F,M
;S.appendChild(Z);const j=(e,t)=>{let n,i;e&&(n=It(e),i=!!t&&n.hasClass("visible")),It("ul.editormenu .submenu").removeClass("visible"),e?(n.toggleClass("visible",!i),M=i?null:e):M=null,e&&i||(F=e=>{let t;F&&(t=It(e.target))&&!t.closest(".editormenu").length&&(j(),document.body.removeEventListener("click",F),F=null)},document.body.addEventListener("click",F))},O=(t,n)=>{const i=fe("li","entry",e.uuid,t,"editormenuentry",!0),r=me("label",e.uuid,t,"editormenulabel_id");r.textContent=n
;const s=fe("table","submenu noborder",e.uuid,"editormenucontent"+t);return i.appendChild([r,s]),i.addEventListener("click",(e=>{It(e.target).closest(".entry").hasClass("list")||j(s,!0)})),i.addEventListener("mousemove",(function(){M&&M!=this&&j(s)})),{elem:i,content:s}},z=e=>()=>{s.editor.mirror.focus(),s.editor.mirror.execCommand(e)};let P,N;const V=async()=>{await g.acquire(),N&&(N.disconnect(),N=null),P&&(clearInterval(P),P=void 0),g.release()},W=async()=>{if(L){await V();const[e]=await L({
multiple:!1,types:[{description:"Userscript files",accept:{"text/plain":[".txt"],"application/javascript":[".js",".user.js"]}}]});return e}{const e=await new Promise((e=>{const t=X(),n=me("input",t,"filepicker");n.setAttribute("type","file"),n.setAttribute("hidden","true"),n.addEventListener("change",(t=>{const n=t.target.files[0];e(n)})),It(document.body).append(n),n.click()}));return await V(),e}},J=async(e,t)=>{const n=await e.text();s.editor.mirror.setValue(n),s.editor.mirror.focus(),
t&&await v(!0)},K=()=>{const t=e.readonly||e.system||!!P||!!N,i={file:{text:xt("File"),entries:[].concat(t?[]:[{...Me.save,image:Us.get("filesave"),cb:function(){v()}},{...Me.save_to_disk,image:Us.get("save_to_disk"),cb:b}]).concat(!n.editor_enabled||n.configMode<50||t?[]:[{text:xt("Open"),image:Us.get("open"),command:"open",cb:async()=>{const e=await W();j(),await(async e=>{if(confirm(xt("This_will_overwrite_the_current_script_with_the_content_of_0name0__Are_you_sure_",e.name))){
await g.acquire();try{const t=L?await e.getFile():e;await J(t)}catch(e){return I(xt("Action_failed")),void console.error("external open:",e)}finally{g.release()}}})(e)}}]).concat(!n.editor_enabled||n.configMode<80||e.is_external||t?[]:[{text:xt("Track_from_disk"),image:Us.get("track"),command:"track",disabled:!L,cb:async()=>{const e=await W();j(),await(async e=>{if(!confirm(xt("This_will_overwrite_the_current_script_with_the_content_of_0name0__Are_you_sure_",e.name)))return;let t=0
;await g.acquire();try{const n=await e.getFile();t=n.lastModified,await J(n,!0),s.editor.mirror.setOption("readOnly","nocursor");const i=xt("This_editor_is_tracking_the_changes_of_0name0_",n.name);It(s.editor.wrapper).addClass("readonly tracking").prop("title",i)[0].style.setProperty("--readonly-label",`"${i}"`)}catch(e){return I(xt("Action_failed")),void console.error("external track:",e)}finally{g.release()}const n=async()=>{await g.acquire();try{const n=await e.getFile(),i=n.lastModified
;i>t&&(t=i,await J(n,!0))}catch(e){console.error("external track:",e)}finally{g.release()}};if("FileSystemObserver"in window)try{return N=new window.FileSystemObserver((async()=>await n())),await N.observe(e),void K()}catch(e){N=void 0,console.warn("external track:",e)}P=setInterval((()=>n()),2e3),K()})(e)}}]).concat(t?[]:[{type:"sep"},{...Me.cancel,image:Us.get("editor_cancel"),cb:k}]).concat(e.nnew||e.is_external||e.system||t?[]:[{...Me.update,image:Us.get("update"),
disabled:(!e.options.check_for_updates||!e.file_url||"none"==e.file_url)&&xt("Update_check_is_disabled"),cb:()=>{_()&&!confirm(xt("Really_reset_all_changes_"))||(k(!0),h(e.uuid,"scriptUpdate"))}}]).concat([{...Me.remove,image:Us.get("delete"),cb:R}]).concat([{type:"sep"},{...Me.close,image:Us.get("exit"),cb:w}])},edit:n.editor_enabled?{text:xt("Edit"),entries:(t?[]:[{...Me.undo},{...Me.redo},{type:"sep"},{...Me.cut,cb:()=>{const e=s.editor.mirror;navigator.clipboard.writeText(e.getSelection()),
e.replaceSelection("")}}]).concat([{...Me.copy,cb:()=>{const e=s.editor.mirror;navigator.clipboard.writeText(e.getSelection())}}]).concat(t?[]:[{...Me.paste,cb:async()=>{const e=s.editor.mirror,t=await navigator.clipboard.readText();e.replaceSelection(t,!1,"paste")}},{...Me.delete,cb:()=>{s.editor.mirror.replaceSelection("",null,"delete")}}]).concat([{...Me.selectAll}]).concat(t?[]:[{type:"sep"},{...Me.toggleComment},{...Me.toggleCommentIndented},{...Me.toggleBlockComment,modes:["js"]},{
type:"sep"},{id:"edit_lines",text:xt("Lines_Menu"),modes:["js"],entries:[{...Me.intelligentTab},{...Me.indentLess},{...Me.indentMore},{...Me.reindentall},{type:"sep"},{...Me.swapLineUp},{...Me.swapLineDown},{...Me.duplicateLine},{...Me.deleteLine},{...Me.joinLines},{type:"sep"},{...Me.insertLineBefore},{...Me.insertLineAfter}]},{id:"edit_text",text:xt("Text"),entries:[{...Me.upcaseAtCursor},{...Me.downcaseAtCursor},{type:"sep"},{...Me.delLineLeft},{...Me.delLineRight},{...Me.delGroupBefore},{
...Me.delGroupAfter},{...Me.deleteLine},{type:"sep"},{...Me.transposeChars}]},{id:"edit_sort",text:xt("Sort"),entries:[{...Me.sortLines},{...Me.sortLinesInsensitive}]},{id:"edit_folding",text:xt("Folding"),entries:[{...Me.fold},{...Me.unfold},{...Me.foldAll},{...Me.unfoldAll}]},{id:"edit_sublime_mark",text:xt("Sublime_Mark"),entries:[{...Me.setSublimeMark},{...Me.selectToSublimeMark},{...Me.swapWithSublimeMark},{...Me.deleteToSublimeMark},{...Me.sublimeYank}]}])}:void 0,
selection:t||!n.editor_enabled?void 0:{text:xt("Selection"),entries:[{...Me.selectMatchingPartsOfCurrentSelection},{...Me.splitSelection},{type:"sep"},{...Me.selectMatchingPartsOfCurrentSelection},{type:"sep"},{...Me.selectLine},{...Me.selectScope},{...Me.selectBookmarks},{...Me.selectBetweenBrackets},{...Me.selectNextOccurrence},{...Me.selectAllOccurrences}]},find:n.editor_enabled?{text:xt("Find"),entries:[{...Me.find}].concat(t?[]:[{...Me.replace},{...Me.replaceAll}]).concat([{type:"sep"},{
...Me.findNext},{...Me.findPrev},{...Me.findUnder},{...Me.findAllUnder},{...Me.findUnderPrevious},{type:"sep"},{...Me.selectMatchingPartsOfCurrentSelection}])}:void 0,goto:n.editor_enabled?{text:xt("GoTo"),entries:[{...Me.jump},{...Me.goDocStart},{...Me.goDocEnd},{...Me.goGroupLeft},{...Me.goGroupRight},{...Me.goToBracket},{...Me.goLineUp},{...Me.goLineDown},{type:"sep"},{...Me.showInCenter},{type:"sep"},{id:"bookmarks",text:xt("Bookmarks"),entries:[{...Me.toggleBookmark},{...Me.clearBookmarks
},{type:"sep"},{...Me.nextBookmark},{...Me.prevBookmark}]}]}:void 0,dev:{text:xt("Developer"),entries:(t||!n.editor_enabled?[]:[{...Me.macro,modes:["js"]}]).concat(!e.system&&n.editor_enabled&&l?[{type:"sep"},{...Me.lint_script,image:Us.get("check")},{...Me.nextProblem},{...Me.prevProblem}]:[]).concat(t||!n.editor_enabled?[]:[{type:"sep"},{...Me.reindentall}]).concat(e.nnew||e.is_external?[]:[{type:"sep"},{...Me.reset,image:Us.get("script_cancel"),cb:y}]).concat(e.nnew?[{type:"sep"},{
id:"templates",text:xt("Templates"),entries:n.script_templates.map((e=>({text:e.name,command:e.name,image:Us.get("dot"),cb:function(){if(_()&&!confirm(xt("Really_reset_all_changes_")))return;const t=e.value||"";s.editor&&(n.editor_enabled?(s.editor.mirror.setValue(t),x(!1)):s.editor.value=t)}})))}]:[])}},r=(e,t)=>{const n=t[0];let i,s;return(i=e[n])?r(i,t.slice(1)):(e.entries&&e.entries.some((e=>e.command==n?(s=e,!0):!(!e.entries||!(s=r(e,t)))||void 0)),s)}
;["file.save_to_disk","file.save","file.cancel","dev.reset","find.findNext","find.findPrev","edit.replace","goto.jump","edit.reindentall","dev.lint_script","file.close"].forEach((t=>{const n=r(i,t.split("."));n&&(n.image?E.appendChild(Gs.createImageButton(e.uuid,n.id||n.command,n.text,n.image,n.cb||z(n.command))):E.appendChild(Gs.createButton(n.id||n.command,e.uuid,n.text,n.cb||z(n.command))))}));const o=(e,t)=>{const i=t||Ls.keyMap[n.editor_keyMap];let r,s
;return Object.keys(i).every((t=>i[t]!=e||(r=t,!1))),r||(i.fallthrough&&(s=Ls.keyMap[i.fallthrough])&&s!==i?o(e,s):void 0)},a=(t,n)=>n.map(((n,i)=>{if(n.modes&&!n.modes.includes(l?"js":"other"));else{if("sep"==n.type)return(t=>{const n=fe("tr","entry sep",e.uuid,"editorsubmenusep_tr"+t),i=me("td",e.uuid,"editorsubmenusep_td"+t),r=me("hr",e.uuid,"editorsubmenusep"+t);return i.setAttribute("colspan",4),n.appendChild(i),i.appendChild(r),n})(t+i);if(n.command)return((t,n,i,r,s,o,a,l)=>{
const c=o||Ls.commands.hasOwnProperty(n),d=fe("tr","entry "+(!a&&c?"":"disabled"),e.uuid,t,"editorsubmenuentry_tr",!0);let u;u=fe("i",r?"far fa-"+r:"far",e.uuid,t,"editorsubmenuentry_i",!0);const A=me("td",e.uuid,"editorsubmenuentry_td_i"+t);A.appendChild(u);const h=fe("td","label",e.uuid,"editorsubmenuentry_td_l"+t);h.textContent=i;const p=fe("td","shortcut",e.uuid,"editorsubmenuentry_td_m"+t);return p.setAttribute("colspan",2),s&&(p.textContent=s),d.appendChild([A,h,p]),
a?"string"==typeof a&&d.setAttribute("title",a):c&&d.addEventListener("click",l),d})(t+"_"+n.command,n.command,n.text,n.image,o(n.command),!!n.cb,n.disabled,n.cb||z(n.command));{const i=t+n.id,r=((t,n,i)=>{const r=fe("tr","entry list",e.uuid,t,"editorsubmenulistentry",!0);let s;s=fe("i",i?"far fa-"+i:"far",e.uuid,t,"editorsubmenulistentry_i",!0);const o=me("td",e.uuid,"editorsubmenulistentry_td_i"+t);o.appendChild(s);const a=fe("td","label",e.uuid,"editorsubmenulistentry_td_l"+t);a.textContent=n
;const l=fe("td",e.uuid,"editorsubmenulistentry_td_m"+t),c=me("td",e.uuid,"editorsubmenulistentry_td_s"+t);r.appendChild([o,a,l,c]);const d=fe("span","submenulist",e.uuid,"editorsubmenulistcontent"+t),u=fe("span","submenumore",e.uuid,"editorsubmenulistmore"+t),A=fe("i","more far fa-caret-right",e.uuid,t,"editorsubmenulistentrymore_i",!0);return u.appendChild([A,d]),c.appendChild([A,u]),{elem:r,content:d}})(i,n.text,n.image),s=a(i,n.entries);if(s.length>0)return r.content.appendChild(s),r.elem}}
})).filter((e=>e));Object.keys(i).forEach((e=>{const t=i[e],n=O(e,t?t.text:"");if(!t)return void n.elem.remove();const r=a(e,t.entries);r.length>0&&(Z.appendChild(n.elem),n.content.appendChild(r))}))};K();const $=fe("textarea","editorta",e.uuid,"editor");$.setAttribute("wrap","off"),$.setAttribute("spellcheck","false");const ee=fe("td","editor_outer",e.uuid,"edit"),ne=fe("div","editor_100 editor_border",e.uuid,"edit");ee.appendChild(ne),p.appendChild(S),s.inserted||(ne.appendChild($),
s.appendChild(ee)),u[e.uuid].saveToDisk=()=>{if(!s.editor)return;const t=n.editor_enabled?s.editor.mirror.getValue():s.editor.value;let i=o[e.uuid]?o[e.uuid].script:e;return jt.wait(),Ce().done((()=>{const e=new Blob([t],{type:"text/plain"});saveAs(e,q(i.name+(i.version?`-${i.version}`:"")+(i.is_external?"":".user.js")))})).always((()=>{jt.hide()}))},e.system||(e.is_external?u[e.uuid].saveEm=async t=>{if(!s.editor)return;const i=!t||!t.from_external;i&&await g.acquire()
;const r=n.editor_enabled?s.editor.mirror.getValue():s.editor.value;((e,t,n)=>{const i=Te();try{n.auto_save||U(),$r({method:"saveExternal",uuid:e,code:t,mimetype:n.mimetype,url:n.url,auto_save:n.auto_save},(e=>{n.auto_save||(B(),G()),(e=e||{}).items?D(e.items,!0):jt.hide(),i.resolve(e)}))}catch(e){console.log("sS: "+e.message),i.reject({err:e.message})}return i.promise()})(e.script_uuid,r,{url:e.file_url,mimetype:e.mimetype,auto_save:t&&t.auto_save}).done((e=>{
e.success?x(!1):e.aborted||t&&t.auto_save||t&&t.from_external||(e.messages&&e.messages.errors&&e.messages.errors.length?pe(e.messages.errors.join("\n")):pe(xt("Unable_to_parse_this_")))})).always((()=>{i&&g.release()}))}:u[e.uuid].saveEm=async t=>{if(!s.editor)return;let i=!0;const r=t&&t.from_external;n.showFixedSrc&&!r&&(i=confirm(xt("Do_you_really_want_to_store_fixed_code_",xt("Show_fixed_source"))));const o=n.editor_enabled?s.editor.mirror.getValue():s.editor.value
;return i&&(r||await g.acquire(),H(e.uuid,o,{clean:!1,new_script:e.nnew,auto_save:t&&t.auto_save,reload:!0,lastModTime:u[e.uuid].saveEm_lastModTime}).done((n=>{n.installed?e.nnew?w(0,!0,!1):(x(!1),n.lastModified&&(e.lastModTime=n.lastModified)):n.aborted||t&&t.auto_save||(n.messages&&n.messages.errors&&n.messages.errors.length?pe(n.messages.errors.join("\n")):pe(xt("Unable_to_parse_this_")))})).always((()=>{r||g.release()}))),i});const ie=t.insertTab(null,i.navid,c,A,(e=>{e.then((()=>{
ue.setSub(i.navid),i.on_tab_select&&i.on_tab_select()}))}),i.on_tab_close);if(ie.setHeading(i.tab_name||xt("Editor"),50),ue.registerListener(e.uuid,i.navid,(()=>{ie.select(),n.editor_enabled&&s.editor&&(s.editor.refresh(),s.editor.mirror.focus())})),d)return r["editor"+e.uuid];const re=(e,t,n,i)=>{e=i.getValue();const r=i.getHelper(Ls.Pos(0,0),"lint")(e,n,i);if(r&&r.then)return r.then(t);t(r)},oe=e=>{Y("editor_theme",e,!0).done((()=>{T("Theme switched to "+e)}))},ae=()=>{
n.editor_autoSave&&_()&&h(e.uuid,"saveEm",{auto_save:!0})},le={getTab:function(){return ie},getEditor:function(){if(s.editor)return n.editor_enabled?s.editor.mirror:{save:function(){v()}}},onShow:()=>{(()=>{const t=Te();return e.referrer&&void 0===e.code?te(Q(i.tree_opts||{},{referrer:e.referrer+"."+i.treeid,uuid:e.uuid}),(n=>{n.items?(e.code=n.items[0],t.resolve()):t.reject(),jt.hide()})):window.setTimeout(t.resolve,100),t.promise()})().done((()=>{const t=A.getElementsByTagName("textarea")
;if(u[e.uuid].lastI=()=>e,t.length&&!s.editor){const r=t[0],o=()=>{s.editor&&x(!!s.editor.mirror.historySize().undo)};if(n.editor_enabled){const t=r.parentNode;t.removeChild(r);const i=e.code||"",c=i.indexOf("\r\n")>=0?"\r\n":null;s.editor=new Fs(t,{mode:a,readOnly:e.readonly||e.system,theme:n.editor_theme,fontSize:n.editor_fontSize,themeOptions:{all:Xt.getEditorThemes().map((e=>e.value)),onChange:oe},lineSeparator:c,value:i,indentUnit:Number(n.editor_indentUnit),
tabSize:Number(n.editor_tabSize),indentWithTabs:"tabs"==n.editor_indentWithTabs,smartIndent:"classic"!=n.editor_tabMode,indentByTab:"indent"==n.editor_tabMode,electricChars:"true"==n.editor_electricChars.toString(),lineNumbers:!0,lineWrapping:n.editor_lineWrapping,extraKeys:{Enter:"newlineAndIndentContinueComment"},keyMap:n.editor_keyMap,bookmarkGutter:!0,gutters:["gutter","CodeMirror-linenumbers","CodeMirror-foldgutter","CodeMirror-lint-markers","CodeMirror-bookmarks"],matchBrackets:!0,
foldGutter:!0,styleActiveLine:!0,specifyMoreJsTokens:l,styleSelectedText:!0,autoTrimTrailingSpace:"true"==n.editor_trimTrailingSpacesFromModifiedLines.toString(),highlightSelectionMatches:"off"!=n.editor_highlightSelectionMatches?{showToken:/\w/,annotateScrollbar:!0,cursorOnly:"cursor"==n.editor_highlightSelectionMatches}:void 0,hintOptions:l?{keywords:zi}:void 0,lint:l?{lintOnChange:n.editor_autoLint,autoLintMaxLen:n.editor_autoLintMaxLen,async:!0,getAnnotations:re,
hintConfig:n.editor_linter_config||Di,userscript:e.userscript,external:e.is_external}:void 0,showTrailingSpace:n.editor_highlightTrailingWhitespace},xt,{save:function(){v()},close:w,lint_script:C},{change:o,blur:ae})}else s.editor=r,r.value=e.code;i.on_editor_load&&i.on_editor_load()}is.emit("scriptEditorOpened",{uuid:e.uuid})})).fail((()=>{w(0,!1,!0)}))},onClose:function(t){const n=()=>{s.editor=null,delete u[e.uuid].lastI};if(is.emit("scriptEditorClosed",{uuid:e.uuid}),!t&&_()){
const e=confirm(xt("There_are_unsaved_changed_"));return e&&n(),!e}return n(),!1}};return r["editor"+e.uuid]=le,le},Ne=(e,t,n,i)=>{let r;e.is_external=!0;const s=()=>{r&&!o.onClose()&&(i(),r&&r.remove(),r=null)},o=ze(e,t,{tab_name:e.name,navid:e.uuid,treeid:"external",readonly:e.readonly||e.system,mimetype:e.mimetype,tree_opts:{url:e.file_url,uuid:e.script_uuid},do_close:function(){window.setTimeout(s,100)},on_tab_close:s,on_tab_select:n,on_editor_load:n});return r=o.getTab(),o.show=()=>{
o.onShow(),r.select()},o},Ve=e=>{u[e.uuid]||(u[e.uuid]={});const t=(t,n,i,r)=>{const s=fe("dt"," "+(r||""),e.name,e.uuid,"dt_mapping"+n),o=fe("dd"," "+(r||""),e.name,e.uuid,"dd_mapping"+n);s.textContent=n,"string"==typeof i?(o.textContent=i,o.setAttribute("title",i)):o.appendChild(i),t.appendChild([s,o])},n=fe("dl","trash_script_details",e.name,e.uuid,"script_details_dl"),i=fe("span","name",e.uuid,"sname"),r=fe("span","nameNname16",e.uuid,"sname_name"),s=Ct(e,"name");if(r.textContent=s,e.icon){
const t=m(e.icon,e.uuid,"sname_img");It(t).addClass("nameNicon16"),i.appendChild(t)}i.appendChild(r),t(n,xt("Name"),i),t(n,xt("Version"),e.version||""),t(n,xt("Deleted_on"),new Date(e.deleted).toISOString().split("T")[0]);const o=Gs.createButton("restore",`${e.uuid}_restore`,xt("Restore"),(()=>{H(e.uuid,null,{reload:!0,restore:!0}),n.parentNode.removeChild(n)})),a=u[e.uuid].purgeScript=(t,i)=>{1==(i||confirm(xt("Really_delete_0name0__",e.name)))&&(K([e.uuid]),n.parentNode.removeChild(n))
},l=Gs.createButton("delete",`${e.uuid}_delete`,xt("Delete"),a),c=fe("span","",e.uuid,"actions");return c.appendChild([o,l]),t(n,xt("Actions"),c,"actions"),[n]},Qe=(t,s,a)=>{let l,c;u[t.uuid]||(u[t.uuid]={}),u[t.uuid].getName=()=>Ct(t,"name");const d=t.icon,A=[];A.push("clickable"),(t.blacklisted||t.foisted)&&A.push("crossedout");const p=fe("span",A.join(" "),t.uuid,"sname",null,n.tags_enabled),f=d?m(t.icon,t.uuid,"sname_img"):fe("span","nameNicon16 icon16 nameNOicon16",t.uuid,"sname_img")
;d&&It(f).addClass("nameNicon16");const g=fe("span","nameNname16 "+(t.enabled?"":"greyed"),t.uuid,"sname_name"),_=Ue(t),b=Ct(t,"name");g.textContent=b;const v=me("span",t.uuid,"spos");v.textContent=t.position||"";const w=me("span",t.uuid,"sversion");w.textContent=t.version?t.version:"";const y=me("span",t.uuid,"ssize");if(!t.nnew){const{code:e,resources:n,requires:i}=Le(t);y.textContent=es.formatBytes(e+i+n,0),
y.title=[xt("Size")+": "+es.formatBytes(e,2),i?xt("Requires")+": "+es.formatBytes(i,2):void 0,n?xt("Resources")+": "+es.formatBytes(n,2):void 0].filter((e=>e)).join("\n")}const k=[],R=(e,t,n)=>{const i=fe("span",n||"",e.uuid,"wrap");return t&&("Array"===N(t)?V(t,(e=>{i.appendChild(e)})):i.appendChild(t)),i},x=(e,n)=>{void 0===n&&(n=!e),c&&c.onClose&&c.onClose(e)||(t.uuid&&ue.is(t.uuid)&&ue.clear(),l&&(l.remove(),l=null),delete r["tab"+t.uuid],delete r["editor"+t.uuid],
p.parentNode&&p.parentNode.removeChild(p),n&&window.setTimeout((()=>{const e=Object.keys(o);for(let n,i=0;n=e[i];i++){const e=o[n].script;if(e.uuid==t.uuid){ke(s,[e],null,a);break}}_e()}),0))},C=e=>{c&&c.onSelect&&c.onSelect(e)},E=u[t.uuid].scriptClick=(e,i)=>{l||(()=>{let e=null;t.nnew?(e=fe("div","head_icon",t.uuid,"details_h"),e.appendChild(Gs.createIcon(Us.get(t.image),"",t.uuid,"new_script_head"))):e=me("div",t.uuid,"details_h"),t.title&&(e.title=t.title)
;const i=me("div",t.uuid,"details_c");if(l=a.insertTab(null,t.uuid,e,i,C,t.nnew?null:x),!t.nnew){let e;e=t.version?" "+t.version:"";const n=xt("Edit")+" - "+Ct(t,"name")+e;l.setHeading(n,50),l.isSelected()&&l.select(!0)}c=((e,t,i,s,o)=>{const a=me("div",t.uuid,"script_tab_head"),l=a.inserted,c=fe("table","noborder p100100 heading",t.uuid,"h_table"),d=fe("tr","",t.uuid,"h_tr1"),u=fe("td","nameNicon64",t.uuid,"h_td1"),A=fe("td","",t.uuid,"h_td2");c.appendChild(d),d.appendChild(u),d.appendChild(A),
A.setAttribute("style","width: 99%");const p=t.icon64||t.icon;u.appendChild(m(p?[p]:[],t.uuid,"heading_icon",{default_icon:Xt.images.origin("unknown")}));const f=fe("div","nameNname64",t.uuid,"heading_name");f.textContent=Ct(t,"name"),A.appendChild(f);const g=fe("div","author",t.uuid,"author");t.author?g.textContent="by "+t.author:t.copyright&&(g.innerHTML="&copy; ",g.textContent+=t.copyright),A.appendChild(g)
;const _=fe("table","noborder p100100",t.uuid,"table"),b=fe("tr","script_tab_head",t.uuid,"tr1"),v=fe("tr","details",t.uuid,"tr2"),w=fe("td","",t.uuid,"td1"),y=fe("td","",t.uuid,"td2");a.appendChild(c),w.appendChild(a),b.appendChild(w),v.appendChild(y),_.appendChild(b),_.appendChild(v),s.appendChild(_);const k=Bs.create("_details"+t.uuid,y,{tv:"tv tv_alt",tv_table:"tv_table tv_table_alt",tr_tabs:"tr_tabs tr_tabs_alt",tr_content:"tr_content tr_content_alt",td_content:"td_content td_content_alt",
td_tabs:"td_tabs td_tabs_alt",tv_tabs_align:"tv_tabs_align tv_tabs_align_alt",tv_tabs_fill:"tv_tabs_fill tv_tabs_fill_alt",tv_tabs_table:"tv_tabs_table tv_tabs_table_alt",tv_contents:"tv_contents tv_contents_alt",tv_tab_selected:"tv_tab tv_selected tv_tab_alt tv_selected_alt",tv_tab_close:"tv_tab_close",tv_tab:"tv_tab tv_tab_alt",tv_content:"tv_content tv_content_alt"},!0),R=((e,t,n,i)=>ze(e,t,{do_close:i,set_tab_class:n,navid:"editor",treeid:"source"}))(t,k,((t,n)=>{e.toggleClass(t,n)
}),o),x=t.nnew||t.system?{}:je(t,k),C=t.nnew||t.system||!t.storage_key_count||n.configMode<80?{}:((e,t)=>{const n=me("div","",e.uuid,"script_storage_h");n.textContent=xt("Storage");const i=me("div","",e.uuid,"script_storages_c"),r=fe("div","section",e.uuid,"ta_storage"),s=fe("div","section_head",e.uuid,"head_ta_storage"),o=fe("div","section_content",e.uuid,"content_ta_storage");let a;s.textContent=xt("Storage"),r.appendChild(s),r.appendChild(o);const l=fe("textarea","storageta",e.uuid,"storage")
;l.setAttribute("wrap","off"),l.setAttribute("spellcheck","false"),l.addEventListener("change",(()=>a=!0));const c=()=>{let t=null;try{t=JSON.parse(l.value)}catch(e){return void pe(xt("Unable_to_parse_this_"))}((t,n)=>{const i=Object.keys(n),r=Object.keys(t);i.concat(r).filter(((e,t,n)=>n.lastIndexOf(e)===t)).forEach((s=>{var o,a;i.includes(s)?r.includes(s)?n[s]!==t[s]&&(o=s,t[s],a=n[s],le(e.uuid,o,Ts(a))):((t,n)=>{le(e.uuid,t,Ts(n))})(s,n[s]):(t=>{le(e.uuid,t,void 0,!0)})(s,t[s])}))
})(e.storage,t)},d=Gs.createButton("storage_save_button",e.uuid,xt("Save"),c),u=Gs.createButton("storage_reload_button",e.uuid,xt("Reload"),(()=>{a&&!confirm(xt("Really_reset_all_changes_"))||(jt.wait(),h(!0,!0).always((()=>{window.setTimeout(jt.hide,500),B()})))})),A=Gs.createButton("storage_reset_button",e.uuid,xt("Editor_reset"),(()=>{a&&!confirm(xt("Really_reset_all_changes_"))||(jt.wait(),h(!0).always((()=>{window.setTimeout(jt.hide,500),B()})))
})),h=(t,n)=>(l.setAttribute("disabled","disabled"),(()=>{if(e.referrer&&(n||void 0===e.storage)){const t=Te();return te({referrer:e.referrer+".storage",uuid:e.uuid},(e=>{if(e.items){const n={},i=e.items[0];Object.keys(i).forEach((e=>{n[e]=((e,t)=>{if(!e)return t;const n=e[0];switch(e=e.substring(1),n){case"b":return"true"==e;case"n":return Number(e);case"o":try{return JSON.parse(e)}catch(e){console.error("Storage: getValue ERROR: "+e.message)}return t;case"x":try{return ie(se(e))}catch(t){
return e}default:return e}})(i[e])})),t.resolve(n)}else t.reject();jt.hide()})),t.promise()}return Te.Pledge(e.storage)})().done((n=>{!t&&l.value||(l.value=(e=>{const t=`__undefined__${X()}`;return JSON.stringify(e,((e,n)=>void 0===n?t:n),4).replace(new RegExp(`"${t}"`,"g"),"undefined")})(n),a=!1),e.storage=n,l.removeAttribute("disabled")})).fail((()=>{l.setAttribute("disabled",!0)})));o.appendChild(l),o.appendChild(d),o.appendChild(A),o.appendChild(u),i.appendChild(r)
;const p=t.appendTab("storage",n,i,(e=>{e.then((()=>{ue.setSub("storage")}))}));let f=!1;return ue.registerListener(e.uuid,(t=>{"storage"===t?(h(),p.select(),f||(is.emit("storageEditorOpened",{uuid:e.uuid}),f=!0)):f&&(is.emit("storageEditorClosed",{uuid:e.uuid}),f=!1)})),{getEditor:function(){return{save:c}}}})(t,k),E=t.nnew||t.system||!t.requires.length&&!t.resources.length?{}:((e,t)=>{let n;const i=e=>{n=e},r=me("div","",e.uuid,"script_external_h");r.textContent=xt("Externals")
;const s=me("div","",e.uuid,"script_externals_c"),o=fe("div","section",e.uuid,"ta_requires"),a=fe("div","section_head",e.uuid,"head_ta_requires"),l=fe("div","section_content",e.uuid,"content_ta_requires");a.textContent=xt("Requires"),o.appendChild(a),o.appendChild(l),l.appendChild(De(e,"requires",t,i));const c=fe("div","section",e.uuid,"ta_resources"),d=fe("div","section_head",e.uuid,"head_ta_resources"),u=fe("div","section_content",e.uuid,"content_ta_resources");d.textContent=xt("Resources"),
c.appendChild(d),c.appendChild(u),u.appendChild(De(e,"resources",t,i)),s.appendChild(o),s.appendChild(c);const A=t.appendTab("externals",r,s,(e=>{e.then((()=>{ue.setSub("externals")}))}));return ue.registerListener(e.uuid,"externals",(()=>{A.select()})),{getEditor:function(){return n}}})(t,k);if(l)return r["tab"+t.uuid];const G=i=>{let r=!1;if("keydown"==i.type&&e.isSelected()&&!i.defaultPrevented){if(27==i.keyCode){if(!n.editor_enabled||"vim"!=n.editor_keyMap){let e
;(e=k.getSelectedTab())&&e.isCloseable()?e.close():window.setTimeout(o,0),r=!0}}else{const e=(()=>{const e=ue.get();if(e.main==t.uuid&&e.sub){if("storage"===e.sub)return C.getEditor();if("settings"!==e.sub)return"editor"===e.sub?R.getEditor():e.sub.startsWith("external")?E.getEditor():void 0}})();if(e)if(n.editor_enabled&&"doc"in e){const t={save:!0,find:!0,findNext:!0,findPrev:!0,replace:!0,replaceAll:!0},n=Ls.keyName(i);e.hasFocus()||"handled"!=Ls.lookupKey(n,e.getOption("keyMap"),(n=>{
if(t[n])return e.execCommand(n),!0}))||(r=!0)}else 83==i.keyCode&&(i.ctrlKey||i.metaKey)&&(e.save(),r=!0)}return r?(i.stopPropagation(),i.preventDefault(),!1):void 0}},Z={onShow:()=>{V([x,R,C,E],(e=>{e.onShow&&e.onShow()})),window.addEventListener("keydown",G,!1)},onClose:e=>{let t;return V([x,R,C,E],(n=>{if(n.onClose&&n.onClose(e))return t=!0,!1})),t||window.removeEventListener("keydown",G,!1),t},onSelect:e=>{e.then((()=>{if(t.uuid){const e=ue.get().sub,n=k.getTabById(e)
;ue.set(t.uuid,(n?e:null)||"editor"),document.title=h(t.uuid,"getName")}})),V([x,R,E],(t=>{t.onSelect&&t.onSelect(e)}))}};return r["tab"+t.uuid]=Z,Z})(l,t,0,i,x)})(),c&&c.onShow&&c.onShow(),l.show(),e&&1==e.button||i||l.select(),g.setAttribute("open","true")};"true"==g.getAttribute("open")&&E(null,!0);const G=It(me("span","",t.uuid,"last_updated")),Z=fe("span","script_update","",t.uuid,"last_updated_c",!0),S=me("span","",t.uuid,"last_updated",!0),T=It(S);Z.appendChild(S)
;const U=G.hasClass("green")?"green":G.hasClass("red")?"red":"";U&&T.addClass(U);let L="?";if(t.nnew||t.system)L="";else{if(u[t.uuid].scriptUpdate=()=>{const e=S.textContent;S.textContent="",S.appendChild(Gs.createIcon(Us.get("download"),"down",t.uuid,"spinner"));const n=t=>{S.textContent=e,T.removeClass("green red"),t?T.addClass("green"):T.addClass("red"),oe()};t.updatable?((e,t)=>{try{$r({method:"buttonPress",name:"apply_script_update",uuid:e},(e=>{e?(B(),t&&t(e)):(I(xt("Action_failed")),
t&&t())}))}catch(e){console.log("rSu: "+e.message)}})(t.uuid,(({installed:e})=>{n(!!e),e&&x(!0)})):((e,t)=>{try{$r({method:"buttonPress",name:"run_script_updates",scriptuid:e},(e=>{e?(B(),t&&t(e)):(I(xt("Action_failed")),t&&t())}))}catch(e){console.log("rSu: "+e.message)}})(t.uuid,(({found:e,installed:t})=>{n(!!e||!!t),t&&x(!0)}))},t.updatable||t.options.check_for_updates&&t.file_url&&"none"!=t.file_url){if(T.on("click",(()=>{h(t.uuid,"scriptUpdate")})),T.addClass("clickable"),t.updatable){
S.title=xt("Apply_update");const e=Gs.createIcon(Us.get("updatable"),"updatable",t.uuid,null,null,(()=>{h(t.uuid,"scriptUpdate")}));e.title=xt("Apply_update"),Z.appendChild(e)}else S.title=xt("Check_for_Updates");const e=t.options.user_modified;if(e){const n=Gs.createIcon(Us.get("critical"),"edited",t.uuid);n.title=xt("The_script_was_modified_locally_on_0date0__Updating_it_will_overwrite_your_changes_",new Date(e).toLocaleString()),Z.appendChild(n)}}else T.addClass("greyed italic"),
S.title=xt("Update_check_is_disabled");if(t.lastModified||t.lastUpdated)try{L=((e,t)=>{const n=e.getTime(),i=t.getTime(),r=Math.abs(n-i),s=Math.round(r/6e4),o=Math.round(r/36e5),a=Math.round(r/864e5);return s<=60?xt("0number0_minutes",s):o<=48?xt("0number0_hours",o):a<=28?xt("0number0_days",a):t.toLocaleDateString()})(new Date,new Date(t.lastModified||t.lastUpdated))}catch(e){console.log("o: error calculating time "+e.message)}}S.textContent=L;let F,M=me("div",t.uuid,"imported"),j=""
;i.push((()=>{
n.sync_enabled&&(j=t.nnew||t.system?"":t.sync&&t.sync.imported?2==t.sync.imported?'<img src="'+Us.brand("chrome")+'" class="icon16" title="Google Sync"/>':4==t.sync.imported?'<img src="'+Us.brand("gdrive")+'" class="icon16" title="Google Drive"/>':5==t.sync.imported?'<img src="'+Us.brand("dropbox")+'" class="icon16" title="Dropbox"/>':6==t.sync.imported?'<img src="'+Us.brand("webdav")+'" class="icon16" title="WebDAV"/>':7==t.sync.imported?'<img src="'+Us.brand("yandex")+'" class="icon16" title="Yandex"/>':8==t.sync.imported?'<img src="'+Us.brand("onedrive")+'" class="icon16" title="OneDrive"/>':'<i class="icon16 far fa-'+Us.get("question_mark")+'" />':"",
M.innerHTML=j,M=null)}));const D=me("span",t.uuid,"hp");if(t.origin){F=me("a",t.uuid,"hp_origin"),F.setAttribute("href",t.origin.url),F.setAttribute("target","_blank");const e=Gs.createImage(Us.origin(t.origin.token),"",t.uuid,t.origin.token);F.appendChild(e),D.appendChild(F)}if(_&&(!t.origin||t.origin.url!==_)){F=me("a",t.uuid,"hp_script"),F.setAttribute("href",_),F.setAttribute("target","_blank");const e=Gs.createIcon(Us.get("home"),"",t.uuid,"homepage","");F.appendChild(e),D.appendChild(F)}
u[t.uuid].saveEm_lastModTime=t.lastModified,u[t.uuid].fullReset=e=>{H(t.uuid,null,{clean:!0,reload:!0}).done(e||(()=>{})),s.parentNode.removeChild(s)},u[t.uuid].reportAnIssue=e=>{((e,t)=>{try{$r({method:"reportAnIssue",uuid:e,to:t},(()=>{}))}catch(e){console.log("rRi: "+e.message)}})(t.uuid,e)},u[t.uuid].deleteScript=(e,i)=>{const r="off"!=n.trash_mode,o={reload:!i};(r||confirm(xt("Really_delete_0name0__",t.name)))&&(H(t.uuid,null,o,(()=>{
const e=xt(r?"The_script_was_successfully_moved_to_the_trash_":"The_script_was_successfully_deleted_");B(e)})),s.parentNode.removeChild(s))};const O=[];if(!t.nnew&&!t.system&&t.origin&&t.origin.abuse_url){const e=Gs.createIcon(Us.get("flag"),"",t.uuid,"issue",xt("Report_an_issue_to_the_script_hoster_"),(()=>{h(t.uuid,"reportAnIssue","hoster")}));O.push(e)}if(!t.nnew&&!t.system&&(t.origin||t.supportURL)){const e=Gs.createIcon(Us.get("bug"),"",t.uuid,"bug",xt("Report_a_bug"),(()=>{
h(t.uuid,"reportAnIssue","author")}));O.push(e)}if(!t.nnew&&!t.system){if(t.remote_url){const e=Gs.createIcon(Us.get("cloud"),"",t.uuid,"cloud_edit",xt("Edit"),(()=>{$r({method:"newTab",url:t.remote_url},(()=>{}))}));O.push(e)}const e=Gs.createIcon(Us.get("edit"),"",t.uuid,"edit",xt("Edit"),(()=>{h(t.uuid,"scriptClick")}));O.push(e)}if(!t.nnew&&!t.system){const e=Gs.createIcon(Us.get("delete"),"",t.uuid,"delete",xt("Delete"),(()=>{h(t.uuid,"deleteScript")}));O.push(e)}
e?p.inserted||g.addEventListener("click",(()=>{It(s).toggleClass("show_details")})):p.inserted||(p.addEventListener("click",E),p.addEventListener("auxclick",E)),p.appendChild(g);let z=[t.name];t.description&&z.push(Ct(t,"description")),(t.blacklisted||t.foisted)&&(z=t.blacklisted?t.warnings&&t.warnings.length?[t.blacklisted,...t.warnings]:[t.blacklisted]:[t.foisted]),p.title=z.join("\n\n").replace(/\"/g,'"');let P=[]
;if(!t.nnew&&t.options.tags&&n.tags_enabled&&(P=t.options.tags.map?t.options.tags.map((e=>{const i=n.tags[e];if(i)return Gs.createTag(e,t,{color:i?i.color:void 0,class:["clickable"].concat(i?[]:["unknown"]).join(" "),onClick:t=>{u.multiselect.setFilter("tag",e),t.stopPropagation(),t.preventDefault()}})})).filter((e=>e)):[],P.length&&p.appendChild(P)),k.push(t.nnew||t.system?null:{element:At(t),style:"script_sel"}),k.push(v),k.push((()=>{let e=null
;e=t.blacklisted||t.foisted?"enabler_warning":t.enabled?t.contexter?"enabler_enabled enabler_later":"enabler_enabled":"enabler_disabled";const n=t.blacklisted||t.foisted||(t.enabled?xt("Enabled"):xt("Disabled")),i=Gs.createEnabler(e,t.uuid,"enabled",{append:"enabled",disabled:!!t.blacklisted,title:n},(()=>{h(t.uuid,"switchEnabled")}));return u[t.uuid].switchEnabled=(e,n,i)=>{void 0===n&&(n=!t.enabled),ae(t.uuid,{enabled:n,whitewash:!!t.foisted},i)},u[t.uuid].toggleTag=(e,n,i,r)=>{
const s=t.options.tags;i?s.includes(n)||(s.push(n),ae(t.uuid,{tags:s},r)):s.includes(n)&&(s.splice(s.indexOf(n),1),ae(t.uuid,{tags:s},r))},i})()),k.push({element:f,style:"script_icon"}),k.push({element:p,style:"script_name"}),e){const e=(e,n,i,r)=>{const s=fe("dt","script_info "+(r||""),t.name,t.uuid,"dt_mapping"+n),o=fe("dd","script_info "+(r||""),t.name,t.uuid,"dd_mapping"+n);s.textContent=n,"string"==typeof i?o.textContent=i:o.appendChild(i),e.appendChild([s,o])
},n=fe("dl","script_details",t.name,t.uuid,"script_details_dl");let i;p.appendChild(n),e(n,xt("Version"),w),e(n,xt("Type"),He(t),"script_type"),e(n,xt("Sites"),$e(t)),(i=Ye(t))&&e(n,xt("Features"),i),_&&e(n,xt("Homepage"),D),L&&e(n,xt("Last_updated"),Z),k.push(R(t,O,"actions"))}else{k.push({element:w,style:"script_version"}),k.push(y),k.push(He(t)),k.push(M),k.push($e(t)),k.push(Ye(t)),k.push(D),k.push(Z),k.push(Ke(t)),k.push(R(t,O,"actions"));for(let e=k.length;e<ve;e++)k.push(null)}
return ue.registerListener(t.uuid,(()=>{E()})),t.nnew&&i.push((()=>{E(null,!0)})),k},He=e=>{let t;const n=fe("span","script_type","",e.uuid,"pos_type",!0);return e.nnew||e.userscript&&(t=Gs.createImage(Us.origin("uso"),"",e.uuid,"user_script",xt("This_is_a_userscript")),n.appendChild(t)),n},Ye=e=>{let t,n,i,r=null;const s=[];if(e.nnew)return null
;e.includes.length||e.matches.length||(t=Gs.createIcon(Us.get("error"),"includeless",e.uuid,"crit",xt("This_script_does_not_provide_any__include_information_")),s.push(t)),e.system&&(t=Gs.createIcon(Us.get("lock"),"",e.uuid,"lock",xt("This_is_a_system_script")),s.push(t)),e.warnings&&e.warnings.forEach(((n,i)=>{t=Gs.createIcon(Us.get("critical"),"warnings",e.uuid,"warning_"+i,n),It(t).addClass("flashing"),s.push(t)})),e.requires.length&&(i=!e.requires.filter((e=>e.modified)).length,
t=Gs.createIcon(Us.get("script_download")+(i?"":" red"),"",e.uuid,"requires",e.requires.filter((e=>e&&e.url)).map((e=>e.url)).join("\n"),(()=>{ue.set(e.uuid,"externals")})),s.push(t)),e.resources.length&&(i=!e.resources.filter((e=>e.modified)).length,t=Gs.createIcon(Us.get("resources")+(i?"":" red"),"",e.uuid,"resources",e.resources.filter((e=>e&&e.url)).map((e=>e.url)).join("\n"),(()=>{ue.set(e.uuid,"externals")})),s.push(t));let o=!1;const a={includes:!0,matches:!0};for(n in a)if(e[n]){
for(let i=0;i<e[n].length;i++)if(e[n][i]&&(0==e[n][i].search(/\/\^?http(s|\.\*?|s\?|\[[^\]]*s[^\]]*\]|\([^\)]*s[^\)]*\))+/)||0==e[n][i].search(/http[s\*]{1,1}|\*/))){t=Gs.createIcon(Us.get("encrypted"),"",e.uuid,"encrypt",xt("This_script_has_access_to_https_pages")),s.push(t),o=!0;break}if(o)break}const l={};e.grant.forEach((e=>{l[e]=!0})),(l.GM_xmlhttpRequest||l["GM.xmlHttpRequest"])&&(t=Gs.createIcon(Us.get("web"),"",e.uuid,"web",xt("This_script_has_full_web_access")),s.push(t)),
(l.GM_setValue||l["GM.setValue"])&&(t=Gs.createIcon(Us.get("db"),"",e.uuid,"db",xt("This_script_stores_data")),s.push(t)),(l.none||0===e.grant.length)&&(t=Gs.createIcon(Us.get("permissionless"),"",e.uuid,"none",xt("This_script_does_not_require_any_special_powers_")),s.push(t));const c=e.options&&(e.options.run_in||e.options.override&&e.options.override.orig_run_in)
;for(n in c&&c.length&&(c.includes("incognito-tabs")?c.includes("normal-tabs")||(t=Gs.createIcon(Us.get("incognito")+" green","",e.uuid,"run_in",xt("Does_not_run_in_normal_tabs")),s.push(t)):(t=Gs.createIcon(Us.get("incognito")+" blue","",e.uuid,"run_in",xt("Does_not_run_in_incognito_tabs")),s.push(t))),e.options)if(-1!=n.indexOf("compat_")&&e.options[n]){t=Gs.createIcon(Us.get("critical"),"compat",e.uuid,"crit",xt("One_or_more_compatibility_options_are_set")),s.push(t);break}
for(n in e.antifeatures){const i=e.antifeatures[n];let r;r=xt("ads"==n?"Antifeature_ads":"miner"==n?"Antifeature_miner":"tracking"==n?"Antifeature_tracking":"Antifeature_other");const o=i[Gt(Object.keys(i))]||i.default||i.en||xt("Antifeature_no_details");t=Gs.createIcon(Us.get("about"),"compat",e.uuid,"crit",xt("Antifeature__0name0__0description0",r,o)),s.push(t)}return s.length&&(r=me("span","",e.uuid,"pos_features",!0),r.appendChild(s,!0)),r},Je=(()=>{let e,t=null,n=null,i=null,r=0,s=0,o=0
;const a=n=>{const r=i.x+n.pageX,s=i.y+n.pageY;t.style.top=s+e.scrollTop+"px",t.style.left=r+"px"};let l,c;const d=i=>{if(t&&!l){let t;if("scroll"==i.type&&c)return void(t=c);t=c=i;let d,A,h,p,f,m=null;a(t);const g=e.scrollTop,_=5,{top:b,bottom:v}=e.getBoundingClientRect();for(;m!=o&&(m=o,A=n.previousSibling,h=n.nextSibling,p=n.parentNode,f=u(n),!(t.pageY<b||t.pageY>v));)t.pageY>f.y+r+s&&h?(p.removeChild(h),p.insertBefore(h,n),o++,d=!1):t.pageY<f.y&&o>1&&(p.removeChild(A),
h?p.insertBefore(A,h):p.appendChild(A),o--,d=!0);if(void 0!==d){const t=It(d?A:h);if(t.length&&!Gs.isScrolledIntoView(t,e,{padding:d?{top:_}:{bottom:_}})){const n=d?t.offset().top-b-_-t.height():t.offset().top-b-(v-b)+_+2*t.height();l=!0;const i=Math.floor(g+n);e.scrollTop=i,It(e).animate({scrollTop:i},0).then((()=>{l=!1}))}}return t.stopPropagation&&(t.stopPropagation(),t.preventDefault()),!1}},u=e=>{const t=e.getBoundingClientRect();return{x:Math.floor(t.left),y:Math.floor(t.top)}},A=e=>{
t.style.position="static";const r={};return r[t.key]=o,ae(t.uuid,r),t=n=i=null,document.removeEventListener("mousemove",d),document.removeEventListener("mouseup",A),e.stopPropagation(),e.preventDefault(),!1};return{start:function(l,c){return((o,l)=>{e||(e=It(".scripttable").parent().get(0));const c=o.parentNode.parentNode,d=c.parentNode;t=o,n=d,r=n.offsetHeight,s=n.offsetHeight-c.clientHeight,i=u(e),i.x=-i.x-t.offsetWidth/2,i.y=-i.y-n.offsetHeight/2+2*s,t.style.position="absolute",a(l)
})(this,l),o=c,document.addEventListener("mousemove",d),document.addEventListener("mouseup",A),l.stopPropagation(),l.preventDefault(),!1}}})(),Ke=e=>{const t=fe("span","sorting","",e.uuid,"pos_images",!0);if(e.nnew)return t;if("pos"==v()&&"up"==w()||t.setAttribute("style","display: none;"),e.position>1||e.position<e.positionof){const n=fe("span","clickable movable","position",e.uuid,!0);n.innerHTML="&#9776;",n.title=xt("Click_here_to_move_this_script"),n.uuid=e.uuid,n.key="position",
n.addEventListener("mousedown",(function(t){Je.start.apply(this,[t,e.position])})),t.appendChild(n)}return t},$e=e=>{let t=me("span","",e.uuid,"site_images"),n=null;return t.inserted&&(n=t,n.setAttribute("id",n.id+"foo"),t=me("span","",e.uuid,"site_images")),C.topIcons(e,7).forEach((e=>{t.appendChild(e,!0)})),n&&n.parentNode.removeChild(n),t};let et,tt,nt,it,rt=!1,st=[];const ct=e=>{const t=fe("div","search_filter",e.name,e.id,"filter");if(t.inserted)return t;const r=It(t);let s,a,l,c=null
;const d=(e,t,n)=>{s&&!e||(c&&window.clearTimeout(c),_.show(),rt=!0!==n,c=window.setTimeout((()=>{b=null,a=w,l=A.value;const e=()=>a!=w||l!=A.value,t=document.getElementsByName("scriptselectors"),n=[];for(let e=0;e<t.length;e++)n.push(t[e]);s=!0,(["matching_url","auto"].includes(a)&&l.match(v.matching_url.match)?(y=v.matching_url.update_interval||y,(e=>{const t=Te();return $r({method:"determineScriptsToRun",url:e},(e=>{e?t.resolve(e.scripts||[]):t.reject()})),t.promise()
})(l)):Te.Pledge()).then((t=>{const i=qe({threads:32}),s=[],c=n.map((n=>()=>{let i,c,d,u;return(c=o[n.s_id])&&(d=c.script)&&(u=c.dom)&&!e()?(s.push((()=>{It(u).toggle(!!i),n.is_hidden=!i})),(()=>{if(!rt)return Te.Pledge();if(!r.is(":visible"))return Te.Pledge();if("auto"==a)return Te.or(Object.keys(v).map((e=>()=>{const n=v[e],i=n.ignore_case?new RegExp(z(l),"i"):new RegExp(z(l));return n.check?n.check(d,i,l,t):Te.Breach()})));{const e=v[a];let n=null;try{
const t=e.regex_support&&m.checked?l:z(l);n=e.ignore_case?new RegExp(t,"i"):new RegExp(t)}catch(e){}if(e.check)return e.check(d,n,l,t)}return Te.Breach()})().done((()=>{i=!0})).fail((()=>{i=!1}))):Te.Breach()}));return Te.sidebyside(c.map((e=>i.add(e)))).always((()=>{s.forEach((e=>e())),st.forEach((e=>e()))}))})).always((()=>{s=!1,e()?d(!1,1):_.fadeOut()}))}),t||y))},A=fe("input","filter_text","sms","all",null);A.setAttribute("spellcheck","false");let h=""
;A.inserted||A.addEventListener("keyup",(()=>{h!=A.value&&(h=A.value,d())}));const p=fe("span","filter_checkbox",null,e.id+"_checkbox_wrapper"),f=It(p).hide(),m=me("input",null,e.id+"_checkbox");m.checked=!1,m.setAttribute("type","checkbox"),m.addEventListener("change",(()=>d()));const g=fe("span",null,e.id+"_checkbox_label");g.textContent=".*",p.appendChild([m,g]);const _=It(Gs.createIcon(Us.get("download"),"wait_for_filter",e.uuid));let b;_.attr("style","vertical-align: middle;"),_.hide(),
u.filter={onShow:function(e){d(!0),e&&It(A).trigger("focus")},onHide:function(){d(!0,1,!0)}};const v={auto:{name:xt("Auto"),update_interval:500},name:{name:"@name",sync:function(e,t){return-1!=e.name.search(t)},ignore_case:!0,regex_support:!0},namespace:{name:"@namespace",sync:function(e,t){return e.namespace&&-1!=e.namespace.search(t)},ignore_case:!0,regex_support:!0},author:{name:"@author",sync:function(e,t){return e.author&&-1!=e.author.search(t)},ignore_case:!0,regex_support:!0},grant:{
name:"@grant",default:"GM_",sync:function(e,t){return e.grant&&e.grant.filter((e=>-1!=e.search(t))).length>0},ignore_case:!0,regex_support:!0},includes:{name:"@include/@match",sync:function(e,t){return e.includes&&e.includes.filter((e=>-1!=e.search(t))).length>0||e.matches&&e.matches.filter((e=>-1!=e.search(t))).length>0},ignore_case:!0},code:{name:xt("Source_Code"),async:function(e,t){const n=Te();if(!b){const e=Te();b=e.promise(),i={code:t.toString()},r=t=>{e.resolve(t)},te({
referrer:"options.scripts.userscripts.matches",uuid:null,filter:i},(e=>{jt.hide(),r(e.items)}))}var i,r;return b.done((t=>{window.setTimeout((()=>{(t.includes(e.uuid)?n.resolve:n.reject)()}),0)})),n.promise()},ignore_case:!0,regex_support:!0},tag:{name:xt("Tags"),sync:function(e,t,n){return e.options&&(m.checked&&0==e.options.tags.length&&t.exec("")||e.options.tags.filter((e=>!m.checked&&""===n||t&&t.exec(e))).length>0)},enabled:n.tags_enabled,ignore_case:!0,regex_support:!0},comment:{
name:xt("Comment"),sync:function(e,t){return e.options&&e.options.comment&&-1!=e.options.comment.search(t)},ignore_case:!0,regex_support:!0},url:{name:xt("Update_URL_"),default:"https://",sync:function(e,t){return e.file_url&&-1!=e.file_url.search(t)},ignore_case:!0,regex_support:!0},matching_url:{name:xt("Matching_URL"),update_interval:1500,default:"http://",match:new RegExp("^https?://.*"),sync:function(e,t,n,i){return i&&i.includes(e.uuid)}}};Object.keys(v).forEach((e=>{const t=v[e]
;"enabled"in t&&!t.enabled||(t.check=t.sync||t.async?function(){return t.sync?t.sync.apply(this,arguments)?Te.Pledge():Te.Breach():t.async?t.async.apply(this,arguments):void 0}:null)}));let w="auto",y=v.auto.update_interval;const k=Gs.createDropDown(xt("Filter_by"),{value:0,uuid:"sms-filter",name:"select"},Object.keys(v).map((e=>{const t=v[e];if(!("enabled"in t)||t.enabled)return{name:t.name,value:e}})).filter((e=>e)),(function(){let e,t;const n=this.value;n!=w&&(w=n,e=v[w],
y=(e?e.update_interval:null)||v.auto.update_interval,t=(e?e.default:null)||"",A.value=A.value||t,d(),e&&e.regex_support?f.show():f.hide())}));return k.elem.setAttribute("class","label"),t.appendChild(k.elem),t.appendChild(A),t.appendChild(p),t.appendChild(_[0]),et=k.select,tt=A,nt=void 0,de.filter?i.push((()=>{u.multiselect.toggleRow(!0,!0),A.value=de.filter})):de.tag&&i.push((()=>{u.multiselect.toggleRow(!0,!0),et.value="tag",tt.value=de.tag,It(et).trigger("change"),It(tt).trigger("keyup")})),t
};let dt=[];const ut=e=>{dt=[],e&&dt.push(e)},At=e=>{const t=me("input","",e.uuid,"sel");return t.type="checkbox",t.s_id=e.uuid,t.name="scriptselectors",t.inserted||t.addEventListener("click",(e=>{ut(t),e.shiftKey?u.multiselect.shift_click(e):e.ctrlKey||e.metaKey?u.multiselect.un_selectAll():u.multiselect.single_click(e)})),t};let ht,pt;const ft=e=>{const t=fe("input","multiselectcb","sms","all",null),i=fe("div","filter multiselectcb clickable","sms2","all",null);t.inserted||(t.type="checkbox",
t.addEventListener("click",u.multiselect.un_selectAll),i.addEventListener("click",(()=>{u.multiselect.toggleRow()})));let r=[{name:xt("__Please_choose__"),value:0},{name:xt("Toggle_Enable"),value:1,select:[{name:xt("Enable"),value:"on"},{name:xt("Disable"),value:"off"},{name:xt("Toggle"),value:"toggle"}]}];n.tags_enabled&&(r.push((()=>{const e={name:xt("Add_Tag"),value:2,select:[],init:e=>{if(!e)return void console.warn("no select");let t=()=>{
const t=[...document.getElementsByName("scriptselectors")].filter((e=>e.checked)).map((e=>e.is_hidden?null:o[e.s_id])).filter((e=>e&&e.script.options&&e.script.options.tags)).map((e=>e.script.options.tags)),i=Object.keys(n.tags).filter((e=>!t.every((t=>t.includes(e))))),r=It(e).find("option").map((e=>{if(i.includes(e.value))return e.value==ht&&(e.selected=!0),e.value;e.remove()}));i.forEach(((t,n)=>{if(r.includes(t))return;const i=me("option","add_tag",n,t);i.value=t,i.textContent=t,
t==ht&&(i.selected=!0);for(let n=0;n<e.childNodes.length;n++)if(e.childNodes[n].value>t)return void e.insertBefore(i,e.childNodes[n]);e.appendChild(i)})),0==i.length?e.setAttribute("disabled","true"):(void 0!==ht&&i.includes(ht)||(ht=i[0]),e.removeAttribute("disabled"))};t(),st.push(t),ht=e.value,e.addEventListener("change",(()=>{ht=e.value}))}};return e})()),r.push((()=>{const e={name:xt("Remove_Tag"),value:3,select:[],init:e=>{if(!e)return void console.warn("no select");let t=()=>{
const t=[...document.getElementsByName("scriptselectors")].map((e=>e.is_hidden?null:o[e.s_id])).filter((e=>e&&e.script.options&&e.script.options.tags)).map((e=>e.script.options.tags)).flat(),i=(r=t,[...new Set(r)]).filter((e=>n.tags[e])).sort();var r;const s=It(e).find("option").map((e=>{if(i.includes(e.value))return e.value==pt&&(e.selected=!0),e.value;e.remove()}));i.forEach(((t,n)=>{if(s.includes(t))return;const i=me("option","remove_tag",n,t);i.value=t,i.textContent=t,t==pt&&(i.selected=!0)
;for(let n=0;n<e.childNodes.length;n++)if(e.childNodes[n].value>t)return void e.insertBefore(i,e.childNodes[n]);e.appendChild(i)})),0==i.length?e.setAttribute("disabled","true"):(void 0===pt&&(pt=i[0]),e.removeAttribute("disabled"))};t(),pt=e.value,e.addEventListener("change",(()=>{pt=e.value})),st.push(t)},clean:()=>{st=st.filter((e=>void 0!==e))}};return e})())),r.push({name:xt("Export"),value:4}),r=r.concat([{name:xt("Trigger_Update"),value:5},{name:xt("Factory_Reset"),value:8},{
name:xt("Delete"),value:6}]);const s={value:(it?it.value:void 0)||0,uuid:"sms-select",name:"select"},a=Gs.createDropDown(xt("Apply_this_action_to_the_selected_scripts"),s,r,(function(){0==this.value?d.setAttribute("disabled","true"):d.removeAttribute("disabled"),it&&it.clean&&it.clean();const e=r.find((e=>e.value==this.value));it=e;const{select:t,input:n}=it||{};let i;if(nt=void 0,l.childNodes.forEach((e=>e.remove())),t){if(0==t.length){const e=Gs.createDropDown(null,{
name:xt("__Please_choose__"),value:""},t);i=e.select,i.setAttribute("disabled","true"),nt=void 0}else{const e=Gs.createDropDown(null,t[0],t);i=e.select,nt=t[0].value}i.inserted||i.addEventListener("change",(()=>{nt!=i.value&&(nt=i.value)}))}else if(void 0!==n){const e=fe("input","actionargvalue","actionarg","value");e.setAttribute("spellcheck","false"),nt=e.value=n,i=e,i.inserted||i.addEventListener("keyup",(()=>{nt!=i.value&&(nt=i.value)}))}it&&it.init&&it.init(i),i&&l.appendChild(i,!0)
})),l=fe("span","actionarg",e.name,e.id,"action_arg"),d=Gs.createButton("MultiSelectButton","start_button",xt("Start"),(()=>{if(!it||0==it.value)return void console.log("option: ?!?!");let e,t=null;if(6==it.value?t=xt("Really_delete_the_selected_items_"):8==it.value&&(t=xt("Really_factory_reset_the_selected_items_")),t&&!confirm(t))return;const n=document.getElementsByName("scriptselectors"),i=[];for(e=0;e<n.length;e++)i.push(n[e]);const r={};let s,a=!1,l=100
;for(e=0;e<i.length;e++)if(i[e].checked&&!i[e].is_hidden)if(1==it.value){let t;s="switchEnabled";const n=o[i[e].s_id]?o[i[e].s_id].script:null;"toggle"==nt?n&&(t=!n.enabled||!!n.foisted):"off"==nt&&n&&n.foisted||(t="on"==nt),void 0!==t&&(h(i[e].s_id,s,null,t,!1),a=!0)}else if(2==it.value){if(s="toggleTag",!ht)return void console.log("option: no tag",ht);h(i[e].s_id,s,null,ht,!0),a=!0}else if(3==it.value){if(s="toggleTag",!pt)return void console.log("option: no tag",pt);h(i[e].s_id,s,null,pt,!1),
a=!0}else 4==it.value?r[i[e].s_id]=!0:5==it.value?(s="scriptUpdate",h(i[e].s_id,s)):6==it.value?(s="deleteScript",h(i[e].s_id,s,null,!0),a=!0,l=1500):8==it.value&&(s="fullReset",h(i[e].s_id,s),a=!0,l=1500);4==it.value&&(jt.wait(),xe(r,{storage:c.script_storage,externals:c.include_externals}).then((e=>(jt.wait(),ai(e.scripts).progress(jt.wait)))).then((e=>Ce().done((()=>{saveAs(e,"tampermonkey_scripts.zip"),B()})))).fail((()=>I(xt("Action_failed")))).always((()=>{jt.hide()}))),
a&&(jt.wait(xt("Please_wait___")),window.setTimeout((()=>{oe()}),l))}));d.setAttribute("class","action_button"),it||d.setAttribute("disabled","true"),a.elem.appendChild(l),a.elem.appendChild(d);const A=fe("div","actions",e.name,e.id,"actions");A.appendChild(a.elem);const p=Gs.createButton("MultiSelectButton","close_button",xt("Close"),(()=>{u.multiselect.toggleRow(!1)}));return It(p).addClass("close_button"),{selAllm:t,selAll:i,actionBox:A,close:p}};(()=>{let e,t=0;u.multiselect={};let n=!1
;u.multiselect.toggleRow=(t,i)=>{const r=It(".multiselect");void 0===t&&(t=!n),t?(n=!0,r.addClass("multiselectvisible"),u.filter.onShow(i)):(e=void 0,n=!1,r.removeClass("multiselectvisible"),u.filter.onHide(),u.multiselect.un_selectAll(!1))},u.multiselect.shift_click=t=>{const n=document.getElementsByName("scriptselectors");let i=[];if(e){let r;for(let s of n)if(s==e||s==t.target){if(i.push(s),r)break;r=s}else r&&i.push(s)}
if(i.length)for(let e of n)e.checked=i.includes(e);else e=t.target.checked?t.target:void 0;u.multiselect.single_click()},u.multiselect.single_click=n=>{let i=0;const r=document.getElementsByName("scriptselectors");let s=!0,o=!1,a=!1,l=0;for(let e=0;e<r.length;e++){a=!0,s=s&&r[e].checked,o=o||r[e].checked;const t=It(r[e]).closest("tr");r[e].checked?(l++,t.addClass("selected")):t.removeClass("selected")}a&&s&&(i+=2),i!=t&&(t=i,It(".multiselectcb").prop("checked",0!=i?"checked":"")),
l&&u.multiselect.toggleRow(!0),u.multiselect.checkScroll&&u.multiselect.checkScroll(),n&&(e=n.target.checked?n.target:void 0)},u.multiselect.un_selectAll=n=>{++t>3&&(t=0),1==t&&t++;let i=!1,r=0;const s=document.getElementsByName("scriptselectors");ut(),!0===n&&(t=2);for(let e=0;e<s.length;e++){const o=It(s[e]).closest("tr");!1===n?(s[e].checked=!1,o.removeClass("selected")):(0==e&&3==t&&(t=0),i=!0,s[e].checked=3==t||2==t,s[e].checked?(r++,o.addClass("selected"),
dt.push(s[e])):o.removeClass("selected")),r&&u.multiselect.toggleRow(!0)}void 0===n?t>1&&!i&&(t=0):n||(t=0),It(".multiselectcb").prop("checked",0!=t?"checked":""),e=void 0},u.multiselect.setFilter=(e,t)=>{u.multiselect.toggleRow(!0),et.value=e,tt.value=t,It(et).trigger("change"),It(tt).trigger("keyup")}})();const mt={},_t=()=>{const e=ot.connect("hints");e.onMessage.addListener((t=>{if("hints"in t&&t.hints.length>0)for(const n of t.hints)n.realm&&!["options","all"].includes(n.realm)||Z(n,(()=>{
e.postMessage({clear:[n]})}))})),e.postMessage({method:"hints"}),e.onDisconnect.addListener((()=>{window.setTimeout((()=>_t()),1)}))};_t(),ne(),(()=>{const e=fe("div","content_wrapper","options","main"),r=fe("div","options status","options","status");It(document.body).append(e,r).addClass("main");const s=fe("div","head_container","opt","head_container"),o=fe("div","tv_container_fit","opt","tv_container"),a=me("a","head_link","heads","head_link");a.href="https://www.tampermonkey.net",
a.target="_blank";const l=fe("div","float","heads","head1"),c=fe("img","banner","heads");c.src=Us.brand("tampermonkey");const u=fe("div","float head","heads","head2"),A=fe("div","header_title","heads"),h=fe("div","version","version","version");h.textContent=xt("v0version0",ot.manifest.version);const p=me("div","search","box",""),f=fe("div","footer","footer"),m=fe("img","background","background_svg");m.src=Us.brand("tampermonkey2"),s.appendChild(m);let g=ot.manifest.name
;g=g.replace(/Tampermonkey/i,"Tampermonkey<sup>®</sup>"),A.innerHTML=g;const b=fe("div","social","social");b.textContent=" "+xt("by_0name0","Jan Biniok"),b.appendChild(Gs.createSocialButtons()),A.appendChild(b),l.appendChild(c),u.appendChild(A),u.appendChild(h),a.appendChild(l),a.appendChild(u),s.appendChild(a),s.appendChild(p),e.appendChild(s),e.appendChild(o),window.tab_view=d=Bs.create("_main",o),d.setFooter(f),i.unshift((()=>{Ge(d),(e=>{let t,i
;const r="help",s="help",o=me("div",r,s,"tab_help_h"),a=o.textContent=xt("Help"),l=me("div",r,s,"tab_help");e.appendTab(s,o,l,(e=>{e.then((()=>{if(ue.set(s),document.title=a,!i){jt.wait();const e=fe("div","section",r,s,"ta"),o=fe("div","section_head",r,s,"head_ta"),a=fe("div","section_content",r,s,"content_ta");o.textContent=xt("Editor"),e.appendChild([o,a]);const c=fe("dl","dl-horizontal shortcuts",r,s,"dl");a.appendChild(c);const d=fe("dt","keymapping",r,s,"dt_mapping")
;if(t=fe("dd","keymapping",r,s,"dd_mapping"),d.textContent=xt("Key_Mapping"),t.textContent=n.editor_keyMap,c.appendChild([d,t]),"vim"==n.editor_keyMap)t=fe("dd","keymapping",r,s,"dd_unsup"),t.textContent=xt("Please_check_the_0editor0_documentation_for_more_details_","VIM"),c.appendChild(t);else if("emacs"==n.editor_keyMap)t=fe("dd","keymapping",r,s,"dd_unsup"),t.textContent=xt("Please_check_the_0editor0_documentation_for_more_details_","Emacs"),c.appendChild(t);else{const e=[];i={};const t=e=>{
const t=e.split(/-+/),n=t.pop(),i=[];let r="";return-1!=(r=["up","down","left","right"].indexOf(n.toLowerCase()))&&i.push("#cursor"),n.toLowerCase().match(/f[0-9]{1,2}/)&&i.push("#function"),i.length?i.join("-")+t.join("-")+r+n:("0000"+(100-Math.min(n.length,4))).slice(-4)+n+t.join("-")};[{Esc:"backOrClose",..."mac"!=ce?{"Alt-Left":"previousTab","Alt-Right":"nextTab"}:{"Alt-Up":"previousTab","Alt-Down":"nextTab"}
},Ls.keyMap[n.editor_keyMap],"mac"!=ce?Ls.keyMap.pcDefault:Ls.keyMap.macDefault,Ls.keyMap.default].forEach((n=>{Object.keys(n).forEach((r=>{if(i[r]||"fallthrough"==r)return;const s=n[r],o=s?Me[s]:null;e.push({name:r,fn:o?o.text:s.replace?s.replace(/([A-Z])/g," $1").replace(/ [A-Z]/g,(e=>e.toLowerCase())):s,sort:t(r)}),i[r]=!0}))})),e.sort(((e,t)=>e.sort<t.sort?-1:e.sort>t.sort?1:0)),e.forEach((e=>{const t=me("dt",r,s,"dt_"+e.sort),n=me("dd",r,s,"dd_"+e.sort);t.textContent=e.name,
n.textContent=e.fn,c.appendChild([t,n])}))}l.appendChild(e),jt.hide()}}))}))})(d)})),i.push((()=>{void 0!==de.contribute&&window.setTimeout((()=>{_("f")}),100),t.global=!0})),window.onbeforeunload=()=>{let e;return d.getAllTabs().forEach((t=>{e=e||t.modified()})),e?xt("There_are_unsaved_changed_"):void 0}})(),te({referrer:"options"},(e=>{if(e.options&&e.options.layout_user_css&&"reset"!==de.layout){const t=document.createElement("style");t.innerHTML=e.options.layout_user_css,
(document.head||document.body||document.documentElement||document).appendChild(t)}var t,r;n=e.options||n,e.xhr&&(t=e.xhr,pr=t,()=>Promise.resolve(!0),void 0!==(r=async e=>{const t=ot.connect("xhrLocking");return await new Promise((n=>{t.onMessage.addListener((()=>{n()})),t.onDisconnect.addListener((()=>{console.warn("xhrLocking: port disconnected unexpectedly"),n()})),t.postMessage({method:"xhrLocking",url:e})})),{done:()=>{t.disconnect()}}})&&(fr=r)),ls.init(),e.items?(D(e.items,!1),
e.begging&&i.push((()=>{window.setTimeout((()=>{_(e.begging)}),100)}))):jt.hide()}))}))};window.requestFileSystem||(window.requestFileSystem=window.webkitRequestFileSystem),window.BlobBuilder||(window.BlobBuilder=window.WebKitBlobBuilder);const Ds=es.images,Os=window.MirrorFrame,zs=es.images;let Ps,Ns=3;if(ye())try{window.matchMedia("(orientation: portrait)").matches&&(Ns=1)}catch(e){}const Vs=()=>{try{Ps=parseInt(location.hash.substr(1))||void 0}catch{}Kt((()=>{let e={};const t=(i,a)=>{
const d=[];if(a.sub_menu_item){if(a.tabId){Ps=a.tabId;try{location.hash=Ps}catch{}}if(a.items.length){const e=fe("table","actiontable at_"+a.id,"actiontable-"+a.id);if(a.more_menu){const t=fe("tr","",a.name,a.id,"mm_outer_tr");e.appendChild(t);const i=fe("td","",a.name,a.id,"mm_outer_td1"),r=fe("td","",a.name,a.id,"mm_outer_td2");r.setAttribute("colspan",2),t.appendChild([i,r]);const s=fe("table","moremenu","mmtable-"+a.id);r.appendChild(s)
;const o=fe("tr","moremenu_toggle",a.name,a.id,"tw_mm_tr1");let l=[o];const c=fe("div","clickable",a.name,a.id,"mmname");c.textContent=a.name;const d=fe("td","",a.name,a.id,"mm_td2");d.setAttribute("colspan",2),o.appendChild(d),d.appendChild(c)
;const u=fe("div","",a.name,a.id,"mmenablercol"),A=fe("i","ifdisabled clickable far fa-"+zs.get("enabler"),a.name,a.id,"mmenabler"),h=fe("i","ifenabled clickable far fa-"+zs.get("enabler_enabled"),a.name,a.id,"mmenabler_enabled"),p=fe("td","moremenuenabler",a.name,a.id,"tw_td3"),f=It(p);if(!p.inserted){let e;It("body").on("click",(()=>{e?e=!1:(It(s).removeClass("show_moremenu"),f.removeClass("enabled"))}),!1),t.addEventListener("click",(()=>{f.toggleClass("enabled"),
It(s).toggleClass("show_moremenu"),e=!0}),!0)}u.appendChild([A,h]),o.appendChild(p),p.appendChild(u),s.appendChild(l),n(s,a.items)}else n(e,a.items);d.push(e)}}else{let n=null;if(a.image?n=Gs.createIcon(zs.get(a.image),a.name,a.id,null,a.title||""):a.enabler&&(n=Gs.createIcon(zs.get(e.enabled?"button_ok":"cancel"),a.name,a.uuid,null,a.title||"")),n&&d.push(n),a.url||a.urls){const e=me("span",a.name,a.id,"urls"),t=a.urls||[a];for(let n=0;n<t.length;n++){
const s=t[n],o=document.createElement("span");let l;if(s.button)l=fe("i","bw clickable far fa-"+zs.get(s.image),a.name,a.id,"mobile_availibility",!0),l.addEventListener("click",(e=>{c(s.id,s.data,s.reload),e.stopPropagation()})),l.setAttribute("title",s.title),It(l).addClass("bw"),It(o).addClass("mobileplatforms").append(l);else{s.social?(l=Gs.createSocialButtons(),It(o).addClass("social").append(l)):(o.textContent=s.name,l=a.urls?o:i,l.url=s.url,l.url_alt=s.url_alt,l.newtab=s.newtab)
;const e=function(e){return this.url_alt&&e&&(0!=e.button||e.ctrlKey||e.metaKey)?r(this.url_alt,this.newtab||s.social):r(this.url||this.href,this.newtab||s.social),e.stopPropagation(),e.preventDefault(),!1};It(l).addClass("clickable").on("click auxclick",e)}if(e.appendChild(o),a.always_visible&&It(i).addClass("always_visible"),n<t.length-1){const t=document.createElement("span");t.textContent=" | ",e.appendChild(t)}}d.push(e)}else if(a.button){const e=function(){let e=!0
;this.warning&&(e=o(this.warning)),e&&c(this.key,this.data,this.reload)},t=fe("span",a.display||"",a.name,a.id,"bu",!0);t.textContent=a.name,i.key=a.id,i.warning=a.warning,i.reload=a.reload,i.data=a.data,a.title&&(i.title=a.title),i.addEventListener("click",e),It(i).addClass("clickable"),d.push(t)}else if(a.userscript){const t=fe("table","",a.name,a.uuid,"tw"),n=fe("tr","script",a.name,a.uuid,"tw_tr1");let o=[n]
;const c=fe("div","clickable"+(a.active_count?"":" not_executed")+(a.deleted?" was_deleted":""),a.name,a.uuid,"ai");if(a.uuid){const t=[];let o=null;o=a.blacklisted||a.foisted?"enabler_warning":a.enabled?a.contexter?"enabler_enabled enabler_later":"enabler_enabled":"enabler_disabled";const d=a.blacklisted||a.foisted||(a.enabled?xt("Enabled"):xt("Disabled")),f=function(e){if(e&&(0!=e.button||e.ctrlKey||e.metaKey))return r(ot.getURL("options.html")+"#nav="+this.key,!0),e.stopPropagation(),
e.preventDefault(),!1;a.foisted?p(a.uuid,"whitewash",!0):p(a.uuid,"enabled",!a.enabled)},m=Gs.createEnabler(o,a.uuid,"enabled",{append:"enabled",disabled:a.blacklisted||a.deleted,title:d},f),g=fe("td","",a.name,a.uuid,"tw_td1");n.appendChild(g),g.appendChild(m);const _=s(a.icon64||a.icon,a.uuid,"icon",{default_icon:Xt.images.origin("unknown")});c.appendChild(_);const b=fe("div","script_name",a.name,a.uuid,"name");if(b.textContent=Ct(a,"name"),c.appendChild(b),c.uuid=a.uuid,c.key=a.uuid,
!a.deleted&&!a.blacklisted){It(c).on("click auxclick",f);const e=xt("Edit"),n=Gs.createIcon(zs.get("edit"),"",a.uuid,"edit_script",e),i=fe("span","clickable",a.name,a.uuid,"edit_script");i.setAttribute("title",e),i.textContent=e,t.push({always_visible:!1,id:"edit_script",img:n,text:i,oc:function(){r(ot.getURL("options.html")+"#nav="+a.uuid,!0)}})}if(a.blacklisted||a.foisted){let e;e=a.blacklisted?a.warnings&&a.warnings.length?`${a.blacklisted} - ${a.warnings.join("\n")}`:a.blacklisted:a.foisted,
i.setAttribute("title",e),It(b).addClass("crossedout")}else a.active_count?b.title=xt("This_script_was_executed_0count0_times",a.all_time_active_count):a.all_time_active_count?b.title=xt("This_script_was_executed_0count0_times_but_is_not_active_anymore",a.all_time_active_count):a.enabled?b.title=xt("This_script_was_not_executed_yet"):b.title=xt("This_script_was_not_executed");const v=fe("td","",a.name,a.uuid,"tw_td2");let w;if(v.appendChild(c),!a.nnew&&!a.system&&a.abuse){
const e=Gs.createIcon(zs.get("flag"),"",a.uuid,"issue",xt("Report_an_issue_to_the_script_hoster_")),n=fe("span","clickable",a.name,a.uuid,"action_issue_expl");n.textContent=xt("Report_an_issue_to_the_script_hoster_").split(/[\.\(]+/)[0],t.push({always_visible:!1,id:"action_issue_expl",img:e,text:n,oc:function(){l(a.uuid,"hoster")}})}if(!a.nnew&&!a.system&&a.support){const e=Gs.createIcon(zs.get("bug"),"",a.uuid,"bug",xt("Report_a_bug")),n=fe("span","clickable",a.name,a.uuid,"action_issue_expl")
;n.textContent=xt("Report_a_bug"),t.push({always_visible:!1,id:"action_issue_expl",img:e,text:n,oc:function(){l(a.uuid,"author")}})}if(a.updatable){const e=Gs.createIcon(zs.get("updatable"),"",a.uuid,"updatable",xt("Apply_update")),n=fe("span","clickable",a.name,a.uuid,"action_updatable");n.textContent=xt("Apply_update"),t.push({always_visible:!0,id:"action_updatable",img:e,text:n,oc:function(){$r({method:"buttonPress",name:"apply_script_update",uuid:a.uuid},(()=>{Ze()}))}})}const y={}
;if(a.active_urls&&a.active_urls.forEach((e=>{const n=bn(e).hostname;if(y[n])return;y[n]=!0;const i="/"+cn("*://*."+n+"/*",!0)+"/";if(a.options.override&&a.options.override.use_excludes.includes(i))return;const r=xt("Exclude_0domain0",n),s=Gs.createIcon(zs.get("no"),"",a.uuid,"domain"+e,r),o=fe("span","clickable",a.name,a.uuid,"action_domain");o.setAttribute("title",r),o.textContent=r,t.push({always_visible:!1,id:"action_domain",img:s,text:o,oc:function(){p(a.uuid,"add_excludes",[i])}})})),
!a.deleted&&!a.blacklisted){const e=xt("Delete"),n=Gs.createIcon(zs.get("delete"),"",a.uuid,"delete_script",e),i=fe("span","clickable",a.name,a.uuid,"delete_script");i.setAttribute("title",e),i.textContent=e,t.push({always_visible:!1,id:"delete_script",img:n,text:i,oc:function(){h(a.uuid)}})}if(a.menu_cmds){let e;try{e=new RegExp("^"+z(a.name)+"[ -:+/]*")}catch(e){console.log(e)}a.menu_cmds.forEach((n=>{const r=fe("span","clickable",a.name,a.uuid,"menucmd_"+a.id)
;r.setAttribute("title",n.title||a.name);const s=(e?n.name.replace(e,""):"")||n.name;r.textContent=s;const o=e=>{A(n.id,e,(()=>{Ce.CLOSE_ALLOWED&&n.autoClose&&window.close()}))};if(n.accessKey){const e=n.accessKey[0];if(u(e,o,i)){const t=new RegExp(z(e),"i");let i=r.textContent.search(t);const s=[];-1==i&&(r.textContent+=" ("+e.toUpperCase()+")",i=r.textContent.search(t)),s.push({text:r.textContent.substr(0,i)}),s.push({text:r.textContent.substr(i,1),class:"underlined"}),s.push({
text:r.textContent.substr(i+1)}),r.textContent="",s.forEach((e=>{const t=fe("span",e.class||"",n.id,e);t.textContent=e.text,r.appendChild(t)}))}else console.warn("Registering keyboard shortcut for '"+n.name+"' failed")}t.push({always_visible:!0,id:a.id,img:Gs.createIcon(zs.get(n.image),s,n.id,null,""),text:r,oc:o,aoc:o})}))}if(a.deleted||!t.length)n.appendChild(v);else{const i=fe("td","",a.name,a.uuid,"mma_outer_td2");i.setAttribute("colspan",2);const s=fe("table","moremenu","mmatable-"+a.uuid)
;i.appendChild(s),n.appendChild(i);const o=fe("tr","moremenu_toggle",a.name,a.uuid,"mma_n_tr");if(o.appendChild(v),s.appendChild(o),e.tags_enabled){const t=Object.keys(e.tags),n=a.options.tags.filter((e=>t.includes(e)));if(n.length){const e=fe("tr","",a.uuid,"tw_tagdn_tr1"),t=fe("td","clickable",a.uuid,"tw_tagdn",2,!0);t.setAttribute("colspan","2");const i=fe("span","tags",a.uuid,"tw_tag");e.appendChild(t),s.appendChild(e);const o=Gs.createIcon(zs.get("tags"),xt("Tags"),"tags",null,"")
;t.appendChild([o,i]),i.appendChild(n.map((e=>{const t=()=>r(ot.getURL("options.html")+"#nav=dashboard&tag="+encodeURIComponent(e),!0);return Gs.createTag(e,{...a,id:"s_tag_elem"+e},{class:"clickable",onClick:t,onAuxClick:t})})))}}t.forEach((e=>{const t=a.uuid+e.id,n=fe("tr",e.always_visible?" always_visible":"",a.name,a.uuid,"tw_a_tr1"),i=fe("td","clickable",t,"tw_tdn",2,!0);i.setAttribute("colspan","2"),i.addEventListener("click",e.oc),e.aoc&&i.addEventListener("auxclick",e.aoc),
i.appendChild([e.img,e.text]),n.appendChild(i),s.appendChild(n)})),w=fe("div","",a.name,a.uuid,"moremenuenabler");const l=fe("i","ifdisabled clickable far fa-"+zs.get("enabler"),a.name,a.uuid,"moremenuenabler"),c=fe("i","ifenabled clickable far fa-"+zs.get("enabler_enabled"),a.name,a.uuid,"moremenuenabler_enabled"),d=fe("td","moremenuenabler",a.name,a.uuid,"tw_td3"),u=It(d);let A;It("body").on("click",(()=>{A?A=!1:(It(s).removeClass("show_moremenu"),u.removeClass("enabled"))}),!1),
w.addEventListener("click",(()=>{u.toggleClass("enabled"),It(s).toggleClass("show_moremenu"),A=!0}),!0),w.appendChild([l,c]),o.appendChild(d),d.appendChild(w)}}t.appendChild(o),d.push(t)}else if(a.tag){const e=fe("div","clickable",a.tag,"div","ai",!0),t=function(e){if(e&&(0!=e.button||e.ctrlKey||e.metaKey)?r(ot.getURL("options.html")+"#nav=dashboard&tag="+encodeURIComponent(a.tag),!0):c("toggle_tagged_scripts",{tag:a.tag,toggle:!i},!1,!1),e)return e.stopPropagation(),e.preventDefault(),!1
},n=a.data.x==a.data.of,i=a.data.x>0,s=n?"enabler_enabled":i?"enabler_middle":"enabler_disabled",o=xt(n?"Disable_all_scripts_of_this_tag":i?"Disable_all_remaining_scripts_of_this_tag":"Enable_all_scripts_of_this_tag"),l=Gs.createEnabler(s,a.tag,"enabled",{title:o,onf:!0,append:"enabled"},t),u=Gs.createTag(a.tag,{...a,id:"tagelem"+a.tag},{class:"clickable",onClick:t,onAuxClick:t});e.appendChild(u),d.push(l,e)}else if(a.referrer){const e=fe("span",a.class||"",a.referrer,a.id,"ref",!0)
;e.textContent=a.name,It(i).addClass("pleasewait"),d.push(e),f(Q(a.data,{referrer:a.referrer}),(r=>{It(i).removeClass("pleasewait");const[s,o]=t(i,r.items[0]);let a,l;o?(a=s,l=o):l=s,a&&n.parentNode.replaceChild(a,n),e.parentNode.replaceChild(l,e)}))}else{const e=fe("span",a.class||"",a.name,a.id,"ai");e.textContent=a.name,a.title&&(e.title=a.title),d.push(e)}}return d},n=(e,n,i)=>{Object.keys(n).forEach((r=>{const s=n[r];if(!e){
if(!i[s.pos])return void console.warn("Warn(cAm): unknown pos "+s.pos);s.items&&s.items.length&&It(i[s.pos]).show()}const o=e||i[s.pos],a=o?me("tr",s.name,s.uuid||s.id,"outer"):null,l=t(a,s);if(l&&l.length){o.appendChild(a);for(let e,t=0;e=l[t];t++){const n=t==l.length-1?3-t:0,i=me("td","actiontd",s.name,s.uuid||s.id,t);n>0&&i.setAttribute("colspan",n),e&&i.appendChild(e),a.appendChild(i)}}}))},i=t=>{let i;if(i=document.getElementById("action"))i.innerHTML="";else{i=me("div"),
i.setAttribute("id","action"),i.setAttribute("class","action");const e=fe("div","action status","status","status");e.setAttribute("id","status"),It(document.body).append(e,i)}const r=fe("table","actionlayout","actionlayout");i.appendChild(r);const s=fe("tr","actionpostr","hor"),o=fe("td","actionpostd","hor_west");let a;s.appendChild(o),r.appendChild(s);const l=fe("table","actionregion noborder ar_top","top"),c=fe("table","actionregion noborder ar_right","right");let d
;const u=fe("table","actionregion noborder ar_left","left"),A=fe("table","actionregion noborder ar_bottom","bottom");if(Math.min(e.action_menu_columns,Ns)>2){d=fe("table","actionregion noborder ar_center","center");const e=fe("td","actionpostd","hor_center");a=fe("td","actionpostd","hor_east"),e.appendChild(d),s.appendChild(e),s.appendChild(a)}else Math.min(e.action_menu_columns,Ns)>1?(d=c,a=fe("td","actionpostd","hor_east"),s.appendChild(a)):(d=u,a=o);It([d,c]).hide(),o.appendChild(l),
a.appendChild(c),o.appendChild(u),o.appendChild(A),n(null,t,{top:l,left:u,center:d,right:c,bottom:A})},r=(e,t)=>{try{const n=()=>{t&&Ce.CLOSE_ALLOWED&&window.close()};t?$r({method:"newTab",url:e},n):lt.getSelected(null,(i=>{lt.sendMessage(i.id,{method:"loadUrl",url:e,newtab:t},n)}))}catch(e){console.warn("lU:",e)}},s=(e,t,n,i)=>{i=i||{};const r=Gs.createImage(i.default_icon||Xt.images.empty,void 0,n,t);if(r.inserted)return r;Array.isArray(e)||(e=e?[e]:[]);const s=async()=>{if(0==e.length)return
;const t=e.shift(),n=0==e.length;let i,o;if(t.startsWith("data:")?i=t:o=await((e,t)=>new Promise((n=>{$r({method:"imageUrlToTransferable",url:e,fallback:t},(e=>{n(e?lr.fromTransferableData(e.transferable):void 0)}))})))(t,n),i)r.setAttribute("src",i);else if(o)if(o.tryObjectUrl)r.setAttribute("src",o.tryObjectUrl);else if(o.tryDataUri)r.setAttribute("src",o.tryDataUri);else{const e=await o.toBlob(),t=URL.createObjectURL(e);r.setAttribute("src",t),r.onload=()=>URL.revokeObjectURL(t)
}else await s()};return s(),r},o=e=>{let t=confirm(e.msg),n={};return t&&e.ok?n=e.ok:!t&&e.cancel&&(n=e.cancel),(e.ok||e.cancel)&&(t=!0),n.url&&$r({method:"newTab",url:n.url},(()=>null)),t},a=async(e,t)=>{let n;const i=e.key||"general";(n=m[i])&&(await It(n).fadeOut(500)).remove();const{info_url:s,buttons:o}=e;m[i]=Gs.createGobalHint(Q(e,{instant:!0,onclick:s?()=>{r(s,!0)}:null,onbuttonclick:o?e=>{e.id?c(e.id).always((()=>{t&&t()})):e.url?r(e.url,!0):console.warn("No button id or url found")
}:null,onclose:()=>{t&&t()},id:i,delay:1e3,...e}),document.getElementById("status"))},l=(e,t,n)=>{try{$r({method:"reportAnIssue",uuid:e,to:t},(()=>{n&&n()}))}catch(e){console.warn("raI:",e)}},c=(t,n,r,s)=>{const o=Te();void 0===s&&(s=!0);try{$r({method:"buttonPress",name:t,data:n},(t=>{r?Ze():s&&Ce.CLOSE_ALLOWED?window.close():t&&t.items&&(t.options&&(e={...e,...t.options}),i(t.items)),o.resolve()}))}catch(e){console.warn("rSU:",e)}return o.promise()};let d;const u=(e,t,n)=>{
if(d)return e=e.toLowerCase(),d[e]?(console.log("MenuCmdKeyListener: ...failed!"),!1):(d[e]={key:e,cb:t,elem:n},!0)},A=(e,t,n)=>{try{const{keyCode:i,key:r,code:s,button:o,shiftKey:a,altKey:l,ctrlKey:c,metaKey:d}=t;$r({method:"execMenuCmd",id:e,event:{keyCode:i,key:r,code:s,button:o,shiftKey:a,altKey:l,ctrlKey:c,metaKey:d}},(()=>{n&&n()}))}catch(t){console.warn("Error(eMC):",t)}},h=t=>{try{$r({method:"saveScript",uuid:t,code:null},(t=>{document.getElementById("action").innerHTML="",
t&&t.items&&(t.options&&(e={...e,...t.options}),i(t.items))}))}catch(e){console.warn("Error(sS): "+e.message)}},p=(t,n,r)=>{try{const s={method:"modifyScriptOptions",uuid:t};n&&""!=n&&(s[n]=r),$r(s,(t=>{document.getElementById("action").innerHTML="",t&&t.items&&(t.options&&(e={...e,...t.options}),i(t.items))}))}catch(e){console.warn("Error(mSo): "+e.message)}},f=(t,n)=>{const i=Date.now(),r=t.referrer,s=t.min_delay,o=t.layout;$r({method:"loadTree",referrer:r,layout:o,url:t.url,
available_columns:Ns,uuid:t.uuid,tabId:t.tabId},(t=>{if(t){t.options&&(e={...e,...t.options},e.statistics_enabled&&($n("act",{version:ot.manifest.version}),ei(!0)));const r=Date.now()-i,o=()=>{n(t)};!s||r>=s?o():window.setTimeout(o,s-r)}else console.error("Error(lT): unable to load tree")}))},m={},g=()=>{const e=ot.connect("hints");e.onMessage.addListener((t=>{if(t.refresh)_();else if("hints"in t&&t.hints.length>0)for(const n of t.hints)n.realm&&!["actions","all"].includes(n.realm)||a(n,(()=>{
e.postMessage({clear:[n]})}))})),e.postMessage({method:"hints"}),e.onDisconnect.addListener((()=>{console.log("connect: disconnected"),window.setTimeout((()=>g()),1)}))},_=window.main=()=>{f({referrer:"actions",min_delay:Ce.MIN_DELAY,layout:!0,tabId:Ps},(e=>{if(e.options&&e.options.layout_user_css){const t=document.createElement("style");t.innerHTML=e.options.layout_user_css,(document.head||document.body||document.documentElement||document).appendChild(t)}
d||(console.log("MenuCmdKeyListeners initialized"),document.body.addEventListener("keydown",(e=>{e.altKey||e.ctrlKey||e.shiftKey||Object.keys(d).forEach((t=>{const n=d[t];n&&e.key==n.key&&(console.log("MenuCmdKeyListener: ... found",e.keyCode,String.fromCharCode(e.keyCode)),n.cb.apply(n.elem||window,[e]))}))}),!1)),d={},i(e.items)}))};g(),_()}))};(async()=>{const e=async()=>{gt||Rt||(gt=await vt(_t))},t=wt(Rt?At.getUILanguage():navigator.language);if(t){const e=[t],n=t.split(/_/)
;n[0]!==t&&e.push(n[0]),e.forEach((e=>{_t.unshift(e)}))}await e(),Rt&&(await new Promise((e=>{At.getAcceptLanguages((t=>{t?(t.forEach((e=>{_t.push(wt(e))})),e()):te.error("getAcceptLanguages returned undefined")}))})),await e())})(),(async()=>{Wt.restore(),(async()=>{let e;for(;!e;)await new Promise((t=>{if(e=Be.connect("keepalive"),e){e.onDisconnect.addListener((()=>{e=void 0,t()}));try{e.postMessage({method:"keepAlive",url:location.href,messageId:Math.random().toString(36).substr(2,9)})
}catch(n){return e=void 0,void t()}}else t()})),await Pe(1e3)})(),0===window.location.pathname.indexOf("/action")?(()=>{window.sendMessage=(e,t)=>{e.origin="action";const i=e=>{n(),t(e)};ot.sendMessage(e,(e=>{if(e&&e.i18n)return Et(e.i18n).always((()=>i(e)));i(e)}))};let e=null,t=null;const n=()=>{e&&(window.clearTimeout(e),e=null),t&&(t.remove(),t=null)};e=window.setTimeout((()=>{
t=It('<div id="initialWait" class="lds-css ng-scope"><div class="lds-dual-ring"><div></div><div></div></div></div>'),It("body").append(t)}),200),tn({suc:()=>{Vs()},fail:()=>{n(),confirm(xt("An_internal_error_occured_Do_you_want_to_visit_the_forum_"))&&window.open("https://www.tampermonkey.net/bug")}})})():0===window.location.pathname.indexOf("/options")?(window.sendMessage=(e,t)=>{e.origin="options",ot.sendMessage(e,(e=>{if(e&&e.i18n)return Et(e.i18n).always((()=>{t(e)}));t(e)}))},
jt.wait(xt("Please_wait___")),tn({suc:()=>{jt.hide(),js()},fail:()=>{window.confirm(xt("An_internal_error_occured_Do_you_want_to_visit_the_forum_"))&&(window.location.href="https://www.tampermonkey.net/bug")}})):0===window.location.pathname.indexOf("/ask")?(window.sendMessage=(e,t)=>{e.origin="extension",ot.sendMessage(e,(e=>{if(e&&e.i18n)return Et(e.i18n).always((()=>{t(e)}));t(e)}))},tn({suc:()=>{jt.wait(xt("Please_wait___")),(()=>{const e=ye();Kt((()=>{let t=null,n={},i="???",r=null
;const s=(e,t,i)=>{i=i||{};const r=Te();try{const s={aid:e,method:t,message:i.data};sendMessage({method:"askCom",data:s},(e=>{const t=e?e.message||{}:{error:"no_response"};i.bg||jt.hide(),n=e.options||n,t.error?(t.please_close&&window.setTimeout(window.close,100),r.reject(t)):r.resolve(t)})),i.bg||jt.wait(xt("Please_wait___"))}catch(e){console.warn("sS: "+e.message),r.reject()}return r.promise()},o=()=>s(t.aid,"ping",{bg:!0}),a=()=>s(t.aid,"abort"),l=()=>{let e
;const t=fe("div","content_wrapper","ask","main"),n=fe("div","ask status","ask","status");It(document.body).append(t,n).addClass("main");const i=fe("div","head_container","ask","head_container"),r=fe("div","tv_container_fit","ask","tv_container"),s=me("a","head_link","ask","head_link");s.href="https://www.tampermonkey.net",s.target="_blank";const o=fe("div","float","ask","head1"),a=fe("img","banner","ask");a.src=Ds.brand("tampermonkey")
;const l=fe("div","float head","ask","head2"),d=fe("div","header_title","heading"),u=fe("div","version","version","version");u.textContent=xt("v0version0",ot.manifest.version);const A=me("div","search","box",""),h=fe("img","background","background_svg");h.src=Ds.brand("tampermonkey2"),i.appendChild(h),d.innerHTML="Tampermonkey<sup>&reg;</sup>",o.appendChild(a),l.appendChild(d),l.appendChild(u),s.appendChild(o),s.appendChild(l),i.appendChild(s),i.appendChild(A),t.appendChild(n),t.appendChild(i),
t.appendChild(r);const p=Bs.create("_main",r);return e=c(p),jt.hide(),e},c=e=>{const t="main",n="main",r=me("div",t,n,"tab_content_h");r.textContent=i;const s=me("div",t,n,"tab_content");return e.appendTab(Ae(t,n),r,s).select(),s},d=async e=>{const t=e.script,i=await new lr(t.tfd).toBlob(),r={...t,textContent:await new Response(i).text()};let s;const o=e.oldscript;if(o){const e=await new lr(o.tfd).toBlob();s={...o,textContent:await new Response(e).text()}}
const a=fe("div","viewer_bottom_tab","bottom",""),l={tv:"tv tv_alt",tv_table:"tv_table tv_table_alt",tr_tabs:"tr_tabs tr_tabs_alt",tr_content:"tr_content tr_content_alt",td_content:"td_content td_content_alt",td_tabs:"td_tabs td_tabs_alt",tv_tabs_align:"tv_tabs_align tv_tabs_align_alt",tv_tabs_fill:"tv_tabs_fill tv_tabs_fill_alt",tv_tabs_table:"tv_tabs_table tv_tabs_table_alt",tv_contents:"tv_contents tv_contents_alt",tv_tab_selected:"tv_tab tv_selected tv_tab_alt tv_selected_alt",
tv_tab_close:"",tv_tab:"tv_tab tv_tab_alt",tv_content:"tv_content tv_content_alt"};if(n.editor_enabled){const e=Bs.create("_source"+r.uuid,a,l);let t;const i=(e,t)=>{const n=fe("div","tv_content tv_content_alt",e.uuid,t+"container_o"),i=fe("table","editor_container_o editor_400p_container_o p100100 noborder",e.uuid,t+"container_o"),r=fe("tr","editor_container p100100",e.uuid,t+"container");n.appendChild(i),i.appendChild(r)
;const s=fe("td","editor_outer editor_400p_outer",e.uuid,t+"edit"),o=fe("div","editor_100 editor_border",e.uuid,t+"edit");return r.appendChild(s),s.appendChild(o),{c:n,e:o}};let o=()=>{const e=Te();return Fe(["vendor/jsdiff/diff"],(()=>{o=Te.Pledge,e.resolve()})),e.promise()};(s&&s.textContent!=r.textContent?o().then((()=>{const o=me("div",r.uuid,"diff_h");o.textContent=xt("Changes");const l=i(r,"diff");a.diff=new Os(l.e,{theme:"diff",fontSize:n.editor_fontSize,value:xt("Please_wait___"),
noButtons:!0,mode:"diff",readOnly:!0,tabindex:-1},xt),t=e.appendTab("diff",o,l.c,(()=>{window.setTimeout((()=>{a.diff.refresh(),a.diff.mirror.focus()}),1)})),window.setTimeout((()=>{let e;try{e=window.JsDiff.createTwoFilesPatch(xt("Current_Version"),xt("New_Version"),s.textContent,r.textContent,void 0,void 0,{timeout:4e3})}catch(e){console.warn(e)}e||(e=xt("The_diff_for_this_script_is_too_large_to_render")),a.diff.mirror.setValue(e)}),500)})):Te.Pledge()).then((()=>{
const s=me("div",r.uuid,"source_h");s.textContent=xt("Source_Code");const o=i(r,"source");a.editor=new Os(o.e,{theme:n.editor_theme,fontSize:n.editor_fontSize,tabSize:Number(n.editor_tabSize),styleSelectedText:!0,highlightSelectionMatches:"off"!=n.editor_highlightSelectionMatches?{showToken:/\w/,annotateScrollbar:!0,cursorOnly:"cursor"==n.editor_highlightSelectionMatches}:void 0,value:r.textContent,noButtons:!0,matchBrackets:!0,readOnly:!0,tabindex:-1},xt)
;const l=e.appendTab("source",s,o.c,(()=>{window.setTimeout((()=>{a.editor.refresh(),a.editor.mirror.focus()}),1)}));t=t||l})).then((()=>{t.select()}))}else{const e=fe("div","editor_400p_outer","editor",r.name),t=fe("div","editor_400p editor_border","editor",r.name);a.appendChild(e),e.appendChild(t);const n=fe("textarea","editorta","editor",r.name);n.setAttribute("wrap","off"),t.appendChild(n),n.value=r.textContent}return a},u=(()=>{const e={};return window.addEventListener("keydown",(t=>{
let n=!1;if("keydown"==t.type)return e[t.keyCode]&&(n=e[t.keyCode](t)),n?(t.stopPropagation(),t.preventDefault(),!1):void 0}),!0),{registerListener:function(t,n){e[t]=n}}})(),A=(e,t,n)=>{n.filter((e=>e.label)).forEach((n=>{const i=n.icon?Gs.createImageTextButton(n.id,n.id,n.label,n.icon,n.fn):Gs.createButton(n.label,n.id,n.label,n.fn),r=It(i);if(r.addClass(t),n.id&&r.attr("data-btn-id",n.id),n.class&&r.addClass(n.class),e.appendChild(i),n.focus&&window.setTimeout((()=>{r.trigger("focus")}),300),
n.keyDown){const e=n.keyDown.keyCode?n.keyDown.keyCode:n.keyDown,t=n.keyDown.cb?n.keyDown.cb:n.fn;u.registerListener(e,t)}}))},h=e=>{const n=e.script,i=fe("div","viewer_last","install"),r=fe("div","viewer_content","install_content"),o=fe("div","ask_action_buttons","install_buttons"),a=[];return a.push({label:e.messages.action,fn:()=>s(t.aid,"install")}),we()<21&&a.push({label:e.messages.flags.install?xt("Process_with_Chrome"):null,fn:function(){g(n.fileURL),It(i).hide()}}),a.push({
label:xt("Cancel"),fn:_,keyDown:27,focus:!0}),e.messages.flags.update&&!e.messages.flags.user_modified&&a.push({label:xt("Disable_Updates"),class:"disable_update",fn:function(){s(t.aid,"abort",{data:{disable_update:!0}})}}),A(o,"install",a),r.appendChild(o),i.appendChild(r),i},p=()=>{const e=fe("div","viewer_last","ok"),t=fe("div","viewer_content","ok_content"),n=fe("div","ask_action_buttons","ok_buttons");return A(n,"import",[{label:xt("Ok"),fn:_,focus:!0}]),t.appendChild(n),e.appendChild(t),e
},f=(e,t)=>{const n=me("input",e+"_",t,"",!0);return n.setAttribute(`data-${e}-id`,t),n.checked=!0,n.type="checkbox",n.title=xt("Press_ctrl_to_toggle_all_checkboxes"),n.addEventListener("click",(i=>{(i.ctrlKey||i.metaKey)&&It(`input[type=checkbox][data-${e}-id]:not([data-${e}="${t}"])`).prop("checked",n.checked)})),n},m=async(t,n)=>{const i=t.preparat,r=t.content,s=i.script||{},o=s.uuid||s.id||s.name;i.short_info||(i.short_info=[])
;const a=fe("div","viewer_upper",o),l=fe("div","viewer_info "+(n?"viewer_info_wide":"viewer_info_multiple"),"general",o),c=fe("div","viewer_content","general_content",o),d=me("h3","install","heading",o);if(t.checkbox&&d.appendChild(f("import",t.key)),s.icon||s.icon64){const e=me("img","version","heading",o);e.src=s.icon||s.icon64,d.appendChild(e)}const u=me("span","name","heading",o);if(u.textContent=i.heading||Ct(s,"name")||"",d.appendChild(u),s.version){
const e=fe("span","view_version","heading",o);e.textContent="v"==s.version[0]?"":"v",e.textContent+=s.version,d.appendChild(e)}l.appendChild(d),t.externals&&i.short_info.unshift({prop:"externals",dom:f("externals",t.key),label:xt("Externals")}),t.storage&&i.short_info.unshift({prop:"storage",dom:f("storage",t.key),label:xt("Storage")}),n&&i.short_info.unshift({prop:"heading",value:i.messages.heading,label:xt("Action")});const A=fe("table","script_desc",o);i.short_info.forEach((e=>{
const t=(e.i18n?Ct(s,e.prop):s[e.prop])||e.value,i=e.dom;if(!i&&!t&&n)return;const r=fe("tr","script_desc",e.prop,o),a=fe("td","script_desc",e.prop,o+"dt"),l=fe("td","script_desc",e.prop,o+"dd");a.textContent=e.label?e.label:"",i?l.appendChild(i):l.textContent=t||xt("_not_set_"),r.appendChild(a),r.appendChild(l),A.appendChild(r)})),c.appendChild(A);const h=fe("div","viewer_info viewer_info_multiple","info",o);let p;if(n)p=c;else{p=fe("div","viewer_content","info_content",o)
;const e=me("h4","action","heading",o);document.title=e.textContent=i.messages.heading,p.appendChild(e)}let m=0;["errors","warnings","info"].forEach((t=>{const n=me("table",t,o+m);(i.messages[t]||[]).forEach((i=>{m++;const r=me("tr",t,o+m),s=me("td",t,o+"dt"+m),a=me("td",t,o+"dd"+m);if("info"==t)if(i.label&&i.value)s.textContent=i.label,a.textContent=i.value;else{let t='<i class="far fa-'+Ds.get("about")+'"></i>&nbsp;';e||(s.innerHTML=t,t=""),
a.innerHTML=t+Gs.safeTagsReplace(i).replace(/\n/g,"<br />")}else if("warnings"==t){let t='<i class="far fa-'+Ds.get("critical")+'"></i>&nbsp;';e||(s.innerHTML=t,t=""),a.innerHTML=t+Gs.safeTagsReplace(i).replace(/\n/g,"<br />")}else if("errors"==t){let t='<i class="far fa-'+Ds.get("error")+'"></i>&nbsp;';e||(s.innerHTML=t,t=""),a.innerHTML=t+Gs.safeTagsReplace(i).replace(/\n/g,"<br />")}r.appendChild(s),r.appendChild(a),n.appendChild(r)})),p.appendChild(n)}));const g=(e,t,n,i)=>{
const r=me("table",e,o);let a=0;const l={};if(t.forEach((t=>{if(a>i)return;const s=t;if(l[s])return;l[s]=!0;const c=fe("tr",e+"desc",s,o+a),d=fe("td",e+"desc",s,o+a+"dt"),u=fe("td",e+"desc",s,o+a+"dd");d.innerHTML=0==a?Gs.safeTagsReplace(n.label):"&nbsp;",u.innerHTML=a==i?'<span title="'+Gs.safeTagsReplace(n.warning)+'">...!</span>':Gs.safeTagsReplace(s),c.appendChild(d),c.appendChild(u),r.appendChild(c),a++})),s.options){const t=s.options.override&&s.options.override["use_"+e];if(t&&t.length){
const t=fe("tr",e+"desc","ovverride",o+a),i=fe("td",e+"desc","ovverride",o+a+"dt"),s=fe("td",e+"desc","ovverride",o+a+"dd");i.innerHTML=0==a?Gs.safeTagsReplace(n.label):"&nbsp;",s.innerHTML=Gs.safeTagsReplace(" ("+xt("overwritten_by_user")+")"),t.appendChild(i),t.appendChild(s),r.appendChild(t)}}p.appendChild(r)};g("includes",(s.includes||[]).concat(s.matches||[]),{label:xt("Include_s__"),warning:xt("Attention_Can_not_display_all_includes_")},5),g("excludes",s.excludes||[],{
label:xt("Exclude_s__"),warning:xt("Attention_Can_not_display_all_excludes_")},3),l.appendChild(c),h.appendChild(p),a.appendChild(l),a.appendChild(h);const _=fe("div","section",o,"install_src");_.appendChild(a),t.install&&_.appendChild(t.install(i)),t.editor&&_.appendChild(await t.editor(i)),r.appendChild(_)},g=e=>{a(),window.setTimeout((()=>{window.location=e+"#bypass=true"}),10)};var _=()=>{a(),window.setTimeout((()=>{window.close()}),3e3)};window.addEventListener("unload",(()=>{
s(t.aid,"unload"),r&&(window.clearInterval(r),r=null)}),{once:!0});const b=()=>{window.location.search||window.location.hash?(t=he(),t.aid?((t.aid,s(t.aid,"preparat")).done((a=>{if(n.statistics_enabled&&($n("ask",{version:ot.manifest.version}),ei(!0)),n.layout_user_css){const e=document.createElement("style");e.innerHTML=n.layout_user_css,(document.head||document.body||document.documentElement||document).appendChild(e)}i=xt("Install");let c=null;a.preparat&&("install"==a.type?c=()=>{m({
content:l(),preparat:a.preparat,install:h,editor:d})}:"install_error"==a.type?c=()=>{m({content:l(),preparat:a.preparat,install:p},!0)}:"import"==a.type?c=()=>{((n,i)=>{if(document.title=xt("Import"),n.appendChild((e=>{const n=fe("div","viewer_last","import"),i=fe("div","viewer_content","import_content"),r=fe("div","ask_action_buttons import_buttons","import_buttons");A(r,"import",[{label:xt("Import"),fn:function(){
const n=Object.keys(e.scripts).filter((e=>!!It('input[type="checkbox"][data-import-id="'+e+'"]').value()));var i,r,o,a;i=Object.keys(e.scripts).filter((e=>!!It('input[type="checkbox"][data-storage-id="'+e+'"]').value())),r=Object.keys(e.scripts).filter((e=>!!It('input[type="checkbox"][data-externals-id="'+e+'"]').value())),o=n,a=e.global_settings&&!!It('input[type="checkbox"][data-settings-id="global_settings"]').value(),s(t.aid,"import",{data:{storage_ids:i,externals_ids:r,import_ids:o,
global_settings:a}})}},{label:xt("Cancel"),fn:_,keyDown:27,focus:!0}]),i.appendChild(r),n.appendChild(i);const o=fe("div","section","btn");return o.appendChild(n),o})(i)),i.global_settings){const t=fe("div","viewer_upper","");(t=>{const n=t.key,i=t.content,r=fe("div","viewer_upper",n),s=fe("div","viewer_info viewer_info_wide","general",n),o=fe("div","viewer_content","general_content",n),a=me("h3","install","heading",n);t.checkbox&&a.appendChild(f(t.checkbox,t.key))
;const l=me("img","version","heading",n);l.src=Ds.brand("tampermonkey"),a.appendChild(l);const c=me("span","name","heading",n);c.textContent=xt("Global_Settings"),a.appendChild(c),s.appendChild(a);const d=fe("table","script_desc",n);let u=fe("tr","settings_desc","action",n),A=fe("td","settings_desc","action",n+"dt"),h=fe("td","settings_desc","action",n+"dd");A.textContent=xt("Action"),h.textContent=xt("Global_settings_import"),u.appendChild(A),u.appendChild(h),d.appendChild(u),
u=fe("tr","settings_desc","warning",n),A=fe("td","settings_desc","warning",n+"dt"),h=fe("td","settings_desc","warning",n+"dd");let p='<i class="far fa-'+Ds.get("critical")+'"></i>&nbsp;';e||(A.innerHTML=p,p=""),h.innerHTML=p+Gs.safeTagsReplace(xt("This_will_overwrite_your_global_settings_")),u.appendChild(A),u.appendChild(h),d.appendChild(u),o.appendChild(d),s.appendChild(o),r.appendChild(s);const m=fe("div","section","settings_src");m.appendChild(r),i.appendChild(m)})({content:t,
checkbox:"settings",key:"global_settings"}),n.appendChild(t)}const r=i.storage_ids||[],o=i.externals_ids||[];i.scripts&&Object.keys(i.scripts).forEach((e=>{const t=i.scripts[e],s=fe("div","viewer_upper",e);m({content:s,preparat:t,checkbox:"import",storage:r.includes(e),externals:o.includes(e),key:e},!0),n.appendChild(s)}))})(l(),a.preparat)}:"permission"==a.type?c=()=>{((e,n)=>{
const i=fe("div","viewer_last","ok"),r=fe("div","viewer_content","ok_content"),o=fe("div","ask_action_buttons","ok_buttons");A(o,"permission",[{label:xt("Ok"),fn:()=>{let{permissions:e,origins:i}=n;const r={permissions:e,origins:i};ut.request(r,(e=>{let n;at.lastError&&(n=at.lastError.message,console.warn("notify: error on getting permission",r,"reason:",n)),((e,n,i)=>{s(t.aid,"permission",{data:{granted:e,permissions:n.permissions,origins:n.origins,error:i}})})(e,r,n)}))},focus:!0},{
label:xt("Cancel"),fn:_,keyDown:27}]),r.appendChild(o),i.appendChild(r);const a="permission",l=fe("div","viewer_upper",a),c=fe("div","viewer_info viewer_info_wide","general",a),d=fe("div","viewer_content","general_content",a),u=me("h3","install","heading",a),h=me("span","install","heading_span",a),p=fe("span","message","heading",a);document.title=h.textContent=n.title,p.innerHTML=Gs.safeTagsReplace(n.message).replace(/\n/g,"<br>"),u.appendChild(h),d.appendChild(p),c.appendChild(u),
c.appendChild(d),l.appendChild(c);const f=fe("div","section","perm_src",a);f.appendChild(l),f.appendChild(i),e.appendChild(f)})(l(),a.preparat)}:"connect"==a.type&&(c=()=>{((e,n)=>{const i=Date.now();let r,o;n.timeout&&(r=window.setTimeout((()=>{_(),l()}),n.timeout));const a=()=>It("input[data-btn-id]")[0],l=()=>{let e;o&&window.clearInterval(o),r&&window.clearTimeout(r),o=r=null,(e=a())&&e.parentNode.removeChild(e)
},c=fe("div","viewer_last","ok"),d=fe("div","viewer_content","ok_content"),u=fe("div","ask_action_buttons","ok_buttons"),h=fe("div","ask_action_buttons","ok_buttons"),p=fe("div","ask_action_buttons","ok_buttons"),f="connect";A(u,"connect",[{label:xt("Allow_once"),icon:"button_ok",fn:function(){return s(t.aid,"connect",{data:{ok:!0,allow:!0,once:!0}})},focus:!0},{label:xt("Temporarily_allow"),icon:"clock",fn:function(){return s(t.aid,"connect",{data:{ok:!0,allow:!0,temporary:!0}})}},{
label:n.hostname!=n.domain?xt("Always_allow"):xt("Always_allow_domain"),icon:"yes_domain",fn:function(){return s(t.aid,"connect",{data:{ok:!0,allow:!0}})}},n.domain&&n.hostname!=n.domain?{label:xt("Always_allow_domain"),icon:"yes_domain",fn:function(){return s(t.aid,"connect",{data:{ok:!0,allow:!0,whole_domain:!0}})}}:null,n.all_domains?{label:xt("Always_allow_all_domains"),icon:"critical",fn:function(){if(l(),
window.confirm(xt("This_gives_this_script_the_permission_to_retrieve_and_send_data_from_and_to_every_webpage__This_is_potentially_unsafe__Are_you_sure_you_want_to_continue_")))return s(t.aid,"connect",{data:{ok:!0,allow:!0,all_domains:!0}})}}:null].filter((e=>e))),A(h,"connect",[{label:xt("Forbid_once"),icon:"cancel",fn:function(){return s(t.aid,"connect",{data:{ok:!0,deny:!0,once:!0}})},keyDown:27},{label:n.hostname!=n.domain?xt("Always_forbid"):xt("Always_forbid_domain"),icon:"no_domain",
fn:function(){return s(t.aid,"connect",{data:{ok:!0,deny:!0}})}},n.domain&&n.hostname!=n.domain?{label:xt("Always_forbid_domain"),icon:"no",fn:function(){return s(t.aid,"connect",{data:{ok:!0,deny:!0,whole_domain:!0}})}}:null,{label:xt("Dont_ask_again"),icon:"no",fn:function(){return s(t.aid,"connect",{data:{ok:!0,deny:!0,all_domains:!0}})}}].filter((e=>e))),A(p,"connect_misc",[n.tabid?{label:xt("Focus_tab"),icon:"windowlist",fn:function(){((e,t)=>{try{sendMessage({method:"buttonPress",
name:"focus_tab",...t},(()=>{}))}catch(e){console.log("button: "+e.message)}})(0,{tabid:n.tabid})}}:null,(()=>{if(n.timeout)return o=window.setInterval((()=>{let e;(e=a())&&It(e).attr("value",xt("Skip_timeout__0seconds0_seconds_",Math.round((n.timeout+i-Date.now())/1e3)))}),1e3),{label:xt("Skip_timeout__0seconds0_seconds_",Math.round(n.timeout/1e3)),id:"skip_timeout_button",fn:l}})()].filter((e=>e)))
;const m=fe("div","viewer_upper",f),g=fe("div","viewer_info viewer_info_wide","general",f),b=fe("div","viewer_content","general_content",f),v=me("h3","install","heading",f),w=me("span","install","heading_span",f),y=fe("span","message","heading",f);if(n.script.icon){const e=me("img","version","heading",f);e.src=n.script.icon,w.appendChild(e)}document.title=w.textContent=xt("A_userscript_wants_to_access_a_cross_origin_resource_")
;const k=fe("div","ask_action_buttons message","help",f),R=me("div","help",f)
;let x=xt("A_request_to_a_cross_origin_resource_is_nothing_unusual__You_just_have_to_check_whether_this_script_has_a_good_reason_to_access_this_domain__For_example_there_are_only_a_very_few_reasons_for_a_userscript_to_contact_your_bank__Please_note_that_userscript_authors_can_avoid_this_dialog_by_adding_@connect_tags_to_their_scripts__You_can_change_your_opinion_at_any_time_at_the_scripts_settings_tab_",n.connect_url,n.settings_url)
;x=Gs.safeTagsReplace(x).replace(/\[url=([^\]]+)\](.*)\[\/url\]/g,'<a target="_blank" href="$1">$2 &#x2B00;</a>').replace(/\n/g,"<br>"),R.innerHTML=x+"<br><br>",k.appendChild(R),v.appendChild(w),d.appendChild([p,k,u,h]),c.appendChild(d);const C=fe("table","script_desc",f);[{prop:"name",label:xt("Name")},{prop:"src_url",label:xt("Tab_URL")},n.domain?{prop:"hostname",label:xt("Destination_domain")}:null,{prop:"url",label:xt("Destination_URL")}].forEach((e=>{if(!e)return
;const t=n[e.prop]||n.script[e.prop]||e.value,i=fe("tr","script_desc",e.prop,f),r=fe("td","script_desc",e.prop,f+"dt"),s=fe("td","script_desc",e.prop,f+"dd");r.textContent=e.label?e.label:"",s.textContent=t||xt("_not_set_"),i.appendChild(r),i.appendChild(s),C.appendChild(i)})),y.appendChild(C),b.appendChild(y),g.appendChild(v),g.appendChild(b),m.appendChild(g);const E=fe("div","section","connect_src",f);E.appendChild(m),E.appendChild(c),e.appendChild(E)})(l(),a.preparat)}),
r=window.setInterval(o,3e3),c&&window.setTimeout((()=>{var e,t;c(),(e=a.preparat)&&(t=e.hints)&&t.length&&t.forEach((e=>{e.globalhint&&Gs.createGobalHint(e.options,It("body > div.status")[0])}))}),1))})).fail((()=>{_()})),jt.wait(xt("Please_wait___"))):_()):window.onhashchange=()=>{b()}},v=()=>{const e=ot.connect("hints");e.onMessage.addListener((e=>{"options"in e&&(n=e.options)})),e.postMessage({method:"hints"}),e.onDisconnect.addListener((()=>{window.setTimeout((()=>v()),1)}))};v(),b()}))})()
},fail:()=>{window.confirm(xt("An_internal_error_occured_Do_you_want_to_visit_the_forum_"))&&(window.location.href="https://www.tampermonkey.net/bug")}})):0===window.location.pathname.indexOf("/userscript")&&(()=>{const e=he(!0);e.id&&(window.location.href=ot.getURL("options.html")+"#nav="+e.id+"+editor")})()})()})()})();