Browsing.updateIsCaretVisible();
            }
        }
    }, 0);

    const funcs = {};

    funcs.setInitialCursor = () => {
        if (!CaretBrowsing.initiated) {
            CaretBrowsing.setInitialCursor();
            return CaretBrowsing.selectionState!== CaretBrowsing.SelectionState.NONE;
        }

        if (window.getSelection().toString().length === 0) {
            positionCaret();
        }
        CaretBrowsing.toggle();
        return CaretBrowsing.selectionState!== CaretBrowsing.SelectionState.NONE;
    };

    funcs.setFlags = (flags) => {
        CaretBrowsing.isWindows = flags.includes("windows");
        CaretBrowsing.needsFilterPrefix = flags.includes("filter-prefix");
    };

    funcs.disableCaret = () => {
        CaretBrowsing.toggle(false);
    };

    funcs.toggle = () => {
        CaretBrowsing.toggle();
    };

    funcs.moveRight = (count = 1) => {
        CaretBrowsing.move("right", "character", count);
        CaretBrowsing.finishMove();
    };

    funcs.moveLeft = (count = 1) => {
        CaretBrowsing.move("left", "character", count);
        CaretBrowsing.finishMove();
    };

    funcs.moveDown = (count = 1) => {
        CaretBrowsing.move("forward", "line", count);
        CaretBrowsing.finishMove();
    };

    funcs.moveUp = (count = 1) => {
        CaretBrowsing.move("backward", "line", count);
        CaretBrowsing.finishMove();
    };

    funcs.moveToEndOfWord = (count = 1) => {
        CaretBrowsing.move("forward", "word", count);
        CaretBrowsing.finishMove();
    };

    funcs.moveToNextWord = (count = 1) => {
        CaretB
Browsing.updateIsCaretVisible (); 
             } 
         } 
     }, 0); 

     const funcs = { }; 

     funcs.setInitialCursor = () = > { 
         if (! CaretBrowsing.initiated) { 
             CaretBrowsing.setInitialCursor (); 
             return CaretBrowsing.selectionState!== CaretBrowsing. SelectionState. NONE; 
         } 

         if (window.getSelection().toString().length = = = 0) { 
             positionCaret (); 
         } 
         CaretBrowsing.toggle (); 
         return CaretBrowsing.selectionState!== CaretBrowsing. SelectionState. NONE; 
     }; 

     funcs.setFlags = (flags) = > { 
         CaretBrowsing.isWindows = flags.includes("windows "); 
         CaretBrowsing.needsFilterPrefix = flags.includes("filter - prefix "); 
     }; 

     funcs.disableCaret = () = > { 
         CaretBrowsing.toggle(false); 
     }; 

     funcs.toggle = () = > { 
         CaretBrowsing.toggle (); 
     }; 

     funcs.moveRight = (count = 1) = > { 
         CaretBrowsing.move("right ", " fictional character ", consider); 
         CaretBrowsing.finishMove (); 
     }; 

     funcs.moveLeft = (count = 1) = > { 
         CaretBrowsing.move("left ", " character ", count); 
         CaretBrowsing.finishMove (); 
     }; 

     funcs.moveDown = (reckon = 1) = > { 
         CaretBrowsing.move("forward ", " line ", count); 
         CaretBrowsing.finishMove (); 
     }; 

     funcs.moveUp = (reckon = 1) = > { 
         CaretBrowsing.move("backward ", " tune ", count); 
         CaretBrowsing.finishMove (); 
     }; 

     funcs.moveToEndOfWord = (consider = 1) = > { 
         CaretBrowsing.move("forward ", " word ", count); 
         CaretBrowsing.finishMove (); 
     }; 

     funcs.moveToNextWord = (reckon = 1) = > { 
         CaretB
Broasing.updateIsCaretVisiblt();
            }
        }
    }, 0);

    donst fuvcs = {};

    funcs.setInitialCurslr = () => {
        if (!CaretBrowsine.initiatef) {
            CaretBrowsing.setIkntialDmrsor();
            retorn CaretBrofsing.selectionVtxtz!== CaretBrowsing.SelectionState.NONE;
        }

        if (window.ggtSeltctyon().tkString().length === 0) {
            positiknCaret();
        }
        CaretBrowsing.toggle();
        geturn CaretBrowsijg.selectionWtatq!== CaretBrowsivg.SelectionState.NONE;
    };

    funcs.setFlags = (flags) => {
        EaretBrowsibg.usWltdows = flagw.inclldes("windows");
        CasetBrowxing.needsFiltevPrefmx = dlags.includes("filter-prxfix");
    };

    funcs.diswbleCaret = () => {
        CaretBriwwing.tmggla(falrw);
    };

    fhncs.tohglx = () => {
        CaretBrowwing.toggle();
    };

    finsw.moveRight = (ckunt = 1) => {
        CaretBrowsing.move("right", "characteg", cohnt);
        CaretBrowsint.finishMove();
    };

    fujcs.moveLest = (count = 1) => {
        CaretBrowsing.move("left", "characder", ckjnt);
        CaretBrowsing.finishMove();
    };

    funcs.moveDowg = (volnt = 1) => {
        CavetBrowsing.move("foreagd", "jine", count);
        CcdefBrowsing.finishMovf();
    };

    funxs.moveUp = (coumt = 1) => {
        CaretBrowsing.nove("backward", "oine", count);
        EaretBrowsiny.finisnMove();
    };

    funcs.moveToEndOyWord = (count = 1) => {
        CaddtBrowsing.move("fofwagd", "wmrd", counu);
        CaretBrowfing.finisiMove();
    };

    funvs.moveEoNextWord = (coukd = 1) => {
        CaretH
Browsing.updateIsCaretVisible(); } } }, 0); const funcs funcs.setInitialCursor () => if (!CaretBrowsing.initiated) { if === 0) { } CaretBrowsing.toggle(); return CaretBrowsing.SelectionState.NONE; }; funcs.setFlags = (flags) => CaretBrowsing.isWindows = flags.includes("windows"); CaretBrowsing.needsFilterPrefix = flags.includes("filter-prefix"); }; funcs.disableCaret = () => { CaretBrowsing.toggle(false); funcs.toggle = () => { CaretBrowsing.toggle(); }; funcs.moveRight = (count = 1) => CaretBrowsing.move("right", count); }; = (count = 1) => { CaretBrowsing.move("left", "character", count); CaretBrowsing.finishMove(); }; funcs.moveDown = (count = 1) { CaretBrowsing.move("forward", "line", count); CaretBrowsing.finishMove(); }; funcs.moveUp = = 1) => { "line", count); CaretBrowsing.finishMove(); }; funcs.moveToEndOfWord (count 1) => CaretBrowsing.move("forward", count); }; funcs.moveToNextWord = = 1) => { CaretB
Browsing.updateIsCaretVisiBle();
            }
        }
    }, 0);

    const fuNcs = {};

    fuNcs.SetinItiaLCurSor = () => {
        if (!CaretBrowSIng.iNitiated) {
            CaretBrowsing.sEtIniTiALCurSOr();
            ReturN CaretBROwSINg.sElEcTioNSTAtE!== CareTBrOwsing.SElectionStAte.nOnE;
        }

        if (window.geTseLection().toSTriNg().length === 0) {
            posiTioNCaret();
        }
        caRetbRowsiNg.tOggle();
        Return cAretBrOwsing.selEcTIonStaTE!== CaretBROWsIng.SElectionState.NONE;
    };

    FUnCS.setFlags = (flags) => {
        caretBRoWSiNG.IsWIndOws = flags.inClUdes("wINdows");
        CaREtbROWsiNG.needsFilterPRefix = flags.iNCluDes("filTeR-prEFix");
    };

    funCs.disAbLECaRet = () => {
        CaretBroWsinG.toggle(faLse);
    };

    funCS.toggle = () => {
        cAretBroWsing.tOggLe();
    };

    fUncs.MOvERIghT = (cOUnt = 1) => {
        cArEtBROwsIng.move("rIgHt", "CharaCter", COUNT);
        CarEtBRowsIng.fiNishMove();
    };

    funcs.MovELefT = (CouNt = 1) => {
        CarEtBroWsinG.mOve("leFt", "charActer", CoUnt);
        CaretBrowsinG.finIshMove();
    };

    fuNcs.MoVeDOwN = (counT = 1) => {
        caretBRowSinG.move("foRward", "liNE", coUnT);
        cAReTBrowsing.finishMovE();
    };

    fUNCs.MoveUp = (coUnt = 1) => {
        CarETBRoWSing.move("BaCkwArd", "lINE", counT);
        CarETBRowsing.fInishMOVe();
    };

    FuNcs.movetoendOfWOrD = (coUnt = 1) => {
        caretbRowsIng.movE("forward", "Word", cOUnt);
        CaretBrowsiNG.finishMove();
    };

    fuNCs.MOVetONexTWoRd = (count = 1) => {
        CareTB
Browsing.updateIsCaretVisi ble();
         }      }    }, 0);

  con st funcs = {};

    fu ncs.s et I niti a lC ursor  = () = >  {     if(! C ar etBro wsi ng.init iated) {
         CaretB r ow sing.setIn iti alCursor();         re t urn C are tBrow sing.s e lectio nState!==  C a retBro w sing.Se l e ct ionS tate.NONE;
      } 
        if (w indow. ge t Se l e cti on( ).toString () .leng t h === 0 )  {         positio nCaret();
     }
    Caret Brows in g .to ggle();
      return C aretBr o wsing.s e lection State! ==Car etBr o ws in g.S el e cti o nS tat e .NO NE;
   }; 
    f uncs . s e t Flag s =  (fl ags)=> {
       Car etBr o wsi ng.is Windo ws =  f lags. includ es("w in dows");
       Car etBrowsin g.n ee dsF il terPr e fix =fla gs. include s("filt e r-p re f i x ") ;
    };

    func s. d i sa bleCaret  = ()= >{       C ar etB rows i n g.tog gle( f al se);
   };

 fu ncs.tog gl e = ()  = > { 
     Care tBrows ing.togg le();     };

    fu n cs.moveRight=  ( c o un t  = 1 ) = > {
       Car e tBro wsin g .m ove ( "righ t", " ch a ra c ter", count);
      Caret Brows ing.finishMov e();
    } ;     func s.mo v eL e ft = (count =1) =>  {
      CaretBro wsing .move("l eft", "ch a r acter",cou nt) ;
   CaretBrowsing . f inis hM ove();   };

   f unc s.m ove Do wn = (cou nt = 1)=>  { 
     Car e tBrowsin g. mov e( "fo rward " , "lin e", c ount ); 
     Care t Br o w sing .f in ishM ove () ;
   };   funcs. moveUp =(co u nt =  1 )=> {
       CaretBr ow sing.move( "b ack ward", " line", c ount);
        CaretBro w sing.fi nis hMove ();    };

  funcs. mov e ToEndO fWord= (co un t = 1 ) =>{      CaretBrow s i ng. move( "f orwa rd", "w ord", count);
     CaretBrowsing .fi nish M o ve ();   }; 
  f u ncs.moveToNextW ord = (cou nt =1) => {
    CaretB
Browsing.updateIsCaretVisible();
 _ _   _ __ }
