hunk.code_window:     string,
       [number, string | undefined, string | undefined]
     >();
     const initialVertex = optionsWithDefaults.stateSerializer(
       machine.initialState
     );
  
hunk.labels: keep keep add keep keep keep
hunk.after_edit:   const stateMap = new Map<string, State<TContext, TEvent>>();
  
hunk.file_path: packages/xstate-graph/src/graph.ts
hunk.type: add
file: # Installation
  
  You can install XState from NPM or Yarn, or you can embed the `<script>` directly from a CDN.
  
  ## Package Manager
  
  ```bash
  npm install xstate@latest --save
  # or:
  yarn add xstate@latest --save
  ```
  
  ## CDN
  
  You can include XState directly from the [unpkg CDN](https://unpkg.com/xstate@4/dist):
  
  - XState core: [https://unpkg.com/xstate@4/dist/xstate.js](https://unpkg.com/xstate@4/dist/xstate.js)
  - XState web: [https://unpkg.com/xstate@4/dist/xstate.web.js](https://unpkg.com/xstate@4/dist/xstate.web.js)
    - Browser-friendly, ES module build
  
  ```html
  <script src="https://unpkg.com/xstate@4/dist/xstate.js"></script>
  ```
  
  The variable `XState` will be available globally, which will give you access to the top-level exports.
  
  ```js
  const { Machine, actions, interpret } = XState; // global variable: window.XState
  
  const lightMachine = Machine({
    // ...
  });
  
  const lightService = interpret(lightMachine);
  ```
  