@applitools/nlp-web-runner 5.6.1 → 5.8.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/_inline/_chunks/rolldown-runtime-D7D4PA-g.js +1 -1
- package/dist/_inline/assets/{extract-ax-tree-DYEbctJp.js → extract-ax-tree-C1W4XHTq.js} +1 -1
- package/dist/_inline/assets/{extract-pdf-ax-tree-CxF87TEH.js → extract-pdf-ax-tree-DI_Yi3DA.js} +1 -1
- package/dist/_inline/assets/{recorder-BLcQX8wr.js → recorder-MSk-R6yL.js} +1 -1
- package/dist/_inline/assets/wipe-origin-storage-CF1Vf2FY.js +4 -0
- package/dist/_inline/nlp-runner/web/index.d.ts +77 -46
- package/dist/_inline/nlp-runner/web/index.js +1 -1
- package/package.json +1 -1
|
@@ -1 +1 @@
|
|
|
1
|
-
const O=n;(function(c,P){const C=n,h=c();while(!![]){try{const t=-parseInt(C(0x79c))/0x1+parseInt(C(0x42e))/0x2*(-parseInt(C(0x1a9))/0x3)+parseInt(C(0x6b0))/0x4+-parseInt(C(0x2ef))/0x5*(parseInt(C(0x10b))/0x6)+-parseInt(C(0x641))/0x7+parseInt(C(0x147))/0x8*(parseInt(C(0x650))/0x9)+parseInt(C(0x6b5))/0xa;if(t===P)break;else h['push'](h['shift']());}catch(I){h['push'](h['shift']());}}}(f,0x52257));import{t as H}from'../../_chunks/rolldown-runtime-D7D4PA-g.js';import{debuglog,inspect,styleText}from'node:util';import{basename}from'node:path';import{once,setMaxListeners}from'node:events';import{colornames}from'color-name-list/short';import o from'parse-color';import{differenceHyab,nearest,parse,rgb}from'culori';import{readFileSync}from'node:fs';import{execFileSync}from'node:child_process';import{Agent,Request,Socks5ProxyAgent,WebSocket,buildConnector,fetch as W}from'undici';import{Buffer as v}from'node:buffer';import{Readable}from'node:stream';import{buffer}from'node:stream/consumers';import{setImmediate,setTimeout as w}from'node:timers/promises';import{nextTick}from'node:process';import{harFromMessages}from'chrome-har';import{XMLBuilder,XMLParser,XMLValidator}from'fast-xml-parser';import{readFile}from'node:fs/promises';const log$1=debuglog('nlp:parse');var Cursor=class Cursor{[O(0x532)];[O(0xf8)]=0x0;[O(0x7c7)]=new Context();[O(0x71a)]=new Collections();[O(0x2c9)]={'rest':[Nothing$1]};[O(0x440)]={'endPos':void 0x0,'farthestPos':0x0,'matchingRest':![],'matchingStrong':![],'skips':[],'separators':[],'options':{}};get['options'](){const f0=O;return this['shared'][f0(0x336)];}get[O(0x60d)](){const f1=O;return this['shared'][f1(0x60d)];}constructor(c,P){const f2=O;this[f2(0x532)]=c,this[f2(0x440)][f2(0x336)]=P??{};}[O(0x2d9)]({deep:c}={}){const f3=O,P=new Cursor(this[f3(0x532)]);return P[f3(0xf8)]=this[f3(0xf8)],P[f3(0x7c7)]=this['context'][f3(0x2d9)](),P['collections']=this[f3(0x71a)][f3(0x2d9)]({'deep':c}),P[f3(0x2c9)]={...this['tokens']},P[f3(0x440)]=this[f3(0x440)],P;}[O(0x1f6)](c){const f4=O;if(c===void 0x0||c<0x0)this[f4(0x440)][f4(0x822)]=void 0x0;else this[f4(0x440)][f4(0x822)]=Math[f4(0xca)](c,this[f4(0x440)][f4(0x822)]??this[f4(0x532)][f4(0x67b)]);}[O(0x26d)](c){const f5=O,P=this[f5(0x2d9)]();P[f5(0xf8)]+=c;if(P['pos']>P[f5(0x440)][f5(0x60d)])P[f5(0x440)][f5(0x60d)]=P['pos'];return P;}['rest'](c){const f6=O;if(c){const P=this[f6(0x2d9)]();return P[f6(0x2c9)]['rest']=c,P;}else{if(!this['shared'][f6(0x599)]){this[f6(0x440)][f6(0x599)]=!![];const h=All(...this[f6(0x2c9)][f6(0x416)])(this);return this[f6(0x440)][f6(0x599)]=![],h;}else return this;}}[O(0x369)](){const f7=O,c=this['shared'][f7(0x11d)]['at'](-0x1);if(!c)return!![];return c[f7(0xd5)]=this[f7(0xf8)],c[f7(0x63b)](this[f7(0x532)]);}[O(0x470)](c){const f8=O;return this[f8(0x440)]['separators'][f8(0x3a6)](c&&new RegExp(c[f8(0x35b)],c[f8(0x243)]['includes']('y')?c[f8(0x243)]:c[f8(0x243)]+'y')),this;}['unseparate'](){const f9=O;this[f9(0x440)]['separators']['pop']();}[O(0x58a)](c){const ff=O;if(c!==void 0x0){const P=c?.(this)??this;return P[ff(0x440)][ff(0x235)][ff(0x3a6)](c),P;}else return this[ff(0x440)][ff(0x235)]['at'](-0x1)?.(this)??this;}[O(0x710)](){const fb=O;this[fb(0x440)][fb(0x235)][fb(0x6f8)]();}[O(0x758)](c){const fn=O;if(log$1[fn(0x70c)])log$1((this['shared'][fn(0x599)]?fn(0x774):'')+fn(0x5d0)+styleText(fn(0x7d8),c[fn(0x349)]())+fn(0x4f0)+styleText([fn(0x23c),fn(0x18f)],this[fn(0x532)][fn(0xe4)](0x0,this['pos']))+this[fn(0x532)][fn(0xe4)](this[fn(0xf8)])+']');return this;}[O(0x198)](c){const fH=O;if(log$1['enabled'])log$1((this[fH(0x440)][fH(0x599)]?fH(0x774):'')+'NOT\x20MATCHED\x20'+styleText(fH(0x4a7),c[fH(0x349)]())+'\x20['+styleText([fH(0x23c),'underline'],this['text'][fH(0xe4)](0x0,this[fH(0xf8)]))+this[fH(0x532)][fH(0xe4)](this[fH(0xf8)])+']');return this;}},Context=class Context{['data']=new Map();[O(0x3cc)]=new Set();['mutatedKeys']=new Set();get[O(0x4e0)](){const fo=O;return this[fo(0x3cc)][fo(0x5a4)]>0x0;}get[O(0x271)](){const fW=O;return this[fW(0x1aa)][fW(0x5a4)]>0x0;}constructor(){return new Proxy(this,{'has'(c,P){const fv=n;return c['data']['has'](P)||Reflect[fv(0x5ab)](c,P);},'get'(c,P){const fw=n;if(c[fw(0x3fd)][fw(0x5ab)](P))return c[fw(0x3cc)]['add'](P),c[fw(0x3fd)][fw(0x67a)](P);else return Reflect[fw(0x67a)](c,P);},'set'(c,P,h){const fc=n;return c[fc(0x1aa)][fc(0x22d)](P),c[fc(0x3fd)][fc(0x4c1)](P,h),!![];},'deleteProperty'(c,P){const fP=n;return c[fP(0x1aa)][fP(0x22d)](P),c['data'][fP(0x4a5)](P);},'ownKeys'(c){const fh=n;return Array['from'](c[fh(0x3fd)]['keys']());}});}['has'](c){const ft=O;return this[ft(0x3fd)][ft(0x5ab)](c);}['refresh'](){const fI=O;this[fI(0x3fd)]['forEach']((c,P)=>{const fK=fI;if(!this[fK(0x3cc)][fK(0x5ab)](P)&&!this['mutatedKeys'][fK(0x5ab)](P))this[fK(0x3fd)][fK(0x4a5)](P);}),this['accessedKeys'][fI(0x769)](),this[fI(0x1aa)][fI(0x769)]();}[O(0x2d9)](){const fj=O,c=new Context();return this[fj(0x3fd)][fj(0x7fe)]((P,h)=>c[fj(0x3fd)]['set'](h,P)),this[fj(0x3cc)][fj(0x7fe)](P=>c['accessedKeys'][fj(0x22d)](P)),this[fj(0x1aa)]['forEach'](P=>c[fj(0x1aa)][fj(0x22d)](P)),c;}},Collections=class Collections{[O(0x71a)]=new Map();constructor(){return new Proxy(this,{'has'(c,P){const fz=n;return c[fz(0x71a)][fz(0x5ab)](P)||Reflect[fz(0x5ab)](c,P);},'get'(c,P){const fR=n;if(c[fR(0x71a)][fR(0x5ab)](P))return c[fR(0x71a)][fR(0x67a)](P);else{if(Reflect[fR(0x5ab)](c,P))return Reflect[fR(0x67a)](c,P);else{const h=new Collection();return c[fR(0x71a)][fR(0x4c1)](P,h),h;}}},'set'(c,P,h){const fG=n;return c[fG(0x71a)][fG(0x4c1)](P,h),!![];},'deleteProperty'(c,P){const fp=n;return c['collections'][fp(0x4a5)](P);}});}[O(0x342)](){const fg=O;return this[fg(0x71a)][fg(0x342)]();}[O(0x504)](c){const fZ=O;return this[fZ(0x71a)][fZ(0x5a4)]===c['collections']['size']&&Array[fZ(0x37c)](this[fZ(0x71a)][fZ(0xde)]())[fZ(0x24b)](([P,h])=>c['collections'][fZ(0x5ab)](P)&&h[fZ(0x504)](c[fZ(0x71a)]['get'](P)));}[O(0x2d9)]({deep:c}={}){const fQ=O,P=new Collections();return this[fQ(0x71a)][fQ(0x7fe)]((h,t)=>P[fQ(0x71a)]['set'](t,h['clone']({'deep':c}))),P;}},Collection=class Collection{[O(0x3fd)]=[];[O(0x67b)]=0x0;['at'](c,P){const fk=O;if(arguments[fk(0x67b)]===0x1)return this['data'][fk(0x1b6)](0x0,this[fk(0x67b)])['at'](c);else return this[fk(0x3fd)][c]=P;}[O(0x5c0)](c){const fa=O;for(let P=0x0;P<this[fa(0x67b)];++P)if(c(this[fa(0x3fd)][P]))return this[fa(0x3fd)][P];}[O(0x5d9)](c){const fN=O;for(let P=this[fN(0x67b)]-0x1;P>=0x0;--P)if(c(this['data'][P]))return this[fN(0x3fd)][P];}['delete'](c){const fT=O;if(c>=this[fT(0x67b)])return;this[fT(0x3fd)][fT(0x4e4)](c,0x1),--this[fT(0x67b)];}[O(0x3a6)](...c){const fS=O;for(const P of c)this[fS(0x3fd)][this['length']++]=P;return this[fS(0x67b)];}[O(0x6f8)](){const fV=O;if(this[fV(0x67b)]>0x0)return this[fV(0x3fd)][--this['length']];}[O(0x1b6)](c,P){const fD=O;return this[fD(0x3fd)][fD(0x1b6)](0x0,this['length'])[fD(0x1b6)](c,P);}[O(0x504)](c){const fm=O;return this[fm(0x67b)]===c[fm(0x67b)]&&this[fm(0x3fd)]===c['data'];}['clone']({deep:c}={}){const fr=O,P=new Collection();return P[fr(0x3fd)]=c?[...this[fr(0x3fd)]]:this[fr(0x3fd)],P[fr(0x67b)]=this['length'],P;}};function Use(c){const fF=O;if(typeof c===fF(0x3e7))return c;if(c instanceof RegExp)return RegExpToken(c);if(typeof c===fF(0x4ae))return StringToken(c);throw new Error(fF(0x4e7));}function RegExpToken(c){const fE=O;return c=new RegExp(c[fE(0x35b)],c[fE(0x243)]['includes']('y')?c[fE(0x243)]:c[fE(0x243)]+'y'),P=>{const fe=fE;c[fe(0xd5)]=P[fe(0xf8)];const h=P[fe(0x440)]['endPos']?P[fe(0x532)][fe(0xe4)](0x0,P[fe(0x440)][fe(0x822)]):P['text'],t=c['exec'](h);if(t){const I=P[fe(0x26d)](t[0x0][fe(0x67b)]);if(I['separated']()){for(let K=0x1;K<t[fe(0x67b)];++K)I['collections']['results'][fe(0x3a6)](t[K]);return I[fe(0x758)](c);}}return P[fe(0x198)](c);};}function StringToken(c){return P=>{const fX=n;if(!(P[fX(0x440)][fX(0x822)]?P[fX(0x532)][fX(0xe4)](0x0,P[fX(0x440)][fX(0x822)]):P[fX(0x532)])[fX(0x553)](c,P[fX(0xf8)]))return P[fX(0x198)](c);return P['move'](c[fX(0x67b)])[fX(0x758)](c);};}const Never=c=>c,Nothing$1=c=>{const fi=O;if(c instanceof Cursor)return c[fi(0x2d9)]();else{const P=c;return h=>{const fL=fi,t=h[fL(0x2d9)]();return t[fL(0x71a)]['results']['push'](P),t;};}},Anything$1=Customizable(({threshold:threshold=0xa}={})=>{return c=>{const fA=n;let P=c['clone']();while(!![]){const h=P[fA(0x416)]();if(h!==P&&(h[fA(0xf8)]>=P[fA(0x532)][fA(0x67b)]||h[fA(0xf8)]-P[fA(0xf8)]>=threshold))break;P=P[fA(0x26d)](0x1);if(P[fA(0xf8)]===P[fA(0x532)][fA(0x67b)])break;}return P[fA(0x71a)][fA(0x691)][fA(0x3a6)](P['text'][fA(0xe4)](c['pos'],P[fA(0xf8)])),P;};}),Rest=c=>c[O(0x416)]();function Recursive(c){return P({'depth':0x0});function P({depth:h}){return c(Lazy(()=>P({'depth':++h})),{'depth':h});}}function Lazy(c){let P;return h=>{return P??=Use(c()),P(h);};}function Customizable(c,P){let h;if(P)h=c;else P=c;let t;return I=>{if(I instanceof Cursor)return t??=Use(P()),t(I);else return Customizable(K=>{return P(h?.(I??{},K??{})??K??I);});};}function Separate(c,P){const h=Use(P);return t=>{const fY=n,I=t[fY(0x470)](c),K=h(I);I[fY(0x276)]();if(K===I)return t;return K;};}function Joinable(c){const P=Use(c);return h=>{const fU=n,t=h['separate'](null),I=P(t);t[fU(0x276)]();if(I===t)return h;return I;};}function Skip$1(c,P){const h=Use(P),t=Raw(c);return I=>{const fs=n,K=I[fs(0x416)]([Skip$1(I[fs(0x440)][fs(0x235)]['at'](-0x1)??Never,All(...I[fs(0x2c9)]['rest']))])[fs(0x58a)](t),j=h(K);K[fs(0x710)]();if(j===K)return I;return j;};}function Raw(c){const P=Use(c);return h=>{const fx=n,t=h[fx(0x470)](null)[fx(0x58a)](null),I=P(t);t[fx(0x710)](),t['unseparate']();if(I===t)return h;return I;};}function Lookahead(c){const P=Use(c);return h=>{const fB=n,t=h;if(P(t)===t)return h;return h[fB(0x2d9)]();};}function Not(c){const P=Use(c);return h=>{const fu=n,t=h;if(P(t)!==t)return h;return h[fu(0x2d9)]();};}function Dynamic(c){return P=>{return Use(c(P))(P);};}function Optional(c){const P=Use(c);return h=>{const t=h,I=P(t);if(I===t)return h['clone']();return I;};}function Weak(c){const fd=O;return PreCondition(P=>!P['shared']['matchingStrong'],Any(Lookahead(PostCondition(Strong(Rest),(P,h)=>h[fd(0xf8)]===h[fd(0x532)]['length'])),Use(c)));}function Strong(c){const P=Use(c);return h=>{const fM=n;h[fM(0x440)][fM(0x81f)]=!![];const t=P(h);return h[fM(0x440)]['matchingStrong']=![],t;};}function Any(...c){const P=c['map'](Use);return h=>{for(const t of P){const I=h,K=t(I);if(K!==I)return K;}return h;};}function Longest(...c){const fq=O,P=c[fq(0x205)](Use);return h=>{const fJ=fq;return P[fJ(0x472)]((t,I)=>{const fy=fJ,K=h['clone']({'deep':!![]}),j=I(K);if(j!==K&&j[fy(0xf8)]>t[fy(0xf8)])return j;return t;},h);};}function All(...c){const fl=O,P=c[fl(0x205)](Use);return h=>{const fC=fl;let t=h;for(let I=0x0;I<P[fC(0x67b)];++I){const K=P[I];t=t[fC(0x416)]([...P[fC(0x1b6)](I+0x1),...h[fC(0x2c9)]['rest']]);const j=I>0x0?t['skip']():t,z=K(j);if(z===j)return h;if(z[fC(0xf8)]!==j['pos']||!z[fC(0x71a)][fC(0x504)](j[fC(0x71a)])||z[fC(0xf8)]===h[fC(0x532)][fC(0x67b)])t=z;}return t;};}function Plus(c){const P=Use(c);return h=>{const fO=n;let t=h;while(!![]){const I=t[fO(0x58a)]()[fO(0x416)]([Star(P),...h[fO(0x2c9)]['rest']]),K=P(I);if(K===I)return t;if(K[fO(0xf8)]===I[fO(0xf8)]&&K[fO(0x71a)]['equals'](I[fO(0x71a)]))return t;t=K;}};}function Star(c){return Optional(Plus(c));}function PreCondition(c,P){const h=Use(P);return t=>{const I=t;return c(I)?h(I):t;};}function PostCondition(c,P){const h=Use(c);return t=>{const b0=n,I=t,K=h(I);if(K===I)return t;if(!P(K[b0(0x71a)]['results']['slice'](I[b0(0x71a)][b0(0x691)][b0(0x67b)]),K,I))return t;return K;};}function As$1(c,P){const h=Use(c);return t=>{const b1=n,I=t,K=h(I);if(K===I)return t;I[b1(0x1f6)](K[b1(0xf8)]);const j=Use(P)(I);I['limit'](void 0x0);if(j===I)return t;return j;};}function Effect(c,P){const h=Use(c);return t=>{const b2=n,I=t,K=h(I);if(K===I)return t;return P(K[b2(0x71a)][b2(0x691)]['slice'](I[b2(0x71a)]['results'][b2(0x67b)]),K,I),K;};}function Node(c,P){const h=Use(c);return t=>{const b3=n,I=t,K=h(I);if(K===I)return t;const j=P(K[b3(0x71a)][b3(0x691)][b3(0x1b6)](I[b3(0x71a)]['results'][b3(0x67b)]),K,I);return K[b3(0x71a)]['results']['length']=I['collections'][b3(0x691)]['length'],K[b3(0x71a)][b3(0x691)][b3(0x3a6)](j),K;};}function Text$2(c){const b4=O;return Node(c,(P,h,t)=>h['text'][b4(0xe4)](t['pos'],h['pos']));}function Void(c){const P=Use(c);return h=>{const b5=n,t=h,I=P(t);if(I===t)return h;return I['collections']['results'][b5(0x67b)]=t[b5(0x71a)][b5(0x691)][b5(0x67b)],I;};}function State(c,P){const h=[];return P?t(P({'Mutate':K,'state':z,'mutate':j})):{'Provide':I,'Apply':t,'Mutate':K,'state':z,'mutate':j};function t(R){return I(Node(R,(G,p)=>z(p)));}function I(R){const G=Use(R);return p=>{const b6=n,Z=p,Q=Z[b6(0x71a)][b6(0x28c)][b6(0x3a6)]({'init':c,'mutators':[]})-0x1;h[b6(0x3a6)](Q);const k=G(Z);h['pop'](),Z['collections']['states']['delete'](Q);if(k===Z)return p;return k[b6(0x71a)][b6(0x28c)][b6(0x4a5)](Q),k;};}function K(R,G){return Effect(R,(p,Z)=>j(Z,Q=>G(Q,p)));}function j(R,G){const b7=n;if(h[b7(0x67b)]<=0x0)throw new Error(b7(0x12a));const p=h['at'](-0x1);R[b7(0x71a)][b7(0x28c)]=R['collections'][b7(0x28c)][b7(0x2d9)]({'deep':!![]});const Z=R[b7(0x71a)][b7(0x28c)]['at'](p);R[b7(0x71a)][b7(0x28c)]['at'](p,{'init':Z['init'],'mutators':[...Z[b7(0x82c)],G]});}function z(R){const b8=n;if(h[b8(0x67b)]<=0x0)throw new Error(b8(0x821));const G=h['at'](-0x1),{init:p,mutators:Z}=R[b8(0x71a)]['states']['at'](G),Q=structuredClone(p);return Z[b8(0x7fe)](k=>k(Q)),Q;}}function makeParse(c){return(P,h)=>{const b9=n;if(typeof P!=='string')throw new Error(b9(0x149));log$1(styleText(b9(0x675),b9(0x5c9))+b9(0xc8)+P);const t=new Cursor(P,h),I=c(t);log$1(styleText(b9(0x675),'done\x20parsing')+b9(0xc8)+P);if(t===I||I[b9(0xf8)]<P['length'])I[b9(0x71a)]['errors']['push']({'type':b9(0x684),'pos':I[b9(0x60d)],'text':P['slice'](I[b9(0x60d)])});return Object[b9(0x3fa)](Array[b9(0x37c)](I['collections'][b9(0x342)]())[b9(0x205)](K=>[K,I[b9(0x71a)][K][b9(0x1b6)]()]));};}function test(c,P,h){const bf=O;if(typeof P!==bf(0x4ae))return![];const t=new Cursor(P,h),I=Use(c)(t);return t!==I&&I['pos']>=P[bf(0x67b)];}function startsWith$2(c,P,h){const bb=O;if(typeof P!==bb(0x4ae))return![];const t=new Cursor(P,h),I=Use(c)(t);return t!==I&&I[bb(0xf8)]>0x0;}function search(c,P,h){const bn=O;if(typeof P!==bn(0x4ae))return null;const t=new Cursor(P,h),I=Use(c);for(let K=0x0;K<P['length'];++K){const j=t['move'](K),z=I(j);if(z!==j&&z[bn(0xf8)]>j['pos'])return{'text':P[bn(0xe4)](K,z[bn(0xf8)]),'pos':K};}return null;}const Article=c=>All(Optional(/the|an|a/i),c),Possessive=(c,{strict:P}={})=>Any(All(Raw(c),/'s?/),P?Never:c),InstructionTerminator=/[.;\s]*$/,ActionSeparator=/(?:(?:(?:,\s*)?(?:(?:and\s+)?(?:then|after)|and))|,)/i,ActionModifierSeparator=/[:,-]/,BlockSeparator=/[,;]/,AndListSeparator=/(?:,\s*)?and|,/i,OrListSeparator=/(?:,\s*)?(?:or|and)|,/i,The=/the(?:\s+the)?/i,IndefiniteArticle=/an|a/i,For=/for/i,Until=/until/i,To=/to/i,From=/from/i,Of=/of/i,By=/by/i,With=/with/i,Without=/without/i,As=/as/i,LocationPreposition=/into|within|inside|in|on|at/i,FunctionalPreposition=/as|under/i,RelationalPreposition=/from|in|at|as|below|under/i,EquivalencePreposition=/as|to/i,TemporalPreposition=/before|after|for/i,AssignmentPreposition=/with|as|to|in/i,StoragePreposition=/to|in|as|under/i,AssociationPreposition=/with|of/i,ConditionPreposition=/in|on|under/i,Only=/only/i,Last$1=/last/i,If$1=/if/i,And=/and/i,That=/that/i,While=/while/i,When=/when/i,Then$1=/then/i,NumberSign=/#|№/,Start=/Start/i,Bottom=/bottom/i,It=/it/i,Its=/its/i,Them=/them/i,This=/this/i,These=/these/i,Keyboard$1=/keyboard/i,KeyboardKey$1=All(Optional(Keyboard$1),/key|button/i),KeyboardKeys=All(Optional(Keyboard$1),/(?:key|button)s?/i),Character=/char(?:acter)?|symbol|letter/i,Characters=/(?:char(?:acter)?|symbol|letter)s?/i,Tab=/tab/i,Variables=/(?:var(?:iable)?|param(?:eter)?)s?/i,Parameters$1=/(?:arg(?:ument)?|var(?:iable)?|param(?:eter)?)s?/i,Value$5=/value|data|datum|content/i,Http=/https?|hyper\s*text\s+transfer\s+protocol/i,Pixels=/px|pixels?/i,Following=/following/i,Nothing=/nothing/i,Anything=/anything/i,Name$1=/name/i,Times$3=/times?/i,Evaluation=/eval(?:uation)?|exec(?:ution)?|step/i,Request$1=/request|req/,Result=/result/,Width=/width/,Height=/height/,Assertions=/(?:assert(?:ion)?|verification|validation|check(?:point)?)s?/i,CustomFlowTest=/test|custom[-\s]?flow(?:\s+test)?/i,TestStep=/(?:test[-\s])?step/i,TestSteps=/(?:test[-\s])?steps?/i,Browser$1=/(?:(?:web|internet)[-\s])?browser/i,BrowserTab=All(Possessive(Browser$1),/tab/i),BrowserToolbar=All(Possessive(Browser$1),Optional(/tool[-\s]?bar/i)),BrowserDialog=All(Optional(/native/),Optional(Possessive(Browser$1)),/dialog|alert|prompt/i),Website=/(?:web[-\s]?)?(?:site|page|document)/i,Websites=/(?:web[-\s]?)?(?:site|page|document)s?/i,Url$4=/url|(?:hyper)?link|domain|address/i,Title$2=/title/i,Endpoint$1=/endpoint|api|url|address/i,BasicAuth$1=/(?:basic\s+)?auth(?:orization)?/i,User=/user/i,HttpCookie=/(?:request\s+)?cookie/i,HttpHeader=/(?:request\s+)?header/i,HttpBody=/(?:request\s+)?body/i,HttpResponse=/(?:https?\s+)?(?:request\s+)?response/i,HttpStatusCode=/(?:request\s+)?status(?:\s+code)?/i,HttpStatusCodes=/(?:request\s+)?status(?:es|(?:\s+codes?))?/i,CSSPseudoClass=/styl(?:e|ing)|pseudo[-\s]?class/i,JavaScript=/js|java-?script/i,CodeSnippet=/(?:code\s+)?(?:snippet|expression|statement|line)|code/i,CollectionItems=/items?|elements?|entr(?:y|eis)/i,CollectionPairs=/pairs?|mappings?/i,CollectionKeys=/keys?/i,CollectionValues=/values?/i,Secret=/(?:(?:(?:(?:access|auth(?:entication)?)\s+)?(?:token|password|pwd|pass|security|pin)(?:\s*(?:key|code))?|secret(?:\s*(?:pin|key|code))?)|(?:access|auth(?:entication)?)\s+(?:key|code)|credit\s*card)/i,OTP$1=/(?:otp|one\s*-?\s*time\s*-?\s*password)(?:\s+(?:(?:pin\s*-?\s*)?code|password|key|digits|pin|(?:pass\s*-?\s*)?phrase|secret|passcode))?/i,File=/file|attachment/i,SelectboxOption=/(radio\s+)?(button|option|item|entry|value|text|element)/i,Popup=/(?:pop(?:-|\s*)(?:up|over)|dialog)(?:\s+(?:item))?/i,Tooltip=/(?:tool|info|help|context)\s*tip|help\s*tip|(?:info|hint|help|text)\s+bubble/i,Page=/page/i,WebPage=/(?:web[-\s]?)?(?:page|document)|window/i,PdfPage$1=/(?:document|pdf)\s+page/i,App$1=/app(?:lication)?/i,Viewport$1=/screen|viewport/i,Selector$1=/selector|locator/i,String$1=/text/i,Color$2=/colou?r/i,Date$1=/date/i,Time=/time/i,DateTime=/date(?:-|\s+and\s+|\s+)?time/i,Number$1=/amount|sum|total|number/i,Price$1=/price|cost|fee/i,Code=/id|code/i,Having=/with|holding|containing|including/i,Percentage$1=/percent(?:age)?/i,Text$1=/label|text|string/i,Link=/link/i,Heading=/heading/i,Menu=/menu/i,Hamburger=/(?:ham)?burger(?:\s+menu)?/i,MenuItem=/menu\s*(?:item|option|entry)/i,List$1=/list/i,ListItem=/list\s*(?:item|option|entry)/i,Header$4=/header/i,Footer=/footer/i,Card=/card|panel/i,Paragraph=/paragraph/i,Textbox=/box|text[-\s]?(?:box|area|field|input)|form(?:-|\s*)(?:field|input)|field|input(?:[-\s]?(?:field|box|area))?|edit[-\s]?(?:box|area)|bar/i,Searchbox=/search[-\s]?(?:box|bar)/i,Checkbox=/check[-\s]?box/i,CheckboxGroup=/check[-\s]?box\s*group/i,Radio=/radio/i,RadioGroup=/radio\s*group/i,ColorPicker=/colou?r(?:-|\s*)(?:picker|chooser|box|field|input)/i,DatePicker=/date(?:-|\s*)(?:picker|chooser|box|field|input)/i,TimePicker=/time(?:-|\s*)(?:picker|chooser|box|field|input)/i,DateTimePicker=/date(?:-|\s+and\s+|\s+)?time(?:-|\s*)(?:picker|chooser|box|field|input)/i,FilePicker=/file(?:-|\s*)(?:picker|chooser|box|field|input)/i,Inputbox=/input(?:-|\s+)?box/i,Selectbox=/select(?:-|\s+)?box/i,Valuebox=/value(?:-|\s+)?box/i,Combobox=/(?:drop[-\s]?down(?:\s+(?:menu|list))?|drop[-\s]?box|combo[-\s]?box)(?:\s+arrow)?/i,Listbox=/(?:list[-\s]?box)(?:\s+arrow)?/i,Option$1=/option/i,Form$1=/form/i,Image=/image|svg|picture|drawing|graphics?/i,Logo=/logo/i,Icon=/icon|svg|glyph/i,Button=/button|tab|(?:tool\s*bar|tool|bar)(?:\s+item)?/i,Slider=/slider/i,Ad=/advert(?:isement)?|ads?/i,Element$3=/element/i,Table=/table/i,Cell=/cell/i,Row=/row/i,Column=/column/i,Stub=/stub/i,Be=/be|is|are/i,Wait$1=/wait/i,Skip=/skip|ignore/i,Skipping=/skipping|ignoring/i,Run=/run|do|execute|perform/i,Running=/running|doing|executing|performing/i,Expect=/expect|accept|allow|permit/i,Expecting=/expecting|accepting|allowing|permitting/i,Using=/using/i,Holding=/holding|pressing|hitting/i,Activate=/activate|define|add/i,Cancel=/cancel|undefine|clear|reset/i,Dont=/do\s+not|don't/i,Optionally=/optionally|if\s+possible/i,Random=/random(?:ly)?/i,Relative=/relative/i,Current=/current/i,Each=/each|every|all|any/i,Named=/named|called|titled|(?:(?:with|of|that\s+has|showing)\s+(?:the\s+)?(?:name|title|text)?)/i,Maximum=/maximum|max|no\s+more\s+than|at\s+most|a\s+(?:max|maximum)\s+of|up\s+to/i,Inside=/within|inside(?:\s+of)?|on(?:top(?:\s+of)?)?|in|at|of/i,Near=/nearest|near|closest|close|next|adjacent/i,Background=/background/i,Foreground=/foreground/i,Back=/back/i,Forward=/forward/i,Previous=/prev(?:ious)?/i,Next=/next/i,Before=/before/i,After=/after/i,Prior=/before|prior(?:\s+to)?/i,Implicit=/implicit/i,Subsequent=/subsequent|remaining|next/i,Generated=/generated/i,New=/new/i,Zero=Use(/(zero)/i);Use(/(one)/i);const CardinalNumeralDigit=Use(/(one|two|three|four|five|six|seven|eight|nine)/i),CardinalNumeralTeen=Use(/(ten|eleven|twelve|thirteen|fourteen|fifteen|sixteen|seventeen|eighteen|nineteen)/i),CardinalNumeralTen=Use(/(twenty|thirty|forty|fifty|sixty|seventy|eighty|ninety)/i),OrdinalNumeralDigit=Use(/(first|second|third|fourth|fifth|sixth|seventh|eighth|ninth)/i),OrdinalNumeralTeen=Use(/(tenth|eleventh|twelfth|thirteenth|fourteenth|fifteenth|sixteenth|seventeenth|eighteenth|nineteenth)/i),OrdinalNumeralTen=Use(/(twentieth|thirtieth|fortieth|fiftieth|sixtieth|seventieth|eightieth|ninetieth)/i),DenominatorNumeralDigit=Use(/(firsts?|half|halves|thirds?|fourths?|quoters?|fifths?|sixths?|sevenths?|eighths?|ninths?)/i),DenominatorNumeralTeen=Use(/(tenths?|elevenths?|twelfths?|thirteenths?|fourteenths?|fifteenths?|sixteenths?|seventeenths?|eighteenths?|nineteenths?)/i),DenominatorNumeralTen=Use(/(twentieths?|thirtieths?|fortieths?|fiftieths?|sixtieths?|seventieths?|eightieths?|ninetieths?)/i),MultiplicativeNumeral=Use(/(single|double|triple|quadruple|quintuple|sextuple|septuple|octuple|nonuple|decuple)/i),FractionNumeral=Use(/(half|quoter)/i),IterativeNumeral=Use(/(once|twice|thrice)/i),SkipSpaces=c=>Skip$1(/\s+/,c),TokenBoundary=c=>Separate(/(?<!\w)|\b(?![-]|'\w)/,c),Sanitize$1=c=>TokenBoundary(SkipSpaces(c)),Mark=(c,{type:P,subtype:h,regexp:t,mutate:I})=>Effect(c,(K,j,z)=>{const bH=O,R=j[bH(0x532)][bH(0x1b6)](z[bH(0xf8)],j[bH(0xf8)]);if(R){let G;if(t){const p=R[bH(0x757)](t);if(p)G={'pos':z[bH(0xf8)]+p['index'],'text':p[0x0],'type':P};}else G={'pos':z[bH(0xf8)],'text':R,'type':P};if(G){if(h)G[bH(0x325)]=h;I?.(G,K,j,z),j[bH(0x71a)][bH(0x57b)][bH(0x3a6)](G);}}}),Fix=(c,P)=>Effect(Mark(c,{'type':O(0x145)}),(h,t,I)=>{const bo=O,K=t[bo(0x532)][bo(0x1b6)](I[bo(0xf8)],t['pos']);if(K)t[bo(0x71a)][bo(0x616)][bo(0x3a6)]({'pos':I[bo(0xf8)],'text':K,'fix':P(K,h)});}),Disambiguate=(c,P)=>Effect(Mark(c,{'type':'ambiguous'}),(h,t,I)=>{const bW=O,K=t[bW(0x532)][bW(0x1b6)](I[bW(0xf8)],t[bW(0xf8)]);if(K)t[bW(0x71a)][bW(0x3e1)][bW(0x3a6)]({'pos':I[bW(0xf8)],'text':K,'replacements':P(K,h)});}),Wrap=(c,P)=>{const {left:h,right:t}=typeof c==='object'&&!(c instanceof RegExp)?c:{'left':c,'right':c};return All(h,P,t);},DoubleQuoted$1=c=>Mark(Wrap('\x22',c),{'type':O(0x4ae),'subtype':'double\x20quoted'}),SingleQuoted$1=c=>Mark(Wrap('\x27',c),{'type':O(0x4ae),'subtype':O(0x33a)}),Quoted$1=c=>Any(DoubleQuoted$1(c),SingleQuoted$1(c)),Stringish=c=>Any(Quoted$1(c),Mark(c,{'type':O(0x4ae),'subtype':O(0x1dc)})),Index$1=c=>Node(c,([P])=>typeof P===O(0x73c)?P-0x1:P),List=(c,P)=>All(c,Star(All(P,c))),WeakList=(c,P)=>All(c,Star(Weak(All(P,c)))),Mask=()=>{const bw=O,{Provide:c,state:P,mutate:h}=State({'enabled':![],'markers':[]});function t(K,j=!![]){const bv=n,z=j?bv(0x47f):'empty';h(K,R=>R['enabled']=j),P(K)['markers'][bv(0x7fe)](R=>R[bv(0x345)]=z);}const I=K=>Mark(K,{'type':bw(0x776),'mutate':(j,z,R)=>{const bc=bw;if(P(R)[bc(0x70c)])j['type']='secret';h(R,G=>G[bc(0x57b)][bc(0x3a6)](j));}});return{'Masker':c,'Maskable':I,'mask':t};},HorizontalAbsolutePosition=Any(Node(/(?:very\s+)?left(?:\s*(?:-\s*)?most)?|start|beginning/i,()=>O(0x280)),Node(/(?:very\s+)?right(?:\s*(?:-\s*)?most)?|end/i,()=>O(0x760))),VerticalAbsolutePosition=Any(Node(/(?:very\s+)?top(?:\s*(?:-\s*)?most)?/i,()=>O(0x576)),Node(/(?:very\s+)?bottom(?:\s*(?:-\s*)?most)?/i,()=>O(0x525))),CenterAbsolutePosition=Node(/middle|center/i,()=>'center'),AbsolutePosition$1=Any(Node(All(Optional(The),HorizontalAbsolutePosition,Optional(All(And,VerticalAbsolutePosition))),([c,P])=>''+(P??'')+c),Node(All(Optional(The),VerticalAbsolutePosition,Optional(All(And,HorizontalAbsolutePosition))),([c,P])=>''+c+(P??'')),All(Optional(The),CenterAbsolutePosition)),HorizontalRelativePosition=Any(Node(/left/i,()=>O(0x4b0)),Node(/right/i,()=>'rightof')),VerticalRelativePosition=Any(Node(/above|over/i,()=>O(0xcc)),Node(/below|under/i,()=>O(0x4b3))),BeforeRelativePosition=Any(Node(Before,()=>O(0x251))),AfterRelativePosition=Any(Node(After,()=>'aboverightof')),RelativePosition=Any(Node(All(Optional(All(To,Optional(The))),HorizontalRelativePosition,Optional(All(And,Optional(All(To,Optional(The))),VerticalRelativePosition))),([c,P])=>''+(P??'')+c),Node(All(Optional(All(To,Optional(The))),VerticalRelativePosition,Optional(All(And,Optional(All(To,Optional(The))),HorizontalRelativePosition))),([c,P])=>''+c+(P??'')),BeforeRelativePosition,AfterRelativePosition),SequentialRelativePosition=c=>Any(Node(Any(All(Next,c),All(c,/that\s+(?:follows|comes\s+after)\s+(?:the\s+)?current/i)),([P])=>({'position':'next','object':P})),Node(Any(All(Previous,c),All(c,/that\s+comes\s+before\s+(?:the\s+)?current/i)),([P])=>({'position':O(0x49d),'object':P}))),BackspaceKey$1=Node(/backspace/i,()=>'Backspace'),DeleteKey$1=Node(/del(?:ete)?/i,()=>O(0x4cf)),ArrowKey$1=Any(Node(/up(?:\s+arrow)?|arrow\s+up/i,()=>O(0x124)),Node(/down(?:\s+arrow)?|arrow\s+down/i,()=>'ArrowDown'),Node(/left(?:\s+arrow)?|arrow\s+left/i,()=>O(0x709)),Node(/right(?:\s+arrow)?|arrow\s+right/i,()=>O(0x378))),ControlKey$1=Any(Node(/escape|esc/i,()=>O(0x154)),Node(/f1/i,()=>'F1'),Node(/f2/i,()=>'F2'),Node(/f3/i,()=>'F3'),Node(/f4/i,()=>'F4'),Node(/f5/i,()=>'F5'),Node(/f6/i,()=>'F6'),Node(/f7/i,()=>'F7'),Node(/f8/i,()=>'F8'),Node(/f9/i,()=>'F9'),Node(/f10/i,()=>O(0x49f)),Node(/f11/i,()=>'F11'),Node(/f12/i,()=>'F12'),Node(/caps(?:\s*lock)?/i,()=>O(0x17c)),Node(/tab/i,()=>O(0x651)),Node(/enter|return/i,()=>O(0x4cc)),Node(/(?:left\s+)?shift/i,()=>O(0x813)),Node(/right\s+shift/i,()=>O(0x71e)),Node(/(?:left\s+)?(?:control|ctrl)/i,()=>O(0x1a8)),Node(/right\s+(?:control|ctrl)/i,()=>O(0x79e)),Node(/(?:left\s+)?(?:meta|windows|command|cmd)/i,()=>O(0x183)),Node(/right\s+(?:meta|windows|command|cmd)/i,()=>'MetaRight'),Node(/(?:left\s+)?(?:alt|alternate|option)/i,()=>O(0x717)),Node(/right\s+(?:alt|alternate|option)/i,()=>'AltRight'),Node(/(?:alt|alternate)\s*gr(?:aph)/i,()=>O(0x406)),Node(/space/i,()=>O(0x625)),Node(/home/i,()=>O(0x50a)),Node(/end/i,()=>O(0x51b)),Node(/page\s*up|pgup/i,()=>'PageUp'),Node(/page\s*down|pgdn/i,()=>O(0x346)),Node(/ins(?:ert)?/i,()=>O(0x427)),BackspaceKey$1,DeleteKey$1),KeyboardKey=Any(ControlKey$1,ArrowKey$1,Any(Node(/\\|backslash/i,()=>O(0x619)),Node(/`(?!\S)|back\s*quote|back\s*tick/,()=>'Backquote'),Node(/1|one/i,()=>'Digit1'),Node(/2|two/i,()=>'Digit2'),Node(/3|thee/i,()=>O(0x6dc)),Node(/4|four/i,()=>O(0x172)),Node(/5|five/i,()=>O(0x326)),Node(/6|six/i,()=>O(0x690)),Node(/7|seven/i,()=>O(0xe1)),Node(/8|eight/i,()=>O(0x1e9)),Node(/9|nine/i,()=>O(0x79f)),Node(/0|zero/i,()=>O(0x34a)),Node(/-(?!\S)|minus/i,()=>O(0x108)),Node(/=(?!\S)|equal/i,()=>O(0x22e)),Node(/Q/i,()=>'KeyQ'),Node(/W/i,()=>O(0x6b6)),Node(/E/i,()=>'KeyE'),Node(/R/i,()=>O(0x5be)),Node(/T/i,()=>'KeyT'),Node(/Y/i,()=>O(0x5bb)),Node(/U/i,()=>'KeyU'),Node(/I/i,()=>'KeyI'),Node(/O/i,()=>O(0x15f)),Node(/P/i,()=>O(0x32e)),Node(/\[(?!\S)|(?:left|open(?:ing)?)\s+bracket/i,()=>O(0x3ff)),Node(/\](?!\S)|(?:right|clos(?:e|ing))\s+bracket/i,()=>O(0x42f)),Node(/A/i,()=>O(0x4f9)),Node(/S/i,()=>O(0x798)),Node(/D/i,()=>O(0x488)),Node(/F/i,()=>'KeyF'),Node(/G/i,()=>O(0x67d)),Node(/H/i,()=>O(0x357)),Node(/J/i,()=>'KeyJ'),Node(/K/i,()=>'KeyK'),Node(/L/i,()=>O(0x805)),Node(/;(?!\S)|semi(?:colon)?/i,()=>O(0xd0)),Node(/"(?!\S)|(?:double\s+)?quote/i,()=>O(0x277)),Node(/Z/i,()=>O(0x35c)),Node(/X/i,()=>O(0x282)),Node(/C/i,()=>O(0x62c)),Node(/V/i,()=>O(0x2b4)),Node(/B/i,()=>'KeyB'),Node(/N/i,()=>'KeyN'),Node(/M/i,()=>O(0x3b3)),Node(/,(?!\S)|comma/i,()=>O(0x265)),Node(/\.(?!\S)|period|dot/i,()=>'Period'),Node(/\/(?!\S)|slash/i,()=>O(0xff)))),InnerRelationalOffset=Any(Node(/half(?:\s*way)?/i,()=>0.5),Node(/entire|whole|full|all(?:\s+(?:the\s+)?way)?/i,()=>0x1)),Comment=Mark(Node(RegExpToken(/(?:\/\/|#)(.*)$/),([c])=>({'type':O(0xf6),'text':c[O(0x7b1)]()})),{'type':'comment'}),CARDINAL_NUMERALS={'one':0x1,'two':0x2,'three':0x3,'four':0x4,'five':0x5,'six':0x6,'seven':0x7,'eight':0x8,'nine':0x9,'ten':0xa,'eleven':0xb,'twelve':0xd,'fourteen':0xe,'fifteen':0xf,'sixteen':0x10,'seventeen':0x11,'eighteen':0x12,'nineteen':0x13,'twenty':0x14,'thirty':0x1e,'forty':0x28,'fifty':0x32,'sixty':0x3c,'seventy':0x46,'eighty':0x50,'ninety':0x5a};function cardinalNumeralToNumber(c){return CARDINAL_NUMERALS[c]??NaN;}const ORDINAL_NUMERALS={...CARDINAL_NUMERALS,'first':0x1,'second':0x2,'third':0x3,'fourth':0x4,'fifth':0x5,'sixth':0x6,'seventh':0x7,'eighth':0x8,'ninth':0x9,'tenth':0xa,'eleventh':0xb,'twelfth':0xc,'thirteenth':0xd,'fourteenth':0xe,'fifteenth':0xf,'sixteenth':0x10,'seventeenth':0x11,'eighteenth':0x12,'nineteenth':0x13,'twentieth':0x14,'thirtieth':0x1e,'fortieth':0x28,'fiftieth':0x32,'sixtieth':0x3c,'seventieth':0x46,'eightieth':0x50,'ninetieth':0x5a};function ordinalNumeralToNumber(c){return ORDINAL_NUMERALS[c]??NaN;}const DENOMINATOR_NUMERALS={...ORDINAL_NUMERALS,'firsts':0x1,'half':0x2,'halves':0x2,'thirds':0x3,'fourths':0x4,'quoter':0x4,'quoters':0x4,'fifths':0x5,'sixths':0x6,'sevenths':0x7,'eighths':0x8,'ninths':0x9,'tenths':0xa,'elevenths':0xb,'twelfths':0xc,'thirteenths':0xd,'fourteenths':0xe,'fifteenths':0xf,'sixteenths':0x10,'seventeenths':0x11,'eighteenths':0x12,'nineteenths':0x13,'twentieths':0x14,'thirtieths':0x1e,'fortieths':0x28,'fiftieths':0x32,'sixtieths':0x3c,'seventieths':0x46,'eightieths':0x50,'ninetieths':0x5a};function denominatorNumeralToNumber(c){return DENOMINATOR_NUMERALS[c]??NaN;}const ITERATIVE_NUMERALS={'once':0x1,'twice':0x2,'thrice':0x3};function iterativeNumeralToInteger(c){return ITERATIVE_NUMERALS[c]??NaN;}const MULTIPLICATIVE_NUMERALS={'single':0x1,'double':0x2,'triple':0x3,'quadruple':0x4,'quintuple':0x5,'sextuple':0x6,'septuple':0x7,'octuple':0x8,'nonuple':0x9,'decuple':0xa};function multiplicativeNumeralToInteger(c){return MULTIPLICATIVE_NUMERALS[c]??NaN;}const FRACTIONAL_NUMERALS={'quoter':0.25,'half':0.5};function fractionalNumeralToNumber(c){return FRACTIONAL_NUMERALS[c]??NaN;}function replace(c,P,h,t){const bP=O;return c[bP(0xe4)](0x0,P)+t+c[bP(0xe4)](P+h);}function normalizeString(c,P=/[]/){const bh=O;return c[bh(0x75c)](new RegExp(String[bh(0x7c3)]`\\([{\\nt]|${P[bh(0x35b)]})`,'g'),(h,t)=>{if(t==='n')return'\x0a';else{if(t==='t')return'\x09';}return t;});}function normalizeNumericString(c,P){const bt=O;if(P?.[bt(0x553)]('en'))return c[bt(0x75c)](',','');else return c['replaceAll']('.','')[bt(0x2d0)](',','.');}function mergeElementDescriptors(c,P){const bI=O,h={...c,...P};if(c[bI(0x345)]&&P[bI(0x345)]){h[bI(0x345)]=[...new Set([c[bI(0x345)]??[],P['type']??[]][bI(0xdb)]())];if(h[bI(0x345)][bI(0x67b)]===0x1)h[bI(0x345)]=h[bI(0x345)][0x0];}if(c['anchor']&&P[bI(0x718)])h[bI(0x718)]=[c[bI(0x718)]??[],P['anchor']??[]][bI(0xdb)]();if(c[bI(0x42d)]?.['type']&&P['hints']?.[bI(0x345)]){h[bI(0x42d)]['type']=[...new Set([c[bI(0x42d)][bI(0x345)]??[],P['hints']['type']??[]][bI(0xdb)]())];if(h[bI(0x42d)][bI(0x345)][bI(0x67b)]===0x1)h[bI(0x42d)][bI(0x345)]=h[bI(0x42d)][bI(0x345)][0x0];}return h;}function attachAnchor(c,P){const bK=O,h=Array[bK(0x7a2)](P)?P:[P];if(c[bK(0x718)])c[bK(0x718)]=[c[bK(0x718)],...h][bK(0xdb)]();else{if(h[bK(0x67b)]===0x1)c[bK(0x718)]=h[0x0];else c[bK(0x718)]=h;}}function attachAnchorAtDeepest(c,P){const bj=O;if(c[bj(0x718)]){for(const h of Array[bj(0x7a2)](c['anchor'])?c[bj(0x718)]:[c['anchor']])if(h[bj(0x807)]&&!(bj(0xef)in h[bj(0x807)]))attachAnchorAtDeepest(h[bj(0x807)],P);}else c['anchor']=P;}function convertToStructure(c){const bz=O;if(Array[bz(0x7a2)](c))return{'isStructure':!![],'type':'array','items':c[bz(0x205)](P=>convertToStructure(P))};else{if(c&&typeof c==='object')return{'isStructure':!![],'type':bz(0x5f2),'items':Object[bz(0xde)](c)[bz(0x205)](([P,h])=>({'key':P,'value':convertToStructure(h)}))};}return c;}const RESERVED_NAMES=new Set(['page',O(0x12b),O(0x22c),'it']);function isReservedName(c){const bR=O;return RESERVED_NAMES[bR(0x5ab)](c);}function isSecretName(c){const bG=O,P=new RegExp(bG(0x69b)+[/(?:access|o?auth(?:entication|orization)?)[\s_-]*(?:key|code)/,/(credential|token)(?:s)?/,/(?:api|app(?:lication)?|client|shared)[\s_-]*secret/,/(?:secret|api|private|encryption|verification|certificate)(?:[\s_-]*(?:pin|code|key))+/,/(?:pin|secret|otp)[\s_-]*(?:code)?/,/(?:secure|security|authenticator|2fa|mfa|(?:two|2)[\s_-]factor)[\s_-]*(?:code)?/,/pass[\s_-]*(?:code|word|phrase)/,/(credit|payment)[\s_-]*card/,/(?:cc|cvv|cvc)[\s_-]*(?:number|code|digits?)/][bG(0x205)](R=>R[bG(0x35b)])[bG(0x44e)]('|')+')','i')['exec'](c);if(!P)return![];const h=P[bG(0x3a1)],t=h+P[0x0][bG(0x67b)],I=c[h-0x1]||'',K=c[t]||'';if(!/[A-Za-z0-9]/[bG(0x63b)](I)&&!/[A-Za-z0-9]/[bG(0x63b)](K))return!![];const j=/[a-z0-9]/['test'](I)&&/[A-Z]/[bG(0x63b)](P[0x0][0x0]),z=/[A-Z]/[bG(0x63b)](P[0x0][bG(0x1b6)](-0x1))&&/[a-z0-9]/[bG(0x63b)](K);return j||z;}function isElementType(c){return test(Any(ElementType$1,NoopElementType),c);}function isPatternName(c){return test(NamedPattern,c);}function isNamedColor(c){const bp=O;if(typeof c!==bp(0x4ae))return![];return test(NamedColor,c[bp(0x7b1)]());}function variableNameToElementType(c){const bg=O,P=c['toLowerCase']()['replace'](/[\s_-]+/g,'');if(/(link|url|address|uri|location)/[bg(0x63b)](P))return bg(0x302);if(/(btn|button|cta)/['test'](P))return bg(0x275);if(/(combo(?:box)|dropdown|select)/[bg(0x63b)](P))return bg(0x539);if(/(listbox)/['test'](P))return bg(0x73f);if(/(radio)/[bg(0x63b)](P))return bg(0x6c8);if(/(form)/['test'](P))return bg(0x3d6);if(/(check)/[bg(0x63b)](P))return bg(0x657);if(/(popup|dialog|modal|alert)/[bg(0x63b)](P))return bg(0x112);if(/(logo|brand)/[bg(0x63b)](P))return'logo';if(/(img|image|picture|photo)/[bg(0x63b)](P))return'image';if(/(heading|title|subtitle)/[bg(0x63b)](P))return bg(0x411);if(/(item)/[bg(0x63b)](P))return'menuitem';if(/(menu|nav)/[bg(0x63b)](P))return bg(0x6f9);if(/(burger)/[bg(0x63b)](P))return bg(0x4ab);if(/(datetime)/[bg(0x63b)](P))return bg(0x52c);if(/(calendar|date)/[bg(0x63b)](P))return'datepicker';if(/(time)/[bg(0x63b)](P))return bg(0x156);if(/(color)/[bg(0x63b)](P))return bg(0x7d1);if(/(header|topbar)/[bg(0x63b)](P))return bg(0x61c);if(/(footer|bottombar)/[bg(0x63b)](P))return bg(0x3f9);if(/(icon|glyph|symbol)/['test'](P))return bg(0x4ff);if(/(range|slider)/['test'](P))return bg(0x190);if(/(textbox|input|field)/['test'](P))return bg(0x254);if(/(text|label|paragraph|content)/[bg(0x63b)](P))return'text';return null;}const Identifier$1=Use(/([^,.:\/'"{}[\]()/\s]+)/),MultiWordIdentifier=Use(/([^,.:\/'"{}[\]()/]+)\b/),Reference$1=(c,{context:P}={})=>Lazy(()=>Sanitize$1(Recursive(()=>{const bQ=O,h=Any(Node(All('.',MultiWordIdentifier),([I])=>({'get':I})),Node(Wrap({'left':'[','right':']'},Any(IntegerNumberLiteral,QuotedInterpolatedStringLiteral,UnquotedInterpolatedStringLiteral({'escape':/[\]]/}))),([I])=>({'get':I}))),t=Node(RegExpLiteral,([I])=>({'match':I}));return Mark(Any(Node(Wrap({'left':'{%','right':'%}'},UnquotedJSExpressionLiteral({'char':/(?!%})./})),([I])=>{return{'isJSExpressionRef':!![],'expression':I,'type':c};}),Node(Wrap({'left':'{','right':'}'},All(MultiWordIdentifier,Star(Any(h,t)))),([I,...K],j)=>{const bZ=n;let z;if(I==='it'&&j[bZ(0x7c7)][bZ(0x5ab)](bZ(0x22a)))z={...j['context'][bZ(0x22a)],'modifiers':[...j[bZ(0x7c7)][bZ(0x22a)]?.['modifiers']??[],...K],'type':c};else z={'isRef':!![],'name':I,'modifiers':K,'type':c};return j['collections']['references']['push'](z),z;})),{'type':bQ(0x22a),'subtype':P});}))),VerboseReference=Any(Lazy(()=>{const bk=O;return Mark(Node(All(Optional(The),Optional(Last$1),HttpResponse,Optional(Any(Node(HttpBody,()=>[{'get':bk(0x482)}]),Node(All(HttpCookie,InterpolatedStringLiteral$1),([c])=>[{'get':bk(0x217)},{'get':c}]),Node(All(HttpHeader,InterpolatedStringLiteral$1),([c])=>[{'get':bk(0x5e5)},{'get':c}])))),([c],P)=>{const ba=bk,h={'isRef':!![],'name':ba(0x12b),'modifiers':c,'type':'string'};return P['collections']['references'][ba(0x3a6)](h),h;}),{'type':bk(0x22a)});}),Mark(Node(All(Optional(The),Optional(Last$1),JavaScript,Optional(Evaluation),Result),(c,P)=>{const bN=O,h={'isRef':!![],'name':bN(0x22c),'type':bN(0x4ae)};return P[bN(0x71a)][bN(0x496)][bN(0x3a6)](h),h;}),{'type':O(0x22a)}),Lazy(()=>{const bT=O,c=Any(Node(Url$4,()=>({'type':bT(0x4ae),'modifiers':[{'get':bT(0x54a)}]})),Node(Title$2,()=>({'type':bT(0x4ae),'modifiers':[{'get':bT(0x81c)}]})),Node(HttpStatusCode,()=>({'type':bT(0x73c),'modifiers':[{'get':'status'}]})),Node(Width,()=>({'type':bT(0x73c),'modifiers':[{'get':bT(0x43b)}]})),Node(Height,()=>({'type':'number','modifiers':[{'get':bT(0x5cb)}]})),Node(All(HttpCookie,InterpolatedStringLiteral$1),([P])=>({'type':'string','modifiers':[{'get':bT(0x217)},{'get':P}]})),Node(All(HttpHeader,InterpolatedStringLiteral$1),([P])=>({'type':bT(0x4ae),'modifiers':[{'get':bT(0x5e5)},{'get':P}]})));return Mark(Node(Any(All(Optional(The),c,Of,Any(The,This),Optional(Current),WebPage),All(Possessive(WebPage),c)),([{type:P,modifiers:h}],t)=>{const bS=bT,I={'isRef':!![],'name':bS(0x514),'modifiers':h,'type':P};return t[bS(0x71a)][bS(0x496)][bS(0x3a6)](I),I;}),{'type':bT(0x22a)});})),NaturalNumberLiteral=Mark(Node(Dynamic(c=>c[O(0x336)][O(0x2a0)]?.[O(0x553)]('en')?Use(/([1-9](?:,(?=\d{3})|\d)*)/):Use(/([1-9](?:[.](?=\d{3})|\d)*)/)),([c],P)=>Number['parseInt'](normalizeNumericString(c,P[O(0x336)]['locale']))),{'type':O(0x73c)}),NonnegativeDecimalNumberLiteral=Mark(Node(Dynamic(c=>c[O(0x336)][O(0x2a0)]?.[O(0x553)]('en')?Use(/((?:0|[1-9](?:,(?=\d{3})|\d)*)?[.]\d+)/):Use(/((?:0|[1-9](?:[.](?=\d{3})|\d)*)?,\d+)/)),([c],P)=>Number[O(0x502)](normalizeNumericString(c,P[O(0x336)][O(0x2a0)]))),{'type':O(0x73c)}),DecimalNumberLiteral=Mark(Node(Dynamic(c=>c[O(0x336)][O(0x2a0)]?.[O(0x553)]('en')?Use(/([-+]?(?:0|[1-9](?:,(?=\d{3})|\d)*)[.]\d+)/):Use(/([-+]?(?:0|[1-9](?:[.](?=\d{3})|\d)*),\d+)/)),([c],P)=>Number['parseFloat'](normalizeNumericString(c,P[O(0x336)]['locale']))),{'type':O(0x73c)}),NonnegativeIntegerNumberLiteral=Mark(Node(Dynamic(c=>c['options'][O(0x2a0)]?.['startsWith']('en')?Use(/(0|[1-9](?:,(?=\d{3})|\d)*)/):Use(/(0|[1-9](?:[.](?=\d{3})|\d)*)/)),([c],P)=>Number[O(0xce)](normalizeNumericString(c,P[O(0x336)][O(0x2a0)]))),{'type':'number'}),IntegerNumberLiteral=Mark(Node(Dynamic(c=>c['options']['locale']?.['startsWith']('en')?Use(/([-+]?(?:0|[1-9](?:,(?=\d{3})|\d)*))/):Use(/([-+]?(?:0|[1-9](?:[.](?=\d{3})|\d)*))/)),([c],P)=>Number[O(0xce)](normalizeNumericString(c,P['options']['locale']))),{'type':'number'}),NumericLiteral=Any(DecimalNumberLiteral,IntegerNumberLiteral),NonnegativeRationalNumberLiteral=Node(Mark(All(NonnegativeIntegerNumberLiteral,All('/',NaturalNumberLiteral)),{'type':O(0x73c)}),([c,P])=>c/P),RationalNumberLiteral=Node(Mark(All(IntegerNumberLiteral,All('/',NaturalNumberLiteral)),{'type':O(0x73c)}),([c,P])=>c/P),CardinalNumberLiteral=Node(Mark(Any(All(Joinable(CardinalNumeralTen),Optional(All(Optional(/and|-/i),CardinalNumeralDigit))),CardinalNumeralTeen,CardinalNumeralDigit),{'type':O(0x73c)}),c=>c[O(0x472)]((P,h)=>P+cardinalNumeralToNumber(h),0x0)),OrdinalNumberLiteral$1=Mark(Any(Node(Use(/(\d*(?:(?:[0|4-9]|1\d)th|1st|2nd|3rd))/i),([c])=>Number[O(0xce)](c)),Node(Any(All(Joinable(CardinalNumeralTen),Optional(/and|-/i),OrdinalNumeralDigit),OrdinalNumeralTen,OrdinalNumeralTeen,OrdinalNumeralDigit),c=>c[O(0x472)]((P,h)=>P+ordinalNumeralToNumber(h),0x0))),{'type':O(0x73c)}),FractionalNumberLiteral=Mark(Any(Node(All(Any(Node(Zero,()=>0x0),Node(Any(All(Joinable(CardinalNumeralTen),Optional(All(Optional(/and|-/i),CardinalNumeralTeen))),CardinalNumeralTeen,CardinalNumeralDigit),c=>c[O(0x472)]((P,h)=>P+cardinalNumeralToNumber(h),0x0))),Optional('-'),Node(Any(All(Joinable(CardinalNumeralTen),Optional(/and|-/i),DenominatorNumeralDigit),DenominatorNumeralTen,DenominatorNumeralTeen,DenominatorNumeralDigit),c=>c[O(0x472)]((P,h)=>P+denominatorNumeralToNumber(h),0x0))),([c,P])=>c/P),Node(FractionNumeral,([c])=>fractionalNumeralToNumber(c))),{'type':O(0x73c)}),QuantitativeNumberLiteral=Any(Joinable(NonnegativeDecimalNumberLiteral),Joinable(NonnegativeRationalNumberLiteral),Joinable(NaturalNumberLiteral),FractionalNumberLiteral,CardinalNumberLiteral);Any(Node(Any(NonnegativeDecimalNumberLiteral,NonnegativeRationalNumberLiteral,FractionalNumberLiteral),([c])=>Math[O(0xca)](c,0x1)),Node(All(Joinable(NonnegativeIntegerNumberLiteral),'%'),([c])=>Math['min'](c/0x64,0x1)));const IterativeNumberLiteral=Node(IterativeNumeral,([c])=>iterativeNumeralToInteger(c)),MultiplicativeNumberLiteral=Node(MultiplicativeNumeral,([c])=>multiplicativeNumeralToInteger(c)),CardinalNumberExpression=Any(Reference$1(O(0x73c)),NaturalNumberLiteral,CardinalNumberLiteral),IterativeNumberExpression=Any(Reference$1(O(0x73c)),IterativeNumberLiteral),OrdinalNumberExpression$1=Any(Reference$1(O(0x73c)),OrdinalNumberLiteral$1),QuantitativeNumberExpression=Any(Reference$1(O(0x73c)),QuantitativeNumberLiteral),NullLiteral=Node(/null|nil/i,()=>null),TimeUnitLiteral=Any(Node(/milliseconds?|millis|msecs?|ms/i,()=>0x1),Node(/seconds?|secs?|s/i,()=>0x3e8),Node(/minutes?|mins?|m/i,()=>0xea60)),TimeIntervalLiteral=Node(All(Any(QuantitativeNumberLiteral,Nothing$1(0x1)),Optional(IndefiniteArticle),TimeUnitLiteral),([c,P])=>c*P),TimeIntervalExpression=Any(Node(All(Reference$1(O(0x73c)),Optional(TimeUnitLiteral)),([c,P])=>P?{'operator':O(0x4d3),'operands':[{'isOperand':!![],'value':c},{'isOperand':!![],'value':P}]}:c),TimeIntervalLiteral),RegExpLiteral=Node(Use(/\/([^/]+)\/([gimsuy]*)/),([c,P])=>{return{'isPattern':!![],'pattern':c,'flags':P};}),NamedPattern=Node(Any(Node(Number$1,()=>O(0x73c)),Node(Price$1,()=>O(0x1b5)),Node(Percentage$1,()=>O(0x4be)),Node(Date$1,()=>O(0x493)),Node(Time,()=>O(0x373)),Node(Code,()=>O(0x24c))),([c])=>{return{'isPattern':!![],'name':c};}),QuotedStringLiteral=Customizable((c={})=>{const bV=O,P=c[bV(0x15e)]??/./,h=Node(Use(new RegExp(String['raw']`"((?:(?:\\["\\nt])|(?:(?!["])${P['source']}))*)"`)),([I])=>normalizeString(I,/["]/)),t=Node(Use(new RegExp(String['raw']`'((?:(?:\\['\\nt])|(?:(?!['])${P['source']}))*)'`)),([I])=>normalizeString(I,/[']/));return Node(Any(Mark(h,{'type':bV(0x4ae),'subtype':bV(0x818)}),Mark(t,{'type':bV(0x4ae),'subtype':'single\x20quoted'})),([I])=>normalizeString(I,/['"]/));}),QuotedInterpolatedStringLiteral=Customizable((c={})=>{const bD=O,P=c[bD(0x15e)]??/./,h=Node(Use(new RegExp(String[bD(0x7c3)]`({?(?:(?:\\["{\\nt])|(?:(?!["{])${P[bD(0x35b)]}))+|{)`)),([K])=>normalizeString(K,/["]/)),t=Node(Use(new RegExp(String[bD(0x7c3)]`({?(?:(?:\\['{\\nt])|(?:(?!['{])${P[bD(0x35b)]}))+|{)`)),([K])=>normalizeString(K,/[']/)),I=Use(/(\s+)/);return Node(Raw(Any(Mark(Wrap('\x22',Star(Any(I,Reference$1(bD(0x4ae),{'context':bD(0x341)}),h))),{'type':'string','subtype':bD(0x818)}),Mark(Wrap('\x27',Star(Any(I,Reference$1(bD(0x4ae),{'context':bD(0x5a2)}),t))),{'type':'string','subtype':bD(0x33a)}))),K=>{const bm=bD;K=K[bm(0x472)]((j,z)=>{const br=bm;if(typeof z===br(0x4ae)){if(typeof j['at'](-0x1)===br(0x4ae))j[j[br(0x67b)]-0x1]+=z;else j[br(0x3a6)](z);}else j[br(0x3a6)](z);return j;},[]);if(K[bm(0x67b)]===0x0)return'';else{if(K[bm(0x67b)]===0x1&&typeof K[0x0]===bm(0x4ae))return K[0x0];else return{'isInterpolatedString':!![],'chunks':K};}});}),UnquotedStringLiteral$1=Customizable((c={})=>{const bF=O,P=c[bF(0x15e)]??/[^,\s]/,h=c['escape']??/[]/;return Mark(All(Not(Any(ActionSeparator,InstructionTerminator,/['"]/)),Use(new RegExp(bF(0xd7)+h['source']+')'+P['source']+')+)'))),{'type':bF(0x4ae),'subtype':bF(0x1dc)});}),UnquotedInterpolatedStringLiteral=Customizable((c={})=>{const bE=O,P=c[bE(0x15e)]??/[^,\s]/,h=c[bE(0x186)]??/[]/,t=Use(new RegExp(String[bE(0x7c3)]`({?(?:(?:\\(?:[{\\nt]|${h[bE(0x35b)]}))|(?:(?![{]|${h['source']})${P[bE(0x35b)]}))+|{)`));return Node(All(Not(Any(ActionSeparator,InstructionTerminator)),Raw(Mark(Plus(Any(All(Not(/["'\s]/),Reference$1(bE(0x4ae),{'context':bE(0x652)})),t)),{'type':bE(0x4ae),'subtype':bE(0x1dc)}))),I=>{const be=bE;I=I['map'](K=>typeof K==='string'?normalizeString(K,h):K);if(I[be(0x67b)]===0x1)return I[0x0];else return{'isInterpolatedString':!![],'chunks':I};});}),StandaloneInterpolatedStringLiteral=Customizable((c={})=>{const bX=O,P=c[bX(0x15e)]??/./,h=Use(new RegExp(String['raw']`({?(?:(?:\\[{\\nt])|(?:(?![{])${P[bX(0x35b)]}))+|{)`));return Node(Raw(Mark(Star(Any(Use(/(\s+)/),Reference$1(bX(0x4ae),{'context':bX(0x2dd)}),h)),{'type':bX(0x4ae),'subtype':bX(0x4a8)})),t=>{const bi=bX;t=t[bi(0x472)]((I,K)=>{const bL=bi;if(typeof K===bL(0x4ae)){K=normalizeString(K);if(typeof I['at'](-0x1)===bL(0x4ae))I[I[bL(0x67b)]-0x1]+=K;else I[bL(0x3a6)](K);}else I[bL(0x3a6)](K);return I;},[]);if(t[bi(0x67b)]===0x0)return'';else{if(t[bi(0x67b)]===0x1)return t[0x0];else return{'isInterpolatedString':!![],'chunks':t};}});}),StringLiteral$1=Customizable((c={})=>{return Any(QuotedStringLiteral(c),UnquotedStringLiteral$1(c));}),InterpolatedStringLiteral$1=Customizable((c={})=>{return Any(QuotedInterpolatedStringLiteral(c),UnquotedInterpolatedStringLiteral(c));}),QuotedStringExpression=Customizable((c={})=>{return Any(Reference$1('string'),VerboseReference,QuotedInterpolatedStringLiteral(c));}),UnquotedStringExpression=Customizable((c={})=>{return Any(VerboseReference,UnquotedInterpolatedStringLiteral(c));}),StringExpression$1=Customizable((c={})=>{return Any(VerboseReference,InterpolatedStringLiteral$1(c));}),StandaloneStringExpression=StandaloneInterpolatedStringLiteral,QuotedJSExpressionLiteral=Lazy(()=>{const bA=O;return Mark(Node(Raw(Any(Wrap('\x22',Star(Any(Reference$1(bA(0x218)),Use(/(\{?(?:\\["{\\]|[^"{])+)/)))),Wrap('\x27',Star(Any(Reference$1(bA(0x218)),Use(/(\{?(?:\\['{\\]|[^'{])+)/)))))),c=>{const bY=bA;return c=c[bY(0x205)](P=>typeof P===bY(0x4ae)?P[bY(0x2d0)](/\\(["'{\\])/g,'$1'):P),{'isJSExpression':!![],'chunks':c};}),{'type':bA(0x418)});}),UnquotedJSExpressionLiteral=Customizable((c={})=>{const bU=O,P=c[bU(0x15e)];return Mark(Node(Raw(P?Star(Any(Reference$1(bU(0x218)),Use(new RegExp(String['raw']`(\{?(?:\\[{\\]|(?![{])${P[bU(0x35b)]})+)`)))):As$1(Anything$1,Star(Any(Reference$1('any'),Use(/(\{?(?:\\[{\\]|[^{])+)/))))),h=>{const bs=bU;return h=h['map'](t=>typeof t===bs(0x4ae)?t[bs(0x2d0)](/\\(["'{\\])/g,'$1'):t),{'isJSExpression':!![],'chunks':h};}),{'type':bU(0x418)});}),JSExpressionLiteral$1=Customizable((c={})=>{return Any(QuotedJSExpressionLiteral,UnquotedJSExpressionLiteral(c));}),StructureLiteral$1=Lazy(()=>Recursive(c=>{const bx=O,P=Any(Reference$1(bx(0x4ae)),Use(/([^:'",\s]+)/),InterpolatedStringLiteral$1),h=Any(Reference$1('any'),c,PrimitiveLiteral({'escape':/[\]]/})),t=Any(Reference$1(bx(0x218)),c,PrimitiveLiteral({'escape':/[\}]/}));return Any(Node(Mark(Wrap({'left':'[','right':']'},Optional(List(h,','))),{'type':bx(0x3d3)}),I=>({'isStructure':!![],'type':bx(0x3d3),'items':I})),Node(Mark(Wrap({'left':'{','right':'}'},Optional(List(Node(All(Mark(P,{'type':bx(0x111)}),':',t),([I,K])=>({'key':I,'value':K})),','))),{'type':bx(0x5f2)}),I=>({'isStructure':!![],'type':bx(0x5f2),'items':I})));})),BooleanLiteral=Any(Node(/true/i,()=>!![]),Node(/false/i,()=>![]));Any(Reference$1('boolean'),BooleanLiteral);const PrimitiveLiteral=Customizable((c={})=>{return Any(NullLiteral,BooleanLiteral,RationalNumberLiteral,DecimalNumberLiteral,IntegerNumberLiteral,InterpolatedStringLiteral$1(c));}),AnyExpression$1=Any(Reference$1('any'),VerboseReference,StructureLiteral$1,PrimitiveLiteral),AnyVerboseExpression=Any(Reference$1('any'),VerboseReference,StructureLiteral$1,CardinalNumberLiteral,FractionalNumberLiteral,PrimitiveLiteral),Url$3=Mark(StringExpression$1,{'type':O(0x47f),'regexp':/(?<=^[^:]+:\/\/.+(?:(?=(?<!\\){)|:)).+(?=@.+)/}),ExplicitUrl=Mark(Stringish(Use(/(https?:\/\/(?:localhost|[-a-zA-Z0-9@:%._\+~#=]{2,256}\.[a-z]{2,4})(?::\d{1,5})?\b[-a-zA-Z0-9@:%_\+.~#?&/=]*)/)),{'type':O(0x47f),'regexp':/(?<=^[^:]+:\/\/.+(?:(?=(?<!\\){)|:)).+(?=@.+)/}),Viewport=Node(All(Optional(The),Viewport$1),()=>({'isViewportDescriptor':!![]})),RelativeAnchor=({Element:c})=>Any(Node(All(Near,Optional(To),c),([P])=>({'position':O(0xba),'element':P})),Node(All(RelativePosition,Optional(Of),c),([P,h])=>({'position':P,'element':h}))),AbsoluteAnchor=({Element:c})=>{const bB=O,P=Any(Viewport,c),h=Node(PostCondition(List(c({'anchor':![]}),Inside),t=>t[bB(0x67b)]>=0x2&&t['every'](I=>I[bB(0x345)]&&I['type']===t[0x0][bB(0x345)])),t=>{const bu=bB;return t['reduceRight']((I,K)=>(attachAnchor(K,{'position':bu(0x18c),'element':I}),K));});return Any(Node(All(Optional(LocationPreposition),AbsolutePosition$1,Optional(All(Any(LocationPreposition,Of),P))),([t,I])=>I?{'position':t,'element':I}:{'position':t}),Node(All(Inside,WeakList(Any(h,P),AndListSeparator)),t=>{const bd=bB,I=t[bd(0x205)](K=>({'position':bd(0x18c),'element':K}));return I[bd(0x67b)]>0x1?I:I[0x0];}));},Anchor$3=c=>{return Mark(Any(RelativeAnchor(c),AbsoluteAnchor(c)),{'type':'anchor'});},NamedColor=Any(Node(/red/i,()=>O(0x4a7)),Node(/blue/i,()=>'blue'),Node(/green/i,()=>'green'),Node(/yellow/i,()=>O(0x675)),Node(/orange/i,()=>'orange'),Node(/purple/i,()=>O(0x34b)),Node(/pink/i,()=>O(0x76a)),Node(/brown/i,()=>O(0x5b8)),Node(/black/i,()=>'black'),Node(/white/i,()=>O(0x797)),Node(/gr[ae]y/i,()=>'gray'),Node(/cyan/i,()=>O(0x73e)),Node(/magenta/i,()=>O(0x178)),Node(/lime/i,()=>'lime'),Node(/navy/i,()=>O(0x6a1)),Node(/teal/i,()=>O(0x65a)),Node(/maroon/i,()=>O(0x4dc)),Node(/olive/i,()=>O(0x3f5)),Node(/aqua/i,()=>O(0x44d)),Node(/silver/i,()=>O(0xf9)),Node(/gold/i,()=>'gold'),Node(/indigo/i,()=>O(0x600)),Node(/violet/i,()=>'violet'),Node(/crimson/i,()=>O(0x228)),Node(/coral/i,()=>'coral'),Node(/salmon/i,()=>'salmon'),Node(/turquoise/i,()=>O(0x2b6)),Node(/lavender/i,()=>O(0x809)),Node(/khaki/i,()=>O(0x673)),Node(/tan/i,()=>O(0x671)),Node(/beige/i,()=>O(0x6ba)),Node(/ivory/i,()=>O(0x2a8)),Node(/plum/i,()=>O(0x73b)),Node(/azure/i,()=>O(0x5e7)),Node(/mint/i,()=>'mint'),Node(/peach/i,()=>O(0x1bd))),EncodedColor=Any(Use(/(rgb\(\s*\d{1,3}\s*,\s*\d{1,3}\s*,\s*\d{1,3}\s*\))/i),Use(/(rgba\(\s*\d{1,3}\s*,\s*\d{1,3}\s*,\s*\d{1,3}\s*,\s*\d*\.?\d+\s*\))/i),Use(/(cmyk\(\s*\d{1,3}%?\s*,\s*\d{1,3}%?\s*,\s*\d{1,3}%?\s*,\s*\d{1,3}%?\s*\))/i),Use(/(hsl\(\s*\d{1,3}\s*,\s*\d{1,3}%?\s*,\s*\d{1,3}%?\s*\))/i),Use(/(#[0-9A-F]{3}(?:[0-9A-F]{3})?)/i)),Color$1=Any(EncodedColor,NamedColor),{Apply:Apply$28,Mutate:Mutate$28,state:state$2}=State({}),Type$3=Void(Mutate$28(Use(/(css|xpath)/i),(c,[P])=>c['type']=P['toLowerCase']())),Value$4=Mutate$28(Node(StringExpression$1,([c],P)=>({'type':state$2(P)[O(0x345)]??(typeof c==='string'&&['/','(',O(0x3a2),'./','*/'][O(0x649)](h=>c[O(0x553)](h))?O(0x13d):'css'),'selector':c})),(c,[{type:P,selector:h}])=>{const bM=O;c[bM(0x345)]=P,c[bM(0x434)]=h;}),ElementSelector=Apply$28(All(Any(All(Type$3,Optional(All(Optional(Any('-',With,By)),Selector$1))),All(Nothing$1(void 0x0),Selector$1)),Mark(Value$4,{'type':O(0x434),'mutate':(c,[P])=>c['subtype']=P[O(0x345)]}))),NoopElementType=Element$3,AppElementType=Node(Any(WebPage,App$1),()=>O(0x1cc)),definition={'control':new Map([['button',Button],['radiogroup',RadioGroup],[O(0x6c8),Radio],[O(0x254),Textbox],[O(0x337),CheckboxGroup],[O(0x657),Checkbox],[O(0x539),Combobox],[O(0x73f),Listbox],[O(0x494),Option$1],['colorpicker',ColorPicker],['datepicker',DatePicker],[O(0x156),TimePicker],[O(0x52c),DateTimePicker],[O(0x4e5),FilePicker],['slider',Slider],['inputbox',Inputbox],['selectbox',Selectbox],['valuebox',Valuebox],['valuebox',Valuebox]]),'structural':new Map([[O(0x495),PdfPage$1],['ad',Ad],[O(0x1f1),All(Optional(Table),Header$4,Cell)],[O(0x20b),All(Optional(Table),Cell)],[O(0x635),All(Optional(Table),Header$4,Row)],['table-row',All(Optional(Table),Row)],['table-stub-column',All(Optional(Table),Stub,Column)],['table-column',All(Optional(Table),Column)],['table',Table],[O(0x61c),Header$4],[O(0x3f9),Footer],['popup',Popup],['tooltip',Tooltip],[O(0x3d6),Form$1],[O(0x261),MenuItem],[O(0x6f9),Menu],['listitem',ListItem],[O(0x716),List$1],['hamburger',Hamburger],['heading',Heading],[O(0x7aa),Card]]),'content':new Map([[O(0x532),Text$1],[O(0x302),Link],['logo',Logo],[O(0x54e),Image],[O(0x4ff),Icon],[O(0x74c),Paragraph]])},ElementType$1=Customizable((c={})=>{const bq=O,P=Object['entries'](definition);let h;if(c?.[bq(0x3e4)]){const t=new Set(c[bq(0x3e4)]);h=P[bq(0x7dc)](([I,K])=>{const bJ=bq,j=Array[bJ(0x37c)](K['entries']());return t[bJ(0x5ab)](I)?j:j[bJ(0x506)](([z])=>t['has'](z));});}else h=P[bq(0x7dc)](([I,K])=>Array['from'](K[bq(0xde)]()));return Any(...h[bq(0x205)](([I,K])=>Node(K,()=>I)));}),{Apply:Apply$27,Mutate:Mutate$27}=State({}),Type$2=Customizable(c=>{const by=O,P=c?.[by(0x3e4)]?.[by(0x506)](t=>t!==by(0x81b)),h=!P||P[by(0x67b)]<c['allowed']['length'];return Any(Mutate$27(ElementType$1({'allowed':P}),(t,[I])=>t[by(0x345)]=I),!P||P[by(0x1d9)](by(0x254))?Mutate$27(Any(All(Stringish(Use(/(search)/i)),/bar|box/i),Searchbox),(t,[I='search'])=>{const bl=by;t[bl(0x345)]=bl(0x254),t[bl(0x81c)]=I;}):Never,h?NoopElementType:Never);}),App=Mutate$27(AppElementType,(c,[P])=>c[O(0x345)]=P),IndexedPdfPage=Mutate$27(All(Optional(The),Any(All(Index$1(OrdinalNumberExpression$1),Any(PdfPage$1,Page)),All(Any(PdfPage$1,Page),Optional(Any(NumberSign,Number$1)),Index$1(CardinalNumberExpression)))),(c,[P])=>(c[O(0x345)]=O(0x495),c[O(0x574)]=P)),ExplicitColor=Mutate$27(Any(All(Color$2,Any(EncodedColor,StringExpression$1)),All(Any(EncodedColor,StringExpression$1),Color$2)),(c,[P])=>c[O(0x435)]=P),KnownColor=Mutate$27(Color$1,(c,[P])=>c[O(0x435)]=P),Colorable=c=>Any(All(c,Any(With,Of),Optional(The),ExplicitColor),All(Optional(KnownColor),c)),Selector=Mutate$27(All(Optional(All(Any(With,By),Optional(The))),ElementSelector),(c,[P])=>c[O(0x434)]=P),ReferenceTitle=Mutate$27(Mark(Reference$1(O(0x4ae)),{'type':'text'}),(c,[P])=>{const bC=O;c[bC(0x81c)]=P;}),Title$1=Customizable((c={})=>{const bO=O;return Mutate$27(All(c[bO(0x610)]?Not(c[bO(0x610)]):Nothing$1,Any(All(Optional(All(Having,Optional(The))),NamedPattern),All(Optional(Named),Mark(StringExpression$1,{'type':bO(0x532)})))),(P,[h])=>{const n0=bO;P['title']=h;if(typeof h===n0(0x4ae)&&isSecretName(h))P['secret']=!![];});}),ExplicitTitle=Mutate$27(Any(All(All(Having,Optional(The)),NamedPattern),All(Named,Mark(StringExpression$1,{'type':O(0x532)}))),(c,[P])=>{const n1=O;c[n1(0x81c)]=P;if(typeof P===n1(0x4ae)&&isSecretName(P))c[n1(0x47f)]=!![];}),Nth=Mutate$27(All(Optional(The),Index$1(OrdinalNumberExpression$1)),(c,[P])=>c[O(0x574)]=P),Last=Mutate$27(Any(Last$1,Bottom),c=>c['orderDirection']=O(0x24f)),SearchOrder=Any(Mutate$27(/from\s+(?:the\s+)?(?:beginning|top)/i,c=>c[O(0xf5)]=O(0x75d)),Mutate$27(/from\s+(?:the\s+)?(?:end|bottom)/i,c=>c[O(0xf5)]=O(0x24f))),ElementAnchor=c=>Mutate$27(Anchor$3({'Element':c}),(P,[h])=>attachAnchor(P,h)),TypeAnchor=Mutate$27(All(Optional(The),Any(Possessive(AppElementType,{'strict':!![]}),Possessive(ElementType$1({'allowed':[O(0x1f5)]}))),Not(Inside)),(c,[P])=>attachAnchor(c,{'position':'inside','element':{'type':P}})),Element$2=Recursive((c,{depth:P})=>{const n2=O;return Customizable((h,t)=>({...h,...t,'AvoidTitle':h[n2(0x464)]&&t[n2(0x464)]?Any(h[n2(0x464)],t[n2(0x464)]):h['AvoidTitle']??t['AvoidTitle']}),h=>{const n3=n2,t=h?.['explicit']&&P===0x0,I=h?.['anchor']!==![],K=!!h?.[n3(0x32c)]&&!h[n3(0x32c)][n3(0x1d9)]('noop'),j=Type$2({'allowed':h?.[n3(0x32c)]}),z=h?.['AvoidTitle']?Title$1({'Avoid':h?.['AvoidTitle']}):Title$1,R=I?List(ElementAnchor(c(h)),AndListSeparator):Never,G=All(Optional(The),Any(All(j,Selector),All(Selector,Optional(j)))),p=Any(All(Optional(The),Any(Last,ReferenceTitle),Colorable(j),Optional(R)),All(Optional(Nth),Optional(The),Any(All(Colorable(j),Any(All(SearchOrder,Optional(Selector)),I?All(Optional(Selector),R):Never,All(z,Optional(Selector),Optional(R)),Optional(Selector))),All(Colorable(All(Title$1,j)),Optional(Selector),Optional(R))))),Z=t?Any(All(Optional(Nth),The,Title$1,Optional(Selector),Optional(R)),I?All(Title$1,Optional(Selector),R):Never,All(ExplicitTitle,Optional(Selector))):Any(All(Optional(The),Last,Optional(The),z,Optional(Selector),Optional(R)),All(Optional(Nth),Optional(The),z,Optional(Selector),Optional(R)),All(Optional(The),z,Optional(Selector),Optional(R)));return Effect(Mark(Apply$27(Any(IndexedPdfPage,G,Longest(I?All(TypeAnchor,p):Never,Any(p,Article(App),K?Never:Z),I&&!K?All(TypeAnchor,Z):Never))),{'type':n3(0x477)}),([Q],k)=>{const n4=n3;if(Q[n4(0x345)]!==n4(0x1cc))k[n4(0x7c7)][n4(0x807)]=Q;if(Q[n4(0x81c)]&&typeof Q['title']===n4(0xf4)&&n4(0x396)in Q[n4(0x81c)]){const a=variableNameToElementType(Q[n4(0x81c)][n4(0x3d8)]);a&&(Q[n4(0x42d)]=Q[n4(0x42d)]??{},Q[n4(0x42d)]['type']=[a]);}if(Q[n4(0x574)]!==void 0x0&&!Q[n4(0x81c)]){if(Q[n4(0x345)]===n4(0x62b))Q[n4(0x345)]=n4(0x278);if(Q[n4(0x345)]===n4(0x66b))Q[n4(0x345)]=n4(0x17a);}if(Array[n4(0x7a2)](Q[n4(0x718)])){function N(S){const n5=n4;if(!S)return![];return(Array[n5(0x7a2)](S)?S:[S])[n5(0x649)](V=>[n5(0x66b),'table-row',n5(0x17a),n5(0x278),n5(0x521),n5(0x635)]['includes'](V));}const T=Q[n4(0x718)]['filter'](S=>S[n4(0x446)]===n4(0x18c)&&S[n4(0x807)]&&!('isViewportDescriptor'in S[n4(0x807)])&&N(S[n4(0x807)][n4(0x345)]));if(T[n4(0x67b)]>0x0){const S=T[T[n4(0x67b)]-0x1];function V(m){const n6=n4;if(m[n6(0x345)]===n6(0x386))return{'position':n6(0x18c),'element':m};if(m[n6(0x718)]&&!Array[n6(0x7a2)](m[n6(0x718)])&&m[n6(0x718)]['position']===n6(0x18c)&&m[n6(0x718)][n6(0x807)]&&!('isViewportDescriptor'in m['anchor'][n6(0x807)]))return V(m['anchor']['element']);}const D=V(S['element']);if(D)T[n4(0x1b6)](0x0,-0x1)[n4(0x7fe)](m=>attachAnchorAtDeepest(m[n4(0x807)],D));}}});});}),ExplicitElement=Lazy(()=>Element$2({'explicit':!![]})),StringElement=Apply$27(Title$1),PageElement=Apply$27(All(Optional(The),App)),ImplicitElement=PreCondition(c=>c['context']['has']('element'),Mark(Node(It,(c,P)=>P[O(0x7c7)]['element']),{'type':O(0x3b0),'mutate':(c,[P])=>c[O(0x807)]=P})),ElementValueExtractor=Customizable(({Element:Element=Element$2}={})=>{const n7=O,c=Any(Node(All(Optional(Any(Node(Mark(Background,{'type':n7(0x639),'subtype':n7(0x150)}),()=>n7(0x704)),Node(Mark(Any(Foreground,Text$1),{'type':'color-type','subtype':n7(0x1c8)}),()=>n7(0xdf)))),Color$2),([P])=>P??n7(0x435)),Node(Value$5,()=>n7(0x218)),Node(String$1,()=>'string'));return Mark(Node(Any(Node(All(Optional(The),c,Any(All(Any(Of,From,LocationPreposition),Element),Node(Anchor$3({'Element':Element}),([P])=>({'anchor':P})))),([P,h])=>({'isExtractor':!![],'value':h,'type':P})),Node(All(ExplicitElement,c),([P,h])=>({'isExtractor':!![],'value':P,'type':h})),Node(PostCondition(Element,([P])=>!!(P[n7(0x345)]===n7(0x532)&&!(P[n7(0x574)]||P['title'])&&P[n7(0x718)]&&(!Array[n7(0x7a2)](P[n7(0x718)])||P[n7(0x718)][n7(0x67b)]===0x1))),([P])=>{const n8=n7;return{'isExtractor':!![],'value':(Array['isArray'](P[n8(0x718)])?P[n8(0x718)][0x0]:P['anchor'])[n8(0x807)],'type':n8(0x4ae)};})),([P],h)=>{const n9=n7;return h['collections'][n9(0x48f)][n9(0x3a6)](P),P;}),{'type':n7(0x4c2)});}),Dialog=Node(All(BrowserDialog),()=>({'isDialogDescriptor':!![]})),IsWrapperOperator=c=>{return Node(All(Any(Node(/not|isn't|is\s+not|doesn't|does\s+not|(?:can't|can\s+not)(\s+be)?|(?:have|has)(?:n't|\s+not)\s+been/,()=>![]),Node(/is|does|be|(?:to|can)(?:\s+be)?|(?:have|has)\s+been/,()=>!![]),Nothing$1(!![])),c),([P,h])=>{return P?h:(...t)=>not(h(...t));});},IgnoreCase=Node(/case[\s-]?insensitive|(?:ignor(?:e|ing))\s+(?:cas(?:e|ing))/i,()=>ignoreCase),MatchCase=Node(/case[\s-]?sensitive|(?:match(?:ing)?|respect(?:ing)?)\s+(?:cas(?:e|ing))/i,()=>matchCase),ParensOperator=c=>{return Node(Wrap({'left':'(','right':')'},c),([P])=>parens(P));},BooleanOperator=Any(Node(/(?:,\s+)?and|,/i,()=>and),Node(/(?:,\s+)?or/i,()=>or)),IsOperator=Any(Node(/not|isn't|is\s+not|doesn't|does\s+not|does/,()=>(c,P)=>not(eq$1(c,P))),Node(/is|does/,()=>eq$1)),ComparisonOperator=Any(Node(/==?=?|equals?(?:\s+to)?|the\s+same\s+as|eq/i,()=>eq$1),Node(/!==?|different\s+(?:from|than)/i,()=>(c,P)=>not(eq$1(c,P))),Node(/>=|(?:greater|bigger|larger|more)\s+or\s+equals?\s(?:to|than)|gte/i,()=>gte$1),Node(/>|(?:greater|bigger|larger|more)\s+than|gt/i,()=>gt$1),Node(/<=|(?:lower|smaller|less)\s+or\s+equals?\s(?:to|than)|lte/i,()=>lte$1),Node(/<|(?:lower|smaller|less)\s+than|lt/i,()=>lt$1)),ValidateOperator=Node(Any(Node(Use(/(lower|upper|camel|pascal|snake|kebab)[\s-]?case/i),([c])=>c[O(0x1d1)]()+O(0x415)),Node(/capitalized/i,()=>O(0x51e)),Node(/(?:numeric|a\s+number)/i,()=>O(0x60e)),Node(/alpha-?numeric/i,()=>O(0x367))),([c])=>{return P=>validate$1(P,c);}),MatchOperator=Node(All(Optional(/match(?:es)?(?:(?:\s+the)?\s+(?:regexp?|rex|pattern|regular(?:-|\s+)expression))?/i),RegExpLiteral),([c])=>{return P=>match$1(P,c);}),SizeValidationOperator=Any(Node(/empty/i,()=>{return c=>eq$1({'isOperand':!![],'value':size(c)},{'isOperand':!![],'value':0x0});}),Node(/nonempty/i,()=>{return c=>gt$1({'isOperand':!![],'value':size(c)},{'isOperand':!![],'value':0x0});}),Node(All(/includes?|contains?|have|has/i,CardinalNumberExpression,Any(CollectionItems,CollectionPairs,CollectionValues,CollectionKeys)),([c])=>{return P=>gte$1({'isOperand':!![],'value':size(P)},{'isOperand':!![],'value':c});})),IncludesOnlyOperator=Node(All(/includes?|contains?|have|has/i,Only,Any(Node(All(Optional(The),CollectionValues),()=>values),Node(All(Optional(The),Any(All(CollectionKeys,Optional(/named|names?/i)),All(Any(CollectionItems,CollectionPairs),/named|names?/i))),()=>keys),Node(Optional(All(Optional(The),CollectionItems)),()=>entries))),([c])=>{return(P,h)=>includesOnly$1({'isOperand':!![],'value':c(P)},h);}),IncludesOperator=Node(All(/includes?|contains?|have|has/i,Any(Node(All(Optional(The),CollectionValues),()=>values),Node(All(Optional(The),Any(All(CollectionKeys,Optional(/named|names?/i)),All(Any(CollectionItems,CollectionPairs),/named|names?/i))),()=>keys),Node(Optional(All(Optional(The),CollectionItems)),()=>entries))),([c])=>{return(P,h)=>includes$1({'isOperand':!![],'value':c(P)},h);}),StartsWithOperator=Node(/starts?\s+with/i,()=>startsWith$1),EndsWithOperator=Node(/ends?\s+with/i,()=>endsWith$1),VisibleOperator=Node(All(/visible|shown|show(?:\s+up)?|appears?|apparent|displayed/i,Optional(Anchor$3({'Element':Element$2}))),([c])=>{if(c)return P=>{const nf=n,h=P[nf(0x6df)];return visible$1({'isOperand':!![],'value':{...h,'anchor':h[nf(0x718)]?[h['anchor'],c][nf(0xdb)]():c}});};else return visible$1;}),InvisibleOperator=Node(All(/invisible|hidden|disappear/i,Optional(Anchor$3({'Element':Element$2}))),()=>c=>not(visible$1(c))),ClickableOperator=Node(/clickable|clicked/i,()=>clickable$1),EnabledOperator=Node(/enabled/i,()=>enabled$1),DisabledOperator=Node(/disabled/i,()=>c=>not(enabled$1(c))),CheckedOperator=Node(/checked|ticked/i,()=>c=>checked$1(c,!![])),UncheckedOperator=Node(/unchecked|unselected|unticked/i,()=>c=>checked$1(c,![])),PopulatedOperator=Node(/populated|entered|set|filled(?:\s+in)?|(?:have|has)(?:\s+an?)?\s+value|holds?\s+input/i,()=>c=>populated$1(c)),NotPopulatedOperator=Node(Any(/unfilled/i,/unset/i,/blank/i),()=>c=>not(populated$1(c))),HoveredOperator=Node(Any(/hovered/i,All(/has\s+hover/i,CSSPseudoClass,/applied|active/i),All(Optional(ConditionPreposition),/hover(?:\s+state)?/i)),()=>hovered$1),HoveredReversedOperator=All(/hover/i,CSSPseudoClass,IsWrapperOperator(Node(/applied|active/i,()=>hovered$1)),LocationPreposition),SelectedOperator=Node(All(/selected/i,StoragePreposition),()=>eq$1),UnaryOperator=IsWrapperOperator(Any(MatchOperator,ValidateOperator,SizeValidationOperator)),BinaryOperator=Any(IsWrapperOperator(Any(ComparisonOperator,IncludesOnlyOperator,IncludesOperator,StartsWithOperator,EndsWithOperator)),IsOperator),ElementUnaryOperator=IsWrapperOperator(Any(VisibleOperator,InvisibleOperator,CheckedOperator,UncheckedOperator,ClickableOperator,EnabledOperator,DisabledOperator,HoveredOperator,PopulatedOperator,NotPopulatedOperator)),ElementReversedUnaryOperator=Any(HoveredReversedOperator),ElementBinaryOperator=IsWrapperOperator(Any(SelectedOperator)),ConditionOperation=Recursive(c=>{const nn=O,{Masker:P,Maskable:h,mask:t}=Mask(),I=Effect(Use(Secret),(S,V)=>t(V)),K=S=>{return Node(Mark(h(S),{'type':'operand'}),([V],D)=>{const nb=n,m={'isOperand':!![],'value':V};return D[nb(0x71a)][nb(0x674)][nb(0x3a6)](m),m;});},j=K(AnyVerboseExpression),z=K(VerboseReference),R=K(Effect(ElementValueExtractor({'Element':Element$2({'AvoidTitle':Any(UnaryOperator,BinaryOperator)})}),([S],V)=>S[nn(0x6df)][nn(0x47f)]&&t(V))),G=K(Effect(Element$2({'AvoidTitle':Any(UnaryOperator,BinaryOperator),'explicit':!![]}),([S],V)=>S[nn(0x47f)]&&t(V))),p=Any(All(Optional(I),R),z,G,All(Optional(I),j)),Z=K(Any(Effect(Element$2({'AvoidTitle':Any(ElementUnaryOperator,ElementBinaryOperator)}),([S],V)=>S[nn(0x47f)]&&t(V)),Dialog)),Q=Node(All(p,Optional(Any(IgnoreCase,MatchCase))),([S,V])=>{return{'operand':S,'wrapper':V};}),k=Any(Node(UnaryOperator,([S])=>({'operator':S})),Node(All(BinaryOperator,p,Optional(Any(IgnoreCase,MatchCase))),([S,V,D])=>{return{'operator':m=>D?.(S(m,V))??S(m,V)};})),a=Node(c,([S])=>{return{'operation':S};}),N=Node(All(Any(All(Z,ElementUnaryOperator),All(p,UnaryOperator)),Any(IgnoreCase,MatchCase,Nothing$1(S=>S)),Star(Node(All(BooleanOperator,Any(a,k)),([S,V])=>{return{'connector':S,'addition':V};}))),([S,V,D,...m])=>{return m['reduce']((F,{connector:E,addition:e})=>{const nH=n;return E(F,nH(0x11c)in e?e[nH(0x11c)](S):e['operation']);},D(V(S)));}),T=Any(Node(All(All(ElementReversedUnaryOperator,Z),Star(Node(All(BooleanOperator,a),([S,V])=>{return{'connector':S,'addition':V};}))),([S,V,...D])=>{const no=nn;return D[no(0x472)]((m,{connector:F,addition:E})=>{const nW=no;return F(m,E[nW(0x731)]);},S(V));}),N,Node(All(Any(All(Z,ElementBinaryOperator),All(p,BinaryOperator)),p,Any(IgnoreCase,MatchCase,Nothing$1(S=>S)),Star(Any(Node(All(BooleanOperator,Any(a,k)),([S,V])=>{return{'connector':S,'addition':V};}),Weak(Node(All(BooleanOperator,Q),([S,V])=>{return{'connector':S,'addition':V};}))))),([S,V,D,m,...F])=>{const nv=nn;return F[nv(0x472)]((E,{connector:e,addition:X})=>{const nw=nv;if(nw(0x23f)in X){if(E[nw(0x11c)]===nw(0x4fb))return E['operands'][nw(0x3a6)](X[nw(0x23f)]),E;else return e(E,V(S,X[nw(0x23f)]));}else{if(nw(0x11c)in X)return e(E,X[nw(0x11c)](S));else return e(E,X[nw(0x731)]);}},m(V(S,D)));}));return Node(Mark(P(All(Any(ParensOperator(T),T),Star(Node(All(BooleanOperator,Any(ParensOperator(T),T)),([S,V])=>{return D=>S(D,V);})))),{'type':nn(0x731)}),([S,...V])=>{const nc=nn;return V[nc(0x472)]((D,m)=>m(D),S);});}),Condition$2=Node(ConditionOperation,([c])=>({'isCondition':!![],'operation':c})),NegativeCondition=Node(ConditionOperation,([c])=>({'isCondition':!![],'operation':not(c)}));function parens(c){const nP=O;return{'operator':nP(0x631),'operands':[c]};}function ignoreCase(c){const nh=O;return{'operator':nh(0x363),'operands':[c]};}function matchCase(c){return{'operator':'match\x20case','operands':[c]};}function not(c){return{'operator':'not','operands':[c]};}function and(c,P){const nt=O;return{'operator':nt(0x134),'operands':[c,P]};}function or(c,P){return{'operator':'or','operands':[c,P]};}function eq$1(c,P){return{'operator':'eq','operands':[c,P]};}function gte$1(c,P){const nI=O;return{'operator':nI(0x78e),'operands':[c,P]};}function gt$1(c,P){return{'operator':'gt','operands':[c,P]};}function lte$1(c,P){const nK=O;return{'operator':nK(0x390),'operands':[c,P]};}function lt$1(c,P){return{'operator':'lt','operands':[c,P]};}function validate$1(c,P){const nj=O;return{'operator':nj(0x7ff),'operands':[c,P]};}function size(c){return{'operator':'size','operands':[c]};}function keys(c){const nz=O;return{'operator':nz(0x342),'operands':[c]};}function values(c){const nR=O;return{'operator':nR(0x3bd),'operands':[c]};}function entries(c){const nG=O;return{'operator':nG(0xde),'operands':[c]};}function match$1(c,P){const np=O;return{'operator':np(0x757),'operands':[c,P]};}function includesOnly$1(c,P,...h){const ng=O;return{'operator':ng(0x4fb),'operands':[c,P,...h]};}function includes$1(c,P){return{'operator':'includes','operands':[c,P]};}function startsWith$1(c,P){return{'operator':'starts\x20with','operands':[c,P]};}function endsWith$1(c,P){const nZ=O;return{'operator':nZ(0x5ec),'operands':[c,P]};}function visible$1(c){const nQ=O;return{'operator':nQ(0x1ae),'operands':[c]};}function clickable$1(c){return{'operator':'clickable','operands':[c]};}function enabled$1(c){return{'operator':'enabled','operands':[c]};}function hovered$1(c){return{'operator':'hovered','operands':[c]};}function checked$1(c,P){const nk=O;return{'operator':nk(0x7f5),'operands':[c,P]};}function populated$1(c){const na=O;return{'operator':na(0x56d),'operands':[c]};}const {Apply:Apply$26,Mutate:Mutate$26}=State({'isChromeElementDescriptor':!![]}),ButtonTitle=Any(Mutate$26(Stringish(/(?:click\s+to\s+)?(?:go\s+)?(?:back|(?:to\s+)?(?:the\s+)?prev(?:ious)?(?:\s+page)?)|<-|</i),c=>c[O(0x81c)]=O(0x6c5)),Mutate$26(Stringish(/(?:click\s+to\s+)?(?:go\s+)?(?:fwd|forward|(?:to\s+)?(?:the\s+)?next(?:\s+page)?)|->|>/i),c=>c['title']=O(0x75d)),Mutate$26(Stringish(/(?:reload|refresh)(?:\s+(?:(?:(?:(?:this|the)\s+)?page)|this))?/i),c=>c[O(0x81c)]=O(0x113))),TextboxTitle=Mutate$26(Stringish(/search|address|url/i),c=>c[O(0x81c)]=O(0x54a)),ChromeButton=Apply$26(All(Optional(The),Optional(BrowserToolbar),ButtonTitle,Optional(Button))),ExplicitChromeButton=Apply$26(All(Optional(The),BrowserToolbar,ButtonTitle,Optional(Button))),ChromeTextbox=Apply$26(All(Optional(The),Optional(BrowserToolbar),TextboxTitle,Optional(Textbox))),ExplicitChromeTextbox=Apply$26(All(Optional(The),BrowserToolbar,TextboxTitle,Optional(Textbox))),OTPLiteral=Node(All(Mark(All(Optional(IndefiniteArticle),Optional(Generated),OTP$1),{'type':O(0x3ad)}),For,Optional(The),Optional(User),Mark(StringExpression$1,{'type':O(0x7f7)})),([c])=>({'isOTP':!![],'user':c})),FileHandleLiteral=Node(Mark(StringLiteral$1,{'type':O(0x1c9)}),([c],P)=>{const nN=O,h={'isFileHandle':!![],'filename':c};return P[nN(0x71a)]['files']['push'](h),h;}),Description$1=As$1(Anything$1,StandaloneStringExpression),RandomValueLiteral=Node(Mark(All(Optional(IndefiniteArticle),Optional(Random),Description$1),{'type':O(0x120)}),([c],P)=>{const nT=O,h={'isRandomValue':!![],'description':c};return P[nT(0x71a)]['randomValues'][nT(0x3a6)](h),h;}),GrabAction=Mark(/grab/i,{'type':'actionword'}),Clip=c=>Effect(c,([P],h)=>{const nS=O;if(typeof P===nS(0xf4)&&P&&nS(0x396)in P)h[nS(0x7c7)][nS(0x22a)]=P;h[nS(0x7c7)]['clipboard']=P;}),Grab=Void(All(GrabAction,Any(Clip(ElementValueExtractor),Longest(ExplicitElement,Clip(AnyExpression$1))))),{Apply:Apply$25,Mutate:Mutate$25}=State({'type':'set\x20variable','data':{'value':null},'names':[]}),SetVariableAction=Mark(/set|assign|define/i,{'type':'actionword'}),StoreValueAction=Mark(/set|assign|remember|memorize|store|save/i,{'type':O(0x438)}),{Masker,Maskable,mask}=Mask(),SetOperator='=',Name=c=>Mutate$25(Effect(Mark(c,{'type':'variable\x20name'}),([P],h,t)=>{const nV=O;if(isReservedName(P))h[nV(0x71a)][nV(0x306)][nV(0x3a6)]({'type':nV(0x3bb),'pos':t[nV(0xf8)],'text':h['text']['slice'](t['pos'],h[nV(0xf8)]),'message':P+'\x20is\x20a\x20reserved\x20variable\x20which\x20cannot\x20be\x20set'});else{if(isSecretName(P))mask(h);}}),(P,[h])=>{const nD=O,t={'name':h};if(isSecretName(h))t[nD(0x47f)]=!![];P['names'][nD(0x3a6)](t);}),NamesList=c=>Mutate$25(List(c,AndListSeparator),(P,h)=>{if(h['length']>0x1)P['destruction']=!![];}),StringishName=Name(Any(Quoted$1(MultiWordIdentifier),Identifier$1,Fix(Wrap({'left':'{','right':'}'},MultiWordIdentifier),(c,[P])=>'\x22'+P+'\x22'))),StandaloneName=Name(Any(Identifier$1,Fix(Wrap({'left':'{','right':'}'},Identifier$1),(c,[P])=>P))),Value$2=c=>Mutate$25(Mark(Maskable(c),{'type':O(0x559)}),(P,[h])=>P[O(0x3fd)]['value']=h),DataValue=Value$2(AnyExpression$1),ExtractorValue=Value$2(Any(ElementValueExtractor,Node(Element$2({'explicit':!![],'AvoidTitle':Variables}),([c])=>({'isExtractor':!![],'value':c,'type':'string'})))),SomeValue=Any(Mutate$25(Value$2(OTPLiteral),c=>c[O(0x3fd)][O(0x47f)]=!![]),ExtractorValue,Value$2(Mark(Any(PreCondition(c=>c[O(0x7c7)][O(0x5ab)](O(0x6fb)),Node(Any(It,Them),(c,P)=>P['context'][O(0x6fb)])),PreCondition(c=>c['context'][O(0x5ab)]('element'),Node(Any(It,All(Its,Value$5)),(c,P)=>({'isExtractor':!![],'value':P[O(0x7c7)][O(0x807)],'type':'string'})))),{'type':O(0x22a)})),DataValue),AnyValue=Any(Mutate$25(Effect(Any(All(Article(Secret),SomeValue),All(SomeValue,Article(Secret))),(c,P)=>mask(P)),(c,P)=>c[O(0x3fd)][O(0x47f)]=!![]),SomeValue),SetVariable=Effect(Apply$25(Masker(Any(All(StoreValueAction,AnyValue,As,Article(Value$5),Of,Optional(Article(Variables)),NamesList(StringishName)),All(StoreValueAction,AnyValue,StoragePreposition,Optional(The),Variables,NamesList(StringishName)),All(SetVariableAction,Optional(Article(Variables)),NamesList(StringishName),Any(AssignmentPreposition,SetOperator),Optional(Article(Value$5)),AnyValue),All(StoreValueAction,AnyValue,StoragePreposition,NamesList(StringishName)),All(NamesList(StandaloneName),SetOperator,AnyValue)))),([c],P)=>{const nm=O;if(c[nm(0x5ac)]&&c[nm(0x3fd)][nm(0x6df)]&&typeof c[nm(0x3fd)][nm(0x6df)]==='object'&&nm(0x396)in c['data'][nm(0x6df)]&&c[nm(0x3fd)][nm(0x6df)][nm(0x3d8)]===nm(0x120)&&c[nm(0x3fd)][nm(0x6df)]['scope']===nm(0xe6)){const h=P[nm(0x71a)][nm(0x7ef)]['at'](-0x1);h[nm(0xee)]=c[nm(0x5ba)]['map'](({name:t})=>t);}if(c['destruction'])P[nm(0x71a)][nm(0x291)][nm(0x3a6)](...c[nm(0x5ba)][nm(0x205)](({name:t})=>({'name':t})));else P[nm(0x71a)][nm(0x291)][nm(0x3a6)](...c[nm(0x5ba)][nm(0x205)](({name:t})=>({'name':t,'value':c[nm(0x3fd)]['value']})));}),{Apply:Apply$24,Mutate:Mutate$24}=State({'type':O(0x745),'data':{},'scope':O(0xe6)}),SetTimeoutAction=Mark(/set|assign|define/i,{'type':O(0x438)}),ImplicitlyWaitAction=Mark(/(?:implicitly)?\s+wait|wait\s+(?:implicitly)?/i,{'type':O(0x438)}),TimeoutName=Any(Mutate$24(/(?:(?:browser|url)\s+)?nav(?:igation)?s?/i,c=>c[O(0x5ba)]=[{'name':'navigateTimeout'}]),Mutate$24(/elements?(?:\s+(?:finding|locating))?|(?:finding|locating)\s+elements?/i,c=>c['names']=[{'name':'findTimeout'}]),Mutate$24(/(?:(?:taking|capturing)\s+)?(?:screenshots?|screen\s+captures?)/i,c=>c[O(0x5ba)]=[{'name':'screenshotTimeout'}]),Mutate$24(/(?:(?:taking|capturing)\s+)?preview\s+(?:screenshots?|screen\s+captures?)/i,c=>c[O(0x5ba)]=[{'name':'previewTimeout'}])),TimeoutDefaultName=Mutate$24(Nothing$1,c=>c[O(0x5ba)]=[{'name':'timeout'}]),Value$1=Mutate$24(TimeIntervalExpression,(c,[P])=>c['data']['value']=P),SetTimeout=Apply$24(Any(All(SetTimeoutAction,Optional(The),Optional(Implicit),Wait$1,Optional(Time),TemporalPreposition,TimeoutName,Optional(EquivalencePreposition),Value$1),All(SetTimeoutAction,Optional(The),Optional(Implicit),Any(TimeoutName,TimeoutDefaultName),Wait$1,Optional(Time),Optional(EquivalencePreposition),Value$1),All(ImplicitlyWaitAction,Maximum,Value$1,TemporalPreposition,TimeoutName),All(ImplicitlyWaitAction,Any(All(TemporalPreposition,TimeoutName),TimeoutDefaultName),Maximum,Value$1))),{Apply:Apply$23,Mutate:Mutate$23,state:state$1}=State({'type':O(0x5b6)}),SetValueAction=Mark(/set/i,{'type':O(0x438)}),SelectValueAction=Mutate$23(Mark(/select|pick|choose/i,{'type':O(0x438)}),c=>c[O(0x807)]=mergeElementDescriptors(c[O(0x807)]??{},{'hints':{'type':O(0x2bc)}})),RandomlySelectAction=Mutate$23(Mark(/randomly\s+(?:select|pick|choose)/i,{'type':'actionword'}),c=>{const nr=O;c[nr(0x807)]=mergeElementDescriptors(c['element']??{},{'hints':{'type':'selectbox'}}),c[nr(0x6df)]={'isRandomValue':!![],'type':'number'};}),AttachAction=Mutate$23(Any(Mark(/attach|upload/i,{'type':O(0x438)}),All(Mark(/add|import/i,{'type':'actionword'}),File)),c=>c['element']=mergeElementDescriptors(c[O(0x807)]??{},{'hints':{'type':O(0x4e5)}})),StringValue$1=Mutate$23(StringExpression$1,(c,[P])=>c[O(0x6df)]=P),StringReferenceValue=Mutate$23(Reference$1(O(0x4ae)),(c,[P])=>c['value']=P),FileHandleValue=Mutate$23(FileHandleLiteral,(c,[P])=>c[O(0x6df)]=P),OrdinalIndex$1=Mutate$23(Index$1(OrdinalNumberExpression$1),(c,[P])=>c[O(0x6df)]=P),CardinalIndex=Mutate$23(All(Optional(NumberSign),Index$1(CardinalNumberExpression)),(c,[P])=>c[O(0x6df)]=P),RandomIndex=Mutate$23(Random,c=>c[O(0x6df)]={'isRandomValue':!![],'type':O(0x73c)}),SelectboxHint=Mutate$23(SelectboxOption,c=>c['element']=mergeElementDescriptors(c['element']??{},{'hints':{'type':O(0x2bc)}})),FileHint=Mutate$23(File,c=>c[O(0x807)]=mergeElementDescriptors(c['element']??{},{'hints':{'type':O(0x4e5)}})),Hint=Any(Mutate$23(Color$2,c=>c['element']=mergeElementDescriptors(c[O(0x807)]??{},{'hints':{'type':O(0x7d1)}})),Mutate$23(DateTime,c=>c[O(0x807)]=mergeElementDescriptors(c['element']??{},{'hints':{'type':O(0x52c)}})),Mutate$23(Date$1,c=>c[O(0x807)]=mergeElementDescriptors(c[O(0x807)]??{},{'hints':{'type':O(0x4e8)}})),Mutate$23(Time,c=>c[O(0x807)]=mergeElementDescriptors(c['element']??{},{'hints':{'type':O(0x156)}}))),InputElement=Mutate$23(Element$2,(c,[P])=>c['element']=mergeElementDescriptors(c[O(0x807)]??{},P)),StringInput=Mutate$23(StringElement,(c,[P])=>c[O(0x807)]=mergeElementDescriptors(c['element']??{},P)),SetValue=Apply$23(Any(All(SetValueAction,InputElement,Value$5,Optional(AssignmentPreposition),StringValue$1),All(Any(SetValueAction,SelectValueAction),Any(All(Article(Any(All(StringReferenceValue,Optional(RelationalPreposition)),OrdinalIndex$1,RandomIndex)),Any(All(SelectboxHint,Optional(RelationalPreposition),InputElement),All(StringInput,SelectboxHint),All(InputElement,Optional(SelectboxHint)))),All(Article(Any(All(Hint,StringValue$1),All(FileHint,Optional(Named),FileHandleValue),All(FileHandleValue,FileHint),All(SelectboxHint,Any(CardinalIndex,StringValue$1)),All(CardinalIndex,SelectboxHint),All(StringValue$1,Any(Hint,SelectboxHint)))),Dynamic(c=>{const P=All(Optional(Any(StoragePreposition,RelationalPreposition)),InputElement);return state$1(c)['element']?Optional(P):P;})),All(StringValue$1,Any(StoragePreposition,RelationalPreposition),InputElement))),All(RandomlySelectAction,Any(All(Optional(All(Optional(IndefiniteArticle),SelectboxHint)),Optional(RelationalPreposition),InputElement),All(Optional(RelationalPreposition),InputElement,Optional(SelectboxHint)))),All(AttachAction,Article(Any(All(FileHint,Optional(Named),FileHandleValue),All(FileHandleValue,Optional(FileHint)))),Optional(All(Optional(Any(StoragePreposition,RelationalPreposition)),InputElement))))),{Apply:Apply$22,Mutate:Mutate$22}=State({'type':O(0x745),'data':{},'scope':O(0xe6)}),GenerateAction=Mark(/generate/i,{'type':O(0x438)}),RandomlyGenerateAction=Mark(/randomly\s+generate/i,{'type':O(0x438)}),OTP=Mutate$22(OTPLiteral,(c,[P])=>{const nF=O;c[nF(0x5ba)]=[{'name':nF(0x3ad)}],c['data'][nF(0x6df)]=P,c[nF(0x3fd)][nF(0x47f)]=!![];}),RandomValue=Mutate$22(RandomValueLiteral,(c,[P])=>{const nE=O;c[nE(0x5ba)]=[{'name':'random\x20value'}],c[nE(0x3fd)]['value']=P;}),Generate=Effect(Apply$22(Any(All(GenerateAction,Any(OTP,RandomValue)),All(RandomlyGenerateAction,RandomValue))),([c],P)=>P[O(0x7c7)][O(0x6fb)]={'isRef':!![],'name':c[O(0x5ba)]?.[0x0]?.[O(0x3d8)],'scope':c[O(0x364)]}),Assert=Node(All(Mark(/assert|check|validate|verify|make\s+sure/i,{'type':'actionword'}),Optional(That),Condition$2),([c])=>({'type':O(0x736),'condition':c})),{Apply:Apply$21,Mutate:Mutate$21}=State({'type':'fetch'}),FetchAction$1=Mark(/send/i,{'type':O(0x438)}),Url$2=Mutate$21(Mark(Url$3,{'type':O(0x7f6)}),(c,[P])=>c[O(0x54a)]=P),Endpoint=All(Optional(Any(From,To)),Optional(The),Optional(Endpoint$1),Url$2),ExplicitEndpoint=All(Any(All(Any(From,To),Optional(The),Optional(Endpoint$1)),All(Optional(Any(From,To)),The,Optional(Endpoint$1)),All(Optional(Any(From,To)),Optional(The),Endpoint$1)),Url$2),Method$2=Mark(Mutate$21(Use(/(get|post|put|patch|head|options|trace|delete|connect)/i),(c,[P])=>c[O(0x5cc)]=P[O(0x1d1)]()),{'type':O(0x31a),'subtype':O(0x5cc)}),Auth$1=Mutate$21(State({'type':O(0x7b2)},({Mutate:c})=>{const ne=O,P=c(Mark(StringExpression$1({'escape':/[:]/}),{'type':ne(0x51f)}),(z,[R])=>z[ne(0x51f)]=R),h=c(Mark(UnquotedStringExpression({'char':/./,'escape':/[":]/}),{'type':ne(0x51f)}),(z,[R])=>z[ne(0x51f)]=R),t=c(Mark(UnquotedStringExpression({'char':/./,'escape':/[':]/}),{'type':ne(0x51f)}),(z,[R])=>z[ne(0x51f)]=R),I=c(Mark(Mark(StringExpression$1,{'type':'password'}),{'type':'secret'}),(z,[R])=>z['password']=R),K=c(Mark(Mark(UnquotedStringExpression({'char':/./,'escape':/[":]/}),{'type':ne(0x728)}),{'type':ne(0x47f)}),(z,[R])=>z[ne(0x728)]=R),j=c(Mark(Mark(UnquotedStringExpression({'char':/./,'escape':/[':]/}),{'type':ne(0x728)}),{'type':'secret'}),(z,[R])=>z[ne(0x728)]=R);return Mark(All(Optional(Any(As,With)),Optional(The),Mark(Any(User,BasicAuth$1),{'type':ne(0x412)}),Any(All(P,':',I),DoubleQuoted$1(All(h,':',K)),SingleQuoted$1(All(t,':',j)))),{'type':ne(0x31a),'subtype':ne(0x5dc)});}),(c,[P])=>c[O(0x5dc)]=P),Cookie$1=Mutate$21(State({'secret':![]},({Mutate:c,state:P})=>{const nX=O,h=c(Article(Secret),p=>p[nX(0x47f)]=!![]),t=c(Mark(StringExpression$1({'escape':/[=]/}),{'type':nX(0x46a)}),(p,[Z])=>p[nX(0x3d8)]=Z),I=c(Mark(UnquotedStringExpression({'char':/./,'escape':/["=]/}),{'type':nX(0x46a)}),(p,[Z])=>p[nX(0x3d8)]=Z),K=c(Mark(UnquotedStringExpression({'char':/./,'escape':/['=]/}),{'type':nX(0x46a)}),(p,[Z])=>p[nX(0x3d8)]=Z),j=c(Mark(StringExpression$1,{'type':nX(0x7ea)}),(p,[Z])=>p[nX(0x6df)]=Z),z=c(Mark(UnquotedStringExpression({'char':/./,'escape':/["]/}),{'type':nX(0x7ea)}),(p,[Z])=>p[nX(0x6df)]=Z),R=c(Mark(UnquotedStringExpression({'char':/./,'escape':/[']/}),{'type':nX(0x7ea)}),(p,[Z])=>p[nX(0x6df)]=Z),G=p=>Dynamic(Z=>P(Z)[nX(0x47f)]?Mark(p,{'type':'secret'}):p);return Mark(All(Optional(With),Optional(The),Optional(h),HttpCookie,Any(All(Optional(Any(Named,Name$1)),t,And,Optional(AssociationPreposition),Optional(HttpCookie),Optional(h),Value$5,G(j)),All(t,'=',G(j)),DoubleQuoted$1(All(I,'=',G(z))),SingleQuoted$1(All(K,'=',G(R))))),{'type':'fetch\x20option','subtype':'cookie'});}),(c,[P])=>(c[O(0x217)]??=[])[O(0x3a6)](P)),Headers$1=List(Any(Auth$1,Mutate$21(State({'secret':![]},({Mutate:c,state:P})=>{const ni=O,h=c(Article(Secret),R=>R[ni(0x47f)]=!![]),t=c(Mark(StringExpression$1({'escape':/[:]/}),{'type':ni(0x79a)}),(R,[G])=>R[ni(0x3d8)]=G),I=c(Mark(StringExpression$1,{'type':'header\x20value'}),(R,[G])=>R[ni(0x6df)]=G),K=c(Mark(UnquotedStringExpression({'char':/./,'escape':/["]/}),{'type':ni(0x3a4)}),(R,[G])=>R[ni(0x6df)]=G),j=c(Mark(UnquotedStringExpression({'char':/./,'escape':/[']/}),{'type':ni(0x3a4)}),(R,[G])=>R[ni(0x6df)]=G),z=R=>Dynamic(G=>P(G)['secret']?Mark(R,{'type':'secret'}):R);return Mark(All(Optional(With),Optional(The),Optional(h),HttpHeader,Any(All(Optional(Any(Named,Name$1)),t,And,Optional(AssociationPreposition),Optional(HttpHeader),Optional(h),Value$5,z(I)),All(t,':',z(I)),DoubleQuoted$1(All(t,':',z(K))),SingleQuoted$1(All(t,':',z(j))))),{'type':ni(0x31a),'subtype':ni(0x61c)});}),(c,[P])=>(c[O(0x5e5)]??=[])[O(0x3a6)](P)),Cookie$1),Optional(AndListSeparator)),BodyType=Mark(Mutate$21(Use(/(json|xml|base64)/i),(c,[P])=>(c[O(0x482)]??={'data':null})[O(0x345)]=P[O(0x1d1)]()),{'type':'body\x20type'}),BodyData=Mark(Mutate$21(AnyExpression$1,(c,[P])=>(c['body']??={'data':null})[O(0x3fd)]=P),{'type':'body\x20data'}),Body$2=Mark(All(Optional(With),Optional(BodyType),Optional(HttpBody),BodyData),{'type':O(0x31a),'subtype':'body'}),StatusCodes$1=Mark(Mutate$21(Any(/any/i,List(Use(/([1-5]\d\d)/),Optional(OrListSeparator))),(c,P)=>c['statuses']=P[O(0x67b)]>0x0?P[O(0x205)](h=>Number[O(0xce)](h)):'*'),{'type':O(0x544)}),Statuses$1=Mark(All(Optional(AndListSeparator),Any(Expect,Expecting),Any(All(Optional(The),HttpStatusCodes,Optional(':'),StatusCodes$1),All(StatusCodes$1,HttpStatusCodes))),{'type':O(0x31a),'subtype':O(0x670)}),Fetch=Effect(Apply$21(All(Any(All(FetchAction$1,Method$2,Optional(Http)),All(FetchAction$1,Optional(IndefiniteArticle),Optional(Http),Optional(Method$2)),All(Optional(Http),Method$2)),Optional(Request$1),Any(All(Any(All(Headers$1,Optional(All(Optional(AndListSeparator),All(Not(ExplicitEndpoint),Body$2)))),All(All(Not(ExplicitEndpoint),Not(Headers$1),Body$2))),Optional(All(Optional(AndListSeparator),Headers$1)),ExplicitEndpoint,Optional(Headers$1)),All(Optional(Headers$1),Endpoint,Optional(Any(All(Headers$1,Optional(All(Optional(AndListSeparator),All(Not(Statuses$1),Body$2)))),All(All(Not(Statuses$1),Not(Headers$1),Body$2)))),Optional(All(Optional(AndListSeparator),Headers$1)))),Optional(Statuses$1))),([c],P)=>{const nL=O;P[nL(0x71a)][nL(0x7dd)][nL(0x3a6)](c),P[nL(0x71a)][nL(0x291)][nL(0x3a6)]({'name':nL(0x12b)}),P['context'][nL(0x6fb)]={'isRef':!![],'name':nL(0x12b)};}),Evaluate=Effect(Node(All(Mark(/evaluate|execute|run/i,{'type':O(0x438)}),Optional(The),JavaScript,Optional(CodeSnippet),Optional(/[:-]/),JSExpressionLiteral$1),([c])=>({'type':'evaluate','js':c})),(c,P)=>{const nA=O;P[nA(0x71a)][nA(0x291)][nA(0x3a6)]({'name':'js-result'}),P['context'][nA(0x6fb)]={'isRef':!![],'name':nA(0x22c)};}),{Apply:Apply$20,Mutate:Mutate$20}=State({'type':O(0x633)}),NavigateAction=All(Any(All(Mark(/navigate/i,{'type':O(0x438)}),Optional(All(Optional(The),Browser$1))),Mark(/goto|browse|visit|open/i,{'type':'actionword'})),Optional(To),Optional(The)),GoToPageAction=All(Mark(/go/i,{'type':O(0x438)}),Optional(To),Optional(The)),AbsoluteUrl=Mutate$20(Mark(Url$3,{'type':O(0x155)}),(c,[P])=>c[O(0x54a)]=P),ExplicitAbsoluteUrl=Mutate$20(Mark(ExplicitUrl,{'type':O(0x155)}),(c,[P])=>c[O(0x54a)]=P),RelativeUrl=Mutate$20(Mark(StringExpression$1,{'type':O(0x155)}),(c,[P])=>(c[O(0x54a)]=P,c[O(0x19c)]=!![])),Direction$1=Any(Mutate$20(Any(Back,Previous),c=>c[O(0x587)]=O(0x6c5)),Mutate$20(Any(Forward,Next),c=>c[O(0x587)]='forward')),VerboseDirection=Any(Mutate$20(All(Back,To,Optional(The),Previous,Website),c=>c[O(0x587)]=O(0x6c5)),Mutate$20(All(Forward,To,Optional(The),Next,Website),c=>c[O(0x587)]=O(0x75d))),CardinalTimes=Mutate$20(CardinalNumberExpression,(c,[P])=>c[O(0x2dc)]=P),IterativeTimes=Mutate$20(Any(All(CardinalNumberExpression,Times$3),IterativeNumberExpression),(c,[P])=>c[O(0x2dc)]=P),StatusCodes=Mutate$20(Any(/any/i,List(Use(/([1-5]\d\d)/),Optional(OrListSeparator))),(c,P)=>c[O(0x670)]=P['length']>0x0?P['map'](h=>Number[O(0xce)](h)):'*'),Statuses=All(Optional(AndListSeparator),Any(Expect,Expecting),Any(All(Optional(The),HttpStatusCodes,Optional(':'),StatusCodes),All(StatusCodes,HttpStatusCodes))),ExplicitNavigateBody=Any(All(VerboseDirection,Optional(IterativeTimes)),All(CardinalTimes,Websites,Direction$1),All(Direction$1,Any(All(CardinalTimes,Websites),Optional(Website))),All(RelativeUrl,Relative,To,Optional(The),Current,Optional(Any(Url$4,Website)),Optional(Statuses)),All(Any(Url$4,All(Website,Optional(LocationPreposition))),AbsoluteUrl,Optional(Statuses))),Navigate=Apply$20(Any(All(NavigateAction,Any(ExplicitNavigateBody,All(AbsoluteUrl,Optional(Any(Url$4,Website)),Optional(Statuses)))),All(GoToPageAction,Any(ExplicitNavigateBody,All(ExplicitAbsoluteUrl,Optional(Any(Url$4,Website)),Optional(Statuses)),All(AbsoluteUrl,Any(Url$4,Website),Optional(Statuses)),All(AbsoluteUrl,Optional(Any(Url$4,Website)),Statuses))))),{Apply:Apply$19,Mutate:Mutate$19}=State({'type':O(0x316)}),FocusAction=Mark(/(?:(?:set\s+)?focus)/i,{'type':'actionword'}),Element$1=Mutate$19(Element$2,(c,[P])=>c[O(0x807)]=P),Focus=Apply$19(All(FocusAction,Optional(LocationPreposition),Element$1)),CheckAction=Mark(/check|tick|select/i,{'type':O(0x438)}),UncheckAction=Mark(/uncheck|untick|unselect/i,{'type':'actionword'}),Check=Node(All(Any(Node(CheckAction,()=>!![]),Node(UncheckAction,()=>![])),Element$2),([c,P])=>({'type':O(0xc7),'value':c,'element':P})),Clear=Node(All(Mark(/clear/i,{'type':O(0x438)}),Any(All(Article(String$1),LocationPreposition,Element$2),Longest(Node(String$1,()=>({'state':{'focused':!![]},'fallback':{'type':O(0x254)}})),Element$2))),([c])=>({'type':O(0x769),'element':c})),{Apply:Apply$18,Mutate:Mutate$18}=State({'type':O(0x64a)}),EraseAction=Mark(/erase|delete|remove/i,{'type':O(0x438)}),Size=Mutate$18(CardinalNumberExpression,(c,[P])=>c[O(0x5a4)]=P),DefaultSize=Mutate$18(Optional(IndefiniteArticle),c=>c[O(0x5a4)]=0x1),TargetTextbox=Mutate$18(Element$2,(c,[P])=>c['element']=P),Erase=Apply$18(All(EraseAction,Any(All(Size,Characters),All(DefaultSize,Character)),Optional(All(Optional(LocationPreposition),TargetTextbox)))),{Apply:Apply$17,Mutate:Mutate$17}=State({'type':O(0x273)}),HoverAction=Mark(/hover(?:\s+(?:over|inside|on(?:(?:\s+the)?\s+center\s+of|\s+top(?:\s+of)?)?))?|(?:(?:move|place)?\s+(?:the\s+)?)?(?:cursor|mouse)\s+over/i,{'type':O(0x438)}),Anchor$2=Mutate$17(Anchor$3({'Element':Element$2}),(c,[P])=>c[O(0x807)]?c[O(0x807)][O(0x718)]=[P,c[O(0x807)][O(0x718)]??[]][O(0xdb)]():c[O(0x807)]={'anchor':P}),TargetElement$3=Mutate$17(Element$2,(c,[P])=>c[O(0x807)]?Object[O(0x561)](c[O(0x807)],P,P[O(0x718)]&&c[O(0x807)]['anchor']?{'anchor':[c[O(0x807)][O(0x718)]??[],P[O(0x718)]??[]][O(0xdb)]()}:{}):c[O(0x807)]=P),FocusedElement$2=Mutate$17(ImplicitElement,(c,[P])=>c[O(0x807)]=P),Hover=Apply$17(All(HoverAction,Any(All(Optional(LocationPreposition),FocusedElement$2),All(Optional(Weak(Anchor$2)),Optional(LocationPreposition),TargetElement$3)))),{Apply:Apply$16,Mutate:Mutate$16}=State({'type':O(0x345)}),TypeActionKeyword=/type|enter|fill|write|insert/i,TypeAction=Mark(TypeActionKeyword,{'type':'actionword'}),GenerateAndTypeAction=Mark(All(/generate/i,And,TypeActionKeyword),{'type':O(0x438)}),Preposition=Any(LocationPreposition,FunctionalPreposition,For),StringValue=Mutate$16(Mark(StringExpression$1,{'type':O(0x6df)}),(c,[P])=>c['value']=P),OTPValue=Mutate$16(Mark(OTPLiteral,{'type':'value'}),(c,[P])=>c[O(0x6df)]=P),ClipboardValue=Mutate$16(Mark(Any(PreCondition(c=>c[O(0x7c7)]['has'](O(0x807)),Node(All(Its,Value$5),(c,P)=>({'isExtractor':!![],'value':P[O(0x7c7)][O(0x807)],'type':O(0x4ae)}))),PreCondition(c=>c[O(0x7c7)][O(0x5ab)]('clipboard'),Node(Any(It,Them),(c,P)=>P[O(0x7c7)][O(0x6fb)]))),{'type':O(0x6df)}),(c,[P])=>c[O(0x6df)]=P),UnquotedCompoundValue=Fix(Mutate$16(Mark(All(UnquotedStringLiteral$1,UnquotedStringLiteral$1),{'type':'value'}),(c,[P,h])=>c[O(0x6df)]=P+'\x20'+h),c=>'\x22'+c+'\x22'),Value=Any(OTPValue,ClipboardValue,StringValue),MaskedValue=Mutate$16(Mark(Value,{'type':O(0x47f)}),c=>c[O(0x47f)]=!![]),SecretValue=Any(All(Optional(The),Secret,MaskedValue),All(MaskedValue,Secret)),TextboxElement=Mutate$16(Any(ImplicitElement,Element$2),(c,[P])=>c[O(0x807)]=P),AnchoredTextboxElement=Mutate$16(Anchor$3({'Element':Element$2}),(c,[P])=>c[O(0x807)]={'anchor':P}),SecretTextboxElement=Longest(PostCondition(TextboxElement,([c])=>!!c[O(0x47f)]),All(Optional(The),Secret,TextboxElement)),DefaultTextboxElement=Mutate$16(PreCondition(c=>c['context']['has'](O(0x807)),Node(Nothing$1,(c,P)=>P[O(0x7c7)][O(0x807)])),(c,[P])=>c[O(0x807)]={'state':{'focused':!![]},'fallback':P}),SecretDefaultTextboxElement=PreCondition(c=>c['context'][O(0x5ab)](O(0x807))&&!!c[O(0x7c7)][O(0x807)][O(0x47f)],DefaultTextboxElement),ChromeTextboxElement=Mutate$16(ChromeTextbox,(c,[P])=>c[O(0x807)]=P),ExplicitChromeTextboxElement=Mutate$16(All(ExplicitChromeTextbox),(c,[P])=>c[O(0x807)]=P),ConventionalTextboxElement=Any(All(Preposition,TextboxElement),AnchoredTextboxElement),TypeBody=Any(All(Url$4,Value,Preposition,ChromeTextboxElement),All(Value,Preposition,ExplicitChromeTextboxElement),All(MaskedValue,Preposition,SecretTextboxElement),All(Any(SecretValue,Value),ConventionalTextboxElement),All(SecretValue,Optional(DefaultTextboxElement)),All(SecretTextboxElement,MaskedValue),All(TextboxElement,SecretValue),All(OTPValue,Optional(DefaultTextboxElement)),Longest(All(MaskedValue,SecretDefaultTextboxElement),All(Value,Optional(DefaultTextboxElement)),UnquotedCompoundValue,All(TextboxElement,Value))),Type$1=Apply$16(Any(All(TypeAction,TypeBody),All(GenerateAndTypeAction,OTPValue,Optional(Any(ConventionalTextboxElement,DefaultTextboxElement))))),PartialType=Apply$16(TypeBody),{Apply:Apply$15,Mutate:Mutate$15}=State({'type':O(0x454)}),SearchAction=Mark(/search/i,{'type':O(0x438)}),QuotedValue=Mutate$15(Mark(QuotedStringExpression,{'type':O(0x6df)}),(c,[P])=>c[O(0x6df)]=P),UnquotedValue=Fix(Mutate$15(Mark(All(Anything$1),{'type':O(0x6df)}),(c,[P])=>c[O(0x6df)]=P[O(0x7b1)]()),c=>'\x22'+c+'\x22'),Input=Mutate$15(Element$2,(c,[P])=>c[O(0x807)]=P),Search=Dynamic(c=>{const nY=O,P=Apply$15(All(SearchAction,Optional(For),Optional(The),Longest(All(Any(QuotedValue,UnquotedValue),Optional(All(Optional(LocationPreposition),PostCondition(Input,([h])=>!!h[nY(0x345)])))),UnquotedValue)));if(!c[nY(0x336)][nY(0x148)])return P;else return Node(Text$2(P),([h],t)=>{const nU=nY,I={'type':nU(0x148),'description':h};return t[nU(0x71a)][nU(0x2bf)][nU(0x3a6)](I),I;});}),{Apply:Apply$14,Mutate:Mutate$14}=State({'type':O(0x519)}),ClickAction=Mark(All(Optional(All(Joinable(Any(Mutate$14(Any(Node(/left/i,()=>O(0x280)),Node(/right/i,()=>O(0x760))),(c,[P])=>c[O(0x275)]=P),Mutate$14(MultiplicativeNumberLiteral,(c,[P])=>c[O(0x2dc)]=P))),Optional('-'))),/click|press|hit|tap|open|expand|collapse/i),{'type':O(0x438)}),Anchor$1=Mutate$14(Anchor$3({'Element':Element$2}),(c,[P])=>c[O(0x807)]?c['element'][O(0x718)]=[P,c[O(0x807)][O(0x718)]??[]][O(0xdb)]():c[O(0x807)]={'anchor':P}),TargetElement$2=Mutate$14(Element$2,(c,[P])=>c[O(0x807)]?Object[O(0x561)](c['element'],P,P['anchor']&&c[O(0x807)]['anchor']?{'anchor':[c[O(0x807)][O(0x718)]??[],P['anchor']??[]][O(0xdb)]()}:{}):c[O(0x807)]=P),FocusedElement$1=Mutate$14(ImplicitElement,(c,[P])=>c['element']=P),ExplicitChromeElement=Mutate$14(ExplicitChromeButton,(c,[P])=>c['element']=P),ChromeElement=Mutate$14(ChromeButton,(c,[P])=>c[O(0x807)]=P),ControlKey=Mutate$14(Mark(Stringish(ControlKey$1),{'type':O(0x6df)}),(c,[P])=>(c[O(0x342)]??=[])[O(0x3a6)](P)),Key$1=Mutate$14(Mark(Stringish(KeyboardKey),{'type':O(0x6df)}),(c,[P])=>(c['keys']??=[])[O(0x3a6)](P)),ChordSeparator$1=Any(AndListSeparator,'+',Nothing$1),Chord$1=List(All(Optional(The),Any(All(KeyboardKey$1,Key$1),All(Key$1,Optional(KeyboardKey$1)))),ChordSeparator$1),Click=Apply$14(Any(All(Optional(All(ControlKey,Optional(All(Optional(ChordSeparator$1),Chord$1,Optional(ChordSeparator$1))))),ClickAction,Any(All(Optional(LocationPreposition),FocusedElement$1),All(Optional(LocationPreposition),ExplicitChromeElement),All(Optional(Weak(Anchor$1)),Optional(LocationPreposition),TargetElement$2)),Optional(All(While,Holding,Chord$1))),All(LocationPreposition,Optional(The),BrowserToolbar,Optional(ActionModifierSeparator),ClickAction,Optional(LocationPreposition),ChromeElement))),{Apply:Apply$13,Mutate:Mutate$13}=State({'type':O(0x666)}),ScrollAction=Mark(/scroll/i,{'type':O(0x438)}),GoToPositionAction=Mark(/go/i,{'type':'actionword'}),Direction=Mutate$13(Any(Node(/upwards?|up/i,()=>'up'),Node(/downwards?|down/i,()=>'down'),Node(/left/i,()=>O(0x280)),Node(/right/i,()=>O(0x760))),(c,[P])=>c[O(0x587)]=P),Times$1=Mutate$13(Any(IterativeNumberLiteral,All(CardinalNumberExpression,Times$3)),(c,[P])=>c[O(0x2dc)]=P),Distance=Mutate$13(All(QuantitativeNumberExpression,Optional(Pixels)),(c,[P])=>c[O(0x5f4)]=P),AbsolutePosition=Mutate$13(All(Optional(To),AbsolutePosition$1),(c,[P])=>{const ns=O;delete c[ns(0x587)],delete c[ns(0xe7)],c[ns(0x446)]=P;}),Fraction=Mutate$13(All(Optional(The),Any(InnerRelationalOffset,QuantitativeNumberExpression)),(c,[P])=>c[O(0xe7)]=P),ContextElement=Mutate$13(Any(Viewport,Element$2({'AvoidTitle':Any(Direction,AbsolutePosition)})),(c,[P])=>c['element']=P),PageContextElement=Mutate$13(Any(Viewport,PageElement),(c,[P])=>c[O(0x807)]=P),TargetElement$1=Mutate$13(Element$2,(c,[P])=>{const nx=O;if(c[nx(0x446)]==='bottom')P[nx(0xf5)]='backward';delete c[nx(0x587)],delete c['position'],c[nx(0x807)]=P;}),TargetExplicitElement=Mutate$13(ExplicitElement,(c,[P])=>{const nB=O;if(c['position']===nB(0x525))P[nB(0xf5)]=nB(0x24f);delete c[nB(0x587)],delete c[nB(0x446)],c[nB(0x807)]=P;}),Scroll=Apply$13(Any(All(Any(ScrollAction,GoToPositionAction),Any(All(Fraction,Any(All(Optional(Any(Of,LocationPreposition)),ContextElement,Optional(Any(Direction,AbsolutePosition))),All(Direction,Optional(AbsolutePosition),Optional(All(Optional(Any(Of,LocationPreposition)),ContextElement))),All(AbsolutePosition,Optional(All(Optional(Any(Of,LocationPreposition)),ContextElement))))),All(Direction,Optional(Any(All(Times$1,Optional(All(Optional(Fraction),Optional(AbsolutePosition),Optional(Any(Of,LocationPreposition)),ContextElement))),All(Optional(By),Distance),All(Optional(Fraction),Optional(AbsolutePosition),Optional(Any(Of,LocationPreposition)),Any(All(To,TargetElement$1),ContextElement)),Fraction))),All(AbsolutePosition,Optional(Any(All(Any(Of,LocationPreposition),ContextElement),PageContextElement,TargetElement$1))),All(ContextElement,Any(All(Direction,Optional(By),Distance),All(Direction,Optional(Times$1),Optional(Fraction)),All(Optional(Times$1),Fraction,Direction))))),All(ScrollAction,To,TargetElement$1),All(GoToPositionAction,To,TargetExplicitElement))),{Apply:Apply$12,Mutate:Mutate$12}=State({'type':O(0x12e)}),NavigatePdfAction=Mark(/go|navigate|jump|switch|flip/i,{'type':O(0x438)}),ShowPdfPageAction=Mark(/open|view|show/i,{'type':'actionword'}),PdfPage=Mutate$12(Any(All(Any(OrdinalNumberExpression$1,Node(Last$1,()=>-0x1)),Any(PdfPage$1,Page)),All(Any(PdfPage$1,Page),Optional(Any(NumberSign,Number$1)),CardinalNumberExpression)),(c,[P])=>c[O(0x514)]=P),NavigatePdf=Apply$12(All(Any(All(NavigatePdfAction,To),ShowPdfPageAction),Optional(The),PdfPage)),{Apply:Apply$11,Mutate:Mutate$11}=State({'type':O(0x2a1)}),WaitAction=Mark(/wait|halt|pause|delay|block/i,{'type':O(0x438)}),TimeInterval=Mutate$11(TimeIntervalExpression,(c,[P])=>c['timeout']=P),Condition$1=Any(Mutate$11(Condition$2,(c,[P])=>c[O(0x29a)]=P),Mutate$11(Element$2,(c,[P])=>c['condition']={'isCondition':!![],'operation':{'operator':O(0x1ae),'operands':[{'isOperand':!![],'value':P}]}})),Wait=Apply$11(All(WaitAction,Optional(Any(All(Optional(For),Optional(Maximum),TimeInterval,Optional(All(Any(For,Until),Condition$1))),All(Any(For,Until),Condition$1,Optional(All(Optional(For),Optional(Maximum),TimeInterval))))))),{Apply:Apply$10,Mutate:Mutate$10}=State({'type':O(0x113)}),RefreshAction=Mark(/refresh|reload/i,{'type':O(0x438)}),Type=Any(Mutate$10(/hard(?:ly)?|(?:ignore|ignoring|skip|skipping)(?:\s+the)?(?:\s+cache)/i,c=>c['value']=O(0x371)),Mutate$10(/soft(?:ly)?/i,c=>c[O(0x6df)]=O(0x50f))),Refresh=Apply$10(Any(All(RefreshAction,Optional(All(Optional(The),Any(WebPage,BrowserTab))),Optional(Type)),All(Type,RefreshAction,Optional(All(Optional(The),Any(WebPage,BrowserTab)))))),{Apply:Apply$9,Mutate:Mutate$9}=State({'type':O(0x655)}),HitKeyAction=Mark(/hit|press/i,{'type':O(0x438)}),TypeKeyAction=Mark(/type/i,{'type':'actionword'}),InputSource=All(LocationPreposition,Optional(The),Keyboard$1),Times=Mutate$9(Any(All(CardinalNumberExpression,Times$3),IterativeNumberExpression),(c,[P])=>c[O(0x2dc)]=P),Key=Mutate$9(Mark(Stringish(KeyboardKey),{'type':O(0x6df)}),(c,[P])=>(c[O(0x342)]??=[])[O(0x3a6)](P)),ArrowKey=Mutate$9(ArrowKey$1,(c,[P])=>(c[O(0x342)]??=[])['push'](P)),BackspaceKey=Mutate$9(BackspaceKey$1,(c,[P])=>(c[O(0x342)]??=[])[O(0x3a6)](P)),DeleteKey=Mutate$9(DeleteKey$1,(c,[P])=>(c[O(0x342)]??=[])[O(0x3a6)](P)),ChordSeparator=Any(AndListSeparator,'+',Nothing$1),Chord=List(All(Not(Times),Optional(The),Any(All(KeyboardKey$1,Key),All(Key,Optional(KeyboardKey$1)))),ChordSeparator),ExplicitChord=List(All(Not(Times),Optional(The),Any(All(KeyboardKey$1,Key),All(Key,KeyboardKey$1))),ChordSeparator),HitKey=Apply$9(Any(All(All(InputSource,Optional(','),Any(HitKeyAction,TypeKeyAction)),Optional(LocationPreposition),Chord,Optional(KeyboardKeys),Optional(Times)),All(HitKeyAction,Optional(LocationPreposition),Chord,Optional(Any(KeyboardKeys,InputSource)),Optional(Times)),All(TypeKeyAction,Optional(LocationPreposition),Any(All(ExplicitChord,Optional(Any(KeyboardKeys,InputSource))),All(Chord,Any(KeyboardKeys,InputSource))),Optional(Times)))),HitArrowKey=Apply$9(All(ArrowKey,Optional(Times))),HitBackspaceKey=Apply$9(All(BackspaceKey,Optional(Times))),HitDeleteKey=Apply$9(All(DeleteKey,Optional(Times))),{Apply:Apply$8,Mutate:Mutate$8}=State({'type':O(0x25f)}),AcceptDialogAction=Mutate$8(Mark(/accept/i,{'type':O(0x438)}),c=>c[O(0x6df)]=!![]),DismissDialogAction=Mutate$8(Mark(/dismiss|cancel|reject|close/i,{'type':O(0x438)}),c=>c[O(0x6df)]=![]),ClickDialogAction=Mark(/click/i,{'type':O(0x438)}),DialogButtonTitle=Any(Mutate$8(Stringish(/accept|ok/i),c=>c['value']=!![]),Mutate$8(Stringish(/dismiss|cancel|reject|close/i),c=>c[O(0x6df)]=![])),Condition=Mutate$8(/(?:(?:(?:to\s+be)|(it\s+)?is)\s+)?(?:visible|shown)|(?:(?:to|is)\s+)?(?:appear|shown)|(?:to\s+)show(?:\s+up)/i,c=>c[O(0x29a)]={'type':O(0x1ae)}),Alert=Apply$8(All(Any(All(AcceptDialogAction,Optional(The),BrowserDialog),All(DismissDialogAction,Optional(The),BrowserDialog),All(ClickDialogAction,Optional(LocationPreposition),Optional(The),Any(All(BrowserDialog,DialogButtonTitle,Button),All(DialogButtonTitle,BrowserDialog,Button),All(DialogButtonTitle,Button,Any(LocationPreposition,Of),Optional(The),BrowserDialog)))),Optional(All(Optional(Only),If$1,Condition)))),{Apply:Apply$7,Mutate:Mutate$7}=State({'type':O(0x77f)}),SwitchTargetAction=Mark(/switch\s+to|change\s+to|focus\s+on|click|select/i,{'type':O(0x438)}),Title=Mutate$7(StringExpression$1,(c,[P])=>c[O(0x81c)]=P),Index=Mutate$7(Index$1(OrdinalNumberExpression$1),(c,[P])=>c[O(0x3a1)]=P),Position=c=>Mutate$7(SequentialRelativePosition(c),(P,[{position:h}])=>P[O(0x446)]=h),SwitchTarget=Apply$7(All(SwitchTargetAction,Optional(The),Any(Position(BrowserTab),All(Index,BrowserTab),All(BrowserTab,Optional(Named),Title),All(Possessive(Browser$1),Title,Tab),All(Title,BrowserTab)))),{Apply:Apply$6,Mutate:Mutate$6}=State({'type':'create\x20target'}),CreateTargetAction=Mark(/create|open/i,{'type':O(0x438)}),Url$1=Mutate$6(Mark(Url$3,{'type':O(0x155)}),(c,[P])=>c[O(0x54a)]=P),CreateTarget=Apply$6(All(CreateTargetAction,Article(All(Optional(New),BrowserTab)),Optional(All(Any(LocationPreposition,AssociationPreposition),Article(Any(Url$4,Website)),Url$1)))),CloseTarget=Node(All(Mark(/close/i,{'type':O(0x438)}),Optional(The),Optional(Current),BrowserTab),()=>({'type':O(0x74b)})),{Apply:Apply$5,Mutate:Mutate$5}=State({'type':O(0x15c)}),CloseAction=Mark(/close|dismiss/i,{'type':'action'}),TargetElement=Mutate$5(Element$2,(c,[P])=>c['element']=P),FocusedElement=Mutate$5(ImplicitElement,(c,[P])=>c[O(0x807)]=P),Close=Apply$5(All(CloseAction,Optional(LocationPreposition),Any(FocusedElement,TargetElement))),{Apply:Apply$4,Mutate:Mutate$4}=State({'type':'go'}),Go=Apply$4(All(Disambiguate(All(Mark(/go/i,{'type':'actionword'}),Optional(To),Optional(The)),c=>[c+O(0x1e3),c+'\x20element']),Mutate$4(StringExpression$1,(c,[P])=>c[O(0x653)]=P))),VisualCheck=Node(Mark(/visual\s+check/i,{'type':O(0x438)}),()=>({'type':'visual\x20check'})),{Apply:Apply$3,Mutate:Mutate$3}=State({'type':O(0x148)}),FillAction=Mark(/fill/i,{'type':'actionword'}),FillOutAction=Mark(/fill\s+out/i,{'type':O(0x438)}),Form=PostCondition(Element$2,([c])=>c[O(0x345)]===O(0x3d6)),Description=c=>Mutate$3(Text$2(c),(P,[h])=>P['description']=h),Intent=PreCondition(c=>c[O(0x336)]['intent'],Effect(Apply$3(Any(Description(All(FillOutAction,Anything$1)),Description(All(FillAction,Form)))),([c],P)=>P[O(0x71a)][O(0x2bf)][O(0x3a6)](c))),{Apply:Apply$2,Mutate:Mutate$2,state}=State({'type':O(0x533)}),InitializeScopeAction=Mark(/run|execute|invoke|call|do|perform/i,{'type':'actionword'}),ScopeName=Mutate$2(Mark(StringLiteral$1,{'type':O(0x6d0)}),(c,[P])=>c[O(0x3d8)]=P),Scope$1=Mark(All(Optional(All(Optional(Each),Optional(Of),Optional(The),TestSteps,Optional(Any(LocationPreposition,Of)))),Optional(The),Any(All(CustomFlowTest,ScopeName),All(ScopeName,Optional(CustomFlowTest)))),{'type':O(0x2f3)}),Parameter=Mutate$2(Effect(State({'secret':![]},({Mutate:c,state:P})=>{const nu=O,h=c(Article(Secret),R=>R[nu(0x47f)]=!![]),t=c(Effect(Mark(Node(StringLiteral$1({'escape':/[:=]/}),([R])=>R[nu(0x1d1)]()),{'type':nu(0x4fc)}),([R],G,p)=>{const nd=nu;if(isReservedName(R))G[nd(0x71a)][nd(0x306)]['push']({'type':nd(0x640),'pos':p[nd(0xf8)],'text':G['text'][nd(0x1b6)](p[nd(0xf8)],G[nd(0xf8)]),'message':R+nd(0x7c1)});}),(R,[G])=>{const nM=nu;R['name']=G;if(isSecretName(G))R[nM(0x47f)]=!![];}),I=PostCondition(t,(R,G)=>P(G)['secret']),K=c(Mark(AnyExpression$1,{'type':nu(0x258)}),(R,[G])=>R[nu(0x6df)]=G),j=Mark(K,{'type':nu(0x47f)}),z=R=>Dynamic(G=>P(G)[nu(0x47f)]?Mark(R,{'type':nu(0x47f)}):R);return Any(All(j,StoragePreposition,Optional(The),I),All(Optional(h),z(K),StoragePreposition,Optional(The),t),All(t,Any(All(Any(AssignmentPreposition,Be),Optional(The)),/[:=]/),Optional(h),z(K)));}),([c],P,h)=>{const nq=O;if(state(P)['parameters']?.['some'](({name:t})=>t===c[nq(0x3d8)]))P[nq(0x71a)][nq(0x306)][nq(0x3a6)]({'type':nq(0x700),'pos':h['pos'],'text':P[nq(0x532)][nq(0x1b6)](h[nq(0xf8)],P['pos']),'message':nq(0xb2)+c['name']+'\x20is\x20already\x20defined'});}),(c,[P])=>(c[O(0x11a)]??=[])[O(0x3a6)](P)),Parameters=Mark(List(All(Optional(Any(With,When,Using)),Optional(Parameters$1),Parameter),AndListSeparator),{'type':'scope\x20parameters'}),AssertionType=Any(Node(/visual\s+and\s+(?:non[-\s]?visual|textual)|(?:non[-\s]?visual|textual)\s+and\s+visual/i,()=>O(0x630)),Node(/visual/i,()=>O(0x14e)),Node(/non[-\s]?visual|textual/i,()=>'nonvisual')),Options$1=Mark(List(All(Any(All(Any(Run,Running),Optional(All(Each,Optional(All(Of,Optional(The)))))),All(Dont,Skip),All(Without,Skipping)),Any(Mutate$2(All(Optional(AssertionType),Assertions),(c,[P=O(0x630)])=>{const nJ=O,h=c[nJ(0x336)]??={};if(!h[nJ(0x480)]||P===nJ(0x630))h[nJ(0x480)]=P;else{if(h['assertions']!==nJ(0x630)&&h[nJ(0x480)]!==P)h[nJ(0x480)]=nJ(0x630);}}),Mutate$2(Article(All(Start,Url$4)),c=>(c[O(0x336)]??={})['navigation']=O(0x630)))),AndListSeparator),{'type':'scope\x20options'}),InitializeScope=Effect(Apply$2(Mark(All(InitializeScopeAction,Scope$1,Optional(All(Optional(AndListSeparator),Parameters)),Optional(All(Optional(AndListSeparator),Options$1))),{'type':O(0x36e),'subtype':O(0x533)})),([c],P)=>P[O(0x71a)][O(0x5db)][O(0x3a6)]({'name':c[O(0x3d8)],'parameters':(c[O(0x11a)]??[])[O(0x205)](({name:h})=>h),'options':c[O(0x336)]})),IfKeyword=Mark(/(?:only\s+)?if(?:\s+and\s+only\s+if)?|(?:given|providing)\s+that/i,{'type':O(0x2ab)}),UnlessKeyword=Mark(/unless/i,{'type':O(0x2ab)}),ElseKeyword=Mark(/else|otherwise/i,{'type':'keyword'}),Block=(c,{collapseElseif:collapseElseif=![]}={})=>Mark(c,{'type':O(0x1db),'mutate':collapseElseif?(P,[h])=>{const ny=O;if(h?.[ny(0x67b)]===0x1&&h[0x0]?.[ny(0x345)]==='if')P['type']='empty';}:void 0x0}),Then=All(Then$1,Optional(All(Run,Optional(All(Optional(Any(The,These,This)),Following)),Optional(TestStep),Optional(TestSteps))),Optional(ActionModifierSeparator)),Else=c=>{const nl=O;return Node(All(Optional(BlockSeparator),Mark(ElseKeyword,{'type':nl(0x36e),'subtype':'else'}),Optional(ActionModifierSeparator),Block(Optional(c),{'collapseElseif':!![]})),([P],h)=>{const nC=nl;return h['collections'][nC(0x211)]['length']=0x0,h[nC(0x71a)]['conditionals'][nC(0x3a6)](P?.[0x0][nC(0x345)]==='if'?'elseif':'else'),P??[];});},If=c=>{const nO=O;return Node(All(Mark(All(Any(All(IfKeyword,Condition$2),All(UnlessKeyword,NegativeCondition))),{'type':nO(0x36e),'subtype':'if'}),Optional(Any(All(Optional(ActionModifierSeparator),Then),ActionModifierSeparator)),Block(Optional(c)),Optional(Else(c))),([P,h,t],I)=>{const H0=nO;I['collections'][H0(0x211)][H0(0x67b)]=0x0,I[H0(0x71a)][H0(0x211)]['push']('if');const K={'type':'if','condition':P};if(h)K[H0(0x311)]=h;if(t)K['otherwise']=t;return K;});};Sanitize$1(ElementType$1);const Currency=Any(Any(/USD/i,/\$/,/U\.?S\.?\s*D(?:ollars?)?/i,/United\s*States\s*D(?:ollars?)?/i),Any(/EUR?O?s?/i,/€/),Any(/GBP/i,/£/,/Pounds?\s*(?:Sterling)?/i,/Great\s*Britain\s*Pounds?/i),Any(/JPY/i,/¥/,/(?:Japanese\s*)?Yen/i),Any(/CHF/i,/Fr\.?/i,/(?:Swiss\s*)?Francs?/i),Any(/CAD/i,/C(?:an)?\$/,/Canad(?:ian|a)\s*D(?:ollars?)?/i),Any(/AUD/i,/A(?:us)?\$/,/Austral(?:ian|ia)\s*D(?:ollars?)?/i),Any(/NZD/i,/NZ\$/,/New\s*Zealand\s*D(?:ollars?)?/i),Any(/CNY/i,/RMB/i,/CN¥/,/元/,/(?:Chinese\s*)?Yuan/i,/Renminbi/i),Any(/HKD/i,/HK\$/,/Hong\s*Kong\s*D(?:ollars?)?/i),Any(/SGD/i,/S\$/,/Singapore\s*D(?:ollars?)?/i),Any(/KRW/i,/₩/,/(?:South\s*)?Korean\s*Won/i),Any(/INR/i,/₹/,/Rs\.?/i,/(?:Indian\s*)?Rupees?/i),Any(/SEK/i,/(?:Swedish\s*)?Kron(?:a|or)/i),Any(/NOK/i,/(?:Norwegian\s*)?Kron(?:e|er)/i),Any(/TRY/i,/₺/,/TL/i,/(?:Turkish\s*)?Liras?/i),Any(/MXN/i,/Mex\$/,/(?:Mexican\s*)?Pesos?/i),Any(/BRL/i,/R\$/,/(?:Brazilian\s*)?Re(?:al|ais)/i),Any(/ZAR/i,/Rand/i,/R/)),SUPPORTED_LOCALES=['en','tr','es','fr','de','it','pt','he'];function getMonthsPattern(c){const H1=O,P=new Set(),h=new Intl[(H1(0x2f5))](c,{'month':'long'}),t=new Intl[(H1(0x2f5))](c,{'month':H1(0x81d)});for(let K=0x0;K<0xc;K++){const j=new Date(0x7d0,K,0x1);P[H1(0x22d)](h[H1(0x596)](j)[H1(0x1d1)]()),P[H1(0x22d)](t[H1(0x596)](j)[H1(0x1d1)]());}const I=Array[H1(0x37c)](P)[H1(0x44e)]('|');return Use(new RegExp(I,'i'));}const Month=Any(...SUPPORTED_LOCALES[O(0x205)](c=>getMonthsPattern(c))),DateDelim=/[\/\-\.]/,TimeValue=Use(/(?:\d{1,2}:\d{2}(?::\d{2})?(?:\s*[ap]m)?)|(?:\d{1,2}\s*[ap]m)/i),TimeZone=Any(/Z/i,All(/[+-]/,/\d{2}/,Optional(All(/:?/,/\d{2}/)))),Year=/\d{4}/,IsoDate=All(Year,/-/,/\d{2}/,/-/,/\d{2}/,Optional(All(/T|\s+/,TimeValue,Optional(TimeZone)))),NumericDate=All(/\d{1,2}/,DateDelim,/\d{1,2}/,DateDelim,/\d{2,4}/),TextDateMonthFirst=All(Month,Optional(/\./),Optional(/\s+/),OrdinalNumberLiteral$1,Optional(All(/,?\s+/,Year))),TextDateDayFirst=All(OrdinalNumberLiteral$1,Optional(/\s+/),Optional(Of),Optional(/\s+/),Month,Optional(/\.?/),Optional(All(/,?\s+/,Year))),DateValue=Mark(Any(IsoDate,NumericDate,All(Month,Optional(/\./),Optional(/\s+/),Any(OrdinalNumberLiteral$1,NonnegativeIntegerNumberLiteral),Optional(/,/),/\s+/,Year),TextDateMonthFirst,TextDateDayFirst),{'type':O(0x493)}),NumberValue=NumericLiteral,Percentage=Any(All(Optional(/[-+]/),Any(All(/%/,Optional(/\s+/),QuantitativeNumberLiteral),All(QuantitativeNumberLiteral,Optional(/\s+/),/%/))),Mark(All(QuantitativeNumberLiteral,Optional(/\s+/),Percentage$1),{'type':'percentage'})),Price=Mark(Any(All(NumericLiteral,Optional(/\s+/),Currency),All(Currency,Optional(/\s+/),NumericLiteral),All(/-/,Optional(/\s+/),Currency,Optional(/\s+/),QuantitativeNumberLiteral)),{'type':O(0x1b5)}),Identifier=Mark(Any(/\S+/),{'type':'identifier'});function maskText(c,{meta:P,mask:mask='***'}){const H2=O;let h=c;const t=[],I=[],K=[];for(const G of P[H2(0x57b)]??[])if(G[H2(0x345)]==='secret'){let p=G[H2(0xf8)];for(const Z of K)if(Z[H2(0xf8)]>=G[H2(0xf8)]&&Z[H2(0xf8)]+Z[H2(0x67b)]<=G[H2(0xf8)]+G[H2(0x532)][H2(0x67b)]){if(Z[H2(0xf8)]>p){const Q={'pos':p,'length':Z[H2(0xf8)]-p,'text':mask};if(!I[H2(0x649)](k=>k[H2(0xf8)]<=Q[H2(0xf8)]&&k[H2(0xf8)]+k['length']>=Q[H2(0xf8)]+Q[H2(0x67b)]))I['push'](Q);}p=Z[H2(0xf8)]+Z[H2(0x67b)];}if(G[H2(0xf8)]+G[H2(0x532)][H2(0x67b)]>p){const k={'pos':p,'length':G[H2(0xf8)]+G[H2(0x532)][H2(0x67b)]-p,'text':mask};if(!I[H2(0x649)](a=>a[H2(0xf8)]<=k[H2(0xf8)]&&a[H2(0xf8)]+a['length']>=k[H2(0xf8)]+k['length']))I['push'](k);}}else{if(G['type']===H2(0x22a)||G['type']===H2(0x477))K[H2(0x3a6)]({'pos':G[H2(0xf8)],'length':G['text'][H2(0x67b)]});}for(let a of P[H2(0x57b)]??[]){let N=0x0;a=I[H2(0x472)]((T,S)=>{const H3=H2;if(T[H3(0xf8)]<=S['pos']+N&&T[H3(0xf8)]+T['text'][H3(0x67b)]>=S[H3(0xf8)]+N+S[H3(0x67b)])T[H3(0x532)]=replace(T[H3(0x532)],S['pos']+N-T[H3(0xf8)],S[H3(0x67b)],S[H3(0x532)]);else{if(T[H3(0xf8)]>=S[H3(0xf8)]+N+S[H3(0x67b)])T['pos']+=S[H3(0x532)]['length']-S[H3(0x67b)];}return N+=S[H3(0x532)][H3(0x67b)]-S[H3(0x67b)],T;},{...a}),t[H2(0x3a6)](a);}const j=[];let z=0x0;for(const T of I){j[H2(0x3a6)]({'pos':T['pos']+z,'length':T[H2(0x532)][H2(0x67b)],'text':h['substring'](T[H2(0xf8)]+z,T['pos']+z+T['length'])}),h=replace(h,T['pos']+z,T[H2(0x67b)],T['text']),z+=T[H2(0x532)]['length']-T['length'];}const R={'text':h,'meta':{...P,'markers':t,'masks':j}};if(R[H2(0x573)][H2(0x158)])R[H2(0x573)]['navigationUrls']=R[H2(0x573)][H2(0x57b)]['reduce']((S,V)=>{const H4=H2;if(V[H4(0x345)]===H4(0x155))S[H4(0x3a6)](V[H4(0x532)][H4(0x75c)](/^['"]|['"]$/g,''));return S;},[]);return R;}const Empty=Node(/$/,()=>({'type':O(0x776)})),PreinstructionKeyword=Mark(/pre(?:-|\s+)?step/i,{'type':O(0x2ab)}),PreinstructionDescription=All(Prior,Optional(Running),Any(Each,The),Optional(Subsequent),Optional(TestSteps)),SetPreinstructions=c=>{const H5=O;return Node(Mark(All(Any(All(Activate,Optional(IndefiniteArticle),PreinstructionKeyword,Optional(ActionModifierSeparator)),All(Optional(Run),Optional(All(Optional(The),Following)),Any(PreinstructionKeyword,PreinstructionDescription),Optional(ActionModifierSeparator))),c),{'type':H5(0x36e),'subtype':H5(0x456)}),([P])=>({'type':H5(0x456),'instructions':P}));},SetPreinstructionsPostlude=Node(All(Optional(ActionModifierSeparator),PreinstructionDescription),()=>c=>({'type':'set\x20preinstructions','instructions':c})),DropPreinstructions=Node(Mark(Any(All(Cancel,Optional(The),PreinstructionKeyword),All(Any(All(Run,Nothing),All(Dont,Run,Anything)),PreinstructionDescription)),{'type':O(0x36e),'subtype':O(0x6cf)}),()=>({'type':O(0x6cf)})),TryKeyword=Mark(/try|optional/i,{'type':O(0x2ab)}),Try=c=>{const H6=O;return Node(Mark(All(Any(All(TryKeyword,Optional(ActionModifierSeparator)),All(Optionally,Optional(All(Run,Optional(All(Optional(The),Following)),Optional(Any(TestStep,TestSteps)))),Optional(ActionModifierSeparator))),c),{'type':H6(0x36e),'subtype':H6(0x515)}),([P])=>({'type':H6(0x515),'instructions':P}));};function Instructions({allowed:c,disabled:P}={}){const H8=O;function h(I,K){const H7=n;if(P?.[H7(0x1d9)](I))return Never;if(c&&!c[H7(0x1d9)](I))return Never;return K;}const t=Node(Any(List(Mark(Effect(Any(h('intent',Intent),h(H8(0x25f),Alert),h('switch\x20target',SwitchTarget),h(H8(0x74b),CloseTarget),h('close',Close),h(H8(0x7bd),CreateTarget),h(H8(0x655),HitKey),h(H8(0x345),Type$1),h(H8(0x12e),NavigatePdf),h('click',Click),Longest(h('navigate',Navigate),h(H8(0x666),Scroll)),h('go',Go),h(H8(0x454),Search),h(H8(0x736),Assert),h(H8(0x589),VisualCheck),h(H8(0x273),Hover),h(H8(0x64a),Erase),h(H8(0x769),Clear),h(H8(0x2a1),Wait),h('refresh',Refresh),h(H8(0x655),HitArrowKey),h(H8(0x655),HitBackspaceKey),h(H8(0x316),Focus),h(H8(0x745),SetTimeout),h(H8(0x745),SetVariable),h(H8(0x5b6),SetValue),h('check',Check),h(H8(0x745),Generate),Longest(h(H8(0x655),HitDeleteKey),h(H8(0x10f),Fetch)),h('evaluate',Evaluate),Grab,h('type',PreCondition(I=>I['context'][H8(0x5f6)]?.[H8(0x345)]===H8(0x345),PartialType))),([I],K)=>K[H8(0x7c7)]['action']=I),{'type':H8(0x5f6),'mutate':(I,[K],j)=>{const H9=H8;I[H9(0x325)]=K?.['type']??'empty';if(j[H9(0x7c7)][H9(0x4e0)])I[H9(0x345)]='dependent\x20action';j[H9(0x7c7)][H9(0x113)]();}}),ActionSeparator)),I=>I);return All(Sanitize$1(Recursive((I,{depth:K})=>{return Customizable(({avoid:j}={})=>{const Hf=n;return Node(Any(PreCondition(()=>K===0x0,h(Hf(0x776),Empty)),PreCondition(()=>K===0x0,h('comment',Comment)),PreCondition(()=>j!==Hf(0x515),h('try',Try(I({'avoid':Hf(0x515)})))),PreCondition(()=>j!==Hf(0x44b),h('set\x20preinstructions',SetPreinstructions(I({'avoid':Hf(0x44b)})))),PreCondition(()=>j!=='preinstruction',h(Hf(0x6cf),DropPreinstructions)),h('if',If(I({'avoid':Hf(0x4e1)}))),h('if',Else(I)),Node(All(t,Optional(SetPreinstructionsPostlude)),([z,R])=>R?R(z):z),h(Hf(0x533),InitializeScope)),([z])=>Array[Hf(0x7a2)](z)?z:[z]);});})),Optional(InstructionTerminator));}function normalizeCurlString(c,P=/[]/){const Hb=O;return c[Hb(0x75c)](new RegExp(String[Hb(0x7c3)]`\\([{\\nt]|${P[Hb(0x35b)]})`,'g'),(h,t)=>{if(t==='n')return'\x0a';else{if(t==='t')return'\x09';}return t;})[Hb(0x75c)](/\\u([0-9a-fA-F]{4})/g,(h,t)=>String[Hb(0x304)](parseInt(t,0x10)))['replaceAll'](/\\x([0-9a-fA-F]{2})/g,(h,t)=>String['fromCharCode'](parseInt(t,0x10)));}const CurlString=Any(Any(Node(Use(/\$'([^']*)'/),([c])=>normalizeCurlString(c)),Use(/"([^"]+)"/),Use(/'([^']+)'/)),Use(/(\S+)/)),Sanitize=c=>TokenBoundary(Skip$1(/[\s\\]+/,c)),{Apply:Apply$1,Mutate:Mutate$1}=State({'type':O(0x10f)}),Curl=/curl/i,CliOption=(c,P)=>{const Hn=O;return All(Any(All(/--/,c[Hn(0x3f4)]),c[Hn(0x585)]?All(/-/,c['shorthand']):Never,c[Hn(0x46f)]?Nothing$1:Never),P);},Url=Mutate$1(CliOption({'longhand':'url','optional':!![]},CurlString),(c,[P])=>c[O(0x54a)]=P),BasicAuth=Mutate$1(CliOption({'longhand':O(0x7f7),'shorthand':'u'},CurlString),(c,[P])=>{const HH=O,[h,t]=P['split'](':',0x2)[HH(0x205)](I=>I[HH(0x7b1)]());c[HH(0x5dc)]={'type':HH(0x7b2),'username':h,'password':t};}),Header$2=Mutate$1(CliOption({'longhand':O(0x61c),'shorthand':'H'},CurlString),(c,[P])=>{const Ho=O,h=P[Ho(0x536)](':'),t=h>-0x1?P[Ho(0x1b6)](0x0,h)[Ho(0x7b1)]():P['trim'](),I=h>-0x1?P[Ho(0x1b6)](h+0x1)[Ho(0x7b1)]():'';c[Ho(0x5e5)]??=[],c[Ho(0x5e5)][Ho(0x3a6)]({'name':t,'value':I,'secret':![]});}),Method$1=Mutate$1(Any(CliOption({'longhand':O(0x331),'shorthand':'X'},CurlString)),(c,[P])=>{const HW=O;c[HW(0x5cc)]=P['toLowerCase']();}),DataBody=Mutate$1(CliOption({'longhand':Any('data-urlencode',O(0x73a),O(0x3fd)),'shorthand':'d'},CurlString),(c,[P])=>{const Hv=O,[h,t]=P[Hv(0x744)]('=',0x2)[Hv(0x205)](j=>j[Hv(0x7b1)]());if(!t){c[Hv(0x482)]??={'data':null},c[Hv(0x482)]['data']=h;return;}c[Hv(0x482)]??={'data':null};const I=typeof c[Hv(0x482)][Hv(0x3fd)]===Hv(0x4ae)?c[Hv(0x482)][Hv(0x3fd)][Hv(0x744)]('&'):[],K=h+'='+t;c[Hv(0x482)][Hv(0x3fd)]=[...I,K][Hv(0x44e)]('&');}),Options=Any(BasicAuth,Header$2,Method$1,Any(Mutate$1(CliOption({'longhand':O(0x799)},CurlString),(c,[P])=>{const Hw=O;c[Hw(0x482)]??={'data':P};}),DataBody,Mutate$1(CliOption({'longhand':O(0x167)},CurlString),(c,[P])=>{const Hc=O;c[Hc(0x482)]??={'data':null};try{c[Hc(0x482)][Hc(0x3fd)]=convertToStructure(JSON[Hc(0x476)](P));}catch{c[Hc(0x482)][Hc(0x3fd)]=P;}finally{c['body'][Hc(0x345)]='json';}})),Mutate$1(CliOption({'longhand':'cookie','shorthand':'b'},CurlString),(c,[P])=>{const HP=O;c[HP(0x217)]??=[];const h=P[HP(0x744)](';')['map'](t=>t[HP(0x7b1)]());for(const t of h){const [I,K]=t[HP(0x744)]('=',0x2);c['cookies'][HP(0x3a6)]({'name':I,'value':K,'secret':![]});}}),Raw(CliOption({'longhand':/[a-zA-Z0-9.-]+/,'shorthand':/[a-zA-Z]/},Optional(CurlString)))),parse$4=makeParse(Apply$1(Sanitize(All(Curl,Star(Options),Url,Star(Options)))));function parseCurl(c){const Hh=O,P=parse$4(c);if(P['errors']||!P['results'])return null;const [h]=P[Hh(0x691)];return h;}const {Apply,Mutate}=State({'type':O(0x10f)}),URI=Any(Mutate(Use(/(https?:\/\/(?:localhost|[-a-zA-Z0-9@:%._\+~#=]{2,256}\.[a-z]{2,4})(?::\d{1,5})?\b[-a-zA-Z0-9@:%_\+.~#?&/=]*)/),(c,[P])=>c[O(0x54a)]=P),Mutate(Use(/(\S+)/),(c,[P])=>{const Ht=O;c[Ht(0x54a)]=''+(P[Ht(0x553)]('/')?'':'/')+P;})),Method=Mutate(Use(/(GET|POST|PUT|PATCH|DELETE|HEAD|OPTIONS|TRACE|CONNECT)/i),(c,[P])=>c['method']=P[O(0x1d1)]()),HttpVersion=Use(/HTTP\/[0-9.]+/i),Headers=All(/\n/,List(Mutate(All(Use(/([^:\n]+)/),/:\s*/,Use(/([^\n]*)/)),(c,[P,h])=>{const HI=O;c['headers']??=[],c[HI(0x5e5)][HI(0x3a6)]({'name':P,'value':h,'secret':![]});}),/\n/)),Body$1=Mutate(Use(/(.+)/s),(c,[P])=>{const HK=O;c[HK(0x482)]={'data':P};}),parse$3=makeParse(Apply(All(Method,/\s+/,URI,/\s+/,HttpVersion,Optional(Headers),Optional(All(/\n\n/,Body$1)))));function parseHttp(c){const Hj=O,P=parse$3(c);if(P[Hj(0x306)]||!P['results'])return null;const h=P[Hj(0x691)][0x0],t=h[Hj(0x5e5)]?.[Hj(0x5c0)](I=>I[Hj(0x3d8)]===Hj(0x682))?.['value'];if(t)h[Hj(0x54a)]='https://'+t+h[Hj(0x54a)];return h;}function FetchAction(c){const HR=O,P=[HR(0x362)];if(c[HR(0x5cc)])P['push'](c[HR(0x5cc)]);P[HR(0x3a6)](HR(0x637)+StringExpression(c[HR(0x54a)]));const h=[];if(c['auth'])h[HR(0x3a6)](Auth(c[HR(0x5dc)]));if(c[HR(0x5e5)])c[HR(0x5e5)]['forEach'](({name:t,value:I})=>{const HG=HR;h[HG(0x3a6)](Header({'name':t,'value':I}));});if(c['cookies'])c[HR(0x217)][HR(0x7fe)](({name:t,value:I})=>{const Hp=HR;h[Hp(0x3a6)](Cookie({'name':t,'value':I}));});if(c[HR(0x482)])h[HR(0x3a6)](Body(c[HR(0x482)]));if(h[HR(0x67b)]>0x0)P[HR(0x3a6)](h['join'](HR(0x1e2)));if(c['statuses'])P['push'](Status(c[HR(0x670)]));return P[HR(0x44e)]('\x20');}function Cookie(c){const Hg=O,P=[Hg(0x1c5)];if(c[Hg(0x47f)])P[Hg(0x3a6)](Hg(0x47f));return P['push'](Hg(0x340)+StringExpression(c[Hg(0x3d8)])+Hg(0x33b)+StringExpression(c[Hg(0x6df)])),P[Hg(0x44e)]('\x20');}function Header(c){const HZ=O,P=['with'];if(c[HZ(0x47f)])P[HZ(0x3a6)](HZ(0x47f));return P['push'](HZ(0x293)+StringExpression(c[HZ(0x3d8)])+':\x20'+StringExpression(c[HZ(0x6df)])),P[HZ(0x44e)]('\x20');}function Body(c){const HQ=O;if(c[HQ(0x345)])return'with\x20'+c['type']+HQ(0x823)+AnyExpression(c['data']);else return HQ(0x7ae)+AnyExpression(c[HQ(0x3fd)]);}function Status(c){const Hk=O;if(c==='*')return Hk(0x2e6);else return Hk(0x699)+(c[Hk(0x67b)]>0x1?'s':'')+'\x20'+c[Hk(0x44e)](Hk(0x65c));}function Auth(c,P={}){const Ha=O;return Ha(0x654)+StringExpression(c[Ha(0x51f)])+':'+StringExpression(c['password']);}function ElementDescriptor(c){const HN=O,P=[HN(0x239)];if(c[HN(0x574)]!=null)P['push'](OrdinalIndex(c['nth']));if(c[HN(0xf5)]===HN(0x24f)){P[HN(0x3a6)](HN(0xc1)),P['push'](c[HN(0x345)]?ElementType(c['type'],c[HN(0x7d4)]):HN(0x807));if(typeof c[HN(0x81c)]===HN(0x4ae))P[HN(0x3a6)](HN(0x40c)+StringExpression(c[HN(0x81c)]));else{if(c[HN(0x81c)]&&HN(0x3d8)in c[HN(0x81c)])P[HN(0x3a6)](HN(0x800)+c[HN(0x81c)]['name']);}}else{if(c[HN(0x81c)]&&typeof c['title']===HN(0xf4)&&HN(0x141)in c[HN(0x81c)]){P[HN(0x3a6)](c[HN(0x345)]?ElementType(c[HN(0x345)]):HN(0x807));if('name'in c['title'])P[HN(0x3a6)](HN(0x800)+c[HN(0x81c)][HN(0x3d8)]);}else{if(typeof c[HN(0x81c)]===HN(0x4ae)&&isPatternName(c['title']))P[HN(0x3a6)](c[HN(0x345)]?ElementType(c['type']):'element'),P[HN(0x3a6)](HN(0x40c)+StringExpression(c[HN(0x81c)]));else{if(c[HN(0x81c)]&&typeof c[HN(0x81c)]===HN(0x4ae)&&isNamedColor(c[HN(0x81c)]))P[HN(0x3a6)](c['type']?ElementType(c[HN(0x345)],c[HN(0x7d4)]):HN(0x807)),P[HN(0x3a6)]('with\x20text\x20'+StringExpression(c[HN(0x81c)],{'avoid':HN(0x1dc)}));else{if(typeof c[HN(0x435)]===HN(0x4ae)&&isNamedColor(c['color']))P['push'](c[HN(0x435)]);if(c[HN(0x81c)])P[HN(0x3a6)](StringExpression(c[HN(0x81c)],{'avoid':typeof c[HN(0x81c)]===HN(0x4ae)&&isElementType(c[HN(0x81c)])?HN(0x1dc):void 0x0}));P[HN(0x3a6)](c[HN(0x345)]?ElementType(c[HN(0x345)],c[HN(0x7d4)]):HN(0x807));if(typeof c['color']===HN(0x4ae)&&!isNamedColor(c[HN(0x435)]))P[HN(0x3a6)](HN(0x750)+StringExpression(c['color']));}}}}if(c[HN(0x434)]){if(c['selector']['type']==='css')P[HN(0x3a6)](HN(0x7ec)+StringExpression(c[HN(0x434)]['selector'])+'\x27');else{if(c[HN(0x434)][HN(0x345)]==='xpath')P['push']('with\x20xpath\x20selector\x20\x27'+StringExpression(c[HN(0x434)][HN(0x434)])+'\x27');}}if(c[HN(0x718)])P[HN(0x3a6)](Anchor(c[HN(0x718)]));return P[HN(0x44e)]('\x20');}function ElementType(c,P){const HT=O;c=Array['isArray'](c)?c[0x0]:c;if(P&&P[c])return P[c];switch(c){case HT(0x20b):return'cell';case HT(0x1f1):return HT(0x7ac);case HT(0x62b):return HT(0x556);case HT(0x66b):return HT(0x683);case HT(0x278):return'row';case HT(0x17a):return HT(0x683);case HT(0x521):return HT(0x1fb);case HT(0x635):return HT(0x721);case HT(0x254):return HT(0x7d5);case HT(0x539):return'dropdown';case HT(0x52c):return'date\x20and\x20time\x20picker';case'datepicker':return HT(0x185);case'timepicker':return HT(0xec);case HT(0x7d1):return HT(0x281);case HT(0x1ad):return HT(0x300);case'checkboxgroup':return'checkbox\x20group';case HT(0x11e):return HT(0x34d);case HT(0x261):return HT(0x26e);case HT(0x495):return HT(0x4ec);default:return c;}}function Anchor(c){const HS=O;if(Array[HS(0x7a2)](c)&&c[HS(0x67b)]===0x2&&(typeIs(c[0x0],HS(0x66b))||typeIs(c[0x0],HS(0x62b)))&&(typeIs(c[0x1],HS(0x66b))||typeIs(c[0x1],HS(0x62b)))){const t=extractCommonTableAnchor(c[0x0],c[0x1]),I=t?removeDeepestTableAnchor(c[0x0]):c[0x0],K=t?removeDeepestTableAnchor(c[0x1]):c[0x1];let j=Anchor(I)+'\x20and\x20'+Anchor(K);if(t)j+='\x20'+Anchor(t);return j;}const P=Array[HS(0x7a2)](c)?c[0x0]:c,h=[];if(P[HS(0x446)]==='near')h['push']('near\x20to');else{if(P[HS(0x446)]===HS(0x4b0))h[HS(0x3a6)](HS(0x6bf));else{if(P[HS(0x446)]===HS(0x77c))h['push'](HS(0x16b));else{if(P[HS(0x446)]==='below')h[HS(0x3a6)](HS(0x4bb));else{if(P[HS(0x446)]===HS(0xcc))h['push']('above\x20of');else{if(P['position']===HS(0x123))h[HS(0x3a6)](HS(0x7f9));else{if(P['position']==='aboverightof')h[HS(0x3a6)](HS(0x116));else{if(P['position']===HS(0x251))h['push'](HS(0x59b));else{if(P[HS(0x446)]===HS(0x61e))h[HS(0x3a6)](HS(0x4c8));else{if(P[HS(0x446)]==='inside'&&typeIs(P,HS(0x386)))h['push']('of');else{if(P[HS(0x446)]===HS(0x18c))h[HS(0x3a6)]('in');else{if(P['position']==='left')h['push'](HS(0x563));else{if(P['position']==='right')h[HS(0x3a6)](HS(0x223));else{if(P[HS(0x446)]==='top')h[HS(0x3a6)](HS(0x7e3));else{if(P[HS(0x446)]===HS(0x525))h[HS(0x3a6)](HS(0x264));else{if(P[HS(0x446)]===HS(0x790))h['push'](HS(0x4e2));else{if(P['position']==='topright')h['push']('at\x20the\x20right\x20and\x20top\x20of');else{if(P[HS(0x446)]===HS(0x6ac))h[HS(0x3a6)](HS(0x7ed));else{if(P[HS(0x446)]===HS(0x26f))h['push'](HS(0x39b));}}}}}}}}}}}}}}}}}}if(P[HS(0x807)])h[HS(0x3a6)]('isViewportDescriptor'in P[HS(0x807)]?HS(0x231):ElementDescriptor(P[HS(0x807)]));return h[HS(0x44e)]('\x20');}function Reference(c){const HV=O;if(HV(0x396)in c)return'{'+ReferenceName(c)+'}';else return'{%'+JSExpressionLiteral(c[HV(0x1d3)])+'%}';}function ReferenceName(c){const HD=O;return(c['modifiers']??[])[HD(0x472)]((P,h)=>{const Hm=HD;if(Hm(0x67a)in h){if(typeof h[Hm(0x67a)]===Hm(0x4ae))return test(Identifier$1,h['get'])?P+'.'+h['get']:P+'['+StringLiteral(h[Hm(0x67a)])+']';else{if(typeof h['get']==='number')return P+'['+h[Hm(0x67a)]+']';else{if(Hm(0x396)in h[Hm(0x67a)]||Hm(0x695)in h['get'])return P+'['+Reference(h[Hm(0x67a)])+']';else{if('isInterpolatedString'in h[Hm(0x67a)])return P+'['+InterpolatedStringLiteral(h[Hm(0x67a)])+']';}}}}else{if(Hm(0x757)in h){const t=h[Hm(0x757)];if(Hm(0x248)in t)return P+'/'+t[Hm(0x248)]+'/';else{if(Hm(0x3d8)in t)return P+'/'+t[Hm(0x3d8)]+'/';}return P+'/'+String(t)+'/';}}return P;},c[HD(0x3d8)]);}function Literal(c,P){const Hr=O;if(typeof c==='string')return StringLiteral(c,P?.[Hr(0x1e5)]);else return JSON[Hr(0x38b)](c);}function AnyExpression(c,P){const HF=O;if(c&&typeof c===HF(0xf4)){if('isInterpolatedString'in c)return InterpolatedStringLiteral(c,P?.['quoting']);else{if(HF(0xea)in c)return StructureLiteral(c,P);else{if('isRef'in c||HF(0x695)in c)return Reference(c);}}return'';}else return Literal(c,P);}function JSExpressionLiteral(c){const HE=O;if(c[HE(0x7ba)][HE(0x67b)]===0x1)return typeof c[HE(0x7ba)][0x0]===HE(0x4ae)?UnquotedStringLiteral(c['chunks'][0x0]):Reference(c[HE(0x7ba)][0x0]);return c[HE(0x7ba)][HE(0x472)]((P,h)=>{const He=HE;return P+(typeof h===He(0x4ae)?UnquotedStringChunk(h):Reference(h));},'');}function StructureLiteral(c,P){const HX=O;if(c['type']===HX(0x3d3))return'['+c['items'][HX(0x205)](h=>AnyExpression(h,P))[HX(0x44e)](',\x20')+']';else return'{'+c[HX(0x3c4)][HX(0x205)](h=>StringExpression(h['key'],P?.[HX(0x1e5)])+':\x20'+AnyExpression(h['value'],P))[HX(0x44e)](',\x20')+'}';}function StringExpression(c,P){if(typeof c==='string')return StringLiteral(c,P);else{if('isInterpolatedString'in c)return InterpolatedStringLiteral(c,P);else return Reference(c);}}function Quoted(c,P=O(0x818)){const Hi=O;if(P===Hi(0x818))return DoubleQuoted(c);else{if(P===Hi(0x33a))return SingleQuoted(c);else{if(P===Hi(0x1dc))return c;else return'';}}}function DoubleQuoted(c){return'\x22'+c+'\x22';}function SingleQuoted(c){return'\x27'+c+'\x27';}function StringLiteral(c,P){const HL=O;if(P?.['prefer']&&P[HL(0x4a3)]!==P?.[HL(0x38a)]){if(P['prefer']===HL(0x1dc)&&!c[HL(0x1d9)]('\x20')&&!/^['"]|^[\d,.]+$/[HL(0x63b)](c))return UnquotedStringChunk(c);else{if(P[HL(0x4a3)]===HL(0x818)&&!c['includes']('\x22'))return DoubleQuoted(DoubleQuotedStringChunk(c));else{if(P['prefer']===HL(0x33a)&&!c['includes']('\x27'))return SingleQuoted(SingleQuotedStringChunk(c));}}}if(P?.['avoid']!==HL(0x1dc)&&!c[HL(0x1d9)]('\x20')&&!/^['"]/[HL(0x63b)](c))return UnquotedStringChunk(c);if(P?.[HL(0x38a)]!==HL(0x818)&&!c[HL(0x1d9)]('\x22'))return DoubleQuoted(DoubleQuotedStringChunk(c));else{if(P?.['avoid']!=='single\x20quoted'&&!c[HL(0x1d9)]('\x27'))return SingleQuoted(SingleQuotedStringChunk(c));else return P?.[HL(0x38a)]!=='double\x20quoted'?DoubleQuoted(DoubleQuotedStringChunk(c)):SingleQuoted(SingleQuotedStringChunk(c));}}function UnquotedStringLiteral(c){return UnquotedStringChunk(c);}function InterpolatedStringLiteral(c,P){const HA=O;if(c[HA(0x7ba)][HA(0x67b)]===0x1)return typeof c['chunks'][0x0]===HA(0x4ae)?StringLiteral(c[HA(0x7ba)][0x0],P):Reference(c[HA(0x7ba)][0x0]);const h=c[HA(0x7ba)][HA(0x472)]((I,K,j)=>{const HY=HA;if(typeof K===HY(0x4ae)){if(K['includes']('\x20')||j===0x0&&/^['"]/['test'](K))I['delete']('unquoted');else{if(K['includes']('\x22'))I['delete']('double\x20quoted');else{if(K[HY(0x1d9)]('\x27'))I[HY(0x4a5)]('single\x20quoted');}}}return I;},new Set(['unquoted',HA(0x818),HA(0x33a)]));if(P?.[HA(0x38a)])h[HA(0x4a5)](P?.[HA(0x38a)]);const t=[...h][0x0]??(P?.[HA(0x38a)]!==HA(0x818)?HA(0x818):'single\x20quoted');return Quoted(c['chunks'][HA(0x472)]((I,K)=>{const HU=HA;return I+(typeof K===HU(0x4ae)?StringChunk(K,t):Reference(K));},''),t);}function StringChunk(c,P='double\x20quoted'){const Hs=O;if(P===Hs(0x1dc))return UnquotedStringChunk(c);else{if(P===Hs(0x818))return DoubleQuotedStringChunk(c);else{if(P===Hs(0x33a))return SingleQuotedStringChunk(c);else return'';}}}function UnquotedStringChunk(c){const Hx=O;return c[Hx(0x75c)](/[{]|\\(?=[\{])/g,(P,h)=>{const HB=Hx;return P==='{'&&!startsWith$2(Reference$1(HB(0x218)),c[HB(0xe4)](h))?P:'\x5c'+P;});}function SingleQuotedStringChunk(c){const Hu=O;return c[Hu(0x75c)](/['{]|\\(?=[\'{])/g,(P,h)=>{const Hd=Hu;return P==='{'&&!startsWith$2(Reference$1(Hd(0x218)),c[Hd(0xe4)](h))?P:'\x5c'+P;});}function DoubleQuotedStringChunk(c){const HM=O;return c[HM(0x75c)](/["{]|\\(?=[\"{])/g,(P,h)=>{const Hq=HM;return P==='{'&&!startsWith$2(Reference$1(Hq(0x218)),c[Hq(0xe4)](h))?P:'\x5c'+P;});}function OrdinalIndex(c){return OrdinalNumberExpression(typeof c==='number'?c+0x1:c);}function OrdinalNumberExpression(c){const HJ=O;if(typeof c===HJ(0x73c))return OrdinalNumberLiteral(c);else{if(HJ(0x396)in c||HJ(0x695)in c)return Reference(c);else return'';}}function OrdinalNumberLiteral(c){const Hy=O;if(c===0x1)return Hy(0x285);else{if(c===0x2)return Hy(0x1fa);else{if(c===0x3)return'third';}}const P=c%0x64;if(P>=0xb&&P<=0xd)return c+'th';switch(c%0xa){case 0x1:return c+'st';case 0x2:return c+'nd';case 0x3:return c+'rd';default:return c+'th';}}function typeIs(c,P){const Hl=O;return Boolean(c&&c[Hl(0x807)]&&Hl(0x345)in c[Hl(0x807)]===!![]&&c[Hl(0x807)][Hl(0x345)]===P);}function findDeepestTableAnchor(c){const HC=O;if(!c[HC(0x807)]||HC(0xef)in c['element'])return;if(typeIs(c,HC(0x386))){if(c['element']['anchor']&&!Array[HC(0x7a2)](c[HC(0x807)]['anchor']))return findDeepestTableAnchor(c['element'][HC(0x718)])||c;return c;}if(c[HC(0x807)][HC(0x718)]&&!Array[HC(0x7a2)](c[HC(0x807)]['anchor']))return findDeepestTableAnchor(c['element']['anchor']);}function extractCommonTableAnchor(c,P){const HO=O,h=findDeepestTableAnchor(c),t=findDeepestTableAnchor(P);if(!h||!t)return;if(h[HO(0x446)]===t['position']&&h[HO(0x807)]&&t[HO(0x807)]){const I=h[HO(0x807)],K=t[HO(0x807)];if(HO(0x345)in I&&HO(0x345)in K&&I[HO(0x345)]===K[HO(0x345)]&&I['title']===K['title'])return h;}}function removeDeepestTableAnchor(c){const o0=O;if(!c[o0(0x807)]||o0(0xef)in c[o0(0x807)]||Array[o0(0x7a2)](c[o0(0x807)][o0(0x718)]))return c;if(c[o0(0x807)][o0(0x718)]&&!Array['isArray'](c[o0(0x807)][o0(0x718)])&&typeIs(c['element'][o0(0x718)],'table')){const P=c['element'][o0(0x718)];if(P[o0(0x807)]&&!('isViewportDescriptor'in P[o0(0x807)])&&!P[o0(0x807)][o0(0x718)]){const {anchor:h,...t}=c[o0(0x807)];return{...c,'element':t};}}if(c[o0(0x807)][o0(0x718)]&&!Array['isArray'](c[o0(0x807)][o0(0x718)]))return{...c,'element':{...c[o0(0x807)],'anchor':removeDeepestTableAnchor(c[o0(0x807)][o0(0x718)])}};return c;}const cache=new Map();function getParse({allowed:c,disabled:P}){const o1=O,h=(c?c['toSorted']()[o1(0x44e)](','):'*')+'|'+(P?P[o1(0x431)]()[o1(0x44e)](','):'');let t=cache['get'](h);if(!t)cache[o1(0x4c1)](h,t=makeParse(Instructions({'allowed':c,'disabled':P})));return t;}function parseText(c,{split:P,fix:h,mask:t,replacements:I,intent:intent=!![],locale:locale=O(0xd3),allowed:K,disabled:j}={}){const o2=O;let z=0x0;for(const Z of I??[]){c=replace(c,Z[o2(0xf8)]+z,Z[o2(0x67b)],Z[o2(0x532)]),z+=Z[o2(0x532)]['length']-Z['length'];}const R=getParse({'allowed':K,'disabled':j})(c,{'intent':intent,'locale':locale});if(h&&R[o2(0x306)]){const Q=parseCurl(c);if(Q)return parseText(FetchAction(Q),{'split':P,'intent':intent,'fix':h,'mask':t,'locale':locale});const k=parseHttp(c);if(k)return parseText(FetchAction(k),{'split':P,'intent':intent,'fix':h,'mask':t,'locale':locale});}if(h&&R[o2(0x616)]&&!R[o2(0x306)])return parseText(R['fixes'][o2(0x3bf)]((a,N)=>N[o2(0xf8)]-a[o2(0xf8)])[o2(0x472)]((a,{pos:N,text:T,fix:S})=>replace(a,N,T[o2(0x67b)],S),c),{'split':P,'mask':t,'intent':intent,'locale':locale});if(P&&!R[o2(0x306)]){const a=[];for(let N=R[o2(0x57b)][o2(0x67b)]-0x1;N>=0x0;--N){const T=R[o2(0x57b)][N];if(T[o2(0x345)]===o2(0x5f6)||T[o2(0x345)]===o2(0x101)||T[o2(0x345)]==='control\x20flow'){const S=a[0x0];if(!S||S['pos']>T['pos']){if(S&&S['type']==='dependent\x20action'&&T[o2(0x345)]!==o2(0x36e))a[0x0]={...T,'text':c[o2(0xe4)](T[o2(0xf8)],S[o2(0xf8)]+S[o2(0x532)][o2(0x67b)])};else{if(S&&T[o2(0x325)]===o2(0x2eb)&&S[o2(0x325)]==='if')a[0x0]={...T,'text':c[o2(0xe4)](T[o2(0xf8)],S[o2(0xf8)]+S[o2(0x532)][o2(0x67b)])};else a[o2(0x3d7)](T);}}}}if(a[o2(0x67b)]>0x1)return nestPieces(resolveImplicitReferences(a,R[o2(0x57b)])[o2(0x205)]((V,D)=>({'pos':a[D][o2(0xf8)],'result':parseText(V,{'intent':intent,'mask':t,'locale':locale})[0x0]})),R[o2(0x57b)][o2(0x506)](V=>V[o2(0x345)]===o2(0x1db)));}const G=R[o2(0x691)]?.[0x0]??[],p={'text':c,'result':G,'meta':{}};p[o2(0x573)][o2(0x754)]=G['map'](V=>V['type']);if(R[o2(0x616)])p[o2(0x573)][o2(0x616)]=R[o2(0x616)];if(R['disambiguations'])p['meta'][o2(0x3e1)]=R['disambiguations'];if(R[o2(0x291)])p['meta'][o2(0x291)]=R[o2(0x291)];if(R[o2(0x48f)])p[o2(0x573)][o2(0x48f)]=R[o2(0x48f)];if(R[o2(0x674)])p[o2(0x573)][o2(0x674)]=R[o2(0x674)];if(R['randomValues'])p[o2(0x573)]['randomValues']=R[o2(0x7ef)];if(R[o2(0x1e0)])p['meta'][o2(0x1e0)]=R[o2(0x1e0)];if(R['fetches'])p['meta'][o2(0x7dd)]=R[o2(0x7dd)];if(R[o2(0x2bf)])p[o2(0x573)][o2(0x2bf)]=R[o2(0x2bf)];if(R['conditionals'])p[o2(0x573)][o2(0x4e1)]=R['conditionals'][0x0];if(R['scopes'])p[o2(0x573)][o2(0x364)]=R['scopes']['at'](-0x1);R['references']&&(p[o2(0x573)]['references']=R[o2(0x496)],p['meta'][o2(0x11a)]=R[o2(0x496)][o2(0x472)]((V,D)=>{const o3=o2;if(!V[o3(0x649)](m=>m['name']===D[o3(0x3d8)])&&!R['variables']?.[o3(0x649)](m=>m[o3(0x3d8)]===D['name']))V[o3(0x3a6)]({'name':D[o3(0x3d8)],'type':D['type']});return V;},[]));if(R[o2(0x57b)]){p[o2(0x573)]['markers']=R[o2(0x57b)][o2(0x506)](D=>D[o2(0x345)]!==o2(0x776)&&D[o2(0x345)]!==o2(0x1db));const V=p[o2(0x573)][o2(0x57b)][o2(0x472)]((D,m)=>{const o4=o2;if(m[o4(0x345)]===o4(0x155))D[o4(0x3a6)](m[o4(0x532)]['replaceAll'](/^['"]|['"]$/g,''));return D;},[]);if(V[o2(0x67b)]>0x0)p['meta'][o2(0x158)]=V;}if(R[o2(0x306)]?.[0x0])p[o2(0x73d)]=R['errors'][0x0];if(t){const D=maskText(c,{'meta':p['meta']});p[o2(0x532)]=D['text'],p['meta']=D[o2(0x573)];}return[p];}function nestPieces(c,P){const o6=O;function h(K){const o5=n;return P[o5(0x472)]((j,z)=>z[o5(0xf8)]<=K&&K<z[o5(0xf8)]+z[o5(0x532)][o5(0x67b)]?j+0x1:j,0x0);}const t=[],I=[];for(const K of c){const j=h(K[o6(0xf8)]);while(I[o6(0x67b)]>0x0&&I['at'](-0x1)['depth']>=j)I['pop']();const z={'result':K[o6(0x184)],'children':[]};(I['at'](-0x1)?.['node'][o6(0x5f8)]??t)[o6(0x3a6)](z),I[o6(0x3a6)]({'node':z,'depth':j});}return t[o6(0x205)](function R(G){const o7=o6;return G['children'][o7(0x67b)]>0x0?{'head':G[o7(0x184)],'body':G['children'][o7(0x205)](R)}:G[o7(0x184)];});}function resolveImplicitReferences(c,P){const o8=O;return c[o8(0x205)](h=>{const o9=o8,t=P[o9(0x506)](I=>I[o9(0xf8)]>=h[o9(0xf8)]&&I[o9(0xf8)]+I[o9(0x532)][o9(0x67b)]<=h[o9(0xf8)]+h['text'][o9(0x67b)]);return t['filter'](I=>I[o9(0x345)]===o9(0x3b0)&&I[o9(0x807)])[o9(0x506)](I=>!t['some'](K=>K[o9(0x345)]===o9(0x477)&&K['pos']<I[o9(0xf8)]))[o9(0x431)]((I,K)=>K['pos']-I[o9(0xf8)])[o9(0x472)]((I,K)=>replace(I,K['pos']-h[o9(0xf8)],K[o9(0x532)][o9(0x67b)],ElementDescriptor(K['element'])),h[o9(0x532)]);});}Sanitize$1(StructureLiteral$1);const store=new WeakMap();function unseal(c){const of=O;return store[of(0x67a)](c);}function parseElementFragment(c){const ob=O,P=makeParse(Sanitize$1(Element$2()))(c[ob(0x7b1)]());return{'text':c,'result':P[ob(0x691)]?.[0x0],'error':P[ob(0x306)]?.[0x0],'meta':{'markers':P[ob(0x57b)]}};}const PATTERNS$1={'price':Price,'percentage':Percentage,'number':NumberValue,'date':DateValue,'time':TimeValue,'code':Identifier};function extractPattern(c,P){const oH=O,h=PATTERNS$1[c];if(!h)return null;return search(h,P)?.[oH(0x532)]??null;}function brandedHasInstance(c,P){return function(h){const oo=n;if(this!==c)return Function[oo(0x162)][Symbol['hasInstance']]['call'](this,h);return typeof h===oo(0xf4)&&h!==null&&h[P]===!![];};}function classBrand(c){const oW=O;return Symbol[oW(0x80c)]('@applitools/nlp-utils.'+c);}function setBrand(c,P){const ov=O;Object[ov(0x815)](c,P,{'value':!![]});}const EVENT_TARGET_BRAND=classBrand('EventTarget');var EventTarget$1=class EventTarget$1 extends globalThis[O(0x246)]{static [Symbol['hasInstance']]=brandedHasInstance(EventTarget$1,EVENT_TARGET_BRAND);#listeners=new Map();#queue=new Set();#corked=![];#groups=new Map();#addListener(c,P){const ow=O;if(this.#listeners[ow(0x5ab)](c))this.#listeners[ow(0x67a)](c)['add'](P);else this.#listeners['set'](c,new Set([P]));this[ow(0x50b)](c,P);if(c!==ow(0x82a)&&c!==ow(0x5a7))super[ow(0x3f8)](new EventTargetListenerAddedEvent({'event':c,'count':this.#listeners[ow(0x67a)](c)[ow(0x5a4)]}));}#addOnceListener(c,P){const oc=O;if(this.#listeners[oc(0x5ab)](c))this.#listeners[oc(0x67a)](c)[oc(0x22d)](P);else this.#listeners[oc(0x4c1)](c,new Set([P]));this[oc(0x50b)](c,h=>{const oP=oc;P(h),this.#listeners[oP(0x67a)](c)?.['delete'](P);if(c!==oP(0x82a)&&c!=='listenerRemoved')super[oP(0x3f8)](new EventTargetListenerRemovedEvent({'event':c,'count':this.#listeners[oP(0x67a)](c)['size']}));},{'once':!![]});if(c!=='listenerAdded'&&c!=='listenerRemoved')super['dispatchEvent'](new EventTargetListenerAddedEvent({'event':c,'count':this.#listeners[oc(0x67a)](c)[oc(0x5a4)]}));}#removeListener(c,P){const oh=O;this.#listeners[oh(0x67a)](c)?.[oh(0x4a5)](P),this['removeEventListener'](c,P);}get[O(0x437)](){return this.#corked;}constructor(){super(),setBrand(this,EVENT_TARGET_BRAND);}['dispatch'](c){const ot=O;this[ot(0x3f8)](c);}['on'](c,P,h){const oI=O;this.#addListener(c,P);const t=()=>this[oI(0x79d)](c,P);if(h?.[oI(0x509)]){let I=this.#groups[oI(0x67a)](h[oI(0x509)]);if(!I)this.#groups[oI(0x4c1)](h[oI(0x509)],I=[]);I[oI(0x3a6)](t);}return t;}[O(0x466)](c,P,h){const oK=O;if(P){this.#addOnceListener(c,P);const t=()=>this[oK(0x79d)](c,P);if(h?.['key']){let I=this.#groups['get'](h['key']);if(!I)this.#groups[oK(0x4c1)](h[oK(0x509)],I=[]);I[oK(0x3a6)](t);}return t;}else return new Promise(K=>this.#addOnceListener(c,K));}[O(0x79d)](c,P){const oj=O;if(!c)this.#listeners['forEach']((h,t)=>h[oj(0x7fe)](I=>this.#removeListener(t,I))),this.#listeners[oj(0x769)]();else{if(!P){if(this.#listeners[oj(0x5ab)](c)){const h=c;this.#listeners[oj(0x67a)](h)?.[oj(0x7fe)](t=>this.#removeListener(h,t)),this.#listeners[oj(0x4a5)](h);}else{const t=c;this.#groups['get'](t)?.[oj(0x7fe)](I=>I()),this.#groups['delete'](t);}}else{const I=c;this.#removeListener(I,P);}}}[O(0x398)](){this.#corked=!![];}['uncork'](){const oz=O;this.#corked=![],this.#queue[oz(0x7fe)](c=>this[oz(0x2db)](c)),this.#queue[oz(0x769)]();}[O(0x3f8)](c){const oR=O;if(this.#corked)return this.#queue[oR(0x22d)](c),![];return super[oR(0x3f8)](c);}[O(0x50b)](c,P,h){const oG=O;return super[oG(0x50b)](c,P,h);}[O(0x128)](c,P,h){const op=O;return super[op(0x128)](c,P,h);}},EventTargetListenerAddedEvent=class extends Event{[O(0xb8)];['count'];constructor({event:c,count:P}){const og=O;super('listenerAdded'),this[og(0xb8)]=c,this[og(0x588)]=P;}},EventTargetListenerRemovedEvent=class extends Event{[O(0xb8)];[O(0x588)];constructor({event:c,count:P}){const oZ=O;super(oZ(0x5a7)),this[oZ(0xb8)]=c,this[oZ(0x588)]=P;}};function on(c,P,h){return c['addEventListener'](P,h),()=>c['removeEventListener'](P,h);}function once$1(c,P,h){const oQ=O;return c['addEventListener'](P,h,{'once':!![]}),()=>c[oQ(0x128)](P,h);}async function abortable(c,P){const ok=O;if(P){if(P[ok(0x351)])return Promise[ok(0x7cf)](P[ok(0x23a)]);let h;const t=new Promise((I,K)=>{const oa=ok;h=once$1(P,oa(0x48a),()=>{K(P['reason']);});});return Promise['race']([c[ok(0x775)](()=>h()),t]);}else return c;}const EVENT_TARGET_NODE_BRAND=classBrand(O(0x37f));var EventTargetNode=class EventTargetNode extends EventTarget$1{static [Symbol[O(0xe0)]]=brandedHasInstance(EventTargetNode,EVENT_TARGET_NODE_BRAND);constructor(){super(),setMaxListeners(0x64,this),setBrand(this,EVENT_TARGET_NODE_BRAND);}};const debugLogger={'log':(c,P)=>debuglog(O(0x67e))(O(0x4f8),c,P),'error':(c,P)=>debuglog(O(0x609))('%s\x20%o',c,P),'trace':(c,P)=>debuglog(O(0x1b3))(O(0x4f8),c,P),'debug':(c,P)=>debuglog('nlp:runner:debug')(O(0x4f8),c,P)};let activeLogger=debugLogger;function use(c){activeLogger=c??debugLogger;}function log(c,P){const oN=O;activeLogger[oN(0x513)](c,P);}function error(c,P){const oT=O;activeLogger[oT(0x73d)](c,P);}function trace(c,P){const oS=O;activeLogger[oS(0x409)](c,P);}function debug(c,P){const oV=O;activeLogger[oV(0x611)](c,P);}function serializeError(c){const oD=O;if(c instanceof Error){const P={'name':c[oD(0x3d8)],'message':c[oD(0x7a9)]};if(c[oD(0x7f0)])P['stack']=c['stack'];const h=c[oD(0x24c)];if(typeof h==='string')P['code']=h;if(c[oD(0x11f)]!==void 0x0)P['cause']=serializeError(c[oD(0x11f)]);return P;}return{'name':oD(0x724),'message':typeof c===oD(0x4ae)?c:inspect(c,{'depth':0x3})};}const LEVEL_WEIGHT={'trace':0x0,'debug':0x1,'info':0x2,'error':0x3};function makeEventLogger({downstream:c}={}){const oF=O,P=new Set();function h(I,K,j){const om=n;t[om(0x53e)]?.[levelMethod(I)](K,j);if(LEVEL_WEIGHT[I]<LEVEL_WEIGHT[t[om(0x355)]]||P['size']===0x0)return;const z={'type':K,'level':I,'timestamp':Date[om(0x133)](),'data':serializeErrors(j)};for(const R of P)try{R(z);}catch{}}const t={'minLevel':oF(0x409),'downstream':c,'log':(I,K)=>h('info',I,K),'error':(I,K)=>h('error',I,K),'trace':(I,K)=>h('trace',I,K),'debug':(I,K)=>h(oF(0x611),I,K),'onLog'(I){const oE=oF;return P[oE(0x22d)](I),()=>P[oE(0x4a5)](I);}};return t;}function levelMethod(c){const oe=O;return c===oe(0x4b2)?oe(0x513):c;}function serializeErrors(c){let P;for(const [h,t]of Object['entries'](c))t instanceof Error&&(P??={...c},P[h]=serializeError(t));return P??c;}const COLOR_BRAND=classBrand('Color');var Color=class Color{static [Symbol[O(0xe0)]]=brandedHasInstance(Color,COLOR_BRAND);['r'];['g'];['b'];['a'];constructor(c,P,h,t=0x1){this['r']=c,this['g']=P,this['b']=h,this['a']=t,setBrand(this,COLOR_BRAND);}static[O(0x37c)](c){return new Color(c['r'],c['g'],c['b'],c['a']);}[O(0x349)](){return colorToString(this);}[O(0x504)](c,P=0x5){const oX=O;return Math[oX(0x3b4)](this['r']-c['r'])<=P&&Math[oX(0x3b4)](this['g']-c['g'])<=P&&Math['abs'](this['b']-c['b'])<=P&&Math[oX(0x3b4)](this['a']-c['a'])<=P;}[O(0x4d1)](){return'rgba('+this['r']+',\x20'+this['g']+',\x20'+this['b']+',\x20'+this['a']+')';}[O(0x2ba)](c){const oi=O;return differenceHyab()(this[oi(0x4a9)](),c[oi(0x4a9)]())/0x15e;}['getColorFamily'](){const oL=O,c=nearest(colorFamilies[oL(0x7dc)](P=>P[oL(0x801)]),differenceHyab())(this[oL(0x4a9)]())[0x0];return colorFamilies['find'](P=>P[oL(0x801)][oL(0x1d9)](c))?.[oL(0x3d8)]||oL(0x4c3);}[O(0x422)](c,P=0.75){const oA=O;return this[oA(0x31f)](c)>=P;}[O(0x31f)](c){const oY=O,P=this['getColorFamily']()===c[oY(0x7b3)]();return Math[oY(0xca)]((0x1-this[oY(0x2ba)](c))*(P?1.2:0.8),0x1);}[O(0x4a9)](){const oU=O;return{'mode':oU(0x421),'r':this['r']/0xff,'g':this['g']/0xff,'b':this['b']/0xff,'alpha':this['a']};}static[O(0x4c4)](c){const os=O,P=rgb(c);return new Color(P['r']*0xff,P['g']*0xff,P['b']*0xff,c[os(0x131)]);}};function stringToColor(c){const ox=O,P=c?.['trim']();if(!P)return null;const h=parse(P['replace'](/\s/g,'')[ox(0x1d1)]());if(h)return Color[ox(0x4c4)](h);const t=getKnownColor(P);if(t)return new Color(t['r'],t['g'],t['b'],0x1);const {rgba:I}=o(P);if(I){const [K,j,z,R]=I;return new Color(clampByte(K),clampByte(j),clampByte(z),clampAlpha(R));}return null;}function stringToColorOrThrow(c){const P=stringToColor(c);if(P===null)throw new Error('Invalid\x20color\x20string:\x20'+c);return P;}function objectToColor(c){if(c==null)return null;if(!('r'in c)||!('g'in c)||!('b'in c))return null;return new Color(c['r'],c['g'],c['b'],'a'in c?c['a']:0x1);}let knownColors=null;function getKnownColor(c){const oB=O;function P(h){return h['toLowerCase']()['replaceAll']('\x20','');}if(!knownColors)knownColors=Object[oB(0x3fa)](colornames['map'](({name:h,hex:t})=>{const ou=oB;return[P(h),{'r':parseInt(t[ou(0x1b6)](0x1,0x3),0x10),'g':parseInt(t['slice'](0x3,0x5),0x10),'b':parseInt(t[ou(0x1b6)](0x5,0x7),0x10)}];}));return knownColors[P(c)];}function clampByte(c){const od=O;if(Number[od(0x5c7)](c))return NaN;return Math['max'](0x0,Math[od(0xca)](0xff,c|0x0));}function clampAlpha(c){const oM=O;if(Number['isNaN'](c))return NaN;return Math['max'](0x0,Math[oM(0xca)](0x1,c));}function colorToString(c){const oq=O,P=colornames[oq(0x5c0)](({hex:h})=>h===rgbaToHex(c));if(P)return P['name'][oq(0x1d1)]()[oq(0x75c)]('\x20','');return oq(0x6b3)+c['r']+',\x20'+c['g']+',\x20'+c['b']+',\x20'+c['a']+')';}function rgbaToHex(c){const oJ=O;return'#'+c['r']['toString'](0x10)[oJ(0x21a)](0x2,'0')+c['g'][oJ(0x349)](0x10)['padStart'](0x2,'0')+c['b']['toString'](0x10)[oJ(0x21a)](0x2,'0');}const colorFamilies=[{'name':'red','colors':[O(0x174),O(0x7af),O(0x129),O(0x547),O(0x253),O(0x10c),O(0x2af),'#B22222',O(0xd6)]},{'name':O(0x76a),'colors':[O(0x1fd),O(0x816),O(0x3fc),'#FF69B4',O(0x75b),'#C71585']},{'name':O(0x287),'colors':[O(0x253),O(0x47a),O(0x56c),O(0x13b),'#FF8C00','#FFA500']},{'name':O(0x675),'colors':[O(0x4bf),O(0x615),'#FAFAD2',O(0x28a),O(0x16f),'#FFDAB9',O(0x706),'#FFD700',O(0x6de),O(0x481),'#BDB76B']},{'name':O(0x34b),'colors':[O(0x374),O(0x3b1),O(0xb5),O(0x447),O(0x31e),O(0x2ad),'#BA55D3',O(0x3f0),O(0x55d),O(0x3b9),O(0x507),O(0x6d8),'#9400D3',O(0x566),O(0x3dd),'#800080',O(0x78d),O(0x10e)]},{'name':O(0x7d8),'colors':[O(0x586),O(0x55b),O(0x694),O(0x23b),'#6B8E23',O(0x3be),'#556B2F',O(0x6e4),O(0x236),'#98FB98',O(0x370),'#228B22',O(0x301),O(0x1d4),O(0x55a),O(0x726),O(0x6fc),'#2E8B57',O(0x6c2),O(0x6b9),'#20B2AA',O(0x1c3),O(0x152)]},{'name':O(0x6b4),'colors':[O(0x554),O(0x263),'#AFEEEE',O(0x310),O(0x2ed),O(0xbe),O(0x125),O(0x1c2),'#B0E0E6',O(0x740),'#87CEEB',O(0x661),O(0x452),O(0xe2),'#4682B4','#B0C4DE',O(0x4e9),'#7B68EE',O(0x55c),O(0x575),O(0x3aa),O(0x307),'#000080','#191970']},{'name':'brown','colors':['#FFF8DC',O(0x6f1),'#FFE4C4',O(0x570),O(0x65b),O(0x117),O(0x71c),O(0x1ff),O(0x20c),'#DAA520',O(0x1fe),O(0xda),O(0x7b0),O(0x25d),O(0x711),O(0x388),'#800000']},{'name':O(0x797),'colors':[O(0x2ce),O(0x47e),'#F0FFF0','#F5FFFA',O(0x12c),O(0x680),O(0x5ce),O(0x578),'#FFF5EE',O(0x7b8),O(0x55e),O(0x5b1),O(0x5b2),O(0x72d),'#FAF0E6',O(0x187),O(0x118)]},{'name':O(0x23c),'colors':['#DCDCDC',O(0x531),O(0x3bc),O(0x2fa),O(0x42c),'#696969',O(0xfb),O(0x1a3),O(0x828)]},{'name':O(0x612),'colors':[O(0x445)]}],POINT_BRAND=classBrand(O(0x7bf));var Point=class Point{static [Symbol['hasInstance']]=brandedHasInstance(Point,POINT_BRAND);['x'];['y'];constructor(c,P){this['x']=c,this['y']=P,setBrand(this,POINT_BRAND);}[O(0x504)](c,P=0.1){const oy=O;return Math[oy(0x3b4)](this['x']-c['x'])<P&&Math['abs'](this['y']-c['y'])<P;}['distance'](c){const ol=O;return Math[ol(0x725)](this['x']-c['x'],this['y']-c['y']);}};const VECTOR_BRAND=classBrand(O(0x268));var Vector=class Vector{static [Symbol[O(0xe0)]]=brandedHasInstance(Vector,VECTOR_BRAND);static [O(0x624)]=new Vector(0x0,0x1);static [O(0x280)]=new Vector(-0x1,0x0);static [O(0x760)]=new Vector(0x1,0x0);static ['up']=new Vector(0x0,-0x1);static [O(0x80d)]=new Vector(-0x1,-0x1);static [O(0x580)]=new Vector(0x1,-0x1);static [O(0x7ad)]=new Vector(-0x1,0x1);static [O(0x4ce)]=new Vector(0x1,0x1);static[O(0x160)](c,P){return new Vector(P['x']-c['x'],P['y']-c['y']);}['x'];['y'];constructor(c,P){this['x']=c,this['y']=P,setBrand(this,VECTOR_BRAND);}get[O(0x24e)](){const oC=O;return Math[oC(0x725)](this['x'],this['y']);}[O(0x324)](c){return this['x']*c['y']-this['y']*c['x'];}[O(0x33d)](c){return this['x']*c['x']+this['y']*c['y'];}};const SEGMENT_BRAND=classBrand(O(0x23d));var Segment=class Segment{static [Symbol[O(0xe0)]]=brandedHasInstance(Segment,SEGMENT_BRAND);[O(0x19b)];[O(0x376)];constructor(c,P){const oO=O;this[oO(0x19b)]=c instanceof Point?c:new Point(c['x'],c['y']),this[oO(0x376)]=P instanceof Point?P:new Point(P['x'],P['y']),setBrand(this,SEGMENT_BRAND);}[O(0x46e)](){const W0=O,c=Math[W0(0x3b4)](this['end']['x']-this[W0(0x19b)]['x'])<=Math[W0(0x3b4)](this['end']['y']-this[W0(0x19b)]['y'])?new Point(this[W0(0x376)]['x'],this['start']['y']):new Point(this[W0(0x19b)]['x'],this[W0(0x376)]['y']);return[new Segment(this[W0(0x19b)],c),new Segment(c,this[W0(0x376)])];}['contains'](c){const W1=O,P=Vector['fromPoints'](this['start'],this[W1(0x376)]),h=Vector[W1(0x160)](this[W1(0x19b)],c);if(P[W1(0x324)](h)!==0x0)return![];return Math['min'](this['start']['x'],this[W1(0x376)]['x'])<=c['x']&&c['x']<=Math[W1(0x57c)](this['start']['x'],this[W1(0x376)]['x'])&&Math[W1(0xca)](this[W1(0x19b)]['y'],this[W1(0x376)]['y'])<=c['y']&&c['y']<=Math[W1(0x57c)](this[W1(0x19b)]['y'],this[W1(0x376)]['y']);}};const RECTANGLE_BRAND=classBrand(O(0x3cb));var Rectangle=class Rectangle{static [Symbol[O(0xe0)]]=brandedHasInstance(Rectangle,RECTANGLE_BRAND);static['min'](...c){const W2=O;return c[W2(0x472)]((P,h)=>h[W2(0x664)]<P[W2(0x664)]?h:P);}static[O(0x57c)](...c){const W3=O;return c['reduce']((P,h)=>h['area']>P[W3(0x664)]?h:P);}static[O(0x510)](c){const W4=O,[P,...h]=c;return P[W4(0x510)](...h);}static[O(0x4ba)](c){const W5=O,[P,...h]=c;let t=P;for(const I of h){t=t[W5(0x4ba)](I);if(!t)return null;}return t;}static[O(0x37c)](c){const W6=O;return new Rectangle(c['x'],c['y'],c[W6(0x43b)],c[W6(0x5cb)]);}static['fromQuad'](c){return new Rectangle(c[0x0],c[0x1],c[0x4]-c[0x0],c[0x5]-c[0x1]);}[O(0x280)];['top'];[O(0x760)];[O(0x525)];get[O(0x3b2)](){const W7=O;return new Point(this[W7(0x280)]+this['width']/0x2,this['top']+this[W7(0x5cb)]/0x2);}get[O(0x21f)](){const W8=O;return new Point(this[W8(0x280)],this[W8(0x576)]);}get[O(0x6b8)](){const W9=O;return new Point(this[W9(0x760)],this[W9(0x576)]);}get['rightBottom'](){const Wf=O;return new Point(this[Wf(0x760)],this['bottom']);}get['leftBottom'](){const Wb=O;return new Point(this['left'],this[Wb(0x525)]);}get[O(0x375)](){const Wn=O;return[new Segment(this[Wn(0x21f)],this[Wn(0x6b8)]),new Segment(this['rightTop'],this['rightBottom']),new Segment(this['rightBottom'],this[Wn(0x626)]),new Segment(this[Wn(0x626)],this[Wn(0x21f)])];}get[O(0x5e2)](){const WH=O;return[this[WH(0x21f)],this[WH(0x6b8)],this['rightBottom'],this[WH(0x626)]];}get[O(0x664)](){const Wo=O;return this[Wo(0x43b)]*this[Wo(0x5cb)];}['x'];['y'];[O(0x43b)];['height'];constructor(c,P,h,t){const WW=O;this['x']=c,this['y']=P,this['width']=h,this[WW(0x5cb)]=t,this[WW(0x280)]=c,this[WW(0x576)]=P,this[WW(0x760)]=h===Infinity?Infinity:c+h,this['bottom']=t===Infinity?Infinity:P+t,setBrand(this,RECTANGLE_BRAND);}['offset'](c){const Wv=O;return new Rectangle(this['x']+c['x'],this['y']+c['y'],this[Wv(0x43b)],this[Wv(0x5cb)]);}[O(0x2cd)](c){const Ww=O;return new Rectangle(this['x']*c,this['y']*c,this[Ww(0x43b)]*c,this[Ww(0x5cb)]*c);}[O(0x5eb)]({left:c,right:P,top:h,bottom:t}){const Wc=O,I=this[Wc(0x280)]-(c??0x0),K=Math['max'](I,this[Wc(0x760)]+(P??0x0)),j=this[Wc(0x576)]-(h??0x0),z=Math[Wc(0x57c)](j,this[Wc(0x525)]+(t??0x0));return new Rectangle(I,j,K-I,z-j);}['union'](...c){const WP=O;let P=this['left'],h=this['top'],t=this[WP(0x760)],I=this[WP(0x525)];for(const K of c){P=Math[WP(0xca)](P,K[WP(0x280)]),h=Math[WP(0xca)](h,K['top']),t=Math[WP(0x57c)](t,K[WP(0x760)]),I=Math[WP(0x57c)](I,K[WP(0x525)]);}return new Rectangle(P,h,t-P,I-h);}[O(0x4ba)](c){const Wh=O;if(!this[Wh(0x715)](c))return null;const P=Math[Wh(0x57c)](this[Wh(0x280)],c[Wh(0x280)]),h=Math[Wh(0xca)](this[Wh(0x760)],c[Wh(0x760)]),t=Math[Wh(0x57c)](this[Wh(0x576)],c['top']),I=Math[Wh(0xca)](this[Wh(0x525)],c[Wh(0x525)]);return new Rectangle(P,t,h-P,I-t);}['equals'](c){const Wt=O;return this['x']===c['x']&&this['y']===c['y']&&this['width']===c[Wt(0x43b)]&&this[Wt(0x5cb)]===c[Wt(0x5cb)];}[O(0x46b)](c){const WI=O;if(c instanceof Rectangle)return Math[WI(0xf7)](this[WI(0x280)])<=Math[WI(0xf7)](c[WI(0x280)])&&Math[WI(0xf7)](this['top'])<=Math[WI(0xf7)](c['top'])&&Math[WI(0xf7)](this[WI(0x760)])>=Math[WI(0xf7)](c[WI(0x760)])&&Math[WI(0xf7)](this['bottom'])>=Math[WI(0xf7)](c[WI(0x525)]);else return c['x']>=this['left']&&c['x']<=this[WI(0x760)]&&c['y']>=this[WI(0x576)]&&c['y']<=this['bottom'];}[O(0x715)](c){const WK=O;return this[WK(0x280)]<c['right']&&this[WK(0x760)]>c[WK(0x280)]&&this['top']<c[WK(0x525)]&&this[WK(0x525)]>c[WK(0x576)];}[O(0x5f4)](c){const Wj=O,P=Math[Wj(0x57c)](0x0,c[Wj(0x280)]-this['right'],this[Wj(0x280)]-c[Wj(0x760)]),h=Math[Wj(0x57c)](0x0,c[Wj(0x576)]-this[Wj(0x525)],this[Wj(0x576)]-c[Wj(0x525)]);return Math['hypot'](P,h);}[O(0x3e6)](){const Wz=O;return{'x':this['x'],'y':this['y'],'width':this[Wz(0x43b)],'height':this[Wz(0x5cb)]};}[Symbol[O(0x80c)](O(0x3ca))](c,P){const WR=O;return'('+P[WR(0x765)](this[WR(0x280)][WR(0x7a1)](0x1),'number')+',\x20'+P[WR(0x765)](this[WR(0x576)][WR(0x7a1)](0x1),WR(0x73c))+')\x20'+P[WR(0x765)](this[WR(0x43b)]['toFixed'](0x1),WR(0x73c))+WR(0x511)+P[WR(0x765)](this[WR(0x5cb)]['toFixed'](0x1),WR(0x73c));}};const RTREE_BRAND=classBrand('RTree');var RTree=class RTree{static [Symbol['hasInstance']]=brandedHasInstance(RTree,RTREE_BRAND);#root;#maxItems;#minItems;constructor({maxItems:maxItems=0x9,minItems:c}={}){const WG=O;this.#maxItems=Math['max'](0x4,maxItems),this.#minItems=c??Math[WG(0x57c)](0x2,Math['floor'](this.#maxItems*0.4)),this.#root=new RNode({'leaf':!![],'minItems':this.#minItems}),setBrand(this,RTREE_BRAND);}*[O(0x2be)](){const Wp=O;let c=[this.#root];while(c[Wp(0x67b)]>0x0)if(c[0x0][Wp(0x2d6)]){yield c[Wp(0x7dc)](P=>P[Wp(0x5f8)]['map'](h=>h[Wp(0xcb)]));return;}else{const P=[],h=[];for(const t of c){P[Wp(0x3a6)](t[Wp(0xcb)]),h[Wp(0x3a6)](...t[Wp(0x5f8)]);}yield P,c=h;}}['insert'](c){const Wg=O,P=[];let h=this.#root;while(!h[Wg(0x2d6)]){P['push'](h),h=h[Wg(0x7e9)](c[Wg(0xcb)]);}return P[Wg(0x3a6)](h),h[Wg(0x22d)](c),this.#balance(P),this;}[O(0x454)](c){const WZ=O,P=[],h=[this.#root];while(h['length']>0x0){const t=h[WZ(0x7f1)]();if(t[WZ(0xcb)][WZ(0x715)](c)){if(t[WZ(0x2d6)]){for(const I of t[WZ(0x5f8)])if(I[WZ(0xcb)][WZ(0x715)](c))P[WZ(0x3a6)](I[WZ(0x3fd)]);}else h[WZ(0x3a6)](...t[WZ(0x5f8)]);}}return P;}#balance(c){const WQ=O;for(let P=c[WQ(0x67b)]-0x1;P>=0x0;--P){const h=c[P];if(h['children'][WQ(0x67b)]>this.#maxItems){const t=h[WQ(0x744)]();if(P===0x0)this.#root=new RNode({'leaf':![],'minItems':this.#minItems})[WQ(0x22d)](h,t);else c[P-0x1][WQ(0x22d)](t);}}}[Symbol[O(0x80c)](O(0x3ca))](c,P,h){const Wk=O;let t='';const I=[{'node':this.#root,'depth':0x0}];while(I[Wk(0x67b)]>0x0){const {node:K,depth:j}=I[Wk(0x7f1)]();if(K instanceof RNode)I[Wk(0x3d7)](...K['children'][Wk(0x205)](z=>({'node':z,'depth':j+0x1}))),t+='\x20\x20'[Wk(0x2ae)](j)+h(K,P)+'\x0a';else t+='\x20\x20'[Wk(0x2ae)](j)+(Wk(0x5a8)+h({'rect':K[Wk(0xcb)],'data':K[Wk(0x3fd)]},{...P,'compact':!![],'breakLength':Infinity})+'\x0a');}return t;}},RNode=class RNode{#rect;#children=[];#leaf;#minItems;get[O(0xcb)](){return this.#rect??new Rectangle(0x0,0x0,0x0,0x0);}get[O(0x5f8)](){return this.#children;}get[O(0x2d6)](){return this.#leaf;}constructor({leaf:c,minItems:P}){this.#leaf=c,this.#minItems=P;}*[O(0x428)](){const Wa=O,c=[this];while(c[Wa(0x67b)]>0x0){const P=c['shift']();yield P;if(P[Wa(0x2d6)])yield*P['children'];else c[Wa(0x3a6)](...P[Wa(0x5f8)]);}}[O(0x7e9)](c){const WN=O;let P=this.#children[0x0],h=P[WN(0xcb)][WN(0x510)](c)[WN(0x664)]-P['rect']['area'],t=P[WN(0xcb)][WN(0x664)];for(let I=0x1;I<this.#children[WN(0x67b)];++I){const K=this.#children[I],j=K[WN(0xcb)]['union'](c)[WN(0x664)]-K['rect'][WN(0x664)];(j<h||j===h&&K[WN(0xcb)]['area']<t)&&(h=j,t=K[WN(0xcb)][WN(0x664)],P=K);}return P;}['add'](...c){const WT=O;return this.#children['push'](...c),this.#rect=this.#rect?this.#rect[WT(0x510)](...c[WT(0x205)](P=>P[WT(0xcb)])):Rectangle[WT(0x510)](c['map'](P=>P[WT(0xcb)])),this;}[O(0x744)](){const WS=O,c=[...this.#children],[P,h]=findSeeds(c)[WS(0x205)](I=>({'rect':c[I][WS(0xcb)],'nodes':c[WS(0x4e4)](I,0x1)}));while(c['length']>0x0){if(h[WS(0x299)][WS(0x67b)]+c[WS(0x67b)]<=this.#minItems){h['nodes']['push'](...c),h[WS(0xcb)]=h[WS(0xcb)]['union'](...c['map'](K=>K[WS(0xcb)]));break;}if(P[WS(0x299)]['length']+c['length']<=this.#minItems){P[WS(0x299)]['push'](...c),P[WS(0xcb)]=P['rect'][WS(0x510)](...c['map'](K=>K[WS(0xcb)]));break;}let I={'difference':-Infinity,'index':0x0,'group':h,'rect':h[WS(0xcb)]};for(let K=0x0;K<c[WS(0x67b)];++K){const j=c[K],z={'rect':h[WS(0xcb)]['union'](j['rect']),'group':h},R=z['rect'][WS(0x664)]-h[WS(0xcb)][WS(0x664)],G={'rect':P[WS(0xcb)][WS(0x510)](j[WS(0xcb)]),'group':P},p=G[WS(0xcb)][WS(0x664)]-P[WS(0xcb)][WS(0x664)],Z=Math['abs'](R-p);if(Z>I['difference'])I={'difference':Z,'index':K,...R<p?z:G};}I[WS(0x260)][WS(0x299)][WS(0x3a6)](...c[WS(0x4e4)](I['index'],0x1)),I['group'][WS(0xcb)]=I[WS(0x260)][WS(0xcb)][WS(0x510)](I['rect']);}this.#children=h['nodes'],this.#rect=h[WS(0xcb)];const t=new RNode({'leaf':this.#leaf,'minItems':this.#minItems});return t.#children=P[WS(0x299)],t.#rect=P[WS(0xcb)],t;}[Symbol[O(0x80c)](O(0x3ca))](c,P,h){const WV=O;return WV(0x608)+h({'rect':this[WV(0xcb)],'leaf':this['leaf']},{...P,'compact':!![],'breakLength':Infinity});}};function findSeeds(c){const WD=O;let P=-0x1,h=[0x0,0x0];for(let t=0x0;t<c[WD(0x67b)];t++){const I=c[t];for(let K=t+0x1;K<c[WD(0x67b)];K++){const j=c[K],z=I['rect']['union'](j['rect'])[WD(0x664)]-I[WD(0xcb)][WD(0x664)]-j[WD(0xcb)][WD(0x664)];z>P&&(P=z,h=[K,t]);}}return h;}const RAY_BRAND=classBrand(O(0x57a));(class Ray{static [Symbol[O(0xe0)]]=brandedHasInstance(Ray,RAY_BRAND);static['fromPoints'](c,P){const Wm=O;return new Ray(c,Vector[Wm(0x160)](c,P));}['origin'];[O(0x587)];constructor(c,P){const Wr=O;this[Wr(0x350)]=c,this['direction']=P,setBrand(this,RAY_BRAND);}[O(0x46b)](c){const WF=O,P=new Vector(c['x']-this[WF(0x350)]['x'],c['y']-this['origin']['y']);if(P[WF(0x324)](this[WF(0x587)])!==0x0)return![];return P[WF(0x33d)](this[WF(0x587)])>=0x0;}[O(0x4ba)](c){const WE=O,P=c[WE(0x587)][WE(0x324)](this[WE(0x587)]);if(Math[WE(0x3b4)](P)<Number[WE(0x2ee)])return null;const h=c[WE(0x350)]['x']-this[WE(0x350)]['x'],I=c[WE(0x350)]['y']-this[WE(0x350)]['y'],K=(c[WE(0x587)]['x']*I-c['direction']['y']*h)/P,j=(this[WE(0x587)]['x']*I-this['direction']['y']*h)/P;if(K>=0x0&&j>=0x0)return new Point(this[WE(0x350)]['x']+K*this['direction']['x'],this[WE(0x350)]['y']+K*this[WE(0x587)]['y']);return null;}[O(0x5f4)](c){const We=O,P=Vector[We(0x160)](this[We(0x350)],c);if(this[We(0x587)][We(0x33d)](P)<0x0)return this[We(0x350)]['distance'](c);return Math['abs'](this[We(0x587)][We(0x324)](P)/this['direction'][We(0x24e)]);}});const PATTERNS={'price':c=>extractPattern(O(0x1b5),c),'percentage':c=>extractPattern(O(0x4be),c),'number':c=>extractPattern(O(0x73c),c),'date':c=>extractPattern(O(0x493),c),'time':c=>extractPattern('time',c),'code':c=>extractPattern(O(0x24c),c)};function getPatternMatcher(c){return PATTERNS[c];}const DEBUG_BUS_KEY=Symbol[O(0x80c)](O(0x344)),debugBus=globalThis[DEBUG_BUS_KEY]??=new EventTarget$1(),WATCHER_BRAND=classBrand(O(0x5c5));function makeWatcher(c){return new Watcher(c);}var Watcher=class Watcher{static [Symbol['hasInstance']]=brandedHasInstance(Watcher,WATCHER_BRAND);#promise;#resolve;#reject;#result;#hint;#signal;#timers=new Map();#listeners=[];get['promise'](){const WX=O;if(!this.#promise){this.#promise=new Promise((...c)=>[this.#resolve,this.#reject]=c);if(this.#result){if(this.#result['status']===WX(0x713))this.#resolve(this.#result[WX(0x6df)]);else this.#reject(this.#result[WX(0x23a)]);}}return this.#promise;}get['pending'](){return!this.#result;}get[O(0x4b6)](){return!!this.#result;}get['hint'](){return this.#hint;}get[Symbol[O(0x5e1)]](){return'Watcher';}constructor(c){const Wi=O;this.#hint=c?.[Wi(0x7bc)],this.#signal=c?.[Wi(0x419)];if(this.#signal){if(this.#signal['aborted'])this[Wi(0x7cf)](this.#signal['reason']);else this.#listeners[Wi(0x3a6)](once$1(this.#signal,'abort',()=>void this[Wi(0x7cf)](this.#signal[Wi(0x23a)])));}setBrand(this,WATCHER_BRAND);}async[O(0x311)](c,P){const WL=O;return this[WL(0x520)][WL(0x311)](c,P);}async[O(0x730)](c){const WA=O;return this[WA(0x520)][WA(0x730)](c);}async['finally'](c){const WY=O;return this[WY(0x520)][WY(0x775)](c);}[O(0x6e7)](c){const WU=O;this.#timers[WU(0x7fe)](P=>P[WU(0x48e)]()),this.#hint=c?.[WU(0x7bc)];if(this.#signal!==c?.[WU(0x419)])this.#signal=c?.[WU(0x419)];this.#listeners[WU(0x7fe)](P=>P()),this.#listeners=[];this.#result&&(this.#result=void 0x0,this.#promise=void 0x0,this.#resolve=void 0x0,this.#reject=void 0x0);if(this.#signal){if(this.#signal[WU(0x351)])this[WU(0x7cf)](this.#signal[WU(0x23a)]);else this.#listeners[WU(0x3a6)](once$1(this.#signal,WU(0x48a),()=>void this[WU(0x7cf)](this.#signal[WU(0x23a)])));}return this;}[O(0xb3)](c,{delay:P,key:h}={}){const Ws=O;if(P&&P>0x0){h??=Ws(0x7a6),this.#timers[Ws(0x67a)](h)?.[Ws(0x48e)]();const t=setTimeout(()=>void this['resolve'](c),P);this.#timers[Ws(0x4c1)](h,{'cancel':()=>(clearTimeout(t),this.#timers[Ws(0x4a5)](h))});}else this.#timers['forEach'](I=>I[Ws(0x48e)]()),this.#result??={'status':Ws(0x713),'value':c},this.#resolve?.(c);return this;}[O(0x7cf)](c,{delay:P,key:h}={}){const Wx=O;if(P&&P>0x0){h??=Wx(0x7a6),this.#timers[Wx(0x67a)](h)?.[Wx(0x48e)]();const t=setTimeout(()=>void this[Wx(0x7cf)](c),P);this.#timers[Wx(0x4c1)](h,{'cancel':()=>(clearTimeout(t),this.#timers[Wx(0x4a5)](h))});}else this.#timers[Wx(0x7fe)](I=>I[Wx(0x48e)]()),this.#result??={'status':'rejected','reason':c},this.#reject?.(c);return this;}};function sleep(c,{signal:P}={}){return makeWatcher({'signal':P})['resolve'](void 0x0,{'delay':c});}function until(c,{timeout:P,signal:h}){const WB=O,t=sleep(P,{'signal':h});return c[WB(0x775)](()=>void t[WB(0xb3)]()),t;}const PROGRESS_EVENT_BRAND=classBrand(O(0x770));var ProgressEvent=class ProgressEvent extends Event{static [Symbol[O(0xe0)]]=brandedHasInstance(ProgressEvent,PROGRESS_EVENT_BRAND);constructor(){const Wu=O;super(Wu(0x303)),setBrand(this,PROGRESS_EVENT_BRAND);}};function rectToSamplingPoints(c){const Wd=O,P=Math[Wd(0xf7)](c[Wd(0x280)]+c[Wd(0x43b)]/0x2),h=Math['round'](c['top']+c[Wd(0x5cb)]/0x2),t=P+Math[Wd(0x4b7)](c[Wd(0x43b)]/0x4),I=P-Math['ceil'](c[Wd(0x43b)]/0x4),K=c[Wd(0x5cb)]/0x2*0.15,j=Math[Wd(0x1b1)](c[Wd(0x576)]+K),z=Math[Wd(0x4b7)](c[Wd(0x576)]+c[Wd(0x5cb)]-K);return[{'x':I,'y':h},{'x':t,'y':h},{'x':P,'y':h},{'x':P,'y':j},{'x':P,'y':z}];}function calculateObscurationRatio(c){const WM=O;if(c['length']===0x0)return 0x1;const P=c[WM(0xdb)]();return P['filter'](h=>h)[WM(0x67b)]/P[WM(0x67b)];}const MAX_PROJECTED_TEXT=0xa0;function clip(c){const Wq=O;return c[Wq(0x67b)]>MAX_PROJECTED_TEXT?c[Wq(0x1b6)](0x0,MAX_PROJECTED_TEXT)+'…':c;}function projectAXNode(c){const WJ=O;if(!c)return null;const P={};try{if(c[WJ(0x345)])P['type']={...c[WJ(0x345)]};if(c['text'])P['text']=clip(c[WJ(0x532)]);const h=c['visibleLabel']||c['geometricLabel']||c[WJ(0x676)];if(h)P['label']=clip(h);const t=c[WJ(0x176)];if(t)P[WJ(0xcb)]={'x':t['x'],'y':t['y'],'width':t[WJ(0x43b)],'height':t[WJ(0x5cb)]};}catch{}return P;}function projectDescriptor(c){const Wy=O;if(!c)return c;const {node:P,anchor:h,fallback:t,...I}=c,K={...I};if(P)K[Wy(0x27f)]=projectAXNode(P);if(h)K[Wy(0x718)]=(Array[Wy(0x7a2)](h)?h:[h])[Wy(0x205)](j=>({...j,'element':j[Wy(0x807)]&&!(Wy(0xef)in j[Wy(0x807)])?projectDescriptor(j[Wy(0x807)]):j[Wy(0x807)]}));if(t)K['fallback']=projectDescriptor(t);return K;}function projectPrioritizedCandidates(c,P){const Wl=O;return c[Wl(0x205)](h=>{const WC=Wl;let t=0x1;return{'nodeId':h[WC(0x27f)][WC(0x192)]?.['id'],'node':projectAXNode(h[WC(0x27f)]),'quality':h[WC(0x140)],'prioritizers':P[WC(0x205)](I=>{const WO=WC;let K;try{const j=I[WO(0x6df)](h);K=Array[WO(0x7a2)](j)?j['join'](',\x20'):j;}catch{K=void 0x0;}return{'name':I[WO(0x3d8)],'priorityOrder':t++,'order':typeof I[WO(0x5ad)]==='function'?WO(0x662):I[WO(0x5ad)][WO(0x598)]??'asc','value':typeof K===WO(0x4ae)?clip(K):K};})};});}const eventLogger=makeEventLogger();use(eventLogger);const RUNNER_TYPES=new Set([O(0x365),O(0x109),O(0x632),O(0x3c8)]),RECORDER_TYPES=new Set([O(0x35f),O(0x825),'instructionRecorded',O(0x222),O(0x645),O(0x232),'elementSelectorGenerated',O(0x49e)]);function isLegacyLogEventType(c){const v0=O;return RUNNER_TYPES[v0(0x5ab)](c)||RECORDER_TYPES[v0(0x5ab)](c);}function makeLogEventFromStructured(c){const v1=O;return new LogEvent(c[v1(0x3fd)]!=null&&!(typeof c[v1(0x3fd)]===v1(0xf4)&&Object[v1(0x342)](c['data'])[v1(0x67b)]===0x0)?{'type':c[v1(0x345)],'data':c[v1(0x3fd)]}:{'type':c['type']});}var LogEvent=class LogEvent extends CustomEvent{[O(0x2c4)];constructor(c){const v2=O;super(v2(0x513),{'detail':{...c,'timestamp':c[v2(0x194)]??Date['now']()}}),this[v2(0x2c4)]=RUNNER_TYPES[v2(0x5ab)](c[v2(0x345)])?v2(0x180):v2(0x3e0);}['clone'](){const v3=O;return new LogEvent(this[v3(0x5ed)]);}};const bus=new EventTarget$1();eventLogger[O(0x361)](c=>{const v4=O;if(isLegacyLogEventType(c[v4(0x345)]))bus['dispatch'](makeLogEventFromStructured(c));});function makeScript(c){const v5=O;if(c instanceof Script)return c;else{if(typeof c!==v5(0xf4))return new Script({'source':c});else return new Script(c);}}function makeBundledScript({name:c,url:P}){return new Script({'source':readFileSync(P,{'encoding':'utf8'}),'name':c,'bundled':!![]});}var Script=class{['source'];['name'];[O(0x5b4)];constructor({source:c,name:P,bundled:h}){const v6=O;this[v6(0x35b)]=c[v6(0x349)](),this[v6(0x3d8)]=P,this[v6(0x5b4)]=!!h;}async[O(0x408)](c){const v7=O;if(this[v7(0x5b4)]&&this['name']&&knownBundledSnippets[v7(0x5ab)](this[v7(0x3d8)]))return await c['evaluate'](makeExpression({'name':'registerRuntimeBundled_'+this['name'],'source':bundleSnippet(this['name'])})),makeScript({'name':this[v7(0x3d8)],'source':v7(0x36a)+this['name']+v7(0x41b)});return this;}[O(0x349)](){return this['source'];}[O(0x3e6)](){const v8=O;return this[v8(0x35b)];}[Symbol[O(0x1de)]](){const v9=O;return this[v9(0x35b)];}[Symbol[O(0x80c)](O(0x3ca))](){const vf=O;return this[vf(0x3d8)]?vf(0x6c6)+this[vf(0x3d8)]+')':vf(0x3c0)+(this[vf(0x35b)][vf(0x67b)]>0xc8?this[vf(0x35b)][vf(0xe4)](0x0,0xc8)+'...':this[vf(0x35b)])+')';}};function makeExpression(c){const vb=O;return c instanceof Expression?c:new Expression(typeof c===vb(0xf4)?c:{'source':c});}function makeBundledExpression({name:c,url:P}){const vn=O;return new Expression({'source':readFileSync(P,{'encoding':vn(0x323)}),'name':c,'bundled':!![]});}var Expression=class{[O(0x35b)];[O(0x3d8)];['bundled'];constructor({source:c,name:P,bundled:h}){const vH=O;this[vH(0x35b)]=typeof c===vH(0x4ae)?c:'('+c[vH(0x349)]()+vH(0x1d7),this[vH(0x3d8)]=P,this[vH(0x5b4)]=!!h;}async[O(0x408)](){const vo=O;if(this[vo(0x5b4)]&&this[vo(0x3d8)]&&knownBundledSnippets['has'](this[vo(0x3d8)]))return makeExpression({'name':this['name'],'source':bundleSnippet(this[vo(0x3d8)])});return this;}[O(0x349)](){const vW=O;return this[vW(0x35b)];}['toJSON'](){const vv=O;return this[vv(0x35b)];}[Symbol[O(0x1de)]](){const vw=O;return this[vw(0x35b)];}[Symbol[O(0x80c)](O(0x3ca))](){const vc=O;return this[vc(0x3d8)]?vc(0x453)+this[vc(0x3d8)]+')':vc(0x540)+(this[vc(0x35b)][vc(0x67b)]>0xc8?this[vc(0x35b)][vc(0xe4)](0x0,0xc8)+'...':this['source'])+')';}};const knownBundledSnippets=new Map();function provideRolldownConfig(c){const vP=O;for(const P of c)if(!Array[vP(0x7a2)](P[vP(0x37d)])&&P[vP(0x37d)]?.[vP(0x3d8)])knownBundledSnippets[vP(0x4c1)](P[vP(0x37d)][vP(0x3d8)],P);}function bundleSnippet(c){const vh=O;return execFileSync(process[vh(0x315)],[new URL(vh(0x3ab),import.meta.url)[vh(0x2b9)],JSON[vh(0x38b)](knownBundledSnippets[vh(0x67a)](c))],{'maxBuffer':0xa*0x400*0x400,'encoding':vh(0x323)});}const findNodeBySelector=makeBundledScript({'name':'findNodeBySelector','url':new URL(O(0x289),import.meta.url)}),findNodesBySelector=makeBundledScript({'name':O(0x4fa),'url':new URL(O(0x2b5),import.meta.url)}),getElementSelector=makeBundledScript({'name':O(0x7d7),'url':new URL(O(0x479),import.meta.url)}),getElementValue=makeBundledScript({'name':'getElementValue','url':new URL(O(0x13c),import.meta.url)}),setElementValue=makeBundledScript({'name':O(0x16a),'url':new URL('../../assets/set-element-value-CipEuFvw.js',import.meta.url)}),canTypeIntoElement=makeBundledScript({'name':O(0x628),'url':new URL(O(0x429),import.meta.url)}),isElementAcceptableInvisible=makeBundledScript({'name':'isElementAcceptableInvisible','url':new URL('../../assets/is-element-acceptable-invisible-BWAx59YN.js',import.meta.url)}),checkVisibility=makeBundledScript({'name':O(0x68c),'url':new URL(O(0x191),import.meta.url)}),isFrameContentVisible=makeBundledScript({'name':O(0x70b),'url':new URL(O(0x784),import.meta.url)}),getObscurationRatio=makeBundledScript({'name':O(0x1d8),'url':new URL('../../assets/get-obscuration-ratio-zVFVUD5T.js',import.meta.url)}),setElementCaretPosition=makeBundledScript({'name':O(0x3a0),'url':new URL(O(0x6d9),import.meta.url)}),registerPort=makeBundledScript({'name':'registerPort','url':new URL(O(0x31c),import.meta.url)}),visibilityTracker=makeBundledExpression({'name':O(0x80e),'url':new URL(O(0x4ee),import.meta.url)}),filepickerMocker=makeBundledExpression({'name':O(0x5bd),'url':new URL(O(0x54b),import.meta.url)});var AbortError=class extends Error{[O(0x57e)];constructor(c,P){const vt=O;super(c,P),this[vt(0x57e)]=P?.['retriable']??![];}},FlushError=class extends Error{},AutomatorError=class extends Error{constructor(c){const vI=O;super(c),this['name']=this[vI(0x5d7)]['name'];}},NavigationFailedError=class extends AutomatorError{[O(0x54a)];[O(0x23a)];constructor({url:c,reason:P}){const vK=O;super(vK(0x40b)),this[vK(0x54a)]=c,this[vK(0x23a)]=P;}},NavigationTimedOutError=class extends AutomatorError{[O(0x54a)];[O(0x2a7)];constructor({url:c,timeout:P}){const vj=O;super(vj(0x541)),this[vj(0x54a)]=c,this['timeout']=P;}},NoHistoryEntryError=class extends AutomatorError{['offset'];constructor({offset:c}){const vz=O;super(vz(0x173)+(c>0x0?vz(0x734):vz(0x49d))+vz(0x219)),this[vz(0x58f)]=c;}},BodyConsumedError=class extends AutomatorError{['accessor'];constructor({accessor:c}){const vR=O;super(vR(0x182)+c+vR(0x593)),this['accessor']=c;}},UnresponsiveTargetError=class extends AutomatorError{[O(0x5cc)];[O(0x485)];['sessionId'];constructor({method:c,commandId:P,sessionId:h}){const vG=O;super('Devtools\x20command\x20\x22'+c+vG(0x19e)+P+vG(0x229)+h+vG(0x5f9)),this[vG(0x5cc)]=c,this[vG(0x485)]=P,this[vG(0x193)]=h;}};function makeConnection(c){return new Connection(c);}let index=0x0;var Connection=class{#commands=new Map();#events=new Map();#listeners=[];#signal;#timeout=0x7530;async #handleMessage(c){const vp=O;try{const P=JSON[vp(0x476)](c[vp(0x3fd)]['toString'](vp(0x323)));if(P['id']!==void 0x0){const h=this.#commands[vp(0x67a)](P['id']);if(h){trace(vp(0x63d),{'method':h[vp(0x5cc)],'payload':P,'sessionId':this[vp(0x193)]});if(P[vp(0x73d)])error(vp(0x2e3),{'method':h[vp(0x5cc)],'params':h[vp(0x224)],'response':P,'sessionId':this[vp(0x193)]}),h[vp(0x72e)][vp(0x7cf)](new Error(P[vp(0x73d)][vp(0x7a9)]));else h['watcher'][vp(0xb3)](P['result']);}}else{if(this[vp(0x193)]===P[vp(0x193)])this.#events['get'](P[vp(0x5cc)])?.[vp(0x7fe)](async t=>{const vg=vp;try{await t?.(P[vg(0x224)]);}catch(I){error('cdpEventHandlerFailed',{'method':P['method'],'sessionId':this[vg(0x193)],'raw':c[vg(0x3fd)][vg(0x349)](vg(0x323)),'error':I});}});}}catch(t){error(vp(0x622),{'sessionId':this[vp(0x193)],'raw':c['data']['toString'](vp(0x323)),'error':t});}}[O(0x732)];[O(0x193)];constructor(c){const vZ=O;this[vZ(0x732)]=c[vZ(0x732)],setMaxListeners(0x3e8,this['socket']),this['sessionId']=c[vZ(0x193)],this.#signal=c[vZ(0x419)];if(c[vZ(0x2a7)]!=null)this.#timeout=c[vZ(0x2a7)];this.#listeners[vZ(0x3a6)](on(this[vZ(0x732)],'message',this.#handleMessage[vZ(0x64b)](this))),this.#listeners['push'](on(this['socket'],vZ(0x73d),({error:P})=>{const vQ=vZ;error(vQ(0x660),{'sessionId':this[vQ(0x193)],'error':P});})),this.#listeners[vZ(0x3a6)](on(this['socket'],vZ(0x15c),({code:P,reason:h})=>{const vk=vZ;log(vk(0x242),{'sessionId':this[vk(0x193)],'code':P,'reason':h});}));if(this.#signal)this.#listeners['push'](once$1(this.#signal,vZ(0x48a),()=>this[vZ(0x48a)](this.#signal['reason'])));}get[O(0x2a7)](){return this.#timeout;}set[O(0x2a7)](c){this.#timeout=c;}[O(0x48a)](c){const va=O;this.#listeners[va(0x7fe)](P=>P()),this.#commands[va(0x7fe)](({method:P,params:h,watcher:t})=>{const vN=va;error(vN(0x207),{'method':P,'params':h,'reason':c,'sessionId':this[vN(0x193)]}),t[vN(0x7cf)](c);}),this.#commands['clear'](),this.#events['clear']();}[O(0x786)](c){this.#commands['forEach'](({method:P,params:h,watcher:t})=>{const vT=n;error(vT(0x795),{'method':P,'params':h,'reason':c,'sessionId':this[vT(0x193)]}),t['reject'](c);});}async[O(0x14f)](c,P,{signal:h}={}){const vS=O,t=makeWatcher();if(h?.[vS(0x351)]||this.#signal?.[vS(0x351)])return error(vS(0x6e6),{'method':c,'params':P,'sessionId':this['sessionId'],'reason':h?.[vS(0x23a)]||this.#signal?.[vS(0x23a)]}),t[vS(0x7cf)](h?.[vS(0x23a)]||this.#signal?.['reason']),t;let I;if(h)I=once$1(h,vS(0x48a),()=>{const vV=vS;if(t[vV(0x4b6)])return;error(vV(0x207),{'method':c,'params':P,'reason':h['reason'],'sessionId':this['sessionId']}),t[vV(0x7cf)](h[vV(0x23a)]);});const K=++index;if(!process.env.PLAY)t[vS(0x7cf)](new UnresponsiveTargetError({'method':c,'commandId':K,'sessionId':this['sessionId']}),{'delay':this.#timeout});return this.#commands[vS(0x4c1)](K,{'method':c,'params':P,'watcher':t}),trace(vS(0x6fe),{'method':c,'commandId':K,'params':P,'sessionId':this[vS(0x193)],'awaitsResponse':!![]}),this[vS(0x732)][vS(0x2b2)](JSON[vS(0x38b)]({'sessionId':this[vS(0x193)],'id':K,'method':c,'params':P})),t['finally'](()=>{const vD=vS;this.#commands[vD(0x4a5)](K),I?.();});}[O(0x2b2)](c,P){const vm=O,h=++index;trace('cdpCommandSent',{'method':c,'params':P,'sessionId':this[vm(0x193)],'awaitsResponse':![]}),this['socket'][vm(0x2b2)](JSON['stringify']({'sessionId':this[vm(0x193)],'id':h,'method':c,'params':P}));}['on'](c,P){const vr=O;let h=this.#events['get'](c);if(!h)this.#events[vr(0x4c1)](c,h=new Set());return h[vr(0x22d)](P),()=>h['delete'](P);}[O(0x466)](c,P){if(P){const h=this['on'](c,(...t)=>{return h(),P(...t);});return h;}else return new Promise((t,I)=>{const K=this['on'](c,(...j)=>{return K(),t(...j);});});}};function makeFrameManager(){return new FrameManager();}var FrameManager=class{#tree=new Map();[O(0x5ab)](c){const vF=O;return!!this.#tree['get'](c)?.[vF(0x286)];}*[O(0x3df)](c){const vE=O,P=this.#tree[vE(0x67a)](c);if(!P||!P[vE(0x286)])throw new Error(vE(0x6f0)+c+vE(0x2fb));const h=[c];for(let t=0x0;t<h[vE(0x67b)];++t){const I=h[t],K=this.#tree[vE(0x67a)](I);if(K){if(!K[vE(0x286)])throw new Error(vE(0x621)+I+vE(0x2fb));yield K[vE(0x286)],h[vE(0x3a6)](...K[vE(0x51a)]);}}}[O(0x67a)](c){const ve=O;return this.#tree['get'](c)?.[ve(0x286)];}[O(0x22d)](c){const vX=O,P=this.#tree[vX(0x67a)](c[vX(0x389)]);if(!P||P[vX(0x286)]){if(P?.[vX(0x286)])this[vX(0x4a5)](c[vX(0x389)]);this.#tree[vX(0x4c1)](c[vX(0x389)],{'frame':c,'childFrameIds':new Set()});}else P[vX(0x286)]=c;if(c[vX(0x2aa)]){if(!this.#tree[vX(0x5ab)](c['parentFrameId']))this.#tree[vX(0x4c1)](c[vX(0x2aa)],{'frame':void 0x0,'childFrameIds':new Set([c[vX(0x389)]])});else this.#tree['get'](c[vX(0x2aa)])[vX(0x51a)][vX(0x22d)](c[vX(0x389)]);}}[O(0x4a5)](c){const vi=O,P=this.#tree['get'](c);if(P?.[vi(0x286)]?.['parentFrameId'])this.#tree[vi(0x67a)](P[vi(0x286)][vi(0x2aa)])?.[vi(0x51a)]['delete'](c);this.#tree[vi(0x4a5)](c);const h=[c];for(let t=0x0;t<h[vi(0x67b)];++t){const I=h[t],K=this.#tree['get'](I);K&&(h[vi(0x3a6)](...K[vi(0x51a)]),this.#tree['delete'](I));}}[O(0x163)](c){const vL=O,P=this.#tree['get'](c);if(P){const h=[...P[vL(0x51a)]];for(let t=0x0;t<h['length'];++t){const I=h[t],K=this.#tree[vL(0x67a)](I);K&&(h[vL(0x3a6)](...K[vL(0x51a)]),this.#tree[vL(0x4a5)](I));}P[vL(0x51a)][vL(0x769)]();}}};function makeWindow(c){return new Window(c);}var Window=class extends EventTargetNode{#targets=new Set();[O(0x3e8)];['browser'];constructor({browser:c,windowId:P}){const vA=O;super(),this[vA(0x527)]=c,this[vA(0x3e8)]=P,this['on'](vA(0x75e),({target:h})=>{const vY=vA;this.#targets[vY(0x22d)](h);}),this['on'](vA(0x22f),({target:h})=>{const vU=vA;this.#targets['delete'](h);if(this.#targets[vU(0x5a4)]===0x0)this[vU(0x2db)](new WindowDestroyedEvent(this));});}*['targets'](){const vs=O;yield*this.#targets[vs(0x3bd)]();}*['pages'](){const vx=O;yield*this.#targets[vx(0x3bd)]()[vx(0x506)](c=>c[vx(0x345)]===vx(0x514));}async[O(0x3e9)](c){const vB=O;await this[vB(0x527)]['connection'][vB(0x14f)](vB(0x71d),{'windowId':this['windowId'],'bounds':{'left':c['x'],'top':c['y'],'width':c[vB(0x43b)],'height':c[vB(0x5cb)],'windowState':vB(0x5c1)}});}async['setSize'](c){const vu=O;await this[vu(0x527)][vu(0x474)][vu(0x14f)]('Browser.setWindowBounds',{'windowId':this['windowId'],'bounds':{'left':0x0,'top':0x0,'width':c['width'],'height':c[vu(0x5cb)],'windowState':'normal'}});}async['setContentsSize'](c){const vd=O;await this[vd(0x527)]['connection'][vd(0x14f)](vd(0x1dd),{'windowId':this[vd(0x3e8)],...c});}},WindowTargetAttachedEvent=class extends Event{[O(0x653)];constructor(c){const vM=O;super(vM(0x75e)),this[vM(0x653)]=c;}},WindowTargetDetachedEvent=class extends Event{[O(0x653)];constructor(c){const vq=O;super('targetDetached'),this[vq(0x653)]=c;}},WindowDestroyedEvent=class extends Event{[O(0x38e)];constructor(c){const vJ=O;super(vJ(0x1f9)),this[vJ(0x38e)]=c;}};function makeWindowManager(){return new WindowManager();}var WindowManager=class{#windows=new Map();[O(0x67a)](c){return this.#windows['get'](c);}['getOrCreate']({windowId:c,browser:P}){const vy=O,h=this.#windows[vy(0x67a)](c);if(h)return h;const t=makeWindow({'browser':P,'windowId':c});return this.#windows[vy(0x4c1)](c,t),t[vy(0x466)](vy(0x1f9),()=>this.#windows['delete'](c)),P[vy(0x2db)](new BrowserWindowCreatedEvent(t)),t;}*[Symbol[O(0x30d)]](){const vl=O;yield*this.#windows[vl(0x3bd)]();}};function makePagesHistory(c){return new PagesHistory(c);}var PagesHistory=class{#activatingPage;#stack=[];#index=0x0;constructor({browser:c}){const vC=O;c['on'](vC(0xb0),({target:P})=>{const vO=vC;this.#activatingPage!==P&&(this[vO(0x3a6)](P),this.#activatingPage=void 0x0);}),c['on']('pageClosed',({target:P})=>this[vC(0x4a5)](P));}get[O(0x1b9)](){const w0=O;if(this.#index<this.#stack[w0(0x67b)]-0x1)return this.#stack[this.#index+0x1];}get['previousPage'](){if(this.#index>0x0)return this.#stack[this.#index-0x1];}['push'](c){const w1=O;if(this.#index<this.#stack['length']-0x1)this.#stack=this.#stack['slice'](0x0,this.#index+0x1);const P=this.#stack[this.#stack[w1(0x67b)]-0x1];if(!(P&&P===c))this.#stack[w1(0x3a6)](c);this.#index=this.#stack['length']-0x1;}[O(0x4a5)](c){const w2=O;this.#stack=this.#stack[w2(0x506)](P=>P['targetId']!==c[w2(0x81e)]);if(this.#stack[w2(0x67b)]<=0x1)this.#index=0x0;else{if(this.#index>=this.#stack[w2(0x67b)])this.#index=this.#stack[w2(0x67b)]-0x1;}}async[O(0x2d8)](){const w3=O;this.#activatingPage=this[w3(0x793)];if(!this.#activatingPage)return![];return this.#activatingPage[w3(0x466)]('activated',()=>this.#index-=0x1),await this.#activatingPage[w3(0x203)](),!![];}async[O(0x1b7)](){const w4=O;this.#activatingPage=this[w4(0x1b9)];if(!this.#activatingPage)return![];return this.#activatingPage[w4(0x466)]('activated',()=>this.#index+=0x1),await this.#activatingPage[w4(0x203)](),!![];}};function localizeRemoteValue({evaluator:c,value:P}){const w5=O,h=P[w5(0x345)];if(h===w5(0x21d)||h==='boolean'||h===w5(0x4ae))return P[w5(0x6df)];else{if(h===w5(0x73c)){if(P[w5(0x6df)][w5(0x60c)]){if(P['value'][w5(0x60c)]===w5(0x5c8))return Infinity;else{if(P[w5(0x6df)]['unserializableValue']==='-Infinity')return-Infinity;else{if(P[w5(0x6df)][w5(0x60c)]==='-0')return-0x0;else{if(P[w5(0x6df)]['unserializableValue']===w5(0x352))return NaN;}}}}return P['value'];}else{if(h===w5(0x6c7))return BigInt(P[w5(0x60c)][w5(0x1b6)](0x0,-0x1));else{if(h==='symbol')return null;else{if(h==='object'){if(P[w5(0x325)]===w5(0x4f4))return null;return new RemoteObjectHandle({'evaluator':c,'value':P});}else{if(h===w5(0x3e7))return new RemoteFunctionHandle({'evaluator':c,'value':P});}}}}}return null;}var RemoteObjectHandle=class{#value;#cache=new Map();#revoked=![];async #resolveSerializedValue(c,{path:path=[]}={}){const w6=O,P=c[w6(0xc9)];if(P!==void 0x0&&this.#cache[w6(0x5ab)](P))return this.#cache['get'](P);let h;const t=c[w6(0x345)];if(t===w6(0x21d)||t===w6(0x560)||t===w6(0x4ae))h=c[w6(0x6df)];else{if(t===w6(0x4f4))h=null;else{if(t===w6(0x73c)){if(c[w6(0x6df)]===w6(0x5c8))h=Infinity;else{if(c[w6(0x6df)]==='-Infinity')h=-Infinity;else{if(c[w6(0x6df)]==='-0')h=-0x0;else{if(c['value']==='NaN')h=NaN;else h=c[w6(0x6df)];}}}}else{if(t==='bigint')h=BigInt(c[w6(0x6df)]);else{if(t===w6(0x764))h=null;else{if(t===w6(0x27f))h=makeWebNode({'evaluator':this[w6(0x2e2)],'handle':path[w6(0x67b)]===0x0?this:void 0x0,'nodeId':c[w6(0x6df)][w6(0x6dd)],'preview':'<'+(c['value'][w6(0x208)]??'#node')+'\x20'+(c[w6(0x6df)][w6(0x5fd)]?Object['entries'](c['value']['attributes'])['map'](([I,K])=>I+'=\x22'+K+'\x22')[w6(0x44e)]('\x20'):'')+'/>'});else{if(t==='array'){const I=[],K=c[w6(0x6df)];for(const [j,z]of K[w6(0xde)]())I[w6(0x3a6)](await this.#resolveSerializedValue(z,{'path':[...path,{'type':w6(0x6df),'index':j}]}));h=I;}else{if(t==='set'){const R=new Set(),G=c[w6(0x6df)];for(const [p,Z]of G[w6(0xde)]())R['add'](await this.#resolveSerializedValue(Z,{'path':[...path,{'type':w6(0x6df),'index':p}]}));h=R;}else{if(t===w6(0xf4)){const Q={},k=c[w6(0x6df)];for(const [a,[N,T]]of k[w6(0xde)]())Q[N]=await this.#resolveSerializedValue(T,{'path':[...path,{'type':w6(0x6df),'index':a}]});h=Q;}else{if(t===w6(0x205)){const S=new Map(),V=c[w6(0x6df)];for(const [D,[m,F]]of V['entries']()){const E=typeof m===w6(0x4ae)?m:await this.#resolveSerializedValue(m,{'path':[...path,{'type':w6(0x509),'index':D}]}),e=await this.#resolveSerializedValue(F,{'path':[...path,{'type':w6(0x6df),'index':D}]});S[w6(0x4c1)](E,e);}h=S;}else{if(t===w6(0x3e7))h=await this[w6(0x2e2)][w6(0x14f)]((X,i)=>{const w7=w6;for(const L of i){const A=(Array['isArray'](X)||X instanceof Set||X instanceof Map?Array[w7(0x37c)](X[w7(0xde)]()):Object[w7(0xde)](X))[L[w7(0x3a1)]];if(!A)throw new Error('Can\x27t\x20resolve\x20remote\x20object');X=A[L[w7(0x345)]==='key'?0x0:0x1];}return X;},[this,path]);else throw new Error(w6(0x426)+t+'\x22');}}}}}}}}}}if(P!==void 0x0)this.#cache[w6(0x4c1)](P,h);return h;}[O(0x2e2)];get[O(0x5a3)](){return this.#value['objectId'];}get[O(0xdd)](){return this.#revoked;}constructor({evaluator:c,value:P}){this['evaluator']=c,this.#value=P;}async[O(0xb3)](){const w8=O;if(this.#value['type']==='object'&&this.#value[w8(0x325)]===w8(0x27f))return makeWebNode({'evaluator':this[w8(0x2e2)],'handle':this});else{if(this.#value[w8(0x126)]){const c=await this.#resolveSerializedValue(this.#value[w8(0x126)]);return await this['revoke'](),c;}else throw new Error('Can\x27t\x20resolve\x20unserialized\x20remote\x20object');}}async[O(0x7a4)](){const w9=O;!this.#revoked&&(this.#revoked=!![],await this[w9(0x2e2)][w9(0x653)]['connection']['execute'](w9(0x20a),{'objectId':this[w9(0x5a3)]}));}['asArgument'](){const wf=O;if(this[wf(0x2e2)][wf(0x1f9)])throw new StaleRemoteObjectHandleError(wf(0x678)+this[wf(0x5a3)]+'\x20is\x20stale');return!this.#revoked?{'objectId':this[wf(0x5a3)]}:{'value':null};}[Symbol[O(0x80c)]('nodejs.util.inspect.custom')](c,P,h){const wb=O;let t;if(this.#value[wb(0x126)]){t=stringifySerializedRemoteValue(this.#value[wb(0x126)],{'depth':c-0x1});if(this.#value[wb(0x126)][wb(0x345)]==='node'&&P[wb(0x56b)])t=t[wb(0xe4)](0x0,P['maxStringLength'])+'...';}else{if(this.#value[wb(0x36f)])t=stringifyRemoteValuePreview(this.#value[wb(0x36f)]);else t=this.#value['description']??'';}return wb(0x522)+t+'}';}},RemoteFunctionHandle=class extends RemoteObjectHandle{async[O(0xb3)](){const wn=O,c=(...P)=>this[wn(0x30b)](...P);return c['handle']=this,c;}async[O(0x30b)](...c){const wH=O;return await this[wH(0x2e2)][wH(0x14f)]((P,h)=>P(...h),[this,c]);}},StaleRemoteObjectHandleError=class extends Error{};function stringifyRemoteValuePreview(c){const wo=O,P=c[wo(0x345)];if(P===wo(0xf4)){const t=c[wo(0x325)];if(t===wo(0x4f4)||t===wo(0x462))return c['description'];else{if(t===wo(0x27f))return'<'+c[wo(0x153)]+'/>';else{if(t==='array')return'['+c[wo(0xee)]['map'](I=>h(I))['join'](',\x20')+(c[wo(0x546)]?'\x20...,\x20[length]:\x20'+/\d+/[wo(0x3ea)](c[wo(0x153)])?.[0x0]:'')+']';else{if(t===wo(0x4c1)||t===wo(0x6ea))return c['description']+'\x20{'+(c['entries']??[])[wo(0x205)](I=>stringifyRemoteValuePreview(I[wo(0x6df)]))[wo(0x44e)](',\x20')+(c[wo(0x546)]?wo(0x6f2):'')+'}';else{if(!t)return'['+c[wo(0xee)][wo(0x205)](I=>I[wo(0x3d8)]+':\x20'+h(I))[wo(0x44e)](',\x20')+(c[wo(0x546)]?wo(0x6f2):'')+']';else{if(t===wo(0x205)||t===wo(0x67c))return c[wo(0x153)]+'\x20{'+(c[wo(0xde)]??[])[wo(0x205)](I=>stringifyRemoteValuePreview(I[wo(0x509)])+wo(0x78b)+stringifyRemoteValuePreview(I[wo(0x6df)]))['join'](',\x20')+'\x20'+(c['overflow']?wo(0x3c2):'')+'}';else{if(t===wo(0x493))return wo(0x3ef)+c[wo(0x153)]+'}';else{if(t===wo(0x520)){const I=c['properties'][wo(0x5c0)](j=>j[wo(0x3d8)]===wo(0x7e0))?.['value']??wo(0x77d),K=c[wo(0xee)]['find'](j=>j[wo(0x3d8)]===wo(0x43a));return wo(0x62f)+I+'>'+(I!==wo(0x77d)&&K?h(K):'')+'}';}else{if(t===wo(0x73d))return wo(0x257)+c[wo(0x153)]+'}';else return wo(0x2df)+t+'}';}}}}}}}}}else{if(P===wo(0x4ae))return'\x27'+c['description']?.[wo(0x75c)]('\x27','\x5c\x27')+'\x27';else return c[wo(0x153)];}function h(j){const wW=wo;return j[wW(0x648)]?stringifyRemoteValuePreview(j[wW(0x648)]):j[wW(0x6df)];}}function stringifySerializedRemoteValue(c,{depth:P}){const wv=O,h=c[wv(0x345)];if(h==='undefined'||h===wv(0x4f4))return h;else{if(h==='boolean'||h===wv(0x73c))return c[wv(0x6df)];else{if(h===wv(0x6c7))return c['value']+'n';else{if(h===wv(0x4ae))return'\x27'+c[wv(0x6df)]['replaceAll']('\x27','\x5c\x27')+'\x27';else{if(h===wv(0x764))return'';else{if(h===wv(0x27f)){const t=Object['entries'](c[wv(0x6df)][wv(0x5fd)]??{})['map'](([I,K])=>I+'=\x22'+K+'\x22')[wv(0x44e)]('\x20');return'<'+(c[wv(0x6df)][wv(0x208)]??wv(0x334))+'\x20'+t+'/>';}else{if(h===wv(0x462))return'';else{if(h==='date')return'';else{if(h===wv(0x3d3)){const I=wv(0x1ee)+c['value'][wv(0x67b)]+')';if(P===0x0)return I;return'['+c[wv(0x6df)]['map'](K=>stringifySerializedRemoteValue(K,{'depth':P-0x1}))['join'](',\x20')+']';}else{if(h===wv(0x4c1)){const K=wv(0x7b9)+c[wv(0x6df)]['length']+')';if(P===0x0)return K;return K+'\x20{'+c[wv(0x6df)][wv(0x205)](j=>stringifySerializedRemoteValue(j,{'depth':P-0x1}))[wv(0x44e)](',\x20')+'}';}else{if(h===wv(0xf4)){const j='Object('+c['value'][wv(0x67b)]+')';if(P===0x0)return j;return'{'+c[wv(0x6df)]['map'](([z,R])=>z+':\x20'+stringifySerializedRemoteValue(R,{'depth':P-0x1}))['join'](',\x20')+'}';}else{if(h==='map'){const z='Map('+c['value'][wv(0x67b)]+')';if(P===0x0)return z;return z+'\x20{'+c[wv(0x6df)][wv(0x205)](([R,G])=>(typeof R===wv(0x4ae)?R:stringifySerializedRemoteValue(R,{'depth':P-0x1}))+wv(0x78b)+stringifySerializedRemoteValue(G,{'depth':P-0x1}))[wv(0x44e)](',\x20')+'}';}else return wv(0x2df)+h+'}';}}}}}}}}}}}}function boxToRect(c){const ww=O;return{'x':c['x'],'y':c['y'],'width':c['width'],'height':c[ww(0x5cb)],'top':c[ww(0x5cb)]<0x0?c['y']+c[ww(0x5cb)]:c['y'],'left':c['width']<0x0?c['x']+c[ww(0x43b)]:c['x']};}function hostnameOf(c){const wc=O;if(!c)return void 0x0;try{return new URL(c)[wc(0x469)];}catch{return;}}function matchesDomain(c,P){const wP=O;return P['some'](h=>c===h||c[wP(0x171)]('.'+h));}const AD_FRAME_PATTERNS=/(?:doubleclick\.net|googlesyndication\.com|googleadservices\.com|google(?:tag|ad)manager\.com|adnxs\.com|pubmatic\.com|amazon-adsystem\.com|rubiconproject\.com|casalemedia\.com|criteo\.(?:com|net)|sharethrough\.com|yieldmo\.com|gumgum\.com|openx\.net|bidswitch\.net|media\.net|seedtag\.com|3lift\.com|undertone\.com|ads\.yahoo\.com|pub\.network|lijit\.com|adsrvr\.org|2mdn\.net|moatads\.com|serving-sys\.com|taboola\.com|outbrain\.com)/i;function isAdUrl(c){const wh=O,P=hostnameOf(c);return P?AD_FRAME_PATTERNS[wh(0x63b)](P):![];}const ANALYTICS_DOMAINS=['google-analytics.com','analytics.google.com','omtrdc.net',O(0x14b),O(0x234),O(0x2b3),O(0x1ba),O(0x753),O(0x534),O(0x138),'segment.io',O(0x45f),O(0x602),'nr-data.net','scorecardresearch.com',O(0x4d6),O(0x451),O(0x215)],ANALYTICS_HOSTNAME_PREFIX=/^s?metrics\./i;function isAnalyticsUrl(c){const wt=O,P=hostnameOf(c);if(!P)return![];return matchesDomain(P,ANALYTICS_DOMAINS)||ANALYTICS_HOSTNAME_PREFIX[wt(0x63b)](P);}function isNonBlockingRequest(c,P){const wI=O;return c===wI(0x2c6)||c===wI(0x59c)||isAdUrl(P)||isAnalyticsUrl(P);}function makeWebNode(c){return new WebNode(c);}var WebNode=class{#handle;#nodeId;#contentFrame=void 0x0;#attributes;#description;#preview;async #getDescription(){const wK=O;if(this.#description)return this.#description;const c=await this[wK(0x286)][wK(0x653)][wK(0x474)][wK(0x14f)](wK(0x51d),{'backendNodeId':this.#nodeId,'objectId':this.#handle?.[wK(0x5a3)]});return this.#description=c[wK(0x27f)];}[O(0x2e2)];get['frame'](){const wj=O;return this[wj(0x2e2)]['frame'];}constructor({evaluator:c,handle:P,nodeId:h,preview:t}){const wz=O;this[wz(0x2e2)]=c,this.#handle=P,this.#nodeId=h,this.#preview=t;}async['asRemoteObjectHandle'](){const wR=O;if(this.#handle)return this.#handle;const c=await this[wR(0x286)][wR(0x653)][wR(0x474)][wR(0x14f)](wR(0x603),{'executionContextId':this[wR(0x2e2)][wR(0x441)],'backendNodeId':this.#nodeId});return this.#handle=localizeRemoteValue({'evaluator':this[wR(0x2e2)],'value':c['object']});}async['equal'](c){const wG=O;if(this[wG(0x286)]!==c[wG(0x286)])return![];const P=await Promise[wG(0x630)]([this['getNodeId'](),c[wG(0x3ba)]()]);return P[0x0]===P[0x1];}async[O(0x343)](){const wp=O;return this[wp(0x14f)](c=>{const wg=wp;if(c instanceof Element&&[wg(0x6ee),'::after'][wg(0x1d9)](c[wg(0x45c)]))return c[wg(0x41d)];if(c instanceof SVGElement){let P=c;while(P[wg(0x24d)])P=P[wg(0x24d)];return P;}return c;});}async[O(0x64e)](){const wZ=O;return this['execute'](c=>c[wZ(0x64e)])['catch'](()=>![]);}async[O(0x5c4)](){const wQ=O;return this[wQ(0x14f)](c=>c instanceof Element?c['matches'](wQ(0x6b7)):![]);}async['isHovered'](){const wk=O;return this['execute'](c=>c instanceof Element?c[wk(0x720)](wk(0x60f)):c['parentElement']?.['matches'](':hover')??![]);}async[O(0x3ba)](){const wa=O;if(this.#nodeId)return this.#nodeId;return(await this.#getDescription())[wa(0x6dd)];}async[O(0x255)]({hint:hint='string',acceptFormValue:c}={}){const wN=O;return await this[wN(0x14f)](getElementValue,[{'hint':hint,'acceptFormValue':c}]);}async[O(0x68d)](){const wT=O;return await this[wT(0x14f)](c=>c[wT(0x19f)]);}async[O(0x27d)](){const wS=O,c=await this[wS(0x179)]();try{let P=this[wS(0x286)];while(P&&!P['isMain']){if(P[wS(0x29e)]){const h=await(await P[wS(0x771)]())[wS(0x179)]();c['x']+=h['x'],c['y']+=h['y'];}P=P[wS(0x64f)];}return c;}catch(t){throw new Error(wS(0x69e),{'cause':t});}}async['getBox'](){const wV=O;try{const {model:c}=await this[wV(0x286)][wV(0x653)]['connection'][wV(0x14f)](wV(0x6fa),{'backendNodeId':this.#nodeId,'objectId':this.#handle?.[wV(0x5a3)]});return{'x':c[wV(0x209)][0x0],'y':c['border'][0x1],'width':c[wV(0x209)][0x4]-c['border'][0x0],'height':c['border'][0x5]-c[wV(0x209)][0x1]};}catch(P){error(wV(0x35a),{'error':P});throw new StaleNodeError(wV(0x601)+this.#nodeId+wV(0x6a7));}}async[O(0x4db)](){const wD=O;return this[wD(0x14f)](c=>{const wm=wD,P=c instanceof Element?c:c[wm(0x41d)];return{'scrollX':P['scrollLeft'],'scrollY':P[wm(0x33e)],'scrollWidth':P[wm(0x17b)],'scrollHeight':P[wm(0x247)],'clientWidth':P[wm(0x2ff)],'clientHeight':P[wm(0x568)]};});}async[O(0x518)](){const wr=O;try{const {quads:c}=await this[wr(0x286)][wr(0x653)][wr(0x474)][wr(0x14f)](wr(0x20e),{'backendNodeId':this.#nodeId,'objectId':this.#handle?.[wr(0x5a3)]}),P=c[wr(0x205)](h=>Rectangle[wr(0x82d)](h))['filter'](h=>h['width']>0x0&&h[wr(0x5cb)]>0x0);if(P[wr(0x67b)]===0x0)throw new StaleNodeError(wr(0x601)+this.#nodeId+'\x20is\x20stale');return P;}catch(h){error(wr(0x35a),{'error':h});throw new StaleNodeError(wr(0x601)+this.#nodeId+'\x20is\x20stale');}}async['getTagName'](){const wF=O;return(await this.#getDescription())[wF(0x64c)][wF(0x1d1)]();}async['getAttribute'](c){const wE=O;if(!this.#attributes){const P=await this.#getDescription();this.#attributes=new Map();if(P[wE(0x5fd)]){for(let h=0x0;h<(P[wE(0x5fd)]?.['length']??0x0);h+=0x2)this.#attributes['set'](P[wE(0x5fd)][h],P[wE(0x5fd)][h+0x1]);}}return this.#attributes[wE(0x67a)](c);}async['getContentFrame'](){const we=O;if(this.#contentFrame===void 0x0){const c=(await this.#getDescription())[we(0x389)];this.#contentFrame=c?this[we(0x286)][we(0x653)][we(0x527)][we(0x62e)][we(0x67a)](c):null;if(!this.#contentFrame)throw new Error('Cannot\x20find\x20content\x20frame\x20of\x20the\x20iframe\x20node\x20with\x20with\x20object\x20id\x20\x22'+this.#nodeId+'\x22');}return this.#contentFrame;}async['$'](c){const wX=O,P=['/','(',wX(0x3a2),'./','*/'][wX(0x649)](h=>c[wX(0x553)](h))?'xpath':'css';return await this[wX(0x14f)]((h,t,I)=>{const wi=wX;if(I==='xpath')return document[wi(0x814)](t[wi(0x75c)](wi(0x4c0),wi(0x397)),h,null,XPathResult[wi(0x7c9)],null)['singleNodeValue'];else return(h instanceof Element?h:h[wi(0x41d)])[wi(0x61a)](t);},[c,P]);}async['$$'](c){const wL=O,P=['/','(',wL(0x3a2),'./','*/']['some'](h=>c[wL(0x553)](h))?wL(0x13d):wL(0x5e8);return await this[wL(0x14f)]((h,t,I)=>{const wA=wL;if(I==='xpath'){const K=document[wA(0x814)](t['replaceAll'](wA(0x4c0),wA(0x397)),h,null,XPathResult[wA(0x44f)],null),j=[];let z;while(z=K[wA(0x23e)]())j[wA(0x3a6)](z);return j;}else{const R=h instanceof Element?h:h[wA(0x41d)];return Array[wA(0x37c)](R['querySelectorAll'](t));}},[c,P]);}async['execute'](c,P,h){const wY=O;return this[wY(0x2e2)][wY(0x14f)](c,[this,...P??[]],h);}async[O(0x316)](){const wU=O;try{return await this[wU(0x286)][wU(0x653)][wU(0x474)][wU(0x14f)](wU(0x10d),{'backendNodeId':this.#nodeId,'objectId':this.#handle?.[wU(0x5a3)]}),!![];}catch{const c=await this[wU(0x122)]();if(c==='html'||c==='body')return!![];if(await this[wU(0x14f)](P=>P instanceof Element?P[wU(0x2fe)]?.[wU(0x827)]:![])===![])return!![];return![];}}async['hover']({signal:c}){const ws=O,P=await this['getBox'](),h={'x':P['x']+P[ws(0x43b)]/0x2,'y':P['y']+P[ws(0x5cb)]/0x2},t=this[ws(0x286)][ws(0x653)][ws(0x358)]['position'],I=[[h]],K=await this[ws(0x286)][ws(0x653)][ws(0x272)]();I[ws(0x3a6)]([{'x':h['x'],'y':K[ws(0x5cb)]+0x64},h]);const j=new Segment(t,h)[ws(0x46e)]();I[ws(0x3a6)](j[ws(0x205)](z=>z[ws(0x376)]));for(const z of I){await this[ws(0x286)][ws(0x653)][ws(0x358)][ws(0x26d)](z,{'signal':c});const {isObscured:R}=await this[ws(0xb1)]();if(!R)return;await this[ws(0x286)][ws(0x653)][ws(0x358)]['move'](t,{'signal':c}),await w(0x3e8);}}async[O(0x519)]({simulate:c,signal:P,...h}={}){const wx=O;if(c)await this[wx(0x14f)](t=>t['click']());else{const [t]=await this[wx(0x518)](),I={'x':t['x']+t[wx(0x43b)]/0x2,'y':t['y']+t['height']/0x2};await this[wx(0x273)]({'signal':P}),await this['frame'][wx(0x653)]['mouse']['click'](I,h);}}async['tryToUnobscure'](){const wB=O;await this[wB(0x14f)](async P=>{const wu=wB;(P instanceof Element?P:P[wu(0x41d)])[wu(0x659)]({'block':wu(0x2d5),'inline':wu(0x2d5),'behavior':wu(0x58c)}),await new Promise(requestAnimationFrame);},[],{'await':!![]});const {ratio:c}=await this['getObscurationInfo']();if(c!==0x0)await this[wB(0x14f)](async P=>{const wd=wB;(P instanceof Element?P:P['parentElement'])['scrollIntoView']({'block':wd(0x3b2),'inline':wd(0x3b2),'behavior':wd(0x58c)}),await new Promise(requestAnimationFrame);},[],{'await':!![]});}async[O(0xbf)](){const {isVisible:c}=await this['execute'](checkVisibility,[{'minSize':0x1,'checkParentsVisibility':!![]}]);return c;}async[O(0x4fe)](){const wM=O;if(!await this[wM(0xbf)]())return{'ratio':0x1,'obscuringElement':null};const {ratio:c,obscuringElement:P}=await this[wM(0x14f)](getObscurationRatio);if(c===0x0)return{'ratio':0x0,'obscuringElement':null};const h=await this['getContentBoxes']();if(h[wM(0x67b)]===0x0)return{'ratio':0x1,'obscuringElement':null};const {dx:t,dy:I}=await this[wM(0x286)][wM(0x653)]['mainFrame']['execute'](()=>({'dx':window[wM(0x72a)],'dy':window[wM(0x432)]})),K=await this['execute'](G=>G instanceof Element?G:G[wM(0x41d)]),j=[];let z=null;for(const G of h){const p=rectToSamplingPoints(boxToRect(G)),Z=await Promise[wM(0x630)](p[wM(0x205)](async k=>{const wq=wM,a={'x':k['x']+t,'y':k['y']+I},N=await this[wq(0x286)][wq(0x653)][wq(0x2e8)](a);if(!N)return{'isObscured':![],'node':null};if(await K['equal'](N))return{'isObscured':![],'node':null};if(await K[wq(0x46b)](N))return{'isObscured':![],'node':null};return{'isObscured':!![],'node':N};})),Q=Z[wM(0x205)](k=>k[wM(0xb1)]);if(!z){const k=Z['find'](a=>a[wM(0xb1)]&&a[wM(0x27f)]);if(k)z=k[wM(0x27f)];}j[wM(0x3a6)](Q);}const R=calculateObscurationRatio(j);return{'ratio':Math[wM(0xca)](R,c),'obscuringElement':z??P};}async[O(0xb1)](){const {ratio:c,obscuringElement:P}=await this['getObscurationInfo']();return{'isObscured':c>0.5,'obscuringElement':P};}async['isAcceptableInvisible'](){const wJ=O;return this[wJ(0x14f)](isElementAcceptableInvisible);}async[O(0x1cd)](c){const wy=O;await this[wy(0x14f)]((P,{x:h,y:t})=>{const wl=wy;if(!(P instanceof Element))return;let I;if(h==='end')I=P[wl(0x17b)];else{if(h==='center')I=P[wl(0x17b)]/0x2;else I=h;}let K;if(t==='end')K=P[wl(0x247)];else{if(t==='center')K=P[wl(0x247)]/0x2;else K=t;}P[wl(0x1cd)]({'left':I,'top':K,'behavior':wl(0x58c)});},[c]);}async[O(0x530)](c){const wC=O;if(await this[wC(0x14f)](async(h,{x:t,y:I})=>{const wO=wC;if(!(h instanceof Element))return!![];const K=h[wO(0x33e)],j=h[wO(0x7c4)];return h['scrollBy']({'left':t,'top':I,'behavior':'instant'}),new Promise(z=>{requestAnimationFrame(()=>{const c0=n,R=h[c0(0x33e)],G=h['scrollLeft'];if(R===K&&G===j)z(![]);else z(!![]);});});},[c],{'await':!![]}))return;const P=await this[wC(0x179)]();await this[wC(0x286)]['target']['connection'][wC(0x14f)](wC(0x1a1),{'type':'mouseWheel','x':P['x']+P[wC(0x43b)]-0x1,'y':P['y']+0x1,'deltaX':c['x']??0x0,'deltaY':c['y']??0x0});}async['setValue'](c){const c1=O;if(await this['execute'](P=>P instanceof HTMLInputElement&&P[c1(0x345)]==='file')){if(typeof c!==c1(0x4ae)&&!Array[c1(0x7a2)](c))throw new Error(c1(0x5d2)+typeof c+c1(0x6ce));await this[c1(0x286)][c1(0x653)][c1(0x474)][c1(0x14f)](c1(0x7b6),{'files':Array[c1(0x7a2)](c)?c:[c],'backendNodeId':this.#nodeId,'objectId':this.#handle?.[c1(0x5a3)]});}else await this[c1(0x14f)](setElementValue,[c]);}async['canTypeInto'](){const c2=O;return this[c2(0x14f)](canTypeIntoElement);}async[O(0x345)](c){const c3=O;throw new Error(c3(0x210));}async[O(0x46b)](c){const c4=O;if(this[c4(0x286)]!==c['frame'])return![];return this[c4(0x14f)]((P,h)=>P[c4(0x46b)](h),[c]);}async[O(0x749)](){const c5=O;return this[c5(0x14f)](c=>{const c6=c5;let P='';const h=c[c6(0x403)];if(!h)return P;let t=c;if(c instanceof Element&&c['id'])P='//'+c['tagName']+c6(0x703)+c['id']+'\x22]';else while(t&&t!==h){const I=t['parentNode'];if(I){const K=t[c6(0x45c)];P='/'+K+'['+(Array[c6(0x162)][c6(0x506)][c6(0x30b)](I['childNodes'],j=>j[c6(0x45c)]===K)[c6(0x536)](t)+0x1)+']'+P;}t=I;}return P;});}async[O(0x2b1)](){const c7=O;return this[c7(0x749)]();}async[O(0x7d2)](){const c8=O;return this[c8(0x14f)](c=>c instanceof Text);}async[O(0x36b)](){const c9=O;return await this[c9(0x14f)](c=>c['parentElement']);}async[O(0x806)](){const cf=O;return this[cf(0x14f)](getElementSelector);}async[O(0x3f2)](){const cb=O;return this[cb(0x14f)](c=>c instanceof HTMLElement?c[cb(0x3f2)]:![]);}async[O(0x543)](c){const cn=O;return this[cn(0x14f)](setElementCaretPosition,[c]);}[Symbol[O(0x80c)](O(0x3ca))](c,P,h){const cH=O;h['styles'][cH(0x27f)]=cH(0xc2);const t=this.#handle?.[Symbol[cH(0x80c)](cH(0x3ca))](c,P,h)??this.#preview;return t?P['stylize'](t,'node'):cH(0x40d)+h({'nodeId':this.#nodeId},{...P,'compact':!![],'breakLength':Infinity});}async[O(0x14c)](c){return this['execute']((P,h)=>{const co=n;if(!(h instanceof HTMLInputElement)||!h[co(0x284)])return![];return Array[co(0x37c)](h['labels'])[co(0x649)](t=>t[co(0x46b)](P));},[c]);}},StaleNodeError=class extends Error{},PortOutgoingMessageEvent=class extends Event{[O(0x3d8)];[O(0x3de)];constructor(c,P){const cW=O;super('outgoingMessage'),this[cW(0x3d8)]=c,this['payload']=P;}},PortIncommingMessageEvent=class extends Event{[O(0x3d8)];[O(0x3de)];constructor(c,P){const cv=O;super(cv(0x7f3)),this[cv(0x3d8)]=c,this[cv(0x3de)]=P;}};function makePort(c){return new Port(c);}var Port=class extends EventTargetNode{#watchers={'initialized':makeWatcher()};async #initialize(){const cw=O,c='__'+this[cw(0x3d8)][cw(0x75c)]('\x20','_')+'_post_message';this[cw(0x2e2)][cw(0x653)]['connection']['on'](cw(0x57d),({executionContextId:P,name:h,payload:t})=>{const cc=cw;if(this['evaluator'][cc(0x441)]===P&&h===c){const I=JSON[cc(0x476)](t);this[cc(0x2db)](new PortIncommingMessageEvent(I['name'],I[cc(0x3de)]));}}),await this[cw(0x2e2)][cw(0x653)][cw(0x474)][cw(0x14f)](cw(0x3ae),{'name':c,'executionContextId':this['evaluator']['evaluatorId']}),await this[cw(0x2e2)][cw(0x14f)](registerPort,[this[cw(0x3d8)]]),log('portInitialized',{'portName':this[cw(0x3d8)],'evaluatorId':this[cw(0x2e2)][cw(0x441)],'frameId':this['evaluator'][cw(0x286)]?.[cw(0x389)]});}#closed=![];[O(0x2e2)];[O(0x3d8)];constructor({evaluator:c,name:P}){const cP=O;super(),this['evaluator']=c,this['name']=P,this.#initialize()[cP(0x311)](()=>this.#watchers[cP(0x2c5)][cP(0xb3)]())[cP(0x730)](h=>this.#watchers[cP(0x2c5)][cP(0x7cf)](h)),this[cP(0x2e2)]['on'](cP(0x1f9),()=>{const ch=cP;if(this.#closed)return;this.#closed=!![],log(ch(0x1a0),{'portName':this[ch(0x3d8)],'evaluatorId':this['evaluator'][ch(0x441)]});}),this['on']('outgoingMessage',async({name:h,payload:t})=>{const ct=cP;try{await this[ct(0x2e2)][ct(0x14f)]((I,K,j)=>{const cI=ct,z=globalThis;z[cI(0x748)][I][cI(0x3f8)](new z[(cI(0x392))](K,j));},[this[ct(0x3d8)],h,t]);}catch(I){error(ct(0x4de),{'portName':this[ct(0x3d8)],'messageName':h,'evaluatorId':this[ct(0x2e2)][ct(0x441)],'error':I});}});}[O(0x2b2)](c,P){const cK=O;this[cK(0x2db)](new PortOutgoingMessageEvent(c,P));}async[O(0x2a1)](c){await this.#watchers[c];}};function makeEvaluator(c){return new Evaluator(c);}var Evaluator=class extends EventTargetNode{#evaluatorId;#destroyed=![];#controller=new AbortController();[O(0x345)];['name'];[O(0x653)];[O(0x286)];get[O(0x441)](){return this.#evaluatorId;}get[O(0x1f9)](){return this.#destroyed;}constructor(c){const cj=O;super(),this.#evaluatorId=c[cj(0x441)];if(cj(0x653)in c)this[cj(0x653)]=c[cj(0x653)];else this[cj(0x653)]=c[cj(0x286)][cj(0x653)],this['frame']=c[cj(0x286)];this[cj(0x3d8)]=c[cj(0x3d8)],this['type']=c[cj(0x345)],this[cj(0x653)][cj(0x474)]['on'](cj(0xfe),()=>{const cz=cj;log(cz(0x7fb),{'contextId':this.#evaluatorId,'frameId':this[cz(0x286)]?.['frameId'],'targetId':this[cz(0x653)][cz(0x81e)],'reason':cz(0x52f)}),log(cz(0x792),{'evaluatorId':this.#evaluatorId,'frameId':this[cz(0x286)]?.[cz(0x389)],'targetId':this[cz(0x653)][cz(0x81e)],'reason':cz(0x52f)}),this.#controller[cz(0x48a)](new AbortError('Evaluator\x20with\x20id\x20\x22'+this.#evaluatorId+cz(0x4bc),{'retriable':this[cz(0x286)]&&!this[cz(0x286)][cz(0x1f9)]})),this[cz(0x2db)](new EvaluatorDestroyedEvent({'evaluatorId':this.#evaluatorId})),this.#controller=new AbortController();}),this[cj(0x653)][cj(0x474)]['on']('Runtime.executionContextDestroyed',({executionContextId:h})=>{const cR=cj;this.#evaluatorId===h&&(log('executionContextDestroyed',{'contextId':this.#evaluatorId,'frameId':this[cR(0x286)]?.['frameId'],'targetId':this['target'][cR(0x81e)],'reason':cR(0x1f9)}),log(cR(0x792),{'evaluatorId':this.#evaluatorId,'frameId':this[cR(0x286)]?.[cR(0x389)],'targetId':this[cR(0x653)]['targetId'],'reason':cR(0x1f9)}),this[cR(0x2db)](new EvaluatorDestroyedEvent({'evaluatorId':this.#evaluatorId})),this.#controller=new AbortController());});if(c[cj(0x697)])this['target'][cj(0x474)]['on'](cj(0x56a),({executionContextId:h,type:t,timestamp:I,args:K})=>{const cG=cj;if(this.#evaluatorId===h)try{const j=K['map'](z=>localizeRemoteValue({'evaluator':this,'value':z}));this[cG(0x2db)](new EvaluatorLogEvent({'type':t,'timestamp':I,'args':j}));}catch{}});const P=this[cj(0x345)]+'-'+this.#evaluatorId;this[cj(0x286)]?.['on'](cj(0x1f9),()=>this[cj(0x2db)](new EvaluatorDestroyedEvent({'evaluatorId':this.#evaluatorId})),{'key':P}),this['on'](cj(0x1f9),()=>{const cp=cj;this.#destroyed=!![],this.#controller[cp(0x48a)](new AbortError(cp(0x5f1)+this.#evaluatorId+cp(0x4bc),{'retriable':this[cp(0x286)]&&!this[cp(0x286)]['destroyed']})),this[cp(0x286)]?.['off'](P);});}async['execute'](c,P,h){const cg=O,t=await this[cg(0x653)]['connection'][cg(0x14f)]('Runtime.callFunctionOn',{'executionContextId':this.#evaluatorId,'functionDeclaration':await makeScript(c)[cg(0x408)](this),'arguments':await Promise[cg(0x630)]((P??[])[cg(0x205)](async K=>{const cZ=cg;if(K instanceof RemoteObjectHandle)return K[cZ(0x27c)]();if(K instanceof WebNode)return(await K[cZ(0x68f)]())[cZ(0x27c)]();if(typeof K==='bigint')return{'unserializableValue':K+'n'};if(K===Infinity)return{'unserializableValue':cZ(0x5c8)};if(K===-Infinity)return{'unserializableValue':cZ(0x577)};if(Object['is'](K,-0x0))return{'unserializableValue':'-0'};if(Number[cZ(0x5c7)](K))return{'unserializableValue':cZ(0x352)};return{'value':K};})),'awaitPromise':h?.[cg(0x353)],'serializationOptions':{'serialization':cg(0x380)}},{'signal':this.#controller[cg(0x419)]});if(t[cg(0x25e)]){const K=t[cg(0x25e)][cg(0x42a)]?.['description']?.[cg(0x2d0)](/^\w+:\s*/,'')['replace'](/\n.*/s,'');throw new Error(K??cg(0x54d));}const I=localizeRemoteValue({'evaluator':this,'value':t['result']});return I instanceof RemoteObjectHandle?await I[cg(0xb3)]():I;}async[O(0x814)](c,P){const cQ=O,h=await this[cQ(0x653)][cQ(0x474)][cQ(0x14f)](cQ(0x465),{'contextId':this.#evaluatorId,'expression':await makeExpression(c)[cQ(0x408)](),'awaitPromise':P?.[cQ(0x353)],'serializationOptions':{'serialization':cQ(0x380)}},{'signal':this.#controller[cQ(0x419)]});if(h[cQ(0x25e)]){const I=h[cQ(0x25e)]['exception']?.[cQ(0x153)]?.[cQ(0x2d0)](/^\w+:\s*/,'')[cQ(0x2d0)](/\n.*/s,'');throw new Error(I??cQ(0x54d));}const t=localizeRemoteValue({'evaluator':this,'value':h['result']});return t instanceof RemoteObjectHandle?await t['resolve']():t;}async[O(0xb3)]({nodeId:c}){const ck=O,P=await this[ck(0x653)][ck(0x474)]['execute']('DOM.resolveNode',{'executionContextId':this[ck(0x441)],'backendNodeId':c});return await localizeRemoteValue({'evaluator':this,'value':P[ck(0xf4)]})[ck(0xb3)]();}async[O(0x2f8)](c){const ca=O,P=makePort({'evaluator':this,'name':c});return await P['wait'](ca(0x2c5)),P;}},EvaluatorLogEvent=class extends Event{[O(0x345)];['timestamp'];[O(0x391)];constructor({type:c,timestamp:P,args:h},t){const cN=O;super(cN(0x513),t),this[cN(0x345)]=c,this[cN(0x194)]=P,this[cN(0x391)]=h;}},EvaluatorDestroyedEvent=class extends Event{[O(0x441)];constructor({evaluatorId:c},P){const cT=O;super(cT(0x1f9),P),this[cT(0x441)]=c;}};function makeRemoteStream(c,P){const cS=O;let h=typeof P===cS(0x4ae)?P:void 0x0;const t=typeof P===cS(0x3e7)?P:void 0x0;let I=![],K;async function j(){if(h)return h;return K??=t()['then'](R=>h=R),K;}async function z(){const cV=cS;if(I)return;I=!![];if(!h)return;try{await c[cV(0x14f)](cV(0x3d1),{'handle':h});}catch{}}return new Readable({'read'(R){const cD=cS;j()[cD(0x311)](G=>c[cD(0x14f)](cD(0x32f),{'handle':G,'size':Math['max'](R,0x40*0x400)}))['then'](({data:G,base64Encoded:p,eof:Z})=>{const cm=cD;if(G['length']>0x0)this['push'](p?v[cm(0x37c)](G,'base64'):v['from'](G,'utf8'));Z&&(this[cm(0x3a6)](null),z());},G=>this[cD(0xfd)](G instanceof Error?G:new Error(String(G))));},'destroy'(R,G){const cr=cS;z()[cr(0x775)](()=>G(R));}});}const BFCACHE_LIMIT=0x6;var StylesheetsManager=class{#current={'sheets':new Map()};#bfcache=new Map();get[O(0x5a5)](){const cF=O;return[...this.#current[cF(0x318)][cF(0x3bd)]()];}['add'](c){const cE=O;this.#current[cE(0x318)][cE(0x4c1)](c['stylesheetId'],c);}[O(0x5f0)](c){const ce=O;return this.#current[ce(0x318)][ce(0x4a5)](c);}[O(0x489)](){const cX=O;if(this.#current[cX(0x39e)]&&this.#current[cX(0x318)][cX(0x5a4)]>0x0)this.#bfcache[cX(0x4c1)](this.#current[cX(0x39e)],this.#current[cX(0x318)]);this.#current={'sheets':new Map()};}[O(0x7fa)](c,P){const ci=O;if(this.#current['loaderId']===c)return;if(P===ci(0x359)){const h=this.#bfcache[ci(0x67a)](c);if(h){if(this.#current[ci(0x39e)]&&this.#current['sheets']['size']>0x0)this.#bfcache[ci(0x4c1)](this.#current[ci(0x39e)],this.#current[ci(0x318)]);this.#bfcache['delete'](c),this.#current={'loaderId':c,'sheets':h},this.#evictBfcache(c);return;}}if(this.#current[ci(0x39e)]&&this.#current[ci(0x318)][ci(0x5a4)]>0x0)this.#bfcache[ci(0x4c1)](this.#current[ci(0x39e)],this.#current[ci(0x318)]),this.#current={'loaderId':c,'sheets':new Map()};else this.#current['loaderId']=c;this.#evictBfcache(c);}#evictBfcache(c){const cL=O;while(this.#bfcache[cL(0x5a4)]>BFCACHE_LIMIT){let P=![];for(const h of this.#bfcache[cL(0x342)]()){if(h===c)continue;this.#bfcache['delete'](h),P=!![];break;}if(!P)break;}}},FrameFetchError=class extends Error{[O(0x785)];constructor(c){const cA=O;super(c),this['name']=cA(0xd1),this[cA(0x785)]=c;}};function makeFrame(c){return new Frame(c);}var Frame=class extends EventTargetNode{#target;#node;#defaultEvaluator;#isolatedEvaluator;#response;#controller=new AbortController();#destroyed=![];#watchers={'determined':makeWatcher({'signal':this.#controller[O(0x419)]}),'defaultEvaluatorAttached':makeWatcher({'signal':this.#controller[O(0x419)]}),'navigated':makeWatcher({'signal':this.#controller['signal']}),'loaded':makeWatcher({'signal':this.#controller[O(0x419)]}),'networkAlmostIdle':makeWatcher({'signal':this.#controller[O(0x419)]}),'networkIdle':makeWatcher({'signal':this.#controller[O(0x419)]}),'stable':makeWatcher({'signal':this.#controller['signal']})};#isAd=![];#navigatedAt=0x0;#stylesheets=new StylesheetsManager();async #getDefaultEvaluator(){const cY=O;return await this.#watchers[cY(0x5fa)],this.#defaultEvaluator;}async #getIsolatedEvaluator(){const cU=O;if(this.#isolatedEvaluator)return this.#isolatedEvaluator;const c=await this.#target[cU(0x474)][cU(0x14f)](cU(0x424),{'frameId':this[cU(0x389)],'worldName':cU(0x21e)+this[cU(0x389)]},{'signal':this.#controller[cU(0x419)]});return this.#isolatedEvaluator=makeEvaluator({'frame':this,'evaluatorId':c['executionContextId'],'type':'isolated','logs':!![]}),log(cU(0x4ca),{'evaluatorId':this.#isolatedEvaluator[cU(0x441)],'frameId':this[cU(0x389)]}),this.#isolatedEvaluator[cU(0x466)](cU(0x1f9),()=>this.#isolatedEvaluator=void 0x0),this['dispatch'](new FrameEvaluatorAttached(this.#isolatedEvaluator)),this.#isolatedEvaluator;}async #execute(c,P,h,t){const cs=O;await this[cs(0x2a1)]('determined');let I;if(c==='isolated')I=await this.#getIsolatedEvaluator();else I=await this.#getDefaultEvaluator();try{return await I[cs(0x14f)](P,h,t);}catch(K){if(K instanceof AbortError&&K[cs(0x57e)])return this.#execute(c,P,h,t);if(!this.#watchers[cs(0x1f3)][cs(0x4b6)])return await this[cs(0x2a1)](cs(0x1f3)),this.#execute(c,P,h,t);throw K;}}async #evaluate(c,P,h){const cx=O;await this[cx(0x2a1)](cx(0x768));let t;if(c==='isolated')t=await this.#getIsolatedEvaluator();else t=await this.#getDefaultEvaluator();try{return await t[cx(0x814)](P,h);}catch(I){if(I instanceof AbortError&&I[cx(0x57e)])return this.#evaluate(c,P,h);if(!this.#watchers[cx(0x1f3)][cx(0x4b6)])return await this[cx(0x2a1)](cx(0x1f3)),this.#evaluate(c,P,h);throw I;}}async #resolve(c,P){const cB=O;await this['wait'](cB(0x768));let h;if(c===cB(0x742))h=await this.#getIsolatedEvaluator();else h=await this.#getDefaultEvaluator();try{return await h[cB(0xb3)](P);}catch(t){if(t instanceof AbortError&&t[cB(0x57e)])return this.#resolve(c,P);if(!this.#watchers[cB(0x1f3)][cB(0x4b6)])return await this['wait'](cB(0x1f3)),this.#resolve(c,P);throw t;}}[O(0x389)];['parentFrameId'];get[O(0x1f3)](){const cu=O;return this.#watchers[cu(0x1f3)][cu(0x4b6)];}get['stable'](){return this.#watchers['stable']['settled'];}get[O(0x1f9)](){return this.#destroyed;}get['target'](){return this.#target;}get[O(0x12b)](){return this.#response;}get[O(0x65f)](){const cd=O;return!this[cd(0x2aa)];}get['isOutOfProcess'](){const cM=O;return!this[cM(0x65f)]&&this[cM(0x389)]===this.#target[cM(0x81e)];}get[O(0x5ff)](){return this.#isAd;}get[O(0x64f)](){const cq=O;if(!this[cq(0x2aa)])return null;return this[cq(0x653)]['browser']['frameManager'][cq(0x67a)](this[cq(0x2aa)])??null;}get[O(0x523)](){return this.#defaultEvaluator;}get['navigatedAt'](){return this.#navigatedAt;}get['stylesheets'](){const cJ=O;return this.#stylesheets[cJ(0x5a5)];}['addStylesheet'](c){this.#stylesheets['add'](c);}[O(0x68b)](c){const cy=O;return this.#stylesheets[cy(0x5f0)](c);}constructor({target:c,frameId:P,parentFrameId:h}){const cl=O;super(),this.#target=c,this['frameId']=P,this[cl(0x2aa)]=h,this.#watchers[cl(0x768)][cl(0xb3)](),this.#watchers[cl(0x5d6)][cl(0xb3)](),this['on'](cl(0x170),({evaluator:t})=>{const cC=cl;t[cC(0x345)]===cC(0x7a6)&&(this.#defaultEvaluator=t,this.#watchers[cC(0x5fa)][cC(0xb3)](),t['on']('log',({type:I,args:K})=>{const cO=cC;log(cO(0x61d),{'frameId':this[cO(0x389)],'consoleType':I,'args':K});}));}),this['on'](cl(0x331),({request:t})=>{const P0=cl;if(this.#watchers['navigated'][P0(0x4b6)])this[P0(0x2db)](new FrameNavigatingEvent({'url':t[P0(0x54a)],'reason':P0(0x4c3)}));}),this['on']('response',({response:t})=>this.#response=t),this['on'](cl(0x583),()=>{const P1=cl;this.#watchers[P1(0x5d6)]['reset']({'signal':this.#controller[P1(0x419)]}),this.#watchers['loaded']['reset']({'signal':this.#controller[P1(0x419)]}),this.#watchers['stable']['reset']({'signal':this.#controller[P1(0x419)]})[P1(0xb3)](void 0x0,{'delay':this.#target['browser'][P1(0x3a5)]}),this.#watchers['networkAlmostIdle']['reset']({'signal':this.#controller[P1(0x419)]}),this.#watchers[P1(0x3ce)][P1(0x6e7)]({'signal':this.#controller[P1(0x419)]});}),this['on'](cl(0x5d6),({url:t,reason:I,loaderId:K})=>{const P2=cl;if(!this[P2(0x65f)])this.#isAd=isAdUrl(t);this.#navigatedAt=Date[P2(0x133)](),this.#watchers[P2(0x5d6)][P2(0xb3)]();if(I!==P2(0x30a))this.#stylesheets[P2(0x7fa)](K,I);I===P2(0x333)?(this.#watchers['loaded'][P2(0x6e7)]({'signal':this.#controller[P2(0x419)]}),this.#watchers[P2(0x4f3)][P2(0x6e7)]({'signal':this.#controller['signal']})['resolve'](void 0x0,{'delay':this.#target[P2(0x527)][P2(0x3a5)]}),this.#watchers[P2(0x44a)][P2(0x6e7)]({'signal':this.#controller[P2(0x419)]}),this.#watchers[P2(0x3ce)]['reset']({'signal':this.#controller[P2(0x419)]})):(this.#watchers['loaded'][P2(0xb3)](),this.#watchers[P2(0x4f3)][P2(0xb3)](),this.#watchers[P2(0x44a)][P2(0xb3)](),this.#watchers[P2(0x3ce)][P2(0xb3)]());}),this['on'](cl(0x169),()=>{const P3=cl;if(this[P3(0x5ff)])return;this.#stylesheets[P3(0x489)](),this.#watchers[P3(0x1f3)][P3(0x6e7)]({'signal':this.#controller[P3(0x419)]}),this.#watchers[P3(0x4f3)][P3(0x6e7)]({'signal':this.#controller[P3(0x419)]})[P3(0xb3)](void 0x0,{'delay':this.#target['browser']['frameStabilityTimeout']}),this.#watchers['networkAlmostIdle'][P3(0x6e7)]({'signal':this.#controller['signal']}),this.#watchers[P3(0x3ce)][P3(0x6e7)]({'signal':this.#controller[P3(0x419)]});}),this['on']('loaded',()=>{const P4=cl;this.#watchers[P4(0x1f3)][P4(0xb3)](),this.#watchers[P4(0x4f3)][P4(0xb3)]();}),this['on'](cl(0x44a),()=>{const P5=cl;this.#watchers['networkAlmostIdle'][P5(0xb3)](),this.#watchers[P5(0x3ce)][P5(0x6e7)]({'signal':this.#controller[P5(0x419)]});}),this['on'](cl(0x3ce),()=>{const P6=cl;this.#watchers['networkAlmostIdle']['resolve'](),this.#watchers[P6(0x3ce)][P6(0xb3)]();}),this['on'](cl(0x741),()=>{const P7=cl;log(P7(0x545),{'frameId':this[P7(0x389)]}),this.#watchers['determined'][P7(0x6e7)]({'signal':this.#controller['signal']}),this.#defaultEvaluator=void 0x0,this.#isolatedEvaluator=void 0x0;}),this['on']('swapped',({target:t})=>{const P8=cl;log(P8(0x165),{'frameId':this[P8(0x389)],'targetId':t[P8(0x81e)]}),this.#target=t,this.#watchers[P8(0x768)]['resolve'](),this.#watchers['loaded'][P8(0x6e7)]({'signal':this.#controller[P8(0x419)]}),this.#watchers[P8(0x4f3)][P8(0x6e7)]({'signal':this.#controller[P8(0x419)]})[P8(0xb3)](void 0x0,{'delay':this.#target[P8(0x527)][P8(0x3a5)]}),this.#watchers[P8(0x44a)][P8(0x6e7)]({'signal':this.#controller[P8(0x419)]}),this.#watchers[P8(0x3ce)][P8(0x6e7)]({'signal':this.#controller['signal']});}),this['on'](cl(0x1f9),()=>{const P9=cl;this.#destroyed=!![],this.#controller[P9(0x48a)](new AbortError(P9(0x486)+this['frameId']+P9(0x4bc)));});}async[O(0xbf)](){const Pf=O;if(this[Pf(0x65f)])return!![];const c=await this['getOwnerNode']();if(!c)return![];return await c['execute'](isFrameContentVisible);}async[O(0x2a1)](c,{signal:P}={}){return abortable(this.#watchers[c],P);}async['getOwnerNode'](){const Pb=O;if(this.#node!==void 0x0)return this.#node;if(!this[Pb(0x64f)])return this.#node=null;const c=await this[Pb(0x64f)]['$$'](Pb(0x487));for(const P of c)if(await P[Pb(0x28f)]()===this)return this.#node=P;throw new Error(Pb(0x643));}async['$'](c){const Pn=O,P=[c][Pn(0xdb)]();let h=this;for(const t of P[Pn(0x342)]()){const I=P[t],K=await h[Pn(0x14f)](findNodeBySelector,[I]);if(!K)return null;if(t<P[Pn(0x67b)]-0x1)h=await K[Pn(0x28f)]();else return K;}return null;}async['$$'](c){const PH=O,P=[c][PH(0xdb)]();let h=[this];for(const t of P[PH(0x342)]()){const I=P[t],K=await h[PH(0x472)](async(j,z)=>{const Po=PH,R=await z[Po(0x14f)](findNodesBySelector,[I]),G=await j;return G[Po(0x3a6)](...R),G;},Promise[PH(0xb3)]([]));if(K[PH(0x67b)]===0x0)return[];if(t<P['length']-0x1)h=await Promise[PH(0x630)](K['map'](async j=>j['getContentFrame']()));else return K;}return[];}async[O(0x10f)](c,P={}){const PW=O,h=this[PW(0x653)][PW(0x474)],t={'disableCache':P[PW(0x7fd)]??![],'includeCredentials':P[PW(0x6e8)]??!![]};let I;try{I=await h[PW(0x14f)]('Network.loadNetworkResource',{'frameId':this['frameId'],'url':c,'options':t});}catch(Q){throw new FrameFetchError(Q instanceof Error?Q[PW(0x7a9)]:String(Q));}const {success:K,httpStatusCode:j,headers:z,netErrorName:R,stream:G}=I[PW(0x221)];if(!K&&j===void 0x0)throw new FrameFetchError(R??PW(0x4c3));const p={};for(const [k,a]of Object[PW(0xde)](z??{}))p[k['toLowerCase']()]=typeof a===PW(0x4ae)?a:String(a);let Z;if(G)try{Z=await buffer(makeRemoteStream(h,G));}catch(N){throw new FrameFetchError(N instanceof Error?N[PW(0x7a9)]:String(N));}else Z=v[PW(0x557)](0x0);return{'request':{'url':c,'method':'GET','headers':{},'body':()=>Promise[PW(0xb3)](new Uint8Array())},'status':j??0xc8,'headers':p,get 'body'(){const Pv=PW;return Readable[Pv(0x37c)](Z);},'arrayBuffer':()=>Promise[PW(0xb3)](new Uint8Array(Z)['buffer']),'base64':()=>Promise[PW(0xb3)](Z[PW(0x349)](PW(0x7c2)))};}async[O(0x14f)](c,P,h){const Pw=O;return this.#execute(Pw(0x742),c,P,h);}async[O(0x719)](c,P,h){const Pc=O;return this.#execute(Pc(0x7a6),c,P,h);}async[O(0x814)](c,P){const PP=O;return this.#evaluate(PP(0x742),c,P);}async[O(0xf1)](c,P){const Ph=O;return this.#evaluate(Ph(0x7a6),c,P);}async[O(0xb3)](c){const Pt=O;return this.#resolve(Pt(0x742),c);}async[O(0x74a)](c){const PI=O;return this.#resolve(PI(0x7a6),c);}},FrameEvaluatorAttached=class extends Event{['evaluator'];constructor(c){const PK=O;super('evaluatorAttached'),this[PK(0x2e2)]=c;}},FrameLifecycleEvent=class extends Event{constructor(c){super(c);}},FrameNavigatingEvent=class extends Event{[O(0x54a)];[O(0x23a)];constructor({url:c,reason:P}){const Pj=O;super('navigating'),this[Pj(0x54a)]=c,this['reason']=P;}},FrameNavigatedEvent=class extends Event{[O(0x54a)];['reason'];['loaderId'];constructor({url:c,reason:P,loaderId:h}){const Pz=O;super('navigated'),this[Pz(0x54a)]=c,this['reason']=P,this[Pz(0x39e)]=h;}},FrameDocumentRequestEvent=class extends Event{['request'];constructor(c){const PR=O;super('request'),this[PR(0x331)]=c;}},FrameDocumentResponseEvent=class extends Event{[O(0x12b)];constructor(c){const PG=O;super(PG(0x12b)),this[PG(0x12b)]=c;}},FrameSwappingEvent=class extends Event{constructor(){const Pp=O;super(Pp(0x741));}},FrameSwappedEvent=class extends Event{[O(0x653)];constructor(c){const Pg=O;super('swapped'),this[Pg(0x653)]=c;}},FrameDestroyedEvent=class extends Event{constructor(){const PZ=O;super(PZ(0x1f9));}};function makeLoader(c){return new Loader(c);}var Loader=class extends EventTargetNode{#frame;constructor({frame:c}){const PQ=O;super(),this.#frame=c,this.#frame&&(this['on'](PQ(0x331),({resource:P,request:h})=>{const Pk=PQ;if(P===Pk(0x31b))this.#frame[Pk(0x2db)](new FrameDocumentRequestEvent(h));}),this['on'](PQ(0x12b),({resource:P,response:h})=>{const Pa=PQ;if(P===Pa(0x31b))this.#frame[Pa(0x2db)](new FrameDocumentResponseEvent(h));}));}async*[O(0x48d)](){const PN=O,c=makeWatcher();let P=[];this['on'](PN(0x12b),({response:h})=>{const PT=PN;P[PT(0x3a6)](h),c[PT(0xb3)](),c['reset']();});while(!![]){await c,yield*P,P=[];}}},LoaderRequestEvent=class extends Event{[O(0x4d8)];[O(0x331)];[O(0x221)];constructor(c,{requestId:P,resource:h},t){const PS=O;super(PS(0x331),t),this[PS(0x4d8)]=P,this[PS(0x221)]=h,this[PS(0x331)]=c;}},LoaderResponseEvent=class extends Event{[O(0x4d8)];[O(0x12b)];[O(0x221)];constructor(c,{requestId:P,resource:h},t){const PV=O;super(PV(0x12b),t),this[PV(0x4d8)]=P,this['resource']=h,this[PV(0x12b)]=c;}};function makeBlockingDialog(c){return new BlockingDialog(c);}var BlockingDialog=class extends EventTargetNode{[O(0x653)];[O(0x345)];[O(0x7a9)];constructor({target:c,type:P,message:h}){const PD=O;super(),this[PD(0x653)]=c,this[PD(0x345)]=P,this[PD(0x7a9)]=h;}async[O(0x74f)](c,P){const Pm=O;log('dialogHandling',{'targetId':this[Pm(0x653)][Pm(0x81e)]}),await this[Pm(0x653)][Pm(0x474)][Pm(0x14f)]('Page.handleJavaScriptDialog',{'accept':c,'promptText':P}),this[Pm(0x2db)](new DialogHandledEvent());}};function makeFilepickerDialog(c){return new FilepickerDialog(c);}var FilepickerDialog=class extends EventTargetNode{#handled=![];[O(0x286)];[O(0x807)];[O(0x244)];['accept'];[O(0x345)]=O(0x4e5);constructor({frame:c,element:P,multiple:h,accept:t}){const Pr=O;super(),this[Pr(0x286)]=c,this[Pr(0x807)]=P,this['multiple']=h,this['accept']=t;}get['handled'](){return this.#handled;}async[O(0x74f)](c){const PF=O;try{await this['element'][PF(0x425)](c),this.#handled=!![],this[PF(0x2db)](new DialogHandledEvent());}catch(P){error(PF(0x296),{'error':P});}}},DialogHandledEvent=class extends Event{constructor(){const PE=O;super(PE(0x7da));}};function makeDebugger(c){return new Debugger(c);}var Debugger=class extends EventTargetNode{#watchers={'holds':new Set(),'paused':makeWatcher()};#initialize(){const Pe=O;this[Pe(0x653)]['connection']['on'](Pe(0x5b7),async()=>{const PX=Pe;log(PX(0x6c1),{'targetId':this[PX(0x653)][PX(0x81e)],'reason':this.#watchers[PX(0x3d2)][PX(0x4b6)]?PX(0x665):PX(0x16d)});if(this.#watchers[PX(0x3d2)][PX(0x4b6)])this.#watchers['paused']['reset']({'hint':PX(0x665)});this['dispatch'](new DebuggerPausedEvent({'reason':this.#watchers['paused'][PX(0x7bc)]}));}),this[Pe(0x653)]['connection']['on'](Pe(0x2cb),async()=>{const Pi=Pe;log(Pi(0x2a2),{'targetId':this['target'][Pi(0x81e)]}),this.#watchers[Pi(0x3d2)][Pi(0xb3)](),this.#watchers[Pi(0x3ee)][Pi(0x7fe)](c=>c[Pi(0xb3)]()),this.#watchers[Pi(0x3ee)][Pi(0x769)](),this['dispatch'](new DebuggerResumedEvent());}),this.#watchers['paused'][Pe(0xb3)]();}[O(0x653)];get[O(0x3d2)](){const PL=O;return!this.#watchers[PL(0x3d2)][PL(0x4b6)];}constructor({target:c}){const PA=O;super(),this['target']=c,this['target'][PA(0x2a1)](PA(0x2c5))['then'](()=>this.#initialize());}[O(0x7a0)](){const PY=O;if(this.#watchers[PY(0x3d2)]['settled'])return()=>void 0x0;const c=makeWatcher();return this.#watchers['holds'][PY(0x22d)](c),()=>{const PU=PY;this.#watchers[PU(0x3ee)][PU(0x4a5)](c),c[PU(0xb3)]();};}async[O(0x2bb)](){const Ps=O;this.#watchers[Ps(0x3d2)]['reset']({'hint':Ps(0x16d)}),await this[Ps(0x653)][Ps(0x474)][Ps(0x14f)]('Debugger.pause'),this['target'][Ps(0x12d)][Ps(0xf1)](Ps(0x7ee))['catch'](()=>null);}async[O(0x579)](){const Px=O;await Promise[Px(0x104)](this.#watchers[Px(0x3ee)]);if(!this.#watchers[Px(0x3d2)][Px(0x4b6)])await this[Px(0x653)][Px(0x474)]['execute'](Px(0x5df),{'terminateOnResume':![]});}},DebuggerPausedEvent=class extends Event{['reason'];constructor({reason:c},P){const PB=O;super(PB(0x3d2),P),this[PB(0x23a)]=c;}},DebuggerResumedEvent=class extends Event{constructor(c){super('resumed',c);}};const us=buildLayout({'us':{'Escape':{'keyCode':0x1b,'key':'Escape'},'F1':{'keyCode':0x70,'key':'F1'},'F2':{'keyCode':0x71,'key':'F2'},'F3':{'keyCode':0x72,'key':'F3'},'F4':{'keyCode':0x73,'key':'F4'},'F5':{'keyCode':0x74,'key':'F5'},'F6':{'keyCode':0x75,'key':'F6'},'F7':{'keyCode':0x76,'key':'F7'},'F8':{'keyCode':0x77,'key':'F8'},'F9':{'keyCode':0x78,'key':'F9'},'F10':{'keyCode':0x79,'key':O(0x49f)},'F11':{'keyCode':0x7a,'key':O(0x74d)},'F12':{'keyCode':0x7b,'key':O(0x214)},'Backquote':{'keyCode':0xc0,'shiftKey':'~','key':'`'},'Digit1':{'keyCode':0x31,'shiftKey':'!','key':'1'},'Digit2':{'keyCode':0x32,'shiftKey':'@','key':'2'},'Digit3':{'keyCode':0x33,'shiftKey':'#','key':'3'},'Digit4':{'keyCode':0x34,'shiftKey':'$','key':'4'},'Digit5':{'keyCode':0x35,'shiftKey':'%','key':'5'},'Digit6':{'keyCode':0x36,'shiftKey':'^','key':'6'},'Digit7':{'keyCode':0x37,'shiftKey':'&','key':'7'},'Digit8':{'keyCode':0x38,'shiftKey':'*','key':'8'},'Digit9':{'keyCode':0x39,'shiftKey':'(','key':'9'},'Digit0':{'keyCode':0x30,'shiftKey':')','key':'0'},'Minus':{'keyCode':0xbd,'shiftKey':'_','key':'-'},'Equal':{'keyCode':0xbb,'shiftKey':'+','key':'='},'Backslash':{'keyCode':0xdc,'shiftKey':'|','key':'\x5c'},'Backspace':{'keyCode':0x8,'key':O(0x233)},'Tab':{'keyCode':0x9,'key':'Tab'},'KeyQ':{'keyCode':0x51,'shiftKey':'Q','key':'q'},'KeyW':{'keyCode':0x57,'shiftKey':'W','key':'w'},'KeyE':{'keyCode':0x45,'shiftKey':'E','key':'e'},'KeyR':{'keyCode':0x52,'shiftKey':'R','key':'r'},'KeyT':{'keyCode':0x54,'shiftKey':'T','key':'t'},'KeyY':{'keyCode':0x59,'shiftKey':'Y','key':'y'},'KeyU':{'keyCode':0x55,'shiftKey':'U','key':'u'},'KeyI':{'keyCode':0x49,'shiftKey':'I','key':'i'},'KeyO':{'keyCode':0x4f,'shiftKey':'O','key':'o'},'KeyP':{'keyCode':0x50,'shiftKey':'P','key':'p'},'BracketLeft':{'keyCode':0xdb,'shiftKey':'{','key':'['},'BracketRight':{'keyCode':0xdd,'shiftKey':'}','key':']'},'CapsLock':{'keyCode':0x14,'key':O(0x17c)},'KeyA':{'keyCode':0x41,'shiftKey':'A','key':'a'},'KeyS':{'keyCode':0x53,'shiftKey':'S','key':'s'},'KeyD':{'keyCode':0x44,'shiftKey':'D','key':'d'},'KeyF':{'keyCode':0x46,'shiftKey':'F','key':'f'},'KeyG':{'keyCode':0x47,'shiftKey':'G','key':'g'},'KeyH':{'keyCode':0x48,'shiftKey':'H','key':'h'},'KeyJ':{'keyCode':0x4a,'shiftKey':'J','key':'j'},'KeyK':{'keyCode':0x4b,'shiftKey':'K','key':'k'},'KeyL':{'keyCode':0x4c,'shiftKey':'L','key':'l'},'Semicolon':{'keyCode':0xba,'shiftKey':':','key':';'},'Quote':{'keyCode':0xde,'shiftKey':'\x22','key':'\x27'},'Enter':{'keyCode':0xd,'key':O(0x4cc),'text':'\x0d'},'ShiftLeft':{'keyCode':0xa0,'keyCodeWithoutLocation':0x10,'key':'Shift','location':0x1},'KeyZ':{'keyCode':0x5a,'shiftKey':'Z','key':'z'},'KeyX':{'keyCode':0x58,'shiftKey':'X','key':'x'},'KeyC':{'keyCode':0x43,'shiftKey':'C','key':'c'},'KeyV':{'keyCode':0x56,'shiftKey':'V','key':'v'},'KeyB':{'keyCode':0x42,'shiftKey':'B','key':'b'},'KeyN':{'keyCode':0x4e,'shiftKey':'N','key':'n'},'KeyM':{'keyCode':0x4d,'shiftKey':'M','key':'m'},'Comma':{'keyCode':0xbc,'shiftKey':'<','key':','},'Period':{'keyCode':0xbe,'shiftKey':'>','key':'.'},'Slash':{'keyCode':0xbf,'shiftKey':'?','key':'/'},'ShiftRight':{'keyCode':0xa1,'keyCodeWithoutLocation':0x10,'key':'Shift','location':0x2},'ControlLeft':{'keyCode':0xa2,'keyCodeWithoutLocation':0x11,'key':'Control','location':0x1},'MetaLeft':{'keyCode':0x5b,'key':O(0x591),'location':0x1},'AltLeft':{'keyCode':0xa4,'keyCodeWithoutLocation':0x12,'key':'Alt','location':0x1},'Space':{'keyCode':0x20,'key':'\x20'},'AltRight':{'keyCode':0xa5,'keyCodeWithoutLocation':0x12,'key':O(0x60a),'location':0x2},'AltGraph':{'keyCode':0xe1,'key':O(0x406)},'MetaRight':{'keyCode':0x5c,'key':'Meta','location':0x2},'ContextMenu':{'keyCode':0x5d,'key':O(0x37a)},'ControlRight':{'keyCode':0xa3,'keyCodeWithoutLocation':0x11,'key':O(0x7f4),'location':0x2},'PrintScreen':{'keyCode':0x2c,'key':O(0x29d)},'ScrollLock':{'keyCode':0x91,'key':O(0x614)},'Pause':{'keyCode':0x13,'key':'Pause'},'PageUp':{'keyCode':0x21,'key':O(0x76c)},'PageDown':{'keyCode':0x22,'key':'PageDown'},'Insert':{'keyCode':0x2d,'key':'Insert'},'Delete':{'keyCode':0x2e,'key':O(0x4cf)},'Home':{'keyCode':0x24,'key':O(0x50a)},'End':{'keyCode':0x23,'key':O(0x51b)},'ArrowLeft':{'keyCode':0x25,'key':O(0x709)},'ArrowUp':{'keyCode':0x26,'key':'ArrowUp'},'ArrowRight':{'keyCode':0x27,'key':'ArrowRight'},'ArrowDown':{'keyCode':0x28,'key':O(0x327)},'NumLock':{'keyCode':0x90,'key':O(0x417)},'NumpadDivide':{'keyCode':0x6f,'key':'/','location':0x3},'NumpadMultiply':{'keyCode':0x6a,'key':'*','location':0x3},'NumpadSubtract':{'keyCode':0x6d,'key':'-','location':0x3},'Numpad7':{'keyCode':0x24,'shiftKeyCode':0x67,'key':O(0x50a),'shiftKey':'7','location':0x3},'Numpad8':{'keyCode':0x26,'shiftKeyCode':0x68,'key':'ArrowUp','shiftKey':'8','location':0x3},'Numpad9':{'keyCode':0x21,'shiftKeyCode':0x69,'key':'PageUp','shiftKey':'9','location':0x3},'Numpad4':{'keyCode':0x25,'shiftKeyCode':0x64,'key':O(0x709),'shiftKey':'4','location':0x3},'Numpad5':{'keyCode':0xc,'shiftKeyCode':0x65,'key':O(0x62d),'shiftKey':'5','location':0x3},'Numpad6':{'keyCode':0x27,'shiftKeyCode':0x66,'key':O(0x378),'shiftKey':'6','location':0x3},'NumpadAdd':{'keyCode':0x6b,'key':'+','location':0x3},'Numpad1':{'keyCode':0x23,'shiftKeyCode':0x61,'key':'End','shiftKey':'1','location':0x3},'Numpad2':{'keyCode':0x28,'shiftKeyCode':0x62,'key':O(0x327),'shiftKey':'2','location':0x3},'Numpad3':{'keyCode':0x22,'shiftKeyCode':0x63,'key':'PageDown','shiftKey':'3','location':0x3},'Numpad0':{'keyCode':0x2d,'shiftKeyCode':0x60,'key':O(0x427),'shiftKey':'0','location':0x3},'NumpadDecimal':{'keyCode':0x2e,'shiftKeyCode':0x6e,'key':'\x00','shiftKey':'.','location':0x3},'NumpadEnter':{'keyCode':0xd,'key':O(0x4cc),'text':'\x0d','location':0x3}}}['us']);function buildLayout(c){const Pu=O,P=new Map();for(const h in c){const t=c[h],I={'name':h,'key':t['key']||'','code':t[Pu(0x317)]||t[Pu(0x377)]||0x0,'text':t[Pu(0x532)]??(t['key']['length']===0x1?t[Pu(0x509)]:''),'modifier':[Pu(0x6da),Pu(0x7f4),Pu(0x60a),Pu(0x591)]['includes'](t['key']),'commands':t['commands']};let K;if(t[Pu(0x7be)]){K={...I},K[Pu(0x509)]=t[Pu(0x7be)],K[Pu(0x532)]=t[Pu(0x7be)];if(t['shiftKeyCode'])K[Pu(0x24c)]=t[Pu(0x607)];}P[Pu(0x4c1)](h,{...I,'shifted':K});if(I[Pu(0x509)][Pu(0x67b)]===0x1)P[Pu(0x4c1)](I[Pu(0x509)],I);if(K)P[Pu(0x4c1)](K[Pu(0x509)],K);}return P;}function makeMouse(c){return new Mouse(c);}var Mouse=class{#target;#position={'x':0x0,'y':0x0};constructor({target:c}){this.#target=c;}get[O(0x446)](){return this.#position;}async[O(0x26d)](c,{signal:P}){const Pd=O,h=Array[Pd(0x7a2)](c)?c:[c];for(const I of h){const {x:K,y:j}=I,z=this.#position,R=1.7,G=0x5,p=Math[Pd(0x725)](K-z['x'],j-z['y'])/R,Z=Math[Pd(0x1b1)](p/G);for(let Q=0x0;Q<Z;Q++){P?.[Pd(0x77e)]();const k=Q/Z,a=lerp(z['x'],K,k),N=lerp(z['y'],j,k);await this.#target[Pd(0x474)][Pd(0x14f)](Pd(0x1a1),{'type':Pd(0x471),'x':a,'y':N},{'signal':P}),await w(G,void 0x0,{'signal':P});}await this.#target[Pd(0x474)][Pd(0x14f)](Pd(0x1a1),{'type':Pd(0x471),'x':K,'y':j},{'signal':P}),this.#position={'x':K,'y':j};}}async['click']({x:c,y:P},{button:button=O(0x280),times:times=0x1}={}){const PM=O;await this.#target['connection']['execute'](PM(0x1a1),{'type':PM(0x1be),'x':c,'y':P,'button':button,'clickCount':times}),await this.#target['connection'][PM(0x14f)](PM(0x1a1),{'type':PM(0x812),'x':c,'y':P,'button':button,'clickCount':times}),this.#position={'x':c,'y':P};}};function makeKeyboard(c){return new Keyboard(c);}var Keyboard=class{#target;#pressed={'modifiers':new Set(),'keys':new Set()};constructor({target:c}){this.#target=c;}async['press'](c,{raw:P,commands:h}={}){const Pq=O;await this[Pq(0x624)](c,{'raw':P,'commands':h}),await w(0xa),await this['up'](c);}async[O(0x624)](c,{raw:P,commands:h}={}){const PJ=O;for(const t of Array[PJ(0x7a2)](c)?c:[c]){let I=us['get'](t);if(!I)throw new Error(PJ(0x151)+t+'\x22');if(this.#pressed[PJ(0x781)]['has'](PJ(0x6da))&&I[PJ(0x399)])I=I[PJ(0x399)];P=!I[PJ(0x532)]||P&&I[PJ(0x509)]!==I[PJ(0x532)],await this.#target['connection'][PJ(0x14f)](PJ(0x5fb),{'type':P?PJ(0x524):'keyDown','modifiers':toModifiersMask(this.#pressed[PJ(0x781)]),'windowsVirtualKeyCode':I[PJ(0x24c)],'nativeVirtualKeyCode':I[PJ(0x24c)],'code':I[PJ(0x3d8)],'key':I['key'],'text':P?'':I[PJ(0x532)],'unmodifiedText':P?'':I['text'],'commands':[...h??[],...I[PJ(0xc4)]??[]]});if(I[PJ(0x3c5)])this.#pressed[PJ(0x781)][PJ(0x22d)](I['key']);else this.#pressed[PJ(0x342)][PJ(0x22d)](I['key']);}}async['up'](c){const Py=O;for(const P of Array[Py(0x7a2)](c)?c[Py(0x783)]():[c]){const h=us[Py(0x67a)](P);if(!h)throw new Error(Py(0x151)+P+'\x22');await this.#target[Py(0x474)][Py(0x14f)]('Input.dispatchKeyEvent',{'type':Py(0x2a4),'modifiers':toModifiersMask(this.#pressed[Py(0x781)]),'windowsVirtualKeyCode':h[Py(0x24c)],'nativeVirtualKeyCode':h['code'],'code':h[Py(0x3d8)],'key':h[Py(0x509)]});if(h[Py(0x3c5)])this.#pressed[Py(0x781)]['delete'](h['key']);else this.#pressed[Py(0x342)][Py(0x4a5)](h[Py(0x509)]);}}async[O(0x345)](c,{signal:P}={}){const Pl=O;for(const h of c){if(us['has'](h))await this[Pl(0x549)](h);else await this.#target['connection'][Pl(0x14f)]('Input.dispatchKeyEvent',{'type':'char','text':h});P?.['throwIfAborted'](),await w(0x64);}}async[O(0x693)](c,{keys:P}={}){const PC=O;if(P)await this[PC(0x549)](P);await this.#target[PC(0x474)][PC(0x14f)](PC(0x3a3),{'text':c});}};function toModifiersMask(c){const PO=O;let P=0x0;if(c[PO(0x5ab)](PO(0x60a)))P|=0x1;if(c['has'](PO(0x7f4)))P|=0x2;if(c[PO(0x5ab)]('Meta'))P|=0x4;if(c['has']('Shift'))P|=0x8;return P;}function lerp(c,P,h){return c*(0x1-h)+P*h;}function makeInjection(c){return new Injection(c);}var Injection=class extends EventTargetNode{#targets=new Set();#evaluators=new Map();#isolated=!![];#deep=!![];#watchers={'injected':makeWatcher()};async #inject(c){const h0=O;try{log(h0(0x12f),{'name':this[h0(0x3d8)],'targetId':c[h0(0x81e)]}),await c[h0(0x2a1)](h0(0x2c5)),this.#targets[h0(0x22d)](c),c['on'](h0(0x5dd),()=>this.#targets['delete'](c));for(const P of c[h0(0x6eb)]()){if(!this.#isolated&&P['defaultEvaluator'])await this.#attach(P[h0(0x523)]);P['on'](h0(0x170),async({evaluator:h})=>{const h1=h0;if(this.#isolated?h['name']===this[h1(0x3d8)]:h[h1(0x345)]===h1(0x7a6))await this.#attach(h);});}c['on'](h0(0x7de),({frame:h})=>{const h2=h0;h['on'](h2(0x170),async({evaluator:t})=>{const h3=h2;if(this.#isolated?t[h3(0x3d8)]===this[h3(0x3d8)]:t['type']===h3(0x7a6))await this.#attach(t);});}),c['connection']['on'](h0(0x57d),({executionContextId:h,name:t,payload:I})=>{const h4=h0;if(t===this[h4(0x646)]){const K=this.#evaluators[h4(0x67a)](c[h4(0x81e)]+':'+h);if(K){const j=JSON[h4(0x476)](I);this[h4(0x2db)](new InjectionIncommingMessageEvent(K,j[h4(0x3d8)],j[h4(0x3de)]));}}}),await c[h0(0x474)][h0(0x14f)](h0(0x3ae),{'name':this['binding'],'executionContextName':this.#isolated?this['name']:void 0x0}),await c['connection'][h0(0x14f)](h0(0x701),{'source':await makeExpression(this[h0(0x1d3)])[h0(0x408)](),'worldName':this.#isolated?this[h0(0x3d8)]:void 0x0,'runImmediately':!![]}),this[h0(0x2db)](new InjectionTargetAttachedEvent(c)),this.#deep&&(c['on'](h0(0x517),async({target:h})=>this.#inject(h)),await Promise[h0(0x630)](Array[h0(0x37c)](c[h0(0x4fd)](),async h=>this.#inject(h))));}catch(h){if(h instanceof AbortError)log(h0(0x29f),{'name':this['name'],'targetId':c['targetId'],'error':h});else throw h;}}async #attach(c){const h5=O;log('injectionEvaluatorAttached',{'name':this[h5(0x3d8)],'evaluatorId':c[h5(0x441)],'evaluatorName':c[h5(0x3d8)],'frameId':c[h5(0x286)]?.[h5(0x389)]}),this.#evaluators[h5(0x4c1)](c[h5(0x653)][h5(0x81e)]+':'+c[h5(0x441)],c),c['on']('destroyed',({evaluatorId:P})=>this.#evaluators['delete'](c[h5(0x653)]['targetId']+':'+P)),this['dispatch'](new InjectionEvaluatorAttachedEvent(c));}[O(0x3d8)];[O(0x646)];[O(0x1d3)];constructor({target:c,expression:P,name:h,deep:t,isolated:I}){const h6=O;super(),h??=P instanceof Expression?P['name']:h;if(!h)throw new Error('Cannot\x20create\x20an\x20injection\x20without\x20a\x20name');this[h6(0x1d3)]=P,this[h6(0x3d8)]=h,this['binding']='__'+h[h6(0x75c)]('\x20','_')+'_post_message',this.#deep=t??!![],this.#isolated=I??!![],this[h6(0x398)](),this.#inject(c)['then'](()=>{const h7=h6;this.#watchers[h7(0x1e4)][h7(0xb3)]();})[h6(0x730)](K=>{const h8=h6;this.#watchers[h8(0x1e4)][h8(0x7cf)](K);if(K instanceof AbortError)log(h8(0x76f),{'targetId':c[h8(0x81e)],'error':K});else error(h8(0x127),{'targetId':c['targetId'],'error':K});})[h6(0x775)](()=>nextTick(()=>this['uncork']())),this['on'](h6(0x2c3),async({name:K,payload:j,filter:z})=>{const h9=h6;try{await this[h9(0x14f)]((R,G,p)=>{const hf=h9,Z=globalThis,Q=Z['ports']?.[R];if(Q)setTimeout(()=>Q[hf(0x3f8)](new Z[(hf(0x392))](G,p)),0x0);},[this[h9(0x3d8)],K,j],{'filter':z});}catch(R){error('injectionPortSendFailed',{'portName':this[h9(0x3d8)],'messageName':K,'error':R});}});}*[O(0x4fd)](){yield*this.#targets['values']();}async[O(0x2a1)](c){await this.#watchers[c];}async[O(0x14f)](c,P,h){const hb=O;let t=Array[hb(0x37c)](this.#evaluators[hb(0x3bd)]());if(h?.[hb(0x506)])t=t[hb(0x506)](h[hb(0x506)]);return Promise['all'](t['map'](I=>I[hb(0x14f)](c,P,h)));}async[O(0x814)](c,P){const hn=O;let h=Array[hn(0x37c)](this.#evaluators[hn(0x3bd)]());if(P?.[hn(0x506)])h=h[hn(0x506)](P[hn(0x506)]);return Promise[hn(0x630)](h[hn(0x205)](t=>t[hn(0x814)](c,P)));}[O(0x2b2)](c,P,h){const hH=O;this[hH(0x2db)](new InjectionOutgoingMessageEvent(c,P,h));}},InjectionTargetAttachedEvent=class extends Event{[O(0x653)];constructor(c){const ho=O;super(ho(0x170)),this['target']=c;}},InjectionEvaluatorAttachedEvent=class extends Event{[O(0x2e2)];constructor(c){const hW=O;super(hW(0x170)),this[hW(0x2e2)]=c;}},InjectionOutgoingMessageEvent=class extends Event{[O(0x3d8)];['payload'];[O(0x506)];constructor(c,P,h){const hv=O;super('outgoingMessage'),this[hv(0x3d8)]=c,this[hv(0x3de)]=P,this[hv(0x506)]=h?.[hv(0x506)];}},InjectionIncommingMessageEvent=class extends Event{['evaluator'];[O(0x3d8)];[O(0x3de)];constructor(c,P,h){const hw=O;super('incommingMessage'),this[hw(0x2e2)]=c,this['name']=P,this[hw(0x3de)]=h;}};function makeRequestsTracker(){return new RequestsTracker();}var RequestsTracker=class{#requestsWatchers=new Map();#allDoneWatcher=makeWatcher();get[O(0x77d)](){const hc=O;return this.#allDoneWatcher[hc(0x4b6)];}get[Symbol[O(0x5e1)]](){const hP=O;return hP(0x2a5);}constructor(){const hh=O;this.#allDoneWatcher[hh(0xb3)]();}async[O(0x2a1)](){await this.#allDoneWatcher;}[O(0x177)](c,P){const ht=O;this.#requestsWatchers['set'](c,P);if(this.#allDoneWatcher[ht(0x4b6)])this.#allDoneWatcher[ht(0x6e7)]();P['finally'](()=>{const hI=ht;if(this.#requestsWatchers[hI(0x67a)](c)===P)this[hI(0x759)](c);});}[O(0x759)](c){const hK=O,P=this.#requestsWatchers['delete'](c);if(P&&this.#requestsWatchers[hK(0x5a4)]===0x0)this.#allDoneWatcher['resolve']();return P;}[O(0x1a2)](c){const hj=O;this.#requestsWatchers['get'](c)?.[hj(0xb3)]();}['debounceBy'](c,P){const hz=O;this.#requestsWatchers[hz(0x67a)](c)?.[hz(0xb3)](void 0x0,{'delay':P,'key':hz(0x175)});}};function f(){const gp=['ChjL','zgLHBg9Nt3bLBMvK','y29UDgv4Da','zNjHBwvoyxzPz2f0Aw9UuMvXDwvZDgvK','rKLsu1rFt1jervjfrf9ot0rfx1rzueu','zNvUy3rPB24Oksb7CMv0DxjUicG','BM9KzunVDw50','AgLKzgvU','yMXVyJO','ywn0AxzLrwXLBwvUDa','CMvQzwn0','Dhj1zq','y29SB3jWAwnRzxi','AxnuzxH0tM9Kzq','Dw5Hy2nLC3nPyMXLsg9ZDhm','DM9Jywj1BgfYEq','zMLLBgq','DgfYz2v0q3jHC2HLza','z2v0rwXLBwvUDfnLBgvJDg9Y','z3jLzw4','CM9Szq','AgfUzgXLza','DxnLCI1Hz2vUDa','zMXHDe1HCa','zMv0y2HLCW','zNjHBwvbDhrHy2HLza','zM9Yy2vsDw5UAw5NqxnZzxj0Aw9UCW','w1TqCM9TAxnLu3rHDgvDxq','tM8GBgLZDcb2ywX1zsb3yxmGzM91BMqGyxqGAw5KzxGG','zxHLy3v0zvnJCMLWDa','yxqGDgHLihrVCcbVzG','zhjPDMvY','AgfZqM9YzgvY','lI4VlI4VyxnZzxrZl2v4DhjHy3qTCgrMlwf4lxrYzwuTq3HgodDuruGUANm','BMf2AwDHDgLVBG','CMvXDwvZDenVDw50','y2HVB3nLq2HPBgq','y29VA2LLihzHBhvL','C3vWzxjSyxrPDMu','D2L0AcbJC3mGC2vSzwn0B3iGjW','yxqGDgHLigXLzNqGyw5KigjVDhrVBsbVzG','msaRide','CMfUzg9TvMfSDwvZ','C3rHy2S','C2HPzNq','zxH0zw5ZAw9UCW','Aw5JB21TAw5NtwvZC2fNzq','q29UDhjVBa','y2HLy2TLza','zMv0y2GGDxjS','DxnLCG','zw11Bgf0zq','Dg8GDgHLigXLzNqGyw5KigfIB3zLig9M','y29TBwL0tMf2AwDHDgLVBG','zxHLy3v0Aw9Uq29UDgv4DerLC3rYB3LLza','yxHoB2rLvMLLD01PC21HDgnO','zgLZywjSzunHy2HL','zM9YrwfJAa','DMfSAwrHDgu','D2L0Aca','y29SB3jZ','vMfSDwu','x3r5Cgu','CMvHzhK','s2v5ta','z2v0u2vSzwn0B3i','zwXLBwvUDa','iIbPCYbJCMvHDgvKigzVCIbMCMfTzsb3AxrOigLKici','Bgf2zw5Kzxi','tMv0D29YAY5SB2fKAw5NrMLUAxnOzwq','zgv0ywnOzwq','zM9Y','BgvMDfvW','DMLZAwjPBgL0EvrYywnRzxi','zgf0zxrPBwu','D2fPDgLUz0zVCLn0ywjPBgL6yxrPB24','ChjLAw5ZDhj1y3rPB25Z','Bw91C2vszwXLyxnLza','u2HPzNrmzwz0','zxzHBhvHDgu','zgvMAw5LuhjVCgvYDhK','i0zgqJzdmq','tMv0D29YAY5KyxrHuMvJzwL2zwq','zg91yMXLihf1B3rLza','w2rHDgeTD2vIzhjPDMvYlwvSzw1LBNqTBwfYA10','AgfZug9ZDerHDge','BM9VCa','DgL0Bgu','C2HVCNq','DgfYz2v0swq','Bwf0y2HPBMDtDhjVBMC','tgfIzwW','q2fUBM90ihjLDhvYBIbZDgf0zsb0Agf0ihDHC24NDcbWCM92AwrLza','zw5Kug9Z','igjVzhKG','yNjVD3nLCKnSB3nPBMC','CMvJB3jKAw5Nu3rVChbLza','z2vUzxjHDgvsyw5KB21wywX1zq','zgvSzwDHDgvZrM9JDxm','iZjgney0rG','C2v0q29UDgvUDhntAxPL','BgLZDgvUzxjbzgrLza','CgfNzunYzwf0zwq','Bxv0yxrVCNm','zNjVBvf1ywq','re9nlMvUywjSzq','ywn0AxzLugfNzunOyw5Nzwq','AxnpyNnJDxjLza','vgHLigfYz3vTzw50ia','CMvZB2X2zq','AxntzwnYzxq','i0reqtbera','rMv0y2GUy29UDgLUDwvszxf1zxn0','vgfYz2v0lNnLDerPC2nVDMvYvgfYz2v0CW','zxzLBNq','yxv0B21HDg9Y','BMvHCG','rvzbtfvbveLptL9gquLmruq','Aw5WDxrBDhLWzt0ICMfKAw8IxsXPBNb1DfT0ExbLpsjJAgvJA2jVEcjD','zgvIB3vUy2vcEq','iZq4rdfdqW','AxnwAxnPyMXL','zMLSzxbPy2TLCL9TB2nRzxi','BgfZDa','BwfNzw50yujYAwDODa','rKfjtevex0ftu0vsveLptG','y29TBwfUzhm','q29VA2LL','Aw5PDefyvhjLzq','y2HLy2S','ic0G','D2vHA0XVy2fSt2jQzwn0uMvMzxjLBMnL','BwLU','CMvJDa','ywjVDMu','y29UDhjVBe5VzgvZ','CgfYC2vjBNq','zg9JDw1LBNqUC2nYB2XSAw5NrwXLBwvUDc5Zy3jVBgXizwLNAhq','u2vTAwnVBg9U','rNjHBwvgzxrJAevYCM9Y','zMv0y2HLza','zw4Tvvm','x2HHBMrSzwq','BgfZDeLUzgv4','iZHcmdaWma','kcG/oIG/iq','CMvJDhm','zg9JDw1LBNqUC2nYB2XSAw5NrwXLBwvUDc5Zy3jVBgXxAwr0Aa','i0neoduZrG','zMXHDa','BwfRzvrYzwu','CMv2B2TLza','zw50CMLLCW','zM9YzwDYB3vUzc1JB2XVCG','AgfZsw5ZDgfUy2u','rgLNAxq3','iZffotbgrG','rxzHBhvHDgLVBIbMywLSzwq','C3vIC3rYAw5N','zNjVBuPtt04','Aw50zxjUywW','zNjHy3rPB24','x2rPCMvJDgLVBG','zM9SBg93CW','AxntDhj1y3r1CMu','x2vSzxzHDgLVBG','DgLTzsbWAwnRzxi','CgfUzwW','ChjVCgvYDgLLCW','AxnwAwv3Cg9YDerLC2nYAxb0B3i','x29WDgLVBNm','zgvMyxvSDev2ywX1yxrL','ugfNzs5MCMfTzuf0DgfJAgvK','vw5RBM93BIbZy29Wzsb3AxrOigLKici','B2jQzwn0','B3jKzxjeAxjLy3rPB24','y29TBwvUDa','CM91BMq','Cg9Z','C2LSDMvY','AxntDgfJA2LUz0nVBNrLEhrsB290','iZC3odG5oq','rw11Bgf0Aw9UlNnLDfzPC2LIBgvtAxPL','zgvZDhjVEq','uNvUDgLTzs5LEgvJDxrPB25dB250zxH0C0nSzwfYzwq','u2XHC2G','tMv0D29YAY5SB2fKAw5NrMfPBgvK','zgvWzw5Kzw50igfJDgLVBG','zg9JDw1LBNrfBgvTzw50','ywn0AxzLugfNzq','ywXSu2v0DgXLza','AxnfBgvTzw50','y2fWDhvYzq','ugfNzs5UyxzPz2f0zvrVsgLZDg9YEuvUDhj5','twLUDxm','Aw5ZDhj1y3rPB25fEgvJDxrPB25gAw5PC2HLza','yxr0ywnOzwruyxjNzxrZ','nKPStNjoBq','i0rdmtqZqW','re9nlMzVy3vZ','iZq4m0q4qG','zMv0y2G','iIbPxq','CMvJB3jKigTLEq','Cg9WDxa','CMvMCMvZAa','zxHLy3v0Aw9Uq29UDgv4DenYzwf0zwq','yxjPys1JAgvJA2vK','Dg8GDgHLihjPz2H0igfUzcbHyM92zsbVzG','i0rfqJG4nW','i0zgrtrfmq','CgrMugfNzuLZB2XHDgLVBKzHAwXLza','CgfYyw1LDgvYCW','yxv4rgf0yq','B3bLCMf0B3i','C2vWyxjHDg9YCW','BgLZDgL0zw0','y2f1C2u','CMfUzg9TihzHBhvL','x19TB2nRrMLSzxbPy2TLCG','z2v0vgfNtMfTzq','ywjVDMvSzwz0B2y','qxjYB3DvCa','iZaWq0vemq','zgvLCfnLCMLHBgL6zwrwywX1zq','Aw5Qzwn0Aw9UrMfPBgvK','CMvTB3zLrxzLBNrmAxn0zw5LCG','i0zboda3mG','q2fUBM90ig11Dgf0zsbZDgf0zsb0Agf0ihDHC24NDcbWCM92AwrLza','CMvZCg9UC2u','i0yWrKzgrG','BwfPBKzYyw1L','BMf2AwDHDguGCgrM','Aw5Qzwn0Aw9Uu3rHCNrLza','z2v0qxr0CMLIDxrL','ywXWAge','rwXLBwvUDfr5Cgu','BM93','yw5K','zMLSzxbPy2TLCKf1Dg9tzxr1CezHAwXLza','x3bHBMvS','C2vJlxDLyNnVy2TLDc1LEhrLBNnPB25Z','yw1WBgL0DwrLlMnVBq','ruXftuvovf9ot1rFvevyvejpwa','rxHLy3v0Aw9UignVBNrLEhqGD2L0AcbPzcaI','i0zgnduWma','lI4VlI4VyxnZzxrZl2DLDc1LBgvTzw50lxzHBhvLlujYn1jyy0nylMPZ','EhbHDgG','z2vUzxjHDgvsyw5KB21wywX1zsbJywXSyMfJAYbUB3qGChjVDMLKzwq','x19JB250zxH0','CxvHBgL0Eq','Axnqyxr0zxjU','rMfPBgvKihrVihnLBMqGDgHLihjLCxvLC3q','C3r5BgvZAgvLDeLK','tK9FtKvyvf9uqui','zML4ywjSzq','Aw50zxjJzxb0zwq','ogzjz3D5zq','Aw50zw50','ugfYC2LUzYbMDw5JDgLVBIbLEhbLy3rZigeGC3rYAw5NigLUChv0','yxHuCMvLrxH0CMfJDgLVBKnVDw50','mM83lM5LDa','AxnmywjLBe9M','BM90','DMLZDwfS','zxHLy3v0zq','yMfJA2DYB3vUza','vw5RBM93BIbRzxKGiG','iZaWoda4ma','zgvZy3jPChrPB24','rxnJyxbL','BMf2AwDHDgLVBIb1CMW','DgLTzxbPy2TLCG','DMLZAwjPBgL0EvrYywnRAw5NrMfPBgvK','BMf2AwDHDgLVBLvYBhm','seforeXfuL9bqK9sveve','AxngAwXLsgfUzgXL','D2LUzg93uMvZB2X1DgLVBKzHAwXLza','y2XVC2u','Axnsyw5KB21wywX1zq','y2HHCG','s2v5tW','zNjVBvbVAw50CW','DhLWzvrLEhq','ChjVDg90ExbL','zgvSzxrLrgvZy2vUzgfUDhm','sw50zxjJzxb0ifberIbYzxf1zxn0CYbHBMqGC2vYDMuGDgHLie5mucbet00TyMfZzwqGDMLLD2vYigLUC3rLywqGB2yGDgHLigjYB3DZzxiGuergihzPzxDLCG','zNjHBwvuyxjNzxrtD2fWCgvK','C2vSzwn0qwXS','ANnVBG','y2fUvhLWzuLUDg8','Bg9HzgLUzW','C2v0rwXLBwvUDfzHBhvL','Dg8GDgHLihjPz2H0ig9M','B3bLBMvYrNjHBwvjza','ChjVz3jHBw1HDgLJ','DgfYz2v0q3jLyxrLza','i0zgrtrcnq','zxzHBhvHDg9Yqxr0ywnOzwq','zw5KC1DPDgG','rgLNAxq0','q2fU4OczDcbNBYb0BYb0AguG','i0nenum1qW','zgvIB3vUy2u','yM9YzgvYuMvJDa','DhjHy2S','BwfNzw50yq','z2v0qM94','DgfIBguTBgvHzI1JB2X1Bw4','C2nYB2XSv2LKDgG','q2fWC0XVy2S','vw5RBM93BIbVCgvYyxrVCG','yxr0ywnOzwq','ywn0AxzLugfNzunOyw5NAw5N','CNvUBMvY','rvHdruverurFquXmt1Dfrf9usu1ft1vu','uMvZCg9UC2uGyM9KEsbOyxmGywXYzwfKEsbIzwvUignVBNn1BwvKoYbJyw5UB3qGy2fSBcaI','twv0yuXLzNq','CMvZDwX0','zgf0zsbWAwnRzxi','zxnJyxbL','i0zgrJbgnq','zwXLDMf0Aw9U','ChjVEhK','yxn5BMneAxnWB3nL','yMfZzty0rw5JB2rLza','Aw5ZAwrL','u3rHBgvoB2rLrxjYB3i','C3vMzML4','Dw5KzxjSAw5L','C2XPzgvY','lI4VlI4VyxnZzxrZl2nOzwnRlxzPC2LIAwXPDhKTtKjunLnADMKUANm','zgvIDwDmB2C','C2vZC2LVBKLK','DgLTzxn0yw1W','CM93q2vSBhm','C2vHCMnOAw5NrM9YrwXLBwvUDa','zM91BMq','BwLZBwf0y2HLza','tMv0D29YAY5NzxrdB29RAwvZ','zgLZy29UBMvJDgvK','C3rHCNq','CMvSyxrPDMu','y29Uy2f0','iIb0Agf0ihDHCYbZzw50ihDPDgGGAwqG','Dgv4DenVBNrLBNq','Cg9YDenSB3nLza','sw5WDxqUzgLZCgf0y2HnB3vZzuv2zw50','CMvZB2X2zuj5','iZCWoda5ma','q2fUj3qGzxHLy3v0zsbZy3jPChqGAw4GCMvUzgvYzxiGDgfYz2v0lcb1C2uGDgfYz2v0j3mGBwfPBIbMCMfTzsbPBNn0zwfK','DMvYC2LVBG','y29Sq2vSBhm','qM9KEsbJB3vSzcbUB3qGyMuGy29UDMvYDgvKihrVifHntcbMB3jTyxq','q29UDhjVBeXLzNq','odaXwK92Ehf1','Bxv0yxrLzeTLExm','Cgf0Aa','tMf0AxzLigrPywXVzYbUB3qGzM91BMq','CMfKAw9NCM91Ca','DMLZAwjSzq','ugfNzs5Jyxb0DxjLu2nYzwvUC2HVDa','t3zLCMXHEs5ZzxrjBNnWzwn0tw9Kzq','y2vPBa','q2fUBM90igDLDcbRzxLZig9MihrOzsa','BMXWoNj1BM5LCJP0CMfJzq','zw50Axr5','ChjPy2u','C2XPy2u','ywn0AxzHDgvozxH0ugfNzq','qujpuLrFrvjs','BMv4DfbHz2u','Ag90AMfYlMnVBq','zMLUzevSzw1LBNq','zMLUzc1LBgvTzw50','CgvHy2G','Bw91C2vqCMvZC2vK','z2vUzxjHDgvpvfaGy2fSBgjHy2SGBM90ihbYB3zPzgvK','y2HPBgruyxjNzxrdCMvHDgLUzW','x3jVB3q','iZvgouvbma','iZaWoei4qG','x3rYzwu','D2L0Aa','zgf0ys13zwjKCML2zxiTzwXLBwvUDc1TyxjR','lI4VlI4VyxnZzxrZl2v4DhjHy3qTyxGTDhjLzs1ewuvIy3rkCc5QCW','zM9YzwDYB3vUza','zMLSzq','y3jLyxrLzef0','x3j0CMvL','yxbW','C2nYB2XSvg8','Bwv0CMLJCW','ugfNzs5QyxzHC2nYAxb0rgLHBg9Nq2XVC2vK','z3jVDxbZ','Dg9mB3DLCKnHC2u','BMXWugrMu3rHDgu','zxHWCMvZC2LVBG','iZaWnJqWma','vu5fwfbfq1rfrf9oqvzjr0fusu9ox1nuqvrvuW','D3nezwj1z2DLCLvYBa','ksGP','z2v0t2jZy3vYyxrPB25syxrPBW','Aw5JBhvKzxm','x19UzxH0ugfNzq','yMXVy2S','Dw5XDw90zwq','qNjVD3nLCI5ZzxrdB250zw50C1nPEMu','Dg9qCMLTAxrPDMu','Dg9iyxi','zMLSzxm','yMXVy2TLza','igfUzca','ihvYBa','Aw5Qzwn0zwq','CxvVDgLUzW','yxv0B21HDgLJ','x2rLy2XHCMf0AxzLrgvZy3jPChrPB24','B3bLBMvYswq','rgLNAxq4','zgvZAxjLzcbVChrPB24G','ugfNzs5NzxroyxzPz2f0Aw9UsgLZDg9YEq','DgfYz2v0vMLZAwjPBgL0EunOyw5Nzwq','B2jZzxj2zq','qxjYyxKO','C2v0qxr0CMLIDxrL','BM9Kzs1JB2XSyxbZzwq','DgfIBguTAgvHzc1JzwXS','vgLTzw91DcbVzIa','Bg9HzgvK','ChjPB3jPDgL6zwqTy2fUzgLKyxrLCW','C3rYDwn0DxjHBa','BgLTAxq','y29SBgvJDeLKzw50Axr5','ywnJzxb0','zgvZDhjVEwvK','C2vJB25K','C3r1yIbJB2X1Bw4','iIbZDgfYDgvKigXVywrPBMCGyNv0ihrOzsbMCMfTzsb3yxnUj3qGzM91BMq','i0zgqZbdqG','i0i4odyWqG','i0jdoey4rG','zNjHBwvtDwjYzxnVDxjJzq','yxnZzxj0Aw9UrxzHBhvHDgvK','CgrMvMLLD2vY','ywn0AxzHDgu','C3rLCeLUzgv4','BwfW','su5urvjoquW','y2rWq29TBwfUzefIB3j0zwq','Bg9JywXoyw1L','yM9YzgvY','uNvUDgLTzs5YzwXLyxnLt2jQzwn0','DgfIBguTy2vSBa','i0y0qtq2ma','rMv0y2GUzNvSzMLSBfjLCxvLC3q','re9nlMDLDenVBNrLBNrrDwfKCW','ChjVCgvYDhK','v2vIigvSzw1LBNrZigrVig5VDcbZDxbWB3j0igrPCMvJDcb0ExbPBMCUifvZzsbRzxLIB2fYzc50ExbLkcKGAw5ZDgvHzc4','y29UzgL0Aw9UywXZ','zxH0CMfJDfbKzKfyvhjLzq','C3rHDhndAgfUz2vK','rJeY','y2XHCML0Es5TCW','tMv0D29YAY5YzxnWB25ZzvjLy2vPDMvK','y29VA2LLCW','yw55','ihbHz2u','CgfKu3rHCNq','z2v0q29VA2LLCW','Aw50zxjJzxb0','Dw5KzwzPBMvK','AxnVBgf0zwqT','BgvMDfrVCa','CMvZCg9UC2vfCNjVCLjLyxnVBG','CMvZB3vYy2u','zwXLBwvUDfnLBgvJDgLVBLn0yxj0zwq','yxqGDgHLihjPz2H0ig9M','CgfYyw1Z','CMfJzq','ue9tva','u3rVCMfNzs5JBgvHCKnVB2TPzxm','y3jPBxnVBG','ihrVihrOzsbZzxnZAw9Uici','CMvMzxjLBMnL','yxHuCMvLrxH0CMfJDgLVBKfIB3j0zwq','ANmTCMvZDwX0','ywrK','rxf1ywW','DgfYz2v0rgv0ywnOzwq','zgvWDgG','DgHLihzPzxDWB3j0','zwXLBwvUDerLC2nYAxb0B3jhzw5LCMf0zwq','qMfJA3nWywnL','zgvTzgv4lM5LDa','C2TPChm','iZmYq0qZmG','y2fUy2vStMf2AwDHDgLVBG','zgv2Dg9VBhm6lY8','DgHL','CMvHC29U','iZLbq0qZmG','z3jHEq','u2vNBwvUDa','AxrLCMf0zu5LEhq','B3bLCMfUza','q2fUj3qGzxzHBhvHDguGzxHWCMvZC2LVBIbPBIbYzw5KzxjLCIb0yxjNzxqSihvZzsb0yxjNzxqNCYbTywLUigzYyw1LigLUC3rLywq','z2v0qM91BMrPBMDdBgLLBNrszwn0','y29UBMvJDgLVBLnVy2TLDenSB3nLza','zMXHz3m','BxvSDgLWBgu','Bw9Kzq','rxzLBNruyxjNzxq','C2nYB2XSsgvPz2H0','Cgf0DgvYBG','ywn0AxzL','iIbMAxjLzcbHigXPzMvJEwnSzsbLDMvUDcbIDxqGDgHLigzYyw1LihDHC24NDcbMB3vUza','zxzLCNK','y29Kzq','DMLLD3bVCNrfBgvTzw50','BwfNBML0DwrL','yMfJA3DHCMq','zgvIDwDNzxjbzgrYzxnZ','yMvSB3DSzwz0B2y','x3bVChvWCW','i0zgqta3qq','Dgv4DgjVEa','z2v0vMfSDwu','A2vIywjJyxnL','rxjYB3iGEW','CgfYyw1LDgvYihzHBhvL','D2LUzg93uMvZB2X2zwq','zgvZy3jPyMuTyxGTBM9Kzq','CM9VDa','z29VzZPJAhjVBwvpChrPB25Z','iZHcnduXmW','zxHJzxb0Aw9Urgv0ywLSCW','ywXLCNq','z3jVDxa','BwvUDwL0zw0','CMvZB2X2zuzPBgvUyw1L','i0uWrKzgrG','yxqGDgHLigjVDhrVBsbVzG','q29TBwe','lNrHyMjLzc1Wyw5LpJ4+w2fYAweTBgfIzwW9iG','yNvMzMvY','vMvJDg9Y','AhjLzG','x2nVBNrYB2XoB2rLCW','rwXLBwvUDcbPCYbUB3qGysb0zxH0yM94','C3rHyMLSAxPPBMDmB2fK','Bw92zq','BwvUDsbPDgvT','yM90Dg9TCMLNAhq','Cg9ZDa','Bxv0yxrLza','z2v0vMLLD3bVCNrtAxPL','Ag92zxi','Bw96oMrLyNvNz2vYqwrKCMvZCW','yNv0Dg9U','Dw5ZzxbHCMf0zq','uxvVDgu','DgfIBguTBgvHzI1YB3C','zNjHBwvmB2fKAw5Nu3rVChbLza','mti3lJaUmc4X','C2HVDwXKu2TPCefZC2vYDgLVBNnjBK5LC3rLzfnJB3bL','yxnbCMD1BwvUDa','z2v0u2nYzwvUqM94','q29UDhjVBeXLzNqRrJu','BM9Kzq','BgvMDa','y29SB3iGCgLJA2vY','s2v5wa','DMLLD3bVCNq','BgfIzwXZ','zMLYC3q','zNjHBwu','B3jHBMDL','zMLUzfrPBwvVDxq','lI4VlI4VyxnZzxrZl2zPBMqTBM9Kzs1IEs1ZzwXLy3rVCI1gs1HtmeS5rY5QCW','i0zgruzenq','zxf1ywW','C3rHDgvZ','zgLZCgf0y2HLCG','y29UDgLUDwu','z2v0q29UDgvUDezYyw1L','yxbWBgLJyxrPB24VANnVBG','DMfYAwfIBgvZ','DgfYz2v0sw5PDefIB3j0zwq','AgvHzgvYia','z2v0u2HHzg93uM9VDa','iIbPCYbYzw1VDMvKigj1Dcb0AguGzNjHBwuGD2fZBID0igzVDw5K','zMLSzxbPy2TLCKHHBMrSzuzHAwXLza','zwXLBwvUDfnLBgvJDgvK','y2fTzwXJyxnL','BM9Kzxm','y29UzgL0Aw9U','y29UC3rYDwn0zwq','Dhj5vg9vBM9IC2n1CMu','uhjPBNrty3jLzw4','AxnpDxrpzLbYB2nLC3m','Aw5Qzwn0Aw9UvgfYz2v0qwjVCNrLza','Bg9JywXL','D2fPDa','zgvIDwDNzxjszxn1BwvK','vgfYz2v0ihDPDgGGAwqGiG','A2v5vxa','uMvXDwvZDfrYywnRzxi','CNvUBMLUz1bYzvn0zxbjBNn0CNvJDgLVBG','DgLTzw91Da','AxzVCNK','x2rLy2XHCMf0AxzLtgfIzwW','CgfYzw50rNjHBwvjza','A2v5D29Yza','C3rHCNrZihDPDgG','i0zgmdbgrG','CMvWzwf0','i0zgmdaWma','q2fUBM90ihbYB2nLzwqGDw50AwWGBMf0AxzLigjSB2nRAw5NigrPywXVzYbPCYbOyw5KBgvK','z2v0rgvZy3jPChrPB24','C2vUza','y29UDgvUDhnXDwfYzs5Uzxq','s2v5vG','lI4VlI4VyxnZzxrZl2zPBMqTBM9KzxmTyNKTC2vSzwn0B3iTq2jSnvL5BJCUANm','DhvYCxvVAxnL','AgfUzgXLCKzSDxnOzwq','tMf2AwDHDgLVBG','Cgf0Ag5HBwu','zgLMzG','Cgf1C2u','C2vSzwn0yM94','ChjVDg9JB2W','Bgv2zwXZ','Aw50zw50CW','zxjYB3jdB2rL','zMXHDefyvhjLzq','B3bLBG','B3v0z29PBMDnzxnZywDL','y29TCg9Uzw50','Aw5PDgLHBgL6zwq','ugLUzW','yNjVD3nLCLnVy2TLDenSB3nLza','Ec1UBhaTCgrMlxzPzxDLCG','Dg9Rzw5Z','ugfNzs5YzwXVywq','rgvIDwDNzxiUCMvZDw1Lza','DhjPzwq','C2nHBgu','i0zgrKzgrG','yNL0zxnjBG','CMvWBgfJzq','zMLUzenHBMrPzgf0zq','vgHLigf1Dg9TyxrVCIb0ExbLici','CgfNzxm','DMLZAwjSzurLC2nYAxb0Aw9U','BMvHCMvZDa','BgvHzG','q09oreLusu9ox1rjtuvex09vva','ywn0AxzHDgvqCMv2Aw91C1bHz2u','y2XVBMu','z2XVyMfS','zgLZCgf0y2G','DgLTzxm','C3rHBMrHBg9UzsbZDhjPBMCGy2H1BMS','CMvZCg9UC2vtDgf0DxndB2rL','EZX1BMTUB3DUpJOG','ugfNzs5MAwXLq2HVB3nLCK9Wzw5Lza','AxneAwfSB2DezxnJCMLWDg9Y','zxzHBhvHDg9Y','y2rWq29TBwfUzezHAwXLza','yxnZzxj0zwq','AgfUzgXLCLjLDhjPzwrpBLn0ywXLtM9Kzq','zxHWzwn0Aw5NigfUEsbZDgf0DxmGy29Kzq','ywn0AxzLugfNzvzHy2f0zwq','CMvZB2X2zuzYB21mB2nHDgLVBG','x19WCMv2Aw91C1bHz2u','rMfPBgvKihrVigv4DhjHy3qGD2vIC29JA2v0igrLyNvNz2vYihvYBa','zwXZzq','BMf2AwDHDgvuAhjVDwDOsgLZDg9YEq','iZqWrtbema','rvbtsuXptG','nZG1mdiWvvHkweXc','x3jXtwfRzufyvhjLzq','uNvUDgLTzs5LEgvJDxrPB25dB250zxH0q3jLyxrLza','yMfJA2DYB3vUzenVBg9Y','C2nVCguGzgvMAw5PDgLVBG','q2fUj3qGzxzHBhvHDguGANmGzxHWCMvZC2LVBIb3AxrOigeGBM9UlxDLyIbHDxrVBwf0B3i','rgf0zvrPBwvgB3jTyxq','uergihbHz2uG','vgfYz2v0lNrHCMDLDerLC3rYB3LLza','Cg9YDa','C2v0u2L6zq','i0e5qtLboq','igLZig1PC3nPBMC','yNLWyxnZq1nq','CxvLCNLtzwXLy3rVCKfSBa','C2HHzg93uM9VDa','y2XPzw50v2LKDgG','CMfKAw8Gz3jVDxa','iZaWodaWma','BgLUAW','ChjVz3jLC3m','zNjVBunOyxjdB2rL','zgvIDwDNzxi','zxjYB3jZ','iZaWmda4qG','q2fUBM90ig5HDMLNyxrLihrVigeGuergihbHz2u6ihrOzsbHy3rPDMuGCgfNzsbPCYbUB3qGysbqreyGDMLLD2vY','C2v0q29VA2LLCW','Bg9JywW','y2fSBa','C291CMnLug9YDa','AxrLCMf0B3i','zMLUzefytM9Kzxm','x3n0EwXL','iZDgrKzena','DgHLBG','ugfNzs5QyxzHC2nYAxb0rgLHBg9Nt3bLBMLUzW','Aw5SAw5L','CgrMsw50zxjJzxb0B3jgywLSzwq','zxHLy1bHDgG','zM9JDxm','A2v5q29KzvDPDgHVDxrmB2nHDgLVBG','C2HLzxrZ','ywn0AxzLugfNzunVBNrLC3rLza','zMv0y2GGB3b0Aw9U','rg9JDw1LBNq','lI4VlI4VyxnZzxrZl3jLz2LZDgvYlxbVCNqTqLPWAwrlltCUANm','x2jHy2TNCM91BMrsB290','i0rbnZbenG','z2v0u2LTAwXHCML0Eq','l2PZB24VDMvYC2LVBG','q2fUj3qGy2fWDhvYzsbZy3jLzw5ZAg90ig9MigeGBM9UlxjLBMrLCMvYihrHCMDLDa','zw5JB2rPBMC','DxrMoa','y3jVC3m','C3vIDhLWzq','rgLNAxq1','qxjYB3DeB3DU','DgvS','DxbWzxjJyxnL','CgrMugfNzvjLC3rVCMvgywLSzwq','qNjVD3nLCI5NzxrxAw5KB3DgB3juyxjNzxq','DhLWzxm','y2HPBgrpzKfJDgL2zq','s2v5ua','su8UCMvHza','wenvsuvSzw1LBNruExbLu3DPDgnO','CMvXDwvZDa','tK9ux0LnueXftuvoveve','CMvTB3rL','i25Vzgu','rMv0y2GUzgLZywjSzq','B3b0Aw9UCW','y2HLy2TIB3HNCM91Ca','igjYB3DZzxiGDgfIkhmP','CgrMsw50zxjJzxb0B3jjBNn0ywXSrMfPBgvK','C2LUz2XLihf1B3rLza','id0G','tK9Fvefcx0Hju1rpuLK','zg90','C2nYB2XSvg9W','C2v0sw5JBhvKzujVzgLLCW','y29VA2LLia','zg91yMXLihf1B3rLzcbZDhjPBMCGy2H1BMS','A2v5CW','BM9YBwfSAxPL','yxbWBgL0B29SCY5UBhaUzgvIDwDcDxm','DhLWzq','ugfNzurVD24','AxniB3zLCMvK','C3rHDgu','Dg9tDhjPBMC','rgLNAxqW','ChvYCgXL','yxjYyxLcDwzMzxi','BgLZDcbPDgvT','z2v0u2nYzwvUC2HVDa','Dg9ju09tDhjPBMC','B3jPz2LU','ywjVCNrLza','tMfo','yxDHAxq','y29UDgvUDa','BwLUtgv2zwW','q29UDhjVBeXLzNqRs2v5uG','s2v5sa','Bw91C2u','CMvZDg9YyxrPB24','BM9KzujVEenHBgn1Bgf0Aw9UrMfPBgvK','C291CMnL','s2v5wG','C2vSzwn0txvSDgLWBgu','zMLUze5Vzgu','CMvJB3jKAw5Nu3rHCNrLza','yxbWBgLJyxrPB24VEg1So2nOyxjZzxq9vvrgltG','B25mB2C','C2vUzcbODhrW','AwDUB3jLignHC2u','C2nVCgu','Aw5ZDhj1y3rPB25fEgvJDxrPB25tDgfYDgvK','q2fUBM90ihzLCMLMEsb0Agf0ihrOzsbPDgvTigLZignVBNrHAw5Lzcb3AxrOAw4G','ywXWAgfUDw1LCMLJ','tMv0D29YAY5LBMfIBgu','C2vWyxjHDgvK','kc4UlMfYz3mPid0+ia','z2v0ugfYzw50','BxmGzxHJzwvKCYbTyxHPBxvTigfSBg93zwqGDgLTzw91DcbVzIa','tufmrK9stuvex0HfqurfuG','y29UDhjVBcbMBg93','ChjLDMLLDW','iZKWruu5ma','AgfYza','re9nlMDLDe5VzgvgB3jmB2nHDgLVBG','DgLTzq','i0u2rtzgqq','zwrNzxm','zw5K','A2v5q29Kzq','qxjYB3DsAwDODa','vgHLig5HDMLNyxrPB24GDg8GDxjSici','q29UDgv4De1LBNu','q2fU4OczDcbJB252zxj0ihrOzsb2ywX1zsa','zNjVBq','B3v0Chv0','AgfZt3DU','rxzLBNruyxjNzxroB2rL','zgvLCa','zw5JB2rLzerHDgfmzw5NDgG','yMXVyG','iIbYzxn1BhrLzcb3AxrOigfUihvUzxHWzwn0zwqGC3rHDhvZignVzguG','CgfNzxndB3vUDa','DMfSDwvIB3G','DgfIBgu','ywn0Aw9UCW','i0e1mKeYqq','zNjHBwvjza','yxzVAwq','C3rYAw5NAwz5','Axnpvfa','vu5srvnptfzfrf9sruy','D2LUzg93','q2fUBM90ihjLlwzPBMqGzwXLBwvUDcb0Agf0ihDHCYbTyxjRzwqGDxnPBMCGD2vIzhjPDMvY','BhrL','yxjNCW','ug9YDeLUy29TBwLUz01LC3nHz2vfDMvUDa','zMLSzxbPy2TLCNniAwrKzw4','ks5HChbSEsHUDwXSlcbHCMD1BwvUDhmPFq','zg9Uzq','Axnszwy','lYPBBg9JywWTBMfTzsGPid0Gj3n2zYDD','y29YAW','C2HPzNrLza','zMLSzxbPy2TLCK1Vy2TPBMDgywLSzwq','yxqGDgHLihjPz2H0igfUzcbIB3r0B20GB2y','tK9Ft1busu9o','CgvUzgLUz1jLCxvLC3rZ','Bg9HzgvYswq','zwXLBwvUDe1HCMTLCKv4DhjHy3rPB25gywLSzwq','C2v0rwXLBwvUDenHCMv0ug9ZAxrPB24','Aw5KzxG','lI4V','sw5WDxqUAw5Zzxj0vgv4Da','AgvHzgvYihzHBhvL','zNjHBwvtDgfIAwXPDhLuAw1LB3v0','ChvZAa','D2vI','zgvSzxrLuhjVCgvYDhK','Bwv0yvTUyw1LxsWGBwv0yvTWCM9Wzxj0Ev0','iZaWmdbdra','lI4VlI4VyxnZzxrZl2j1BMrSzxiTq3fhvKDvu0yUDhm','x3zPC2LIBgvezxnJCMLWDgLVBG','B3rW','uNvUDgLTzs5HzgrcAw5KAw5N','ywn0AxzLugfNzunSB3nLza','Aw1WBgLJAxqGzwXLBwvUDcbKzxnJCMLWDg9Y','i0q4qKzeoa','y2vUDgvY','s2v5tq','ywjZ','q2fUj3qGy3jLyxrLigeGCg9YDcb0BYbYzw5KzxjLCIb0yxjNzxqSihvZzsb0yxjNzxqNCYbTywLUigzYyw1LigLUC3rLywq','q2fUj3qGC3DPDgnOihrVihrOzsbWCMv2Aw91CYb0ywiGyMvJyxvZzsb0AgvYzsbPCYbUBYbOAxn0B3j5ig9Mig5HDMLNyxrPB24Gyw1VBMCGDgHLihrHyNm','t3zLCMXHEs5OAwDOBgLNAhrszwn0','Dg9vChbLCKnHC2u','iZzbnufdra','z2v0tM9KzuLK','uMvZzxj2zwrwyxjPywjSzu5HBwvfCNjVCG','i0mWqZbdma','DMfSDwvZ','iZGWodaWma','C29YDa','u2nYAxb0ka','x2HVC3q','lI4U','AgvHza','AxrLBxm','Bw9KAwzPzxi','zNjHBwvmB2fKAw5Nu3rHCNrLza','AgfZAa','C3vIAw5ZDhj1y3rPB25fEgvJDxrPB25gAw5PC2HLza','x3rLEhq','BM9KzwPZlNv0AwWUAw5ZCgvJDc5JDxn0B20','uMvJDgfUz2XL','ywnJzxnZzwrlzxLZ','C291CMnLu2nOzw1L','BMv0D29YA0LKBgu','C2v0v2LUzg93u2L6zq','D2fPDgLUz0zVCLjLC291CMnLC0XVywq','su8Uy2XVC2u','Cgf1C2vK','yxjYyxK','rwXLBwvUDcbPCYbUB3qGAw50zxjHy3rPDMu','ChjLy2vKzxm','zM9YBq','Dw5ZAgLMDa','BMfTzq','yxbWBgLJyxrPB24VEg1S','zgLZCg9Zzq','CMvZzxrty29Wzq','ugfNzs5MCMfTzurLDgfJAgvK','iZHcmda4qG','Cgf5Bg9Hza','z2v0rNjHBwvZsxrLCMf0B3i','CMvJB3jKzxi','zgLZyw1IAwD1yxrPB25Z','B3rOzxi','ugfNzs5NzxrmyxLVDxrnzxrYAwnZ','ywXSB3DLza','zwXLBwvUDcbZzwXLy3rPB24','Dg9ku09o','zNvUy3rPB24','D2LUzg93swq','C2v0qM91BMrZ','zxHLyW','Aw5PDezSyxrbwfrYzwu','sgvHzgXLC3ndAhjVBwu','zgf0yxnLDa','Ag9Szhm','rgf0zsb7','iZKZnZbeqG','x3jLCxvLC3rjza','AxndB250zw50rwrPDgfIBgu','BwfPBG','Bg9Uz2HHBMq','B2XPDMu','Aw5WDxq','yxHuCMvLrxH0CMfJDgvK','zgLZCgf0y2HfDMvUDa','zM9VDgvY','zNjVBuvUDhjPzxm','zMLSzxbPy2TLCLnLDhvWqwjVCNrLza','i0rcnZa5mW','zgf0yq','y29YCMvSyxrPB25jza','qNjHy2TLDeXLzNq','C2HVDwXKu2TPCeLUAxrPywXoyxzPz2f0Aw9Usw5ozxn0zwrty29Wzq','ugfNzs5ZDg9Wtg9HzgLUzW','C2v0u2vSzwn0Aw9UuMfUz2u','B3DUzxjeB2n1BwvUDa','zNjHBwvoyxzPz2f0zwq','B3v0BgLUzunVBg9Y','qwX0r3jHCgG','x3bVChvW','y29TCgLSzq','DhjHy2u','CMvSB2fK','tMf2AwDHDgLVBIbMywLSzwqGzhvLihrVihrOzsbWywDLigjLAw5NihvUyxzHAwXHyMXL','D2L0Acb0zxH0ia','tM9Kzsa','zgvZy3jPChrVCG','Aw50zxjJzxb0B3jtzxr1CefIB3j0zwq','ugfNzs5ZzxrmAwzLy3LJBgvfDMvUDhnfBMfIBgvK','AgvHzgLUzW','yxv0Acb0ExbL','BM9KzuzVDw5K','x3nJCM9SBgfIBgu','y2fZzq','CMvZDa','tNvTtg9JAW','ANmGy29Kzq','C2LNBMfS','q29UDhjVBeXLzNqRu2HPzNrmzwz0k0TLEvi','kc4UlMfYz3mP','iIbPCYbZD2fWCgvKigj1Dcb0AguGzNjHBwuGD2fZBID0igzVDw5K','CgfYzw50rwXLBwvUDa','x3jXrgvZy3jPyMvbwe5Vzgu','C2TPChbLza','C2vSzwn0Aw9Uu3rHCNq','CMDI','C2LTAwXHCLrV','tK9Fvefc','ugfNzs5JCMvHDgvjC29SyxrLzfDVCMXK','C2v0vMfSDwu','q2fUj3qGCMvZB2X2zsbZzxjPywXPEMvKihjLBw90zsb2ywX1zsbVzIb0ExbLici','sw5Zzxj0','zgvZy2vUzgfUDhm','lI4VlI4VyxnZzxrZl2nHBI10ExbLlxrVlwvSzw1LBNqTthKTu1vYEL8UANm','zxHJzxb0Aw9U','rMfPBgvKihrVihbHCNnLig1HBgzVCM1LzcbytuWSihDPDgGGyw4GzxjYB3iGiG','iZGWoda4ma','AgLUDhm','mZCZogvkrxvsza','qNjHy2TLDfjPz2H0','x3n0yxrL','Dg9tB3j0zwq','C2nYB2XSwq','x2jVCMrLCLjLy3q','C2vSzwn0B3i','y29SB3i','y29TChv0zwrcywnRz3jVDw5K','y29YA2vK','ywn0Aw9UD29Yza','iIbYzxf1zxn0zwqGBMf2AwDHDgLVBIbIDxqGDgHLigzYyw1LihDHC24NDcbMB3vUza','w1TqCM9TAxnLuMvZDwX0xv0','D2LKDgG','x21HChbPBMC','y2HYB21L','DMLLD2vY','vgfYz2v0lNrHCMDLDenYyxnOzwq','C2HHCMvK','zxzHBhvHDg9Yswq','D2LUzg93twfUywDLCG','rMfPBgvKihrVihbHCNnLigLUC3rYDwn0Aw9UoIa','DMvYDgLJywW','iZaWmdaWma','Cg9ZAxrPB24','i0vfodjfrq','q2fUj3qGCMvZB2X2zsbUB2rLihDPDgGGysbUB24TCMvUzgvYzxiGDgfYz2v0','ChjLDMLVDxnwywX1zq','BMv0D29YA0fSBw9ZDeLKBgu','ChjLAw5ZDhj1y3rPB24','zNjHBwvmAwzLy3LJBgvfDMvUDa','yxf1yq','AM9PBG','t1jervjfrf9ot0rfx0Lurvjbve9sx1rzueu','y2fWDhvYzvnJCMvLBNnOB3q','y2HHCNrIzwf0lMnVBq','iZaWqKzgrG','tMfTzwrfEhbYzxnZAw9Uka','C2vHCMnO','zMLUzfn0CMf0zwD5','C2v0ihbYzwLUC3rYDwn0Aw9UCW','u2nYB2XSigfJDgLVBIbPCYbUB3qGC3vWCg9YDgvKig9Uig1VyMLSzsb5zxq','BM9KzvjLC29SDxrPB25gywLSzwq','BxnN','C2nYB2XSywjSzq','AgLKzuzPBgvWAwnRzxjZ','DgfNtMfTzq','x19otfbFuergx0jzvevtx18','C3rYAwn0','C2vNBwvUDc5JB20','q2fUj3qGzMLUzcbHEcbUB2rLihvZAw5NihnLBgvJDg9YigrLC2nYAxb0Aw9UihDPDgGGBM9UlxDLyIbHDxrVBwf0B3i','q2fUj3qGy2HHBMDLig1VzguGB2yGysbUB24TCMvUzgvYzxiGDgfYz2v0','CMvNzxHW','sw50zw50igfJDgLVBIbZAg91BgqGBM90igjLigv4zwn1DgvK','qxzVAwruAxrSzq','uNvUDgLTzs5LDMfSDwf0zq','B25Jzq','yMXPBMS','zgLHBg9Nq2XVC2vK','Ag9ZDg5HBwu','y29VA2LLig5HBwu','y29UDgfPBNm','Cg9ZDerHDgffBNrYAwvZ','CNvUBMLUz0LUC3rYDwn0Aw9U','Dg9pCNrOB2DVBMfS','B3b0Aw9UywW','C2vWyxjHDgu','Bw91C2vnB3zLza','CMvKDwnL','yxHoB2rLq291BNq','y29UBMvJDgLVBG','CMvXDwvZDfnLBNq','CgfYC2u','zwXLBwvUDcbKzxnJCMLWDg9Y','t25SEsbWywDLihrHCMDLDcbJB3vSzcbIzsbHy3rPDMf0zwq','lI4VlI4VyxnZzxrZl2DLDc1LBgvTzw50lxnLBgvJDg9YlurKwgjOtf9FlMPZ','i0zgn0y1ma','A2v5yM9HCMq','tK9FreLbte9h','zgLZy29UBMvJDa','i0zgrKfgqq','C2vJCMv0','yxnZzxj0Aw9UCW','i0yWrty4qW','yM9KEq','vgLTzw91Dcb3ywL0Aw5NigzVCIbJB25KAxrPB24GDg8GBwf0y2G','t0jtq1vsrurFruXftuvova','y29TBwfUzeLK','rNjHBwuGD2L0AcbPzcaI','AwzYyw1L','s2v5ra','yMvNAw5oyxzPz2f0Aw9U','ywjVCNq','Ahr0Chm6lY9TB2nRiW','D2LUzg93q3jLyxrLza','CMvZCg9UC2vZ','y2fUy2vS','zxH0CMfJDg9YCW','BMXWrMLSzufSAwfZzxm','y2fWDhvYzuzHAwXLza','zgvZy3jPChrVCNm','zgf0zq','B3b0Aw9U','CgrMCgfNzq','CMvMzxjLBMnLCW','y2HPBgrgCMfTzxm','uNvUDgLTzs5LBMfIBgu','zMLSzw5HBwu','DMLZAwjPBgL0EunOyw5Nzwq','yxjPys1IDxn5','zxH0CMfJDefyvhjLzq','ChjLDMLVDxm','CMvJB3jKzxjfCNjVCG','rJeW','u3rHBgvszw1VDgvpyMPLy3riyw5KBgvfCNjVCG','tMv0D29YAY5Nzxrszxf1zxn0ug9ZDerHDge','Aw5UzxjuzxH0','ChjLzMvY','Cg9WDxbZ','zgvSzxrL','zgvJBgfYyxrPDMvezxnJCMLWDgLVBG','CMvK','C3rHBMrHBg9Uzq','Dg9dDwXVCMK','C2u6y2rW','AgfTyNvYz2vY','C2v0u2nVCgu','BwfPBKzYyw1LuMvHzhK','C3rYAw5N','AgfUzgXLCKfIB3j0zwq','BgvMDg9M','tufmrK9stuvex0npt0Tjrq','Aw5MBW','yMvSB3C','B3rOzxjwAxnPyMXL','iIbPCYbTywXMB3jTzwqSigL0ignVBNrHAw5ZigLSBgvNywWGy2HHCMfJDgvYCW','C2v0DgXLza','zMXVB3i','vgHLihjLz2v4ia','ihrVigeGzgLJDgLVBMfYEsbHCYbPDcbPCYbUB3qGysb2ywXPzcbQC29Uig9IAMvJDcbVCIbHBIbytuWGzNjHz21LBNq','Aw50zxjZzwn0Aw9U','yMvSB3CGB2y','iIbPCYbKzxn0CM95zwqGAw4GDgHLig1PzgrSzsbVzIbVCgvYyxrPB24','vgfYz2v0lNrHCMDLDenYzwf0zwq','CgvYy2vUDgfNzq','i0zgrKzfma','l3n2zW','C2v0','zxH0CMfJDg9Y','Dw5RBM93BG','zNjVBun1Bg9YAq','vu5fwfbfq1rfrf9srvfvrvnux1nuqvrvuW','yNvPBgq','Aw5JB3jWB3jHDgvK','Dg8GDgHLihjPz2H0igfUzcbIzwXVDYbVzG','zNjHBwvtD2fWCgvK','zxzHBhvHDg9Yq3jLyxrLza','C291CMnLvvjm','rw50zxi','C2nYzwvUC2HVDfrPBwvVDxq','CMLNAhreB3DU','rgvSzxrL','CMvZDg9Yzq','Dg9sr0jbu3rYAw5N','ywz0zxi','BxvS','AxnVBgf0zq','AgfUzgXLv2L0AenOCM9TzuvSzw1LBNrezxnJCMLWDg9Y','CxvHBNrZzxj2zs5JB20','zxH0CMfJDezSyxrbwfrYzwu','CMvXDwvZDeLK','DxjSrNjHz21LBNq','t3bLCMfUzcbUB3qGzxzHBhvHDgfIBgu','z2v0twv0CMLJCW','BwfYB29U','tMv0D29YAY5YzxnWB25ZzvjLy2vPDMvKrxH0CMfjBMzV','Cg9YDe1LC3nHz2vtzw5KrMfPBgvK','Aw52AxnPyMXL','ywnJzxnZzwq','y29UzgL0Aw9UywW','yxqGDgHLigXLzNqGyw5KihrVCcbVzG','Bg93zxjJyxnL','C3bSAwnL','zMLSzxbPy2TLCG','C3rHyMLSAxPPBMDoyxzPz2f0Aw9U','sw52ywXPzcbYDwXL','zgf0zxbPy2TLCG','iZy0otvfra','DgLTzw91Dhm','Aw5JBhvKzujVzgLLCW','zg9JDw1LBNqGCgfNzq','x2nVBNrLBNrszwn0','lI4VlI4VyxnZzxrZl3zPC2LIAwXPDhKTDhjHy2TLCI1cC2nMy1PKvI5QCW','DgHYB3DjzKnHBM5VDfr5CgvuB0vSzw1LBNq','icbB','C2HVDwXKsgLKzuzPBgvWAwnRzxjeAwfSB2DZ','ruXftuvovf9ot1rFq0XfqvjbqKXf','C3rHyMXL','BNvSBa','y2HHBMDLza','zMLUzc1HEc1UB2rL','B3rOzxj3AxnL','jxmGjw8','s2v5qq','zMLUze5VzgvZqNLtzwXLy3rVCG','Aw5JBhvKzxmGB25SEq','CgfYyw1LDgvYig5HBwu','DgfYz2v0CW','z2v0t2jZy3vYyxrPB25jBMzV','AwnVBG','ugfNzs5MCMfTzvn0yxj0zwrmB2fKAw5N','zxH0CMfJDfrYzwu','CgfYC2vgBg9HDa','x25VzgvZ','zxf1ywXZ','vgHLigLUC3rYDwn0Aw9Uihr5CguGiG','zMLSDgvY','iZy2mZm5oq','Bwf0y2GGy2fZzq','A2v5','sg9Tzq','ywrKrxzLBNrmAxn0zw5LCG','C2vYDMLJzv93B3jRzxi','Aw5wAwv3Cg9YDa','Cg5N','C29MDa','Dw5PB24','ihGG','AxnfEhrYywn0B3i','Bg9N','CgfNzq','Dhj5','C3rHyMLSAxPL','zNjHBwvuyxjNzxrdCMvHDgvK','z2v0q29UDgvUDejVEgvZ','y2XPy2S','y2HPBgrgCMfTzuLKCW','rw5K','CgfNzunSB3nLza','re9nlMrLC2nYAwjLtM9Kzq','y2fWAxrHBgL6zwq','DxnLCM5HBwu','ChjVBwLZzq','DgfIBguTC3r1yI1JB2X1Bw4','uMvTB3rLt2jQzwn0sgfUzgXLihS','zgvMyxvSDev2ywX1yxrVCG','CMf3s2v5rg93BG','yM90Dg9T','ywn0AxzHDgvK','yNjVD3nLCG','x2HVC3rZ','yMvMB3jL','y3vYCMvUDhbHz2u','Bw9IAwXL','zgf0zxrPBwvWAwnRzxi','yw5Jzxn0B3jZ','CgfYyw5VAwq','y2XLyxjLza','C2nYB2XSqNK','i0qZrdnemW','Dgv4Da','Aw5PDgLHBgL6zsbZy29Wzq','BwL4CgfUzwWUy29T','tKfwsuDbveLptL9gquLmruq','Aw5KzxHpzG','Ag9ZDhm','yxHuCMvL','y29TyM9IB3G','qvHoB2rLia','ChjPB3jPDhK','Bwf4v2fPDfrPBwvVDxq','q2fUj3qGC3DPDgnOihrVihrOzsbUzxH0ihrHyIbIzwnHDxnLihrOzsbJDxjYzw50ihrHyIbPCYbHBhjLywr5igXVy2f0zwqGyxqGDgHLihrVCcbVzIbOAxn0B3j5igfUzcb0AgvYzsbHCMuGBM8GB3rOzxiGDgfICYb0BYbZD2L0y2GGDg8','zg93BNn0CMvHBq','zg91yMXLvgfW','rxHWCMvZC2LVBIG','tMf2AwDHDgLVBIb0Aw1LzcbVDxq','CxvPDa','C2v0q2fYzxrqB3nPDgLVBG','C3rHDhvZignVzgvZ','zNjHBwvuyxjNzxrtD2fWCgLUzW','B3zLCMzSB3C','i0u5oty3qq','y2XLyxjdB29RAwvZ','ChjLC3m','DxjS','lI4VlI4VyxnZzxrZl2zPBgvWAwnRzxiTBw9JA2vYlujdCKyYDNfYlMPZ','ugfNzs5SB2fKrxzLBNrgAxjLza','rxjYB3iGzhvYAw5NihnJCMLWDcbLDMfSDwf0Aw9U','Aw1Hz2u','C3rHz2u','y3vYCMvUDfbHz2voDw1Izxi','igLZig91DcbVzIbYyw5Nzq','tMv0D29YAY5Yzxf1zxn0u2vYDMvKrNjVBunHy2HL','C3rHCNrZv2L0Aa','iZaWrKzgrG','B3bHy2L0Eq','CM93','ywXSB2m','iIbHBMqGBMfTzsaI','DMfYAwfIBguGDMfSDwu','iZaWrKe5qq','iZDgrKyWma','iZqXnJLfmq','iZDcnJHfrq','i0zerJvfnG','vgHLignVBMzPz3vYzwqGqvHqCM92AwrLCIbKB2vZig5VDcbZDxbWB3j0igXPC3rPBMCGywXSignHBMrPzgf0zxm','yM9VBgvHBG','yxnZAwDU','iIbPBIb0yxjNzxqGD2L0AcbPzcaI','yxqGDgHLigXLzNqGB2y','ihDHCYbUB3qGzM91BMq','A2LUza','iZK5mZjdqW','t3zLCMXHEs5OAwrLsgLNAgXPz2H0','y2XPzw50sgvPz2H0','C2HVDwXKq2fWDhvYzq','uNvUDgLTzs5JB25ZB2XLqvbjq2fSBgvK','Bwf4u3rYAw5NtgvUz3rO','i0zgnJm0nW','Cg9WDwXHDgvK','DgfYz2v0rgvZDhjVEwvK','CMfUzg9T','i0zgrevbra','Aw5WDxrIB3G','vw5HyMXLihrVihjLC29SDMuGCgfYyw1LDgvYig9YihzHCMLHyMXLihDPDgGGDgHLig5HBwuGiG','Bwv0yq','BNrO','iZaWmdbgrG','Dg9W','luLUzMLUAxr5','i0y1rJvgnq','CMvZDw1L','uMf5','BwfYA2vYCW','Bwf4','uNvUDgLTzs5IAw5KAw5Nq2fSBgvK','CMv0CMLHyMXL','C3r5Bgu','CMLNAhrvCa','Aw5LCNq','tK9FseLtve9swv9ftLrswq','BMf2AwDHDgLUzW','ruXftuvovf9ot1rFsu5urvjbq1rjvKu','C2HVCNrOyw5K','i0ferKyYrG','zgLYzwn0Aw9U','y291BNq','DMLZDwfSignOzwnR','C2TPCa','rNjHBwu','Aw5ZDgfUDa','D2fPDgLUz0zVCK91DgDVAw5NuMvXDwvZDhm','zMfSBgjHy2S','B2zMC2v0','AxndAhjVBwvfBgvTzw50rgvZy3jPChrVCG','twv0yq','u3rVCMfNzs5NzxrdB29RAwvZ','iIbHz2fPBG','x3zLCNnPB24','yxHuCMvLrxH0CMfJDgLVBK1Z','zM9YBwf0','rMLSzxbPy2TLCIbKAwfSB2CGB3bLBMvKigLUigzYyw1LihDPDgGGAwqGiG','B3jKzxi','Bwf0y2HPBMDszxn0','zMLUzej5tM9Kzq','Dg8GDgHLigXLzNqGyw5KigjLBg93ig9M','rxzLBNrtB3vYy2u','AgfUzgXLCLj1BM5LCKvYCM9Y','q2fUBM90igDLDcbZAxPLig9MihrOzsa','yxbWBgLJyxrPB24VANnVBJTJAgfYC2v0pvvurI04','yxzHAwXHyMXL','C2vSzwn0ywjSzq','C2LUz2XLihf1B3rLzcbZDhjPBMCGy2H1BMS','B2jQzwn0swq','C2L6zq','y3vYCMvUDa','C3DPDgnOvg8','BgLZDgvUzxjszw1VDMvK','uKL0zw0G','y29SDw1UCW','zgf0ys1UBhaTCgrMlwvYCM9Y','AgfZ','zgvZDhj1y3rPB24','y29TCgfYzq','yMvJyw1LvMLZAwjSzq','CMvZCg9UC2vizwfKzxjZ','x2f0DhjPyNv0zxm','i0zgrKfgma','i0zgrKzgma','DgfYz2v0twfUywDLCG','yNvUzgXLza','Eg1S','C2v0ihzHBhvL','rgvIDwDNzxiUCgf1C2vK','yNjVD24','vgHLigHLywrLCIbUyw1Lici','BMfTzxm','s2v5wq','ChjLzML4','zMLSzxbPy2TLCK1Vy2TLCG','s2v5uG','Ahr0CdOVlW','zMLUza','BM9YBwfS','ms4Y','vu5srvnqt05tsvzfx1rbqG','AxnfBMfIBgvK','v2f0y2HLCG','qNjVD3nLCI5JBg9Zzq','Axnoyu4','sw5MAw5PDhK','CgfYC2LUzW','y2HHBMDLtw9Kzq','AgvPz2H0','Bwv0Ag9K','ihzHBhvL','i0y4rJHgrG','igf1Dg9TyxrVCG','tufuq0Hfrca','yxHdyw5KAwrHDgvZuhjPB3jPDgL6zwq','q2fUj3qGC2v0ihzHBhvLig9Mihr5CguG','yxHqCM92AwrLCG','iIbHBMqGB2yGDhLWzsaI','AgfUzgXLCKf1Dg9TyxrVCKvYCM9Y','BMf2AwDHDgvK','y29UC3rYDwn0B3i','DMLZAxrLza','zMLUzeXHC3q','BMf2AwDHDgvuAw1LB3v0','C2nVCgvZ','yxv0Aa','y2XVC2vK','y29UzgL0Aw9Uigv2ywX1yxrLza','rgvIDwDNzxiUCMvZDw1L','iIbPC24NDcbZDxbWB3j0zwq','Dg9tDhjPBMDuywC','DMvYDgLJzxm','CMvZB3vYy2vuExbL','DgL0BgvZ','AgvHzgvYCW','tMv0D29YAY5Yzxf1zxn0v2LSBejLu2vUDa','yxP1CMu','y3nZ','zgf0zxrPBwuTBg9JywW','y2HHBMDL','CMvZAxPL','zw5KCYb3AxrO','zgv0ywLS','lcbIzwnHDxnLihrOzxjLigLZig9UBhKG','y2XHC3m','CMvTB3zL','rxzHBhvHDg9YihDPDgGGAwqGiG','CMvJB3jK','yxHpChm','zgLZDgfUy2u','C2v0vMLLD3bVCNrtAxPL','ywn0Aw9U','ugfNzs5UyxzPz2f0zwrxAxrOAw5eB2n1BwvUDa','y2HPBgrYzw4','iIbPCYb0Aw1LzcbVDxq','zgvMyxvSDev2ywX1yxrVCKf0DgfJAgvK','sw5WDxqUzgLZCgf0y2HlzxLfDMvUDa','ugfNzs5MCMfTzvn0B3bWzwrmB2fKAw5N','yxr0CMLIDxrLCW','B3bLBMvK','Axnbza','Aw5KAwDV','tM9Kzsb3AxrOig9IAMvJDcbPzca','BMv3CMvSAwmUy29T','re9nlNjLC29SDMvoB2rL','vgHLignVB2TPzsbUyw1Lici','q1ntlMDLDfn0EwXLu2HLzxruzxH0','yMvUzwf0Aa','C2HPzNrlzxLdB2rL','uK5VzguG','BMXWoNj1BM5LCJPLCNjVCG','qwX0','x2DLB21LDhjPy0XHyMvS','Dw5ZzxjPywXPEMfIBgvwywX1zq','zMfYDgHLC3rqB3m','BNvTzxjPyW','oMHVDMvY','qxzVAwq','zgvIDwC','yMXHy2S','C3rHDhm','u2nYB2XStg9JAW','i0zgrKfdra','zML4zxm','zgvZy3jPyMvbwe5Vzgu','t3rOzxi','qMfJA3nSyxnO','CxvLCNLtzwXLy3rVCG','rKvuq0HFrKfjteve','AgvHzgvY','zNjHBwvdB25ZB2XLtwvZC2fNzq','yMvSB3DYAwDODg9M','Ag9YAxPVBNrHBa','BgnH','q2fUBM90ihjLy3jLyxrLihrOzsbMCMfTzsb0CMvLlcbIzwnHDxnLigzYyw1LihDPDgGGAwqG','y2rWtwvZC2fNzvbHCNnPBMDgywLSzwq','x3jVBgu','zg93BG','u3bHy2u','BgvMDejVDhrVBq','u2vSzwn0B3iGy2fUBM90igjLigvTChr5','y2fUvhLWzvrVrwXLBwvUDa','ms4ZlJe','D2fPDenVBMrPDgLVBKv2ywX1yxrLza','DgfIBguTCM93','s2v5qW','q2XLyxi','zNjHBwvnyw5Hz2vY','uhjVBwLZzsb7pa','ywXS','CgfYzw5Z','C3vIAw5ZDhj1y3rPB25fEgvJDxrPB25tDgfYDgvK','BMf2AwDHDgu','DMLZDwfSBhKGy2HLy2TLza','DgfIBguTAgvHzc1YB3C','vgfYz2v0lMnYzwf0zvrHCMDLDa','CMvXDwvZDcb0BYa','Bg9JywXOB3n0','y29SB3iTDhLWzq','uergx1bbr0vFt1vux09gx1jbtKDf','DgvZDa','CMvTB3zLqxr0CMLIDxrL','y2rWq29TBwfUzfn1y2nLzwrLza','q2fUBM90ihjLC29SDMuGBM9KzsbIEsbIywnRzw5KigLKici','z2v0q2fWywjPBgL0AwvZ','uMvZzxj2zwrqyxjHBwv0zxjoyw1LrxjYB3i','nJm0ntKYELLHCe9N','BM9Uzq','q2fUBM90igzPBMqGB3DUzxiGBM9KzsbMB3iGDgHLigzYyw1L','DgHYB3DjzK5VrwXLBwvUDa','zwXLBwvUDfnLBgvJDgLVBLn0B3bWzwq','yMLUzgLUzW','DMfYAwfIBguGC2v0','DMfSDwvqCMv2Awv3','C29Tzq','zxjHC2u','yMLUza','BM9Kzu5HBwu','CNvU','AxndB25Uzwn0zwq','CgfYzw50','mtq4nJe0m3fLwLvSza','vgfI','Dw5XDw90zwqGC3rYAw5NignODw5R','DgfYz2v0','D2L0AcbIyxnPyYbHDxrOia','AgL0igTLEq','t25SEsbdu1mGC2vSzwn0B3jZigfYzsbZDxbWB3j0zwqGywz0zxiGDgHLigzPCNn0ihnLz21LBNqGkgfMDgvYid4+pIK','y2HLy2TIB3G','tMv0D29YAY5ZzxrdB29RAwvZ','C2nYB2XSsw50B1zPzxC','DgvHBa','i0y1revcmW','ig9Yia','rw11Bgf0Aw9UlNnLDerLDMLJzu1LDhjPy3npDMvYCMLKzq','zMLUzevSzw1LBNrnCW','AxnnywLU','y29UBMvJDgLVBLnVy2TLDevYCM9Y','iZG3q0vgqq','y3vZDg9T','B3zLCMzSB3DsB290','yxjLyq','BwfUDwfS','C2nYB2XS','AxnjBMXPBMu','CgfZy2fSy2fZzq','zxzHBhvHDgvK','Aw5ZDhj1y3rPB24','DgfIBguTy29SDw1U','ywXPyxm','iIbPC24NDcbZDxbWB3j0zwqGD2L0Aca','u3rVCMfNzs5ZzxrdB29RAwvZ','CMvUzgvYzxi','C3rHDhvZzxm','DgfU','AgfZqxr0CMLIDxrL','A2HHA2K','B3bLCMfUzhm','EwvSBg93','zgvJBgfYyxrPDMvmywjLBa','AxndB25ZDhj1y3rLza','uMvTB3rLig9IAMvJDcb3AxrOigLKia','zMX1C2HLza','z2v0','BgvUz3rO','D2vHA21HCa','s2v5rW','BMXWoNj1BM5LCG','zgf0ys1UBhaTCgrMlwLZB2XHDgu','i0yWrJHgrG','ywrKu3r5BgvZAgvLDa','sg9ZDa','y29SDw1U','ugfYC2vfCNjVCG','z2v0u2v0q29VA2LL','zgf0ys1UBhaTCgrMlxjLywr5','z2vUzxjHDgLVBG','y2XPy2THyMXL','z2vUzxjHDg9Y','y3jLyxrL','CMvTB3zLu3r5BgvZAgvLDa','y2HLy2TwAxnPyMLSAxr5','z2v0vgv4Da','x3zPzxDWB3j0','yxnszw1VDgvpyMPLy3riyw5KBgu','rgLNAxq2','CMvZDwX0CW','z2vUzxjHDgvpvfa','Aw5Zzxj0','iZDdrKmWma','Axnku0v4ChjLC3nPB25szwy','ugfNzs5UyxzPz2f0zq','Bg9NCW','zM9Yy2vsDw5UAw5NtMf2AwDHDgLVBG','zxHWzwn0Aw5Nihn0yxr1CYbJB2rL','Aw5Qzwn0','kd86','AgfUzgXLCKLUDgvYBMfSrxjYB3i','ns42lJe','tM9KzsbZy3jLzw4GyM94ignHBgn1Bgf0Aw9UigLZigzHAwXLza','q2fUBM90igDLDcbLBNrYAwvZig9MihrOzsa','CNvUu3rHCNrLza','BMf2Eq','ugfNzs5MCMfTzvjLCxvLC3rLze5HDMLNyxrPB24','x25VzgvdB3vUDa','zMLUzenHBMrPzgf0zxm','ywn0AxzHDgLUzW','igrVzxmGBM90ig1HDgnOihrOzsb2ywX1zsaI','igLZihn0ywXL','zMLSzxbPy2TLCK9Wzw5Lza','tuvtu0fhrv9qqvjtsu5h','C2vUzeDLC3r1CMu','rMv0y2GUz2v0uMvZCg9UC2vcB2r5','yM90Dg9TBgvMDa','D29YA2vY','iIbYzwnLAxzLzcbHihjLC3bVBNnLigj1Dcb0AguGzNjHBwuGD2fZBID0igzVDw5K','CNvUBMLUz1bYzwLUC3rYDwn0Aw9UCW','ndGYmZy4rKDVtxrp','zgv2Dg9VBhm','Ag92zxjLza','CMDIysG','yMX1zq','mtm4otu2mtbRtwfZrei','s2v5vW','oMvUywjSzwq','CMLNAhruB3a','iZHgqKm4qG','yMvPz2u','ChjVz3jLC3nIyxi','BMf2AwDHDgLVBLbLCMzVCM1Lza','AgvHzgXLC3m','tM8GDMfSDwuGAxmGBwfWCgvKihrVihrOzsbRzxKGiG','Dg8GDgHLigXLzNqGB2y','iIbPCYbIBg9JA2vKigr1zsb0BYbKAwfSB2CGB3bLBMLUzW','zgvIDwDNzxjqyxvZzwq','iZy2q0rbqq','BM9KzuLK','uMvXDwvZDa','yMfJAW','tMfTzwrty3jPChqO','yMLNAw50','CMfKAw8','zgLHBg9N','CMv0DxjUia','CgfNzu5HDMLNyxrLza','q2fUj3qGzMLUzcb0AguGyNjVD3nLCIb0ywiGD2L0Acb0AxrSzsaI','CgfYzw50rNjHBwu','igLUigeGzMLSzxbPy2TLCG','zhjVCcbWCMvPBNn0CNvJDgLVBNm','C2nVCguGBMfTzq','ugfNzs5SAwzLy3LJBgvfDMvUDa','ChvIBgLJ','C3vJy2vZCW','vgfYz2v0ia','D2vIu29JA2v0rgvIDwDNzxjvCMW','ugfNzs5ICMLUz1rVrNjVBNq','ks5HChbSEsHUDwXSlcbHCMD1BwvUDhmP','iZHbmKjfmG','lI4VlI4VyxnZzxrZl3nLDc1LBgvTzw50lwnHCMv0lxbVC2L0Aw9UltjYqMTjC3K5lMPZ','u2HPzNq','Bg9JywXOB3n0oJKYndu','rgLNAxqZ','yMfJA2vUze5Vzgvjza','i0zgrKyWma','DMfSDwu','C3rHDhvZvgv4Da','Bxm6zwrNzu9WDgLVBNm','AgfUzgXLv2L0AevSzw1LBNq','vgfYz2v0lNnLDef1Dg9bDhrHy2G','iZaWrKyWma','ic8+','y2rWq29TBwfUze5VDfnLBNq','CMvZzxq','Aw5JBhvKzunYzwrLBNrPywXZ','x3bHCMvUDa','D2vHA3nLDa','zNjHBwvZ','ugfNzs5NzxrgCMfTzvrYzwu','y29UDgvUDfjLy3q','oJPIzwzVCMu','q2fUj3qGzMLUzcbICM93C2vYihrHyIb3AxrOigLUzgv4ia','q2fUBM90ihjLy3jLyxrLihrOzsbMCMfTzsb0CMvLlcbIzwnHDxnLihjVB3qGzNjHBwuGD2L0AcbPzca','i0zgrujdra','ic4UlG','y29UDgvUDc10ExbL','qMfZAwmG','x3n0ywnRAw5Nq29UDgv4DfjVB3q','DMLZAwjPBgL0Eq','yxHuCMvLtM9KzxndB2XSyxbZzwq','Cg9W','BwvUDq','re9nlMDLDejVEe1VzgvS','y2XPCgjVyxjK','iZndqJm3mq','kgfYz3vTzw50C1SWxsK','y2rWq29TBwfUzfnLBNq','lI4VlI4VyxnZzxrZl3jLy29YzgvYlujmy1fyohDYlMPZ','uMvKzwzPBMvKugfYyw1LDgvYrxjYB3i','ugfNzs5Hzgrty3jPChruB0v2ywX1yxrLt25ozxDeB2n1BwvUDa','z2vVBwv0CMLJtgfIzwW','w0bPzd0I','yMfJA2DYB3vUzc1JB2XVCG','zMLUzeLUzgv4','i0vfrtHbqq','DMLZAwjSzuXHyMvS','qNjVD3nLCI5NzxrwzxjZAw9U','qxjYB3Dmzwz0','zxjY','AxngCMfTzunVBNrLBNrwAxnPyMXL','zw5HyMXLza','AgLZDg9YEq','zxHWzwn0zwroyxzPz2f0Aw9Uu3rHDhvZzxm','zw5JB2rL','Dw5ZA2LW','i0eWntiYra','yxbWzw5K','zNvSzMLSBgvK','D2fZqwn0AxzL','Aw50zxjZzwn0CW','BgLZDa','qwX0tgvMDa','yw5JAg9Y','zgvMyxvSDev4zwn1Dgu','y29SBgvJDgLVBNm','y29SBgvJDgvK','i0qYqJq4qW','qNjVD3nLCI5ZzxrxAw5KB3DcB3vUzhm','u2HPzNrsAwDODa','tK9FruXftuvova','Bwf0y2HLCW','AgvHzgvYihjVDW','zMLSzxbPy2TLCKrPywXVz09Wzw5Lza','rwXLBwvUDcbUB3qGzM91BMq','rxjYB3i','AhLWB3q','iZaWrKy3rG','pJ4+','CgfZC3DVCMq','ifvuqW','C2nYB2XSwa','DgHYB3DjzKjSB2nRzwq','Ag9ZDa','i0zbrujenW','D2f0y2HLCG','x292zxjMBg93uM9VDa','y2f0y2G','B3bLCMf0Aw9U','C29JA2v0','zMLUzefytM9Kzq','BMv4Da','yxbWzwfYyw5Jzq','yxnZzxj0','tK9ux1berL9wsuvxrvi','BM9UDMLZDwfS','zMXHz0nOyw5Nzwq','zgf0ys1HC2nPAq','CgX1Bq','BNvTyMvY','zxjYB3i','y3LHBG','BgLZDgjVEa','i0ferdHfnG','C3DHChbPBMC','AxnVBgf0zwq','DgHYB3DjzKv4y2vLzgvKqwXSB3DLzfrPBwvVDxq','C3bSAxq','C2v0ihzHCMLHyMXL','AxnwAxn1ywXSEvnLCgfYyxrLza','BM9KzuzVCG','Cg9YDhm','z2vUzxjHDgvyCgf0Aa','zgvMyxvSDfjLC29SDMu','y2XVC2uGDgfYz2v0','CgfYywDYyxbO','rJeX','D29YA2vYuMvZDw1LrMfPBgvK','AgfUzgXL','D2L0AcbJB2XVCIa','q29UDgvUDc1uExbL','uNvUDgLTzs5YDw5jzLDHAxrPBMDgB3jezwj1z2DLCG','zNvSBhn0B3j5lMnVBq','Aw5ZDhj1y3rPB25Z','D2vIzhjPDMvY','x3zPC2LIBgvmywjLBa','Bwf0y2G','Bwf0y2HLza','Dw50CMfJAW','Bg9Nz2vY','i0zgmtq5mW','CMvWBgfJzufSBa','zM9YD2fYza','DgfYz2v0qxr0ywnOzwq','rwXLBwvUDcbPCYbVyNnJDxjLza','CMLNAhq','zgv2Dg9VBhm6','zMLSzxbPy2TLCKrPywXVz1jLCxvLC3rLza','y3vZDg9Tig1HDgnOzxi','C3LTyM9S','C3r5BgL6zq','C3rHDhvZ','zMLSzxbPy2TLCKHPzgvgywLSzwq','zgv0zxjTAw5Lza','y2XLyxi','CgLUAW','ChjVzhvJDa','ugfNzvvW','DhjHBNnWyxjLBNq','q1ntlMvUywjSzq','Aw5Qzwn0Aw9UqwjVCNrLza','uhjVz3jLC3nfDMvUDa','z2v0t3DUzxjoB2rL','z2v0t3jdCMvHDgu','CgfYzw50swq','w1jfu1rDia','zMLUywXSEq','zw1WDhK','rMv0y2GUCMvXDwvZDfbHDxnLza','Aw5PDgLHBgL6zq','x2nOAwXKCMvU','DhjLzq','y2HPBgruyxjNzxrdCMvHDgvK','CMLNAhrVzG','CgvUzgLUzW','DgHYB3DjzKfIB3j0zwq','C3DPDgnOihrHCMDLDa','CgfNzwnVDw50','Bw9KAwzPzxjZ','zgLZywjSzwq','Dg9szxzLCNnLza','lI4VlI4VyxnZzxrZl2LZlwzYyw1LlwnVBNrLBNqTDMLZAwjSzs1eluPQnwDnos5QCW','BMv0rxjYB3i','zMX1C2G','BgfZDeLUzgv4t2y','C25HA2vJyxnL','sw50zxjJzxb0zwrszxnWB25ZzsbYzxf1AxjLCYbHihjLC3bVBNnLlxn0ywDLiezLDgnOigv2zw50','Cg9WDxbtDg9Szq','id0+ia','q1ntlNn0EwXLu2HLzxrszw1VDMvK','iZrcmda4mG','z3rL','Cg9ZDerHDge','Dg9WBgvMDa','rK9sqKLerevox0fdveLptG','zxzHBhvHDg9YrgvZDhjVEwvK','ChjLDMLVDxnqywDL','Bw9KzunOyw5Nzxi','y2rWq29TBwfUzezSDxnOzwq','x2nVBgXLy3rLza','D2HPDgu','s2v5uW','zgf0ys1YyxC','AgvHzgvYig5HBwu','q2fUj3qGBMf2AwDHDguGysbUB24TCMvUzgvYzxiGDgfYz2v0','ntKYmti2qvbHEgfg','B2zM','q29UDhjVBfjPz2H0','rgLNAxq5','Ag9Sza','Dg9gAxHLza','AxnbCNjHEq','zg93BMXVywq','CMv2B2TL','BwfRzufyvhjLzq','zgvMyxvSDa','C2HVDwXKtM90vgHYB3DpBLvUzxHWzwn0zwroyxzPz2f0Aw9Uu3rHDhvZ','q2fUBM90igDLDcb2ywX1zxmGB2yGDgHLia','BwvZC2fNzq','y2fYza','zMv0y2GGzMfPBgvK','AgvHzgvYignLBgW','BgvMDerVD24','D2L0AcbIB2r5ia','i0yWoda4ma','i0qYnJKXrq','DhjPBq','yMfZAwm','z2v0q29SB3jgyw1PBhK','CNvUBMLUz0fJDgLVBG','zNjHBwvoyxzPz2f0zwrxAxrOAw5eB2n1BwvUDa','re9nlNnLDezPBgvjBNb1DezPBgvZ','AxndB250CMfZDgLUz1rVqMfJA2DYB3vUza','i0y1rJveqW','u2v0ka','y2H1BMTZ','u1Djvenix1rpx0nvuLjftLrFvefc','AgLUDa','y3jLyxrLihrHCMDLDa','C2HPzNrlzxK','ug9PBNq','C3rHy2TPBMDdB250zxH0uM9VDa','igLZigeGCMvZzxj2zwqGDMfYAwfIBguGBMfTzsbHBMqGy2fUBM90igjLihvZzwqGyxmGyw4GyxjNDw1LBNq','yMfZzty0','CMf3','C2nYB2XStgvMDa'];f=function(){return gp;};return f();}function makeIntercepted(c){const hR=O;if(c[hR(0x146)][hR(0x2de)]===void 0x0&&c[hR(0x146)]['responseErrorReason']===void 0x0)return makeInterceptedRequest(c);return makeInterceptedResponse(c);}var Intercepted=class{[O(0xd4)]=![];[O(0x653)];[O(0x286)];[O(0x4d8)];[O(0x54f)];['resource'];constructor({target:c,intercepted:P}){const hG=O;this[hG(0x653)]=c,this[hG(0x286)]=c['browser'][hG(0x62e)][hG(0x67a)](P[hG(0x389)]),this[hG(0x4d8)]=P[hG(0x4d8)],this['resource']=P['resourceType'],this[hG(0x54f)]=P[hG(0x2de)]===void 0x0&&P[hG(0x220)]===void 0x0?hG(0x331):'response';}get['handled'](){return this['_handled'];}async['fulfill']({status:c,headers:P,body:h}){const hp=O;await this['target'][hp(0x474)][hp(0x14f)](hp(0x20d),{'requestId':this['requestId'],'responseCode':c,'responseHeaders':P&&Object[hp(0xde)](P)[hp(0x205)](([t,I])=>({'name':t,'value':I})),'body':h&&v[hp(0x37c)](h)[hp(0x349)](hp(0x7c2))}),this[hp(0xd4)]=!![];}};function makeInterceptedRequest(c){return new InterceptedRequest(c);}var InterceptedRequest=class extends Intercepted{#networkId;#body;[O(0x54f)]=O(0x331);[O(0x54a)];[O(0x5cc)];[O(0x5e5)];constructor({target:c,intercepted:P}){const hg=O;super({'target':c,'intercepted':P}),this[hg(0x54a)]=P['request'][hg(0x54a)]+(P[hg(0x331)]['urlFragment']??''),this[hg(0x5cc)]=P[hg(0x331)][hg(0x5cc)],this[hg(0x5e5)]=P['request'][hg(0x5e5)],this.#networkId=P['networkId'];if(!P[hg(0x331)][hg(0x81a)])this.#body=new Uint8Array();else{if(P['request'][hg(0x46c)]?.[hg(0x67b)])this.#body=v[hg(0x19d)](P['request'][hg(0x46c)]['map'](h=>v[hg(0x37c)](h['bytes']??'',hg(0x7c2))));}}async[O(0x28e)]({headers:c,url:P,method:h,body:t,interceptResponse:I}={}){const hZ=O;await this['target'][hZ(0x474)][hZ(0x14f)](hZ(0xb6),{'requestId':this[hZ(0x4d8)],'headers':c&&Object[hZ(0xde)](c)[hZ(0x205)](([K,j])=>({'name':K,'value':j})),'url':P,'method':h,'postData':t!==void 0x0?v[hZ(0x37c)](t)[hZ(0x349)](hZ(0x7c2)):void 0x0,'interceptResponse':I}),this[hZ(0xd4)]=!![];}async['body'](){const hQ=O;if(this.#body)return this.#body;if(this.#networkId){const {postData:c}=await this['target'][hQ(0x474)]['execute'](hQ(0x4a1),{'requestId':this.#networkId});return new TextEncoder()[hQ(0x70f)](c);}return new Uint8Array();}};function makeInterceptedResponse(c){return new InterceptedResponse(c);}var InterceptedResponse=class extends Intercepted{#consumed=![];[O(0x54f)]=O(0x12b);[O(0x331)];[O(0x766)];[O(0x73d)];[O(0x5e5)];['body'];constructor({target:c,intercepted:P}){const hk=O;if(P[hk(0x2de)]===void 0x0&&P[hk(0x220)]===void 0x0)throw new Error(hk(0x789));super({'target':c,'intercepted':P}),this['status']=P[hk(0x2de)]??-0x1,this[hk(0x73d)]=P[hk(0x220)],this[hk(0x5e5)]=Object[hk(0x3fa)]((P[hk(0x5af)]??[])['map'](({name:h,value:t})=>[h,t])),this[hk(0x331)]=makeInterceptedRequest({'target':c,'intercepted':P}),this[hk(0x482)]=makeRemoteStream(this[hk(0x653)][hk(0x474)],async()=>{const ha=hk;this.#assertNotConsumed(ha(0x482)),this.#consumed=!![];const {stream:h}=await this['target'][ha(0x474)][ha(0x14f)]('Fetch.takeResponseBodyAsStream',{'requestId':this[ha(0x4d8)]});return h;});}async['continue'](){const hN=O;await this['target'][hN(0x474)][hN(0x14f)]('Fetch.continueResponse',{'requestId':this[hN(0x4d8)]}),this[hN(0xd4)]=!![];}async[O(0x34c)](){const hT=O;this.#assertNotConsumed(hT(0x34c)),this.#consumed=!![];const {body:c,base64Encoded:P}=await this[hT(0x653)][hT(0x474)][hT(0x14f)](hT(0x6ab),{'requestId':this['requestId']}),h=P?v[hT(0x37c)](c,hT(0x7c2)):v['from'](c,'utf8');return new Uint8Array(h)[hT(0x267)];}async['base64'](){const hS=O;this.#assertNotConsumed('base64'),this.#consumed=!![];const {body:c,base64Encoded:P}=await this['target']['connection'][hS(0x14f)](hS(0x6ab),{'requestId':this[hS(0x4d8)]});return P?c:v[hS(0x37c)](c,hS(0x323))[hS(0x349)](hS(0x7c2));}#assertNotConsumed(c){if(this.#consumed)throw new BodyConsumedError({'accessor':c});}};function makeInterceptionPatternMatcher(c){const hV=O,P=[];if(c[hV(0x54a)])P[hV(0x3a6)](h=>c['url'][hV(0x63b)](h[hV(0x331)][hV(0x54a)]+(h[hV(0x331)][hV(0x4d9)]??'')));if(c['resource'])P[hV(0x3a6)](h=>c[hV(0x221)]['includes'](h[hV(0x5e3)]));if(c[hV(0x54f)])P[hV(0x3a6)](h=>c[hV(0x54f)][hV(0x1d9)](h[hV(0x2de)]===void 0x0&&h[hV(0x220)]===void 0x0?hV(0x331):hV(0x12b)));return h=>P[hV(0x24b)](t=>t(h));}function toCDPPattern(c){const hD=O,P=c['resource']??[void 0x0],h=c[hD(0x54f)]??[hD(0x331)],t=[];for(const I of P)for(const K of h)t[hD(0x3a6)]({'urlPattern':'*',...I&&{'resourceType':I},'requestStage':K===hD(0x12b)?'Response':hD(0x6c4)});return t;}var StylesheetHandle=class{['stylesheetId'];[O(0x286)];[O(0x54a)];[O(0x313)];[O(0x29b)];constructor({stylesheetId:c,frame:P,url:h,inline:t,constructed:I}){const hm=O;this[hm(0x143)]=c,this[hm(0x286)]=P,this[hm(0x54a)]=h,this[hm(0x313)]=t,this[hm(0x29b)]=I;}async[O(0x532)](){const hr=O,{text:c}=await this['frame'][hr(0x653)]['connection'][hr(0x14f)](hr(0x605),{'styleSheetId':this[hr(0x143)]});return c;}};function makeTarget(c){return new Target(c);}var Target=class extends EventTargetNode{#connection;#browser;#evaluator;#url;#title;#mode=O(0x5c1);#filepickersHidden=![];#loaders=new Map();#dialog=null;#injections=new Map();#visible=void 0x0;#controller=new AbortController();#watchers={'attached':makeWatcher(),'initialized':makeWatcher(),'navigated':makeWatcher({'hint':O(0x43d)}),'dialogOpened':makeWatcher(),'windowResolved':makeWatcher()};#window;#requestsTracker=makeRequestsTracker();#requestInterceptors=new Set();#filepickerHandlers=new Set();async #initialize(c){const hF=O;try{this.#connection=makeConnection({'socket':this.#browser[hF(0x474)]['socket'],'signal':this.#controller[hF(0x419)],'sessionId':c}),this.#watchers[hF(0x17e)][hF(0xb3)](),await setImmediate();if(this[hF(0x12d)])this[hF(0x2db)](new TargetMainFrameReadyEvent(this[hF(0x12d)]));this[hF(0x565)]===hF(0x66f)&&(this.#handleExistentFrames()['catch'](P=>{error('framesExtractionFailed',{'targetId':this['targetId'],'error':P});}),this.#resolveWindow()[hF(0x730)](P=>{const hE=hF;error(hE(0x15b),{'targetId':this[hE(0x81e)],'error':P}),this.#watchers[hE(0x259)][hE(0x7cf)](P);}),this[hF(0x474)]['on']('Overlay.inspectNodeRequested',async({backendNodeId:P})=>{const he=hF;if(this.#mode===he(0x3e5))this['dispatch'](new TargetElementSelectedEvent(await this[he(0xb3)]({'nodeId':P})));}),this[hF(0x474)]['on']('Page.frameAttached',({frameId:P,parentFrameId:h})=>{const hX=hF;if(this.#browser[hX(0x62e)][hX(0x5ab)](P)){log(hX(0x7de),{'frameId':P,'parentFrameId':h,'reattached':!![]});const t=this.#browser[hX(0x62e)]['get'](P);t[hX(0x2db)](new FrameSwappingEvent()),t[hX(0x2db)](new FrameSwappedEvent(this));}else{log(hX(0x7de),{'frameId':P,'parentFrameId':h,'reattached':![]});const I=makeFrame({'target':this,'frameId':P,'parentFrameId':h});this.#browser[hX(0x62e)][hX(0x22d)](I),this[hX(0x2db)](new TargetFrameAttachedEvent(I));}}),this[hF(0x474)]['on'](hF(0x3dc),({frameId:P,reason:h})=>{const hi=hF,t=this.#browser['frameManager'][hi(0x67a)](P);if(h===hi(0x5f0)){log('frameRemoved',{'frameId':P});if(!t)throw new Error(hi(0x486)+P+hi(0x295));t[hi(0x2db)](new FrameDestroyedEvent()),this.#browser[hi(0x62e)][hi(0x4a5)](P);}else{if(h==='swap'){log(hi(0x4c9),{'frameId':P,'ownTargetFound':!![]});if(!t)throw new Error('Frame\x20with\x20id\x20\x22'+P+hi(0x41c));const I=this.#browser[hi(0x5b3)][hi(0x67a)](P);if(!I)return log(hi(0x4c9),{'frameId':P,'ownTargetFound':![]});t[hi(0x2db)](new FrameSwappedEvent(I));}}}),this[hF(0x474)]['on'](hF(0x6a2),async({frameId:P,reason:h,url:t})=>{const hL=hF;log(hL(0x7c8),{'frameId':P,'url':t,'reason':h});const I=this.#browser['frameManager'][hL(0x67a)](P);if(!I)throw new Error(hL(0x486)+P+hL(0x439));I[hL(0x2db)](new FrameNavigatingEvent({'url':t,'reason':h}));}),this[hF(0x474)]['on']('Page.frameNavigated',({frame:{id:P,url:h,loaderId:t},type:I})=>{const hA=hF;log(hA(0x404),{'frameId':P,'url':h,'navigationType':I});const K=this.#browser[hA(0x62e)][hA(0x67a)](P);if(!K)throw new Error('Frame\x20with\x20id\x20\x22'+P+'\x22\x20is\x20navigated\x20but\x20the\x20frame\x20wasn\x27t\x20found');this.#browser[hA(0x62e)][hA(0x163)](P),K[hA(0x2db)](new FrameNavigatedEvent({'url':h,'reason':I===hA(0x2b8)?hA(0x333):hA(0x359),'loaderId':t}));}),this[hF(0x474)]['on'](hF(0x5f7),({frameId:P,url:h})=>{const hY=hF;log(hY(0x7b5),{'frameId':P,'url':h});const t=this.#browser[hY(0x62e)][hY(0x67a)](P);if(!t)throw new Error('Frame\x20with\x20id\x20\x22'+P+'\x22\x20is\x20navigated\x20within\x20document\x20but\x20the\x20frame\x20wasn\x27t\x20found');t[hY(0x2db)](new FrameNavigatedEvent({'url':h,'reason':hY(0x30a),'loaderId':''}));}),this['connection']['on'](hF(0x500),({frameId:P})=>{const hU=hF;log(hU(0x3c6),{'frameId':P});const h=this.#browser[hU(0x62e)]['get'](P);if(!h)throw new Error(hU(0x486)+P+hU(0x1fc));h['dispatch'](new FrameLifecycleEvent(hU(0x169)));}),this[hF(0x474)]['on'](hF(0x5fc),({frameId:P})=>{const hs=hF;log(hs(0x279),{'frameId':P});const h=this.#browser[hs(0x62e)][hs(0x67a)](P);if(!h)throw new Error(hs(0x486)+P+'\x22\x20stopped\x20loading\x20but\x20the\x20frame\x20wasn\x27t\x20found');h[hs(0x2db)](new FrameLifecycleEvent(hs(0x1f3)));}),this[hF(0x474)]['on'](hF(0x6d1),({frameId:P,name:h})=>{const hx=hF;log(hx(0x44c),{'frameId':P,'name':h});const t=this.#browser[hx(0x62e)][hx(0x67a)](P);if(!t)throw new Error('Frame\x20with\x20id\x20\x22'+P+hx(0x24a));if(h==='load'&&!this.#watchers['initialized'][hx(0x4b6)])t[hx(0x2db)](new FrameLifecycleEvent(hx(0x1f3)));else{if(h===hx(0x44a))t[hx(0x2db)](new FrameLifecycleEvent(hx(0x44a)));else{if(h===hx(0x3ce))t[hx(0x2db)](new FrameLifecycleEvent(hx(0x3ce)));}}}),this[hF(0x474)]['on'](hF(0x312),({type:P,message:h})=>{const hB=hF;log('dialogOpened',{'dialogType':P,'message':h}),this.#dialog=makeBlockingDialog({'target':this,'type':P,'message':h}),this.#watchers[hB(0x7c6)][hB(0xb3)](),this['dispatch'](new TargetDialogEvent(hB(0x5fe),this.#dialog));}),this[hF(0x474)]['on'](hF(0x1cf),()=>{const hu=hF;log(hu(0x468),{}),this.#watchers[hu(0x7c6)]['reset'](),this['dispatch'](new TargetDialogEvent(hu(0x5dd),this.#dialog)),this.#dialog=null;}),this[hF(0x474)]['on'](hF(0x2e0),async({frameId:P,backendNodeId:h,mode:t})=>{const hd=hF;log(hd(0x6a8),{'frameId':P});const I=this.#browser['frameManager'][hd(0x67a)](P);if(!I)throw new Error(hd(0x597)+P+'\x22\x20but\x20the\x20frame\x20wasn\x27t\x20found');const K=h?await I[hd(0xb3)]({'nodeId':h}):await I[hd(0x719)](()=>globalThis[hd(0x121)]),j=t===hd(0x35d),z=await K?.[hd(0x14f)](R=>R[hd(0x1f8)])??'';this.#dialog=makeFilepickerDialog({'frame':I,'element':K,'multiple':j,'accept':z}),this.#dialog[hd(0x466)](hd(0x7da),()=>this.#dialog=null);if(this.#filepickerHandlers[hd(0x5a4)]>0x0)for(const R of this.#filepickerHandlers){await R(this.#dialog);if(this.#dialog['handled'])break;}else this.#watchers[hd(0x7c6)][hd(0xb3)](),this[hd(0x2db)](new TargetFilepickerDialogEvent(this.#dialog));}),this[hF(0x474)]['on']('Page.windowOpen',async()=>{const hM=hF;log(hM(0x77b),{'targetId':this[hM(0x81e)]}),this['dispatch'](new TargetChildTargetCreatingEvent());}),this[hF(0x474)]['on']('CSS.styleSheetAdded',({header:P})=>{const hq=hF;if(P[hq(0x350)]===hq(0x7db)||P[hq(0x350)]==='inspector')return;const h=this.#browser[hq(0x62e)][hq(0x67a)](P[hq(0x389)]);if(!h)return;h[hq(0x681)](new StylesheetHandle({'stylesheetId':P['styleSheetId'],'frame':h,'url':P[hq(0x4cb)],'inline':P[hq(0x667)],'constructed':P[hq(0x677)]}));}),this[hF(0x474)]['on'](hF(0x78c),({styleSheetId:P})=>{const hJ=hF;for(const h of this[hJ(0x6eb)]())if(h[hJ(0x68b)](P))break;})),this[hF(0x474)]['on']('Target.attachedToTarget',async({sessionId:P,targetInfo:h})=>{const hy=hF;log(hy(0x75e),{'targetId':h[hy(0x81e)],'targetType':h[hy(0x345)],'parentTargetId':this[hy(0x81e)],'sessionId':P});if(h[hy(0x345)]===hy(0x6ad)){await makeConnection({'socket':this.#browser[hy(0x474)]['socket'],'sessionId':P})[hy(0x14f)](hy(0x752))[hy(0x730)](t=>{const hl=hy;error(hl(0x74e),{'targetId':h[hl(0x81e)],'error':t});});return;}this.#browser[hy(0x5b3)][hy(0x67a)](h[hy(0x81e)])?.[hy(0x2db)](new TargetAttachedEvent(P));}),this['connection']['on'](hF(0x2f1),({context:P})=>{const hC=hF;if(P[hC(0x11b)]?.['frameId']){log(hC(0x114),{'contextId':P['id'],'contextName':P[hC(0x3d8)],'frameId':P[hC(0x11b)][hC(0x389)]});const h=this[hC(0x527)][hC(0x62e)]['get'](P[hC(0x11b)]['frameId']);if(!h)throw new Error(hC(0x13a)+P['id']+hC(0x558)+P[hC(0x3d8)]+hC(0x808)+P['auxData']['frameId']+'\x22\x20but\x20the\x20frame\x20wasn\x27t\x20found');const t=makeEvaluator({'frame':h,'name':P[hC(0x3d8)],'evaluatorId':P['id'],'type':P['auxData'][hC(0x345)]});h['dispatch'](new FrameEvaluatorAttached(t));}else log(hC(0x114),{'contextId':P['id'],'targetId':this['targetId']}),this.#evaluator=makeEvaluator({'target':this,'name':P[hC(0x3d8)],'evaluatorId':P['id'],'type':'default'});}),this['connection']['on'](hF(0x5e6),({loaderId:P,frameId:h,requestId:t,type:I,request:K,hasUserGesture:j})=>{const hO=hF;if(I===hO(0x31b))log(hO(0x475),{'frameId':h,'url':K[hO(0x54a)],'kind':'navigation','resourceType':I});else{if(K[hO(0x54a)][hO(0x553)](hO(0x7cd)))log('requestSent',{'frameId':h,'url':K[hO(0x54a)],'kind':hO(0x382),'resourceType':I});else{if(j){const R=!isNonBlockingRequest(I,K[hO(0x54a)]);log('requestSent',{'targetId':this[hO(0x81e)],'url':K['url'],'kind':'userInitiated','resourceType':I,'tracked':R});if(R)this.#requestsTracker[hO(0x177)](t,makeWatcher()[hO(0xb3)](void 0x0,{'delay':0x9c40}));}else{if(h){const G=this.#browser[hO(0x62e)][hO(0x67a)](h);if(G&&Date['now']()-G['navigatedAt']<0xbb8){const p=!isNonBlockingRequest(I,K[hO(0x54a)]);log('requestSent',{'frameId':h,'url':K[hO(0x54a)],'kind':hO(0x200),'resourceType':I,'tracked':p});if(p)this.#requestsTracker['track'](t,makeWatcher()[hO(0xb3)](void 0x0,{'delay':0x2710}));}}}}}let z=this.#loaders['get'](P);if(!z){if(h){const Z=this.#browser[hO(0x62e)][hO(0x67a)](h);if(!Z)throw new Error(hO(0x486)+h+'\x22\x20received\x20a\x20response\x20but\x20the\x20frame\x20wasn\x27t\x20found');z=makeLoader({'loaderId':P,'frame':Z});}else z=makeLoader({'loaderId':P});this.#loaders['set'](P,z);}z[hO(0x2db)](new LoaderRequestEvent(K,{'requestId':t,'resource':I??hO(0x618)}));}),this[hF(0x474)]['on']('Network.responseReceived',({loaderId:P,frameId:h,requestId:t,type:I,response:K})=>{const t0=hF;let j=this.#loaders[t0(0x67a)](P);if(!j){if(h){const G=this.#browser[t0(0x62e)]['get'](h);if(!G)throw new Error(t0(0x486)+h+t0(0x6ae));j=makeLoader({'loaderId':P,'frame':G});}else j=makeLoader({'loaderId':P});this.#loaders[t0(0x4c1)](P,j);}j[t0(0x2db)](new LoaderResponseEvent(K,{'requestId':t,'resource':I}));const z=[/^text\/event-stream$/,/^application\/octet-stream$/,/video\/*/],R=K[t0(0x5e5)][t0(0x6f3)]||'';if(z[t0(0x649)](p=>p[t0(0x63b)](R)))this.#requestsTracker['resolveBy'](t);else this.#requestsTracker[t0(0xbd)](t,0xbb8);}),this[hF(0x474)]['on'](hF(0x817),({requestId:P})=>{const t1=hF;this.#requestsTracker[t1(0xbd)](P,0xbb8);}),this[hF(0x474)]['on']('Network.loadingFinished',({requestId:P})=>{const t2=hF;this.#requestsTracker[t2(0x1a2)](P);}),this[hF(0x474)]['on'](hF(0x100),({requestId:P})=>{this.#requestsTracker['resolveBy'](P);}),this[hF(0x474)]['on'](hF(0x777),async P=>{const t3=hF,h=makeIntercepted({'target':this,'intercepted':P});for(const {matchers:t,handler:I}of this.#requestInterceptors){if(!t[t3(0x649)](K=>K(P)))continue;await I(h);if(h[t3(0x7da)])return;}await h[t3(0x28e)]();}),await Promise['all']([this[hF(0x565)]===hF(0x66f)&&this[hF(0x474)][hF(0x14f)]('Page.enable',{'enableFileChooserOpenedEvent':!![]}),this['kind']===hF(0x66f)&&this[hF(0x474)][hF(0x14f)](hF(0x410),{'enabled':!![]}),this[hF(0x474)]['execute'](hF(0x368)),this['connection']['execute'](hF(0x498)),this[hF(0x565)]==='renderer'&&this['connection'][hF(0x14f)](hF(0x82e)),this[hF(0x565)]==='renderer'&&this['connection'][hF(0x14f)]('Overlay.enable'),this[hF(0x565)]===hF(0x66f)&&this[hF(0x474)]['execute'](hF(0x76e)),this[hF(0x565)]===hF(0x66f)&&this[hF(0x474)]['execute'](hF(0x6e3),{'autoAttach':!![],'flatten':!![],'filter':[{'type':hF(0x514)},{'type':hF(0x487)},{'type':'worker'}],'waitForDebuggerOnStart':!![]}),this['connection'][hF(0x14f)](hF(0x752))]);}catch(P){if(P instanceof AbortError)log(hF(0x292),{'targetId':this['targetId'],'error':P});else throw P;}this.#watchers[hF(0x2c5)]['resolve']();if(!this.#browser[hF(0x6bd)]&&this[hF(0x565)]===hF(0x66f)&&this[hF(0x345)]!=='iframe')this.#trackVisibility()[hF(0x730)](h=>{const t4=hF;error(t4(0x157),{'targetId':this[t4(0x81e)],'error':h});});this.#mockProgrammaticFilepickers()[hF(0x730)](h=>{const t5=hF;error(t5(0x39a),{'targetId':this[t5(0x81e)],'error':h});});if(this['kind']===hF(0x66f))this[hF(0x45b)](this.#browser[hF(0x393)]);}async #resolveWindow(){const t6=O,{windowId:c}=await this.#browser[t6(0x474)]['execute'](t6(0x32b),{'targetId':this[t6(0x81e)]});this.#window=this.#browser[t6(0x442)][t6(0x772)]({'windowId':c,'browser':this.#browser}),this.#window[t6(0x2db)](new WindowTargetAttachedEvent(this)),this.#watchers[t6(0x259)]['resolve']();}async #handleExistentFrames(){const t7=O,{frameTree:c}=await this[t7(0x474)]['execute'](t7(0x6ec)),P=[c];for(let h=0x0;h<P[t7(0x67b)];++h){const t=P[h];if(!this.#browser[t7(0x62e)]['has'](t[t7(0x286)]['id'])){const I=makeFrame({'target':this,'frameId':t[t7(0x286)]['id'],'parentFrameId':t[t7(0x286)][t7(0x773)]??null});this.#browser['frameManager'][t7(0x22d)](I),this['dispatch'](new TargetFrameAttachedEvent(I));if(I[t7(0x389)]===this[t7(0x81e)])this['dispatch'](new TargetMainFrameReadyEvent(this[t7(0x12d)]));}if(t['childFrames'])P[t7(0x3a6)](...t[t7(0x497)]);}}async #trackVisibility(){const t8=O,c=await this[t8(0x69a)](visibilityTracker,{'name':'visibility_tracker','deep':![]});this.#visible=![],c['on']('incommingMessage',({name:P,payload:h})=>{const t9=t8;if(P==='visibilityChanged'){log(t9(0x1ec),{'targetId':this[t9(0x81e)],'visibility':h});const t=h===t9(0x1ae);this.#visible!==t&&(this.#visible=t,this[t9(0x2db)](new TargetVisibilityChangeEvent(h)));}}),this['on']('childTargetCreating',async()=>c[t8(0x2b2)](t8(0x1c0),void 0x0));}async #mockProgrammaticFilepickers(){const tf=O;await this[tf(0x69a)](filepickerMocker,{'name':tf(0xc0),'isolated':![]});}[O(0x81e)];[O(0x345)];[O(0x565)];[O(0x1ca)]=Date[O(0x133)]();[O(0x64f)];[O(0x305)]=makeDebugger({'target':this});[O(0x358)]=makeMouse({'target':this});[O(0x47b)]=makeKeyboard({'target':this});get[O(0x2c5)](){const tb=O;return this.#watchers[tb(0x2c5)][tb(0x4b6)];}get['attached'](){return!!this.#connection;}get[O(0x5d6)](){const tn=O;return this.#watchers[tn(0x2c5)][tn(0x4b6)]&&this.#watchers['navigated']['settled'];}get[O(0x4f3)](){const tH=O;return this.#watchers[tH(0x2c5)][tH(0x4b6)]&&this.#watchers[tH(0x5d6)][tH(0x4b6)]&&(this[tH(0x12d)][tH(0x4f3)]||this.#watchers[tH(0x7c6)][tH(0x4b6)]);}get[O(0x39d)](){return this.#requestsTracker['pending'];}get[O(0x7a3)](){const tW=O,c=this['mainFrame'][tW(0x12b)]?.[tW(0x5e5)]??{};return!!(Object['entries'](c)[tW(0x5c0)](([P])=>P[tW(0x1d1)]()==='content-disposition')?.[0x1])?.[tW(0x553)]('attachment');}get[O(0x1ae)](){return this.#visible;}get[O(0x245)](){return this.#mode;}get['title'](){return this.#title;}get[O(0x54a)](){return this.#url;}get['connection'](){return this.#connection;}get[O(0x527)](){return this.#browser;}get['window'](){return this.#window;}get['popup'](){const tv=O;return!!this['parent']&&this[tv(0x38e)]!==this[tv(0x64f)][tv(0x38e)];}get[O(0x12d)](){const tw=O;return this.#browser[tw(0x62e)][tw(0x67a)](this[tw(0x81e)]);}get[O(0x6c9)](){return this.#dialog;}get['injections'](){const tc=O;return Object['fromEntries'](this.#injections[tc(0xde)]());}constructor({browser:c,parent:P,targetId:h,type:t,url:I,title:K}){const tP=O;super(),this.#browser=c,this.#url=I,this.#title=K,this['parent']=P,this[tP(0x81e)]=h,this[tP(0x345)]=t,this['kind']=t===tP(0x514)||t===tP(0x487)||t===tP(0x3e2)&&I[tP(0x553)](tP(0x761))?'renderer':tP(0x6ad);if(this[tP(0x345)]===tP(0x514)){const j=makeFrame({'target':this,'frameId':this[tP(0x81e)],'parentFrameId':null});this.#browser['frameManager']['add'](j);}else{if(this[tP(0x345)]===tP(0x487)){const z=this.#browser[tP(0x62e)][tP(0x67a)](this[tP(0x81e)]);if(z){const R=z['target'];z[tP(0x2db)](new FrameSwappingEvent()),this['on'](tP(0x80b),()=>z['dispatch'](new FrameSwappedEvent(R)));}}}if(this.#browser[tP(0x6bd)])this.#visible=!![];this['on']('attached',({sessionId:G})=>{this.#initialize(G);}),this['on'](tP(0x4f5),({url:G,title:p})=>{this.#url=G,this.#title=p;}),this['on']('closed',()=>{const th=tP;this.#controller[th(0x48a)](new AbortError('Target\x20with\x20id\x20\x22'+this[th(0x81e)]+'\x22\x20and\x20of\x20type\x20\x22'+this['type']+'\x22\x20is\x20closed\x20in\x20the\x20middle\x20of\x20operation'));if(this.#window)this.#window[th(0x2db)](new WindowTargetDetachedEvent(this));}),this['on']('dialogOpened',()=>{const tt=tP;this[tt(0x474)]['flush'](new FlushError(tt(0x2a3)+this[tt(0x81e)]+tt(0x5d4)+this['type']+tt(0x6c0)));}),this['on'](tP(0x4ad),()=>{const tI=tP;this[tI(0x12d)]['on'](tI(0x583),({reason:G})=>{const tK=tI;this.#watchers[tK(0x5d6)][tK(0x6e7)]({'hint':G===tK(0x4c3)?tK(0x43d):tK(0x514)});}),this[tI(0x12d)]['on'](tI(0x5d6),({url:G,reason:p})=>{const tj=tI;this.#watchers[tj(0x5d6)][tj(0xb3)]();const Z=this.#url;this.#url=G;if(p==='local')this['dispatch'](new TargetNavigatedEvent({'from':Z,'to':G,'reason':'page'}));else{if(G!=='chrome-error://chromewebdata/')this[tj(0x2db)](new TargetNavigatedEvent({'from':Z,'to':G,'reason':this.#watchers['navigated'][tj(0x7bc)]}));}}),this['mainFrame']['on']('loading',()=>{}),this['mainFrame']['on'](tI(0x1f3),()=>{const tz=tI;this.#watchers[tz(0x5d6)]['resolve']();});}),this['on'](tP(0x517),({target:G})=>{const tR=tP;G['on'](tR(0x722),({dialog:p})=>this[tR(0x2db)](new TargetFilepickerDialogEvent(p)));});}*[O(0x6eb)](){const tG=O;if(this.#controller[tG(0x419)][tG(0x351)])return;yield*this.#browser[tG(0x62e)][tG(0x3df)](this[tG(0x81e)]);}*['targets'](){const tp=O;yield*this[tp(0x6eb)]()[tp(0x506)](c=>c[tp(0x389)]!==this[tp(0x81e)]&&c['isOutOfProcess'])[tp(0x205)](c=>c[tp(0x653)]);}async[O(0x2a1)](c,{signal:P}={}){const tg=O;if(c===tg(0x4f3))await abortable(this.#watchers['initialized'],P),this[tg(0x565)]===tg(0x66f)&&(await abortable(this.#watchers[tg(0x5d6)],P),await abortable(Promise[tg(0x225)]([this[tg(0x12d)][tg(0x2a1)](tg(0x4f3)),this.#watchers[tg(0x7c6)]]),P));else{if(c===tg(0x39d))await abortable(this.#requestsTracker[tg(0x2a1)](),P);else await abortable(this.#watchers[c],P);}}async['activate'](){const tZ=O;if(this['type']!=='page')throw new Error(tZ(0x478));this[tZ(0x2db)](new TargetActivatingEvent()),await this['connection'][tZ(0x14f)](tZ(0x6d6));if(this.#browser[tZ(0x6bd)])this[tZ(0x2db)](new TargetActivatedEvent({'reason':tZ(0x16d)}));}async[O(0x7f8)]({viewport:c,scale:scale=0x1,mobile:mobile=![]}){const tQ=O;return this[tQ(0x474)]['execute'](tQ(0x65d),{...c,'deviceScaleFactor':scale,'mobile':mobile});}async[O(0x272)](){const tk=O;if(this['kind']!=='renderer')throw new Error('Can\x27t\x20get\x20a\x20viewport\x20size\x20of\x20a\x20non-renderer\x20target');const {offsetX:c,offsetY:P}=await this[tk(0x12d)][tk(0x14f)](()=>{const ta=tk;return{'offsetX':innerWidth-Math['round'](visualViewport['width']),'offsetY':innerHeight-Math['round'](visualViewport[ta(0x5cb)])};}),{cssVisualViewport:h}=await this[tk(0x474)]['execute'](tk(0x3e3)),{clientWidth:t,clientHeight:I,scale:scale=0x1,zoom:zoom=0x1}=h;return{'width':Math[tk(0xf7)]((t+c)*zoom*scale),'height':Math[tk(0xf7)]((I+P)*zoom*scale)};}async[O(0x450)](c){const tN=O;if(this[tN(0x565)]!==tN(0x66f))throw new Error(tN(0x321));return await this[tN(0x474)][tN(0x14f)](tN(0xfc),await this[tN(0x272)]()),(await this[tN(0x474)]['execute'](tN(0x1af),c??{'format':tN(0x50e)}))['data'];}async[O(0x14f)](c,P,h){const tT=O;await this[tT(0x2a1)](tT(0x4f3));if(this['kind']===tT(0x66f))throw new Error(tT(0x1a4));return this.#evaluator[tT(0x14f)](c,P,h);}async[O(0x814)](c,P){const tS=O;if(this[tS(0x565)]===tS(0x66f))throw new Error(tS(0x240));return await this[tS(0x2a1)](tS(0x4f3)),this.#evaluator[tS(0x814)](c,P);}async[O(0xb3)](c){const tV=O;if(this[tV(0x565)]!==tV(0x66f))throw new Error('Can\x27t\x20resolve\x20node\x20with\x20a\x20non-renderer\x20target');for(const P of this[tV(0x6eb)]()){const h=await P[tV(0xb3)](c);if(h)return h;}throw new Error(tV(0x63e)+c[tV(0x6c3)]+tV(0x562)+this[tV(0x81e)]+'\x22');}async['resolveFromLocation'](c,{ignorePointerEventsNone:ignorePointerEventsNone=!![]}={}){const tD=O;if(this[tD(0x565)]!==tD(0x66f))throw new Error(tD(0x448));try{const {frameId:P,...h}=await this['connection']['execute'](tD(0x372),{'x':Math['round'](c['x']),'y':Math['round'](c['y']),'ignorePointerEventsNone':ignorePointerEventsNone,'includeUserAgentShadowDOM':![]}),t=this['browser'][tD(0x62e)][tD(0x67a)](P);if(!t)throw new Error(tD(0x486)+P+'\x22\x20resolved\x20a\x20node\x20but\x20the\x20frame\x20wasn\x27t\x20found');return await t[tD(0xb3)]({'nodeId':h[tD(0x6dd)]});}catch(I){return error(tD(0x458),{'error':I}),null;}}async[O(0x2f8)](c){const tm=O;if(this['kind']===tm(0x66f))throw new Error(tm(0x3b5));return this.#evaluator[tm(0x2f8)](c);}async['filepicker'](c){const tr=O,P=[];try{this.#filepickerHandlers[tr(0x5a4)]===0x0&&(await this[tr(0x2a1)](tr(0x2c5)),await this[tr(0x45b)](!![])),this.#filepickerHandlers[tr(0x22d)](c),this.#controller[tr(0x419)]['throwIfAborted'](),P[tr(0x3a6)](this['on']('frameTargetCreated',async({target:h})=>P['push'](await h[tr(0x4e5)](c)))),P[tr(0x3a6)](...await Promise['all'](Array[tr(0x37c)](this[tr(0x4fd)](),h=>h['filepicker'](c))));}catch(h){if(h instanceof AbortError)log(tr(0x3fb),{'targetId':this[tr(0x81e)],'error':h});else throw h;}return()=>{const tF=tr;this.#filepickerHandlers['delete'](c),P[tF(0x7fe)](t=>t());if(this.#filepickerHandlers[tF(0x5a4)]===0x0)this[tF(0x45b)](![]);};}async[O(0x21c)](c,P){const tE=O,h=P??c,t=P?Array[tE(0x7a2)](c)?c:[c]:[{'stage':['request']}],I={'matchers':t[tE(0x205)](j=>makeInterceptionPatternMatcher(j)),'patterns':t[tE(0x7dc)](j=>toCDPPattern(j)),'handler':h},K=[];try{this.#requestInterceptors['add'](I),await this[tE(0x2a1)](tE(0x17e)),this['connection']['send']('Fetch.enable',{'patterns':Array[tE(0x37c)](this.#requestInterceptors)[tE(0x7dc)](({patterns:j})=>j)}),this.#controller[tE(0x419)][tE(0x77e)](),await this[tE(0x2a1)](tE(0x2c5)),K[tE(0x3a6)](this['on'](tE(0x517),async({target:j})=>K['push'](await j['intercept'](t,h)))),K[tE(0x3a6)](...await Promise[tE(0x630)](Array['from'](this['targets'](),j=>j[tE(0x21c)](t,h))));}catch(j){if(j instanceof AbortError)log(tE(0x40f),{'targetId':this[tE(0x81e)],'error':j});else throw j;}return()=>{const te=tE;this.#requestInterceptors[te(0x4a5)](I),K['forEach'](z=>z());if(this.#requestInterceptors[te(0x5a4)]===0x0)this[te(0x474)][te(0x2b2)](te(0x335));else this[te(0x474)][te(0x2b2)]('Fetch.enable',{'patterns':Array[te(0x37c)](this.#requestInterceptors)['flatMap'](({patterns:z})=>z)});};}async[O(0x2ec)](c){const tX=O;if(this['kind']!=='renderer')throw new Error(tX(0x79b));const {currentIndex:P,entries:h}=await this[tX(0x474)][tX(0x14f)](tX(0x1eb)),t=h[P+c];if(!t)throw new NoHistoryEntryError({'offset':c});this[tX(0x12d)][tX(0x2db)](new FrameNavigatingEvent({'url':t[tX(0x54a)],'reason':tX(0x16d)})),this.#watchers[tX(0x5d6)][tX(0x6e7)]({'hint':tX(0x16d)}),await this[tX(0x474)][tX(0x14f)](tX(0x107),{'entryId':t['id']});}async[O(0x633)](c,{timeout:P}={}){const ti=O;if(this[ti(0x565)]!=='renderer')throw new Error(ti(0x79b));if(!this.#watchers[ti(0x5d6)][ti(0x4b6)])await Promise['allSettled']([this.#watchers[ti(0x5d6)]]);this[ti(0x12d)][ti(0x2db)](new FrameNavigatingEvent({'url':c,'reason':ti(0x16d)})),this.#watchers[ti(0x5d6)]['reset']({'hint':'programmatic'});if(P)this.#watchers[ti(0x5d6)][ti(0x7cf)](new NavigationTimedOutError({'url':c,'timeout':P}),{'delay':P});const h=new AbortController();this.#watchers['navigated']['catch'](I=>h[ti(0x48a)](I));const {errorText:t}=await this['connection'][ti(0x14f)](ti(0x696),{'url':c},{'signal':h['signal']});if(t){if(t==='net::ERR_INVALID_AUTH_CREDENTIALS')this.#watchers['navigated'][ti(0xb3)]();else{if(t==='net::ERR_ABORTED'&&[0xcc,0xcd]['includes'](this[ti(0x12d)][ti(0x12b)]['status']))this.#watchers[ti(0x5d6)][ti(0xb3)]();else this.#watchers[ti(0x5d6)][ti(0x7cf)](new NavigationFailedError({'url':c,'reason':t}));}}return await this.#watchers[ti(0x5d6)],{'url':c,'status':this['mainFrame'][ti(0x12b)][ti(0x766)],'headers':this[ti(0x12d)]['response']['headers']};}async[O(0x40a)]({hard:c}={}){const tL=O;if(this['kind']!==tL(0x66f))throw new Error(tL(0x79b));if(c)await this.#browser[tL(0x548)]();this[tL(0x12d)][tL(0x2db)](new FrameNavigatingEvent({'url':this[tL(0x54a)],'reason':tL(0x16d)})),this.#watchers[tL(0x5d6)][tL(0x6e7)]({'hint':tL(0x16d)}),await this[tL(0x474)][tL(0x14f)](tL(0x2ca),{'ignoreCache':c}),await this.#watchers['navigated'],await Promise[tL(0x225)]([this[tL(0x2a1)](tL(0x7c6)),this['mainFrame'][tL(0x2a1)](tL(0x44a))]);}async[O(0x237)](){const tA=O;if(this[tA(0x565)]!==tA(0x66f))throw new Error(tA(0x79b));await this[tA(0x474)]['execute'](tA(0x401))[tA(0x730)](()=>null);}async[O(0x6b1)](c){const tY=O,{targetId:P}=await this.#browser['connection'][tY(0x14f)]('Target.openDevTools',{'targetId':this['targetId']});await this.#browser[tY(0x2a1)](tY(0x10a));const h=this.#browser[tY(0x5b3)][tY(0x67a)](P);if(c?.[tY(0xed)]){await h['wait']('stable');const t=AbortSignal[tY(0x2a7)](0x1388);let I;while(!t['aborted']){I=await h[tY(0x12d)]['$'](tY(0x266)+c[tY(0xed)]+tY(0x110));if(I){await I[tY(0x519)]();break;}}}return h;}async['highlight'](c,P){const tU=O;if(c){const h={'x':Math[tU(0xf7)](c['x']),'y':Math[tU(0xf7)](c['y']),'width':Math[tU(0xf7)](c['width']),'height':Math[tU(0xf7)](c['height']),'color':P?.[tU(0x435)]??{'r':0x6f,'g':0xa8,'b':0xdc,'a':0.66},'outlineColor':P?.[tU(0x405)]};if(P?.[tU(0x467)]){const t=0x5;for(let I=0x0;I<t;I++){await this[tU(0x474)][tU(0x14f)](tU(0x3b7),h),await sleep(0xfa),await this['connection'][tU(0x14f)](tU(0x567)),await sleep(0x96);}}else await this[tU(0x474)][tU(0x14f)]('Overlay.highlightRect',h);}else await this[tU(0x474)][tU(0x14f)](tU(0x567));}async[O(0x2fc)](c=!![]){const ts=O;if(this[ts(0x565)]!==ts(0x66f))throw new Error('Can\x27t\x20bypass\x20csp\x20of\x20a\x20non-renderer\x20target');await this[ts(0x474)][ts(0x14f)]('Page.setBypassCSP',{'enabled':c});}async['getCookies'](){const tx=O,{cookies:c}=await this[tx(0x474)][tx(0x14f)](tx(0x199));return c[tx(0x472)]((P,{name:h,value:t})=>P[tx(0x4c1)](h,t),new Map());}async[O(0x309)](c){const tB=O;await this[tB(0x474)][tB(0x14f)](tB(0x658),{'cookies':c});}async[O(0x69a)](c,{name:P,deep:h,isolated:t}={}){const tu=O;if(this[tu(0x565)]!==tu(0x66f))throw new Error('Can\x27t\x20peform\x20an\x20injection\x20in\x20a\x20non-renderer\x20target');const I=makeInjection({'target':this,'expression':c,'name':P,'deep':h,'isolated':t});return await I[tu(0x2a1)](tu(0x1e4)),this.#injections['set'](I['name'],I),I;}async[O(0x5ca)](c,P){const td=O;if(this[td(0x565)]!==td(0x66f))throw new Error(td(0x461));await this[td(0x2a1)]('initialized');if(c===td(0x3e5)){const h=P?.[td(0x435)]?{'contentColor':P[td(0x435)],'paddingColor':P[td(0x435)],'borderColor':P['color'],'shapeColor':P['color']}:{};await this[td(0x474)][td(0x14f)](td(0x1b0),{'mode':'searchForNode','highlightConfig':h}),this['on']('frameTargetCreated',({target:t})=>{const tM=td;t['on']('elementSelected',({element:I})=>this[tM(0x2db)](new TargetElementSelectedEvent(I)),{'key':tM(0x794)}),t['changeMode'](c,P);},{'key':td(0x794)}),await Promise[td(0x630)](Array[td(0x37c)](this[td(0x4fd)](),t=>{const tq=td;return t['on'](tq(0x297),({element:I})=>this[tq(0x2db)](new TargetElementSelectedEvent(I)),{'key':tq(0x794)}),t[tq(0x5ca)](c,P);}));}else await this['connection'][td(0x14f)](td(0x1b0),{'mode':td(0x642),'highlightConfig':{}}),this[td(0x79d)](td(0x794)),await Promise[td(0x630)](Array[td(0x37c)](this['targets'](),t=>{const tJ=td;return t[tJ(0x79d)](tJ(0x794)),t[tJ(0x5ca)](c);}));this.#mode=c;}async[O(0x45b)](c=!![]){const ty=O;try{this.#filepickersHidden!==c&&(await this['connection']['execute']('Page.setInterceptFileChooserDialog',{'enabled':c}),this.#filepickersHidden=c);}catch(P){error(ty(0x767),{'error':P});}}async[O(0x15c)](){const tl=O;this[tl(0x2db)](new TargetClosedEvent()),this[tl(0x474)]['send']('Target.closeTarget',{'targetId':this['targetId']});}[Symbol[O(0x80c)](O(0x3ca))](c,P,h){const tC=O;return tC(0x6d4)+h({'targetId':this[tC(0x81e)],'type':this[tC(0x345)],'url':this[tC(0x54a)],'title':this['title']},P);}},TargetAttachedEvent=class extends Event{[O(0x193)];constructor(c){const tO=O;super(tO(0x17e)),this[tO(0x193)]=c;}},TargetDetachedEvent=class extends Event{constructor(){const I0=O;super(I0(0x80b));}},TargetActivatingEvent=class extends Event{constructor(){const I1=O;super(I1(0x6a5));}},TargetActivatedEvent=class extends Event{[O(0x23a)];constructor({reason:c}){const I2=O;super(I2(0x526)),this[I2(0x23a)]=c;}},TargetChangedEvent=class extends Event{['url'];[O(0x81c)];constructor(c){const I3=O;super('changed'),this[I3(0x54a)]=c[I3(0x54a)],this[I3(0x81c)]=c[I3(0x81c)];}},TargetNavigatedEvent=class extends Event{[O(0x37c)];['to'];['reason'];constructor({from:c,to:P,reason:h}){const I4=O;super(I4(0x5d6)),this[I4(0x37c)]=c,this['to']=P,this[I4(0x23a)]=h;}},TargetClosedEvent=class extends Event{constructor(){const I5=O;super(I5(0x5dd));}},TargetVisibilityChangeEvent=class extends Event{['visibility'];constructor(c){const I6=O;super('visibilityChanged'),this[I6(0x6f6)]=c;}},TargetMainFrameReadyEvent=class extends Event{[O(0x286)];constructor(c){const I7=O;super(I7(0x4ad)),this[I7(0x286)]=c;}},TargetFrameAttachedEvent=class extends Event{['frame'];constructor(c){const I8=O;super(I8(0x7de)),this[I8(0x286)]=c;}},TargetFrameTargetCreatedEvent=class extends Event{[O(0x653)];constructor(c){const I9=O;super(I9(0x517)),this[I9(0x653)]=c;}},TargetDialogEvent=class extends Event{[O(0x348)];[O(0x6c9)];constructor(c,P){const Ib=O;super(Ib(0x6c9)+(c[0x0][Ib(0x3b8)]()+c[Ib(0xe4)](0x1))),this[Ib(0x348)]=c,this['dialog']=P;}},TargetFilepickerDialogEvent=class extends Event{[O(0x6c9)];constructor(c){const In=O;super(In(0x722)),this[In(0x6c9)]=c;}},TargetChildTargetCreatingEvent=class extends Event{constructor(){super('childTargetCreating');}},TargetElementSelectedEvent=class extends Event{[O(0x807)];constructor(c){const IH=O;super(IH(0x297)),this[IH(0x807)]=c;}};const browsers=new WeakMap();async function makeBrowser(c){const Io=O;if(c[Io(0x7e4)]&&browsers['has'](c[Io(0x7e4)]))return browsers[Io(0x67a)](c[Io(0x7e4)]);if(c[Io(0x732)]){const P=new Browser({'socket':c['socket'],'driver':c[Io(0x7e4)]});if(c['driver'])browsers['set'](c[Io(0x7e4)],P);return P;}else{if(c[Io(0x1d6)]){const h=new Agent()['compose'](I=>{return(K,j)=>{const IW=n;return K['headers']=K['headers']&&Object[IW(0x3fa)](Object[IW(0xde)](K['headers'])[IW(0x506)](([z])=>z[IW(0x1d1)]()!==IW(0x137))),I(K,j);};}),t=new WebSocket(c['wsDebuggerUrl'],{'dispatcher':h});return await once(t,Io(0x2c2)),makeBrowser({'socket':t,'driver':c[Io(0x7e4)]});}else{if(c[Io(0x250)]){const I=Io(0x5bf)+c[Io(0x250)][Io(0x2d0)](Io(0x638),Io(0x27a)),K=await fetch(I+Io(0x320))['catch'](()=>null);if(K?.[Io(0x766)]!==0xc8)throw new Error(Io(0x2ea));return makeBrowser({'wsDebuggerUrl':(await K[Io(0x167)]())[Io(0x6d5)][Io(0x2d0)](Io(0x638),Io(0x27a)),'driver':c[Io(0x7e4)]});}else{if(c[Io(0x7e4)]){const j=await c[Io(0x7e4)][Io(0x63f)](),z=j[Io(0x67a)](Io(0x4aa))?.[Io(0x2d0)](/172.\d+.0.2/,'localhost');if(z)return makeBrowser({'wsDebuggerUrl':z,'driver':c[Io(0x7e4)]});return makeBrowser({'debuggerAddress':j[Io(0x67a)](Io(0x25c))?.[Io(0x250)]??j['get'](Io(0x6e1))?.[Io(0x250)]??j[Io(0x67a)](Io(0x274))??Io(0x6db),'driver':c[Io(0x7e4)]});}else throw new Error('Cannot\x20create\x20browser\x20-\x20no\x20connection\x20options\x20provided');}}}}var Browser=class extends EventTargetNode{#targets=new Map();#pages=[];#extensions=[];#activePage;#headless;#product;#filepickersHidden=![];#closed=![];#history=makePagesHistory({'browser':this});#watchers={'initialized':makeWatcher(),'attachedTargets':makeWatcher(),'activePage':makeWatcher(),'history':makeWatcher()};async #initialize(){const Iv=O;on(this['connection'][Iv(0x732)],Iv(0x15c),({code:t,reason:I})=>{const Iw=Iv;if(this.#closed)return;log(Iw(0x2c7),{'code':t,'reason':I}),this['dispatch'](new BrowserDisconnectedEvent({'code':t,'reason':I}));});const {product:c,userAgent:P}=await this['connection'][Iv(0x14f)](Iv(0x708));this.#product=c,this.#headless=P['includes'](Iv(0x3ec));const h=this.#headless?await this[Iv(0x7e4)]?.['getWindowHandle']():void 0x0;this['connection']['on'](Iv(0x4bd),async({targetInfo:t})=>{const Ic=Iv;log('targetCreated',{'targetId':t[Ic(0x81e)],'targetType':t[Ic(0x345)],'openerTargetId':t['openerId'],'openerFrameId':t[Ic(0x16c)]});if(!(t['type']==='page'||t[Ic(0x345)]===Ic(0x487)&&this[Ic(0x62e)][Ic(0x5ab)](t[Ic(0x81e)])||t[Ic(0x345)]==='service_worker'&&t[Ic(0x54a)][Ic(0x553)]('chrome-extension://')||t[Ic(0x54a)][Ic(0x553)]('devtools://')))return;const I=makeTarget({'browser':this,'parent':t[Ic(0x1e8)]?this.#targets[Ic(0x67a)](t[Ic(0x1e8)]):void 0x0,'targetId':t[Ic(0x81e)],'type':t['type'],'url':t[Ic(0x54a)],'title':t[Ic(0x81c)]});this.#targets[Ic(0x4c1)](I[Ic(0x81e)],I),this.#watchers[Ic(0x10a)][Ic(0x6e7)](),this[Ic(0x2db)](new BrowserTargetCreatedEvent(I));if(t[Ic(0x345)]==='other'&&t[Ic(0x54a)][Ic(0x553)](Ic(0x238)))await this['connection'][Ic(0x14f)]('Target.attachToTarget',{'targetId':t[Ic(0x81e)],'flatten':!![]});I['on'](Ic(0x17e),()=>{const IP=Ic;if(Array[IP(0x37c)](this.#targets[IP(0x3bd)]())[IP(0x24b)](K=>K[IP(0x17e)])&&!this.#watchers[IP(0x10a)][IP(0x4b6)])this.#watchers[IP(0x10a)][IP(0xb3)]();});if(I['type']==='page'&&!I[Ic(0x54a)][Ic(0x553)](Ic(0x238)))this['dispatch'](new BrowserPageCreatedEvent(I)),this.#pages[Ic(0x3a6)](I),I['on'](Ic(0x17e),()=>{const Ih=Ic;if(this.#activePage){log(Ih(0x17f),{'reason':this.#activePage===I[Ih(0x64f)]?Ih(0x32d):'newPage'});if(this.#watchers['activePage'][Ih(0x4b6)])this.#watchers[Ih(0x103)][Ih(0x6e7)]({'hint':Ih(0x1e6)});if(this[Ih(0x6bd)])I[Ih(0x2db)](new TargetActivatedEvent({'reason':Ih(0x1e6)}));else this.#activePage=void 0x0;}else this.#headless&&I[Ih(0x81e)]===h&&(log(Ih(0x17f),{'reason':Ih(0x755)}),I['dispatch'](new TargetActivatedEvent({'reason':Ih(0x16d)})));}),I['on'](Ic(0x6a5),()=>{const II=Ic;if(this[II(0x103)]!==I&&this.#watchers['activePage'][II(0x4b6)])this.#watchers['activePage'][II(0x6e7)]({'hint':'programmatic'});}),I['on'](Ic(0x526),({reason:K})=>{const IK=Ic;this.#activePage=I,log(IK(0xb0),{'targetId':I[IK(0x81e)]}),this.#watchers[IK(0x103)][IK(0xb3)](),this[IK(0x2db)](new BrowserActivePageChangedEvent(I,{'reason':K}));}),I['on'](Ic(0x5d6),({from:K,to:j,reason:z})=>{const Ij=Ic;log(Ij(0x6cb),{'targetId':I[Ij(0x81e)]}),this[Ij(0x2db)](new BrowserPageNavigatedEvent(I,{'from':K,'to':j,'reason':z}));}),I['on'](Ic(0x5dd),()=>{const Iz=Ic;log('pageClosed',{'targetId':I['targetId']});const K=!I['download']&&(I[Iz(0x2c5)]&&!this.#activePage||this.#activePage===I);this[Iz(0x2db)](new BrowserPageClosedEvent(I,{'wasActive':K})),this.#targets[Iz(0x4a5)](I[Iz(0x81e)]),this.#pages[Iz(0x4e4)](this.#pages['indexOf'](I),0x1);if(this.#activePage===I||!this[Iz(0x103)]&&I[Iz(0x1ae)]===void 0x0){log(Iz(0x3af),{'targetId':I[Iz(0x81e)]}),this.#watchers[Iz(0x103)]['reset']({'hint':Iz(0x1e6)});if(this['headless']&&I['parent'])log(Iz(0x17f),{'reason':'parentOfClosed'}),I['parent'][Iz(0x2db)](new TargetActivatedEvent({'reason':Iz(0x1e6)}));else{const j=this.#pages[Iz(0x5d9)](z=>z['visible']);j?(log(Iz(0x17f),{'reason':Iz(0x4b4)}),j[Iz(0x2db)](new TargetActivatedEvent({'reason':'automatic'}))):(log(Iz(0x2e7),{'reason':'noVisiblePage'}),this.#activePage=void 0x0);}}else{if(!this.#activePage)this.#watchers[Iz(0x103)]['reset']({'hint':'automatic'});}}),I['on'](Ic(0x49a),({visibility:K})=>{const IR=Ic;if(K==='visible'){if(!this.#activePage)log(IR(0x17f),{'reason':IR(0x5ae)}),I[IR(0x2db)](new TargetActivatedEvent({'reason':this.#watchers[IR(0x103)]['hint']}));else{if(this.#activePage!==I){if(I['popup'])log(IR(0x17f),{'reason':IR(0x78a)}),I[IR(0x2db)](new TargetActivatedEvent({'reason':IR(0x1e6)}));else{log(IR(0x319),{});if(this.#watchers[IR(0x103)][IR(0x4b6)])this.#watchers['activePage'][IR(0x6e7)]({'hint':'manual'});}}}}else{if(this.#activePage===I&&K===IR(0x7cc)&&I[IR(0x5d6)]){log('activePageVacated',{'reason':'activePageHidden'});const j=this.#pages[IR(0x5d9)](z=>z[IR(0x1ae)]);if(j)log(IR(0x17f),{'reason':IR(0x4b4)}),j[IR(0x2db)](new TargetActivatedEvent({'reason':this.#watchers['activePage'][IR(0x7bc)]}));else{if(this.#watchers[IR(0x103)][IR(0x4b6)])this.#watchers['activePage'][IR(0x6e7)]({'hint':'manual'});this.#activePage=void 0x0;}}}}),I['on'](Ic(0x1c0),()=>{const IG=Ic;this.#watchers[IG(0x10a)]['reset']();});else{if(I[Ic(0x345)]===Ic(0x487))this[Ic(0x62e)]['get'](I[Ic(0x12d)][Ic(0x2aa)])?.['target'][Ic(0x2db)](new TargetFrameTargetCreatedEvent(I));else{if(I[Ic(0x345)]===Ic(0x50c))this.#extensions[Ic(0x3a6)](I);}}}),this[Iv(0x474)]['on'](Iv(0x2f7),({targetId:t})=>{const Ip=Iv,I=this.#targets[Ip(0x67a)](t);I&&(log(Ip(0x56e),{'targetId':I[Ip(0x81e)],'targetType':I[Ip(0x345)]}),this.#targets['delete'](t),I['dispatch'](new TargetClosedEvent()));}),this['connection']['on'](Iv(0x43f),({targetId:t,status:I,errorCode:K})=>{const Ig=Iv;log(Ig(0x7d6),{'targetId':t,'status':I,'errorCode':K});const j=this.#targets[Ig(0x67a)](t)??null;this[Ig(0x2db)](new BrowserTargetCrashedEvent(j,{'targetId':t,'status':I,'errorCode':K}));}),this[Iv(0x474)]['on']('Target.targetInfoChanged',({targetInfo:t})=>{const IZ=Iv;this.#targets[IZ(0x67a)](t[IZ(0x81e)])?.[IZ(0x2db)](new TargetChangedEvent(t));}),this['connection']['on']('Target.attachedToTarget',async({sessionId:t,targetInfo:I})=>{const IQ=Iv;log(IQ(0x75e),{'targetId':I[IQ(0x81e)],'targetType':I[IQ(0x345)],'sessionId':t}),this.#targets[IQ(0x67a)](I['targetId'])?.[IQ(0x2db)](new TargetAttachedEvent(t));}),this[Iv(0x474)]['on']('Target.detachedFromTarget',async({sessionId:t,targetId:I})=>{const Ik=Iv;log('targetDetached',{'targetId':I,'sessionId':t}),this.#targets[Ik(0x67a)](I)?.[Ik(0x2db)](new TargetDetachedEvent());}),await this[Iv(0x474)]['execute'](Iv(0xb7),{'discover':!![]}),await this[Iv(0x474)][Iv(0x14f)](Iv(0x6e3),{'autoAttach':!![],'flatten':!![],'filter':[{'type':Iv(0x514)},{'type':Iv(0x487)},{'type':'service_worker'}],'waitForDebuggerOnStart':!![]});}[O(0x345)]=O(0x3a7);[O(0x5b3)]=this.#targets;[O(0x62e)]=makeFrameManager();['windowManager']=makeWindowManager();[O(0x7f2)]=this.#extensions;[O(0x7e4)];[O(0x474)];[O(0x3a5)]=0x9c40;get[O(0x6bd)](){return this.#headless;}get[O(0x76b)](){return this.#product;}get[O(0x1e1)](){const Ia=O;return!!this.#activePage?.['dialog']&&this.#activePage['dialog'][Ia(0x345)]!==Ia(0x4e5);}get[O(0x103)](){return this.#activePage;}get[O(0x393)](){return this.#filepickersHidden;}get[O(0x2e9)](){const IN=O;return this.#history[IN(0x793)];}get[O(0x1da)](){const IT=O;return this.#history[IT(0x1b9)];}constructor({driver:c,socket:P}){const IS=O;super(),this[IS(0x7e4)]=c,this[IS(0x474)]=makeConnection({'socket':P}),this.#initialize()[IS(0x311)](()=>this.#watchers[IS(0x2c5)][IS(0xb3)]())[IS(0x730)](h=>this.#watchers[IS(0x2c5)][IS(0x7cf)](h));}*[O(0x4fd)](){const IV=O;yield*this.#targets[IV(0x3bd)]();}*['pages'](){yield*this.#pages;}async[O(0x516)](c,{signal:P,timeout:h}={}){const ID=O;if(c===ID(0x7b2))await this[ID(0x2a1)](ID(0x4f3),{'signal':P}),await this[ID(0x103)][ID(0x2a1)](ID(0x2c5),{'signal':P}),!this['activePage'][ID(0x5d6)]&&(this[ID(0x2db)](new BrowserStabilizingNavigationEvent({'done':![]})),await this[ID(0x103)][ID(0x2a1)](ID(0x5d6),{'signal':P}),this['dispatch'](new BrowserStabilizingNavigationEvent({'done':!![]}))),!this[ID(0x103)][ID(0x4f3)]&&(this[ID(0x2db)](new BrowserStabilizingLoadEvent({'done':![]})),await this['activePage']['wait'](ID(0x4f3),{'signal':P}),this[ID(0x2db)](new BrowserStabilizingLoadEvent({'done':!![]})));else{if(c===ID(0x45e))await this[ID(0x516)](ID(0x7b2),{'signal':P}),!this[ID(0x103)][ID(0x39d)]&&(this[ID(0x2db)](new BrowserStabilizingOutgoingRequestsEvent({'done':![]})),await this['activePage'][ID(0x2a1)](ID(0x39d),{'signal':P}),this[ID(0x2db)](new BrowserStabilizingOutgoingRequestsEvent({'done':!![]})));else{if(c==='paranoid')return until(Promise[ID(0xb3)]()[ID(0x311)](async()=>{const Im=ID;await this[Im(0x516)](Im(0x45e),{'signal':P});for(const t of this['activePage']['frames']())try{if(await t[Im(0xbf)]())await t[Im(0x2a1)]('loaded',{'signal':P});}catch(I){if(P?.[Im(0x351)]&&P[Im(0x23a)]===I)throw I;}}),{'timeout':h??0xea60,'signal':P});}}}async[O(0x2a1)](c,{signal:P}={}){const Ir=O;if(c==='stable')await abortable(this.#watchers[Ir(0x2c5)],P),await abortable(this.#watchers[Ir(0x10a)],P),await abortable(this.#watchers['activePage'],P);else await abortable(this.#watchers[c],P);}async[O(0x514)]({url:c,automationTimeout:P}){const IF=O;await this.#watchers['activePage'],this.#watchers[IF(0x10a)][IF(0x6e7)]();const {targetId:h}=await this[IF(0x474)][IF(0x14f)](IF(0x636),{'url':'about:blank'});await this.#watchers[IF(0x10a)];const t=this.#targets[IF(0x67a)](h);if(P!=null)t[IF(0x474)][IF(0x2a7)]=P;return await Promise[IF(0x630)]([t[IF(0x203)](),c?t[IF(0x2a1)](IF(0x4f3))[IF(0x311)](()=>t[IF(0x633)](c)[IF(0x311)](()=>t['wait'](IF(0x4f3)))):null]),t;}async[O(0x2d8)](){const IE=O;return await this.#watchers[IE(0x103)],this.#history[IE(0x2d8)]();}async[O(0x1b7)](){return await this.#watchers['activePage'],this.#history['activateNextPage']();}async[O(0x21c)](c,P){const Ie=O,h=P??c,t=P?c:void 0x0,I=[];I[Ie(0x3a6)](this['on'](Ie(0x82b),async({target:j})=>I['push'](await K(j)))),I[Ie(0x3a6)](...await Promise['all'](Array[Ie(0x37c)](this[Ie(0x2d3)](),K)));return()=>I[Ie(0x7fe)](j=>j());function K(j){const IX=Ie;return t!==void 0x0?j[IX(0x21c)](t,h):j[IX(0x21c)](h);}}async[O(0x4e5)](c){const Ii=O,P=[];return this['on'](Ii(0x82b),async({target:h})=>P['push'](await h[Ii(0x4e5)](c))),P[Ii(0x3a6)](...await Promise['all'](Array[Ii(0x37c)](this[Ii(0x2d3)](),h=>h[Ii(0x4e5)](c)))),()=>P[Ii(0x7fe)](h=>h());}async['getCookies'](){const IL=O,{cookies:c}=await this[IL(0x474)][IL(0x14f)](IL(0x592));return c;}async[O(0x309)](c){const IA=O;await this[IA(0x474)][IA(0x14f)](IA(0x66e),{'cookies':c});}async[O(0x548)](){const IY=O;await this[IY(0x474)][IY(0x14f)](IY(0x227));}async[O(0x3cf)](c){const IU=O;await this.#watchers[IU(0x103)],await this['activePage'][IU(0x2a1)](IU(0x259)),await this.#activePage[IU(0x38e)]['setSize'](c);}async[O(0x5f5)](c){const Is=O;await this.#watchers['activePage'],await this[Is(0x103)][Is(0x2a1)]('windowResolved');const P=this.#activePage[Is(0x38e)];if(this.#headless){await P[Is(0x2f9)](c);const h=await this[Is(0x103)][Is(0x272)]();if(h[Is(0x43b)]!==c[Is(0x43b)]||h[Is(0x5cb)]!==c['height'])await P[Is(0x2f9)]({'width':c[Is(0x43b)]+c[Is(0x43b)]-h['width'],'height':c['height']+c[Is(0x5cb)]-h[Is(0x5cb)]});}else await P[Is(0x829)](c);}async[O(0x450)](){const Ix=O;return await this['wait'](Ix(0x4f3)),this[Ix(0x103)][Ix(0x450)]();}async[O(0x45b)](c=!![]){const IB=O;await Promise['all'](Array[IB(0x37c)](this[IB(0x4fd)](),P=>P[IB(0x45b)](c))),this.#filepickersHidden=c;}async[O(0x15c)](){const Iu=O;log(Iu(0x824),{}),this.#closed=!![],this.#targets[Iu(0x7fe)](c=>c[Iu(0x2db)](new TargetClosedEvent()));if(this[Iu(0x7e4)])await this[Iu(0x7e4)]?.[Iu(0x542)]();else await this[Iu(0x474)][Iu(0x14f)](Iu(0x5c6));}},BrowserTargetCreatedEvent=class extends Event{[O(0x653)];constructor(c,P){const Id=O;super(Id(0x16e),P),this[Id(0x653)]=c;}},BrowserPageCreatedEvent=class extends Event{['target'];constructor(c,P){super('pageCreated',P),this['target']=c;}},BrowserPageNavigatedEvent=class extends Event{['target'];['from'];['to'];[O(0x23a)];constructor(c,{from:P,to:h,reason:t},I){const IM=O;super('pageNavigated',I),this[IM(0x653)]=c,this[IM(0x37c)]=P,this['to']=h,this[IM(0x23a)]=t;}},BrowserPageClosedEvent=class extends Event{[O(0x653)];[O(0x714)];constructor(c,{wasActive:wasActive=![]}={},P){const Iq=O;super(Iq(0x51c),P),this[Iq(0x653)]=c,this[Iq(0x714)]=wasActive;}},BrowserActivePageChangedEvent=class extends Event{[O(0x653)];[O(0x23a)];constructor(c,{reason:P},h){const IJ=O;super(IJ(0xb0),h),this[IJ(0x653)]=c,this['reason']=P;}},BrowserDisconnectedEvent=class extends Event{[O(0x24c)];[O(0x23a)];constructor({code:c,reason:P},h){const Iy=O;super('disconnected',h),this[Iy(0x24c)]=c,this[Iy(0x23a)]=P;}},BrowserTargetCrashedEvent=class extends Event{[O(0x653)];[O(0x81e)];[O(0x766)];['errorCode'];constructor(c,{targetId:P,status:h,errorCode:t},I){const Il=O;super('targetCrashed',I),this[Il(0x653)]=c,this[Il(0x81e)]=P,this['status']=h,this[Il(0x2c0)]=t;}},BrowserWindowCreatedEvent=class extends Event{[O(0x38e)];constructor(c){const IC=O;super(IC(0x48c)),this[IC(0x38e)]=c;}},BrowserStabilizingNavigationEvent=class extends Event{[O(0x395)];constructor({done:c}){const IO=O;super(IO(0x4e6)),this[IO(0x395)]=c;}},BrowserStabilizingLoadEvent=class extends Event{[O(0x395)];constructor({done:c}){const K0=O;super('stabilizingLoad'),this[K0(0x395)]=c;}},BrowserStabilizingOutgoingRequestsEvent=class extends Event{['done'];constructor({done:c}){const K1=O;super('stabilizingOutgoingRequests'),this[K1(0x395)]=c;}},HarRecorder=class extends EventTargetNode{#target;#includeBodies;#unsubscribes=[];#disposed=![];#events=[];#bodies=new Map();#seenRequestIds=new Set();#cachedRequestIds=new Set();#stats={'requestCount':0x0,'bytesIn':0x0,'bytesOut':0x0};constructor({target:c,includeBodies:includeBodies=![]}){super(),this.#target=c,this.#includeBodies=includeBodies,this.#subscribe(),this.#seedActivePage();}get[O(0x613)](){return this.#stats;}get['target'](){return this.#target;}get[O(0x4eb)](){return this.#includeBodies;}[O(0x33f)](c){this.#includeBodies=c;}[O(0x1df)](){const K2=O,c=this.#events[K2(0x205)](({method:h,params:t})=>({'method':h,'params':t}));let P;try{P=harFromMessages(c,{'includeTextFromResponseBody':![]});}catch{P=emptyHar();}for(const h of P[K2(0x513)][K2(0xde)]){const t=h[K2(0x3f1)];if(!t)continue;const I=this.#bodies[K2(0x67a)](t);if(!I||!h[K2(0x12b)]?.['content'])continue;h[K2(0x12b)][K2(0x354)]['text']=I[K2(0x482)];if(I[K2(0x18b)])h[K2(0x12b)]['content'][K2(0x322)]=K2(0x7c2);}return{'har':P,'eventCount':c[K2(0x67b)],'requestCount':this.#stats['requestCount']};}[O(0x3da)](){if(this.#disposed)return;this.#disposed=!![];for(const c of this.#unsubscribes)try{c();}catch{}this.#unsubscribes=[];}#subscribe(){const c=this.#target['connection'];if(!c)return;for(const P of CDP_NETWORK_METHODS)this.#unsubscribes['push'](c['on'](P,h=>{const K3=n;this.#capture(P,h);if(P===K3(0x5e6))this.#onRequestWillBeSent(h);else{if(P===K3(0x552))this.#onRequestServedFromCache(h);else{if(P==='Network.dataReceived')this.#onDataReceived(h);else{if(P==='Network.loadingFinished')this.#onLoadingFinished(h);}}}}));for(const h of CDP_PAGE_METHODS)this.#unsubscribes['push'](c['on'](h,t=>this.#capture(h,t)));}#seedActivePage(){if(this.#disposed)return;this.#capture('Page.frameStartedLoading',{'frameId':this.#target['targetId']});}#capture(c,P){const K4=O;if(this.#disposed)return;this.#events[K4(0x3a6)]({'method':c,'params':P,'timestamp':Date[K4(0x133)]()});}#onRequestWillBeSent(c){const K5=O;if(!/^https?:/i['test'](c[K5(0x331)]?.[K5(0x54a)]??''))return;this.#seenRequestIds[K5(0x22d)](c['requestId']),this.#stats[K5(0x7e8)]+=0x1;const P=c[K5(0x331)]?.[K5(0x78f)]?.[K5(0x67b)]??0x0;if(P>0x0)this.#stats['bytesOut']+=P;this[K5(0x2db)](new HarRecorderStatsChangedEvent(this.#stats));}#onRequestServedFromCache(c){const K6=O;if(!this.#seenRequestIds['has'](c[K6(0x4d8)]))return;if(this.#cachedRequestIds[K6(0x5ab)](c[K6(0x4d8)]))return;this.#cachedRequestIds[K6(0x22d)](c[K6(0x4d8)]),this.#stats[K6(0x7e8)]-=0x1,this[K6(0x2db)](new HarRecorderStatsChangedEvent(this.#stats));}#onDataReceived(c){const K7=O;if(!this.#seenRequestIds[K7(0x5ab)](c[K7(0x4d8)]))return;if(this.#cachedRequestIds[K7(0x5ab)](c[K7(0x4d8)]))return;if(typeof c[K7(0x381)]===K7(0x73c))this.#stats[K7(0x2cf)]+=c[K7(0x381)];this[K7(0x2db)](new HarRecorderStatsChangedEvent(this.#stats));}#onLoadingFinished(c){const K8=O;if(!this.#includeBodies)return;if(!this.#seenRequestIds[K8(0x5ab)](c[K8(0x4d8)]))return;if(this.#cachedRequestIds[K8(0x5ab)](c[K8(0x4d8)]))return;this.#fetchBody(c[K8(0x4d8)]);}async #fetchBody(c){const K9=O;if(this.#disposed)return;const P=this.#target[K9(0x474)];if(!P)return;try{const h=await P[K9(0x14f)]('Network.getResponseBody',{'requestId':c});if(this.#disposed)return;this.#bodies[K9(0x4c1)](c,{'body':h['body'],'base64Encoded':h[K9(0x18b)]});}catch{}}};const CDP_NETWORK_METHODS=['Network.requestWillBeSent','Network.requestWillBeSentExtraInfo',O(0x216),O(0x4dd),O(0x817),O(0x80a),'Network.loadingFailed','Network.requestServedFromCache'],CDP_PAGE_METHODS=[O(0x500),O(0x6a2),'Page.navigatedWithinDocument',O(0xf2),O(0x54c),'Page.domContentEventFired'];function emptyHar(){const Kf=O;return{'log':{'version':Kf(0x5c2),'creator':{'name':Kf(0xb9),'version':''},'pages':[],'entries':[]}};}var HarRecorderStatsChangedEvent=class extends Event{['stats'];constructor(c){const Kb=O;super(Kb(0x213)),this[Kb(0x613)]=c;}};const ErrorCode={'NOT_IMPLEMENTED':O(0x332),'HANDLER_ABORTED':O(0x159),'UNKNOWN_ACTION':'UNKNOWN_ACTION','UNRESOLVED_REF':O(0x38d),'FAILED_ASSERTION':'FAILED_ASSERTION','MALFORMED_COOKIE':O(0x4b1),'MALFORMED_HEADER':O(0x36d),'EVALUATION_FAILED':O(0xbb),'SWITCH_TO_CURRENT_TAB':O(0x7bb),'CLOSE_LAST_TAB':'CLOSE_LAST_TAB','NO_TAB_HISTORY':O(0x33c),'NO_TAB':O(0x423),'NO_NEXT_TAB':O(0x144),'NO_HISTORY_ENTRY':O(0x582),'UNEXPECTED_REQUEST_STATUS':O(0x4c5),'UNEXPECTED_NAVIGATION_STATUS':O(0x1d5),'ELEMENT_NOT_INTERACTIVE':O(0x584),'ELEMENT_NOT_TEXTBOX':O(0x139),'ELEMENT_NOT_CLEARABLE':'ELEMENT_NOT_CLEARABLE','UNHANDLED_DIALOG':'UNHANDLED_DIALOG','NO_ELEMENT':O(0x71f),'NO_OPTION':O(0x39c),'NO_DIALOG':'NO_DIALOG','CONDITION_TIMED_OUT':O(0x2d7),'NAVIGATION_FAILED':O(0x535),'NAVIGATION_TIMED_OUT':'NAVIGATION_TIMED_OUT','FETCH_FAILED':O(0x61b),'UNRESPONSIVE_TAB':O(0x5c3),'INTERNAL':O(0x206),'MESSAGE_PARSING':O(0x6a9),'OBSCURED_ELEMENT':O(0x484),'FORBIDDEN_ACTION':O(0x791),'EXCEEDED_ALLOWED_TIMEOUT':O(0x181),'NOT_PDF_VIEWER':O(0x737),'PDF_PAGE_OUT_OF_RANGE':'PDF_PAGE_OUT_OF_RANGE'};var RunnerError=class extends Error{[O(0x24c)];['meta'];constructor(c,{code:code=ErrorCode[O(0x206)],error:P,...h}={}){const Kn=O;super(),this['name']=this[Kn(0x5d7)][Kn(0x3d8)],this[Kn(0x7a9)]=c,this[Kn(0x24c)]=code,this[Kn(0x573)]=h,P instanceof Error&&(this[Kn(0x7a9)]=c+':\x20'+P[Kn(0x7a9)],this['stack']=P['stack']);}};function translateAutomatorError(c){const KH=O;if(c instanceof NavigationFailedError)return{'code':ErrorCode[KH(0x535)],'meta':{'url':c[KH(0x54a)],'reason':c['reason']}};if(c instanceof NavigationTimedOutError)return{'code':ErrorCode['NAVIGATION_TIMED_OUT'],'meta':{'url':c[KH(0x54a)],'timeout':c[KH(0x2a7)]}};if(c instanceof NoHistoryEntryError)return{'code':ErrorCode[KH(0x582)],'meta':{'offset':c[KH(0x58f)]}};if(c instanceof UnresponsiveTargetError){const {method:P,commandId:h,sessionId:t}=c;return{'code':ErrorCode[KH(0x5c3)],'meta':{'method':P,'commandId':h,'sessionId':t}};}return{'code':ErrorCode['INTERNAL'],'meta':{'original':c}};}async function evaluateJSExpression(c,{context:P,stack:h,automator:t,signal:I}){const Ko=O;if(!(t instanceof Browser))throw new Error(Ko(0x2f4));const K=await evaluateExpression(c,{'context':P,'stack':h,'automator':t,'signal':I});return await t['wait'](Ko(0x4f3)),await t[Ko(0x103)][Ko(0x2a1)](Ko(0x4f3)),await t[Ko(0x103)]['mainFrame'][Ko(0xf1)](K,{'await':!![]});}function isBase64String(c){return/^[A-Za-z0-9+/]*={0,2}$/['test'](c);}function isUrlString(c){const KW=O;return/(https?:\/\/(?:localhost|[-a-zA-Z0-9@:%._\+~#=]{2,256}\.[a-z]{2,4})(?::\d{1,5})?\b[-a-zA-Z0-9@:%_\+.~#?&/=]*)/[KW(0x63b)](c);}function isXmlString(c){const Kv=O;try{return XMLValidator[Kv(0x7ff)](c,{'allowBooleanAttributes':!![]})===!![];}catch{return![];}}function parseXmlString(c){const Kw=O,P=XMLValidator['validate'](c,{'allowBooleanAttributes':!![]});if(P!==!![])throw new RunnerError(Kw(0x42b)+P[Kw(0x70a)][Kw(0x459)]+'\x22');return new XMLParser()['parse'](c);}function stringifyXml(c){const Kc=O;return new XMLBuilder()[Kc(0x4c6)](c);}function stringifyJson(c){const KP=O;return JSON[KP(0x38b)](c);}function isJsonString(c){const Kh=O;try{return JSON[Kh(0x476)](c),!![];}catch{return![];}}function parseJsonString(c){const Kt=O;try{return JSON[Kt(0x476)](c);}catch(P){throw new RunnerError('Failed\x20to\x20parse\x20malformed\x20JSON,\x20with\x20an\x20error\x20\x22'+P[Kt(0x7a9)]+'\x22');}}function stringifyJSLiteral(c){const KI=O;if(typeof c==='bigint')return c+'n';else{if(c===Infinity)return KI(0x5c8);else{if(c===-Infinity)return KI(0x577);else{if(Object['is'](c,-0x0))return'-0';else{if(Number[KI(0x5c7)](c))return'NaN';else return JSON[KI(0x38b)](c);}}}}}function isAlphaNumeric(c){return/^[\p{L}\p{N}]+$/u['test'](c);}function isNumeric(c){const KK=O;return/^\p{N}+$/u[KK(0x63b)](c);}function isCapitalized(c){const Kj=O;return/^\p{Lu}/u[Kj(0x63b)](c);}function isLowerCase(c){const Kz=O;return!/\p{Lu}/u[Kz(0x63b)](c);}function isUpperCase(c){const KR=O;return!/\p{Ll}/u[KR(0x63b)](c);}function isCamelCase(c){const KG=O;return/^\p{Ll}[\p{L}\p{N}]*$/u[KG(0x63b)](c);}function isPascalCase(c){return/^\p{Lu}[\p{L}\p{N}]*$/u['test'](c);}function isSnakeCase(c){const Kp=O;return/^[\p{Ll}\p{N}_]+$/u[Kp(0x63b)](c);}function isKebabCase(c){return/^[\p{Ll}\p{N}-]+$/u['test'](c);}function isReference(c){const Kg=O;return!!(c?.[Kg(0x396)]&&c['name']);}function isJSExpressionReference(c){const KZ=O;return!!(c?.[KZ(0x695)]&&c[KZ(0x1d3)]);}function isInterpolatedString(c){const KQ=O;return!!(c?.['isInterpolatedString']&&c[KQ(0x7ba)]);}function isJSExpression(c){const Kk=O;return!!(c?.['isJSExpression']&&c[Kk(0x7ba)]);}function isStructure(c){const Ka=O;return!!(c?.['isStructure']&&c[Ka(0x345)]);}function isPattern(c){const KN=O;return!!(c?.[KN(0x141)]&&(c['pattern']||c[KN(0x3d8)]));}function isExtractor(c){const KT=O;return!!(c?.[KT(0x512)]&&c[KT(0x6df)]&&c['type']);}function isOTP(c){const KS=O;return!!c?.[KS(0x38c)];}function isRandomValue(c){const KV=O;return!!c?.[KV(0x15d)];}function isFileHandle(c){const KD=O;return!!c?.[KD(0x15a)];}function isCondition(c){return!!c?.['isCondition'];}function isOperation(c){const Km=O;return!!(c?.['operator']&&c[Km(0x674)]);}function isExpressionOperation(c){const Kr=O;return!!(c?.[Kr(0x11c)]&&c['operands']);}function isElementDescriptor(c){const KF=O;if(c&&typeof c===KF(0xf4))return Object[KF(0x342)](c)[KF(0x24b)](P=>['hints','type','title',KF(0x435),KF(0x718),KF(0x574),KF(0x434),KF(0xf5),KF(0x7eb),KF(0x47f)][KF(0x1d9)](P));return![];}function isSelectorElementDescriptor(c){const KE=O;return!!(c&&typeof c===KE(0xf4)&&typeof c[KE(0x434)]===KE(0xf4)&&c[KE(0x434)]['type']&&c[KE(0x434)][KE(0x434)]);}function isViewportDescriptor(c){const Ke=O;return!!c?.[Ke(0xef)];}function isDialogDescriptor(c){const KX=O;return!!c?.[KX(0x2e1)];}function isChromeElementDescriptor(c){const Ki=O;return!!c?.[Ki(0x590)];}function toChromeElementDescriptor(c){const KL=O;if(!c[KL(0x81c)]||typeof c[KL(0x81c)]!=='string')return null;if(!Object[KL(0x342)](c)[KL(0x24b)](P=>[KL(0x345),KL(0x81c)][KL(0x1d9)](P)))return null;if(/^(?:(?:reload|refresh)(?:\s+(?:(?:(?:(?:this|the)\s+)?page)|this))?)$/i[KL(0x63b)](c[KL(0x81c)])){if(c[KL(0x345)]&&c['type']!=='button')return null;return{'isChromeElementDescriptor':!![],'title':KL(0x113)};}else{if(/^(?:(?:(?:click\s+to\s+)?(?:go\s+)?(?:back|(?:to\s+)?(?:the\s+)?prev(?:ious)?(?:\s+page)?))|<-|<)$/i['test'](c[KL(0x81c)])){if(c[KL(0x345)]&&c[KL(0x345)]!==KL(0x275))return null;return{'isChromeElementDescriptor':!![],'title':KL(0x6c5)};}else{if(/^(?:(?:(?:click\s+to\s+)?(?:go\s+)?(?:fwd|forward|(?:to\s+)?(?:the\s+)?next(?:\s+page)?))|->|>)$/i[KL(0x63b)](c[KL(0x81c)])){if(c[KL(0x345)]&&c[KL(0x345)]!==KL(0x275))return null;return{'isChromeElementDescriptor':!![],'title':KL(0x75d)};}}}return null;}function stringify(c){const KA=O;if(c&&c[Symbol['for'](KA(0x38b))])return stringify(c[Symbol[KA(0x80c)]('stringify')]());else{if(Array[KA(0x7a2)](c))return c['map'](stringify)[KA(0x44e)]('\x20');else{if(typeof c===KA(0xf4))return stringifyJson(c);else return String(c);}}}function sizeOf(c){const KY=O;if(typeof c===KY(0x4ae)||Array['isArray'](c))return c[KY(0x67b)];else{if(c instanceof Set||c instanceof Map)return c[KY(0x5a4)];else{if(c&&typeof c===KY(0xf4))return Object['keys'](c)[KY(0x67b)];else throw new RunnerError(KY(0x59e)+typeof c+KY(0x5cd));}}}function keysOf(c){const KU=O;if(c instanceof Map)return Array[KU(0x37c)](c['keys']());else{if(c&&typeof c===KU(0xf4)&&!Array['isArray'](c))return Object[KU(0x342)](c);else throw new RunnerError(KU(0x1b2)+(Array[KU(0x7a2)](c)?KU(0x3d3):typeof c)+KU(0x5cd));}}function valuesOf(c){const Ks=O;if(Array['isArray'](c)||c instanceof Set||c instanceof Map)return Array[Ks(0x37c)](c['values']());else{if(c&&typeof c===Ks(0xf4))return Object[Ks(0x3bd)](c);else throw new RunnerError(Ks(0x7a8)+typeof c+Ks(0x5cd));}}function entriesOf(c){const Kx=O;if(typeof c==='string')return c;else{if(Array['isArray'](c)||c instanceof Set)return Array['from'](c[Kx(0x3bd)]());else{if(c instanceof Map)return Array[Kx(0x37c)](c['keys']());else{if(c&&typeof c===Kx(0xf4))return Object[Kx(0x342)](c);else throw new RunnerError(Kx(0x69f)+typeof c+'\x20value');}}}}function typeOf(c){const KB=O;if(isElementDescriptor(c)||isDialogDescriptor(c))return KB(0x4ae);else{if(isExtractor(c))return c[KB(0x345)];else{if(isReference(c))return c[KB(0x345)]??'any';else{if(isInterpolatedString(c))return KB(0x4ae);else{if(isStructure(c))return KB(0x218);else{if(isOperation(c)){if([KB(0x22d),'sub',KB(0x4d3),'div',KB(0x5a4)][KB(0x1d9)](c[KB(0x11c)]))return'number';else return KB(0x218);}else{if(c===null)return KB(0x4f4);else return typeof c;}}}}}}}function arrayOf(...c){const Ku=O;return c[Ku(0x7dc)](P=>{const Kd=Ku;if(Array[Kd(0x7a2)](P))return P;if(P!==void 0x0)return[P];return[];});}function toLowerCase(c){const KM=O;if(typeof c===KM(0x4ae))return c[KM(0x1d1)]();else{if(Array[KM(0x7a2)](c))return c[KM(0x205)](P=>toLowerCase(P));else return c;}}async function extractValue(c,{context:P,stack:h,automator:t,timeout:I,signal:K}){const Kq=O,j=h[Kq(0x4c2)](c),z=await evaluateExpression(c[Kq(0x6df)],{'context':P,'stack':h,'automator':t,'timeout':I,'signal':K}),R=await P['axOps'][Kq(0x35e)]({...z,'hints':{...z['hints'],'type':arrayOf(z['hints']?.['type'],c[Kq(0x345)]==='string'?[Kq(0x532),Kq(0x385)]:[Kq(0x385),Kq(0x532)])}},{'stack':h,'timeout':I??0x0,'signal':K??new AbortController()[Kq(0x419)]});if(!R)return null;const G=j(await R[Kq(0x27f)][Kq(0x255)]({'hint':c['type']})??null);if(c[Kq(0x345)]['includes'](Kq(0x435)))return objectToColor(G);return G;}async function evaluateOperand(c,{context:P,stack:h,automator:t,hint:I,signal:K}){const KJ=O,{done:j,value:z}=await evaluateOperandSequence(c,{'context':P,'stack':h,'automator':t,'hint':I,'signal':K})['next']();if(j)throw new RunnerError(KJ(0x4da));return z;}async function*evaluateOperandSequence(c,{context:P,stack:h,automator:t,hint:I,signal:K}){const Ky=O,j=h[Ky(0x23f)](c);if(isElementDescriptor(c['value'])){const z=c['value'],R=await extractValue({'isExtractor':!![],'value':{...z,'hints':{...z[Ky(0x42d)],'type':arrayOf('valuebox',z[Ky(0x42d)]?.[Ky(0x345)])}},'type':I??'string'},{'context':P,'stack':h,'automator':t,'signal':K});if(R===null)throw new RunnerError(Ky(0x723),{'code':ErrorCode[Ky(0x71f)]});yield j(R);}else{if(isDialogDescriptor(c[Ky(0x6df)])){const G=t instanceof Browser?(t?.[Ky(0x103)]['dialog']&&t[Ky(0x103)]['dialog'][Ky(0x345)]!=='filepicker'&&t[Ky(0x103)][Ky(0x6c9)][Ky(0x7a9)])??null:null;if(G===null)throw new RunnerError(Ky(0x1ac),{'code':ErrorCode[Ky(0x47c)]});yield j(G);}else{const p=await evaluateExpression(c[Ky(0x6df)],{'context':P,'stack':h,'automator':t,'signal':K});yield j(I===Ky(0x4ae)&&typeof p?.[Symbol[Ky(0x80c)](Ky(0x38b))]===Ky(0x3e7)?stringify(p):p,{'secret':h[Ky(0xb4)](c[Ky(0x6df)])??![]});}}}const operations={'validate':validate,'eq':eq,'lt':lt,'gt':gt,'lte':lte,'gte':gte,'match':match,'includes\x20only':includesOnly,'includes':includes,'starts\x20with':startsWith,'ends\x20with':endsWith,'visible':visible,'clickable':clickable,'enabled':enabled,'hovered':hovered,'checked':checked,'populated':populated},transformers={'ignore\x20case':toLowerCase,'match\x20case':c=>c};async function evaluateCondition(c,{context:P,stack:h,automator:t,signal:I}){const Kl=O,K=new Map();return R(c[Kl(0x731)]);async function*j(G,{hint:p}={}){const KC=Kl,Z=stringify(G);let Q=K[KC(0x67a)](Z);if(!Q)Q={'values':[],'iterator':evaluateOperandSequence(G,{'context':P,'stack':h,'automator':t,'hint':p,'signal':I})},K[KC(0x4c1)](Z,Q);else yield*Q[KC(0x3bd)];for await(const k of Q[KC(0x30d)]){Q[KC(0x3bd)][KC(0x3a6)](k),yield k;}}async function*z(...[G,...p]){const KO=Kl;if(!G)yield[];else{const Z=[];for await(const Q of G){for(const k of Z)yield[Q,...k];for await(const a of z(...p)){Z[KO(0x3a6)](a),yield[Q,...a];}}}}async function R(G,p={}){const j0=Kl,Z=h[j0(0x731)](G),{operator:Q,operands:k}=G;switch(Q){case j0(0x631):return Z(await R(k[0x0],p));case j0(0x363):case'match\x20case':return Z(await R(k[0x0],{...p,'mode':Q}));case j0(0x14d):return Z(!await R(k[0x0],p));case'and':return Z(await R(k[0x0],p)&&await R(k[0x1],p));case'or':return Z(await R(k[0x0],p)||await R(k[0x1],p));case j0(0x7ff):case j0(0x757):for await(const a of j(k[0x0])){if(p[j0(0x245)]&&isPattern(k[0x1])){k[0x1][j0(0x243)]??='';if(p['mode']===j0(0x363)&&!k[0x1][j0(0x243)][j0(0x1d9)]('i'))k[0x1][j0(0x243)]+='i';else{if(p[j0(0x245)]===j0(0x508))k[0x1][j0(0x243)]=k[0x1]['flags'][j0(0x2d0)]('i','');}}const N=operations[Q](stringify(a),await evaluateExpression(k[0x1],{'context':P,'stack':h,'automator':t,'signal':I}));if(N)return Z(N);}return Z(![]);case'eq':case'lt':case'gt':case j0(0x390):case j0(0x78e):case'includes':case j0(0x2ac):case'ends\x20with':{const T=typeOf(k[0x1][j0(0x6df)]),S=typeOf(k[0x0][j0(0x6df)]),V=transformers[p[j0(0x245)]??j0(0x508)];for await(const [D,m]of z(j(k[0x0],{'hint':T}),j(k[0x1],{'hint':S}))){const F=h[j0(0x747)](k[0x0],D),E=h[j0(0x747)](k[0x1],m);if(F&&E&&await F[j0(0x27f)]['equal'](E[j0(0x27f)]))continue;const e=operations[Q](V(D),V(m));if(e)return Z(e);}return Z(![]);}case j0(0x4fb):{const X=typeOf(k[0x0]),i=transformers[p[j0(0x245)]??'match\x20case'];for await(const [L,A]of z(j(k[0x0]),z(...k['slice'](0x1)[j0(0x205)](Y=>j(Y,{'hint':X}))))){const Y=operations[Q](i(L),i(A));if(Y)return Z(Y);}return Z(![]);}case j0(0x1ae):return Z(await operations[j0(0x1ae)](k[0x0][j0(0x6df)],{'context':P,'stack':h,'automator':t,'signal':I}));case j0(0x688):case'enabled':case j0(0x6b2):return Z(await operations[Q](k[0x0]['value'],{'context':P,'stack':h,'automator':t,'signal':I}));case j0(0x7f5):return Z(await operations[j0(0x7f5)](k[0x0][j0(0x6df)],k[0x1],{'context':P,'stack':h,'automator':t,'signal':I}));case j0(0x56d):return Z(await operations[j0(0x56d)](k[0x0][j0(0x6df)],{'context':P,'stack':h,'automator':t,'signal':I}));}}}function validate(c,P){const j1=O;if(P===j1(0x367))return isAlphaNumeric(c);else{if(P===j1(0x60e))return isNumeric(c);else{if(P==='capitalized')return isCapitalized(c);else{if(P===j1(0x4e3))return isLowerCase(c);else{if(P===j1(0x329))return isUpperCase(c);else{if(P===j1(0x298))return isCamelCase(c);else{if(P===j1(0x668))return isPascalCase(c);else{if(P===j1(0x788))return isSnakeCase(c);else{if(P===j1(0x256))return isKebabCase(c);else return![];}}}}}}}}}function compare(c,P){const j2=O;if(c instanceof Color||P instanceof Color){const z=c instanceof Color?c:stringToColor(c),R=P instanceof Color?P:stringToColor(P);if(!z||!R)return 0x1;return z[j2(0x422)](R)?0x0:0x1;}const h=stringify(c),t=stringify(P),I=/(?<prefix>.*?)(?<number>\d[\d,]*(?:[.]\d+)?)(?<suffix>.*)/,K=h['match'](I),j=t[j2(0x757)](I);if(K&&j&&K[j2(0x1d0)][j2(0x5bc)]===j['groups'][j2(0x5bc)]&&K[j2(0x1d0)]['suffix']===j[j2(0x1d0)][j2(0x18e)])return Number(K[j2(0x1d0)][j2(0x73c)][j2(0x75c)](',',''))-Number(j[j2(0x1d0)][j2(0x73c)][j2(0x75c)](',',''));return h===t?0x0:h>t?0x1:-0x1;}function eq(c,P){return stringify(c)===stringify(P)||compare(c,P)===0x0;}function lt(c,P){return compare(c,P)<0x0;}function lte(c,P){return compare(c,P)<=0x0;}function gt(c,P){return compare(c,P)>0x0;}function gte(c,P){return compare(c,P)>=0x0;}function match(c,P){const j3=O;return P[j3(0x63b)](stringify(c));}function startsWith(c,P){const j4=O;if(typeof c===j4(0x4ae))return c[j4(0x553)](stringify(P));else{if(Array['isArray'](c))return c['at'](0x0)===P;else throw new RunnerError('Cannot\x20verify\x20that\x20the\x20item\x20is\x20contained\x20within\x20'+typeof c+'\x20value');}}function endsWith(c,P){const j5=O;if(typeof c===j5(0x4ae))return c[j5(0x171)](stringify(P));else{if(Array['isArray'](c))return c['at'](-0x1)===P;else throw new RunnerError('Cannot\x20verify\x20that\x20the\x20item\x20is\x20contained\x20within\x20'+typeof c+j5(0x5cd));}}function includes(c,P){const j6=O;if(typeof c===j6(0x4ae))return c[j6(0x1d9)](stringify(P));else{if(Array[j6(0x7a2)](c))return c[j6(0x1d9)](P);else throw new RunnerError(j6(0x366)+typeof c+j6(0x5cd));}}function includesOnly(c,P){const j7=O;if(typeof c===j7(0x4ae))return!c[j7(0x2d0)](new RegExp(P[j7(0x205)](h=>stringify(h))['join']('|'),'g'),'')['trim']();else{if(Array[j7(0x7a2)](c))return c[j7(0x24b)](h=>P['includes'](h));else throw new RunnerError(j7(0x366)+typeof c+j7(0x5cd));}}async function visible(c,{context:P,stack:h,automator:t,signal:I}){const j8=O;if(isElementDescriptor(c)){const K=await evaluateExpression(c,{'context':P,'stack':h,'automator':t,'signal':I}),j=await P['axOps'][j8(0x35e)](K,{'stack':h,'signal':I});if(!j)return![];const {ratio:z=0x1}=await j[j8(0x27f)][j8(0x4fe)]();return z<=0.5;}else return t instanceof Browser&&!!t[j8(0x103)]?.[j8(0x6c9)];}async function populated(c,{context:P,stack:h,automator:t,signal:I}){const j9=O,K=await evaluateExpression({...c,'type':[c[j9(0x345)]??[],j9(0x571)]['flat']()},{'context':P,'stack':h,'automator':t,'signal':I}),j=await P[j9(0x5f3)][j9(0x35e)](K,{'stack':h,'signal':I});if(!j)return![];return!!await j[j9(0x27f)][j9(0x255)]({'hint':'boolean','acceptFormValue':!![]});}async function clickable(c,{context:P,stack:h,automator:t,signal:I}){const jf=O,K=await evaluateExpression(c,{'context':P,'stack':h,'automator':t,'signal':I}),j=await P[jf(0x5f3)][jf(0x35e)](K,{'stack':h,'signal':I});if(!j)return![];return await j[jf(0x27f)][jf(0x5c4)]()??![];}async function enabled(c,{context:P,stack:h,automator:t,signal:I}){const jb=O,K=await evaluateExpression(c,{'context':P,'stack':h,'automator':t,'signal':I}),j=await P[jb(0x5f3)][jb(0x35e)](K,{'stack':h,'signal':I});if(!j)return![];return!j[jb(0x348)][jb(0x782)]&&!j[jb(0x348)][jb(0x581)];}async function hovered(c,{context:P,stack:h,automator:t,signal:I}){const jn=O,K=await evaluateExpression(c,{'context':P,'stack':h,'automator':t,'signal':I}),j=await P[jn(0x5f3)]['findNode'](K,{'stack':h,'signal':I});if(!j)return![];return await j[jn(0x27f)]['isHovered']()??![];}async function checked(c,P,{context:h,stack:t,automator:I,signal:K}){const jH=O,j=await evaluateExpression({'type':jH(0x657),...c},{'context':h,'stack':t,'automator':I,'signal':K}),z=await h[jH(0x5f3)]['findNode'](j,{'stack':t,'signal':K});if(!z)return![];return await z[jH(0x27f)][jH(0x255)]({'hint':jH(0x560)})===P;}async function evaluateExpression(c,{context:P,stack:h,automator:t,timeout:I,signal:K}){return j(c);async function j(z){const jo=n;if(isReference(z)){const R=z,G=R[jo(0x364)]??jo(0x6d2);if(!(R[jo(0x3d8)][jo(0x1d1)]()in P[jo(0x364)][G]))throw new RunnerError(jo(0x572)+R[jo(0x3d8)]+'\x22',{'code':ErrorCode[jo(0x38d)],'ref':R});const p=h[jo(0x22a)](R),Z=P[jo(0x364)][G][R['name'][jo(0x1d1)]()],Q=await(R['modifiers']??[])[jo(0x472)](async(k,a)=>{const jW=jo;let N=await k;if('get'in a){const T=await j(a['get']);if(typeof N===jW(0x4ae)){if(isJsonString(N))N=parseJsonString(N);else{if(isXmlString(N))N=parseXmlString(N);}}if(Array[jW(0x7a2)](N)){if(typeof T==='number'){const S=N['at'](T);if(S===void 0x0)throw new RunnerError(jW(0x7e1)+T,{'code':ErrorCode[jW(0x38d)],'ref':R});return S;}}else{if(N&&typeof N===jW(0xf4)){const V=await N[Symbol[jW(0x80c)]('get')]?.(T)??N[T];if(V===void 0x0)throw new RunnerError(jW(0x6be)+T+'\x22',{'code':ErrorCode['UNRESOLVED_REF'],'ref':R});return V;}}throw new RunnerError(jW(0x37b)+stringifyJson(N)+jW(0x4b9),{'code':ErrorCode[jW(0x38d)],'ref':R});}else{if(jW(0x757)in a){const D=stringify(N),m=await j(a[jW(0x757)]);let F=null;if(typeof m===jW(0x3e7)){const E=m(D);E&&(F=[E],F[jW(0x3a1)]=D[jW(0x536)](E),F[jW(0x3f6)]=D);}else F=D[jW(0x757)](m);if(!F)throw new RunnerError(jW(0x4b8)+(typeof m===jW(0x3e7)?jW(0x763):'/'+m[jW(0x35b)]+'/')+jW(0x6a6)+D+'\x22',{'code':ErrorCode[jW(0x38d)],'ref':R});return F[jW(0x1d0)]?{...F[jW(0x1d0)]}:F['length']===0x1?F[0x0]:F[jW(0x1b6)](0x1);}else return N;}},Promise[jo(0xb3)](Z[jo(0x6df)]));return p(R[jo(0x345)]===jo(0x4ae)?stringify(Q):Q,{'secret':Z['secret']});}else{if(isJSExpressionReference(z))return await evaluateJSExpression(z['expression'],{'context':P,'stack':h,'automator':t,'signal':K});else{if(isInterpolatedString(z))return(await Promise[jo(0x630)](z[jo(0x7ba)]['map'](async k=>isReference(k)||isJSExpressionReference(k)?j(k):k)))[jo(0x44e)]('');else{if(isJSExpression(z))return(await Promise[jo(0x630)](z[jo(0x7ba)][jo(0x205)](async k=>isReference(k)||isJSExpressionReference(k)?stringifyJSLiteral(await j(k)):k)))['join']('');else{if(isPattern(z))return'name'in z?getPatternMatcher(z[jo(0x3d8)]):new RegExp(z['pattern'],z['flags']);else{if(isStructure(z)){if(z[jo(0x345)]===jo(0x3d3))return Promise[jo(0x630)](z['items'][jo(0x205)](async k=>j(k)));else return Object['fromEntries'](await Promise[jo(0x630)](z[jo(0x3c4)]['map'](async({key:k,value:a})=>[await j(k),await j(a)])));}else{if(isElementDescriptor(z))return h[jo(0x40e)](z)({...z,...jo(0x574)in z?{'nth':await j(z['nth'])}:{},...'title'in z&&!isPattern(z[jo(0x81c)])?{'title':await j(z[jo(0x81c)])}:{},...jo(0x435)in z?{'color':await j(z[jo(0x435)])}:{},...jo(0x434)in z&&z[jo(0x434)]?.[jo(0x434)]?{'selector':{...z[jo(0x434)],'selector':await j(z['selector'][jo(0x434)])}}:{},...jo(0x718)in z&&z[jo(0x718)]?{'anchor':Array[jo(0x7a2)](z[jo(0x718)])?await Promise[jo(0x630)](z['anchor'][jo(0x205)](async k=>({...k,'element':k[jo(0x807)]&&await j(k['element'])}))):{...z[jo(0x718)],'element':z[jo(0x718)][jo(0x807)]&&await j(z[jo(0x718)][jo(0x807)])}}:{},...jo(0x58e)in z?{'fallback':await j(z['fallback'])}:{}});else{if(isExpressionOperation(z)){const k=h[jo(0x731)](z),a=await z[jo(0x674)][jo(0x472)](async(N,T)=>{const S=await N;return S['push'](await evaluateOperand(T,{'context':P,'stack':h,'automator':t,'signal':K})),S;},Promise['resolve']([]));if(z['operator']===jo(0x5a4))return k(sizeOf(a[0x0]));else{if(z[jo(0x11c)]==='keys')return k(keysOf(a[0x0]));else{if(z[jo(0x11c)]==='values')return k(valuesOf(a[0x0]));else{if(z['operator']==='entries')return k(entriesOf(a[0x0]));else{if(z[jo(0x11c)]===jo(0x22d))return k(a[0x0]+a[0x1]);else{if(z[jo(0x11c)]==='sub')return k(a[0x0]-a[0x1]);else{if(z['operator']==='div')return k(a[0x0]/a[0x1]);else{if(z[jo(0x11c)]===jo(0x4d3))return k(a[0x0]*a[0x1]);else throw new RunnerError(jo(0x17d));}}}}}}}}else{if(isCondition(z))return evaluateCondition(z,{'context':P,'stack':h,'automator':t,'signal':K});else{if(isExtractor(z)){const N=await extractValue(z,{'context':P,'stack':h,'automator':t,'timeout':I,'signal':K});if(N===null)throw new RunnerError(jo(0x723),{'code':ErrorCode[jo(0x71f)]});return N;}else{if(isOTP(z)){if(!P[jo(0x387)]['generateOTP'])throw new RunnerError(jo(0x1bf),{'code':ErrorCode[jo(0x206)]});const T=h[jo(0x689)](z),S=await j(z['user']);return T(await P[jo(0x387)][jo(0x692)](S));}else{if(isFileHandle(z)){const V=await j(z[jo(0x499)]);try{return await P[jo(0x387)][jo(0x262)]?.(V)??V;}catch{return V;}}else{if(isRandomValue(z)){const D=h['generator'](z);if(z[jo(0x345)]===jo(0x73c))return D(Math[jo(0x56f)]());else{if(!P[jo(0x387)][jo(0x826)])throw new RunnerError(jo(0x13e),{'code':ErrorCode[jo(0x206)]});return D(await P[jo(0x387)]['generateRandomValue']({...z,'description':z[jo(0x153)]?await j(z['description']):void 0x0}));}}else return z;}}}}}}}}}}}}}}var InstructionExecutionStartedEvent=class extends ProgressEvent{[O(0x766)];[O(0x395)]=![];constructor({preStep:c}={}){const jv=O;super(),this[jv(0x766)]=c?jv(0x2a6):jv(0x46d);}},InstructionExecutionFinishedEvent=class extends ProgressEvent{[O(0x766)];[O(0x395)]=!![];constructor({preStep:c}={}){const jw=O;super(),this[jw(0x766)]=c?'runningPreStepInstruction':jw(0x46d);}},ActionExecutionStartedEvent=class extends ProgressEvent{['status']='runningAction';[O(0x395)]=![];},ActionExecutionFinishedEvent=class extends ProgressEvent{[O(0x766)]=O(0x7b4);[O(0x395)]=!![];},AXNodeSearchStartedEvent=class extends ProgressEvent{[O(0x766)]='searchingForElement';[O(0x395)]=![];['descriptor'];constructor({descriptor:c}){const jc=O;super(),this[jc(0x40e)]=c;}},AXNodeSearchFinishedEvent=class extends ProgressEvent{['status']=O(0x196);['done']=!![];[O(0x40e)];[O(0x27f)];constructor({descriptor:c,node:P}){const jP=O;super(),this[jP(0x40e)]=c,this[jP(0x27f)]=P;}},NavigationWaitStartedEvent=class extends ProgressEvent{[O(0x766)]='waitingForNavigation';[O(0x395)]=![];},NavigationWaitFinishedEvent=class extends ProgressEvent{['status']='waitingForNavigation';[O(0x395)]=!![];},LoadWaitStartedEvent=class extends ProgressEvent{[O(0x766)]=O(0x3d0);[O(0x395)]=![];},LoadWaitFinishedEvent=class extends ProgressEvent{[O(0x766)]=O(0x3d0);[O(0x395)]=!![];},OutgoingRequestsWaitStartedEvent=class extends ProgressEvent{[O(0x766)]=O(0x58d);['done']=![];},OutgoingRequestsWaitFinishedEvent=class extends ProgressEvent{['status']=O(0x58d);[O(0x395)]=!![];},StabilizationWaitStartedEvent=class extends ProgressEvent{['status']='waitingForStabilization';[O(0x395)]=![];},StabilizationWaitFinishedEvent=class extends ProgressEvent{[O(0x766)]=O(0x810);[O(0x395)]=!![];};function makeValuesStack(){return new ValuesStack();}var ValuesStack=class{#id=0x1;#pending=new Set();#items=new Map();#entities=new Map();#relations=new Map();#item(c,P,h,t){const jh=O,I=this.#id++;if(h)return this.#add(I,{'type':c,'entity':P,'value':h,...t});else return this.#pending[jh(0x22d)](I),this.#relations[jh(0x4c1)](I,[]),(K,j)=>{return this.#pending['delete'](I),this.#add(I,{'type':c,'entity':P,'value':K,...j});};}#add(c,P){const jt=O;this.#items[jt(0x4c1)](c,P),this.#pending[jt(0x7fe)](t=>this.#relations[jt(0x67a)](t)[jt(0x3a6)](c));let h=this.#entities[jt(0x67a)](P['entity']);if(!h)this.#entities[jt(0x4c1)](P[jt(0x1b4)],h=[]);return h['push'](c),P[jt(0x6df)];}*#related(c,P){const jI=O;for(const h of[c,...this.#relations[jI(0x67a)](c)??[]]){const t=this.#items['get'](h);if(t&&(!P||P===t[jI(0x345)]))yield t;}}[O(0x40e)](c,P){const jK=O;return P?this.#item('descriptor',c,P):this.#item(jK(0x40e),c);}[O(0x27f)](c,P){const jj=O;return P?this.#item(jj(0x27f),c,P):this.#item(jj(0x27f),c);}[O(0x22a)](c,P,h){const jz=O;return P?this.#item(jz(0x22a),c,P,h):this.#item(jz(0x22a),c);}[O(0x4c2)](c,P,h){const jR=O;return P?this.#item(jR(0x4c2),c,P,h):this.#item(jR(0x4c2),c);}[O(0x689)](c,P,h){const jG=O;return P?this.#item('generator',c,P,h):this.#item(jG(0x689),c);}[O(0x23f)](c,P,h){const jp=O;return P?this.#item('operand',c,P,h):this.#item(jp(0x23f),c);}[O(0x731)](c,P){const jg=O;return P?this.#item('operation',c,P):this.#item(jg(0x731),c);}['nodeFor'](c,P){const jZ=O,h=this.#entities[jZ(0x67a)](c)?.['find'](t=>this.#items[jZ(0x67a)](t)?.[jZ(0x6df)]===P);if(h)return Array[jZ(0x37c)](this.#related(h,'node'))[0x0]?.['value'];}['isSecret'](c){const jQ=O;if(isReference(c)){const [P]=this.#entities['get'](c)??[];if(P)return Array[jQ(0x37c)](this.#related(P,jQ(0x22a)))[0x0]?.[jQ(0x47f)];}else{if(isInterpolatedString(c))return c['chunks'][jQ(0x649)](h=>this[jQ(0xb4)](h));else{if(isStructure(c)){if(c[jQ(0x345)]===jQ(0x3d3))return c['items'][jQ(0x649)](h=>this[jQ(0xb4)](h));else return c[jQ(0x3c4)][jQ(0x649)](h=>this[jQ(0xb4)](h[jQ(0x509)])||this[jQ(0xb4)](h[jQ(0x6df)]));}}}}*[O(0x492)](c){const jk=O;if(c){const P=this.#entities['get'](c)??[];for(const h of P)for(const {value:t}of this.#related(h,'descriptor'))yield t;}else{for(const {type:I,value:K}of this.#items[jk(0x3bd)]())if(I===jk(0x40e))yield K;}}*[O(0x299)](c){const ja=O;if(c){const P=this.#entities['get'](c)??[];for(const h of P)for(const {entity:t,value:I}of this.#related(h,'node'))yield{'node':I,'descriptor':t};}else{for(const {type:K,entity:j,value:z}of this.#items[ja(0x3bd)]())if(K==='node')yield{'node':z,'descriptor':j};}}*[O(0x496)](){const jN=O;for(const {type:c,entity:P,value:h,...t}of this.#items[jN(0x3bd)]())if(c===jN(0x22a))yield{'reference':P,'value':h,...t};}*['extractors'](){const jT=O;for(const [c,{type:P,entity:h,value:t,...I}]of this.#items[jT(0xde)]())if(P===jT(0x4c2))yield{'extractor':h,'value':t,'element':Array['from'](this.#related(c,jT(0x27f)))[0x0]?.[jT(0x1b4)],...I};}*[O(0x674)](){const jS=O;for(const [c,{type:P,entity:h,value:t,...I}]of this.#items['entries']())if(P==='operand')yield{'operand':h,'value':t,'element':Array['from'](this.#related(c,jS(0x27f)))[0x0]?.[jS(0x1b4)],...I};}};const PDF_STATE={'ready':O(0x686),'error':O(0x5aa),'currentPage':'data-nlp-pdf-current-page','isolate':O(0x67f),'isolatedPage':'data-nlp-pdf-isolated-page'},PDF_BYTES_PLACEHOLDER=O(0x45d);function isPdfViewerFrame(c){const jV=O;return Object[jV(0xde)](c[jV(0x12b)]?.[jV(0x5e5)]??{})[jV(0x649)](([P])=>P[jV(0x1d1)]()===jV(0x2c8));}async function waitForReady(c,P=0x4e20){const jE=O;return c['defaultExecute'](async(h,t,I)=>{const jD=n,K=document[jD(0x102)];function j(){const jm=jD;return K[jm(0x130)](h)===jm(0x7d0)||K[jm(0x130)](t)!=null;}if(j())return;await new Promise(z=>{const jF=jD;function R(){const jr=n;G[jr(0x47d)](),clearTimeout(p),z();}const G=new MutationObserver(()=>j()&&R());G[jF(0x1ed)](K,{'attributes':!![],'attributeFilter':[h,t]});const p=setTimeout(R,I);});},[PDF_STATE[jE(0x804)],PDF_STATE[jE(0x73d)],P],{'await':!![]});}var Handler=class extends EventTargetNode{#captures={};#controller=new AbortController();#stack=makeValuesStack();#metrics;[O(0xb9)];['context'];['instruction'];[O(0x419)];[O(0x569)];['shouldNotThrowOnUnexpectedNavigationStatus'];[O(0x70e)];get[O(0x5f6)](){const je=O;return this[je(0x66a)];}get[O(0x7f0)](){return this.#stack;}get[O(0x1ce)](){return this.#metrics;}get[O(0x288)](){const jX=O;return this[jX(0x7c7)][jX(0x364)][jX(0xe6)]['findTimeout']?.['value']??this[jX(0x7c7)]['scope'][jX(0xe6)][jX(0x2a7)]?.['value'];}get[O(0x3a5)](){const ji=O;return this[ji(0x7c7)]['scope'][ji(0xe6)][ji(0x3a5)]?.[ji(0x6df)]??this[ji(0x7c7)][ji(0x364)]['internal'][ji(0x2a7)]?.[ji(0x6df)];}get[O(0x5da)](){const jL=O;return this['context']['scope'][jL(0xe6)][jL(0x5da)]?.[jL(0x6df)]??this[jL(0x7c7)]['scope'][jL(0xe6)][jL(0x2a7)]?.[jL(0x6df)];}get['screenshotTimeout'](){const jA=O;return this[jA(0x7c7)][jA(0x364)][jA(0xe6)][jA(0x4cd)]?.[jA(0x6df)]??this['context'][jA(0x364)][jA(0xe6)]['timeout']?.[jA(0x6df)];}constructor({automator:c,context:P,instruction:h,signal:t,shouldCapture:I,shouldNotThrowOnUnexpectedNavigationStatus:K,expectedNavigationStatuses:j}){const jY=O;super(),this.#metrics={'platform':c['type']},this['automator']=c,this[jY(0x7c7)]=P,this[jY(0x66a)]=h,this[jY(0x419)]=t?AbortSignal[jY(0x218)]([this.#controller['signal'],t]):this.#controller[jY(0x419)],this['shouldCapture']=I??![],this[jY(0x7a7)]=K??![],this[jY(0x70e)]=j??[];}['abort'](c){const jU=O;this.#controller[jU(0x48a)](c??new RunnerError('The\x20instruction\x20was\x20aborted\x20before\x20it\x20got\x20to\x20finish',{'core':ErrorCode[jU(0x159)]}));}[O(0x77e)](){const js=O;this[js(0x419)][js(0x77e)]();}[O(0x644)](c){const jx=O;if(!c)throw new RunnerError(jx(0x723),{'code':ErrorCode[jx(0x71f)]});}['throwIfBlocked'](){const jB=O;if(this['automator']instanceof Browser&&this[jB(0xb9)][jB(0x103)][jB(0x6c9)]&&this['automator'][jB(0x103)][jB(0x6c9)][jB(0x345)]!==jB(0x4e5))throw new RunnerError(jB(0x2b0),{'code':ErrorCode['UNHANDLED_DIALOG']});}['throwIfExceededAllowedTimeout'](c){const ju=O,P=this[ju(0x7c7)][ju(0x364)][ju(0xe6)][ju(0x53c)]?.['value']??0x1d4c0;if(c>P)throw new RunnerError(ju(0x1f2)+c+ju(0x36c)+P+'ms',{'code':ErrorCode[ju(0x181)],'timeout':c});}async[O(0x4ef)](c){const jd=O;if(!c||!await c[jd(0x168)]())throw new RunnerError(jd(0x26b),{'code':ErrorCode[jd(0x139)]});}async[O(0x64d)](){const jM=O;let c;try{if(this[jM(0xb9)]instanceof Browser&&this[jM(0x3a5)])this['automator'][jM(0x3a5)]=this[jM(0x3a5)];const I=performance[jM(0x133)]();await this[jM(0x516)]('basic'),this.#metrics['stabilizeMs']=performance[jM(0x133)]()-I;const K=performance[jM(0x133)]();c=await this[jM(0x74f)](),this.#metrics['handleMs']=performance[jM(0x133)]()-K;}catch(j){if(j instanceof StaleNodeError||j instanceof StaleRemoteObjectHandleError)return log(jM(0x2e5),{'error':j}),this.#metrics={'platform':this[jM(0xb9)][jM(0x345)]},this[jM(0x64d)]();else{if(j instanceof FlushError)log(jM(0x2b7),{'error':j}),c={'status':jM(0x679),'meta':{'reason':j[jM(0x7a9)]}};else{if(j instanceof AutomatorError){error(jM(0x5d5),{'error':j});const {code:z,meta:R}=translateAutomatorError(j);c={'status':jM(0x73d),'error':j['message'],'code':z,'meta':R};}else{if(j instanceof RunnerError)error(jM(0x59d),{'error':j}),c={'status':jM(0x73d),'error':j[jM(0x7a9)],'code':j[jM(0x24c)],'meta':j[jM(0x573)]};else this[jM(0x419)][jM(0x351)]&&(j[jM(0x24c)]===jM(0x1b8)||j===this[jM(0x419)][jM(0x23a)])?(error(jM(0x4af),{'error':j}),c={'status':jM(0x351),'meta':{'reason':j[jM(0x11f)]?.[jM(0x7a9)]??j[jM(0x7a9)]}}):(error(jM(0x69c),{'error':j}),c={'status':jM(0x73d),'error':j['message']??'unknown\x20error','code':ErrorCode['INTERNAL'],'meta':{'original':j}});}}}if(!Object[jM(0x37e)](this.#captures,jM(0x4d2))&&c['status']!==jM(0x351))await this[jM(0x4d2)]();}const P=new Map(Array[jM(0x37c)](this.#stack[jM(0x496)](),({reference:G,value:p,...Z})=>[G,{'value':p,...Z}])),h=new Map(Array[jM(0x37c)](this.#stack[jM(0x48f)](),({extractor:G,value:p,element:Z,...Q})=>[G,{'value':p,'element':Z,...Q}])),t=new Map(Array['from'](this.#stack[jM(0x674)](),({operand:G,value:p,element:Z,...Q})=>[G,{'value':p,'element':Z,...Q}]));return{...c,...this.#captures,'values':{'references':P,'extractors':h,'operands':t},'metrics':this.#metrics};}async[O(0x516)](c=O(0x45e)){const jq=O;await this[jq(0xb9)][jq(0x516)](c,{'signal':this[jq(0x419)],'timeout':this[jq(0x4cd)]});if(this[jq(0xb9)]instanceof Browser){if(isPdfViewerFrame(this['automator']['activePage']['mainFrame']))await waitForReady(this['automator']['activePage'][jq(0x12d)]);}}async[O(0x814)](c){const jJ=O;return evaluateExpression(c,{'context':this[jJ(0x7c7)],'stack':this.#stack,'automator':this[jJ(0xb9)],'timeout':this[jJ(0x288)]??0x2710,'signal':this['signal']});}async['element'](c){const jy=O,P=await this[jy(0x7c7)][jy(0x5f3)][jy(0x35e)](await this[jy(0x814)](c),{'stack':this.#stack,'timeout':this[jy(0x288)]??0x2710,'signal':this[jy(0x419)],'metrics':this.#metrics});if(P)this[jy(0x2db)](new HandlerAXNodeFoundEvent(P));return P;}async[O(0x106)](){const jl=O;if(!this[jl(0x569)])return;try{await this[jl(0xb9)][jl(0x516)]('basic',{'signal':this[jl(0x419)]});if(this[jl(0xb9)][jl(0x1e1)])return;const c=await this[jl(0xb9)][jl(0x450)](),P=((async()=>{const jC=jl;try{return await this['automator']['activePage']?.[jC(0x12d)][jC(0x14f)](()=>({'width':innerWidth,'height':innerHeight,'scrollX':scrollX,'scrollY':scrollY}));}catch{return;}})());return{'image':c,'elements':await Array[jl(0x37c)](this.#stack['nodes']())[jl(0x472)](async(h,{node:t,descriptor:I})=>{const jO=jl;try{if(t===t[jO(0x77a)][jO(0x25b)])return await h;const K=await t['node'][jO(0x27d)](),j=await t['node'][jO(0x2b1)]();return await h[jO(0x311)](z=>z[jO(0x19d)]({'region':K,'descriptor':I,'label':j}));}catch(z){return error(jO(0x39f),{'error':z}),h;}},Promise[jl(0xb3)]([])),'viewport':await P};}catch(h){error(jl(0x491),{'error':h});}}async[O(0x529)](){const z0=O;bus[z0(0x2db)](new ActionExecutionStartedEvent()),this.#captures[z0(0x529)]=await this[z0(0x106)]();}async['after'](){const z1=O;this.#captures[z1(0x4d2)]=await this['capture'](),bus['dispatch'](new ActionExecutionFinishedEvent());}},HandlerAXNodeFoundEvent=class extends Event{[O(0x27f)];constructor(c,P){const z2=O;super(z2(0x413),P),this[z2(0x27f)]=c;}},AssertHandler=class extends Handler{async['handle'](){const z3=O;await this['stabilize'](),await this[z3(0x529)]();const c=await this[z3(0x814)](this['action'][z3(0x2a7)])??this[z3(0x288)]??0x7530,P=Date[z3(0x133)]();let h=0x0,t=!![];const I=setTimeout(()=>t=![],c);do{this[z3(0x77e)](),++h;try{if(await this[z3(0x814)](this[z3(0x5f6)][z3(0x29a)]))return clearTimeout(I),log(z3(0x201),{'passed':!![],'attempts':h,'durationMs':Date[z3(0x133)]()-P,'condition':this[z3(0x5f6)][z3(0x29a)]}),await this[z3(0x4d2)](),{'status':z3(0x2e4)};else{if(Array[z3(0x37c)](this[z3(0x7f0)][z3(0x492)](this[z3(0x5f6)][z3(0x29a)][z3(0x731)]))[z3(0x67b)]===0x0){clearTimeout(I);break;}}}catch(K){if(!t||this[z3(0x419)][z3(0x351)])throw K;}await sleep(0x3e8,{'signal':this[z3(0x419)]});}while(t);log(z3(0x201),{'passed':![],'attempts':h,'durationMs':Date[z3(0x133)]()-P,'condition':this[z3(0x5f6)]['condition']}),await this[z3(0x4d2)]();throw new RunnerError('Assertion\x20failed',{'code':ErrorCode[z3(0xc3)]});}},EmptyHandler=class extends Handler{async[O(0x74f)](){const z4=O;return await this[z4(0x516)](),await this['before'](),await this[z4(0x4d2)](),{'status':'empty'};}};function makeUrlData(c){const z5=O,P=new URL(c);return{'href':c,'protocol':P[z5(0x2bd)][z5(0x2d0)](/:$/,''),'user':P[z5(0x51f)],'password':P[z5(0x728)],'host':P[z5(0x72c)],'hostname':P[z5(0x469)],'port':P['port'],'path':P[z5(0x2b9)],'query':P[z5(0x454)],'anchor':P[z5(0x3c7)],[Symbol['for'](z5(0x38b))](){return c;}};}var FetchHandler=class extends Handler{async[O(0x74f)](){const z6=O;await this[z6(0x516)](),await this[z6(0x529)]();const c={'headers':new Set(),'cookies':new Set(),'body':![]},P=await this[z6(0x814)](this[z6(0x5f6)][z6(0x54a)]);let h=this[z6(0x5f6)]['method']?.['toUpperCase']();if(!h&&this[z6(0x5f6)][z6(0x482)])h='POST';const t=new Request(P,{'method':h});if(this[z6(0x5f6)]['headers'])for(const p of this['action'][z6(0x5e5)]){const Z=await this[z6(0x814)](p[z6(0x3d8)]);if(!/^[a-zA-Z0-9_-]+$/[z6(0x63b)](Z))throw new RunnerError(z6(0x5b9)+Z+'\x22\x20is\x20malformed,\x20it\x20contains\x20illegal\x20characters',{'code':ErrorCode[z6(0x36d)],'header':p});const Q=await this[z6(0x814)](p[z6(0x6df)]);if(!/^[a-zA-Z0-9 :;.,\\/"'?!(){}[\]@<>=+*#$&`|~^%_-]+$/[z6(0x63b)](Q))throw new RunnerError('The\x20header\x20value\x20\x22'+Q+z6(0x4b5),{'code':ErrorCode[z6(0x36d)],'header':p});const k=p[z6(0x47f)]||this[z6(0x7f0)]['isSecret'](p[z6(0x6df)]);t[z6(0x5e5)][z6(0x712)](Z,Q);if(k)c['headers']['add'](Z[z6(0x1d1)]());}let I;if(this['action']['body']){const a=await this[z6(0x814)](this['action']['body']['data']);c[z6(0x482)]=this[z6(0x7f0)][z6(0xb4)](this[z6(0x5f6)][z6(0x482)]['data'])??![];let N=this[z6(0x5f6)][z6(0x482)]['type'];if(!N){if(typeof a===z6(0x4ae)){if(isJsonString(a))N=z6(0x167);else{if(isXmlString(a))N=z6(0x5b5);}}else N=z6(0x167);}if(N===z6(0x7c2)){if(typeof a!=='string'||!isBase64String(a))throw new RunnerError('Body\x20is\x20not\x20of\x20base64\x20format');I=new Uint8Array(v[z6(0x37c)](a,z6(0x7c2)));}else{if(N===z6(0x5b5)){if(typeof a!=='string'){if(a&&typeof a===z6(0xf4)&&!Array[z6(0x7a2)](a))I=stringifyXml(a);else throw new RunnerError(z6(0x1a7));}else I=a;if(!t[z6(0x5e5)][z6(0x5ab)]('Content-Type'))t[z6(0x5e5)][z6(0x4c1)]('Content-Type',z6(0x360));}else{I=typeof a!==z6(0x4ae)?stringifyJson(a):a;if(N===z6(0x167)&&!t['headers'][z6(0x5ab)](z6(0x751)))t[z6(0x5e5)]['set'](z6(0x751),z6(0x59f));}}}if(this[z6(0x5f6)][z6(0x5dc)]){if(this[z6(0x5f6)][z6(0x5dc)][z6(0x345)]===z6(0x7b2)){const T=await this[z6(0x814)](this['action'][z6(0x5dc)]['username']),S=await this[z6(0x814)](this['action']['auth'][z6(0x728)]),V='Authorization';t[z6(0x5e5)][z6(0x4c1)](V,z6(0x6f4)+v[z6(0x37c)](T+':'+S)[z6(0x349)](z6(0x7c2))),c['headers'][z6(0x22d)](V['toLowerCase']());}}if(this[z6(0x5f6)][z6(0x217)]){const D=[];for(const F of this['action']['cookies']){const E=await this[z6(0x814)](F['name']);if(/=/[z6(0x63b)](E))throw new RunnerError(z6(0x604)+E+z6(0x4b5),{'code':ErrorCode['MALFORMED_COOKIE'],'cookie':F});const e=await this[z6(0x814)](F[z6(0x6df)]),X=F['secret']||this[z6(0x7f0)]['isSecret'](F[z6(0x6df)]);D[z6(0x3a6)](E+'='+e);if(X)c[z6(0x217)][z6(0x22d)](E);}const m=z6(0xc5);t['headers']['set'](m,D[z6(0x44e)](';\x20'));if(c['cookies'][z6(0x5a4)]>0x0)c[z6(0x5e5)][z6(0x22d)](m[z6(0x1d1)]());}const K={'url':makeUrlData(t[z6(0x54a)]),'headers':j(t['headers']),'cookies':z(t[z6(0x5e5)]),...I&&{'body':{'value':I,'secret':c[z6(0x482)]}}};try{const i=await W(t,{'body':I,'dispatcher':this[z6(0x7c7)][z6(0x28d)]}),L={'status':i[z6(0x766)],'statustext':i[z6(0x6e0)],'body':await G(i),'headers':j(i[z6(0x5e5)]),'cookies':R(i[z6(0x5e5)]),[Symbol['for'](z6(0x67a))](A){const z7=z6;if(A==='body')return this[z7(0x482)]['value'];else return this[A];},[Symbol[z6(0x80c)]('stringify')](){const z8=z6;return this[z8(0x482)][z8(0x6df)];}};this['context'][z6(0x364)][z6(0x6d2)]['response']={'value':L};if(this['action'][z6(0x670)]?this[z6(0x5f6)][z6(0x670)]!=='*'&&!this[z6(0x5f6)][z6(0x670)][z6(0x1d9)](L[z6(0x766)]):L[z6(0x766)]<0xc8||L['status']>0x12b)throw new RunnerError('The\x20request\x20to\x20url\x20\x22'+P+z6(0x383)+L[z6(0x766)],{'code':ErrorCode[z6(0x4c5)],'status':L[z6(0x766)],'response':L,'request':K});return await this[z6(0x4d2)](),{'status':z6(0xd2),'meta':{'response':L,'request':K}};}catch(A){if(A[z6(0x7a9)]===z6(0x7ab))throw new RunnerError(z6(0x142),{'code':ErrorCode[z6(0x61b)],'request':K,'cause':A['cause']});else throw A;}function j(Y){const z9=z6,U={[Symbol[z9(0x80c)](z9(0x67a))](s){const zf=z9;return this[s[zf(0x1d1)]()][zf(0x6df)];}};return Y[z9(0x7fe)]((s,B)=>{const zb=z9;U[B]={'value':s,'secret':c[zb(0x5e5)][zb(0x5ab)](B)};}),U;}function z(Y){const zn=z6,U={[Symbol[zn(0x80c)]('get')](s){const zH=zn;return this[s][zH(0x6df)];}};return(Y[zn(0x67a)](zn(0xc5))?.[zn(0x744)](';')??[])['forEach'](s=>{const zo=zn,[B,u]=s[zo(0x744)](/=(.+)/);U[B]={'value':u,'secret':c[zo(0x217)]['has'](B)};}),U;}function R(Y){const zW=z6,U={[Symbol[zW(0x80c)](zW(0x67a))](s){const zv=zW;return this[s][zv(0x6df)];}};return Y[zW(0x685)]()[zW(0x7fe)](s=>{const zw=zW,[B,u]=s[zw(0x744)](/=(.+)/);U[B]={'value':u,'secret':c[zw(0x217)][zw(0x5ab)](B)};}),U;}async function G(Y){const zc=z6,U=await Y[zc(0x532)]();if(U){const s=Y['headers'][zc(0x67a)](zc(0x751));if(s?.['includes'](zc(0x290)))return{'value':{...parseJsonString(U),[Symbol[zc(0x80c)]('stringify')]:()=>U},'secret':![]};else{if(s?.[zc(0x1d9)](zc(0x3d9)))return{'value':{...parseXmlString(U),[Symbol[zc(0x80c)](zc(0x38b))]:()=>U},'secret':![]};}}return{'value':U,'secret':![]};}}},InitializeScopeHandler=class extends Handler{async[O(0x74f)](){const zP=O;return await this[zP(0x516)](),await this[zP(0x529)](),this[zP(0x7c7)][zP(0x364)]['initialize']({'input':await(this[zP(0x66a)][zP(0x11a)]??[])[zP(0x472)](async(c,{name:P,value:h,secret:t})=>{const zh=zP;return c[zh(0x311)](async I=>({...I,[P]:{'value':await this[zh(0x814)](h),'secret':t}}));},Promise[zP(0xb3)]({})),'public':{},'internal':{}}),this[zP(0x7c7)]['scope'][zP(0xe6)][zP(0x7df)]={'value':this[zP(0x66a)]['options']?.[zP(0x480)]},this[zP(0x7c7)]['scope'][zP(0xe6)][zP(0x698)]={'value':this[zP(0x66a)][zP(0x336)]?.[zP(0x7e7)]},await this['after'](),{'status':'scope\x20initialized','parameters':this['context']['scope'][zP(0x249)]?.[zP(0x3f6)]};}},SetVariableHandler=class extends Handler{async[O(0x74f)](){const zt=O;this[zt(0x72b)](),await this['stabilize'](),await this[zt(0x529)]();const c=this[zt(0x5f6)][zt(0x364)]??zt(0x6d2),P=await this[zt(0x814)](this[zt(0x5f6)][zt(0x3fd)][zt(0x6df)]),h=this['action'][zt(0x3fd)]['secret']||(this[zt(0x7f0)][zt(0xb4)](this[zt(0x5f6)][zt(0x3fd)][zt(0x6df)])??![]);let t;if(this['action'][zt(0x5ac)]){if(Array[zt(0x7a2)](P))t=(K,j)=>P[j];else{if(P!==null&&typeof P==='object')t=K=>P[K];else t=()=>P;}}else t=()=>P;const I=this[zt(0x5f6)][zt(0x5ba)][zt(0x205)]((K,j)=>{const zI=zt,z=K[zI(0x3d8)][zI(0x1d1)](),R=t(K[zI(0x3d8)],j),G=this[zI(0x7c7)]['scope'][c][z],p={'value':R,'secret':h||K[zI(0x47f)]||![]};return this[zI(0x7c7)]['scope'][c][z]=p,{'name':z,'previous':G,'current':p};});return await this['after'](),{'status':zt(0x647),'meta':{'variables':I,'scope':c}};}};async function isolatePdfPage(c){const zK=O,P=c[zK(0x103)]?.[zK(0x12d)];if(!P||!isPdfViewerFrame(P))return noop$1;try{await callViewer(P,zK(0x4d4));}catch(h){return error(zK(0x119),{'error':h}),noop$1;}return async()=>{const zj=zK;await callViewer(P,zj(0x4d0))[zj(0x730)](t=>error(zj(0x32a),{'error':t}));};}async function noop$1(){}function callViewer(c,P){const zz=O;return c[zz(0x719)](h=>globalThis['nlpPdfState']?.[h]?.(),[P]);}var VisualCheckHandler=class extends Handler{async[O(0x74f)](){const zR=O;this[zR(0x72b)](),await this[zR(0x516)](zR(0x52e));const c=await isolatePdfPage(this[zR(0xb9)]);try{return await this[zR(0x529)](),await this['context'][zR(0x387)][zR(0xc7)](),await this['after'](),{'status':zR(0x634)};}finally{await c();}}},WaitHandler=class extends Handler{async['handle'](){const zG=O;await this[zG(0x516)](),await this[zG(0x529)]();const c=await this['evaluate'](this[zG(0x5f6)][zG(0x2a7)]);if(c)this[zG(0x743)](c);if(!this['action'][zG(0x29a)])return await sleep(c??0x3e8,{'signal':this['signal']}),await this[zG(0x4d2)](),{'status':zG(0x6d3)};const P=c??this[zG(0x288)]??0xea60,h=Date[zG(0x133)]();let t=0x0,I=!![];const K=setTimeout(()=>I=![],P);do{this[zG(0x77e)](),++t;try{const j=await this[zG(0x814)](this[zG(0x5f6)][zG(0x29a)]);debug(zG(0x62a),{'conditionMet':Boolean(j),'attempt':t,'elapsedMs':Date[zG(0x133)]()-h,'timeout':P});if(j)return clearTimeout(K),await this[zG(0x4d2)](),{'status':zG(0x6d3)};}catch(z){if(!I||this[zG(0x419)][zG(0x351)])throw z;}await sleep(0x3e8,{'signal':this[zG(0x419)]});}while(I);throw new RunnerError(zG(0x483),{'code':ErrorCode[zG(0x2d7)],'timeout':P,'condition':this[zG(0x5f6)]['condition']});}},DefinePreinstructionsHandler=class extends Handler{async[O(0x74f)](){const zp=O;return{'status':'preinstructions\x20defined','meta':{'preinstructions':this[zp(0x66a)]['type']==='set\x20preinstructions'?this[zp(0x66a)][zp(0x754)]:[]}};}},TryHandler=class extends Handler{async[O(0x74f)](){const zg=O;return{'status':zg(0x2cc),'meta':{'next':this['instruction']['instructions']}};}},IfHandler=class extends Handler{async[O(0x74f)](){const zZ=O;await this[zZ(0x516)](),await this['before']();const c=await this['evaluate'](this['instruction'][zZ(0x29a)]);return await this[zZ(0x4d2)](),{'status':zZ(0x5de),'meta':{'met':c,'next':c?this[zZ(0x66a)]['then']:this[zZ(0x66a)][zZ(0x4f7)]}};}},IntentHandler=class extends Handler{async[O(0x74f)](){const zQ=O;throw new RunnerError(zQ(0x463),{'code':ErrorCode['FORBIDDEN_ACTION']});}};async function tryMakeElementNotObscured(c,{timeout:P,signal:h}){const zk=O,t=await getVisibleElementFromNode(c);if(!t)return;let I=!![];const K=setTimeout(()=>I=![],P);do{await t[zk(0x29c)]();const {isObscured:j,obscuringElement:z}=await t[zk(0xb1)]();if(!j){clearTimeout(K);return;}if(z&&await z[zk(0x14c)](c[zk(0x27f)])){clearTimeout(K);return;}await sleep(0x3e8,{'signal':h});}while(I);throw new RunnerError(zk(0x75f),{'code':ErrorCode['OBSCURED_ELEMENT']});}async function getVisibleElementFromNode(c){const za=O;let P;for(const h of c[za(0x4c7)])if(await h[za(0xbf)]()&&await h[za(0x14f)](t=>t instanceof Element)){P=h;break;}if(!P){if(!c['parent'])return;return getVisibleElementFromNode(c[za(0x64f)]);}return P;}var CheckHandler$1=class extends Handler{async[O(0x74f)](){const zN=O;this[zN(0x72b)](),await this[zN(0x516)]();const c=await this['evaluate'](this[zN(0x5f6)]['element']),P=await this[zN(0x807)]({...c,'type':c['type']??zN(0x657)});this[zN(0x644)](P),await tryMakeElementNotObscured(P,{'timeout':this[zN(0x288)]??0x2710,'signal':this['signal']}),await this[zN(0x529)]();const h=await P[zN(0x27f)][zN(0x14f)](t=>{const zT=zN;if(t instanceof Element&&t[zT(0x672)](zT(0x115)))return t[zT(0x130)]('aria-checked')===zT(0x7d0);if(t instanceof HTMLInputElement&&[zT(0x657),'radio'][zT(0x1d9)](t[zT(0x345)]))return t[zT(0x7f5)];return![];});if(typeof this[zN(0x5f6)][zN(0x6df)]!==zN(0x560)||h!==this[zN(0x5f6)]['value'])await P[zN(0x27f)][zN(0x519)]({'simulate':P['type'][zN(0x657)]===0x1||P[zN(0x345)]['radio']===0x1,'signal':this[zN(0x419)]});return this[zN(0x7c7)][zN(0x7ce)]=P[zN(0x27f)],await this[zN(0x4d2)](),{'status':'success'};}},ClickHandler$1=class extends Handler{async[O(0x74f)](){const zS=O;this[zS(0x72b)](),await this[zS(0x516)]();const c=await this['evaluate'](this[zS(0x5f6)]['element']);if(isChromeElementDescriptor(c))return this[zS(0x4d5)](c);else{const P=await this[zS(0x807)]({...c,'state':{...c[zS(0x348)],'active':!![]},'hints':{'type':zS(0x275)}});if(c&&!P?.[zS(0x27f)]){const h=toChromeElementDescriptor(c);if(h)return this[zS(0x4d5)](h);}return this[zS(0x644)](P),this[zS(0x6e2)](P);}}async['handleWithChromeElementDescriptor'](c){const zV=O;await this[zV(0x529)]();if(c[zV(0x81c)]==='refresh')await this[zV(0xb9)]['activePage']['reload']();else{if(c[zV(0x81c)]===zV(0x6c5))await this[zV(0xb9)][zV(0x103)][zV(0x2ec)](-0x1);else{if(c['title']===zV(0x75d))await this[zV(0xb9)]['activePage'][zV(0x2ec)](0x1);}}return await this[zV(0x4d2)](),{'status':zV(0x6d3)};}async['handleWithElement'](c){const zD=O;await tryMakeElementNotObscured(c,{'timeout':this[zD(0x288)]??0x2710,'signal':this[zD(0x419)]}),await this[zD(0x529)]();const {keys:P,button:h,times:t}=this[zD(0x5f6)];if(P)await this[zD(0xb9)]['activePage'][zD(0x47b)][zD(0x624)](P);await c['node'][zD(0x519)]({'simulate':c['type'][zD(0x657)]===0x1||c[zD(0x345)]['radio']===0x1,'signal':this[zD(0x419)],'button':h,'times':t});if(P)await this['automator'][zD(0x103)][zD(0x47b)]['up'](P);return await Promise['all']([c[zD(0x27f)]['frame'][zD(0x2a1)](zD(0x4f3)),w(0x64)]),this[zD(0x7c7)]['activeElement']=c[zD(0x27f)],await this[zD(0x4d2)](),{'status':zD(0x6d3)};}},TypeHandler$1=class extends Handler{async['handle'](){const zm=O;this[zm(0x72b)](),await this[zm(0x516)]();const c=stringify(await this[zm(0x814)](this[zm(0x5f6)]['value']??''));if(isChromeElementDescriptor(this['action'][zm(0x807)]))this['action']['element']['title']===zm(0x54a)&&(await this[zm(0x529)](),await this[zm(0xb9)][zm(0x103)]['navigate'](c),await this[zm(0x4d2)]());else{const P=await this['evaluate'](this['action'][zm(0x807)])??(isOTP(this['action'][zm(0x6df)])?{'type':zm(0x254),'title':zm(0x24c),'fallback':{'state':{'focused':!![]}}}:{'state':{'focused':!![]}}),h=await this['element']({...P,'state':{...P[zm(0x348)],'active':!![]},'type':[P[zm(0x345)]??[],'textbox'][zm(0xdb)]()});this['throwIfNoElement'](h),await tryMakeElementNotObscured(h,{'timeout':this[zm(0x288)]??0x2710,'signal':this[zm(0x419)]}),await this['before']();const t=h[zm(0x27f)];await this['throwIfCannotTypeToElement'](t),await t[zm(0x316)]();if(await t[zm(0x3f2)]())await t[zm(0x543)](zm(0x376));if(c[zm(0x67b)]>=0xc8||/[\n\t]/[zm(0x63b)](c))await this[zm(0xb9)][zm(0x103)][zm(0x47b)][zm(0x693)](c,{'keys':[zm(0x1a8),zm(0x2b4)]});else await this[zm(0xb9)][zm(0x103)][zm(0x47b)][zm(0x345)](c);this['context'][zm(0x7ce)]=t,await this['after']();}return{'status':zm(0x6d3)};}},ClearHandler=class extends Handler{async[O(0x74f)](){const zr=O;this['throwIfBlocked'](),await this[zr(0x516)]();const c=await this[zr(0x814)](this['action']['element'])??{'state':{'focused':!![]}},P=await this[zr(0x807)]({...c,'type':[c['type']??[],zr(0x571)][zr(0xdb)]()});this['throwIfNoElement'](P),await tryMakeElementNotObscured(P,{'timeout':this[zr(0x288)]??0x2710,'signal':this['signal']}),await this[zr(0x529)]();if(P[zr(0x345)]['textbox'])await P[zr(0x27f)][zr(0x316)](),await this[zr(0xb9)][zr(0x103)][zr(0x47b)][zr(0x549)]([zr(0x1a8),'KeyA'],{'commands':[zr(0x166)]}),await this[zr(0xb9)]['activePage']['keyboard'][zr(0x549)](zr(0x233));else{if(P[zr(0x345)][zr(0x657)]){if(await P['node'][zr(0x14f)](h=>h instanceof HTMLInputElement&&h[zr(0x345)]===zr(0x657)&&h[zr(0x7f5)]||h instanceof Element&&h['getAttribute'](zr(0x115))==='true'))await P[zr(0x27f)][zr(0x519)]({'simulate':!![],'signal':this[zr(0x419)]});}else throw new RunnerError('Can\x27t\x20clear\x20the\x20targeted\x20element',{'code':ErrorCode[zr(0x4f2)]});}return this[zr(0x7c7)]['activeElement']=P[zr(0x27f)],await this['after'](),{'status':zr(0x6d3)};}},ScrollHandler$1=class extends Handler{async[O(0x74f)](){const zF=O;this['throwIfBlocked'](),await this['stabilize'](),await this['before']();if(zF(0x446)in this[zF(0x5f6)]){const c=this[zF(0x5f6)][zF(0x807)]?await this[zF(0x814)](this[zF(0x5f6)][zF(0x807)]):{'type':zF(0x45a),'fallback':{'type':zF(0x1cc)}},P=await this[zF(0x807)](isViewportDescriptor(c)?{'type':zF(0x45a),'fallback':{'type':zF(0x1cc)}}:c);this['throwIfNoElement'](P);const h=P[zF(0x27f)];let t,I;if(isViewportDescriptor(c)){const K=await this[zF(0xb9)][zF(0x103)][zF(0x272)]();if(this[zF(0x5f6)][zF(0x446)]===zF(0x3b2))I=0x0,t=0x0;else{if(this[zF(0x5f6)]['position'][zF(0x1d9)](zF(0x576)))I=-(K[zF(0x5cb)]/0x2);else{if(this[zF(0x5f6)]['position'][zF(0x1d9)](zF(0x525)))I=K[zF(0x5cb)]/0x2;}if(this[zF(0x5f6)]['position'][zF(0x1d9)]('left'))t=-(K[zF(0x43b)]/0x2);else{if(this[zF(0x5f6)][zF(0x446)][zF(0x1d9)](zF(0x760)))t=K[zF(0x43b)]/0x2;}}}else{const {scrollX:j,scrollY:z,scrollWidth:R,scrollHeight:G,clientWidth:p,clientHeight:Z}=await h[zF(0x4db)]();if(this[zF(0x5f6)][zF(0x446)][zF(0x1d9)]('center'))t=(R-p)/0x2-j,I=(G-Z)/0x2-z;else{if(this[zF(0x5f6)][zF(0x446)][zF(0x1d9)](zF(0x576)))I=-z;else{if(this[zF(0x5f6)][zF(0x446)]['includes'](zF(0x525)))I=G-Z-z;}if(this[zF(0x5f6)][zF(0x446)][zF(0x1d9)]('left'))t=-j;else{if(this['action']['position'][zF(0x1d9)](zF(0x760)))t=R-p-j;}}}await h[zF(0x530)]({'x':t,'y':I});}else{if('fraction'in this[zF(0x5f6)]){const Q=await this['evaluate'](this[zF(0x5f6)][zF(0xe7)]),k=this['action'][zF(0x807)]?await this[zF(0x814)](this[zF(0x5f6)][zF(0x807)]):{'type':zF(0x45a),'fallback':{'type':zF(0x1cc)}},a=await this[zF(0x807)](isViewportDescriptor(k)?{'type':zF(0x45a),'fallback':{'type':zF(0x1cc)}}:k);this[zF(0x644)](a);const N=a[zF(0x27f)],T=this[zF(0x5f6)]['direction']??zF(0x624),S=await this[zF(0x814)](this['action'][zF(0x2dc)])??0x1,V=isViewportDescriptor(k)?await this[zF(0xb9)]['activePage'][zF(0x272)]():await N[zF(0x4db)]()[zF(0x311)](({scrollWidth:F,scrollHeight:E})=>({'width':F,'height':E}));let D,m;if(T==='up')m=-(V[zF(0x5cb)]*Q);else{if(T===zF(0x624))m=V[zF(0x5cb)]*Q;else{if(T==='left')D=-(V['width']*Q);else{if(T===zF(0x760))D=V[zF(0x43b)]*Q;}}}for(let F=0x0;F<S;++F)await N[zF(0x530)]({'x':D,'y':m});}else{if(zF(0x807)in this[zF(0x5f6)]&&!(zF(0x587)in this[zF(0x5f6)])){const E=this['action'][zF(0x807)]?await this[zF(0x814)](this['action']['element']):{'type':zF(0x45a),'fallback':{'type':zF(0x1cc)}},e=await this[zF(0x807)](E);this[zF(0x644)](e),await tryMakeElementNotObscured(e,{'timeout':this['findTimeout']??0x2710,'signal':this[zF(0x419)]});}else{const X=this['action'][zF(0x587)]??zF(0x624),i=X===zF(0x280)||X===zF(0x760)?zF(0x61f):zF(0x444);let L;if(zF(0x807)in this[zF(0x5f6)]){const u=await this[zF(0x814)]({...this['action'][zF(0x807)],'hints':{'scrollable':i,...this[zF(0x5f6)][zF(0x807)][zF(0x42d)]}});L=await this[zF(0x807)](u);}else L=await this[zF(0x807)]({'type':'scrollable','superlative':'largest','hints':{'scrollable':i},'fallback':{'type':'app'}});this[zF(0x644)](L);const A=L[zF(0x27f)],Y=await this[zF(0x814)](this['action']['times'])??0x1,U=await this[zF(0x814)](this[zF(0x5f6)]['distance']);let s=0x0,B=0x0;if(!U){const d=await this[zF(0xb9)][zF(0x103)]['getViewportSize'](),M=await A[zF(0x4db)](),q=Math[zF(0xca)](M[zF(0x568)],d[zF(0x5cb)]),J=Math[zF(0xca)](M[zF(0x2ff)],d['width']);if(X==='up')B=-q;else{if(X===zF(0x624))B=q;else{if(X===zF(0x280))s=-J;else{if(X==='right')s=J;}}}}else{if(X==='up')B=-U;else{if(X==='down')B=U;else{if(X==='left')s=-U;else{if(X===zF(0x760))s=U;}}}}for(let l=0x0;l<Y;++l)await A['scrollBy']({'x':s,'y':B});}}}return await this['after'](),{'status':zF(0x6d3)};}},FindHandler$1=class extends Handler{async[O(0x74f)](){const zE=O;this['throwIfBlocked'](),await this[zE(0x516)]();const c=await this[zE(0x814)](this[zE(0x5f6)][zE(0x807)]),P=await this[zE(0x807)](c);return this[zE(0x644)](P),await tryMakeElementNotObscured(P,{'timeout':this[zE(0x288)]??0x2710,'signal':this['signal']}),await this[zE(0x529)](),this[zE(0x7c7)][zE(0x7ce)]=P[zE(0x27f)],await this[zE(0x4d2)](),{'status':zE(0x197)};}},FocusHandler$1=class extends Handler{async['handle'](){const ze=O;this[ze(0x72b)](),await this[ze(0x516)]();const c=await this[ze(0x814)](this[ze(0x5f6)][ze(0x807)]),P=await this[ze(0x807)](c);this[ze(0x644)](P),await tryMakeElementNotObscured(P,{'timeout':this[ze(0x288)]??0x2710,'signal':this[ze(0x419)]}),await this['before']();const h=P[ze(0x27f)];if(!await h['focus']())throw new RunnerError('Element\x20is\x20not\x20interactive',{'code':ErrorCode['ELEMENT_NOT_INTERACTIVE']});return this[ze(0x7c7)][ze(0x7ce)]=h,await this[ze(0x4d2)](),{'status':ze(0x6d3)};}},CloseTargetHandler=class extends Handler{async[O(0x74f)](){const zX=O;await this[zX(0x516)](),await this[zX(0x529)]();if(Array[zX(0x37c)](this[zX(0xb9)][zX(0x2d3)]())['length']>0x1)await this[zX(0xb9)]['activePage']['close']();else throw new RunnerError('Can\x27t\x20close\x20the\x20browser\x20tab\x20because\x20it\x20is\x20the\x20only\x20tab',{'code':ErrorCode['CLOSE_LAST_TAB']});return await this[zX(0x4d2)](),{'status':zX(0x6d3)};}},CloseHandler=class extends Handler{async[O(0x74f)](){const zi=O;this['throwIfBlocked'](),await this[zi(0x516)]();const c=await this[zi(0x814)](this[zi(0x5f6)][zi(0x807)]),P=await this[zi(0x807)]({...c,'hints':{'type':c[zi(0x345)]?c[zi(0x345)]:'popup'}});this[zi(0x644)](P);const h=await this['element']({'hints':{'role':zi(0x15c)},'anchor':{'position':zi(0x18c),'element':{'node':P}}});this[zi(0x644)](h),await tryMakeElementNotObscured(h,{'timeout':this['findTimeout']??0x2710,'signal':this[zi(0x419)]}),await this[zi(0x529)]();const t=h['node'],I=Boolean(h[zi(0x345)]['checkbox']||h[zi(0x345)][zi(0x6c8)]);return await t[zi(0x519)]({'simulate':I,'signal':this[zi(0x419)]}),await Promise[zi(0x630)]([t[zi(0x286)][zi(0x2a1)](zi(0x4f3)),w(0x64)]),this[zi(0x7c7)]['activeElement']=t,await this[zi(0x4d2)](),{'status':zi(0x6d3)};}},CreateTargetHandler=class extends Handler{async['handle'](){const zL=O;await this[zL(0x516)](),await this[zL(0x529)]();const c=await this[zL(0x814)](this[zL(0x5f6)][zL(0x54a)]);return await this[zL(0xb9)]['page']({'url':c??void 0x0}),await this[zL(0x4d2)](),{'status':'success'};}},EraseHandler=class extends Handler{async[O(0x74f)](){const zA=O;this[zA(0x72b)](),await this[zA(0x516)]();const c=await this[zA(0x814)](this[zA(0x5f6)]['element'])??{'state':{'focused':!![]}},P=await this[zA(0x807)]({...c,'state':{...c[zA(0x348)],'active':!![]}});this[zA(0x644)](P),await tryMakeElementNotObscured(P,{'timeout':this[zA(0x288)]??0x2710,'signal':this[zA(0x419)]}),await this[zA(0x529)]();const h=await this['evaluate'](this[zA(0x5f6)][zA(0x5a4)]),t=P['node'];if(!await t[zA(0x14f)]((I,K)=>{const zY=zA;if(I instanceof HTMLInputElement&&['text','search',zY(0x54a),zY(0x328),zY(0x728)][zY(0x1d9)](I['type'])||I instanceof HTMLTextAreaElement){if(I===document[zY(0x7ce)])I[zY(0x402)](Math[zY(0x57c)](0x0,I[zY(0x420)]-K),I['selectionStart']);else I[zY(0x316)](),I[zY(0x402)](Math[zY(0x57c)](0x0,I[zY(0x6df)]['length']-K),I['value'][zY(0x67b)]);return!![];}return![];},[h]))throw new RunnerError(zA(0x26b),{'code':ErrorCode[zA(0x139)]});return await this[zA(0xb9)][zA(0x103)][zA(0x47b)]['press'](zA(0x233)),this[zA(0x7c7)][zA(0x7ce)]=t,await this['after'](),{'status':zA(0x6d3)};}},EvaluateHandler=class extends Handler{async[O(0x74f)](){const zU=O;this[zU(0x72b)](),await this[zU(0x516)](),await this[zU(0x529)]();try{const c=await this[zU(0xb9)][zU(0x103)][zU(0x12d)][zU(0xf1)](await this[zU(0x814)](this[zU(0x5f6)]['js']),{'await':!![]});return this[zU(0x7c7)][zU(0x364)][zU(0x6d2)][zU(0x22c)]={'value':c},await this[zU(0x4d2)](),{'status':zU(0x669),'meta':{'result':c}};}catch(P){if(P instanceof FlushError)throw P;else throw new RunnerError(zU(0xe3),{'code':ErrorCode[zU(0xbb)],'error':P,'stack':P['stack']});}}},NavigateHandler=class extends Handler{async[O(0x74f)](){const zs=O;this['throwIfBlocked'](),await this[zs(0x516)](),await this['before']();if(zs(0x587)in this[zs(0x5f6)]){const c=await this[zs(0x814)](this[zs(0x5f6)][zs(0x2dc)])??0x1;await this[zs(0xb9)][zs(0x103)][zs(0x2ec)](this[zs(0x5f6)][zs(0x587)]===zs(0x75d)?c:-c),log(zs(0x6bc),{'kind':zs(0x70d),'historyDirection':this['action'][zs(0x587)],'times':c});if(isPdfViewerFrame(this[zs(0xb9)][zs(0x103)][zs(0x12d)]))await waitForReady(this[zs(0xb9)][zs(0x103)][zs(0x12d)]);return await this[zs(0x4d2)](),{'status':zs(0x5d6)};}else{const P=this[zs(0x5da)],h=await this[zs(0x814)](this[zs(0x5f6)][zs(0x54a)]||'');let t=this[zs(0x5f6)][zs(0x19c)]||/^\.{0,2}\/|^[^\.\/]+$/[zs(0x63b)](h)?new URL(h,this[zs(0xb9)][zs(0x103)]['url'])[zs(0x349)]():h;if(/^mock\+/[zs(0x63b)](h))t=zs(0x48b)+h['replace'](/^mock\+/,'');const I=await(/^(?:data|about):|(?:https?|ftps?|chrome):\/\//[zs(0x63b)](t)?this[zs(0xb9)][zs(0x103)]['navigate'](t,{'timeout':P}):this['automator'][zs(0x103)]['navigate']('https://'+t,{'timeout':P})[zs(0x730)](K=>this[zs(0xb9)]['activePage']['navigate'](zs(0x5bf)+t,{'timeout':P})[zs(0x730)](async()=>Promise[zs(0x7cf)](K))))['catch'](async K=>{const zx=zs;await this[zx(0xb9)][zx(0x103)][zx(0x237)]();throw K;});log(zs(0x6bc),{'kind':zs(0x54a),'url':t,'statusCode':I[zs(0x766)]});if(isPdfViewerFrame(this[zs(0xb9)]['activePage'][zs(0x12d)]))await waitForReady(this[zs(0xb9)]['activePage'][zs(0x12d)]);await this[zs(0x4d2)]();if(!this[zs(0x7a7)]){if(this[zs(0x5f6)][zs(0x670)]!=='*'){const K=[...this[zs(0x5f6)][zs(0x670)]??[],...this[zs(0x70e)]];if(K['length']>0x0?!K[zs(0x1d9)](I[zs(0x766)]):I[zs(0x766)]<0xc8||I[zs(0x766)]>0x12b)throw new RunnerError(zs(0x379)+h+'\x22\x20resulted\x20with\x20an\x20unexpected\x20status\x20code\x20'+I['status'],{'code':ErrorCode['UNEXPECTED_NAVIGATION_STATUS'],'status':I['status'],'headers':I[zs(0x5e5)]});}return{'status':'navigated','meta':{...I}};}else return{'status':zs(0x5d6),'meta':{...I,'statusExpected':this[zs(0x5f6)][zs(0x670)]&&(this[zs(0x5f6)][zs(0x670)]==='*'||this[zs(0x5f6)][zs(0x670)]['includes'](I[zs(0x766)]))}};}}},GoHandler=class extends Handler{async[O(0x74f)](){const zB=O;this[zB(0x72b)](),await this[zB(0x516)]();const c=await this[zB(0x814)](this[zB(0x5f6)]['target']),P={'automator':this['automator'],'context':this[zB(0x7c7)],'shouldCapture':this[zB(0x569)],'shouldNotThrowOnUnexpectedNavigationStatus':this[zB(0x7a7)],'expectedNavigationStatuses':this['expectedNavigationStatuses']};return(isUrlString(c)?new NavigateHandler({...P,'instruction':{'type':zB(0x633),'url':c}}):new ScrollHandler$1({...P,'instruction':{'type':zB(0x666),'element':{'title':c}}}))[zB(0x74f)]();}},HandleDialogHandler=class extends Handler{async[O(0x74f)](){const zu=O;await this[zu(0x529)](),await this['stabilize']();if(this[zu(0xb9)][zu(0x103)][zu(0x6c9)]&&this[zu(0xb9)][zu(0x103)][zu(0x6c9)][zu(0x345)]!==zu(0x4e5))await this[zu(0xb9)]['activePage'][zu(0x6c9)][zu(0x74f)](this['action'][zu(0x6df)]);else{if(this[zu(0x5f6)][zu(0x29a)]?.[zu(0x345)]!==zu(0x1ae))throw new RunnerError(zu(0x1ac),{'code':ErrorCode[zu(0x47c)]});}return await this[zu(0x4d2)](),{'status':zu(0x6d3)};}},HitKeyHandler=class extends Handler{async[O(0x74f)](){const zd=O;this['throwIfBlocked'](),await this[zd(0x516)](),await this[zd(0x529)]();const c=this['action'][zd(0x342)],P=await this[zd(0x814)](this[zd(0x5f6)]['times'])??0x1;for(let h=0x0;h<P;++h)if(['F5',zd(0x356)]['includes'](c[zd(0x44e)]('+')))await this[zd(0xb9)][zd(0x103)][zd(0x40a)]();else{if([zd(0x27e),zd(0x41a)][zd(0x1d9)](c[zd(0x44e)]('+')))await this[zd(0xb9)][zd(0x103)]['reload']({'hard':!![]});else{const t=await this[zd(0xb9)][zd(0x103)][zd(0x12d)][zd(0x14f)](()=>{const zM=zd,I=document[zM(0x7ce)];return!!(I instanceof HTMLInputElement&&I['list']&&![zM(0x275),zM(0x6e7),'submit']['includes'](I[zM(0x345)]));});await this[zd(0xb9)][zd(0x103)]['keyboard'][zd(0x549)](c,{'raw':t});}}return await this['after'](),{'status':zd(0x6d3)};}},HoverHandler=class extends Handler{async[O(0x74f)](){const zq=O;this['throwIfBlocked'](),await this['stabilize']();const c=await this[zq(0x814)](this['action']['element']),P=await this[zq(0x807)]({...c,'state':{...c['state'],'active':!![]}});this[zq(0x644)](P),await tryMakeElementNotObscured(P,{'timeout':this[zq(0x288)]??0x2710,'signal':this['signal']}),await this['before']();const h=P[zq(0x27f)];return await h[zq(0x273)]({'signal':this[zq(0x419)]}),this['context']['activeElement']=h,await this[zq(0x4d2)](),{'status':zq(0x6d3)};}},NavigatePdfHandler=class extends Handler{async[O(0x74f)](){const zJ=O;this[zJ(0x72b)](),await this[zJ(0x516)](),await this[zJ(0x529)]();const c=await this[zJ(0x814)](this['action'][zJ(0x514)]);if(!isPdfViewerFrame(this[zJ(0xb9)][zJ(0x103)][zJ(0x12d)]))throw new RunnerError(zJ(0x308),{'code':ErrorCode['NOT_PDF_VIEWER']});const {pageCount:P,resolvedPage:h}=await this[zJ(0xb9)]['activePage'][zJ(0x12d)][zJ(0x719)](t=>{const zy=zJ,I=globalThis[zy(0x1d2)];if(!I)return{'pageCount':0x0,'resolvedPage':0x0};const {viewer:K}=I,j=t<0x0?K['pagesCount']+t+0x1:t;if(j<0x1||j>K[zy(0x384)])return{'pageCount':K[zy(0x384)],'resolvedPage':j};return K[zy(0x550)]=j,{'pageCount':K[zy(0x384)],'resolvedPage':j};},[c]);if(h<0x1||h>P)throw new RunnerError(zJ(0x2f6)+c+zJ(0x551),{'code':ErrorCode[zJ(0x63a)],'page':c,'pageCount':P});return await this[zJ(0x4d2)](),{'status':'success'};}},RefreshHandler=class extends Handler{async[O(0x74f)](){const zl=O;return this[zl(0x72b)](),await this[zl(0x516)](),await this[zl(0x529)](),await this[zl(0xb9)][zl(0x103)]['reload']({'hard':this[zl(0x5f6)]['value']===zl(0x371)}),await this[zl(0x4d2)](),{'status':zl(0x6d3)};}},SearchHandler=class extends Handler{async['handle'](){const zC=O;this[zC(0x72b)](),await this['stabilize']();const c=await this['evaluate'](this[zC(0x5f6)][zC(0x807)])??{'type':zC(0x254),'title':'search'},P=await this['element']({...c,'type':[c['type']??[],'textbox']['flat']()});this['throwIfNoElement'](P),await tryMakeElementNotObscured(P,{'timeout':this[zC(0x288)]??0x2710,'signal':this['signal']}),await this[zC(0x529)]();const h=await this[zC(0x814)](this[zC(0x5f6)][zC(0x6df)]||''),t=P[zC(0x27f)];return await this[zC(0x4ef)](t),await t[zC(0x316)](),await this['automator'][zC(0x103)]['keyboard'][zC(0x345)](h),await this[zC(0xb9)][zC(0x103)]['keyboard']['press'](zC(0x4cc)),this[zC(0x7c7)][zC(0x7ce)]=t,await this[zC(0x4d2)](),{'status':zC(0x6d3)};}};function formatDateTimeForInput(c,P){const zO=O;if(P===zO(0x373)&&c['match'](/^\d{2}:\d{2}(:\d{2})?$/))return c;const h=/(\d{4}-\d{2}-\d{2})T?(\d{2}:\d{2})?:?(\d{2})?/;if(h[zO(0x63b)](c))c=c[zO(0x7b1)]()['endsWith']('Z')?c:c+'Z';else c+=zO(0x729);const t=new Date(c)[zO(0x34f)](),I=t[zO(0x757)](h);if(!I)return t;const K=I[0x1],j=parseInt(I[0x3]),z=j?I[0x2]+':'+j:I[0x2];if(P===zO(0x493))return K;if(P===zO(0x373))return z;return K+'T'+z;}var SetValueHandler=class extends Handler{async['handle'](){const R0=O;this['throwIfBlocked'](),await this[R0(0x516)]();const c=await this[R0(0x814)](this[R0(0x5f6)][R0(0x6df)]??'');if(isFileHandle(this[R0(0x5f6)][R0(0x6df)])&&this[R0(0xb9)][R0(0x103)][R0(0x6c9)]?.[R0(0x345)]===R0(0x4e5))await this.#setValueInFilepickerDialog(this['automator'][R0(0x103)][R0(0x6c9)],c);else{const P=await this['evaluate'](this[R0(0x5f6)]['element']),h=await this[R0(0x807)]({...P,'type':P['type']??R0(0x571)});this[R0(0x644)](h),await tryMakeElementNotObscured(h,{'timeout':this[R0(0x288)]??0x2710,'signal':this[R0(0x419)]}),await this[R0(0x529)]();const t=h[R0(0x27f)];if(!await t[R0(0x316)]()&&!await t[R0(0x14f)](K=>K instanceof HTMLFieldSetElement))throw new RunnerError(R0(0x3d4),{'code':ErrorCode[R0(0x584)]});const I=await t[R0(0x14f)](K=>{const R1=R0;if(K instanceof HTMLFieldSetElement||K instanceof HTMLSelectElement)return R1(0x5a1);else{if(K instanceof HTMLInputElement&&K[R1(0x345)]===R1(0x435))return R1(0x7d1);else{if(K instanceof HTMLInputElement&&K['type']===R1(0x493))return R1(0x4e8);else{if(K instanceof HTMLInputElement&&K['type']===R1(0x373))return R1(0x156);else{if(K instanceof HTMLInputElement&&K['type']===R1(0x5e9))return'datetimepicker';else{if(K instanceof HTMLInputElement&&K[R1(0x345)]===R1(0x1c9))return R1(0x4e5);else return R1(0x571);}}}}}});if(I===R0(0x5a1))await this.#setValueInSelectable(t,c);else{if(I===R0(0x7d1))await this.#setValueInColorPicker(t,c);else{if(I===R0(0x4e8))await this.#setValueInDatePicker(t,c);else{if(I==='timepicker')await this.#setValueInTimePicker(t,c);else{if(I===R0(0x52c))await this.#setValueInDateTimePicker(t,c);else await t['setValue'](c);}}}}this['context'][R0(0x7ce)]=t;}return await this[R0(0x4d2)](),{'status':'success'};}async #setValueInSelectable(c,P){const R2=O;if(isRandomValue(this[R2(0x5f6)]['value'])&&this[R2(0x5f6)]['value']['type']===R2(0x73c)){const h=await c[R2(0x14f)](t=>{const R3=R2;if(t instanceof HTMLSelectElement)return t['options'][R3(0x67b)];else{if(t instanceof HTMLFieldSetElement)return t['querySelectorAll'](R3(0xbc))[R3(0x67b)];else return 0x0;}});P=Math[R2(0x4b7)](P*h);}if(!await c[R2(0x14f)](async(t,I)=>{const R4=R2;if(t instanceof HTMLSelectElement){let K;if(typeof I===R4(0x73c))K=t['options'][I];else{if(typeof I==='string'){const j=Array['prototype'][R4(0x5c0)][R4(0x64b)](t['options']),z=String(I)[R4(0x1d1)]();K=j(R=>[R[R4(0x6df)][R4(0x1d1)](),R[R4(0x19f)][R4(0x1d1)]()][R4(0x1d9)](z))??j(R=>R[R4(0x532)][R4(0x1d1)]()[R4(0x1d9)](z));}}if(K)return K['selected']=!![],t['dispatchEvent'](new Event(R4(0x3f6),{'bubbles':!![],'composed':!![]})),t['dispatchEvent'](new Event(R4(0x5ea),{'bubbles':!![]})),!![];}else{if(t instanceof HTMLFieldSetElement){let R;if(typeof I==='number')R=t['querySelectorAll']('input[type=\x22radio\x22],input[type=\x22checkbox\x22]')[I];else{if(typeof I===R4(0x4ae)){const G=I['toLowerCase'](),p=Array[R4(0x37c)](t[R4(0x2fd)](R4(0xbc))),Z=[Q=>Q===G,Q=>Q[R4(0x553)](G),Q=>Q['includes'](G)];for(const Q of Z)R=p[R4(0x5c0)](k=>Array[R4(0x37c)](k[R4(0x284)]??[])[R4(0x649)](a=>a[R4(0x4a2)]&&Q(a['innerText']['toLowerCase']()))||Q(k[R4(0x6df)]?.[R4(0x1d1)]()));}}if(R)return R['checked']=!![],R[R4(0x3f8)](new Event(R4(0x3f6),{'bubbles':!![],'composed':!![]})),R['dispatchEvent'](new Event('change',{'bubbles':!![]})),!![];}}return![];},[P],{'await':!![]}))throw new RunnerError(R2(0x1ea)+JSON[R2(0x38b)](P)+R2(0x564),{'code':ErrorCode[R2(0x39c)],'value':P});}async #setValueInColorPicker(c,P){const R5=O,{r:h,g:t,b:I}=stringToColorOrThrow(P),K='#'+Number(h)[R5(0x349)](0x10)['padStart'](0x2,'0')+Number(t)[R5(0x349)](0x10)[R5(0x21a)](0x2,'0')+Number(I)['toString'](0x10)[R5(0x21a)](0x2,'0');await c['setValue'](K);}async #setValueInDatePicker(c,P){const R6=O;await c[R6(0x425)](formatDateTimeForInput(P,R6(0x493)));}async #setValueInTimePicker(c,P){const R7=O;await c[R7(0x425)](formatDateTimeForInput(P,R7(0x373)));}async #setValueInDateTimePicker(c,P){const R8=O;await c[R8(0x425)](formatDateTimeForInput(P,R8(0x80f)));}async #setValueInFilepickerDialog(c,P){const R9=O;await c[R9(0x74f)]([P]);}},SwitchTargetHandler=class extends Handler{async['handle'](){const Rf=O;await this[Rf(0x516)](),await this[Rf(0x529)]();if(Rf(0x3a1)in this[Rf(0x5f6)]){const c=await this[Rf(0x814)](this[Rf(0x5f6)][Rf(0x3a1)]),P=Array[Rf(0x37c)](this[Rf(0xb9)][Rf(0x2d3)]());if(c>=P[Rf(0x67b)])throw new RunnerError(Rf(0x6ef)+c+Rf(0x5ee)+P[Rf(0x67b)]+Rf(0x338),{'code':ErrorCode[Rf(0x423)]});await P[c]['activate']();}else{if(Rf(0x446)in this['action']){if(this['action'][Rf(0x446)]===Rf(0x49d)){if(!await this[Rf(0xb9)][Rf(0x2d8)]())throw new RunnerError(Rf(0x3b6),{'code':ErrorCode[Rf(0x33c)]});}else{if(!await this[Rf(0xb9)][Rf(0x1b7)]()){const h=Array[Rf(0x37c)](this[Rf(0xb9)]['pages']());if(h[Rf(0x67b)]<=0x1)throw new RunnerError(Rf(0x53d),{'code':ErrorCode[Rf(0x144)]});await h[(h['findIndex'](t=>t===this['automator'][Rf(0x103)])+0x1)%h['length']][Rf(0x203)]();}}}else{if(Rf(0x81c)in this['action']){const t=Array['from'](this[Rf(0xb9)][Rf(0x2d3)]()),I=await this[Rf(0x814)](this[Rf(0x5f6)][Rf(0x81c)]),K=new RegExp('\x5cb'+I+'\x5cb','i'),j=t[Rf(0x5c0)](z=>K[Rf(0x63b)](z[Rf(0x81c)]));if(!j)throw new RunnerError(Rf(0x6cc)+I+'\x22',{'code':ErrorCode[Rf(0x423)]});await j[Rf(0x203)]();}}}return await this[Rf(0x4d2)](),{'status':Rf(0x6d3)};}},CheckHandler=class extends Handler{async[O(0x74f)](){const Rb=O;await this[Rb(0x516)]();const c=await this[Rb(0x814)](this[Rb(0x5f6)][Rb(0x807)]),P=await this[Rb(0x807)]({...c,'type':c[Rb(0x345)]??Rb(0x657)});this[Rb(0x644)](P),await this[Rb(0x529)]();const h=P[Rb(0x348)][Rb(0x7f5)]??![];if(typeof this[Rb(0x5f6)]['value']!=='boolean'||h!==this['action'][Rb(0x6df)])await P[Rb(0x27f)]['click']();return await this['after'](),{'status':'success'};}},ClickHandler=class extends Handler{async[O(0x74f)](){const Rn=O;await this[Rn(0x516)]();const c=await this['evaluate'](this[Rn(0x5f6)][Rn(0x807)]),P=await this[Rn(0x807)]({...c,'state':{...c&&'state'in c?c[Rn(0x348)]:{},'active':!![]},'hints':{'type':Rn(0x275)}});return this[Rn(0x644)](P),this['handleWithElement'](P);}async[O(0x6e2)](c){const RH=O;await this['before']();const {times:P}=this[RH(0x5f6)];return await c[RH(0x27f)]['click']({'times':P}),await sleep(0x64),await this[RH(0x4d2)](),{'status':RH(0x6d3)};}},FindHandler=class extends Handler{async[O(0x74f)](){const Ro=O;await this['stabilize']();const c=await this[Ro(0x814)](this['action'][Ro(0x807)]),P=await this['element'](c);return this[Ro(0x644)](P),await this[Ro(0x529)](),await this[Ro(0x4d2)](),{'status':Ro(0x197)};}},FocusHandler=class extends Handler{async[O(0x74f)](){const RW=O;await this[RW(0x516)]();const c=await this[RW(0x814)](this[RW(0x5f6)]['element']),P=await this[RW(0x807)](c);return this[RW(0x644)](P),await this[RW(0x529)](),await P['node'][RW(0x316)](),await this['after'](),{'status':RW(0x6d3)};}},ScrollHandler=class extends Handler{async[O(0x74f)](){const Rv=O;await this[Rv(0x516)](),await this[Rv(0x529)]();throw new RunnerError(Rv(0x457),{'code':ErrorCode[Rv(0x332)]});}},TypeHandler=class extends Handler{async[O(0x74f)](){const Rw=O;await this[Rw(0x516)]();const c=stringify(await this[Rw(0x814)](this[Rw(0x5f6)]['value']??'')),P=await this[Rw(0x814)](this['action'][Rw(0x807)])??(isOTP(this[Rw(0x5f6)][Rw(0x6df)])?{'type':'textbox','title':'code','fallback':{'state':{'focused':!![]}}}:{'state':{'focused':!![]}}),h=await this['element']({...P,'state':{...P&&Rw(0x348)in P?P['state']:{},'active':!![]},'type':[(P&&Rw(0x345)in P?P['type']:void 0x0)??[],'textbox'][Rw(0xdb)]()});return this[Rw(0x644)](h),await this[Rw(0x529)](),await this[Rw(0x4ef)](h[Rw(0x27f)]),await h[Rw(0x27f)][Rw(0x519)](),await h[Rw(0x27f)][Rw(0x345)](c),await this['after'](),{'status':Rw(0x6d3)};}};const noop={},common={'assert':AssertHandler,'wait':WaitHandler,'empty':EmptyHandler,'comment':EmptyHandler,'fetch':FetchHandler,'set\x20variable':SetVariableHandler,'visual\x20check':VisualCheckHandler,'intent':IntentHandler,'set\x20preinstructions':DefinePreinstructionsHandler,'drop\x20preinstructions':DefinePreinstructionsHandler,'initialize\x20scope':InitializeScopeHandler,'try':TryHandler,'if':IfHandler},web={'check':CheckHandler$1,'clear':ClearHandler,'click':ClickHandler$1,'close':CloseHandler,'close\x20target':CloseTargetHandler,'create\x20target':CreateTargetHandler,'erase':EraseHandler,'evaluate':EvaluateHandler,'find':FindHandler$1,'focus':FocusHandler$1,'alert':HandleDialogHandler,'hit\x20key':HitKeyHandler,'hover':HoverHandler,'navigate':NavigateHandler,'navigate\x20pdf':NavigatePdfHandler,'refresh':RefreshHandler,'scroll':ScrollHandler$1,'search':SearchHandler,'set\x20value':SetValueHandler,'switch\x20target':SwitchTargetHandler,'type':TypeHandler$1,'visual\x20check':VisualCheckHandler,'go':GoHandler},mobile={'check':CheckHandler,'click':ClickHandler,'find':FindHandler,'focus':FocusHandler,'scroll':ScrollHandler,'type':TypeHandler},handlers={'web':{...noop,...common,...web},'mobile':{...noop,...common,...mobile}};function makeHandler(c){const Rc=O;if(!(c[Rc(0xb9)]['type']in handlers))throw new Error(Rc(0x2d2)+c[Rc(0xb9)][Rc(0x345)]+Rc(0x5e0));if(!(c[Rc(0x66a)]['type']in handlers[c[Rc(0xb9)][Rc(0x345)]]))throw new Error(Rc(0x505)+c['automator'][Rc(0x345)]+Rc(0x66d)+c['automator'][Rc(0x345)]+Rc(0x5cf));const P=handlers[c['automator'][Rc(0x345)]][c[Rc(0x66a)]['type']];return new P(c);}var FlagStore=class extends EventTargetNode{#flags={'pdfViewer':{'description':O(0x164),'value':![]}};#set(c,P){const RP=O,h=this.#flags[c]?.['value'];if(P===h)return;this.#flags[c][RP(0x6df)]=P,this[RP(0x2db)](new FlagChangedEvent(c,P,h));}get[O(0x202)](){const Rh=O;return this.#flags[Rh(0x202)][Rh(0x6df)];}set['pdfViewer'](c){const Rt=O;this.#set(Rt(0x202),c);}[O(0x4c1)](c){for(const P of Object['keys'](c)){const h=c[P];if(h!==void 0x0)this[P]=h;}}[O(0x3e6)](){return this.#flags;}},FlagChangedEvent=class extends Event{[O(0x509)];['value'];[O(0x449)];constructor(c,P,h){const RI=O;super(RI(0x739)),this['key']=c,this[RI(0x6df)]=P,this[RI(0x449)]=h;}};const flags=new FlagStore(),VIEWER_HTML_PATH=new URL('../../assets/index-C5rB_Uzy.html',import.meta.url);function installPdfInterceptor(c){const RK=O;return c['intercept']([{'resource':[RK(0x31b)],'stage':[RK(0x12b)]}],async P=>{const Rj=RK;if(!flags['pdfViewer']||!(P instanceof InterceptedResponse)||!isPdfResponse(P))return;try{const h=await P[Rj(0x7c2)](),t=await getViewerHtml();if(!t[Rj(0x1d9)](Rj(0x45d)))throw new Error('viewer\x20HTML\x20is\x20missing\x20the\x20bytes\x20placeholder\x20\x22'+PDF_BYTES_PLACEHOLDER+'\x22');const I=t[Rj(0x2d0)](PDF_BYTES_PLACEHOLDER,h);await P['fulfill']({'status':0xc8,'headers':{'content-type':'text/html;\x20charset=utf-8','x-nlp-pdf-viewer':'1'},'body':new TextEncoder()['encode'](I)}),log('pdfInterceptorReplaced',{'url':P[Rj(0x331)]['url']});}catch(K){error(Rj(0x314),{'error':K});}});}function isPdfResponse(c){const Rz=O,P=Object[Rz(0xde)](c[Rz(0x5e5)])[Rz(0x5c0)](([h])=>h[Rz(0x1d1)]()===Rz(0x6f3))?.[0x1]??'';return/^application\/(?:x-)?pdf\b/i[Rz(0x63b)](P);}let viewerHtmlPromise;function getViewerHtml(){const RR=O;if(!viewerHtmlPromise)viewerHtmlPromise=readFile(VIEWER_HTML_PATH,RR(0x323))[RR(0x730)](c=>{viewerHtmlPromise=void 0x0;throw c;});return viewerHtmlPromise;}function makeScope(c){return new Scope(c);}var Scope=class{#storages=new Map();#global={};#main;#active;get[O(0x3f3)](){return this.#main;}get[O(0x249)](){return this.#active;}get[O(0x2da)](){return this.#global;}get[O(0x6d2)](){const RG=O;let c={...this.#global},P=this.#active;while(P){c={...P[RG(0x3f6)],...P[RG(0x6d2)],...c},P=P[RG(0x64f)];}return new Proxy(c,{'set':(h,t,I)=>{const Rp=RG;return this.#storages[Rp(0x7fe)](K=>Reflect['set'](K[Rp(0x6d2)],t,I)),!![];},'deleteProperty':(h,t)=>{const Rg=RG;return this.#storages[Rg(0x7fe)](I=>Reflect[Rg(0x3a8)](I[Rg(0x6d2)],t)),!![];}});}get[O(0xe6)](){const RZ=O;let c={},P=this.#active;while(P){c={...P[RZ(0xe6)],...c},P=P[RZ(0x64f)];}return new Proxy(c,{'set':(h,t,I)=>{const RQ=RZ,K=this.#active;return Reflect[RQ(0x4c1)](K[RQ(0xe6)],t,I),!![];},'deleteProperty':(h,t)=>{const Rk=RZ;return this.#storages[Rk(0x7fe)](I=>Reflect[Rk(0x3a8)](I[Rk(0xe6)],t)),!![];}});}constructor(c){const Ra=O;this.#global=c['global'],this.#main=this[Ra(0x4c1)](Ra(0x3f3),c),this.#active=this.#main;}[O(0x203)](c){const RN=O;if(!this.#storages[RN(0x5ab)](c))throw new Error(RN(0xf3)+c+'\x22');this.#active=this.#storages[RN(0x67a)](c);}[O(0x778)](c){const RT=O;this.#active[RT(0x3f6)]=Object[RT(0x3fa)](Object[RT(0xde)](c['input']??{})[RT(0x205)](([P,h])=>[P[RT(0x1d1)](),h])),this.#active[RT(0x6d2)]=Object[RT(0x3fa)](Object[RT(0xde)](c[RT(0x6d2)]??{})[RT(0x205)](([P,h])=>[P['toLowerCase'](),h])),this.#active[RT(0x6d2)]=c[RT(0xe6)];}[O(0x5a0)](c){const RS=O;return this.#storages['get'](c)?.[RS(0x64f)]===this.#active;}['set'](c,P){const RV=O,h={'name':c,'parent':c===RV(0x3f3)?null:this.#active,'input':Object[RV(0x3fa)](Object['entries'](P[RV(0x3f6)]??{})[RV(0x205)](([t,I])=>[t[RV(0x1d1)](),I])),'public':Object[RV(0x3fa)](Object[RV(0xde)](P[RV(0x6d2)]??{})[RV(0x205)](([t,I])=>[t[RV(0x1d1)](),I])),'internal':P[RV(0xe6)]??{}};return this.#storages[RV(0x4c1)](c,h),h;}[O(0x6e7)](){const RD=O;this.#storages=new Map(),this.#main=this[RD(0x4c1)](RD(0x3f3),{...this.#main,'public':{}}),this.#active=this.#main;}};const connect=buildConnector({'allowH2':!![],'rejectUnauthorized':![]});function makeDispatcher({proxy:c}={}){const Rm=O;return c?new Socks5ProxyAgent(c[Rm(0x54a)],{'username':c[Rm(0x51f)],'password':c[Rm(0x728)],'connect':connect}):new Agent({'connect':connect});}function makePageData({browser:c}){const RL=O;return{get 'url'(){const Rr=n;return makeUrlData(c[Rr(0x103)][Rr(0x54a)]);},get 'title'(){const RF=n;return c[RF(0x103)][RF(0x81c)];},get 'status'(){const RE=n;return c[RE(0x103)][RE(0x12d)]['response'][RE(0x766)];},get 'statustext'(){const Re=n;return c[Re(0x103)][Re(0x12d)][Re(0x12b)][Re(0x6e0)];},get 'headers'(){const RX=n,P=c[RX(0x103)]['mainFrame'][RX(0x12b)][RX(0x5e5)];return{...Object[RX(0x3fa)](Object[RX(0xde)](P)['map'](([h,t])=>[h[RX(0x1d1)](),t])),[Symbol[RX(0x80c)](RX(0x67a))](h){const Ri=RX;return this[h[Ri(0x1d1)]()];}};},get 'cookies'(){return{};},get 'meta'(){return{};},get 'width'(){return NaN;},get 'height'(){return NaN;},async[Symbol[RL(0x80c)](RL(0x67a))](P){const RA=RL;if(P===RA(0x81c))return c[RA(0x103)][RA(0x12d)][RA(0x814)]('document.title');else{if(P==='cookies'){const h=await c[RA(0x103)]['getCookies']();return Object['fromEntries'](h[RA(0xde)]());}else{if(P===RA(0x573))return c[RA(0x103)][RA(0x12d)][RA(0x14f)](()=>{const RY=RA,t=document[RY(0x3c3)]['querySelectorAll'](RY(0x3a9));return Array[RY(0x37c)](t)[RY(0x472)]((I,K)=>{const RU=RY,j=K['getAttribute'](RU(0x20f))||K[RU(0x3d8)];if(j)I[j]=K[RU(0x354)]??'';return I;},{});});else{if(P===RA(0x43b))return c[RA(0x103)]['mainFrame']['evaluate'](RA(0xd9));else{if(P===RA(0x5cb))return c[RA(0x103)][RA(0x12d)][RA(0x814)](RA(0xcf));else return this[P];}}}}}};}function makePdfData({browser:c}){const Rs=O,P={get 'name'(){return'';},get 'pagecount'(){return 0x0;},get 'currentpage'(){return 0x0;},async[Symbol[Rs(0x80c)](Rs(0x67a))](h){const Rx=Rs,t=h[Rx(0x1d1)]();if(t===Rx(0x3d8))return c[Rx(0x103)][Rx(0x12d)][Rx(0x719)](()=>document['title']);else{if(t===Rx(0x780))return c[Rx(0x103)][Rx(0x12d)]['defaultExecute'](()=>globalThis['nlpPdfState']?.[Rx(0x43e)]?.[Rx(0x384)]??0x0);else{if(t===Rx(0x52a))return c[Rx(0x103)][Rx(0x12d)][Rx(0x719)](()=>globalThis[Rx(0x1d2)]?.['viewer']?.[Rx(0x550)]??0x0);}}}};return{get 'value'(){const RB=Rs,h=c[RB(0x103)]?.[RB(0x12d)];if(!h||!isPdfViewerFrame(h))return null;return P;}};}const INDICATOR_PATTERN=/loading|loader|spinner|spin|progress|waiting|busy/i;function isPageSpinnerVisible(c){const Ru=O;return c[Ru(0x4a4)][Ru(0x649)](nodeHasSpinnerIndicators);}function nodeHasSpinnerIndicators(c){const Rd=O,P=c[Rd(0x5fd)];if(P){if(P['role']===Rd(0x766)||P[Rd(0x7d9)]===Rd(0x6bb)||P[Rd(0x49b)]===Rd(0x7d0))return!![];if(P[Rd(0x5ef)]&&INDICATOR_PATTERN['test'](P[Rd(0x5ef)]))return!![];if(P['id']&&INDICATOR_PATTERN['test'](P['id']))return!![];}if(c[Rd(0x532)]&&INDICATOR_PATTERN['test'](c['text']))return!![];if(c['visibleLabel']&&INDICATOR_PATTERN['test'](c[Rd(0x707)]))return!![];if(c[Rd(0x676)]&&INDICATOR_PATTERN[Rd(0x63b)](c[Rd(0x676)]))return!![];return![];}function parseIOSFrame(c){const RM=O;if(!c)return{'x':0x0,'y':0x0,'width':0x0,'height':0x0};const P=c[RM(0x757)](/\{\{([\d.]+),\s*([\d.]+)\},\s*\{([\d.]+),\s*([\d.]+)\}\}/);if(!P)return{'x':0x0,'y':0x0,'width':0x0,'height':0x0};return{'x':parseFloat(P[0x1]),'y':parseFloat(P[0x2]),'width':parseFloat(P[0x3]),'height':parseFloat(P[0x4])};}function makeIOSNode(c){return new IOSNode(c);}var IOSNode=class{[O(0x74f)];#connection;constructor({connection:c,handle:P}){this.#connection=c,this['handle']=P;}async[O(0x28b)](c){return this===c;}async['click'](c){const Rq=O;await this.#connection[Rq(0x6aa)]({'type':c?.[Rq(0x2dc)]===0x2?Rq(0x53f):'tap','target':{'type':Rq(0x807),'elementSnapshot':this['handle']},'parameters':{'taps':c?.['times']??0x1}});}async[O(0x316)](){const RJ=O;return await this[RJ(0x519)](),!![];}async[O(0x345)](c){const Ry=O;await this.#connection[Ry(0x6aa)]({'type':Ry(0x161),'target':{'type':'element','elementSnapshot':this[Ry(0x74f)]},'parameters':{'text':c}});}async[O(0x3f2)](){return![];}async[O(0x543)](c){}async['canTypeInto'](){return!![];}async['getBox'](){const Rl=O;return parseIOSFrame(this[Rl(0x74f)][Rl(0x58b)]);}async[O(0x27d)](){const RC=O;return this[RC(0x179)]();}async['getContentBoxes'](){const RO=O;return[parseIOSFrame(this[RO(0x74f)][RO(0x58b)])];}async[O(0xbf)](){return!![];}async[O(0x68d)](){const G0=O;return this['handle'][G0(0x802)]||this[G0(0x74f)][G0(0x820)]||'';}async[O(0x255)]({hint:hint=O(0x4ae)}={}){const G1=O;if(hint===G1(0x560)){if(this[G1(0x74f)][G1(0x132)]===G1(0x330))return String(this[G1(0x74f)][G1(0x802)])==='1';}return this[G1(0x74f)]['Value'];}async['isEnabled'](){return this['handle']['Enabled']??null;}async[O(0x347)](){return null;}async[O(0x4fe)](){return{'ratio':0x0};}async['getDescription'](){return'';}},Device=class{[O(0x345)]=O(0x52b);[O(0x474)];[O(0x1e1)]=![];constructor({connection:c}){const G2=O;this[G2(0x474)]=c;}async[O(0x516)](c,P){}async['captureScreenshot'](){const G3=O;return this[G3(0x474)][G3(0x34e)]();}async[O(0x4d7)](){const G4=O,c=await this[G4(0x474)][G4(0x4d7)](),P={...c,'nodes':[]};for(const h of c['nodes'])P[G4(0x299)][G4(0x3a6)]({...h,'node':makeIOSNode({'connection':this[G4(0x474)],'handle':h[G4(0x27f)]})});return P;}};const extractAXTree$1=makeBundledScript({'name':O(0x49c),'url':new URL(O(0x1c7),import.meta.url)}),extractPdfAXTree=makeBundledScript({'name':O(0x212),'url':new URL(O(0x7e6),import.meta.url)});makeBundledExpression({'name':O(0x3e0),'url':new URL(O(0x6ff),import.meta.url)});const version$2=O(0x629);var AXNodeView=class AXNodeView extends EventTarget$1{['_tree'];[O(0x503)]=[];['debugLog'];[O(0x6e9)]=null;[O(0x779)]=[];[O(0x3c1)]=null;[O(0x407)]=null;[O(0x136)]=null;['_backgroundRoot']=null;[O(0x6f5)]=null;[O(0x72f)]=null;[O(0x26a)]=[];[O(0x803)]={};[O(0x430)]={};[O(0x30f)]={};[O(0xf0)];['_text']='';['_visibleLabel']='';[O(0x60b)];[O(0x2a9)]='';[O(0x3ac)]='';[O(0x1e7)]='';[O(0x5b0)]=Object[O(0x68a)](null);['_isStackingContextRoot']=![];[O(0xeb)]=0x0;[O(0x433)];[O(0x4ed)];[O(0x414)];[O(0x623)];[O(0x230)]=-0x1;[O(0x7c5)]=-0x1;['post']=-0x1;[O(0x195)];[O(0x1a6)];['rows'];[O(0x5a9)];get[O(0x77a)](){const G5=O;return this[G5(0x1c4)];}get['node'](){const G6=O;return this[G6(0x503)][0x0];}get[O(0x4c7)](){const G7=O;return this[G7(0x503)];}get[O(0x64f)](){const G8=O;return this[G8(0x6e9)];}get[O(0x72c)](){const G9=O;return this[G9(0x3c1)];}get[O(0x112)](){const Gf=O;return this[Gf(0x407)];}get[O(0x7aa)](){const Gb=O;return this[Gb(0x136)];}get['backgroundRoot'](){const Gn=O;return this[Gn(0x31d)];}get[O(0xcd)](){return this['_controlNodes'];}get[O(0x7c0)](){const GH=O;return this[GH(0x6f5)];}get[O(0x663)](){const GW=O;return this[GW(0x72f)];}get[O(0x5f8)](){const Gv=O;return this[Gv(0x779)];}get[O(0x19a)](){const Gw=O;return!this[Gw(0x64f)]?.[Gw(0x5f8)][Gw(0x1d9)](this);}get[O(0x4df)](){const Gc=O;return this[Gc(0x57f)][Gc(0x555)]===0x0||this[Gc(0x30f)][Gc(0x7cc)]||this[Gc(0x176)][Gc(0x43b)]<=0x1&&this[Gc(0x176)]['height']<=0x1;}get[O(0x76d)](){const GP=O;return!this[GP(0x345)]['image']&&!this['_style'][GP(0x2f2)];}get[O(0x735)](){const Gh=O;return!this[Gh(0x57f)][Gh(0x7cc)]&&(!this[Gh(0x76d)]||this[Gh(0x7e5)]);}get[O(0x50d)](){const Gt=O;return new Rectangle(0x0,0x0,this[Gt(0x77a)]['viewport']['width'],this[Gt(0x77a)][Gt(0x283)]['height'])[Gt(0x715)](this['borderRect']);}get['type'](){const GI=O;return this[GI(0x803)];}get[O(0x348)](){const GK=O;return this[GK(0x430)];}get[O(0x57f)](){return this['_style'];}get[O(0x336)](){const Gj=O;return this[Gj(0xf0)];}get[O(0x532)](){const Gz=O;return this[Gz(0x3c9)];}get[O(0x707)](){const GR=O;return this[GR(0x756)];}get[O(0x702)](){return this['_geometricLabel'];}get['declarativeLabel'](){return this['_declarativeLabel'];}get[O(0x2d4)](){const GG=O;return this[GG(0x3ac)];}get[O(0x4a6)](){const Gp=O;return this[Gp(0x1e7)];}get[O(0x5e4)](){const Gg=O;return{...this[Gg(0x3c9)]?{'text':this[Gg(0x3c9)]}:{},...this[Gg(0x756)]?{'visibleLabel':this[Gg(0x756)]}:{},...this['_geometricLabel']?{'geometricLabel':this[Gg(0x60b)]}:{},...this[Gg(0x2a9)]?{'declarativeLabel':this[Gg(0x2a9)]}:{}};}get['attributes'](){const GZ=O;return this[GZ(0x5b0)];}get[O(0xfa)](){return this['_isStackingContextRoot'];}get[O(0x188)](){const GQ=O;return this[GQ(0xeb)];}get[O(0x176)](){return this['_borderRect'];}get['visibleBorderRect'](){const Gk=O;if(!this[Gk(0x72f)])return this[Gk(0x176)];return this['borderRect'][Gk(0x4ba)](this[Gk(0x72f)]['contentRect'])??new Rectangle(this[Gk(0x176)]['x'],this[Gk(0x176)]['y'],0x0,0x0);}get[O(0x6ed)](){return this['_contentRect'];}get[O(0x45a)](){const Ga=O;return this[Ga(0x414)];}get[O(0x7d9)](){return this['_role'];}get[O(0xd8)](){const GN=O;return{'border':this['_borderRect'],'content':this[GN(0x4ed)]};}get[O(0x7e5)](){const GT=O;return this[GT(0x30f)][GT(0x209)]&&this['_style'][GT(0x209)]['length']>0x0;}get[O(0x7b7)](){const GS=O;return this[GS(0x30f)][GS(0x2f2)]!=null||!!this[GS(0x345)][GS(0x54e)];}get[O(0x436)](){const GV=O;if(this['_style']['backgroundColor'])return this[GV(0x30f)][GV(0x2f2)];if(this[GV(0x345)][GV(0x54e)])return'image';if(this[GV(0x31d)]){if(this['_backgroundRoot'][GV(0x345)][GV(0x54e)])return'image';return this[GV(0x31d)][GV(0x57f)][GV(0x2f2)]??null;}return null;}get[O(0x746)](){const GD=O;return this['isContrastingToBackground']||this[GD(0x7e5)];}get['isOpaque'](){const Gm=O;if(this[Gm(0x76d)])return![];const c=0.9;return(this[Gm(0x57f)][Gm(0x2f2)]?.['a']??0x1)>=c||(this['_style']['opacity']??0x1)>=c;}constructor(c){const Gr=O;super(),this[Gr(0x1c4)]=c;}*[O(0x52d)]({up:c}={}){c??=h=>h['parent'];let P=c(this);while(P){yield P,P=c(P);}}*['descendants']({dead:c,leaf:P}={}){const GF=O,h=[...this[GF(0x5f8)]];while(h[GF(0x67b)]>0x0){const t=h[GF(0x7f1)]();if(c?.(t))continue;yield t;if(!P?.(t))h[GF(0x3a6)](...t['children']);}}*[O(0x299)]({dead:c,leaf:P}={}){const GE=O,h=[this];while(h[GE(0x67b)]>0x0){const t=h[GE(0x7f1)]();if(c?.(t))continue;yield t;if(!P?.(t))h['push'](...t[GE(0x5f8)]);}}['ancestor'](c){const Ge=O;for(const P of this[Ge(0x52d)]())if(c(P))return P;return null;}[O(0x620)](...c){const Gi=O;let P=this,h=c['reduce']((I,K)=>{const GX=n;if(K[GX(0x230)]<P[GX(0x230)])I[GX(0x3a6)](P),P=K;else I[GX(0x3a6)](K);return I;},[]),t=P;while(t){h=h[Gi(0x506)](I=>!t[Gi(0x46b)](I));if(h[Gi(0x67b)]===0x0)return t;else t=t[Gi(0x64f)];}return t;}[O(0x46b)](c){const GL=O;return this['pre']<c[GL(0x7c5)]&&this[GL(0x270)]>c[GL(0x270)];}[O(0x3d5)](c){const GA=O;return this[GA(0x7c5)]<c[GA(0x7c5)];}[O(0xe9)](c){const GY=O;return this[GY(0x7c5)]>c['pre'];}[O(0x606)](...c){const GU=O,P=[this,...this[GU(0x52d)]({'up':h=>h['stackingContextRoot']})];return c[GU(0x649)](h=>{const Gs=GU;if(this===h)return![];if(h[Gs(0x46b)](this))return![];if(this[Gs(0x46b)](h))return h['borderRect'][Gs(0x46b)](this[Gs(0x176)])&&(h[Gs(0x176)]['area']>this[Gs(0x176)]['area']||h[Gs(0x176)][Gs(0x43b)]>=h[Gs(0x77a)][Gs(0x283)][Gs(0x43b)]&&h[Gs(0x176)][Gs(0x5cb)]>=h[Gs(0x77a)][Gs(0x283)][Gs(0x5cb)]);const t=new Rectangle(0x0,0x0,this[Gs(0x77a)][Gs(0x283)][Gs(0x43b)],this[Gs(0x77a)][Gs(0x283)][Gs(0x5cb)]);if(!((h['borderRect'][Gs(0x4ba)](t)?.[Gs(0x664)]||0x0)/t['area']>=0.9)){const R=this['borderRect'][Gs(0x4ba)](h[Gs(0x176)]);if(!R||R[Gs(0x664)]/this['borderRect'][Gs(0x664)]<0.5)return![];}const I=[h,...h[Gs(0x52d)]({'up':G=>!P[Gs(0x1d9)](G)?G['stackingContextRoot']:null})];let K,j;const z=P[Gs(0x787)](I['at'](-0x1));z===-0x1?(K=P['at'](-0x1),j=I['at'](-0x1)):(K=P[z-0x1],j=I['at'](-0x2));if(K[Gs(0x188)]<j[Gs(0x188)])return!![];else{if(K[Gs(0x188)]===j['elevation']){if(K['precedes'](j))return!![];}}});}['distance'](c){const Gx=O,P=this[Gx(0x620)](c);if(!P)return Infinity;return this[Gx(0x230)]-P['depth']+c[Gx(0x230)]-P[Gx(0x230)];}['toJSON'](){const GB=O;return{'type':this[GB(0x803)],'text':this[GB(0x3c9)],'visibleLabel':this['_visibleLabel'],'geometricLabel':this['geometricLabel'],'declarativeLabel':this['_declarativeLabel'],'visibleDescription':this['_visibleDescription'],'declarativeDescription':this['_declarativeDescription'],'attributes':this[GB(0x5b0)],'state':this[GB(0x430)],'style':this[GB(0x30f)],'options':this[GB(0xf0)]?.['map'](({node:c,...P})=>P),'borderRect':this[GB(0x433)]?{'x':this[GB(0x433)]['x'],'y':this['_borderRect']['y'],'width':this[GB(0x433)][GB(0x43b)],'height':this[GB(0x433)][GB(0x5cb)]}:void 0x0,'elevation':this[GB(0xeb)],'scrollable':this[GB(0x414)],'children':this[GB(0x779)]['map'](c=>c[GB(0x3e6)]()),'debugLog':this['debugLog']};}[Symbol['for'](O(0x3ca))](c,P,h){const Gu=O;return Gu(0x53a)+h({'node':this[Gu(0x27f)]??{[Symbol['for'](Gu(0x3ca))]:(t,I)=>{const Gd=Gu,K=Object['keys'](this[Gd(0x345)]),j=K['length']>0x0?K['reduce']((z,R)=>this['type'][R]>this[Gd(0x345)][z]?R:z):Gd(0x4c3);return I[Gd(0x765)]('<'+j+Gd(0x6e5),'special');}},'attributes':this[Gu(0x5fd)],'type':this['type'],'titles':this['titles'],'state':this[Gu(0x348)],'style':this[Gu(0x57f)]},{...P,'compact':!![],'breakLength':Infinity});}static[O(0xe5)](c,P,h){const GM=O,t=new AXNodeView(c);t[GM(0x6e9)]=h,t[GM(0x803)]=P[GM(0x345)]??{},t[GM(0x3c9)]=P['text']??'',t[GM(0x756)]=P[GM(0x707)]??'',t[GM(0x60b)]=P[GM(0x702)]??'',t[GM(0x2a9)]=P[GM(0x676)]??'',t['_visibleDescription']=P['visibleDescription']??'',t[GM(0x1e7)]=P[GM(0x4a6)]??'',t[GM(0x5b0)]=P[GM(0x5fd)]??Object['create'](null),t[GM(0x430)]=P[GM(0x348)]??{},t['_style']=P[GM(0x57f)]??{},t[GM(0xf0)]=P['options'];P[GM(0x176)]&&(t['_borderRect']=new Rectangle(P[GM(0x176)]['x'],P['borderRect']['y'],P[GM(0x176)][GM(0x43b)],P['borderRect'][GM(0x5cb)]),t['_contentRect']=t[GM(0x433)]);if(P[GM(0x188)]!==void 0x0)t[GM(0xeb)]=P[GM(0x188)];if(P[GM(0x45a)])t[GM(0x414)]=P['scrollable'];if(P[GM(0x192)])t[GM(0x192)]=P[GM(0x192)];return t[GM(0x779)]=(P['children']??[])[GM(0x205)](I=>AXNodeView[GM(0xe5)](c,I,t)),t;}},AXTreeView=class AXTreeView{[O(0x68e)];[O(0xe8)];['_version'];[O(0x1c1)];[O(0x528)]=[];[O(0x252)]=[];['_collected']=[];[O(0x6a3)]=0x0;[O(0x1cb)]=new RTree();[O(0x43c)]=new Map();get[O(0x283)](){const Gq=O;return this[Gq(0x68e)];}get['direction'](){const GJ=O;return this[GJ(0xe8)];}get[O(0x1a5)](){const Gy=O;return this[Gy(0x594)];}get[O(0x25b)](){const Gl=O;return this[Gl(0x1c1)];}get['nodeCount'](){return this['_nodeCount'];}get[O(0x537)](){const GC=O;return this[GC(0x528)];}get[O(0x4a4)](){const GO=O;return this[GO(0x252)];}get[O(0x71b)](){const p0=O;return this[p0(0x796)];}constructor(c){const p1=O;this[p1(0x68e)]=c['viewport'],this[p1(0xe8)]=c[p1(0x587)],this['_version']=c[p1(0x1a5)];}*[O(0x299)](){const p2=O;yield*this[p2(0x1c1)][p2(0x299)]();}['search'](c){const p3=O;return this['_rtree'][p3(0x454)](c);}[O(0x620)]([c,...P]){const p4=O;return c[p4(0x620)](...P);}[Symbol[O(0x30d)]](){const p5=O;return this[p5(0x299)]();}[O(0x59a)](c){const p6=O;return this[p6(0x43c)][p6(0x67a)](c);}[O(0x3e6)](){const p7=O;return{'viewport':this[p7(0x68e)],'direction':this[p7(0xe8)],'version':this['_version'],'root':this['_root']['toJSON'](),'hosts':this[p7(0x528)]['map'](c=>c[p7(0x3e6)]()),'popups':this[p7(0x252)]['map'](c=>c[p7(0x3e6)]()),'collected':this[p7(0x796)][p7(0x205)](c=>c['toJSON']())};}[Symbol[O(0x80c)](O(0x3ca))](c,P,h){const p8=O;let t='';const I=[this['_root']];while(I[p8(0x67b)]>0x0){const K=I['shift']();t+='\x20\x20'['repeat'](K[p8(0x230)])+h(K,P)+'\x0a',I['unshift'](...K[p8(0x5f8)]);}return t;}static[O(0xe5)](c){const p9=O,P=new AXTreeView({'viewport':c['viewport'],'direction':c['direction'],'version':c[p9(0x1a5)]});P['_root']=AXNodeView[p9(0xe5)](P,c[p9(0x25b)],null),P[p9(0x6a3)]=0x0;for(const h of P[p9(0x1c1)]['nodes']()){P[p9(0x6a3)]++;if(h['type'][p9(0x532)]&&h[p9(0xd8)][p9(0x209)])P[p9(0x1cb)][p9(0x693)]({'rect':h['borderRect'],'data':h});}return P[p9(0x1c1)][p9(0x230)]=0x0,orderSubtree(P[p9(0x1c1)]),P;}};function orderSubtree(c){const pf=O;let P=0x0,h=0x0;const t=[{'node':c,'visited':![]}];while(t[pf(0x67b)]>0x0){const I=t['at'](-0x1);if(!I[pf(0x5d8)]){I[pf(0x27f)][pf(0x7c5)]=P++;for(let K=I['node'][pf(0x5f8)][pf(0x67b)]-0x1;K>=0x0;--K){I[pf(0x27f)][pf(0x5f8)][K]['depth']=I[pf(0x27f)]['depth']+0x1,t[pf(0x3a6)]({'node':I[pf(0x27f)][pf(0x5f8)][K],'visited':![]});}I[pf(0x5d8)]=!![];}else I[pf(0x27f)][pf(0x270)]=h++,t['pop']();}}async function extractAXTree(c,P){const pb=O;let h;if(c instanceof Browser)await c['wait'](pb(0x4f3)),h=await extractWebAXTree(c[pb(0x103)],P);else{if(c instanceof Device)h=await extractMobileAXTree(c);else throw new Error('Can\x27t\x20extract\x20ax\x20tree\x20of\x20unknown\x20automator\x20implementation');}return h[pb(0x1a5)]??=version$2,h;}async function extractWebAXTree(c,P){const pn=O,h=performance[pn(0x133)](),t=P?.[pn(0x611)]||Boolean(process.env.AX_TREE_DEBUG);await c[pn(0x2a1)]('stable');if(isPdfViewerFrame(c[pn(0x12d)])){const K=await extractPdfFlatAXTree(c[pn(0x12d)]);return log(pn(0x3f7),{'kind':'pdf','durationMs':performance[pn(0x133)]()-h}),K;}const I=await extractWebFlatAXTree(c[pn(0x12d)],{'debug':t});while(I[pn(0x7d3)]['length']>0x0){const j=I[pn(0x7d3)][pn(0x7f1)]();try{const z=I[pn(0x299)][j],R=await z[pn(0x27f)]['getContentFrame']();if(R[pn(0x5ff)]){z[pn(0x345)]['ad']=0x1;continue;}await R['wait']('stable');const G=await extractWebFlatAXTree(R,{'offset':{'index':I[pn(0x299)]['length'],'location':{'x':z[pn(0x6ed)]['x'],'y':z[pn(0x6ed)]['y']}},'debug':t});G[pn(0x299)][pn(0x67b)]>0x0&&(I['nodes']['push'](...G[pn(0x299)]),I[pn(0x7d3)][pn(0x3a6)](...G[pn(0x7d3)]),z[pn(0x5f8)]=[G[pn(0x58f)][pn(0x3a1)]]);}catch(p){log(pn(0x22b),{'error':p});}}return log('axTreeExtracted',{'kind':'ax','durationMs':performance[pn(0x133)]()-h}),I;}async function extractWebFlatAXTree(c,P){const pH=O;return await c[pH(0x14f)](extractAXTree$1,[P]);}async function extractPdfFlatAXTree(c){return await c['defaultExecute'](extractPdfAXTree,[],{'await':!![]});}async function extractMobileAXTree(c){const po=O;return c[po(0x4d7)]();}var AXSnapshot=class{[O(0x1f7)]=![];['generation']=0x0;[O(0x2c1)];[O(0x538)];['initFlatAXTree'](c){const pW=O;this[pW(0x2c1)]=c,startCollapseLog();}[O(0xc6)](c){const pv=O;this[pv(0x538)]=c,++this[pv(0x687)],flushCollapseLog(this['generation']);}[O(0x3e6)](){const pw=O;return{'generation':this[pw(0x687)],'flatTree':this[pw(0x2c1)]?{...this[pw(0x2c1)],'nodes':this[pw(0x2c1)][pw(0x299)][pw(0x205)](({node:c,...P})=>P)}:void 0x0,'axTree':this['axTree']?.[pw(0x3e6)]()??void 0x0};}};const axSnapshot=new AXSnapshot(),MAX_LOGGED_COLLAPSES=0xc8,MAX_LOGGED_CANDIDATES=0xf,pendingCollapses=[];let collectingCollapses=![],omittedCollapses=0x0;function startCollapseLog(){pendingCollapses['length']=0x0,omittedCollapses=0x0,collectingCollapses=!![];}function flushCollapseLog(c){const pc=O;collectingCollapses=![];if(pendingCollapses['length']===0x0)return;debug(pc(0x6f7),{'generation':c,'collapses':pendingCollapses[pc(0x4e4)](0x0),...omittedCollapses>0x0?{'omitted':omittedCollapses}:{}});}debugBus['on'](O(0x1f0),c=>{const pP=O;if(!collectingCollapses)return;if(pendingCollapses[pP(0x67b)]<MAX_LOGGED_COLLAPSES)pendingCollapses[pP(0x3a6)](c['payload']);else++omittedCollapses;}),debugBus['on'](O(0x1f4),c=>{const ph=O;try{const {descriptor:P,candidates:h,prioritizers:t,reason:I}=c['payload'];debug(ph(0x5d1),{'generation':axSnapshot[ph(0x687)],'reason':I,'descriptor':projectDescriptor(P),'candidates':projectPrioritizedCandidates(h[ph(0x1b6)](0x0,MAX_LOGGED_CANDIDATES),t),...h[ph(0x67b)]>MAX_LOGGED_CANDIDATES?{'omitted':h[ph(0x67b)]-MAX_LOGGED_CANDIDATES}:{}});}catch(K){error('findReasoningEmitFailed',{'error':K});}});var AXOps=class{[O(0xb9)];['axProvider'];constructor(c,P){const pt=O;this['automator']=c,this[pt(0x5d3)]=P;}async[O(0x501)](){const pI=O,c=await extractAXTree(this[pI(0xb9)],{'debug':axSnapshot[pI(0x1f7)]});axSnapshot[pI(0x3eb)](c);const P=await this[pI(0x5d3)][pI(0x7a5)](c);return axSnapshot[pI(0xc6)](P),P;}async[O(0xdc)](c){const pK=O;axSnapshot[pK(0x3eb)](c);const P=await this[pK(0x5d3)][pK(0x7a5)](c);return axSnapshot[pK(0xc6)](P),P;}async[O(0x2d1)](c,P,h){const pj=O;return this[pj(0x5d3)]['findAXNode'](c,P,h);}async[O(0x6a4)](c,P,h){const pz=O;if(!this[pz(0x5d3)][pz(0x30e)])throw new Error(pz(0x55f));return this['axProvider'][pz(0x30e)](c,P,h);}async['searchCandidates'](c,P,h){const pR=O,t={'useBackwardCompatibleTypeScore':![],...h},I=await this[pR(0x6a4)](c,P,t);if(!P[pR(0x81c)]||!P['type'])return I;const {title:K,...j}=P,z=new Set(I[pR(0x205)](G=>G['node'])),R=(await this[pR(0x6a4)](c,j,t))[pR(0x506)](G=>!z[pR(0x5ab)](G[pR(0x27f)]));return[...I,...R];}async['describeNode'](c,P){const pG=O;return this[pG(0x5d3)][pG(0x617)](c,P);}async[O(0x35e)](c,P){const pp=O,{stack:h,timeout:timeout=0x0,signal:t,metrics:I}=P,K=this['automator'];bus[pp(0x2db)](new AXNodeSearchStartedEvent({'descriptor':c}));const j=Date[pp(0x133)](),z=makeWatcher({'signal':t})[pp(0xb3)](void 0x0,{'delay':timeout||0x1}),R=makeWatcher({'signal':t})[pp(0xb3)]();let G,p;if(isSelectorElementDescriptor(c)){if(K instanceof Browser)p=async()=>{const pg=pp;if(I)I[pg(0x455)]=pg(0x434);const Z=I?.['axTreeExtractionMs']??0x0,Q=performance[pg(0x133)](),k=await this.#findWithSelfHealing(c,{'browser':K,'metrics':I});if(I){const a=performance[pg(0x133)]()-Q,N=(I[pg(0x595)]??0x0)-Z;I[pg(0x65e)]=(I[pg(0x65e)]??0x0)+(a-N);}return k;};else throw new Error(pp(0x460));}else p=async()=>{const pZ=pp;if(I)I[pZ(0x455)]='columbus';const Z=performance[pZ(0x133)]();G=await this[pZ(0x501)]();I&&(I[pZ(0x595)]=(I[pZ(0x595)]??0x0)+(performance[pZ(0x133)]()-Z),I['axTreeExtractionCount']=(I['axTreeExtractionCount']??0x0)+0x1,I[pZ(0x473)]=G[pZ(0x7cb)]);const Q=performance[pZ(0x133)](),k=await this.#findWithColumbus(c,G);if(I)I[pZ(0x65e)]=(I[pZ(0x65e)]??0x0)+(performance[pZ(0x133)]()-Q);return k;};while(z['pending']||R['pending']){const Z=await abortable(p(),t);if(Z)return log('elementFound',{'node':projectAXNode(Z),'descriptor':c}),z[pp(0xb3)](),R[pp(0xb3)](),h[pp(0x27f)](c,Z),bus[pp(0x2db)](new AXNodeSearchFinishedEvent({'descriptor':c,'node':Z})),Z;G??=await this[pp(0x501)]();if(timeout>0x0){if(isPageSpinnerVisible(G))!R['pending']&&(bus[pp(0x2db)](new StabilizationWaitStartedEvent()),R[pp(0x6e7)]()[pp(0xb3)](void 0x0,{'delay':0xea60-(Date['now']()-j)})[pp(0x775)](()=>bus[pp(0x2db)](new StabilizationWaitFinishedEvent())));else{if(R[pp(0x77d)])R[pp(0xb3)]();}}await abortable(w(0x3e8,{'signal':t}),t);}return log('elementNotFound',{'durationMs':Date[pp(0x133)]()-j,'descriptor':c,'loadingPending':R[pp(0x77d)]}),z[pp(0xb3)](),R[pp(0xb3)](),bus['dispatch'](new AXNodeSearchFinishedEvent({'descriptor':c})),null;}async #findWithColumbus(c,P){const pQ=O;let h=c;while(h){const t=await this[pQ(0x5d3)][pQ(0x733)](P,h,{'debug':{'reason':pQ(0x1bc)}});if(t)return t[pQ(0x27f)];h=h[pQ(0x58e)];}return null;}async #findWithSelfHealing(c,{browser:P,metrics:h}){const pk=O,t=P[pk(0x103)],I=P['driver'];await I[pk(0x5a6)]()['window'](t['targetId']);const K=[[]];for(let z=0x0;z<K[pk(0x67b)];++z){const R=K[z-0x1]??[],G=K[z],p=R[pk(0x705)]((Q,k)=>Q[pk(0x807)]!==G[k]['element']);if(p>=0x0){for(const Q of R['slice'](p))await I[pk(0x5a6)]()[pk(0x6cd)]();for(const {element:k}of G['slice'](p))await I['switchTo']()[pk(0x286)](k);}else{for(const {element:a}of G[pk(0x1b6)](R[pk(0x67b)]))await I[pk(0x5a6)]()[pk(0x286)](a);}const Z=await j(c);if(Z){const N=await I['executeScript'](pk(0x6ca)+isElementAcceptableInvisible[pk(0x35b)]+pk(0x6fd),Z);if(await I[pk(0x7e2)]((T,S)=>{const pa=pk,{width:V,height:D}=T[pa(0x241)]();if(S||V!==0x0||D!==0x0)return T[pa(0x1ef)](pa(0x1c6),''),!![];return![];},Z,N)){let T=t[pk(0x12d)];for(const {index:E}of G)T=await(await T[pk(0x14f)](e=>document[pk(0x2fd)](pk(0x487))[e],[E]))[pk(0x28f)]();const S=await T[pk(0x14f)](()=>{const pN=pk,e=[document];for(const X of e){const i=X[pN(0x61a)](pN(0x819));if(i){i[pN(0x63c)](pN(0x1c6));if(i instanceof SVGElement){let L=i;while(L[pN(0x24d)])L=L['viewportElement'];return L;}return i;}Array['from'](X['querySelectorAll']('*'))[pN(0x7fe)](A=>{const pT=pN;if(A[pT(0x2fe)])e[pT(0x3a6)](A[pT(0x2fe)]);});}throw new Error(pN(0x38f));}),V=performance[pk(0x133)](),D=await this[pk(0x501)]();h&&(h[pk(0x595)]=(h[pk(0x595)]??0x0)+(performance[pk(0x133)]()-V),h[pk(0x14a)]=(h[pk(0x14a)]??0x0)+0x1,h[pk(0x473)]=D['nodeCount']);const m=await S[pk(0x343)]();let F;A:for(const e of D[pk(0x299)]())for(const X of e[pk(0x4c7)])if(await X[pk(0x28b)](m)){F=e;break A;}if(F){const [i,L]=await Promise[pk(0x630)]([F[pk(0x27f)][pk(0x3ba)](),S[pk(0x3ba)]()]);if(i!==L)return log(pk(0x7fc),{'descriptor':c}),new Proxy(F,{'get'(A,Y){const pS=pk;if(Y===pS(0x27f))return S;return Reflect['get'](A,Y);}});else return F;}return null;}}(await I[pk(0x7e2)](()=>{const pV=pk;return Array['from'](document['querySelectorAll'](pV(0x487)))[pV(0x472)]((A,Y,U)=>{const pD=pV,{width:s,height:B}=Y['getBoundingClientRect']();if(s>0x0&&B>0x0)A[pD(0x3a6)]({'element':Y,'index':U});return A;},[]);}))['forEach'](A=>K[pk(0x3a6)]([...G,A]));}return null;async function j(A){const pm=pk,[Y,...U]=A[pm(0x434)]['selector']['split'](pm(0x727))[pm(0x205)](B=>B[pm(0x7b1)]());let s;if(!Y)throw new Error(pm(0x627));s=await I[pm(0x1bb)]({[A[pm(0x434)]['type']]:Y})[pm(0x730)](()=>null);if(!s)return null;for(const B of U){if(/(?:\.\.\/|\.\/|\*\/|\/|\()/[pm(0x63b)](B))throw new Error(pm(0x656));s=await s[pm(0x294)]()[pm(0x311)](async u=>u[pm(0x1bb)]({'css':B}))[pm(0x730)](()=>null);if(!s)return null;}return s;}}},version$1=O(0x69d),version=O(0x69d);async function makeRunner(c){const pr=O;if(c['logger'])eventLogger[pr(0x53e)]=c[pr(0x75a)];if(c[pr(0xb9)])return new Runner({...c,'automator':c[pr(0xb9)]});else{if(c[pr(0x527)])return new Runner({...c,'automator':c[pr(0x527)]});else{if(c[pr(0x250)]){const P=await makeBrowser({'debuggerAddress':c['debuggerAddress'],'driver':c[pr(0x7e4)]});return new Runner({...c,'automator':P});}else{if(c[pr(0x7e4)]){const h=await makeBrowser({'driver':c[pr(0x7e4)]});return new Runner({...c,'automator':h});}}}}}var Runner=class extends EventTargetNode{#automator;#context;#statuses=[];#shouldRunPreinstructions=!![];#pdfInterceptorInstalled;get[O(0x13f)](){return this.#context;}get['automator'](){return this.#automator;}get[O(0x243)](){return flags['toJSON']();}get[O(0x527)](){return this.#automator instanceof Browser?this.#automator:void 0x0;}get[O(0x11a)](){const pF=O;return this.#context[pF(0x364)][pF(0x3f3)]['input'];}set['parameters'](c){const pE=O;this.#context[pE(0x364)]['main'][pE(0x3f6)]=Object['fromEntries'](Object['entries'](c)[pE(0x205)](([P,h])=>[P[pE(0x1d1)](),h]));}get[O(0x291)](){const pe=O;return this.#context[pe(0x364)][pe(0x6d2)];}set[O(0x291)](c){const pX=O;this.#context['scope']['active'][pX(0x6d2)]=Object[pX(0x3fa)](Object[pX(0xde)](c)['map'](([P,h])=>[P[pX(0x1d1)](),h]));}get[O(0x766)](){return this.#statuses[0x0];}constructor(c){const pi=O;super(),this.#automator=c[pi(0xb9)];if(c[pi(0x243)])flags[pi(0x4c1)](c['flags']);this.#context={'axOps':new AXOps(c[pi(0xb9)],c[pi(0x5d3)]),'scope':makeScope({'global':this[pi(0x527)]?{'page':{'value':makePageData({'browser':this[pi(0x527)]})},'pdf':makePdfData({'browser':this['browser']})}:{},'input':Object[pi(0x3fa)](Object[pi(0xde)](c[pi(0x11a)]??{})[pi(0x205)](([P,h])=>[P[pi(0x1d1)](),h])),'public':{},'internal':{...Object[pi(0x3fa)](Object[pi(0xde)](c[pi(0x4ea)]??{})[pi(0x205)](([P,h])=>[P,{'value':h}])),...c[pi(0x400)]!==void 0x0?{'shouldSkipInitialNavigationInNestedScope':{'value':c[pi(0x400)]}}:{},...c[pi(0x27b)]!==void 0x0?{'shouldSkipAssertionsInNestedScope':{'value':c[pi(0x27b)]}}:{}}}),'actions':{...c[pi(0x387)]},'dispatcher':makeDispatcher({'proxy':c[pi(0x189)]}),'preinstructions':[]};if(c[pi(0x4f1)])this['browser'][pi(0x45b)](!![]);this[pi(0x527)]&&(this.#pdfInterceptorInstalled=installPdfInterceptor(this[pi(0x527)])[pi(0x730)](P=>{const pL=pi;error(pL(0x339),{'error':P});}),this[pi(0x527)]['on'](pi(0x4e6),({done:P})=>bus[pi(0x2db)](P?new NavigationWaitFinishedEvent():new NavigationWaitStartedEvent())),this[pi(0x527)]['on'](pi(0x26c),({done:P})=>bus[pi(0x2db)](P?new LoadWaitFinishedEvent():new LoadWaitStartedEvent())),this['browser']['on']('stabilizingOutgoingRequests',({done:P})=>bus[pi(0x2db)](P?new OutgoingRequestsWaitFinishedEvent():new OutgoingRequestsWaitStartedEvent()))),this['on'](pi(0x82a),async({event:P,count:h})=>{const pA=pi;if(P===pA(0x762)&&h===0x1)try{const t=await this[pA(0x527)]?.[pA(0x4e5)](async I=>{this['dispatch'](new RunnerFilepickerDialogRequestedEvent(I));});this['on']('listenerRemoved',({event:I,count:K})=>{const pY=pA;if(I===pY(0x762)&&K===0x0)t();});}catch(I){log(pA(0x135),{'error':I});}}),bus['on'](pi(0x513),P=>P[pi(0x2c4)]===pi(0x180)&&this['dispatch'](P[pi(0x2d9)]())),bus['on'](pi(0x303),P=>{const pU=pi,h=this[pU(0x766)];if(P[pU(0x395)]){this.#statuses[pU(0x4e4)](this.#statuses[pU(0x536)](P[pU(0x766)]),0x1);if(P[pU(0x766)]===pU(0x196)&&P[pU(0x27f)])this['dispatch'](new RunnerAXNodeFoundEvent(P[pU(0x27f)]));}else this.#statuses[pU(0x3d7)](P['status']);if(this[pU(0x766)]&&h!==this[pU(0x766)])this[pU(0x2db)](new RunnerStatusChangedEvent({'previousStatus':h,'status':this[pU(0x766)]}));});}async['run'](c,P={}){const ps=O;let h;if(typeof c===ps(0x4ae)){const [z]=parseText(c);if(z[ps(0x73d)]){const R={'references':new Map(),'extractors':new Map(),'operands':new Map()};return{'status':'error','error':z['error'][ps(0x7a9)]??ps(0x443)+z[ps(0x532)],'code':ErrorCode[ps(0x6a9)],'meta':{'pos':z[ps(0x73d)]['pos'],'text':z['error'][ps(0x532)]},'results':[],'values':R};}h=z[ps(0x184)];}else{if(Array[ps(0x7a2)](c))h=c;else h=unseal(c);}!P[ps(0x6af)]&&(this.#statuses=[],this.#shouldRunPreinstructions=!![]);if(this.#pdfInterceptorInstalled)await this.#pdfInterceptorInstalled;const t=Date[ps(0x133)]();log(ps(0x6a0),{'runnerVersion':version$1,'parserVersion':version,'nodeVersion':process[ps(0x1a5)]}),log(ps(0x365),{'instructions':h,'stepIndex':P[ps(0x204)]}),bus[ps(0x2db)](new InstructionExecutionStartedEvent({'preStep':P[ps(0x6af)]}));const I=[],K={'references':new Map(),'extractors':new Map(),'operands':new Map()},j=h[ps(0x205)](G=>({'instruction':G,'shouldFailOnError':!![]}));while(j['length']>0x0){const {instruction:G,shouldFailOnError:p}=j['shift'](),Z=Date[ps(0x133)]();log(ps(0x632),{'instruction':G,'correlationId':P[ps(0x3fe)]});const Q=await this['handle'](G,P);debug('instructionResultHandled',{'status':Q['status'],'code':Q['status']===ps(0x73d)?Q['code']:void 0x0}),I[ps(0x3a6)](Q);if(Q[ps(0x766)]===ps(0x2cc))j[ps(0x3d7)](...Q['meta'][ps(0x734)][ps(0x205)](a=>({'instruction':a,'shouldFailOnError':![]})));else{if(Q['status']==='preinstructions\x20defined')this.#context[ps(0x811)]=Q[ps(0x573)]['preinstructions'];else{if(Q[ps(0x766)]===ps(0x5de)){if(Q[ps(0x573)][ps(0x734)])j[ps(0x3d7)](...Q[ps(0x573)]['next'][ps(0x205)](a=>({'instruction':a,'shouldFailOnError':!![]})));}}}const k=Date[ps(0x133)]();log(ps(0x3c8),{'instruction':G,'duration':k-Z,'status':Q['status'],'errorcode':Q[ps(0x766)]==='error'?Q[ps(0x24c)]:void 0x0,'metrics':Q[ps(0x1ce)]});Q[ps(0x766)]!==ps(0x41f)&&(Q['values'][ps(0x496)][ps(0x7fe)]((a,N)=>K[ps(0x496)][ps(0x4c1)](N,a)),Q[ps(0x3bd)][ps(0x48f)][ps(0x7fe)]((a,N)=>K[ps(0x48f)][ps(0x4c1)](N,a)),Q[ps(0x3bd)][ps(0x674)][ps(0x7fe)]((a,N)=>K[ps(0x674)][ps(0x4c1)](N,a)));if(Q[ps(0x766)]===ps(0x73d)){if(!p)break;return log(ps(0x109),{'instructions':h,'duration':k-t,'status':Q[ps(0x766)],'errorcode':Q['code']}),bus[ps(0x2db)](new InstructionExecutionFinishedEvent({'preStep':P[ps(0x6af)]})),{'status':ps(0x73d),'error':Q[ps(0x73d)],'code':Q[ps(0x24c)],'meta':Q[ps(0x573)],'results':I,'values':K};}else{if(Q[ps(0x766)]===ps(0x351))return log('instructionExecutionFinished',{'instructions':h,'duration':k-t,'status':Q[ps(0x766)]}),bus[ps(0x2db)](new InstructionExecutionFinishedEvent({'preStep':P[ps(0x6af)]})),{'status':ps(0x351),'results':I,'values':K};}}return log(ps(0x109),{'instructions':h,'duration':Date['now']()-t,'status':ps(0x6d3)}),bus['dispatch'](new InstructionExecutionFinishedEvent({'preStep':P[ps(0x6af)]})),{'status':'success','results':I,'values':K};}async[O(0x74f)](c,P={}){const px=O;if(this.#context[px(0x364)][px(0x249)][px(0x64f)]){const h=this.#context[px(0x364)][px(0xe6)][px(0x27b)]?.['value'],t=this.#context['scope']['internal']['forceRunningAssertions']?.['value'];if(h&&t!=='all'){if(c[px(0x345)]===px(0x736)){if(!t||t!==px(0x738))return{'status':px(0x41f)};}else{if(c[px(0x345)]===px(0x589)){if(!t||t!==px(0x14e))return{'status':px(0x41f)};}}}const I=this.#context[px(0x364)][px(0xe6)][px(0x400)]?.[px(0x6df)],K=this.#context[px(0x364)][px(0xe6)][px(0x698)]?.[px(0x6df)];if(P[px(0x204)]===0x0&&I&&K!==px(0x630)){if(c[px(0x345)]===px(0x633))return{'status':px(0x41f)};}}return!c[px(0x345)][px(0x1d9)](px(0x44b))&&this.#shouldRunPreinstructions&&this.#context[px(0x811)][px(0x67b)]>0x0&&!P[px(0x6af)]&&(await this[px(0x64d)](this.#context[px(0x811)],{'runningPreinstructions':!![]}),this.#shouldRunPreinstructions=![]),await makeHandler({'automator':this.#automator,'context':this.#context,'instruction':c,...P})[px(0x64d)]();}async[O(0x5c0)](c,P={}){const pB=O;let h;if(typeof c===pB(0x4ae)){const {result:j,error:z}=parseElementFragment(c);if(z||!j)throw new RunnerError('Failed\x20to\x20parse\x20element\x20descriptor:\x20'+c,{'code':ErrorCode[pB(0x6a9)]});h=j;}else h=c;const t=P['timeout']??this.#context['scope'][pB(0xe6)]['findTimeout']?.['value']??this.#context[pB(0x364)]['internal'][pB(0x2a7)]?.[pB(0x6df)]??0x2710,I=makeValuesStack();await this.#automator['stabilize'](pB(0x45e),{'signal':P[pB(0x419)],'timeout':t});const K=await evaluateExpression(h,{'context':this.#context,'stack':I,'automator':this.#automator,'timeout':t,'signal':P[pB(0x419)]});return(await this.#context['axOps'][pB(0x35e)](K,{'stack':I,'timeout':t,'signal':P[pB(0x419)]}))?.['node']??null;}async[O(0x4ac)](...c){const pu=O;this.#context[pu(0x364)][pu(0x203)]('main');for(const P of c){if(!this.#context[pu(0x364)][pu(0x5a0)](P))this.#context[pu(0x364)][pu(0x4c1)](P,{'input':{},'public':{},'internal':{}});this.#context[pu(0x364)][pu(0x203)](P);}}async[O(0x3db)](){const pd=O;this.#context[pd(0x364)][pd(0x6e7)]();}async[O(0x3da)](){if(this.#pdfInterceptorInstalled){const c=await this.#pdfInterceptorInstalled;this.#pdfInterceptorInstalled=void 0x0,c?.();}}async[Symbol[O(0x18a)]](){return this['dispose']();}},RunnerAXNodeFoundEvent=class extends Event{[O(0x27f)];constructor(c,P){const pM=O;super(pM(0x413),P),this[pM(0x27f)]=c;}},RunnerFilepickerDialogRequestedEvent=class extends Event{['dialog'];[O(0x286)];[O(0x807)];[O(0x244)];[O(0x1f8)];constructor(c){const pq=O;super(pq(0x762)),this[pq(0x6c9)]=c,this[pq(0x286)]=c[pq(0x286)],this[pq(0x807)]=c[pq(0x807)],this[pq(0x244)]=c[pq(0x244)],this['accept']=c[pq(0x1f8)];}async['files'](c){const pJ=O,P=[],h=[];for(const t of c){let I,K;if(typeof t===pJ(0x4ae))I=t;else I=t[pJ(0x1ab)],K=t[pJ(0x66c)];P[pJ(0x3a6)](I),h['push'](K??basename(I));}await this[pJ(0x6c9)]['element'][pJ(0x14f)]((j,z)=>j[pJ(0x3ed)][pJ(0x490)]=JSON[pJ(0x38b)](z),[h]),await this['dialog'][pJ(0x74f)](P);}async['close'](){}},RunnerStatusChangedEvent=class extends Event{['previousStatus'];[O(0x766)];constructor({previousStatus:c,status:P}){const py=O;super('statusChanged'),this['previousStatus']=c,this[py(0x766)]=P;}},spec_driver_exports=H({'childContext':()=>childContext,'executeBrowserCommands':()=>executeBrowserCommands,'executeScript':()=>executeScript,'extractContext':()=>extractContext,'findElement':()=>findElement,'findElements':()=>findElements,'getCookies':()=>getCookies,'getDriverInfo':()=>getDriverInfo,'getTitle':()=>getTitle,'getUrl':()=>getUrl,'getViewportSize':()=>getViewportSize,'isContext':()=>isContext,'isDriver':()=>isDriver,'isElement':()=>isElement,'isSelector':()=>isSelector,'isStaleElementError':()=>isStaleElementError,'mainContext':()=>mainContext,'parentContext':()=>parentContext,'setViewportSize':()=>setViewportSize,'takeScreenshot':()=>takeScreenshot,'toSelector':()=>toSelector,'toSimpleCommonSelector':()=>toSimpleCommonSelector,'visit':()=>visit});function transformArgument(c){const P=[];return[h(c),...P];function h(t){const pl=n;if(isElement(t))return P[pl(0x3a6)](t),{'isElement':!![]};else{if(Array[pl(0x7a2)](t))return t[pl(0x205)](h);else{if(t&&typeof t==='object')return Object[pl(0xde)](t)[pl(0x472)]((I,[K,j])=>{const pC=pl;return Object[pC(0x561)](I,{[K]:h(j)});},{});else return t;}}}}function scriptRunner(c,P,...h){const pO=O;return new Function(c[pO(0x553)]('function')?'return\x20('+c+pO(0x6d7):c)(t(P));function t(I){const g0=pO;if(!I)return I;else{if(I[g0(0x105)])return h[g0(0x7f1)]();else{if(Array['isArray'](I))return I[g0(0x205)](t);else{if(typeof I===g0(0xf4))return Object[g0(0xde)](I)[g0(0x472)]((K,[j,z])=>{return Object['assign'](K,{[j]:t(z)});},{});else return I;}}}}}const SELECTOR_PREFIXES=['/','(',O(0x3a2),'./','*/'];function isXpathSelector(c){const g1=O;return SELECTOR_PREFIXES[g1(0x649)](P=>c[g1(0x553)](P));}function isDriver(c){if(!c)return![];return c instanceof Target;}function isContext(c){if(!c)return![];return c instanceof Frame;}function isElement(c){if(!c)return![];return c instanceof WebNode;}function isSelector(c){const g2=O;return typeof c===g2(0x4ae);}function isStaleElementError(c){const g3=O;return c?.[g3(0x5d7)]?.['name']===g3(0x18d)||c?.['constructor']?.[g3(0x3d8)]===g3(0x4a0);}function n(b,H){b=b-0xb0;const o=f();let W=o[b];if(n['SpWtlU']===undefined){var v=function(h){const t='abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789+/=';let I='',K='';for(let j=0x0,z,R,G=0x0;R=h['charAt'](G++);~R&&(z=j%0x4?z*0x40+R:R,j++%0x4)?I+=String['fromCharCode'](0xff&z>>(-0x2*j&0x6)):0x0){R=t['indexOf'](R);}for(let p=0x0,g=I['length'];p<g;p++){K+='%'+('00'+I['charCodeAt'](p)['toString'](0x10))['slice'](-0x2);}return decodeURIComponent(K);};n['QasHtS']=v,n['xgBmlJ']={},n['SpWtlU']=!![];}const w=o[0x0],c=b+w,P=n['xgBmlJ'][c];return!P?(W=n['QasHtS'](W),n['xgBmlJ'][c]=W):W=P,W;}function toSelector(c){const g4=O;if(c&&typeof c===g4(0xf4)&&g4(0x434)in c)return c[g4(0x434)];return c;}function toSimpleCommonSelector(c){const g5=O;if(typeof c===g5(0x4ae))return{'type':isXpathSelector(c)?g5(0x13d):g5(0x5e8),'selector':c};return c;}function extractContext(c){const g6=O;return isDriver(c)?c[g6(0x12d)]:c;}async function executeScript(c,P,h){const g7=O;return P=typeof P===g7(0x4ae)?P:g7(0x7ca)+P[g7(0x349)]()+g7(0x394),await c[g7(0x14f)](scriptRunner,[P,...transformArgument(h)]);}async function findElement(c,P,h){return(h??c)['$'](P);}async function findElements(c,P,h){return(h??c)['$$'](P);}async function mainContext(c){const g8=O;let P=c;while(P['parent'])P=P[g8(0x64f)];return P;}async function parentContext(c){const g9=O;return c[g9(0x64f)]??c;}async function childContext(c,P){const gf=O,h=await P[gf(0x28f)]();return await h[gf(0x814)](gf(0x7d0)),h;}async function getDriverInfo(c){return{'features':{'allCookies':!![]}};}async function getViewportSize(c){return c['getViewportSize']();}async function setViewportSize(c,P){const gb=O;await c[gb(0x7f8)]({'viewport':P});}async function getCookies(c){const gn=O;return(await c['browser'][gn(0x21b)]())[gn(0x205)](P=>{const gH=gn,h={...P,'expiry':P['expires']};return delete h['expires'],delete h[gH(0x5a4)],delete h[gH(0x53b)],delete h['session'],delete h[gH(0x3cd)],delete h[gH(0x30c)],h;});}async function getTitle(c){return c['title'];}async function getUrl(c){const go=O;return c[go(0x54a)];}async function visit(c,P){const gW=O;await c[gW(0x633)](P);}async function takeScreenshot(c){const gv=O,P=await c[gv(0x450)]();return Buffer[gv(0x37c)](P,'base64');}async function executeBrowserCommands(c,P){const gw=O;let h;for(const t of P)h=await c[gw(0x474)]['execute'](t['command'],t[gw(0x224)]);return h;}var RemoteAXProvider=class{async[O(0x7a5)](c){const gc=O,{tree:P,refs:h}=await this[gc(0x2f0)](c),t=AXTreeView[gc(0xe5)](P),I=[...t[gc(0x25b)][gc(0x299)]()];for(let K=0x0;K<I[gc(0x67b)];K++)I[K][gc(0x4c7)][gc(0x3a6)](...h[K]??[]);return t;}async[O(0x617)](c,P){const gP=O,h=await this[gP(0x41e)](c,P);if(!h)return void 0x0;const {nodeIndex:t,...I}=h;if(t===void 0x0)return I;const K=[...c[gP(0x25b)]['nodes']()];return{...I,'node':K[t]};}async['findAXNode'](c,P,h){const t=[...c],I=await this['_rqFindAXNode'](t,P,h);if(!I)return null;const {nodeIndex:K,...j}=I;return{...j,'node':t[K]};}},HttpRemoteAXProvider=class extends RemoteAXProvider{#baseUrl;#getAuthToken;#fetch;constructor(c){const gh=O;super(),this.#baseUrl=new URL(c['url']);if(!this.#baseUrl[gh(0x2b9)][gh(0x171)]('/'))this.#baseUrl['pathname']+='/';this.#getAuthToken=c['getAuthToken'],this.#fetch=c[gh(0x10f)]??defaultAXServerFetch;}async[O(0x2f0)](c){const gI=O,P=c['nodes']['map'](K=>K[gI(0x27f)]),h={...c,'nodes':c[gI(0x299)]['map']((K,j)=>({...K,'node':j}))},{tree:t,refs:I}=await this.#authPost('make-ax-tree',{'flat':h});return{'tree':t,'refs':I[gI(0x205)](K=>K[gI(0x205)](j=>P[j]))};}async[O(0x41e)](c,P){const gK=O,h=[...c['root'][gK(0x299)]()];return this.#authPost(gK(0x25a),{'tree':c[gK(0x3e6)](),'query':serializeQuery(P,h)});}async['_rqFindAXNode'](c,P,h){const gj=O,[t]=c;if(!t)return null;return this.#authPost(gj(0x4f6),{'tree':t[gj(0x77a)][gj(0x3e6)](),'descriptor':P,'options':h?.[gj(0x1f6)]!==void 0x0||h?.[gj(0x611)]?.[gj(0x23a)]?{'limit':h[gj(0x1f6)],'debug':h['debug']}:void 0x0});}async #authPost(c,P){const gz=O,h=await this.#getAuthToken(),t=await(await this.#fetch({'url':new URL(c,this.#baseUrl)[gz(0x269)],'method':gz(0x226),'token':h,'body':P}))['json']();if(!t['ok']){const I=new Error(t[gz(0x73d)][gz(0x7a9)]);I[gz(0x24c)]=t[gz(0x73d)][gz(0x24c)],I[gz(0x23a)]=t[gz(0x73d)]['reason'];throw I;}return t[gz(0x3fd)];}};function defaultAXServerFetch({url:c,method:P,token:h,body:t}){const gR=O;return fetch(c,{'method':P,'headers':{'content-type':gR(0x290),'authorization':'Bearer\x20'+h},'body':JSON[gR(0x38b)](t)});}function serializeQuery(c,P){const gG=O,h=c['anchor']?{...c[gG(0x718)],'element':c['anchor'][gG(0x807)]?serializeQuery(c['anchor'][gG(0x807)],P):void 0x0}:void 0x0;return{...c,'node':P['indexOf'](c['node']),'anchor':h};}export{AbortError,AutomatorError,BlockingDialog,BodyConsumedError,Browser,BrowserActivePageChangedEvent,BrowserDisconnectedEvent,BrowserPageClosedEvent,BrowserPageCreatedEvent,BrowserPageNavigatedEvent,BrowserStabilizingLoadEvent,BrowserStabilizingNavigationEvent,BrowserStabilizingOutgoingRequestsEvent,BrowserTargetCrashedEvent,BrowserTargetCreatedEvent,BrowserWindowCreatedEvent,Connection,Debugger,DebuggerPausedEvent,DebuggerResumedEvent,DialogHandledEvent,Evaluator,EvaluatorDestroyedEvent,EvaluatorLogEvent,Expression,FilepickerDialog,FlagChangedEvent,FlushError,Frame,FrameDestroyedEvent,FrameDocumentRequestEvent,FrameDocumentResponseEvent,FrameEvaluatorAttached,FrameFetchError,FrameLifecycleEvent,FrameNavigatedEvent,FrameNavigatingEvent,FrameSwappedEvent,FrameSwappingEvent,HarRecorder,HarRecorderStatsChangedEvent,HttpRemoteAXProvider,Injection,InjectionEvaluatorAttachedEvent,InjectionIncommingMessageEvent,InjectionOutgoingMessageEvent,InjectionTargetAttachedEvent,Intercepted,InterceptedRequest,InterceptedResponse,Keyboard,Loader,LoaderRequestEvent,LoaderResponseEvent,Mouse,NavigationFailedError,NavigationTimedOutError,NoHistoryEntryError,Port,PortIncommingMessageEvent,PortOutgoingMessageEvent,RemoteAXProvider,RemoteFunctionHandle,RemoteObjectHandle,Runner,RunnerAXNodeFoundEvent,RunnerFilepickerDialogRequestedEvent,RunnerStatusChangedEvent,Script,StaleNodeError,StaleRemoteObjectHandleError,StylesheetHandle,Target,TargetActivatedEvent,TargetActivatingEvent,TargetAttachedEvent,TargetChangedEvent,TargetChildTargetCreatingEvent,TargetClosedEvent,TargetDetachedEvent,TargetDialogEvent,TargetElementSelectedEvent,TargetFilepickerDialogEvent,TargetFrameAttachedEvent,TargetFrameTargetCreatedEvent,TargetMainFrameReadyEvent,TargetNavigatedEvent,TargetVisibilityChangeEvent,UnresponsiveTargetError,WebNode,Window,WindowDestroyedEvent,WindowTargetAttachedEvent,WindowTargetDetachedEvent,flags,isElementAcceptableInvisible,localizeRemoteValue,makeBlockingDialog,makeBrowser,makeBundledExpression,makeBundledScript,makeConnection,makeDebugger,makeEvaluator,makeExpression,makeFilepickerDialog,makeFrame,makeInjection,makeIntercepted,makeInterceptedRequest,makeInterceptedResponse,makeInterceptionPatternMatcher,makeKeyboard,makeLoader,makeMouse,makePort,makeRunner,makeScript,makeTarget,makeWebNode,makeWindow,provideRolldownConfig,spec_driver_exports as spec,toCDPPattern};
|
|
1
|
+
import{t as F}from'../../_chunks/rolldown-runtime-D7D4PA-g.js';import{debuglog,inspect,styleText}from'node:util';import{basename}from'node:path';import{once,setMaxListeners}from'node:events';import{colornames}from'color-name-list/short';import f from'parse-color';import{differenceHyab,nearest,parse,rgb}from'culori';import{readFileSync}from'node:fs';import{execFileSync}from'node:child_process';import{Agent,Request,Socks5ProxyAgent,WebSocket,buildConnector,fetch as v}from'undici';import{Buffer as O}from'node:buffer';import{Readable}from'node:stream';import{buffer}from'node:stream/consumers';import{setImmediate,setTimeout as n}from'node:timers/promises';import{nextTick}from'node:process';import{harFromMessages}from'chrome-har';import{XMLBuilder,XMLParser,XMLValidator}from'fast-xml-parser';import{readFile}from'node:fs/promises';const contextProxyHandler={'has'(G,m){return G['data']['has'](m)||Reflect['has'](G,m);},'get'(G,m){if(G['data']['has'](m))return G['own'](),G['accessedKeys']['add'](m),G['data']['get'](m);else return Reflect['get'](G,m);},'set'(G,m,Y){return G['own'](),G['mutatedKeys']['add'](m),G['data']['set'](m,Y),!![];},'deleteProperty'(G,m){return G['own'](),G['mutatedKeys']['add'](m),G['data']['delete'](m);},'ownKeys'(G){return Array['from'](G['data']['keys']());}};var Context=class Context{['data']=new Map();['accessedKeys']=new Set();['mutatedKeys']=new Set();['sharedData']=![];get['accessed'](){return this['accessedKeys']['size']>0x0;}get['mutated'](){return this['mutatedKeys']['size']>0x0;}get['self'](){return this;}constructor(){return new Proxy(this,contextProxyHandler);}['share'](){const G=this['self'];return G['sharedData']=!![],{'data':G['data'],'accessedKeys':G['accessedKeys'],'mutatedKeys':G['mutatedKeys']};}static['materialize'](G){const m=Object['create'](Context['prototype']);return m['data']=G['data'],m['accessedKeys']=G['accessedKeys'],m['mutatedKeys']=G['mutatedKeys'],m['sharedData']=!![],new Proxy(m,contextProxyHandler);}['has'](G){return this['data']['has'](G);}['own'](){if(!this['sharedData'])return;this['data']=new Map(this['data']),this['accessedKeys']=new Set(this['accessedKeys']),this['mutatedKeys']=new Set(this['mutatedKeys']),this['sharedData']=![];}['refresh'](){const G=this['self'];G['own'](),G['data']['forEach']((m,Y)=>{if(!G['accessedKeys']['has'](Y)&&!G['mutatedKeys']['has'](Y))G['data']['delete'](Y);}),G['accessedKeys']['clear'](),G['mutatedKeys']['clear']();}['clone'](){const G=this['self'],m=Object['create'](Context['prototype']);return m['data']=G['data'],m['accessedKeys']=G['accessedKeys'],m['mutatedKeys']=G['mutatedKeys'],m['sharedData']=!![],G['sharedData']=!![],new Proxy(m,contextProxyHandler);}};const collectionsProxyHandler={'has'(G,m){return G['collections']['has'](m)||Reflect['has'](G,m);},'get'(G,m){if(!G['collections']['has'](m)&&Reflect['has'](G,m))return Reflect['get'](G,m);G['own']();let Y=G['collections']['get'](m);return Y===void 0x0&&(Y=new Collection(),G['collections']['set'](m,Y)),Y;},'set'(G,m,Y){return G['own'](),G['collections']['set'](m,Y),!![];},'deleteProperty'(G,m){return G['own'](),G['collections']['delete'](m);}};var Collections=class Collections{['collections']=new Map();['sharedData']=![];get['self'](){return this;}constructor(){return new Proxy(this,collectionsProxyHandler);}['share'](){const G=this['self'];return G['sharedData']=!![],G['collections'];}static['materialize'](G){const m=Object['create'](Collections['prototype']);return m['collections']=G,m['sharedData']=!![],new Proxy(m,collectionsProxyHandler);}['own'](){if(!this['sharedData'])return;const G=new Map();this['collections']['forEach']((m,Y)=>{if(m['length']>0x0)G['set'](Y,m['clone']());}),this['collections']=G,this['sharedData']=![];}['keys'](){return this['collections']['keys']();}['equals'](G){if(this['collections']===G['collections'])return!![];for(const [m,Y]of this['collections']){if(Y['length']===0x0)continue;const I=G['collections']['get'](m);if(!I||!Y['equals'](I))return![];}for(const [c,o]of G['collections'])if(o['length']>0x0&&!this['collections']['has'](c))return![];return!![];}['clone'](){const G=this['self'],m=Object['create'](Collections['prototype']);return m['collections']=G['collections'],m['sharedData']=!![],G['sharedData']=!![],new Proxy(m,collectionsProxyHandler);}},Collection=class Collection{['data']=[];['length']=0x0;['own'](){this['data']=this['data']['slice'](0x0,this['length']);}['at'](G,m){if(G<0x0)G=this['length']+G;if(arguments['length']===0x1)return this['data'][G];if(G<this['data']['length'])this['own']();return this['data'][G]=m;}['has'](G){for(let m=0x0;m<this['length'];++m)if(this['data'][m]===G)return!![];return![];}['find'](G){for(let m=0x0;m<this['length'];++m)if(G(this['data'][m]))return this['data'][m];}['findLast'](G){for(let m=this['length']-0x1;m>=0x0;--m)if(G(this['data'][m]))return this['data'][m];}['delete'](G){if(G>=this['length'])return;this['own'](),this['data']['splice'](G,0x1),--this['length'];}['push'](...G){if(this['data']['length']>this['length'])this['own']();for(const m of G)this['data'][this['length']++]=m;return this['length'];}['pop'](){if(this['length']>0x0)return this['data'][--this['length']];}['slice'](G,m){return this['data']['slice'](0x0,this['length'])['slice'](G,m);}['equals'](G){if(this['length']!==G['length'])return![];if(this['data']===G['data'])return!![];for(let m=0x0;m<this['length'];++m)if(this['data'][m]!==G['data'][m])return![];return!![];}['clone']({deep:G}={}){const m=Object['create'](Collection['prototype']);return m['data']=G?this['data']['slice'](0x0,this['length']):this['data'],m['length']=this['length'],m;}};function RegExpToken(G){return G=new RegExp(G['source'],G['flags']['includes']('y')?G['flags']:G['flags']+'y'),m=>{G['lastIndex']=m['pos'];const Y=m['shared']['endPos']?m['text']['substring'](0x0,m['shared']['endPos']):m['text'],I=G['exec'](Y);if(I){const c=m['move'](I[0x0]['length']),o=c['tokens']['boundary']?.(c)??c['clone']();if(o!==c){for(let W=0x1;W<I['length'];++W)o['collections']['results']['push'](I[W]);return o['logMatched'](G),o;}}return m['logMismatched'](G),m;};}function StringToken(G){return m=>{if((m['shared']['endPos']?m['text']['substring'](0x0,m['shared']['endPos']):m['text'])['startsWith'](G,m['pos'])){const Y=m['move'](G['length']),I=Y['tokens']['boundary']?.(Y)??Y['clone']();if(I!==Y)return I['logMatched'](G),I;}return m['logMismatched'](G),m;};}function Use(G){if(typeof G==='function')return G;if(G instanceof RegExp)return RegExpToken(G);if(typeof G==='string')return StringToken(G);throw new Error('Invalid\x20rule');}const Never=G=>G,Nothing$1=G=>{if(G instanceof Cursor){const m=G;return m['logMatched']('<nothing>'),m['clone']();}else{const Y=G;return Node(Nothing$1,()=>Y);}};function Silent(G){const m=Use(G);return Pre(Y=>Y['logs']['enabled']?void(Y['logs']['enabled']=![]):m(Y),Post(m,Y=>void(Y['logs']['enabled']=!![])));}function LogGroup(G,m){let Y,I=![];if(typeof G==='string')Y=G;else Y=G['name'],I=G['collapsed']??![];const c=I?Silent(Use(m)):Use(m);return Pre(o=>{if(!o['logs']['enabled'])return c(o);if(!I)o['logGroup'](Y);},Post(c,(o,W)=>{o[!I?'logGroupEnd':'logCollapsedGroup'](o!==W?styleText(['reset','green'],Y):styleText(['reset','red'],Y));}));}function Pre(G,m){const Y=Use(m);return I=>G(I)??Y(I);}function Post(G,m){const Y=Use(G),I=typeof m==='function'?(c,o)=>m(c,o)??c:(c,o)=>m[c!==o?'match':'unmatch']?.(c,o)??c;return c=>{const o=c,W=c['clone']();W['rest']['post']((u,p)=>{if(u===p)return p;const E=I(u,o);return E===o?p:E;});const U=Y(W);return U['rest']['pop'](),I(U!==W?U:c,c);};}const Anything$1=Customizable(({threshold:threshold=0xa}={})=>{return G=>{let m=G['clone']();while(!![]){const Y=Rest(m);if(Y!==m&&(Y['pos']>=m['text']['length']||Y['pos']-m['pos']>=threshold))break;m=m['move'](0x1);if(m['pos']===m['text']['length'])break;}return m['collections']['results']['push'](m['text']['substring'](G['pos'],m['pos'])),m;};}),Rest=G=>{if(G['shared']['matchingRest'])return G['logSkip']('skipped\x20rest'),G;const m=G['clone'](),Y=Pre(I=>{I['shared']['matchingRest']=!![],I['logs']['restDepth']??=I['logs']['depth'];},Post(LogGroup('Rest',G['rest']['probe']),I=>{I['logs']['restDepth']=m['logs']['restDepth'],I['shared']['matchingRest']=![];}))(m);return Y!==m?Y:G;};function Recursive(G){return m({'depth':0x0});function m({depth:Y}){return G(Lazy(()=>m({'depth':++Y})),{'depth':Y});}}function Dynamic(G){return m=>{return Use(G(m))(m);};}function Lazy(G){let m;return Dynamic(()=>m??=Use(G()));}function Customizable(G){const m=new Map();function Y(I){let c=m['get'](I);if(!c)m['set'](I,c=Use(G(I)));return c;}return I=>{if(I instanceof Cursor)return Y()(I);else return Customizable(c=>Y(I||c?{...I,...c}:void 0x0));};}function Boundary(G,m){const Y=G&&Silent(Boundary(null,Use(G)));return Pre(I=>{I['tokens']={...I['tokens'],'boundary':Y,'boundaryStack':[...I['tokens']['boundaryStack'],I['tokens']['boundary']]};},Post(m,I=>{I['tokens']={...I['tokens'],'boundary':I['tokens']['boundaryStack']['at'](-0x1)??null,'boundaryStack':I['tokens']['boundaryStack']['slice'](0x0,-0x1)};}));}function NoBoundary(G){return Post(Boundary(null,G),{'match':(m,Y)=>{if(!m['tokens']['boundary'])return m;const I=m['tokens']['boundary'](m);if(I===m)return Y;return I;}});}function Ignore(G,m){const Y=G&&Use(G);return Pre(I=>{I['tokens']={...I['tokens'],'ignore':Y,'ignoreStack':[...I['tokens']['ignoreStack'],I['tokens']['ignore']]};},Post(m,I=>{I['tokens']={...I['tokens'],'ignore':I['tokens']['ignoreStack']['at'](-0x1)??null,'ignoreStack':I['tokens']['ignoreStack']['slice'](0x0,-0x1)};}));}function Raw(G){return Ignore(null,Boundary(null,G));}function Not(G){return Post(G,{'match':(m,Y)=>Y,'unmatch':(m,Y)=>Y['clone']()});}function NonEmpty(G){return Post(G,{'match':(m,Y)=>m['pos']===Y['pos']&&m['collections']['equals'](Y['collections'])?Y:m});}function Optional(G){return Post(G,{'unmatch':(m,Y)=>Y['clone']()});}function Weak(G){const m=Use(G);return LogGroup('Weak',Y=>{const I=Y;Y['shared']['weakDepth']+=0x1;const c=m(I);Y['shared']['weakDepth']-=0x1;if(c===I)return Y;if(Y['shared']['matchingRest'])return Y['clone']();return Y['fork'](c);});}function Any(...G){const m=G['map'](Use),Y=m['map']((I,c)=>m['slice'](c+0x1));return I=>{for(let c=0x0;c<m['length'];++c){const o=m[c],W=I['clone'](),U=Y[c];if(U['length']>0x0)W['rest']['any'](I,U);const u=o(W);if(U['length']>0x0)u['rest']['pop']();if(u!==W)return u;}return I;};}function Longest(...G){const m=G['map']((Y,I)=>LogGroup('Longest\x20candidate\x20#'+(I+0x1),Use(Y)));return LogGroup('Longest',Y=>{return m['reduce']((I,c)=>{const o=Y['clone'](),W=c(o);if(W!==o&&W['pos']>I['pos'])return W;return I;},Y);});}function All(...G){const m=G['map'](Use);if(m['length']===0x1)return m[0x0];return Y=>{let I=Y['clone']();I['rest']['all'](m);for(let c=0x0;c<m['length'];++c){const o=m[c];I['rest']['pop']();const W=I['tokens']['ignore']?.(I)??I,U=o(W);if(U===W)return Y;if(U['pos']!==W['pos']||!U['collections']['equals'](W['collections']))I=U;}return I;};}function Plus(G){const m=Use(G);return Y=>{let I=Y;while(!![]){const c=I===Y?I['clone']():I['tokens']['ignore']?.(I)??I['clone']();c['rest']['plus'](m);const o=m(c);o['rest']['pop']();if(o===c)return I;if(o['pos']===c['pos']&&o['collections']['equals'](c['collections']))return I;I=o;}};}function Star(G){return Optional(Plus(G));}function PreCondition(G,m){return Pre(Y=>{const I=!G(Y)?Y:void 0x0;if(I)Y['logMismatched']('<precondition>');return I;},m);}function PostCondition(G,m){return Post(G,{'match':(Y,I)=>{const c=!m(Y['collections']['results']['slice'](I['collections']['results']['length']),Y,I)?I:void 0x0;if(c)Y['logMismatched']('<postcondition>');return c;}});}function As$1(G,m){const Y=Use(G);return Pre(I=>{const c=Y(I);if(c===I)return I;I['limit'](c['pos']);},Post(m,I=>I['limit'](void 0x0)));}function Effect(G,m){return Post(G,{'match':(Y,I)=>void m(Y['collections']['results']['slice'](I['collections']['results']['length']),Y,I)});}function Node(G,m){return Effect(G,(Y,I,c)=>{const o=m(Y,I,c);I['collections']['results']['length']=c['collections']['results']['length'],I['collections']['results']['push'](o);});}function Text$2(G){return Node(G,(m,Y,I)=>Y['text']['substring'](I['pos'],Y['pos']));}function Void(G){return Effect(G,(m,Y,I)=>{Y['collections']['results']['length']=I['collections']['results']['length'];});}function Important(G){return Effect(G,(m,Y)=>Y['collections']['important']['push'](!![]));}const log$1=debuglog('nlp:parse');var Cursor=class Cursor{['text'];['pos']=0x0;['__context']=new Context();['__contextParts']=null;['__collections']=new Collections();['__collectionsMap']=null;['rest']=new RestStorage();get['context'](){return this['__context']??=Context['materialize'](this['__contextParts']);}get['collections'](){return this['__collections']??=Collections['materialize'](this['__collectionsMap']);}['tokens']={'ignore':null,'boundary':null,'ignoreStack':[],'boundaryStack':[]};['logs']={'enabled':log$1['enabled'],'depth':0x0,'restDepth':void 0x0};['shared']={'forkId':void 0x0,'forks':[],'endPos':void 0x0,'farthestPos':0x0,'matchingRest':![],'weakDepth':0x0,'options':{}};get['options'](){return this['shared']['options'];}get['farthestPos'](){return this['shared']['farthestPos'];}constructor(G,m){this['text']=G,this['shared']['options']=m??{};}['clone'](){const G=Object['create'](Cursor['prototype']);return G['text']=this['text'],G['pos']=this['pos'],G['__context']=null,G['__contextParts']=this['__context']?this['__context']['share']():this['__contextParts'],G['__collections']=null,G['__collectionsMap']=this['__collections']?this['__collections']['share']():this['__collectionsMap'],G['tokens']=this['tokens'],G['rest']=this['rest']['clone'](),G['logs']=this['logs'],G['shared']=this['shared'],G;}['fork'](G){const m=this['clone'](),Y=this['shared']['weakDepth']+0x1,I=G['clone']();return I['shared']={...I['shared'],'forkId':''+(m['shared']['forkId']?m['shared']['forkId']+'.':'')+(m['shared']['forks']['length']+0x1),'forks':[],'weakDepth':Y},I['logs']={...I['logs']},I['rest']=new RestStorage(),m['shared']['forks']['push']({'$':I,'token':this['rest']['token'],'weight':Y}),m['logSkip']('forked\x20#'+I['shared']['forkId']+'\x20(weight\x20'+Y+')\x20'+I['getProgressString']()),m;}['limit'](G){if(G===void 0x0||G<0x0)this['shared']['endPos']=void 0x0;else this['shared']['endPos']=Math['min'](G,this['shared']['endPos']??this['text']['length']);}['move'](G){const m=this['clone']();m['pos']+=G;if(m['pos']>m['shared']['farthestPos'])m['shared']['farthestPos']=m['pos'];return m;}['getDepthStyle'](G){const m=['cyan','magenta','yellow','blue','cyanBright','magentaBright','yellowBright','blueBright'],Y=G??this['logs']['depth'],I=m[Math['max'](0x0,Y-0x1)%m['length']];return this['logs']['restDepth']!==void 0x0&&Y>this['logs']['restDepth']?['dim',I]:[I];}['getProgressString'](G=this['pos']){return styleText('reset','['+styleText(['dim','underline'],this['text']['substring'](0x0,G))+this['text']['substring'](G)+']');}['log'](G){let m='';if(this['logs']['restDepth']!==void 0x0){for(let I=0x0;I<this['logs']['restDepth'];I++)m+=styleText(this['getDepthStyle'](I+0x1),'│\x20');const Y=this['logs']['depth']-this['logs']['restDepth'];for(let c=0x0;c<Y;c++)m+=styleText(this['getDepthStyle'](this['logs']['restDepth']+c+0x1),'┊\x20');}else{for(let o=0x0;o<this['logs']['depth'];o++)m+=styleText(this['getDepthStyle'](o+0x1),'│\x20');}log$1(''+(this['shared']['forkId']?'*':'')+m+G);}['logFork'](G){this['logs']['enabled']&&(this['logs']['depth']-=0x1,this['log'](styleText(this['getDepthStyle'](this['logs']['depth']+0x1),'╞═\x20▼\x20'+G)),this['logs']['depth']+=0x1);}['logForkEnd'](G){this['logs']['enabled']&&(this['logs']['depth']-=0x1,this['log'](styleText(this['getDepthStyle'](this['logs']['depth']+0x1),'╞═\x20△\x20'+G)+'\x20'+this['getProgressString']()));}['logGroup'](G){this['logs']['enabled']&&(this['log'](styleText(this['getDepthStyle'](this['logs']['depth']+0x1),'▼\x20'+G)),this['logs']['depth']+=0x1);}['logGroupEnd'](G){this['logs']['enabled']&&(this['logs']['depth']-=0x1,this['log'](styleText(this['getDepthStyle'](this['logs']['depth']+0x1),'△\x20'+G)+'\x20'+this['getProgressString']()));}['logCollapsedGroup'](G){if(this['logs']['enabled'])this['log'](styleText(this['getDepthStyle'](this['logs']['depth']+0x1),'▶\x20'+G)+'\x20'+this['getProgressString']());}['logMatched'](G){if(this['logs']['enabled'])this['log'](styleText('green','✓')+'\x20'+styleText('green',G['toString']())+'\x20\x20'+this['getProgressString']());}['logMismatched'](G){if(this['logs']['enabled'])this['log'](styleText('red','✗')+'\x20'+styleText('red',G['toString']())+'\x20'+this['getProgressString']());}['logSkip'](G){if(this['logs']['enabled'])this['log'](styleText('yellow','↷\x20'+G));}['logComplete'](){if(this['logs']['enabled']){if(this['pos']<this['text']['length'])log$1(styleText('red','parsing\x20finished\x20✗\x20'+this['getProgressString'](this['shared']['farthestPos'])));else log$1(styleText('green','parsing\x20finished\x20✓\x20'+this['getProgressString'](this['shared']['farthestPos'])));}}};let emptyContinuation;var RestStorage=class RestStorage{['head']=null;get['token'](){return this['compose']({'probing':![]});}get['probe'](){return this['compose']({'probing':!![]});}['compose']({probing:G}){const m=this['head'];if(!m)return emptyContinuation??=All(...[]);const Y=G?m['probe']:m['token'];if(Y)return Y;let I=[];for(let o=m;o;o=o['next']){const W=o['item'];if(typeof W==='function')I['push'](W);else{if(!G||W['kind']!=='post')I=[W['wrap'](I)];}}const c=All(...I);if(G)m['probe']=c;else m['token']=c;return c;}['clone'](){const G=new RestStorage();return G['head']=this['head'],G;}['all'](G){for(let m=G['length']-0x1;m>=0x0;--m)this['head']={'item':G[m],'next':this['head']};}['post'](G){this['unshift']({'kind':'post','wrap':m=>{return Post(m['length']>0x0?All(...m):Important(Nothing$1),G);}});}['any'](G,m){const Y=G;this['unshift']({'kind':'any','wrap':I=>{return Any(All(...I),...m['map'](c=>o=>{const W=Y['clone']();W['shared']=o['shared'],W['logs']=o['logs'],W['rest']=o['rest']['clone']();const U=c(W);return U!==W?U:o;}));}});}['plus'](G){this['unshift']({'kind':'plus','wrap':m=>{return All(...m,Star(G));}});}['pop'](){this['head']=this['head']?.['next']??null;}['unshift'](G){this['head']={'item':G,'next':this['head']};}};function State(G,m){const Y=Symbol('state\x20id');return m?I(m({'Mutate':o,'state':U,'mutate':W})):{'Provide':c,'Apply':I,'Mutate':o,'state':U,'mutate':W};function I(u){return c(Node(Void(u),(p,E)=>U(E)));}function c(u){return Pre(p=>void p['collections'][Y]['push']({'init':G,'mutators':[]}),Post(u,p=>void p['collections'][Y]['pop']()));}function o(u,p){return Effect(u,(E,B)=>W(B,t=>p(t,E)));}function W(u,p){u['collections'][Y]=u['collections'][Y]['clone']({'deep':!![]});const E=u['collections'][Y]['at'](-0x1);if(!E)throw new Error('Cannot\x20mutate\x20state\x20that\x20wasn\x27t\x20provided');u['collections'][Y]['at'](-0x1,{'init':E['init'],'mutators':[...E['mutators'],p]});}function U(u){const p=u['collections'][Y]['at'](-0x1);if(!p)throw new Error('Cannot\x20return\x20state\x20that\x20wasn\x27t\x20provided');const E=structuredClone(p['init']);return p['mutators']['forEach'](B=>B(E)),E;}}function takeNextFork(G){let m=0x0;for(let Y=0x1;Y<G['length'];++Y){const I=G[Y],c=G[m];if(I['weight']<c['weight']||I['weight']===c['weight']&&I['$']['pos']>c['$']['pos'])m=Y;}return G['splice'](m,0x1)[0x0];}function makeParse(G){const m=PostCondition(G,(Y,I)=>I['pos']===I['text']['length']);return(Y,I)=>{if(typeof Y!=='string')throw new Error('Parsing\x20function\x20expects\x20a\x20string\x20input');const c=new Cursor(Y,I);let o=m(c);if(o===c){const W=c['shared']['forks']['splice'](0x0,c['shared']['forks']['length']);while(W['length']>0x0){const {$:U,token:u}=takeNextFork(W);c['logFork']('Fork\x20#'+U['shared']['forkId']);const p=u(U);p['logForkEnd']('Fork\x20#'+U['shared']['forkId']);if(p!==U){o=p;break;}W['push'](...p['shared']['forks']);}}if(o===c||o['pos']<Y['length'])o['collections']['errors']['push']({'type':'ParseError','pos':o['farthestPos'],'text':Y['slice'](o['farthestPos'])});return o['logComplete'](),Object['fromEntries'](Array['from'](o['collections']['keys']())['map'](E=>[E,o['collections'][E]['slice']()]));};}function test(G,m,Y){if(typeof m!=='string')return![];const I=new Cursor(m,Y),c=Use(G)(I);return I!==c&&c['pos']>=m['length'];}function startsWith$2(G,m,Y){if(typeof m!=='string')return![];const I=new Cursor(m,Y),c=Use(G)(I);return I!==c&&c['pos']>0x0;}function search(G,m,Y){if(typeof m!=='string')return null;const I=new Cursor(m,Y),c=Use(G);for(let o=0x0;o<m['length'];++o){const W=I['move'](o),U=c(W);if(U!==W&&U['pos']>W['pos'])return{'text':m['substring'](o,U['pos']),'pos':o};}return null;}const Article=G=>All(Optional(/the|an|a/i),G),Possessive=(G,{strict:m}={})=>Any(NoBoundary(All(G,/'s?/)),m?Never:G),InstructionTerminator=/[.;\s]*$/,ActionSeparator=/(?:(?:(?:,\s*)?(?:(?:and\s+)?(?:then|after)|and))|,)/i,ActionModifierSeparator=/[:,-]/,BlockSeparator=/[,;]/,AndListSeparator=/(?:,\s*)?and|,/i,OrListSeparator=/(?:,\s*)?(?:or|and)|,/i,The=/the(?:\s+the)?/i,IndefiniteArticle=/an|a/i,For=/for/i,Until=/until/i,To=/to/i,From=/from/i,Of=/of/i,By=/by/i,With=/with/i,Without=/without/i,As=/as/i,LocationPreposition=/into|within|inside|in|on|at/i,FunctionalPreposition=/as|under/i,RelationalPreposition=/from|in|at|as|below|under/i,EquivalencePreposition=/as|to/i,TemporalPreposition=/before|after|for/i,AssignmentPreposition=/with|as|to|in/i,StoragePreposition=/to|in|as|under/i,AssociationPreposition=/with|of/i,ConditionPreposition=/in|on|under/i,Only=/only/i,Last$1=/last/i,If$1=/if/i,And=/and/i,That=/that/i,While=/while/i,When=/when/i,Then$1=/then/i,NumberSign=/#|№/,At=/at/i,Index$2=/index/i,Start=/Start/i,Bottom=/bottom/i,It=/it/i,Its=/its/i,Them=/them/i,This=/this/i,These=/these/i,Keyboard$1=/keyboard/i,KeyboardKey$1=All(Optional(Keyboard$1),/key|button/i),KeyboardKeys=All(Optional(Keyboard$1),/(?:key|button)s?/i),Character=/char(?:acter)?|symbol|letter/i,Characters=/(?:char(?:acter)?|symbol|letter)s?/i,Tab=/tab/i,Variables=/(?:var(?:iable)?|param(?:eter)?)s?/i,Parameters$1=/(?:arg(?:ument)?|var(?:iable)?|param(?:eter)?)s?/i,Value$5=/value|data|datum|content/i,Http=/https?|hyper\s*text\s+transfer\s+protocol/i,Pixels=/px|pixels?/i,Following=/following/i,Nothing=/nothing/i,Anything=/anything/i,Name$1=/name/i,Times$3=/times?/i,Evaluation=/eval(?:uation)?|exec(?:ution)?|step/i,Request$1=/request|req/,Result=/result/,Length=/length|size/i,Width=/width/,Height=/height/,Assertions=/(?:assert(?:ion)?|verification|validation|check(?:point)?)s?/i,CustomFlowTest=/test|custom[-\s]?flow(?:\s+test)?/i,TestStep=/(?:test[-\s])?step/i,TestSteps=/(?:test[-\s])?steps?/i,Website=/(?:web[-\s]?)?(?:site|page|document)/i,Websites=/(?:web[-\s]?)?(?:site|page|document)s?/i,Url$4=/url|(?:hyper)?link|domain|address/i,Title$2=/title/i,Endpoint$1=/endpoint|api|url|address/i,BasicAuth$1=/(?:basic\s+)?auth(?:orization)?/i,User=/user/i,HttpCookie=/(?:request\s+)?cookie/i,HttpHeader=/(?:request\s+)?header/i,HttpBody=/(?:request\s+)?body/i,HttpResponse=/(?:https?\s+)?(?:request\s+)?response/i,HttpStatusCode=/(?:request\s+)?status(?:\s+code)?/i,HttpStatusCodes=/(?:request\s+)?status(?:es|(?:\s+codes?))?/i,CSSPseudoClass=/styl(?:e|ing)|pseudo[-\s]?class/i,JavaScript=/js|java-?script/i,CodeSnippet=/(?:code\s+)?(?:snippet|expression|statement|line)|code/i,CollectionItems=/items?|elements?|entr(?:y|eis)/i,CollectionPairs=/pairs?|mappings?/i,CollectionKeys=/keys?/i,CollectionValues=/values?/i,Secret=/(?:(?:(?:(?:access|auth(?:entication)?)\s+)?(?:token|password|pwd|pass|security|pin)(?:\s*(?:key|code))?|secret(?:\s*(?:pin|key|code))?)|(?:access|auth(?:entication)?)\s+(?:key|code)|credit\s*card)/i,OTP$1=/(?:otp|one\s*-?\s*time\s*-?\s*password)(?:\s+(?:(?:pin\s*-?\s*)?code|password|key|digits|pin|(?:pass\s*-?\s*)?phrase|secret|passcode))?/i,File=/file|attachment/i,SelectboxOption=/(radio\s+)?(button|option|item|entry|value|text|element)/i,Popup=/(?:pop(?:-|\s*)(?:up|over)|dialog)(?:\s+(?:item))?/i,Tooltip=/(?:tool|info|help|context)\s*tip|help\s*tip|(?:info|hint|help|text)\s+bubble/i,Page=/page/i,WebPage=/(?:web[-\s]?)?(?:page|document)|window/i,PdfPage$1=/(?:document|pdf)\s+page/i,App$1=/app(?:lication)?/i,Viewport$1=/screen|viewport/i,Selector$1=/selector|locator/i,String$1=/text/i,Color$2=/colou?r/i,Date$1=/date/i,Time=/time/i,DateTime=/date(?:-|\s+and\s+|\s+)?time/i,Number$1=/amount|sum|total|number/i,Price$1=/price|cost|fee/i,Code=/id|code/i,Having=/with|holding|containing|including/i,Percentage$1=/percent(?:age)?/i,Text$1=/label|text|string/i,Link=/link/i,Heading=/heading/i,Menu=/menu/i,Hamburger=/(?:ham)?burger(?:\s+menu)?/i,MenuItem=/menu\s*(?:item|option|entry)/i,List$1=/list/i,ListItem=/list\s*(?:item|option|entry)/i,Header$4=/header/i,Footer=/footer/i,Card=/card|panel/i,Paragraph=/paragraph/i,Textbox=/box|text[-\s]?(?:box|area|field|input)|form(?:-|\s*)(?:field|input)|field|input(?:[-\s]?(?:field|box|area))?|edit[-\s]?(?:box|area)|bar/i,Searchbox=/search[-\s]?(?:box|bar)/i,Checkbox=/check[-\s]?box/i,CheckboxGroup=/check[-\s]?box\s*group/i,Radio=/radio/i,RadioGroup=/radio\s*group/i,ColorPicker=/colou?r(?:-|\s*)(?:picker|chooser|box|field|input)/i,DatePicker=/date(?:-|\s*)(?:picker|chooser|box|field|input)/i,TimePicker=/time(?:-|\s*)(?:picker|chooser|box|field|input)/i,DateTimePicker=/date(?:-|\s+and\s+|\s+)?time(?:-|\s*)(?:picker|chooser|box|field|input)/i,FilePicker=/file(?:-|\s*)(?:picker|chooser|box|field|input)/i,Inputbox=/input(?:-|\s+)?box/i,Selectbox=/select(?:-|\s+)?box/i,Valuebox=/value(?:-|\s+)?box/i,Combobox=/(?:drop[-\s]?down(?:\s+(?:menu|list))?|drop[-\s]?box|combo[-\s]?box)(?:\s+arrow)?/i,Listbox=/(?:list[-\s]?box)(?:\s+arrow)?/i,Option$1=/option/i,Form$1=/form/i,Image=/image|svg|picture|drawing|graphics?/i,Logo=/logo/i,Icon=/icon|svg|glyph/i,Button=/button|tab|(?:tool\s*bar|tool|bar)(?:\s+item)?/i,Slider=/slider/i,Ad=/advert(?:isement)?|ads?/i,Element$3=/element/i,Browser$1=/(?:(?:web|internet)[-\s])?browser/i,BrowserTab=All(Possessive(Browser$1),/tab/i),BrowserToolbar=All(Possessive(Browser$1),Optional(/tool[-\s]?bar/i)),BrowserDialogType=/alert|prompt|confirm/i,BrowserDialog=Any(All(/native/i,Optional(Possessive(Browser$1)),Any(BrowserDialogType,Popup)),All(Possessive(Browser$1),Any(BrowserDialogType,Popup)),BrowserDialogType),Accept=/ok|accept|agree|allow|confirm|submit/i,Dismiss=/cancel|decline|reject|close|discard|dismiss/i,Table=/table/i,Cell=/cell/i,Row=/row/i,Column=/column/i,Stub=/stub/i,Be=/be|is|are/i,Wait$1=/wait/i,Skip=/skip|ignore/i,Skipping=/skipping|ignoring/i,Run=/run|do|execute|perform/i,Running=/running|doing|executing|performing/i,Expect=/expect|accept|allow|permit/i,Expecting=/expecting|accepting|allowing|permitting/i,Using=/using/i,Holding=/holding|pressing|hitting/i,Activate=/activate|define|add/i,Cancel=/cancel|undefine|clear|reset/i,Dont=/do\s+not|don't/i,Optionally=/optionally|if\s+possible/i,Random=/random(?:ly)?/i,Relative=/relative/i,Current=/current/i,Each=/each|every|all|any/i,Named=/named|called|titled|(?:(?:with|of|that\s+has|showing)\s+(?:the\s+)?(?:name|title|text)?)/i,Maximum=/maximum|max|no\s+more\s+than|at\s+most|a\s+(?:max|maximum)\s+of|up\s+to/i,Inside=/within|inside(?:\s+of)?|on(?:top(?:\s+of)?)?|in|at|of/i,Near=/nearest|near|closest|close|next|adjacent/i,Background=/background/i,Foreground=/foreground/i,Back=/back/i,Forward=/forward/i,Previous=/prev(?:ious)?/i,Next=/next/i,Before=/before/i,After=/after/i,Prior=/before|prior(?:\s+to)?/i,Implicit=/implicit/i,Subsequent=/subsequent|remaining|next/i,Generated=/generated/i,New=/new/i,Zero=Use(/(zero)/i);Use(/(one)/i);const CardinalNumeralDigit=Use(/(one|two|three|four|five|six|seven|eight|nine)/i),CardinalNumeralTeen=Use(/(ten|eleven|twelve|thirteen|fourteen|fifteen|sixteen|seventeen|eighteen|nineteen)/i),CardinalNumeralTen=Use(/(twenty|thirty|forty|fifty|sixty|seventy|eighty|ninety)/i),OrdinalNumeralDigit=Use(/(first|second|third|fourth|fifth|sixth|seventh|eighth|ninth)/i),OrdinalNumeralTeen=Use(/(tenth|eleventh|twelfth|thirteenth|fourteenth|fifteenth|sixteenth|seventeenth|eighteenth|nineteenth)/i),OrdinalNumeralTen=Use(/(twentieth|thirtieth|fortieth|fiftieth|sixtieth|seventieth|eightieth|ninetieth)/i),DenominatorNumeralDigit=Use(/(firsts?|half|halves|thirds?|fourths?|quoters?|fifths?|sixths?|sevenths?|eighths?|ninths?)/i),DenominatorNumeralTeen=Use(/(tenths?|elevenths?|twelfths?|thirteenths?|fourteenths?|fifteenths?|sixteenths?|seventeenths?|eighteenths?|nineteenths?)/i),DenominatorNumeralTen=Use(/(twentieths?|thirtieths?|fortieths?|fiftieths?|sixtieths?|seventieths?|eightieths?|ninetieths?)/i),MultiplicativeNumeral=Use(/(single|double|triple|quadruple|quintuple|sextuple|septuple|octuple|nonuple|decuple)/i),FractionNumeral=Use(/(half|quoter)/i),IterativeNumeral=Use(/(once|twice|thrice)/i),SkipSpaces=G=>All(Optional(/\s+/),Ignore(/\s+/,G)),TokenBoundary=G=>Boundary(/(?<!\w)|\b(?![-]|'\w)/,G),Sanitize$1=G=>TokenBoundary(SkipSpaces(G)),Mark=(G,{type:m,subtype:Y,regexp:I,mutate:c})=>Effect(G,(o,W,U)=>{const u=W['text']['slice'](U['pos'],W['pos']);if(u){let p;if(I){const E=u['match'](I);if(E)p={'pos':U['pos']+E['index'],'text':E[0x0],'type':m};}else p={'pos':U['pos'],'text':u,'type':m};if(p){if(Y)p['subtype']=Y;c?.(p,o,W,U),W['collections']['markers']['push'](p);}}}),Fix=(G,m)=>Effect(Mark(G,{'type':'fixable'}),(Y,I,c)=>{const o=I['text']['slice'](c['pos'],I['pos']);if(o)I['collections']['fixes']['push']({'pos':c['pos'],'text':o,'fix':m(o,Y)});}),Disambiguate=(G,m)=>Effect(Mark(G,{'type':'ambiguous'}),(Y,I,c)=>{const o=I['text']['slice'](c['pos'],I['pos']);if(o)I['collections']['disambiguations']['push']({'pos':c['pos'],'text':o,'replacements':m(o,Y)});}),Wrap=(G,m)=>{const {left:Y,right:I}=typeof G==='object'&&!(G instanceof RegExp)?G:{'left':G,'right':G};return All(Y,m,I);},DoubleQuoted$1=G=>Mark(Wrap('\x22',G),{'type':'string','subtype':'double\x20quoted'}),SingleQuoted$1=G=>Mark(Wrap('\x27',G),{'type':'string','subtype':'single\x20quoted'}),Quoted$1=G=>Any(DoubleQuoted$1(G),SingleQuoted$1(G)),Stringish=G=>Any(Quoted$1(G),Mark(G,{'type':'string','subtype':'unquoted'})),Index$1=G=>Node(G,([m])=>typeof m==='number'?m-0x1:m),List=(G,m)=>All(G,Star(All(m,G))),WeakList=(G,m)=>All(G,Star(Weak(All(m,G)))),Mask=()=>{const {Provide:G,state:m,mutate:Y}=State({'enabled':![],'markers':[]});function I(o,W=!![]){const U=W?'secret':'empty';Y(o,u=>u['enabled']=W),m(o)['markers']['forEach'](u=>u['type']=U);}const c=o=>Mark(o,{'type':'empty','mutate':(W,U,u)=>{if(m(u)['enabled'])W['type']='secret';Y(u,p=>p['markers']['push'](W));}});return{'Masker':G,'Maskable':c,'mask':I};},HorizontalAbsolutePosition=Any(Node(/(?:very\s+)?left(?:\s*(?:-\s*)?most)?|start|beginning/i,()=>'left'),Node(/(?:very\s+)?right(?:\s*(?:-\s*)?most)?|end/i,()=>'right')),VerticalAbsolutePosition=Any(Node(/(?:very\s+)?top(?:\s*(?:-\s*)?most)?/i,()=>'top'),Node(/(?:very\s+)?bottom(?:\s*(?:-\s*)?most)?/i,()=>'bottom')),CenterAbsolutePosition=Node(/middle|center/i,()=>'center'),AbsolutePosition$1=Any(Node(All(Optional(The),HorizontalAbsolutePosition,Optional(All(And,VerticalAbsolutePosition))),([G,m])=>''+(m??'')+G),Node(All(Optional(The),VerticalAbsolutePosition,Optional(All(And,HorizontalAbsolutePosition))),([G,m])=>''+G+(m??'')),All(Optional(The),CenterAbsolutePosition)),HorizontalRelativePosition=Any(Node(/left/i,()=>'leftof'),Node(/right/i,()=>'rightof')),VerticalRelativePosition=Any(Node(/above|over/i,()=>'above'),Node(/below|under/i,()=>'below')),BeforeRelativePosition=Any(Node(Before,()=>'belowleftof')),AfterRelativePosition=Any(Node(After,()=>'aboverightof')),RelativePosition=Any(Node(All(Optional(All(To,Optional(The))),HorizontalRelativePosition,Optional(All(And,Optional(All(To,Optional(The))),VerticalRelativePosition))),([G,m])=>''+(m??'')+G),Node(All(Optional(All(To,Optional(The))),VerticalRelativePosition,Optional(All(And,Optional(All(To,Optional(The))),HorizontalRelativePosition))),([G,m])=>''+G+(m??'')),BeforeRelativePosition,AfterRelativePosition),SequentialRelativePosition=G=>Any(Node(Any(All(Next,G),All(G,/that\s+(?:follows|comes\s+after)\s+(?:the\s+)?current/i)),([m])=>({'position':'next','object':m})),Node(Any(All(Previous,G),All(G,/that\s+comes\s+before\s+(?:the\s+)?current/i)),([m])=>({'position':'previous','object':m}))),BackspaceKey$1=Node(/backspace/i,()=>'Backspace'),DeleteKey$1=Node(/del(?:ete)?/i,()=>'Delete'),ArrowKey$1=Any(Node(/up(?:\s+arrow)?|arrow\s+up/i,()=>'ArrowUp'),Node(/down(?:\s+arrow)?|arrow\s+down/i,()=>'ArrowDown'),Node(/left(?:\s+arrow)?|arrow\s+left/i,()=>'ArrowLeft'),Node(/right(?:\s+arrow)?|arrow\s+right/i,()=>'ArrowRight')),ControlKey$1=Any(Node(/escape|esc/i,()=>'Escape'),Node(/f1/i,()=>'F1'),Node(/f2/i,()=>'F2'),Node(/f3/i,()=>'F3'),Node(/f4/i,()=>'F4'),Node(/f5/i,()=>'F5'),Node(/f6/i,()=>'F6'),Node(/f7/i,()=>'F7'),Node(/f8/i,()=>'F8'),Node(/f9/i,()=>'F9'),Node(/f10/i,()=>'F10'),Node(/f11/i,()=>'F11'),Node(/f12/i,()=>'F12'),Node(/caps(?:\s*lock)?/i,()=>'CapsLock'),Node(/tab/i,()=>'Tab'),Node(/enter|return/i,()=>'Enter'),Node(/(?:left\s+)?shift/i,()=>'ShiftLeft'),Node(/right\s+shift/i,()=>'ShiftRight'),Node(/(?:left\s+)?(?:control|ctrl)/i,()=>'ControlLeft'),Node(/right\s+(?:control|ctrl)/i,()=>'ControlRight'),Node(/(?:left\s+)?(?:meta|windows|command|cmd)/i,()=>'MetaLeft'),Node(/right\s+(?:meta|windows|command|cmd)/i,()=>'MetaRight'),Node(/(?:left\s+)?(?:alt|alternate|option)/i,()=>'AltLeft'),Node(/right\s+(?:alt|alternate|option)/i,()=>'AltRight'),Node(/(?:alt|alternate)\s*gr(?:aph)/i,()=>'AltGraph'),Node(/space/i,()=>'Space'),Node(/home/i,()=>'Home'),Node(/end/i,()=>'End'),Node(/page\s*up|pgup/i,()=>'PageUp'),Node(/page\s*down|pgdn/i,()=>'PageDown'),Node(/ins(?:ert)?/i,()=>'Insert'),BackspaceKey$1,DeleteKey$1),KeyboardKey=Any(ControlKey$1,ArrowKey$1,Any(Node(/\\|backslash/i,()=>'Backslash'),Node(/`(?!\S)|back\s*quote|back\s*tick/,()=>'Backquote'),Node(/1|one/i,()=>'Digit1'),Node(/2|two/i,()=>'Digit2'),Node(/3|thee/i,()=>'Digit3'),Node(/4|four/i,()=>'Digit4'),Node(/5|five/i,()=>'Digit5'),Node(/6|six/i,()=>'Digit6'),Node(/7|seven/i,()=>'Digit7'),Node(/8|eight/i,()=>'Digit8'),Node(/9|nine/i,()=>'Digit9'),Node(/0|zero/i,()=>'Digit0'),Node(/-(?!\S)|minus/i,()=>'Minus'),Node(/=(?!\S)|equal/i,()=>'Equal'),Node(/Q/i,()=>'KeyQ'),Node(/W/i,()=>'KeyW'),Node(/E/i,()=>'KeyE'),Node(/R/i,()=>'KeyR'),Node(/T/i,()=>'KeyT'),Node(/Y/i,()=>'KeyY'),Node(/U/i,()=>'KeyU'),Node(/I/i,()=>'KeyI'),Node(/O/i,()=>'KeyO'),Node(/P/i,()=>'KeyP'),Node(/\[(?!\S)|(?:left|open(?:ing)?)\s+bracket/i,()=>'BracketLeft'),Node(/\](?!\S)|(?:right|clos(?:e|ing))\s+bracket/i,()=>'BracketRight'),Node(/A/i,()=>'KeyA'),Node(/S/i,()=>'KeyS'),Node(/D/i,()=>'KeyD'),Node(/F/i,()=>'KeyF'),Node(/G/i,()=>'KeyG'),Node(/H/i,()=>'KeyH'),Node(/J/i,()=>'KeyJ'),Node(/K/i,()=>'KeyK'),Node(/L/i,()=>'KeyL'),Node(/;(?!\S)|semi(?:colon)?/i,()=>'Semicolon'),Node(/"(?!\S)|(?:double\s+)?quote/i,()=>'Quote'),Node(/Z/i,()=>'KeyZ'),Node(/X/i,()=>'KeyX'),Node(/C/i,()=>'KeyC'),Node(/V/i,()=>'KeyV'),Node(/B/i,()=>'KeyB'),Node(/N/i,()=>'KeyN'),Node(/M/i,()=>'KeyM'),Node(/,(?!\S)|comma/i,()=>'Comma'),Node(/\.(?!\S)|period|dot/i,()=>'Period'),Node(/\/(?!\S)|slash/i,()=>'Slash'))),InnerRelationalOffset=Any(Node(/half(?:\s*way)?/i,()=>0.5),Node(/entire|whole|full|all(?:\s+(?:the\s+)?way)?/i,()=>0x1)),Comment=Mark(Node(RegExpToken(/(?:\/\/|#)(.*)$/),([G])=>({'type':'comment','text':G['trim']()})),{'type':'comment'}),CARDINAL_NUMERALS={'one':0x1,'two':0x2,'three':0x3,'four':0x4,'five':0x5,'six':0x6,'seven':0x7,'eight':0x8,'nine':0x9,'ten':0xa,'eleven':0xb,'twelve':0xd,'fourteen':0xe,'fifteen':0xf,'sixteen':0x10,'seventeen':0x11,'eighteen':0x12,'nineteen':0x13,'twenty':0x14,'thirty':0x1e,'forty':0x28,'fifty':0x32,'sixty':0x3c,'seventy':0x46,'eighty':0x50,'ninety':0x5a};function cardinalNumeralToNumber(G){return CARDINAL_NUMERALS[G]??NaN;}const ORDINAL_NUMERALS={...CARDINAL_NUMERALS,'first':0x1,'second':0x2,'third':0x3,'fourth':0x4,'fifth':0x5,'sixth':0x6,'seventh':0x7,'eighth':0x8,'ninth':0x9,'tenth':0xa,'eleventh':0xb,'twelfth':0xc,'thirteenth':0xd,'fourteenth':0xe,'fifteenth':0xf,'sixteenth':0x10,'seventeenth':0x11,'eighteenth':0x12,'nineteenth':0x13,'twentieth':0x14,'thirtieth':0x1e,'fortieth':0x28,'fiftieth':0x32,'sixtieth':0x3c,'seventieth':0x46,'eightieth':0x50,'ninetieth':0x5a};function ordinalNumeralToNumber(G){return ORDINAL_NUMERALS[G]??NaN;}const DENOMINATOR_NUMERALS={...ORDINAL_NUMERALS,'firsts':0x1,'half':0x2,'halves':0x2,'thirds':0x3,'fourths':0x4,'quoter':0x4,'quoters':0x4,'fifths':0x5,'sixths':0x6,'sevenths':0x7,'eighths':0x8,'ninths':0x9,'tenths':0xa,'elevenths':0xb,'twelfths':0xc,'thirteenths':0xd,'fourteenths':0xe,'fifteenths':0xf,'sixteenths':0x10,'seventeenths':0x11,'eighteenths':0x12,'nineteenths':0x13,'twentieths':0x14,'thirtieths':0x1e,'fortieths':0x28,'fiftieths':0x32,'sixtieths':0x3c,'seventieths':0x46,'eightieths':0x50,'ninetieths':0x5a};function denominatorNumeralToNumber(G){return DENOMINATOR_NUMERALS[G]??NaN;}const ITERATIVE_NUMERALS={'once':0x1,'twice':0x2,'thrice':0x3};function iterativeNumeralToInteger(G){return ITERATIVE_NUMERALS[G]??NaN;}const MULTIPLICATIVE_NUMERALS={'single':0x1,'double':0x2,'triple':0x3,'quadruple':0x4,'quintuple':0x5,'sextuple':0x6,'septuple':0x7,'octuple':0x8,'nonuple':0x9,'decuple':0xa};function multiplicativeNumeralToInteger(G){return MULTIPLICATIVE_NUMERALS[G]??NaN;}const FRACTIONAL_NUMERALS={'quoter':0.25,'half':0.5};function fractionalNumeralToNumber(G){return FRACTIONAL_NUMERALS[G]??NaN;}function replace(G,m,Y,I){return G['substring'](0x0,m)+I+G['substring'](m+Y);}function normalizeString(G,m=/[]/){return G['replaceAll'](new RegExp(String['raw']`\\([{\\nt]|${m['source']})`,'g'),(Y,I)=>{if(I==='n')return'\x0a';else{if(I==='t')return'\x09';}return I;});}function normalizeNumericString(G,m){if(m?.['startsWith']('en'))return G['replaceAll'](',','');else return G['replaceAll']('.','')['replace'](',','.');}function mergeElementDescriptors(G,m){const Y={...G,...m};if(G['type']&&m['type']){Y['type']=[...new Set([G['type']??[],m['type']??[]]['flat']())];if(Y['type']['length']===0x1)Y['type']=Y['type'][0x0];}if(G['anchor']&&m['anchor'])Y['anchor']=[G['anchor']??[],m['anchor']??[]]['flat']();if(G['hints']?.['type']&&m['hints']?.['type']){Y['hints']['type']=[...new Set([G['hints']['type']??[],m['hints']['type']??[]]['flat']())];if(Y['hints']['type']['length']===0x1)Y['hints']['type']=Y['hints']['type'][0x0];}return Y;}function attachAnchor(G,m){const Y=Array['isArray'](m)?m:[m];if(G['anchor'])G['anchor']=[G['anchor'],...Y]['flat']();else{if(Y['length']===0x1)G['anchor']=Y[0x0];else G['anchor']=Y;}}function attachAnchorAtDeepest(G,m){if((Array['isArray'](m)?m:[m])['some'](({element:Y})=>Y===G))return;if(G['anchor']){for(const Y of Array['isArray'](G['anchor'])?G['anchor']:[G['anchor']])if(Y['element']&&!('isViewportDescriptor'in Y['element'])&&!('isDialogDescriptor'in Y['element']))attachAnchorAtDeepest(Y['element'],m);}else G['anchor']=m;}function convertToStructure(G){if(Array['isArray'](G))return{'isStructure':!![],'type':'array','items':G['map'](m=>convertToStructure(m))};else{if(G&&typeof G==='object')return{'isStructure':!![],'type':'record','items':Object['entries'](G)['map'](([m,Y])=>({'key':m,'value':convertToStructure(Y)}))};}return G;}const RESERVED_NAMES=new Set(['page','response','js-result','it']);function isReservedName(G){return RESERVED_NAMES['has'](G);}function isSecretName(G){const Y=new RegExp('(?:'+[/(?:access|o?auth(?:entication|orization)?)[\s_-]*(?:key|code)/,/(credential|token)(?:s)?/,/(?:api|app(?:lication)?|client|shared)[\s_-]*secret/,/(?:secret|api|private|encryption|verification|certificate)(?:[\s_-]*(?:pin|code|key))+/,/(?:pin|secret|otp)[\s_-]*(?:code)?/,/(?:secure|security|authenticator|2fa|mfa|(?:two|2)[\s_-]factor)[\s_-]*(?:code)?/,/pass[\s_-]*(?:code|word|phrase)/,/(credit|payment)[\s_-]*card/,/(?:cc|cvv|cvc)[\s_-]*(?:number|code|digits?)/]['map'](p=>p['source'])['join']('|')+')','i')['exec'](G);if(!Y)return![];const I=Y['index'],c=I+Y[0x0]['length'],o=G[I-0x1]||'',W=G[c]||'';if(!/[A-Za-z0-9]/['test'](o)&&!/[A-Za-z0-9]/['test'](W))return!![];const U=/[a-z0-9]/['test'](o)&&/[A-Z]/['test'](Y[0x0][0x0]),u=/[A-Z]/['test'](Y[0x0]['slice'](-0x1))&&/[a-z0-9]/['test'](W);return U||u;}function isElementType(G){return test(Any(ElementType$1,NoopElementType),G);}function isPatternName(G){return test(NamedPattern,G);}function isNamedColor(G){if(typeof G!=='string')return![];return test(NamedColor,G['trim']());}function variableNameToElementType(G){const m=G['toLowerCase']()['replace'](/[\s_-]+/g,'');if(/(link|url|address|uri|location)/['test'](m))return'link';if(/(btn|button|cta)/['test'](m))return'button';if(/(combo(?:box)|dropdown|select)/['test'](m))return'combobox';if(/(listbox)/['test'](m))return'listbox';if(/(radio)/['test'](m))return'radio';if(/(form)/['test'](m))return'form';if(/(check)/['test'](m))return'checkbox';if(/(popup|dialog|modal|alert)/['test'](m))return'popup';if(/(logo|brand)/['test'](m))return'logo';if(/(img|image|picture|photo)/['test'](m))return'image';if(/(heading|title|subtitle)/['test'](m))return'heading';if(/(item)/['test'](m))return'menuitem';if(/(menu|nav)/['test'](m))return'menu';if(/(burger)/['test'](m))return'hamburger';if(/(datetime)/['test'](m))return'datetimepicker';if(/(calendar|date)/['test'](m))return'datepicker';if(/(time)/['test'](m))return'timepicker';if(/(color)/['test'](m))return'colorpicker';if(/(header|topbar)/['test'](m))return'header';if(/(footer|bottombar)/['test'](m))return'footer';if(/(icon|glyph|symbol)/['test'](m))return'icon';if(/(range|slider)/['test'](m))return'slider';if(/(textbox|input|field)/['test'](m))return'textbox';if(/(text|label|paragraph|content)/['test'](m))return'text';return null;}const Identifier$1=Use(/([^,.:\/'"{}[\]()/\s]+)/),MultiWordIdentifier=Use(/([^,.:\/'"{}[\]()/]+)\b/),Reference$1=(G,{context:m}={})=>Lazy(()=>Sanitize$1(Recursive(()=>{const Y=Any(Node(All('.',MultiWordIdentifier),([c])=>({'get':c})),Node(Wrap({'left':'[','right':']'},Any(IntegerNumberLiteral,QuotedInterpolatedStringLiteral,UnquotedInterpolatedStringLiteral({'escape':/[\]]/}))),([c])=>({'get':c}))),I=Node(RegExpLiteral,([c])=>({'match':c}));return Mark(Any(Node(Wrap({'left':'{%','right':'%}'},UnquotedJSExpressionLiteral({'char':/(?!%})./})),([c])=>{return{'isJSExpressionRef':!![],'expression':c,'type':G};}),Node(Wrap({'left':'{','right':'}'},All(MultiWordIdentifier,Star(Any(Y,I)))),([c,...o],W)=>{let U;if(c==='it'&&W['context']['has']('reference'))U={...W['context']['reference'],'modifiers':[...W['context']['reference']?.['modifiers']??[],...o],'type':G};else U={'isRef':!![],'name':c,'modifiers':o,'type':G};return W['collections']['references']['push'](U),U;})),{'type':'reference','subtype':m});}))),VerboseReference=Any(Lazy(()=>{return Mark(Node(All(Optional(The),Optional(Last$1),HttpResponse,Optional(Any(Node(HttpBody,()=>[{'get':'body'}]),Node(All(HttpCookie,InterpolatedStringLiteral$1),([G])=>[{'get':'cookies'},{'get':G}]),Node(All(HttpHeader,InterpolatedStringLiteral$1),([G])=>[{'get':'headers'},{'get':G}])))),([G],m)=>{const Y={'isRef':!![],'name':'response','modifiers':G,'type':'string'};return m['collections']['references']['push'](Y),Y;}),{'type':'reference'});}),Mark(Node(All(Optional(The),Optional(Last$1),JavaScript,Optional(Evaluation),Result),(G,m)=>{const Y={'isRef':!![],'name':'js-result','type':'string'};return m['collections']['references']['push'](Y),Y;}),{'type':'reference'}),Lazy(()=>{const G=Any(Node(Url$4,()=>({'type':'string','modifiers':[{'get':'url'}]})),Node(Title$2,()=>({'type':'string','modifiers':[{'get':'title'}]})),Node(HttpStatusCode,()=>({'type':'number','modifiers':[{'get':'status'}]})),Node(Width,()=>({'type':'number','modifiers':[{'get':'width'}]})),Node(Height,()=>({'type':'number','modifiers':[{'get':'height'}]})),Node(All(HttpCookie,InterpolatedStringLiteral$1),([m])=>({'type':'string','modifiers':[{'get':'cookies'},{'get':m}]})),Node(All(HttpHeader,InterpolatedStringLiteral$1),([m])=>({'type':'string','modifiers':[{'get':'headers'},{'get':m}]})));return Mark(Node(Any(All(Optional(The),G,Of,Any(The,This),Optional(Current),WebPage),All(Possessive(WebPage),G)),([{type:m,modifiers:Y}],I)=>{const c={'isRef':!![],'name':'page','modifiers':Y,'type':m};return I['collections']['references']['push'](c),c;}),{'type':'reference'});})),NaturalNumberLiteral=Mark(Node(Dynamic(G=>G['options']['locale']?.['startsWith']('en')?Use(/([1-9](?:,(?=\d{3})|\d)*)/):Use(/([1-9](?:[.](?=\d{3})|\d)*)/)),([G],m)=>Number['parseInt'](normalizeNumericString(G,m['options']['locale']))),{'type':'number'}),NonnegativeDecimalNumberLiteral=Mark(Node(Dynamic(G=>G['options']['locale']?.['startsWith']('en')?Use(/((?:0|[1-9](?:,(?=\d{3})|\d)*)?[.]\d+)/):Use(/((?:0|[1-9](?:[.](?=\d{3})|\d)*)?,\d+)/)),([G],m)=>Number['parseFloat'](normalizeNumericString(G,m['options']['locale']))),{'type':'number'}),DecimalNumberLiteral=Mark(Node(Dynamic(G=>G['options']['locale']?.['startsWith']('en')?Use(/([-+]?(?:0|[1-9](?:,(?=\d{3})|\d)*)[.]\d+)/):Use(/([-+]?(?:0|[1-9](?:[.](?=\d{3})|\d)*),\d+)/)),([G],m)=>Number['parseFloat'](normalizeNumericString(G,m['options']['locale']))),{'type':'number'}),NonnegativeIntegerNumberLiteral=Mark(Node(Dynamic(G=>G['options']['locale']?.['startsWith']('en')?Use(/(0|[1-9](?:,(?=\d{3})|\d)*)/):Use(/(0|[1-9](?:[.](?=\d{3})|\d)*)/)),([G],m)=>Number['parseInt'](normalizeNumericString(G,m['options']['locale']))),{'type':'number'}),IntegerNumberLiteral=Mark(Node(Dynamic(G=>G['options']['locale']?.['startsWith']('en')?Use(/([-+]?(?:0|[1-9](?:,(?=\d{3})|\d)*))/):Use(/([-+]?(?:0|[1-9](?:[.](?=\d{3})|\d)*))/)),([G],m)=>Number['parseInt'](normalizeNumericString(G,m['options']['locale']))),{'type':'number'}),NumericLiteral=Any(DecimalNumberLiteral,IntegerNumberLiteral),NonnegativeRationalNumberLiteral=Node(Mark(All(NonnegativeIntegerNumberLiteral,All('/',NaturalNumberLiteral)),{'type':'number'}),([G,m])=>G/m),RationalNumberLiteral=Node(Mark(All(IntegerNumberLiteral,All('/',NaturalNumberLiteral)),{'type':'number'}),([G,m])=>G/m),CardinalNumberLiteral=Node(Mark(Any(NoBoundary(All(CardinalNumeralTen,Optional(All(Optional(/and|-/i),CardinalNumeralDigit)))),CardinalNumeralTeen,CardinalNumeralDigit),{'type':'number'}),G=>G['reduce']((m,Y)=>m+cardinalNumeralToNumber(Y),0x0)),OrdinalNumberLiteral$1=Mark(Any(Node(Use(/(\d*(?:(?:[0|4-9]|1\d)th|1st|2nd|3rd))/i),([G])=>Number['parseInt'](G)),Node(Any(NoBoundary(All(CardinalNumeralTen,Optional(/and|-/i),OrdinalNumeralDigit)),OrdinalNumeralTen,OrdinalNumeralTeen,OrdinalNumeralDigit),G=>G['reduce']((m,Y)=>m+ordinalNumeralToNumber(Y),0x0))),{'type':'number'}),FractionalNumberLiteral=Mark(Any(Node(All(Any(Node(Zero,()=>0x0),Node(Any(NoBoundary(All(CardinalNumeralTen,Optional(All(Optional(/and|-/i),CardinalNumeralTeen)))),CardinalNumeralTeen,CardinalNumeralDigit),G=>G['reduce']((m,Y)=>m+cardinalNumeralToNumber(Y),0x0))),Optional('-'),Node(Any(NoBoundary(All(CardinalNumeralTen,Optional(/and|-/i),DenominatorNumeralDigit)),DenominatorNumeralTen,DenominatorNumeralTeen,DenominatorNumeralDigit),G=>G['reduce']((m,Y)=>m+denominatorNumeralToNumber(Y),0x0))),([G,m])=>G/m),Node(FractionNumeral,([G])=>fractionalNumeralToNumber(G))),{'type':'number'}),QuantitativeNumberLiteral=Any(NonnegativeDecimalNumberLiteral,NonnegativeRationalNumberLiteral,NaturalNumberLiteral,FractionalNumberLiteral,CardinalNumberLiteral);Any(Node(Any(NonnegativeDecimalNumberLiteral,NonnegativeRationalNumberLiteral,FractionalNumberLiteral),([G])=>Math['min'](G,0x1)),Node(NoBoundary(All(NonnegativeIntegerNumberLiteral,'%')),([G])=>Math['min'](G/0x64,0x1)));const IterativeNumberLiteral=Node(IterativeNumeral,([G])=>iterativeNumeralToInteger(G)),MultiplicativeNumberLiteral=Node(MultiplicativeNumeral,([G])=>multiplicativeNumeralToInteger(G)),IntegerNumberExpression=Any(Reference$1('number'),IntegerNumberLiteral,CardinalNumberLiteral),CardinalNumberExpression=Any(Reference$1('number'),NaturalNumberLiteral,CardinalNumberLiteral),IterativeNumberExpression=Any(Reference$1('number'),IterativeNumberLiteral),OrdinalNumberExpression$1=Any(Reference$1('number'),OrdinalNumberLiteral$1),QuantitativeNumberExpression=Any(Reference$1('number'),QuantitativeNumberLiteral),NullLiteral=Node(/null|nil/i,()=>null),TimeUnitLiteral=Any(Node(/milliseconds?|millis|msecs?|ms/i,()=>0x1),Node(/seconds?|secs?|s/i,()=>0x3e8),Node(/minutes?|mins?|m/i,()=>0xea60)),TimeIntervalLiteral=Node(NoBoundary(All(Any(QuantitativeNumberLiteral,Nothing$1(0x1)),Optional(IndefiniteArticle),TimeUnitLiteral)),([G,m])=>G*m),TimeIntervalExpression=Any(Node(NoBoundary(All(Reference$1('number'),Optional(TimeUnitLiteral))),([G,m])=>m?{'operator':'mul','operands':[{'isOperand':!![],'value':G},{'isOperand':!![],'value':m}]}:G),TimeIntervalLiteral),RegExpLiteral=Node(Use(/\/([^/]+)\/([gimsuy]*)/),([G,m])=>{return{'isPattern':!![],'pattern':G,'flags':m};}),NamedPattern=Node(Any(Node(Number$1,()=>'number'),Node(Price$1,()=>'price'),Node(Percentage$1,()=>'percentage'),Node(Date$1,()=>'date'),Node(Time,()=>'time'),Node(Code,()=>'code')),([G])=>{return{'isPattern':!![],'name':G};}),QuotedStringLiteral=Customizable((G={})=>{const m=G['char']??/./,Y=Node(Use(new RegExp(String['raw']`"((?:(?:\\["\\nt])|(?:(?!["])${m['source']}))*)"`)),([c])=>normalizeString(c,/["]/)),I=Node(Use(new RegExp(String['raw']`'((?:(?:\\['\\nt])|(?:(?!['])${m['source']}))*)'`)),([c])=>normalizeString(c,/[']/));return Node(Any(Mark(Y,{'type':'string','subtype':'double\x20quoted'}),Mark(I,{'type':'string','subtype':'single\x20quoted'})),([c])=>normalizeString(c,/['"]/));}),QuotedInterpolatedStringLiteral=Customizable((G={})=>{const m=G['char']??/./,Y=Node(Use(new RegExp(String['raw']`({?(?:(?:\\["{\\nt])|(?:(?!["{])${m['source']}))+|{)`)),([o])=>normalizeString(o,/["]/)),I=Node(Use(new RegExp(String['raw']`({?(?:(?:\\['{\\nt])|(?:(?!['{])${m['source']}))+|{)`)),([o])=>normalizeString(o,/[']/)),c=Use(/(\s+)/);return Raw(Node(Any(Mark(Wrap('\x22',Star(Any(c,Reference$1('string',{'context':'double\x20quoted\x20string\x20chunk'}),Y))),{'type':'string','subtype':'double\x20quoted'}),Mark(Wrap('\x27',Star(Any(c,Reference$1('string',{'context':'single\x20quoted\x20string\x20chunk'}),I))),{'type':'string','subtype':'single\x20quoted'})),o=>{o=o['reduce']((W,U)=>{if(typeof U==='string'){if(typeof W['at'](-0x1)==='string')W[W['length']-0x1]+=U;else W['push'](U);}else W['push'](U);return W;},[]);if(o['length']===0x0)return'';else{if(o['length']===0x1&&typeof o[0x0]==='string')return o[0x0];else return{'isInterpolatedString':!![],'chunks':o};}}));}),UnquotedStringLiteral$1=Customizable((G={})=>{const m=G['char']??/[^,\s]/,Y=G['escape']??/[]/,I=G['weak'],c=Use(new RegExp('((?:(?![\x27\x22]|'+Y['source']+')'+m['source']+')+)'));return Mark(I?NonEmpty(Weak(c)):c,{'type':'string','subtype':'unquoted'});}),UnquotedInterpolatedStringLiteral=Customizable((G={})=>{const m=G['char']??/[^,\s]/,Y=G['escape']??/[]/,I=G['weak'],c=Use(new RegExp(String['raw']`({?(?:(?:\\(?:[{\\nt]|${Y['source']}))|(?:(?![{]|${Y['source']})${m['source']}))+|{)`)),o=Node(Plus(Any(All(Not(/["'\s]/),Reference$1('string',{'context':'unquoted\x20string\x20chunk'})),c)),W=>{W=W['map'](U=>typeof U==='string'?normalizeString(U,Y):U);if(W['length']===0x1)return W[0x0];else return{'isInterpolatedString':!![],'chunks':W};});return Raw(Mark(I?NonEmpty(Weak(o)):o,{'type':'string','subtype':'unquoted'}));}),StandaloneInterpolatedStringLiteral=Customizable((G={})=>{const m=G['char']??/./,Y=Use(new RegExp(String['raw']`({?(?:(?:\\[{\\nt])|(?:(?![{])${m['source']}))+|{)`));return Raw(Node(Mark(Star(Any(Use(/(\s+)/),Reference$1('string',{'context':'standalone\x20string\x20chunk'}),Y)),{'type':'string','subtype':'standalone'}),I=>{I=I['reduce']((c,o)=>{if(typeof o==='string'){o=normalizeString(o);if(typeof c['at'](-0x1)==='string')c[c['length']-0x1]+=o;else c['push'](o);}else c['push'](o);return c;},[]);if(I['length']===0x0)return'';else{if(I['length']===0x1)return I[0x0];else return{'isInterpolatedString':!![],'chunks':I};}}));}),StringLiteral$1=Customizable((G={})=>{return Any(QuotedStringLiteral(G),UnquotedStringLiteral$1(G));}),InterpolatedStringLiteral$1=Customizable((G={})=>{return Any(QuotedInterpolatedStringLiteral(G),UnquotedInterpolatedStringLiteral(G));}),QuotedStringExpression=Customizable((G={})=>{return Any(Reference$1('string'),VerboseReference,QuotedInterpolatedStringLiteral(G));}),UnquotedStringExpression=Customizable((G={})=>{return Any(VerboseReference,UnquotedInterpolatedStringLiteral(G));}),StringExpression$1=Customizable((G={})=>{return LogGroup({'name':'StringExpression','collapsed':![]},Any(VerboseReference,InterpolatedStringLiteral$1(G)));}),StandaloneStringExpression=StandaloneInterpolatedStringLiteral,QuotedJSExpressionLiteral=Lazy(()=>{return Raw(Mark(Node(Any(Wrap('\x22',Star(Any(Reference$1('any'),Use(/(\{?(?:\\["{\\]|[^"{])+)/)))),Wrap('\x27',Star(Any(Reference$1('any'),Use(/(\{?(?:\\['{\\]|[^'{])+)/))))),G=>{return G=G['map'](m=>typeof m==='string'?m['replace'](/\\(["'{\\])/g,'$1'):m),{'isJSExpression':!![],'chunks':G};}),{'type':'js\x20code'}));}),UnquotedJSExpressionLiteral=Customizable((G={})=>{const m=G['char'];return Raw(Mark(Node(m?Star(Any(Reference$1('any'),Use(new RegExp(String['raw']`(\{?(?:\\[{\\]|(?![{])${m['source']})+)`)))):As$1(Anything$1,Star(Any(Reference$1('any'),Use(/(\{?(?:\\[{\\]|[^{])+)/)))),Y=>{return Y=Y['map'](I=>typeof I==='string'?I['replace'](/\\(["'{\\])/g,'$1'):I),{'isJSExpression':!![],'chunks':Y};}),{'type':'js\x20code'}));}),JSExpressionLiteral$1=Customizable((G={})=>{return Any(QuotedJSExpressionLiteral,UnquotedJSExpressionLiteral(G));}),StructureLiteral$1=Lazy(()=>Recursive(G=>{const m=Any(Reference$1('string'),Use(/([^:'",\s]+)/),InterpolatedStringLiteral$1),Y=Any(Reference$1('any'),G,PrimitiveLiteral({'escape':/[\]]/})),I=Any(Reference$1('any'),G,PrimitiveLiteral({'escape':/[\}]/}));return Any(Node(Mark(Wrap({'left':'[','right':']'},Optional(List(Y,','))),{'type':'array'}),c=>({'isStructure':!![],'type':'array','items':c})),Node(Mark(Wrap({'left':'{','right':'}'},Optional(List(Node(All(Mark(m,{'type':'record\x20key'}),':',I),([c,o])=>({'key':c,'value':o})),','))),{'type':'record'}),c=>({'isStructure':!![],'type':'record','items':c})));})),BooleanLiteral=Any(Node(/true/i,()=>!![]),Node(/false/i,()=>![]));Any(Reference$1('boolean'),BooleanLiteral);const PrimitiveLiteral=Customizable((G={})=>{return Any(NullLiteral,BooleanLiteral,RationalNumberLiteral,DecimalNumberLiteral,IntegerNumberLiteral,InterpolatedStringLiteral$1(G));}),AnyExpression$1=Any(Reference$1('any'),VerboseReference,StructureLiteral$1,PrimitiveLiteral),AnyVerboseExpression=Customizable((G={})=>{return Any(Reference$1('any'),VerboseReference,StructureLiteral$1,CardinalNumberLiteral,FractionalNumberLiteral,PrimitiveLiteral(G));}),Url$3=Mark(StringExpression$1,{'type':'secret','regexp':/(?<=^[^:]+:\/\/.+(?:(?=(?<!\\){)|:)).+(?=@.+)/}),ExplicitUrl=Mark(Stringish(Use(/(https?:\/\/(?:localhost|[-a-zA-Z0-9@:%._\+~#=]{2,256}\.[a-z]{2,4})(?::\d{1,5})?\b[-a-zA-Z0-9@:%_\+.~#?&/=]*)/)),{'type':'secret','regexp':/(?<=^[^:]+:\/\/.+(?:(?=(?<!\\){)|:)).+(?=@.+)/}),Viewport=Node(All(Optional(The),Viewport$1),()=>({'isViewportDescriptor':!![]})),Dialog=Node(All(Optional(The),BrowserDialog),(G,m)=>{const Y={'isDialogDescriptor':!![]};return m['context']['element']=Y,Y;}),{Apply:Apply$28,Mutate:Mutate$28}=State({'isDialogElementDescriptor':!![]}),ButtonTitle$1=Any(Mutate$28(Stringish(Accept),G=>G['title']='ok'),Mutate$28(Stringish(Dismiss),G=>G['title']='cancel')),TextboxTitle$1=Mutate$28(Stringish(/prompt|answer/i),G=>G['title']='prompt'),DialogButton=Effect(Apply$28(All(Optional(The),Any(All(Optional(Possessive(BrowserDialog)),ButtonTitle$1),All(ButtonTitle$1,Optional(Possessive(BrowserDialog)))),Optional(Button))),([G],m)=>m['context']['element']=G),ExplicitDialogButton=Effect(Apply$28(All(Optional(The),Any(All(Possessive(BrowserDialog),ButtonTitle$1),All(ButtonTitle$1,Possessive(BrowserDialog))),Optional(Button))),([G],m)=>m['context']['element']=G),DialogTextbox=Effect(Apply$28(All(Optional(The),Optional(Possessive(BrowserDialog)),TextboxTitle$1,Optional(Textbox))),([G],m)=>m['context']['element']=G),ExplicitDialogTextbox=Effect(Apply$28(All(Optional(The),Possessive(BrowserDialog),TextboxTitle$1,Optional(Textbox))),([G],m)=>m['context']['element']=G),RelativeAnchor=({Element:G})=>Any(Node(All(Near,Optional(To),G),([m])=>({'position':'near','element':m})),Node(All(RelativePosition,Optional(Of),G),([m,Y])=>({'position':m,'element':Y}))),AbsoluteAnchor=({Element:G})=>{const m=Any(Viewport,Dialog,G),Y=Node(PostCondition(List(G({'anchor':![]}),Inside),I=>I['length']>=0x2&&I['every'](c=>c['type']&&c['type']===I[0x0]['type'])),I=>{return I['reduceRight']((c,o)=>(attachAnchor(o,{'position':'inside','element':c}),o));});return Any(Node(All(Optional(LocationPreposition),AbsolutePosition$1,Optional(All(Any(LocationPreposition,Of),m))),([I,c])=>c?{'position':I,'element':c}:{'position':I}),Node(All(Inside,WeakList(Any(Y,m),AndListSeparator)),I=>{const c=I['map'](o=>({'position':'inside','element':o}));return c['length']>0x1?c:c[0x0];}));},Anchor$3=G=>{return LogGroup('Anchor',Mark(Any(RelativeAnchor(G),AbsoluteAnchor(G)),{'type':'anchor'}));},NamedColor=Any(Node(/red/i,()=>'red'),Node(/blue/i,()=>'blue'),Node(/green/i,()=>'green'),Node(/yellow/i,()=>'yellow'),Node(/orange/i,()=>'orange'),Node(/purple/i,()=>'purple'),Node(/pink/i,()=>'pink'),Node(/brown/i,()=>'brown'),Node(/black/i,()=>'black'),Node(/white/i,()=>'white'),Node(/gr[ae]y/i,()=>'gray'),Node(/cyan/i,()=>'cyan'),Node(/magenta/i,()=>'magenta'),Node(/lime/i,()=>'lime'),Node(/navy/i,()=>'navy'),Node(/teal/i,()=>'teal'),Node(/maroon/i,()=>'maroon'),Node(/olive/i,()=>'olive'),Node(/aqua/i,()=>'aqua'),Node(/silver/i,()=>'silver'),Node(/gold/i,()=>'gold'),Node(/indigo/i,()=>'indigo'),Node(/violet/i,()=>'violet'),Node(/crimson/i,()=>'crimson'),Node(/coral/i,()=>'coral'),Node(/salmon/i,()=>'salmon'),Node(/turquoise/i,()=>'turquoise'),Node(/lavender/i,()=>'lavender'),Node(/khaki/i,()=>'khaki'),Node(/tan/i,()=>'tan'),Node(/beige/i,()=>'beige'),Node(/ivory/i,()=>'ivory'),Node(/plum/i,()=>'plum'),Node(/azure/i,()=>'azure'),Node(/mint/i,()=>'mint'),Node(/peach/i,()=>'peach')),EncodedColor=Any(Use(/(rgb\(\s*\d{1,3}\s*,\s*\d{1,3}\s*,\s*\d{1,3}\s*\))/i),Use(/(rgba\(\s*\d{1,3}\s*,\s*\d{1,3}\s*,\s*\d{1,3}\s*,\s*\d*\.?\d+\s*\))/i),Use(/(cmyk\(\s*\d{1,3}%?\s*,\s*\d{1,3}%?\s*,\s*\d{1,3}%?\s*,\s*\d{1,3}%?\s*\))/i),Use(/(hsl\(\s*\d{1,3}\s*,\s*\d{1,3}%?\s*,\s*\d{1,3}%?\s*\))/i),Use(/(#[0-9A-F]{3}(?:[0-9A-F]{3})?)/i)),Color$1=Any(EncodedColor,NamedColor),{Apply:Apply$27,Mutate:Mutate$27,state:state$2}=State({}),Type$3=Void(Mutate$27(Use(/(css|xpath)/i),(G,[m])=>G['type']=m['toLowerCase']())),Value$4=Mutate$27(Node(StringExpression$1,([G],m)=>({'type':state$2(m)['type']??(typeof G==='string'&&['/','(','../','./','*/']['some'](Y=>G['startsWith'](Y))?'xpath':'css'),'selector':G})),(G,[{type:m,selector:Y}])=>{G['type']=m,G['selector']=Y;}),ElementSelector=Apply$27(All(Any(All(Type$3,Optional(All(Optional(Any('-',With,By)),Selector$1))),All(Nothing$1(void 0x0),Selector$1)),Mark(Value$4,{'type':'selector','mutate':(G,[m])=>G['subtype']=m['type']}))),NoopElementType=Element$3,AppElementType=Node(Any(WebPage,App$1),()=>'app'),groups={'control':['checkboxgroup','checkbox','radiogroup','radio','textbox','combobox','listbox','option','datepicker','timepicker','datetimepicker','colorpicker','filepicker','slider','inputbox','selectbox','valuebox','button','color'],'structural':['ad','header','footer','popup','tooltip','form','menu','menuitem','hamburger','list','listitem','heading','table','table-cell','table-row','table-head-row','table-column','table-stub-column','table-head-cell','card','pdfpage'],'content':['text','link','label','logo','image','icon','video','paragraph']},definitions=[['tooltip',Tooltip],['button',Button],['radiogroup',RadioGroup],['radio',Radio],['textbox',Textbox],['checkboxgroup',CheckboxGroup],['checkbox',Checkbox],['combobox',Combobox],['listbox',Listbox],['option',Option$1],['colorpicker',ColorPicker],['datepicker',DatePicker],['timepicker',TimePicker],['datetimepicker',DateTimePicker],['filepicker',FilePicker],['slider',Slider],['inputbox',Inputbox],['selectbox',Selectbox],['valuebox',Valuebox],['pdfpage',PdfPage$1],['ad',Ad],['table-head-cell',All(Optional(Table),Header$4,Cell)],['table-cell',All(Optional(Table),Cell)],['table-head-row',All(Optional(Table),Header$4,Row)],['table-row',All(Optional(Table),Row)],['table-stub-column',All(Optional(Table),Stub,Column)],['table-column',All(Optional(Table),Column)],['table',Table],['header',Header$4],['footer',Footer],['popup',Popup],['form',Form$1],['menuitem',MenuItem],['menu',Menu],['listitem',ListItem],['list',List$1],['hamburger',Hamburger],['heading',Heading],['card',Card],['text',Text$1],['link',Link],['logo',Logo],['image',Image],['icon',Icon],['paragraph',Paragraph]],ElementType$1=Customizable((G={})=>{let m;if(G?.['allowed']){const Y=new Set(G['allowed']['flatMap'](I=>groups[I]??I));m=definitions['flatMap'](([I,c])=>{if(Y['has'](I))return Node(c,()=>I);return[];});}else m=definitions['map'](([I,c])=>Node(c,()=>I));return Any(...m);}),{Apply:Apply$26,Mutate:Mutate$26}=State({}),Type$2=Customizable(G=>{const m=G?.['allowed']?.['filter'](I=>I!=='noop'),Y=!m||m['length']<G['allowed']['length'];return Any(Mutate$26(ElementType$1({'allowed':m}),(I,[c])=>I['type']=c),!m||m['includes']('textbox')?Mutate$26(Any(All(Stringish(Use(/(search)/i)),/bar|box/i),Searchbox),(I,[c='search'])=>{I['type']='textbox',I['title']=c;}):Never,Y?NoopElementType:Never);}),App=Mutate$26(AppElementType,(G,[m])=>G['type']=m),IndexedPdfPage=Mutate$26(All(Optional(The),Any(All(Index$1(OrdinalNumberExpression$1),Any(PdfPage$1,Page)),All(Any(PdfPage$1,Page),Optional(Any(NumberSign,Number$1)),Index$1(CardinalNumberExpression)))),(G,[m])=>(G['type']='pdfpage',G['nth']=m)),ExplicitColor=Mutate$26(Any(All(Color$2,Any(EncodedColor,StringExpression$1)),All(Any(EncodedColor,StringExpression$1),Color$2)),(G,[m])=>G['color']=m),KnownColor=Mutate$26(Color$1,(G,[m])=>G['color']=m),Colorable=G=>Any(All(G,Any(With,Of),Optional(The),ExplicitColor),All(Optional(KnownColor),G)),Selector=Mutate$26(All(Optional(All(Any(With,By),Optional(The))),ElementSelector),(G,[m])=>G['selector']=m),ElementReference=Mutate$26(Reference$1('any'),(G,[m])=>{G['reference']=m;}),Title$1=Customizable(({weak:G}={})=>Mutate$26(Any(All(Optional(All(Having,Optional(The))),NamedPattern),All(Named,Mark(StringExpression$1,{'type':'text'})),Mark(StringExpression$1({'weak':G}),{'type':'text'})),(m,[Y])=>{m['title']=Y;if(typeof Y==='string'&&isSecretName(Y))m['secret']=!![];})),Nth=Mutate$26(Index$1(OrdinalNumberExpression$1),(G,[m])=>G['nth']=m),Last=Mutate$26(Any(Last$1,Bottom),G=>G['orderDirection']='backward'),ExplicitIndex=Mutate$26(All(Any(With,At),Optional(The),Index$2,Optional(NumberSign),IntegerNumberExpression),(G,[m])=>G['nth']=m),SearchOrder=Any(Mutate$26(/from\s+(?:the\s+)?(?:beginning|top)/i,G=>G['orderDirection']='forward'),Mutate$26(/from\s+(?:the\s+)?(?:end|bottom)/i,G=>G['orderDirection']='backward')),ElementAnchor=G=>Mutate$26(Anchor$3({'Element':G}),(m,[Y])=>attachAnchor(m,Y)),TypeAnchor=Mutate$26(All(Optional(The),Any(Possessive(AppElementType,{'strict':!![]}),Possessive(ElementType$1({'allowed':['structural']}))),Not(Inside)),(G,[m])=>attachAnchor(G,{'position':'inside','element':{'type':m}})),Element$2=Recursive((G,{depth:m})=>{return Customizable(Y=>{const I=Y?.['explicit']&&m===0x0,c=Y?.['anchor']!==![],o=!!Y?.['types']&&!Y['types']['includes']('noop'),W=Type$2({'allowed':Y?.['types']}),U=c?List(ElementAnchor(G(Y)),AndListSeparator):Never,u=I?All(The,ElementReference):All(Optional(The),ElementReference),p=All(Optional(The),Any(All(W,Selector),All(Selector,Optional(W)))),E=Any(All(Optional(The),Any(Last,ElementReference),Colorable(W),Optional(U)),All(Optional(The),Optional(Nth),Optional(The),Any(All(Colorable(W),Optional(ExplicitIndex),Any(All(SearchOrder,Optional(Selector)),c?All(Optional(Selector),U):Never,All(Title$1({'weak':!![]}),Optional(Selector),Optional(U)),Optional(Selector))),All(Colorable(All(Title$1,W)),Optional(ExplicitIndex),Optional(Selector),Optional(U))))),B=PostCondition(All(Optional(The),Optional(Any(Nth,Last)),Any(All(Title$1,NonEmpty(All(Optional(ExplicitIndex),Optional(Selector),Optional(U)))),Title$1({'weak':!![]}))),(t,D,C)=>!I||!test(StringExpression$1,D['text']['substring'](C['pos'],D['pos'])));return Effect(LogGroup('ElementDescriptor',Mark(Apply$26(Any(IndexedPdfPage,p,Longest(u,c?All(TypeAnchor,E):Never,Any(E,Article(App),o?Never:B),c&&!o?All(TypeAnchor,B):Never))),{'type':'element\x20descriptor'})),([t],D)=>{if(t['type']!=='app')D['context']['element']=t;const C=t['title']&&typeof t['title']==='object'&&'isRef'in t['title']?t['title']:t['reference']&&'isRef'in t['reference']?t['reference']:void 0x0;if(C){const e=variableNameToElementType(C['name']);e&&(t['hints']=t['hints']??{},t['hints']['type']=[e]);}if(t['nth']!==void 0x0&&!t['title']){if(t['type']==='table-row')t['type']='table-leaf-row';if(t['type']==='table-column')t['type']='table-leaf-column';}if(Array['isArray'](t['anchor'])){function i(N){if(!N)return![];return(Array['isArray'](N)?N:[N])['some'](T=>['table-column','table-row','table-leaf-column','table-leaf-row','table-stub-column','table-head-row']['includes'](T));}const X=t['anchor']['filter'](N=>N['position']==='inside'&&N['element']&&!('isViewportDescriptor'in N['element'])&&!('isDialogDescriptor'in N['element'])&&i(N['element']['type']));if(X['length']>0x0){const N=X[X['length']-0x1];function T(V){if(V['type']==='table')return{'position':'inside','element':V};if(V['anchor']&&!Array['isArray'](V['anchor'])&&V['anchor']['position']==='inside'&&V['anchor']['element']&&!('isViewportDescriptor'in V['anchor']['element'])&&!('isDialogDescriptor'in V['anchor']['element']))return T(V['anchor']['element']);}const A=T(N['element']);if(A){const V=t['anchor']['indexOf'](N);t['anchor']=t['anchor']['map']((H,P)=>{if(P===V||!X['includes'](H))return H;if(T(H['element']))return H;const J=structuredClone(H);return attachAnchorAtDeepest(J['element'],A),J;});}}}});});}),ExplicitElement=Lazy(()=>Element$2({'explicit':!![]})),StringElement=Apply$26(Title$1),PageElement=Apply$26(All(Optional(The),App)),ImplicitElement=PreCondition(G=>G['context']['has']('element'),Mark(Node(It,(G,m)=>m['context']['element']),{'type':'implicit\x20element\x20descriptor','mutate':(G,[m])=>G['element']=m})),ElementValueExtractor=Customizable(({Element:Element=Element$2}={})=>{const G=Any(Node(All(Optional(Any(Node(Mark(Background,{'type':'color-type','subtype':'background'}),()=>'background-color'),Node(Mark(Any(Foreground,Text$1),{'type':'color-type','subtype':'foreground'}),()=>'foreground-color'))),Color$2),([m])=>m??'color'),Node(Value$5,()=>'any'),Node(String$1,()=>'string'));return Mark(Node(Any(Node(All(Optional(The),G,Any(All(Any(Of,From,LocationPreposition),Element),Node(Anchor$3({'Element':Element}),([m])=>({'anchor':m})))),([m,Y])=>({'operator':'extract','operands':[{'isOperand':!![],'value':Y},m]})),Node(All(ExplicitElement,G),([m,Y])=>({'operator':'extract','operands':[{'isOperand':!![],'value':m},Y]})),Node(PostCondition(Element,([m])=>!!(m['type']==='text'&&!(m['nth']||m['title'])&&m['anchor']&&(!Array['isArray'](m['anchor'])||m['anchor']['length']===0x1))),([m])=>{return{'operator':'extract','operands':[{'isOperand':!![],'value':(Array['isArray'](m['anchor'])?m['anchor'][0x0]:m['anchor'])['element']},'string']};})),([m],Y)=>{return Y['collections']['extractors']['push'](m),m;}),{'type':'extractor'});}),IsWrapperOperator=G=>{return Node(All(Any(Node(/not|isn't|is\s+not|doesn't|does\s+not|(?:can't|can\s+not)(\s+be)?|(?:have|has)(?:n't|\s+not)\s+been/i,()=>![]),Node(/is|does|be|(?:to|can)(?:\s+be)?|(?:have|has)\s+been/i,()=>!![]),Nothing$1(!![])),G),([m,Y])=>{return m?Y:(...I)=>not(Y(...I));});},IgnoreCase=Node(/case[\s-]?insensitive|(?:ignor(?:e|ing))\s+(?:cas(?:e|ing))/i,()=>ignoreCase),MatchCase=Node(/case[\s-]?sensitive|(?:match(?:ing)?|respect(?:ing)?)\s+(?:cas(?:e|ing))/i,()=>matchCase),ParensOperator=G=>{return Node(Wrap({'left':'(','right':')'},G),([m])=>parens(m));},BooleanOperator=Any(Node(/(?:,\s+)?(?:and|but)|,/i,()=>and),Node(/(?:,\s+)?or/i,()=>or)),IsOperator=Any(Node(/not|isn't|is\s+not|doesn't|does\s+not|does/,()=>(G,m)=>not(eq$1(G,m))),Node(/is|does/,()=>eq$1)),ComparisonOperator=Any(Node(/==?=?|equals?(?:\s+to)?|the\s+same\s+as|eq/i,()=>eq$1),Node(/!==?|different\s+(?:from|than)/i,()=>(G,m)=>not(eq$1(G,m))),Node(/>=|(?:greater|bigger|larger|more)\s+or\s+equals?\s(?:to|than)|gte/i,()=>gte$1),Node(/>|(?:greater|bigger|larger|more)\s+than|gt/i,()=>gt$1),Node(/<=|(?:lower|smaller|less)\s+or\s+equals?\s(?:to|than)|lte/i,()=>lte$1),Node(/<|(?:lower|smaller|less)\s+than|lt/i,()=>lt$1)),ValidateOperator=Node(Any(Node(Use(/(lower|upper|camel|pascal|snake|kebab)[\s-]?case/i),([G])=>G['toLowerCase']()+'case'),Node(/capitalized/i,()=>'capitalized'),Node(/(?:numeric|a\s+number)/i,()=>'numeric'),Node(/alpha-?numeric/i,()=>'alphanumeric')),([G])=>{return m=>validate$1(m,G);}),MatchOperator=Node(All(Optional(/match(?:es)?(?:(?:\s+the)?\s+(?:regexp?|rex|pattern|regular(?:-|\s+)expression))?/i),RegExpLiteral),([G])=>{return m=>match$1(m,G);}),SizeValidationOperator=Any(Node(/empty/i,()=>{return G=>eq$1({'isOperand':!![],'value':size(G)},{'isOperand':!![],'value':0x0});}),Node(/nonempty/i,()=>{return G=>gt$1({'isOperand':!![],'value':size(G)},{'isOperand':!![],'value':0x0});}),Node(All(/includes?|contains?|have|has/i,CardinalNumberExpression,Any(CollectionItems,CollectionPairs,CollectionValues,CollectionKeys)),([G])=>{return m=>gte$1({'isOperand':!![],'value':size(m)},{'isOperand':!![],'value':G});})),IncludesOnlyOperator=Node(All(/includes?|contains?|have|has/i,Only,Any(Node(All(Optional(The),CollectionValues),()=>values),Node(All(Optional(The),Any(All(CollectionKeys,Optional(/named|names?/i)),All(Any(CollectionItems,CollectionPairs),/named|names?/i))),()=>keys),Node(Optional(All(Optional(The),CollectionItems)),()=>entries))),([G])=>{return(m,Y)=>includesOnly$1({'isOperand':!![],'value':G(m)},Y);}),IncludesOperator=Node(All(/includes?|contains?|have|has/i,Any(Node(All(Optional(The),CollectionValues),()=>values),Node(All(Optional(The),Any(All(CollectionKeys,Optional(/named|names?/i)),All(Any(CollectionItems,CollectionPairs),/named|names?/i))),()=>keys),Node(Optional(All(Optional(The),CollectionItems)),()=>entries))),([G])=>{return(m,Y)=>includes$1({'isOperand':!![],'value':G(m)},Y);}),StartsWithOperator=Node(/starts?\s+with/i,()=>startsWith$1),EndsWithOperator=Node(/ends?\s+with/i,()=>endsWith$1),VisibleOperator=Node(All(/visible|shown|shows?(?:\s+up)?|appears?|apparent|displayed/i,Optional(Anchor$3({'Element':Element$2}))),([G])=>{if(G)return m=>{const Y=m['value'];return visible$1({'isOperand':!![],'value':{...Y,'anchor':Y['anchor']?[Y['anchor'],G]['flat']():G}});};else return visible$1;}),InvisibleOperator=Node(All(/invisible|hidden|disappear/i,Optional(Anchor$3({'Element':Element$2}))),()=>G=>not(visible$1(G))),ClickableOperator=Node(/clickable|clicked/i,()=>clickable$1),EnabledOperator=Node(/enabled/i,()=>enabled$1),DisabledOperator=Node(/disabled/i,()=>G=>not(enabled$1(G))),CheckedOperator=Node(/checked|ticked/i,()=>G=>checked$1(G,!![])),UncheckedOperator=Node(/unchecked|unselected|unticked/i,()=>G=>checked$1(G,![])),PopulatedOperator=Node(/populated|entered|set|filled(?:\s+in)?|(?:have|has)(?:\s+an?)?\s+value|holds?\s+input/i,()=>G=>populated$1(G)),NotPopulatedOperator=Node(Any(/unfilled/i,/unset/i,/blank/i),()=>G=>not(populated$1(G))),HoveredOperator=Node(Any(/hovered/i,All(/has\s+hover/i,CSSPseudoClass,/applied|active/i),All(Optional(ConditionPreposition),/hover(?:\s+state)?/i)),()=>hovered$1),HoveredReversedOperator=All(/hover/i,CSSPseudoClass,IsWrapperOperator(Node(/applied|active/i,()=>hovered$1)),LocationPreposition),SelectedOperator=Node(All(/selected/i,StoragePreposition),()=>eq$1),UnaryOperator=IsWrapperOperator(Any(Node(All(/between/i,CardinalNumberExpression,And,CardinalNumberExpression),([G,m])=>{return Y=>and(gte$1(Y,{'isOperand':!![],'value':G}),lte$1(Y,{'isOperand':!![],'value':m}));}),MatchOperator,ValidateOperator,SizeValidationOperator)),BinaryOperator=Any(IsWrapperOperator(Any(ComparisonOperator,IncludesOnlyOperator,IncludesOperator,StartsWithOperator,EndsWithOperator)),IsOperator),ElementUnaryOperator=IsWrapperOperator(Any(VisibleOperator,InvisibleOperator,CheckedOperator,UncheckedOperator,ClickableOperator,EnabledOperator,DisabledOperator,HoveredOperator,PopulatedOperator,NotPopulatedOperator)),ElementReversedUnaryOperator=Any(HoveredReversedOperator),ElementBinaryOperator=IsWrapperOperator(Any(SelectedOperator)),OperationExpression=Any(PreCondition(G=>G['context']['has']('element'),Node(All(Its,Optional(/text|value/i),Length),(G,m)=>size({'isOperand':!![],'value':m['context']['element']}))),Node(All(Optional(The),Length,Of,Any(ElementValueExtractor,Reference$1('any'),VerboseReference,StructureLiteral$1,Element$2)),([G])=>size({'isOperand':!![],'value':G})),Node(All(Element$2({'explicit':!![]}),Optional(/text|value/i),Length),([G])=>size({'isOperand':!![],'value':G}))),ConditionOperation=Recursive(G=>{const {Masker:m,Maskable:Y,mask:I}=Mask(),c=Effect(Use(Secret),(X,N)=>I(N)),o=X=>{return LogGroup('Operand',Node(Mark(Y(X),{'type':'operand'}),([N],T)=>{const A={'isOperand':!![],'value':N};return T['collections']['operands']['push'](A),A;}));},W=o(AnyVerboseExpression({'weak':!![]})),U=o(VerboseReference),u=o(Effect(ElementValueExtractor,([X],N)=>X['operands'][0x0]['value']['secret']&&I(N))),p=o(Effect(Element$2({'explicit':!![]}),([X],N)=>X['secret']&&I(N))),E=Any(o(OperationExpression),All(Optional(c),u),U,p,All(Optional(c),W)),B=o(Any(Effect(Element$2,([X],N)=>X['secret']&&I(N)),Dialog)),t=Node(All(E,Optional(Any(IgnoreCase,MatchCase))),([X,N])=>{return{'operand':X,'wrapper':N};}),D=Any(Node(UnaryOperator,([X])=>({'operator':X})),Node(All(BinaryOperator,E,Optional(Any(IgnoreCase,MatchCase))),([X,N,T])=>{return{'operator':A=>T?.(X(A,N))??X(A,N)};})),C=Node(G,([X])=>{return{'operation':X};}),e=Node(All(Any(All(B,ElementUnaryOperator),All(E,UnaryOperator)),Any(IgnoreCase,MatchCase,Nothing$1(X=>X)),Star(Node(All(BooleanOperator,Any(C,D)),([X,N])=>{return{'connector':X,'addition':N};}))),([X,N,T,...A])=>{return A['reduce']((V,{connector:H,addition:P})=>{return H(V,'operator'in P?P['operator'](X):P['operation']);},T(N(X)));}),i=Any(Node(All(All(ElementReversedUnaryOperator,B),Star(Node(All(BooleanOperator,C),([X,N])=>{return{'connector':X,'addition':N};}))),([X,N,...T])=>{return T['reduce']((A,{connector:V,addition:H})=>{return V(A,H['operation']);},X(N));}),e,Node(All(Any(All(B,ElementBinaryOperator),All(E,BinaryOperator)),E,Any(IgnoreCase,MatchCase,Nothing$1(X=>X)),Star(Any(Node(All(BooleanOperator,Any(C,D)),([X,N])=>{return{'connector':X,'addition':N};}),NonEmpty(Weak(Node(All(BooleanOperator,t),([X,N])=>{return{'connector':X,'addition':N};})))))),([X,N,T,A,...V])=>{return V['reduce']((H,{connector:P,addition:J})=>{if('operand'in J){if(H['operator']==='includes\x20only')return H['operands']['push'](J['operand']),H;else return P(H,N(X,J['operand']));}else{if('operator'in J)return P(H,J['operator'](X));else return P(H,J['operation']);}},A(N(X,T)));}));return Node(Mark(m(All(Any(ParensOperator(i),i),Star(Node(All(BooleanOperator,Any(ParensOperator(i),i)),([X,N])=>{return T=>X(T,N);})))),{'type':'operation'}),([X,...N])=>{return N['reduce']((T,A)=>A(T),X);});}),Condition$1=Node(ConditionOperation,([G])=>({'isCondition':!![],'operation':G})),NegativeCondition=Node(ConditionOperation,([G])=>({'isCondition':!![],'operation':not(G)}));function parens(G){return{'operator':'parens','operands':[G]};}function ignoreCase(G){return{'operator':'ignore\x20case','operands':[G]};}function matchCase(G){return{'operator':'match\x20case','operands':[G]};}function not(G){return{'operator':'not','operands':[G]};}function and(G,m){return{'operator':'and','operands':[G,m]};}function or(G,m){return{'operator':'or','operands':[G,m]};}function eq$1(G,m){return{'operator':'eq','operands':[G,m]};}function gte$1(G,m){return{'operator':'gte','operands':[G,m]};}function gt$1(G,m){return{'operator':'gt','operands':[G,m]};}function lte$1(G,m){return{'operator':'lte','operands':[G,m]};}function lt$1(G,m){return{'operator':'lt','operands':[G,m]};}function validate$1(G,m){return{'operator':'validate','operands':[G,m]};}function size(G){return{'operator':'size','operands':[G]};}function keys(G){return{'operator':'keys','operands':[G]};}function values(G){return{'operator':'values','operands':[G]};}function entries(G){return{'operator':'entries','operands':[G]};}function match$1(G,m){return{'operator':'match','operands':[G,m]};}function includesOnly$1(G,m,...Y){return{'operator':'includes\x20only','operands':[G,m,...Y]};}function includes$1(G,m){return{'operator':'includes','operands':[G,m]};}function startsWith$1(G,m){return{'operator':'starts\x20with','operands':[G,m]};}function endsWith$1(G,m){return{'operator':'ends\x20with','operands':[G,m]};}function visible$1(G){return{'operator':'visible','operands':[G]};}function clickable$1(G){return{'operator':'clickable','operands':[G]};}function enabled$1(G){return{'operator':'enabled','operands':[G]};}function hovered$1(G){return{'operator':'hovered','operands':[G]};}function checked$1(G,m){return{'operator':'checked','operands':[G,m]};}function populated$1(G){return{'operator':'populated','operands':[G]};}const {Apply:Apply$25,Mutate:Mutate$25}=State({'isChromeElementDescriptor':!![]}),ButtonTitle=Any(Mutate$25(Stringish(/(?:click\s+to\s+)?(?:go\s+)?(?:back|(?:to\s+)?(?:the\s+)?prev(?:ious)?(?:\s+page)?)|<-|</i),G=>G['title']='back'),Mutate$25(Stringish(/(?:click\s+to\s+)?(?:go\s+)?(?:fwd|forward|(?:to\s+)?(?:the\s+)?next(?:\s+page)?)|->|>/i),G=>G['title']='forward'),Mutate$25(Stringish(/(?:reload|refresh)(?:\s+(?:(?:(?:(?:this|the)\s+)?page)|this))?/i),G=>G['title']='refresh')),TextboxTitle=Mutate$25(Stringish(/search|address|url/i),G=>G['title']='url'),ChromeButton=Apply$25(All(Optional(The),Optional(BrowserToolbar),ButtonTitle,Optional(Button))),ExplicitChromeButton=Apply$25(All(Optional(The),BrowserToolbar,ButtonTitle,Optional(Button))),ChromeTextbox=Apply$25(All(Optional(The),Optional(BrowserToolbar),TextboxTitle,Optional(Textbox))),ExplicitChromeTextbox=Apply$25(All(Optional(The),BrowserToolbar,TextboxTitle,Optional(Textbox))),OTPLiteral=Node(All(Mark(All(Optional(IndefiniteArticle),Optional(Generated),OTP$1),{'type':'otp'}),For,Optional(The),Optional(User),Mark(StringExpression$1,{'type':'user'})),([G])=>({'isOTP':!![],'user':G})),FileHandleLiteral=Node(Mark(StringLiteral$1,{'type':'file'}),([G],m)=>{const Y={'isFileHandle':!![],'filename':G};return m['collections']['files']['push'](Y),Y;}),Description$1=As$1(Anything$1,StandaloneStringExpression),RandomValueLiteral=Node(Mark(All(Optional(IndefiniteArticle),Optional(Random),Description$1),{'type':'random\x20value'}),([G],m)=>{const Y={'isRandomValue':!![],'description':G};return m['collections']['randomValues']['push'](Y),Y;}),GrabAction=Mark(/grab/i,{'type':'actionword'}),Clip=G=>Effect(G,([m],Y)=>{if(typeof m==='object'&&m&&'isRef'in m)Y['context']['reference']=m;Y['context']['clipboard']=m;}),Grab=LogGroup('Grab',Void(All(GrabAction,Any(Clip(ElementValueExtractor),Longest(Clip(AnyExpression$1),ExplicitElement))))),{Apply:Apply$24,Mutate:Mutate$24}=State({'type':'set\x20variable','data':{'value':null},'names':[]}),SetVariableAction=Mark(/set|assign|define/i,{'type':'actionword'}),StoreValueAction=Mark(/set|assign|remember|memorize|store|save/i,{'type':'actionword'}),{Masker,Maskable,mask}=Mask(),SetOperator='=',Name=G=>Mutate$24(Effect(Mark(G,{'type':'variable\x20name'}),([m],Y,I)=>{if(isReservedName(m))Y['collections']['errors']['push']({'type':'ReservedVariableNameError','pos':I['pos'],'text':Y['text']['slice'](I['pos'],Y['pos']),'message':m+'\x20is\x20a\x20reserved\x20variable\x20which\x20cannot\x20be\x20set'});else{if(isSecretName(m))mask(Y);}}),(m,[Y])=>{const I={'name':Y};if(isSecretName(Y))I['secret']=!![];m['names']['push'](I);}),NamesList=G=>Mutate$24(List(G,AndListSeparator),(m,Y)=>{if(Y['length']>0x1)m['destruction']=!![];}),StringishName=Name(Any(Quoted$1(MultiWordIdentifier),Identifier$1,Fix(Wrap({'left':'{','right':'}'},MultiWordIdentifier),(G,[m])=>'\x22'+m+'\x22'))),StandaloneName=Name(Any(Identifier$1,Fix(Wrap({'left':'{','right':'}'},Identifier$1),(G,[m])=>m))),Value$2=G=>Mutate$24(Mark(Maskable(G),{'type':'variable\x20value'}),(m,[Y])=>m['data']['value']=Y),DataValue=Value$2(AnyExpression$1),ExtractorValue=Value$2(Any(ElementValueExtractor,Node(Element$2({'explicit':!![]}),([G])=>({'operator':'extract','operands':[{'isOperand':!![],'value':G},'string']})))),OTPValue$1=Mutate$24(Value$2(OTPLiteral),G=>G['data']['secret']=!![]),ClipboardValue$1=Value$2(Mark(Any(PreCondition(G=>G['context']['has']('clipboard'),Node(Any(It,Them),(G,m)=>m['context']['clipboard'])),PreCondition(G=>G['context']['has']('element'),Node(Any(It,All(Its,Value$5)),(G,m)=>({'operator':'extract','operands':[{'isOperand':!![],'value':m['context']['element']},'string']})))),{'type':'reference'})),SomeValue=Any(OTPValue$1,Value$2(OperationExpression),ExtractorValue,ClipboardValue$1,DataValue),AnyValue=Any(Mutate$24(Effect(Any(All(Article(Secret),SomeValue),All(SomeValue,Article(Secret))),(G,m)=>mask(m)),(G,m)=>G['data']['secret']=!![]),SomeValue),SetVariable=LogGroup('SetVariable',Effect(Apply$24(Masker(Any(All(StoreValueAction,AnyValue,As,Article(Value$5),Of,Optional(Article(Variables)),NamesList(StringishName)),All(StoreValueAction,AnyValue,StoragePreposition,Optional(The),Variables,NamesList(StringishName)),All(SetVariableAction,Optional(Article(Variables)),NamesList(StringishName),Any(AssignmentPreposition,SetOperator),Optional(Article(Value$5)),AnyValue),All(StoreValueAction,AnyValue,StoragePreposition,NamesList(StringishName)),All(NamesList(StandaloneName),SetOperator,AnyValue)))),([G],m)=>{if(G['destruction']&&G['data']['value']&&typeof G['data']['value']==='object'&&'isRef'in G['data']['value']&&G['data']['value']['name']==='random\x20value'&&G['data']['value']['scope']==='internal'){const Y=m['collections']['randomValues']['at'](-0x1);Y['properties']=G['names']['map'](({name:I})=>I);}if(G['destruction'])m['collections']['variables']['push'](...G['names']['map'](({name:I})=>({'name':I})));else m['collections']['variables']['push'](...G['names']['map'](({name:I})=>({'name':I,'value':G['data']['value']})));})),{Apply:Apply$23,Mutate:Mutate$23}=State({'type':'set\x20variable','data':{},'scope':'internal'}),SetTimeoutAction=Mark(/set|assign|define/i,{'type':'actionword'}),ImplicitlyWaitAction=Mark(/(?:implicitly)?\s+wait|wait\s+(?:implicitly)?/i,{'type':'actionword'}),TimeoutName=Any(Mutate$23(/(?:(?:browser|url)\s+)?nav(?:igation)?s?/i,G=>G['names']=[{'name':'navigateTimeout'}]),Mutate$23(/elements?(?:\s+(?:finding|locating))?|(?:finding|locating)\s+elements?/i,G=>G['names']=[{'name':'findTimeout'}]),Mutate$23(/(?:(?:taking|capturing)\s+)?(?:screenshots?|screen\s+captures?)/i,G=>G['names']=[{'name':'screenshotTimeout'}]),Mutate$23(/(?:(?:taking|capturing)\s+)?preview\s+(?:screenshots?|screen\s+captures?)/i,G=>G['names']=[{'name':'previewTimeout'}])),TimeoutDefaultName=Mutate$23(Nothing$1,G=>G['names']=[{'name':'timeout'}]),Value$1=Mutate$23(TimeIntervalExpression,(G,[m])=>G['data']['value']=m),SetTimeout=LogGroup('SetTimeout',Apply$23(Any(All(SetTimeoutAction,Optional(The),Optional(Implicit),Wait$1,Optional(Time),TemporalPreposition,TimeoutName,Optional(EquivalencePreposition),Value$1),All(SetTimeoutAction,Optional(The),Optional(Implicit),Any(TimeoutName,TimeoutDefaultName),Wait$1,Optional(Time),Optional(EquivalencePreposition),Value$1),All(ImplicitlyWaitAction,Maximum,Value$1,TemporalPreposition,TimeoutName),All(ImplicitlyWaitAction,Any(All(TemporalPreposition,TimeoutName),TimeoutDefaultName),Maximum,Value$1)))),{Apply:Apply$22,Mutate:Mutate$22,state:state$1}=State({'type':'set\x20value'}),SetValueAction=Mark(/set/i,{'type':'actionword'}),SelectValueAction=Mutate$22(Mark(/select|pick|choose/i,{'type':'actionword'}),G=>G['element']=mergeElementDescriptors(G['element']??{},{'hints':{'type':'selectbox'}})),RandomlySelectAction=Mutate$22(Mark(/randomly\s+(?:select|pick|choose)/i,{'type':'actionword'}),G=>{G['element']=mergeElementDescriptors(G['element']??{},{'hints':{'type':'selectbox'}}),G['value']={'isRandomValue':!![],'type':'number'};}),AttachAction=Mutate$22(Any(Mark(/attach|upload/i,{'type':'actionword'}),All(Mark(/add|import/i,{'type':'actionword'}),File)),G=>G['element']=mergeElementDescriptors(G['element']??{},{'hints':{'type':'filepicker'}})),StringValue$1=Mutate$22(StringExpression$1,(G,[m])=>G['value']=m),StringReferenceValue=Mutate$22(Reference$1('string'),(G,[m])=>G['value']=m),FileHandleValue=Mutate$22(FileHandleLiteral,(G,[m])=>G['value']=m),OrdinalIndex$1=Mutate$22(Index$1(OrdinalNumberExpression$1),(G,[m])=>G['value']=m),CardinalIndex=Mutate$22(All(Optional(NumberSign),Index$1(CardinalNumberExpression)),(G,[m])=>G['value']=m),RandomIndex=Mutate$22(Random,G=>G['value']={'isRandomValue':!![],'type':'number'}),SelectboxHint=Mutate$22(SelectboxOption,G=>G['element']=mergeElementDescriptors(G['element']??{},{'hints':{'type':'selectbox'}})),FileHint=Mutate$22(File,G=>G['element']=mergeElementDescriptors(G['element']??{},{'hints':{'type':'filepicker'}})),Hint=Any(Mutate$22(Color$2,G=>G['element']=mergeElementDescriptors(G['element']??{},{'hints':{'type':'colorpicker'}})),Mutate$22(DateTime,G=>G['element']=mergeElementDescriptors(G['element']??{},{'hints':{'type':'datetimepicker'}})),Mutate$22(Date$1,G=>G['element']=mergeElementDescriptors(G['element']??{},{'hints':{'type':'datepicker'}})),Mutate$22(Time,G=>G['element']=mergeElementDescriptors(G['element']??{},{'hints':{'type':'timepicker'}}))),InputElement=Mutate$22(Element$2,(G,[m])=>G['element']=mergeElementDescriptors(G['element']??{},m)),StringInput=Mutate$22(StringElement,(G,[m])=>G['element']=mergeElementDescriptors(G['element']??{},m)),SetValue=LogGroup('SetValue',Apply$22(Any(All(SetValueAction,InputElement,Value$5,Optional(AssignmentPreposition),StringValue$1),All(Any(SetValueAction,SelectValueAction),Any(All(Article(Any(All(StringReferenceValue,Optional(RelationalPreposition)),OrdinalIndex$1,RandomIndex)),Any(All(SelectboxHint,Optional(RelationalPreposition),InputElement),All(StringInput,SelectboxHint),All(InputElement,Optional(SelectboxHint)))),All(Article(Any(All(Hint,StringValue$1),All(FileHint,Optional(Named),FileHandleValue),All(FileHandleValue,FileHint),All(SelectboxHint,Any(CardinalIndex,StringValue$1)),All(CardinalIndex,SelectboxHint),All(StringValue$1,Any(Hint,SelectboxHint)))),Dynamic(G=>{const m=All(Optional(Any(StoragePreposition,RelationalPreposition)),InputElement);return state$1(G)['element']?Optional(m):m;})),All(StringValue$1,Any(StoragePreposition,RelationalPreposition),InputElement))),All(RandomlySelectAction,Any(All(Optional(All(Optional(IndefiniteArticle),SelectboxHint)),Optional(RelationalPreposition),InputElement),All(Optional(RelationalPreposition),InputElement,Optional(SelectboxHint)))),All(AttachAction,Article(Any(All(FileHint,Optional(Named),FileHandleValue),All(FileHandleValue,Optional(FileHint)))),Optional(All(Optional(Any(StoragePreposition,RelationalPreposition)),InputElement)))))),{Apply:Apply$21,Mutate:Mutate$21}=State({'type':'set\x20variable','data':{},'scope':'internal'}),GenerateAction=Mark(/generate/i,{'type':'actionword'}),RandomlyGenerateAction=Mark(/randomly\s+generate/i,{'type':'actionword'}),OTP=Mutate$21(OTPLiteral,(G,[m])=>{G['names']=[{'name':'otp'}],G['data']['value']=m,G['data']['secret']=!![];}),RandomValue=Mutate$21(RandomValueLiteral,(G,[m])=>{G['names']=[{'name':'random\x20value'}],G['data']['value']=m;}),Generate=LogGroup('Generate',Effect(Apply$21(Any(All(GenerateAction,Any(OTP,RandomValue)),All(RandomlyGenerateAction,RandomValue))),([G],m)=>m['context']['clipboard']={'isRef':!![],'name':G['names']?.[0x0]?.['name'],'scope':G['scope']})),Assert=LogGroup('Assert',Node(All(Mark(/assert|check|validate|verify|make\s+sure/i,{'type':'actionword'}),Optional(That),Condition$1),([G])=>({'type':'assert','condition':G}))),{Apply:Apply$20,Mutate:Mutate$20}=State({'type':'fetch'}),FetchAction$1=Mark(/send/i,{'type':'actionword'}),Url$2=Mutate$20(Mark(Url$3,{'type':'fetch\x20url'}),(G,[m])=>G['url']=m),Endpoint=All(Optional(Any(From,To)),Optional(The),Optional(Endpoint$1),Url$2),ExplicitEndpoint=All(Any(All(Any(From,To),Optional(The),Optional(Endpoint$1)),All(Optional(Any(From,To)),The,Optional(Endpoint$1)),All(Optional(Any(From,To)),Optional(The),Endpoint$1)),Url$2),Method$2=Mark(Mutate$20(Use(/(get|post|put|patch|head|options|trace|delete|connect)/i),(G,[m])=>G['method']=m['toLowerCase']()),{'type':'fetch\x20option','subtype':'method'}),Auth$1=Mutate$20(State({'type':'basic'},({Mutate:G})=>{const m=G(Mark(StringExpression$1({'escape':/[:]/}),{'type':'username'}),(U,[u])=>U['username']=u),Y=G(Mark(UnquotedStringExpression({'char':/./,'escape':/[":]/}),{'type':'username'}),(U,[u])=>U['username']=u),I=G(Mark(UnquotedStringExpression({'char':/./,'escape':/[':]/}),{'type':'username'}),(U,[u])=>U['username']=u),c=G(Mark(Mark(StringExpression$1,{'type':'password'}),{'type':'secret'}),(U,[u])=>U['password']=u),o=G(Mark(Mark(UnquotedStringExpression({'char':/./,'escape':/[":]/}),{'type':'password'}),{'type':'secret'}),(U,[u])=>U['password']=u),W=G(Mark(Mark(UnquotedStringExpression({'char':/./,'escape':/[':]/}),{'type':'password'}),{'type':'secret'}),(U,[u])=>U['password']=u);return Mark(All(Optional(Any(As,With)),Optional(The),Mark(Any(User,BasicAuth$1),{'type':'auth\x20type'}),Any(All(m,':',c),DoubleQuoted$1(All(Y,':',o)),SingleQuoted$1(All(I,':',W)))),{'type':'fetch\x20option','subtype':'auth'});}),(G,[m])=>G['auth']=m),Cookie$1=Mutate$20(State({'secret':![]},({Mutate:G,state:m})=>{const Y=G(Article(Secret),E=>E['secret']=!![]),I=G(Mark(StringExpression$1({'escape':/[=]/}),{'type':'cookie\x20name'}),(E,[B])=>E['name']=B),c=G(Mark(UnquotedStringExpression({'char':/./,'escape':/["=]/}),{'type':'cookie\x20name'}),(E,[B])=>E['name']=B),o=G(Mark(UnquotedStringExpression({'char':/./,'escape':/['=]/}),{'type':'cookie\x20name'}),(E,[B])=>E['name']=B),W=G(Mark(StringExpression$1,{'type':'cookie\x20value'}),(E,[B])=>E['value']=B),U=G(Mark(UnquotedStringExpression({'char':/./,'escape':/["]/}),{'type':'cookie\x20value'}),(E,[B])=>E['value']=B),u=G(Mark(UnquotedStringExpression({'char':/./,'escape':/[']/}),{'type':'cookie\x20value'}),(E,[B])=>E['value']=B),p=E=>Dynamic(B=>m(B)['secret']?Mark(E,{'type':'secret'}):E);return Mark(All(Optional(With),Optional(The),Optional(Y),HttpCookie,Any(All(Optional(Any(Named,Name$1)),I,And,Optional(AssociationPreposition),Optional(HttpCookie),Optional(Y),Value$5,p(W)),All(I,'=',p(W)),DoubleQuoted$1(All(c,'=',p(U))),SingleQuoted$1(All(o,'=',p(u))))),{'type':'fetch\x20option','subtype':'cookie'});}),(G,[m])=>(G['cookies']??=[])['push'](m)),Headers$1=List(Any(Auth$1,Mutate$20(State({'secret':![]},({Mutate:G,state:m})=>{const Y=G(Article(Secret),u=>u['secret']=!![]),I=G(Mark(StringExpression$1({'escape':/[:]/}),{'type':'header\x20name'}),(u,[p])=>u['name']=p),c=G(Mark(StringExpression$1,{'type':'header\x20value'}),(u,[p])=>u['value']=p),o=G(Mark(UnquotedStringExpression({'char':/./,'escape':/["]/}),{'type':'header\x20value'}),(u,[p])=>u['value']=p),W=G(Mark(UnquotedStringExpression({'char':/./,'escape':/[']/}),{'type':'header\x20value'}),(u,[p])=>u['value']=p),U=u=>Dynamic(p=>m(p)['secret']?Mark(u,{'type':'secret'}):u);return Mark(All(Optional(With),Optional(The),Optional(Y),HttpHeader,Any(All(Optional(Any(Named,Name$1)),I,And,Optional(AssociationPreposition),Optional(HttpHeader),Optional(Y),Value$5,U(c)),All(I,':',U(c)),DoubleQuoted$1(All(I,':',U(o))),SingleQuoted$1(All(I,':',U(W))))),{'type':'fetch\x20option','subtype':'header'});}),(G,[m])=>(G['headers']??=[])['push'](m)),Cookie$1),Optional(AndListSeparator)),BodyType=Mark(Mutate$20(Use(/(json|xml|base64)/i),(G,[m])=>(G['body']??={'data':null})['type']=m['toLowerCase']()),{'type':'body\x20type'}),BodyData=Mark(Mutate$20(AnyExpression$1,(G,[m])=>(G['body']??={'data':null})['data']=m),{'type':'body\x20data'}),Body$2=Mark(All(Optional(With),Optional(BodyType),Optional(HttpBody),BodyData),{'type':'fetch\x20option','subtype':'body'}),StatusCodes$1=Mark(Mutate$20(Any(/any/i,List(Use(/([1-5]\d\d)/),Optional(OrListSeparator))),(G,m)=>G['statuses']=m['length']>0x0?m['map'](Y=>Number['parseInt'](Y)):'*'),{'type':'status\x20codes'}),Statuses$1=Mark(All(Optional(AndListSeparator),Any(Expect,Expecting),Any(All(Optional(The),HttpStatusCodes,Optional(':'),StatusCodes$1),All(StatusCodes$1,HttpStatusCodes))),{'type':'fetch\x20option','subtype':'statuses'}),Fetch=LogGroup('Fetch',Effect(Apply$20(All(Any(All(FetchAction$1,Method$2,Optional(Http)),All(FetchAction$1,Optional(IndefiniteArticle),Optional(Http),Optional(Method$2)),All(Optional(Http),Method$2)),Optional(Request$1),Any(All(Any(All(Headers$1,Optional(All(Optional(AndListSeparator),NonEmpty(Weak(Body$2))))),NonEmpty(Weak(Body$2))),Optional(All(Optional(AndListSeparator),Headers$1)),ExplicitEndpoint,Optional(Headers$1)),All(Optional(Headers$1),Endpoint,Optional(Any(All(Headers$1,Optional(All(Optional(AndListSeparator),NonEmpty(Weak(Body$2))))),NonEmpty(Weak(Body$2)))),Optional(All(Optional(AndListSeparator),Headers$1)))),Optional(Statuses$1))),([G],m)=>{m['collections']['fetches']['push'](G),m['collections']['variables']['push']({'name':'response'}),m['context']['clipboard']={'isRef':!![],'name':'response'};})),Evaluate=LogGroup('Evaluate',Effect(Node(All(Mark(/evaluate|execute|run/i,{'type':'actionword'}),Optional(The),JavaScript,Optional(CodeSnippet),Optional(/[:-]/),JSExpressionLiteral$1),([G])=>({'type':'evaluate','js':G})),(G,m)=>{m['collections']['variables']['push']({'name':'js-result'}),m['context']['clipboard']={'isRef':!![],'name':'js-result'};})),{Apply:Apply$19,Mutate:Mutate$19}=State({'type':'navigate'}),NavigateAction=All(Any(All(Mark(/navigate/i,{'type':'actionword'}),Optional(All(Optional(The),Browser$1))),Mark(/goto|browse|visit|open/i,{'type':'actionword'})),Optional(To),Optional(The)),GoToPageAction=All(Mark(/go/i,{'type':'actionword'}),Optional(To),Optional(The)),AbsoluteUrl=Mutate$19(Mark(Url$3,{'type':'navigation\x20url'}),(G,[m])=>G['url']=m),ExplicitAbsoluteUrl=Mutate$19(Mark(ExplicitUrl,{'type':'navigation\x20url'}),(G,[m])=>G['url']=m),RelativeUrl=Mutate$19(Mark(StringExpression$1,{'type':'navigation\x20url'}),(G,[m])=>(G['url']=m,G['relative']=!![])),Direction$1=Any(Mutate$19(Any(Back,Previous),G=>G['direction']='back'),Mutate$19(Any(Forward,Next),G=>G['direction']='forward')),VerboseDirection=Any(Mutate$19(All(Back,To,Optional(The),Previous,Website),G=>G['direction']='back'),Mutate$19(All(Forward,To,Optional(The),Next,Website),G=>G['direction']='forward')),CardinalTimes=Mutate$19(CardinalNumberExpression,(G,[m])=>G['times']=m),IterativeTimes=Mutate$19(Any(All(CardinalNumberExpression,Times$3),IterativeNumberExpression),(G,[m])=>G['times']=m),StatusCodes=Mutate$19(Any(/any/i,List(Use(/([1-5]\d\d)/),Optional(OrListSeparator))),(G,m)=>G['statuses']=m['length']>0x0?m['map'](Y=>Number['parseInt'](Y)):'*'),Statuses=All(Optional(AndListSeparator),Any(Expect,Expecting),Any(All(Optional(The),HttpStatusCodes,Optional(':'),StatusCodes),All(StatusCodes,HttpStatusCodes))),ExplicitNavigateBody=Any(All(VerboseDirection,Optional(IterativeTimes)),All(CardinalTimes,Websites,Direction$1),All(Direction$1,Any(All(CardinalTimes,Websites),Optional(Website))),All(RelativeUrl,Relative,To,Optional(The),Current,Optional(Any(Url$4,Website)),Optional(Statuses)),All(Any(Url$4,All(Website,Optional(LocationPreposition))),AbsoluteUrl,Optional(Statuses))),Navigate=LogGroup('Navigate',Apply$19(Any(All(NavigateAction,Any(ExplicitNavigateBody,All(AbsoluteUrl,Optional(Any(Url$4,Website)),Optional(Statuses)))),All(GoToPageAction,Any(ExplicitNavigateBody,All(ExplicitAbsoluteUrl,Optional(Any(Url$4,Website)),Optional(Statuses)),All(AbsoluteUrl,Any(Url$4,Website),Optional(Statuses)),All(AbsoluteUrl,Optional(Any(Url$4,Website)),Statuses)))))),{Apply:Apply$18,Mutate:Mutate$18}=State({'type':'focus'}),FocusAction=Mark(/(?:(?:set\s+)?focus)/i,{'type':'actionword'}),Element$1=Mutate$18(Element$2,(G,[m])=>G['element']=m),Focus=LogGroup('Focus',Apply$18(All(FocusAction,Optional(LocationPreposition),Element$1))),CheckAction=Mark(/check|tick|select|(?:turn|switch)\s+on/i,{'type':'actionword'}),UncheckAction=Mark(/uncheck|untick|unselect|(?:turn|switch)\s+off/i,{'type':'actionword'}),Check=LogGroup('Check',Node(All(Any(Node(CheckAction,()=>!![]),Node(UncheckAction,()=>![])),Element$2),([G,m])=>({'type':'check','value':G,'element':m}))),Clear=LogGroup('Clear',Node(All(Mark(/clear/i,{'type':'actionword'}),Any(All(Article(String$1),LocationPreposition,Element$2),Longest(Node(String$1,()=>({'state':{'focused':!![]},'fallback':{'type':'textbox'}})),Element$2))),([G])=>({'type':'clear','element':G}))),{Apply:Apply$17,Mutate:Mutate$17}=State({'type':'erase'}),EraseAction=Mark(/erase|delete|remove/i,{'type':'actionword'}),Size=Mutate$17(CardinalNumberExpression,(G,[m])=>G['size']=m),DefaultSize=Mutate$17(Optional(IndefiniteArticle),G=>G['size']=0x1),TargetTextbox=Mutate$17(Element$2,(G,[m])=>G['element']=m),Erase=LogGroup('Erase',Apply$17(All(EraseAction,Any(All(Size,Characters),All(DefaultSize,Character)),Optional(All(Optional(LocationPreposition),TargetTextbox))))),{Apply:Apply$16,Mutate:Mutate$16}=State({'type':'hover'}),HoverAction=Mark(/hover(?:\s+(?:over|inside|on(?:(?:\s+the)?\s+center\s+of|\s+top(?:\s+of)?)?))?|(?:(?:move|place)?\s+(?:the\s+)?)?(?:cursor|mouse)\s+over/i,{'type':'actionword'}),Anchor$2=Mutate$16(Anchor$3({'Element':Element$2}),(G,[m])=>G['element']?G['element']['anchor']=[m,G['element']['anchor']??[]]['flat']():G['element']={'anchor':m}),TargetElement$3=Mutate$16(Element$2,(G,[m])=>G['element']?Object['assign'](G['element'],m,m['anchor']&&G['element']['anchor']?{'anchor':[G['element']['anchor']??[],m['anchor']??[]]['flat']()}:{}):G['element']=m),FocusedElement$2=Mutate$16(ImplicitElement,(G,[m])=>G['element']=m),Hover=LogGroup('Hover',Apply$16(All(HoverAction,Any(All(Optional(LocationPreposition),FocusedElement$2),All(Optional(Weak(Anchor$2)),Optional(LocationPreposition),TargetElement$3))))),{Apply:Apply$15,Mutate:Mutate$15}=State({'type':'type'}),TypeActionKeyword=/type|enter|fill|write|insert/i,TypeAction=Mark(TypeActionKeyword,{'type':'actionword'}),GenerateAndTypeAction=Mark(All(/generate/i,And,TypeActionKeyword),{'type':'actionword'}),Preposition=Any(LocationPreposition,FunctionalPreposition,For),StringValue=Mutate$15(Mark(StringExpression$1,{'type':'value'}),(G,[m])=>G['value']=m),OTPValue=Mutate$15(Mark(OTPLiteral,{'type':'value'}),(G,[m])=>G['value']=m),ClipboardValue=Mutate$15(Mark(Any(PreCondition(G=>G['context']['has']('element'),Node(All(Its,Value$5),(G,m)=>({'operator':'extract','operands':[{'isOperand':!![],'value':m['context']['element']},'string']}))),PreCondition(G=>G['context']['has']('clipboard'),Node(Any(It,Them),(G,m)=>m['context']['clipboard']))),{'type':'value'}),(G,[m])=>G['value']=m),UnquotedCompoundValue=Weak(Fix(Mutate$15(Mark(All(UnquotedStringLiteral$1,UnquotedStringLiteral$1),{'type':'value'}),(G,[m,Y])=>G['value']=m+'\x20'+Y),G=>'\x22'+G+'\x22')),Value=Any(OTPValue,ClipboardValue,StringValue),MaskedValue=Mutate$15(Mark(Value,{'type':'secret'}),G=>G['secret']=!![]),SecretValue=Any(All(Optional(The),Secret,MaskedValue),All(MaskedValue,Secret)),TextboxElement=Mutate$15(Any(ImplicitElement,Element$2),(G,[m])=>G['element']=m),AnchoredTextboxElement=Mutate$15(Anchor$3({'Element':Element$2}),(G,[m])=>G['element']={'anchor':m}),SecretTextboxElement=Longest(PostCondition(TextboxElement,([G])=>!!G['secret']),All(Optional(The),Secret,TextboxElement)),DefaultTextboxElement=Mutate$15(PreCondition(G=>G['context']['has']('element'),Node(Nothing$1,(G,m)=>m['context']['element'])),(G,[m])=>G['element']={'state':{'focused':!![]},'fallback':m}),SecretDefaultTextboxElement=PreCondition(G=>G['context']['has']('element')&&!!G['context']['element']['secret'],DefaultTextboxElement),ChromeTextboxElement=Mutate$15(ChromeTextbox,(G,[m])=>G['element']=m),ExplicitChromeTextboxElement=Mutate$15(ExplicitChromeTextbox,(G,[m])=>G['element']=m),DialogTextboxElement=Mutate$15(DialogTextbox,(G,[m])=>G['element']=m),ExplicitDialogTextboxElement=Mutate$15(ExplicitDialogTextbox,(G,[m])=>G['element']=m),InBrowserDialog=Mutate$15(All(LocationPreposition,Optional(The),BrowserDialog,Optional(ActionModifierSeparator)),G=>G['element']={'isDialogElementDescriptor':!![],'title':'prompt'}),ConventionalTextboxElement=Any(All(Preposition,TextboxElement),AnchoredTextboxElement),TypeBody=Any(All(Url$4,Value,Preposition,ChromeTextboxElement),All(Value,Preposition,Any(ExplicitChromeTextboxElement,ExplicitDialogTextboxElement)),All(MaskedValue,Preposition,SecretTextboxElement),All(Any(SecretValue,Value),ConventionalTextboxElement),All(SecretValue,Optional(DefaultTextboxElement)),All(SecretTextboxElement,MaskedValue),All(TextboxElement,SecretValue),All(OTPValue,Optional(DefaultTextboxElement)),Longest(All(MaskedValue,SecretDefaultTextboxElement),All(Value,Optional(DefaultTextboxElement)),UnquotedCompoundValue,All(TextboxElement,Weak(Value)))),Type$1=LogGroup('Type',Apply$15(Any(All(TypeAction,TypeBody),All(InBrowserDialog,TypeAction,Value,Optional(All(Preposition,DialogTextboxElement))),All(GenerateAndTypeAction,OTPValue,Optional(Any(ConventionalTextboxElement,DefaultTextboxElement)))))),PartialType=LogGroup('PartialType',Apply$15(TypeBody)),{Apply:Apply$14,Mutate:Mutate$14}=State({'type':'search'}),SearchAction=Mark(/search/i,{'type':'actionword'}),QuotedValue=Mutate$14(Mark(QuotedStringExpression,{'type':'value'}),(G,[m])=>G['value']=m),UnquotedValue=Fix(Mutate$14(Mark(Anything$1,{'type':'value'}),(G,[m])=>G['value']=m['trim']()),G=>'\x22'+G+'\x22'),Input=Mutate$14(Element$2,(G,[m])=>G['element']=m),Search=LogGroup('Search',Dynamic(G=>{const m=Apply$14(All(SearchAction,Optional(For),Optional(The),Longest(All(Any(QuotedValue,UnquotedValue),Optional(All(Optional(LocationPreposition),PostCondition(Input,([Y])=>!!Y['type'])))),UnquotedValue)));if(!G['options']['intent'])return m;else return Node(Text$2(m),([Y],I)=>{const c={'type':'intent','description':Y};return I['collections']['intents']['push'](c),c;});})),{Apply:Apply$13,Mutate:Mutate$13}=State({'type':'click'}),ClickAction=Mark(NoBoundary(All(Optional(All(Any(Mutate$13(Any(Node(/left/i,()=>'left'),Node(/right/i,()=>'right')),(G,[m])=>G['button']=m),Mutate$13(MultiplicativeNumberLiteral,(G,[m])=>G['times']=m)),Optional('-'))),/click|press|hit|tap|open|expand|collapse/i)),{'type':'actionword'}),Anchor$1=Mutate$13(Anchor$3({'Element':Element$2}),(G,[m])=>G['element']?G['element']['anchor']=[m,G['element']['anchor']??[]]['flat']():G['element']={'anchor':m}),TargetElement$2=Mutate$13(Element$2,(G,[m])=>G['element']=G['element']?mergeElementDescriptors(G['element'],m):m),FocusedElement$1=Mutate$13(ImplicitElement,(G,[m])=>G['element']=m),ExplicitDialogElement=Mutate$13(ExplicitDialogButton,(G,[m])=>G['element']=m),DialogElement=Mutate$13(DialogButton,(G,[m])=>G['element']=m),ExplicitChromeElement=Mutate$13(ExplicitChromeButton,(G,[m])=>G['element']=m),ChromeElement=Mutate$13(ChromeButton,(G,[m])=>G['element']=m),ControlKey=Mutate$13(Mark(Stringish(ControlKey$1),{'type':'value'}),(G,[m])=>(G['keys']??=[])['push'](m)),Key$1=Mutate$13(Mark(Stringish(KeyboardKey),{'type':'value'}),(G,[m])=>(G['keys']??=[])['push'](m)),ChordSeparator$1=Any(AndListSeparator,'+',Nothing$1),Chord$1=List(All(Optional(The),Any(All(KeyboardKey$1,Key$1),All(Key$1,Optional(KeyboardKey$1)))),ChordSeparator$1),Click=LogGroup('Click',Apply$13(Any(All(Mutate$13(Mark(Text$2(Any(Accept,Dismiss)),{'type':'actionword'}),(G,[m])=>G['element']={'type':'button','title':m}),Optional(Mutate$13(Any(Dialog,Element$2),(G,[m])=>attachAnchor(G['element'],{'position':'inside','element':m})))),All(Optional(All(ControlKey,Optional(All(Optional(ChordSeparator$1),Chord$1)),Optional(ChordSeparator$1))),ClickAction,Any(All(Optional(LocationPreposition),Any(FocusedElement$1,ExplicitDialogElement,ExplicitChromeElement)),All(Optional(Weak(Anchor$1)),Optional(LocationPreposition),TargetElement$2)),Optional(All(While,Holding,Chord$1))),All(LocationPreposition,Optional(The),BrowserToolbar,Optional(ActionModifierSeparator),ClickAction,Optional(LocationPreposition),ChromeElement),All(LocationPreposition,Optional(The),BrowserDialog,Optional(ActionModifierSeparator),ClickAction,Optional(LocationPreposition),DialogElement)))),{Apply:Apply$12,Mutate:Mutate$12}=State({'type':'scroll'}),ScrollAction=Mark(/scroll/i,{'type':'actionword'}),GoToPositionAction=Mark(/go/i,{'type':'actionword'}),Direction=Mutate$12(Any(Node(/upwards?|up/i,()=>'up'),Node(/downwards?|down/i,()=>'down'),Node(/left/i,()=>'left'),Node(/right/i,()=>'right')),(G,[m])=>G['direction']=m),Times$1=Mutate$12(Any(IterativeNumberLiteral,All(CardinalNumberExpression,Times$3)),(G,[m])=>G['times']=m),Distance=Mutate$12(NoBoundary(All(QuantitativeNumberExpression,Optional(Pixels))),(G,[m])=>G['distance']=m),AbsolutePositionMutator=(G,[m])=>{delete G['direction'],delete G['fraction'],G['position']=m;},AbsolutePosition=Mutate$12(All(Optional(To),AbsolutePosition$1),AbsolutePositionMutator),ExplicitAbsolutePosition=Mutate$12(All(To,AbsolutePosition$1),AbsolutePositionMutator),Fraction=Mutate$12(All(Optional(The),Any(InnerRelationalOffset,QuantitativeNumberExpression)),(G,[m])=>G['fraction']=m),ContextElement=Mutate$12(Any(Viewport,Element$2),(G,[m])=>G['element']=m),PageContextElement=Mutate$12(Any(Viewport,PageElement),(G,[m])=>G['element']=m),TargetElement$1=Mutate$12(Element$2,(G,[m])=>{if(G['position']==='bottom')m['orderDirection']='backward';delete G['direction'],delete G['position'],G['element']=m;}),TargetExplicitElement=Mutate$12(ExplicitElement,(G,[m])=>{if(G['position']==='bottom')m['orderDirection']='backward';delete G['direction'],delete G['position'],G['element']=m;}),Scroll=LogGroup('Scroll',Apply$12(Any(All(Any(ScrollAction,GoToPositionAction),Any(All(Fraction,Any(All(ExplicitAbsolutePosition,Optional(All(Optional(Any(Of,LocationPreposition)),ContextElement))),All(Optional(Any(Of,LocationPreposition)),ContextElement,Optional(Any(Direction,AbsolutePosition))),All(Direction,Optional(AbsolutePosition),Optional(All(Optional(Any(Of,LocationPreposition)),ContextElement))),All(AbsolutePosition,Optional(All(Optional(Any(Of,LocationPreposition)),ContextElement))))),All(Direction,Optional(Any(All(Times$1,Optional(All(Optional(Fraction),Optional(AbsolutePosition),Optional(Any(Of,LocationPreposition)),ContextElement))),All(Optional(By),Distance),All(Optional(Fraction),Optional(AbsolutePosition),Optional(Any(Of,LocationPreposition)),Any(All(To,TargetElement$1),ContextElement)),Fraction))),All(AbsolutePosition,Optional(Any(All(Any(Of,LocationPreposition),ContextElement),PageContextElement,TargetElement$1))),All(ContextElement,Any(All(Direction,Optional(By),Distance),All(Direction,Optional(Times$1),Optional(Fraction)),All(Optional(Times$1),Fraction,Direction))))),All(ScrollAction,To,TargetElement$1),All(GoToPositionAction,To,TargetExplicitElement)))),{Apply:Apply$11,Mutate:Mutate$11}=State({'type':'navigate\x20pdf'}),NavigatePdfAction=Mark(/go|navigate|jump|switch|flip/i,{'type':'actionword'}),ShowPdfPageAction=Mark(/open|view|show/i,{'type':'actionword'}),PdfPage=Mutate$11(Any(All(Any(OrdinalNumberExpression$1,Node(Last$1,()=>-0x1)),Any(PdfPage$1,Page)),All(Any(PdfPage$1,Page),Optional(Any(NumberSign,Number$1)),CardinalNumberExpression)),(G,[m])=>G['page']=m),NavigatePdf=Apply$11(All(Any(All(NavigatePdfAction,To),ShowPdfPageAction),Optional(The),PdfPage)),{Apply:Apply$10,Mutate:Mutate$10}=State({'type':'wait'}),WaitAction=Mark(/wait|halt|pause|delay|block/i,{'type':'actionword'}),TimeInterval=Mutate$10(TimeIntervalExpression,(G,[m])=>G['timeout']=m),Condition=Any(Mutate$10(Condition$1,(G,[m])=>G['condition']=m),Mutate$10(Element$2,(G,[m])=>G['condition']={'isCondition':!![],'operation':{'operator':'visible','operands':[{'isOperand':!![],'value':m}]}})),Wait=LogGroup('Wait',Apply$10(All(WaitAction,Optional(Any(All(Optional(For),Optional(Maximum),TimeInterval,Optional(All(Any(For,Until),Condition))),All(Any(For,Until),Condition,Optional(All(Optional(For),Optional(Maximum),TimeInterval)))))))),{Apply:Apply$9,Mutate:Mutate$9}=State({'type':'refresh'}),RefreshAction=Mark(/refresh|reload/i,{'type':'actionword'}),Type=Any(Mutate$9(/hard(?:ly)?|(?:ignore|ignoring|skip|skipping)(?:\s+the)?(?:\s+cache)/i,G=>G['value']='hard'),Mutate$9(/soft(?:ly)?/i,G=>G['value']='soft')),Refresh=LogGroup('Refresh',Apply$9(Any(All(RefreshAction,Optional(All(Optional(The),Any(Page,BrowserTab))),Optional(Type)),All(Type,RefreshAction,Optional(All(Optional(The),Any(Page,BrowserTab))))))),{Apply:Apply$8,Mutate:Mutate$8}=State({'type':'hit\x20key'}),HitKeyAction=Mark(/hit|press/i,{'type':'actionword'}),TypeKeyAction=Mark(/type/i,{'type':'actionword'}),InputSource=All(LocationPreposition,Optional(The),Keyboard$1),Times=Mutate$8(Any(All(CardinalNumberExpression,Times$3),IterativeNumberExpression),(G,[m])=>G['times']=m),Key=Mutate$8(Mark(Stringish(KeyboardKey),{'type':'value'}),(G,[m])=>(G['keys']??=[])['push'](m)),ArrowKey=Mutate$8(ArrowKey$1,(G,[m])=>(G['keys']??=[])['push'](m)),BackspaceKey=Mutate$8(BackspaceKey$1,(G,[m])=>(G['keys']??=[])['push'](m)),DeleteKey=Mutate$8(DeleteKey$1,(G,[m])=>(G['keys']??=[])['push'](m)),ChordSeparator=Any(AndListSeparator,'+',Nothing$1),Chord=WeakList(All(Optional(The),Any(All(KeyboardKey$1,Key),All(Key,Optional(KeyboardKey$1)))),ChordSeparator),ExplicitChord=WeakList(All(Optional(The),Any(All(KeyboardKey$1,Key),All(Key,KeyboardKey$1))),ChordSeparator),HitKey=LogGroup('HitKey',Apply$8(Any(All(All(InputSource,Optional(','),Any(HitKeyAction,TypeKeyAction)),Optional(LocationPreposition),Chord,Optional(KeyboardKeys),Optional(Times)),All(HitKeyAction,Optional(LocationPreposition),Chord,Optional(Any(KeyboardKeys,InputSource)),Optional(Times)),All(TypeKeyAction,Optional(LocationPreposition),Any(All(ExplicitChord,Optional(Any(KeyboardKeys,InputSource))),All(Chord,Any(KeyboardKeys,InputSource))),Optional(Times))))),HitArrowKey=LogGroup('HitArrowKey',Apply$8(All(ArrowKey,Optional(Times)))),HitBackspaceKey=LogGroup('HitBackspaceKey',Apply$8(All(BackspaceKey,Optional(Times)))),HitDeleteKey=LogGroup('HitDeleteKey',Apply$8(All(DeleteKey,Optional(Times)))),{Apply:Apply$7,Mutate:Mutate$7}=State({'type':'switch\x20target'}),SwitchTargetAction=Mark(/switch\s+to|change\s+to|focus\s+on|click|select/i,{'type':'actionword'}),Title=Mutate$7(StringExpression$1,(G,[m])=>G['title']=m),Index=Mutate$7(Index$1(OrdinalNumberExpression$1),(G,[m])=>G['index']=m),Position=G=>Mutate$7(SequentialRelativePosition(G),(m,[{position:Y}])=>m['position']=Y),SwitchTarget=LogGroup('SwitchTarget',Apply$7(All(SwitchTargetAction,Optional(The),Any(Position(BrowserTab),All(Index,BrowserTab),All(BrowserTab,Optional(Named),Title),All(Possessive(Browser$1),Title,Tab),All(Title,BrowserTab))))),{Apply:Apply$6,Mutate:Mutate$6}=State({'type':'create\x20target'}),CreateTargetAction=Mark(/create|open/i,{'type':'actionword'}),Url$1=Mutate$6(Mark(Url$3,{'type':'navigation\x20url'}),(G,[m])=>G['url']=m),CreateTarget=LogGroup('CreateTarget',Apply$6(All(CreateTargetAction,Article(All(Optional(New),BrowserTab)),Optional(All(Any(LocationPreposition,AssociationPreposition),Article(Any(Url$4,Website)),Url$1))))),CloseTarget=LogGroup('CloseTarget',Node(All(Mark(/close/i,{'type':'actionword'}),Optional(The),Optional(Current),BrowserTab),()=>({'type':'close\x20target'}))),{Apply:Apply$5,Mutate:Mutate$5}=State({'type':'close'}),CloseAction=Mark(Dismiss,{'type':'action'}),TargetElement=Mutate$5(Any(Dialog,Element$2),(G,[m])=>G['element']=m),FocusedElement=Mutate$5(ImplicitElement,(G,[m])=>G['element']=m),Close=LogGroup('Close',Apply$5(All(CloseAction,Optional(LocationPreposition),Any(FocusedElement,TargetElement)))),{Apply:Apply$4,Mutate:Mutate$4}=State({'type':'go'}),Go=LogGroup('Go',Apply$4(All(Disambiguate(All(Mark(/go/i,{'type':'actionword'}),Optional(To),Optional(The)),G=>[G+'\x20url',G+'\x20element']),Mutate$4(StringExpression$1,(G,[m])=>G['target']=m)))),VisualCheck=LogGroup('VisualCheck',Node(Mark(/visual\s+check/i,{'type':'actionword'}),()=>({'type':'visual\x20check'}))),{Apply:Apply$3,Mutate:Mutate$3}=State({'type':'intent'}),FillAction=Mark(/fill/i,{'type':'actionword'}),FillOutAction=Mark(/fill\s+out/i,{'type':'actionword'}),Form=PostCondition(Element$2,([G])=>G['type']==='form'),Description=G=>Mutate$3(Text$2(G),(m,[Y])=>m['description']=Y),Intent=LogGroup('Intent',PreCondition(G=>G['options']['intent'],Effect(Apply$3(Any(Description(All(FillOutAction,Anything$1)),Description(All(FillAction,Form)))),([G],m)=>m['collections']['intents']['push'](G)))),{Apply:Apply$2,Mutate:Mutate$2,state}=State({'type':'initialize\x20scope'}),InitializeScopeAction=Mark(/run|execute|invoke|call|do|perform/i,{'type':'actionword'}),ScopeName=Mutate$2(Mark(StringLiteral$1,{'type':'scope\x20name'}),(G,[m])=>G['name']=m),Scope$1=Mark(All(Optional(All(Optional(Each),Optional(Of),Optional(The),TestSteps,Optional(Any(LocationPreposition,Of)))),Optional(The),Any(All(CustomFlowTest,ScopeName),All(ScopeName,Optional(CustomFlowTest)))),{'type':'scope\x20definition'}),Parameter=Mutate$2(Effect(State({'secret':![]},({Mutate:G,state:m})=>{const Y=G(Article(Secret),u=>u['secret']=!![]),I=G(Effect(Mark(Node(StringLiteral$1({'escape':/[:=]/}),([u])=>u['toLowerCase']()),{'type':'parameter\x20name'}),([u],p,E)=>{if(isReservedName(u))p['collections']['errors']['push']({'type':'ReservedParameterNameError','pos':E['pos'],'text':p['text']['slice'](E['pos'],p['pos']),'message':u+'\x20is\x20a\x20reserved\x20variable\x20name\x20and\x20cannot\x20be\x20used\x20as\x20an\x20argument'});}),(u,[p])=>{u['name']=p;if(isSecretName(p))u['secret']=!![];}),c=PostCondition(I,(u,p)=>m(p)['secret']),o=G(Mark(AnyExpression$1,{'type':'parameter\x20value'}),(u,[p])=>u['value']=p),W=Mark(o,{'type':'secret'}),U=u=>Dynamic(p=>m(p)['secret']?Mark(u,{'type':'secret'}):u);return Any(All(W,StoragePreposition,Optional(The),c),All(Optional(Y),U(o),StoragePreposition,Optional(The),I),All(I,Any(All(Any(AssignmentPreposition,Be),Optional(The)),/[:=]/),Optional(Y),U(o)));}),([G],m,Y)=>{if(state(m)['parameters']?.['some'](({name:I})=>I===G['name']))m['collections']['errors']['push']({'type':'RedefinedParameterError','pos':Y['pos'],'text':m['text']['slice'](Y['pos'],m['pos']),'message':'The\x20argument\x20'+G['name']+'\x20is\x20already\x20defined'});}),(G,[m])=>(G['parameters']??=[])['push'](m)),Parameters=Mark(List(All(Optional(Any(With,When,Using)),Optional(Parameters$1),Parameter),AndListSeparator),{'type':'scope\x20parameters'}),AssertionType=Any(Node(/visual\s+and\s+(?:non[-\s]?visual|textual)|(?:non[-\s]?visual|textual)\s+and\s+visual/i,()=>'all'),Node(/visual/i,()=>'visual'),Node(/non[-\s]?visual|textual/i,()=>'nonvisual')),Options$1=Mark(List(All(Any(All(Any(Run,Running),Optional(All(Each,Optional(All(Of,Optional(The)))))),All(Dont,Skip),All(Without,Skipping)),Any(Mutate$2(All(Optional(AssertionType),Assertions),(G,[m='all'])=>{const Y=G['options']??={};if(!Y['assertions']||m==='all')Y['assertions']=m;else{if(Y['assertions']!=='all'&&Y['assertions']!==m)Y['assertions']='all';}}),Mutate$2(Article(All(Start,Url$4)),G=>(G['options']??={})['navigation']='all'))),AndListSeparator),{'type':'scope\x20options'}),InitializeScope=Effect(Apply$2(Mark(All(InitializeScopeAction,Scope$1,Optional(All(Optional(AndListSeparator),Parameters)),Optional(All(Optional(AndListSeparator),Options$1))),{'type':'control\x20flow','subtype':'initialize\x20scope'})),([G],m)=>m['collections']['scopes']['push']({'name':G['name'],'parameters':(G['parameters']??[])['map'](({name:Y})=>Y),'options':G['options']})),IfKeyword=Mark(/(?:only\s+)?if(?:\s+and\s+only\s+if)?|(?:given|providing)\s+that/i,{'type':'keyword'}),UnlessKeyword=Mark(/unless/i,{'type':'keyword'}),ElseKeyword=Mark(/else|otherwise/i,{'type':'keyword'}),Block=(G,{collapseElseif:collapseElseif=![]}={})=>Mark(G,{'type':'block','mutate':collapseElseif?(m,[Y])=>{if(Y?.['length']===0x1&&Y[0x0]?.['type']==='if')m['type']='empty';}:void 0x0}),Then=All(Then$1,Optional(All(Run,Optional(All(Optional(Any(The,These,This)),Following)),Optional(TestStep),Optional(TestSteps))),Optional(ActionModifierSeparator)),Else=G=>{return LogGroup('Else',Node(All(Optional(BlockSeparator),Mark(ElseKeyword,{'type':'control\x20flow','subtype':'else'}),Optional(ActionModifierSeparator),Block(Optional(G),{'collapseElseif':!![]})),([m],Y)=>{return Y['collections']['conditionals']['length']=0x0,Y['collections']['conditionals']['push'](m?.[0x0]['type']==='if'?'elseif':'else'),m??[];}));},If=G=>{return LogGroup('If',Node(All(Mark(Any(All(IfKeyword,Condition$1),All(UnlessKeyword,NegativeCondition)),{'type':'control\x20flow','subtype':'if'}),Optional(Any(All(Optional(ActionModifierSeparator),Then),ActionModifierSeparator)),Block(Optional(G)),Optional(Else(G))),([m,Y,I],c)=>{c['collections']['conditionals']['length']=0x0,c['collections']['conditionals']['push']('if');const o={'type':'if','condition':m};if(Y)o['then']=Y;if(I)o['otherwise']=I;return o;}));};makeParse(Sanitize$1(ElementType$1));const Currency=Any(Any(/USD/i,/\$/,/U\.?S\.?\s*D(?:ollars?)?/i,/United\s*States\s*D(?:ollars?)?/i),Any(/EUR?O?s?/i,/€/),Any(/GBP/i,/£/,/Pounds?\s*(?:Sterling)?/i,/Great\s*Britain\s*Pounds?/i),Any(/JPY/i,/¥/,/(?:Japanese\s*)?Yen/i),Any(/CHF/i,/Fr\.?/i,/(?:Swiss\s*)?Francs?/i),Any(/CAD/i,/C(?:an)?\$/,/Canad(?:ian|a)\s*D(?:ollars?)?/i),Any(/AUD/i,/A(?:us)?\$/,/Austral(?:ian|ia)\s*D(?:ollars?)?/i),Any(/NZD/i,/NZ\$/,/New\s*Zealand\s*D(?:ollars?)?/i),Any(/CNY/i,/RMB/i,/CN¥/,/元/,/(?:Chinese\s*)?Yuan/i,/Renminbi/i),Any(/HKD/i,/HK\$/,/Hong\s*Kong\s*D(?:ollars?)?/i),Any(/SGD/i,/S\$/,/Singapore\s*D(?:ollars?)?/i),Any(/KRW/i,/₩/,/(?:South\s*)?Korean\s*Won/i),Any(/INR/i,/₹/,/Rs\.?/i,/(?:Indian\s*)?Rupees?/i),Any(/SEK/i,/(?:Swedish\s*)?Kron(?:a|or)/i),Any(/NOK/i,/(?:Norwegian\s*)?Kron(?:e|er)/i),Any(/TRY/i,/₺/,/TL/i,/(?:Turkish\s*)?Liras?/i),Any(/MXN/i,/Mex\$/,/(?:Mexican\s*)?Pesos?/i),Any(/BRL/i,/R\$/,/(?:Brazilian\s*)?Re(?:al|ais)/i),Any(/ZAR/i,/Rand/i,/R/)),SUPPORTED_LOCALES=['en','tr','es','fr','de','it','pt','he'];function getMonthsPattern(G){const m=new Set(),Y=new Intl['DateTimeFormat'](G,{'month':'long'}),I=new Intl['DateTimeFormat'](G,{'month':'short'});for(let o=0x0;o<0xc;o++){const W=new Date(0x7d0,o,0x1);m['add'](Y['format'](W)['toLowerCase']()),m['add'](I['format'](W)['toLowerCase']());}const c=Array['from'](m)['join']('|');return Use(new RegExp(c,'i'));}const Month=Any(...SUPPORTED_LOCALES['map'](G=>getMonthsPattern(G))),DateDelim=/[\/\-\.]/,TimeValue=Use(/(?:\d{1,2}:\d{2}(?::\d{2})?(?:\s*[ap]m)?)|(?:\d{1,2}\s*[ap]m)/i),TimeZone=Any(/Z/i,All(/[+-]/,/\d{2}/,Optional(All(/:?/,/\d{2}/)))),Year=/\d{4}/,IsoDate=All(Year,/-/,/\d{2}/,/-/,/\d{2}/,Optional(All(/T|\s+/,TimeValue,Optional(TimeZone)))),NumericDate=All(/\d{1,2}/,DateDelim,/\d{1,2}/,DateDelim,/\d{2,4}/),TextDateMonthFirst=All(Month,Optional(/\./),Optional(/\s+/),OrdinalNumberLiteral$1,Optional(All(/,?\s+/,Year))),TextDateDayFirst=All(OrdinalNumberLiteral$1,Optional(/\s+/),Optional(Of),Optional(/\s+/),Month,Optional(/\.?/),Optional(All(/,?\s+/,Year))),DateValue=Mark(Any(IsoDate,NumericDate,All(Month,Optional(/\./),Optional(/\s+/),Any(OrdinalNumberLiteral$1,NonnegativeIntegerNumberLiteral),Optional(/,/),/\s+/,Year),TextDateMonthFirst,TextDateDayFirst),{'type':'date'}),NumberValue=NumericLiteral,Percentage=Any(All(Optional(/[-+]/),Any(All(/%/,Optional(/\s+/),QuantitativeNumberLiteral),NoBoundary(All(QuantitativeNumberLiteral,Optional(/\s+/),/%/)))),Mark(All(QuantitativeNumberLiteral,Optional(/\s+/),Percentage$1),{'type':'percentage'})),Price=Mark(Any(All(NumericLiteral,Optional(/\s+/),Currency),All(Currency,Optional(/\s+/),NumericLiteral),All(/-/,Optional(/\s+/),Currency,Optional(/\s+/),QuantitativeNumberLiteral)),{'type':'price'}),Identifier=Mark(Any(/\S+/),{'type':'identifier'});function maskText(G,{meta:m,mask:mask='***'}){let Y=G;const I=[],c=[],o=[];for(const p of m['markers']??[])if(p['type']==='secret'){let E=p['pos'];for(const B of o)if(B['pos']>=p['pos']&&B['pos']+B['length']<=p['pos']+p['text']['length']){if(B['pos']>E){const t={'pos':E,'length':B['pos']-E,'text':mask};if(!c['some'](D=>D['pos']<=t['pos']&&D['pos']+D['length']>=t['pos']+t['length']))c['push'](t);}E=B['pos']+B['length'];}if(p['pos']+p['text']['length']>E){const D={'pos':E,'length':p['pos']+p['text']['length']-E,'text':mask};if(!c['some'](C=>C['pos']<=D['pos']&&C['pos']+C['length']>=D['pos']+D['length']))c['push'](D);}}else{if(p['type']==='reference'||p['type']==='element\x20descriptor')o['push']({'pos':p['pos'],'length':p['text']['length']});}for(let C of m['markers']??[]){let e=0x0;C=c['reduce']((i,X)=>{if(i['pos']<=X['pos']+e&&i['pos']+i['text']['length']>=X['pos']+e+X['length'])i['text']=replace(i['text'],X['pos']+e-i['pos'],X['length'],X['text']);else{if(i['pos']>=X['pos']+e+X['length'])i['pos']+=X['text']['length']-X['length'];}return e+=X['text']['length']-X['length'],i;},{...C}),I['push'](C);}const W=[];let U=0x0;for(const i of c){W['push']({'pos':i['pos']+U,'length':i['text']['length'],'text':Y['substring'](i['pos']+U,i['pos']+U+i['length'])}),Y=replace(Y,i['pos']+U,i['length'],i['text']),U+=i['text']['length']-i['length'];}const u={'text':Y,'meta':{...m,'markers':I,'masks':W}};if(u['meta']['navigationUrls'])u['meta']['navigationUrls']=u['meta']['markers']['reduce']((X,N)=>{if(N['type']==='navigation\x20url')X['push'](N['text']['replaceAll'](/^['"]|['"]$/g,''));return X;},[]);return u;}const Empty=LogGroup('Empty',Node(/$/,()=>({'type':'empty'}))),PreinstructionKeyword=Mark(/pre(?:-|\s+)?step/i,{'type':'keyword'}),PreinstructionDescription=All(Prior,Optional(Running),Any(Each,The),Optional(Subsequent),Optional(TestSteps)),SetPreinstructions=G=>{return Node(Mark(All(Any(All(Activate,Optional(IndefiniteArticle),PreinstructionKeyword,Optional(ActionModifierSeparator)),All(Optional(Run),Optional(All(Optional(The),Following)),Any(PreinstructionKeyword,PreinstructionDescription),Optional(ActionModifierSeparator))),G),{'type':'control\x20flow','subtype':'set\x20preinstructions'}),([m])=>({'type':'set\x20preinstructions','instructions':m}));},SetPreinstructionsPostlude=Node(All(Optional(ActionModifierSeparator),PreinstructionDescription),()=>G=>({'type':'set\x20preinstructions','instructions':G})),DropPreinstructions=Node(Mark(Any(All(Cancel,Optional(The),PreinstructionKeyword),All(Any(All(Run,Nothing),All(Dont,Run,Anything)),PreinstructionDescription)),{'type':'control\x20flow','subtype':'drop\x20preinstructions'}),()=>({'type':'drop\x20preinstructions'})),TryKeyword=Mark(/try|optional/i,{'type':'keyword'}),Try=G=>{return Node(Mark(All(Any(All(TryKeyword,Optional(ActionModifierSeparator)),All(Optionally,Optional(All(Run,Optional(All(Optional(The),Following)),Optional(Any(TestStep,TestSteps)))),Optional(ActionModifierSeparator))),G),{'type':'control\x20flow','subtype':'try'}),([m])=>({'type':'try','instructions':m}));},TryPostlude=Node(PreCondition(G=>G['context']['has']('element'),All(Optional(Only),If$1,Optional(It),Optional(/is|does|be|(?:to|can)(?:\s+be)?|(?:have|has)\s+been/i),/visible|shown|shows?(?:\s+up)?|appears?|apparent|displayed/i)),()=>G=>({'type':'try','instructions':G}));function Instructions({allowed:G,disabled:m}={}){function Y(c,o){if(m?.['includes'](c))return Never;if(G&&!G['includes'](c))return Never;return o;}const I=Node(Any(List(Mark(Effect(Any(Y('intent',Intent),Y('switch\x20target',SwitchTarget),Y('close\x20target',CloseTarget),Y('close',Close),Y('create\x20target',CreateTarget),Y('hit\x20key',HitKey),Y('type',Type$1),Y('navigate\x20pdf',NavigatePdf),Y('click',Click),Longest(Y('navigate',Navigate),Y('scroll',Scroll)),Y('go',Go),Y('search',Search),Y('assert',Assert),Y('visual\x20check',VisualCheck),Y('hover',Hover),Y('erase',Erase),Y('clear',Clear),Y('wait',Wait),Y('refresh',Refresh),Y('hit\x20key',Weak(HitArrowKey)),Y('hit\x20key',Weak(HitBackspaceKey)),Y('focus',Focus),Y('set\x20variable',SetTimeout),Y('set\x20variable',SetVariable),Y('set\x20value',SetValue),Y('check',Check),Y('set\x20variable',Generate),Longest(Y('hit\x20key',HitDeleteKey),Y('fetch',Fetch)),Y('evaluate',Evaluate),Grab,Y('type',PreCondition(c=>c['context']['action']?.['type']==='type',PartialType))),([c],o)=>o['context']['action']=c),{'type':'action','mutate':(c,[o],W)=>{c['subtype']=o?.['type']??'empty';if(W['context']['accessed'])c['type']='dependent\x20action';W['context']['refresh']();}}),ActionSeparator)),c=>c);return All(Sanitize$1(Recursive((c,{depth:o})=>{return Customizable(({avoid:W}={})=>{return Node(Any(PreCondition(()=>o===0x0,Y('empty',Empty)),PreCondition(()=>o===0x0,Y('comment',Comment)),PreCondition(()=>W!=='try',Y('try',Try(c({'avoid':'try'})))),PreCondition(()=>W!=='preinstruction',Y('set\x20preinstructions',SetPreinstructions(c({'avoid':'preinstruction'})))),PreCondition(()=>W!=='preinstruction',Y('drop\x20preinstructions',DropPreinstructions)),Y('if',If(c({'avoid':'conditional'}))),Y('if',Else(c)),Node(All(I,Optional(Any(TryPostlude,SetPreinstructionsPostlude))),([U,u])=>u?u(U):U),Y('initialize\x20scope',InitializeScope)),([U])=>Array['isArray'](U)?U:[U]);});})),Optional(InstructionTerminator));}function normalizeCurlString(G,m=/[]/){return G['replaceAll'](new RegExp(String['raw']`\\([{\\nt]|${m['source']})`,'g'),(Y,I)=>{if(I==='n')return'\x0a';else{if(I==='t')return'\x09';}return I;})['replaceAll'](/\\u([0-9a-fA-F]{4})/g,(Y,I)=>String['fromCharCode'](parseInt(I,0x10)))['replaceAll'](/\\x([0-9a-fA-F]{2})/g,(Y,I)=>String['fromCharCode'](parseInt(I,0x10)));}const CurlString=Any(Any(Node(Use(/\$'([^']*)'/),([G])=>normalizeCurlString(G)),Use(/"([^"]+)"/),Use(/'([^']+)'/)),Use(/(\S+)/)),Sanitize=G=>TokenBoundary(Ignore(/[\s\\]+/,G)),{Apply:Apply$1,Mutate:Mutate$1}=State({'type':'fetch'}),Curl=/curl/i,CliOption=(G,m)=>{return All(Any(All(/--/,G['longhand']),G['shorthand']?All(/-/,G['shorthand']):Never,G['optional']?Nothing$1:Never),m);},Url=Mutate$1(CliOption({'longhand':'url','optional':!![]},CurlString),(G,[m])=>G['url']=m),BasicAuth=Mutate$1(CliOption({'longhand':'user','shorthand':'u'},CurlString),(G,[m])=>{const [Y,I]=m['split'](':',0x2)['map'](c=>c['trim']());G['auth']={'type':'basic','username':Y,'password':I};}),Header$2=Mutate$1(CliOption({'longhand':'header','shorthand':'H'},CurlString),(G,[m])=>{const Y=m['indexOf'](':'),I=Y>-0x1?m['slice'](0x0,Y)['trim']():m['trim'](),c=Y>-0x1?m['slice'](Y+0x1)['trim']():'';G['headers']??=[],G['headers']['push']({'name':I,'value':c,'secret':![]});}),Method$1=Mutate$1(Any(CliOption({'longhand':'request','shorthand':'X'},CurlString)),(G,[m])=>{G['method']=m['toLowerCase']();}),DataBody=Mutate$1(CliOption({'longhand':Any('data-urlencode','data-ascii','data'),'shorthand':'d'},CurlString),(G,[m])=>{const [Y,I]=m['split']('=',0x2)['map'](W=>W['trim']());if(!I){G['body']??={'data':null},G['body']['data']=Y;return;}G['body']??={'data':null};const c=typeof G['body']['data']==='string'?G['body']['data']['split']('&'):[],o=Y+'='+I;G['body']['data']=[...c,o]['join']('&');}),Options=Any(BasicAuth,Header$2,Method$1,Any(Mutate$1(CliOption({'longhand':'data-raw'},CurlString),(G,[m])=>{G['body']??={'data':m};}),DataBody,Mutate$1(CliOption({'longhand':'json'},CurlString),(G,[m])=>{G['body']??={'data':null};try{G['body']['data']=convertToStructure(JSON['parse'](m));}catch{G['body']['data']=m;}finally{G['body']['type']='json';}})),Mutate$1(CliOption({'longhand':'cookie','shorthand':'b'},CurlString),(G,[m])=>{G['cookies']??=[];const Y=m['split'](';')['map'](I=>I['trim']());for(const I of Y){const [c,o]=I['split']('=',0x2);G['cookies']['push']({'name':c,'value':o,'secret':![]});}}),Raw(CliOption({'longhand':/[a-zA-Z0-9.-]+/,'shorthand':/[a-zA-Z]/},Optional(CurlString)))),parse$5=makeParse(Apply$1(Sanitize(All(Curl,Star(Options),Url,Star(Options)))));function parseCurl(G){const m=parse$5(G);if(m['errors']||!m['results'])return null;const [Y]=m['results'];return Y;}const {Apply,Mutate}=State({'type':'fetch'}),URI=Any(Mutate(Use(/(https?:\/\/(?:localhost|[-a-zA-Z0-9@:%._\+~#=]{2,256}\.[a-z]{2,4})(?::\d{1,5})?\b[-a-zA-Z0-9@:%_\+.~#?&/=]*)/),(G,[m])=>G['url']=m),Mutate(Use(/(\S+)/),(G,[m])=>{G['url']=''+(m['startsWith']('/')?'':'/')+m;})),Method=Mutate(Use(/(GET|POST|PUT|PATCH|DELETE|HEAD|OPTIONS|TRACE|CONNECT)/i),(G,[m])=>G['method']=m['toLowerCase']()),HttpVersion=Use(/HTTP\/[0-9.]+/i),Headers=All(/\n/,List(Mutate(All(Use(/([^:\n]+)/),/:\s*/,Use(/([^\n]*)/)),(G,[m,Y])=>{G['headers']??=[],G['headers']['push']({'name':m,'value':Y,'secret':![]});}),/\n/)),Body$1=Mutate(Use(/(.+)/s),(G,[m])=>{G['body']={'data':m};}),parse$4=makeParse(Apply(All(Method,/\s+/,URI,/\s+/,HttpVersion,Optional(Headers),Optional(All(/\n\n/,Body$1)))));function parseHttp(G){const m=parse$4(G);if(m['errors']||!m['results'])return null;const Y=m['results'][0x0],I=Y['headers']?.['find'](c=>c['name']==='Host')?.['value'];if(I)Y['url']='https://'+I+Y['url'];return Y;}function FetchAction(G){const m=['send\x20http'];if(G['method'])m['push'](G['method']);m['push']('request\x20to\x20'+StringExpression(G['url']));const Y=[];if(G['auth'])Y['push'](Auth(G['auth']));if(G['headers'])G['headers']['forEach'](({name:I,value:c})=>{Y['push'](Header({'name':I,'value':c}));});if(G['cookies'])G['cookies']['forEach'](({name:I,value:c})=>{Y['push'](Cookie({'name':I,'value':c}));});if(G['body'])Y['push'](Body(G['body']));if(Y['length']>0x0)m['push'](Y['join']('\x20and\x20'));if(G['statuses'])m['push'](Status(G['statuses']));return m['join']('\x20');}function Cookie(G){const m=['with'];if(G['secret'])m['push']('secret');return m['push']('cookie\x20'+StringExpression(G['name'])+'\x20=\x20'+StringExpression(G['value'])),m['join']('\x20');}function Header(G){const m=['with'];if(G['secret'])m['push']('secret');return m['push']('header\x20'+StringExpression(G['name'])+':\x20'+StringExpression(G['value'])),m['join']('\x20');}function Body(G){if(G['type'])return'with\x20'+G['type']+'\x20body\x20'+AnyExpression(G['data']);else return'with\x20body\x20'+AnyExpression(G['data']);}function Status(G){if(G==='*')return'expecting\x20any\x20status\x20code';else return'expecting\x20status\x20code'+(G['length']>0x1?'s':'')+'\x20'+G['join']('\x20or\x20');}function Auth(G,m={}){return'with\x20basic\x20auth\x20'+StringExpression(G['username'])+':'+StringExpression(G['password']);}function ElementDescriptor(G){const m=['the'];if(G['nth']!=null)m['push'](OrdinalIndex(G['nth']));if(G['reference'])m['push'](Reference(G['reference'])),m['push'](G['type']?ElementType(G['type'],G['vocabulary']):'element');else{if(G['orderDirection']==='backward'){m['push']('last'),m['push'](G['type']?ElementType(G['type'],G['vocabulary']):'element');if(typeof G['title']==='string')m['push']('with\x20text\x20'+StringExpression(G['title']));else{if(G['title']&&'name'in G['title'])m['push']('with\x20'+G['title']['name']);}}else{if(G['title']&&typeof G['title']==='object'&&'isPattern'in G['title']){m['push'](G['type']?ElementType(G['type']):'element');if('name'in G['title'])m['push']('with\x20'+G['title']['name']);}else{if(typeof G['title']==='string'&&isPatternName(G['title']))m['push'](G['type']?ElementType(G['type']):'element'),m['push']('with\x20text\x20'+StringExpression(G['title']));else{if(G['title']&&typeof G['title']==='string'&&isNamedColor(G['title']))m['push'](G['type']?ElementType(G['type'],G['vocabulary']):'element'),m['push']('with\x20text\x20'+StringExpression(G['title'],{'avoid':'unquoted'}));else{if(typeof G['color']==='string'&&isNamedColor(G['color']))m['push'](G['color']);const Y=G['title']!=null&&typeof G['title']==='object'&&('isRef'in G['title']||'isJSExpressionRef'in G['title']||G['title']['chunks']['length']===0x1&&typeof G['title']['chunks'][0x0]!=='string');if(G['title']&&!Y)m['push'](StringExpression(G['title'],{'avoid':typeof G['title']==='string'&&isElementType(G['title'])?'unquoted':void 0x0}));m['push'](G['type']?ElementType(G['type'],G['vocabulary']):'element');if(typeof G['color']==='string'&&!isNamedColor(G['color']))m['push']('with\x20color\x20'+StringExpression(G['color']));if(G['title']&&Y)m['push']('with\x20text\x20'+StringExpression(G['title']));}}}}}if(G['selector']){if(G['selector']['type']==='css')m['push']('with\x20css\x20selector\x20\x27'+StringExpression(G['selector']['selector'])+'\x27');else{if(G['selector']['type']==='xpath')m['push']('with\x20xpath\x20selector\x20\x27'+StringExpression(G['selector']['selector'])+'\x27');}}if(G['anchor'])m['push'](Anchor(G['anchor']));return m['join']('\x20');}function ElementType(G,m){G=Array['isArray'](G)?G[0x0]:G;if(m&&m[G])return m[G];switch(G){case'table-cell':return'cell';case'table-head-cell':return'header\x20cell';case'table-row':return'row';case'table-column':return'column';case'table-leaf-row':return'row';case'table-leaf-column':return'column';case'table-stub-column':return'stub\x20column';case'table-head-row':return'header\x20row';case'textbox':return'field';case'combobox':return'dropdown';case'datetimepicker':return'date\x20and\x20time\x20picker';case'datepicker':return'date\x20picker';case'timepicker':return'time\x20picker';case'colorpicker':return'color\x20picker';case'radiogroup':return'radio\x20group';case'checkboxgroup':return'checkbox\x20group';case'listitem':return'list\x20item';case'menuitem':return'menu\x20item';case'pdfpage':return'document\x20page';default:return G;}}function Anchor(G){if(Array['isArray'](G)&&G['length']===0x2&&(typeIs(G[0x0],'table-column')||typeIs(G[0x0],'table-row'))&&(typeIs(G[0x1],'table-column')||typeIs(G[0x1],'table-row'))){const I=extractCommonTableAnchor(G[0x0],G[0x1]),c=I?removeDeepestTableAnchor(G[0x0]):G[0x0],o=I?removeDeepestTableAnchor(G[0x1]):G[0x1];let W=Anchor(c)+'\x20and\x20'+Anchor(o);if(I)W+='\x20'+Anchor(I);return W;}const m=Array['isArray'](G)?G[0x0]:G,Y=[];if(m['position']==='near')Y['push']('near\x20to');else{if(m['position']==='leftof')Y['push']('to\x20the\x20left\x20of');else{if(m['position']==='rightof')Y['push']('to\x20the\x20right\x20of');else{if(m['position']==='below')Y['push']('below\x20of');else{if(m['position']==='above')Y['push']('above\x20of');else{if(m['position']==='aboveleftof')Y['push']('to\x20the\x20left\x20and\x20above\x20of');else{if(m['position']==='aboverightof')Y['push']('to\x20the\x20right\x20and\x20above\x20of');else{if(m['position']==='belowleftof')Y['push']('to\x20the\x20left\x20and\x20below\x20of');else{if(m['position']==='belowrightof')Y['push']('to\x20the\x20right\x20and\x20below\x20of');else{if(m['position']==='inside'&&typeIs(m,'table'))Y['push']('of');else{if(m['position']==='inside')Y['push']('in');else{if(m['position']==='left')Y['push']('at\x20the\x20left\x20of');else{if(m['position']==='right')Y['push']('at\x20the\x20right\x20of');else{if(m['position']==='top')Y['push']('at\x20the\x20top\x20of');else{if(m['position']==='bottom')Y['push']('at\x20the\x20bottom\x20of');else{if(m['position']==='topleft')Y['push']('at\x20the\x20left\x20and\x20top\x20of');else{if(m['position']==='topright')Y['push']('at\x20the\x20right\x20and\x20top\x20of');else{if(m['position']==='bottomleft')Y['push']('at\x20the\x20left\x20and\x20bottom\x20of');else{if(m['position']==='bottomright')Y['push']('at\x20the\x20right\x20and\x20bottom\x20of');}}}}}}}}}}}}}}}}}}if(m['element']){if('isViewportDescriptor'in m['element'])Y['push']('the\x20viewport');else{if('isDialogDescriptor'in m['element'])Y['push']('the\x20native\x20browser\x20dialog');else Y['push'](ElementDescriptor(m['element']));}}return Y['join']('\x20');}function Reference(G){if('isRef'in G)return'{'+ReferenceName(G)+'}';else return'{%'+JSExpressionLiteral(G['expression'])+'%}';}function ReferenceName(G){return(G['modifiers']??[])['reduce']((m,Y)=>{if('get'in Y){if(typeof Y['get']==='string')return test(Identifier$1,Y['get'])?m+'.'+Y['get']:m+'['+StringLiteral(Y['get'])+']';else{if(typeof Y['get']==='number')return m+'['+Y['get']+']';else{if('isRef'in Y['get']||'isJSExpressionRef'in Y['get'])return m+'['+Reference(Y['get'])+']';else{if('isInterpolatedString'in Y['get'])return m+'['+InterpolatedStringLiteral(Y['get'])+']';}}}}else{if('match'in Y){const I=Y['match'];if('pattern'in I)return m+'/'+I['pattern']+'/';else{if('name'in I)return m+'/'+I['name']+'/';}return m+'/'+String(I)+'/';}}return m;},G['name']);}function Literal(G,m){if(typeof G==='string')return StringLiteral(G,m?.['quoting']);else return JSON['stringify'](G);}function AnyExpression(G,m){if(G&&typeof G==='object'){if('isInterpolatedString'in G)return InterpolatedStringLiteral(G,m?.['quoting']);else{if('isStructure'in G)return StructureLiteral(G,m);else{if('isRef'in G||'isJSExpressionRef'in G)return Reference(G);}}return'';}else return Literal(G,m);}function JSExpressionLiteral(G){if(G['chunks']['length']===0x1)return typeof G['chunks'][0x0]==='string'?UnquotedStringLiteral(G['chunks'][0x0]):Reference(G['chunks'][0x0]);return G['chunks']['reduce']((m,Y)=>{return m+(typeof Y==='string'?UnquotedStringChunk(Y):Reference(Y));},'');}function StructureLiteral(G,m){if(G['type']==='array')return'['+G['items']['map'](Y=>AnyExpression(Y,m))['join'](',\x20')+']';else return'{'+G['items']['map'](Y=>StringExpression(Y['key'],m?.['quoting'])+':\x20'+AnyExpression(Y['value'],m))['join'](',\x20')+'}';}function StringExpression(G,m){if(typeof G==='string')return StringLiteral(G,m);else{if('isInterpolatedString'in G)return InterpolatedStringLiteral(G,m);else return Reference(G);}}function Quoted(G,m='double\x20quoted'){if(m==='double\x20quoted')return DoubleQuoted(G);else{if(m==='single\x20quoted')return SingleQuoted(G);else{if(m==='unquoted')return G;else return'';}}}function DoubleQuoted(G){return'\x22'+G+'\x22';}function SingleQuoted(G){return'\x27'+G+'\x27';}function StringLiteral(G,m){if(m?.['prefer']&&m['prefer']!==m?.['avoid']){if(m['prefer']==='unquoted'&&!G['includes']('\x20')&&!/^['"]|^[\d,.]+$/['test'](G))return UnquotedStringChunk(G);else{if(m['prefer']==='double\x20quoted'&&!G['includes']('\x22'))return DoubleQuoted(DoubleQuotedStringChunk(G));else{if(m['prefer']==='single\x20quoted'&&!G['includes']('\x27'))return SingleQuoted(SingleQuotedStringChunk(G));}}}if(m?.['avoid']!=='unquoted'&&!G['includes']('\x20')&&!/^['"]/['test'](G))return UnquotedStringChunk(G);if(m?.['avoid']!=='double\x20quoted'&&!G['includes']('\x22'))return DoubleQuoted(DoubleQuotedStringChunk(G));else{if(m?.['avoid']!=='single\x20quoted'&&!G['includes']('\x27'))return SingleQuoted(SingleQuotedStringChunk(G));else return m?.['avoid']!=='double\x20quoted'?DoubleQuoted(DoubleQuotedStringChunk(G)):SingleQuoted(SingleQuotedStringChunk(G));}}function UnquotedStringLiteral(G){return UnquotedStringChunk(G);}function InterpolatedStringLiteral(G,m){if(G['chunks']['length']===0x1)return typeof G['chunks'][0x0]==='string'?StringLiteral(G['chunks'][0x0],m):Reference(G['chunks'][0x0]);const Y=G['chunks']['reduce']((c,o,W)=>{if(typeof o==='string'){if(o['includes']('\x20')||W===0x0&&/^['"]/['test'](o))c['delete']('unquoted');else{if(o['includes']('\x22'))c['delete']('double\x20quoted');else{if(o['includes']('\x27'))c['delete']('single\x20quoted');}}}return c;},new Set(['unquoted','double\x20quoted','single\x20quoted']));if(m?.['avoid'])Y['delete'](m?.['avoid']);const I=[...Y][0x0]??(m?.['avoid']!=='double\x20quoted'?'double\x20quoted':'single\x20quoted');return Quoted(G['chunks']['reduce']((c,o)=>{return c+(typeof o==='string'?StringChunk(o,I):Reference(o));},''),I);}function StringChunk(G,m='double\x20quoted'){if(m==='unquoted')return UnquotedStringChunk(G);else{if(m==='double\x20quoted')return DoubleQuotedStringChunk(G);else{if(m==='single\x20quoted')return SingleQuotedStringChunk(G);else return'';}}}function UnquotedStringChunk(G){return G['replaceAll'](/[{]|\\(?=[\{])/g,(m,Y)=>{return m==='{'&&!startsWith$2(Reference$1('any'),G['substring'](Y))?m:'\x5c'+m;});}function SingleQuotedStringChunk(G){return G['replaceAll'](/['{]|\\(?=[\'{])/g,(m,Y)=>{return m==='{'&&!startsWith$2(Reference$1('any'),G['substring'](Y))?m:'\x5c'+m;});}function DoubleQuotedStringChunk(G){return G['replaceAll'](/["{]|\\(?=[\"{])/g,(m,Y)=>{return m==='{'&&!startsWith$2(Reference$1('any'),G['substring'](Y))?m:'\x5c'+m;});}function OrdinalIndex(G){return OrdinalNumberExpression(typeof G==='number'?G+0x1:G);}function OrdinalNumberExpression(G){if(typeof G==='number')return OrdinalNumberLiteral(G);else{if('isRef'in G||'isJSExpressionRef'in G)return Reference(G);else return'';}}function OrdinalNumberLiteral(G){if(G===0x1)return'first';else{if(G===0x2)return'second';else{if(G===0x3)return'third';}}const m=G%0x64;if(m>=0xb&&m<=0xd)return G+'th';switch(G%0xa){case 0x1:return G+'st';case 0x2:return G+'nd';case 0x3:return G+'rd';default:return G+'th';}}function typeIs(G,m){return Boolean(G&&G['element']&&'type'in G['element']===!![]&&G['element']['type']===m);}function findDeepestTableAnchor(G){if(!G['element']||'isViewportDescriptor'in G['element']||'isDialogDescriptor'in G['element'])return;if(typeIs(G,'table')){if(G['element']['anchor']&&!Array['isArray'](G['element']['anchor']))return findDeepestTableAnchor(G['element']['anchor'])||G;return G;}if(G['element']['anchor']&&!Array['isArray'](G['element']['anchor']))return findDeepestTableAnchor(G['element']['anchor']);}function extractCommonTableAnchor(G,m){const Y=findDeepestTableAnchor(G),I=findDeepestTableAnchor(m);if(!Y||!I)return;if(Y['position']===I['position']&&Y['element']&&I['element']){const c=Y['element'],o=I['element'];if('type'in c&&'type'in o&&c['type']===o['type']&&c['title']===o['title'])return Y;}}function removeDeepestTableAnchor(G){if(!G['element']||'isViewportDescriptor'in G['element']||'isDialogDescriptor'in G['element']||Array['isArray'](G['element']['anchor']))return G;if(G['element']['anchor']&&!Array['isArray'](G['element']['anchor'])&&typeIs(G['element']['anchor'],'table')){const m=G['element']['anchor'];if(m['element']&&!('isViewportDescriptor'in m['element'])&&!('isDialogDescriptor'in m['element'])&&!m['element']['anchor']){const {anchor:Y,...I}=G['element'];return{...G,'element':I};}}if(G['element']['anchor']&&!Array['isArray'](G['element']['anchor']))return{...G,'element':{...G['element'],'anchor':removeDeepestTableAnchor(G['element']['anchor'])}};return G;}const cache=new Map();function getParse({allowed:G,disabled:m}){const Y=(G?G['toSorted']()['join'](','):'*')+'|'+(m?m['toSorted']()['join'](','):'');let I=cache['get'](Y);if(!I)cache['set'](Y,I=makeParse(Instructions({'allowed':G,'disabled':m})));return I;}function parseText(G,{split:m,fix:Y,mask:I,replacements:c,intent:intent=!![],locale:locale='en-US',allowed:o,disabled:W}={}){let U=0x0;for(const B of c??[]){G=replace(G,B['pos']+U,B['length'],B['text']),U+=B['text']['length']-B['length'];}const u=getParse({'allowed':o,'disabled':W})(G,{'intent':intent,'locale':locale});if(Y&&u['errors']){const t=parseCurl(G);if(t)return parseText(FetchAction(t),{'split':m,'intent':intent,'fix':Y,'mask':I,'locale':locale});const D=parseHttp(G);if(D)return parseText(FetchAction(D),{'split':m,'intent':intent,'fix':Y,'mask':I,'locale':locale});}if(Y&&u['fixes']&&!u['errors'])return parseText(u['fixes']['sort']((C,e)=>e['pos']-C['pos'])['reduce']((C,{pos:e,text:i,fix:X})=>replace(C,e,i['length'],X),G),{'split':m,'mask':I,'intent':intent,'locale':locale});if(m&&!u['errors']){const C=[];for(let e=u['markers']['length']-0x1;e>=0x0;--e){const i=u['markers'][e];if(i['type']==='action'||i['type']==='dependent\x20action'||i['type']==='control\x20flow'){const X=C[0x0];if(!X||X['pos']>i['pos']){if(X&&X['type']==='dependent\x20action'&&i['type']!=='control\x20flow')C[0x0]={...i,'text':G['substring'](i['pos'],X['pos']+X['text']['length'])};else{if(X&&i['subtype']==='else'&&X['subtype']==='if')C[0x0]={...i,'text':G['substring'](i['pos'],X['pos']+X['text']['length'])};else C['unshift'](i);}}}}if(C['length']>0x1)return nestPieces(resolveImplicitReferences(C,u['markers'])['map']((N,T)=>({'pos':C[T]['pos'],'result':parseText(N,{'intent':intent,'mask':I,'locale':locale})[0x0]})),u['markers']['filter'](N=>N['type']==='block'));}const p=u['results']?.[0x0]??[],E={'text':G,'result':p,'meta':{}};E['meta']['instructions']=p['map'](N=>N['type']);if(u['fixes'])E['meta']['fixes']=u['fixes'];if(u['disambiguations'])E['meta']['disambiguations']=u['disambiguations'];if(u['variables'])E['meta']['variables']=u['variables'];if(u['extractors'])E['meta']['extractors']=u['extractors'];if(u['operands'])E['meta']['operands']=u['operands'];if(u['randomValues'])E['meta']['randomValues']=u['randomValues'];if(u['files'])E['meta']['files']=u['files'];if(u['fetches'])E['meta']['fetches']=u['fetches'];if(u['intents'])E['meta']['intents']=u['intents'];if(u['conditionals'])E['meta']['conditional']=u['conditionals'][0x0];if(u['scopes'])E['meta']['scope']=u['scopes']['at'](-0x1);u['references']&&(E['meta']['references']=u['references'],E['meta']['parameters']=u['references']['reduce']((N,T)=>{if(!N['some'](A=>A['name']===T['name'])&&!u['variables']?.['some'](A=>A['name']===T['name']))N['push']({'name':T['name'],'type':T['type']});return N;},[]));if(u['markers']){E['meta']['markers']=u['markers']['filter'](T=>T['type']!=='empty'&&T['type']!=='block');const N=E['meta']['markers']['reduce']((T,A)=>{if(A['type']==='navigation\x20url')T['push'](A['text']['replaceAll'](/^['"]|['"]$/g,''));return T;},[]);if(N['length']>0x0)E['meta']['navigationUrls']=N;}if(u['errors']?.[0x0])E['error']=u['errors'][0x0];if(I){const T=maskText(G,{'meta':E['meta']});E['text']=T['text'],E['meta']=T['meta'];}return[E];}function nestPieces(G,m){function Y(o){return m['reduce']((W,U)=>U['pos']<=o&&o<U['pos']+U['text']['length']?W+0x1:W,0x0);}const I=[],c=[];for(const o of G){const W=Y(o['pos']);while(c['length']>0x0&&c['at'](-0x1)['depth']>=W)c['pop']();const U={'result':o['result'],'children':[]};(c['at'](-0x1)?.['node']['children']??I)['push'](U),c['push']({'node':U,'depth':W});}return I['map'](function u(p){return p['children']['length']>0x0?{'head':p['result'],'body':p['children']['map'](u)}:p['result'];});}function resolveImplicitReferences(G,m){return G['map'](Y=>{const I=m['filter'](c=>c['pos']>=Y['pos']&&c['pos']+c['text']['length']<=Y['pos']+Y['text']['length']);return I['filter'](c=>c['type']==='implicit\x20element\x20descriptor'&&c['element'])['filter'](c=>!I['some'](o=>o['type']==='element\x20descriptor'&&o['pos']<c['pos']))['toSorted']((c,o)=>o['pos']-c['pos'])['reduce']((c,o)=>replace(c,o['pos']-Y['pos'],o['text']['length'],ElementDescriptor(o['element'])),Y['text']);});}makeParse(StandaloneStringExpression),makeParse(Sanitize$1(StructureLiteral$1));const store=new WeakMap();function unseal(G){return store['get'](G);}function parseElementFragment(G){const m=makeParse(Sanitize$1(Element$2()))(G['trim']());return{'text':G,'result':m['results']?.[0x0],'error':m['errors']?.[0x0],'meta':{'markers':m['markers']}};}const parse$1=makeParse(Any(Index$1(OrdinalNumberLiteral$1),NonnegativeIntegerNumberLiteral,CardinalNumberLiteral));function parseIndex(G){if(typeof G==='number')return Number['isInteger'](G)&&G>=0x0?G:null;if(typeof G!=='string')return null;const {results:m,errors:Y}=parse$1(G['trim']()['toLowerCase']());return!Y?.['length']&&Number['isInteger'](m?.[0x0])?m[0x0]:null;}const PATTERNS$1={'price':Price,'percentage':Percentage,'number':NumberValue,'date':DateValue,'time':TimeValue,'code':Identifier};function extractPattern(G,m){const Y=PATTERNS$1[G];if(!Y)return null;return search(Y,m)?.['text']??null;}function brandedHasInstance(G,m){return function(Y){if(this!==G)return Function['prototype'][Symbol['hasInstance']]['call'](this,Y);return typeof Y==='object'&&Y!==null&&Y[m]===!![];};}function classBrand(G){return Symbol['for']('@applitools/nlp-utils.'+G);}function setBrand(G,m){Object['defineProperty'](G,m,{'value':!![]});}const EVENT_TARGET_BRAND=classBrand('EventTarget');var EventTarget$1=class EventTarget$1 extends globalThis['EventTarget']{static [Symbol['hasInstance']]=brandedHasInstance(EventTarget$1,EVENT_TARGET_BRAND);#listeners=new Map();#queue=new Set();#corked=![];#groups=new Map();#addListener(G,m){if(this.#listeners['has'](G))this.#listeners['get'](G)['add'](m);else this.#listeners['set'](G,new Set([m]));this['addEventListener'](G,m);if(G!=='listenerAdded'&&G!=='listenerRemoved')super['dispatchEvent'](new EventTargetListenerAddedEvent({'event':G,'count':this.#listeners['get'](G)['size']}));}#addOnceListener(G,m){if(this.#listeners['has'](G))this.#listeners['get'](G)['add'](m);else this.#listeners['set'](G,new Set([m]));this['addEventListener'](G,Y=>{m(Y),this.#listeners['get'](G)?.['delete'](m);if(G!=='listenerAdded'&&G!=='listenerRemoved')super['dispatchEvent'](new EventTargetListenerRemovedEvent({'event':G,'count':this.#listeners['get'](G)['size']}));},{'once':!![]});if(G!=='listenerAdded'&&G!=='listenerRemoved')super['dispatchEvent'](new EventTargetListenerAddedEvent({'event':G,'count':this.#listeners['get'](G)['size']}));}#removeListener(G,m){this.#listeners['get'](G)?.['delete'](m),this['removeEventListener'](G,m);}get['corked'](){return this.#corked;}constructor(){super(),setBrand(this,EVENT_TARGET_BRAND);}['dispatch'](G){this['dispatchEvent'](G);}['on'](G,m,Y){this.#addListener(G,m);const I=()=>this['off'](G,m);if(Y?.['key']){let c=this.#groups['get'](Y['key']);if(!c)this.#groups['set'](Y['key'],c=[]);c['push'](I);}return I;}['once'](G,m,Y){if(m){this.#addOnceListener(G,m);const I=()=>this['off'](G,m);if(Y?.['key']){let c=this.#groups['get'](Y['key']);if(!c)this.#groups['set'](Y['key'],c=[]);c['push'](I);}return I;}else return new Promise(o=>this.#addOnceListener(G,o));}['off'](G,m){if(!G)this.#listeners['forEach']((Y,I)=>Y['forEach'](c=>this.#removeListener(I,c))),this.#listeners['clear']();else{if(!m){if(this.#listeners['has'](G)){const Y=G;this.#listeners['get'](Y)?.['forEach'](I=>this.#removeListener(Y,I)),this.#listeners['delete'](Y);}else{const I=G;this.#groups['get'](I)?.['forEach'](c=>c()),this.#groups['delete'](I);}}else{const c=G;this.#removeListener(c,m);}}}['cork'](){this.#corked=!![];}['uncork'](){this.#corked=![],this.#queue['forEach'](G=>this['dispatch'](G)),this.#queue['clear']();}['dispatchEvent'](G){if(this.#corked)return this.#queue['add'](G),![];return super['dispatchEvent'](G);}['addEventListener'](G,m,Y){return super['addEventListener'](G,m,Y);}['removeEventListener'](G,m,Y){return super['removeEventListener'](G,m,Y);}},EventTargetListenerAddedEvent=class extends Event{['event'];['count'];constructor({event:G,count:m}){super('listenerAdded'),this['event']=G,this['count']=m;}},EventTargetListenerRemovedEvent=class extends Event{['event'];['count'];constructor({event:G,count:m}){super('listenerRemoved'),this['event']=G,this['count']=m;}};function on(G,m,Y){return G['addEventListener'](m,Y),()=>G['removeEventListener'](m,Y);}function once$1(G,m,Y){return G['addEventListener'](m,Y,{'once':!![]}),()=>G['removeEventListener'](m,Y);}async function abortable(G,m){if(m){if(m['aborted'])return Promise['reject'](m['reason']);let Y;const I=new Promise((c,o)=>{Y=once$1(m,'abort',()=>{o(m['reason']);});});return Promise['race']([G['finally'](()=>Y()),I]);}else return G;}const EVENT_TARGET_NODE_BRAND=classBrand('EventTargetNode');var EventTargetNode=class EventTargetNode extends EventTarget$1{static [Symbol['hasInstance']]=brandedHasInstance(EventTargetNode,EVENT_TARGET_NODE_BRAND);constructor(){super(),setMaxListeners(0x64,this),setBrand(this,EVENT_TARGET_NODE_BRAND);}};const debugLogger={'log':(G,m)=>debuglog('nlp:runner')('%s\x20%o',G,m),'error':(G,m)=>debuglog('nlp:runner:error')('%s\x20%o',G,m),'trace':(G,m)=>debuglog('nlp:runner:trace')('%s\x20%o',G,m),'debug':(G,m)=>debuglog('nlp:runner:debug')('%s\x20%o',G,m)};let activeLogger=debugLogger;function use(G){activeLogger=G??debugLogger;}function log(G,m){activeLogger['log'](G,m);}function error(G,m){activeLogger['error'](G,m);}function trace(G,m){activeLogger['trace'](G,m);}function debug(G,m){activeLogger['debug'](G,m);}function serializeError(G){if(G instanceof Error){const m={'name':G['name'],'message':G['message']};if(G['stack'])m['stack']=G['stack'];const Y=G['code'];if(typeof Y==='string')m['code']=Y;if(G['cause']!==void 0x0)m['cause']=serializeError(G['cause']);return m;}return{'name':'Error','message':typeof G==='string'?G:inspect(G,{'depth':0x3})};}const LEVEL_WEIGHT={'trace':0x0,'debug':0x1,'info':0x2,'error':0x3};function makeEventLogger({downstream:G}={}){const m=new Set();function Y(c,o,W){I['downstream']?.[levelMethod(c)](o,W);if(LEVEL_WEIGHT[c]<LEVEL_WEIGHT[I['minLevel']]||m['size']===0x0)return;const U={'type':o,'level':c,'timestamp':Date['now'](),'data':serializeErrors(W)};for(const u of m)try{u(U);}catch{}}const I={'minLevel':'trace','downstream':G,'log':(c,o)=>Y('info',c,o),'error':(c,o)=>Y('error',c,o),'trace':(c,o)=>Y('trace',c,o),'debug':(c,o)=>Y('debug',c,o),'onLog'(c){return m['add'](c),()=>m['delete'](c);}};return I;}function levelMethod(G){return G==='info'?'log':G;}function serializeErrors(G){let m;for(const [Y,I]of Object['entries'](G))I instanceof Error&&(m??={...G},m[Y]=serializeError(I));return m??G;}const COLOR_BRAND=classBrand('Color');var Color=class Color{static [Symbol['hasInstance']]=brandedHasInstance(Color,COLOR_BRAND);['r'];['g'];['b'];['a'];constructor(G,m,Y,I=0x1){this['r']=G,this['g']=m,this['b']=Y,this['a']=I,setBrand(this,COLOR_BRAND);}static['from'](G){return new Color(G['r'],G['g'],G['b'],G['a']);}['toString'](){return colorToString(this);}['equals'](G,m=0x5){return Math['abs'](this['r']-G['r'])<=m&&Math['abs'](this['g']-G['g'])<=m&&Math['abs'](this['b']-G['b'])<=m&&Math['abs'](this['a']-G['a'])<=m;}['toRGBAString'](){return'rgba('+this['r']+',\x20'+this['g']+',\x20'+this['b']+',\x20'+this['a']+')';}['diff'](G){return differenceHyab()(this['toCulori'](),G['toCulori']())/0x15e;}['getColorFamily'](){const G=nearest(colorFamilies['flatMap'](m=>m['colors']),differenceHyab())(this['toCulori']())[0x0];return colorFamilies['find'](m=>m['colors']['includes'](G))?.['name']||'unknown';}['similarTo'](G,m=0.75){return this['getSimilarity'](G)>=m;}['getSimilarity'](G){const m=this['getColorFamily']()===G['getColorFamily']();return Math['min']((0x1-this['diff'](G))*(m?1.2:0.8),0x1);}['toCulori'](){return{'mode':'rgb','r':this['r']/0xff,'g':this['g']/0xff,'b':this['b']/0xff,'alpha':this['a']};}static['fromCulori'](G){const m=rgb(G);return new Color(m['r']*0xff,m['g']*0xff,m['b']*0xff,G['alpha']);}};function stringToColor(G){const m=G?.['trim']();if(!m)return null;const Y=parse(m['replace'](/\s/g,'')['toLowerCase']());if(Y)return Color['fromCulori'](Y);const I=getKnownColor(m);if(I)return new Color(I['r'],I['g'],I['b'],0x1);const {rgba:c}=f(m);if(c){const [o,W,U,u]=c;return new Color(clampByte(o),clampByte(W),clampByte(U),clampAlpha(u));}return null;}function stringToColorOrThrow(G){const m=stringToColor(G);if(m===null)throw new Error('Invalid\x20color\x20string:\x20'+G);return m;}function objectToColor(G){if(G==null)return null;if(!('r'in G)||!('g'in G)||!('b'in G))return null;return new Color(G['r'],G['g'],G['b'],'a'in G?G['a']:0x1);}let knownColors=null;function getKnownColor(G){function m(Y){return Y['toLowerCase']()['replaceAll']('\x20','');}if(!knownColors)knownColors=Object['fromEntries'](colornames['map'](({name:Y,hex:I})=>{return[m(Y),{'r':parseInt(I['slice'](0x1,0x3),0x10),'g':parseInt(I['slice'](0x3,0x5),0x10),'b':parseInt(I['slice'](0x5,0x7),0x10)}];}));return knownColors[m(G)];}function clampByte(G){if(Number['isNaN'](G))return NaN;return Math['max'](0x0,Math['min'](0xff,G|0x0));}function clampAlpha(G){if(Number['isNaN'](G))return NaN;return Math['max'](0x0,Math['min'](0x1,G));}function colorToString(G){const m=colornames['find'](({hex:Y})=>Y===rgbaToHex(G));if(m)return m['name']['toLowerCase']()['replaceAll']('\x20','');return'rgba('+G['r']+',\x20'+G['g']+',\x20'+G['b']+',\x20'+G['a']+')';}function rgbaToHex(G){return'#'+G['r']['toString'](0x10)['padStart'](0x2,'0')+G['g']['toString'](0x10)['padStart'](0x2,'0')+G['b']['toString'](0x10)['padStart'](0x2,'0');}const colorFamilies=[{'name':'red','colors':['#CD5C5C','#F08080','#FA8072','#E9967A','#FFA07A','#DC143C','#FF0000','#B22222','#8B0000']},{'name':'pink','colors':['#FFC0CB','#FFB6C1','#DB7093','#FF69B4','#FF1493','#C71585']},{'name':'orange','colors':['#FFA07A','#FF7F50','#FF6347','#FF4500','#FF8C00','#FFA500']},{'name':'yellow','colors':['#FFFFE0','#FFFACD','#FAFAD2','#FFEFD5','#FFE4B5','#FFDAB9','#EEE8AA','#FFD700','#FFFF00','#F0E68C','#BDB76B']},{'name':'purple','colors':['#E6E6FA','#D8BFD8','#DDA0DD','#EE82EE','#DA70D6','#FF00FF','#BA55D3','#9370DB','#7B68EE','#6A5ACD','#663399','#8A2BE2','#9400D3','#9932CC','#8B008B','#800080','#4B0082','#483D8B']},{'name':'green','colors':['#ADFF2F','#7FFF00','#7CFC00','#9ACD32','#6B8E23','#808000','#556B2F','#00FF00','#32CD32','#98FB98','#90EE90','#228B22','#008000','#006400','#00FA9A','#00FF7F','#3CB371','#2E8B57','#66CDAA','#8FBC8B','#20B2AA','#008B8B','#008080']},{'name':'blue','colors':['#00FFFF','#E0FFFF','#AFEEEE','#7FFFD4','#40E0D0','#48D1CC','#00CED1','#5F9EA0','#B0E0E6','#ADD8E6','#87CEEB','#87CEFA','#00BFFF','#1E90FF','#4682B4','#B0C4DE','#6495ED','#7B68EE','#4169E1','#0000FF','#0000CD','#00008B','#000080','#191970']},{'name':'brown','colors':['#FFF8DC','#FFEBCD','#FFE4C4','#FFDEAD','#F5DEB3','#DEB887','#D2B48C','#BC8F8F','#F4A460','#DAA520','#B8860B','#CD853F','#D2691E','#8B4513','#A0522D','#A52A2A','#800000']},{'name':'white','colors':['#FFFFFF','#FFFAFA','#F0FFF0','#F5FFFA','#F0FFFF','#F0F8FF','#F8F8FF','#F5F5F5','#FFF5EE','#F5F5DC','#FDF5E6','#FFFAF0','#FFFFF0','#FAEBD7','#FAF0E6','#FFF0F5','#FFE4E1']},{'name':'gray','colors':['#DCDCDC','#D3D3D3','#C0C0C0','#A9A9A9','#808080','#696969','#778899','#708090','#2F4F4F']},{'name':'black','colors':['#000000']}],POINT_BRAND=classBrand('Point');var Point=class Point{static [Symbol['hasInstance']]=brandedHasInstance(Point,POINT_BRAND);['x'];['y'];constructor(G,m){this['x']=G,this['y']=m,setBrand(this,POINT_BRAND);}['equals'](G,m=0.1){return Math['abs'](this['x']-G['x'])<m&&Math['abs'](this['y']-G['y'])<m;}['distance'](G){return Math['hypot'](this['x']-G['x'],this['y']-G['y']);}};const VECTOR_BRAND=classBrand('Vector');var Vector=class Vector{static [Symbol['hasInstance']]=brandedHasInstance(Vector,VECTOR_BRAND);static ['down']=new Vector(0x0,0x1);static ['left']=new Vector(-0x1,0x0);static ['right']=new Vector(0x1,0x0);static ['up']=new Vector(0x0,-0x1);static ['leftUp']=new Vector(-0x1,-0x1);static ['rightUp']=new Vector(0x1,-0x1);static ['leftDown']=new Vector(-0x1,0x1);static ['rightDown']=new Vector(0x1,0x1);static['fromPoints'](G,m){return new Vector(m['x']-G['x'],m['y']-G['y']);}['x'];['y'];constructor(G,m){this['x']=G,this['y']=m,setBrand(this,VECTOR_BRAND);}get['magnitude'](){return Math['hypot'](this['x'],this['y']);}['cross'](G){return this['x']*G['y']-this['y']*G['x'];}['dot'](G){return this['x']*G['x']+this['y']*G['y'];}};const SEGMENT_BRAND=classBrand('Segment');var Segment=class Segment{static [Symbol['hasInstance']]=brandedHasInstance(Segment,SEGMENT_BRAND);['start'];['end'];constructor(G,m){this['start']=G instanceof Point?G:new Point(G['x'],G['y']),this['end']=m instanceof Point?m:new Point(m['x'],m['y']),setBrand(this,SEGMENT_BRAND);}['toOrthogonal'](){const G=Math['abs'](this['end']['x']-this['start']['x'])<=Math['abs'](this['end']['y']-this['start']['y'])?new Point(this['end']['x'],this['start']['y']):new Point(this['start']['x'],this['end']['y']);return[new Segment(this['start'],G),new Segment(G,this['end'])];}['contains'](G){const m=Vector['fromPoints'](this['start'],this['end']),Y=Vector['fromPoints'](this['start'],G);if(m['cross'](Y)!==0x0)return![];return Math['min'](this['start']['x'],this['end']['x'])<=G['x']&&G['x']<=Math['max'](this['start']['x'],this['end']['x'])&&Math['min'](this['start']['y'],this['end']['y'])<=G['y']&&G['y']<=Math['max'](this['start']['y'],this['end']['y']);}};const RECTANGLE_BRAND=classBrand('Rectangle');var Rectangle=class Rectangle{static [Symbol['hasInstance']]=brandedHasInstance(Rectangle,RECTANGLE_BRAND);static['min'](...G){return G['reduce']((m,Y)=>Y['area']<m['area']?Y:m);}static['max'](...G){return G['reduce']((m,Y)=>Y['area']>m['area']?Y:m);}static['union'](G){const [m,...Y]=G;return m['union'](...Y);}static['intersection'](G){const [m,...Y]=G;let I=m;for(const c of Y){I=I['intersection'](c);if(!I)return null;}return I;}static['from'](G){return new Rectangle(G['x'],G['y'],G['width'],G['height']);}static['fromQuad'](G){const m=[G[0x0],G[0x2],G[0x4],G[0x6]],Y=[G[0x1],G[0x3],G[0x5],G[0x7]],I=Math['min'](...m),c=Math['min'](...Y);return new Rectangle(I,c,Math['max'](...m)-I,Math['max'](...Y)-c);}['left'];['top'];['right'];['bottom'];get['center'](){return new Point(this['left']+this['width']/0x2,this['top']+this['height']/0x2);}get['leftTop'](){return new Point(this['left'],this['top']);}get['rightTop'](){return new Point(this['right'],this['top']);}get['rightBottom'](){return new Point(this['right'],this['bottom']);}get['leftBottom'](){return new Point(this['left'],this['bottom']);}get['edges'](){return[new Segment(this['leftTop'],this['rightTop']),new Segment(this['rightTop'],this['rightBottom']),new Segment(this['rightBottom'],this['leftBottom']),new Segment(this['leftBottom'],this['leftTop'])];}get['vertices'](){return[this['leftTop'],this['rightTop'],this['rightBottom'],this['leftBottom']];}get['area'](){return this['width']*this['height'];}['x'];['y'];['width'];['height'];constructor(G,m,Y,I){this['x']=G,this['y']=m,this['width']=Y,this['height']=I,this['left']=G,this['top']=m,this['right']=Y===Infinity?Infinity:G+Y,this['bottom']=I===Infinity?Infinity:m+I,setBrand(this,RECTANGLE_BRAND);}['offset'](G){return new Rectangle(this['x']+G['x'],this['y']+G['y'],this['width'],this['height']);}['scale'](G){return new Rectangle(this['x']*G,this['y']*G,this['width']*G,this['height']*G);}['resize']({left:G,right:m,top:Y,bottom:I}){const c=this['left']-(G??0x0),o=Math['max'](c,this['right']+(m??0x0)),W=this['top']-(Y??0x0),U=Math['max'](W,this['bottom']+(I??0x0));return new Rectangle(c,W,o-c,U-W);}['union'](...G){let m=this['left'],Y=this['top'],I=this['right'],c=this['bottom'];for(const o of G){m=Math['min'](m,o['left']),Y=Math['min'](Y,o['top']),I=Math['max'](I,o['right']),c=Math['max'](c,o['bottom']);}return new Rectangle(m,Y,I-m,c-Y);}['intersection'](G){if(!this['intersects'](G))return null;const m=Math['max'](this['left'],G['left']),Y=Math['min'](this['right'],G['right']),I=Math['max'](this['top'],G['top']),c=Math['min'](this['bottom'],G['bottom']);return new Rectangle(m,I,Y-m,c-I);}['equals'](G){return this['x']===G['x']&&this['y']===G['y']&&this['width']===G['width']&&this['height']===G['height'];}['contains'](G){if(G instanceof Rectangle)return Math['round'](this['left'])<=Math['round'](G['left'])&&Math['round'](this['top'])<=Math['round'](G['top'])&&Math['round'](this['right'])>=Math['round'](G['right'])&&Math['round'](this['bottom'])>=Math['round'](G['bottom']);else return G['x']>=this['left']&&G['x']<=this['right']&&G['y']>=this['top']&&G['y']<=this['bottom'];}['intersects'](G){return this['left']<G['right']&&this['right']>G['left']&&this['top']<G['bottom']&&this['bottom']>G['top'];}['distance'](G){const m=Math['max'](0x0,G['left']-this['right'],this['left']-G['right']),Y=Math['max'](0x0,G['top']-this['bottom'],this['top']-G['bottom']);return Math['hypot'](m,Y);}['toJSON'](){return{'x':this['x'],'y':this['y'],'width':this['width'],'height':this['height']};}[Symbol['for']('nodejs.util.inspect.custom')](G,m){return'('+m['stylize'](this['left']['toFixed'](0x1),'number')+',\x20'+m['stylize'](this['top']['toFixed'](0x1),'number')+')\x20'+m['stylize'](this['width']['toFixed'](0x1),'number')+'\x20x\x20'+m['stylize'](this['height']['toFixed'](0x1),'number');}};const RTREE_BRAND=classBrand('RTree');var RTree=class RTree{static [Symbol['hasInstance']]=brandedHasInstance(RTree,RTREE_BRAND);#root;#maxItems;#minItems;constructor({maxItems:maxItems=0x9,minItems:G}={}){this.#maxItems=Math['max'](0x4,maxItems),this.#minItems=G??Math['max'](0x2,Math['floor'](this.#maxItems*0.4)),this.#root=new RNode({'leaf':!![],'minItems':this.#minItems}),setBrand(this,RTREE_BRAND);}*['levels'](){let G=[this.#root];while(G['length']>0x0)if(G[0x0]['leaf']){yield G['flatMap'](m=>m['children']['map'](Y=>Y['rect']));return;}else{const m=[],Y=[];for(const I of G){m['push'](I['rect']),Y['push'](...I['children']);}yield m,G=Y;}}['insert'](G){const m=[];let Y=this.#root;while(!Y['leaf']){m['push'](Y),Y=Y['chooseChild'](G['rect']);}return m['push'](Y),Y['add'](G),this.#balance(m),this;}['search'](G){const m=[],Y=[this.#root];while(Y['length']>0x0){const I=Y['shift']();if(I['rect']['intersects'](G)){if(I['leaf']){for(const c of I['children'])if(c['rect']['intersects'](G))m['push'](c['data']);}else Y['push'](...I['children']);}}return m;}#balance(G){for(let m=G['length']-0x1;m>=0x0;--m){const Y=G[m];if(Y['children']['length']>this.#maxItems){const I=Y['split']();if(m===0x0)this.#root=new RNode({'leaf':![],'minItems':this.#minItems})['add'](Y,I);else G[m-0x1]['add'](I);}}}[Symbol['for']('nodejs.util.inspect.custom')](G,m,Y){let I='';const c=[{'node':this.#root,'depth':0x0}];while(c['length']>0x0){const {node:o,depth:W}=c['shift']();if(o instanceof RNode)c['unshift'](...o['children']['map'](U=>({'node':U,'depth':W+0x1}))),I+='\x20\x20'['repeat'](W)+Y(o,m)+'\x0a';else I+='\x20\x20'['repeat'](W)+('RItem\x20'+Y({'rect':o['rect'],'data':o['data']},{...m,'compact':!![],'breakLength':Infinity})+'\x0a');}return I;}},RNode=class RNode{#rect;#children=[];#leaf;#minItems;get['rect'](){return this.#rect??new Rectangle(0x0,0x0,0x0,0x0);}get['children'](){return this.#children;}get['leaf'](){return this.#leaf;}constructor({leaf:G,minItems:m}){this.#leaf=G,this.#minItems=m;}*['descendants'](){const G=[this];while(G['length']>0x0){const m=G['shift']();yield m;if(m['leaf'])yield*m['children'];else G['push'](...m['children']);}}['chooseChild'](G){let m=this.#children[0x0],Y=m['rect']['union'](G)['area']-m['rect']['area'],I=m['rect']['area'];for(let c=0x1;c<this.#children['length'];++c){const o=this.#children[c],W=o['rect']['union'](G)['area']-o['rect']['area'];(W<Y||W===Y&&o['rect']['area']<I)&&(Y=W,I=o['rect']['area'],m=o);}return m;}['add'](...G){return this.#children['push'](...G),this.#rect=this.#rect?this.#rect['union'](...G['map'](m=>m['rect'])):Rectangle['union'](G['map'](m=>m['rect'])),this;}['split'](){const G=[...this.#children],[m,Y]=findSeeds(G)['map'](c=>({'rect':G[c]['rect'],'nodes':G['splice'](c,0x1)}));while(G['length']>0x0){if(Y['nodes']['length']+G['length']<=this.#minItems){Y['nodes']['push'](...G),Y['rect']=Y['rect']['union'](...G['map'](o=>o['rect']));break;}if(m['nodes']['length']+G['length']<=this.#minItems){m['nodes']['push'](...G),m['rect']=m['rect']['union'](...G['map'](o=>o['rect']));break;}let c={'difference':-Infinity,'index':0x0,'group':Y,'rect':Y['rect']};for(let o=0x0;o<G['length'];++o){const W=G[o],U={'rect':Y['rect']['union'](W['rect']),'group':Y},u=U['rect']['area']-Y['rect']['area'],p={'rect':m['rect']['union'](W['rect']),'group':m},E=p['rect']['area']-m['rect']['area'],B=Math['abs'](u-E);if(B>c['difference'])c={'difference':B,'index':o,...u<E?U:p};}c['group']['nodes']['push'](...G['splice'](c['index'],0x1)),c['group']['rect']=c['group']['rect']['union'](c['rect']);}this.#children=Y['nodes'],this.#rect=Y['rect'];const I=new RNode({'leaf':this.#leaf,'minItems':this.#minItems});return I.#children=m['nodes'],I.#rect=m['rect'],I;}[Symbol['for']('nodejs.util.inspect.custom')](G,m,Y){return'RNode\x20'+Y({'rect':this['rect'],'leaf':this['leaf']},{...m,'compact':!![],'breakLength':Infinity});}};function findSeeds(G){let m=-0x1,Y=[0x0,0x0];for(let I=0x0;I<G['length'];I++){const c=G[I];for(let o=I+0x1;o<G['length'];o++){const W=G[o],U=c['rect']['union'](W['rect'])['area']-c['rect']['area']-W['rect']['area'];U>m&&(m=U,Y=[o,I]);}}return Y;}const RAY_BRAND=classBrand('Ray');(class Ray{static [Symbol['hasInstance']]=brandedHasInstance(Ray,RAY_BRAND);static['fromPoints'](G,m){return new Ray(G,Vector['fromPoints'](G,m));}['origin'];['direction'];constructor(G,m){this['origin']=G,this['direction']=m,setBrand(this,RAY_BRAND);}['contains'](G){const m=new Vector(G['x']-this['origin']['x'],G['y']-this['origin']['y']);if(m['cross'](this['direction'])!==0x0)return![];return m['dot'](this['direction'])>=0x0;}['intersection'](G){const m=G['direction']['cross'](this['direction']);if(Math['abs'](m)<Number['EPSILON'])return null;const Y=G['origin']['x']-this['origin']['x'],I=G['origin']['y']-this['origin']['y'],c=(G['direction']['x']*I-G['direction']['y']*Y)/m,o=(this['direction']['x']*I-this['direction']['y']*Y)/m;if(c>=0x0&&o>=0x0)return new Point(this['origin']['x']+c*this['direction']['x'],this['origin']['y']+c*this['direction']['y']);return null;}['distance'](G){const m=Vector['fromPoints'](this['origin'],G);if(this['direction']['dot'](m)<0x0)return this['origin']['distance'](G);return Math['abs'](this['direction']['cross'](m)/this['direction']['magnitude']);}});const PATTERNS={'price':G=>extractPattern('price',G),'percentage':G=>extractPattern('percentage',G),'number':G=>extractPattern('number',G),'date':G=>extractPattern('date',G),'time':G=>extractPattern('time',G),'code':G=>extractPattern('code',G)};function getPatternMatcher(G){return PATTERNS[G];}const DEBUG_BUS_KEY=Symbol['for']('applitools.nlp.debugBus'),debugBus=globalThis[DEBUG_BUS_KEY]??=new EventTarget$1(),WATCHER_BRAND=classBrand('Watcher');function makeWatcher(G){return new Watcher(G);}var Watcher=class Watcher{static [Symbol['hasInstance']]=brandedHasInstance(Watcher,WATCHER_BRAND);#promise;#resolve;#reject;#result;#hint;#signal;#timers=new Map();#listeners=[];get['promise'](){if(!this.#promise){this.#promise=new Promise((...G)=>[this.#resolve,this.#reject]=G);if(this.#result){if(this.#result['status']==='fulfilled')this.#resolve(this.#result['value']);else this.#reject(this.#result['reason']);}}return this.#promise;}get['pending'](){return!this.#result;}get['settled'](){return!!this.#result;}get['hint'](){return this.#hint;}get[Symbol['toStringTag']](){return'Watcher';}constructor(G){this.#hint=G?.['hint'],this.#signal=G?.['signal'];if(this.#signal){if(this.#signal['aborted'])this['reject'](this.#signal['reason']);else this.#listeners['push'](once$1(this.#signal,'abort',()=>void this['reject'](this.#signal['reason'])));}setBrand(this,WATCHER_BRAND);}async['then'](G,m){return this['promise']['then'](G,m);}async['catch'](G){return this['promise']['catch'](G);}async['finally'](G){return this['promise']['finally'](G);}['reset'](G){this.#timers['forEach'](m=>m['cancel']()),this.#hint=G?.['hint'];if(this.#signal!==G?.['signal'])this.#signal=G?.['signal'];this.#listeners['forEach'](m=>m()),this.#listeners=[];this.#result&&(this.#result=void 0x0,this.#promise=void 0x0,this.#resolve=void 0x0,this.#reject=void 0x0);if(this.#signal){if(this.#signal['aborted'])this['reject'](this.#signal['reason']);else this.#listeners['push'](once$1(this.#signal,'abort',()=>void this['reject'](this.#signal['reason'])));}return this;}['resolve'](G,{delay:m,key:Y}={}){if(m&&m>0x0){Y??='default',this.#timers['get'](Y)?.['cancel']();const I=setTimeout(()=>void this['resolve'](G),m);this.#timers['set'](Y,{'cancel':()=>(clearTimeout(I),this.#timers['delete'](Y))});}else this.#timers['forEach'](c=>c['cancel']()),this.#result??={'status':'fulfilled','value':G},this.#resolve?.(G);return this;}['reject'](G,{delay:m,key:Y}={}){if(m&&m>0x0){Y??='default',this.#timers['get'](Y)?.['cancel']();const I=setTimeout(()=>void this['reject'](G),m);this.#timers['set'](Y,{'cancel':()=>(clearTimeout(I),this.#timers['delete'](Y))});}else this.#timers['forEach'](c=>c['cancel']()),this.#result??={'status':'rejected','reason':G},this.#reject?.(G);return this;}};function sleep(G,{signal:m}={}){return makeWatcher({'signal':m})['resolve'](void 0x0,{'delay':G});}function until(G,{timeout:m,signal:Y}){const I=sleep(m,{'signal':Y});return G['finally'](()=>void I['resolve']()),I;}const PROGRESS_EVENT_BRAND=classBrand('ProgressEvent');var ProgressEvent=class ProgressEvent extends Event{static [Symbol['hasInstance']]=brandedHasInstance(ProgressEvent,PROGRESS_EVENT_BRAND);constructor(){super('progress'),setBrand(this,PROGRESS_EVENT_BRAND);}};function rectToSamplingPoints(G){const m=Math['round'](G['left']+G['width']/0x2),Y=Math['round'](G['top']+G['height']/0x2),I=m+Math['floor'](G['width']/0x4),c=m-Math['ceil'](G['width']/0x4),o=G['height']/0x2*0.15,W=Math['ceil'](G['top']+o),U=Math['floor'](G['top']+G['height']-o);return[{'x':c,'y':Y},{'x':I,'y':Y},{'x':m,'y':Y},{'x':m,'y':W},{'x':m,'y':U}];}function calculateObscurationRatio(G){if(G['length']===0x0)return 0x1;const m=G['flat']();return m['filter'](Y=>Y)['length']/m['length'];}const MAX_PROJECTED_TEXT=0xa0;function clip(G){return G['length']>MAX_PROJECTED_TEXT?G['slice'](0x0,MAX_PROJECTED_TEXT)+'…':G;}function projectAXNode(G){if(!G)return null;const m={};try{if(G['type'])m['type']={...G['type']};if(G['text'])m['text']=clip(G['text']);const Y=G['visibleLabel']||G['geometricLabel']||G['declarativeLabel'];if(Y)m['label']=clip(Y);const I=G['borderRect'];if(I)m['rect']={'x':I['x'],'y':I['y'],'width':I['width'],'height':I['height']};}catch{}return m;}function projectDescriptor(G){if(!G)return G;const {node:m,anchor:Y,fallback:I,...c}=G,o={...c};if(m)o['node']=projectAXNode(m);if(Y)o['anchor']=(Array['isArray'](Y)?Y:[Y])['map'](W=>({...W,'element':W['element']&&!('isViewportDescriptor'in W['element'])?projectDescriptor(W['element']):W['element']}));if(I)o['fallback']=projectDescriptor(I);return o;}function projectPrioritizedCandidates(G,m){return G['map'](Y=>{let I=0x1;return{'nodeId':Y['node']['debugLog']?.['id'],'node':projectAXNode(Y['node']),'quality':Y['quality'],'prioritizers':m['map'](c=>{let o;try{const W=c['value'](Y);o=Array['isArray'](W)?W['join'](',\x20'):W;}catch{o=void 0x0;}return{'name':c['name'],'priorityOrder':I++,'order':typeof c['compare']==='function'?'custom':c['compare']['order']??'asc','value':typeof o==='string'?clip(o):o};})};});}const eventLogger=makeEventLogger();use(eventLogger);const RUNNER_TYPES=new Set(['instructionExecutionStarted','instructionExecutionFinished','subinstructionExecutionStarted','subinstructionExecutionFinished']),RECORDER_TYPES=new Set(['recordingStarted','recordingStopped','instructionRecorded','elementSelectionStarted','elementSelectionStopped','elementDescriptorGenerated','elementSelectorGenerated','recorderError']);function isLegacyLogEventType(G){return RUNNER_TYPES['has'](G)||RECORDER_TYPES['has'](G);}function makeLogEventFromStructured(G){return new LogEvent(G['data']!=null&&!(typeof G['data']==='object'&&Object['keys'](G['data'])['length']===0x0)?{'type':G['type'],'data':G['data']}:{'type':G['type']});}var LogEvent=class LogEvent extends CustomEvent{['component'];constructor(G){super('log',{'detail':{...G,'timestamp':G['timestamp']??Date['now']()}}),this['component']=RUNNER_TYPES['has'](G['type'])?'runner':'recorder';}['clone'](){return new LogEvent(this['detail']);}};const bus=new EventTarget$1();eventLogger['onLog'](G=>{if(isLegacyLogEventType(G['type']))bus['dispatch'](makeLogEventFromStructured(G));});function makeScript(G){if(G instanceof Script)return G;else{if(typeof G!=='object')return new Script({'source':G});else return new Script(G);}}function makeBundledScript({name:G,url:m}){return new Script({'source':readFileSync(m,{'encoding':'utf8'}),'name':G,'bundled':!![]});}var Script=class{['source'];['name'];['bundled'];constructor({source:G,name:m,bundled:Y}){this['source']=G['toString'](),this['name']=m,this['bundled']=!!Y;}async['compile'](G){if(this['bundled']&&this['name']&&knownBundledSnippets['has'](this['name']))return await G['evaluate'](makeExpression({'name':'registerRuntimeBundled_'+this['name'],'source':bundleSnippet(this['name'])})),makeScript({'name':this['name'],'source':'(...args)\x20=>\x20'+this['name']+'(...args)'});return this;}['toString'](){return this['source'];}['toJSON'](){return this['source'];}[Symbol['toPrimitive']](){return this['source'];}[Symbol['for']('nodejs.util.inspect.custom')](){return this['name']?'NamedScript('+this['name']+')':'Script('+(this['source']['length']>0xc8?this['source']['substring'](0x0,0xc8)+'...':this['source'])+')';}};function makeExpression(G){return G instanceof Expression?G:new Expression(typeof G==='object'?G:{'source':G});}function makeBundledExpression({name:G,url:m}){return new Expression({'source':readFileSync(m,{'encoding':'utf8'}),'name':G,'bundled':!![]});}var Expression=class{['source'];['name'];['bundled'];constructor({source:G,name:m,bundled:Y}){this['source']=typeof G==='string'?G:'('+G['toString']()+')()',this['name']=m,this['bundled']=!!Y;}async['compile'](){if(this['bundled']&&this['name']&&knownBundledSnippets['has'](this['name']))return makeExpression({'name':this['name'],'source':bundleSnippet(this['name'])});return this;}['toString'](){return this['source'];}['toJSON'](){return this['source'];}[Symbol['toPrimitive']](){return this['source'];}[Symbol['for']('nodejs.util.inspect.custom')](){return this['name']?'NamedExpression('+this['name']+')':'Expression('+(this['source']['length']>0xc8?this['source']['substring'](0x0,0xc8)+'...':this['source'])+')';}};const knownBundledSnippets=new Map();function provideRolldownConfig(G){for(const m of G)if(!Array['isArray'](m['output'])&&m['output']?.['name'])knownBundledSnippets['set'](m['output']['name'],m);}function bundleSnippet(G){return execFileSync(process['execPath'],[new URL('../../assets/bundler-CqGVGUSF.ts',import.meta.url)['pathname'],JSON['stringify'](knownBundledSnippets['get'](G))],{'maxBuffer':0xa*0x400*0x400,'encoding':'utf8'});}const findNodeBySelector=makeBundledScript({'name':'findNodeBySelector','url':new URL('../../assets/find-node-by-selector-FKXS0K9G.js',import.meta.url)}),findNodesBySelector=makeBundledScript({'name':'findNodesBySelector','url':new URL('../../assets/find-nodes-by-selector-Cbl5Yyn7.js',import.meta.url)}),getElementSelector=makeBundledScript({'name':'getElementSelector','url':new URL('../../assets/get-element-selector-DdXbhL__.js',import.meta.url)}),getElementValue=makeBundledScript({'name':'getElementValue','url':new URL('../../assets/get-element-value-Br7RXcCX.js',import.meta.url)}),setElementValue=makeBundledScript({'name':'setElementValue','url':new URL('../../assets/set-element-value-CipEuFvw.js',import.meta.url)}),canTypeIntoElement=makeBundledScript({'name':'canTypeToElement','url':new URL('../../assets/can-type-to-element-Ly-SUrz_.js',import.meta.url)}),isElementAcceptableInvisible=makeBundledScript({'name':'isElementAcceptableInvisible','url':new URL('../../assets/is-element-acceptable-invisible-BWAx59YN.js',import.meta.url)}),checkVisibility=makeBundledScript({'name':'checkVisibility','url':new URL('../../assets/check-visibility-NBT6SZvi.js',import.meta.url)}),isFrameContentVisible=makeBundledScript({'name':'isFrameContentVisible','url':new URL('../../assets/is-frame-content-visible-D-Jj5gM9.js',import.meta.url)}),getObscurationRatio=makeBundledScript({'name':'getObscurationRatio','url':new URL('../../assets/get-obscuration-ratio-zVFVUD5T.js',import.meta.url)}),setElementCaretPosition=makeBundledScript({'name':'setElementCaretPosition','url':new URL('../../assets/set-element-caret-position-2rBkIsy9.js',import.meta.url)}),registerPort=makeBundledScript({'name':'registerPort','url':new URL('../../assets/register-port-BZpidK-7.js',import.meta.url)}),visibilityTracker=makeBundledExpression({'name':'visibilityTracker','url':new URL('../../assets/visibility-tracker-BscfcZdV.js',import.meta.url)}),filepickerMocker=makeBundledExpression({'name':'filepickerMocker','url':new URL('../../assets/filepicker-mocker-BCrF2vqr.js',import.meta.url)});var AbortError=class extends Error{['retriable'];constructor(G,m){super(G,m),this['retriable']=m?.['retriable']??![];}},FlushError=class extends Error{},AutomatorError=class extends Error{constructor(G){super(G),this['name']=this['constructor']['name'];}},NavigationFailedError=class extends AutomatorError{['url'];['reason'];constructor({url:G,reason:m}){super('Navigation\x20failed\x20due\x20to\x20the\x20page\x20being\x20unavailable'),this['url']=G,this['reason']=m;}},NavigationTimedOutError=class extends AutomatorError{['url'];['timeout'];constructor({url:G,timeout:m}){super('Navigation\x20timed\x20out'),this['url']=G,this['timeout']=m;}},NoHistoryEntryError=class extends AutomatorError{['offset'];constructor({offset:G}){super('Can’t\x20go\x20to\x20the\x20'+(G>0x0?'next':'previous')+'\x20page'),this['offset']=G;}},BodyConsumedError=class extends AutomatorError{['accessor'];constructor({accessor:G}){super('Response\x20body\x20has\x20already\x20been\x20consumed;\x20cannot\x20call\x20\x22'+G+'\x22\x20again'),this['accessor']=G;}},UnresponsiveTargetError=class extends AutomatorError{['method'];['commandId'];['sessionId'];constructor({method:G,commandId:m,sessionId:Y}){super('Devtools\x20command\x20\x22'+G+'\x22\x20that\x20was\x20sent\x20with\x20id\x20'+m+'\x20to\x20the\x20session\x20\x22'+Y+'\x22\x20is\x20timed\x20out'),this['method']=G,this['commandId']=m,this['sessionId']=Y;}};function makeConnection(G){return new Connection(G);}let index=0x0;var Connection=class{#commands=new Map();#events=new Map();#listeners=[];#signal;#timeout=0x7530;async #handleMessage(G){try{const m=JSON['parse'](G['data']['toString']('utf8'));if(m['id']!==void 0x0){const Y=this.#commands['get'](m['id']);if(Y){trace('cdpCommandSucceeded',{'method':Y['method'],'payload':m,'sessionId':this['sessionId']});if(m['error'])error('cdpCommandFailed',{'method':Y['method'],'params':Y['params'],'response':m,'sessionId':this['sessionId']}),Y['watcher']['reject'](new Error(m['error']['message']));else Y['watcher']['resolve'](m['result']);}}else{if(this['sessionId']===m['sessionId'])this.#events['get'](m['method'])?.['forEach'](async I=>{try{await I?.(m['params']);}catch(c){error('cdpEventHandlerFailed',{'method':m['method'],'sessionId':this['sessionId'],'raw':G['data']['toString']('utf8'),'error':c});}});}}catch(I){error('cdpMessageParsingFailed',{'sessionId':this['sessionId'],'raw':G['data']['toString']('utf8'),'error':I});}}['socket'];['sessionId'];constructor(G){this['socket']=G['socket'],setMaxListeners(0x3e8,this['socket']),this['sessionId']=G['sessionId'],this.#signal=G['signal'];if(G['timeout']!=null)this.#timeout=G['timeout'];this.#listeners['push'](on(this['socket'],'message',this.#handleMessage['bind'](this))),this.#listeners['push'](on(this['socket'],'error',({error:m})=>{error('connectionSocketError',{'sessionId':this['sessionId'],'error':m});})),this.#listeners['push'](on(this['socket'],'close',({code:m,reason:Y})=>{log('connectionSocketClosed',{'sessionId':this['sessionId'],'code':m,'reason':Y});}));if(this.#signal)this.#listeners['push'](once$1(this.#signal,'abort',()=>this['abort'](this.#signal['reason'])));}get['timeout'](){return this.#timeout;}set['timeout'](G){this.#timeout=G;}['abort'](G){this.#listeners['forEach'](m=>m()),this.#commands['forEach'](({method:m,params:Y,watcher:I})=>{error('cdpCommandAborted',{'method':m,'params':Y,'reason':G,'sessionId':this['sessionId']}),I['reject'](G);}),this.#commands['clear'](),this.#events['clear']();}['flush'](G){this.#commands['forEach'](({method:m,params:Y,watcher:I})=>{error('cdpCommandFlushed',{'method':m,'params':Y,'reason':G,'sessionId':this['sessionId']}),I['reject'](G);});}async['execute'](G,m,{signal:Y}={}){const I=makeWatcher();if(Y?.['aborted']||this.#signal?.['aborted'])return error('cdpCommandNotSent',{'method':G,'params':m,'sessionId':this['sessionId'],'reason':Y?.['reason']||this.#signal?.['reason']}),I['reject'](Y?.['reason']||this.#signal?.['reason']),I;let c;if(Y)c=once$1(Y,'abort',()=>{if(I['settled'])return;error('cdpCommandAborted',{'method':G,'params':m,'reason':Y['reason'],'sessionId':this['sessionId']}),I['reject'](Y['reason']);});const o=++index;if(!process.env.PLAY)I['reject'](new UnresponsiveTargetError({'method':G,'commandId':o,'sessionId':this['sessionId']}),{'delay':this.#timeout});return this.#commands['set'](o,{'method':G,'params':m,'watcher':I}),trace('cdpCommandSent',{'method':G,'commandId':o,'params':m,'sessionId':this['sessionId'],'awaitsResponse':!![]}),this['socket']['send'](JSON['stringify']({'sessionId':this['sessionId'],'id':o,'method':G,'params':m})),I['finally'](()=>{this.#commands['delete'](o),c?.();});}['send'](G,m){const Y=++index;trace('cdpCommandSent',{'method':G,'params':m,'sessionId':this['sessionId'],'awaitsResponse':![]}),this['socket']['send'](JSON['stringify']({'sessionId':this['sessionId'],'id':Y,'method':G,'params':m}));}['on'](G,m){let Y=this.#events['get'](G);if(!Y)this.#events['set'](G,Y=new Set());return Y['add'](m),()=>Y['delete'](m);}['once'](G,m){if(m){const Y=this['on'](G,(...I)=>{return Y(),m(...I);});return Y;}else return new Promise((I,c)=>{const o=this['on'](G,(...W)=>{return o(),I(...W);});});}};function makeFrameManager(){return new FrameManager();}var FrameManager=class{#tree=new Map();['has'](G){return!!this.#tree['get'](G)?.['frame'];}*['getFramesIterator'](G){const m=this.#tree['get'](G);if(!m||!m['frame'])throw new Error('Cannot\x20recreate\x20the\x20frame\x20tree,\x20because\x20root\x20frame\x20with\x20id\x20'+G+'\x20is\x20missing');const Y=[G];for(let I=0x0;I<Y['length'];++I){const c=Y[I],o=this.#tree['get'](c);if(o){if(!o['frame'])throw new Error('Cannot\x20recreate\x20the\x20frame\x20tree,\x20because\x20frame\x20with\x20id\x20'+c+'\x20is\x20missing');yield o['frame'],Y['push'](...o['childFrameIds']);}}}['get'](G){return this.#tree['get'](G)?.['frame'];}['add'](G){const m=this.#tree['get'](G['frameId']);if(!m||m['frame']){if(m?.['frame'])this['delete'](G['frameId']);this.#tree['set'](G['frameId'],{'frame':G,'childFrameIds':new Set()});}else m['frame']=G;if(G['parentFrameId']){if(!this.#tree['has'](G['parentFrameId']))this.#tree['set'](G['parentFrameId'],{'frame':void 0x0,'childFrameIds':new Set([G['frameId']])});else this.#tree['get'](G['parentFrameId'])['childFrameIds']['add'](G['frameId']);}}['delete'](G){const m=this.#tree['get'](G);if(m?.['frame']?.['parentFrameId'])this.#tree['get'](m['frame']['parentFrameId'])?.['childFrameIds']['delete'](G);this.#tree['delete'](G);const Y=[G];for(let I=0x0;I<Y['length'];++I){const c=Y[I],o=this.#tree['get'](c);o&&(Y['push'](...o['childFrameIds']),this.#tree['delete'](c));}}['deleteDescendants'](G){const m=this.#tree['get'](G);if(m){const Y=[...m['childFrameIds']];for(let I=0x0;I<Y['length'];++I){const c=Y[I],o=this.#tree['get'](c);o&&(Y['push'](...o['childFrameIds']),this.#tree['delete'](c));}m['childFrameIds']['clear']();}}};function makeWindow(G){return new Window(G);}var Window=class extends EventTargetNode{#targets=new Set();['windowId'];['browser'];constructor({browser:G,windowId:m}){super(),this['browser']=G,this['windowId']=m,this['on']('targetAttached',({target:Y})=>{this.#targets['add'](Y);}),this['on']('targetDetached',({target:Y})=>{this.#targets['delete'](Y);if(this.#targets['size']===0x0)this['dispatch'](new WindowDestroyedEvent(this));});}*['targets'](){yield*this.#targets['values']();}*['pages'](){yield*this.#targets['values']()['filter'](G=>G['type']==='page');}async['setBounds'](G){await this['browser']['connection']['execute']('Browser.setWindowBounds',{'windowId':this['windowId'],'bounds':{'left':G['x'],'top':G['y'],'width':G['width'],'height':G['height'],'windowState':'normal'}});}async['setSize'](G){await this['browser']['connection']['execute']('Browser.setWindowBounds',{'windowId':this['windowId'],'bounds':{'left':0x0,'top':0x0,'width':G['width'],'height':G['height'],'windowState':'normal'}});}async['setContentsSize'](G){await this['browser']['connection']['execute']('Browser.setContentsSize',{'windowId':this['windowId'],...G});}},WindowTargetAttachedEvent=class extends Event{['target'];constructor(G){super('targetAttached'),this['target']=G;}},WindowTargetDetachedEvent=class extends Event{['target'];constructor(G){super('targetDetached'),this['target']=G;}},WindowDestroyedEvent=class extends Event{['window'];constructor(G){super('destroyed'),this['window']=G;}};function makeWindowManager(){return new WindowManager();}var WindowManager=class{#windows=new Map();['get'](G){return this.#windows['get'](G);}['getOrCreate']({windowId:G,browser:m}){const Y=this.#windows['get'](G);if(Y)return Y;const I=makeWindow({'browser':m,'windowId':G});return this.#windows['set'](G,I),I['once']('destroyed',()=>this.#windows['delete'](G)),m['dispatch'](new BrowserWindowCreatedEvent(I)),I;}*[Symbol['iterator']](){yield*this.#windows['values']();}};function makePagesHistory(G){return new PagesHistory(G);}var PagesHistory=class{#activatingPage;#stack=[];#index=0x0;constructor({browser:G}){G['on']('activePageChanged',({target:m})=>{this.#activatingPage!==m&&(this['push'](m),this.#activatingPage=void 0x0);}),G['on']('pageClosed',({target:m})=>this['delete'](m));}get['nextPage'](){if(this.#index<this.#stack['length']-0x1)return this.#stack[this.#index+0x1];}get['previousPage'](){if(this.#index>0x0)return this.#stack[this.#index-0x1];}['push'](G){if(this.#index<this.#stack['length']-0x1)this.#stack=this.#stack['slice'](0x0,this.#index+0x1);const m=this.#stack[this.#stack['length']-0x1];if(!(m&&m===G))this.#stack['push'](G);this.#index=this.#stack['length']-0x1;}['delete'](G){this.#stack=this.#stack['filter'](m=>m['targetId']!==G['targetId']);if(this.#stack['length']<=0x1)this.#index=0x0;else{if(this.#index>=this.#stack['length'])this.#index=this.#stack['length']-0x1;}}async['activatePreviousPage'](){this.#activatingPage=this['previousPage'];if(!this.#activatingPage)return![];return this.#activatingPage['once']('activated',()=>this.#index-=0x1),await this.#activatingPage['activate'](),!![];}async['activateNextPage'](){this.#activatingPage=this['nextPage'];if(!this.#activatingPage)return![];return this.#activatingPage['once']('activated',()=>this.#index+=0x1),await this.#activatingPage['activate'](),!![];}};function localizeRemoteValue({evaluator:G,value:m}){const Y=m['type'];if(Y==='undefined'||Y==='boolean'||Y==='string')return m['value'];else{if(Y==='number'){if(m['value']['unserializableValue']){if(m['value']['unserializableValue']==='Infinity')return Infinity;else{if(m['value']['unserializableValue']==='-Infinity')return-Infinity;else{if(m['value']['unserializableValue']==='-0')return-0x0;else{if(m['value']['unserializableValue']==='NaN')return NaN;}}}}return m['value'];}else{if(Y==='bigint')return BigInt(m['unserializableValue']['slice'](0x0,-0x1));else{if(Y==='symbol')return null;else{if(Y==='object'){if(m['subtype']==='null')return null;return new RemoteObjectHandle({'evaluator':G,'value':m});}else{if(Y==='function')return new RemoteFunctionHandle({'evaluator':G,'value':m});}}}}}return null;}var RemoteObjectHandle=class{#value;#cache=new Map();#revoked=![];async #resolveSerializedValue(G,{path:path=[]}={}){const m=G['weakLocalObjectReference'];if(m!==void 0x0&&this.#cache['has'](m))return this.#cache['get'](m);let Y;const I=G['type'];if(I==='undefined'||I==='boolean'||I==='string')Y=G['value'];else{if(I==='null')Y=null;else{if(I==='number'){if(G['value']==='Infinity')Y=Infinity;else{if(G['value']==='-Infinity')Y=-Infinity;else{if(G['value']==='-0')Y=-0x0;else{if(G['value']==='NaN')Y=NaN;else Y=G['value'];}}}}else{if(I==='bigint')Y=BigInt(G['value']);else{if(I==='symbol')Y=null;else{if(I==='node')Y=makeWebNode({'evaluator':this['evaluator'],'handle':path['length']===0x0?this:void 0x0,'nodeId':G['value']['backendNodeId'],'preview':'<'+(G['value']['localName']??'#node')+'\x20'+(G['value']['attributes']?Object['entries'](G['value']['attributes'])['map'](([c,o])=>c+'=\x22'+o+'\x22')['join']('\x20'):'')+'/>'});else{if(I==='array'){const c=[],o=G['value'];for(const [W,U]of o['entries']())c['push'](await this.#resolveSerializedValue(U,{'path':[...path,{'type':'value','index':W}]}));Y=c;}else{if(I==='set'){const u=new Set(),p=G['value'];for(const [E,B]of p['entries']())u['add'](await this.#resolveSerializedValue(B,{'path':[...path,{'type':'value','index':E}]}));Y=u;}else{if(I==='object'){const t={},D=G['value'];for(const [C,[e,i]]of D['entries']())t[e]=await this.#resolveSerializedValue(i,{'path':[...path,{'type':'value','index':C}]});Y=t;}else{if(I==='map'){const X=new Map(),N=G['value'];for(const [T,[A,V]]of N['entries']()){const H=typeof A==='string'?A:await this.#resolveSerializedValue(A,{'path':[...path,{'type':'key','index':T}]}),P=await this.#resolveSerializedValue(V,{'path':[...path,{'type':'value','index':T}]});X['set'](H,P);}Y=X;}else{if(I==='function')Y=await this['evaluator']['execute']((J,s)=>{for(const q of s){const j=(Array['isArray'](J)||J instanceof Set||J instanceof Map?Array['from'](J['entries']()):Object['entries'](J))[q['index']];if(!j)throw new Error('Can\x27t\x20resolve\x20remote\x20object');J=j[q['type']==='key'?0x0:0x1];}return J;},[this,path]);else throw new Error('Can\x27t\x20resolve\x20serialized\x20remote\x20value\x20of\x20type\x20\x22'+I+'\x22');}}}}}}}}}}if(m!==void 0x0)this.#cache['set'](m,Y);return Y;}['evaluator'];get['objectId'](){return this.#value['objectId'];}get['revoked'](){return this.#revoked;}constructor({evaluator:G,value:m}){this['evaluator']=G,this.#value=m;}async['resolve'](){if(this.#value['type']==='object'&&this.#value['subtype']==='node')return makeWebNode({'evaluator':this['evaluator'],'handle':this});else{if(this.#value['deepSerializedValue']){const G=await this.#resolveSerializedValue(this.#value['deepSerializedValue']);return await this['revoke'](),G;}else throw new Error('Can\x27t\x20resolve\x20unserialized\x20remote\x20object');}}async['revoke'](){!this.#revoked&&(this.#revoked=!![],await this['evaluator']['target']['connection']['execute']('Runtime.releaseObject',{'objectId':this['objectId']}));}['asArgument'](){if(this['evaluator']['destroyed'])throw new StaleRemoteObjectHandleError('Remote\x20object\x20with\x20id\x20'+this['objectId']+'\x20is\x20stale');return!this.#revoked?{'objectId':this['objectId']}:{'value':null};}[Symbol['for']('nodejs.util.inspect.custom')](G,m,Y){let I;if(this.#value['deepSerializedValue']){I=stringifySerializedRemoteValue(this.#value['deepSerializedValue'],{'depth':G-0x1});if(this.#value['deepSerializedValue']['type']==='node'&&m['maxStringLength'])I=I['substring'](0x0,m['maxStringLength'])+'...';}else{if(this.#value['preview'])I=stringifyRemoteValuePreview(this.#value['preview']);else I=this.#value['description']??'';}return'RemoteObjectHandle\x20{'+I+'}';}},RemoteFunctionHandle=class extends RemoteObjectHandle{async['resolve'](){const G=(...m)=>this['call'](...m);return G['handle']=this,G;}async['call'](...G){return await this['evaluator']['execute']((m,Y)=>m(...Y),[this,G]);}},StaleRemoteObjectHandleError=class extends Error{};function stringifyRemoteValuePreview(G){const m=G['type'];if(m==='object'){const I=G['subtype'];if(I==='null'||I==='regexp')return G['description'];else{if(I==='node')return'<'+G['description']+'/>';else{if(I==='array')return'['+G['properties']['map'](c=>Y(c))['join'](',\x20')+(G['overflow']?'\x20...,\x20[length]:\x20'+/\d+/['exec'](G['description'])?.[0x0]:'')+']';else{if(I==='set'||I==='weakset')return G['description']+'\x20{'+(G['entries']??[])['map'](c=>stringifyRemoteValuePreview(c['value']))['join'](',\x20')+(G['overflow']?'\x20...':'')+'}';else{if(!I)return'['+G['properties']['map'](c=>c['name']+':\x20'+Y(c))['join'](',\x20')+(G['overflow']?'\x20...':'')+']';else{if(I==='map'||I==='weakmap')return G['description']+'\x20{'+(G['entries']??[])['map'](c=>stringifyRemoteValuePreview(c['key'])+'\x20=>\x20'+stringifyRemoteValuePreview(c['value']))['join'](',\x20')+'\x20'+(G['overflow']?'...':'')+'}';else{if(I==='date')return'Date\x20{'+G['description']+'}';else{if(I==='promise'){const c=G['properties']['find'](W=>W['name']==='[[PromiseState]]')?.['value']??'pending',o=G['properties']['find'](W=>W['name']==='[[PromiseResult]]');return'Promise\x20{<'+c+'>'+(c!=='pending'&&o?Y(o):'')+'}';}else{if(I==='error')return'Error\x20{'+G['description']+'}';else return'{<unknown>:\x20'+I+'}';}}}}}}}}}else{if(m==='string')return'\x27'+G['description']?.['replaceAll']('\x27','\x5c\x27')+'\x27';else return G['description'];}function Y(W){return W['valuePreview']?stringifyRemoteValuePreview(W['valuePreview']):W['value'];}}function stringifySerializedRemoteValue(G,{depth:m}){const Y=G['type'];if(Y==='undefined'||Y==='null')return Y;else{if(Y==='boolean'||Y==='number')return G['value'];else{if(Y==='bigint')return G['value']+'n';else{if(Y==='string')return'\x27'+G['value']['replaceAll']('\x27','\x5c\x27')+'\x27';else{if(Y==='symbol')return'';else{if(Y==='node'){const I=Object['entries'](G['value']['attributes']??{})['map'](([c,o])=>c+'=\x22'+o+'\x22')['join']('\x20');return'<'+(G['value']['localName']??'#node')+'\x20'+I+'/>';}else{if(Y==='regexp')return'';else{if(Y==='date')return'';else{if(Y==='array'){const c='Array('+G['value']['length']+')';if(m===0x0)return c;return'['+G['value']['map'](o=>stringifySerializedRemoteValue(o,{'depth':m-0x1}))['join'](',\x20')+']';}else{if(Y==='set'){const o='Set('+G['value']['length']+')';if(m===0x0)return o;return o+'\x20{'+G['value']['map'](W=>stringifySerializedRemoteValue(W,{'depth':m-0x1}))['join'](',\x20')+'}';}else{if(Y==='object'){const W='Object('+G['value']['length']+')';if(m===0x0)return W;return'{'+G['value']['map'](([U,u])=>U+':\x20'+stringifySerializedRemoteValue(u,{'depth':m-0x1}))['join'](',\x20')+'}';}else{if(Y==='map'){const U='Map('+G['value']['length']+')';if(m===0x0)return U;return U+'\x20{'+G['value']['map'](([u,p])=>(typeof u==='string'?u:stringifySerializedRemoteValue(u,{'depth':m-0x1}))+'\x20=>\x20'+stringifySerializedRemoteValue(p,{'depth':m-0x1}))['join'](',\x20')+'}';}else return'{<unknown>:\x20'+Y+'}';}}}}}}}}}}}}function boxToRect(G){return{'x':G['x'],'y':G['y'],'width':G['width'],'height':G['height'],'top':G['height']<0x0?G['y']+G['height']:G['y'],'left':G['width']<0x0?G['x']+G['width']:G['x']};}function hostnameOf(G){if(!G)return void 0x0;try{return new URL(G)['hostname'];}catch{return;}}function matchesDomain(G,m){return m['some'](Y=>G===Y||G['endsWith']('.'+Y));}const AD_FRAME_PATTERNS=/(?:doubleclick\.net|googlesyndication\.com|googleadservices\.com|google(?:tag|ad)manager\.com|adnxs\.com|pubmatic\.com|amazon-adsystem\.com|rubiconproject\.com|casalemedia\.com|criteo\.(?:com|net)|sharethrough\.com|yieldmo\.com|gumgum\.com|openx\.net|bidswitch\.net|media\.net|seedtag\.com|3lift\.com|undertone\.com|ads\.yahoo\.com|pub\.network|lijit\.com|adsrvr\.org|2mdn\.net|moatads\.com|serving-sys\.com|taboola\.com|outbrain\.com)/i;function isAdUrl(G){const m=hostnameOf(G);return m?AD_FRAME_PATTERNS['test'](m):![];}const ANALYTICS_DOMAINS=['google-analytics.com','analytics.google.com','omtrdc.net','2o7.net','demdex.net','contentsquare.net','hotjar.com','fullstory.com','mixpanel.com','amplitude.com','segment.io','segment.com','newrelic.com','nr-data.net','scorecardresearch.com','quantserve.com','chartbeat.com','clarity.ms'],ANALYTICS_HOSTNAME_PREFIX=/^s?metrics\./i;function isAnalyticsUrl(G){const m=hostnameOf(G);if(!m)return![];return matchesDomain(m,ANALYTICS_DOMAINS)||ANALYTICS_HOSTNAME_PREFIX['test'](m);}function isNonBlockingRequest(G,m){return G==='Ping'||G==='EventSource'||isAdUrl(m)||isAnalyticsUrl(m);}function makeWebNode(G){return new WebNode(G);}var WebNode=class{#handle;#nodeId;#contentFrame=void 0x0;#attributes;#description;#preview;async #getDescription(){if(this.#description)return this.#description;const G=await this['frame']['target']['connection']['execute']('DOM.describeNode',{'backendNodeId':this.#nodeId,'objectId':this.#handle?.['objectId']});return this.#description=G['node'];}['evaluator'];get['frame'](){return this['evaluator']['frame'];}constructor({evaluator:G,handle:m,nodeId:Y,preview:I}){this['evaluator']=G,this.#handle=m,this.#nodeId=Y,this.#preview=I;}async['asRemoteObjectHandle'](){if(this.#handle)return this.#handle;const G=await this['frame']['target']['connection']['execute']('DOM.resolveNode',{'executionContextId':this['evaluator']['evaluatorId'],'backendNodeId':this.#nodeId});return this.#handle=localizeRemoteValue({'evaluator':this['evaluator'],'value':G['object']});}async['equal'](G){if(this['frame']!==G['frame'])return![];const m=await Promise['all']([this['getNodeId'](),G['getNodeId']()]);return m[0x0]===m[0x1];}async['normalize'](){return this['execute'](G=>{if(G instanceof Element&&['::before','::after']['includes'](G['tagName']))return G['parentElement'];if(G instanceof SVGElement){let m=G;while(m['viewportElement'])m=m['viewportElement'];return m;}return G;});}async['isConnected'](){return this['execute'](G=>G['isConnected'])['catch'](()=>![]);}async['isEnabled'](){return this['execute'](G=>G instanceof Element?G['matches'](':enabled'):![]);}async['isHovered'](){return this['execute'](G=>G instanceof Element?G['matches'](':hover'):G['parentElement']?.['matches'](':hover')??![]);}async['getNodeId'](){if(this.#nodeId)return this.#nodeId;return(await this.#getDescription())['backendNodeId'];}async['getValue']({hint:hint='string',acceptFormValue:G}={}){return await this['execute'](getElementValue,[{'hint':hint,'acceptFormValue':G}]);}async['getText'](){return await this['execute'](G=>G['textContent']);}async['getScreenBox'](){const G=await this['getBox']();try{let m=this['frame'];while(m&&!m['isMain']){if(m['isOutOfProcess']){const Y=await(await m['getOwnerNode']())['getBox']();G['x']+=Y['x'],G['y']+=Y['y'];}m=m['parent'];}return G;}catch(I){throw new Error('Node\x20screen\x20box\x20calculation\x20is\x20failed',{'cause':I});}}async['getBox'](){try{const {model:G}=await this['frame']['target']['connection']['execute']('DOM.getBoxModel',{'backendNodeId':this.#nodeId,'objectId':this.#handle?.['objectId']});return{'x':G['border'][0x0],'y':G['border'][0x1],'width':G['border'][0x4]-G['border'][0x0],'height':G['border'][0x5]-G['border'][0x1]};}catch(m){error('nodeBoxCalculationFailed',{'error':m});throw new StaleNodeError('Node\x20with\x20object\x20id\x20'+this.#nodeId+'\x20is\x20stale');}}async['getMetrics'](){return this['execute'](G=>{const m=G instanceof Element?G:G['parentElement'];return{'scrollX':m['scrollLeft'],'scrollY':m['scrollTop'],'scrollWidth':m['scrollWidth'],'scrollHeight':m['scrollHeight'],'clientWidth':m['clientWidth'],'clientHeight':m['clientHeight']};});}async['getContentBoxes'](){try{const {quads:G}=await this['frame']['target']['connection']['execute']('DOM.getContentQuads',{'backendNodeId':this.#nodeId,'objectId':this.#handle?.['objectId']}),m=G['map'](Y=>Rectangle['fromQuad'](Y))['filter'](Y=>Y['width']>0x0&&Y['height']>0x0);if(m['length']===0x0)throw new StaleNodeError('Node\x20with\x20object\x20id\x20'+this.#nodeId+'\x20is\x20stale');return m;}catch(Y){error('nodeBoxCalculationFailed',{'error':Y});throw new StaleNodeError('Node\x20with\x20object\x20id\x20'+this.#nodeId+'\x20is\x20stale');}}async['getTagName'](){return(await this.#getDescription())['nodeName']['toLowerCase']();}async['getAttribute'](G){if(!this.#attributes){const m=await this.#getDescription();this.#attributes=new Map();if(m['attributes']){for(let Y=0x0;Y<(m['attributes']?.['length']??0x0);Y+=0x2)this.#attributes['set'](m['attributes'][Y],m['attributes'][Y+0x1]);}}return this.#attributes['get'](G);}async['getContentFrame'](){if(this.#contentFrame===void 0x0){const G=(await this.#getDescription())['frameId'];this.#contentFrame=G?this['frame']['target']['browser']['frameManager']['get'](G):null;if(!this.#contentFrame)throw new Error('Cannot\x20find\x20content\x20frame\x20of\x20the\x20iframe\x20node\x20with\x20with\x20object\x20id\x20\x22'+this.#nodeId+'\x22');}return this.#contentFrame;}async['$'](G){const m=['/','(','../','./','*/']['some'](Y=>G['startsWith'](Y))?'xpath':'css';return await this['execute']((Y,I,c)=>{if(c==='xpath')return document['evaluate'](I['replaceAll']('/svg','/*[local-name()\x20=\x20\x27svg\x27]'),Y,null,XPathResult['FIRST_ORDERED_NODE_TYPE'],null)['singleNodeValue'];else return(Y instanceof Element?Y:Y['parentElement'])['querySelector'](I);},[G,m]);}async['$$'](G){const m=['/','(','../','./','*/']['some'](Y=>G['startsWith'](Y))?'xpath':'css';return await this['execute']((Y,I,c)=>{if(c==='xpath'){const o=document['evaluate'](I['replaceAll']('/svg','/*[local-name()\x20=\x20\x27svg\x27]'),Y,null,XPathResult['ORDERED_NODE_ITERATOR_TYPE'],null),W=[];let U;while(U=o['iterateNext']())W['push'](U);return W;}else{const u=Y instanceof Element?Y:Y['parentElement'];return Array['from'](u['querySelectorAll'](I));}},[G,m]);}async['execute'](G,m,Y){return this['evaluator']['execute'](G,[this,...m??[]],Y);}async['focus'](){try{return await this['frame']['target']['connection']['execute']('DOM.focus',{'backendNodeId':this.#nodeId,'objectId':this.#handle?.['objectId']}),!![];}catch{const G=await this['getTagName']();if(G==='html'||G==='body')return!![];if(await this['execute'](m=>m instanceof Element?m['shadowRoot']?.['delegatesFocus']:![])===![])return!![];return![];}}async['hover']({signal:G}){const m=await this['getBox'](),Y={'x':m['x']+m['width']/0x2,'y':m['y']+m['height']/0x2},I=this['frame']['target']['mouse']['position'],c=[[Y]],o=await this['frame']['target']['getViewportSize']();c['push']([{'x':Y['x'],'y':o['height']+0x64},Y]);const W=new Segment(I,Y)['toOrthogonal']();c['push'](W['map'](U=>U['end']));for(const U of c){await this['frame']['target']['mouse']['move'](U,{'signal':G});const {isObscured:u}=await this['isObscured']();if(!u)return;await this['frame']['target']['mouse']['move'](I,{'signal':G}),await n(0x3e8);}}async['click']({simulate:G,signal:m,...Y}={}){if(G)await this['execute'](I=>I['click']());else{const [I]=await this['getContentBoxes'](),c={'x':I['x']+I['width']/0x2,'y':I['y']+I['height']/0x2};await this['hover']({'signal':m}),await this['frame']['target']['mouse']['click'](c,Y);}}async['scrollIntoView']({block:block='nearest',inline:inline='nearest'}={}){await this['execute'](async(G,{block:m,inline:Y})=>{(G instanceof Element?G:G['parentElement'])['scrollIntoView']({'block':m,'inline':Y,'behavior':'instant'}),await new Promise(requestAnimationFrame);},[{'block':block,'inline':inline}],{'await':!![]});}async['tryToUnobscure'](){await this['scrollIntoView']();const {ratio:G}=await this['getObscurationInfo']();if(G!==0x0)await this['scrollIntoView']({'block':'center','inline':'center'});}async['isVisible'](){const {isVisible:G}=await this['execute'](checkVisibility,[{'minSize':0x1,'checkParentsVisibility':!![]}]);return G;}async['getObscurationInfo'](){if(!await this['isVisible']())return{'ratio':0x1,'obscuringElement':null};const {ratio:G,obscuringElement:m}=await this['execute'](getObscurationRatio);if(G===0x0)return{'ratio':0x0,'obscuringElement':null};const Y=await this['getContentBoxes']();if(Y['length']===0x0)return{'ratio':0x1,'obscuringElement':null};const {dx:I,dy:c}=await this['frame']['target']['mainFrame']['execute'](()=>({'dx':window['scrollX'],'dy':window['scrollY']})),o=await this['execute'](p=>p instanceof Element?p:p['parentElement']),W=[];let U=null;for(const p of Y){const E=rectToSamplingPoints(boxToRect(p)),B=await Promise['all'](E['map'](async D=>{const C={'x':D['x']+I,'y':D['y']+c},e=await this['frame']['target']['resolveFromLocation'](C);if(!e)return{'isObscured':![],'node':null};if(await o['equal'](e))return{'isObscured':![],'node':null};if(await o['contains'](e))return{'isObscured':![],'node':null};return{'isObscured':!![],'node':e};})),t=B['map'](D=>D['isObscured']);if(!U){const D=B['find'](C=>C['isObscured']&&C['node']);if(D)U=D['node'];}W['push'](t);}const u=calculateObscurationRatio(W);return{'ratio':Math['min'](u,G),'obscuringElement':U??m};}async['isObscured'](){const {ratio:G,obscuringElement:m}=await this['getObscurationInfo']();return{'isObscured':G>0.5,'obscuringElement':m};}async['isAcceptableInvisible'](){return this['execute'](isElementAcceptableInvisible);}async['scrollTo'](G){await this['execute']((m,{x:Y,y:I})=>{if(!(m instanceof Element))return;let c;if(Y==='end')c=m['scrollWidth'];else{if(Y==='center')c=m['scrollWidth']/0x2;else c=Y;}let o;if(I==='end')o=m['scrollHeight'];else{if(I==='center')o=m['scrollHeight']/0x2;else o=I;}m['scrollTo']({'left':c,'top':o,'behavior':'instant'});},[G]);}async['scrollBy'](G){if(await this['execute'](async(Y,{x:I,y:c})=>{if(!(Y instanceof Element))return!![];const o=Y['scrollTop'],W=Y['scrollLeft'];return Y['scrollBy']({'left':I,'top':c,'behavior':'instant'}),new Promise(U=>{requestAnimationFrame(()=>{const u=Y['scrollTop'],p=Y['scrollLeft'];if(u===o&&p===W)U(![]);else U(!![]);});});},[G],{'await':!![]}))return;const m=await this['getBox']();await this['frame']['target']['connection']['execute']('Input.dispatchMouseEvent',{'type':'mouseWheel','x':m['x']+m['width']-0x1,'y':m['y']+0x1,'deltaX':G['x']??0x0,'deltaY':G['y']??0x0});}async['setValue'](G){if(await this['execute'](m=>m instanceof HTMLInputElement&&m['type']==='file')){if(typeof G!=='string'&&!Array['isArray'](G))throw new Error('Can\x27t\x20set\x20value\x20of\x20type\x20'+typeof G+'\x20in\x20a\x20filepicker');await this['frame']['target']['connection']['execute']('DOM.setFileInputFiles',{'files':Array['isArray'](G)?G:[G],'backendNodeId':this.#nodeId,'objectId':this.#handle?.['objectId']});}else await this['execute'](setElementValue,[G]);}async['canTypeInto'](){return this['execute'](canTypeIntoElement);}async['type'](G){throw new Error('Web\x20elements\x20do\x20not\x20support\x20direct\x20typing.\x20Use\x20keyboard.type()\x20instead.');}async['contains'](G){if(this['frame']!==G['frame'])return![];return this['execute']((m,Y)=>m['contains'](Y),[G]);}async['generateXpath'](){return this['execute'](G=>{let m='';const Y=G['ownerDocument'];if(!Y)return m;let I=G;if(G instanceof Element&&G['id'])m='//'+G['tagName']+'[@id=\x22'+G['id']+'\x22]';else while(I&&I!==Y){const c=I['parentNode'];if(c){const o=I['tagName'];m='/'+o+'['+(Array['prototype']['filter']['call'](c['childNodes'],W=>W['tagName']===o)['indexOf'](I)+0x1)+']'+m;}I=c;}return m;});}async['getDescription'](){return this['generateXpath']();}async['isTextNode'](){return this['execute'](G=>G instanceof Text);}async['getParent'](){return await this['execute'](G=>G['parentElement']);}async['getSelector'](){return this['execute'](getElementSelector);}async['isContentEditable'](){return this['execute'](G=>G instanceof HTMLElement?G['isContentEditable']:![]);}async['setCaretPosition'](G){return this['execute'](setElementCaretPosition,[G]);}[Symbol['for']('nodejs.util.inspect.custom')](G,m,Y){Y['styles']['node']='magentaBright';const I=this.#handle?.[Symbol['for']('nodejs.util.inspect.custom')](G,m,Y)??this.#preview;return I?m['stylize'](I,'node'):'Node\x20'+Y({'nodeId':this.#nodeId},{...m,'compact':!![],'breakLength':Infinity});}async['isLabelOf'](G){return this['execute']((m,Y)=>{if(!(Y instanceof HTMLInputElement)||!Y['labels'])return![];return Array['from'](Y['labels'])['some'](I=>I['contains'](m));},[G]);}},StaleNodeError=class extends Error{},PortOutgoingMessageEvent=class extends Event{['name'];['payload'];constructor(G,m){super('outgoingMessage'),this['name']=G,this['payload']=m;}},PortIncommingMessageEvent=class extends Event{['name'];['payload'];constructor(G,m){super('incommingMessage'),this['name']=G,this['payload']=m;}};function makePort(G){return new Port(G);}var Port=class extends EventTargetNode{#watchers={'initialized':makeWatcher()};async #initialize(){const G='__'+this['name']['replaceAll']('\x20','_')+'_post_message';this['evaluator']['target']['connection']['on']('Runtime.bindingCalled',({executionContextId:m,name:Y,payload:I})=>{if(this['evaluator']['evaluatorId']===m&&Y===G){const c=JSON['parse'](I);this['dispatch'](new PortIncommingMessageEvent(c['name'],c['payload']));}}),await this['evaluator']['target']['connection']['execute']('Runtime.addBinding',{'name':G,'executionContextId':this['evaluator']['evaluatorId']}),await this['evaluator']['execute'](registerPort,[this['name']]),log('portInitialized',{'portName':this['name'],'evaluatorId':this['evaluator']['evaluatorId'],'frameId':this['evaluator']['frame']?.['frameId']});}#closed=![];['evaluator'];['name'];constructor({evaluator:G,name:m}){super(),this['evaluator']=G,this['name']=m,this.#initialize()['then'](()=>this.#watchers['initialized']['resolve']())['catch'](Y=>this.#watchers['initialized']['reject'](Y)),this['evaluator']['on']('destroyed',()=>{if(this.#closed)return;this.#closed=!![],log('portClosed',{'portName':this['name'],'evaluatorId':this['evaluator']['evaluatorId']});}),this['on']('outgoingMessage',async({name:Y,payload:I})=>{try{await this['evaluator']['execute']((c,o,W)=>{const U=globalThis;U['ports'][c]['dispatchEvent'](new U['PortIncommingMessageEvent'](o,W));},[this['name'],Y,I]);}catch(c){error('portMessageSendFailed',{'portName':this['name'],'messageName':Y,'evaluatorId':this['evaluator']['evaluatorId'],'error':c});}});}['send'](G,m){this['dispatch'](new PortOutgoingMessageEvent(G,m));}async['wait'](G){await this.#watchers[G];}};function makeEvaluator(G){return new Evaluator(G);}var Evaluator=class extends EventTargetNode{#evaluatorId;#destroyed=![];#controller=new AbortController();['type'];['name'];['target'];['frame'];get['evaluatorId'](){return this.#evaluatorId;}get['destroyed'](){return this.#destroyed;}constructor(G){super(),this.#evaluatorId=G['evaluatorId'];if('target'in G)this['target']=G['target'];else this['target']=G['frame']['target'],this['frame']=G['frame'];this['name']=G['name'],this['type']=G['type'],this['target']['connection']['on']('Runtime.executionContextsCleared',()=>{log('executionContextDestroyed',{'contextId':this.#evaluatorId,'frameId':this['frame']?.['frameId'],'targetId':this['target']['targetId'],'reason':'cleared'}),log('evaluatorDestroyed',{'evaluatorId':this.#evaluatorId,'frameId':this['frame']?.['frameId'],'targetId':this['target']['targetId'],'reason':'cleared'}),this.#controller['abort'](new AbortError('Evaluator\x20with\x20id\x20\x22'+this.#evaluatorId+'\x22\x20is\x20destroyed\x20in\x20the\x20middle\x20of\x20operation',{'retriable':this['frame']&&!this['frame']['destroyed']})),this['dispatch'](new EvaluatorDestroyedEvent({'evaluatorId':this.#evaluatorId})),this.#controller=new AbortController();}),this['target']['connection']['on']('Runtime.executionContextDestroyed',({executionContextId:Y})=>{this.#evaluatorId===Y&&(log('executionContextDestroyed',{'contextId':this.#evaluatorId,'frameId':this['frame']?.['frameId'],'targetId':this['target']['targetId'],'reason':'destroyed'}),log('evaluatorDestroyed',{'evaluatorId':this.#evaluatorId,'frameId':this['frame']?.['frameId'],'targetId':this['target']['targetId'],'reason':'destroyed'}),this['dispatch'](new EvaluatorDestroyedEvent({'evaluatorId':this.#evaluatorId})),this.#controller=new AbortController());});if(G['logs'])this['target']['connection']['on']('Runtime.consoleAPICalled',({executionContextId:Y,type:I,timestamp:c,args:o})=>{if(this.#evaluatorId===Y)try{const W=o['map'](U=>localizeRemoteValue({'evaluator':this,'value':U}));this['dispatch'](new EvaluatorLogEvent({'type':I,'timestamp':c,'args':W}));}catch{}});const m=this['type']+'-'+this.#evaluatorId;this['frame']?.['on']('destroyed',()=>this['dispatch'](new EvaluatorDestroyedEvent({'evaluatorId':this.#evaluatorId})),{'key':m}),this['on']('destroyed',()=>{this.#destroyed=!![],this.#controller['abort'](new AbortError('Evaluator\x20with\x20id\x20\x22'+this.#evaluatorId+'\x22\x20is\x20destroyed\x20in\x20the\x20middle\x20of\x20operation',{'retriable':this['frame']&&!this['frame']['destroyed']})),this['frame']?.['off'](m);});}async['execute'](G,m,Y){const I=await this['target']['connection']['execute']('Runtime.callFunctionOn',{'executionContextId':this.#evaluatorId,'functionDeclaration':await makeScript(G)['compile'](this),'arguments':await Promise['all']((m??[])['map'](async o=>{if(o instanceof RemoteObjectHandle)return o['asArgument']();if(o instanceof WebNode)return(await o['asRemoteObjectHandle']())['asArgument']();if(typeof o==='bigint')return{'unserializableValue':o+'n'};if(o===Infinity)return{'unserializableValue':'Infinity'};if(o===-Infinity)return{'unserializableValue':'-Infinity'};if(Object['is'](o,-0x0))return{'unserializableValue':'-0'};if(Number['isNaN'](o))return{'unserializableValue':'NaN'};return{'value':o};})),'awaitPromise':Y?.['await'],'serializationOptions':{'serialization':'deep'}},{'signal':this.#controller['signal']});if(I['exceptionDetails']){const o=I['exceptionDetails']['exception']?.['description']?.['replace'](/^\w+:\s*/,'')['replace'](/\n.*/s,'');throw new Error(o??'Error\x20during\x20script\x20evaluation');}const c=localizeRemoteValue({'evaluator':this,'value':I['result']});return c instanceof RemoteObjectHandle?await c['resolve']():c;}async['evaluate'](G,m){const Y=await this['target']['connection']['execute']('Runtime.evaluate',{'contextId':this.#evaluatorId,'expression':await makeExpression(G)['compile'](),'awaitPromise':m?.['await'],'serializationOptions':{'serialization':'deep'}},{'signal':this.#controller['signal']});if(Y['exceptionDetails']){const c=Y['exceptionDetails']['exception']?.['description']?.['replace'](/^\w+:\s*/,'')['replace'](/\n.*/s,'');throw new Error(c??'Error\x20during\x20script\x20evaluation');}const I=localizeRemoteValue({'evaluator':this,'value':Y['result']});return I instanceof RemoteObjectHandle?await I['resolve']():I;}async['resolve']({nodeId:G}){const m=await this['target']['connection']['execute']('DOM.resolveNode',{'executionContextId':this['evaluatorId'],'backendNodeId':G});return await localizeRemoteValue({'evaluator':this,'value':m['object']})['resolve']();}async['port'](G){const m=makePort({'evaluator':this,'name':G});return await m['wait']('initialized'),m;}},EvaluatorLogEvent=class extends Event{['type'];['timestamp'];['args'];constructor({type:G,timestamp:m,args:Y},I){super('log',I),this['type']=G,this['timestamp']=m,this['args']=Y;}},EvaluatorDestroyedEvent=class extends Event{['evaluatorId'];constructor({evaluatorId:G},m){super('destroyed',m),this['evaluatorId']=G;}};function makeRemoteStream(G,m){let Y=typeof m==='string'?m:void 0x0;const I=typeof m==='function'?m:void 0x0;let c=![],o;async function W(){if(Y)return Y;return o??=I()['then'](u=>Y=u),o;}async function U(){if(c)return;c=!![];if(!Y)return;try{await G['execute']('IO.close',{'handle':Y});}catch{}}return new Readable({'read'(u){W()['then'](p=>G['execute']('IO.read',{'handle':p,'size':Math['max'](u,0x40*0x400)}))['then'](({data:p,base64Encoded:E,eof:B})=>{if(p['length']>0x0)this['push'](E?O['from'](p,'base64'):O['from'](p,'utf8'));B&&(this['push'](null),U());},p=>this['destroy'](p instanceof Error?p:new Error(String(p))));},'destroy'(u,p){U()['finally'](()=>p(u));}});}const BFCACHE_LIMIT=0x6;var StylesheetsManager=class{#current={'sheets':new Map()};#bfcache=new Map();get['current'](){return[...this.#current['sheets']['values']()];}['add'](G){this.#current['sheets']['set'](G['stylesheetId'],G);}['remove'](G){return this.#current['sheets']['delete'](G);}['beginNavigation'](){if(this.#current['loaderId']&&this.#current['sheets']['size']>0x0)this.#bfcache['set'](this.#current['loaderId'],this.#current['sheets']);this.#current={'sheets':new Map()};}['commitNavigation'](G,m){if(this.#current['loaderId']===G)return;if(m==='restoration'){const Y=this.#bfcache['get'](G);if(Y){if(this.#current['loaderId']&&this.#current['sheets']['size']>0x0)this.#bfcache['set'](this.#current['loaderId'],this.#current['sheets']);this.#bfcache['delete'](G),this.#current={'loaderId':G,'sheets':Y},this.#evictBfcache(G);return;}}if(this.#current['loaderId']&&this.#current['sheets']['size']>0x0)this.#bfcache['set'](this.#current['loaderId'],this.#current['sheets']),this.#current={'loaderId':G,'sheets':new Map()};else this.#current['loaderId']=G;this.#evictBfcache(G);}#evictBfcache(G){while(this.#bfcache['size']>BFCACHE_LIMIT){let m=![];for(const Y of this.#bfcache['keys']()){if(Y===G)continue;this.#bfcache['delete'](Y),m=!![];break;}if(!m)break;}}},FrameFetchError=class extends Error{['netError'];constructor(G){super(G),this['name']='FrameFetchError',this['netError']=G;}};function makeFrame(G){return new Frame(G);}var Frame=class extends EventTargetNode{#target;#node;#defaultEvaluator;#isolatedEvaluator;#response;#controller=new AbortController();#destroyed=![];#watchers={'determined':makeWatcher({'signal':this.#controller['signal']}),'defaultEvaluatorAttached':makeWatcher({'signal':this.#controller['signal']}),'navigated':makeWatcher({'signal':this.#controller['signal']}),'loaded':makeWatcher({'signal':this.#controller['signal']}),'networkAlmostIdle':makeWatcher({'signal':this.#controller['signal']}),'networkIdle':makeWatcher({'signal':this.#controller['signal']}),'stable':makeWatcher({'signal':this.#controller['signal']})};#isAd=![];#navigatedAt=0x0;#stylesheets=new StylesheetsManager();async #getDefaultEvaluator(){return await this.#watchers['defaultEvaluatorAttached'],this.#defaultEvaluator;}async #getIsolatedEvaluator(){if(this.#isolatedEvaluator)return this.#isolatedEvaluator;const G=await this.#target['connection']['execute']('Page.createIsolatedWorld',{'frameId':this['frameId'],'worldName':'isolated-'+this['frameId']},{'signal':this.#controller['signal']});return this.#isolatedEvaluator=makeEvaluator({'frame':this,'evaluatorId':G['executionContextId'],'type':'isolated','logs':!![]}),log('evaluatorCreated',{'evaluatorId':this.#isolatedEvaluator['evaluatorId'],'frameId':this['frameId']}),this.#isolatedEvaluator['once']('destroyed',()=>this.#isolatedEvaluator=void 0x0),this['dispatch'](new FrameEvaluatorAttached(this.#isolatedEvaluator)),this.#isolatedEvaluator;}async #execute(G,m,Y,I){await this['wait']('determined');let c;if(G==='isolated')c=await this.#getIsolatedEvaluator();else c=await this.#getDefaultEvaluator();try{return await c['execute'](m,Y,I);}catch(o){if(o instanceof AbortError&&o['retriable'])return this.#execute(G,m,Y,I);if(!this.#watchers['loaded']['settled'])return await this['wait']('loaded'),this.#execute(G,m,Y,I);throw o;}}async #evaluate(G,m,Y){await this['wait']('determined');let I;if(G==='isolated')I=await this.#getIsolatedEvaluator();else I=await this.#getDefaultEvaluator();try{return await I['evaluate'](m,Y);}catch(c){if(c instanceof AbortError&&c['retriable'])return this.#evaluate(G,m,Y);if(!this.#watchers['loaded']['settled'])return await this['wait']('loaded'),this.#evaluate(G,m,Y);throw c;}}async #resolve(G,m){await this['wait']('determined');let Y;if(G==='isolated')Y=await this.#getIsolatedEvaluator();else Y=await this.#getDefaultEvaluator();try{return await Y['resolve'](m);}catch(I){if(I instanceof AbortError&&I['retriable'])return this.#resolve(G,m);if(!this.#watchers['loaded']['settled'])return await this['wait']('loaded'),this.#resolve(G,m);throw I;}}['frameId'];['parentFrameId'];get['loaded'](){return this.#watchers['loaded']['settled'];}get['stable'](){return this.#watchers['stable']['settled'];}get['destroyed'](){return this.#destroyed;}get['target'](){return this.#target;}get['response'](){return this.#response;}get['isMain'](){return!this['parentFrameId'];}get['isOutOfProcess'](){return!this['isMain']&&this['frameId']===this.#target['targetId'];}get['isAd'](){return this.#isAd;}get['parent'](){if(!this['parentFrameId'])return null;return this['target']['browser']['frameManager']['get'](this['parentFrameId'])??null;}get['defaultEvaluator'](){return this.#defaultEvaluator;}get['navigatedAt'](){return this.#navigatedAt;}get['stylesheets'](){return this.#stylesheets['current'];}['addStylesheet'](G){this.#stylesheets['add'](G);}['removeStylesheet'](G){return this.#stylesheets['remove'](G);}constructor({target:G,frameId:m,parentFrameId:Y}){super(),this.#target=G,this['frameId']=m,this['parentFrameId']=Y,this.#watchers['determined']['resolve'](),this.#watchers['navigated']['resolve'](),this['on']('evaluatorAttached',({evaluator:I})=>{I['type']==='default'&&(this.#defaultEvaluator=I,this.#watchers['defaultEvaluatorAttached']['resolve'](),I['on']('log',({type:c,args:o})=>{log('frameConsoleMessage',{'frameId':this['frameId'],'consoleType':c,'args':o});}));}),this['on']('request',({request:I})=>{if(this.#watchers['navigated']['settled'])this['dispatch'](new FrameNavigatingEvent({'url':I['url'],'reason':'unknown'}));}),this['on']('response',({response:I})=>this.#response=I),this['on']('navigating',()=>{this.#watchers['navigated']['reset']({'signal':this.#controller['signal']}),this.#watchers['loaded']['reset']({'signal':this.#controller['signal']}),this.#watchers['stable']['reset']({'signal':this.#controller['signal']})['resolve'](void 0x0,{'delay':this.#target['browser']['frameStabilityTimeout']}),this.#watchers['networkAlmostIdle']['reset']({'signal':this.#controller['signal']}),this.#watchers['networkIdle']['reset']({'signal':this.#controller['signal']});}),this['on']('navigated',({url:I,reason:c,loaderId:o})=>{if(!this['isMain'])this.#isAd=isAdUrl(I);this.#navigatedAt=Date['now'](),this.#watchers['navigated']['resolve']();if(c!=='local')this.#stylesheets['commitNavigation'](o,c);c==='remote'?(this.#watchers['loaded']['reset']({'signal':this.#controller['signal']}),this.#watchers['stable']['reset']({'signal':this.#controller['signal']})['resolve'](void 0x0,{'delay':this.#target['browser']['frameStabilityTimeout']}),this.#watchers['networkAlmostIdle']['reset']({'signal':this.#controller['signal']}),this.#watchers['networkIdle']['reset']({'signal':this.#controller['signal']})):(this.#watchers['loaded']['resolve'](),this.#watchers['stable']['resolve'](),this.#watchers['networkAlmostIdle']['resolve'](),this.#watchers['networkIdle']['resolve']());}),this['on']('loading',()=>{if(this['isAd'])return;this.#stylesheets['beginNavigation'](),this.#watchers['loaded']['reset']({'signal':this.#controller['signal']}),this.#watchers['stable']['reset']({'signal':this.#controller['signal']})['resolve'](void 0x0,{'delay':this.#target['browser']['frameStabilityTimeout']}),this.#watchers['networkAlmostIdle']['reset']({'signal':this.#controller['signal']}),this.#watchers['networkIdle']['reset']({'signal':this.#controller['signal']});}),this['on']('loaded',()=>{this.#watchers['loaded']['resolve'](),this.#watchers['stable']['resolve']();}),this['on']('networkAlmostIdle',()=>{this.#watchers['networkAlmostIdle']['resolve'](),this.#watchers['networkIdle']['reset']({'signal':this.#controller['signal']});}),this['on']('networkIdle',()=>{this.#watchers['networkAlmostIdle']['resolve'](),this.#watchers['networkIdle']['resolve']();}),this['on']('swapping',()=>{log('frameTargetSwapping',{'frameId':this['frameId']}),this.#watchers['determined']['reset']({'signal':this.#controller['signal']}),this.#defaultEvaluator=void 0x0,this.#isolatedEvaluator=void 0x0;}),this['on']('swapped',({target:I})=>{log('frameTargetSwapped',{'frameId':this['frameId'],'targetId':I['targetId']}),this.#target=I,this.#watchers['determined']['resolve'](),this.#watchers['loaded']['reset']({'signal':this.#controller['signal']}),this.#watchers['stable']['reset']({'signal':this.#controller['signal']})['resolve'](void 0x0,{'delay':this.#target['browser']['frameStabilityTimeout']}),this.#watchers['networkAlmostIdle']['reset']({'signal':this.#controller['signal']}),this.#watchers['networkIdle']['reset']({'signal':this.#controller['signal']});}),this['on']('destroyed',()=>{this.#destroyed=!![],this.#controller['abort'](new AbortError('Frame\x20with\x20id\x20\x22'+this['frameId']+'\x22\x20is\x20destroyed\x20in\x20the\x20middle\x20of\x20operation'));});}async['isVisible'](){if(this['isMain'])return!![];const G=await this['getOwnerNode']();if(!G)return![];return await G['execute'](isFrameContentVisible);}async['wait'](G,{signal:m}={}){return abortable(this.#watchers[G],m);}async['getOwnerNode'](){if(this.#node!==void 0x0)return this.#node;if(!this['parent'])return this.#node=null;const G=await this['parent']['$$']('iframe');for(const m of G)if(await m['getContentFrame']()===this)return this.#node=m;throw new Error('Cannot\x20find\x20owner\x20node\x20for\x20the\x20frame');}async['$'](G){const m=[G]['flat']();let Y=this;for(const I of m['keys']()){const c=m[I],o=await Y['execute'](findNodeBySelector,[c]);if(!o)return null;if(I<m['length']-0x1)Y=await o['getContentFrame']();else return o;}return null;}async['$$'](G){const m=[G]['flat']();let Y=[this];for(const I of m['keys']()){const c=m[I],o=await Y['reduce'](async(W,U)=>{const u=await U['execute'](findNodesBySelector,[c]),p=await W;return p['push'](...u),p;},Promise['resolve']([]));if(o['length']===0x0)return[];if(I<m['length']-0x1)Y=await Promise['all'](o['map'](async W=>W['getContentFrame']()));else return o;}return[];}async['fetch'](G,m={}){const Y=this['target']['connection'],I={'disableCache':m['disableCache']??![],'includeCredentials':m['includeCredentials']??!![]};let c;try{c=await Y['execute']('Network.loadNetworkResource',{'frameId':this['frameId'],'url':G,'options':I});}catch(t){throw new FrameFetchError(t instanceof Error?t['message']:String(t));}const {success:o,httpStatusCode:W,headers:U,netErrorName:u,stream:p}=c['resource'];if(!o&&W===void 0x0)throw new FrameFetchError(u??'unknown');const E={};for(const [D,C]of Object['entries'](U??{}))E[D['toLowerCase']()]=typeof C==='string'?C:String(C);let B;if(p)try{B=await buffer(makeRemoteStream(Y,p));}catch(e){throw new FrameFetchError(e instanceof Error?e['message']:String(e));}else B=O['alloc'](0x0);return{'request':{'url':G,'method':'GET','headers':{},'body':()=>Promise['resolve'](new Uint8Array())},'status':W??0xc8,'headers':E,get 'body'(){return Readable['from'](B);},'arrayBuffer':()=>Promise['resolve'](new Uint8Array(B)['buffer']),'base64':()=>Promise['resolve'](B['toString']('base64'))};}async['execute'](G,m,Y){return this.#execute('isolated',G,m,Y);}async['defaultExecute'](G,m,Y){return this.#execute('default',G,m,Y);}async['evaluate'](G,m){return this.#evaluate('isolated',G,m);}async['defaultEvaluate'](G,m){return this.#evaluate('default',G,m);}async['resolve'](G){return this.#resolve('isolated',G);}async['defaultResolve'](G){return this.#resolve('default',G);}},FrameEvaluatorAttached=class extends Event{['evaluator'];constructor(G){super('evaluatorAttached'),this['evaluator']=G;}},FrameLifecycleEvent=class extends Event{constructor(G){super(G);}},FrameNavigatingEvent=class extends Event{['url'];['reason'];constructor({url:G,reason:m}){super('navigating'),this['url']=G,this['reason']=m;}},FrameNavigatedEvent=class extends Event{['url'];['reason'];['loaderId'];constructor({url:G,reason:m,loaderId:Y}){super('navigated'),this['url']=G,this['reason']=m,this['loaderId']=Y;}},FrameDocumentRequestEvent=class extends Event{['request'];constructor(G){super('request'),this['request']=G;}},FrameDocumentResponseEvent=class extends Event{['response'];constructor(G){super('response'),this['response']=G;}},FrameSwappingEvent=class extends Event{constructor(){super('swapping');}},FrameSwappedEvent=class extends Event{['target'];constructor(G){super('swapped'),this['target']=G;}},FrameDestroyedEvent=class extends Event{constructor(){super('destroyed');}};function makeLoader(G){return new Loader(G);}var Loader=class extends EventTargetNode{#frame;constructor({frame:G}){super(),this.#frame=G,this.#frame&&(this['on']('request',({resource:m,request:Y})=>{if(m==='Document')this.#frame['dispatch'](new FrameDocumentRequestEvent(Y));}),this['on']('response',({resource:m,response:Y})=>{if(m==='Document')this.#frame['dispatch'](new FrameDocumentResponseEvent(Y));}));}async*['responses'](){const G=makeWatcher();let m=[];this['on']('response',({response:Y})=>{m['push'](Y),G['resolve'](),G['reset']();});while(!![]){await G,yield*m,m=[];}}},LoaderRequestEvent=class extends Event{['requestId'];['request'];['resource'];constructor(G,{requestId:m,resource:Y},I){super('request',I),this['requestId']=m,this['resource']=Y,this['request']=G;}},LoaderResponseEvent=class extends Event{['requestId'];['response'];['resource'];constructor(G,{requestId:m,resource:Y},I){super('response',I),this['requestId']=m,this['resource']=Y,this['response']=G;}};function makeBlockingDialog(G){return new BlockingDialog(G);}var BlockingDialog=class extends EventTargetNode{#handled=![];['target'];['type'];['message'];constructor({target:G,type:m,message:Y}){super(),this['target']=G,this['type']=m,this['message']=Y;}get['handled'](){return this.#handled;}async['handle'](G,m){log('dialogHandling',{'targetId':this['target']['targetId']}),this.#handled=!![],await this['target']['connection']['execute']('Page.handleJavaScriptDialog',{'accept':G,'promptText':m}),this['dispatch'](new DialogHandledEvent());}};function makeFilepickerDialog(G){return new FilepickerDialog(G);}var FilepickerDialog=class extends EventTargetNode{#handled=![];['frame'];['element'];['multiple'];['accept'];['type']='filepicker';constructor({frame:G,element:m,multiple:Y,accept:I}){super(),this['frame']=G,this['element']=m,this['multiple']=Y,this['accept']=I;}get['handled'](){return this.#handled;}async['handle'](G){try{await this['element']['setValue'](G),this.#handled=!![],this['dispatch'](new DialogHandledEvent());}catch(m){error('filepickerHandleFailed',{'error':m});}}},DialogHandledEvent=class extends Event{constructor(){super('handled');}};function makeDebugger(G){return new Debugger(G);}var Debugger=class extends EventTargetNode{#watchers={'holds':new Set(),'paused':makeWatcher()};#initialize(){this['target']['connection']['on']('Debugger.paused',async()=>{log('debuggerPaused',{'targetId':this['target']['targetId'],'reason':this.#watchers['paused']['settled']?'manual':'programmatic'});if(this.#watchers['paused']['settled'])this.#watchers['paused']['reset']({'hint':'manual'});this['dispatch'](new DebuggerPausedEvent({'reason':this.#watchers['paused']['hint']}));}),this['target']['connection']['on']('Debugger.resumed',async()=>{log('debuggerResumed',{'targetId':this['target']['targetId']}),this.#watchers['paused']['resolve'](),this.#watchers['holds']['forEach'](G=>G['resolve']()),this.#watchers['holds']['clear'](),this['dispatch'](new DebuggerResumedEvent());}),this.#watchers['paused']['resolve']();}['target'];get['paused'](){return!this.#watchers['paused']['settled'];}constructor({target:G}){super(),this['target']=G,this['target']['wait']('initialized')['then'](()=>this.#initialize());}['hold'](){if(this.#watchers['paused']['settled'])return()=>void 0x0;const G=makeWatcher();return this.#watchers['holds']['add'](G),()=>{this.#watchers['holds']['delete'](G),G['resolve']();};}async['pause'](){this.#watchers['paused']['reset']({'hint':'programmatic'}),await this['target']['connection']['execute']('Debugger.pause'),this['target']['mainFrame']['defaultEvaluate']('1\x20+\x201')['catch'](()=>null);}async['resume'](){await Promise['allSettled'](this.#watchers['holds']);if(!this.#watchers['paused']['settled'])await this['target']['connection']['execute']('Debugger.resume',{'terminateOnResume':![]});}},DebuggerPausedEvent=class extends Event{['reason'];constructor({reason:G},m){super('paused',m),this['reason']=G;}},DebuggerResumedEvent=class extends Event{constructor(G){super('resumed',G);}};const us=buildLayout({'us':{'Escape':{'keyCode':0x1b,'key':'Escape'},'F1':{'keyCode':0x70,'key':'F1'},'F2':{'keyCode':0x71,'key':'F2'},'F3':{'keyCode':0x72,'key':'F3'},'F4':{'keyCode':0x73,'key':'F4'},'F5':{'keyCode':0x74,'key':'F5'},'F6':{'keyCode':0x75,'key':'F6'},'F7':{'keyCode':0x76,'key':'F7'},'F8':{'keyCode':0x77,'key':'F8'},'F9':{'keyCode':0x78,'key':'F9'},'F10':{'keyCode':0x79,'key':'F10'},'F11':{'keyCode':0x7a,'key':'F11'},'F12':{'keyCode':0x7b,'key':'F12'},'Backquote':{'keyCode':0xc0,'shiftKey':'~','key':'`'},'Digit1':{'keyCode':0x31,'shiftKey':'!','key':'1'},'Digit2':{'keyCode':0x32,'shiftKey':'@','key':'2'},'Digit3':{'keyCode':0x33,'shiftKey':'#','key':'3'},'Digit4':{'keyCode':0x34,'shiftKey':'$','key':'4'},'Digit5':{'keyCode':0x35,'shiftKey':'%','key':'5'},'Digit6':{'keyCode':0x36,'shiftKey':'^','key':'6'},'Digit7':{'keyCode':0x37,'shiftKey':'&','key':'7'},'Digit8':{'keyCode':0x38,'shiftKey':'*','key':'8'},'Digit9':{'keyCode':0x39,'shiftKey':'(','key':'9'},'Digit0':{'keyCode':0x30,'shiftKey':')','key':'0'},'Minus':{'keyCode':0xbd,'shiftKey':'_','key':'-'},'Equal':{'keyCode':0xbb,'shiftKey':'+','key':'='},'Backslash':{'keyCode':0xdc,'shiftKey':'|','key':'\x5c'},'Backspace':{'keyCode':0x8,'key':'Backspace'},'Tab':{'keyCode':0x9,'key':'Tab'},'KeyQ':{'keyCode':0x51,'shiftKey':'Q','key':'q'},'KeyW':{'keyCode':0x57,'shiftKey':'W','key':'w'},'KeyE':{'keyCode':0x45,'shiftKey':'E','key':'e'},'KeyR':{'keyCode':0x52,'shiftKey':'R','key':'r'},'KeyT':{'keyCode':0x54,'shiftKey':'T','key':'t'},'KeyY':{'keyCode':0x59,'shiftKey':'Y','key':'y'},'KeyU':{'keyCode':0x55,'shiftKey':'U','key':'u'},'KeyI':{'keyCode':0x49,'shiftKey':'I','key':'i'},'KeyO':{'keyCode':0x4f,'shiftKey':'O','key':'o'},'KeyP':{'keyCode':0x50,'shiftKey':'P','key':'p'},'BracketLeft':{'keyCode':0xdb,'shiftKey':'{','key':'['},'BracketRight':{'keyCode':0xdd,'shiftKey':'}','key':']'},'CapsLock':{'keyCode':0x14,'key':'CapsLock'},'KeyA':{'keyCode':0x41,'shiftKey':'A','key':'a'},'KeyS':{'keyCode':0x53,'shiftKey':'S','key':'s'},'KeyD':{'keyCode':0x44,'shiftKey':'D','key':'d'},'KeyF':{'keyCode':0x46,'shiftKey':'F','key':'f'},'KeyG':{'keyCode':0x47,'shiftKey':'G','key':'g'},'KeyH':{'keyCode':0x48,'shiftKey':'H','key':'h'},'KeyJ':{'keyCode':0x4a,'shiftKey':'J','key':'j'},'KeyK':{'keyCode':0x4b,'shiftKey':'K','key':'k'},'KeyL':{'keyCode':0x4c,'shiftKey':'L','key':'l'},'Semicolon':{'keyCode':0xba,'shiftKey':':','key':';'},'Quote':{'keyCode':0xde,'shiftKey':'\x22','key':'\x27'},'Enter':{'keyCode':0xd,'key':'Enter','text':'\x0d'},'ShiftLeft':{'keyCode':0xa0,'keyCodeWithoutLocation':0x10,'key':'Shift','location':0x1},'KeyZ':{'keyCode':0x5a,'shiftKey':'Z','key':'z'},'KeyX':{'keyCode':0x58,'shiftKey':'X','key':'x'},'KeyC':{'keyCode':0x43,'shiftKey':'C','key':'c'},'KeyV':{'keyCode':0x56,'shiftKey':'V','key':'v'},'KeyB':{'keyCode':0x42,'shiftKey':'B','key':'b'},'KeyN':{'keyCode':0x4e,'shiftKey':'N','key':'n'},'KeyM':{'keyCode':0x4d,'shiftKey':'M','key':'m'},'Comma':{'keyCode':0xbc,'shiftKey':'<','key':','},'Period':{'keyCode':0xbe,'shiftKey':'>','key':'.'},'Slash':{'keyCode':0xbf,'shiftKey':'?','key':'/'},'ShiftRight':{'keyCode':0xa1,'keyCodeWithoutLocation':0x10,'key':'Shift','location':0x2},'ControlLeft':{'keyCode':0xa2,'keyCodeWithoutLocation':0x11,'key':'Control','location':0x1},'MetaLeft':{'keyCode':0x5b,'key':'Meta','location':0x1},'AltLeft':{'keyCode':0xa4,'keyCodeWithoutLocation':0x12,'key':'Alt','location':0x1},'Space':{'keyCode':0x20,'key':'\x20'},'AltRight':{'keyCode':0xa5,'keyCodeWithoutLocation':0x12,'key':'Alt','location':0x2},'AltGraph':{'keyCode':0xe1,'key':'AltGraph'},'MetaRight':{'keyCode':0x5c,'key':'Meta','location':0x2},'ContextMenu':{'keyCode':0x5d,'key':'ContextMenu'},'ControlRight':{'keyCode':0xa3,'keyCodeWithoutLocation':0x11,'key':'Control','location':0x2},'PrintScreen':{'keyCode':0x2c,'key':'PrintScreen'},'ScrollLock':{'keyCode':0x91,'key':'ScrollLock'},'Pause':{'keyCode':0x13,'key':'Pause'},'PageUp':{'keyCode':0x21,'key':'PageUp'},'PageDown':{'keyCode':0x22,'key':'PageDown'},'Insert':{'keyCode':0x2d,'key':'Insert'},'Delete':{'keyCode':0x2e,'key':'Delete'},'Home':{'keyCode':0x24,'key':'Home'},'End':{'keyCode':0x23,'key':'End'},'ArrowLeft':{'keyCode':0x25,'key':'ArrowLeft'},'ArrowUp':{'keyCode':0x26,'key':'ArrowUp'},'ArrowRight':{'keyCode':0x27,'key':'ArrowRight'},'ArrowDown':{'keyCode':0x28,'key':'ArrowDown'},'NumLock':{'keyCode':0x90,'key':'NumLock'},'NumpadDivide':{'keyCode':0x6f,'key':'/','location':0x3},'NumpadMultiply':{'keyCode':0x6a,'key':'*','location':0x3},'NumpadSubtract':{'keyCode':0x6d,'key':'-','location':0x3},'Numpad7':{'keyCode':0x24,'shiftKeyCode':0x67,'key':'Home','shiftKey':'7','location':0x3},'Numpad8':{'keyCode':0x26,'shiftKeyCode':0x68,'key':'ArrowUp','shiftKey':'8','location':0x3},'Numpad9':{'keyCode':0x21,'shiftKeyCode':0x69,'key':'PageUp','shiftKey':'9','location':0x3},'Numpad4':{'keyCode':0x25,'shiftKeyCode':0x64,'key':'ArrowLeft','shiftKey':'4','location':0x3},'Numpad5':{'keyCode':0xc,'shiftKeyCode':0x65,'key':'Clear','shiftKey':'5','location':0x3},'Numpad6':{'keyCode':0x27,'shiftKeyCode':0x66,'key':'ArrowRight','shiftKey':'6','location':0x3},'NumpadAdd':{'keyCode':0x6b,'key':'+','location':0x3},'Numpad1':{'keyCode':0x23,'shiftKeyCode':0x61,'key':'End','shiftKey':'1','location':0x3},'Numpad2':{'keyCode':0x28,'shiftKeyCode':0x62,'key':'ArrowDown','shiftKey':'2','location':0x3},'Numpad3':{'keyCode':0x22,'shiftKeyCode':0x63,'key':'PageDown','shiftKey':'3','location':0x3},'Numpad0':{'keyCode':0x2d,'shiftKeyCode':0x60,'key':'Insert','shiftKey':'0','location':0x3},'NumpadDecimal':{'keyCode':0x2e,'shiftKeyCode':0x6e,'key':'\x00','shiftKey':'.','location':0x3},'NumpadEnter':{'keyCode':0xd,'key':'Enter','text':'\x0d','location':0x3}}}['us']);function buildLayout(G){const m=new Map();for(const Y in G){const I=G[Y],c={'name':Y,'key':I['key']||'','code':I['keyCodeWithoutLocation']||I['keyCode']||0x0,'text':I['text']??(I['key']['length']===0x1?I['key']:''),'modifier':['Shift','Control','Alt','Meta']['includes'](I['key']),'commands':I['commands']};let o;if(I['shiftKey']){o={...c},o['key']=I['shiftKey'],o['text']=I['shiftKey'];if(I['shiftKeyCode'])o['code']=I['shiftKeyCode'];}m['set'](Y,{...c,'shifted':o});if(c['key']['length']===0x1)m['set'](c['key'],c);if(o)m['set'](o['key'],o);}return m;}function makeMouse(G){return new Mouse(G);}var Mouse=class{#target;#position={'x':0x0,'y':0x0};constructor({target:G}){this.#target=G;}get['position'](){return this.#position;}async['move'](G,{signal:m}){const Y=Array['isArray'](G)?G:[G];for(const I of Y){const {x:c,y:o}=I,W=this.#position,U=1.7,u=0x5,p=Math['hypot'](c-W['x'],o-W['y'])/U,E=Math['ceil'](p/u);for(let B=0x0;B<E;B++){m?.['throwIfAborted']();const D=B/E,C=lerp(W['x'],c,D),e=lerp(W['y'],o,D);await this.#target['connection']['execute']('Input.dispatchMouseEvent',{'type':'mouseMoved','x':C,'y':e},{'signal':m}),await n(u,void 0x0,{'signal':m});}await this.#target['connection']['execute']('Input.dispatchMouseEvent',{'type':'mouseMoved','x':c,'y':o},{'signal':m}),this.#position={'x':c,'y':o};}}async['click']({x:G,y:m},{button:button='left',times:times=0x1}={}){await this.#target['connection']['execute']('Input.dispatchMouseEvent',{'type':'mousePressed','x':G,'y':m,'button':button,'clickCount':times}),await this.#target['connection']['execute']('Input.dispatchMouseEvent',{'type':'mouseReleased','x':G,'y':m,'button':button,'clickCount':times}),this.#position={'x':G,'y':m};}};function makeKeyboard(G){return new Keyboard(G);}var Keyboard=class{#target;#pressed={'modifiers':new Set(),'keys':new Set()};constructor({target:G}){this.#target=G;}async['press'](G,{raw:m,commands:Y}={}){await this['down'](G,{'raw':m,'commands':Y}),await n(0xa),await this['up'](G);}async['down'](G,{raw:m,commands:Y}={}){for(const I of Array['isArray'](G)?G:[G]){let c=us['get'](I);if(!c)throw new Error('Unknown\x20key\x20\x22'+I+'\x22');if(this.#pressed['modifiers']['has']('Shift')&&c['shifted'])c=c['shifted'];m=!c['text']||m&&c['key']!==c['text'],await this.#target['connection']['execute']('Input.dispatchKeyEvent',{'type':m?'rawKeyDown':'keyDown','modifiers':toModifiersMask(this.#pressed['modifiers']),'windowsVirtualKeyCode':c['code'],'nativeVirtualKeyCode':c['code'],'code':c['name'],'key':c['key'],'text':m?'':c['text'],'unmodifiedText':m?'':c['text'],'commands':[...Y??[],...c['commands']??[]]});if(c['modifier'])this.#pressed['modifiers']['add'](c['key']);else this.#pressed['keys']['add'](c['key']);}}async['up'](G){for(const m of Array['isArray'](G)?G['toReversed']():[G]){const Y=us['get'](m);if(!Y)throw new Error('Unknown\x20key\x20\x22'+m+'\x22');await this.#target['connection']['execute']('Input.dispatchKeyEvent',{'type':'keyUp','modifiers':toModifiersMask(this.#pressed['modifiers']),'windowsVirtualKeyCode':Y['code'],'nativeVirtualKeyCode':Y['code'],'code':Y['name'],'key':Y['key']});if(Y['modifier'])this.#pressed['modifiers']['delete'](Y['key']);else this.#pressed['keys']['delete'](Y['key']);}}async['type'](G,{signal:m}={}){for(const Y of G){if(us['has'](Y))await this['press'](Y);else await this.#target['connection']['execute']('Input.dispatchKeyEvent',{'type':'char','text':Y});m?.['throwIfAborted'](),await n(0x64);}}async['insert'](G,{keys:m}={}){if(m)await this['press'](m);await this.#target['connection']['execute']('Input.insertText',{'text':G});}};function toModifiersMask(G){let m=0x0;if(G['has']('Alt'))m|=0x1;if(G['has']('Control'))m|=0x2;if(G['has']('Meta'))m|=0x4;if(G['has']('Shift'))m|=0x8;return m;}function lerp(G,m,Y){return G*(0x1-Y)+m*Y;}function makeInjection(G){return new Injection(G);}var Injection=class extends EventTargetNode{#targets=new Set();#evaluators=new Map();#isolated=!![];#deep=!![];#watchers={'injected':makeWatcher()};async #inject(G){try{log('injectionStarted',{'name':this['name'],'targetId':G['targetId']}),await G['wait']('initialized'),this.#targets['add'](G),G['on']('closed',()=>this.#targets['delete'](G));for(const m of G['frames']()){if(!this.#isolated&&m['defaultEvaluator'])await this.#attach(m['defaultEvaluator']);m['on']('evaluatorAttached',async({evaluator:Y})=>{if(this.#isolated?Y['name']===this['name']:Y['type']==='default')await this.#attach(Y);});}G['on']('frameAttached',({frame:Y})=>{Y['on']('evaluatorAttached',async({evaluator:I})=>{if(this.#isolated?I['name']===this['name']:I['type']==='default')await this.#attach(I);});}),G['connection']['on']('Runtime.bindingCalled',({executionContextId:Y,name:I,payload:c})=>{if(I===this['binding']){const o=this.#evaluators['get'](G['targetId']+':'+Y);if(o){const W=JSON['parse'](c);this['dispatch'](new InjectionIncommingMessageEvent(o,W['name'],W['payload']));}}}),await G['connection']['execute']('Runtime.addBinding',{'name':this['binding'],'executionContextName':this.#isolated?this['name']:void 0x0}),await G['connection']['execute']('Page.addScriptToEvaluateOnNewDocument',{'source':await makeExpression(this['expression'])['compile'](),'worldName':this.#isolated?this['name']:void 0x0,'runImmediately':!![]}),this['dispatch'](new InjectionTargetAttachedEvent(G)),this.#deep&&(G['on']('frameTargetCreated',async({target:Y})=>this.#inject(Y)),await Promise['all'](Array['from'](G['targets'](),async Y=>this.#inject(Y))));}catch(Y){if(Y instanceof AbortError)log('injectionTargetAborted',{'name':this['name'],'targetId':G['targetId'],'error':Y});else throw Y;}}async #attach(G){log('injectionEvaluatorAttached',{'name':this['name'],'evaluatorId':G['evaluatorId'],'evaluatorName':G['name'],'frameId':G['frame']?.['frameId']}),this.#evaluators['set'](G['target']['targetId']+':'+G['evaluatorId'],G),G['on']('destroyed',({evaluatorId:m})=>this.#evaluators['delete'](G['target']['targetId']+':'+m)),this['dispatch'](new InjectionEvaluatorAttachedEvent(G));}['name'];['binding'];['expression'];constructor({target:G,expression:m,name:Y,deep:I,isolated:c}){super(),Y??=m instanceof Expression?m['name']:Y;if(!Y)throw new Error('Cannot\x20create\x20an\x20injection\x20without\x20a\x20name');this['expression']=m,this['name']=Y,this['binding']='__'+Y['replaceAll']('\x20','_')+'_post_message',this.#deep=I??!![],this.#isolated=c??!![],this['cork'](),this.#inject(G)['then'](()=>{this.#watchers['injected']['resolve']();})['catch'](o=>{this.#watchers['injected']['reject'](o);if(o instanceof AbortError)log('injectionAborted',{'targetId':G['targetId'],'error':o});else error('injectionFailed',{'targetId':G['targetId'],'error':o});})['finally'](()=>nextTick(()=>this['uncork']())),this['on']('outgoingMessage',async({name:o,payload:W,filter:U})=>{try{await this['execute']((u,p,E)=>{const B=globalThis,t=B['ports']?.[u];if(t)setTimeout(()=>t['dispatchEvent'](new B['PortIncommingMessageEvent'](p,E)),0x0);},[this['name'],o,W],{'filter':U});}catch(u){error('injectionPortSendFailed',{'portName':this['name'],'messageName':o,'error':u});}});}*['targets'](){yield*this.#targets['values']();}async['wait'](G){await this.#watchers[G];}async['execute'](G,m,Y){let I=Array['from'](this.#evaluators['values']());if(Y?.['filter'])I=I['filter'](Y['filter']);return Promise['all'](I['map'](c=>c['execute'](G,m,Y)));}async['evaluate'](G,m){let Y=Array['from'](this.#evaluators['values']());if(m?.['filter'])Y=Y['filter'](m['filter']);return Promise['all'](Y['map'](I=>I['evaluate'](G,m)));}['send'](G,m,Y){this['dispatch'](new InjectionOutgoingMessageEvent(G,m,Y));}},InjectionTargetAttachedEvent=class extends Event{['target'];constructor(G){super('evaluatorAttached'),this['target']=G;}},InjectionEvaluatorAttachedEvent=class extends Event{['evaluator'];constructor(G){super('evaluatorAttached'),this['evaluator']=G;}},InjectionOutgoingMessageEvent=class extends Event{['name'];['payload'];['filter'];constructor(G,m,Y){super('outgoingMessage'),this['name']=G,this['payload']=m,this['filter']=Y?.['filter'];}},InjectionIncommingMessageEvent=class extends Event{['evaluator'];['name'];['payload'];constructor(G,m,Y){super('incommingMessage'),this['evaluator']=G,this['name']=m,this['payload']=Y;}};function makeRequestsTracker(){return new RequestsTracker();}var RequestsTracker=class{#requestsWatchers=new Map();#allDoneWatcher=makeWatcher();get['pending'](){return this.#allDoneWatcher['settled'];}get[Symbol['toStringTag']](){return'RequestTracker';}constructor(){this.#allDoneWatcher['resolve']();}async['wait'](){await this.#allDoneWatcher;}['track'](G,m){this.#requestsWatchers['set'](G,m);if(this.#allDoneWatcher['settled'])this.#allDoneWatcher['reset']();m['finally'](()=>{if(this.#requestsWatchers['get'](G)===m)this['untrack'](G);});}['untrack'](G){const m=this.#requestsWatchers['delete'](G);if(m&&this.#requestsWatchers['size']===0x0)this.#allDoneWatcher['resolve']();return m;}['resolveBy'](G){this.#requestsWatchers['get'](G)?.['resolve']();}['debounceBy'](G,m){this.#requestsWatchers['get'](G)?.['resolve'](void 0x0,{'delay':m,'key':'debounce'});}};function makeIntercepted(G){if(G['intercepted']['responseStatusCode']===void 0x0&&G['intercepted']['responseErrorReason']===void 0x0)return makeInterceptedRequest(G);return makeInterceptedResponse(G);}var Intercepted=class{['_handled']=![];['target'];['frame'];['requestId'];['stage'];['resource'];constructor({target:G,intercepted:m}){this['target']=G,this['frame']=G['browser']['frameManager']['get'](m['frameId']),this['requestId']=m['requestId'],this['resource']=m['resourceType'],this['stage']=m['responseStatusCode']===void 0x0&&m['responseErrorReason']===void 0x0?'request':'response';}get['handled'](){return this['_handled'];}async['fulfill']({status:G,headers:m,body:Y}){await this['target']['connection']['execute']('Fetch.fulfillRequest',{'requestId':this['requestId'],'responseCode':G,'responseHeaders':m&&Object['entries'](m)['map'](([I,c])=>({'name':I,'value':c})),'body':Y&&O['from'](Y)['toString']('base64')}),this['_handled']=!![];}};function makeInterceptedRequest(G){return new InterceptedRequest(G);}var InterceptedRequest=class extends Intercepted{#networkId;#body;['stage']='request';['url'];['method'];['headers'];constructor({target:G,intercepted:m}){super({'target':G,'intercepted':m}),this['url']=m['request']['url']+(m['request']['urlFragment']??''),this['method']=m['request']['method'],this['headers']=m['request']['headers'],this.#networkId=m['networkId'];if(!m['request']['hasPostData'])this.#body=new Uint8Array();else{if(m['request']['postDataEntries']?.['length'])this.#body=O['concat'](m['request']['postDataEntries']['map'](Y=>O['from'](Y['bytes']??'','base64')));}}async['continue']({headers:G,url:m,method:Y,body:I,interceptResponse:c}={}){await this['target']['connection']['execute']('Fetch.continueRequest',{'requestId':this['requestId'],'headers':G&&Object['entries'](G)['map'](([o,W])=>({'name':o,'value':W})),'url':m,'method':Y,'postData':I!==void 0x0?O['from'](I)['toString']('base64'):void 0x0,'interceptResponse':c}),this['_handled']=!![];}async['body'](){if(this.#body)return this.#body;if(this.#networkId){const {postData:G}=await this['target']['connection']['execute']('Network.getRequestPostData',{'requestId':this.#networkId});return new TextEncoder()['encode'](G);}return new Uint8Array();}};function makeInterceptedResponse(G){return new InterceptedResponse(G);}var InterceptedResponse=class extends Intercepted{#consumed=![];['stage']='response';['request'];['status'];['error'];['headers'];['body'];constructor({target:G,intercepted:m}){if(m['responseStatusCode']===void 0x0&&m['responseErrorReason']===void 0x0)throw new Error('InterceptedResponse\x20requires\x20a\x20response-stage\x20Fetch\x20event');super({'target':G,'intercepted':m}),this['status']=m['responseStatusCode']??-0x1,this['error']=m['responseErrorReason'],this['headers']=Object['fromEntries']((m['responseHeaders']??[])['map'](({name:Y,value:I})=>[Y,I])),this['request']=makeInterceptedRequest({'target':G,'intercepted':m}),this['body']=makeRemoteStream(this['target']['connection'],async()=>{this.#assertNotConsumed('body'),this.#consumed=!![];const {stream:Y}=await this['target']['connection']['execute']('Fetch.takeResponseBodyAsStream',{'requestId':this['requestId']});return Y;});}async['continue'](){await this['target']['connection']['execute']('Fetch.continueResponse',{'requestId':this['requestId']}),this['_handled']=!![];}async['arrayBuffer'](){this.#assertNotConsumed('arrayBuffer'),this.#consumed=!![];const {body:G,base64Encoded:m}=await this['target']['connection']['execute']('Fetch.getResponseBody',{'requestId':this['requestId']}),Y=m?O['from'](G,'base64'):O['from'](G,'utf8');return new Uint8Array(Y)['buffer'];}async['base64'](){this.#assertNotConsumed('base64'),this.#consumed=!![];const {body:G,base64Encoded:m}=await this['target']['connection']['execute']('Fetch.getResponseBody',{'requestId':this['requestId']});return m?G:O['from'](G,'utf8')['toString']('base64');}#assertNotConsumed(G){if(this.#consumed)throw new BodyConsumedError({'accessor':G});}};function makeInterceptionPatternMatcher(G){const m=[];if(G['url'])m['push'](Y=>G['url']['test'](Y['request']['url']+(Y['request']['urlFragment']??'')));if(G['resource'])m['push'](Y=>G['resource']['includes'](Y['resourceType']));if(G['stage'])m['push'](Y=>G['stage']['includes'](Y['responseStatusCode']===void 0x0&&Y['responseErrorReason']===void 0x0?'request':'response'));return Y=>m['every'](I=>I(Y));}function toCDPPattern(G){const m=G['resource']??[void 0x0],Y=G['stage']??['request'],I=[];for(const c of m)for(const o of Y)I['push']({'urlPattern':'*',...c&&{'resourceType':c},'requestStage':o==='response'?'Response':'Request'});return I;}var StylesheetHandle=class{['stylesheetId'];['frame'];['url'];['inline'];['constructed'];constructor({stylesheetId:G,frame:m,url:Y,inline:I,constructed:c}){this['stylesheetId']=G,this['frame']=m,this['url']=Y,this['inline']=I,this['constructed']=c;}async['text'](){const {text:G}=await this['frame']['target']['connection']['execute']('CSS.getStyleSheetText',{'styleSheetId':this['stylesheetId']});return G;}};function makeTarget(G){return new Target(G);}var Target=class extends EventTargetNode{#connection;#browser;#evaluator;#url;#title;#mode='normal';#filepickersHidden=![];#loaders=new Map();#dialog=null;#injections=new Map();#visible=void 0x0;#controller=new AbortController();#watchers={'attached':makeWatcher(),'initialized':makeWatcher(),'navigated':makeWatcher({'hint':'chrome'}),'dialogOpened':makeWatcher(),'windowResolved':makeWatcher()};#window;#requestsTracker=makeRequestsTracker();#requestInterceptors=new Set();#filepickerHandlers=new Set();async #initialize(G){try{this.#connection=makeConnection({'socket':this.#browser['connection']['socket'],'signal':this.#controller['signal'],'sessionId':G}),this.#watchers['attached']['resolve'](),await setImmediate();if(this['mainFrame'])this['dispatch'](new TargetMainFrameReadyEvent(this['mainFrame']));this['kind']==='renderer'&&(this.#handleExistentFrames()['catch'](m=>{error('framesExtractionFailed',{'targetId':this['targetId'],'error':m});}),this.#resolveWindow()['catch'](m=>{error('windowResolutionFailed',{'targetId':this['targetId'],'error':m}),this.#watchers['windowResolved']['reject'](m);}),this['connection']['on']('Overlay.inspectNodeRequested',async({backendNodeId:m})=>{if(this.#mode==='element\x20selection')this['dispatch'](new TargetElementSelectedEvent(await this['resolve']({'nodeId':m})));}),this['connection']['on']('Page.frameAttached',({frameId:m,parentFrameId:Y})=>{if(this.#browser['frameManager']['has'](m)){log('frameAttached',{'frameId':m,'parentFrameId':Y,'reattached':!![]});const I=this.#browser['frameManager']['get'](m);I['dispatch'](new FrameSwappingEvent()),I['dispatch'](new FrameSwappedEvent(this));}else{log('frameAttached',{'frameId':m,'parentFrameId':Y,'reattached':![]});const c=makeFrame({'target':this,'frameId':m,'parentFrameId':Y});this.#browser['frameManager']['add'](c),this['dispatch'](new TargetFrameAttachedEvent(c));}}),this['connection']['on']('Page.frameDetached',({frameId:m,reason:Y})=>{const I=this.#browser['frameManager']['get'](m);if(Y==='remove'){log('frameRemoved',{'frameId':m});if(!I)throw new Error('Frame\x20with\x20id\x20\x22'+m+'\x22\x20is\x20removed\x20but\x20the\x20frame\x20wasn\x27t\x20found');I['dispatch'](new FrameDestroyedEvent()),this.#browser['frameManager']['delete'](m);}else{if(Y==='swap'){log('frameSwapped',{'frameId':m,'ownTargetFound':!![]});if(!I)throw new Error('Frame\x20with\x20id\x20\x22'+m+'\x22\x20is\x20swapped\x20but\x20the\x20frame\x20wasn\x27t\x20found');const c=this.#browser['targetManager']['get'](m);if(!c)return log('frameSwapped',{'frameId':m,'ownTargetFound':![]});I['dispatch'](new FrameSwappedEvent(c));}}}),this['connection']['on']('Page.frameRequestedNavigation',async({frameId:m,reason:Y,url:I})=>{log('frameNavigationRequested',{'frameId':m,'url':I,'reason':Y});const c=this.#browser['frameManager']['get'](m);if(!c)throw new Error('Frame\x20with\x20id\x20\x22'+m+'\x22\x20requested\x20navigation\x20but\x20the\x20frame\x20wasn\x27t\x20found');c['dispatch'](new FrameNavigatingEvent({'url':I,'reason':Y}));}),this['connection']['on']('Page.frameNavigated',({frame:{id:m,url:Y,loaderId:I},type:c})=>{log('frameNavigated',{'frameId':m,'url':Y,'navigationType':c});const o=this.#browser['frameManager']['get'](m);if(!o)throw new Error('Frame\x20with\x20id\x20\x22'+m+'\x22\x20is\x20navigated\x20but\x20the\x20frame\x20wasn\x27t\x20found');this.#browser['frameManager']['deleteDescendants'](m),o['dispatch'](new FrameNavigatedEvent({'url':Y,'reason':c==='Navigation'?'remote':'restoration','loaderId':I}));}),this['connection']['on']('Page.navigatedWithinDocument',({frameId:m,url:Y})=>{log('frameNavigatedWithinDocument',{'frameId':m,'url':Y});const I=this.#browser['frameManager']['get'](m);if(!I)throw new Error('Frame\x20with\x20id\x20\x22'+m+'\x22\x20is\x20navigated\x20within\x20document\x20but\x20the\x20frame\x20wasn\x27t\x20found');I['dispatch'](new FrameNavigatedEvent({'url':Y,'reason':'local','loaderId':''}));}),this['connection']['on']('Page.frameStartedLoading',({frameId:m})=>{log('frameLoadingStarted',{'frameId':m});const Y=this.#browser['frameManager']['get'](m);if(!Y)throw new Error('Frame\x20with\x20id\x20\x22'+m+'\x22\x20started\x20loading\x20but\x20the\x20frame\x20wasn\x27t\x20found');Y['dispatch'](new FrameLifecycleEvent('loading'));}),this['connection']['on']('Page.frameStoppedLoading',({frameId:m})=>{log('frameLoadingStopped',{'frameId':m});const Y=this.#browser['frameManager']['get'](m);if(!Y)throw new Error('Frame\x20with\x20id\x20\x22'+m+'\x22\x20stopped\x20loading\x20but\x20the\x20frame\x20wasn\x27t\x20found');Y['dispatch'](new FrameLifecycleEvent('loaded'));}),this['connection']['on']('Page.lifecycleEvent',({frameId:m,name:Y})=>{log('frameLifecycleEvent',{'frameId':m,'name':Y});const I=this.#browser['frameManager']['get'](m);if(!I)throw new Error('Frame\x20with\x20id\x20\x22'+m+'\x22\x20fired\x20a\x20lifecycle\x20event\x20but\x20the\x20frame\x20wasn\x27t\x20found');if(Y==='load'&&!this.#watchers['initialized']['settled'])I['dispatch'](new FrameLifecycleEvent('loaded'));else{if(Y==='networkAlmostIdle')I['dispatch'](new FrameLifecycleEvent('networkAlmostIdle'));else{if(Y==='networkIdle')I['dispatch'](new FrameLifecycleEvent('networkIdle'));}}}),this['connection']['on']('Page.javascriptDialogOpening',({type:m,message:Y})=>{log('dialogOpened',{'dialogType':m,'message':Y}),this.#dialog=makeBlockingDialog({'target':this,'type':m,'message':Y}),this.#watchers['dialogOpened']['resolve'](),this['dispatch'](new TargetDialogEvent('opened',this.#dialog));}),this['connection']['on']('Page.javascriptDialogClosed',({result:m,userInput:Y})=>{log('dialogClosed',{}),this.#watchers['dialogOpened']['reset'](),this['dispatch'](new TargetDialogEvent('closed',this.#dialog,{'result':m,'value':Y})),this.#dialog=null;}),this['connection']['on']('Page.fileChooserOpened',async({frameId:m,backendNodeId:Y,mode:I})=>{log('filepickerOpened',{'frameId':m});const c=this.#browser['frameManager']['get'](m);if(!c)throw new Error('Filepicker\x20dialog\x20opened\x20in\x20frame\x20with\x20id\x20\x22'+m+'\x22\x20but\x20the\x20frame\x20wasn\x27t\x20found');const o=Y?await c['resolve']({'nodeId':Y}):await c['defaultExecute'](()=>globalThis['__mockFilepicker']),W=I==='selectMultiple',U=await o?.['execute'](u=>u['accept'])??'';this.#dialog=makeFilepickerDialog({'frame':c,'element':o,'multiple':W,'accept':U}),this.#dialog['once']('handled',()=>this.#dialog=null);if(this.#filepickerHandlers['size']>0x0)for(const u of this.#filepickerHandlers){await u(this.#dialog);if(this.#dialog['handled'])break;}else this.#watchers['dialogOpened']['resolve'](),this['dispatch'](new TargetFilepickerDialogEvent(this.#dialog));}),this['connection']['on']('Page.windowOpen',async()=>{log('childTargetCreated',{'targetId':this['targetId']}),this['dispatch'](new TargetChildTargetCreatingEvent());}),this['connection']['on']('CSS.styleSheetAdded',({header:m})=>{if(m['origin']==='user-agent'||m['origin']==='inspector')return;const Y=this.#browser['frameManager']['get'](m['frameId']);if(!Y)return;Y['addStylesheet'](new StylesheetHandle({'stylesheetId':m['styleSheetId'],'frame':Y,'url':m['sourceURL'],'inline':m['isInline'],'constructed':m['isConstructed']}));}),this['connection']['on']('CSS.styleSheetRemoved',({styleSheetId:m})=>{for(const Y of this['frames']())if(Y['removeStylesheet'](m))break;})),this['connection']['on']('Target.attachedToTarget',async({sessionId:m,targetInfo:Y})=>{log('targetAttached',{'targetId':Y['targetId'],'targetType':Y['type'],'parentTargetId':this['targetId'],'sessionId':m});if(Y['type']==='worker'){await makeConnection({'socket':this.#browser['connection']['socket'],'sessionId':m})['execute']('Runtime.runIfWaitingForDebugger')['catch'](I=>{error('workerResumeFailed',{'targetId':Y['targetId'],'error':I});});return;}this.#browser['targetManager']['get'](Y['targetId'])?.['dispatch'](new TargetAttachedEvent(m));}),this['connection']['on']('Runtime.executionContextCreated',({context:m})=>{if(m['auxData']?.['frameId']){log('executionContextCreated',{'contextId':m['id'],'contextName':m['name'],'frameId':m['auxData']['frameId']});const Y=this['browser']['frameManager']['get'](m['auxData']['frameId']);if(!Y)throw new Error('Execution\x20context\x20with\x20id\x20\x22'+m['id']+'\x22\x20and\x20name\x20\x22'+m['name']+'\x22\x20is\x20created\x20for\x20frame\x20with\x20id\x20\x22'+m['auxData']['frameId']+'\x22\x20but\x20the\x20frame\x20wasn\x27t\x20found');const I=makeEvaluator({'frame':Y,'name':m['name'],'evaluatorId':m['id'],'type':m['auxData']['type']});Y['dispatch'](new FrameEvaluatorAttached(I));}else log('executionContextCreated',{'contextId':m['id'],'targetId':this['targetId']}),this.#evaluator=makeEvaluator({'target':this,'name':m['name'],'evaluatorId':m['id'],'type':'default'});}),this['connection']['on']('Network.requestWillBeSent',({loaderId:m,frameId:Y,requestId:I,type:c,request:o,hasUserGesture:W})=>{if(c==='Document')log('requestSent',{'frameId':Y,'url':o['url'],'kind':'navigation','resourceType':c});else{if(o['url']['startsWith']('blob:'))log('requestSent',{'frameId':Y,'url':o['url'],'kind':'blob','resourceType':c});else{if(W){const u=!isNonBlockingRequest(c,o['url']);log('requestSent',{'targetId':this['targetId'],'url':o['url'],'kind':'userInitiated','resourceType':c,'tracked':u});if(u)this.#requestsTracker['track'](I,makeWatcher()['resolve'](void 0x0,{'delay':0x9c40}));}else{if(Y){const p=this.#browser['frameManager']['get'](Y);if(p&&Date['now']()-p['navigatedAt']<0xbb8){const E=!isNonBlockingRequest(c,o['url']);log('requestSent',{'frameId':Y,'url':o['url'],'kind':'frameSubresource','resourceType':c,'tracked':E});if(E)this.#requestsTracker['track'](I,makeWatcher()['resolve'](void 0x0,{'delay':0x2710}));}}}}}let U=this.#loaders['get'](m);if(!U){if(Y){const B=this.#browser['frameManager']['get'](Y);if(!B)throw new Error('Frame\x20with\x20id\x20\x22'+Y+'\x22\x20received\x20a\x20response\x20but\x20the\x20frame\x20wasn\x27t\x20found');U=makeLoader({'loaderId':m,'frame':B});}else U=makeLoader({'loaderId':m});this.#loaders['set'](m,U);}U['dispatch'](new LoaderRequestEvent(o,{'requestId':I,'resource':c??'Other'}));}),this['connection']['on']('Network.responseReceived',({loaderId:m,frameId:Y,requestId:I,type:c,response:o})=>{let W=this.#loaders['get'](m);if(!W){if(Y){const p=this.#browser['frameManager']['get'](Y);if(!p)throw new Error('Frame\x20with\x20id\x20\x22'+Y+'\x22\x20received\x20a\x20response\x20but\x20the\x20frame\x20wasn\x27t\x20found');W=makeLoader({'loaderId':m,'frame':p});}else W=makeLoader({'loaderId':m});this.#loaders['set'](m,W);}W['dispatch'](new LoaderResponseEvent(o,{'requestId':I,'resource':c}));const U=[/^text\/event-stream$/,/^application\/octet-stream$/,/video\/*/],u=o['headers']['content-type']||'';if(U['some'](E=>E['test'](u)))this.#requestsTracker['resolveBy'](I);else this.#requestsTracker['debounceBy'](I,0xbb8);}),this['connection']['on']('Network.dataReceived',({requestId:m})=>{this.#requestsTracker['debounceBy'](m,0xbb8);}),this['connection']['on']('Network.loadingFinished',({requestId:m})=>{this.#requestsTracker['resolveBy'](m);}),this['connection']['on']('Network.loadingFailed',({requestId:m})=>{this.#requestsTracker['resolveBy'](m);}),this['connection']['on']('Fetch.requestPaused',async m=>{const Y=makeIntercepted({'target':this,'intercepted':m});for(const {matchers:I,handler:c}of this.#requestInterceptors){if(!I['some'](o=>o(m)))continue;await c(Y);if(Y['handled'])return;}await Y['continue']();}),await Promise['all']([this['kind']==='renderer'&&this['connection']['execute']('Page.enable',{'enableFileChooserOpenedEvent':!![]}),this['kind']==='renderer'&&this['connection']['execute']('Page.setLifecycleEventsEnabled',{'enabled':!![]}),this['connection']['execute']('Network.enable'),this['connection']['execute']('Runtime.enable'),this['kind']==='renderer'&&this['connection']['execute']('DOM.enable'),this['kind']==='renderer'&&this['connection']['execute']('Overlay.enable'),this['kind']==='renderer'&&this['connection']['execute']('CSS.enable'),this['kind']==='renderer'&&this['connection']['execute']('Target.setAutoAttach',{'autoAttach':!![],'flatten':!![],'filter':[{'type':'page'},{'type':'iframe'},{'type':'worker'}],'waitForDebuggerOnStart':!![]}),this['connection']['execute']('Runtime.runIfWaitingForDebugger')]);}catch(m){if(m instanceof AbortError)log('targetInitAborted',{'targetId':this['targetId'],'error':m});else throw m;}this.#watchers['initialized']['resolve']();if(!this.#browser['headless']&&this['kind']==='renderer'&&this['type']!=='iframe')this.#trackVisibility()['catch'](Y=>{error('visibilityTrackingFailed',{'targetId':this['targetId'],'error':Y});});this.#mockProgrammaticFilepickers()['catch'](Y=>{error('filepickerMockingFailed',{'targetId':this['targetId'],'error':Y});});if(this['kind']==='renderer')this['hideFilepickers'](this.#browser['filepickersHidden']);}async #resolveWindow(){const {windowId:G}=await this.#browser['connection']['execute']('Browser.getWindowForTarget',{'targetId':this['targetId']});this.#window=this.#browser['windowManager']['getOrCreate']({'windowId':G,'browser':this.#browser}),this.#window['dispatch'](new WindowTargetAttachedEvent(this)),this.#watchers['windowResolved']['resolve']();}async #handleExistentFrames(){const {frameTree:G}=await this['connection']['execute']('Page.getFrameTree'),m=[G];for(let Y=0x0;Y<m['length'];++Y){const I=m[Y];if(!this.#browser['frameManager']['has'](I['frame']['id'])){const c=makeFrame({'target':this,'frameId':I['frame']['id'],'parentFrameId':I['frame']['parentId']??null});this.#browser['frameManager']['add'](c),this['dispatch'](new TargetFrameAttachedEvent(c));if(c['frameId']===this['targetId'])this['dispatch'](new TargetMainFrameReadyEvent(this['mainFrame']));}if(I['childFrames'])m['push'](...I['childFrames']);}}async #trackVisibility(){const G=await this['inject'](visibilityTracker,{'name':'visibility_tracker','deep':![]});this.#visible=![],G['on']('incommingMessage',({name:m,payload:Y})=>{if(m==='visibilityChanged'){log('targetVisibilityChanged',{'targetId':this['targetId'],'visibility':Y});const I=Y==='visible';this.#visible!==I&&(this.#visible=I,this['dispatch'](new TargetVisibilityChangeEvent(Y)));}}),this['on']('childTargetCreating',async()=>G['send']('childTargetCreating',void 0x0));}async #mockProgrammaticFilepickers(){await this['inject'](filepickerMocker,{'name':'filepicker_mocker','isolated':![]});}['targetId'];['type'];['kind'];['createdAt']=Date['now']();['parent'];['debugger']=makeDebugger({'target':this});['mouse']=makeMouse({'target':this});['keyboard']=makeKeyboard({'target':this});get['initialized'](){return this.#watchers['initialized']['settled'];}get['attached'](){return!!this.#connection;}get['navigated'](){return this.#watchers['initialized']['settled']&&this.#watchers['navigated']['settled'];}get['stable'](){return this.#watchers['initialized']['settled']&&this.#watchers['navigated']['settled']&&(this['mainFrame']['stable']||this.#watchers['dialogOpened']['settled']);}get['pendingRequests'](){return this.#requestsTracker['pending'];}get['download'](){const G=this['mainFrame']['response']?.['headers']??{};return!!(Object['entries'](G)['find'](([m])=>m['toLowerCase']()==='content-disposition')?.[0x1])?.['startsWith']('attachment');}get['visible'](){return this.#visible;}get['mode'](){return this.#mode;}get['title'](){return this.#title;}get['url'](){return this.#url;}get['connection'](){return this.#connection;}get['browser'](){return this.#browser;}get['window'](){return this.#window;}get['popup'](){return!!this['parent']&&this['window']!==this['parent']['window'];}get['mainFrame'](){return this.#browser['frameManager']['get'](this['targetId']);}get['dialog'](){return this.#dialog;}get['injections'](){return Object['fromEntries'](this.#injections['entries']());}constructor({browser:G,parent:m,targetId:Y,type:I,url:c,title:o}){super(),this.#browser=G,this.#url=c,this.#title=o,this['parent']=m,this['targetId']=Y,this['type']=I,this['kind']=I==='page'||I==='iframe'||I==='other'&&c['startsWith']('devtools:')?'renderer':'worker';if(this['type']==='page'){const W=makeFrame({'target':this,'frameId':this['targetId'],'parentFrameId':null});this.#browser['frameManager']['add'](W);}else{if(this['type']==='iframe'){const U=this.#browser['frameManager']['get'](this['targetId']);if(U){const u=U['target'];U['dispatch'](new FrameSwappingEvent()),this['on']('detached',()=>U['dispatch'](new FrameSwappedEvent(u)));}}}if(this.#browser['headless'])this.#visible=!![];this['on']('attached',({sessionId:p})=>{this.#initialize(p);}),this['on']('changed',({url:p,title:E})=>{this.#url=p,this.#title=E;}),this['on']('closed',()=>{this.#controller['abort'](new AbortError('Target\x20with\x20id\x20\x22'+this['targetId']+'\x22\x20and\x20of\x20type\x20\x22'+this['type']+'\x22\x20is\x20closed\x20in\x20the\x20middle\x20of\x20operation'));if(this.#window)this.#window['dispatch'](new WindowTargetDetachedEvent(this));}),this['on']('dialogOpened',()=>{this['connection']['flush'](new FlushError('Target\x20with\x20id\x20\x22'+this['targetId']+'\x22\x20and\x20of\x20type\x20\x22'+this['type']+'\x22\x20is\x20blocked\x20due\x20to\x20dialog\x20opening'));}),this['on']('mainFrameReady',()=>{this['mainFrame']['on']('navigating',({reason:p})=>{this.#watchers['navigated']['reset']({'hint':p==='unknown'?'chrome':p==='programmatic'?'programmatic':'page'});}),this['mainFrame']['on']('navigated',({url:p,reason:E})=>{this.#watchers['navigated']['resolve']();const B=this.#url;this.#url=p;if(E==='local')this['dispatch'](new TargetNavigatedEvent({'from':B,'to':p,'reason':'page'}));else{if(p!=='chrome-error://chromewebdata/')this['dispatch'](new TargetNavigatedEvent({'from':B,'to':p,'reason':this.#watchers['navigated']['hint']}));}}),this['mainFrame']['on']('loading',()=>{}),this['mainFrame']['on']('loaded',()=>{this.#watchers['navigated']['resolve']();});}),this['on']('frameTargetCreated',({target:p})=>{p['on']('filepickerDialogOpened',({dialog:E})=>this['dispatch'](new TargetFilepickerDialogEvent(E)));});}*['frames'](){if(this.#controller['signal']['aborted'])return;yield*this.#browser['frameManager']['getFramesIterator'](this['targetId']);}*['targets'](){yield*this['frames']()['filter'](G=>G['frameId']!==this['targetId']&&G['isOutOfProcess'])['map'](G=>G['target']);}async['wait'](G,{signal:m}={}){if(G==='stable')await abortable(this.#watchers['initialized'],m),this['kind']==='renderer'&&(await abortable(this.#watchers['navigated'],m),await abortable(Promise['race']([this['mainFrame']['wait']('stable'),this.#watchers['dialogOpened']]),m));else{if(G==='pendingRequests')await abortable(this.#requestsTracker['wait'](),m);else await abortable(this.#watchers[G],m);}}async['activate'](){if(this['type']!=='page')throw new Error('Only\x20page\x20target\x20could\x20be\x20activated');this['dispatch'](new TargetActivatingEvent()),await this['connection']['execute']('Page.bringToFront');if(this.#browser['headless'])this['dispatch'](new TargetActivatedEvent({'reason':'programmatic'}));}async['emulate']({viewport:G,scale:scale=0x1,mobile:mobile=![]}){return this['connection']['execute']('Emulation.setDeviceMetricsOverride',{...G,'deviceScaleFactor':scale,'mobile':mobile});}async['getViewportSize'](){if(this['kind']!=='renderer')throw new Error('Can\x27t\x20get\x20a\x20viewport\x20size\x20of\x20a\x20non-renderer\x20target');const {offsetX:G,offsetY:m}=await this['mainFrame']['execute'](()=>{return{'offsetX':innerWidth-Math['round'](visualViewport['width']),'offsetY':innerHeight-Math['round'](visualViewport['height'])};}),{cssVisualViewport:Y}=await this['connection']['execute']('Page.getLayoutMetrics'),{clientWidth:I,clientHeight:c,scale:scale=0x1,zoom:zoom=0x1}=Y;return{'width':Math['round']((I+G)*zoom*scale),'height':Math['round']((c+m)*zoom*scale)};}async['captureScreenshot'](G){if(this['kind']!=='renderer')throw new Error('Can\x27t\x20capture\x20screenshot\x20of\x20a\x20non-renderer\x20target');return await this['connection']['execute']('Emulation.setVisibleSize',await this['getViewportSize']()),(await this['connection']['execute']('Page.captureScreenshot',G??{'format':'png'}))['data'];}async['execute'](G,m,Y){await this['wait']('stable');if(this['kind']==='renderer')throw new Error('Can\x27t\x20execute\x20script\x20in\x20renderer\x20target,\x20use\x20target\x27s\x20main\x20frame\x20instead');return this.#evaluator['execute'](G,m,Y);}async['evaluate'](G,m){if(this['kind']==='renderer')throw new Error('Can\x27t\x20evaluate\x20expression\x20in\x20renderer\x20target,\x20use\x20target\x27s\x20main\x20frame\x20instead');return await this['wait']('stable'),this.#evaluator['evaluate'](G,m);}async['resolve'](G){if(this['kind']!=='renderer')throw new Error('Can\x27t\x20resolve\x20node\x20with\x20a\x20non-renderer\x20target');for(const m of this['frames']()){const Y=await m['resolve'](G);if(Y)return Y;}throw new Error('Cannot\x20resolve\x20node\x20by\x20backend\x20id\x20\x22'+G['nodeId']+'\x22\x20in\x20target\x20with\x20id\x20\x22'+this['targetId']+'\x22');}async['resolveFromLocation'](G,{ignorePointerEventsNone:ignorePointerEventsNone=!![]}={}){if(this['kind']!=='renderer')throw new Error('Can\x27t\x20resolve\x20node\x20with\x20a\x20non-renderer\x20target');try{const {frameId:m,...Y}=await this['connection']['execute']('DOM.getNodeForLocation',{'x':Math['round'](G['x']),'y':Math['round'](G['y']),'ignorePointerEventsNone':ignorePointerEventsNone,'includeUserAgentShadowDOM':![]}),I=this['browser']['frameManager']['get'](m);if(!I)throw new Error('Frame\x20with\x20id\x20\x22'+m+'\x22\x20resolved\x20a\x20node\x20but\x20the\x20frame\x20wasn\x27t\x20found');return await I['resolve']({'nodeId':Y['backendNodeId']});}catch(c){return error('nodeResolutionFailed',{'error':c}),null;}}async['port'](G){if(this['kind']==='renderer')throw new Error('Can\x27t\x20create\x20a\x20port\x20to\x20renderer\x20target,\x20use\x20target\x27s\x20main\x20frame\x20instead');return this.#evaluator['port'](G);}async['filepicker'](G){const m=[];try{this.#filepickerHandlers['size']===0x0&&(await this['wait']('initialized'),await this['hideFilepickers'](!![])),this.#filepickerHandlers['add'](G),this.#controller['signal']['throwIfAborted'](),m['push'](this['on']('frameTargetCreated',async({target:Y})=>m['push'](await Y['filepicker'](G)))),m['push'](...await Promise['all'](Array['from'](this['targets'](),Y=>Y['filepicker'](G))));}catch(Y){if(Y instanceof AbortError)log('filepickerSetupAborted',{'targetId':this['targetId'],'error':Y});else throw Y;}return()=>{this.#filepickerHandlers['delete'](G),m['forEach'](I=>I());if(this.#filepickerHandlers['size']===0x0)this['hideFilepickers'](![]);};}async['intercept'](G,m){const Y=m??G,I=m?Array['isArray'](G)?G:[G]:[{'stage':['request']}],c={'matchers':I['map'](W=>makeInterceptionPatternMatcher(W)),'patterns':I['flatMap'](W=>toCDPPattern(W)),'handler':Y},o=[];try{this.#requestInterceptors['add'](c),await this['wait']('attached'),this['connection']['send']('Fetch.enable',{'patterns':Array['from'](this.#requestInterceptors)['flatMap'](({patterns:W})=>W)}),this.#controller['signal']['throwIfAborted'](),await this['wait']('initialized'),o['push'](this['on']('frameTargetCreated',async({target:W})=>o['push'](await W['intercept'](I,Y)))),o['push'](...await Promise['all'](Array['from'](this['targets'](),W=>W['intercept'](I,Y))));}catch(W){if(W instanceof AbortError)log('interceptorSetupAborted',{'targetId':this['targetId'],'error':W});else throw W;}return()=>{this.#requestInterceptors['delete'](c),o['forEach'](U=>U());if(this.#requestInterceptors['size']===0x0)this['connection']['send']('Fetch.disable');else this['connection']['send']('Fetch.enable',{'patterns':Array['from'](this.#requestInterceptors)['flatMap'](({patterns:U})=>U)});};}async['navigateThroughHistory'](G){if(this['kind']!=='renderer')throw new Error('Can\x27t\x20navigate\x20a\x20non-renderer\x20target');const {currentIndex:m,entries:Y}=await this['connection']['execute']('Page.getNavigationHistory'),I=Y[m+G];if(!I)throw new NoHistoryEntryError({'offset':G});this['mainFrame']['dispatch'](new FrameNavigatingEvent({'url':I['url'],'reason':'programmatic'})),this.#watchers['navigated']['reset']({'hint':'programmatic'}),await this['connection']['execute']('Page.navigateToHistoryEntry',{'entryId':I['id']});}async['navigate'](G,{timeout:m}={}){if(this['kind']!=='renderer')throw new Error('Can\x27t\x20navigate\x20a\x20non-renderer\x20target');if(!this.#watchers['navigated']['settled'])await Promise['allSettled']([this.#watchers['navigated']]);this['mainFrame']['dispatch'](new FrameNavigatingEvent({'url':G,'reason':'programmatic'})),this.#watchers['navigated']['reset']({'hint':'programmatic'});if(m)this.#watchers['navigated']['reject'](new NavigationTimedOutError({'url':G,'timeout':m}),{'delay':m});const Y=new AbortController();this.#watchers['navigated']['catch'](c=>Y['abort'](c));const {errorText:I}=await this['connection']['execute']('Page.navigate',{'url':G},{'signal':Y['signal']});if(I){if(I==='net::ERR_INVALID_AUTH_CREDENTIALS')this.#watchers['navigated']['resolve']();else{if(I==='net::ERR_ABORTED'&&[0xcc,0xcd]['includes'](this['mainFrame']['response']['status']))this.#watchers['navigated']['resolve']();else this.#watchers['navigated']['reject'](new NavigationFailedError({'url':G,'reason':I}));}}return await this.#watchers['navigated'],{'url':G,'status':this['mainFrame']['response']['status'],'headers':this['mainFrame']['response']['headers']};}async['reload']({hard:G}={}){if(this['kind']!=='renderer')throw new Error('Can\x27t\x20navigate\x20a\x20non-renderer\x20target');if(G)await this.#browser['clearCookies']();this['mainFrame']['dispatch'](new FrameNavigatingEvent({'url':this['url'],'reason':'programmatic'})),this.#watchers['navigated']['reset']({'hint':'programmatic'}),await this['connection']['execute']('Page.reload',{'ignoreCache':G}),await this.#watchers['navigated'],await Promise['race']([this['wait']('dialogOpened'),this['mainFrame']['wait']('networkAlmostIdle')]);}async['cancelNavigation'](){if(this['kind']!=='renderer')throw new Error('Can\x27t\x20navigate\x20a\x20non-renderer\x20target');await this['connection']['execute']('Page.stopLoading')['catch'](()=>null);}async['devtools'](G){const {targetId:m}=await this.#browser['connection']['execute']('Target.openDevTools',{'targetId':this['targetId']});await this.#browser['wait']('attachedTargets');const Y=this.#browser['targetManager']['get'](m);if(G?.['panel']){await Y['wait']('stable');const I=AbortSignal['timeout'](0x1388);let c;while(!I['aborted']){c=await Y['mainFrame']['$']('.tabbed-pane>>>[aria-label=\x22'+G['panel']+'\x22\x20i]');if(c){await c['click']();break;}}}return Y;}async['highlight'](G,m){if(G){const Y={'x':Math['round'](G['x']),'y':Math['round'](G['y']),'width':Math['round'](G['width']),'height':Math['round'](G['height']),'color':m?.['color']??{'r':0x6f,'g':0xa8,'b':0xdc,'a':0.66},'outlineColor':m?.['outlineColor']};if(m?.['blink']){const I=0x5;for(let c=0x0;c<I;c++){await this['connection']['execute']('Overlay.highlightRect',Y),await sleep(0xfa),await this['connection']['execute']('Overlay.hideHighlight'),await sleep(0x96);}}else await this['connection']['execute']('Overlay.highlightRect',Y);}else await this['connection']['execute']('Overlay.hideHighlight');}async['bypassCSP'](G=!![]){if(this['kind']!=='renderer')throw new Error('Can\x27t\x20bypass\x20csp\x20of\x20a\x20non-renderer\x20target');await this['connection']['execute']('Page.setBypassCSP',{'enabled':G});}async['getCookies'](){const {cookies:G}=await this['connection']['execute']('Network.getCookies');return G['reduce']((m,{name:Y,value:I})=>m['set'](Y,I),new Map());}async['setCookies'](G){await this['connection']['execute']('Network.setCookies',{'cookies':G});}async['inject'](G,{name:m,deep:Y,isolated:I}={}){if(this['kind']!=='renderer')throw new Error('Can\x27t\x20peform\x20an\x20injection\x20in\x20a\x20non-renderer\x20target');const c=makeInjection({'target':this,'expression':G,'name':m,'deep':Y,'isolated':I});return await c['wait']('injected'),this.#injections['set'](c['name'],c),c;}async['changeMode'](G,m){if(this['kind']!=='renderer')throw new Error('Can\x27t\x20change\x20mode\x20of\x20a\x20non-renderer\x20target');await this['wait']('initialized');if(G==='element\x20selection'){const Y=m?.['color']?{'contentColor':m['color'],'paddingColor':m['color'],'borderColor':m['color'],'shapeColor':m['color']}:{};await this['connection']['execute']('Overlay.setInspectMode',{'mode':'searchForNode','highlightConfig':Y}),this['on']('frameTargetCreated',({target:I})=>{I['on']('elementSelected',({element:c})=>this['dispatch'](new TargetElementSelectedEvent(c)),{'key':'modeChanger'}),I['changeMode'](G,m);},{'key':'modeChanger'}),await Promise['all'](Array['from'](this['targets'](),I=>{return I['on']('elementSelected',({element:c})=>this['dispatch'](new TargetElementSelectedEvent(c)),{'key':'modeChanger'}),I['changeMode'](G,m);}));}else await this['connection']['execute']('Overlay.setInspectMode',{'mode':'none','highlightConfig':{}}),this['off']('modeChanger'),await Promise['all'](Array['from'](this['targets'](),I=>{return I['off']('modeChanger'),I['changeMode'](G);}));this.#mode=G;}async['hideFilepickers'](G=!![]){try{this.#filepickersHidden!==G&&(await this['connection']['execute']('Page.setInterceptFileChooserDialog',{'enabled':G}),this.#filepickersHidden=G);}catch(m){error('filepickerHideFailed',{'error':m});}}async['close'](){this['dispatch'](new TargetClosedEvent()),this['connection']['send']('Target.closeTarget',{'targetId':this['targetId']});}[Symbol['for']('nodejs.util.inspect.custom')](G,m,Y){return'Target\x20'+Y({'targetId':this['targetId'],'type':this['type'],'url':this['url'],'title':this['title']},m);}},TargetAttachedEvent=class extends Event{['sessionId'];constructor(G){super('attached'),this['sessionId']=G;}},TargetDetachedEvent=class extends Event{constructor(){super('detached');}},TargetActivatingEvent=class extends Event{constructor(){super('activating');}},TargetActivatedEvent=class extends Event{['reason'];constructor({reason:G}){super('activated'),this['reason']=G;}},TargetChangedEvent=class extends Event{['url'];['title'];constructor(G){super('changed'),this['url']=G['url'],this['title']=G['title'];}},TargetNavigatedEvent=class extends Event{['from'];['to'];['reason'];constructor({from:G,to:m,reason:Y}){super('navigated'),this['from']=G,this['to']=m,this['reason']=Y;}},TargetClosedEvent=class extends Event{constructor(){super('closed');}},TargetVisibilityChangeEvent=class extends Event{['visibility'];constructor(G){super('visibilityChanged'),this['visibility']=G;}},TargetMainFrameReadyEvent=class extends Event{['frame'];constructor(G){super('mainFrameReady'),this['frame']=G;}},TargetFrameAttachedEvent=class extends Event{['frame'];constructor(G){super('frameAttached'),this['frame']=G;}},TargetFrameTargetCreatedEvent=class extends Event{['target'];constructor(G){super('frameTargetCreated'),this['target']=G;}},TargetDialogEvent=class extends Event{['state'];['dialog'];['result'];['value'];constructor(G,m,Y={}){super('dialog'+(G[0x0]['toUpperCase']()+G['substring'](0x1))),this['state']=G,this['dialog']=m,this['result']=Y['result'],this['value']=Y['value'];}},TargetFilepickerDialogEvent=class extends Event{['dialog'];constructor(G){super('filepickerDialogOpened'),this['dialog']=G;}},TargetChildTargetCreatingEvent=class extends Event{constructor(){super('childTargetCreating');}},TargetElementSelectedEvent=class extends Event{['element'];constructor(G){super('elementSelected'),this['element']=G;}};const browsers=new WeakMap();async function makeBrowser(G){if(G['driver']&&browsers['has'](G['driver']))return browsers['get'](G['driver']);if(G['socket']){const m=new Browser({'socket':G['socket'],'driver':G['driver']});if(G['driver'])browsers['set'](G['driver'],m);return m;}else{if(G['wsDebuggerUrl']){const Y=new Agent()['compose'](c=>{return(o,W)=>{return o['headers']=o['headers']&&Object['fromEntries'](Object['entries'](o['headers'])['filter'](([U])=>U['toLowerCase']()!=='sec-websocket-extensions')),c(o,W);};}),I=new WebSocket(G['wsDebuggerUrl'],{'dispatcher':Y});return await once(I,'open'),makeBrowser({'socket':I,'driver':G['driver']});}else{if(G['debuggerAddress']){const c='http://'+G['debuggerAddress']['replace']('localhost','127.0.0.1'),o=await fetch(c+'/json/version')['catch'](()=>null);if(o?.['status']!==0xc8)throw new Error('Failed\x20to\x20extract\x20websocket\x20debugger\x20url');return makeBrowser({'wsDebuggerUrl':(await o['json']())['webSocketDebuggerUrl']['replace']('localhost','127.0.0.1'),'driver':G['driver']});}else{if(G['driver']){const W=await G['driver']['getCapabilities'](),U=W['get']('se:cdp')?.['replace'](/172.\d+.0.2/,'localhost');if(U)return makeBrowser({'wsDebuggerUrl':U,'driver':G['driver']});return makeBrowser({'debuggerAddress':W['get']('goog:chromeOptions')?.['debuggerAddress']??W['get']('ms:edgeOptions')?.['debuggerAddress']??W['get']('moz:debuggerAddress')??'localhost:9245','driver':G['driver']});}else throw new Error('Cannot\x20create\x20browser\x20-\x20no\x20connection\x20options\x20provided');}}}}var Browser=class extends EventTargetNode{#targets=new Map();#pages=[];#extensions=[];#activePage;#headless;#product;#filepickersHidden=![];#closed=![];#history=makePagesHistory({'browser':this});#watchers={'initialized':makeWatcher(),'attachedTargets':makeWatcher(),'activePage':makeWatcher(),'history':makeWatcher()};async #initialize(){on(this['connection']['socket'],'close',({code:I,reason:c})=>{if(this.#closed)return;log('browserSocketClosed',{'code':I,'reason':c}),this['dispatch'](new BrowserDisconnectedEvent({'code':I,'reason':c}));});const {product:G,userAgent:m}=await this['connection']['execute']('Browser.getVersion');this.#product=G,this.#headless=m['includes']('HeadlessChrome');const Y=this.#headless?await this['driver']?.['getWindowHandle']():void 0x0;this['connection']['on']('Target.targetCreated',async({targetInfo:I})=>{log('targetCreated',{'targetId':I['targetId'],'targetType':I['type'],'openerTargetId':I['openerId'],'openerFrameId':I['openerFrameId']});if(!(I['type']==='page'||I['type']==='iframe'&&this['frameManager']['has'](I['targetId'])||I['type']==='service_worker'&&I['url']['startsWith']('chrome-extension://')||I['url']['startsWith']('devtools://')))return;const c=makeTarget({'browser':this,'parent':I['openerId']?this.#targets['get'](I['openerId']):void 0x0,'targetId':I['targetId'],'type':I['type'],'url':I['url'],'title':I['title']});this.#targets['set'](c['targetId'],c),this.#watchers['attachedTargets']['reset'](),this['dispatch'](new BrowserTargetCreatedEvent(c));if(I['type']==='other'&&I['url']['startsWith']('devtools://'))await this['connection']['execute']('Target.attachToTarget',{'targetId':I['targetId'],'flatten':!![]});c['on']('attached',()=>{if(Array['from'](this.#targets['values']())['every'](o=>o['attached'])&&!this.#watchers['attachedTargets']['settled'])this.#watchers['attachedTargets']['resolve']();});if(c['type']==='page'&&!c['url']['startsWith']('devtools://'))this['dispatch'](new BrowserPageCreatedEvent(c)),this.#pages['push'](c),c['on']('attached',()=>{if(this.#activePage){log('activePageChanging',{'reason':this.#activePage===c['parent']?'childOfActive':'newPage'});if(this.#watchers['activePage']['settled'])this.#watchers['activePage']['reset']({'hint':'automatic'});if(this['headless'])c['dispatch'](new TargetActivatedEvent({'reason':'automatic'}));else this.#activePage=void 0x0;}else this.#headless&&c['targetId']===Y&&(log('activePageChanging',{'reason':'webdriver'}),c['dispatch'](new TargetActivatedEvent({'reason':'programmatic'})));}),c['on']('activating',()=>{if(this['activePage']!==c&&this.#watchers['activePage']['settled'])this.#watchers['activePage']['reset']({'hint':'programmatic'});}),c['on']('activated',({reason:o})=>{this.#activePage=c,log('activePageChanged',{'targetId':c['targetId']}),this.#watchers['activePage']['resolve'](),this['dispatch'](new BrowserActivePageChangedEvent(c,{'reason':o}));}),c['on']('navigated',({from:o,to:W,reason:U})=>{log('pageNavigated',{'targetId':c['targetId']}),this['dispatch'](new BrowserPageNavigatedEvent(c,{'from':o,'to':W,'reason':U}));}),c['on']('closed',()=>{log('pageClosed',{'targetId':c['targetId']});const o=!c['download']&&(c['initialized']&&!this.#activePage||this.#activePage===c);this['dispatch'](new BrowserPageClosedEvent(c,{'wasActive':o})),this.#targets['delete'](c['targetId']),this.#pages['splice'](this.#pages['indexOf'](c),0x1);if(this.#activePage===c||!this['activePage']&&c['visible']===void 0x0){log('activePageClosed',{'targetId':c['targetId']}),this.#watchers['activePage']['reset']({'hint':'automatic'});if(this['headless']&&c['parent'])log('activePageChanging',{'reason':'parentOfClosed'}),c['parent']['dispatch'](new TargetActivatedEvent({'reason':'automatic'}));else{const W=this.#pages['findLast'](U=>U['visible']);W?(log('activePageChanging',{'reason':'otherVisible'}),W['dispatch'](new TargetActivatedEvent({'reason':'automatic'}))):(log('activePageVacated',{'reason':'noVisiblePage'}),this.#activePage=void 0x0);}}else{if(!this.#activePage)this.#watchers['activePage']['reset']({'hint':'automatic'});}}),c['on']('visibilityChanged',({visibility:o})=>{if(o==='visible'){if(!this.#activePage)log('activePageChanging',{'reason':'becameVisible'}),c['dispatch'](new TargetActivatedEvent({'reason':this.#watchers['activePage']['hint']}));else{if(this.#activePage!==c){if(c['popup'])log('activePageChanging',{'reason':'popupStole'}),c['dispatch'](new TargetActivatedEvent({'reason':'automatic'}));else{log('activePageContested',{});if(this.#watchers['activePage']['settled'])this.#watchers['activePage']['reset']({'hint':'manual'});}}}}else{if(this.#activePage===c&&o==='hidden'&&c['navigated']){log('activePageVacated',{'reason':'activePageHidden'});const W=this.#pages['findLast'](U=>U['visible']);if(W)log('activePageChanging',{'reason':'otherVisible'}),W['dispatch'](new TargetActivatedEvent({'reason':this.#watchers['activePage']['hint']}));else{if(this.#watchers['activePage']['settled'])this.#watchers['activePage']['reset']({'hint':'manual'});this.#activePage=void 0x0;}}}}),c['on']('childTargetCreating',()=>{this.#watchers['attachedTargets']['reset']();});else{if(c['type']==='iframe')this['frameManager']['get'](c['mainFrame']['parentFrameId'])?.['target']['dispatch'](new TargetFrameTargetCreatedEvent(c));else{if(c['type']==='service_worker')this.#extensions['push'](c);}}}),this['connection']['on']('Target.targetDestroyed',({targetId:I})=>{const c=this.#targets['get'](I);c&&(log('targetDestroyed',{'targetId':c['targetId'],'targetType':c['type']}),this.#targets['delete'](I),c['dispatch'](new TargetClosedEvent()));}),this['connection']['on']('Target.targetCrashed',({targetId:I,status:c,errorCode:o})=>{log('targetCrashed',{'targetId':I,'status':c,'errorCode':o});const W=this.#targets['get'](I)??null;this['dispatch'](new BrowserTargetCrashedEvent(W,{'targetId':I,'status':c,'errorCode':o}));}),this['connection']['on']('Target.targetInfoChanged',({targetInfo:I})=>{this.#targets['get'](I['targetId'])?.['dispatch'](new TargetChangedEvent(I));}),this['connection']['on']('Target.attachedToTarget',async({sessionId:I,targetInfo:c})=>{log('targetAttached',{'targetId':c['targetId'],'targetType':c['type'],'sessionId':I}),this.#targets['get'](c['targetId'])?.['dispatch'](new TargetAttachedEvent(I));}),this['connection']['on']('Target.detachedFromTarget',async({sessionId:I,targetId:c})=>{log('targetDetached',{'targetId':c,'sessionId':I}),this.#targets['get'](c)?.['dispatch'](new TargetDetachedEvent());}),await this['connection']['execute']('Target.setDiscoverTargets',{'discover':!![]}),await this['connection']['execute']('Target.setAutoAttach',{'autoAttach':!![],'flatten':!![],'filter':[{'type':'page'},{'type':'iframe'},{'type':'service_worker'}],'waitForDebuggerOnStart':!![]});}['type']='web';['targetManager']=this.#targets;['frameManager']=makeFrameManager();['windowManager']=makeWindowManager();['extensions']=this.#extensions;['driver'];['connection'];['frameStabilityTimeout']=0x9c40;get['headless'](){return this.#headless;}get['product'](){return this.#product;}get['blocked'](){return!!this.#activePage?.['dialog']&&this.#activePage['dialog']['type']!=='filepicker';}get['activePage'](){return this.#activePage;}get['filepickersHidden'](){return this.#filepickersHidden;}get['__previousPage'](){return this.#history['previousPage'];}get['__nextPage'](){return this.#history['nextPage'];}constructor({driver:G,socket:m}){super(),this['driver']=G,this['connection']=makeConnection({'socket':m}),this.#initialize()['then'](()=>this.#watchers['initialized']['resolve']())['catch'](Y=>this.#watchers['initialized']['reject'](Y));}*['targets'](){yield*this.#targets['values']();}*['pages'](){yield*this.#pages;}async['stabilize'](G,{signal:m,timeout:Y}={}){if(G==='basic')await this['wait']('stable',{'signal':m}),await this['activePage']['wait']('initialized',{'signal':m}),!this['activePage']['navigated']&&(this['dispatch'](new BrowserStabilizingNavigationEvent({'done':![]})),await this['activePage']['wait']('navigated',{'signal':m}),this['dispatch'](new BrowserStabilizingNavigationEvent({'done':!![]}))),!this['activePage']['stable']&&(this['dispatch'](new BrowserStabilizingLoadEvent({'done':![]})),await this['activePage']['wait']('stable',{'signal':m}),this['dispatch'](new BrowserStabilizingLoadEvent({'done':!![]})));else{if(G==='strict')await this['stabilize']('basic',{'signal':m}),!this['activePage']['pendingRequests']&&(this['dispatch'](new BrowserStabilizingOutgoingRequestsEvent({'done':![]})),await this['activePage']['wait']('pendingRequests',{'signal':m}),this['dispatch'](new BrowserStabilizingOutgoingRequestsEvent({'done':!![]})));else{if(G==='paranoid')return until(Promise['resolve']()['then'](async()=>{await this['stabilize']('strict',{'signal':m});for(const I of this['activePage']['frames']())try{if(await I['isVisible']())await I['wait']('loaded',{'signal':m});}catch(c){if(m?.['aborted']&&m['reason']===c)throw c;}}),{'timeout':Y??0xea60,'signal':m});}}}async['wait'](G,{signal:m}={}){if(G==='stable')await abortable(this.#watchers['initialized'],m),await abortable(this.#watchers['attachedTargets'],m),await abortable(this.#watchers['activePage'],m);else await abortable(this.#watchers[G],m);}async['page']({url:G,automationTimeout:m}){await this.#watchers['activePage'],this.#watchers['attachedTargets']['reset']();const {targetId:Y}=await this['connection']['execute']('Target.createTarget',{'url':'about:blank'});await this.#watchers['attachedTargets'];const I=this.#targets['get'](Y);if(m!=null)I['connection']['timeout']=m;return await Promise['all']([I['activate'](),G?I['wait']('stable')['then'](()=>I['navigate'](G)['then'](()=>I['wait']('stable'))):null]),I;}async['activatePreviousPage'](){return await this.#watchers['activePage'],this.#history['activatePreviousPage']();}async['activateNextPage'](){return await this.#watchers['activePage'],this.#history['activateNextPage']();}async['intercept'](G,m){const Y=m??G,I=m?G:void 0x0,c=[];c['push'](this['on']('pageCreated',async({target:W})=>c['push'](await o(W)))),c['push'](...await Promise['all'](Array['from'](this['pages'](),o)));return()=>c['forEach'](W=>W());function o(W){return I!==void 0x0?W['intercept'](I,Y):W['intercept'](Y);}}async['filepicker'](G){const m=[];return this['on']('pageCreated',async({target:Y})=>m['push'](await Y['filepicker'](G))),m['push'](...await Promise['all'](Array['from'](this['pages'](),Y=>Y['filepicker'](G)))),()=>m['forEach'](Y=>Y());}async['getCookies'](){const {cookies:G}=await this['connection']['execute']('Storage.getCookies');return G;}async['setCookies'](G){await this['connection']['execute']('Storage.setCookies',{'cookies':G});}async['clearCookies'](){await this['connection']['execute']('Storage.clearCookies');}async['clearOriginStorage'](G){await this['connection']['execute']('Storage.clearDataForOrigin',{'origin':G,'storageTypes':'all'});}async['setWindowSize'](G){await this.#watchers['activePage'],await this['activePage']['wait']('windowResolved'),await this.#activePage['window']['setSize'](G);}async['setViewportSize'](G){await this.#watchers['activePage'],await this['activePage']['wait']('windowResolved');const m=this.#activePage['window'];if(this.#headless){await m['setSize'](G);const Y=await this['activePage']['getViewportSize']();if(Y['width']!==G['width']||Y['height']!==G['height'])await m['setSize']({'width':G['width']+G['width']-Y['width'],'height':G['height']+G['height']-Y['height']});}else await m['setContentsSize'](G);}async['captureScreenshot'](){return await this['wait']('stable'),this['activePage']['captureScreenshot']();}async['hideFilepickers'](G=!![]){await Promise['all'](Array['from'](this['targets'](),m=>m['hideFilepickers'](G))),this.#filepickersHidden=G;}async['close'](){log('browserClosing',{}),this.#closed=!![],this.#targets['forEach'](G=>G['dispatch'](new TargetClosedEvent()));if(this['driver'])await this['driver']?.['quit']();else await this['connection']['execute']('Browser.close');}},BrowserTargetCreatedEvent=class extends Event{['target'];constructor(G,m){super('targetCreated',m),this['target']=G;}},BrowserPageCreatedEvent=class extends Event{['target'];constructor(G,m){super('pageCreated',m),this['target']=G;}},BrowserPageNavigatedEvent=class extends Event{['target'];['from'];['to'];['reason'];constructor(G,{from:m,to:Y,reason:I},c){super('pageNavigated',c),this['target']=G,this['from']=m,this['to']=Y,this['reason']=I;}},BrowserPageClosedEvent=class extends Event{['target'];['wasActive'];constructor(G,{wasActive:wasActive=![]}={},m){super('pageClosed',m),this['target']=G,this['wasActive']=wasActive;}},BrowserActivePageChangedEvent=class extends Event{['target'];['reason'];constructor(G,{reason:m},Y){super('activePageChanged',Y),this['target']=G,this['reason']=m;}},BrowserDisconnectedEvent=class extends Event{['code'];['reason'];constructor({code:G,reason:m},Y){super('disconnected',Y),this['code']=G,this['reason']=m;}},BrowserTargetCrashedEvent=class extends Event{['target'];['targetId'];['status'];['errorCode'];constructor(G,{targetId:m,status:Y,errorCode:I},c){super('targetCrashed',c),this['target']=G,this['targetId']=m,this['status']=Y,this['errorCode']=I;}},BrowserWindowCreatedEvent=class extends Event{['window'];constructor(G){super('windowCreated'),this['window']=G;}},BrowserStabilizingNavigationEvent=class extends Event{['done'];constructor({done:G}){super('stabilizingNavigation'),this['done']=G;}},BrowserStabilizingLoadEvent=class extends Event{['done'];constructor({done:G}){super('stabilizingLoad'),this['done']=G;}},BrowserStabilizingOutgoingRequestsEvent=class extends Event{['done'];constructor({done:G}){super('stabilizingOutgoingRequests'),this['done']=G;}},HarRecorder=class extends EventTargetNode{#target;#includeBodies;#unsubscribes=[];#disposed=![];#events=[];#bodies=new Map();#seenRequestIds=new Set();#cachedRequestIds=new Set();#stats={'requestCount':0x0,'bytesIn':0x0,'bytesOut':0x0};constructor({target:G,includeBodies:includeBodies=![]}){super(),this.#target=G,this.#includeBodies=includeBodies,this.#subscribe(),this.#seedActivePage();}get['stats'](){return this.#stats;}get['target'](){return this.#target;}get['includeBodies'](){return this.#includeBodies;}['setIncludeBodies'](G){this.#includeBodies=G;}['toHar'](){const G=this.#events['map'](({method:Y,params:I})=>({'method':Y,'params':I}));let m;try{m=harFromMessages(G,{'includeTextFromResponseBody':![]});}catch{m=emptyHar();}for(const Y of m['log']['entries']){const I=Y['_requestId'];if(!I)continue;const c=this.#bodies['get'](I);if(!c||!Y['response']?.['content'])continue;Y['response']['content']['text']=c['body'];if(c['base64Encoded'])Y['response']['content']['encoding']='base64';}return{'har':m,'eventCount':G['length'],'requestCount':this.#stats['requestCount']};}['dispose'](){if(this.#disposed)return;this.#disposed=!![];for(const G of this.#unsubscribes)try{G();}catch{}this.#unsubscribes=[];}#subscribe(){const G=this.#target['connection'];if(!G)return;for(const m of CDP_NETWORK_METHODS)this.#unsubscribes['push'](G['on'](m,Y=>{this.#capture(m,Y);if(m==='Network.requestWillBeSent')this.#onRequestWillBeSent(Y);else{if(m==='Network.requestServedFromCache')this.#onRequestServedFromCache(Y);else{if(m==='Network.dataReceived')this.#onDataReceived(Y);else{if(m==='Network.loadingFinished')this.#onLoadingFinished(Y);}}}}));for(const Y of CDP_PAGE_METHODS)this.#unsubscribes['push'](G['on'](Y,I=>this.#capture(Y,I)));}#seedActivePage(){if(this.#disposed)return;this.#capture('Page.frameStartedLoading',{'frameId':this.#target['targetId']});}#capture(G,m){if(this.#disposed)return;this.#events['push']({'method':G,'params':m,'timestamp':Date['now']()});}#onRequestWillBeSent(G){if(!/^https?:/i['test'](G['request']?.['url']??''))return;this.#seenRequestIds['add'](G['requestId']),this.#stats['requestCount']+=0x1;const m=G['request']?.['postData']?.['length']??0x0;if(m>0x0)this.#stats['bytesOut']+=m;this['dispatch'](new HarRecorderStatsChangedEvent(this.#stats));}#onRequestServedFromCache(G){if(!this.#seenRequestIds['has'](G['requestId']))return;if(this.#cachedRequestIds['has'](G['requestId']))return;this.#cachedRequestIds['add'](G['requestId']),this.#stats['requestCount']-=0x1,this['dispatch'](new HarRecorderStatsChangedEvent(this.#stats));}#onDataReceived(G){if(!this.#seenRequestIds['has'](G['requestId']))return;if(this.#cachedRequestIds['has'](G['requestId']))return;if(typeof G['encodedDataLength']==='number')this.#stats['bytesIn']+=G['encodedDataLength'];this['dispatch'](new HarRecorderStatsChangedEvent(this.#stats));}#onLoadingFinished(G){if(!this.#includeBodies)return;if(!this.#seenRequestIds['has'](G['requestId']))return;if(this.#cachedRequestIds['has'](G['requestId']))return;this.#fetchBody(G['requestId']);}async #fetchBody(G){if(this.#disposed)return;const m=this.#target['connection'];if(!m)return;try{const Y=await m['execute']('Network.getResponseBody',{'requestId':G});if(this.#disposed)return;this.#bodies['set'](G,{'body':Y['body'],'base64Encoded':Y['base64Encoded']});}catch{}}};const CDP_NETWORK_METHODS=['Network.requestWillBeSent','Network.requestWillBeSentExtraInfo','Network.responseReceived','Network.responseReceivedExtraInfo','Network.dataReceived','Network.loadingFinished','Network.loadingFailed','Network.requestServedFromCache'],CDP_PAGE_METHODS=['Page.frameStartedLoading','Page.frameRequestedNavigation','Page.navigatedWithinDocument','Page.frameAttached','Page.loadEventFired','Page.domContentEventFired'];function emptyHar(){return{'log':{'version':'1.2','creator':{'name':'automator','version':''},'pages':[],'entries':[]}};}var HarRecorderStatsChangedEvent=class extends Event{['stats'];constructor(G){super('statsChanged'),this['stats']=G;}};const ErrorCode={'NOT_IMPLEMENTED':'NOT_IMPLEMENTED','HANDLER_ABORTED':'HANDLER_ABORTED','UNKNOWN_ACTION':'UNKNOWN_ACTION','UNRESOLVED_REF':'UNRESOLVED_REF','FAILED_ASSERTION':'FAILED_ASSERTION','MALFORMED_COOKIE':'MALFORMED_COOKIE','MALFORMED_HEADER':'MALFORMED_HEADER','EVALUATION_FAILED':'EVALUATION_FAILED','SWITCH_TO_CURRENT_TAB':'SWITCH_TO_CURRENT_TAB','CLOSE_LAST_TAB':'CLOSE_LAST_TAB','NO_TAB_HISTORY':'NO_TAB_HISTORY','NO_TAB':'NO_TAB','NO_NEXT_TAB':'NO_NEXT_TAB','NO_HISTORY_ENTRY':'NO_HISTORY_ENTRY','UNEXPECTED_REQUEST_STATUS':'UNEXPECTED_REQUEST_STATUS','UNEXPECTED_NAVIGATION_STATUS':'UNEXPECTED_NAVIGATION_STATUS','ELEMENT_NOT_INTERACTIVE':'ELEMENT_NOT_INTERACTIVE','ELEMENT_NOT_TEXTBOX':'ELEMENT_NOT_TEXTBOX','ELEMENT_NOT_CLEARABLE':'ELEMENT_NOT_CLEARABLE','UNHANDLED_DIALOG':'UNHANDLED_DIALOG','NO_ELEMENT':'NO_ELEMENT','ILLEGAL_ELEMENT_DESCRIPTOR':'ILLEGAL_ELEMENT_DESCRIPTOR','NO_OPTION':'NO_OPTION','NO_DIALOG':'NO_DIALOG','CONDITION_TIMED_OUT':'CONDITION_TIMED_OUT','NAVIGATION_FAILED':'NAVIGATION_FAILED','NAVIGATION_TIMED_OUT':'NAVIGATION_TIMED_OUT','FETCH_FAILED':'FETCH_FAILED','UNRESPONSIVE_TAB':'UNRESPONSIVE_TAB','INTERNAL':'INTERNAL','MESSAGE_PARSING':'MESSAGE_PARSING','INVALID_DATA':'INVALID_DATA','OBSCURED_ELEMENT':'OBSCURED_ELEMENT','FORBIDDEN_ACTION':'FORBIDDEN_ACTION','EXCEEDED_ALLOWED_TIMEOUT':'EXCEEDED_ALLOWED_TIMEOUT','NOT_PDF_VIEWER':'NOT_PDF_VIEWER','PDF_PAGE_OUT_OF_RANGE':'PDF_PAGE_OUT_OF_RANGE'};var RunnerError=class extends Error{['code'];['meta'];constructor(G,{code:code=ErrorCode['INTERNAL'],error:m,...Y}={}){super(),this['name']=this['constructor']['name'],this['message']=G,this['code']=code,this['meta']=Y,m instanceof Error&&(this['message']=G+':\x20'+m['message'],this['stack']=m['stack']);}};function translateAutomatorError(G){if(G instanceof NavigationFailedError)return{'code':ErrorCode['NAVIGATION_FAILED'],'meta':{'url':G['url'],'reason':G['reason']}};if(G instanceof NavigationTimedOutError)return{'code':ErrorCode['NAVIGATION_TIMED_OUT'],'meta':{'url':G['url'],'timeout':G['timeout']}};if(G instanceof NoHistoryEntryError)return{'code':ErrorCode['NO_HISTORY_ENTRY'],'meta':{'offset':G['offset']}};if(G instanceof UnresponsiveTargetError){const {method:m,commandId:Y,sessionId:I}=G;return{'code':ErrorCode['UNRESPONSIVE_TAB'],'meta':{'method':m,'commandId':Y,'sessionId':I}};}return{'code':ErrorCode['INTERNAL'],'meta':{'original':G}};}async function evaluateJSExpression(G,{context:m,stack:Y,automator:I,signal:c}){if(!(I instanceof Browser))throw new Error('Can\x27t\x20evaluate\x20js\x20expression\x20with\x20a\x20non-web\x20automator');const o=await evaluateExpression(G,{'context':m,'stack':Y,'automator':I,'signal':c});return await I['wait']('stable'),await I['activePage']['wait']('stable'),await I['activePage']['mainFrame']['defaultEvaluate'](o,{'await':!![]});}function isBase64String(G){return/^[A-Za-z0-9+/]*={0,2}$/['test'](G);}function isUrlString(G){return/(https?:\/\/(?:localhost|[-a-zA-Z0-9@:%._\+~#=]{2,256}\.[a-z]{2,4})(?::\d{1,5})?\b[-a-zA-Z0-9@:%_\+.~#?&/=]*)/['test'](G);}function isXmlString(G){try{return XMLValidator['validate'](G,{'allowBooleanAttributes':!![]})===!![];}catch{return![];}}function parseXmlString(G){const m=XMLValidator['validate'](G,{'allowBooleanAttributes':!![]});if(m!==!![])throw new RunnerError('Failed\x20to\x20parse\x20malformed\x20XML,\x20with\x20an\x20error\x20\x22'+m['err']['msg']+'\x22');return new XMLParser()['parse'](G);}function stringifyXml(G){return new XMLBuilder()['build'](G);}function stringifyJson(G){return JSON['stringify'](G);}function isJsonString(G){try{return JSON['parse'](G),!![];}catch{return![];}}function parseJsonString(G){try{return JSON['parse'](G);}catch(m){throw new RunnerError('Failed\x20to\x20parse\x20malformed\x20JSON,\x20with\x20an\x20error\x20\x22'+m['message']+'\x22');}}function stringifyJSLiteral(G){if(typeof G==='bigint')return G+'n';else{if(G===Infinity)return'Infinity';else{if(G===-Infinity)return'-Infinity';else{if(Object['is'](G,-0x0))return'-0';else{if(Number['isNaN'](G))return'NaN';else return JSON['stringify'](G);}}}}}function isAlphaNumeric(G){return/^[\p{L}\p{N}]+$/u['test'](G);}function isNumeric(G){return/^\p{N}+$/u['test'](G);}function isCapitalized(G){return/^\p{Lu}/u['test'](G);}function isLowerCase(G){return!/\p{Lu}/u['test'](G);}function isUpperCase(G){return!/\p{Ll}/u['test'](G);}function isCamelCase(G){return/^\p{Ll}[\p{L}\p{N}]*$/u['test'](G);}function isPascalCase(G){return/^\p{Lu}[\p{L}\p{N}]*$/u['test'](G);}function isSnakeCase(G){return/^[\p{Ll}\p{N}_]+$/u['test'](G);}function isKebabCase(G){return/^[\p{Ll}\p{N}-]+$/u['test'](G);}function isReference(G){return!!(G?.['isRef']&&G['name']);}function isJSExpressionReference(G){return!!(G?.['isJSExpressionRef']&&G['expression']);}function isInterpolatedString(G){return!!(G?.['isInterpolatedString']&&G['chunks']);}function isJSExpression(G){return!!(G?.['isJSExpression']&&G['chunks']);}function isStructure(G){return!!(G?.['isStructure']&&G['type']);}function isPattern(G){return!!(G?.['isPattern']&&(G['pattern']||G['name']));}function isExtractor(G){return G?.['operator']==='extract'&&Array['isArray'](G['operands']);}function isOTP(G){return!!G?.['isOTP'];}function isRandomValue(G){return!!G?.['isRandomValue'];}function isFileHandle(G){return!!G?.['isFileHandle'];}function isCondition(G){return!!G?.['isCondition'];}function isOperation(G){return!!(G?.['operator']&&G['operands']);}function isExpressionOperation(G){return!!(G?.['operator']&&G['operands']);}function isElementDescriptor(G){if(G&&typeof G==='object')return Object['keys'](G)['every'](m=>['hints','type','title','color','anchor','nth','reference','selector','orderDirection','superlative','secret']['includes'](m));return![];}function isSelectorElementDescriptor(G){return!!(G&&typeof G==='object'&&typeof G['selector']==='object'&&G['selector']['type']&&G['selector']['selector']);}function isViewportDescriptor(G){return!!G?.['isViewportDescriptor'];}function isDialogDescriptor(G){return!!G?.['isDialogDescriptor'];}function isDialogElementDescriptor(G){return!!G?.['isDialogElementDescriptor'];}const DIALOG_ACCEPT_TITLES=new Set(['ok','accept','agree','allow','confirm','submit','yes']),DIALOG_DISMISS_TITLES=new Set(['cancel','decline','reject','dismiss','discard','close','no']);function toDialogButtonTitle(G){if(typeof G!=='string')return null;if(DIALOG_ACCEPT_TITLES['has'](G['toLowerCase']()))return'ok';if(DIALOG_DISMISS_TITLES['has'](G['toLowerCase']()))return'cancel';return null;}function toDialogElementDescriptor(G){if(G['type']&&G['type']!=='button')return null;if(!Object['keys'](G)['every'](Y=>['type','title']['includes'](Y)))return null;const m=toDialogButtonTitle(G['title']);return m?{'isDialogElementDescriptor':!![],'title':m}:null;}function isChromeElementDescriptor(G){return!!G?.['isChromeElementDescriptor'];}function toChromeElementDescriptor(G){if(!G['title']||typeof G['title']!=='string')return null;if(!Object['keys'](G)['every'](m=>['type','title']['includes'](m)))return null;if(/^(?:(?:reload|refresh)(?:\s+(?:(?:(?:(?:this|the)\s+)?page)|this))?)$/i['test'](G['title'])){if(G['type']&&G['type']!=='button')return null;return{'isChromeElementDescriptor':!![],'title':'refresh'};}else{if(/^(?:(?:(?:click\s+to\s+)?(?:go\s+)?(?:back|(?:to\s+)?(?:the\s+)?prev(?:ious)?(?:\s+page)?))|<-|<)$/i['test'](G['title'])){if(G['type']&&G['type']!=='button')return null;return{'isChromeElementDescriptor':!![],'title':'back'};}else{if(/^(?:(?:(?:click\s+to\s+)?(?:go\s+)?(?:fwd|forward|(?:to\s+)?(?:the\s+)?next(?:\s+page)?))|->|>)$/i['test'](G['title'])){if(G['type']&&G['type']!=='button')return null;return{'isChromeElementDescriptor':!![],'title':'forward'};}}}return null;}function stringify(G){if(G&&G[Symbol['for']('stringify')])return stringify(G[Symbol['for']('stringify')]());else{if(Array['isArray'](G))return G['map'](stringify)['join']('\x20');else{if(typeof G==='object')return stringifyJson(G);else return String(G);}}}function sizeOf(G){const m=0x5*0x400*0x400;if(typeof G==='string'){if(G['length']>m)throw new RunnerError('String\x20length\x20exceeds\x20the\x20safety\x20limit\x20of\x20'+m+'\x20characters',{'code':ErrorCode['INVALID_DATA']});const Y=new Intl['Segmenter']('en',{'granularity':'grapheme'});let I=0x0;for(const c of Y['segment'](G))I++;return I;}else{if(Array['isArray'](G))return G['length'];else{if(G instanceof Set||G instanceof Map)return G['size'];else{if(G&&typeof G==='object')return Object['keys'](G)['length'];else throw new RunnerError('Cannot\x20get\x20size\x20of\x20the\x20'+typeof G+'\x20value');}}}}function keysOf(G){if(G instanceof Map)return Array['from'](G['keys']());else{if(G&&typeof G==='object'&&!Array['isArray'](G))return Object['keys'](G);else throw new RunnerError('Cannot\x20get\x20keys\x20of\x20the\x20'+(Array['isArray'](G)?'array':typeof G)+'\x20value');}}function valuesOf(G){if(Array['isArray'](G)||G instanceof Set||G instanceof Map)return Array['from'](G['values']());else{if(G&&typeof G==='object')return Object['values'](G);else throw new RunnerError('Cannot\x20get\x20values\x20of\x20the\x20'+typeof G+'\x20value');}}function entriesOf(G){if(typeof G==='string')return G;else{if(Array['isArray'](G)||G instanceof Set)return Array['from'](G['values']());else{if(G instanceof Map)return Array['from'](G['keys']());else{if(G&&typeof G==='object')return Object['keys'](G);else throw new RunnerError('Cannot\x20get\x20entries\x20of\x20the\x20'+typeof G+'\x20value');}}}}function typeOf(G){if(isElementDescriptor(G)||isDialogDescriptor(G))return'string';else{if(isExtractor(G))return G['operands'][0x1]==='color'||G['operands'][0x1]==='background-color'||G['operands'][0x1]==='foreground-color'?'string':G['operands'][0x1];else{if(isReference(G))return G['type']??'any';else{if(isInterpolatedString(G))return'string';else{if(isStructure(G))return'any';else{if(isOperation(G)){if(['add','sub','mul','div','size']['includes'](G['operator']))return'number';else return'any';}else{if(G===null)return'null';else return typeof G;}}}}}}}function arrayOf(...G){return G['flatMap'](m=>{if(Array['isArray'](m))return m;if(m!==void 0x0)return[m];return[];});}function toLowerCase(G){if(typeof G==='string')return G['toLowerCase']();else{if(Array['isArray'](G))return G['map'](m=>toLowerCase(m));else return G;}}async function extractValue(G,{context:m,stack:Y,automator:I,timeout:c,signal:o}){const W=Y['extractor'](G),U=G['operands'][0x1],u=await evaluateExpression(G['operands'][0x0]['value'],{'context':m,'stack':Y,'automator':I,'timeout':c,'signal':o}),p=await m['axOps']['findNode']({...u,'hints':{...u['hints'],'type':arrayOf(u['hints']?.['type'],U==='string'?['text','valuebox']:['valuebox','text'])}},{'stack':Y,'timeout':c??0x0,'signal':o??new AbortController()['signal']});if(!p)return null;const E=W(await p['node']['getValue']({'hint':U})??null);if(U['includes']('color'))return objectToColor(E);return E;}async function evaluateOperand(G,{context:m,stack:Y,automator:I,hint:c,signal:o}){const {done:W,value:U}=await evaluateOperandSequence(G,{'context':m,'stack':Y,'automator':I,'hint':c,'signal':o})['next']();if(W)throw new RunnerError('Operand\x20not\x20evaluatable');return U;}async function*evaluateOperandSequence(G,{context:m,stack:Y,automator:I,hint:c,signal:o}){const W=Y['operand'](G);if(isElementDescriptor(G['value'])){const U=G['value'],u=await extractValue({'operator':'extract','operands':[{'isOperand':!![],'value':{...U,'hints':{...U['hints'],'type':arrayOf('valuebox',U['hints']?.['type'])}}},c??'string']},{'context':m,'stack':Y,'automator':I,'signal':o});if(u===null)throw new RunnerError('Element\x20not\x20found',{'code':ErrorCode['NO_ELEMENT']});yield W(u);}else{if(isDialogDescriptor(G['value'])){const p=I instanceof Browser?(I?.['activePage']['dialog']&&I['activePage']['dialog']['type']!=='filepicker'&&I['activePage']['dialog']['message'])??null:null;if(p===null)throw new RunnerError('Native\x20dialog\x20not\x20found',{'code':ErrorCode['NO_DIALOG']});yield W(p);}else{const E=await evaluateExpression(G['value'],{'context':m,'stack':Y,'automator':I,'signal':o});yield W(c==='string'&&typeof E?.[Symbol['for']('stringify')]==='function'?stringify(E):E,{'secret':Y['isSecret'](G['value'])??![]});}}}const operations={'validate':validate,'eq':eq,'lt':lt,'gt':gt,'lte':lte,'gte':gte,'match':match,'includes\x20only':includesOnly,'includes':includes,'starts\x20with':startsWith,'ends\x20with':endsWith,'visible':visible,'clickable':clickable,'enabled':enabled,'hovered':hovered,'checked':checked,'populated':populated},transformers={'ignore\x20case':toLowerCase,'match\x20case':G=>G};function isSizeOperand(G){return isExpressionOperation(G['value'])&&G['value']['operator']==='size';}function validateLengthBoundary(G){const m=typeof G==='number'?G:Number(G);if(m<0x0)throw new RunnerError('Invalid\x20boundary:\x20length\x20comparison\x20values\x20must\x20be\x20non-negative',{'code':ErrorCode['INVALID_DATA']});if(!Number['isFinite'](m))throw new RunnerError('Invalid\x20boundary:\x20non-finite\x20values\x20are\x20not\x20allowed\x20for\x20length\x20comparisons',{'code':ErrorCode['INVALID_DATA']});}async function evaluateCondition(G,{context:m,stack:Y,automator:I,signal:c}){const o=new Map();return u(G['operation']);async function*W(p,{hint:E}={}){const B=stringify(p);let t=o['get'](B);if(!t)t={'values':[],'iterator':evaluateOperandSequence(p,{'context':m,'stack':Y,'automator':I,'hint':E,'signal':c})},o['set'](B,t);else yield*t['values'];for await(const D of t['iterator']){t['values']['push'](D),yield D;}}async function*U(...[p,...E]){if(!p)yield[];else{const B=[];for await(const t of p){for(const D of B)yield[t,...D];for await(const C of U(...E)){B['push'](C),yield[t,...C];}}}}async function u(p,E={}){const B=Y['operation'](p),{operator:t,operands:D}=p;switch(t){case'parens':return B(await u(D[0x0],E));case'ignore\x20case':case'match\x20case':return B(await u(D[0x0],{...E,'mode':t}));case'not':return B(!await u(D[0x0],E));case'and':return B(await u(D[0x0],E)&&await u(D[0x1],E));case'or':return B(await u(D[0x0],E)||await u(D[0x1],E));case'validate':case'match':for await(const C of W(D[0x0])){if(E['mode']&&isPattern(D[0x1])){D[0x1]['flags']??='';if(E['mode']==='ignore\x20case'&&!D[0x1]['flags']['includes']('i'))D[0x1]['flags']+='i';else{if(E['mode']==='match\x20case')D[0x1]['flags']=D[0x1]['flags']['replace']('i','');}}const e=operations[t](stringify(C),await evaluateExpression(D[0x1],{'context':m,'stack':Y,'automator':I,'signal':c}));if(e)return B(e);}return B(![]);case'eq':case'lt':case'gt':case'lte':case'gte':case'includes':case'starts\x20with':case'ends\x20with':{const i=typeOf(D[0x1]['value']),X=typeOf(D[0x0]['value']),N=transformers[E['mode']??'match\x20case'];for await(const [T,A]of U(W(D[0x0],{'hint':i}),W(D[0x1],{'hint':X}))){const V=Y['nodeFor'](D[0x0],T),H=Y['nodeFor'](D[0x1],A);if(V&&H&&await V['node']['equal'](H['node']))continue;['eq','lt','gt','lte','gte']['includes'](t)&&(isSizeOperand(D[0x0])||isSizeOperand(D[0x1]))&&(validateLengthBoundary(T),validateLengthBoundary(A));const P=operations[t](N(T),N(A));if(P)return B(P);}return B(![]);}case'includes\x20only':{const J=typeOf(D[0x0]),s=transformers[E['mode']??'match\x20case'];for await(const [q,j]of U(W(D[0x0]),U(...D['slice'](0x1)['map'](Z=>W(Z,{'hint':J}))))){const Z=operations[t](s(q),s(j));if(Z)return B(Z);}return B(![]);}case'visible':return B(await operations['visible'](D[0x0]['value'],{'context':m,'stack':Y,'automator':I,'signal':c}));case'clickable':case'enabled':case'hovered':return B(await operations[t](D[0x0]['value'],{'context':m,'stack':Y,'automator':I,'signal':c}));case'checked':return B(await operations['checked'](D[0x0]['value'],D[0x1],{'context':m,'stack':Y,'automator':I,'signal':c}));case'populated':return B(await operations['populated'](D[0x0]['value'],{'context':m,'stack':Y,'automator':I,'signal':c}));}}}function validate(G,m){if(m==='alphanumeric')return isAlphaNumeric(G);else{if(m==='numeric')return isNumeric(G);else{if(m==='capitalized')return isCapitalized(G);else{if(m==='lowercase')return isLowerCase(G);else{if(m==='uppercase')return isUpperCase(G);else{if(m==='camelcase')return isCamelCase(G);else{if(m==='pascalcase')return isPascalCase(G);else{if(m==='snakecase')return isSnakeCase(G);else{if(m==='kebabcase')return isKebabCase(G);else return![];}}}}}}}}}function compare(G,m){if(G instanceof Color||m instanceof Color){const U=G instanceof Color?G:stringToColor(G),u=m instanceof Color?m:stringToColor(m);if(!U||!u)return 0x1;return U['similarTo'](u)?0x0:0x1;}const Y=stringify(G),I=stringify(m),c=/(?<prefix>.*?)(?<number>\d[\d,]*(?:[.]\d+)?)(?<suffix>.*)/,o=Y['match'](c),W=I['match'](c);if(o&&W&&o['groups']['prefix']===W['groups']['prefix']&&o['groups']['suffix']===W['groups']['suffix'])return Number(o['groups']['number']['replaceAll'](',',''))-Number(W['groups']['number']['replaceAll'](',',''));return Y===I?0x0:Y>I?0x1:-0x1;}function eq(G,m){return stringify(G)===stringify(m)||compare(G,m)===0x0;}function lt(G,m){return compare(G,m)<0x0;}function lte(G,m){return compare(G,m)<=0x0;}function gt(G,m){return compare(G,m)>0x0;}function gte(G,m){return compare(G,m)>=0x0;}function match(G,m){return m['test'](stringify(G));}function startsWith(G,m){if(typeof G==='string')return G['startsWith'](stringify(m));else{if(Array['isArray'](G))return G['at'](0x0)===m;else throw new RunnerError('Cannot\x20verify\x20that\x20the\x20item\x20is\x20contained\x20within\x20'+typeof G+'\x20value');}}function endsWith(G,m){if(typeof G==='string')return G['endsWith'](stringify(m));else{if(Array['isArray'](G))return G['at'](-0x1)===m;else throw new RunnerError('Cannot\x20verify\x20that\x20the\x20item\x20is\x20contained\x20within\x20'+typeof G+'\x20value');}}function includes(G,m){if(typeof G==='string')return G['includes'](stringify(m));else{if(Array['isArray'](G))return G['includes'](m);else throw new RunnerError('Cannot\x20verify\x20that\x20the\x20item\x20is\x20contained\x20within\x20'+typeof G+'\x20value');}}function includesOnly(G,m){if(typeof G==='string')return!G['replace'](new RegExp(m['map'](Y=>stringify(Y))['join']('|'),'g'),'')['trim']();else{if(Array['isArray'](G))return G['every'](Y=>m['includes'](Y));else throw new RunnerError('Cannot\x20verify\x20that\x20the\x20item\x20is\x20contained\x20within\x20'+typeof G+'\x20value');}}async function visible(G,{context:m,stack:Y,automator:I,signal:c}){if(isElementDescriptor(G)){const o=await evaluateExpression(G,{'context':m,'stack':Y,'automator':I,'signal':c}),W=await m['axOps']['findNode'](o,{'stack':Y,'signal':c});if(!W)return![];const {ratio:U=0x1}=await W['node']['getObscurationInfo']();return U<=0.5;}else return I instanceof Browser&&!!I['activePage']?.['dialog'];}async function populated(G,{context:m,stack:Y,automator:I,signal:c}){const o=await evaluateExpression({...G,'type':[G['type']??[],'inputbox']['flat']()},{'context':m,'stack':Y,'automator':I,'signal':c}),W=await m['axOps']['findNode'](o,{'stack':Y,'signal':c});if(!W)return![];return!!await W['node']['getValue']({'hint':'boolean','acceptFormValue':!![]});}async function clickable(G,{context:m,stack:Y,automator:I,signal:c}){const o=await evaluateExpression(G,{'context':m,'stack':Y,'automator':I,'signal':c}),W=await m['axOps']['findNode'](o,{'stack':Y,'signal':c});if(!W)return![];return await W['node']['isEnabled']()??![];}async function enabled(G,{context:m,stack:Y,automator:I,signal:c}){const o=await evaluateExpression(G,{'context':m,'stack':Y,'automator':I,'signal':c}),W=await m['axOps']['findNode'](o,{'stack':Y,'signal':c});if(!W)return![];return!W['state']['disabled']&&!W['state']['inert'];}async function hovered(G,{context:m,stack:Y,automator:I,signal:c}){const o=await evaluateExpression(G,{'context':m,'stack':Y,'automator':I,'signal':c}),W=await m['axOps']['findNode'](o,{'stack':Y,'signal':c});if(!W)return![];return await W['node']['isHovered']()??![];}async function checked(G,m,{context:Y,stack:I,automator:c,signal:o}){const W=await evaluateExpression({'type':'checkbox',...G},{'context':Y,'stack':I,'automator':c,'signal':o}),U=await Y['axOps']['findNode'](W,{'stack':I,'signal':o});if(!U)return![];return await U['node']['getValue']({'hint':'boolean'})===m;}async function evaluateExpression(G,{context:m,stack:Y,automator:I,timeout:c,signal:o}){return W(G);async function W(U){if(isReference(U)){const u=U,p=u['scope']??'public';if(!(u['name']['toLowerCase']()in m['scope'][p]))throw new RunnerError('Unable\x20to\x20resolve\x20parameter\x20or\x20variable\x20with\x20the\x20name\x20\x22'+u['name']+'\x22',{'code':ErrorCode['UNRESOLVED_REF'],'ref':u});const E=Y['reference'](u),B=m['scope'][p][u['name']['toLowerCase']()],t=await(u['modifiers']??[])['reduce'](async(D,C)=>{let e=await D;if('get'in C){const i=await W(C['get']);if(typeof e==='string'){if(isJsonString(e))e=parseJsonString(e);else{if(isXmlString(e))e=parseXmlString(e);}}if(Array['isArray'](e)){if(typeof i==='number'){const X=e['at'](i);if(X===void 0x0)throw new RunnerError('No\x20list\x20value\x20was\x20found\x20at\x20index\x20'+i,{'code':ErrorCode['UNRESOLVED_REF'],'ref':u});return X;}}else{if(e&&typeof e==='object'){const N=await e[Symbol['for']('get')]?.(i)??e[i];if(N===void 0x0)throw new RunnerError('No\x20value\x20is\x20mapped\x20to\x20the\x20key\x20\x22'+i+'\x22',{'code':ErrorCode['UNRESOLVED_REF'],'ref':u});return N;}}throw new RunnerError('Can’t\x20convert\x20the\x20value\x20'+stringifyJson(e)+'\x20to\x20a\x20dictionary\x20as\x20it\x20is\x20not\x20a\x20valid\x20json\x20object\x20or\x20an\x20XML\x20fragment',{'code':ErrorCode['UNRESOLVED_REF'],'ref':u});}else{if('match'in C){const T=stringify(e),A=await W(C['match']);let V=null;if(typeof A==='function'){const H=A(T);H&&(V=[H],V['index']=T['indexOf'](H),V['input']=T);}else V=T['match'](A);if(!V)throw new RunnerError('The\x20regex\x20'+(typeof A==='function'?'custom\x20matcher':'/'+A['source']+'/')+'\x20does\x20not\x20match\x20the\x20value\x20\x22'+T+'\x22',{'code':ErrorCode['UNRESOLVED_REF'],'ref':u});return V['groups']?{...V['groups']}:V['length']===0x1?V[0x0]:V['slice'](0x1);}else return e;}},Promise['resolve'](B['value']));return E(u['type']==='string'?stringify(t):t,{'secret':B['secret']});}else{if(isJSExpressionReference(U))return await evaluateJSExpression(U['expression'],{'context':m,'stack':Y,'automator':I,'signal':o});else{if(isInterpolatedString(U))return(await Promise['all'](U['chunks']['map'](async D=>isReference(D)||isJSExpressionReference(D)?W(D):D)))['join']('');else{if(isJSExpression(U))return(await Promise['all'](U['chunks']['map'](async D=>isReference(D)||isJSExpressionReference(D)?stringifyJSLiteral(await W(D)):D)))['join']('');else{if(isPattern(U))return'name'in U?getPatternMatcher(U['name']):new RegExp(U['pattern'],U['flags']);else{if(isStructure(U)){if(U['type']==='array')return Promise['all'](U['items']['map'](async D=>W(D)));else return Object['fromEntries'](await Promise['all'](U['items']['map'](async({key:D,value:C})=>[await W(D),await W(C)])));}else{if(isElementDescriptor(U)){if(!Array['isArray'](U['anchor'])&&isDialogDescriptor(U['anchor']?.['element'])){if(isPattern(U['title']))throw new RunnerError('An\x20element\x20with\x20a\x20pattern\x20title\x20cannot\x20target\x20the\x20native\x20browser\x20dialog',{'code':ErrorCode['ILLEGAL_ELEMENT_DESCRIPTOR']});return{'isDialogElementDescriptor':!![],'title':toDialogButtonTitle(await W(U['title']))??'ok'};}async function D(X){if(isDialogDescriptor(X))throw new RunnerError('The\x20native\x20browser\x20dialog\x20can\x20only\x20be\x20used\x20as\x20the\x20single\x20direct\x20anchor\x20of\x20the\x20target\x20element',{'code':ErrorCode['ILLEGAL_ELEMENT_DESCRIPTOR']});return W(X);}const {reference:C,...e}=U;let i={};if(C){const X=await W(C),N=parseIndex(X);i=N!==null?{'nth':N}:{'title':stringify(X)};}else{if('nth'in U){const T=await W(U['nth']);i={'nth':typeof T==='number'?T:parseIndex(T)??Number(T)};}}return Y['descriptor'](U)({...e,...i,...'title'in U&&!isPattern(U['title'])?{'title':await W(U['title'])}:{},...'color'in U?{'color':await W(U['color'])}:{},...'selector'in U&&U['selector']?.['selector']?{'selector':{...U['selector'],'selector':await W(U['selector']['selector'])}}:{},...'anchor'in U&&U['anchor']?{'anchor':Array['isArray'](U['anchor'])?await Promise['all'](U['anchor']['map'](async A=>({...A,'element':A['element']&&await D(A['element'])}))):{...U['anchor'],'element':U['anchor']['element']&&await D(U['anchor']['element'])}}:{},...'fallback'in U?{'fallback':await W(U['fallback'])}:{}});}else{if(isExtractor(U)){const A=await extractValue(U,{'context':m,'stack':Y,'automator':I,'timeout':c,'signal':o});if(A===null)throw new RunnerError('Element\x20not\x20found',{'code':ErrorCode['NO_ELEMENT']});return A;}else{if(isExpressionOperation(U)){const V=Y['operation'](U),H=await U['operands']['reduce'](async(P,J)=>{const s=await P;return s['push'](await evaluateOperand(J,{'context':m,'stack':Y,'automator':I,'signal':o})),s;},Promise['resolve']([]));if(U['operator']==='size')return V(sizeOf(H[0x0]));else{if(U['operator']==='keys')return V(keysOf(H[0x0]));else{if(U['operator']==='values')return V(valuesOf(H[0x0]));else{if(U['operator']==='entries')return V(entriesOf(H[0x0]));else{if(U['operator']==='add')return V(H[0x0]+H[0x1]);else{if(U['operator']==='sub')return V(H[0x0]-H[0x1]);else{if(U['operator']==='div')return V(H[0x0]/H[0x1]);else{if(U['operator']==='mul')return V(H[0x0]*H[0x1]);else throw new RunnerError('Unknown\x20operator');}}}}}}}}else{if(isCondition(U))return evaluateCondition(U,{'context':m,'stack':Y,'automator':I,'signal':o});else{if(isOTP(U)){if(!m['actions']['generateOTP'])throw new RunnerError('generateOTP\x20callback\x20not\x20provided',{'code':ErrorCode['INTERNAL']});const P=Y['generator'](U),J=await W(U['user']);return P(await m['actions']['generateOTP'](J));}else{if(isFileHandle(U)){const s=await W(U['filename']);try{return await m['actions']['resolveFilename']?.(s)??s;}catch{return s;}}else{if(isRandomValue(U)){const q=Y['generator'](U);if(U['type']==='number')return q(Math['random']());else{if(!m['actions']['generateRandomValue'])throw new RunnerError('generateRandomValue\x20callback\x20not\x20provided',{'code':ErrorCode['INTERNAL']});return q(await m['actions']['generateRandomValue']({...U,'description':U['description']?await W(U['description']):void 0x0}));}}else return U;}}}}}}}}}}}}}}var InstructionExecutionStartedEvent=class extends ProgressEvent{['status'];['done']=![];constructor({preStep:G}={}){super(),this['status']=G?'runningPreStepInstruction':'runningInstruction';}},InstructionExecutionFinishedEvent=class extends ProgressEvent{['status'];['done']=!![];constructor({preStep:G}={}){super(),this['status']=G?'runningPreStepInstruction':'runningInstruction';}},ActionExecutionStartedEvent=class extends ProgressEvent{['status']='runningAction';['done']=![];},ActionExecutionFinishedEvent=class extends ProgressEvent{['status']='runningAction';['done']=!![];},AXNodeSearchStartedEvent=class extends ProgressEvent{['status']='searchingForElement';['done']=![];['descriptor'];constructor({descriptor:G}){super(),this['descriptor']=G;}},AXNodeSearchFinishedEvent=class extends ProgressEvent{['status']='searchingForElement';['done']=!![];['descriptor'];['node'];constructor({descriptor:G,node:m}){super(),this['descriptor']=G,this['node']=m;}},NavigationWaitStartedEvent=class extends ProgressEvent{['status']='waitingForNavigation';['done']=![];},NavigationWaitFinishedEvent=class extends ProgressEvent{['status']='waitingForNavigation';['done']=!![];},LoadWaitStartedEvent=class extends ProgressEvent{['status']='waitingForResourcesLoad';['done']=![];},LoadWaitFinishedEvent=class extends ProgressEvent{['status']='waitingForResourcesLoad';['done']=!![];},OutgoingRequestsWaitStartedEvent=class extends ProgressEvent{['status']='waitingForOutgoingRequests';['done']=![];},OutgoingRequestsWaitFinishedEvent=class extends ProgressEvent{['status']='waitingForOutgoingRequests';['done']=!![];},StabilizationWaitStartedEvent=class extends ProgressEvent{['status']='waitingForStabilization';['done']=![];},StabilizationWaitFinishedEvent=class extends ProgressEvent{['status']='waitingForStabilization';['done']=!![];};function makeValuesStack(){return new ValuesStack();}var ValuesStack=class{#id=0x1;#pending=new Set();#items=new Map();#entities=new Map();#relations=new Map();#item(G,m,Y,I){const c=this.#id++;if(Y)return this.#add(c,{'type':G,'entity':m,'value':Y,...I});else return this.#pending['add'](c),this.#relations['set'](c,[]),(o,W)=>{return this.#pending['delete'](c),this.#add(c,{'type':G,'entity':m,'value':o,...W});};}#add(G,m){this.#items['set'](G,m),this.#pending['forEach'](I=>this.#relations['get'](I)['push'](G));let Y=this.#entities['get'](m['entity']);if(!Y)this.#entities['set'](m['entity'],Y=[]);return Y['push'](G),m['value'];}*#related(G,m){for(const Y of[G,...this.#relations['get'](G)??[]]){const I=this.#items['get'](Y);if(I&&(!m||m===I['type']))yield I;}}['descriptor'](G,m){return m?this.#item('descriptor',G,m):this.#item('descriptor',G);}['node'](G,m){return m?this.#item('node',G,m):this.#item('node',G);}['reference'](G,m,Y){return m?this.#item('reference',G,m,Y):this.#item('reference',G);}['extractor'](G,m,Y){return m?this.#item('extractor',G,m,Y):this.#item('extractor',G);}['generator'](G,m,Y){return m?this.#item('generator',G,m,Y):this.#item('generator',G);}['operand'](G,m,Y){return m?this.#item('operand',G,m,Y):this.#item('operand',G);}['operation'](G,m){return m?this.#item('operation',G,m):this.#item('operation',G);}['nodeFor'](G,m){const Y=this.#entities['get'](G)?.['find'](I=>this.#items['get'](I)?.['value']===m);if(Y)return Array['from'](this.#related(Y,'node'))[0x0]?.['value'];}['isSecret'](G){if(isReference(G)){const [m]=this.#entities['get'](G)??[];if(m)return Array['from'](this.#related(m,'reference'))[0x0]?.['secret'];}else{if(isInterpolatedString(G))return G['chunks']['some'](Y=>this['isSecret'](Y));else{if(isStructure(G)){if(G['type']==='array')return G['items']['some'](Y=>this['isSecret'](Y));else return G['items']['some'](Y=>this['isSecret'](Y['key'])||this['isSecret'](Y['value']));}}}}*['descriptors'](G){if(G){const m=this.#entities['get'](G)??[];for(const Y of m)for(const {value:I}of this.#related(Y,'descriptor'))yield I;}else{for(const {type:c,value:o}of this.#items['values']())if(c==='descriptor')yield o;}}*['nodes'](G){if(G){const m=this.#entities['get'](G)??[];for(const Y of m)for(const {entity:I,value:c}of this.#related(Y,'node'))yield{'node':c,'descriptor':I};}else{for(const {type:o,entity:W,value:U}of this.#items['values']())if(o==='node')yield{'node':U,'descriptor':W};}}*['references'](){for(const {type:G,entity:m,value:Y,...I}of this.#items['values']())if(G==='reference')yield{'reference':m,'value':Y,...I};}*['extractors'](){for(const [G,{type:m,entity:Y,value:I,...c}]of this.#items['entries']())if(m==='extractor')yield{'extractor':Y,'value':I,'element':Array['from'](this.#related(G,'node'))[0x0]?.['entity'],...c};}*['operands'](){for(const [G,{type:m,entity:Y,value:I,...c}]of this.#items['entries']())if(m==='operand')yield{'operand':Y,'value':I,'element':Array['from'](this.#related(G,'node'))[0x0]?.['entity'],...c};}};async function tryMakeElementNotObscured(G,{timeout:m,signal:Y}){const I=await getVisibleElementFromNode(G);if(!I)return;let c=!![];const o=setTimeout(()=>c=![],m);do{await I['tryToUnobscure']();const {isObscured:W,obscuringElement:U}=await I['isObscured']();if(!W){clearTimeout(o);return;}if(U&&await U['isLabelOf'](G['node'])){clearTimeout(o);return;}await sleep(0x3e8,{'signal':Y});}while(c);throw new RunnerError('Element\x20is\x20obscured',{'code':ErrorCode['OBSCURED_ELEMENT']});}async function getVisibleElementFromNode(G){let m;for(const Y of G['incorporated'])if(await Y['isVisible']()&&await Y['execute'](I=>I instanceof Element)){m=Y;break;}if(!m){if(!G['parent'])return;return getVisibleElementFromNode(G['parent']);}return m;}async function revealElements(G){if(G['some'](({descriptor:Y})=>Y['anchor']))return;const m=[];for(const {node:Y}of G){const I=(await Promise['all'](m['map'](async c=>c['node']['equal'](Y['node'])['catch'](()=>![]))))['indexOf'](!![]);if(I>=0x0)m['splice'](I,0x1);m['push'](Y);}for(const c of m)try{await(await getVisibleElementFromNode(c))?.['scrollIntoView']();}catch(o){error('elementRevealFailed',{'error':o});}}const PDF_STATE={'ready':'data-nlp-pdf-ready','error':'data-nlp-pdf-error','currentPage':'data-nlp-pdf-current-page','isolate':'data-nlp-pdf-isolate','isolatedPage':'data-nlp-pdf-isolated-page'},PDF_BYTES_PLACEHOLDER='__NLP_PDF_BYTES__';function isPdfViewerFrame(G){return Object['entries'](G['response']?.['headers']??{})['some'](([m])=>m['toLowerCase']()==='x-nlp-pdf-viewer');}async function waitForReady(G,m=0x4e20){return G['defaultExecute'](async(Y,I,c)=>{const o=document['documentElement'];function W(){return o['getAttribute'](Y)==='true'||o['getAttribute'](I)!=null;}if(W())return;await new Promise(U=>{function u(){p['disconnect'](),clearTimeout(E),U();}const p=new MutationObserver(()=>W()&&u());p['observe'](o,{'attributes':!![],'attributeFilter':[Y,I]});const E=setTimeout(u,c);});},[PDF_STATE['ready'],PDF_STATE['error'],m],{'await':!![]});}var Handler=class extends EventTargetNode{#captures={};#controller=new AbortController();#stack=makeValuesStack();#metrics;['automator'];['context'];['instruction'];['signal'];['shouldCapture'];['shouldNotThrowOnUnexpectedNavigationStatus'];['expectedNavigationStatuses'];get['action'](){return this['instruction'];}get['stack'](){return this.#stack;}get['metrics'](){return this.#metrics;}get['findTimeout'](){return this['context']['scope']['internal']['findTimeout']?.['value']??this['context']['scope']['internal']['timeout']?.['value'];}get['frameStabilityTimeout'](){return this['context']['scope']['internal']['frameStabilityTimeout']?.['value']??this['context']['scope']['internal']['timeout']?.['value'];}get['navigateTimeout'](){return this['context']['scope']['internal']['navigateTimeout']?.['value']??this['context']['scope']['internal']['timeout']?.['value'];}get['screenshotTimeout'](){return this['context']['scope']['internal']['screenshotTimeout']?.['value']??this['context']['scope']['internal']['timeout']?.['value'];}constructor({automator:G,context:m,instruction:Y,signal:I,shouldCapture:c,shouldNotThrowOnUnexpectedNavigationStatus:o,expectedNavigationStatuses:W}){super(),this.#metrics={'platform':G['type']},this['automator']=G,this['context']=m,this['instruction']=Y,this['signal']=I?AbortSignal['any']([this.#controller['signal'],I]):this.#controller['signal'],this['shouldCapture']=c??![],this['shouldNotThrowOnUnexpectedNavigationStatus']=o??![],this['expectedNavigationStatuses']=W??[];}['abort'](G){this.#controller['abort'](G??new RunnerError('The\x20instruction\x20was\x20aborted\x20before\x20it\x20got\x20to\x20finish',{'core':ErrorCode['HANDLER_ABORTED']}));}['throwIfAborted'](){this['signal']['throwIfAborted']();}['throwIfNoElement'](G){if(!G)throw new RunnerError('Element\x20not\x20found',{'code':ErrorCode['NO_ELEMENT']});}['throwIfBlocked'](){if(this['automator']instanceof Browser&&this['automator']['activePage']['dialog']&&this['automator']['activePage']['dialog']['type']!=='filepicker')throw new RunnerError('Cannot\x20proceed\x20until\x20native\x20blocking\x20dialog\x20is\x20handled',{'code':ErrorCode['UNHANDLED_DIALOG']});}['throwIfExceededAllowedTimeout'](G){const m=this['context']['scope']['internal']['maxWaitTimeout']?.['value']??0x1d4c0;if(G>m)throw new RunnerError('Timeout\x20of\x20'+G+'ms\x20exceeds\x20maximum\x20allowed\x20timeout\x20of\x20'+m+'ms',{'code':ErrorCode['EXCEEDED_ALLOWED_TIMEOUT'],'timeout':G});}async['throwIfCannotTypeToElement'](G){if(!G||!await G['canTypeInto']())throw new RunnerError('Element\x20is\x20not\x20a\x20textbox',{'code':ErrorCode['ELEMENT_NOT_TEXTBOX']});}async['run'](){let G;try{if(this['automator']instanceof Browser&&this['frameStabilityTimeout'])this['automator']['frameStabilityTimeout']=this['frameStabilityTimeout'];const c=performance['now']();await this['stabilize']('basic'),this.#metrics['stabilizeMs']=performance['now']()-c;const o=performance['now']();G=await this['handle'](),this.#metrics['handleMs']=performance['now']()-o;}catch(W){if(W instanceof StaleNodeError||W instanceof StaleRemoteObjectHandleError)return log('handlerRetriedOnStaleNode',{'error':W}),this.#metrics={'platform':this['automator']['type']},this['run']();else{if(W instanceof FlushError)log('handlerFlushed',{'error':W}),G={'status':'flushed','meta':{'reason':W['message']}};else{if(W instanceof AutomatorError){error('handlerAutomatorError',{'error':W});const {code:U,meta:u}=translateAutomatorError(W);G={'status':'error','error':W['message'],'code':U,'meta':u};}else{if(W instanceof RunnerError)error('handlerRunnerError',{'error':W}),G={'status':'error','error':W['message'],'code':W['code'],'meta':W['meta']};else this['signal']['aborted']&&(W['code']==='ABORT_ERR'||W===this['signal']['reason'])?(error('handlerAborted',{'error':W}),G={'status':'aborted','meta':{'reason':W['cause']?.['message']??W['message']}}):(error('handlerInternalError',{'error':W}),G={'status':'error','error':W['message']??'unknown\x20error','code':ErrorCode['INTERNAL'],'meta':{'original':W}});}}}if(!Object['hasOwn'](this.#captures,'after')&&G['status']!=='aborted')await this['after']();}const m=new Map(Array['from'](this.#stack['references'](),({reference:p,value:E,...B})=>[p,{'value':E,...B}])),Y=new Map(Array['from'](this.#stack['extractors'](),({extractor:p,value:E,element:B,...t})=>[p,{'value':E,'element':B,...t}])),I=new Map(Array['from'](this.#stack['operands'](),({operand:p,value:E,element:B,...t})=>[p,{'value':E,'element':B,...t}]));return{...G,...this.#captures,'values':{'references':m,'extractors':Y,'operands':I},'metrics':this.#metrics};}async['stabilize'](G='strict'){await this['automator']['stabilize'](G,{'signal':this['signal'],'timeout':this['screenshotTimeout']});if(this['automator']instanceof Browser){if(isPdfViewerFrame(this['automator']['activePage']['mainFrame']))await waitForReady(this['automator']['activePage']['mainFrame']);}}async['evaluate'](G){return evaluateExpression(G,{'context':this['context'],'stack':this.#stack,'automator':this['automator'],'timeout':this['findTimeout']??0x2710,'signal':this['signal']});}async['element'](G){const m=await this['context']['axOps']['findNode'](await this['evaluate'](G),{'stack':this.#stack,'timeout':this['findTimeout']??0x2710,'signal':this['signal'],'metrics':this.#metrics});if(m)this['dispatch'](new HandlerAXNodeFoundEvent(m));return m;}async['capture'](){if(!this['shouldCapture'])return;try{await this['automator']['stabilize']('basic',{'signal':this['signal']});if(this['automator']['blocked'])return;const G=await this['automator']['captureScreenshot'](),m=((async()=>{try{return await this['automator']['activePage']?.['mainFrame']['execute'](()=>({'width':innerWidth,'height':innerHeight,'scrollX':scrollX,'scrollY':scrollY}));}catch{return;}})());return{'image':G,'elements':await Array['from'](this.#stack['nodes']())['reduce'](async(Y,{node:I,descriptor:c})=>{try{if(I===I['tree']['root'])return await Y;const o=await I['node']['getScreenBox'](),W=await I['node']['getDescription']();return await Y['then'](U=>U['concat']({'region':o,'descriptor':c,'label':W}));}catch(U){return error('elementMarkerExtractionFailed',{'error':U}),Y;}},Promise['resolve']([])),'viewport':await m};}catch(Y){error('captureFailed',{'error':Y});}}async['reveal'](){if(!this['shouldCapture']||!(this['automator']instanceof Browser))return;await revealElements(Array['from'](this.#stack['nodes']())['filter'](({node:G})=>G!==G['tree']['root']));}async['before'](){bus['dispatch'](new ActionExecutionStartedEvent()),this.#captures['before']=await this['capture']();}async['after'](){this.#captures['after']=await this['capture'](),bus['dispatch'](new ActionExecutionFinishedEvent());}},HandlerAXNodeFoundEvent=class extends Event{['node'];constructor(G,m){super('nodeFound',m),this['node']=G;}},AssertHandler=class extends Handler{async['handle'](){await this['stabilize'](),await this['before']();const G=await this['evaluate'](this['action']['timeout'])??this['findTimeout']??0x7530,m=Date['now']();let Y=0x0,I=!![];const c=setTimeout(()=>I=![],G);do{this['throwIfAborted'](),++Y;try{if(await this['evaluate'](this['action']['condition']))return clearTimeout(c),log('assertionEvaluated',{'passed':!![],'attempts':Y,'durationMs':Date['now']()-m,'condition':this['action']['condition']}),await this['reveal'](),await this['after'](),{'status':'asserted'};else{if(Array['from'](this['stack']['descriptors'](this['action']['condition']['operation']))['length']===0x0){clearTimeout(c);break;}}}catch(o){if(!I||this['signal']['aborted'])throw o;}await sleep(0x3e8,{'signal':this['signal']});}while(I);log('assertionEvaluated',{'passed':![],'attempts':Y,'durationMs':Date['now']()-m,'condition':this['action']['condition']}),await this['reveal'](),await this['after']();throw new RunnerError('Assertion\x20failed',{'code':ErrorCode['FAILED_ASSERTION']});}},EmptyHandler=class extends Handler{async['handle'](){return await this['stabilize'](),await this['before'](),await this['after'](),{'status':'empty'};}};function makeUrlData(G){const m=new URL(G);return{'href':G,'protocol':m['protocol']['replace'](/:$/,''),'user':m['username'],'password':m['password'],'host':m['host'],'hostname':m['hostname'],'port':m['port'],'path':m['pathname'],'query':m['search'],'anchor':m['hash'],[Symbol['for']('stringify')](){return G;}};}var FetchHandler=class extends Handler{async['handle'](){await this['stabilize'](),await this['before']();const G={'headers':new Set(),'cookies':new Set(),'body':![]},m=await this['evaluate'](this['action']['url']);let Y=this['action']['method']?.['toUpperCase']();if(!Y&&this['action']['body'])Y='POST';const I=new Request(m,{'method':Y});if(this['action']['headers'])for(const E of this['action']['headers']){const B=await this['evaluate'](E['name']);if(!/^[a-zA-Z0-9_-]+$/['test'](B))throw new RunnerError('The\x20header\x20name\x20\x22'+B+'\x22\x20is\x20malformed,\x20it\x20contains\x20illegal\x20characters',{'code':ErrorCode['MALFORMED_HEADER'],'header':E});const t=await this['evaluate'](E['value']);if(!/^[a-zA-Z0-9 :;.,\\/"'?!(){}[\]@<>=+*#$&`|~^%_-]+$/['test'](t))throw new RunnerError('The\x20header\x20value\x20\x22'+t+'\x22\x20is\x20malformed,\x20it\x20contains\x20illegal\x20characters',{'code':ErrorCode['MALFORMED_HEADER'],'header':E});const D=E['secret']||this['stack']['isSecret'](E['value']);I['headers']['append'](B,t);if(D)G['headers']['add'](B['toLowerCase']());}let c;if(this['action']['body']){const C=await this['evaluate'](this['action']['body']['data']);G['body']=this['stack']['isSecret'](this['action']['body']['data'])??![];let e=this['action']['body']['type'];if(!e){if(typeof C==='string'){if(isJsonString(C))e='json';else{if(isXmlString(C))e='xml';}}else e='json';}if(e==='base64'){if(typeof C!=='string'||!isBase64String(C))throw new RunnerError('Body\x20is\x20not\x20of\x20base64\x20format');c=new Uint8Array(O['from'](C,'base64'));}else{if(e==='xml'){if(typeof C!=='string'){if(C&&typeof C==='object'&&!Array['isArray'](C))c=stringifyXml(C);else throw new RunnerError('Body\x20could\x20not\x20be\x20converted\x20to\x20XML\x20format');}else c=C;if(!I['headers']['has']('Content-Type'))I['headers']['set']('Content-Type','application/xml;charset=UTF-8');}else{c=typeof C!=='string'?stringifyJson(C):C;if(e==='json'&&!I['headers']['has']('Content-Type'))I['headers']['set']('Content-Type','application/json;charset=UTF-8');}}}if(this['action']['auth']){if(this['action']['auth']['type']==='basic'){const i=await this['evaluate'](this['action']['auth']['username']),X=await this['evaluate'](this['action']['auth']['password']),N='Authorization';I['headers']['set'](N,'Basic\x20'+O['from'](i+':'+X)['toString']('base64')),G['headers']['add'](N['toLowerCase']());}}if(this['action']['cookies']){const T=[];for(const V of this['action']['cookies']){const H=await this['evaluate'](V['name']);if(/=/['test'](H))throw new RunnerError('The\x20cookie\x20name\x20\x22'+H+'\x22\x20is\x20malformed,\x20it\x20contains\x20illegal\x20characters',{'code':ErrorCode['MALFORMED_COOKIE'],'cookie':V});const P=await this['evaluate'](V['value']),J=V['secret']||this['stack']['isSecret'](V['value']);T['push'](H+'='+P);if(J)G['cookies']['add'](H);}const A='Cookie';I['headers']['set'](A,T['join'](';\x20'));if(G['cookies']['size']>0x0)G['headers']['add'](A['toLowerCase']());}const o={'url':makeUrlData(I['url']),'headers':W(I['headers']),'cookies':U(I['headers']),...c&&{'body':{'value':c,'secret':G['body']}}};try{const s=await v(I,{'body':c,'dispatcher':this['context']['dispatcher']}),q={'status':s['status'],'statustext':s['statusText'],'body':await p(s),'headers':W(s['headers']),'cookies':u(s['headers']),[Symbol['for']('get')](j){if(j==='body')return this['body']['value'];else return this[j];},[Symbol['for']('stringify')](){return this['body']['value'];}};this['context']['scope']['public']['response']={'value':q};if(this['action']['statuses']?this['action']['statuses']!=='*'&&!this['action']['statuses']['includes'](q['status']):q['status']<0xc8||q['status']>0x12b)throw new RunnerError('The\x20request\x20to\x20url\x20\x22'+m+'\x22\x20resulted\x20with\x20an\x20unexpected\x20status\x20code\x20'+q['status'],{'code':ErrorCode['UNEXPECTED_REQUEST_STATUS'],'status':q['status'],'response':q,'request':o});return await this['after'](),{'status':'fetched','meta':{'response':q,'request':o}};}catch(j){if(j['message']==='fetch\x20failed')throw new RunnerError('Failed\x20to\x20send\x20the\x20request',{'code':ErrorCode['FETCH_FAILED'],'request':o,'cause':j['cause']});else throw j;}function W(Z){const K={[Symbol['for']('get')](l){return this[l['toLowerCase']()]['value'];}};return Z['forEach']((l,z)=>{K[z]={'value':l,'secret':G['headers']['has'](z)};}),K;}function U(Z){const K={[Symbol['for']('get')](l){return this[l]['value'];}};return(Z['get']('Cookie')?.['split'](';')??[])['forEach'](l=>{const [z,L]=l['split'](/=(.+)/);K[z]={'value':L,'secret':G['cookies']['has'](z)};}),K;}function u(Z){const K={[Symbol['for']('get')](l){return this[l]['value'];}};return Z['getSetCookie']()['forEach'](l=>{const [z,L]=l['split'](/=(.+)/);K[z]={'value':L,'secret':G['cookies']['has'](z)};}),K;}async function p(Z){const K=await Z['text']();if(K){const l=Z['headers']['get']('Content-Type');if(l?.['includes']('application/json'))return{'value':{...parseJsonString(K),[Symbol['for']('stringify')]:()=>K},'secret':![]};else{if(l?.['includes']('application/xml'))return{'value':{...parseXmlString(K),[Symbol['for']('stringify')]:()=>K},'secret':![]};}}return{'value':K,'secret':![]};}}},InitializeScopeHandler=class extends Handler{async['handle'](){return await this['stabilize'](),await this['before'](),this['context']['scope']['initialize']({'input':await(this['instruction']['parameters']??[])['reduce'](async(G,{name:m,value:Y,secret:I})=>{return G['then'](async c=>({...c,[m]:{'value':await this['evaluate'](Y),'secret':I}}));},Promise['resolve']({})),'public':{},'internal':{}}),this['context']['scope']['internal']['forceRunningAssertions']={'value':this['instruction']['options']?.['assertions']},this['context']['scope']['internal']['forceRunningNavigation']={'value':this['instruction']['options']?.['navigation']},await this['after'](),{'status':'scope\x20initialized','parameters':this['context']['scope']['active']?.['input']};}},SetVariableHandler=class extends Handler{async['handle'](){this['throwIfBlocked'](),await this['stabilize'](),await this['before']();const G=this['action']['scope']??'public',m=await this['evaluate'](this['action']['data']['value']),Y=this['action']['data']['secret']||(this['stack']['isSecret'](this['action']['data']['value'])??![]);let I;if(this['action']['destruction']){if(Array['isArray'](m))I=(o,W)=>m[W];else{if(m!==null&&typeof m==='object')I=o=>m[o];else I=()=>m;}}else I=()=>m;const c=this['action']['names']['map']((o,W)=>{const U=o['name']['toLowerCase'](),u=I(o['name'],W),p=this['context']['scope'][G][U],E={'value':u,'secret':Y||o['secret']||![]};return this['context']['scope'][G][U]=E,{'name':U,'previous':p,'current':E};});return await this['after'](),{'status':'variable\x20set','meta':{'variables':c,'scope':G}};}};async function isolatePdfPage(G){const m=G['activePage']?.['mainFrame'];if(!m||!isPdfViewerFrame(m))return noop$1;try{await callViewer(m,'isolate');}catch(Y){return error('pdfPageIsolationFailed',{'error':Y}),noop$1;}return async()=>{await callViewer(m,'restore')['catch'](I=>error('pdfPageRestoreFailed',{'error':I}));};}async function noop$1(){}function callViewer(G,m){return G['defaultExecute'](Y=>globalThis['nlpPdfState']?.[Y]?.(),[m]);}var VisualCheckHandler=class extends Handler{async['handle'](){this['throwIfBlocked'](),await this['stabilize']('paranoid');const G=await isolatePdfPage(this['automator']);try{return await this['before'](),await this['context']['actions']['check'](),await this['after'](),{'status':'visually\x20checked'};}finally{await G();}}},WaitHandler=class extends Handler{async['handle'](){await this['stabilize'](),await this['before']();const G=await this['evaluate'](this['action']['timeout']);if(G)this['throwIfExceededAllowedTimeout'](G);if(!this['action']['condition'])return await sleep(G??0x3e8,{'signal':this['signal']}),await this['after'](),{'status':'success'};const m=G??this['findTimeout']??0xea60,Y=Date['now']();let I=0x0,c=!![];const o=setTimeout(()=>c=![],m);do{this['throwIfAborted'](),++I;try{const W=await this['evaluate'](this['action']['condition']);debug('waitConditionEvaluated',{'conditionMet':Boolean(W),'attempt':I,'elapsedMs':Date['now']()-Y,'timeout':m});if(W)return clearTimeout(o),await this['reveal'](),await this['after'](),{'status':'success'};}catch(U){if(!c||this['signal']['aborted'])throw U;}await sleep(0x3e8,{'signal':this['signal']});}while(c);throw new RunnerError('Timeout\x20waiting\x20for\x20condition\x20to\x20match',{'code':ErrorCode['CONDITION_TIMED_OUT'],'timeout':m,'condition':this['action']['condition']});}},DefinePreinstructionsHandler=class extends Handler{async['handle'](){return{'status':'preinstructions\x20defined','meta':{'preinstructions':this['instruction']['type']==='set\x20preinstructions'?this['instruction']['instructions']:[]}};}},TryHandler=class extends Handler{async['handle'](){return{'status':'tried','meta':{'next':this['instruction']['instructions']}};}},IfHandler=class extends Handler{async['handle'](){await this['stabilize'](),await this['before']();const G=await this['evaluate'](this['instruction']['condition']);return await this['reveal'](),await this['after'](),{'status':'condition\x20evaluated','meta':{'met':G,'next':G?this['instruction']['then']:this['instruction']['otherwise']}};}},IntentHandler=class extends Handler{async['handle'](){throw new RunnerError('Intent\x20action\x20should\x20not\x20be\x20executed',{'code':ErrorCode['FORBIDDEN_ACTION']});}},CheckHandler$1=class extends Handler{async['handle'](){this['throwIfBlocked'](),await this['stabilize']();const G=await this['evaluate'](this['action']['element']),m=await this['element']({...G,'type':G['type']??'checkbox'});this['throwIfNoElement'](m),await tryMakeElementNotObscured(m,{'timeout':this['findTimeout']??0x2710,'signal':this['signal']}),await this['before']();const Y=await m['node']['execute'](I=>{if(I instanceof Element&&I['hasAttribute']('aria-checked'))return I['getAttribute']('aria-checked')==='true';if(I instanceof HTMLInputElement&&['checkbox','radio']['includes'](I['type']))return I['checked'];return![];});if(typeof this['action']['value']!=='boolean'||Y!==this['action']['value'])await m['node']['click']({'simulate':m['type']['checkbox']===0x1||m['type']['radio']===0x1,'signal':this['signal']});return this['context']['activeElement']=m['node'],await this['after'](),{'status':'success'};}},ClickHandler$1=class extends Handler{async['handle'](){if(isDialogElementDescriptor(this['action']['element']))return this['handleWithDialogElementDescriptor'](this['action']['element']);const G=this['automator']['activePage']['dialog'],m=G&&G['type']!=='filepicker'?G:null;if(!m)await this['stabilize']();const Y=await this['evaluate'](this['action']['element']);if(isDialogElementDescriptor(Y))return this['handleWithDialogElementDescriptor'](Y);if(isChromeElementDescriptor(Y))return this['throwIfBlocked'](),this['handleWithChromeElementDescriptor'](Y);if(m){const c=toDialogElementDescriptor(Y);if(c)return this['handleWithDialogElementDescriptor'](c);this['throwIfBlocked']();}const I=await this['element']({...Y,'state':{...Y['state'],'active':!![]},'hints':{'type':'button'}});if(Y&&!I?.['node']){const o=toChromeElementDescriptor(Y);if(o)return this['handleWithChromeElementDescriptor'](o);}return this['throwIfNoElement'](I),this['handleWithElement'](I);}async['handleWithDialogElementDescriptor'](G){const m=this['automator']['activePage']['dialog'];if(!m||m['type']==='filepicker')throw new RunnerError('Native\x20dialog\x20not\x20found',{'code':ErrorCode['NO_DIALOG']});return await this['before'](),await m['handle'](G['title']!=='cancel'),await this['after'](),{'status':'success'};}async['handleWithChromeElementDescriptor'](G){await this['before']();if(G['title']==='refresh')await this['automator']['activePage']['reload']();else{if(G['title']==='back')await this['automator']['activePage']['navigateThroughHistory'](-0x1);else{if(G['title']==='forward')await this['automator']['activePage']['navigateThroughHistory'](0x1);}}return await this['after'](),{'status':'success'};}async['handleWithElement'](G){await tryMakeElementNotObscured(G,{'timeout':this['findTimeout']??0x2710,'signal':this['signal']}),await this['before']();const {keys:m,button:Y,times:I}=this['action'];if(m)await this['automator']['activePage']['keyboard']['down'](m);await G['node']['click']({'simulate':G['type']['checkbox']===0x1||G['type']['radio']===0x1,'signal':this['signal'],'button':Y,'times':I});if(m)await this['automator']['activePage']['keyboard']['up'](m);return await Promise['all']([G['node']['frame']['wait']('stable'),n(0x64)]),this['context']['activeElement']=G['node'],await this['after'](),{'status':'success'};}},TypeHandler$1=class extends Handler{async['handle'](){if(isDialogElementDescriptor(this['action']['element']))return this['handleWithDialogElementDescriptor']();this['throwIfBlocked'](),await this['stabilize']();const G=stringify(await this['evaluate'](this['action']['value']??''));if(isChromeElementDescriptor(this['action']['element']))this['action']['element']['title']==='url'&&(await this['before'](),await this['automator']['activePage']['navigate'](G),await this['after']());else{const m=await this['evaluate'](this['action']['element'])??(isOTP(this['action']['value'])?{'type':'textbox','title':'code','fallback':{'state':{'focused':!![]}}}:{'state':{'focused':!![]}});if(isDialogElementDescriptor(m))return this['handleWithDialogElementDescriptor']();const Y=await this['element']({...m,'state':{...m['state'],'active':!![]},'type':[m['type']??[],'textbox']['flat']()});this['throwIfNoElement'](Y),await tryMakeElementNotObscured(Y,{'timeout':this['findTimeout']??0x2710,'signal':this['signal']}),await this['before']();const I=Y['node'];await this['throwIfCannotTypeToElement'](I),await I['focus']();if(await I['isContentEditable']())await I['setCaretPosition']('end');if(G['length']>=0xc8||/[\n\t]/['test'](G))await this['automator']['activePage']['keyboard']['insert'](G,{'keys':['ControlLeft','KeyV']});else await this['automator']['activePage']['keyboard']['type'](G);this['context']['activeElement']=I,await this['after']();}return{'status':'success'};}async['handleWithDialogElementDescriptor'](){const G=this['automator']['activePage']['dialog'];if(!G||G['type']==='filepicker')throw new RunnerError('Native\x20dialog\x20not\x20found',{'code':ErrorCode['NO_DIALOG']});const m=stringify(await this['evaluate'](this['action']['value']??''));return await this['before'](),await G['handle'](!![],m),await this['after'](),{'status':'success'};}},ClearHandler=class extends Handler{async['handle'](){this['throwIfBlocked'](),await this['stabilize']();const G=await this['evaluate'](this['action']['element'])??{'state':{'focused':!![]}},m=await this['element']({...G,'type':[G['type']??[],'inputbox']['flat']()});this['throwIfNoElement'](m),await tryMakeElementNotObscured(m,{'timeout':this['findTimeout']??0x2710,'signal':this['signal']}),await this['before']();if(m['type']['textbox'])await m['node']['focus'](),await this['automator']['activePage']['keyboard']['press'](['ControlLeft','KeyA'],{'commands':['selectAll']}),await this['automator']['activePage']['keyboard']['press']('Backspace');else{if(m['type']['checkbox']){if(await m['node']['execute'](Y=>Y instanceof HTMLInputElement&&Y['type']==='checkbox'&&Y['checked']||Y instanceof Element&&Y['getAttribute']('aria-checked')==='true'))await m['node']['click']({'simulate':!![],'signal':this['signal']});}else throw new RunnerError('Can\x27t\x20clear\x20the\x20targeted\x20element',{'code':ErrorCode['ELEMENT_NOT_CLEARABLE']});}return this['context']['activeElement']=m['node'],await this['after'](),{'status':'success'};}},ScrollHandler$1=class extends Handler{async['handle'](){this['throwIfBlocked'](),await this['stabilize'](),await this['before']();if('position'in this['action']){const G=this['action']['element']?await this['evaluate'](this['action']['element']):{'type':'scrollable','fallback':{'type':'app'}},m=await this['element'](isViewportDescriptor(G)?{'type':'scrollable','fallback':{'type':'app'}}:G);this['throwIfNoElement'](m);const Y=m['node'];let I,c;if(isViewportDescriptor(G)){const o=await this['automator']['activePage']['getViewportSize']();if(this['action']['position']==='center')c=0x0,I=0x0;else{if(this['action']['position']['includes']('top'))c=-(o['height']/0x2);else{if(this['action']['position']['includes']('bottom'))c=o['height']/0x2;}if(this['action']['position']['includes']('left'))I=-(o['width']/0x2);else{if(this['action']['position']['includes']('right'))I=o['width']/0x2;}}}else{const {scrollX:W,scrollY:U,scrollWidth:u,scrollHeight:p,clientWidth:E,clientHeight:B}=await Y['getMetrics']();if(this['action']['position']['includes']('center'))I=(u-E)/0x2-W,c=(p-B)/0x2-U;else{if(this['action']['position']['includes']('top'))c=-U;else{if(this['action']['position']['includes']('bottom'))c=p-B-U;}if(this['action']['position']['includes']('left'))I=-W;else{if(this['action']['position']['includes']('right'))I=u-E-W;}}}await Y['scrollBy']({'x':I,'y':c});}else{if('fraction'in this['action']){const t=await this['evaluate'](this['action']['fraction']),D=this['action']['element']?await this['evaluate'](this['action']['element']):{'type':'scrollable','fallback':{'type':'app'}},C=await this['element'](isViewportDescriptor(D)?{'type':'scrollable','fallback':{'type':'app'}}:D);this['throwIfNoElement'](C);const e=C['node'],i=this['action']['direction']??'down',X=await this['evaluate'](this['action']['times'])??0x1,N=isViewportDescriptor(D)?await this['automator']['activePage']['getViewportSize']():await e['getMetrics']()['then'](({scrollWidth:V,scrollHeight:H})=>({'width':V,'height':H}));let T,A;if(i==='up')A=-(N['height']*t);else{if(i==='down')A=N['height']*t;else{if(i==='left')T=-(N['width']*t);else{if(i==='right')T=N['width']*t;}}}for(let V=0x0;V<X;++V)await e['scrollBy']({'x':T,'y':A});}else{if('element'in this['action']&&!('direction'in this['action'])){const H=this['action']['element']?await this['evaluate'](this['action']['element']):{'type':'scrollable','fallback':{'type':'app'}},P=await this['element'](H);this['throwIfNoElement'](P),await tryMakeElementNotObscured(P,{'timeout':this['findTimeout']??0x2710,'signal':this['signal']});}else{const J=this['action']['direction']??'down',s=J==='left'||J==='right'?'horizontal':'vertical';let q;if('element'in this['action']){const L=await this['evaluate']({...this['action']['element'],'hints':{'scrollable':s,...this['action']['element']['hints']}});q=await this['element'](L);}else q=await this['element']({'type':'scrollable','superlative':'largest','hints':{'scrollable':s},'fallback':{'type':'app'}});this['throwIfNoElement'](q);const j=q['node'],Z=await this['evaluate'](this['action']['times'])??0x1,K=await this['evaluate'](this['action']['distance']);let l=0x0,z=0x0;if(!K){const k=await this['automator']['activePage']['getViewportSize'](),d=await j['getMetrics'](),M=Math['min'](d['clientHeight'],k['height']),h=Math['min'](d['clientWidth'],k['width']);if(J==='up')z=-M;else{if(J==='down')z=M;else{if(J==='left')l=-h;else{if(J==='right')l=h;}}}}else{if(J==='up')z=-K;else{if(J==='down')z=K;else{if(J==='left')l=-K;else{if(J==='right')l=K;}}}}for(let w=0x0;w<Z;++w)await j['scrollBy']({'x':l,'y':z});}}}return await this['after'](),{'status':'success'};}},FindHandler$1=class extends Handler{async['handle'](){this['throwIfBlocked'](),await this['stabilize']();const G=await this['evaluate'](this['action']['element']),m=await this['element'](G);return this['throwIfNoElement'](m),await tryMakeElementNotObscured(m,{'timeout':this['findTimeout']??0x2710,'signal':this['signal']}),await this['before'](),this['context']['activeElement']=m['node'],await this['after'](),{'status':'found'};}},FocusHandler$1=class extends Handler{async['handle'](){this['throwIfBlocked'](),await this['stabilize']();const G=await this['evaluate'](this['action']['element']),m=await this['element'](G);this['throwIfNoElement'](m),await tryMakeElementNotObscured(m,{'timeout':this['findTimeout']??0x2710,'signal':this['signal']}),await this['before']();const Y=m['node'];if(!await Y['focus']())throw new RunnerError('Element\x20is\x20not\x20interactive',{'code':ErrorCode['ELEMENT_NOT_INTERACTIVE']});return this['context']['activeElement']=Y,await this['after'](),{'status':'success'};}},CloseTargetHandler=class extends Handler{async['handle'](){await this['stabilize'](),await this['before']();if(Array['from'](this['automator']['pages']())['length']>0x1)await this['automator']['activePage']['close']();else throw new RunnerError('Can\x27t\x20close\x20the\x20browser\x20tab\x20because\x20it\x20is\x20the\x20only\x20tab',{'code':ErrorCode['CLOSE_LAST_TAB']});return await this['after'](),{'status':'success'};}},CloseHandler=class extends Handler{async['handle'](){if('isDialogDescriptor'in this['action']['element']){const o=this['automator']['activePage']['dialog'];if(!o||o['type']==='filepicker')throw new RunnerError('Native\x20dialog\x20not\x20found',{'code':ErrorCode['NO_DIALOG']});return await this['before'](),await o['handle'](![]),await this['after'](),{'status':'success'};}this['throwIfBlocked'](),await this['stabilize']();const G=await this['evaluate'](this['action']['element']),m=await this['element']({...G,'hints':{'type':G['type']?G['type']:'popup'}});this['throwIfNoElement'](m);const Y=await this['element']({'hints':{'role':'close'},'anchor':{'position':'inside','element':{'node':m}}});this['throwIfNoElement'](Y),await tryMakeElementNotObscured(Y,{'timeout':this['findTimeout']??0x2710,'signal':this['signal']}),await this['before']();const I=Y['node'],c=Boolean(Y['type']['checkbox']||Y['type']['radio']);return await I['click']({'simulate':c,'signal':this['signal']}),await Promise['all']([I['frame']['wait']('stable'),n(0x64)]),this['context']['activeElement']=I,await this['after'](),{'status':'success'};}},CreateTargetHandler=class extends Handler{async['handle'](){await this['stabilize'](),await this['before']();const G=await this['evaluate'](this['action']['url']);return await this['automator']['page']({'url':G??void 0x0}),await this['after'](),{'status':'success'};}},EraseHandler=class extends Handler{async['handle'](){this['throwIfBlocked'](),await this['stabilize']();const G=await this['evaluate'](this['action']['element'])??{'state':{'focused':!![]}},m=await this['element']({...G,'state':{...G['state'],'active':!![]}});this['throwIfNoElement'](m),await tryMakeElementNotObscured(m,{'timeout':this['findTimeout']??0x2710,'signal':this['signal']}),await this['before']();const Y=await this['evaluate'](this['action']['size']),I=m['node'];if(!await I['execute']((c,o)=>{if(c instanceof HTMLInputElement&&['text','search','url','tel','password']['includes'](c['type'])||c instanceof HTMLTextAreaElement){if(c===document['activeElement'])c['setSelectionRange'](Math['max'](0x0,c['selectionStart']-o),c['selectionStart']);else c['focus'](),c['setSelectionRange'](Math['max'](0x0,c['value']['length']-o),c['value']['length']);return!![];}return![];},[Y]))throw new RunnerError('Element\x20is\x20not\x20a\x20textbox',{'code':ErrorCode['ELEMENT_NOT_TEXTBOX']});return await this['automator']['activePage']['keyboard']['press']('Backspace'),this['context']['activeElement']=I,await this['after'](),{'status':'success'};}},EvaluateHandler=class extends Handler{async['handle'](){this['throwIfBlocked'](),await this['stabilize'](),await this['before']();try{const G=await this['automator']['activePage']['mainFrame']['defaultEvaluate'](await this['evaluate'](this['action']['js']),{'await':!![]});return this['context']['scope']['public']['js-result']={'value':G},await this['after'](),{'status':'evaluated','meta':{'result':G}};}catch(m){if(m instanceof FlushError)throw m;else throw new RunnerError('Evaluation\x20failed',{'code':ErrorCode['EVALUATION_FAILED'],'error':m,'stack':m['stack']});}}},NavigateHandler=class extends Handler{async['handle'](){this['throwIfBlocked'](),await this['stabilize'](),await this['before']();if('direction'in this['action']){const G=await this['evaluate'](this['action']['times'])??0x1;await this['automator']['activePage']['navigateThroughHistory'](this['action']['direction']==='forward'?G:-G),log('navigationPerformed',{'kind':'history','historyDirection':this['action']['direction'],'times':G});if(isPdfViewerFrame(this['automator']['activePage']['mainFrame']))await waitForReady(this['automator']['activePage']['mainFrame']);return await this['after'](),{'status':'navigated'};}else{const m=this['navigateTimeout'],Y=await this['evaluate'](this['action']['url']||'');let I=this['action']['relative']||/^\.{0,2}\/|^[^\.\/]+$/['test'](Y)?new URL(Y,this['automator']['activePage']['url'])['toString']():Y;if(/^mock\+/['test'](Y))I='https://mock#'+Y['replace'](/^mock\+/,'');const c=await(/^(?:data|about):|(?:https?|ftps?|chrome):\/\//['test'](I)?this['automator']['activePage']['navigate'](I,{'timeout':m}):this['automator']['activePage']['navigate']('https://'+I,{'timeout':m})['catch'](o=>this['automator']['activePage']['navigate']('http://'+I,{'timeout':m})['catch'](async()=>Promise['reject'](o))))['catch'](async o=>{await this['automator']['activePage']['cancelNavigation']();throw o;});log('navigationPerformed',{'kind':'url','url':I,'statusCode':c['status']});if(isPdfViewerFrame(this['automator']['activePage']['mainFrame']))await waitForReady(this['automator']['activePage']['mainFrame']);await this['after']();if(!this['shouldNotThrowOnUnexpectedNavigationStatus']){if(this['action']['statuses']!=='*'){const o=[...this['action']['statuses']??[],...this['expectedNavigationStatuses']];if(o['length']>0x0?!o['includes'](c['status']):c['status']<0xc8||c['status']>0x12b)throw new RunnerError('The\x20navigation\x20to\x20url\x20\x22'+Y+'\x22\x20resulted\x20with\x20an\x20unexpected\x20status\x20code\x20'+c['status'],{'code':ErrorCode['UNEXPECTED_NAVIGATION_STATUS'],'status':c['status'],'headers':c['headers']});}return{'status':'navigated','meta':{...c}};}else return{'status':'navigated','meta':{...c,'statusExpected':this['action']['statuses']&&(this['action']['statuses']==='*'||this['action']['statuses']['includes'](c['status']))}};}}},GoHandler=class extends Handler{async['handle'](){this['throwIfBlocked'](),await this['stabilize']();const G=await this['evaluate'](this['action']['target']),m={'automator':this['automator'],'context':this['context'],'shouldCapture':this['shouldCapture'],'shouldNotThrowOnUnexpectedNavigationStatus':this['shouldNotThrowOnUnexpectedNavigationStatus'],'expectedNavigationStatuses':this['expectedNavigationStatuses']};return(isUrlString(G)?new NavigateHandler({...m,'instruction':{'type':'navigate','url':G}}):new ScrollHandler$1({...m,'instruction':{'type':'scroll','element':{'title':G}}}))['handle']();}},HitKeyHandler=class extends Handler{async['handle'](){this['throwIfBlocked'](),await this['stabilize'](),await this['before']();const G=this['action']['keys'],m=await this['evaluate'](this['action']['times'])??0x1;for(let Y=0x0;Y<m;++Y)if(['F5','ControlLeft+KeyR']['includes'](G['join']('+')))await this['automator']['activePage']['reload']();else{if(['ControlLeft+F5','ControlLeft+ShiftLeft+KeyR']['includes'](G['join']('+')))await this['automator']['activePage']['reload']({'hard':!![]});else{const I=await this['automator']['activePage']['mainFrame']['execute'](()=>{const c=document['activeElement'];return!!(c instanceof HTMLInputElement&&c['list']&&!['button','reset','submit']['includes'](c['type']));});await this['automator']['activePage']['keyboard']['press'](G,{'raw':I});}}return await this['after'](),{'status':'success'};}},HoverHandler=class extends Handler{async['handle'](){this['throwIfBlocked'](),await this['stabilize']();const G=await this['evaluate'](this['action']['element']),m=await this['element']({...G,'state':{...G['state'],'active':!![]}});this['throwIfNoElement'](m),await tryMakeElementNotObscured(m,{'timeout':this['findTimeout']??0x2710,'signal':this['signal']}),await this['before']();const Y=m['node'];return await Y['hover']({'signal':this['signal']}),this['context']['activeElement']=Y,await this['after'](),{'status':'success'};}},NavigatePdfHandler=class extends Handler{async['handle'](){this['throwIfBlocked'](),await this['stabilize'](),await this['before']();const G=await this['evaluate'](this['action']['page']);if(!isPdfViewerFrame(this['automator']['activePage']['mainFrame']))throw new RunnerError('Cannot\x20navigate\x20to\x20a\x20PDF\x20page:\x20the\x20active\x20page\x20is\x20not\x20a\x20PDF\x20viewer',{'code':ErrorCode['NOT_PDF_VIEWER']});const {pageCount:m,resolvedPage:Y}=await this['automator']['activePage']['mainFrame']['defaultExecute'](I=>{const c=globalThis['nlpPdfState'];if(!c)return{'pageCount':0x0,'resolvedPage':0x0};const {viewer:o}=c,W=I<0x0?o['pagesCount']+I+0x1:I;if(W<0x1||W>o['pagesCount'])return{'pageCount':o['pagesCount'],'resolvedPage':W};return o['currentPageNumber']=W,{'pageCount':o['pagesCount'],'resolvedPage':W};},[G]);if(Y<0x1||Y>m)throw new RunnerError('PDF\x20page\x20'+G+'\x20is\x20out\x20of\x20range',{'code':ErrorCode['PDF_PAGE_OUT_OF_RANGE'],'page':G,'pageCount':m});return await this['after'](),{'status':'success'};}},RefreshHandler=class extends Handler{async['handle'](){return this['throwIfBlocked'](),await this['stabilize'](),await this['before'](),await this['automator']['activePage']['reload']({'hard':this['action']['value']==='hard'}),await this['after'](),{'status':'success'};}},SearchHandler=class extends Handler{async['handle'](){this['throwIfBlocked'](),await this['stabilize']();const G=await this['evaluate'](this['action']['element'])??{'type':'textbox','title':'search'},m=await this['element']({...G,'type':[G['type']??[],'textbox']['flat']()});this['throwIfNoElement'](m),await tryMakeElementNotObscured(m,{'timeout':this['findTimeout']??0x2710,'signal':this['signal']}),await this['before']();const Y=await this['evaluate'](this['action']['value']||''),I=m['node'];return await this['throwIfCannotTypeToElement'](I),await I['focus'](),await this['automator']['activePage']['keyboard']['type'](Y),await this['automator']['activePage']['keyboard']['press']('Enter'),this['context']['activeElement']=I,await this['after'](),{'status':'success'};}};function formatDateTimeForInput(G,m){if(m==='time'&&G['match'](/^\d{2}:\d{2}(:\d{2})?$/))return G;const Y=/(\d{4}-\d{2}-\d{2})T?(\d{2}:\d{2})?:?(\d{2})?/;if(Y['test'](G))G=G['trim']()['endsWith']('Z')?G:G+'Z';else G+='\x20UTC';const I=new Date(G)['toISOString'](),c=I['match'](Y);if(!c)return I;const o=c[0x1],W=parseInt(c[0x3]),U=W?c[0x2]+':'+W:c[0x2];if(m==='date')return o;if(m==='time')return U;return o+'T'+U;}var SetValueHandler=class extends Handler{async['handle'](){this['throwIfBlocked'](),await this['stabilize']();const G=await this['evaluate'](this['action']['value']??'');if(isFileHandle(this['action']['value'])&&this['automator']['activePage']['dialog']?.['type']==='filepicker')await this.#setValueInFilepickerDialog(this['automator']['activePage']['dialog'],G);else{const m=await this['evaluate'](this['action']['element']),Y=await this['element']({...m,'type':m['type']??'inputbox'});this['throwIfNoElement'](Y),await tryMakeElementNotObscured(Y,{'timeout':this['findTimeout']??0x2710,'signal':this['signal']}),await this['before']();const I=Y['node'];if(!await I['focus']()&&!await I['execute'](o=>o instanceof HTMLFieldSetElement))throw new RunnerError('Element\x20is\x20not\x20interactive',{'code':ErrorCode['ELEMENT_NOT_INTERACTIVE']});const c=await I['execute'](o=>{if(o instanceof HTMLFieldSetElement||o instanceof HTMLSelectElement)return'selectable';else{if(o instanceof HTMLInputElement&&o['type']==='color')return'colorpicker';else{if(o instanceof HTMLInputElement&&o['type']==='date')return'datepicker';else{if(o instanceof HTMLInputElement&&o['type']==='time')return'timepicker';else{if(o instanceof HTMLInputElement&&o['type']==='datetime-local')return'datetimepicker';else{if(o instanceof HTMLInputElement&&o['type']==='file')return'filepicker';else return'inputbox';}}}}}});if(c==='selectable')await this.#setValueInSelectable(I,G);else{if(c==='colorpicker')await this.#setValueInColorPicker(I,G);else{if(c==='datepicker')await this.#setValueInDatePicker(I,G);else{if(c==='timepicker')await this.#setValueInTimePicker(I,G);else{if(c==='datetimepicker')await this.#setValueInDateTimePicker(I,G);else await I['setValue'](G);}}}}this['context']['activeElement']=I;}return await this['after'](),{'status':'success'};}async #setValueInSelectable(G,m){if(isRandomValue(this['action']['value'])&&this['action']['value']['type']==='number'){const Y=await G['execute'](I=>{if(I instanceof HTMLSelectElement)return I['options']['length'];else{if(I instanceof HTMLFieldSetElement)return I['querySelectorAll']('input[type=\x22radio\x22],input[type=\x22checkbox\x22]')['length'];else return 0x0;}});m=Math['floor'](m*Y);}if(!await G['execute'](async(I,c)=>{if(I instanceof HTMLSelectElement){let o;if(typeof c==='number')o=I['options'][c];else{if(typeof c==='string'){const W=Array['prototype']['find']['bind'](I['options']),U=String(c)['toLowerCase']();o=W(u=>[u['value']['toLowerCase'](),u['textContent']['toLowerCase']()]['includes'](U))??W(u=>u['text']['toLowerCase']()['includes'](U));}}if(o)return o['selected']=!![],I['dispatchEvent'](new Event('input',{'bubbles':!![],'composed':!![]})),I['dispatchEvent'](new Event('change',{'bubbles':!![]})),!![];}else{if(I instanceof HTMLFieldSetElement){let u;if(typeof c==='number')u=I['querySelectorAll']('input[type=\x22radio\x22],input[type=\x22checkbox\x22]')[c];else{if(typeof c==='string'){const p=c['toLowerCase'](),E=Array['from'](I['querySelectorAll']('input[type=\x22radio\x22],input[type=\x22checkbox\x22]')),B=[t=>t===p,t=>t['startsWith'](p),t=>t['includes'](p)];for(const t of B)u=E['find'](D=>Array['from'](D['labels']??[])['some'](C=>C['innerText']&&t(C['innerText']['toLowerCase']()))||t(D['value']?.['toLowerCase']()));}}if(u)return u['checked']=!![],u['dispatchEvent'](new Event('input',{'bubbles':!![],'composed':!![]})),u['dispatchEvent'](new Event('change',{'bubbles':!![]})),!![];}}return![];},[m],{'await':!![]}))throw new RunnerError('desired\x20option\x20'+JSON['stringify'](m)+'\x20was\x20not\x20found',{'code':ErrorCode['NO_OPTION'],'value':m});}async #setValueInColorPicker(G,m){const {r:Y,g:I,b:c}=stringToColorOrThrow(m),o='#'+Number(Y)['toString'](0x10)['padStart'](0x2,'0')+Number(I)['toString'](0x10)['padStart'](0x2,'0')+Number(c)['toString'](0x10)['padStart'](0x2,'0');await G['setValue'](o);}async #setValueInDatePicker(G,m){await G['setValue'](formatDateTimeForInput(m,'date'));}async #setValueInTimePicker(G,m){await G['setValue'](formatDateTimeForInput(m,'time'));}async #setValueInDateTimePicker(G,m){await G['setValue'](formatDateTimeForInput(m,'datetime'));}async #setValueInFilepickerDialog(G,m){await G['handle']([m]);}},SwitchTargetHandler=class extends Handler{async['handle'](){await this['stabilize'](),await this['before']();if('index'in this['action']){const G=await this['evaluate'](this['action']['index']),m=Array['from'](this['automator']['pages']());if(G>=m['length'])throw new RunnerError('Can\x27t\x20find\x20browser\x20tab\x20with\x20index\x20'+G+',\x20because\x20there\x20is\x20only\x20'+m['length']+'\x20browser\x20tab(s)',{'code':ErrorCode['NO_TAB']});await m[G]['activate']();}else{if('position'in this['action']){if(this['action']['position']==='previous'){if(!await this['automator']['activatePreviousPage']())throw new RunnerError('Can\x27t\x20switch\x20to\x20the\x20previous\x20tab\x20because\x20there\x20is\x20no\x20history\x20of\x20navigation\x20among\x20the\x20tabs',{'code':ErrorCode['NO_TAB_HISTORY']});}else{if(!await this['automator']['activateNextPage']()){const Y=Array['from'](this['automator']['pages']());if(Y['length']<=0x1)throw new RunnerError('Can\x27t\x20switch\x20to\x20the\x20next\x20tab\x20because\x20the\x20current\x20tab\x20is\x20already\x20located\x20at\x20the\x20top\x20of\x20history\x20and\x20there\x20are\x20no\x20other\x20tabs\x20to\x20switch\x20to',{'code':ErrorCode['NO_NEXT_TAB']});await Y[(Y['findIndex'](I=>I===this['automator']['activePage'])+0x1)%Y['length']]['activate']();}}}else{if('title'in this['action']){const I=Array['from'](this['automator']['pages']()),c=await this['evaluate'](this['action']['title']),o=new RegExp('\x5cb'+c+'\x5cb','i'),W=I['find'](U=>o['test'](U['title']));if(!W)throw new RunnerError('Can\x27t\x20find\x20the\x20browser\x20tab\x20with\x20title\x20\x22'+c+'\x22',{'code':ErrorCode['NO_TAB']});await W['activate']();}}}return await this['after'](),{'status':'success'};}},CheckHandler=class extends Handler{async['handle'](){await this['stabilize']();const G=await this['evaluate'](this['action']['element']),m=await this['element']({...G,'type':G['type']??'checkbox'});this['throwIfNoElement'](m),await this['before']();const Y=m['state']['checked']??![];if(typeof this['action']['value']!=='boolean'||Y!==this['action']['value'])await m['node']['click']();return await this['after'](),{'status':'success'};}},ClickHandler=class extends Handler{async['handle'](){await this['stabilize']();const G=await this['evaluate'](this['action']['element']),m=await this['element']({...G,'state':{...G&&'state'in G?G['state']:{},'active':!![]},'hints':{'type':'button'}});return this['throwIfNoElement'](m),this['handleWithElement'](m);}async['handleWithElement'](G){await this['before']();const {times:m}=this['action'];return await G['node']['click']({'times':m}),await sleep(0x64),await this['after'](),{'status':'success'};}},FindHandler=class extends Handler{async['handle'](){await this['stabilize']();const G=await this['evaluate'](this['action']['element']),m=await this['element'](G);return this['throwIfNoElement'](m),await this['before'](),await this['after'](),{'status':'found'};}},FocusHandler=class extends Handler{async['handle'](){await this['stabilize']();const G=await this['evaluate'](this['action']['element']),m=await this['element'](G);return this['throwIfNoElement'](m),await this['before'](),await m['node']['focus'](),await this['after'](),{'status':'success'};}},ScrollHandler=class extends Handler{async['handle'](){await this['stabilize'](),await this['before']();throw new RunnerError('Scroll\x20action\x20is\x20not\x20supported\x20on\x20mobile\x20yet',{'code':ErrorCode['NOT_IMPLEMENTED']});}},TypeHandler=class extends Handler{async['handle'](){await this['stabilize']();const G=stringify(await this['evaluate'](this['action']['value']??'')),m=await this['evaluate'](this['action']['element'])??(isOTP(this['action']['value'])?{'type':'textbox','title':'code','fallback':{'state':{'focused':!![]}}}:{'state':{'focused':!![]}}),Y=await this['element']({...m,'state':{...m&&'state'in m?m['state']:{},'active':!![]},'type':[(m&&'type'in m?m['type']:void 0x0)??[],'textbox']['flat']()});return this['throwIfNoElement'](Y),await this['before'](),await this['throwIfCannotTypeToElement'](Y['node']),await Y['node']['click'](),await Y['node']['type'](G),await this['after'](),{'status':'success'};}};const noop={},common={'assert':AssertHandler,'wait':WaitHandler,'empty':EmptyHandler,'comment':EmptyHandler,'fetch':FetchHandler,'set\x20variable':SetVariableHandler,'visual\x20check':VisualCheckHandler,'intent':IntentHandler,'set\x20preinstructions':DefinePreinstructionsHandler,'drop\x20preinstructions':DefinePreinstructionsHandler,'initialize\x20scope':InitializeScopeHandler,'try':TryHandler,'if':IfHandler},web={'check':CheckHandler$1,'clear':ClearHandler,'click':ClickHandler$1,'close':CloseHandler,'close\x20target':CloseTargetHandler,'create\x20target':CreateTargetHandler,'erase':EraseHandler,'evaluate':EvaluateHandler,'find':FindHandler$1,'focus':FocusHandler$1,'hit\x20key':HitKeyHandler,'hover':HoverHandler,'navigate':NavigateHandler,'navigate\x20pdf':NavigatePdfHandler,'refresh':RefreshHandler,'scroll':ScrollHandler$1,'search':SearchHandler,'set\x20value':SetValueHandler,'switch\x20target':SwitchTargetHandler,'type':TypeHandler$1,'visual\x20check':VisualCheckHandler,'go':GoHandler},mobile={'check':CheckHandler,'click':ClickHandler,'find':FindHandler,'focus':FocusHandler,'scroll':ScrollHandler,'type':TypeHandler},handlers={'web':{...noop,...common,...web},'mobile':{...noop,...common,...mobile}};function makeHandler(G){if(!(G['automator']['type']in handlers))throw new Error('The\x20automator\x20type\x20\x22'+G['automator']['type']+'\x22\x20isn\x27t\x20supported');if(!(G['instruction']['type']in handlers[G['automator']['type']]))throw new Error('The\x20instruction\x20type\x20\x22'+G['automator']['type']+'\x22\x20isn\x27t\x20supported\x20with\x20'+G['automator']['type']+'\x20automator');const m=handlers[G['automator']['type']][G['instruction']['type']];return new m(G);}var FlagStore=class extends EventTargetNode{#flags={'pdfViewer':{'description':'Intercept\x20PDF\x20requests\x20and\x20serve\x20the\x20NLP\x20DOM-based\x20viewer\x20instead\x20of\x20the\x20browser\x20PDF\x20viewer','value':![]}};#set(G,m){const Y=this.#flags[G]?.['value'];if(m===Y)return;this.#flags[G]['value']=m,this['dispatch'](new FlagChangedEvent(G,m,Y));}get['pdfViewer'](){return this.#flags['pdfViewer']['value'];}set['pdfViewer'](G){this.#set('pdfViewer',G);}['set'](G){for(const m of Object['keys'](G)){const Y=G[m];if(Y!==void 0x0)this[m]=Y;}}['toJSON'](){return this.#flags;}},FlagChangedEvent=class extends Event{['key'];['value'];['previousValue'];constructor(G,m,Y){super('flagChanged'),this['key']=G,this['value']=m,this['previousValue']=Y;}};const flags=new FlagStore(),VIEWER_HTML_PATH=new URL('../../assets/index-C5rB_Uzy.html',import.meta.url);function installPdfInterceptor(G){return G['intercept']([{'resource':['Document'],'stage':['response']}],async m=>{if(!flags['pdfViewer']||!(m instanceof InterceptedResponse)||!isPdfResponse(m))return;try{const Y=await m['base64'](),I=await getViewerHtml();if(!I['includes']('__NLP_PDF_BYTES__'))throw new Error('viewer\x20HTML\x20is\x20missing\x20the\x20bytes\x20placeholder\x20\x22'+PDF_BYTES_PLACEHOLDER+'\x22');const c=I['replace'](PDF_BYTES_PLACEHOLDER,Y);await m['fulfill']({'status':0xc8,'headers':{'content-type':'text/html;\x20charset=utf-8','x-nlp-pdf-viewer':'1'},'body':new TextEncoder()['encode'](c)}),log('pdfInterceptorReplaced',{'url':m['request']['url']});}catch(o){error('pdfInterceptorFailed',{'error':o});}});}function isPdfResponse(G){const m=Object['entries'](G['headers'])['find'](([Y])=>Y['toLowerCase']()==='content-type')?.[0x1]??'';return/^application\/(?:x-)?pdf\b/i['test'](m);}let viewerHtmlPromise;function getViewerHtml(){if(!viewerHtmlPromise)viewerHtmlPromise=readFile(VIEWER_HTML_PATH,'utf8')['catch'](G=>{viewerHtmlPromise=void 0x0;throw G;});return viewerHtmlPromise;}function makeScope(G){return new Scope(G);}var Scope=class{#storages=new Map();#global={};#main;#active;get['main'](){return this.#main;}get['active'](){return this.#active;}get['global'](){return this.#global;}get['public'](){let G={...this.#global},m=this.#active;while(m){G={...m['input'],...m['public'],...G},m=m['parent'];}return new Proxy(G,{'set':(Y,I,c)=>{return this.#storages['forEach'](o=>Reflect['set'](o['public'],I,c)),!![];},'deleteProperty':(Y,I)=>{return this.#storages['forEach'](c=>Reflect['deleteProperty'](c['public'],I)),!![];}});}get['internal'](){let G={},m=this.#active;while(m){G={...m['internal'],...G},m=m['parent'];}return new Proxy(G,{'set':(Y,I,c)=>{const o=this.#active;return Reflect['set'](o['internal'],I,c),!![];},'deleteProperty':(Y,I)=>{return this.#storages['forEach'](c=>Reflect['deleteProperty'](c['internal'],I)),!![];}});}constructor(G){this.#global=G['global'],this.#main=this['set']('main',G),this.#active=this.#main;}['activate'](G){if(!this.#storages['has'](G))throw new Error('Unknown\x20scope\x20with\x20id\x20\x22'+G+'\x22');this.#active=this.#storages['get'](G);}['initialize'](G){this.#active['input']=Object['fromEntries'](Object['entries'](G['input']??{})['map'](([m,Y])=>[m['toLowerCase'](),Y])),this.#active['public']=Object['fromEntries'](Object['entries'](G['public']??{})['map'](([m,Y])=>[m['toLowerCase'](),Y])),this.#active['public']=G['internal'];}['available'](G){return this.#storages['get'](G)?.['parent']===this.#active;}['set'](G,m){const Y={'name':G,'parent':G==='main'?null:this.#active,'input':Object['fromEntries'](Object['entries'](m['input']??{})['map'](([I,c])=>[I['toLowerCase'](),c])),'public':Object['fromEntries'](Object['entries'](m['public']??{})['map'](([I,c])=>[I['toLowerCase'](),c])),'internal':m['internal']??{}};return this.#storages['set'](G,Y),Y;}['reset'](){this.#storages=new Map(),this.#main=this['set']('main',{...this.#main,'public':{}}),this.#active=this.#main;}};const connect=buildConnector({'allowH2':!![],'rejectUnauthorized':![]});function makeDispatcher({proxy:G}={}){return G?new Socks5ProxyAgent(G['url'],{'username':G['username'],'password':G['password'],'connect':connect}):new Agent({'connect':connect});}function makePageData({browser:G}){return{get 'url'(){return makeUrlData(G['activePage']['url']);},get 'title'(){return G['activePage']['title'];},get 'status'(){return G['activePage']['mainFrame']['response']['status'];},get 'statustext'(){return G['activePage']['mainFrame']['response']['statusText'];},get 'headers'(){const m=G['activePage']['mainFrame']['response']['headers'];return{...Object['fromEntries'](Object['entries'](m)['map'](([Y,I])=>[Y['toLowerCase'](),I])),[Symbol['for']('get')](Y){return this[Y['toLowerCase']()];}};},get 'cookies'(){return{};},get 'meta'(){return{};},get 'width'(){return NaN;},get 'height'(){return NaN;},async[Symbol['for']('get')](m){if(m==='title')return G['activePage']['mainFrame']['evaluate']('document.title');else{if(m==='cookies'){const Y=await G['activePage']['getCookies']();return Object['fromEntries'](Y['entries']());}else{if(m==='meta')return G['activePage']['mainFrame']['execute'](()=>{const I=document['head']['querySelectorAll']('meta[name],\x20meta[property]');return Array['from'](I)['reduce']((c,o)=>{const W=o['getAttribute']('property')||o['name'];if(W)c[W]=o['content']??'';return c;},{});});else{if(m==='width')return G['activePage']['mainFrame']['evaluate']('document.scrollingElement.scrollWidth');else{if(m==='height')return G['activePage']['mainFrame']['evaluate']('document.scrollingElement.scrollHeight');else return this[m];}}}}}};}function makePdfData({browser:G}){const m={get 'name'(){return'';},get 'pagecount'(){return 0x0;},get 'currentpage'(){return 0x0;},async[Symbol['for']('get')](Y){const I=Y['toLowerCase']();if(I==='name')return G['activePage']['mainFrame']['defaultExecute'](()=>document['title']);else{if(I==='pagecount')return G['activePage']['mainFrame']['defaultExecute'](()=>globalThis['nlpPdfState']?.['viewer']?.['pagesCount']??0x0);else{if(I==='currentpage')return G['activePage']['mainFrame']['defaultExecute'](()=>globalThis['nlpPdfState']?.['viewer']?.['currentPageNumber']??0x0);}}}};return{get 'value'(){const Y=G['activePage']?.['mainFrame'];if(!Y||!isPdfViewerFrame(Y))return null;return m;}};}const INDICATOR_PATTERN=/loading|loader|spinner|spin|progress|waiting|busy/i;function isPageSpinnerVisible(G){return G['popups']['some'](nodeHasSpinnerIndicators);}function nodeHasSpinnerIndicators(G){const m=G['attributes'];if(m){if(m['role']==='status'||m['role']==='progressbar'||m['aria-busy']==='true')return!![];if(m['class']&&INDICATOR_PATTERN['test'](m['class']))return!![];if(m['id']&&INDICATOR_PATTERN['test'](m['id']))return!![];}if(G['text']&&INDICATOR_PATTERN['test'](G['text']))return!![];if(G['visibleLabel']&&INDICATOR_PATTERN['test'](G['visibleLabel']))return!![];if(G['declarativeLabel']&&INDICATOR_PATTERN['test'](G['declarativeLabel']))return!![];return![];}function parseIOSFrame(G){if(!G)return{'x':0x0,'y':0x0,'width':0x0,'height':0x0};const m=G['match'](/\{\{([\d.]+),\s*([\d.]+)\},\s*\{([\d.]+),\s*([\d.]+)\}\}/);if(!m)return{'x':0x0,'y':0x0,'width':0x0,'height':0x0};return{'x':parseFloat(m[0x1]),'y':parseFloat(m[0x2]),'width':parseFloat(m[0x3]),'height':parseFloat(m[0x4])};}function makeIOSNode(G){return new IOSNode(G);}var IOSNode=class{['handle'];#connection;constructor({connection:G,handle:m}){this.#connection=G,this['handle']=m;}async['equal'](G){return this===G;}async['click'](G){await this.#connection['sendGesture']({'type':G?.['times']===0x2?'doubleTap':'tap','target':{'type':'element','elementSnapshot':this['handle']},'parameters':{'taps':G?.['times']??0x1}});}async['focus'](){return await this['click'](),!![];}async['type'](G){await this.#connection['sendGesture']({'type':'typeText','target':{'type':'element','elementSnapshot':this['handle']},'parameters':{'text':G}});}async['isContentEditable'](){return![];}async['setCaretPosition'](G){}async['canTypeInto'](){return!![];}async['getBox'](){return parseIOSFrame(this['handle']['Frame']);}async['getScreenBox'](){return this['getBox']();}async['getContentBoxes'](){return[parseIOSFrame(this['handle']['Frame'])];}async['isVisible'](){return!![];}async['getText'](){return this['handle']['Value']||this['handle']['Label']||'';}async['getValue']({hint:hint='string'}={}){if(hint==='boolean'){if(this['handle']['ElementType']==='XCUIElementTypeSwitch')return String(this['handle']['Value'])==='1';}return this['handle']['Value'];}async['isEnabled'](){return this['handle']['Enabled']??null;}async['isHovered'](){return null;}async['getObscurationInfo'](){return{'ratio':0x0};}async['getDescription'](){return'';}},Device=class{['type']='mobile';['connection'];['blocked']=![];constructor({connection:G}){this['connection']=G;}async['stabilize'](G,m){}async['captureScreenshot'](){return this['connection']['getScreenshot']();}async['extractFlatAXTree'](){const G=await this['connection']['extractFlatAXTree'](),m={...G,'nodes':[]};for(const Y of G['nodes'])m['nodes']['push']({...Y,'node':makeIOSNode({'connection':this['connection'],'handle':Y['node']})});return m;}};const extractAXTree$1=makeBundledScript({'name':'extractAXTree','url':new URL('../../assets/extract-ax-tree-C1W4XHTq.js',import.meta.url)}),extractPdfAXTree=makeBundledScript({'name':'extractPdfAXTree','url':new URL('../../assets/extract-pdf-ax-tree-DI_Yi3DA.js',import.meta.url)});makeBundledScript({'name':'wipeOriginStorage','url':new URL('../../assets/wipe-origin-storage-CF1Vf2FY.js',import.meta.url)}),makeBundledExpression({'name':'recorder','url':new URL('../../assets/recorder-MSk-R6yL.js',import.meta.url)});const version$2='1.5.0';var AXNodeView=class AXNodeView extends EventTarget$1{['_tree'];['_nodes']=[];['debugLog'];['_parent']=null;['_children']=[];['_host']=null;['_popup']=null;['_panel']=null;['_backgroundRoot']=null;['_stackingContextRoot']=null;['_overflowRoot']=null;['_controlNodes']=[];['_type']={};['_state']={};['_style']={};['_options'];['_text']='';['_visibleLabel']='';['_geometricLabel'];['_declarativeLabel']='';['_visibleDescription']='';['_declarativeDescription']='';['_attributes']=Object['create'](null);['_isStackingContextRoot']=![];['_elevation']=0x0;['_borderRect'];['_contentRect'];['_scrollable'];['_role'];['depth']=-0x1;['pre']=-0x1;['post']=-0x1;['rowCells'];['colCells'];['rows'];['columns'];get['tree'](){return this['_tree'];}get['node'](){return this['_nodes'][0x0];}get['incorporated'](){return this['_nodes'];}get['parent'](){return this['_parent'];}get['host'](){return this['_host'];}get['popup'](){return this['_popup'];}get['card'](){return this['_panel'];}get['backgroundRoot'](){return this['_backgroundRoot'];}get['controlNodes'](){return this['_controlNodes'];}get['stackingContextRoot'](){return this['_stackingContextRoot'];}get['overflowRoot'](){return this['_overflowRoot'];}get['children'](){return this['_children'];}get['disconnected'](){return!this['parent']?.['children']['includes'](this);}get['invisible'](){return this['style']['opacity']===0x0||this['_style']['hidden']||this['borderRect']['width']<=0x1&&this['borderRect']['height']<=0x1;}get['transparent'](){return!this['type']['image']&&!this['_style']['backgroundColor'];}get['appearance'](){return!this['style']['hidden']&&(!this['transparent']||this['hasBorder']);}get['inViewport'](){return new Rectangle(0x0,0x0,this['tree']['viewport']['width'],this['tree']['viewport']['height'])['intersects'](this['borderRect']);}get['type'](){return this['_type'];}get['state'](){return this['_state'];}get['style'](){return this['_style'];}get['options'](){return this['_options'];}get['text'](){return this['_text'];}get['visibleLabel'](){return this['_visibleLabel'];}get['geometricLabel'](){return this['_geometricLabel'];}get['declarativeLabel'](){return this['_declarativeLabel'];}get['visibleDescription'](){return this['_visibleDescription'];}get['declarativeDescription'](){return this['_declarativeDescription'];}get['titles'](){return{...this['_text']?{'text':this['_text']}:{},...this['_visibleLabel']?{'visibleLabel':this['_visibleLabel']}:{},...this['_geometricLabel']?{'geometricLabel':this['_geometricLabel']}:{},...this['_declarativeLabel']?{'declarativeLabel':this['_declarativeLabel']}:{}};}get['attributes'](){return this['_attributes'];}get['isStackingContextRoot'](){return this['_isStackingContextRoot'];}get['elevation'](){return this['_elevation'];}get['borderRect'](){return this['_borderRect'];}get['visibleBorderRect'](){if(!this['_overflowRoot'])return this['borderRect'];return this['borderRect']['intersection'](this['_overflowRoot']['contentRect'])??new Rectangle(this['borderRect']['x'],this['borderRect']['y'],0x0,0x0);}get['contentRect'](){return this['_contentRect'];}get['scrollable'](){return this['_scrollable'];}get['role'](){return this['_role'];}get['rects'](){return{'border':this['_borderRect'],'content':this['_contentRect']};}get['hasBorder'](){return this['_style']['border']&&this['_style']['border']['length']>0x0;}get['isContrastingToBackground'](){return this['_style']['backgroundColor']!=null||!!this['type']['image'];}get['computedBackground'](){if(this['_style']['backgroundColor'])return this['_style']['backgroundColor'];if(this['type']['image'])return'image';if(this['_backgroundRoot']){if(this['_backgroundRoot']['type']['image'])return'image';return this['_backgroundRoot']['style']['backgroundColor']??null;}return null;}get['isVisuallySeparated'](){return this['isContrastingToBackground']||this['hasBorder'];}get['isOpaque'](){if(this['transparent'])return![];const G=0.9;return(this['style']['backgroundColor']?.['a']??0x1)>=G||(this['_style']['opacity']??0x1)>=G;}constructor(G){super(),this['_tree']=G;}*['ancestors']({up:G}={}){G??=Y=>Y['parent'];let m=G(this);while(m){yield m,m=G(m);}}*['descendants']({dead:G,leaf:m}={}){const Y=[...this['children']];while(Y['length']>0x0){const I=Y['shift']();if(G?.(I))continue;yield I;if(!m?.(I))Y['push'](...I['children']);}}*['nodes']({dead:G,leaf:m}={}){const Y=[this];while(Y['length']>0x0){const I=Y['shift']();if(G?.(I))continue;yield I;if(!m?.(I))Y['push'](...I['children']);}}['ancestor'](G){for(const m of this['ancestors']())if(G(m))return m;return null;}['lca'](...G){let m=this,Y=G['reduce']((c,o)=>{if(o['depth']<m['depth'])c['push'](m),m=o;else c['push'](o);return c;},[]),I=m;while(I){Y=Y['filter'](c=>!I['contains'](c));if(Y['length']===0x0)return I;else I=I['parent'];}return I;}['contains'](G){return this['pre']<G['pre']&&this['post']>G['post'];}['precedes'](G){return this['pre']<G['pre'];}['follows'](G){return this['pre']>G['pre'];}['beneath'](...G){const m=[this,...this['ancestors']({'up':Y=>Y['stackingContextRoot']})];return G['some'](Y=>{if(this===Y)return![];if(Y['contains'](this))return![];if(this['contains'](Y))return Y['borderRect']['contains'](this['borderRect'])&&(Y['borderRect']['area']>this['borderRect']['area']||Y['borderRect']['width']>=Y['tree']['viewport']['width']&&Y['borderRect']['height']>=Y['tree']['viewport']['height']);const I=new Rectangle(0x0,0x0,this['tree']['viewport']['width'],this['tree']['viewport']['height']);if(!((Y['borderRect']['intersection'](I)?.['area']||0x0)/I['area']>=0.9)){const u=this['borderRect']['intersection'](Y['borderRect']);if(!u||u['area']/this['borderRect']['area']<0.5)return![];}const c=[Y,...Y['ancestors']({'up':p=>!m['includes'](p)?p['stackingContextRoot']:null})];let o,W;const U=m['lastIndexOf'](c['at'](-0x1));U===-0x1?(o=m['at'](-0x1),W=c['at'](-0x1)):(o=m[U-0x1],W=c['at'](-0x2));if(o['elevation']<W['elevation'])return!![];else{if(o['elevation']===W['elevation']){if(o['precedes'](W))return!![];}}});}['distance'](G){const m=this['lca'](G);if(!m)return Infinity;return this['depth']-m['depth']+G['depth']-m['depth'];}['toJSON'](){return{'type':this['_type'],'text':this['_text'],'visibleLabel':this['_visibleLabel'],'geometricLabel':this['geometricLabel'],'declarativeLabel':this['_declarativeLabel'],'visibleDescription':this['_visibleDescription'],'declarativeDescription':this['_declarativeDescription'],'attributes':this['_attributes'],'state':this['_state'],'style':this['_style'],'options':this['_options']?.['map'](({node:G,...m})=>m),'borderRect':this['_borderRect']?{'x':this['_borderRect']['x'],'y':this['_borderRect']['y'],'width':this['_borderRect']['width'],'height':this['_borderRect']['height']}:void 0x0,'elevation':this['_elevation'],'scrollable':this['_scrollable'],'children':this['_children']['map'](G=>G['toJSON']()),'debugLog':this['debugLog']};}[Symbol['for']('nodejs.util.inspect.custom')](G,m,Y){return'AXNode\x20'+Y({'node':this['node']??{[Symbol['for']('nodejs.util.inspect.custom')]:(I,c)=>{const o=Object['keys'](this['type']),W=o['length']>0x0?o['reduce']((U,u)=>this['type'][u]>this['type'][U]?u:U):'unknown';return c['stylize']('<'+W+'\x20/>','special');}},'attributes':this['attributes'],'type':this['type'],'titles':this['titles'],'state':this['state'],'style':this['style']},{...m,'compact':!![],'breakLength':Infinity});}static['fromJSON'](G,m,Y){const I=new AXNodeView(G);I['_parent']=Y,I['_type']=m['type']??{},I['_text']=m['text']??'',I['_visibleLabel']=m['visibleLabel']??'',I['_geometricLabel']=m['geometricLabel']??'',I['_declarativeLabel']=m['declarativeLabel']??'',I['_visibleDescription']=m['visibleDescription']??'',I['_declarativeDescription']=m['declarativeDescription']??'',I['_attributes']=m['attributes']??Object['create'](null),I['_state']=m['state']??{},I['_style']=m['style']??{},I['_options']=m['options'];m['borderRect']&&(I['_borderRect']=new Rectangle(m['borderRect']['x'],m['borderRect']['y'],m['borderRect']['width'],m['borderRect']['height']),I['_contentRect']=I['_borderRect']);if(m['elevation']!==void 0x0)I['_elevation']=m['elevation'];if(m['scrollable'])I['_scrollable']=m['scrollable'];if(m['debugLog'])I['debugLog']=m['debugLog'];return I['_children']=(m['children']??[])['map'](c=>AXNodeView['fromJSON'](G,c,I)),I;}},AXTreeView=class AXTreeView{['_viewport'];['_direction'];['_version'];['_root'];['_hosts']=[];['_popups']=[];['_collected']=[];['_nodeCount']=0x0;['_rtree']=new RTree();['_mapping']=new Map();get['viewport'](){return this['_viewport'];}get['direction'](){return this['_direction'];}get['version'](){return this['_version'];}get['root'](){return this['_root'];}get['nodeCount'](){return this['_nodeCount'];}get['hosts'](){return this['_hosts'];}get['popups'](){return this['_popups'];}get['collected'](){return this['_collected'];}constructor(G){this['_viewport']=G['viewport'],this['_direction']=G['direction'],this['_version']=G['version'];}*['nodes'](){yield*this['_root']['nodes']();}['search'](G){return this['_rtree']['search'](G);}['lca']([G,...m]){return G['lca'](...m);}[Symbol['iterator']](){return this['nodes']();}['findByNode'](G){return this['_mapping']['get'](G);}['toJSON'](){return{'viewport':this['_viewport'],'direction':this['_direction'],'version':this['_version'],'root':this['_root']['toJSON'](),'hosts':this['_hosts']['map'](G=>G['toJSON']()),'popups':this['_popups']['map'](G=>G['toJSON']()),'collected':this['_collected']['map'](G=>G['toJSON']())};}[Symbol['for']('nodejs.util.inspect.custom')](G,m,Y){let I='';const c=[this['_root']];while(c['length']>0x0){const o=c['shift']();I+='\x20\x20'['repeat'](o['depth'])+Y(o,m)+'\x0a',c['unshift'](...o['children']);}return I;}static['fromJSON'](G){const m=new AXTreeView({'viewport':G['viewport'],'direction':G['direction'],'version':G['version']});m['_root']=AXNodeView['fromJSON'](m,G['root'],null),m['_nodeCount']=0x0;for(const Y of m['_root']['nodes']()){m['_nodeCount']++;if(Y['type']['text']&&Y['rects']['border'])m['_rtree']['insert']({'rect':Y['borderRect'],'data':Y});}return m['_root']['depth']=0x0,orderSubtree(m['_root']),m;}};function orderSubtree(G){let m=0x0,Y=0x0;const I=[{'node':G,'visited':![]}];while(I['length']>0x0){const c=I['at'](-0x1);if(!c['visited']){c['node']['pre']=m++;for(let o=c['node']['children']['length']-0x1;o>=0x0;--o){c['node']['children'][o]['depth']=c['node']['depth']+0x1,I['push']({'node':c['node']['children'][o],'visited':![]});}c['visited']=!![];}else c['node']['post']=Y++,I['pop']();}}async function extractAXTree(G,m){let Y;if(G instanceof Browser)await G['wait']('stable'),Y=await extractWebAXTree(G['activePage'],m);else{if(G instanceof Device)Y=await extractMobileAXTree(G);else throw new Error('Can\x27t\x20extract\x20ax\x20tree\x20of\x20unknown\x20automator\x20implementation');}return Y['version']??=version$2,Y;}async function extractWebAXTree(G,m){const Y=performance['now'](),I=m?.['debug']||Boolean(process.env.AX_TREE_DEBUG);await G['wait']('stable');if(isPdfViewerFrame(G['mainFrame'])){const o=await extractPdfFlatAXTree(G['mainFrame']);return log('axTreeExtracted',{'kind':'pdf','durationMs':performance['now']()-Y}),o;}const c=await extractWebFlatAXTree(G['mainFrame'],{'debug':I});while(c['unaccessibleHosts']['length']>0x0){const W=c['unaccessibleHosts']['shift']();try{const U=c['nodes'][W],u=await U['node']['getContentFrame']();if(u['isAd']){U['type']['ad']=0x1;continue;}await u['wait']('stable');const p=await extractWebFlatAXTree(u,{'offset':{'index':c['nodes']['length'],'location':{'x':U['contentRect']['x'],'y':U['contentRect']['y']}},'debug':I});p['nodes']['length']>0x0&&(c['nodes']['push'](...p['nodes']),c['unaccessibleHosts']['push'](...p['unaccessibleHosts']),U['children']=[p['offset']['index']]);}catch(E){log('axTreeExtractionAborted',{'error':E});}}return log('axTreeExtracted',{'kind':'ax','durationMs':performance['now']()-Y}),c;}async function extractWebFlatAXTree(G,m){return await G['execute'](extractAXTree$1,[m]);}async function extractPdfFlatAXTree(G){return await G['defaultExecute'](extractPdfAXTree,[],{'await':!![]});}async function extractMobileAXTree(G){return G['extractFlatAXTree']();}var AXSnapshot=class{['collectIdentity']=![];['generation']=0x0;['flatAXTree'];['axTree'];['initFlatAXTree'](G){this['flatAXTree']=G,startCollapseLog();}['initAXTree'](G){this['axTree']=G,++this['generation'],flushCollapseLog(this['generation']);}['toJSON'](){return{'generation':this['generation'],'flatTree':this['flatAXTree']?{...this['flatAXTree'],'nodes':this['flatAXTree']['nodes']['map'](({node:G,...m})=>m)}:void 0x0,'axTree':this['axTree']?.['toJSON']()??void 0x0};}};const axSnapshot=new AXSnapshot(),MAX_LOGGED_COLLAPSES=0xc8,MAX_LOGGED_CANDIDATES=0xf,pendingCollapses=[];let collectingCollapses=![],omittedCollapses=0x0;function startCollapseLog(){pendingCollapses['length']=0x0,omittedCollapses=0x0,collectingCollapses=!![];}function flushCollapseLog(G){collectingCollapses=![];if(pendingCollapses['length']===0x0)return;debug('axTreeNodesCollapsed',{'generation':G,'collapses':pendingCollapses['splice'](0x0),...omittedCollapses>0x0?{'omitted':omittedCollapses}:{}});}debugBus['on']('node-collapsed',G=>{if(!collectingCollapses)return;if(pendingCollapses['length']<MAX_LOGGED_COLLAPSES)pendingCollapses['push'](G['payload']);else++omittedCollapses;}),debugBus['on']('prioritized-candidates',G=>{try{const {descriptor:m,candidates:Y,prioritizers:I,reason:c}=G['payload'];debug('axCandidatesPrioritized',{'generation':axSnapshot['generation'],'reason':c,'descriptor':projectDescriptor(m),'candidates':projectPrioritizedCandidates(Y['slice'](0x0,MAX_LOGGED_CANDIDATES),I),...Y['length']>MAX_LOGGED_CANDIDATES?{'omitted':Y['length']-MAX_LOGGED_CANDIDATES}:{}});}catch(o){error('findReasoningEmitFailed',{'error':o});}});var AXOps=class{['automator'];['axProvider'];constructor(G,m){this['automator']=G,this['axProvider']=m;}async['extractTree'](){const G=await extractAXTree(this['automator'],{'debug':axSnapshot['collectIdentity']});axSnapshot['initFlatAXTree'](G);const m=await this['axProvider']['makeAXTree'](G);return axSnapshot['initAXTree'](m),m;}async['makeTree'](G){axSnapshot['initFlatAXTree'](G);const m=await this['axProvider']['makeAXTree'](G);return axSnapshot['initAXTree'](m),m;}async['findCandidate'](G,m,Y){return this['axProvider']['findAXNode'](G,m,Y);}async['findCandidates'](G,m,Y){if(!this['axProvider']['findAXNodes'])throw new Error('The\x20configured\x20AXProvider\x20does\x20not\x20support\x20listing\x20all\x20candidates');return this['axProvider']['findAXNodes'](G,m,Y);}async['searchCandidates'](G,m,Y){const I={'useBackwardCompatibleTypeScore':![],...Y},c=await this['findCandidates'](G,m,I);if(!m['title']||!m['type'])return c;const {title:o,...W}=m,U=new Set(c['map'](p=>p['node'])),u=(await this['findCandidates'](G,W,I))['filter'](p=>!U['has'](p['node']));return[...c,...u];}async['describeNode'](G,m){return this['axProvider']['describeAXNode'](G,m);}async['findNode'](G,m){const {stack:Y,timeout:timeout=0x0,signal:I,metrics:c}=m,o=this['automator'];bus['dispatch'](new AXNodeSearchStartedEvent({'descriptor':G}));const W=Date['now'](),U=makeWatcher({'signal':I})['resolve'](void 0x0,{'delay':timeout||0x1}),u=makeWatcher({'signal':I})['resolve']();let p,E;if(isSelectorElementDescriptor(G)){if(o instanceof Browser)E=async()=>{if(c)c['findStrategy']='selector';const B=c?.['axTreeExtractionMs']??0x0,t=performance['now'](),D=await this.#findWithSelfHealing(G,{'browser':o,'metrics':c});if(c){const C=performance['now']()-t,e=(c['axTreeExtractionMs']??0x0)-B;c['findElementMs']=(c['findElementMs']??0x0)+(C-e);}return D;};else throw new Error('Can\x27t\x20find\x20ax\x20node\x20using\x20selector\x20description\x20with\x20non-web\x20automator');}else E=async()=>{if(c)c['findStrategy']='columbus';const B=performance['now']();p=await this['extractTree']();c&&(c['axTreeExtractionMs']=(c['axTreeExtractionMs']??0x0)+(performance['now']()-B),c['axTreeExtractionCount']=(c['axTreeExtractionCount']??0x0)+0x1,c['axNodeCount']=p['nodeCount']);const t=performance['now'](),D=await this.#findWithColumbus(G,p);if(c)c['findElementMs']=(c['findElementMs']??0x0)+(performance['now']()-t);return D;};while(U['pending']||u['pending']){const B=await abortable(E(),I);if(B)return log('elementFound',{'node':projectAXNode(B),'descriptor':G}),U['resolve'](),u['resolve'](),Y['node'](G,B),bus['dispatch'](new AXNodeSearchFinishedEvent({'descriptor':G,'node':B})),B;p??=await this['extractTree']();if(timeout>0x0){if(isPageSpinnerVisible(p))!u['pending']&&(bus['dispatch'](new StabilizationWaitStartedEvent()),u['reset']()['resolve'](void 0x0,{'delay':0xea60-(Date['now']()-W)})['finally'](()=>bus['dispatch'](new StabilizationWaitFinishedEvent())));else{if(u['pending'])u['resolve']();}}await abortable(n(0x3e8,{'signal':I}),I);}return log('elementNotFound',{'durationMs':Date['now']()-W,'descriptor':G,'loadingPending':u['pending']}),U['resolve'](),u['resolve'](),bus['dispatch'](new AXNodeSearchFinishedEvent({'descriptor':G})),null;}async #findWithColumbus(G,m){let Y=G;while(Y){const I=await this['axProvider']['findAXNode'](m,Y,{'debug':{'reason':'find-element'}});if(I)return I['node'];Y=Y['fallback'];}return null;}async #findWithSelfHealing(G,{browser:m,metrics:Y}){const I=m['activePage'],c=m['driver'];await c['switchTo']()['window'](I['targetId']);const o=[[]];for(let U=0x0;U<o['length'];++U){const u=o[U-0x1]??[],p=o[U],E=u['findIndex']((t,D)=>t['element']!==p[D]['element']);if(E>=0x0){for(const t of u['slice'](E))await c['switchTo']()['parentFrame']();for(const {element:D}of p['slice'](E))await c['switchTo']()['frame'](D);}else{for(const {element:C}of p['slice'](u['length']))await c['switchTo']()['frame'](C);}const B=await W(G);if(B){const e=await c['executeScript']('return\x20'+isElementAcceptableInvisible['source']+'(arguments[0])',B);if(await c['executeScript']((i,X)=>{const {width:N,height:T}=i['getBoundingClientRect']();if(X||N!==0x0||T!==0x0)return i['setAttribute']('data-webdriver-element-mark',''),!![];return![];},B,e)){let i=I['mainFrame'];for(const {index:H}of p)i=await(await i['execute'](P=>document['querySelectorAll']('iframe')[P],[H]))['getContentFrame']();const X=await i['execute'](()=>{const P=[document];for(const J of P){const s=J['querySelector']('[data-webdriver-element-mark]');if(s){s['removeAttribute']('data-webdriver-element-mark');if(s instanceof SVGElement){let q=s;while(q['viewportElement'])q=q['viewportElement'];return q;}return s;}Array['from'](J['querySelectorAll']('*'))['forEach'](j=>{if(j['shadowRoot'])P['push'](j['shadowRoot']);});}throw new Error('Cannot\x20re-find\x20element\x20that\x20was\x20marked\x20using\x20webdriver');}),N=performance['now'](),T=await this['extractTree']();Y&&(Y['axTreeExtractionMs']=(Y['axTreeExtractionMs']??0x0)+(performance['now']()-N),Y['axTreeExtractionCount']=(Y['axTreeExtractionCount']??0x0)+0x1,Y['axNodeCount']=T['nodeCount']);const A=await X['normalize']();let V;j:for(const P of T['nodes']())for(const J of P['incorporated'])if(await J['equal'](A)){V=P;break j;}if(V){const [s,q]=await Promise['all']([V['node']['getNodeId'](),X['getNodeId']()]);if(s!==q)return log('axNodeViewMismatch',{'descriptor':G}),new Proxy(V,{'get'(j,Z){if(Z==='node')return X;return Reflect['get'](j,Z);}});else return V;}return null;}}(await c['executeScript'](()=>{return Array['from'](document['querySelectorAll']('iframe'))['reduce']((j,Z,K)=>{const {width:l,height:z}=Z['getBoundingClientRect']();if(l>0x0&&z>0x0)j['push']({'element':Z,'index':K});return j;},[]);}))['forEach'](j=>o['push']([...p,j]));}return null;async function W(j){const [Z,...K]=j['selector']['selector']['split']('>>>')['map'](z=>z['trim']());let l;if(!Z)throw new Error('Selector\x20cannot\x20be\x20empty');l=await c['findElement']({[j['selector']['type']]:Z})['catch'](()=>null);if(!l)return null;for(const z of K){if(/(?:\.\.\/|\.\/|\*\/|\/|\()/['test'](z))throw new Error('Only\x20CSS\x20selectors\x20are\x20supported\x20after\x20the\x20first\x20segment\x20(after\x20>>>)');l=await l['getShadowRoot']()['then'](async L=>L['findElement']({'css':z}))['catch'](()=>null);if(!l)return null;}return l;}}},version$1='5.8.0',version='5.8.0';async function makeRunner(G){if(G['logger'])eventLogger['downstream']=G['logger'];if(G['automator'])return new Runner({...G,'automator':G['automator']});else{if(G['browser'])return new Runner({...G,'automator':G['browser']});else{if(G['debuggerAddress']){const m=await makeBrowser({'debuggerAddress':G['debuggerAddress'],'driver':G['driver']});return new Runner({...G,'automator':m});}else{if(G['driver']){const Y=await makeBrowser({'driver':G['driver']});return new Runner({...G,'automator':Y});}}}}}var Runner=class extends EventTargetNode{#automator;#context;#statuses=[];#shouldRunPreinstructions=!![];#pdfInterceptorInstalled;get['__context'](){return this.#context;}get['automator'](){return this.#automator;}get['flags'](){return flags['toJSON']();}get['browser'](){return this.#automator instanceof Browser?this.#automator:void 0x0;}get['parameters'](){return this.#context['scope']['main']['input'];}set['parameters'](G){this.#context['scope']['main']['input']=Object['fromEntries'](Object['entries'](G)['map'](([m,Y])=>[m['toLowerCase'](),Y]));}get['variables'](){return this.#context['scope']['public'];}set['variables'](G){this.#context['scope']['active']['public']=Object['fromEntries'](Object['entries'](G)['map'](([m,Y])=>[m['toLowerCase'](),Y]));}get['status'](){return this.#statuses[0x0];}constructor(G){super(),this.#automator=G['automator'];if(G['flags'])flags['set'](G['flags']);this.#context={'axOps':new AXOps(G['automator'],G['axProvider']),'scope':makeScope({'global':this['browser']?{'page':{'value':makePageData({'browser':this['browser']})},'pdf':makePdfData({'browser':this['browser']})}:{},'input':Object['fromEntries'](Object['entries'](G['parameters']??{})['map'](([m,Y])=>[m['toLowerCase'](),Y])),'public':{},'internal':{...Object['fromEntries'](Object['entries'](G['timeouts']??{})['map'](([m,Y])=>[m,{'value':Y}])),...G['shouldSkipInitialNavigationInNestedScope']!==void 0x0?{'shouldSkipInitialNavigationInNestedScope':{'value':G['shouldSkipInitialNavigationInNestedScope']}}:{},...G['shouldSkipAssertionsInNestedScope']!==void 0x0?{'shouldSkipAssertionsInNestedScope':{'value':G['shouldSkipAssertionsInNestedScope']}}:{}}}),'actions':{...G['actions']},'dispatcher':makeDispatcher({'proxy':G['proxy']}),'preinstructions':[]};if(G['shouldHideFilepickerDialogs'])this['browser']['hideFilepickers'](!![]);this['browser']&&(this.#pdfInterceptorInstalled=installPdfInterceptor(this['browser'])['catch'](m=>{error('pdfInterceptorInstallFailed',{'error':m});}),this['browser']['on']('stabilizingNavigation',({done:m})=>bus['dispatch'](m?new NavigationWaitFinishedEvent():new NavigationWaitStartedEvent())),this['browser']['on']('stabilizingLoad',({done:m})=>bus['dispatch'](m?new LoadWaitFinishedEvent():new LoadWaitStartedEvent())),this['browser']['on']('stabilizingOutgoingRequests',({done:m})=>bus['dispatch'](m?new OutgoingRequestsWaitFinishedEvent():new OutgoingRequestsWaitStartedEvent()))),this['on']('listenerAdded',async({event:m,count:Y})=>{if(m==='filepickerDialogRequested'&&Y===0x1)try{const I=await this['browser']?.['filepicker'](async c=>{this['dispatch'](new RunnerFilepickerDialogRequestedEvent(c));});this['on']('listenerRemoved',({event:c,count:o})=>{if(c==='filepickerDialogRequested'&&o===0x0)I();});}catch(c){log('filepickerAutoSetupFailed',{'error':c});}}),bus['on']('log',m=>m['component']==='runner'&&this['dispatch'](m['clone']())),bus['on']('progress',m=>{const Y=this['status'];if(m['done']){this.#statuses['splice'](this.#statuses['indexOf'](m['status']),0x1);if(m['status']==='searchingForElement'&&m['node'])this['dispatch'](new RunnerAXNodeFoundEvent(m['node']));}else this.#statuses['unshift'](m['status']);if(this['status']&&Y!==this['status'])this['dispatch'](new RunnerStatusChangedEvent({'previousStatus':Y,'status':this['status']}));});}async['run'](G,m={}){let Y;if(typeof G==='string'){const [U]=parseText(G);if(U['error']){const u={'references':new Map(),'extractors':new Map(),'operands':new Map()};return{'status':'error','error':U['error']['message']??'Failed\x20to\x20parse\x20instruction:\x20'+U['text'],'code':ErrorCode['MESSAGE_PARSING'],'meta':{'pos':U['error']['pos'],'text':U['error']['text']},'results':[],'values':u};}Y=U['result'];}else{if(Array['isArray'](G))Y=G;else Y=unseal(G);}!m['runningPreinstructions']&&(this.#statuses=[],this.#shouldRunPreinstructions=!![]);if(this.#pdfInterceptorInstalled)await this.#pdfInterceptorInstalled;const I=Date['now']();log('runStarted',{'runnerVersion':version$1,'parserVersion':version,'nodeVersion':process['version']}),log('instructionExecutionStarted',{'instructions':Y,'stepIndex':m['stepIndex']}),bus['dispatch'](new InstructionExecutionStartedEvent({'preStep':m['runningPreinstructions']}));const c=[],o={'references':new Map(),'extractors':new Map(),'operands':new Map()},W=Y['map'](p=>({'instruction':p,'shouldFailOnError':!![]}));while(W['length']>0x0){const {instruction:p,shouldFailOnError:E}=W['shift'](),B=Date['now']();log('subinstructionExecutionStarted',{'instruction':p,'correlationId':m['correlationId']});const t=await this['handle'](p,m);debug('instructionResultHandled',{'status':t['status'],'code':t['status']==='error'?t['code']:void 0x0}),c['push'](t);if(t['status']==='tried')W['unshift'](...t['meta']['next']['map'](C=>({'instruction':C,'shouldFailOnError':![]})));else{if(t['status']==='preinstructions\x20defined')this.#context['preinstructions']=t['meta']['preinstructions'];else{if(t['status']==='condition\x20evaluated'){if(t['meta']['next'])W['unshift'](...t['meta']['next']['map'](C=>({'instruction':C,'shouldFailOnError':!![]})));}}}const D=Date['now']();log('subinstructionExecutionFinished',{'instruction':p,'duration':D-B,'status':t['status'],'errorcode':t['status']==='error'?t['code']:void 0x0,'metrics':t['metrics']});t['status']!=='skipped'&&(t['values']['references']['forEach']((C,e)=>o['references']['set'](e,C)),t['values']['extractors']['forEach']((C,e)=>o['extractors']['set'](e,C)),t['values']['operands']['forEach']((C,e)=>o['operands']['set'](e,C)));if(t['status']==='error'){if(!E)break;return log('instructionExecutionFinished',{'instructions':Y,'duration':D-I,'status':t['status'],'errorcode':t['code']}),bus['dispatch'](new InstructionExecutionFinishedEvent({'preStep':m['runningPreinstructions']})),{'status':'error','error':t['error'],'code':t['code'],'meta':t['meta'],'results':c,'values':o};}else{if(t['status']==='aborted')return log('instructionExecutionFinished',{'instructions':Y,'duration':D-I,'status':t['status']}),bus['dispatch'](new InstructionExecutionFinishedEvent({'preStep':m['runningPreinstructions']})),{'status':'aborted','results':c,'values':o};}}return log('instructionExecutionFinished',{'instructions':Y,'duration':Date['now']()-I,'status':'success'}),bus['dispatch'](new InstructionExecutionFinishedEvent({'preStep':m['runningPreinstructions']})),{'status':'success','results':c,'values':o};}async['handle'](G,m={}){if(this.#context['scope']['active']['parent']){const Y=this.#context['scope']['internal']['shouldSkipAssertionsInNestedScope']?.['value'],I=this.#context['scope']['internal']['forceRunningAssertions']?.['value'];if(Y&&I!=='all'){if(G['type']==='assert'){if(!I||I!=='nonvisual')return{'status':'skipped'};}else{if(G['type']==='visual\x20check'){if(!I||I!=='visual')return{'status':'skipped'};}}}const c=this.#context['scope']['internal']['shouldSkipInitialNavigationInNestedScope']?.['value'],o=this.#context['scope']['internal']['forceRunningNavigation']?.['value'];if(m['stepIndex']===0x0&&c&&o!=='all'){if(G['type']==='navigate')return{'status':'skipped'};}}return!G['type']['includes']('preinstruction')&&this.#shouldRunPreinstructions&&this.#context['preinstructions']['length']>0x0&&!m['runningPreinstructions']&&(await this['run'](this.#context['preinstructions'],{'runningPreinstructions':!![]}),this.#shouldRunPreinstructions=![]),await makeHandler({'automator':this.#automator,'context':this.#context,'instruction':G,...m})['run']();}async['find'](G,m={}){let Y;if(typeof G==='string'){const {result:W,error:U}=parseElementFragment(G);if(U||!W)throw new RunnerError('Failed\x20to\x20parse\x20element\x20descriptor:\x20'+G,{'code':ErrorCode['MESSAGE_PARSING']});Y=W;}else Y=G;const I=m['timeout']??this.#context['scope']['internal']['findTimeout']?.['value']??this.#context['scope']['internal']['timeout']?.['value']??0x2710,c=makeValuesStack();await this.#automator['stabilize']('strict',{'signal':m['signal'],'timeout':I});const o=await evaluateExpression(Y,{'context':this.#context,'stack':c,'automator':this.#automator,'timeout':I,'signal':m['signal']});return(await this.#context['axOps']['findNode'](o,{'stack':c,'timeout':I,'signal':m['signal']}))?.['node']??null;}async['setScope'](...G){this.#context['scope']['activate']('main');for(const m of G){if(!this.#context['scope']['available'](m))this.#context['scope']['set'](m,{'input':{},'public':{},'internal':{}});this.#context['scope']['activate'](m);}}async['resetScope'](){this.#context['scope']['reset']();}async['dispose'](){if(this.#pdfInterceptorInstalled){const G=await this.#pdfInterceptorInstalled;this.#pdfInterceptorInstalled=void 0x0,G?.();}}async[Symbol['asyncDispose']](){return this['dispose']();}},RunnerAXNodeFoundEvent=class extends Event{['node'];constructor(G,m){super('nodeFound',m),this['node']=G;}},RunnerFilepickerDialogRequestedEvent=class extends Event{['dialog'];['frame'];['element'];['multiple'];['accept'];constructor(G){super('filepickerDialogRequested'),this['dialog']=G,this['frame']=G['frame'],this['element']=G['element'],this['multiple']=G['multiple'],this['accept']=G['accept'];}async['files'](G){const m=[],Y=[];for(const I of G){let c,o;if(typeof I==='string')c=I;else c=I['path'],o=I['alias'];m['push'](c),Y['push'](o??basename(c));}await this['dialog']['element']['execute']((W,U)=>W['dataset']['nlpFileAliases']=JSON['stringify'](U),[Y]),await this['dialog']['handle'](m);}async['close'](){}},RunnerStatusChangedEvent=class extends Event{['previousStatus'];['status'];constructor({previousStatus:G,status:m}){super('statusChanged'),this['previousStatus']=G,this['status']=m;}},spec_driver_exports=F({'childContext':()=>childContext,'executeBrowserCommands':()=>executeBrowserCommands,'executeScript':()=>executeScript,'extractContext':()=>extractContext,'findElement':()=>findElement,'findElements':()=>findElements,'getCookies':()=>getCookies,'getDriverInfo':()=>getDriverInfo,'getTitle':()=>getTitle,'getUrl':()=>getUrl,'getViewportSize':()=>getViewportSize,'isContext':()=>isContext,'isDriver':()=>isDriver,'isElement':()=>isElement,'isSelector':()=>isSelector,'isStaleElementError':()=>isStaleElementError,'mainContext':()=>mainContext,'parentContext':()=>parentContext,'setViewportSize':()=>setViewportSize,'takeScreenshot':()=>takeScreenshot,'toSelector':()=>toSelector,'toSimpleCommonSelector':()=>toSimpleCommonSelector,'visit':()=>visit});function transformArgument(G){const m=[];return[Y(G),...m];function Y(I){if(isElement(I))return m['push'](I),{'isElement':!![]};else{if(Array['isArray'](I))return I['map'](Y);else{if(I&&typeof I==='object')return Object['entries'](I)['reduce']((c,[o,W])=>{return Object['assign'](c,{[o]:Y(W)});},{});else return I;}}}}function scriptRunner(G,m,...Y){return new Function(G['startsWith']('function')?'return\x20('+G+').apply(null,\x20arguments)':G)(I(m));function I(c){if(!c)return c;else{if(c['isElement'])return Y['shift']();else{if(Array['isArray'](c))return c['map'](I);else{if(typeof c==='object')return Object['entries'](c)['reduce']((o,[W,U])=>{return Object['assign'](o,{[W]:I(U)});},{});else return c;}}}}}const SELECTOR_PREFIXES=['/','(','../','./','*/'];function isXpathSelector(G){return SELECTOR_PREFIXES['some'](m=>G['startsWith'](m));}function isDriver(G){if(!G)return![];return G instanceof Target;}function isContext(G){if(!G)return![];return G instanceof Frame;}function isElement(G){if(!G)return![];return G instanceof WebNode;}function isSelector(G){return typeof G==='string';}function isStaleElementError(G){return G?.['constructor']?.['name']==='StaleNodeError'||G?.['constructor']?.['name']==='StaleRemoteObjectHandleError';}function toSelector(G){if(G&&typeof G==='object'&&'selector'in G)return G['selector'];return G;}function toSimpleCommonSelector(G){if(typeof G==='string')return{'type':isXpathSelector(G)?'xpath':'css','selector':G};return G;}function extractContext(G){return isDriver(G)?G['mainFrame']:G;}async function executeScript(G,m,Y){return m=typeof m==='string'?m:'function()\x20{return\x20('+m['toString']()+').apply(null,\x20arguments)}',await G['execute'](scriptRunner,[m,...transformArgument(Y)]);}async function findElement(G,m,Y){return(Y??G)['$'](m);}async function findElements(G,m,Y){return(Y??G)['$$'](m);}async function mainContext(G){let m=G;while(m['parent'])m=m['parent'];return m;}async function parentContext(G){return G['parent']??G;}async function childContext(G,m){const Y=await m['getContentFrame']();return await Y['evaluate']('true'),Y;}async function getDriverInfo(G){return{'features':{'allCookies':!![]}};}async function getViewportSize(G){return G['getViewportSize']();}async function setViewportSize(G,m){await G['emulate']({'viewport':m});}async function getCookies(G){return(await G['browser']['getCookies']())['map'](m=>{const Y={...m,'expiry':m['expires']};return delete Y['expires'],delete Y['size'],delete Y['priority'],delete Y['session'],delete Y['sourceScheme'],delete Y['sourcePort'],Y;});}async function getTitle(G){return G['title'];}async function getUrl(G){return G['url'];}async function visit(G,m){await G['navigate'](m);}async function takeScreenshot(G){const m=await G['captureScreenshot']();return Buffer['from'](m,'base64');}async function executeBrowserCommands(G,m){let Y;for(const I of m)Y=await G['connection']['execute'](I['command'],I['params']);return Y;}var RemoteAXProvider=class{async['makeAXTree'](G){const {tree:m,refs:Y}=await this['_rqMakeAXTree'](G),I=AXTreeView['fromJSON'](m),c=[...I['root']['nodes']()];for(let o=0x0;o<c['length'];o++)c[o]['incorporated']['push'](...Y[o]??[]);return I;}async['describeAXNode'](G,m){const Y=await this['_rqDescribeAXNode'](G,m);if(!Y)return void 0x0;const {nodeIndex:I,...c}=Y;if(I===void 0x0)return c;const o=[...G['root']['nodes']()];return{...c,'node':o[I]};}async['findAXNode'](G,m,Y){const I=[...G],c=await this['_rqFindAXNode'](I,m,Y);if(!c)return null;const {nodeIndex:o,...W}=c;return{...W,'node':I[o]};}},HttpRemoteAXProvider=class extends RemoteAXProvider{#baseUrl;#getAuthToken;#fetch;constructor(G){super(),this.#baseUrl=new URL(G['url']);if(!this.#baseUrl['pathname']['endsWith']('/'))this.#baseUrl['pathname']+='/';this.#getAuthToken=G['getAuthToken'],this.#fetch=G['fetch']??defaultAXServerFetch;}async['_rqMakeAXTree'](G){const m=G['nodes']['map'](o=>o['node']),Y={...G,'nodes':G['nodes']['map']((o,W)=>({...o,'node':W}))},{tree:I,refs:c}=await this.#authPost('make-ax-tree',{'flat':Y});return{'tree':I,'refs':c['map'](o=>o['map'](W=>m[W]))};}async['_rqDescribeAXNode'](G,m){const Y=[...G['root']['nodes']()];return this.#authPost('describe-ax-node',{'tree':G['toJSON'](),'query':serializeQuery(m,Y)});}async['_rqFindAXNode'](G,m,Y){const [I]=G;if(!I)return null;return this.#authPost('find-ax-node',{'tree':I['tree']['toJSON'](),'descriptor':m,'options':Y?.['limit']!==void 0x0||Y?.['debug']?.['reason']?{'limit':Y['limit'],'debug':Y['debug']}:void 0x0});}async #authPost(G,m){const Y=await this.#getAuthToken(),I=await(await this.#fetch({'url':new URL(G,this.#baseUrl)['href'],'method':'POST','token':Y,'body':m}))['json']();if(!I['ok']){const c=new Error(I['error']['message']);c['code']=I['error']['code'],c['reason']=I['error']['reason'];throw c;}return I['data'];}};function defaultAXServerFetch({url:G,method:m,token:Y,body:I}){return fetch(G,{'method':m,'headers':{'content-type':'application/json','authorization':'Bearer\x20'+Y},'body':JSON['stringify'](I)});}function serializeQuery(G,m){const Y=G['anchor']?{...G['anchor'],'element':G['anchor']['element']?serializeQuery(G['anchor']['element'],m):void 0x0}:void 0x0;return{...G,'node':m['indexOf'](G['node']),'anchor':Y};}export{AbortError,AutomatorError,BlockingDialog,BodyConsumedError,Browser,BrowserActivePageChangedEvent,BrowserDisconnectedEvent,BrowserPageClosedEvent,BrowserPageCreatedEvent,BrowserPageNavigatedEvent,BrowserStabilizingLoadEvent,BrowserStabilizingNavigationEvent,BrowserStabilizingOutgoingRequestsEvent,BrowserTargetCrashedEvent,BrowserTargetCreatedEvent,BrowserWindowCreatedEvent,Connection,Debugger,DebuggerPausedEvent,DebuggerResumedEvent,DialogHandledEvent,Evaluator,EvaluatorDestroyedEvent,EvaluatorLogEvent,Expression,FilepickerDialog,FlagChangedEvent,FlushError,Frame,FrameDestroyedEvent,FrameDocumentRequestEvent,FrameDocumentResponseEvent,FrameEvaluatorAttached,FrameFetchError,FrameLifecycleEvent,FrameNavigatedEvent,FrameNavigatingEvent,FrameSwappedEvent,FrameSwappingEvent,HarRecorder,HarRecorderStatsChangedEvent,HttpRemoteAXProvider,Injection,InjectionEvaluatorAttachedEvent,InjectionIncommingMessageEvent,InjectionOutgoingMessageEvent,InjectionTargetAttachedEvent,Intercepted,InterceptedRequest,InterceptedResponse,Keyboard,Loader,LoaderRequestEvent,LoaderResponseEvent,Mouse,NavigationFailedError,NavigationTimedOutError,NoHistoryEntryError,Port,PortIncommingMessageEvent,PortOutgoingMessageEvent,RemoteAXProvider,RemoteFunctionHandle,RemoteObjectHandle,Runner,RunnerAXNodeFoundEvent,RunnerFilepickerDialogRequestedEvent,RunnerStatusChangedEvent,Script,StaleNodeError,StaleRemoteObjectHandleError,StylesheetHandle,Target,TargetActivatedEvent,TargetActivatingEvent,TargetAttachedEvent,TargetChangedEvent,TargetChildTargetCreatingEvent,TargetClosedEvent,TargetDetachedEvent,TargetDialogEvent,TargetElementSelectedEvent,TargetFilepickerDialogEvent,TargetFrameAttachedEvent,TargetFrameTargetCreatedEvent,TargetMainFrameReadyEvent,TargetNavigatedEvent,TargetVisibilityChangeEvent,UnresponsiveTargetError,WebNode,Window,WindowDestroyedEvent,WindowTargetAttachedEvent,WindowTargetDetachedEvent,flags,isElementAcceptableInvisible,localizeRemoteValue,makeBlockingDialog,makeBrowser,makeBundledExpression,makeBundledScript,makeConnection,makeDebugger,makeEvaluator,makeExpression,makeFilepickerDialog,makeFrame,makeInjection,makeIntercepted,makeInterceptedRequest,makeInterceptedResponse,makeInterceptionPatternMatcher,makeKeyboard,makeLoader,makeMouse,makePort,makeRunner,makeScript,makeTarget,makeWebNode,makeWindow,provideRolldownConfig,spec_driver_exports as spec,toCDPPattern};
|