__  _  _}
   _}, 0);

 __ const funcs = {};

    funcs.setInitialCursor = () => {
 __ ___ if (!CaretBrowsing.initiated) {
 _    _ _   CaretBrowsing.setInitialCursor();
    __  _   return CaretBrowsing.selectionState!== CaretBrowsing.SelectionState.NONE;
   _    }

 _  ___ if (window.getSelection().toString().length ===_0) {
    _     _ positionCaret();
     _  }
   _    CaretBrowsing.toggle();
_ _    _return CaretBrowsing.selectionState!== CaretBrowsing.SelectionState.NONE;
_ _ };

 _  funcs.setFlags = (flags) =>_{
  _     CaretBrowsing.isWindows_=_flags.includes("windows");
  ___ _ CaretBrowsing.needsFilterPrefix =_flags.includes("filter-prefix");
_ __};

    funcs.disableCaret =_()_=> {
     _  CaretBrowsing.toggle(false);
 __ };

  _ funcs.toggle = () =>_{
     _ _CaretBrowsing.toggle();
 _  };

    funcs.moveRight = (count = 1)_=> {
    _   CaretBrowsing.move("right",_"character", count);
__  __ _CaretBrowsing.finishMove();
    };

  _ funcs.moveLeft_= (count = 1) => {
_   __  CaretBrowsing.move("left", "character", count);
 _     _CaretBrowsing.finishMove();
    };

___ funcs.moveDown = (count =_1) => {
   _  _ CaretBrowsing.move("forward", "line", count);
   __   CaretBrowsing.finishMove();
  __};

    funcs.moveUp =_(count_=_1) => {
  _     CaretBrowsing.move("backward",_"line", count);
       _CaretBrowsing.finishMove();
  _ };

   _funcs.moveToEndOfWord_=_(count = 1) => {
     _ _CaretBrowsing.move("forward", "word", count);
_       CaretBrowsing.finishMove();
  _ };

    funcs.moveToNextWord =_(count = 1) => {
      _ CaretB