index-legacy-27b58871.js 104 KB

1
  1. System.register(["./teacherIcon-legacy-3eeb62c3.js","./maleIcon-legacy-f2aee668.js","./index-legacy-1f8b2d68.js","./index-legacy-5a4a5bd0.js","./api-legacy-c0b75685.js"],(function(e,t){"use strict";var o,n,r,a,i,l,s,d,c,u,h,f,p,g,m,v,w,y,b,_,C,x,A,k,P,T,I,R,S,B,M,j,E,D,q,L,N,F,O,z,U,K,W,H,G,V,Q,$,Y,X,Z,J,ee,te,oe,ne,re,ae,ie,le,se,de,ce,ue,he,fe,pe,ge,me,ve,we,ye,be,_e,Ce,xe,Ae,ke,Pe,Te,Ie,Re,Se,Be,Me,je,Ee,De,qe,Le,Ne,Fe,Oe,ze,Ue,Ke,We,He,Ge,Ve,Qe,$e,Ye=document.createElement("style");return Ye.textContent="._listWrap_jqusf_1{min-height:41.92708vw;padding:1.66667vw;background-color:#fff;border-radius:1.04167vw}._listWrap_jqusf_1 ._customTabs_jqusf_7 .n-tabs-tab--active{font-size:.9375vw!important;font-weight:600!important;color:#131415!important}._listWrap_jqusf_1 ._customTabs_jqusf_7 .n-tabs-tab{font-size:.9375vw;padding:.41667vw 0!important;font-weight:400;min-width:2.60417vw;color:#8b8d98}._listWrap_jqusf_1 ._customTabs_jqusf_7 .n-tabs-tab:hover{color:#198cfe!important}._listWrap_jqusf_1 ._customTabs_jqusf_7 .n-tabs-bar{width:2.60417vw!important;height:.26042vw!important;background:url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAGQAAAAKCAYAAABCHPt+AAAAAXNSR0IArs4c6QAAAO5JREFUWEftl00KwjAQhd/rLVqv4VbwAnoYfzaKGxE3th5GLyC49RztLTKSajEW+0OTlUw2oSFvGL6XZibEe8RnmdBgDWIsInG1rnM3AZIFBA+JcCoWvLcpXM7lvpqOdi1OZQPiAJHyW8dQAjQAdsWKx18Rmjl/dLSOweAGSDQ0DdW5BGgQYVr/U7o5v3RMUrkIZKZQwxEgeM1XnLsR+3C2OiaZ5FozwplhI9maki+ZfBnSg7PVqSFhvSij+RmiV1ZwS7yurO5iEzzfPw/oWdQtnVEmWyPYa6fle1ba295mzk7bW6WgD8PhZoR8GD4BToyflz19IOIAAAAASUVORK5CYII=) no-repeat;background-size:2.60417vw .26042vw}._infoWrap_jqusf_28{height:100%;padding-top:5.20833vw;display:flex;flex-direction:column;align-items:center}._infoWrap_jqusf_28 ._teacherInfoWrap_jqusf_35{display:flex;flex-direction:column;align-items:center}._infoWrap_jqusf_28 ._teacherInfoWrap_jqusf_35 ._teacherHeadWrap_jqusf_40{position:relative;width:236Px;height:132Px}._infoWrap_jqusf_28 ._teacherInfoWrap_jqusf_35 ._teacherHeadWrap_jqusf_40 ._headerD_jqusf_45{width:100%;height:100%}._infoWrap_jqusf_28 ._teacherInfoWrap_jqusf_35 ._teacherHeadWrap_jqusf_40 ._defultHeade_jqusf_49{width:116Px;height:116Px;overflow:hidden;border-radius:50%;position:absolute;top:8Px;left:60Px}._infoWrap_jqusf_28 ._teacherInfoWrap_jqusf_35 ._teacherHeadWrap_jqusf_40 ._changeHead_jqusf_58{background-color:rgba(0,0,0,.7);display:flex;justify-content:center;align-items:center;font-size:.83333vw;color:#fff;font-weight:600;transition:opacity .3s;cursor:pointer}._infoWrap_jqusf_28 ._teacherInfoWrap_jqusf_35 ._teacherHeadWrap_jqusf_40 ._uploadFile_jqusf_69{position:absolute;left:0;right:0;top:0;bottom:0;opacity:0}._infoWrap_jqusf_28 ._teacherInfoWrap_jqusf_35 ._headerInfo_jqusf_77 ._headerTitle_jqusf_77{font-size:1.14583vw;font-weight:600;color:#131415;line-height:1.45833vw;letter-spacing:1px;margin:.9375vw 0 .41667vw;text-align:center;display:flex;flex-direction:row;justify-content:center;align-items:center}._infoWrap_jqusf_28 ._teacherInfoWrap_jqusf_35 ._headerInfo_jqusf_77 ._headerTitle_jqusf_77 ._sexIcon_jqusf_90{width:.625vw;height:1.09375vw;margin-left:.26042vw}._infoWrap_jqusf_28 ._teacherInfoWrap_jqusf_35 ._headerInfo_jqusf_77 ._headerSubTitle_jqusf_95{font-size:.83333vw;font-weight:400;color:#707a92;line-height:1.04167vw}._infoWrap_jqusf_28 ._setInfo_jqusf_101{margin-top:3.33333vw;width:61.04167vw}._infoWrap_jqusf_28 ._setInfo_jqusf_101 .n-form-item-label{font-size:.78125vw;color:rgba(0,0,0,.8)}._infoWrap_jqusf_28 ._setInfo_jqusf_101 .n-input.n-input--disabled{background-color:#f5f6fa;color:rgba(0,0,0,.4);border:none}._infoWrap_jqusf_28 ._setInfo_jqusf_101 .n-input{border-radius:.41667vw}._infoWrap_jqusf_28 ._setInfo_jqusf_101 .n-input__input-el{height:55Px;line-height:55Px;border-radius:.41667vw}._infoWrap_jqusf_28 ._setInfo_jqusf_101 .n-base-selection .n-base-selection-label{height:55Px}._btnList_jqusf_125{width:100%;padding:1.04167vw 0;margin-top:1.5625vw}._btnList_jqusf_125 ._btn_jqusf_125{width:7.5vw;height:2.34375vw;border-radius:.41667vw;font-size:.9375vw;font-weight:600!important;margin-right:1.25vw}.option.n-base-select-option{justify-content:center}.option.n-base-select-option.n-base-select-option--pending:before{background-color:#198cfe!important}.option.n-base-select-option.n-base-select-option--pending .n-base-select-option__content{color:#fff!important;text-align:center}._select_jqusf_148 :globla ._n-base-selection_jqusf_122{height:53Px}._changePwdModal_jqusf_151{border-radius:.83333vw}._changePwdModal_jqusf_151 ._wrap_jqusf_154{padding:.625vw 0}._changePwdModal_jqusf_151 ._wrap_jqusf_154 .n-input{border-radius:.41667vw}._changePwdModal_jqusf_151 ._wrap_jqusf_154 .n-input .n-input__input-el{height:53Px}._changePwdModal_jqusf_151 ._wrap_jqusf_154 .n-button.n-button--disabled{background:#aaa}._changePwdModal_jqusf_151 ._sendMsg_jqusf_166{height:2.76042vw;min-width:5.625vw}._changePwdModal_jqusf_151 ._pwdIcon_jqusf_170{width:1.25vw;height:1.25vw;cursor:pointer}._changePwdModal_jqusf_151 ._submitBtm_jqusf_175{width:45%;height:2.44792vw}._logo_yosr2_1{position:relative;width:100Px;height:100Px;border-radius:50%;overflow:hidden}._logo_yosr2_1 ._changeHead_yosr2_8{position:absolute;left:0;right:0;top:0;bottom:0;background-color:rgba(0,0,0,.7);display:flex;justify-content:center;align-items:center;font-size:.83333vw;color:#fff;font-weight:600;transition:opacity .3s;border-radius:50%;cursor:pointer;opacity:0}._logo_yosr2_1 ._changeHead_yosr2_8:hover{opacity:1}._logo_yosr2_1 ._uploadFile_yosr2_29{position:absolute;left:0;right:0;top:0;bottom:0;opacity:0}._input_yosr2_37{border-radius:.41667vw;min-height:2.23958vw;min-width:12.5vw}._schoolInfo_yosr2_42 .n-form-item .n-form-item-label{color:#777}._schoolInfo_yosr2_42 .n-button{border-radius:.41667vw}._schoolInfo_yosr2_42 .n-data-table .n-data-table-th{background:#F7F7F8;color:#717172!important;border:none;min-height:54Px;font-size:15Px}._schoolInfo_yosr2_42 .n-data-table.n-data-table--bordered .n-data-table-wrapper{border:none}._schoolInfo_yosr2_42 .n-data-table-tr .n-data-table-td .n-button__content,._schoolInfo_yosr2_42 .n-data-table .n-data-table-td{font-weight:700;font-size:15Px}._schoolInfo_yosr2_42 ._errorBtn_yosr2_63 .n-button__content{color:#ff4d4f}._addTeacher_yosr2_66{padding:0;border-radius:16Px;overflow:hidden;min-width:456Px}._addTeacher_yosr2_66 .n-dialog__close{transform:translateY(3Px)}._addTeacher_yosr2_66 .n-dialog__title{min-height:70Px;justify-content:center;background:#F5F6FA}._addTeacher_yosr2_66 .n-form{padding:20Px 0}._addTeacher_yosr2_66 .n-input{min-height:53Px;border-radius:8Px}._addTeacher_yosr2_66 .n-input .n-input__input-el{height:100%}._addTeacher_yosr2_66 .n-form-item-blank{padding-right:30Px;min-height:53Px}._addTeacher_yosr2_66 .genderBtn{min-width:84Px;min-height:37Px;border-radius:8Px}._addTeacher_yosr2_66 .n-form-item-label{color:#777;padding:0;font-size:18Px}._addTeacher_yosr2_66 .n-form-item-label__text{min-height:53Px;display:flex;align-items:center;justify-content:center}._addTeacher_yosr2_66 .nalert{padding:0 30Px}._addTeacher_yosr2_66 .nalert .n-alert{background:#FFE8E8;text-align:center}._addTeacher_yosr2_66 .nalert .n-alert-body .n-alert-body__content{color:#ea4132}._addTeacher_yosr2_66 .actionBtn{width:156Px;height:47Px;font-size:18Px}._btnList_yosr2_125{width:100%}._btnList_yosr2_125 ._btn_yosr2_125{width:7.5vw;border-radius:.41667vw;font-size:.9375vw;font-weight:600!important;margin-right:1.25vw}\n",document.head.appendChild(Ye),{setters:[e=>{o=e.d},e=>{n=e.m,r=e.f},e=>{a=e.co,i=e.cp,l=e.d,s=e.cq,d=e.bq,c=e.r,u=e.aQ,h=e.as,f=e.T,p=e.cr,g=e.cs,m=e.ct,v=e.cu,w=e.cv,y=e.cw,b=e.cx,_=e.cy,C=e.ay,x=e.$,A=e.cz,k=e.cA,P=e.cB,T=e.cC,I=e.cD,R=e.l,S=e.cE,B=e.cF,M=e.cG,j=e.cH,E=e.cI,D=e.bR,q=e.cJ,L=e.cK,N=e.cn,F=e.cL,O=e.cM,z=e.cN,U=e.cO,K=e.cP,W=e.cQ,H=e.cR,G=e.cS,V=e.cT,Q=e.cU,$=e.cV,Y=e.ci,X=e.cW,Z=e.cX,J=e.cY,ee=e.aB,te=e.w,oe=e.b0,ne=e.cZ,re=e.c_,ae=e.c$,ie=e.d0,le=e.d1,se=e.d2,de=e.d3,ce=e.d4,ue=e.d5,he=e.d6,fe=e.d7,pe=e.aK,ge=e.u,me=e.b,ve=e.P,we=e.c,ye=e.e,be=e.f,_e=e.N,Ce=e.g,xe=e.h,Ae=e.i,ke=e.j,Pe=e.B,Te=e.k,Ie=e.F,Re=e.cc,Se=e.q,Be=e.o,Me=e.ca,je=e.cb,Ee=e.C,De=e.z,qe=e.d8,Le=e.a3,Ne=e.a_,Fe=e.a4,Oe=e.y,ze=e.d9,Ue=e.bW,Ke=e.x,We=e.A,He=e.m,Ge=e.n},e=>{Ve=e.U},e=>{Qe=e.u,$e=e.s}],execute:function(){const Ye=a("base-menu-mask","\n position: absolute;\n left: 0;\n right: 0;\n top: 0;\n bottom: 0;\n display: flex;\n align-items: center;\n justify-content: center;\n text-align: center;\n padding: 14px;\n overflow: hidden;\n",[i()]),Xe=l({name:"BaseMenuMask",props:{clsPrefix:{type:String,required:!0}},setup(e){s("-base-menu-mask",Ye,d(e,"clsPrefix"));const t=c(null);let o=null;const n=c(!1);u((()=>{null!==o&&window.clearTimeout(o)}));const r={showOnce(e,r=1500){o&&window.clearTimeout(o),n.value=!0,t.value=e,o=window.setTimeout((()=>{n.value=!1,t.value=null}),r)}};return Object.assign({message:t,show:n},r)},render(){return h(f,{name:"fade-in-transition"},{default:()=>this.show?h("div",{class:`${this.clsPrefix}-base-menu-mask`},this.message):null})}}),Ze=p({name:"Cascader",common:g,peers:{InternalSelectMenu:m,InternalSelection:v,Scrollbar:w,Checkbox:y,Empty:b},self:e=>{const{borderRadius:t,boxShadow2:o,popoverColor:n,textColor2:r,textColor3:a,primaryColor:i,textColorDisabled:l,dividerColor:s,hoverColor:d,fontSizeMedium:c,heightMedium:u}=e;return{menuBorderRadius:t,menuColor:n,menuBoxShadow:o,menuDividerColor:s,menuHeight:"calc(var(--n-option-height) * 6.6)",optionArrowColor:a,optionHeight:u,optionFontSize:c,optionColorHover:d,optionTextColor:r,optionTextColorActive:i,optionTextColorDisabled:l,optionCheckMarkColor:i,loadingColor:i,columnWidth:"180px"}}});function Je(e){return e?e.map((e=>e.rawNode)):null}function et(e,t,o){const n=[];for(;e;)n.push(e.rawNode[o]),e=e.parent;return n.reverse().join(t)}const tt=_("n-cascader"),ot=l({name:"NCascaderOption",props:{tmNode:{type:Object,required:!0}},setup(e){const{expandTriggerRef:t,remoteRef:o,multipleRef:n,mergedValueRef:r,checkedKeysRef:a,indeterminateKeysRef:i,hoverKeyPathRef:l,keyboardKeyRef:s,loadingKeySetRef:d,cascadeRef:c,mergedCheckStrategyRef:u,onLoadRef:h,mergedClsPrefixRef:f,mergedThemeRef:p,labelFieldRef:g,showCheckboxRef:m,updateHoverKey:v,updateKeyboardKey:w,addLoadingKey:y,deleteLoadingKey:b,closeMenu:_,doCheck:k,doUncheck:P,renderLabelRef:T}=C(tt),I=x((()=>e.tmNode.key)),R=x((()=>{const{value:e}=t,{value:n}=o;return!n&&"hover"===e})),B=x((()=>{if(R.value)return U})),M=x((()=>{if(R.value)return K})),j=A((()=>{const{value:e}=n;return e?a.value.includes(I.value):r.value===I.value})),E=A((()=>!!n.value&&i.value.includes(I.value))),D=A((()=>l.value.includes(I.value))),q=A((()=>{const{value:e}=s;return null!==e&&e===I.value})),L=A((()=>!!o.value&&d.value.has(I.value))),N=x((()=>e.tmNode.isLeaf)),F=x((()=>e.tmNode.disabled)),O=x((()=>e.tmNode.rawNode[g.value])),z=x((()=>e.tmNode.shallowLoaded));function U(){if(!R.value||F.value)return;const{value:e}=I;v(e),w(e)}function K(){R.value&&U()}function W(){const{value:e}=n,{value:t}=I;e?E.value||j.value?P(t):k(t):(k(t),_(!0))}return{checkStrategy:u,multiple:n,cascade:c,checked:j,indeterminate:E,hoverPending:D,keyboardPending:q,isLoading:L,showCheckbox:m,isLeaf:N,disabled:F,label:O,mergedClsPrefix:f,mergedTheme:p,handleClick:function(t){if(F.value)return;const{value:n}=o,{value:r}=d,{value:a}=h,{value:i}=I,{value:l}=N,{value:s}=z;S(t,"checkbox")||(n&&!s&&!r.has(i)&&a&&(y(i),a(e.tmNode.rawNode).then((()=>{b(i)})).catch((()=>{b(i)}))),v(i),w(i)),l&&W()},handleCheckboxUpdateValue:function(){const{value:e}=N;e||W()},mergedHandleMouseEnter:B,mergedHandleMouseMove:M,renderLabel:T}},render(){const{mergedClsPrefix:e,renderLabel:t}=this;return h("div",{class:[`${e}-cascader-option`,{[`${e}-cascader-option--pending`]:this.keyboardPending||this.hoverPending,[`${e}-cascader-option--disabled`]:this.disabled,[`${e}-cascader-option--show-prefix`]:this.showCheckbox}],onMouseenter:this.mergedHandleMouseEnter,onMousemove:this.mergedHandleMouseMove,onClick:this.handleClick},this.showCheckbox?h("div",{class:`${e}-cascader-option__prefix`},h(R,{focusable:!1,"data-checkbox":!0,disabled:this.disabled,checked:this.checked,indeterminate:this.indeterminate,theme:this.mergedTheme.peers.Checkbox,themeOverrides:this.mergedTheme.peerOverrides.Checkbox,onUpdateChecked:this.handleCheckboxUpdateValue})):null,h("span",{class:`${e}-cascader-option__label`},t?t(this.tmNode.rawNode,this.checked):this.label),h("div",{class:`${e}-cascader-option__suffix`},h("div",{class:`${e}-cascader-option-icon-placeholder`},this.isLeaf?"child"!==this.checkStrategy||this.multiple&&this.cascade?null:h(f,{name:"fade-in-scale-up-transition"},{default:()=>this.checked?h(P,{clsPrefix:e,class:`${e}-cascader-option-icon ${e}-cascader-option-icon--checkmark`},{default:()=>h(I,null)}):null}):h(k,{clsPrefix:e,scale:.85,strokeWidth:24,show:this.isLoading,class:`${e}-cascader-option-icon`},{default:()=>h(P,{clsPrefix:e,key:"arrow",class:`${e}-cascader-option-icon ${e}-cascader-option-icon--arrow`},{default:()=>h(T,null)})}))))}}),nt=l({name:"CascaderSubmenu",props:{depth:{type:Number,required:!0},tmNodes:{type:Array,required:!0}},setup(){const{virtualScrollRef:e,mergedClsPrefixRef:t,mergedThemeRef:o,optionHeightRef:n}=C(tt),r=c(null),a=c(null),i={scroll(t,o){var n,i;e.value?null===(n=a.value)||void 0===n||n.scrollTo({index:t}):null===(i=r.value)||void 0===i||i.scrollTo({index:t,elSize:o})}};return Object.assign({mergedClsPrefix:t,mergedTheme:o,scrollbarInstRef:r,vlInstRef:a,virtualScroll:e,itemSize:x((()=>B(n.value))),handleVlScroll:()=>{var e;null===(e=r.value)||void 0===e||e.sync()},getVlContainer:()=>{var e;return null===(e=a.value)||void 0===e?void 0:e.listElRef},getVlContent:()=>{var e;return null===(e=a.value)||void 0===e?void 0:e.itemsElRef}},i)},render(){const{mergedClsPrefix:e,mergedTheme:t,virtualScroll:o}=this;return h("div",{class:[o&&`${e}-cascader-submenu--virtual`,`${e}-cascader-submenu`]},h(M,{ref:"scrollbarInstRef",theme:t.peers.Scrollbar,themeOverrides:t.peerOverrides.Scrollbar,container:o?this.getVlContainer:void 0,content:o?this.getVlContent:void 0},{default:()=>o?h(j,{items:this.tmNodes,itemSize:this.itemSize,onScroll:this.handleVlScroll,showScrollbar:!1,ref:"vlInstRef"},{default:({item:e})=>h(ot,{key:e.key,tmNode:e})}):this.tmNodes.map((e=>h(ot,{key:e.key,tmNode:e})))}))}}),rt=l({name:"NCascaderMenu",props:{value:[String,Number,Array],placement:{type:String,default:"bottom-start"},show:Boolean,menuModel:{type:Array,required:!0},loading:Boolean,onFocus:{type:Function,required:!0},onBlur:{type:Function,required:!0},onKeydown:{type:Function,required:!0},onMousedown:{type:Function,required:!0},onTabout:{type:Function,required:!0}},setup(e){const{localeRef:t,isMountedRef:o,mergedClsPrefixRef:n,syncCascaderMenuPosition:r,handleCascaderMenuClickOutside:a,mergedThemeRef:i}=C(tt),l=[],s=c(null),d=c(null);E(d,(function(){r()}));const u={scroll(e,t,o){const n=l[e];n&&n.scroll(t,o)},showErrorMessage:function(e){var o;const{value:{loadingRequiredMessage:n}}=t;null===(o=s.value)||void 0===o||o.showOnce(n(e))}};return Object.assign({isMounted:o,mergedClsPrefix:n,selfElRef:d,submenuInstRefs:l,maskInstRef:s,mergedTheme:i,handleFocusin:function(t){const{value:o}=d;o&&(o.contains(t.relatedTarget)||e.onFocus(t))},handleFocusout:function(t){const{value:o}=d;o&&(o.contains(t.relatedTarget)||e.onBlur(t))},handleClickOutside:function(e){a(e)}},u)},render(){const{submenuInstRefs:e,mergedClsPrefix:t,mergedTheme:o}=this;return h(f,{name:"fade-in-scale-up-transition",appear:this.isMounted},{default:()=>this.show?D(h("div",{tabindex:"0",ref:"selfElRef",class:`${t}-cascader-menu`,onMousedown:this.onMousedown,onFocusin:this.handleFocusin,onFocusout:this.handleFocusout,onKeydown:this.onKeydown},this.menuModel[0].length?h("div",{class:`${t}-cascader-submenu-wrapper`},this.menuModel.map(((t,o)=>h(nt,{ref:t=>{t&&(e[o]=t)},key:o,tmNodes:t,depth:o+1}))),h(Xe,{clsPrefix:t,ref:"maskInstRef"})):h("div",{class:`${t}-cascader-menu__empty`},L(this.$slots.empty,(()=>[h(N,{theme:o.peers.Empty,themeOverrides:o.peerOverrides.Empty})]))),F(this.$slots.action,(e=>e&&h("div",{class:`${t}-cascader-menu-action`,"data-action":!0},e))),h(O,{onFocus:this.onTabout})),[[q,this.handleClickOutside,void 0,{capture:!0}]]):null})}}),at=l({name:"NCascaderSelectMenu",props:{value:{type:[String,Number,Array],default:null},show:Boolean,pattern:{type:String,default:""},multiple:Boolean,tmNodes:{type:Array,default:()=>[]},filter:Function,labelField:{type:String,required:!0},separator:{type:String,required:!0}},setup(e){const{isMountedRef:t,mergedValueRef:o,mergedClsPrefixRef:n,mergedThemeRef:r,mergedCheckStrategyRef:a,slots:i,syncSelectMenuPosition:l,closeMenu:s,handleSelectMenuClickOutside:d,doUncheck:u,doCheck:h,clearPattern:f}=C(tt),p=c(null),g=x((()=>function(e,t,o,n){const r=[],a=[];return function e(i){for(const l of i){if(l.disabled)continue;const{rawNode:i}=l;a.push(i),!l.isLeaf&&t||r.push({label:et(l,n,o),value:l.key,rawNode:l.rawNode,path:Array.from(a)}),!l.isLeaf&&l.children&&e(l.children),a.pop()}}(e),r}(e.tmNodes,"child"===a.value,e.labelField,e.separator))),m=x((()=>{const{filter:t}=e;if(t)return t;const{labelField:o}=e;return(e,t,n)=>n.some((t=>t[o]&&~t[o].indexOf(e)))})),v=x((()=>{const{pattern:t}=e,{value:o}=m;return(t?g.value.filter((e=>o(t,e.rawNode,e.path))):g.value).map((e=>({value:e.value,label:e.label})))})),w=x((()=>z(v.value,U("value","children"))));function y(t){if(e.multiple){const{value:e}=o;Array.isArray(e)?e.includes(t.key)?u(t.key):h(t.key):null===e&&h(t.key),f()}else h(t.key),s(!0)}const b={prev:function(){var e;null===(e=p.value)||void 0===e||e.prev()},next:function(){var e;null===(e=p.value)||void 0===e||e.next()},enter:function(){var e;if(p){const t=null===(e=p.value)||void 0===e?void 0:e.getPendingTmNode();return t&&y(t),!0}return!1}};return Object.assign({isMounted:t,mergedTheme:r,mergedClsPrefix:n,menuInstRef:p,selectTreeMate:w,handleResize:function(){l()},handleToggle:function(e){y(e)},handleClickOutside:function(e){d(e)},cascaderSlots:i},b)},render(){const{mergedClsPrefix:e,isMounted:t,mergedTheme:o,cascaderSlots:n}=this;return h(f,{name:"fade-in-scale-up-transition",appear:t},{default:()=>this.show?D(h(K,{ref:"menuInstRef",onResize:this.handleResize,clsPrefix:e,class:`${e}-cascader-menu`,autoPending:!0,themeOverrides:o.peerOverrides.InternalSelectMenu,theme:o.peers.InternalSelectMenu,treeMate:this.selectTreeMate,multiple:this.multiple,value:this.value,onToggle:this.handleToggle},{empty:()=>L(n["not-found"],(()=>[]))}),[[q,this.handleClickOutside,void 0,{capture:!0}]]):null})}}),it=W([a("cascader-menu","\n outline: none;\n position: relative;\n margin: 4px 0;\n display: flex;\n flex-flow: column nowrap;\n border-radius: var(--n-menu-border-radius);\n overflow: hidden;\n box-shadow: var(--n-menu-box-shadow);\n color: var(--n-option-text-color);\n background-color: var(--n-menu-color);\n ",[H({transformOrigin:"inherit",duration:"0.2s"}),G("empty","\n display: flex;\n padding: 12px 32px;\n flex: 1;\n justify-content: center;\n "),a("scrollbar",{width:"100%"}),a("base-menu-mask",{backgroundColor:"var(--n-menu-mask-color)"}),a("base-loading",{color:"var(--n-loading-color)"}),a("cascader-submenu-wrapper","\n position: relative;\n display: flex;\n flex-wrap: nowrap;\n "),a("cascader-submenu","\n height: var(--n-menu-height);\n min-width: var(--n-column-width);\n position: relative;\n ",[V("virtual","\n width: var(--n-column-width);\n "),a("scrollbar-content",{position:"relative"}),W("&:first-child","\n border-top-left-radius: var(--n-menu-border-radius);\n border-bottom-left-radius: var(--n-menu-border-radius);\n "),W("&:last-child","\n border-top-right-radius: var(--n-menu-border-radius);\n border-bottom-right-radius: var(--n-menu-border-radius);\n "),W("&:not(:first-child)","\n border-left: 1px solid var(--n-menu-divider-color);\n ")]),a("cascader-menu-action","\n box-sizing: border-box;\n padding: 8px;\n border-top: 1px solid var(--n-menu-divider-color);\n "),a("cascader-option","\n height: var(--n-option-height);\n line-height: var(--n-option-height);\n font-size: var(--n-option-font-size);\n padding: 0 0 0 18px;\n box-sizing: border-box;\n min-width: 182px;\n background-color: #0000;\n display: flex;\n align-items: center;\n white-space: nowrap;\n position: relative;\n cursor: pointer;\n transition:\n background-color .2s var(--n-bezier),\n color 0.2s var(--n-bezier);\n ",[V("show-prefix",{paddingLeft:0}),G("label","\n flex: 1 0 0;\n overflow: hidden;\n text-overflow: ellipsis;\n "),G("prefix",{width:"32px",display:"flex",alignItems:"center",justifyContent:"center"}),G("suffix",{width:"32px",display:"flex",alignItems:"center",justifyContent:"center"}),a("cascader-option-icon-placeholder",{lineHeight:0,position:"relative",width:"16px",height:"16px",fontSize:"16px"},[a("cascader-option-icon",[V("checkmark",{color:"var(--n-option-check-mark-color)"},[H({originalTransition:"background-color .3s var(--n-bezier), box-shadow .3s var(--n-bezier)"})]),V("arrow",{color:"var(--n-option-arrow-color)"})])]),V("selected",{color:"var(--n-option-text-color-active)"}),V("active",{color:"var(--n-option-text-color-active)",backgroundColor:"var(--n-option-color-hover)"}),V("pending",{backgroundColor:"var(--n-option-color-hover)"}),W("&:hover",{backgroundColor:"var(--n-option-color-hover)"}),V("disabled","\n color: var(--n-option-text-color-disabled);\n background-color: #0000;\n cursor: not-allowed;\n ",[a("cascader-option-icon",[V("arrow",{color:"var(--n-option-text-color-disabled)"})])])])]),a("cascader","\n z-index: auto;\n position: relative;\n width: 100%;\n ")]),lt=Object.assign(Object.assign({},$.props),{allowCheckingNotLoaded:Boolean,to:J.propTo,bordered:{type:Boolean,default:void 0},options:{type:Array,default:()=>[]},value:[String,Number,Array],defaultValue:{type:[String,Number,Array],default:null},placeholder:String,multiple:Boolean,size:String,filterable:Boolean,disabled:{type:Boolean,default:void 0},disabledField:{type:String,default:"disabled"},expandTrigger:{type:String,default:"click"},clearable:Boolean,clearFilterAfterSelect:{type:Boolean,default:!0},remote:Boolean,onLoad:Function,separator:{type:String,default:" / "},filter:Function,placement:{type:String,default:"bottom-start"},cascade:{type:Boolean,default:!0},leafOnly:Boolean,showPath:{type:Boolean,default:!0},show:{type:Boolean,default:void 0},maxTagCount:[String,Number],menuProps:Object,filterMenuProps:Object,virtualScroll:{type:Boolean,default:!0},checkStrategy:{type:String,default:"all"},valueField:{type:String,default:"value"},labelField:{type:String,default:"label"},childrenField:{type:String,default:"children"},renderLabel:Function,status:String,"onUpdate:value":[Function,Array],onUpdateValue:[Function,Array],"onUpdate:show":[Function,Array],onUpdateShow:[Function,Array],onBlur:Function,onFocus:Function,onChange:[Function,Array]}),st=l({name:"Cascader",props:lt,setup(e,{slots:t}){const{mergedBorderedRef:o,mergedClsPrefixRef:n,namespaceRef:r,inlineThemeDisabled:a}=Q(e),i=$("Cascader","-cascader",it,Ze,e,n),{localeRef:l}=Y("Cascader"),s=c(e.defaultValue),u=x((()=>e.value)),h=X(u,s),f=x((()=>e.leafOnly?"child":e.checkStrategy)),p=c(""),g=Z(e),{mergedSizeRef:m,mergedDisabledRef:v,mergedStatusRef:w}=g,y=c(null),b=c(null),_=c(null),C=c(null),A=c(null),k=c(new Set),P=c(null),T=c(null),I=J(e),R=c(!1),M=e=>{k.value.add(e)},j=e=>{k.value.delete(e)},E=x((()=>{const{valueField:t,childrenField:o,disabledField:n}=e;return z(e.options,{getDisabled:e=>e[n],getKey:e=>e[t],getChildren:e=>e[o]})})),D=x((()=>{const{cascade:t,multiple:o}=e;return o&&Array.isArray(h.value)?E.value.getCheckedKeys(h.value,{cascade:t,allowNotLoaded:e.allowCheckingNotLoaded}):{checkedKeys:[],indeterminateKeys:[]}})),q=x((()=>D.value.checkedKeys)),L=x((()=>D.value.indeterminateKeys)),N=x((()=>{const{treeNodePath:e,treeNode:t}=E.value.getPath(A.value);let o;return null===t?o=[E.value.treeNodes]:(o=e.map((e=>e.siblings)),t.isLeaf||k.value.has(t.key)||!t.children||o.push(t.children)),o})),F=x((()=>{const{keyPath:e}=E.value.getPath(A.value);return e})),O=x((()=>i.value.self.optionHeight));function U(t){const{onUpdateShow:o,"onUpdate:show":n}=e;o&&fe(o,t),n&&fe(n,t),de.value=t}function K(t,o,n){const{onUpdateValue:r,"onUpdate:value":a,onChange:i}=e,{nTriggerFormInput:l,nTriggerFormChange:d}=g;r&&fe(r,t,o,n),a&&fe(a,t,o,n),i&&fe(i,t,o,n),s.value=t,l(),d()}function W(e){C.value=e}function H(e){A.value=e}function G(e){const{value:{getNode:t}}=E;return e.map((e=>{var o;return(null===(o=t(e))||void 0===o?void 0:o.rawNode)||null}))}function V(t){var o;const{cascade:n,multiple:r,filterable:a}=e,{value:{check:i,getNode:l,getPath:s}}=E;if(r)try{const{checkedKeys:o}=i(t,D.value.checkedKeys,{cascade:n,checkStrategy:f.value,allowNotLoaded:e.allowCheckingNotLoaded});K(o,G(o),o.map((e=>{var t;return Je(null===(t=s(e))||void 0===t?void 0:t.treeNodePath)}))),a&&_e(),C.value=t,A.value=t}catch(d){if(!(d instanceof ce))throw d;if(y.value){const o=l(t);null!==o&&y.value.showErrorMessage(o.rawNode[e.labelField])}}else if("child"===f.value){const e=l(t);if(!(null==e?void 0:e.isLeaf))return!1;K(t,e.rawNode,Je(s(t).treeNodePath))}else{const e=l(t);K(t,(null==e?void 0:e.rawNode)||null,Je(null===(o=s(t))||void 0===o?void 0:o.treeNodePath))}return!0}function ie(t){const{cascade:o,multiple:n}=e;if(n){const{value:{uncheck:n,getNode:r,getPath:a}}=E,{checkedKeys:i}=n(t,D.value.checkedKeys,{cascade:o,checkStrategy:f.value,allowNotLoaded:e.allowCheckingNotLoaded});K(i,i.map((e=>{var t;return(null===(t=r(e))||void 0===t?void 0:t.rawNode)||null})),i.map((e=>{var t;return Je(null===(t=a(e))||void 0===t?void 0:t.treeNodePath)}))),C.value=t,A.value=t}}ee(e.options)&&te(e.options,((e,t)=>{e!==t&&(A.value=null,C.value=null)}));const le=x((()=>{if(e.multiple){const{showPath:t,separator:o,labelField:n,cascade:r}=e,{getCheckedKeys:a,getNode:i}=E.value;return a(q.value,{cascade:r,checkStrategy:f.value,allowNotLoaded:e.allowCheckingNotLoaded}).checkedKeys.map((e=>{const r=i(e);return null===r?{label:String(e),value:e}:{label:t?et(r,o,n):r.rawNode[n],value:r.key}}))}return[]})),se=x((()=>{const{multiple:t,showPath:o,separator:n,labelField:r}=e,{value:a}=h;if(t||Array.isArray(a))return null;{const{getNode:e}=E.value;if(null===a)return null;const t=e(a);return null===t?{label:String(a),value:a}:{label:o?et(t,n,r):t.rawNode[r],value:t.key}}})),de=c(!1),ge=d(e,"show"),me=X(ge,de),ve=x((()=>{const{placeholder:t}=e;return void 0!==t?t:l.value.placeholder})),we=x((()=>!(!e.filterable||!p.value)));function ye(t){const{onBlur:o}=e,{nTriggerFormBlur:n}=g;o&&fe(o,t),n()}function be(t){const{onFocus:o}=e,{nTriggerFormFocus:n}=g;o&&fe(o,t),n()}function _e(){var e;null===(e=_.value)||void 0===e||e.focusInput()}function Ce(){v.value||(p.value="",U(!0),e.filterable&&_e())}function xe(e=!1){var t;e&&(null===(t=_.value)||void 0===t||t.focus()),U(!1),p.value=""}function Ae(e){var t;we.value||me.value&&((null===(t=_.value)||void 0===t?void 0:t.$el.contains(ue(e)))||xe())}function ke(){e.clearFilterAfterSelect&&(p.value="")}function Pe(t){var o,n,r;const{value:a}=C,{value:i}=E;switch(t){case"prev":if(null!==a){const e=i.getPrev(a,{loop:!0});null!==e&&(W(e.key),null===(o=y.value)||void 0===o||o.scroll(e.level,e.index,B(O.value)))}break;case"next":if(null===a){const e=i.getFirstAvailableNode();null!==e&&(W(e.key),null===(n=y.value)||void 0===n||n.scroll(e.level,e.index,B(O.value)))}else{const e=i.getNext(a,{loop:!0});null!==e&&(W(e.key),null===(r=y.value)||void 0===r||r.scroll(e.level,e.index,B(O.value)))}break;case"child":if(null!==a){const t=i.getNode(a);if(null!==t)if(t.shallowLoaded){const e=i.getChild(a);null!==e&&(H(a),W(e.key))}else{const{value:o}=k;if(!o.has(a)){M(a),H(a);const{onLoad:o}=e;o&&o(t.rawNode).then((()=>{j(a)})).catch((()=>{j(a)}))}}}break;case"parent":if(null!==a){const e=i.getParent(a);if(null!==e){W(e.key);const t=e.getParent();H(null===t?null:t.key)}}}}function Te(t){var o,n;switch(t.key){case" ":case"ArrowDown":case"ArrowUp":if(e.filterable&&me.value)break;t.preventDefault()}if(!S(t,"action"))switch(t.key){case" ":if(e.filterable)return;case"Enter":if(me.value){const{value:t}=we,{value:o}=C;if(t)b.value&&b.value.enter()&&ke();else if(null!==o)if(q.value.includes(o)||L.value.includes(o))ie(o);else{const t=V(o);!e.multiple&&t&&xe(!0)}}else Ce();break;case"ArrowUp":t.preventDefault(),me.value&&(we.value?null===(o=b.value)||void 0===o||o.prev():Pe("prev"));break;case"ArrowDown":t.preventDefault(),me.value?we.value?null===(n=b.value)||void 0===n||n.next():Pe("next"):Ce();break;case"ArrowLeft":t.preventDefault(),me.value&&!we.value&&Pe("parent");break;case"ArrowRight":t.preventDefault(),me.value&&!we.value&&Pe("child");break;case"Escape":me.value&&(he(t),xe(!0))}}function Ie(){var e;null===(e=P.value)||void 0===e||e.syncPosition()}function Re(){var e;null===(e=T.value)||void 0===e||e.syncPosition()}te(me,(t=>{if(!t)return;if(e.multiple)return;const{value:o}=h;Array.isArray(o)||null===o?(C.value=null,A.value=null):(C.value=o,A.value=o,pe((()=>{var e;if(!me.value)return;const{value:t}=A;if(null!==h.value){const o=E.value.getNode(t);o&&(null===(e=y.value)||void 0===e||e.scroll(o.level,o.index,B(O.value)))}})))}),{immediate:!0});const Se=x((()=>!(!e.multiple||!e.cascade)||"child"!==f.value));oe(tt,{slots:t,mergedClsPrefixRef:n,mergedThemeRef:i,mergedValueRef:h,checkedKeysRef:q,indeterminateKeysRef:L,hoverKeyPathRef:F,mergedCheckStrategyRef:f,showCheckboxRef:Se,cascadeRef:d(e,"cascade"),multipleRef:d(e,"multiple"),keyboardKeyRef:C,hoverKeyRef:A,remoteRef:d(e,"remote"),loadingKeySetRef:k,expandTriggerRef:d(e,"expandTrigger"),isMountedRef:ne(),onLoadRef:d(e,"onLoad"),virtualScrollRef:d(e,"virtualScroll"),optionHeightRef:O,localeRef:l,labelFieldRef:d(e,"labelField"),renderLabelRef:d(e,"renderLabel"),syncCascaderMenuPosition:Re,syncSelectMenuPosition:Ie,updateKeyboardKey:W,updateHoverKey:H,addLoadingKey:M,deleteLoadingKey:j,doCheck:V,doUncheck:ie,closeMenu:xe,handleSelectMenuClickOutside:function(e){we.value&&Ae(e)},handleCascaderMenuClickOutside:Ae,clearPattern:ke});const Be={focus:()=>{var e;null===(e=_.value)||void 0===e||e.focus()},blur:()=>{var e;null===(e=_.value)||void 0===e||e.blur()},getCheckedData:()=>{if(Se.value){const e=q.value;return{keys:e,options:G(e)}}return{keys:[],options:[]}},getIndeterminateData:()=>{if(Se.value){const e=L.value;return{keys:e,options:G(e)}}return{keys:[],options:[]}}},Me=x((()=>{const{self:{optionArrowColor:e,optionTextColor:t,optionTextColorActive:o,optionTextColorDisabled:n,optionCheckMarkColor:r,menuColor:a,menuBoxShadow:l,menuDividerColor:s,menuBorderRadius:d,menuHeight:c,optionColorHover:u,optionHeight:h,optionFontSize:f,loadingColor:p,columnWidth:g},common:{cubicBezierEaseInOut:m}}=i.value;return{"--n-bezier":m,"--n-menu-border-radius":d,"--n-menu-box-shadow":l,"--n-menu-height":c,"--n-column-width":g,"--n-menu-color":a,"--n-menu-divider-color":s,"--n-option-height":h,"--n-option-font-size":f,"--n-option-text-color":t,"--n-option-text-color-disabled":n,"--n-option-text-color-active":o,"--n-option-color-hover":u,"--n-option-check-mark-color":r,"--n-option-arrow-color":e,"--n-menu-mask-color":re(a,{alpha:.75}),"--n-loading-color":p}})),je=a?ae("cascader",void 0,Me,e):void 0;return Object.assign(Object.assign({},Be),{handleTriggerResize:function(){me.value&&(we.value?Ie():Re())},mergedStatus:w,selectMenuFollowerRef:P,cascaderMenuFollowerRef:T,triggerInstRef:_,selectMenuInstRef:b,cascaderMenuInstRef:y,mergedBordered:o,mergedClsPrefix:n,namespace:r,mergedValue:h,mergedShow:me,showSelectMenu:we,pattern:p,treeMate:E,mergedSize:m,mergedDisabled:v,localizedPlaceholder:ve,selectedOption:se,selectedOptions:le,adjustedTo:I,menuModel:N,handleMenuTabout:function(){xe(!0)},handleMenuFocus:function(e){var t;(null===(t=_.value)||void 0===t?void 0:t.$el.contains(e.relatedTarget))||(R.value=!0,be(e))},handleMenuBlur:function(e){var t;(null===(t=_.value)||void 0===t?void 0:t.$el.contains(e.relatedTarget))||(R.value=!1,ye(e))},handleMenuKeydown:function(e){Te(e)},handleMenuMousedown:function(t){S(t,"action")||e.multiple&&e.filter&&(t.preventDefault(),_e())},handleTriggerFocus:function(e){var t;(null===(t=y.value)||void 0===t?void 0:t.$el.contains(e.relatedTarget))||(R.value=!0,be(e))},handleTriggerBlur:function(e){var t;(null===(t=y.value)||void 0===t?void 0:t.$el.contains(e.relatedTarget))||(R.value=!1,ye(e),xe())},handleTriggerClick:function(){e.filterable?Ce():me.value?xe(!0):Ce()},handleClear:function(t){t.stopPropagation(),e.multiple?K([],[],[]):K(null,null,null)},handleDeleteOption:function(t){const{multiple:o}=e,{value:n}=h;o&&Array.isArray(n)&&void 0!==t.value?ie(t.value):K(null,null,null)},handlePatternInput:function(e){p.value=e.target.value},handleKeydown:Te,focused:R,optionHeight:O,mergedTheme:i,cssVars:a?void 0:Me,themeClass:null==je?void 0:je.themeClass,onRender:null==je?void 0:je.onRender})},render(){const{mergedClsPrefix:e}=this;return h("div",{class:`${e}-cascader`},h(ie,null,{default:()=>[h(le,null,{default:()=>h(se,{onResize:this.handleTriggerResize,ref:"triggerInstRef",status:this.mergedStatus,clsPrefix:e,maxTagCount:this.maxTagCount,bordered:this.mergedBordered,size:this.mergedSize,theme:this.mergedTheme.peers.InternalSelection,themeOverrides:this.mergedTheme.peerOverrides.InternalSelection,active:this.mergedShow,pattern:this.pattern,placeholder:this.localizedPlaceholder,selectedOption:this.selectedOption,selectedOptions:this.selectedOptions,multiple:this.multiple,filterable:this.filterable,clearable:this.clearable,disabled:this.mergedDisabled,focused:this.focused,onFocus:this.handleTriggerFocus,onBlur:this.handleTriggerBlur,onClick:this.handleTriggerClick,onClear:this.handleClear,onDeleteOption:this.handleDeleteOption,onPatternInput:this.handlePatternInput,onKeydown:this.handleKeydown},{arrow:()=>{var e,t;return null===(t=(e=this.$slots).arrow)||void 0===t?void 0:t.call(e)}})}),h(de,{key:"cascaderMenu",ref:"cascaderMenuFollowerRef",show:this.mergedShow&&!this.showSelectMenu,containerClass:this.namespace,placement:this.placement,width:this.options.length?void 0:"target",teleportDisabled:this.adjustedTo===J.tdkey,to:this.adjustedTo},{default:()=>{var e;null===(e=this.onRender)||void 0===e||e.call(this);const{menuProps:t}=this;return h(rt,Object.assign({},t,{ref:"cascaderMenuInstRef",class:[this.themeClass,null==t?void 0:t.class],value:this.mergedValue,show:this.mergedShow&&!this.showSelectMenu,menuModel:this.menuModel,style:[this.cssVars,null==t?void 0:t.style],onFocus:this.handleMenuFocus,onBlur:this.handleMenuBlur,onKeydown:this.handleMenuKeydown,onMousedown:this.handleMenuMousedown,onTabout:this.handleMenuTabout}),{action:()=>{var e,t;return null===(t=(e=this.$slots).action)||void 0===t?void 0:t.call(e)},empty:()=>{var e,t;return null===(t=(e=this.$slots).empty)||void 0===t?void 0:t.call(e)}})}}),h(de,{key:"selectMenu",ref:"selectMenuFollowerRef",show:this.mergedShow&&this.showSelectMenu,containerClass:this.namespace,width:"target",placement:this.placement,to:this.adjustedTo,teleportDisabled:this.adjustedTo===J.tdkey},{default:()=>{var e;null===(e=this.onRender)||void 0===e||e.call(this);const{filterMenuProps:t}=this;return h(at,Object.assign({},t,{ref:"selectMenuInstRef",class:[this.themeClass,null==t?void 0:t.class],value:this.mergedValue,show:this.mergedShow&&this.showSelectMenu,pattern:this.pattern,multiple:this.multiple,tmNodes:this.treeMate.treeNodes,filter:this.filter,labelField:this.labelField,separator:this.separator,style:[this.cssVars,null==t?void 0:t.style]}))}})]}))}}),dt={listWrap:"_listWrap_jqusf_1",customTabs:"_customTabs_jqusf_7",infoWrap:"_infoWrap_jqusf_28",teacherInfoWrap:"_teacherInfoWrap_jqusf_35",teacherHeadWrap:"_teacherHeadWrap_jqusf_40",headerD:"_headerD_jqusf_45",defultHeade:"_defultHeade_jqusf_49",changeHead:"_changeHead_jqusf_58",uploadFile:"_uploadFile_jqusf_69",headerInfo:"_headerInfo_jqusf_77",headerTitle:"_headerTitle_jqusf_77",sexIcon:"_sexIcon_jqusf_90",headerSubTitle:"_headerSubTitle_jqusf_95",setInfo:"_setInfo_jqusf_101",btnList:"_btnList_jqusf_125",btn:"_btn_jqusf_125",select:"_select_jqusf_148","n-base-selection":"_n-base-selection_jqusf_122",changePwdModal:"_changePwdModal_jqusf_151",wrap:"_wrap_jqusf_154",sendMsg:"_sendMsg_jqusf_166",pwdIcon:"_pwdIcon_jqusf_170",submitBtm:"_submitBtm_jqusf_175"},ct=""+new URL("headerD-220e6507.png",t.meta.url).href,ut=l({name:"forgotPassword",emits:["close"],setup(e,{emit:t}){ge();const o=c(),n=me(),r=c(!1);ve.BASE_LOGIN_NAME;const a=c(!1),i=we(),l=ye({mobile:"",password:"",code:"",isCaptcha:!0}),s=c(!1),d=c(60),u=async()=>(o.value.validate((async e=>{if(!e){n.loading("修改中..."),r.value=!0;try{return await Qe({...l,clientType:"TEACHER"}),n.success("修改成功"),r.value=!1,t("close"),setTimeout((()=>{i.logout(),history.go(0)}),500),!1}catch(o){return r.value=!1,n.error(o.msg),!1}}})),!1),h=()=>{if(s.value)return;s.value=!0;const e=setInterval((()=>{d.value--,console.log(d.value),d.value<=0&&(s.value=!1,clearInterval(e))}),1e3)};return()=>be(Ie,null,[be("div",{class:dt.wrap},[be(_e,{ref:o,"label-placement":"left",size:"large",model:l},{default:()=>[be(Ce,{path:"mobile",rule:[{key:"a",required:!0,message:"请输入手机号",trigger:"blur"},{key:"a",pattern:/^1[3456789]\d{9}$/,message:"手机号格式不正确",trigger:"blur"}]},{default:()=>[be(xe,{maxlength:11,value:l.mobile,"onUpdate:value":e=>l.mobile=e,placeholder:"请输入手机号"},null)]}),be(Ce,{path:"code",rule:[{required:!0,message:"请输入验证码",trigger:"blur"}]},{default:()=>[be(Ae,null,{default:()=>[be(xe,{value:l.code,"onUpdate:value":e=>l.code=e,type:"text",maxlength:6,placeholder:"请输入验证码",inputProps:{autocomplete:"off"},class:dt.sendInput},null),be(ke,{type:"primary",class:dt.sendMsg,disabled:s.value,bordered:!1,onClick:()=>{o.value?.validate((e=>{e||(h(),$e({clientId:"cooleshow-teacher",mobile:l.mobile,type:"PASSWORD"}))}),(e=>"a"===e.key))}},{default:()=>[s.value?d.value:"发送短信"]})]})]}),be(Ce,{path:"password",rule:[{required:!0,message:"请输入密码",trigger:"blur"},{pattern:/^(?![0-9]+$)(?![a-zA-Z]+$)[0-9A-Za-z]{6,20}$/,message:"密码为6-20位数字和字母组合",trigger:"blur"}]},{default:()=>[be(xe,{value:l.password,"onUpdate:value":e=>l.password=e,type:"password",showPasswordOn:"click",placeholder:"请输入密码",inputProps:{autocomplete:"off"},class:[a.value?"":dt["no-pwd"]]},{"password-visible-icon":()=>be("img",{src:"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAADAAAAAwCAYAAABXAvmHAAAAAXNSR0IArs4c6QAABPZJREFUaEPtWN1vG0UQn7kYny1hFQgEqASRQYhS4GnPMbFTxaCmkJC0UAiipPwDPECfykcr4QcKqE8pD/wDhBY1fLQkbVBA4EDsxL67J0pbhEhUkAoKFVDZKD7ncoM2nKPrcT5/Nq0l7+Puzuz8ZmZ/M7sITT6wye2HFoBrHcFWBFoRqNMDrRSq04F1izcsApFIpEPTtGcQMQIADxHRZgDYZFp4GREvAsAZIkqJovhJKpVaqtt6gPrqQHd39y0rKyvDRPQcIvYSUVslRiHiKhHNIOJxn893fHZ29q9K5Jz21BSBWCzmy2az+wDgNYuXa7XhMgC8GwgERhOJRL5aJVUBiMfjwuTk5F4AeIuI7qr2MLf9iPgrABwcHBwci8fjRqW6KwYQjUY35/P5jwBgWynliCgDwMeIeE4QhAu6rl/gez0eT6dhGJ1E9AAAPEtEIRcd34qiuCeZTPI7U3ZUBECSpD4i+hAAbnPQeAkA3gOAo6qq/lz2RABgjN0LAC8AwMsAcKuDzB+IOKIoypfl9LkC4CkzMTERB4ADACDYlGmIeISI3lZVledx1YMxtgkR3yCiVwBAtCngaXRoaGgo7pZSJQH09/eLS0tLxwDgabtliHja6/W+lEql1lLEPoaHh9sWFxcfAYB7zLWFYDA4Pz4+vuq0PxKJdBYKhfeJaMBh/bOOjo49U1NTWsUsFI1GA/l8/gQAPGYVMunvgKIohxGR7AoZYzcg4j4i2u+QGpcQ8TARjaqqumKXJSKUJOlVROQEYafjr30+31PJZDL7P2faJ7jxmqZ9RURdtrWLbW1tz2cyme+cPGGmw0ki6nXLJUScIaJdpdKuq6tr2+rqKicLXgitI+3z+frsIK5IIZPfTwPAozbP/yCK4o5SzGDS6ykieqKSi4CIX8iyPOAURS7PGU/TtGkietCm75tAIDBgrRfrAMy8/ZSIdtqE5r1e75Nzc3N/ljKOMcYZhbOUdfD2IcEniCjmUPBGVFU9Wkonr/KFQuEUAPC7tD4Q8fNgMLi7eJ/WATDGjpi0Zt0/HwgE+hKJRM7Ns5IkyUQkFffwemCmyW98jjF2JyLy9Frnf0RUFEUpWQ+4XCwWuzGbzXIqvQIEp21VVTlz/dcLhUKhvYZhfGAz8nu/399brk9hjHEe541Z0RmGx+PZkk6nf7LqC4fD9+m6ft5Cx5wEOlRV5XWk5Ojp6bl5eXl5BgAetm4SBOFFWZbH1g5ljJ0FAF4l1wYv64jYJcvy727K+Vo4HGa6risW2R8VRdniJCdJ0nkiur+45vF4pHQ6rZY7w4xg2ta+nFNVdWtTAAiFQncQUaYkgKZPITONHC9xe3v79unp6X+qvMQZRNxVTEEzBU5Ya0tDLzE3zo1G/X7/gNtlDoVCI4ZhjNlA/s2LFp/bEBo1acuXy+WmzAPX7UHEM6IoPn5dF7KitbW2ErFY7KZcLsfT5Kq0EoiYEUVxu2srYQWRz+dPOrQUOhEdvIrN3H5EPFRXM1cE0dTtdBEEv9gLCwtvujxoRononTofNK8TEf8gaOyDxsoojLEdAMBZptSTklPwsevuSWkFUc2jXhCEs4j4i/VRT0R3G4ax9Zo86otAmvpbxRqNpv3YsrcTTfu16NQXhcPh23Vd391Un7vl+viNWK/oZ24jDKn1jBaAWj3XKLlWBBrlyVr1tCJQq+caJdf0EfgXo04MXg/L95wAAAAASUVORK5CYII=",class:dt.pwdIcon},null),"password-invisible-icon":()=>be("img",{src:"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAADAAAAAwCAYAAABXAvmHAAAAAXNSR0IArs4c6QAABT5JREFUaEPtV3+IVFUU/s59M+5Es0G/SKLUTAtCi+beGdddNrE/FoqECC0Lgqgg0FSChPrDUmIpSCqiH5AUSf4TFFG7QQTVlK068+7dIk0qcw2MsiSUjdbdnZ134gxvlrfj7K7zYwthLizszHvnnO875zvn3CGc54fOc/xoEfi/K9iqQKsCDWagJaEGE9iweasCDaewQQetCjSYwIbNWxVoOIUNOpisQE9Pz4XDw8MLEonEkWw2O9Gg3zkx11rHiWiZ53lHc7ncsAQpEchkMqZYLH4OoJ2IjsXj8Z79+/f/PCco6nRqjFnMzIJxIYARIlptrc2XCBhj3mPmNQDmASgAOE1E3dbaH+uM11Szjo6ORYVCYR+AywDEBSMRfWStXVsioLXexcz3E1FbGFlI/KOUutP3/S+biqZGZ8aYm5n5EwAXh+DFwzgRfWCtXV8msICIvmHmiwDEwhhFAAxgs3Pu9RrjNuV1Y8zaIAj2KKU8Zi7jkuSeAtDpnDs62cQrVqy4oVgs7mXm9ghTASIGbwPY6JyT/+f8MDNlMpltQRBsA6DCvzKWv4ioy1o7NNnEZURa62sBfAZgPoCynEBEowAOAlhfNpwrFitXrrxkfHz8TQC3RTEAGAPwRzweX3XgwIFfyvHPWmRaa2mUj5n5pkhPlHTHzKyUeiqZTL4wF6NWa30fgFcBXFAJnoi+SiaTd2ez2dPR5FXdxOvWrZs3NDR0mIgWMbMXNWDmMSKS8omkvmhGJYwxywC8xMy3VMgXzBwQ0an29vYlleDPklBEStK0D4Zj9SyMRFRklv4uyWqHtfZDIip9UcsxxnQxs+i8B4AsTxmR1Y7I5/tYLLa6vMBmktBrAB6qAB+EzTzZF6ED+V7InFRKvcvMfQC+nq7Zt2/frvr6+tIAbieie5h5CQDxUQlchoVMnahChMShRCKxemBg4O+qBLTW1cDLON1ERDLKniWiGDMnqqRpPJwWsmSOM/OvAI5KZZj5GgBXA7hK9M3MExX9VXInw4KZh4loi3xk5ncATEpY5KuUOtjW1nZrmcQkQ631JgA7KzJfJKIN1to3JEAmk7l0YmKiVyn1MDNLlqoRmdIy4S6RUTjtCYHL8+cBPOecG5EPxpj1zLwnSgKATMRXnHNbp/RAKpXKEtGqSJQp4KPRu7q6rhwdHX2EiB4NgiBJRHIFqfkQ0QQzHwfwYiwW212p7xlI5JxzHVMIaK2fBPB0KANSSm3wfX/XTKjkdgjgt/COUn5VtCqyk+rOIyKZJCIvJiLFzEK2XJGT1torZhsAxph7QzkJYbmRPuace3kKAWmw/v7+x2X+A9jtnPt0tpQaY65n5h8i750horcADIbLUBaigD5BRL8DWApgS6SHhNSN1tpDs8XSWi8nojVKqe/y+Xz/tFNoNkfR58aYrcy8I1w8pUee5y3O5/PHqvmRLVsoFP4s7xYiOgOg11rbW0vc6LsN/aRMpVI+EZmyQ2Y+Mjg4eN1MYFKp1AARdUbeOeScW/6fE+ju7r58ZGTkRETPo0qpnb7vy2Ka9mitN8ukiVSNY7HYglwuJ2O35lN3BTKZzB3FYvH9yNgNlFIdvu/7M6Ho7OxcODY2NnkZkwXped5dUV3XwqJuAtJUAL4NKyBT57C1Vi6As14pjDH7giBIhff8olJqqe/7Mk5rPnUTkEjpdPqBIAiekM2rlNqYz+d/OhcE6XR6fhAEz8h29jyvN5/P7z0Xu2rvNESg3qDNtGsRaGY26/HVqkA9WWumTasCzcxmPb5aFagna820aVWgmdmsx9e/6msHT1UYKgkAAAAASUVORK5CYII=",class:dt.pwdIcon},null)})]})]})]),be(Pe,{justify:"space-around",style:{width:"100%"},wrap:!1,wrapItem:!1},{default:()=>[be(ke,{class:[dt.submitBtm,dt.submitForgoBtm],onClick:()=>t("close"),size:"large",round:!0,disabled:r.value},{default:()=>[Te("取消")]}),be(ke,{class:[dt.submitBtm,dt.submitForgoBtm],type:"primary",onClick:u,size:"large",round:!0,disabled:r.value},{default:()=>[Te("确认修改")]})]})])}}),ht=()=>Re.get("/edu-app/open/sysArea/queryAllProvince"),ft=l({name:"setting-personInfo",setup(){const e=me(),t=we(),a=ye({sexs:[{label:"男",value:1,class:"option"},{label:"女",value:0,class:"option"}],areaList:[]}),i=c(),l=ye({provinceCode:"",cityCode:"",regionCode:"",nickname:t.info.nickname,phone:t.info.phone,gender:t.info.gender,schoolId:t.info.schoolInfos?.[0]?.id,tenantId:t.info.schoolInfos?.[0]?.tenantId,id:t.info.id,avatar:t.info.avatar}),s=ye({disabled:!0,openChangePwd:!1,uploadShow:!0});return Se((()=>{(async()=>{const e=await ht();200===e?.code&&(a.areaList=e.data)})()})),()=>be("div",{class:dt.infoWrap},[be("div",{class:dt.teacherInfoWrap},[be("div",{class:dt.teacherHeadWrap},[be(Be,{previewDisabled:!0,class:dt.headerD,src:ct},null),be(Be,{previewDisabled:!0,class:dt.defultHeade,src:l.avatar||o},null),be("div",{style:{display:s.disabled?"none":""},class:[dt.defultHeade,dt.changeHead]},[Te("修改头像"),s.uploadShow&&be(Ve,{class:[dt.uploadFile],cropper:!0,"onUpdate:fileList":e=>{l.avatar=e,s.uploadShow=!1,setTimeout((()=>{s.uploadShow=!0}),100)}},null)])]),be("div",{class:dt.headerInfo},[be("p",{class:dt.headerTitle},[t.info.nickname,be(Be,{previewDisabled:!0,class:dt.sexIcon,src:t.info.gender?n:r},null)]),be("p",{class:dt.headerSubTitle},[t.info.schoolInfos?.[0]?.name,Te(" | 音乐老师")])])]),be("div",{class:dt.setInfo},[be(_e,{ref:i,model:l,disabled:s.disabled},{default:()=>[be(Me,{cols:3,"x-gap":"100"},{default:()=>[be(je,null,{default:()=>[be(Ce,{label:"姓名",path:"nickname",rule:{required:!0,message:"请填写老师姓名",trigger:"blur"}},{default:()=>[be(xe,{placeholder:"请填写老师姓名",value:l.nickname,"onUpdate:value":e=>l.nickname=e},null)]})]}),be(je,null,{default:()=>[be(Ce,{label:"手机号",path:"phone",rule:[{required:!0,message:"请填写老师手机号",trigger:"blur"},{pattern:/^1[3456789]\d{9}$/,message:"手机号格式不正确",trigger:"blur"}]},{default:()=>[be(xe,{placeholder:"请填写老师手机号",value:l.phone,"onUpdate:value":e=>l.phone=e},null)]})]}),be(je,null,{default:()=>[be(Ce,{label:"性别",path:"sex"},{default:()=>[be(Ee,{class:dt.select,showArrow:!s.disabled,placeholder:"请选择性别",options:a.sexs,value:l.gender,"onUpdate:value":e=>l.gender=e},null)]})]})]}),be(Ce,{label:"城区",style:{maxWidth:"30%"}},{default:()=>[be(st,{options:a.areaList,labelField:"name",valueField:"code",childrenField:"areas",checkStrategy:"child",expandTrigger:"hover",defaultValue:t.info.regionCode||t.info.cityCode,"onUpdate:value":(e,t,o)=>{l.provinceCode=o[0]?.code,l.cityCode=o[1]?.code,l.regionCode=o[2]?.code}},null)]})]})]),s.disabled?be(Pe,{class:dt.btnList,align:"center",justify:"end"},{default:()=>[be(ke,{class:dt.btn,color:"#198cfe",onClick:()=>s.openChangePwd=!0},{default:()=>[Te("修改密码")]}),be(ke,{class:dt.btn,color:"#f24433",onClick:()=>s.disabled=!1},{default:()=>[Te("修改信息")]})]}):be(Pe,{class:dt.btnList,align:"center",justify:"end"},{default:()=>[be(ke,{class:dt.btn,onClick:()=>s.disabled=!0},{default:()=>[Te("取消")]}),be(ke,{class:dt.btn,type:"primary",onClick:()=>{i.value.validate((async o=>{o||(await qe(l),console.log(l),t.getInfo(),s.disabled=!0,e.success("修改成功"))}))}},{default:()=>[Te("完成")]})]}),be(De,{class:dt.changePwdModal,show:s.openChangePwd,"onUpdate:show":e=>s.openChangePwd=e,preset:"dialog",showIcon:!1,title:"修改密码"},{default:()=>[be(ut,{onClose:()=>{s.openChangePwd=!1}},null)]})])}}),pt="_logo_yosr2_1",gt="_changeHead_yosr2_8",mt="_uploadFile_yosr2_29",vt="_input_yosr2_37",wt="_schoolInfo_yosr2_42",yt="_errorBtn_yosr2_63",bt="_addTeacher_yosr2_66",_t="_btnList_yosr2_125",Ct="_btn_yosr2_125",xt={xmlns:"http://www.w3.org/2000/svg","xmlns:xlink":"http://www.w3.org/1999/xlink",viewBox:"0 0 512 512"},At=[Fe("path",{fill:"none",stroke:"currentColor","stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"32",d:"M256 112v288"},null,-1),Fe("path",{fill:"none",stroke:"currentColor","stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"32",d:"M400 256H112"},null,-1)],kt=l({name:"Add",render:function(e,t){return Ne(),Le("svg",xt,At)}}),Pt=l({name:"teacher-operation",emits:["close"],setup(e,{emit:t}){const o=we(),n=ye({tenantId:o.info.schoolInfos?.[0]?.tenantId,phone:null,schoolId:o.info.schoolInfos?.[0]?.id,nickname:null,gender:0}),r=c(!1),a=c(),i=me(),l=async()=>{a.value.validate((async e=>{if(!e){try{r.value=!0,await(o={...n},Re.post("/edu-app/teacher/add",{data:o})),i.success("添加成功")}catch(a){console.log(a)}var o;setTimeout((()=>{r.value=!1,t("close")}),100)}}))};return()=>be("div",null,[be(_e,{model:n,ref:a,showRequireMark:!1,"label-placement":"left","label-width":"126"},{default:()=>[be(Ce,{label:"老师姓名",path:"nickname",rule:[{required:!0,message:"请输入老师姓名"}]},{default:()=>[be(xe,{value:n.nickname,"onUpdate:value":e=>n.nickname=e,placeholder:"请输入老师姓名",clearable:!0,maxlength:14},null)]}),be(Ce,{label:"老师性别",path:"gender",rule:[{required:!0,message:"请选择老师性别"}]},{default:()=>[be(Pe,null,{default:()=>[be(Oe("n-button"),{class:"genderBtn",type:n.gender?"info":void 0,tertiary:!n.gender,onClick:()=>{n.gender=1}},{default:()=>[Te("男")]}),be(Oe("n-button"),{class:"genderBtn",type:n.gender?void 0:"info",tertiary:!!n.gender,onClick:()=>{n.gender=0}},{default:()=>[Te("女")]})]})]}),be(Ce,{label:"手机号",path:"phone",rule:[{required:!0,message:"手机号码",trigger:"blur"},{pattern:/^((13[0-9])|(14(0|[5-7]|9))|(15([0-3]|[5-9]))|(16(2|[5-7]))|(17[0-8])|(18[0-9])|(19([0-3]|[5-9])))\d{8}$/,message:"请输入正确的手机号",trigger:"blur"}]},{default:()=>[be(xe,{maxlength:11,value:n.phone,"onUpdate:value":e=>n.phone=e,placeholder:"请输入手机号",clearable:!0},null)]}),be("div",{class:"nalert"},[be(ze,{type:"error",showIcon:!1,bordered:!1},{default:()=>[Te("默认密码为ktyq+手机号后四位")]})])]}),be(Pe,{style:{padding:"20px 0 32px 0"},justify:"center"},{default:()=>[be(ke,{class:"actionBtn",round:!0,type:"default",onClick:()=>t("close")},{default:()=>[Te("取消")]}),be(ke,{class:"actionBtn",round:!0,type:"primary",onClick:()=>l(),loading:r.value},{default:()=>[Te("确定")]})]})])}});function Tt(e){if("string"!=typeof e)throw new TypeError("Path must be a string. Received "+JSON.stringify(e))}function It(e,t){for(var o,n="",r=0,a=-1,i=0,l=0;l<=e.length;++l){if(l<e.length)o=e.charCodeAt(l);else{if(47===o)break;o=47}if(47===o){if(a===l-1||1===i);else if(a!==l-1&&2===i){if(n.length<2||2!==r||46!==n.charCodeAt(n.length-1)||46!==n.charCodeAt(n.length-2))if(n.length>2){var s=n.lastIndexOf("/");if(s!==n.length-1){-1===s?(n="",r=0):r=(n=n.slice(0,s)).length-1-n.lastIndexOf("/"),a=l,i=0;continue}}else if(2===n.length||1===n.length){n="",r=0,a=l,i=0;continue}t&&(n.length>0?n+="/..":n="..",r=2)}else n.length>0?n+="/"+e.slice(a+1,l):n=e.slice(a+1,l),r=l-a-1;a=l,i=0}else 46===o&&-1!==i?++i:i=-1}return n}var Rt={resolve:function(){for(var e,t="",o=!1,n=arguments.length-1;n>=-1&&!o;n--){var r;n>=0?r=arguments[n]:(void 0===e&&(e=process.cwd()),r=e),Tt(r),0!==r.length&&(t=r+"/"+t,o=47===r.charCodeAt(0))}return t=It(t,!o),o?t.length>0?"/"+t:"/":t.length>0?t:"."},normalize:function(e){if(Tt(e),0===e.length)return".";var t=47===e.charCodeAt(0),o=47===e.charCodeAt(e.length-1);return 0!==(e=It(e,!t)).length||t||(e="."),e.length>0&&o&&(e+="/"),t?"/"+e:e},isAbsolute:function(e){return Tt(e),e.length>0&&47===e.charCodeAt(0)},join:function(){if(0===arguments.length)return".";for(var e,t=0;t<arguments.length;++t){var o=arguments[t];Tt(o),o.length>0&&(void 0===e?e=o:e+="/"+o)}return void 0===e?".":Rt.normalize(e)},relative:function(e,t){if(Tt(e),Tt(t),e===t)return"";if((e=Rt.resolve(e))===(t=Rt.resolve(t)))return"";for(var o=1;o<e.length&&47===e.charCodeAt(o);++o);for(var n=e.length,r=n-o,a=1;a<t.length&&47===t.charCodeAt(a);++a);for(var i=t.length-a,l=r<i?r:i,s=-1,d=0;d<=l;++d){if(d===l){if(i>l){if(47===t.charCodeAt(a+d))return t.slice(a+d+1);if(0===d)return t.slice(a+d)}else r>l&&(47===e.charCodeAt(o+d)?s=d:0===d&&(s=0));break}var c=e.charCodeAt(o+d);if(c!==t.charCodeAt(a+d))break;47===c&&(s=d)}var u="";for(d=o+s+1;d<=n;++d)d!==n&&47!==e.charCodeAt(d)||(0===u.length?u+="..":u+="/..");return u.length>0?u+t.slice(a+s):(a+=s,47===t.charCodeAt(a)&&++a,t.slice(a))},_makeLong:function(e){return e},dirname:function(e){if(Tt(e),0===e.length)return".";for(var t=e.charCodeAt(0),o=47===t,n=-1,r=!0,a=e.length-1;a>=1;--a)if(47===(t=e.charCodeAt(a))){if(!r){n=a;break}}else r=!1;return-1===n?o?"/":".":o&&1===n?"//":e.slice(0,n)},basename:function(e,t){if(void 0!==t&&"string"!=typeof t)throw new TypeError('"ext" argument must be a string');Tt(e);var o,n=0,r=-1,a=!0;if(void 0!==t&&t.length>0&&t.length<=e.length){if(t.length===e.length&&t===e)return"";var i=t.length-1,l=-1;for(o=e.length-1;o>=0;--o){var s=e.charCodeAt(o);if(47===s){if(!a){n=o+1;break}}else-1===l&&(a=!1,l=o+1),i>=0&&(s===t.charCodeAt(i)?-1==--i&&(r=o):(i=-1,r=l))}return n===r?r=l:-1===r&&(r=e.length),e.slice(n,r)}for(o=e.length-1;o>=0;--o)if(47===e.charCodeAt(o)){if(!a){n=o+1;break}}else-1===r&&(a=!1,r=o+1);return-1===r?"":e.slice(n,r)},extname:function(e){Tt(e);for(var t=-1,o=0,n=-1,r=!0,a=0,i=e.length-1;i>=0;--i){var l=e.charCodeAt(i);if(47!==l)-1===n&&(r=!1,n=i+1),46===l?-1===t?t=i:1!==a&&(a=1):-1!==t&&(a=-1);else if(!r){o=i+1;break}}return-1===t||-1===n||0===a||1===a&&t===n-1&&t===o+1?"":e.slice(t,n)},format:function(e){if(null===e||"object"!=typeof e)throw new TypeError('The "pathObject" argument must be of type Object. Received type '+typeof e);return function(e,t){var o=t.dir||t.root,n=t.base||(t.name||"")+(t.ext||"");return o?o===t.root?o+n:o+e+n:n}("/",e)},parse:function(e){Tt(e);var t={root:"",dir:"",base:"",ext:"",name:""};if(0===e.length)return t;var o,n=e.charCodeAt(0),r=47===n;r?(t.root="/",o=1):o=0;for(var a=-1,i=0,l=-1,s=!0,d=e.length-1,c=0;d>=o;--d)if(47!==(n=e.charCodeAt(d)))-1===l&&(s=!1,l=d+1),46===n?-1===a?a=d:1!==c&&(c=1):-1!==a&&(c=-1);else if(!s){i=d+1;break}return-1===a||-1===l||0===c||1===c&&a===l-1&&a===i+1?-1!==l&&(t.base=t.name=0===i&&r?e.slice(1,l):e.slice(i,l)):(0===i&&r?(t.name=e.slice(1,a),t.base=e.slice(1,l)):(t.name=e.slice(i,a),t.base=e.slice(i,l)),t.ext=e.slice(a,l)),i>0?t.dir=e.slice(0,i-1):r&&(t.dir="/"),t},sep:"/",delimiter:":",win32:null,posix:null};Rt.posix=Rt;const St=Rt.extname,Bt=Rt.basename;class Mt{constructor(){let e="undefined"==typeof global,t="image/png",o="image/jpeg",n="image/jpeg",r="image/webp",a="application/pdf",i="image/svg+xml";Object.assign(this,{toMime:this.toMime.bind(this),fromMime:this.fromMime.bind(this),expected:e?'"png", "jpg", or "webp"':'"png", "jpg", "pdf", or "svg"',formats:e?{png:t,jpg:o,jpeg:n,webp:r}:{png:t,jpg:o,jpeg:n,pdf:a,svg:i},mimes:e?{[t]:"png",[o]:"jpg",[r]:"webp"}:{[t]:"png",[o]:"jpg",[a]:"pdf",[i]:"svg"}})}toMime(e){return this.formats[(e||"").replace(/^\./,"").toLowerCase()]}fromMime(e){return this.mimes[e]}}class jt{static for(e){return(new jt).append(e).get()}constructor(){this.crc=-1}get(){return~this.crc}append(e){for(var t=0|this.crc,o=this.table,n=0,r=0|e.length;n<r;n++)t=t>>>8^o[255&(t^e[n])];return this.crc=t,this}}function Et(e){let t=new Uint8Array(e),o=new DataView(t.buffer),n={array:t,view:o,size:e,set8:(e,t)=>(o.setUint8(e,t),n),set16:(e,t)=>(o.setUint16(e,t,!0),n),set32:(e,t)=>(o.setUint32(e,t,!0),n),bytes:(e,o)=>(t.set(o,e),n)};return n}jt.prototype.table=(()=>{var e,t,o,n=[];for(e=0;e<256;e++){for(o=e,t=0;t<8;t++)o=1&o?o>>>1^3988292384:o>>>1;n[e]=o}return n})();class Dt{constructor(e){let t=new Date;Object.assign(this,{directory:e,offset:0,files:[],time:(t.getHours()<<6|t.getMinutes())<<5|t.getSeconds()/2,date:(t.getFullYear()-1980<<4|t.getMonth()+1)<<5|t.getDate()}),this.add(e)}async add(e,t){let o=!t,n=Dt.encoder.encode(`${this.directory}/${o?"":e}`),r=new Uint8Array(o?0:await t.arrayBuffer()),a=30+n.length,i=a+r.length,{offset:l}=this,s=Et(26).set32(0,134742036).set16(6,this.time).set16(8,this.date).set32(10,jt.for(r)).set32(14,r.length).set32(18,r.length).set16(22,n.length);l+=a;let d=Et(a+r.length+16).set32(0,67324752).bytes(4,s.array).bytes(30,n).bytes(a,r);l+=r.length,d.set32(i,134695760).bytes(i+4,s.array.slice(10,22)),l+=16,this.files.push({offset:l,folder:o,name:n,header:s,payload:d}),this.offset=l}toBuffer(){let e=this.files.reduce(((e,{name:t})=>46+t.length+e),0),t=Et(e+22),o=0;for(var{offset:n,name:r,header:a,folder:i}of this.files)t.set32(o,33639248).set16(o+4,20).bytes(o+6,a.array).set8(o+38,i?16:0).set32(o+42,n).bytes(o+46,r),o+=46+r.length;t.set32(o,101010256).set16(o+8,this.files.length).set16(o+10,this.files.length).set32(o+12,e).set32(o+16,this.offset);let l=new Uint8Array(this.offset+t.size),s=0;for(var{payload:d}of this.files)l.set(d.array,s),s+=d.size;return l.set(t.array,s),l}get blob(){return new Blob([this.toBuffer()],{type:"application/zip"})}}Dt.encoder=new TextEncoder;const qt=(e,t,o,n)=>{if(n){let{width:t,height:o}=e,r=Object.assign(document.createElement("canvas"),{width:t,height:o}),a=r.getContext("2d");a.fillStyle=n,a.fillRect(0,0,t,o),a.drawImage(e,0,0),e=r}return new Promise(((n,r)=>e.toBlob(n,t,o)))},Lt=(e,t)=>{const o=window.URL.createObjectURL(t),n=document.createElement("a");n.style.display="none",n.href=o,n.setAttribute("download",e),void 0===n.download&&n.setAttribute("target","_blank"),document.body.appendChild(n),n.click(),document.body.removeChild(n),setTimeout((()=>window.URL.revokeObjectURL(o)),100)},Nt={asBuffer:(...e)=>qt(...e).then((e=>e.arrayBuffer())),asDownload:async(e,t,o,n,r)=>{Lt(r,await qt(e,t,o,n))},asZipDownload:async(e,t,o,n,r,a,i)=>{let l=Bt(r,".zip")||"archive",s=new Dt(l);await Promise.all(e.map((async(e,r)=>{let l=(e=>a.replace("{}",String(e+1).padStart(i,"0")))(r);await s.add(l,await qt(e,t,o,n))}))),Lt(`${l}.zip`,s.blob)},atScale:(e,t,o)=>e.map((e=>{if(1==t&&!o)return e.canvas;let n=document.createElement("canvas"),r=n.getContext("2d"),a=e.canvas?e.canvas:e;return n.width=a.width*t,n.height=a.height*t,o&&(r.fillStyle=o,r.fillRect(0,0,n.width,n.height)),r.scale(t,t),r.drawImage(a,0,0),n})),options:function(e,{filename:t="",extension:o="",format:n,page:r,quality:a,matte:i,density:l,outline:s,archive:d}={}){var{fromMime:c,toMime:u,expected:h}=new Mt,f=(d=d||"canvas",n||o.replace(/@\d+x$/i,"")||St(t)),p=(n=c(u(f)||f),u(n)),g=e.length;if(!f)throw new Error("Cannot determine image format (use a filename extension or 'format' argument)");if(!n)throw new Error(`Unsupported file format "${f}" (expected ${h})`);if(!g)throw new RangeError("Canvas has no associated contexts (try calling getContext or newPage first)");let m,v,w=t.replace(/{(\d*)}/g,((e,t)=>(v=!0,t=parseInt(t,10),m=isFinite(t)?t:isFinite(m)?m:-1,"{}"))),y=r>0?r-1:r<0?g+r:void 0;if(isFinite(y)&&y<0||y>=g)throw new RangeError(1==g?`Canvas only has a ‘page 1’ (${y} is out of bounds)`:`Canvas has pages 1–${g} (${y} is out of bounds)`);if(e=isFinite(y)?[e[y]]:v||"pdf"==n?e:e.slice(-1),void 0===a)a=.92;else if("number"!=typeof a||!isFinite(a)||a<0||a>1)throw new TypeError("The quality option must be an number in the 0.0–1.0 range");if(void 0===l){let e=(o||Bt(t,f)).match(/@(\d+)x$/i);l=e?parseInt(e[1],10):1}else if("number"!=typeof l||!Number.isInteger(l)||l<1)throw new TypeError("The density option must be a non-negative integer");return void 0===s?s=!0:"svg"==n&&(s=!!s),{filename:t,pattern:w,format:n,mime:p,pages:e,padding:m,quality:a,matte:i,density:l,outline:s,archive:d}}},{asBuffer:Ft,asDownload:Ot,asZipDownload:zt,atScale:Ut,options:Kt}=Nt,Wt=Symbol.for("toDataURL"),{CanvasRenderingContext2D:Ht,CanvasGradient:Gt,CanvasPattern:Vt,Image:Qt,ImageData:$t,Path2D:Yt,DOMMatrix:Xt,DOMRect:Zt,DOMPoint:Jt}=window,eo={Canvas:class{constructor(e,t){let o=document.createElement("canvas"),n=[];for(var[r,a]of(Object.defineProperty(o,"async",{value:!0,writable:!1,enumerable:!0}),Object.entries({png:()=>Ft(o,"image/png"),jpg:()=>Ft(o,"image/jpeg"),pages:()=>n.concat(o).map((e=>e.getContext("2d")))})))Object.defineProperty(o,r,{get:a});return Object.assign(o,{width:e,height:t,newPage(...e){var{width:t,height:r}=o,a=Object.assign(document.createElement("canvas"),{width:t,height:r});a.getContext("2d").drawImage(o,0,0),n.push(a);var[t,r]=e.length?e:[t,r];return Object.assign(o,{width:t,height:r}).getContext("2d")},saveAs(e,t){t="number"==typeof t?{quality:t}:t;let o=Kt(this.pages,{filename:e,...t}),{pattern:n,padding:r,mime:a,quality:i,matte:l,density:s,archive:d}=o,c=Ut(o.pages,s);return null==r?Ot(c[0],a,i,l,e):zt(c,a,i,l,d,n,r)},toBuffer(e="png",t={}){t="number"==typeof t?{quality:t}:t;let o=Kt(this.pages,{extension:e,...t}),{mime:n,quality:r,matte:a,pages:i,density:l}=o,s=Ut(i,l,a)[0];return Ft(s,n,r,a)},[Wt]:o.toDataURL.bind(o),toDataURL(e="png",t={}){t="number"==typeof t?{quality:t}:t;let n=Kt(this.pages,{extension:e,...t}),{mime:r,quality:a,matte:i,pages:l,density:s}=n,d=Ut(l,s,i)[0],c=d[d===o?Wt:"toDataURL"](r,a);return Promise.resolve(c)}})}},loadImage:e=>new Promise(((t,o)=>Object.assign(new Qt,{crossOrigin:"Anonymous",onload:t,onerror:o,src:e}))),CanvasRenderingContext2D:Ht,CanvasGradient:Gt,CanvasPattern:Vt,Image:Qt,ImageData:$t,Path2D:Yt,DOMMatrix:Xt,DOMRect:Zt,DOMPoint:Jt},to=(e,t,o={},n=o)=>{if(Array.isArray(t))t.forEach((t=>to(e,t,o,n)));else if("function"==typeof t)t(e,o,n,to);else{const r=Object.keys(t)[0];Array.isArray(t[r])?(n[r]={},to(e,t[r],o,n[r])):n[r]=t[r](e,o,n,to)}return o},oo=(e,t)=>(o,n,r,a)=>{t(o,n,r)&&a(o,e,n,r)},no=(e=0)=>t=>t.data[t.pos+e],ro=e=>t=>t.data.subarray(t.pos,t.pos+=e),ao=e=>t=>t.data.subarray(t.pos,t.pos+e),io=e=>t=>Array.from(ro(e)(t)).map((e=>String.fromCharCode(e))).join(""),lo=e=>t=>{const o=ro(2)(t);return e?(o[1]<<8)+o[0]:(o[0]<<8)+o[1]},so=(e,t)=>(o,n,r)=>{const a="function"==typeof t?t(o,n,r):t,i=ro(e),l=new Array(a);for(var s=0;s<a;s++)l[s]=i(o);return l},co=e=>t=>{const o=(e=>e.data[e.pos++])(t),n=new Array(8);for(var r=0;r<8;r++)n[7-r]=!!(o&1<<r);return Object.keys(e).reduce(((t,o)=>{const r=e[o];return r.length?t[o]=((e,t,o)=>{for(var n=0,r=0;r<o;r++)n+=e[t+r]&&2**(o-r-1);return n})(n,r.index,r.length):t[o]=n[r.index],t}),{})};var uo={blocks:e=>{const t=[],o=e.data.length;for(var n=0,r=(e=>e.data[e.pos++])(e);0!==r&&r;r=(e=>e.data[e.pos++])(e)){if(e.pos+r>=o){const r=o-e.pos;t.push(ro(r)(e)),n+=r;break}t.push(ro(r)(e)),n+=r}const a=new Uint8Array(n);for(var i=0,l=0;l<t.length;l++)a.set(t[l],i),i+=t[l].length;return a}};const ho=oo({gce:[{codes:ro(2)},{byteSize:e=>e.data[e.pos++]},{extras:co({future:{index:0,length:3},disposal:{index:3,length:3},userInput:{index:6},transparentColorGiven:{index:7}})},{delay:lo(!0)},{transparentColorIndex:e=>e.data[e.pos++]},{terminator:e=>e.data[e.pos++]}]},(e=>{var t=ao(2)(e);return 33===t[0]&&249===t[1]})),fo=oo({image:[{code:e=>e.data[e.pos++]},{descriptor:[{left:lo(!0)},{top:lo(!0)},{width:lo(!0)},{height:lo(!0)},{lct:co({exists:{index:0},interlaced:{index:1},sort:{index:2},future:{index:3,length:2},size:{index:5,length:3}})}]},oo({lct:so(3,((e,t,o)=>Math.pow(2,o.descriptor.lct.size+1)))},((e,t,o)=>o.descriptor.lct.exists)),{data:[{minCodeSize:e=>e.data[e.pos++]},uo]}]},(e=>44===no()(e))),po=oo({text:[{codes:ro(2)},{blockSize:e=>e.data[e.pos++]},{preData:(e,t,o)=>ro(o.text.blockSize)(e)},uo]},(e=>{var t=ao(2)(e);return 33===t[0]&&1===t[1]})),go=oo({application:[{codes:ro(2)},{blockSize:e=>e.data[e.pos++]},{id:(e,t,o)=>io(o.blockSize)(e)},uo]},(e=>{var t=ao(2)(e);return 33===t[0]&&255===t[1]})),mo=oo({comment:[{codes:ro(2)},uo]},(e=>{var t=ao(2)(e);return 33===t[0]&&254===t[1]})),vo=[{header:[{signature:io(3)},{version:io(3)}]},{lsd:[{width:lo(!0)},{height:lo(!0)},{gct:co({exists:{index:0},resolution:{index:1,length:3},sort:{index:4},size:{index:5,length:3}})},{backgroundColorIndex:e=>e.data[e.pos++]},{pixelAspectRatio:e=>e.data[e.pos++]}]},oo({gct:so(3,((e,t)=>Math.pow(2,t.lsd.gct.size+1)))},((e,t)=>t.lsd.gct.exists)),{frames:((e,t)=>(o,n,r,a)=>{const i=[];let l=o.pos;for(;t(o,n,r);){const t={};if(a(o,e,n,t),o.pos===l)break;l=o.pos,i.push(t)}return i})([ho,go,mo,fo,po],(e=>{var t=no()(e);return 33===t||44===t}))}],wo=(e,t,o)=>{if(!e.image)return void console.warn("gif frame does not have associated image.");const{image:n}=e,r=n.descriptor.width*n.descriptor.height;var a=((e,t,o)=>{const n=4096,r=o;var a,i,l,s,d,c,u,h,f,p;const g=new Array(o),m=new Array(n),v=new Array(n),w=new Array(4097);for(d=1+(i=1<<(p=e)),a=i+2,u=-1,l=(1<<(s=p+1))-1,h=0;h<i;h++)m[h]=0,v[h]=h;var y,b,_,C,x,A;for(y=b=_=C=x=A=0,f=0;f<r;){if(0===C){if(b<s){y+=t[A]<<b,b+=8,A++;continue}if(h=y&l,y>>=s,b-=s,h>a||h==d)break;if(h==i){l=(1<<(s=p+1))-1,a=i+2,u=-1;continue}if(-1==u){w[C++]=v[h],u=h,_=h;continue}for(c=h,h==a&&(w[C++]=_,h=u);h>i;)w[C++]=v[h],h=m[h];_=255&v[h],w[C++]=_,a<n&&(m[a]=u,v[a]=_,0==(++a&l)&&a<n&&(s++,l+=a)),u=c}C--,g[x++]=w[C],f++}for(f=x;f<r;f++)g[f]=0;return g})(n.data.minCodeSize,n.data.blocks,r);n.descriptor.lct.interlaced&&(a=((e,t)=>{const o=new Array(e.length),n=e.length/t,r=function(n,r){const a=e.slice(r*t,(r+1)*t);o.splice.apply(o,[n*t,t].concat(a))},a=[0,4,2,1],i=[8,8,4,2];for(var l=0,s=0;s<4;s++)for(var d=a[s];d<n;d+=i[s])r(d,l),l++;return o})(a,n.descriptor.width));const i={pixels:a,dims:{top:e.image.descriptor.top,left:e.image.descriptor.left,width:e.image.descriptor.width,height:e.image.descriptor.height}};return n.descriptor.lct&&n.descriptor.lct.exists?i.colorTable=n.lct:i.colorTable=t,e.gce&&(i.delay=10*(e.gce.delay||10),i.disposalType=e.gce.extras.disposal,e.gce.extras.transparentColorGiven&&(i.transparentIndex=e.gce.transparentColorIndex)),o&&(i.patch=(e=>{const t=e.pixels.length,o=new Uint8ClampedArray(4*t);for(var n=0;n<t;n++){const t=4*n,r=e.pixels[n],a=e.colorTable[r];o[t]=a[0],o[t+1]=a[1],o[t+2]=a[2],o[t+3]=r!==e.transparentIndex?255:0}return o})(i)),i};function yo(e){var t=encodeURI(e).toString().replace(/\%[0-9a-fA-F]{2}/g,"a");return t.length+(t.length!=Number(e)?3:0)}class bo{constructor(e){this.mode=xo.MODE_8BIT_BYTE,this.parsedData=[],this.data=e;const t=[];for(let o=0,n=this.data.length;o<n;o++){const e=[],n=this.data.charCodeAt(o);n>65536?(e[0]=240|(1835008&n)>>>18,e[1]=128|(258048&n)>>>12,e[2]=128|(4032&n)>>>6,e[3]=128|63&n):n>2048?(e[0]=224|(61440&n)>>>12,e[1]=128|(4032&n)>>>6,e[2]=128|63&n):n>128?(e[0]=192|(1984&n)>>>6,e[1]=128|63&n):e[0]=n,t.push(e)}this.parsedData=Array.prototype.concat.apply([],t),this.parsedData.length!=this.data.length&&(this.parsedData.unshift(191),this.parsedData.unshift(187),this.parsedData.unshift(239))}getLength(){return this.parsedData.length}write(e){for(let t=0,o=this.parsedData.length;t<o;t++)e.put(this.parsedData[t],8)}}class _o{constructor(e=-1,t=Co.L){this.moduleCount=0,this.dataList=[],this.typeNumber=e,this.errorCorrectLevel=t,this.moduleCount=0,this.dataList=[]}addData(e){if(this.typeNumber<=0)this.typeNumber=function(e,t){for(var o=1,n=yo(e),r=0,a=So.length;r<a;r++){var i=0;switch(t){case Co.L:i=So[r][0];break;case Co.M:i=So[r][1];break;case Co.Q:i=So[r][2];break;case Co.H:i=So[r][3]}if(n<=i)break;o++}if(o>So.length)throw new Error("Too long data");return o}(e,this.errorCorrectLevel);else{if(this.typeNumber>40)throw new Error(`Invalid QR version: ${this.typeNumber}`);if(!function(e,t,o){const n=yo(t),r=e-1;let a=0;switch(o){case Co.L:a=So[r][0];break;case Co.M:a=So[r][1];break;case Co.Q:a=So[r][2];break;case Co.H:a=So[r][3]}return n<=a}(this.typeNumber,e,this.errorCorrectLevel))throw new Error(`Data is too long for QR version: ${this.typeNumber}`)}const t=new bo(e);this.dataList.push(t),this.dataCache=void 0}isDark(e,t){if(e<0||this.moduleCount<=e||t<0||this.moduleCount<=t)throw new Error(`${e},${t}`);return this.modules[e][t]}getModuleCount(){return this.moduleCount}make(){this.makeImpl(!1,this.getBestMaskPattern())}makeImpl(e,t){this.moduleCount=4*this.typeNumber+17,this.modules=new Array(this.moduleCount);for(let o=0;o<this.moduleCount;o++){this.modules[o]=new Array(this.moduleCount);for(let e=0;e<this.moduleCount;e++)this.modules[o][e]=null}this.setupPositionProbePattern(0,0),this.setupPositionProbePattern(this.moduleCount-7,0),this.setupPositionProbePattern(0,this.moduleCount-7),this.setupPositionAdjustPattern(),this.setupTimingPattern(),this.setupTypeInfo(e,t),this.typeNumber>=7&&this.setupTypeNumber(e),null==this.dataCache&&(this.dataCache=_o.createData(this.typeNumber,this.errorCorrectLevel,this.dataList)),this.mapData(this.dataCache,t)}setupPositionProbePattern(e,t){for(let o=-1;o<=7;o++)if(!(e+o<=-1||this.moduleCount<=e+o))for(let n=-1;n<=7;n++)t+n<=-1||this.moduleCount<=t+n||(this.modules[e+o][t+n]=0<=o&&o<=6&&(0==n||6==n)||0<=n&&n<=6&&(0==o||6==o)||2<=o&&o<=4&&2<=n&&n<=4)}getBestMaskPattern(){if(Number.isInteger(this.maskPattern)&&Object.values(Ao).includes(this.maskPattern))return this.maskPattern;let e=0,t=0;for(let o=0;o<8;o++){this.makeImpl(!0,o);const n=ko.getLostPoint(this);(0==o||e>n)&&(e=n,t=o)}return t}setupTimingPattern(){for(let e=8;e<this.moduleCount-8;e++)null==this.modules[e][6]&&(this.modules[e][6]=e%2==0);for(let e=8;e<this.moduleCount-8;e++)null==this.modules[6][e]&&(this.modules[6][e]=e%2==0)}setupPositionAdjustPattern(){const e=ko.getPatternPosition(this.typeNumber);for(let t=0;t<e.length;t++)for(let o=0;o<e.length;o++){const n=e[t],r=e[o];if(null==this.modules[n][r])for(let e=-2;e<=2;e++)for(let t=-2;t<=2;t++)this.modules[n+e][r+t]=-2==e||2==e||-2==t||2==t||0==e&&0==t}}setupTypeNumber(e){const t=ko.getBCHTypeNumber(this.typeNumber);for(var o=0;o<18;o++){var n=!e&&1==(t>>o&1);this.modules[Math.floor(o/3)][o%3+this.moduleCount-8-3]=n}for(o=0;o<18;o++)n=!e&&1==(t>>o&1),this.modules[o%3+this.moduleCount-8-3][Math.floor(o/3)]=n}setupTypeInfo(e,t){const o=this.errorCorrectLevel<<3|t,n=ko.getBCHTypeInfo(o);for(var r=0;r<15;r++){var a=!e&&1==(n>>r&1);r<6?this.modules[r][8]=a:r<8?this.modules[r+1][8]=a:this.modules[this.moduleCount-15+r][8]=a}for(r=0;r<15;r++)a=!e&&1==(n>>r&1),r<8?this.modules[8][this.moduleCount-r-1]=a:r<9?this.modules[8][15-r-1+1]=a:this.modules[8][15-r-1]=a;this.modules[this.moduleCount-8][8]=!e}mapData(e,t){let o=-1,n=this.moduleCount-1,r=7,a=0;for(let i=this.moduleCount-1;i>0;i-=2)for(6==i&&i--;;){for(let o=0;o<2;o++)if(null==this.modules[n][i-o]){let l=!1;a<e.length&&(l=1==(e[a]>>>r&1)),ko.getMask(t,n,i-o)&&(l=!l),this.modules[n][i-o]=l,r--,-1==r&&(a++,r=7)}if(n+=o,n<0||this.moduleCount<=n){n-=o,o=-o;break}}}static createData(e,t,o){const n=Io.getRSBlocks(e,t),r=new Ro;for(var a=0;a<o.length;a++){const t=o[a];r.put(t.mode,4),r.put(t.getLength(),ko.getLengthInBits(t.mode,e)),t.write(r)}let i=0;for(a=0;a<n.length;a++)i+=n[a].dataCount;if(r.getLengthInBits()>8*i)throw new Error(`code length overflow. (${r.getLengthInBits()}>${8*i})`);for(r.getLengthInBits()+4<=8*i&&r.put(0,4);r.getLengthInBits()%8!=0;)r.putBit(!1);for(;!(r.getLengthInBits()>=8*i||(r.put(_o.PAD0,8),r.getLengthInBits()>=8*i));)r.put(_o.PAD1,8);return _o.createBytes(r,n)}static createBytes(e,t){let o=0,n=0,r=0;const a=new Array(t.length),i=new Array(t.length);for(var l=0;l<t.length;l++){const d=t[l].dataCount,c=t[l].totalCount-d;n=Math.max(n,d),r=Math.max(r,c),a[l]=new Array(d);for(var s=0;s<a[l].length;s++)a[l][s]=255&e.buffer[s+o];o+=d;const u=ko.getErrorCorrectPolynomial(c),h=new To(a[l],u.getLength()-1).mod(u);for(i[l]=new Array(u.getLength()-1),s=0;s<i[l].length;s++){const e=s+h.getLength()-i[l].length;i[l][s]=e>=0?h.get(e):0}}let d=0;for(s=0;s<t.length;s++)d+=t[s].totalCount;const c=new Array(d);let u=0;for(s=0;s<n;s++)for(l=0;l<t.length;l++)s<a[l].length&&(c[u++]=a[l][s]);for(s=0;s<r;s++)for(l=0;l<t.length;l++)s<i[l].length&&(c[u++]=i[l][s]);return c}}_o.PAD0=236,_o.PAD1=17;const Co={L:1,M:0,Q:3,H:2},xo={MODE_NUMBER:1,MODE_ALPHA_NUM:2,MODE_8BIT_BYTE:4,MODE_KANJI:8},Ao={PATTERN000:0,PATTERN001:1,PATTERN010:2,PATTERN011:3,PATTERN100:4,PATTERN101:5,PATTERN110:6,PATTERN111:7};class ko{static getBCHTypeInfo(e){let t=e<<10;for(;ko.getBCHDigit(t)-ko.getBCHDigit(ko.G15)>=0;)t^=ko.G15<<ko.getBCHDigit(t)-ko.getBCHDigit(ko.G15);return(e<<10|t)^ko.G15_MASK}static getBCHTypeNumber(e){let t=e<<12;for(;ko.getBCHDigit(t)-ko.getBCHDigit(ko.G18)>=0;)t^=ko.G18<<ko.getBCHDigit(t)-ko.getBCHDigit(ko.G18);return e<<12|t}static getBCHDigit(e){let t=0;for(;0!=e;)t++,e>>>=1;return t}static getPatternPosition(e){return ko.PATTERN_POSITION_TABLE[e-1]}static getMask(e,t,o){switch(e){case Ao.PATTERN000:return(t+o)%2==0;case Ao.PATTERN001:return t%2==0;case Ao.PATTERN010:return o%3==0;case Ao.PATTERN011:return(t+o)%3==0;case Ao.PATTERN100:return(Math.floor(t/2)+Math.floor(o/3))%2==0;case Ao.PATTERN101:return t*o%2+t*o%3==0;case Ao.PATTERN110:return(t*o%2+t*o%3)%2==0;case Ao.PATTERN111:return(t*o%3+(t+o)%2)%2==0;default:throw new Error(`bad maskPattern:${e}`)}}static getErrorCorrectPolynomial(e){let t=new To([1],0);for(let o=0;o<e;o++)t=t.multiply(new To([1,Po.gexp(o)],0));return t}static getLengthInBits(e,t){if(1<=t&&t<10)switch(e){case xo.MODE_NUMBER:return 10;case xo.MODE_ALPHA_NUM:return 9;case xo.MODE_8BIT_BYTE:case xo.MODE_KANJI:return 8;default:throw new Error(`mode:${e}`)}else if(t<27)switch(e){case xo.MODE_NUMBER:return 12;case xo.MODE_ALPHA_NUM:return 11;case xo.MODE_8BIT_BYTE:return 16;case xo.MODE_KANJI:return 10;default:throw new Error(`mode:${e}`)}else{if(!(t<41))throw new Error(`type:${t}`);switch(e){case xo.MODE_NUMBER:return 14;case xo.MODE_ALPHA_NUM:return 13;case xo.MODE_8BIT_BYTE:return 16;case xo.MODE_KANJI:return 12;default:throw new Error(`mode:${e}`)}}}static getLostPoint(e){const t=e.getModuleCount();let o=0;for(var n=0;n<t;n++)for(var r=0;r<t;r++){let a=0;const i=e.isDark(n,r);for(let o=-1;o<=1;o++)if(!(n+o<0||t<=n+o))for(let l=-1;l<=1;l++)r+l<0||t<=r+l||0==o&&0==l||i==e.isDark(n+o,r+l)&&a++;a>5&&(o+=3+a-5)}for(n=0;n<t-1;n++)for(r=0;r<t-1;r++){let t=0;e.isDark(n,r)&&t++,e.isDark(n+1,r)&&t++,e.isDark(n,r+1)&&t++,e.isDark(n+1,r+1)&&t++,0!=t&&4!=t||(o+=3)}for(n=0;n<t;n++)for(r=0;r<t-6;r++)e.isDark(n,r)&&!e.isDark(n,r+1)&&e.isDark(n,r+2)&&e.isDark(n,r+3)&&e.isDark(n,r+4)&&!e.isDark(n,r+5)&&e.isDark(n,r+6)&&(o+=40);for(r=0;r<t;r++)for(n=0;n<t-6;n++)e.isDark(n,r)&&!e.isDark(n+1,r)&&e.isDark(n+2,r)&&e.isDark(n+3,r)&&e.isDark(n+4,r)&&!e.isDark(n+5,r)&&e.isDark(n+6,r)&&(o+=40);let a=0;for(r=0;r<t;r++)for(n=0;n<t;n++)e.isDark(n,r)&&a++;return o+=Math.abs(100*a/t/t-50)/5*10,o}}ko.PATTERN_POSITION_TABLE=[[],[6,18],[6,22],[6,26],[6,30],[6,34],[6,22,38],[6,24,42],[6,26,46],[6,28,50],[6,30,54],[6,32,58],[6,34,62],[6,26,46,66],[6,26,48,70],[6,26,50,74],[6,30,54,78],[6,30,56,82],[6,30,58,86],[6,34,62,90],[6,28,50,72,94],[6,26,50,74,98],[6,30,54,78,102],[6,28,54,80,106],[6,32,58,84,110],[6,30,58,86,114],[6,34,62,90,118],[6,26,50,74,98,122],[6,30,54,78,102,126],[6,26,52,78,104,130],[6,30,56,82,108,134],[6,34,60,86,112,138],[6,30,58,86,114,142],[6,34,62,90,118,146],[6,30,54,78,102,126,150],[6,24,50,76,102,128,154],[6,28,54,80,106,132,158],[6,32,58,84,110,136,162],[6,26,54,82,110,138,166],[6,30,58,86,114,142,170]],ko.G15=1335,ko.G18=7973,ko.G15_MASK=21522;class Po{static glog(e){if(e<1)throw new Error(`glog(${e})`);return Po.LOG_TABLE[e]}static gexp(e){for(;e<0;)e+=255;for(;e>=256;)e-=255;return Po.EXP_TABLE[e]}}Po.EXP_TABLE=new Array(256),Po.LOG_TABLE=new Array(256),Po._constructor=function(){for(var e=0;e<8;e++)Po.EXP_TABLE[e]=1<<e;for(e=8;e<256;e++)Po.EXP_TABLE[e]=Po.EXP_TABLE[e-4]^Po.EXP_TABLE[e-5]^Po.EXP_TABLE[e-6]^Po.EXP_TABLE[e-8];for(e=0;e<255;e++)Po.LOG_TABLE[Po.EXP_TABLE[e]]=e}();class To{constructor(e,t){if(null==e.length)throw new Error(`${e.length}/${t}`);let o=0;for(;o<e.length&&0==e[o];)o++;this.num=new Array(e.length-o+t);for(let n=0;n<e.length-o;n++)this.num[n]=e[n+o]}get(e){return this.num[e]}getLength(){return this.num.length}multiply(e){const t=new Array(this.getLength()+e.getLength()-1);for(let o=0;o<this.getLength();o++)for(let n=0;n<e.getLength();n++)t[o+n]^=Po.gexp(Po.glog(this.get(o))+Po.glog(e.get(n)));return new To(t,0)}mod(e){if(this.getLength()-e.getLength()<0)return this;const t=Po.glog(this.get(0))-Po.glog(e.get(0)),o=new Array(this.getLength());for(var n=0;n<this.getLength();n++)o[n]=this.get(n);for(n=0;n<e.getLength();n++)o[n]^=Po.gexp(Po.glog(e.get(n))+t);return new To(o,0).mod(e)}}class Io{constructor(e,t){this.totalCount=e,this.dataCount=t}static getRSBlocks(e,t){const o=Io.getRsBlockTable(e,t);if(null==o)throw new Error(`bad rs block @ typeNumber:${e}/errorCorrectLevel:${t}`);const n=o.length/3,r=[];for(let a=0;a<n;a++){const e=o[3*a+0],t=o[3*a+1],n=o[3*a+2];for(let o=0;o<e;o++)r.push(new Io(t,n))}return r}static getRsBlockTable(e,t){switch(t){case Co.L:return Io.RS_BLOCK_TABLE[4*(e-1)+0];case Co.M:return Io.RS_BLOCK_TABLE[4*(e-1)+1];case Co.Q:return Io.RS_BLOCK_TABLE[4*(e-1)+2];case Co.H:return Io.RS_BLOCK_TABLE[4*(e-1)+3];default:return}}}Io.RS_BLOCK_TABLE=[[1,26,19],[1,26,16],[1,26,13],[1,26,9],[1,44,34],[1,44,28],[1,44,22],[1,44,16],[1,70,55],[1,70,44],[2,35,17],[2,35,13],[1,100,80],[2,50,32],[2,50,24],[4,25,9],[1,134,108],[2,67,43],[2,33,15,2,34,16],[2,33,11,2,34,12],[2,86,68],[4,43,27],[4,43,19],[4,43,15],[2,98,78],[4,49,31],[2,32,14,4,33,15],[4,39,13,1,40,14],[2,121,97],[2,60,38,2,61,39],[4,40,18,2,41,19],[4,40,14,2,41,15],[2,146,116],[3,58,36,2,59,37],[4,36,16,4,37,17],[4,36,12,4,37,13],[2,86,68,2,87,69],[4,69,43,1,70,44],[6,43,19,2,44,20],[6,43,15,2,44,16],[4,101,81],[1,80,50,4,81,51],[4,50,22,4,51,23],[3,36,12,8,37,13],[2,116,92,2,117,93],[6,58,36,2,59,37],[4,46,20,6,47,21],[7,42,14,4,43,15],[4,133,107],[8,59,37,1,60,38],[8,44,20,4,45,21],[12,33,11,4,34,12],[3,145,115,1,146,116],[4,64,40,5,65,41],[11,36,16,5,37,17],[11,36,12,5,37,13],[5,109,87,1,110,88],[5,65,41,5,66,42],[5,54,24,7,55,25],[11,36,12],[5,122,98,1,123,99],[7,73,45,3,74,46],[15,43,19,2,44,20],[3,45,15,13,46,16],[1,135,107,5,136,108],[10,74,46,1,75,47],[1,50,22,15,51,23],[2,42,14,17,43,15],[5,150,120,1,151,121],[9,69,43,4,70,44],[17,50,22,1,51,23],[2,42,14,19,43,15],[3,141,113,4,142,114],[3,70,44,11,71,45],[17,47,21,4,48,22],[9,39,13,16,40,14],[3,135,107,5,136,108],[3,67,41,13,68,42],[15,54,24,5,55,25],[15,43,15,10,44,16],[4,144,116,4,145,117],[17,68,42],[17,50,22,6,51,23],[19,46,16,6,47,17],[2,139,111,7,140,112],[17,74,46],[7,54,24,16,55,25],[34,37,13],[4,151,121,5,152,122],[4,75,47,14,76,48],[11,54,24,14,55,25],[16,45,15,14,46,16],[6,147,117,4,148,118],[6,73,45,14,74,46],[11,54,24,16,55,25],[30,46,16,2,47,17],[8,132,106,4,133,107],[8,75,47,13,76,48],[7,54,24,22,55,25],[22,45,15,13,46,16],[10,142,114,2,143,115],[19,74,46,4,75,47],[28,50,22,6,51,23],[33,46,16,4,47,17],[8,152,122,4,153,123],[22,73,45,3,74,46],[8,53,23,26,54,24],[12,45,15,28,46,16],[3,147,117,10,148,118],[3,73,45,23,74,46],[4,54,24,31,55,25],[11,45,15,31,46,16],[7,146,116,7,147,117],[21,73,45,7,74,46],[1,53,23,37,54,24],[19,45,15,26,46,16],[5,145,115,10,146,116],[19,75,47,10,76,48],[15,54,24,25,55,25],[23,45,15,25,46,16],[13,145,115,3,146,116],[2,74,46,29,75,47],[42,54,24,1,55,25],[23,45,15,28,46,16],[17,145,115],[10,74,46,23,75,47],[10,54,24,35,55,25],[19,45,15,35,46,16],[17,145,115,1,146,116],[14,74,46,21,75,47],[29,54,24,19,55,25],[11,45,15,46,46,16],[13,145,115,6,146,116],[14,74,46,23,75,47],[44,54,24,7,55,25],[59,46,16,1,47,17],[12,151,121,7,152,122],[12,75,47,26,76,48],[39,54,24,14,55,25],[22,45,15,41,46,16],[6,151,121,14,152,122],[6,75,47,34,76,48],[46,54,24,10,55,25],[2,45,15,64,46,16],[17,152,122,4,153,123],[29,74,46,14,75,47],[49,54,24,10,55,25],[24,45,15,46,46,16],[4,152,122,18,153,123],[13,74,46,32,75,47],[48,54,24,14,55,25],[42,45,15,32,46,16],[20,147,117,4,148,118],[40,75,47,7,76,48],[43,54,24,22,55,25],[10,45,15,67,46,16],[19,148,118,6,149,119],[18,75,47,31,76,48],[34,54,24,34,55,25],[20,45,15,61,46,16]];class Ro{constructor(){this.buffer=[],this.length=0}get(e){const t=Math.floor(e/8);return 1==(this.buffer[t]>>>7-e%8&1)}put(e,t){for(let o=0;o<t;o++)this.putBit(1==(e>>>t-o-1&1))}getLengthInBits(){return this.length}putBit(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++}}const So=[[17,14,11,7],[32,26,20,14],[53,42,32,24],[78,62,46,34],[106,84,60,44],[134,106,74,58],[154,122,86,64],[192,152,108,84],[230,180,130,98],[271,213,151,119],[321,251,177,137],[367,287,203,155],[425,331,241,177],[458,362,258,194],[520,412,292,220],[586,450,322,250],[644,504,364,280],[718,560,394,310],[792,624,442,338],[858,666,482,382],[929,711,509,403],[1003,779,565,439],[1091,857,611,461],[1171,911,661,511],[1273,997,715,535],[1367,1059,751,593],[1465,1125,805,625],[1528,1190,868,658],[1628,1264,908,698],[1732,1370,982,742],[1840,1452,1030,790],[1952,1538,1112,842],[2068,1628,1168,898],[2188,1722,1228,958],[2303,1809,1283,983],[2431,1911,1351,1051],[2563,1989,1423,1093],[2699,2099,1499,1139],[2809,2213,1579,1219],[2953,2331,1663,1273]];var Bo=256,Mo=1024,jo=1<<18;function Eo(e,t){var o,n,r,a,i;function l(e,t,n,r,a){o[t][0]-=e*(o[t][0]-n)/Mo,o[t][1]-=e*(o[t][1]-r)/Mo,o[t][2]-=e*(o[t][2]-a)/Mo}function s(e,t,n,r,a){for(var l,s,d=Math.abs(t-e),c=Math.min(t+e,Bo),u=t+1,h=t-1,f=1;u<c||h>d;)s=i[f++],u<c&&((l=o[u++])[0]-=s*(l[0]-n)/jo,l[1]-=s*(l[1]-r)/jo,l[2]-=s*(l[2]-a)/jo),h>d&&((l=o[h--])[0]-=s*(l[0]-n)/jo,l[1]-=s*(l[1]-r)/jo,l[2]-=s*(l[2]-a)/jo)}function d(e,t,n){var i,l,s,d,c,u=~(1<<31),h=u,f=-1,p=f;for(i=0;i<Bo;i++)l=o[i],(s=Math.abs(l[0]-e)+Math.abs(l[1]-t)+Math.abs(l[2]-n))<u&&(u=s,f=i),(d=s-(r[i]>>12))<h&&(h=d,p=i),c=a[i]>>10,a[i]-=c,r[i]+=c<<10;return a[f]+=64,r[f]-=65536,p}this.buildColormap=function(){!function(){var e,t;for(o=[],n=new Int32Array(256),r=new Int32Array(Bo),a=new Int32Array(Bo),i=new Int32Array(32),e=0;e<Bo;e++)t=(e<<12)/Bo,o[e]=new Float64Array([t,t,t,0]),a[e]=256,r[e]=0}(),function(){var o,n,r,a,c,u,h=e.length,f=30+(t-1)/3,p=h/(3*t),g=~~(p/100),m=Mo,v=2048,w=v>>6;for(w<=1&&(w=0),o=0;o<w;o++)i[o]=m*(256*(w*w-o*o)/(w*w));h<1509?(t=1,n=3):n=h%499!=0?1497:h%491!=0?1473:h%487!=0?1461:1509;var y=0;for(o=0;o<p;)if(l(m,u=d(r=(255&e[y])<<4,a=(255&e[y+1])<<4,c=(255&e[y+2])<<4),r,a,c),0!==w&&s(w,u,r,a,c),(y+=n)>=h&&(y-=h),0===g&&(g=1),++o%g==0)for(m-=m/f,(w=(v-=v/30)>>6)<=1&&(w=0),u=0;u<w;u++)i[u]=m*(256*(w*w-u*u)/(w*w))}(),function(){for(var e=0;e<Bo;e++)o[e][0]>>=4,o[e][1]>>=4,o[e][2]>>=4,o[e][3]=e}(),function(){var e,t,r,a,i,l,s=0,d=0;for(e=0;e<Bo;e++){for(i=e,l=(r=o[e])[1],t=e+1;t<Bo;t++)(a=o[t])[1]<l&&(i=t,l=a[1]);if(a=o[i],e!=i&&(t=a[0],a[0]=r[0],r[0]=t,t=a[1],a[1]=r[1],r[1]=t,t=a[2],a[2]=r[2],r[2]=t,t=a[3],a[3]=r[3],r[3]=t),l!=s){for(n[s]=d+e>>1,t=s+1;t<l;t++)n[t]=e;s=l,d=e}}for(n[s]=d+255>>1,t=s+1;t<256;t++)n[t]=255}()},this.getColormap=function(){for(var e=[],t=[],n=0;n<Bo;n++)t[o[n][3]]=n;for(var r=0,a=0;a<Bo;a++){var i=t[a];e[r++]=o[i][0],e[r++]=o[i][1],e[r++]=o[i][2]}return e},this.lookupRGB=function(e,t,r){for(var a,i,l,s=1e3,d=-1,c=n[t],u=c-1;c<Bo||u>=0;)c<Bo&&((l=(i=o[c])[1]-t)>=s?c=Bo:(c++,l<0&&(l=-l),(a=i[0]-e)<0&&(a=-a),(l+=a)<s&&((a=i[2]-r)<0&&(a=-a),(l+=a)<s&&(s=l,d=i[3])))),u>=0&&((l=t-(i=o[u])[1])>=s?u=-1:(u--,l<0&&(l=-l),(a=i[0]-e)<0&&(a=-a),(l+=a)<s&&((a=i[2]-r)<0&&(a=-a),(l+=a)<s&&(s=l,d=i[3]))));return d}}var Do=5003,qo=[0,1,3,7,15,31,63,127,255,511,1023,2047,4095,8191,16383,32767,65535];function Lo(e,t,o,n){var r,a,i,l,s,d,c,u,h,f=Math.max(2,n),p=new Uint8Array(256),g=new Int32Array(Do),m=new Int32Array(Do),v=0,w=0,y=!1;function b(e,t){p[a++]=e,a>=254&&x(t)}function _(e){C(Do),w=s+2,y=!0,P(s,e)}function C(e){for(var t=0;t<e;++t)g[t]=-1}function x(e){a>0&&(e.writeByte(a),e.writeBytes(p,0,a),a=0)}function A(e){return(1<<e)-1}function k(){return 0===c?-1:(--c,255&o[u++])}function P(e,t){for(r&=qo[v],v>0?r|=e<<v:r=e,v+=h;v>=8;)b(255&r,t),r>>=8,v-=8;if((w>i||y)&&(y?(i=A(h=l),y=!1):(++h,i=12==h?4096:A(h))),e==d){for(;v>0;)b(255&r,t),r>>=8,v-=8;x(t)}}this.encode=function(o){o.writeByte(f),c=e*t,u=0,function(e,t){var o,n,r,c,u,f,p;for(y=!1,i=A(h=l=e),d=1+(s=1<<e-1),w=s+2,a=0,c=k(),p=0,o=Do;o<65536;o*=2)++p;p=8-p,C(f=Do),P(s,t);e:for(;-1!=(n=k());)if(o=(n<<12)+c,g[r=n<<p^c]!==o){if(g[r]>=0){u=f-r,0===r&&(u=1);do{if((r-=u)<0&&(r+=f),g[r]===o){c=m[r];continue e}}while(g[r]>=0)}P(c,t),c=n,w<4096?(m[r]=w++,g[r]=o):_(t)}else c=m[r];P(c,t),P(d,t)}(f+1,o),o.writeByte(0)}}function No(){this.page=-1,this.pages=[],this.newPage()}No.pageSize=4096,No.charMap={};for(var Fo=0;Fo<256;Fo++)No.charMap[Fo]=String.fromCharCode(Fo);function Oo(e,t){this.width=~~e,this.height=~~t,this.transparent=null,this.transIndex=0,this.repeat=-1,this.delay=0,this.image=null,this.pixels=null,this.indexedPixels=null,this.colorDepth=null,this.colorTab=null,this.neuQuant=null,this.usedEntry=new Array,this.palSize=7,this.dispose=-1,this.firstFrame=!0,this.sample=10,this.dither=!1,this.globalPalette=!1,this.out=new No}No.prototype.newPage=function(){this.pages[++this.page]=new Uint8Array(No.pageSize),this.cursor=0},No.prototype.getData=function(){for(var e="",t=0;t<this.pages.length;t++)for(var o=0;o<No.pageSize;o++)e+=No.charMap[this.pages[t][o]];return e},No.prototype.toFlattenUint8Array=function(){const e=[];for(var t=0;t<this.pages.length;t++)if(t===this.pages.length-1){const o=Uint8Array.from(this.pages[t].slice(0,this.cursor));e.push(o)}else e.push(this.pages[t]);const o=new Uint8Array(e.reduce(((e,t)=>e+t.length),0));return e.reduce(((e,t)=>(o.set(t,e),e+t.length)),0),o},No.prototype.writeByte=function(e){this.cursor>=No.pageSize&&this.newPage(),this.pages[this.page][this.cursor++]=e},No.prototype.writeUTFBytes=function(e){for(var t=e.length,o=0;o<t;o++)this.writeByte(e.charCodeAt(o))},No.prototype.writeBytes=function(e,t,o){for(var n=o||e.length,r=t||0;r<n;r++)this.writeByte(e[r])},Oo.prototype.setDelay=function(e){this.delay=Math.round(e/10)},Oo.prototype.setFrameRate=function(e){this.delay=Math.round(100/e)},Oo.prototype.setDispose=function(e){e>=0&&(this.dispose=e)},Oo.prototype.setRepeat=function(e){this.repeat=e},Oo.prototype.setTransparent=function(e){this.transparent=e},Oo.prototype.addFrame=function(e){this.image=e,this.colorTab=this.globalPalette&&this.globalPalette.slice?this.globalPalette:null,this.getImagePixels(),this.analyzePixels(),!0===this.globalPalette&&(this.globalPalette=this.colorTab),this.firstFrame&&(this.writeHeader(),this.writeLSD(),this.writePalette(),this.repeat>=0&&this.writeNetscapeExt()),this.writeGraphicCtrlExt(),this.writeImageDesc(),this.firstFrame||this.globalPalette||this.writePalette(),this.writePixels(),this.firstFrame=!1},Oo.prototype.finish=function(){this.out.writeByte(59)},Oo.prototype.setQuality=function(e){e<1&&(e=1),this.sample=e},Oo.prototype.setDither=function(e){!0===e&&(e="FloydSteinberg"),this.dither=e},Oo.prototype.setGlobalPalette=function(e){this.globalPalette=e},Oo.prototype.getGlobalPalette=function(){return this.globalPalette&&this.globalPalette.slice&&this.globalPalette.slice(0)||this.globalPalette},Oo.prototype.writeHeader=function(){this.out.writeUTFBytes("GIF89a")},Oo.prototype.analyzePixels=function(){this.colorTab||(this.neuQuant=new Eo(this.pixels,this.sample),this.neuQuant.buildColormap(),this.colorTab=this.neuQuant.getColormap()),this.dither?this.ditherPixels(this.dither.replace("-serpentine",""),null!==this.dither.match(/-serpentine/)):this.indexPixels(),this.pixels=null,this.colorDepth=8,this.palSize=7,null!==this.transparent&&(this.transIndex=this.findClosest(this.transparent,!0))},Oo.prototype.indexPixels=function(e){var t=this.pixels.length/3;this.indexedPixels=new Uint8Array(t);for(var o=0,n=0;n<t;n++){var r=this.findClosestRGB(255&this.pixels[o++],255&this.pixels[o++],255&this.pixels[o++]);this.usedEntry[r]=!0,this.indexedPixels[n]=r}},Oo.prototype.ditherPixels=function(e,t){var o={FalseFloydSteinberg:[[3/8,1,0],[3/8,0,1],[2/8,1,1]],FloydSteinberg:[[7/16,1,0],[3/16,-1,1],[5/16,0,1],[1/16,1,1]],Stucki:[[8/42,1,0],[4/42,2,0],[2/42,-2,1],[4/42,-1,1],[8/42,0,1],[4/42,1,1],[2/42,2,1],[1/42,-2,2],[2/42,-1,2],[4/42,0,2],[2/42,1,2],[1/42,2,2]],Atkinson:[[1/8,1,0],[1/8,2,0],[1/8,-1,1],[1/8,0,1],[1/8,1,1],[1/8,0,2]]};if(!e||!o[e])throw"Unknown dithering kernel: "+e;var n=o[e],r=0,a=this.height,i=this.width,l=this.pixels,s=t?-1:1;this.indexedPixels=new Uint8Array(this.pixels.length/3);for(var d=0;d<a;d++){t&&(s*=-1);for(var c=1==s?0:i-1,u=1==s?i:0;c!==u;c+=s){var h=3*(r=d*i+c),f=l[h],p=l[h+1],g=l[h+2];h=this.findClosestRGB(f,p,g),this.usedEntry[h]=!0,this.indexedPixels[r]=h,h*=3;for(var m=f-this.colorTab[h],v=p-this.colorTab[h+1],w=g-this.colorTab[h+2],y=1==s?0:n.length-1,b=1==s?n.length:0;y!==b;y+=s){var _=n[y][1],C=n[y][2];if(_+c>=0&&_+c<i&&C+d>=0&&C+d<a){var x=n[y][0];h=r+_+C*i,l[h*=3]=Math.max(0,Math.min(255,l[h]+m*x)),l[h+1]=Math.max(0,Math.min(255,l[h+1]+v*x)),l[h+2]=Math.max(0,Math.min(255,l[h+2]+w*x))}}}}},Oo.prototype.findClosest=function(e,t){return this.findClosestRGB((16711680&e)>>16,(65280&e)>>8,255&e,t)},Oo.prototype.findClosestRGB=function(e,t,o,n){if(null===this.colorTab)return-1;if(this.neuQuant&&!n)return this.neuQuant.lookupRGB(e,t,o);for(var r=0,a=16777216,i=this.colorTab.length,l=0,s=0;l<i;s++){var d=e-(255&this.colorTab[l++]),c=t-(255&this.colorTab[l++]),u=o-(255&this.colorTab[l++]),h=d*d+c*c+u*u;(!n||this.usedEntry[s])&&h<a&&(a=h,r=s)}return r},Oo.prototype.getImagePixels=function(){var e=this.width,t=this.height;this.pixels=new Uint8Array(e*t*3);for(var o=this.image,n=0,r=0,a=0;a<t;a++)for(var i=0;i<e;i++)this.pixels[r++]=o[n++],this.pixels[r++]=o[n++],this.pixels[r++]=o[n++],n++},Oo.prototype.writeGraphicCtrlExt=function(){var e,t;this.out.writeByte(33),this.out.writeByte(249),this.out.writeByte(4),null===this.transparent?(e=0,t=0):(e=1,t=2),this.dispose>=0&&(t=7&this.dispose),t<<=2,this.out.writeByte(0|t|e),this.writeShort(this.delay),this.out.writeByte(this.transIndex),this.out.writeByte(0)},Oo.prototype.writeImageDesc=function(){this.out.writeByte(44),this.writeShort(0),this.writeShort(0),this.writeShort(this.width),this.writeShort(this.height),this.firstFrame||this.globalPalette?this.out.writeByte(0):this.out.writeByte(128|this.palSize)},Oo.prototype.writeLSD=function(){this.writeShort(this.width),this.writeShort(this.height),this.out.writeByte(240|this.palSize),this.out.writeByte(0),this.out.writeByte(0)},Oo.prototype.writeNetscapeExt=function(){this.out.writeByte(33),this.out.writeByte(255),this.out.writeByte(11),this.out.writeUTFBytes("NETSCAPE2.0"),this.out.writeByte(3),this.out.writeByte(1),this.writeShort(this.repeat),this.out.writeByte(0)},Oo.prototype.writePalette=function(){this.out.writeBytes(this.colorTab);for(var e=768-this.colorTab.length,t=0;t<e;t++)this.out.writeByte(0)},Oo.prototype.writeShort=function(e){this.out.writeByte(255&e),this.out.writeByte(e>>8&255)},Oo.prototype.writePixels=function(){new Lo(this.width,this.height,this.indexedPixels,this.colorDepth).encode(this.out)},Oo.prototype.stream=function(){return this.out};var zo=globalThis&&globalThis.__awaiter||function(e,t,o,n){return new(o||(o=Promise))((function(r,a){function i(e){try{s(n.next(e))}catch(t){a(t)}}function l(e){try{s(n.throw(e))}catch(t){a(t)}}function s(e){var t;e.done?r(e.value):(t=e.value,t instanceof o?t:new o((function(e){e(t)}))).then(i,l)}s((n=n.apply(e,t||[])).next())}))};const{Canvas:Uo}=eo,Ko=.4;function Wo(e){if(e)return new Promise((function(o,n){if("data"==e.slice(0,4)){let r=new Image;return r.onload=function(){o(r),t(r)},r.onerror=function(){n("Image load error"),t(r)},void(r.src=e)}let r=new Image;r.setAttribute("crossOrigin","Anonymous"),r.onload=function(){o(r)},r.onerror=function(){n("Image load error")},r.src=e}));function t(e){e.onload=null,e.onerror=null}}class Ho{constructor(e){const t=Object.assign({},e);if(Object.keys(Ho.defaultOptions).forEach((e=>{e in t||Object.defineProperty(t,e,{value:Ho.defaultOptions[e],enumerable:!0,writable:!0})})),t.components?"object"==typeof t.components&&Object.keys(Ho.defaultComponentOptions).forEach((e=>{e in t.components?Object.defineProperty(t.components,e,{value:Object.assign(Object.assign({},Ho.defaultComponentOptions[e]),t.components[e]),enumerable:!0,writable:!0}):Object.defineProperty(t.components,e,{value:Ho.defaultComponentOptions[e],enumerable:!0,writable:!0})})):t.components=Ho.defaultComponentOptions,null!==t.dotScale&&void 0!==t.dotScale){if(t.dotScale<=0||t.dotScale>1)throw new Error("dotScale should be in range (0, 1].");t.components.data.scale=t.dotScale,t.components.timing.scale=t.dotScale,t.components.alignment.scale=t.dotScale}this.options=t,this.canvas=new Uo(e.size,e.size),this.canvasContext=this.canvas.getContext("2d"),this.qrCode=new _o(-1,this.options.correctLevel),Number.isInteger(this.options.maskPattern)&&(this.qrCode.maskPattern=this.options.maskPattern),Number.isInteger(this.options.version)&&(this.qrCode.typeNumber=this.options.version),this.qrCode.addData(this.options.text),this.qrCode.make()}draw(){return new Promise((e=>this._draw().then(e)))}_clear(){this.canvasContext.clearRect(0,0,this.canvas.width,this.canvas.height)}static _prepareRoundedCornerClip(e,t,o,n,r,a){e.beginPath(),e.moveTo(t,o),e.arcTo(t+n,o,t+n,o+r,a),e.arcTo(t+n,o+r,t,o+r,a),e.arcTo(t,o+r,t,o,a),e.arcTo(t,o,t+n,o,a),e.closePath()}static _getAverageRGB(e){const t={r:0,g:0,b:0};let o,n,r=-4;const a={r:0,g:0,b:0};let i=0;n=e.naturalHeight||e.height,o=e.naturalWidth||e.width;const l=new Uo(o,n).getContext("2d");if(!l)return t;let s;l.drawImage(e,0,0);try{s=l.getImageData(0,0,o,n)}catch(d){return t}for(;(r+=20)<s.data.length;)s.data[r]>200||s.data[r+1]>200||s.data[r+2]>200||(++i,a.r+=s.data[r],a.g+=s.data[r+1],a.b+=s.data[r+2]);return a.r=~~(a.r/i),a.g=~~(a.g/i),a.b=~~(a.b/i),a}static _drawDot(e,t,o,n,r=0,a=1){e.fillRect((t+r)*n,(o+r)*n,a*n,a*n)}static _drawAlignProtector(e,t,o,n){e.clearRect((t-2)*n,(o-2)*n,5*n,5*n),e.fillRect((t-2)*n,(o-2)*n,5*n,5*n)}static _drawAlign(e,t,o,n,r=0,a=1,i,l){const s=e.fillStyle;e.fillStyle=i,new Array(4).fill(0).map(((i,l)=>{Ho._drawDot(e,t-2+l,o-2,n,r,a),Ho._drawDot(e,t+2,o-2+l,n,r,a),Ho._drawDot(e,t+2-l,o+2,n,r,a),Ho._drawDot(e,t-2,o+2-l,n,r,a)})),Ho._drawDot(e,t,o,n,r,a),l||(e.fillStyle="rgba(255, 255, 255, 0.6)",new Array(2).fill(0).map(((i,l)=>{Ho._drawDot(e,t-1+l,o-1,n,r,a),Ho._drawDot(e,t+1,o-1+l,n,r,a),Ho._drawDot(e,t+1-l,o+1,n,r,a),Ho._drawDot(e,t-1,o+1-l,n,r,a)}))),e.fillStyle=s}_draw(){var e,t,o,n,r,a,i,l,s,d,c,u,h,f,p,g,m,v,w;return zo(this,void 0,void 0,(function*(){const y=null===(e=this.qrCode)||void 0===e?void 0:e.moduleCount,b=this.options.size;let _=this.options.margin;(_<0||2*_>=b)&&(_=0);const C=Math.ceil(_),x=b-2*_,A=this.options.whiteMargin,k=this.options.backgroundDimming,P=Math.ceil(x/y),T=P*y,I=T+2*C,R=new Uo(I,I),S=R.getContext("2d");this._clear(),S.save(),S.translate(C,C);const B=new Uo(I,I),M=B.getContext("2d");let j=null,E=[];if(this.options.gifBackground){const e=(e=>{const t=new Uint8Array(e);return to({data:t,pos:0},vo)})(this.options.gifBackground);if(j=e,q=!0,E=(D=e).frames.filter((e=>e.image)).map((e=>wo(e,D.gct,q))),this.options.autoColor){let e=0,t=0,o=0,n=0;for(let r=0;r<E[0].colorTable.length;r++){const a=E[0].colorTable[r];a[0]>200||a[1]>200||a[2]>200||0===a[0]&&0===a[1]&&0===a[2]||(n++,e+=a[0],t+=a[1],o+=a[2])}e=~~(e/n),t=~~(t/n),o=~~(o/n),this.options.colorDark=`rgb(${e},${t},${o})`}}else if(this.options.backgroundImage){const e=yield Wo(this.options.backgroundImage);if(this.options.autoColor){const t=Ho._getAverageRGB(e);this.options.colorDark=`rgb(${t.r},${t.g},${t.b})`}M.drawImage(e,0,0,e.width,e.height,0,0,I,I),M.rect(0,0,I,I),M.fillStyle=k,M.fill()}else M.rect(0,0,I,I),M.fillStyle=this.options.colorLight,M.fill();var D,q;const L=ko.getPatternPosition(this.qrCode.typeNumber),N=(null===(o=null===(t=this.options.components)||void 0===t?void 0:t.data)||void 0===o?void 0:o.scale)||Ko,F=.5*(1-N);for(let e=0;e<y;e++)for(let t=0;t<y;t++){const o=this.qrCode.isDark(e,t),n=t<8&&(e<8||e>=y-8)||t>=y-8&&e<8;let r=n||6==e&&t>=8&&t<=y-8||6==t&&e>=8&&e<=y-8;for(let l=1;l<L.length-1;l++)r=r||e>=L[l]-2&&e<=L[l]+2&&t>=L[l]-2&&t<=L[l]+2;const a=t*P+(r?0:F*P),i=e*P+(r?0:F*P);S.strokeStyle=o?this.options.colorDark:this.options.colorLight,S.lineWidth=.5,S.fillStyle=o?this.options.colorDark:this.options.colorLight,0===L.length?r||S.fillRect(a,i,(r?1:N)*P,(r?1:N)*P):r||t<y-4&&t>=y-4-5&&e<y-4&&e>=y-4-5||S.fillRect(a,i,(r?1:N)*P,(r?1:N)*P)}const O=L[L.length-1],z=this.options.colorLight;if(S.fillStyle=z,S.fillRect(0,0,8*P,8*P),S.fillRect(0,(y-8)*P,8*P,8*P),S.fillRect((y-8)*P,0,8*P,8*P),(null===(r=null===(n=this.options.components)||void 0===n?void 0:n.timing)||void 0===r?void 0:r.protectors)&&(S.fillRect(8*P,6*P,(y-8-8)*P,P),S.fillRect(6*P,8*P,P,(y-8-8)*P)),(null===(i=null===(a=this.options.components)||void 0===a?void 0:a.cornerAlignment)||void 0===i?void 0:i.protectors)&&Ho._drawAlignProtector(S,O,O,P),null===(s=null===(l=this.options.components)||void 0===l?void 0:l.alignment)||void 0===s?void 0:s.protectors)for(let e=0;e<L.length;e++)for(let t=0;t<L.length;t++){const o=L[t],n=L[e];(6!==o||6!==n&&n!==O)&&(6!==n||6!==o&&o!==O)&&(o===O&&n===O||Ho._drawAlignProtector(S,o,n,P))}S.fillStyle=this.options.colorDark,S.fillRect(0,0,7*P,P),S.fillRect((y-7)*P,0,7*P,P),S.fillRect(0,6*P,7*P,P),S.fillRect((y-7)*P,6*P,7*P,P),S.fillRect(0,(y-7)*P,7*P,P),S.fillRect(0,(y-7+6)*P,7*P,P),S.fillRect(0,0,P,7*P),S.fillRect(6*P,0,P,7*P),S.fillRect((y-7)*P,0,P,7*P),S.fillRect((y-7+6)*P,0,P,7*P),S.fillRect(0,(y-7)*P,P,7*P),S.fillRect(6*P,(y-7)*P,P,7*P),S.fillRect(2*P,2*P,3*P,3*P),S.fillRect((y-7+2)*P,2*P,3*P,3*P),S.fillRect(2*P,(y-7+2)*P,3*P,3*P);const U=(null===(c=null===(d=this.options.components)||void 0===d?void 0:d.timing)||void 0===c?void 0:c.scale)||Ko,K=.5*(1-U);for(let e=0;e<y-8;e+=2)Ho._drawDot(S,8+e,6,P,K,U),Ho._drawDot(S,6,8+e,P,K,U);const W=(null===(h=null===(u=this.options.components)||void 0===u?void 0:u.cornerAlignment)||void 0===h?void 0:h.scale)||Ko,H=.5*(1-W);Ho._drawAlign(S,O,O,P,H,W,this.options.colorDark,(null===(p=null===(f=this.options.components)||void 0===f?void 0:f.cornerAlignment)||void 0===p?void 0:p.protectors)||!1);const G=(null===(m=null===(g=this.options.components)||void 0===g?void 0:g.alignment)||void 0===m?void 0:m.scale)||Ko,V=.5*(1-G);for(let e=0;e<L.length;e++)for(let t=0;t<L.length;t++){const o=L[t],n=L[e];(6!==o||6!==n&&n!==O)&&(6!==n||6!==o&&o!==O)&&(o===O&&n===O||Ho._drawAlign(S,o,n,P,V,G,this.options.colorDark,(null===(w=null===(v=this.options.components)||void 0===v?void 0:v.alignment)||void 0===w?void 0:w.protectors)||!1))}if(A&&(S.fillStyle=this.options.backgroundColor,S.fillRect(-C,-C,I,C),S.fillRect(-C,T,I,C),S.fillRect(T,-C,C,I),S.fillRect(-C,-C,C,I)),this.options.logoImage){const e=yield Wo(this.options.logoImage);let t=this.options.logoScale,o=this.options.logoMargin,n=this.options.logoCornerRadius;(t<=0||t>=1)&&(t=.2),o<0&&(o=0),n<0&&(n=0);const r=T*t,a=.5*(I-r),i=a;S.restore(),S.fillStyle=this.options.logoBackgroundColor,S.save(),Ho._prepareRoundedCornerClip(S,a-o,i-o,r+2*o,r+2*o,n+o),S.clip();const l=S.globalCompositeOperation;S.globalCompositeOperation="destination-out",S.fill(),S.globalCompositeOperation=l,S.restore(),S.save(),Ho._prepareRoundedCornerClip(S,a,i,r,r,n),S.clip(),S.drawImage(e,a,i,r,r),S.restore(),S.save(),S.translate(C,C)}if(j){let e,t,o,n,r,a;if(E.forEach((function(i){e||(e=new Oo(b,b),e.setDelay(i.delay),e.setRepeat(0));const{width:l,height:s}=i.dims;t||(t=new Uo(l,s),o=t.getContext("2d"),o.rect(0,0,t.width,t.height),o.fillStyle="#ffffff",o.fill()),n&&a&&l===n.width&&s===n.height||(n=new Uo(l,s),r=n.getContext("2d"),a=r.createImageData(l,s)),a.data.set(i.patch),r.putImageData(a,0,0),o.drawImage(n.getContext("2d").canvas,i.dims.left,i.dims.top);const d=new Uo(I,I),c=d.getContext("2d");c.drawImage(t.getContext("2d").canvas,0,0,I,I),c.rect(0,0,I,I),c.fillStyle=k,c.fill(),c.drawImage(R.getContext("2d").canvas,0,0,I,I);const u=new Uo(b,b),h=u.getContext("2d");h.drawImage(d.getContext("2d").canvas,0,0,b,b),e.addFrame(h.getImageData(0,0,u.width,u.height).data)})),!e)throw new Error("No frames.");if(e.finish(),Go(this.canvas)){const t=e.stream().toFlattenUint8Array().reduce(((e,t)=>e+String.fromCharCode(t)),"");return Promise.resolve(`data:image/gif;base64,${window.btoa(t)}`)}return Promise.resolve(Buffer.from(e.stream().toFlattenUint8Array()))}{M.drawImage(R.getContext("2d").canvas,0,0,I,I),S.drawImage(B.getContext("2d").canvas,-C,-C,I,I);const e=new Uo(b,b);e.getContext("2d").drawImage(R.getContext("2d").canvas,0,0,b,b),this.canvas=e;const t=this.options.gifBackground?"gif":"png";return Go(this.canvas)?Promise.resolve(this.canvas.toDataURL(t)):Promise.resolve(this.canvas.toBuffer(t))}}))}}function Go(e){try{return e instanceof HTMLElement}catch(t){return"object"==typeof e&&1===e.nodeType&&"object"==typeof e.style&&"object"==typeof e.ownerDocument}}Ho.CorrectLevel=Co,Ho.defaultComponentOptions={data:{scale:.4},timing:{scale:.5,protectors:!1},alignment:{scale:.5,protectors:!1},cornerAlignment:{scale:.5,protectors:!0}},Ho.defaultOptions={text:"",size:400,margin:20,colorDark:"#000000",colorLight:"rgba(255, 255, 255, 0.6)",correctLevel:Co.M,backgroundImage:void 0,backgroundDimming:"rgba(0,0,0,0)",logoImage:void 0,logoScale:.2,logoMargin:4,logoCornerRadius:8,whiteMargin:!0,components:Ho.defaultComponentOptions,autoColor:!0,logoBackgroundColor:"#ffffff",backgroundColor:"#ffffff"};const Vo=l({name:"TheQrCode",props:{text:{type:String,required:!0},qid:{type:String},correctLevel:{type:Number,default:0},size:{type:Number,default:220},margin:{type:Number,default:20},colorDark:{type:String,default:"#000000"},colorLight:{type:String,default:"#FFFFFF"},bgSrc:{type:String,default:void 0},background:{type:String,default:"rgba(0,0,0,0)"},backgroundDimming:{type:String,default:"rgba(0,0,0,0)"},logoSrc:{type:String,default:void 0},logoBackgroundColor:{type:String,default:"rgba(255,255,255,1)"},gifBgSrc:{type:String,default:void 0},logoScale:{type:Number,default:.2},logoMargin:{type:Number,default:0},logoCornerRadius:{type:Number,default:8},whiteMargin:{type:[Boolean,String],default:!0},dotScale:{type:Number,default:1},autoColor:{type:[Boolean,String],default:!0},binarize:{type:[Boolean,String],default:!1},binarizeThreshold:{type:Number,default:128},callback:{type:Function,default:function(){}},bindElement:{type:Boolean,default:!0},backgroundColor:{type:String,default:"#FFFFFF"},components:{default:function(){return{data:{scale:1},timing:{scale:1,protectors:!1},alignment:{scale:1,protectors:!1},cornerAlignment:{scale:1,protectors:!0}}}}},data:()=>({imgUrl:""}),watch:{$props:{deep:!0,handler(){this.main()}}},mounted(){this.main()},methods:{async main(){if(this.gifBgSrc){const t=await(e=this.gifBgSrc,new Promise((t=>{const o=new XMLHttpRequest;o.responseType="blob",o.onload=function(){const e=new FileReader;e.onloadend=function(){t(e.result)},e.readAsArrayBuffer(o.response)},o.open("GET",e),o.send()}))),o=this.logoSrc;return void this.render(void 0,o,t)}var e;const t=this.bgSrc,o=this.logoSrc;this.render(t,o)},async render(e,t,o){console.log(e,t,o),new Ho({gifBackground:o,text:this.text,size:this.size}).draw().then((e=>{console.log("🚀 ~ dataUri:",e),this.imgUrl=e,this.callback&&this.callback(e,this.qid)}))}},render(){return be(Ie,null,[this.bindElement&&this.imgUrl&&be("img",{style:"display: inline-block",src:this.imgUrl},null)])}}),Qo=l({name:"school-info",setup(){const e=we(),t=ye({areaList:[]}),o=ye({name:e.info.schoolInfos?.[0]?.name,logo:e.info.schoolInfos?.[0]?.logo||e.info.avatar,provinceCode:e.info.schoolInfos?.[0]?.provinceCode||"",cityCode:e.info.schoolInfos?.[0]?.cityCode||"",regionCode:e.info.schoolInfos?.[0]?.regionCode||""}),n=ye({loading:!1,schoolLoading:!0,dataList:[],disabled:!0,modal:!1,qrModal:!1}),r=async()=>{n.loading=!0;const t=await(o={schoolId:e.info.schoolInfos?.[0]?.id,page:1,rows:1e3},Re.post("/edu-app/teacher/page",{data:o}));var o;n.loading=!1,200===t?.code&&Array.isArray(t?.data?.rows)&&(n.dataList=t.data.rows)};Se((()=>{(async()=>{const e=await ht();200===e?.code&&(t.areaList=e.data)})(),r()}));const a=Ue(),i=me(),l=e=>{const t="LOCKED"===e.status?"解冻":"冻结";a.warning({title:"温馨提示",content:`是否${t}"${e.nickname}"?`,positiveText:"确定",negativeText:"取消",onPositiveClick:async()=>{var o;await(o={ids:[e.id],status:"LOCKED"===e.status?"ACTIVATION":"LOCKED"},Re.post("/edu-app/teacher/updateStatus",{data:o})),r(),i.success(t+"成功")}})},s=e=>{a.warning({title:"警告",content:`重置"${e.nickname}"的密码,是否继续?`,positiveText:"确定",negativeText:"取消",onPositiveClick:async()=>{var t;await(t={userId:e.id,password:"ktyq"+e.phone.substr(7),clientType:"TEACHER"},Re.post("/edu-app/user/resetPassword",{data:t,requestType:"form"})),i.success("重置成功")}})},d=async()=>{var t;n.schoolLoading=!1,await(t={...e.info.schoolInfos?.[0],...o},Re.post("/edu-app/school/update",{data:t})),n.schoolLoading=!0,i.success("修改成功"),n.disabled=!0},c=()=>{const t=`tenantId=${e.info.schoolInfos?.[0]?.tenantId}&schoolId=${e.info.schoolInfos?.[0]?.id}&schoolName=${e.info.schoolInfos?.[0]?.name}`,o=`${location.origin}/classroom-app/#/teaher-register?`+t;return console.log(o),o};return()=>be("div",{class:wt},[be(Pe,{wrapItem:!1,align:"center"},{default:()=>[be("div",{class:pt},[be(Be,{previewDisabled:!1,width:100,height:100,src:o.logo},null),be("div",{style:{display:n.disabled?"none":""},class:gt},[Te("修改头像"),n.schoolLoading&&be(Ve,{class:[mt],cropper:!0,"onUpdate:fileList":e=>{o.logo=e}},null)])]),be(_e,{model:o,style:{paddingTop:"30px"},disabled:n.disabled},{default:()=>[be(Pe,null,{default:()=>[be(Ce,{label:"学校名称",path:"name",showRequireMark:!1,rule:[{required:!0,message:"请填写学习名称",trigger:"blur"}]},{default:()=>[be(xe,{class:vt,maxlength:20,value:o.name,"onUpdate:value":e=>o.name=e},null)]}),be(Ce,{label:"城区",style:{width:"300px"}},{default:()=>[be(st,{options:t.areaList,labelField:"name",valueField:"code",childrenField:"areas",checkStrategy:"child",expandTrigger:"hover",defaultValue:e.info.schoolInfos?.[0]?.regionCode||e.info.schoolInfos?.[0]?.cityCode,"onUpdate:value":(e,t,n)=>{o.provinceCode=n[0]?.code,o.cityCode=n[1]?.code,o.regionCode=n[2]?.code}},null)]}),be(Ce,null,{default:()=>[n.disabled?be(Pe,{class:_t,align:"center",justify:"end"},{default:()=>[be(ke,{class:Ct,color:"#f24433",onClick:()=>n.disabled=!1},{default:()=>[Te("修改信息")]})]}):be(Pe,{class:_t,align:"center",justify:"end"},{default:()=>[be(ke,{class:Ct,onClick:()=>n.disabled=!0},{default:()=>[Te("取消")]}),be(ke,{class:Ct,loading:!n.schoolLoading,type:"primary",onClick:()=>d()},{default:()=>[Te("完成")]})]})]})]})]})]}),be(Pe,{style:{padding:"32px 0"}},{default:()=>[be(ke,{type:"primary",renderIcon:()=>be(Ke,{component:be(kt,null,null)},null),onClick:()=>n.modal=!0},{default:()=>[Te("添加老师")]}),be(ke,{type:"primary",onClick:()=>n.qrModal=!0},{default:()=>[Te("老师注册二维码")]})]}),be(We,{loading:n.loading,columns:[{title:"老师姓名",key:"nickname"},{title:"手机号码",key:"phone"},{title:"性别",key:"questionTypeCode",render:e=>be("div",null,[e.gender?"男":"女"])},{title:"状态",key:"statusName",render:e=>be("div",null,["ACTIVATION"===e.status?be(ke,{text:!0},{default:()=>[e.statusName]}):be(ke,{class:yt,text:!0},{default:()=>[e.statusName]})])},{title:"操作",key:"titleImg",render:e=>be(Pe,null,{default:()=>[be(ke,{type:"primary",quaternary:!0,size:"small",onClick:()=>s(e)},{default:()=>[Te("重置密码")]}),"ACTIVATION"===e.status?be(ke,{type:"primary",quaternary:!0,size:"small",onClick:()=>l(e)},{default:()=>[Te("冻结")]}):be(ke,{class:yt,quaternary:!0,size:"small",onClick:()=>l(e)},{default:()=>[Te("解冻")]})]})}],data:n.dataList},null),be(De,{class:bt,show:n.modal,"onUpdate:show":e=>n.modal=e,title:"添加老师",preset:"dialog",showIcon:!1},{default:()=>[be(Pt,{onClose:()=>{n.modal=!1,r()}},null)]}),be(De,{show:n.qrModal,"onUpdate:show":e=>n.qrModal=e,title:"二维码",preset:"dialog",showIcon:!1},{default:()=>[be("div",{style:{textAlign:"center"}},[be(Vo,{text:c(),size:300},null)])]})])}});e("default",l({name:"base-setting",setup(e,{emit:t,attrs:o}){const n=c("person"),r=we();return()=>be("div",{class:dt.listWrap},[be(He,{class:dt.customTabs,value:n.value,"onUpdate:value":e=>n.value=e,size:"large",animated:!0,"pane-wrapper-style":"margin: 0 -4px","pane-style":"padding-left: 4px; padding-right: 4px; box-sizing: border-box;"},{default:()=>[be(Ge,{name:"person",tab:"个人信息"},{default:()=>[be(ft,null,null)]}),r.info.isSuperAdmin&&be(Ge,{name:"school",tab:"学校设置"},{default:()=>[be(Qo,null,null)]})]})])}}))}}}));