index.Ca2D4Yca.js 202 KB

12345678910
  1. import{a as $a,aH as Ja,aB as Wa,r as $,_ as nt,f as Ki,q as Ha,W as Ya,aj as Fe,at as Xa,c as W,o as N,b as d,S as f,K as b,P as M,Q as ae,u as be,M as ke,J as Ie,R as We,a9 as He,G as Et,Y as Za,F as qa,L as Mi,a7 as Bi}from"./vue.D1BjjNmv.js";import{b as _a,U as xt}from"./api.Cxi7_W8a.js";import{r as ot,a2 as el,g as tl,a3 as nl,c as ol,E as K,V as ft,T as un,a4 as Ni,X as ji,a5 as qo,a6 as Fi,Y as ki}from"./index.MUicpuzs.js";import{g as il}from"./pcaData.5HEg6BqW.js";import rl from"./QuestionBankForm.T5NZG9oS.js";import{A as al}from"./api.DPeFAcEY.js";import{_ as ll}from"./_plugin-vue_export-helper.DlAUqK2U.js";import"./QuestionOptionsEditor.CfqO4x61.js";import"./BlankAnswerEditor.C4I2efc6.js";const Li="/assets/sheng.BKW1Im68.png",sl="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAkoAAAImCAQAAAAGHG0zAAAACXBIWXMAAAsTAAALEwEAmpwYAAAFyGlUWHRYTUw6Y29tLmFkb2JlLnhtcAAAAAAAPD94cGFja2V0IGJlZ2luPSLvu78iIGlkPSJXNU0wTXBDZWhpSHpyZVN6TlRjemtjOWQiPz4gPHg6eG1wbWV0YSB4bWxuczp4PSJhZG9iZTpuczptZXRhLyIgeDp4bXB0az0iQWRvYmUgWE1QIENvcmUgNS42LWMxNDggNzkuMTY0MDM2LCAyMDE5LzA4LzEzLTAxOjA2OjU3ICAgICAgICAiPiA8cmRmOlJERiB4bWxuczpyZGY9Imh0dHA6Ly93d3cudzMub3JnLzE5OTkvMDIvMjItcmRmLXN5bnRheC1ucyMiPiA8cmRmOkRlc2NyaXB0aW9uIHJkZjphYm91dD0iIiB4bWxuczp4bXA9Imh0dHA6Ly9ucy5hZG9iZS5jb20veGFwLzEuMC8iIHhtbG5zOnhtcE1NPSJodHRwOi8vbnMuYWRvYmUuY29tL3hhcC8xLjAvbW0vIiB4bWxuczpzdEV2dD0iaHR0cDovL25zLmFkb2JlLmNvbS94YXAvMS4wL3NUeXBlL1Jlc291cmNlRXZlbnQjIiB4bWxuczpkYz0iaHR0cDovL3B1cmwub3JnL2RjL2VsZW1lbnRzLzEuMS8iIHhtbG5zOnBob3Rvc2hvcD0iaHR0cDovL25zLmFkb2JlLmNvbS9waG90b3Nob3AvMS4wLyIgeG1wOkNyZWF0b3JUb29sPSJBZG9iZSBQaG90b3Nob3AgMjEuMCAoV2luZG93cykiIHhtcDpDcmVhdGVEYXRlPSIyMDI1LTA2LTEzVDE3OjAxOjIwKzA4OjAwIiB4bXA6TWV0YWRhdGFEYXRlPSIyMDI1LTA2LTEzVDE3OjAxOjIwKzA4OjAwIiB4bXA6TW9kaWZ5RGF0ZT0iMjAyNS0wNi0xM1QxNzowMToyMCswODowMCIgeG1wTU06SW5zdGFuY2VJRD0ieG1wLmlpZDozNDE0NGJjZC05NWJlLTMxNGMtODlmZC01MTk0MTdmODc5OWEiIHhtcE1NOkRvY3VtZW50SUQ9ImFkb2JlOmRvY2lkOnBob3Rvc2hvcDplYzMyM2E1Zi04ZWZiLTgxNGUtYWMzOS05Nzc3ODNiNDUzYjQiIHhtcE1NOk9yaWdpbmFsRG9jdW1lbnRJRD0ieG1wLmRpZDo2NzhkMmE4Ni05MTcxLWJiNDAtYWMzOS01ODg2NzcyNzM4ZDEiIGRjOmZvcm1hdD0iaW1hZ2UvcG5nIiBwaG90b3Nob3A6Q29sb3JNb2RlPSIxIj4gPHhtcE1NOkhpc3Rvcnk+IDxyZGY6U2VxPiA8cmRmOmxpIHN0RXZ0OmFjdGlvbj0iY3JlYXRlZCIgc3RFdnQ6aW5zdGFuY2VJRD0ieG1wLmlpZDo2NzhkMmE4Ni05MTcxLWJiNDAtYWMzOS01ODg2NzcyNzM4ZDEiIHN0RXZ0OndoZW49IjIwMjUtMDYtMTNUMTc6MDE6MjArMDg6MDAiIHN0RXZ0OnNvZnR3YXJlQWdlbnQ9IkFkb2JlIFBob3Rvc2hvcCAyMS4wIChXaW5kb3dzKSIvPiA8cmRmOmxpIHN0RXZ0OmFjdGlvbj0ic2F2ZWQiIHN0RXZ0Omluc3RhbmNlSUQ9InhtcC5paWQ6MzQxNDRiY2QtOTViZS0zMTRjLTg5ZmQtNTE5NDE3Zjg3OTlhIiBzdEV2dDp3aGVuPSIyMDI1LTA2LTEzVDE3OjAxOjIwKzA4OjAwIiBzdEV2dDpzb2Z0d2FyZUFnZW50PSJBZG9iZSBQaG90b3Nob3AgMjEuMCAoV2luZG93cykiIHN0RXZ0OmNoYW5nZWQ9Ii8iLz4gPC9yZGY6U2VxPiA8L3htcE1NOkhpc3Rvcnk+IDwvcmRmOkRlc2NyaXB0aW9uPiA8L3JkZjpSREY+IDwveDp4bXBtZXRhPiA8P3hwYWNrZXQgZW5kPSJyIj8+JOr+gQAABzlJREFUeJzt1rENwzAQBEHTUOHsnEoVKhDwG8xUcNHi1vkBdPynBwA8iRKQIkpAiigBKaIEpIgSkCJKQIooASmiBKSIEpAiSkCKKAEpogSkiBKQIkpAiigBKaIEpIgSkCJKQIooASmiBKSIEpAiSkCKKAEpogSkiBKQIkpAiigBKaIEpIgSkCJKQIooASmiBKSIEpAiSkCKKAEpogSkiBKQIkpAiigBKaIEpIgSkCJKQIooASmiBKSIEpAiSkCKKAEpogSkiBKQIkpAiigBKaIEpIgSkCJKQIooASmiBKSIEpAiSkCKKAEpogSkiBKQIkpAiigBKaIEpIgSkCJKQIooASmiBKSIEpAiSkCKKAEpogSkiBKQIkpAiigBKaIEpIgSkCJKQIooASmiBKSIEpAiSkCKKAEpogSkiBKQIkpAiigBKaIEpIgSkCJKQIooASmiBKSIEpAiSkCKKAEpogSkiBKQIkpAiigBKaIEpIgSkCJKQIooASmiBKSIEpAiSkCKKAEpogSkiBKQIkpAiigBKaIEpIgSkCJKQIooASmiBKSIEpAiSkCKKAEpogSkiBKQIkpAiigBKaIEpIgSkCJKQIooASmiBKSIEpAiSkCKKAEpogSkiBKQIkpAiigBKaIEpIgSkCJKQIooASmiBKSIEpAiSkCKKAEpogSkiBKQIkpAiigBKaIEpIgSkCJKQIooASmiBKSIEpAiSkCKKAEpogSkiBKQIkpAiigBKaIEpIgSkCJKQIooASmiBKSIEpAiSkCKKAEpogSkiBKQIkpAiigBKaIEpIgSkCJKQIooASmiBKSIEpAiSkCKKAEpogSkiBKQIkpAiigBKaIEpIgSkCJKQIooASmiBKSIEpAiSkCKKAEpogSkiBKQIkpAiigBKaIEpIgSkHJND3hrn+kFULXX9IIveUpAiigBKaIEpIgSkCJKQIooASmiBKSIEpAiSkCKKAEpogSkiBKQIkpAiigBKaIEpIgSkCJKQIooASmiBKSIEpAiSkCKKAEpogSkiBKQIkpAiigBKaIEpIgSkCJKQIooASmiBKSIEpAiSkCKKAEpogSkiBKQIkpAiigBKaIEpIgSkCJKQIooASmiBKSIEpAiSkCKKAEpogSkiBKQIkpAiigBKaIEpIgSkCJKQIooASmiBKSIEpAiSkCKKAEpogSkiBKQIkpAiigBKaIEpIgSkCJKQIooASmiBKSIEpAiSkCKKAEpogSkiBKQIkpAiigBKaIEpIgSkCJKQIooASmiBKSIEpAiSkCKKAEp60wvAHjwlIAUUQJSRAlIESUgRZSAFFECUkQJSBElIEWUgBRRAlJECUgRJSBFlIAUUQJSRAlIESUgRZSAFFECUkQJSBElIEWUgBRRAlJECUgRJSBFlIAUUQJSRAlIESUgRZSAFFECUkQJSBElIEWUgBRRAlJECUgRJSDlmh7w1j7TC6Bqr+kFX/KUgBRRAlJECUgRJSBFlIAUUQJSRAlIESUgRZSAFFECUkQJSBElIEWUgBRRAlJECUgRJSBFlIAUUQJSRAlIESUgRZSAFFECUkQJSBElIEWUgBRRAlJECUgRJSBFlIAUUQJSRAlIESUgRZSAFFECUkQJSBElIEWUgBRRAlJECUgRJSBFlIAUUQJSRAlIESUgRZSAFFECUkQJSBElIEWUgBRRAlJECUgRJSBFlIAUUQJSRAlIESUgRZSAFFECUkQJSBElIEWUgBRRAlJECUgRJSBFlIAUUQJSRAlIESUgRZSAFFECUkQJSBElIEWUgBRRAlJECUgRJSBFlIAUUQJSRAlIESUgRZSAFFECUtaZXgDw4CkBKaIEpIgSkCJKQIooASmiBKSIEpAiSkCKKAEpogSkiBKQIkpAiigBKaIEpIgSkCJKQIooASmiBKSIEpAiSkCKKAEpogSkiBKQIkpAiigBKaIEpIgSkCJKQIooASmiBKSIEpAiSkCKKAEpogSkiBKQIkpAiigBKaIEpIgSkCJKQIooASmiBKSIEpAiSkCKKAEpogSkiBKQIkpAiigBKaIEpIgSkCJKQIooASmiBKSIEpAiSkCKKAEpogSkiBKQIkpAiigBKaIEpIgSkCJKQIooASmiBKSIEpAiSkCKKAEpogSkiBKQIkpAiigBKaIEpIgSkCJKQIooASmiBKSIEpAiSkCKKAEpogSkiBKQIkpAiigBKaIEpIgSkCJKQIooASmiBKSIEpAiSkCKKAEpogSkiBKQIkpAiigBKaIEpIgSkCJKQIooASmiBKSIEpAiSkCKKAEpogSkiBKQIkpAiigBKaIEpIgSkCJKQIooASmiBKSIEpAiSkCKKAEpogSkiBKQIkpAiigBKaIEpIgSkCJKQIooASmiBKSIEpAiSkCKKAEpogSkiBKQIkpAiigBKaIEpIgSkCJKQIooASmiBKSIEpAiSkCKKAEpogSkiBKQIkpAiigBKaIEpIgSkHIDp74LS5/6zzUAAAAASUVORK5CYII=";function dl(a){return ot({url:"/api/system/competency/list",method:"get",params:{...a,tenant_id:1}})}function Lt(a){return ot({url:"/api/system/interview_question/list",method:"get",params:{...a,tenant_id:1}})}function ul(a){return ot({url:"/api/system/interview_question/ai_generated",method:"post",data:{...a,tenant_id:1},timeout:0})}function cl(a){return ot({url:"/api/system/interview_question/draft_list",method:"get",params:{...a,tenant_id:1}})}function fl(a){return ot({url:"/api/system/interview_question/confirm_draft",method:"post",data:{...a,tenant_id:1}})}function vl(a){return ot({url:"/api/system/digital_human/",method:"get",params:{...a,tenant_id:1}})}function cn(a){return ot({url:"/api/system/job_config/list",method:"post",data:{...a,tenant_id:1}})}function fn(a){return ot({url:`/api/system/job_config/detail/${a.id}`,method:"put",data:{...a,tenant_id:1}})}function Dn(a){return ot({url:`/api/system/job_config/position/detail/${a}`,method:"get"})}function Qi(a){return ot({url:"api/system/job/add_question",method:"post",data:{...a,tenant_id:"1"}})}function _o(a){return ot({url:"/api/system/digital_human/generate_opening_video",method:"post",data:{...a,tenant_id:"1"},timeout:0})}function zi(a){return ot({url:"/api/system/digital_human/generate_question_videos",method:"post",data:{...a,tenant_id:"1",force_regenerate:!0},timeout:0})}function Gi(a){return ot({url:"api/system/job/add_question",method:"post",data:{...a,tenant_id:"1"}})}function $i(a){return ot({url:"/api/system/job/batch_delete_questions",method:"post",data:{...a,tenant_id:"1"}})}function pl(a){return ot({url:"/api/system/interview_question/update",method:"put",data:{...a,tenant_id:"1"}})}function Ji(a){return ot({url:"/competency/generate_from_position/",method:"post",data:{...a,tenant_id:"1"},timeout:0})}function ml(a){return ot({url:"/competency/save_position_tags/",method:"post",data:{...a,tenant_id:"1"}})}function gl(a){return ot({url:"/api/system/competency/list",method:"get",params:{...a,tenant_id:"1"}})}var ar={exports:{}};/**!
  2. * Sortable 1.14.0
  3. * @author RubaXa <trash@rubaxa.org>
  4. * @author owenm <owen23355@gmail.com>
  5. * @license MIT
  6. */function Wi(a,i){var o=Object.keys(a);if(Object.getOwnPropertySymbols){var u=Object.getOwnPropertySymbols(a);i&&(u=u.filter(function(n){return Object.getOwnPropertyDescriptor(a,n).enumerable})),o.push.apply(o,u)}return o}function Mt(a){for(var i=1;i<arguments.length;i++){var o=arguments[i]!=null?arguments[i]:{};i%2?Wi(Object(o),!0).forEach(function(u){hl(a,u,o[u])}):Object.getOwnPropertyDescriptors?Object.defineProperties(a,Object.getOwnPropertyDescriptors(o)):Wi(Object(o)).forEach(function(u){Object.defineProperty(a,u,Object.getOwnPropertyDescriptor(o,u))})}return a}function Bo(a){"@babel/helpers - typeof";return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?Bo=function(i){return typeof i}:Bo=function(i){return i&&typeof Symbol=="function"&&i.constructor===Symbol&&i!==Symbol.prototype?"symbol":typeof i},Bo(a)}function hl(a,i,o){return i in a?Object.defineProperty(a,i,{value:o,enumerable:!0,configurable:!0,writable:!0}):a[i]=o,a}function Ct(){return Ct=Object.assign||function(a){for(var i=1;i<arguments.length;i++){var o=arguments[i];for(var u in o)Object.prototype.hasOwnProperty.call(o,u)&&(a[u]=o[u])}return a},Ct.apply(this,arguments)}function yl(a,i){if(a==null)return{};var o={},u=Object.keys(a),n,s;for(s=0;s<u.length;s++)n=u[s],!(i.indexOf(n)>=0)&&(o[n]=a[n]);return o}function bl(a,i){if(a==null)return{};var o=yl(a,i),u,n;if(Object.getOwnPropertySymbols){var s=Object.getOwnPropertySymbols(a);for(n=0;n<s.length;n++)u=s[n],!(i.indexOf(u)>=0)&&Object.prototype.propertyIsEnumerable.call(a,u)&&(o[u]=a[u])}return o}function Sl(a){return El(a)||xl(a)||Il(a)||Cl()}function El(a){if(Array.isArray(a))return ui(a)}function xl(a){if(typeof Symbol<"u"&&a[Symbol.iterator]!=null||a["@@iterator"]!=null)return Array.from(a)}function Il(a,i){if(a){if(typeof a=="string")return ui(a,i);var o=Object.prototype.toString.call(a).slice(8,-1);if(o==="Object"&&a.constructor&&(o=a.constructor.name),o==="Map"||o==="Set")return Array.from(a);if(o==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(o))return ui(a,i)}}function ui(a,i){(i==null||i>a.length)&&(i=a.length);for(var o=0,u=new Array(i);o<i;o++)u[o]=a[o];return u}function Cl(){throw new TypeError(`Invalid attempt to spread non-iterable instance.
  7. In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}var Al="1.14.0";function Qt(a){if(typeof window<"u"&&window.navigator)return!!navigator.userAgent.match(a)}var zt=Qt(/(?:Trident.*rv[ :]?11\.|msie|iemobile|Windows Phone)/i),yo=Qt(/Edge/i),Hi=Qt(/firefox/i),vo=Qt(/safari/i)&&!Qt(/chrome/i)&&!Qt(/android/i),lr=Qt(/iP(ad|od|hone)/i),wl=Qt(/chrome/i)&&Qt(/android/i),sr={capture:!1,passive:!1};function he(a,i,o){a.addEventListener(i,o,!zt&&sr)}function pe(a,i,o){a.removeEventListener(i,o,!zt&&sr)}function Lo(a,i){if(i){if(i[0]===">"&&(i=i.substring(1)),a)try{if(a.matches)return a.matches(i);if(a.msMatchesSelector)return a.msMatchesSelector(i);if(a.webkitMatchesSelector)return a.webkitMatchesSelector(i)}catch{return!1}return!1}}function Ol(a){return a.host&&a!==document&&a.host.nodeType?a.host:a.parentNode}function Ot(a,i,o,u){if(a){o=o||document;do{if(i!=null&&(i[0]===">"?a.parentNode===o&&Lo(a,i):Lo(a,i))||u&&a===o)return a;if(a===o)break}while(a=Ol(a))}return null}var Yi=/\s+/g;function Le(a,i,o){if(a&&i)if(a.classList)a.classList[o?"add":"remove"](i);else{var u=(" "+a.className+" ").replace(Yi," ").replace(" "+i+" "," ");a.className=(u+(o?" "+i:"")).replace(Yi," ")}}function te(a,i,o){var u=a&&a.style;if(u){if(o===void 0)return document.defaultView&&document.defaultView.getComputedStyle?o=document.defaultView.getComputedStyle(a,""):a.currentStyle&&(o=a.currentStyle),i===void 0?o:o[i];!(i in u)&&i.indexOf("webkit")===-1&&(i="-webkit-"+i),u[i]=o+(typeof o=="string"?"":"px")}}function gn(a,i){var o="";if(typeof a=="string")o=a;else do{var u=te(a,"transform");u&&u!=="none"&&(o=u+" "+o)}while(!i&&(a=a.parentNode));var n=window.DOMMatrix||window.WebKitCSSMatrix||window.CSSMatrix||window.MSCSSMatrix;return n&&new n(o)}function dr(a,i,o){if(a){var u=a.getElementsByTagName(i),n=0,s=u.length;if(o)for(;n<s;n++)o(u[n],n);return u}return[]}function Kt(){var a=document.scrollingElement;return a||document.documentElement}function Ne(a,i,o,u,n){if(!(!a.getBoundingClientRect&&a!==window)){var s,t,r,l,c,m,p;if(a!==window&&a.parentNode&&a!==Kt()?(s=a.getBoundingClientRect(),t=s.top,r=s.left,l=s.bottom,c=s.right,m=s.height,p=s.width):(t=0,r=0,l=window.innerHeight,c=window.innerWidth,m=window.innerHeight,p=window.innerWidth),(i||o)&&a!==window&&(n=n||a.parentNode,!zt))do if(n&&n.getBoundingClientRect&&(te(n,"transform")!=="none"||o&&te(n,"position")!=="static")){var h=n.getBoundingClientRect();t-=h.top+parseInt(te(n,"border-top-width")),r-=h.left+parseInt(te(n,"border-left-width")),l=t+s.height,c=r+s.width;break}while(n=n.parentNode);if(u&&a!==window){var y=gn(n||a),S=y&&y.a,E=y&&y.d;y&&(t/=E,r/=S,p/=S,m/=E,l=t+m,c=r+p)}return{top:t,left:r,bottom:l,right:c,width:p,height:m}}}function Xi(a,i,o){for(var u=en(a,!0),n=Ne(a)[i];u;){var s=Ne(u)[o],t=void 0;if(t=n>=s,!t)return u;if(u===Kt())break;u=en(u,!1)}return!1}function Mn(a,i,o,u){for(var n=0,s=0,t=a.children;s<t.length;){if(t[s].style.display!=="none"&&t[s]!==de.ghost&&(u||t[s]!==de.dragged)&&Ot(t[s],o.draggable,a,!1)){if(n===i)return t[s];n++}s++}return null}function mi(a,i){for(var o=a.lastElementChild;o&&(o===de.ghost||te(o,"display")==="none"||i&&!Lo(o,i));)o=o.previousElementSibling;return o||null}function $e(a,i){var o=0;if(!a||!a.parentNode)return-1;for(;a=a.previousElementSibling;)a.nodeName.toUpperCase()!=="TEMPLATE"&&a!==de.clone&&(!i||Lo(a,i))&&o++;return o}function Zi(a){var i=0,o=0,u=Kt();if(a)do{var n=gn(a),s=n.a,t=n.d;i+=a.scrollLeft*s,o+=a.scrollTop*t}while(a!==u&&(a=a.parentNode));return[i,o]}function Tl(a,i){for(var o in a)if(a.hasOwnProperty(o)){for(var u in i)if(i.hasOwnProperty(u)&&i[u]===a[o][u])return Number(o)}return-1}function en(a,i){if(!a||!a.getBoundingClientRect)return Kt();var o=a,u=!1;do if(o.clientWidth<o.scrollWidth||o.clientHeight<o.scrollHeight){var n=te(o);if(o.clientWidth<o.scrollWidth&&(n.overflowX=="auto"||n.overflowX=="scroll")||o.clientHeight<o.scrollHeight&&(n.overflowY=="auto"||n.overflowY=="scroll")){if(!o.getBoundingClientRect||o===document.body)return Kt();if(u||i)return o;u=!0}}while(o=o.parentNode);return Kt()}function Dl(a,i){if(a&&i)for(var o in i)i.hasOwnProperty(o)&&(a[o]=i[o]);return a}function ei(a,i){return Math.round(a.top)===Math.round(i.top)&&Math.round(a.left)===Math.round(i.left)&&Math.round(a.height)===Math.round(i.height)&&Math.round(a.width)===Math.round(i.width)}var po;function ur(a,i){return function(){if(!po){var o=arguments,u=this;o.length===1?a.call(u,o[0]):a.apply(u,o),po=setTimeout(function(){po=void 0},i)}}}function Pl(){clearTimeout(po),po=void 0}function cr(a,i,o){a.scrollLeft+=i,a.scrollTop+=o}function gi(a){var i=window.Polymer,o=window.jQuery||window.Zepto;return i&&i.dom?i.dom(a).cloneNode(!0):o?o(a).clone(!0)[0]:a.cloneNode(!0)}function qi(a,i){te(a,"position","absolute"),te(a,"top",i.top),te(a,"left",i.left),te(a,"width",i.width),te(a,"height",i.height)}function ti(a){te(a,"position",""),te(a,"top",""),te(a,"left",""),te(a,"width",""),te(a,"height","")}var ut="Sortable"+new Date().getTime();function Vl(){var a=[],i;return{captureAnimationState:function(){if(a=[],!!this.options.animation){var u=[].slice.call(this.el.children);u.forEach(function(n){if(!(te(n,"display")==="none"||n===de.ghost)){a.push({target:n,rect:Ne(n)});var s=Mt({},a[a.length-1].rect);if(n.thisAnimationDuration){var t=gn(n,!0);t&&(s.top-=t.f,s.left-=t.e)}n.fromRect=s}})}},addAnimationState:function(u){a.push(u)},removeAnimationState:function(u){a.splice(Tl(a,{target:u}),1)},animateAll:function(u){var n=this;if(!this.options.animation){clearTimeout(i),typeof u=="function"&&u();return}var s=!1,t=0;a.forEach(function(r){var l=0,c=r.target,m=c.fromRect,p=Ne(c),h=c.prevFromRect,y=c.prevToRect,S=r.rect,E=gn(c,!0);E&&(p.top-=E.f,p.left-=E.e),c.toRect=p,c.thisAnimationDuration&&ei(h,p)&&!ei(m,p)&&(S.top-p.top)/(S.left-p.left)===(m.top-p.top)/(m.left-p.left)&&(l=Ul(S,h,y,n.options)),ei(p,m)||(c.prevFromRect=m,c.prevToRect=p,l||(l=n.options.animation),n.animate(c,S,p,l)),l&&(s=!0,t=Math.max(t,l),clearTimeout(c.animationResetTimer),c.animationResetTimer=setTimeout(function(){c.animationTime=0,c.prevFromRect=null,c.fromRect=null,c.prevToRect=null,c.thisAnimationDuration=null},l),c.thisAnimationDuration=l)}),clearTimeout(i),s?i=setTimeout(function(){typeof u=="function"&&u()},t):typeof u=="function"&&u(),a=[]},animate:function(u,n,s,t){if(t){te(u,"transition",""),te(u,"transform","");var r=gn(this.el),l=r&&r.a,c=r&&r.d,m=(n.left-s.left)/(l||1),p=(n.top-s.top)/(c||1);u.animatingX=!!m,u.animatingY=!!p,te(u,"transform","translate3d("+m+"px,"+p+"px,0)"),this.forRepaintDummy=Rl(u),te(u,"transition","transform "+t+"ms"+(this.options.easing?" "+this.options.easing:"")),te(u,"transform","translate3d(0,0,0)"),typeof u.animated=="number"&&clearTimeout(u.animated),u.animated=setTimeout(function(){te(u,"transition",""),te(u,"transform",""),u.animated=!1,u.animatingX=!1,u.animatingY=!1},t)}}}}function Rl(a){return a.offsetWidth}function Ul(a,i,o,u){return Math.sqrt(Math.pow(i.top-a.top,2)+Math.pow(i.left-a.left,2))/Math.sqrt(Math.pow(i.top-o.top,2)+Math.pow(i.left-o.left,2))*u.animation}var Pn=[],ni={initializeByDefault:!0},bo={mount:function(i){for(var o in ni)ni.hasOwnProperty(o)&&!(o in i)&&(i[o]=ni[o]);Pn.forEach(function(u){if(u.pluginName===i.pluginName)throw"Sortable: Cannot mount plugin ".concat(i.pluginName," more than once")}),Pn.push(i)},pluginEvent:function(i,o,u){var n=this;this.eventCanceled=!1,u.cancel=function(){n.eventCanceled=!0};var s=i+"Global";Pn.forEach(function(t){o[t.pluginName]&&(o[t.pluginName][s]&&o[t.pluginName][s](Mt({sortable:o},u)),o.options[t.pluginName]&&o[t.pluginName][i]&&o[t.pluginName][i](Mt({sortable:o},u)))})},initializePlugins:function(i,o,u,n){Pn.forEach(function(r){var l=r.pluginName;if(!(!i.options[l]&&!r.initializeByDefault)){var c=new r(i,o,i.options);c.sortable=i,c.options=i.options,i[l]=c,Ct(u,c.defaults)}});for(var s in i.options)if(i.options.hasOwnProperty(s)){var t=this.modifyOption(i,s,i.options[s]);typeof t<"u"&&(i.options[s]=t)}},getEventProperties:function(i,o){var u={};return Pn.forEach(function(n){typeof n.eventProperties=="function"&&Ct(u,n.eventProperties.call(o[n.pluginName],i))}),u},modifyOption:function(i,o,u){var n;return Pn.forEach(function(s){i[s.pluginName]&&s.optionListeners&&typeof s.optionListeners[o]=="function"&&(n=s.optionListeners[o].call(i[s.pluginName],u))}),n}};function so(a){var i=a.sortable,o=a.rootEl,u=a.name,n=a.targetEl,s=a.cloneEl,t=a.toEl,r=a.fromEl,l=a.oldIndex,c=a.newIndex,m=a.oldDraggableIndex,p=a.newDraggableIndex,h=a.originalEvent,y=a.putSortable,S=a.extraEventProperties;if(i=i||o&&o[ut],!!i){var E,I=i.options,w="on"+u.charAt(0).toUpperCase()+u.substr(1);window.CustomEvent&&!zt&&!yo?E=new CustomEvent(u,{bubbles:!0,cancelable:!0}):(E=document.createEvent("Event"),E.initEvent(u,!0,!0)),E.to=t||o,E.from=r||o,E.item=n||o,E.clone=s,E.oldIndex=l,E.newIndex=c,E.oldDraggableIndex=m,E.newDraggableIndex=p,E.originalEvent=h,E.pullMode=y?y.lastPutMode:void 0;var C=Mt(Mt({},S),bo.getEventProperties(u,i));for(var U in C)E[U]=C[U];o&&o.dispatchEvent(E),I[w]&&I[w].call(i,E)}}var Kl=["evt"],pt=function(i,o){var u=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},n=u.evt,s=bl(u,Kl);bo.pluginEvent.bind(de)(i,o,Mt({dragEl:z,parentEl:ze,ghostEl:ve,rootEl:Be,nextEl:mn,lastDownEl:No,cloneEl:Ge,cloneHidden:_t,dragStarted:uo,putSortable:st,activeSortable:de.active,originalEvent:n,oldIndex:Kn,oldDraggableIndex:mo,newIndex:yt,newDraggableIndex:qt,hideGhostForTarget:mr,unhideGhostForTarget:gr,cloneNowHidden:function(){_t=!0},cloneNowShown:function(){_t=!1},dispatchSortableEvent:function(r){vt({sortable:o,name:r,originalEvent:n})}},s))};function vt(a){so(Mt({putSortable:st,cloneEl:Ge,targetEl:z,rootEl:Be,oldIndex:Kn,oldDraggableIndex:mo,newIndex:yt,newDraggableIndex:qt},a))}var z,ze,ve,Be,mn,No,Ge,_t,Kn,yt,mo,qt,Po,st,Un=!1,Qo=!1,zo=[],vn,At,oi,ii,_i,er,uo,Vn,go,ho=!1,Vo=!1,jo,dt,ri=[],ci=!1,Go=[],Jo=typeof document<"u",Ro=lr,tr=yo||zt?"cssFloat":"float",Ml=Jo&&!wl&&!lr&&"draggable"in document.createElement("div"),fr=function(){if(Jo){if(zt)return!1;var a=document.createElement("x");return a.style.cssText="pointer-events:auto",a.style.pointerEvents==="auto"}}(),vr=function(i,o){var u=te(i),n=parseInt(u.width)-parseInt(u.paddingLeft)-parseInt(u.paddingRight)-parseInt(u.borderLeftWidth)-parseInt(u.borderRightWidth),s=Mn(i,0,o),t=Mn(i,1,o),r=s&&te(s),l=t&&te(t),c=r&&parseInt(r.marginLeft)+parseInt(r.marginRight)+Ne(s).width,m=l&&parseInt(l.marginLeft)+parseInt(l.marginRight)+Ne(t).width;if(u.display==="flex")return u.flexDirection==="column"||u.flexDirection==="column-reverse"?"vertical":"horizontal";if(u.display==="grid")return u.gridTemplateColumns.split(" ").length<=1?"vertical":"horizontal";if(s&&r.float&&r.float!=="none"){var p=r.float==="left"?"left":"right";return t&&(l.clear==="both"||l.clear===p)?"vertical":"horizontal"}return s&&(r.display==="block"||r.display==="flex"||r.display==="table"||r.display==="grid"||c>=n&&u[tr]==="none"||t&&u[tr]==="none"&&c+m>n)?"vertical":"horizontal"},Bl=function(i,o,u){var n=u?i.left:i.top,s=u?i.right:i.bottom,t=u?i.width:i.height,r=u?o.left:o.top,l=u?o.right:o.bottom,c=u?o.width:o.height;return n===r||s===l||n+t/2===r+c/2},Nl=function(i,o){var u;return zo.some(function(n){var s=n[ut].options.emptyInsertThreshold;if(!(!s||mi(n))){var t=Ne(n),r=i>=t.left-s&&i<=t.right+s,l=o>=t.top-s&&o<=t.bottom+s;if(r&&l)return u=n}}),u},pr=function(i){function o(s,t){return function(r,l,c,m){var p=r.options.group.name&&l.options.group.name&&r.options.group.name===l.options.group.name;if(s==null&&(t||p))return!0;if(s==null||s===!1)return!1;if(t&&s==="clone")return s;if(typeof s=="function")return o(s(r,l,c,m),t)(r,l,c,m);var h=(t?r:l).options.group.name;return s===!0||typeof s=="string"&&s===h||s.join&&s.indexOf(h)>-1}}var u={},n=i.group;(!n||Bo(n)!="object")&&(n={name:n}),u.name=n.name,u.checkPull=o(n.pull,!0),u.checkPut=o(n.put),u.revertClone=n.revertClone,i.group=u},mr=function(){!fr&&ve&&te(ve,"display","none")},gr=function(){!fr&&ve&&te(ve,"display","")};Jo&&document.addEventListener("click",function(a){if(Qo)return a.preventDefault(),a.stopPropagation&&a.stopPropagation(),a.stopImmediatePropagation&&a.stopImmediatePropagation(),Qo=!1,!1},!0);var pn=function(i){if(z){i=i.touches?i.touches[0]:i;var o=Nl(i.clientX,i.clientY);if(o){var u={};for(var n in i)i.hasOwnProperty(n)&&(u[n]=i[n]);u.target=u.rootEl=o,u.preventDefault=void 0,u.stopPropagation=void 0,o[ut]._onDragOver(u)}}},jl=function(i){z&&z.parentNode[ut]._isOutsideThisEl(i.target)};function de(a,i){if(!(a&&a.nodeType&&a.nodeType===1))throw"Sortable: `el` must be an HTMLElement, not ".concat({}.toString.call(a));this.el=a,this.options=i=Ct({},i),a[ut]=this;var o={group:null,sort:!0,disabled:!1,store:null,handle:null,draggable:/^[uo]l$/i.test(a.nodeName)?">li":">*",swapThreshold:1,invertSwap:!1,invertedSwapThreshold:null,removeCloneOnHide:!0,direction:function(){return vr(a,this.options)},ghostClass:"sortable-ghost",chosenClass:"sortable-chosen",dragClass:"sortable-drag",ignore:"a, img",filter:null,preventOnFilter:!0,animation:0,easing:null,setData:function(t,r){t.setData("Text",r.textContent)},dropBubble:!1,dragoverBubble:!1,dataIdAttr:"data-id",delay:0,delayOnTouchOnly:!1,touchStartThreshold:(Number.parseInt?Number:window).parseInt(window.devicePixelRatio,10)||1,forceFallback:!1,fallbackClass:"sortable-fallback",fallbackOnBody:!1,fallbackTolerance:0,fallbackOffset:{x:0,y:0},supportPointer:de.supportPointer!==!1&&"PointerEvent"in window&&!vo,emptyInsertThreshold:5};bo.initializePlugins(this,a,o);for(var u in o)!(u in i)&&(i[u]=o[u]);pr(i);for(var n in this)n.charAt(0)==="_"&&typeof this[n]=="function"&&(this[n]=this[n].bind(this));this.nativeDraggable=i.forceFallback?!1:Ml,this.nativeDraggable&&(this.options.touchStartThreshold=1),i.supportPointer?he(a,"pointerdown",this._onTapStart):(he(a,"mousedown",this._onTapStart),he(a,"touchstart",this._onTapStart)),this.nativeDraggable&&(he(a,"dragover",this),he(a,"dragenter",this)),zo.push(this.el),i.store&&i.store.get&&this.sort(i.store.get(this)||[]),Ct(this,Vl())}de.prototype={constructor:de,_isOutsideThisEl:function(i){!this.el.contains(i)&&i!==this.el&&(Vn=null)},_getDirection:function(i,o){return typeof this.options.direction=="function"?this.options.direction.call(this,i,o,z):this.options.direction},_onTapStart:function(i){if(i.cancelable){var o=this,u=this.el,n=this.options,s=n.preventOnFilter,t=i.type,r=i.touches&&i.touches[0]||i.pointerType&&i.pointerType==="touch"&&i,l=(r||i).target,c=i.target.shadowRoot&&(i.path&&i.path[0]||i.composedPath&&i.composedPath()[0])||l,m=n.filter;if(Jl(u),!z&&!(/mousedown|pointerdown/.test(t)&&i.button!==0||n.disabled)&&!c.isContentEditable&&!(!this.nativeDraggable&&vo&&l&&l.tagName.toUpperCase()==="SELECT")&&(l=Ot(l,n.draggable,u,!1),!(l&&l.animated)&&No!==l)){if(Kn=$e(l),mo=$e(l,n.draggable),typeof m=="function"){if(m.call(this,i,l,this)){vt({sortable:o,rootEl:c,name:"filter",targetEl:l,toEl:u,fromEl:u}),pt("filter",o,{evt:i}),s&&i.cancelable&&i.preventDefault();return}}else if(m&&(m=m.split(",").some(function(p){if(p=Ot(c,p.trim(),u,!1),p)return vt({sortable:o,rootEl:p,name:"filter",targetEl:l,fromEl:u,toEl:u}),pt("filter",o,{evt:i}),!0}),m)){s&&i.cancelable&&i.preventDefault();return}n.handle&&!Ot(c,n.handle,u,!1)||this._prepareDragStart(i,r,l)}}},_prepareDragStart:function(i,o,u){var n=this,s=n.el,t=n.options,r=s.ownerDocument,l;if(u&&!z&&u.parentNode===s){var c=Ne(u);if(Be=s,z=u,ze=z.parentNode,mn=z.nextSibling,No=u,Po=t.group,de.dragged=z,vn={target:z,clientX:(o||i).clientX,clientY:(o||i).clientY},_i=vn.clientX-c.left,er=vn.clientY-c.top,this._lastX=(o||i).clientX,this._lastY=(o||i).clientY,z.style["will-change"]="all",l=function(){if(pt("delayEnded",n,{evt:i}),de.eventCanceled){n._onDrop();return}n._disableDelayedDragEvents(),!Hi&&n.nativeDraggable&&(z.draggable=!0),n._triggerDragStart(i,o),vt({sortable:n,name:"choose",originalEvent:i}),Le(z,t.chosenClass,!0)},t.ignore.split(",").forEach(function(m){dr(z,m.trim(),ai)}),he(r,"dragover",pn),he(r,"mousemove",pn),he(r,"touchmove",pn),he(r,"mouseup",n._onDrop),he(r,"touchend",n._onDrop),he(r,"touchcancel",n._onDrop),Hi&&this.nativeDraggable&&(this.options.touchStartThreshold=4,z.draggable=!0),pt("delayStart",this,{evt:i}),t.delay&&(!t.delayOnTouchOnly||o)&&(!this.nativeDraggable||!(yo||zt))){if(de.eventCanceled){this._onDrop();return}he(r,"mouseup",n._disableDelayedDrag),he(r,"touchend",n._disableDelayedDrag),he(r,"touchcancel",n._disableDelayedDrag),he(r,"mousemove",n._delayedDragTouchMoveHandler),he(r,"touchmove",n._delayedDragTouchMoveHandler),t.supportPointer&&he(r,"pointermove",n._delayedDragTouchMoveHandler),n._dragStartTimer=setTimeout(l,t.delay)}else l()}},_delayedDragTouchMoveHandler:function(i){var o=i.touches?i.touches[0]:i;Math.max(Math.abs(o.clientX-this._lastX),Math.abs(o.clientY-this._lastY))>=Math.floor(this.options.touchStartThreshold/(this.nativeDraggable&&window.devicePixelRatio||1))&&this._disableDelayedDrag()},_disableDelayedDrag:function(){z&&ai(z),clearTimeout(this._dragStartTimer),this._disableDelayedDragEvents()},_disableDelayedDragEvents:function(){var i=this.el.ownerDocument;pe(i,"mouseup",this._disableDelayedDrag),pe(i,"touchend",this._disableDelayedDrag),pe(i,"touchcancel",this._disableDelayedDrag),pe(i,"mousemove",this._delayedDragTouchMoveHandler),pe(i,"touchmove",this._delayedDragTouchMoveHandler),pe(i,"pointermove",this._delayedDragTouchMoveHandler)},_triggerDragStart:function(i,o){o=o||i.pointerType=="touch"&&i,!this.nativeDraggable||o?this.options.supportPointer?he(document,"pointermove",this._onTouchMove):o?he(document,"touchmove",this._onTouchMove):he(document,"mousemove",this._onTouchMove):(he(z,"dragend",this),he(Be,"dragstart",this._onDragStart));try{document.selection?Fo(function(){document.selection.empty()}):window.getSelection().removeAllRanges()}catch{}},_dragStarted:function(i,o){if(Un=!1,Be&&z){pt("dragStarted",this,{evt:o}),this.nativeDraggable&&he(document,"dragover",jl);var u=this.options;!i&&Le(z,u.dragClass,!1),Le(z,u.ghostClass,!0),de.active=this,i&&this._appendGhost(),vt({sortable:this,name:"start",originalEvent:o})}else this._nulling()},_emulateDragOver:function(){if(At){this._lastX=At.clientX,this._lastY=At.clientY,mr();for(var i=document.elementFromPoint(At.clientX,At.clientY),o=i;i&&i.shadowRoot&&(i=i.shadowRoot.elementFromPoint(At.clientX,At.clientY),i!==o);)o=i;if(z.parentNode[ut]._isOutsideThisEl(i),o)do{if(o[ut]){var u=void 0;if(u=o[ut]._onDragOver({clientX:At.clientX,clientY:At.clientY,target:i,rootEl:o}),u&&!this.options.dragoverBubble)break}i=o}while(o=o.parentNode);gr()}},_onTouchMove:function(i){if(vn){var o=this.options,u=o.fallbackTolerance,n=o.fallbackOffset,s=i.touches?i.touches[0]:i,t=ve&&gn(ve,!0),r=ve&&t&&t.a,l=ve&&t&&t.d,c=Ro&&dt&&Zi(dt),m=(s.clientX-vn.clientX+n.x)/(r||1)+(c?c[0]-ri[0]:0)/(r||1),p=(s.clientY-vn.clientY+n.y)/(l||1)+(c?c[1]-ri[1]:0)/(l||1);if(!de.active&&!Un){if(u&&Math.max(Math.abs(s.clientX-this._lastX),Math.abs(s.clientY-this._lastY))<u)return;this._onDragStart(i,!0)}if(ve){t?(t.e+=m-(oi||0),t.f+=p-(ii||0)):t={a:1,b:0,c:0,d:1,e:m,f:p};var h="matrix(".concat(t.a,",").concat(t.b,",").concat(t.c,",").concat(t.d,",").concat(t.e,",").concat(t.f,")");te(ve,"webkitTransform",h),te(ve,"mozTransform",h),te(ve,"msTransform",h),te(ve,"transform",h),oi=m,ii=p,At=s}i.cancelable&&i.preventDefault()}},_appendGhost:function(){if(!ve){var i=this.options.fallbackOnBody?document.body:Be,o=Ne(z,!0,Ro,!0,i),u=this.options;if(Ro){for(dt=i;te(dt,"position")==="static"&&te(dt,"transform")==="none"&&dt!==document;)dt=dt.parentNode;dt!==document.body&&dt!==document.documentElement?(dt===document&&(dt=Kt()),o.top+=dt.scrollTop,o.left+=dt.scrollLeft):dt=Kt(),ri=Zi(dt)}ve=z.cloneNode(!0),Le(ve,u.ghostClass,!1),Le(ve,u.fallbackClass,!0),Le(ve,u.dragClass,!0),te(ve,"transition",""),te(ve,"transform",""),te(ve,"box-sizing","border-box"),te(ve,"margin",0),te(ve,"top",o.top),te(ve,"left",o.left),te(ve,"width",o.width),te(ve,"height",o.height),te(ve,"opacity","0.8"),te(ve,"position",Ro?"absolute":"fixed"),te(ve,"zIndex","100000"),te(ve,"pointerEvents","none"),de.ghost=ve,i.appendChild(ve),te(ve,"transform-origin",_i/parseInt(ve.style.width)*100+"% "+er/parseInt(ve.style.height)*100+"%")}},_onDragStart:function(i,o){var u=this,n=i.dataTransfer,s=u.options;if(pt("dragStart",this,{evt:i}),de.eventCanceled){this._onDrop();return}pt("setupClone",this),de.eventCanceled||(Ge=gi(z),Ge.draggable=!1,Ge.style["will-change"]="",this._hideClone(),Le(Ge,this.options.chosenClass,!1),de.clone=Ge),u.cloneId=Fo(function(){pt("clone",u),!de.eventCanceled&&(u.options.removeCloneOnHide||Be.insertBefore(Ge,z),u._hideClone(),vt({sortable:u,name:"clone"}))}),!o&&Le(z,s.dragClass,!0),o?(Qo=!0,u._loopId=setInterval(u._emulateDragOver,50)):(pe(document,"mouseup",u._onDrop),pe(document,"touchend",u._onDrop),pe(document,"touchcancel",u._onDrop),n&&(n.effectAllowed="move",s.setData&&s.setData.call(u,n,z)),he(document,"drop",u),te(z,"transform","translateZ(0)")),Un=!0,u._dragStartId=Fo(u._dragStarted.bind(u,o,i)),he(document,"selectstart",u),uo=!0,vo&&te(document.body,"user-select","none")},_onDragOver:function(i){var o=this.el,u=i.target,n,s,t,r=this.options,l=r.group,c=de.active,m=Po===l,p=r.sort,h=st||c,y,S=this,E=!1;if(ci)return;function I(ye,De){pt(ye,S,Mt({evt:i,isOwner:m,axis:y?"vertical":"horizontal",revert:t,dragRect:n,targetRect:s,canSort:p,fromSortable:h,target:u,completed:C,onMove:function(xe,Ue){return Uo(Be,o,z,n,xe,Ne(xe),i,Ue)},changed:U},De))}function w(){I("dragOverAnimationCapture"),S.captureAnimationState(),S!==h&&h.captureAnimationState()}function C(ye){return I("dragOverCompleted",{insertion:ye}),ye&&(m?c._hideClone():c._showClone(S),S!==h&&(Le(z,st?st.options.ghostClass:c.options.ghostClass,!1),Le(z,r.ghostClass,!0)),st!==S&&S!==de.active?st=S:S===de.active&&st&&(st=null),h===S&&(S._ignoreWhileAnimating=u),S.animateAll(function(){I("dragOverAnimationComplete"),S._ignoreWhileAnimating=null}),S!==h&&(h.animateAll(),h._ignoreWhileAnimating=null)),(u===z&&!z.animated||u===o&&!u.animated)&&(Vn=null),!r.dragoverBubble&&!i.rootEl&&u!==document&&(z.parentNode[ut]._isOutsideThisEl(i.target),!ye&&pn(i)),!r.dragoverBubble&&i.stopPropagation&&i.stopPropagation(),E=!0}function U(){yt=$e(z),qt=$e(z,r.draggable),vt({sortable:S,name:"change",toEl:o,newIndex:yt,newDraggableIndex:qt,originalEvent:i})}if(i.preventDefault!==void 0&&i.cancelable&&i.preventDefault(),u=Ot(u,r.draggable,o,!0),I("dragOver"),de.eventCanceled)return E;if(z.contains(i.target)||u.animated&&u.animatingX&&u.animatingY||S._ignoreWhileAnimating===u)return C(!1);if(Qo=!1,c&&!r.disabled&&(m?p||(t=ze!==Be):st===this||(this.lastPutMode=Po.checkPull(this,c,z,i))&&l.checkPut(this,c,z,i))){if(y=this._getDirection(i,u)==="vertical",n=Ne(z),I("dragOverValid"),de.eventCanceled)return E;if(t)return ze=Be,w(),this._hideClone(),I("revert"),de.eventCanceled||(mn?Be.insertBefore(z,mn):Be.appendChild(z)),C(!0);var P=mi(o,r.draggable);if(!P||Ql(i,y,this)&&!P.animated){if(P===z)return C(!1);if(P&&o===i.target&&(u=P),u&&(s=Ne(u)),Uo(Be,o,z,n,u,s,i,!!u)!==!1)return w(),o.appendChild(z),ze=o,U(),C(!0)}else if(P&&Ll(i,y,this)){var B=Mn(o,0,r,!0);if(B===z)return C(!1);if(u=B,s=Ne(u),Uo(Be,o,z,n,u,s,i,!1)!==!1)return w(),o.insertBefore(z,B),ze=o,U(),C(!0)}else if(u.parentNode===o){s=Ne(u);var D=0,H,_=z.parentNode!==o,R=!Bl(z.animated&&z.toRect||n,u.animated&&u.toRect||s,y),G=y?"top":"left",X=Xi(u,"top","top")||Xi(z,"top","top"),le=X?X.scrollTop:void 0;Vn!==u&&(H=s[G],ho=!1,Vo=!R&&r.invertSwap||_),D=zl(i,u,s,y,R?1:r.swapThreshold,r.invertedSwapThreshold==null?r.swapThreshold:r.invertedSwapThreshold,Vo,Vn===u);var T;if(D!==0){var L=$e(z);do L-=D,T=ze.children[L];while(T&&(te(T,"display")==="none"||T===ve))}if(D===0||T===u)return C(!1);Vn=u,go=D;var ue=u.nextElementSibling,J=!1;J=D===1;var oe=Uo(Be,o,z,n,u,s,i,J);if(oe!==!1)return(oe===1||oe===-1)&&(J=oe===1),ci=!0,setTimeout(kl,30),w(),J&&!ue?o.appendChild(z):u.parentNode.insertBefore(z,J?ue:u),X&&cr(X,0,le-X.scrollTop),ze=z.parentNode,H!==void 0&&!Vo&&(jo=Math.abs(H-Ne(u)[G])),U(),C(!0)}if(o.contains(z))return C(!1)}return!1},_ignoreWhileAnimating:null,_offMoveEvents:function(){pe(document,"mousemove",this._onTouchMove),pe(document,"touchmove",this._onTouchMove),pe(document,"pointermove",this._onTouchMove),pe(document,"dragover",pn),pe(document,"mousemove",pn),pe(document,"touchmove",pn)},_offUpEvents:function(){var i=this.el.ownerDocument;pe(i,"mouseup",this._onDrop),pe(i,"touchend",this._onDrop),pe(i,"pointerup",this._onDrop),pe(i,"touchcancel",this._onDrop),pe(document,"selectstart",this)},_onDrop:function(i){var o=this.el,u=this.options;if(yt=$e(z),qt=$e(z,u.draggable),pt("drop",this,{evt:i}),ze=z&&z.parentNode,yt=$e(z),qt=$e(z,u.draggable),de.eventCanceled){this._nulling();return}Un=!1,Vo=!1,ho=!1,clearInterval(this._loopId),clearTimeout(this._dragStartTimer),fi(this.cloneId),fi(this._dragStartId),this.nativeDraggable&&(pe(document,"drop",this),pe(o,"dragstart",this._onDragStart)),this._offMoveEvents(),this._offUpEvents(),vo&&te(document.body,"user-select",""),te(z,"transform",""),i&&(uo&&(i.cancelable&&i.preventDefault(),!u.dropBubble&&i.stopPropagation()),ve&&ve.parentNode&&ve.parentNode.removeChild(ve),(Be===ze||st&&st.lastPutMode!=="clone")&&Ge&&Ge.parentNode&&Ge.parentNode.removeChild(Ge),z&&(this.nativeDraggable&&pe(z,"dragend",this),ai(z),z.style["will-change"]="",uo&&!Un&&Le(z,st?st.options.ghostClass:this.options.ghostClass,!1),Le(z,this.options.chosenClass,!1),vt({sortable:this,name:"unchoose",toEl:ze,newIndex:null,newDraggableIndex:null,originalEvent:i}),Be!==ze?(yt>=0&&(vt({rootEl:ze,name:"add",toEl:ze,fromEl:Be,originalEvent:i}),vt({sortable:this,name:"remove",toEl:ze,originalEvent:i}),vt({rootEl:ze,name:"sort",toEl:ze,fromEl:Be,originalEvent:i}),vt({sortable:this,name:"sort",toEl:ze,originalEvent:i})),st&&st.save()):yt!==Kn&&yt>=0&&(vt({sortable:this,name:"update",toEl:ze,originalEvent:i}),vt({sortable:this,name:"sort",toEl:ze,originalEvent:i})),de.active&&((yt==null||yt===-1)&&(yt=Kn,qt=mo),vt({sortable:this,name:"end",toEl:ze,originalEvent:i}),this.save()))),this._nulling()},_nulling:function(){pt("nulling",this),Be=z=ze=ve=mn=Ge=No=_t=vn=At=uo=yt=qt=Kn=mo=Vn=go=st=Po=de.dragged=de.ghost=de.clone=de.active=null,Go.forEach(function(i){i.checked=!0}),Go.length=oi=ii=0},handleEvent:function(i){switch(i.type){case"drop":case"dragend":this._onDrop(i);break;case"dragenter":case"dragover":z&&(this._onDragOver(i),Fl(i));break;case"selectstart":i.preventDefault();break}},toArray:function(){for(var i=[],o,u=this.el.children,n=0,s=u.length,t=this.options;n<s;n++)o=u[n],Ot(o,t.draggable,this.el,!1)&&i.push(o.getAttribute(t.dataIdAttr)||$l(o));return i},sort:function(i,o){var u={},n=this.el;this.toArray().forEach(function(s,t){var r=n.children[t];Ot(r,this.options.draggable,n,!1)&&(u[s]=r)},this),o&&this.captureAnimationState(),i.forEach(function(s){u[s]&&(n.removeChild(u[s]),n.appendChild(u[s]))}),o&&this.animateAll()},save:function(){var i=this.options.store;i&&i.set&&i.set(this)},closest:function(i,o){return Ot(i,o||this.options.draggable,this.el,!1)},option:function(i,o){var u=this.options;if(o===void 0)return u[i];var n=bo.modifyOption(this,i,o);typeof n<"u"?u[i]=n:u[i]=o,i==="group"&&pr(u)},destroy:function(){pt("destroy",this);var i=this.el;i[ut]=null,pe(i,"mousedown",this._onTapStart),pe(i,"touchstart",this._onTapStart),pe(i,"pointerdown",this._onTapStart),this.nativeDraggable&&(pe(i,"dragover",this),pe(i,"dragenter",this)),Array.prototype.forEach.call(i.querySelectorAll("[draggable]"),function(o){o.removeAttribute("draggable")}),this._onDrop(),this._disableDelayedDragEvents(),zo.splice(zo.indexOf(this.el),1),this.el=i=null},_hideClone:function(){if(!_t){if(pt("hideClone",this),de.eventCanceled)return;te(Ge,"display","none"),this.options.removeCloneOnHide&&Ge.parentNode&&Ge.parentNode.removeChild(Ge),_t=!0}},_showClone:function(i){if(i.lastPutMode!=="clone"){this._hideClone();return}if(_t){if(pt("showClone",this),de.eventCanceled)return;z.parentNode==Be&&!this.options.group.revertClone?Be.insertBefore(Ge,z):mn?Be.insertBefore(Ge,mn):Be.appendChild(Ge),this.options.group.revertClone&&this.animate(z,Ge),te(Ge,"display",""),_t=!1}}};function Fl(a){a.dataTransfer&&(a.dataTransfer.dropEffect="move"),a.cancelable&&a.preventDefault()}function Uo(a,i,o,u,n,s,t,r){var l,c=a[ut],m=c.options.onMove,p;return window.CustomEvent&&!zt&&!yo?l=new CustomEvent("move",{bubbles:!0,cancelable:!0}):(l=document.createEvent("Event"),l.initEvent("move",!0,!0)),l.to=i,l.from=a,l.dragged=o,l.draggedRect=u,l.related=n||i,l.relatedRect=s||Ne(i),l.willInsertAfter=r,l.originalEvent=t,a.dispatchEvent(l),m&&(p=m.call(c,l,t)),p}function ai(a){a.draggable=!1}function kl(){ci=!1}function Ll(a,i,o){var u=Ne(Mn(o.el,0,o.options,!0)),n=10;return i?a.clientX<u.left-n||a.clientY<u.top&&a.clientX<u.right:a.clientY<u.top-n||a.clientY<u.bottom&&a.clientX<u.left}function Ql(a,i,o){var u=Ne(mi(o.el,o.options.draggable)),n=10;return i?a.clientX>u.right+n||a.clientX<=u.right&&a.clientY>u.bottom&&a.clientX>=u.left:a.clientX>u.right&&a.clientY>u.top||a.clientX<=u.right&&a.clientY>u.bottom+n}function zl(a,i,o,u,n,s,t,r){var l=u?a.clientY:a.clientX,c=u?o.height:o.width,m=u?o.top:o.left,p=u?o.bottom:o.right,h=!1;if(!t){if(r&&jo<c*n){if(!ho&&(go===1?l>m+c*s/2:l<p-c*s/2)&&(ho=!0),ho)h=!0;else if(go===1?l<m+jo:l>p-jo)return-go}else if(l>m+c*(1-n)/2&&l<p-c*(1-n)/2)return Gl(i)}return h=h||t,h&&(l<m+c*s/2||l>p-c*s/2)?l>m+c/2?1:-1:0}function Gl(a){return $e(z)<$e(a)?1:-1}function $l(a){for(var i=a.tagName+a.className+a.src+a.href+a.textContent,o=i.length,u=0;o--;)u+=i.charCodeAt(o);return u.toString(36)}function Jl(a){Go.length=0;for(var i=a.getElementsByTagName("input"),o=i.length;o--;){var u=i[o];u.checked&&Go.push(u)}}function Fo(a){return setTimeout(a,0)}function fi(a){return clearTimeout(a)}Jo&&he(document,"touchmove",function(a){(de.active||Un)&&a.cancelable&&a.preventDefault()});de.utils={on:he,off:pe,css:te,find:dr,is:function(i,o){return!!Ot(i,o,i,!1)},extend:Dl,throttle:ur,closest:Ot,toggleClass:Le,clone:gi,index:$e,nextTick:Fo,cancelNextTick:fi,detectDirection:vr,getChild:Mn};de.get=function(a){return a[ut]};de.mount=function(){for(var a=arguments.length,i=new Array(a),o=0;o<a;o++)i[o]=arguments[o];i[0].constructor===Array&&(i=i[0]),i.forEach(function(u){if(!u.prototype||!u.prototype.constructor)throw"Sortable: Mounted plugin must be a constructor function, not ".concat({}.toString.call(u));u.utils&&(de.utils=Mt(Mt({},de.utils),u.utils)),bo.mount(u)})};de.create=function(a,i){return new de(a,i)};de.version=Al;var Xe=[],co,vi,pi=!1,li,si,$o,fo;function Wl(){function a(){this.defaults={scroll:!0,forceAutoScrollFallback:!1,scrollSensitivity:30,scrollSpeed:10,bubbleScroll:!0};for(var i in this)i.charAt(0)==="_"&&typeof this[i]=="function"&&(this[i]=this[i].bind(this))}return a.prototype={dragStarted:function(o){var u=o.originalEvent;this.sortable.nativeDraggable?he(document,"dragover",this._handleAutoScroll):this.options.supportPointer?he(document,"pointermove",this._handleFallbackAutoScroll):u.touches?he(document,"touchmove",this._handleFallbackAutoScroll):he(document,"mousemove",this._handleFallbackAutoScroll)},dragOverCompleted:function(o){var u=o.originalEvent;!this.options.dragOverBubble&&!u.rootEl&&this._handleAutoScroll(u)},drop:function(){this.sortable.nativeDraggable?pe(document,"dragover",this._handleAutoScroll):(pe(document,"pointermove",this._handleFallbackAutoScroll),pe(document,"touchmove",this._handleFallbackAutoScroll),pe(document,"mousemove",this._handleFallbackAutoScroll)),nr(),ko(),Pl()},nulling:function(){$o=vi=co=pi=fo=li=si=null,Xe.length=0},_handleFallbackAutoScroll:function(o){this._handleAutoScroll(o,!0)},_handleAutoScroll:function(o,u){var n=this,s=(o.touches?o.touches[0]:o).clientX,t=(o.touches?o.touches[0]:o).clientY,r=document.elementFromPoint(s,t);if($o=o,u||this.options.forceAutoScrollFallback||yo||zt||vo){di(o,this.options,r,u);var l=en(r,!0);pi&&(!fo||s!==li||t!==si)&&(fo&&nr(),fo=setInterval(function(){var c=en(document.elementFromPoint(s,t),!0);c!==l&&(l=c,ko()),di(o,n.options,c,u)},10),li=s,si=t)}else{if(!this.options.bubbleScroll||en(r,!0)===Kt()){ko();return}di(o,this.options,en(r,!1),!1)}}},Ct(a,{pluginName:"scroll",initializeByDefault:!0})}function ko(){Xe.forEach(function(a){clearInterval(a.pid)}),Xe=[]}function nr(){clearInterval(fo)}var di=ur(function(a,i,o,u){if(i.scroll){var n=(a.touches?a.touches[0]:a).clientX,s=(a.touches?a.touches[0]:a).clientY,t=i.scrollSensitivity,r=i.scrollSpeed,l=Kt(),c=!1,m;vi!==o&&(vi=o,ko(),co=i.scroll,m=i.scrollFn,co===!0&&(co=en(o,!0)));var p=0,h=co;do{var y=h,S=Ne(y),E=S.top,I=S.bottom,w=S.left,C=S.right,U=S.width,P=S.height,B=void 0,D=void 0,H=y.scrollWidth,_=y.scrollHeight,R=te(y),G=y.scrollLeft,X=y.scrollTop;y===l?(B=U<H&&(R.overflowX==="auto"||R.overflowX==="scroll"||R.overflowX==="visible"),D=P<_&&(R.overflowY==="auto"||R.overflowY==="scroll"||R.overflowY==="visible")):(B=U<H&&(R.overflowX==="auto"||R.overflowX==="scroll"),D=P<_&&(R.overflowY==="auto"||R.overflowY==="scroll"));var le=B&&(Math.abs(C-n)<=t&&G+U<H)-(Math.abs(w-n)<=t&&!!G),T=D&&(Math.abs(I-s)<=t&&X+P<_)-(Math.abs(E-s)<=t&&!!X);if(!Xe[p])for(var L=0;L<=p;L++)Xe[L]||(Xe[L]={});(Xe[p].vx!=le||Xe[p].vy!=T||Xe[p].el!==y)&&(Xe[p].el=y,Xe[p].vx=le,Xe[p].vy=T,clearInterval(Xe[p].pid),(le!=0||T!=0)&&(c=!0,Xe[p].pid=setInterval((function(){u&&this.layer===0&&de.active._onTouchMove($o);var ue=Xe[this.layer].vy?Xe[this.layer].vy*r:0,J=Xe[this.layer].vx?Xe[this.layer].vx*r:0;typeof m=="function"&&m.call(de.dragged.parentNode[ut],J,ue,a,$o,Xe[this.layer].el)!=="continue"||cr(Xe[this.layer].el,J,ue)}).bind({layer:p}),24))),p++}while(i.bubbleScroll&&h!==l&&(h=en(h,!1)));pi=c}},30),hr=function(i){var o=i.originalEvent,u=i.putSortable,n=i.dragEl,s=i.activeSortable,t=i.dispatchSortableEvent,r=i.hideGhostForTarget,l=i.unhideGhostForTarget;if(o){var c=u||s;r();var m=o.changedTouches&&o.changedTouches.length?o.changedTouches[0]:o,p=document.elementFromPoint(m.clientX,m.clientY);l(),c&&!c.el.contains(p)&&(t("spill"),this.onSpill({dragEl:n,putSortable:u}))}};function hi(){}hi.prototype={startIndex:null,dragStart:function(i){var o=i.oldDraggableIndex;this.startIndex=o},onSpill:function(i){var o=i.dragEl,u=i.putSortable;this.sortable.captureAnimationState(),u&&u.captureAnimationState();var n=Mn(this.sortable.el,this.startIndex,this.options);n?this.sortable.el.insertBefore(o,n):this.sortable.el.appendChild(o),this.sortable.animateAll(),u&&u.animateAll()},drop:hr};Ct(hi,{pluginName:"revertOnSpill"});function yi(){}yi.prototype={onSpill:function(i){var o=i.dragEl,u=i.putSortable,n=u||this.sortable;n.captureAnimationState(),o.parentNode&&o.parentNode.removeChild(o),n.animateAll()},drop:hr};Ct(yi,{pluginName:"removeOnSpill"});var It;function Hl(){function a(){this.defaults={swapClass:"sortable-swap-highlight"}}return a.prototype={dragStart:function(o){var u=o.dragEl;It=u},dragOverValid:function(o){var u=o.completed,n=o.target,s=o.onMove,t=o.activeSortable,r=o.changed,l=o.cancel;if(t.options.swap){var c=this.sortable.el,m=this.options;if(n&&n!==c){var p=It;s(n)!==!1?(Le(n,m.swapClass,!0),It=n):It=null,p&&p!==It&&Le(p,m.swapClass,!1)}r(),u(!0),l()}},drop:function(o){var u=o.activeSortable,n=o.putSortable,s=o.dragEl,t=n||this.sortable,r=this.options;It&&Le(It,r.swapClass,!1),It&&(r.swap||n&&n.options.swap)&&s!==It&&(t.captureAnimationState(),t!==u&&u.captureAnimationState(),Yl(s,It),t.animateAll(),t!==u&&u.animateAll())},nulling:function(){It=null}},Ct(a,{pluginName:"swap",eventProperties:function(){return{swapItem:It}}})}function Yl(a,i){var o=a.parentNode,u=i.parentNode,n,s;!o||!u||o.isEqualNode(i)||u.isEqualNode(a)||(n=$e(a),s=$e(i),o.isEqualNode(u)&&n<s&&s++,o.insertBefore(i,o.children[n]),u.insertBefore(a,u.children[s]))}var ce=[],ht=[],ro,wt,ao=!1,mt=!1,Rn=!1,Pe,lo,Ko;function Xl(){function a(i){for(var o in this)o.charAt(0)==="_"&&typeof this[o]=="function"&&(this[o]=this[o].bind(this));i.options.supportPointer?he(document,"pointerup",this._deselectMultiDrag):(he(document,"mouseup",this._deselectMultiDrag),he(document,"touchend",this._deselectMultiDrag)),he(document,"keydown",this._checkKeyDown),he(document,"keyup",this._checkKeyUp),this.defaults={selectedClass:"sortable-selected",multiDragKey:null,setData:function(n,s){var t="";ce.length&&wt===i?ce.forEach(function(r,l){t+=(l?", ":"")+r.textContent}):t=s.textContent,n.setData("Text",t)}}}return a.prototype={multiDragKeyDown:!1,isMultiDrag:!1,delayStartGlobal:function(o){var u=o.dragEl;Pe=u},delayEnded:function(){this.isMultiDrag=~ce.indexOf(Pe)},setupClone:function(o){var u=o.sortable,n=o.cancel;if(this.isMultiDrag){for(var s=0;s<ce.length;s++)ht.push(gi(ce[s])),ht[s].sortableIndex=ce[s].sortableIndex,ht[s].draggable=!1,ht[s].style["will-change"]="",Le(ht[s],this.options.selectedClass,!1),ce[s]===Pe&&Le(ht[s],this.options.chosenClass,!1);u._hideClone(),n()}},clone:function(o){var u=o.sortable,n=o.rootEl,s=o.dispatchSortableEvent,t=o.cancel;this.isMultiDrag&&(this.options.removeCloneOnHide||ce.length&&wt===u&&(or(!0,n),s("clone"),t()))},showClone:function(o){var u=o.cloneNowShown,n=o.rootEl,s=o.cancel;this.isMultiDrag&&(or(!1,n),ht.forEach(function(t){te(t,"display","")}),u(),Ko=!1,s())},hideClone:function(o){var u=this;o.sortable;var n=o.cloneNowHidden,s=o.cancel;this.isMultiDrag&&(ht.forEach(function(t){te(t,"display","none"),u.options.removeCloneOnHide&&t.parentNode&&t.parentNode.removeChild(t)}),n(),Ko=!0,s())},dragStartGlobal:function(o){o.sortable,!this.isMultiDrag&&wt&&wt.multiDrag._deselectMultiDrag(),ce.forEach(function(u){u.sortableIndex=$e(u)}),ce=ce.sort(function(u,n){return u.sortableIndex-n.sortableIndex}),Rn=!0},dragStarted:function(o){var u=this,n=o.sortable;if(this.isMultiDrag){if(this.options.sort&&(n.captureAnimationState(),this.options.animation)){ce.forEach(function(t){t!==Pe&&te(t,"position","absolute")});var s=Ne(Pe,!1,!0,!0);ce.forEach(function(t){t!==Pe&&qi(t,s)}),mt=!0,ao=!0}n.animateAll(function(){mt=!1,ao=!1,u.options.animation&&ce.forEach(function(t){ti(t)}),u.options.sort&&Mo()})}},dragOver:function(o){var u=o.target,n=o.completed,s=o.cancel;mt&&~ce.indexOf(u)&&(n(!1),s())},revert:function(o){var u=o.fromSortable,n=o.rootEl,s=o.sortable,t=o.dragRect;ce.length>1&&(ce.forEach(function(r){s.addAnimationState({target:r,rect:mt?Ne(r):t}),ti(r),r.fromRect=t,u.removeAnimationState(r)}),mt=!1,Zl(!this.options.removeCloneOnHide,n))},dragOverCompleted:function(o){var u=o.sortable,n=o.isOwner,s=o.insertion,t=o.activeSortable,r=o.parentEl,l=o.putSortable,c=this.options;if(s){if(n&&t._hideClone(),ao=!1,c.animation&&ce.length>1&&(mt||!n&&!t.options.sort&&!l)){var m=Ne(Pe,!1,!0,!0);ce.forEach(function(h){h!==Pe&&(qi(h,m),r.appendChild(h))}),mt=!0}if(!n)if(mt||Mo(),ce.length>1){var p=Ko;t._showClone(u),t.options.animation&&!Ko&&p&&ht.forEach(function(h){t.addAnimationState({target:h,rect:lo}),h.fromRect=lo,h.thisAnimationDuration=null})}else t._showClone(u)}},dragOverAnimationCapture:function(o){var u=o.dragRect,n=o.isOwner,s=o.activeSortable;if(ce.forEach(function(r){r.thisAnimationDuration=null}),s.options.animation&&!n&&s.multiDrag.isMultiDrag){lo=Ct({},u);var t=gn(Pe,!0);lo.top-=t.f,lo.left-=t.e}},dragOverAnimationComplete:function(){mt&&(mt=!1,Mo())},drop:function(o){var u=o.originalEvent,n=o.rootEl,s=o.parentEl,t=o.sortable,r=o.dispatchSortableEvent,l=o.oldIndex,c=o.putSortable,m=c||this.sortable;if(u){var p=this.options,h=s.children;if(!Rn)if(p.multiDragKey&&!this.multiDragKeyDown&&this._deselectMultiDrag(),Le(Pe,p.selectedClass,!~ce.indexOf(Pe)),~ce.indexOf(Pe))ce.splice(ce.indexOf(Pe),1),ro=null,so({sortable:t,rootEl:n,name:"deselect",targetEl:Pe});else{if(ce.push(Pe),so({sortable:t,rootEl:n,name:"select",targetEl:Pe}),u.shiftKey&&ro&&t.el.contains(ro)){var y=$e(ro),S=$e(Pe);if(~y&&~S&&y!==S){var E,I;for(S>y?(I=y,E=S):(I=S,E=y+1);I<E;I++)~ce.indexOf(h[I])||(Le(h[I],p.selectedClass,!0),ce.push(h[I]),so({sortable:t,rootEl:n,name:"select",targetEl:h[I]}))}}else ro=Pe;wt=m}if(Rn&&this.isMultiDrag){if(mt=!1,(s[ut].options.sort||s!==n)&&ce.length>1){var w=Ne(Pe),C=$e(Pe,":not(."+this.options.selectedClass+")");if(!ao&&p.animation&&(Pe.thisAnimationDuration=null),m.captureAnimationState(),!ao&&(p.animation&&(Pe.fromRect=w,ce.forEach(function(P){if(P.thisAnimationDuration=null,P!==Pe){var B=mt?Ne(P):w;P.fromRect=B,m.addAnimationState({target:P,rect:B})}})),Mo(),ce.forEach(function(P){h[C]?s.insertBefore(P,h[C]):s.appendChild(P),C++}),l===$e(Pe))){var U=!1;ce.forEach(function(P){if(P.sortableIndex!==$e(P)){U=!0;return}}),U&&r("update")}ce.forEach(function(P){ti(P)}),m.animateAll()}wt=m}(n===s||c&&c.lastPutMode!=="clone")&&ht.forEach(function(P){P.parentNode&&P.parentNode.removeChild(P)})}},nullingGlobal:function(){this.isMultiDrag=Rn=!1,ht.length=0},destroyGlobal:function(){this._deselectMultiDrag(),pe(document,"pointerup",this._deselectMultiDrag),pe(document,"mouseup",this._deselectMultiDrag),pe(document,"touchend",this._deselectMultiDrag),pe(document,"keydown",this._checkKeyDown),pe(document,"keyup",this._checkKeyUp)},_deselectMultiDrag:function(o){if(!(typeof Rn<"u"&&Rn)&&wt===this.sortable&&!(o&&Ot(o.target,this.options.draggable,this.sortable.el,!1))&&!(o&&o.button!==0))for(;ce.length;){var u=ce[0];Le(u,this.options.selectedClass,!1),ce.shift(),so({sortable:this.sortable,rootEl:this.sortable.el,name:"deselect",targetEl:u})}},_checkKeyDown:function(o){o.key===this.options.multiDragKey&&(this.multiDragKeyDown=!0)},_checkKeyUp:function(o){o.key===this.options.multiDragKey&&(this.multiDragKeyDown=!1)}},Ct(a,{pluginName:"multiDrag",utils:{select:function(o){var u=o.parentNode[ut];!u||!u.options.multiDrag||~ce.indexOf(o)||(wt&&wt!==u&&(wt.multiDrag._deselectMultiDrag(),wt=u),Le(o,u.options.selectedClass,!0),ce.push(o))},deselect:function(o){var u=o.parentNode[ut],n=ce.indexOf(o);!u||!u.options.multiDrag||!~n||(Le(o,u.options.selectedClass,!1),ce.splice(n,1))}},eventProperties:function(){var o=this,u=[],n=[];return ce.forEach(function(s){u.push({multiDragElement:s,index:s.sortableIndex});var t;mt&&s!==Pe?t=-1:mt?t=$e(s,":not(."+o.options.selectedClass+")"):t=$e(s),n.push({multiDragElement:s,index:t})}),{items:Sl(ce),clones:[].concat(ht),oldIndicies:u,newIndicies:n}},optionListeners:{multiDragKey:function(o){return o=o.toLowerCase(),o==="ctrl"?o="Control":o.length>1&&(o=o.charAt(0).toUpperCase()+o.substr(1)),o}}})}function Zl(a,i){ce.forEach(function(o,u){var n=i.children[o.sortableIndex+(a?Number(u):0)];n?i.insertBefore(o,n):i.appendChild(o)})}function or(a,i){ht.forEach(function(o,u){var n=i.children[o.sortableIndex+(a?Number(u):0)];n?i.insertBefore(o,n):i.appendChild(o)})}function Mo(){ce.forEach(function(a){a!==Pe&&a.parentNode&&a.parentNode.removeChild(a)})}de.mount(new Wl);de.mount(yi,hi);const ql=Object.freeze(Object.defineProperty({__proto__:null,MultiDrag:Xl,Sortable:de,Swap:Hl,default:de},Symbol.toStringTag,{value:"Module"})),_l=el(ql);(function(a,i){(function(u,n){a.exports=n(nl,_l)})(typeof self<"u"?self:ol,function(o,u){return function(n){var s={};function t(r){if(s[r])return s[r].exports;var l=s[r]={i:r,l:!1,exports:{}};return n[r].call(l.exports,l,l.exports,t),l.l=!0,l.exports}return t.m=n,t.c=s,t.d=function(r,l,c){t.o(r,l)||Object.defineProperty(r,l,{enumerable:!0,get:c})},t.r=function(r){typeof Symbol<"u"&&Symbol.toStringTag&&Object.defineProperty(r,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(r,"__esModule",{value:!0})},t.t=function(r,l){if(l&1&&(r=t(r)),l&8||l&4&&typeof r=="object"&&r&&r.__esModule)return r;var c=Object.create(null);if(t.r(c),Object.defineProperty(c,"default",{enumerable:!0,value:r}),l&2&&typeof r!="string")for(var m in r)t.d(c,m,(function(p){return r[p]}).bind(null,m));return c},t.n=function(r){var l=r&&r.__esModule?function(){return r.default}:function(){return r};return t.d(l,"a",l),l},t.o=function(r,l){return Object.prototype.hasOwnProperty.call(r,l)},t.p="",t(t.s="fb15")}({"00ee":function(n,s,t){var r=t("b622"),l=r("toStringTag"),c={};c[l]="z",n.exports=String(c)==="[object z]"},"0366":function(n,s,t){var r=t("1c0b");n.exports=function(l,c,m){if(r(l),c===void 0)return l;switch(m){case 0:return function(){return l.call(c)};case 1:return function(p){return l.call(c,p)};case 2:return function(p,h){return l.call(c,p,h)};case 3:return function(p,h,y){return l.call(c,p,h,y)}}return function(){return l.apply(c,arguments)}}},"057f":function(n,s,t){var r=t("fc6a"),l=t("241c").f,c={}.toString,m=typeof window=="object"&&window&&Object.getOwnPropertyNames?Object.getOwnPropertyNames(window):[],p=function(h){try{return l(h)}catch{return m.slice()}};n.exports.f=function(y){return m&&c.call(y)=="[object Window]"?p(y):l(r(y))}},"06cf":function(n,s,t){var r=t("83ab"),l=t("d1e7"),c=t("5c6c"),m=t("fc6a"),p=t("c04e"),h=t("5135"),y=t("0cfb"),S=Object.getOwnPropertyDescriptor;s.f=r?S:function(I,w){if(I=m(I),w=p(w,!0),y)try{return S(I,w)}catch{}if(h(I,w))return c(!l.f.call(I,w),I[w])}},"0cfb":function(n,s,t){var r=t("83ab"),l=t("d039"),c=t("cc12");n.exports=!r&&!l(function(){return Object.defineProperty(c("div"),"a",{get:function(){return 7}}).a!=7})},"13d5":function(n,s,t){var r=t("23e7"),l=t("d58f").left,c=t("a640"),m=t("ae40"),p=c("reduce"),h=m("reduce",{1:0});r({target:"Array",proto:!0,forced:!p||!h},{reduce:function(S){return l(this,S,arguments.length,arguments.length>1?arguments[1]:void 0)}})},"14c3":function(n,s,t){var r=t("c6b6"),l=t("9263");n.exports=function(c,m){var p=c.exec;if(typeof p=="function"){var h=p.call(c,m);if(typeof h!="object")throw TypeError("RegExp exec method returned something other than an Object or null");return h}if(r(c)!=="RegExp")throw TypeError("RegExp#exec called on incompatible receiver");return l.call(c,m)}},"159b":function(n,s,t){var r=t("da84"),l=t("fdbc"),c=t("17c2"),m=t("9112");for(var p in l){var h=r[p],y=h&&h.prototype;if(y&&y.forEach!==c)try{m(y,"forEach",c)}catch{y.forEach=c}}},"17c2":function(n,s,t){var r=t("b727").forEach,l=t("a640"),c=t("ae40"),m=l("forEach"),p=c("forEach");n.exports=!m||!p?function(y){return r(this,y,arguments.length>1?arguments[1]:void 0)}:[].forEach},"1be4":function(n,s,t){var r=t("d066");n.exports=r("document","documentElement")},"1c0b":function(n,s){n.exports=function(t){if(typeof t!="function")throw TypeError(String(t)+" is not a function");return t}},"1c7e":function(n,s,t){var r=t("b622"),l=r("iterator"),c=!1;try{var m=0,p={next:function(){return{done:!!m++}},return:function(){c=!0}};p[l]=function(){return this},Array.from(p,function(){throw 2})}catch{}n.exports=function(h,y){if(!y&&!c)return!1;var S=!1;try{var E={};E[l]=function(){return{next:function(){return{done:S=!0}}}},h(E)}catch{}return S}},"1d80":function(n,s){n.exports=function(t){if(t==null)throw TypeError("Can't call method on "+t);return t}},"1dde":function(n,s,t){var r=t("d039"),l=t("b622"),c=t("2d00"),m=l("species");n.exports=function(p){return c>=51||!r(function(){var h=[],y=h.constructor={};return y[m]=function(){return{foo:1}},h[p](Boolean).foo!==1})}},"23cb":function(n,s,t){var r=t("a691"),l=Math.max,c=Math.min;n.exports=function(m,p){var h=r(m);return h<0?l(h+p,0):c(h,p)}},"23e7":function(n,s,t){var r=t("da84"),l=t("06cf").f,c=t("9112"),m=t("6eeb"),p=t("ce4e"),h=t("e893"),y=t("94ca");n.exports=function(S,E){var I=S.target,w=S.global,C=S.stat,U,P,B,D,H,_;if(w?P=r:C?P=r[I]||p(I,{}):P=(r[I]||{}).prototype,P)for(B in E){if(H=E[B],S.noTargetGet?(_=l(P,B),D=_&&_.value):D=P[B],U=y(w?B:I+(C?".":"#")+B,S.forced),!U&&D!==void 0){if(typeof H==typeof D)continue;h(H,D)}(S.sham||D&&D.sham)&&c(H,"sham",!0),m(P,B,H,S)}}},"241c":function(n,s,t){var r=t("ca84"),l=t("7839"),c=l.concat("length","prototype");s.f=Object.getOwnPropertyNames||function(p){return r(p,c)}},"25f0":function(n,s,t){var r=t("6eeb"),l=t("825a"),c=t("d039"),m=t("ad6d"),p="toString",h=RegExp.prototype,y=h[p],S=c(function(){return y.call({source:"a",flags:"b"})!="/a/b"}),E=y.name!=p;(S||E)&&r(RegExp.prototype,p,function(){var w=l(this),C=String(w.source),U=w.flags,P=String(U===void 0&&w instanceof RegExp&&!("flags"in h)?m.call(w):U);return"/"+C+"/"+P},{unsafe:!0})},"2ca0":function(n,s,t){var r=t("23e7"),l=t("06cf").f,c=t("50c4"),m=t("5a34"),p=t("1d80"),h=t("ab13"),y=t("c430"),S="".startsWith,E=Math.min,I=h("startsWith"),w=!y&&!I&&!!function(){var C=l(String.prototype,"startsWith");return C&&!C.writable}();r({target:"String",proto:!0,forced:!w&&!I},{startsWith:function(U){var P=String(p(this));m(U);var B=c(E(arguments.length>1?arguments[1]:void 0,P.length)),D=String(U);return S?S.call(P,D,B):P.slice(B,B+D.length)===D}})},"2d00":function(n,s,t){var r=t("da84"),l=t("342f"),c=r.process,m=c&&c.versions,p=m&&m.v8,h,y;p?(h=p.split("."),y=h[0]+h[1]):l&&(h=l.match(/Edge\/(\d+)/),(!h||h[1]>=74)&&(h=l.match(/Chrome\/(\d+)/),h&&(y=h[1]))),n.exports=y&&+y},"342f":function(n,s,t){var r=t("d066");n.exports=r("navigator","userAgent")||""},"35a1":function(n,s,t){var r=t("f5df"),l=t("3f8c"),c=t("b622"),m=c("iterator");n.exports=function(p){if(p!=null)return p[m]||p["@@iterator"]||l[r(p)]}},"37e8":function(n,s,t){var r=t("83ab"),l=t("9bf2"),c=t("825a"),m=t("df75");n.exports=r?Object.defineProperties:function(h,y){c(h);for(var S=m(y),E=S.length,I=0,w;E>I;)l.f(h,w=S[I++],y[w]);return h}},"3bbe":function(n,s,t){var r=t("861d");n.exports=function(l){if(!r(l)&&l!==null)throw TypeError("Can't set "+String(l)+" as a prototype");return l}},"3ca3":function(n,s,t){var r=t("6547").charAt,l=t("69f3"),c=t("7dd0"),m="String Iterator",p=l.set,h=l.getterFor(m);c(String,"String",function(y){p(this,{type:m,string:String(y),index:0})},function(){var S=h(this),E=S.string,I=S.index,w;return I>=E.length?{value:void 0,done:!0}:(w=r(E,I),S.index+=w.length,{value:w,done:!1})})},"3f8c":function(n,s){n.exports={}},4160:function(n,s,t){var r=t("23e7"),l=t("17c2");r({target:"Array",proto:!0,forced:[].forEach!=l},{forEach:l})},"428f":function(n,s,t){var r=t("da84");n.exports=r},"44ad":function(n,s,t){var r=t("d039"),l=t("c6b6"),c="".split;n.exports=r(function(){return!Object("z").propertyIsEnumerable(0)})?function(m){return l(m)=="String"?c.call(m,""):Object(m)}:Object},"44d2":function(n,s,t){var r=t("b622"),l=t("7c73"),c=t("9bf2"),m=r("unscopables"),p=Array.prototype;p[m]==null&&c.f(p,m,{configurable:!0,value:l(null)}),n.exports=function(h){p[m][h]=!0}},"44e7":function(n,s,t){var r=t("861d"),l=t("c6b6"),c=t("b622"),m=c("match");n.exports=function(p){var h;return r(p)&&((h=p[m])!==void 0?!!h:l(p)=="RegExp")}},4930:function(n,s,t){var r=t("d039");n.exports=!!Object.getOwnPropertySymbols&&!r(function(){return!String(Symbol())})},"4d64":function(n,s,t){var r=t("fc6a"),l=t("50c4"),c=t("23cb"),m=function(p){return function(h,y,S){var E=r(h),I=l(E.length),w=c(S,I),C;if(p&&y!=y){for(;I>w;)if(C=E[w++],C!=C)return!0}else for(;I>w;w++)if((p||w in E)&&E[w]===y)return p||w||0;return!p&&-1}};n.exports={includes:m(!0),indexOf:m(!1)}},"4de4":function(n,s,t){var r=t("23e7"),l=t("b727").filter,c=t("1dde"),m=t("ae40"),p=c("filter"),h=m("filter");r({target:"Array",proto:!0,forced:!p||!h},{filter:function(S){return l(this,S,arguments.length>1?arguments[1]:void 0)}})},"4df4":function(n,s,t){var r=t("0366"),l=t("7b0b"),c=t("9bdd"),m=t("e95a"),p=t("50c4"),h=t("8418"),y=t("35a1");n.exports=function(E){var I=l(E),w=typeof this=="function"?this:Array,C=arguments.length,U=C>1?arguments[1]:void 0,P=U!==void 0,B=y(I),D=0,H,_,R,G,X,le;if(P&&(U=r(U,C>2?arguments[2]:void 0,2)),B!=null&&!(w==Array&&m(B)))for(G=B.call(I),X=G.next,_=new w;!(R=X.call(G)).done;D++)le=P?c(G,U,[R.value,D],!0):R.value,h(_,D,le);else for(H=p(I.length),_=new w(H);H>D;D++)le=P?U(I[D],D):I[D],h(_,D,le);return _.length=D,_}},"4fad":function(n,s,t){var r=t("23e7"),l=t("6f53").entries;r({target:"Object",stat:!0},{entries:function(m){return l(m)}})},"50c4":function(n,s,t){var r=t("a691"),l=Math.min;n.exports=function(c){return c>0?l(r(c),9007199254740991):0}},5135:function(n,s){var t={}.hasOwnProperty;n.exports=function(r,l){return t.call(r,l)}},5319:function(n,s,t){var r=t("d784"),l=t("825a"),c=t("7b0b"),m=t("50c4"),p=t("a691"),h=t("1d80"),y=t("8aa5"),S=t("14c3"),E=Math.max,I=Math.min,w=Math.floor,C=/\$([$&'`]|\d\d?|<[^>]*>)/g,U=/\$([$&'`]|\d\d?)/g,P=function(B){return B===void 0?B:String(B)};r("replace",2,function(B,D,H,_){var R=_.REGEXP_REPLACE_SUBSTITUTES_UNDEFINED_CAPTURE,G=_.REPLACE_KEEPS_$0,X=R?"$":"$0";return[function(L,ue){var J=h(this),oe=L==null?void 0:L[B];return oe!==void 0?oe.call(L,J,ue):D.call(String(J),L,ue)},function(T,L){if(!R&&G||typeof L=="string"&&L.indexOf(X)===-1){var ue=H(D,T,this,L);if(ue.done)return ue.value}var J=l(T),oe=String(this),ye=typeof L=="function";ye||(L=String(L));var De=J.global;if(De){var Ze=J.unicode;J.lastIndex=0}for(var xe=[];;){var Ue=S(J,oe);if(Ue===null||(xe.push(Ue),!De))break;var Ve=String(Ue[0]);Ve===""&&(J.lastIndex=y(oe,m(J.lastIndex),Ze))}for(var Ke="",Qe=0,Te=0;Te<xe.length;Te++){Ue=xe[Te];for(var Re=String(Ue[0]),Ye=E(I(p(Ue.index),oe.length),0),we=[],Tt=1;Tt<Ue.length;Tt++)we.push(P(Ue[Tt]));var Bt=Ue.groups;if(ye){var Dt=[Re].concat(we,Ye,oe);Bt!==void 0&&Dt.push(Bt);var qe=String(L.apply(void 0,Dt))}else qe=le(Re,oe,Ye,we,Bt,L);Ye>=Qe&&(Ke+=oe.slice(Qe,Ye)+qe,Qe=Ye+Re.length)}return Ke+oe.slice(Qe)}];function le(T,L,ue,J,oe,ye){var De=ue+T.length,Ze=J.length,xe=U;return oe!==void 0&&(oe=c(oe),xe=C),D.call(ye,xe,function(Ue,Ve){var Ke;switch(Ve.charAt(0)){case"$":return"$";case"&":return T;case"`":return L.slice(0,ue);case"'":return L.slice(De);case"<":Ke=oe[Ve.slice(1,-1)];break;default:var Qe=+Ve;if(Qe===0)return Ue;if(Qe>Ze){var Te=w(Qe/10);return Te===0?Ue:Te<=Ze?J[Te-1]===void 0?Ve.charAt(1):J[Te-1]+Ve.charAt(1):Ue}Ke=J[Qe-1]}return Ke===void 0?"":Ke})}})},5692:function(n,s,t){var r=t("c430"),l=t("c6cd");(n.exports=function(c,m){return l[c]||(l[c]=m!==void 0?m:{})})("versions",[]).push({version:"3.6.5",mode:r?"pure":"global",copyright:"© 2020 Denis Pushkarev (zloirock.ru)"})},"56ef":function(n,s,t){var r=t("d066"),l=t("241c"),c=t("7418"),m=t("825a");n.exports=r("Reflect","ownKeys")||function(h){var y=l.f(m(h)),S=c.f;return S?y.concat(S(h)):y}},"5a34":function(n,s,t){var r=t("44e7");n.exports=function(l){if(r(l))throw TypeError("The method doesn't accept regular expressions");return l}},"5c6c":function(n,s){n.exports=function(t,r){return{enumerable:!(t&1),configurable:!(t&2),writable:!(t&4),value:r}}},"5db7":function(n,s,t){var r=t("23e7"),l=t("a2bf"),c=t("7b0b"),m=t("50c4"),p=t("1c0b"),h=t("65f0");r({target:"Array",proto:!0},{flatMap:function(S){var E=c(this),I=m(E.length),w;return p(S),w=h(E,0),w.length=l(w,E,E,I,0,1,S,arguments.length>1?arguments[1]:void 0),w}})},6547:function(n,s,t){var r=t("a691"),l=t("1d80"),c=function(m){return function(p,h){var y=String(l(p)),S=r(h),E=y.length,I,w;return S<0||S>=E?m?"":void 0:(I=y.charCodeAt(S),I<55296||I>56319||S+1===E||(w=y.charCodeAt(S+1))<56320||w>57343?m?y.charAt(S):I:m?y.slice(S,S+2):(I-55296<<10)+(w-56320)+65536)}};n.exports={codeAt:c(!1),charAt:c(!0)}},"65f0":function(n,s,t){var r=t("861d"),l=t("e8b5"),c=t("b622"),m=c("species");n.exports=function(p,h){var y;return l(p)&&(y=p.constructor,typeof y=="function"&&(y===Array||l(y.prototype))?y=void 0:r(y)&&(y=y[m],y===null&&(y=void 0))),new(y===void 0?Array:y)(h===0?0:h)}},"69f3":function(n,s,t){var r=t("7f9a"),l=t("da84"),c=t("861d"),m=t("9112"),p=t("5135"),h=t("f772"),y=t("d012"),S=l.WeakMap,E,I,w,C=function(R){return w(R)?I(R):E(R,{})},U=function(R){return function(G){var X;if(!c(G)||(X=I(G)).type!==R)throw TypeError("Incompatible receiver, "+R+" required");return X}};if(r){var P=new S,B=P.get,D=P.has,H=P.set;E=function(R,G){return H.call(P,R,G),G},I=function(R){return B.call(P,R)||{}},w=function(R){return D.call(P,R)}}else{var _=h("state");y[_]=!0,E=function(R,G){return m(R,_,G),G},I=function(R){return p(R,_)?R[_]:{}},w=function(R){return p(R,_)}}n.exports={set:E,get:I,has:w,enforce:C,getterFor:U}},"6eeb":function(n,s,t){var r=t("da84"),l=t("9112"),c=t("5135"),m=t("ce4e"),p=t("8925"),h=t("69f3"),y=h.get,S=h.enforce,E=String(String).split("String");(n.exports=function(I,w,C,U){var P=U?!!U.unsafe:!1,B=U?!!U.enumerable:!1,D=U?!!U.noTargetGet:!1;if(typeof C=="function"&&(typeof w=="string"&&!c(C,"name")&&l(C,"name",w),S(C).source=E.join(typeof w=="string"?w:"")),I===r){B?I[w]=C:m(w,C);return}else P?!D&&I[w]&&(B=!0):delete I[w];B?I[w]=C:l(I,w,C)})(Function.prototype,"toString",function(){return typeof this=="function"&&y(this).source||p(this)})},"6f53":function(n,s,t){var r=t("83ab"),l=t("df75"),c=t("fc6a"),m=t("d1e7").f,p=function(h){return function(y){for(var S=c(y),E=l(S),I=E.length,w=0,C=[],U;I>w;)U=E[w++],(!r||m.call(S,U))&&C.push(h?[U,S[U]]:S[U]);return C}};n.exports={entries:p(!0),values:p(!1)}},"73d9":function(n,s,t){var r=t("44d2");r("flatMap")},7418:function(n,s){s.f=Object.getOwnPropertySymbols},"746f":function(n,s,t){var r=t("428f"),l=t("5135"),c=t("e538"),m=t("9bf2").f;n.exports=function(p){var h=r.Symbol||(r.Symbol={});l(h,p)||m(h,p,{value:c.f(p)})}},7839:function(n,s){n.exports=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"]},"7b0b":function(n,s,t){var r=t("1d80");n.exports=function(l){return Object(r(l))}},"7c73":function(n,s,t){var r=t("825a"),l=t("37e8"),c=t("7839"),m=t("d012"),p=t("1be4"),h=t("cc12"),y=t("f772"),S=">",E="<",I="prototype",w="script",C=y("IE_PROTO"),U=function(){},P=function(R){return E+w+S+R+E+"/"+w+S},B=function(R){R.write(P("")),R.close();var G=R.parentWindow.Object;return R=null,G},D=function(){var R=h("iframe"),G="java"+w+":",X;return R.style.display="none",p.appendChild(R),R.src=String(G),X=R.contentWindow.document,X.open(),X.write(P("document.F=Object")),X.close(),X.F},H,_=function(){try{H=document.domain&&new ActiveXObject("htmlfile")}catch{}_=H?B(H):D();for(var R=c.length;R--;)delete _[I][c[R]];return _()};m[C]=!0,n.exports=Object.create||function(G,X){var le;return G!==null?(U[I]=r(G),le=new U,U[I]=null,le[C]=G):le=_(),X===void 0?le:l(le,X)}},"7dd0":function(n,s,t){var r=t("23e7"),l=t("9ed3"),c=t("e163"),m=t("d2bb"),p=t("d44e"),h=t("9112"),y=t("6eeb"),S=t("b622"),E=t("c430"),I=t("3f8c"),w=t("ae93"),C=w.IteratorPrototype,U=w.BUGGY_SAFARI_ITERATORS,P=S("iterator"),B="keys",D="values",H="entries",_=function(){return this};n.exports=function(R,G,X,le,T,L,ue){l(X,G,le);var J=function(Te){if(Te===T&&xe)return xe;if(!U&&Te in De)return De[Te];switch(Te){case B:return function(){return new X(this,Te)};case D:return function(){return new X(this,Te)};case H:return function(){return new X(this,Te)}}return function(){return new X(this)}},oe=G+" Iterator",ye=!1,De=R.prototype,Ze=De[P]||De["@@iterator"]||T&&De[T],xe=!U&&Ze||J(T),Ue=G=="Array"&&De.entries||Ze,Ve,Ke,Qe;if(Ue&&(Ve=c(Ue.call(new R)),C!==Object.prototype&&Ve.next&&(!E&&c(Ve)!==C&&(m?m(Ve,C):typeof Ve[P]!="function"&&h(Ve,P,_)),p(Ve,oe,!0,!0),E&&(I[oe]=_))),T==D&&Ze&&Ze.name!==D&&(ye=!0,xe=function(){return Ze.call(this)}),(!E||ue)&&De[P]!==xe&&h(De,P,xe),I[G]=xe,T)if(Ke={values:J(D),keys:L?xe:J(B),entries:J(H)},ue)for(Qe in Ke)(U||ye||!(Qe in De))&&y(De,Qe,Ke[Qe]);else r({target:G,proto:!0,forced:U||ye},Ke);return Ke}},"7f9a":function(n,s,t){var r=t("da84"),l=t("8925"),c=r.WeakMap;n.exports=typeof c=="function"&&/native code/.test(l(c))},"825a":function(n,s,t){var r=t("861d");n.exports=function(l){if(!r(l))throw TypeError(String(l)+" is not an object");return l}},"83ab":function(n,s,t){var r=t("d039");n.exports=!r(function(){return Object.defineProperty({},1,{get:function(){return 7}})[1]!=7})},8418:function(n,s,t){var r=t("c04e"),l=t("9bf2"),c=t("5c6c");n.exports=function(m,p,h){var y=r(p);y in m?l.f(m,y,c(0,h)):m[y]=h}},"861d":function(n,s){n.exports=function(t){return typeof t=="object"?t!==null:typeof t=="function"}},8875:function(n,s,t){var r,l,c;(function(m,p){l=[],r=p,c=typeof r=="function"?r.apply(s,l):r,c!==void 0&&(n.exports=c)})(typeof self<"u"?self:this,function(){function m(){var p=Object.getOwnPropertyDescriptor(document,"currentScript");if(!p&&"currentScript"in document&&document.currentScript||p&&p.get!==m&&document.currentScript)return document.currentScript;try{throw new Error}catch(H){var h=/.*at [^(]*\((.*):(.+):(.+)\)$/ig,y=/@([^@]*):(\d+):(\d+)\s*$/ig,S=h.exec(H.stack)||y.exec(H.stack),E=S&&S[1]||!1,I=S&&S[2]||!1,w=document.location.href.replace(document.location.hash,""),C,U,P,B=document.getElementsByTagName("script");E===w&&(C=document.documentElement.outerHTML,U=new RegExp("(?:[^\\n]+?\\n){0,"+(I-2)+"}[^<]*<script>([\\d\\D]*?)<\\/script>[\\d\\D]*","i"),P=C.replace(U,"$1").trim());for(var D=0;D<B.length;D++)if(B[D].readyState==="interactive"||B[D].src===E||E===w&&B[D].innerHTML&&B[D].innerHTML.trim()===P)return B[D];return null}}return m})},8925:function(n,s,t){var r=t("c6cd"),l=Function.toString;typeof r.inspectSource!="function"&&(r.inspectSource=function(c){return l.call(c)}),n.exports=r.inspectSource},"8aa5":function(n,s,t){var r=t("6547").charAt;n.exports=function(l,c,m){return c+(m?r(l,c).length:1)}},"8bbf":function(n,s){n.exports=o},"90e3":function(n,s){var t=0,r=Math.random();n.exports=function(l){return"Symbol("+String(l===void 0?"":l)+")_"+(++t+r).toString(36)}},9112:function(n,s,t){var r=t("83ab"),l=t("9bf2"),c=t("5c6c");n.exports=r?function(m,p,h){return l.f(m,p,c(1,h))}:function(m,p,h){return m[p]=h,m}},9263:function(n,s,t){var r=t("ad6d"),l=t("9f7f"),c=RegExp.prototype.exec,m=String.prototype.replace,p=c,h=function(){var I=/a/,w=/b*/g;return c.call(I,"a"),c.call(w,"a"),I.lastIndex!==0||w.lastIndex!==0}(),y=l.UNSUPPORTED_Y||l.BROKEN_CARET,S=/()??/.exec("")[1]!==void 0,E=h||S||y;E&&(p=function(w){var C=this,U,P,B,D,H=y&&C.sticky,_=r.call(C),R=C.source,G=0,X=w;return H&&(_=_.replace("y",""),_.indexOf("g")===-1&&(_+="g"),X=String(w).slice(C.lastIndex),C.lastIndex>0&&(!C.multiline||C.multiline&&w[C.lastIndex-1]!==`
  8. `)&&(R="(?: "+R+")",X=" "+X,G++),P=new RegExp("^(?:"+R+")",_)),S&&(P=new RegExp("^"+R+"$(?!\\s)",_)),h&&(U=C.lastIndex),B=c.call(H?P:C,X),H?B?(B.input=B.input.slice(G),B[0]=B[0].slice(G),B.index=C.lastIndex,C.lastIndex+=B[0].length):C.lastIndex=0:h&&B&&(C.lastIndex=C.global?B.index+B[0].length:U),S&&B&&B.length>1&&m.call(B[0],P,function(){for(D=1;D<arguments.length-2;D++)arguments[D]===void 0&&(B[D]=void 0)}),B}),n.exports=p},"94ca":function(n,s,t){var r=t("d039"),l=/#|\.prototype\./,c=function(S,E){var I=p[m(S)];return I==y?!0:I==h?!1:typeof E=="function"?r(E):!!E},m=c.normalize=function(S){return String(S).replace(l,".").toLowerCase()},p=c.data={},h=c.NATIVE="N",y=c.POLYFILL="P";n.exports=c},"99af":function(n,s,t){var r=t("23e7"),l=t("d039"),c=t("e8b5"),m=t("861d"),p=t("7b0b"),h=t("50c4"),y=t("8418"),S=t("65f0"),E=t("1dde"),I=t("b622"),w=t("2d00"),C=I("isConcatSpreadable"),U=9007199254740991,P="Maximum allowed index exceeded",B=w>=51||!l(function(){var R=[];return R[C]=!1,R.concat()[0]!==R}),D=E("concat"),H=function(R){if(!m(R))return!1;var G=R[C];return G!==void 0?!!G:c(R)},_=!B||!D;r({target:"Array",proto:!0,forced:_},{concat:function(G){var X=p(this),le=S(X,0),T=0,L,ue,J,oe,ye;for(L=-1,J=arguments.length;L<J;L++)if(ye=L===-1?X:arguments[L],H(ye)){if(oe=h(ye.length),T+oe>U)throw TypeError(P);for(ue=0;ue<oe;ue++,T++)ue in ye&&y(le,T,ye[ue])}else{if(T>=U)throw TypeError(P);y(le,T++,ye)}return le.length=T,le}})},"9bdd":function(n,s,t){var r=t("825a");n.exports=function(l,c,m,p){try{return p?c(r(m)[0],m[1]):c(m)}catch(y){var h=l.return;throw h!==void 0&&r(h.call(l)),y}}},"9bf2":function(n,s,t){var r=t("83ab"),l=t("0cfb"),c=t("825a"),m=t("c04e"),p=Object.defineProperty;s.f=r?p:function(y,S,E){if(c(y),S=m(S,!0),c(E),l)try{return p(y,S,E)}catch{}if("get"in E||"set"in E)throw TypeError("Accessors not supported");return"value"in E&&(y[S]=E.value),y}},"9ed3":function(n,s,t){var r=t("ae93").IteratorPrototype,l=t("7c73"),c=t("5c6c"),m=t("d44e"),p=t("3f8c"),h=function(){return this};n.exports=function(y,S,E){var I=S+" Iterator";return y.prototype=l(r,{next:c(1,E)}),m(y,I,!1,!0),p[I]=h,y}},"9f7f":function(n,s,t){var r=t("d039");function l(c,m){return RegExp(c,m)}s.UNSUPPORTED_Y=r(function(){var c=l("a","y");return c.lastIndex=2,c.exec("abcd")!=null}),s.BROKEN_CARET=r(function(){var c=l("^r","gy");return c.lastIndex=2,c.exec("str")!=null})},a2bf:function(n,s,t){var r=t("e8b5"),l=t("50c4"),c=t("0366"),m=function(p,h,y,S,E,I,w,C){for(var U=E,P=0,B=w?c(w,C,3):!1,D;P<S;){if(P in y){if(D=B?B(y[P],P,h):y[P],I>0&&r(D))U=m(p,h,D,l(D.length),U,I-1)-1;else{if(U>=9007199254740991)throw TypeError("Exceed the acceptable array length");p[U]=D}U++}P++}return U};n.exports=m},a352:function(n,s){n.exports=u},a434:function(n,s,t){var r=t("23e7"),l=t("23cb"),c=t("a691"),m=t("50c4"),p=t("7b0b"),h=t("65f0"),y=t("8418"),S=t("1dde"),E=t("ae40"),I=S("splice"),w=E("splice",{ACCESSORS:!0,0:0,1:2}),C=Math.max,U=Math.min,P=9007199254740991,B="Maximum allowed length exceeded";r({target:"Array",proto:!0,forced:!I||!w},{splice:function(H,_){var R=p(this),G=m(R.length),X=l(H,G),le=arguments.length,T,L,ue,J,oe,ye;if(le===0?T=L=0:le===1?(T=0,L=G-X):(T=le-2,L=U(C(c(_),0),G-X)),G+T-L>P)throw TypeError(B);for(ue=h(R,L),J=0;J<L;J++)oe=X+J,oe in R&&y(ue,J,R[oe]);if(ue.length=L,T<L){for(J=X;J<G-L;J++)oe=J+L,ye=J+T,oe in R?R[ye]=R[oe]:delete R[ye];for(J=G;J>G-L+T;J--)delete R[J-1]}else if(T>L)for(J=G-L;J>X;J--)oe=J+L-1,ye=J+T-1,oe in R?R[ye]=R[oe]:delete R[ye];for(J=0;J<T;J++)R[J+X]=arguments[J+2];return R.length=G-L+T,ue}})},a4d3:function(n,s,t){var r=t("23e7"),l=t("da84"),c=t("d066"),m=t("c430"),p=t("83ab"),h=t("4930"),y=t("fdbf"),S=t("d039"),E=t("5135"),I=t("e8b5"),w=t("861d"),C=t("825a"),U=t("7b0b"),P=t("fc6a"),B=t("c04e"),D=t("5c6c"),H=t("7c73"),_=t("df75"),R=t("241c"),G=t("057f"),X=t("7418"),le=t("06cf"),T=t("9bf2"),L=t("d1e7"),ue=t("9112"),J=t("6eeb"),oe=t("5692"),ye=t("f772"),De=t("d012"),Ze=t("90e3"),xe=t("b622"),Ue=t("e538"),Ve=t("746f"),Ke=t("d44e"),Qe=t("69f3"),Te=t("b727").forEach,Re=ye("hidden"),Ye="Symbol",we="prototype",Tt=xe("toPrimitive"),Bt=Qe.set,Dt=Qe.getterFor(Ye),qe=Object[we],_e=l.Symbol,Nt=c("JSON","stringify"),bt=le.f,St=T.f,hn=G.f,Bn=L.f,gt=oe("symbols"),Pt=oe("op-symbols"),Gt=oe("string-to-symbol-registry"),tn=oe("symbol-to-string-registry"),nn=oe("wks"),on=l.QObject,$t=!on||!on[we]||!on[we].findChild,rn=p&&S(function(){return H(St({},"a",{get:function(){return St(this,"a",{value:7}).a}})).a!=7})?function(se,ee,ie){var me=bt(qe,ee);me&&delete qe[ee],St(se,ee,ie),me&&se!==qe&&St(qe,ee,me)}:St,jt=function(se,ee){var ie=gt[se]=H(_e[we]);return Bt(ie,{type:Ye,tag:se,description:ee}),p||(ie.description=ee),ie},O=y?function(se){return typeof se=="symbol"}:function(se){return Object(se)instanceof _e},A=function(ee,ie,me){ee===qe&&A(Pt,ie,me),C(ee);var ge=B(ie,!0);return C(me),E(gt,ge)?(me.enumerable?(E(ee,Re)&&ee[Re][ge]&&(ee[Re][ge]=!1),me=H(me,{enumerable:D(0,!1)})):(E(ee,Re)||St(ee,Re,D(1,{})),ee[Re][ge]=!0),rn(ee,ge,me)):St(ee,ge,me)},V=function(ee,ie){C(ee);var me=P(ie),ge=_(me).concat(Se(me));return Te(ge,function(it){(!p||q.call(me,it))&&A(ee,it,me[it])}),ee},F=function(ee,ie){return ie===void 0?H(ee):V(H(ee),ie)},q=function(ee){var ie=B(ee,!0),me=Bn.call(this,ie);return this===qe&&E(gt,ie)&&!E(Pt,ie)?!1:me||!E(this,ie)||!E(gt,ie)||E(this,Re)&&this[Re][ie]?me:!0},Z=function(ee,ie){var me=P(ee),ge=B(ie,!0);if(!(me===qe&&E(gt,ge)&&!E(Pt,ge))){var it=bt(me,ge);return it&&E(gt,ge)&&!(E(me,Re)&&me[Re][ge])&&(it.enumerable=!0),it}},fe=function(ee){var ie=hn(P(ee)),me=[];return Te(ie,function(ge){!E(gt,ge)&&!E(De,ge)&&me.push(ge)}),me},Se=function(ee){var ie=ee===qe,me=hn(ie?Pt:P(ee)),ge=[];return Te(me,function(it){E(gt,it)&&(!ie||E(qe,it))&&ge.push(gt[it])}),ge};if(h||(_e=function(){if(this instanceof _e)throw TypeError("Symbol is not a constructor");var ee=!arguments.length||arguments[0]===void 0?void 0:String(arguments[0]),ie=Ze(ee),me=function(ge){this===qe&&me.call(Pt,ge),E(this,Re)&&E(this[Re],ie)&&(this[Re][ie]=!1),rn(this,ie,D(1,ge))};return p&&$t&&rn(qe,ie,{configurable:!0,set:me}),jt(ie,ee)},J(_e[we],"toString",function(){return Dt(this).tag}),J(_e,"withoutSetter",function(se){return jt(Ze(se),se)}),L.f=q,T.f=A,le.f=Z,R.f=G.f=fe,X.f=Se,Ue.f=function(se){return jt(xe(se),se)},p&&(St(_e[we],"description",{configurable:!0,get:function(){return Dt(this).description}}),m||J(qe,"propertyIsEnumerable",q,{unsafe:!0}))),r({global:!0,wrap:!0,forced:!h,sham:!h},{Symbol:_e}),Te(_(nn),function(se){Ve(se)}),r({target:Ye,stat:!0,forced:!h},{for:function(se){var ee=String(se);if(E(Gt,ee))return Gt[ee];var ie=_e(ee);return Gt[ee]=ie,tn[ie]=ee,ie},keyFor:function(ee){if(!O(ee))throw TypeError(ee+" is not a symbol");if(E(tn,ee))return tn[ee]},useSetter:function(){$t=!0},useSimple:function(){$t=!1}}),r({target:"Object",stat:!0,forced:!h,sham:!p},{create:F,defineProperty:A,defineProperties:V,getOwnPropertyDescriptor:Z}),r({target:"Object",stat:!0,forced:!h},{getOwnPropertyNames:fe,getOwnPropertySymbols:Se}),r({target:"Object",stat:!0,forced:S(function(){X.f(1)})},{getOwnPropertySymbols:function(ee){return X.f(U(ee))}}),Nt){var je=!h||S(function(){var se=_e();return Nt([se])!="[null]"||Nt({a:se})!="{}"||Nt(Object(se))!="{}"});r({target:"JSON",stat:!0,forced:je},{stringify:function(ee,ie,me){for(var ge=[ee],it=1,Nn;arguments.length>it;)ge.push(arguments[it++]);if(Nn=ie,!(!w(ie)&&ee===void 0||O(ee)))return I(ie)||(ie=function(Wo,Vt){if(typeof Nn=="function"&&(Vt=Nn.call(this,Wo,Vt)),!O(Vt))return Vt}),ge[1]=ie,Nt.apply(null,ge)}})}_e[we][Tt]||ue(_e[we],Tt,_e[we].valueOf),Ke(_e,Ye),De[Re]=!0},a630:function(n,s,t){var r=t("23e7"),l=t("4df4"),c=t("1c7e"),m=!c(function(p){Array.from(p)});r({target:"Array",stat:!0,forced:m},{from:l})},a640:function(n,s,t){var r=t("d039");n.exports=function(l,c){var m=[][l];return!!m&&r(function(){m.call(null,c||function(){throw 1},1)})}},a691:function(n,s){var t=Math.ceil,r=Math.floor;n.exports=function(l){return isNaN(l=+l)?0:(l>0?r:t)(l)}},ab13:function(n,s,t){var r=t("b622"),l=r("match");n.exports=function(c){var m=/./;try{"/./"[c](m)}catch{try{return m[l]=!1,"/./"[c](m)}catch{}}return!1}},ac1f:function(n,s,t){var r=t("23e7"),l=t("9263");r({target:"RegExp",proto:!0,forced:/./.exec!==l},{exec:l})},ad6d:function(n,s,t){var r=t("825a");n.exports=function(){var l=r(this),c="";return l.global&&(c+="g"),l.ignoreCase&&(c+="i"),l.multiline&&(c+="m"),l.dotAll&&(c+="s"),l.unicode&&(c+="u"),l.sticky&&(c+="y"),c}},ae40:function(n,s,t){var r=t("83ab"),l=t("d039"),c=t("5135"),m=Object.defineProperty,p={},h=function(y){throw y};n.exports=function(y,S){if(c(p,y))return p[y];S||(S={});var E=[][y],I=c(S,"ACCESSORS")?S.ACCESSORS:!1,w=c(S,0)?S[0]:h,C=c(S,1)?S[1]:void 0;return p[y]=!!E&&!l(function(){if(I&&!r)return!0;var U={length:-1};I?m(U,1,{enumerable:!0,get:h}):U[1]=1,E.call(U,w,C)})}},ae93:function(n,s,t){var r=t("e163"),l=t("9112"),c=t("5135"),m=t("b622"),p=t("c430"),h=m("iterator"),y=!1,S=function(){return this},E,I,w;[].keys&&(w=[].keys(),"next"in w?(I=r(r(w)),I!==Object.prototype&&(E=I)):y=!0),E==null&&(E={}),!p&&!c(E,h)&&l(E,h,S),n.exports={IteratorPrototype:E,BUGGY_SAFARI_ITERATORS:y}},b041:function(n,s,t){var r=t("00ee"),l=t("f5df");n.exports=r?{}.toString:function(){return"[object "+l(this)+"]"}},b0c0:function(n,s,t){var r=t("83ab"),l=t("9bf2").f,c=Function.prototype,m=c.toString,p=/^\s*function ([^ (]*)/,h="name";r&&!(h in c)&&l(c,h,{configurable:!0,get:function(){try{return m.call(this).match(p)[1]}catch{return""}}})},b622:function(n,s,t){var r=t("da84"),l=t("5692"),c=t("5135"),m=t("90e3"),p=t("4930"),h=t("fdbf"),y=l("wks"),S=r.Symbol,E=h?S:S&&S.withoutSetter||m;n.exports=function(I){return c(y,I)||(p&&c(S,I)?y[I]=S[I]:y[I]=E("Symbol."+I)),y[I]}},b64b:function(n,s,t){var r=t("23e7"),l=t("7b0b"),c=t("df75"),m=t("d039"),p=m(function(){c(1)});r({target:"Object",stat:!0,forced:p},{keys:function(y){return c(l(y))}})},b727:function(n,s,t){var r=t("0366"),l=t("44ad"),c=t("7b0b"),m=t("50c4"),p=t("65f0"),h=[].push,y=function(S){var E=S==1,I=S==2,w=S==3,C=S==4,U=S==6,P=S==5||U;return function(B,D,H,_){for(var R=c(B),G=l(R),X=r(D,H,3),le=m(G.length),T=0,L=_||p,ue=E?L(B,le):I?L(B,0):void 0,J,oe;le>T;T++)if((P||T in G)&&(J=G[T],oe=X(J,T,R),S)){if(E)ue[T]=oe;else if(oe)switch(S){case 3:return!0;case 5:return J;case 6:return T;case 2:h.call(ue,J)}else if(C)return!1}return U?-1:w||C?C:ue}};n.exports={forEach:y(0),map:y(1),filter:y(2),some:y(3),every:y(4),find:y(5),findIndex:y(6)}},c04e:function(n,s,t){var r=t("861d");n.exports=function(l,c){if(!r(l))return l;var m,p;if(c&&typeof(m=l.toString)=="function"&&!r(p=m.call(l))||typeof(m=l.valueOf)=="function"&&!r(p=m.call(l))||!c&&typeof(m=l.toString)=="function"&&!r(p=m.call(l)))return p;throw TypeError("Can't convert object to primitive value")}},c430:function(n,s){n.exports=!1},c6b6:function(n,s){var t={}.toString;n.exports=function(r){return t.call(r).slice(8,-1)}},c6cd:function(n,s,t){var r=t("da84"),l=t("ce4e"),c="__core-js_shared__",m=r[c]||l(c,{});n.exports=m},c740:function(n,s,t){var r=t("23e7"),l=t("b727").findIndex,c=t("44d2"),m=t("ae40"),p="findIndex",h=!0,y=m(p);p in[]&&Array(1)[p](function(){h=!1}),r({target:"Array",proto:!0,forced:h||!y},{findIndex:function(E){return l(this,E,arguments.length>1?arguments[1]:void 0)}}),c(p)},c8ba:function(n,s){var t;t=function(){return this}();try{t=t||new Function("return this")()}catch{typeof window=="object"&&(t=window)}n.exports=t},c975:function(n,s,t){var r=t("23e7"),l=t("4d64").indexOf,c=t("a640"),m=t("ae40"),p=[].indexOf,h=!!p&&1/[1].indexOf(1,-0)<0,y=c("indexOf"),S=m("indexOf",{ACCESSORS:!0,1:0});r({target:"Array",proto:!0,forced:h||!y||!S},{indexOf:function(I){return h?p.apply(this,arguments)||0:l(this,I,arguments.length>1?arguments[1]:void 0)}})},ca84:function(n,s,t){var r=t("5135"),l=t("fc6a"),c=t("4d64").indexOf,m=t("d012");n.exports=function(p,h){var y=l(p),S=0,E=[],I;for(I in y)!r(m,I)&&r(y,I)&&E.push(I);for(;h.length>S;)r(y,I=h[S++])&&(~c(E,I)||E.push(I));return E}},caad:function(n,s,t){var r=t("23e7"),l=t("4d64").includes,c=t("44d2"),m=t("ae40"),p=m("indexOf",{ACCESSORS:!0,1:0});r({target:"Array",proto:!0,forced:!p},{includes:function(y){return l(this,y,arguments.length>1?arguments[1]:void 0)}}),c("includes")},cc12:function(n,s,t){var r=t("da84"),l=t("861d"),c=r.document,m=l(c)&&l(c.createElement);n.exports=function(p){return m?c.createElement(p):{}}},ce4e:function(n,s,t){var r=t("da84"),l=t("9112");n.exports=function(c,m){try{l(r,c,m)}catch{r[c]=m}return m}},d012:function(n,s){n.exports={}},d039:function(n,s){n.exports=function(t){try{return!!t()}catch{return!0}}},d066:function(n,s,t){var r=t("428f"),l=t("da84"),c=function(m){return typeof m=="function"?m:void 0};n.exports=function(m,p){return arguments.length<2?c(r[m])||c(l[m]):r[m]&&r[m][p]||l[m]&&l[m][p]}},d1e7:function(n,s,t){var r={}.propertyIsEnumerable,l=Object.getOwnPropertyDescriptor,c=l&&!r.call({1:2},1);s.f=c?function(p){var h=l(this,p);return!!h&&h.enumerable}:r},d28b:function(n,s,t){var r=t("746f");r("iterator")},d2bb:function(n,s,t){var r=t("825a"),l=t("3bbe");n.exports=Object.setPrototypeOf||("__proto__"in{}?function(){var c=!1,m={},p;try{p=Object.getOwnPropertyDescriptor(Object.prototype,"__proto__").set,p.call(m,[]),c=m instanceof Array}catch{}return function(y,S){return r(y),l(S),c?p.call(y,S):y.__proto__=S,y}}():void 0)},d3b7:function(n,s,t){var r=t("00ee"),l=t("6eeb"),c=t("b041");r||l(Object.prototype,"toString",c,{unsafe:!0})},d44e:function(n,s,t){var r=t("9bf2").f,l=t("5135"),c=t("b622"),m=c("toStringTag");n.exports=function(p,h,y){p&&!l(p=y?p:p.prototype,m)&&r(p,m,{configurable:!0,value:h})}},d58f:function(n,s,t){var r=t("1c0b"),l=t("7b0b"),c=t("44ad"),m=t("50c4"),p=function(h){return function(y,S,E,I){r(S);var w=l(y),C=c(w),U=m(w.length),P=h?U-1:0,B=h?-1:1;if(E<2)for(;;){if(P in C){I=C[P],P+=B;break}if(P+=B,h?P<0:U<=P)throw TypeError("Reduce of empty array with no initial value")}for(;h?P>=0:U>P;P+=B)P in C&&(I=S(I,C[P],P,w));return I}};n.exports={left:p(!1),right:p(!0)}},d784:function(n,s,t){t("ac1f");var r=t("6eeb"),l=t("d039"),c=t("b622"),m=t("9263"),p=t("9112"),h=c("species"),y=!l(function(){var C=/./;return C.exec=function(){var U=[];return U.groups={a:"7"},U},"".replace(C,"$<a>")!=="7"}),S=function(){return"a".replace(/./,"$0")==="$0"}(),E=c("replace"),I=function(){return/./[E]?/./[E]("a","$0")==="":!1}(),w=!l(function(){var C=/(?:)/,U=C.exec;C.exec=function(){return U.apply(this,arguments)};var P="ab".split(C);return P.length!==2||P[0]!=="a"||P[1]!=="b"});n.exports=function(C,U,P,B){var D=c(C),H=!l(function(){var T={};return T[D]=function(){return 7},""[C](T)!=7}),_=H&&!l(function(){var T=!1,L=/a/;return C==="split"&&(L={},L.constructor={},L.constructor[h]=function(){return L},L.flags="",L[D]=/./[D]),L.exec=function(){return T=!0,null},L[D](""),!T});if(!H||!_||C==="replace"&&!(y&&S&&!I)||C==="split"&&!w){var R=/./[D],G=P(D,""[C],function(T,L,ue,J,oe){return L.exec===m?H&&!oe?{done:!0,value:R.call(L,ue,J)}:{done:!0,value:T.call(ue,L,J)}:{done:!1}},{REPLACE_KEEPS_$0:S,REGEXP_REPLACE_SUBSTITUTES_UNDEFINED_CAPTURE:I}),X=G[0],le=G[1];r(String.prototype,C,X),r(RegExp.prototype,D,U==2?function(T,L){return le.call(T,this,L)}:function(T){return le.call(T,this)})}B&&p(RegExp.prototype[D],"sham",!0)}},d81d:function(n,s,t){var r=t("23e7"),l=t("b727").map,c=t("1dde"),m=t("ae40"),p=c("map"),h=m("map");r({target:"Array",proto:!0,forced:!p||!h},{map:function(S){return l(this,S,arguments.length>1?arguments[1]:void 0)}})},da84:function(n,s,t){(function(r){var l=function(c){return c&&c.Math==Math&&c};n.exports=l(typeof globalThis=="object"&&globalThis)||l(typeof window=="object"&&window)||l(typeof self=="object"&&self)||l(typeof r=="object"&&r)||Function("return this")()}).call(this,t("c8ba"))},dbb4:function(n,s,t){var r=t("23e7"),l=t("83ab"),c=t("56ef"),m=t("fc6a"),p=t("06cf"),h=t("8418");r({target:"Object",stat:!0,sham:!l},{getOwnPropertyDescriptors:function(S){for(var E=m(S),I=p.f,w=c(E),C={},U=0,P,B;w.length>U;)B=I(E,P=w[U++]),B!==void 0&&h(C,P,B);return C}})},dbf1:function(n,s,t){(function(r){t.d(s,"a",function(){return c});function l(){return typeof window<"u"?window.console:r.console}var c=l()}).call(this,t("c8ba"))},ddb0:function(n,s,t){var r=t("da84"),l=t("fdbc"),c=t("e260"),m=t("9112"),p=t("b622"),h=p("iterator"),y=p("toStringTag"),S=c.values;for(var E in l){var I=r[E],w=I&&I.prototype;if(w){if(w[h]!==S)try{m(w,h,S)}catch{w[h]=S}if(w[y]||m(w,y,E),l[E]){for(var C in c)if(w[C]!==c[C])try{m(w,C,c[C])}catch{w[C]=c[C]}}}}},df75:function(n,s,t){var r=t("ca84"),l=t("7839");n.exports=Object.keys||function(m){return r(m,l)}},e01a:function(n,s,t){var r=t("23e7"),l=t("83ab"),c=t("da84"),m=t("5135"),p=t("861d"),h=t("9bf2").f,y=t("e893"),S=c.Symbol;if(l&&typeof S=="function"&&(!("description"in S.prototype)||S().description!==void 0)){var E={},I=function(){var D=arguments.length<1||arguments[0]===void 0?void 0:String(arguments[0]),H=this instanceof I?new S(D):D===void 0?S():S(D);return D===""&&(E[H]=!0),H};y(I,S);var w=I.prototype=S.prototype;w.constructor=I;var C=w.toString,U=String(S("test"))=="Symbol(test)",P=/^Symbol\((.*)\)[^)]+$/;h(w,"description",{configurable:!0,get:function(){var D=p(this)?this.valueOf():this,H=C.call(D);if(m(E,D))return"";var _=U?H.slice(7,-1):H.replace(P,"$1");return _===""?void 0:_}}),r({global:!0,forced:!0},{Symbol:I})}},e163:function(n,s,t){var r=t("5135"),l=t("7b0b"),c=t("f772"),m=t("e177"),p=c("IE_PROTO"),h=Object.prototype;n.exports=m?Object.getPrototypeOf:function(y){return y=l(y),r(y,p)?y[p]:typeof y.constructor=="function"&&y instanceof y.constructor?y.constructor.prototype:y instanceof Object?h:null}},e177:function(n,s,t){var r=t("d039");n.exports=!r(function(){function l(){}return l.prototype.constructor=null,Object.getPrototypeOf(new l)!==l.prototype})},e260:function(n,s,t){var r=t("fc6a"),l=t("44d2"),c=t("3f8c"),m=t("69f3"),p=t("7dd0"),h="Array Iterator",y=m.set,S=m.getterFor(h);n.exports=p(Array,"Array",function(E,I){y(this,{type:h,target:r(E),index:0,kind:I})},function(){var E=S(this),I=E.target,w=E.kind,C=E.index++;return!I||C>=I.length?(E.target=void 0,{value:void 0,done:!0}):w=="keys"?{value:C,done:!1}:w=="values"?{value:I[C],done:!1}:{value:[C,I[C]],done:!1}},"values"),c.Arguments=c.Array,l("keys"),l("values"),l("entries")},e439:function(n,s,t){var r=t("23e7"),l=t("d039"),c=t("fc6a"),m=t("06cf").f,p=t("83ab"),h=l(function(){m(1)}),y=!p||h;r({target:"Object",stat:!0,forced:y,sham:!p},{getOwnPropertyDescriptor:function(E,I){return m(c(E),I)}})},e538:function(n,s,t){var r=t("b622");s.f=r},e893:function(n,s,t){var r=t("5135"),l=t("56ef"),c=t("06cf"),m=t("9bf2");n.exports=function(p,h){for(var y=l(h),S=m.f,E=c.f,I=0;I<y.length;I++){var w=y[I];r(p,w)||S(p,w,E(h,w))}}},e8b5:function(n,s,t){var r=t("c6b6");n.exports=Array.isArray||function(c){return r(c)=="Array"}},e95a:function(n,s,t){var r=t("b622"),l=t("3f8c"),c=r("iterator"),m=Array.prototype;n.exports=function(p){return p!==void 0&&(l.Array===p||m[c]===p)}},f5df:function(n,s,t){var r=t("00ee"),l=t("c6b6"),c=t("b622"),m=c("toStringTag"),p=l(function(){return arguments}())=="Arguments",h=function(y,S){try{return y[S]}catch{}};n.exports=r?l:function(y){var S,E,I;return y===void 0?"Undefined":y===null?"Null":typeof(E=h(S=Object(y),m))=="string"?E:p?l(S):(I=l(S))=="Object"&&typeof S.callee=="function"?"Arguments":I}},f772:function(n,s,t){var r=t("5692"),l=t("90e3"),c=r("keys");n.exports=function(m){return c[m]||(c[m]=l(m))}},fb15:function(n,s,t){if(t.r(s),typeof window<"u"){var r=window.document.currentScript;{var l=t("8875");r=l(),"currentScript"in document||Object.defineProperty(document,"currentScript",{get:l})}var c=r&&r.src.match(/(.+\/)[^/]+\.js(\?.*)?$/);c&&(t.p=c[1])}t("99af"),t("4de4"),t("4160"),t("c975"),t("d81d"),t("a434"),t("159b"),t("a4d3"),t("e439"),t("dbb4"),t("b64b");function m(O,A,V){return A in O?Object.defineProperty(O,A,{value:V,enumerable:!0,configurable:!0,writable:!0}):O[A]=V,O}function p(O,A){var V=Object.keys(O);if(Object.getOwnPropertySymbols){var F=Object.getOwnPropertySymbols(O);A&&(F=F.filter(function(q){return Object.getOwnPropertyDescriptor(O,q).enumerable})),V.push.apply(V,F)}return V}function h(O){for(var A=1;A<arguments.length;A++){var V=arguments[A]!=null?arguments[A]:{};A%2?p(Object(V),!0).forEach(function(F){m(O,F,V[F])}):Object.getOwnPropertyDescriptors?Object.defineProperties(O,Object.getOwnPropertyDescriptors(V)):p(Object(V)).forEach(function(F){Object.defineProperty(O,F,Object.getOwnPropertyDescriptor(V,F))})}return O}function y(O){if(Array.isArray(O))return O}t("e01a"),t("d28b"),t("e260"),t("d3b7"),t("3ca3"),t("ddb0");function S(O,A){if(!(typeof Symbol>"u"||!(Symbol.iterator in Object(O)))){var V=[],F=!0,q=!1,Z=void 0;try{for(var fe=O[Symbol.iterator](),Se;!(F=(Se=fe.next()).done)&&(V.push(Se.value),!(A&&V.length===A));F=!0);}catch(je){q=!0,Z=je}finally{try{!F&&fe.return!=null&&fe.return()}finally{if(q)throw Z}}return V}}t("a630"),t("fb6a"),t("b0c0"),t("25f0");function E(O,A){(A==null||A>O.length)&&(A=O.length);for(var V=0,F=new Array(A);V<A;V++)F[V]=O[V];return F}function I(O,A){if(O){if(typeof O=="string")return E(O,A);var V=Object.prototype.toString.call(O).slice(8,-1);if(V==="Object"&&O.constructor&&(V=O.constructor.name),V==="Map"||V==="Set")return Array.from(O);if(V==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(V))return E(O,A)}}function w(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
  9. In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function C(O,A){return y(O)||S(O,A)||I(O,A)||w()}function U(O){if(Array.isArray(O))return E(O)}function P(O){if(typeof Symbol<"u"&&Symbol.iterator in Object(O))return Array.from(O)}function B(){throw new TypeError(`Invalid attempt to spread non-iterable instance.
  10. In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function D(O){return U(O)||P(O)||I(O)||B()}var H=t("a352"),_=t.n(H);function R(O){O.parentElement!==null&&O.parentElement.removeChild(O)}function G(O,A,V){var F=V===0?O.children[0]:O.children[V-1].nextSibling;O.insertBefore(A,F)}var X=t("dbf1");t("13d5"),t("4fad"),t("ac1f"),t("5319");function le(O){var A=Object.create(null);return function(F){var q=A[F];return q||(A[F]=O(F))}}var T=/-(\w)/g,L=le(function(O){return O.replace(T,function(A,V){return V.toUpperCase()})});t("5db7"),t("73d9");var ue=["Start","Add","Remove","Update","End"],J=["Choose","Unchoose","Sort","Filter","Clone"],oe=["Move"],ye=[oe,ue,J].flatMap(function(O){return O}).map(function(O){return"on".concat(O)}),De={manage:oe,manageAndEmit:ue,emit:J};function Ze(O){return ye.indexOf(O)!==-1}t("caad"),t("2ca0");var xe=["a","abbr","address","area","article","aside","audio","b","base","bdi","bdo","blockquote","body","br","button","canvas","caption","cite","code","col","colgroup","data","datalist","dd","del","details","dfn","dialog","div","dl","dt","em","embed","fieldset","figcaption","figure","footer","form","h1","h2","h3","h4","h5","h6","head","header","hgroup","hr","html","i","iframe","img","input","ins","kbd","label","legend","li","link","main","map","mark","math","menu","menuitem","meta","meter","nav","noscript","object","ol","optgroup","option","output","p","param","picture","pre","progress","q","rb","rp","rt","rtc","ruby","s","samp","script","section","select","slot","small","source","span","strong","style","sub","summary","sup","svg","table","tbody","td","template","textarea","tfoot","th","thead","time","title","tr","track","u","ul","var","video","wbr"];function Ue(O){return xe.includes(O)}function Ve(O){return["transition-group","TransitionGroup"].includes(O)}function Ke(O){return["id","class","role","style"].includes(O)||O.startsWith("data-")||O.startsWith("aria-")||O.startsWith("on")}function Qe(O){return O.reduce(function(A,V){var F=C(V,2),q=F[0],Z=F[1];return A[q]=Z,A},{})}function Te(O){var A=O.$attrs,V=O.componentData,F=V===void 0?{}:V,q=Qe(Object.entries(A).filter(function(Z){var fe=C(Z,2),Se=fe[0];return fe[1],Ke(Se)}));return h(h({},q),F)}function Re(O){var A=O.$attrs,V=O.callBackBuilder,F=Qe(Ye(A));Object.entries(V).forEach(function(Z){var fe=C(Z,2),Se=fe[0],je=fe[1];De[Se].forEach(function(se){F["on".concat(se)]=je(se)})});var q="[data-draggable]".concat(F.draggable||"");return h(h({},F),{},{draggable:q})}function Ye(O){return Object.entries(O).filter(function(A){var V=C(A,2),F=V[0];return V[1],!Ke(F)}).map(function(A){var V=C(A,2),F=V[0],q=V[1];return[L(F),q]}).filter(function(A){var V=C(A,2),F=V[0];return V[1],!Ze(F)})}t("c740");function we(O,A){if(!(O instanceof A))throw new TypeError("Cannot call a class as a function")}function Tt(O,A){for(var V=0;V<A.length;V++){var F=A[V];F.enumerable=F.enumerable||!1,F.configurable=!0,"value"in F&&(F.writable=!0),Object.defineProperty(O,F.key,F)}}function Bt(O,A,V){return A&&Tt(O.prototype,A),O}var Dt=function(A){var V=A.el;return V},qe=function(A,V){return A.__draggable_context=V},_e=function(A){return A.__draggable_context},Nt=function(){function O(A){var V=A.nodes,F=V.header,q=V.default,Z=V.footer,fe=A.root,Se=A.realList;we(this,O),this.defaultNodes=q,this.children=[].concat(D(F),D(q),D(Z)),this.externalComponent=fe.externalComponent,this.rootTransition=fe.transition,this.tag=fe.tag,this.realList=Se}return Bt(O,[{key:"render",value:function(V,F){var q=this.tag,Z=this.children,fe=this._isRootComponent,Se=fe?{default:function(){return Z}}:Z;return V(q,F,Se)}},{key:"updated",value:function(){var V=this.defaultNodes,F=this.realList;V.forEach(function(q,Z){qe(Dt(q),{element:F[Z],index:Z})})}},{key:"getUnderlyingVm",value:function(V){return _e(V)}},{key:"getVmIndexFromDomIndex",value:function(V,F){var q=this.defaultNodes,Z=q.length,fe=F.children,Se=fe.item(V);if(Se===null)return Z;var je=_e(Se);if(je)return je.index;if(Z===0)return 0;var se=Dt(q[0]),ee=D(fe).findIndex(function(ie){return ie===se});return V<ee?0:Z}},{key:"_isRootComponent",get:function(){return this.externalComponent||this.rootTransition}}]),O}(),bt=t("8bbf");function St(O,A){var V=O[A];return V?V():[]}function hn(O){var A=O.$slots,V=O.realList,F=O.getKey,q=V||[],Z=["header","footer"].map(function(ie){return St(A,ie)}),fe=C(Z,2),Se=fe[0],je=fe[1],se=A.item;if(!se)throw new Error("draggable element must have an item slot");var ee=q.flatMap(function(ie,me){return se({element:ie,index:me}).map(function(ge){return ge.key=F(ie),ge.props=h(h({},ge.props||{}),{},{"data-draggable":!0}),ge})});if(ee.length!==q.length)throw new Error("Item slot must have only one child");return{header:Se,footer:je,default:ee}}function Bn(O){var A=Ve(O),V=!Ue(O)&&!A;return{transition:A,externalComponent:V,tag:V?Object(bt.resolveComponent)(O):A?bt.TransitionGroup:O}}function gt(O){var A=O.$slots,V=O.tag,F=O.realList,q=O.getKey,Z=hn({$slots:A,realList:F,getKey:q}),fe=Bn(V);return new Nt({nodes:Z,root:fe,realList:F})}function Pt(O,A){var V=this;Object(bt.nextTick)(function(){return V.$emit(O.toLowerCase(),A)})}function Gt(O){var A=this;return function(V,F){if(A.realList!==null)return A["onDrag".concat(O)](V,F)}}function tn(O){var A=this,V=Gt.call(this,O);return function(F,q){V.call(A,F,q),Pt.call(A,O,F)}}var nn=null,on={list:{type:Array,required:!1,default:null},modelValue:{type:Array,required:!1,default:null},itemKey:{type:[String,Function],required:!0},clone:{type:Function,default:function(A){return A}},tag:{type:String,default:"div"},move:{type:Function,default:null},componentData:{type:Object,required:!1,default:null}},$t=["update:modelValue","change"].concat(D([].concat(D(De.manageAndEmit),D(De.emit)).map(function(O){return O.toLowerCase()}))),rn=Object(bt.defineComponent)({name:"draggable",inheritAttrs:!1,props:on,emits:$t,data:function(){return{error:!1}},render:function(){try{this.error=!1;var A=this.$slots,V=this.$attrs,F=this.tag,q=this.componentData,Z=this.realList,fe=this.getKey,Se=gt({$slots:A,tag:F,realList:Z,getKey:fe});this.componentStructure=Se;var je=Te({$attrs:V,componentData:q});return Se.render(bt.h,je)}catch(se){return this.error=!0,Object(bt.h)("pre",{style:{color:"red"}},se.stack)}},created:function(){this.list!==null&&this.modelValue!==null&&X.a.error("modelValue and list props are mutually exclusive! Please set one or another.")},mounted:function(){var A=this;if(!this.error){var V=this.$attrs,F=this.$el,q=this.componentStructure;q.updated();var Z=Re({$attrs:V,callBackBuilder:{manageAndEmit:function(je){return tn.call(A,je)},emit:function(je){return Pt.bind(A,je)},manage:function(je){return Gt.call(A,je)}}}),fe=F.nodeType===1?F:F.parentElement;this._sortable=new _.a(fe,Z),this.targetDomElement=fe,fe.__draggable_component__=this}},updated:function(){this.componentStructure.updated()},beforeUnmount:function(){this._sortable!==void 0&&this._sortable.destroy()},computed:{realList:function(){var A=this.list;return A||this.modelValue},getKey:function(){var A=this.itemKey;return typeof A=="function"?A:function(V){return V[A]}}},watch:{$attrs:{handler:function(A){var V=this._sortable;V&&Ye(A).forEach(function(F){var q=C(F,2),Z=q[0],fe=q[1];V.option(Z,fe)})},deep:!0}},methods:{getUnderlyingVm:function(A){return this.componentStructure.getUnderlyingVm(A)||null},getUnderlyingPotencialDraggableComponent:function(A){return A.__draggable_component__},emitChanges:function(A){var V=this;Object(bt.nextTick)(function(){return V.$emit("change",A)})},alterList:function(A){if(this.list){A(this.list);return}var V=D(this.modelValue);A(V),this.$emit("update:modelValue",V)},spliceList:function(){var A=arguments,V=function(q){return q.splice.apply(q,D(A))};this.alterList(V)},updatePosition:function(A,V){var F=function(Z){return Z.splice(V,0,Z.splice(A,1)[0])};this.alterList(F)},getRelatedContextFromMoveEvent:function(A){var V=A.to,F=A.related,q=this.getUnderlyingPotencialDraggableComponent(V);if(!q)return{component:q};var Z=q.realList,fe={list:Z,component:q};if(V!==F&&Z){var Se=q.getUnderlyingVm(F)||{};return h(h({},Se),fe)}return fe},getVmIndexFromDomIndex:function(A){return this.componentStructure.getVmIndexFromDomIndex(A,this.targetDomElement)},onDragStart:function(A){this.context=this.getUnderlyingVm(A.item),A.item._underlying_vm_=this.clone(this.context.element),nn=A.item},onDragAdd:function(A){var V=A.item._underlying_vm_;if(V!==void 0){R(A.item);var F=this.getVmIndexFromDomIndex(A.newIndex);this.spliceList(F,0,V);var q={element:V,newIndex:F};this.emitChanges({added:q})}},onDragRemove:function(A){if(G(this.$el,A.item,A.oldIndex),A.pullMode==="clone"){R(A.clone);return}var V=this.context,F=V.index,q=V.element;this.spliceList(F,1);var Z={element:q,oldIndex:F};this.emitChanges({removed:Z})},onDragUpdate:function(A){R(A.item),G(A.from,A.item,A.oldIndex);var V=this.context.index,F=this.getVmIndexFromDomIndex(A.newIndex);this.updatePosition(V,F);var q={element:this.context.element,oldIndex:V,newIndex:F};this.emitChanges({moved:q})},computeFutureIndex:function(A,V){if(!A.element)return 0;var F=D(V.to.children).filter(function(Se){return Se.style.display!=="none"}),q=F.indexOf(V.related),Z=A.component.getVmIndexFromDomIndex(q),fe=F.indexOf(nn)!==-1;return fe||!V.willInsertAfter?Z:Z+1},onDragMove:function(A,V){var F=this.move,q=this.realList;if(!F||!q)return!0;var Z=this.getRelatedContextFromMoveEvent(A),fe=this.computeFutureIndex(Z,A),Se=h(h({},this.context),{},{futureIndex:fe}),je=h(h({},A),{},{relatedContext:Z,draggedContext:Se});return F(je,V)},onDragEnd:function(){nn=null}}}),jt=rn;s.default=jt},fb6a:function(n,s,t){var r=t("23e7"),l=t("861d"),c=t("e8b5"),m=t("23cb"),p=t("50c4"),h=t("fc6a"),y=t("8418"),S=t("b622"),E=t("1dde"),I=t("ae40"),w=E("slice"),C=I("slice",{ACCESSORS:!0,0:0,1:2}),U=S("species"),P=[].slice,B=Math.max;r({target:"Array",proto:!0,forced:!w||!C},{slice:function(H,_){var R=h(this),G=p(R.length),X=m(H,G),le=m(_===void 0?G:_,G),T,L,ue;if(c(R)&&(T=R.constructor,typeof T=="function"&&(T===Array||c(T.prototype))?T=void 0:l(T)&&(T=T[U],T===null&&(T=void 0)),T===Array||T===void 0))return P.call(R,X,le);for(L=new(T===void 0?Array:T)(B(le-X,0)),ue=0;X<le;X++,ue++)X in R&&y(L,ue,R[X]);return L.length=ue,L}})},fc6a:function(n,s,t){var r=t("44ad"),l=t("1d80");n.exports=function(c){return r(l(c))}},fdbc:function(n,s){n.exports={CSSRuleList:0,CSSStyleDeclaration:0,CSSValueList:0,ClientRectList:0,DOMRectList:0,DOMStringList:0,DOMTokenList:1,DataTransferItemList:0,FileList:0,HTMLAllCollection:0,HTMLCollection:0,HTMLFormElement:0,HTMLSelectElement:0,MediaList:0,MimeTypeArray:0,NamedNodeMap:0,NodeList:1,PaintRequestList:0,Plugin:0,PluginArray:0,SVGLengthList:0,SVGNumberList:0,SVGPathSegList:0,SVGPointList:0,SVGStringList:0,SVGTransformList:0,SourceBufferList:0,StyleSheetList:0,TextTrackCueList:0,TextTrackList:0,TouchList:0}},fdbf:function(n,s,t){var r=t("4930");n.exports=r&&!Symbol.sham&&typeof Symbol.iterator=="symbol"}}).default})})(ar);var es=ar.exports;const ir=tl(es);function rr(a,i){["name","gender","phone","id_card","ethnicity","height","weight","current_address","household_location","marital_status","expected_salary"].forEach(n=>{i[n]&&(a[n].visible=i[n].visible,a[n].required=i[n].required)}),["family_member","education","work_experience"].forEach(n=>{i[n]&&(a[n].visible=i[n].visible,Object.keys(i[n].fields).forEach(s=>{a[n].fields[s]&&(a[n].fields[s].visible=i[n].fields[s].visible,a[n].fields[s].required=i[n].fields[s].required)}))})}const ts={class:"position-detail-container"},ns={class:"header-container"},os={class:"header-actions"},is={class:"detail-content"},rs={class:"detail-item"},as={key:0,class:"detail-value"},ls={key:1,class:"title-edit-container"},ss={class:"title-edit-actions"},ds={class:"detail-item"},us={key:0,class:"detail-value"},cs={key:1,class:"title-edit-container"},fs={class:"title-edit-actions"},vs={class:"detail-item"},ps={key:0,class:"detail-value"},ms={key:1,class:"title-edit-container"},gs={class:"title-edit-actions"},hs={class:"detail-item"},ys={key:0,class:"detail-value"},bs={key:1,class:"title-edit-container"},Ss={class:"title-edit-actions"},Es={class:"detail-item"},xs={key:0,class:"detail-value"},Is={key:1,class:"title-edit-container"},Cs={class:"title-edit-actions"},As={class:"detail-item"},ws={key:0,class:"detail-value"},Os={key:1,class:"title-edit-container"},Ts={class:"title-edit-actions"},Ds={class:"detail-item"},Ps={class:"detail-value"},Vs={class:"detail-item"},Rs={key:0,class:"detail-value"},Us={key:1,class:"title-edit-container"},Ks={class:"title-edit-actions"},Ms={class:"detail-item"},Bs=["innerHTML"],Ns={key:2,class:"title-edit-container"},js={class:"title-edit-actions"},Fs={class:"detail-item"},ks=["innerHTML"],Ls={key:2,class:"title-edit-container"},Qs={class:"title-edit-actions"},zs={class:"detail-item"},Gs={key:0,class:"detail-value"},$s={key:1,class:"title-edit-container"},Js={class:"title-edit-actions"},Ws={class:"status-cards"},Hs={class:"status-switch"},Ys={class:"status-text"},Xs={class:"section-title"},Zs={class:"usage-content"},qs={key:0,class:"usage-value"},_s={key:1,class:"title-edit-container"},ed={class:"title-edit-actions"},td={class:"section-title"},nd={class:"process-steps"},od={class:"step-number"},id={class:"step-content"},rd={class:"step-title"},ad={class:"section-title"},ld={class:"process-dialog-content"},sd={key:0,class:"add-process-btn-top"},dd={class:"process-number"},ud={class:"process-edit-content"},cd={class:"process-edit-desc"},fd={class:"process-edit-btn"},vd=["onClick"],pd={class:"dialog-footer"},md={class:"ai-video-steps"},gd={key:0,class:"ai-video-content","element-loading-text":"正在生成能力标签..."},hd={class:"ai-video-options"},yd={class:"recommended-dimensions"},bd={class:"dimension-grid"},Sd={class:"ability-label"},Ed={class:"optional-dimensions"},xd={class:"header-row"},Id={class:"right_btn"},Cd={class:"dimension-grid"},Ad={class:"ability-label"},wd={class:"custom-dimensions"},Od={class:"dimension-form"},Td={class:"dimension-row"},Dd={class:"dimension-input"},Pd={class:"dimension-input"},Vd={class:"dimension-actions"},Rd={key:1,class:"ai-video-content"},Ud={class:"interview-settings"},Kd={class:"interview-header"},Md={class:"interview-actions"},Bd={class:"question-switches"},Nd={class:"switch-item"},jd={class:"switch-item"},Fd={class:"switch-item"},kd={class:"switch-item"},Ld={class:"interview-duration"},Qd={class:"duration-value"},zd={class:"interview-content"},Gd={class:"interview-questions-container","element-loading-text":"AI正在生成题目..."},$d={key:0,class:"no-questions"},Jd={key:1,class:"question-list"},Wd={class:"question-card"},Hd={class:"question-header"},Yd={class:"question-title"},Xd={class:"title-content"},Zd={class:"question-content"},qd={class:"question-number"},_d={style:{color:"#0017ab"}},eu={class:"question-tags"},tu={key:0,class:"more-tags-indicator"},nu={class:"question-actions",style:{"margin-top":"0px"}},ou={class:"question-info"},iu={class:"info-item"},ru={key:0,class:"question-actions"},au={class:"answer-limit"},lu={class:"answer-limit"},su={key:1,class:"question-actions"},du={class:"answer-limit"},uu={class:"multi-dimension-questions"},cu={class:"dimension-list"},fu={class:"dimension-header"},vu={class:"dimension-info"},pu={class:"ability-name"},mu=["onClick"],gu={key:2,class:"ai-video-content"},hu={class:"system-settings"},yu={class:"setting-section"},bu={style:{display:"flex","align-items":"flex-start"}},Su={style:{width:"100px",height:"170px","background-color":"#f2f2f2","margin-right":"30px","border-radius":"10px",overflow:"hidden"}},Eu=["src"],xu={class:"interviewer-avatars"},Iu=["onClick"],Cu={class:"avatar-wrapper"},Au=["src","alt"],wu=["title"],Ou={class:"setting-item",style:{border:"none"}},Tu={class:"setting-options"},Du={class:"interview-settings"},Pu={class:"setting-item"},Vu={class:"setting-item"},Ru={class:"setting-options"},Uu={class:"setting-item"},Ku={class:"drawer-footer"},Mu={class:"video-lecture-form"},Bu={class:"form-item"},Nu={class:"upload-area"},ju={class:"form-item"},Fu={class:"form-item"},ku={class:"dialog-footer"},Lu={class:"ai-chat-content"},Qu={class:"chat-settings"},zu={class:"chat-actions"},Gu={class:"chat-questions"},$u={key:0,class:"empty-questions"},Ju={key:1,class:"question-list"},Wu={class:"question-card"},Hu={class:"question-header"},Yu={class:"question-title"},Xu={class:"question-number"},Zu={class:"question-actions"},qu={class:"weight-control"},_u={class:"answer-limit"},ec={class:"question-info"},tc={class:"info-item"},nc={class:"info-item"},oc={class:"info-item"},ic={class:"drawer-footer"},rc={class:"question-form"},ac={class:"form-item"},lc={class:"form-item"},sc={class:"form-item"},dc={class:"competency-config"},uc={class:"tag-name"},cc={class:"form-item"},fc={class:"form-item"},vc={key:0,class:"form-item"},pc=["onClick"],mc={style:{display:"flex","justify-content":"space-between","margin-top":"10px"}},gc={class:"form-item"},hc={class:"form-item"},yc={class:"form-item"},bc={class:"form-item"},Sc={class:"dialog-footer"},Ec={class:"question-select-content"},xc={class:"search-bar"},Ic={class:"search-inputs"},Cc={class:"question-lists"},Ac={class:"pagination-container"},wc={class:"dialog-footer"},Oc={class:"data-collection-form"},Tc={class:"field-config-panel"},Dc={class:"field-config-list"},Pc={class:"field-config-item"},Vc={class:"field-label"},Rc={class:"field-config-item"},Uc={class:"field-label"},Kc={class:"field-config-item sub-field"},Mc={class:"field-label"},Bc={class:"field-config-item"},Nc={class:"field-label"},jc={class:"field-config-item sub-field"},Fc={class:"field-label"},kc={class:"field-config-item"},Lc={class:"field-label"},Qc={class:"field-config-item"},zc={class:"field-label"},Gc={class:"field-config-item sub-field"},$c={class:"field-label"},Jc={class:"dialog-footer"},Wc={class:"resume-collection-form"},Hc={class:"form-item"},Yc={class:"dialog-footer"},Xc={class:"code-test-form"},Zc={class:"form-item"},qc={class:"form-item"},_c={class:"switch-label"},ef={class:"form-item"},tf={class:"test-paper-selector"},nf={key:0,class:"empty-paper"},of={key:1,class:"selected-paper"},rf={class:"paper-info"},af={class:"paper-title"},lf={class:"paper-meta"},sf={class:"paper-actions"},df={class:"dialog-footer"},uf={class:"typing-test-form"},cf={class:"form-item"},ff={class:"article-selection"},vf={class:"form-item"},pf={class:"form-item"},mf={class:"time-input-container"},gf={class:"form-item"},hf={class:"upload-area"},yf={class:"form-item"},bf={class:"form-item"},Sf={class:"form-item"},Ef={class:"form-item"},xf={class:"criteria-options"},If={class:"dialog-footer"},Cf={class:"interview-settings-content"},Af={class:"settings-section"},wf={class:"setting-item"},Of={class:"setting-item"},Tf={class:"setting-item"},Df={class:"setting-item"},Pf={class:"setting-item"},Vf={class:"settings-section"},Rf={class:"setting-item"},Uf={class:"setting-info"},Kf={class:"setting-item"},Mf={class:"setting-info"},Bf={key:0,class:"setting-desc-container"},Nf={class:"setting-desc"},jf={key:1,class:"desc-edit-container"},Ff={class:"desc-edit-actions"},kf={class:"setting-item"},Lf={class:"setting-info"},Qf={key:0,class:"setting-desc-container"},zf={class:"setting-desc"},Gf={key:1,class:"desc-edit-container"},$f={class:"desc-edit-actions"},Jf={class:"setting-item"},Wf={class:"setting-info"},Hf={key:0,class:"setting-desc-container"},Yf={class:"setting-desc"},Xf={key:1,class:"desc-edit-container"},Zf={class:"desc-edit-actions"},qf={class:"dialog-footer"},_f={class:"question-select-content"},ev={class:"search-bar"},tv={class:"search-inputs"},nv={class:"question-lists"},ov={class:"pagination-container"},iv={class:"dialog-footer"},rv=$a({__name:"index",setup(a){const i=Ja(),o=Wa();$(o.params.id);const u=$(!1),n=$(!1),s=nt({title:"",job_category:"",job_type_display:"",city:"",location:[],location_str:"",address_detail:"",benefits:[],requirements:"",job_type:0,salary_range:"",department:"",end_date:"",description:"",work_experience_required:"",education_required:"",competency_tags:[],options:[],status:0}),t=nt([{id:5,name:"资料收集",description:"资料收集",active:!0},{id:2,name:"AI考察",description:"AI考察",active:!0},{id:1,name:"待核验",description:"待核验",active:!0},{id:3,name:"已通过",description:"已通过",active:!0},{id:4,name:"已淘汰",description:"已淘汰",active:!1}]),r=$(!1),l=[{label:"AI考察",value:"ai_video"},{label:"视频宣讲",value:"video_presentation"},{label:"AI实时对话",value:"ai_chat"},{label:"资料收集",value:"data_collection"},{label:"简历收集",value:"resume_collection"},{label:"心理问题",value:"psychological_problem"},{label:"常识问题",value:"common_sense"}],c=$(!1),m=g=>{tt.pageSize=g,Lt({page:tt.page,limit:tt.pageSize,question_form:lt.question_form}).then(e=>{e.data&&(tt.value=e.data.items,Wt.page=e.data.page,Wt.pageSize=e.data.limit,_n.value=e.data.total)})},p=g=>{tt.page=g,Lt({page:tt.page,limit:tt.pageSize,question_form:lt.question_form}).then(e=>{e.data&&(tt.value=e.data.items,Wt.page=e.data.page,Wt.pageSize=e.data.limit,_n.value=e.data.total)})},h=async()=>{const g=Jt.value.map(e=>e.id);if(console.log("selectedQuestionIds",g),g.length===0){K.warning("请至少选择一个问题");return}try{await Qi({position_id:o.query.id,question_id:g,duration:60,tenant_id:"1"});const e=tt.value.filter(j=>j.selected);Jt.value.push(...e),K.success("问题添加成功"),c.value=!1}catch(e){console.error("添加问题失败:",e),K.error("添加问题失败,请重试")}},y=()=>{Cn.value=!0,Ji({position_id:o.query.id}).then(g=>{g.data.forEach(e=>{e.selected=!1}),Rt.value=g.data,console.log("res",g),Cn.value=!1}).catch(g=>{console.log("err",g),Cn.value=!1})},S=il(),E=g=>{if(console.log("地址选择变化:",g),g&&Array.isArray(g)&&g.length>0){const[e,j,x]=g,Y=S.find(Ce=>Ce.code===e);let k;Y&&Y.children&&(k=Y.children.find(Ce=>Ce.code===j),k&&k.children&&k.children.find(Ce=>Ce.code===x))}},I=(g,e)=>{pl({id:g,is_required_correct:e}).then(j=>{console.log("res",j)})},w=$(-1),C=$(!1),U=nt({top:"0px",left:"0px"}),P=$(!1),B=nt({qualityControl:!1,teamwork:!1,problemSolving:!1,dataAnalysis:!1,positionMatch:!1,proactiveness:!1,basicAbility:!1,communication:!1,serviceAwareness:!1,xxxx:!1}),D=$(1),H=$([{label:"沟通能力",value:"communication",level:"CC",description:"能够清晰、准确地表达想法,善于倾听和理解他人的观点,具备良好的书面和口头表达能力。",expanded:!1,isNew:!0},{label:"团队协作",value:"teamwork",level:"CC",description:"能够与团队成员有效合作,共同完成目标,具备良好的团队精神和协作意识。",expanded:!1,isNew:!1}]);nt({min:0,max:100,minScore:0,maxScore:0});const _=g=>{console.log(g)};$("standard"),$(!1);const R=$(!1),G=nt({title:"",videoFile:null,description:"",broadcastType:"required"}),X=$(!1);$(15),$(5);const le=$(!1),T=nt({id:"",content:"",competency_tags:[],weight:100,level:1,type:"open",question_form:0,options:[],position:[],category:"",tags:[],suggestedDuration:60,scoring_reference:""}),L=$([]),ue=$([{label:"后端开发",value:"backend"},{label:"前端开发",value:"frontend"},{label:"产品经理",value:"product_manager"},{label:"项目经理",value:"project_manager"},{label:"测试工程师",value:"test_engineer"}]),J=$([{label:"技术能力",value:"tech"},{label:"管理能力",value:"management"},{label:"沟通能力",value:"communication"},{label:"专业知识",value:"professional"},{label:"个人素质",value:"personal"}]),oe=$([{label:"时间管理",value:"time_management"},{label:"压力处理",value:"pressure_handling"},{label:"团队合作",value:"team_cooperation"},{label:"问题分析",value:"problem_analysis"},{label:"创新思维",value:"innovative_thinking"}]),ye=()=>{Object.assign(T,{id:"",content:"",competency_tags:[],weight:100,level:1,type:"open",question_form:0,options:[],position:[],category:"",tags:[],suggestedDuration:60,scoring_reference:""})},De=()=>{le.value=!1,ye()},Ze=async()=>{if(!T.content){K.error("请输入题目内容");return}if(La())try{const g={id:T.id,content:T.content,competency_tags:T.competency_tags,options:T.options,weight:T.weight,level:T.level,question_form:T.question_form,position:T.position,category:T.category,suggestedDuration:T.suggestedDuration,scoring_reference:T.scoring_reference};console.log(g),le.value=!1,ye()}catch(g){console.error("添加问题失败:",g),K.error("添加问题失败,请重试")}},xe=$(!1),Ue=nt({isRequired:!1,questions:[]});$([{label:"Q1",value:"q1",isVisible:!0,enableScoring:!1,isRequired:!1},{label:"请问你的毕业院校是哪里?",value:"school",isVisible:!0,enableScoring:!1,isRequired:!0}]);const Ve=$(!1),Ke=nt({title:"简历收集",isRequired:!0,steps:4}),Qe=()=>{Ve.value=!0},Te=()=>{Ve.value=!1,Object.assign(Ke,{title:"简历收集",isRequired:!0,steps:4})},Re=()=>{const g={id:Date.now(),name:Ke.title,description:"简历收集",active:!0,type:"resume_collection",config:{...Ke}};t.splice(w.value,0,g),Ve.value=!1,K.success("简历收集步骤已添加"),Te()},Ye=$(!1),we=nt({enableScoreQuestions:!1,enableColorBlindQuestions:!1}),Tt=async()=>{try{const g=o.query.id;if(!g){K.error("职位ID不存在");return}const e=Array.isArray(g)?g[0]:g,j=g,x=await _a(g);if(x&&x.data){Object.assign(s,x.data),L.value=x.data.competency_tags;const Y=await Dn(g);Y&&Y.data&&(Oe.value=Y.data.id,Y.data.enable_psychological_test!==void 0&&(we.enableScoreQuestions=Y.data.enable_psychological_test),Y.data.enable_color_blind_test!==void 0&&(we.enableColorBlindQuestions=Y.data.enable_color_blind_test)),u.value=s.status===1}}catch(g){console.error("获取职位详情失败:",g),K.error("获取职位详情失败")}},Bt=()=>{i.push("/position/list")},Dt=()=>{i.push("/position/list")},qe=()=>{K.success("分享链接已复制到剪贴板")},_e=async g=>{const e=o.query.id;try{const j=g?1:0;await xt({id:e,status:j}),s.status=j,K.success(`职位已${g?"开启":"关闭"}`)}catch(j){console.error("修改状态失败:",j),K.error("修改状态失败"),u.value=!g}},Nt=()=>{r.value=!0},bt=()=>{r.value=!1,K.success("招聘流程已更新")},St=()=>{r.value=!1},hn=g=>{t.splice(g,1)},Bn=g=>({0:"未发布",1:"已发布",2:"已结束"})[g]||"未知状态",gt=g=>({0:"info",1:"success",2:"danger"})[g]||"info",Pt=g=>({0:"全职",1:"兼职",2:"实习",3:"其他"})[g]||"未知",Gt=(g,e)=>{w.value=g,C.value=!0;const j=e.currentTarget,x=j.closest(".process-dialog-content");if(x){const Y=j.getBoundingClientRect(),k=x.getBoundingClientRect(),Ce=Y.bottom-k.top+5,ne=Y.left-k.left;U.top=`${Ce}px`,U.left=`${ne}px`}e.stopPropagation()},tn=async(g,e)=>{if(g==="ai_video"){P.value=!0,C.value=!1;return}if(g==="ai_chat"){X.value=!0,C.value=!1;return}if(g==="video_presentation"){O(),C.value=!1;return}if(g==="data_collection"){const x=await Dn(o.query.id);x&&x.data?(Oe.value=x.data.id,rr(Q,x.data.profile_fields_config),xe.value=!0,C.value=!1):(xe.value=!0,C.value=!1);return}if(g==="resume_collection"){Qe(),C.value=!1;return}if(g==="code_test"){yr(),C.value=!1;return}if(g==="typing_test"){jn.value=!0,C.value=!1;return}if(t.length>=6){K.warning("最多只能添加6个流程步骤");return}const j={id:Date.now(),name:e,description:e,active:!0,type:g};t.splice(w.value,0,j),C.value=!1},nn=async()=>{if(D.value<3){if(D.value===1){const g=Rt.value.filter(e=>e.selected);if(g.length===0){K.warning("请至少选择一个胜任力考核维度");return}try{const e=g.map(j=>({name:j.name,description:j.description,importance:j.importance}));await ml({position_id:o.query.id,tenant_id:"1",tags:e}).then(j=>{j.code==2e3&&(H.value=j.data.map(x=>({label:x.name,value:x.name.toLowerCase().replace(/\s+/g,"_"),id:x.id,description:x.description,level:"CC",expanded:!1,isNew:!0})))})}catch(e){console.error("保存胜任力标签失败:",e),K.error("保存胜任力标签失败");return}}if(D.value===2){if(Z.value.length===0){K.warning("请至少添加一个面试题目");return}try{await da()}catch(g){console.error("保存题目失败:",g),K.error("保存题目失败");return}}if(D.value===3){const g=ua();if(!g.isValid){g.messages.forEach(j=>{K.warning(j)});return}const e=va();console.log("完整的面试配置:",e)}D.value++}else $t()},on=()=>{D.value>1&&D.value--},$t=async()=>{var Y;if(!ct.value||!ct.value.id){K.warning("请选择面试官形象");return}const g={id:ct.value.id,name:ct.value.name,avatar_url:ct.value.avatar_url||ct.value.image},e=Xo(),j={enableScoreQuestions:we.enableScoreQuestions,enableColorBlindQuestions:we.enableColorBlindQuestions};if(Oe.value==0){const k=await cn({position_id:o.query.id,digital_human_id:ct.value.id});if(k.code==2e3){K.success("配置保存成功");try{const Ce={config_id:((Y=k.data)==null?void 0:Y.id)||k.data};e.beforeStartText&&e.beforeStartText.trim()!==""?(await _o(Ce),console.log("开场白生成成功"),P.value=!1,D.value=1,await new Promise(Ee=>setTimeout(Ee,4e3))):console.log("无开场白配置,跳过开场白生成"),await zi(Ce),K.success("视频开始生成")}catch(Ce){console.error("获取开场白和视频失败:",Ce),K.warning("视频生成中,请稍后")}}else K.error("配置保存失败")}else if((await fn({id:Oe.value,digital_human_id:ct.value.id})).code==2e3){K.success("配置保存成功");try{const Ce={config_id:Oe.value};console.log("开始生成开场白..."),await _o(Ce),console.log("开场白生成成功"),P.value=!1,D.value=1,console.log("等待4秒后开始生成视频..."),await ga(4e3),console.log("开始生成视频..."),await zi(Ce),console.log("视频生成请求已发送"),K.success("视频开始生成")}catch(Ce){console.error("获取开场白和视频失败:",Ce),K.warning("视频生成中,请稍后")}}else K.error("配置保存失败");console.log("保存时选中的面试官:",g),console.log("保存时的面试设置:",e),console.log("保存时的题目设置:",j);const x={id:Date.now(),name:"AI考察",description:`已选择${H.value.length}项能力测评`,active:!0,type:"ai_video",abilities:H.value.map(k=>k.value),interviewer:g,settings:e};t.splice(w.value,0,x),P.value=!1,D.value=1,K.success("AI考察步骤已添加")},rn=()=>{P.value=!1,D.value=1},jt=g=>{},O=()=>{R.value=!0},A=()=>{R.value=!1,Object.assign(G,{title:"",videoFile:null,description:"",broadcastType:"required"})},V=()=>{const g={id:Date.now(),name:G.title||"视频宣讲",description:G.description||"视频宣讲",active:!0,type:"video_presentation",config:{...G}};t.splice(w.value,0,g),R.value=!1,K.success("视频宣讲步骤已添加"),A()},F=()=>{const g={id:Date.now(),name:"AI实时对话",description:"AI实时对话",active:!0,type:"ai_chat"};t.splice(w.value,0,g),X.value=!1,K.success("AI实时对话步骤已添加")},q=()=>{X.value=!1},Z=$([]),fe=Ki(()=>Z.value.reduce((g,e)=>{switch(e.question_form){case 0:return g+60;case 1:return g+30;case 2:return g+30;default:return g+30}},0)),Se=Ki(()=>{const g=fe.value;if(g<60)return`${g}秒`;const e=Math.floor(g/60),j=g%60;return j>0?`${e}分${j}秒`:`${e}分钟`}),je=()=>{le.value=!0},se=()=>{Do.value={question:"",question_form:null,competency_tags:[],position_types:[],category_id:null,tags:[],recommended_duration:60,status:1,is_required_correct:!1,is_system:!1,sort:1,options:[],scoring_reference:"",blank_answer_template:[]},Ci.value=!1,qn.value=!0},ee=async g=>{try{const e=await al({...g,tenant_id:1});if(e&&e.code===2e3){if(K.success("题目创建成功"),console.log(e),e.data){const j={id:e.data.id||e.data,title:g.question,question_form:g.question_form,question_form_name:me(g.question_form),scoring_reference:g.scoring_reference||"",competency_tags:g.competency_tags||[],options:g.options||[],enable_follow_up:!1,maxAnswers:1,weight:100,source:"custom_selected"};Z.value.push(j)}qn.value=!1}else K.error("题目创建失败,请重试")}catch(e){console.error("创建题目失败:",e),K.error("题目创建失败,请重试")}},ie=()=>{qn.value=!1,Do.value={}},me=g=>({0:"开放问题",1:"单选题",2:"多选题",3:"色盲题",4:"得分题",5:"判断题",6:"填空题"})[g]||"未知类型",ge=g=>{const e=Z.value[g];console.log(e),Object.assign(T,e),le.value=!0},it=g=>{ki.confirm("确认删除该问题?","提示",{confirmButtonText:"确定",cancelButtonText:"取消",type:"warning"}).then(()=>{Z.value.splice(g,1),K.success("删除成功")})},Nn=()=>{xe.value=!1,Object.assign(Ue,{isRequired:!1,questions:[]})};Ha(()=>{Tt(),Ei(),pa(),Wo()}),Ya(()=>{Ii()});const Wo=async()=>{try{const g=o.query.id;if(g){const e=await Dn(g);e&&e.data&&(e.data.enable_psychological_test!==void 0&&(we.enableScoreQuestions=e.data.enable_psychological_test),e.data.enable_color_blind_test!==void 0&&(we.enableColorBlindQuestions=e.data.enable_color_blind_test))}}catch(g){console.error("初始化配置状态失败:",g)}},Vt=$(!1),rt=nt({title:"代码笔试",autoJudge:!0,selectedPaper:null}),yr=()=>{Vt.value=!0},bi=()=>{Vt.value=!1,Object.assign(rt,{title:"代码笔试",autoJudge:!0,selectedPaper:null})},br=()=>{if(!rt.selectedPaper){K.warning("请添加考试试卷");return}const g={id:Date.now(),name:rt.title,description:`${rt.selectedPaper.title}`,active:!0,type:"code_test",config:{...rt}};t.splice(w.value,0,g),Vt.value=!1,K.success("代码笔试步骤已添加"),bi()},Sr=()=>{rt.selectedPaper={id:1,title:"前端开发工程师笔试",questionCount:4,duration:60,difficulty:"中等难度"}},Er=()=>{K.info("查看试卷功能开发中")},xr=()=>{K.info("更换试卷功能开发中")},Ir=()=>{rt.selectedPaper=null},jn=$(!1),et=nt({title:"",duration:5,content:"",notes:"",videoMonitoring:!1,passCriteria:{speed:!1,accuracy:!0},selectionMode:"random",pageTitle:"",previewImage:null,articles:[]}),Si=()=>{jn.value=!1,Object.assign(et,{title:"",duration:5,content:"",notes:"",videoMonitoring:!1,passCriteria:{speed:!1,accuracy:!0},selectionMode:"random",pageTitle:"",previewImage:null,articles:[]})},Cr=()=>{const g={id:Date.now(),name:et.title,description:`打字测试 ${et.duration}分钟`,active:!0,type:"typing_test",config:{...et}};t.splice(w.value,0,g),jn.value=!1,K.success("打字测试步骤已添加"),Si()},So=$(!1),yn=$(""),Ar=()=>{yn.value=s.title,So.value=!0},wr=()=>{So.value=!1},Or=async()=>{if(!yn.value.trim()){K.warning("职位名称不能为空");return}try{const g=o.query.id;await xt({id:g,title:yn.value.trim()}),s.title=yn.value.trim(),So.value=!1,K.success("职位名称已更新")}catch(g){console.error("更新职位名称失败:",g),K.error("更新职位名称失败")}},Eo=$(!1),Ft=$(""),Tr=()=>{if(!s.location)Ft.value="";else if(Array.isArray(s.location))Ft.value=s.location;else if(typeof s.location=="string")try{const e=s.location.replace(/[\[\]']/g,"").split(",").map(k=>k.trim()),j=S.find(k=>k.name===e[0]);let x,Y;j&&j.children&&(x=j.children.find(k=>k.name===e[1]),x&&x.children&&(Y=x.children.find(k=>k.name===e[2]))),Ft.value=[j==null?void 0:j.code,x==null?void 0:x.code,Y==null?void 0:Y.code].filter(Boolean)}catch(g){console.error("解析地址失败:",g),Ft.value=""}Eo.value=!0},Dr=()=>{Eo.value=!1},Pr=async()=>{try{const g=o.query.id,e=[];if(Ft.value&&Array.isArray(Ft.value)){const[j,x,Y]=Ft.value,k=S.find(Ee=>Ee.code===j);let Ce,ne;k&&(e.push(k.name),k.children&&(Ce=k.children.find(Ee=>Ee.code===x),Ce&&(e.push(Ce.name),Ce.children&&(ne=Ce.children.find(Ee=>Ee.code===Y),ne&&e.push(ne.name)))))}await xt({id:g,location:e}),s.location=e,Eo.value=!1,K.success("工作地点已更新")}catch(g){console.error("更新工作地点失败:",g),K.error("更新工作地点失败")}},xo=$(!1),Fn=$(""),Vr=()=>{Fn.value=s.salary_range||"",xo.value=!0},Rr=()=>{xo.value=!1},Ur=async()=>{try{const g=o.query.id;await xt({id:g,salary_range:Fn.value.trim()}),s.salary_range=Fn.value.trim(),xo.value=!1,K.success("职位薪资已更新")}catch(g){console.error("更新职位薪资失败:",g),K.error("更新职位薪资失败")}},Io=$(!1),kn=$(""),Kr=()=>{kn.value=s.work_experience_required||"",Io.value=!0},Mr=()=>{Io.value=!1},Br=async()=>{try{const g=o.query.id;await xt({id:g,work_experience_required:kn.value}),s.work_experience_required=kn.value,Io.value=!1,K.success("工作经验已更新")}catch(g){console.error("更新工作经验失败:",g),K.error("更新工作经验失败")}},Co=$(!1),Ln=$(""),Nr=()=>{Ln.value=s.education_required||"",Co.value=!0},jr=()=>{Co.value=!1},Fr=async()=>{try{const g=o.query.id;await xt({id:g,education_required:Ln.value}),s.education_required=Ln.value,Co.value=!1,K.success("学历要求已更新")}catch(g){console.error("更新学历要求失败:",g),K.error("更新学历要求失败")}},Ao=$(!1),Qn=$(""),kr=()=>{Qn.value=s.department||"",Ao.value=!0},Lr=()=>{Ao.value=!1},Qr=async()=>{try{const g=o.query.id;await xt({id:g,department:Qn.value.trim()}),s.department=Qn.value.trim(),Ao.value=!1,K.success("所属部门已更新")}catch(g){console.error("更新所属部门失败:",g),K.error("更新所属部门失败")}},wo=$(!1),zn=$(""),zr=()=>{zn.value=s.end_date||"",wo.value=!0},Gr=()=>{wo.value=!1},$r=async()=>{try{const g=o.query.id;await xt({id:g,end_date:zn.value}),s.end_date=zn.value,wo.value=!1,K.success("截止日期已更新")}catch(g){console.error("更新截止日期失败:",g),K.error("更新截止日期失败")}},Gn=$(!1),$n=$(""),Jr=()=>{$n.value=s.requirements||"",Gn.value=!0},Wr=()=>{Gn.value=!1},Hr=async()=>{try{const g=o.query.id;await xt({id:g,requirements:$n.value}),s.requirements=$n.value,Gn.value=!1,K.success("职位要求已更新")}catch(g){console.error("更新职位要求失败:",g),K.error("更新职位要求失败")}},Jn=$(!1),Wn=$(""),Yr=()=>{Wn.value=s.description||"",Jn.value=!0},Xr=()=>{Jn.value=!1},Zr=async()=>{try{const g=o.query.id;await xt({id:g,description:Wn.value}),s.description=Wn.value,Jn.value=!1,K.success("职位描述已更新")}catch(g){console.error("更新职位描述失败:",g),K.error("更新职位描述失败")}},bn=$(!1),Hn=$(0),qr=()=>{Hn.value=s.job_type||0,bn.value=!0},_r=()=>{bn.value=!1},ea=async()=>{try{const g=o.query.id;await xt({id:g,job_type:Hn.value}),s.job_type=Hn.value,bn.value=!1,K.success("职位性质已更新")}catch(g){console.error("更新职位性质失败:",g),K.error("更新职位性质失败")}},Rt=$([]),Oo=$(!1),Sn=$([]),Ei=async()=>{try{const g=await dl({page:1,pageSize:1e3});g&&g.data}catch(g){console.error("获取能力标签列表失败:",g),K.error("获取能力标签列表失败")}},ta=async()=>{var g;await Ei(),Sn.value=((g=s.competency_tags)==null?void 0:g.map(e=>e.id))||[],L.value.forEach(e=>{e.selected=Sn.value.includes(e.id)}),Oo.value=!0},na=()=>{Oo.value=!1},oa=async()=>{try{const g=o.query.id;await xt({id:g,competency_tags:Sn.value}),s.competency_tags=L.value.filter(e=>Sn.value.includes(e.id)).map(e=>({id:e.id,name:e.name})),Oo.value=!1,K.success("能力标签已更新")}catch(g){console.error("更新能力标签失败:",g),K.error("更新能力标签失败")}},ia=$(null),Oe=$(0),ra=async g=>{if(g.name==="资料收集"){const e=await Dn(o.query.id);e&&e.data?(Oe.value=e.data.id,rr(Q,e.data.profile_fields_config),xe.value=!0,C.value=!1):(xe.value=!0,C.value=!1);return}if(g.name==="AI考察"){const e=await Dn(o.query.id);Cn.value=!0,ia.value=g,P.value=!0,D.value=1;try{const j=await gl({position_id:o.query.id,page:1,limit:20});if(console.log("existingTags",j),j&&j.data&&j.data.items.length>0)j.data.items.forEach(x=>{x.importance=1,x.selected=!1}),Rt.value=j.data.items;else{const x=await Ji({position_id:o.query.id});x&&x.data&&(x.data.forEach(Y=>{Y.selected=!1}),Rt.value=x.data)}e&&e.data&&(Oe.value=e.data.id)}catch(j){console.error("获取或生成能力标签失败:",j),K.error("获取或生成能力标签失败")}finally{Cn.value=!1}Object.keys(B).forEach(j=>{B[j]=!1})}g.name==="常识问题"&&Lt({page:1,limit:20}).then(e=>{e.data&&(tt.value=e.data.items,Wt.page=e.data.page,Wt.pageSize=e.data.limit,_n.value=e.data.total,c.value=!0)}),g.name==="心理问题"&&Lt({page:1,limit:30,question_form:4}).then(e=>{e.data&&(lt.question_form=4,tt.value=e.data.items,Wt.page=e.data.page,Wt.pageSize=e.data.limit,_n.value=e.data.total,c.value=!0)})},an=$(""),Yn=$(""),aa=$(!1),la=async()=>{if(!an.value.trim()){K.warning("请输入维度名称");return}if(Rt.value.find(e=>e.name===an.value.trim())){K.warning("该维度名称已存在,请重新输入");return}try{const e={id:Date.now(),name:an.value.trim(),description:Yn.value.trim(),selected:!1,importance:1,weight:0,isCustom:!0};Rt.value.push(e),K.success(`自定义维度"${e.name}"已添加到备选维度列表`),aa.value,an.value="",Yn.value="",console.log("添加新维度成功:",e),console.log("当前备选维度列表:",Rt.value)}catch(e){console.error("添加自定义维度失败:",e),K.error("添加自定义维度失败,请重试")}},at=nt({keepVideo:!1,interruptionMode:"",smartFollowUp:!1,followUpStyle:""}),Ho=$([{id:1,name:"Jessica",image:"/avatars/jessica.png"},{id:2,name:"Mike",image:"/avatars/mike.png"},{id:3,name:"Sarah",image:"/avatars/sarah.png"}]),ct=$(Ho.value[0]),Yo=$(""),sa=g=>{ct.value=g,console.log("选中的面试官信息:",{id:g.id,name:g.name,avatar_url:g.avatar_url||g.image}),Yo.value=g.avatar_url,K.success(`已选择面试官:${g.name}`)},da=async()=>{const g=Z.value.filter(j=>j.source==="ai_generated"),e=Z.value.filter(j=>j.source==="custom_selected");if(console.log("AI生成的题目:",g),console.log("自定义选择的题目:",e),g.length>0&&(await fl({draft_ids:g.map(j=>j.id)}),console.log("AI生成的题目已保存到草稿")),e.length>0){const j={position_id:o.query.id,question_id:{question_id:e},duration:60,tenant_id:1};console.log("自定义选择的题目需要调用专门的接口处理");const x=await Qi(j);x&&x.code===2e3?K.success("自定义选择的题目已保存"):K.error("自定义选择的题目保存失败")}},Xo=()=>{const g={keepVideo:at.keepVideo,interruptionMode:at.interruptionMode,followUpStyle:at.followUpStyle,smartFollowUp:at.smartFollowUp};return console.log("当前面试设置:",g),g},Xn=(g,e)=>{switch(console.log(`面试设置 ${g} 已更改为:`,e),g){case"keepVideo":console.log("回答视频保留设置:",e?"开启":"关闭");break;case"interruptionMode":console.log("中断后作答限制模式:",e==="previous"?"从上一问重新作答":"从当前问题作答");break;case"followUpStyle":console.log("追问风格:",e);break;case"smartFollowUp":console.log("智慧追问设置:",e?"开启":"关闭");break}},ua=()=>{const g=Xo(),e={isValid:!0,messages:[]};return g.interruptionMode===""&&(e.isValid=!1,e.messages.push("请选择中断后作答限制模式")),e},ca=g=>{n.value=!0,console.log("开始拖拽题目:",g)},fa=g=>{n.value=!1,console.log("拖拽结束:",g),console.log("当前题目顺序:",Z.value),K.success("题目顺序已更新")},va=()=>({interviewer:{id:ct.value.id,name:ct.value.name,avatar_url:ct.value.avatar_url||ct.value.image},settings:Xo(),questionSettings:{enableScoreQuestions:we.enableScoreQuestions,enableColorBlindQuestions:we.enableColorBlindQuestions},abilities:H.value,questions:Z.value,currentStep:D.value}),pa=async()=>{const g=await vl({page:1,pageSize:1e3});g&&g.data&&(Ho.value=g.data)},xi=(g,e)=>{e?Zn.value.push({name:g.name,description:g.description||"暂无描述"}):Zn.value=Zn.value.filter(j=>j.name!==g.name)},ma=g=>{ki.confirm("确认删除这个胜任力标签吗?","提示",{confirmButtonText:"确定",cancelButtonText:"取消",type:"warning"}).then(()=>{const e=H.value[g];H.value.splice(g,1),Zn.value=Zn.value.filter(x=>x.name!==e.label);const j=Rt.value.find(x=>x.name===e.label);j&&(j.selected=!1),K.success("胜任力标签已删除")}).catch(()=>{})},Zn=$([]),ga=g=>new Promise(e=>setTimeout(e,g));let kt=null;const ha=async(g,e=50,j=2e3)=>{let x=0;kt={cancelled:!1};const Y=kt;return new Promise((k,Ce)=>{const ne=async()=>{try{if(Y.cancelled){console.log("轮询已被取消"),k(null);return}x++,console.log(`第${x}次轮询获取草稿列表...`);const Ee=await cl(g);if(Y.cancelled){console.log("轮询已被取消"),k(null);return}if(Ee&&Ee.data&&Ee.data.dataList&&Ee.data.dataList.length>0){console.log("轮询成功,获取到草稿列表数据"),kt=null,k(Ee);return}if(x>=e){console.log("轮询达到最大次数,停止轮询"),kt=null,k(Ee);return}setTimeout(ne,j)}catch(Ee){if(console.error(`第${x}次轮询失败:`,Ee),Y.cancelled){console.log("轮询已被取消"),k(null);return}x<e?setTimeout(ne,j):(kt=null,Ce(Ee))}};ne()})},Ii=()=>{kt&&(kt.cancelled=!0,kt=null,console.log("轮询已被手动取消"))},ya=()=>{Ii(),Ye.value=!1,K.info("已取消AI自动组题")},ba=async g=>{var e;if(console.log("得分题开关状态:",g?"开启":"关闭"),g){const j=await Lt({page:1,limit:1e3,question_form:4,tenant_id:1});console.log(j),j&&j.data?Gi({position_id:o.query.id,question_id:{question_id:j.data.items.map(x=>x.id)},tenant_id:1}).then(async x=>{var Y;if(x.code===2e3){try{if(Oe.value>0)await fn({id:Oe.value,enable_psychological_test:!0}),console.log("配置中的enable_psychological_test字段已更新为true");else{const k=await cn({position_id:o.query.id,enable_psychological_test:!0,tenant_id:1});k&&k.code===2e3&&(Oe.value=((Y=k.data)==null?void 0:Y.id)||k.data,console.log("配置创建成功,enable_psychological_test字段已设置为true"))}}catch(k){console.error("更新enable_psychological_test字段失败:",k)}K.success("得分题功能已开启")}else K.error("得分题功能开启失败")}):K.error("获取题目列表失败")}else try{const j=await Lt({page:1,limit:1e3,question_form:4,tenant_id:1});if(j&&j.data){if(await $i({position_id:o.query.id,question_id:j.data.items.map(x=>x.id),tenant_id:1}),Oe.value>0)await fn({id:Oe.value,enable_psychological_test:!1}),console.log("配置中的enable_psychological_test字段已更新为false");else{const x=await cn({position_id:o.query.id,enable_psychological_test:!1,tenant_id:1});x&&x.code===2e3&&(Oe.value=((e=x.data)==null?void 0:e.id)||x.data,console.log("配置创建成功,enable_psychological_test字段已设置为false"))}K.info("得分题功能已关闭")}}catch(j){console.error("关闭得分题功能失败:",j),K.error("关闭得分题功能失败")}},Sa=async g=>{var e;if(console.log("色盲题开关状态:",g?"开启":"关闭"),g){const j=await Lt({page:1,limit:1e3,question_form:3,tenant_id:1});console.log(j),j&&j.data?Gi({position_id:o.query.id,question_id:{question_id:j.data.items.map(x=>x.id)},tenant_id:1}).then(async x=>{var Y;if(x.code===2e3){try{if(Oe.value>0)await fn({id:Oe.value,enable_color_blind_test:!0}),console.log("配置中的enable_color_blind_test字段已更新为true");else{const k=await cn({position_id:o.query.id,enable_color_blind_test:!0,tenant_id:1});k&&k.code===2e3&&(Oe.value=((Y=k.data)==null?void 0:Y.id)||k.data,console.log("配置创建成功,enable_color_blind_test字段已设置为true"))}}catch(k){console.error("更新enable_color_blind_test字段失败:",k)}K.success("色盲题功能已开启")}else K.error("色盲题功能开启失败")}):K.error("获取色盲题目列表失败")}else try{const j=await Lt({page:1,limit:1e3,question_form:3,tenant_id:1});if(j&&j.data){if(await $i({position_id:o.query.id,question_id:j.data.items.map(x=>x.id),tenant_id:1}),Oe.value>0)await fn({id:Oe.value,enable_color_blind_test:!1}),console.log("配置中的enable_color_blind_test字段已更新为false");else{const x=await cn({position_id:o.query.id,enable_color_blind_test:!1,tenant_id:1});x&&x.code===2e3&&(Oe.value=((e=x.data)==null?void 0:e.id)||x.data,console.log("配置创建成功,enable_color_blind_test字段已设置为false"))}K.info("色盲题功能已关闭")}}catch(j){console.error("关闭色盲题功能失败:",j),K.error("关闭色盲题功能失败")}},To=$(!1),ln=$(""),tt=$([]),Jt=$([]),qn=$(!1),Do=$({}),Ci=$(!1),Ai=$(0),_n=$(0),lt=nt({page:1,pageSize:10,keyword:"",question_form:null}),Wt=nt({page:1,limit:20,keyword:"",question_form:null}),Zo=async()=>{try{const g={...lt,keyword:ln.value,...lt.question_form!==null&&{question_form:lt.question_form}},e=await Lt(g);e&&e.data&&(tt.value=e.data.items,Ai.value=e.data.total)}catch(g){console.error("获取题目列表失败:",g),K.error("获取题目列表失败")}},Ht=()=>{lt.page=1,Zo()},Ea=g=>{lt.pageSize=g,Zo()},xa=g=>{lt.page=g,Zo()},wi=g=>{Jt.value=g},Oi=()=>{To.value=!1,Jt.value=[],ln.value=""},Ia=()=>{if(Jt.value.length===0){K.warning("请至少选择一个题目");return}console.log(Jt.value);const g=Jt.value.map(e=>({id:e.id||Date.now(),title:e.question||e.title,ability:e.ability||"未设置",content:e.content||e.question,target:e.target||"未设置",competency_tags:e.competency_tags||[],question_form_name:e.question_form_name,scoring_reference:e.scoring_reference,question_form:e.question_form,is_required_correct:e.is_required_correct,weight:100,maxAnswers:1,enable_follow_up:!0,options:e.options||[],source:"custom_selected"}));Z.value.push(...g),To.value=!1,Jt.value=[],ln.value=""},Q=nt({name:{visible:!0,label:"姓名",required:!0},gender:{visible:!0,label:"性别",required:!0},three_period:{visible:!0,label:"是否为三期",required:!0},phone:{visible:!0,label:"手机号",required:!0},id_card:{visible:!0,label:"身份证号",required:!0},ethnicity:{visible:!0,label:"民族",required:!0},height:{visible:!0,label:"身高(cm)",required:!1},weight:{visible:!0,label:"体重(kg)",required:!1},current_address:{visible:!0,label:"现居住地址",required:!0},household_location:{visible:!0,label:"户口所在地",required:!1},marital_status:{visible:!0,label:"婚育状况",required:!1},expected_salary:{visible:!0,label:"期望薪资(元/月)",required:!1},family_member:{visible:!0,label:"家庭成员",fields:{relation:{visible:!0,label:"称谓",required:!0},name:{visible:!0,label:"姓名",required:!0},workplace_address:{visible:!0,label:"工作单位/家庭地址",required:!1},position:{visible:!0,label:"职务",required:!1},phone:{visible:!0,label:"联系电话",required:!0},is_emergency_contact:{visible:!0,label:"是否为紧急联系人",required:!1}}},education:{visible:!0,label:"教育经历",fields:{start_time:{visible:!0,label:"开始时间",required:!0},end_time:{visible:!0,label:"结束时间",required:!0},school_name:{visible:!0,label:"学校名称",required:!0},major:{visible:!0,label:"专业",required:!0},degree:{visible:!0,label:"学历",required:!0}}},skills:{visible:!0,label:"专业技能",required:!0},training:{visible:!0,label:"受过的培训",required:!0},work_experience:{visible:!0,label:"工作经历",fields:{start_time:{visible:!0,label:"开始时间",required:!0},end_time:{visible:!0,label:"结束时间",required:!0},company_name:{visible:!0,label:"单位名称",required:!0},employee_count:{visible:!0,label:"单位人数",required:!0},department:{visible:!0,label:"任职部门",required:!0},position:{visible:!0,label:"担任职务",required:!0},monthly_salary:{visible:!0,label:"月总收入",required:!0},supervisor:{visible:!0,label:"直接领导",required:!0},supervisor_phone:{visible:!0,label:"领导电话",required:!0}}}}),Ca=async()=>{try{const g={position_id:o.query.id,require_resume_upload:!0,resume_file_types:["pdf","docx","doc"],max_resume_size_mb:10,require_basic_info:!0,profile_fields_config:{name:{required:Q.name.required,visible:Q.name.visible},phone:{required:Q.phone.required,visible:Q.phone.visible},id_card:{required:Q.id_card.required,visible:Q.id_card.visible},gender:{required:Q.gender.required,visible:Q.gender.visible},birth_date:{required:!1,visible:!0},political_status:{required:!1,visible:!0},ethnicity:{required:Q.ethnicity.required,visible:Q.ethnicity.visible},height:{required:Q.height.required,visible:Q.height.visible},weight:{required:Q.weight.required,visible:Q.weight.visible},marital_status:{required:Q.marital_status.required,visible:Q.marital_status.visible}},require_education_info:Q.education.visible,education_fields_config:{school_name:{required:Q.education.fields.school_name.required,visible:Q.education.fields.school_name.visible},major:{required:Q.education.fields.major.required,visible:Q.education.fields.major.visible},degree:{required:Q.education.fields.degree.required,visible:Q.education.fields.degree.visible},start_date:{required:Q.education.fields.start_time.required,visible:Q.education.fields.start_time.visible},end_date:{required:Q.education.fields.end_time.required,visible:Q.education.fields.end_time.visible}},require_work_experience:Q.work_experience.visible,work_experience_fields_config:{company_name:{required:Q.work_experience.fields.company_name.required,visible:Q.work_experience.fields.company_name.visible},position:{required:Q.work_experience.fields.position.required,visible:Q.work_experience.fields.position.visible},department:{required:Q.work_experience.fields.department.required,visible:Q.work_experience.fields.department.visible},start_date:{required:Q.work_experience.fields.start_time.required,visible:Q.work_experience.fields.start_time.visible},end_date:{required:Q.work_experience.fields.end_time.required,visible:Q.work_experience.fields.end_time.visible},job_description:{required:!0,visible:!0},achievements:{required:!1,visible:!0},resignation_reason:{required:!1,visible:!0}},require_family_info:Q.family_member.visible,family_fields_config:{relation:{required:Q.family_member.fields.relation.required,visible:Q.family_member.fields.relation.visible},name:{required:Q.family_member.fields.name.required,visible:Q.family_member.fields.name.visible},workplace:{required:Q.family_member.fields.workplace_address.required,visible:Q.family_member.fields.workplace_address.visible},position:{required:Q.family_member.fields.position.required,visible:Q.family_member.fields.position.visible},phone:{required:Q.family_member.fields.phone.required,visible:Q.family_member.fields.phone.visible}},require_training_info:!1,training_fields_config:{training_name:{required:!0,visible:!0},institution:{required:!0,visible:!0},start_date:{required:!0,visible:!0},end_date:{required:!1,visible:!0},certificate:{required:!1,visible:!0}},enable_posture_check:!0,posture_check_config:{required_photos:["front","side","back"],instructions:"请按照提示上传您的全身照片,确保光线充足,背景简洁"},interview_duration_minutes:45,enable_video_recording:!0,enable_face_recognition:!0,scoring_method:"hybrid",auto_analysis_enabled:!0,custom_welcome_message:"欢迎参加咖啡师岗位的面试,请放松心情,准备好开始面试吧!",custom_instructions:"本次面试共有10个问题,每个问题有60秒的回答时间,请简洁明了地表达您的观点。",notification_config:{send_email:!0,send_sms:!1,notify_hr:!0,completion_message:"感谢您完成面试,我们将在3个工作日内给您回复。"},is_active:!0,is_template:!1};Oe.value==0||(g.id=Oe.value),Oe.value==0?(await cn(g)).code==2e3?(K.success("配置保存成功"),xe.value=!1,C.value=!1):K.error("配置保存失败"):(await fn(g)).code==2e3?(K.success("配置保存成功"),xe.value=!1,C.value=!1):K.error("配置保存失败")}catch(g){console.error("保存配置失败:",g),K.error("配置保存失败")}},Aa=()=>({name:Q.name,gender:Q.gender,three_period:Q.three_period,phone:Q.phone,id_card:Q.id_card,ethnicity:Q.ethnicity,height:Q.height,weight:Q.weight,current_address:Q.current_address,household_location:Q.household_location,marital_status:Q.marital_status,expected_salary:Q.expected_salary}),wa=()=>({skills:Q.skills,training:Q.training}),eo=$(!1),Me=nt({faceConsistency:!0,preventScreenshot:!0,screenSwitchAlert:!0,positionDetection:!0,eyeMovementDetection:!0,reviewInterview:!1,beforeStart:!0,beforeStartText:"你好,我是本次面试的面试官,欢迎参加本公司的线上面试!面试预计需要15分钟,请你提前安排在网络良好、光线亮度合适、且相对安静的环境参加这次面试以免影响本次面试的结果。如果你在面试过程中遇到问题,请与我们的招聘人员联系。",afterStartReminder:!1,afterStartText:"本次面试如有15分钟,高效调前后流程,安静好心理",disclaimer:!1,disclaimerText:"本次面试已全部结束,感谢您的参与,请等待后续通知。"}),En=$(!1),to=$(!1),no=$(!1),Yt=$(""),xn=$(""),In=$(""),Oa=()=>{eo.value=!1,En.value=!1,to.value=!1,no.value=!1,Object.assign(Me,{faceConsistency:!0,preventScreenshot:!0,screenSwitchAlert:!0,positionDetection:!0,eyeMovementDetection:!0,reviewInterview:!1,beforeStart:!0,beforeStartText:"你好,我想咨询其间的面试,欢迎来到大面试",afterStartReminder:!1,afterStartText:"本次面试如有15分钟,高效调前后流程,安静好心理",disclaimer:!1,disclaimerText:"本次面试已全部流程拍摄,面试者同意可为今后资讯调研"})},Ta=()=>{console.log("保存面试设置:",Me),K.success("面试设置已保存"),eo.value=!1},Da=()=>{Dn(o.query.id).then(g=>{eo.value=!0,Oe.value=g.data.id,Me.beforeStartText=g.data.digital_human_opening_speech})},Pa=()=>{Yt.value=Me.beforeStartText,En.value=!0},Va=()=>{En.value=!1,Yt.value=""},Ra=async()=>{var g;if(!Yt.value.trim()){K.warning("开始前提示内容不能为空");return}Me.beforeStartText=Yt.value.trim();try{let e;if(console.log(Oe.value),Oe.value==0)e=await cn({position_id:o.query.id,digital_human_opening_speech:Yt.value.trim()}),e.code===2e3?(Oe.value=((g=e.data)==null?void 0:g.id)||e.data,K.success("开始前提示内容已创建"),En.value=!1):K.error("开始前提示内容创建失败");else if(e=await fn({id:Oe.value,digital_human_opening_speech:Yt.value.trim()}),e.code===2e3){K.success("开始前提示内容已更新"),En.value=!1;try{const j={config_id:Oe.value};await _o(j),console.log("开场白生成成功")}catch(j){console.error("获取开场白失败:",j),K.warning("开场白生成中,请稍后")}}else K.error("开始前提示内容更新失败")}catch(e){console.error("保存开始前提示内容失败:",e),K.error("保存失败,请重试")}},Ua=()=>{xn.value=Me.afterStartText,to.value=!0},Ka=()=>{to.value=!1,xn.value=""},Ma=()=>{if(!xn.value.trim()){K.warning("开始后提醒内容不能为空");return}Me.afterStartText=xn.value.trim(),to.value=!1,K.success("开始后提醒内容已更新")},Ba=()=>{In.value=Me.disclaimerText,no.value=!0},Na=()=>{no.value=!1,In.value=""},ja=()=>{if(!In.value.trim()){K.warning("免责声明内容不能为空");return}Me.disclaimerText=In.value.trim(),no.value=!1,K.success("免责声明内容已更新")},sn=nt({openQuestionsCount:5,choiceQuestionsCount:10}),Ti=()=>{console.log("题目数量已更新:",sn)},Fa=async()=>{try{Ye.value=!0;const g=H.value.map(x=>x.id);if(g.length===0){K.warning("请先选择能力标签");return}const e={position_id:o.query.id,competency_tag_ids:g,open_questions_count:sn.openQuestionsCount,choice_questions_count:sn.choiceQuestionsCount,auto_save:!0,tenant_id:1},j=await ul(e);if(j&&j.data){const x=await ha({tenant_id:1,page:1,limit:30,position_id:o.query.id});if(console.log(x),x===null){console.log("轮询被取消,停止处理");return}if(x&&x.data&&x.data.dataList){const Y=x.data.dataList.map(k=>({id:k.id||Date.now(),title:k.question||k.title,ability:k.ability||"未设置",content:k.content||k.question,target:k.target||"未设置",competency_tags:k.competency_tag_info||[],question_form_name:k.question_form_name,scoring_reference:k.scoring_reference,question_form:k.question_form,is_required_correct:k.is_required_correct,weight:100,maxAnswers:1,enable_follow_up:!0,options:k.options||[],source:"ai_generated"}));Z.value=Y,K.success(`已成功生成${Y.length}个面试题目`)}else K.warning("AI生成题目中,请稍后再试")}}catch(g){console.error("AI自动组题失败:",g),K.error("AI自动组题失败,请重试")}finally{Ye.value=!1}},ka=g=>{if(T.competency_tags=[],g.length>0){const e=Math.floor(100/g.length),j=100%g.length;T.competency_tags=g.map((x,Y)=>{const k=L.value.find(Ce=>Ce.id===x);return{id:x,name:k?k.name:`标签${x}`,weight:e+(Y<j?1:0)}})}},La=()=>T.competency_tags.length===0?(K.warning("请至少选择一个胜任力标签"),!1):T.weight<=0||T.weight>100?(K.warning("权重必须在1-100之间"),!1):!0,Qa=g=>{switch(T.type=g,g){case"open":T.suggestedDuration=120;break;case"single":case"multiple":T.suggestedDuration=60;break;case"fill":T.suggestedDuration=30;break;case"self":T.suggestedDuration=180;break;default:T.suggestedDuration=60}},Cn=$(!1);return(g,e)=>{const j=Fe("page-header"),x=Fe("el-button"),Y=Fe("el-icon"),k=Fe("el-input"),Ce=Fe("el-cascader"),ne=Fe("el-option"),Ee=Fe("el-select"),An=Fe("el-tag"),za=Fe("el-date-picker"),oo=Fe("el-card"),Je=Fe("el-switch"),Ut=Fe("el-dialog"),wn=Fe("el-checkbox"),io=Fe("el-input-number"),dn=Fe("el-radio"),Di=Fe("el-upload"),Pi=Fe("el-radio-group"),On=Fe("el-tooltip"),Tn=Fe("el-table-column"),Vi=Fe("el-table"),Ri=Fe("el-pagination"),Xt=Fe("el-col"),Zt=Fe("el-row"),Ui=Xa("loading");return N(),W("div",ts,[d("div",ns,[f(j,{title:"测试",onBack:Bt}),d("div",os,[f(x,{type:"primary",onClick:Dt},{default:b(()=>e[90]||(e[90]=[M("保存")])),_:1}),f(x,{onClick:qe},{default:b(()=>e[91]||(e[91]=[M("分享职位")])),_:1})])]),d("div",is,[f(oo,{class:"detail-card"},{default:b(()=>[e[123]||(e[123]=d("div",{class:"section-title"},[d("div",{class:"section-line"}),d("span",null,"职位详情")],-1)),d("div",rs,[e[94]||(e[94]=d("div",{class:"detail-label"},"职位名称",-1)),So.value?(N(),W("div",ls,[f(k,{modelValue:yn.value,"onUpdate:modelValue":e[0]||(e[0]=v=>yn.value=v),placeholder:"请输入职位名称",maxlength:"20","show-word-limit":""},null,8,["modelValue"]),d("div",ss,[f(x,{size:"small",onClick:wr},{default:b(()=>e[92]||(e[92]=[M("取消")])),_:1}),f(x,{size:"small",type:"primary",onClick:Or},{default:b(()=>e[93]||(e[93]=[M("保存")])),_:1})])])):(N(),W("div",as,[M(ae(s.title)+" ",1),f(x,{type:"text",class:"edit-title-btn",onClick:Ar},{default:b(()=>[f(Y,null,{default:b(()=>[f(be(ft))]),_:1})]),_:1})]))]),d("div",ds,[e[97]||(e[97]=d("div",{class:"detail-label"},"工作地点",-1)),Eo.value?(N(),W("div",cs,[f(Ce,{modelValue:Ft.value,"onUpdate:modelValue":e[1]||(e[1]=v=>Ft.value=v),options:be(S),props:{expandTrigger:"hover",checkStrictly:!1,value:"code",label:"name"},style:{width:"100%"},placeholder:"请选择工作地点",clearable:"",onChange:E},null,8,["modelValue","options"]),d("div",fs,[f(x,{size:"small",onClick:Dr},{default:b(()=>e[95]||(e[95]=[M("取消")])),_:1}),f(x,{size:"small",type:"primary",onClick:Pr},{default:b(()=>e[96]||(e[96]=[M("保存")])),_:1})])])):(N(),W("div",us,[M(ae((()=>{if(!s.location)return"暂无";if(Array.isArray(s.location))return s.location.join(",");if(typeof s.location=="string")try{return s.location.replace(/[\[\]']/g,"").split(",").map(re=>re.trim()).join(",")}catch{return s.location}return s.location})())+" ",1),f(x,{type:"text",class:"edit-title-btn",onClick:Tr},{default:b(()=>[f(Y,null,{default:b(()=>[f(be(ft))]),_:1})]),_:1})]))]),d("div",vs,[e[100]||(e[100]=d("div",{class:"detail-label"},"职位薪资",-1)),xo.value?(N(),W("div",ms,[f(k,{modelValue:Fn.value,"onUpdate:modelValue":e[2]||(e[2]=v=>Fn.value=v),placeholder:"请输入职位薪资",maxlength:"30","show-word-limit":""},null,8,["modelValue"]),d("div",gs,[f(x,{size:"small",onClick:Rr},{default:b(()=>e[98]||(e[98]=[M("取消")])),_:1}),f(x,{size:"small",type:"primary",onClick:Ur},{default:b(()=>e[99]||(e[99]=[M("保存")])),_:1})])])):(N(),W("div",ps,[M(ae(s.salary_range||"暂无")+" ",1),f(x,{type:"text",class:"edit-title-btn",onClick:Vr},{default:b(()=>[f(Y,null,{default:b(()=>[f(be(ft))]),_:1})]),_:1})]))]),d("div",hs,[e[103]||(e[103]=d("div",{class:"detail-label"},"工作经验",-1)),Io.value?(N(),W("div",bs,[f(Ee,{modelValue:kn.value,"onUpdate:modelValue":e[3]||(e[3]=v=>kn.value=v),placeholder:"请选择工作经验",style:{width:"100%"}},{default:b(()=>[f(ne,{label:"不限",value:"不限"}),f(ne,{label:"应届毕业生",value:"应届毕业生"}),f(ne,{label:"1年以下",value:"1年以下"}),f(ne,{label:"1-3年",value:"1-3年"}),f(ne,{label:"3-5年",value:"3-5年"}),f(ne,{label:"5-10年",value:"5-10年"}),f(ne,{label:"10年以上",value:"10年以上"})]),_:1},8,["modelValue"]),d("div",Ss,[f(x,{size:"small",onClick:Mr},{default:b(()=>e[101]||(e[101]=[M("取消")])),_:1}),f(x,{size:"small",type:"primary",onClick:Br},{default:b(()=>e[102]||(e[102]=[M("保存")])),_:1})])])):(N(),W("div",ys,[M(ae(s.work_experience_required||"暂无")+" ",1),f(x,{type:"text",class:"edit-title-btn",onClick:Kr},{default:b(()=>[f(Y,null,{default:b(()=>[f(be(ft))]),_:1})]),_:1})]))]),d("div",Es,[e[106]||(e[106]=d("div",{class:"detail-label"},"学历要求",-1)),Co.value?(N(),W("div",Is,[f(Ee,{modelValue:Ln.value,"onUpdate:modelValue":e[4]||(e[4]=v=>Ln.value=v),placeholder:"请选择学历要求",style:{width:"100%"}},{default:b(()=>[f(ne,{label:"不限",value:"不限"}),f(ne,{label:"高中",value:"高中"}),f(ne,{label:"大专",value:"大专"}),f(ne,{label:"本科",value:"本科"}),f(ne,{label:"硕士",value:"硕士"}),f(ne,{label:"博士",value:"博士"})]),_:1},8,["modelValue"]),d("div",Cs,[f(x,{size:"small",onClick:jr},{default:b(()=>e[104]||(e[104]=[M("取消")])),_:1}),f(x,{size:"small",type:"primary",onClick:Fr},{default:b(()=>e[105]||(e[105]=[M("保存")])),_:1})])])):(N(),W("div",xs,[M(ae(s.education_required||"暂无")+" ",1),f(x,{type:"text",class:"edit-title-btn",onClick:Nr},{default:b(()=>[f(Y,null,{default:b(()=>[f(be(ft))]),_:1})]),_:1})]))]),d("div",As,[e[109]||(e[109]=d("div",{class:"detail-label"},"所属部门",-1)),Ao.value?(N(),W("div",Os,[f(k,{modelValue:Qn.value,"onUpdate:modelValue":e[5]||(e[5]=v=>Qn.value=v),placeholder:"请输入所属部门",maxlength:"30","show-word-limit":""},null,8,["modelValue"]),d("div",Ts,[f(x,{size:"small",onClick:Lr},{default:b(()=>e[107]||(e[107]=[M("取消")])),_:1}),f(x,{size:"small",type:"primary",onClick:Qr},{default:b(()=>e[108]||(e[108]=[M("保存")])),_:1})])])):(N(),W("div",ws,[M(ae(s.department||"暂无")+" ",1),f(x,{type:"text",class:"edit-title-btn",onClick:kr},{default:b(()=>[f(Y,null,{default:b(()=>[f(be(ft))]),_:1})]),_:1})]))]),d("div",Ds,[e[110]||(e[110]=d("div",{class:"detail-label"},"职位状态",-1)),d("div",Ps,[f(An,{type:gt(s.status)},{default:b(()=>[M(ae(Bn(s.status)),1)]),_:1},8,["type"])])]),d("div",Vs,[e[113]||(e[113]=d("div",{class:"detail-label"},"截止日期",-1)),wo.value?(N(),W("div",Us,[f(za,{modelValue:zn.value,"onUpdate:modelValue":e[6]||(e[6]=v=>zn.value=v),type:"date",placeholder:"请选择截止日期",format:"YYYY-MM-DD","value-format":"YYYY-MM-DD",style:{width:"100%"}},null,8,["modelValue"]),d("div",Ks,[f(x,{size:"small",onClick:Gr},{default:b(()=>e[111]||(e[111]=[M("取消")])),_:1}),f(x,{size:"small",type:"primary",onClick:$r},{default:b(()=>e[112]||(e[112]=[M("保存")])),_:1})])])):(N(),W("div",Rs,[M(ae(s.end_date||"暂无")+" ",1),f(x,{type:"text",class:"edit-title-btn",onClick:zr},{default:b(()=>[f(Y,null,{default:b(()=>[f(be(ft))]),_:1})]),_:1})]))]),d("div",Ms,[e[116]||(e[116]=d("div",{class:"detail-label"},"职位要求",-1)),Gn.value?ke("",!0):(N(),W("div",{key:0,class:"detail-value html-content",innerHTML:s.requirements},null,8,Bs)),Gn.value?(N(),W("div",Ns,[f(k,{modelValue:$n.value,"onUpdate:modelValue":e[7]||(e[7]=v=>$n.value=v),type:"textarea",rows:"6",placeholder:"请输入职位要求",maxlength:"1000","show-word-limit":""},null,8,["modelValue"]),d("div",js,[f(x,{size:"small",onClick:Wr},{default:b(()=>e[114]||(e[114]=[M("取消")])),_:1}),f(x,{size:"small",type:"primary",onClick:Hr},{default:b(()=>e[115]||(e[115]=[M("保存")])),_:1})])])):(N(),Ie(x,{key:1,type:"text",class:"edit-title-btn",onClick:Jr},{default:b(()=>[f(Y,null,{default:b(()=>[f(be(ft))]),_:1})]),_:1}))]),e[124]||(e[124]=d("div",{style:{width:"100%","border-bottom":"1px solid #e5e5e5"}},null,-1)),d("div",Fs,[e[119]||(e[119]=d("div",{class:"detail-label"},"职位描述",-1)),Jn.value?ke("",!0):(N(),W("div",{key:0,class:"detail-value html-content",innerHTML:s.description},null,8,ks)),Jn.value?(N(),W("div",Ls,[f(k,{modelValue:Wn.value,"onUpdate:modelValue":e[8]||(e[8]=v=>Wn.value=v),type:"textarea",rows:"6",placeholder:"请输入职位描述",maxlength:"1000","show-word-limit":""},null,8,["modelValue"]),d("div",Qs,[f(x,{size:"small",onClick:Xr},{default:b(()=>e[117]||(e[117]=[M("取消")])),_:1}),f(x,{size:"small",type:"primary",onClick:Zr},{default:b(()=>e[118]||(e[118]=[M("保存")])),_:1})])])):(N(),Ie(x,{key:1,type:"text",class:"edit-title-btn",onClick:Yr},{default:b(()=>[f(Y,null,{default:b(()=>[f(be(ft))]),_:1})]),_:1}))]),d("div",zs,[e[122]||(e[122]=d("div",{class:"detail-label"},"能力标签",-1)),Oo.value?(N(),W("div",$s,[f(Ee,{modelValue:Sn.value,"onUpdate:modelValue":e[9]||(e[9]=v=>Sn.value=v),multiple:"",filterable:"",placeholder:"请选择能力标签",style:{width:"100%"}},{default:b(()=>[(N(!0),W(We,null,He(L.value,v=>(N(),Ie(ne,{key:v.id,label:v.name,value:v.id},null,8,["label","value"]))),128))]),_:1},8,["modelValue"]),d("div",Js,[f(x,{size:"small",onClick:na},{default:b(()=>e[120]||(e[120]=[M("取消")])),_:1}),f(x,{size:"small",type:"primary",onClick:oa},{default:b(()=>e[121]||(e[121]=[M("保存")])),_:1})])])):(N(),W("div",Gs,[(N(!0),W(We,null,He(s.competency_tags,v=>(N(),Ie(An,{key:v.id,effect:"plain",class:"competency-tag"},{default:b(()=>[M(ae(v.name),1)]),_:2},1024))),128)),f(x,{type:"text",class:"edit-title-btn",onClick:ta},{default:b(()=>[f(Y,null,{default:b(()=>[f(be(ft))]),_:1})]),_:1})]))])]),_:1}),d("div",Ws,[f(oo,{class:"status-card"},{default:b(()=>[e[125]||(e[125]=d("div",{class:"section-title"},[d("div",{class:"section-line"}),d("span",null,"职位状态")],-1)),d("div",Hs,[f(Je,{modelValue:u.value,"onUpdate:modelValue":e[10]||(e[10]=v=>u.value=v),"inactive-text":"",onChange:_e},null,8,["modelValue"]),d("span",Ys,ae(u.value?"已启用":"待启用"),1)])]),_:1}),f(oo,{class:"status-card"},{default:b(()=>[d("div",Xs,[e[127]||(e[127]=d("div",{class:"section-line"},null,-1)),e[128]||(e[128]=d("span",null,"职位性质",-1)),bn.value?ke("",!0):(N(),Ie(x,{key:0,type:"text",class:"edit-btn",onClick:qr},{default:b(()=>e[126]||(e[126]=[M("编辑")])),_:1}))]),d("div",Zs,[bn.value?ke("",!0):(N(),W("div",qs,ae(Pt(s.job_type)),1)),bn.value?(N(),W("div",_s,[f(Ee,{modelValue:Hn.value,"onUpdate:modelValue":e[11]||(e[11]=v=>Hn.value=v),placeholder:"请选择职位性质",style:{width:"100%"}},{default:b(()=>[f(ne,{label:"全职",value:0}),f(ne,{label:"兼职",value:1}),f(ne,{label:"实习",value:2}),f(ne,{label:"其他",value:3})]),_:1},8,["modelValue"]),d("div",ed,[f(x,{size:"small",onClick:_r},{default:b(()=>e[129]||(e[129]=[M("取消")])),_:1}),f(x,{size:"small",type:"primary",onClick:ea},{default:b(()=>e[130]||(e[130]=[M("保存")])),_:1})])])):ke("",!0)])]),_:1}),f(oo,{class:"status-card"},{default:b(()=>[d("div",td,[e[132]||(e[132]=d("div",{class:"section-line"},null,-1)),e[133]||(e[133]=d("span",null,"招聘流程",-1)),f(x,{type:"text",class:"edit-btn",onClick:Nt},{default:b(()=>e[131]||(e[131]=[M("设置流程")])),_:1})]),d("div",nd,[(N(!0),W(We,null,He(t,(v,re)=>(N(),W("div",{key:v.id,class:Et(["process-step",{disabled:!v.active}])},[d("div",od,ae(re+1),1),d("div",id,[d("div",rd,ae(v.name),1)])],2))),128))])]),_:1}),f(oo,{class:"status-card"},{default:b(()=>[d("div",ad,[e[135]||(e[135]=d("div",{class:"section-line"},null,-1)),e[136]||(e[136]=d("span",null,"面试设置",-1)),f(x,{type:"text",class:"edit-btn",onClick:Da},{default:b(()=>e[134]||(e[134]=[M("编辑")])),_:1})])]),_:1})])]),f(Ut,{title:"设置招聘流程",modelValue:r.value,"onUpdate:modelValue":e[13]||(e[13]=v=>r.value=v),width:"500px","close-on-click-modal":!1},{footer:b(()=>[d("span",pd,[f(x,{onClick:St},{default:b(()=>e[140]||(e[140]=[M("取消")])),_:1}),f(x,{type:"primary",onClick:bt},{default:b(()=>e[141]||(e[141]=[M("确定")])),_:1})])]),default:b(()=>[d("div",ld,[(N(!0),W(We,null,He(t,(v,re)=>(N(),W("div",{key:v.id},[(N(),W("div",sd,[f(x,{type:"text",onClick:Ae=>Gt(re,Ae)},{default:b(()=>[f(Y,null,{default:b(()=>[f(be(un))]),_:1})]),_:2},1032,["onClick"])])),d("div",{class:Et(["process-edit-item",{highlight:v.active}])},[d("div",dd,ae(re+1),1),d("div",ud,[d("div",null,ae(v.name),1),d("div",cd,ae(v.description),1)]),d("div",fd,[f(x,{type:"info",size:"small",plain:"",onClick:Ae=>ra(v)},{default:b(()=>e[137]||(e[137]=[M(" 修改 ")])),_:2},1032,["onClick"]),f(x,{type:"danger",size:"small",plain:"",style:{"margin-top":"10px","margin-left":"0px"},onClick:Ae=>hn(re)},{default:b(()=>e[138]||(e[138]=[M(" 删除 ")])),_:2},1032,["onClick"])])],2)]))),128)),e[139]||(e[139]=d("div",{class:"add-process-btn"},null,-1))]),C.value?(N(),W("div",{key:0,class:"process-options-menu",style:qa({top:U.top,left:U.left}),onClick:e[12]||(e[12]=Za(()=>{},["stop"]))},[(N(),W(We,null,He(l,v=>d("div",{key:v.value,class:"process-option-item",onClick:re=>tn(v.value,v.label)},ae(v.label),9,vd)),64))],4)):ke("",!0)]),_:1},8,["modelValue"]),f(be(qo),{title:"AI考察",modelValue:P.value,"onUpdate:modelValue":e[34]||(e[34]=v=>P.value=v),direction:"rtl",size:"60%","close-on-click-modal":!1,class:"ai-video-drawer","destroy-on-close":!1},{footer:b(()=>[d("div",Ku,[D.value>1?(N(),Ie(x,{key:0,size:"small",onClick:on},{default:b(()=>e[183]||(e[183]=[M("上一步")])),_:1})):ke("",!0),f(x,{onClick:rn,size:"small"},{default:b(()=>e[184]||(e[184]=[M("取消")])),_:1}),D.value<3?(N(),Ie(x,{key:1,type:"primary",size:"small",onClick:nn,style:{"background-color":"#0419a3","border-color":"#0419a3"}},{default:b(()=>e[185]||(e[185]=[M("下一步")])),_:1})):(N(),Ie(x,{key:2,type:"success",onClick:$t,size:"small",style:{"background-color":"#0419a3","border-color":"#0419a3"}},{default:b(()=>e[186]||(e[186]=[M("新增")])),_:1}))])]),default:b(()=>[d("div",md,[d("div",{class:Et(["step-item",{active:D.value===1}]),onClick:e[14]||(e[14]=v=>jt(1))},[e[142]||(e[142]=d("div",{class:"step-number"},"1",-1)),d("div",{class:Et(["step-title",{"active-title":D.value===1}])},"考察能力",2)],2),d("div",{class:Et(["step-line",{"active-line":D.value>=2}])},null,2),d("div",{class:Et(["step-item",{active:D.value===2}]),onClick:e[15]||(e[15]=v=>jt(2))},[e[143]||(e[143]=d("div",{class:"step-number"},"2",-1)),d("div",{class:Et(["step-title",{"active-title":D.value===2}])},"面试题目",2)],2),d("div",{class:Et(["step-line",{"active-line":D.value>=3}])},null,2),d("div",{class:Et(["step-item",{active:D.value===3}]),onClick:e[16]||(e[16]=v=>jt(3))},[e[144]||(e[144]=d("div",{class:"step-number"},"3",-1)),d("div",{class:Et(["step-title",{"active-title":D.value===3}])},"系统设置",2)],2)]),D.value===1?Mi((N(),W("div",gd,[d("div",hd,[e[151]||(e[151]=d("div",{class:"ai-video-options-header"},[d("div",{class:"ai-video-options-header-title"},[d("span",null,"AI根据岗位信息生成的能力,创建完步骤后,会自动将选择的新智能能力加入到该职位的考察能力列表中。")])],-1)),d("div",yd,[d("div",bd,[(N(!0),W(We,null,He(Rt.value.slice(0,10),v=>(N(),Ie(wn,{key:v.id,modelValue:v.selected,"onUpdate:modelValue":re=>v.selected=re,onChange:re=>xi(v,re),class:"custom-checkbox"},{default:b(()=>[d("div",Sd,[d("span",null,ae(v.name),1),e[145]||(e[145]=d("img",{src:Li,alt:"",class:"sheng"},null,-1))])]),_:2},1032,["modelValue","onUpdate:modelValue","onChange"]))),128))])]),d("div",Ed,[d("div",xd,[e[147]||(e[147]=d("h3",{style:{color:"#808080"}},"备选考核维度",-1)),d("div",Id,[f(x,{type:"primary",class:"custom-btn",plain:"",size:"small",onClick:y},{default:b(()=>e[146]||(e[146]=[M("重新生成")])),_:1})])]),d("div",Cd,[(N(!0),W(We,null,He(Rt.value.slice(10,20),v=>(N(),Ie(wn,{key:v.id,modelValue:v.selected,"onUpdate:modelValue":re=>v.selected=re,onChange:re=>xi(v,re),class:"custom-checkbox"},{default:b(()=>[d("div",Ad,[d("span",null,ae(v.name),1)])]),_:2},1032,["modelValue","onUpdate:modelValue","onChange"]))),128))])]),d("div",wd,[e[150]||(e[150]=d("h3",{style:{color:"#808080"}},"自定义维度",-1)),d("div",Od,[d("div",Td,[d("div",Dd,[f(k,{style:{width:"150px"},modelValue:an.value,"onUpdate:modelValue":e[17]||(e[17]=v=>an.value=v),placeholder:"请输入维度名称"},null,8,["modelValue"])]),d("div",Pd,[e[148]||(e[148]=d("div",{class:"input-label"},"特征描述:",-1)),f(k,{modelValue:Yn.value,"onUpdate:modelValue":e[18]||(e[18]=v=>Yn.value=v),style:{width:"500px"},type:"textarea",placeholder:"请输入特征描述"},null,8,["modelValue"])])]),d("div",Vd,[f(x,{type:"primary",onClick:la},{default:b(()=>e[149]||(e[149]=[M("添加")])),_:1})])])])])])),[[Ui,Cn.value]]):ke("",!0),D.value===2?(N(),W("div",Rd,[d("div",Ud,[d("div",Kd,[d("div",Md,[f(x,{plain:"",class:"custom-btn",onClick:se},{default:b(()=>[f(Y,null,{default:b(()=>[f(be(un))]),_:1}),e[152]||(e[152]=M(" 自定义题目 "))]),_:1}),f(x,{plain:"",class:"custom-btn"},{default:b(()=>[f(Y,null,{default:b(()=>[f(be(Ni))]),_:1}),e[153]||(e[153]=M(" 导入题目 "))]),_:1}),d("div",Bd,[d("div",Nd,[e[154]||(e[154]=d("span",{class:"switch-label"},"开放题数量",-1)),f(io,{modelValue:sn.openQuestionsCount,"onUpdate:modelValue":e[19]||(e[19]=v=>sn.openQuestionsCount=v),min:1,max:10,size:"small",onChange:Ti},null,8,["modelValue"])]),d("div",jd,[e[155]||(e[155]=d("span",{class:"switch-label"},"选择题数量",-1)),f(io,{modelValue:sn.choiceQuestionsCount,"onUpdate:modelValue":e[20]||(e[20]=v=>sn.choiceQuestionsCount=v),min:1,max:20,size:"small",onChange:Ti},null,8,["modelValue"])]),d("div",Fd,[e[156]||(e[156]=d("span",{class:"switch-label"},"得分题",-1)),f(Je,{style:{"margin-top":"0px"},modelValue:we.enableScoreQuestions,"onUpdate:modelValue":e[21]||(e[21]=v=>we.enableScoreQuestions=v),onChange:ba},null,8,["modelValue"])]),d("div",kd,[e[157]||(e[157]=d("span",{class:"switch-label"},"色盲题",-1)),f(Je,{style:{"margin-top":"0px"},modelValue:we.enableColorBlindQuestions,"onUpdate:modelValue":e[22]||(e[22]=v=>we.enableColorBlindQuestions=v),onChange:Sa},null,8,["modelValue"])])])]),d("div",Ld,[e[158]||(e[158]=d("span",null,"预计面试时长: ",-1)),d("span",Qd,ae(Se.value),1),e[159]||(e[159]=d("span",{class:"duration-tip"},"拖动试题卡片可改变试题顺序",-1))])]),d("div",zd,[Mi((N(),W("div",Gd,[Z.value.length===0?(N(),W("div",$d,[e[162]||(e[162]=d("p",null,"暂无题目",-1)),e[163]||(e[163]=d("p",{class:"ai-tip"},'点击"AI自动组题"按钮',-1)),e[164]||(e[164]=d("p",{class:"ai-tip"},"可根据您选择的能力类型一键组题",-1)),f(x,{type:"success",class:"auto-generate-btn",loading:Ye.value,onClick:Fa},{default:b(()=>e[160]||(e[160]=[M(" AI自动组题 ")])),_:1},8,["loading"]),Ye.value&&be(kt)?(N(),Ie(x,{key:0,type:"warning",plain:"",size:"small",onClick:ya,style:{"margin-left":"10px"}},{default:b(()=>e[161]||(e[161]=[M(" 取消生成 ")])),_:1})):ke("",!0)])):(N(),W("div",Jd,[f(be(ir),{modelValue:Z.value,"onUpdate:modelValue":e[23]||(e[23]=v=>Z.value=v),"item-key":"id",handle:".drag-handle",onStart:ca,onEnd:fa,animation:"200","ghost-class":"sortable-ghost","chosen-class":"sortable-chosen","drag-class":"sortable-drag"},{item:b(({element:v})=>[d("div",Wd,[e[168]||(e[168]=d("div",{class:"drag-handle"},[d("img",{src:sl,alt:"",class:"dorp"})],-1)),d("div",Hd,[d("div",Yd,[d("div",Xd,[d("div",Zd,[d("span",qd,"题目"+ae(Z.value.indexOf(v)+1),1),d("span",null,[d("span",_d,ae("「"+v.question_form_name+"」"),1),M(ae(v.title),1)])]),d("div",eu,[(N(!0),W(We,null,He((v.competency_tag_info||v.competency_tags||[]).slice(0,2),(re,Ae)=>(N(),Ie(An,{key:re.id,effect:"plain",class:"competency-tag",size:"small"},{default:b(()=>[M(ae(re.name),1)]),_:2},1024))),128)),(v.competency_tag_info||v.competency_tags||[]).length>2?(N(),W("span",tu," +"+ae((v.competency_tag_info||v.competency_tags||[]).length-2),1)):ke("",!0)])])]),d("div",nu,[f(x,{type:"text",onClick:re=>ge(Z.value.indexOf(v))},{default:b(()=>[f(Y,null,{default:b(()=>[f(be(ft))]),_:1})]),_:2},1032,["onClick"]),f(x,{type:"text",onClick:re=>it(Z.value.indexOf(v))},{default:b(()=>[f(Y,null,{default:b(()=>[f(be(ji))]),_:1})]),_:2},1032,["onClick"])])]),d("div",ou,[d("div",iu,[d("span",null,ae(v.scoring_reference),1)])]),v.question_form==0?(N(),W("div",ru,[d("div",au,[f(Je,{style:{"margin-top":"0px"},modelValue:v.enable_follow_up,"onUpdate:modelValue":re=>v.enable_follow_up=re,onChange:_},null,8,["modelValue","onUpdate:modelValue"]),e[165]||(e[165]=d("span",{class:"answer-label"},"回答不充分追问",-1))]),d("div",lu,[e[166]||(e[166]=d("span",{class:"answer-label"},"追问轮数",-1)),f(Ee,{modelValue:v.maxAnswers,"onUpdate:modelValue":re=>v.maxAnswers=re,size:"small",placeholder:"请选择"},{default:b(()=>[f(ne,{label:"1次",value:1})]),_:2},1032,["modelValue","onUpdate:modelValue"])])])):ke("",!0),v.question_form==1?(N(),W("div",su,[d("div",du,[e[167]||(e[167]=d("span",{class:"answer-label"},"是否为红线题:",-1)),f(Ee,{modelValue:v.is_required_correct,"onUpdate:modelValue":re=>v.is_required_correct=re,onChange:re=>I(v.id,v.is_required_correct),size:"small",placeholder:"请选择"},{default:b(()=>[f(ne,{label:"是",value:!0}),f(ne,{label:"否",value:!1})]),_:2},1032,["modelValue","onUpdate:modelValue","onChange"])])])):ke("",!0)])]),_:1},8,["modelValue"])]))])),[[Ui,Ye.value]]),d("div",uu,[e[171]||(e[171]=d("div",{class:"dimension-title"},"已选胜任力考核维度",-1)),d("div",cu,[(N(!0),W(We,null,He(H.value,(v,re)=>(N(),W("div",{key:v.value,class:"dimension-item"},[d("div",fu,[d("div",vu,[d("span",pu,ae(v.label),1),e[169]||(e[169]=d("img",{src:Li,alt:"",class:"sheng"},null,-1))])]),d("div",{class:"dimension-content",onClick:Ae=>ma(re),title:"点击删除此胜任力标签"},e[170]||(e[170]=[d("div",{class:"ability-description"},ae("—"),-1)]),8,mu)]))),128))])])])])])):ke("",!0),D.value===3?(N(),W("div",gu,[d("div",hu,[d("div",yu,[e[182]||(e[182]=d("div",{class:"section-header"},"请选择面试官形象",-1)),d("div",bu,[d("div",Su,[Yo.value?(N(),W("img",{key:0,src:Yo.value,alt:"",style:{width:"100%",height:"100%","object-fit":"cover",transform:"translateZ(0)","backface-visibility":"hidden"}},null,8,Eu)):ke("",!0)]),d("div",null,[d("div",xu,[(N(!0),W(We,null,He(Ho.value,v=>(N(),W("div",{key:v.id,class:Et(["avatar-item",{active:ct.value.id===v.id}]),onClick:re=>sa(v)},[d("div",Cu,[d("div",{class:Et(["avatar-circle",{selected:ct.value.id===v.id}])},[d("img",{src:v.avatar_url||v.image,alt:v.name},null,8,Au)],2),d("div",{class:"avatar-name",title:v.name},ae(v.name),9,wu)])],10,Iu))),128))]),d("div",Ou,[e[172]||(e[172]=d("div",{class:"setting-label"},"「追问风格」",-1)),d("div",Tu,[f(Ee,{modelValue:at.followUpStyle,"onUpdate:modelValue":e[24]||(e[24]=v=>at.followUpStyle=v),placeholder:"请选择",onChange:e[25]||(e[25]=v=>Xn("followUpStyle",at.followUpStyle))},{default:b(()=>[f(ne,{label:"温和",value:"1"}),f(ne,{label:"严厉",value:"2"}),f(ne,{label:"严谨",value:"3"})]),_:1},8,["modelValue"])]),e[173]||(e[173]=d("div",{class:"setting-desc"},null,-1))])])]),d("div",Du,[d("div",Pu,[e[174]||(e[174]=d("div",{class:"setting-label"},"「回答视频保留」",-1)),e[175]||(e[175]=d("div",{class:"setting-desc"},"选取后,将在报告中展示候选人的回答视频",-1)),f(Je,{modelValue:at.keepVideo,"onUpdate:modelValue":e[26]||(e[26]=v=>at.keepVideo=v),onChange:e[27]||(e[27]=v=>Xn("keepVideo",v))},null,8,["modelValue"])]),d("div",Vu,[e[178]||(e[178]=d("div",{class:"setting-label"},"「中断后作答限制」",-1)),d("div",Ru,[f(dn,{modelValue:at.interruptionMode,"onUpdate:modelValue":e[28]||(e[28]=v=>at.interruptionMode=v),label:"current",onChange:e[29]||(e[29]=v=>Xn("interruptionMode",at.interruptionMode))},{default:b(()=>e[176]||(e[176]=[M(" 从当前问题重新作答 ")])),_:1},8,["modelValue"]),f(dn,{modelValue:at.interruptionMode,"onUpdate:modelValue":e[30]||(e[30]=v=>at.interruptionMode=v),label:"previous",onChange:e[31]||(e[31]=v=>Xn("interruptionMode",at.interruptionMode))},{default:b(()=>e[177]||(e[177]=[M(" 从头作答 ")])),_:1},8,["modelValue"])]),e[179]||(e[179]=d("div",{class:"setting-desc"},null,-1))]),d("div",Uu,[e[180]||(e[180]=d("div",{class:"setting-label"},"「智慧追问」",-1)),e[181]||(e[181]=d("div",{class:"setting-desc"},"* 追问将结合候选人资料情况,综合分析发问",-1)),f(Je,{modelValue:at.smartFollowUp,"onUpdate:modelValue":e[32]||(e[32]=v=>at.smartFollowUp=v),onChange:e[33]||(e[33]=v=>Xn("smartFollowUp",v))},null,8,["modelValue"])])])])])])):ke("",!0)]),_:1},8,["modelValue"]),f(Ut,{title:"新增视频宣讲",modelValue:R.value,"onUpdate:modelValue":e[37]||(e[37]=v=>R.value=v),width:"35%","close-on-click-modal":!1,class:"video-lecture-dialog"},{footer:b(()=>[d("span",ku,[f(x,{onClick:A},{default:b(()=>e[193]||(e[193]=[M("取消")])),_:1}),f(x,{type:"primary",onClick:V},{default:b(()=>e[194]||(e[194]=[M("确认")])),_:1})])]),default:b(()=>[d("div",Mu,[d("div",Bu,[e[188]||(e[188]=d("div",{class:"form-label"},"上传视频",-1)),f(Di,{class:"video-uploader",action:"#","auto-upload":!1,"show-file-list":!1,accept:"video/*"},{default:b(()=>[d("div",Nu,[f(Y,null,{default:b(()=>[f(be(un))]),_:1}),e[187]||(e[187]=d("div",{class:"upload-text"},"上传文件大小不超过500M",-1))])]),_:1})]),d("div",ju,[e[189]||(e[189]=d("div",{class:"form-label"},"视频简介",-1)),f(k,{modelValue:G.description,"onUpdate:modelValue":e[35]||(e[35]=v=>G.description=v),type:"textarea",rows:"4",placeholder:"视频简介会显示在视频下方的标题下方",maxlength:"200","show-word-limit":""},null,8,["modelValue"])]),d("div",Fu,[e[192]||(e[192]=d("div",{class:"form-label"},"播放设置",-1)),f(Pi,{modelValue:G.broadcastType,"onUpdate:modelValue":e[36]||(e[36]=v=>G.broadcastType=v)},{default:b(()=>[f(dn,{label:"required"},{default:b(()=>e[190]||(e[190]=[M("必须看完")])),_:1}),f(dn,{label:"optional"},{default:b(()=>e[191]||(e[191]=[M("看过即可")])),_:1})]),_:1},8,["modelValue"])])])]),_:1},8,["modelValue"]),f(be(qo),{title:"AI实时对话",modelValue:X.value,"onUpdate:modelValue":e[39]||(e[39]=v=>X.value=v),direction:"rtl",size:"60%","close-on-click-modal":!1,class:"ai-chat-drawer","destroy-on-close":!1},{footer:b(()=>[d("div",ic,[f(x,{onClick:q},{default:b(()=>e[205]||(e[205]=[M("取消")])),_:1}),f(x,{type:"primary",onClick:F},{default:b(()=>e[206]||(e[206]=[M("确认")])),_:1})])]),default:b(()=>[d("div",Lu,[d("div",Qu,[e[204]||(e[204]=d("div",{class:"section-title"},[d("div",{class:"section-line"}),d("span",null,"对话设置")],-1)),d("div",zu,[f(x,{type:"primary",plain:"",onClick:je},{default:b(()=>[f(Y,null,{default:b(()=>[f(be(un))]),_:1}),e[195]||(e[195]=M(" 添加问题 "))]),_:1}),f(x,{type:"success",plain:"",onClick:se},{default:b(()=>[f(Y,null,{default:b(()=>[f(be(Ni))]),_:1}),e[196]||(e[196]=M(" 导入问题 "))]),_:1})]),d("div",Gu,[Z.value.length===0?(N(),W("div",$u,e[197]||(e[197]=[d("p",null,"暂无问题",-1),d("p",{class:"tip-text"},'点击"添加问题"或"导入问题"添加面试问题',-1)]))):(N(),W("div",Ju,[f(be(ir),{modelValue:Z.value,"onUpdate:modelValue":e[38]||(e[38]=v=>Z.value=v),"item-key":"id",handle:".drag-handle"},{item:b(({element:v,index:re})=>[M(ae(v)+" ",1),d("div",Wu,[d("div",Hu,[d("div",Yu,[d("span",Xu,"题目"+ae(re+1),1),d("span",null,ae(v.question),1)]),d("div",Zu,[d("div",qu,[e[199]||(e[199]=d("span",{class:"weight-label"},"权重占比:",-1)),f(io,{modelValue:v.weight,"onUpdate:modelValue":Ae=>v.weight=Ae,min:0,max:100,step:1,size:"small","controls-position":"right"},{suffix:b(()=>e[198]||(e[198]=[M("%")])),_:2},1032,["modelValue","onUpdate:modelValue"])]),d("div",_u,[e[200]||(e[200]=d("span",{class:"answer-label"},"最多回答次数",-1)),f(Ee,{modelValue:v.maxAnswers,"onUpdate:modelValue":Ae=>v.maxAnswers=Ae,size:"small",placeholder:"请选择"},{default:b(()=>[f(ne,{label:"1次",value:1}),f(ne,{label:"2次",value:2}),f(ne,{label:"3次",value:3})]),_:2},1032,["modelValue","onUpdate:modelValue"])]),f(x,{type:"text",onClick:Ae=>ge(re)},{default:b(()=>[f(Y,null,{default:b(()=>[f(be(ft))]),_:1})]),_:2},1032,["onClick"]),f(x,{type:"text",onClick:Ae=>it(re)},{default:b(()=>[f(Y,null,{default:b(()=>[f(be(ji))]),_:1})]),_:2},1032,["onClick"])])]),d("div",ec,[d("div",tc,[e[201]||(e[201]=d("span",{class:"info-label"},"考察能力:",-1)),d("span",null,ae(v.ability),1)]),d("div",nc,[e[202]||(e[202]=d("span",{class:"info-label"},"面试内容:",-1)),d("span",null,ae(v.content),1)]),d("div",oc,[e[203]||(e[203]=d("span",{class:"info-label"},"对话目标:",-1)),d("span",null,ae(v.target),1)])])])]),_:1},8,["modelValue"])]))])])])]),_:1},8,["modelValue"]),f(Ut,{title:"编辑问题",modelValue:le.value,"onUpdate:modelValue":e[50]||(e[50]=v=>le.value=v),width:"500px","close-on-click-modal":!1,class:"question-dialog"},{footer:b(()=>[d("span",Sc,[f(x,{onClick:De},{default:b(()=>e[231]||(e[231]=[M("取消")])),_:1}),f(x,{type:"primary",onClick:Ze},{default:b(()=>e[232]||(e[232]=[M("确认")])),_:1})])]),default:b(()=>[d("div",rc,[d("div",ac,[e[207]||(e[207]=d("div",{class:"form-label"},[M(" 题目内容"),d("span",{class:"required"},"*")],-1)),f(k,{modelValue:T.content,"onUpdate:modelValue":e[40]||(e[40]=v=>T.content=v),type:"textarea",rows:"4",placeholder:"请描述一次你如何在紧迫的时间内完成一个复杂的后端开发任务的经历",maxlength:"300","show-word-limit":""},null,8,["modelValue"])]),d("div",lc,[e[208]||(e[208]=d("div",{class:"form-label"},"胜任力标签",-1)),f(Ee,{modelValue:T.competency_tags,"onUpdate:modelValue":e[41]||(e[41]=v=>T.competency_tags=v),placeholder:"请选择胜任力标签",class:"full-width",multiple:"",onChange:ka},{default:b(()=>[(N(!0),W(We,null,He(L.value,v=>(N(),Ie(ne,{key:v.id,label:v.name,value:v.id},null,8,["label","value"]))),128))]),_:1},8,["modelValue"]),e[209]||(e[209]=d("div",{class:"form-tip"},"选择胜任力标签和胜任力标签,可多选",-1))]),d("div",sc,[e[212]||(e[212]=d("div",{class:"form-label"}," 胜任力配置 ",-1)),d("div",dc,[e[211]||(e[211]=d("div",{class:"config-row"},[d("span",{class:"config-label"},"标签"),d("span",{class:"config-label"},"权重")],-1)),(N(!0),W(We,null,He(T.competency_tags,v=>(N(),W("div",{class:"config-row",key:v.id},[d("span",uc,ae(v.name),1),f(io,{modelValue:v.weight,"onUpdate:modelValue":re=>v.weight=re,min:0,max:100,step:1,"controls-position":"right"},null,8,["modelValue","onUpdate:modelValue"]),e[210]||(e[210]=M(" % "))]))),128))]),e[213]||(e[213]=d("div",{class:"form-tip"},"配置各个胜任力标签的权重,总和需要100%",-1))]),d("div",cc,[e[214]||(e[214]=d("div",{class:"form-label"},"题目形式",-1)),f(Ee,{modelValue:T.type,"onUpdate:modelValue":e[42]||(e[42]=v=>T.type=v),placeholder:"开放问题",class:"full-width",onChange:Qa},{default:b(()=>[f(ne,{label:"开放问题",value:"open"}),f(ne,{label:"单选题",value:"single"}),f(ne,{label:"多选题",value:"multiple"}),f(ne,{label:"填空题",value:"fill"}),f(ne,{label:"自言语",value:"self"})]),_:1},8,["modelValue"]),e[215]||(e[215]=d("div",{class:"form-tip"},"选择题目的形式:开放问题、单选题、多选题、填空题、自言语",-1))]),d("div",fc,[e[216]||(e[216]=d("div",{class:"form-label"},"适用职位",-1)),f(Ee,{modelValue:T.position,"onUpdate:modelValue":e[43]||(e[43]=v=>T.position=v),placeholder:"请选择适用职位类型",class:"full-width",multiple:""},{default:b(()=>[(N(!0),W(We,null,He(ue.value,v=>(N(),Ie(ne,{key:v.value,label:v.label,value:v.value},null,8,["label","value"]))),128))]),_:1},8,["modelValue"]),e[217]||(e[217]=d("div",{class:"form-tip"},"选择题目适用的职位类型,可多选",-1))]),T.question_form===1||T.question_form===2?(N(),W("div",vc,[e[221]||(e[221]=d("div",{class:"form-label"},"选项",-1)),d("div",null,[e[220]||(e[220]=d("div",{class:"option-header",style:{display:"flex","margin-bottom":"10px","font-weight":"bold"}},[d("span",{style:{flex:"1"}},"选项内容"),d("span",{style:{width:"80px","text-align":"center"}},"是否正确")],-1)),(N(!0),W(We,null,He(T.options,(v,re)=>(N(),W("div",{key:re,class:"option-item",style:{display:"flex","align-items":"center","margin-bottom":"10px"}},[f(k,{modelValue:v.text,"onUpdate:modelValue":Ae=>v.text=Ae,placeholder:"请输入选项内容",style:{flex:"1","margin-right":"10px"}},null,8,["modelValue","onUpdate:modelValue"]),f(On,{content:"设置为正确答案",placement:"top",effect:"light"},{default:b(()=>[d("div",{onClick:()=>{T.question_form===1?T.options.forEach((Ae,Ga)=>{Ae.is_correct=Ga===re}):v.is_correct=!v.is_correct},style:{cursor:"pointer",width:"80px","text-align":"center"}},[T.question_form===1?(N(),Ie(dn,{key:0,modelValue:v.is_correct,"onUpdate:modelValue":Ae=>v.is_correct=Ae,label:!0},null,8,["modelValue","onUpdate:modelValue"])):(N(),Ie(wn,{key:1,modelValue:v.is_correct,"onUpdate:modelValue":Ae=>v.is_correct=Ae},null,8,["modelValue","onUpdate:modelValue"]))],8,pc)]),_:2},1024)]))),128)),d("div",mc,[f(x,{type:"primary",onClick:e[44]||(e[44]=()=>{T.options||(T.options=[]);const v=T.options.length>0?Math.max(...T.options.map(re=>re.sort||0))+1:1;T.options.push({option_text:"",is_correct:!1,sort:v})})},{default:b(()=>e[218]||(e[218]=[M(" 添加选项 ")])),_:1}),T.options&&T.options.length>2?(N(),Ie(x,{key:0,type:"danger",onClick:e[45]||(e[45]=()=>{T.options.pop()})},{default:b(()=>e[219]||(e[219]=[M(" 删除最后一项 ")])),_:1})):ke("",!0)])]),e[222]||(e[222]=d("div",{class:"form-tip"},"添加选项并设置正确答案,单选题只能有一个正确答案,多选题可以有多个正确答案",-1))])):ke("",!0),d("div",gc,[e[223]||(e[223]=d("div",{class:"form-label"},"分类",-1)),f(Ee,{modelValue:T.category,"onUpdate:modelValue":e[46]||(e[46]=v=>T.category=v),placeholder:"请选择题目分类",class:"full-width"},{default:b(()=>[(N(!0),W(We,null,He(J.value,v=>(N(),Ie(ne,{key:v.value,label:v.label,value:v.value},null,8,["label","value"]))),128))]),_:1},8,["modelValue"]),e[224]||(e[224]=d("div",{class:"form-tip"},"选择题目所属分类",-1))]),d("div",hc,[e[225]||(e[225]=d("div",{class:"form-label"},"标签",-1)),f(Ee,{modelValue:T.tags,"onUpdate:modelValue":e[47]||(e[47]=v=>T.tags=v),placeholder:"请选择标签",class:"full-width",multiple:""},{default:b(()=>[(N(!0),W(We,null,He(oe.value,v=>(N(),Ie(ne,{key:v.value,label:v.label,value:v.value},null,8,["label","value"]))),128))]),_:1},8,["modelValue"]),e[226]||(e[226]=d("div",{class:"form-tip"},"选择题目相关标签,可多选",-1))]),d("div",yc,[e[227]||(e[227]=d("div",{class:"form-label"},"建议时长(秒)",-1)),f(io,{modelValue:T.suggestedDuration,"onUpdate:modelValue":e[48]||(e[48]=v=>T.suggestedDuration=v),min:0,step:1,"controls-position":"right",placeholder:"请输入建议回答时长",class:"full-width"},null,8,["modelValue"]),e[228]||(e[228]=d("div",{class:"form-tip"},"建议回答题目的时长,单位为秒",-1))]),d("div",bc,[e[229]||(e[229]=d("div",{class:"form-label"},"评价标准",-1)),f(k,{modelValue:T.scoring_reference,"onUpdate:modelValue":e[49]||(e[49]=v=>T.scoring_reference=v),type:"textarea",rows:"4",placeholder:"请输入评价标准",class:"full-width"},null,8,["modelValue"]),e[230]||(e[230]=d("div",{class:"form-tip"},"评价标准,用于评价应聘者的表现",-1))])])]),_:1},8,["modelValue"]),f(Ut,{title:"选择题目",modelValue:To.value,"onUpdate:modelValue":e[55]||(e[55]=v=>To.value=v),width:"70%","close-on-click-modal":!1,class:"question-select-dialog"},{footer:b(()=>[d("span",wc,[f(x,{onClick:Oi},{default:b(()=>e[233]||(e[233]=[M("取消")])),_:1}),f(x,{type:"primary",onClick:Ia,style:{"background-color":"#ed7d31","border-color":"#ed7d31"}},{default:b(()=>e[234]||(e[234]=[M("确定")])),_:1})])]),default:b(()=>[d("div",Ec,[d("div",xc,[d("div",Ic,[f(k,{modelValue:ln.value,"onUpdate:modelValue":e[51]||(e[51]=v=>ln.value=v),placeholder:"请输入关键词搜索题目",clearable:"",onClear:Ht,onKeyup:Bi(Ht,["enter"]),style:{width:"300px","margin-right":"10px"}},{append:b(()=>[f(x,{onClick:Ht},{default:b(()=>[f(Y,null,{default:b(()=>[f(be(Fi))]),_:1})]),_:1})]),_:1},8,["modelValue"]),f(Ee,{modelValue:lt.question_form,"onUpdate:modelValue":e[52]||(e[52]=v=>lt.question_form=v),placeholder:"题目类型",clearable:"",onChange:Ht,style:{width:"120px"}},{default:b(()=>[f(ne,{label:"开放问题",value:0}),f(ne,{label:"单选题",value:1})]),_:1},8,["modelValue"])])]),d("div",Cc,[f(Vi,{data:tt.value,style:{width:"100%"},onSelectionChange:wi},{default:b(()=>[f(Tn,{type:"selection",width:"55"}),f(Tn,{prop:"question",label:"题目标题"}),f(Tn,{prop:"question_form_name",label:"题目类型",width:"100"})]),_:1},8,["data"]),d("div",Ac,[f(Ri,{"current-page":lt.page,"onUpdate:currentPage":e[53]||(e[53]=v=>lt.page=v),"page-size":lt.pageSize,"onUpdate:pageSize":e[54]||(e[54]=v=>lt.pageSize=v),total:Ai.value,"page-sizes":[10,20,50,100],layout:"total, sizes, prev, pager, next",onSizeChange:Ea,onCurrentChange:xa},null,8,["current-page","page-size","total"])])])])]),_:1},8,["modelValue"]),f(Ut,{title:"创建自定义题目",modelValue:qn.value,"onUpdate:modelValue":e[57]||(e[57]=v=>qn.value=v),width:"40%","close-on-click-modal":!1,class:"question-bank-form-dialog","before-close":ie},{default:b(()=>[f(rl,{modelValue:Do.value,"onUpdate:modelValue":e[56]||(e[56]=v=>Do.value=v),"is-edit":Ci.value,onSubmit:ee,onCancel:ie},null,8,["modelValue","is-edit"])]),_:1},8,["modelValue"]),f(Ut,{title:"资料收集",modelValue:xe.value,"onUpdate:modelValue":e[61]||(e[61]=v=>xe.value=v),width:"900px","close-on-click-modal":!1,class:"data-collection-dialog"},{footer:b(()=>[d("span",Jc,[f(x,{onClick:Nn},{default:b(()=>e[244]||(e[244]=[M("取消")])),_:1}),f(x,{type:"primary",onClick:Ca},{default:b(()=>e[245]||(e[245]=[M("确认")])),_:1})])]),default:b(()=>[d("div",Oc,[d("div",Tc,[e[243]||(e[243]=d("div",{class:"panel-header"},[d("h3",null,"字段显示配置")],-1)),d("div",Dc,[e[238]||(e[238]=d("div",{class:"section-title"},"基本信息",-1)),f(Zt,{gutter:20},{default:b(()=>[(N(!0),W(We,null,He(Aa(),(v,re)=>(N(),Ie(Xt,{span:8,key:re},{default:b(()=>[d("div",Pc,[d("span",Vc,ae(v.label),1),f(On,{content:"切换显示/隐藏",placement:"top"},{default:b(()=>[f(Je,{modelValue:v.visible,"onUpdate:modelValue":Ae=>v.visible=Ae,class:"custom-switch"},null,8,["modelValue","onUpdate:modelValue"])]),_:2},1024)])]),_:2},1024))),128))]),_:1}),e[239]||(e[239]=d("div",{class:"section-title"},"家庭成员信息",-1)),f(Zt,{gutter:20},{default:b(()=>[f(Xt,{span:24},{default:b(()=>[d("div",Rc,[d("span",Uc,[M(ae(Q.family_member.label)+" ",1),Q.family_member.visible?(N(),Ie(An,{key:0,size:"small",type:"success"},{default:b(()=>e[235]||(e[235]=[M("已启用")])),_:1})):ke("",!0)]),f(Je,{modelValue:Q.family_member.visible,"onUpdate:modelValue":e[58]||(e[58]=v=>Q.family_member.visible=v),class:"custom-switch"},null,8,["modelValue"])])]),_:1})]),_:1}),Q.family_member.visible?(N(),Ie(Zt,{key:0,gutter:20},{default:b(()=>[(N(!0),W(We,null,He(Q.family_member.fields,(v,re)=>(N(),Ie(Xt,{span:8,key:re},{default:b(()=>[d("div",Kc,[d("span",Mc,ae(v.label),1),f(On,{content:"切换显示/隐藏",placement:"top"},{default:b(()=>[f(Je,{modelValue:v.visible,"onUpdate:modelValue":Ae=>v.visible=Ae,class:"custom-switch"},null,8,["modelValue","onUpdate:modelValue"])]),_:2},1024)])]),_:2},1024))),128))]),_:1})):ke("",!0),e[240]||(e[240]=d("div",{class:"section-title"},"教育经历",-1)),f(Zt,{gutter:20},{default:b(()=>[f(Xt,{span:24},{default:b(()=>[d("div",Bc,[d("span",Nc,[M(ae(Q.education.label)+" ",1),Q.education.visible?(N(),Ie(An,{key:0,size:"small",type:"success"},{default:b(()=>e[236]||(e[236]=[M("已启用")])),_:1})):ke("",!0)]),f(Je,{modelValue:Q.education.visible,"onUpdate:modelValue":e[59]||(e[59]=v=>Q.education.visible=v),class:"custom-switch"},null,8,["modelValue"])])]),_:1})]),_:1}),Q.education.visible?(N(),Ie(Zt,{key:1,gutter:20},{default:b(()=>[(N(!0),W(We,null,He(Q.education.fields,(v,re)=>(N(),Ie(Xt,{span:8,key:re},{default:b(()=>[d("div",jc,[d("span",Fc,ae(v.label),1),f(On,{content:"切换显示/隐藏",placement:"top"},{default:b(()=>[f(Je,{modelValue:v.visible,"onUpdate:modelValue":Ae=>v.visible=Ae,class:"custom-switch"},null,8,["modelValue","onUpdate:modelValue"])]),_:2},1024)])]),_:2},1024))),128))]),_:1})):ke("",!0),e[241]||(e[241]=d("div",{class:"section-title"},"专业技能",-1)),f(Zt,{gutter:20},{default:b(()=>[(N(!0),W(We,null,He(wa(),(v,re)=>(N(),Ie(Xt,{span:8,key:re},{default:b(()=>[d("div",kc,[d("span",Lc,ae(v.label),1),f(On,{content:"切换显示/隐藏",placement:"top"},{default:b(()=>[f(Je,{modelValue:v.visible,"onUpdate:modelValue":Ae=>v.visible=Ae,class:"custom-switch"},null,8,["modelValue","onUpdate:modelValue"])]),_:2},1024)])]),_:2},1024))),128))]),_:1}),e[242]||(e[242]=d("div",{class:"section-title"},"工作经历",-1)),f(Zt,{gutter:20},{default:b(()=>[f(Xt,{span:24},{default:b(()=>[d("div",Qc,[d("span",zc,[M(ae(Q.work_experience.label)+" ",1),Q.work_experience.visible?(N(),Ie(An,{key:0,size:"small",type:"success"},{default:b(()=>e[237]||(e[237]=[M("已启用")])),_:1})):ke("",!0)]),f(Je,{modelValue:Q.work_experience.visible,"onUpdate:modelValue":e[60]||(e[60]=v=>Q.work_experience.visible=v),class:"custom-switch"},null,8,["modelValue"])])]),_:1})]),_:1}),Q.work_experience.visible?(N(),Ie(Zt,{key:2,gutter:20},{default:b(()=>[(N(!0),W(We,null,He(Q.work_experience.fields,(v,re)=>(N(),Ie(Xt,{span:8,key:re},{default:b(()=>[d("div",Gc,[d("span",$c,ae(v.label),1),f(On,{content:"切换显示/隐藏",placement:"top"},{default:b(()=>[f(Je,{modelValue:v.visible,"onUpdate:modelValue":Ae=>v.visible=Ae,class:"custom-switch"},null,8,["modelValue","onUpdate:modelValue"])]),_:2},1024)])]),_:2},1024))),128))]),_:1})):ke("",!0)])])])]),_:1},8,["modelValue"]),f(Ut,{title:"简历收集",modelValue:Ve.value,"onUpdate:modelValue":e[63]||(e[63]=v=>Ve.value=v),width:"500px","close-on-click-modal":!1,class:"resume-collection-dialog"},{footer:b(()=>[d("span",Yc,[f(x,{onClick:Te},{default:b(()=>e[247]||(e[247]=[M("取消")])),_:1}),f(x,{type:"primary",onClick:Re},{default:b(()=>e[248]||(e[248]=[M("确认")])),_:1})])]),default:b(()=>[d("div",Wc,[d("div",Hc,[e[246]||(e[246]=d("div",{class:"form-label"},"步骤名称",-1)),f(k,{modelValue:Ke.title,"onUpdate:modelValue":e[62]||(e[62]=v=>Ke.title=v),placeholder:"请输入步骤名称",maxlength:"30","show-word-limit":""},null,8,["modelValue"])])])]),_:1},8,["modelValue"]),f(Ut,{title:"添加代码笔试步骤",modelValue:Vt.value,"onUpdate:modelValue":e[66]||(e[66]=v=>Vt.value=v),width:"500px","close-on-click-modal":!1,class:"code-test-dialog"},{footer:b(()=>[d("span",df,[f(x,{onClick:bi},{default:b(()=>e[257]||(e[257]=[M("取消")])),_:1}),f(x,{type:"primary",onClick:br},{default:b(()=>e[258]||(e[258]=[M("确认")])),_:1})])]),default:b(()=>[d("div",Xc,[d("div",Zc,[e[249]||(e[249]=d("div",{class:"form-label"},"步骤名称",-1)),f(k,{modelValue:rt.title,"onUpdate:modelValue":e[64]||(e[64]=v=>rt.title=v),placeholder:"请输入步骤名称",maxlength:"30","show-word-limit":""},null,8,["modelValue"])]),d("div",qc,[e[250]||(e[250]=d("div",{class:"form-label"},"自动评判试卷",-1)),f(Je,{modelValue:rt.autoJudge,"onUpdate:modelValue":e[65]||(e[65]=v=>rt.autoJudge=v)},null,8,["modelValue"]),d("span",_c,ae(rt.autoJudge?"开启":"关闭"),1)]),d("div",ef,[e[256]||(e[256]=d("div",{class:"form-label"},"添加考试试卷",-1)),d("div",tf,[rt.selectedPaper?(N(),W("div",of,[d("div",rf,[d("div",af,ae(rt.selectedPaper.title),1),d("div",lf,[d("span",null,ae(rt.selectedPaper.questionCount)+"道题",1),d("span",null,ae(rt.selectedPaper.duration)+"分钟",1),d("span",null,ae(rt.selectedPaper.difficulty),1)])]),d("div",sf,[f(x,{type:"text",onClick:Er},{default:b(()=>e[253]||(e[253]=[M("查看")])),_:1}),f(x,{type:"text",onClick:xr},{default:b(()=>e[254]||(e[254]=[M("更换")])),_:1}),f(x,{type:"text",onClick:Ir},{default:b(()=>e[255]||(e[255]=[M("删除")])),_:1})])])):(N(),W("div",nf,[f(x,{type:"primary",plain:"",onClick:Sr},{default:b(()=>[f(Y,null,{default:b(()=>[f(be(un))]),_:1}),e[251]||(e[251]=M(" 添加考卷 "))]),_:1}),e[252]||(e[252]=d("p",{class:"tip-text"},"多选时,考生会随机分配到一套试卷",-1))]))])])])]),_:1},8,["modelValue"]),f(be(qo),{title:"添加打字测试步骤",modelValue:jn.value,"onUpdate:modelValue":e[74]||(e[74]=v=>jn.value=v),size:"60%","close-on-click-modal":!1,class:"typing-test-dialog","destroy-on-close":!1},{footer:b(()=>[d("span",If,[f(x,{onClick:Si},{default:b(()=>e[275]||(e[275]=[M("取消")])),_:1}),f(x,{type:"primary",onClick:Cr},{default:b(()=>e[276]||(e[276]=[M("保存")])),_:1})])]),default:b(()=>[d("div",uf,[d("div",cf,[e[260]||(e[260]=d("div",{class:"form-label"},"选择文章",-1)),d("div",ff,[f(x,{type:"primary",size:"small",class:"add-article-btn"},{default:b(()=>[f(Y,null,{default:b(()=>[f(be(un))]),_:1}),e[259]||(e[259]=M(" 添加文章 "))]),_:1})])]),d("div",vf,[e[263]||(e[263]=d("div",{class:"form-label"},"候选人选择文章方式",-1)),f(Pi,{modelValue:et.selectionMode,"onUpdate:modelValue":e[67]||(e[67]=v=>et.selectionMode=v)},{default:b(()=>[f(dn,{label:"random"},{default:b(()=>e[261]||(e[261]=[M("随机抽取")])),_:1}),f(dn,{label:"self"},{default:b(()=>e[262]||(e[262]=[M("候选人自主选择")])),_:1})]),_:1},8,["modelValue"])]),d("div",pf,[e[265]||(e[265]=d("div",{class:"form-label"},"测试时间",-1)),d("div",mf,[f(k,{modelValue:et.duration,"onUpdate:modelValue":e[68]||(e[68]=v=>et.duration=v),class:"time-input"},null,8,["modelValue"]),e[264]||(e[264]=d("span",{class:"time-unit"},"分钟",-1))])]),d("div",gf,[e[267]||(e[267]=d("div",{class:"form-label"},"登录界面预览图(建议尺寸1024*768像素,最大不要超过5M)",-1)),f(Di,{class:"preview-uploader",action:"#","auto-upload":!1,"show-file-list":!1,accept:"image/*"},{default:b(()=>[d("div",hf,[f(Y,null,{default:b(()=>[f(be(un))]),_:1}),e[266]||(e[266]=d("div",{class:"upload-text"},"添加图片",-1))])]),_:1})]),d("div",yf,[e[268]||(e[268]=d("div",{class:"form-label"},"注意事项内容(在登录界面显示)",-1)),f(k,{modelValue:et.notes,"onUpdate:modelValue":e[69]||(e[69]=v=>et.notes=v),type:"textarea",rows:"4",placeholder:"请输入注意事项内容",maxlength:"300","show-word-limit":""},null,8,["modelValue"])]),d("div",bf,[e[269]||(e[269]=d("div",{class:"form-label"},"测试页面标题",-1)),f(k,{modelValue:et.pageTitle,"onUpdate:modelValue":e[70]||(e[70]=v=>et.pageTitle=v),placeholder:"测试页面标题"},null,8,["modelValue"])]),d("div",Sf,[e[271]||(e[271]=d("div",{class:"form-label"},"视频监控",-1)),f(wn,{modelValue:et.videoMonitoring,"onUpdate:modelValue":e[71]||(e[71]=v=>et.videoMonitoring=v)},{default:b(()=>e[270]||(e[270]=[M("视频监控")])),_:1},8,["modelValue"])]),d("div",Ef,[e[274]||(e[274]=d("div",{class:"form-label"},"通过标准",-1)),d("div",xf,[f(wn,{modelValue:et.passCriteria.speed,"onUpdate:modelValue":e[72]||(e[72]=v=>et.passCriteria.speed=v)},{default:b(()=>e[272]||(e[272]=[M("速度")])),_:1},8,["modelValue"]),f(wn,{modelValue:et.passCriteria.accuracy,"onUpdate:modelValue":e[73]||(e[73]=v=>et.passCriteria.accuracy=v)},{default:b(()=>e[273]||(e[273]=[M("正确率")])),_:1},8,["modelValue"])])])])]),_:1},8,["modelValue"]),f(Ut,{title:"面试设置",modelValue:eo.value,"onUpdate:modelValue":e[84]||(e[84]=v=>eo.value=v),width:"60%","close-on-click-modal":!1,class:"interview-settings-dialog"},{footer:b(()=>[d("span",qf,[f(x,{onClick:Oa},{default:b(()=>e[296]||(e[296]=[M("取消")])),_:1}),f(x,{type:"primary",onClick:Ta},{default:b(()=>e[297]||(e[297]=[M("完成")])),_:1})])]),default:b(()=>[d("div",Cf,[d("div",Af,[e[283]||(e[283]=d("div",{class:"section-header"},[d("span",{class:"section-title"},"防作弊设置")],-1)),d("div",wf,[e[277]||(e[277]=d("div",{class:"setting-info"},[d("span",{class:"setting-name"},"「人脸一致性检测」"),d("p",{class:"setting-desc"},"该强调,非本人操作人脸可视化提醒和警示,默认开启")],-1)),f(Je,{modelValue:Me.faceConsistency,"onUpdate:modelValue":e[75]||(e[75]=v=>Me.faceConsistency=v),disabled:!0},null,8,["modelValue"])]),d("div",Of,[e[278]||(e[278]=d("div",{class:"setting-info"},[d("span",{class:"setting-name"},"「 防截屏 / 录屏 」"),d("p",{class:"setting-desc"},"该强调,非本人前来体验截屏录屏以上行为,为防止提醒")],-1)),f(Je,{modelValue:Me.preventScreenshot,"onUpdate:modelValue":e[76]||(e[76]=v=>Me.preventScreenshot=v),disabled:!0},null,8,["modelValue"])]),d("div",Tf,[e[280]||(e[280]=d("div",{class:"setting-info"},[d("span",{class:"setting-name"},"「 切 屏 预 制 」"),d("p",{class:"setting-desc"},"该强调,非本人前使用切屏处理用页面,为防作弊警示")],-1)),f(Je,{modelValue:Me.screenSwitchAlert,"onUpdate:modelValue":e[77]||(e[77]=v=>Me.screenSwitchAlert=v),disabled:!0},{default:b(()=>e[279]||(e[279]=[d("span",{class:"switch-desc"},"切屏超过 2 次关闭,作答本关面试",-1)])),_:1},8,["modelValue"])]),d("div",Df,[e[281]||(e[281]=d("div",{class:"setting-info"},[d("span",{class:"setting-name"},"「 情 绪 识 别」"),d("p",{class:"setting-desc"},"该现已,条件较差以及入侵过程中的作弊,条件等好等")],-1)),f(Je,{modelValue:Me.positionDetection,"onUpdate:modelValue":e[78]||(e[78]=v=>Me.positionDetection=v)},null,8,["modelValue"])]),d("div",Pf,[e[282]||(e[282]=d("div",{class:"setting-info"},[d("span",{class:"setting-name"},"「 眼 动 检 测 」"),d("p",{class:"setting-desc"},"视实检测候选人的眼动频率进行分析,页面等较等")],-1)),f(Je,{modelValue:Me.eyeMovementDetection,"onUpdate:modelValue":e[79]||(e[79]=v=>Me.eyeMovementDetection=v)},null,8,["modelValue"])])]),d("div",Vf,[e[295]||(e[295]=d("div",{class:"section-header"},[d("span",{class:"section-title"},"其他设置")],-1)),d("div",Rf,[d("div",Uf,[e[284]||(e[284]=d("span",{class:"setting-name"},"重复面试",-1)),e[285]||(e[285]=d("p",{class:"setting-desc"},"选取后,将允许面试者进行重复面试",-1)),f(Je,{modelValue:Me.reviewInterview,"onUpdate:modelValue":e[80]||(e[80]=v=>Me.reviewInterview=v)},null,8,["modelValue"])])]),d("div",Kf,[d("div",Mf,[e[288]||(e[288]=d("span",{class:"setting-name"},"开场词",-1)),En.value?(N(),W("div",jf,[f(k,{modelValue:Yt.value,"onUpdate:modelValue":e[81]||(e[81]=v=>Yt.value=v),type:"textarea",rows:"2",placeholder:"请输入开始前提示内容","show-word-limit":""},null,8,["modelValue"]),d("div",Ff,[f(x,{size:"small",onClick:Va},{default:b(()=>e[286]||(e[286]=[M("取消")])),_:1}),f(x,{size:"small",type:"primary",onClick:Ra},{default:b(()=>e[287]||(e[287]=[M("保存")])),_:1})])])):(N(),W("div",Bf,[d("p",Nf,ae(Me.beforeStartText),1),f(x,{type:"text",class:"edit-desc-btn",onClick:Pa},{default:b(()=>[f(Y,null,{default:b(()=>[f(be(ft))]),_:1})]),_:1})]))])]),d("div",kf,[d("div",Lf,[e[291]||(e[291]=d("span",{class:"setting-name"},"开始后提醒",-1)),to.value?(N(),W("div",Gf,[f(k,{modelValue:xn.value,"onUpdate:modelValue":e[82]||(e[82]=v=>xn.value=v),type:"textarea",rows:"2",placeholder:"请输入开始后提醒内容",maxlength:"100","show-word-limit":""},null,8,["modelValue"]),d("div",$f,[f(x,{size:"small",onClick:Ka},{default:b(()=>e[289]||(e[289]=[M("取消")])),_:1}),f(x,{size:"small",type:"primary",onClick:Ma},{default:b(()=>e[290]||(e[290]=[M("保存")])),_:1})])])):(N(),W("div",Qf,[d("p",zf,ae(Me.afterStartText),1),f(x,{type:"text",class:"edit-desc-btn",onClick:Ua},{default:b(()=>[f(Y,null,{default:b(()=>[f(be(ft))]),_:1})]),_:1})]))])]),d("div",Jf,[d("div",Wf,[e[294]||(e[294]=d("span",{class:"setting-name"},"结束语",-1)),no.value?(N(),W("div",Xf,[f(k,{modelValue:In.value,"onUpdate:modelValue":e[83]||(e[83]=v=>In.value=v),type:"textarea",rows:"2",placeholder:"请输入免责声明内容",maxlength:"200","show-word-limit":""},null,8,["modelValue"]),d("div",Zf,[f(x,{size:"small",onClick:Na},{default:b(()=>e[292]||(e[292]=[M("取消")])),_:1}),f(x,{size:"small",type:"primary",onClick:ja},{default:b(()=>e[293]||(e[293]=[M("保存")])),_:1})])])):(N(),W("div",Hf,[d("p",Yf,ae(Me.disclaimerText),1),f(x,{type:"text",class:"edit-desc-btn",onClick:Ba},{default:b(()=>[f(Y,null,{default:b(()=>[f(be(ft))]),_:1})]),_:1})]))])])])])]),_:1},8,["modelValue"]),f(Ut,{title:"选择题目",modelValue:c.value,"onUpdate:modelValue":e[89]||(e[89]=v=>c.value=v),width:"70%","close-on-click-modal":!1,class:"question-select-dialog"},{footer:b(()=>[d("span",iv,[f(x,{onClick:Oi},{default:b(()=>e[298]||(e[298]=[M("取消")])),_:1}),f(x,{type:"primary",onClick:h,style:{"background-color":"#ed7d31","border-color":"#ed7d31"}},{default:b(()=>e[299]||(e[299]=[M("确定")])),_:1})])]),default:b(()=>[d("div",_f,[d("div",ev,[d("div",tv,[f(k,{modelValue:ln.value,"onUpdate:modelValue":e[85]||(e[85]=v=>ln.value=v),placeholder:"请输入关键词搜索题目",clearable:"",onClear:Ht,onKeyup:Bi(Ht,["enter"]),style:{width:"300px","margin-right":"10px"}},{append:b(()=>[f(x,{onClick:Ht},{default:b(()=>[f(Y,null,{default:b(()=>[f(be(Fi))]),_:1})]),_:1})]),_:1},8,["modelValue"]),f(Ee,{modelValue:lt.question_form,"onUpdate:modelValue":e[86]||(e[86]=v=>lt.question_form=v),placeholder:"题目类型",clearable:"",onChange:Ht,style:{width:"120px"}},{default:b(()=>[f(ne,{label:"开放问题",value:0}),f(ne,{label:"单选题",value:1}),f(ne,{label:"多选题",value:2}),f(ne,{label:"看图选答案",value:3}),f(ne,{label:"得分题",value:4}),f(ne,{label:"追加型开放问题",value:5}),f(ne,{label:"填空题",value:6})]),_:1},8,["modelValue"])])]),d("div",nv,[f(Vi,{data:tt.value,style:{width:"100%"},onSelectionChange:wi},{default:b(()=>[f(Tn,{type:"selection",width:"55"}),f(Tn,{prop:"question",label:"题目标题"}),f(Tn,{prop:"question_form_name",label:"题目类型",width:"100"})]),_:1},8,["data"]),d("div",ov,[f(Ri,{"current-page":tt.value.page,"onUpdate:currentPage":e[87]||(e[87]=v=>tt.value.page=v),"page-size":tt.value.pageSize,"onUpdate:pageSize":e[88]||(e[88]=v=>tt.value.pageSize=v),total:_n.value,"page-sizes":[10,20,50,100],layout:"total, sizes, prev, pager, next",onSizeChange:m,onCurrentChange:p},null,8,["current-page","page-size","total"])])])])]),_:1},8,["modelValue"])])}}}),mv=ll(rv,[["__scopeId","data-v-e845f3e0"]]);export{mv as default};