function hookNavigation(){function a(a){return"navigateTo_before_global"===a?"function"==typeof navigateTo_before_global?navigateTo_before_global:void 0:"redirectTo_before_global"===a?"function"==typeof redirectTo_before_global?redirectTo_before_global:void 0:"switchTab_before_global"===a?"function"==typeof switchTab_before_global?switchTab_before_global:void 0:"navigateBack_before_global"===a?"function"==typeof navigateBack_before_global?navigateBack_before_global:void 0:"reLaunch_before_global"===a?"function"==typeof reLaunch_before_global?reLaunch_before_global:void 0:void 0}function b(b){var c=a(b);return c?c:function(){var c=a(b);return c&&c.apply(void 0,arguments)}}function c(a,c){if(a&&!0!==a.__page_router_rewrited__){var e={navigateTo:a.navigateTo,redirectTo:a.redirectTo,switchTab:a.switchTab,navigateBack:a.navigateBack,reLaunch:a.reLaunch};d(a,{__page_router_rewrited__:{value:!0,writable:!0},navigateTo:{value:function(){var d=0<arguments.length&&void 0!==arguments[0]?arguments[0]:{},f=b("navigateTo_before_".concat("global"));return f&&f(Object.assign({oriPath:c},d)),e.navigateTo.call(a,d)},writable:!0},redirectTo:{value:function(){var d=0<arguments.length&&void 0!==arguments[0]?arguments[0]:{},f=b("redirectTo_before_".concat("global"));return f&&f(Object.assign({oriPath:c},d)),e.redirectTo.call(a,d)},writable:!0},switchTab:{value:function(){var d=0<arguments.length&&void 0!==arguments[0]?arguments[0]:{},f=b("switchTab_before_".concat("global"));return f&&f(Object.assign({oriPath:c},d)),e.switchTab.call(a,d)},writable:!0},navigateBack:{value:function(){var c=0<arguments.length&&void 0!==arguments[0]?arguments[0]:{},d=b("navigateBack_before_".concat("global"));return d&&d(c),e.navigateBack.call(a,c)},writable:!0},reLaunch:{value:function(){var d=0<arguments.length&&void 0!==arguments[0]?arguments[0]:{},f=b("reLaunch_before_".concat("global"));return f&&f(Object.assign({oriPath:c},d)),e.reLaunch.call(a,d)},writable:!0}}),console.warn("hook pageRouter succ")}}if(global.__minium__.navigationHooked)return!0;global.__minium__.navigationHooked=!0;var d=Object.defineProperties;global.__minium__.getRealBindingMethod=a,global.__minium__.getBindingMethod=b;["navigateTo","redirectTo","switchTab","navigateBack","reLaunch"].forEach(function(a){global.__minium__.setCall(a,"global",{before:b("".concat(a,"_before_").concat("global"))})}),wx.onAppRouteDone(function(){var a=getCurrentPages().pop();a&&c(a.pageRouter,a.route||a.__route__)})}