index.B3hLL_HO.js 198 KB

12345678910
  1. import{a as Pa,aH as Ra,aB as Va,r as J,_ as et,q as Ua,W as Ka,aj as je,at as Ma,c as W,o as N,b as s,S as v,K as S,P as M,Q as se,u as be,M as We,J as Ce,R as Ge,a9 as $e,G as St,Y as Ba,F as Na,L as Ti,a7 as Di}from"./vue.D1BjjNmv.js";import{b as ja,U as It}from"./api.CKGi0z6N.js";import{r as tt,a2 as Fa,g as La,a3 as ka,c as Qa,E as B,V as ut,T as sn,a4 as Pi,X as Ri,a5 as $o,a6 as Vi,Y as Ui}from"./index.CUrmXCFV.js";import{g as za}from"./pcaData.5HEg6BqW.js";import{_ as Ga}from"./_plugin-vue_export-helper.DlAUqK2U.js";const Ki="/assets/sheng.BKW1Im68.png",$a="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAkoAAAImCAQAAAAGHG0zAAAACXBIWXMAAAsTAAALEwEAmpwYAAAFyGlUWHRYTUw6Y29tLmFkb2JlLnhtcAAAAAAAPD94cGFja2V0IGJlZ2luPSLvu78iIGlkPSJXNU0wTXBDZWhpSHpyZVN6TlRjemtjOWQiPz4gPHg6eG1wbWV0YSB4bWxuczp4PSJhZG9iZTpuczptZXRhLyIgeDp4bXB0az0iQWRvYmUgWE1QIENvcmUgNS42LWMxNDggNzkuMTY0MDM2LCAyMDE5LzA4LzEzLTAxOjA2OjU3ICAgICAgICAiPiA8cmRmOlJERiB4bWxuczpyZGY9Imh0dHA6Ly93d3cudzMub3JnLzE5OTkvMDIvMjItcmRmLXN5bnRheC1ucyMiPiA8cmRmOkRlc2NyaXB0aW9uIHJkZjphYm91dD0iIiB4bWxuczp4bXA9Imh0dHA6Ly9ucy5hZG9iZS5jb20veGFwLzEuMC8iIHhtbG5zOnhtcE1NPSJodHRwOi8vbnMuYWRvYmUuY29tL3hhcC8xLjAvbW0vIiB4bWxuczpzdEV2dD0iaHR0cDovL25zLmFkb2JlLmNvbS94YXAvMS4wL3NUeXBlL1Jlc291cmNlRXZlbnQjIiB4bWxuczpkYz0iaHR0cDovL3B1cmwub3JnL2RjL2VsZW1lbnRzLzEuMS8iIHhtbG5zOnBob3Rvc2hvcD0iaHR0cDovL25zLmFkb2JlLmNvbS9waG90b3Nob3AvMS4wLyIgeG1wOkNyZWF0b3JUb29sPSJBZG9iZSBQaG90b3Nob3AgMjEuMCAoV2luZG93cykiIHhtcDpDcmVhdGVEYXRlPSIyMDI1LTA2LTEzVDE3OjAxOjIwKzA4OjAwIiB4bXA6TWV0YWRhdGFEYXRlPSIyMDI1LTA2LTEzVDE3OjAxOjIwKzA4OjAwIiB4bXA6TW9kaWZ5RGF0ZT0iMjAyNS0wNi0xM1QxNzowMToyMCswODowMCIgeG1wTU06SW5zdGFuY2VJRD0ieG1wLmlpZDozNDE0NGJjZC05NWJlLTMxNGMtODlmZC01MTk0MTdmODc5OWEiIHhtcE1NOkRvY3VtZW50SUQ9ImFkb2JlOmRvY2lkOnBob3Rvc2hvcDplYzMyM2E1Zi04ZWZiLTgxNGUtYWMzOS05Nzc3ODNiNDUzYjQiIHhtcE1NOk9yaWdpbmFsRG9jdW1lbnRJRD0ieG1wLmRpZDo2NzhkMmE4Ni05MTcxLWJiNDAtYWMzOS01ODg2NzcyNzM4ZDEiIGRjOmZvcm1hdD0iaW1hZ2UvcG5nIiBwaG90b3Nob3A6Q29sb3JNb2RlPSIxIj4gPHhtcE1NOkhpc3Rvcnk+IDxyZGY6U2VxPiA8cmRmOmxpIHN0RXZ0OmFjdGlvbj0iY3JlYXRlZCIgc3RFdnQ6aW5zdGFuY2VJRD0ieG1wLmlpZDo2NzhkMmE4Ni05MTcxLWJiNDAtYWMzOS01ODg2NzcyNzM4ZDEiIHN0RXZ0OndoZW49IjIwMjUtMDYtMTNUMTc6MDE6MjArMDg6MDAiIHN0RXZ0OnNvZnR3YXJlQWdlbnQ9IkFkb2JlIFBob3Rvc2hvcCAyMS4wIChXaW5kb3dzKSIvPiA8cmRmOmxpIHN0RXZ0OmFjdGlvbj0ic2F2ZWQiIHN0RXZ0Omluc3RhbmNlSUQ9InhtcC5paWQ6MzQxNDRiY2QtOTViZS0zMTRjLTg5ZmQtNTE5NDE3Zjg3OTlhIiBzdEV2dDp3aGVuPSIyMDI1LTA2LTEzVDE3OjAxOjIwKzA4OjAwIiBzdEV2dDpzb2Z0d2FyZUFnZW50PSJBZG9iZSBQaG90b3Nob3AgMjEuMCAoV2luZG93cykiIHN0RXZ0OmNoYW5nZWQ9Ii8iLz4gPC9yZGY6U2VxPiA8L3htcE1NOkhpc3Rvcnk+IDwvcmRmOkRlc2NyaXB0aW9uPiA8L3JkZjpSREY+IDwveDp4bXBtZXRhPiA8P3hwYWNrZXQgZW5kPSJyIj8+JOr+gQAABzlJREFUeJzt1rENwzAQBEHTUOHsnEoVKhDwG8xUcNHi1vkBdPynBwA8iRKQIkpAiigBKaIEpIgSkCJKQIooASmiBKSIEpAiSkCKKAEpogSkiBKQIkpAiigBKaIEpIgSkCJKQIooASmiBKSIEpAiSkCKKAEpogSkiBKQIkpAiigBKaIEpIgSkCJKQIooASmiBKSIEpAiSkCKKAEpogSkiBKQIkpAiigBKaIEpIgSkCJKQIooASmiBKSIEpAiSkCKKAEpogSkiBKQIkpAiigBKaIEpIgSkCJKQIooASmiBKSIEpAiSkCKKAEpogSkiBKQIkpAiigBKaIEpIgSkCJKQIooASmiBKSIEpAiSkCKKAEpogSkiBKQIkpAiigBKaIEpIgSkCJKQIooASmiBKSIEpAiSkCKKAEpogSkiBKQIkpAiigBKaIEpIgSkCJKQIooASmiBKSIEpAiSkCKKAEpogSkiBKQIkpAiigBKaIEpIgSkCJKQIooASmiBKSIEpAiSkCKKAEpogSkiBKQIkpAiigBKaIEpIgSkCJKQIooASmiBKSIEpAiSkCKKAEpogSkiBKQIkpAiigBKaIEpIgSkCJKQIooASmiBKSIEpAiSkCKKAEpogSkiBKQIkpAiigBKaIEpIgSkCJKQIooASmiBKSIEpAiSkCKKAEpogSkiBKQIkpAiigBKaIEpIgSkCJKQIooASmiBKSIEpAiSkCKKAEpogSkiBKQIkpAiigBKaIEpIgSkCJKQIooASmiBKSIEpAiSkCKKAEpogSkiBKQIkpAiigBKaIEpIgSkCJKQIooASmiBKSIEpAiSkCKKAEpogSkiBKQIkpAiigBKaIEpIgSkCJKQIooASmiBKSIEpAiSkCKKAEpogSkiBKQIkpAiigBKaIEpIgSkHJND3hrn+kFULXX9IIveUpAiigBKaIEpIgSkCJKQIooASmiBKSIEpAiSkCKKAEpogSkiBKQIkpAiigBKaIEpIgSkCJKQIooASmiBKSIEpAiSkCKKAEpogSkiBKQIkpAiigBKaIEpIgSkCJKQIooASmiBKSIEpAiSkCKKAEpogSkiBKQIkpAiigBKaIEpIgSkCJKQIooASmiBKSIEpAiSkCKKAEpogSkiBKQIkpAiigBKaIEpIgSkCJKQIooASmiBKSIEpAiSkCKKAEpogSkiBKQIkpAiigBKaIEpIgSkCJKQIooASmiBKSIEpAiSkCKKAEpogSkiBKQIkpAiigBKaIEpIgSkCJKQIooASmiBKSIEpAiSkCKKAEp60wvAHjwlIAUUQJSRAlIESUgRZSAFFECUkQJSBElIEWUgBRRAlJECUgRJSBFlIAUUQJSRAlIESUgRZSAFFECUkQJSBElIEWUgBRRAlJECUgRJSBFlIAUUQJSRAlIESUgRZSAFFECUkQJSBElIEWUgBRRAlJECUgRJSDlmh7w1j7TC6Bqr+kFX/KUgBRRAlJECUgRJSBFlIAUUQJSRAlIESUgRZSAFFECUkQJSBElIEWUgBRRAlJECUgRJSBFlIAUUQJSRAlIESUgRZSAFFECUkQJSBElIEWUgBRRAlJECUgRJSBFlIAUUQJSRAlIESUgRZSAFFECUkQJSBElIEWUgBRRAlJECUgRJSBFlIAUUQJSRAlIESUgRZSAFFECUkQJSBElIEWUgBRRAlJECUgRJSBFlIAUUQJSRAlIESUgRZSAFFECUkQJSBElIEWUgBRRAlJECUgRJSBFlIAUUQJSRAlIESUgRZSAFFECUkQJSBElIEWUgBRRAlJECUgRJSBFlIAUUQJSRAlIESUgRZSAFFECUtaZXgDw4CkBKaIEpIgSkCJKQIooASmiBKSIEpAiSkCKKAEpogSkiBKQIkpAiigBKaIEpIgSkCJKQIooASmiBKSIEpAiSkCKKAEpogSkiBKQIkpAiigBKaIEpIgSkCJKQIooASmiBKSIEpAiSkCKKAEpogSkiBKQIkpAiigBKaIEpIgSkCJKQIooASmiBKSIEpAiSkCKKAEpogSkiBKQIkpAiigBKaIEpIgSkCJKQIooASmiBKSIEpAiSkCKKAEpogSkiBKQIkpAiigBKaIEpIgSkCJKQIooASmiBKSIEpAiSkCKKAEpogSkiBKQIkpAiigBKaIEpIgSkCJKQIooASmiBKSIEpAiSkCKKAEpogSkiBKQIkpAiigBKaIEpIgSkCJKQIooASmiBKSIEpAiSkCKKAEpogSkiBKQIkpAiigBKaIEpIgSkCJKQIooASmiBKSIEpAiSkCKKAEpogSkiBKQIkpAiigBKaIEpIgSkCJKQIooASmiBKSIEpAiSkCKKAEpogSkiBKQIkpAiigBKaIEpIgSkCJKQIooASmiBKSIEpAiSkCKKAEpogSkiBKQIkpAiigBKaIEpIgSkCJKQIooASmiBKSIEpAiSkCKKAEpogSkiBKQIkpAiigBKaIEpIgSkHIDp74LS5/6zzUAAAAASUVORK5CYII=";function Ja(a){return tt({url:"/api/system/competency/list",method:"get",params:{...a,tenant_id:1}})}function jt(a){return tt({url:"/api/system/interview_question/list",method:"get",params:{...a,tenant_id:1}})}function Wa(a){return tt({url:"/api/system/interview_question/ai_generated",method:"post",data:{...a,tenant_id:1},timeout:0})}function Ha(a){return tt({url:"/api/system/interview_question/draft_list",method:"get",params:{...a,tenant_id:1}})}function Ya(a){return tt({url:"/api/system/interview_question/confirm_draft",method:"post",data:{...a,tenant_id:1}})}function Xa(a){return tt({url:"/api/system/digital_human/",method:"get",params:{...a,tenant_id:1}})}function dn(a){return tt({url:"/api/system/job_config/list",method:"post",data:{...a,tenant_id:1}})}function un(a){return tt({url:`/api/system/job_config/detail/${a.id}`,method:"put",data:{...a,tenant_id:1}})}function Tn(a){return tt({url:`/api/system/job_config/position/detail/${a}`,method:"get"})}function Mi(a){return tt({url:"api/system/job/add_question",method:"post",data:{...a,tenant_id:"1"}})}function Jo(a){return tt({url:"/api/system/digital_human/generate_opening_video",method:"post",data:{...a,tenant_id:"1"},timeout:0})}function Bi(a){return tt({url:"/api/system/digital_human/generate_question_videos",method:"post",data:{...a,tenant_id:"1",force_regenerate:!0},timeout:0})}function Ni(a){return tt({url:"api/system/job/add_question",method:"post",data:{...a,tenant_id:"1"}})}function ji(a){return tt({url:"/api/system/job/batch_delete_questions",method:"post",data:{...a,tenant_id:"1"}})}function Za(a){return tt({url:"/api/system/interview_question/update",method:"put",data:{...a,tenant_id:"1"}})}function Fi(a){return tt({url:"/competency/generate_from_position/",method:"post",data:{...a,tenant_id:"1"},timeout:0})}function qa(a){return tt({url:"/competency/save_position_tags/",method:"post",data:{...a,tenant_id:"1"}})}function _a(a){return tt({url:"/api/system/competency/list",method:"get",params:{...a,tenant_id:"1"}})}var _i={exports:{}};/**!
  2. * Sortable 1.14.0
  3. * @author RubaXa <trash@rubaxa.org>
  4. * @author owenm <owen23355@gmail.com>
  5. * @license MIT
  6. */function Li(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 Rt(a){for(var i=1;i<arguments.length;i++){var o=arguments[i]!=null?arguments[i]:{};i%2?Li(Object(o),!0).forEach(function(u){el(a,u,o[u])}):Object.getOwnPropertyDescriptors?Object.defineProperties(a,Object.getOwnPropertyDescriptors(o)):Li(Object(o)).forEach(function(u){Object.defineProperty(a,u,Object.getOwnPropertyDescriptor(o,u))})}return a}function Po(a){"@babel/helpers - typeof";return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?Po=function(i){return typeof i}:Po=function(i){return i&&typeof Symbol=="function"&&i.constructor===Symbol&&i!==Symbol.prototype?"symbol":typeof i},Po(a)}function el(a,i,o){return i in a?Object.defineProperty(a,i,{value:o,enumerable:!0,configurable:!0,writable:!0}):a[i]=o,a}function xt(){return xt=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},xt.apply(this,arguments)}function tl(a,i){if(a==null)return{};var o={},u=Object.keys(a),n,d;for(d=0;d<u.length;d++)n=u[d],!(i.indexOf(n)>=0)&&(o[n]=a[n]);return o}function nl(a,i){if(a==null)return{};var o=tl(a,i),u,n;if(Object.getOwnPropertySymbols){var d=Object.getOwnPropertySymbols(a);for(n=0;n<d.length;n++)u=d[n],!(i.indexOf(u)>=0)&&Object.prototype.propertyIsEnumerable.call(a,u)&&(o[u]=a[u])}return o}function ol(a){return il(a)||rl(a)||al(a)||ll()}function il(a){if(Array.isArray(a))return oi(a)}function rl(a){if(typeof Symbol<"u"&&a[Symbol.iterator]!=null||a["@@iterator"]!=null)return Array.from(a)}function al(a,i){if(a){if(typeof a=="string")return oi(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 oi(a,i)}}function oi(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 ll(){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 sl="1.14.0";function Ft(a){if(typeof window<"u"&&window.navigator)return!!navigator.userAgent.match(a)}var Lt=Ft(/(?:Trident.*rv[ :]?11\.|msie|iemobile|Windows Phone)/i),vo=Ft(/Edge/i),ki=Ft(/firefox/i),lo=Ft(/safari/i)&&!Ft(/chrome/i)&&!Ft(/android/i),er=Ft(/iP(ad|od|hone)/i),dl=Ft(/chrome/i)&&Ft(/android/i),tr={capture:!1,passive:!1};function he(a,i,o){a.addEventListener(i,o,!Lt&&tr)}function ge(a,i,o){a.removeEventListener(i,o,!Lt&&tr)}function Mo(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 ul(a){return a.host&&a!==document&&a.host.nodeType?a.host:a.parentNode}function wt(a,i,o,u){if(a){o=o||document;do{if(i!=null&&(i[0]===">"?a.parentNode===o&&Mo(a,i):Mo(a,i))||u&&a===o)return a;if(a===o)break}while(a=ul(a))}return null}var Qi=/\s+/g;function Fe(a,i,o){if(a&&i)if(a.classList)a.classList[o?"add":"remove"](i);else{var u=(" "+a.className+" ").replace(Qi," ").replace(" "+i+" "," ");a.className=(u+(o?" "+i:"")).replace(Qi," ")}}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 pn(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 nr(a,i,o){if(a){var u=a.getElementsByTagName(i),n=0,d=u.length;if(o)for(;n<d;n++)o(u[n],n);return u}return[]}function Pt(){var a=document.scrollingElement;return a||document.documentElement}function Ne(a,i,o,u,n){if(!(!a.getBoundingClientRect&&a!==window)){var d,e,r,l,c,p,f;if(a!==window&&a.parentNode&&a!==Pt()?(d=a.getBoundingClientRect(),e=d.top,r=d.left,l=d.bottom,c=d.right,p=d.height,f=d.width):(e=0,r=0,l=window.innerHeight,c=window.innerWidth,p=window.innerHeight,f=window.innerWidth),(i||o)&&a!==window&&(n=n||a.parentNode,!Lt))do if(n&&n.getBoundingClientRect&&(te(n,"transform")!=="none"||o&&te(n,"position")!=="static")){var g=n.getBoundingClientRect();e-=g.top+parseInt(te(n,"border-top-width")),r-=g.left+parseInt(te(n,"border-left-width")),l=e+d.height,c=r+d.width;break}while(n=n.parentNode);if(u&&a!==window){var h=pn(n||a),b=h&&h.a,E=h&&h.d;h&&(e/=E,r/=b,f/=b,p/=E,l=e+p,c=r+f)}return{top:e,left:r,bottom:l,right:c,width:f,height:p}}}function zi(a,i,o){for(var u=Zt(a,!0),n=Ne(a)[i];u;){var d=Ne(u)[o],e=void 0;if(e=n>=d,!e)return u;if(u===Pt())break;u=Zt(u,!1)}return!1}function Kn(a,i,o,u){for(var n=0,d=0,e=a.children;d<e.length;){if(e[d].style.display!=="none"&&e[d]!==ue.ghost&&(u||e[d]!==ue.dragged)&&wt(e[d],o.draggable,a,!1)){if(n===i)return e[d];n++}d++}return null}function si(a,i){for(var o=a.lastElementChild;o&&(o===ue.ghost||te(o,"display")==="none"||i&&!Mo(o,i));)o=o.previousElementSibling;return o||null}function ze(a,i){var o=0;if(!a||!a.parentNode)return-1;for(;a=a.previousElementSibling;)a.nodeName.toUpperCase()!=="TEMPLATE"&&a!==ue.clone&&(!i||Mo(a,i))&&o++;return o}function Gi(a){var i=0,o=0,u=Pt();if(a)do{var n=pn(a),d=n.a,e=n.d;i+=a.scrollLeft*d,o+=a.scrollTop*e}while(a!==u&&(a=a.parentNode));return[i,o]}function cl(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 Zt(a,i){if(!a||!a.getBoundingClientRect)return Pt();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 Pt();if(u||i)return o;u=!0}}while(o=o.parentNode);return Pt()}function fl(a,i){if(a&&i)for(var o in i)i.hasOwnProperty(o)&&(a[o]=i[o]);return a}function Wo(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 so;function or(a,i){return function(){if(!so){var o=arguments,u=this;o.length===1?a.call(u,o[0]):a.apply(u,o),so=setTimeout(function(){so=void 0},i)}}}function vl(){clearTimeout(so),so=void 0}function ir(a,i,o){a.scrollLeft+=i,a.scrollTop+=o}function di(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 $i(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 Ho(a){te(a,"position",""),te(a,"top",""),te(a,"left",""),te(a,"width",""),te(a,"height","")}var st="Sortable"+new Date().getTime();function pl(){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===ue.ghost)){a.push({target:n,rect:Ne(n)});var d=Rt({},a[a.length-1].rect);if(n.thisAnimationDuration){var e=pn(n,!0);e&&(d.top-=e.f,d.left-=e.e)}n.fromRect=d}})}},addAnimationState:function(u){a.push(u)},removeAnimationState:function(u){a.splice(cl(a,{target:u}),1)},animateAll:function(u){var n=this;if(!this.options.animation){clearTimeout(i),typeof u=="function"&&u();return}var d=!1,e=0;a.forEach(function(r){var l=0,c=r.target,p=c.fromRect,f=Ne(c),g=c.prevFromRect,h=c.prevToRect,b=r.rect,E=pn(c,!0);E&&(f.top-=E.f,f.left-=E.e),c.toRect=f,c.thisAnimationDuration&&Wo(g,f)&&!Wo(p,f)&&(b.top-f.top)/(b.left-f.left)===(p.top-f.top)/(p.left-f.left)&&(l=gl(b,g,h,n.options)),Wo(f,p)||(c.prevFromRect=p,c.prevToRect=f,l||(l=n.options.animation),n.animate(c,b,f,l)),l&&(d=!0,e=Math.max(e,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),d?i=setTimeout(function(){typeof u=="function"&&u()},e):typeof u=="function"&&u(),a=[]},animate:function(u,n,d,e){if(e){te(u,"transition",""),te(u,"transform","");var r=pn(this.el),l=r&&r.a,c=r&&r.d,p=(n.left-d.left)/(l||1),f=(n.top-d.top)/(c||1);u.animatingX=!!p,u.animatingY=!!f,te(u,"transform","translate3d("+p+"px,"+f+"px,0)"),this.forRepaintDummy=ml(u),te(u,"transition","transform "+e+"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},e)}}}}function ml(a){return a.offsetWidth}function gl(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 Dn=[],Yo={initializeByDefault:!0},po={mount:function(i){for(var o in Yo)Yo.hasOwnProperty(o)&&!(o in i)&&(i[o]=Yo[o]);Dn.forEach(function(u){if(u.pluginName===i.pluginName)throw"Sortable: Cannot mount plugin ".concat(i.pluginName," more than once")}),Dn.push(i)},pluginEvent:function(i,o,u){var n=this;this.eventCanceled=!1,u.cancel=function(){n.eventCanceled=!0};var d=i+"Global";Dn.forEach(function(e){o[e.pluginName]&&(o[e.pluginName][d]&&o[e.pluginName][d](Rt({sortable:o},u)),o.options[e.pluginName]&&o[e.pluginName][i]&&o[e.pluginName][i](Rt({sortable:o},u)))})},initializePlugins:function(i,o,u,n){Dn.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,xt(u,c.defaults)}});for(var d in i.options)if(i.options.hasOwnProperty(d)){var e=this.modifyOption(i,d,i.options[d]);typeof e<"u"&&(i.options[d]=e)}},getEventProperties:function(i,o){var u={};return Dn.forEach(function(n){typeof n.eventProperties=="function"&&xt(u,n.eventProperties.call(o[n.pluginName],i))}),u},modifyOption:function(i,o,u){var n;return Dn.forEach(function(d){i[d.pluginName]&&d.optionListeners&&typeof d.optionListeners[o]=="function"&&(n=d.optionListeners[o].call(i[d.pluginName],u))}),n}};function oo(a){var i=a.sortable,o=a.rootEl,u=a.name,n=a.targetEl,d=a.cloneEl,e=a.toEl,r=a.fromEl,l=a.oldIndex,c=a.newIndex,p=a.oldDraggableIndex,f=a.newDraggableIndex,g=a.originalEvent,h=a.putSortable,b=a.extraEventProperties;if(i=i||o&&o[st],!!i){var E,x=i.options,w="on"+u.charAt(0).toUpperCase()+u.substr(1);window.CustomEvent&&!Lt&&!vo?E=new CustomEvent(u,{bubbles:!0,cancelable:!0}):(E=document.createEvent("Event"),E.initEvent(u,!0,!0)),E.to=e||o,E.from=r||o,E.item=n||o,E.clone=d,E.oldIndex=l,E.newIndex=c,E.oldDraggableIndex=p,E.newDraggableIndex=f,E.originalEvent=g,E.pullMode=h?h.lastPutMode:void 0;var C=Rt(Rt({},b),po.getEventProperties(u,i));for(var U in C)E[U]=C[U];o&&o.dispatchEvent(E),x[w]&&x[w].call(i,E)}}var hl=["evt"],vt=function(i,o){var u=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},n=u.evt,d=nl(u,hl);po.pluginEvent.bind(ue)(i,o,Rt({dragEl:Q,parentEl:ke,ghostEl:pe,rootEl:Be,nextEl:vn,lastDownEl:Ro,cloneEl:Qe,cloneHidden:Xt,dragStarted:io,putSortable:it,activeSortable:ue.active,originalEvent:n,oldIndex:Un,oldDraggableIndex:uo,newIndex:ht,newDraggableIndex:Yt,hideGhostForTarget:sr,unhideGhostForTarget:dr,cloneNowHidden:function(){Xt=!0},cloneNowShown:function(){Xt=!1},dispatchSortableEvent:function(r){ct({sortable:o,name:r,originalEvent:n})}},d))};function ct(a){oo(Rt({putSortable:it,cloneEl:Qe,targetEl:Q,rootEl:Be,oldIndex:Un,oldDraggableIndex:uo,newIndex:ht,newDraggableIndex:Yt},a))}var Q,ke,pe,Be,vn,Ro,Qe,Xt,Un,ht,uo,Yt,Co,it,Vn=!1,Bo=!1,No=[],cn,Ct,Xo,Zo,Ji,Wi,io,Pn,co,fo=!1,Ao=!1,Vo,lt,qo=[],ii=!1,jo=[],Lo=typeof document<"u",wo=er,Hi=vo||Lt?"cssFloat":"float",yl=Lo&&!dl&&!er&&"draggable"in document.createElement("div"),rr=function(){if(Lo){if(Lt)return!1;var a=document.createElement("x");return a.style.cssText="pointer-events:auto",a.style.pointerEvents==="auto"}}(),ar=function(i,o){var u=te(i),n=parseInt(u.width)-parseInt(u.paddingLeft)-parseInt(u.paddingRight)-parseInt(u.borderLeftWidth)-parseInt(u.borderRightWidth),d=Kn(i,0,o),e=Kn(i,1,o),r=d&&te(d),l=e&&te(e),c=r&&parseInt(r.marginLeft)+parseInt(r.marginRight)+Ne(d).width,p=l&&parseInt(l.marginLeft)+parseInt(l.marginRight)+Ne(e).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(d&&r.float&&r.float!=="none"){var f=r.float==="left"?"left":"right";return e&&(l.clear==="both"||l.clear===f)?"vertical":"horizontal"}return d&&(r.display==="block"||r.display==="flex"||r.display==="table"||r.display==="grid"||c>=n&&u[Hi]==="none"||e&&u[Hi]==="none"&&c+p>n)?"vertical":"horizontal"},bl=function(i,o,u){var n=u?i.left:i.top,d=u?i.right:i.bottom,e=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||d===l||n+e/2===r+c/2},Sl=function(i,o){var u;return No.some(function(n){var d=n[st].options.emptyInsertThreshold;if(!(!d||si(n))){var e=Ne(n),r=i>=e.left-d&&i<=e.right+d,l=o>=e.top-d&&o<=e.bottom+d;if(r&&l)return u=n}}),u},lr=function(i){function o(d,e){return function(r,l,c,p){var f=r.options.group.name&&l.options.group.name&&r.options.group.name===l.options.group.name;if(d==null&&(e||f))return!0;if(d==null||d===!1)return!1;if(e&&d==="clone")return d;if(typeof d=="function")return o(d(r,l,c,p),e)(r,l,c,p);var g=(e?r:l).options.group.name;return d===!0||typeof d=="string"&&d===g||d.join&&d.indexOf(g)>-1}}var u={},n=i.group;(!n||Po(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},sr=function(){!rr&&pe&&te(pe,"display","none")},dr=function(){!rr&&pe&&te(pe,"display","")};Lo&&document.addEventListener("click",function(a){if(Bo)return a.preventDefault(),a.stopPropagation&&a.stopPropagation(),a.stopImmediatePropagation&&a.stopImmediatePropagation(),Bo=!1,!1},!0);var fn=function(i){if(Q){i=i.touches?i.touches[0]:i;var o=Sl(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[st]._onDragOver(u)}}},El=function(i){Q&&Q.parentNode[st]._isOutsideThisEl(i.target)};function ue(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=xt({},i),a[st]=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 ar(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(e,r){e.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:ue.supportPointer!==!1&&"PointerEvent"in window&&!lo,emptyInsertThreshold:5};po.initializePlugins(this,a,o);for(var u in o)!(u in i)&&(i[u]=o[u]);lr(i);for(var n in this)n.charAt(0)==="_"&&typeof this[n]=="function"&&(this[n]=this[n].bind(this));this.nativeDraggable=i.forceFallback?!1:yl,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)),No.push(this.el),i.store&&i.store.get&&this.sort(i.store.get(this)||[]),xt(this,pl())}ue.prototype={constructor:ue,_isOutsideThisEl:function(i){!this.el.contains(i)&&i!==this.el&&(Pn=null)},_getDirection:function(i,o){return typeof this.options.direction=="function"?this.options.direction.call(this,i,o,Q):this.options.direction},_onTapStart:function(i){if(i.cancelable){var o=this,u=this.el,n=this.options,d=n.preventOnFilter,e=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,p=n.filter;if(Dl(u),!Q&&!(/mousedown|pointerdown/.test(e)&&i.button!==0||n.disabled)&&!c.isContentEditable&&!(!this.nativeDraggable&&lo&&l&&l.tagName.toUpperCase()==="SELECT")&&(l=wt(l,n.draggable,u,!1),!(l&&l.animated)&&Ro!==l)){if(Un=ze(l),uo=ze(l,n.draggable),typeof p=="function"){if(p.call(this,i,l,this)){ct({sortable:o,rootEl:c,name:"filter",targetEl:l,toEl:u,fromEl:u}),vt("filter",o,{evt:i}),d&&i.cancelable&&i.preventDefault();return}}else if(p&&(p=p.split(",").some(function(f){if(f=wt(c,f.trim(),u,!1),f)return ct({sortable:o,rootEl:f,name:"filter",targetEl:l,fromEl:u,toEl:u}),vt("filter",o,{evt:i}),!0}),p)){d&&i.cancelable&&i.preventDefault();return}n.handle&&!wt(c,n.handle,u,!1)||this._prepareDragStart(i,r,l)}}},_prepareDragStart:function(i,o,u){var n=this,d=n.el,e=n.options,r=d.ownerDocument,l;if(u&&!Q&&u.parentNode===d){var c=Ne(u);if(Be=d,Q=u,ke=Q.parentNode,vn=Q.nextSibling,Ro=u,Co=e.group,ue.dragged=Q,cn={target:Q,clientX:(o||i).clientX,clientY:(o||i).clientY},Ji=cn.clientX-c.left,Wi=cn.clientY-c.top,this._lastX=(o||i).clientX,this._lastY=(o||i).clientY,Q.style["will-change"]="all",l=function(){if(vt("delayEnded",n,{evt:i}),ue.eventCanceled){n._onDrop();return}n._disableDelayedDragEvents(),!ki&&n.nativeDraggable&&(Q.draggable=!0),n._triggerDragStart(i,o),ct({sortable:n,name:"choose",originalEvent:i}),Fe(Q,e.chosenClass,!0)},e.ignore.split(",").forEach(function(p){nr(Q,p.trim(),_o)}),he(r,"dragover",fn),he(r,"mousemove",fn),he(r,"touchmove",fn),he(r,"mouseup",n._onDrop),he(r,"touchend",n._onDrop),he(r,"touchcancel",n._onDrop),ki&&this.nativeDraggable&&(this.options.touchStartThreshold=4,Q.draggable=!0),vt("delayStart",this,{evt:i}),e.delay&&(!e.delayOnTouchOnly||o)&&(!this.nativeDraggable||!(vo||Lt))){if(ue.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),e.supportPointer&&he(r,"pointermove",n._delayedDragTouchMoveHandler),n._dragStartTimer=setTimeout(l,e.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(){Q&&_o(Q),clearTimeout(this._dragStartTimer),this._disableDelayedDragEvents()},_disableDelayedDragEvents:function(){var i=this.el.ownerDocument;ge(i,"mouseup",this._disableDelayedDrag),ge(i,"touchend",this._disableDelayedDrag),ge(i,"touchcancel",this._disableDelayedDrag),ge(i,"mousemove",this._delayedDragTouchMoveHandler),ge(i,"touchmove",this._delayedDragTouchMoveHandler),ge(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(Q,"dragend",this),he(Be,"dragstart",this._onDragStart));try{document.selection?Uo(function(){document.selection.empty()}):window.getSelection().removeAllRanges()}catch{}},_dragStarted:function(i,o){if(Vn=!1,Be&&Q){vt("dragStarted",this,{evt:o}),this.nativeDraggable&&he(document,"dragover",El);var u=this.options;!i&&Fe(Q,u.dragClass,!1),Fe(Q,u.ghostClass,!0),ue.active=this,i&&this._appendGhost(),ct({sortable:this,name:"start",originalEvent:o})}else this._nulling()},_emulateDragOver:function(){if(Ct){this._lastX=Ct.clientX,this._lastY=Ct.clientY,sr();for(var i=document.elementFromPoint(Ct.clientX,Ct.clientY),o=i;i&&i.shadowRoot&&(i=i.shadowRoot.elementFromPoint(Ct.clientX,Ct.clientY),i!==o);)o=i;if(Q.parentNode[st]._isOutsideThisEl(i),o)do{if(o[st]){var u=void 0;if(u=o[st]._onDragOver({clientX:Ct.clientX,clientY:Ct.clientY,target:i,rootEl:o}),u&&!this.options.dragoverBubble)break}i=o}while(o=o.parentNode);dr()}},_onTouchMove:function(i){if(cn){var o=this.options,u=o.fallbackTolerance,n=o.fallbackOffset,d=i.touches?i.touches[0]:i,e=pe&&pn(pe,!0),r=pe&&e&&e.a,l=pe&&e&&e.d,c=wo&&lt&&Gi(lt),p=(d.clientX-cn.clientX+n.x)/(r||1)+(c?c[0]-qo[0]:0)/(r||1),f=(d.clientY-cn.clientY+n.y)/(l||1)+(c?c[1]-qo[1]:0)/(l||1);if(!ue.active&&!Vn){if(u&&Math.max(Math.abs(d.clientX-this._lastX),Math.abs(d.clientY-this._lastY))<u)return;this._onDragStart(i,!0)}if(pe){e?(e.e+=p-(Xo||0),e.f+=f-(Zo||0)):e={a:1,b:0,c:0,d:1,e:p,f};var g="matrix(".concat(e.a,",").concat(e.b,",").concat(e.c,",").concat(e.d,",").concat(e.e,",").concat(e.f,")");te(pe,"webkitTransform",g),te(pe,"mozTransform",g),te(pe,"msTransform",g),te(pe,"transform",g),Xo=p,Zo=f,Ct=d}i.cancelable&&i.preventDefault()}},_appendGhost:function(){if(!pe){var i=this.options.fallbackOnBody?document.body:Be,o=Ne(Q,!0,wo,!0,i),u=this.options;if(wo){for(lt=i;te(lt,"position")==="static"&&te(lt,"transform")==="none"&&lt!==document;)lt=lt.parentNode;lt!==document.body&&lt!==document.documentElement?(lt===document&&(lt=Pt()),o.top+=lt.scrollTop,o.left+=lt.scrollLeft):lt=Pt(),qo=Gi(lt)}pe=Q.cloneNode(!0),Fe(pe,u.ghostClass,!1),Fe(pe,u.fallbackClass,!0),Fe(pe,u.dragClass,!0),te(pe,"transition",""),te(pe,"transform",""),te(pe,"box-sizing","border-box"),te(pe,"margin",0),te(pe,"top",o.top),te(pe,"left",o.left),te(pe,"width",o.width),te(pe,"height",o.height),te(pe,"opacity","0.8"),te(pe,"position",wo?"absolute":"fixed"),te(pe,"zIndex","100000"),te(pe,"pointerEvents","none"),ue.ghost=pe,i.appendChild(pe),te(pe,"transform-origin",Ji/parseInt(pe.style.width)*100+"% "+Wi/parseInt(pe.style.height)*100+"%")}},_onDragStart:function(i,o){var u=this,n=i.dataTransfer,d=u.options;if(vt("dragStart",this,{evt:i}),ue.eventCanceled){this._onDrop();return}vt("setupClone",this),ue.eventCanceled||(Qe=di(Q),Qe.draggable=!1,Qe.style["will-change"]="",this._hideClone(),Fe(Qe,this.options.chosenClass,!1),ue.clone=Qe),u.cloneId=Uo(function(){vt("clone",u),!ue.eventCanceled&&(u.options.removeCloneOnHide||Be.insertBefore(Qe,Q),u._hideClone(),ct({sortable:u,name:"clone"}))}),!o&&Fe(Q,d.dragClass,!0),o?(Bo=!0,u._loopId=setInterval(u._emulateDragOver,50)):(ge(document,"mouseup",u._onDrop),ge(document,"touchend",u._onDrop),ge(document,"touchcancel",u._onDrop),n&&(n.effectAllowed="move",d.setData&&d.setData.call(u,n,Q)),he(document,"drop",u),te(Q,"transform","translateZ(0)")),Vn=!0,u._dragStartId=Uo(u._dragStarted.bind(u,o,i)),he(document,"selectstart",u),io=!0,lo&&te(document.body,"user-select","none")},_onDragOver:function(i){var o=this.el,u=i.target,n,d,e,r=this.options,l=r.group,c=ue.active,p=Co===l,f=r.sort,g=it||c,h,b=this,E=!1;if(ii)return;function x(ye,Te){vt(ye,b,Rt({evt:i,isOwner:p,axis:h?"vertical":"horizontal",revert:e,dragRect:n,targetRect:d,canSort:f,fromSortable:g,target:u,completed:C,onMove:function(Ee,Ue){return Oo(Be,o,Q,n,Ee,Ne(Ee),i,Ue)},changed:U},Te))}function w(){x("dragOverAnimationCapture"),b.captureAnimationState(),b!==g&&g.captureAnimationState()}function C(ye){return x("dragOverCompleted",{insertion:ye}),ye&&(p?c._hideClone():c._showClone(b),b!==g&&(Fe(Q,it?it.options.ghostClass:c.options.ghostClass,!1),Fe(Q,r.ghostClass,!0)),it!==b&&b!==ue.active?it=b:b===ue.active&&it&&(it=null),g===b&&(b._ignoreWhileAnimating=u),b.animateAll(function(){x("dragOverAnimationComplete"),b._ignoreWhileAnimating=null}),b!==g&&(g.animateAll(),g._ignoreWhileAnimating=null)),(u===Q&&!Q.animated||u===o&&!u.animated)&&(Pn=null),!r.dragoverBubble&&!i.rootEl&&u!==document&&(Q.parentNode[st]._isOutsideThisEl(i.target),!ye&&fn(i)),!r.dragoverBubble&&i.stopPropagation&&i.stopPropagation(),E=!0}function U(){ht=ze(Q),Yt=ze(Q,r.draggable),ct({sortable:b,name:"change",toEl:o,newIndex:ht,newDraggableIndex:Yt,originalEvent:i})}if(i.preventDefault!==void 0&&i.cancelable&&i.preventDefault(),u=wt(u,r.draggable,o,!0),x("dragOver"),ue.eventCanceled)return E;if(Q.contains(i.target)||u.animated&&u.animatingX&&u.animatingY||b._ignoreWhileAnimating===u)return C(!1);if(Bo=!1,c&&!r.disabled&&(p?f||(e=ke!==Be):it===this||(this.lastPutMode=Co.checkPull(this,c,Q,i))&&l.checkPut(this,c,Q,i))){if(h=this._getDirection(i,u)==="vertical",n=Ne(Q),x("dragOverValid"),ue.eventCanceled)return E;if(e)return ke=Be,w(),this._hideClone(),x("revert"),ue.eventCanceled||(vn?Be.insertBefore(Q,vn):Be.appendChild(Q)),C(!0);var P=si(o,r.draggable);if(!P||Al(i,h,this)&&!P.animated){if(P===Q)return C(!1);if(P&&o===i.target&&(u=P),u&&(d=Ne(u)),Oo(Be,o,Q,n,u,d,i,!!u)!==!1)return w(),o.appendChild(Q),ke=o,U(),C(!0)}else if(P&&Cl(i,h,this)){var K=Kn(o,0,r,!0);if(K===Q)return C(!1);if(u=K,d=Ne(u),Oo(Be,o,Q,n,u,d,i,!1)!==!1)return w(),o.insertBefore(Q,K),ke=o,U(),C(!0)}else if(u.parentNode===o){d=Ne(u);var D=0,H,_=Q.parentNode!==o,V=!bl(Q.animated&&Q.toRect||n,u.animated&&u.toRect||d,h),z=h?"top":"left",Y=zi(u,"top","top")||zi(Q,"top","top"),re=Y?Y.scrollTop:void 0;Pn!==u&&(H=d[z],fo=!1,Ao=!V&&r.invertSwap||_),D=wl(i,u,d,h,V?1:r.swapThreshold,r.invertedSwapThreshold==null?r.swapThreshold:r.invertedSwapThreshold,Ao,Pn===u);var T;if(D!==0){var k=ze(Q);do k-=D,T=ke.children[k];while(T&&(te(T,"display")==="none"||T===pe))}if(D===0||T===u)return C(!1);Pn=u,co=D;var ce=u.nextElementSibling,$=!1;$=D===1;var oe=Oo(Be,o,Q,n,u,d,i,$);if(oe!==!1)return(oe===1||oe===-1)&&($=oe===1),ii=!0,setTimeout(Il,30),w(),$&&!ce?o.appendChild(Q):u.parentNode.insertBefore(Q,$?ce:u),Y&&ir(Y,0,re-Y.scrollTop),ke=Q.parentNode,H!==void 0&&!Ao&&(Vo=Math.abs(H-Ne(u)[z])),U(),C(!0)}if(o.contains(Q))return C(!1)}return!1},_ignoreWhileAnimating:null,_offMoveEvents:function(){ge(document,"mousemove",this._onTouchMove),ge(document,"touchmove",this._onTouchMove),ge(document,"pointermove",this._onTouchMove),ge(document,"dragover",fn),ge(document,"mousemove",fn),ge(document,"touchmove",fn)},_offUpEvents:function(){var i=this.el.ownerDocument;ge(i,"mouseup",this._onDrop),ge(i,"touchend",this._onDrop),ge(i,"pointerup",this._onDrop),ge(i,"touchcancel",this._onDrop),ge(document,"selectstart",this)},_onDrop:function(i){var o=this.el,u=this.options;if(ht=ze(Q),Yt=ze(Q,u.draggable),vt("drop",this,{evt:i}),ke=Q&&Q.parentNode,ht=ze(Q),Yt=ze(Q,u.draggable),ue.eventCanceled){this._nulling();return}Vn=!1,Ao=!1,fo=!1,clearInterval(this._loopId),clearTimeout(this._dragStartTimer),ri(this.cloneId),ri(this._dragStartId),this.nativeDraggable&&(ge(document,"drop",this),ge(o,"dragstart",this._onDragStart)),this._offMoveEvents(),this._offUpEvents(),lo&&te(document.body,"user-select",""),te(Q,"transform",""),i&&(io&&(i.cancelable&&i.preventDefault(),!u.dropBubble&&i.stopPropagation()),pe&&pe.parentNode&&pe.parentNode.removeChild(pe),(Be===ke||it&&it.lastPutMode!=="clone")&&Qe&&Qe.parentNode&&Qe.parentNode.removeChild(Qe),Q&&(this.nativeDraggable&&ge(Q,"dragend",this),_o(Q),Q.style["will-change"]="",io&&!Vn&&Fe(Q,it?it.options.ghostClass:this.options.ghostClass,!1),Fe(Q,this.options.chosenClass,!1),ct({sortable:this,name:"unchoose",toEl:ke,newIndex:null,newDraggableIndex:null,originalEvent:i}),Be!==ke?(ht>=0&&(ct({rootEl:ke,name:"add",toEl:ke,fromEl:Be,originalEvent:i}),ct({sortable:this,name:"remove",toEl:ke,originalEvent:i}),ct({rootEl:ke,name:"sort",toEl:ke,fromEl:Be,originalEvent:i}),ct({sortable:this,name:"sort",toEl:ke,originalEvent:i})),it&&it.save()):ht!==Un&&ht>=0&&(ct({sortable:this,name:"update",toEl:ke,originalEvent:i}),ct({sortable:this,name:"sort",toEl:ke,originalEvent:i})),ue.active&&((ht==null||ht===-1)&&(ht=Un,Yt=uo),ct({sortable:this,name:"end",toEl:ke,originalEvent:i}),this.save()))),this._nulling()},_nulling:function(){vt("nulling",this),Be=Q=ke=pe=vn=Qe=Ro=Xt=cn=Ct=io=ht=Yt=Un=uo=Pn=co=it=Co=ue.dragged=ue.ghost=ue.clone=ue.active=null,jo.forEach(function(i){i.checked=!0}),jo.length=Xo=Zo=0},handleEvent:function(i){switch(i.type){case"drop":case"dragend":this._onDrop(i);break;case"dragenter":case"dragover":Q&&(this._onDragOver(i),xl(i));break;case"selectstart":i.preventDefault();break}},toArray:function(){for(var i=[],o,u=this.el.children,n=0,d=u.length,e=this.options;n<d;n++)o=u[n],wt(o,e.draggable,this.el,!1)&&i.push(o.getAttribute(e.dataIdAttr)||Tl(o));return i},sort:function(i,o){var u={},n=this.el;this.toArray().forEach(function(d,e){var r=n.children[e];wt(r,this.options.draggable,n,!1)&&(u[d]=r)},this),o&&this.captureAnimationState(),i.forEach(function(d){u[d]&&(n.removeChild(u[d]),n.appendChild(u[d]))}),o&&this.animateAll()},save:function(){var i=this.options.store;i&&i.set&&i.set(this)},closest:function(i,o){return wt(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=po.modifyOption(this,i,o);typeof n<"u"?u[i]=n:u[i]=o,i==="group"&&lr(u)},destroy:function(){vt("destroy",this);var i=this.el;i[st]=null,ge(i,"mousedown",this._onTapStart),ge(i,"touchstart",this._onTapStart),ge(i,"pointerdown",this._onTapStart),this.nativeDraggable&&(ge(i,"dragover",this),ge(i,"dragenter",this)),Array.prototype.forEach.call(i.querySelectorAll("[draggable]"),function(o){o.removeAttribute("draggable")}),this._onDrop(),this._disableDelayedDragEvents(),No.splice(No.indexOf(this.el),1),this.el=i=null},_hideClone:function(){if(!Xt){if(vt("hideClone",this),ue.eventCanceled)return;te(Qe,"display","none"),this.options.removeCloneOnHide&&Qe.parentNode&&Qe.parentNode.removeChild(Qe),Xt=!0}},_showClone:function(i){if(i.lastPutMode!=="clone"){this._hideClone();return}if(Xt){if(vt("showClone",this),ue.eventCanceled)return;Q.parentNode==Be&&!this.options.group.revertClone?Be.insertBefore(Qe,Q):vn?Be.insertBefore(Qe,vn):Be.appendChild(Qe),this.options.group.revertClone&&this.animate(Q,Qe),te(Qe,"display",""),Xt=!1}}};function xl(a){a.dataTransfer&&(a.dataTransfer.dropEffect="move"),a.cancelable&&a.preventDefault()}function Oo(a,i,o,u,n,d,e,r){var l,c=a[st],p=c.options.onMove,f;return window.CustomEvent&&!Lt&&!vo?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=d||Ne(i),l.willInsertAfter=r,l.originalEvent=e,a.dispatchEvent(l),p&&(f=p.call(c,l,e)),f}function _o(a){a.draggable=!1}function Il(){ii=!1}function Cl(a,i,o){var u=Ne(Kn(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 Al(a,i,o){var u=Ne(si(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 wl(a,i,o,u,n,d,e,r){var l=u?a.clientY:a.clientX,c=u?o.height:o.width,p=u?o.top:o.left,f=u?o.bottom:o.right,g=!1;if(!e){if(r&&Vo<c*n){if(!fo&&(co===1?l>p+c*d/2:l<f-c*d/2)&&(fo=!0),fo)g=!0;else if(co===1?l<p+Vo:l>f-Vo)return-co}else if(l>p+c*(1-n)/2&&l<f-c*(1-n)/2)return Ol(i)}return g=g||e,g&&(l<p+c*d/2||l>f-c*d/2)?l>p+c/2?1:-1:0}function Ol(a){return ze(Q)<ze(a)?1:-1}function Tl(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 Dl(a){jo.length=0;for(var i=a.getElementsByTagName("input"),o=i.length;o--;){var u=i[o];u.checked&&jo.push(u)}}function Uo(a){return setTimeout(a,0)}function ri(a){return clearTimeout(a)}Lo&&he(document,"touchmove",function(a){(ue.active||Vn)&&a.cancelable&&a.preventDefault()});ue.utils={on:he,off:ge,css:te,find:nr,is:function(i,o){return!!wt(i,o,i,!1)},extend:fl,throttle:or,closest:wt,toggleClass:Fe,clone:di,index:ze,nextTick:Uo,cancelNextTick:ri,detectDirection:ar,getChild:Kn};ue.get=function(a){return a[st]};ue.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&&(ue.utils=Rt(Rt({},ue.utils),u.utils)),po.mount(u)})};ue.create=function(a,i){return new ue(a,i)};ue.version=sl;var He=[],ro,ai,li=!1,ei,ti,Fo,ao;function Pl(){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?ge(document,"dragover",this._handleAutoScroll):(ge(document,"pointermove",this._handleFallbackAutoScroll),ge(document,"touchmove",this._handleFallbackAutoScroll),ge(document,"mousemove",this._handleFallbackAutoScroll)),Yi(),Ko(),vl()},nulling:function(){Fo=ai=ro=li=ao=ei=ti=null,He.length=0},_handleFallbackAutoScroll:function(o){this._handleAutoScroll(o,!0)},_handleAutoScroll:function(o,u){var n=this,d=(o.touches?o.touches[0]:o).clientX,e=(o.touches?o.touches[0]:o).clientY,r=document.elementFromPoint(d,e);if(Fo=o,u||this.options.forceAutoScrollFallback||vo||Lt||lo){ni(o,this.options,r,u);var l=Zt(r,!0);li&&(!ao||d!==ei||e!==ti)&&(ao&&Yi(),ao=setInterval(function(){var c=Zt(document.elementFromPoint(d,e),!0);c!==l&&(l=c,Ko()),ni(o,n.options,c,u)},10),ei=d,ti=e)}else{if(!this.options.bubbleScroll||Zt(r,!0)===Pt()){Ko();return}ni(o,this.options,Zt(r,!1),!1)}}},xt(a,{pluginName:"scroll",initializeByDefault:!0})}function Ko(){He.forEach(function(a){clearInterval(a.pid)}),He=[]}function Yi(){clearInterval(ao)}var ni=or(function(a,i,o,u){if(i.scroll){var n=(a.touches?a.touches[0]:a).clientX,d=(a.touches?a.touches[0]:a).clientY,e=i.scrollSensitivity,r=i.scrollSpeed,l=Pt(),c=!1,p;ai!==o&&(ai=o,Ko(),ro=i.scroll,p=i.scrollFn,ro===!0&&(ro=Zt(o,!0)));var f=0,g=ro;do{var h=g,b=Ne(h),E=b.top,x=b.bottom,w=b.left,C=b.right,U=b.width,P=b.height,K=void 0,D=void 0,H=h.scrollWidth,_=h.scrollHeight,V=te(h),z=h.scrollLeft,Y=h.scrollTop;h===l?(K=U<H&&(V.overflowX==="auto"||V.overflowX==="scroll"||V.overflowX==="visible"),D=P<_&&(V.overflowY==="auto"||V.overflowY==="scroll"||V.overflowY==="visible")):(K=U<H&&(V.overflowX==="auto"||V.overflowX==="scroll"),D=P<_&&(V.overflowY==="auto"||V.overflowY==="scroll"));var re=K&&(Math.abs(C-n)<=e&&z+U<H)-(Math.abs(w-n)<=e&&!!z),T=D&&(Math.abs(x-d)<=e&&Y+P<_)-(Math.abs(E-d)<=e&&!!Y);if(!He[f])for(var k=0;k<=f;k++)He[k]||(He[k]={});(He[f].vx!=re||He[f].vy!=T||He[f].el!==h)&&(He[f].el=h,He[f].vx=re,He[f].vy=T,clearInterval(He[f].pid),(re!=0||T!=0)&&(c=!0,He[f].pid=setInterval((function(){u&&this.layer===0&&ue.active._onTouchMove(Fo);var ce=He[this.layer].vy?He[this.layer].vy*r:0,$=He[this.layer].vx?He[this.layer].vx*r:0;typeof p=="function"&&p.call(ue.dragged.parentNode[st],$,ce,a,Fo,He[this.layer].el)!=="continue"||ir(He[this.layer].el,$,ce)}).bind({layer:f}),24))),f++}while(i.bubbleScroll&&g!==l&&(g=Zt(g,!1)));li=c}},30),ur=function(i){var o=i.originalEvent,u=i.putSortable,n=i.dragEl,d=i.activeSortable,e=i.dispatchSortableEvent,r=i.hideGhostForTarget,l=i.unhideGhostForTarget;if(o){var c=u||d;r();var p=o.changedTouches&&o.changedTouches.length?o.changedTouches[0]:o,f=document.elementFromPoint(p.clientX,p.clientY);l(),c&&!c.el.contains(f)&&(e("spill"),this.onSpill({dragEl:n,putSortable:u}))}};function ui(){}ui.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=Kn(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:ur};xt(ui,{pluginName:"revertOnSpill"});function ci(){}ci.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:ur};xt(ci,{pluginName:"removeOnSpill"});var Et;function Rl(){function a(){this.defaults={swapClass:"sortable-swap-highlight"}}return a.prototype={dragStart:function(o){var u=o.dragEl;Et=u},dragOverValid:function(o){var u=o.completed,n=o.target,d=o.onMove,e=o.activeSortable,r=o.changed,l=o.cancel;if(e.options.swap){var c=this.sortable.el,p=this.options;if(n&&n!==c){var f=Et;d(n)!==!1?(Fe(n,p.swapClass,!0),Et=n):Et=null,f&&f!==Et&&Fe(f,p.swapClass,!1)}r(),u(!0),l()}},drop:function(o){var u=o.activeSortable,n=o.putSortable,d=o.dragEl,e=n||this.sortable,r=this.options;Et&&Fe(Et,r.swapClass,!1),Et&&(r.swap||n&&n.options.swap)&&d!==Et&&(e.captureAnimationState(),e!==u&&u.captureAnimationState(),Vl(d,Et),e.animateAll(),e!==u&&u.animateAll())},nulling:function(){Et=null}},xt(a,{pluginName:"swap",eventProperties:function(){return{swapItem:Et}}})}function Vl(a,i){var o=a.parentNode,u=i.parentNode,n,d;!o||!u||o.isEqualNode(i)||u.isEqualNode(a)||(n=ze(a),d=ze(i),o.isEqualNode(u)&&n<d&&d++,o.insertBefore(i,o.children[n]),u.insertBefore(a,u.children[d]))}var fe=[],gt=[],eo,At,to=!1,pt=!1,Rn=!1,De,no,To;function Ul(){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,d){var e="";fe.length&&At===i?fe.forEach(function(r,l){e+=(l?", ":"")+r.textContent}):e=d.textContent,n.setData("Text",e)}}}return a.prototype={multiDragKeyDown:!1,isMultiDrag:!1,delayStartGlobal:function(o){var u=o.dragEl;De=u},delayEnded:function(){this.isMultiDrag=~fe.indexOf(De)},setupClone:function(o){var u=o.sortable,n=o.cancel;if(this.isMultiDrag){for(var d=0;d<fe.length;d++)gt.push(di(fe[d])),gt[d].sortableIndex=fe[d].sortableIndex,gt[d].draggable=!1,gt[d].style["will-change"]="",Fe(gt[d],this.options.selectedClass,!1),fe[d]===De&&Fe(gt[d],this.options.chosenClass,!1);u._hideClone(),n()}},clone:function(o){var u=o.sortable,n=o.rootEl,d=o.dispatchSortableEvent,e=o.cancel;this.isMultiDrag&&(this.options.removeCloneOnHide||fe.length&&At===u&&(Xi(!0,n),d("clone"),e()))},showClone:function(o){var u=o.cloneNowShown,n=o.rootEl,d=o.cancel;this.isMultiDrag&&(Xi(!1,n),gt.forEach(function(e){te(e,"display","")}),u(),To=!1,d())},hideClone:function(o){var u=this;o.sortable;var n=o.cloneNowHidden,d=o.cancel;this.isMultiDrag&&(gt.forEach(function(e){te(e,"display","none"),u.options.removeCloneOnHide&&e.parentNode&&e.parentNode.removeChild(e)}),n(),To=!0,d())},dragStartGlobal:function(o){o.sortable,!this.isMultiDrag&&At&&At.multiDrag._deselectMultiDrag(),fe.forEach(function(u){u.sortableIndex=ze(u)}),fe=fe.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)){fe.forEach(function(e){e!==De&&te(e,"position","absolute")});var d=Ne(De,!1,!0,!0);fe.forEach(function(e){e!==De&&$i(e,d)}),pt=!0,to=!0}n.animateAll(function(){pt=!1,to=!1,u.options.animation&&fe.forEach(function(e){Ho(e)}),u.options.sort&&Do()})}},dragOver:function(o){var u=o.target,n=o.completed,d=o.cancel;pt&&~fe.indexOf(u)&&(n(!1),d())},revert:function(o){var u=o.fromSortable,n=o.rootEl,d=o.sortable,e=o.dragRect;fe.length>1&&(fe.forEach(function(r){d.addAnimationState({target:r,rect:pt?Ne(r):e}),Ho(r),r.fromRect=e,u.removeAnimationState(r)}),pt=!1,Kl(!this.options.removeCloneOnHide,n))},dragOverCompleted:function(o){var u=o.sortable,n=o.isOwner,d=o.insertion,e=o.activeSortable,r=o.parentEl,l=o.putSortable,c=this.options;if(d){if(n&&e._hideClone(),to=!1,c.animation&&fe.length>1&&(pt||!n&&!e.options.sort&&!l)){var p=Ne(De,!1,!0,!0);fe.forEach(function(g){g!==De&&($i(g,p),r.appendChild(g))}),pt=!0}if(!n)if(pt||Do(),fe.length>1){var f=To;e._showClone(u),e.options.animation&&!To&&f&&gt.forEach(function(g){e.addAnimationState({target:g,rect:no}),g.fromRect=no,g.thisAnimationDuration=null})}else e._showClone(u)}},dragOverAnimationCapture:function(o){var u=o.dragRect,n=o.isOwner,d=o.activeSortable;if(fe.forEach(function(r){r.thisAnimationDuration=null}),d.options.animation&&!n&&d.multiDrag.isMultiDrag){no=xt({},u);var e=pn(De,!0);no.top-=e.f,no.left-=e.e}},dragOverAnimationComplete:function(){pt&&(pt=!1,Do())},drop:function(o){var u=o.originalEvent,n=o.rootEl,d=o.parentEl,e=o.sortable,r=o.dispatchSortableEvent,l=o.oldIndex,c=o.putSortable,p=c||this.sortable;if(u){var f=this.options,g=d.children;if(!Rn)if(f.multiDragKey&&!this.multiDragKeyDown&&this._deselectMultiDrag(),Fe(De,f.selectedClass,!~fe.indexOf(De)),~fe.indexOf(De))fe.splice(fe.indexOf(De),1),eo=null,oo({sortable:e,rootEl:n,name:"deselect",targetEl:De});else{if(fe.push(De),oo({sortable:e,rootEl:n,name:"select",targetEl:De}),u.shiftKey&&eo&&e.el.contains(eo)){var h=ze(eo),b=ze(De);if(~h&&~b&&h!==b){var E,x;for(b>h?(x=h,E=b):(x=b,E=h+1);x<E;x++)~fe.indexOf(g[x])||(Fe(g[x],f.selectedClass,!0),fe.push(g[x]),oo({sortable:e,rootEl:n,name:"select",targetEl:g[x]}))}}else eo=De;At=p}if(Rn&&this.isMultiDrag){if(pt=!1,(d[st].options.sort||d!==n)&&fe.length>1){var w=Ne(De),C=ze(De,":not(."+this.options.selectedClass+")");if(!to&&f.animation&&(De.thisAnimationDuration=null),p.captureAnimationState(),!to&&(f.animation&&(De.fromRect=w,fe.forEach(function(P){if(P.thisAnimationDuration=null,P!==De){var K=pt?Ne(P):w;P.fromRect=K,p.addAnimationState({target:P,rect:K})}})),Do(),fe.forEach(function(P){g[C]?d.insertBefore(P,g[C]):d.appendChild(P),C++}),l===ze(De))){var U=!1;fe.forEach(function(P){if(P.sortableIndex!==ze(P)){U=!0;return}}),U&&r("update")}fe.forEach(function(P){Ho(P)}),p.animateAll()}At=p}(n===d||c&&c.lastPutMode!=="clone")&&gt.forEach(function(P){P.parentNode&&P.parentNode.removeChild(P)})}},nullingGlobal:function(){this.isMultiDrag=Rn=!1,gt.length=0},destroyGlobal:function(){this._deselectMultiDrag(),ge(document,"pointerup",this._deselectMultiDrag),ge(document,"mouseup",this._deselectMultiDrag),ge(document,"touchend",this._deselectMultiDrag),ge(document,"keydown",this._checkKeyDown),ge(document,"keyup",this._checkKeyUp)},_deselectMultiDrag:function(o){if(!(typeof Rn<"u"&&Rn)&&At===this.sortable&&!(o&&wt(o.target,this.options.draggable,this.sortable.el,!1))&&!(o&&o.button!==0))for(;fe.length;){var u=fe[0];Fe(u,this.options.selectedClass,!1),fe.shift(),oo({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)}},xt(a,{pluginName:"multiDrag",utils:{select:function(o){var u=o.parentNode[st];!u||!u.options.multiDrag||~fe.indexOf(o)||(At&&At!==u&&(At.multiDrag._deselectMultiDrag(),At=u),Fe(o,u.options.selectedClass,!0),fe.push(o))},deselect:function(o){var u=o.parentNode[st],n=fe.indexOf(o);!u||!u.options.multiDrag||!~n||(Fe(o,u.options.selectedClass,!1),fe.splice(n,1))}},eventProperties:function(){var o=this,u=[],n=[];return fe.forEach(function(d){u.push({multiDragElement:d,index:d.sortableIndex});var e;pt&&d!==De?e=-1:pt?e=ze(d,":not(."+o.options.selectedClass+")"):e=ze(d),n.push({multiDragElement:d,index:e})}),{items:ol(fe),clones:[].concat(gt),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 Kl(a,i){fe.forEach(function(o,u){var n=i.children[o.sortableIndex+(a?Number(u):0)];n?i.insertBefore(o,n):i.appendChild(o)})}function Xi(a,i){gt.forEach(function(o,u){var n=i.children[o.sortableIndex+(a?Number(u):0)];n?i.insertBefore(o,n):i.appendChild(o)})}function Do(){fe.forEach(function(a){a!==De&&a.parentNode&&a.parentNode.removeChild(a)})}ue.mount(new Pl);ue.mount(ci,ui);const Ml=Object.freeze(Object.defineProperty({__proto__:null,MultiDrag:Ul,Sortable:ue,Swap:Rl,default:ue},Symbol.toStringTag,{value:"Module"})),Bl=Fa(Ml);(function(a,i){(function(u,n){a.exports=n(ka,Bl)})(typeof self<"u"?self:Qa,function(o,u){return function(n){var d={};function e(r){if(d[r])return d[r].exports;var l=d[r]={i:r,l:!1,exports:{}};return n[r].call(l.exports,l,l.exports,e),l.l=!0,l.exports}return e.m=n,e.c=d,e.d=function(r,l,c){e.o(r,l)||Object.defineProperty(r,l,{enumerable:!0,get:c})},e.r=function(r){typeof Symbol<"u"&&Symbol.toStringTag&&Object.defineProperty(r,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(r,"__esModule",{value:!0})},e.t=function(r,l){if(l&1&&(r=e(r)),l&8||l&4&&typeof r=="object"&&r&&r.__esModule)return r;var c=Object.create(null);if(e.r(c),Object.defineProperty(c,"default",{enumerable:!0,value:r}),l&2&&typeof r!="string")for(var p in r)e.d(c,p,(function(f){return r[f]}).bind(null,p));return c},e.n=function(r){var l=r&&r.__esModule?function(){return r.default}:function(){return r};return e.d(l,"a",l),l},e.o=function(r,l){return Object.prototype.hasOwnProperty.call(r,l)},e.p="",e(e.s="fb15")}({"00ee":function(n,d,e){var r=e("b622"),l=r("toStringTag"),c={};c[l]="z",n.exports=String(c)==="[object z]"},"0366":function(n,d,e){var r=e("1c0b");n.exports=function(l,c,p){if(r(l),c===void 0)return l;switch(p){case 0:return function(){return l.call(c)};case 1:return function(f){return l.call(c,f)};case 2:return function(f,g){return l.call(c,f,g)};case 3:return function(f,g,h){return l.call(c,f,g,h)}}return function(){return l.apply(c,arguments)}}},"057f":function(n,d,e){var r=e("fc6a"),l=e("241c").f,c={}.toString,p=typeof window=="object"&&window&&Object.getOwnPropertyNames?Object.getOwnPropertyNames(window):[],f=function(g){try{return l(g)}catch{return p.slice()}};n.exports.f=function(h){return p&&c.call(h)=="[object Window]"?f(h):l(r(h))}},"06cf":function(n,d,e){var r=e("83ab"),l=e("d1e7"),c=e("5c6c"),p=e("fc6a"),f=e("c04e"),g=e("5135"),h=e("0cfb"),b=Object.getOwnPropertyDescriptor;d.f=r?b:function(x,w){if(x=p(x),w=f(w,!0),h)try{return b(x,w)}catch{}if(g(x,w))return c(!l.f.call(x,w),x[w])}},"0cfb":function(n,d,e){var r=e("83ab"),l=e("d039"),c=e("cc12");n.exports=!r&&!l(function(){return Object.defineProperty(c("div"),"a",{get:function(){return 7}}).a!=7})},"13d5":function(n,d,e){var r=e("23e7"),l=e("d58f").left,c=e("a640"),p=e("ae40"),f=c("reduce"),g=p("reduce",{1:0});r({target:"Array",proto:!0,forced:!f||!g},{reduce:function(b){return l(this,b,arguments.length,arguments.length>1?arguments[1]:void 0)}})},"14c3":function(n,d,e){var r=e("c6b6"),l=e("9263");n.exports=function(c,p){var f=c.exec;if(typeof f=="function"){var g=f.call(c,p);if(typeof g!="object")throw TypeError("RegExp exec method returned something other than an Object or null");return g}if(r(c)!=="RegExp")throw TypeError("RegExp#exec called on incompatible receiver");return l.call(c,p)}},"159b":function(n,d,e){var r=e("da84"),l=e("fdbc"),c=e("17c2"),p=e("9112");for(var f in l){var g=r[f],h=g&&g.prototype;if(h&&h.forEach!==c)try{p(h,"forEach",c)}catch{h.forEach=c}}},"17c2":function(n,d,e){var r=e("b727").forEach,l=e("a640"),c=e("ae40"),p=l("forEach"),f=c("forEach");n.exports=!p||!f?function(h){return r(this,h,arguments.length>1?arguments[1]:void 0)}:[].forEach},"1be4":function(n,d,e){var r=e("d066");n.exports=r("document","documentElement")},"1c0b":function(n,d){n.exports=function(e){if(typeof e!="function")throw TypeError(String(e)+" is not a function");return e}},"1c7e":function(n,d,e){var r=e("b622"),l=r("iterator"),c=!1;try{var p=0,f={next:function(){return{done:!!p++}},return:function(){c=!0}};f[l]=function(){return this},Array.from(f,function(){throw 2})}catch{}n.exports=function(g,h){if(!h&&!c)return!1;var b=!1;try{var E={};E[l]=function(){return{next:function(){return{done:b=!0}}}},g(E)}catch{}return b}},"1d80":function(n,d){n.exports=function(e){if(e==null)throw TypeError("Can't call method on "+e);return e}},"1dde":function(n,d,e){var r=e("d039"),l=e("b622"),c=e("2d00"),p=l("species");n.exports=function(f){return c>=51||!r(function(){var g=[],h=g.constructor={};return h[p]=function(){return{foo:1}},g[f](Boolean).foo!==1})}},"23cb":function(n,d,e){var r=e("a691"),l=Math.max,c=Math.min;n.exports=function(p,f){var g=r(p);return g<0?l(g+f,0):c(g,f)}},"23e7":function(n,d,e){var r=e("da84"),l=e("06cf").f,c=e("9112"),p=e("6eeb"),f=e("ce4e"),g=e("e893"),h=e("94ca");n.exports=function(b,E){var x=b.target,w=b.global,C=b.stat,U,P,K,D,H,_;if(w?P=r:C?P=r[x]||f(x,{}):P=(r[x]||{}).prototype,P)for(K in E){if(H=E[K],b.noTargetGet?(_=l(P,K),D=_&&_.value):D=P[K],U=h(w?K:x+(C?".":"#")+K,b.forced),!U&&D!==void 0){if(typeof H==typeof D)continue;g(H,D)}(b.sham||D&&D.sham)&&c(H,"sham",!0),p(P,K,H,b)}}},"241c":function(n,d,e){var r=e("ca84"),l=e("7839"),c=l.concat("length","prototype");d.f=Object.getOwnPropertyNames||function(f){return r(f,c)}},"25f0":function(n,d,e){var r=e("6eeb"),l=e("825a"),c=e("d039"),p=e("ad6d"),f="toString",g=RegExp.prototype,h=g[f],b=c(function(){return h.call({source:"a",flags:"b"})!="/a/b"}),E=h.name!=f;(b||E)&&r(RegExp.prototype,f,function(){var w=l(this),C=String(w.source),U=w.flags,P=String(U===void 0&&w instanceof RegExp&&!("flags"in g)?p.call(w):U);return"/"+C+"/"+P},{unsafe:!0})},"2ca0":function(n,d,e){var r=e("23e7"),l=e("06cf").f,c=e("50c4"),p=e("5a34"),f=e("1d80"),g=e("ab13"),h=e("c430"),b="".startsWith,E=Math.min,x=g("startsWith"),w=!h&&!x&&!!function(){var C=l(String.prototype,"startsWith");return C&&!C.writable}();r({target:"String",proto:!0,forced:!w&&!x},{startsWith:function(U){var P=String(f(this));p(U);var K=c(E(arguments.length>1?arguments[1]:void 0,P.length)),D=String(U);return b?b.call(P,D,K):P.slice(K,K+D.length)===D}})},"2d00":function(n,d,e){var r=e("da84"),l=e("342f"),c=r.process,p=c&&c.versions,f=p&&p.v8,g,h;f?(g=f.split("."),h=g[0]+g[1]):l&&(g=l.match(/Edge\/(\d+)/),(!g||g[1]>=74)&&(g=l.match(/Chrome\/(\d+)/),g&&(h=g[1]))),n.exports=h&&+h},"342f":function(n,d,e){var r=e("d066");n.exports=r("navigator","userAgent")||""},"35a1":function(n,d,e){var r=e("f5df"),l=e("3f8c"),c=e("b622"),p=c("iterator");n.exports=function(f){if(f!=null)return f[p]||f["@@iterator"]||l[r(f)]}},"37e8":function(n,d,e){var r=e("83ab"),l=e("9bf2"),c=e("825a"),p=e("df75");n.exports=r?Object.defineProperties:function(g,h){c(g);for(var b=p(h),E=b.length,x=0,w;E>x;)l.f(g,w=b[x++],h[w]);return g}},"3bbe":function(n,d,e){var r=e("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,d,e){var r=e("6547").charAt,l=e("69f3"),c=e("7dd0"),p="String Iterator",f=l.set,g=l.getterFor(p);c(String,"String",function(h){f(this,{type:p,string:String(h),index:0})},function(){var b=g(this),E=b.string,x=b.index,w;return x>=E.length?{value:void 0,done:!0}:(w=r(E,x),b.index+=w.length,{value:w,done:!1})})},"3f8c":function(n,d){n.exports={}},4160:function(n,d,e){var r=e("23e7"),l=e("17c2");r({target:"Array",proto:!0,forced:[].forEach!=l},{forEach:l})},"428f":function(n,d,e){var r=e("da84");n.exports=r},"44ad":function(n,d,e){var r=e("d039"),l=e("c6b6"),c="".split;n.exports=r(function(){return!Object("z").propertyIsEnumerable(0)})?function(p){return l(p)=="String"?c.call(p,""):Object(p)}:Object},"44d2":function(n,d,e){var r=e("b622"),l=e("7c73"),c=e("9bf2"),p=r("unscopables"),f=Array.prototype;f[p]==null&&c.f(f,p,{configurable:!0,value:l(null)}),n.exports=function(g){f[p][g]=!0}},"44e7":function(n,d,e){var r=e("861d"),l=e("c6b6"),c=e("b622"),p=c("match");n.exports=function(f){var g;return r(f)&&((g=f[p])!==void 0?!!g:l(f)=="RegExp")}},4930:function(n,d,e){var r=e("d039");n.exports=!!Object.getOwnPropertySymbols&&!r(function(){return!String(Symbol())})},"4d64":function(n,d,e){var r=e("fc6a"),l=e("50c4"),c=e("23cb"),p=function(f){return function(g,h,b){var E=r(g),x=l(E.length),w=c(b,x),C;if(f&&h!=h){for(;x>w;)if(C=E[w++],C!=C)return!0}else for(;x>w;w++)if((f||w in E)&&E[w]===h)return f||w||0;return!f&&-1}};n.exports={includes:p(!0),indexOf:p(!1)}},"4de4":function(n,d,e){var r=e("23e7"),l=e("b727").filter,c=e("1dde"),p=e("ae40"),f=c("filter"),g=p("filter");r({target:"Array",proto:!0,forced:!f||!g},{filter:function(b){return l(this,b,arguments.length>1?arguments[1]:void 0)}})},"4df4":function(n,d,e){var r=e("0366"),l=e("7b0b"),c=e("9bdd"),p=e("e95a"),f=e("50c4"),g=e("8418"),h=e("35a1");n.exports=function(E){var x=l(E),w=typeof this=="function"?this:Array,C=arguments.length,U=C>1?arguments[1]:void 0,P=U!==void 0,K=h(x),D=0,H,_,V,z,Y,re;if(P&&(U=r(U,C>2?arguments[2]:void 0,2)),K!=null&&!(w==Array&&p(K)))for(z=K.call(x),Y=z.next,_=new w;!(V=Y.call(z)).done;D++)re=P?c(z,U,[V.value,D],!0):V.value,g(_,D,re);else for(H=f(x.length),_=new w(H);H>D;D++)re=P?U(x[D],D):x[D],g(_,D,re);return _.length=D,_}},"4fad":function(n,d,e){var r=e("23e7"),l=e("6f53").entries;r({target:"Object",stat:!0},{entries:function(p){return l(p)}})},"50c4":function(n,d,e){var r=e("a691"),l=Math.min;n.exports=function(c){return c>0?l(r(c),9007199254740991):0}},5135:function(n,d){var e={}.hasOwnProperty;n.exports=function(r,l){return e.call(r,l)}},5319:function(n,d,e){var r=e("d784"),l=e("825a"),c=e("7b0b"),p=e("50c4"),f=e("a691"),g=e("1d80"),h=e("8aa5"),b=e("14c3"),E=Math.max,x=Math.min,w=Math.floor,C=/\$([$&'`]|\d\d?|<[^>]*>)/g,U=/\$([$&'`]|\d\d?)/g,P=function(K){return K===void 0?K:String(K)};r("replace",2,function(K,D,H,_){var V=_.REGEXP_REPLACE_SUBSTITUTES_UNDEFINED_CAPTURE,z=_.REPLACE_KEEPS_$0,Y=V?"$":"$0";return[function(k,ce){var $=g(this),oe=k==null?void 0:k[K];return oe!==void 0?oe.call(k,$,ce):D.call(String($),k,ce)},function(T,k){if(!V&&z||typeof k=="string"&&k.indexOf(Y)===-1){var ce=H(D,T,this,k);if(ce.done)return ce.value}var $=l(T),oe=String(this),ye=typeof k=="function";ye||(k=String(k));var Te=$.global;if(Te){var Ye=$.unicode;$.lastIndex=0}for(var Ee=[];;){var Ue=b($,oe);if(Ue===null||(Ee.push(Ue),!Te))break;var Pe=String(Ue[0]);Pe===""&&($.lastIndex=h(oe,p($.lastIndex),Ye))}for(var Ke="",Le=0,Oe=0;Oe<Ee.length;Oe++){Ue=Ee[Oe];for(var Re=String(Ue[0]),Je=E(x(f(Ue.index),oe.length),0),Ae=[],Ot=1;Ot<Ue.length;Ot++)Ae.push(P(Ue[Ot]));var Vt=Ue.groups;if(ye){var Tt=[Re].concat(Ae,Je,oe);Vt!==void 0&&Tt.push(Vt);var Xe=String(k.apply(void 0,Tt))}else Xe=re(Re,oe,Je,Ae,Vt,k);Je>=Le&&(Ke+=oe.slice(Le,Je)+Xe,Le=Je+Re.length)}return Ke+oe.slice(Le)}];function re(T,k,ce,$,oe,ye){var Te=ce+T.length,Ye=$.length,Ee=U;return oe!==void 0&&(oe=c(oe),Ee=C),D.call(ye,Ee,function(Ue,Pe){var Ke;switch(Pe.charAt(0)){case"$":return"$";case"&":return T;case"`":return k.slice(0,ce);case"'":return k.slice(Te);case"<":Ke=oe[Pe.slice(1,-1)];break;default:var Le=+Pe;if(Le===0)return Ue;if(Le>Ye){var Oe=w(Le/10);return Oe===0?Ue:Oe<=Ye?$[Oe-1]===void 0?Pe.charAt(1):$[Oe-1]+Pe.charAt(1):Ue}Ke=$[Le-1]}return Ke===void 0?"":Ke})}})},5692:function(n,d,e){var r=e("c430"),l=e("c6cd");(n.exports=function(c,p){return l[c]||(l[c]=p!==void 0?p:{})})("versions",[]).push({version:"3.6.5",mode:r?"pure":"global",copyright:"© 2020 Denis Pushkarev (zloirock.ru)"})},"56ef":function(n,d,e){var r=e("d066"),l=e("241c"),c=e("7418"),p=e("825a");n.exports=r("Reflect","ownKeys")||function(g){var h=l.f(p(g)),b=c.f;return b?h.concat(b(g)):h}},"5a34":function(n,d,e){var r=e("44e7");n.exports=function(l){if(r(l))throw TypeError("The method doesn't accept regular expressions");return l}},"5c6c":function(n,d){n.exports=function(e,r){return{enumerable:!(e&1),configurable:!(e&2),writable:!(e&4),value:r}}},"5db7":function(n,d,e){var r=e("23e7"),l=e("a2bf"),c=e("7b0b"),p=e("50c4"),f=e("1c0b"),g=e("65f0");r({target:"Array",proto:!0},{flatMap:function(b){var E=c(this),x=p(E.length),w;return f(b),w=g(E,0),w.length=l(w,E,E,x,0,1,b,arguments.length>1?arguments[1]:void 0),w}})},6547:function(n,d,e){var r=e("a691"),l=e("1d80"),c=function(p){return function(f,g){var h=String(l(f)),b=r(g),E=h.length,x,w;return b<0||b>=E?p?"":void 0:(x=h.charCodeAt(b),x<55296||x>56319||b+1===E||(w=h.charCodeAt(b+1))<56320||w>57343?p?h.charAt(b):x:p?h.slice(b,b+2):(x-55296<<10)+(w-56320)+65536)}};n.exports={codeAt:c(!1),charAt:c(!0)}},"65f0":function(n,d,e){var r=e("861d"),l=e("e8b5"),c=e("b622"),p=c("species");n.exports=function(f,g){var h;return l(f)&&(h=f.constructor,typeof h=="function"&&(h===Array||l(h.prototype))?h=void 0:r(h)&&(h=h[p],h===null&&(h=void 0))),new(h===void 0?Array:h)(g===0?0:g)}},"69f3":function(n,d,e){var r=e("7f9a"),l=e("da84"),c=e("861d"),p=e("9112"),f=e("5135"),g=e("f772"),h=e("d012"),b=l.WeakMap,E,x,w,C=function(V){return w(V)?x(V):E(V,{})},U=function(V){return function(z){var Y;if(!c(z)||(Y=x(z)).type!==V)throw TypeError("Incompatible receiver, "+V+" required");return Y}};if(r){var P=new b,K=P.get,D=P.has,H=P.set;E=function(V,z){return H.call(P,V,z),z},x=function(V){return K.call(P,V)||{}},w=function(V){return D.call(P,V)}}else{var _=g("state");h[_]=!0,E=function(V,z){return p(V,_,z),z},x=function(V){return f(V,_)?V[_]:{}},w=function(V){return f(V,_)}}n.exports={set:E,get:x,has:w,enforce:C,getterFor:U}},"6eeb":function(n,d,e){var r=e("da84"),l=e("9112"),c=e("5135"),p=e("ce4e"),f=e("8925"),g=e("69f3"),h=g.get,b=g.enforce,E=String(String).split("String");(n.exports=function(x,w,C,U){var P=U?!!U.unsafe:!1,K=U?!!U.enumerable:!1,D=U?!!U.noTargetGet:!1;if(typeof C=="function"&&(typeof w=="string"&&!c(C,"name")&&l(C,"name",w),b(C).source=E.join(typeof w=="string"?w:"")),x===r){K?x[w]=C:p(w,C);return}else P?!D&&x[w]&&(K=!0):delete x[w];K?x[w]=C:l(x,w,C)})(Function.prototype,"toString",function(){return typeof this=="function"&&h(this).source||f(this)})},"6f53":function(n,d,e){var r=e("83ab"),l=e("df75"),c=e("fc6a"),p=e("d1e7").f,f=function(g){return function(h){for(var b=c(h),E=l(b),x=E.length,w=0,C=[],U;x>w;)U=E[w++],(!r||p.call(b,U))&&C.push(g?[U,b[U]]:b[U]);return C}};n.exports={entries:f(!0),values:f(!1)}},"73d9":function(n,d,e){var r=e("44d2");r("flatMap")},7418:function(n,d){d.f=Object.getOwnPropertySymbols},"746f":function(n,d,e){var r=e("428f"),l=e("5135"),c=e("e538"),p=e("9bf2").f;n.exports=function(f){var g=r.Symbol||(r.Symbol={});l(g,f)||p(g,f,{value:c.f(f)})}},7839:function(n,d){n.exports=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"]},"7b0b":function(n,d,e){var r=e("1d80");n.exports=function(l){return Object(r(l))}},"7c73":function(n,d,e){var r=e("825a"),l=e("37e8"),c=e("7839"),p=e("d012"),f=e("1be4"),g=e("cc12"),h=e("f772"),b=">",E="<",x="prototype",w="script",C=h("IE_PROTO"),U=function(){},P=function(V){return E+w+b+V+E+"/"+w+b},K=function(V){V.write(P("")),V.close();var z=V.parentWindow.Object;return V=null,z},D=function(){var V=g("iframe"),z="java"+w+":",Y;return V.style.display="none",f.appendChild(V),V.src=String(z),Y=V.contentWindow.document,Y.open(),Y.write(P("document.F=Object")),Y.close(),Y.F},H,_=function(){try{H=document.domain&&new ActiveXObject("htmlfile")}catch{}_=H?K(H):D();for(var V=c.length;V--;)delete _[x][c[V]];return _()};p[C]=!0,n.exports=Object.create||function(z,Y){var re;return z!==null?(U[x]=r(z),re=new U,U[x]=null,re[C]=z):re=_(),Y===void 0?re:l(re,Y)}},"7dd0":function(n,d,e){var r=e("23e7"),l=e("9ed3"),c=e("e163"),p=e("d2bb"),f=e("d44e"),g=e("9112"),h=e("6eeb"),b=e("b622"),E=e("c430"),x=e("3f8c"),w=e("ae93"),C=w.IteratorPrototype,U=w.BUGGY_SAFARI_ITERATORS,P=b("iterator"),K="keys",D="values",H="entries",_=function(){return this};n.exports=function(V,z,Y,re,T,k,ce){l(Y,z,re);var $=function(Oe){if(Oe===T&&Ee)return Ee;if(!U&&Oe in Te)return Te[Oe];switch(Oe){case K:return function(){return new Y(this,Oe)};case D:return function(){return new Y(this,Oe)};case H:return function(){return new Y(this,Oe)}}return function(){return new Y(this)}},oe=z+" Iterator",ye=!1,Te=V.prototype,Ye=Te[P]||Te["@@iterator"]||T&&Te[T],Ee=!U&&Ye||$(T),Ue=z=="Array"&&Te.entries||Ye,Pe,Ke,Le;if(Ue&&(Pe=c(Ue.call(new V)),C!==Object.prototype&&Pe.next&&(!E&&c(Pe)!==C&&(p?p(Pe,C):typeof Pe[P]!="function"&&g(Pe,P,_)),f(Pe,oe,!0,!0),E&&(x[oe]=_))),T==D&&Ye&&Ye.name!==D&&(ye=!0,Ee=function(){return Ye.call(this)}),(!E||ce)&&Te[P]!==Ee&&g(Te,P,Ee),x[z]=Ee,T)if(Ke={values:$(D),keys:k?Ee:$(K),entries:$(H)},ce)for(Le in Ke)(U||ye||!(Le in Te))&&h(Te,Le,Ke[Le]);else r({target:z,proto:!0,forced:U||ye},Ke);return Ke}},"7f9a":function(n,d,e){var r=e("da84"),l=e("8925"),c=r.WeakMap;n.exports=typeof c=="function"&&/native code/.test(l(c))},"825a":function(n,d,e){var r=e("861d");n.exports=function(l){if(!r(l))throw TypeError(String(l)+" is not an object");return l}},"83ab":function(n,d,e){var r=e("d039");n.exports=!r(function(){return Object.defineProperty({},1,{get:function(){return 7}})[1]!=7})},8418:function(n,d,e){var r=e("c04e"),l=e("9bf2"),c=e("5c6c");n.exports=function(p,f,g){var h=r(f);h in p?l.f(p,h,c(0,g)):p[h]=g}},"861d":function(n,d){n.exports=function(e){return typeof e=="object"?e!==null:typeof e=="function"}},8875:function(n,d,e){var r,l,c;(function(p,f){l=[],r=f,c=typeof r=="function"?r.apply(d,l):r,c!==void 0&&(n.exports=c)})(typeof self<"u"?self:this,function(){function p(){var f=Object.getOwnPropertyDescriptor(document,"currentScript");if(!f&&"currentScript"in document&&document.currentScript||f&&f.get!==p&&document.currentScript)return document.currentScript;try{throw new Error}catch(H){var g=/.*at [^(]*\((.*):(.+):(.+)\)$/ig,h=/@([^@]*):(\d+):(\d+)\s*$/ig,b=g.exec(H.stack)||h.exec(H.stack),E=b&&b[1]||!1,x=b&&b[2]||!1,w=document.location.href.replace(document.location.hash,""),C,U,P,K=document.getElementsByTagName("script");E===w&&(C=document.documentElement.outerHTML,U=new RegExp("(?:[^\\n]+?\\n){0,"+(x-2)+"}[^<]*<script>([\\d\\D]*?)<\\/script>[\\d\\D]*","i"),P=C.replace(U,"$1").trim());for(var D=0;D<K.length;D++)if(K[D].readyState==="interactive"||K[D].src===E||E===w&&K[D].innerHTML&&K[D].innerHTML.trim()===P)return K[D];return null}}return p})},8925:function(n,d,e){var r=e("c6cd"),l=Function.toString;typeof r.inspectSource!="function"&&(r.inspectSource=function(c){return l.call(c)}),n.exports=r.inspectSource},"8aa5":function(n,d,e){var r=e("6547").charAt;n.exports=function(l,c,p){return c+(p?r(l,c).length:1)}},"8bbf":function(n,d){n.exports=o},"90e3":function(n,d){var e=0,r=Math.random();n.exports=function(l){return"Symbol("+String(l===void 0?"":l)+")_"+(++e+r).toString(36)}},9112:function(n,d,e){var r=e("83ab"),l=e("9bf2"),c=e("5c6c");n.exports=r?function(p,f,g){return l.f(p,f,c(1,g))}:function(p,f,g){return p[f]=g,p}},9263:function(n,d,e){var r=e("ad6d"),l=e("9f7f"),c=RegExp.prototype.exec,p=String.prototype.replace,f=c,g=function(){var x=/a/,w=/b*/g;return c.call(x,"a"),c.call(w,"a"),x.lastIndex!==0||w.lastIndex!==0}(),h=l.UNSUPPORTED_Y||l.BROKEN_CARET,b=/()??/.exec("")[1]!==void 0,E=g||b||h;E&&(f=function(w){var C=this,U,P,K,D,H=h&&C.sticky,_=r.call(C),V=C.source,z=0,Y=w;return H&&(_=_.replace("y",""),_.indexOf("g")===-1&&(_+="g"),Y=String(w).slice(C.lastIndex),C.lastIndex>0&&(!C.multiline||C.multiline&&w[C.lastIndex-1]!==`
  8. `)&&(V="(?: "+V+")",Y=" "+Y,z++),P=new RegExp("^(?:"+V+")",_)),b&&(P=new RegExp("^"+V+"$(?!\\s)",_)),g&&(U=C.lastIndex),K=c.call(H?P:C,Y),H?K?(K.input=K.input.slice(z),K[0]=K[0].slice(z),K.index=C.lastIndex,C.lastIndex+=K[0].length):C.lastIndex=0:g&&K&&(C.lastIndex=C.global?K.index+K[0].length:U),b&&K&&K.length>1&&p.call(K[0],P,function(){for(D=1;D<arguments.length-2;D++)arguments[D]===void 0&&(K[D]=void 0)}),K}),n.exports=f},"94ca":function(n,d,e){var r=e("d039"),l=/#|\.prototype\./,c=function(b,E){var x=f[p(b)];return x==h?!0:x==g?!1:typeof E=="function"?r(E):!!E},p=c.normalize=function(b){return String(b).replace(l,".").toLowerCase()},f=c.data={},g=c.NATIVE="N",h=c.POLYFILL="P";n.exports=c},"99af":function(n,d,e){var r=e("23e7"),l=e("d039"),c=e("e8b5"),p=e("861d"),f=e("7b0b"),g=e("50c4"),h=e("8418"),b=e("65f0"),E=e("1dde"),x=e("b622"),w=e("2d00"),C=x("isConcatSpreadable"),U=9007199254740991,P="Maximum allowed index exceeded",K=w>=51||!l(function(){var V=[];return V[C]=!1,V.concat()[0]!==V}),D=E("concat"),H=function(V){if(!p(V))return!1;var z=V[C];return z!==void 0?!!z:c(V)},_=!K||!D;r({target:"Array",proto:!0,forced:_},{concat:function(z){var Y=f(this),re=b(Y,0),T=0,k,ce,$,oe,ye;for(k=-1,$=arguments.length;k<$;k++)if(ye=k===-1?Y:arguments[k],H(ye)){if(oe=g(ye.length),T+oe>U)throw TypeError(P);for(ce=0;ce<oe;ce++,T++)ce in ye&&h(re,T,ye[ce])}else{if(T>=U)throw TypeError(P);h(re,T++,ye)}return re.length=T,re}})},"9bdd":function(n,d,e){var r=e("825a");n.exports=function(l,c,p,f){try{return f?c(r(p)[0],p[1]):c(p)}catch(h){var g=l.return;throw g!==void 0&&r(g.call(l)),h}}},"9bf2":function(n,d,e){var r=e("83ab"),l=e("0cfb"),c=e("825a"),p=e("c04e"),f=Object.defineProperty;d.f=r?f:function(h,b,E){if(c(h),b=p(b,!0),c(E),l)try{return f(h,b,E)}catch{}if("get"in E||"set"in E)throw TypeError("Accessors not supported");return"value"in E&&(h[b]=E.value),h}},"9ed3":function(n,d,e){var r=e("ae93").IteratorPrototype,l=e("7c73"),c=e("5c6c"),p=e("d44e"),f=e("3f8c"),g=function(){return this};n.exports=function(h,b,E){var x=b+" Iterator";return h.prototype=l(r,{next:c(1,E)}),p(h,x,!1,!0),f[x]=g,h}},"9f7f":function(n,d,e){var r=e("d039");function l(c,p){return RegExp(c,p)}d.UNSUPPORTED_Y=r(function(){var c=l("a","y");return c.lastIndex=2,c.exec("abcd")!=null}),d.BROKEN_CARET=r(function(){var c=l("^r","gy");return c.lastIndex=2,c.exec("str")!=null})},a2bf:function(n,d,e){var r=e("e8b5"),l=e("50c4"),c=e("0366"),p=function(f,g,h,b,E,x,w,C){for(var U=E,P=0,K=w?c(w,C,3):!1,D;P<b;){if(P in h){if(D=K?K(h[P],P,g):h[P],x>0&&r(D))U=p(f,g,D,l(D.length),U,x-1)-1;else{if(U>=9007199254740991)throw TypeError("Exceed the acceptable array length");f[U]=D}U++}P++}return U};n.exports=p},a352:function(n,d){n.exports=u},a434:function(n,d,e){var r=e("23e7"),l=e("23cb"),c=e("a691"),p=e("50c4"),f=e("7b0b"),g=e("65f0"),h=e("8418"),b=e("1dde"),E=e("ae40"),x=b("splice"),w=E("splice",{ACCESSORS:!0,0:0,1:2}),C=Math.max,U=Math.min,P=9007199254740991,K="Maximum allowed length exceeded";r({target:"Array",proto:!0,forced:!x||!w},{splice:function(H,_){var V=f(this),z=p(V.length),Y=l(H,z),re=arguments.length,T,k,ce,$,oe,ye;if(re===0?T=k=0:re===1?(T=0,k=z-Y):(T=re-2,k=U(C(c(_),0),z-Y)),z+T-k>P)throw TypeError(K);for(ce=g(V,k),$=0;$<k;$++)oe=Y+$,oe in V&&h(ce,$,V[oe]);if(ce.length=k,T<k){for($=Y;$<z-k;$++)oe=$+k,ye=$+T,oe in V?V[ye]=V[oe]:delete V[ye];for($=z;$>z-k+T;$--)delete V[$-1]}else if(T>k)for($=z-k;$>Y;$--)oe=$+k-1,ye=$+T-1,oe in V?V[ye]=V[oe]:delete V[ye];for($=0;$<T;$++)V[$+Y]=arguments[$+2];return V.length=z-k+T,ce}})},a4d3:function(n,d,e){var r=e("23e7"),l=e("da84"),c=e("d066"),p=e("c430"),f=e("83ab"),g=e("4930"),h=e("fdbf"),b=e("d039"),E=e("5135"),x=e("e8b5"),w=e("861d"),C=e("825a"),U=e("7b0b"),P=e("fc6a"),K=e("c04e"),D=e("5c6c"),H=e("7c73"),_=e("df75"),V=e("241c"),z=e("057f"),Y=e("7418"),re=e("06cf"),T=e("9bf2"),k=e("d1e7"),ce=e("9112"),$=e("6eeb"),oe=e("5692"),ye=e("f772"),Te=e("d012"),Ye=e("90e3"),Ee=e("b622"),Ue=e("e538"),Pe=e("746f"),Ke=e("d44e"),Le=e("69f3"),Oe=e("b727").forEach,Re=ye("hidden"),Je="Symbol",Ae="prototype",Ot=Ee("toPrimitive"),Vt=Le.set,Tt=Le.getterFor(Je),Xe=Object[Ae],Ze=l.Symbol,Ut=c("JSON","stringify"),yt=re.f,bt=T.f,mn=z.f,Mn=k.f,mt=oe("symbols"),Dt=oe("op-symbols"),kt=oe("string-to-symbol-registry"),qt=oe("symbol-to-string-registry"),_t=oe("wks"),en=l.QObject,Qt=!en||!en[Ae]||!en[Ae].findChild,tn=f&&b(function(){return H(bt({},"a",{get:function(){return bt(this,"a",{value:7}).a}})).a!=7})?function(de,ee,ie){var me=yt(Xe,ee);me&&delete Xe[ee],bt(de,ee,ie),me&&de!==Xe&&bt(Xe,ee,me)}:bt,Kt=function(de,ee){var ie=mt[de]=H(Ze[Ae]);return Vt(ie,{type:Je,tag:de,description:ee}),f||(ie.description=ee),ie},O=h?function(de){return typeof de=="symbol"}:function(de){return Object(de)instanceof Ze},A=function(ee,ie,me){ee===Xe&&A(Dt,ie,me),C(ee);var ae=K(ie,!0);return C(me),E(mt,ae)?(me.enumerable?(E(ee,Re)&&ee[Re][ae]&&(ee[Re][ae]=!1),me=H(me,{enumerable:D(0,!1)})):(E(ee,Re)||bt(ee,Re,D(1,{})),ee[Re][ae]=!0),tn(ee,ae,me)):bt(ee,ae,me)},R=function(ee,ie){C(ee);var me=P(ie),ae=_(me).concat(Se(me));return Oe(ae,function(rt){(!f||q.call(me,rt))&&A(ee,rt,me[rt])}),ee},j=function(ee,ie){return ie===void 0?H(ee):R(H(ee),ie)},q=function(ee){var ie=K(ee,!0),me=Mn.call(this,ie);return this===Xe&&E(mt,ie)&&!E(Dt,ie)?!1:me||!E(this,ie)||!E(mt,ie)||E(this,Re)&&this[Re][ie]?me:!0},X=function(ee,ie){var me=P(ee),ae=K(ie,!0);if(!(me===Xe&&E(mt,ae)&&!E(Dt,ae))){var rt=yt(me,ae);return rt&&E(mt,ae)&&!(E(me,Re)&&me[Re][ae])&&(rt.enumerable=!0),rt}},ve=function(ee){var ie=mn(P(ee)),me=[];return Oe(ie,function(ae){!E(mt,ae)&&!E(Te,ae)&&me.push(ae)}),me},Se=function(ee){var ie=ee===Xe,me=mn(ie?Dt:P(ee)),ae=[];return Oe(me,function(rt){E(mt,rt)&&(!ie||E(Xe,rt))&&ae.push(mt[rt])}),ae};if(g||(Ze=function(){if(this instanceof Ze)throw TypeError("Symbol is not a constructor");var ee=!arguments.length||arguments[0]===void 0?void 0:String(arguments[0]),ie=Ye(ee),me=function(ae){this===Xe&&me.call(Dt,ae),E(this,Re)&&E(this[Re],ie)&&(this[Re][ie]=!1),tn(this,ie,D(1,ae))};return f&&Qt&&tn(Xe,ie,{configurable:!0,set:me}),Kt(ie,ee)},$(Ze[Ae],"toString",function(){return Tt(this).tag}),$(Ze,"withoutSetter",function(de){return Kt(Ye(de),de)}),k.f=q,T.f=A,re.f=X,V.f=z.f=ve,Y.f=Se,Ue.f=function(de){return Kt(Ee(de),de)},f&&(bt(Ze[Ae],"description",{configurable:!0,get:function(){return Tt(this).description}}),p||$(Xe,"propertyIsEnumerable",q,{unsafe:!0}))),r({global:!0,wrap:!0,forced:!g,sham:!g},{Symbol:Ze}),Oe(_(_t),function(de){Pe(de)}),r({target:Je,stat:!0,forced:!g},{for:function(de){var ee=String(de);if(E(kt,ee))return kt[ee];var ie=Ze(ee);return kt[ee]=ie,qt[ie]=ee,ie},keyFor:function(ee){if(!O(ee))throw TypeError(ee+" is not a symbol");if(E(qt,ee))return qt[ee]},useSetter:function(){Qt=!0},useSimple:function(){Qt=!1}}),r({target:"Object",stat:!0,forced:!g,sham:!f},{create:j,defineProperty:A,defineProperties:R,getOwnPropertyDescriptor:X}),r({target:"Object",stat:!0,forced:!g},{getOwnPropertyNames:ve,getOwnPropertySymbols:Se}),r({target:"Object",stat:!0,forced:b(function(){Y.f(1)})},{getOwnPropertySymbols:function(ee){return Y.f(U(ee))}}),Ut){var Me=!g||b(function(){var de=Ze();return Ut([de])!="[null]"||Ut({a:de})!="{}"||Ut(Object(de))!="{}"});r({target:"JSON",stat:!0,forced:Me},{stringify:function(ee,ie,me){for(var ae=[ee],rt=1,gn;arguments.length>rt;)ae.push(arguments[rt++]);if(gn=ie,!(!w(ie)&&ee===void 0||O(ee)))return x(ie)||(ie=function(ko,hn){if(typeof gn=="function"&&(hn=gn.call(this,ko,hn)),!O(hn))return hn}),ae[1]=ie,Ut.apply(null,ae)}})}Ze[Ae][Ot]||ce(Ze[Ae],Ot,Ze[Ae].valueOf),Ke(Ze,Je),Te[Re]=!0},a630:function(n,d,e){var r=e("23e7"),l=e("4df4"),c=e("1c7e"),p=!c(function(f){Array.from(f)});r({target:"Array",stat:!0,forced:p},{from:l})},a640:function(n,d,e){var r=e("d039");n.exports=function(l,c){var p=[][l];return!!p&&r(function(){p.call(null,c||function(){throw 1},1)})}},a691:function(n,d){var e=Math.ceil,r=Math.floor;n.exports=function(l){return isNaN(l=+l)?0:(l>0?r:e)(l)}},ab13:function(n,d,e){var r=e("b622"),l=r("match");n.exports=function(c){var p=/./;try{"/./"[c](p)}catch{try{return p[l]=!1,"/./"[c](p)}catch{}}return!1}},ac1f:function(n,d,e){var r=e("23e7"),l=e("9263");r({target:"RegExp",proto:!0,forced:/./.exec!==l},{exec:l})},ad6d:function(n,d,e){var r=e("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,d,e){var r=e("83ab"),l=e("d039"),c=e("5135"),p=Object.defineProperty,f={},g=function(h){throw h};n.exports=function(h,b){if(c(f,h))return f[h];b||(b={});var E=[][h],x=c(b,"ACCESSORS")?b.ACCESSORS:!1,w=c(b,0)?b[0]:g,C=c(b,1)?b[1]:void 0;return f[h]=!!E&&!l(function(){if(x&&!r)return!0;var U={length:-1};x?p(U,1,{enumerable:!0,get:g}):U[1]=1,E.call(U,w,C)})}},ae93:function(n,d,e){var r=e("e163"),l=e("9112"),c=e("5135"),p=e("b622"),f=e("c430"),g=p("iterator"),h=!1,b=function(){return this},E,x,w;[].keys&&(w=[].keys(),"next"in w?(x=r(r(w)),x!==Object.prototype&&(E=x)):h=!0),E==null&&(E={}),!f&&!c(E,g)&&l(E,g,b),n.exports={IteratorPrototype:E,BUGGY_SAFARI_ITERATORS:h}},b041:function(n,d,e){var r=e("00ee"),l=e("f5df");n.exports=r?{}.toString:function(){return"[object "+l(this)+"]"}},b0c0:function(n,d,e){var r=e("83ab"),l=e("9bf2").f,c=Function.prototype,p=c.toString,f=/^\s*function ([^ (]*)/,g="name";r&&!(g in c)&&l(c,g,{configurable:!0,get:function(){try{return p.call(this).match(f)[1]}catch{return""}}})},b622:function(n,d,e){var r=e("da84"),l=e("5692"),c=e("5135"),p=e("90e3"),f=e("4930"),g=e("fdbf"),h=l("wks"),b=r.Symbol,E=g?b:b&&b.withoutSetter||p;n.exports=function(x){return c(h,x)||(f&&c(b,x)?h[x]=b[x]:h[x]=E("Symbol."+x)),h[x]}},b64b:function(n,d,e){var r=e("23e7"),l=e("7b0b"),c=e("df75"),p=e("d039"),f=p(function(){c(1)});r({target:"Object",stat:!0,forced:f},{keys:function(h){return c(l(h))}})},b727:function(n,d,e){var r=e("0366"),l=e("44ad"),c=e("7b0b"),p=e("50c4"),f=e("65f0"),g=[].push,h=function(b){var E=b==1,x=b==2,w=b==3,C=b==4,U=b==6,P=b==5||U;return function(K,D,H,_){for(var V=c(K),z=l(V),Y=r(D,H,3),re=p(z.length),T=0,k=_||f,ce=E?k(K,re):x?k(K,0):void 0,$,oe;re>T;T++)if((P||T in z)&&($=z[T],oe=Y($,T,V),b)){if(E)ce[T]=oe;else if(oe)switch(b){case 3:return!0;case 5:return $;case 6:return T;case 2:g.call(ce,$)}else if(C)return!1}return U?-1:w||C?C:ce}};n.exports={forEach:h(0),map:h(1),filter:h(2),some:h(3),every:h(4),find:h(5),findIndex:h(6)}},c04e:function(n,d,e){var r=e("861d");n.exports=function(l,c){if(!r(l))return l;var p,f;if(c&&typeof(p=l.toString)=="function"&&!r(f=p.call(l))||typeof(p=l.valueOf)=="function"&&!r(f=p.call(l))||!c&&typeof(p=l.toString)=="function"&&!r(f=p.call(l)))return f;throw TypeError("Can't convert object to primitive value")}},c430:function(n,d){n.exports=!1},c6b6:function(n,d){var e={}.toString;n.exports=function(r){return e.call(r).slice(8,-1)}},c6cd:function(n,d,e){var r=e("da84"),l=e("ce4e"),c="__core-js_shared__",p=r[c]||l(c,{});n.exports=p},c740:function(n,d,e){var r=e("23e7"),l=e("b727").findIndex,c=e("44d2"),p=e("ae40"),f="findIndex",g=!0,h=p(f);f in[]&&Array(1)[f](function(){g=!1}),r({target:"Array",proto:!0,forced:g||!h},{findIndex:function(E){return l(this,E,arguments.length>1?arguments[1]:void 0)}}),c(f)},c8ba:function(n,d){var e;e=function(){return this}();try{e=e||new Function("return this")()}catch{typeof window=="object"&&(e=window)}n.exports=e},c975:function(n,d,e){var r=e("23e7"),l=e("4d64").indexOf,c=e("a640"),p=e("ae40"),f=[].indexOf,g=!!f&&1/[1].indexOf(1,-0)<0,h=c("indexOf"),b=p("indexOf",{ACCESSORS:!0,1:0});r({target:"Array",proto:!0,forced:g||!h||!b},{indexOf:function(x){return g?f.apply(this,arguments)||0:l(this,x,arguments.length>1?arguments[1]:void 0)}})},ca84:function(n,d,e){var r=e("5135"),l=e("fc6a"),c=e("4d64").indexOf,p=e("d012");n.exports=function(f,g){var h=l(f),b=0,E=[],x;for(x in h)!r(p,x)&&r(h,x)&&E.push(x);for(;g.length>b;)r(h,x=g[b++])&&(~c(E,x)||E.push(x));return E}},caad:function(n,d,e){var r=e("23e7"),l=e("4d64").includes,c=e("44d2"),p=e("ae40"),f=p("indexOf",{ACCESSORS:!0,1:0});r({target:"Array",proto:!0,forced:!f},{includes:function(h){return l(this,h,arguments.length>1?arguments[1]:void 0)}}),c("includes")},cc12:function(n,d,e){var r=e("da84"),l=e("861d"),c=r.document,p=l(c)&&l(c.createElement);n.exports=function(f){return p?c.createElement(f):{}}},ce4e:function(n,d,e){var r=e("da84"),l=e("9112");n.exports=function(c,p){try{l(r,c,p)}catch{r[c]=p}return p}},d012:function(n,d){n.exports={}},d039:function(n,d){n.exports=function(e){try{return!!e()}catch{return!0}}},d066:function(n,d,e){var r=e("428f"),l=e("da84"),c=function(p){return typeof p=="function"?p:void 0};n.exports=function(p,f){return arguments.length<2?c(r[p])||c(l[p]):r[p]&&r[p][f]||l[p]&&l[p][f]}},d1e7:function(n,d,e){var r={}.propertyIsEnumerable,l=Object.getOwnPropertyDescriptor,c=l&&!r.call({1:2},1);d.f=c?function(f){var g=l(this,f);return!!g&&g.enumerable}:r},d28b:function(n,d,e){var r=e("746f");r("iterator")},d2bb:function(n,d,e){var r=e("825a"),l=e("3bbe");n.exports=Object.setPrototypeOf||("__proto__"in{}?function(){var c=!1,p={},f;try{f=Object.getOwnPropertyDescriptor(Object.prototype,"__proto__").set,f.call(p,[]),c=p instanceof Array}catch{}return function(h,b){return r(h),l(b),c?f.call(h,b):h.__proto__=b,h}}():void 0)},d3b7:function(n,d,e){var r=e("00ee"),l=e("6eeb"),c=e("b041");r||l(Object.prototype,"toString",c,{unsafe:!0})},d44e:function(n,d,e){var r=e("9bf2").f,l=e("5135"),c=e("b622"),p=c("toStringTag");n.exports=function(f,g,h){f&&!l(f=h?f:f.prototype,p)&&r(f,p,{configurable:!0,value:g})}},d58f:function(n,d,e){var r=e("1c0b"),l=e("7b0b"),c=e("44ad"),p=e("50c4"),f=function(g){return function(h,b,E,x){r(b);var w=l(h),C=c(w),U=p(w.length),P=g?U-1:0,K=g?-1:1;if(E<2)for(;;){if(P in C){x=C[P],P+=K;break}if(P+=K,g?P<0:U<=P)throw TypeError("Reduce of empty array with no initial value")}for(;g?P>=0:U>P;P+=K)P in C&&(x=b(x,C[P],P,w));return x}};n.exports={left:f(!1),right:f(!0)}},d784:function(n,d,e){e("ac1f");var r=e("6eeb"),l=e("d039"),c=e("b622"),p=e("9263"),f=e("9112"),g=c("species"),h=!l(function(){var C=/./;return C.exec=function(){var U=[];return U.groups={a:"7"},U},"".replace(C,"$<a>")!=="7"}),b=function(){return"a".replace(/./,"$0")==="$0"}(),E=c("replace"),x=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,K){var D=c(C),H=!l(function(){var T={};return T[D]=function(){return 7},""[C](T)!=7}),_=H&&!l(function(){var T=!1,k=/a/;return C==="split"&&(k={},k.constructor={},k.constructor[g]=function(){return k},k.flags="",k[D]=/./[D]),k.exec=function(){return T=!0,null},k[D](""),!T});if(!H||!_||C==="replace"&&!(h&&b&&!x)||C==="split"&&!w){var V=/./[D],z=P(D,""[C],function(T,k,ce,$,oe){return k.exec===p?H&&!oe?{done:!0,value:V.call(k,ce,$)}:{done:!0,value:T.call(ce,k,$)}:{done:!1}},{REPLACE_KEEPS_$0:b,REGEXP_REPLACE_SUBSTITUTES_UNDEFINED_CAPTURE:x}),Y=z[0],re=z[1];r(String.prototype,C,Y),r(RegExp.prototype,D,U==2?function(T,k){return re.call(T,this,k)}:function(T){return re.call(T,this)})}K&&f(RegExp.prototype[D],"sham",!0)}},d81d:function(n,d,e){var r=e("23e7"),l=e("b727").map,c=e("1dde"),p=e("ae40"),f=c("map"),g=p("map");r({target:"Array",proto:!0,forced:!f||!g},{map:function(b){return l(this,b,arguments.length>1?arguments[1]:void 0)}})},da84:function(n,d,e){(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,e("c8ba"))},dbb4:function(n,d,e){var r=e("23e7"),l=e("83ab"),c=e("56ef"),p=e("fc6a"),f=e("06cf"),g=e("8418");r({target:"Object",stat:!0,sham:!l},{getOwnPropertyDescriptors:function(b){for(var E=p(b),x=f.f,w=c(E),C={},U=0,P,K;w.length>U;)K=x(E,P=w[U++]),K!==void 0&&g(C,P,K);return C}})},dbf1:function(n,d,e){(function(r){e.d(d,"a",function(){return c});function l(){return typeof window<"u"?window.console:r.console}var c=l()}).call(this,e("c8ba"))},ddb0:function(n,d,e){var r=e("da84"),l=e("fdbc"),c=e("e260"),p=e("9112"),f=e("b622"),g=f("iterator"),h=f("toStringTag"),b=c.values;for(var E in l){var x=r[E],w=x&&x.prototype;if(w){if(w[g]!==b)try{p(w,g,b)}catch{w[g]=b}if(w[h]||p(w,h,E),l[E]){for(var C in c)if(w[C]!==c[C])try{p(w,C,c[C])}catch{w[C]=c[C]}}}}},df75:function(n,d,e){var r=e("ca84"),l=e("7839");n.exports=Object.keys||function(p){return r(p,l)}},e01a:function(n,d,e){var r=e("23e7"),l=e("83ab"),c=e("da84"),p=e("5135"),f=e("861d"),g=e("9bf2").f,h=e("e893"),b=c.Symbol;if(l&&typeof b=="function"&&(!("description"in b.prototype)||b().description!==void 0)){var E={},x=function(){var D=arguments.length<1||arguments[0]===void 0?void 0:String(arguments[0]),H=this instanceof x?new b(D):D===void 0?b():b(D);return D===""&&(E[H]=!0),H};h(x,b);var w=x.prototype=b.prototype;w.constructor=x;var C=w.toString,U=String(b("test"))=="Symbol(test)",P=/^Symbol\((.*)\)[^)]+$/;g(w,"description",{configurable:!0,get:function(){var D=f(this)?this.valueOf():this,H=C.call(D);if(p(E,D))return"";var _=U?H.slice(7,-1):H.replace(P,"$1");return _===""?void 0:_}}),r({global:!0,forced:!0},{Symbol:x})}},e163:function(n,d,e){var r=e("5135"),l=e("7b0b"),c=e("f772"),p=e("e177"),f=c("IE_PROTO"),g=Object.prototype;n.exports=p?Object.getPrototypeOf:function(h){return h=l(h),r(h,f)?h[f]:typeof h.constructor=="function"&&h instanceof h.constructor?h.constructor.prototype:h instanceof Object?g:null}},e177:function(n,d,e){var r=e("d039");n.exports=!r(function(){function l(){}return l.prototype.constructor=null,Object.getPrototypeOf(new l)!==l.prototype})},e260:function(n,d,e){var r=e("fc6a"),l=e("44d2"),c=e("3f8c"),p=e("69f3"),f=e("7dd0"),g="Array Iterator",h=p.set,b=p.getterFor(g);n.exports=f(Array,"Array",function(E,x){h(this,{type:g,target:r(E),index:0,kind:x})},function(){var E=b(this),x=E.target,w=E.kind,C=E.index++;return!x||C>=x.length?(E.target=void 0,{value:void 0,done:!0}):w=="keys"?{value:C,done:!1}:w=="values"?{value:x[C],done:!1}:{value:[C,x[C]],done:!1}},"values"),c.Arguments=c.Array,l("keys"),l("values"),l("entries")},e439:function(n,d,e){var r=e("23e7"),l=e("d039"),c=e("fc6a"),p=e("06cf").f,f=e("83ab"),g=l(function(){p(1)}),h=!f||g;r({target:"Object",stat:!0,forced:h,sham:!f},{getOwnPropertyDescriptor:function(E,x){return p(c(E),x)}})},e538:function(n,d,e){var r=e("b622");d.f=r},e893:function(n,d,e){var r=e("5135"),l=e("56ef"),c=e("06cf"),p=e("9bf2");n.exports=function(f,g){for(var h=l(g),b=p.f,E=c.f,x=0;x<h.length;x++){var w=h[x];r(f,w)||b(f,w,E(g,w))}}},e8b5:function(n,d,e){var r=e("c6b6");n.exports=Array.isArray||function(c){return r(c)=="Array"}},e95a:function(n,d,e){var r=e("b622"),l=e("3f8c"),c=r("iterator"),p=Array.prototype;n.exports=function(f){return f!==void 0&&(l.Array===f||p[c]===f)}},f5df:function(n,d,e){var r=e("00ee"),l=e("c6b6"),c=e("b622"),p=c("toStringTag"),f=l(function(){return arguments}())=="Arguments",g=function(h,b){try{return h[b]}catch{}};n.exports=r?l:function(h){var b,E,x;return h===void 0?"Undefined":h===null?"Null":typeof(E=g(b=Object(h),p))=="string"?E:f?l(b):(x=l(b))=="Object"&&typeof b.callee=="function"?"Arguments":x}},f772:function(n,d,e){var r=e("5692"),l=e("90e3"),c=r("keys");n.exports=function(p){return c[p]||(c[p]=l(p))}},fb15:function(n,d,e){if(e.r(d),typeof window<"u"){var r=window.document.currentScript;{var l=e("8875");r=l(),"currentScript"in document||Object.defineProperty(document,"currentScript",{get:l})}var c=r&&r.src.match(/(.+\/)[^/]+\.js(\?.*)?$/);c&&(e.p=c[1])}e("99af"),e("4de4"),e("4160"),e("c975"),e("d81d"),e("a434"),e("159b"),e("a4d3"),e("e439"),e("dbb4"),e("b64b");function p(O,A,R){return A in O?Object.defineProperty(O,A,{value:R,enumerable:!0,configurable:!0,writable:!0}):O[A]=R,O}function f(O,A){var R=Object.keys(O);if(Object.getOwnPropertySymbols){var j=Object.getOwnPropertySymbols(O);A&&(j=j.filter(function(q){return Object.getOwnPropertyDescriptor(O,q).enumerable})),R.push.apply(R,j)}return R}function g(O){for(var A=1;A<arguments.length;A++){var R=arguments[A]!=null?arguments[A]:{};A%2?f(Object(R),!0).forEach(function(j){p(O,j,R[j])}):Object.getOwnPropertyDescriptors?Object.defineProperties(O,Object.getOwnPropertyDescriptors(R)):f(Object(R)).forEach(function(j){Object.defineProperty(O,j,Object.getOwnPropertyDescriptor(R,j))})}return O}function h(O){if(Array.isArray(O))return O}e("e01a"),e("d28b"),e("e260"),e("d3b7"),e("3ca3"),e("ddb0");function b(O,A){if(!(typeof Symbol>"u"||!(Symbol.iterator in Object(O)))){var R=[],j=!0,q=!1,X=void 0;try{for(var ve=O[Symbol.iterator](),Se;!(j=(Se=ve.next()).done)&&(R.push(Se.value),!(A&&R.length===A));j=!0);}catch(Me){q=!0,X=Me}finally{try{!j&&ve.return!=null&&ve.return()}finally{if(q)throw X}}return R}}e("a630"),e("fb6a"),e("b0c0"),e("25f0");function E(O,A){(A==null||A>O.length)&&(A=O.length);for(var R=0,j=new Array(A);R<A;R++)j[R]=O[R];return j}function x(O,A){if(O){if(typeof O=="string")return E(O,A);var R=Object.prototype.toString.call(O).slice(8,-1);if(R==="Object"&&O.constructor&&(R=O.constructor.name),R==="Map"||R==="Set")return Array.from(O);if(R==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(R))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 h(O)||b(O,A)||x(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 K(){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)||x(O)||K()}var H=e("a352"),_=e.n(H);function V(O){O.parentElement!==null&&O.parentElement.removeChild(O)}function z(O,A,R){var j=R===0?O.children[0]:O.children[R-1].nextSibling;O.insertBefore(A,j)}var Y=e("dbf1");e("13d5"),e("4fad"),e("ac1f"),e("5319");function re(O){var A=Object.create(null);return function(j){var q=A[j];return q||(A[j]=O(j))}}var T=/-(\w)/g,k=re(function(O){return O.replace(T,function(A,R){return R.toUpperCase()})});e("5db7"),e("73d9");var ce=["Start","Add","Remove","Update","End"],$=["Choose","Unchoose","Sort","Filter","Clone"],oe=["Move"],ye=[oe,ce,$].flatMap(function(O){return O}).map(function(O){return"on".concat(O)}),Te={manage:oe,manageAndEmit:ce,emit:$};function Ye(O){return ye.indexOf(O)!==-1}e("caad"),e("2ca0");var Ee=["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 Ee.includes(O)}function Pe(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 Le(O){return O.reduce(function(A,R){var j=C(R,2),q=j[0],X=j[1];return A[q]=X,A},{})}function Oe(O){var A=O.$attrs,R=O.componentData,j=R===void 0?{}:R,q=Le(Object.entries(A).filter(function(X){var ve=C(X,2),Se=ve[0];return ve[1],Ke(Se)}));return g(g({},q),j)}function Re(O){var A=O.$attrs,R=O.callBackBuilder,j=Le(Je(A));Object.entries(R).forEach(function(X){var ve=C(X,2),Se=ve[0],Me=ve[1];Te[Se].forEach(function(de){j["on".concat(de)]=Me(de)})});var q="[data-draggable]".concat(j.draggable||"");return g(g({},j),{},{draggable:q})}function Je(O){return Object.entries(O).filter(function(A){var R=C(A,2),j=R[0];return R[1],!Ke(j)}).map(function(A){var R=C(A,2),j=R[0],q=R[1];return[k(j),q]}).filter(function(A){var R=C(A,2),j=R[0];return R[1],!Ye(j)})}e("c740");function Ae(O,A){if(!(O instanceof A))throw new TypeError("Cannot call a class as a function")}function Ot(O,A){for(var R=0;R<A.length;R++){var j=A[R];j.enumerable=j.enumerable||!1,j.configurable=!0,"value"in j&&(j.writable=!0),Object.defineProperty(O,j.key,j)}}function Vt(O,A,R){return A&&Ot(O.prototype,A),O}var Tt=function(A){var R=A.el;return R},Xe=function(A,R){return A.__draggable_context=R},Ze=function(A){return A.__draggable_context},Ut=function(){function O(A){var R=A.nodes,j=R.header,q=R.default,X=R.footer,ve=A.root,Se=A.realList;Ae(this,O),this.defaultNodes=q,this.children=[].concat(D(j),D(q),D(X)),this.externalComponent=ve.externalComponent,this.rootTransition=ve.transition,this.tag=ve.tag,this.realList=Se}return Vt(O,[{key:"render",value:function(R,j){var q=this.tag,X=this.children,ve=this._isRootComponent,Se=ve?{default:function(){return X}}:X;return R(q,j,Se)}},{key:"updated",value:function(){var R=this.defaultNodes,j=this.realList;R.forEach(function(q,X){Xe(Tt(q),{element:j[X],index:X})})}},{key:"getUnderlyingVm",value:function(R){return Ze(R)}},{key:"getVmIndexFromDomIndex",value:function(R,j){var q=this.defaultNodes,X=q.length,ve=j.children,Se=ve.item(R);if(Se===null)return X;var Me=Ze(Se);if(Me)return Me.index;if(X===0)return 0;var de=Tt(q[0]),ee=D(ve).findIndex(function(ie){return ie===de});return R<ee?0:X}},{key:"_isRootComponent",get:function(){return this.externalComponent||this.rootTransition}}]),O}(),yt=e("8bbf");function bt(O,A){var R=O[A];return R?R():[]}function mn(O){var A=O.$slots,R=O.realList,j=O.getKey,q=R||[],X=["header","footer"].map(function(ie){return bt(A,ie)}),ve=C(X,2),Se=ve[0],Me=ve[1],de=A.item;if(!de)throw new Error("draggable element must have an item slot");var ee=q.flatMap(function(ie,me){return de({element:ie,index:me}).map(function(ae){return ae.key=j(ie),ae.props=g(g({},ae.props||{}),{},{"data-draggable":!0}),ae})});if(ee.length!==q.length)throw new Error("Item slot must have only one child");return{header:Se,footer:Me,default:ee}}function Mn(O){var A=Pe(O),R=!Ue(O)&&!A;return{transition:A,externalComponent:R,tag:R?Object(yt.resolveComponent)(O):A?yt.TransitionGroup:O}}function mt(O){var A=O.$slots,R=O.tag,j=O.realList,q=O.getKey,X=mn({$slots:A,realList:j,getKey:q}),ve=Mn(R);return new Ut({nodes:X,root:ve,realList:j})}function Dt(O,A){var R=this;Object(yt.nextTick)(function(){return R.$emit(O.toLowerCase(),A)})}function kt(O){var A=this;return function(R,j){if(A.realList!==null)return A["onDrag".concat(O)](R,j)}}function qt(O){var A=this,R=kt.call(this,O);return function(j,q){R.call(A,j,q),Dt.call(A,O,j)}}var _t=null,en={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}},Qt=["update:modelValue","change"].concat(D([].concat(D(Te.manageAndEmit),D(Te.emit)).map(function(O){return O.toLowerCase()}))),tn=Object(yt.defineComponent)({name:"draggable",inheritAttrs:!1,props:en,emits:Qt,data:function(){return{error:!1}},render:function(){try{this.error=!1;var A=this.$slots,R=this.$attrs,j=this.tag,q=this.componentData,X=this.realList,ve=this.getKey,Se=mt({$slots:A,tag:j,realList:X,getKey:ve});this.componentStructure=Se;var Me=Oe({$attrs:R,componentData:q});return Se.render(yt.h,Me)}catch(de){return this.error=!0,Object(yt.h)("pre",{style:{color:"red"}},de.stack)}},created:function(){this.list!==null&&this.modelValue!==null&&Y.a.error("modelValue and list props are mutually exclusive! Please set one or another.")},mounted:function(){var A=this;if(!this.error){var R=this.$attrs,j=this.$el,q=this.componentStructure;q.updated();var X=Re({$attrs:R,callBackBuilder:{manageAndEmit:function(Me){return qt.call(A,Me)},emit:function(Me){return Dt.bind(A,Me)},manage:function(Me){return kt.call(A,Me)}}}),ve=j.nodeType===1?j:j.parentElement;this._sortable=new _.a(ve,X),this.targetDomElement=ve,ve.__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(R){return R[A]}}},watch:{$attrs:{handler:function(A){var R=this._sortable;R&&Je(A).forEach(function(j){var q=C(j,2),X=q[0],ve=q[1];R.option(X,ve)})},deep:!0}},methods:{getUnderlyingVm:function(A){return this.componentStructure.getUnderlyingVm(A)||null},getUnderlyingPotencialDraggableComponent:function(A){return A.__draggable_component__},emitChanges:function(A){var R=this;Object(yt.nextTick)(function(){return R.$emit("change",A)})},alterList:function(A){if(this.list){A(this.list);return}var R=D(this.modelValue);A(R),this.$emit("update:modelValue",R)},spliceList:function(){var A=arguments,R=function(q){return q.splice.apply(q,D(A))};this.alterList(R)},updatePosition:function(A,R){var j=function(X){return X.splice(R,0,X.splice(A,1)[0])};this.alterList(j)},getRelatedContextFromMoveEvent:function(A){var R=A.to,j=A.related,q=this.getUnderlyingPotencialDraggableComponent(R);if(!q)return{component:q};var X=q.realList,ve={list:X,component:q};if(R!==j&&X){var Se=q.getUnderlyingVm(j)||{};return g(g({},Se),ve)}return ve},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),_t=A.item},onDragAdd:function(A){var R=A.item._underlying_vm_;if(R!==void 0){V(A.item);var j=this.getVmIndexFromDomIndex(A.newIndex);this.spliceList(j,0,R);var q={element:R,newIndex:j};this.emitChanges({added:q})}},onDragRemove:function(A){if(z(this.$el,A.item,A.oldIndex),A.pullMode==="clone"){V(A.clone);return}var R=this.context,j=R.index,q=R.element;this.spliceList(j,1);var X={element:q,oldIndex:j};this.emitChanges({removed:X})},onDragUpdate:function(A){V(A.item),z(A.from,A.item,A.oldIndex);var R=this.context.index,j=this.getVmIndexFromDomIndex(A.newIndex);this.updatePosition(R,j);var q={element:this.context.element,oldIndex:R,newIndex:j};this.emitChanges({moved:q})},computeFutureIndex:function(A,R){if(!A.element)return 0;var j=D(R.to.children).filter(function(Se){return Se.style.display!=="none"}),q=j.indexOf(R.related),X=A.component.getVmIndexFromDomIndex(q),ve=j.indexOf(_t)!==-1;return ve||!R.willInsertAfter?X:X+1},onDragMove:function(A,R){var j=this.move,q=this.realList;if(!j||!q)return!0;var X=this.getRelatedContextFromMoveEvent(A),ve=this.computeFutureIndex(X,A),Se=g(g({},this.context),{},{futureIndex:ve}),Me=g(g({},A),{},{relatedContext:X,draggedContext:Se});return j(Me,R)},onDragEnd:function(){_t=null}}}),Kt=tn;d.default=Kt},fb6a:function(n,d,e){var r=e("23e7"),l=e("861d"),c=e("e8b5"),p=e("23cb"),f=e("50c4"),g=e("fc6a"),h=e("8418"),b=e("b622"),E=e("1dde"),x=e("ae40"),w=E("slice"),C=x("slice",{ACCESSORS:!0,0:0,1:2}),U=b("species"),P=[].slice,K=Math.max;r({target:"Array",proto:!0,forced:!w||!C},{slice:function(H,_){var V=g(this),z=f(V.length),Y=p(H,z),re=p(_===void 0?z:_,z),T,k,ce;if(c(V)&&(T=V.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(V,Y,re);for(k=new(T===void 0?Array:T)(K(re-Y,0)),ce=0;Y<re;Y++,ce++)Y in V&&h(k,ce,V[Y]);return k.length=ce,k}})},fc6a:function(n,d,e){var r=e("44ad"),l=e("1d80");n.exports=function(c){return r(l(c))}},fdbc:function(n,d){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,d,e){var r=e("4930");n.exports=r&&!Symbol.sham&&typeof Symbol.iterator=="symbol"}}).default})})(_i);var Nl=_i.exports;const Zi=La(Nl);function qi(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(d=>{a[n].fields[d]&&(a[n].fields[d].visible=i[n].fields[d].visible,a[n].fields[d].required=i[n].fields[d].required)}))})}const jl={class:"position-detail-container"},Fl={class:"header-container"},Ll={class:"header-actions"},kl={class:"detail-content"},Ql={class:"detail-item"},zl={key:0,class:"detail-value"},Gl={key:1,class:"title-edit-container"},$l={class:"title-edit-actions"},Jl={class:"detail-item"},Wl={key:0,class:"detail-value"},Hl={key:1,class:"title-edit-container"},Yl={class:"title-edit-actions"},Xl={class:"detail-item"},Zl={key:0,class:"detail-value"},ql={key:1,class:"title-edit-container"},_l={class:"title-edit-actions"},es={class:"detail-item"},ts={key:0,class:"detail-value"},ns={key:1,class:"title-edit-container"},os={class:"title-edit-actions"},is={class:"detail-item"},rs={key:0,class:"detail-value"},as={key:1,class:"title-edit-container"},ls={class:"title-edit-actions"},ss={class:"detail-item"},ds={key:0,class:"detail-value"},us={key:1,class:"title-edit-container"},cs={class:"title-edit-actions"},fs={class:"detail-item"},vs={class:"detail-value"},ps={class:"detail-item"},ms={key:0,class:"detail-value"},gs={key:1,class:"title-edit-container"},hs={class:"title-edit-actions"},ys={class:"detail-item"},bs=["innerHTML"],Ss={key:2,class:"title-edit-container"},Es={class:"title-edit-actions"},xs={class:"detail-item"},Is=["innerHTML"],Cs={key:2,class:"title-edit-container"},As={class:"title-edit-actions"},ws={class:"detail-item"},Os={key:0,class:"detail-value"},Ts={key:1,class:"title-edit-container"},Ds={class:"title-edit-actions"},Ps={class:"status-cards"},Rs={class:"status-switch"},Vs={class:"status-text"},Us={class:"section-title"},Ks={class:"section-title"},Ms={class:"process-steps"},Bs={class:"step-number"},Ns={class:"step-content"},js={class:"step-title"},Fs={class:"section-title"},Ls={class:"process-dialog-content"},ks={key:0,class:"add-process-btn-top"},Qs={class:"process-number"},zs={class:"process-edit-content"},Gs={class:"process-edit-desc"},$s={class:"process-edit-btn"},Js=["onClick"],Ws={class:"dialog-footer"},Hs={class:"ai-video-steps"},Ys={key:0,class:"ai-video-content","element-loading-text":"正在生成能力标签..."},Xs={class:"ai-video-options"},Zs={class:"ai-video-options-header"},qs={class:"right_btn"},_s={class:"recommended-dimensions"},ed={class:"dimension-grid"},td={class:"ability-label"},nd={class:"optional-dimensions"},od={class:"dimension-grid"},id={class:"ability-label"},rd={class:"custom-dimensions"},ad={class:"dimension-form"},ld={class:"dimension-row"},sd={class:"dimension-input"},dd={class:"dimension-input"},ud={class:"dimension-actions"},cd={key:1,class:"ai-video-content"},fd={class:"interview-settings"},vd={class:"interview-header"},pd={class:"interview-actions"},md={class:"question-switches"},gd={class:"switch-item"},hd={class:"switch-item"},yd={class:"switch-item"},bd={class:"switch-item"},Sd={class:"interview-content"},Ed={class:"interview-questions-container","element-loading-text":"AI正在生成题目..."},xd={key:0,class:"no-questions"},Id={key:1,class:"question-list"},Cd={class:"question-card"},Ad={class:"question-header"},wd={class:"question-title"},Od={class:"title-content"},Td={class:"question-content"},Dd={class:"question-number"},Pd={style:{color:"#0017ab"}},Rd={class:"question-tags"},Vd={key:0,class:"more-tags-indicator"},Ud={class:"question-actions",style:{"margin-top":"0px"}},Kd={class:"question-info"},Md={class:"info-item"},Bd={key:0,class:"question-actions"},Nd={class:"answer-limit"},jd={class:"answer-limit"},Fd={key:1,class:"question-actions"},Ld={class:"answer-limit"},kd={class:"multi-dimension-questions"},Qd={class:"dimension-list"},zd={class:"dimension-header"},Gd={class:"dimension-info"},$d={class:"ability-name"},Jd=["onClick"],Wd={key:2,class:"ai-video-content"},Hd={class:"system-settings"},Yd={class:"setting-section"},Xd={style:{display:"flex","align-items":"flex-start"}},Zd={style:{width:"100px",height:"170px","background-color":"#f2f2f2","margin-right":"30px","border-radius":"10px",overflow:"hidden"}},qd=["src"],_d={class:"interviewer-avatars"},eu=["onClick"],tu={class:"avatar-wrapper"},nu=["src","alt"],ou=["title"],iu={class:"setting-item",style:{border:"none"}},ru={class:"setting-options"},au={class:"interview-settings"},lu={class:"setting-item"},su={class:"setting-item"},du={class:"setting-options"},uu={class:"setting-item"},cu={class:"drawer-footer"},fu={class:"video-lecture-form"},vu={class:"form-item"},pu={class:"upload-area"},mu={class:"form-item"},gu={class:"form-item"},hu={class:"dialog-footer"},yu={class:"ai-chat-content"},bu={class:"chat-settings"},Su={class:"chat-actions"},Eu={class:"chat-questions"},xu={key:0,class:"empty-questions"},Iu={key:1,class:"question-list"},Cu={class:"question-card"},Au={class:"question-header"},wu={class:"question-title"},Ou={class:"question-number"},Tu={class:"question-actions"},Du={class:"weight-control"},Pu={class:"answer-limit"},Ru={class:"question-info"},Vu={class:"info-item"},Uu={class:"info-item"},Ku={class:"info-item"},Mu={class:"drawer-footer"},Bu={class:"question-form"},Nu={class:"form-item"},ju={class:"form-item"},Fu={class:"form-item"},Lu={class:"competency-config"},ku={class:"tag-name"},Qu={class:"form-item"},zu={class:"form-item"},Gu={key:0,class:"form-item"},$u=["onClick"],Ju={style:{display:"flex","justify-content":"space-between","margin-top":"10px"}},Wu={class:"form-item"},Hu={class:"form-item"},Yu={class:"form-item"},Xu={class:"form-item"},Zu={class:"dialog-footer"},qu={class:"question-select-content"},_u={class:"search-bar"},ec={class:"search-inputs"},tc={class:"question-lists"},nc={class:"pagination-container"},oc={class:"dialog-footer"},ic={class:"data-collection-form"},rc={class:"field-config-panel"},ac={class:"field-config-list"},lc={class:"field-config-item"},sc={class:"field-label"},dc={class:"field-config-item"},uc={class:"field-label"},cc={class:"field-config-item sub-field"},fc={class:"field-label"},vc={class:"field-config-item"},pc={class:"field-label"},mc={class:"field-config-item sub-field"},gc={class:"field-label"},hc={class:"field-config-item"},yc={class:"field-label"},bc={class:"field-config-item"},Sc={class:"field-label"},Ec={class:"field-config-item sub-field"},xc={class:"field-label"},Ic={class:"dialog-footer"},Cc={class:"resume-collection-form"},Ac={class:"form-item"},wc={class:"dialog-footer"},Oc={class:"code-test-form"},Tc={class:"form-item"},Dc={class:"form-item"},Pc={class:"switch-label"},Rc={class:"form-item"},Vc={class:"test-paper-selector"},Uc={key:0,class:"empty-paper"},Kc={key:1,class:"selected-paper"},Mc={class:"paper-info"},Bc={class:"paper-title"},Nc={class:"paper-meta"},jc={class:"paper-actions"},Fc={class:"dialog-footer"},Lc={class:"typing-test-form"},kc={class:"form-item"},Qc={class:"article-selection"},zc={class:"form-item"},Gc={class:"form-item"},$c={class:"time-input-container"},Jc={class:"form-item"},Wc={class:"upload-area"},Hc={class:"form-item"},Yc={class:"form-item"},Xc={class:"form-item"},Zc={class:"form-item"},qc={class:"criteria-options"},_c={class:"dialog-footer"},ef={class:"interview-settings-content"},tf={class:"settings-section"},nf={class:"setting-item"},of={class:"setting-info"},rf={class:"setting-item"},af={class:"setting-info"},lf={key:0,class:"setting-desc-container"},sf={class:"setting-desc"},df={key:1,class:"desc-edit-container"},uf={class:"desc-edit-actions"},cf={class:"setting-item"},ff={class:"setting-info"},vf={key:0,class:"setting-desc-container"},pf={class:"setting-desc"},mf={key:1,class:"desc-edit-container"},gf={class:"desc-edit-actions"},hf={class:"setting-item"},yf={class:"setting-info"},bf={key:0,class:"setting-desc-container"},Sf={class:"setting-desc"},Ef={key:1,class:"desc-edit-container"},xf={class:"desc-edit-actions"},If={class:"dialog-footer"},Cf={class:"question-select-content"},Af={class:"search-bar"},wf={class:"search-inputs"},Of={class:"question-lists"},Tf={class:"pagination-container"},Df={class:"dialog-footer"},Pf=Pa({__name:"index",setup(a){const i=Ra(),o=Va();J(o.params.id);const u=J(!1),n=J(!1),d=et({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}),e=et([{id:5,name:"资料收集",description:"资料收集",active:!0},{id:7,name:"常识问题",description:"常识问题",active:!0},{id:6,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=J(!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=J(!1),p=y=>{_e.pageSize=y,jt({page:_e.page,limit:_e.pageSize,question_form:ot.question_form}).then(t=>{t.data&&(_e.value=t.data.items,Gt.page=t.data.page,Gt.pageSize=t.data.limit,Yn.value=t.data.total)})},f=y=>{_e.page=y,jt({page:_e.page,limit:_e.pageSize,question_form:ot.question_form}).then(t=>{t.data&&(_e.value=t.data.items,Gt.page=t.data.page,Gt.pageSize=t.data.limit,Yn.value=t.data.total)})},g=async()=>{const y=zt.value.map(t=>t.id);if(console.log("selectedQuestionIds",y),y.length===0){B.warning("请至少选择一个问题");return}try{await Mi({position_id:o.query.id,question_id:y,duration:60,tenant_id:"1"});const t=_e.value.filter(F=>F.selected);zt.value.push(...t),B.success("问题添加成功"),c.value=!1}catch(t){console.error("添加问题失败:",t),B.error("添加问题失败,请重试")}},h=()=>{In.value=!0,Fi({position_id:o.query.id}).then(y=>{y.data.forEach(t=>{t.selected=!1}),nn.value=y.data,console.log("res",y),In.value=!1}).catch(y=>{console.log("err",y),In.value=!1})},b=za(),E=y=>{if(console.log("地址选择变化:",y),y&&Array.isArray(y)&&y.length>0){const[t,F,I]=y,Z=b.find(Ve=>Ve.code===t);let G;Z&&Z.children&&(G=Z.children.find(Ve=>Ve.code===F),G&&G.children&&G.children.find(Ve=>Ve.code===I))}},x=(y,t)=>{Za({id:y,is_required_correct:t}).then(F=>{console.log("res",F)})},w=J(-1),C=J(!1),U=et({top:"0px",left:"0px"}),P=J(!1),K=et({qualityControl:!1,teamwork:!1,problemSolving:!1,dataAnalysis:!1,positionMatch:!1,proactiveness:!1,basicAbility:!1,communication:!1,serviceAwareness:!1,xxxx:!1}),D=J(1),H=J([{label:"沟通能力",value:"communication",level:"CC",description:"能够清晰、准确地表达想法,善于倾听和理解他人的观点,具备良好的书面和口头表达能力。",expanded:!1,isNew:!0},{label:"团队协作",value:"teamwork",level:"CC",description:"能够与团队成员有效合作,共同完成目标,具备良好的团队精神和协作意识。",expanded:!1,isNew:!1}]);et({min:0,max:100,minScore:0,maxScore:0});const _=y=>{console.log(y)};J("standard"),J(!1);const V=J(!1),z=et({title:"",videoFile:null,description:"",broadcastType:"required"}),Y=J(!1);J(15),J(5);const re=J(!1),T=et({id:"",content:"",competency_tags:[],weight:100,level:1,type:"open",question_form:0,options:[],position:[],category:"",tags:[],suggestedDuration:60,scoring_reference:""}),k=J([]),ce=J([{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=J([{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:""})},Te=()=>{re.value=!1,ye()},Ye=async()=>{if(!T.content){B.error("请输入题目内容");return}if(wa())try{const y={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(y),re.value=!1,ye()}catch(y){console.error("添加问题失败:",y),B.error("添加问题失败,请重试")}},Ee=J(!1),Ue=et({isRequired:!1,questions:[]});J([{label:"Q1",value:"q1",isVisible:!0,enableScoring:!1,isRequired:!1},{label:"请问你的毕业院校是哪里?",value:"school",isVisible:!0,enableScoring:!1,isRequired:!0}]);const Pe=J(!1),Ke=et({title:"简历收集",isRequired:!0,steps:4}),Le=()=>{Pe.value=!0},Oe=()=>{Pe.value=!1,Object.assign(Ke,{title:"简历收集",isRequired:!0,steps:4})},Re=()=>{const y={id:Date.now(),name:Ke.title,description:"简历收集",active:!0,type:"resume_collection",config:{...Ke}};e.splice(w.value,0,y),Pe.value=!1,B.success("简历收集步骤已添加"),Oe()},Je=J(!1),Ae=et({enableScoreQuestions:!1,enableColorBlindQuestions:!1}),Ot=async()=>{try{const y=o.query.id;if(!y){B.error("职位ID不存在");return}const t=Array.isArray(y)?y[0]:y,F=y,I=await ja(y);if(I&&I.data){Object.assign(d,I.data),k.value=I.data.competency_tags;const Z=await Tn(y);Z&&Z.data&&(we.value=Z.data.id,Z.data.enable_psychological_test!==void 0&&(Ae.enableScoreQuestions=Z.data.enable_psychological_test),Z.data.enable_color_blind_test!==void 0&&(Ae.enableColorBlindQuestions=Z.data.enable_color_blind_test)),u.value=d.status===1}}catch(y){console.error("获取职位详情失败:",y),B.error("获取职位详情失败")}},Vt=()=>{i.push("/position/list")},Tt=()=>{i.push("/position/list")},Xe=()=>{B.success("分享链接已复制到剪贴板")},Ze=async y=>{const t=o.query.id;try{const F=y?1:0;await It({id:t,status:F}),d.status=F,B.success(`职位已${y?"开启":"关闭"}`)}catch(F){console.error("修改状态失败:",F),B.error("修改状态失败"),u.value=!y}},Ut=()=>{B.info("编辑职位用途功能开发中")},yt=()=>{r.value=!0},bt=()=>{r.value=!1,B.success("招聘流程已更新")},mn=()=>{r.value=!1},Mn=y=>{e.splice(y,1)},mt=y=>({0:"未发布",1:"已发布",2:"已结束"})[y]||"未知状态",Dt=y=>({0:"info",1:"success",2:"danger"})[y]||"info",kt=(y,t)=>{},qt=async(y,t)=>{if(y==="ai_video"){P.value=!0,C.value=!1;return}if(y==="ai_chat"){Y.value=!0,C.value=!1;return}if(y==="video_presentation"){O(),C.value=!1;return}if(y==="data_collection"){const I=await Tn(o.query.id);I&&I.data?(we.value=I.data.id,qi(L,I.data.profile_fields_config),Ee.value=!0,C.value=!1):(Ee.value=!0,C.value=!1);return}if(y==="resume_collection"){Le(),C.value=!1;return}if(y==="code_test"){rt(),C.value=!1;return}if(y==="typing_test"){Bn.value=!0,C.value=!1;return}if(e.length>=6){B.warning("最多只能添加6个流程步骤");return}const F={id:Date.now(),name:t,description:t,active:!0,type:y};e.splice(w.value,0,F),C.value=!1},_t=async()=>{if(D.value<3){if(D.value===1){const y=nn.value.filter(t=>t.selected);if(y.length===0){B.warning("请至少选择一个胜任力考核维度");return}try{const t=y.map(F=>({name:F.name,description:F.description,importance:F.importance}));await qa({position_id:o.query.id,tenant_id:"1",tags:t}).then(F=>{F.code==2e3&&(H.value=F.data.map(I=>({label:I.name,value:I.name.toLowerCase().replace(/\s+/g,"_"),id:I.id,description:I.description,level:"CC",expanded:!1,isNew:!0})))})}catch(t){console.error("保存胜任力标签失败:",t),B.error("保存胜任力标签失败");return}}if(D.value===2){if(X.value.length===0){B.warning("请至少添加一个面试题目");return}try{await Hr()}catch(y){console.error("保存题目失败:",y),B.error("保存题目失败");return}}if(D.value===3){const y=Yr();if(!y.isValid){y.messages.forEach(F=>{B.warning(F)});return}const t=qr();console.log("完整的面试配置:",t)}D.value++}else Qt()},en=()=>{D.value>1&&D.value--},Qt=async()=>{var Z;if(!dt.value||!dt.value.id){B.warning("请选择面试官形象");return}const y={id:dt.value.id,name:dt.value.name,avatar_url:dt.value.avatar_url||dt.value.image},t=Go(),F={enableScoreQuestions:Ae.enableScoreQuestions,enableColorBlindQuestions:Ae.enableColorBlindQuestions};if(we.value==0){const G=await dn({position_id:o.query.id,digital_human_id:dt.value.id});if(G.code==2e3){B.success("配置保存成功");try{const Ve={config_id:((Z=G.data)==null?void 0:Z.id)||G.data};t.beforeStartText&&t.beforeStartText.trim()!==""?(await Jo(Ve),console.log("开场白生成成功"),P.value=!1,D.value=1,await new Promise(xe=>setTimeout(xe,4e3))):console.log("无开场白配置,跳过开场白生成"),await Bi(Ve),B.success("视频开始生成")}catch(Ve){console.error("获取开场白和视频失败:",Ve),B.warning("视频生成中,请稍后")}}else B.error("配置保存失败")}else if((await un({id:we.value,digital_human_id:dt.value.id})).code==2e3){B.success("配置保存成功");try{const Ve={config_id:we.value};console.log("开始生成开场白..."),await Jo(Ve),console.log("开场白生成成功"),P.value=!1,D.value=1,console.log("等待4秒后开始生成视频..."),await ta(4e3),console.log("开始生成视频..."),await Bi(Ve),console.log("视频生成请求已发送"),B.success("视频开始生成")}catch(Ve){console.error("获取开场白和视频失败:",Ve),B.warning("视频生成中,请稍后")}}else B.error("配置保存失败");console.log("保存时选中的面试官:",y),console.log("保存时的面试设置:",t),console.log("保存时的题目设置:",F);const I={id:Date.now(),name:"AI视频",description:`已选择${H.value.length}项能力测评`,active:!0,type:"ai_video",abilities:H.value.map(G=>G.value),interviewer:y,settings:t};e.splice(w.value,0,I),P.value=!1,D.value=1,B.success("AI视频步骤已添加")},tn=()=>{P.value=!1,D.value=1},Kt=y=>{},O=()=>{V.value=!0},A=()=>{V.value=!1,Object.assign(z,{title:"",videoFile:null,description:"",broadcastType:"required"})},R=()=>{const y={id:Date.now(),name:z.title||"视频宣讲",description:z.description||"视频宣讲",active:!0,type:"video_presentation",config:{...z}};e.splice(w.value,0,y),V.value=!1,B.success("视频宣讲步骤已添加"),A()},j=()=>{const y={id:Date.now(),name:"AI实时对话",description:"AI实时对话",active:!0,type:"ai_chat"};e.splice(w.value,0,y),Y.value=!1,B.success("AI实时对话步骤已添加")},q=()=>{Y.value=!1},X=J([]),ve=()=>{re.value=!0},Se=()=>{Hn.value=!0,Io()},Me=y=>{const t=X.value[y];console.log(t),Object.assign(T,t),re.value=!0},de=y=>{Ui.confirm("确认删除该问题?","提示",{confirmButtonText:"确定",cancelButtonText:"取消",type:"warning"}).then(()=>{X.value.splice(y,1),B.success("删除成功")})},ee=()=>{Ee.value=!1,Object.assign(Ue,{isRequired:!1,questions:[]})};Ua(()=>{Ot(),vi(),_r(),ie()}),Ka(()=>{yi()});const ie=async()=>{try{const y=o.query.id;if(y){const t=await Tn(y);t&&t.data&&(t.data.enable_psychological_test!==void 0&&(Ae.enableScoreQuestions=t.data.enable_psychological_test),t.data.enable_color_blind_test!==void 0&&(Ae.enableColorBlindQuestions=t.data.enable_color_blind_test))}}catch(y){console.error("初始化配置状态失败:",y)}},me=J(!1),ae=et({title:"代码笔试",autoJudge:!0,selectedPaper:null}),rt=()=>{me.value=!0},gn=()=>{me.value=!1,Object.assign(ae,{title:"代码笔试",autoJudge:!0,selectedPaper:null})},ko=()=>{if(!ae.selectedPaper){B.warning("请添加考试试卷");return}const y={id:Date.now(),name:ae.title,description:`${ae.selectedPaper.title}`,active:!0,type:"code_test",config:{...ae}};e.splice(w.value,0,y),me.value=!1,B.success("代码笔试步骤已添加"),gn()},hn=()=>{ae.selectedPaper={id:1,title:"前端开发工程师笔试",questionCount:4,duration:60,difficulty:"中等难度"}},cr=()=>{B.info("查看试卷功能开发中")},fr=()=>{B.info("更换试卷功能开发中")},vr=()=>{ae.selectedPaper=null},Bn=J(!1),qe=et({title:"",duration:5,content:"",notes:"",videoMonitoring:!1,passCriteria:{speed:!1,accuracy:!0},selectionMode:"random",pageTitle:"",previewImage:null,articles:[]}),fi=()=>{Bn.value=!1,Object.assign(qe,{title:"",duration:5,content:"",notes:"",videoMonitoring:!1,passCriteria:{speed:!1,accuracy:!0},selectionMode:"random",pageTitle:"",previewImage:null,articles:[]})},pr=()=>{const y={id:Date.now(),name:qe.title,description:`打字测试 ${qe.duration}分钟`,active:!0,type:"typing_test",config:{...qe}};e.splice(w.value,0,y),Bn.value=!1,B.success("打字测试步骤已添加"),fi()},mo=J(!1),yn=J(""),mr=()=>{yn.value=d.title,mo.value=!0},gr=()=>{mo.value=!1},hr=async()=>{if(!yn.value.trim()){B.warning("职位名称不能为空");return}try{const y=o.query.id;await It({id:y,title:yn.value.trim()}),d.title=yn.value.trim(),mo.value=!1,B.success("职位名称已更新")}catch(y){console.error("更新职位名称失败:",y),B.error("更新职位名称失败")}},go=J(!1),Mt=J(""),yr=()=>{if(!d.location)Mt.value="";else if(Array.isArray(d.location))Mt.value=d.location;else if(typeof d.location=="string")try{const t=d.location.replace(/[\[\]']/g,"").split(",").map(G=>G.trim()),F=b.find(G=>G.name===t[0]);let I,Z;F&&F.children&&(I=F.children.find(G=>G.name===t[1]),I&&I.children&&(Z=I.children.find(G=>G.name===t[2]))),Mt.value=[F==null?void 0:F.code,I==null?void 0:I.code,Z==null?void 0:Z.code].filter(Boolean)}catch(y){console.error("解析地址失败:",y),Mt.value=""}go.value=!0},br=()=>{go.value=!1},Sr=async()=>{try{const y=o.query.id,t=[];if(Mt.value&&Array.isArray(Mt.value)){const[F,I,Z]=Mt.value,G=b.find(xe=>xe.code===F);let Ve,le;G&&(t.push(G.name),G.children&&(Ve=G.children.find(xe=>xe.code===I),Ve&&(t.push(Ve.name),Ve.children&&(le=Ve.children.find(xe=>xe.code===Z),le&&t.push(le.name)))))}await It({id:y,location:t}),d.location=t,go.value=!1,B.success("工作地点已更新")}catch(y){console.error("更新工作地点失败:",y),B.error("更新工作地点失败")}},ho=J(!1),Nn=J(""),Er=()=>{Nn.value=d.salary_range||"",ho.value=!0},xr=()=>{ho.value=!1},Ir=async()=>{try{const y=o.query.id;await It({id:y,salary_range:Nn.value.trim()}),d.salary_range=Nn.value.trim(),ho.value=!1,B.success("职位薪资已更新")}catch(y){console.error("更新职位薪资失败:",y),B.error("更新职位薪资失败")}},yo=J(!1),jn=J(""),Cr=()=>{jn.value=d.work_experience_required||"",yo.value=!0},Ar=()=>{yo.value=!1},wr=async()=>{try{const y=o.query.id;await It({id:y,work_experience_required:jn.value}),d.work_experience_required=jn.value,yo.value=!1,B.success("工作经验已更新")}catch(y){console.error("更新工作经验失败:",y),B.error("更新工作经验失败")}},bo=J(!1),Fn=J(""),Or=()=>{Fn.value=d.education_required||"",bo.value=!0},Tr=()=>{bo.value=!1},Dr=async()=>{try{const y=o.query.id;await It({id:y,education_required:Fn.value}),d.education_required=Fn.value,bo.value=!1,B.success("学历要求已更新")}catch(y){console.error("更新学历要求失败:",y),B.error("更新学历要求失败")}},So=J(!1),Ln=J(""),Pr=()=>{Ln.value=d.department||"",So.value=!0},Rr=()=>{So.value=!1},Vr=async()=>{try{const y=o.query.id;await It({id:y,department:Ln.value.trim()}),d.department=Ln.value.trim(),So.value=!1,B.success("所属部门已更新")}catch(y){console.error("更新所属部门失败:",y),B.error("更新所属部门失败")}},Eo=J(!1),kn=J(""),Ur=()=>{kn.value=d.end_date||"",Eo.value=!0},Kr=()=>{Eo.value=!1},Mr=async()=>{try{const y=o.query.id;await It({id:y,end_date:kn.value}),d.end_date=kn.value,Eo.value=!1,B.success("截止日期已更新")}catch(y){console.error("更新截止日期失败:",y),B.error("更新截止日期失败")}},Qn=J(!1),zn=J(""),Br=()=>{zn.value=d.requirements||"",Qn.value=!0},Nr=()=>{Qn.value=!1},jr=async()=>{try{const y=o.query.id;await It({id:y,requirements:zn.value}),d.requirements=zn.value,Qn.value=!1,B.success("职位要求已更新")}catch(y){console.error("更新职位要求失败:",y),B.error("更新职位要求失败")}},Gn=J(!1),$n=J(""),Fr=()=>{$n.value=d.description||"",Gn.value=!0},Lr=()=>{Gn.value=!1},kr=async()=>{try{const y=o.query.id;await It({id:y,description:$n.value}),d.description=$n.value,Gn.value=!1,B.success("职位描述已更新")}catch(y){console.error("更新职位描述失败:",y),B.error("更新职位描述失败")}},nn=J([]),xo=J(!1),bn=J([]),vi=async()=>{try{const y=await Ja({page:1,pageSize:1e3});y&&y.data}catch(y){console.error("获取能力标签列表失败:",y),B.error("获取能力标签列表失败")}},Qr=async()=>{var y;await vi(),bn.value=((y=d.competency_tags)==null?void 0:y.map(t=>t.id))||[],k.value.forEach(t=>{t.selected=bn.value.includes(t.id)}),xo.value=!0},zr=()=>{xo.value=!1},Gr=async()=>{try{const y=o.query.id;await It({id:y,competency_tags:bn.value}),d.competency_tags=k.value.filter(t=>bn.value.includes(t.id)).map(t=>({id:t.id,name:t.name})),xo.value=!1,B.success("能力标签已更新")}catch(y){console.error("更新能力标签失败:",y),B.error("更新能力标签失败")}},$r=J(null),we=J(0),Jr=async y=>{if(y.name==="资料收集"){const t=await Tn(o.query.id);t&&t.data?(we.value=t.data.id,qi(L,t.data.profile_fields_config),Ee.value=!0,C.value=!1):(Ee.value=!0,C.value=!1);return}if(y.name==="AI视频"){const t=await Tn(o.query.id);In.value=!0,$r.value=y,P.value=!0,D.value=1;try{const F=await _a({position_id:o.query.id,page:1,limit:20});if(console.log("existingTags",F),F&&F.data&&F.data.items.length>0)F.data.items.forEach(I=>{I.importance=1,I.selected=!1}),nn.value=F.data.items;else{const I=await Fi({position_id:o.query.id});I&&I.data&&(I.data.forEach(Z=>{Z.selected=!1}),nn.value=I.data)}t&&t.data&&(we.value=t.data.id)}catch(F){console.error("获取或生成能力标签失败:",F),B.error("获取或生成能力标签失败")}finally{In.value=!1}Object.keys(K).forEach(F=>{K[F]=!1})}y.name==="常识问题"&&jt({page:1,limit:20}).then(t=>{t.data&&(_e.value=t.data.items,Gt.page=t.data.page,Gt.pageSize=t.data.limit,Yn.value=t.data.total,c.value=!0)}),y.name==="心理问题"&&jt({page:1,limit:30,question_form:4}).then(t=>{t.data&&(ot.question_form=4,_e.value=t.data.items,Gt.page=t.data.page,Gt.pageSize=t.data.limit,Yn.value=t.data.total,c.value=!0)})},pi=J(""),mi=J(""),gi=J(!1),nt=et({keepVideo:!1,interruptionMode:"",smartFollowUp:!1,followUpStyle:""}),Qo=J([{id:1,name:"Jessica",image:"/avatars/jessica.png"},{id:2,name:"Mike",image:"/avatars/mike.png"},{id:3,name:"Sarah",image:"/avatars/sarah.png"}]),dt=J(Qo.value[0]),zo=J(""),Wr=y=>{dt.value=y,console.log("选中的面试官信息:",{id:y.id,name:y.name,avatar_url:y.avatar_url||y.image}),zo.value=y.avatar_url,B.success(`已选择面试官:${y.name}`)},Hr=async()=>{const y=X.value.filter(F=>F.source==="ai_generated"),t=X.value.filter(F=>F.source==="custom_selected");if(console.log("AI生成的题目:",y),console.log("自定义选择的题目:",t),y.length>0&&(await Ya({draft_ids:y.map(F=>F.id)}),console.log("AI生成的题目已保存到草稿")),t.length>0){const F={position_id:o.query.id,question_id:{question_id:t},duration:60,tenant_id:1};console.log("自定义选择的题目需要调用专门的接口处理");const I=await Mi(F);I&&I.code===2e3?B.success("自定义选择的题目已保存"):B.error("自定义选择的题目保存失败")}},Go=()=>{const y={keepVideo:nt.keepVideo,interruptionMode:nt.interruptionMode,followUpStyle:nt.followUpStyle,smartFollowUp:nt.smartFollowUp};return console.log("当前面试设置:",y),y},Jn=(y,t)=>{switch(console.log(`面试设置 ${y} 已更改为:`,t),y){case"keepVideo":console.log("回答视频保留设置:",t?"开启":"关闭");break;case"interruptionMode":console.log("中断后作答限制模式:",t==="previous"?"从上一问重新作答":"从当前问题作答");break;case"followUpStyle":console.log("追问风格:",t);break;case"smartFollowUp":console.log("智慧追问设置:",t?"开启":"关闭");break}},Yr=()=>{const y=Go(),t={isValid:!0,messages:[]};return y.interruptionMode===""&&(t.isValid=!1,t.messages.push("请选择中断后作答限制模式")),t},Xr=y=>{n.value=!0,console.log("开始拖拽题目:",y)},Zr=y=>{n.value=!1,console.log("拖拽结束:",y),console.log("当前题目顺序:",X.value),B.success("题目顺序已更新")},qr=()=>({interviewer:{id:dt.value.id,name:dt.value.name,avatar_url:dt.value.avatar_url||dt.value.image},settings:Go(),questionSettings:{enableScoreQuestions:Ae.enableScoreQuestions,enableColorBlindQuestions:Ae.enableColorBlindQuestions},abilities:H.value,questions:X.value,currentStep:D.value}),_r=async()=>{const y=await Xa({page:1,pageSize:1e3});y&&y.data&&(Qo.value=y.data)},hi=(y,t)=>{t?Wn.value.push({name:y.name,description:y.description||"暂无描述"}):Wn.value=Wn.value.filter(F=>F.name!==y.name)},ea=y=>{Ui.confirm("确认删除这个胜任力标签吗?","提示",{confirmButtonText:"确定",cancelButtonText:"取消",type:"warning"}).then(()=>{const t=H.value[y];H.value.splice(y,1),Wn.value=Wn.value.filter(I=>I.name!==t.label);const F=nn.value.find(I=>I.name===t.label);F&&(F.selected=!1),B.success("胜任力标签已删除")}).catch(()=>{})},Wn=J([]),ta=y=>new Promise(t=>setTimeout(t,y));let Bt=null;const na=async(y,t=50,F=2e3)=>{let I=0;Bt={cancelled:!1};const Z=Bt;return new Promise((G,Ve)=>{const le=async()=>{try{if(Z.cancelled){console.log("轮询已被取消"),G(null);return}I++,console.log(`第${I}次轮询获取草稿列表...`);const xe=await Ha(y);if(Z.cancelled){console.log("轮询已被取消"),G(null);return}if(xe&&xe.data&&xe.data.dataList&&xe.data.dataList.length>0){console.log("轮询成功,获取到草稿列表数据"),Bt=null,G(xe);return}if(I>=t){console.log("轮询达到最大次数,停止轮询"),Bt=null,G(xe);return}setTimeout(le,F)}catch(xe){if(console.error(`第${I}次轮询失败:`,xe),Z.cancelled){console.log("轮询已被取消"),G(null);return}I<t?setTimeout(le,F):(Bt=null,Ve(xe))}};le()})},yi=()=>{Bt&&(Bt.cancelled=!0,Bt=null,console.log("轮询已被手动取消"))},oa=()=>{yi(),Je.value=!1,B.info("已取消AI自动组题")},ia=async y=>{var t;if(console.log("得分题开关状态:",y?"开启":"关闭"),y){const F=await jt({page:1,limit:1e3,question_form:4,tenant_id:1});console.log(F),F&&F.data?Ni({position_id:o.query.id,question_id:{question_id:F.data.items.map(I=>I.id)},tenant_id:1}).then(async I=>{var Z;if(I.code===2e3){try{if(we.value>0)await un({id:we.value,enable_psychological_test:!0}),console.log("配置中的enable_psychological_test字段已更新为true");else{const G=await dn({position_id:o.query.id,enable_psychological_test:!0,tenant_id:1});G&&G.code===2e3&&(we.value=((Z=G.data)==null?void 0:Z.id)||G.data,console.log("配置创建成功,enable_psychological_test字段已设置为true"))}}catch(G){console.error("更新enable_psychological_test字段失败:",G)}B.success("得分题功能已开启")}else B.error("得分题功能开启失败")}):B.error("获取题目列表失败")}else try{const F=await jt({page:1,limit:1e3,question_form:4,tenant_id:1});if(F&&F.data){if(await ji({position_id:o.query.id,question_id:F.data.items.map(I=>I.id),tenant_id:1}),we.value>0)await un({id:we.value,enable_psychological_test:!1}),console.log("配置中的enable_psychological_test字段已更新为false");else{const I=await dn({position_id:o.query.id,enable_psychological_test:!1,tenant_id:1});I&&I.code===2e3&&(we.value=((t=I.data)==null?void 0:t.id)||I.data,console.log("配置创建成功,enable_psychological_test字段已设置为false"))}B.info("得分题功能已关闭")}}catch(F){console.error("关闭得分题功能失败:",F),B.error("关闭得分题功能失败")}},ra=async y=>{var t;if(console.log("色盲题开关状态:",y?"开启":"关闭"),y){const F=await jt({page:1,limit:1e3,question_form:3,tenant_id:1});console.log(F),F&&F.data?Ni({position_id:o.query.id,question_id:{question_id:F.data.items.map(I=>I.id)},tenant_id:1}).then(async I=>{var Z;if(I.code===2e3){try{if(we.value>0)await un({id:we.value,enable_color_blind_test:!0}),console.log("配置中的enable_color_blind_test字段已更新为true");else{const G=await dn({position_id:o.query.id,enable_color_blind_test:!0,tenant_id:1});G&&G.code===2e3&&(we.value=((Z=G.data)==null?void 0:Z.id)||G.data,console.log("配置创建成功,enable_color_blind_test字段已设置为true"))}}catch(G){console.error("更新enable_color_blind_test字段失败:",G)}B.success("色盲题功能已开启")}else B.error("色盲题功能开启失败")}):B.error("获取色盲题目列表失败")}else try{const F=await jt({page:1,limit:1e3,question_form:3,tenant_id:1});if(F&&F.data){if(await ji({position_id:o.query.id,question_id:F.data.items.map(I=>I.id),tenant_id:1}),we.value>0)await un({id:we.value,enable_color_blind_test:!1}),console.log("配置中的enable_color_blind_test字段已更新为false");else{const I=await dn({position_id:o.query.id,enable_color_blind_test:!1,tenant_id:1});I&&I.code===2e3&&(we.value=((t=I.data)==null?void 0:t.id)||I.data,console.log("配置创建成功,enable_color_blind_test字段已设置为false"))}B.info("色盲题功能已关闭")}}catch(F){console.error("关闭色盲题功能失败:",F),B.error("关闭色盲题功能失败")}},Hn=J(!1),on=J(""),_e=J([]),zt=J([]),bi=J(0),Yn=J(0),ot=et({page:1,pageSize:10,keyword:"",question_form:null}),Gt=et({page:1,limit:20,keyword:"",question_form:null}),Io=async()=>{try{const y={...ot,keyword:on.value,...ot.question_form!==null&&{question_form:ot.question_form}},t=await jt(y);t&&t.data&&(_e.value=t.data.items,bi.value=t.data.total)}catch(y){console.error("获取题目列表失败:",y),B.error("获取题目列表失败")}},$t=()=>{ot.page=1,Io()},aa=y=>{ot.pageSize=y,Io()},la=y=>{ot.page=y,Io()},Si=y=>{zt.value=y},Ei=()=>{Hn.value=!1,zt.value=[],on.value=""},sa=()=>{if(zt.value.length===0){B.warning("请至少选择一个题目");return}console.log(zt.value);const y=zt.value.map(t=>({id:t.id||Date.now(),title:t.question||t.title,ability:t.ability||"未设置",content:t.content||t.question,target:t.target||"未设置",competency_tags:t.competency_tags||[],question_form_name:t.question_form_name,scoring_reference:t.scoring_reference,question_form:t.question_form,is_required_correct:t.is_required_correct,weight:100,maxAnswers:1,enable_follow_up:!0,options:t.options||[],source:"custom_selected"}));X.value.push(...y),Hn.value=!1,zt.value=[],on.value=""},L=et({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}}}}),da=async()=>{try{const y={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:L.name.required,visible:L.name.visible},phone:{required:L.phone.required,visible:L.phone.visible},id_card:{required:L.id_card.required,visible:L.id_card.visible},gender:{required:L.gender.required,visible:L.gender.visible},birth_date:{required:!1,visible:!0},political_status:{required:!1,visible:!0},ethnicity:{required:L.ethnicity.required,visible:L.ethnicity.visible},height:{required:L.height.required,visible:L.height.visible},weight:{required:L.weight.required,visible:L.weight.visible},marital_status:{required:L.marital_status.required,visible:L.marital_status.visible}},require_education_info:L.education.visible,education_fields_config:{school_name:{required:L.education.fields.school_name.required,visible:L.education.fields.school_name.visible},major:{required:L.education.fields.major.required,visible:L.education.fields.major.visible},degree:{required:L.education.fields.degree.required,visible:L.education.fields.degree.visible},start_date:{required:L.education.fields.start_time.required,visible:L.education.fields.start_time.visible},end_date:{required:L.education.fields.end_time.required,visible:L.education.fields.end_time.visible}},require_work_experience:L.work_experience.visible,work_experience_fields_config:{company_name:{required:L.work_experience.fields.company_name.required,visible:L.work_experience.fields.company_name.visible},position:{required:L.work_experience.fields.position.required,visible:L.work_experience.fields.position.visible},department:{required:L.work_experience.fields.department.required,visible:L.work_experience.fields.department.visible},start_date:{required:L.work_experience.fields.start_time.required,visible:L.work_experience.fields.start_time.visible},end_date:{required:L.work_experience.fields.end_time.required,visible:L.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:L.family_member.visible,family_fields_config:{relation:{required:L.family_member.fields.relation.required,visible:L.family_member.fields.relation.visible},name:{required:L.family_member.fields.name.required,visible:L.family_member.fields.name.visible},workplace:{required:L.family_member.fields.workplace_address.required,visible:L.family_member.fields.workplace_address.visible},position:{required:L.family_member.fields.position.required,visible:L.family_member.fields.position.visible},phone:{required:L.family_member.fields.phone.required,visible:L.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};we.value==0||(y.id=we.value),we.value==0?(await dn(y)).code==2e3?(B.success("配置保存成功"),Ee.value=!1,C.value=!1):B.error("配置保存失败"):(await un(y)).code==2e3?(B.success("配置保存成功"),Ee.value=!1,C.value=!1):B.error("配置保存失败")}catch(y){console.error("保存配置失败:",y),B.error("配置保存失败")}},ua=()=>({name:L.name,gender:L.gender,three_period:L.three_period,phone:L.phone,id_card:L.id_card,ethnicity:L.ethnicity,height:L.height,weight:L.weight,current_address:L.current_address,household_location:L.household_location,marital_status:L.marital_status,expected_salary:L.expected_salary}),ca=()=>({skills:L.skills,training:L.training}),Xn=J(!1),ft=et({faceConsistency:!0,preventScreenshot:!0,screenSwitchAlert:!0,positionDetection:!0,eyeMovementDetection:!0,reviewInterview:!1,beforeStart:!0,beforeStartText:"你好,我是本次面试的面试官,欢迎参加本公司的线上面试!面试预计需要15分钟,请你提前安排在网络良好、光线亮度合适、且相对安静的环境参加这次面试以免影响本次面试的结果。如果你在面试过程中遇到问题,请与我们的招聘人员联系。",afterStartReminder:!1,afterStartText:"本次面试如有15分钟,高效调前后流程,安静好心理",disclaimer:!1,disclaimerText:"本次面试已全部结束,感谢您的参与,请等待后续通知。"}),Sn=J(!1),Zn=J(!1),qn=J(!1),Jt=J(""),En=J(""),xn=J(""),fa=()=>{Xn.value=!1,Sn.value=!1,Zn.value=!1,qn.value=!1,Object.assign(ft,{faceConsistency:!0,preventScreenshot:!0,screenSwitchAlert:!0,positionDetection:!0,eyeMovementDetection:!0,reviewInterview:!1,beforeStart:!0,beforeStartText:"你好,我想咨询其间的面试,欢迎来到大面试",afterStartReminder:!1,afterStartText:"本次面试如有15分钟,高效调前后流程,安静好心理",disclaimer:!1,disclaimerText:"本次面试已全部流程拍摄,面试者同意可为今后资讯调研"})},va=()=>{console.log("保存面试设置:",ft),B.success("面试设置已保存"),Xn.value=!1},pa=()=>{Tn(o.query.id).then(y=>{Xn.value=!0,we.value=y.data.id,ft.beforeStartText=y.data.digital_human_opening_speech})},ma=()=>{Jt.value=ft.beforeStartText,Sn.value=!0},ga=()=>{Sn.value=!1,Jt.value=""},ha=async()=>{var y;if(!Jt.value.trim()){B.warning("开始前提示内容不能为空");return}ft.beforeStartText=Jt.value.trim();try{let t;if(console.log(we.value),we.value==0)t=await dn({position_id:o.query.id,digital_human_opening_speech:Jt.value.trim()}),t.code===2e3?(we.value=((y=t.data)==null?void 0:y.id)||t.data,B.success("开始前提示内容已创建"),Sn.value=!1):B.error("开始前提示内容创建失败");else if(t=await un({id:we.value,digital_human_opening_speech:Jt.value.trim()}),t.code===2e3){B.success("开始前提示内容已更新"),Sn.value=!1;try{const F={config_id:we.value};await Jo(F),console.log("开场白生成成功")}catch(F){console.error("获取开场白失败:",F),B.warning("开场白生成中,请稍后")}}else B.error("开始前提示内容更新失败")}catch(t){console.error("保存开始前提示内容失败:",t),B.error("保存失败,请重试")}},ya=()=>{En.value=ft.afterStartText,Zn.value=!0},ba=()=>{Zn.value=!1,En.value=""},Sa=()=>{if(!En.value.trim()){B.warning("开始后提醒内容不能为空");return}ft.afterStartText=En.value.trim(),Zn.value=!1,B.success("开始后提醒内容已更新")},Ea=()=>{xn.value=ft.disclaimerText,qn.value=!0},xa=()=>{qn.value=!1,xn.value=""},Ia=()=>{if(!xn.value.trim()){B.warning("免责声明内容不能为空");return}ft.disclaimerText=xn.value.trim(),qn.value=!1,B.success("免责声明内容已更新")},rn=et({openQuestionsCount:5,choiceQuestionsCount:10}),xi=()=>{console.log("题目数量已更新:",rn)},Ca=async()=>{try{Je.value=!0;const y=H.value.map(I=>I.id);if(y.length===0){B.warning("请先选择能力标签");return}const t={position_id:o.query.id,competency_tag_ids:y,open_questions_count:rn.openQuestionsCount,choice_questions_count:rn.choiceQuestionsCount,auto_save:!0,tenant_id:1},F=await Wa(t);if(F&&F.data){const I=await na({tenant_id:1,page:1,limit:30,position_id:o.query.id});if(console.log(I),I===null){console.log("轮询被取消,停止处理");return}if(I&&I.data&&I.data.dataList){const Z=I.data.dataList.map(G=>({id:G.id||Date.now(),title:G.question||G.title,ability:G.ability||"未设置",content:G.content||G.question,target:G.target||"未设置",competency_tags:G.competency_tag_info||[],question_form_name:G.question_form_name,scoring_reference:G.scoring_reference,question_form:G.question_form,is_required_correct:G.is_required_correct,weight:100,maxAnswers:1,enable_follow_up:!0,options:G.options||[],source:"ai_generated"}));X.value=Z,B.success(`已成功生成${Z.length}个面试题目`)}else B.warning("AI生成题目中,请稍后再试")}}catch(y){console.error("AI自动组题失败:",y),B.error("AI自动组题失败,请重试")}finally{Je.value=!1}},Aa=y=>{T.competencyTags=y,y.length===1&&(T.weight=100)},wa=()=>T.competency_tags.length===0?(B.warning("请至少选择一个胜任力标签"),!1):T.weight<=0||T.weight>100?(B.warning("权重必须在1-100之间"),!1):!0,Oa=y=>{switch(T.type=y,y){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}},In=J(!1);return(y,t)=>{const F=je("page-header"),I=je("el-button"),Z=je("el-icon"),G=je("el-input"),Ve=je("el-cascader"),le=je("el-option"),xe=je("el-select"),Cn=je("el-tag"),Ta=je("el-date-picker"),_n=je("el-card"),at=je("el-switch"),Nt=je("el-dialog"),an=je("el-checkbox"),An=je("el-input-number"),ln=je("el-radio"),Ii=je("el-upload"),Ci=je("el-radio-group"),wn=je("el-tooltip"),On=je("el-table-column"),Ai=je("el-table"),wi=je("el-pagination"),Wt=je("el-col"),Ht=je("el-row"),Oi=Ma("loading");return N(),W("div",jl,[s("div",Fl,[v(F,{title:"测试",onBack:Vt}),s("div",Ll,[v(I,{type:"primary",onClick:Tt},{default:S(()=>t[83]||(t[83]=[M("保存")])),_:1}),v(I,{onClick:Xe},{default:S(()=>t[84]||(t[84]=[M("分享职位")])),_:1})])]),s("div",kl,[v(_n,{class:"detail-card"},{default:S(()=>[t[116]||(t[116]=s("div",{class:"section-title"},[s("div",{class:"section-line"}),s("span",null,"职位详情")],-1)),s("div",Ql,[t[87]||(t[87]=s("div",{class:"detail-label"},"职位名称",-1)),mo.value?(N(),W("div",Gl,[v(G,{modelValue:yn.value,"onUpdate:modelValue":t[0]||(t[0]=m=>yn.value=m),placeholder:"请输入职位名称",maxlength:"20","show-word-limit":""},null,8,["modelValue"]),s("div",$l,[v(I,{size:"small",onClick:gr},{default:S(()=>t[85]||(t[85]=[M("取消")])),_:1}),v(I,{size:"small",type:"primary",onClick:hr},{default:S(()=>t[86]||(t[86]=[M("保存")])),_:1})])])):(N(),W("div",zl,[M(se(d.title)+" ",1),v(I,{type:"text",class:"edit-title-btn",onClick:mr},{default:S(()=>[v(Z,null,{default:S(()=>[v(be(ut))]),_:1})]),_:1})]))]),s("div",Jl,[t[90]||(t[90]=s("div",{class:"detail-label"},"工作地点",-1)),go.value?(N(),W("div",Hl,[v(Ve,{modelValue:Mt.value,"onUpdate:modelValue":t[1]||(t[1]=m=>Mt.value=m),options:be(b),props:{expandTrigger:"hover",checkStrictly:!1,value:"code",label:"name"},style:{width:"100%"},placeholder:"请选择工作地点",clearable:"",onChange:E},null,8,["modelValue","options"]),s("div",Yl,[v(I,{size:"small",onClick:br},{default:S(()=>t[88]||(t[88]=[M("取消")])),_:1}),v(I,{size:"small",type:"primary",onClick:Sr},{default:S(()=>t[89]||(t[89]=[M("保存")])),_:1})])])):(N(),W("div",Wl,[M(se((()=>{if(!d.location)return"暂无";if(Array.isArray(d.location))return d.location.join(",");if(typeof d.location=="string")try{return d.location.replace(/[\[\]']/g,"").split(",").map(ne=>ne.trim()).join(",")}catch{return d.location}return d.location})())+" ",1),v(I,{type:"text",class:"edit-title-btn",onClick:yr},{default:S(()=>[v(Z,null,{default:S(()=>[v(be(ut))]),_:1})]),_:1})]))]),s("div",Xl,[t[93]||(t[93]=s("div",{class:"detail-label"},"职位薪资",-1)),ho.value?(N(),W("div",ql,[v(G,{modelValue:Nn.value,"onUpdate:modelValue":t[2]||(t[2]=m=>Nn.value=m),placeholder:"请输入职位薪资",maxlength:"30","show-word-limit":""},null,8,["modelValue"]),s("div",_l,[v(I,{size:"small",onClick:xr},{default:S(()=>t[91]||(t[91]=[M("取消")])),_:1}),v(I,{size:"small",type:"primary",onClick:Ir},{default:S(()=>t[92]||(t[92]=[M("保存")])),_:1})])])):(N(),W("div",Zl,[M(se(d.salary_range||"暂无")+" ",1),v(I,{type:"text",class:"edit-title-btn",onClick:Er},{default:S(()=>[v(Z,null,{default:S(()=>[v(be(ut))]),_:1})]),_:1})]))]),s("div",es,[t[96]||(t[96]=s("div",{class:"detail-label"},"工作经验",-1)),yo.value?(N(),W("div",ns,[v(xe,{modelValue:jn.value,"onUpdate:modelValue":t[3]||(t[3]=m=>jn.value=m),placeholder:"请选择工作经验",style:{width:"100%"}},{default:S(()=>[v(le,{label:"不限",value:"不限"}),v(le,{label:"应届毕业生",value:"应届毕业生"}),v(le,{label:"1年以下",value:"1年以下"}),v(le,{label:"1-3年",value:"1-3年"}),v(le,{label:"3-5年",value:"3-5年"}),v(le,{label:"5-10年",value:"5-10年"}),v(le,{label:"10年以上",value:"10年以上"})]),_:1},8,["modelValue"]),s("div",os,[v(I,{size:"small",onClick:Ar},{default:S(()=>t[94]||(t[94]=[M("取消")])),_:1}),v(I,{size:"small",type:"primary",onClick:wr},{default:S(()=>t[95]||(t[95]=[M("保存")])),_:1})])])):(N(),W("div",ts,[M(se(d.work_experience_required||"暂无")+" ",1),v(I,{type:"text",class:"edit-title-btn",onClick:Cr},{default:S(()=>[v(Z,null,{default:S(()=>[v(be(ut))]),_:1})]),_:1})]))]),s("div",is,[t[99]||(t[99]=s("div",{class:"detail-label"},"学历要求",-1)),bo.value?(N(),W("div",as,[v(xe,{modelValue:Fn.value,"onUpdate:modelValue":t[4]||(t[4]=m=>Fn.value=m),placeholder:"请选择学历要求",style:{width:"100%"}},{default:S(()=>[v(le,{label:"不限",value:"不限"}),v(le,{label:"高中",value:"高中"}),v(le,{label:"大专",value:"大专"}),v(le,{label:"本科",value:"本科"}),v(le,{label:"硕士",value:"硕士"}),v(le,{label:"博士",value:"博士"})]),_:1},8,["modelValue"]),s("div",ls,[v(I,{size:"small",onClick:Tr},{default:S(()=>t[97]||(t[97]=[M("取消")])),_:1}),v(I,{size:"small",type:"primary",onClick:Dr},{default:S(()=>t[98]||(t[98]=[M("保存")])),_:1})])])):(N(),W("div",rs,[M(se(d.education_required||"暂无")+" ",1),v(I,{type:"text",class:"edit-title-btn",onClick:Or},{default:S(()=>[v(Z,null,{default:S(()=>[v(be(ut))]),_:1})]),_:1})]))]),s("div",ss,[t[102]||(t[102]=s("div",{class:"detail-label"},"所属部门",-1)),So.value?(N(),W("div",us,[v(G,{modelValue:Ln.value,"onUpdate:modelValue":t[5]||(t[5]=m=>Ln.value=m),placeholder:"请输入所属部门",maxlength:"30","show-word-limit":""},null,8,["modelValue"]),s("div",cs,[v(I,{size:"small",onClick:Rr},{default:S(()=>t[100]||(t[100]=[M("取消")])),_:1}),v(I,{size:"small",type:"primary",onClick:Vr},{default:S(()=>t[101]||(t[101]=[M("保存")])),_:1})])])):(N(),W("div",ds,[M(se(d.department||"暂无")+" ",1),v(I,{type:"text",class:"edit-title-btn",onClick:Pr},{default:S(()=>[v(Z,null,{default:S(()=>[v(be(ut))]),_:1})]),_:1})]))]),s("div",fs,[t[103]||(t[103]=s("div",{class:"detail-label"},"职位状态",-1)),s("div",vs,[v(Cn,{type:Dt(d.status)},{default:S(()=>[M(se(mt(d.status)),1)]),_:1},8,["type"])])]),s("div",ps,[t[106]||(t[106]=s("div",{class:"detail-label"},"截止日期",-1)),Eo.value?(N(),W("div",gs,[v(Ta,{modelValue:kn.value,"onUpdate:modelValue":t[6]||(t[6]=m=>kn.value=m),type:"date",placeholder:"请选择截止日期",format:"YYYY-MM-DD","value-format":"YYYY-MM-DD",style:{width:"100%"}},null,8,["modelValue"]),s("div",hs,[v(I,{size:"small",onClick:Kr},{default:S(()=>t[104]||(t[104]=[M("取消")])),_:1}),v(I,{size:"small",type:"primary",onClick:Mr},{default:S(()=>t[105]||(t[105]=[M("保存")])),_:1})])])):(N(),W("div",ms,[M(se(d.end_date||"暂无")+" ",1),v(I,{type:"text",class:"edit-title-btn",onClick:Ur},{default:S(()=>[v(Z,null,{default:S(()=>[v(be(ut))]),_:1})]),_:1})]))]),s("div",ys,[t[109]||(t[109]=s("div",{class:"detail-label"},"职位要求",-1)),Qn.value?We("",!0):(N(),W("div",{key:0,class:"detail-value html-content",innerHTML:d.requirements},null,8,bs)),Qn.value?(N(),W("div",Ss,[v(G,{modelValue:zn.value,"onUpdate:modelValue":t[7]||(t[7]=m=>zn.value=m),type:"textarea",rows:"6",placeholder:"请输入职位要求",maxlength:"1000","show-word-limit":""},null,8,["modelValue"]),s("div",Es,[v(I,{size:"small",onClick:Nr},{default:S(()=>t[107]||(t[107]=[M("取消")])),_:1}),v(I,{size:"small",type:"primary",onClick:jr},{default:S(()=>t[108]||(t[108]=[M("保存")])),_:1})])])):(N(),Ce(I,{key:1,type:"text",class:"edit-title-btn",onClick:Br},{default:S(()=>[v(Z,null,{default:S(()=>[v(be(ut))]),_:1})]),_:1}))]),t[117]||(t[117]=s("div",{style:{width:"100%","border-bottom":"1px solid #e5e5e5"}},null,-1)),s("div",xs,[t[112]||(t[112]=s("div",{class:"detail-label"},"职位描述",-1)),Gn.value?We("",!0):(N(),W("div",{key:0,class:"detail-value html-content",innerHTML:d.description},null,8,Is)),Gn.value?(N(),W("div",Cs,[v(G,{modelValue:$n.value,"onUpdate:modelValue":t[8]||(t[8]=m=>$n.value=m),type:"textarea",rows:"6",placeholder:"请输入职位描述",maxlength:"1000","show-word-limit":""},null,8,["modelValue"]),s("div",As,[v(I,{size:"small",onClick:Lr},{default:S(()=>t[110]||(t[110]=[M("取消")])),_:1}),v(I,{size:"small",type:"primary",onClick:kr},{default:S(()=>t[111]||(t[111]=[M("保存")])),_:1})])])):(N(),Ce(I,{key:1,type:"text",class:"edit-title-btn",onClick:Fr},{default:S(()=>[v(Z,null,{default:S(()=>[v(be(ut))]),_:1})]),_:1}))]),s("div",ws,[t[115]||(t[115]=s("div",{class:"detail-label"},"能力标签",-1)),xo.value?(N(),W("div",Ts,[v(xe,{modelValue:bn.value,"onUpdate:modelValue":t[9]||(t[9]=m=>bn.value=m),multiple:"",filterable:"",placeholder:"请选择能力标签",style:{width:"100%"}},{default:S(()=>[(N(!0),W(Ge,null,$e(k.value,m=>(N(),Ce(le,{key:m.id,label:m.name,value:m.id},null,8,["label","value"]))),128))]),_:1},8,["modelValue"]),s("div",Ds,[v(I,{size:"small",onClick:zr},{default:S(()=>t[113]||(t[113]=[M("取消")])),_:1}),v(I,{size:"small",type:"primary",onClick:Gr},{default:S(()=>t[114]||(t[114]=[M("保存")])),_:1})])])):(N(),W("div",Os,[(N(!0),W(Ge,null,$e(d.competency_tags,m=>(N(),Ce(Cn,{key:m.id,effect:"plain",class:"competency-tag"},{default:S(()=>[M(se(m.name),1)]),_:2},1024))),128)),v(I,{type:"text",class:"edit-title-btn",onClick:Qr},{default:S(()=>[v(Z,null,{default:S(()=>[v(be(ut))]),_:1})]),_:1})]))])]),_:1}),s("div",Ps,[v(_n,{class:"status-card"},{default:S(()=>[t[118]||(t[118]=s("div",{class:"section-title"},[s("div",{class:"section-line"}),s("span",null,"职位状态")],-1)),s("div",Rs,[v(at,{modelValue:u.value,"onUpdate:modelValue":t[10]||(t[10]=m=>u.value=m),"inactive-text":"",onChange:Ze},null,8,["modelValue"]),s("span",Vs,se(u.value?"开启职位":"关闭职位"),1)])]),_:1}),v(_n,{class:"status-card"},{default:S(()=>[s("div",Us,[t[120]||(t[120]=s("div",{class:"section-line"},null,-1)),t[121]||(t[121]=s("span",null,"职位性质",-1)),v(I,{type:"text",class:"edit-btn",onClick:Ut},{default:S(()=>t[119]||(t[119]=[M("编辑")])),_:1})]),t[122]||(t[122]=s("div",{class:"usage-content"},[s("div",{class:"usage-label"},"职位用途"),s("div",{class:"usage-value"},"正式招聘")],-1))]),_:1}),v(_n,{class:"status-card"},{default:S(()=>[s("div",Ks,[t[124]||(t[124]=s("div",{class:"section-line"},null,-1)),t[125]||(t[125]=s("span",null,"招聘流程",-1)),v(I,{type:"text",class:"edit-btn",onClick:yt},{default:S(()=>t[123]||(t[123]=[M("设置流程")])),_:1})]),s("div",Ms,[(N(!0),W(Ge,null,$e(e,(m,ne)=>(N(),W("div",{key:m.id,class:St(["process-step",{disabled:!m.active}])},[s("div",Bs,se(ne+1),1),s("div",Ns,[s("div",js,se(m.name),1)])],2))),128))])]),_:1}),v(_n,{class:"status-card"},{default:S(()=>[s("div",Fs,[t[127]||(t[127]=s("div",{class:"section-line"},null,-1)),t[128]||(t[128]=s("span",null,"面试设置",-1)),v(I,{type:"text",class:"edit-btn",onClick:pa},{default:S(()=>t[126]||(t[126]=[M("编辑")])),_:1})])]),_:1})])]),v(Nt,{title:"设置招聘流程",modelValue:r.value,"onUpdate:modelValue":t[12]||(t[12]=m=>r.value=m),width:"500px","close-on-click-modal":!1},{footer:S(()=>[s("span",Ws,[v(I,{onClick:mn},{default:S(()=>t[132]||(t[132]=[M("取消")])),_:1}),v(I,{type:"primary",onClick:bt},{default:S(()=>t[133]||(t[133]=[M("确定")])),_:1})])]),default:S(()=>[s("div",Ls,[(N(!0),W(Ge,null,$e(e,(m,ne)=>(N(),W("div",{key:m.id},[(N(),W("div",ks,[v(I,{type:"text",onClick:Ie=>kt(ne,Ie)},{default:S(()=>[v(Z,null,{default:S(()=>[v(be(sn))]),_:1})]),_:2},1032,["onClick"])])),s("div",{class:St(["process-edit-item",{highlight:m.active}])},[s("div",Qs,se(ne+1),1),s("div",zs,[s("div",null,se(m.name),1),s("div",Gs,se(m.description),1)]),s("div",$s,[v(I,{type:"info",size:"small",plain:"",onClick:Ie=>Jr(m)},{default:S(()=>t[129]||(t[129]=[M(" 修改 ")])),_:2},1032,["onClick"]),v(I,{type:"danger",size:"small",plain:"",style:{"margin-top":"10px","margin-left":"0px"},onClick:Ie=>Mn(ne)},{default:S(()=>t[130]||(t[130]=[M(" 删除 ")])),_:2},1032,["onClick"])])],2)]))),128)),t[131]||(t[131]=s("div",{class:"add-process-btn"},null,-1))]),C.value?(N(),W("div",{key:0,class:"process-options-menu",style:Na({top:U.top,left:U.left}),onClick:t[11]||(t[11]=Ba(()=>{},["stop"]))},[(N(),W(Ge,null,$e(l,m=>s("div",{key:m.value,class:"process-option-item",onClick:ne=>qt(m.value,m.label)},se(m.label),9,Js)),64))],4)):We("",!0)]),_:1},8,["modelValue"]),v(be($o),{title:"AI视频",modelValue:P.value,"onUpdate:modelValue":t[34]||(t[34]=m=>P.value=m),direction:"rtl",size:"60%","close-on-click-modal":!1,class:"ai-video-drawer","destroy-on-close":!1},{footer:S(()=>[s("div",cu,[D.value>1?(N(),Ce(I,{key:0,size:"small",onClick:en},{default:S(()=>t[174]||(t[174]=[M("上一步")])),_:1})):We("",!0),v(I,{onClick:tn,size:"small"},{default:S(()=>t[175]||(t[175]=[M("取消")])),_:1}),D.value<3?(N(),Ce(I,{key:1,type:"primary",size:"small",onClick:_t,style:{"background-color":"#0419a3","border-color":"#0419a3"}},{default:S(()=>t[176]||(t[176]=[M("下一步")])),_:1})):(N(),Ce(I,{key:2,type:"success",onClick:Qt,size:"small",style:{"background-color":"#0419a3","border-color":"#0419a3"}},{default:S(()=>t[177]||(t[177]=[M("新增")])),_:1}))])]),default:S(()=>[s("div",Hs,[s("div",{class:St(["step-item",{active:D.value===1}]),onClick:t[13]||(t[13]=m=>Kt(1))},[t[134]||(t[134]=s("div",{class:"step-number"},"1",-1)),s("div",{class:St(["step-title",{"active-title":D.value===1}])},"考察能力",2)],2),s("div",{class:St(["step-line",{"active-line":D.value>=2}])},null,2),s("div",{class:St(["step-item",{active:D.value===2}]),onClick:t[14]||(t[14]=m=>Kt(2))},[t[135]||(t[135]=s("div",{class:"step-number"},"2",-1)),s("div",{class:St(["step-title",{"active-title":D.value===2}])},"面试题目",2)],2),s("div",{class:St(["step-line",{"active-line":D.value>=3}])},null,2),s("div",{class:St(["step-item",{active:D.value===3}]),onClick:t[15]||(t[15]=m=>Kt(3))},[t[136]||(t[136]=s("div",{class:"step-number"},"3",-1)),s("div",{class:St(["step-title",{"active-title":D.value===3}])},"系统设置",2)],2)]),D.value===1?Ti((N(),W("div",Ys,[s("div",Xs,[s("div",Zs,[t[138]||(t[138]=s("div",{class:"ai-video-options-header-title"},[s("span",null,"AI根据岗位信息生成的能力,创建完步骤后,会自动将选择的新智能能力加入到该职位的考察能力列表中。")],-1)),s("div",qs,[v(I,{type:"primary",class:"custom-btn",plain:"",size:"small",onClick:h},{default:S(()=>t[137]||(t[137]=[M("重新生成")])),_:1})])]),s("div",_s,[s("div",ed,[(N(!0),W(Ge,null,$e(nn.value.slice(0,10),m=>(N(),Ce(an,{key:m.id,modelValue:m.selected,"onUpdate:modelValue":ne=>m.selected=ne,onChange:ne=>hi(m,ne),class:"custom-checkbox"},{default:S(()=>[s("div",td,[s("span",null,se(m.name),1),t[139]||(t[139]=s("img",{src:Ki,alt:"",class:"sheng"},null,-1))])]),_:2},1032,["modelValue","onUpdate:modelValue","onChange"]))),128))])]),s("div",nd,[t[140]||(t[140]=s("h3",{style:{color:"#808080"}},"备选考核维度",-1)),s("div",od,[(N(!0),W(Ge,null,$e(nn.value.slice(10,20),m=>(N(),Ce(an,{key:m.id,modelValue:m.selected,"onUpdate:modelValue":ne=>m.selected=ne,onChange:ne=>hi(m,ne),class:"custom-checkbox"},{default:S(()=>[s("div",id,[s("span",null,se(m.name),1)])]),_:2},1032,["modelValue","onUpdate:modelValue","onChange"]))),128))])]),s("div",rd,[t[143]||(t[143]=s("h3",{style:{color:"#808080"}},"自定义维度",-1)),s("div",ad,[s("div",ld,[s("div",sd,[v(G,{style:{width:"150px"},modelValue:pi.value,"onUpdate:modelValue":t[16]||(t[16]=m=>pi.value=m),placeholder:"请输入维度名称"},null,8,["modelValue"])]),s("div",dd,[t[141]||(t[141]=s("div",{class:"input-label"},"特征描述:",-1)),v(G,{modelValue:mi.value,"onUpdate:modelValue":t[17]||(t[17]=m=>mi.value=m),style:{width:"500px"},type:"textarea",placeholder:"请输入特征描述"},null,8,["modelValue"])])]),s("div",ud,[v(an,{modelValue:gi.value,"onUpdate:modelValue":t[18]||(t[18]=m=>gi.value=m),class:"custom-checkbox"},{default:S(()=>t[142]||(t[142]=[s("div",{class:"ability-label"},[s("span",null,"继续新增")],-1)])),_:1},8,["modelValue"])])])])])])),[[Oi,In.value]]):We("",!0),D.value===2?(N(),W("div",cd,[s("div",fd,[s("div",vd,[s("div",pd,[v(I,{plain:"",class:"custom-btn",onClick:Se},{default:S(()=>[v(Z,null,{default:S(()=>[v(be(sn))]),_:1}),t[144]||(t[144]=M(" 自定义题目 "))]),_:1}),v(I,{plain:"",class:"custom-btn"},{default:S(()=>[v(Z,null,{default:S(()=>[v(be(Pi))]),_:1}),t[145]||(t[145]=M(" 导入题目 "))]),_:1}),s("div",md,[s("div",gd,[t[146]||(t[146]=s("span",{class:"switch-label"},"开放题数量",-1)),v(An,{modelValue:rn.openQuestionsCount,"onUpdate:modelValue":t[19]||(t[19]=m=>rn.openQuestionsCount=m),min:1,max:10,size:"small",onChange:xi},null,8,["modelValue"])]),s("div",hd,[t[147]||(t[147]=s("span",{class:"switch-label"},"选择题数量",-1)),v(An,{modelValue:rn.choiceQuestionsCount,"onUpdate:modelValue":t[20]||(t[20]=m=>rn.choiceQuestionsCount=m),min:1,max:20,size:"small",onChange:xi},null,8,["modelValue"])]),s("div",yd,[t[148]||(t[148]=s("span",{class:"switch-label"},"得分题",-1)),v(at,{style:{"margin-top":"0px"},modelValue:Ae.enableScoreQuestions,"onUpdate:modelValue":t[21]||(t[21]=m=>Ae.enableScoreQuestions=m),onChange:ia},null,8,["modelValue"])]),s("div",bd,[t[149]||(t[149]=s("span",{class:"switch-label"},"色盲题",-1)),v(at,{style:{"margin-top":"0px"},modelValue:Ae.enableColorBlindQuestions,"onUpdate:modelValue":t[22]||(t[22]=m=>Ae.enableColorBlindQuestions=m),onChange:ra},null,8,["modelValue"])])])]),t[150]||(t[150]=s("div",{class:"interview-duration"},[s("span",null,"预计面试时长: "),s("span",{class:"duration-value"},"0秒"),s("span",{class:"duration-tip"},"拖动试题卡片可改变试题顺序")],-1))]),s("div",Sd,[Ti((N(),W("div",Ed,[X.value.length===0?(N(),W("div",xd,[t[153]||(t[153]=s("p",null,"暂无题目",-1)),t[154]||(t[154]=s("p",{class:"ai-tip"},'点击"AI自动组题"按钮',-1)),t[155]||(t[155]=s("p",{class:"ai-tip"},"可根据您选择的能力类型一键组题",-1)),v(I,{type:"success",class:"auto-generate-btn",loading:Je.value,onClick:Ca},{default:S(()=>t[151]||(t[151]=[M(" AI自动组题 ")])),_:1},8,["loading"]),Je.value&&be(Bt)?(N(),Ce(I,{key:0,type:"warning",plain:"",size:"small",onClick:oa,style:{"margin-left":"10px"}},{default:S(()=>t[152]||(t[152]=[M(" 取消生成 ")])),_:1})):We("",!0)])):(N(),W("div",Id,[v(be(Zi),{modelValue:X.value,"onUpdate:modelValue":t[23]||(t[23]=m=>X.value=m),"item-key":"id",handle:".drag-handle",onStart:Xr,onEnd:Zr,animation:"200","ghost-class":"sortable-ghost","chosen-class":"sortable-chosen","drag-class":"sortable-drag"},{item:S(({element:m})=>[s("div",Cd,[t[159]||(t[159]=s("div",{class:"drag-handle"},[s("img",{src:$a,alt:"",class:"dorp"})],-1)),s("div",Ad,[s("div",wd,[s("div",Od,[s("div",Td,[s("span",Dd,"题目"+se(X.value.indexOf(m)+1),1),s("span",null,[s("span",Pd,se("「"+m.question_form_name+"」"),1),M(se(m.title),1)])]),s("div",Rd,[(N(!0),W(Ge,null,$e((m.competency_tag_info||m.competency_tags||[]).slice(0,2),(ne,Ie)=>(N(),Ce(Cn,{key:ne.id,effect:"plain",class:"competency-tag",size:"small"},{default:S(()=>[M(se(ne.name),1)]),_:2},1024))),128)),(m.competency_tag_info||m.competency_tags||[]).length>2?(N(),W("span",Vd," +"+se((m.competency_tag_info||m.competency_tags||[]).length-2),1)):We("",!0)])])]),s("div",Ud,[v(I,{type:"text",onClick:ne=>Me(X.value.indexOf(m))},{default:S(()=>[v(Z,null,{default:S(()=>[v(be(ut))]),_:1})]),_:2},1032,["onClick"]),v(I,{type:"text",onClick:ne=>de(X.value.indexOf(m))},{default:S(()=>[v(Z,null,{default:S(()=>[v(be(Ri))]),_:1})]),_:2},1032,["onClick"])])]),s("div",Kd,[s("div",Md,[s("span",null,se(m.scoring_reference),1)])]),m.question_form==0?(N(),W("div",Bd,[s("div",Nd,[v(at,{style:{"margin-top":"0px"},modelValue:m.enable_follow_up,"onUpdate:modelValue":ne=>m.enable_follow_up=ne,onChange:_},null,8,["modelValue","onUpdate:modelValue"]),t[156]||(t[156]=s("span",{class:"answer-label"},"回答不充分追问",-1))]),s("div",jd,[t[157]||(t[157]=s("span",{class:"answer-label"},"追问轮数",-1)),v(xe,{modelValue:m.maxAnswers,"onUpdate:modelValue":ne=>m.maxAnswers=ne,size:"small",placeholder:"请选择"},{default:S(()=>[v(le,{label:"1次",value:1})]),_:2},1032,["modelValue","onUpdate:modelValue"])])])):We("",!0),m.question_form==1?(N(),W("div",Fd,[s("div",Ld,[t[158]||(t[158]=s("span",{class:"answer-label"},"是否为红线题:",-1)),v(xe,{modelValue:m.is_required_correct,"onUpdate:modelValue":ne=>m.is_required_correct=ne,onChange:ne=>x(m.id,m.is_required_correct),size:"small",placeholder:"请选择"},{default:S(()=>[v(le,{label:"是",value:!0}),v(le,{label:"否",value:!1})]),_:2},1032,["modelValue","onUpdate:modelValue","onChange"])])])):We("",!0)])]),_:1},8,["modelValue"])]))])),[[Oi,Je.value]]),s("div",kd,[t[162]||(t[162]=s("div",{class:"dimension-title"},"已选胜任力考核维度",-1)),s("div",Qd,[(N(!0),W(Ge,null,$e(H.value,(m,ne)=>(N(),W("div",{key:m.value,class:"dimension-item"},[s("div",zd,[s("div",Gd,[s("span",$d,se(m.label),1),t[160]||(t[160]=s("img",{src:Ki,alt:"",class:"sheng"},null,-1))])]),s("div",{class:"dimension-content",onClick:Ie=>ea(ne),title:"点击删除此胜任力标签"},t[161]||(t[161]=[s("div",{class:"ability-description"},se("—"),-1)]),8,Jd)]))),128))])])])])])):We("",!0),D.value===3?(N(),W("div",Wd,[s("div",Hd,[s("div",Yd,[t[173]||(t[173]=s("div",{class:"section-header"},"请选择面试官形象",-1)),s("div",Xd,[s("div",Zd,[zo.value?(N(),W("img",{key:0,src:zo.value,alt:"",style:{width:"100%",height:"100%","object-fit":"cover",transform:"translateZ(0)","backface-visibility":"hidden"}},null,8,qd)):We("",!0)]),s("div",null,[s("div",_d,[(N(!0),W(Ge,null,$e(Qo.value,m=>(N(),W("div",{key:m.id,class:St(["avatar-item",{active:dt.value.id===m.id}]),onClick:ne=>Wr(m)},[s("div",tu,[s("div",{class:St(["avatar-circle",{selected:dt.value.id===m.id}])},[s("img",{src:m.avatar_url||m.image,alt:m.name},null,8,nu)],2),s("div",{class:"avatar-name",title:m.name},se(m.name),9,ou)])],10,eu))),128))]),s("div",iu,[t[163]||(t[163]=s("div",{class:"setting-label"},"「追问风格」",-1)),s("div",ru,[v(xe,{modelValue:nt.followUpStyle,"onUpdate:modelValue":t[24]||(t[24]=m=>nt.followUpStyle=m),placeholder:"请选择",onChange:t[25]||(t[25]=m=>Jn("followUpStyle",nt.followUpStyle))},{default:S(()=>[v(le,{label:"温和",value:"1"}),v(le,{label:"严厉",value:"2"}),v(le,{label:"严谨",value:"3"})]),_:1},8,["modelValue"])]),t[164]||(t[164]=s("div",{class:"setting-desc"},null,-1))])])]),s("div",au,[s("div",lu,[t[165]||(t[165]=s("div",{class:"setting-label"},"「回答视频保留」",-1)),t[166]||(t[166]=s("div",{class:"setting-desc"},"选取后,将在报告中展示候选人的回答视频",-1)),v(at,{modelValue:nt.keepVideo,"onUpdate:modelValue":t[26]||(t[26]=m=>nt.keepVideo=m),onChange:t[27]||(t[27]=m=>Jn("keepVideo",m))},null,8,["modelValue"])]),s("div",su,[t[169]||(t[169]=s("div",{class:"setting-label"},"「中断后作答限制」",-1)),s("div",du,[v(ln,{modelValue:nt.interruptionMode,"onUpdate:modelValue":t[28]||(t[28]=m=>nt.interruptionMode=m),label:"current",onChange:t[29]||(t[29]=m=>Jn("interruptionMode",nt.interruptionMode))},{default:S(()=>t[167]||(t[167]=[M(" 从当前问题重新作答 ")])),_:1},8,["modelValue"]),v(ln,{modelValue:nt.interruptionMode,"onUpdate:modelValue":t[30]||(t[30]=m=>nt.interruptionMode=m),label:"previous",onChange:t[31]||(t[31]=m=>Jn("interruptionMode",nt.interruptionMode))},{default:S(()=>t[168]||(t[168]=[M(" 从头作答 ")])),_:1},8,["modelValue"])]),t[170]||(t[170]=s("div",{class:"setting-desc"},null,-1))]),s("div",uu,[t[171]||(t[171]=s("div",{class:"setting-label"},"「智慧追问」",-1)),t[172]||(t[172]=s("div",{class:"setting-desc"},"* 追问将结合候选人资料情况,综合分析发问",-1)),v(at,{modelValue:nt.smartFollowUp,"onUpdate:modelValue":t[32]||(t[32]=m=>nt.smartFollowUp=m),onChange:t[33]||(t[33]=m=>Jn("smartFollowUp",m))},null,8,["modelValue"])])])])])])):We("",!0)]),_:1},8,["modelValue"]),v(Nt,{title:"新增视频宣讲",modelValue:V.value,"onUpdate:modelValue":t[37]||(t[37]=m=>V.value=m),width:"35%","close-on-click-modal":!1,class:"video-lecture-dialog"},{footer:S(()=>[s("span",hu,[v(I,{onClick:A},{default:S(()=>t[184]||(t[184]=[M("取消")])),_:1}),v(I,{type:"primary",onClick:R},{default:S(()=>t[185]||(t[185]=[M("确认")])),_:1})])]),default:S(()=>[s("div",fu,[s("div",vu,[t[179]||(t[179]=s("div",{class:"form-label"},"上传视频",-1)),v(Ii,{class:"video-uploader",action:"#","auto-upload":!1,"show-file-list":!1,accept:"video/*"},{default:S(()=>[s("div",pu,[v(Z,null,{default:S(()=>[v(be(sn))]),_:1}),t[178]||(t[178]=s("div",{class:"upload-text"},"上传文件大小不超过500M",-1))])]),_:1})]),s("div",mu,[t[180]||(t[180]=s("div",{class:"form-label"},"视频简介",-1)),v(G,{modelValue:z.description,"onUpdate:modelValue":t[35]||(t[35]=m=>z.description=m),type:"textarea",rows:"4",placeholder:"视频简介会显示在视频下方的标题下方",maxlength:"200","show-word-limit":""},null,8,["modelValue"])]),s("div",gu,[t[183]||(t[183]=s("div",{class:"form-label"},"播放设置",-1)),v(Ci,{modelValue:z.broadcastType,"onUpdate:modelValue":t[36]||(t[36]=m=>z.broadcastType=m)},{default:S(()=>[v(ln,{label:"required"},{default:S(()=>t[181]||(t[181]=[M("必须看完")])),_:1}),v(ln,{label:"optional"},{default:S(()=>t[182]||(t[182]=[M("看过即可")])),_:1})]),_:1},8,["modelValue"])])])]),_:1},8,["modelValue"]),v(be($o),{title:"AI实时对话",modelValue:Y.value,"onUpdate:modelValue":t[39]||(t[39]=m=>Y.value=m),direction:"rtl",size:"60%","close-on-click-modal":!1,class:"ai-chat-drawer","destroy-on-close":!1},{footer:S(()=>[s("div",Mu,[v(I,{onClick:q},{default:S(()=>t[196]||(t[196]=[M("取消")])),_:1}),v(I,{type:"primary",onClick:j},{default:S(()=>t[197]||(t[197]=[M("确认")])),_:1})])]),default:S(()=>[s("div",yu,[s("div",bu,[t[195]||(t[195]=s("div",{class:"section-title"},[s("div",{class:"section-line"}),s("span",null,"对话设置")],-1)),s("div",Su,[v(I,{type:"primary",plain:"",onClick:ve},{default:S(()=>[v(Z,null,{default:S(()=>[v(be(sn))]),_:1}),t[186]||(t[186]=M(" 添加问题 "))]),_:1}),v(I,{type:"success",plain:"",onClick:Se},{default:S(()=>[v(Z,null,{default:S(()=>[v(be(Pi))]),_:1}),t[187]||(t[187]=M(" 导入问题 "))]),_:1})]),s("div",Eu,[X.value.length===0?(N(),W("div",xu,t[188]||(t[188]=[s("p",null,"暂无问题",-1),s("p",{class:"tip-text"},'点击"添加问题"或"导入问题"添加面试问题',-1)]))):(N(),W("div",Iu,[v(be(Zi),{modelValue:X.value,"onUpdate:modelValue":t[38]||(t[38]=m=>X.value=m),"item-key":"id",handle:".drag-handle"},{item:S(({element:m,index:ne})=>[M(se(m)+" ",1),s("div",Cu,[s("div",Au,[s("div",wu,[s("span",Ou,"题目"+se(ne+1),1),s("span",null,se(m.question),1)]),s("div",Tu,[s("div",Du,[t[190]||(t[190]=s("span",{class:"weight-label"},"权重占比:",-1)),v(An,{modelValue:m.weight,"onUpdate:modelValue":Ie=>m.weight=Ie,min:0,max:100,step:1,size:"small","controls-position":"right"},{suffix:S(()=>t[189]||(t[189]=[M("%")])),_:2},1032,["modelValue","onUpdate:modelValue"])]),s("div",Pu,[t[191]||(t[191]=s("span",{class:"answer-label"},"最多回答次数",-1)),v(xe,{modelValue:m.maxAnswers,"onUpdate:modelValue":Ie=>m.maxAnswers=Ie,size:"small",placeholder:"请选择"},{default:S(()=>[v(le,{label:"1次",value:1}),v(le,{label:"2次",value:2}),v(le,{label:"3次",value:3})]),_:2},1032,["modelValue","onUpdate:modelValue"])]),v(I,{type:"text",onClick:Ie=>Me(ne)},{default:S(()=>[v(Z,null,{default:S(()=>[v(be(ut))]),_:1})]),_:2},1032,["onClick"]),v(I,{type:"text",onClick:Ie=>de(ne)},{default:S(()=>[v(Z,null,{default:S(()=>[v(be(Ri))]),_:1})]),_:2},1032,["onClick"])])]),s("div",Ru,[s("div",Vu,[t[192]||(t[192]=s("span",{class:"info-label"},"考察能力:",-1)),s("span",null,se(m.ability),1)]),s("div",Uu,[t[193]||(t[193]=s("span",{class:"info-label"},"面试内容:",-1)),s("span",null,se(m.content),1)]),s("div",Ku,[t[194]||(t[194]=s("span",{class:"info-label"},"对话目标:",-1)),s("span",null,se(m.target),1)])])])]),_:1},8,["modelValue"])]))])])])]),_:1},8,["modelValue"]),v(Nt,{title:"编辑问题",modelValue:re.value,"onUpdate:modelValue":t[50]||(t[50]=m=>re.value=m),width:"500px","close-on-click-modal":!1,class:"question-dialog"},{footer:S(()=>[s("span",Zu,[v(I,{onClick:Te},{default:S(()=>t[222]||(t[222]=[M("取消")])),_:1}),v(I,{type:"primary",onClick:Ye},{default:S(()=>t[223]||(t[223]=[M("确认")])),_:1})])]),default:S(()=>[s("div",Bu,[s("div",Nu,[t[198]||(t[198]=s("div",{class:"form-label"},[M(" 题目内容"),s("span",{class:"required"},"*")],-1)),v(G,{modelValue:T.content,"onUpdate:modelValue":t[40]||(t[40]=m=>T.content=m),type:"textarea",rows:"4",placeholder:"请描述一次你如何在紧迫的时间内完成一个复杂的后端开发任务的经历",maxlength:"300","show-word-limit":""},null,8,["modelValue"])]),s("div",ju,[t[199]||(t[199]=s("div",{class:"form-label"},"胜任力标签",-1)),v(xe,{modelValue:T.competency_tags,"onUpdate:modelValue":t[41]||(t[41]=m=>T.competency_tags=m),placeholder:"请选择胜任力标签",class:"full-width",multiple:"",onChange:Aa},{default:S(()=>[(N(!0),W(Ge,null,$e(k.value,m=>(N(),Ce(le,{key:m.id,label:m.name,value:m.id},null,8,["label","value"]))),128))]),_:1},8,["modelValue"]),t[200]||(t[200]=s("div",{class:"form-tip"},"选择胜任力标签和胜任力标签,可多选",-1))]),s("div",Fu,[t[203]||(t[203]=s("div",{class:"form-label"}," 胜任力配置 ",-1)),s("div",Lu,[t[202]||(t[202]=s("div",{class:"config-row"},[s("span",{class:"config-label"},"标签"),s("span",{class:"config-label"},"权重"),s("span",{class:"config-label"},"级别")],-1)),(N(!0),W(Ge,null,$e(T.competency_tags,m=>(N(),W("div",{class:"config-row",key:m.id},[s("span",ku,se(m.name),1),v(An,{modelValue:m.weight,"onUpdate:modelValue":ne=>m.weight=ne,min:0,max:100,step:1,"controls-position":"right"},null,8,["modelValue","onUpdate:modelValue"]),t[201]||(t[201]=M(" % ")),v(An,{modelValue:m.importance,"onUpdate:modelValue":ne=>m.importance=ne,min:1,max:5,step:1,"controls-position":"right"},null,8,["modelValue","onUpdate:modelValue"])]))),128))]),t[204]||(t[204]=s("div",{class:"form-tip"},"配置各个胜任力标签的权重,总和需要100%",-1))]),s("div",Qu,[t[205]||(t[205]=s("div",{class:"form-label"},"题目形式",-1)),v(xe,{modelValue:T.type,"onUpdate:modelValue":t[42]||(t[42]=m=>T.type=m),placeholder:"开放问题",class:"full-width",onChange:Oa},{default:S(()=>[v(le,{label:"开放问题",value:"open"}),v(le,{label:"单选题",value:"single"}),v(le,{label:"多选题",value:"multiple"}),v(le,{label:"填空题",value:"fill"}),v(le,{label:"自言语",value:"self"})]),_:1},8,["modelValue"]),t[206]||(t[206]=s("div",{class:"form-tip"},"选择题目的形式:开放问题、单选题、多选题、填空题、自言语",-1))]),s("div",zu,[t[207]||(t[207]=s("div",{class:"form-label"},"适用职位",-1)),v(xe,{modelValue:T.position,"onUpdate:modelValue":t[43]||(t[43]=m=>T.position=m),placeholder:"请选择适用职位类型",class:"full-width",multiple:""},{default:S(()=>[(N(!0),W(Ge,null,$e(ce.value,m=>(N(),Ce(le,{key:m.value,label:m.label,value:m.value},null,8,["label","value"]))),128))]),_:1},8,["modelValue"]),t[208]||(t[208]=s("div",{class:"form-tip"},"选择题目适用的职位类型,可多选",-1))]),T.question_form===1||T.question_form===2?(N(),W("div",Gu,[t[212]||(t[212]=s("div",{class:"form-label"},"选项",-1)),s("div",null,[t[211]||(t[211]=s("div",{class:"option-header",style:{display:"flex","margin-bottom":"10px","font-weight":"bold"}},[s("span",{style:{flex:"1"}},"选项内容"),s("span",{style:{width:"80px","text-align":"center"}},"是否正确")],-1)),(N(!0),W(Ge,null,$e(T.options,(m,ne)=>(N(),W("div",{key:ne,class:"option-item",style:{display:"flex","align-items":"center","margin-bottom":"10px"}},[v(G,{modelValue:m.text,"onUpdate:modelValue":Ie=>m.text=Ie,placeholder:"请输入选项内容",style:{flex:"1","margin-right":"10px"}},null,8,["modelValue","onUpdate:modelValue"]),v(wn,{content:"设置为正确答案",placement:"top",effect:"light"},{default:S(()=>[s("div",{onClick:()=>{T.question_form===1?T.options.forEach((Ie,Da)=>{Ie.is_correct=Da===ne}):m.is_correct=!m.is_correct},style:{cursor:"pointer",width:"80px","text-align":"center"}},[T.question_form===1?(N(),Ce(ln,{key:0,modelValue:m.is_correct,"onUpdate:modelValue":Ie=>m.is_correct=Ie,label:!0},null,8,["modelValue","onUpdate:modelValue"])):(N(),Ce(an,{key:1,modelValue:m.is_correct,"onUpdate:modelValue":Ie=>m.is_correct=Ie},null,8,["modelValue","onUpdate:modelValue"]))],8,$u)]),_:2},1024)]))),128)),s("div",Ju,[v(I,{type:"primary",onClick:t[44]||(t[44]=()=>{T.options||(T.options=[]);const m=T.options.length>0?Math.max(...T.options.map(ne=>ne.sort||0))+1:1;T.options.push({option_text:"",is_correct:!1,sort:m})})},{default:S(()=>t[209]||(t[209]=[M(" 添加选项 ")])),_:1}),T.options&&T.options.length>2?(N(),Ce(I,{key:0,type:"danger",onClick:t[45]||(t[45]=()=>{T.options.pop()})},{default:S(()=>t[210]||(t[210]=[M(" 删除最后一项 ")])),_:1})):We("",!0)])]),t[213]||(t[213]=s("div",{class:"form-tip"},"添加选项并设置正确答案,单选题只能有一个正确答案,多选题可以有多个正确答案",-1))])):We("",!0),s("div",Wu,[t[214]||(t[214]=s("div",{class:"form-label"},"分类",-1)),v(xe,{modelValue:T.category,"onUpdate:modelValue":t[46]||(t[46]=m=>T.category=m),placeholder:"请选择题目分类",class:"full-width"},{default:S(()=>[(N(!0),W(Ge,null,$e($.value,m=>(N(),Ce(le,{key:m.value,label:m.label,value:m.value},null,8,["label","value"]))),128))]),_:1},8,["modelValue"]),t[215]||(t[215]=s("div",{class:"form-tip"},"选择题目所属分类",-1))]),s("div",Hu,[t[216]||(t[216]=s("div",{class:"form-label"},"标签",-1)),v(xe,{modelValue:T.tags,"onUpdate:modelValue":t[47]||(t[47]=m=>T.tags=m),placeholder:"请选择标签",class:"full-width",multiple:""},{default:S(()=>[(N(!0),W(Ge,null,$e(oe.value,m=>(N(),Ce(le,{key:m.value,label:m.label,value:m.value},null,8,["label","value"]))),128))]),_:1},8,["modelValue"]),t[217]||(t[217]=s("div",{class:"form-tip"},"选择题目相关标签,可多选",-1))]),s("div",Yu,[t[218]||(t[218]=s("div",{class:"form-label"},"建议时长(秒)",-1)),v(An,{modelValue:T.suggestedDuration,"onUpdate:modelValue":t[48]||(t[48]=m=>T.suggestedDuration=m),min:0,step:1,"controls-position":"right",placeholder:"请输入建议回答时长",class:"full-width"},null,8,["modelValue"]),t[219]||(t[219]=s("div",{class:"form-tip"},"建议回答题目的时长,单位为秒",-1))]),s("div",Xu,[t[220]||(t[220]=s("div",{class:"form-label"},"评价标准",-1)),v(G,{modelValue:T.scoring_reference,"onUpdate:modelValue":t[49]||(t[49]=m=>T.scoring_reference=m),type:"textarea",rows:"4",placeholder:"请输入评价标准",class:"full-width"},null,8,["modelValue"]),t[221]||(t[221]=s("div",{class:"form-tip"},"评价标准,用于评价应聘者的表现",-1))])])]),_:1},8,["modelValue"]),v(Nt,{title:"选择题目",modelValue:Hn.value,"onUpdate:modelValue":t[55]||(t[55]=m=>Hn.value=m),width:"70%","close-on-click-modal":!1,class:"question-select-dialog"},{footer:S(()=>[s("span",oc,[v(I,{onClick:Ei},{default:S(()=>t[224]||(t[224]=[M("取消")])),_:1}),v(I,{type:"primary",onClick:sa,style:{"background-color":"#ed7d31","border-color":"#ed7d31"}},{default:S(()=>t[225]||(t[225]=[M("确定")])),_:1})])]),default:S(()=>[s("div",qu,[s("div",_u,[s("div",ec,[v(G,{modelValue:on.value,"onUpdate:modelValue":t[51]||(t[51]=m=>on.value=m),placeholder:"请输入关键词搜索题目",clearable:"",onClear:$t,onKeyup:Di($t,["enter"]),style:{width:"300px","margin-right":"10px"}},{append:S(()=>[v(I,{onClick:$t},{default:S(()=>[v(Z,null,{default:S(()=>[v(be(Vi))]),_:1})]),_:1})]),_:1},8,["modelValue"]),v(xe,{modelValue:ot.question_form,"onUpdate:modelValue":t[52]||(t[52]=m=>ot.question_form=m),placeholder:"题目类型",clearable:"",onChange:$t,style:{width:"120px"}},{default:S(()=>[v(le,{label:"开放问题",value:0}),v(le,{label:"单选题",value:1})]),_:1},8,["modelValue"])])]),s("div",tc,[v(Ai,{data:_e.value,style:{width:"100%"},onSelectionChange:Si},{default:S(()=>[v(On,{type:"selection",width:"55"}),v(On,{prop:"question",label:"题目标题"}),v(On,{prop:"question_form_name",label:"题目类型",width:"100"})]),_:1},8,["data"]),s("div",nc,[v(wi,{"current-page":ot.page,"onUpdate:currentPage":t[53]||(t[53]=m=>ot.page=m),"page-size":ot.pageSize,"onUpdate:pageSize":t[54]||(t[54]=m=>ot.pageSize=m),total:bi.value,"page-sizes":[10,20,50,100],layout:"total, sizes, prev, pager, next",onSizeChange:aa,onCurrentChange:la},null,8,["current-page","page-size","total"])])])])]),_:1},8,["modelValue"]),v(Nt,{title:"资料收集",modelValue:Ee.value,"onUpdate:modelValue":t[59]||(t[59]=m=>Ee.value=m),width:"900px","close-on-click-modal":!1,class:"data-collection-dialog"},{footer:S(()=>[s("span",Ic,[v(I,{onClick:ee},{default:S(()=>t[235]||(t[235]=[M("取消")])),_:1}),v(I,{type:"primary",onClick:da},{default:S(()=>t[236]||(t[236]=[M("确认")])),_:1})])]),default:S(()=>[s("div",ic,[s("div",rc,[t[234]||(t[234]=s("div",{class:"panel-header"},[s("h3",null,"字段显示配置")],-1)),s("div",ac,[t[229]||(t[229]=s("div",{class:"section-title"},"基本信息",-1)),v(Ht,{gutter:20},{default:S(()=>[(N(!0),W(Ge,null,$e(ua(),(m,ne)=>(N(),Ce(Wt,{span:8,key:ne},{default:S(()=>[s("div",lc,[s("span",sc,se(m.label),1),v(wn,{content:"切换显示/隐藏",placement:"top"},{default:S(()=>[v(at,{modelValue:m.visible,"onUpdate:modelValue":Ie=>m.visible=Ie,class:"custom-switch"},null,8,["modelValue","onUpdate:modelValue"])]),_:2},1024)])]),_:2},1024))),128))]),_:1}),t[230]||(t[230]=s("div",{class:"section-title"},"家庭成员信息",-1)),v(Ht,{gutter:20},{default:S(()=>[v(Wt,{span:24},{default:S(()=>[s("div",dc,[s("span",uc,[M(se(L.family_member.label)+" ",1),L.family_member.visible?(N(),Ce(Cn,{key:0,size:"small",type:"success"},{default:S(()=>t[226]||(t[226]=[M("已启用")])),_:1})):We("",!0)]),v(at,{modelValue:L.family_member.visible,"onUpdate:modelValue":t[56]||(t[56]=m=>L.family_member.visible=m),class:"custom-switch"},null,8,["modelValue"])])]),_:1})]),_:1}),L.family_member.visible?(N(),Ce(Ht,{key:0,gutter:20},{default:S(()=>[(N(!0),W(Ge,null,$e(L.family_member.fields,(m,ne)=>(N(),Ce(Wt,{span:8,key:ne},{default:S(()=>[s("div",cc,[s("span",fc,se(m.label),1),v(wn,{content:"切换显示/隐藏",placement:"top"},{default:S(()=>[v(at,{modelValue:m.visible,"onUpdate:modelValue":Ie=>m.visible=Ie,class:"custom-switch"},null,8,["modelValue","onUpdate:modelValue"])]),_:2},1024)])]),_:2},1024))),128))]),_:1})):We("",!0),t[231]||(t[231]=s("div",{class:"section-title"},"教育经历",-1)),v(Ht,{gutter:20},{default:S(()=>[v(Wt,{span:24},{default:S(()=>[s("div",vc,[s("span",pc,[M(se(L.education.label)+" ",1),L.education.visible?(N(),Ce(Cn,{key:0,size:"small",type:"success"},{default:S(()=>t[227]||(t[227]=[M("已启用")])),_:1})):We("",!0)]),v(at,{modelValue:L.education.visible,"onUpdate:modelValue":t[57]||(t[57]=m=>L.education.visible=m),class:"custom-switch"},null,8,["modelValue"])])]),_:1})]),_:1}),L.education.visible?(N(),Ce(Ht,{key:1,gutter:20},{default:S(()=>[(N(!0),W(Ge,null,$e(L.education.fields,(m,ne)=>(N(),Ce(Wt,{span:8,key:ne},{default:S(()=>[s("div",mc,[s("span",gc,se(m.label),1),v(wn,{content:"切换显示/隐藏",placement:"top"},{default:S(()=>[v(at,{modelValue:m.visible,"onUpdate:modelValue":Ie=>m.visible=Ie,class:"custom-switch"},null,8,["modelValue","onUpdate:modelValue"])]),_:2},1024)])]),_:2},1024))),128))]),_:1})):We("",!0),t[232]||(t[232]=s("div",{class:"section-title"},"专业技能",-1)),v(Ht,{gutter:20},{default:S(()=>[(N(!0),W(Ge,null,$e(ca(),(m,ne)=>(N(),Ce(Wt,{span:8,key:ne},{default:S(()=>[s("div",hc,[s("span",yc,se(m.label),1),v(wn,{content:"切换显示/隐藏",placement:"top"},{default:S(()=>[v(at,{modelValue:m.visible,"onUpdate:modelValue":Ie=>m.visible=Ie,class:"custom-switch"},null,8,["modelValue","onUpdate:modelValue"])]),_:2},1024)])]),_:2},1024))),128))]),_:1}),t[233]||(t[233]=s("div",{class:"section-title"},"工作经历",-1)),v(Ht,{gutter:20},{default:S(()=>[v(Wt,{span:24},{default:S(()=>[s("div",bc,[s("span",Sc,[M(se(L.work_experience.label)+" ",1),L.work_experience.visible?(N(),Ce(Cn,{key:0,size:"small",type:"success"},{default:S(()=>t[228]||(t[228]=[M("已启用")])),_:1})):We("",!0)]),v(at,{modelValue:L.work_experience.visible,"onUpdate:modelValue":t[58]||(t[58]=m=>L.work_experience.visible=m),class:"custom-switch"},null,8,["modelValue"])])]),_:1})]),_:1}),L.work_experience.visible?(N(),Ce(Ht,{key:2,gutter:20},{default:S(()=>[(N(!0),W(Ge,null,$e(L.work_experience.fields,(m,ne)=>(N(),Ce(Wt,{span:8,key:ne},{default:S(()=>[s("div",Ec,[s("span",xc,se(m.label),1),v(wn,{content:"切换显示/隐藏",placement:"top"},{default:S(()=>[v(at,{modelValue:m.visible,"onUpdate:modelValue":Ie=>m.visible=Ie,class:"custom-switch"},null,8,["modelValue","onUpdate:modelValue"])]),_:2},1024)])]),_:2},1024))),128))]),_:1})):We("",!0)])])])]),_:1},8,["modelValue"]),v(Nt,{title:"简历收集",modelValue:Pe.value,"onUpdate:modelValue":t[61]||(t[61]=m=>Pe.value=m),width:"500px","close-on-click-modal":!1,class:"resume-collection-dialog"},{footer:S(()=>[s("span",wc,[v(I,{onClick:Oe},{default:S(()=>t[238]||(t[238]=[M("取消")])),_:1}),v(I,{type:"primary",onClick:Re},{default:S(()=>t[239]||(t[239]=[M("确认")])),_:1})])]),default:S(()=>[s("div",Cc,[s("div",Ac,[t[237]||(t[237]=s("div",{class:"form-label"},"步骤名称",-1)),v(G,{modelValue:Ke.title,"onUpdate:modelValue":t[60]||(t[60]=m=>Ke.title=m),placeholder:"请输入步骤名称",maxlength:"30","show-word-limit":""},null,8,["modelValue"])])])]),_:1},8,["modelValue"]),v(Nt,{title:"添加代码笔试步骤",modelValue:me.value,"onUpdate:modelValue":t[64]||(t[64]=m=>me.value=m),width:"500px","close-on-click-modal":!1,class:"code-test-dialog"},{footer:S(()=>[s("span",Fc,[v(I,{onClick:gn},{default:S(()=>t[248]||(t[248]=[M("取消")])),_:1}),v(I,{type:"primary",onClick:ko},{default:S(()=>t[249]||(t[249]=[M("确认")])),_:1})])]),default:S(()=>[s("div",Oc,[s("div",Tc,[t[240]||(t[240]=s("div",{class:"form-label"},"步骤名称",-1)),v(G,{modelValue:ae.title,"onUpdate:modelValue":t[62]||(t[62]=m=>ae.title=m),placeholder:"请输入步骤名称",maxlength:"30","show-word-limit":""},null,8,["modelValue"])]),s("div",Dc,[t[241]||(t[241]=s("div",{class:"form-label"},"自动评判试卷",-1)),v(at,{modelValue:ae.autoJudge,"onUpdate:modelValue":t[63]||(t[63]=m=>ae.autoJudge=m)},null,8,["modelValue"]),s("span",Pc,se(ae.autoJudge?"开启":"关闭"),1)]),s("div",Rc,[t[247]||(t[247]=s("div",{class:"form-label"},"添加考试试卷",-1)),s("div",Vc,[ae.selectedPaper?(N(),W("div",Kc,[s("div",Mc,[s("div",Bc,se(ae.selectedPaper.title),1),s("div",Nc,[s("span",null,se(ae.selectedPaper.questionCount)+"道题",1),s("span",null,se(ae.selectedPaper.duration)+"分钟",1),s("span",null,se(ae.selectedPaper.difficulty),1)])]),s("div",jc,[v(I,{type:"text",onClick:cr},{default:S(()=>t[244]||(t[244]=[M("查看")])),_:1}),v(I,{type:"text",onClick:fr},{default:S(()=>t[245]||(t[245]=[M("更换")])),_:1}),v(I,{type:"text",onClick:vr},{default:S(()=>t[246]||(t[246]=[M("删除")])),_:1})])])):(N(),W("div",Uc,[v(I,{type:"primary",plain:"",onClick:hn},{default:S(()=>[v(Z,null,{default:S(()=>[v(be(sn))]),_:1}),t[242]||(t[242]=M(" 添加考卷 "))]),_:1}),t[243]||(t[243]=s("p",{class:"tip-text"},"多选时,考生会随机分配到一套试卷",-1))]))])])])]),_:1},8,["modelValue"]),v(be($o),{title:"添加打字测试步骤",modelValue:Bn.value,"onUpdate:modelValue":t[72]||(t[72]=m=>Bn.value=m),size:"60%","close-on-click-modal":!1,class:"typing-test-dialog","destroy-on-close":!1},{footer:S(()=>[s("span",_c,[v(I,{onClick:fi},{default:S(()=>t[266]||(t[266]=[M("取消")])),_:1}),v(I,{type:"primary",onClick:pr},{default:S(()=>t[267]||(t[267]=[M("保存")])),_:1})])]),default:S(()=>[s("div",Lc,[s("div",kc,[t[251]||(t[251]=s("div",{class:"form-label"},"选择文章",-1)),s("div",Qc,[v(I,{type:"primary",size:"small",class:"add-article-btn"},{default:S(()=>[v(Z,null,{default:S(()=>[v(be(sn))]),_:1}),t[250]||(t[250]=M(" 添加文章 "))]),_:1})])]),s("div",zc,[t[254]||(t[254]=s("div",{class:"form-label"},"候选人选择文章方式",-1)),v(Ci,{modelValue:qe.selectionMode,"onUpdate:modelValue":t[65]||(t[65]=m=>qe.selectionMode=m)},{default:S(()=>[v(ln,{label:"random"},{default:S(()=>t[252]||(t[252]=[M("随机抽取")])),_:1}),v(ln,{label:"self"},{default:S(()=>t[253]||(t[253]=[M("候选人自主选择")])),_:1})]),_:1},8,["modelValue"])]),s("div",Gc,[t[256]||(t[256]=s("div",{class:"form-label"},"测试时间",-1)),s("div",$c,[v(G,{modelValue:qe.duration,"onUpdate:modelValue":t[66]||(t[66]=m=>qe.duration=m),class:"time-input"},null,8,["modelValue"]),t[255]||(t[255]=s("span",{class:"time-unit"},"分钟",-1))])]),s("div",Jc,[t[258]||(t[258]=s("div",{class:"form-label"},"登录界面预览图(建议尺寸1024*768像素,最大不要超过5M)",-1)),v(Ii,{class:"preview-uploader",action:"#","auto-upload":!1,"show-file-list":!1,accept:"image/*"},{default:S(()=>[s("div",Wc,[v(Z,null,{default:S(()=>[v(be(sn))]),_:1}),t[257]||(t[257]=s("div",{class:"upload-text"},"添加图片",-1))])]),_:1})]),s("div",Hc,[t[259]||(t[259]=s("div",{class:"form-label"},"注意事项内容(在登录界面显示)",-1)),v(G,{modelValue:qe.notes,"onUpdate:modelValue":t[67]||(t[67]=m=>qe.notes=m),type:"textarea",rows:"4",placeholder:"请输入注意事项内容",maxlength:"300","show-word-limit":""},null,8,["modelValue"])]),s("div",Yc,[t[260]||(t[260]=s("div",{class:"form-label"},"测试页面标题",-1)),v(G,{modelValue:qe.pageTitle,"onUpdate:modelValue":t[68]||(t[68]=m=>qe.pageTitle=m),placeholder:"测试页面标题"},null,8,["modelValue"])]),s("div",Xc,[t[262]||(t[262]=s("div",{class:"form-label"},"视频监控",-1)),v(an,{modelValue:qe.videoMonitoring,"onUpdate:modelValue":t[69]||(t[69]=m=>qe.videoMonitoring=m)},{default:S(()=>t[261]||(t[261]=[M("视频监控")])),_:1},8,["modelValue"])]),s("div",Zc,[t[265]||(t[265]=s("div",{class:"form-label"},"通过标准",-1)),s("div",qc,[v(an,{modelValue:qe.passCriteria.speed,"onUpdate:modelValue":t[70]||(t[70]=m=>qe.passCriteria.speed=m)},{default:S(()=>t[263]||(t[263]=[M("速度")])),_:1},8,["modelValue"]),v(an,{modelValue:qe.passCriteria.accuracy,"onUpdate:modelValue":t[71]||(t[71]=m=>qe.passCriteria.accuracy=m)},{default:S(()=>t[264]||(t[264]=[M("正确率")])),_:1},8,["modelValue"])])])])]),_:1},8,["modelValue"]),v(Nt,{title:"面试设置",modelValue:Xn.value,"onUpdate:modelValue":t[77]||(t[77]=m=>Xn.value=m),width:"60%","close-on-click-modal":!1,class:"interview-settings-dialog"},{footer:S(()=>[s("span",If,[v(I,{onClick:fa},{default:S(()=>t[281]||(t[281]=[M("取消")])),_:1}),v(I,{type:"primary",onClick:va},{default:S(()=>t[282]||(t[282]=[M("完成")])),_:1})])]),default:S(()=>[s("div",ef,[t[280]||(t[280]=s("div",{class:"settings-section"},[s("div",{class:"section-header"},[s("span",{class:"section-title"},"防作弊设置")]),s("div",{class:"setting-item"},[s("div",{class:"setting-info"},[s("span",{class:"setting-name"},"「人脸一致性检测」"),s("p",{class:"setting-desc"},"该强调,非本人操作人脸可视化提醒和警示,默认开启")])]),s("div",{class:"setting-item"},[s("div",{class:"setting-info"},[s("span",{class:"setting-name"},"「 防截屏 / 录屏 」"),s("p",{class:"setting-desc"},"该强调,非本人前来体验截屏录屏以上行为,为防止提醒")])]),s("div",{class:"setting-item"},[s("div",{class:"setting-info"},[s("span",{class:"setting-name"},"「 切 屏 预 制 」"),s("p",{class:"setting-desc"},"该强调,非本人前使用切屏处理用页面,为防作弊警示")])]),s("div",{class:"setting-item"},[s("div",{class:"setting-info"},[s("span",{class:"setting-name"},"「 情 绪 识 别」"),s("p",{class:"setting-desc"},"该现已,条件较差以及入侵过程中的作弊,条件等好等")])]),s("div",{class:"setting-item"},[s("div",{class:"setting-info"},[s("span",{class:"setting-name"},"「 眼 动 检 测 」"),s("p",{class:"setting-desc"},"视实检测候选人的眼动频率进行分析,页面等较等")])])],-1)),s("div",tf,[t[279]||(t[279]=s("div",{class:"section-header"},[s("span",{class:"section-title"},"其他设置")],-1)),s("div",nf,[s("div",of,[t[268]||(t[268]=s("span",{class:"setting-name"},"复习面试",-1)),t[269]||(t[269]=s("p",{class:"setting-desc"},"选取后,将允许面试者进行重复面试",-1)),v(at,{modelValue:ft.reviewInterview,"onUpdate:modelValue":t[73]||(t[73]=m=>ft.reviewInterview=m)},null,8,["modelValue"])])]),s("div",rf,[s("div",af,[t[272]||(t[272]=s("span",{class:"setting-name"},"开场词",-1)),Sn.value?(N(),W("div",df,[v(G,{modelValue:Jt.value,"onUpdate:modelValue":t[74]||(t[74]=m=>Jt.value=m),type:"textarea",rows:"2",placeholder:"请输入开始前提示内容","show-word-limit":""},null,8,["modelValue"]),s("div",uf,[v(I,{size:"small",onClick:ga},{default:S(()=>t[270]||(t[270]=[M("取消")])),_:1}),v(I,{size:"small",type:"primary",onClick:ha},{default:S(()=>t[271]||(t[271]=[M("保存")])),_:1})])])):(N(),W("div",lf,[s("p",sf,se(ft.beforeStartText),1),v(I,{type:"text",class:"edit-desc-btn",onClick:ma},{default:S(()=>[v(Z,null,{default:S(()=>[v(be(ut))]),_:1})]),_:1})]))])]),s("div",cf,[s("div",ff,[t[275]||(t[275]=s("span",{class:"setting-name"},"开始后提醒",-1)),Zn.value?(N(),W("div",mf,[v(G,{modelValue:En.value,"onUpdate:modelValue":t[75]||(t[75]=m=>En.value=m),type:"textarea",rows:"2",placeholder:"请输入开始后提醒内容",maxlength:"100","show-word-limit":""},null,8,["modelValue"]),s("div",gf,[v(I,{size:"small",onClick:ba},{default:S(()=>t[273]||(t[273]=[M("取消")])),_:1}),v(I,{size:"small",type:"primary",onClick:Sa},{default:S(()=>t[274]||(t[274]=[M("保存")])),_:1})])])):(N(),W("div",vf,[s("p",pf,se(ft.afterStartText),1),v(I,{type:"text",class:"edit-desc-btn",onClick:ya},{default:S(()=>[v(Z,null,{default:S(()=>[v(be(ut))]),_:1})]),_:1})]))])]),s("div",hf,[s("div",yf,[t[278]||(t[278]=s("span",{class:"setting-name"},"结束语",-1)),qn.value?(N(),W("div",Ef,[v(G,{modelValue:xn.value,"onUpdate:modelValue":t[76]||(t[76]=m=>xn.value=m),type:"textarea",rows:"2",placeholder:"请输入免责声明内容",maxlength:"200","show-word-limit":""},null,8,["modelValue"]),s("div",xf,[v(I,{size:"small",onClick:xa},{default:S(()=>t[276]||(t[276]=[M("取消")])),_:1}),v(I,{size:"small",type:"primary",onClick:Ia},{default:S(()=>t[277]||(t[277]=[M("保存")])),_:1})])])):(N(),W("div",bf,[s("p",Sf,se(ft.disclaimerText),1),v(I,{type:"text",class:"edit-desc-btn",onClick:Ea},{default:S(()=>[v(Z,null,{default:S(()=>[v(be(ut))]),_:1})]),_:1})]))])])])])]),_:1},8,["modelValue"]),v(Nt,{title:"选择题目",modelValue:c.value,"onUpdate:modelValue":t[82]||(t[82]=m=>c.value=m),width:"70%","close-on-click-modal":!1,class:"question-select-dialog"},{footer:S(()=>[s("span",Df,[v(I,{onClick:Ei},{default:S(()=>t[283]||(t[283]=[M("取消")])),_:1}),v(I,{type:"primary",onClick:g,style:{"background-color":"#ed7d31","border-color":"#ed7d31"}},{default:S(()=>t[284]||(t[284]=[M("确定")])),_:1})])]),default:S(()=>[s("div",Cf,[s("div",Af,[s("div",wf,[v(G,{modelValue:on.value,"onUpdate:modelValue":t[78]||(t[78]=m=>on.value=m),placeholder:"请输入关键词搜索题目",clearable:"",onClear:$t,onKeyup:Di($t,["enter"]),style:{width:"300px","margin-right":"10px"}},{append:S(()=>[v(I,{onClick:$t},{default:S(()=>[v(Z,null,{default:S(()=>[v(be(Vi))]),_:1})]),_:1})]),_:1},8,["modelValue"]),v(xe,{modelValue:ot.question_form,"onUpdate:modelValue":t[79]||(t[79]=m=>ot.question_form=m),placeholder:"题目类型",clearable:"",onChange:$t,style:{width:"120px"}},{default:S(()=>[v(le,{label:"开放问题",value:0}),v(le,{label:"单选题",value:1}),v(le,{label:"多选题",value:2}),v(le,{label:"看图选答案",value:3}),v(le,{label:"得分题",value:4}),v(le,{label:"追加型开放问题",value:5}),v(le,{label:"填空题",value:6})]),_:1},8,["modelValue"])])]),s("div",Of,[v(Ai,{data:_e.value,style:{width:"100%"},onSelectionChange:Si},{default:S(()=>[v(On,{type:"selection",width:"55"}),v(On,{prop:"question",label:"题目标题"}),v(On,{prop:"question_form_name",label:"题目类型",width:"100"})]),_:1},8,["data"]),s("div",Tf,[v(wi,{"current-page":_e.value.page,"onUpdate:currentPage":t[80]||(t[80]=m=>_e.value.page=m),"page-size":_e.value.pageSize,"onUpdate:pageSize":t[81]||(t[81]=m=>_e.value.pageSize=m),total:Yn.value,"page-sizes":[10,20,50,100],layout:"total, sizes, prev, pager, next",onSizeChange:p,onCurrentChange:f},null,8,["current-page","page-size","total"])])])])]),_:1},8,["modelValue"])])}}}),Bf=Ga(Pf,[["__scopeId","data-v-bd22be6c"]]);export{Bf as default};