text: define('magix', /*#if(!modules.naked){#*/['$'],/*#}#*/ require => {
      if (typeof DEBUG == 'undefined') window.DEBUG = true;
      /*#if(modules.naked){#*/
      let G_Type = o => Object.prototype.toString.call(o).slice(8, -1);
      let G_IsType = type => o => G_Type(o) == type;
      let G_IsObject = G_IsType('Object');
      let G_IsArray = G_IsType('Array');
      /*#}else{#*/
      let $ = require('$');
      let G_IsObject = $.isPlainObject;
      let G_IsArray = $.isArray;
      /*#}#*/
      Inc('../tmpl/variable');
      Inc('../tmpl/cache');
      /*#if(modules.defaultView){#*/
      let G_DefaultView;
      /*#}#*/
      let G_Require = (name, fn) => {
          if (name) {
              let a = [], n;
              /*#if(modules.defaultView){#*/
              if (MxGlobalView == name) {
                  if (!G_DefaultView) {
                      G_DefaultView = View.extend();
                  }
                  fn(G_DefaultView);
              } else /*#}#*/
                  if (G_WINDOW.seajs) {
                      seajs.use(name, (...g) => {
                          for (let m of g) {
                              a.push(m && m.__esModule && m.default || m);
                          }
                          if (fn) {
                              CallFunction(fn, a);
                          }
                      });
                  } else {
                      if (!G_IsArray(name)) name = [name];
                      for (n of name) {
                          n = require(n);
                          a.push(n && n.__esModule && n.default || n);
                      }
                      if (fn) fn(...a);
                  }
          } else {
              fn();
          }
      };
      Inc('../tmpl/extend');
      /*#if(modules.naked){#*/
      Inc('../tmpl/naked');
      /*#}else{#*/
      let G_SelectorEngine = $.find || $.zepto;
      let G_TargetMatchSelector = G_SelectorEngine.matchesSelector || G_SelectorEngine.matches;
      let G_DOMGlobalProcessor = (e, d) => {
          d = e.data;
          e.eventTarget = d.e;
          G_ToTry(d.f, e, d.v);
      };
      let G_DOMEventLibBind = (node, type, cb, remove, scope) => {
          if (scope) {
              type += `.${scope.i}`;
          }
          if (remove) {
              $(node).off(type, cb);
          } else {
              $(node).on(type, scope, cb);
          }
      };
      /*#}#*/
      Inc('../tmpl/safeguard');
      Inc('../tmpl/magix');
      Inc('../tmpl/event');
      /*#if(modules.state){#*/
      Inc('../tmpl/state');
      /*#}#*/
      /*#if(modules.router){#*/
      //let G_IsFunction = $.isFunction;
      Inc('../tmpl/router');
      /*#}#*/
      /*#if(modules.router||modules.state){#*/
      Inc('../tmpl/dispatcher');
      /*#}#*/
      /*#if(modules.updater&&modules.updaterAsync){#*/
      Inc('../tmpl/async');
      /*#}#*/
      Inc('../tmpl/vframe');
      /*#if(modules.nodeAttachVframe&&!modules.naked){#*/
      $.fn.invokeView = function (name, args) {
          let returned = [], e, vf;
          for (e of this) {
              vf = e.vframe;
              returned.push(vf && vf.invoke(name, args));
          }
          return returned;
      };
      /*#}#*/
      Inc('../tmpl/body');
      /*#if(modules.viewChildren){#*/
      Inc('../tmpl/children');
      /*#}#*/
      /*#if(modules.updater){#*/
      /*#if(!modules.updaterVDOM&&!modules.updaterDOM){#*/
      Inc('../tmpl/tmpl');
      /*#}#*/
      /*#if(modules.updaterVDOM){#*/
      /*#if(modules.updaterQuick){#*/
      Inc('../tmpl/quick');
      /*#}else{#*/
      Inc('../tmpl/tovdom');
      /*#}#*/
      Inc('../tmpl/vdom');
      /*#}else if(modules.updaterDOM){#*/
      Inc('../tmpl/dom');
      /*#}#*/
      Inc('../tmpl/updater');
      /*#}#*/
      Inc('../tmpl/view');
      /*#if(modules.service){#*/
      /*#if(!modules.naked){#*/
      let G_Type = $.type;
      /*#}#*/
      let G_Now = Date.now;
  
      Inc('../tmpl/service');
      /*#if(modules.servicePush){#*/
      Inc('../tmpl/svsx');
      /*#}#*/
      /*#}#*/
      Inc('../tmpl/base');
      Magix.default = Magix;
      return Magix;
  });