;(function(){System.register(['./vendor-legacy.b3aeff6a.js','./index-legacy.101dd5f6.js'],function(exports){'use strict';var Toast,Dialog,browser,state,postMessage;return{setters:[function(module){Toast=module.T;Dialog=module.D;},function(module){browser=module.b;state=module.s;postMessage=module.p;}],execute:function execute(){var shareCall=exports('s',function(str,params){var query={url:str,action:(params===null||params===void 0?void 0:params.action)||"h5",pageTag:(params===null||params===void 0?void 0:params.pageTag)||1};var iosStr=encodeURIComponent(JSON.stringify(query));console.log(iosStr,"query");if(/(iPhone|iPad|iPod|iOS)/i.test(navigator.userAgent)){window.location.href="ColexiuStudent://linkUrl=".concat(iosStr);}else if(/(Android)/i.test(navigator.userAgent)){window.location.href="colexiustudent://html:8888/SplashActivity?url=".concat(iosStr);}else{Toast("\u8BF7\u7528\u624B\u673A\u6216\u79FB\u52A8\u8BBE\u5907\u6253\u5F00");}});var initJumpNativePage=exports('i',function(url){if(browser().isApp){if(state.platformType==="STUDENT"){window.location.replace(url);if(browser().ios){window.location.replace(url);}else{postMessage({api:"openWebView",content:{url:url,orientation:1,isHideTitle:false}});postMessage({api:"back"});}return;}else if(state.platformType==="TEACHER"){Dialog.alert({title:"\u63D0\u793A",message:"\u8BF7\u4F7F\u7528\u9177\u4E50\u79C0\u5B66\u751F\u7AEF\u626B\u7801\u6253\u5F00",confirmButtonColor:"#2dc7aa"}).then(function(){postMessage({api:"back"});});}}else{shareCall(url);}});}};});})();
