@jctrans-materials/comps-vue3 1.0.19 → 1.0.21

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (32) hide show
  1. package/dist/index.cjs.js +1 -1
  2. package/dist/index.css +1 -1
  3. package/dist/index.esm.js +1 -1
  4. package/package.json +2 -2
  5. package/dist/components/GlobalModal.d.ts +0 -2
  6. package/dist/components/JcCarrierSearch/index.d.ts +0 -90
  7. package/dist/components/JcLoginDialog/cmps/ApplyJoinBtn.d.ts +0 -33
  8. package/dist/components/JcLoginDialog/cmps/FooterBox.d.ts +0 -27
  9. package/dist/components/JcLoginDialog/cmps/ForgetPassword.d.ts +0 -10
  10. package/dist/components/JcLoginDialog/cmps/ThirdLogin.d.ts +0 -30
  11. package/dist/components/JcLoginDialog/cmps/WechatBindLogin.d.ts +0 -19
  12. package/dist/components/JcLoginDialog/cmps/WechatChooseType.d.ts +0 -21
  13. package/dist/components/JcLoginDialog/cmps/WechatLogin.d.ts +0 -43
  14. package/dist/components/JcLoginDialog/composables/useAuthLogin.d.ts +0 -24
  15. package/dist/components/JcLoginDialog/composables/useForgetPassword.d.ts +0 -34
  16. package/dist/components/JcLoginDialog/composables/useThirdPartyLogin.d.ts +0 -26
  17. package/dist/components/JcLoginDialog/constant.d.ts +0 -66
  18. package/dist/components/JcMSearch/common.d.ts +0 -16
  19. package/dist/components/JcMSearch/hooks/useFloating.d.ts +0 -8
  20. package/dist/components/JcMSearch/hooks/useSearchHistory.d.ts +0 -29
  21. package/dist/components/JcMSearch/hooks/useSearchLogic.d.ts +0 -30
  22. package/dist/components/JcMSearch/index.d.ts +0 -41
  23. package/dist/components/JcSearch/common.d.ts +0 -16
  24. package/dist/components/JcSearch/hooks/useFloating.d.ts +0 -8
  25. package/dist/components/JcSearch/hooks/useSearchHistory.d.ts +0 -29
  26. package/dist/components/JcSearch/hooks/useSearchLogic.d.ts +0 -38
  27. package/dist/components/JcSearch/hooks/useSelectBehavior.d.ts +0 -9
  28. package/dist/components/JcSearch/index.d.ts +0 -132
  29. package/dist/components/hooks/isEn.d.ts +0 -3
  30. package/dist/hooks/useLang.d.ts +0 -3
  31. package/dist/index.d.ts +0 -14
  32. package/dist/plugin.d.ts +0 -6
package/dist/index.esm.js CHANGED
@@ -1 +1 @@
1
- import{ref as e,computed as t,onMounted as o,onBeforeUnmount as n,defineComponent as i,toRef as a,watch as r,createElementBlock as s,openBlock as l,normalizeClass as c,createElementVNode as u,createBlock as d,createVNode as h,renderSlot as p,createCommentVNode as f,withDirectives as m,Fragment as g,renderList as v,toDisplayString as A,withModifiers as y,withKeys as C,normalizeStyle as w,vModelText as E,unref as b,Teleport as I,createTextVNode as B,vShow as k,reactive as S,withCtx as x,resolveComponent as R,mergeProps as T,toHandlers as F,Transition as Q,resolveDynamicComponent as L,createSlots as P,onUnmounted as N,nextTick as U,isRef as V,getCurrentInstance as D,createApp as M}from"vue";import{locationSearchV2 as O,reportNewTypeDataApi as J,getCompanyOptionApi as j,slideGetApi as z,slideCheckApi as H,emitter as q,MODAL_ACTION as K,validateAccountExistApi as G,validateCompanyApi as W,getAuthSessionItems as Y,setTokenAll as _,resetAuthSessionItems as Z,registerJoinCompanyBindWechatApi as X,registerJoinCompanyApi as $,registerBindWechatApi as ee,registerApi as te,Encrypt as oe,sendEmailCodeApi as ne,findPAreaCodeAPi as ie,findDictAPi as ae,sendMobileCodeApi as re,getLoginQrCode as se,setAuthSessionItems as le,loginByQrCode as ce,loginByFacebookApi as ue,loginByLinkedinApi as de,registerJoinCompByThirdPartyApi as he,registerByThirdPartyApi as pe,bindThirdPartyByPwdApi as fe,bindThirdPartyByCodeApi as me,loginApi as ge,getFirstDomain as ve,loginByEmailOrMobileCodeApi as Ae,completeJoinCompanyRedirectApi as ye,completeCompRedirectApi as Ce,resetPasswordApi as we,getMEVCodeApi as Ee,checkAccountExistsFPApi as be,getRememberAccount as Ie,initSharedConfig as Be,setRememberMe as ke}from"@jctrans-materials/shared";import{MODAL_ACTION as Se,createRequest as xe,emitter as Re,getAppId as Te,initSharedConfig as Fe}from"@jctrans-materials/shared";import{useFormItem as Qe,ElMessage as Le,ElSelect as Pe,ElOption as Ne,ElInput as Ue,ElDialog as Ve,ElForm as De,ElRow as Me,ElCol as Oe,ElFormItem as Je,ElCheckbox as je,ElButton as ze,ElLink as He,ElRadioButton as qe,ElRadioGroup as Ke,vLoading as Ge,ElMessageBox as We}from"element-plus";const Ye=(e,t)=>O.searchByIdWithType(e,t);function _e(o,n,i){const a=e([]),r=e(!1),s=e(!1),l=e(1),c=e(0),u=e(10),d=t(()=>0!==c.value&&a.value.length>=c.value),h=t(()=>{const e=[...n.value];return e.includes("Country")&&!e.includes("Region")&&e.push("Region"),e}),p=e=>e&&Array.isArray(e)?e.filter(e=>h.value.includes(e.type)):[];return{searchResults:a,loading:r,isFetchingMore:s,isFinished:d,currentPage:l,total:c,fetchData:async(e=1,t=!1)=>{const h=i?.parentId?.value,f=o.value.trim();if(!f&&!t&&!h)return a.value=[],void(c.value=0);if((!t||!s.value&&!d.value)&&(t||!r.value)){t?s.value=!0:(r.value=!0,l.value=1);try{const o={};h&&i?.parentType?.value&&("Country"===i.parentType.value?o.countryIds=[i.parentId?.value]:"City"===i.parentType.value&&(o.cityIds=[i.parentId?.value]));const r=await async function(e,t=["Continent","Country","City","Seaport","Airport"],o={}){return O.searchByName({keyword:e,displayInfo:t,...o})}(f,n.value,{current:e,size:u.value,...o}),s=r.records||[],d=p(s);a.value=t?[...a.value,...d]:d,c.value=r.total||0,l.value=e}catch(m){console.error("Failed to fetch search results:",m)}finally{r.value=!1,s.value=!1}}},filterByTypes:p}}const Ze=Math.min,Xe=Math.max,$e=Math.round,et=Math.floor,tt=e=>({x:e,y:e}),ot={left:"right",right:"left",bottom:"top",top:"bottom"},nt={start:"end",end:"start"};function it(e,t,o){return Xe(e,Ze(t,o))}function at(e,t){return"function"==typeof e?e(t):e}function rt(e){return e.split("-")[0]}function st(e){return e.split("-")[1]}function lt(e){return"x"===e?"y":"x"}function ct(e){return"y"===e?"height":"width"}const ut=/* @__PURE__ */new Set(["top","bottom"]);function dt(e){return ut.has(rt(e))?"y":"x"}function ht(e){return lt(dt(e))}function pt(e){return e.replace(/start|end/g,e=>nt[e])}const ft=["left","right"],mt=["right","left"],gt=["top","bottom"],vt=["bottom","top"];function At(e,t,o,n){const i=st(e);let a=function(e,t,o){switch(e){case"top":case"bottom":return o?t?mt:ft:t?ft:mt;case"left":case"right":return t?gt:vt;default:return[]}}(rt(e),"start"===o,n);return i&&(a=a.map(e=>e+"-"+i),t&&(a=a.concat(a.map(pt)))),a}function yt(e){return e.replace(/left|right|bottom|top/g,e=>ot[e])}function Ct(e){const{x:t,y:o,width:n,height:i}=e;return{width:n,height:i,top:o,left:t,right:t+n,bottom:o+i,x:t,y:o}}function wt(e,t,o){let{reference:n,floating:i}=e;const a=dt(t),r=ht(t),s=ct(r),l=rt(t),c="y"===a,u=n.x+n.width/2-i.width/2,d=n.y+n.height/2-i.height/2,h=n[s]/2-i[s]/2;let p;switch(l){case"top":p={x:u,y:n.y-i.height};break;case"bottom":p={x:u,y:n.y+n.height};break;case"right":p={x:n.x+n.width,y:d};break;case"left":p={x:n.x-i.width,y:d};break;default:p={x:n.x,y:n.y}}switch(st(t)){case"start":p[r]-=h*(o&&c?-1:1);break;case"end":p[r]+=h*(o&&c?-1:1)}return p}async function Et(e,t){var o;void 0===t&&(t={});const{x:n,y:i,platform:a,rects:r,elements:s,strategy:l}=e,{boundary:c="clippingAncestors",rootBoundary:u="viewport",elementContext:d="floating",altBoundary:h=!1,padding:p=0}=at(t,e),f=function(e){return"number"!=typeof e?function(e){return{top:0,right:0,bottom:0,left:0,...e}}(e):{top:e,right:e,bottom:e,left:e}}(p),m=s[h?"floating"===d?"reference":"floating":d],g=Ct(await a.getClippingRect({element:null==(o=await(null==a.isElement?void 0:a.isElement(m)))||o?m:m.contextElement||await(null==a.getDocumentElement?void 0:a.getDocumentElement(s.floating)),boundary:c,rootBoundary:u,strategy:l})),v="floating"===d?{x:n,y:i,width:r.floating.width,height:r.floating.height}:r.reference,A=await(null==a.getOffsetParent?void 0:a.getOffsetParent(s.floating)),y=await(null==a.isElement?void 0:a.isElement(A))&&await(null==a.getScale?void 0:a.getScale(A))||{x:1,y:1},C=Ct(a.convertOffsetParentRelativeRectToViewportRelativeRect?await a.convertOffsetParentRelativeRectToViewportRelativeRect({elements:s,rect:v,offsetParent:A,strategy:l}):v);return{top:(g.top-C.top+f.top)/y.y,bottom:(C.bottom-g.bottom+f.bottom)/y.y,left:(g.left-C.left+f.left)/y.x,right:(C.right-g.right+f.right)/y.x}}const bt=/* @__PURE__ */new Set(["left","top"]);function It(){return"undefined"!=typeof window}function Bt(e){return xt(e)?(e.nodeName||"").toLowerCase():"#document"}function kt(e){var t;return(null==e||null==(t=e.ownerDocument)?void 0:t.defaultView)||window}function St(e){var t;return null==(t=(xt(e)?e.ownerDocument:e.document)||window.document)?void 0:t.documentElement}function xt(e){return!!It()&&(e instanceof Node||e instanceof kt(e).Node)}function Rt(e){return!!It()&&(e instanceof Element||e instanceof kt(e).Element)}function Tt(e){return!!It()&&(e instanceof HTMLElement||e instanceof kt(e).HTMLElement)}function Ft(e){return!(!It()||"undefined"==typeof ShadowRoot)&&(e instanceof ShadowRoot||e instanceof kt(e).ShadowRoot)}const Qt=/* @__PURE__ */new Set(["inline","contents"]);function Lt(e){const{overflow:t,overflowX:o,overflowY:n,display:i}=qt(e);return/auto|scroll|overlay|hidden|clip/.test(t+n+o)&&!Qt.has(i)}const Pt=/* @__PURE__ */new Set(["table","td","th"]);function Nt(e){return Pt.has(Bt(e))}const Ut=[":popover-open",":modal"];function Vt(e){return Ut.some(t=>{try{return e.matches(t)}catch(o){return!1}})}const Dt=["transform","translate","scale","rotate","perspective"],Mt=["transform","translate","scale","rotate","perspective","filter"],Ot=["paint","layout","strict","content"];function Jt(e){const t=jt(),o=Rt(e)?qt(e):e;return Dt.some(e=>!!o[e]&&"none"!==o[e])||!!o.containerType&&"normal"!==o.containerType||!t&&!!o.backdropFilter&&"none"!==o.backdropFilter||!t&&!!o.filter&&"none"!==o.filter||Mt.some(e=>(o.willChange||"").includes(e))||Ot.some(e=>(o.contain||"").includes(e))}function jt(){return!("undefined"==typeof CSS||!CSS.supports)&&CSS.supports("-webkit-backdrop-filter","none")}const zt=/* @__PURE__ */new Set(["html","body","#document"]);function Ht(e){return zt.has(Bt(e))}function qt(e){return kt(e).getComputedStyle(e)}function Kt(e){return Rt(e)?{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}:{scrollLeft:e.scrollX,scrollTop:e.scrollY}}function Gt(e){if("html"===Bt(e))return e;const t=e.assignedSlot||e.parentNode||Ft(e)&&e.host||St(e);return Ft(t)?t.host:t}function Wt(e){const t=Gt(e);return Ht(t)?e.ownerDocument?e.ownerDocument.body:e.body:Tt(t)&&Lt(t)?t:Wt(t)}function Yt(e,t,o){var n;void 0===t&&(t=[]),void 0===o&&(o=!0);const i=Wt(e),a=i===(null==(n=e.ownerDocument)?void 0:n.body),r=kt(i);if(a){const e=_t(r);return t.concat(r,r.visualViewport||[],Lt(i)?i:[],e&&o?Yt(e):[])}return t.concat(i,Yt(i,[],o))}function _t(e){return e.parent&&Object.getPrototypeOf(e.parent)?e.frameElement:null}function Zt(e){const t=qt(e);let o=parseFloat(t.width)||0,n=parseFloat(t.height)||0;const i=Tt(e),a=i?e.offsetWidth:o,r=i?e.offsetHeight:n,s=$e(o)!==a||$e(n)!==r;return s&&(o=a,n=r),{width:o,height:n,$:s}}function Xt(e){return Rt(e)?e:e.contextElement}function $t(e){const t=Xt(e);if(!Tt(t))return tt(1);const o=t.getBoundingClientRect(),{width:n,height:i,$:a}=Zt(t);let r=(a?$e(o.width):o.width)/n,s=(a?$e(o.height):o.height)/i;return r&&Number.isFinite(r)||(r=1),s&&Number.isFinite(s)||(s=1),{x:r,y:s}}const eo=/* @__PURE__ */tt(0);function to(e){const t=kt(e);return jt()&&t.visualViewport?{x:t.visualViewport.offsetLeft,y:t.visualViewport.offsetTop}:eo}function oo(e,t,o,n){void 0===t&&(t=!1),void 0===o&&(o=!1);const i=e.getBoundingClientRect(),a=Xt(e);let r=tt(1);t&&(n?Rt(n)&&(r=$t(n)):r=$t(e));const s=function(e,t,o){return void 0===t&&(t=!1),!(!o||t&&o!==kt(e))&&t}(a,o,n)?to(a):tt(0);let l=(i.left+s.x)/r.x,c=(i.top+s.y)/r.y,u=i.width/r.x,d=i.height/r.y;if(a){const e=kt(a),t=n&&Rt(n)?kt(n):n;let o=e,i=_t(o);for(;i&&n&&t!==o;){const e=$t(i),t=i.getBoundingClientRect(),n=qt(i),a=t.left+(i.clientLeft+parseFloat(n.paddingLeft))*e.x,r=t.top+(i.clientTop+parseFloat(n.paddingTop))*e.y;l*=e.x,c*=e.y,u*=e.x,d*=e.y,l+=a,c+=r,o=kt(i),i=_t(o)}}return Ct({width:u,height:d,x:l,y:c})}function no(e,t){const o=Kt(e).scrollLeft;return t?t.left+o:oo(St(e)).left+o}function io(e,t){const o=e.getBoundingClientRect();return{x:o.left+t.scrollLeft-no(e,o),y:o.top+t.scrollTop}}const ao=/* @__PURE__ */new Set(["absolute","fixed"]);function ro(e,t,o){let n;if("viewport"===t)n=function(e,t){const o=kt(e),n=St(e),i=o.visualViewport;let a=n.clientWidth,r=n.clientHeight,s=0,l=0;if(i){a=i.width,r=i.height;const e=jt();(!e||e&&"fixed"===t)&&(s=i.offsetLeft,l=i.offsetTop)}const c=no(n);if(c<=0){const e=n.ownerDocument,t=e.body,o=getComputedStyle(t),i="CSS1Compat"===e.compatMode&&parseFloat(o.marginLeft)+parseFloat(o.marginRight)||0,r=Math.abs(n.clientWidth-t.clientWidth-i);r<=25&&(a-=r)}else c<=25&&(a+=c);return{width:a,height:r,x:s,y:l}}(e,o);else if("document"===t)n=function(e){const t=St(e),o=Kt(e),n=e.ownerDocument.body,i=Xe(t.scrollWidth,t.clientWidth,n.scrollWidth,n.clientWidth),a=Xe(t.scrollHeight,t.clientHeight,n.scrollHeight,n.clientHeight);let r=-o.scrollLeft+no(e);const s=-o.scrollTop;return"rtl"===qt(n).direction&&(r+=Xe(t.clientWidth,n.clientWidth)-i),{width:i,height:a,x:r,y:s}}(St(e));else if(Rt(t))n=function(e,t){const o=oo(e,!0,"fixed"===t),n=o.top+e.clientTop,i=o.left+e.clientLeft,a=Tt(e)?$t(e):tt(1);return{width:e.clientWidth*a.x,height:e.clientHeight*a.y,x:i*a.x,y:n*a.y}}(t,o);else{const o=to(e);n={x:t.x-o.x,y:t.y-o.y,width:t.width,height:t.height}}return Ct(n)}function so(e,t){const o=Gt(e);return!(o===t||!Rt(o)||Ht(o))&&("fixed"===qt(o).position||so(o,t))}function lo(e,t,o){const n=Tt(t),i=St(t),a="fixed"===o,r=oo(e,!0,a,t);let s={scrollLeft:0,scrollTop:0};const l=tt(0);function c(){l.x=no(i)}if(n||!n&&!a)if(("body"!==Bt(t)||Lt(i))&&(s=Kt(t)),n){const e=oo(t,!0,a,t);l.x=e.x+t.clientLeft,l.y=e.y+t.clientTop}else i&&c();a&&!n&&i&&c();const u=!i||n||a?tt(0):io(i,s);return{x:r.left+s.scrollLeft-l.x-u.x,y:r.top+s.scrollTop-l.y-u.y,width:r.width,height:r.height}}function co(e){return"static"===qt(e).position}function uo(e,t){if(!Tt(e)||"fixed"===qt(e).position)return null;if(t)return t(e);let o=e.offsetParent;return St(e)===o&&(o=o.ownerDocument.body),o}function ho(e,t){const o=kt(e);if(Vt(e))return o;if(!Tt(e)){let t=Gt(e);for(;t&&!Ht(t);){if(Rt(t)&&!co(t))return t;t=Gt(t)}return o}let n=uo(e,t);for(;n&&Nt(n)&&co(n);)n=uo(n,t);return n&&Ht(n)&&co(n)&&!Jt(n)?o:n||function(e){let t=Gt(e);for(;Tt(t)&&!Ht(t);){if(Jt(t))return t;if(Vt(t))return null;t=Gt(t)}return null}(e)||o}const po={convertOffsetParentRelativeRectToViewportRelativeRect:function(e){let{elements:t,rect:o,offsetParent:n,strategy:i}=e;const a="fixed"===i,r=St(n),s=!!t&&Vt(t.floating);if(n===r||s&&a)return o;let l={scrollLeft:0,scrollTop:0},c=tt(1);const u=tt(0),d=Tt(n);if((d||!d&&!a)&&(("body"!==Bt(n)||Lt(r))&&(l=Kt(n)),Tt(n))){const e=oo(n);c=$t(n),u.x=e.x+n.clientLeft,u.y=e.y+n.clientTop}const h=!r||d||a?tt(0):io(r,l);return{width:o.width*c.x,height:o.height*c.y,x:o.x*c.x-l.scrollLeft*c.x+u.x+h.x,y:o.y*c.y-l.scrollTop*c.y+u.y+h.y}},getDocumentElement:St,getClippingRect:function(e){let{element:t,boundary:o,rootBoundary:n,strategy:i}=e;const a=[..."clippingAncestors"===o?Vt(t)?[]:function(e,t){const o=t.get(e);if(o)return o;let n=Yt(e,[],!1).filter(e=>Rt(e)&&"body"!==Bt(e)),i=null;const a="fixed"===qt(e).position;let r=a?Gt(e):e;for(;Rt(r)&&!Ht(r);){const t=qt(r),o=Jt(r);o||"fixed"!==t.position||(i=null),(a?!o&&!i:!o&&"static"===t.position&&i&&ao.has(i.position)||Lt(r)&&!o&&so(e,r))?n=n.filter(e=>e!==r):i=t,r=Gt(r)}return t.set(e,n),n}(t,this._c):[].concat(o),n],r=a[0],s=a.reduce((e,o)=>{const n=ro(t,o,i);return e.top=Xe(n.top,e.top),e.right=Ze(n.right,e.right),e.bottom=Ze(n.bottom,e.bottom),e.left=Xe(n.left,e.left),e},ro(t,r,i));return{width:s.right-s.left,height:s.bottom-s.top,x:s.left,y:s.top}},getOffsetParent:ho,getElementRects:async function(e){const t=this.getOffsetParent||ho,o=this.getDimensions,n=await o(e.floating);return{reference:lo(e.reference,await t(e.floating),e.strategy),floating:{x:0,y:0,width:n.width,height:n.height}}},getClientRects:function(e){return Array.from(e.getClientRects())},getDimensions:function(e){const{width:t,height:o}=Zt(e);return{width:t,height:o}},getScale:$t,isElement:Rt,isRTL:function(e){return"rtl"===qt(e).direction}};function fo(e,t){return e.x===t.x&&e.y===t.y&&e.width===t.width&&e.height===t.height}function mo(e,t,o,n){void 0===n&&(n={});const{ancestorScroll:i=!0,ancestorResize:a=!0,elementResize:r="function"==typeof ResizeObserver,layoutShift:s="function"==typeof IntersectionObserver,animationFrame:l=!1}=n,c=Xt(e),u=i||a?[...c?Yt(c):[],...Yt(t)]:[];u.forEach(e=>{i&&e.addEventListener("scroll",o,{passive:!0}),a&&e.addEventListener("resize",o)});const d=c&&s?function(e,t){let o,n=null;const i=St(e);function a(){var e;clearTimeout(o),null==(e=n)||e.disconnect(),n=null}return function r(s,l){void 0===s&&(s=!1),void 0===l&&(l=1),a();const c=e.getBoundingClientRect(),{left:u,top:d,width:h,height:p}=c;if(s||t(),!h||!p)return;const f={rootMargin:-et(d)+"px "+-et(i.clientWidth-(u+h))+"px "+-et(i.clientHeight-(d+p))+"px "+-et(u)+"px",threshold:Xe(0,Ze(1,l))||1};let m=!0;function g(t){const n=t[0].intersectionRatio;if(n!==l){if(!m)return r();n?r(!1,n):o=setTimeout(()=>{r(!1,1e-7)},1e3)}1!==n||fo(c,e.getBoundingClientRect())||r(),m=!1}try{n=new IntersectionObserver(g,{...f,root:i.ownerDocument})}catch(v){n=new IntersectionObserver(g,f)}n.observe(e)}(!0),a}(c,o):null;let h,p=-1,f=null;r&&(f=new ResizeObserver(e=>{let[n]=e;n&&n.target===c&&f&&(f.unobserve(t),cancelAnimationFrame(p),p=requestAnimationFrame(()=>{var e;null==(e=f)||e.observe(t)})),o()}),c&&!l&&f.observe(c),f.observe(t));let m=l?oo(e):null;return l&&function t(){const n=oo(e);m&&!fo(m,n)&&o();m=n,h=requestAnimationFrame(t)}(),o(),()=>{var e;u.forEach(e=>{i&&e.removeEventListener("scroll",o),a&&e.removeEventListener("resize",o)}),null==d||d(),null==(e=f)||e.disconnect(),f=null,l&&cancelAnimationFrame(h)}}const go=function(e){return void 0===e&&(e=0),{name:"offset",options:e,async fn(t){var o,n;const{x:i,y:a,placement:r,middlewareData:s}=t,l=await async function(e,t){const{placement:o,platform:n,elements:i}=e,a=await(null==n.isRTL?void 0:n.isRTL(i.floating)),r=rt(o),s=st(o),l="y"===dt(o),c=bt.has(r)?-1:1,u=a&&l?-1:1,d=at(t,e);let{mainAxis:h,crossAxis:p,alignmentAxis:f}="number"==typeof d?{mainAxis:d,crossAxis:0,alignmentAxis:null}:{mainAxis:d.mainAxis||0,crossAxis:d.crossAxis||0,alignmentAxis:d.alignmentAxis};return s&&"number"==typeof f&&(p="end"===s?-1*f:f),l?{x:p*u,y:h*c}:{x:h*c,y:p*u}}(t,e);return r===(null==(o=s.offset)?void 0:o.placement)&&null!=(n=s.arrow)&&n.alignmentOffset?{}:{x:i+l.x,y:a+l.y,data:{...l,placement:r}}}}},vo=function(e){return void 0===e&&(e={}),{name:"shift",options:e,async fn(t){const{x:o,y:n,placement:i}=t,{mainAxis:a=!0,crossAxis:r=!1,limiter:s={fn:e=>{let{x:t,y:o}=e;return{x:t,y:o}}},...l}=at(e,t),c={x:o,y:n},u=await Et(t,l),d=dt(rt(i)),h=lt(d);let p=c[h],f=c[d];if(a){const e="y"===h?"bottom":"right";p=it(p+u["y"===h?"top":"left"],p,p-u[e])}if(r){const e="y"===d?"bottom":"right";f=it(f+u["y"===d?"top":"left"],f,f-u[e])}const m=s.fn({...t,[h]:p,[d]:f});return{...m,data:{x:m.x-o,y:m.y-n,enabled:{[h]:a,[d]:r}}}}}},Ao=function(e){return void 0===e&&(e={}),{name:"flip",options:e,async fn(t){var o,n;const{placement:i,middlewareData:a,rects:r,initialPlacement:s,platform:l,elements:c}=t,{mainAxis:u=!0,crossAxis:d=!0,fallbackPlacements:h,fallbackStrategy:p="bestFit",fallbackAxisSideDirection:f="none",flipAlignment:m=!0,...g}=at(e,t);if(null!=(o=a.arrow)&&o.alignmentOffset)return{};const v=rt(i),A=dt(s),y=rt(s)===s,C=await(null==l.isRTL?void 0:l.isRTL(c.floating)),w=h||(y||!m?[yt(s)]:function(e){const t=yt(e);return[pt(e),t,pt(t)]}(s)),E="none"!==f;!h&&E&&w.push(...At(s,m,f,C));const b=[s,...w],I=await Et(t,g),B=[];let k=(null==(n=a.flip)?void 0:n.overflows)||[];if(u&&B.push(I[v]),d){const e=function(e,t,o){void 0===o&&(o=!1);const n=st(e),i=ht(e),a=ct(i);let r="x"===i?n===(o?"end":"start")?"right":"left":"start"===n?"bottom":"top";return t.reference[a]>t.floating[a]&&(r=yt(r)),[r,yt(r)]}(i,r,C);B.push(I[e[0]],I[e[1]])}if(k=[...k,{placement:i,overflows:B}],!B.every(e=>e<=0)){var S,x;const e=((null==(S=a.flip)?void 0:S.index)||0)+1,t=b[e];if(t){if(!("alignment"===d&&A!==dt(t))||k.every(e=>dt(e.placement)!==A||e.overflows[0]>0))return{data:{index:e,overflows:k},reset:{placement:t}}}let o=null==(x=k.filter(e=>e.overflows[0]<=0).sort((e,t)=>e.overflows[1]-t.overflows[1])[0])?void 0:x.placement;if(!o)switch(p){case"bestFit":{var R;const e=null==(R=k.filter(e=>{if(E){const t=dt(e.placement);return t===A||"y"===t}return!0}).map(e=>[e.placement,e.overflows.filter(e=>e>0).reduce((e,t)=>e+t,0)]).sort((e,t)=>e[1]-t[1])[0])?void 0:R[0];e&&(o=e);break}case"initialPlacement":o=s}if(i!==o)return{reset:{placement:o}}}return{}}}},yo=function(e){return void 0===e&&(e={}),{name:"size",options:e,async fn(t){var o,n;const{placement:i,rects:a,platform:r,elements:s}=t,{apply:l=()=>{},...c}=at(e,t),u=await Et(t,c),d=rt(i),h=st(i),p="y"===dt(i),{width:f,height:m}=a.floating;let g,v;"top"===d||"bottom"===d?(g=d,v=h===(await(null==r.isRTL?void 0:r.isRTL(s.floating))?"start":"end")?"left":"right"):(v=d,g="end"===h?"top":"bottom");const A=m-u.top-u.bottom,y=f-u.left-u.right,C=Ze(m-u[g],A),w=Ze(f-u[v],y),E=!t.middlewareData.shift;let b=C,I=w;if(null!=(o=t.middlewareData.shift)&&o.enabled.x&&(I=y),null!=(n=t.middlewareData.shift)&&n.enabled.y&&(b=A),E&&!h){const e=Xe(u.left,0),t=Xe(u.right,0),o=Xe(u.top,0),n=Xe(u.bottom,0);p?I=f-2*(0!==e||0!==t?e+t:Xe(u.left,u.right)):b=m-2*(0!==o||0!==n?o+n:Xe(u.top,u.bottom))}await l({...t,availableWidth:I,availableHeight:b});const B=await r.getDimensions(s.floating);return f!==B.width||m!==B.height?{reset:{rects:!0}}:{}}}},Co=(e,t,o)=>{const n=/* @__PURE__ */new Map,i={platform:po,...o},a={...i.platform,_c:n};return(async(e,t,o)=>{const{placement:n="bottom",strategy:i="absolute",middleware:a=[],platform:r}=o,s=a.filter(Boolean),l=await(null==r.isRTL?void 0:r.isRTL(t));let c=await r.getElementRects({reference:e,floating:t,strategy:i}),{x:u,y:d}=wt(c,n,l),h=n,p={},f=0;for(let m=0;m<s.length;m++){const{name:o,fn:a}=s[m],{x:g,y:v,data:A,reset:y}=await a({x:u,y:d,initialPlacement:n,placement:h,strategy:i,middlewareData:p,rects:c,platform:r,elements:{reference:e,floating:t}});u=null!=g?g:u,d=null!=v?v:d,p={...p,[o]:{...p[o],...A}},y&&f<=50&&(f++,"object"==typeof y&&(y.placement&&(h=y.placement),y.rects&&(c=!0===y.rects?await r.getElementRects({reference:e,floating:t,strategy:i}):y.rects),({x:u,y:d}=wt(c,h,l))),m=-1)}return{x:u,y:d,placement:h,strategy:i,middlewareData:p}})(e,t,{...i,platform:a})};const wo="data:image/svg+xml,%3csvg%20t='1695277594902'%20fill='%23fff'%20class='icon'%20viewBox='0%200%201024%201024'%20version='1.1'%20xmlns='http://www.w3.org/2000/svg'%20p-id='2534'%20width='200'%20height='200'%3e%3cpath%20d='M448%2085.333333a362.666667%20362.666667%200%201%200%20224.512%20647.509334l155.818667%20155.818666a42.666667%2042.666667%200%200%200%2060.330666-60.330666l-155.818666-155.818667A362.666667%20362.666667%200%200%200%20448%2085.333333zM170.666667%20448a277.333333%20277.333333%200%201%201%20554.666666%200%20277.333333%20277.333333%200%200%201-554.666666%200z'%20p-id='2535'%3e%3c/path%3e%3c/svg%3e",Eo={class:"selection-wrapper"},bo={class:"tag-text"},Io=["onClick"],Bo={key:0,class:"search-tag collapse"},ko=["placeholder"],So={class:"suffix-area"},xo={key:1,class:"loading-spinner"},Ro={class:"search-icon"},To=["src"],Fo={key:0,class:"history-section"},Qo={class:"history-header"},Lo=["onMousedown"],Po=["src"],No={class:"type-text"},Uo={class:"result-text"},Vo={key:0,class:"status-msg"},Do=["onMousedown"],Mo=["src"],Oo={class:"type-text"},Jo={class:"result-text"},jo={key:0,class:"load-more-msg"},zo={key:1,class:"load-more-msg no-more"},Ho={key:2,class:"status-msg"},qo={key:0,class:"no-result-label"},Ko={key:1,class:"no-result-label"},Go={class:"jc:flex jc:justify-center jc:items-center jc:gap-1"},Wo=["src"],Yo=(e,t)=>{const o=e.__vccOpts||e;for(const[n,i]of t)o[n]=i;return o},_o=/* @__PURE__ */Yo(/* @__PURE__ */i({__name:"index",props:{modelValue:{default:null},multiple:{type:Boolean,default:!1},collapseTags:{type:Boolean,default:!1},searchTypeList:{default:()=>["Continent","Country","Region","City","Seaport","Airport"]},historyKey:{default:void 0},lang:{default:""},placeholder:{},showSearchIcon:{type:Boolean,default:!0},showItemTag:{type:Boolean,default:!0},showApplyData:{type:Boolean,default:!0},parentId:{default:null},parentType:{default:null},disabled:{type:Boolean,default:!1}},emits:["update:modelValue","select","blur","change","submit-search","remove","apply-data","apply-data-open","apply-data-close"],setup(i,{emit:S}){const x=i,R=S,T=e(null),F=e(null),Q=e(null),L=e(""),P=e(""),N=e(!1);let U=null;const V=e(!1),D=t(()=>x.modelValue?Array.isArray(x.modelValue)?x.modelValue:[x.modelValue]:[]),M=t(()=>x.multiple?x.collapseTags?D.value.slice(0,1):D.value:[]),O=t(()=>L.value||D.value.length>0),J=t(()=>x.multiple?L.value?10*L.value.length+20+"px":"10px":"100%"),{searchHistory:j,saveToHistory:z,clearHistory:H}=function(n){const i=e([]),a="undefined"!=typeof window&&"undefined"!=typeof localStorage,r=t(()=>(n.value||"")+"_search_history_cache"),s=t(()=>!!n.value&&""!==n.value);return o(()=>{if(a&&s.value){const t=localStorage.getItem(r.value);if(t)try{i.value=JSON.parse(t)}catch(e){i.value=[]}}}),{searchHistory:i,saveToHistory:e=>{if(!e||!a)return;const t=i.value.filter(t=>t.id&&t.id!==e.id||t.display!==e.display);t.unshift(e);const o=t.slice(0,4);if(s.value){i.value=o;try{localStorage.setItem(r.value,JSON.stringify(o))}catch(n){console.warn("LocalStorage save failed:",n)}}},clearHistory:()=>{i.value=[],a&&localStorage.removeItem(r.value)},HasHistory:s}}(a(x,"historyKey")),{searchResults:q,loading:K,isFetchingMore:G,isFinished:W,currentPage:Y,fetchData:_,filterByTypes:Z}=_e(L,a(x,"searchTypeList"),{parentId:a(x,"parentId"),parentType:a(x,"parentType")}),{floatingStyles:X,startTrack:$,stopTrack:ee}=function(t,o){const i=e({position:"fixed",left:"0",top:"0",zIndex:3e3});let a=null;const r=()=>{t.value&&o.value&&Co(t.value,o.value,{placement:"bottom-start",strategy:"fixed",middleware:[go(6),Ao(),vo({padding:10}),yo({apply({rects:e,elements:t}){const o=`${e.reference.width}px`;Object.assign(t.floating.style,{width:o,minWidth:o,maxWidth:o})}})]}).then(({x:e,y:t})=>{Object.assign(i.value,{left:`${e}px`,top:`${t}px`})})},s=()=>{a&&(a(),a=null)};return n(s),{floatingStyles:i,startTrack:()=>{t.value&&o.value&&(a=mo(t.value,o.value,r))},stopTrack:s}}(F,Q),{isDropdownVisible:te,openDropdown:oe,handleAfterSelect:ne,handleBlur:ie}=function(t,o,n,i){const a=e(!1),r=()=>a.value=!1;return{isDropdownVisible:a,openDropdown:()=>a.value=!0,closeDropdown:r,handleAfterSelect:()=>{t?o.value?.focus():(n.value="",r(),o.value?.blur())},handleBlur:()=>{setTimeout(()=>{r(),i("blur"),t&&(n.value="")},200)}}}(a(x,"multiple").value,T,L,R),{formItem:ae}=Qe(),re=t(()=>q.value.length>0||K.value||L.value||j.value.length>0),se=t(()=>{if(x.lang)return"en"===x.lang||"en-US"===x.lang;try{if("function"==typeof useCookie){const e=useCookie("jc-language")?.value;if(e)return/^en(-US)?$/.test(e)}}catch(e){}if("undefined"!=typeof document){const e=document.cookie||"";return/(^|;\s*)jc-language=en(-US)?(;|$)/.test(e)}try{if("function"==typeof useNuxtApp){const e=useNuxtApp();return/(^|;\s*)jc-language=en(-US)?(;|$)/.test(e?.ssrContext?.event?.node?.req?.headers?.cookie||"")}}catch(e){}return!1}),le=t(()=>x.multiple&&D.value.length>0?"":N.value&&!x.multiple?P.value:x.placeholder?x.placeholder:se.value?"Please enter...":"请输入..."),ce=e=>({City:"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAYAAAAf8/9hAAABFUlEQVR4AaRQO07DQBCdWe8B4B5IFFyAK9ARkIVNhIQEEiVtJLgABRVRvIBCJBquwBVyDgoaSnuHeZY3MlYcNsnIb8fze6M3hra0XoKJm95N3Nv3EnyhFvb2EgjRJbOMKqmO2tDcvQ5fK+qvl4CJbOn9/CJPP9tArp5sHtP4lc652VXxPL1Z1hRFIOytF1NuTJCfnT4Ms8HjSgJctn1xIt6hxqIkdK+u8U8zT1ESmP5enUkWmqMkhG2FmxXOvR+EGD5KAhoDqsQvtiMXJQGNQJ4N8mF6PMd/wL8SxuOXPSG21pj9p+L1EOjGyAHoQQ0zWGDqx9pbPWIpwqOEkw+gGyMHoAc1ozOkVhOcZyepYndNpDpPvwAAAP//BVQJHAAAAAZJREFUAwDZWL4hub5xHQAAAABJRU5ErkJggg==",Country:"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAYAAAAf8/9hAAACmklEQVR4AXRTT0jUQRT+3uyqGxgYeCiy1JAo6JBUp4Q81EEiKKiDa+H+/ENGHgPpZtChQ4EHL+Ku+9t0V7EkQSGPBYGHBIU6RAqt2cFDBw9C+3de3yy7hobDvHm/+d4337x58xuDQ9r4+FRDLJZqG49PtrvvQ2j4TyDmJ7sm/NRqoMpsIYD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CSDc97fv6DJzuf9QtDtm+iqsM1ot70w9O+YDbmSQ6bkkyCJitnAUcnryqmuExgSsZYKypvgFvS+5xVsJk0MGlps97mFCVXpnNZqoBcbo2QyJz7dCLj6JTj6tRxVyf3izZUtNndwM73SU55JzaO4Q8AAAD//54At5MAAAAGSURBVAMAh2IbMAJQAZQAAAAASUVORK5CYII="),ue=e=>{const t={City:{en:"City",cn:"城市"},Country:{en:"Country",cn:"国家"},Region:{en:"Region",cn:"区域"},Airport:{en:"Airport",cn:"机场"},Seaport:{en:"Seaport",cn:"港口"}};return se.value?t[e].en:t[e].cn},de=e=>D.value.some(t=>t.id===e.id),he=()=>T.value?.focus(),pe=e=>se.value?e.displayEn||e.display||"":e.displayCn||e.display||"",fe=e=>{if(z(e),x.multiple){if(!de(e)){const t=[...D.value,e];R("update:modelValue",t)}}else P.value=pe(e),N.value=!0,R("update:modelValue",e);R("select",e),R("change",e),ae?.validate?.("change").catch(()=>{}),ne()},me=e=>{const t=D.value.filter(t=>t.id!==e.id);R("update:modelValue",t),R("remove",e)},ge=()=>{x.multiple&&!L.value&&D.value.length>0&&me(D.value[D.value.length-1])},ve=()=>{L.value="",N.value=!1,P.value="";const e=x.multiple?[]:null;R("update:modelValue",e),ae?.validate?.("change").catch(()=>{})},Ae=async()=>{if(oe(),!x.multiple&&N.value&&0===q.value.length){const e=x.modelValue;if(e?.id){K.value=!0;try{const t=await Ye(e.id,e.type);q.value=Z(t.records)}finally{K.value=!1}}}},ye=e=>{ie(),ae?.validate?.("blur").catch(()=>{})},Ce=e=>{""!==e.target.value||x.multiple||ve()},we=()=>{R("submit-search",D.value),te.value=!1},Ee=e=>{const{scrollTop:t,scrollHeight:o,clientHeight:n}=e.target;t+n>=o-20&&(K.value||G.value||W.value||!L.value||_(Y.value+1,!0))},be=e=>{console.log("🍉 ~ index.vue:428 ~ handleConfirmApplyData ~ e:",e),R("apply-data",e)},Ie=()=>{V.value=!0,R("apply-data-open")},Be=()=>{L.value="",V.value=!1,R("apply-data-close")};return r(()=>x.parentId,()=>{x.multiple||(L.value="",q.value=[])}),r(te,e=>{e?$():ee()}),r(L,e=>{e.trim()?(U&&clearTimeout(U),U=setTimeout(()=>_(1,!1),300)):q.value=[]}),r(()=>x.modelValue,async(e,t)=>{if(JSON.stringify(e)===JSON.stringify(t))return;if(x.multiple&&Array.isArray(e)){const t=[...e],o=t.filter(e=>e&&e.id&&e.type&&!e.display);if(o.length>0)try{const e=o.map(e=>e.id).filter(e=>null!=e),n=await Ye(e,o[0].type);if(n&&n.records){let e=!1;const o=t.map(t=>{const o=n.records.find(e=>e.id===t.id);return o&&!t.display?(e=!0,{...t,...o}):t});e&&R("update:modelValue",o)}}catch(n){console.error("Batch fetch detail failed:",n)}return}const o=e;if(!o)return N.value=!1,void(P.value="");if("object"==typeof o)if(o.id&&o.type&&!o.display)try{const e=(await Ye(o.id,o.type)).records.find(e=>e.id===o.id);e&&(P.value=pe(e),N.value=!0)}catch(n){console.error("Single fetch detail failed:",n)}else P.value=pe(o),N.value=!!P.value;else P.value=String(o),N.value=!!o},{immediate:!0,deep:!0}),n(ee),(e,t)=>(l(),s("div",{class:c(["search-container",{"is-disabled":i.disabled}])},[u("div",{class:c(["search-input-wrapper",{"is-multiple":i.multiple}]),ref_key:"referenceRef",ref:F,onClick:he},[u("div",Eo,[p(e.$slots,"prefix",{},void 0,!0),i.multiple&&D.value.length>0?(l(),s(g,{key:0},[(l(!0),s(g,null,v(M.value,(e,t)=>(l(),s("div",{key:e.id||t,class:"search-tag"},[u("span",bo,A(pe(e)),1),u("span",{class:"tag-close",onClick:y(t=>me(e),["stop"])},"×",8,Io)]))),128)),i.collapseTags&&D.value.length>1?(l(),s("div",Bo," + "+A(D.value.length-1),1)):f("",!0)],64)):f("",!0),m(u("input",{ref_key:"inputRef",ref:T,class:c({"is-selected-state":N.value&&!i.multiple}),"onUpdate:modelValue":t[0]||(t[0]=e=>L.value=e),type:"text",placeholder:le.value,style:w({width:J.value}),onFocus:Ae,onBlur:ye,onInput:Ce,onKeydown:C(ge,["delete"])},null,46,ko),[[E,L.value]])]),p(e.$slots,"suffix",{},()=>[u("div",So,[O.value?(l(),s("span",{key:0,class:"clear-icon",onMousedown:t[1]||(t[1]=y(()=>{},["prevent"])),onClick:y(ve,["stop"])},"ⓧ",32)):f("",!0),b(K)&&!b(G)?(l(),s("div",xo)):!b(K)&&i.showSearchIcon?(l(),s("button",{key:2,class:"search-btn",onClick:y(we,["stop"])},[u("span",Ro,[u("img",{src:b(wo),alt:"search"},null,8,To)])])):f("",!0)])],!0)],2),(l(),d(I,{to:"body"},[m(u("div",{ref_key:"floatingRef",ref:Q,class:"dropdown-list",style:w(b(X)),onScroll:Ee},[p(e.$slots,"history",{searchHistory:b(j)},()=>[b(j).length>0&&!L.value?(l(),s("div",Fo,[u("div",Qo,[u("span",null,A(se.value?"Recent search":"最近搜索"),1),u("span",{class:"clear-btn",onMousedown:t[2]||(t[2]=y(()=>{},["prevent"])),onClick:t[3]||(t[3]=y((...e)=>b(H)&&b(H)(...e),["stop"]))},A(se.value?"Clear":"清空"),33)]),(l(!0),s(g,null,v(b(j),(e,t)=>(l(),s("div",{key:"hist-"+t,class:"dropdown-item",onMousedown:y(t=>fe(e),["prevent"])},[u("div",{class:"category-tag",style:w(i.showItemTag?{}:{display:"none"})},[u("img",{class:"type-icon",src:ce(e.type),alt:""},null,8,Po),u("span",No,A(ue(e.type)),1)],4),u("div",Uo,A(pe(e)),1),B(" "+A(se.value),1)],40,Lo))),128)),t[7]||(t[7]=u("hr",{class:"divider"},null,-1))])):f("",!0)],!0),b(K)&&!b(G)?(l(),s("div",Vo,A(se.value?"Searching...":"正在搜索中..."),1)):b(q).length>0?(l(),s(g,{key:1},[p(e.$slots,"results",{searchResults:b(q)},()=>[(l(!0),s(g,null,v(b(q),(e,t)=>(l(),s("div",{key:t,class:c(["dropdown-item",{"is-active":de(e)}]),onMousedown:y(t=>fe(e),["prevent"])},[u("div",{class:"category-tag",style:w(i.showItemTag?{}:{display:"none"})},[u("img",{class:"type-icon",src:ce(e.type),alt:""},null,8,Mo),u("span",Oo,A(ue(e.type)),1)],4),u("div",Jo,A(pe(e)),1)],42,Do))),128))],!0),b(G)?(l(),s("div",jo,A(se.value?"Loading more...":"正在加载更多..."),1)):b(W)&&L.value?(l(),s("div",zo,A(se.value?"All results have been loaded":"已加载全部结果"),1)):f("",!0)],64)):L.value&&!b(K)?(l(),s("div",Ho,[p(e.$slots,"noData",{},()=>[i.showApplyData?(l(),s("div",Ko,[B(A(se.value?"No results found .":"暂无结果,")+" ",1),u("div",Go,[u("span",{class:"apply-data jc:cursor-pointer",onClick:t[4]||(t[4]=y(()=>V.value=!0,["stop"]))},A(se.value?" Apply for data addition":"申请补充数据 "),1),u("img",{src:b("data:image/svg+xml,%3csvg%20width='16'%20height='16'%20viewBox='0%200%2016%2016'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3cg%20id='icon/more'%3e%3cg%20id='&%23231;&%23188;&%23150;&%23231;&%23187;&%23132;'%3e%3cpath%20id='Stroke%201'%20d='M1.56628%207.79421H14.0959'%20stroke='%23FF6A00'%20stroke-width='1.5'%20stroke-linejoin='round'/%3e%3cpath%20id='Stroke%203'%20d='M14.0667%207.79292C11.5075%207.79292%209.43396%205.71938%209.43396%203.16016'%20stroke='%23FF6A00'%20stroke-width='1.5'%20stroke-linejoin='round'/%3e%3cpath%20id='Stroke%205'%20d='M14.0667%207.79297C11.5075%207.79297%209.43396%209.86651%209.43396%2012.4257'%20stroke='%23FF6A00'%20stroke-width='1.5'%20stroke-linejoin='round'/%3e%3c/g%3e%3c/g%3e%3c/svg%3e"),alt:"",class:"apply-data-more-icon",onClick:t[5]||(t[5]=y(()=>V.value=!0,["stop"]))},null,8,Wo)])])):(l(),s("p",qo,A(se.value?`No results found related to "${L.value}".`:`未找到与 "${L.value}" 相关的结果`),1))],!0)])):f("",!0)],36),[[k,b(te)&&re.value]])])),h(Ji,{searchValue:L.value,value:V.value,"onUpdate:value":t[6]||(t[6]=e=>V.value=e),lang:i.lang,onConfirm:be,onOpen:Ie,onClose:Be},null,8,["searchValue","value","lang"])],2))}}),[["__scopeId","data-v-b0f0cb07"]]),Zo=/* @__PURE__ */Object.freeze(/* @__PURE__ */Object.defineProperty({__proto__:null,default:_o},Symbol.toStringTag,{value:"Module"}));var Xo="object"==typeof global&&global&&global.Object===Object&&global,$o="object"==typeof self&&self&&self.Object===Object&&self,en=Xo||$o||Function("return this")(),tn=en.Symbol,on=Object.prototype,nn=on.hasOwnProperty,an=on.toString,rn=tn?tn.toStringTag:void 0;var sn=Object.prototype.toString;var ln=tn?tn.toStringTag:void 0;function cn(e){return null==e?void 0===e?"[object Undefined]":"[object Null]":ln&&ln in Object(e)?function(e){var t=nn.call(e,rn),o=e[rn];try{e[rn]=void 0;var n=!0}catch(a){}var i=an.call(e);return n&&(t?e[rn]=o:delete e[rn]),i}(e):function(e){return sn.call(e)}(e)}function un(e){return"symbol"==typeof e||function(e){return null!=e&&"object"==typeof e}(e)&&"[object Symbol]"==cn(e)}var dn=Array.isArray,hn=tn?tn.prototype:void 0,pn=hn?hn.toString:void 0;function fn(e){if("string"==typeof e)return e;if(dn(e))return function(e,t){for(var o=-1,n=null==e?0:e.length,i=Array(n);++o<n;)i[o]=t(e[o],o,e);return i}(e,fn)+"";if(un(e))return pn?pn.call(e):"";var t=e+"";return"0"==t&&1/e==-1/0?"-0":t}var mn=/\s/;var gn=/^\s+/;function vn(e){return e?e.slice(0,function(e){for(var t=e.length;t--&&mn.test(e.charAt(t)););return t}(e)+1).replace(gn,""):e}function An(e){var t=typeof e;return null!=e&&("object"==t||"function"==t)}var yn=/^[-+]0x[0-9a-f]+$/i,Cn=/^0b[01]+$/i,wn=/^0o[0-7]+$/i,En=parseInt;function bn(e){if("number"==typeof e)return e;if(un(e))return NaN;if(An(e)){var t="function"==typeof e.valueOf?e.valueOf():e;e=An(t)?t+"":t}if("string"!=typeof e)return 0===e?e:+e;e=vn(e);var o=Cn.test(e);return o||wn.test(e)?En(e.slice(2),o?2:8):yn.test(e)?NaN:+e}var In,Bn=en["__core-js_shared__"],kn=(In=/[^.]+$/.exec(Bn&&Bn.keys&&Bn.keys.IE_PROTO||""))?"Symbol(src)_1."+In:"";var Sn=Function.prototype.toString;var xn=/^\[object .+?Constructor\]$/,Rn=Function.prototype,Tn=Object.prototype,Fn=Rn.toString,Qn=Tn.hasOwnProperty,Ln=RegExp("^"+Fn.call(Qn).replace(/[\\^$.*+?()[\]{}|]/g,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");function Pn(e){if(!An(e)||(t=e,kn&&kn in t))return!1;var t,o=function(e){if(!An(e))return!1;var t=cn(e);return"[object Function]"==t||"[object GeneratorFunction]"==t||"[object AsyncFunction]"==t||"[object Proxy]"==t}(e)?Ln:xn;return o.test(function(e){if(null!=e){try{return Sn.call(e)}catch(t){}try{return e+""}catch(t){}}return""}(e))}function Nn(e,t){var o=function(e,t){return null==e?void 0:e[t]}(e,t);return Pn(o)?o:void 0}function Un(e){return e!=e}function Vn(e,t){return!!(null==e?0:e.length)&&function(e,t,o){return t==t?function(e,t,o){for(var n=o-1,i=e.length;++n<i;)if(e[n]===t)return n;return-1}(e,t,o):function(e,t,o){for(var n=e.length,i=o+-1;++i<n;)if(t(e[i],i,e))return i;return-1}(e,Un,o)}(e,t,0)>-1}function Dn(e,t){return e===t||e!=e&&t!=t}var Mn=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,On=/^\w*$/;function Jn(e,t){if(dn(e))return!1;var o=typeof e;return!("number"!=o&&"symbol"!=o&&"boolean"!=o&&null!=e&&!un(e))||(On.test(e)||!Mn.test(e)||null!=t&&e in Object(t))}var jn=Nn(Object,"create");var zn=Object.prototype.hasOwnProperty;var Hn=Object.prototype.hasOwnProperty;function qn(e){var t=-1,o=null==e?0:e.length;for(this.clear();++t<o;){var n=e[t];this.set(n[0],n[1])}}function Kn(e,t){for(var o=e.length;o--;)if(Dn(e[o][0],t))return o;return-1}qn.prototype.clear=function(){this.__data__=jn?jn(null):{},this.size=0},qn.prototype.delete=function(e){var t=this.has(e)&&delete this.__data__[e];return this.size-=t?1:0,t},qn.prototype.get=function(e){var t=this.__data__;if(jn){var o=t[e];return"__lodash_hash_undefined__"===o?void 0:o}return zn.call(t,e)?t[e]:void 0},qn.prototype.has=function(e){var t=this.__data__;return jn?void 0!==t[e]:Hn.call(t,e)},qn.prototype.set=function(e,t){var o=this.__data__;return this.size+=this.has(e)?0:1,o[e]=jn&&void 0===t?"__lodash_hash_undefined__":t,this};var Gn=Array.prototype.splice;function Wn(e){var t=-1,o=null==e?0:e.length;for(this.clear();++t<o;){var n=e[t];this.set(n[0],n[1])}}Wn.prototype.clear=function(){this.__data__=[],this.size=0},Wn.prototype.delete=function(e){var t=this.__data__,o=Kn(t,e);return!(o<0)&&(o==t.length-1?t.pop():Gn.call(t,o,1),--this.size,!0)},Wn.prototype.get=function(e){var t=this.__data__,o=Kn(t,e);return o<0?void 0:t[o][1]},Wn.prototype.has=function(e){return Kn(this.__data__,e)>-1},Wn.prototype.set=function(e,t){var o=this.__data__,n=Kn(o,e);return n<0?(++this.size,o.push([e,t])):o[n][1]=t,this};var Yn=Nn(en,"Map");function _n(e,t){var o,n,i=e.__data__;return("string"==(n=typeof(o=t))||"number"==n||"symbol"==n||"boolean"==n?"__proto__"!==o:null===o)?i["string"==typeof t?"string":"hash"]:i.map}function Zn(e){var t=-1,o=null==e?0:e.length;for(this.clear();++t<o;){var n=e[t];this.set(n[0],n[1])}}Zn.prototype.clear=function(){this.size=0,this.__data__={hash:new qn,map:new(Yn||Wn),string:new qn}},Zn.prototype.delete=function(e){var t=_n(this,e).delete(e);return this.size-=t?1:0,t},Zn.prototype.get=function(e){return _n(this,e).get(e)},Zn.prototype.has=function(e){return _n(this,e).has(e)},Zn.prototype.set=function(e,t){var o=_n(this,e),n=o.size;return o.set(e,t),this.size+=o.size==n?0:1,this};function Xn(e,t){if("function"!=typeof e||null!=t&&"function"!=typeof t)throw new TypeError("Expected a function");var o=function(){var n=arguments,i=t?t.apply(this,n):n[0],a=o.cache;if(a.has(i))return a.get(i);var r=e.apply(this,n);return o.cache=a.set(i,r)||a,r};return o.cache=new(Xn.Cache||Zn),o}Xn.Cache=Zn;var $n,ei,ti,oi=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,ni=/\\(\\)?/g,ii=($n=function(e){var t=[];return 46===e.charCodeAt(0)&&t.push(""),e.replace(oi,function(e,o,n,i){t.push(n?i.replace(ni,"$1"):o||e)}),t},ei=Xn($n,function(e){return 500===ti.size&&ti.clear(),e}),ti=ei.cache,ei);function ai(e,t){return dn(e)?e:Jn(e,t)?[e]:ii(function(e){return null==e?"":fn(e)}(e))}function ri(e){if("string"==typeof e||un(e))return e;var t=e+"";return"0"==t&&1/e==-1/0?"-0":t}var si=Nn(en,"Set");function li(e){var t=-1,o=null==e?0:e.length;for(this.__data__=new Zn;++t<o;)this.add(e[t])}function ci(e,t){return e.has(t)}function ui(e){var t=-1,o=Array(e.size);return e.forEach(function(e){o[++t]=e}),o}function di(e){return function(t){return function(e,t){for(var o=0,n=(t=ai(t,e)).length;null!=e&&o<n;)e=e[ri(t[o++])];return o&&o==n?e:void 0}(t,e)}}function hi(e){return Jn(t=e)?(o=ri(t),function(e){return null==e?void 0:e[o]}):di(t);var t,o}li.prototype.add=li.prototype.push=function(e){return this.__data__.set(e,"__lodash_hash_undefined__"),this},li.prototype.has=function(e){return this.__data__.has(e)};var pi=function(){return en.Date.now()},fi=Math.max,mi=Math.min;function gi(e,t,o){var n,i,a,r,s,l,c=0,u=!1,d=!1,h=!0;if("function"!=typeof e)throw new TypeError("Expected a function");function p(t){var o=n,a=i;return n=i=void 0,c=t,r=e.apply(a,o)}function f(e){var o=e-l;return void 0===l||o>=t||o<0||d&&e-c>=a}function m(){var e=pi();if(f(e))return g(e);s=setTimeout(m,function(e){var o=t-(e-l);return d?mi(o,a-(e-c)):o}(e))}function g(e){return s=void 0,h&&n?p(e):(n=i=void 0,r)}function v(){var e=pi(),o=f(e);if(n=arguments,i=this,l=e,o){if(void 0===s)return function(e){return c=e,s=setTimeout(m,t),u?p(e):r}(l);if(d)return clearTimeout(s),s=setTimeout(m,t),p(l)}return void 0===s&&(s=setTimeout(m,t)),r}return t=bn(t)||0,An(o)&&(u=!!o.leading,a=(d="maxWait"in o)?fi(bn(o.maxWait)||0,t):a,h="trailing"in o?!!o.trailing:h),v.cancel=function(){void 0!==s&&clearTimeout(s),c=0,n=l=i=s=void 0},v.flush=function(){return void 0===s?r:g(pi())},v}var vi=si&&1/ui(new si([,-0]))[1]==1/0?function(e){return new si(e)}:function(){};function Ai(e,t){return e&&e.length?function(e,t,o){var n=-1,i=Vn,a=e.length,r=!0,s=[],l=s;if(a>=200){var c=t?null:vi(e);if(c)return ui(c);r=!1,i=ci,l=new li}else l=t?[]:s;e:for(;++n<a;){var u=e[n],d=t?t(u):u;if(u=0!==u?u:0,r&&d==d){for(var h=l.length;h--;)if(l[h]===d)continue e;t&&l.push(d),s.push(u)}else i(l,d,o)||(l!==s&&l.push(d),s.push(u))}return s}(e,hi(t)):[]}const yi={key:0,class:"modal-container"},Ci={class:"modal-header"},wi={class:"header-title"},Ei={class:"modal-body"},bi={class:"form-item"},Ii={class:"required"},Bi={class:"input-box"},ki=["placeholder"],Si={key:0,class:"error-message"},xi={class:"form-item"},Ri={class:"required"},Ti={class:"type-group"},Fi=["onClick"],Qi={key:0,class:"check-mark"},Li={class:"form-item"},Pi={class:"required"},Ni={key:0,class:"error-message"},Ui={class:"modal-footer"},Vi={key:1,class:"apply-success-container"},Di={class:"apply-success-container__content"},Mi={class:"desc"},Oi={class:"apply-success-container__btns"},Ji=/* @__PURE__ */Yo({__name:"ApplyDataDialog",props:{value:{type:Boolean,default:!1},lang:{type:String,default:"",validator:e=>["","en","en-US","zh-CN","cn"].includes(e)},searchValue:{type:String,default:""},placeholder:{type:String,default:""}},emits:["update:value","confirm","open","close"],setup(o,{emit:n}){const i=o,a=n,d=[{typeCn:"城市",typeEn:"City",type:"City"},{typeCn:"海运港口",typeEn:"Port",type:"Seaport"},{typeCn:"机场",typeEn:"Airport",type:"Airport"}],p=e(null),C=e(!1);r(()=>i.value,e=>{e&&(console.log("🍉 ~ ApplyDataDialog.vue:138 ~ props.searchValue:",i.searchValue),i.searchValue&&(I.name=i.searchValue),a("open"))});const w=S({name:"",country:""}),I=S({name:"",type:"City"}),k=t(()=>{if(i.lang)return"en"===i.lang||"en-US"===i.lang;try{if("function"==typeof useCookie){const e=useCookie("jc-language")?.value;if(e)return/^en(-US)?$/.test(e)}}catch(e){}if("undefined"!=typeof document){const e=document.cookie||"";return/(^|;\s*)jc-language=en(-US)?(;|$)/.test(e)}try{if("function"==typeof useNuxtApp){const e=useNuxtApp();return/(^|;\s*)jc-language=en(-US)?(;|$)/.test(e?.ssrContext?.event?.node?.req?.headers?.cookie||"")}}catch(e){}return!1}),x=()=>{w.name="",w.country="",C.value=!1,I.name="",I.type="City",p.value=null,a("update:value",!1),a("close")},R=gi(()=>{w.name="",w.country="";let e=!0;I.name.trim()||(w.name=k.value?"Please enter the data":"请输入需要补充的数据",e=!1),p.value||(w.country=k.value?"Please select a country":"请选择国家",e=!1),e&&J({reportData:I.name,reportType:I.type.toLocaleLowerCase(),countryId:p.value.id}).then(e=>{console.log("🍉 ~ ApplyDataDialog.vue:185 ~ handleConfirm ~ res:",e,e.code),0===e.code&&(C.value=!0,Le.success(k.value?"Application received. Awaiting review":"平台已收到申请,请等待审核"),a("confirm",{...I,country:p.value}))}).catch(e=>{console.log("🍉 ~ ApplyDataDialog.vue:187 ~ handleConfirm ~ err:",e)})},500);return(e,t)=>o.value?(l(),s("div",{key:0,class:"modal-mask",onClick:y(x,["self"])},[C.value?(l(),s("div",Vi,[u("div",Di,[t[5]||(t[5]=u("div",{class:"icon"},null,-1)),u("div",Mi,A(k.value?"Application received. Awaiting review!":"平台已收到申请,请等待审核!"),1)]),u("div",Oi,[u("div",{class:"button jc:cursor-pointer",onClick:y(x,["stop"])},A(k.value?"OK":"好的"),1)])])):(l(),s("div",yi,[u("div",Ci,[u("span",wi,A(k.value?"Apply for data addition":"申请补充数据"),1),u("div",{class:"close-btn",onClick:x},"×")]),u("div",Ei,[u("div",bi,[u("label",Ii,A(k.value?"Data To Add":"需补充的数据"),1),u("div",Bi,[m(u("input",{"onUpdate:modelValue":t[0]||(t[0]=e=>I.name=e),type:"text",placeholder:o.placeholder??(k.value?" Please enter":"请输入"),class:c(["custom-input",{"input-error":w.name}]),onInput:t[1]||(t[1]=e=>w.name="")},null,42,ki),[[E,I.name]])]),w.name?(l(),s("div",Si,A(w.name),1)):f("",!0)]),u("div",xi,[u("label",Ri,A(k.value?"Type":"所属类别"),1),u("div",Ti,[(l(),s(g,null,v(d,e=>u("div",{key:e.type,class:c(["type-btn",{active:I.type===e.type}]),onClick:t=>I.type=e.type},[B(A(k.value?e.typeEn:e.typeCn)+" ",1),I.type===e.type?(l(),s("div",Qi)):f("",!0)],10,Fi)),64))])]),u("div",Li,[u("label",Pi,A(k.value?"Country":"国家"),1),u("div",{class:c({"search-error-wrap":w.country})},[h(_o,{"search-type-list":["Country"],"model-value":p.value,"onUpdate:modelValue":[t[2]||(t[2]=e=>p.value=e),t[3]||(t[3]=e=>w.country="")],style:{margin:"0 auto"},lang:o.lang,"show-apply-data":!1,"show-search-icon":!1,placeholder:o.placeholder??(k.value?" Please enter":"请输入")},null,8,["model-value","lang","placeholder"])],2),w.country?(l(),s("div",Ni,A(w.country),1)):f("",!0)])]),u("div",Ui,[u("div",{class:"confirm-btn jc:outline-none!",onClick:t[4]||(t[4]=(...e)=>b(R)&&b(R)(...e))},A(k.value?"Submit":"申请补充"),1)])]))])):f("",!0)}},[["__scopeId","data-v-f121d6ec"]]),ji=/* @__PURE__ */Object.freeze(/* @__PURE__ */Object.defineProperty({__proto__:null,default:Ji},Symbol.toStringTag,{value:"Module"}));const zi={class:"global-company-input"},Hi={class:"company-option-item"},qi=/* @__PURE__ */Yo({__name:"index",props:{lang:{type:String,default:""},companyName:{type:String,default:""},countryId:{type:[String,Number,null],required:!0},useKq:{type:Boolean,default:!1},kqCode:{type:[String,Number],default:""},kqInfo:{type:Object,default:()=>({})},disabled:{type:Boolean,default:!1}},emits:["update:companyName","update:useKq","update:kqCode","update:kqInfo","change"],setup(o,{emit:i}){const a=o,c=i,h=e(!1),f=e([]),{isEn:m}=function(e=""){return{isEn:t(()=>{if(e)return"en"===e||"en-US"===e;try{if("function"==typeof useCookie){const e=useCookie("jc-language")?.value;if(e)return/^en(-US)?$/.test(e)}}catch(t){}if("undefined"!=typeof document){const e=document.cookie||"";return/(^|;\s*)jc-language=en(-US)?(;|$)/.test(e)}try{if("function"==typeof useNuxtApp){const e=useNuxtApp();return/(^|;\s*)jc-language=en(-US)?(;|$)/.test(e?.ssrContext?.event?.node?.req?.headers?.cookie||"")}}catch(t){}return!1})}}(a.lang),y=t({get:()=>a.companyName,set:e=>c("update:companyName",e)}),C=e=>{e?(h.value=!0,w(e)):f.value=[]},w=gi(e=>{j({current:1,size:50,compName:e}).then(e=>{f.value=e.data.data.records?.map(e=>({value:e.nameCn,code:e.kqId,...e}))||[]}).catch(e=>{console.error("获取公司选项失败:",e),f.value=[]}).finally(()=>{h.value=!1})},800),E=e=>{const t=f.value.find(t=>t.value===e);console.log("🍉 ~ index.vue:130 ~ handleSelectChange ~ selectedObj:",t),t?(c("update:useKq",!0),c("update:kqCode",t.code),c("update:kqInfo",t)):(c("update:useKq",!1),c("update:kqCode",""),c("update:kqInfo",{})),c("change",t)},I=e=>{c("update:useKq",!1),c("update:kqCode",""),c("change",e)};return r(()=>a.countryId,()=>{c("update:companyName",""),c("update:useKq",!1),c("update:kqCode",""),c("update:kqInfo",{}),f.value=[]}),n(()=>{w.cancel()}),(e,t)=>(l(),s("div",zi,[1===a.countryId?(l(),d(b(Pe),{key:0,modelValue:y.value,"onUpdate:modelValue":t[0]||(t[0]=e=>y.value=e),filterable:"",remote:"","reserve-keyword":"",clearable:"","allow-create":"","default-first-option":"","remote-method":C,loading:h.value,disabled:a.disabled,placeholder:b(m)?"Company Name in Chinese":"请输入您的公司中文名称",style:{width:"100%"},"popper-class":"company-search dialog-join-us",onChange:E},{prefix:x(()=>[p(e.$slots,"prefix",{},void 0,!0)]),default:x(()=>[(l(!0),s(g,null,v(f.value,e=>(l(),d(b(Ne),{key:e.code,label:e.value,value:e.value},{default:x(()=>[u("div",Hi,[u("span",null,A(e.value),1)])]),_:2},1032,["label","value"]))),128))]),_:3},8,["modelValue","loading","disabled","placeholder"])):(l(),d(b(Ue),{key:1,modelValue:y.value,"onUpdate:modelValue":t[1]||(t[1]=e=>y.value=e),disabled:a.disabled,placeholder:b(m)?"Company name in English":"请输入您的公司英文名称","max-length":"200",style:{width:"100%"},onChange:I},{prepend:x(()=>[p(e.$slots,"prefix",{},void 0,!0)]),_:3},8,["modelValue","disabled","placeholder"]))]))}},[["__scopeId","data-v-a8006a9d"]]),Ki=/* @__PURE__ */Object.freeze(/* @__PURE__ */Object.defineProperty({__proto__:null,default:qi},Symbol.toStringTag,{value:"Module"})),Gi={type:"text",name:"fakeUsername",autocomplete:"on"},Wi={type:"password",name:"fakePassword",autocomplete:"new-password"},Yi={class:"google-input-wrap"},_i={key:0,class:"google-input-wrap-prepend"},Zi={class:"google-input-wrap-input"};const Xi=/* @__PURE__ */Yo({name:"GoogleInput",components:{ElInput:Ue},inheritAttrs:!1,props:{placeholder:{type:String,default:""},modelValue:{type:[String,Number],default:""}},emits:["update:modelValue","blur","focus"],data:()=>({isFocus:!1}),computed:{isHavePrepend(){return!!this.$slots.prefix},shouldFloat(){return this.isFocus||null!==this.modelValue&&""!==this.modelValue}},mounted(){if(window.navigator.userAgent.indexOf("Chrome")>-1){let e=0;const t=()=>{try{e++;const o=this.$refs.googleInput?.$el.querySelector("input");if(o){"rgb(232, 240, 254)"===window.getComputedStyle(o).getPropertyValue("background-color")?this.isFocus=!0:e<20&&setTimeout(t,100)}}catch(o){console.error("Autofill detection error:",o)}};t()}},methods:{handleInput(e){this.$emit("update:modelValue",e)},localBlur(e){this.isFocus=!1,this.$emit("blur",e)},localFocus(e){this.isFocus=!0,this.$emit("focus",e)}}},[["render",function(e,t,o,n,i,a){const r=R("el-input");return l(),s("div",{class:c(["google-input",{"is-focus":a.shouldFloat,"is-have-prepend":a.isHavePrepend}])},[m(u("input",Gi,null,512),[[k,!1]]),m(u("input",Wi,null,512),[[k,!1]]),u("div",Yi,[a.isHavePrepend?(l(),s("div",_i,[p(e.$slots,"prefix",{},void 0,!0)])):f("",!0),u("div",Zi,[h(r,T({ref:"googleInput"},e.$attrs,{"model-value":o.modelValue},F({input:a.handleInput,blur:a.localBlur,focus:a.localFocus})),{suffix:x(()=>[p(e.$slots,"suffix",{},void 0,!0)]),_:3},16,["model-value"]),u("p",{onClick:t[0]||(t[0]=t=>e.$refs.googleInput.focus()),class:"google-input-wrap-input-placeholder"},A(o.placeholder),1)])])],2)}],["__scopeId","data-v-03e9d373"]]),$i=/* @__PURE__ */Object.freeze(/* @__PURE__ */Object.defineProperty({__proto__:null,default:Xi},Symbol.toStringTag,{value:"Module"})),ea={type:"text",name:"fakeUsername",autocomplete:"on"},ta={type:"password",name:"fakePassword",autocomplete:"new-password"},oa={class:"google-input-wrap"},na={key:0,class:"google-input-wrap-prepend"},ia={class:"google-input-wrap-input"};const aa=/* @__PURE__ */Yo({name:"GoogleInput",components:{ElInput:Ue},inheritAttrs:!1,props:{placeholder:{type:String,default:""},label:{type:String,default:""},modelValue:{type:[String,Number],default:""}},emits:["update:modelValue","blur","focus"],data:()=>({isFocus:!1}),computed:{currentLabel(){return this.label?this.label:this.placeholder},isHavePrepend(){return!!this.$slots.prefix},shouldFloat(){return this.isFocus}},mounted(){if(window.navigator.userAgent.indexOf("Chrome")>-1){let e=0;const t=()=>{try{e++;const o=this.$refs.googleInput?.$el.querySelector("input");if(o){"rgb(232, 240, 254)"===window.getComputedStyle(o).getPropertyValue("background-color")?this.isFocus=!0:e<20&&setTimeout(t,100)}}catch(o){console.error("Autofill detection error:",o)}};t()}},methods:{handleInput(e){this.$emit("update:modelValue",e)},localBlur(e){this.isFocus=!1,this.$emit("blur",e)},localFocus(e){this.isFocus=!0,this.$emit("focus",e)}}},[["render",function(e,t,o,n,i,a){const r=R("el-input");return l(),s("div",{class:c(["google-input",{"is-focus":a.shouldFloat,"is-have-prepend":a.isHavePrepend}])},[m(u("input",ea,null,512),[[k,!1]]),m(u("input",ta,null,512),[[k,!1]]),u("div",oa,[a.isHavePrepend?(l(),s("div",na,[p(e.$slots,"prefix",{},void 0,!0)])):f("",!0),u("div",ia,[h(r,T({ref:"googleInput"},e.$attrs,{"model-value":o.modelValue,placeholder:o.placeholder},F({input:a.handleInput,blur:a.localBlur,focus:a.localFocus})),{suffix:x(()=>[p(e.$slots,"suffix",{},void 0,!0)]),_:3},16,["model-value","placeholder"]),u("p",{onClick:t[0]||(t[0]=t=>e.$refs.googleInput.focus()),class:"google-input-wrap-input-placeholder"},A(a.currentLabel),1)])])],2)}],["__scopeId","data-v-328e3e35"]]),ra=/* @__PURE__ */Object.freeze(/* @__PURE__ */Object.defineProperty({__proto__:null,default:aa},Symbol.toStringTag,{value:"Module"}));var sa="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{};function la(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}function ca(e){if(Object.prototype.hasOwnProperty.call(e,"__esModule"))return e;var t=e.default;if("function"==typeof t){var o=function e(){var o=!1;try{o=this instanceof e}catch{}return o?Reflect.construct(t,arguments,this.constructor):t.apply(this,arguments)};o.prototype=t.prototype}else o={};return Object.defineProperty(o,"__esModule",{value:!0}),Object.keys(e).forEach(function(t){var n=Object.getOwnPropertyDescriptor(e,t);Object.defineProperty(o,t,n.get?n:{enumerable:!0,get:function(){return e[t]}})}),o}var ua={exports:{}};var da={exports:{}};const ha=/* @__PURE__ */ca(/* @__PURE__ */Object.freeze(/* @__PURE__ */Object.defineProperty({__proto__:null,default:{}},Symbol.toStringTag,{value:"Module"})));var pa;function fa(){return pa||(pa=1,da.exports=(e=e||function(e,t){var o;if("undefined"!=typeof window&&window.crypto&&(o=window.crypto),"undefined"!=typeof self&&self.crypto&&(o=self.crypto),"undefined"!=typeof globalThis&&globalThis.crypto&&(o=globalThis.crypto),!o&&"undefined"!=typeof window&&window.msCrypto&&(o=window.msCrypto),!o&&void 0!==sa&&sa.crypto&&(o=sa.crypto),!o)try{o=ha}catch(m){}var n=function(){if(o){if("function"==typeof o.getRandomValues)try{return o.getRandomValues(new Uint32Array(1))[0]}catch(m){}if("function"==typeof o.randomBytes)try{return o.randomBytes(4).readInt32LE()}catch(m){}}throw new Error("Native crypto module could not be used to get secure random number.")},i=Object.create||/* @__PURE__ */function(){function e(){}return function(t){var o;return e.prototype=t,o=new e,e.prototype=null,o}}(),a={},r=a.lib={},s=r.Base=/* @__PURE__ */function(){return{extend:function(e){var t=i(this);return e&&t.mixIn(e),t.hasOwnProperty("init")&&this.init!==t.init||(t.init=function(){t.$super.init.apply(this,arguments)}),t.init.prototype=t,t.$super=this,t},create:function(){var e=this.extend();return e.init.apply(e,arguments),e},init:function(){},mixIn:function(e){for(var t in e)e.hasOwnProperty(t)&&(this[t]=e[t]);e.hasOwnProperty("toString")&&(this.toString=e.toString)},clone:function(){return this.init.prototype.extend(this)}}}(),l=r.WordArray=s.extend({init:function(e,o){e=this.words=e||[],this.sigBytes=o!=t?o:4*e.length},toString:function(e){return(e||u).stringify(this)},concat:function(e){var t=this.words,o=e.words,n=this.sigBytes,i=e.sigBytes;if(this.clamp(),n%4)for(var a=0;a<i;a++){var r=o[a>>>2]>>>24-a%4*8&255;t[n+a>>>2]|=r<<24-(n+a)%4*8}else for(var s=0;s<i;s+=4)t[n+s>>>2]=o[s>>>2];return this.sigBytes+=i,this},clamp:function(){var t=this.words,o=this.sigBytes;t[o>>>2]&=4294967295<<32-o%4*8,t.length=e.ceil(o/4)},clone:function(){var e=s.clone.call(this);return e.words=this.words.slice(0),e},random:function(e){for(var t=[],o=0;o<e;o+=4)t.push(n());return new l.init(t,e)}}),c=a.enc={},u=c.Hex={stringify:function(e){for(var t=e.words,o=e.sigBytes,n=[],i=0;i<o;i++){var a=t[i>>>2]>>>24-i%4*8&255;n.push((a>>>4).toString(16)),n.push((15&a).toString(16))}return n.join("")},parse:function(e){for(var t=e.length,o=[],n=0;n<t;n+=2)o[n>>>3]|=parseInt(e.substr(n,2),16)<<24-n%8*4;return new l.init(o,t/2)}},d=c.Latin1={stringify:function(e){for(var t=e.words,o=e.sigBytes,n=[],i=0;i<o;i++){var a=t[i>>>2]>>>24-i%4*8&255;n.push(String.fromCharCode(a))}return n.join("")},parse:function(e){for(var t=e.length,o=[],n=0;n<t;n++)o[n>>>2]|=(255&e.charCodeAt(n))<<24-n%4*8;return new l.init(o,t)}},h=c.Utf8={stringify:function(e){try{return decodeURIComponent(escape(d.stringify(e)))}catch(t){throw new Error("Malformed UTF-8 data")}},parse:function(e){return d.parse(unescape(encodeURIComponent(e)))}},p=r.BufferedBlockAlgorithm=s.extend({reset:function(){this._data=new l.init,this._nDataBytes=0},_append:function(e){"string"==typeof e&&(e=h.parse(e)),this._data.concat(e),this._nDataBytes+=e.sigBytes},_process:function(t){var o,n=this._data,i=n.words,a=n.sigBytes,r=this.blockSize,s=a/(4*r),c=(s=t?e.ceil(s):e.max((0|s)-this._minBufferSize,0))*r,u=e.min(4*c,a);if(c){for(var d=0;d<c;d+=r)this._doProcessBlock(i,d);o=i.splice(0,c),n.sigBytes-=u}return new l.init(o,u)},clone:function(){var e=s.clone.call(this);return e._data=this._data.clone(),e},_minBufferSize:0});r.Hasher=p.extend({cfg:s.extend(),init:function(e){this.cfg=this.cfg.extend(e),this.reset()},reset:function(){p.reset.call(this),this._doReset()},update:function(e){return this._append(e),this._process(),this},finalize:function(e){return e&&this._append(e),this._doFinalize()},blockSize:16,_createHelper:function(e){return function(t,o){return new e.init(o).finalize(t)}},_createHmacHelper:function(e){return function(t,o){return new f.HMAC.init(e,o).finalize(t)}}});var f=a.algo={};return a}(Math),e)),da.exports;var e}var ma,ga={exports:{}};function va(){return ma?ga.exports:(ma=1,ga.exports=(r=fa(),o=(t=r).lib,n=o.Base,i=o.WordArray,(a=t.x64={}).Word=n.extend({init:function(e,t){this.high=e,this.low=t}}),a.WordArray=n.extend({init:function(t,o){t=this.words=t||[],this.sigBytes=o!=e?o:8*t.length},toX32:function(){for(var e=this.words,t=e.length,o=[],n=0;n<t;n++){var a=e[n];o.push(a.high),o.push(a.low)}return i.create(o,this.sigBytes)},clone:function(){for(var e=n.clone.call(this),t=e.words=this.words.slice(0),o=t.length,i=0;i<o;i++)t[i]=t[i].clone();return e}}),r));var e,t,o,n,i,a,r}var Aa,ya={exports:{}};function Ca(){return Aa||(Aa=1,ya.exports=(e=fa(),function(){if("function"==typeof ArrayBuffer){var t=e.lib.WordArray,o=t.init,n=t.init=function(e){if(e instanceof ArrayBuffer&&(e=new Uint8Array(e)),(e instanceof Int8Array||"undefined"!=typeof Uint8ClampedArray&&e instanceof Uint8ClampedArray||e instanceof Int16Array||e instanceof Uint16Array||e instanceof Int32Array||e instanceof Uint32Array||e instanceof Float32Array||e instanceof Float64Array)&&(e=new Uint8Array(e.buffer,e.byteOffset,e.byteLength)),e instanceof Uint8Array){for(var t=e.byteLength,n=[],i=0;i<t;i++)n[i>>>2]|=e[i]<<24-i%4*8;o.call(this,n,t)}else o.apply(this,arguments)};n.prototype=t}}(),e.lib.WordArray)),ya.exports;var e}var wa,Ea={exports:{}};function ba(){return wa?Ea.exports:(wa=1,Ea.exports=(e=fa(),function(){var t=e,o=t.lib.WordArray,n=t.enc;function i(e){return e<<8&4278255360|e>>>8&16711935}n.Utf16=n.Utf16BE={stringify:function(e){for(var t=e.words,o=e.sigBytes,n=[],i=0;i<o;i+=2){var a=t[i>>>2]>>>16-i%4*8&65535;n.push(String.fromCharCode(a))}return n.join("")},parse:function(e){for(var t=e.length,n=[],i=0;i<t;i++)n[i>>>1]|=e.charCodeAt(i)<<16-i%2*16;return o.create(n,2*t)}},n.Utf16LE={stringify:function(e){for(var t=e.words,o=e.sigBytes,n=[],a=0;a<o;a+=2){var r=i(t[a>>>2]>>>16-a%4*8&65535);n.push(String.fromCharCode(r))}return n.join("")},parse:function(e){for(var t=e.length,n=[],a=0;a<t;a++)n[a>>>1]|=i(e.charCodeAt(a)<<16-a%2*16);return o.create(n,2*t)}}}(),e.enc.Utf16));var e}var Ia,Ba={exports:{}};function ka(){return Ia?Ba.exports:(Ia=1,Ba.exports=(e=fa(),function(){var t=e,o=t.lib.WordArray;function n(e,t,n){for(var i=[],a=0,r=0;r<t;r++)if(r%4){var s=n[e.charCodeAt(r-1)]<<r%4*2|n[e.charCodeAt(r)]>>>6-r%4*2;i[a>>>2]|=s<<24-a%4*8,a++}return o.create(i,a)}t.enc.Base64={stringify:function(e){var t=e.words,o=e.sigBytes,n=this._map;e.clamp();for(var i=[],a=0;a<o;a+=3)for(var r=(t[a>>>2]>>>24-a%4*8&255)<<16|(t[a+1>>>2]>>>24-(a+1)%4*8&255)<<8|t[a+2>>>2]>>>24-(a+2)%4*8&255,s=0;s<4&&a+.75*s<o;s++)i.push(n.charAt(r>>>6*(3-s)&63));var l=n.charAt(64);if(l)for(;i.length%4;)i.push(l);return i.join("")},parse:function(e){var t=e.length,o=this._map,i=this._reverseMap;if(!i){i=this._reverseMap=[];for(var a=0;a<o.length;a++)i[o.charCodeAt(a)]=a}var r=o.charAt(64);if(r){var s=e.indexOf(r);-1!==s&&(t=s)}return n(e,t,i)},_map:"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/="}}(),e.enc.Base64));var e}var Sa,xa={exports:{}};function Ra(){return Sa?xa.exports:(Sa=1,xa.exports=(e=fa(),function(){var t=e,o=t.lib.WordArray;function n(e,t,n){for(var i=[],a=0,r=0;r<t;r++)if(r%4){var s=n[e.charCodeAt(r-1)]<<r%4*2|n[e.charCodeAt(r)]>>>6-r%4*2;i[a>>>2]|=s<<24-a%4*8,a++}return o.create(i,a)}t.enc.Base64url={stringify:function(e,t){void 0===t&&(t=!0);var o=e.words,n=e.sigBytes,i=t?this._safe_map:this._map;e.clamp();for(var a=[],r=0;r<n;r+=3)for(var s=(o[r>>>2]>>>24-r%4*8&255)<<16|(o[r+1>>>2]>>>24-(r+1)%4*8&255)<<8|o[r+2>>>2]>>>24-(r+2)%4*8&255,l=0;l<4&&r+.75*l<n;l++)a.push(i.charAt(s>>>6*(3-l)&63));var c=i.charAt(64);if(c)for(;a.length%4;)a.push(c);return a.join("")},parse:function(e,t){void 0===t&&(t=!0);var o=e.length,i=t?this._safe_map:this._map,a=this._reverseMap;if(!a){a=this._reverseMap=[];for(var r=0;r<i.length;r++)a[i.charCodeAt(r)]=r}var s=i.charAt(64);if(s){var l=e.indexOf(s);-1!==l&&(o=l)}return n(e,o,a)},_map:"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=",_safe_map:"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789-_"}}(),e.enc.Base64url));var e}var Ta,Fa={exports:{}};function Qa(){return Ta?Fa.exports:(Ta=1,Fa.exports=(e=fa(),function(t){var o=e,n=o.lib,i=n.WordArray,a=n.Hasher,r=o.algo,s=[];!function(){for(var e=0;e<64;e++)s[e]=4294967296*t.abs(t.sin(e+1))|0}();var l=r.MD5=a.extend({_doReset:function(){this._hash=new i.init([1732584193,4023233417,2562383102,271733878])},_doProcessBlock:function(e,t){for(var o=0;o<16;o++){var n=t+o,i=e[n];e[n]=16711935&(i<<8|i>>>24)|4278255360&(i<<24|i>>>8)}var a=this._hash.words,r=e[t+0],l=e[t+1],p=e[t+2],f=e[t+3],m=e[t+4],g=e[t+5],v=e[t+6],A=e[t+7],y=e[t+8],C=e[t+9],w=e[t+10],E=e[t+11],b=e[t+12],I=e[t+13],B=e[t+14],k=e[t+15],S=a[0],x=a[1],R=a[2],T=a[3];S=c(S,x,R,T,r,7,s[0]),T=c(T,S,x,R,l,12,s[1]),R=c(R,T,S,x,p,17,s[2]),x=c(x,R,T,S,f,22,s[3]),S=c(S,x,R,T,m,7,s[4]),T=c(T,S,x,R,g,12,s[5]),R=c(R,T,S,x,v,17,s[6]),x=c(x,R,T,S,A,22,s[7]),S=c(S,x,R,T,y,7,s[8]),T=c(T,S,x,R,C,12,s[9]),R=c(R,T,S,x,w,17,s[10]),x=c(x,R,T,S,E,22,s[11]),S=c(S,x,R,T,b,7,s[12]),T=c(T,S,x,R,I,12,s[13]),R=c(R,T,S,x,B,17,s[14]),S=u(S,x=c(x,R,T,S,k,22,s[15]),R,T,l,5,s[16]),T=u(T,S,x,R,v,9,s[17]),R=u(R,T,S,x,E,14,s[18]),x=u(x,R,T,S,r,20,s[19]),S=u(S,x,R,T,g,5,s[20]),T=u(T,S,x,R,w,9,s[21]),R=u(R,T,S,x,k,14,s[22]),x=u(x,R,T,S,m,20,s[23]),S=u(S,x,R,T,C,5,s[24]),T=u(T,S,x,R,B,9,s[25]),R=u(R,T,S,x,f,14,s[26]),x=u(x,R,T,S,y,20,s[27]),S=u(S,x,R,T,I,5,s[28]),T=u(T,S,x,R,p,9,s[29]),R=u(R,T,S,x,A,14,s[30]),S=d(S,x=u(x,R,T,S,b,20,s[31]),R,T,g,4,s[32]),T=d(T,S,x,R,y,11,s[33]),R=d(R,T,S,x,E,16,s[34]),x=d(x,R,T,S,B,23,s[35]),S=d(S,x,R,T,l,4,s[36]),T=d(T,S,x,R,m,11,s[37]),R=d(R,T,S,x,A,16,s[38]),x=d(x,R,T,S,w,23,s[39]),S=d(S,x,R,T,I,4,s[40]),T=d(T,S,x,R,r,11,s[41]),R=d(R,T,S,x,f,16,s[42]),x=d(x,R,T,S,v,23,s[43]),S=d(S,x,R,T,C,4,s[44]),T=d(T,S,x,R,b,11,s[45]),R=d(R,T,S,x,k,16,s[46]),S=h(S,x=d(x,R,T,S,p,23,s[47]),R,T,r,6,s[48]),T=h(T,S,x,R,A,10,s[49]),R=h(R,T,S,x,B,15,s[50]),x=h(x,R,T,S,g,21,s[51]),S=h(S,x,R,T,b,6,s[52]),T=h(T,S,x,R,f,10,s[53]),R=h(R,T,S,x,w,15,s[54]),x=h(x,R,T,S,l,21,s[55]),S=h(S,x,R,T,y,6,s[56]),T=h(T,S,x,R,k,10,s[57]),R=h(R,T,S,x,v,15,s[58]),x=h(x,R,T,S,I,21,s[59]),S=h(S,x,R,T,m,6,s[60]),T=h(T,S,x,R,E,10,s[61]),R=h(R,T,S,x,p,15,s[62]),x=h(x,R,T,S,C,21,s[63]),a[0]=a[0]+S|0,a[1]=a[1]+x|0,a[2]=a[2]+R|0,a[3]=a[3]+T|0},_doFinalize:function(){var e=this._data,o=e.words,n=8*this._nDataBytes,i=8*e.sigBytes;o[i>>>5]|=128<<24-i%32;var a=t.floor(n/4294967296),r=n;o[15+(i+64>>>9<<4)]=16711935&(a<<8|a>>>24)|4278255360&(a<<24|a>>>8),o[14+(i+64>>>9<<4)]=16711935&(r<<8|r>>>24)|4278255360&(r<<24|r>>>8),e.sigBytes=4*(o.length+1),this._process();for(var s=this._hash,l=s.words,c=0;c<4;c++){var u=l[c];l[c]=16711935&(u<<8|u>>>24)|4278255360&(u<<24|u>>>8)}return s},clone:function(){var e=a.clone.call(this);return e._hash=this._hash.clone(),e}});function c(e,t,o,n,i,a,r){var s=e+(t&o|~t&n)+i+r;return(s<<a|s>>>32-a)+t}function u(e,t,o,n,i,a,r){var s=e+(t&n|o&~n)+i+r;return(s<<a|s>>>32-a)+t}function d(e,t,o,n,i,a,r){var s=e+(t^o^n)+i+r;return(s<<a|s>>>32-a)+t}function h(e,t,o,n,i,a,r){var s=e+(o^(t|~n))+i+r;return(s<<a|s>>>32-a)+t}o.MD5=a._createHelper(l),o.HmacMD5=a._createHmacHelper(l)}(Math),e.MD5));var e}var La,Pa={exports:{}};function Na(){return La?Pa.exports:(La=1,Pa.exports=(s=fa(),t=(e=s).lib,o=t.WordArray,n=t.Hasher,i=e.algo,a=[],r=i.SHA1=n.extend({_doReset:function(){this._hash=new o.init([1732584193,4023233417,2562383102,271733878,3285377520])},_doProcessBlock:function(e,t){for(var o=this._hash.words,n=o[0],i=o[1],r=o[2],s=o[3],l=o[4],c=0;c<80;c++){if(c<16)a[c]=0|e[t+c];else{var u=a[c-3]^a[c-8]^a[c-14]^a[c-16];a[c]=u<<1|u>>>31}var d=(n<<5|n>>>27)+l+a[c];d+=c<20?1518500249+(i&r|~i&s):c<40?1859775393+(i^r^s):c<60?(i&r|i&s|r&s)-1894007588:(i^r^s)-899497514,l=s,s=r,r=i<<30|i>>>2,i=n,n=d}o[0]=o[0]+n|0,o[1]=o[1]+i|0,o[2]=o[2]+r|0,o[3]=o[3]+s|0,o[4]=o[4]+l|0},_doFinalize:function(){var e=this._data,t=e.words,o=8*this._nDataBytes,n=8*e.sigBytes;return t[n>>>5]|=128<<24-n%32,t[14+(n+64>>>9<<4)]=Math.floor(o/4294967296),t[15+(n+64>>>9<<4)]=o,e.sigBytes=4*t.length,this._process(),this._hash},clone:function(){var e=n.clone.call(this);return e._hash=this._hash.clone(),e}}),e.SHA1=n._createHelper(r),e.HmacSHA1=n._createHmacHelper(r),s.SHA1));var e,t,o,n,i,a,r,s}var Ua,Va={exports:{}};function Da(){return Ua?Va.exports:(Ua=1,Va.exports=(e=fa(),function(t){var o=e,n=o.lib,i=n.WordArray,a=n.Hasher,r=o.algo,s=[],l=[];!function(){function e(e){for(var o=t.sqrt(e),n=2;n<=o;n++)if(!(e%n))return!1;return!0}function o(e){return 4294967296*(e-(0|e))|0}for(var n=2,i=0;i<64;)e(n)&&(i<8&&(s[i]=o(t.pow(n,.5))),l[i]=o(t.pow(n,1/3)),i++),n++}();var c=[],u=r.SHA256=a.extend({_doReset:function(){this._hash=new i.init(s.slice(0))},_doProcessBlock:function(e,t){for(var o=this._hash.words,n=o[0],i=o[1],a=o[2],r=o[3],s=o[4],u=o[5],d=o[6],h=o[7],p=0;p<64;p++){if(p<16)c[p]=0|e[t+p];else{var f=c[p-15],m=(f<<25|f>>>7)^(f<<14|f>>>18)^f>>>3,g=c[p-2],v=(g<<15|g>>>17)^(g<<13|g>>>19)^g>>>10;c[p]=m+c[p-7]+v+c[p-16]}var A=n&i^n&a^i&a,y=(n<<30|n>>>2)^(n<<19|n>>>13)^(n<<10|n>>>22),C=h+((s<<26|s>>>6)^(s<<21|s>>>11)^(s<<7|s>>>25))+(s&u^~s&d)+l[p]+c[p];h=d,d=u,u=s,s=r+C|0,r=a,a=i,i=n,n=C+(y+A)|0}o[0]=o[0]+n|0,o[1]=o[1]+i|0,o[2]=o[2]+a|0,o[3]=o[3]+r|0,o[4]=o[4]+s|0,o[5]=o[5]+u|0,o[6]=o[6]+d|0,o[7]=o[7]+h|0},_doFinalize:function(){var e=this._data,o=e.words,n=8*this._nDataBytes,i=8*e.sigBytes;return o[i>>>5]|=128<<24-i%32,o[14+(i+64>>>9<<4)]=t.floor(n/4294967296),o[15+(i+64>>>9<<4)]=n,e.sigBytes=4*o.length,this._process(),this._hash},clone:function(){var e=a.clone.call(this);return e._hash=this._hash.clone(),e}});o.SHA256=a._createHelper(u),o.HmacSHA256=a._createHmacHelper(u)}(Math),e.SHA256));var e}var Ma,Oa={exports:{}};var Ja,ja={exports:{}};function za(){return Ja||(Ja=1,ja.exports=(e=fa(),va(),function(){var t=e,o=t.lib.Hasher,n=t.x64,i=n.Word,a=n.WordArray,r=t.algo;function s(){return i.create.apply(i,arguments)}var l=[s(1116352408,3609767458),s(1899447441,602891725),s(3049323471,3964484399),s(3921009573,2173295548),s(961987163,4081628472),s(1508970993,3053834265),s(2453635748,2937671579),s(2870763221,3664609560),s(3624381080,2734883394),s(310598401,1164996542),s(607225278,1323610764),s(1426881987,3590304994),s(1925078388,4068182383),s(2162078206,991336113),s(2614888103,633803317),s(3248222580,3479774868),s(3835390401,2666613458),s(4022224774,944711139),s(264347078,2341262773),s(604807628,2007800933),s(770255983,1495990901),s(1249150122,1856431235),s(1555081692,3175218132),s(1996064986,2198950837),s(2554220882,3999719339),s(2821834349,766784016),s(2952996808,2566594879),s(3210313671,3203337956),s(3336571891,1034457026),s(3584528711,2466948901),s(113926993,3758326383),s(338241895,168717936),s(666307205,1188179964),s(773529912,1546045734),s(1294757372,1522805485),s(1396182291,2643833823),s(1695183700,2343527390),s(1986661051,1014477480),s(2177026350,1206759142),s(2456956037,344077627),s(2730485921,1290863460),s(2820302411,3158454273),s(3259730800,3505952657),s(3345764771,106217008),s(3516065817,3606008344),s(3600352804,1432725776),s(4094571909,1467031594),s(275423344,851169720),s(430227734,3100823752),s(506948616,1363258195),s(659060556,3750685593),s(883997877,3785050280),s(958139571,3318307427),s(1322822218,3812723403),s(1537002063,2003034995),s(1747873779,3602036899),s(1955562222,1575990012),s(2024104815,1125592928),s(2227730452,2716904306),s(2361852424,442776044),s(2428436474,593698344),s(2756734187,3733110249),s(3204031479,2999351573),s(3329325298,3815920427),s(3391569614,3928383900),s(3515267271,566280711),s(3940187606,3454069534),s(4118630271,4000239992),s(116418474,1914138554),s(174292421,2731055270),s(289380356,3203993006),s(460393269,320620315),s(685471733,587496836),s(852142971,1086792851),s(1017036298,365543100),s(1126000580,2618297676),s(1288033470,3409855158),s(1501505948,4234509866),s(1607167915,987167468),s(1816402316,1246189591)],c=[];!function(){for(var e=0;e<80;e++)c[e]=s()}();var u=r.SHA512=o.extend({_doReset:function(){this._hash=new a.init([new i.init(1779033703,4089235720),new i.init(3144134277,2227873595),new i.init(1013904242,4271175723),new i.init(2773480762,1595750129),new i.init(1359893119,2917565137),new i.init(2600822924,725511199),new i.init(528734635,4215389547),new i.init(1541459225,327033209)])},_doProcessBlock:function(e,t){for(var o=this._hash.words,n=o[0],i=o[1],a=o[2],r=o[3],s=o[4],u=o[5],d=o[6],h=o[7],p=n.high,f=n.low,m=i.high,g=i.low,v=a.high,A=a.low,y=r.high,C=r.low,w=s.high,E=s.low,b=u.high,I=u.low,B=d.high,k=d.low,S=h.high,x=h.low,R=p,T=f,F=m,Q=g,L=v,P=A,N=y,U=C,V=w,D=E,M=b,O=I,J=B,j=k,z=S,H=x,q=0;q<80;q++){var K,G,W=c[q];if(q<16)G=W.high=0|e[t+2*q],K=W.low=0|e[t+2*q+1];else{var Y=c[q-15],_=Y.high,Z=Y.low,X=(_>>>1|Z<<31)^(_>>>8|Z<<24)^_>>>7,$=(Z>>>1|_<<31)^(Z>>>8|_<<24)^(Z>>>7|_<<25),ee=c[q-2],te=ee.high,oe=ee.low,ne=(te>>>19|oe<<13)^(te<<3|oe>>>29)^te>>>6,ie=(oe>>>19|te<<13)^(oe<<3|te>>>29)^(oe>>>6|te<<26),ae=c[q-7],re=ae.high,se=ae.low,le=c[q-16],ce=le.high,ue=le.low;G=(G=(G=X+re+((K=$+se)>>>0<$>>>0?1:0))+ne+((K+=ie)>>>0<ie>>>0?1:0))+ce+((K+=ue)>>>0<ue>>>0?1:0),W.high=G,W.low=K}var de,he=V&M^~V&J,pe=D&O^~D&j,fe=R&F^R&L^F&L,me=T&Q^T&P^Q&P,ge=(R>>>28|T<<4)^(R<<30|T>>>2)^(R<<25|T>>>7),ve=(T>>>28|R<<4)^(T<<30|R>>>2)^(T<<25|R>>>7),Ae=(V>>>14|D<<18)^(V>>>18|D<<14)^(V<<23|D>>>9),ye=(D>>>14|V<<18)^(D>>>18|V<<14)^(D<<23|V>>>9),Ce=l[q],we=Ce.high,Ee=Ce.low,be=z+Ae+((de=H+ye)>>>0<H>>>0?1:0),Ie=ve+me;z=J,H=j,J=M,j=O,M=V,O=D,V=N+(be=(be=(be=be+he+((de+=pe)>>>0<pe>>>0?1:0))+we+((de+=Ee)>>>0<Ee>>>0?1:0))+G+((de+=K)>>>0<K>>>0?1:0))+((D=U+de|0)>>>0<U>>>0?1:0)|0,N=L,U=P,L=F,P=Q,F=R,Q=T,R=be+(ge+fe+(Ie>>>0<ve>>>0?1:0))+((T=de+Ie|0)>>>0<de>>>0?1:0)|0}f=n.low=f+T,n.high=p+R+(f>>>0<T>>>0?1:0),g=i.low=g+Q,i.high=m+F+(g>>>0<Q>>>0?1:0),A=a.low=A+P,a.high=v+L+(A>>>0<P>>>0?1:0),C=r.low=C+U,r.high=y+N+(C>>>0<U>>>0?1:0),E=s.low=E+D,s.high=w+V+(E>>>0<D>>>0?1:0),I=u.low=I+O,u.high=b+M+(I>>>0<O>>>0?1:0),k=d.low=k+j,d.high=B+J+(k>>>0<j>>>0?1:0),x=h.low=x+H,h.high=S+z+(x>>>0<H>>>0?1:0)},_doFinalize:function(){var e=this._data,t=e.words,o=8*this._nDataBytes,n=8*e.sigBytes;return t[n>>>5]|=128<<24-n%32,t[30+(n+128>>>10<<5)]=Math.floor(o/4294967296),t[31+(n+128>>>10<<5)]=o,e.sigBytes=4*t.length,this._process(),this._hash.toX32()},clone:function(){var e=o.clone.call(this);return e._hash=this._hash.clone(),e},blockSize:32});t.SHA512=o._createHelper(u),t.HmacSHA512=o._createHmacHelper(u)}(),e.SHA512)),ja.exports;var e}var Ha,qa={exports:{}};var Ka,Ga={exports:{}};function Wa(){return Ka?Ga.exports:(Ka=1,Ga.exports=(e=fa(),va(),function(t){var o=e,n=o.lib,i=n.WordArray,a=n.Hasher,r=o.x64.Word,s=o.algo,l=[],c=[],u=[];!function(){for(var e=1,t=0,o=0;o<24;o++){l[e+5*t]=(o+1)*(o+2)/2%64;var n=(2*e+3*t)%5;e=t%5,t=n}for(e=0;e<5;e++)for(t=0;t<5;t++)c[e+5*t]=t+(2*e+3*t)%5*5;for(var i=1,a=0;a<24;a++){for(var s=0,d=0,h=0;h<7;h++){if(1&i){var p=(1<<h)-1;p<32?d^=1<<p:s^=1<<p-32}128&i?i=i<<1^113:i<<=1}u[a]=r.create(s,d)}}();var d=[];!function(){for(var e=0;e<25;e++)d[e]=r.create()}();var h=s.SHA3=a.extend({cfg:a.cfg.extend({outputLength:512}),_doReset:function(){for(var e=this._state=[],t=0;t<25;t++)e[t]=new r.init;this.blockSize=(1600-2*this.cfg.outputLength)/32},_doProcessBlock:function(e,t){for(var o=this._state,n=this.blockSize/2,i=0;i<n;i++){var a=e[t+2*i],r=e[t+2*i+1];a=16711935&(a<<8|a>>>24)|4278255360&(a<<24|a>>>8),r=16711935&(r<<8|r>>>24)|4278255360&(r<<24|r>>>8),(x=o[i]).high^=r,x.low^=a}for(var s=0;s<24;s++){for(var h=0;h<5;h++){for(var p=0,f=0,m=0;m<5;m++)p^=(x=o[h+5*m]).high,f^=x.low;var g=d[h];g.high=p,g.low=f}for(h=0;h<5;h++){var v=d[(h+4)%5],A=d[(h+1)%5],y=A.high,C=A.low;for(p=v.high^(y<<1|C>>>31),f=v.low^(C<<1|y>>>31),m=0;m<5;m++)(x=o[h+5*m]).high^=p,x.low^=f}for(var w=1;w<25;w++){var E=(x=o[w]).high,b=x.low,I=l[w];I<32?(p=E<<I|b>>>32-I,f=b<<I|E>>>32-I):(p=b<<I-32|E>>>64-I,f=E<<I-32|b>>>64-I);var B=d[c[w]];B.high=p,B.low=f}var k=d[0],S=o[0];for(k.high=S.high,k.low=S.low,h=0;h<5;h++)for(m=0;m<5;m++){var x=o[w=h+5*m],R=d[w],T=d[(h+1)%5+5*m],F=d[(h+2)%5+5*m];x.high=R.high^~T.high&F.high,x.low=R.low^~T.low&F.low}x=o[0];var Q=u[s];x.high^=Q.high,x.low^=Q.low}},_doFinalize:function(){var e=this._data,o=e.words;this._nDataBytes;var n=8*e.sigBytes,a=32*this.blockSize;o[n>>>5]|=1<<24-n%32,o[(t.ceil((n+1)/a)*a>>>5)-1]|=128,e.sigBytes=4*o.length,this._process();for(var r=this._state,s=this.cfg.outputLength/8,l=s/8,c=[],u=0;u<l;u++){var d=r[u],h=d.high,p=d.low;h=16711935&(h<<8|h>>>24)|4278255360&(h<<24|h>>>8),p=16711935&(p<<8|p>>>24)|4278255360&(p<<24|p>>>8),c.push(p),c.push(h)}return new i.init(c,s)},clone:function(){for(var e=a.clone.call(this),t=e._state=this._state.slice(0),o=0;o<25;o++)t[o]=t[o].clone();return e}});o.SHA3=a._createHelper(h),o.HmacSHA3=a._createHmacHelper(h)}(Math),e.SHA3));var e}var Ya,_a={exports:{}};var Za,Xa={exports:{}};function $a(){return Za?Xa.exports:(Za=1,Xa.exports=(e=fa(),o=(t=e).lib.Base,n=t.enc.Utf8,void(t.algo.HMAC=o.extend({init:function(e,t){e=this._hasher=new e.init,"string"==typeof t&&(t=n.parse(t));var o=e.blockSize,i=4*o;t.sigBytes>i&&(t=e.finalize(t)),t.clamp();for(var a=this._oKey=t.clone(),r=this._iKey=t.clone(),s=a.words,l=r.words,c=0;c<o;c++)s[c]^=1549556828,l[c]^=909522486;a.sigBytes=r.sigBytes=i,this.reset()},reset:function(){var e=this._hasher;e.reset(),e.update(this._iKey)},update:function(e){return this._hasher.update(e),this},finalize:function(e){var t=this._hasher,o=t.finalize(e);return t.reset(),t.finalize(this._oKey.clone().concat(o))}}))));var e,t,o,n}var er,tr={exports:{}};var or,nr={exports:{}};function ir(){return or?nr.exports:(or=1,nr.exports=(s=fa(),Na(),$a(),t=(e=s).lib,o=t.Base,n=t.WordArray,i=e.algo,a=i.MD5,r=i.EvpKDF=o.extend({cfg:o.extend({keySize:4,hasher:a,iterations:1}),init:function(e){this.cfg=this.cfg.extend(e)},compute:function(e,t){for(var o,i=this.cfg,a=i.hasher.create(),r=n.create(),s=r.words,l=i.keySize,c=i.iterations;s.length<l;){o&&a.update(o),o=a.update(e).finalize(t),a.reset();for(var u=1;u<c;u++)o=a.finalize(o),a.reset();r.concat(o)}return r.sigBytes=4*l,r}}),e.EvpKDF=function(e,t,o){return r.create(o).compute(e,t)},s.EvpKDF));var e,t,o,n,i,a,r,s}var ar,rr={exports:{}};function sr(){return ar?rr.exports:(ar=1,rr.exports=(e=fa(),ir(),void(e.lib.Cipher||function(t){var o=e,n=o.lib,i=n.Base,a=n.WordArray,r=n.BufferedBlockAlgorithm,s=o.enc;s.Utf8;var l=s.Base64,c=o.algo.EvpKDF,u=n.Cipher=r.extend({cfg:i.extend(),createEncryptor:function(e,t){return this.create(this._ENC_XFORM_MODE,e,t)},createDecryptor:function(e,t){return this.create(this._DEC_XFORM_MODE,e,t)},init:function(e,t,o){this.cfg=this.cfg.extend(o),this._xformMode=e,this._key=t,this.reset()},reset:function(){r.reset.call(this),this._doReset()},process:function(e){return this._append(e),this._process()},finalize:function(e){return e&&this._append(e),this._doFinalize()},keySize:4,ivSize:4,_ENC_XFORM_MODE:1,_DEC_XFORM_MODE:2,_createHelper:/* @__PURE__ */function(){function e(e){return"string"==typeof e?y:v}return function(t){return{encrypt:function(o,n,i){return e(n).encrypt(t,o,n,i)},decrypt:function(o,n,i){return e(n).decrypt(t,o,n,i)}}}}()});n.StreamCipher=u.extend({_doFinalize:function(){return this._process(!0)},blockSize:1});var d=o.mode={},h=n.BlockCipherMode=i.extend({createEncryptor:function(e,t){return this.Encryptor.create(e,t)},createDecryptor:function(e,t){return this.Decryptor.create(e,t)},init:function(e,t){this._cipher=e,this._iv=t}}),p=d.CBC=function(){var e=h.extend();function o(e,o,n){var i,a=this._iv;a?(i=a,this._iv=t):i=this._prevBlock;for(var r=0;r<n;r++)e[o+r]^=i[r]}return e.Encryptor=e.extend({processBlock:function(e,t){var n=this._cipher,i=n.blockSize;o.call(this,e,t,i),n.encryptBlock(e,t),this._prevBlock=e.slice(t,t+i)}}),e.Decryptor=e.extend({processBlock:function(e,t){var n=this._cipher,i=n.blockSize,a=e.slice(t,t+i);n.decryptBlock(e,t),o.call(this,e,t,i),this._prevBlock=a}}),e}(),f=(o.pad={}).Pkcs7={pad:function(e,t){for(var o=4*t,n=o-e.sigBytes%o,i=n<<24|n<<16|n<<8|n,r=[],s=0;s<n;s+=4)r.push(i);var l=a.create(r,n);e.concat(l)},unpad:function(e){var t=255&e.words[e.sigBytes-1>>>2];e.sigBytes-=t}};n.BlockCipher=u.extend({cfg:u.cfg.extend({mode:p,padding:f}),reset:function(){var e;u.reset.call(this);var t=this.cfg,o=t.iv,n=t.mode;this._xformMode==this._ENC_XFORM_MODE?e=n.createEncryptor:(e=n.createDecryptor,this._minBufferSize=1),this._mode&&this._mode.__creator==e?this._mode.init(this,o&&o.words):(this._mode=e.call(n,this,o&&o.words),this._mode.__creator=e)},_doProcessBlock:function(e,t){this._mode.processBlock(e,t)},_doFinalize:function(){var e,t=this.cfg.padding;return this._xformMode==this._ENC_XFORM_MODE?(t.pad(this._data,this.blockSize),e=this._process(!0)):(e=this._process(!0),t.unpad(e)),e},blockSize:4});var m=n.CipherParams=i.extend({init:function(e){this.mixIn(e)},toString:function(e){return(e||this.formatter).stringify(this)}}),g=(o.format={}).OpenSSL={stringify:function(e){var t=e.ciphertext,o=e.salt;return(o?a.create([1398893684,1701076831]).concat(o).concat(t):t).toString(l)},parse:function(e){var t,o=l.parse(e),n=o.words;return 1398893684==n[0]&&1701076831==n[1]&&(t=a.create(n.slice(2,4)),n.splice(0,4),o.sigBytes-=16),m.create({ciphertext:o,salt:t})}},v=n.SerializableCipher=i.extend({cfg:i.extend({format:g}),encrypt:function(e,t,o,n){n=this.cfg.extend(n);var i=e.createEncryptor(o,n),a=i.finalize(t),r=i.cfg;return m.create({ciphertext:a,key:o,iv:r.iv,algorithm:e,mode:r.mode,padding:r.padding,blockSize:e.blockSize,formatter:n.format})},decrypt:function(e,t,o,n){return n=this.cfg.extend(n),t=this._parse(t,n.format),e.createDecryptor(o,n).finalize(t.ciphertext)},_parse:function(e,t){return"string"==typeof e?t.parse(e,this):e}}),A=(o.kdf={}).OpenSSL={execute:function(e,t,o,n,i){if(n||(n=a.random(8)),i)r=c.create({keySize:t+o,hasher:i}).compute(e,n);else var r=c.create({keySize:t+o}).compute(e,n);var s=a.create(r.words.slice(t),4*o);return r.sigBytes=4*t,m.create({key:r,iv:s,salt:n})}},y=n.PasswordBasedCipher=v.extend({cfg:v.cfg.extend({kdf:A}),encrypt:function(e,t,o,n){var i=(n=this.cfg.extend(n)).kdf.execute(o,e.keySize,e.ivSize,n.salt,n.hasher);n.iv=i.iv;var a=v.encrypt.call(this,e,t,i.key,n);return a.mixIn(i),a},decrypt:function(e,t,o,n){n=this.cfg.extend(n),t=this._parse(t,n.format);var i=n.kdf.execute(o,e.keySize,e.ivSize,t.salt,n.hasher);return n.iv=i.iv,v.decrypt.call(this,e,t,i.key,n)}})}())));var e}var lr,cr={exports:{}};var ur,dr={exports:{}};var hr,pr={exports:{}};function fr(){return hr?pr.exports:(hr=1,pr.exports=(e=fa(),sr(),e.mode.CTRGladman=function(){var t=e.lib.BlockCipherMode.extend();function o(e){if(255&~(e>>24))e+=1<<24;else{var t=e>>16&255,o=e>>8&255,n=255&e;255===t?(t=0,255===o?(o=0,255===n?n=0:++n):++o):++t,e=0,e+=t<<16,e+=o<<8,e+=n}return e}function n(e){return 0===(e[0]=o(e[0]))&&(e[1]=o(e[1])),e}var i=t.Encryptor=t.extend({processBlock:function(e,t){var o=this._cipher,i=o.blockSize,a=this._iv,r=this._counter;a&&(r=this._counter=a.slice(0),this._iv=void 0),n(r);var s=r.slice(0);o.encryptBlock(s,0);for(var l=0;l<i;l++)e[t+l]^=s[l]}});return t.Decryptor=i,t}(),e.mode.CTRGladman));var e}var mr,gr={exports:{}};var vr,Ar={exports:{}};var yr,Cr={exports:{}};var wr,Er={exports:{}};var br,Ir={exports:{}};var Br,kr={exports:{}};var Sr,xr={exports:{}};var Rr,Tr={exports:{}};var Fr,Qr={exports:{}};var Lr,Pr={exports:{}};function Nr(){return Lr?Pr.exports:(Lr=1,Pr.exports=(e=fa(),ka(),Qa(),ir(),sr(),function(){var t=e,o=t.lib,n=o.WordArray,i=o.BlockCipher,a=t.algo,r=[57,49,41,33,25,17,9,1,58,50,42,34,26,18,10,2,59,51,43,35,27,19,11,3,60,52,44,36,63,55,47,39,31,23,15,7,62,54,46,38,30,22,14,6,61,53,45,37,29,21,13,5,28,20,12,4],s=[14,17,11,24,1,5,3,28,15,6,21,10,23,19,12,4,26,8,16,7,27,20,13,2,41,52,31,37,47,55,30,40,51,45,33,48,44,49,39,56,34,53,46,42,50,36,29,32],l=[1,2,4,6,8,10,12,14,15,17,19,21,23,25,27,28],c=[{0:8421888,268435456:32768,536870912:8421378,805306368:2,1073741824:512,1342177280:8421890,1610612736:8389122,1879048192:8388608,2147483648:514,2415919104:8389120,2684354560:33280,2952790016:8421376,3221225472:32770,3489660928:8388610,3758096384:0,4026531840:33282,134217728:0,402653184:8421890,671088640:33282,939524096:32768,1207959552:8421888,1476395008:512,1744830464:8421378,2013265920:2,2281701376:8389120,2550136832:33280,2818572288:8421376,3087007744:8389122,3355443200:8388610,3623878656:32770,3892314112:514,4160749568:8388608,1:32768,268435457:2,536870913:8421888,805306369:8388608,1073741825:8421378,1342177281:33280,1610612737:512,1879048193:8389122,2147483649:8421890,2415919105:8421376,2684354561:8388610,2952790017:33282,3221225473:514,3489660929:8389120,3758096385:32770,4026531841:0,134217729:8421890,402653185:8421376,671088641:8388608,939524097:512,1207959553:32768,1476395009:8388610,1744830465:2,2013265921:33282,2281701377:32770,2550136833:8389122,2818572289:514,3087007745:8421888,3355443201:8389120,3623878657:0,3892314113:33280,4160749569:8421378},{0:1074282512,16777216:16384,33554432:524288,50331648:1074266128,67108864:1073741840,83886080:1074282496,100663296:1073758208,117440512:16,134217728:540672,150994944:1073758224,167772160:1073741824,184549376:540688,201326592:524304,218103808:0,234881024:16400,251658240:1074266112,8388608:1073758208,25165824:540688,41943040:16,58720256:1073758224,75497472:1074282512,92274688:1073741824,109051904:524288,125829120:1074266128,142606336:524304,159383552:0,176160768:16384,192937984:1074266112,209715200:1073741840,226492416:540672,243269632:1074282496,260046848:16400,268435456:0,285212672:1074266128,301989888:1073758224,318767104:1074282496,335544320:1074266112,352321536:16,369098752:540688,385875968:16384,402653184:16400,419430400:524288,436207616:524304,452984832:1073741840,469762048:540672,486539264:1073758208,503316480:1073741824,520093696:1074282512,276824064:540688,293601280:524288,310378496:1074266112,327155712:16384,343932928:1073758208,360710144:1074282512,377487360:16,394264576:1073741824,411041792:1074282496,427819008:1073741840,444596224:1073758224,461373440:524304,478150656:0,494927872:16400,511705088:1074266128,528482304:540672},{0:260,1048576:0,2097152:67109120,3145728:65796,4194304:65540,5242880:67108868,6291456:67174660,7340032:67174400,8388608:67108864,9437184:67174656,10485760:65792,11534336:67174404,12582912:67109124,13631488:65536,14680064:4,15728640:256,524288:67174656,1572864:67174404,2621440:0,3670016:67109120,4718592:67108868,5767168:65536,6815744:65540,7864320:260,8912896:4,9961472:256,11010048:67174400,12058624:65796,13107200:65792,14155776:67109124,15204352:67174660,16252928:67108864,16777216:67174656,17825792:65540,18874368:65536,19922944:67109120,20971520:256,22020096:67174660,23068672:67108868,24117248:0,25165824:67109124,26214400:67108864,27262976:4,28311552:65792,29360128:67174400,30408704:260,31457280:65796,32505856:67174404,17301504:67108864,18350080:260,19398656:67174656,20447232:0,21495808:65540,22544384:67109120,23592960:256,24641536:67174404,25690112:65536,26738688:67174660,27787264:65796,28835840:67108868,29884416:67109124,30932992:67174400,31981568:4,33030144:65792},{0:2151682048,65536:2147487808,131072:4198464,196608:2151677952,262144:0,327680:4198400,393216:2147483712,458752:4194368,524288:2147483648,589824:4194304,655360:64,720896:2147487744,786432:2151678016,851968:4160,917504:4096,983040:2151682112,32768:2147487808,98304:64,163840:2151678016,229376:2147487744,294912:4198400,360448:2151682112,425984:0,491520:2151677952,557056:4096,622592:2151682048,688128:4194304,753664:4160,819200:2147483648,884736:4194368,950272:4198464,1015808:2147483712,1048576:4194368,1114112:4198400,1179648:2147483712,1245184:0,1310720:4160,1376256:2151678016,1441792:2151682048,1507328:2147487808,1572864:2151682112,1638400:2147483648,1703936:2151677952,1769472:4198464,1835008:2147487744,1900544:4194304,1966080:64,2031616:4096,1081344:2151677952,1146880:2151682112,1212416:0,1277952:4198400,1343488:4194368,1409024:2147483648,1474560:2147487808,1540096:64,1605632:2147483712,1671168:4096,1736704:2147487744,1802240:2151678016,1867776:4160,1933312:2151682048,1998848:4194304,2064384:4198464},{0:128,4096:17039360,8192:262144,12288:536870912,16384:537133184,20480:16777344,24576:553648256,28672:262272,32768:16777216,36864:537133056,40960:536871040,45056:553910400,49152:553910272,53248:0,57344:17039488,61440:553648128,2048:17039488,6144:553648256,10240:128,14336:17039360,18432:262144,22528:537133184,26624:553910272,30720:536870912,34816:537133056,38912:0,43008:553910400,47104:16777344,51200:536871040,55296:553648128,59392:16777216,63488:262272,65536:262144,69632:128,73728:536870912,77824:553648256,81920:16777344,86016:553910272,90112:537133184,94208:16777216,98304:553910400,102400:553648128,106496:17039360,110592:537133056,114688:262272,118784:536871040,122880:0,126976:17039488,67584:553648256,71680:16777216,75776:17039360,79872:537133184,83968:536870912,88064:17039488,92160:128,96256:553910272,100352:262272,104448:553910400,108544:0,112640:553648128,116736:16777344,120832:262144,124928:537133056,129024:536871040},{0:268435464,256:8192,512:270532608,768:270540808,1024:268443648,1280:2097152,1536:2097160,1792:268435456,2048:0,2304:268443656,2560:2105344,2816:8,3072:270532616,3328:2105352,3584:8200,3840:270540800,128:270532608,384:270540808,640:8,896:2097152,1152:2105352,1408:268435464,1664:268443648,1920:8200,2176:2097160,2432:8192,2688:268443656,2944:270532616,3200:0,3456:270540800,3712:2105344,3968:268435456,4096:268443648,4352:270532616,4608:270540808,4864:8200,5120:2097152,5376:268435456,5632:268435464,5888:2105344,6144:2105352,6400:0,6656:8,6912:270532608,7168:8192,7424:268443656,7680:270540800,7936:2097160,4224:8,4480:2105344,4736:2097152,4992:268435464,5248:268443648,5504:8200,5760:270540808,6016:270532608,6272:270540800,6528:270532616,6784:8192,7040:2105352,7296:2097160,7552:0,7808:268435456,8064:268443656},{0:1048576,16:33555457,32:1024,48:1049601,64:34604033,80:0,96:1,112:34603009,128:33555456,144:1048577,160:33554433,176:34604032,192:34603008,208:1025,224:1049600,240:33554432,8:34603009,24:0,40:33555457,56:34604032,72:1048576,88:33554433,104:33554432,120:1025,136:1049601,152:33555456,168:34603008,184:1048577,200:1024,216:34604033,232:1,248:1049600,256:33554432,272:1048576,288:33555457,304:34603009,320:1048577,336:33555456,352:34604032,368:1049601,384:1025,400:34604033,416:1049600,432:1,448:0,464:34603008,480:33554433,496:1024,264:1049600,280:33555457,296:34603009,312:1,328:33554432,344:1048576,360:1025,376:34604032,392:33554433,408:34603008,424:0,440:34604033,456:1049601,472:1024,488:33555456,504:1048577},{0:134219808,1:131072,2:134217728,3:32,4:131104,5:134350880,6:134350848,7:2048,8:134348800,9:134219776,10:133120,11:134348832,12:2080,13:0,14:134217760,15:133152,2147483648:2048,2147483649:134350880,2147483650:134219808,2147483651:134217728,2147483652:134348800,2147483653:133120,2147483654:133152,2147483655:32,2147483656:134217760,2147483657:2080,2147483658:131104,2147483659:134350848,2147483660:0,2147483661:134348832,2147483662:134219776,2147483663:131072,16:133152,17:134350848,18:32,19:2048,20:134219776,21:134217760,22:134348832,23:131072,24:0,25:131104,26:134348800,27:134219808,28:134350880,29:133120,30:2080,31:134217728,2147483664:131072,2147483665:2048,2147483666:134348832,2147483667:133152,2147483668:32,2147483669:134348800,2147483670:134217728,2147483671:134219808,2147483672:134350880,2147483673:134217760,2147483674:134219776,2147483675:0,2147483676:133120,2147483677:2080,2147483678:131104,2147483679:134350848}],u=[4160749569,528482304,33030144,2064384,129024,8064,504,2147483679],d=a.DES=i.extend({_doReset:function(){for(var e=this._key.words,t=[],o=0;o<56;o++){var n=r[o]-1;t[o]=e[n>>>5]>>>31-n%32&1}for(var i=this._subKeys=[],a=0;a<16;a++){var c=i[a]=[],u=l[a];for(o=0;o<24;o++)c[o/6|0]|=t[(s[o]-1+u)%28]<<31-o%6,c[4+(o/6|0)]|=t[28+(s[o+24]-1+u)%28]<<31-o%6;for(c[0]=c[0]<<1|c[0]>>>31,o=1;o<7;o++)c[o]=c[o]>>>4*(o-1)+3;c[7]=c[7]<<5|c[7]>>>27}var d=this._invSubKeys=[];for(o=0;o<16;o++)d[o]=i[15-o]},encryptBlock:function(e,t){this._doCryptBlock(e,t,this._subKeys)},decryptBlock:function(e,t){this._doCryptBlock(e,t,this._invSubKeys)},_doCryptBlock:function(e,t,o){this._lBlock=e[t],this._rBlock=e[t+1],h.call(this,4,252645135),h.call(this,16,65535),p.call(this,2,858993459),p.call(this,8,16711935),h.call(this,1,1431655765);for(var n=0;n<16;n++){for(var i=o[n],a=this._lBlock,r=this._rBlock,s=0,l=0;l<8;l++)s|=c[l][((r^i[l])&u[l])>>>0];this._lBlock=r,this._rBlock=a^s}var d=this._lBlock;this._lBlock=this._rBlock,this._rBlock=d,h.call(this,1,1431655765),p.call(this,8,16711935),p.call(this,2,858993459),h.call(this,16,65535),h.call(this,4,252645135),e[t]=this._lBlock,e[t+1]=this._rBlock},keySize:2,ivSize:2,blockSize:2});function h(e,t){var o=(this._lBlock>>>e^this._rBlock)&t;this._rBlock^=o,this._lBlock^=o<<e}function p(e,t){var o=(this._rBlock>>>e^this._lBlock)&t;this._lBlock^=o,this._rBlock^=o<<e}t.DES=i._createHelper(d);var f=a.TripleDES=i.extend({_doReset:function(){var e=this._key.words;if(2!==e.length&&4!==e.length&&e.length<6)throw new Error("Invalid key length - 3DES requires the key length to be 64, 128, 192 or >192.");var t=e.slice(0,2),o=e.length<4?e.slice(0,2):e.slice(2,4),i=e.length<6?e.slice(0,2):e.slice(4,6);this._des1=d.createEncryptor(n.create(t)),this._des2=d.createEncryptor(n.create(o)),this._des3=d.createEncryptor(n.create(i))},encryptBlock:function(e,t){this._des1.encryptBlock(e,t),this._des2.decryptBlock(e,t),this._des3.encryptBlock(e,t)},decryptBlock:function(e,t){this._des3.decryptBlock(e,t),this._des2.encryptBlock(e,t),this._des1.decryptBlock(e,t)},keySize:6,ivSize:2,blockSize:2});t.TripleDES=i._createHelper(f)}(),e.TripleDES));var e}var Ur,Vr={exports:{}};var Dr,Mr={exports:{}};var Or,Jr={exports:{}};var jr,zr={exports:{}};function Hr(){return jr?zr.exports:(jr=1,zr.exports=(e=fa(),ka(),Qa(),ir(),sr(),function(){var t=e,o=t.lib.BlockCipher,n=t.algo;const i=16,a=[608135816,2242054355,320440878,57701188,2752067618,698298832,137296536,3964562569,1160258022,953160567,3193202383,887688300,3232508343,3380367581,1065670069,3041331479,2450970073,2306472731],r=[[3509652390,2564797868,805139163,3491422135,3101798381,1780907670,3128725573,4046225305,614570311,3012652279,134345442,2240740374,1667834072,1901547113,2757295779,4103290238,227898511,1921955416,1904987480,2182433518,2069144605,3260701109,2620446009,720527379,3318853667,677414384,3393288472,3101374703,2390351024,1614419982,1822297739,2954791486,3608508353,3174124327,2024746970,1432378464,3864339955,2857741204,1464375394,1676153920,1439316330,715854006,3033291828,289532110,2706671279,2087905683,3018724369,1668267050,732546397,1947742710,3462151702,2609353502,2950085171,1814351708,2050118529,680887927,999245976,1800124847,3300911131,1713906067,1641548236,4213287313,1216130144,1575780402,4018429277,3917837745,3693486850,3949271944,596196993,3549867205,258830323,2213823033,772490370,2760122372,1774776394,2652871518,566650946,4142492826,1728879713,2882767088,1783734482,3629395816,2517608232,2874225571,1861159788,326777828,3124490320,2130389656,2716951837,967770486,1724537150,2185432712,2364442137,1164943284,2105845187,998989502,3765401048,2244026483,1075463327,1455516326,1322494562,910128902,469688178,1117454909,936433444,3490320968,3675253459,1240580251,122909385,2157517691,634681816,4142456567,3825094682,3061402683,2540495037,79693498,3249098678,1084186820,1583128258,426386531,1761308591,1047286709,322548459,995290223,1845252383,2603652396,3431023940,2942221577,3202600964,3727903485,1712269319,422464435,3234572375,1170764815,3523960633,3117677531,1434042557,442511882,3600875718,1076654713,1738483198,4213154764,2393238008,3677496056,1014306527,4251020053,793779912,2902807211,842905082,4246964064,1395751752,1040244610,2656851899,3396308128,445077038,3742853595,3577915638,679411651,2892444358,2354009459,1767581616,3150600392,3791627101,3102740896,284835224,4246832056,1258075500,768725851,2589189241,3069724005,3532540348,1274779536,3789419226,2764799539,1660621633,3471099624,4011903706,913787905,3497959166,737222580,2514213453,2928710040,3937242737,1804850592,3499020752,2949064160,2386320175,2390070455,2415321851,4061277028,2290661394,2416832540,1336762016,1754252060,3520065937,3014181293,791618072,3188594551,3933548030,2332172193,3852520463,3043980520,413987798,3465142937,3030929376,4245938359,2093235073,3534596313,375366246,2157278981,2479649556,555357303,3870105701,2008414854,3344188149,4221384143,3956125452,2067696032,3594591187,2921233993,2428461,544322398,577241275,1471733935,610547355,4027169054,1432588573,1507829418,2025931657,3646575487,545086370,48609733,2200306550,1653985193,298326376,1316178497,3007786442,2064951626,458293330,2589141269,3591329599,3164325604,727753846,2179363840,146436021,1461446943,4069977195,705550613,3059967265,3887724982,4281599278,3313849956,1404054877,2845806497,146425753,1854211946],[1266315497,3048417604,3681880366,3289982499,290971e4,1235738493,2632868024,2414719590,3970600049,1771706367,1449415276,3266420449,422970021,1963543593,2690192192,3826793022,1062508698,1531092325,1804592342,2583117782,2714934279,4024971509,1294809318,4028980673,1289560198,2221992742,1669523910,35572830,157838143,1052438473,1016535060,1802137761,1753167236,1386275462,3080475397,2857371447,1040679964,2145300060,2390574316,1461121720,2956646967,4031777805,4028374788,33600511,2920084762,1018524850,629373528,3691585981,3515945977,2091462646,2486323059,586499841,988145025,935516892,3367335476,2599673255,2839830854,265290510,3972581182,2759138881,3795373465,1005194799,847297441,406762289,1314163512,1332590856,1866599683,4127851711,750260880,613907577,1450815602,3165620655,3734664991,3650291728,3012275730,3704569646,1427272223,778793252,1343938022,2676280711,2052605720,1946737175,3164576444,3914038668,3967478842,3682934266,1661551462,3294938066,4011595847,840292616,3712170807,616741398,312560963,711312465,1351876610,322626781,1910503582,271666773,2175563734,1594956187,70604529,3617834859,1007753275,1495573769,4069517037,2549218298,2663038764,504708206,2263041392,3941167025,2249088522,1514023603,1998579484,1312622330,694541497,2582060303,2151582166,1382467621,776784248,2618340202,3323268794,2497899128,2784771155,503983604,4076293799,907881277,423175695,432175456,1378068232,4145222326,3954048622,3938656102,3820766613,2793130115,2977904593,26017576,3274890735,3194772133,1700274565,1756076034,4006520079,3677328699,720338349,1533947780,354530856,688349552,3973924725,1637815568,332179504,3949051286,53804574,2852348879,3044236432,1282449977,3583942155,3416972820,4006381244,1617046695,2628476075,3002303598,1686838959,431878346,2686675385,1700445008,1080580658,1009431731,832498133,3223435511,2605976345,2271191193,2516031870,1648197032,4164389018,2548247927,300782431,375919233,238389289,3353747414,2531188641,2019080857,1475708069,455242339,2609103871,448939670,3451063019,1395535956,2413381860,1841049896,1491858159,885456874,4264095073,4001119347,1565136089,3898914787,1108368660,540939232,1173283510,2745871338,3681308437,4207628240,3343053890,4016749493,1699691293,1103962373,3625875870,2256883143,3830138730,1031889488,3479347698,1535977030,4236805024,3251091107,2132092099,1774941330,1199868427,1452454533,157007616,2904115357,342012276,595725824,1480756522,206960106,497939518,591360097,863170706,2375253569,3596610801,1814182875,2094937945,3421402208,1082520231,3463918190,2785509508,435703966,3908032597,1641649973,2842273706,3305899714,1510255612,2148256476,2655287854,3276092548,4258621189,236887753,3681803219,274041037,1734335097,3815195456,3317970021,1899903192,1026095262,4050517792,356393447,2410691914,3873677099,3682840055],[3913112168,2491498743,4132185628,2489919796,1091903735,1979897079,3170134830,3567386728,3557303409,857797738,1136121015,1342202287,507115054,2535736646,337727348,3213592640,1301675037,2528481711,1895095763,1721773893,3216771564,62756741,2142006736,835421444,2531993523,1442658625,3659876326,2882144922,676362277,1392781812,170690266,3921047035,1759253602,3611846912,1745797284,664899054,1329594018,3901205900,3045908486,2062866102,2865634940,3543621612,3464012697,1080764994,553557557,3656615353,3996768171,991055499,499776247,1265440854,648242737,3940784050,980351604,3713745714,1749149687,3396870395,4211799374,3640570775,1161844396,3125318951,1431517754,545492359,4268468663,3499529547,1437099964,2702547544,3433638243,2581715763,2787789398,1060185593,1593081372,2418618748,4260947970,69676912,2159744348,86519011,2512459080,3838209314,1220612927,3339683548,133810670,1090789135,1078426020,1569222167,845107691,3583754449,4072456591,1091646820,628848692,1613405280,3757631651,526609435,236106946,48312990,2942717905,3402727701,1797494240,859738849,992217954,4005476642,2243076622,3870952857,3732016268,765654824,3490871365,2511836413,1685915746,3888969200,1414112111,2273134842,3281911079,4080962846,172450625,2569994100,980381355,4109958455,2819808352,2716589560,2568741196,3681446669,3329971472,1835478071,660984891,3704678404,4045999559,3422617507,3040415634,1762651403,1719377915,3470491036,2693910283,3642056355,3138596744,1364962596,2073328063,1983633131,926494387,3423689081,2150032023,4096667949,1749200295,3328846651,309677260,2016342300,1779581495,3079819751,111262694,1274766160,443224088,298511866,1025883608,3806446537,1145181785,168956806,3641502830,3584813610,1689216846,3666258015,3200248200,1692713982,2646376535,4042768518,1618508792,1610833997,3523052358,4130873264,2001055236,3610705100,2202168115,4028541809,2961195399,1006657119,2006996926,3186142756,1430667929,3210227297,1314452623,4074634658,4101304120,2273951170,1399257539,3367210612,3027628629,1190975929,2062231137,2333990788,2221543033,2438960610,1181637006,548689776,2362791313,3372408396,3104550113,3145860560,296247880,1970579870,3078560182,3769228297,1714227617,3291629107,3898220290,166772364,1251581989,493813264,448347421,195405023,2709975567,677966185,3703036547,1463355134,2715995803,1338867538,1343315457,2802222074,2684532164,233230375,2599980071,2000651841,3277868038,1638401717,4028070440,3237316320,6314154,819756386,300326615,590932579,1405279636,3267499572,3150704214,2428286686,3959192993,3461946742,1862657033,1266418056,963775037,2089974820,2263052895,1917689273,448879540,3550394620,3981727096,150775221,3627908307,1303187396,508620638,2975983352,2726630617,1817252668,1876281319,1457606340,908771278,3720792119,3617206836,2455994898,1729034894,1080033504],[976866871,3556439503,2881648439,1522871579,1555064734,1336096578,3548522304,2579274686,3574697629,3205460757,3593280638,3338716283,3079412587,564236357,2993598910,1781952180,1464380207,3163844217,3332601554,1699332808,1393555694,1183702653,3581086237,1288719814,691649499,2847557200,2895455976,3193889540,2717570544,1781354906,1676643554,2592534050,3230253752,1126444790,2770207658,2633158820,2210423226,2615765581,2414155088,3127139286,673620729,2805611233,1269405062,4015350505,3341807571,4149409754,1057255273,2012875353,2162469141,2276492801,2601117357,993977747,3918593370,2654263191,753973209,36408145,2530585658,25011837,3520020182,2088578344,530523599,2918365339,1524020338,1518925132,3760827505,3759777254,1202760957,3985898139,3906192525,674977740,4174734889,2031300136,2019492241,3983892565,4153806404,3822280332,352677332,2297720250,60907813,90501309,3286998549,1016092578,2535922412,2839152426,457141659,509813237,4120667899,652014361,1966332200,2975202805,55981186,2327461051,676427537,3255491064,2882294119,3433927263,1307055953,942726286,933058658,2468411793,3933900994,4215176142,1361170020,2001714738,2830558078,3274259782,1222529897,1679025792,2729314320,3714953764,1770335741,151462246,3013232138,1682292957,1483529935,471910574,1539241949,458788160,3436315007,1807016891,3718408830,978976581,1043663428,3165965781,1927990952,4200891579,2372276910,3208408903,3533431907,1412390302,2931980059,4132332400,1947078029,3881505623,4168226417,2941484381,1077988104,1320477388,886195818,18198404,3786409e3,2509781533,112762804,3463356488,1866414978,891333506,18488651,661792760,1628790961,3885187036,3141171499,876946877,2693282273,1372485963,791857591,2686433993,3759982718,3167212022,3472953795,2716379847,445679433,3561995674,3504004811,3574258232,54117162,3331405415,2381918588,3769707343,4154350007,1140177722,4074052095,668550556,3214352940,367459370,261225585,2610173221,4209349473,3468074219,3265815641,314222801,3066103646,3808782860,282218597,3406013506,3773591054,379116347,1285071038,846784868,2669647154,3771962079,3550491691,2305946142,453669953,1268987020,3317592352,3279303384,3744833421,2610507566,3859509063,266596637,3847019092,517658769,3462560207,3443424879,370717030,4247526661,2224018117,4143653529,4112773975,2788324899,2477274417,1456262402,2901442914,1517677493,1846949527,2295493580,3734397586,2176403920,1280348187,1908823572,3871786941,846861322,1172426758,3287448474,3383383037,1655181056,3139813346,901632758,1897031941,2986607138,3066810236,3447102507,1393639104,373351379,950779232,625454576,3124240540,4148612726,2007998917,544563296,2244738638,2330496472,2058025392,1291430526,424198748,50039436,29584100,3605783033,2429876329,2791104160,1057563949,3255363231,3075367218,3463963227,1469046755,985887462]];var s={pbox:[],sbox:[]};function l(e,t){let o=t>>24&255,n=t>>16&255,i=t>>8&255,a=255&t,r=e.sbox[0][o]+e.sbox[1][n];return r^=e.sbox[2][i],r+=e.sbox[3][a],r}function c(e,t,o){let n,a=t,r=o;for(let s=0;s<i;++s)a^=e.pbox[s],r=l(e,a)^r,n=a,a=r,r=n;return n=a,a=r,r=n,r^=e.pbox[i],a^=e.pbox[i+1],{left:a,right:r}}function u(e,t,o){let n,a=t,r=o;for(let s=i+1;s>1;--s)a^=e.pbox[s],r=l(e,a)^r,n=a,a=r,r=n;return n=a,a=r,r=n,r^=e.pbox[1],a^=e.pbox[0],{left:a,right:r}}function d(e,t,o){for(let i=0;i<4;i++){e.sbox[i]=[];for(let t=0;t<256;t++)e.sbox[i][t]=r[i][t]}let n=0;for(let r=0;r<i+2;r++)e.pbox[r]=a[r]^t[n],n++,n>=o&&(n=0);let s=0,l=0,u=0;for(let a=0;a<i+2;a+=2)u=c(e,s,l),s=u.left,l=u.right,e.pbox[a]=s,e.pbox[a+1]=l;for(let i=0;i<4;i++)for(let t=0;t<256;t+=2)u=c(e,s,l),s=u.left,l=u.right,e.sbox[i][t]=s,e.sbox[i][t+1]=l;return!0}var h=n.Blowfish=o.extend({_doReset:function(){if(this._keyPriorReset!==this._key){var e=this._keyPriorReset=this._key,t=e.words,o=e.sigBytes/4;d(s,t,o)}},encryptBlock:function(e,t){var o=c(s,e[t],e[t+1]);e[t]=o.left,e[t+1]=o.right},decryptBlock:function(e,t){var o=u(s,e[t],e[t+1]);e[t]=o.left,e[t+1]=o.right},blockSize:2,keySize:4,ivSize:2});t.Blowfish=o._createHelper(h)}(),e.Blowfish));var e}var qr;var Kr,Gr,Wr,Yr,_r,Zr,Xr=qr?ua.exports:(qr=1,ua.exports=function(e){return e}(fa(),va(),Ca(),ba(),ka(),Ra(),Qa(),Na(),Da(),Ma||(Ma=1,Oa.exports=(Zr=fa(),Da(),Gr=(Kr=Zr).lib.WordArray,Wr=Kr.algo,Yr=Wr.SHA256,_r=Wr.SHA224=Yr.extend({_doReset:function(){this._hash=new Gr.init([3238371032,914150663,812702999,4144912697,4290775857,1750603025,1694076839,3204075428])},_doFinalize:function(){var e=Yr._doFinalize.call(this);return e.sigBytes-=4,e}}),Kr.SHA224=Yr._createHelper(_r),Kr.HmacSHA224=Yr._createHmacHelper(_r),Zr.SHA224)),za(),function(){return Ha?qa.exports:(Ha=1,qa.exports=(s=fa(),va(),za(),t=(e=s).x64,o=t.Word,n=t.WordArray,i=e.algo,a=i.SHA512,r=i.SHA384=a.extend({_doReset:function(){this._hash=new n.init([new o.init(3418070365,3238371032),new o.init(1654270250,914150663),new o.init(2438529370,812702999),new o.init(355462360,4144912697),new o.init(1731405415,4290775857),new o.init(2394180231,1750603025),new o.init(3675008525,1694076839),new o.init(1203062813,3204075428)])},_doFinalize:function(){var e=a._doFinalize.call(this);return e.sigBytes-=16,e}}),e.SHA384=a._createHelper(r),e.HmacSHA384=a._createHmacHelper(r),s.SHA384));var e,t,o,n,i,a,r,s}(),Wa(),function(){return Ya?_a.exports:(Ya=1,_a.exports=(e=fa(),function(){var t=e,o=t.lib,n=o.WordArray,i=o.Hasher,a=t.algo,r=n.create([0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,7,4,13,1,10,6,15,3,12,0,9,5,2,14,11,8,3,10,14,4,9,15,8,1,2,7,0,6,13,11,5,12,1,9,11,10,0,8,12,4,13,3,7,15,14,5,6,2,4,0,5,9,7,12,2,10,14,1,3,8,11,6,15,13]),s=n.create([5,14,7,0,9,2,11,4,13,6,15,8,1,10,3,12,6,11,3,7,0,13,5,10,14,15,8,12,4,9,1,2,15,5,1,3,7,14,6,9,11,8,12,2,10,0,4,13,8,6,4,1,3,11,15,0,5,12,2,13,9,7,10,14,12,15,10,4,1,5,8,7,6,2,13,14,0,3,9,11]),l=n.create([11,14,15,12,5,8,7,9,11,13,14,15,6,7,9,8,7,6,8,13,11,9,7,15,7,12,15,9,11,7,13,12,11,13,6,7,14,9,13,15,14,8,13,6,5,12,7,5,11,12,14,15,14,15,9,8,9,14,5,6,8,6,5,12,9,15,5,11,6,8,13,12,5,12,13,14,11,8,5,6]),c=n.create([8,9,9,11,13,15,15,5,7,7,8,11,14,14,12,6,9,13,15,7,12,8,9,11,7,7,12,7,6,15,13,11,9,7,15,11,8,6,6,14,12,13,5,14,13,13,7,5,15,5,8,11,14,14,6,14,6,9,12,9,12,5,15,8,8,5,12,9,12,5,14,6,8,13,6,5,15,13,11,11]),u=n.create([0,1518500249,1859775393,2400959708,2840853838]),d=n.create([1352829926,1548603684,1836072691,2053994217,0]),h=a.RIPEMD160=i.extend({_doReset:function(){this._hash=n.create([1732584193,4023233417,2562383102,271733878,3285377520])},_doProcessBlock:function(e,t){for(var o=0;o<16;o++){var n=t+o,i=e[n];e[n]=16711935&(i<<8|i>>>24)|4278255360&(i<<24|i>>>8)}var a,h,y,C,w,E,b,I,B,k,S,x=this._hash.words,R=u.words,T=d.words,F=r.words,Q=s.words,L=l.words,P=c.words;for(E=a=x[0],b=h=x[1],I=y=x[2],B=C=x[3],k=w=x[4],o=0;o<80;o+=1)S=a+e[t+F[o]]|0,S+=o<16?p(h,y,C)+R[0]:o<32?f(h,y,C)+R[1]:o<48?m(h,y,C)+R[2]:o<64?g(h,y,C)+R[3]:v(h,y,C)+R[4],S=(S=A(S|=0,L[o]))+w|0,a=w,w=C,C=A(y,10),y=h,h=S,S=E+e[t+Q[o]]|0,S+=o<16?v(b,I,B)+T[0]:o<32?g(b,I,B)+T[1]:o<48?m(b,I,B)+T[2]:o<64?f(b,I,B)+T[3]:p(b,I,B)+T[4],S=(S=A(S|=0,P[o]))+k|0,E=k,k=B,B=A(I,10),I=b,b=S;S=x[1]+y+B|0,x[1]=x[2]+C+k|0,x[2]=x[3]+w+E|0,x[3]=x[4]+a+b|0,x[4]=x[0]+h+I|0,x[0]=S},_doFinalize:function(){var e=this._data,t=e.words,o=8*this._nDataBytes,n=8*e.sigBytes;t[n>>>5]|=128<<24-n%32,t[14+(n+64>>>9<<4)]=16711935&(o<<8|o>>>24)|4278255360&(o<<24|o>>>8),e.sigBytes=4*(t.length+1),this._process();for(var i=this._hash,a=i.words,r=0;r<5;r++){var s=a[r];a[r]=16711935&(s<<8|s>>>24)|4278255360&(s<<24|s>>>8)}return i},clone:function(){var e=i.clone.call(this);return e._hash=this._hash.clone(),e}});function p(e,t,o){return e^t^o}function f(e,t,o){return e&t|~e&o}function m(e,t,o){return(e|~t)^o}function g(e,t,o){return e&o|t&~o}function v(e,t,o){return e^(t|~o)}function A(e,t){return e<<t|e>>>32-t}t.RIPEMD160=i._createHelper(h),t.HmacRIPEMD160=i._createHmacHelper(h)}(),e.RIPEMD160));var e}(),$a(),function(){return er?tr.exports:(er=1,tr.exports=(l=fa(),Da(),$a(),t=(e=l).lib,o=t.Base,n=t.WordArray,i=e.algo,a=i.SHA256,r=i.HMAC,s=i.PBKDF2=o.extend({cfg:o.extend({keySize:4,hasher:a,iterations:25e4}),init:function(e){this.cfg=this.cfg.extend(e)},compute:function(e,t){for(var o=this.cfg,i=r.create(o.hasher,e),a=n.create(),s=n.create([1]),l=a.words,c=s.words,u=o.keySize,d=o.iterations;l.length<u;){var h=i.update(t).finalize(s);i.reset();for(var p=h.words,f=p.length,m=h,g=1;g<d;g++){m=i.finalize(m),i.reset();for(var v=m.words,A=0;A<f;A++)p[A]^=v[A]}a.concat(h),c[0]++}return a.sigBytes=4*u,a}}),e.PBKDF2=function(e,t,o){return s.create(o).compute(e,t)},l.PBKDF2));var e,t,o,n,i,a,r,s,l}(),ir(),sr(),function(){return lr?cr.exports:(lr=1,cr.exports=(e=fa(),sr(),e.mode.CFB=function(){var t=e.lib.BlockCipherMode.extend();function o(e,t,o,n){var i,a=this._iv;a?(i=a.slice(0),this._iv=void 0):i=this._prevBlock,n.encryptBlock(i,0);for(var r=0;r<o;r++)e[t+r]^=i[r]}return t.Encryptor=t.extend({processBlock:function(e,t){var n=this._cipher,i=n.blockSize;o.call(this,e,t,i,n),this._prevBlock=e.slice(t,t+i)}}),t.Decryptor=t.extend({processBlock:function(e,t){var n=this._cipher,i=n.blockSize,a=e.slice(t,t+i);o.call(this,e,t,i,n),this._prevBlock=a}}),t}(),e.mode.CFB));var e}(),function(){return ur?dr.exports:(ur=1,dr.exports=(o=fa(),sr(),o.mode.CTR=(e=o.lib.BlockCipherMode.extend(),t=e.Encryptor=e.extend({processBlock:function(e,t){var o=this._cipher,n=o.blockSize,i=this._iv,a=this._counter;i&&(a=this._counter=i.slice(0),this._iv=void 0);var r=a.slice(0);o.encryptBlock(r,0),a[n-1]=a[n-1]+1|0;for(var s=0;s<n;s++)e[t+s]^=r[s]}}),e.Decryptor=t,e),o.mode.CTR));var e,t,o}(),fr(),function(){return mr?gr.exports:(mr=1,gr.exports=(o=fa(),sr(),o.mode.OFB=(e=o.lib.BlockCipherMode.extend(),t=e.Encryptor=e.extend({processBlock:function(e,t){var o=this._cipher,n=o.blockSize,i=this._iv,a=this._keystream;i&&(a=this._keystream=i.slice(0),this._iv=void 0),o.encryptBlock(a,0);for(var r=0;r<n;r++)e[t+r]^=a[r]}}),e.Decryptor=t,e),o.mode.OFB));var e,t,o}(),function(){return vr?Ar.exports:(vr=1,Ar.exports=(t=fa(),sr(),t.mode.ECB=((e=t.lib.BlockCipherMode.extend()).Encryptor=e.extend({processBlock:function(e,t){this._cipher.encryptBlock(e,t)}}),e.Decryptor=e.extend({processBlock:function(e,t){this._cipher.decryptBlock(e,t)}}),e),t.mode.ECB));var e,t}(),function(){return yr?Cr.exports:(yr=1,Cr.exports=(e=fa(),sr(),e.pad.AnsiX923={pad:function(e,t){var o=e.sigBytes,n=4*t,i=n-o%n,a=o+i-1;e.clamp(),e.words[a>>>2]|=i<<24-a%4*8,e.sigBytes+=i},unpad:function(e){var t=255&e.words[e.sigBytes-1>>>2];e.sigBytes-=t}},e.pad.Ansix923));var e}(),function(){return wr?Er.exports:(wr=1,Er.exports=(e=fa(),sr(),e.pad.Iso10126={pad:function(t,o){var n=4*o,i=n-t.sigBytes%n;t.concat(e.lib.WordArray.random(i-1)).concat(e.lib.WordArray.create([i<<24],1))},unpad:function(e){var t=255&e.words[e.sigBytes-1>>>2];e.sigBytes-=t}},e.pad.Iso10126));var e}(),function(){return br?Ir.exports:(br=1,Ir.exports=(e=fa(),sr(),e.pad.Iso97971={pad:function(t,o){t.concat(e.lib.WordArray.create([2147483648],1)),e.pad.ZeroPadding.pad(t,o)},unpad:function(t){e.pad.ZeroPadding.unpad(t),t.sigBytes--}},e.pad.Iso97971));var e}(),function(){return Br?kr.exports:(Br=1,kr.exports=(e=fa(),sr(),e.pad.ZeroPadding={pad:function(e,t){var o=4*t;e.clamp(),e.sigBytes+=o-(e.sigBytes%o||o)},unpad:function(e){var t=e.words,o=e.sigBytes-1;for(o=e.sigBytes-1;o>=0;o--)if(t[o>>>2]>>>24-o%4*8&255){e.sigBytes=o+1;break}}},e.pad.ZeroPadding));var e}(),function(){return Sr?xr.exports:(Sr=1,xr.exports=(e=fa(),sr(),e.pad.NoPadding={pad:function(){},unpad:function(){}},e.pad.NoPadding));var e}(),function(){return Rr?Tr.exports:(Rr=1,Tr.exports=(n=fa(),sr(),t=(e=n).lib.CipherParams,o=e.enc.Hex,e.format.Hex={stringify:function(e){return e.ciphertext.toString(o)},parse:function(e){var n=o.parse(e);return t.create({ciphertext:n})}},n.format.Hex));var e,t,o,n}(),function(){return Fr?Qr.exports:(Fr=1,Qr.exports=(e=fa(),ka(),Qa(),ir(),sr(),function(){var t=e,o=t.lib.BlockCipher,n=t.algo,i=[],a=[],r=[],s=[],l=[],c=[],u=[],d=[],h=[],p=[];!function(){for(var e=[],t=0;t<256;t++)e[t]=t<128?t<<1:t<<1^283;var o=0,n=0;for(t=0;t<256;t++){var f=n^n<<1^n<<2^n<<3^n<<4;f=f>>>8^255&f^99,i[o]=f,a[f]=o;var m=e[o],g=e[m],v=e[g],A=257*e[f]^16843008*f;r[o]=A<<24|A>>>8,s[o]=A<<16|A>>>16,l[o]=A<<8|A>>>24,c[o]=A,A=16843009*v^65537*g^257*m^16843008*o,u[f]=A<<24|A>>>8,d[f]=A<<16|A>>>16,h[f]=A<<8|A>>>24,p[f]=A,o?(o=m^e[e[e[v^m]]],n^=e[e[n]]):o=n=1}}();var f=[0,1,2,4,8,16,32,64,128,27,54],m=n.AES=o.extend({_doReset:function(){if(!this._nRounds||this._keyPriorReset!==this._key){for(var e=this._keyPriorReset=this._key,t=e.words,o=e.sigBytes/4,n=4*((this._nRounds=o+6)+1),a=this._keySchedule=[],r=0;r<n;r++)r<o?a[r]=t[r]:(c=a[r-1],r%o?o>6&&r%o==4&&(c=i[c>>>24]<<24|i[c>>>16&255]<<16|i[c>>>8&255]<<8|i[255&c]):(c=i[(c=c<<8|c>>>24)>>>24]<<24|i[c>>>16&255]<<16|i[c>>>8&255]<<8|i[255&c],c^=f[r/o|0]<<24),a[r]=a[r-o]^c);for(var s=this._invKeySchedule=[],l=0;l<n;l++){if(r=n-l,l%4)var c=a[r];else c=a[r-4];s[l]=l<4||r<=4?c:u[i[c>>>24]]^d[i[c>>>16&255]]^h[i[c>>>8&255]]^p[i[255&c]]}}},encryptBlock:function(e,t){this._doCryptBlock(e,t,this._keySchedule,r,s,l,c,i)},decryptBlock:function(e,t){var o=e[t+1];e[t+1]=e[t+3],e[t+3]=o,this._doCryptBlock(e,t,this._invKeySchedule,u,d,h,p,a),o=e[t+1],e[t+1]=e[t+3],e[t+3]=o},_doCryptBlock:function(e,t,o,n,i,a,r,s){for(var l=this._nRounds,c=e[t]^o[0],u=e[t+1]^o[1],d=e[t+2]^o[2],h=e[t+3]^o[3],p=4,f=1;f<l;f++){var m=n[c>>>24]^i[u>>>16&255]^a[d>>>8&255]^r[255&h]^o[p++],g=n[u>>>24]^i[d>>>16&255]^a[h>>>8&255]^r[255&c]^o[p++],v=n[d>>>24]^i[h>>>16&255]^a[c>>>8&255]^r[255&u]^o[p++],A=n[h>>>24]^i[c>>>16&255]^a[u>>>8&255]^r[255&d]^o[p++];c=m,u=g,d=v,h=A}m=(s[c>>>24]<<24|s[u>>>16&255]<<16|s[d>>>8&255]<<8|s[255&h])^o[p++],g=(s[u>>>24]<<24|s[d>>>16&255]<<16|s[h>>>8&255]<<8|s[255&c])^o[p++],v=(s[d>>>24]<<24|s[h>>>16&255]<<16|s[c>>>8&255]<<8|s[255&u])^o[p++],A=(s[h>>>24]<<24|s[c>>>16&255]<<16|s[u>>>8&255]<<8|s[255&d])^o[p++],e[t]=m,e[t+1]=g,e[t+2]=v,e[t+3]=A},keySize:8});t.AES=o._createHelper(m)}(),e.AES));var e}(),Nr(),function(){return Ur?Vr.exports:(Ur=1,Vr.exports=(e=fa(),ka(),Qa(),ir(),sr(),function(){var t=e,o=t.lib.StreamCipher,n=t.algo,i=n.RC4=o.extend({_doReset:function(){for(var e=this._key,t=e.words,o=e.sigBytes,n=this._S=[],i=0;i<256;i++)n[i]=i;i=0;for(var a=0;i<256;i++){var r=i%o,s=t[r>>>2]>>>24-r%4*8&255;a=(a+n[i]+s)%256;var l=n[i];n[i]=n[a],n[a]=l}this._i=this._j=0},_doProcessBlock:function(e,t){e[t]^=a.call(this)},keySize:8,ivSize:0});function a(){for(var e=this._S,t=this._i,o=this._j,n=0,i=0;i<4;i++){o=(o+e[t=(t+1)%256])%256;var a=e[t];e[t]=e[o],e[o]=a,n|=e[(e[t]+e[o])%256]<<24-8*i}return this._i=t,this._j=o,n}t.RC4=o._createHelper(i);var r=n.RC4Drop=i.extend({cfg:i.cfg.extend({drop:192}),_doReset:function(){i._doReset.call(this);for(var e=this.cfg.drop;e>0;e--)a.call(this)}});t.RC4Drop=o._createHelper(r)}(),e.RC4));var e}(),function(){return Dr?Mr.exports:(Dr=1,Mr.exports=(e=fa(),ka(),Qa(),ir(),sr(),function(){var t=e,o=t.lib.StreamCipher,n=t.algo,i=[],a=[],r=[],s=n.Rabbit=o.extend({_doReset:function(){for(var e=this._key.words,t=this.cfg.iv,o=0;o<4;o++)e[o]=16711935&(e[o]<<8|e[o]>>>24)|4278255360&(e[o]<<24|e[o]>>>8);var n=this._X=[e[0],e[3]<<16|e[2]>>>16,e[1],e[0]<<16|e[3]>>>16,e[2],e[1]<<16|e[0]>>>16,e[3],e[2]<<16|e[1]>>>16],i=this._C=[e[2]<<16|e[2]>>>16,4294901760&e[0]|65535&e[1],e[3]<<16|e[3]>>>16,4294901760&e[1]|65535&e[2],e[0]<<16|e[0]>>>16,4294901760&e[2]|65535&e[3],e[1]<<16|e[1]>>>16,4294901760&e[3]|65535&e[0]];for(this._b=0,o=0;o<4;o++)l.call(this);for(o=0;o<8;o++)i[o]^=n[o+4&7];if(t){var a=t.words,r=a[0],s=a[1],c=16711935&(r<<8|r>>>24)|4278255360&(r<<24|r>>>8),u=16711935&(s<<8|s>>>24)|4278255360&(s<<24|s>>>8),d=c>>>16|4294901760&u,h=u<<16|65535&c;for(i[0]^=c,i[1]^=d,i[2]^=u,i[3]^=h,i[4]^=c,i[5]^=d,i[6]^=u,i[7]^=h,o=0;o<4;o++)l.call(this)}},_doProcessBlock:function(e,t){var o=this._X;l.call(this),i[0]=o[0]^o[5]>>>16^o[3]<<16,i[1]=o[2]^o[7]>>>16^o[5]<<16,i[2]=o[4]^o[1]>>>16^o[7]<<16,i[3]=o[6]^o[3]>>>16^o[1]<<16;for(var n=0;n<4;n++)i[n]=16711935&(i[n]<<8|i[n]>>>24)|4278255360&(i[n]<<24|i[n]>>>8),e[t+n]^=i[n]},blockSize:4,ivSize:2});function l(){for(var e=this._X,t=this._C,o=0;o<8;o++)a[o]=t[o];for(t[0]=t[0]+1295307597+this._b|0,t[1]=t[1]+3545052371+(t[0]>>>0<a[0]>>>0?1:0)|0,t[2]=t[2]+886263092+(t[1]>>>0<a[1]>>>0?1:0)|0,t[3]=t[3]+1295307597+(t[2]>>>0<a[2]>>>0?1:0)|0,t[4]=t[4]+3545052371+(t[3]>>>0<a[3]>>>0?1:0)|0,t[5]=t[5]+886263092+(t[4]>>>0<a[4]>>>0?1:0)|0,t[6]=t[6]+1295307597+(t[5]>>>0<a[5]>>>0?1:0)|0,t[7]=t[7]+3545052371+(t[6]>>>0<a[6]>>>0?1:0)|0,this._b=t[7]>>>0<a[7]>>>0?1:0,o=0;o<8;o++){var n=e[o]+t[o],i=65535&n,s=n>>>16,l=((i*i>>>17)+i*s>>>15)+s*s,c=((4294901760&n)*n|0)+((65535&n)*n|0);r[o]=l^c}e[0]=r[0]+(r[7]<<16|r[7]>>>16)+(r[6]<<16|r[6]>>>16)|0,e[1]=r[1]+(r[0]<<8|r[0]>>>24)+r[7]|0,e[2]=r[2]+(r[1]<<16|r[1]>>>16)+(r[0]<<16|r[0]>>>16)|0,e[3]=r[3]+(r[2]<<8|r[2]>>>24)+r[1]|0,e[4]=r[4]+(r[3]<<16|r[3]>>>16)+(r[2]<<16|r[2]>>>16)|0,e[5]=r[5]+(r[4]<<8|r[4]>>>24)+r[3]|0,e[6]=r[6]+(r[5]<<16|r[5]>>>16)+(r[4]<<16|r[4]>>>16)|0,e[7]=r[7]+(r[6]<<8|r[6]>>>24)+r[5]|0}t.Rabbit=o._createHelper(s)}(),e.Rabbit));var e}(),function(){return Or?Jr.exports:(Or=1,Jr.exports=(e=fa(),ka(),Qa(),ir(),sr(),function(){var t=e,o=t.lib.StreamCipher,n=t.algo,i=[],a=[],r=[],s=n.RabbitLegacy=o.extend({_doReset:function(){var e=this._key.words,t=this.cfg.iv,o=this._X=[e[0],e[3]<<16|e[2]>>>16,e[1],e[0]<<16|e[3]>>>16,e[2],e[1]<<16|e[0]>>>16,e[3],e[2]<<16|e[1]>>>16],n=this._C=[e[2]<<16|e[2]>>>16,4294901760&e[0]|65535&e[1],e[3]<<16|e[3]>>>16,4294901760&e[1]|65535&e[2],e[0]<<16|e[0]>>>16,4294901760&e[2]|65535&e[3],e[1]<<16|e[1]>>>16,4294901760&e[3]|65535&e[0]];this._b=0;for(var i=0;i<4;i++)l.call(this);for(i=0;i<8;i++)n[i]^=o[i+4&7];if(t){var a=t.words,r=a[0],s=a[1],c=16711935&(r<<8|r>>>24)|4278255360&(r<<24|r>>>8),u=16711935&(s<<8|s>>>24)|4278255360&(s<<24|s>>>8),d=c>>>16|4294901760&u,h=u<<16|65535&c;for(n[0]^=c,n[1]^=d,n[2]^=u,n[3]^=h,n[4]^=c,n[5]^=d,n[6]^=u,n[7]^=h,i=0;i<4;i++)l.call(this)}},_doProcessBlock:function(e,t){var o=this._X;l.call(this),i[0]=o[0]^o[5]>>>16^o[3]<<16,i[1]=o[2]^o[7]>>>16^o[5]<<16,i[2]=o[4]^o[1]>>>16^o[7]<<16,i[3]=o[6]^o[3]>>>16^o[1]<<16;for(var n=0;n<4;n++)i[n]=16711935&(i[n]<<8|i[n]>>>24)|4278255360&(i[n]<<24|i[n]>>>8),e[t+n]^=i[n]},blockSize:4,ivSize:2});function l(){for(var e=this._X,t=this._C,o=0;o<8;o++)a[o]=t[o];for(t[0]=t[0]+1295307597+this._b|0,t[1]=t[1]+3545052371+(t[0]>>>0<a[0]>>>0?1:0)|0,t[2]=t[2]+886263092+(t[1]>>>0<a[1]>>>0?1:0)|0,t[3]=t[3]+1295307597+(t[2]>>>0<a[2]>>>0?1:0)|0,t[4]=t[4]+3545052371+(t[3]>>>0<a[3]>>>0?1:0)|0,t[5]=t[5]+886263092+(t[4]>>>0<a[4]>>>0?1:0)|0,t[6]=t[6]+1295307597+(t[5]>>>0<a[5]>>>0?1:0)|0,t[7]=t[7]+3545052371+(t[6]>>>0<a[6]>>>0?1:0)|0,this._b=t[7]>>>0<a[7]>>>0?1:0,o=0;o<8;o++){var n=e[o]+t[o],i=65535&n,s=n>>>16,l=((i*i>>>17)+i*s>>>15)+s*s,c=((4294901760&n)*n|0)+((65535&n)*n|0);r[o]=l^c}e[0]=r[0]+(r[7]<<16|r[7]>>>16)+(r[6]<<16|r[6]>>>16)|0,e[1]=r[1]+(r[0]<<8|r[0]>>>24)+r[7]|0,e[2]=r[2]+(r[1]<<16|r[1]>>>16)+(r[0]<<16|r[0]>>>16)|0,e[3]=r[3]+(r[2]<<8|r[2]>>>24)+r[1]|0,e[4]=r[4]+(r[3]<<16|r[3]>>>16)+(r[2]<<16|r[2]>>>16)|0,e[5]=r[5]+(r[4]<<8|r[4]>>>24)+r[3]|0,e[6]=r[6]+(r[5]<<16|r[5]>>>16)+(r[4]<<16|r[4]>>>16)|0,e[7]=r[7]+(r[6]<<8|r[6]>>>24)+r[5]|0}t.RabbitLegacy=o._createHelper(s)}(),e.RabbitLegacy));var e}(),Hr()));const $r=/* @__PURE__ */la(Xr);const es={name:"JcVerifySlide",props:{visible:{type:Boolean,default:!1},captchaType:{type:String,default:"blockPuzzle"},mode:{type:String,default:"pop"},vSpace:{type:Number,default:30},explain:{type:String,default:""},lang:{type:String,default:""},imgSize:{type:Object,default:()=>({width:"310px",height:"155px"})},barSize:{type:Object,default:()=>({width:"310px",height:"40px"})},defaultImg:{type:String,default:""}},data:()=>({secretKey:"",passFlag:!1,backImgBase:"",blockBackImgBase:"",backToken:"",startMoveTime:0,endMoveTime:0,startLeft:0,tipWords:"",finishText:"",setSize:{imgHeight:"155px",imgWidth:"340px"},moveBlockLeft:"0px",leftBarWidth:"40px",moveBlockBackgroundColor:"#fff",leftBarBorderColor:"#e4e7eb",iconColor:"#4b4b4b",iconClass:"icon-right",status:!1,isEnd:!1,showRefresh:!0,transitionLeft:"",transitionWidth:"",currentBarHeight:40,loading:!0,isNeedShow:!1}),computed:{isEn(){if(this.lang)return"en"===this.lang||"en-US"===this.lang;try{if("function"==typeof useCookie){const e=useCookie("jc-language")?.value;if(e)return/^en(-US)?$/.test(e)}}catch(e){}if("undefined"!=typeof document){const e=document.cookie||"";return/(^|;\s*)jc-language=en(-US)?(;|$)/.test(e)}try{if("function"==typeof useNuxtApp){const e=useNuxtApp();return/(^|;\s*)jc-language=en(-US)?(;|$)/.test(e?.ssrContext?.event?.node?.req?.headers?.cookie||"")}}catch(e){}return!1},showBox(){return"pop"!==this.mode||this.visible&&this.isNeedShow},barExplain(){return this.isEnd?"":this.isEn?"Swipe right to complete the picture puzzle":this.explain||"向右滑动完成验证"},subBlockStyle(){const e=-(parseInt(this.setSize.imgHeight)+this.vSpace+1);return{width:Math.floor(47*parseInt(this.setSize.imgWidth)/340)+"px",height:this.setSize.imgHeight,top:e+"px",backgroundSize:this.setSize.imgWidth+" "+this.setSize.imgHeight}}},watch:{visible(e){e?(this.isNeedShow=!1,this.$nextTick(()=>{this.handleResize(),this.refresh()})):this.isNeedShow=!1}},mounted(){this.initUuid(),this.handleResize(),window.addEventListener("resize",this.handleResize),window.addEventListener("touchmove",this.move,{passive:!1}),window.addEventListener("mousemove",this.move),window.addEventListener("touchend",this.end),window.addEventListener("mouseup",this.end)},beforeUnmount(){window.removeEventListener("resize",this.handleResize),window.removeEventListener("touchmove",this.move,{passive:!1}),window.removeEventListener("mousemove",this.move),window.removeEventListener("touchend",this.end),window.removeEventListener("mouseup",this.end)},methods:{handleImageLoaded(){this.loading=!1},initUuid(){localStorage.getItem("slider")||localStorage.setItem("slider","slider-"+((e=21)=>{let t="",o=crypto.getRandomValues(new Uint8Array(e|=0));for(;e--;)t+="useandom-26T198340PX75pxJACKVERYMINDBUSHWOLF_GQZbfghjklqvwyzrict"[63&o[e]];return t})())},aesEncrypt(e,t="XwKsGlMcdPMEhR1B"){const o=$r.enc.Utf8.parse(t),n=$r.enc.Utf8.parse(e);return $r.AES.encrypt(n,o,{mode:$r.mode.ECB,padding:$r.pad.Pkcs7}).toString()},handleResize(){const e=window.innerWidth;let t=340;e<400?(t=e-60,this.currentBarHeight=44):(t=340,this.currentBarHeight=40),this.setSize.imgWidth=t+"px",this.setSize.imgHeight=t/2+"px",this.leftBarWidth=this.currentBarHeight+"px"},start(e){if(this.isEnd)return;const t=e||window.event,o=t.touches?t.touches[0].pageX:t.clientX,n=this.$refs.barArea;this.startLeft=Math.floor(o-n.getBoundingClientRect().left),this.startMoveTime=Date.now(),this.status=!0,this.transitionLeft="",this.transitionWidth="",this.moveBlockBackgroundColor="#1890ff",this.iconColor="#fff"},move(e){if(!this.status||this.isEnd)return;const t=e||window.event,o=t.touches?t.touches[0].pageX:t.clientX,n=this.$refs.barArea;let i=o-n.getBoundingClientRect().left-this.startLeft;const a=n.offsetWidth-this.currentBarHeight;i<=0&&(i=0),i>=a&&(i=a),this.moveBlockLeft=i+"px",this.leftBarWidth=i+this.currentBarHeight+"px",t.cancelable&&t.preventDefault()},end(){if(!this.status||this.isEnd)return;this.status=!1,this.endMoveTime=Date.now();let e=parseInt(this.moveBlockLeft.replace("px",""));e=310*e/parseInt(this.setSize.imgWidth);const t={pointJson:this.secretKey?this.aesEncrypt(JSON.stringify({x:e,y:5}),this.secretKey):JSON.stringify({x:e,y:5}),uuid:this.backToken};H(t).then(e=>{0===e.data.code?this.handleSuccess(e):this.handleError()}).catch(()=>this.handleError())},handleSuccess(e){this.endMoveTime,this.startMoveTime,this.moveBlockBackgroundColor="#52c41a",this.iconClass="icon-check",this.isEnd=!0,this.passFlag=!0,this.tipWords=`${((this.endMoveTime-this.startMoveTime)/1e3).toFixed(2)}s `+(this.isEn?"verified successfully":"验证成功"),setTimeout(()=>{this.closeBox(),this.$emit("success",{uuid:e.data.data.uuid,code:e.data.data.code})},800)},handleError(){this.moveBlockBackgroundColor="#ff4d4f",this.iconClass="icon-close",this.passFlag=!1,this.tipWords=this.isEn?"verification failed":"验证失败",setTimeout(()=>{this.refresh(),this.tipWords=""},1e3)},refresh(){this.loading=!0,this.transitionLeft="left 0.3s",this.transitionWidth="width 0.3s",this.moveBlockLeft="0px",this.leftBarWidth=this.currentBarHeight+"px",this.moveBlockBackgroundColor="#fff",this.iconColor="#4b4b4b",this.iconClass="icon-right",this.isEnd=!1,this.tipWords="",this.getPicture()},getPicture(){this.loading=!0,z({clientUid:localStorage.getItem("slider"),ts:Date.now()}).then(e=>{if(0===e.data.code){if(!1===e.data.data.validate)return this.loading=!1,this.startMoveTime=Date.now(),this.endMoveTime=Date.now(),void this.handleSuccess(e);this.isNeedShow=!0,this.backImgBase=e.data.data.originalImageBase64,this.blockBackImgBase=e.data.data.jigsawImageBase64,this.backToken=e.data.data.uuid,this.secretKey=e.data.data.secretKey}else this.loading=!1,this.isNeedShow=!0}).catch(()=>{this.loading=!1,this.isNeedShow=!0})},closeBox(){this.$emit("update:visible",!1)}}},ts={key:0,class:"verify-box-top"},os={class:"verify-title"},ns={class:"captcha-wrapper",style:{position:"relative"}},is=["src"],as={key:0,class:"verify-loading"},rs={class:"loading-text"},ss={class:"verify-msg"},ls=["textContent"],cs=["src"];const us=/* @__PURE__ */Yo(es,[["render",function(e,t,o,n,i,a){return m((l(),s("div",{class:c("pop"===o.mode?"captcha-mask":"captcha-relative-wrapper")},[u("div",{class:c("pop"===o.mode?"verify-box":""),style:w({width:"pop"===o.mode?i.setSize.imgWidth+"40px":"100%","max-width":"100%"})},["pop"===o.mode?(l(),s("div",ts,[u("span",os,A(a.isEn?"please finish the security verification":"请完成安全验证"),1),u("span",{class:"verify-box-close",onClick:t[0]||(t[0]=(...e)=>a.closeBox&&a.closeBox(...e))}," × ")])):f("",!0),u("div",{class:"verify-box-bottom",style:w({padding:"pop"===o.mode?"15px":"0"})},[u("div",ns,["blockPuzzle"===o.captchaType?(l(),s("div",{key:0,class:"verify-img-out",style:w({height:parseInt(i.setSize.imgHeight)+o.vSpace+"px"})},[u("div",{class:"verify-img-panel",style:w({width:i.setSize.imgWidth,height:i.setSize.imgHeight})},[u("img",{src:i.backImgBase?"data:image/png;base64,"+i.backImgBase:o.defaultImg,alt:"captcha",class:"main-img",onLoad:t[1]||(t[1]=(...e)=>a.handleImageLoaded&&a.handleImageLoaded(...e))},null,40,is),i.loading?(l(),s("div",as,[t[5]||(t[5]=u("div",{class:"loading-icon"},null,-1)),u("p",rs,A(a.isEn?"Loading...":"加载中..."),1)])):f("",!0),m(u("div",{class:"verify-refresh",onClick:t[2]||(t[2]=(...e)=>a.refresh&&a.refresh(...e))},[...t[6]||(t[6]=[u("svg",{t:"1767753956986",class:"icon",viewBox:"0 0 1024 1024",version:"1.1",xmlns:"http://www.w3.org/2000/svg","p-id":"2523",width:"16",height:"16",fill:"#fff"},[u("path",{d:"M894.481158 505.727133c0 49.589418-9.711176 97.705276-28.867468 143.007041-18.501376 43.74634-44.98454 83.031065-78.712713 116.759237-33.728172 33.728172-73.012897 60.211337-116.759237 78.712713-45.311998 19.156292-93.417623 28.877701-143.007041 28.877701s-97.695043-9.721409-142.996808-28.877701c-43.756573-18.501376-83.031065-44.98454-116.76947-78.712713-33.728172-33.728172-60.211337-73.012897-78.712713-116.759237-19.156292-45.301765-28.867468-93.417623-28.867468-143.007041 0-49.579185 9.711176-97.695043 28.867468-142.996808 18.501376-43.74634 44.98454-83.031065 78.712713-116.759237 33.738405-33.728172 73.012897-60.211337 116.76947-78.712713 45.301765-19.166525 93.40739-28.877701 142.996808-28.877701 52.925397 0 104.008842 11.010775 151.827941 32.745798 46.192042 20.977777 86.909395 50.79692 121.016191 88.608084 4.389984 4.860704 8.646937 9.854439 12.781094 14.97097l0-136.263453c0-11.307533 9.168824-20.466124 20.466124-20.466124 11.307533 0 20.466124 9.15859 20.466124 20.466124l0 183.64253c0 5.433756-2.148943 10.632151-5.986341 14.46955-3.847631 3.837398-9.046027 5.996574-14.479783 5.996574l-183.64253-0.020466c-11.307533 0-20.466124-9.168824-20.466124-20.466124 0-11.307533 9.168824-20.466124 20.466124-20.466124l132.293025 0.020466c-3.960195-4.952802-8.063653-9.782807-12.289907-14.479783-30.320563-33.605376-66.514903-60.098773-107.549481-78.753645-42.467207-19.289322-87.850837-29.072129-134.902456-29.072129-87.195921 0-169.172981 33.9533-230.816946 95.597265-61.654198 61.654198-95.597265 143.621025-95.597265 230.816946s33.943067 169.172981 95.597265 230.816946c61.643965 61.654198 143.621025 95.607498 230.816946 95.607498s169.172981-33.9533 230.816946-95.607498c61.654198-61.643965 95.597265-143.621025 95.597265-230.816946 0-11.2973 9.168824-20.466124 20.466124-20.466124C885.322567 485.261009 894.481158 494.429833 894.481158 505.727133z","p-id":"2524"})],-1)])],512),[[k,i.showRefresh]]),h(Q,{name:"tips-fade"},{default:x(()=>[i.tipWords?(l(),s("div",{key:0,class:c(["verify-tips",i.passFlag?"suc-bg":"err-bg"])},A(i.tipWords),3)):f("",!0)]),_:1})],4)],4)):f("",!0),u("div",{class:"verify-bar-area",ref:"barArea",style:w({width:i.setSize.imgWidth,height:i.currentBarHeight+"px",lineHeight:i.currentBarHeight+"px"})},[u("span",ss,A(a.barExplain),1),u("div",{class:"verify-left-bar",style:w({width:i.leftBarWidth,height:i.currentBarHeight+"px",borderColor:i.leftBarBorderColor,transition:i.transitionWidth})},[u("span",{class:"verify-msg",textContent:A(i.finishText)},null,8,ls),u("div",{class:"verify-move-block",onMousedown:t[3]||(t[3]=(...e)=>a.start&&a.start(...e)),onTouchstart:t[4]||(t[4]=y((...e)=>a.start&&a.start(...e),["prevent"])),style:w({width:i.currentBarHeight+"px",height:i.currentBarHeight-2+"px",backgroundColor:i.moveBlockBackgroundColor,left:i.moveBlockLeft,transition:i.transitionLeft})},[u("i",{class:c(["verify-icon iconfont",i.iconClass]),style:w({color:i.iconColor})},null,6),"blockPuzzle"===o.captchaType?(l(),s("div",{key:0,class:"verify-sub-block",style:w(a.subBlockStyle)},[i.blockBackImgBase?(l(),s("img",{key:0,src:"data:image/png;base64,"+i.blockBackImgBase,class:"sub-img"},null,8,cs)):f("",!0)],4)):f("",!0)],36)],4)],4)])],4)],6)],2)),[[k,a.showBox]])}],["__scopeId","data-v-f67b3b9b"]]),ds=/* @__PURE__ */Object.freeze(/* @__PURE__ */Object.defineProperty({__proto__:null,default:us},Symbol.toStringTag,{value:"Module"})),hs={name:"CodeInput",components:{GoogleInput:Xi,JcFloatInput:aa,JcVerifySlide:us},props:{modelValue:String,placeholder:String,ready:{type:Boolean,default:!1},showIcon:{type:Boolean,default:!1},disabled:{type:Boolean,default:!1},duration:{type:Number,default:60},formTypeColor:{type:String,default:"1"},isEn:Boolean},emits:["update:modelValue","send"],data:()=>({isCounting:!1,countdown:0,timer:null,captchaVisible:!1}),computed:{statusClass(){return{1:"org",2:"lightBlue",4:"darkOrange"}[this.formTypeColor]||"darkBlue"},btnText(){return this.isCounting?`${this.countdown}s`:this.isEn?"Send Code":"发送验证码"}},methods:{handleSend(){!this.ready||this.isCounting||this.disabled||(this.captchaVisible=!0)},handleCaptchaSuccess(e){this.$emit("send",{captchaData:e,startTimer:this.startTimer})},startTimer(){this.isCounting||(this.isCounting=!0,this.countdown=this.duration,this.timer=setInterval(()=>{this.countdown--,this.countdown<=0&&this.stopTimer()},1e3))},stopTimer(){this.timer&&(clearInterval(this.timer),this.timer=null),this.isCounting=!1,this.countdown=0}},beforeUnmount(){this.stopTimer()}},ps={class:"code-input-container"};const fs=/* @__PURE__ */Yo(hs,[["render",function(e,t,o,n,i,a){const r=R("JcVerifySlide");return l(),s("div",ps,[(l(),d(L(o.showIcon?"JcFloatInput":"GoogleInput"),{"model-value":o.modelValue,"onUpdate:modelValue":t[1]||(t[1]=t=>e.$emit("update:modelValue",t)),label:o.placeholder,placeholder:o.placeholder,class:"verify-code-input",autocomplete:"off",maxlength:"6"},P({suffix:x(()=>[u("a",{class:c(["send-code-btn",[a.statusClass,{"is-disabled":o.disabled||i.isCounting||!o.ready}]]),onClick:t[0]||(t[0]=(...e)=>a.handleSend&&a.handleSend(...e))},[u("span",{class:c(i.isCounting||!o.ready?"disabled-color":"obtain-color")},A(a.btnText),3)],2)]),_:2},[o.showIcon?{name:"prefix",fn:x(()=>[t[3]||(t[3]=u("i",{class:"icon-verify"},null,-1))]),key:"0"}:void 0]),1032,["model-value","label","placeholder"])),h(r,{visible:i.captchaVisible,"onUpdate:visible":t[2]||(t[2]=e=>i.captchaVisible=e),"is-en":o.isEn,onSuccess:a.handleCaptchaSuccess},null,8,["visible","is-en","onSuccess"])])}],["__scopeId","data-v-1b364444"]]),ms=/* @__PURE__ */Object.freeze(/* @__PURE__ */Object.defineProperty({__proto__:null,default:fs},Symbol.toStringTag,{value:"Module"})),gs={class:"global-modal-header-custom"},vs={class:"global-modal-body-custom"},As={class:"global-modal-footer-custom"},ys=/* @__PURE__ */i({__name:"GlobalModal",setup(t){const n=e(),i=e(!1),a=e({city:"",company:"",email:"",phone:"",name:"",agreement:!1}),r=S({city:[{required:!0,message:"请输入所在地城市",trigger:"blur"}],company:[{required:!0,message:"请输入公司名称",trigger:"blur"}],email:[{required:!0,message:"请输入邮箱",trigger:"blur"},{type:"email",message:"请输入有效的邮箱地址",trigger:"blur"}],agreement:[{validator:(e,t,o)=>{t?o():o(new Error("请同意隐私政策"))},trigger:"change"}]}),s=()=>{i.value=!1,q.emit(K.Close,void 0),n.value?.resetFields()},c=async()=>{n.value&&await n.value.validate(e=>{e&&(q.emit(K.Submit,a.value),s(),a.value={city:"",company:"",email:"",phone:"",name:"",agreement:!1})})},p=e=>{i.value=!0};return o(()=>{q.on(K.Open,p)}),N(()=>{q.off(K.Open,p)}),(e,t)=>(l(),d(b(Ve),{modelValue:i.value,"onUpdate:modelValue":t[7]||(t[7]=e=>i.value=e),"before-close":s,"show-close":!1,"close-on-click-modal":!0,width:500,class:"global-modal-custom"},{header:x(()=>[u("div",gs,[t[9]||(t[9]=u("h2",null,"即刻链接全球货代",-1)),h(b(ze),{link:"",onClick:s,class:"close-button-custom","aria-label":"Close"},{default:x(()=>[...t[8]||(t[8]=[u("span",{style:{"font-size":"2rem"}},"×",-1)])]),_:1})])]),footer:x(()=>[u("div",As,[h(b(ze),{type:"primary",class:"submit-button-custom",onClick:c},{default:x(()=>[...t[11]||(t[11]=[B(" 加入会员 ",-1)])]),_:1})])]),default:x(()=>[u("div",vs,[h(b(De),{model:a.value,rules:r,ref_key:"formRef",ref:n,"label-position":"top",onSubmit:t[6]||(t[6]=y(()=>{},["prevent"]))},{default:x(()=>[h(b(Me),{gutter:20},{default:x(()=>[h(b(Oe),{span:12},{default:x(()=>[h(b(Je),{label:"所在地(城市)",prop:"city"},{default:x(()=>[h(b(Ue),{modelValue:a.value.city,"onUpdate:modelValue":t[0]||(t[0]=e=>a.value.city=e),placeholder:"请输入城市"},null,8,["modelValue"])]),_:1})]),_:1}),h(b(Oe),{span:12},{default:x(()=>[h(b(Je),{label:"公司名称",prop:"company"},{default:x(()=>[h(b(Ue),{modelValue:a.value.company,"onUpdate:modelValue":t[1]||(t[1]=e=>a.value.company=e),placeholder:"请输入公司名称"},null,8,["modelValue"])]),_:1})]),_:1})]),_:1}),h(b(Me),{gutter:20},{default:x(()=>[h(b(Oe),{span:12},{default:x(()=>[h(b(Je),{label:"邮箱",prop:"email"},{default:x(()=>[h(b(Ue),{modelValue:a.value.email,"onUpdate:modelValue":t[2]||(t[2]=e=>a.value.email=e),placeholder:"请输入邮箱"},null,8,["modelValue"])]),_:1})]),_:1}),h(b(Oe),{span:12},{default:x(()=>[h(b(Je),{label:"电话",prop:"phone"},{default:x(()=>[h(b(Ue),{modelValue:a.value.phone,"onUpdate:modelValue":t[3]||(t[3]=e=>a.value.phone=e),placeholder:"请输入电话"},null,8,["modelValue"])]),_:1})]),_:1})]),_:1}),h(b(Me),null,{default:x(()=>[h(b(Oe),{span:24},{default:x(()=>[h(b(Je),{label:"姓名",prop:"name"},{default:x(()=>[h(b(Ue),{modelValue:a.value.name,"onUpdate:modelValue":t[4]||(t[4]=e=>a.value.name=e),placeholder:"请输入您的全名"},null,8,["modelValue"])]),_:1})]),_:1})]),_:1}),h(b(Je),{prop:"agreement",class:"agreement-item"},{default:x(()=>[h(b(je),{modelValue:a.value.agreement,"onUpdate:modelValue":t[5]||(t[5]=e=>a.value.agreement=e),label:"我同意"},null,8,["modelValue"]),t[10]||(t[10]=u("a",{href:"#",class:"privacy-link"},"隐私政策",-1))]),_:1})]),_:1},8,["model","rules"])])]),_:1},8,["modelValue"]))}}),Cs=/* @__PURE__ */Object.freeze(/* @__PURE__ */Object.defineProperty({__proto__:null,default:ys},Symbol.toStringTag,{value:"Module"})),ws={class:"jc:flex jc:items-center jc:justify-between"},Es={key:0,class:"jc:ml-2 jc:text-xs jc:text-gray-400"},bs={class:"jc:p-4 jc:text-sm jc:text-center jc:text-gray-500"},Is={key:0},Bs={key:1},ks=/* @__PURE__ */Yo(/* @__PURE__ */i({__name:"index",props:{modelValue:{type:[String,Number,Array],default:void 0},isEn:{type:Boolean,default:!1},type:{type:String,required:!0},lineType:{type:String,default:"shipping"},placeholder:{type:String,default:"请输入关键字搜索"},multiple:{type:Boolean,default:!1},defaultOptions:{type:Array,default:()=>[]}},emits:["update:modelValue","change","apply"],setup(o,{emit:n}){const i=o,a=n;((e="")=>{t(()=>{if(e)return"en"===e||"en-US"===e;try{if("function"==typeof useCookie){const e=useCookie("jc-language")?.value;if(e)return/^en(-US)?$/.test(e)}}catch(t){}if("undefined"!=typeof document){const e=document.cookie||"";return/(^|;\s*)jc-language=en(-US)?(;|$)/.test(e)}try{if("function"==typeof useNuxtApp){const e=useNuxtApp();return/(^|;\s*)jc-language=en(-US)?(;|$)/.test(e?.ssrContext?.event?.node?.req?.headers?.cookie||"")}}catch(t){}return!1})})();const c=e(),m=e(!1),y=e(""),C=e([]),w=e([]),E=t({get:()=>i.modelValue,set:e=>a("update:modelValue",e)}),I=t(()=>Ai([...C.value,...w.value,...i.defaultOptions],"id"));r(()=>i.modelValue,(e,t)=>{JSON.stringify(e)!==JSON.stringify(t)&&(async()=>{const e=i.modelValue;if(null==e||""===e)return;if(Array.isArray(e)&&0===e.length)return;const t=(Array.isArray(e)?e:[e]).filter(e=>!I.value.some(t=>String(t.id)===String(e)));if(0!==t.length)try{let e=[];if("Carrier"===i.type){const o=await O.carrier.getByIds(t,i.lineType);e=Array.isArray(o)?o:o.records||[]}else if("Line"===i.type){const o=await O.line.getByIds(t,i.lineType);e=Array.isArray(o)?o:o.records||[]}e.length>0&&(w.value=Ai([...w.value,...e],"id"))}catch(o){console.error("Fetch details by IDs failed:",o)}})()},{immediate:!0}),r(()=>i.defaultOptions,e=>{e&&e.length},{deep:!0});const k=gi(async e=>{try{const t={keyword:e,current:1,size:50};let o;o="Carrier"===i.type?await O.carrier.search(t,i.lineType):"Line"===i.type?await O.line.search(t,i.lineType):await O.searchByName({...t,displayInfo:[i.type]});const n=o.records||[];C.value=n}catch(t){console.error("Search failed:",t),C.value=[]}finally{m.value=!1}},300),S=e=>{if(y.value=e,!e||!e.trim())return m.value=!1,void(C.value=[]);m.value=!0,k(e)},R=e=>{let t;Array.isArray(e)?(t=I.value.filter(t=>e.includes(t.id)),t.length&&(w.value=Ai([...w.value,...t],"id"))):(t=I.value.find(t=>t.id===e),t&&(w.value=Ai([...w.value,t],"id"))),a("change",e,t)},T=e=>{e||(y.value="",C.value=[],m.value=!1)},F=()=>{C.value=[],y.value=""},Q=()=>{y.value&&J({reportData:y.value,reportType:i.type.toLocaleLowerCase()}),a("apply",y.value),c.value?.blur()};return(e,t)=>(l(),d(b(Pe),{ref_key:"selectRef",ref:c,modelValue:E.value,"onUpdate:modelValue":t[0]||(t[0]=e=>E.value=e),multiple:o.multiple,filterable:"",remote:"","reserve-keyword":"",clearable:"","value-key":"id",placeholder:o.placeholder,"remote-method":S,loading:m.value,class:"jc:w-full jc-carrier-search-comp",teleported:!1,onChange:R,onVisibleChange:T,onClear:F},P({empty:x(()=>[u("div",bs,[m.value?(l(),s("div",Is,"搜索中...")):(l(),s("div",Bs,[t[2]||(t[2]=u("p",null,"暂无结果",-1)),h(b(He),{type:"primary",underline:!1,class:"jc:mt-1 jc:text-xs",onClick:Q},{default:x(()=>[...t[1]||(t[1]=[B(" 申请补充数据 ",-1)])]),_:1})]))])]),default:x(()=>[(l(!0),s(g,null,v(I.value,t=>(l(),d(b(Ne),{key:t.id,label:t.display,value:t.id},{default:x(()=>[p(e.$slots,"option",{item:t},()=>[u("div",ws,[u("span",null,A(t.display),1),t.code?(l(),s("span",Es,A(t.code),1)):f("",!0)])],!0)]),_:2},1032,["label","value"]))),128))]),_:2},[e.$slots.prefix?{name:"prefix",fn:x(()=>[p(e.$slots,"prefix",{},void 0,!0)]),key:"0"}:void 0]),1032,["modelValue","multiple","placeholder","loading"]))}}),[["__scopeId","data-v-69e5ad55"]]),Ss=/* @__PURE__ */Object.freeze(/* @__PURE__ */Object.defineProperty({__proto__:null,default:ks},Symbol.toStringTag,{value:"Module"})),xs={class:"wrapper-container"},Rs={key:0,class:"wrapper-prepend"},Ts={class:"wrapper-main"},Fs={class:"wrapper-label"},Qs={key:1,class:"wrapper-append"};const Ls=/* @__PURE__ */Yo({name:"JcFloatWrapper",props:{label:{type:String,default:""}},data:()=>({internalFocus:!1}),computed:{isHavePrepend(){return!!this.$slots.prefix},isHaveAppend(){return!!this.$slots.suffix}},methods:{handleFocusIn(){this.internalFocus=!0,this.$emit("focus")},handleFocusOut(){this.internalFocus=!1,this.$emit("blur")}}},[["render",function(e,t,o,n,i,a){return l(),s("div",{class:c(["jc-float-wrapper",{"is-focus":i.internalFocus,"is-have-prepend":a.isHavePrepend}]),onFocusin:t[0]||(t[0]=(...e)=>a.handleFocusIn&&a.handleFocusIn(...e)),onFocusout:t[1]||(t[1]=(...e)=>a.handleFocusOut&&a.handleFocusOut(...e))},[u("div",xs,[a.isHavePrepend?(l(),s("div",Rs,[p(e.$slots,"prefix",{},void 0,!0)])):f("",!0),u("div",Ts,[p(e.$slots,"default",{},void 0,!0),u("p",Fs,A(o.label),1)]),a.isHaveAppend?(l(),s("div",Qs,[p(e.$slots,"suffix",{},void 0,!0)])):f("",!0)])],34)}],["__scopeId","data-v-f392be75"]]),Ps=/* @__PURE__ */Object.freeze(/* @__PURE__ */Object.defineProperty({__proto__:null,default:Ls},Symbol.toStringTag,{value:"Module"}));async function Ns(e,t,o,n=!0){if(!t||""===t.trim())return o(new Error(n?"Email address is required":"请输入您的邮箱"));if(!/^[a-zA-Z0-9._%+-]+@[a-zA-Z0-9.-]+\.[a-zA-Z]{2,}$/.test(t))return o(new Error(n?"Please enter a valid email address":"请输入有效的邮箱地址"));if(/[\u4e00-\u9fa5]+/.test(t))return o(new Error(n?"Please enter a valid email address":"请输入有效的邮箱地址"));if(/@(qq|vip.qq).com$/i.test(t))return o(new Error(n?"QQ email is not supported, please change other work email":"不支持QQ邮箱,请您更换其他工作邮箱"));try{const{data:e}=await G({target:t});if(console.log("🍉 ~ constant.ts:67 ~ validateUserEmail ~ data:",e),e.data)return o(new Error(n?"It's already occupied, please re-enter.":"已被占用,请重新输入"));o()}catch(i){o(new Error(n?"Validation failed, please re-enter.":"校验失败,请重新输入"))}}function Us(e,t,o,n=!0,i=!0){const a=/^[a-zA-Z\u4e00-\u9fa5\s.·•]+$/,r=/^[a-zA-Z\s.·•]+$/;if(!t){return o(new Error(i?n?"please enter your Chinese name":"请输入您的中文姓名":n?"Please enter your English name":"请输入您的英文姓名"))}if(i){if(t.length>50||!a.test(t))return o(new Error(n?"Only Chinese and English characters and symbols can be entered, with a maximum of 50 words.":"仅能输入中英文字符及符号,最多50个字"))}else if(t.length>50||!r.test(t))return o(new Error(n?"Only English characters and symbols can be entered, up to 50 words.":"仅能输入英文字符及符号,最多50个字"));o()}function Vs(e,t,o,n=!0){const i={empty:n?"The password cannot be empty. Please enter it":"密码不能为空,请重新输入",length:n?"The password must be at 6-20 characters only":"密码为6-20位字符",invalidChars:n?"6-20 characters include letters, numbers and symbols":"请输入6-20位字符,包含字母、数字和符号",complexity:n?"6-20 characters include letters, numbers and symbols":"请输入6-20位字符,包含字母、数字和符号"};if(null==t||""===t)return o(new Error(i.empty));if(t.length<6||t.length>20)return o(new Error(i.length));if(!/^[a-zA-Z0-9+.()&\\\-*/,#'":!?;%$`。()!@#¥%……&“”‘’:?》《,^——_\s\u3000\u0020\u00A0\n\r【】{}[\]|;~·]*$/.test(t))return o(new Error(i.invalidChars));const a=/^[a-zA-Z]*$/.test(t),r=/^[0-9]*$/.test(t),s=/^[+.()&\\\-*/,#'":!?;%$`。()!@#¥%……&“”‘’:?》《,^——_\s\u3000\u0020\u00A0\n\r【】{}[\]|;~·]*$/.test(t);if(a||r||s)return o(new Error(i.complexity));o()}async function Ds(e,t,o,n=!0){const i={empty:n?"Please enter your cell phone number":"请输入手机号",minLen:n?"please enter at least 2 characters.":"请输入至少 2 个字符.",invalid:n?"Invalid mobile address":"手机号格式错误",occupied:n?"It's already occupied, please re- enter.":"已被占用,请重新输入"};if(!t)return o(new Error(i.empty));if(!/^[0-9]*$/.test(t))return o(new Error(i.invalid));if(t.length<2)return o(new Error(i.minLen));try{const e=await G({target:t});if(console.log("🍉 ~ constant.ts:288 ~ validateUserMobilefive ~ res:",e),e&&e.data.data)return o(new Error(i.occupied));o()}catch(a){o(new Error(i.occupied))}}async function Ms(e,t,o,n=!0,i){const a=function(e){return e?e.replace(/^\s+/g,"").replace(/\s+$/g,"").replace(/\s{2,}/g," "):""}(t);console.log("🍉 ~ constant.ts:274 ~ validateCompanyName ~ nameValue:",a);const r=1==i.countryId;if(!a)return!r||"DDC"!==i.appId&&"JHB"!==i.appId?o(new Error(n?"please enter the full company name":"请输入公司名称")):o();if(a.length<2)return o(new Error(n?"please enter at least 2 characters.":"请输入至少 2 个字符."));if(a.length>200)return o(new Error(n?"please enter less than 200 characters.":"请输入少于 200 个字符."));if(!r){if(/[\u4e00-\u9fa5]/.test(a))return o(new Error(n?"Do not include Chinese characters in company name":"注册公司名不能有中文"));if(!/^[a-zA-Z0-9+.()&\\\-=*/,#'":!?;%$`@^——_\s]*$/.test(a))return o(new Error(n?"Wrong format for company name":"注册公司名格式错误"))}if(i.countryId&&i.cityId)try{const e={countryId:i.countryId,cityId:i.cityId,[r?"compNameCn":"compNameEn"]:a},t=await W(e);console.log("🍉 ~ constant.ts:347 ~ validateCompanyName ~ res:",t),t.data.data.result?"JCPAY"===i.appId?o(new Error(n?"The company already exists, please contact customer service":"公司名称已存在,请联系客服")):(r?i.companyResistCn=!0:i.companyResistEn=!0,i.resistCompanyInfo=t.data.data,o()):(r?i.companyResistCn=!1:i.companyResistEn=!1,o())}catch(s){const e=s?.toString().split(":")[1]||"API Error";o(new Error(e))}else o(new Error(n?"Please select a Country/Region":"请选择国家/地区"))}function Os(e,t,o,n=!0){return t?/^\d{4}$/.test(t)?void o():o(new Error(n?"Verification code must be 4 digits":"验证码必须为4位数字")):o(new Error(n?"Please enter the verification code":"请输入验证码"))}function Js(e="_blank"){const t=document.createElement("a");t.href="https://passport.jctrans.com/agreement",t.target=e;const o=new MouseEvent("click",{bubbles:!0,cancelable:!0,view:window});t.dispatchEvent(o)}function js(e="_blank"){const t=document.createElement("a");t.href="https://passport.jctrans.com/privacyPolicy",t.target=e;const o=new MouseEvent("click",{bubbles:!0,cancelable:!0,view:window});t.dispatchEvent(o)}const zs={class:"jc:text-xs jc:flex jc:mb-3 jc:-mt-3"},Hs={style:{color:"#f80"},class:"jc:text-xs"},qs=/* @__PURE__ */i({__name:"ApplyJoinBtn",props:{isEn:{type:Boolean,default:!1}},emits:["apply-join"],setup(e,{emit:o}){const n=e,i=o,a=t(()=>n.isEn?"The company already exists. Would you like to apply to ":"该公司已存在。您可申请加入。"),r=t(()=>n.isEn?"join in >>":"点击申请加入 >>"),c=()=>{i("apply-join")};return(e,t)=>(l(),s("div",zs,[u("p",Hs,[t[0]||(t[0]=u("i",{class:"el-icon-warning"},null,-1)),B(" "+A(a.value),1)]),u("p",{style:{color:"#3264ff",cursor:"pointer"},onClick:c},A(r.value),1)]))}});function Ks(e){for(var t=1;t<arguments.length;t++){var o=arguments[t];for(var n in o)e[n]=o[n]}return e}var Gs=function e(t,o){function n(e,n,i){if("undefined"!=typeof document){"number"==typeof(i=Ks({},o,i)).expires&&(i.expires=new Date(Date.now()+864e5*i.expires)),i.expires&&(i.expires=i.expires.toUTCString()),e=encodeURIComponent(e).replace(/%(2[346B]|5E|60|7C)/g,decodeURIComponent).replace(/[()]/g,escape);var a="";for(var r in i)i[r]&&(a+="; "+r,!0!==i[r]&&(a+="="+i[r].split(";")[0]));return document.cookie=e+"="+t.write(n,e)+a}}return Object.create({set:n,get:function(e){if("undefined"!=typeof document&&(!arguments.length||e)){for(var o=document.cookie?document.cookie.split("; "):[],n={},i=0;i<o.length;i++){var a=o[i].split("="),r=a.slice(1).join("=");try{var s=decodeURIComponent(a[0]);if(n[s]=t.read(r,s),e===s)break}catch(l){}}return e?n[e]:n}},remove:function(e,t){n(e,"",Ks({},t,{expires:-1}))},withAttributes:function(t){return e(this.converter,Ks({},this.attributes,t))},withConverter:function(t){return e(Ks({},this.converter,t),this.attributes)}},{attributes:{value:Object.freeze(o)},converter:{value:Object.freeze(t)}})}({read:function(e){return'"'===e[0]&&(e=e.slice(1,-1)),e.replace(/(%[\dA-F]{2})+/gi,decodeURIComponent)},write:function(e){return encodeURIComponent(e).replace(/%(2[346BF]|3[AC-F]|40|5[BDE]|60|7[BCD])/g,decodeURIComponent)}},{path:"/"});const Ws={name:"RegisterForm",components:{ElDialog:Ve,ElForm:De,ElFormItem:Je,ElInput:Ue,ElButton:ze,ElCheckbox:je,ElSelect:Pe,ElOption:Ne,ElRadioGroup:Ke,ElRadioButton:qe,JcFloatInput:aa,CodeInput:fs,JcFloatWrapper:Ls,JcSearch:_o,ChineseCompanySearch:qi,GoogleInput:Xi,ApplyJoinBtn:qs},props:{isEn:Boolean},emits:["to-login","register","need-complete"],computed:{isAgree(){return this.form.agree},countryId(){return this.form.city?.raw?.country?.id},cityId(){return this.form.city?.id},currentCountryIsChina(){const e=this.countryId||this.resistCompanyInfo?.countryId;return[1,75,71,100].includes(Number(e))},currentCompanyLabel(){return this.isEn?this.currentCountryIsChina?"Company Name in Chinese":"Company Name in English":this.currentCountryIsChina?"公司中文名称":"公司英文名称"}},data(){return{appId:"ERA",codeReady:!1,companyResistEn:!1,companyResistCn:!1,verifyData:{},form:{city:"",cityId:"",companyName:"",countryId:"",email:"",phone:"",code:"",password:"",sector:"Logistics",agree:!1,useKq:!1,kqCode:"",kqInfo:null,areaCode:"+86",nameCn:"",nameEn:""},sectors:[{cn:"货代",en:"Freight Forwarder",value:"Logistics"},{cn:"货主",en:"Trader",value:"Trade"},{cn:"衍生产品供应商",en:"Vendor",value:"Service"}],rules:{city:[{required:!0,message:this.isEn?"Please select a city":"请选择所在地",trigger:["change","blur"]}],companyName:[{required:!0,validator:(e,t,o)=>Ms(0,t,o,this.isEn,this),trigger:"blur"}],nameCn:[{required:!0,validator:(e,t,o)=>Us(0,t,o,this.isEn,!0),trigger:"blur"}],nameEn:[{required:!0,validator:(e,t,o)=>Us(0,t,o,this.isEn,!1),trigger:"blur"}],email:[{required:!0,validator:(e,t,o)=>Ns(0,t,o,this.isEn),trigger:"blur"}],phone:[{required:!0,validator:(e,t,o)=>Ds(0,t,o,this.isEn),trigger:"blur"}],code:[{required:!0,validator:(e,t,o)=>Os(0,t,o,this.isEn),trigger:"blur"}],password:[{required:!0,validator:(e,t,o)=>Vs(0,t,o,this.isEn),trigger:"blur"}],agree:[{validator:(e,t,o)=>t?o():o(new Error),trigger:"change"}]},isCounting:!1,areaCodeData:[],mobileUid:"",emailUid:"",hasResistCompany:!1,resistCompanyInfo:null,loading:!1}},mounted(){this.getAreaCodeData(),this.findDict(),this.inviteJoinGetComp()},methods:{go2Agreement:Js,getAuthSessionItems:Y,go2Policy:js,async inviteJoinGetComp(){const e=Y().compKey;if(!e)return;const{data:t}=await inviteJoinGetComp({key:e});this.hasResistCompany=!0,this.resistCompanyInfo=t.data},findDict(){ae({dictType:"cmc_company_industry_sector"}).then(e=>{const t=[{cn:"货代",en:"Freight Forwarder",value:"Logistics"},{cn:"货主",en:"Trader",value:"Trade"},{cn:"衍生产品供应商",en:"Vendor",value:"Service"}];this.sectors=e.data.data.records.map(e=>({...e,...t.find(t=>t.value===e.dictValue)}))}).catch(e=>{})},async getAreaCodeData(){const e=await ie();this.areaCodeData=e.data.data.records},handleSelectCity(e){this.form.cityId=e.id,this.form.countryId=e.raw?.country?.id,this.$nextTick(()=>{this.form.companyName&&this.$refs.registerFormRef.validateField("companyName"),this.$refs.registerFormRef.validateField("city")})},validateField(e){this.$refs.registerFormRef&&this.$refs.registerFormRef.validateField(e,t=>{"email"!==e&&"phone"!==e||(this.codeReady=t)})},handleGetCode({captchaData:e,startTimer:t}){this.verifyData=e;const o={target:this.form.email||this.form.phone,uuid:e.uuid,code:e.code};let n=ne,i=this.isEn?"A verification code will be sent to your email and it will be expired after 5 minutes. Please do not share your verification code with anyone.":"验证码将会发送到您的邮箱,5分钟后失效。请不要与任何人分享您的验证码。";this.currentCountryIsChina&&(n=re,i=this.isEn?"A verification code will be sent to your phone and it will be expired after 5 minutes. Please do not share your verification code with anyone.":"验证码将会发送到您的手机,5分钟后失效。请不要与任何人分享您的验证码。"),n(o).then(e=>{const o=e.data.data?.verifyCode||e.data.verifyCode;0===e.data.code&&o&&(this.currentCountryIsChina?this.mobileUid=o:this.emailUid=o,t(),Le.success(i))}).catch(e=>{console.error(e)}),console.log("发送注册验证码")},handleRegister(){this.$refs.registerFormRef.validate(e=>{if(!e)return;const t=this.getAuthSessionItems();let o={appId:this.appId,fromSys:this.appId,passwd:Xr.MD5(this.form.password).toString(),clickSource:t.clickSource||"",activityCode:t.activityCode||"",referenceUserId:t.referenceUserId||"",inviterInfo:t.empNo||"",industrySector:this.form.sector,uuid:this.verifyData.uuid,code:this.verifyData.code,uniqueCode:t.uniqueCode||""};this.currentCountryIsChina?Object.assign(o,{type:"MOBILE",areaCode:this.form.areaCode,areaCodeCountryId:this.areaCodeData.find(e=>e.telCode===this.form.areaCode).id,account:oe(this.form.phone),verificationCodeVal:this.form.code,verificationCodeUuid:this.mobileUid||this.form.codeUuid}):Object.assign(o,{type:"EMAIL",account:oe(this.form.email),verificationCodeVal:this.form.code,verificationCodeUuid:this.emailUid||this.form.codeUuid}),this.hasResistCompany?this.handleApplyJoinSubmit(o):this.handleNewCompanySubmit(o)})},async handleNewCompanySubmit(e){const t=this.getAuthSessionItems(),o={...e,cityId:this.form.cityId,countryId:this.form.countryId,compNameCn:this.form.companyName,compNameEn:this.form.companyName,industrySector:this.form.sector,...this.form.kqInfo};this.$emit("register",o),this.loading=!0;try{const e=t.uniqueCode?ee:te,n=await e(o);this.handlePostRegister(n)}catch(n){this.loading=!1}},async handleApplyJoinSubmit(e){const t=this.getAuthSessionItems(),o={...e,compId:this.resistCompanyInfo.compId};this.form.nameCn&&(o.nameCn=this.form.nameCn),this.form.nameEn&&(o.nameEn=this.form.nameEn);["industrySector","compNameEn","compNameCn","countryId","cityId","inviterEmpNo","fromSys"].forEach(e=>delete o[e]),this.$emit("register",o),this.loading=!0;try{const e=t.uniqueCode?X:$,n=await e(o);this.handlePostRegister(n)}catch(n){this.loading=!1}},handlePostRegister(e){const t=this.getAuthSessionItems();if(0===e.data.code)if(e.data.data.redirect){if(_(e.data.data.result),e.data.data.result&&e.data.data.result.improveComp)return void this.$emit("need-complete",e.data.data.result.improveComp);try{Gs.set("tgc",e.data.data.tgc,{expires:30});const o=e.data.data.redirectPath||t.path||"/";Z(),setTimeout(()=>{o.startsWith("http")&&(window.location.href=o)},100)}catch(o){}}else this.loading=!1,Le.success(this.isEn?"Registration successful, pending review":"注册成功,请等待审核");else this.loading=!1,Le.error(e.data.msg)}}},Ys={class:"register-form-container"},_s={class:"register-title"},Zs={class:"resist-company-info-card"},Xs={class:"card-header"},$s={class:"title-group"},el={class:"tip-text"},tl={class:"company-content"},ol={class:"company-name"},nl={class:"card-header"},il={class:"title-group"},al={class:"tip-text"},rl={class:"location-info"},sl={class:"sector-section"},ll={class:"sector-label"},cl={class:"sector-group"},ul=["onClick"],dl={key:0,class:"icon-auth-checked"},hl={class:"agree-text"},pl={class:"bottom-tip"};const fl=/* @__PURE__ */Yo(Ws,[["render",function(e,t,o,n,i,a){const r=R("JcSearch"),p=R("JcFloatWrapper"),m=R("el-form-item"),C=R("ChineseCompanySearch"),w=R("ApplyJoinBtn"),E=R("JcFloatInput"),b=R("el-option"),I=R("el-select"),k=R("google-input"),S=R("CodeInput"),T=R("el-checkbox"),F=R("el-button"),Q=R("el-form");return l(),s("div",Ys,[u("div",_s,[u("p",null,A(o.isEn?"New User Registration":"新用户注册"),1)]),h(Q,{ref:"registerFormRef",model:i.form,rules:i.rules,class:"auth-form"},{default:x(()=>[i.hasResistCompany?(l(),s(g,{key:1},[u("div",Zs,[u("div",Xs,[u("div",$s,[u("span",el,A(o.isEn?"Company name":"公司名称"),1)]),u("span",{class:"change-link",onClick:t[6]||(t[6]=e=>i.hasResistCompany=!1)},A(o.isEn?"Change":"修改"),1)]),u("div",tl,[u("h4",ol,A(o.isEn?i.resistCompanyInfo.compNameEn||i.resistCompanyInfo.compNameCn:i.resistCompanyInfo.compNameCn||i.resistCompanyInfo.compNameEn),1)]),u("div",nl,[u("div",il,[u("span",al,A(o.isEn?"Location(City)":"所在地(城市)"),1)])]),u("div",rl,A(o.isEn?i.resistCompanyInfo.countryNameEn:i.resistCompanyInfo.countryNameCn)+" / "+A(o.isEn?i.resistCompanyInfo.cityNameEn:i.resistCompanyInfo.cityNameCn),1)]),h(m,{prop:a.currentCountryIsChina?"nameCn":"nameEn",class:"name-input-item"},{default:x(()=>[h(E,{modelValue:i.form[a.currentCountryIsChina?"nameCn":"nameEn"],"onUpdate:modelValue":t[7]||(t[7]=e=>i.form[a.currentCountryIsChina?"nameCn":"nameEn"]=e),label:a.currentCountryIsChina?o.isEn?"Your Full Name in Chinese":"您的中文名称":o.isEn?"Your Full Name in English":"您的名称",placeholder:o.isEn?"Please enter your name to prove your identity":"请输入您的姓名,以证明您的身份"},{prefix:x(()=>[...t[22]||(t[22]=[u("i",{class:"icon-auth-user"},null,-1)])]),_:1},8,["modelValue","label","placeholder"])]),_:1},8,["prop"])],64)):(l(),s(g,{key:0},[h(m,{prop:"city"},{default:x(()=>[h(p,{label:o.isEn?"Location (City)":"所在地(城市)","has-value":!(!i.form.city||!i.form.city.id)},{default:x(()=>[h(r,{modelValue:i.form.city,"onUpdate:modelValue":t[0]||(t[0]=e=>i.form.city=e),class:"jc:my-0! search-city-item","show-search-icon":!1,style:{"--original-text-main":"#232324"},"search-type-list":["City"],onSelect:a.handleSelectCity},{prefix:x(()=>[...t[20]||(t[20]=[u("i",{class:"icon-auth-location"},null,-1)])]),_:1},8,["modelValue","onSelect"])]),_:1},8,["label","has-value"])]),_:1}),h(m,{prop:"companyName"},{default:x(()=>[h(p,{label:a.currentCompanyLabel},{default:x(()=>[h(C,{class:"jc:my-0! search-company-item","company-name":i.form.companyName,"onUpdate:companyName":t[1]||(t[1]=e=>i.form.companyName=e),useKq:i.form.useKq,"onUpdate:useKq":t[2]||(t[2]=e=>i.form.useKq=e),kqCode:i.form.kqCode,"onUpdate:kqCode":t[3]||(t[3]=e=>i.form.kqCode=e),kqInfo:i.form.kqInfo,"onUpdate:kqInfo":t[4]||(t[4]=e=>i.form.kqInfo=e),"country-id":i.form.city?.raw?.country?.id||null},{prefix:x(()=>[...t[21]||(t[21]=[u("i",{class:"icon-auth-company"},null,-1)])]),_:1},8,["company-name","useKq","kqCode","kqInfo","country-id"])]),_:1},8,["label"])]),_:1}),i.companyResistCn||i.companyResistEn?(l(),d(w,{key:0,onApplyJoin:t[5]||(t[5]=()=>i.hasResistCompany=!0)})):f("",!0)],64)),a.currentCountryIsChina?(l(),d(m,{key:2,class:"phone-form-item"},{default:x(()=>[(l(),d(m,{prop:"phone",ref:"phone",key:8,class:"tel-mobile","inline-message":!0},{default:x(()=>[h(k,{modelValue:i.form.phone,"onUpdate:modelValue":t[10]||(t[10]=e=>i.form.phone=e),placeholder:o.isEn?"Cell Phone Number":"手机号码",label:o.isEn?"Cell Phone Number":"手机号码",clearable:"",autocomplete:"off",onBlur:t[11]||(t[11]=e=>a.validateField("phone")),maxlength:"15",disabled:i.isCounting},{prefix:x(()=>[t[23]||(t[23]=u("i",{class:"icon-auth-phone"},null,-1)),h(m,{prop:"areaCode",class:"tel-areacode","inline-message":!0},{default:x(()=>[h(I,{modelValue:i.form.areaCode,"onUpdate:modelValue":t[8]||(t[8]=e=>i.form.areaCode=e),placeholder:o.isEn?"Code":"区号",onChange:t[9]||(t[9]=e=>a.validateField("areaCode")),disabled:i.isCounting,"popper-class":"jc-area-code-select-wrapper"},{default:x(()=>[(l(!0),s(g,null,v(i.areaCodeData,e=>(l(),d(b,{key:e.id,label:e.telCode,value:e.telCode},null,8,["label","value"]))),128)),h(b,{label:"+86",value:"+86"})]),_:1},8,["modelValue","placeholder","disabled"])]),_:1})]),_:1},8,["modelValue","placeholder","label","disabled"])]),_:1}))]),_:1})):f("",!0),a.currentCountryIsChina?f("",!0):(l(),d(m,{key:3,prop:"email",class:"email-form-item"},{default:x(()=>[h(E,{modelValue:i.form.email,"onUpdate:modelValue":t[12]||(t[12]=e=>i.form.email=e),label:o.isEn?"Business Email Address":"企业邮箱",placeholder:o.isEn?"Business Email Address, QQ Mail is not available":"请输入您的企业邮箱,暂不支持QQ邮箱",onBlur:t[13]||(t[13]=e=>a.validateField("email"))},{prefix:x(()=>[...t[24]||(t[24]=[u("i",{class:"icon-auth-email"},null,-1)])]),_:1},8,["modelValue","label","placeholder"])]),_:1})),h(m,{prop:"code"},{default:x(()=>[h(S,{modelValue:i.form.code,"onUpdate:modelValue":t[14]||(t[14]=e=>i.form.code=e),placeholder:o.isEn?"Verification Code":"验证码",ready:i.codeReady,"is-en":o.isEn,"show-icon":"",onSend:a.handleGetCode},{prefix:x(()=>[...t[25]||(t[25]=[u("i",{class:"icon-verify"},null,-1)])]),_:1},8,["modelValue","placeholder","ready","is-en","onSend"])]),_:1}),h(m,{prop:"password",class:"password-form-item"},{default:x(()=>[h(E,{modelValue:i.form.password,"onUpdate:modelValue":t[15]||(t[15]=e=>i.form.password=e),type:"password","show-password":"",class:"input-show-pass",label:o.isEn?"Password":"密码",placeholder:o.isEn?"Password, 6-20 characters include letters, numbers and symbols":"密码,6-20位字符,包含字母、数字和符号"},{prefix:x(()=>[...t[26]||(t[26]=[u("i",{class:"icon-auth-password"},null,-1)])]),_:1},8,["modelValue","label","placeholder"])]),_:1}),u("div",sl,[u("p",ll,A(o.isEn?"Industry Sector":"所属行业"),1),u("div",cl,[(l(!0),s(g,null,v(i.sectors,e=>(l(),s("div",{key:e.value,class:c(["sector-item",{active:i.form.sector===e.value}]),onClick:t=>i.form.sector=e.value},[B(A(o.isEn?e.en:e.cn)+" ",1),i.form.sector===e.value?(l(),s("i",dl)):f("",!0)],10,ul))),128))])]),h(m,{prop:"agree",class:"agree-item"},{default:x(()=>[h(T,{modelValue:i.form.agree,"onUpdate:modelValue":t[18]||(t[18]=e=>i.form.agree=e)},{default:x(()=>[u("span",hl,[B(A(o.isEn?"I agree":"我同意")+" ",1),u("span",{class:"link-type",onClick:t[16]||(t[16]=y((...e)=>a.go2Agreement&&a.go2Agreement(...e),["stop"]))},A(o.isEn?"User Agreement":"《用户条款和协议》"),1),B(" "+A(o.isEn?"and":"和")+" ",1),u("span",{class:"link-type",onClick:t[17]||(t[17]=y((...e)=>a.go2Policy&&a.go2Policy(...e),["stop"]))},A(o.isEn?"Privacy Policy":"《隐私政策》"),1)])]),_:1},8,["modelValue"])]),_:1}),h(F,{class:c(["submit-btn register-btn",{"register-btn-is-active":a.isAgree}]),disabled:!a.isAgree||i.loading,loading:i.loading,onClick:a.handleRegister},{default:x(()=>[B(A(o.isEn?"Register and Log in":"注册并登录")+" ",1),t[27]||(t[27]=u("i",{class:"el-icon-right",style:{"margin-left":"8px"}},null,-1))]),_:1},8,["class","disabled","loading","onClick"])]),_:1},8,["model","rules"]),u("div",pl,[B(A(o.isEn?"Already have an account?":"已有账号?")+" ",1),u("span",{class:"action-text",onClick:t[19]||(t[19]=t=>e.$emit("to-login"))},[B(A(o.isEn?"Log in":"去登录")+" ",1),t[28]||(t[28]=u("svg",{t:"1767853448095",class:"icon-more",viewBox:"0 0 1024 1024",version:"1.1",xmlns:"http://www.w3.org/2000/svg","p-id":"8538",width:"200",height:"200"},[u("path",{d:"M456.874667 798.208l-60.416-60.416L622.336 512 396.458667 286.208l60.416-60.416 256 256a42.666667 42.666667 0 0 1 0 60.416l-256 256z",fill:"#FF6A00","p-id":"8539"})],-1))])])])}],["__scopeId","data-v-55f43a68"]]);var ml,gl,vl={};var Al,yl={},Cl={};function wl(){if(Al)return Cl;let e;Al=1;const t=[0,26,44,70,100,134,172,196,242,292,346,404,466,532,581,655,733,815,901,991,1085,1156,1258,1364,1474,1588,1706,1828,1921,2051,2185,2323,2465,2611,2761,2876,3034,3196,3362,3532,3706];return Cl.getSymbolSize=function(e){if(!e)throw new Error('"version" cannot be null or undefined');if(e<1||e>40)throw new Error('"version" should be in range from 1 to 40');return 4*e+17},Cl.getSymbolTotalCodewords=function(e){return t[e]},Cl.getBCHDigit=function(e){let t=0;for(;0!==e;)t++,e>>>=1;return t},Cl.setToSJISFunction=function(t){if("function"!=typeof t)throw new Error('"toSJISFunc" is not a valid function.');e=t},Cl.isKanjiModeEnabled=function(){return void 0!==e},Cl.toSJIS=function(t){return e(t)},Cl}var El,bl,Il,Bl,kl,Sl={};function xl(){return El||(El=1,(e=Sl).L={bit:1},e.M={bit:0},e.Q={bit:3},e.H={bit:2},e.isValid=function(e){return e&&void 0!==e.bit&&e.bit>=0&&e.bit<4},e.from=function(t,o){if(e.isValid(t))return t;try{return function(t){if("string"!=typeof t)throw new Error("Param is not a string");switch(t.toLowerCase()){case"l":case"low":return e.L;case"m":case"medium":return e.M;case"q":case"quartile":return e.Q;case"h":case"high":return e.H;default:throw new Error("Unknown EC Level: "+t)}}(t)}catch(n){return o}}),Sl;var e}var Rl,Tl={};var Fl,Ql={};var Ll,Pl={};var Nl,Ul={};function Vl(){if(Nl)return Ul;Nl=1;const e=xl(),t=[1,1,1,1,1,1,1,1,1,1,2,2,1,2,2,4,1,2,4,4,2,4,4,4,2,4,6,5,2,4,6,6,2,5,8,8,4,5,8,8,4,5,8,11,4,8,10,11,4,9,12,16,4,9,16,16,6,10,12,18,6,10,17,16,6,11,16,19,6,13,18,21,7,14,21,25,8,16,20,25,8,17,23,25,9,17,23,34,9,18,25,30,10,20,27,32,12,21,29,35,12,23,34,37,12,25,34,40,13,26,35,42,14,28,38,45,15,29,40,48,16,31,43,51,17,33,45,54,18,35,48,57,19,37,51,60,19,38,53,63,20,40,56,66,21,43,59,70,22,45,62,74,24,47,65,77,25,49,68,81],o=[7,10,13,17,10,16,22,28,15,26,36,44,20,36,52,64,26,48,72,88,36,64,96,112,40,72,108,130,48,88,132,156,60,110,160,192,72,130,192,224,80,150,224,264,96,176,260,308,104,198,288,352,120,216,320,384,132,240,360,432,144,280,408,480,168,308,448,532,180,338,504,588,196,364,546,650,224,416,600,700,224,442,644,750,252,476,690,816,270,504,750,900,300,560,810,960,312,588,870,1050,336,644,952,1110,360,700,1020,1200,390,728,1050,1260,420,784,1140,1350,450,812,1200,1440,480,868,1290,1530,510,924,1350,1620,540,980,1440,1710,570,1036,1530,1800,570,1064,1590,1890,600,1120,1680,1980,630,1204,1770,2100,660,1260,1860,2220,720,1316,1950,2310,750,1372,2040,2430];return Ul.getBlocksCount=function(o,n){switch(n){case e.L:return t[4*(o-1)+0];case e.M:return t[4*(o-1)+1];case e.Q:return t[4*(o-1)+2];case e.H:return t[4*(o-1)+3];default:return}},Ul.getTotalCodewordsCount=function(t,n){switch(n){case e.L:return o[4*(t-1)+0];case e.M:return o[4*(t-1)+1];case e.Q:return o[4*(t-1)+2];case e.H:return o[4*(t-1)+3];default:return}},Ul}var Dl,Ml,Ol,Jl,jl={},zl={};function Hl(){return Ml||(Ml=1,function(e){const t=function(){if(Dl)return zl;Dl=1;const e=new Uint8Array(512),t=new Uint8Array(256);return function(){let o=1;for(let n=0;n<255;n++)e[n]=o,t[o]=n,o<<=1,256&o&&(o^=285);for(let t=255;t<512;t++)e[t]=e[t-255]}(),zl.log=function(e){if(e<1)throw new Error("log("+e+")");return t[e]},zl.exp=function(t){return e[t]},zl.mul=function(o,n){return 0===o||0===n?0:e[t[o]+t[n]]},zl}();e.mul=function(e,o){const n=new Uint8Array(e.length+o.length-1);for(let i=0;i<e.length;i++)for(let a=0;a<o.length;a++)n[i+a]^=t.mul(e[i],o[a]);return n},e.mod=function(e,o){let n=new Uint8Array(e);for(;n.length-o.length>=0;){const e=n[0];for(let a=0;a<o.length;a++)n[a]^=t.mul(o[a],e);let i=0;for(;i<n.length&&0===n[i];)i++;n=n.slice(i)}return n},e.generateECPolynomial=function(o){let n=new Uint8Array([1]);for(let i=0;i<o;i++)n=e.mul(n,new Uint8Array([1,t.exp(i)]));return n}}(jl)),jl}var ql,Kl={},Gl={},Wl={};function Yl(){return ql||(ql=1,Wl.isValid=function(e){return!isNaN(e)&&e>=1&&e<=40}),Wl}var _l,Zl,Xl,$l={};function ec(){if(_l)return $l;_l=1;const e="[0-9]+";let t="(?:[u3000-u303F]|[u3040-u309F]|[u30A0-u30FF]|[uFF00-uFFEF]|[u4E00-u9FAF]|[u2605-u2606]|[u2190-u2195]|u203B|[u2010u2015u2018u2019u2025u2026u201Cu201Du2225u2260]|[u0391-u0451]|[u00A7u00A8u00B1u00B4u00D7u00F7])+";t=t.replace(/u/g,"\\u");const o="(?:(?![A-Z0-9 $%*+\\-./:]|"+t+")(?:.|[\r\n]))+";$l.KANJI=new RegExp(t,"g"),$l.BYTE_KANJI=new RegExp("[^A-Z0-9 $%*+\\-./:]+","g"),$l.BYTE=new RegExp(o,"g"),$l.NUMERIC=new RegExp(e,"g"),$l.ALPHANUMERIC=new RegExp("[A-Z $%*+\\-./:]+","g");const n=new RegExp("^"+t+"$"),i=new RegExp("^"+e+"$"),a=new RegExp("^[A-Z0-9 $%*+\\-./:]+$");return $l.testKanji=function(e){return n.test(e)},$l.testNumeric=function(e){return i.test(e)},$l.testAlphanumeric=function(e){return a.test(e)},$l}function tc(){return Zl||(Zl=1,function(e){const t=Yl(),o=ec();e.NUMERIC={id:"Numeric",bit:1,ccBits:[10,12,14]},e.ALPHANUMERIC={id:"Alphanumeric",bit:2,ccBits:[9,11,13]},e.BYTE={id:"Byte",bit:4,ccBits:[8,16,16]},e.KANJI={id:"Kanji",bit:8,ccBits:[8,10,12]},e.MIXED={bit:-1},e.getCharCountIndicator=function(e,o){if(!e.ccBits)throw new Error("Invalid mode: "+e);if(!t.isValid(o))throw new Error("Invalid version: "+o);return o>=1&&o<10?e.ccBits[0]:o<27?e.ccBits[1]:e.ccBits[2]},e.getBestModeForData=function(t){return o.testNumeric(t)?e.NUMERIC:o.testAlphanumeric(t)?e.ALPHANUMERIC:o.testKanji(t)?e.KANJI:e.BYTE},e.toString=function(e){if(e&&e.id)return e.id;throw new Error("Invalid mode")},e.isValid=function(e){return e&&e.bit&&e.ccBits},e.from=function(t,o){if(e.isValid(t))return t;try{return function(t){if("string"!=typeof t)throw new Error("Param is not a string");switch(t.toLowerCase()){case"numeric":return e.NUMERIC;case"alphanumeric":return e.ALPHANUMERIC;case"kanji":return e.KANJI;case"byte":return e.BYTE;default:throw new Error("Unknown mode: "+t)}}(t)}catch(n){return o}}}(Gl)),Gl}function oc(){return Xl||(Xl=1,function(e){const t=wl(),o=Vl(),n=xl(),i=tc(),a=Yl(),r=t.getBCHDigit(7973);function s(e,t){return i.getCharCountIndicator(e,t)+4}function l(e,t){let o=0;return e.forEach(function(e){const n=s(e.mode,t);o+=n+e.getBitsLength()}),o}e.from=function(e,t){return a.isValid(e)?parseInt(e,10):t},e.getCapacity=function(e,n,r){if(!a.isValid(e))throw new Error("Invalid QR Code version");void 0===r&&(r=i.BYTE);const l=8*(t.getSymbolTotalCodewords(e)-o.getTotalCodewordsCount(e,n));if(r===i.MIXED)return l;const c=l-s(r,e);switch(r){case i.NUMERIC:return Math.floor(c/10*3);case i.ALPHANUMERIC:return Math.floor(c/11*2);case i.KANJI:return Math.floor(c/13);case i.BYTE:default:return Math.floor(c/8)}},e.getBestVersionForData=function(t,o){let a;const r=n.from(o,n.M);if(Array.isArray(t)){if(t.length>1)return function(t,o){for(let n=1;n<=40;n++)if(l(t,n)<=e.getCapacity(n,o,i.MIXED))return n}(t,r);if(0===t.length)return 1;a=t[0]}else a=t;return function(t,o,n){for(let i=1;i<=40;i++)if(o<=e.getCapacity(i,n,t))return i}(a.mode,a.getLength(),r)},e.getEncodedBits=function(e){if(!a.isValid(e)||e<7)throw new Error("Invalid QR Code version");let o=e<<12;for(;t.getBCHDigit(o)-r>=0;)o^=7973<<t.getBCHDigit(o)-r;return e<<12|o}}(Kl)),Kl}var nc,ic={};var ac,rc,sc,lc,cc,uc,dc,hc,pc={};var fc,mc,gc,vc={exports:{}};function Ac(){return mc||(mc=1,function(e){const t=tc(),o=function(){if(rc)return ac;rc=1;const e=tc();function t(t){this.mode=e.NUMERIC,this.data=t.toString()}return t.getBitsLength=function(e){return 10*Math.floor(e/3)+(e%3?e%3*3+1:0)},t.prototype.getLength=function(){return this.data.length},t.prototype.getBitsLength=function(){return t.getBitsLength(this.data.length)},t.prototype.write=function(e){let t,o,n;for(t=0;t+3<=this.data.length;t+=3)o=this.data.substr(t,3),n=parseInt(o,10),e.put(n,10);const i=this.data.length-t;i>0&&(o=this.data.substr(t),n=parseInt(o,10),e.put(n,3*i+1))},ac=t}(),n=function(){if(lc)return sc;lc=1;const e=tc(),t=["0","1","2","3","4","5","6","7","8","9","A","B","C","D","E","F","G","H","I","J","K","L","M","N","O","P","Q","R","S","T","U","V","W","X","Y","Z"," ","$","%","*","+","-",".","/",":"];function o(t){this.mode=e.ALPHANUMERIC,this.data=t}return o.getBitsLength=function(e){return 11*Math.floor(e/2)+e%2*6},o.prototype.getLength=function(){return this.data.length},o.prototype.getBitsLength=function(){return o.getBitsLength(this.data.length)},o.prototype.write=function(e){let o;for(o=0;o+2<=this.data.length;o+=2){let n=45*t.indexOf(this.data[o]);n+=t.indexOf(this.data[o+1]),e.put(n,11)}this.data.length%2&&e.put(t.indexOf(this.data[o]),6)},sc=o}(),i=function(){if(uc)return cc;uc=1;const e=tc();function t(t){this.mode=e.BYTE,this.data="string"==typeof t?(new TextEncoder).encode(t):new Uint8Array(t)}return t.getBitsLength=function(e){return 8*e},t.prototype.getLength=function(){return this.data.length},t.prototype.getBitsLength=function(){return t.getBitsLength(this.data.length)},t.prototype.write=function(e){for(let t=0,o=this.data.length;t<o;t++)e.put(this.data[t],8)},cc=t}(),a=function(){if(hc)return dc;hc=1;const e=tc(),t=wl();function o(t){this.mode=e.KANJI,this.data=t}return o.getBitsLength=function(e){return 13*e},o.prototype.getLength=function(){return this.data.length},o.prototype.getBitsLength=function(){return o.getBitsLength(this.data.length)},o.prototype.write=function(e){let o;for(o=0;o<this.data.length;o++){let n=t.toSJIS(this.data[o]);if(n>=33088&&n<=40956)n-=33088;else{if(!(n>=57408&&n<=60351))throw new Error("Invalid SJIS character: "+this.data[o]+"\nMake sure your charset is UTF-8");n-=49472}n=192*(n>>>8&255)+(255&n),e.put(n,13)}},dc=o}(),r=ec(),s=wl(),l=function(){return fc?vc.exports:(fc=1,vc.exports=e={single_source_shortest_paths:function(t,o,n){var i={},a={};a[o]=0;var r,s,l,c,u,d,h,p=e.PriorityQueue.make();for(p.push(o,0);!p.empty();)for(l in s=(r=p.pop()).value,c=r.cost,u=t[s]||{})u.hasOwnProperty(l)&&(d=c+u[l],h=a[l],(void 0===a[l]||h>d)&&(a[l]=d,p.push(l,d),i[l]=s));if(void 0!==n&&void 0===a[n]){var f=["Could not find a path from ",o," to ",n,"."].join("");throw new Error(f)}return i},extract_shortest_path_from_predecessor_list:function(e,t){for(var o=[],n=t;n;)o.push(n),e[n],n=e[n];return o.reverse(),o},find_path:function(t,o,n){var i=e.single_source_shortest_paths(t,o,n);return e.extract_shortest_path_from_predecessor_list(i,n)},PriorityQueue:{make:function(t){var o,n=e.PriorityQueue,i={};for(o in t=t||{},n)n.hasOwnProperty(o)&&(i[o]=n[o]);return i.queue=[],i.sorter=t.sorter||n.default_sorter,i},default_sorter:function(e,t){return e.cost-t.cost},push:function(e,t){var o={value:e,cost:t};this.queue.push(o),this.queue.sort(this.sorter)},pop:function(){return this.queue.shift()},empty:function(){return 0===this.queue.length}}});var e}();function c(e){return unescape(encodeURIComponent(e)).length}function u(e,t,o){const n=[];let i;for(;null!==(i=e.exec(o));)n.push({data:i[0],index:i.index,mode:t,length:i[0].length});return n}function d(e){const o=u(r.NUMERIC,t.NUMERIC,e),n=u(r.ALPHANUMERIC,t.ALPHANUMERIC,e);let i,a;s.isKanjiModeEnabled()?(i=u(r.BYTE,t.BYTE,e),a=u(r.KANJI,t.KANJI,e)):(i=u(r.BYTE_KANJI,t.BYTE,e),a=[]);return o.concat(n,i,a).sort(function(e,t){return e.index-t.index}).map(function(e){return{data:e.data,mode:e.mode,length:e.length}})}function h(e,r){switch(r){case t.NUMERIC:return o.getBitsLength(e);case t.ALPHANUMERIC:return n.getBitsLength(e);case t.KANJI:return a.getBitsLength(e);case t.BYTE:return i.getBitsLength(e)}}function p(e,r){let l;const c=t.getBestModeForData(e);if(l=t.from(r,c),l!==t.BYTE&&l.bit<c.bit)throw new Error('"'+e+'" cannot be encoded with mode '+t.toString(l)+".\n Suggested mode is: "+t.toString(c));switch(l!==t.KANJI||s.isKanjiModeEnabled()||(l=t.BYTE),l){case t.NUMERIC:return new o(e);case t.ALPHANUMERIC:return new n(e);case t.KANJI:return new a(e);case t.BYTE:return new i(e)}}e.fromArray=function(e){return e.reduce(function(e,t){return"string"==typeof t?e.push(p(t,null)):t.data&&e.push(p(t.data,t.mode)),e},[])},e.fromString=function(o,n){const i=function(e){const o=[];for(let n=0;n<e.length;n++){const i=e[n];switch(i.mode){case t.NUMERIC:o.push([i,{data:i.data,mode:t.ALPHANUMERIC,length:i.length},{data:i.data,mode:t.BYTE,length:i.length}]);break;case t.ALPHANUMERIC:o.push([i,{data:i.data,mode:t.BYTE,length:i.length}]);break;case t.KANJI:o.push([i,{data:i.data,mode:t.BYTE,length:c(i.data)}]);break;case t.BYTE:o.push([{data:i.data,mode:t.BYTE,length:c(i.data)}])}}return o}(d(o,s.isKanjiModeEnabled())),a=function(e,o){const n={},i={start:{}};let a=["start"];for(let r=0;r<e.length;r++){const s=e[r],l=[];for(let e=0;e<s.length;e++){const c=s[e],u=""+r+e;l.push(u),n[u]={node:c,lastCount:0},i[u]={};for(let e=0;e<a.length;e++){const r=a[e];n[r]&&n[r].node.mode===c.mode?(i[r][u]=h(n[r].lastCount+c.length,c.mode)-h(n[r].lastCount,c.mode),n[r].lastCount+=c.length):(n[r]&&(n[r].lastCount=c.length),i[r][u]=h(c.length,c.mode)+4+t.getCharCountIndicator(c.mode,o))}}a=l}for(let t=0;t<a.length;t++)i[a[t]].end=0;return{map:i,table:n}}(i,n),r=l.find_path(a.map,"start","end"),u=[];for(let e=1;e<r.length-1;e++)u.push(a.table[r[e]].node);return e.fromArray(function(e){return e.reduce(function(e,t){const o=e.length-1>=0?e[e.length-1]:null;return o&&o.mode===t.mode?(e[e.length-1].data+=t.data,e):(e.push(t),e)},[])}(u))},e.rawSplit=function(t){return e.fromArray(d(t,s.isKanjiModeEnabled()))}}(pc)),pc}function yc(){if(gc)return yl;gc=1;const e=wl(),t=xl(),o=function(){if(Il)return bl;function e(){this.buffer=[],this.length=0}return Il=1,e.prototype={get:function(e){const t=Math.floor(e/8);return 1==(this.buffer[t]>>>7-e%8&1)},put:function(e,t){for(let o=0;o<t;o++)this.putBit(1==(e>>>t-o-1&1))},getLengthInBits:function(){return this.length},putBit:function(e){const t=Math.floor(this.length/8);this.buffer.length<=t&&this.buffer.push(0),e&&(this.buffer[t]|=128>>>this.length%8),this.length++}},bl=e}(),n=function(){if(kl)return Bl;function e(e){if(!e||e<1)throw new Error("BitMatrix size must be defined and greater than 0");this.size=e,this.data=new Uint8Array(e*e),this.reservedBit=new Uint8Array(e*e)}return kl=1,e.prototype.set=function(e,t,o,n){const i=e*this.size+t;this.data[i]=o,n&&(this.reservedBit[i]=!0)},e.prototype.get=function(e,t){return this.data[e*this.size+t]},e.prototype.xor=function(e,t,o){this.data[e*this.size+t]^=o},e.prototype.isReserved=function(e,t){return this.reservedBit[e*this.size+t]},Bl=e}(),i=(Rl||(Rl=1,function(e){const t=wl().getSymbolSize;e.getRowColCoords=function(e){if(1===e)return[];const o=Math.floor(e/7)+2,n=t(e),i=145===n?26:2*Math.ceil((n-13)/(2*o-2)),a=[n-7];for(let t=1;t<o-1;t++)a[t]=a[t-1]-i;return a.push(6),a.reverse()},e.getPositions=function(t){const o=[],n=e.getRowColCoords(t),i=n.length;for(let e=0;e<i;e++)for(let t=0;t<i;t++)0===e&&0===t||0===e&&t===i-1||e===i-1&&0===t||o.push([n[e],n[t]]);return o}}(Tl)),Tl),a=function(){if(Fl)return Ql;Fl=1;const e=wl().getSymbolSize;return Ql.getPositions=function(t){const o=e(t);return[[0,0],[o-7,0],[0,o-7]]},Ql}(),r=(Ll||(Ll=1,function(e){e.Patterns={PATTERN000:0,PATTERN001:1,PATTERN010:2,PATTERN011:3,PATTERN100:4,PATTERN101:5,PATTERN110:6,PATTERN111:7};const t=3,o=3,n=40,i=10;function a(t,o,n){switch(t){case e.Patterns.PATTERN000:return(o+n)%2==0;case e.Patterns.PATTERN001:return o%2==0;case e.Patterns.PATTERN010:return n%3==0;case e.Patterns.PATTERN011:return(o+n)%3==0;case e.Patterns.PATTERN100:return(Math.floor(o/2)+Math.floor(n/3))%2==0;case e.Patterns.PATTERN101:return o*n%2+o*n%3==0;case e.Patterns.PATTERN110:return(o*n%2+o*n%3)%2==0;case e.Patterns.PATTERN111:return(o*n%3+(o+n)%2)%2==0;default:throw new Error("bad maskPattern:"+t)}}e.isValid=function(e){return null!=e&&""!==e&&!isNaN(e)&&e>=0&&e<=7},e.from=function(t){return e.isValid(t)?parseInt(t,10):void 0},e.getPenaltyN1=function(e){const o=e.size;let n=0,i=0,a=0,r=null,s=null;for(let l=0;l<o;l++){i=a=0,r=s=null;for(let c=0;c<o;c++){let o=e.get(l,c);o===r?i++:(i>=5&&(n+=t+(i-5)),r=o,i=1),o=e.get(c,l),o===s?a++:(a>=5&&(n+=t+(a-5)),s=o,a=1)}i>=5&&(n+=t+(i-5)),a>=5&&(n+=t+(a-5))}return n},e.getPenaltyN2=function(e){const t=e.size;let n=0;for(let o=0;o<t-1;o++)for(let i=0;i<t-1;i++){const t=e.get(o,i)+e.get(o,i+1)+e.get(o+1,i)+e.get(o+1,i+1);4!==t&&0!==t||n++}return n*o},e.getPenaltyN3=function(e){const t=e.size;let o=0,i=0,a=0;for(let n=0;n<t;n++){i=a=0;for(let r=0;r<t;r++)i=i<<1&2047|e.get(n,r),r>=10&&(1488===i||93===i)&&o++,a=a<<1&2047|e.get(r,n),r>=10&&(1488===a||93===a)&&o++}return o*n},e.getPenaltyN4=function(e){let t=0;const o=e.data.length;for(let n=0;n<o;n++)t+=e.data[n];return Math.abs(Math.ceil(100*t/o/5)-10)*i},e.applyMask=function(e,t){const o=t.size;for(let n=0;n<o;n++)for(let i=0;i<o;i++)t.isReserved(i,n)||t.xor(i,n,a(e,i,n))},e.getBestMask=function(t,o){const n=Object.keys(e.Patterns).length;let i=0,a=1/0;for(let r=0;r<n;r++){o(r),e.applyMask(r,t);const n=e.getPenaltyN1(t)+e.getPenaltyN2(t)+e.getPenaltyN3(t)+e.getPenaltyN4(t);e.applyMask(r,t),n<a&&(a=n,i=r)}return i}}(Pl)),Pl),s=Vl(),l=function(){if(Jl)return Ol;Jl=1;const e=Hl();function t(e){this.genPoly=void 0,this.degree=e,this.degree&&this.initialize(this.degree)}return t.prototype.initialize=function(t){this.degree=t,this.genPoly=e.generateECPolynomial(this.degree)},t.prototype.encode=function(t){if(!this.genPoly)throw new Error("Encoder not initialized");const o=new Uint8Array(t.length+this.degree);o.set(t);const n=e.mod(o,this.genPoly),i=this.degree-n.length;if(i>0){const e=new Uint8Array(this.degree);return e.set(n,i),e}return n},Ol=t}(),c=oc(),u=function(){if(nc)return ic;nc=1;const e=wl(),t=e.getBCHDigit(1335);return ic.getEncodedBits=function(o,n){const i=o.bit<<3|n;let a=i<<10;for(;e.getBCHDigit(a)-t>=0;)a^=1335<<e.getBCHDigit(a)-t;return 21522^(i<<10|a)},ic}(),d=tc(),h=Ac();function p(e,t,o){const n=e.size,i=u.getEncodedBits(t,o);let a,r;for(a=0;a<15;a++)r=1==(i>>a&1),a<6?e.set(a,8,r,!0):a<8?e.set(a+1,8,r,!0):e.set(n-15+a,8,r,!0),a<8?e.set(8,n-a-1,r,!0):a<9?e.set(8,15-a-1+1,r,!0):e.set(8,15-a-1,r,!0);e.set(n-8,8,1,!0)}function f(t,n,i){const a=new o;i.forEach(function(e){a.put(e.mode.bit,4),a.put(e.getLength(),d.getCharCountIndicator(e.mode,t)),e.write(a)});const r=8*(e.getSymbolTotalCodewords(t)-s.getTotalCodewordsCount(t,n));for(a.getLengthInBits()+4<=r&&a.put(0,4);a.getLengthInBits()%8!=0;)a.putBit(0);const c=(r-a.getLengthInBits())/8;for(let e=0;e<c;e++)a.put(e%2?17:236,8);return function(t,o,n){const i=e.getSymbolTotalCodewords(o),a=s.getTotalCodewordsCount(o,n),r=i-a,c=s.getBlocksCount(o,n),u=i%c,d=c-u,h=Math.floor(i/c),p=Math.floor(r/c),f=p+1,m=h-p,g=new l(m);let v=0;const A=new Array(c),y=new Array(c);let C=0;const w=new Uint8Array(t.buffer);for(let e=0;e<c;e++){const t=e<d?p:f;A[e]=w.slice(v,v+t),y[e]=g.encode(A[e]),v+=t,C=Math.max(C,t)}const E=new Uint8Array(i);let b,I,B=0;for(b=0;b<C;b++)for(I=0;I<c;I++)b<A[I].length&&(E[B++]=A[I][b]);for(b=0;b<m;b++)for(I=0;I<c;I++)E[B++]=y[I][b];return E}(a,t,n)}function m(t,o,s,l){let u;if(Array.isArray(t))u=h.fromArray(t);else{if("string"!=typeof t)throw new Error("Invalid data");{let e=o;if(!e){const o=h.rawSplit(t);e=c.getBestVersionForData(o,s)}u=h.fromString(t,e||40)}}const d=c.getBestVersionForData(u,s);if(!d)throw new Error("The amount of data is too big to be stored in a QR Code");if(o){if(o<d)throw new Error("\nThe chosen QR Code version cannot contain this amount of data.\nMinimum version required to store current data is: "+d+".\n")}else o=d;const m=f(o,s,u),g=e.getSymbolSize(o),v=new n(g);return function(e,t){const o=e.size,n=a.getPositions(t);for(let i=0;i<n.length;i++){const t=n[i][0],a=n[i][1];for(let n=-1;n<=7;n++)if(!(t+n<=-1||o<=t+n))for(let i=-1;i<=7;i++)a+i<=-1||o<=a+i||(n>=0&&n<=6&&(0===i||6===i)||i>=0&&i<=6&&(0===n||6===n)||n>=2&&n<=4&&i>=2&&i<=4?e.set(t+n,a+i,!0,!0):e.set(t+n,a+i,!1,!0))}}(v,o),function(e){const t=e.size;for(let o=8;o<t-8;o++){const t=o%2==0;e.set(o,6,t,!0),e.set(6,o,t,!0)}}(v),function(e,t){const o=i.getPositions(t);for(let n=0;n<o.length;n++){const t=o[n][0],i=o[n][1];for(let o=-2;o<=2;o++)for(let n=-2;n<=2;n++)-2===o||2===o||-2===n||2===n||0===o&&0===n?e.set(t+o,i+n,!0,!0):e.set(t+o,i+n,!1,!0)}}(v,o),p(v,s,0),o>=7&&function(e,t){const o=e.size,n=c.getEncodedBits(t);let i,a,r;for(let s=0;s<18;s++)i=Math.floor(s/3),a=s%3+o-8-3,r=1==(n>>s&1),e.set(i,a,r,!0),e.set(a,i,r,!0)}(v,o),function(e,t){const o=e.size;let n=-1,i=o-1,a=7,r=0;for(let s=o-1;s>0;s-=2)for(6===s&&s--;;){for(let o=0;o<2;o++)if(!e.isReserved(i,s-o)){let n=!1;r<t.length&&(n=1==(t[r]>>>a&1)),e.set(i,s-o,n),a--,-1===a&&(r++,a=7)}if(i+=n,i<0||o<=i){i-=n,n=-n;break}}}(v,m),isNaN(l)&&(l=r.getBestMask(v,p.bind(null,v,s))),r.applyMask(l,v),p(v,s,l),{modules:v,version:o,errorCorrectionLevel:s,maskPattern:l,segments:u}}return yl.create=function(o,n){if(void 0===o||""===o)throw new Error("No input text");let i,a,s=t.M;return void 0!==n&&(s=t.from(n.errorCorrectionLevel,t.M),i=c.from(n.version),a=r.from(n.maskPattern),n.toSJISFunc&&e.setToSJISFunction(n.toSJISFunc)),m(o,i,s,a)},yl}var Cc,wc,Ec={},bc={};function Ic(){return Cc||(Cc=1,function(e){function t(e){if("number"==typeof e&&(e=e.toString()),"string"!=typeof e)throw new Error("Color should be defined as hex string");let t=e.slice().replace("#","").split("");if(t.length<3||5===t.length||t.length>8)throw new Error("Invalid hex color: "+e);3!==t.length&&4!==t.length||(t=Array.prototype.concat.apply([],t.map(function(e){return[e,e]}))),6===t.length&&t.push("F","F");const o=parseInt(t.join(""),16);return{r:o>>24&255,g:o>>16&255,b:o>>8&255,a:255&o,hex:"#"+t.slice(0,6).join("")}}e.getOptions=function(e){e||(e={}),e.color||(e.color={});const o=void 0===e.margin||null===e.margin||e.margin<0?4:e.margin,n=e.width&&e.width>=21?e.width:void 0,i=e.scale||4;return{width:n,scale:n?4:i,margin:o,color:{dark:t(e.color.dark||"#000000ff"),light:t(e.color.light||"#ffffffff")},type:e.type,rendererOpts:e.rendererOpts||{}}},e.getScale=function(e,t){return t.width&&t.width>=e+2*t.margin?t.width/(e+2*t.margin):t.scale},e.getImageWidth=function(t,o){const n=e.getScale(t,o);return Math.floor((t+2*o.margin)*n)},e.qrToImageData=function(t,o,n){const i=o.modules.size,a=o.modules.data,r=e.getScale(i,n),s=Math.floor((i+2*n.margin)*r),l=n.margin*r,c=[n.color.light,n.color.dark];for(let e=0;e<s;e++)for(let o=0;o<s;o++){let u=4*(e*s+o),d=n.color.light;if(e>=l&&o>=l&&e<s-l&&o<s-l){d=c[a[Math.floor((e-l)/r)*i+Math.floor((o-l)/r)]?1:0]}t[u++]=d.r,t[u++]=d.g,t[u++]=d.b,t[u]=d.a}}}(bc)),bc}function Bc(){return wc||(wc=1,function(e){const t=Ic();e.render=function(e,o,n){let i=n,a=o;void 0!==i||o&&o.getContext||(i=o,o=void 0),o||(a=function(){try{return document.createElement("canvas")}catch(e){throw new Error("You need to specify a canvas element")}}()),i=t.getOptions(i);const r=t.getImageWidth(e.modules.size,i),s=a.getContext("2d"),l=s.createImageData(r,r);return t.qrToImageData(l.data,e,i),function(e,t,o){e.clearRect(0,0,t.width,t.height),t.style||(t.style={}),t.height=o,t.width=o,t.style.height=o+"px",t.style.width=o+"px"}(s,a,r),s.putImageData(l,0,0),a},e.renderToDataURL=function(t,o,n){let i=n;void 0!==i||o&&o.getContext||(i=o,o=void 0),i||(i={});const a=e.render(t,o,i),r=i.type||"image/png",s=i.rendererOpts||{};return a.toDataURL(r,s.quality)}}(Ec)),Ec}var kc,Sc,xc={};function Rc(){if(kc)return xc;kc=1;const e=Ic();function t(e,t){const o=e.a/255,n=t+'="'+e.hex+'"';return o<1?n+" "+t+'-opacity="'+o.toFixed(2).slice(1)+'"':n}function o(e,t,o){let n=e+t;return void 0!==o&&(n+=" "+o),n}return xc.render=function(n,i,a){const r=e.getOptions(i),s=n.modules.size,l=n.modules.data,c=s+2*r.margin,u=r.color.light.a?"<path "+t(r.color.light,"fill")+' d="M0 0h'+c+"v"+c+'H0z"/>':"",d="<path "+t(r.color.dark,"stroke")+' d="'+function(e,t,n){let i="",a=0,r=!1,s=0;for(let l=0;l<e.length;l++){const c=Math.floor(l%t),u=Math.floor(l/t);c||r||(r=!0),e[l]?(s++,l>0&&c>0&&e[l-1]||(i+=r?o("M",c+n,.5+u+n):o("m",a,0),a=0,r=!1),c+1<t&&e[l+1]||(i+=o("h",s),s=0)):a++}return i}(l,s,r.margin)+'"/>',h='viewBox="0 0 '+c+" "+c+'"',p='<svg xmlns="http://www.w3.org/2000/svg" '+(r.width?'width="'+r.width+'" height="'+r.width+'" ':"")+h+' shape-rendering="crispEdges">'+u+d+"</svg>\n";return"function"==typeof a&&a(null,p),p},xc}const Tc=/* @__PURE__ */la(function(){if(Sc)return vl;Sc=1;const e=gl?ml:(gl=1,ml=function(){return"function"==typeof Promise&&Promise.prototype&&Promise.prototype.then}),t=yc(),o=Bc(),n=Rc();function i(o,n,i,a,r){const s=[].slice.call(arguments,1),l=s.length,c="function"==typeof s[l-1];if(!c&&!e())throw new Error("Callback required as last argument");if(!c){if(l<1)throw new Error("Too few arguments provided");return 1===l?(i=n,n=a=void 0):2!==l||n.getContext||(a=i,i=n,n=void 0),new Promise(function(e,r){try{const r=t.create(i,a);e(o(r,n,a))}catch(s){r(s)}})}if(l<2)throw new Error("Too few arguments provided");2===l?(r=i,i=n,n=a=void 0):3===l&&(n.getContext&&void 0===r?(r=a,a=void 0):(r=a,a=i,i=n,n=void 0));try{const e=t.create(i,a);r(null,o(e,n,a))}catch(u){r(u)}}return vl.create=t.create,vl.toCanvas=i.bind(null,o.render),vl.toDataURL=i.bind(null,o.renderToDataURL),vl.toString=i.bind(null,function(e,t,o){return n.render(e,o)}),vl}()),Fc={class:"login-wx"},Qc={class:"login-wx-code"},Lc={class:"expired-text mt10 mb10"},Pc={class:"scan-tip"},Nc=/* @__PURE__ */Yo(/* @__PURE__ */i({__name:"WechatLogin",props:{appId:{default:"ERA"},path:{},isEn:{type:Boolean,default:!1}},emits:["success","need-register"],setup(t,{emit:n}){const i=t,a=n,r=e(null),d=e(!0),p=e(!1),g=e("");let v=null;const C=async()=>{d.value=!0,I();try{const{data:t}=await se();if(console.log("🍉 ~ WechatLogin.vue:126 ~ fetchWxCode ~ data:",t),0===t?.code){g.value=t.data?.uniqueCode,p.value=!1;try{le({uniqueCode:g.value})}catch(e){console.log("🍉 ~ WechatLogin.vue:114 ~ fetchWxCode ~ error:",e)}await(async e=>{if(await U(),r.value)try{await Tc.toCanvas(r.value,e,{width:200,margin:1,color:{dark:"#000000",light:"#ffffff"},errorCorrectionLevel:"M"})}catch(t){console.error("QR Code render error:",t)}})(t.data?.qrCodeUrl),w()}else p.value=!0}catch(e){console.error("Fetch WeChat QR fail:",e)}finally{d.value=!1}},w=()=>{const e=window.BASE_INFO?.WX_POLLING_TIME||3e3;v=setInterval(async()=>{try{console.log("🍉 ~ WechatLogin.vue:173 ~ startPolling ~ props:",i);const{data:e}=await ce({uniqueCode:g.value,appId:i.appId,redirectPath:i.path||"",kick:!1});console.log("🍉 ~ WechatLogin.vue:159 ~ startPolling ~ data:",e),0===e.code&&E(e)}catch(e){console.error("Polling error:",e),I()}},e)},E=e=>{switch(e.subcode){case"EXPIRED":case"FOLLOWED_CANCEL":p.value=!0,I();break;case"FOLLOWED_NO_USER":a("need-register",g.value);break;case"FOLLOWED_LOGIN_SUCCESS":I(!1),S(e.data)}},I=(e=!0)=>{e&&(g.value=""),le({uniqueCode:""}),v&&(clearInterval(v),v=null)},k=()=>{C()},S=async e=>{if(e.result&&_(e.result),!0===e.redirect){const t="CPA"===i.appId?"tgc-CPA":"tgc";Gs.set(t,e.tgc,{expires:30})}if(!0===e.hasLogon)try{await We.confirm(i.isEn?"The account has already logged in elsewhere. Do you want to force login?":"该账号已在其他地方登录,是否强制登录?",i.isEn?"Tips":"提示",{confirmButtonText:i.isEn?"Confirm":"确定",cancelButtonText:i.isEn?"Cancel":"取消",customClass:"auth-confirm-kick-popup",type:"warning"}),R()}catch{C()}else T(e.redirectPath)},R=async()=>{d.value=!0;try{const{data:e}=await ce({uniqueCode:g.value,appId:i.appId,redirectPath:i.path||"",kick:!0});console.log("🍉 ~ WechatLogin.vue:279 ~ reLoginWithKick ~ data:",e),0===e.code&&(_(e.data.result),T(e.data.redirectPath))}catch(e){Le.error(i.isEn?"Login failed":"登录失败")}finally{d.value=!1}},T=e=>{localStorage.setItem("jc-qrCode-login","wx"),I(),e&&e.includes("http")&&(window.location.href=e),a("success")};return o(()=>{C()}),N(()=>{I()}),(e,o)=>(l(),s("div",Fc,[m((l(),s("div",Qc,[u("div",{class:c(["qr-canvas-wrapper flex-center",{"qrcode-error-mask":p.value}])},[u("canvas",{ref_key:"qrCanvasRef",ref:r},null,512)],2),p.value?(l(),s("div",{key:0,class:"refresh-overlay flex-center",onClick:k},[o[0]||(o[0]=u("img",{src:"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACgAAAAoCAYAAACM/rhtAAAAAXNSR0IArs4c6QAABNJJREFUWEftmF9oW3UUx7/nl21O8aGDDSqdbGIHe5i6IYWCa28CChO65cbNIVjw3rTDifogm2wgwwgFK6uwh4mO1SRzCLOb5G5tQXHQ3I0JwpRIFSarNE4f9iBScQ+j5v6O/JJcSdJ7kyY3kz54X+/vnPP5nfP7/c4fwgr/aIXz4X/AehFKZ64+ySj8bMYiC37rAnswlZpZiw5sJRHqgsTasqEFhqMM5/0MKzleJ2YFIWFEtU/bCpiamOmk1eJFCdJB3EvAKi8DDPxOoMvEuM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8RxIrxWXnvU1LX36sk1nCwopdRBp5losKSILRkKJYZ2933fCKjyv2rcIXlMvbHFzRIOxqPamUY6GgK6CsqjjxNuo8NMU0LwOZZy2m/0oS7bqtUiyoRhAOWJAt8gDg0asb5vG8H5PjN+gmqqhfvEEbCaSlV1ZHkCzXF5eARwJwPdNcOjvMoU+Zw81UwKXbYHK6Hd8RsTDwDU6zctUK2DYP6CQuLC/HfOdDNgrr2WACth1dRg4+PYukaEuliUvCod58+CxFxl2bSccDb1DraqsN1ygT3YbqBaff8AMdn1OHmbwMgAAAAASUVORK5CYII=",alt:"refresh",class:"refresh-icon"},null,-1)),u("div",Lc,A(t.isEn?"The QR code has expired":"二维码已过期"),1),h(b(ze),{type:"primary",class:"jc:text-white",onClick:y(k,["stop"])},{default:x(()=>[B(A(t.isEn?"Rescan QR code":"重新扫码"),1)]),_:1})])):f("",!0),u("div",Pc,[o[1]||(o[1]=u("img",{src:"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABkAAAAYCAYAAAAPtVbGAAAAAXNSR0IArs4c6QAAAmxJREFUSEvtlU1IVFEUx3/nzkSOhZXSh1QUJBQJFn0sooUM5FBDQRtJCNpIoUELsRCpySfiToiKwiAiaJMDUYsWEdaYmxIljKDoA5ISSkNQBLNp3jvxngY+fdPoxpVn+e4993fe/3/OvcIihCwCgyXIglQOlsuyDOWUgTmJIzHQbQgh4CvCc5T7TP58Rfz67/nQ5kJS1kqQ86icBikGDShER4EORNuIWp9zgfwHaDJE6n0TSA1KAUI/qgWIbAUiwCDCd5RioAjlAcZJELUG/gfyQ55Ze0DuIrIT9AMZOYuhFEMdsBn0JkYeYnMKodqTD64RTVxBRLOBZkFaahFtAtZ7CcqY54WSj2CACZRxRL+AfERI4+gIhF+gvObQxaEgkB+SamkA6lFdG1yVDoDpAV2DchBhxfQ+9y+GUO3A5LURbRicme+HdDUfw5EbU9LMDv0B0o+jGzCyCwIH+ReiXWScGiqaXSm98EM6G4uQyG0ghpDvwyi9QBihFOQd4jxCzRbQSuApqo9BGhFcFe7Q7VzAspy5EPdLd2sZGfsqcABYPg2aAO0HKQR2AOOgwyB5XqcJI6BDICXgeqe9TGoVccuTLXgYU627UbsdZf+04e6hb0DcKrfnmIs/qPYRDp2g/NK37JDOluMY4oS0D5tRlHUgNmgc4bAnW/YYQ7mHceqIWpnskGQyRGWl4+v9W2eWUbKxCqRhypeAUNKgPdimmljiU7Dxue6HZF2EotVHEamfIeVUlgsQfYkt56i4/DZ7C+eC/Ft/YhUSlr0Ysw91ViEy7EHQTaS1nSP+a2bp0ZqvsAETv6DU+W9eFE/+AnQTzRkvOD8VAAAAAElFTkSuQmCC",alt:"wechat"},null,-1)),u("span",null,A(t.isEn?"Scan to login/register":"微信扫码登录/注册JCtrans"),1)])])),[[b(Ge),d.value]])]))}}),[["__scopeId","data-v-8026a83e"]]),Uc={name:"LoginTypeSwitcher",components:{ElRadioGroup:Ke,ElRadioButton:qe},props:{modelValue:{type:String,default:"email"},showAccount:{type:Boolean,default:!1},isEn:{type:Boolean,default:!1}},emits:["update:modelValue","change"],methods:{handleChange(e){this.$emit("update:modelValue",e),this.$emit("change",e)}}},Vc={class:"switcher-content"},Dc={class:"switcher-content"},Mc={class:"switcher-content"};const Oc=/* @__PURE__ */Yo(Uc,[["render",function(e,t,o,n,i,a){const r=R("el-radio-button"),p=R("el-radio-group");return l(),d(p,{class:"login-type-switcher","model-value":o.modelValue,onChange:a.handleChange},{default:x(()=>[o.showAccount?(l(),d(r,{key:0,value:"account"},{default:x(()=>[u("div",Vc,[(l(),s("svg",{class:c(["switcher-icon",{"is-active":"account"===o.modelValue}]),viewBox:"0 0 1024 1024",xmlns:"http://www.w3.org/2000/svg"},[...t[0]||(t[0]=[u("path",{d:"M113.242353 250.217412l356.352 356.412235a60.235294 60.235294 0 0 0 80.655059 4.156235l4.577882-4.156235 356.111059-356.171294c1.204706 4.397176 1.987765 8.914824 2.409412 13.552941l0.240941 6.987294v481.882353c0 42.345412-32.768 77.101176-74.270118 80.112941l-6.023529 0.240942H190.765176a80.293647 80.293647 0 0 1-80.112941-74.330353l-0.180706-6.02353v-481.882353c0-4.818824 0.421647-9.456941 1.204706-14.034823l1.505883-6.746353z m720.052706-59.512471c4.818824 0 9.637647 0.421647 14.215529 1.204706l6.866824 1.566118-342.136471 342.13647-342.256941-342.13647c4.397176-1.204706 9.035294-2.048 13.673412-2.409412l7.107764-0.361412h642.529883z"},null,-1)])],2)),u("span",null,A(o.isEn?"Password":"账号密码"),1)])]),_:1})):f("",!0),h(r,{value:"email"},{default:x(()=>[u("div",Dc,[(l(),s("svg",{class:c(["switcher-icon",{"is-active":"email"===o.modelValue}]),viewBox:"0 0 1024 1024",xmlns:"http://www.w3.org/2000/svg"},[...t[1]||(t[1]=[u("path",{d:"M113.242353 250.217412l356.352 356.412235a60.235294 60.235294 0 0 0 80.655059 4.156235l4.577882-4.156235 356.111059-356.171294c1.204706 4.397176 1.987765 8.914824 2.409412 13.552941l0.240941 6.987294v481.882353c0 42.345412-32.768 77.101176-74.270118 80.112941l-6.023529 0.240942H190.765176a80.293647 80.293647 0 0 1-80.112941-74.330353l-0.180706-6.02353v-481.882353c0-4.818824 0.421647-9.456941 1.204706-14.034823l1.505883-6.746353z m720.052706-59.512471c4.818824 0 9.637647 0.421647 14.215529 1.204706l6.866824 1.566118-342.136471 342.13647-342.256941-342.13647c4.397176-1.204706 9.035294-2.048 13.673412-2.409412l7.107764-0.361412h642.529883z"},null,-1)])],2)),u("span",null,A(o.isEn?"Email":"邮箱"),1)])]),_:1}),h(r,{value:"mobile"},{default:x(()=>[u("div",Mc,[(l(),s("svg",{class:c(["switcher-icon",{"is-active":"mobile"===o.modelValue}]),viewBox:"0 0 1024 1024",xmlns:"http://www.w3.org/2000/svg"},[...t[2]||(t[2]=[u("path",{d:"M694.874353 918.949647c-57.825882-2.108235-221.726118-24.696471-393.336471-196.367059-171.610353-171.550118-194.258824-335.450353-196.367058-393.33647-3.252706-88.124235 64.271059-173.778824 142.336-207.209412a59.030588 59.030588 0 0 1 58.006588 6.324706c64.210824 46.863059 108.604235 117.639529 146.672941 173.357176 17.227294 25.178353 13.071059 59.512471-10.24 79.75153L363.52 439.717647a19.275294 19.275294 0 0 0-5.722353 24.696471c17.709176 32.346353 49.332706 80.353882 85.473882 116.495058 36.141176 36.141176 86.437647 69.752471 120.952471 89.509648a19.395765 19.395765 0 0 0 25.840941-6.445177l50.959059-77.703529c19.516235-25.961412 56.018824-31.623529 82.582588-13.251765 56.500706 39.092706 122.458353 82.642824 170.706824 144.444235a59.030588 59.030588 0 0 1 7.589647 59.632941c-33.611294 78.426353-118.663529 145.167059-207.088941 141.914353z"},null,-1)])],2)),u("span",null,A(o.isEn?"Cell Phone":"手机号"),1)])]),_:1})]),_:1},8,["model-value","onChange"])}],["__scopeId","data-v-0b836d4d"]]),Jc="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACAAAAAgCAYAAABzenr0AAAAAXNSR0IArs4c6QAAAUxJREFUWEftloFNAkEURN90YAlaiVKBloAVKBUIFYgVKBVoB9KBdiAl0MGaSfbMgqu7id+gyf2EAFmOeTd/9t+KA5cOrM8IMDoQ4kBKaQqc5kCvJK17wx0FsASusuhMkr93VRTANXCbFdeSJl3qELMNU0rHwFsW3QInkvzerBAHrJJSegbOsuJS0qypHuVABrC4IYaaSlq1IMIcyBCPwEUhOpe0+A4iGuAIeAGciaE2gCEcTn/eqR2A3Mfy4paDtXVD+FUrB3Mi6XVY3Adwkn8K0II2wMeg+nMAEXd/X2xHu2Hb75wBwBnYljMiOoQ3wLzogYW9E74cSmEAe9PQDAtJJUw1G5EA5SR8kHTZSqPXQwAqd+9nwac9XwOKAvB5wOFzHeRpWJ4HunpfHUQ9Pav9JqVkgPO85gPJU+9/hbSgV+zXMjACjA78awfeAcb6aCEtUXPAAAAAAElFTkSuQmCC",jc={redirect:!1,redirectPath:"",tgc:"",thirdPartyInfo:{thirdPartyEmail:"new_user@gmail.com",thirdPartyId:"999888777",thirdPartyType:"FACEBOOK",thirdPartyUserName:"New User"},mobileEmailList:[]};function zc(t){const n=e(!1),i=e(null),a=e(!1),r=e(!1),s=e([]),l=e(!1);let c=null,u=null;const d="current_login_type",h="jc_auth_state_check",p="jc_auth_active_instance",f=Math.random().toString(36).substring(2,15),m=e=>new URLSearchParams(window.location.search).get(e),g=()=>{u&&(clearInterval(u),u=null),c=null},v=()=>{console.log("🧹 [Reset] 重置所有登录状态"),g(),window.removeEventListener("message",A),n.value=!1,i.value=null,a.value=!1,r.value=!1,l.value=!1,s.value=[],sessionStorage.removeItem(d),sessionStorage.removeItem(p),sessionStorage.removeItem(h)},A=async e=>{if(![window.location.origin,"https://passport.jctrans.com","https://passport-sit.jctrans.net.cn","http://localhost:8080","http://localhost:8086","http://localhost:8093"].includes(e.origin))return void console.warn("收到未知来源的消息:",e.origin);const{type:t,code:o,state:n}=e.data||{};if("THIRD_PARTY_LOGIN_CODE"===t&&o&&n){if(sessionStorage.getItem(p)!==f)return;if(sessionStorage.getItem(h)!==n)return;console.log(`🍉 [Main] 实例 ${f} 收到 Code:`,o,n),window.removeEventListener("message",A),g();const e=sessionStorage.getItem(d);if("TEST"===e){console.log("🍉 [Main] 测试模式:模拟接口返回");const e=jc;setTimeout(()=>{C(e)},500)}else await y(o,e)}},y=async(e,o)=>{const i=Y(),a={thirdPartyCode:e,appId:t.appId,redirectPath:t.redirectPath||"/",activityCode:i?.activityCode||"",referenceUserId:i?.referenceUserId||""};try{let e;"FACEBOOK"===o?e=await ue(a):"LINKEDIN"===o&&(e=await de(a)),e&&e.data&&C(e.data)}catch(r){console.error("Login API Error:",r),t.onError&&t.onError(r),v()}finally{n.value=!1,sessionStorage.removeItem(d),sessionStorage.removeItem(p)}},C=e=>{if(console.log("🍉 处理登录结果:",e),i.value=e,n.value=!1,((e,t)=>{e.thirdPartyId&&sessionStorage.setItem("jc-auth-thirdPartyId",e.thirdPartyId),e.thirdPartyEmail&&sessionStorage.setItem("jc-auth-thirdPartyEmail",e.thirdPartyEmail),e.thirdPartyType&&sessionStorage.setItem("jc-auth-thirdPartyType",e.thirdPartyType),e.thirdPartyUserName&&sessionStorage.setItem("jc-auth-thirdPartyUserName",e.thirdPartyUserName),t&&t.length>0&&sessionStorage.setItem("jc-auth-mobileEmailList",JSON.stringify(t))})(e.thirdPartyInfo,e.mobileEmailList),e.redirect&&e.tgc){const o="CPA"===t.appId?"tgc-CPA":"tgc";Gs.set(o,e.tgc,{expires:30})}const o=e.mobileEmailList||[];if(o.length>0)console.log("👉 进入绑定流程"),s.value=o,a.value=!0,r.value=!1,t.onNeedBind&&t.onNeedBind(o);else if(e.redirect)if(console.log("👉 直接登录成功,准备跳转"),a.value=!1,r.value=!1,t.onSuccess)t.onSuccess(e);else{const o=e.redirectPath||t.redirectPath;o&&(o.includes("http")?window.location.href=o:window.location.href=window.location.origin+o)}else console.log("👉 进入注册流程"),a.value=!1,s.value=[],r.value=!0};return o(()=>{(()=>{if(window.opener&&window.opener!==window){const e=m("code"),t=m("state");e&&(console.log("🍉 [Popup] Vue 环境拿到 Code,准备回传:",e),window.opener.postMessage({type:"THIRD_PARTY_LOGIN_CODE",code:e,state:t},"*"),window.close())}})()}),N(()=>{window.removeEventListener("message",A),v()}),{isLoading:n,isBindDialogVisible:a,isRegisterVisible:r,isUserClosed:l,bindList:s,loginResult:i,startLogin:e=>{if(n.value)return;v(),window.addEventListener("message",A),n.value=!0,sessionStorage.setItem(d,e),sessionStorage.setItem(p,f);const o="jc_"+Math.random().toString(36).slice(2);sessionStorage.setItem(h,o);const i=t.baseUrl||window.location.origin+window.location.pathname;let a="";if("TEST"===e){const e=window.location.hostname.includes("jctrans.com"),t=window.location.hostname.includes("sit2"),n=window.location.hostname.includes("sit");a=`${e?"https://passport.jctrans.com/mock_auth.html":t?"https://passport-sit2.jctrans.net.cn/mock_auth.html":n?"https://passport-sit.jctrans.net.cn/mock_auth.html":"https://passport-sit.jctrans.net.cn/mock_auth.html"}?redirect_uri=${encodeURIComponent(i)}&state=${o}`}else if("FACEBOOK"===e){a=`${"https://www.facebook.com/v22.0/dialog/oauth"}?client_id=${"1819580562224685"}&redirect_uri=${encodeURIComponent(i)}&state=${o}&scope=email,public_profile&display=popup`}else if("LINKEDIN"===e){a=`${"https://www.linkedin.com/oauth/v2/authorization"}?response_type=code&client_id=${"86t0770jygwztk"}&redirect_uri=${encodeURIComponent(i)}&state=${o}&scope=profile%20email%20openid`}const r=(window.screen.width-600)/2,s=(window.screen.height-700)/2;if(console.log(`🍉 打开弹窗 [${e}]: ${a}`),c=window.open(a,"ThirdPartyLogin",`width=600,height=700,top=${s},left=${r},toolbar=no,menubar=no,scrollbars=yes`),!c)return console.error("Popup blocked by browser"),void(n.value=!1);u=setInterval(()=>{c&&c.closed&&(console.log("🍉 检测到弹窗被手动关闭,执行 Reset"),v(),l.value=!0)},1e3)},resetState:v}}const Hc={name:"RegisterForm",components:{ElDialog:Ve,ElForm:De,ElFormItem:Je,ElInput:Ue,ElButton:ze,ElCheckbox:je,ElSelect:Pe,ElOption:Ne,ElRadioGroup:Ke,ElRadioButton:qe,JcFloatInput:aa,CodeInput:fs,JcFloatWrapper:Ls,JcSearch:_o,ChineseCompanySearch:qi,GoogleInput:Xi,ApplyJoinBtn:qs},props:{isEn:Boolean},computed:{isAgree(){return this.form.agree},countryId(){return this.form.city?.raw?.country?.id},cityId(){return this.form.city?.id},currentCountryIsChina(){const e=this.countryId||this.resistCompanyInfo?.countryId;return[1,75,71,100].includes(Number(e))},currentCompanyLabel(){return this.isEn?this.currentCountryIsChina?"Company Name in Chinese":"Company Name in English":this.currentCountryIsChina?"公司中文名称":"公司英文名称"}},data(){return{appId:"ERA",codeReady:!1,companyResistEn:!1,companyResistCn:!1,verifyData:{},form:{city:"",cityId:"",companyName:"",countryId:"",email:"",phone:"",code:"",password:"",sector:"Logistics",agree:!1,useKq:!1,kqCode:"",kqInfo:null,areaCode:"+86",nameCn:"",nameEn:""},sectors:[{cn:"货代",en:"Freight Forwarder",value:"Logistics"},{cn:"货主",en:"Trader",value:"Trade"},{cn:"衍生产品供应商",en:"Vendor",value:"Service"}],rules:{city:[{required:!0,message:this.isEn?"Please select a city":"请选择所在地",trigger:["change","blur"]}],companyName:[{required:!0,validator:(e,t,o)=>Ms(0,t,o,this.isEn,this),trigger:"blur"}],nameCn:[{required:!0,validator:(e,t,o)=>Us(0,t,o,this.isEn,!0),trigger:"blur"}],nameEn:[{required:!0,validator:(e,t,o)=>Us(0,t,o,this.isEn,!1),trigger:"blur"}],email:[{required:!0,validator:(e,t,o)=>Ns(0,t,o,this.isEn),trigger:"blur"}],phone:[{required:!0,validator:(e,t,o)=>Ds(0,t,o,this.isEn),trigger:"blur"}],code:[{required:!0,validator:(e,t,o)=>Os(0,t,o,this.isEn),trigger:"blur"}],password:[{required:!0,validator:(e,t,o)=>Vs(0,t,o,this.isEn),trigger:"blur"}],agree:[{validator:(e,t,o)=>t?o():o(new Error),trigger:"change"}]},isCounting:!1,areaCodeData:[],mobileUid:"",emailUid:"",hasResistCompany:!1,resistCompanyInfo:null,loading:!1}},mounted(){this.getAreaCodeData(),this.findDict(),this.inviteJoinGetComp()},methods:{go2Agreement:Js,getAuthSessionItems:Y,go2Policy:js,async inviteJoinGetComp(){const e=Y().compKey;if(!e)return;const{data:t}=await inviteJoinGetComp({key:e});this.hasResistCompany=!0,this.resistCompanyInfo=t.data},findDict(){ae({dictType:"cmc_company_industry_sector"}).then(e=>{console.log("🍉 ~ RegisterForm.vue:527 ~ res:",e);const t=[{cn:"货代",en:"Freight Forwarder",value:"Logistics"},{cn:"货主",en:"Trader",value:"Trade"},{cn:"衍生产品供应商",en:"Vendor",value:"Service"}];this.sectors=e.data.data.records.map(e=>({...e,...t.find(t=>t.value===e.dictValue)}))}).catch(e=>{console.log("🍉 ~ RegisterForm.vue:527 ~ err:",e)})},async getAreaCodeData(){const e=await ie();this.areaCodeData=e.data.data.records},handleSelectCity(e){this.form.cityId=e.id,this.form.countryId=e.raw?.country?.id,this.$nextTick(()=>{this.form.companyName&&this.$refs.registerFormRef.validateField("companyName"),this.$refs.registerFormRef.validateField("city")})},validateField(e){this.$refs.registerFormRef&&this.$refs.registerFormRef.validateField(e,t=>{"email"!==e&&"phone"!==e||(this.codeReady=t)})},handleGetCode({captchaData:e,startTimer:t}){this.verifyData=e;const o={target:this.form.email||this.form.phone,uuid:e.uuid,code:e.code};let n=ne,i=this.isEn?"A verification code will be sent to your email and it will be expired after 5 minutes. Please do not share your verification code with anyone.":"验证码将会发送到您的邮箱,5分钟后失效。请不要与任何人分享您的验证码。";this.currentCountryIsChina&&(n=re,i=this.isEn?"A verification code will be sent to your phone and it will be expired after 5 minutes. Please do not share your verification code with anyone.":"验证码将会发送到您的手机,5分钟后失效。请不要与任何人分享您的验证码。"),n(o).then(e=>{const o=e.data.data?.verifyCode||e.data.verifyCode;0===e.data.code&&o&&(this.currentCountryIsChina?this.mobileUid=o:this.emailUid=o,t(),Le.success(i))}).catch(e=>{console.error(e)}),console.log("发送注册验证码")},handleRegister(){this.$refs.registerFormRef.validate(e=>{if(!e)return;const t=this.getAuthSessionItems(),{thirdPartyId:o,thirdPartyEmail:n,thirdPartyType:i,thirdPartyUserName:a}={thirdPartyId:sessionStorage.getItem("jc-auth-thirdPartyId")||"",thirdPartyEmail:sessionStorage.getItem("jc-auth-thirdPartyEmail")||"",thirdPartyType:sessionStorage.getItem("jc-auth-thirdPartyType")||"",thirdPartyUserName:sessionStorage.getItem("jc-auth-thirdPartyUserName")||"",mobileEmailList:JSON.parse(sessionStorage.getItem("jc-auth-mobileEmailList")||"[]")};let r={appId:this.appId,fromSys:this.appId,passwd:Xr.MD5(this.form.password).toString(),industrySector:this.form.sector,uuid:this.verifyData.uuid,code:this.verifyData.code,clickSource:t.clickSource||"",activityCode:t.activityCode||"",referenceUserId:t.referenceUserId||"",inviterEmpNo:t.empNo||"",registerType:t.registerType||"",registerEvent:t.registerEvent||"",thirdPartyId:o,thirdPartyEmail:n,thirdPartyType:i,thirdPartyUserName:a};this.currentCountryIsChina?Object.assign(r,{type:"MOBILE",areaCode:this.form.areaCode,areaCodeCountryId:this.areaCodeData.find(e=>e.telCode===this.form.areaCode)?.id,account:oe(this.form.phone),verificationCodeVal:this.form.code,verificationCodeUuid:this.mobileUid||this.form.codeUuid}):Object.assign(r,{type:"EMAIL",account:oe(this.form.email),verificationCodeVal:this.form.code,verificationCodeUuid:this.emailUid||this.form.codeUuid}),this.hasResistCompany?this.handleApplyJoinSubmit(r):this.handleNewCompanySubmit(r)})},async handleNewCompanySubmit(e){const t={...e,cityId:this.form.cityId,countryId:this.form.countryId,compNameCn:this.form.companyName,compNameEn:this.form.companyName,industrySector:this.form.sector,...this.form.kqInfo};this.$emit("register",t),this.loading=!0;try{const e=await pe(t);this.handlePostRegister(e)}catch(o){this.loading=!1}},async handleApplyJoinSubmit(e){this.getAuthSessionItems();const t={...e,compId:this.resistCompanyInfo.compId};this.form.nameCn&&(t.nameCn=this.form.nameCn),this.form.nameEn&&(t.nameEn=this.form.nameEn);["industrySector","compNameEn","compNameCn","countryId","cityId","inviterEmpNo","fromSys"].forEach(e=>delete t[e]),this.$emit("register",t),this.loading=!0;try{const e=await he(t);this.handlePostRegister(e)}catch(o){this.loading=!1}},handlePostRegister(e){const t=this.getAuthSessionItems();if(0===e.data.code)if(console.log("🍉 ~ RegisterForm.vue:717 ~ res.data:",e.data.data,e.data.data.redirect),e.data.data.redirect)try{Gs.set("tgc",e.data.data.tgc,{expires:30});const o=e.data.data.redirectPath||t.path||"/";console.log("🍉 ~ RegisterForm.vue:725 ~ redirectPath:",o),Z()}catch(o){console.log("🍉 ~ RegisterForm.vue:737 ~ error:",o)}else this.loading=!1,Le.success(this.isEn?"Registration successful, pending review":"注册成功,请等待审核");else this.loading=!1,Le.error(e.data.msg)}}},qc={class:"third-register-form-container"},Kc={class:"resist-company-info-card"},Gc={class:"card-header"},Wc={class:"company-content"},Yc={class:"company-name"},_c={class:"location-info"},Zc={class:"sector-section"},Xc={class:"sector-label"},$c={class:"sector-group"},eu=["onClick"],tu={key:0,class:"icon-auth-checked"},ou={class:"agree-text"};const nu=/* @__PURE__ */Yo(Hc,[["render",function(e,t,o,n,i,a){const r=R("JcSearch"),p=R("JcFloatWrapper"),m=R("el-form-item"),C=R("ChineseCompanySearch"),w=R("ApplyJoinBtn"),E=R("JcFloatInput"),b=R("el-option"),I=R("el-select"),k=R("google-input"),S=R("CodeInput"),T=R("el-checkbox"),F=R("el-button"),Q=R("el-form");return l(),s("div",qc,[h(Q,{ref:"registerFormRef",model:i.form,rules:i.rules,class:"auth-form"},{default:x(()=>[i.hasResistCompany?(l(),s(g,{key:1},[u("div",Kc,[u("div",Gc,[t[21]||(t[21]=u("div",{class:"title-group"},[u("span",{class:"tip-text"}," Company Name")],-1)),u("span",{class:"change-link",onClick:t[6]||(t[6]=e=>i.hasResistCompany=!1)},A(o.isEn?"Change":"修改"),1)]),u("div",Wc,[u("h4",Yc,A(o.isEn?i.resistCompanyInfo.compNameEn:i.resistCompanyInfo.compNameCn||i.resistCompanyInfo.compNameEn),1)]),t[22]||(t[22]=u("div",{class:"card-header"},[u("div",{class:"title-group"},[u("span",{class:"tip-text"}," Location(City)")])],-1)),u("div",_c,A(o.isEn?i.resistCompanyInfo.countryNameEn:i.resistCompanyInfo.countryNameCn)+" / "+A(o.isEn?i.resistCompanyInfo.cityNameEn:i.resistCompanyInfo.cityNameCn),1)]),h(m,{prop:a.currentCountryIsChina?"nameCn":"nameEn",class:"name-input-item"},{default:x(()=>[h(E,{modelValue:i.form[a.currentCountryIsChina?"nameCn":"nameEn"],"onUpdate:modelValue":t[7]||(t[7]=e=>i.form[a.currentCountryIsChina?"nameCn":"nameEn"]=e),label:a.currentCountryIsChina?o.isEn?"Your Full Name in Chinese":"您的中文名称":o.isEn?"Your Full Name in English":"您的名称",placeholder:o.isEn?"Please enter your name to prove your identity":"请输入您的姓名,以证明您的身份"},{prefix:x(()=>[...t[23]||(t[23]=[u("i",{class:"icon-auth-user"},null,-1)])]),_:1},8,["modelValue","label","placeholder"])]),_:1},8,["prop"])],64)):(l(),s(g,{key:0},[h(m,{prop:"city"},{default:x(()=>[h(p,{label:o.isEn?"Location (City)":"所在地(城市)","has-value":!(!i.form.city||!i.form.city.id)},{default:x(()=>[h(r,{modelValue:i.form.city,"onUpdate:modelValue":t[0]||(t[0]=e=>i.form.city=e),class:"jc:my-0! search-city-item","show-search-icon":!1,style:{"--original-text-main":"#232324"},"search-type-list":["City"],onSelect:a.handleSelectCity},{prefix:x(()=>[...t[19]||(t[19]=[u("i",{class:"icon-auth-location"},null,-1)])]),_:1},8,["modelValue","onSelect"])]),_:1},8,["label","has-value"])]),_:1}),h(m,{prop:"companyName"},{default:x(()=>[h(p,{label:a.currentCompanyLabel},{default:x(()=>[h(C,{class:"jc:my-0! search-company-item","company-name":i.form.companyName,"onUpdate:companyName":t[1]||(t[1]=e=>i.form.companyName=e),useKq:i.form.useKq,"onUpdate:useKq":t[2]||(t[2]=e=>i.form.useKq=e),kqCode:i.form.kqCode,"onUpdate:kqCode":t[3]||(t[3]=e=>i.form.kqCode=e),kqInfo:i.form.kqInfo,"onUpdate:kqInfo":t[4]||(t[4]=e=>i.form.kqInfo=e),"country-id":i.form.city?.raw?.country?.id||null},{prefix:x(()=>[...t[20]||(t[20]=[u("i",{class:"icon-auth-company"},null,-1)])]),_:1},8,["company-name","useKq","kqCode","kqInfo","country-id"])]),_:1},8,["label"])]),_:1}),i.companyResistCn||i.companyResistEn?(l(),d(w,{key:0,onApplyJoin:t[5]||(t[5]=()=>i.hasResistCompany=!0)})):f("",!0)],64)),a.currentCountryIsChina?(l(),d(m,{key:2,ref:"areaCodeCountryId",class:"phone-form-item"},{default:x(()=>[(l(),d(m,{prop:"phone",ref:"phone",key:8,class:"tel-mobile","inline-message":!0},{default:x(()=>[h(k,{modelValue:i.form.phone,"onUpdate:modelValue":t[10]||(t[10]=e=>i.form.phone=e),placeholder:o.isEn?"Cell Phone Number":"手机号码",label:o.isEn?"Cell Phone Number":"手机号码",clearable:"",autocomplete:"off",onBlur:t[11]||(t[11]=e=>a.validateField("phone")),maxlength:"15",disabled:i.isCounting},{prefix:x(()=>[t[24]||(t[24]=u("i",{class:"icon-auth-phone"},null,-1)),h(m,{prop:"areaCode",class:"tel-areacode","inline-message":!0},{default:x(()=>[h(I,{modelValue:i.form.areaCode,"onUpdate:modelValue":t[8]||(t[8]=e=>i.form.areaCode=e),placeholder:o.isEn?"Code":"区号",onChange:t[9]||(t[9]=e=>a.validateField("areaCode")),disabled:i.isCounting,"popper-class":"jc-area-code-select-wrapper"},{default:x(()=>[(l(!0),s(g,null,v(i.areaCodeData,e=>(l(),d(b,{key:e.id,label:e.telCode,value:e.telCode},null,8,["label","value"]))),128)),h(b,{label:"+86",value:"+86"})]),_:1},8,["modelValue","placeholder","disabled"])]),_:1})]),_:1},8,["modelValue","placeholder","label","disabled"])]),_:1}))]),_:1},512)):f("",!0),a.currentCountryIsChina?f("",!0):(l(),d(m,{key:3,prop:"email",class:"email-form-item"},{default:x(()=>[h(E,{modelValue:i.form.email,"onUpdate:modelValue":t[12]||(t[12]=e=>i.form.email=e),label:o.isEn?"Business Email Address":"企业邮箱",placeholder:o.isEn?"Business Email Address, QQ Mail is not available":"请输入您的企业邮箱,暂不支持QQ邮箱",onBlur:t[13]||(t[13]=e=>a.validateField("email"))},{prefix:x(()=>[...t[25]||(t[25]=[u("i",{class:"icon-auth-email"},null,-1)])]),_:1},8,["modelValue","label","placeholder"])]),_:1})),h(m,{prop:"code"},{default:x(()=>[h(S,{modelValue:i.form.code,"onUpdate:modelValue":t[14]||(t[14]=e=>i.form.code=e),placeholder:o.isEn?"Verification Code":"验证码",ready:i.codeReady,"is-en":o.isEn,"show-icon":"",onSend:a.handleGetCode},{prefix:x(()=>[...t[26]||(t[26]=[u("i",{class:"icon-verify"},null,-1)])]),_:1},8,["modelValue","placeholder","ready","is-en","onSend"])]),_:1}),h(m,{prop:"password",class:"password-form-item"},{default:x(()=>[h(E,{modelValue:i.form.password,"onUpdate:modelValue":t[15]||(t[15]=e=>i.form.password=e),type:"password","show-password":"",class:"input-show-pass",label:o.isEn?"Password":"密码",placeholder:o.isEn?"Password, 6-20 characters include letters, numbers and symbols":"密码,6-20位字符,包含字母、数字和符号"},{prefix:x(()=>[...t[27]||(t[27]=[u("i",{class:"icon-auth-password"},null,-1)])]),_:1},8,["modelValue","label","placeholder"])]),_:1}),u("div",Zc,[u("p",Xc,A(o.isEn?"Industry Sector":"所属行业"),1),u("div",$c,[(l(!0),s(g,null,v(i.sectors,e=>(l(),s("div",{key:e.value,class:c(["sector-item",{active:i.form.sector===e.value}]),onClick:t=>i.form.sector=e.value},[B(A(o.isEn?e.en:e.cn)+" ",1),i.form.sector===e.value?(l(),s("i",tu)):f("",!0)],10,eu))),128))])]),h(m,{prop:"agree",class:"agree-item"},{default:x(()=>[h(T,{modelValue:i.form.agree,"onUpdate:modelValue":t[18]||(t[18]=e=>i.form.agree=e)},{default:x(()=>[u("span",ou,[B(A(o.isEn?"I agree":"我同意")+" ",1),u("span",{class:"link-type",onClick:t[16]||(t[16]=y((...e)=>a.go2Agreement&&a.go2Agreement(...e),["stop"]))},A(o.isEn?"User Agreement":"《用户条款和协议》"),1),B(" "+A(o.isEn?"and":"和")+" ",1),u("span",{class:"link-type",onClick:t[17]||(t[17]=y((...e)=>a.go2Policy&&a.go2Policy(...e),["stop"]))},A(o.isEn?"Privacy Policy":"《隐私政策》"),1)])]),_:1},8,["modelValue"])]),_:1}),h(F,{class:c(["submit-btn register-btn",{"register-btn-is-active":a.isAgree}]),disabled:!a.isAgree||i.loading,loading:i.loading,onClick:a.handleRegister},{default:x(()=>[B(A(o.isEn?"Register and Log in":"注册并登录")+" ",1),t[28]||(t[28]=u("i",{class:"el-icon-right",style:{"margin-left":"8px"}},null,-1))]),_:1},8,["class","disabled","loading","onClick"])]),_:1},8,["model","rules"])])}],["__scopeId","data-v-f24e4b76"]]),iu={class:"third-login-container"},au={class:"login-btns"},ru={key:0},su={key:1,class:"jc:mt-4"},lu={key:2,class:"bind-container"},cu={class:"bind-title"},uu={key:0,class:"user-list"},du=["onClick"],hu={class:"bind-user-card__right"},pu={class:"bind-user-card__right__title"},fu={class:"bind-user-card__right__desc"},mu={key:0,class:"bind-user-card__right__info"},gu={key:1,class:"bind-user-card__right__info"},vu={class:"bind-user-card__btn"},Au={key:1,class:"bind-form-content"},yu={class:"current-bind-info"},Cu={class:"highlight"},wu={class:"register-bottom"},Eu=/* @__PURE__ */Yo(/* @__PURE__ */i({__name:"ThirdLogin",props:{isEn:{type:Boolean,default:!1},loginType:{type:String,default:"TEST"}},emits:["to-login"],setup(o,{expose:n,emit:i}){const a=o,c=i,p=window.location.hostname.includes("jctrans.com"),C=window.location.hostname.includes("sit2"),w=(window.location.hostname.includes("sit"),p?"https://passport.jctrans.com":C?"https://passport-sit2.jctrans.net.cn":"https://passport-sit.jctrans.net.cn"),{isLoading:E,isBindDialogVisible:I,isUserClosed:S,bindList:R,isRegisterVisible:T,startLogin:F}=zc({appId:"ERA",baseUrl:`${w}/oauth_callback.html`});r(S,e=>{e&&(Le.error(a.isEn?"You have canceled the login.":"您取消了登录。"),c("to-login"))});n({initLogin:e=>{console.log("🍉 ~ ThirdLogin.vue:292 ~ handleStartLogin ~ type:",e);const t="facebook"===e?"FACEBOOK":"linkedin"===e?"LINKEDIN":e;t&&F(t)}});const Q=e(!1),L=e(null),P=t(()=>L.value?L.value:1===R.value.length?R.value[0]:null),N=e(),U=e({type:"account",username:"",password:"",email:"",phone:"",areaCode:"+86",code:""}),V=e([]),D=e(!0),M=e(!1),O=e(""),J=e(""),j=e({});let z=null;r(P,e=>{e&&(U.value.username=e.account||"",U.value.email=e.email||"",U.value.phone=e.mobile||"",e.account?U.value.type="account":e.email?U.value.type="email":U.value.type="mobile",e.mobile&&0===V.value.length&&ie().then(e=>V.value=e.data.data.records))});const H=t(()=>{const e={username:[{required:!0,trigger:"blur",message:a.isEn?"Enter Username":"请输入账号"}],password:[{required:!0,trigger:"blur",message:a.isEn?"Enter Password":"请输入密码"}],email:[{required:!0,validator:(e,t,o)=>{Ns(0,t,o,a.isEn)},trigger:"blur"}],phone:[{required:!0,validator:(e,t,o)=>{Ds(0,t,o,a.isEn)},trigger:"blur"}],code:[{required:!0,validator:(e,t,o)=>Os(0,t,o,a.isEn),trigger:"blur"}]};return"account"===U.value.type?{username:e.username,password:e.password}:{code:e.code,..."email"===U.value.type?{email:e.email}:{phone:e.phone}}}),q=e=>{L.value=e},K=async e=>{if(N.value?.clearValidate(),"mobile"==e&&0===V.value.length){const e=await ie();V.value=e.data.data.records}},G=e=>{N.value?.validateField(e,e=>{D.value=e})},W=({captchaData:e,startTimer:t})=>{j.value=e,z=t,Y(e)},Y=e=>{const t="mobile"===U.value.type,o={target:t?U.value.phone:U.value.email,uuid:e.uuid,code:e.code};t&&(o.areaCode=U.value.areaCode);(t?re:ne)(o).then(e=>{const o=e.data.data?.verifyCode||e.data.verifyCode;0!==e.data.code&&200!==e.data.code||(t?O.value=o:J.value=o,z&&z(),Le.success(a.isEn?"Code sent":"验证码已发送"))}).catch(console.error)},_=()=>{N.value?.validate(e=>{if(e)if("account"===U.value.type)M.value=!0;else{if(!O.value&&!J.value)return Le.error(a.isEn?"Please get code first":"请先获取验证码");X({})}})},Z=e=>{M.value=!1,X(e)},X=e=>{Q.value=!0;const t={thirdPartyType:sessionStorage.getItem("current_login_type"),userId:P.value.userId,kick:!0,appId:"ERA"};let o;if("account"===U.value.type)o=fe({...t,account:U.value.username,password:Xr.MD5(U.value.password).toString(),verificationCodeUuid:e.uuid,verificationCodeValue:e.code});else{const e="mobile"===U.value.type;o=me({...t,type:e?"MOBILE":"EMAIL",account:e?U.value.phone:U.value.email,verificationCodeUuid:e?O.value:J.value,verificationCodeValue:U.value.code})}o.then(e=>{"USER_HAS_OTHER_BIND"!==e.data.subCode?(e.data.tgc&&Gs.set("tgc",e.data.tgc,{expires:30}),e.data.redirectPath?window.location.href=e.data.redirectPath.includes("http")?e.data.redirectPath:window.location.origin+e.data.redirectPath:window.location.reload()):Le.error(a.isEn?"Bound to other user":"该账号已绑定其他用户")}).finally(()=>{Q.value=!1})};return(e,t)=>m((l(),s("div",iu,[m(u("div",au,[t[15]||(t[15]=B(" Third Login... ",-1)),u("div",{class:"btn linkedin",onClick:t[0]||(t[0]=e=>b(F)("TEST"))},"TEST"),u("div",{class:"btn linkedin",onClick:t[1]||(t[1]=e=>b(F)("LINKEDIN"))},"LINKEDIN"),u("div",{class:"btn facebook",onClick:t[2]||(t[2]=e=>b(F)("FACEBOOK"))},"FACEBOOK")],512),[[k,!1]]),b(S)?(l(),s("div",ru,A((o.isEn,"")),1)):f("",!0),b(T)?(l(),s("div",su,[h(nu,{"is-en":o.isEn},null,8,["is-en"])])):f("",!0),b(I)?(l(),s("div",lu,[u("div",cu,[B(A(P.value?o.isEn?"Log in and link":"绑定并登录":o.isEn?"Select account to link":"请选择要关联的账号")+" ",1),P.value&&b(R).length>1?(l(),s("div",{key:0,class:"back-btn",onClick:t[3]||(t[3]=e=>L.value=null)},A(o.isEn?"< Back":"< 返回选择"),1)):f("",!0)]),h(us,{visible:M.value,"onUpdate:visible":t[4]||(t[4]=e=>M.value=e),"is-en":o.isEn,onSuccess:Z},null,8,["visible","is-en"]),P.value?(l(),s("div",Au,[u("div",yu,[u("span",null,A(o.isEn?"Binding Account:":"正在绑定账号:"),1),u("span",Cu,A(P.value.account||P.value.email||P.value.mobile),1)]),h(b(De),{ref_key:"bindLoginFormRef",ref:N,model:U.value,rules:H.value,"validate-on-rule-change":!1,class:"wechat-bind-login-form-content"},{default:x(()=>[h(b(Je),{prop:"type",class:"form-type"},{default:x(()=>[h(Oc,{modelValue:U.value.type,"onUpdate:modelValue":t[5]||(t[5]=e=>U.value.type=e),"is-en":o.isEn,"show-account":"",class:"jc:max-w-full!",onChange:K},null,8,["modelValue","is-en"])]),_:1}),"account"===U.value.type?(l(),s(g,{key:0},[h(b(Je),{prop:"username",class:"form-user"},{default:x(()=>[h(Xi,{modelValue:U.value.username,"onUpdate:modelValue":t[6]||(t[6]=e=>U.value.username=e),disabled:"",placeholder:o.isEn?"Username/Email/Phone Number":"用户名/邮箱/手机号"},null,8,["modelValue","placeholder"])]),_:1}),h(b(Je),{prop:"password",class:"password-item"},{default:x(()=>[h(Xi,{modelValue:U.value.password,"onUpdate:modelValue":t[7]||(t[7]=e=>U.value.password=e),type:"password",class:"input-show-pass",placeholder:o.isEn?"Password":"密码","show-password":""},null,8,["modelValue","placeholder"])]),_:1})],64)):"email"===U.value.type?(l(),d(b(Je),{key:1,prop:"email"},{default:x(()=>[h(Xi,{modelValue:U.value.email,"onUpdate:modelValue":t[8]||(t[8]=e=>U.value.email=e),disabled:"",placeholder:o.isEn?"Email Address":"邮箱地址",onBlur:t[9]||(t[9]=e=>G("email"))},null,8,["modelValue","placeholder"])]),_:1})):(l(),d(b(Je),{key:2,ref:"areaCodeCountryId",class:"tel"},{default:x(()=>[h(b(Je),{prop:"phone",ref:"phone",class:"tel-mobile","inline-message":!0},{default:x(()=>[h(Xi,{modelValue:U.value.phone,"onUpdate:modelValue":t[12]||(t[12]=e=>U.value.phone=e),placeholder:o.isEn?"Cell Phone Number":"手机号码",label:o.isEn?"Cell Phone Number":"手机号码",clearable:"",disabled:"",autocomplete:"off",onBlur:t[13]||(t[13]=e=>G("phone")),maxlength:"15"},{prefix:x(()=>[h(b(Je),{prop:"areaCode",class:"tel-areacode","inline-message":!0},{default:x(()=>[h(b(Pe),{modelValue:U.value.areaCode,"onUpdate:modelValue":t[10]||(t[10]=e=>U.value.areaCode=e),placeholder:o.isEn?"Code":"区号",disabled:"",onChange:t[11]||(t[11]=e=>G("areaCode")),"popper-class":"jc-area-code-select-wrapper"},{default:x(()=>[(l(!0),s(g,null,v(V.value,e=>(l(),d(b(Ne),{key:e.id,label:e.telCode,value:e.telCode},null,8,["label","value"]))),128)),h(b(Ne),{label:"+86",value:"+86"})]),_:1},8,["modelValue","placeholder"])]),_:1})]),_:1},8,["modelValue","placeholder","label"])]),_:1},512)]),_:1},512)),"email"===U.value.type||"mobile"===U.value.type?(l(),d(b(Je),{key:3,prop:"code"},{default:x(()=>[h(fs,{modelValue:U.value.code,"onUpdate:modelValue":t[14]||(t[14]=e=>U.value.code=e),placeholder:o.isEn?"Verification Code":"验证码",ready:D.value,"is-en":o.isEn,onSend:W},null,8,["modelValue","placeholder","ready","is-en"])]),_:1})):f("",!0),u("div",wu,[h(b(ze),{class:"submit-btn",onClick:_,loading:Q.value},{default:x(()=>[B(A(o.isEn?"Login and Link":"登录并绑定")+" ",1),t[19]||(t[19]=u("img",{style:{width:"16px",height:"16px","vertical-align":"middle","margin-left":"4px"},src:Jc,alt:""},null,-1))]),_:1},8,["loading"])])]),_:1},8,["model","rules"])])):(l(),s("div",uu,[(l(!0),s(g,null,v(b(R),(e,n)=>(l(),s("div",{class:"bind-user-card",key:n,onClick:t=>q(e)},[t[18]||(t[18]=u("div",{class:"bind-user-card__left"},[u("div",{class:"account-icon"})],-1)),u("div",hu,[u("div",pu,A(o.isEn?e.userNameEn||e.userNameCn:e.userNameCn||e.userNameEn),1),u("div",fu,A(o.isEn?e.compNameEn||e.compNameCn:e.compNameEn||e.compNameEn),1),e.email?(l(),s("div",mu,[t[16]||(t[16]=u("img",{src:"data:image/svg+xml,%3c?xml%20version='1.0'%20standalone='no'?%3e%3c!DOCTYPE%20svg%20PUBLIC%20'-//W3C//DTD%20SVG%201.1//EN'%20'http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd'%3e%3csvg%20t='1767855712095'%20class='icon'%20viewBox='0%200%201024%201024'%20version='1.1'%20xmlns='http://www.w3.org/2000/svg'%20p-id='9362'%20xmlns:xlink='http://www.w3.org/1999/xlink'%20width='200'%20height='200'%3e%3cpath%20fill='currentcolor'%20d='M113.242353%20250.217412l356.352%20356.412235a60.235294%2060.235294%200%200%200%2080.655059%204.156235l4.577882-4.156235%20356.111059-356.171294c1.204706%204.397176%201.987765%208.914824%202.409412%2013.552941l0.240941%206.987294v481.882353c0%2042.345412-32.768%2077.101176-74.270118%2080.112941l-6.023529%200.240942H190.765176a80.293647%2080.293647%200%200%201-80.112941-74.330353l-0.180706-6.02353v-481.882353c0-4.818824%200.421647-9.456941%201.204706-14.034823l1.505883-6.746353z%20m720.052706-59.512471c4.818824%200%209.637647%200.421647%2014.215529%201.204706l6.866824%201.566118-342.136471%20342.13647-342.256941-342.13647c4.397176-1.204706%209.035294-2.048%2013.673412-2.409412l7.107764-0.361412h642.529883z'%20p-id='9363'%3e%3c/path%3e%3c/svg%3e"},null,-1)),B(" "+A(e.email),1)])):f("",!0),e.mobile?(l(),s("div",gu,[t[17]||(t[17]=u("img",{src:"data:image/svg+xml,%3c?xml%20version='1.0'%20standalone='no'?%3e%3c!DOCTYPE%20svg%20PUBLIC%20'-//W3C//DTD%20SVG%201.1//EN'%20'http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd'%3e%3csvg%20t='1767855760413'%20class='icon'%20viewBox='0%200%201024%201024'%20version='1.1'%20xmlns='http://www.w3.org/2000/svg'%20p-id='9516'%20xmlns:xlink='http://www.w3.org/1999/xlink'%20width='200'%20height='200'%3e%3cpath%20d='M694.874353%20918.949647c-57.825882-2.108235-221.726118-24.696471-393.336471-196.367059-171.610353-171.550118-194.258824-335.450353-196.367058-393.33647-3.252706-88.124235%2064.271059-173.778824%20142.336-207.209412a59.030588%2059.030588%200%200%201%2058.006588%206.324706c64.210824%2046.863059%20108.604235%20117.639529%20146.672941%20173.357176%2017.227294%2025.178353%2013.071059%2059.512471-10.24%2079.75153L363.52%20439.717647a19.275294%2019.275294%200%200%200-5.722353%2024.696471c17.709176%2032.346353%2049.332706%2080.353882%2085.473882%20116.495058%2036.141176%2036.141176%2086.437647%2069.752471%20120.952471%2089.509648a19.395765%2019.395765%200%200%200%2025.840941-6.445177l50.959059-77.703529c19.516235-25.961412%2056.018824-31.623529%2082.582588-13.251765%2056.500706%2039.092706%20122.458353%2082.642824%20170.706824%20144.444235a59.030588%2059.030588%200%200%201%207.589647%2059.632941c-33.611294%2078.426353-118.663529%20145.167059-207.088941%20141.914353z'%20p-id='9517'%3e%3c/path%3e%3c/svg%3e"},null,-1)),B(" "+A(e.mobile),1)])):f("",!0)]),u("div",vu,[h(b(ze),{type:"primary",size:"small",onClick:y(t=>q(e),["stop"])},{default:x(()=>[B(A(o.isEn?"Select":"选择"),1)]),_:1},8,["onClick"])])],8,du))),128))]))])):f("",!0)])),[[b(Ge),b(E)]])}}),[["__scopeId","data-v-db9b1c7a"]]),bu={class:"wechat-choose-type"},Iu={class:"choose-title"},Bu={class:"choose-nav"},ku={class:"btn-container"},Su={class:"btn-content"},xu={class:"btn-content"},Ru=/* @__PURE__ */Yo(/* @__PURE__ */i({__name:"WechatChooseType",props:{isEn:{type:Boolean}},emits:["toBind","toRegister"],setup(e,{emit:t}){const o=t,n=()=>{o("toBind")},i=()=>{o("toRegister")};return(t,o)=>(l(),s("div",bu,[u("div",null,[u("div",Iu,A(e.isEn?"Please select whether you already have a JCtrans account":"请选择是否已有JCtrans账号"),1),u("div",Bu,A(e.isEn?"If you already have a JCtrans account, you can directly link it with WeChat. If you do not have a JCtrans account, please register first":"若已有JCtrans账号,可直接与微信绑定;若没有JCtrans账号,请先注册"),1),u("div",ku,[h(b(ze),{class:"choose-btn jc:mb-6 default-btn jc:outline-none!",onClick:i},{default:x(()=>[u("div",Su,[o[0]||(o[0]=u("img",{class:"icon-account",src:"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAADAAAAAwCAYAAABXAvmHAAAAAXNSR0IArs4c6QAAAkZJREFUaEPtmMtxE0EQQF+LC9xEBnYEQATgCHAIJgKL00onVhdLOkmKwAoBIrAyQETAZoBufA40NWuJMirt7vTsx6hq5rrTO/36M93TwokvOXH9iQCP7cHogeiBmhaIIaQT3iC8BS6Bs51BN8AGZSwjsppGLhUP9oCm9HnGB5RBxQkLvjOWlG0bIEEAufJPuQNeeiq14QcXbUCEAcyYV1r+kExYSMJ7T2DvbWYAnXCG8NX7hIcblQsZsQ6SLRCyA0y5Ba6ClFCWMqrIGeOP7QAzPqPesX+oTiZDzo06NnsL6RSto4AMm20g7R6IANED/0RwSAi5K3TfMtjSQdhIwiubUPnuEIAFcB2oxEqGvCuS3V8QlkS3A9w3b66NsC/lvKy56wTAaa1T7F7wKGLdAczp84s7Q0HzauY6A8i94CB+klbmg7J0+3w60U4B9gmQN3eQ0uPFA49kKJ+Aj0XNm7WiFyW2OYntmXtc4uQBjmE9Sgg15ZHd7ZY3iq3WgSYVPvxXpx7IpxE9XufvYvc+EPoo/VwpYYuSIWT85guw9nmJtQ6wm0S4NmLwV1l/l7jxyrps1NIagPcIxR9m1dTMqPIa1RsuecJtgMWrcFytcIOvVdXGsu+lABoyPrFqI6SSMLaK7fcXAugsn7q5VqH9de+JoLPKAL61EDbHjSFsJeF5iKX+DwAIHrcUA9wwoMc8xCpmmTZCKC/tE67ocW3o+626u2K3lCR/IAWtyms06K8dCkWADo199KjogeiBmhaIIVTTgLXF/wBd2cQxtxFH4QAAAABJRU5ErkJggg==",alt:"register"},null,-1)),B(" "+A(e.isEn?"Create New Account":"注册新账号"),1)])]),_:1}),h(b(ze),{type:"primary",class:"choose-btn submit-btn jc:outline-none!",onClick:n},{default:x(()=>[u("div",xu,[o[1]||(o[1]=u("img",{class:"icon-account",src:"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAADAAAAAwCAYAAABXAvmHAAAAAXNSR0IArs4c6QAAAmtJREFUaEPtmN1tFEEQhKsSIAEgAAQBGALg5x2IAAIAAsAEYMO7HYHFu+0EMARgEYAhASdQqNCsdLfs3vb07p2xNCPdy932bX1dPTM9Q9zywVuuHw3gph1sDjQHZmaglZCkJwCeAngB4F5J6CUAfw5JXs1M8sbwtAOS7gD4AODNhMBjAAckr7cBkgIo4r8CeBgUZTdebgMiC/ApkPk+2zHJj0Hg8GPVAJLuA/gefsP6g3bhIhk7GJYB+AzgdVLE4i5kAM4BPEoCXJHcS8Yu5sDvOQJI3p0T34/NONAAmgMrGciU0I+VlqE2mZck3XYsNjIAmU2sE3xC8t1i6oH6I6WkxwDcRmTGXm1zVzbO5ySPhl5Y7YD/RNI+gLeVBEckHRceRbyT5S53fwgiC+BOdKvNXE+8W/JXQ+6lAIoLhngfcMLW+1wQbqej4q0jDdDVQXmZQdxad+31LwCnAM7HmjdJLsGzflZrxC8CEC7olQcl+RDk1WytNGrF3ySAW/Jucv6FKHxr30VWrNkllHGgzKE+hLV4tRmdsIsto1nR/bheyfjnKvGzSqjcRnhT6yavVyV/PLziWIwns8/DFyS/DYGvQGhsqdyUsKoSKod5rx6ehJ3YqCEG8nHyn6uWAoFIzfdfFgKouEKJwpwsdWc0CSDpGYAviYxPwdgRu2GY9NgIIGlO5xkVZYiD6MPhEpLkWzfvsLsYaYhRByT93ELZjCXjmuSDTKb+F4D0dcsmgK5fySSmNsaXv4e1QZMbmSTfwBkkeolbq8EbnQ86vsFOjcllNPWvOwxqADtM9uCrmgPNgZkZaCU0M4Gzw/8A2kXkMc0wZl8AAAAASUVORK5CYII=",alt:"login"},null,-1)),B(" "+A(e.isEn?"Bind Existing Account":"绑定已有账号"),1)])]),_:1})])])]))}}),[["__scopeId","data-v-29100ac5"]]);function Tu(t={}){const{appId:o="ERA",isEn:n=!1}=t,i=e(!1),a=e(!1),r=e(null),s=e(!1),l=e=>{const t=Y()||{},o=e.redirectPath||t.path||"/";e.result&&_(e.result),console.log("🍉 Redirecting to:",o),o.startsWith("http"),window.location.href=o},c=async e=>{const{loginType:a,loginForm:c={},captchaData:d={},isKick:h=!1,mobileUid:p,emailUid:f,areaCodeData:m=[]}=e;i.value=!0,h||(r.value=d);const g=Y()||{},v={appId:o,fromSys:o,kick:h,inviterInfo:g.empNo||void 0,redirectPath:g.path||"/",...g,...d};let A=ge;if("account"===a)Object.assign(v,{type:"PASSWORD",username:c.username,password:Xr.MD5(c.password).toString(),uniqueCode:""});else if("wechat"===a)Object.assign(v,{type:"WECHAT",uniqueCode:g.uniqueCode}),g.uniqueCode||v.uniqueCode||console.warn("WeChat login missing uniqueCode"),A=ge;else{const e="mobile"===c.type,t=e?p:f;if(Object.assign(v,{type:e?"MOBILE":"EMAIL",account:e?c.phone:c.email,verificationCodeValue:c.code,verificationCodeUuid:t}),e){const e=m.find(e=>e.telCode===c.areaCode);v.areaCode=c.areaCode,v.areaCodeCountryId=e?.id}if(!v.verificationCodeUuid)return i.value=!1,void Le.error(n?"Please get the verification code first":"请先获取验证码");A=Ae}try{const{data:o}=await A(v);if(console.log("🍉 ~ useAuthLogin.ts:144 ~ handleAuthSubmit ~ res:",o),0===o.code){const a=o.data||{};if(!0===a.hasLogon&&!a.tgc)return void u(e);if(a.tgc){a.result&&_(a.result),Gs.set("tgc",a.tgc,{expires:30,domain:ve()});const e=a.result?.improveComp;if(e)return s.value=!0,i.value=!1,void(t.onNeedComplete&&t.onNeedComplete(a));Le.success(n?"Login successful":"登录成功"),t.onSuccess?t.onSuccess(a):l(a)}else t.onSuccess&&t.onSuccess(a)}else Le.error(o.msg||(n?"Login failed":"登录失败"))}catch(y){console.error("Login Error:",y),Le.error(n?"Network Error":"网络请求异常")}finally{i.value=!1}},u=e=>{We.confirm(n?"The account is logged in. Log in again?":"当前账号已在线,是否继续登录?",n?"Tips":"提示",{confirmButtonText:n?"Confirm":"确定",cancelButtonText:n?"Cancel":"取消",customClass:"auth-confirm-kick-popup",type:"warning"}).then(()=>{c({...e,isKick:!0})}).catch(()=>{i.value=!1})};return{loading:i,captchaVisible:a,handleAuthSubmit:c,executeRedirect:l}}const Fu={class:"bind-wechat-title"},Qu={class:"title"},Lu={class:"sub-title"},Pu={class:"register-bottom"},Nu=/* @__PURE__ */i({__name:"WechatBindLogin",props:{isEn:{type:Boolean}},emits:["needComplete"],setup(o,{emit:n}){const i=o,a=n,{loading:r,captchaVisible:c,handleAuthSubmit:p}=Tu({appId:"ERA",isEn:i.isEn,onNeedComplete:e=>{console.log("需要完善信息,暂不关闭弹窗"),a("needComplete",e)}}),m=e({type:"account",username:"",password:"",remember:!1,email:"",phone:"",areaCode:"",code:""}),y=e([]),C=e(),w=e(!1),E=e(!1),I=e({}),k=e(""),S=e(""),R=t(()=>m.value.type),T=t(()=>{const e={username:[{required:!0,trigger:"blur",message:i.isEn?"Please enter your Username/phone number/email":"请输入账号/手机号/邮箱"}],password:[{required:!0,trigger:"blur",message:i.isEn?"Please enter the password":"请输入密码"}],email:[{required:!0,validator:(e,t,o)=>{Ns(0,t,o,i.isEn)},trigger:"blur"}],phone:[{required:!0,validator:(e,t,o)=>{Ds(0,t,o,i.isEn)},trigger:"blur"}],code:[{required:!0,validator:(e,t,o)=>{Os(0,t,o,i.isEn)},trigger:"blur"}]};return"account"===R.value?{username:e.username,password:e.password}:"email"===R.value||"mobile"===R.value?{code:e.code,..."email"===m.value.type?{email:e.email}:{phone:e.phone}}:{}});async function F(e){if("mobile"==e&&0===y.value.length){const e=await ie();y.value=e.data.data.records}}function Q(e){C.value.validateField(e,e=>{w.value=e})}function L(){C.value.validate(e=>{if(e)if("account"===R.value)c.value=!0;else{if(!I.value||!I.value.code)return Le.error(i.isEn?"Please get code first":"请先获取验证码");P(I.value)}})}function P(e){c.value=!1;const t=(Y()||{}).uniqueCode||"";p({loginType:"account"===R.value?"account":"code",loginForm:m.value,captchaData:{...e,uniqueCode:t},mobileUid:k.value,emailUid:S.value,areaCodeData:y.value})}function N({captchaData:e,startTimer:t}){const o="mobile"===m.value.type;I.value=e;const n={target:m.value.email||m.value.phone,uuid:e.uuid,code:e.code};o&&(n.areaCode=m.value.areaCode);(o?re:ne)(n).then(e=>{const n=e.data.data?.verifyCode||e.data.verifyCode;0===e.data.code&&n&&(o?k.value=n:S.value=n,t(),Le.success(i.isEn?"Verification code sent":"验证码已发送"))}).catch(e=>{console.error(e)}),console.log("发送注册验证码")}return(e,t)=>(l(),s("div",null,[u("div",Fu,[u("div",Qu,[t[11]||(t[11]=u("img",{class:"icon-auth-wechat",src:"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAFAAAABQCAYAAACOEfKtAAAAA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mgD4QjqWatv1aWrlF52nqzSY2NEKPUngmCIND2ctNReX4Iq1NL2AOtRYa6+xwGj2bDQcVllo3faYlPD7HsCSvdsKht7gFobD4NbkFpuV1UQXmai8AFBesfoF+agi9dD/wyET6U/rdBeSpwf+2qlm5YqrAYwr4vdLfS6AZAGh6+CKN5xGJyi+fEm+8joBw3ROo9ezONBB0oZmq40Quv8gKuFagBz592dyLUuiBW+07vKujykw01HgSmtGkMF+ohAP4/DO/Cn9D03jKsDdAZx8o/XtTlxpTS3oZV0xV+ZRwbQCcRJmJnWpiogqtqUrZ21AXxZi+jSmFKUOvECsP4qhwvU4qxZrsCpU/Ef+4wcruQWtjGEKeI+DeYOIOfosVwB+TlGPLiFcpgacdVWNm5tm0jxx8s3gTGUfmBSH4Mudo0LxtrhNNDnzeX5nASGte1C6mOwd6PA5fDNy62o0P2dteEb2ZMKCH968S0Ie3n7inHwbg3E0oDQnvN7LQBn4bsMzsZ/TilnM5/92OVKZy0A48ExoHZt/rlSv8y1qj0SGwvibx7Tad2EsI2TprHVNyPTzKu/t6yBtxdgVt+GuiuzcFQp42Ogd4NWx/S0WXkWW6dbled2WWcbnSh5lMRoMxuwfSE89W0tz16rysrb3hBe/Pcfel0QdSxEwRuqe5D6zFl4ba8CizeWq/GK3Y7iQKmw45ZN+zYAvoS1rrefzgBqWp7a6dfF5vuG+qzkqCN+r+VtAZxT5eAw26lTaoI0nOnLi3qQPnCiEYL0CxAOswc2MxVTt9Axsk6a374COaFpGpMn6/oZ78bkwXTRG6JvV4EmUKbvNUgHLzD+fwGaADO/9wCZoF4b5gF6gEICQnOvQA9QSEBo7hXoAQoJCM29Aj1AIQGhuVegBygkIDT3CvQAhQSE5l6BHqCQgND8O/QeMm9D6KpFAAAAAElFTkSuQmCC",alt:""},null,-1)),B(" "+A(o.isEn?"Log in and link with WeChat":"登录并绑定微信"),1)]),u("div",Lu,A(o.isEn?"After linking, you can log in via WeChat scan, which is convenient and quick":"绑定后,可通过微信扫码登录,方便快捷"),1)]),h(b(De),{ref_key:"bindLoginFormRef",ref:C,model:m.value,rules:T.value,"validate-on-rule-change":!1,class:"wechat-bind-login-form-content"},{default:x(()=>[h(b(Je),{prop:"type",class:"form-type"},{default:x(()=>[h(Oc,{modelValue:m.value.type,"onUpdate:modelValue":t[0]||(t[0]=e=>m.value.type=e),"is-en":o.isEn,"show-account":"",class:"jc:max-w-full!",onChange:F},null,8,["modelValue","is-en"])]),_:1}),"account"===R.value?(l(),s(g,{key:0},[h(b(Je),{prop:"username",class:"form-user"},{default:x(()=>[h(Xi,{modelValue:m.value.username,"onUpdate:modelValue":t[1]||(t[1]=e=>m.value.username=e),placeholder:o.isEn?"Username/Email/Phone Number":"用户名/邮箱/手机号"},null,8,["modelValue","placeholder"])]),_:1}),h(b(Je),{prop:"password",class:"password-item"},{default:x(()=>[h(Xi,{modelValue:m.value.password,"onUpdate:modelValue":t[2]||(t[2]=e=>m.value.password=e),type:"password",class:"input-show-pass",placeholder:o.isEn?"Password":"密码","show-password":""},null,8,["modelValue","placeholder"])]),_:1})],64)):"email"===R.value?(l(),d(b(Je),{key:1,prop:"email"},{default:x(()=>[h(Xi,{modelValue:m.value.email,"onUpdate:modelValue":t[3]||(t[3]=e=>m.value.email=e),placeholder:o.isEn?"Email Address":"邮箱地址",onBlur:t[4]||(t[4]=e=>Q("email"))},null,8,["modelValue","placeholder"])]),_:1})):(l(),d(b(Je),{key:2,ref:"areaCodeCountryId",class:"tel"},{default:x(()=>[(l(),d(b(Je),{prop:"phone",ref:"phone",key:8,class:"tel-mobile","inline-message":!0},{default:x(()=>[h(Xi,{modelValue:m.value.phone,"onUpdate:modelValue":t[7]||(t[7]=e=>m.value.phone=e),placeholder:o.isEn?"Cell Phone Number":"手机号码",label:o.isEn?"Cell Phone Number":"手机号码",clearable:"",autocomplete:"off",onBlur:t[8]||(t[8]=e=>Q("phone")),maxlength:"15",disabled:E.value},{prefix:x(()=>[h(b(Je),{prop:"areaCode",class:"tel-areacode","inline-message":!0},{default:x(()=>[h(b(Pe),{modelValue:m.value.areaCode,"onUpdate:modelValue":t[5]||(t[5]=e=>m.value.areaCode=e),placeholder:o.isEn?"Code":"区号",onChange:t[6]||(t[6]=e=>Q("areaCode")),disabled:E.value,"popper-class":"jc-area-code-select-wrapper"},{default:x(()=>[(l(!0),s(g,null,v(y.value,e=>(l(),d(b(Ne),{key:e.id,label:e.telCode,value:e.telCode},null,8,["label","value"]))),128)),h(b(Ne),{label:"+86",value:"+86"})]),_:1},8,["modelValue","placeholder","disabled"])]),_:1})]),_:1},8,["modelValue","placeholder","label","disabled"])]),_:1}))]),_:1},512)),"email"===R.value||"mobile"===R.value?(l(),d(b(Je),{key:3,prop:"code"},{default:x(()=>[h(fs,{modelValue:m.value.code,"onUpdate:modelValue":t[9]||(t[9]=e=>m.value.code=e),placeholder:o.isEn?"Verification Code":"验证码",ready:w.value,"is-en":o.isEn,onSend:N},null,8,["modelValue","placeholder","ready","is-en"])]),_:1})):f("",!0),u("div",Pu,[h(b(ze),{class:"submit-btn",onClick:L,loading:b(r)},{default:x(()=>[B(A(o.isEn?"Login and Link":"登录并绑定")+" ",1),t[12]||(t[12]=u("img",{style:{width:"16px",height:"16px","vertical-align":"middle"},src:Jc,alt:""},null,-1))]),_:1},8,["loading"])])]),_:1},8,["model","rules"]),h(us,{visible:b(c),"onUpdate:visible":t[10]||(t[10]=e=>V(c)?c.value=e:null),"is-en":o.isEn,onSuccess:P},null,8,["visible","is-en"])]))}}),Uu=/* @__PURE__ */Yo(Nu,[["__scopeId","data-v-44314646"]]),Vu={name:"CompleteInfoForm",components:{ElForm:De,ElFormItem:Je,ElButton:ze,ElSelect:Pe,ElOption:Ne,JcFloatInput:aa,CodeInput:fs,JcFloatWrapper:Ls,JcSearch:_o,ChineseCompanySearch:qi,GoogleInput:Xi,JcVerifySlide:us,ApplyJoinBtn:qs},props:{isEn:Boolean},emits:["success"],data(){return{loading:!1,verifyVisible:!1,verifyData:{},codeReady:!1,mobileUid:"",emailUid:"",areaCodeData:[],hasResistCompany:!1,companyResistCn:!1,companyResistEn:!1,resistCompanyInfo:null,form:{city:"",cityId:"",countryId:"",companyName:"",nameCn:"",nameEn:"",sector:"Logistics",phone:"",areaCode:"+86",email:"",code:"",useKq:!1,kqCode:"",kqInfo:null},sectors:[{cn:"货代",en:"Freight Forwarder",value:"Logistics"},{cn:"货主",en:"Trader",value:"Trade"},{cn:"衍生产品供应商",en:"Vendor",value:"Service"}],rules:{city:[{required:!0,message:this.isEn?"Please select a city":"请选择所在地",trigger:["change","blur"]}],companyName:[{required:!0,validator:(e,t,o)=>this.hasResistCompany?o():Ms(0,t,o,this.isEn,this),trigger:"blur"}],nameCn:[{required:!0,validator:(e,t,o)=>Us(0,t,o,this.isEn,!0),trigger:"blur"}],nameEn:[{required:!0,validator:(e,t,o)=>Us(0,t,o,this.isEn,!1),trigger:"blur"}],phone:[{required:!0,validator:(e,t,o)=>Ds(0,t,o,this.isEn),trigger:"blur"}],email:[{required:!0,validator:(e,t,o)=>Ns(0,t,o,this.isEn),trigger:"blur"}],code:[{required:!0,validator:(e,t,o)=>Os(0,t,o,this.isEn),trigger:"blur"}]}}},computed:{countryId(){return this.form.city?.raw?.country?.id||this.resistCompanyInfo?.countryId},cityId(){return this.form.city?.id},currentCountryIsChina(){const e=this.countryId;return[1,75,71,100].includes(Number(e))},currentCompanyLabel(){return this.isEn?this.currentCountryIsChina?"Company Name in Chinese":"Company Name in English":this.currentCountryIsChina?"公司中文名称":"公司英文名称"},isShowMobileCode(){return this.currentCountryIsChina},isShowEmailCode(){return!this.currentCountryIsChina}},mounted(){this.getAreaCodeData(),this.findDict()},methods:{handleCompanyExistStatus(e){e&&(this.companyResistCn=e.cnExists,this.companyResistEn=e.enExists,this.resistCompanyInfo=e.companyInfo)},handleApplyJoinClick(){this.hasResistCompany=!0,this.$nextTick(()=>{this.$refs.formRef.clearValidate("companyName")})},async getAreaCodeData(){const e=await ie();this.areaCodeData=e.data.data.records},findDict(){ae({dictType:"cmc_company_industry_sector"}).then(e=>{const t=[{cn:"货代",en:"Freight Forwarder",value:"Logistics"},{cn:"货主",en:"Trader",value:"Trade"},{cn:"衍生产品供应商",en:"Vendor",value:"Service"}];this.sectors=e.data.data.records.map(e=>({...e,...t.find(t=>t.value===e.dictValue)}))})},handleSelectCity(e){this.form.cityId=e.id,this.form.countryId=e.raw?.country?.id,this.$nextTick(()=>{!this.hasResistCompany&&this.form.companyName&&this.$refs.formRef.validateField("companyName"),this.$refs.formRef.validateField("city")})},validateField(e){this.$refs.formRef.validateField(e,t=>{"phone"!==e&&"email"!==e||(this.codeReady=t)})},handleGetCode({captchaData:e,startTimer:t}){this.verifyData=e;const o={target:this.isShowMobileCode?this.form.phone:this.form.email,uuid:e.uuid,code:e.code},n=this.isShowMobileCode?re:ne;this.isShowMobileCode&&(o.areaCode=this.form.areaCode,o.areaCodeCountryId=this.areaCodeData.find(e=>e.telCode===this.form.areaCode).id),n(o).then(e=>{const o=e.data.data?.verifyCode||e.data.verifyCode;0===e.data.code&&o&&(this.isShowMobileCode?this.mobileUid=o:this.emailUid=o,t(),Le.success(this.isEn?"Code Sent":"验证码已发送"))})},handleSubmit(){this.$refs.formRef.validate(e=>{e&&(this.hasResistCompany?this.handleJoinSubmit():this.handleNewSubmit())})},handleNewSubmit(){this.loading=!0;const e={nameCn:this.form.nameCn,nameEn:this.form.nameEn,cityId:this.form.cityId,countryId:this.form.countryId,industrySector:this.form.sector,compNameCn:this.currentCountryIsChina?this.form.companyName:"",compNameEn:this.currentCountryIsChina?"":this.form.companyName,areaCode:this.form.areaCode,areaCodeCountryId:this.areaCodeData.find(e=>e.telCode===this.form.areaCode).id,mobile:this.form.phone,mobileVerificationCodeUuid:this.mobileUid,mobileVerificationCodeVal:this.isShowMobileCode?this.form.code:"",email:this.form.email,emailVerificationCodeUuid:this.emailUid,emailVerificationCodeVal:this.isShowEmailCode?this.form.code:"",toSys:"ERA",...this.form.kqInfo};Ce(e).then(e=>{0===e.data.code?(Le.success(this.isEn?"Success":"提交成功"),this.$emit("success",e.data.data)):Le.error(e.data.msg)}).finally(()=>{this.loading=!1})},handleJoinSubmit(){this.loading=!0;const e={compId:this.resistCompanyInfo.compId,nameCn:this.form.nameCn,nameEn:this.form.nameEn,industrySector:this.form.sector,areaCode:this.form.areaCode,areaCodeCountryId:this.areaCodeData.find(e=>e.telCode===this.form.areaCode).id,mobile:this.form.phone,account:this.isShowMobileCode?this.form.phone:this.form.email,type:this.isShowMobileCode?"MOBILE":"EMAIL",mobile:this.form.phone,mobileVerificationCodeUuid:this.mobileUid,mobileVerificationCodeVal:this.isShowMobileCode?this.form.code:"",email:this.form.email,emailVerificationCodeUuid:this.emailUid,emailVerificationCodeVal:this.isShowEmailCode?this.form.code:""};ye(e).then(e=>{if(0===e.data.code){if(e.data.data.redirect)try{Cookies.set("tgc",e.data.data.tgc,{expires:30});const t=this.getAuthSessionItems();e.data.data.redirectPath||t.path;resetAuthSessionItems()}catch(t){}else this.loading=!1,Le.success(this.isEn?"Registration successful, pending review":"注册成功,请等待审核");this.$emit("success",e.data.data)}else Le.error(e.data.msg)}).finally(()=>{this.loading=!1})}}},Du={class:"complete-info-container"},Mu={class:"header"},Ou={class:"title"},Ju={class:"tip-box"},ju={class:"resist-company-info-card"},zu={class:"card-header"},Hu={class:"title-group"},qu={class:"tip-text"},Ku={class:"company-content"},Gu={class:"company-name"},Wu={class:"card-header"},Yu={class:"title-group"},_u={class:"tip-text"},Zu={class:"location-info"},Xu={class:"sector-section"},$u={class:"sector-label"},ed={class:"sector-group"},td=["onClick"],od={key:0,class:"icon-auth-checked"};const nd=/* @__PURE__ */Yo(Vu,[["render",function(e,t,o,n,i,a){const r=R("JcSearch"),p=R("JcFloatWrapper"),m=R("el-form-item"),y=R("ChineseCompanySearch"),C=R("ApplyJoinBtn"),w=R("JcFloatInput"),E=R("el-option"),b=R("el-select"),I=R("GoogleInput"),k=R("CodeInput"),S=R("el-button"),T=R("el-form");return l(),s("div",Du,[u("div",Mu,[u("div",Ou,A(o.isEn?"Complete Your Information":"完善企业信息"),1),u("div",Ju,[t[15]||(t[15]=u("img",{src:"https://resources.jctrans.com/res/era/pc/img/icon_gantan.png",alt:""},null,-1)),u("span",null,A(o.isEn?"To provide you with better service, please complete the following enterprise information":"为了给您提供更好的服务,请完善以下企业信息"),1)])]),h(T,{ref:"formRef",model:i.form,rules:i.rules,class:"auth-form"},{default:x(()=>[i.hasResistCompany?(l(),s(g,{key:1},[u("div",ju,[u("div",zu,[u("div",Hu,[u("span",qu,A(o.isEn?"Company name":"公司名称"),1)]),u("span",{class:"change-link",onClick:t[5]||(t[5]=e=>i.hasResistCompany=!1)},A(o.isEn?"Change":"修改"),1)]),u("div",Ku,[u("h4",Gu,A(o.isEn?i.resistCompanyInfo.compNameEn||i.resistCompanyInfo.compNameCn:i.resistCompanyInfo.compNameCn||i.resistCompanyInfo.compNameEn),1)]),u("div",Wu,[u("div",Yu,[u("span",_u,A(o.isEn?"Location(City)":"所在地(城市)"),1)])]),u("div",Zu,A(o.isEn?i.resistCompanyInfo.countryNameEn:i.resistCompanyInfo.countryNameCn)+" / "+A(o.isEn?i.resistCompanyInfo.cityNameEn:i.resistCompanyInfo.cityNameCn),1)]),h(m,{prop:a.currentCountryIsChina?"nameCn":"nameEn",class:"name-input-item"},{default:x(()=>[h(w,{modelValue:i.form[a.currentCountryIsChina?"nameCn":"nameEn"],"onUpdate:modelValue":t[6]||(t[6]=e=>i.form[a.currentCountryIsChina?"nameCn":"nameEn"]=e),label:a.currentCountryIsChina?o.isEn?"Your Full Name in Chinese":"您的中文名称":o.isEn?"Your Full Name in English":"您的名称",placeholder:o.isEn?"Please enter your name to prove your identity":"请输入您的姓名,以证明您的身份"},{prefix:x(()=>[...t[18]||(t[18]=[u("i",{class:"icon-auth-user"},null,-1)])]),_:1},8,["modelValue","label","placeholder"])]),_:1},8,["prop"])],64)):(l(),s(g,{key:0},[h(m,{prop:"city"},{default:x(()=>[h(p,{label:o.isEn?"Location (City)":"所在地(城市)","has-value":!(!i.form.city||!i.form.city.id)},{default:x(()=>[h(r,{modelValue:i.form.city,"onUpdate:modelValue":t[0]||(t[0]=e=>i.form.city=e),class:"jc:my-0! search-city-item","show-search-icon":!1,style:{"--original-text-main":"#232324"},"search-type-list":["City"],lang:o.isEn?"en":"zh-CN",onSelect:a.handleSelectCity},{prefix:x(()=>[...t[16]||(t[16]=[u("i",{class:"icon-auth-location"},null,-1)])]),_:1},8,["modelValue","lang","onSelect"])]),_:1},8,["label","has-value"])]),_:1}),h(m,{prop:"companyName"},{default:x(()=>[h(p,{label:a.currentCompanyLabel},{default:x(()=>[h(y,{class:"jc:my-0! search-company-item","company-name":i.form.companyName,"onUpdate:companyName":t[1]||(t[1]=e=>i.form.companyName=e),useKq:i.form.useKq,"onUpdate:useKq":t[2]||(t[2]=e=>i.form.useKq=e),kqCode:i.form.kqCode,"onUpdate:kqCode":t[3]||(t[3]=e=>i.form.kqCode=e),kqInfo:i.form.kqInfo,"onUpdate:kqInfo":t[4]||(t[4]=e=>i.form.kqInfo=e),lang:o.isEn?"en":"zh-CN","country-id":a.countryId||null,"onUpdate:existStatus":a.handleCompanyExistStatus},{prefix:x(()=>[...t[17]||(t[17]=[u("i",{class:"icon-auth-company"},null,-1)])]),_:1},8,["company-name","useKq","kqCode","kqInfo","lang","country-id","onUpdate:existStatus"])]),_:1},8,["label"])]),_:1}),i.companyResistCn||i.companyResistEn?(l(),d(C,{key:0,onApplyJoin:a.handleApplyJoinClick},null,8,["onApplyJoin"])):f("",!0)],64)),u("div",Xu,[u("p",$u,A(o.isEn?"Industry Sector":"所属行业"),1),u("div",ed,[(l(!0),s(g,null,v(i.sectors,e=>(l(),s("div",{key:e.value,class:c(["sector-item",{active:i.form.sector===e.value}]),onClick:t=>i.form.sector=e.value},[B(A(o.isEn?e.en:e.cn)+" ",1),i.form.sector===e.value?(l(),s("i",od)):f("",!0)],10,td))),128))])]),a.isShowMobileCode?(l(),s(g,{key:2},[h(m,{ref:"areaCodeCountryId",class:"phone-form-item"},{default:x(()=>[h(m,{prop:"phone",ref:"phone",class:"tel-mobile","inline-message":!0},{default:x(()=>[h(I,{modelValue:i.form.phone,"onUpdate:modelValue":t[9]||(t[9]=e=>i.form.phone=e),placeholder:o.isEn?"Cell Phone Number":"手机号码",label:o.isEn?"Cell Phone Number":"手机号码",clearable:"",autocomplete:"off",onBlur:t[10]||(t[10]=e=>a.validateField("phone")),maxlength:"15"},{prefix:x(()=>[t[19]||(t[19]=u("i",{class:"icon-auth-phone"},null,-1)),h(m,{prop:"areaCode",class:"tel-areacode","inline-message":!0},{default:x(()=>[h(b,{modelValue:i.form.areaCode,"onUpdate:modelValue":t[7]||(t[7]=e=>i.form.areaCode=e),placeholder:o.isEn?"Code":"区号",onChange:t[8]||(t[8]=e=>a.validateField("areaCode")),"popper-class":"jc-area-code-select-wrapper"},{default:x(()=>[(l(!0),s(g,null,v(i.areaCodeData,e=>(l(),d(E,{key:e.id,label:e.telCode,value:e.telCode},null,8,["label","value"]))),128))]),_:1},8,["modelValue","placeholder"])]),_:1})]),_:1},8,["modelValue","placeholder","label"])]),_:1},512)]),_:1},512),h(m,{prop:"code"},{default:x(()=>[h(k,{modelValue:i.form.code,"onUpdate:modelValue":t[11]||(t[11]=e=>i.form.code=e),placeholder:o.isEn?"Verification Code":"验证码",ready:i.codeReady,"is-en":o.isEn,"show-icon":"","form-type-color":"4",onSend:a.handleGetCode},{prefix:x(()=>[...t[20]||(t[20]=[u("i",{class:"icon-verify"},null,-1)])]),_:1},8,["modelValue","placeholder","ready","is-en","onSend"])]),_:1})],64)):f("",!0),a.isShowEmailCode?(l(),s(g,{key:3},[h(m,{prop:"email",class:"email-form-item"},{default:x(()=>[h(w,{modelValue:i.form.email,"onUpdate:modelValue":t[12]||(t[12]=e=>i.form.email=e),label:o.isEn?"Business Email Address":"企业邮箱",placeholder:o.isEn?"Business Email Address, QQ Mail is not available":"请输入您的企业邮箱,暂不支持QQ邮箱",onBlur:t[13]||(t[13]=e=>a.validateField("email"))},{prefix:x(()=>[...t[21]||(t[21]=[u("i",{class:"icon-auth-email"},null,-1)])]),_:1},8,["modelValue","label","placeholder"])]),_:1}),h(m,{prop:"code"},{default:x(()=>[h(k,{modelValue:i.form.code,"onUpdate:modelValue":t[14]||(t[14]=e=>i.form.code=e),placeholder:o.isEn?"Verification Code":"验证码",ready:i.codeReady,"is-en":o.isEn,"show-icon":"","form-type-color":"4",onSend:a.handleGetCode},{prefix:x(()=>[...t[22]||(t[22]=[u("i",{class:"icon-verify"},null,-1)])]),_:1},8,["modelValue","placeholder","ready","is-en","onSend"])]),_:1})],64)):f("",!0),h(S,{class:"submit-btn register-btn register-btn-is-active",loading:i.loading,onClick:a.handleSubmit},{default:x(()=>[B(A(o.isEn?"Submit":"完成并进入"),1)]),_:1},8,["loading","onClick"])]),_:1},8,["model","rules"])])}],["__scopeId","data-v-86736d19"]]);const id={class:"auth-footer-box"},ad=/* @__PURE__ */Yo(/* @__PURE__ */i({__name:"FooterBox",props:{label:{type:String,default:""},subLabel:{type:String,default:""}},emits:["handleClick"],setup(e,{emit:t}){const o=t,n=()=>{o("handleClick")};return(t,o)=>(l(),s("div",id,[B(A(e.label)+" ",1),u("span",{class:"action-text",onClick:y(n,["stop"])},[B(A(e.subLabel)+" ",1),o[0]||(o[0]=u("svg",{t:"1767853448095",class:"icon-more",viewBox:"0 0 1024 1024",version:"1.1",xmlns:"http://www.w3.org/2000/svg","p-id":"8538",width:"200",height:"200"},[u("path",{d:"M456.874667 798.208l-60.416-60.416L622.336 512 396.458667 286.208l60.416-60.416 256 256a42.666667 42.666667 0 0 1 0 60.416l-256 256z",fill:"#FF6A00","p-id":"8539"})],-1))])]))}}),[["__scopeId","data-v-086e48cd"]]),rd={class:"forget-password-container"},sd={class:"forget-box"},ld={class:"header-title"},cd={key:0,class:"kefu-wrapper"},ud={class:"kefu-text"},dd={key:1,class:"form-wrapper"},hd={key:0},pd={key:1},fd={class:"tab-switcher"},md={class:"default-info"},gd={class:"title"},vd={class:"user-value"},Ad={name:"AuthDialog",components:{ElDialog:Ve,ElForm:De,ElFormItem:Je,ElInput:Ue,ElButton:ze,ElCheckbox:je,ElSelect:Pe,ElOption:Ne,ElRadioGroup:Ke,ElRadioButton:qe,GoogleInput:Xi,CodeInput:fs,RegisterForm:fl,LoginTypeSwitcher:Oc,JcVerifySlide:us,WechatLogin:Nc,ThirdLogin:Eu,WechatChooseType:Ru,WechatBindLogin:Uu,CompleteInfoForm:nd,ForgetPassword:/* @__PURE__ */Yo(/* @__PURE__ */i({__name:"ForgetPassword",props:["isEn"],emits:["to-login"],setup(t,{emit:o}){const n=t,i=o,{activeStep:a,activeTab:r,loading:d,verifyVisible:p,formA:m,formB:g,userData:v,disabledTabs:y,showCustomerService:C,codeCountdown:w,handleTriggerVerify:E,handleVerifySuccess:I,handleSendCodeVerifySuccess:k,handleSubmitReset:R}=function(t){const o=e(1),n=e(!1),i=e(!1),a=e(),r=S({userName:""}),s=e({}),l=e(!1),c=e("email"),u=S({email:!1,mobile:!1}),d=S({code:"",password:"",confirmPassword:""}),h=e(""),p=e(!1),f=S({mobile:!1,email:!1}),m=async e=>{n.value=!0;try{const n=await be({account:r.userName,...e});if(n.data.data?.exists){s.value=n.data.data;const e=!!s.value.email,t=!!s.value.mobile;e||t?(l.value=!1,o.value=2,e?(c.value="email",u.email=!1,u.mobile=!t):(c.value="mobile",u.mobile=!1,u.email=!0)):l.value=!0}else Le.error(t.isEn?"Account does not exist":"账号不存在")}catch(i){console.error(i)}finally{n.value=!1}},g=async(e,o)=>{try{a.value=e;const{data:n}=await Ee({account:s.value.account,target:c.value,...e});console.log("🍉 ~ useForgetPassword.ts:127 ~ sendVerifyCode ~ res:",n),0===n.code&&(Le.success(t.isEn?"Verification code sent":"验证码已发送"),h.value=n.data.verifyCode,o(),"mobile"===c.value?f.mobile=!0:f.email=!0)}catch(n){console.error(n)}};return{activeStep:o,activeTab:c,loading:n,verifyVisible:i,formA:r,formB:d,userData:s,disabledTabs:u,showCustomerService:l,codeCountdown:f,codeReady:p,handleTriggerVerify:()=>{i.value=!0},handleVerifySuccess:e=>{console.log("🍉 ~ useForgetPassword.ts:52 ~ handleVerifySuccess ~ captchaData:",e),i.value=!1,console.log("🍉 ~ useForgetPassword.ts:53 ~ handleVerifySuccess ~ ctiveStep.value:",o.value),1===o.value&&m(e)},handleSendCodeVerifySuccess:({captchaData:e,startTimer:t})=>{console.log("🍉 ~ useForgetPassword.ts:52 ~ handleSendCodeVerifySuccess ~ captchaData:",e),2===o.value&&g(e,t)},handleSubmitReset:async()=>{if(a.value?.code){n.value=!0;try{const e={id:s.value.id,account:s.value.account,codeId:h.value,codeValue:d.code,password:Xr.MD5(d.password).toString(),...a.value},{data:o}=await we(e);return 0===o.code?(Le.success(t.isEn?"Password reset successfully":"密码重置成功"),!0):(Le.error(o.msg),!1)}catch(e){return console.error(e),!1}finally{n.value=!1}}else Le.info("Please get the verification code first")}}}({isEn:n.isEn}),T=e(),F=e(),Q=(e,t,o)=>{""===t?o(new Error(n.isEn?"Please input the password again":"请再次输入密码")):t!==g.password?o(new Error(n.isEn?"Two inputs don't match!":"两次输入密码不一致!")):o()},L={userName:[{required:!0,message:n.isEn?"Please enter username":"请输入账号",trigger:"blur"}]},P={code:[{required:!0,validator:(e,t,o)=>Os(0,t,o,n.isEn),trigger:"blur"}],password:[{required:!0,validator:(e,t,o)=>Vs(0,t,o,n.isEn),trigger:"blur"},{validator:Q,trigger:"blur"}],confirmPassword:[{required:!0,validator:(e,t,o)=>Vs(0,t,o,n.isEn),trigger:"blur"},{validator:Q,trigger:"blur"}]},N=()=>{T.value.validate(e=>{e&&E()})},U=async()=>{F.value&&await F.value.validate(async e=>{if(e){await R()&&i("to-login")}})};return(e,o)=>(l(),s("div",rd,[u("div",sd,[u("div",ld,[u("h1",null,A(t.isEn?"Reset Password":"重置密码"),1)]),b(C)?(l(),s("div",cd,[o[8]||(o[8]=u("img",{src:"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAoAAAAHgCAYAAAA10dzkAAAAAXNSR0IArs4c6QAAIABJREFUeF7svQt4VtWZ9n/vHMlBRERCtTIC9hNtEfCbqWhstRWwB9uIoo6OOBVqqx1lpAUcL/1/hP/YzxZRqTpqiyKKSqUqxioKCTM4YwKdtnKqVDoQKXQcAogBcj693/XssMObN+9h73cf1973vi6uaLL2Ws/6PSvJnWet9Twa+JAACZAACZAACZAACUSKgBap2XKyJEACJEACJEACJEACoADkIiABEiABEiABEiCBiBGgAIyYwzldEiABEiABEiABEqAA5BogARIgARIgARIggYgRoACMmMM5XRIgARIgARIgARKgAOQaIAESIAESIAESIIGIEaAAjJjDOV0SIAESIAESIAESoADkGiABEiABEiABEiCBiBGgAIyYwzldEiABEiABEiABEqAA5BogARIgARIgARIggYgRoACMmMM5XRIgARIgARIgARKgAOQaIAESIAESIAESIIGIEaAAjJjDOV0SIAESIAESIAESoADkGiABEiABEiABEiCBiBGgAIyYwzldEiABEiABEiABEqAA5BogARIgARIgARIggYgRoACMmMM5XRIgARIgARIgARKgAOQaIAESIAESIAESIIGIEaAAjJjDOV0SIAESIAESIAESoADkGiABEiABEiABEiCBiBGgAIyYwzldEiABEiABEiABEqAA5BogARIgARIgARIggYgRoACMmMM5XRIgARIgARIgARKgAOQaIAESIAESIAESIIGIEaAAjJjDOV0SIAESIAESIAESoADkGiABEiABEiABEiCBiBGgAIyYwzldEiABEiABEiABEqAA5BogARIgARIgARIggYgRoACMmMM5XRIgARIgARIgARKgAOQaIAESIAESIAESIIGIEaAAjJjDOV0SIAESIAESIAESoADkGiABEiABEiABEiCBiBGgAIyYwzldEiABEiABEiABEqAA5BogARIgARIgARIggYgRoACMmMM5XRIgARIgARIgARKgAOQaIAESIAESIAESIIGIEaAAjJjDOV0SIAESIAESIAESoADkGiABEiABEiABEiCBiBGgAIyYwzldEiABEiABEiABEqAA5BogARIgARIgARIggYgRoACMmMM5XRIgARIgARIgARKgAOQaIAESIAESIAESIIGIEaAAjJjDOV0SIAESIAESIAESoADkGiABEogcgV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hAAAIpI4AATNmGs1wIQAACEIAABCCAAOQMQAACEIAABCAAgZQRQACmbMNZLgQgAAEIQAACEEAAcgYgAAEIQAACEIBAygggAFO24SwXAhCAAAQgAAEI/D8t7N6/Cx82BAAAAABJRU5ErkJggg==",class:"kefu-img"},null,-1)),u("p",ud,A(t.isEn?"The current account does not have a phone number and email, and cannot be verified. Please contact customer service directly":"当前账号没有手机号和邮箱,无法验证,请直接联系客服。"),1),u("div",null,A(t.isEn?"Customer Service":"联系客服"),1)])):(l(),s("div",dd,[1===b(a)?(l(),s("div",hd,[h(b(De),{ref_key:"formARef",ref:T,model:b(m),rules:L},{default:x(()=>[h(b(Je),{prop:"userName",class:"jc:mb-5!"},{default:x(()=>[h(Xi,{modelValue:b(m).userName,"onUpdate:modelValue":o[0]||(o[0]=e=>b(m).userName=e),placeholder:t.isEn?"Username/Email/Phone Number":"用户名/邮箱/手机号"},null,8,["modelValue","placeholder"])]),_:1}),h(b(ze),{type:"primary",class:"submit-btn",loading:b(d),onClick:N},{default:x(()=>[B(A(t.isEn?"Next":"下一步"),1)]),_:1},8,["loading"])]),_:1},8,["model"])])):f("",!0),2===b(a)?(l(),s("div",pd,[u("div",fd,[u("div",{class:c(["tab-item",{active:"email"===b(r),disabled:b(y).email}]),onClick:o[1]||(o[1]=e=>!b(y).email&&(r.value="email"))},[o[9]||(o[9]=u("svg",{t:"1767855712095",class:"icon-svg",viewBox:"0 0 1024 1024",version:"1.1",xmlns:"http://www.w3.org/2000/svg","p-id":"9362","xmlns:xlink":"http://www.w3.org/1999/xlink",width:"200",height:"200"},[u("path",{fill:"currentColor",d:"M113.242353 250.217412l356.352 356.412235a60.235294 60.235294 0 0 0 80.655059 4.156235l4.577882-4.156235 356.111059-356.171294c1.204706 4.397176 1.987765 8.914824 2.409412 13.552941l0.240941 6.987294v481.882353c0 42.345412-32.768 77.101176-74.270118 80.112941l-6.023529 0.240942H190.765176a80.293647 80.293647 0 0 1-80.112941-74.330353l-0.180706-6.02353v-481.882353c0-4.818824 0.421647-9.456941 1.204706-14.034823l1.505883-6.746353z m720.052706-59.512471c4.818824 0 9.637647 0.421647 14.215529 1.204706l6.866824 1.566118-342.136471 342.13647-342.256941-342.13647c4.397176-1.204706 9.035294-2.048 13.673412-2.409412l7.107764-0.361412h642.529883z","p-id":"9363"})],-1)),B(" "+A(t.isEn?"Email Verify":"邮箱验证"),1)],2),u("div",{class:c(["tab-item",{active:"mobile"===b(r),disabled:b(y).mobile}]),onClick:o[2]||(o[2]=e=>!b(y).mobile&&(r.value="mobile"))},[o[10]||(o[10]=u("svg",{t:"1767855760413",class:"icon-svg",viewBox:"0 0 1024 1024",version:"1.1",xmlns:"http://www.w3.org/2000/svg","p-id":"9516","xmlns:xlink":"http://www.w3.org/1999/xlink",width:"200",height:"200"},[u("path",{fill:"currentcolor",d:"M694.874353 918.949647c-57.825882-2.108235-221.726118-24.696471-393.336471-196.367059-171.610353-171.550118-194.258824-335.450353-196.367058-393.33647-3.252706-88.124235 64.271059-173.778824 142.336-207.209412a59.030588 59.030588 0 0 1 58.006588 6.324706c64.210824 46.863059 108.604235 117.639529 146.672941 173.357176 17.227294 25.178353 13.071059 59.512471-10.24 79.75153L363.52 439.717647a19.275294 19.275294 0 0 0-5.722353 24.696471c17.709176 32.346353 49.332706 80.353882 85.473882 116.495058 36.141176 36.141176 86.437647 69.752471 120.952471 89.509648a19.395765 19.395765 0 0 0 25.840941-6.445177l50.959059-77.703529c19.516235-25.961412 56.018824-31.623529 82.582588-13.251765 56.500706 39.092706 122.458353 82.642824 170.706824 144.444235a59.030588 59.030588 0 0 1 7.589647 59.632941c-33.611294 78.426353-118.663529 145.167059-207.088941 141.914353z","p-id":"9517"})],-1)),B(" "+A(t.isEn?"Mobile Verify":"手机验证"),1)],2)]),h(b(De),{ref_key:"formBRef",ref:F,model:b(g),rules:P},{default:x(()=>[h(b(Je),{class:"info-item"},{default:x(()=>[u("p",md,[u("span",gd,A("email"===b(r)?t.isEn?"Email":"邮箱":t.isEn?"Mobile":"手机号"),1),u("span",vd,A("email"===b(r)?b(v).email:b(v).mobile),1)])]),_:1}),h(b(Je),{prop:"code"},{default:x(()=>[h(fs,{"show-icon":"",modelValue:b(g).code,"onUpdate:modelValue":o[3]||(o[3]=e=>b(g).code=e),placeholder:t.isEn?"Verification Code":"验证码",ready:!0,"is-en":t.isEn,"custom-countdown":"email"===b(r)?b(w).email:b(w).mobile,onSend:b(k)},null,8,["modelValue","placeholder","is-en","custom-countdown","onSend"])]),_:1}),h(b(Je),{prop:"password"},{default:x(()=>[h(aa,{modelValue:b(g).password,"onUpdate:modelValue":o[4]||(o[4]=e=>b(g).password=e),type:"password","show-password":"",class:"input-show-pass",label:t.isEn?"Password":"密码",placeholder:t.isEn?"Password, 6-20 characters include letters, numbers and symbols":"密码,6-20位字符,包含字母、数字和符号"},{prefix:x(()=>[...o[11]||(o[11]=[u("i",{class:"icon-auth-password"},null,-1)])]),_:1},8,["modelValue","label","placeholder"])]),_:1}),h(b(Je),{prop:"confirmPassword"},{default:x(()=>[h(aa,{modelValue:b(g).confirmPassword,"onUpdate:modelValue":o[5]||(o[5]=e=>b(g).confirmPassword=e),type:"password","show-password":"",class:"input-show-pass",label:t.isEn?"Confirm Password":"确认密码",placeholder:t.isEn?"Enter password again":"请再次输入密码"},{prefix:x(()=>[...o[12]||(o[12]=[u("i",{class:"icon-auth-password"},null,-1)])]),_:1},8,["modelValue","label","placeholder"])]),_:1}),h(b(ze),{type:"primary",class:"submit-btn",loading:b(d),onClick:U},{default:x(()=>[B(A(t.isEn?"Confirm":"确认修改"),1)]),_:1},8,["loading"])]),_:1},8,["model"])])):f("",!0)]))]),h(ad,{label:t.isEn?"Back to":"返回","sub-label":t.isEn?"log in":"登录",onHandleClick:o[6]||(o[6]=e=>i("to-login")),style:{margin:"12px -16px -16px"}},null,8,["label","sub-label"]),h(us,{visible:b(p),"onUpdate:visible":o[7]||(o[7]=e=>V(p)?p.value=e:null),"is-en":t.isEn,onSuccess:b(I)},null,8,["visible","is-en","onSuccess"])]))}}),[["__scopeId","data-v-1956298b"]])},props:{visible:{type:Boolean,default:!1},lang:{type:String,default:""},loginPath:{type:String,default:"http://localhost:8086"},showTestThirdBtn:{type:Boolean,default:!1}},provide(){return{loginPath:this.loginPath,lang:this.lang,isEn:this.isEn}},created(){Be({prefixPath:"https://cloudapi-sit.jctrans.net.cn"})},mounted(){const e=Ie();e&&(this.loginForm.username=e,this.loginForm.remember=!0)},setup(e){const{proxy:t}=D(),{loading:o,handleAuthSubmit:n,executeRedirect:i}=Tu({appId:"ERA",isEn:"en"===e.lang||"en-US"===e.lang,onNeedComplete:e=>{console.log("需要完善信息,暂不关闭弹窗"),t.handleNeedComplete()},onSuccess:e=>{t.loginForm.remember&&ke(t.loginForm.username,!0),t.currentVisible=!1,i(e)}});return{authLoading:o,handleAuthSubmit:n,executeRedirect:i}},data(){return{currentVisible:this.visible,formMode:"login",loginType:"account",loginMethod:"email",areaCodeData:[],isCounting:!1,countdown:60,codeReady:!1,timer:null,loginForm:{type:"email",username:"",password:"",remember:!1,areaCode:"+86",phone:"",email:"",code:""},loginRules:{username:[{required:!0,trigger:"blur",message:this.isEn?"Please enter your Username/phone number/email":"请输入账号/手机号/邮箱"}],password:[{required:!0,trigger:"blur",message:this.isEn?"Please enter the password":"请输入密码"}],email:[{required:!0,validator:(e,t,o)=>Ns(0,t,o,this.isEn),trigger:"blur"}],phone:[{required:!0,validator:(e,t,o)=>Ds(0,t,o,this.isEn),trigger:"blur"}],code:[{required:!0,validator:(e,t,o)=>Os(0,t,o,this.isEn),trigger:"blur"}]},verifyData:{},captchaVisible:!1,mobileUid:"",emailUid:"",currentVerifyData:null}},computed:{currentDialogWidth(){let e="480px";return["register","need-complete","forget-password"].includes(this.formMode)&&(e="640px"),"login"!==this.formMode||"linkedin"!==this.loginType&&"facebook"!==this.loginType&&"TEST"!==this.loginType||(e="640px"),e},computedRules(){const e={username:[{required:!0,trigger:"blur",message:this.isEn?"Please enter your Username/phone number/email":"请输入账号/手机号/邮箱"}],password:[{required:!0,trigger:"blur",message:this.isEn?"Please enter the password":"请输入密码"}],email:[{required:!0,validator:(e,t,o)=>Ns(0,t,o,this.isEn),trigger:"blur"}],phone:[{required:!0,validator:(e,t,o)=>Ds(0,t,o,this.isEn),trigger:"blur"}],code:[{required:!0,validator:(e,t,o)=>Os(0,t,o,this.isEn),trigger:"blur"}]};return"account"===this.loginType?{username:e.username,password:e.password}:"code"===this.loginType?{code:e.code,..."email"===this.loginForm.type?{email:e.email}:{phone:e.phone}}:{}},isEn(){if(this.lang)return"en"===this.lang||"en-US"===this.lang;try{if("function"==typeof useCookie){const e=useCookie("jc-language")?.value;if(e)return/^en(-US)?$/.test(e)}}catch(e){}if("undefined"!=typeof document){const e=document.cookie||"";return/(^|;\s*)jc-language=en(-US)?(;|$)/.test(e)}try{if("function"==typeof useNuxtApp){const e=useNuxtApp();return/(^|;\s*)jc-language=en(-US)?(;|$)/.test(e?.ssrContext?.event?.node?.req?.headers?.cookie||"")}}catch(e){}return!1}},watch:{visible(e){this.currentVisible=e},currentVisible(e){this.$emit("update:visible",e)}},methods:{go2Agreement:Js,go2Policy:js,handleOpen(){this.$emit("open")},handleClose(){this.loginType="account",this.formMode="login",this.$emit("close")},handleThirdClick(e){this.loginType=e,this.$nextTick(()=>{this.$refs.thirdLoginRef.initLogin(e)})},handleTest(e){this.formMode=e},handleNeedComplete(){this.formMode="need-complete"},handleCompleteSuccess(e){e.redirectPath?this.executeRedirect(e):this.currentVisible=!1},handleWechatNeedRegister(){this.formMode="wechat-need-register"},handleWechatLogin(){this.formMode="wechat-bind"},handleWechatRegister(){this.formMode="register"},switchLoginTab(e){this.loginType!==e&&(this.loginType=e,this.$nextTick(()=>{if(!this.$refs.loginFormRef)return;this.$refs.loginFormRef.clearValidate();const e={username:"",password:"",email:"",phone:"",code:"",areaCode:"+86",remember:this.loginForm.remember,type:this.loginForm.type};Object.assign(this.loginForm,e),this.codeReady=!1}))},validateField(e){this.$refs.loginFormRef.validateField(e,e=>{this.codeReady=e})},handleGetCode({captchaData:e,startTimer:t}){const o="mobile"===this.loginForm.type,n={target:this.loginForm.email||this.loginForm.phone,uuid:e.uuid,code:e.code};o&&(n.areaCode=this.loginForm.areaCode);const i=o?re:ne;this.verifyData=e,i(n).then(e=>{const n=e.data.data?.verifyCode||e.data.verifyCode;0===e.data.code&&n&&(o?this.mobileUid=n:this.emailUid=n,t(),Le.success(this.isEn?"Verification code sent":"验证码已发送"))}).catch(e=>{console.error(e)}),console.log("发送注册验证码")},handleLogin(){this.$refs.loginFormRef.validate(e=>{if(e)if("account"===this.loginType)this.captchaVisible=!0;else{if(console.log("🍉 ~ index.vue:795 ~ this.verifyData:",this.verifyData),console.log("🍉 ~ index.vue:796 ~ this.verifyData.code:",this.verifyData.code),!this.verifyData||!this.verifyData.uuid)return Le.error(this.isEn?"Please get the verification code first":"请先获取验证码");this.handleCaptchaSuccess(this.verifyData)}})},async handleCaptchaSuccess(e){this.captchaVisible=!1,this.handleAuthSubmit({loginType:this.loginType,loginForm:this.loginForm,captchaData:e,mobileUid:this.mobileUid,emailUid:this.emailUid,areaCodeData:this.areaCodeData,isKick:!1})},handleForget(){console.log("Forget Password"),this.formMode="forget-password"},async handleChangeSubType(e){this.loginMethod=e,"mobile"==e&&0===this.areaCodeData.length&&this.getAreaCodeData()},async getAreaCodeData(){const e=await ie();this.areaCodeData=e.data.data.records},handleToLogin(){this.formMode="login",this.loginType="account"}}},yd={key:0,class:"auth-container"},Cd={class:"login-section"},wd={class:"login-title"},Ed={key:0,class:"tab-header"},bd={key:1,class:"tel"},Id={class:"login-passport"},Bd={class:"login-remember"},kd={key:0,class:"login-agreement"},Sd={class:"login-agreement-text"},xd={class:"login-agreement-text-item"},Rd={class:"login-agreement-text-item"},Td={key:2},Fd={key:3},Qd={key:4,class:"third-party-sign-in"},Ld={class:"third-party-sign-in-title"},Pd={class:"third-party-sign-in-group"},Nd={class:"bottom-tip"},Ud={key:3,class:"auth-container"},Vd={class:"register-section"};const Dd=/* @__PURE__ */Yo(Ad,[["render",function(e,t,o,n,i,a){const r=R("GoogleInput"),p=R("el-form-item"),m=R("LoginTypeSwitcher"),C=R("el-option"),w=R("el-select"),E=R("google-input"),b=R("CodeInput"),I=R("el-checkbox"),k=R("el-button"),S=R("el-form"),T=R("WechatLogin"),F=R("ThirdLogin"),Q=R("WechatChooseType"),L=R("WechatBindLogin"),P=R("RegisterForm"),N=R("CompleteInfoForm"),U=R("ForgetPassword"),V=R("JcVerifySlide"),D=R("ElDialog");return l(),d(D,{modelValue:i.currentVisible,"onUpdate:modelValue":t[23]||(t[23]=e=>i.currentVisible=e),"close-on-click-modal":!1,"append-to-body":!0,"destroy-on-close":"",width:a.currentDialogWidth,top:"5vh",class:"jc-auth-dialog","show-close":!0,onClose:a.handleClose,onOpen:a.handleOpen},{default:x(()=>["login"===i.formMode?(l(),s("div",yd,[u("div",Cd,[u("div",wd,[u("p",null,A(a.isEn?"Welcome Back to JCtrans":"欢迎回到JCtrans"),1)]),["account","code"].includes(i.loginType)?(l(),s("div",Ed,[u("span",{class:c(["tab-header-title",{active:"account"===i.loginType}]),onClick:t[0]||(t[0]=e=>a.switchLoginTab("account"))},A(a.isEn?"Password Login":"账号登录"),3),u("span",{class:c(["tab-header-title",{active:"code"===i.loginType}]),onClick:t[1]||(t[1]=e=>a.switchLoginTab("code"))},A(a.isEn?"Verification Code Login":"验证码登录"),3)])):f("",!0),"account"===i.loginType||"code"===i.loginType?(l(),d(S,{key:1,ref:"loginFormRef",model:i.loginForm,rules:a.computedRules,"validate-on-rule-change":!1,class:"auth-form login-form-content"},{default:x(()=>["account"===i.loginType?(l(),s(g,{key:0},[h(p,{prop:"username",class:"form-user"},{default:x(()=>[h(r,{modelValue:i.loginForm.username,"onUpdate:modelValue":t[2]||(t[2]=e=>i.loginForm.username=e),placeholder:a.isEn?"Username/Email/Phone Number":"用户名/邮箱/手机号"},null,8,["modelValue","placeholder"])]),_:1}),h(p,{prop:"password",class:"password-item"},{default:x(()=>[h(r,{modelValue:i.loginForm.password,"onUpdate:modelValue":t[3]||(t[3]=e=>i.loginForm.password=e),type:"password",class:"input-show-pass",placeholder:a.isEn?"Password":"密码","show-password":""},null,8,["modelValue","placeholder"])]),_:1})],64)):"code"===i.loginType?(l(),s(g,{key:1},[h(p,{prop:"type"},{default:x(()=>[h(m,{modelValue:i.loginForm.type,"onUpdate:modelValue":t[4]||(t[4]=e=>i.loginForm.type=e),"is-en":a.isEn,onChange:a.handleChangeSubType},null,8,["modelValue","is-en","onChange"])]),_:1}),"email"===i.loginForm.type?(l(),d(p,{key:0,prop:"email"},{default:x(()=>[h(r,{modelValue:i.loginForm.email,"onUpdate:modelValue":t[5]||(t[5]=e=>i.loginForm.email=e),placeholder:a.isEn?"Email Address":"邮箱地址",onBlur:t[6]||(t[6]=e=>a.validateField("email"))},null,8,["modelValue","placeholder"])]),_:1})):(l(),s("div",bd,[(l(),d(p,{prop:"phone",ref:"phone",key:8,class:"tel-mobile","inline-message":!0},{default:x(()=>[h(E,{modelValue:i.loginForm.phone,"onUpdate:modelValue":t[9]||(t[9]=e=>i.loginForm.phone=e),placeholder:a.isEn?"Cell Phone Number":"手机号码",label:a.isEn?"Cell Phone Number":"手机号码",clearable:"",autocomplete:"off",onBlur:t[10]||(t[10]=e=>a.validateField("phone")),maxlength:"15",disabled:i.isCounting},{prefix:x(()=>[h(p,{prop:"areaCode",class:"tel-areacode","inline-message":!0},{default:x(()=>[h(w,{modelValue:i.loginForm.areaCode,"onUpdate:modelValue":t[7]||(t[7]=e=>i.loginForm.areaCode=e),placeholder:a.isEn?"Code":"区号",onChange:t[8]||(t[8]=e=>a.validateField("areaCode")),disabled:i.isCounting,"popper-class":"jc-area-code-select-wrapper"},{default:x(()=>[(l(!0),s(g,null,v(i.areaCodeData,e=>(l(),d(C,{key:e.id,label:e.telCode,value:e.telCode},null,8,["label","value"]))),128)),h(C,{label:"+86",value:"+86"})]),_:1},8,["modelValue","placeholder","disabled"])]),_:1})]),_:1},8,["modelValue","placeholder","label","disabled"])]),_:1}))])),h(p,{prop:"code"},{default:x(()=>[h(b,{modelValue:i.loginForm.code,"onUpdate:modelValue":t[11]||(t[11]=e=>i.loginForm.code=e),placeholder:a.isEn?"Verification Code":"验证码",ready:i.codeReady,"is-en":a.isEn,onSend:a.handleGetCode},null,8,["modelValue","placeholder","ready","is-en","onSend"])]),_:1})],64)):f("",!0),u("div",Id,[u("div",Bd,[h(p,{prop:"remember",class:"remember-item"},{default:x(()=>[h(I,{modelValue:i.loginForm.remember,"onUpdate:modelValue":t[12]||(t[12]=e=>i.loginForm.remember=e),class:"remember-btn"},{default:x(()=>[B(A(a.isEn?"Remember Me":"30天自动登录"),1)]),_:1},8,["modelValue"])]),_:1}),"account"===i.loginType?(l(),s("span",{key:0,class:"forget-pwd-btn",onClick:t[13]||(t[13]=(...e)=>a.handleForget&&a.handleForget(...e))},A(a.isEn?"Forgot your password?":"忘记密码"),1)):f("",!0)]),"code"===i.loginType?(l(),s("div",kd,[u("div",Sd,[u("span",xd,A(a.isEn?"Automatically log in after verification if not registered. Registration means you agree":"未注册验证后自动登录,注册即代表同意"),1),u("span",{class:"link-type",onClick:t[14]||(t[14]=y((...e)=>a.go2Agreement&&a.go2Agreement(...e),["stop"]))},A(a.isEn?"User Agreement":"《用户条款和协议》"),1),u("span",Rd,A(a.isEn?"and":"和"),1),u("span",{class:"link-type",onClick:t[15]||(t[15]=y((...e)=>a.go2Policy&&a.go2Policy(...e),["stop"]))},A(a.isEn?"Privacy Policy":"《隐私政策》"),1)])])):f("",!0),h(k,{class:"submit-btn",loading:n.authLoading,onClick:a.handleLogin},{default:x(()=>[B(A("code"===i.loginType?a.isEn?"Register and log in":"登录/注册":a.isEn?"Sign In":"登录")+" ",1),t[24]||(t[24]=u("i",{class:"el-icon-right",style:{"margin-left":"8px"}},null,-1))]),_:1},8,["loading","onClick"])])]),_:1},8,["model","rules"])):f("",!0),"wechat"===i.loginType?(l(),s("div",Td,[h(T,{"is-en":a.isEn,onNeedRegister:a.handleWechatNeedRegister},null,8,["is-en","onNeedRegister"])])):f("",!0),"facebook"===i.loginType||"linkedin"===i.loginType||"TEST"===i.loginType?(l(),s("div",Fd,[h(F,{"is-en":a.isEn,ref:"thirdLoginRef",onToLogin:a.handleToLogin},null,8,["is-en","onToLogin"])])):f("",!0),"TEST"!==i.loginType&&"facebook"!==i.loginType&&"linkedin"!==i.loginType?(l(),s("div",Qd,[u("div",Ld,A(a.isEn?"Sign in with":"其他登录方式"),1),u("div",Pd,[["wechat","linkedin","facebook"].includes(i.loginType)?(l(),s("div",{key:0,class:"third-party-sign-in-btn",onClick:t[16]||(t[16]=()=>i.loginType="account")},[t[25]||(t[25]=u("i",{class:"icon-account"},null,-1)),u("span",null,A(a.isEn?"Account":"账户"),1)])):["account","code"].includes(i.loginType)?(l(),s("div",{key:1,class:"third-party-sign-in-btn",onClick:t[17]||(t[17]=()=>i.loginType="wechat")},[t[26]||(t[26]=u("i",{class:"icon-auth-wechat"},null,-1)),u("span",null,A(a.isEn?"WeChat":"微信"),1)])):f("",!0),u("div",{class:"third-party-sign-in-btn",onClick:t[18]||(t[18]=e=>a.handleThirdClick("linkedin"))},[...t[27]||(t[27]=[u("i",{class:"icon-auth-linkedin"},null,-1),u("span",null,"LinkedIn",-1)])]),u("div",{class:"third-party-sign-in-btn",onClick:t[19]||(t[19]=e=>a.handleThirdClick("facebook"))},[...t[28]||(t[28]=[u("i",{class:"icon-auth-facebook"},null,-1),u("span",null,"Facebook",-1)])]),o.showTestThirdBtn?(l(),s("div",{key:2,class:"third-party-sign-in-btn",onClick:t[20]||(t[20]=e=>a.handleThirdClick("TEST"))},[...t[29]||(t[29]=[u("i",{class:"icon-auth-facebook"},null,-1),u("span",null,"TEST",-1)])])):f("",!0)])])):f("",!0),u("div",Nd,[B(A(a.isEn?"Don't have an account?":"没有账户?")+" ",1),u("span",{class:"action-text",onClick:t[21]||(t[21]=e=>i.formMode="register")},[B(A(a.isEn?"Register now":"立即注册")+" ",1),t[30]||(t[30]=u("svg",{t:"1767853448095",class:"icon-more",viewBox:"0 0 1024 1024",version:"1.1",xmlns:"http://www.w3.org/2000/svg","p-id":"8538",width:"200",height:"200"},[u("path",{d:"M456.874667 798.208l-60.416-60.416L622.336 512 396.458667 286.208l60.416-60.416 256 256a42.666667 42.666667 0 0 1 0 60.416l-256 256z",fill:"#FF6A00","p-id":"8539"})],-1))])])])])):"wechat-need-register"===i.formMode?(l(),d(Q,{key:1,"is-en":a.isEn,onToBind:a.handleWechatLogin,onToRegister:a.handleWechatRegister},null,8,["is-en","onToBind","onToRegister"])):"wechat-bind"===i.formMode?(l(),d(L,{key:2,"is-en":a.isEn,onNeedComplete:a.handleNeedComplete},null,8,["is-en","onNeedComplete"])):"register"===i.formMode?(l(),s("div",Ud,[u("div",Vd,[h(P,{"is-en":a.isEn,onToLogin:a.handleToLogin,onNeedComplete:a.handleNeedComplete},null,8,["is-en","onToLogin","onNeedComplete"])])])):"need-complete"===i.formMode?(l(),d(N,{key:4,"is-en":a.isEn,onSuccess:a.handleCompleteSuccess},null,8,["is-en","onSuccess"])):"forget-password"===i.formMode?(l(),d(U,{key:5,"is-en":a.isEn,onToLogin:a.handleToLogin},null,8,["is-en","onToLogin"])):f("",!0),h(V,{visible:i.captchaVisible,"onUpdate:visible":t[22]||(t[22]=e=>i.captchaVisible=e),"is-en":a.isEn,onSuccess:a.handleCaptchaSuccess},null,8,["visible","is-en","onSuccess"])]),_:1},8,["modelValue","width","onClose","onOpen"])}],["__scopeId","data-v-288570d8"]]),Md=/* @__PURE__ */Object.freeze(/* @__PURE__ */Object.defineProperty({__proto__:null,default:Dd},Symbol.toStringTag,{value:"Module"}));function Od(o,n){const i=e([]),a=e(!1),r=e(!1),s=e(!1),l=e(1),c=e(0),u=t(()=>{const e=[...n.value];return e.includes("Country")&&!e.includes("Region")&&e.push("Region"),e});return{searchResults:i,loading:a,isFetchingMore:r,isFinished:s,fetchData:async(e=!1)=>{const t=o.value.trim();if(!t)return i.value=[],c.value=0,void(s.value=!1);if(e){if(r.value||s.value)return;r.value=!0,l.value+=1}else{if(a.value)return;a.value=!0,l.value=1,s.value=!1}try{const o=await async function(e,t=["Continent","Country","City","Seaport","Airport"],o={}){return O.searchByName({keyword:e,displayInfo:t,...o})}(t,n.value,{current:l.value,size:10}),a=(d=o.records||[],Array.isArray(d)?d.filter(e=>u.value.includes(e.type)):[]);e?i.value.push(...a):i.value=a,c.value=o.total||0,(i.value.length>=c.value||a.length<10)&&(s.value=!0)}catch(h){console.error("Search request failed:",h),e&&(l.value-=1)}finally{a.value=!1,r.value=!1}var d}}}const Jd={class:"h5-search-container"},jd={class:"trigger-content"},zd=["src"],Hd={class:"placeholder-text"},qd={key:0,class:"selected-count"},Kd={key:1,class:"selected-val"},Gd={key:2,class:"placeholder-gray"},Wd={key:0,class:"h5-modal-root"},Yd={class:"h5-drawer-card"},_d={class:"h5-header"},Zd={class:"h5-input-wrapper"},Xd=["src"],$d=["placeholder"],eh={key:0,class:"h5-spinner-box"},th={key:1,class:"h5-section"},oh={class:"h5-section-hd"},nh={class:"h5-history-grid"},ih=["onClick"],ah={key:2,class:"h5-result-list"},rh=["onClick"],sh={class:"item-info"},lh={class:"item-name"},ch={key:0,class:"item-sub"},uh={class:"h5-load-status"},dh={key:1,class:"no-more"},hh={key:3,class:"h5-empty"},ph=/* @__PURE__ */Yo(/* @__PURE__ */i({__name:"index",props:{modelValue:{},multiple:{type:Boolean,default:!1},lang:{default:"zh-CN"},placeholder:{},historyKey:{}},emits:["update:modelValue","select"],setup(n,{emit:i}){const p=n,C=i,w=e(!1),B=e(""),k=e(null),S=e(null);let R=null;const{searchHistory:T,saveToHistory:F,clearHistory:L}=function(n){const i=e([]),a="undefined"!=typeof window&&"undefined"!=typeof localStorage,r=t(()=>(n.value||"")+"_search_history_cache"),s=t(()=>!!n.value&&""!==n.value);return o(()=>{if(a&&s.value){const t=localStorage.getItem(r.value);if(t)try{i.value=JSON.parse(t)}catch(e){i.value=[]}}}),{searchHistory:i,saveToHistory:e=>{if(!e||!a)return;const t=i.value.filter(t=>t.id&&t.id!==e.id||t.display!==e.display);t.unshift(e);const o=t.slice(0,4);if(s.value){i.value=o;try{localStorage.setItem(r.value,JSON.stringify(o))}catch(n){console.warn("LocalStorage save failed:",n)}}},clearHistory:()=>{i.value=[],a&&localStorage.removeItem(r.value)},HasHistory:s}}(a(p,"historyKey")),{searchResults:P,loading:N,isFetchingMore:V,isFinished:D,fetchData:M}=Od(B,e(["City","Seaport","Airport"])),O=t(()=>{if(p.lang)return"en"===p.lang||"en-US"===p.lang;try{if("function"==typeof useCookie){const e=useCookie("jc-language")?.value;if(e)return/^en(-US)?$/.test(e)}}catch(e){}if("undefined"!=typeof document){const e=document.cookie||"";return/(^|;\s*)jc-language=en(-US)?(;|$)/.test(e)}try{if("function"==typeof useNuxtApp){const e=useNuxtApp();return/(^|;\s*)jc-language=en(-US)?(;|$)/.test(e?.ssrContext?.event?.node?.req?.headers?.cookie||"")}}catch(e){}return!1}),J=t(()=>Array.isArray(p.modelValue)?p.modelValue:p.modelValue?[p.modelValue]:[]),j=t(()=>!p.multiple&&!!p.modelValue),z=t(()=>j.value?X(p.modelValue):""),H=t(()=>J.value.length>0),q=()=>{w.value=!0,U(()=>{k.value?.focus()})},K=()=>{w.value=!1,B.value=""},G=e=>{if(F(e),p.multiple){J.value.some(t=>t.id===e.id)||C("update:modelValue",[...J.value,e])}else C("update:modelValue",e),K();C("select",e)},W=()=>{C("update:modelValue",p.multiple?[]:null)},Y=e(!1),_=e=>{const t=e.target;if(!t)return;!(t.scrollTop+t.clientHeight>=t.scrollHeight-80)||!B.value||N.value||V.value||D.value||Y.value||(Y.value=!0,M(!0))};r(V,e=>{e||(Y.value=!1)});const Z=()=>{R&&clearTimeout(R),R=setTimeout(()=>{Y.value=!1,S.value?.scrollTo({top:0}),console.log("🍉 ~ index.vue:279 ~ onInput ~ fetchData:",M),M(!1)},300)},X=e=>O.value?e.displayEn||e.display:e.displayCn||e.display,$=e=>J.value.some(t=>t.id===e.id);return(e,t)=>(l(),s("div",Jd,[u("div",{class:"search-trigger",onClick:q},[u("div",jd,[u("img",{src:b(wo),class:"search-icon-m"},null,8,zd),u("div",Hd,[n.multiple&&J.value.length>0?(l(),s("span",qd,A(O.value?"Selected":"已选")+" ("+A(J.value.length)+")",1)):!n.multiple&&j.value?(l(),s("span",Kd,A(z.value),1)):(l(),s("span",Gd,A(n.placeholder||(O.value?"Search":"搜索")),1))])]),H.value?(l(),s("span",{key:0,class:"clear-trigger",onClick:y(W,["stop"])},"ⓧ")):f("",!0)]),(l(),d(I,{to:"body"},[w.value?(l(),s("div",Wd,[h(Q,{name:"fade"},{default:x(()=>[u("div",{class:"h5-mask",onClick:K})]),_:1}),h(Q,{name:"slide-up"},{default:x(()=>[u("div",Yd,[u("div",{class:"drawer-handle",onClick:K}),u("div",_d,[u("div",Zd,[u("img",{src:b(wo),class:"inner-icon"},null,8,Xd),m(u("input",{ref_key:"inputRef",ref:k,"onUpdate:modelValue":t[0]||(t[0]=e=>B.value=e),placeholder:O.value?"City/Port/Airport":"搜索城市/港口/机场",onInput:Z},null,40,$d),[[E,B.value]]),B.value?(l(),s("div",{key:0,class:"h5-clear-btn",onClick:t[1]||(t[1]=e=>B.value="")}," ✕ ")):f("",!0)]),u("div",{class:"h5-cancel-btn",onClick:K},A(O.value?"Cancel":"取消"),1)]),u("div",{class:"h5-main-content",ref_key:"scrollContainer",ref:S,onScroll:_},[b(N)&&!b(V)?(l(),s("div",eh,[...t[3]||(t[3]=[u("div",{class:"h5-spinner"},null,-1)])])):f("",!0),!B.value&&b(T).length>0?(l(),s("div",th,[u("div",oh,[u("span",null,A(O.value?"Recent":"最近搜索"),1),u("span",{class:"h5-clear-history",onClick:t[2]||(t[2]=(...e)=>b(L)&&b(L)(...e))},A(O.value?"Clear":"清空"),1)]),u("div",nh,[(l(!0),s(g,null,v(b(T),(e,t)=>(l(),s("div",{key:t,class:"h5-history-tag",onClick:t=>G(e)},A(X(e)),9,ih))),128))])])):f("",!0),b(P).length>0?(l(),s("div",ah,[(l(!0),s(g,null,v(b(P),(e,t)=>{return l(),s("div",{key:t,class:c(["h5-result-item",{"is-active":$(e)}]),onClick:t=>G(e)},[u("div",{class:c(["item-type",e.type.toLowerCase()])},A((o=e.type,O.value?o:{City:"城市",Seaport:"港口",Airport:"机场"}[o]||o)),3),u("div",sh,[u("div",lh,A(X(e)),1),e.parentName?(l(),s("div",ch,A(e.parentName),1)):f("",!0)])],10,rh);var o}),128)),u("div",uh,[b(V)?(l(),s(g,{key:0},[t[4]||(t[4]=u("div",{class:"mini-spinner"},null,-1)),u("span",null,A(O.value?"Loading...":"加载中..."),1)],64)):b(D)&&B.value?(l(),s("span",dh,A(O.value?"No more results":"没有更多结果了"),1)):f("",!0)])])):f("",!0),B.value&&!b(N)&&0===b(P).length?(l(),s("div",hh,A(O.value?"No Results Found":"未找到相关结果"),1)):f("",!0)],544)])]),_:1})])):f("",!0)]))]))}}),[["__scopeId","data-v-854fc8dd"]]),fh=/* @__PURE__ */Object.freeze(/* @__PURE__ */Object.defineProperty({__proto__:null,default:ph},Symbol.toStringTag,{value:"Module"}));let mh={open(){q.emit(K.Open)},close(){q.emit(K.Close)},onSubmit(e){q.on(K.Submit,e)}};function gh(){let e=!1;return{install(t){if("undefined"!=typeof window&&!e){const t=document.createElement("div");t.setAttribute("id","global-modal-root"),document.body.appendChild(t),M(ys).mount(t),e=!0}t.config.globalProperties.$globalModal=mh}}}const vh=/* @__PURE__ */Object.assign({"./components/ApplyDataDialog.vue":ji,"./components/ChineseCompanySearch/index.vue":Ki,"./components/CodeInput.vue":ms,"./components/GlobalModal.vue":Cs,"./components/GoogleInput.vue":$i,"./components/JcCarrierSearch/index.vue":Ss,"./components/JcFloatInput.vue":ra,"./components/JcFloatWrapper.vue":Ps,"./components/JcLoginDialog/index.vue":Md,"./components/JcMSearch/index.vue":fh,"./components/JcSearch/index.vue":Zo,"./components/JcVerifySlide/index.vue":ds}),Ah={};Object.entries(vh).forEach(([e,t])=>{const o=e.split("/"),n=o.pop()||"",i=o.pop()||"";let a="";a="index.vue"===n?i:n.replace(/\.vue$/,""),a&&t.default&&(Ah[a]=t.default)});const{ApplyDataDialog:yh,JcSearch:Ch,GlobalModal:wh,JCMSearch:Eh,ChineseCompanySearch:bh,JcLoginDialog:Ih,CodeInput:Bh,GoogleInput:kh,JcFloatInput:Sh,JcFloatWrapper:xh,JcVerifySlide:Rh,JcCarrierSearch:Th}=Ah;let Fh=!1;const Qh={install(e,t){if(!Fh){Fh=!0,t?.sharedConfig&&Be(t.sharedConfig);for(const t in Ah)e.component(t,Ah[t]),console.log(`[JcUI] 自动注册组件: ${t}`)}}};export{yh as ApplyDataDialog,bh as ChineseCompanySearch,Bh as CodeInput,wh as GlobalModal,kh as GoogleInput,Eh as JCMSearch,Th as JcCarrierSearch,Sh as JcFloatInput,xh as JcFloatWrapper,Ih as JcLoginDialog,Ch as JcSearch,Rh as JcVerifySlide,Se as MODAL_ACTION,gh as createGlobalModalPlugin,xe as createRequest,Qh as default,Re as emitter,Te as getAppId,Fe as initSharedConfig};
1
+ import{ref as e,computed as t,onMounted as o,onBeforeUnmount as n,defineComponent as a,toRef as i,watch as r,createElementBlock as s,openBlock as l,normalizeClass as c,createElementVNode as u,createBlock as d,createVNode as h,renderSlot as p,createCommentVNode as f,withDirectives as m,Fragment as g,renderList as A,toDisplayString as v,withModifiers as y,withKeys as C,normalizeStyle as w,vModelText as E,unref as b,Teleport as I,createTextVNode as B,vShow as k,reactive as S,withCtx as x,resolveComponent as R,mergeProps as T,toHandlers as F,Transition as Q,resolveDynamicComponent as L,createSlots as P,onUnmounted as N,nextTick as U,isRef as V,getCurrentInstance as D,createApp as M}from"vue";import{locationSearchV2 as O,reportNewTypeDataApi as J,getCompanyOptionApi as j,slideGetApi as H,slideCheckApi as z,emitter as q,MODAL_ACTION as K,validateAccountExistApi as G,validateCompanyApi as W,getAuthSessionItems as Y,setTokenAll as Z,resetAuthSessionItems as X,registerJoinCompanyBindWechatApi as _,registerJoinCompanyApi as $,registerUserCompBindWechatApi as ee,registerApi as te,Encrypt as oe,sendEmailCodeApi as ne,findPAreaCodeAPi as ae,findDictAPi as ie,sendMobileCodeApi as re,getLoginQrCode as se,setAuthSessionItems as le,loginByQrCode as ce,loginByFacebookApi as ue,loginByLinkedinApi as de,registerJoinCompByThirdPartyApi as he,registerByThirdPartyApi as pe,bindThirdPartyByPwdApi as fe,bindThirdPartyByCodeApi as me,loginApi as ge,getFirstDomain as Ae,loginByEmailOrMobileCodeApi as ve,completeJoinCompanyRedirectApi as ye,completeCompRedirectApi as Ce,resetPasswordApi as we,getMEVCodeApi as Ee,checkAccountExistsFPApi as be,getRememberAccount as Ie,initSharedConfig as Be,setRememberMe as ke}from"@jctrans-materials/shared";import{MODAL_ACTION as Se,createRequest as xe,emitter as Re,getAppId as Te,initSharedConfig as Fe}from"@jctrans-materials/shared";import{useFormItem as Qe,ElMessage as Le,ElSelect as Pe,ElOption as Ne,ElInput as Ue,ElDialog as Ve,ElForm as De,ElRow as Me,ElCol as Oe,ElFormItem as Je,ElCheckbox as je,ElButton as He,ElLink as ze,ElRadioButton as qe,ElRadioGroup as Ke,vLoading as Ge,ElMessageBox as We}from"element-plus";const Ye=(e,t)=>O.searchByIdWithType(e,t);function Ze(o,n,a){const i=e([]),r=e(!1),s=e(!1),l=e(1),c=e(0),u=e(10),d=t(()=>0!==c.value&&i.value.length>=c.value),h=t(()=>{const e=[...n.value];return e.includes("Country")&&!e.includes("Region")&&e.push("Region"),e}),p=e=>e&&Array.isArray(e)?e.filter(e=>h.value.includes(e.type)):[];return{searchResults:i,loading:r,isFetchingMore:s,isFinished:d,currentPage:l,total:c,fetchData:async(e=1,t=!1)=>{const h=a?.parentId?.value,f=o.value.trim();if(!f&&!t&&!h)return i.value=[],void(c.value=0);if((!t||!s.value&&!d.value)&&(t||!r.value)){t?s.value=!0:(r.value=!0,l.value=1);try{const o={};h&&a?.parentType?.value&&("Country"===a.parentType.value?o.countryIds=[a.parentId?.value]:"City"===a.parentType.value&&(o.cityIds=[a.parentId?.value]));const r=await async function(e,t=["Continent","Country","City","Seaport","Airport"],o={}){return O.searchByName({keyword:e,displayInfo:t,...o})}(f,n.value,{current:e,size:u.value,...o}),s=r.records||[],d=p(s);i.value=t?[...i.value,...d]:d,c.value=r.total||0,l.value=e}catch(m){console.error("Failed to fetch search results:",m)}finally{r.value=!1,s.value=!1}}},filterByTypes:p}}const Xe=Math.min,_e=Math.max,$e=Math.round,et=Math.floor,tt=e=>({x:e,y:e}),ot={left:"right",right:"left",bottom:"top",top:"bottom"},nt={start:"end",end:"start"};function at(e,t,o){return _e(e,Xe(t,o))}function it(e,t){return"function"==typeof e?e(t):e}function rt(e){return e.split("-")[0]}function st(e){return e.split("-")[1]}function lt(e){return"x"===e?"y":"x"}function ct(e){return"y"===e?"height":"width"}const ut=/* @__PURE__ */new Set(["top","bottom"]);function dt(e){return ut.has(rt(e))?"y":"x"}function ht(e){return lt(dt(e))}function pt(e){return e.replace(/start|end/g,e=>nt[e])}const ft=["left","right"],mt=["right","left"],gt=["top","bottom"],At=["bottom","top"];function vt(e,t,o,n){const a=st(e);let i=function(e,t,o){switch(e){case"top":case"bottom":return o?t?mt:ft:t?ft:mt;case"left":case"right":return t?gt:At;default:return[]}}(rt(e),"start"===o,n);return a&&(i=i.map(e=>e+"-"+a),t&&(i=i.concat(i.map(pt)))),i}function yt(e){return e.replace(/left|right|bottom|top/g,e=>ot[e])}function Ct(e){const{x:t,y:o,width:n,height:a}=e;return{width:n,height:a,top:o,left:t,right:t+n,bottom:o+a,x:t,y:o}}function wt(e,t,o){let{reference:n,floating:a}=e;const i=dt(t),r=ht(t),s=ct(r),l=rt(t),c="y"===i,u=n.x+n.width/2-a.width/2,d=n.y+n.height/2-a.height/2,h=n[s]/2-a[s]/2;let p;switch(l){case"top":p={x:u,y:n.y-a.height};break;case"bottom":p={x:u,y:n.y+n.height};break;case"right":p={x:n.x+n.width,y:d};break;case"left":p={x:n.x-a.width,y:d};break;default:p={x:n.x,y:n.y}}switch(st(t)){case"start":p[r]-=h*(o&&c?-1:1);break;case"end":p[r]+=h*(o&&c?-1:1)}return p}async function Et(e,t){var o;void 0===t&&(t={});const{x:n,y:a,platform:i,rects:r,elements:s,strategy:l}=e,{boundary:c="clippingAncestors",rootBoundary:u="viewport",elementContext:d="floating",altBoundary:h=!1,padding:p=0}=it(t,e),f=function(e){return"number"!=typeof e?function(e){return{top:0,right:0,bottom:0,left:0,...e}}(e):{top:e,right:e,bottom:e,left:e}}(p),m=s[h?"floating"===d?"reference":"floating":d],g=Ct(await i.getClippingRect({element:null==(o=await(null==i.isElement?void 0:i.isElement(m)))||o?m:m.contextElement||await(null==i.getDocumentElement?void 0:i.getDocumentElement(s.floating)),boundary:c,rootBoundary:u,strategy:l})),A="floating"===d?{x:n,y:a,width:r.floating.width,height:r.floating.height}:r.reference,v=await(null==i.getOffsetParent?void 0:i.getOffsetParent(s.floating)),y=await(null==i.isElement?void 0:i.isElement(v))&&await(null==i.getScale?void 0:i.getScale(v))||{x:1,y:1},C=Ct(i.convertOffsetParentRelativeRectToViewportRelativeRect?await i.convertOffsetParentRelativeRectToViewportRelativeRect({elements:s,rect:A,offsetParent:v,strategy:l}):A);return{top:(g.top-C.top+f.top)/y.y,bottom:(C.bottom-g.bottom+f.bottom)/y.y,left:(g.left-C.left+f.left)/y.x,right:(C.right-g.right+f.right)/y.x}}const bt=/* @__PURE__ */new Set(["left","top"]);function It(){return"undefined"!=typeof window}function Bt(e){return xt(e)?(e.nodeName||"").toLowerCase():"#document"}function kt(e){var t;return(null==e||null==(t=e.ownerDocument)?void 0:t.defaultView)||window}function St(e){var t;return null==(t=(xt(e)?e.ownerDocument:e.document)||window.document)?void 0:t.documentElement}function xt(e){return!!It()&&(e instanceof Node||e instanceof kt(e).Node)}function Rt(e){return!!It()&&(e instanceof Element||e instanceof kt(e).Element)}function Tt(e){return!!It()&&(e instanceof HTMLElement||e instanceof kt(e).HTMLElement)}function Ft(e){return!(!It()||"undefined"==typeof ShadowRoot)&&(e instanceof ShadowRoot||e instanceof kt(e).ShadowRoot)}const Qt=/* @__PURE__ */new Set(["inline","contents"]);function Lt(e){const{overflow:t,overflowX:o,overflowY:n,display:a}=qt(e);return/auto|scroll|overlay|hidden|clip/.test(t+n+o)&&!Qt.has(a)}const Pt=/* @__PURE__ */new Set(["table","td","th"]);function Nt(e){return Pt.has(Bt(e))}const Ut=[":popover-open",":modal"];function Vt(e){return Ut.some(t=>{try{return e.matches(t)}catch(o){return!1}})}const Dt=["transform","translate","scale","rotate","perspective"],Mt=["transform","translate","scale","rotate","perspective","filter"],Ot=["paint","layout","strict","content"];function Jt(e){const t=jt(),o=Rt(e)?qt(e):e;return Dt.some(e=>!!o[e]&&"none"!==o[e])||!!o.containerType&&"normal"!==o.containerType||!t&&!!o.backdropFilter&&"none"!==o.backdropFilter||!t&&!!o.filter&&"none"!==o.filter||Mt.some(e=>(o.willChange||"").includes(e))||Ot.some(e=>(o.contain||"").includes(e))}function jt(){return!("undefined"==typeof CSS||!CSS.supports)&&CSS.supports("-webkit-backdrop-filter","none")}const Ht=/* @__PURE__ */new Set(["html","body","#document"]);function zt(e){return Ht.has(Bt(e))}function qt(e){return kt(e).getComputedStyle(e)}function Kt(e){return Rt(e)?{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}:{scrollLeft:e.scrollX,scrollTop:e.scrollY}}function Gt(e){if("html"===Bt(e))return e;const t=e.assignedSlot||e.parentNode||Ft(e)&&e.host||St(e);return Ft(t)?t.host:t}function Wt(e){const t=Gt(e);return zt(t)?e.ownerDocument?e.ownerDocument.body:e.body:Tt(t)&&Lt(t)?t:Wt(t)}function Yt(e,t,o){var n;void 0===t&&(t=[]),void 0===o&&(o=!0);const a=Wt(e),i=a===(null==(n=e.ownerDocument)?void 0:n.body),r=kt(a);if(i){const e=Zt(r);return t.concat(r,r.visualViewport||[],Lt(a)?a:[],e&&o?Yt(e):[])}return t.concat(a,Yt(a,[],o))}function Zt(e){return e.parent&&Object.getPrototypeOf(e.parent)?e.frameElement:null}function Xt(e){const t=qt(e);let o=parseFloat(t.width)||0,n=parseFloat(t.height)||0;const a=Tt(e),i=a?e.offsetWidth:o,r=a?e.offsetHeight:n,s=$e(o)!==i||$e(n)!==r;return s&&(o=i,n=r),{width:o,height:n,$:s}}function _t(e){return Rt(e)?e:e.contextElement}function $t(e){const t=_t(e);if(!Tt(t))return tt(1);const o=t.getBoundingClientRect(),{width:n,height:a,$:i}=Xt(t);let r=(i?$e(o.width):o.width)/n,s=(i?$e(o.height):o.height)/a;return r&&Number.isFinite(r)||(r=1),s&&Number.isFinite(s)||(s=1),{x:r,y:s}}const eo=/* @__PURE__ */tt(0);function to(e){const t=kt(e);return jt()&&t.visualViewport?{x:t.visualViewport.offsetLeft,y:t.visualViewport.offsetTop}:eo}function oo(e,t,o,n){void 0===t&&(t=!1),void 0===o&&(o=!1);const a=e.getBoundingClientRect(),i=_t(e);let r=tt(1);t&&(n?Rt(n)&&(r=$t(n)):r=$t(e));const s=function(e,t,o){return void 0===t&&(t=!1),!(!o||t&&o!==kt(e))&&t}(i,o,n)?to(i):tt(0);let l=(a.left+s.x)/r.x,c=(a.top+s.y)/r.y,u=a.width/r.x,d=a.height/r.y;if(i){const e=kt(i),t=n&&Rt(n)?kt(n):n;let o=e,a=Zt(o);for(;a&&n&&t!==o;){const e=$t(a),t=a.getBoundingClientRect(),n=qt(a),i=t.left+(a.clientLeft+parseFloat(n.paddingLeft))*e.x,r=t.top+(a.clientTop+parseFloat(n.paddingTop))*e.y;l*=e.x,c*=e.y,u*=e.x,d*=e.y,l+=i,c+=r,o=kt(a),a=Zt(o)}}return Ct({width:u,height:d,x:l,y:c})}function no(e,t){const o=Kt(e).scrollLeft;return t?t.left+o:oo(St(e)).left+o}function ao(e,t){const o=e.getBoundingClientRect();return{x:o.left+t.scrollLeft-no(e,o),y:o.top+t.scrollTop}}const io=/* @__PURE__ */new Set(["absolute","fixed"]);function ro(e,t,o){let n;if("viewport"===t)n=function(e,t){const o=kt(e),n=St(e),a=o.visualViewport;let i=n.clientWidth,r=n.clientHeight,s=0,l=0;if(a){i=a.width,r=a.height;const e=jt();(!e||e&&"fixed"===t)&&(s=a.offsetLeft,l=a.offsetTop)}const c=no(n);if(c<=0){const e=n.ownerDocument,t=e.body,o=getComputedStyle(t),a="CSS1Compat"===e.compatMode&&parseFloat(o.marginLeft)+parseFloat(o.marginRight)||0,r=Math.abs(n.clientWidth-t.clientWidth-a);r<=25&&(i-=r)}else c<=25&&(i+=c);return{width:i,height:r,x:s,y:l}}(e,o);else if("document"===t)n=function(e){const t=St(e),o=Kt(e),n=e.ownerDocument.body,a=_e(t.scrollWidth,t.clientWidth,n.scrollWidth,n.clientWidth),i=_e(t.scrollHeight,t.clientHeight,n.scrollHeight,n.clientHeight);let r=-o.scrollLeft+no(e);const s=-o.scrollTop;return"rtl"===qt(n).direction&&(r+=_e(t.clientWidth,n.clientWidth)-a),{width:a,height:i,x:r,y:s}}(St(e));else if(Rt(t))n=function(e,t){const o=oo(e,!0,"fixed"===t),n=o.top+e.clientTop,a=o.left+e.clientLeft,i=Tt(e)?$t(e):tt(1);return{width:e.clientWidth*i.x,height:e.clientHeight*i.y,x:a*i.x,y:n*i.y}}(t,o);else{const o=to(e);n={x:t.x-o.x,y:t.y-o.y,width:t.width,height:t.height}}return Ct(n)}function so(e,t){const o=Gt(e);return!(o===t||!Rt(o)||zt(o))&&("fixed"===qt(o).position||so(o,t))}function lo(e,t,o){const n=Tt(t),a=St(t),i="fixed"===o,r=oo(e,!0,i,t);let s={scrollLeft:0,scrollTop:0};const l=tt(0);function c(){l.x=no(a)}if(n||!n&&!i)if(("body"!==Bt(t)||Lt(a))&&(s=Kt(t)),n){const e=oo(t,!0,i,t);l.x=e.x+t.clientLeft,l.y=e.y+t.clientTop}else a&&c();i&&!n&&a&&c();const u=!a||n||i?tt(0):ao(a,s);return{x:r.left+s.scrollLeft-l.x-u.x,y:r.top+s.scrollTop-l.y-u.y,width:r.width,height:r.height}}function co(e){return"static"===qt(e).position}function uo(e,t){if(!Tt(e)||"fixed"===qt(e).position)return null;if(t)return t(e);let o=e.offsetParent;return St(e)===o&&(o=o.ownerDocument.body),o}function ho(e,t){const o=kt(e);if(Vt(e))return o;if(!Tt(e)){let t=Gt(e);for(;t&&!zt(t);){if(Rt(t)&&!co(t))return t;t=Gt(t)}return o}let n=uo(e,t);for(;n&&Nt(n)&&co(n);)n=uo(n,t);return n&&zt(n)&&co(n)&&!Jt(n)?o:n||function(e){let t=Gt(e);for(;Tt(t)&&!zt(t);){if(Jt(t))return t;if(Vt(t))return null;t=Gt(t)}return null}(e)||o}const po={convertOffsetParentRelativeRectToViewportRelativeRect:function(e){let{elements:t,rect:o,offsetParent:n,strategy:a}=e;const i="fixed"===a,r=St(n),s=!!t&&Vt(t.floating);if(n===r||s&&i)return o;let l={scrollLeft:0,scrollTop:0},c=tt(1);const u=tt(0),d=Tt(n);if((d||!d&&!i)&&(("body"!==Bt(n)||Lt(r))&&(l=Kt(n)),Tt(n))){const e=oo(n);c=$t(n),u.x=e.x+n.clientLeft,u.y=e.y+n.clientTop}const h=!r||d||i?tt(0):ao(r,l);return{width:o.width*c.x,height:o.height*c.y,x:o.x*c.x-l.scrollLeft*c.x+u.x+h.x,y:o.y*c.y-l.scrollTop*c.y+u.y+h.y}},getDocumentElement:St,getClippingRect:function(e){let{element:t,boundary:o,rootBoundary:n,strategy:a}=e;const i=[..."clippingAncestors"===o?Vt(t)?[]:function(e,t){const o=t.get(e);if(o)return o;let n=Yt(e,[],!1).filter(e=>Rt(e)&&"body"!==Bt(e)),a=null;const i="fixed"===qt(e).position;let r=i?Gt(e):e;for(;Rt(r)&&!zt(r);){const t=qt(r),o=Jt(r);o||"fixed"!==t.position||(a=null),(i?!o&&!a:!o&&"static"===t.position&&a&&io.has(a.position)||Lt(r)&&!o&&so(e,r))?n=n.filter(e=>e!==r):a=t,r=Gt(r)}return t.set(e,n),n}(t,this._c):[].concat(o),n],r=i[0],s=i.reduce((e,o)=>{const n=ro(t,o,a);return e.top=_e(n.top,e.top),e.right=Xe(n.right,e.right),e.bottom=Xe(n.bottom,e.bottom),e.left=_e(n.left,e.left),e},ro(t,r,a));return{width:s.right-s.left,height:s.bottom-s.top,x:s.left,y:s.top}},getOffsetParent:ho,getElementRects:async function(e){const t=this.getOffsetParent||ho,o=this.getDimensions,n=await o(e.floating);return{reference:lo(e.reference,await t(e.floating),e.strategy),floating:{x:0,y:0,width:n.width,height:n.height}}},getClientRects:function(e){return Array.from(e.getClientRects())},getDimensions:function(e){const{width:t,height:o}=Xt(e);return{width:t,height:o}},getScale:$t,isElement:Rt,isRTL:function(e){return"rtl"===qt(e).direction}};function fo(e,t){return e.x===t.x&&e.y===t.y&&e.width===t.width&&e.height===t.height}function mo(e,t,o,n){void 0===n&&(n={});const{ancestorScroll:a=!0,ancestorResize:i=!0,elementResize:r="function"==typeof ResizeObserver,layoutShift:s="function"==typeof IntersectionObserver,animationFrame:l=!1}=n,c=_t(e),u=a||i?[...c?Yt(c):[],...Yt(t)]:[];u.forEach(e=>{a&&e.addEventListener("scroll",o,{passive:!0}),i&&e.addEventListener("resize",o)});const d=c&&s?function(e,t){let o,n=null;const a=St(e);function i(){var e;clearTimeout(o),null==(e=n)||e.disconnect(),n=null}return function r(s,l){void 0===s&&(s=!1),void 0===l&&(l=1),i();const c=e.getBoundingClientRect(),{left:u,top:d,width:h,height:p}=c;if(s||t(),!h||!p)return;const f={rootMargin:-et(d)+"px "+-et(a.clientWidth-(u+h))+"px "+-et(a.clientHeight-(d+p))+"px "+-et(u)+"px",threshold:_e(0,Xe(1,l))||1};let m=!0;function g(t){const n=t[0].intersectionRatio;if(n!==l){if(!m)return r();n?r(!1,n):o=setTimeout(()=>{r(!1,1e-7)},1e3)}1!==n||fo(c,e.getBoundingClientRect())||r(),m=!1}try{n=new IntersectionObserver(g,{...f,root:a.ownerDocument})}catch(A){n=new IntersectionObserver(g,f)}n.observe(e)}(!0),i}(c,o):null;let h,p=-1,f=null;r&&(f=new ResizeObserver(e=>{let[n]=e;n&&n.target===c&&f&&(f.unobserve(t),cancelAnimationFrame(p),p=requestAnimationFrame(()=>{var e;null==(e=f)||e.observe(t)})),o()}),c&&!l&&f.observe(c),f.observe(t));let m=l?oo(e):null;return l&&function t(){const n=oo(e);m&&!fo(m,n)&&o();m=n,h=requestAnimationFrame(t)}(),o(),()=>{var e;u.forEach(e=>{a&&e.removeEventListener("scroll",o),i&&e.removeEventListener("resize",o)}),null==d||d(),null==(e=f)||e.disconnect(),f=null,l&&cancelAnimationFrame(h)}}const go=function(e){return void 0===e&&(e=0),{name:"offset",options:e,async fn(t){var o,n;const{x:a,y:i,placement:r,middlewareData:s}=t,l=await async function(e,t){const{placement:o,platform:n,elements:a}=e,i=await(null==n.isRTL?void 0:n.isRTL(a.floating)),r=rt(o),s=st(o),l="y"===dt(o),c=bt.has(r)?-1:1,u=i&&l?-1:1,d=it(t,e);let{mainAxis:h,crossAxis:p,alignmentAxis:f}="number"==typeof d?{mainAxis:d,crossAxis:0,alignmentAxis:null}:{mainAxis:d.mainAxis||0,crossAxis:d.crossAxis||0,alignmentAxis:d.alignmentAxis};return s&&"number"==typeof f&&(p="end"===s?-1*f:f),l?{x:p*u,y:h*c}:{x:h*c,y:p*u}}(t,e);return r===(null==(o=s.offset)?void 0:o.placement)&&null!=(n=s.arrow)&&n.alignmentOffset?{}:{x:a+l.x,y:i+l.y,data:{...l,placement:r}}}}},Ao=function(e){return void 0===e&&(e={}),{name:"shift",options:e,async fn(t){const{x:o,y:n,placement:a}=t,{mainAxis:i=!0,crossAxis:r=!1,limiter:s={fn:e=>{let{x:t,y:o}=e;return{x:t,y:o}}},...l}=it(e,t),c={x:o,y:n},u=await Et(t,l),d=dt(rt(a)),h=lt(d);let p=c[h],f=c[d];if(i){const e="y"===h?"bottom":"right";p=at(p+u["y"===h?"top":"left"],p,p-u[e])}if(r){const e="y"===d?"bottom":"right";f=at(f+u["y"===d?"top":"left"],f,f-u[e])}const m=s.fn({...t,[h]:p,[d]:f});return{...m,data:{x:m.x-o,y:m.y-n,enabled:{[h]:i,[d]:r}}}}}},vo=function(e){return void 0===e&&(e={}),{name:"flip",options:e,async fn(t){var o,n;const{placement:a,middlewareData:i,rects:r,initialPlacement:s,platform:l,elements:c}=t,{mainAxis:u=!0,crossAxis:d=!0,fallbackPlacements:h,fallbackStrategy:p="bestFit",fallbackAxisSideDirection:f="none",flipAlignment:m=!0,...g}=it(e,t);if(null!=(o=i.arrow)&&o.alignmentOffset)return{};const A=rt(a),v=dt(s),y=rt(s)===s,C=await(null==l.isRTL?void 0:l.isRTL(c.floating)),w=h||(y||!m?[yt(s)]:function(e){const t=yt(e);return[pt(e),t,pt(t)]}(s)),E="none"!==f;!h&&E&&w.push(...vt(s,m,f,C));const b=[s,...w],I=await Et(t,g),B=[];let k=(null==(n=i.flip)?void 0:n.overflows)||[];if(u&&B.push(I[A]),d){const e=function(e,t,o){void 0===o&&(o=!1);const n=st(e),a=ht(e),i=ct(a);let r="x"===a?n===(o?"end":"start")?"right":"left":"start"===n?"bottom":"top";return t.reference[i]>t.floating[i]&&(r=yt(r)),[r,yt(r)]}(a,r,C);B.push(I[e[0]],I[e[1]])}if(k=[...k,{placement:a,overflows:B}],!B.every(e=>e<=0)){var S,x;const e=((null==(S=i.flip)?void 0:S.index)||0)+1,t=b[e];if(t){if(!("alignment"===d&&v!==dt(t))||k.every(e=>dt(e.placement)!==v||e.overflows[0]>0))return{data:{index:e,overflows:k},reset:{placement:t}}}let o=null==(x=k.filter(e=>e.overflows[0]<=0).sort((e,t)=>e.overflows[1]-t.overflows[1])[0])?void 0:x.placement;if(!o)switch(p){case"bestFit":{var R;const e=null==(R=k.filter(e=>{if(E){const t=dt(e.placement);return t===v||"y"===t}return!0}).map(e=>[e.placement,e.overflows.filter(e=>e>0).reduce((e,t)=>e+t,0)]).sort((e,t)=>e[1]-t[1])[0])?void 0:R[0];e&&(o=e);break}case"initialPlacement":o=s}if(a!==o)return{reset:{placement:o}}}return{}}}},yo=function(e){return void 0===e&&(e={}),{name:"size",options:e,async fn(t){var o,n;const{placement:a,rects:i,platform:r,elements:s}=t,{apply:l=()=>{},...c}=it(e,t),u=await Et(t,c),d=rt(a),h=st(a),p="y"===dt(a),{width:f,height:m}=i.floating;let g,A;"top"===d||"bottom"===d?(g=d,A=h===(await(null==r.isRTL?void 0:r.isRTL(s.floating))?"start":"end")?"left":"right"):(A=d,g="end"===h?"top":"bottom");const v=m-u.top-u.bottom,y=f-u.left-u.right,C=Xe(m-u[g],v),w=Xe(f-u[A],y),E=!t.middlewareData.shift;let b=C,I=w;if(null!=(o=t.middlewareData.shift)&&o.enabled.x&&(I=y),null!=(n=t.middlewareData.shift)&&n.enabled.y&&(b=v),E&&!h){const e=_e(u.left,0),t=_e(u.right,0),o=_e(u.top,0),n=_e(u.bottom,0);p?I=f-2*(0!==e||0!==t?e+t:_e(u.left,u.right)):b=m-2*(0!==o||0!==n?o+n:_e(u.top,u.bottom))}await l({...t,availableWidth:I,availableHeight:b});const B=await r.getDimensions(s.floating);return f!==B.width||m!==B.height?{reset:{rects:!0}}:{}}}},Co=(e,t,o)=>{const n=/* @__PURE__ */new Map,a={platform:po,...o},i={...a.platform,_c:n};return(async(e,t,o)=>{const{placement:n="bottom",strategy:a="absolute",middleware:i=[],platform:r}=o,s=i.filter(Boolean),l=await(null==r.isRTL?void 0:r.isRTL(t));let c=await r.getElementRects({reference:e,floating:t,strategy:a}),{x:u,y:d}=wt(c,n,l),h=n,p={},f=0;for(let m=0;m<s.length;m++){const{name:o,fn:i}=s[m],{x:g,y:A,data:v,reset:y}=await i({x:u,y:d,initialPlacement:n,placement:h,strategy:a,middlewareData:p,rects:c,platform:r,elements:{reference:e,floating:t}});u=null!=g?g:u,d=null!=A?A:d,p={...p,[o]:{...p[o],...v}},y&&f<=50&&(f++,"object"==typeof y&&(y.placement&&(h=y.placement),y.rects&&(c=!0===y.rects?await r.getElementRects({reference:e,floating:t,strategy:a}):y.rects),({x:u,y:d}=wt(c,h,l))),m=-1)}return{x:u,y:d,placement:h,strategy:a,middlewareData:p}})(e,t,{...a,platform:i})};const wo="data:image/svg+xml,%3csvg%20t='1695277594902'%20fill='%23fff'%20class='icon'%20viewBox='0%200%201024%201024'%20version='1.1'%20xmlns='http://www.w3.org/2000/svg'%20p-id='2534'%20width='200'%20height='200'%3e%3cpath%20d='M448%2085.333333a362.666667%20362.666667%200%201%200%20224.512%20647.509334l155.818667%20155.818666a42.666667%2042.666667%200%200%200%2060.330666-60.330666l-155.818666-155.818667A362.666667%20362.666667%200%200%200%20448%2085.333333zM170.666667%20448a277.333333%20277.333333%200%201%201%20554.666666%200%20277.333333%20277.333333%200%200%201-554.666666%200z'%20p-id='2535'%3e%3c/path%3e%3c/svg%3e",Eo={class:"selection-wrapper"},bo={class:"tag-text"},Io=["onClick"],Bo={key:0,class:"search-tag collapse"},ko=["placeholder"],So={class:"suffix-area"},xo={key:1,class:"loading-spinner"},Ro={class:"search-icon"},To=["src"],Fo={key:0,class:"history-section"},Qo={class:"history-header"},Lo=["onMousedown"],Po=["src"],No={class:"type-text"},Uo={class:"result-text"},Vo={key:0,class:"status-msg"},Do=["onMousedown"],Mo=["src"],Oo={class:"type-text"},Jo={class:"result-text"},jo={key:0,class:"load-more-msg"},Ho={key:2,class:"status-msg"},zo={key:0,class:"no-result-label"},qo={key:1,class:"no-result-label"},Ko={class:"jc:flex jc:justify-center jc:items-center jc:gap-1"},Go=["src"],Wo=(e,t)=>{const o=e.__vccOpts||e;for(const[n,a]of t)o[n]=a;return o},Yo=/* @__PURE__ */Wo(/* @__PURE__ */a({__name:"index",props:{modelValue:{default:null},multiple:{type:Boolean,default:!1},collapseTags:{type:Boolean,default:!1},searchTypeList:{default:()=>["Continent","Country","Region","City","Seaport","Airport"]},historyKey:{default:void 0},lang:{default:""},placeholder:{},showSearchIcon:{type:Boolean,default:!0},showItemTag:{type:Boolean,default:!0},showApplyData:{type:Boolean,default:!0},parentId:{default:null},parentType:{default:null},disabled:{type:Boolean,default:!1}},emits:["update:modelValue","select","blur","change","submit-search","remove","apply-data","apply-data-open","apply-data-close"],setup(a,{emit:S}){const x=a,R=S,T=e(null),F=e(null),Q=e(null),L=e(""),P=e(""),N=e(!1);let U=null;const V=e(!1),D=t(()=>x.modelValue?Array.isArray(x.modelValue)?x.modelValue:[x.modelValue]:[]),M=t(()=>x.multiple?x.collapseTags?D.value.slice(0,1):D.value:[]),O=t(()=>L.value||D.value.length>0),J=t(()=>x.multiple?L.value?10*L.value.length+20+"px":"10px":"100%"),{searchHistory:j,saveToHistory:H,clearHistory:z}=function(n){const a=e([]),i="undefined"!=typeof window&&"undefined"!=typeof localStorage,r=t(()=>(n.value||"")+"_search_history_cache"),s=t(()=>!!n.value&&""!==n.value);return o(()=>{if(i&&s.value){const t=localStorage.getItem(r.value);if(t)try{a.value=JSON.parse(t)}catch(e){a.value=[]}}}),{searchHistory:a,saveToHistory:e=>{if(!e||!i)return;const t=a.value.filter(t=>t.id&&t.id!==e.id||t.display!==e.display);t.unshift(e);const o=t.slice(0,4);if(s.value){a.value=o;try{localStorage.setItem(r.value,JSON.stringify(o))}catch(n){console.warn("LocalStorage save failed:",n)}}},clearHistory:()=>{a.value=[],i&&localStorage.removeItem(r.value)},HasHistory:s}}(i(x,"historyKey")),{searchResults:q,loading:K,isFetchingMore:G,isFinished:W,currentPage:Y,fetchData:Z,filterByTypes:X}=Ze(L,i(x,"searchTypeList"),{parentId:i(x,"parentId"),parentType:i(x,"parentType")}),{floatingStyles:_,startTrack:$,stopTrack:ee}=function(t,o){const a=e({position:"fixed",left:"0",top:"0",zIndex:3e3});let i=null;const r=()=>{t.value&&o.value&&Co(t.value,o.value,{placement:"bottom-start",strategy:"fixed",middleware:[go(6),vo(),Ao({padding:10}),yo({apply({rects:e,elements:t,availableWidth:o}){const n=`${e.reference.width}px`,a=e.reference.width;Object.assign(t.floating.style,{width:"max-content",minWidth:n,maxWidth:`${Math.max(a,o-20)}px`})}})]}).then(({x:e,y:t})=>{Object.assign(a.value,{left:`${e}px`,top:`${t}px`})})},s=()=>{i&&(i(),i=null)};return n(s),{floatingStyles:a,startTrack:()=>{t.value&&o.value&&(i=mo(t.value,o.value,r))},stopTrack:s}}(F,Q),{isDropdownVisible:te,openDropdown:oe,handleAfterSelect:ne,handleBlur:ae}=function(t,o,n,a){const i=e(!1),r=()=>i.value=!1;return{isDropdownVisible:i,openDropdown:()=>i.value=!0,closeDropdown:r,handleAfterSelect:()=>{t?o.value?.focus():(n.value="",r(),o.value?.blur())},handleBlur:()=>{setTimeout(()=>{r(),a("blur"),t&&(n.value="")},200)}}}(i(x,"multiple").value,T,L,R),{formItem:ie}=Qe(),re=t(()=>q.value.length>0||K.value||L.value||j.value.length>0),se=t(()=>{if(x.lang)return"en"===x.lang||"en-US"===x.lang;try{if("function"==typeof useCookie){const e=useCookie("jc-language")?.value;if(e)return/^en(-US)?$/.test(e)}}catch(e){}if("undefined"!=typeof document){const e=document.cookie||"";return/(^|;\s*)jc-language=en(-US)?(;|$)/.test(e)}try{if("function"==typeof useNuxtApp){const e=useNuxtApp();return/(^|;\s*)jc-language=en(-US)?(;|$)/.test(e?.ssrContext?.event?.node?.req?.headers?.cookie||"")}}catch(e){}return!1}),le=t(()=>x.multiple&&D.value.length>0?"":N.value&&!x.multiple?P.value:x.placeholder?x.placeholder:se.value?"Please enter...":"请输入..."),ce=e=>({City:"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAYAAAAf8/9hAAABFUlEQVR4AaRQO07DQBCdWe8B4B5IFFyAK9ARkIVNhIQEEiVtJLgABRVRvIBCJBquwBVyDgoaSnuHeZY3MlYcNsnIb8fze6M3hra0XoKJm95N3Nv3EnyhFvb2EgjRJbOMKqmO2tDcvQ5fK+qvl4CJbOn9/CJPP9tArp5sHtP4lc652VXxPL1Z1hRFIOytF1NuTJCfnT4Ms8HjSgJctn1xIt6hxqIkdK+u8U8zT1ESmP5enUkW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/Cokw3k7stgKDvZHwHXcUYqW+J1CacejlcXoi4SvFvD2lRdxAER0s3glirS5Gyr7+FwAA//8Pj6q2AAAABklEQVQDAJPeLlNn5TR8AAAAAElFTkSuQmCC",Airport:"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAYAAAAf8/9hAAACT0lEQVR4AaRSO2hTYRT+zn9v2g6CiktFJYoVHXQoOljM2EIEh0orbRKa5qUuDoIZAnXI4FBwcRDikMcNkoQMQjcVESo4OASsW2kLBi3oUKiD1OZx7/H811wJZFF6uOee85/H93/3nKtwQPkvgFKpdKRgVR+UrFrOsurX9N3/DJCvVPxMwx+lKcbgKzbstPhwAXSyWK7eLZZrc4VCNZDPPx/Tt+kCrTqvOrQqfuNrc2OcgW0CduQM9TfJyIB5mQy8UaaxKbftFq3qL9HP1KGGFDe+NDdC/jPnlwgcZEM9lRiU2VFjgngI4FGxa0IvZXecU07XPsc2pkCUIULaa2Z2MsJ7Orkw/8kFiMVCb4XWcQV14w8temL4aJNM47Fh0OHEYqieWAyXT/jPBhzmh7o5EY28Rk/cGWSz2a4GSsTCt3tgs5qmDc726sTQvsS6/c0SFDz97lO/329K4z2Amm1u3ZK11SyrOmNC/ZDYSElWiT5R2resymUZ1pIUv2Qa+iafcrrFretDNJwTf94GUnt7u9u6to3hUW09dQEcIC+BR0LxqgztPnFrotd8wWHclNykaR4dYeCngj0IQNyekOQshLas8hmzLyA3B2UTU6l4eEX8Ld8IZsTu+Mg4hj5xGcTj8f1kLPxChjgO0AdWlAOwnkotbImFrHGFGdOy6u82aJAB+kUZywQ6KaH3ou7TcbguziRApiLWOXjiMvAO2iaic3rH6wxe1Wetd+KRNQKEDV9kwisd83QAQCfkr7uUjEUq2vdUgdJQFExEw++8mLa/AQAA//9h0VsEAAAABklEQVQDAKhs6Pxd3K8TAAAAAElFTkSuQmCC",Seaport:"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAYAAAAf8/9hAAACC0lEQVR4A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QUImEkT0T2JrpZ4fV5sF0Ad6je9BrBKxLeZuVv8rS9IAG4qGf5oTPSolNxIXOyUNjqlpb0W4xI+Cd62dVqcAAGBVqSCVmPMIoPCttzm2MEBAoeLir4hRK2AWPyVIAHRHMH0Ly0tCBF3M5t+Aq6A0HPJSSyCeZAIz7BNAgQwqxNyc1NL7MCoeyH1xNWpuKsTcet7fv46QI0/zdoEtkmAwHGcHyFQj/Q57vuPzm7m+X5efB6HYj3kOCubuLVlApltfdbPX5uaetCmdeKVAqUN1mdy04XR3PTsqAHPWMztTb24myvEBBuRM+WlUnbzDEXeya2D4XC0zrJqnXwsO3pG3mCMGWMK6lQZk2A0hH2GMSxL9VlI6lVkd90RgGKkVFrrc+9REXubjLH9FxfbbVUVGG5v4i2p8LD8x9ax65C66KTfKGCSDc97fv6DJzuf9QtDtm+iqsM1ot70w9O+YDbmSQ6bkkyCJitnAUcnryqmuExgSsZYKypvgFvS+5xVsJk0MGlps97mFCVXpnNZqoBcbo2QyJz7dCLj6JTj6tRxVyf3izZUtNndwM73SU55JzaO4Q8AAAD//54At5MAAAAGSURBVAMAh2IbMAJQAZQAAAAASUVORK5CYII="),ue=e=>{const t={City:{en:"City",cn:"城市"},Country:{en:"Country",cn:"国家"},Region:{en:"Region",cn:"区域"},Airport:{en:"Airport",cn:"机场"},Seaport:{en:"Seaport",cn:"港口"}};return se.value?t[e].en:t[e].cn},de=e=>D.value.some(t=>t.id===e.id),he=()=>T.value?.focus(),pe=e=>se.value?e.displayEn||e.display||"":e.displayCn||e.display||"",fe=e=>{if(H(e),x.multiple){if(!de(e)){const t=[...D.value,e];R("update:modelValue",t)}}else P.value=pe(e),N.value=!0,R("update:modelValue",e);R("select",e),R("change",e),ie?.validate?.("change").catch(()=>{}),ne()},me=e=>{const t=D.value.filter(t=>t.id!==e.id);R("update:modelValue",t),R("remove",e)},ge=()=>{x.multiple&&!L.value&&D.value.length>0&&me(D.value[D.value.length-1])},Ae=()=>{L.value="",N.value=!1,P.value="";const e=x.multiple?[]:null;R("update:modelValue",e),ie?.validate?.("change").catch(()=>{})},ve=async()=>{if(oe(),!x.multiple&&N.value&&0===q.value.length){const e=x.modelValue;if(e?.id){K.value=!0;try{const t=await Ye(e.id,e.type);q.value=X(t.records)}finally{K.value=!1}}}},ye=e=>{ae(),ie?.validate?.("blur").catch(()=>{})},Ce=e=>{""!==e.target.value||x.multiple||Ae()},we=()=>{R("submit-search",D.value),te.value=!1},Ee=e=>{const{scrollTop:t,scrollHeight:o,clientHeight:n}=e.target;t+n>=o-20&&(K.value||G.value||W.value||!L.value||Z(Y.value+1,!0))},be=e=>{console.log("🍉 ~ index.vue:428 ~ handleConfirmApplyData ~ e:",e),R("apply-data",e)},Ie=()=>{V.value=!0,R("apply-data-open")},Be=()=>{L.value="",V.value=!1,R("apply-data-close")};return r(()=>x.parentId,()=>{x.multiple||(L.value="",q.value=[])}),r(te,e=>{e?$():ee()}),r(L,e=>{e.trim()?(U&&clearTimeout(U),U=setTimeout(()=>Z(1,!1),300)):q.value=[]}),r(()=>x.modelValue,async(e,t)=>{if(JSON.stringify(e)===JSON.stringify(t))return;if(x.multiple&&Array.isArray(e)){const t=[...e],o=t.filter(e=>e&&e.id&&e.type&&!e.display);if(o.length>0)try{const e=o.map(e=>e.id).filter(e=>null!=e),n=await Ye(e,o[0].type);if(n&&n.records){let e=!1;const o=t.map(t=>{const o=n.records.find(e=>e.id===t.id);return o&&!t.display?(e=!0,{...t,...o}):t});e&&R("update:modelValue",o)}}catch(n){console.error("Batch fetch detail failed:",n)}return}const o=e;if(!o)return N.value=!1,void(P.value="");if("object"==typeof o)if(o.id&&o.type&&!o.display)try{const e=(await Ye(o.id,o.type)).records.find(e=>e.id===o.id);e&&(P.value=pe(e),N.value=!0)}catch(n){console.error("Single fetch detail failed:",n)}else P.value=pe(o),N.value=!!P.value;else P.value=String(o),N.value=!!o},{immediate:!0,deep:!0}),n(ee),(e,t)=>(l(),s("div",{class:c(["search-container",{"is-disabled":a.disabled}])},[u("div",{class:c(["search-input-wrapper",{"is-multiple":a.multiple}]),ref_key:"referenceRef",ref:F,onClick:he},[u("div",Eo,[p(e.$slots,"prefix",{},void 0,!0),a.multiple&&D.value.length>0?(l(),s(g,{key:0},[(l(!0),s(g,null,A(M.value,(e,t)=>(l(),s("div",{key:e.id||t,class:"search-tag"},[u("span",bo,v(pe(e)),1),u("span",{class:"tag-close",onClick:y(t=>me(e),["stop"])},"×",8,Io)]))),128)),a.collapseTags&&D.value.length>1?(l(),s("div",Bo," + "+v(D.value.length-1),1)):f("",!0)],64)):f("",!0),m(u("input",{ref_key:"inputRef",ref:T,class:c({"is-selected-state":N.value&&!a.multiple}),"onUpdate:modelValue":t[0]||(t[0]=e=>L.value=e),type:"text",placeholder:le.value,style:w({width:J.value}),onFocus:ve,onBlur:ye,onInput:Ce,onKeydown:C(ge,["delete"])},null,46,ko),[[E,L.value]])]),p(e.$slots,"suffix",{},()=>[u("div",So,[O.value?(l(),s("span",{key:0,class:"clear-icon",onMousedown:t[1]||(t[1]=y(()=>{},["prevent"])),onClick:y(Ae,["stop"])},"ⓧ",32)):f("",!0),b(K)&&!b(G)?(l(),s("div",xo)):!b(K)&&a.showSearchIcon?(l(),s("button",{key:2,class:"search-btn",onClick:y(we,["stop"])},[u("span",Ro,[u("img",{src:b(wo),alt:"search"},null,8,To)])])):f("",!0)])],!0)],2),(l(),d(I,{to:"body"},[m(u("div",{ref_key:"floatingRef",ref:Q,class:"dropdown-list",style:w(b(_)),onScroll:Ee},[p(e.$slots,"history",{searchHistory:b(j)},()=>[b(j).length>0&&!L.value?(l(),s("div",Fo,[u("div",Qo,[u("span",null,v(se.value?"Recent search":"最近搜索"),1),u("span",{class:"clear-btn",onMousedown:t[2]||(t[2]=y(()=>{},["prevent"])),onClick:t[3]||(t[3]=y((...e)=>b(z)&&b(z)(...e),["stop"]))},v(se.value?"Clear":"清空"),33)]),(l(!0),s(g,null,A(b(j),(e,t)=>(l(),s("div",{key:"hist-"+t,class:"dropdown-item",onMousedown:y(t=>fe(e),["prevent"])},[u("div",{class:"category-tag",style:w(a.showItemTag?{}:{display:"none"})},[u("img",{class:"type-icon",src:ce(e.type),alt:""},null,8,Po),u("span",No,v(ue(e.type)),1)],4),u("div",Uo,v(pe(e)),1),B(" "+v(se.value),1)],40,Lo))),128)),t[7]||(t[7]=u("hr",{class:"divider"},null,-1))])):f("",!0)],!0),b(K)&&!b(G)?(l(),s("div",Vo,v(se.value?"Searching...":"正在搜索中..."),1)):b(q).length>0?(l(),s(g,{key:1},[p(e.$slots,"results",{searchResults:b(q)},()=>[(l(!0),s(g,null,A(b(q),(e,t)=>(l(),s("div",{key:t,class:c(["dropdown-item",{"is-active":de(e)}]),onMousedown:y(t=>fe(e),["prevent"])},[u("div",{class:"category-tag",style:w(a.showItemTag?{}:{display:"none"})},[u("img",{class:"type-icon",src:ce(e.type),alt:""},null,8,Mo),u("span",Oo,v(ue(e.type)),1)],4),u("div",Jo,v(pe(e)),1)],42,Do))),128))],!0),b(G)?(l(),s("div",jo,v(se.value?"Loading more...":"正在加载更多..."),1)):f("",!0)],64)):L.value&&!b(K)?(l(),s("div",Ho,[p(e.$slots,"noData",{},()=>[a.showApplyData?(l(),s("div",qo,[B(v(se.value?"No results found. ":"暂无结果,")+" ",1),u("div",Ko,[u("span",{class:"apply-data jc:cursor-pointer jc:ml-1",onClick:t[4]||(t[4]=y(()=>V.value=!0,["stop"]))},v(se.value?"Apply for data addition":"申请补充数据 "),1),u("img",{src:b("data:image/svg+xml,%3csvg%20width='16'%20height='16'%20viewBox='0%200%2016%2016'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3cg%20id='icon/more'%3e%3cg%20id='&%23231;&%23188;&%23150;&%23231;&%23187;&%23132;'%3e%3cpath%20id='Stroke%201'%20d='M1.56628%207.79421H14.0959'%20stroke='%23FF6A00'%20stroke-width='1.5'%20stroke-linejoin='round'/%3e%3cpath%20id='Stroke%203'%20d='M14.0667%207.79292C11.5075%207.79292%209.43396%205.71938%209.43396%203.16016'%20stroke='%23FF6A00'%20stroke-width='1.5'%20stroke-linejoin='round'/%3e%3cpath%20id='Stroke%205'%20d='M14.0667%207.79297C11.5075%207.79297%209.43396%209.86651%209.43396%2012.4257'%20stroke='%23FF6A00'%20stroke-width='1.5'%20stroke-linejoin='round'/%3e%3c/g%3e%3c/g%3e%3c/svg%3e"),alt:"",class:"apply-data-more-icon",onClick:t[5]||(t[5]=y(()=>V.value=!0,["stop"]))},null,8,Go)])])):(l(),s("p",zo,v(se.value?`No results found related to "${L.value}".`:`未找到与 "${L.value}" 相关的结果`),1))],!0)])):f("",!0)],36),[[k,b(te)&&re.value]])])),h(zn,{searchValue:L.value,value:V.value,"onUpdate:value":t[6]||(t[6]=e=>V.value=e),lang:a.lang,onConfirm:be,onOpen:Ie,onClose:Be},null,8,["searchValue","value","lang"])],2))}}),[["__scopeId","data-v-5c1f1f85"]]),Zo=/* @__PURE__ */Object.freeze(/* @__PURE__ */Object.defineProperty({__proto__:null,default:Yo},Symbol.toStringTag,{value:"Module"}));var Xo="object"==typeof global&&global&&global.Object===Object&&global,_o="object"==typeof self&&self&&self.Object===Object&&self,$o=Xo||_o||Function("return this")(),en=$o.Symbol,tn=Object.prototype,on=tn.hasOwnProperty,nn=tn.toString,an=en?en.toStringTag:void 0;var rn=Object.prototype.toString;var sn=en?en.toStringTag:void 0;function ln(e){return null==e?void 0===e?"[object Undefined]":"[object Null]":sn&&sn in Object(e)?function(e){var t=on.call(e,an),o=e[an];try{e[an]=void 0;var n=!0}catch(i){}var a=nn.call(e);return n&&(t?e[an]=o:delete e[an]),a}(e):function(e){return rn.call(e)}(e)}var cn=/\s/;var un=/^\s+/;function dn(e){return e?e.slice(0,function(e){for(var t=e.length;t--&&cn.test(e.charAt(t)););return t}(e)+1).replace(un,""):e}function hn(e){var t=typeof e;return null!=e&&("object"==t||"function"==t)}var pn=/^[-+]0x[0-9a-f]+$/i,fn=/^0b[01]+$/i,mn=/^0o[0-7]+$/i,gn=parseInt;function An(e){if("number"==typeof e)return e;if(function(e){return"symbol"==typeof e||function(e){return null!=e&&"object"==typeof e}(e)&&"[object Symbol]"==ln(e)}(e))return NaN;if(hn(e)){var t="function"==typeof e.valueOf?e.valueOf():e;e=hn(t)?t+"":t}if("string"!=typeof e)return 0===e?e:+e;e=dn(e);var o=fn.test(e);return o||mn.test(e)?gn(e.slice(2),o?2:8):pn.test(e)?NaN:+e}var vn=function(){return $o.Date.now()},yn=Math.max,Cn=Math.min;function wn(e,t,o){var n,a,i,r,s,l,c=0,u=!1,d=!1,h=!0;if("function"!=typeof e)throw new TypeError("Expected a function");function p(t){var o=n,i=a;return n=a=void 0,c=t,r=e.apply(i,o)}function f(e){var o=e-l;return void 0===l||o>=t||o<0||d&&e-c>=i}function m(){var e=vn();if(f(e))return g(e);s=setTimeout(m,function(e){var o=t-(e-l);return d?Cn(o,i-(e-c)):o}(e))}function g(e){return s=void 0,h&&n?p(e):(n=a=void 0,r)}function A(){var e=vn(),o=f(e);if(n=arguments,a=this,l=e,o){if(void 0===s)return function(e){return c=e,s=setTimeout(m,t),u?p(e):r}(l);if(d)return clearTimeout(s),s=setTimeout(m,t),p(l)}return void 0===s&&(s=setTimeout(m,t)),r}return t=An(t)||0,hn(o)&&(u=!!o.leading,i=(d="maxWait"in o)?yn(An(o.maxWait)||0,t):i,h="trailing"in o?!!o.trailing:h),A.cancel=function(){void 0!==s&&clearTimeout(s),c=0,n=l=a=s=void 0},A.flush=function(){return void 0===s?r:g(vn())},A}const En={key:0,class:"modal-container"},bn={class:"modal-header"},In={class:"header-title"},Bn={class:"modal-body"},kn={class:"form-item"},Sn={class:"required"},xn={class:"input-box"},Rn=["placeholder"],Tn={key:0,class:"error-message"},Fn={class:"form-item"},Qn={class:"required"},Ln={class:"type-group"},Pn=["onClick"],Nn={key:0,class:"check-mark"},Un={class:"form-item"},Vn={class:"required"},Dn={key:0,class:"error-message"},Mn={class:"modal-footer"},On={key:1,class:"apply-success-container"},Jn={class:"apply-success-container__content"},jn={class:"desc"},Hn={class:"apply-success-container__btns"},zn=/* @__PURE__ */Wo({__name:"ApplyDataDialog",props:{value:{type:Boolean,default:!1},lang:{type:String,default:"",validator:e=>["","en","en-US","zh-CN","cn"].includes(e)},searchValue:{type:String,default:""},placeholder:{type:String,default:""}},emits:["update:value","confirm","open","close"],setup(o,{emit:n}){const a=o,i=n,d=[{typeCn:"城市",typeEn:"City",type:"City"},{typeCn:"海运港口",typeEn:"Port",type:"Seaport"},{typeCn:"机场",typeEn:"Airport",type:"Airport"}],p=e(null),C=e(!1);r(()=>a.value,e=>{e&&(console.log("🍉 ~ ApplyDataDialog.vue:138 ~ props.searchValue:",a.searchValue),a.searchValue&&(I.name=a.searchValue),i("open"))});const w=S({name:"",country:""}),I=S({name:"",type:"City"}),k=t(()=>{if(a.lang)return"en"===a.lang||"en-US"===a.lang;try{if("function"==typeof useCookie){const e=useCookie("jc-language")?.value;if(e)return/^en(-US)?$/.test(e)}}catch(e){}if("undefined"!=typeof document){const e=document.cookie||"";return/(^|;\s*)jc-language=en(-US)?(;|$)/.test(e)}try{if("function"==typeof useNuxtApp){const e=useNuxtApp();return/(^|;\s*)jc-language=en(-US)?(;|$)/.test(e?.ssrContext?.event?.node?.req?.headers?.cookie||"")}}catch(e){}return!1}),x=()=>{w.name="",w.country="",C.value=!1,I.name="",I.type="City",p.value=null,i("update:value",!1),i("close")},R=wn(()=>{w.name="",w.country="";let e=!0;I.name.trim()||(w.name=k.value?"Please enter the data":"请输入需要补充的数据",e=!1),p.value||(w.country=k.value?"Please select a country":"请选择国家",e=!1),e&&J({reportData:I.name,reportType:I.type.toLocaleLowerCase(),countryId:p.value.id}).then(e=>{console.log("🍉 ~ ApplyDataDialog.vue:185 ~ handleConfirm ~ res:",e,e.code),0===e.code&&(C.value=!0,Le.success(k.value?"Application received. Awaiting review":"平台已收到申请,请等待审核"),i("confirm",{...I,country:p.value}))}).catch(e=>{console.log("🍉 ~ ApplyDataDialog.vue:187 ~ handleConfirm ~ err:",e)})},500);return(e,t)=>o.value?(l(),s("div",{key:0,class:"modal-mask",onClick:y(x,["self"])},[C.value?(l(),s("div",On,[u("div",Jn,[t[5]||(t[5]=u("div",{class:"icon"},null,-1)),u("div",jn,v(k.value?"Application received. Awaiting review!":"平台已收到申请,请等待审核!"),1)]),u("div",Hn,[u("div",{class:"button jc:cursor-pointer",onClick:y(x,["stop"])},v(k.value?"OK":"好的"),1)])])):(l(),s("div",En,[u("div",bn,[u("span",In,v(k.value?"Apply for data addition":"申请补充数据"),1),u("div",{class:"close-btn",onClick:x},"×")]),u("div",Bn,[u("div",kn,[u("label",Sn,v(k.value?"Data To Add":"需补充的数据"),1),u("div",xn,[m(u("input",{"onUpdate:modelValue":t[0]||(t[0]=e=>I.name=e),type:"text",placeholder:o.placeholder??(k.value?" Please enter":"请输入"),class:c(["custom-input",{"input-error":w.name}]),onInput:t[1]||(t[1]=e=>w.name="")},null,42,Rn),[[E,I.name]])]),w.name?(l(),s("div",Tn,v(w.name),1)):f("",!0)]),u("div",Fn,[u("label",Qn,v(k.value?"Type":"所属类别"),1),u("div",Ln,[(l(),s(g,null,A(d,e=>u("div",{key:e.type,class:c(["type-btn",{active:I.type===e.type}]),onClick:t=>I.type=e.type},[B(v(k.value?e.typeEn:e.typeCn)+" ",1),I.type===e.type?(l(),s("div",Nn)):f("",!0)],10,Pn)),64))])]),u("div",Un,[u("label",Vn,v(k.value?"Country":"国家"),1),u("div",{class:c({"search-error-wrap":w.country})},[h(Yo,{"search-type-list":["Country"],"model-value":p.value,"onUpdate:modelValue":[t[2]||(t[2]=e=>p.value=e),t[3]||(t[3]=e=>w.country="")],style:{margin:"0 auto"},lang:o.lang,"show-apply-data":!1,"show-search-icon":!1,placeholder:o.placeholder??(k.value?" Please enter":"请输入")},null,8,["model-value","lang","placeholder"])],2),w.country?(l(),s("div",Dn,v(w.country),1)):f("",!0)])]),u("div",Mn,[u("div",{class:"confirm-btn jc:outline-none!",onClick:t[4]||(t[4]=(...e)=>b(R)&&b(R)(...e))},v(k.value?"Submit":"申请补充"),1)])]))])):f("",!0)}},[["__scopeId","data-v-f121d6ec"]]),qn=/* @__PURE__ */Object.freeze(/* @__PURE__ */Object.defineProperty({__proto__:null,default:zn},Symbol.toStringTag,{value:"Module"}));const Kn={class:"global-company-input"},Gn={class:"company-option-item"},Wn=/* @__PURE__ */Wo({__name:"index",props:{lang:{type:String,default:""},companyName:{type:String,default:""},countryId:{type:[String,Number,null],required:!0},useKq:{type:Boolean,default:!1},kqCode:{type:[String,Number],default:""},kqInfo:{type:Object,default:()=>({})},disabled:{type:Boolean,default:!1}},emits:["update:companyName","update:useKq","update:kqCode","update:kqInfo","change"],setup(o,{emit:a}){const i=o,c=a,h=e(!1),f=e([]),{isEn:m}=function(e=""){return{isEn:t(()=>{if(e)return"en"===e||"en-US"===e;try{if("function"==typeof useCookie){const e=useCookie("jc-language")?.value;if(e)return/^en(-US)?$/.test(e)}}catch(t){}if("undefined"!=typeof document){const e=document.cookie||"";return/(^|;\s*)jc-language=en(-US)?(;|$)/.test(e)}try{if("function"==typeof useNuxtApp){const e=useNuxtApp();return/(^|;\s*)jc-language=en(-US)?(;|$)/.test(e?.ssrContext?.event?.node?.req?.headers?.cookie||"")}}catch(t){}return!1})}}(i.lang),y=t({get:()=>i.companyName,set:e=>c("update:companyName",e)}),C=e=>{e?(h.value=!0,w(e)):f.value=[]},w=wn(e=>{j({current:1,size:50,compName:e}).then(e=>{f.value=e.data.data.records?.map(e=>({value:e.nameCn,code:e.kqId,...e}))||[]}).catch(e=>{console.error("获取公司选项失败:",e),f.value=[]}).finally(()=>{h.value=!1})},800),E=e=>{const t=f.value.find(t=>t.value===e);console.log("🍉 ~ index.vue:130 ~ handleSelectChange ~ selectedObj:",t),t?(c("update:useKq",!0),c("update:kqCode",t.code),c("update:kqInfo",t)):(c("update:useKq",!1),c("update:kqCode",""),c("update:kqInfo",{})),c("change",t)},I=e=>{console.log("🍉 ~ index.vue:160 ~ handleChange ~ val:",e),c("update:useKq",!1),c("update:kqCode",""),c("change",e)};return r(()=>i.countryId,()=>{c("update:companyName",""),c("update:useKq",!1),c("update:kqCode",""),c("update:kqInfo",{}),f.value=[]}),n(()=>{w.cancel()}),(e,t)=>(l(),s("div",Kn,[1===i.countryId?(l(),d(b(Pe),{key:0,modelValue:y.value,"onUpdate:modelValue":t[0]||(t[0]=e=>y.value=e),filterable:"",remote:"","reserve-keyword":"",clearable:"","allow-create":"","default-first-option":"","remote-method":C,loading:h.value,disabled:i.disabled,placeholder:b(m)?"Company Name in Chinese":"请输入您的公司中文名称",style:{width:"100%"},"popper-class":"company-search dialog-join-us",onChange:E},{prefix:x(()=>[p(e.$slots,"prefix",{},void 0,!0)]),default:x(()=>[(l(!0),s(g,null,A(f.value,e=>(l(),d(b(Ne),{key:e.code,label:e.value,value:e.value},{default:x(()=>[u("div",Gn,[u("span",null,v(e.value),1)])]),_:2},1032,["label","value"]))),128))]),_:3},8,["modelValue","loading","disabled","placeholder"])):(l(),d(b(Ue),{key:1,modelValue:y.value,"onUpdate:modelValue":t[1]||(t[1]=e=>y.value=e),disabled:i.disabled,placeholder:b(m)?"Company name in English":"请输入您的公司英文名称","max-length":"200",style:{width:"100%"},onChange:I},{prepend:x(()=>[p(e.$slots,"prefix",{},void 0,!0)]),_:3},8,["modelValue","disabled","placeholder"]))]))}},[["__scopeId","data-v-1eb27978"]]),Yn=/* @__PURE__ */Object.freeze(/* @__PURE__ */Object.defineProperty({__proto__:null,default:Wn},Symbol.toStringTag,{value:"Module"})),Zn={type:"text",name:"fakeUsername",autocomplete:"on"},Xn={type:"password",name:"fakePassword",autocomplete:"new-password"},_n={class:"google-input-wrap"},$n={key:0,class:"google-input-wrap-prepend"},ea={class:"google-input-wrap-input"};const ta=/* @__PURE__ */Wo({name:"GoogleInput",components:{ElInput:Ue},inheritAttrs:!1,props:{placeholder:{type:String,default:""},modelValue:{type:[String,Number],default:""}},emits:["update:modelValue","blur","focus"],data:()=>({isFocus:!1}),computed:{isHavePrepend(){return!!this.$slots.prefix},shouldFloat(){return this.isFocus||null!==this.modelValue&&""!==this.modelValue}},mounted(){if(window.navigator.userAgent.indexOf("Chrome")>-1){let e=0;const t=()=>{try{e++;const o=this.$refs.googleInput?.$el.querySelector("input");if(o){"rgb(232, 240, 254)"===window.getComputedStyle(o).getPropertyValue("background-color")?this.isFocus=!0:e<20&&setTimeout(t,100)}}catch(o){console.error("Autofill detection error:",o)}};t()}},methods:{handleInput(e){this.$emit("update:modelValue",e)},localBlur(e){this.isFocus=!1,this.$emit("blur",e)},localFocus(e){this.isFocus=!0,this.$emit("focus",e)}}},[["render",function(e,t,o,n,a,i){const r=R("el-input");return l(),s("div",{class:c(["google-input",{"is-focus":i.shouldFloat,"is-have-prepend":i.isHavePrepend}])},[m(u("input",Zn,null,512),[[k,!1]]),m(u("input",Xn,null,512),[[k,!1]]),u("div",_n,[i.isHavePrepend?(l(),s("div",$n,[p(e.$slots,"prefix",{},void 0,!0)])):f("",!0),u("div",ea,[h(r,T({ref:"googleInput"},e.$attrs,{"model-value":o.modelValue},F({input:i.handleInput,blur:i.localBlur,focus:i.localFocus})),{suffix:x(()=>[p(e.$slots,"suffix",{},void 0,!0)]),_:3},16,["model-value"]),u("p",{onClick:t[0]||(t[0]=t=>e.$refs.googleInput.focus()),class:"google-input-wrap-input-placeholder"},v(o.placeholder),1)])])],2)}],["__scopeId","data-v-03e9d373"]]),oa=/* @__PURE__ */Object.freeze(/* @__PURE__ */Object.defineProperty({__proto__:null,default:ta},Symbol.toStringTag,{value:"Module"})),na={type:"text",name:"fakeUsername",autocomplete:"on"},aa={type:"password",name:"fakePassword",autocomplete:"new-password"},ia={class:"google-input-wrap"},ra={key:0,class:"google-input-wrap-prepend"},sa={class:"google-input-wrap-input"};const la=/* @__PURE__ */Wo({name:"GoogleInput",components:{ElInput:Ue},inheritAttrs:!1,props:{placeholder:{type:String,default:""},label:{type:String,default:""},modelValue:{type:[String,Number],default:""}},emits:["update:modelValue","blur","focus"],data:()=>({isFocus:!1}),computed:{currentLabel(){return this.label?this.label:this.placeholder},isHavePrepend(){return!!this.$slots.prefix},shouldFloat(){return this.isFocus}},mounted(){if(window.navigator.userAgent.indexOf("Chrome")>-1){let e=0;const t=()=>{try{e++;const o=this.$refs.googleInput?.$el.querySelector("input");if(o){"rgb(232, 240, 254)"===window.getComputedStyle(o).getPropertyValue("background-color")?this.isFocus=!0:e<20&&setTimeout(t,100)}}catch(o){console.error("Autofill detection error:",o)}};t()}},methods:{handleInput(e){this.$emit("update:modelValue",e)},localBlur(e){this.isFocus=!1,this.$emit("blur",e)},localFocus(e){this.isFocus=!0,this.$emit("focus",e)}}},[["render",function(e,t,o,n,a,i){const r=R("el-input");return l(),s("div",{class:c(["google-input",{"is-focus":i.shouldFloat,"is-have-prepend":i.isHavePrepend}])},[m(u("input",na,null,512),[[k,!1]]),m(u("input",aa,null,512),[[k,!1]]),u("div",ia,[i.isHavePrepend?(l(),s("div",ra,[p(e.$slots,"prefix",{},void 0,!0)])):f("",!0),u("div",sa,[h(r,T({ref:"googleInput"},e.$attrs,{"model-value":o.modelValue,placeholder:o.placeholder},F({input:i.handleInput,blur:i.localBlur,focus:i.localFocus})),{suffix:x(()=>[p(e.$slots,"suffix",{},void 0,!0)]),_:3},16,["model-value","placeholder"]),u("p",{onClick:t[0]||(t[0]=t=>e.$refs.googleInput.focus()),class:"google-input-wrap-input-placeholder"},v(i.currentLabel),1)])])],2)}],["__scopeId","data-v-328e3e35"]]),ca=/* @__PURE__ */Object.freeze(/* @__PURE__ */Object.defineProperty({__proto__:null,default:la},Symbol.toStringTag,{value:"Module"}));var ua="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{};function da(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}function ha(e){if(Object.prototype.hasOwnProperty.call(e,"__esModule"))return e;var t=e.default;if("function"==typeof t){var o=function e(){var o=!1;try{o=this instanceof e}catch{}return o?Reflect.construct(t,arguments,this.constructor):t.apply(this,arguments)};o.prototype=t.prototype}else o={};return Object.defineProperty(o,"__esModule",{value:!0}),Object.keys(e).forEach(function(t){var n=Object.getOwnPropertyDescriptor(e,t);Object.defineProperty(o,t,n.get?n:{enumerable:!0,get:function(){return e[t]}})}),o}var pa={exports:{}};var fa={exports:{}};const ma=/* @__PURE__ */ha(/* @__PURE__ */Object.freeze(/* @__PURE__ */Object.defineProperty({__proto__:null,default:{}},Symbol.toStringTag,{value:"Module"})));var ga;function Aa(){return ga||(ga=1,fa.exports=(e=e||function(e,t){var o;if("undefined"!=typeof window&&window.crypto&&(o=window.crypto),"undefined"!=typeof self&&self.crypto&&(o=self.crypto),"undefined"!=typeof globalThis&&globalThis.crypto&&(o=globalThis.crypto),!o&&"undefined"!=typeof window&&window.msCrypto&&(o=window.msCrypto),!o&&void 0!==ua&&ua.crypto&&(o=ua.crypto),!o)try{o=ma}catch(m){}var n=function(){if(o){if("function"==typeof o.getRandomValues)try{return o.getRandomValues(new Uint32Array(1))[0]}catch(m){}if("function"==typeof o.randomBytes)try{return o.randomBytes(4).readInt32LE()}catch(m){}}throw new Error("Native crypto module could not be used to get secure random number.")},a=Object.create||/* @__PURE__ */function(){function e(){}return function(t){var o;return e.prototype=t,o=new e,e.prototype=null,o}}(),i={},r=i.lib={},s=r.Base=/* @__PURE__ */function(){return{extend:function(e){var t=a(this);return e&&t.mixIn(e),t.hasOwnProperty("init")&&this.init!==t.init||(t.init=function(){t.$super.init.apply(this,arguments)}),t.init.prototype=t,t.$super=this,t},create:function(){var e=this.extend();return e.init.apply(e,arguments),e},init:function(){},mixIn:function(e){for(var t in e)e.hasOwnProperty(t)&&(this[t]=e[t]);e.hasOwnProperty("toString")&&(this.toString=e.toString)},clone:function(){return this.init.prototype.extend(this)}}}(),l=r.WordArray=s.extend({init:function(e,o){e=this.words=e||[],this.sigBytes=o!=t?o:4*e.length},toString:function(e){return(e||u).stringify(this)},concat:function(e){var t=this.words,o=e.words,n=this.sigBytes,a=e.sigBytes;if(this.clamp(),n%4)for(var i=0;i<a;i++){var r=o[i>>>2]>>>24-i%4*8&255;t[n+i>>>2]|=r<<24-(n+i)%4*8}else for(var s=0;s<a;s+=4)t[n+s>>>2]=o[s>>>2];return this.sigBytes+=a,this},clamp:function(){var t=this.words,o=this.sigBytes;t[o>>>2]&=4294967295<<32-o%4*8,t.length=e.ceil(o/4)},clone:function(){var e=s.clone.call(this);return e.words=this.words.slice(0),e},random:function(e){for(var t=[],o=0;o<e;o+=4)t.push(n());return new l.init(t,e)}}),c=i.enc={},u=c.Hex={stringify:function(e){for(var t=e.words,o=e.sigBytes,n=[],a=0;a<o;a++){var i=t[a>>>2]>>>24-a%4*8&255;n.push((i>>>4).toString(16)),n.push((15&i).toString(16))}return n.join("")},parse:function(e){for(var t=e.length,o=[],n=0;n<t;n+=2)o[n>>>3]|=parseInt(e.substr(n,2),16)<<24-n%8*4;return new l.init(o,t/2)}},d=c.Latin1={stringify:function(e){for(var t=e.words,o=e.sigBytes,n=[],a=0;a<o;a++){var i=t[a>>>2]>>>24-a%4*8&255;n.push(String.fromCharCode(i))}return n.join("")},parse:function(e){for(var t=e.length,o=[],n=0;n<t;n++)o[n>>>2]|=(255&e.charCodeAt(n))<<24-n%4*8;return new l.init(o,t)}},h=c.Utf8={stringify:function(e){try{return decodeURIComponent(escape(d.stringify(e)))}catch(t){throw new Error("Malformed UTF-8 data")}},parse:function(e){return d.parse(unescape(encodeURIComponent(e)))}},p=r.BufferedBlockAlgorithm=s.extend({reset:function(){this._data=new l.init,this._nDataBytes=0},_append:function(e){"string"==typeof e&&(e=h.parse(e)),this._data.concat(e),this._nDataBytes+=e.sigBytes},_process:function(t){var o,n=this._data,a=n.words,i=n.sigBytes,r=this.blockSize,s=i/(4*r),c=(s=t?e.ceil(s):e.max((0|s)-this._minBufferSize,0))*r,u=e.min(4*c,i);if(c){for(var d=0;d<c;d+=r)this._doProcessBlock(a,d);o=a.splice(0,c),n.sigBytes-=u}return new l.init(o,u)},clone:function(){var e=s.clone.call(this);return e._data=this._data.clone(),e},_minBufferSize:0});r.Hasher=p.extend({cfg:s.extend(),init:function(e){this.cfg=this.cfg.extend(e),this.reset()},reset:function(){p.reset.call(this),this._doReset()},update:function(e){return this._append(e),this._process(),this},finalize:function(e){return e&&this._append(e),this._doFinalize()},blockSize:16,_createHelper:function(e){return function(t,o){return new e.init(o).finalize(t)}},_createHmacHelper:function(e){return function(t,o){return new f.HMAC.init(e,o).finalize(t)}}});var f=i.algo={};return i}(Math),e)),fa.exports;var e}var va,ya={exports:{}};function Ca(){return va?ya.exports:(va=1,ya.exports=(r=Aa(),o=(t=r).lib,n=o.Base,a=o.WordArray,(i=t.x64={}).Word=n.extend({init:function(e,t){this.high=e,this.low=t}}),i.WordArray=n.extend({init:function(t,o){t=this.words=t||[],this.sigBytes=o!=e?o:8*t.length},toX32:function(){for(var e=this.words,t=e.length,o=[],n=0;n<t;n++){var i=e[n];o.push(i.high),o.push(i.low)}return a.create(o,this.sigBytes)},clone:function(){for(var e=n.clone.call(this),t=e.words=this.words.slice(0),o=t.length,a=0;a<o;a++)t[a]=t[a].clone();return e}}),r));var e,t,o,n,a,i,r}var wa,Ea={exports:{}};function ba(){return wa||(wa=1,Ea.exports=(e=Aa(),function(){if("function"==typeof ArrayBuffer){var t=e.lib.WordArray,o=t.init,n=t.init=function(e){if(e instanceof ArrayBuffer&&(e=new Uint8Array(e)),(e instanceof Int8Array||"undefined"!=typeof Uint8ClampedArray&&e instanceof Uint8ClampedArray||e instanceof Int16Array||e instanceof Uint16Array||e instanceof Int32Array||e instanceof Uint32Array||e instanceof Float32Array||e instanceof Float64Array)&&(e=new Uint8Array(e.buffer,e.byteOffset,e.byteLength)),e instanceof Uint8Array){for(var t=e.byteLength,n=[],a=0;a<t;a++)n[a>>>2]|=e[a]<<24-a%4*8;o.call(this,n,t)}else o.apply(this,arguments)};n.prototype=t}}(),e.lib.WordArray)),Ea.exports;var e}var Ia,Ba={exports:{}};function ka(){return Ia?Ba.exports:(Ia=1,Ba.exports=(e=Aa(),function(){var t=e,o=t.lib.WordArray,n=t.enc;function a(e){return e<<8&4278255360|e>>>8&16711935}n.Utf16=n.Utf16BE={stringify:function(e){for(var t=e.words,o=e.sigBytes,n=[],a=0;a<o;a+=2){var i=t[a>>>2]>>>16-a%4*8&65535;n.push(String.fromCharCode(i))}return n.join("")},parse:function(e){for(var t=e.length,n=[],a=0;a<t;a++)n[a>>>1]|=e.charCodeAt(a)<<16-a%2*16;return o.create(n,2*t)}},n.Utf16LE={stringify:function(e){for(var t=e.words,o=e.sigBytes,n=[],i=0;i<o;i+=2){var r=a(t[i>>>2]>>>16-i%4*8&65535);n.push(String.fromCharCode(r))}return n.join("")},parse:function(e){for(var t=e.length,n=[],i=0;i<t;i++)n[i>>>1]|=a(e.charCodeAt(i)<<16-i%2*16);return o.create(n,2*t)}}}(),e.enc.Utf16));var e}var Sa,xa={exports:{}};function Ra(){return Sa?xa.exports:(Sa=1,xa.exports=(e=Aa(),function(){var t=e,o=t.lib.WordArray;function n(e,t,n){for(var a=[],i=0,r=0;r<t;r++)if(r%4){var s=n[e.charCodeAt(r-1)]<<r%4*2|n[e.charCodeAt(r)]>>>6-r%4*2;a[i>>>2]|=s<<24-i%4*8,i++}return o.create(a,i)}t.enc.Base64={stringify:function(e){var t=e.words,o=e.sigBytes,n=this._map;e.clamp();for(var a=[],i=0;i<o;i+=3)for(var r=(t[i>>>2]>>>24-i%4*8&255)<<16|(t[i+1>>>2]>>>24-(i+1)%4*8&255)<<8|t[i+2>>>2]>>>24-(i+2)%4*8&255,s=0;s<4&&i+.75*s<o;s++)a.push(n.charAt(r>>>6*(3-s)&63));var l=n.charAt(64);if(l)for(;a.length%4;)a.push(l);return a.join("")},parse:function(e){var t=e.length,o=this._map,a=this._reverseMap;if(!a){a=this._reverseMap=[];for(var i=0;i<o.length;i++)a[o.charCodeAt(i)]=i}var r=o.charAt(64);if(r){var s=e.indexOf(r);-1!==s&&(t=s)}return n(e,t,a)},_map:"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/="}}(),e.enc.Base64));var e}var Ta,Fa={exports:{}};function Qa(){return Ta?Fa.exports:(Ta=1,Fa.exports=(e=Aa(),function(){var t=e,o=t.lib.WordArray;function n(e,t,n){for(var a=[],i=0,r=0;r<t;r++)if(r%4){var s=n[e.charCodeAt(r-1)]<<r%4*2|n[e.charCodeAt(r)]>>>6-r%4*2;a[i>>>2]|=s<<24-i%4*8,i++}return o.create(a,i)}t.enc.Base64url={stringify:function(e,t){void 0===t&&(t=!0);var o=e.words,n=e.sigBytes,a=t?this._safe_map:this._map;e.clamp();for(var i=[],r=0;r<n;r+=3)for(var s=(o[r>>>2]>>>24-r%4*8&255)<<16|(o[r+1>>>2]>>>24-(r+1)%4*8&255)<<8|o[r+2>>>2]>>>24-(r+2)%4*8&255,l=0;l<4&&r+.75*l<n;l++)i.push(a.charAt(s>>>6*(3-l)&63));var c=a.charAt(64);if(c)for(;i.length%4;)i.push(c);return i.join("")},parse:function(e,t){void 0===t&&(t=!0);var o=e.length,a=t?this._safe_map:this._map,i=this._reverseMap;if(!i){i=this._reverseMap=[];for(var r=0;r<a.length;r++)i[a.charCodeAt(r)]=r}var s=a.charAt(64);if(s){var l=e.indexOf(s);-1!==l&&(o=l)}return n(e,o,i)},_map:"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=",_safe_map:"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789-_"}}(),e.enc.Base64url));var e}var La,Pa={exports:{}};function Na(){return La?Pa.exports:(La=1,Pa.exports=(e=Aa(),function(t){var o=e,n=o.lib,a=n.WordArray,i=n.Hasher,r=o.algo,s=[];!function(){for(var e=0;e<64;e++)s[e]=4294967296*t.abs(t.sin(e+1))|0}();var l=r.MD5=i.extend({_doReset:function(){this._hash=new a.init([1732584193,4023233417,2562383102,271733878])},_doProcessBlock:function(e,t){for(var o=0;o<16;o++){var n=t+o,a=e[n];e[n]=16711935&(a<<8|a>>>24)|4278255360&(a<<24|a>>>8)}var i=this._hash.words,r=e[t+0],l=e[t+1],p=e[t+2],f=e[t+3],m=e[t+4],g=e[t+5],A=e[t+6],v=e[t+7],y=e[t+8],C=e[t+9],w=e[t+10],E=e[t+11],b=e[t+12],I=e[t+13],B=e[t+14],k=e[t+15],S=i[0],x=i[1],R=i[2],T=i[3];S=c(S,x,R,T,r,7,s[0]),T=c(T,S,x,R,l,12,s[1]),R=c(R,T,S,x,p,17,s[2]),x=c(x,R,T,S,f,22,s[3]),S=c(S,x,R,T,m,7,s[4]),T=c(T,S,x,R,g,12,s[5]),R=c(R,T,S,x,A,17,s[6]),x=c(x,R,T,S,v,22,s[7]),S=c(S,x,R,T,y,7,s[8]),T=c(T,S,x,R,C,12,s[9]),R=c(R,T,S,x,w,17,s[10]),x=c(x,R,T,S,E,22,s[11]),S=c(S,x,R,T,b,7,s[12]),T=c(T,S,x,R,I,12,s[13]),R=c(R,T,S,x,B,17,s[14]),S=u(S,x=c(x,R,T,S,k,22,s[15]),R,T,l,5,s[16]),T=u(T,S,x,R,A,9,s[17]),R=u(R,T,S,x,E,14,s[18]),x=u(x,R,T,S,r,20,s[19]),S=u(S,x,R,T,g,5,s[20]),T=u(T,S,x,R,w,9,s[21]),R=u(R,T,S,x,k,14,s[22]),x=u(x,R,T,S,m,20,s[23]),S=u(S,x,R,T,C,5,s[24]),T=u(T,S,x,R,B,9,s[25]),R=u(R,T,S,x,f,14,s[26]),x=u(x,R,T,S,y,20,s[27]),S=u(S,x,R,T,I,5,s[28]),T=u(T,S,x,R,p,9,s[29]),R=u(R,T,S,x,v,14,s[30]),S=d(S,x=u(x,R,T,S,b,20,s[31]),R,T,g,4,s[32]),T=d(T,S,x,R,y,11,s[33]),R=d(R,T,S,x,E,16,s[34]),x=d(x,R,T,S,B,23,s[35]),S=d(S,x,R,T,l,4,s[36]),T=d(T,S,x,R,m,11,s[37]),R=d(R,T,S,x,v,16,s[38]),x=d(x,R,T,S,w,23,s[39]),S=d(S,x,R,T,I,4,s[40]),T=d(T,S,x,R,r,11,s[41]),R=d(R,T,S,x,f,16,s[42]),x=d(x,R,T,S,A,23,s[43]),S=d(S,x,R,T,C,4,s[44]),T=d(T,S,x,R,b,11,s[45]),R=d(R,T,S,x,k,16,s[46]),S=h(S,x=d(x,R,T,S,p,23,s[47]),R,T,r,6,s[48]),T=h(T,S,x,R,v,10,s[49]),R=h(R,T,S,x,B,15,s[50]),x=h(x,R,T,S,g,21,s[51]),S=h(S,x,R,T,b,6,s[52]),T=h(T,S,x,R,f,10,s[53]),R=h(R,T,S,x,w,15,s[54]),x=h(x,R,T,S,l,21,s[55]),S=h(S,x,R,T,y,6,s[56]),T=h(T,S,x,R,k,10,s[57]),R=h(R,T,S,x,A,15,s[58]),x=h(x,R,T,S,I,21,s[59]),S=h(S,x,R,T,m,6,s[60]),T=h(T,S,x,R,E,10,s[61]),R=h(R,T,S,x,p,15,s[62]),x=h(x,R,T,S,C,21,s[63]),i[0]=i[0]+S|0,i[1]=i[1]+x|0,i[2]=i[2]+R|0,i[3]=i[3]+T|0},_doFinalize:function(){var e=this._data,o=e.words,n=8*this._nDataBytes,a=8*e.sigBytes;o[a>>>5]|=128<<24-a%32;var i=t.floor(n/4294967296),r=n;o[15+(a+64>>>9<<4)]=16711935&(i<<8|i>>>24)|4278255360&(i<<24|i>>>8),o[14+(a+64>>>9<<4)]=16711935&(r<<8|r>>>24)|4278255360&(r<<24|r>>>8),e.sigBytes=4*(o.length+1),this._process();for(var s=this._hash,l=s.words,c=0;c<4;c++){var u=l[c];l[c]=16711935&(u<<8|u>>>24)|4278255360&(u<<24|u>>>8)}return s},clone:function(){var e=i.clone.call(this);return e._hash=this._hash.clone(),e}});function c(e,t,o,n,a,i,r){var s=e+(t&o|~t&n)+a+r;return(s<<i|s>>>32-i)+t}function u(e,t,o,n,a,i,r){var s=e+(t&n|o&~n)+a+r;return(s<<i|s>>>32-i)+t}function d(e,t,o,n,a,i,r){var s=e+(t^o^n)+a+r;return(s<<i|s>>>32-i)+t}function h(e,t,o,n,a,i,r){var s=e+(o^(t|~n))+a+r;return(s<<i|s>>>32-i)+t}o.MD5=i._createHelper(l),o.HmacMD5=i._createHmacHelper(l)}(Math),e.MD5));var e}var Ua,Va={exports:{}};function Da(){return Ua?Va.exports:(Ua=1,Va.exports=(s=Aa(),t=(e=s).lib,o=t.WordArray,n=t.Hasher,a=e.algo,i=[],r=a.SHA1=n.extend({_doReset:function(){this._hash=new o.init([1732584193,4023233417,2562383102,271733878,3285377520])},_doProcessBlock:function(e,t){for(var o=this._hash.words,n=o[0],a=o[1],r=o[2],s=o[3],l=o[4],c=0;c<80;c++){if(c<16)i[c]=0|e[t+c];else{var u=i[c-3]^i[c-8]^i[c-14]^i[c-16];i[c]=u<<1|u>>>31}var d=(n<<5|n>>>27)+l+i[c];d+=c<20?1518500249+(a&r|~a&s):c<40?1859775393+(a^r^s):c<60?(a&r|a&s|r&s)-1894007588:(a^r^s)-899497514,l=s,s=r,r=a<<30|a>>>2,a=n,n=d}o[0]=o[0]+n|0,o[1]=o[1]+a|0,o[2]=o[2]+r|0,o[3]=o[3]+s|0,o[4]=o[4]+l|0},_doFinalize:function(){var e=this._data,t=e.words,o=8*this._nDataBytes,n=8*e.sigBytes;return t[n>>>5]|=128<<24-n%32,t[14+(n+64>>>9<<4)]=Math.floor(o/4294967296),t[15+(n+64>>>9<<4)]=o,e.sigBytes=4*t.length,this._process(),this._hash},clone:function(){var e=n.clone.call(this);return e._hash=this._hash.clone(),e}}),e.SHA1=n._createHelper(r),e.HmacSHA1=n._createHmacHelper(r),s.SHA1));var e,t,o,n,a,i,r,s}var Ma,Oa={exports:{}};function Ja(){return Ma?Oa.exports:(Ma=1,Oa.exports=(e=Aa(),function(t){var o=e,n=o.lib,a=n.WordArray,i=n.Hasher,r=o.algo,s=[],l=[];!function(){function e(e){for(var o=t.sqrt(e),n=2;n<=o;n++)if(!(e%n))return!1;return!0}function o(e){return 4294967296*(e-(0|e))|0}for(var n=2,a=0;a<64;)e(n)&&(a<8&&(s[a]=o(t.pow(n,.5))),l[a]=o(t.pow(n,1/3)),a++),n++}();var c=[],u=r.SHA256=i.extend({_doReset:function(){this._hash=new a.init(s.slice(0))},_doProcessBlock:function(e,t){for(var o=this._hash.words,n=o[0],a=o[1],i=o[2],r=o[3],s=o[4],u=o[5],d=o[6],h=o[7],p=0;p<64;p++){if(p<16)c[p]=0|e[t+p];else{var f=c[p-15],m=(f<<25|f>>>7)^(f<<14|f>>>18)^f>>>3,g=c[p-2],A=(g<<15|g>>>17)^(g<<13|g>>>19)^g>>>10;c[p]=m+c[p-7]+A+c[p-16]}var v=n&a^n&i^a&i,y=(n<<30|n>>>2)^(n<<19|n>>>13)^(n<<10|n>>>22),C=h+((s<<26|s>>>6)^(s<<21|s>>>11)^(s<<7|s>>>25))+(s&u^~s&d)+l[p]+c[p];h=d,d=u,u=s,s=r+C|0,r=i,i=a,a=n,n=C+(y+v)|0}o[0]=o[0]+n|0,o[1]=o[1]+a|0,o[2]=o[2]+i|0,o[3]=o[3]+r|0,o[4]=o[4]+s|0,o[5]=o[5]+u|0,o[6]=o[6]+d|0,o[7]=o[7]+h|0},_doFinalize:function(){var e=this._data,o=e.words,n=8*this._nDataBytes,a=8*e.sigBytes;return o[a>>>5]|=128<<24-a%32,o[14+(a+64>>>9<<4)]=t.floor(n/4294967296),o[15+(a+64>>>9<<4)]=n,e.sigBytes=4*o.length,this._process(),this._hash},clone:function(){var e=i.clone.call(this);return e._hash=this._hash.clone(),e}});o.SHA256=i._createHelper(u),o.HmacSHA256=i._createHmacHelper(u)}(Math),e.SHA256));var e}var ja,Ha={exports:{}};var za,qa={exports:{}};function Ka(){return za||(za=1,qa.exports=(e=Aa(),Ca(),function(){var t=e,o=t.lib.Hasher,n=t.x64,a=n.Word,i=n.WordArray,r=t.algo;function s(){return a.create.apply(a,arguments)}var l=[s(1116352408,3609767458),s(1899447441,602891725),s(3049323471,3964484399),s(3921009573,2173295548),s(961987163,4081628472),s(1508970993,3053834265),s(2453635748,2937671579),s(2870763221,3664609560),s(3624381080,2734883394),s(310598401,1164996542),s(607225278,1323610764),s(1426881987,3590304994),s(1925078388,4068182383),s(2162078206,991336113),s(2614888103,633803317),s(3248222580,3479774868),s(3835390401,2666613458),s(4022224774,944711139),s(264347078,2341262773),s(604807628,2007800933),s(770255983,1495990901),s(1249150122,1856431235),s(1555081692,3175218132),s(1996064986,2198950837),s(2554220882,3999719339),s(2821834349,766784016),s(2952996808,2566594879),s(3210313671,3203337956),s(3336571891,1034457026),s(3584528711,2466948901),s(113926993,3758326383),s(338241895,168717936),s(666307205,1188179964),s(773529912,1546045734),s(1294757372,1522805485),s(1396182291,2643833823),s(1695183700,2343527390),s(1986661051,1014477480),s(2177026350,1206759142),s(2456956037,344077627),s(2730485921,1290863460),s(2820302411,3158454273),s(3259730800,3505952657),s(3345764771,106217008),s(3516065817,3606008344),s(3600352804,1432725776),s(4094571909,1467031594),s(275423344,851169720),s(430227734,3100823752),s(506948616,1363258195),s(659060556,3750685593),s(883997877,3785050280),s(958139571,3318307427),s(1322822218,3812723403),s(1537002063,2003034995),s(1747873779,3602036899),s(1955562222,1575990012),s(2024104815,1125592928),s(2227730452,2716904306),s(2361852424,442776044),s(2428436474,593698344),s(2756734187,3733110249),s(3204031479,2999351573),s(3329325298,3815920427),s(3391569614,3928383900),s(3515267271,566280711),s(3940187606,3454069534),s(4118630271,4000239992),s(116418474,1914138554),s(174292421,2731055270),s(289380356,3203993006),s(460393269,320620315),s(685471733,587496836),s(852142971,1086792851),s(1017036298,365543100),s(1126000580,2618297676),s(1288033470,3409855158),s(1501505948,4234509866),s(1607167915,987167468),s(1816402316,1246189591)],c=[];!function(){for(var e=0;e<80;e++)c[e]=s()}();var u=r.SHA512=o.extend({_doReset:function(){this._hash=new i.init([new a.init(1779033703,4089235720),new a.init(3144134277,2227873595),new a.init(1013904242,4271175723),new a.init(2773480762,1595750129),new a.init(1359893119,2917565137),new a.init(2600822924,725511199),new a.init(528734635,4215389547),new a.init(1541459225,327033209)])},_doProcessBlock:function(e,t){for(var o=this._hash.words,n=o[0],a=o[1],i=o[2],r=o[3],s=o[4],u=o[5],d=o[6],h=o[7],p=n.high,f=n.low,m=a.high,g=a.low,A=i.high,v=i.low,y=r.high,C=r.low,w=s.high,E=s.low,b=u.high,I=u.low,B=d.high,k=d.low,S=h.high,x=h.low,R=p,T=f,F=m,Q=g,L=A,P=v,N=y,U=C,V=w,D=E,M=b,O=I,J=B,j=k,H=S,z=x,q=0;q<80;q++){var K,G,W=c[q];if(q<16)G=W.high=0|e[t+2*q],K=W.low=0|e[t+2*q+1];else{var Y=c[q-15],Z=Y.high,X=Y.low,_=(Z>>>1|X<<31)^(Z>>>8|X<<24)^Z>>>7,$=(X>>>1|Z<<31)^(X>>>8|Z<<24)^(X>>>7|Z<<25),ee=c[q-2],te=ee.high,oe=ee.low,ne=(te>>>19|oe<<13)^(te<<3|oe>>>29)^te>>>6,ae=(oe>>>19|te<<13)^(oe<<3|te>>>29)^(oe>>>6|te<<26),ie=c[q-7],re=ie.high,se=ie.low,le=c[q-16],ce=le.high,ue=le.low;G=(G=(G=_+re+((K=$+se)>>>0<$>>>0?1:0))+ne+((K+=ae)>>>0<ae>>>0?1:0))+ce+((K+=ue)>>>0<ue>>>0?1:0),W.high=G,W.low=K}var de,he=V&M^~V&J,pe=D&O^~D&j,fe=R&F^R&L^F&L,me=T&Q^T&P^Q&P,ge=(R>>>28|T<<4)^(R<<30|T>>>2)^(R<<25|T>>>7),Ae=(T>>>28|R<<4)^(T<<30|R>>>2)^(T<<25|R>>>7),ve=(V>>>14|D<<18)^(V>>>18|D<<14)^(V<<23|D>>>9),ye=(D>>>14|V<<18)^(D>>>18|V<<14)^(D<<23|V>>>9),Ce=l[q],we=Ce.high,Ee=Ce.low,be=H+ve+((de=z+ye)>>>0<z>>>0?1:0),Ie=Ae+me;H=J,z=j,J=M,j=O,M=V,O=D,V=N+(be=(be=(be=be+he+((de+=pe)>>>0<pe>>>0?1:0))+we+((de+=Ee)>>>0<Ee>>>0?1:0))+G+((de+=K)>>>0<K>>>0?1:0))+((D=U+de|0)>>>0<U>>>0?1:0)|0,N=L,U=P,L=F,P=Q,F=R,Q=T,R=be+(ge+fe+(Ie>>>0<Ae>>>0?1:0))+((T=de+Ie|0)>>>0<de>>>0?1:0)|0}f=n.low=f+T,n.high=p+R+(f>>>0<T>>>0?1:0),g=a.low=g+Q,a.high=m+F+(g>>>0<Q>>>0?1:0),v=i.low=v+P,i.high=A+L+(v>>>0<P>>>0?1:0),C=r.low=C+U,r.high=y+N+(C>>>0<U>>>0?1:0),E=s.low=E+D,s.high=w+V+(E>>>0<D>>>0?1:0),I=u.low=I+O,u.high=b+M+(I>>>0<O>>>0?1:0),k=d.low=k+j,d.high=B+J+(k>>>0<j>>>0?1:0),x=h.low=x+z,h.high=S+H+(x>>>0<z>>>0?1:0)},_doFinalize:function(){var e=this._data,t=e.words,o=8*this._nDataBytes,n=8*e.sigBytes;return t[n>>>5]|=128<<24-n%32,t[30+(n+128>>>10<<5)]=Math.floor(o/4294967296),t[31+(n+128>>>10<<5)]=o,e.sigBytes=4*t.length,this._process(),this._hash.toX32()},clone:function(){var e=o.clone.call(this);return e._hash=this._hash.clone(),e},blockSize:32});t.SHA512=o._createHelper(u),t.HmacSHA512=o._createHmacHelper(u)}(),e.SHA512)),qa.exports;var e}var Ga,Wa={exports:{}};var Ya,Za={exports:{}};function Xa(){return Ya?Za.exports:(Ya=1,Za.exports=(e=Aa(),Ca(),function(t){var o=e,n=o.lib,a=n.WordArray,i=n.Hasher,r=o.x64.Word,s=o.algo,l=[],c=[],u=[];!function(){for(var e=1,t=0,o=0;o<24;o++){l[e+5*t]=(o+1)*(o+2)/2%64;var n=(2*e+3*t)%5;e=t%5,t=n}for(e=0;e<5;e++)for(t=0;t<5;t++)c[e+5*t]=t+(2*e+3*t)%5*5;for(var a=1,i=0;i<24;i++){for(var s=0,d=0,h=0;h<7;h++){if(1&a){var p=(1<<h)-1;p<32?d^=1<<p:s^=1<<p-32}128&a?a=a<<1^113:a<<=1}u[i]=r.create(s,d)}}();var d=[];!function(){for(var e=0;e<25;e++)d[e]=r.create()}();var h=s.SHA3=i.extend({cfg:i.cfg.extend({outputLength:512}),_doReset:function(){for(var e=this._state=[],t=0;t<25;t++)e[t]=new r.init;this.blockSize=(1600-2*this.cfg.outputLength)/32},_doProcessBlock:function(e,t){for(var o=this._state,n=this.blockSize/2,a=0;a<n;a++){var i=e[t+2*a],r=e[t+2*a+1];i=16711935&(i<<8|i>>>24)|4278255360&(i<<24|i>>>8),r=16711935&(r<<8|r>>>24)|4278255360&(r<<24|r>>>8),(x=o[a]).high^=r,x.low^=i}for(var s=0;s<24;s++){for(var h=0;h<5;h++){for(var p=0,f=0,m=0;m<5;m++)p^=(x=o[h+5*m]).high,f^=x.low;var g=d[h];g.high=p,g.low=f}for(h=0;h<5;h++){var A=d[(h+4)%5],v=d[(h+1)%5],y=v.high,C=v.low;for(p=A.high^(y<<1|C>>>31),f=A.low^(C<<1|y>>>31),m=0;m<5;m++)(x=o[h+5*m]).high^=p,x.low^=f}for(var w=1;w<25;w++){var E=(x=o[w]).high,b=x.low,I=l[w];I<32?(p=E<<I|b>>>32-I,f=b<<I|E>>>32-I):(p=b<<I-32|E>>>64-I,f=E<<I-32|b>>>64-I);var B=d[c[w]];B.high=p,B.low=f}var k=d[0],S=o[0];for(k.high=S.high,k.low=S.low,h=0;h<5;h++)for(m=0;m<5;m++){var x=o[w=h+5*m],R=d[w],T=d[(h+1)%5+5*m],F=d[(h+2)%5+5*m];x.high=R.high^~T.high&F.high,x.low=R.low^~T.low&F.low}x=o[0];var Q=u[s];x.high^=Q.high,x.low^=Q.low}},_doFinalize:function(){var e=this._data,o=e.words;this._nDataBytes;var n=8*e.sigBytes,i=32*this.blockSize;o[n>>>5]|=1<<24-n%32,o[(t.ceil((n+1)/i)*i>>>5)-1]|=128,e.sigBytes=4*o.length,this._process();for(var r=this._state,s=this.cfg.outputLength/8,l=s/8,c=[],u=0;u<l;u++){var d=r[u],h=d.high,p=d.low;h=16711935&(h<<8|h>>>24)|4278255360&(h<<24|h>>>8),p=16711935&(p<<8|p>>>24)|4278255360&(p<<24|p>>>8),c.push(p),c.push(h)}return new a.init(c,s)},clone:function(){for(var e=i.clone.call(this),t=e._state=this._state.slice(0),o=0;o<25;o++)t[o]=t[o].clone();return e}});o.SHA3=i._createHelper(h),o.HmacSHA3=i._createHmacHelper(h)}(Math),e.SHA3));var e}var _a,$a={exports:{}};var ei,ti={exports:{}};function oi(){return ei?ti.exports:(ei=1,ti.exports=(e=Aa(),o=(t=e).lib.Base,n=t.enc.Utf8,void(t.algo.HMAC=o.extend({init:function(e,t){e=this._hasher=new e.init,"string"==typeof t&&(t=n.parse(t));var o=e.blockSize,a=4*o;t.sigBytes>a&&(t=e.finalize(t)),t.clamp();for(var i=this._oKey=t.clone(),r=this._iKey=t.clone(),s=i.words,l=r.words,c=0;c<o;c++)s[c]^=1549556828,l[c]^=909522486;i.sigBytes=r.sigBytes=a,this.reset()},reset:function(){var e=this._hasher;e.reset(),e.update(this._iKey)},update:function(e){return this._hasher.update(e),this},finalize:function(e){var t=this._hasher,o=t.finalize(e);return t.reset(),t.finalize(this._oKey.clone().concat(o))}}))));var e,t,o,n}var ni,ai={exports:{}};var ii,ri={exports:{}};function si(){return ii?ri.exports:(ii=1,ri.exports=(s=Aa(),Da(),oi(),t=(e=s).lib,o=t.Base,n=t.WordArray,a=e.algo,i=a.MD5,r=a.EvpKDF=o.extend({cfg:o.extend({keySize:4,hasher:i,iterations:1}),init:function(e){this.cfg=this.cfg.extend(e)},compute:function(e,t){for(var o,a=this.cfg,i=a.hasher.create(),r=n.create(),s=r.words,l=a.keySize,c=a.iterations;s.length<l;){o&&i.update(o),o=i.update(e).finalize(t),i.reset();for(var u=1;u<c;u++)o=i.finalize(o),i.reset();r.concat(o)}return r.sigBytes=4*l,r}}),e.EvpKDF=function(e,t,o){return r.create(o).compute(e,t)},s.EvpKDF));var e,t,o,n,a,i,r,s}var li,ci={exports:{}};function ui(){return li?ci.exports:(li=1,ci.exports=(e=Aa(),si(),void(e.lib.Cipher||function(t){var o=e,n=o.lib,a=n.Base,i=n.WordArray,r=n.BufferedBlockAlgorithm,s=o.enc;s.Utf8;var l=s.Base64,c=o.algo.EvpKDF,u=n.Cipher=r.extend({cfg:a.extend(),createEncryptor:function(e,t){return this.create(this._ENC_XFORM_MODE,e,t)},createDecryptor:function(e,t){return this.create(this._DEC_XFORM_MODE,e,t)},init:function(e,t,o){this.cfg=this.cfg.extend(o),this._xformMode=e,this._key=t,this.reset()},reset:function(){r.reset.call(this),this._doReset()},process:function(e){return this._append(e),this._process()},finalize:function(e){return e&&this._append(e),this._doFinalize()},keySize:4,ivSize:4,_ENC_XFORM_MODE:1,_DEC_XFORM_MODE:2,_createHelper:/* @__PURE__ */function(){function e(e){return"string"==typeof e?y:A}return function(t){return{encrypt:function(o,n,a){return e(n).encrypt(t,o,n,a)},decrypt:function(o,n,a){return e(n).decrypt(t,o,n,a)}}}}()});n.StreamCipher=u.extend({_doFinalize:function(){return this._process(!0)},blockSize:1});var d=o.mode={},h=n.BlockCipherMode=a.extend({createEncryptor:function(e,t){return this.Encryptor.create(e,t)},createDecryptor:function(e,t){return this.Decryptor.create(e,t)},init:function(e,t){this._cipher=e,this._iv=t}}),p=d.CBC=function(){var e=h.extend();function o(e,o,n){var a,i=this._iv;i?(a=i,this._iv=t):a=this._prevBlock;for(var r=0;r<n;r++)e[o+r]^=a[r]}return e.Encryptor=e.extend({processBlock:function(e,t){var n=this._cipher,a=n.blockSize;o.call(this,e,t,a),n.encryptBlock(e,t),this._prevBlock=e.slice(t,t+a)}}),e.Decryptor=e.extend({processBlock:function(e,t){var n=this._cipher,a=n.blockSize,i=e.slice(t,t+a);n.decryptBlock(e,t),o.call(this,e,t,a),this._prevBlock=i}}),e}(),f=(o.pad={}).Pkcs7={pad:function(e,t){for(var o=4*t,n=o-e.sigBytes%o,a=n<<24|n<<16|n<<8|n,r=[],s=0;s<n;s+=4)r.push(a);var l=i.create(r,n);e.concat(l)},unpad:function(e){var t=255&e.words[e.sigBytes-1>>>2];e.sigBytes-=t}};n.BlockCipher=u.extend({cfg:u.cfg.extend({mode:p,padding:f}),reset:function(){var e;u.reset.call(this);var t=this.cfg,o=t.iv,n=t.mode;this._xformMode==this._ENC_XFORM_MODE?e=n.createEncryptor:(e=n.createDecryptor,this._minBufferSize=1),this._mode&&this._mode.__creator==e?this._mode.init(this,o&&o.words):(this._mode=e.call(n,this,o&&o.words),this._mode.__creator=e)},_doProcessBlock:function(e,t){this._mode.processBlock(e,t)},_doFinalize:function(){var e,t=this.cfg.padding;return this._xformMode==this._ENC_XFORM_MODE?(t.pad(this._data,this.blockSize),e=this._process(!0)):(e=this._process(!0),t.unpad(e)),e},blockSize:4});var m=n.CipherParams=a.extend({init:function(e){this.mixIn(e)},toString:function(e){return(e||this.formatter).stringify(this)}}),g=(o.format={}).OpenSSL={stringify:function(e){var t=e.ciphertext,o=e.salt;return(o?i.create([1398893684,1701076831]).concat(o).concat(t):t).toString(l)},parse:function(e){var t,o=l.parse(e),n=o.words;return 1398893684==n[0]&&1701076831==n[1]&&(t=i.create(n.slice(2,4)),n.splice(0,4),o.sigBytes-=16),m.create({ciphertext:o,salt:t})}},A=n.SerializableCipher=a.extend({cfg:a.extend({format:g}),encrypt:function(e,t,o,n){n=this.cfg.extend(n);var a=e.createEncryptor(o,n),i=a.finalize(t),r=a.cfg;return m.create({ciphertext:i,key:o,iv:r.iv,algorithm:e,mode:r.mode,padding:r.padding,blockSize:e.blockSize,formatter:n.format})},decrypt:function(e,t,o,n){return n=this.cfg.extend(n),t=this._parse(t,n.format),e.createDecryptor(o,n).finalize(t.ciphertext)},_parse:function(e,t){return"string"==typeof e?t.parse(e,this):e}}),v=(o.kdf={}).OpenSSL={execute:function(e,t,o,n,a){if(n||(n=i.random(8)),a)r=c.create({keySize:t+o,hasher:a}).compute(e,n);else var r=c.create({keySize:t+o}).compute(e,n);var s=i.create(r.words.slice(t),4*o);return r.sigBytes=4*t,m.create({key:r,iv:s,salt:n})}},y=n.PasswordBasedCipher=A.extend({cfg:A.cfg.extend({kdf:v}),encrypt:function(e,t,o,n){var a=(n=this.cfg.extend(n)).kdf.execute(o,e.keySize,e.ivSize,n.salt,n.hasher);n.iv=a.iv;var i=A.encrypt.call(this,e,t,a.key,n);return i.mixIn(a),i},decrypt:function(e,t,o,n){n=this.cfg.extend(n),t=this._parse(t,n.format);var a=n.kdf.execute(o,e.keySize,e.ivSize,t.salt,n.hasher);return n.iv=a.iv,A.decrypt.call(this,e,t,a.key,n)}})}())));var e}var di,hi={exports:{}};var pi,fi={exports:{}};var mi,gi={exports:{}};function Ai(){return mi?gi.exports:(mi=1,gi.exports=(e=Aa(),ui(),e.mode.CTRGladman=function(){var t=e.lib.BlockCipherMode.extend();function o(e){if(255&~(e>>24))e+=1<<24;else{var t=e>>16&255,o=e>>8&255,n=255&e;255===t?(t=0,255===o?(o=0,255===n?n=0:++n):++o):++t,e=0,e+=t<<16,e+=o<<8,e+=n}return e}function n(e){return 0===(e[0]=o(e[0]))&&(e[1]=o(e[1])),e}var a=t.Encryptor=t.extend({processBlock:function(e,t){var o=this._cipher,a=o.blockSize,i=this._iv,r=this._counter;i&&(r=this._counter=i.slice(0),this._iv=void 0),n(r);var s=r.slice(0);o.encryptBlock(s,0);for(var l=0;l<a;l++)e[t+l]^=s[l]}});return t.Decryptor=a,t}(),e.mode.CTRGladman));var e}var vi,yi={exports:{}};var Ci,wi={exports:{}};var Ei,bi={exports:{}};var Ii,Bi={exports:{}};var ki,Si={exports:{}};var xi,Ri={exports:{}};var Ti,Fi={exports:{}};var Qi,Li={exports:{}};var Pi,Ni={exports:{}};var Ui,Vi={exports:{}};function Di(){return Ui?Vi.exports:(Ui=1,Vi.exports=(e=Aa(),Ra(),Na(),si(),ui(),function(){var t=e,o=t.lib,n=o.WordArray,a=o.BlockCipher,i=t.algo,r=[57,49,41,33,25,17,9,1,58,50,42,34,26,18,10,2,59,51,43,35,27,19,11,3,60,52,44,36,63,55,47,39,31,23,15,7,62,54,46,38,30,22,14,6,61,53,45,37,29,21,13,5,28,20,12,4],s=[14,17,11,24,1,5,3,28,15,6,21,10,23,19,12,4,26,8,16,7,27,20,13,2,41,52,31,37,47,55,30,40,51,45,33,48,44,49,39,56,34,53,46,42,50,36,29,32],l=[1,2,4,6,8,10,12,14,15,17,19,21,23,25,27,28],c=[{0:8421888,268435456:32768,536870912:8421378,805306368:2,1073741824:512,1342177280:8421890,1610612736:8389122,1879048192:8388608,2147483648:514,2415919104:8389120,2684354560:33280,2952790016:8421376,3221225472:32770,3489660928:8388610,3758096384:0,4026531840:33282,134217728:0,402653184:8421890,671088640:33282,939524096:32768,1207959552:8421888,1476395008:512,1744830464:8421378,2013265920:2,2281701376:8389120,2550136832:33280,2818572288:8421376,3087007744:8389122,3355443200:8388610,3623878656:32770,3892314112:514,4160749568:8388608,1:32768,268435457:2,536870913:8421888,805306369:8388608,1073741825:8421378,1342177281:33280,1610612737:512,1879048193:8389122,2147483649:8421890,2415919105:8421376,2684354561:8388610,2952790017:33282,3221225473:514,3489660929:8389120,3758096385:32770,4026531841:0,134217729:8421890,402653185:8421376,671088641:8388608,939524097:512,1207959553:32768,1476395009:8388610,1744830465:2,2013265921:33282,2281701377:32770,2550136833:8389122,2818572289:514,3087007745:8421888,3355443201:8389120,3623878657:0,3892314113:33280,4160749569:8421378},{0:1074282512,16777216:16384,33554432:524288,50331648:1074266128,67108864:1073741840,83886080:1074282496,100663296:1073758208,117440512:16,134217728:540672,150994944:1073758224,167772160:1073741824,184549376:540688,201326592:524304,218103808:0,234881024:16400,251658240:1074266112,8388608:1073758208,25165824:540688,41943040:16,58720256:1073758224,75497472:1074282512,92274688:1073741824,109051904:524288,125829120:1074266128,142606336:524304,159383552:0,176160768:16384,192937984:1074266112,209715200:1073741840,226492416:540672,243269632:1074282496,260046848:16400,268435456:0,285212672:1074266128,301989888:1073758224,318767104:1074282496,335544320:1074266112,352321536:16,369098752:540688,385875968:16384,402653184:16400,419430400:524288,436207616:524304,452984832:1073741840,469762048:540672,486539264:1073758208,503316480:1073741824,520093696:1074282512,276824064:540688,293601280:524288,310378496:1074266112,327155712:16384,343932928:1073758208,360710144:1074282512,377487360:16,394264576:1073741824,411041792:1074282496,427819008:1073741840,444596224:1073758224,461373440:524304,478150656:0,494927872:16400,511705088:1074266128,528482304:540672},{0:260,1048576:0,2097152:67109120,3145728:65796,4194304:65540,5242880:67108868,6291456:67174660,7340032:67174400,8388608:67108864,9437184:67174656,10485760:65792,11534336:67174404,12582912:67109124,13631488:65536,14680064:4,15728640:256,524288:67174656,1572864:67174404,2621440:0,3670016:67109120,4718592:67108868,5767168:65536,6815744:65540,7864320:260,8912896:4,9961472:256,11010048:67174400,12058624:65796,13107200:65792,14155776:67109124,15204352:67174660,16252928:67108864,16777216:67174656,17825792:65540,18874368:65536,19922944:67109120,20971520:256,22020096:67174660,23068672:67108868,24117248:0,25165824:67109124,26214400:67108864,27262976:4,28311552:65792,29360128:67174400,30408704:260,31457280:65796,32505856:67174404,17301504:67108864,18350080:260,19398656:67174656,20447232:0,21495808:65540,22544384:67109120,23592960:256,24641536:67174404,25690112:65536,26738688:67174660,27787264:65796,28835840:67108868,29884416:67109124,30932992:67174400,31981568:4,33030144:65792},{0:2151682048,65536:2147487808,131072:4198464,196608:2151677952,262144:0,327680:4198400,393216:2147483712,458752:4194368,524288:2147483648,589824:4194304,655360:64,720896:2147487744,786432:2151678016,851968:4160,917504:4096,983040:2151682112,32768:2147487808,98304:64,163840:2151678016,229376:2147487744,294912:4198400,360448:2151682112,425984:0,491520:2151677952,557056:4096,622592:2151682048,688128:4194304,753664:4160,819200:2147483648,884736:4194368,950272:4198464,1015808:2147483712,1048576:4194368,1114112:4198400,1179648:2147483712,1245184:0,1310720:4160,1376256:2151678016,1441792:2151682048,1507328:2147487808,1572864:2151682112,1638400:2147483648,1703936:2151677952,1769472:4198464,1835008:2147487744,1900544:4194304,1966080:64,2031616:4096,1081344:2151677952,1146880:2151682112,1212416:0,1277952:4198400,1343488:4194368,1409024:2147483648,1474560:2147487808,1540096:64,1605632:2147483712,1671168:4096,1736704:2147487744,1802240:2151678016,1867776:4160,1933312:2151682048,1998848:4194304,2064384:4198464},{0:128,4096:17039360,8192:262144,12288:536870912,16384:537133184,20480:16777344,24576:553648256,28672:262272,32768:16777216,36864:537133056,40960:536871040,45056:553910400,49152:553910272,53248:0,57344:17039488,61440:553648128,2048:17039488,6144:553648256,10240:128,14336:17039360,18432:262144,22528:537133184,26624:553910272,30720:536870912,34816:537133056,38912:0,43008:553910400,47104:16777344,51200:536871040,55296:553648128,59392:16777216,63488:262272,65536:262144,69632:128,73728:536870912,77824:553648256,81920:16777344,86016:553910272,90112:537133184,94208:16777216,98304:553910400,102400:553648128,106496:17039360,110592:537133056,114688:262272,118784:536871040,122880:0,126976:17039488,67584:553648256,71680:16777216,75776:17039360,79872:537133184,83968:536870912,88064:17039488,92160:128,96256:553910272,100352:262272,104448:553910400,108544:0,112640:553648128,116736:16777344,120832:262144,124928:537133056,129024:536871040},{0:268435464,256:8192,512:270532608,768:270540808,1024:268443648,1280:2097152,1536:2097160,1792:268435456,2048:0,2304:268443656,2560:2105344,2816:8,3072:270532616,3328:2105352,3584:8200,3840:270540800,128:270532608,384:270540808,640:8,896:2097152,1152:2105352,1408:268435464,1664:268443648,1920:8200,2176:2097160,2432:8192,2688:268443656,2944:270532616,3200:0,3456:270540800,3712:2105344,3968:268435456,4096:268443648,4352:270532616,4608:270540808,4864:8200,5120:2097152,5376:268435456,5632:268435464,5888:2105344,6144:2105352,6400:0,6656:8,6912:270532608,7168:8192,7424:268443656,7680:270540800,7936:2097160,4224:8,4480:2105344,4736:2097152,4992:268435464,5248:268443648,5504:8200,5760:270540808,6016:270532608,6272:270540800,6528:270532616,6784:8192,7040:2105352,7296:2097160,7552:0,7808:268435456,8064:268443656},{0:1048576,16:33555457,32:1024,48:1049601,64:34604033,80:0,96:1,112:34603009,128:33555456,144:1048577,160:33554433,176:34604032,192:34603008,208:1025,224:1049600,240:33554432,8:34603009,24:0,40:33555457,56:34604032,72:1048576,88:33554433,104:33554432,120:1025,136:1049601,152:33555456,168:34603008,184:1048577,200:1024,216:34604033,232:1,248:1049600,256:33554432,272:1048576,288:33555457,304:34603009,320:1048577,336:33555456,352:34604032,368:1049601,384:1025,400:34604033,416:1049600,432:1,448:0,464:34603008,480:33554433,496:1024,264:1049600,280:33555457,296:34603009,312:1,328:33554432,344:1048576,360:1025,376:34604032,392:33554433,408:34603008,424:0,440:34604033,456:1049601,472:1024,488:33555456,504:1048577},{0:134219808,1:131072,2:134217728,3:32,4:131104,5:134350880,6:134350848,7:2048,8:134348800,9:134219776,10:133120,11:134348832,12:2080,13:0,14:134217760,15:133152,2147483648:2048,2147483649:134350880,2147483650:134219808,2147483651:134217728,2147483652:134348800,2147483653:133120,2147483654:133152,2147483655:32,2147483656:134217760,2147483657:2080,2147483658:131104,2147483659:134350848,2147483660:0,2147483661:134348832,2147483662:134219776,2147483663:131072,16:133152,17:134350848,18:32,19:2048,20:134219776,21:134217760,22:134348832,23:131072,24:0,25:131104,26:134348800,27:134219808,28:134350880,29:133120,30:2080,31:134217728,2147483664:131072,2147483665:2048,2147483666:134348832,2147483667:133152,2147483668:32,2147483669:134348800,2147483670:134217728,2147483671:134219808,2147483672:134350880,2147483673:134217760,2147483674:134219776,2147483675:0,2147483676:133120,2147483677:2080,2147483678:131104,2147483679:134350848}],u=[4160749569,528482304,33030144,2064384,129024,8064,504,2147483679],d=i.DES=a.extend({_doReset:function(){for(var e=this._key.words,t=[],o=0;o<56;o++){var n=r[o]-1;t[o]=e[n>>>5]>>>31-n%32&1}for(var a=this._subKeys=[],i=0;i<16;i++){var c=a[i]=[],u=l[i];for(o=0;o<24;o++)c[o/6|0]|=t[(s[o]-1+u)%28]<<31-o%6,c[4+(o/6|0)]|=t[28+(s[o+24]-1+u)%28]<<31-o%6;for(c[0]=c[0]<<1|c[0]>>>31,o=1;o<7;o++)c[o]=c[o]>>>4*(o-1)+3;c[7]=c[7]<<5|c[7]>>>27}var d=this._invSubKeys=[];for(o=0;o<16;o++)d[o]=a[15-o]},encryptBlock:function(e,t){this._doCryptBlock(e,t,this._subKeys)},decryptBlock:function(e,t){this._doCryptBlock(e,t,this._invSubKeys)},_doCryptBlock:function(e,t,o){this._lBlock=e[t],this._rBlock=e[t+1],h.call(this,4,252645135),h.call(this,16,65535),p.call(this,2,858993459),p.call(this,8,16711935),h.call(this,1,1431655765);for(var n=0;n<16;n++){for(var a=o[n],i=this._lBlock,r=this._rBlock,s=0,l=0;l<8;l++)s|=c[l][((r^a[l])&u[l])>>>0];this._lBlock=r,this._rBlock=i^s}var d=this._lBlock;this._lBlock=this._rBlock,this._rBlock=d,h.call(this,1,1431655765),p.call(this,8,16711935),p.call(this,2,858993459),h.call(this,16,65535),h.call(this,4,252645135),e[t]=this._lBlock,e[t+1]=this._rBlock},keySize:2,ivSize:2,blockSize:2});function h(e,t){var o=(this._lBlock>>>e^this._rBlock)&t;this._rBlock^=o,this._lBlock^=o<<e}function p(e,t){var o=(this._rBlock>>>e^this._lBlock)&t;this._lBlock^=o,this._rBlock^=o<<e}t.DES=a._createHelper(d);var f=i.TripleDES=a.extend({_doReset:function(){var e=this._key.words;if(2!==e.length&&4!==e.length&&e.length<6)throw new Error("Invalid key length - 3DES requires the key length to be 64, 128, 192 or >192.");var t=e.slice(0,2),o=e.length<4?e.slice(0,2):e.slice(2,4),a=e.length<6?e.slice(0,2):e.slice(4,6);this._des1=d.createEncryptor(n.create(t)),this._des2=d.createEncryptor(n.create(o)),this._des3=d.createEncryptor(n.create(a))},encryptBlock:function(e,t){this._des1.encryptBlock(e,t),this._des2.decryptBlock(e,t),this._des3.encryptBlock(e,t)},decryptBlock:function(e,t){this._des3.decryptBlock(e,t),this._des2.encryptBlock(e,t),this._des1.decryptBlock(e,t)},keySize:6,ivSize:2,blockSize:2});t.TripleDES=a._createHelper(f)}(),e.TripleDES));var e}var Mi,Oi={exports:{}};var Ji,ji={exports:{}};var Hi,zi={exports:{}};var qi,Ki={exports:{}};function Gi(){return qi?Ki.exports:(qi=1,Ki.exports=(e=Aa(),Ra(),Na(),si(),ui(),function(){var t=e,o=t.lib.BlockCipher,n=t.algo;const a=16,i=[608135816,2242054355,320440878,57701188,2752067618,698298832,137296536,3964562569,1160258022,953160567,3193202383,887688300,3232508343,3380367581,1065670069,3041331479,2450970073,2306472731],r=[[3509652390,2564797868,805139163,3491422135,3101798381,1780907670,3128725573,4046225305,614570311,3012652279,134345442,2240740374,1667834072,1901547113,2757295779,4103290238,227898511,1921955416,1904987480,2182433518,2069144605,3260701109,2620446009,720527379,3318853667,677414384,3393288472,3101374703,2390351024,1614419982,1822297739,2954791486,3608508353,3174124327,2024746970,1432378464,3864339955,2857741204,1464375394,1676153920,1439316330,715854006,3033291828,289532110,2706671279,2087905683,3018724369,1668267050,732546397,1947742710,3462151702,2609353502,2950085171,1814351708,2050118529,680887927,999245976,1800124847,3300911131,1713906067,1641548236,4213287313,1216130144,1575780402,4018429277,3917837745,3693486850,3949271944,596196993,3549867205,258830323,2213823033,772490370,2760122372,1774776394,2652871518,566650946,4142492826,1728879713,2882767088,1783734482,3629395816,2517608232,2874225571,1861159788,326777828,3124490320,2130389656,2716951837,967770486,1724537150,2185432712,2364442137,1164943284,2105845187,998989502,3765401048,2244026483,1075463327,1455516326,1322494562,910128902,469688178,1117454909,936433444,3490320968,3675253459,1240580251,122909385,2157517691,634681816,4142456567,3825094682,3061402683,2540495037,79693498,3249098678,1084186820,1583128258,426386531,1761308591,1047286709,322548459,995290223,1845252383,2603652396,3431023940,2942221577,3202600964,3727903485,1712269319,422464435,3234572375,1170764815,3523960633,3117677531,1434042557,442511882,3600875718,1076654713,1738483198,4213154764,2393238008,3677496056,1014306527,4251020053,793779912,2902807211,842905082,4246964064,1395751752,1040244610,2656851899,3396308128,445077038,3742853595,3577915638,679411651,2892444358,2354009459,1767581616,3150600392,3791627101,3102740896,284835224,4246832056,1258075500,768725851,2589189241,3069724005,3532540348,1274779536,3789419226,2764799539,1660621633,3471099624,4011903706,913787905,3497959166,737222580,2514213453,2928710040,3937242737,1804850592,3499020752,2949064160,2386320175,2390070455,2415321851,4061277028,2290661394,2416832540,1336762016,1754252060,3520065937,3014181293,791618072,3188594551,3933548030,2332172193,3852520463,3043980520,413987798,3465142937,3030929376,4245938359,2093235073,3534596313,375366246,2157278981,2479649556,555357303,3870105701,2008414854,3344188149,4221384143,3956125452,2067696032,3594591187,2921233993,2428461,544322398,577241275,1471733935,610547355,4027169054,1432588573,1507829418,2025931657,3646575487,545086370,48609733,2200306550,1653985193,298326376,1316178497,3007786442,2064951626,458293330,2589141269,3591329599,3164325604,727753846,2179363840,146436021,1461446943,4069977195,705550613,3059967265,3887724982,4281599278,3313849956,1404054877,2845806497,146425753,1854211946],[1266315497,3048417604,3681880366,3289982499,290971e4,1235738493,2632868024,2414719590,3970600049,1771706367,1449415276,3266420449,422970021,1963543593,2690192192,3826793022,1062508698,1531092325,1804592342,2583117782,2714934279,4024971509,1294809318,4028980673,1289560198,2221992742,1669523910,35572830,157838143,1052438473,1016535060,1802137761,1753167236,1386275462,3080475397,2857371447,1040679964,2145300060,2390574316,1461121720,2956646967,4031777805,4028374788,33600511,2920084762,1018524850,629373528,3691585981,3515945977,2091462646,2486323059,586499841,988145025,935516892,3367335476,2599673255,2839830854,265290510,3972581182,2759138881,3795373465,1005194799,847297441,406762289,1314163512,1332590856,1866599683,4127851711,750260880,613907577,1450815602,3165620655,3734664991,3650291728,3012275730,3704569646,1427272223,778793252,1343938022,2676280711,2052605720,1946737175,3164576444,3914038668,3967478842,3682934266,1661551462,3294938066,4011595847,840292616,3712170807,616741398,312560963,711312465,1351876610,322626781,1910503582,271666773,2175563734,1594956187,70604529,3617834859,1007753275,1495573769,4069517037,2549218298,2663038764,504708206,2263041392,3941167025,2249088522,1514023603,1998579484,1312622330,694541497,2582060303,2151582166,1382467621,776784248,2618340202,3323268794,2497899128,2784771155,503983604,4076293799,907881277,423175695,432175456,1378068232,4145222326,3954048622,3938656102,3820766613,2793130115,2977904593,26017576,3274890735,3194772133,1700274565,1756076034,4006520079,3677328699,720338349,1533947780,354530856,688349552,3973924725,1637815568,332179504,3949051286,53804574,2852348879,3044236432,1282449977,3583942155,3416972820,4006381244,1617046695,2628476075,3002303598,1686838959,431878346,2686675385,1700445008,1080580658,1009431731,832498133,3223435511,2605976345,2271191193,2516031870,1648197032,4164389018,2548247927,300782431,375919233,238389289,3353747414,2531188641,2019080857,1475708069,455242339,2609103871,448939670,3451063019,1395535956,2413381860,1841049896,1491858159,885456874,4264095073,4001119347,1565136089,3898914787,1108368660,540939232,1173283510,2745871338,3681308437,4207628240,3343053890,4016749493,1699691293,1103962373,3625875870,2256883143,3830138730,1031889488,3479347698,1535977030,4236805024,3251091107,2132092099,1774941330,1199868427,1452454533,157007616,2904115357,342012276,595725824,1480756522,206960106,497939518,591360097,863170706,2375253569,3596610801,1814182875,2094937945,3421402208,1082520231,3463918190,2785509508,435703966,3908032597,1641649973,2842273706,3305899714,1510255612,2148256476,2655287854,3276092548,4258621189,236887753,3681803219,274041037,1734335097,3815195456,3317970021,1899903192,1026095262,4050517792,356393447,2410691914,3873677099,3682840055],[3913112168,2491498743,4132185628,2489919796,1091903735,1979897079,3170134830,3567386728,3557303409,857797738,1136121015,1342202287,507115054,2535736646,337727348,3213592640,1301675037,2528481711,1895095763,1721773893,3216771564,62756741,2142006736,835421444,2531993523,1442658625,3659876326,2882144922,676362277,1392781812,170690266,3921047035,1759253602,3611846912,1745797284,664899054,1329594018,3901205900,3045908486,2062866102,2865634940,3543621612,3464012697,1080764994,553557557,3656615353,3996768171,991055499,499776247,1265440854,648242737,3940784050,980351604,3713745714,1749149687,3396870395,4211799374,3640570775,1161844396,3125318951,1431517754,545492359,4268468663,3499529547,1437099964,2702547544,3433638243,2581715763,2787789398,1060185593,1593081372,2418618748,4260947970,69676912,2159744348,86519011,2512459080,3838209314,1220612927,3339683548,133810670,1090789135,1078426020,1569222167,845107691,3583754449,4072456591,1091646820,628848692,1613405280,3757631651,526609435,236106946,48312990,2942717905,3402727701,1797494240,859738849,992217954,4005476642,2243076622,3870952857,3732016268,765654824,3490871365,2511836413,1685915746,3888969200,1414112111,2273134842,3281911079,4080962846,172450625,2569994100,980381355,4109958455,2819808352,2716589560,2568741196,3681446669,3329971472,1835478071,660984891,3704678404,4045999559,3422617507,3040415634,1762651403,1719377915,3470491036,2693910283,3642056355,3138596744,1364962596,2073328063,1983633131,926494387,3423689081,2150032023,4096667949,1749200295,3328846651,309677260,2016342300,1779581495,3079819751,111262694,1274766160,443224088,298511866,1025883608,3806446537,1145181785,168956806,3641502830,3584813610,1689216846,3666258015,3200248200,1692713982,2646376535,4042768518,1618508792,1610833997,3523052358,4130873264,2001055236,3610705100,2202168115,4028541809,2961195399,1006657119,2006996926,3186142756,1430667929,3210227297,1314452623,4074634658,4101304120,2273951170,1399257539,3367210612,3027628629,1190975929,2062231137,2333990788,2221543033,2438960610,1181637006,548689776,2362791313,3372408396,3104550113,3145860560,296247880,1970579870,3078560182,3769228297,1714227617,3291629107,3898220290,166772364,1251581989,493813264,448347421,195405023,2709975567,677966185,3703036547,1463355134,2715995803,1338867538,1343315457,2802222074,2684532164,233230375,2599980071,2000651841,3277868038,1638401717,4028070440,3237316320,6314154,819756386,300326615,590932579,1405279636,3267499572,3150704214,2428286686,3959192993,3461946742,1862657033,1266418056,963775037,2089974820,2263052895,1917689273,448879540,3550394620,3981727096,150775221,3627908307,1303187396,508620638,2975983352,2726630617,1817252668,1876281319,1457606340,908771278,3720792119,3617206836,2455994898,1729034894,1080033504],[976866871,3556439503,2881648439,1522871579,1555064734,1336096578,3548522304,2579274686,3574697629,3205460757,3593280638,3338716283,3079412587,564236357,2993598910,1781952180,1464380207,3163844217,3332601554,1699332808,1393555694,1183702653,3581086237,1288719814,691649499,2847557200,2895455976,3193889540,2717570544,1781354906,1676643554,2592534050,3230253752,1126444790,2770207658,2633158820,2210423226,2615765581,2414155088,3127139286,673620729,2805611233,1269405062,4015350505,3341807571,4149409754,1057255273,2012875353,2162469141,2276492801,2601117357,993977747,3918593370,2654263191,753973209,36408145,2530585658,25011837,3520020182,2088578344,530523599,2918365339,1524020338,1518925132,3760827505,3759777254,1202760957,3985898139,3906192525,674977740,4174734889,2031300136,2019492241,3983892565,4153806404,3822280332,352677332,2297720250,60907813,90501309,3286998549,1016092578,2535922412,2839152426,457141659,509813237,4120667899,652014361,1966332200,2975202805,55981186,2327461051,676427537,3255491064,2882294119,3433927263,1307055953,942726286,933058658,2468411793,3933900994,4215176142,1361170020,2001714738,2830558078,3274259782,1222529897,1679025792,2729314320,3714953764,1770335741,151462246,3013232138,1682292957,1483529935,471910574,1539241949,458788160,3436315007,1807016891,3718408830,978976581,1043663428,3165965781,1927990952,4200891579,2372276910,3208408903,3533431907,1412390302,2931980059,4132332400,1947078029,3881505623,4168226417,2941484381,1077988104,1320477388,886195818,18198404,3786409e3,2509781533,112762804,3463356488,1866414978,891333506,18488651,661792760,1628790961,3885187036,3141171499,876946877,2693282273,1372485963,791857591,2686433993,3759982718,3167212022,3472953795,2716379847,445679433,3561995674,3504004811,3574258232,54117162,3331405415,2381918588,3769707343,4154350007,1140177722,4074052095,668550556,3214352940,367459370,261225585,2610173221,4209349473,3468074219,3265815641,314222801,3066103646,3808782860,282218597,3406013506,3773591054,379116347,1285071038,846784868,2669647154,3771962079,3550491691,2305946142,453669953,1268987020,3317592352,3279303384,3744833421,2610507566,3859509063,266596637,3847019092,517658769,3462560207,3443424879,370717030,4247526661,2224018117,4143653529,4112773975,2788324899,2477274417,1456262402,2901442914,1517677493,1846949527,2295493580,3734397586,2176403920,1280348187,1908823572,3871786941,846861322,1172426758,3287448474,3383383037,1655181056,3139813346,901632758,1897031941,2986607138,3066810236,3447102507,1393639104,373351379,950779232,625454576,3124240540,4148612726,2007998917,544563296,2244738638,2330496472,2058025392,1291430526,424198748,50039436,29584100,3605783033,2429876329,2791104160,1057563949,3255363231,3075367218,3463963227,1469046755,985887462]];var s={pbox:[],sbox:[]};function l(e,t){let o=t>>24&255,n=t>>16&255,a=t>>8&255,i=255&t,r=e.sbox[0][o]+e.sbox[1][n];return r^=e.sbox[2][a],r+=e.sbox[3][i],r}function c(e,t,o){let n,i=t,r=o;for(let s=0;s<a;++s)i^=e.pbox[s],r=l(e,i)^r,n=i,i=r,r=n;return n=i,i=r,r=n,r^=e.pbox[a],i^=e.pbox[a+1],{left:i,right:r}}function u(e,t,o){let n,i=t,r=o;for(let s=a+1;s>1;--s)i^=e.pbox[s],r=l(e,i)^r,n=i,i=r,r=n;return n=i,i=r,r=n,r^=e.pbox[1],i^=e.pbox[0],{left:i,right:r}}function d(e,t,o){for(let a=0;a<4;a++){e.sbox[a]=[];for(let t=0;t<256;t++)e.sbox[a][t]=r[a][t]}let n=0;for(let r=0;r<a+2;r++)e.pbox[r]=i[r]^t[n],n++,n>=o&&(n=0);let s=0,l=0,u=0;for(let i=0;i<a+2;i+=2)u=c(e,s,l),s=u.left,l=u.right,e.pbox[i]=s,e.pbox[i+1]=l;for(let a=0;a<4;a++)for(let t=0;t<256;t+=2)u=c(e,s,l),s=u.left,l=u.right,e.sbox[a][t]=s,e.sbox[a][t+1]=l;return!0}var h=n.Blowfish=o.extend({_doReset:function(){if(this._keyPriorReset!==this._key){var e=this._keyPriorReset=this._key,t=e.words,o=e.sigBytes/4;d(s,t,o)}},encryptBlock:function(e,t){var o=c(s,e[t],e[t+1]);e[t]=o.left,e[t+1]=o.right},decryptBlock:function(e,t){var o=u(s,e[t],e[t+1]);e[t]=o.left,e[t+1]=o.right},blockSize:2,keySize:4,ivSize:2});t.Blowfish=o._createHelper(h)}(),e.Blowfish));var e}var Wi;var Yi,Zi,Xi,_i,$i,er,tr=Wi?pa.exports:(Wi=1,pa.exports=function(e){return e}(Aa(),Ca(),ba(),ka(),Ra(),Qa(),Na(),Da(),Ja(),ja||(ja=1,Ha.exports=(er=Aa(),Ja(),Zi=(Yi=er).lib.WordArray,Xi=Yi.algo,_i=Xi.SHA256,$i=Xi.SHA224=_i.extend({_doReset:function(){this._hash=new Zi.init([3238371032,914150663,812702999,4144912697,4290775857,1750603025,1694076839,3204075428])},_doFinalize:function(){var e=_i._doFinalize.call(this);return e.sigBytes-=4,e}}),Yi.SHA224=_i._createHelper($i),Yi.HmacSHA224=_i._createHmacHelper($i),er.SHA224)),Ka(),function(){return Ga?Wa.exports:(Ga=1,Wa.exports=(s=Aa(),Ca(),Ka(),t=(e=s).x64,o=t.Word,n=t.WordArray,a=e.algo,i=a.SHA512,r=a.SHA384=i.extend({_doReset:function(){this._hash=new n.init([new o.init(3418070365,3238371032),new o.init(1654270250,914150663),new o.init(2438529370,812702999),new o.init(355462360,4144912697),new o.init(1731405415,4290775857),new o.init(2394180231,1750603025),new o.init(3675008525,1694076839),new o.init(1203062813,3204075428)])},_doFinalize:function(){var e=i._doFinalize.call(this);return e.sigBytes-=16,e}}),e.SHA384=i._createHelper(r),e.HmacSHA384=i._createHmacHelper(r),s.SHA384));var e,t,o,n,a,i,r,s}(),Xa(),function(){return _a?$a.exports:(_a=1,$a.exports=(e=Aa(),function(){var t=e,o=t.lib,n=o.WordArray,a=o.Hasher,i=t.algo,r=n.create([0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,7,4,13,1,10,6,15,3,12,0,9,5,2,14,11,8,3,10,14,4,9,15,8,1,2,7,0,6,13,11,5,12,1,9,11,10,0,8,12,4,13,3,7,15,14,5,6,2,4,0,5,9,7,12,2,10,14,1,3,8,11,6,15,13]),s=n.create([5,14,7,0,9,2,11,4,13,6,15,8,1,10,3,12,6,11,3,7,0,13,5,10,14,15,8,12,4,9,1,2,15,5,1,3,7,14,6,9,11,8,12,2,10,0,4,13,8,6,4,1,3,11,15,0,5,12,2,13,9,7,10,14,12,15,10,4,1,5,8,7,6,2,13,14,0,3,9,11]),l=n.create([11,14,15,12,5,8,7,9,11,13,14,15,6,7,9,8,7,6,8,13,11,9,7,15,7,12,15,9,11,7,13,12,11,13,6,7,14,9,13,15,14,8,13,6,5,12,7,5,11,12,14,15,14,15,9,8,9,14,5,6,8,6,5,12,9,15,5,11,6,8,13,12,5,12,13,14,11,8,5,6]),c=n.create([8,9,9,11,13,15,15,5,7,7,8,11,14,14,12,6,9,13,15,7,12,8,9,11,7,7,12,7,6,15,13,11,9,7,15,11,8,6,6,14,12,13,5,14,13,13,7,5,15,5,8,11,14,14,6,14,6,9,12,9,12,5,15,8,8,5,12,9,12,5,14,6,8,13,6,5,15,13,11,11]),u=n.create([0,1518500249,1859775393,2400959708,2840853838]),d=n.create([1352829926,1548603684,1836072691,2053994217,0]),h=i.RIPEMD160=a.extend({_doReset:function(){this._hash=n.create([1732584193,4023233417,2562383102,271733878,3285377520])},_doProcessBlock:function(e,t){for(var o=0;o<16;o++){var n=t+o,a=e[n];e[n]=16711935&(a<<8|a>>>24)|4278255360&(a<<24|a>>>8)}var i,h,y,C,w,E,b,I,B,k,S,x=this._hash.words,R=u.words,T=d.words,F=r.words,Q=s.words,L=l.words,P=c.words;for(E=i=x[0],b=h=x[1],I=y=x[2],B=C=x[3],k=w=x[4],o=0;o<80;o+=1)S=i+e[t+F[o]]|0,S+=o<16?p(h,y,C)+R[0]:o<32?f(h,y,C)+R[1]:o<48?m(h,y,C)+R[2]:o<64?g(h,y,C)+R[3]:A(h,y,C)+R[4],S=(S=v(S|=0,L[o]))+w|0,i=w,w=C,C=v(y,10),y=h,h=S,S=E+e[t+Q[o]]|0,S+=o<16?A(b,I,B)+T[0]:o<32?g(b,I,B)+T[1]:o<48?m(b,I,B)+T[2]:o<64?f(b,I,B)+T[3]:p(b,I,B)+T[4],S=(S=v(S|=0,P[o]))+k|0,E=k,k=B,B=v(I,10),I=b,b=S;S=x[1]+y+B|0,x[1]=x[2]+C+k|0,x[2]=x[3]+w+E|0,x[3]=x[4]+i+b|0,x[4]=x[0]+h+I|0,x[0]=S},_doFinalize:function(){var e=this._data,t=e.words,o=8*this._nDataBytes,n=8*e.sigBytes;t[n>>>5]|=128<<24-n%32,t[14+(n+64>>>9<<4)]=16711935&(o<<8|o>>>24)|4278255360&(o<<24|o>>>8),e.sigBytes=4*(t.length+1),this._process();for(var a=this._hash,i=a.words,r=0;r<5;r++){var s=i[r];i[r]=16711935&(s<<8|s>>>24)|4278255360&(s<<24|s>>>8)}return a},clone:function(){var e=a.clone.call(this);return e._hash=this._hash.clone(),e}});function p(e,t,o){return e^t^o}function f(e,t,o){return e&t|~e&o}function m(e,t,o){return(e|~t)^o}function g(e,t,o){return e&o|t&~o}function A(e,t,o){return e^(t|~o)}function v(e,t){return e<<t|e>>>32-t}t.RIPEMD160=a._createHelper(h),t.HmacRIPEMD160=a._createHmacHelper(h)}(),e.RIPEMD160));var e}(),oi(),function(){return ni?ai.exports:(ni=1,ai.exports=(l=Aa(),Ja(),oi(),t=(e=l).lib,o=t.Base,n=t.WordArray,a=e.algo,i=a.SHA256,r=a.HMAC,s=a.PBKDF2=o.extend({cfg:o.extend({keySize:4,hasher:i,iterations:25e4}),init:function(e){this.cfg=this.cfg.extend(e)},compute:function(e,t){for(var o=this.cfg,a=r.create(o.hasher,e),i=n.create(),s=n.create([1]),l=i.words,c=s.words,u=o.keySize,d=o.iterations;l.length<u;){var h=a.update(t).finalize(s);a.reset();for(var p=h.words,f=p.length,m=h,g=1;g<d;g++){m=a.finalize(m),a.reset();for(var A=m.words,v=0;v<f;v++)p[v]^=A[v]}i.concat(h),c[0]++}return i.sigBytes=4*u,i}}),e.PBKDF2=function(e,t,o){return s.create(o).compute(e,t)},l.PBKDF2));var e,t,o,n,a,i,r,s,l}(),si(),ui(),function(){return di?hi.exports:(di=1,hi.exports=(e=Aa(),ui(),e.mode.CFB=function(){var t=e.lib.BlockCipherMode.extend();function o(e,t,o,n){var a,i=this._iv;i?(a=i.slice(0),this._iv=void 0):a=this._prevBlock,n.encryptBlock(a,0);for(var r=0;r<o;r++)e[t+r]^=a[r]}return t.Encryptor=t.extend({processBlock:function(e,t){var n=this._cipher,a=n.blockSize;o.call(this,e,t,a,n),this._prevBlock=e.slice(t,t+a)}}),t.Decryptor=t.extend({processBlock:function(e,t){var n=this._cipher,a=n.blockSize,i=e.slice(t,t+a);o.call(this,e,t,a,n),this._prevBlock=i}}),t}(),e.mode.CFB));var e}(),function(){return pi?fi.exports:(pi=1,fi.exports=(o=Aa(),ui(),o.mode.CTR=(e=o.lib.BlockCipherMode.extend(),t=e.Encryptor=e.extend({processBlock:function(e,t){var o=this._cipher,n=o.blockSize,a=this._iv,i=this._counter;a&&(i=this._counter=a.slice(0),this._iv=void 0);var r=i.slice(0);o.encryptBlock(r,0),i[n-1]=i[n-1]+1|0;for(var s=0;s<n;s++)e[t+s]^=r[s]}}),e.Decryptor=t,e),o.mode.CTR));var e,t,o}(),Ai(),function(){return vi?yi.exports:(vi=1,yi.exports=(o=Aa(),ui(),o.mode.OFB=(e=o.lib.BlockCipherMode.extend(),t=e.Encryptor=e.extend({processBlock:function(e,t){var o=this._cipher,n=o.blockSize,a=this._iv,i=this._keystream;a&&(i=this._keystream=a.slice(0),this._iv=void 0),o.encryptBlock(i,0);for(var r=0;r<n;r++)e[t+r]^=i[r]}}),e.Decryptor=t,e),o.mode.OFB));var e,t,o}(),function(){return Ci?wi.exports:(Ci=1,wi.exports=(t=Aa(),ui(),t.mode.ECB=((e=t.lib.BlockCipherMode.extend()).Encryptor=e.extend({processBlock:function(e,t){this._cipher.encryptBlock(e,t)}}),e.Decryptor=e.extend({processBlock:function(e,t){this._cipher.decryptBlock(e,t)}}),e),t.mode.ECB));var e,t}(),function(){return Ei?bi.exports:(Ei=1,bi.exports=(e=Aa(),ui(),e.pad.AnsiX923={pad:function(e,t){var o=e.sigBytes,n=4*t,a=n-o%n,i=o+a-1;e.clamp(),e.words[i>>>2]|=a<<24-i%4*8,e.sigBytes+=a},unpad:function(e){var t=255&e.words[e.sigBytes-1>>>2];e.sigBytes-=t}},e.pad.Ansix923));var e}(),function(){return Ii?Bi.exports:(Ii=1,Bi.exports=(e=Aa(),ui(),e.pad.Iso10126={pad:function(t,o){var n=4*o,a=n-t.sigBytes%n;t.concat(e.lib.WordArray.random(a-1)).concat(e.lib.WordArray.create([a<<24],1))},unpad:function(e){var t=255&e.words[e.sigBytes-1>>>2];e.sigBytes-=t}},e.pad.Iso10126));var e}(),function(){return ki?Si.exports:(ki=1,Si.exports=(e=Aa(),ui(),e.pad.Iso97971={pad:function(t,o){t.concat(e.lib.WordArray.create([2147483648],1)),e.pad.ZeroPadding.pad(t,o)},unpad:function(t){e.pad.ZeroPadding.unpad(t),t.sigBytes--}},e.pad.Iso97971));var e}(),function(){return xi?Ri.exports:(xi=1,Ri.exports=(e=Aa(),ui(),e.pad.ZeroPadding={pad:function(e,t){var o=4*t;e.clamp(),e.sigBytes+=o-(e.sigBytes%o||o)},unpad:function(e){var t=e.words,o=e.sigBytes-1;for(o=e.sigBytes-1;o>=0;o--)if(t[o>>>2]>>>24-o%4*8&255){e.sigBytes=o+1;break}}},e.pad.ZeroPadding));var e}(),function(){return Ti?Fi.exports:(Ti=1,Fi.exports=(e=Aa(),ui(),e.pad.NoPadding={pad:function(){},unpad:function(){}},e.pad.NoPadding));var e}(),function(){return Qi?Li.exports:(Qi=1,Li.exports=(n=Aa(),ui(),t=(e=n).lib.CipherParams,o=e.enc.Hex,e.format.Hex={stringify:function(e){return e.ciphertext.toString(o)},parse:function(e){var n=o.parse(e);return t.create({ciphertext:n})}},n.format.Hex));var e,t,o,n}(),function(){return Pi?Ni.exports:(Pi=1,Ni.exports=(e=Aa(),Ra(),Na(),si(),ui(),function(){var t=e,o=t.lib.BlockCipher,n=t.algo,a=[],i=[],r=[],s=[],l=[],c=[],u=[],d=[],h=[],p=[];!function(){for(var e=[],t=0;t<256;t++)e[t]=t<128?t<<1:t<<1^283;var o=0,n=0;for(t=0;t<256;t++){var f=n^n<<1^n<<2^n<<3^n<<4;f=f>>>8^255&f^99,a[o]=f,i[f]=o;var m=e[o],g=e[m],A=e[g],v=257*e[f]^16843008*f;r[o]=v<<24|v>>>8,s[o]=v<<16|v>>>16,l[o]=v<<8|v>>>24,c[o]=v,v=16843009*A^65537*g^257*m^16843008*o,u[f]=v<<24|v>>>8,d[f]=v<<16|v>>>16,h[f]=v<<8|v>>>24,p[f]=v,o?(o=m^e[e[e[A^m]]],n^=e[e[n]]):o=n=1}}();var f=[0,1,2,4,8,16,32,64,128,27,54],m=n.AES=o.extend({_doReset:function(){if(!this._nRounds||this._keyPriorReset!==this._key){for(var e=this._keyPriorReset=this._key,t=e.words,o=e.sigBytes/4,n=4*((this._nRounds=o+6)+1),i=this._keySchedule=[],r=0;r<n;r++)r<o?i[r]=t[r]:(c=i[r-1],r%o?o>6&&r%o==4&&(c=a[c>>>24]<<24|a[c>>>16&255]<<16|a[c>>>8&255]<<8|a[255&c]):(c=a[(c=c<<8|c>>>24)>>>24]<<24|a[c>>>16&255]<<16|a[c>>>8&255]<<8|a[255&c],c^=f[r/o|0]<<24),i[r]=i[r-o]^c);for(var s=this._invKeySchedule=[],l=0;l<n;l++){if(r=n-l,l%4)var c=i[r];else c=i[r-4];s[l]=l<4||r<=4?c:u[a[c>>>24]]^d[a[c>>>16&255]]^h[a[c>>>8&255]]^p[a[255&c]]}}},encryptBlock:function(e,t){this._doCryptBlock(e,t,this._keySchedule,r,s,l,c,a)},decryptBlock:function(e,t){var o=e[t+1];e[t+1]=e[t+3],e[t+3]=o,this._doCryptBlock(e,t,this._invKeySchedule,u,d,h,p,i),o=e[t+1],e[t+1]=e[t+3],e[t+3]=o},_doCryptBlock:function(e,t,o,n,a,i,r,s){for(var l=this._nRounds,c=e[t]^o[0],u=e[t+1]^o[1],d=e[t+2]^o[2],h=e[t+3]^o[3],p=4,f=1;f<l;f++){var m=n[c>>>24]^a[u>>>16&255]^i[d>>>8&255]^r[255&h]^o[p++],g=n[u>>>24]^a[d>>>16&255]^i[h>>>8&255]^r[255&c]^o[p++],A=n[d>>>24]^a[h>>>16&255]^i[c>>>8&255]^r[255&u]^o[p++],v=n[h>>>24]^a[c>>>16&255]^i[u>>>8&255]^r[255&d]^o[p++];c=m,u=g,d=A,h=v}m=(s[c>>>24]<<24|s[u>>>16&255]<<16|s[d>>>8&255]<<8|s[255&h])^o[p++],g=(s[u>>>24]<<24|s[d>>>16&255]<<16|s[h>>>8&255]<<8|s[255&c])^o[p++],A=(s[d>>>24]<<24|s[h>>>16&255]<<16|s[c>>>8&255]<<8|s[255&u])^o[p++],v=(s[h>>>24]<<24|s[c>>>16&255]<<16|s[u>>>8&255]<<8|s[255&d])^o[p++],e[t]=m,e[t+1]=g,e[t+2]=A,e[t+3]=v},keySize:8});t.AES=o._createHelper(m)}(),e.AES));var e}(),Di(),function(){return Mi?Oi.exports:(Mi=1,Oi.exports=(e=Aa(),Ra(),Na(),si(),ui(),function(){var t=e,o=t.lib.StreamCipher,n=t.algo,a=n.RC4=o.extend({_doReset:function(){for(var e=this._key,t=e.words,o=e.sigBytes,n=this._S=[],a=0;a<256;a++)n[a]=a;a=0;for(var i=0;a<256;a++){var r=a%o,s=t[r>>>2]>>>24-r%4*8&255;i=(i+n[a]+s)%256;var l=n[a];n[a]=n[i],n[i]=l}this._i=this._j=0},_doProcessBlock:function(e,t){e[t]^=i.call(this)},keySize:8,ivSize:0});function i(){for(var e=this._S,t=this._i,o=this._j,n=0,a=0;a<4;a++){o=(o+e[t=(t+1)%256])%256;var i=e[t];e[t]=e[o],e[o]=i,n|=e[(e[t]+e[o])%256]<<24-8*a}return this._i=t,this._j=o,n}t.RC4=o._createHelper(a);var r=n.RC4Drop=a.extend({cfg:a.cfg.extend({drop:192}),_doReset:function(){a._doReset.call(this);for(var e=this.cfg.drop;e>0;e--)i.call(this)}});t.RC4Drop=o._createHelper(r)}(),e.RC4));var e}(),function(){return Ji?ji.exports:(Ji=1,ji.exports=(e=Aa(),Ra(),Na(),si(),ui(),function(){var t=e,o=t.lib.StreamCipher,n=t.algo,a=[],i=[],r=[],s=n.Rabbit=o.extend({_doReset:function(){for(var e=this._key.words,t=this.cfg.iv,o=0;o<4;o++)e[o]=16711935&(e[o]<<8|e[o]>>>24)|4278255360&(e[o]<<24|e[o]>>>8);var n=this._X=[e[0],e[3]<<16|e[2]>>>16,e[1],e[0]<<16|e[3]>>>16,e[2],e[1]<<16|e[0]>>>16,e[3],e[2]<<16|e[1]>>>16],a=this._C=[e[2]<<16|e[2]>>>16,4294901760&e[0]|65535&e[1],e[3]<<16|e[3]>>>16,4294901760&e[1]|65535&e[2],e[0]<<16|e[0]>>>16,4294901760&e[2]|65535&e[3],e[1]<<16|e[1]>>>16,4294901760&e[3]|65535&e[0]];for(this._b=0,o=0;o<4;o++)l.call(this);for(o=0;o<8;o++)a[o]^=n[o+4&7];if(t){var i=t.words,r=i[0],s=i[1],c=16711935&(r<<8|r>>>24)|4278255360&(r<<24|r>>>8),u=16711935&(s<<8|s>>>24)|4278255360&(s<<24|s>>>8),d=c>>>16|4294901760&u,h=u<<16|65535&c;for(a[0]^=c,a[1]^=d,a[2]^=u,a[3]^=h,a[4]^=c,a[5]^=d,a[6]^=u,a[7]^=h,o=0;o<4;o++)l.call(this)}},_doProcessBlock:function(e,t){var o=this._X;l.call(this),a[0]=o[0]^o[5]>>>16^o[3]<<16,a[1]=o[2]^o[7]>>>16^o[5]<<16,a[2]=o[4]^o[1]>>>16^o[7]<<16,a[3]=o[6]^o[3]>>>16^o[1]<<16;for(var n=0;n<4;n++)a[n]=16711935&(a[n]<<8|a[n]>>>24)|4278255360&(a[n]<<24|a[n]>>>8),e[t+n]^=a[n]},blockSize:4,ivSize:2});function l(){for(var e=this._X,t=this._C,o=0;o<8;o++)i[o]=t[o];for(t[0]=t[0]+1295307597+this._b|0,t[1]=t[1]+3545052371+(t[0]>>>0<i[0]>>>0?1:0)|0,t[2]=t[2]+886263092+(t[1]>>>0<i[1]>>>0?1:0)|0,t[3]=t[3]+1295307597+(t[2]>>>0<i[2]>>>0?1:0)|0,t[4]=t[4]+3545052371+(t[3]>>>0<i[3]>>>0?1:0)|0,t[5]=t[5]+886263092+(t[4]>>>0<i[4]>>>0?1:0)|0,t[6]=t[6]+1295307597+(t[5]>>>0<i[5]>>>0?1:0)|0,t[7]=t[7]+3545052371+(t[6]>>>0<i[6]>>>0?1:0)|0,this._b=t[7]>>>0<i[7]>>>0?1:0,o=0;o<8;o++){var n=e[o]+t[o],a=65535&n,s=n>>>16,l=((a*a>>>17)+a*s>>>15)+s*s,c=((4294901760&n)*n|0)+((65535&n)*n|0);r[o]=l^c}e[0]=r[0]+(r[7]<<16|r[7]>>>16)+(r[6]<<16|r[6]>>>16)|0,e[1]=r[1]+(r[0]<<8|r[0]>>>24)+r[7]|0,e[2]=r[2]+(r[1]<<16|r[1]>>>16)+(r[0]<<16|r[0]>>>16)|0,e[3]=r[3]+(r[2]<<8|r[2]>>>24)+r[1]|0,e[4]=r[4]+(r[3]<<16|r[3]>>>16)+(r[2]<<16|r[2]>>>16)|0,e[5]=r[5]+(r[4]<<8|r[4]>>>24)+r[3]|0,e[6]=r[6]+(r[5]<<16|r[5]>>>16)+(r[4]<<16|r[4]>>>16)|0,e[7]=r[7]+(r[6]<<8|r[6]>>>24)+r[5]|0}t.Rabbit=o._createHelper(s)}(),e.Rabbit));var e}(),function(){return Hi?zi.exports:(Hi=1,zi.exports=(e=Aa(),Ra(),Na(),si(),ui(),function(){var t=e,o=t.lib.StreamCipher,n=t.algo,a=[],i=[],r=[],s=n.RabbitLegacy=o.extend({_doReset:function(){var e=this._key.words,t=this.cfg.iv,o=this._X=[e[0],e[3]<<16|e[2]>>>16,e[1],e[0]<<16|e[3]>>>16,e[2],e[1]<<16|e[0]>>>16,e[3],e[2]<<16|e[1]>>>16],n=this._C=[e[2]<<16|e[2]>>>16,4294901760&e[0]|65535&e[1],e[3]<<16|e[3]>>>16,4294901760&e[1]|65535&e[2],e[0]<<16|e[0]>>>16,4294901760&e[2]|65535&e[3],e[1]<<16|e[1]>>>16,4294901760&e[3]|65535&e[0]];this._b=0;for(var a=0;a<4;a++)l.call(this);for(a=0;a<8;a++)n[a]^=o[a+4&7];if(t){var i=t.words,r=i[0],s=i[1],c=16711935&(r<<8|r>>>24)|4278255360&(r<<24|r>>>8),u=16711935&(s<<8|s>>>24)|4278255360&(s<<24|s>>>8),d=c>>>16|4294901760&u,h=u<<16|65535&c;for(n[0]^=c,n[1]^=d,n[2]^=u,n[3]^=h,n[4]^=c,n[5]^=d,n[6]^=u,n[7]^=h,a=0;a<4;a++)l.call(this)}},_doProcessBlock:function(e,t){var o=this._X;l.call(this),a[0]=o[0]^o[5]>>>16^o[3]<<16,a[1]=o[2]^o[7]>>>16^o[5]<<16,a[2]=o[4]^o[1]>>>16^o[7]<<16,a[3]=o[6]^o[3]>>>16^o[1]<<16;for(var n=0;n<4;n++)a[n]=16711935&(a[n]<<8|a[n]>>>24)|4278255360&(a[n]<<24|a[n]>>>8),e[t+n]^=a[n]},blockSize:4,ivSize:2});function l(){for(var e=this._X,t=this._C,o=0;o<8;o++)i[o]=t[o];for(t[0]=t[0]+1295307597+this._b|0,t[1]=t[1]+3545052371+(t[0]>>>0<i[0]>>>0?1:0)|0,t[2]=t[2]+886263092+(t[1]>>>0<i[1]>>>0?1:0)|0,t[3]=t[3]+1295307597+(t[2]>>>0<i[2]>>>0?1:0)|0,t[4]=t[4]+3545052371+(t[3]>>>0<i[3]>>>0?1:0)|0,t[5]=t[5]+886263092+(t[4]>>>0<i[4]>>>0?1:0)|0,t[6]=t[6]+1295307597+(t[5]>>>0<i[5]>>>0?1:0)|0,t[7]=t[7]+3545052371+(t[6]>>>0<i[6]>>>0?1:0)|0,this._b=t[7]>>>0<i[7]>>>0?1:0,o=0;o<8;o++){var n=e[o]+t[o],a=65535&n,s=n>>>16,l=((a*a>>>17)+a*s>>>15)+s*s,c=((4294901760&n)*n|0)+((65535&n)*n|0);r[o]=l^c}e[0]=r[0]+(r[7]<<16|r[7]>>>16)+(r[6]<<16|r[6]>>>16)|0,e[1]=r[1]+(r[0]<<8|r[0]>>>24)+r[7]|0,e[2]=r[2]+(r[1]<<16|r[1]>>>16)+(r[0]<<16|r[0]>>>16)|0,e[3]=r[3]+(r[2]<<8|r[2]>>>24)+r[1]|0,e[4]=r[4]+(r[3]<<16|r[3]>>>16)+(r[2]<<16|r[2]>>>16)|0,e[5]=r[5]+(r[4]<<8|r[4]>>>24)+r[3]|0,e[6]=r[6]+(r[5]<<16|r[5]>>>16)+(r[4]<<16|r[4]>>>16)|0,e[7]=r[7]+(r[6]<<8|r[6]>>>24)+r[5]|0}t.RabbitLegacy=o._createHelper(s)}(),e.RabbitLegacy));var e}(),Gi()));const or=/* @__PURE__ */da(tr);const nr={name:"JcVerifySlide",props:{visible:{type:Boolean,default:!1},captchaType:{type:String,default:"blockPuzzle"},mode:{type:String,default:"pop"},vSpace:{type:Number,default:30},explain:{type:String,default:""},lang:{type:String,default:""},imgSize:{type:Object,default:()=>({width:"310px",height:"155px"})},barSize:{type:Object,default:()=>({width:"310px",height:"40px"})},defaultImg:{type:String,default:""}},data:()=>({secretKey:"",passFlag:!1,backImgBase:"",blockBackImgBase:"",backToken:"",startMoveTime:0,endMoveTime:0,startLeft:0,tipWords:"",finishText:"",setSize:{imgHeight:"155px",imgWidth:"340px"},moveBlockLeft:"0px",leftBarWidth:"40px",moveBlockBackgroundColor:"#fff",leftBarBorderColor:"#e4e7eb",iconColor:"#4b4b4b",iconClass:"icon-right",status:!1,isEnd:!1,showRefresh:!0,transitionLeft:"",transitionWidth:"",currentBarHeight:40,loading:!0,isNeedShow:!1}),computed:{isEn(){if(this.lang)return"en"===this.lang||"en-US"===this.lang;try{if("function"==typeof useCookie){const e=useCookie("jc-language")?.value;if(e)return/^en(-US)?$/.test(e)}}catch(e){}if("undefined"!=typeof document){const e=document.cookie||"";return/(^|;\s*)jc-language=en(-US)?(;|$)/.test(e)}try{if("function"==typeof useNuxtApp){const e=useNuxtApp();return/(^|;\s*)jc-language=en(-US)?(;|$)/.test(e?.ssrContext?.event?.node?.req?.headers?.cookie||"")}}catch(e){}return!1},showBox(){return"pop"!==this.mode||this.visible&&this.isNeedShow},barExplain(){return this.isEnd?"":this.isEn?"Swipe right to complete the picture puzzle":this.explain||"向右滑动完成验证"},subBlockStyle(){const e=-(parseInt(this.setSize.imgHeight)+this.vSpace+1);return{width:Math.floor(47*parseInt(this.setSize.imgWidth)/340)+"px",height:this.setSize.imgHeight,top:e+"px",backgroundSize:this.setSize.imgWidth+" "+this.setSize.imgHeight}}},watch:{visible(e){e?(this.isNeedShow=!1,this.$nextTick(()=>{this.handleResize(),this.refresh()})):this.isNeedShow=!1}},mounted(){this.initUuid(),this.handleResize(),window.addEventListener("resize",this.handleResize),window.addEventListener("touchmove",this.move,{passive:!1}),window.addEventListener("mousemove",this.move),window.addEventListener("touchend",this.end),window.addEventListener("mouseup",this.end)},beforeUnmount(){window.removeEventListener("resize",this.handleResize),window.removeEventListener("touchmove",this.move,{passive:!1}),window.removeEventListener("mousemove",this.move),window.removeEventListener("touchend",this.end),window.removeEventListener("mouseup",this.end)},methods:{handleImageLoaded(){this.loading=!1},initUuid(){localStorage.getItem("slider")||localStorage.setItem("slider","slider-"+((e=21)=>{let t="",o=crypto.getRandomValues(new Uint8Array(e|=0));for(;e--;)t+="useandom-26T198340PX75pxJACKVERYMINDBUSHWOLF_GQZbfghjklqvwyzrict"[63&o[e]];return t})())},aesEncrypt(e,t="XwKsGlMcdPMEhR1B"){const o=or.enc.Utf8.parse(t),n=or.enc.Utf8.parse(e);return or.AES.encrypt(n,o,{mode:or.mode.ECB,padding:or.pad.Pkcs7}).toString()},handleResize(){const e=window.innerWidth;let t=340;e<400?(t=e-60,this.currentBarHeight=44):(t=340,this.currentBarHeight=40),this.setSize.imgWidth=t+"px",this.setSize.imgHeight=t/2+"px",this.leftBarWidth=this.currentBarHeight+"px"},start(e){if(this.isEnd)return;const t=e||window.event,o=t.touches?t.touches[0].pageX:t.clientX,n=this.$refs.barArea;this.startLeft=Math.floor(o-n.getBoundingClientRect().left),this.startMoveTime=Date.now(),this.status=!0,this.transitionLeft="",this.transitionWidth="",this.moveBlockBackgroundColor="#1890ff",this.iconColor="#fff"},move(e){if(!this.status||this.isEnd)return;const t=e||window.event,o=t.touches?t.touches[0].pageX:t.clientX,n=this.$refs.barArea;let a=o-n.getBoundingClientRect().left-this.startLeft;const i=n.offsetWidth-this.currentBarHeight;a<=0&&(a=0),a>=i&&(a=i),this.moveBlockLeft=a+"px",this.leftBarWidth=a+this.currentBarHeight+"px",t.cancelable&&t.preventDefault()},end(){if(!this.status||this.isEnd)return;this.status=!1,this.endMoveTime=Date.now();let e=parseInt(this.moveBlockLeft.replace("px",""));e=310*e/parseInt(this.setSize.imgWidth);const t={pointJson:this.secretKey?this.aesEncrypt(JSON.stringify({x:e,y:5}),this.secretKey):JSON.stringify({x:e,y:5}),uuid:this.backToken};z(t).then(e=>{0===e.data.code?this.handleSuccess(e):this.handleError()}).catch(()=>this.handleError())},handleSuccess(e){this.endMoveTime,this.startMoveTime,this.moveBlockBackgroundColor="#52c41a",this.iconClass="icon-check",this.isEnd=!0,this.passFlag=!0,this.tipWords=`${((this.endMoveTime-this.startMoveTime)/1e3).toFixed(2)}s `+(this.isEn?"verified successfully":"验证成功"),setTimeout(()=>{this.closeBox(),this.$emit("success",{uuid:e.data.data.uuid,code:e.data.data.code})},800)},handleError(){this.moveBlockBackgroundColor="#ff4d4f",this.iconClass="icon-close",this.passFlag=!1,this.tipWords=this.isEn?"verification failed":"验证失败",setTimeout(()=>{this.refresh(),this.tipWords=""},1e3)},refresh(){this.loading=!0,this.transitionLeft="left 0.3s",this.transitionWidth="width 0.3s",this.moveBlockLeft="0px",this.leftBarWidth=this.currentBarHeight+"px",this.moveBlockBackgroundColor="#fff",this.iconColor="#4b4b4b",this.iconClass="icon-right",this.isEnd=!1,this.tipWords="",this.getPicture()},getPicture(){this.loading=!0,H({clientUid:localStorage.getItem("slider"),ts:Date.now()}).then(e=>{if(0===e.data.code){if(!1===e.data.data.validate)return this.loading=!1,this.startMoveTime=Date.now(),this.endMoveTime=Date.now(),void this.handleSuccess(e);this.isNeedShow=!0,this.backImgBase=e.data.data.originalImageBase64,this.blockBackImgBase=e.data.data.jigsawImageBase64,this.backToken=e.data.data.uuid,this.secretKey=e.data.data.secretKey}else this.loading=!1,this.isNeedShow=!0}).catch(()=>{this.loading=!1,this.isNeedShow=!0})},closeBox(){this.$emit("update:visible",!1)}}},ar={key:0,class:"verify-box-top"},ir={class:"verify-title"},rr={class:"captcha-wrapper",style:{position:"relative"}},sr=["src"],lr={key:0,class:"verify-loading"},cr={class:"loading-text"},ur={class:"verify-msg"},dr=["textContent"],hr=["src"];const pr=/* @__PURE__ */Wo(nr,[["render",function(e,t,o,n,a,i){return m((l(),s("div",{class:c("pop"===o.mode?"captcha-mask":"captcha-relative-wrapper")},[u("div",{class:c("pop"===o.mode?"verify-box":""),style:w({width:"pop"===o.mode?a.setSize.imgWidth+"40px":"100%","max-width":"100%"})},["pop"===o.mode?(l(),s("div",ar,[u("span",ir,v(i.isEn?"please finish the security verification":"请完成安全验证"),1),u("span",{class:"verify-box-close",onClick:t[0]||(t[0]=(...e)=>i.closeBox&&i.closeBox(...e))}," × ")])):f("",!0),u("div",{class:"verify-box-bottom",style:w({padding:"pop"===o.mode?"15px":"0"})},[u("div",rr,["blockPuzzle"===o.captchaType?(l(),s("div",{key:0,class:"verify-img-out",style:w({height:parseInt(a.setSize.imgHeight)+o.vSpace+"px"})},[u("div",{class:"verify-img-panel",style:w({width:a.setSize.imgWidth,height:a.setSize.imgHeight})},[u("img",{src:a.backImgBase?"data:image/png;base64,"+a.backImgBase:o.defaultImg,alt:"captcha",class:"main-img",onLoad:t[1]||(t[1]=(...e)=>i.handleImageLoaded&&i.handleImageLoaded(...e))},null,40,sr),a.loading?(l(),s("div",lr,[t[5]||(t[5]=u("div",{class:"loading-icon"},null,-1)),u("p",cr,v(i.isEn?"Loading...":"加载中..."),1)])):f("",!0),m(u("div",{class:"verify-refresh",onClick:t[2]||(t[2]=(...e)=>i.refresh&&i.refresh(...e))},[...t[6]||(t[6]=[u("svg",{t:"1767753956986",class:"icon",viewBox:"0 0 1024 1024",version:"1.1",xmlns:"http://www.w3.org/2000/svg","p-id":"2523",width:"16",height:"16",fill:"#fff"},[u("path",{d:"M894.481158 505.727133c0 49.589418-9.711176 97.705276-28.867468 143.007041-18.501376 43.74634-44.98454 83.031065-78.712713 116.759237-33.728172 33.728172-73.012897 60.211337-116.759237 78.712713-45.311998 19.156292-93.417623 28.877701-143.007041 28.877701s-97.695043-9.721409-142.996808-28.877701c-43.756573-18.501376-83.031065-44.98454-116.76947-78.712713-33.728172-33.728172-60.211337-73.012897-78.712713-116.759237-19.156292-45.301765-28.867468-93.417623-28.867468-143.007041 0-49.579185 9.711176-97.695043 28.867468-142.996808 18.501376-43.74634 44.98454-83.031065 78.712713-116.759237 33.738405-33.728172 73.012897-60.211337 116.76947-78.712713 45.301765-19.166525 93.40739-28.877701 142.996808-28.877701 52.925397 0 104.008842 11.010775 151.827941 32.745798 46.192042 20.977777 86.909395 50.79692 121.016191 88.608084 4.389984 4.860704 8.646937 9.854439 12.781094 14.97097l0-136.263453c0-11.307533 9.168824-20.466124 20.466124-20.466124 11.307533 0 20.466124 9.15859 20.466124 20.466124l0 183.64253c0 5.433756-2.148943 10.632151-5.986341 14.46955-3.847631 3.837398-9.046027 5.996574-14.479783 5.996574l-183.64253-0.020466c-11.307533 0-20.466124-9.168824-20.466124-20.466124 0-11.307533 9.168824-20.466124 20.466124-20.466124l132.293025 0.020466c-3.960195-4.952802-8.063653-9.782807-12.289907-14.479783-30.320563-33.605376-66.514903-60.098773-107.549481-78.753645-42.467207-19.289322-87.850837-29.072129-134.902456-29.072129-87.195921 0-169.172981 33.9533-230.816946 95.597265-61.654198 61.654198-95.597265 143.621025-95.597265 230.816946s33.943067 169.172981 95.597265 230.816946c61.643965 61.654198 143.621025 95.607498 230.816946 95.607498s169.172981-33.9533 230.816946-95.607498c61.654198-61.643965 95.597265-143.621025 95.597265-230.816946 0-11.2973 9.168824-20.466124 20.466124-20.466124C885.322567 485.261009 894.481158 494.429833 894.481158 505.727133z","p-id":"2524"})],-1)])],512),[[k,a.showRefresh]]),h(Q,{name:"tips-fade"},{default:x(()=>[a.tipWords?(l(),s("div",{key:0,class:c(["verify-tips",a.passFlag?"suc-bg":"err-bg"])},v(a.tipWords),3)):f("",!0)]),_:1})],4)],4)):f("",!0),u("div",{class:"verify-bar-area",ref:"barArea",style:w({width:a.setSize.imgWidth,height:a.currentBarHeight+"px",lineHeight:a.currentBarHeight+"px"})},[u("span",ur,v(i.barExplain),1),u("div",{class:"verify-left-bar",style:w({width:a.leftBarWidth,height:a.currentBarHeight+"px",borderColor:a.leftBarBorderColor,transition:a.transitionWidth})},[u("span",{class:"verify-msg",textContent:v(a.finishText)},null,8,dr),u("div",{class:"verify-move-block",onMousedown:t[3]||(t[3]=(...e)=>i.start&&i.start(...e)),onTouchstart:t[4]||(t[4]=y((...e)=>i.start&&i.start(...e),["prevent"])),style:w({width:a.currentBarHeight+"px",height:a.currentBarHeight-2+"px",backgroundColor:a.moveBlockBackgroundColor,left:a.moveBlockLeft,transition:a.transitionLeft})},[u("i",{class:c(["verify-icon iconfont",a.iconClass]),style:w({color:a.iconColor})},null,6),"blockPuzzle"===o.captchaType?(l(),s("div",{key:0,class:"verify-sub-block",style:w(i.subBlockStyle)},[a.blockBackImgBase?(l(),s("img",{key:0,src:"data:image/png;base64,"+a.blockBackImgBase,class:"sub-img"},null,8,hr)):f("",!0)],4)):f("",!0)],36)],4)],4)])],4)],6)],2)),[[k,i.showBox]])}],["__scopeId","data-v-f67b3b9b"]]),fr=/* @__PURE__ */Object.freeze(/* @__PURE__ */Object.defineProperty({__proto__:null,default:pr},Symbol.toStringTag,{value:"Module"})),mr={name:"CodeInput",components:{GoogleInput:ta,JcFloatInput:la,JcVerifySlide:pr},props:{modelValue:String,placeholder:String,ready:{type:Boolean,default:!1},showIcon:{type:Boolean,default:!1},disabled:{type:Boolean,default:!1},duration:{type:Number,default:60},formTypeColor:{type:String,default:"1"},isEn:Boolean},emits:["update:modelValue","send"],data:()=>({isCounting:!1,countdown:0,timer:null,captchaVisible:!1}),computed:{statusClass(){return{1:"org",2:"lightBlue",4:"darkOrange"}[this.formTypeColor]||"darkBlue"},btnText(){return this.isCounting?`${this.countdown}s`:this.isEn?"Send Code":"发送验证码"}},methods:{handleSend(){!this.ready||this.isCounting||this.disabled||(this.captchaVisible=!0)},handleCaptchaSuccess(e){this.$emit("send",{captchaData:e,startTimer:this.startTimer})},startTimer(){this.isCounting||(this.isCounting=!0,this.countdown=this.duration,this.timer=setInterval(()=>{this.countdown--,this.countdown<=0&&this.stopTimer()},1e3))},stopTimer(){this.timer&&(clearInterval(this.timer),this.timer=null),this.isCounting=!1,this.countdown=0}},beforeUnmount(){this.stopTimer()}},gr={class:"code-input-container"};const Ar=/* @__PURE__ */Wo(mr,[["render",function(e,t,o,n,a,i){const r=R("JcVerifySlide");return l(),s("div",gr,[(l(),d(L(o.showIcon?"JcFloatInput":"GoogleInput"),{"model-value":o.modelValue,"onUpdate:modelValue":t[1]||(t[1]=t=>e.$emit("update:modelValue",t)),label:o.placeholder,placeholder:o.placeholder,class:"verify-code-input",autocomplete:"off",maxlength:"6"},P({suffix:x(()=>[u("a",{class:c(["send-code-btn",[i.statusClass,{"is-disabled":o.disabled||a.isCounting||!o.ready}]]),onClick:t[0]||(t[0]=(...e)=>i.handleSend&&i.handleSend(...e))},[u("span",{class:c(a.isCounting||!o.ready?"disabled-color":"obtain-color")},v(i.btnText),3)],2)]),_:2},[o.showIcon?{name:"prefix",fn:x(()=>[t[3]||(t[3]=u("i",{class:"icon-verify"},null,-1))]),key:"0"}:void 0]),1032,["model-value","label","placeholder"])),h(r,{visible:a.captchaVisible,"onUpdate:visible":t[2]||(t[2]=e=>a.captchaVisible=e),"is-en":o.isEn,onSuccess:i.handleCaptchaSuccess},null,8,["visible","is-en","onSuccess"])])}],["__scopeId","data-v-1b364444"]]),vr=/* @__PURE__ */Object.freeze(/* @__PURE__ */Object.defineProperty({__proto__:null,default:Ar},Symbol.toStringTag,{value:"Module"})),yr={class:"global-modal-header-custom"},Cr={class:"global-modal-body-custom"},wr={class:"global-modal-footer-custom"},Er=/* @__PURE__ */a({__name:"GlobalModal",setup(t){const n=e(),a=e(!1),i=e({city:"",company:"",email:"",phone:"",name:"",agreement:!1}),r=S({city:[{required:!0,message:"请输入所在地城市",trigger:"blur"}],company:[{required:!0,message:"请输入公司名称",trigger:"blur"}],email:[{required:!0,message:"请输入邮箱",trigger:"blur"},{type:"email",message:"请输入有效的邮箱地址",trigger:"blur"}],agreement:[{validator:(e,t,o)=>{t?o():o(new Error("请同意隐私政策"))},trigger:"change"}]}),s=()=>{a.value=!1,q.emit(K.Close,void 0),n.value?.resetFields()},c=async()=>{n.value&&await n.value.validate(e=>{e&&(q.emit(K.Submit,i.value),s(),i.value={city:"",company:"",email:"",phone:"",name:"",agreement:!1})})},p=e=>{a.value=!0};return o(()=>{q.on(K.Open,p)}),N(()=>{q.off(K.Open,p)}),(e,t)=>(l(),d(b(Ve),{modelValue:a.value,"onUpdate:modelValue":t[7]||(t[7]=e=>a.value=e),"before-close":s,"show-close":!1,"close-on-click-modal":!0,width:500,class:"global-modal-custom"},{header:x(()=>[u("div",yr,[t[9]||(t[9]=u("h2",null,"即刻链接全球货代",-1)),h(b(He),{link:"",onClick:s,class:"close-button-custom","aria-label":"Close"},{default:x(()=>[...t[8]||(t[8]=[u("span",{style:{"font-size":"2rem"}},"×",-1)])]),_:1})])]),footer:x(()=>[u("div",wr,[h(b(He),{type:"primary",class:"submit-button-custom",onClick:c},{default:x(()=>[...t[11]||(t[11]=[B(" 加入会员 ",-1)])]),_:1})])]),default:x(()=>[u("div",Cr,[h(b(De),{model:i.value,rules:r,ref_key:"formRef",ref:n,"label-position":"top",onSubmit:t[6]||(t[6]=y(()=>{},["prevent"]))},{default:x(()=>[h(b(Me),{gutter:20},{default:x(()=>[h(b(Oe),{span:12},{default:x(()=>[h(b(Je),{label:"所在地(城市)",prop:"city"},{default:x(()=>[h(b(Ue),{modelValue:i.value.city,"onUpdate:modelValue":t[0]||(t[0]=e=>i.value.city=e),placeholder:"请输入城市"},null,8,["modelValue"])]),_:1})]),_:1}),h(b(Oe),{span:12},{default:x(()=>[h(b(Je),{label:"公司名称",prop:"company"},{default:x(()=>[h(b(Ue),{modelValue:i.value.company,"onUpdate:modelValue":t[1]||(t[1]=e=>i.value.company=e),placeholder:"请输入公司名称"},null,8,["modelValue"])]),_:1})]),_:1})]),_:1}),h(b(Me),{gutter:20},{default:x(()=>[h(b(Oe),{span:12},{default:x(()=>[h(b(Je),{label:"邮箱",prop:"email"},{default:x(()=>[h(b(Ue),{modelValue:i.value.email,"onUpdate:modelValue":t[2]||(t[2]=e=>i.value.email=e),placeholder:"请输入邮箱"},null,8,["modelValue"])]),_:1})]),_:1}),h(b(Oe),{span:12},{default:x(()=>[h(b(Je),{label:"电话",prop:"phone"},{default:x(()=>[h(b(Ue),{modelValue:i.value.phone,"onUpdate:modelValue":t[3]||(t[3]=e=>i.value.phone=e),placeholder:"请输入电话"},null,8,["modelValue"])]),_:1})]),_:1})]),_:1}),h(b(Me),null,{default:x(()=>[h(b(Oe),{span:24},{default:x(()=>[h(b(Je),{label:"姓名",prop:"name"},{default:x(()=>[h(b(Ue),{modelValue:i.value.name,"onUpdate:modelValue":t[4]||(t[4]=e=>i.value.name=e),placeholder:"请输入您的全名"},null,8,["modelValue"])]),_:1})]),_:1})]),_:1}),h(b(Je),{prop:"agreement",class:"agreement-item"},{default:x(()=>[h(b(je),{modelValue:i.value.agreement,"onUpdate:modelValue":t[5]||(t[5]=e=>i.value.agreement=e),label:"我同意"},null,8,["modelValue"]),t[10]||(t[10]=u("a",{href:"#",class:"privacy-link"},"隐私政策",-1))]),_:1})]),_:1},8,["model","rules"])])]),_:1},8,["modelValue"]))}}),br=/* @__PURE__ */Object.freeze(/* @__PURE__ */Object.defineProperty({__proto__:null,default:Er},Symbol.toStringTag,{value:"Module"})),Ir={class:"jc:flex jc:items-center jc:justify-between"},Br={key:0,class:"jc:ml-2 jc:text-xs jc:text-gray-400"},kr={class:"jc:p-4 jc:text-sm jc:text-center jc:text-gray-500"},Sr={key:0},xr={key:1,class:"jc:flex jc:flex-wrap jc:justify-center jc:items-center"},Rr=/* @__PURE__ */Wo(/* @__PURE__ */a({__name:"index",props:{modelValue:{type:[String,Number,Array],default:void 0},isEn:{type:Boolean,default:!1},type:{type:String,required:!0},lineType:{type:String,default:"shipping"},placeholder:{type:String,default:"请输入关键字搜索"},multiple:{type:Boolean,default:!1},defaultOptions:{type:Array,default:()=>[]}},emits:["update:modelValue","change","apply"],setup(n,{emit:a}){const i=n,c=a;((e="")=>{t(()=>{if(e)return"en"===e||"en-US"===e;try{if("function"==typeof useCookie){const e=useCookie("jc-language")?.value;if(e)return/^en(-US)?$/.test(e)}}catch(t){}if("undefined"!=typeof document){const e=document.cookie||"";return/(^|;\s*)jc-language=en(-US)?(;|$)/.test(e)}try{if("function"==typeof useNuxtApp){const e=useNuxtApp();return/(^|;\s*)jc-language=en(-US)?(;|$)/.test(e?.ssrContext?.event?.node?.req?.headers?.cookie||"")}}catch(t){}return!1})})();const m=e(),y=t({get:()=>i.modelValue,set:e=>c("update:modelValue",e)}),C=e(!1),w=e([]),E=e(""),I=()=>{w.value=[...i.defaultOptions]};r(()=>i.defaultOptions,()=>{if(!C.value&&!E.value){const e=[...i.defaultOptions];w.value=e}},{immediate:!0,deep:!0});const k=wn(async e=>{try{const t={keyword:e,current:1,size:50};let o={};o="Carrier"===i.type?await O.carrier.search(t,i.lineType):"Line"===i.type?await O.line.search(t,i.lineType):await O.searchByName({...t,displayInfo:[i.type]});const n=o.records||[];if(i.defaultOptions.length>0){const e=i.defaultOptions.filter(e=>!n.some(t=>t.id===e.id));w.value=[...e,...n]}else w.value=n}catch(t){console.error("Search failed:",t)}finally{C.value=!1}},300),S=e=>{if(E.value=e,!e||!e.trim())return C.value=!1,void I();C.value=!0,k(e)},R=e=>{e||(I(),C.value=!1,E.value="",m.value?.blur())},T=()=>{I(),E.value="",c("change",null,null)},F=e=>{if(!e)return void c("change",e,null);let t;t=Array.isArray(e)?w.value.filter(t=>e.includes(t.id)):w.value.find(t=>t.id===e),c("change",e,t)},Q=()=>{E.value&&J({reportData:E.value,reportType:i.type.toLocaleLowerCase()}),c("apply",E.value),m.value?.blur()},L=async()=>{if(null===i.modelValue||void 0===i.modelValue||""===i.modelValue)return;const e=(Array.isArray(i.modelValue)?i.modelValue:[i.modelValue]).filter(e=>!w.value.some(t=>String(t.id)===String(e)));if(0!==e.length)try{let t=[];if("Carrier"===i.type){const o=await O.carrier.getByIds(e,i.lineType);t=Array.isArray(o)?o:o.records||[]}else if("Line"===i.type){const o=await O.line.getByIds(e,i.lineType);t=Array.isArray(o)?o:o.records||[]}if(t.length>0){const e=t.filter(e=>!w.value.some(t=>t.id===e.id));w.value.push(...e)}}catch(t){console.error("Init selected data failed:",t)}};return o(()=>{L()}),r(()=>i.modelValue,(e,t)=>{JSON.stringify(e)!==JSON.stringify(t)&&"undefined"!=typeof window&&L()}),(e,t)=>(l(),d(b(Pe),{ref_key:"selectRef",ref:m,modelValue:y.value,"onUpdate:modelValue":t[0]||(t[0]=e=>y.value=e),multiple:n.multiple,filterable:"",remote:"","reserve-keyword":"",clearable:"","value-key":"id",placeholder:n.placeholder,"remote-method":S,loading:C.value,class:"jc:w-full jc-carrier-search-comp",teleported:!1,onChange:F,onVisibleChange:R,onClear:T},P({empty:x(()=>[u("div",kr,[C.value?(l(),s("div",Sr,"搜索中...")):(l(),s("div",xr,[t[2]||(t[2]=u("p",null,"暂无结果",-1)),h(b(ze),{type:"primary",underline:!1,class:"jc:text-xs",onClick:Q},{default:x(()=>[...t[1]||(t[1]=[B(" 申请补充数据 ",-1)])]),_:1})]))])]),default:x(()=>[(l(!0),s(g,null,A(w.value,t=>(l(),d(b(Ne),{key:t.id,label:t.display,value:t.id},{default:x(()=>[p(e.$slots,"option",{item:t},()=>[u("div",Ir,[u("span",null,v(t.display),1),t.code?(l(),s("span",Br,v(t.code),1)):f("",!0)])],!0)]),_:2},1032,["label","value"]))),128))]),_:2},[e.$slots.prefix?{name:"prefix",fn:x(()=>[p(e.$slots,"prefix",{},void 0,!0)]),key:"0"}:void 0]),1032,["modelValue","multiple","placeholder","loading"]))}}),[["__scopeId","data-v-b238d696"]]),Tr=/* @__PURE__ */Object.freeze(/* @__PURE__ */Object.defineProperty({__proto__:null,default:Rr},Symbol.toStringTag,{value:"Module"})),Fr={class:"wrapper-container"},Qr={key:0,class:"wrapper-prepend"},Lr={class:"wrapper-main"},Pr={class:"wrapper-label"},Nr={key:1,class:"wrapper-append"};const Ur=/* @__PURE__ */Wo({name:"JcFloatWrapper",props:{label:{type:String,default:""}},data:()=>({internalFocus:!1}),computed:{isHavePrepend(){return!!this.$slots.prefix},isHaveAppend(){return!!this.$slots.suffix}},methods:{handleFocusIn(){this.internalFocus=!0,this.$emit("focus")},handleFocusOut(){this.internalFocus=!1,this.$emit("blur")}}},[["render",function(e,t,o,n,a,i){return l(),s("div",{class:c(["jc-float-wrapper",{"is-focus":a.internalFocus,"is-have-prepend":i.isHavePrepend}]),onFocusin:t[0]||(t[0]=(...e)=>i.handleFocusIn&&i.handleFocusIn(...e)),onFocusout:t[1]||(t[1]=(...e)=>i.handleFocusOut&&i.handleFocusOut(...e))},[u("div",Fr,[i.isHavePrepend?(l(),s("div",Qr,[p(e.$slots,"prefix",{},void 0,!0)])):f("",!0),u("div",Lr,[p(e.$slots,"default",{},void 0,!0),u("p",Pr,v(o.label),1)]),i.isHaveAppend?(l(),s("div",Nr,[p(e.$slots,"suffix",{},void 0,!0)])):f("",!0)])],34)}],["__scopeId","data-v-f392be75"]]),Vr=/* @__PURE__ */Object.freeze(/* @__PURE__ */Object.defineProperty({__proto__:null,default:Ur},Symbol.toStringTag,{value:"Module"}));async function Dr(e,t,o,n=!0){if(!t||""===t.trim())return o(new Error(n?"Email address is required":"请输入您的邮箱"));if(!/^[a-zA-Z0-9._%+-]+@[a-zA-Z0-9.-]+\.[a-zA-Z]{2,}$/.test(t))return o(new Error(n?"Please enter a valid email address":"请输入有效的邮箱地址"));if(/[\u4e00-\u9fa5]+/.test(t))return o(new Error(n?"Please enter a valid email address":"请输入有效的邮箱地址"));if(/@(qq|vip.qq).com$/i.test(t))return o(new Error(n?"QQ email is not supported, please change other work email":"不支持QQ邮箱,请您更换其他工作邮箱"));try{const{data:e}=await G({target:t});if(console.log("🍉 ~ constant.ts:67 ~ validateUserEmail ~ data:",e),e.data)return o(new Error(n?"It's already occupied, please re-enter.":"已被占用,请重新输入"));o()}catch(a){o(new Error(n?"Validation failed, please re-enter.":"校验失败,请重新输入"))}}function Mr(e,t,o,n=!0,a=!0){const i=/^[a-zA-Z\u4e00-\u9fa5\s.·•]+$/,r=/^[a-zA-Z\s.·•]+$/;if(!t){return o(new Error(a?n?"please enter your Chinese name":"请输入您的中文姓名":n?"Please enter your English name":"请输入您的英文姓名"))}if(a){if(t.length>50||!i.test(t))return o(new Error(n?"Only Chinese and English characters and symbols can be entered, with a maximum of 50 words.":"仅能输入中英文字符及符号,最多50个字"))}else if(t.length>50||!r.test(t))return o(new Error(n?"Only English characters and symbols can be entered, up to 50 words.":"仅能输入英文字符及符号,最多50个字"));o()}function Or(e,t,o,n=!0){const a={empty:n?"The password cannot be empty. Please enter it":"密码不能为空,请重新输入",length:n?"The password must be at 6-20 characters only":"密码为6-20位字符",invalidChars:n?"6-20 characters include letters, numbers and symbols":"请输入6-20位字符,包含字母、数字和符号",complexity:n?"6-20 characters include letters, numbers and symbols":"请输入6-20位字符,包含字母、数字和符号"};if(null==t||""===t)return o(new Error(a.empty));if(t.length<6||t.length>20)return o(new Error(a.length));if(!/^[a-zA-Z0-9+.()&\\\-*/,#'":!?;%$`。()!@#¥%……&“”‘’:?》《,^——_\s\u3000\u0020\u00A0\n\r【】{}[\]|;~·]*$/.test(t))return o(new Error(a.invalidChars));const i=/^[a-zA-Z]*$/.test(t),r=/^[0-9]*$/.test(t),s=/^[+.()&\\\-*/,#'":!?;%$`。()!@#¥%……&“”‘’:?》《,^——_\s\u3000\u0020\u00A0\n\r【】{}[\]|;~·]*$/.test(t);if(i||r||s)return o(new Error(a.complexity));o()}async function Jr(e,t,o,n=!0){const a={empty:n?"Please enter your cell phone number":"请输入手机号",minLen:n?"please enter at least 2 characters.":"请输入至少 2 个字符.",invalid:n?"Invalid mobile address":"手机号格式错误",occupied:n?"It's already occupied, please re- enter.":"已被占用,请重新输入"};if(!t)return o(new Error(a.empty));if(!/^[0-9]*$/.test(t))return o(new Error(a.invalid));if(t.length<2)return o(new Error(a.minLen));try{const e=await G({target:t});if(console.log("🍉 ~ constant.ts:288 ~ validateUserMobilefive ~ res:",e),e&&e.data.data)return o(new Error(a.occupied));o()}catch(i){o(new Error(a.occupied))}}async function jr(e,t,o,n=!0,a){const i=function(e){return e?e.replace(/^\s+/g,"").replace(/\s+$/g,"").replace(/\s{2,}/g," "):""}(t);console.log("🍉 ~ constant.ts:274 ~ validateCompanyName ~ nameValue:",i);const r=1==a.countryId;if(!i)return!r||"DDC"!==a.appId&&"JHB"!==a.appId?o(new Error(n?"please enter the full company name":"请输入公司名称")):o();if(i.length<2)return o(new Error(n?"please enter at least 2 characters.":"请输入至少 2 个字符."));if(i.length>200)return o(new Error(n?"please enter less than 200 characters.":"请输入少于 200 个字符."));if(!r){if(/[\u4e00-\u9fa5]/.test(i))return o(new Error(n?"Do not include Chinese characters in company name":"注册公司名不能有中文"));if(!/^[a-zA-Z0-9+.()&\\\-=*/,#'":!?;%$`@^——_\s]*$/.test(i))return o(new Error(n?"Wrong format for company name":"注册公司名格式错误"))}if(a.countryId&&a.cityId)try{const e={countryId:a.countryId,cityId:a.cityId,[r?"compNameCn":"compNameEn"]:i},t=await W(e);console.log("🍉 ~ constant.ts:347 ~ validateCompanyName ~ res:",t),t.data.data.result?"JCPAY"===a.appId?o(new Error(n?"The company already exists, please contact customer service":"公司名称已存在,请联系客服")):(r?a.companyResistCn=!0:a.companyResistEn=!0,a.resistCompanyInfo=t.data.data,o()):(r?a.companyResistCn=!1:a.companyResistEn=!1,o())}catch(s){const e=s?.toString().split(":")[1]||"API Error";o(new Error(e))}else o(new Error(n?"Please select a Country/Region":"请选择国家/地区"))}function Hr(e,t,o,n=!0){return t?/^\d{4}$/.test(t)?void o():o(new Error(n?"Verification code must be 4 digits":"验证码必须为4位数字")):o(new Error(n?"Please enter the verification code":"请输入验证码"))}function zr(e="_blank"){const t=document.createElement("a");t.href="https://passport.jctrans.com/agreement",t.target=e;const o=new MouseEvent("click",{bubbles:!0,cancelable:!0,view:window});t.dispatchEvent(o)}function qr(e="_blank"){const t=document.createElement("a");t.href="https://passport.jctrans.com/privacyPolicy",t.target=e;const o=new MouseEvent("click",{bubbles:!0,cancelable:!0,view:window});t.dispatchEvent(o)}const Kr={class:"jc:text-xs jc:flex jc:mb-3 jc:-mt-3"},Gr={style:{color:"#f80"},class:"jc:text-xs"},Wr=/* @__PURE__ */a({__name:"ApplyJoinBtn",props:{isEn:{type:Boolean,default:!1}},emits:["apply-join"],setup(e,{emit:o}){const n=e,a=o,i=t(()=>n.isEn?"The company already exists. Would you like to apply to ":"该公司已存在。您可申请加入。"),r=t(()=>n.isEn?"join in >>":"点击申请加入 >>"),c=()=>{a("apply-join")};return(e,t)=>(l(),s("div",Kr,[u("p",Gr,[t[0]||(t[0]=u("i",{class:"el-icon-warning"},null,-1)),B(" "+v(i.value),1)]),u("p",{style:{color:"#3264ff",cursor:"pointer"},onClick:c},v(r.value),1)]))}});function Yr(e){for(var t=1;t<arguments.length;t++){var o=arguments[t];for(var n in o)e[n]=o[n]}return e}var Zr=function e(t,o){function n(e,n,a){if("undefined"!=typeof document){"number"==typeof(a=Yr({},o,a)).expires&&(a.expires=new Date(Date.now()+864e5*a.expires)),a.expires&&(a.expires=a.expires.toUTCString()),e=encodeURIComponent(e).replace(/%(2[346B]|5E|60|7C)/g,decodeURIComponent).replace(/[()]/g,escape);var i="";for(var r in a)a[r]&&(i+="; "+r,!0!==a[r]&&(i+="="+a[r].split(";")[0]));return document.cookie=e+"="+t.write(n,e)+i}}return Object.create({set:n,get:function(e){if("undefined"!=typeof document&&(!arguments.length||e)){for(var o=document.cookie?document.cookie.split("; "):[],n={},a=0;a<o.length;a++){var i=o[a].split("="),r=i.slice(1).join("=");try{var s=decodeURIComponent(i[0]);if(n[s]=t.read(r,s),e===s)break}catch(l){}}return e?n[e]:n}},remove:function(e,t){n(e,"",Yr({},t,{expires:-1}))},withAttributes:function(t){return e(this.converter,Yr({},this.attributes,t))},withConverter:function(t){return e(Yr({},this.converter,t),this.attributes)}},{attributes:{value:Object.freeze(o)},converter:{value:Object.freeze(t)}})}({read:function(e){return'"'===e[0]&&(e=e.slice(1,-1)),e.replace(/(%[\dA-F]{2})+/gi,decodeURIComponent)},write:function(e){return encodeURIComponent(e).replace(/%(2[346BF]|3[AC-F]|40|5[BDE]|60|7[BCD])/g,decodeURIComponent)}},{path:"/"});const Xr={name:"RegisterForm",components:{ElDialog:Ve,ElForm:De,ElFormItem:Je,ElInput:Ue,ElButton:He,ElCheckbox:je,ElSelect:Pe,ElOption:Ne,ElRadioGroup:Ke,ElRadioButton:qe,JcFloatInput:la,CodeInput:Ar,JcFloatWrapper:Ur,JcSearch:Yo,ChineseCompanySearch:Wn,GoogleInput:ta,ApplyJoinBtn:Wr},props:{isEn:Boolean},emits:["to-login","register","need-complete"],computed:{isAgree(){return this.form.agree},countryId(){return this.form.city?.raw?.country?.id},cityId(){return this.form.city?.id},currentCountryIsChina(){const e=this.countryId||this.resistCompanyInfo?.countryId;return[1,75,71,100].includes(Number(e))},currentCompanyLabel(){return this.isEn?this.currentCountryIsChina?"Company Name in Chinese":"Company Name in English":this.currentCountryIsChina?"公司中文名称":"公司英文名称"}},data(){return{appId:"ERA",codeReady:!1,companyResistEn:!1,companyResistCn:!1,verifyData:{},form:{city:"",cityId:"",companyName:"",countryId:"",email:"",phone:"",code:"",password:"",sector:"Logistics",agree:!1,useKq:!1,kqCode:"",kqInfo:null,areaCode:"+86",nameCn:"",nameEn:""},sectors:[{cn:"货代",en:"Freight Forwarder",value:"Logistics"},{cn:"货主",en:"Trader",value:"Trade"},{cn:"衍生产品供应商",en:"Vendor",value:"Service"}],rules:{city:[{required:!0,message:this.isEn?"Please select a city":"请选择所在地",trigger:["change","blur"]}],companyName:[{required:!0,validator:(e,t,o)=>jr(0,t,o,this.isEn,this),trigger:"blur"}],nameCn:[{required:!0,validator:(e,t,o)=>Mr(0,t,o,this.isEn,!0),trigger:"blur"}],nameEn:[{required:!0,validator:(e,t,o)=>Mr(0,t,o,this.isEn,!1),trigger:"blur"}],email:[{required:!0,validator:(e,t,o)=>Dr(0,t,o,this.isEn),trigger:"blur"}],phone:[{required:!0,validator:(e,t,o)=>Jr(0,t,o,this.isEn),trigger:"blur"}],code:[{required:!0,validator:(e,t,o)=>Hr(0,t,o,this.isEn),trigger:"blur"}],password:[{required:!0,validator:(e,t,o)=>Or(0,t,o,this.isEn),trigger:"blur"}],agree:[{validator:(e,t,o)=>t?o():o(new Error),trigger:"change"}]},isCounting:!1,areaCodeData:[],mobileUid:"",emailUid:"",hasResistCompany:!1,resistCompanyInfo:null,loading:!1}},mounted(){this.getAreaCodeData(),this.findDict(),this.inviteJoinGetComp()},methods:{go2Agreement:zr,getAuthSessionItems:Y,go2Policy:qr,async inviteJoinGetComp(){const e=Y().compKey;if(!e)return;const{data:t}=await inviteJoinGetComp({key:e});this.hasResistCompany=!0,this.resistCompanyInfo=t.data},findDict(){ie({dictType:"cmc_company_industry_sector"}).then(e=>{const t=[{cn:"货代",en:"Freight Forwarder",value:"Logistics"},{cn:"货主",en:"Trader",value:"Trade"},{cn:"衍生产品供应商",en:"Vendor",value:"Service"}];this.sectors=e.data.data.records.map(e=>({...e,...t.find(t=>t.value===e.dictValue)}))}).catch(e=>{})},async getAreaCodeData(){const e=await ae();this.areaCodeData=e.data.data.records},handleSelectCity(e){this.form.cityId=e.id,this.form.countryId=e.raw?.country?.id,this.$nextTick(()=>{this.form.companyName&&this.$refs.registerFormRef.validateField("companyName"),this.$refs.registerFormRef.validateField("city")})},validateField(e){this.$refs.registerFormRef&&this.$refs.registerFormRef.validateField(e,t=>{"email"!==e&&"phone"!==e||(this.codeReady=t)})},handleGetCode({captchaData:e,startTimer:t}){console.log("🍉 ~ RegisterForm.vue:586 ~ captchaData:",e),this.verifyData=e;const o={target:this.form.email||this.form.phone,uuid:e.uuid,code:e.code};let n=ne,a=this.isEn?"A verification code will be sent to your email and it will be expired after 5 minutes. Please do not share your verification code with anyone.":"验证码将会发送到您的邮箱,5分钟后失效。请不要与任何人分享您的验证码。";this.currentCountryIsChina&&(n=re,a=this.isEn?"A verification code will be sent to your phone and it will be expired after 5 minutes. Please do not share your verification code with anyone.":"验证码将会发送到您的手机,5分钟后失效。请不要与任何人分享您的验证码。"),n(o).then(e=>{const o=e.data.data?.verifyCode||e.data.verifyCode;0===e.data.code&&o&&(this.currentCountryIsChina?this.mobileUid=o:this.emailUid=o,t(),Le.success(a))}).catch(e=>{console.error(e)}),console.log("发送注册验证码")},handleRegister(){this.$refs.registerFormRef.validate(e=>{if(!e)return;const t=this.getAuthSessionItems();let o={appId:this.appId,fromSys:this.appId,passwd:tr.MD5(this.form.password).toString(),clickSource:t.clickSource||"",activityCode:t.activityCode||"",referenceUserId:t.referenceUserId||"",inviterInfo:t.empNo||"",industrySector:this.form.sector,uuid:this.verifyData.uuid,code:this.verifyData.code,uniqueCode:t.uniqueCode||""};this.currentCountryIsChina?Object.assign(o,{type:"MOBILE",areaCode:this.form.areaCode,areaCodeCountryId:this.areaCodeData.find(e=>e.telCode===this.form.areaCode).id,account:oe(this.form.phone),verificationCodeVal:this.form.code,verificationCodeUuid:this.mobileUid||this.form.codeUuid}):Object.assign(o,{type:"EMAIL",account:oe(this.form.email),verificationCodeVal:this.form.code,verificationCodeUuid:this.emailUid||this.form.codeUuid}),console.log("🍉 ~ RegisterForm.vue:676 ~ submitData:",o),this.hasResistCompany?this.handleApplyJoinSubmit(o):this.handleNewCompanySubmit(o)})},async handleNewCompanySubmit(e){const t=this.getAuthSessionItems(),o={...this.form.kqInfo,...e,cityId:this.form.cityId,countryId:this.form.countryId,compNameCn:this.form.companyName,compNameEn:this.form.companyName,industrySector:this.form.sector};this.$emit("register",o),console.log("🍉 ~ RegisterForm.vue:698 ~ registerPayload:",o),this.loading=!0;try{const e=t.uniqueCode?ee:te,n=await e(o);this.handlePostRegister(n)}catch(n){this.loading=!1}},async handleApplyJoinSubmit(e){const t=this.getAuthSessionItems(),o={...e,compId:this.resistCompanyInfo.compId};this.form.nameCn&&(o.nameCn=this.form.nameCn),this.form.nameEn&&(o.nameEn=this.form.nameEn);["industrySector","compNameEn","compNameCn","countryId","cityId","inviterEmpNo","fromSys"].forEach(e=>delete o[e]),this.$emit("register",o),this.loading=!0;try{const e=t.uniqueCode?_:$,n=await e(o);this.handlePostRegister(n)}catch(n){this.loading=!1}},handlePostRegister(e){const t=this.getAuthSessionItems();if(console.log("🍉 ~ RegisterForm.vue:749 ~ res.data:",e.data),0===e.data.code)if(e.data.data.redirect){if(Z(e.data.data.result),e.data.data.result&&e.data.data.result.improveComp)return void this.$emit("need-complete",e.data.data.result.improveComp);try{Zr.set("tgc",e.data.data.tgc,{expires:30});const o=e.data.data.redirectPath||t.path||"/";X(),setTimeout(()=>{o.startsWith("http")&&(window.location.href=o)},100)}catch(o){}}else this.loading=!1,Le.success(this.isEn?"Registration successful, pending review":"注册成功,请等待审核");else this.loading=!1,Le.error(e.data.msg)}}},_r={class:"register-form-container"},$r={class:"register-title"},es={class:"resist-company-info-card"},ts={class:"card-header"},os={class:"title-group"},ns={class:"tip-text"},as={class:"company-content"},is={class:"company-name"},rs={class:"card-header"},ss={class:"title-group"},ls={class:"tip-text"},cs={class:"location-info"},us={class:"sector-section"},ds={class:"sector-label"},hs={class:"sector-group"},ps=["onClick"],fs={key:0,class:"icon-auth-checked"},ms={class:"agree-text"},gs={class:"bottom-tip"};const As=/* @__PURE__ */Wo(Xr,[["render",function(e,t,o,n,a,i){const r=R("JcSearch"),p=R("JcFloatWrapper"),m=R("el-form-item"),C=R("ChineseCompanySearch"),w=R("ApplyJoinBtn"),E=R("JcFloatInput"),b=R("el-option"),I=R("el-select"),k=R("google-input"),S=R("CodeInput"),T=R("el-checkbox"),F=R("el-button"),Q=R("el-form");return l(),s("div",_r,[u("div",$r,[u("p",null,v(o.isEn?"New User Registration":"新用户注册"),1)]),h(Q,{ref:"registerFormRef",model:a.form,rules:a.rules,class:"auth-form"},{default:x(()=>[a.hasResistCompany?(l(),s(g,{key:1},[u("div",es,[u("div",ts,[u("div",os,[u("span",ns,v(o.isEn?"Company name":"公司名称"),1)]),u("span",{class:"change-link",onClick:t[6]||(t[6]=e=>a.hasResistCompany=!1)},v(o.isEn?"Change":"修改"),1)]),u("div",as,[u("h4",is,v(o.isEn?a.resistCompanyInfo.compNameEn||a.resistCompanyInfo.compNameCn:a.resistCompanyInfo.compNameCn||a.resistCompanyInfo.compNameEn),1)]),u("div",rs,[u("div",ss,[u("span",ls,v(o.isEn?"Location(City)":"所在地(城市)"),1)])]),u("div",cs,v(o.isEn?a.resistCompanyInfo.countryNameEn:a.resistCompanyInfo.countryNameCn)+" / "+v(o.isEn?a.resistCompanyInfo.cityNameEn:a.resistCompanyInfo.cityNameCn),1)]),h(m,{prop:i.currentCountryIsChina?"nameCn":"nameEn",class:"name-input-item"},{default:x(()=>[h(E,{modelValue:a.form[i.currentCountryIsChina?"nameCn":"nameEn"],"onUpdate:modelValue":t[7]||(t[7]=e=>a.form[i.currentCountryIsChina?"nameCn":"nameEn"]=e),label:i.currentCountryIsChina?o.isEn?"Your Full Name in Chinese":"您的中文名称":o.isEn?"Your Full Name in English":"您的名称",placeholder:o.isEn?"Please enter your name to prove your identity":"请输入您的姓名,以证明您的身份"},{prefix:x(()=>[...t[22]||(t[22]=[u("i",{class:"icon-auth-user"},null,-1)])]),_:1},8,["modelValue","label","placeholder"])]),_:1},8,["prop"])],64)):(l(),s(g,{key:0},[h(m,{prop:"city"},{default:x(()=>[h(p,{label:o.isEn?"Location (City)":"所在地(城市)","has-value":!(!a.form.city||!a.form.city.id)},{default:x(()=>[h(r,{modelValue:a.form.city,"onUpdate:modelValue":t[0]||(t[0]=e=>a.form.city=e),class:"jc:my-0! search-city-item","show-search-icon":!1,style:{"--original-text-main":"#232324"},"search-type-list":["City"],onSelect:i.handleSelectCity},{prefix:x(()=>[...t[20]||(t[20]=[u("i",{class:"icon-auth-location"},null,-1)])]),_:1},8,["modelValue","onSelect"])]),_:1},8,["label","has-value"])]),_:1}),h(m,{prop:"companyName"},{default:x(()=>[h(p,{label:i.currentCompanyLabel},{default:x(()=>[h(C,{class:"jc:my-0! search-company-item","company-name":a.form.companyName,"onUpdate:companyName":t[1]||(t[1]=e=>a.form.companyName=e),useKq:a.form.useKq,"onUpdate:useKq":t[2]||(t[2]=e=>a.form.useKq=e),kqCode:a.form.kqCode,"onUpdate:kqCode":t[3]||(t[3]=e=>a.form.kqCode=e),kqInfo:a.form.kqInfo,"onUpdate:kqInfo":t[4]||(t[4]=e=>a.form.kqInfo=e),"country-id":a.form.city?.raw?.country?.id||null},{prefix:x(()=>[...t[21]||(t[21]=[u("i",{class:"icon-auth-company"},null,-1)])]),_:1},8,["company-name","useKq","kqCode","kqInfo","country-id"])]),_:1},8,["label"])]),_:1}),a.companyResistCn||a.companyResistEn?(l(),d(w,{key:0,onApplyJoin:t[5]||(t[5]=()=>a.hasResistCompany=!0)})):f("",!0)],64)),i.currentCountryIsChina?(l(),d(m,{key:2,class:"phone-form-item"},{default:x(()=>[(l(),d(m,{prop:"phone",ref:"phone",key:8,class:"tel-mobile","inline-message":!0},{default:x(()=>[h(k,{modelValue:a.form.phone,"onUpdate:modelValue":t[10]||(t[10]=e=>a.form.phone=e),placeholder:o.isEn?"Cell Phone Number":"手机号码",label:o.isEn?"Cell Phone Number":"手机号码",clearable:"",autocomplete:"off",onBlur:t[11]||(t[11]=e=>i.validateField("phone")),maxlength:"15",disabled:a.isCounting},{prefix:x(()=>[t[23]||(t[23]=u("i",{class:"icon-auth-phone"},null,-1)),h(m,{prop:"areaCode",class:"tel-areacode","inline-message":!0},{default:x(()=>[h(I,{modelValue:a.form.areaCode,"onUpdate:modelValue":t[8]||(t[8]=e=>a.form.areaCode=e),placeholder:o.isEn?"Code":"区号",onChange:t[9]||(t[9]=e=>i.validateField("areaCode")),disabled:a.isCounting,"popper-class":"jc-area-code-select-wrapper"},{default:x(()=>[(l(!0),s(g,null,A(a.areaCodeData,e=>(l(),d(b,{key:e.id,label:e.telCode,value:e.telCode},null,8,["label","value"]))),128)),h(b,{label:"+86",value:"+86"})]),_:1},8,["modelValue","placeholder","disabled"])]),_:1})]),_:1},8,["modelValue","placeholder","label","disabled"])]),_:1}))]),_:1})):f("",!0),i.currentCountryIsChina?f("",!0):(l(),d(m,{key:3,prop:"email",class:"email-form-item"},{default:x(()=>[h(E,{modelValue:a.form.email,"onUpdate:modelValue":t[12]||(t[12]=e=>a.form.email=e),label:o.isEn?"Business Email Address":"企业邮箱",placeholder:o.isEn?"Business Email Address, QQ Mail is not available":"请输入您的企业邮箱,暂不支持QQ邮箱",onBlur:t[13]||(t[13]=e=>i.validateField("email"))},{prefix:x(()=>[...t[24]||(t[24]=[u("i",{class:"icon-auth-email"},null,-1)])]),_:1},8,["modelValue","label","placeholder"])]),_:1})),h(m,{prop:"code"},{default:x(()=>[h(S,{modelValue:a.form.code,"onUpdate:modelValue":t[14]||(t[14]=e=>a.form.code=e),placeholder:o.isEn?"Verification Code":"验证码",ready:a.codeReady,"is-en":o.isEn,"show-icon":"",onSend:i.handleGetCode},{prefix:x(()=>[...t[25]||(t[25]=[u("i",{class:"icon-verify"},null,-1)])]),_:1},8,["modelValue","placeholder","ready","is-en","onSend"])]),_:1}),h(m,{prop:"password",class:"password-form-item"},{default:x(()=>[h(E,{modelValue:a.form.password,"onUpdate:modelValue":t[15]||(t[15]=e=>a.form.password=e),type:"password","show-password":"",class:"input-show-pass",label:o.isEn?"Password":"密码",placeholder:o.isEn?"Password, 6-20 characters include letters, numbers and symbols":"密码,6-20位字符,包含字母、数字和符号"},{prefix:x(()=>[...t[26]||(t[26]=[u("i",{class:"icon-auth-password"},null,-1)])]),_:1},8,["modelValue","label","placeholder"])]),_:1}),u("div",us,[u("p",ds,v(o.isEn?"Industry Sector":"所属行业"),1),u("div",hs,[(l(!0),s(g,null,A(a.sectors,e=>(l(),s("div",{key:e.value,class:c(["sector-item",{active:a.form.sector===e.value}]),onClick:t=>a.form.sector=e.value},[B(v(o.isEn?e.en:e.cn)+" ",1),a.form.sector===e.value?(l(),s("i",fs)):f("",!0)],10,ps))),128))])]),h(m,{prop:"agree",class:"agree-item"},{default:x(()=>[h(T,{modelValue:a.form.agree,"onUpdate:modelValue":t[18]||(t[18]=e=>a.form.agree=e)},{default:x(()=>[u("span",ms,[B(v(o.isEn?"I agree":"我同意")+" ",1),u("span",{class:"link-type",onClick:t[16]||(t[16]=y((...e)=>i.go2Agreement&&i.go2Agreement(...e),["stop"]))},v(o.isEn?"User Agreement":"《用户条款和协议》"),1),B(" "+v(o.isEn?"and":"和")+" ",1),u("span",{class:"link-type",onClick:t[17]||(t[17]=y((...e)=>i.go2Policy&&i.go2Policy(...e),["stop"]))},v(o.isEn?"Privacy Policy":"《隐私政策》"),1)])]),_:1},8,["modelValue"])]),_:1}),h(F,{class:c(["submit-btn register-btn",{"register-btn-is-active":i.isAgree}]),disabled:!i.isAgree||a.loading,loading:a.loading,onClick:i.handleRegister},{default:x(()=>[B(v(o.isEn?"Register and Log in":"注册并登录")+" ",1),t[27]||(t[27]=u("i",{class:"el-icon-right",style:{"margin-left":"8px"}},null,-1))]),_:1},8,["class","disabled","loading","onClick"])]),_:1},8,["model","rules"]),u("div",gs,[B(v(o.isEn?"Already have an account?":"已有账号?")+" ",1),u("span",{class:"action-text",onClick:t[19]||(t[19]=t=>e.$emit("to-login"))},[B(v(o.isEn?"Log in":"去登录")+" ",1),t[28]||(t[28]=u("svg",{t:"1767853448095",class:"icon-more",viewBox:"0 0 1024 1024",version:"1.1",xmlns:"http://www.w3.org/2000/svg","p-id":"8538",width:"200",height:"200"},[u("path",{d:"M456.874667 798.208l-60.416-60.416L622.336 512 396.458667 286.208l60.416-60.416 256 256a42.666667 42.666667 0 0 1 0 60.416l-256 256z",fill:"#FF6A00","p-id":"8539"})],-1))])])])}],["__scopeId","data-v-84c2a31a"]]);var vs,ys,Cs={};var ws,Es={},bs={};function Is(){if(ws)return bs;let e;ws=1;const t=[0,26,44,70,100,134,172,196,242,292,346,404,466,532,581,655,733,815,901,991,1085,1156,1258,1364,1474,1588,1706,1828,1921,2051,2185,2323,2465,2611,2761,2876,3034,3196,3362,3532,3706];return bs.getSymbolSize=function(e){if(!e)throw new Error('"version" cannot be null or undefined');if(e<1||e>40)throw new Error('"version" should be in range from 1 to 40');return 4*e+17},bs.getSymbolTotalCodewords=function(e){return t[e]},bs.getBCHDigit=function(e){let t=0;for(;0!==e;)t++,e>>>=1;return t},bs.setToSJISFunction=function(t){if("function"!=typeof t)throw new Error('"toSJISFunc" is not a valid function.');e=t},bs.isKanjiModeEnabled=function(){return void 0!==e},bs.toSJIS=function(t){return e(t)},bs}var Bs,ks,Ss,xs,Rs,Ts={};function Fs(){return Bs||(Bs=1,(e=Ts).L={bit:1},e.M={bit:0},e.Q={bit:3},e.H={bit:2},e.isValid=function(e){return e&&void 0!==e.bit&&e.bit>=0&&e.bit<4},e.from=function(t,o){if(e.isValid(t))return t;try{return function(t){if("string"!=typeof t)throw new Error("Param is not a string");switch(t.toLowerCase()){case"l":case"low":return e.L;case"m":case"medium":return e.M;case"q":case"quartile":return e.Q;case"h":case"high":return e.H;default:throw new Error("Unknown EC Level: "+t)}}(t)}catch(n){return o}}),Ts;var e}var Qs,Ls={};var Ps,Ns={};var Us,Vs={};var Ds,Ms={};function Os(){if(Ds)return Ms;Ds=1;const e=Fs(),t=[1,1,1,1,1,1,1,1,1,1,2,2,1,2,2,4,1,2,4,4,2,4,4,4,2,4,6,5,2,4,6,6,2,5,8,8,4,5,8,8,4,5,8,11,4,8,10,11,4,9,12,16,4,9,16,16,6,10,12,18,6,10,17,16,6,11,16,19,6,13,18,21,7,14,21,25,8,16,20,25,8,17,23,25,9,17,23,34,9,18,25,30,10,20,27,32,12,21,29,35,12,23,34,37,12,25,34,40,13,26,35,42,14,28,38,45,15,29,40,48,16,31,43,51,17,33,45,54,18,35,48,57,19,37,51,60,19,38,53,63,20,40,56,66,21,43,59,70,22,45,62,74,24,47,65,77,25,49,68,81],o=[7,10,13,17,10,16,22,28,15,26,36,44,20,36,52,64,26,48,72,88,36,64,96,112,40,72,108,130,48,88,132,156,60,110,160,192,72,130,192,224,80,150,224,264,96,176,260,308,104,198,288,352,120,216,320,384,132,240,360,432,144,280,408,480,168,308,448,532,180,338,504,588,196,364,546,650,224,416,600,700,224,442,644,750,252,476,690,816,270,504,750,900,300,560,810,960,312,588,870,1050,336,644,952,1110,360,700,1020,1200,390,728,1050,1260,420,784,1140,1350,450,812,1200,1440,480,868,1290,1530,510,924,1350,1620,540,980,1440,1710,570,1036,1530,1800,570,1064,1590,1890,600,1120,1680,1980,630,1204,1770,2100,660,1260,1860,2220,720,1316,1950,2310,750,1372,2040,2430];return Ms.getBlocksCount=function(o,n){switch(n){case e.L:return t[4*(o-1)+0];case e.M:return t[4*(o-1)+1];case e.Q:return t[4*(o-1)+2];case e.H:return t[4*(o-1)+3];default:return}},Ms.getTotalCodewordsCount=function(t,n){switch(n){case e.L:return o[4*(t-1)+0];case e.M:return o[4*(t-1)+1];case e.Q:return o[4*(t-1)+2];case e.H:return o[4*(t-1)+3];default:return}},Ms}var Js,js,Hs,zs,qs={},Ks={};function Gs(){return js||(js=1,function(e){const t=function(){if(Js)return Ks;Js=1;const e=new Uint8Array(512),t=new Uint8Array(256);return function(){let o=1;for(let n=0;n<255;n++)e[n]=o,t[o]=n,o<<=1,256&o&&(o^=285);for(let t=255;t<512;t++)e[t]=e[t-255]}(),Ks.log=function(e){if(e<1)throw new Error("log("+e+")");return t[e]},Ks.exp=function(t){return e[t]},Ks.mul=function(o,n){return 0===o||0===n?0:e[t[o]+t[n]]},Ks}();e.mul=function(e,o){const n=new Uint8Array(e.length+o.length-1);for(let a=0;a<e.length;a++)for(let i=0;i<o.length;i++)n[a+i]^=t.mul(e[a],o[i]);return n},e.mod=function(e,o){let n=new Uint8Array(e);for(;n.length-o.length>=0;){const e=n[0];for(let i=0;i<o.length;i++)n[i]^=t.mul(o[i],e);let a=0;for(;a<n.length&&0===n[a];)a++;n=n.slice(a)}return n},e.generateECPolynomial=function(o){let n=new Uint8Array([1]);for(let a=0;a<o;a++)n=e.mul(n,new Uint8Array([1,t.exp(a)]));return n}}(qs)),qs}var Ws,Ys={},Zs={},Xs={};function _s(){return Ws||(Ws=1,Xs.isValid=function(e){return!isNaN(e)&&e>=1&&e<=40}),Xs}var $s,el,tl,ol={};function nl(){if($s)return ol;$s=1;const e="[0-9]+";let t="(?:[u3000-u303F]|[u3040-u309F]|[u30A0-u30FF]|[uFF00-uFFEF]|[u4E00-u9FAF]|[u2605-u2606]|[u2190-u2195]|u203B|[u2010u2015u2018u2019u2025u2026u201Cu201Du2225u2260]|[u0391-u0451]|[u00A7u00A8u00B1u00B4u00D7u00F7])+";t=t.replace(/u/g,"\\u");const o="(?:(?![A-Z0-9 $%*+\\-./:]|"+t+")(?:.|[\r\n]))+";ol.KANJI=new RegExp(t,"g"),ol.BYTE_KANJI=new RegExp("[^A-Z0-9 $%*+\\-./:]+","g"),ol.BYTE=new RegExp(o,"g"),ol.NUMERIC=new RegExp(e,"g"),ol.ALPHANUMERIC=new RegExp("[A-Z $%*+\\-./:]+","g");const n=new RegExp("^"+t+"$"),a=new RegExp("^"+e+"$"),i=new RegExp("^[A-Z0-9 $%*+\\-./:]+$");return ol.testKanji=function(e){return n.test(e)},ol.testNumeric=function(e){return a.test(e)},ol.testAlphanumeric=function(e){return i.test(e)},ol}function al(){return el||(el=1,function(e){const t=_s(),o=nl();e.NUMERIC={id:"Numeric",bit:1,ccBits:[10,12,14]},e.ALPHANUMERIC={id:"Alphanumeric",bit:2,ccBits:[9,11,13]},e.BYTE={id:"Byte",bit:4,ccBits:[8,16,16]},e.KANJI={id:"Kanji",bit:8,ccBits:[8,10,12]},e.MIXED={bit:-1},e.getCharCountIndicator=function(e,o){if(!e.ccBits)throw new Error("Invalid mode: "+e);if(!t.isValid(o))throw new Error("Invalid version: "+o);return o>=1&&o<10?e.ccBits[0]:o<27?e.ccBits[1]:e.ccBits[2]},e.getBestModeForData=function(t){return o.testNumeric(t)?e.NUMERIC:o.testAlphanumeric(t)?e.ALPHANUMERIC:o.testKanji(t)?e.KANJI:e.BYTE},e.toString=function(e){if(e&&e.id)return e.id;throw new Error("Invalid mode")},e.isValid=function(e){return e&&e.bit&&e.ccBits},e.from=function(t,o){if(e.isValid(t))return t;try{return function(t){if("string"!=typeof t)throw new Error("Param is not a string");switch(t.toLowerCase()){case"numeric":return e.NUMERIC;case"alphanumeric":return e.ALPHANUMERIC;case"kanji":return e.KANJI;case"byte":return e.BYTE;default:throw new Error("Unknown mode: "+t)}}(t)}catch(n){return o}}}(Zs)),Zs}function il(){return tl||(tl=1,function(e){const t=Is(),o=Os(),n=Fs(),a=al(),i=_s(),r=t.getBCHDigit(7973);function s(e,t){return a.getCharCountIndicator(e,t)+4}function l(e,t){let o=0;return e.forEach(function(e){const n=s(e.mode,t);o+=n+e.getBitsLength()}),o}e.from=function(e,t){return i.isValid(e)?parseInt(e,10):t},e.getCapacity=function(e,n,r){if(!i.isValid(e))throw new Error("Invalid QR Code version");void 0===r&&(r=a.BYTE);const l=8*(t.getSymbolTotalCodewords(e)-o.getTotalCodewordsCount(e,n));if(r===a.MIXED)return l;const c=l-s(r,e);switch(r){case a.NUMERIC:return Math.floor(c/10*3);case a.ALPHANUMERIC:return Math.floor(c/11*2);case a.KANJI:return Math.floor(c/13);case a.BYTE:default:return Math.floor(c/8)}},e.getBestVersionForData=function(t,o){let i;const r=n.from(o,n.M);if(Array.isArray(t)){if(t.length>1)return function(t,o){for(let n=1;n<=40;n++)if(l(t,n)<=e.getCapacity(n,o,a.MIXED))return n}(t,r);if(0===t.length)return 1;i=t[0]}else i=t;return function(t,o,n){for(let a=1;a<=40;a++)if(o<=e.getCapacity(a,n,t))return a}(i.mode,i.getLength(),r)},e.getEncodedBits=function(e){if(!i.isValid(e)||e<7)throw new Error("Invalid QR Code version");let o=e<<12;for(;t.getBCHDigit(o)-r>=0;)o^=7973<<t.getBCHDigit(o)-r;return e<<12|o}}(Ys)),Ys}var rl,sl={};var ll,cl,ul,dl,hl,pl,fl,ml,gl={};var Al,vl,yl,Cl={exports:{}};function wl(){return vl||(vl=1,function(e){const t=al(),o=function(){if(cl)return ll;cl=1;const e=al();function t(t){this.mode=e.NUMERIC,this.data=t.toString()}return t.getBitsLength=function(e){return 10*Math.floor(e/3)+(e%3?e%3*3+1:0)},t.prototype.getLength=function(){return this.data.length},t.prototype.getBitsLength=function(){return t.getBitsLength(this.data.length)},t.prototype.write=function(e){let t,o,n;for(t=0;t+3<=this.data.length;t+=3)o=this.data.substr(t,3),n=parseInt(o,10),e.put(n,10);const a=this.data.length-t;a>0&&(o=this.data.substr(t),n=parseInt(o,10),e.put(n,3*a+1))},ll=t}(),n=function(){if(dl)return ul;dl=1;const e=al(),t=["0","1","2","3","4","5","6","7","8","9","A","B","C","D","E","F","G","H","I","J","K","L","M","N","O","P","Q","R","S","T","U","V","W","X","Y","Z"," ","$","%","*","+","-",".","/",":"];function o(t){this.mode=e.ALPHANUMERIC,this.data=t}return o.getBitsLength=function(e){return 11*Math.floor(e/2)+e%2*6},o.prototype.getLength=function(){return this.data.length},o.prototype.getBitsLength=function(){return o.getBitsLength(this.data.length)},o.prototype.write=function(e){let o;for(o=0;o+2<=this.data.length;o+=2){let n=45*t.indexOf(this.data[o]);n+=t.indexOf(this.data[o+1]),e.put(n,11)}this.data.length%2&&e.put(t.indexOf(this.data[o]),6)},ul=o}(),a=function(){if(pl)return hl;pl=1;const e=al();function t(t){this.mode=e.BYTE,this.data="string"==typeof t?(new TextEncoder).encode(t):new Uint8Array(t)}return t.getBitsLength=function(e){return 8*e},t.prototype.getLength=function(){return this.data.length},t.prototype.getBitsLength=function(){return t.getBitsLength(this.data.length)},t.prototype.write=function(e){for(let t=0,o=this.data.length;t<o;t++)e.put(this.data[t],8)},hl=t}(),i=function(){if(ml)return fl;ml=1;const e=al(),t=Is();function o(t){this.mode=e.KANJI,this.data=t}return o.getBitsLength=function(e){return 13*e},o.prototype.getLength=function(){return this.data.length},o.prototype.getBitsLength=function(){return o.getBitsLength(this.data.length)},o.prototype.write=function(e){let o;for(o=0;o<this.data.length;o++){let n=t.toSJIS(this.data[o]);if(n>=33088&&n<=40956)n-=33088;else{if(!(n>=57408&&n<=60351))throw new Error("Invalid SJIS character: "+this.data[o]+"\nMake sure your charset is UTF-8");n-=49472}n=192*(n>>>8&255)+(255&n),e.put(n,13)}},fl=o}(),r=nl(),s=Is(),l=function(){return Al?Cl.exports:(Al=1,Cl.exports=e={single_source_shortest_paths:function(t,o,n){var a={},i={};i[o]=0;var r,s,l,c,u,d,h,p=e.PriorityQueue.make();for(p.push(o,0);!p.empty();)for(l in s=(r=p.pop()).value,c=r.cost,u=t[s]||{})u.hasOwnProperty(l)&&(d=c+u[l],h=i[l],(void 0===i[l]||h>d)&&(i[l]=d,p.push(l,d),a[l]=s));if(void 0!==n&&void 0===i[n]){var f=["Could not find a path from ",o," to ",n,"."].join("");throw new Error(f)}return a},extract_shortest_path_from_predecessor_list:function(e,t){for(var o=[],n=t;n;)o.push(n),e[n],n=e[n];return o.reverse(),o},find_path:function(t,o,n){var a=e.single_source_shortest_paths(t,o,n);return e.extract_shortest_path_from_predecessor_list(a,n)},PriorityQueue:{make:function(t){var o,n=e.PriorityQueue,a={};for(o in t=t||{},n)n.hasOwnProperty(o)&&(a[o]=n[o]);return a.queue=[],a.sorter=t.sorter||n.default_sorter,a},default_sorter:function(e,t){return e.cost-t.cost},push:function(e,t){var o={value:e,cost:t};this.queue.push(o),this.queue.sort(this.sorter)},pop:function(){return this.queue.shift()},empty:function(){return 0===this.queue.length}}});var e}();function c(e){return unescape(encodeURIComponent(e)).length}function u(e,t,o){const n=[];let a;for(;null!==(a=e.exec(o));)n.push({data:a[0],index:a.index,mode:t,length:a[0].length});return n}function d(e){const o=u(r.NUMERIC,t.NUMERIC,e),n=u(r.ALPHANUMERIC,t.ALPHANUMERIC,e);let a,i;s.isKanjiModeEnabled()?(a=u(r.BYTE,t.BYTE,e),i=u(r.KANJI,t.KANJI,e)):(a=u(r.BYTE_KANJI,t.BYTE,e),i=[]);return o.concat(n,a,i).sort(function(e,t){return e.index-t.index}).map(function(e){return{data:e.data,mode:e.mode,length:e.length}})}function h(e,r){switch(r){case t.NUMERIC:return o.getBitsLength(e);case t.ALPHANUMERIC:return n.getBitsLength(e);case t.KANJI:return i.getBitsLength(e);case t.BYTE:return a.getBitsLength(e)}}function p(e,r){let l;const c=t.getBestModeForData(e);if(l=t.from(r,c),l!==t.BYTE&&l.bit<c.bit)throw new Error('"'+e+'" cannot be encoded with mode '+t.toString(l)+".\n Suggested mode is: "+t.toString(c));switch(l!==t.KANJI||s.isKanjiModeEnabled()||(l=t.BYTE),l){case t.NUMERIC:return new o(e);case t.ALPHANUMERIC:return new n(e);case t.KANJI:return new i(e);case t.BYTE:return new a(e)}}e.fromArray=function(e){return e.reduce(function(e,t){return"string"==typeof t?e.push(p(t,null)):t.data&&e.push(p(t.data,t.mode)),e},[])},e.fromString=function(o,n){const a=function(e){const o=[];for(let n=0;n<e.length;n++){const a=e[n];switch(a.mode){case t.NUMERIC:o.push([a,{data:a.data,mode:t.ALPHANUMERIC,length:a.length},{data:a.data,mode:t.BYTE,length:a.length}]);break;case t.ALPHANUMERIC:o.push([a,{data:a.data,mode:t.BYTE,length:a.length}]);break;case t.KANJI:o.push([a,{data:a.data,mode:t.BYTE,length:c(a.data)}]);break;case t.BYTE:o.push([{data:a.data,mode:t.BYTE,length:c(a.data)}])}}return o}(d(o,s.isKanjiModeEnabled())),i=function(e,o){const n={},a={start:{}};let i=["start"];for(let r=0;r<e.length;r++){const s=e[r],l=[];for(let e=0;e<s.length;e++){const c=s[e],u=""+r+e;l.push(u),n[u]={node:c,lastCount:0},a[u]={};for(let e=0;e<i.length;e++){const r=i[e];n[r]&&n[r].node.mode===c.mode?(a[r][u]=h(n[r].lastCount+c.length,c.mode)-h(n[r].lastCount,c.mode),n[r].lastCount+=c.length):(n[r]&&(n[r].lastCount=c.length),a[r][u]=h(c.length,c.mode)+4+t.getCharCountIndicator(c.mode,o))}}i=l}for(let t=0;t<i.length;t++)a[i[t]].end=0;return{map:a,table:n}}(a,n),r=l.find_path(i.map,"start","end"),u=[];for(let e=1;e<r.length-1;e++)u.push(i.table[r[e]].node);return e.fromArray(function(e){return e.reduce(function(e,t){const o=e.length-1>=0?e[e.length-1]:null;return o&&o.mode===t.mode?(e[e.length-1].data+=t.data,e):(e.push(t),e)},[])}(u))},e.rawSplit=function(t){return e.fromArray(d(t,s.isKanjiModeEnabled()))}}(gl)),gl}function El(){if(yl)return Es;yl=1;const e=Is(),t=Fs(),o=function(){if(Ss)return ks;function e(){this.buffer=[],this.length=0}return Ss=1,e.prototype={get:function(e){const t=Math.floor(e/8);return 1==(this.buffer[t]>>>7-e%8&1)},put:function(e,t){for(let o=0;o<t;o++)this.putBit(1==(e>>>t-o-1&1))},getLengthInBits:function(){return this.length},putBit:function(e){const t=Math.floor(this.length/8);this.buffer.length<=t&&this.buffer.push(0),e&&(this.buffer[t]|=128>>>this.length%8),this.length++}},ks=e}(),n=function(){if(Rs)return xs;function e(e){if(!e||e<1)throw new Error("BitMatrix size must be defined and greater than 0");this.size=e,this.data=new Uint8Array(e*e),this.reservedBit=new Uint8Array(e*e)}return Rs=1,e.prototype.set=function(e,t,o,n){const a=e*this.size+t;this.data[a]=o,n&&(this.reservedBit[a]=!0)},e.prototype.get=function(e,t){return this.data[e*this.size+t]},e.prototype.xor=function(e,t,o){this.data[e*this.size+t]^=o},e.prototype.isReserved=function(e,t){return this.reservedBit[e*this.size+t]},xs=e}(),a=(Qs||(Qs=1,function(e){const t=Is().getSymbolSize;e.getRowColCoords=function(e){if(1===e)return[];const o=Math.floor(e/7)+2,n=t(e),a=145===n?26:2*Math.ceil((n-13)/(2*o-2)),i=[n-7];for(let t=1;t<o-1;t++)i[t]=i[t-1]-a;return i.push(6),i.reverse()},e.getPositions=function(t){const o=[],n=e.getRowColCoords(t),a=n.length;for(let e=0;e<a;e++)for(let t=0;t<a;t++)0===e&&0===t||0===e&&t===a-1||e===a-1&&0===t||o.push([n[e],n[t]]);return o}}(Ls)),Ls),i=function(){if(Ps)return Ns;Ps=1;const e=Is().getSymbolSize;return Ns.getPositions=function(t){const o=e(t);return[[0,0],[o-7,0],[0,o-7]]},Ns}(),r=(Us||(Us=1,function(e){e.Patterns={PATTERN000:0,PATTERN001:1,PATTERN010:2,PATTERN011:3,PATTERN100:4,PATTERN101:5,PATTERN110:6,PATTERN111:7};const t=3,o=3,n=40,a=10;function i(t,o,n){switch(t){case e.Patterns.PATTERN000:return(o+n)%2==0;case e.Patterns.PATTERN001:return o%2==0;case e.Patterns.PATTERN010:return n%3==0;case e.Patterns.PATTERN011:return(o+n)%3==0;case e.Patterns.PATTERN100:return(Math.floor(o/2)+Math.floor(n/3))%2==0;case e.Patterns.PATTERN101:return o*n%2+o*n%3==0;case e.Patterns.PATTERN110:return(o*n%2+o*n%3)%2==0;case e.Patterns.PATTERN111:return(o*n%3+(o+n)%2)%2==0;default:throw new Error("bad maskPattern:"+t)}}e.isValid=function(e){return null!=e&&""!==e&&!isNaN(e)&&e>=0&&e<=7},e.from=function(t){return e.isValid(t)?parseInt(t,10):void 0},e.getPenaltyN1=function(e){const o=e.size;let n=0,a=0,i=0,r=null,s=null;for(let l=0;l<o;l++){a=i=0,r=s=null;for(let c=0;c<o;c++){let o=e.get(l,c);o===r?a++:(a>=5&&(n+=t+(a-5)),r=o,a=1),o=e.get(c,l),o===s?i++:(i>=5&&(n+=t+(i-5)),s=o,i=1)}a>=5&&(n+=t+(a-5)),i>=5&&(n+=t+(i-5))}return n},e.getPenaltyN2=function(e){const t=e.size;let n=0;for(let o=0;o<t-1;o++)for(let a=0;a<t-1;a++){const t=e.get(o,a)+e.get(o,a+1)+e.get(o+1,a)+e.get(o+1,a+1);4!==t&&0!==t||n++}return n*o},e.getPenaltyN3=function(e){const t=e.size;let o=0,a=0,i=0;for(let n=0;n<t;n++){a=i=0;for(let r=0;r<t;r++)a=a<<1&2047|e.get(n,r),r>=10&&(1488===a||93===a)&&o++,i=i<<1&2047|e.get(r,n),r>=10&&(1488===i||93===i)&&o++}return o*n},e.getPenaltyN4=function(e){let t=0;const o=e.data.length;for(let n=0;n<o;n++)t+=e.data[n];return Math.abs(Math.ceil(100*t/o/5)-10)*a},e.applyMask=function(e,t){const o=t.size;for(let n=0;n<o;n++)for(let a=0;a<o;a++)t.isReserved(a,n)||t.xor(a,n,i(e,a,n))},e.getBestMask=function(t,o){const n=Object.keys(e.Patterns).length;let a=0,i=1/0;for(let r=0;r<n;r++){o(r),e.applyMask(r,t);const n=e.getPenaltyN1(t)+e.getPenaltyN2(t)+e.getPenaltyN3(t)+e.getPenaltyN4(t);e.applyMask(r,t),n<i&&(i=n,a=r)}return a}}(Vs)),Vs),s=Os(),l=function(){if(zs)return Hs;zs=1;const e=Gs();function t(e){this.genPoly=void 0,this.degree=e,this.degree&&this.initialize(this.degree)}return t.prototype.initialize=function(t){this.degree=t,this.genPoly=e.generateECPolynomial(this.degree)},t.prototype.encode=function(t){if(!this.genPoly)throw new Error("Encoder not initialized");const o=new Uint8Array(t.length+this.degree);o.set(t);const n=e.mod(o,this.genPoly),a=this.degree-n.length;if(a>0){const e=new Uint8Array(this.degree);return e.set(n,a),e}return n},Hs=t}(),c=il(),u=function(){if(rl)return sl;rl=1;const e=Is(),t=e.getBCHDigit(1335);return sl.getEncodedBits=function(o,n){const a=o.bit<<3|n;let i=a<<10;for(;e.getBCHDigit(i)-t>=0;)i^=1335<<e.getBCHDigit(i)-t;return 21522^(a<<10|i)},sl}(),d=al(),h=wl();function p(e,t,o){const n=e.size,a=u.getEncodedBits(t,o);let i,r;for(i=0;i<15;i++)r=1==(a>>i&1),i<6?e.set(i,8,r,!0):i<8?e.set(i+1,8,r,!0):e.set(n-15+i,8,r,!0),i<8?e.set(8,n-i-1,r,!0):i<9?e.set(8,15-i-1+1,r,!0):e.set(8,15-i-1,r,!0);e.set(n-8,8,1,!0)}function f(t,n,a){const i=new o;a.forEach(function(e){i.put(e.mode.bit,4),i.put(e.getLength(),d.getCharCountIndicator(e.mode,t)),e.write(i)});const r=8*(e.getSymbolTotalCodewords(t)-s.getTotalCodewordsCount(t,n));for(i.getLengthInBits()+4<=r&&i.put(0,4);i.getLengthInBits()%8!=0;)i.putBit(0);const c=(r-i.getLengthInBits())/8;for(let e=0;e<c;e++)i.put(e%2?17:236,8);return function(t,o,n){const a=e.getSymbolTotalCodewords(o),i=s.getTotalCodewordsCount(o,n),r=a-i,c=s.getBlocksCount(o,n),u=a%c,d=c-u,h=Math.floor(a/c),p=Math.floor(r/c),f=p+1,m=h-p,g=new l(m);let A=0;const v=new Array(c),y=new Array(c);let C=0;const w=new Uint8Array(t.buffer);for(let e=0;e<c;e++){const t=e<d?p:f;v[e]=w.slice(A,A+t),y[e]=g.encode(v[e]),A+=t,C=Math.max(C,t)}const E=new Uint8Array(a);let b,I,B=0;for(b=0;b<C;b++)for(I=0;I<c;I++)b<v[I].length&&(E[B++]=v[I][b]);for(b=0;b<m;b++)for(I=0;I<c;I++)E[B++]=y[I][b];return E}(i,t,n)}function m(t,o,s,l){let u;if(Array.isArray(t))u=h.fromArray(t);else{if("string"!=typeof t)throw new Error("Invalid data");{let e=o;if(!e){const o=h.rawSplit(t);e=c.getBestVersionForData(o,s)}u=h.fromString(t,e||40)}}const d=c.getBestVersionForData(u,s);if(!d)throw new Error("The amount of data is too big to be stored in a QR Code");if(o){if(o<d)throw new Error("\nThe chosen QR Code version cannot contain this amount of data.\nMinimum version required to store current data is: "+d+".\n")}else o=d;const m=f(o,s,u),g=e.getSymbolSize(o),A=new n(g);return function(e,t){const o=e.size,n=i.getPositions(t);for(let a=0;a<n.length;a++){const t=n[a][0],i=n[a][1];for(let n=-1;n<=7;n++)if(!(t+n<=-1||o<=t+n))for(let a=-1;a<=7;a++)i+a<=-1||o<=i+a||(n>=0&&n<=6&&(0===a||6===a)||a>=0&&a<=6&&(0===n||6===n)||n>=2&&n<=4&&a>=2&&a<=4?e.set(t+n,i+a,!0,!0):e.set(t+n,i+a,!1,!0))}}(A,o),function(e){const t=e.size;for(let o=8;o<t-8;o++){const t=o%2==0;e.set(o,6,t,!0),e.set(6,o,t,!0)}}(A),function(e,t){const o=a.getPositions(t);for(let n=0;n<o.length;n++){const t=o[n][0],a=o[n][1];for(let o=-2;o<=2;o++)for(let n=-2;n<=2;n++)-2===o||2===o||-2===n||2===n||0===o&&0===n?e.set(t+o,a+n,!0,!0):e.set(t+o,a+n,!1,!0)}}(A,o),p(A,s,0),o>=7&&function(e,t){const o=e.size,n=c.getEncodedBits(t);let a,i,r;for(let s=0;s<18;s++)a=Math.floor(s/3),i=s%3+o-8-3,r=1==(n>>s&1),e.set(a,i,r,!0),e.set(i,a,r,!0)}(A,o),function(e,t){const o=e.size;let n=-1,a=o-1,i=7,r=0;for(let s=o-1;s>0;s-=2)for(6===s&&s--;;){for(let o=0;o<2;o++)if(!e.isReserved(a,s-o)){let n=!1;r<t.length&&(n=1==(t[r]>>>i&1)),e.set(a,s-o,n),i--,-1===i&&(r++,i=7)}if(a+=n,a<0||o<=a){a-=n,n=-n;break}}}(A,m),isNaN(l)&&(l=r.getBestMask(A,p.bind(null,A,s))),r.applyMask(l,A),p(A,s,l),{modules:A,version:o,errorCorrectionLevel:s,maskPattern:l,segments:u}}return Es.create=function(o,n){if(void 0===o||""===o)throw new Error("No input text");let a,i,s=t.M;return void 0!==n&&(s=t.from(n.errorCorrectionLevel,t.M),a=c.from(n.version),i=r.from(n.maskPattern),n.toSJISFunc&&e.setToSJISFunction(n.toSJISFunc)),m(o,a,s,i)},Es}var bl,Il,Bl={},kl={};function Sl(){return bl||(bl=1,function(e){function t(e){if("number"==typeof e&&(e=e.toString()),"string"!=typeof e)throw new Error("Color should be defined as hex string");let t=e.slice().replace("#","").split("");if(t.length<3||5===t.length||t.length>8)throw new Error("Invalid hex color: "+e);3!==t.length&&4!==t.length||(t=Array.prototype.concat.apply([],t.map(function(e){return[e,e]}))),6===t.length&&t.push("F","F");const o=parseInt(t.join(""),16);return{r:o>>24&255,g:o>>16&255,b:o>>8&255,a:255&o,hex:"#"+t.slice(0,6).join("")}}e.getOptions=function(e){e||(e={}),e.color||(e.color={});const o=void 0===e.margin||null===e.margin||e.margin<0?4:e.margin,n=e.width&&e.width>=21?e.width:void 0,a=e.scale||4;return{width:n,scale:n?4:a,margin:o,color:{dark:t(e.color.dark||"#000000ff"),light:t(e.color.light||"#ffffffff")},type:e.type,rendererOpts:e.rendererOpts||{}}},e.getScale=function(e,t){return t.width&&t.width>=e+2*t.margin?t.width/(e+2*t.margin):t.scale},e.getImageWidth=function(t,o){const n=e.getScale(t,o);return Math.floor((t+2*o.margin)*n)},e.qrToImageData=function(t,o,n){const a=o.modules.size,i=o.modules.data,r=e.getScale(a,n),s=Math.floor((a+2*n.margin)*r),l=n.margin*r,c=[n.color.light,n.color.dark];for(let e=0;e<s;e++)for(let o=0;o<s;o++){let u=4*(e*s+o),d=n.color.light;if(e>=l&&o>=l&&e<s-l&&o<s-l){d=c[i[Math.floor((e-l)/r)*a+Math.floor((o-l)/r)]?1:0]}t[u++]=d.r,t[u++]=d.g,t[u++]=d.b,t[u]=d.a}}}(kl)),kl}function xl(){return Il||(Il=1,function(e){const t=Sl();e.render=function(e,o,n){let a=n,i=o;void 0!==a||o&&o.getContext||(a=o,o=void 0),o||(i=function(){try{return document.createElement("canvas")}catch(e){throw new Error("You need to specify a canvas element")}}()),a=t.getOptions(a);const r=t.getImageWidth(e.modules.size,a),s=i.getContext("2d"),l=s.createImageData(r,r);return t.qrToImageData(l.data,e,a),function(e,t,o){e.clearRect(0,0,t.width,t.height),t.style||(t.style={}),t.height=o,t.width=o,t.style.height=o+"px",t.style.width=o+"px"}(s,i,r),s.putImageData(l,0,0),i},e.renderToDataURL=function(t,o,n){let a=n;void 0!==a||o&&o.getContext||(a=o,o=void 0),a||(a={});const i=e.render(t,o,a),r=a.type||"image/png",s=a.rendererOpts||{};return i.toDataURL(r,s.quality)}}(Bl)),Bl}var Rl,Tl,Fl={};function Ql(){if(Rl)return Fl;Rl=1;const e=Sl();function t(e,t){const o=e.a/255,n=t+'="'+e.hex+'"';return o<1?n+" "+t+'-opacity="'+o.toFixed(2).slice(1)+'"':n}function o(e,t,o){let n=e+t;return void 0!==o&&(n+=" "+o),n}return Fl.render=function(n,a,i){const r=e.getOptions(a),s=n.modules.size,l=n.modules.data,c=s+2*r.margin,u=r.color.light.a?"<path "+t(r.color.light,"fill")+' d="M0 0h'+c+"v"+c+'H0z"/>':"",d="<path "+t(r.color.dark,"stroke")+' d="'+function(e,t,n){let a="",i=0,r=!1,s=0;for(let l=0;l<e.length;l++){const c=Math.floor(l%t),u=Math.floor(l/t);c||r||(r=!0),e[l]?(s++,l>0&&c>0&&e[l-1]||(a+=r?o("M",c+n,.5+u+n):o("m",i,0),i=0,r=!1),c+1<t&&e[l+1]||(a+=o("h",s),s=0)):i++}return a}(l,s,r.margin)+'"/>',h='viewBox="0 0 '+c+" "+c+'"',p='<svg xmlns="http://www.w3.org/2000/svg" '+(r.width?'width="'+r.width+'" height="'+r.width+'" ':"")+h+' shape-rendering="crispEdges">'+u+d+"</svg>\n";return"function"==typeof i&&i(null,p),p},Fl}const Ll=/* @__PURE__ */da(function(){if(Tl)return Cs;Tl=1;const e=ys?vs:(ys=1,vs=function(){return"function"==typeof Promise&&Promise.prototype&&Promise.prototype.then}),t=El(),o=xl(),n=Ql();function a(o,n,a,i,r){const s=[].slice.call(arguments,1),l=s.length,c="function"==typeof s[l-1];if(!c&&!e())throw new Error("Callback required as last argument");if(!c){if(l<1)throw new Error("Too few arguments provided");return 1===l?(a=n,n=i=void 0):2!==l||n.getContext||(i=a,a=n,n=void 0),new Promise(function(e,r){try{const r=t.create(a,i);e(o(r,n,i))}catch(s){r(s)}})}if(l<2)throw new Error("Too few arguments provided");2===l?(r=a,a=n,n=i=void 0):3===l&&(n.getContext&&void 0===r?(r=i,i=void 0):(r=i,i=a,a=n,n=void 0));try{const e=t.create(a,i);r(null,o(e,n,i))}catch(u){r(u)}}return Cs.create=t.create,Cs.toCanvas=a.bind(null,o.render),Cs.toDataURL=a.bind(null,o.renderToDataURL),Cs.toString=a.bind(null,function(e,t,o){return n.render(e,o)}),Cs}()),Pl={class:"login-wx"},Nl={class:"login-wx-code"},Ul={class:"expired-text mt10 mb10"},Vl={class:"scan-tip"},Dl=/* @__PURE__ */Wo(/* @__PURE__ */a({__name:"WechatLogin",props:{appId:{default:"ERA"},path:{},isEn:{type:Boolean,default:!1}},emits:["success","need-register","need-complete"],setup(t,{emit:n}){const a=t,i=n,r=e(null),d=e(!0),p=e(!1),g=e("");let A=null;const C=async()=>{d.value=!0,I();try{const{data:t}=await se();if(console.log("🍉 ~ WechatLogin.vue:126 ~ fetchWxCode ~ data:",t),0===t?.code){g.value=t.data?.uniqueCode,p.value=!1;try{le({uniqueCode:g.value})}catch(e){console.log("🍉 ~ WechatLogin.vue:114 ~ fetchWxCode ~ error:",e)}await(async e=>{if(await U(),r.value)try{await Ll.toCanvas(r.value,e,{width:200,margin:1,color:{dark:"#000000",light:"#ffffff"},errorCorrectionLevel:"M"})}catch(t){console.error("QR Code render error:",t)}})(t.data?.qrCodeUrl),w()}else p.value=!0}catch(e){console.error("Fetch WeChat QR fail:",e)}finally{d.value=!1}},w=()=>{const e=window.BASE_INFO?.WX_POLLING_TIME||3e3;A=setInterval(async()=>{try{console.log("🍉 ~ WechatLogin.vue:173 ~ startPolling ~ props:",a);const{data:e}=await ce({uniqueCode:g.value,appId:a.appId,redirectPath:a.path||"",kick:!1});console.log("🍉 ~ WechatLogin.vue:159 ~ startPolling ~ data:",e),0===e.code&&E(e)}catch(e){console.error("Polling error:",e),I()}},e)},E=e=>{switch(e.subcode){case"EXPIRED":case"FOLLOWED_CANCEL":p.value=!0,I();break;case"FOLLOWED_NO_USER":i("need-register",g.value);break;case"FOLLOWED_LOGIN_SUCCESS":I(!1),S(e.data)}},I=(e=!0)=>{e&&(g.value=""),le({uniqueCode:""}),A&&(clearInterval(A),A=null)},k=()=>{C()},S=async e=>{if(e.result&&Z(e.result),!0===e.redirect){const t="CPA"===a.appId?"tgc-CPA":"tgc";Zr.set(t,e.tgc,{expires:30})}if(!0===e.hasLogon)try{await We.confirm(a.isEn?"The account has already logged in elsewhere. Do you want to force login?":"该账号已在其他地方登录,是否强制登录?",a.isEn?"Tips":"提示",{confirmButtonText:a.isEn?"Confirm":"确定",cancelButtonText:a.isEn?"Cancel":"取消",customClass:"auth-confirm-kick-popup",type:"warning"}),R()}catch{C()}else T(e.redirectPath)},R=async()=>{d.value=!0;try{const{data:e}=await ce({uniqueCode:g.value,appId:a.appId,redirectPath:a.path||"",kick:!0});if(console.log("🍉 ~ WechatLogin.vue:279 ~ reLoginWithKick ~ data:",e),0===e.code){if(Z(e.data.result),e.data.result?.improveComp)return void i("need-complete",e.data.result.improveComp);T(e.data.redirectPath)}}catch(e){Le.error(a.isEn?"Login failed":"登录失败")}finally{d.value=!1}},T=e=>{localStorage.setItem("jc-qrCode-login","wx"),I(),e&&e.includes("http")&&(window.location.href=e),i("success")};return o(()=>{C()}),N(()=>{I()}),(e,o)=>(l(),s("div",Pl,[m((l(),s("div",Nl,[u("div",{class:c(["qr-canvas-wrapper flex-center",{"qrcode-error-mask":p.value}])},[u("canvas",{ref_key:"qrCanvasRef",ref:r},null,512)],2),p.value?(l(),s("div",{key:0,class:"refresh-overlay flex-center",onClick:k},[o[0]||(o[0]=u("img",{src:"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACgAAAAoCAYAAACM/rhtAAAAAXNSR0IArs4c6QAABNJJREFUWEftmF9oW3UUx7/nl21O8aGDDSqdbGIHe5i6IYWCa28CChO65cbNIVjw3rTDifogm2wgwwgFK6uwh4mO1SRzCLOb5G5tQXHQ3I0JwpRIFSarNE4f9iBScQ+j5v6O/JJcSdJ7kyY3kz54X+/vnPP5nfP7/c4fwgr/aIXz4X/AehFKZ64+ySj8bMYiC37rAnswlZpZiw5sJRHqgsTasqEFhqMM5/0MKzleJ2YFIWFEtU/bCpiamOmk1eJFCdJB3EvAKi8DDPxOoMvEuMALzrRpRu6661KW/SGAgwBnTT0caQvgmcmvu6SzOMKgQReKgYIA8gyeI+COMsTAegZtI2B9heHbIIziD3mKOkJPMfFl95+zKLcM74/MeUEuO8RJy36ZgFEAHQqKwFNCiLR0HNvvDKUyM5sJYi8TDwK0vQyQY8Z6Imx0gYgxYsS0Yy0Bls4KnSXQvpICPucs8jG/HfuFKnnpSpSkHAVoq8ea/C85uSWRiBRq/9X1YPECrKMMQLuYcUeADCPW/3mrb2c6Yw8xYdzTU0QDRrR/uinAZCY7SUQDAOdR4GfNfZEbrcKNT1/bFPq7oOTdm16lisAXDD38/LIB0xn7EBPGACw4i7Kn2ZBWGkokZlZt2k5fART222DxXLPcUHuePUOczlx7lKnwg9otg3bF9f4vW/Wckktb9lsMjDTSQYzDRkx7v3KdJ2DKyqpzpwP4yNS1Vxoprvd/fGKmO7RGTHqEVoW6Jtycq30TlwCenbz6RMGROQB3sSgfMfdHbgcBDCq7BDBl2e8COArCCTOqvRHUQFB5L8B5AJsZojeu930T1EBQ+SpA9fKDxLzKoXFd2xBUeTvkqwDPXLoSlZItYp4yYuHd7TAQVEcVYNqyX2XgZDtub1AwV746xBftt8FIgJAwo9o77TISRM+KAUxn7FkmbHOkfGz4uYhKEsXPM8TEOGnEtNeD7LxZ2WTG/lWVYAVHPnxgb+Q3T8B/LwnosqH3P9OskVbXfzAx8+ADa8RfKh/fysn7K8su32fmVk4+5FWftQpRT+6TS1c0R3IWQM7UtR11c3HSsm8S0C0LsmdoX+T6vQCq1elmLwLGDF17sy5g2rKPM3CYwOOGHj5wrwFLRbFQ2avTK3stSXXl6uPmf1UsJC/aLxEjDRQrmarwLrnFrrfSVvY8F3sQTpt62LxXXqzyniA9vqf/Yq0tz3qw7MVZVa+pkt+rV2gHdNLKnibQMIOvx/Vwj5dO36apsuSXFOodiu78qR1Qro6UZR9BqY29i4Lc4dfv1O3qklb2fLndvE0i9LSxZ+eP7YD8OGMfEqV+RzX5L8R17TM/vctuO9VOGTDqKWsEX+yxO8RxIrxWXnvU1LX36sk1nCwopdRBp5losKSILRkKJYZ2933fCKjyv2rcIXlMvbHFzRIOxqPamUY6GgK6CsqjjxNuo8NMU0LwOZZy2m/0oS7bqtUiyoRhAOWJAt8gDg0asb5vG8H5PjN+gmqqhfvEEbCaSlV1ZHkCzXF5eARwJwPdNcOjvMoU+Zw81UwKXbYHK6Hd8RsTDwDU6zctUK2DYP6CQuLC/HfOdDNgrr2WACth1dRg4+PYukaEuliUvCod58+CxFxl2bSccDb1DraqsN1ygT3YbqBaff8AMdn1OHmbwMgAAAAASUVORK5CYII=",alt:"refresh",class:"refresh-icon"},null,-1)),u("div",Ul,v(t.isEn?"The QR code has expired":"二维码已过期"),1),h(b(He),{type:"primary",class:"jc:text-white",onClick:y(k,["stop"])},{default:x(()=>[B(v(t.isEn?"Rescan QR code":"重新扫码"),1)]),_:1})])):f("",!0),u("div",Vl,[o[1]||(o[1]=u("img",{src:"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABkAAAAYCAYAAAAPtVbGAAAAAXNSR0IArs4c6QAAAmxJREFUSEvtlU1IVFEUx3/nzkSOhZXSh1QUJBQJFn0sooUM5FBDQRtJCNpIoUELsRCpySfiToiKwiAiaJMDUYsWEdaYmxIljKDoA5ISSkNQBLNp3jvxngY+fdPoxpVn+e4993fe/3/OvcIihCwCgyXIglQOlsuyDOWUgTmJIzHQbQgh4CvCc5T7TP58Rfz67/nQ5kJS1kqQ86icBikGDShER4EORNuIWp9zgfwHaDJE6n0TSA1KAUI/qgWIbAUiwCDCd5RioAjlAcZJELUG/gfyQ55Ze0DuIrIT9AMZOYuhFEMdsBn0JkYeYnMKodqTD64RTVxBRLOBZkFaahFtAtZ7CcqY54WSj2CACZRxRL+AfERI4+gIhF+gvObQxaEgkB+SamkA6lFdG1yVDoDpAV2DchBhxfQ+9y+GUO3A5LURbRicme+HdDUfw5EbU9LMDv0B0o+jGzCyCwIH+ReiXWScGiqaXSm98EM6G4uQyG0ghpDvwyi9QBihFOQd4jxCzRbQSuApqo9BGhFcFe7Q7VzAspy5EPdLd2sZGfsqcABYPg2aAO0HKQR2AOOgwyB5XqcJI6BDICXgeqe9TGoVccuTLXgYU627UbsdZf+04e6hb0DcKrfnmIs/qPYRDp2g/NK37JDOluMY4oS0D5tRlHUgNmgc4bAnW/YYQ7mHceqIWpnskGQyRGWl4+v9W2eWUbKxCqRhypeAUNKgPdimmljiU7Dxue6HZF2EotVHEamfIeVUlgsQfYkt56i4/DZ7C+eC/Ft/YhUSlr0Ysw91ViEy7EHQTaS1nSP+a2bp0ZqvsAETv6DU+W9eFE/+AnQTzRkvOD8VAAAAAElFTkSuQmCC",alt:"wechat"},null,-1)),u("span",null,v(t.isEn?"Scan to login/register":"微信扫码登录/注册JCtrans"),1)])])),[[b(Ge),d.value]])]))}}),[["__scopeId","data-v-0fca5fae"]]),Ml={name:"LoginTypeSwitcher",components:{ElRadioGroup:Ke,ElRadioButton:qe},props:{modelValue:{type:String,default:"email"},showAccount:{type:Boolean,default:!1},isEn:{type:Boolean,default:!1}},emits:["update:modelValue","change"],methods:{handleChange(e){this.$emit("update:modelValue",e),this.$emit("change",e)}}},Ol={class:"switcher-content"},Jl={class:"switcher-content"},jl={class:"switcher-content"};const Hl=/* @__PURE__ */Wo(Ml,[["render",function(e,t,o,n,a,i){const r=R("el-radio-button"),p=R("el-radio-group");return l(),d(p,{class:"login-type-switcher","model-value":o.modelValue,onChange:i.handleChange},{default:x(()=>[o.showAccount?(l(),d(r,{key:0,value:"account"},{default:x(()=>[u("div",Ol,[(l(),s("svg",{class:c(["switcher-icon",{"is-active":"account"===o.modelValue}]),viewBox:"0 0 1024 1024",xmlns:"http://www.w3.org/2000/svg"},[...t[0]||(t[0]=[u("path",{d:"M113.242353 250.217412l356.352 356.412235a60.235294 60.235294 0 0 0 80.655059 4.156235l4.577882-4.156235 356.111059-356.171294c1.204706 4.397176 1.987765 8.914824 2.409412 13.552941l0.240941 6.987294v481.882353c0 42.345412-32.768 77.101176-74.270118 80.112941l-6.023529 0.240942H190.765176a80.293647 80.293647 0 0 1-80.112941-74.330353l-0.180706-6.02353v-481.882353c0-4.818824 0.421647-9.456941 1.204706-14.034823l1.505883-6.746353z m720.052706-59.512471c4.818824 0 9.637647 0.421647 14.215529 1.204706l6.866824 1.566118-342.136471 342.13647-342.256941-342.13647c4.397176-1.204706 9.035294-2.048 13.673412-2.409412l7.107764-0.361412h642.529883z"},null,-1)])],2)),u("span",null,v(o.isEn?"Password":"账号密码"),1)])]),_:1})):f("",!0),h(r,{value:"email"},{default:x(()=>[u("div",Jl,[(l(),s("svg",{class:c(["switcher-icon",{"is-active":"email"===o.modelValue}]),viewBox:"0 0 1024 1024",xmlns:"http://www.w3.org/2000/svg"},[...t[1]||(t[1]=[u("path",{d:"M113.242353 250.217412l356.352 356.412235a60.235294 60.235294 0 0 0 80.655059 4.156235l4.577882-4.156235 356.111059-356.171294c1.204706 4.397176 1.987765 8.914824 2.409412 13.552941l0.240941 6.987294v481.882353c0 42.345412-32.768 77.101176-74.270118 80.112941l-6.023529 0.240942H190.765176a80.293647 80.293647 0 0 1-80.112941-74.330353l-0.180706-6.02353v-481.882353c0-4.818824 0.421647-9.456941 1.204706-14.034823l1.505883-6.746353z m720.052706-59.512471c4.818824 0 9.637647 0.421647 14.215529 1.204706l6.866824 1.566118-342.136471 342.13647-342.256941-342.13647c4.397176-1.204706 9.035294-2.048 13.673412-2.409412l7.107764-0.361412h642.529883z"},null,-1)])],2)),u("span",null,v(o.isEn?"Email":"邮箱"),1)])]),_:1}),h(r,{value:"mobile"},{default:x(()=>[u("div",jl,[(l(),s("svg",{class:c(["switcher-icon",{"is-active":"mobile"===o.modelValue}]),viewBox:"0 0 1024 1024",xmlns:"http://www.w3.org/2000/svg"},[...t[2]||(t[2]=[u("path",{d:"M694.874353 918.949647c-57.825882-2.108235-221.726118-24.696471-393.336471-196.367059-171.610353-171.550118-194.258824-335.450353-196.367058-393.33647-3.252706-88.124235 64.271059-173.778824 142.336-207.209412a59.030588 59.030588 0 0 1 58.006588 6.324706c64.210824 46.863059 108.604235 117.639529 146.672941 173.357176 17.227294 25.178353 13.071059 59.512471-10.24 79.75153L363.52 439.717647a19.275294 19.275294 0 0 0-5.722353 24.696471c17.709176 32.346353 49.332706 80.353882 85.473882 116.495058 36.141176 36.141176 86.437647 69.752471 120.952471 89.509648a19.395765 19.395765 0 0 0 25.840941-6.445177l50.959059-77.703529c19.516235-25.961412 56.018824-31.623529 82.582588-13.251765 56.500706 39.092706 122.458353 82.642824 170.706824 144.444235a59.030588 59.030588 0 0 1 7.589647 59.632941c-33.611294 78.426353-118.663529 145.167059-207.088941 141.914353z"},null,-1)])],2)),u("span",null,v(o.isEn?"Cell Phone":"手机号"),1)])]),_:1})]),_:1},8,["model-value","onChange"])}],["__scopeId","data-v-0b836d4d"]]),zl="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACAAAAAgCAYAAABzenr0AAAAAXNSR0IArs4c6QAAAUxJREFUWEftloFNAkEURN90YAlaiVKBloAVKBUIFYgVKBVoB9KBdiAl0MGaSfbMgqu7id+gyf2EAFmOeTd/9t+KA5cOrM8IMDoQ4kBKaQqc5kCvJK17wx0FsASusuhMkr93VRTANXCbFdeSJl3qELMNU0rHwFsW3QInkvzerBAHrJJSegbOsuJS0qypHuVABrC4IYaaSlq1IMIcyBCPwEUhOpe0+A4iGuAIeAGciaE2gCEcTn/eqR2A3Mfy4paDtXVD+FUrB3Mi6XVY3Adwkn8K0II2wMeg+nMAEXd/X2xHu2Hb75wBwBnYljMiOoQ3wLzogYW9E74cSmEAe9PQDAtJJUw1G5EA5SR8kHTZSqPXQwAqd+9nwac9XwOKAvB5wOFzHeRpWJ4HunpfHUQ9Pav9JqVkgPO85gPJU+9/hbSgV+zXMjACjA78awfeAcb6aCEtUXPAAAAAAElFTkSuQmCC",ql={redirect:!1,redirectPath:"",tgc:"",thirdPartyInfo:{thirdPartyEmail:"new_user@gmail.com",thirdPartyId:"999888777",thirdPartyType:"FACEBOOK",thirdPartyUserName:"New User"},mobileEmailList:[]};function Kl(t){const n=e(!1),a=e(null),i=e(!1),r=e(!1),s=e([]),l=e(!1);let c=null,u=null;const d="current_login_type",h="jc_auth_state_check",p="jc_auth_active_instance",f=Math.random().toString(36).substring(2,15),m=e=>new URLSearchParams(window.location.search).get(e),g=()=>{u&&(clearInterval(u),u=null),c=null},A=()=>{console.log("🧹 [Reset] 重置所有登录状态"),g(),window.removeEventListener("message",v),n.value=!1,a.value=null,i.value=!1,r.value=!1,l.value=!1,s.value=[],sessionStorage.removeItem(d),sessionStorage.removeItem(p),sessionStorage.removeItem(h)},v=async e=>{if(![window.location.origin,"https://passport.jctrans.com","https://passport-sit.jctrans.net.cn","http://localhost:8080","http://localhost:8086","http://localhost:8093"].includes(e.origin))return void console.warn("收到未知来源的消息:",e.origin);const{type:t,code:o,state:n}=e.data||{};if("THIRD_PARTY_LOGIN_CODE"===t&&o&&n){if(sessionStorage.getItem(p)!==f)return;if(sessionStorage.getItem(h)!==n)return;console.log(`🍉 [Main] 实例 ${f} 收到 Code:`,o,n),window.removeEventListener("message",v),g();const e=sessionStorage.getItem(d);if("TEST"===e){console.log("🍉 [Main] 测试模式:模拟接口返回");const e=ql;setTimeout(()=>{C(e)},500)}else await y(o,e)}},y=async(e,o)=>{const a=Y(),i={thirdPartyCode:e,appId:t.appId,redirectPath:t.redirectPath||"/",activityCode:a?.activityCode||"",referenceUserId:a?.referenceUserId||""};try{let e;"FACEBOOK"===o?e=await ue(i):"LINKEDIN"===o&&(e=await de(i)),e&&e.data&&C(e.data)}catch(r){console.error("Login API Error:",r),t.onError&&t.onError(r),A()}finally{n.value=!1,sessionStorage.removeItem(d),sessionStorage.removeItem(p)}},C=e=>{if(console.log("🍉 处理登录结果:",e),a.value=e,n.value=!1,((e,t)=>{e.thirdPartyId&&sessionStorage.setItem("jc-auth-thirdPartyId",e.thirdPartyId),e.thirdPartyEmail&&sessionStorage.setItem("jc-auth-thirdPartyEmail",e.thirdPartyEmail),e.thirdPartyType&&sessionStorage.setItem("jc-auth-thirdPartyType",e.thirdPartyType),e.thirdPartyUserName&&sessionStorage.setItem("jc-auth-thirdPartyUserName",e.thirdPartyUserName),t&&t.length>0&&sessionStorage.setItem("jc-auth-mobileEmailList",JSON.stringify(t))})(e.thirdPartyInfo,e.mobileEmailList),e.redirect&&e.tgc){const o="CPA"===t.appId?"tgc-CPA":"tgc";Zr.set(o,e.tgc,{expires:30})}const o=e.mobileEmailList||[];if(o.length>0)console.log("👉 进入绑定流程"),s.value=o,i.value=!0,r.value=!1,t.onNeedBind&&t.onNeedBind(o);else if(e.redirect)if(console.log("👉 直接登录成功,准备跳转"),i.value=!1,r.value=!1,t.onSuccess)t.onSuccess(e);else{const o=e.redirectPath||t.redirectPath;o&&(o.includes("http")?window.location.href=o:window.location.href=window.location.origin+o)}else console.log("👉 进入注册流程"),i.value=!1,s.value=[],r.value=!0};return o(()=>{(()=>{if(window.opener&&window.opener!==window){const e=m("code"),t=m("state");e&&(console.log("🍉 [Popup] Vue 环境拿到 Code,准备回传:",e),window.opener.postMessage({type:"THIRD_PARTY_LOGIN_CODE",code:e,state:t},"*"),window.close())}})()}),N(()=>{window.removeEventListener("message",v),A()}),{isLoading:n,isBindDialogVisible:i,isRegisterVisible:r,isUserClosed:l,bindList:s,loginResult:a,startLogin:e=>{if(n.value)return;A(),window.addEventListener("message",v),n.value=!0,sessionStorage.setItem(d,e),sessionStorage.setItem(p,f);const o="jc_"+Math.random().toString(36).slice(2);sessionStorage.setItem(h,o);const a=t.baseUrl||window.location.origin+window.location.pathname;let i="";if("TEST"===e){const e=window.location.hostname.includes("jctrans.com"),t=window.location.hostname.includes("sit2"),n=window.location.hostname.includes("sit");i=`${e?"https://passport.jctrans.com/mock_auth.html":t?"https://passport-sit2.jctrans.net.cn/mock_auth.html":n?"https://passport-sit.jctrans.net.cn/mock_auth.html":"https://passport-sit.jctrans.net.cn/mock_auth.html"}?redirect_uri=${encodeURIComponent(a)}&state=${o}`}else if("FACEBOOK"===e){i=`${"https://www.facebook.com/v22.0/dialog/oauth"}?client_id=${"1819580562224685"}&redirect_uri=${encodeURIComponent(a)}&state=${o}&scope=email,public_profile&display=popup`}else if("LINKEDIN"===e){i=`${"https://www.linkedin.com/oauth/v2/authorization"}?response_type=code&client_id=${"86t0770jygwztk"}&redirect_uri=${encodeURIComponent(a)}&state=${o}&scope=profile%20email%20openid`}const r=(window.screen.width-600)/2,s=(window.screen.height-700)/2;if(console.log(`🍉 打开弹窗 [${e}]: ${i}`),c=window.open(i,"ThirdPartyLogin",`width=600,height=700,top=${s},left=${r},toolbar=no,menubar=no,scrollbars=yes`),!c)return console.error("Popup blocked by browser"),void(n.value=!1);u=setInterval(()=>{c&&c.closed&&(console.log("🍉 检测到弹窗被手动关闭,执行 Reset"),A(),l.value=!0)},1e3)},resetState:A}}const Gl={name:"RegisterForm",components:{ElDialog:Ve,ElForm:De,ElFormItem:Je,ElInput:Ue,ElButton:He,ElCheckbox:je,ElSelect:Pe,ElOption:Ne,ElRadioGroup:Ke,ElRadioButton:qe,JcFloatInput:la,CodeInput:Ar,JcFloatWrapper:Ur,JcSearch:Yo,ChineseCompanySearch:Wn,GoogleInput:ta,ApplyJoinBtn:Wr},props:{isEn:Boolean},computed:{isAgree(){return this.form.agree},countryId(){return this.form.city?.raw?.country?.id},cityId(){return this.form.city?.id},currentCountryIsChina(){const e=this.countryId||this.resistCompanyInfo?.countryId;return[1,75,71,100].includes(Number(e))},currentCompanyLabel(){return this.isEn?this.currentCountryIsChina?"Company Name in Chinese":"Company Name in English":this.currentCountryIsChina?"公司中文名称":"公司英文名称"}},data(){return{appId:"ERA",codeReady:!1,companyResistEn:!1,companyResistCn:!1,verifyData:{},form:{city:"",cityId:"",companyName:"",countryId:"",email:"",phone:"",code:"",password:"",sector:"Logistics",agree:!1,useKq:!1,kqCode:"",kqInfo:null,areaCode:"+86",nameCn:"",nameEn:""},sectors:[{cn:"货代",en:"Freight Forwarder",value:"Logistics"},{cn:"货主",en:"Trader",value:"Trade"},{cn:"衍生产品供应商",en:"Vendor",value:"Service"}],rules:{city:[{required:!0,message:this.isEn?"Please select a city":"请选择所在地",trigger:["change","blur"]}],companyName:[{required:!0,validator:(e,t,o)=>jr(0,t,o,this.isEn,this),trigger:"blur"}],nameCn:[{required:!0,validator:(e,t,o)=>Mr(0,t,o,this.isEn,!0),trigger:"blur"}],nameEn:[{required:!0,validator:(e,t,o)=>Mr(0,t,o,this.isEn,!1),trigger:"blur"}],email:[{required:!0,validator:(e,t,o)=>Dr(0,t,o,this.isEn),trigger:"blur"}],phone:[{required:!0,validator:(e,t,o)=>Jr(0,t,o,this.isEn),trigger:"blur"}],code:[{required:!0,validator:(e,t,o)=>Hr(0,t,o,this.isEn),trigger:"blur"}],password:[{required:!0,validator:(e,t,o)=>Or(0,t,o,this.isEn),trigger:"blur"}],agree:[{validator:(e,t,o)=>t?o():o(new Error),trigger:"change"}]},isCounting:!1,areaCodeData:[],mobileUid:"",emailUid:"",hasResistCompany:!1,resistCompanyInfo:null,loading:!1}},mounted(){this.getAreaCodeData(),this.findDict(),this.inviteJoinGetComp()},methods:{go2Agreement:zr,getAuthSessionItems:Y,go2Policy:qr,async inviteJoinGetComp(){const e=Y().compKey;if(!e)return;const{data:t}=await inviteJoinGetComp({key:e});this.hasResistCompany=!0,this.resistCompanyInfo=t.data},findDict(){ie({dictType:"cmc_company_industry_sector"}).then(e=>{console.log("🍉 ~ RegisterForm.vue:527 ~ res:",e);const t=[{cn:"货代",en:"Freight Forwarder",value:"Logistics"},{cn:"货主",en:"Trader",value:"Trade"},{cn:"衍生产品供应商",en:"Vendor",value:"Service"}];this.sectors=e.data.data.records.map(e=>({...e,...t.find(t=>t.value===e.dictValue)}))}).catch(e=>{console.log("🍉 ~ RegisterForm.vue:527 ~ err:",e)})},async getAreaCodeData(){const e=await ae();this.areaCodeData=e.data.data.records},handleSelectCity(e){this.form.cityId=e.id,this.form.countryId=e.raw?.country?.id,this.$nextTick(()=>{this.form.companyName&&this.$refs.registerFormRef.validateField("companyName"),this.$refs.registerFormRef.validateField("city")})},validateField(e){this.$refs.registerFormRef&&this.$refs.registerFormRef.validateField(e,t=>{"email"!==e&&"phone"!==e||(this.codeReady=t)})},handleGetCode({captchaData:e,startTimer:t}){this.verifyData=e;const o={target:this.form.email||this.form.phone,uuid:e.uuid,code:e.code};let n=ne,a=this.isEn?"A verification code will be sent to your email and it will be expired after 5 minutes. Please do not share your verification code with anyone.":"验证码将会发送到您的邮箱,5分钟后失效。请不要与任何人分享您的验证码。";this.currentCountryIsChina&&(n=re,a=this.isEn?"A verification code will be sent to your phone and it will be expired after 5 minutes. Please do not share your verification code with anyone.":"验证码将会发送到您的手机,5分钟后失效。请不要与任何人分享您的验证码。"),n(o).then(e=>{const o=e.data.data?.verifyCode||e.data.verifyCode;0===e.data.code&&o&&(this.currentCountryIsChina?this.mobileUid=o:this.emailUid=o,t(),Le.success(a))}).catch(e=>{console.error(e)}),console.log("发送注册验证码")},handleRegister(){this.$refs.registerFormRef.validate(e=>{if(!e)return;const t=this.getAuthSessionItems(),{thirdPartyId:o,thirdPartyEmail:n,thirdPartyType:a,thirdPartyUserName:i}={thirdPartyId:sessionStorage.getItem("jc-auth-thirdPartyId")||"",thirdPartyEmail:sessionStorage.getItem("jc-auth-thirdPartyEmail")||"",thirdPartyType:sessionStorage.getItem("jc-auth-thirdPartyType")||"",thirdPartyUserName:sessionStorage.getItem("jc-auth-thirdPartyUserName")||"",mobileEmailList:JSON.parse(sessionStorage.getItem("jc-auth-mobileEmailList")||"[]")};let r={appId:this.appId,fromSys:this.appId,passwd:tr.MD5(this.form.password).toString(),industrySector:this.form.sector,uuid:this.verifyData.uuid,code:this.verifyData.code,clickSource:t.clickSource||"",activityCode:t.activityCode||"",referenceUserId:t.referenceUserId||"",inviterEmpNo:t.empNo||"",registerType:t.registerType||"",registerEvent:t.registerEvent||"",thirdPartyId:o,thirdPartyEmail:n,thirdPartyType:a,thirdPartyUserName:i};this.currentCountryIsChina?Object.assign(r,{type:"MOBILE",areaCode:this.form.areaCode,areaCodeCountryId:this.areaCodeData.find(e=>e.telCode===this.form.areaCode)?.id,account:oe(this.form.phone),verificationCodeVal:this.form.code,verificationCodeUuid:this.mobileUid||this.form.codeUuid}):Object.assign(r,{type:"EMAIL",account:oe(this.form.email),verificationCodeVal:this.form.code,verificationCodeUuid:this.emailUid||this.form.codeUuid}),this.hasResistCompany?this.handleApplyJoinSubmit(r):this.handleNewCompanySubmit(r)})},async handleNewCompanySubmit(e){const t={...this.form.kqInfo,...e,cityId:this.form.cityId,countryId:this.form.countryId,compNameCn:this.form.companyName,compNameEn:this.form.companyName,industrySector:this.form.sector};this.$emit("register",t),this.loading=!0;try{const e=await pe(t);this.handlePostRegister(e)}catch(o){this.loading=!1}},async handleApplyJoinSubmit(e){this.getAuthSessionItems();const t={...e,compId:this.resistCompanyInfo.compId};this.form.nameCn&&(t.nameCn=this.form.nameCn),this.form.nameEn&&(t.nameEn=this.form.nameEn);["industrySector","compNameEn","compNameCn","countryId","cityId","inviterEmpNo","fromSys"].forEach(e=>delete t[e]),this.$emit("register",t),this.loading=!0;try{const e=await he(t);this.handlePostRegister(e)}catch(o){this.loading=!1}},handlePostRegister(e){const t=this.getAuthSessionItems();if(0===e.data.code)if(console.log("🍉 ~ RegisterForm.vue:717 ~ res.data:",e.data.data,e.data.data.redirect),e.data.data.redirect)try{Zr.set("tgc",e.data.data.tgc,{expires:30});const o=e.data.data.redirectPath||t.path||"/";console.log("🍉 ~ RegisterForm.vue:725 ~ redirectPath:",o),X()}catch(o){console.log("🍉 ~ RegisterForm.vue:737 ~ error:",o)}else this.loading=!1,Le.success(this.isEn?"Registration successful, pending review":"注册成功,请等待审核");else this.loading=!1,Le.error(e.data.msg)}}},Wl={class:"third-register-form-container"},Yl={class:"resist-company-info-card"},Zl={class:"card-header"},Xl={class:"company-content"},_l={class:"company-name"},$l={class:"location-info"},ec={class:"sector-section"},tc={class:"sector-label"},oc={class:"sector-group"},nc=["onClick"],ac={key:0,class:"icon-auth-checked"},ic={class:"agree-text"};const rc=/* @__PURE__ */Wo(Gl,[["render",function(e,t,o,n,a,i){const r=R("JcSearch"),p=R("JcFloatWrapper"),m=R("el-form-item"),C=R("ChineseCompanySearch"),w=R("ApplyJoinBtn"),E=R("JcFloatInput"),b=R("el-option"),I=R("el-select"),k=R("google-input"),S=R("CodeInput"),T=R("el-checkbox"),F=R("el-button"),Q=R("el-form");return l(),s("div",Wl,[h(Q,{ref:"registerFormRef",model:a.form,rules:a.rules,class:"auth-form"},{default:x(()=>[a.hasResistCompany?(l(),s(g,{key:1},[u("div",Yl,[u("div",Zl,[t[21]||(t[21]=u("div",{class:"title-group"},[u("span",{class:"tip-text"}," Company Name")],-1)),u("span",{class:"change-link",onClick:t[6]||(t[6]=e=>a.hasResistCompany=!1)},v(o.isEn?"Change":"修改"),1)]),u("div",Xl,[u("h4",_l,v(o.isEn?a.resistCompanyInfo.compNameEn:a.resistCompanyInfo.compNameCn||a.resistCompanyInfo.compNameEn),1)]),t[22]||(t[22]=u("div",{class:"card-header"},[u("div",{class:"title-group"},[u("span",{class:"tip-text"}," Location(City)")])],-1)),u("div",$l,v(o.isEn?a.resistCompanyInfo.countryNameEn:a.resistCompanyInfo.countryNameCn)+" / "+v(o.isEn?a.resistCompanyInfo.cityNameEn:a.resistCompanyInfo.cityNameCn),1)]),h(m,{prop:i.currentCountryIsChina?"nameCn":"nameEn",class:"name-input-item"},{default:x(()=>[h(E,{modelValue:a.form[i.currentCountryIsChina?"nameCn":"nameEn"],"onUpdate:modelValue":t[7]||(t[7]=e=>a.form[i.currentCountryIsChina?"nameCn":"nameEn"]=e),label:i.currentCountryIsChina?o.isEn?"Your Full Name in Chinese":"您的中文名称":o.isEn?"Your Full Name in English":"您的名称",placeholder:o.isEn?"Please enter your name to prove your identity":"请输入您的姓名,以证明您的身份"},{prefix:x(()=>[...t[23]||(t[23]=[u("i",{class:"icon-auth-user"},null,-1)])]),_:1},8,["modelValue","label","placeholder"])]),_:1},8,["prop"])],64)):(l(),s(g,{key:0},[h(m,{prop:"city"},{default:x(()=>[h(p,{label:o.isEn?"Location (City)":"所在地(城市)","has-value":!(!a.form.city||!a.form.city.id)},{default:x(()=>[h(r,{modelValue:a.form.city,"onUpdate:modelValue":t[0]||(t[0]=e=>a.form.city=e),class:"jc:my-0! search-city-item","show-search-icon":!1,style:{"--original-text-main":"#232324"},"search-type-list":["City"],onSelect:i.handleSelectCity},{prefix:x(()=>[...t[19]||(t[19]=[u("i",{class:"icon-auth-location"},null,-1)])]),_:1},8,["modelValue","onSelect"])]),_:1},8,["label","has-value"])]),_:1}),h(m,{prop:"companyName"},{default:x(()=>[h(p,{label:i.currentCompanyLabel},{default:x(()=>[h(C,{class:"jc:my-0! search-company-item","company-name":a.form.companyName,"onUpdate:companyName":t[1]||(t[1]=e=>a.form.companyName=e),useKq:a.form.useKq,"onUpdate:useKq":t[2]||(t[2]=e=>a.form.useKq=e),kqCode:a.form.kqCode,"onUpdate:kqCode":t[3]||(t[3]=e=>a.form.kqCode=e),kqInfo:a.form.kqInfo,"onUpdate:kqInfo":t[4]||(t[4]=e=>a.form.kqInfo=e),"country-id":a.form.city?.raw?.country?.id||null},{prefix:x(()=>[...t[20]||(t[20]=[u("i",{class:"icon-auth-company"},null,-1)])]),_:1},8,["company-name","useKq","kqCode","kqInfo","country-id"])]),_:1},8,["label"])]),_:1}),a.companyResistCn||a.companyResistEn?(l(),d(w,{key:0,onApplyJoin:t[5]||(t[5]=()=>a.hasResistCompany=!0)})):f("",!0)],64)),i.currentCountryIsChina?(l(),d(m,{key:2,ref:"areaCodeCountryId",class:"phone-form-item"},{default:x(()=>[(l(),d(m,{prop:"phone",ref:"phone",key:8,class:"tel-mobile","inline-message":!0},{default:x(()=>[h(k,{modelValue:a.form.phone,"onUpdate:modelValue":t[10]||(t[10]=e=>a.form.phone=e),placeholder:o.isEn?"Cell Phone Number":"手机号码",label:o.isEn?"Cell Phone Number":"手机号码",clearable:"",autocomplete:"off",onBlur:t[11]||(t[11]=e=>i.validateField("phone")),maxlength:"15",disabled:a.isCounting},{prefix:x(()=>[t[24]||(t[24]=u("i",{class:"icon-auth-phone"},null,-1)),h(m,{prop:"areaCode",class:"tel-areacode","inline-message":!0},{default:x(()=>[h(I,{modelValue:a.form.areaCode,"onUpdate:modelValue":t[8]||(t[8]=e=>a.form.areaCode=e),placeholder:o.isEn?"Code":"区号",onChange:t[9]||(t[9]=e=>i.validateField("areaCode")),disabled:a.isCounting,"popper-class":"jc-area-code-select-wrapper"},{default:x(()=>[(l(!0),s(g,null,A(a.areaCodeData,e=>(l(),d(b,{key:e.id,label:e.telCode,value:e.telCode},null,8,["label","value"]))),128)),h(b,{label:"+86",value:"+86"})]),_:1},8,["modelValue","placeholder","disabled"])]),_:1})]),_:1},8,["modelValue","placeholder","label","disabled"])]),_:1}))]),_:1},512)):f("",!0),i.currentCountryIsChina?f("",!0):(l(),d(m,{key:3,prop:"email",class:"email-form-item"},{default:x(()=>[h(E,{modelValue:a.form.email,"onUpdate:modelValue":t[12]||(t[12]=e=>a.form.email=e),label:o.isEn?"Business Email Address":"企业邮箱",placeholder:o.isEn?"Business Email Address, QQ Mail is not available":"请输入您的企业邮箱,暂不支持QQ邮箱",onBlur:t[13]||(t[13]=e=>i.validateField("email"))},{prefix:x(()=>[...t[25]||(t[25]=[u("i",{class:"icon-auth-email"},null,-1)])]),_:1},8,["modelValue","label","placeholder"])]),_:1})),h(m,{prop:"code"},{default:x(()=>[h(S,{modelValue:a.form.code,"onUpdate:modelValue":t[14]||(t[14]=e=>a.form.code=e),placeholder:o.isEn?"Verification Code":"验证码",ready:a.codeReady,"is-en":o.isEn,"show-icon":"",onSend:i.handleGetCode},{prefix:x(()=>[...t[26]||(t[26]=[u("i",{class:"icon-verify"},null,-1)])]),_:1},8,["modelValue","placeholder","ready","is-en","onSend"])]),_:1}),h(m,{prop:"password",class:"password-form-item"},{default:x(()=>[h(E,{modelValue:a.form.password,"onUpdate:modelValue":t[15]||(t[15]=e=>a.form.password=e),type:"password","show-password":"",class:"input-show-pass",label:o.isEn?"Password":"密码",placeholder:o.isEn?"Password, 6-20 characters include letters, numbers and symbols":"密码,6-20位字符,包含字母、数字和符号"},{prefix:x(()=>[...t[27]||(t[27]=[u("i",{class:"icon-auth-password"},null,-1)])]),_:1},8,["modelValue","label","placeholder"])]),_:1}),u("div",ec,[u("p",tc,v(o.isEn?"Industry Sector":"所属行业"),1),u("div",oc,[(l(!0),s(g,null,A(a.sectors,e=>(l(),s("div",{key:e.value,class:c(["sector-item",{active:a.form.sector===e.value}]),onClick:t=>a.form.sector=e.value},[B(v(o.isEn?e.en:e.cn)+" ",1),a.form.sector===e.value?(l(),s("i",ac)):f("",!0)],10,nc))),128))])]),h(m,{prop:"agree",class:"agree-item"},{default:x(()=>[h(T,{modelValue:a.form.agree,"onUpdate:modelValue":t[18]||(t[18]=e=>a.form.agree=e)},{default:x(()=>[u("span",ic,[B(v(o.isEn?"I agree":"我同意")+" ",1),u("span",{class:"link-type",onClick:t[16]||(t[16]=y((...e)=>i.go2Agreement&&i.go2Agreement(...e),["stop"]))},v(o.isEn?"User Agreement":"《用户条款和协议》"),1),B(" "+v(o.isEn?"and":"和")+" ",1),u("span",{class:"link-type",onClick:t[17]||(t[17]=y((...e)=>i.go2Policy&&i.go2Policy(...e),["stop"]))},v(o.isEn?"Privacy Policy":"《隐私政策》"),1)])]),_:1},8,["modelValue"])]),_:1}),h(F,{class:c(["submit-btn register-btn",{"register-btn-is-active":i.isAgree}]),disabled:!i.isAgree||a.loading,loading:a.loading,onClick:i.handleRegister},{default:x(()=>[B(v(o.isEn?"Register and Log in":"注册并登录")+" ",1),t[28]||(t[28]=u("i",{class:"el-icon-right",style:{"margin-left":"8px"}},null,-1))]),_:1},8,["class","disabled","loading","onClick"])]),_:1},8,["model","rules"])])}],["__scopeId","data-v-c99aa654"]]),sc={class:"third-login-container"},lc={class:"login-btns"},cc={key:0},uc={key:1,class:"jc:mt-4"},dc={key:2,class:"bind-container"},hc={class:"bind-title"},pc={key:0,class:"user-list"},fc=["onClick"],mc={class:"bind-user-card__right"},gc={class:"bind-user-card__right__title"},Ac={class:"bind-user-card__right__desc"},vc={key:0,class:"bind-user-card__right__info"},yc={key:1,class:"bind-user-card__right__info"},Cc={class:"bind-user-card__btn"},wc={key:1,class:"bind-form-content"},Ec={class:"current-bind-info"},bc={class:"highlight"},Ic={class:"register-bottom"},Bc=/* @__PURE__ */Wo(/* @__PURE__ */a({__name:"ThirdLogin",props:{isEn:{type:Boolean,default:!1},loginType:{type:String,default:"TEST"}},emits:["to-login"],setup(o,{expose:n,emit:a}){const i=o,c=a,p=window.location.hostname.includes("jctrans.com"),C=window.location.hostname.includes("sit2"),w=(window.location.hostname.includes("sit"),p?"https://passport.jctrans.com":C?"https://passport-sit2.jctrans.net.cn":"https://passport-sit.jctrans.net.cn"),{isLoading:E,isBindDialogVisible:I,isUserClosed:S,bindList:R,isRegisterVisible:T,startLogin:F}=Kl({appId:"ERA",baseUrl:`${w}/oauth_callback.html`});r(S,e=>{e&&(Le.error(i.isEn?"You have canceled the login.":"您取消了登录。"),c("to-login"))});n({initLogin:e=>{console.log("🍉 ~ ThirdLogin.vue:292 ~ handleStartLogin ~ type:",e);const t="facebook"===e?"FACEBOOK":"linkedin"===e?"LINKEDIN":e;t&&F(t)}});const Q=e(!1),L=e(null),P=t(()=>L.value?L.value:1===R.value.length?R.value[0]:null),N=e(),U=e({type:"account",username:"",password:"",email:"",phone:"",areaCode:"+86",code:""}),V=e([]),D=e(!0),M=e(!1),O=e(""),J=e(""),j=e({});let H=null;r(P,e=>{e&&(U.value.username=e.account||"",U.value.email=e.email||"",U.value.phone=e.mobile||"",e.account?U.value.type="account":e.email?U.value.type="email":U.value.type="mobile",e.mobile&&0===V.value.length&&ae().then(e=>V.value=e.data.data.records))});const z=t(()=>{const e={username:[{required:!0,trigger:"blur",message:i.isEn?"Enter Username":"请输入账号"}],password:[{required:!0,trigger:"blur",message:i.isEn?"Enter Password":"请输入密码"}],email:[{required:!0,validator:(e,t,o)=>{Dr(0,t,o,i.isEn)},trigger:"blur"}],phone:[{required:!0,validator:(e,t,o)=>{Jr(0,t,o,i.isEn)},trigger:"blur"}],code:[{required:!0,validator:(e,t,o)=>Hr(0,t,o,i.isEn),trigger:"blur"}]};return"account"===U.value.type?{username:e.username,password:e.password}:{code:e.code,..."email"===U.value.type?{email:e.email}:{phone:e.phone}}}),q=e=>{L.value=e},K=async e=>{if(N.value?.clearValidate(),"mobile"==e&&0===V.value.length){const e=await ae();V.value=e.data.data.records}},G=e=>{N.value?.validateField(e,e=>{D.value=e})},W=({captchaData:e,startTimer:t})=>{j.value=e,H=t,Y(e)},Y=e=>{const t="mobile"===U.value.type,o={target:t?U.value.phone:U.value.email,uuid:e.uuid,code:e.code};t&&(o.areaCode=U.value.areaCode);(t?re:ne)(o).then(e=>{const o=e.data.data?.verifyCode||e.data.verifyCode;0!==e.data.code&&200!==e.data.code||(t?O.value=o:J.value=o,H&&H(),Le.success(i.isEn?"Code sent":"验证码已发送"))}).catch(console.error)},Z=()=>{N.value?.validate(e=>{if(e)if("account"===U.value.type)M.value=!0;else{if(!O.value&&!J.value)return Le.error(i.isEn?"Please get code first":"请先获取验证码");_({})}})},X=e=>{M.value=!1,_(e)},_=e=>{Q.value=!0;const t={thirdPartyType:sessionStorage.getItem("current_login_type"),userId:P.value.userId,kick:!0,appId:"ERA"};let o;if("account"===U.value.type)o=fe({...t,account:U.value.username,password:tr.MD5(U.value.password).toString(),verificationCodeUuid:e.uuid,verificationCodeValue:e.code});else{const e="mobile"===U.value.type;o=me({...t,type:e?"MOBILE":"EMAIL",account:e?U.value.phone:U.value.email,verificationCodeUuid:e?O.value:J.value,verificationCodeValue:U.value.code})}o.then(e=>{"USER_HAS_OTHER_BIND"!==e.data.subCode?(e.data.tgc&&Zr.set("tgc",e.data.tgc,{expires:30}),e.data.redirectPath?window.location.href=e.data.redirectPath.includes("http")?e.data.redirectPath:window.location.origin+e.data.redirectPath:window.location.reload()):Le.error(i.isEn?"Bound to other user":"该账号已绑定其他用户")}).finally(()=>{Q.value=!1})};return(e,t)=>m((l(),s("div",sc,[m(u("div",lc,[t[15]||(t[15]=B(" Third Login... ",-1)),u("div",{class:"btn linkedin",onClick:t[0]||(t[0]=e=>b(F)("TEST"))},"TEST"),u("div",{class:"btn linkedin",onClick:t[1]||(t[1]=e=>b(F)("LINKEDIN"))},"LINKEDIN"),u("div",{class:"btn facebook",onClick:t[2]||(t[2]=e=>b(F)("FACEBOOK"))},"FACEBOOK")],512),[[k,!1]]),b(S)?(l(),s("div",cc,v((o.isEn,"")),1)):f("",!0),b(T)?(l(),s("div",uc,[h(rc,{"is-en":o.isEn},null,8,["is-en"])])):f("",!0),b(I)?(l(),s("div",dc,[u("div",hc,[B(v(P.value?o.isEn?"Log in and link":"绑定并登录":o.isEn?"Select account to link":"请选择要关联的账号")+" ",1),P.value&&b(R).length>1?(l(),s("div",{key:0,class:"back-btn",onClick:t[3]||(t[3]=e=>L.value=null)},v(o.isEn?"< Back":"< 返回选择"),1)):f("",!0)]),h(pr,{visible:M.value,"onUpdate:visible":t[4]||(t[4]=e=>M.value=e),"is-en":o.isEn,onSuccess:X},null,8,["visible","is-en"]),P.value?(l(),s("div",wc,[u("div",Ec,[u("span",null,v(o.isEn?"Binding Account:":"正在绑定账号:"),1),u("span",bc,v(P.value.account||P.value.email||P.value.mobile),1)]),h(b(De),{ref_key:"bindLoginFormRef",ref:N,model:U.value,rules:z.value,"validate-on-rule-change":!1,class:"wechat-bind-login-form-content"},{default:x(()=>[h(b(Je),{prop:"type",class:"form-type"},{default:x(()=>[h(Hl,{modelValue:U.value.type,"onUpdate:modelValue":t[5]||(t[5]=e=>U.value.type=e),"is-en":o.isEn,"show-account":"",class:"jc:max-w-full!",onChange:K},null,8,["modelValue","is-en"])]),_:1}),"account"===U.value.type?(l(),s(g,{key:0},[h(b(Je),{prop:"username",class:"form-user"},{default:x(()=>[h(ta,{modelValue:U.value.username,"onUpdate:modelValue":t[6]||(t[6]=e=>U.value.username=e),disabled:"",placeholder:o.isEn?"Username/Email/Phone Number":"用户名/邮箱/手机号"},null,8,["modelValue","placeholder"])]),_:1}),h(b(Je),{prop:"password",class:"password-item"},{default:x(()=>[h(ta,{modelValue:U.value.password,"onUpdate:modelValue":t[7]||(t[7]=e=>U.value.password=e),type:"password",class:"input-show-pass",placeholder:o.isEn?"Password":"密码","show-password":""},null,8,["modelValue","placeholder"])]),_:1})],64)):"email"===U.value.type?(l(),d(b(Je),{key:1,prop:"email"},{default:x(()=>[h(ta,{modelValue:U.value.email,"onUpdate:modelValue":t[8]||(t[8]=e=>U.value.email=e),disabled:"",placeholder:o.isEn?"Email Address":"邮箱地址",onBlur:t[9]||(t[9]=e=>G("email"))},null,8,["modelValue","placeholder"])]),_:1})):(l(),d(b(Je),{key:2,ref:"areaCodeCountryId",class:"tel"},{default:x(()=>[h(b(Je),{prop:"phone",ref:"phone",class:"tel-mobile","inline-message":!0},{default:x(()=>[h(ta,{modelValue:U.value.phone,"onUpdate:modelValue":t[12]||(t[12]=e=>U.value.phone=e),placeholder:o.isEn?"Cell Phone Number":"手机号码",label:o.isEn?"Cell Phone Number":"手机号码",clearable:"",disabled:"",autocomplete:"off",onBlur:t[13]||(t[13]=e=>G("phone")),maxlength:"15"},{prefix:x(()=>[h(b(Je),{prop:"areaCode",class:"tel-areacode","inline-message":!0},{default:x(()=>[h(b(Pe),{modelValue:U.value.areaCode,"onUpdate:modelValue":t[10]||(t[10]=e=>U.value.areaCode=e),placeholder:o.isEn?"Code":"区号",disabled:"",onChange:t[11]||(t[11]=e=>G("areaCode")),"popper-class":"jc-area-code-select-wrapper"},{default:x(()=>[(l(!0),s(g,null,A(V.value,e=>(l(),d(b(Ne),{key:e.id,label:e.telCode,value:e.telCode},null,8,["label","value"]))),128)),h(b(Ne),{label:"+86",value:"+86"})]),_:1},8,["modelValue","placeholder"])]),_:1})]),_:1},8,["modelValue","placeholder","label"])]),_:1},512)]),_:1},512)),"email"===U.value.type||"mobile"===U.value.type?(l(),d(b(Je),{key:3,prop:"code"},{default:x(()=>[h(Ar,{modelValue:U.value.code,"onUpdate:modelValue":t[14]||(t[14]=e=>U.value.code=e),placeholder:o.isEn?"Verification Code":"验证码",ready:D.value,"is-en":o.isEn,onSend:W},null,8,["modelValue","placeholder","ready","is-en"])]),_:1})):f("",!0),u("div",Ic,[h(b(He),{class:"submit-btn",onClick:Z,loading:Q.value},{default:x(()=>[B(v(o.isEn?"Login and Link":"登录并绑定")+" ",1),t[19]||(t[19]=u("img",{style:{width:"16px",height:"16px","vertical-align":"middle","margin-left":"4px"},src:zl,alt:""},null,-1))]),_:1},8,["loading"])])]),_:1},8,["model","rules"])])):(l(),s("div",pc,[(l(!0),s(g,null,A(b(R),(e,n)=>(l(),s("div",{class:"bind-user-card",key:n,onClick:t=>q(e)},[t[18]||(t[18]=u("div",{class:"bind-user-card__left"},[u("div",{class:"account-icon"})],-1)),u("div",mc,[u("div",gc,v(o.isEn?e.userNameEn||e.userNameCn:e.userNameCn||e.userNameEn),1),u("div",Ac,v(o.isEn?e.compNameEn||e.compNameCn:e.compNameEn||e.compNameEn),1),e.email?(l(),s("div",vc,[t[16]||(t[16]=u("img",{src:"data:image/svg+xml,%3c?xml%20version='1.0'%20standalone='no'?%3e%3c!DOCTYPE%20svg%20PUBLIC%20'-//W3C//DTD%20SVG%201.1//EN'%20'http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd'%3e%3csvg%20t='1767855712095'%20class='icon'%20viewBox='0%200%201024%201024'%20version='1.1'%20xmlns='http://www.w3.org/2000/svg'%20p-id='9362'%20xmlns:xlink='http://www.w3.org/1999/xlink'%20width='200'%20height='200'%3e%3cpath%20fill='currentcolor'%20d='M113.242353%20250.217412l356.352%20356.412235a60.235294%2060.235294%200%200%200%2080.655059%204.156235l4.577882-4.156235%20356.111059-356.171294c1.204706%204.397176%201.987765%208.914824%202.409412%2013.552941l0.240941%206.987294v481.882353c0%2042.345412-32.768%2077.101176-74.270118%2080.112941l-6.023529%200.240942H190.765176a80.293647%2080.293647%200%200%201-80.112941-74.330353l-0.180706-6.02353v-481.882353c0-4.818824%200.421647-9.456941%201.204706-14.034823l1.505883-6.746353z%20m720.052706-59.512471c4.818824%200%209.637647%200.421647%2014.215529%201.204706l6.866824%201.566118-342.136471%20342.13647-342.256941-342.13647c4.397176-1.204706%209.035294-2.048%2013.673412-2.409412l7.107764-0.361412h642.529883z'%20p-id='9363'%3e%3c/path%3e%3c/svg%3e"},null,-1)),B(" "+v(e.email),1)])):f("",!0),e.mobile?(l(),s("div",yc,[t[17]||(t[17]=u("img",{src:"data:image/svg+xml,%3c?xml%20version='1.0'%20standalone='no'?%3e%3c!DOCTYPE%20svg%20PUBLIC%20'-//W3C//DTD%20SVG%201.1//EN'%20'http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd'%3e%3csvg%20t='1767855760413'%20class='icon'%20viewBox='0%200%201024%201024'%20version='1.1'%20xmlns='http://www.w3.org/2000/svg'%20p-id='9516'%20xmlns:xlink='http://www.w3.org/1999/xlink'%20width='200'%20height='200'%3e%3cpath%20d='M694.874353%20918.949647c-57.825882-2.108235-221.726118-24.696471-393.336471-196.367059-171.610353-171.550118-194.258824-335.450353-196.367058-393.33647-3.252706-88.124235%2064.271059-173.778824%20142.336-207.209412a59.030588%2059.030588%200%200%201%2058.006588%206.324706c64.210824%2046.863059%20108.604235%20117.639529%20146.672941%20173.357176%2017.227294%2025.178353%2013.071059%2059.512471-10.24%2079.75153L363.52%20439.717647a19.275294%2019.275294%200%200%200-5.722353%2024.696471c17.709176%2032.346353%2049.332706%2080.353882%2085.473882%20116.495058%2036.141176%2036.141176%2086.437647%2069.752471%20120.952471%2089.509648a19.395765%2019.395765%200%200%200%2025.840941-6.445177l50.959059-77.703529c19.516235-25.961412%2056.018824-31.623529%2082.582588-13.251765%2056.500706%2039.092706%20122.458353%2082.642824%20170.706824%20144.444235a59.030588%2059.030588%200%200%201%207.589647%2059.632941c-33.611294%2078.426353-118.663529%20145.167059-207.088941%20141.914353z'%20p-id='9517'%3e%3c/path%3e%3c/svg%3e"},null,-1)),B(" "+v(e.mobile),1)])):f("",!0)]),u("div",Cc,[h(b(He),{type:"primary",size:"small",onClick:y(t=>q(e),["stop"])},{default:x(()=>[B(v(o.isEn?"Select":"选择"),1)]),_:1},8,["onClick"])])],8,fc))),128))]))])):f("",!0)])),[[b(Ge),b(E)]])}}),[["__scopeId","data-v-db9b1c7a"]]),kc={class:"wechat-choose-type"},Sc={class:"choose-title"},xc={class:"choose-nav"},Rc={class:"btn-container"},Tc={class:"btn-content"},Fc={class:"btn-content"},Qc=/* @__PURE__ */Wo(/* @__PURE__ */a({__name:"WechatChooseType",props:{isEn:{type:Boolean}},emits:["toBind","toRegister"],setup(e,{emit:t}){const o=t,n=()=>{o("toBind")},a=()=>{o("toRegister")};return(t,o)=>(l(),s("div",kc,[u("div",null,[u("div",Sc,v(e.isEn?"Please select whether you already have a JCtrans account":"请选择是否已有JCtrans账号"),1),u("div",xc,v(e.isEn?"If you already have a JCtrans account, you can directly link it with WeChat. If you do not have a JCtrans account, please register first":"若已有JCtrans账号,可直接与微信绑定;若没有JCtrans账号,请先注册"),1),u("div",Rc,[h(b(He),{class:"choose-btn jc:mb-6 default-btn jc:outline-none!",onClick:a},{default:x(()=>[u("div",Tc,[o[0]||(o[0]=u("img",{class:"icon-account",src:"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAADAAAAAwCAYAAABXAvmHAAAAAXNSR0IArs4c6QAAAkZJREFUaEPtmMtxE0EQQF+LC9xEBnYEQATgCHAIJgKL00onVhdLOkmKwAoBIrAyQETAZoBufA40NWuJMirt7vTsx6hq5rrTO/36M93TwokvOXH9iQCP7cHogeiBmhaIIaQT3iC8BS6Bs51BN8AGZSwjsppGLhUP9oCm9HnGB5RBxQkLvjOWlG0bIEEAufJPuQNeeiq14QcXbUCEAcyYV1r+kExYSMJ7T2DvbWYAnXCG8NX7hIcblQsZsQ6SLRCyA0y5Ba6ClFCWMqrIGeOP7QAzPqPesX+oTiZDzo06NnsL6RSto4AMm20g7R6IANED/0RwSAi5K3TfMtjSQdhIwiubUPnuEIAFcB2oxEqGvCuS3V8QlkS3A9w3b66NsC/lvKy56wTAaa1T7F7wKGLdAczp84s7Q0HzauY6A8i94CB+klbmg7J0+3w60U4B9gmQN3eQ0uPFA49kKJ+Aj0XNm7WiFyW2OYntmXtc4uQBjmE9Sgg15ZHd7ZY3iq3WgSYVPvxXpx7IpxE9XufvYvc+EPoo/VwpYYuSIWT85guw9nmJtQ6wm0S4NmLwV1l/l7jxyrps1NIagPcIxR9m1dTMqPIa1RsuecJtgMWrcFytcIOvVdXGsu+lABoyPrFqI6SSMLaK7fcXAugsn7q5VqH9de+JoLPKAL61EDbHjSFsJeF5iKX+DwAIHrcUA9wwoMc8xCpmmTZCKC/tE67ocW3o+626u2K3lCR/IAWtyms06K8dCkWADo199KjogeiBmhaIIVTTgLXF/wBd2cQxtxFH4QAAAABJRU5ErkJggg==",alt:"register"},null,-1)),B(" "+v(e.isEn?"Create New Account":"注册新账号"),1)])]),_:1}),h(b(He),{type:"primary",class:"choose-btn submit-btn jc:outline-none!",onClick:n},{default:x(()=>[u("div",Fc,[o[1]||(o[1]=u("img",{class:"icon-account",src:"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAADAAAAAwCAYAAABXAvmHAAAAAXNSR0IArs4c6QAAAmtJREFUaEPtmN1tFEEQhKsSIAEgAAQBGALg5x2IAAIAAsAEYMO7HYHFu+0EMARgEYAhASdQqNCsdLfs3vb07p2xNCPdy932bX1dPTM9Q9zywVuuHw3gph1sDjQHZmaglZCkJwCeAngB4F5J6CUAfw5JXs1M8sbwtAOS7gD4AODNhMBjAAckr7cBkgIo4r8CeBgUZTdebgMiC/ApkPk+2zHJj0Hg8GPVAJLuA/gefsP6g3bhIhk7GJYB+AzgdVLE4i5kAM4BPEoCXJHcS8Yu5sDvOQJI3p0T34/NONAAmgMrGciU0I+VlqE2mZck3XYsNjIAmU2sE3xC8t1i6oH6I6WkxwDcRmTGXm1zVzbO5ySPhl5Y7YD/RNI+gLeVBEckHRceRbyT5S53fwgiC+BOdKvNXE+8W/JXQ+6lAIoLhngfcMLW+1wQbqej4q0jDdDVQXmZQdxad+31LwCnAM7HmjdJLsGzflZrxC8CEC7olQcl+RDk1WytNGrF3ySAW/Jucv6FKHxr30VWrNkllHGgzKE+hLV4tRmdsIsto1nR/bheyfjnKvGzSqjcRnhT6yavVyV/PLziWIwns8/DFyS/DYGvQGhsqdyUsKoSKod5rx6ehJ3YqCEG8nHyn6uWAoFIzfdfFgKouEKJwpwsdWc0CSDpGYAviYxPwdgRu2GY9NgIIGlO5xkVZYiD6MPhEpLkWzfvsLsYaYhRByT93ELZjCXjmuSDTKb+F4D0dcsmgK5fySSmNsaXv4e1QZMbmSTfwBkkeolbq8EbnQ86vsFOjcllNPWvOwxqADtM9uCrmgPNgZkZaCU0M4Gzw/8A2kXkMc0wZl8AAAAASUVORK5CYII=",alt:"login"},null,-1)),B(" "+v(e.isEn?"Bind Existing Account":"绑定已有账号"),1)])]),_:1})])])]))}}),[["__scopeId","data-v-29100ac5"]]);function Lc(t={}){const{appId:o="ERA",isEn:n=!1}=t,a=e(!1),i=e(!1),r=e(null),s=e(!1),l=e=>{const t=Y()||{},o=e.redirectPath||t.path||"/";e.result&&Z(e.result),console.log("🍉 Redirecting to:",o),o.startsWith("http"),window.location.href=o},c=async e=>{const{loginType:i,loginForm:c={},captchaData:d={},isKick:h=!1,mobileUid:p,emailUid:f,areaCodeData:m=[]}=e;a.value=!0,h||(r.value=d);const g=Y()||{},A={appId:o,fromSys:o,kick:h,inviterInfo:g.empNo||void 0,redirectPath:g.path||"/",...g,...d};let v=ge;if("account"===i)Object.assign(A,{type:"PASSWORD",username:c.username,password:tr.MD5(c.password).toString(),uniqueCode:""});else if("wechat"===i)Object.assign(A,{type:"WECHAT",uniqueCode:g.uniqueCode}),g.uniqueCode||A.uniqueCode||console.warn("WeChat login missing uniqueCode"),v=ge;else{const e="mobile"===c.type,t=e?p:f;if(Object.assign(A,{type:e?"MOBILE":"EMAIL",account:e?c.phone:c.email,verificationCodeValue:c.code,verificationCodeUuid:t}),e){const e=m.find(e=>e.telCode===c.areaCode);A.areaCode=c.areaCode,A.areaCodeCountryId=e?.id}if(!A.verificationCodeUuid)return a.value=!1,void Le.error(n?"Please get the verification code first":"请先获取验证码");v=ve}try{const{data:o}=await v(A);if(console.log("🍉 ~ useAuthLogin.ts:144 ~ handleAuthSubmit ~ res:",o),0===o.code){const i=o.data||{};if(!0===i.hasLogon&&!i.tgc)return void u(e);if(i.tgc){i.result&&Z(i.result),Zr.set("tgc",i.tgc,{expires:30,domain:Ae()});const e=i.result?.improveComp;if(e)return s.value=!0,a.value=!1,void(t.onNeedComplete&&t.onNeedComplete(i));Le.success(n?"Login successful":"登录成功"),t.onSuccess?t.onSuccess(i):l(i)}else t.onSuccess&&t.onSuccess(i)}else Le.error(o.msg||(n?"Login failed":"登录失败"))}catch(y){console.error("Login Error:",y),Le.error(n?"Network Error":"网络请求异常")}finally{a.value=!1}},u=e=>{We.confirm(n?"The account is logged in. Log in again?":"当前账号已在线,是否继续登录?",n?"Tips":"提示",{confirmButtonText:n?"Confirm":"确定",cancelButtonText:n?"Cancel":"取消",customClass:"auth-confirm-kick-popup",type:"warning"}).then(()=>{c({...e,isKick:!0})}).catch(()=>{a.value=!1})};return{loading:a,captchaVisible:i,handleAuthSubmit:c,executeRedirect:l}}const Pc={class:"bind-wechat-title"},Nc={class:"title"},Uc={class:"sub-title"},Vc={class:"register-bottom"},Dc=/* @__PURE__ */Wo(/* @__PURE__ */a({__name:"WechatBindLogin",props:{isEn:{type:Boolean}},emits:["needComplete"],setup(o,{emit:n}){const a=o,i=n,{loading:r,captchaVisible:c,handleAuthSubmit:p}=Lc({appId:"ERA",isEn:a.isEn,onNeedComplete:e=>{console.log("需要完善信息,暂不关闭弹窗"),i("needComplete",e)}}),m=e({type:"account",username:"",password:"",remember:!1,email:"",phone:"",areaCode:"",code:""}),y=e([]),C=e(),w=e(!1),E=e(!1),I=e({}),k=e(""),S=e(""),R=t(()=>m.value.type),T=t(()=>{const e={username:[{required:!0,trigger:"blur",message:a.isEn?"Please enter your Username/phone number/email":"请输入账号/手机号/邮箱"}],password:[{required:!0,trigger:"blur",message:a.isEn?"Please enter the password":"请输入密码"}],email:[{required:!0,validator:(e,t,o)=>{Dr(0,t,o,a.isEn)},trigger:"blur"}],phone:[{required:!0,validator:(e,t,o)=>{Jr(0,t,o,a.isEn)},trigger:"blur"}],code:[{required:!0,validator:(e,t,o)=>{Hr(0,t,o,a.isEn)},trigger:"blur"}]};return"account"===R.value?{username:e.username,password:e.password}:"email"===R.value||"mobile"===R.value?{code:e.code,..."email"===m.value.type?{email:e.email}:{phone:e.phone}}:{}});async function F(e){if("mobile"==e&&0===y.value.length){const e=await ae();y.value=e.data.data.records}}function Q(e){C.value.validateField(e,e=>{w.value=e})}function L(){C.value.validate(e=>{if(e)if("account"===R.value)c.value=!0;else{if(!I.value||!I.value.code)return Le.error(a.isEn?"Please get code first":"请先获取验证码");P(I.value)}})}function P(e){c.value=!1;const t=(Y()||{}).uniqueCode||"";p({loginType:"account"===R.value?"account":"code",loginForm:m.value,captchaData:{...e,uniqueCode:t},mobileUid:k.value,emailUid:S.value,areaCodeData:y.value})}function N({captchaData:e,startTimer:t}){const o="mobile"===m.value.type;I.value=e;const n={target:m.value.email||m.value.phone,uuid:e.uuid,code:e.code};o&&(n.areaCode=m.value.areaCode);(o?re:ne)(n).then(e=>{const n=e.data.data?.verifyCode||e.data.verifyCode;0===e.data.code&&n&&(o?k.value=n:S.value=n,t(),Le.success(a.isEn?"Verification code sent":"验证码已发送"))}).catch(e=>{console.error(e)}),console.log("发送注册验证码")}return(e,t)=>(l(),s("div",null,[u("div",Pc,[u("div",Nc,[t[11]||(t[11]=u("img",{class:"icon-auth-wechat",src:"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAFAAAABQCAYAAACOEfKtAAAAAXNSR0IArs4c6QAABeFJREFUeF7tm19S40YQxr+Wlspj2BPE3ABOYGQOEDhB8AnCPqay4H+V5yUnAE4AvAfknGC9J4hvEOVxa0GzNZKNZVt4etQj21RGj/b0uPXz1zPdPRLBXyICJLL2xvAAhSLwAD1AIQGhuVegBygkIDT3CvQAhQSE5l6BHqCQgNDcK9ADFBIQmnsFeoBCAkJzr8A3BTDu7gI/7AJPDUA1ct8pAZAAQYLo95HwftZuXq8CM2DBMdKgCUoPAUygrbpPGoFoBKh74HmIqKsBb+1VD8B4cAiFDqD2AeyK7p6Ca0DdIDofiuapydgtwBk4rTbHFw1B79qIfhs7nlg0nRuAeah2oHAm8oZjnCny6cO2hLYcYNxtQIW3k3DlIHAxZgzaibZBjTKAGbwg5m0OLrjNzZGAqI3o/M75zBYTVge4WXizWyQ62STEagC3BV6OMQGF0aZyyIoA+1dQODUoPYFSNwhohFQ1QPQLP9T1jqvzQABKp0KZ7aprDEoPNrGx2AN86J+CcGWERzsHc4t8rtp/jMsL0R2i85O5cQ+9SxD9utJWqR6OOl3j/I4H2AN87GsIhopC3aPVOV7y9XHw2bhb50qaL+my/FLpzWr1RTt7696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MRoMxuwfSE89W0tz16rysrb3hBe/Pcfel0QdSxEwRuqe5D6zFl4ba8CizeWq/GK3Y7iQKmw45ZN+zYAvoS1rrefzgBqWp7a6dfF5vuG+qzkqCN+r+VtAZxT5eAw26lTaoI0nOnLi3qQPnCiEYL0CxAOswc2MxVTt9Axsk6a374COaFpGpMn6/oZ78bkwXTRG6JvV4EmUKbvNUgHLzD+fwGaADO/9wCZoF4b5gF6gEICQnOvQA9QSEBo7hXoAQoJCM29Aj1AIQGhuVegBygkIDT3CvQAhQSE5l6BHqCQgND8O/QeMm9D6KpFAAAAAElFTkSuQmCC",alt:""},null,-1)),B(" "+v(o.isEn?"Log in and link with WeChat":"登录并绑定微信"),1)]),u("div",Uc,v(o.isEn?"After linking, you can log in via WeChat scan, which is convenient and quick":"绑定后,可通过微信扫码登录,方便快捷"),1)]),h(b(De),{ref_key:"bindLoginFormRef",ref:C,model:m.value,rules:T.value,"validate-on-rule-change":!1,class:"wechat-bind-login-form-content"},{default:x(()=>[h(b(Je),{prop:"type",class:"form-type"},{default:x(()=>[h(Hl,{modelValue:m.value.type,"onUpdate:modelValue":t[0]||(t[0]=e=>m.value.type=e),"is-en":o.isEn,"show-account":"",class:"jc:max-w-full!",onChange:F},null,8,["modelValue","is-en"])]),_:1}),"account"===R.value?(l(),s(g,{key:0},[h(b(Je),{prop:"username",class:"form-user"},{default:x(()=>[h(ta,{modelValue:m.value.username,"onUpdate:modelValue":t[1]||(t[1]=e=>m.value.username=e),placeholder:o.isEn?"Username/Email/Phone Number":"用户名/邮箱/手机号"},null,8,["modelValue","placeholder"])]),_:1}),h(b(Je),{prop:"password",class:"password-item"},{default:x(()=>[h(ta,{modelValue:m.value.password,"onUpdate:modelValue":t[2]||(t[2]=e=>m.value.password=e),type:"password",class:"input-show-pass",placeholder:o.isEn?"Password":"密码","show-password":""},null,8,["modelValue","placeholder"])]),_:1})],64)):"email"===R.value?(l(),d(b(Je),{key:1,prop:"email"},{default:x(()=>[h(ta,{modelValue:m.value.email,"onUpdate:modelValue":t[3]||(t[3]=e=>m.value.email=e),placeholder:o.isEn?"Email Address":"邮箱地址",onBlur:t[4]||(t[4]=e=>Q("email"))},null,8,["modelValue","placeholder"])]),_:1})):(l(),d(b(Je),{key:2,ref:"areaCodeCountryId",class:"tel"},{default:x(()=>[(l(),d(b(Je),{prop:"phone",ref:"phone",key:8,class:"tel-mobile","inline-message":!0},{default:x(()=>[h(ta,{modelValue:m.value.phone,"onUpdate:modelValue":t[7]||(t[7]=e=>m.value.phone=e),placeholder:o.isEn?"Cell Phone Number":"手机号码",label:o.isEn?"Cell Phone Number":"手机号码",clearable:"",autocomplete:"off",onBlur:t[8]||(t[8]=e=>Q("phone")),maxlength:"15",disabled:E.value},{prefix:x(()=>[h(b(Je),{prop:"areaCode",class:"tel-areacode","inline-message":!0},{default:x(()=>[h(b(Pe),{modelValue:m.value.areaCode,"onUpdate:modelValue":t[5]||(t[5]=e=>m.value.areaCode=e),placeholder:o.isEn?"Code":"区号",onChange:t[6]||(t[6]=e=>Q("areaCode")),disabled:E.value,"popper-class":"jc-area-code-select-wrapper"},{default:x(()=>[(l(!0),s(g,null,A(y.value,e=>(l(),d(b(Ne),{key:e.id,label:e.telCode,value:e.telCode},null,8,["label","value"]))),128)),h(b(Ne),{label:"+86",value:"+86"})]),_:1},8,["modelValue","placeholder","disabled"])]),_:1})]),_:1},8,["modelValue","placeholder","label","disabled"])]),_:1}))]),_:1},512)),"email"===R.value||"mobile"===R.value?(l(),d(b(Je),{key:3,prop:"code"},{default:x(()=>[h(Ar,{modelValue:m.value.code,"onUpdate:modelValue":t[9]||(t[9]=e=>m.value.code=e),placeholder:o.isEn?"Verification Code":"验证码",ready:w.value,"is-en":o.isEn,onSend:N},null,8,["modelValue","placeholder","ready","is-en"])]),_:1})):f("",!0),u("div",Vc,[h(b(He),{class:"submit-btn",onClick:L,loading:b(r)},{default:x(()=>[B(v(o.isEn?"Login and Link":"登录并绑定")+" ",1),t[12]||(t[12]=u("img",{style:{width:"16px",height:"16px","vertical-align":"middle"},src:zl,alt:""},null,-1))]),_:1},8,["loading"])])]),_:1},8,["model","rules"]),h(pr,{visible:b(c),"onUpdate:visible":t[10]||(t[10]=e=>V(c)?c.value=e:null),"is-en":o.isEn,onSuccess:P},null,8,["visible","is-en"])]))}}),[["__scopeId","data-v-44314646"]]),Mc={name:"CompleteInfoForm",components:{ElForm:De,ElFormItem:Je,ElButton:He,ElSelect:Pe,ElOption:Ne,JcFloatInput:la,CodeInput:Ar,JcFloatWrapper:Ur,JcSearch:Yo,ChineseCompanySearch:Wn,GoogleInput:ta,JcVerifySlide:pr,ApplyJoinBtn:Wr},props:{isEn:Boolean},emits:["success"],data(){return{loading:!1,verifyVisible:!1,verifyData:{},codeReady:!1,mobileUid:"",emailUid:"",areaCodeData:[],hasResistCompany:!1,companyResistCn:!1,companyResistEn:!1,resistCompanyInfo:null,form:{city:"",cityId:"",countryId:"",companyName:"",nameCn:"",nameEn:"",sector:"Logistics",phone:"",areaCode:"+86",email:"",code:"",useKq:!1,kqCode:"",kqInfo:null},sectors:[{cn:"货代",en:"Freight Forwarder",value:"Logistics"},{cn:"货主",en:"Trader",value:"Trade"},{cn:"衍生产品供应商",en:"Vendor",value:"Service"}],rules:{city:[{required:!0,message:this.isEn?"Please select a city":"请选择所在地",trigger:["change","blur"]}],companyName:[{required:!0,validator:(e,t,o)=>this.hasResistCompany?o():jr(0,t,o,this.isEn,this),trigger:"blur"}],nameCn:[{required:!0,validator:(e,t,o)=>Mr(0,t,o,this.isEn,!0),trigger:"blur"}],nameEn:[{required:!0,validator:(e,t,o)=>Mr(0,t,o,this.isEn,!1),trigger:"blur"}],phone:[{required:!0,validator:(e,t,o)=>Jr(0,t,o,this.isEn),trigger:"blur"}],email:[{required:!0,validator:(e,t,o)=>Dr(0,t,o,this.isEn),trigger:"blur"}],code:[{required:!0,validator:(e,t,o)=>Hr(0,t,o,this.isEn),trigger:"blur"}]}}},computed:{countryId(){return this.form.city?.raw?.country?.id||this.resistCompanyInfo?.countryId},cityId(){return this.form.city?.id},currentCountryIsChina(){const e=this.countryId;return[1,75,71,100].includes(Number(e))},currentCompanyLabel(){return this.isEn?this.currentCountryIsChina?"Company Name in Chinese":"Company Name in English":this.currentCountryIsChina?"公司中文名称":"公司英文名称"},isShowMobileCode(){return this.currentCountryIsChina},isShowEmailCode(){return!this.currentCountryIsChina}},mounted(){this.getAreaCodeData(),this.findDict()},methods:{handleCompanyExistStatus(e){e&&(this.companyResistCn=e.cnExists,this.companyResistEn=e.enExists,this.resistCompanyInfo=e.companyInfo)},handleApplyJoinClick(){this.hasResistCompany=!0,this.$nextTick(()=>{this.$refs.formRef.clearValidate("companyName")})},async getAreaCodeData(){const e=await ae();this.areaCodeData=e.data.data.records},findDict(){ie({dictType:"cmc_company_industry_sector"}).then(e=>{const t=[{cn:"货代",en:"Freight Forwarder",value:"Logistics"},{cn:"货主",en:"Trader",value:"Trade"},{cn:"衍生产品供应商",en:"Vendor",value:"Service"}];this.sectors=e.data.data.records.map(e=>({...e,...t.find(t=>t.value===e.dictValue)}))})},handleSelectCity(e){this.form.cityId=e.id,this.form.countryId=e.raw?.country?.id,this.$nextTick(()=>{!this.hasResistCompany&&this.form.companyName&&this.$refs.formRef.validateField("companyName"),this.$refs.formRef.validateField("city")})},validateField(e){this.$refs.formRef.validateField(e,t=>{"phone"!==e&&"email"!==e||(this.codeReady=t)})},handleGetCode({captchaData:e,startTimer:t}){this.verifyData=e;const o={target:this.isShowMobileCode?this.form.phone:this.form.email,uuid:e.uuid,code:e.code},n=this.isShowMobileCode?re:ne;this.isShowMobileCode&&(o.areaCode=this.form.areaCode,o.areaCodeCountryId=this.areaCodeData.find(e=>e.telCode===this.form.areaCode).id),n(o).then(e=>{const o=e.data.data?.verifyCode||e.data.verifyCode;0===e.data.code&&o&&(this.isShowMobileCode?this.mobileUid=o:this.emailUid=o,t(),Le.success(this.isEn?"Code Sent":"验证码已发送"))})},handleSubmit(){this.$refs.formRef.validate(e=>{e&&(this.hasResistCompany?this.handleJoinSubmit():this.handleNewSubmit())})},handleNewSubmit(){this.loading=!0;const e={nameCn:this.form.nameCn,nameEn:this.form.nameEn,cityId:this.form.cityId,countryId:this.form.countryId,industrySector:this.form.sector,compNameCn:this.currentCountryIsChina?this.form.companyName:"",compNameEn:this.currentCountryIsChina?"":this.form.companyName,areaCode:this.form.areaCode,areaCodeCountryId:this.areaCodeData.find(e=>e.telCode===this.form.areaCode).id,mobile:this.form.phone,mobileVerificationCodeUuid:this.mobileUid,mobileVerificationCodeVal:this.isShowMobileCode?this.form.code:"",email:this.form.email,emailVerificationCodeUuid:this.emailUid,emailVerificationCodeVal:this.isShowEmailCode?this.form.code:"",toSys:"ERA",...this.form.kqInfo};Ce(e).then(e=>{0===e.data.code?(Le.success(this.isEn?"Success":"提交成功"),this.$emit("success",e.data.data)):Le.error(e.data.msg)}).finally(()=>{this.loading=!1})},handleJoinSubmit(){this.loading=!0;const e={compId:this.resistCompanyInfo.compId,nameCn:this.form.nameCn,nameEn:this.form.nameEn,industrySector:this.form.sector,areaCode:this.form.areaCode,areaCodeCountryId:this.areaCodeData.find(e=>e.telCode===this.form.areaCode).id,mobile:this.form.phone,account:this.isShowMobileCode?this.form.phone:this.form.email,type:this.isShowMobileCode?"MOBILE":"EMAIL",mobile:this.form.phone,mobileVerificationCodeUuid:this.mobileUid,mobileVerificationCodeVal:this.isShowMobileCode?this.form.code:"",email:this.form.email,emailVerificationCodeUuid:this.emailUid,emailVerificationCodeVal:this.isShowEmailCode?this.form.code:""};ye(e).then(e=>{if(0===e.data.code){if(e.data.data.redirect)try{Cookies.set("tgc",e.data.data.tgc,{expires:30});const t=this.getAuthSessionItems();e.data.data.redirectPath||t.path;resetAuthSessionItems()}catch(t){}else this.loading=!1,Le.success(this.isEn?"Registration successful, pending review":"注册成功,请等待审核");this.$emit("success",e.data.data)}else Le.error(e.data.msg)}).finally(()=>{this.loading=!1})}}},Oc={class:"complete-info-container"},Jc={class:"header"},jc={class:"title"},Hc={class:"tip-box"},zc={class:"resist-company-info-card"},qc={class:"card-header"},Kc={class:"title-group"},Gc={class:"tip-text"},Wc={class:"company-content"},Yc={class:"company-name"},Zc={class:"card-header"},Xc={class:"title-group"},_c={class:"tip-text"},$c={class:"location-info"},eu={class:"sector-section"},tu={class:"sector-label"},ou={class:"sector-group"},nu=["onClick"],au={key:0,class:"icon-auth-checked"};const iu=/* @__PURE__ */Wo(Mc,[["render",function(e,t,o,n,a,i){const r=R("JcSearch"),p=R("JcFloatWrapper"),m=R("el-form-item"),y=R("ChineseCompanySearch"),C=R("ApplyJoinBtn"),w=R("JcFloatInput"),E=R("el-option"),b=R("el-select"),I=R("GoogleInput"),k=R("CodeInput"),S=R("el-button"),T=R("el-form");return l(),s("div",Oc,[u("div",Jc,[u("div",jc,v(o.isEn?"Complete Your Information":"完善企业信息"),1),u("div",Hc,[t[15]||(t[15]=u("img",{src:"https://resources.jctrans.com/res/era/pc/img/icon_gantan.png",alt:""},null,-1)),u("span",null,v(o.isEn?"To provide you with better service, please complete the following enterprise information":"为了给您提供更好的服务,请完善以下企业信息"),1)])]),h(T,{ref:"formRef",model:a.form,rules:a.rules,class:"auth-form"},{default:x(()=>[a.hasResistCompany?(l(),s(g,{key:1},[u("div",zc,[u("div",qc,[u("div",Kc,[u("span",Gc,v(o.isEn?"Company name":"公司名称"),1)]),u("span",{class:"change-link",onClick:t[5]||(t[5]=e=>a.hasResistCompany=!1)},v(o.isEn?"Change":"修改"),1)]),u("div",Wc,[u("h4",Yc,v(o.isEn?a.resistCompanyInfo.compNameEn||a.resistCompanyInfo.compNameCn:a.resistCompanyInfo.compNameCn||a.resistCompanyInfo.compNameEn),1)]),u("div",Zc,[u("div",Xc,[u("span",_c,v(o.isEn?"Location(City)":"所在地(城市)"),1)])]),u("div",$c,v(o.isEn?a.resistCompanyInfo.countryNameEn:a.resistCompanyInfo.countryNameCn)+" / "+v(o.isEn?a.resistCompanyInfo.cityNameEn:a.resistCompanyInfo.cityNameCn),1)]),h(m,{prop:i.currentCountryIsChina?"nameCn":"nameEn",class:"name-input-item"},{default:x(()=>[h(w,{modelValue:a.form[i.currentCountryIsChina?"nameCn":"nameEn"],"onUpdate:modelValue":t[6]||(t[6]=e=>a.form[i.currentCountryIsChina?"nameCn":"nameEn"]=e),label:i.currentCountryIsChina?o.isEn?"Your Full Name in Chinese":"您的中文名称":o.isEn?"Your Full Name in English":"您的名称",placeholder:o.isEn?"Please enter your name to prove your identity":"请输入您的姓名,以证明您的身份"},{prefix:x(()=>[...t[18]||(t[18]=[u("i",{class:"icon-auth-user"},null,-1)])]),_:1},8,["modelValue","label","placeholder"])]),_:1},8,["prop"])],64)):(l(),s(g,{key:0},[h(m,{prop:"city"},{default:x(()=>[h(p,{label:o.isEn?"Location (City)":"所在地(城市)","has-value":!(!a.form.city||!a.form.city.id)},{default:x(()=>[h(r,{modelValue:a.form.city,"onUpdate:modelValue":t[0]||(t[0]=e=>a.form.city=e),class:"jc:my-0! search-city-item","show-search-icon":!1,style:{"--original-text-main":"#232324"},"search-type-list":["City"],lang:o.isEn?"en":"zh-CN",onSelect:i.handleSelectCity},{prefix:x(()=>[...t[16]||(t[16]=[u("i",{class:"icon-auth-location"},null,-1)])]),_:1},8,["modelValue","lang","onSelect"])]),_:1},8,["label","has-value"])]),_:1}),h(m,{prop:"companyName"},{default:x(()=>[h(p,{label:i.currentCompanyLabel},{default:x(()=>[h(y,{class:"jc:my-0! search-company-item","company-name":a.form.companyName,"onUpdate:companyName":t[1]||(t[1]=e=>a.form.companyName=e),useKq:a.form.useKq,"onUpdate:useKq":t[2]||(t[2]=e=>a.form.useKq=e),kqCode:a.form.kqCode,"onUpdate:kqCode":t[3]||(t[3]=e=>a.form.kqCode=e),kqInfo:a.form.kqInfo,"onUpdate:kqInfo":t[4]||(t[4]=e=>a.form.kqInfo=e),lang:o.isEn?"en":"zh-CN","country-id":i.countryId||null,"onUpdate:existStatus":i.handleCompanyExistStatus},{prefix:x(()=>[...t[17]||(t[17]=[u("i",{class:"icon-auth-company"},null,-1)])]),_:1},8,["company-name","useKq","kqCode","kqInfo","lang","country-id","onUpdate:existStatus"])]),_:1},8,["label"])]),_:1}),a.companyResistCn||a.companyResistEn?(l(),d(C,{key:0,onApplyJoin:i.handleApplyJoinClick},null,8,["onApplyJoin"])):f("",!0)],64)),u("div",eu,[u("p",tu,v(o.isEn?"Industry Sector":"所属行业"),1),u("div",ou,[(l(!0),s(g,null,A(a.sectors,e=>(l(),s("div",{key:e.value,class:c(["sector-item",{active:a.form.sector===e.value}]),onClick:t=>a.form.sector=e.value},[B(v(o.isEn?e.en:e.cn)+" ",1),a.form.sector===e.value?(l(),s("i",au)):f("",!0)],10,nu))),128))])]),i.isShowMobileCode?(l(),s(g,{key:2},[h(m,{ref:"areaCodeCountryId",class:"phone-form-item"},{default:x(()=>[h(m,{prop:"phone",ref:"phone",class:"tel-mobile","inline-message":!0},{default:x(()=>[h(I,{modelValue:a.form.phone,"onUpdate:modelValue":t[9]||(t[9]=e=>a.form.phone=e),placeholder:o.isEn?"Cell Phone Number":"手机号码",label:o.isEn?"Cell Phone Number":"手机号码",clearable:"",autocomplete:"off",onBlur:t[10]||(t[10]=e=>i.validateField("phone")),maxlength:"15"},{prefix:x(()=>[t[19]||(t[19]=u("i",{class:"icon-auth-phone"},null,-1)),h(m,{prop:"areaCode",class:"tel-areacode","inline-message":!0},{default:x(()=>[h(b,{modelValue:a.form.areaCode,"onUpdate:modelValue":t[7]||(t[7]=e=>a.form.areaCode=e),placeholder:o.isEn?"Code":"区号",onChange:t[8]||(t[8]=e=>i.validateField("areaCode")),"popper-class":"jc-area-code-select-wrapper"},{default:x(()=>[(l(!0),s(g,null,A(a.areaCodeData,e=>(l(),d(E,{key:e.id,label:e.telCode,value:e.telCode},null,8,["label","value"]))),128))]),_:1},8,["modelValue","placeholder"])]),_:1})]),_:1},8,["modelValue","placeholder","label"])]),_:1},512)]),_:1},512),h(m,{prop:"code"},{default:x(()=>[h(k,{modelValue:a.form.code,"onUpdate:modelValue":t[11]||(t[11]=e=>a.form.code=e),placeholder:o.isEn?"Verification Code":"验证码",ready:a.codeReady,"is-en":o.isEn,"show-icon":"","form-type-color":"4",onSend:i.handleGetCode},{prefix:x(()=>[...t[20]||(t[20]=[u("i",{class:"icon-verify"},null,-1)])]),_:1},8,["modelValue","placeholder","ready","is-en","onSend"])]),_:1})],64)):f("",!0),i.isShowEmailCode?(l(),s(g,{key:3},[h(m,{prop:"email",class:"email-form-item"},{default:x(()=>[h(w,{modelValue:a.form.email,"onUpdate:modelValue":t[12]||(t[12]=e=>a.form.email=e),label:o.isEn?"Business Email Address":"企业邮箱",placeholder:o.isEn?"Business Email Address, QQ Mail is not available":"请输入您的企业邮箱,暂不支持QQ邮箱",onBlur:t[13]||(t[13]=e=>i.validateField("email"))},{prefix:x(()=>[...t[21]||(t[21]=[u("i",{class:"icon-auth-email"},null,-1)])]),_:1},8,["modelValue","label","placeholder"])]),_:1}),h(m,{prop:"code"},{default:x(()=>[h(k,{modelValue:a.form.code,"onUpdate:modelValue":t[14]||(t[14]=e=>a.form.code=e),placeholder:o.isEn?"Verification Code":"验证码",ready:a.codeReady,"is-en":o.isEn,"show-icon":"","form-type-color":"4",onSend:i.handleGetCode},{prefix:x(()=>[...t[22]||(t[22]=[u("i",{class:"icon-verify"},null,-1)])]),_:1},8,["modelValue","placeholder","ready","is-en","onSend"])]),_:1})],64)):f("",!0),h(S,{class:"submit-btn register-btn register-btn-is-active",loading:a.loading,onClick:i.handleSubmit},{default:x(()=>[B(v(o.isEn?"Submit":"完成并进入"),1)]),_:1},8,["loading","onClick"])]),_:1},8,["model","rules"])])}],["__scopeId","data-v-2fb08dd3"]]);const ru={class:"auth-footer-box"},su=/* @__PURE__ */Wo(/* @__PURE__ */a({__name:"FooterBox",props:{label:{type:String,default:""},subLabel:{type:String,default:""}},emits:["handleClick"],setup(e,{emit:t}){const o=t,n=()=>{o("handleClick")};return(t,o)=>(l(),s("div",ru,[B(v(e.label)+" ",1),u("span",{class:"action-text",onClick:y(n,["stop"])},[B(v(e.subLabel)+" ",1),o[0]||(o[0]=u("svg",{t:"1767853448095",class:"icon-more",viewBox:"0 0 1024 1024",version:"1.1",xmlns:"http://www.w3.org/2000/svg","p-id":"8538",width:"200",height:"200"},[u("path",{d:"M456.874667 798.208l-60.416-60.416L622.336 512 396.458667 286.208l60.416-60.416 256 256a42.666667 42.666667 0 0 1 0 60.416l-256 256z",fill:"#FF6A00","p-id":"8539"})],-1))])]))}}),[["__scopeId","data-v-086e48cd"]]),lu={class:"forget-password-container"},cu={class:"forget-box"},uu={class:"header-title"},du={key:0,class:"kefu-wrapper"},hu={class:"kefu-text"},pu={key:1,class:"form-wrapper"},fu={key:0},mu={key:1},gu={class:"tab-switcher"},Au={class:"default-info"},vu={class:"title"},yu={class:"user-value"},Cu={name:"AuthDialog",components:{ElDialog:Ve,ElForm:De,ElFormItem:Je,ElInput:Ue,ElButton:He,ElCheckbox:je,ElSelect:Pe,ElOption:Ne,ElRadioGroup:Ke,ElRadioButton:qe,GoogleInput:ta,CodeInput:Ar,RegisterForm:As,LoginTypeSwitcher:Hl,JcVerifySlide:pr,WechatLogin:Dl,ThirdLogin:Bc,WechatChooseType:Qc,WechatBindLogin:Dc,CompleteInfoForm:iu,ForgetPassword:/* @__PURE__ */Wo(/* @__PURE__ */a({__name:"ForgetPassword",props:["isEn"],emits:["to-login"],setup(t,{emit:o}){const n=t,a=o,{activeStep:i,activeTab:r,loading:d,verifyVisible:p,formA:m,formB:g,userData:A,disabledTabs:y,showCustomerService:C,codeCountdown:w,handleTriggerVerify:E,handleVerifySuccess:I,handleSendCodeVerifySuccess:k,handleSubmitReset:R}=function(t){const o=e(1),n=e(!1),a=e(!1),i=e(),r=S({userName:""}),s=e({}),l=e(!1),c=e("email"),u=S({email:!1,mobile:!1}),d=S({code:"",password:"",confirmPassword:""}),h=e(""),p=e(!1),f=S({mobile:!1,email:!1}),m=async e=>{n.value=!0;try{const n=await be({account:r.userName,...e});if(n.data.data?.exists){s.value=n.data.data;const e=!!s.value.email,t=!!s.value.mobile;e||t?(l.value=!1,o.value=2,e?(c.value="email",u.email=!1,u.mobile=!t):(c.value="mobile",u.mobile=!1,u.email=!0)):l.value=!0}else Le.error(t.isEn?"Account does not exist":"账号不存在")}catch(a){console.error(a)}finally{n.value=!1}},g=async(e,o)=>{try{i.value=e;const{data:n}=await Ee({account:s.value.account,target:c.value,...e});console.log("🍉 ~ useForgetPassword.ts:127 ~ sendVerifyCode ~ res:",n),0===n.code&&(Le.success(t.isEn?"Verification code sent":"验证码已发送"),h.value=n.data.verifyCode,o(),"mobile"===c.value?f.mobile=!0:f.email=!0)}catch(n){console.error(n)}};return{activeStep:o,activeTab:c,loading:n,verifyVisible:a,formA:r,formB:d,userData:s,disabledTabs:u,showCustomerService:l,codeCountdown:f,codeReady:p,handleTriggerVerify:()=>{a.value=!0},handleVerifySuccess:e=>{console.log("🍉 ~ useForgetPassword.ts:52 ~ handleVerifySuccess ~ captchaData:",e),a.value=!1,console.log("🍉 ~ useForgetPassword.ts:53 ~ handleVerifySuccess ~ ctiveStep.value:",o.value),1===o.value&&m(e)},handleSendCodeVerifySuccess:({captchaData:e,startTimer:t})=>{console.log("🍉 ~ useForgetPassword.ts:52 ~ handleSendCodeVerifySuccess ~ captchaData:",e),2===o.value&&g(e,t)},handleSubmitReset:async()=>{if(i.value?.code){n.value=!0;try{const e={id:s.value.id,account:s.value.account,codeId:h.value,codeValue:d.code,password:tr.MD5(d.password).toString(),...i.value},{data:o}=await we(e);return 0===o.code?(Le.success(t.isEn?"Password reset successfully":"密码重置成功"),!0):(Le.error(o.msg),!1)}catch(e){return console.error(e),!1}finally{n.value=!1}}else Le.info("Please get the verification code first")}}}({isEn:n.isEn}),T=e(),F=e(),Q=(e,t,o)=>{""===t?o(new Error(n.isEn?"Please input the password again":"请再次输入密码")):t!==g.password?o(new Error(n.isEn?"Two inputs don't match!":"两次输入密码不一致!")):o()},L={userName:[{required:!0,message:n.isEn?"Please enter username":"请输入账号",trigger:"blur"}]},P={code:[{required:!0,validator:(e,t,o)=>Hr(0,t,o,n.isEn),trigger:"blur"}],password:[{required:!0,validator:(e,t,o)=>Or(0,t,o,n.isEn),trigger:"blur"},{validator:Q,trigger:"blur"}],confirmPassword:[{required:!0,validator:(e,t,o)=>Or(0,t,o,n.isEn),trigger:"blur"},{validator:Q,trigger:"blur"}]},N=()=>{T.value.validate(e=>{e&&E()})},U=async()=>{F.value&&await F.value.validate(async e=>{if(e){await R()&&a("to-login")}})};return(e,o)=>(l(),s("div",lu,[u("div",cu,[u("div",uu,[u("h1",null,v(t.isEn?"Reset Password":"重置密码"),1)]),b(C)?(l(),s("div",du,[o[8]||(o[8]=u("img",{src:"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAoAAAAHgCAYAAAA10dzkAAAAAXNSR0IArs4c6QAAIABJREFUeF7svQt4VtWZ9n/vHMlBRERCtTIC9hNtEfCbqWhstRWwB9uIoo6OOBVqqx1lpAUcL/1/hP/YzxZRqTpqiyKKSqUqxioKCTM4YwKdtnKqVDoQKXQcAogBcj693/XssMObN+9h73cf1973vi6uaLL2Ws/6PSvJnWet9Twa+JAACZAACZAACZAACUSKgBap2XKyJEACJEACJEACJEACoADkIiABEiABEiABEiCBiBGgAIyYwzldEiABEiABEiABEqAA5BogARIgARIgARIggYgRoACMmMM5XRIgARIgARIgARKgAOQaIAESIAESIAESIIGIEaAAjJjDOV0SIAESIAESIAESoADkGiABEiABEiABEiCBiBGgAIyYwzldEiABEiABEiABEqAA5BogARIgARIgARIggYgRoACMmMM5XRIgARIgARIgARKgAOQaIAESIAESIAESIIGIEaAAjJjDOV0SIAESIAESIAESoADkGiABEiABEiABEiCBiBGgAIyYwzldEiABEiABEiABEqAA5BogARIgARIgARIggYgRoACMmMM5XRIgARIgARIgARKgAOQaIAESIAESIAESIIGIEaAAjJjDOV0SIAESIAESIAESoADkGiABEiABEiABEiCBiBGgAIyYwzldEiABEiABEiABEqAA5BogARIgARIgARIggYgRoACMmMM5XRIgARIgARIgARKgAOQaIAESIAESIAESIIGIEaAAjJjDOV0SIAESIAESIAESoADkGiABEiABEiABEiCBiBGgAIyYwzldEiABEiABEiABEqAA5BogARIgARIgARIggYgRoACMmMM5XRIgARIgARIgARKgAOQaIAESIAESIAESIIGIEaAAjJjDOV0SIAESIAESIAESoADkGiABEiABEiABEiCBiBGgAIyYwzldEiABEiABEiABEqAA5BogARIgARIgARIggYgRoACMmMM5XRIgARIgARIgARKgAOQaIAESIAESIAESIIGIEaAAjJjDOV0SIAESIAESIAESoADkGiABEiABEiABEiCBiBGgAIyYwzldEiABEiABEiABEqAA5BogARIgARIgARIggYgRoACMmMM5XRIgARIgARIgARKgAOQaIAESIAESIAESIIGIEaAAjJjDOV0SIAESIAESIAESoADkGiABEogcgVgl8ixOukerRI/Fd9icBEiABAJLgAIwsK6hYSRAAukIxCqRAyAHf4U8dCAH/4McFEFDD/JQqH/MQcHxj9JRO3IdIdqFGEr03nvQgZjeZye69ZHk3xB0ox3d+ucPo1urRJcj47ITEiABEnCQAAWggzDZFQmQgHMEdIH3GV205evirhD5urDLQT6akYM8qPPzqxDd6EK3Lho70dknEg+jk5FF59YMeyIBEjBPQJ0foObnxJYkQAIKEdCF3lDk4zDyMQi5yEM+8pDrWMQu6CwkongSunSBKOJwODrRgW7t++gMuum0jwRIQF0CFIDq+o6Wk4ByBHSx91coQAMKUYBcPZrn1NascjQyGCzCsBCd6EIn2tCJz6CTojBsTuZ8SMA/AhSA/rHnyCQQagL9InuyfVuEAoo9my6PF4VlaMef0cEtZJtM+ToJRJQABWBEHc9pk4DTBPoEX6se2ytEu76Vy58xToNO7K8InWhGF0agFX9GFy+duA2c/ZNAOAjwh3M4/MhZkIAvBGKPolA/u1eKQRR8vrhg4KD9BSEjhAFxC80ggaARoAAMmkdoDwkEmMDxm7mDcBiF6MEgRvgC7CzDtFx0oAlt+AzaeYZQAX/RRBLwiAAFoEegOQwJqErgeNLkQXqUrxsFqs6DdgPHU9F0oAQt2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IQgAAEIAABCKSMAAIwZRvOciEAAQhAAAIQgAACkDMAAQhAAAIQgAAEUkYAAZiyDWe5EIAABCAAAQhAAAHIGYAABCAAAQhAAAIpI4AATNmGs1wIQAACEIAABCCAAOQMQAACEIAABCAAgZQRQACmbMNZLgQgAAEIQAACEEAAcgYgAAEIQAACEIBAygggAFO24SwXAhCAAAQgAAEIIAA5AxCAAAQgAAEIQCBlBBCAKdtwlgsBCEAAAhCAAAQQgJwBCEAAAhCAAAQgkDICCMCUbTjLhQAEIAABCEAAAghAzgAEIAABCEAAAhBIGQEEYMo2nOVCAAIQgAAEIAABBCBnAAIQgAAEIAABCKSMAAIwZRvOciEAAQhAAAIQgAACkDMAAQhAAAIQgAAEUkYAAZiyDWe5EIAABCAAAQhAAAHIGYAABCAAAQhAAAIpI4AATNmGs1wIQAACEIAABCCAAOQMQAACEIAABCAAgZQRQACmbMNZLgQgAAEIQAACEEAAcgYgAAEIQAACEIBAygggAFO24SwXAhCAAAQgAAEI/D8t7N6/Cx82BAAAAABJRU5ErkJggg==",class:"kefu-img"},null,-1)),u("p",hu,v(t.isEn?"The current account does not have a phone number and email, and cannot be verified. Please contact customer service directly":"当前账号没有手机号和邮箱,无法验证,请直接联系客服。"),1),u("div",null,v(t.isEn?"Customer Service":"联系客服"),1)])):(l(),s("div",pu,[1===b(i)?(l(),s("div",fu,[h(b(De),{ref_key:"formARef",ref:T,model:b(m),rules:L},{default:x(()=>[h(b(Je),{prop:"userName",class:"jc:mb-5!"},{default:x(()=>[h(ta,{modelValue:b(m).userName,"onUpdate:modelValue":o[0]||(o[0]=e=>b(m).userName=e),placeholder:t.isEn?"Username/Email/Phone Number":"用户名/邮箱/手机号"},null,8,["modelValue","placeholder"])]),_:1}),h(b(He),{type:"primary",class:"submit-btn",loading:b(d),onClick:N},{default:x(()=>[B(v(t.isEn?"Next":"下一步"),1)]),_:1},8,["loading"])]),_:1},8,["model"])])):f("",!0),2===b(i)?(l(),s("div",mu,[u("div",gu,[u("div",{class:c(["tab-item",{active:"email"===b(r),disabled:b(y).email}]),onClick:o[1]||(o[1]=e=>!b(y).email&&(r.value="email"))},[o[9]||(o[9]=u("svg",{t:"1767855712095",class:"icon-svg",viewBox:"0 0 1024 1024",version:"1.1",xmlns:"http://www.w3.org/2000/svg","p-id":"9362","xmlns:xlink":"http://www.w3.org/1999/xlink",width:"200",height:"200"},[u("path",{fill:"currentColor",d:"M113.242353 250.217412l356.352 356.412235a60.235294 60.235294 0 0 0 80.655059 4.156235l4.577882-4.156235 356.111059-356.171294c1.204706 4.397176 1.987765 8.914824 2.409412 13.552941l0.240941 6.987294v481.882353c0 42.345412-32.768 77.101176-74.270118 80.112941l-6.023529 0.240942H190.765176a80.293647 80.293647 0 0 1-80.112941-74.330353l-0.180706-6.02353v-481.882353c0-4.818824 0.421647-9.456941 1.204706-14.034823l1.505883-6.746353z m720.052706-59.512471c4.818824 0 9.637647 0.421647 14.215529 1.204706l6.866824 1.566118-342.136471 342.13647-342.256941-342.13647c4.397176-1.204706 9.035294-2.048 13.673412-2.409412l7.107764-0.361412h642.529883z","p-id":"9363"})],-1)),B(" "+v(t.isEn?"Email Verify":"邮箱验证"),1)],2),u("div",{class:c(["tab-item",{active:"mobile"===b(r),disabled:b(y).mobile}]),onClick:o[2]||(o[2]=e=>!b(y).mobile&&(r.value="mobile"))},[o[10]||(o[10]=u("svg",{t:"1767855760413",class:"icon-svg",viewBox:"0 0 1024 1024",version:"1.1",xmlns:"http://www.w3.org/2000/svg","p-id":"9516","xmlns:xlink":"http://www.w3.org/1999/xlink",width:"200",height:"200"},[u("path",{fill:"currentcolor",d:"M694.874353 918.949647c-57.825882-2.108235-221.726118-24.696471-393.336471-196.367059-171.610353-171.550118-194.258824-335.450353-196.367058-393.33647-3.252706-88.124235 64.271059-173.778824 142.336-207.209412a59.030588 59.030588 0 0 1 58.006588 6.324706c64.210824 46.863059 108.604235 117.639529 146.672941 173.357176 17.227294 25.178353 13.071059 59.512471-10.24 79.75153L363.52 439.717647a19.275294 19.275294 0 0 0-5.722353 24.696471c17.709176 32.346353 49.332706 80.353882 85.473882 116.495058 36.141176 36.141176 86.437647 69.752471 120.952471 89.509648a19.395765 19.395765 0 0 0 25.840941-6.445177l50.959059-77.703529c19.516235-25.961412 56.018824-31.623529 82.582588-13.251765 56.500706 39.092706 122.458353 82.642824 170.706824 144.444235a59.030588 59.030588 0 0 1 7.589647 59.632941c-33.611294 78.426353-118.663529 145.167059-207.088941 141.914353z","p-id":"9517"})],-1)),B(" "+v(t.isEn?"Mobile Verify":"手机验证"),1)],2)]),h(b(De),{ref_key:"formBRef",ref:F,model:b(g),rules:P},{default:x(()=>[h(b(Je),{class:"info-item"},{default:x(()=>[u("p",Au,[u("span",vu,v("email"===b(r)?t.isEn?"Email":"邮箱":t.isEn?"Mobile":"手机号"),1),u("span",yu,v("email"===b(r)?b(A).email:b(A).mobile),1)])]),_:1}),h(b(Je),{prop:"code"},{default:x(()=>[h(Ar,{"show-icon":"",modelValue:b(g).code,"onUpdate:modelValue":o[3]||(o[3]=e=>b(g).code=e),placeholder:t.isEn?"Verification Code":"验证码",ready:!0,"is-en":t.isEn,"custom-countdown":"email"===b(r)?b(w).email:b(w).mobile,onSend:b(k)},null,8,["modelValue","placeholder","is-en","custom-countdown","onSend"])]),_:1}),h(b(Je),{prop:"password"},{default:x(()=>[h(la,{modelValue:b(g).password,"onUpdate:modelValue":o[4]||(o[4]=e=>b(g).password=e),type:"password","show-password":"",class:"input-show-pass",label:t.isEn?"Password":"密码",placeholder:t.isEn?"Password, 6-20 characters include letters, numbers and symbols":"密码,6-20位字符,包含字母、数字和符号"},{prefix:x(()=>[...o[11]||(o[11]=[u("i",{class:"icon-auth-password"},null,-1)])]),_:1},8,["modelValue","label","placeholder"])]),_:1}),h(b(Je),{prop:"confirmPassword"},{default:x(()=>[h(la,{modelValue:b(g).confirmPassword,"onUpdate:modelValue":o[5]||(o[5]=e=>b(g).confirmPassword=e),type:"password","show-password":"",class:"input-show-pass",label:t.isEn?"Confirm Password":"确认密码",placeholder:t.isEn?"Enter password again":"请再次输入密码"},{prefix:x(()=>[...o[12]||(o[12]=[u("i",{class:"icon-auth-password"},null,-1)])]),_:1},8,["modelValue","label","placeholder"])]),_:1}),h(b(He),{type:"primary",class:"submit-btn",loading:b(d),onClick:U},{default:x(()=>[B(v(t.isEn?"Confirm":"确认修改"),1)]),_:1},8,["loading"])]),_:1},8,["model"])])):f("",!0)]))]),h(su,{label:t.isEn?"Back to":"返回","sub-label":t.isEn?"log in":"登录",onHandleClick:o[6]||(o[6]=e=>a("to-login")),style:{margin:"12px -16px -16px"}},null,8,["label","sub-label"]),h(pr,{visible:b(p),"onUpdate:visible":o[7]||(o[7]=e=>V(p)?p.value=e:null),"is-en":t.isEn,onSuccess:b(I)},null,8,["visible","is-en","onSuccess"])]))}}),[["__scopeId","data-v-1956298b"]])},props:{visible:{type:Boolean,default:!1},lang:{type:String,default:""},loginPath:{type:String,default:"http://localhost:8086"},showTestThirdBtn:{type:Boolean,default:!1}},provide(){return{loginPath:this.loginPath,lang:this.lang,isEn:this.isEn}},created(){Be({prefixPath:"https://cloudapi-sit.jctrans.net.cn"})},mounted(){const e=Ie();e&&(this.loginForm.username=e,this.loginForm.remember=!0)},setup(e){const{proxy:t}=D(),{loading:o,handleAuthSubmit:n,executeRedirect:a}=Lc({appId:"ERA",isEn:"en"===e.lang||"en-US"===e.lang,onNeedComplete:e=>{console.log("需要完善信息,暂不关闭弹窗"),t.handleNeedComplete()},onSuccess:e=>{t.loginForm.remember&&ke(t.loginForm.username,!0),t.currentVisible=!1,a(e)}});return{authLoading:o,handleAuthSubmit:n,executeRedirect:a}},data(){return{currentVisible:this.visible,formMode:"login",loginType:"account",loginMethod:"email",areaCodeData:[],isCounting:!1,countdown:60,codeReady:!1,timer:null,loginForm:{type:"email",username:"",password:"",remember:!1,areaCode:"+86",phone:"",email:"",code:""},loginRules:{username:[{required:!0,trigger:"blur",message:this.isEn?"Please enter your Username/phone number/email":"请输入账号/手机号/邮箱"}],password:[{required:!0,trigger:"blur",message:this.isEn?"Please enter the password":"请输入密码"}],email:[{required:!0,validator:(e,t,o)=>Dr(0,t,o,this.isEn),trigger:"blur"}],phone:[{required:!0,validator:(e,t,o)=>Jr(0,t,o,this.isEn),trigger:"blur"}],code:[{required:!0,validator:(e,t,o)=>Hr(0,t,o,this.isEn),trigger:"blur"}]},verifyData:{},captchaVisible:!1,mobileUid:"",emailUid:"",currentVerifyData:null}},computed:{currentDialogWidth(){let e="480px";return["register","need-complete","forget-password"].includes(this.formMode)&&(e="640px"),"login"!==this.formMode||"linkedin"!==this.loginType&&"facebook"!==this.loginType&&"TEST"!==this.loginType||(e="640px"),e},computedRules(){const e={username:[{required:!0,trigger:"blur",message:this.isEn?"Please enter your Username/phone number/email":"请输入账号/手机号/邮箱"}],password:[{required:!0,trigger:"blur",message:this.isEn?"Please enter the password":"请输入密码"}],email:[{required:!0,validator:(e,t,o)=>Dr(0,t,o,this.isEn),trigger:"blur"}],phone:[{required:!0,validator:(e,t,o)=>Jr(0,t,o,this.isEn),trigger:"blur"}],code:[{required:!0,validator:(e,t,o)=>Hr(0,t,o,this.isEn),trigger:"blur"}]};return"account"===this.loginType?{username:e.username,password:e.password}:"code"===this.loginType?{code:e.code,..."email"===this.loginForm.type?{email:e.email}:{phone:e.phone}}:{}},isEn(){if(this.lang)return"en"===this.lang||"en-US"===this.lang;try{if("function"==typeof useCookie){const e=useCookie("jc-language")?.value;if(e)return/^en(-US)?$/.test(e)}}catch(e){}if("undefined"!=typeof document){const e=document.cookie||"";return/(^|;\s*)jc-language=en(-US)?(;|$)/.test(e)}try{if("function"==typeof useNuxtApp){const e=useNuxtApp();return/(^|;\s*)jc-language=en(-US)?(;|$)/.test(e?.ssrContext?.event?.node?.req?.headers?.cookie||"")}}catch(e){}return!1}},watch:{visible(e){this.currentVisible=e},currentVisible(e){this.$emit("update:visible",e)}},methods:{go2Agreement:zr,go2Policy:qr,handleOpen(){this.$emit("open")},handleClose(){this.loginType="account",this.formMode="login",this.$emit("close")},handleThirdClick(e){this.loginType=e,this.$nextTick(()=>{this.$refs.thirdLoginRef.initLogin(e)})},handleTest(e){this.formMode=e},handleNeedComplete(){this.formMode="need-complete"},handleCompleteSuccess(e){e.redirectPath?this.executeRedirect(e):this.currentVisible=!1},handleWechatNeedRegister(){this.formMode="wechat-need-register"},handleWechatLogin(){this.formMode="wechat-bind"},handleWechatRegister(){this.formMode="register"},switchLoginTab(e){this.loginType!==e&&(this.loginType=e,this.$nextTick(()=>{if(!this.$refs.loginFormRef)return;this.$refs.loginFormRef.clearValidate();const e={username:"",password:"",email:"",phone:"",code:"",areaCode:"+86",remember:this.loginForm.remember,type:this.loginForm.type};Object.assign(this.loginForm,e),this.codeReady=!1}))},validateField(e){this.$refs.loginFormRef.validateField(e,e=>{this.codeReady=e})},handleGetCode({captchaData:e,startTimer:t}){const o="mobile"===this.loginForm.type,n={target:this.loginForm.email||this.loginForm.phone,uuid:e.uuid,code:e.code};o&&(n.areaCode=this.loginForm.areaCode);const a=o?re:ne;this.verifyData=e,a(n).then(e=>{const n=e.data.data?.verifyCode||e.data.verifyCode;0===e.data.code&&n&&(o?this.mobileUid=n:this.emailUid=n,t(),Le.success(this.isEn?"Verification code sent":"验证码已发送"))}).catch(e=>{console.error(e)}),console.log("发送注册验证码")},handleLogin(){this.$refs.loginFormRef.validate(e=>{if(e)if("account"===this.loginType)this.captchaVisible=!0;else{if(console.log("🍉 ~ index.vue:795 ~ this.verifyData:",this.verifyData),console.log("🍉 ~ index.vue:796 ~ this.verifyData.code:",this.verifyData.code),!this.verifyData||!this.verifyData.uuid)return Le.error(this.isEn?"Please get the verification code first":"请先获取验证码");this.handleCaptchaSuccess(this.verifyData)}})},async handleCaptchaSuccess(e){this.captchaVisible=!1,this.handleAuthSubmit({loginType:this.loginType,loginForm:this.loginForm,captchaData:e,mobileUid:this.mobileUid,emailUid:this.emailUid,areaCodeData:this.areaCodeData,isKick:!1})},handleForget(){console.log("Forget Password"),this.formMode="forget-password"},async handleChangeSubType(e){this.loginMethod=e,"mobile"==e&&0===this.areaCodeData.length&&this.getAreaCodeData()},async getAreaCodeData(){const e=await ae();this.areaCodeData=e.data.data.records},handleToLogin(){this.formMode="login",this.loginType="account"}}},wu={key:0,class:"auth-container"},Eu={class:"login-section"},bu={class:"login-title"},Iu={key:0,class:"tab-header"},Bu={key:1,class:"tel"},ku={class:"login-passport"},Su={class:"login-remember"},xu={key:0,class:"login-agreement"},Ru={class:"login-agreement-text"},Tu={class:"login-agreement-text-item"},Fu={class:"login-agreement-text-item"},Qu={key:2},Lu={key:3},Pu={key:4,class:"third-party-sign-in"},Nu={class:"third-party-sign-in-title"},Uu={class:"third-party-sign-in-group"},Vu={class:"bottom-tip"},Du={key:3,class:"auth-container"},Mu={class:"register-section"};const Ou=/* @__PURE__ */Wo(Cu,[["render",function(e,t,o,n,a,i){const r=R("GoogleInput"),p=R("el-form-item"),m=R("LoginTypeSwitcher"),C=R("el-option"),w=R("el-select"),E=R("google-input"),b=R("CodeInput"),I=R("el-checkbox"),k=R("el-button"),S=R("el-form"),T=R("WechatLogin"),F=R("ThirdLogin"),Q=R("WechatChooseType"),L=R("WechatBindLogin"),P=R("RegisterForm"),N=R("CompleteInfoForm"),U=R("ForgetPassword"),V=R("JcVerifySlide"),D=R("ElDialog");return l(),d(D,{modelValue:a.currentVisible,"onUpdate:modelValue":t[23]||(t[23]=e=>a.currentVisible=e),"close-on-click-modal":!1,"append-to-body":!0,"destroy-on-close":"",width:i.currentDialogWidth,top:"5vh",class:"jc-auth-dialog","show-close":!0,onClose:i.handleClose,onOpen:i.handleOpen},{default:x(()=>["login"===a.formMode?(l(),s("div",wu,[u("div",Eu,[u("div",bu,[u("p",null,v(i.isEn?"Welcome Back to JCtrans":"欢迎回到JCtrans"),1)]),["account","code"].includes(a.loginType)?(l(),s("div",Iu,[u("span",{class:c(["tab-header-title",{active:"account"===a.loginType}]),onClick:t[0]||(t[0]=e=>i.switchLoginTab("account"))},v(i.isEn?"Password Login":"账号登录"),3),u("span",{class:c(["tab-header-title",{active:"code"===a.loginType}]),onClick:t[1]||(t[1]=e=>i.switchLoginTab("code"))},v(i.isEn?"Verification Code Login":"验证码登录"),3)])):f("",!0),"account"===a.loginType||"code"===a.loginType?(l(),d(S,{key:1,ref:"loginFormRef",model:a.loginForm,rules:i.computedRules,"validate-on-rule-change":!1,class:"auth-form login-form-content"},{default:x(()=>["account"===a.loginType?(l(),s(g,{key:0},[h(p,{prop:"username",class:"form-user"},{default:x(()=>[h(r,{modelValue:a.loginForm.username,"onUpdate:modelValue":t[2]||(t[2]=e=>a.loginForm.username=e),placeholder:i.isEn?"Username/Email/Phone Number":"用户名/邮箱/手机号"},null,8,["modelValue","placeholder"])]),_:1}),h(p,{prop:"password",class:"password-item"},{default:x(()=>[h(r,{modelValue:a.loginForm.password,"onUpdate:modelValue":t[3]||(t[3]=e=>a.loginForm.password=e),type:"password",class:"input-show-pass",placeholder:i.isEn?"Password":"密码","show-password":""},null,8,["modelValue","placeholder"])]),_:1})],64)):"code"===a.loginType?(l(),s(g,{key:1},[h(p,{prop:"type"},{default:x(()=>[h(m,{modelValue:a.loginForm.type,"onUpdate:modelValue":t[4]||(t[4]=e=>a.loginForm.type=e),"is-en":i.isEn,onChange:i.handleChangeSubType},null,8,["modelValue","is-en","onChange"])]),_:1}),"email"===a.loginForm.type?(l(),d(p,{key:0,prop:"email"},{default:x(()=>[h(r,{modelValue:a.loginForm.email,"onUpdate:modelValue":t[5]||(t[5]=e=>a.loginForm.email=e),placeholder:i.isEn?"Email Address":"邮箱地址",onBlur:t[6]||(t[6]=e=>i.validateField("email"))},null,8,["modelValue","placeholder"])]),_:1})):(l(),s("div",Bu,[(l(),d(p,{prop:"phone",ref:"phone",key:8,class:"tel-mobile","inline-message":!0},{default:x(()=>[h(E,{modelValue:a.loginForm.phone,"onUpdate:modelValue":t[9]||(t[9]=e=>a.loginForm.phone=e),placeholder:i.isEn?"Cell Phone Number":"手机号码",label:i.isEn?"Cell Phone Number":"手机号码",clearable:"",autocomplete:"off",onBlur:t[10]||(t[10]=e=>i.validateField("phone")),maxlength:"15",disabled:a.isCounting},{prefix:x(()=>[h(p,{prop:"areaCode",class:"tel-areacode","inline-message":!0},{default:x(()=>[h(w,{modelValue:a.loginForm.areaCode,"onUpdate:modelValue":t[7]||(t[7]=e=>a.loginForm.areaCode=e),placeholder:i.isEn?"Code":"区号",onChange:t[8]||(t[8]=e=>i.validateField("areaCode")),disabled:a.isCounting,"popper-class":"jc-area-code-select-wrapper"},{default:x(()=>[(l(!0),s(g,null,A(a.areaCodeData,e=>(l(),d(C,{key:e.id,label:e.telCode,value:e.telCode},null,8,["label","value"]))),128)),h(C,{label:"+86",value:"+86"})]),_:1},8,["modelValue","placeholder","disabled"])]),_:1})]),_:1},8,["modelValue","placeholder","label","disabled"])]),_:1}))])),h(p,{prop:"code"},{default:x(()=>[h(b,{modelValue:a.loginForm.code,"onUpdate:modelValue":t[11]||(t[11]=e=>a.loginForm.code=e),placeholder:i.isEn?"Verification Code":"验证码",ready:a.codeReady,"is-en":i.isEn,onSend:i.handleGetCode},null,8,["modelValue","placeholder","ready","is-en","onSend"])]),_:1})],64)):f("",!0),u("div",ku,[u("div",Su,[h(p,{prop:"remember",class:"remember-item"},{default:x(()=>[h(I,{modelValue:a.loginForm.remember,"onUpdate:modelValue":t[12]||(t[12]=e=>a.loginForm.remember=e),class:"remember-btn"},{default:x(()=>[B(v(i.isEn?"Remember Me":"30天自动登录"),1)]),_:1},8,["modelValue"])]),_:1}),"account"===a.loginType?(l(),s("span",{key:0,class:"forget-pwd-btn",onClick:t[13]||(t[13]=(...e)=>i.handleForget&&i.handleForget(...e))},v(i.isEn?"Forgot your password?":"忘记密码"),1)):f("",!0)]),"code"===a.loginType?(l(),s("div",xu,[u("div",Ru,[u("span",Tu,v(i.isEn?"Automatically log in after verification if not registered. Registration means you agree":"未注册验证后自动登录,注册即代表同意"),1),u("span",{class:"link-type",onClick:t[14]||(t[14]=y((...e)=>i.go2Agreement&&i.go2Agreement(...e),["stop"]))},v(i.isEn?"User Agreement":"《用户条款和协议》"),1),u("span",Fu,v(i.isEn?"and":"和"),1),u("span",{class:"link-type",onClick:t[15]||(t[15]=y((...e)=>i.go2Policy&&i.go2Policy(...e),["stop"]))},v(i.isEn?"Privacy Policy":"《隐私政策》"),1)])])):f("",!0),h(k,{class:"submit-btn",loading:n.authLoading,onClick:i.handleLogin},{default:x(()=>[B(v("code"===a.loginType?i.isEn?"Register and log in":"登录/注册":i.isEn?"Sign In":"登录")+" ",1),t[24]||(t[24]=u("i",{class:"el-icon-right",style:{"margin-left":"8px"}},null,-1))]),_:1},8,["loading","onClick"])])]),_:1},8,["model","rules"])):f("",!0),"wechat"===a.loginType?(l(),s("div",Qu,[h(T,{"is-en":i.isEn,onNeedRegister:i.handleWechatNeedRegister,onNeedComplete:i.handleNeedComplete},null,8,["is-en","onNeedRegister","onNeedComplete"])])):f("",!0),"facebook"===a.loginType||"linkedin"===a.loginType||"TEST"===a.loginType?(l(),s("div",Lu,[h(F,{"is-en":i.isEn,ref:"thirdLoginRef",onToLogin:i.handleToLogin},null,8,["is-en","onToLogin"])])):f("",!0),"TEST"!==a.loginType&&"facebook"!==a.loginType&&"linkedin"!==a.loginType?(l(),s("div",Pu,[u("div",Nu,v(i.isEn?"Sign in with":"其他登录方式"),1),u("div",Uu,[["wechat","linkedin","facebook"].includes(a.loginType)?(l(),s("div",{key:0,class:"third-party-sign-in-btn",onClick:t[16]||(t[16]=()=>a.loginType="account")},[t[25]||(t[25]=u("i",{class:"icon-account"},null,-1)),u("span",null,v(i.isEn?"Account":"账户"),1)])):["account","code"].includes(a.loginType)?(l(),s("div",{key:1,class:"third-party-sign-in-btn",onClick:t[17]||(t[17]=()=>a.loginType="wechat")},[t[26]||(t[26]=u("i",{class:"icon-auth-wechat"},null,-1)),u("span",null,v(i.isEn?"WeChat":"微信"),1)])):f("",!0),u("div",{class:"third-party-sign-in-btn",onClick:t[18]||(t[18]=e=>i.handleThirdClick("linkedin"))},[...t[27]||(t[27]=[u("i",{class:"icon-auth-linkedin"},null,-1),u("span",null,"LinkedIn",-1)])]),u("div",{class:"third-party-sign-in-btn",onClick:t[19]||(t[19]=e=>i.handleThirdClick("facebook"))},[...t[28]||(t[28]=[u("i",{class:"icon-auth-facebook"},null,-1),u("span",null,"Facebook",-1)])]),o.showTestThirdBtn?(l(),s("div",{key:2,class:"third-party-sign-in-btn",onClick:t[20]||(t[20]=e=>i.handleThirdClick("TEST"))},[...t[29]||(t[29]=[u("i",{class:"icon-auth-facebook"},null,-1),u("span",null,"TEST",-1)])])):f("",!0)])])):f("",!0),u("div",Vu,[B(v(i.isEn?"Don't have an account?":"没有账户?")+" ",1),u("span",{class:"action-text",onClick:t[21]||(t[21]=e=>a.formMode="register")},[B(v(i.isEn?"Register now":"立即注册")+" ",1),t[30]||(t[30]=u("svg",{t:"1767853448095",class:"icon-more",viewBox:"0 0 1024 1024",version:"1.1",xmlns:"http://www.w3.org/2000/svg","p-id":"8538",width:"200",height:"200"},[u("path",{d:"M456.874667 798.208l-60.416-60.416L622.336 512 396.458667 286.208l60.416-60.416 256 256a42.666667 42.666667 0 0 1 0 60.416l-256 256z",fill:"#FF6A00","p-id":"8539"})],-1))])])])])):"wechat-need-register"===a.formMode?(l(),d(Q,{key:1,"is-en":i.isEn,onToBind:i.handleWechatLogin,onToRegister:i.handleWechatRegister},null,8,["is-en","onToBind","onToRegister"])):"wechat-bind"===a.formMode?(l(),d(L,{key:2,"is-en":i.isEn,onNeedComplete:i.handleNeedComplete},null,8,["is-en","onNeedComplete"])):"register"===a.formMode?(l(),s("div",Du,[u("div",Mu,[h(P,{"is-en":i.isEn,onToLogin:i.handleToLogin,onNeedComplete:i.handleNeedComplete},null,8,["is-en","onToLogin","onNeedComplete"])])])):"need-complete"===a.formMode?(l(),d(N,{key:4,"is-en":i.isEn,onSuccess:i.handleCompleteSuccess},null,8,["is-en","onSuccess"])):"forget-password"===a.formMode?(l(),d(U,{key:5,"is-en":i.isEn,onToLogin:i.handleToLogin},null,8,["is-en","onToLogin"])):f("",!0),h(V,{visible:a.captchaVisible,"onUpdate:visible":t[22]||(t[22]=e=>a.captchaVisible=e),"is-en":i.isEn,onSuccess:i.handleCaptchaSuccess},null,8,["visible","is-en","onSuccess"])]),_:1},8,["modelValue","width","onClose","onOpen"])}],["__scopeId","data-v-0827d4fc"]]),Ju=/* @__PURE__ */Object.freeze(/* @__PURE__ */Object.defineProperty({__proto__:null,default:Ou},Symbol.toStringTag,{value:"Module"}));function ju(o,n){const a=e([]),i=e(!1),r=e(!1),s=e(!1),l=e(1),c=e(0),u=t(()=>{const e=[...n.value];return e.includes("Country")&&!e.includes("Region")&&e.push("Region"),e});return{searchResults:a,loading:i,isFetchingMore:r,isFinished:s,fetchData:async(e=!1)=>{const t=o.value.trim();if(!t)return a.value=[],c.value=0,void(s.value=!1);if(e){if(r.value||s.value)return;r.value=!0,l.value+=1}else{if(i.value)return;i.value=!0,l.value=1,s.value=!1}try{const o=await async function(e,t=["Continent","Country","City","Seaport","Airport"],o={}){return O.searchByName({keyword:e,displayInfo:t,...o})}(t,n.value,{current:l.value,size:10}),i=(d=o.records||[],Array.isArray(d)?d.filter(e=>u.value.includes(e.type)):[]);e?a.value.push(...i):a.value=i,c.value=o.total||0,(a.value.length>=c.value||i.length<10)&&(s.value=!0)}catch(h){console.error("Search request failed:",h),e&&(l.value-=1)}finally{i.value=!1,r.value=!1}var d}}}const Hu={class:"h5-search-container"},zu={class:"trigger-content"},qu=["src"],Ku={class:"placeholder-text"},Gu={key:0,class:"selected-count"},Wu={key:1,class:"selected-val"},Yu={key:2,class:"placeholder-gray"},Zu={key:0,class:"h5-modal-root"},Xu={class:"h5-drawer-card"},_u={class:"h5-header"},$u={class:"h5-input-wrapper"},ed=["src"],td=["placeholder"],od={key:0,class:"h5-spinner-box"},nd={key:1,class:"h5-section"},ad={class:"h5-section-hd"},id={class:"h5-history-grid"},rd=["onClick"],sd={key:2,class:"h5-result-list"},ld=["onClick"],cd={class:"item-info"},ud={class:"item-name"},dd={key:0,class:"item-sub"},hd={class:"h5-load-status"},pd={key:1,class:"no-more"},fd={key:3,class:"h5-empty"},md=/* @__PURE__ */Wo(/* @__PURE__ */a({__name:"index",props:{modelValue:{},multiple:{type:Boolean,default:!1},lang:{default:"zh-CN"},placeholder:{},historyKey:{}},emits:["update:modelValue","select"],setup(n,{emit:a}){const p=n,C=a,w=e(!1),B=e(""),k=e(null),S=e(null);let R=null;const{searchHistory:T,saveToHistory:F,clearHistory:L}=function(n){const a=e([]),i="undefined"!=typeof window&&"undefined"!=typeof localStorage,r=t(()=>(n.value||"")+"_search_history_cache"),s=t(()=>!!n.value&&""!==n.value);return o(()=>{if(i&&s.value){const t=localStorage.getItem(r.value);if(t)try{a.value=JSON.parse(t)}catch(e){a.value=[]}}}),{searchHistory:a,saveToHistory:e=>{if(!e||!i)return;const t=a.value.filter(t=>t.id&&t.id!==e.id||t.display!==e.display);t.unshift(e);const o=t.slice(0,4);if(s.value){a.value=o;try{localStorage.setItem(r.value,JSON.stringify(o))}catch(n){console.warn("LocalStorage save failed:",n)}}},clearHistory:()=>{a.value=[],i&&localStorage.removeItem(r.value)},HasHistory:s}}(i(p,"historyKey")),{searchResults:P,loading:N,isFetchingMore:V,isFinished:D,fetchData:M}=ju(B,e(["City","Seaport","Airport"])),O=t(()=>{if(p.lang)return"en"===p.lang||"en-US"===p.lang;try{if("function"==typeof useCookie){const e=useCookie("jc-language")?.value;if(e)return/^en(-US)?$/.test(e)}}catch(e){}if("undefined"!=typeof document){const e=document.cookie||"";return/(^|;\s*)jc-language=en(-US)?(;|$)/.test(e)}try{if("function"==typeof useNuxtApp){const e=useNuxtApp();return/(^|;\s*)jc-language=en(-US)?(;|$)/.test(e?.ssrContext?.event?.node?.req?.headers?.cookie||"")}}catch(e){}return!1}),J=t(()=>Array.isArray(p.modelValue)?p.modelValue:p.modelValue?[p.modelValue]:[]),j=t(()=>!p.multiple&&!!p.modelValue),H=t(()=>j.value?_(p.modelValue):""),z=t(()=>J.value.length>0),q=()=>{w.value=!0,U(()=>{k.value?.focus()})},K=()=>{w.value=!1,B.value=""},G=e=>{if(F(e),p.multiple){J.value.some(t=>t.id===e.id)||C("update:modelValue",[...J.value,e])}else C("update:modelValue",e),K();C("select",e)},W=()=>{C("update:modelValue",p.multiple?[]:null)},Y=e(!1),Z=e=>{const t=e.target;if(!t)return;!(t.scrollTop+t.clientHeight>=t.scrollHeight-80)||!B.value||N.value||V.value||D.value||Y.value||(Y.value=!0,M(!0))};r(V,e=>{e||(Y.value=!1)});const X=()=>{R&&clearTimeout(R),R=setTimeout(()=>{Y.value=!1,S.value?.scrollTo({top:0}),console.log("🍉 ~ index.vue:279 ~ onInput ~ fetchData:",M),M(!1)},300)},_=e=>O.value?e.displayEn||e.display:e.displayCn||e.display,$=e=>J.value.some(t=>t.id===e.id);return(e,t)=>(l(),s("div",Hu,[u("div",{class:"search-trigger",onClick:q},[u("div",zu,[u("img",{src:b(wo),class:"search-icon-m"},null,8,qu),u("div",Ku,[n.multiple&&J.value.length>0?(l(),s("span",Gu,v(O.value?"Selected":"已选")+" ("+v(J.value.length)+")",1)):!n.multiple&&j.value?(l(),s("span",Wu,v(H.value),1)):(l(),s("span",Yu,v(n.placeholder||(O.value?"Search":"搜索")),1))])]),z.value?(l(),s("span",{key:0,class:"clear-trigger",onClick:y(W,["stop"])},"ⓧ")):f("",!0)]),(l(),d(I,{to:"body"},[w.value?(l(),s("div",Zu,[h(Q,{name:"fade"},{default:x(()=>[u("div",{class:"h5-mask",onClick:K})]),_:1}),h(Q,{name:"slide-up"},{default:x(()=>[u("div",Xu,[u("div",{class:"drawer-handle",onClick:K}),u("div",_u,[u("div",$u,[u("img",{src:b(wo),class:"inner-icon"},null,8,ed),m(u("input",{ref_key:"inputRef",ref:k,"onUpdate:modelValue":t[0]||(t[0]=e=>B.value=e),placeholder:O.value?"City/Port/Airport":"搜索城市/港口/机场",onInput:X},null,40,td),[[E,B.value]]),B.value?(l(),s("div",{key:0,class:"h5-clear-btn",onClick:t[1]||(t[1]=e=>B.value="")}," ✕ ")):f("",!0)]),u("div",{class:"h5-cancel-btn",onClick:K},v(O.value?"Cancel":"取消"),1)]),u("div",{class:"h5-main-content",ref_key:"scrollContainer",ref:S,onScroll:Z},[b(N)&&!b(V)?(l(),s("div",od,[...t[3]||(t[3]=[u("div",{class:"h5-spinner"},null,-1)])])):f("",!0),!B.value&&b(T).length>0?(l(),s("div",nd,[u("div",ad,[u("span",null,v(O.value?"Recent":"最近搜索"),1),u("span",{class:"h5-clear-history",onClick:t[2]||(t[2]=(...e)=>b(L)&&b(L)(...e))},v(O.value?"Clear":"清空"),1)]),u("div",id,[(l(!0),s(g,null,A(b(T),(e,t)=>(l(),s("div",{key:t,class:"h5-history-tag",onClick:t=>G(e)},v(_(e)),9,rd))),128))])])):f("",!0),b(P).length>0?(l(),s("div",sd,[(l(!0),s(g,null,A(b(P),(e,t)=>{return l(),s("div",{key:t,class:c(["h5-result-item",{"is-active":$(e)}]),onClick:t=>G(e)},[u("div",{class:c(["item-type",e.type.toLowerCase()])},v((o=e.type,O.value?o:{City:"城市",Seaport:"港口",Airport:"机场"}[o]||o)),3),u("div",cd,[u("div",ud,v(_(e)),1),e.parentName?(l(),s("div",dd,v(e.parentName),1)):f("",!0)])],10,ld);var o}),128)),u("div",hd,[b(V)?(l(),s(g,{key:0},[t[4]||(t[4]=u("div",{class:"mini-spinner"},null,-1)),u("span",null,v(O.value?"Loading...":"加载中..."),1)],64)):b(D)&&B.value?(l(),s("span",pd,v(O.value?"No more results":"没有更多结果了"),1)):f("",!0)])])):f("",!0),B.value&&!b(N)&&0===b(P).length?(l(),s("div",fd,v(O.value?"No Results Found":"未找到相关结果"),1)):f("",!0)],544)])]),_:1})])):f("",!0)]))]))}}),[["__scopeId","data-v-854fc8dd"]]),gd=/* @__PURE__ */Object.freeze(/* @__PURE__ */Object.defineProperty({__proto__:null,default:md},Symbol.toStringTag,{value:"Module"}));let Ad={open(){q.emit(K.Open)},close(){q.emit(K.Close)},onSubmit(e){q.on(K.Submit,e)}};function vd(){let e=!1;return{install(t){if("undefined"!=typeof window&&!e){const t=document.createElement("div");t.setAttribute("id","global-modal-root"),document.body.appendChild(t),M(Er).mount(t),e=!0}t.config.globalProperties.$globalModal=Ad}}}const yd=/* @__PURE__ */Object.assign({"./components/ApplyDataDialog.vue":qn,"./components/ChineseCompanySearch/index.vue":Yn,"./components/CodeInput.vue":vr,"./components/GlobalModal.vue":br,"./components/GoogleInput.vue":oa,"./components/JcCarrierSearch/index.vue":Tr,"./components/JcFloatInput.vue":ca,"./components/JcFloatWrapper.vue":Vr,"./components/JcLoginDialog/index.vue":Ju,"./components/JcMSearch/index.vue":gd,"./components/JcSearch/index.vue":Zo,"./components/JcVerifySlide/index.vue":fr}),Cd={};Object.entries(yd).forEach(([e,t])=>{const o=e.split("/"),n=o.pop()||"",a=o.pop()||"";let i="";i="index.vue"===n?a:n.replace(/\.vue$/,""),i&&t.default&&(Cd[i]=t.default)});const{ApplyDataDialog:wd,JcSearch:Ed,GlobalModal:bd,JCMSearch:Id,ChineseCompanySearch:Bd,JcLoginDialog:kd,CodeInput:Sd,GoogleInput:xd,JcFloatInput:Rd,JcFloatWrapper:Td,JcVerifySlide:Fd,JcCarrierSearch:Qd}=Cd;let Ld=!1;const Pd={install(e,t){if(!Ld){Ld=!0,t?.sharedConfig&&Be(t.sharedConfig);for(const t in Cd)e.component(t,Cd[t]),console.log(`[JcUI] 自动注册组件: ${t}`)}}};export{wd as ApplyDataDialog,Bd as ChineseCompanySearch,Sd as CodeInput,bd as GlobalModal,xd as GoogleInput,Id as JCMSearch,Qd as JcCarrierSearch,Rd as JcFloatInput,Td as JcFloatWrapper,kd as JcLoginDialog,Ed as JcSearch,Fd as JcVerifySlide,Se as MODAL_ACTION,vd as createGlobalModalPlugin,xe as createRequest,Pd as default,Re as emitter,Te as getAppId,Fe as initSharedConfig};