prod/service-worker-28ddbc7ef7a575da0539a0f05f4bfdae.js
function pop(stack, metaStack) {
  var obj = stack.pop();

  if (metaStack.length) {
    var lastMetaElement = metaStack[metaStack.length - 1];
    if (obj === lastMetaElement.element) {
      // popping a meta-element, e.g. an object whose value is another object
      metaStack.pop();
      lastMetaElement = metaStack[metaStack.length - 1];
    }
    var element = lastMetaElement.element;
    var lastElementIndex = lastMetaElement.index;
    if (Array.isArray(element)) {
      element.push(obj);
    } else if (lastElementIndex === stack.length - 2) { // obj with key+value
      var key = stack.pop();
      element[key] = obj;
    } else {
      stack.push(obj); // obj with key only
    }
  }
}
function pop(stack, metaStack) {
  var obj = stack.pop();

  if (metaStack.length) {
    var lastMetaElement = metaStack[metaStack.length - 1];
    if (obj === lastMetaElement.element) {
      // popping a meta-element, e.g. an object whose value is another object
      metaStack.pop();
      lastMetaElement = metaStack[metaStack.length - 1];
    }
    var element = lastMetaElement.element;
    var lastElementIndex = lastMetaElement.index;
    if (Array.isArray(element)) {
      element.push(obj);
    } else if (lastElementIndex === stack.length - 2) { // obj with key+value
      var key = stack.pop();
      element[key] = obj;
    } else {
      stack.push(obj); // obj with key only
    }
  }
}
function pop ( stack , metaStack ) { var obj = stack . pop ( ) ; if ( metaStack . length ) { var lastMetaElement = metaStack [ metaStack . length - 1 ] ; if ( obj === lastMetaElement . element ) { // popping a meta-element, e.g. an object whose value is another object metaStack . pop ( ) ; lastMetaElement = metaStack [ metaStack . length - 1 ] ; } var element = lastMetaElement . element ; var lastElementIndex = lastMetaElement . index ; if ( Array . isArray ( element ) ) { element . push ( obj ) ; } else if ( lastElementIndex === stack . length - 2 ) { // obj with key+value var key = stack . pop ( ) ; element [ key ] = obj ; } else { stack . push ( obj ) ; // obj with key only } } }
move up the stack while parsing this function moved outside of parseIndexableString for performance
move up the stack while parsing this function moved outside of parseIndexableString for performance