text: /* This file is automatically rebuilt by the Cesium build process. */
  define(['./when-6655f883', './PrimitivePipeline-6f0d65f3', './createTaskProcessorWorker', './Transforms-f37c129d', './Matrix2-70d3547e', './RuntimeError-5f205b85', './ComponentDatatype-579b2047', './WebGLConstants-cf1206a6', './combine-1fd4d5cd', './GeometryAttribute-3cc1b9b3', './GeometryAttributes-2b1b6e3f', './GeometryPipeline-fc6958dc', './AttributeCompression-f5ecc6e8', './EncodedCartesian3-13464966', './IndexDatatype-e7458bc9', './IntersectionTests-af7b4fec', './Plane-b8f2179f', './WebMercatorProjection-b5f86a40'], (function (when, PrimitivePipeline, createTaskProcessorWorker, Transforms, Matrix2, RuntimeError, ComponentDatatype, WebGLConstants, combine, GeometryAttribute, GeometryAttributes, GeometryPipeline, AttributeCompression, EncodedCartesian3, IndexDatatype, IntersectionTests, Plane, WebMercatorProjection) { 'use strict';
  
    /* global require */
  
    var moduleCache = {};
  
    function getModule(moduleName) {
      var module = moduleCache[moduleName];
      if (!when.defined(module)) {
        if (typeof exports === "object") {
          // Use CommonJS-style require.
          moduleCache[module] = module = require("Workers/" + moduleName);
        } else {
          // Use AMD-style require.
          // in web workers, require is synchronous
          require(["Workers/" + moduleName], function (f) {
            module = f;
            moduleCache[module] = f;
          });
        }
      }
      return module;
    }
  
    function createGeometry(parameters, transferableObjects) {
      var subTasks = parameters.subTasks;
      var length = subTasks.length;
      var resultsOrPromises = new Array(length);
  
      for (var i = 0; i < length; i++) {
        var task = subTasks[i];
        var geometry = task.geometry;
        var moduleName = task.moduleName;
  
        if (when.defined(moduleName)) {
          var createFunction = getModule(moduleName);
          resultsOrPromises[i] = createFunction(geometry, task.offset);
        } else {
          //Already created geometry
          resultsOrPromises[i] = geometry;
        }
      }
  
      return when.when.all(resultsOrPromises, function (results) {
        return PrimitivePipeline.PrimitivePipeline.packCreateGeometryResults(
          results,
          transferableObjects
        );
      });
    }
    var createGeometry$1 = createTaskProcessorWorker(createGeometry);
  
    return createGeometry$1;
  
  }));
  