sctj-components 1.0.9 → 1.0.10
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +4 -4
- package/lib/sctj-components.es.js +140 -39
- package/lib/sctj-components.umd.js +1 -1
- package/lib/style.css +1 -1
- package/package.json +2 -1
- package/lib/chunks/404-8b5347fb.js +0 -4
- package/lib/chunks/bug-29d5a8c8.js +0 -4
- package/lib/chunks/build-0e8711f7.js +0 -4
- package/lib/chunks/button-abec46ef.js +0 -4
- package/lib/chunks/cascader-328523ba.js +0 -4
- package/lib/chunks/chart-04ef8147.js +0 -4
- package/lib/chunks/checkbox-1238324c.js +0 -4
- package/lib/chunks/clipboard-625a991f.js +0 -4
- package/lib/chunks/code-2f6398b5.js +0 -4
- package/lib/chunks/color-13488c06.js +0 -4
- package/lib/chunks/component-495e49d4.js +0 -4
- package/lib/chunks/dashboard-3a81480c.js +0 -4
- package/lib/chunks/date-c2ef6759.js +0 -4
- package/lib/chunks/date-range-551e4fd6.js +0 -4
- package/lib/chunks/dict-5539087c.js +0 -4
- package/lib/chunks/documentation-8d81c185.js +0 -4
- package/lib/chunks/download-11fa6102.js +0 -4
- package/lib/chunks/drag-2fbf0e89.js +0 -4
- package/lib/chunks/druid-57209587.js +0 -4
- package/lib/chunks/edit-9e3738f0.js +0 -4
- package/lib/chunks/education-7fb0e453.js +0 -4
- package/lib/chunks/email-7477951a.js +0 -4
- package/lib/chunks/example-b8091a8b.js +0 -4
- package/lib/chunks/excel-9e8720a6.js +0 -4
- package/lib/chunks/exit-fullscreen-fe7ec08b.js +0 -4
- package/lib/chunks/eye-1a093b92.js +0 -4
- package/lib/chunks/eye-open-312c146f.js +0 -4
- package/lib/chunks/form-54837ed4.js +0 -4
- package/lib/chunks/fullscreen-552cc3b4.js +0 -4
- package/lib/chunks/github-0539cc3d.js +0 -4
- package/lib/chunks/guide-407e9748.js +0 -4
- package/lib/chunks/icon-83dfff61.js +0 -4
- package/lib/chunks/input-de62ab83.js +0 -4
- package/lib/chunks/international-7bb87f29.js +0 -4
- package/lib/chunks/job-e78e9a3d.js +0 -4
- package/lib/chunks/language-8b7629d9.js +0 -4
- package/lib/chunks/link-f264a825.js +0 -4
- package/lib/chunks/list-2e431778.js +0 -4
- package/lib/chunks/lock-5e8f10d7.js +0 -4
- package/lib/chunks/log-80bfb029.js +0 -4
- package/lib/chunks/logininfor-47a5f04e.js +0 -4
- package/lib/chunks/message-06f1d593.js +0 -4
- package/lib/chunks/money-14039a58.js +0 -4
- package/lib/chunks/monitor-b020306f.js +0 -4
- package/lib/chunks/nested-13647a6a.js +0 -4
- package/lib/chunks/number-290265fd.js +0 -4
- package/lib/chunks/online-64589b70.js +0 -4
- package/lib/chunks/password-1192ad67.js +0 -4
- package/lib/chunks/pdf-8176f032.js +0 -4
- package/lib/chunks/people-6e6b61b6.js +0 -4
- package/lib/chunks/peoples-35c96c5c.js +0 -4
- package/lib/chunks/phone-6bc01ca6.js +0 -4
- package/lib/chunks/post-0d01cf1a.js +0 -4
- package/lib/chunks/qq-df2843d2.js +0 -4
- package/lib/chunks/question-c1e9a4e7.js +0 -4
- package/lib/chunks/radio-5c66d676.js +0 -4
- package/lib/chunks/rate-eb858d5b.js +0 -4
- package/lib/chunks/redis-788c8d4f.js +0 -4
- package/lib/chunks/redis-list-6792700e.js +0 -4
- package/lib/chunks/row-d431ba9c.js +0 -4
- package/lib/chunks/search-990fe622.js +0 -4
- package/lib/chunks/select-1d794732.js +0 -4
- package/lib/chunks/server-b0c98c01.js +0 -4
- package/lib/chunks/shopping-2a187e37.js +0 -4
- package/lib/chunks/size-e3f93f23.js +0 -4
- package/lib/chunks/skill-abe26c0c.js +0 -4
- package/lib/chunks/slider-cb3330ba.js +0 -4
- package/lib/chunks/star-5182766b.js +0 -4
- package/lib/chunks/swagger-266c9f25.js +0 -4
- package/lib/chunks/switch-74aa5d5b.js +0 -4
- package/lib/chunks/system-943da249.js +0 -4
- package/lib/chunks/tab-9202c247.js +0 -4
- package/lib/chunks/table-2d14e126.js +0 -4
- package/lib/chunks/textarea-4d9d0b2c.js +0 -4
- package/lib/chunks/theme-7bbe2d45.js +0 -4
- package/lib/chunks/time-f08907ac.js +0 -4
- package/lib/chunks/time-range-e7b40483.js +0 -4
- package/lib/chunks/tool-6f22c373.js +0 -4
- package/lib/chunks/tree-0118a113.js +0 -4
- package/lib/chunks/tree-table-54984188.js +0 -4
- package/lib/chunks/upload-e852b478.js +0 -4
- package/lib/chunks/user-82704b02.js +0 -4
- package/lib/chunks/validCode-ba29b5b3.js +0 -4
- package/lib/chunks/wechat-22f119d5.js +0 -4
- package/lib/chunks/zip-c3a63b61.js +0 -4
|
@@ -1 +1 @@
|
|
|
1
|
-
!function(e,t){"object"==typeof exports&&"undefined"!=typeof module?t(exports,require("vue"),require("@vue-office/pdf"),require("@vue-office/docx"),require("@vue-office/excel"),require("@element-plus/icons-vue"),require("element-plus"),require("echarts"),require("lodash"),require("flv.js"),require("dayjs"),require("ezuikit-js"),require("axios"),require("@amap/amap-jsapi-loader")):"function"==typeof define&&define.amd?define(["exports","vue","@vue-office/pdf","@vue-office/docx","@vue-office/excel","@element-plus/icons-vue","element-plus","echarts","lodash","flv.js","dayjs","ezuikit-js","axios","@amap/amap-jsapi-loader"],t):t((e="undefined"!=typeof globalThis?globalThis:e||self).SctjComponents={},e.Vue,e.VueOfficePdf,e.VueOfficeDocx,e.VueOfficeExcel,e.ElementPlusIconsVue,e.ElementPlus,e.echarts,e._,e.flvjs,e.dayjs,e.EZUIKit,e.axios,e.AMapLoader)}(this,function(e,t,i,r,n,o,a,s,M,u,c,l,N,g){"use strict";const d=e=>e&&"object"==typeof e&&"default"in e?e:{default:e};function T(e){if(e&&e.__esModule)return e;const t=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(e)for(const i in e)if("default"!==i){const r=Object.getOwnPropertyDescriptor(e,i);Object.defineProperty(t,i,r.get?r:{enumerable:!0,get:()=>e[i]})}return t.default=e,Object.freeze(t)}const j=d(i),y=d(r),D=d(n),I=T(s),p=d(u),L=d(c),z=d(l),h=d(N),A=d(g),C=(e,t)=>{const i=e.__vccOpts||e;for(const[r,n]of t)i[r]=n;return i},S={class:"dict-tag-container"},f=["index"],m=C({__name:"index",props:{options:{type:Array,default:null},value:[Number,String,Array]},setup(e){const i=e,r=t.computed(()=>null!==i.value&&void 0!==i.value?Array.isArray(i.value)?i.value:[String(i.value)]:[]);return(i,n)=>{const o=t.resolveComponent("el-tag");return t.openBlock(),t.createElementBlock("div",S,[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(e.options,(e,i)=>(t.openBlock(),t.createElementBlock(t.Fragment,null,[t.unref(r).includes(e.value)?(t.openBlock(),t.createElementBlock(t.Fragment,{key:0},["default"==e.elTagType||""==e.elTagType?(t.openBlock(),t.createElementBlock("span",{key:e.value,index:i,class:t.normalizeClass(e.elTagClass)},t.toDisplayString(e.label),11,f)):(t.openBlock(),t.createBlock(o,{"disable-transitions":!0,key:e.value+"",index:i,type:"primary"===e.elTagType?"":e.elTagType,class:t.normalizeClass(e.elTagClass)},{default:t.withCtx(()=>[t.createTextVNode(t.toDisplayString(e.label),1)]),_:2},1032,["index","type","class"]))],64)):t.createCommentVNode("",!0)],64))),256))])}}},[["__scopeId","data-v-9371585e"]]),v={class:"el-tree-select"},E=C({__name:"index",props:{objMap:{type:Object,default:()=>({value:"id",label:"label",children:"children"})},accordion:{type:Boolean,default:()=>!1},value:{type:[String,Number],default:""},options:{type:Array,default:()=>[]},placeholder:{type:String,default:""}},emits:["update:value"],setup(e,{emit:i}){const r=e,{proxy:n}=getCurrentInstance(),o=computed({get:()=>r.value,set:e=>{i("update:value",e)}}),a=ref(""),s=ref([]);function M(){nextTick(()=>{const e=o.value;if(null!=e){const t=n.$refs.selectTree.getNode(e);t&&(a.value=t.data[r.objMap.label],n.$refs.selectTree.setCurrentKey(e),s.value=[e])}else N()})}function u(e){a.value=e[r.objMap.label],o.value=e[r.objMap.value],s.value=[],n.$refs.treeSelect.blur(),c("")}function c(e){n.$refs.selectTree.filter(e)}function l(e,t){return!e||-1!==t[r.objMap.label].indexOf(e)}function N(){a.value="",o.value="",s.value=[],document.querySelectorAll("#tree-option .el-tree-node").forEach(e=>e.classList.remove("is-current"))}return onMounted(()=>{M()}),watch(o,()=>{M()}),(i,r)=>{const n=t.resolveComponent("el-tree"),M=t.resolveComponent("el-option"),g=t.resolveComponent("el-select");return t.openBlock(),t.createElementBlock("div",v,[t.createVNode(g,{style:{width:"100%"},modelValue:t.unref(o),"onUpdate:modelValue":r[0]||(r[0]=e=>t.isRef(o)?o.value=e:null),ref:"treeSelect",filterable:!0,clearable:!0,onClear:N,"filter-method":c,placeholder:e.placeholder},{default:t.withCtx(()=>[t.createVNode(M,{value:t.unref(o),label:t.unref(a)},{default:t.withCtx(()=>[t.createVNode(n,{id:"tree-option",ref:"selectTree",accordion:e.accordion,data:e.options,props:e.objMap,"node-key":e.objMap.value,"expand-on-click-node":!1,"default-expanded-keys":t.unref(s),"filter-node-method":l,onNodeClick:u},null,8,["accordion","data","props","node-key","default-expanded-keys"])]),_:1},8,["value","label"])]),_:1},8,["modelValue","placeholder"])])}}},[["__scopeId","data-v-03df4f36"]]),O=t.defineComponent({props:{iconClass:{type:[String,null],required:!0},className:{type:String,default:""},color:{type:String,default:""}},setup:e=>({iconName:computed(()=>`#icon-${e.iconClass}`),svgClass:computed(()=>e.className?`svg-icon ${e.className}`:"svg-icon")})}),x=["xlink:href","fill"];const w=C(O,[["render",function(e,i,r,n,o,a){return t.openBlock(),t.createElementBlock("svg",{class:t.normalizeClass(e.svgClass),"aria-hidden":"true"},[t.createElementVNode("use",{"xlink:href":e.iconName,fill:e.color},null,8,x)],2)}]]),k={class:"upload-file"},b={class:"el-upload__tip"},Y={style:{color:"#f56c6c"}},U={style:{color:"#f56c6c"}},Q=["title"],R={class:"ele-upload-list__item-content-action"},_={style:{width:"100%",height:"100%",overflow:"auto"}},P=C({__name:"index",props:{modelValue:[String,Object,Array],limit:{type:Number,default:5},fileSize:{type:Number,default:10},fileType:{type:Array,default:()=>["docx","xlsx","doc","xls","ppt","txt","pdf","png","jpg","jpeg","pptx","zip"]},isShowTip:{type:Boolean,default:!0},showFiles:{type:Boolean,default:!0},disabled:{type:Boolean,default:!1},uploadFileUrl:{type:String,default:""},headers:{type:Object,default:()=>({})},httpRequest:{type:Function,default:void 0},baseUrl:{type:String,default:""},responseConfig:{type:Object,default:()=>({code:"code",fileName:"fileName",fileUrl:"url",msg:"msg"})},successCode:{type:Number,default:200}},emits:["update:modelValue","delete","success"],setup(e,{emit:i}){const r=e,n=(e,t="")=>e?/^(https?:|mailto:|tel:)/.test(e)?e:t?t+e:e:e,s=t.ref(0),M=t.ref([]),u=t.ref([]),c=t.ref(!1),l=t.ref(""),N=t.ref(""),g=t.ref(null),d=t.ref(null),T=t.computed(()=>r.isShowTip&&(r.fileType||r.fileSize));t.watch(()=>r.modelValue,e=>{if(e){let t=1;const i=Array.isArray(e)?e:r.modelValue.split(",");u.value=i.map(e=>("string"==typeof e&&(e={name:n(e,r.baseUrl),url:n(e,r.baseUrl)}),e.uid=e.uid||(new Date).getTime()+t++,e))}else u.value=[]},{deep:!0,immediate:!0});const I=async e=>{if(r.fileType&&r.fileType.length){const t=e.name.split("."),i=t[t.length-1];if(!(r.fileType.indexOf(i)>=0))return a.ElMessage.error(`文件格式不正确, 请上传${r.fileType.join("/")}格式文件!`),!1}if(r.fileSize){if(!(e.size/1024/1024<r.fileSize))return a.ElMessage.error(`上传文件大小不能超过 ${r.fileSize} MB!`),!1}return g.value=a.ElLoading.service({text:"正在上传文件,请稍候..."}),s.value++,!0},p=()=>{a.ElMessage.error(`上传文件数量不能超过 ${r.limit} 个!`)},L=e=>{a.ElMessage.error("上传文件失败,请重试"),g.value&&g.value.close()},z=(e,t)=>{e[r.responseConfig.code]===r.successCode?(i("success",e),M.value.push({name:e[r.responseConfig.fileName],url:e[r.responseConfig.fileUrl]}),h()):(s.value--,g.value&&g.value.close(),a.ElMessage.error(e[r.responseConfig.msg]),d.value.handleRemove(t),h())},h=()=>{s.value>0&&M.value.length===s.value&&(u.value=u.value.concat(M.value),M.value=[],s.value=0,i("update:modelValue",C(u.value)),g.value&&g.value.close())},A=e=>e.lastIndexOf("/")>-1?decodeURIComponent(e.slice(e.lastIndexOf("/")+1)):e,C=(e,t=",")=>e.length?e.map(e=>e.url).join(t):"",S=()=>{c.value=!1,l.value="",N.value=""};return(r,n)=>{const s=t.resolveComponent("el-button"),M=t.resolveComponent("el-upload"),g=t.resolveComponent("el-icon"),h=t.resolveComponent("el-image"),f=t.resolveComponent("el-dialog");return t.openBlock(),t.createElementBlock("div",k,[e.disabled?t.createCommentVNode("",!0):(t.openBlock(),t.createBlock(M,t.mergeProps({key:0,multiple:"",action:e.uploadFileUrl,"http-request":e.httpRequest,"before-upload":I,"file-list":u.value,limit:e.limit,"on-error":L,"on-exceed":p,"on-success":z,"show-file-list":!1,headers:e.headers,class:"upload-file-uploader",ref_key:"fileUpload",ref:d},r.$attrs),t.createSlots({default:t.withCtx(()=>[t.renderSlot(r.$slots,"button",{},()=>[t.createVNode(s,{size:"small",type:"primary"},{default:t.withCtx(()=>[t.createTextVNode("选取文件")]),_:1})],!0)]),_:2},[t.unref(T)?{name:"tip",fn:t.withCtx(()=>[t.createElementVNode("div",b,[t.createTextVNode(" 请上传 "),e.fileSize?(t.openBlock(),t.createElementBlock(t.Fragment,{key:0},[t.createTextVNode(" 大小不超过 "),t.createElementVNode("b",Y,t.toDisplayString(e.fileSize)+"MB",1)],64)):t.createCommentVNode("",!0),e.fileType?(t.openBlock(),t.createElementBlock(t.Fragment,{key:1},[t.createTextVNode(" 格式为 "),t.createElementVNode("b",U,t.toDisplayString(e.fileType.join("/")),1)],64)):t.createCommentVNode("",!0),t.createTextVNode(" 的文件 ")])]),key:"0"}:void 0]),1040,["action","http-request","file-list","limit","headers"])),e.showFiles?(t.openBlock(),t.createBlock(t.TransitionGroup,{key:1,class:"upload-file-list el-upload-list el-upload-list--text",name:"el-fade-in-linear",tag:"ul"},{default:t.withCtx(()=>[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(u.value,(r,n)=>(t.openBlock(),t.createElementBlock("li",{key:r.url,class:"el-upload-list__item ele-upload-list__item-content"},[t.createElementVNode("div",{title:A(r.name),class:"ele-upload-list__item-content-name"},t.toDisplayString(A(r.name)),9,Q),t.createElementVNode("div",R,[t.createVNode(g,{title:"预览",class:"el-icon-view-icon",onClick:e=>(e=>{const t=A(e.name).split(".").pop().toLowerCase();switch(t){case"pdf":N.value="pdf";break;case"docx":N.value="docx";break;case"xlsx":N.value="xlsx";break;case"jpg":case"jpeg":case"png":case"gif":N.value="image";break;default:return void a.ElMessage.error(`暂不支持${t}文件类型的在线预览,请下载后查看!`)}l.value=e.url,c.value=!0})(r)},{default:t.withCtx(()=>[t.createVNode(t.unref(o.View))]),_:2},1032,["onClick"]),t.createVNode(g,{title:"下载",class:"el-icon-download-icon",onClick:e=>(e=>{try{const t=A(e.name),i=t.split(".").pop().toLowerCase(),r=document.createElement("a");r.style.display="none",r.target="pdf"===i?"_blank":"_self",r.href=e.url,r.download=t,document.body.appendChild(r),r.click(),document.body.removeChild(r),a.ElMessage.success("文件下载成功")}catch(Tn){a.ElMessage.error("文件下载失败,请重试")}})(r)},{default:t.withCtx(()=>[t.createVNode(t.unref(o.Download))]),_:2},1032,["onClick"]),e.disabled?t.createCommentVNode("",!0):(t.openBlock(),t.createBlock(g,{key:0,title:"删除",class:"el-icon-delete-icon",onClick:e=>(e=>{i("delete",u.value.find((t,i)=>i===e)),u.value.splice(e,1),i("update:modelValue",C(u.value))})(n)},{default:t.withCtx(()=>[t.createVNode(t.unref(o.Delete))]),_:2},1032,["onClick"]))])]))),128))]),_:1})):t.createCommentVNode("",!0),t.createVNode(f,{modelValue:c.value,"onUpdate:modelValue":n[0]||(n[0]=e=>c.value=e),"append-to-body":"",class:"previewDialog",title:"文件预览",fullscreen:"","before-close":S},{default:t.withCtx(()=>[t.createElementVNode("div",_,["pdf"===N.value?(t.openBlock(),t.createBlock(t.unref(j.default),{key:0,src:l.value},null,8,["src"])):t.createCommentVNode("",!0),"docx"===N.value?(t.openBlock(),t.createBlock(t.unref(y.default),{key:1,src:l.value},null,8,["src"])):t.createCommentVNode("",!0),"xlsx"===N.value?(t.openBlock(),t.createBlock(t.unref(D.default),{key:2,src:l.value},null,8,["src"])):t.createCommentVNode("",!0),"image"===N.value?(t.openBlock(),t.createBlock(h,{key:3,src:l.value,style:{width:"100%",height:"99%"},fit:"contain"},null,8,["src"])):t.createCommentVNode("",!0)])]),_:1},8,["modelValue"])])}}},[["__scopeId","data-v-f55d9716"]]),B={class:"component-upload-image"},H={key:0,class:"el-upload__tip"},V={style:{color:"#f56c6c"}},W={style:{color:"#f56c6c"}},G=["src"],F=C({__name:"index",props:{modelValue:{type:[String,Object,Array],default:()=>[]},limit:{type:Number,default:5},fileSize:{type:Number,default:5},fileType:{type:Array,default:()=>["png","jpg","jpeg"]},isShowTip:{type:Boolean,default:!0},disabled:{type:Boolean,default:!1},width:{type:[Number,String],default:100},height:{type:[Number,String],default:100},uploadImgUrl:{type:String,default:""},headers:{type:Object,default:()=>({})},httpRequest:{type:Function,default:void 0},responseConfig:{type:Object,default:()=>({code:"code",fileName:"fileName",fileUrl:"url",msg:"msg"})},baseUrl:{type:String,default:""},successCode:{type:Number,default:200}},emits:["update:modelValue","delete","success"],setup(e,{emit:i}){const r=e,n=(e,t="")=>e?/^(https?:|mailto:|tel:)/.test(e)?e:t?t+e:e:e,s=t.ref(0),M=t.ref([]),u=t.ref(""),c=t.ref(!1),l=t.ref([]),N=t.ref(null),g=t.ref(null),d=t.computed(()=>(null==r?void 0:r.isShowTip)&&((null==r?void 0:r.fileType)||(null==r?void 0:r.fileSize))),T=t.computed(()=>"number"==typeof(null==r?void 0:r.width)?`${r.width}px`:r.width),j=t.computed(()=>"number"==typeof(null==r?void 0:r.height)?`${r.height}px`:r.height),y=t.computed(()=>"number"==typeof(null==r?void 0:r.height)?`${r.height}px`:r.height);t.watch(()=>r.modelValue,e=>{if(e){const t=Array.isArray(e)?e:r.modelValue.split(",");l.value=t.map(e=>("string"==typeof e&&(e={name:n(e,r.baseUrl),url:n(e,r.baseUrl)}),e))}else l.value=[]},{deep:!0,immediate:!0});const D=()=>{t.nextTick(()=>{var e;const t=null==(e=N.value)?void 0:e.$el;if(!t)return;t.querySelectorAll(".el-upload--picture-card").forEach(e=>{e.style.width=T.value,e.style.height=j.value,e.style.lineHeight=y.value});t.querySelectorAll(".el-upload-list__item").forEach(e=>{e.style.width=T.value,e.style.height=j.value})})},I=async e=>{let t=!1;if(r.fileType&&r.fileType.length){let i="";e.name&&e.name.lastIndexOf(".")>-1&&(i=e.name.slice(e.name.lastIndexOf(".")+1)),t=r.fileType.some(t=>!!(e.type&&e.type.indexOf(t)>-1)||!!(i&&i.indexOf(t)>-1))}else t=e.type&&e.type.indexOf("image")>-1;if(!t)return a.ElMessage.error(`文件格式不正确, 请上传${r.fileType.join("/")}图片格式文件!`),!1;if(r.fileSize){if(!(e.size/1024/1024<r.fileSize))return a.ElMessage.error(`上传头像图片大小不能超过 ${r.fileSize} MB!`),!1}return g.value=a.ElLoading.service({text:"正在上传图片,请稍候..."}),s.value++,!0},p=()=>{a.ElMessage.error(`上传图片数量不能超过 ${r.limit} 个!`)},L=(e,t)=>{e[r.responseConfig.code]===r.successCode?(i("success",e),M.value.push({name:e[r.responseConfig.fileName],url:e[r.responseConfig.fileUrl]}),A()):(s.value--,g.value&&g.value.close(),a.ElMessage.error(e[r.responseConfig.msg]),fileUpload.value.handleRemove(t),A())},z=e=>{i("delete",e),i("update:modelValue",S(l.value))},h=()=>{a.ElMessage.error("上传图片失败,请重试"),g.value&&g.value.close()},A=()=>{s.value>0&&M.value.length===s.value&&(l.value=l.value.concat(M.value),M.value=[],s.value=0,i("update:modelValue",S(l.value)),g.value&&g.value.close())},C=e=>{u.value=e.url,c.value=!0},S=(e,t=",")=>e.length?e.map(e=>e.url).join(t):"";return t.onMounted(()=>{D()}),t.onUpdated(()=>{D()}),(i,n)=>{const a=t.resolveComponent("el-icon"),s=t.resolveComponent("el-upload"),M=t.resolveComponent("el-dialog");return t.openBlock(),t.createElementBlock("div",B,[t.createVNode(s,{disabled:r.disabled,multiple:"",action:e.uploadImgUrl,"list-type":"picture-card","on-success":L,"before-upload":I,limit:r.limit,"on-error":h,"on-exceed":p,ref_key:"imageUpload",ref:N,"http-request":e.httpRequest,"on-remove":z,"show-file-list":!0,headers:e.headers,"file-list":l.value,"on-preview":C,class:t.normalizeClass({hide:l.value.length>=r.limit})},{default:t.withCtx(()=>[t.createVNode(a,null,{default:t.withCtx(()=>[t.createVNode(t.unref(o.Plus))]),_:1})]),_:1},8,["disabled","action","limit","http-request","headers","file-list","class"]),t.unref(d)?(t.openBlock(),t.createElementBlock("div",H,[t.createTextVNode(" 请上传 "),r.fileSize?(t.openBlock(),t.createElementBlock(t.Fragment,{key:0},[t.createTextVNode(" 大小不超过 "),t.createElementVNode("b",V,t.toDisplayString(r.fileSize)+"MB",1)],64)):t.createCommentVNode("",!0),r.fileType?(t.openBlock(),t.createElementBlock(t.Fragment,{key:1},[t.createTextVNode(" 格式为 "),t.createElementVNode("b",W,t.toDisplayString(r.fileType.join("/")),1)],64)):t.createCommentVNode("",!0),t.createTextVNode(" 的文件 ")])):t.createCommentVNode("",!0),t.createVNode(M,{modelValue:c.value,"onUpdate:modelValue":n[0]||(n[0]=e=>c.value=e),title:"预览",width:"800","append-to-body":""},{default:t.withCtx(()=>[t.createElementVNode("img",{src:u.value,style:{display:"block","max-width":"100%",margin:"0 auto"}},null,8,G)]),_:1},8,["modelValue"])])}}},[["__scopeId","data-v-ddc0faf6"]]),Z={class:"image-slot"},J=C({__name:"index",props:{enableDelete:{type:Boolean,default:!1},value:{type:String,default:""},src:{type:String,default:""},width:{type:[Number,String],default:"50px"},height:{type:[Number,String],default:"50px"},baseUrl:{type:String,default:""}},emits:["input","update:modelValue"],setup(e,{emit:i}){const r=e,n=(e,t="")=>e?/^(https?:|mailto:|tel:)/.test(e)?e:t?t+e:e:e,a=t.ref(null),s=t.computed(()=>{const e=r.value||r.src;if(!e)return;let t=e.split(",")[0];return n(t,r.baseUrl)}),M=t.computed(()=>{const e=r.value||r.src;if(!e)return[];let t=e.split(","),i=[];return t.forEach(e=>i.push(n(e,r.baseUrl))),i}),u=t.computed(()=>"string"==typeof r.width?r.width:`${r.width}px`),c=t.computed(()=>"string"==typeof r.height?r.height:`${r.height}px`),l=()=>{r.enableDelete&&t.nextTick(()=>{let e=document.getElementsByClassName("el-image-viewer__actions__inner"),t=document.createElement("i");t.setAttribute("class","el-icon-delete"),t.addEventListener("click",N),e[0].appendChild(t),e.length>0&&(a.value=e[0])})},N=()=>{const e=[...M.value];e.splice(M.value.indexOf(s.value),1),0===e.length&&document.querySelector(".el-image-viewer__close").click(),i("input",e.join(",")),i("update:modelValue",e.join(","))};return(e,i)=>{const r=t.resolveComponent("el-icon"),n=t.resolveComponent("el-image"),a=t.resolveComponent("el-badge");return t.openBlock(),t.createBlock(a,{hidden:t.unref(M).length<=1,value:t.unref(M).length,class:"item",type:"primary"},{default:t.withCtx(()=>[t.createVNode(n,{"preview-teleported":"",onClick:t.withModifiers(l,["stop","prevent"]),src:`${t.unref(s)}`,fit:"cover",style:t.normalizeStyle(`width:${t.unref(u)};height:${t.unref(c)};`),"preview-src-list":t.unref(M)},{error:t.withCtx(()=>[t.createElementVNode("div",Z,[t.createVNode(r,{class:"el-icon-picture-outline"},{default:t.withCtx(()=>[t.createVNode(t.unref(o.Picture))]),_:1})])]),_:1},8,["onClick","src","style","preview-src-list"])]),_:1},8,["hidden","value"])}}},[["__scopeId","data-v-bebc33d5"]]);let q=[];const K=Object.assign({"../../assets/icons/svg/404.svg":()=>Promise.resolve().then(()=>Ui),"../../assets/icons/svg/bug.svg":()=>Promise.resolve().then(()=>Qi),"../../assets/icons/svg/build.svg":()=>Promise.resolve().then(()=>Ri),"../../assets/icons/svg/button.svg":()=>Promise.resolve().then(()=>_i),"../../assets/icons/svg/cascader.svg":()=>Promise.resolve().then(()=>Pi),"../../assets/icons/svg/chart.svg":()=>Promise.resolve().then(()=>Bi),"../../assets/icons/svg/checkbox.svg":()=>Promise.resolve().then(()=>Hi),"../../assets/icons/svg/clipboard.svg":()=>Promise.resolve().then(()=>Vi),"../../assets/icons/svg/code.svg":()=>Promise.resolve().then(()=>Wi),"../../assets/icons/svg/color.svg":()=>Promise.resolve().then(()=>Gi),"../../assets/icons/svg/component.svg":()=>Promise.resolve().then(()=>Fi),"../../assets/icons/svg/dashboard.svg":()=>Promise.resolve().then(()=>Zi),"../../assets/icons/svg/date-range.svg":()=>Promise.resolve().then(()=>Ji),"../../assets/icons/svg/date.svg":()=>Promise.resolve().then(()=>qi),"../../assets/icons/svg/dict.svg":()=>Promise.resolve().then(()=>Ki),"../../assets/icons/svg/documentation.svg":()=>Promise.resolve().then(()=>$i),"../../assets/icons/svg/download.svg":()=>Promise.resolve().then(()=>Xi),"../../assets/icons/svg/drag.svg":()=>Promise.resolve().then(()=>er),"../../assets/icons/svg/druid.svg":()=>Promise.resolve().then(()=>tr),"../../assets/icons/svg/edit.svg":()=>Promise.resolve().then(()=>ir),"../../assets/icons/svg/education.svg":()=>Promise.resolve().then(()=>rr),"../../assets/icons/svg/email.svg":()=>Promise.resolve().then(()=>nr),"../../assets/icons/svg/example.svg":()=>Promise.resolve().then(()=>or),"../../assets/icons/svg/excel.svg":()=>Promise.resolve().then(()=>ar),"../../assets/icons/svg/exit-fullscreen.svg":()=>Promise.resolve().then(()=>sr),"../../assets/icons/svg/eye-open.svg":()=>Promise.resolve().then(()=>Mr),"../../assets/icons/svg/eye.svg":()=>Promise.resolve().then(()=>ur),"../../assets/icons/svg/form.svg":()=>Promise.resolve().then(()=>cr),"../../assets/icons/svg/fullscreen.svg":()=>Promise.resolve().then(()=>lr),"../../assets/icons/svg/github.svg":()=>Promise.resolve().then(()=>Nr),"../../assets/icons/svg/guide.svg":()=>Promise.resolve().then(()=>gr),"../../assets/icons/svg/icon.svg":()=>Promise.resolve().then(()=>dr),"../../assets/icons/svg/input.svg":()=>Promise.resolve().then(()=>Tr),"../../assets/icons/svg/international.svg":()=>Promise.resolve().then(()=>jr),"../../assets/icons/svg/job.svg":()=>Promise.resolve().then(()=>yr),"../../assets/icons/svg/language.svg":()=>Promise.resolve().then(()=>Dr),"../../assets/icons/svg/link.svg":()=>Promise.resolve().then(()=>Ir),"../../assets/icons/svg/list.svg":()=>Promise.resolve().then(()=>pr),"../../assets/icons/svg/lock.svg":()=>Promise.resolve().then(()=>Lr),"../../assets/icons/svg/log.svg":()=>Promise.resolve().then(()=>zr),"../../assets/icons/svg/logininfor.svg":()=>Promise.resolve().then(()=>hr),"../../assets/icons/svg/message.svg":()=>Promise.resolve().then(()=>Ar),"../../assets/icons/svg/money.svg":()=>Promise.resolve().then(()=>Cr),"../../assets/icons/svg/monitor.svg":()=>Promise.resolve().then(()=>Sr),"../../assets/icons/svg/nested.svg":()=>Promise.resolve().then(()=>fr),"../../assets/icons/svg/number.svg":()=>Promise.resolve().then(()=>mr),"../../assets/icons/svg/online.svg":()=>Promise.resolve().then(()=>vr),"../../assets/icons/svg/password.svg":()=>Promise.resolve().then(()=>Er),"../../assets/icons/svg/pdf.svg":()=>Promise.resolve().then(()=>Or),"../../assets/icons/svg/people.svg":()=>Promise.resolve().then(()=>xr),"../../assets/icons/svg/peoples.svg":()=>Promise.resolve().then(()=>wr),"../../assets/icons/svg/phone.svg":()=>Promise.resolve().then(()=>kr),"../../assets/icons/svg/post.svg":()=>Promise.resolve().then(()=>br),"../../assets/icons/svg/qq.svg":()=>Promise.resolve().then(()=>Yr),"../../assets/icons/svg/question.svg":()=>Promise.resolve().then(()=>Ur),"../../assets/icons/svg/radio.svg":()=>Promise.resolve().then(()=>Qr),"../../assets/icons/svg/rate.svg":()=>Promise.resolve().then(()=>Rr),"../../assets/icons/svg/redis-list.svg":()=>Promise.resolve().then(()=>_r),"../../assets/icons/svg/redis.svg":()=>Promise.resolve().then(()=>Pr),"../../assets/icons/svg/row.svg":()=>Promise.resolve().then(()=>Br),"../../assets/icons/svg/search.svg":()=>Promise.resolve().then(()=>Hr),"../../assets/icons/svg/select.svg":()=>Promise.resolve().then(()=>Vr),"../../assets/icons/svg/server.svg":()=>Promise.resolve().then(()=>Wr),"../../assets/icons/svg/shopping.svg":()=>Promise.resolve().then(()=>Gr),"../../assets/icons/svg/size.svg":()=>Promise.resolve().then(()=>Fr),"../../assets/icons/svg/skill.svg":()=>Promise.resolve().then(()=>Zr),"../../assets/icons/svg/slider.svg":()=>Promise.resolve().then(()=>Jr),"../../assets/icons/svg/star.svg":()=>Promise.resolve().then(()=>qr),"../../assets/icons/svg/swagger.svg":()=>Promise.resolve().then(()=>Kr),"../../assets/icons/svg/switch.svg":()=>Promise.resolve().then(()=>$r),"../../assets/icons/svg/system.svg":()=>Promise.resolve().then(()=>Xr),"../../assets/icons/svg/tab.svg":()=>Promise.resolve().then(()=>en),"../../assets/icons/svg/table.svg":()=>Promise.resolve().then(()=>tn),"../../assets/icons/svg/textarea.svg":()=>Promise.resolve().then(()=>rn),"../../assets/icons/svg/theme.svg":()=>Promise.resolve().then(()=>nn),"../../assets/icons/svg/time-range.svg":()=>Promise.resolve().then(()=>on),"../../assets/icons/svg/time.svg":()=>Promise.resolve().then(()=>an),"../../assets/icons/svg/tool.svg":()=>Promise.resolve().then(()=>sn),"../../assets/icons/svg/tree-table.svg":()=>Promise.resolve().then(()=>Mn),"../../assets/icons/svg/tree.svg":()=>Promise.resolve().then(()=>un),"../../assets/icons/svg/upload.svg":()=>Promise.resolve().then(()=>cn),"../../assets/icons/svg/user.svg":()=>Promise.resolve().then(()=>ln),"../../assets/icons/svg/validCode.svg":()=>Promise.resolve().then(()=>Nn),"../../assets/icons/svg/wechat.svg":()=>Promise.resolve().then(()=>gn),"../../assets/icons/svg/zip.svg":()=>Promise.resolve().then(()=>dn)});for(const Dn in K){const e=Dn.split("assets/icons/svg/")[1].split(".svg")[0];q.push(e)}const $={class:"icon-body"},X=(e=>(t.pushScopeId("data-v-1c212d66"),e=e(),t.popScopeId(),e))(()=>t.createElementVNode("i",{class:"el-icon-search el-input__icon"},null,-1)),ee={class:"icon-list"},te=["onClick"],ie=C({__name:"index",emits:["selected"],setup(e,{expose:i,emit:r}){const n=t.ref(""),o=t.ref(q);function a(){o.value=q,n.value&&(o.value=q.filter(e=>-1!==e.indexOf(n.value)))}return i({reset:function(){n.value="",o.value=q}}),(e,i)=>{const s=t.resolveComponent("el-input"),M=t.resolveComponent("svg-icon");return t.openBlock(),t.createElementBlock("div",$,[t.createVNode(s,{modelValue:n.value,"onUpdate:modelValue":i[0]||(i[0]=e=>n.value=e),style:{position:"relative"},clearable:"",placeholder:"请输入图标名称",onClear:a,onInput:a},{suffix:t.withCtx(()=>[X]),_:1},8,["modelValue"]),t.createElementVNode("div",ee,[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(o.value,(e,i)=>(t.openBlock(),t.createElementBlock("div",{key:i,onClick:t=>(r("selected",e),void document.body.click())},[t.createVNode(M,{"icon-class":e,style:{height:"30px",width:"16px"}},null,8,["icon-class"]),t.createElementVNode("span",null,t.toDisplayString(e),1)],8,te))),128))])])}}},[["__scopeId","data-v-1c212d66"]]);function re(){const e=t.ref(!1),i=()=>{const e=navigator.userAgent.toLowerCase(),t=/android|webos|iphone|ipad|ipod|blackberry|iemobile|opera mini/i.test(e),i=window.innerWidth<=768;return t||i},r=()=>{e.value=i()},n=()=>{r()};return t.onBeforeMount(()=>{r(),window.addEventListener("resize",n)}),t.onUnmounted(()=>{window.removeEventListener("resize",n)}),{isMobile:e,checkIsMobile:i}}const ne={key:0,class:"search-container"},oe={key:1,class:"custom-drawer"},ae=C({__name:"index",props:{visible:{type:Boolean,default:!0}},emits:["update:visible"],setup(e,{emit:i}){const{isMobile:r}=re(),n=()=>{i("update:visible",!1)};return(i,o)=>{const a=t.resolveComponent("el-card"),s=t.resolveComponent("el-drawer");return t.unref(r)?(t.openBlock(),t.createElementBlock("div",oe,[t.createVNode(s,{"model-value":e.visible,title:"筛选条件",direction:"ttb",onClose:n},{default:t.withCtx(()=>[t.renderSlot(i.$slots,"default",{},void 0,!0)]),_:3},8,["model-value"])])):t.withDirectives((t.openBlock(),t.createElementBlock("div",ne,[t.createVNode(a,null,{default:t.withCtx(()=>[t.renderSlot(i.$slots,"default",{},void 0,!0)]),_:3})],512)),[[t.vShow,e.visible]])}}},[["__scopeId","data-v-6e30b57f"]]),se={__name:"index",props:{modelValue:{type:Array,default:()=>[]},disabledDate:{type:Function,default:null},valueFormat:{type:String,default:"YYYY-MM-DD"},clearable:{type:Boolean,default:!0}},emits:["update:modelValue","change"],setup(e,{emit:i}){const r=e,{isMobile:n}=re(),o=[{text:"过去7天",value:()=>{const e=new Date,t=new Date(e.getFullYear(),e.getMonth(),e.getDate(),23,59,59);return[new Date(e.getFullYear(),e.getMonth(),e.getDate()-6,0,0,0),t]}},{text:"本周",value:()=>{const e=new Date,t=new Date(e.getFullYear(),e.getMonth(),e.getDate(),23,59,59),i=e.getDay(),r=0===i?6:i-1;return[new Date(e.getFullYear(),e.getMonth(),e.getDate()-r,0,0,0),t]}},{text:"本月",value:()=>{const e=new Date,t=new Date(e.getFullYear(),e.getMonth(),e.getDate(),23,59,59);return[new Date(e.getFullYear(),e.getMonth(),1,0,0,0),t]}},{text:"本年",value:()=>{const e=new Date,t=new Date(e.getFullYear(),e.getMonth(),e.getDate(),23,59,59);return[new Date(e.getFullYear(),0,1,0,0,0),t]}},{text:"去年",value:()=>{const e=(new Date).getFullYear()-1;return[new Date(e,0,1,0,0,0),new Date(e,11,31,23,59,59)]}}],a=t.computed({get:()=>r.modelValue,set(e){i("update:modelValue",e)}}),s=e=>{i("change",e)};return(i,r)=>{const M=t.resolveComponent("el-date-picker");return t.openBlock(),t.createBlock(M,t.mergeProps({size:t.unref(n)?"small":"",clearable:e.clearable,modelValue:t.unref(a),"onUpdate:modelValue":r[0]||(r[0]=e=>t.isRef(a)?a.value=e:null),type:"daterange","value-format":e.valueFormat,"disabled-date":e.disabledDate,"range-separator":"到",shortcuts:o,"start-placeholder":"开始时间","end-placeholder":"结束时间",onChange:s},i.$attrs),null,16,["size","clearable","modelValue","value-format","disabled-date"])}}},Me={class:"table-container"},ue={__name:"index",props:{request:{type:Function,default:()=>{}},rowKey:{type:String,default:""},treeProps:{type:Object,default:()=>({hasChildren:"hasChildren",children:"children"})},responseConfig:{type:Object,default:()=>({total:"total",list:"rows"})},multiple:{type:Boolean,default:!0},showSummary:{type:Boolean,default:!1},summaryMethod:{type:Function},selectable:{type:Function},showSelect:{type:Boolean,default:!0},showIndex:{type:Boolean,default:!0},reserveSelection:{type:Boolean,default:!1},requestParams:{type:Object,default:()=>{}},customIndex:{type:Function},showPagination:{type:Boolean,default:!0},spanMethod:{type:[Function,null],default:null},handleList:{type:[Function,null],default:null},selected:{type:Array,default:()=>[]},isMountedRequest:{type:Boolean,default:!0},height:{type:String,default:"100%"}},emits:["selectionChange","sortChange","requestSuccess","cellEnter","cellLeave"],setup(e,{expose:i,emit:r}){const n=e,{isMobile:o}=re(),a=t.ref([]),s=t.ref([]),M=t.ref(!1),u={total:"total",list:"rows"},c=t.computed(()=>({...u,...n.responseConfig})),l=t.reactive({pageNum:1,pageSize:20}),N=t.ref(0),g=t.ref(null),d=t.ref([]),T=()=>{var e;const t=(null==(e=g.value)?void 0:e.selection)||[];t.forEach(e=>{var t;d.value.some(t=>t[n.rowKey]==e[n.rowKey])||null==(t=g.value)||t.toggleRowSelection(e,!1)}),d.value.forEach(e=>{var i,r;if(!t.some(t=>t[n.rowKey]==e[n.rowKey])){const t=a.value.find(t=>t[n.rowKey]==e[n.rowKey]);t?null==(i=g.value)||i.toggleRowSelection(t,!0):null==(r=g.value)||r.toggleRowSelection(e,!0)}})};t.watch(()=>a.value,()=>{T()}),t.watch(()=>n.selected,(e,t)=>{var i;if(e.length&&n.showSelect){const t=[];e.forEach(e=>{const i=e[n.rowKey];t.some(e=>e[n.rowKey]==i)||t.push(e)}),d.value=t,T()}else!e.length&&n.showSelect&&(null==(i=g.value)||i.clearSelection())},{immediate:!0});const j=e=>{if(n.spanMethod)return n.spanMethod(e,s.value,a.value)},y=(e,t,i,n)=>{r("cellEnter",{row:e,column:t,cell:i,event:n})},D=(e,t,i,n)=>{r("cellLeave",{row:e,column:t,cell:i,event:n})},I=e=>{if(0===e.columnIndex)return"disabledCheck"},p=e=>{var t;let i="";return(null==(t=d.value)?void 0:t.includes(e.row))&&(i="selected-color"),n.multiple||(i+=" selected-radio"),i},L=e=>{var t;if(n.multiple)d.value=e,r("selectionChange",e);else{if(e.length>1){let i=e.shift();null==(t=g.value)||t.toggleRowSelection(i,!1)}d.value=e,r("selectionChange",e)}},z=e=>{r("sortChange",e)},h=async()=>{var e;try{M.value=!0;const t=await n.request({...l,...n.requestParams});s.value=null==t?void 0:t[c.value.list],a.value=n.handleList?n.handleList(null==t?void 0:t[c.value.list]):null==t?void 0:t[c.value.list],r("requestSuccess",a.value,s.value),N.value=null!=(e=null==t?void 0:t[c.value.total])?e:0}catch(Tn){}finally{M.value=!1}};return t.onMounted(()=>{n.isMountedRequest&&h()}),i({refresh:()=>{h()},doLayout:()=>{var e;null==(e=g.value)||e.doLayout()}}),(i,r)=>{const n=t.resolveComponent("el-table-column"),s=t.resolveComponent("el-table"),u=t.resolveComponent("el-pagination"),c=t.resolveDirective("loading");return t.withDirectives((t.openBlock(),t.createElementBlock("div",{class:"TJ-table-container",style:t.normalizeStyle({height:e.height})},[t.createElementVNode("div",Me,[t.createVNode(s,t.mergeProps({ref_key:"tableRef",ref:g,size:t.unref(o)?"small":"default","row-key":e.rowKey,showSummary:e.showSummary,"summary-method":e.summaryMethod,"tree-props":e.treeProps,"span-method":j,onCellMouseEnter:y,onCellMouseLeave:D,data:a.value,border:"",height:"100%","row-class-name":p,"header-cell-class-name":e.multiple?"":I,onSortChange:z,onSelectionChange:L},i.$attrs),{default:t.withCtx(()=>[e.showSelect?(t.openBlock(),t.createBlock(n,{key:0,selectable:e.selectable,fixed:"left","reserve-selection":e.reserveSelection,type:"selection",align:"center",width:"40"},null,8,["selectable","reserve-selection"])):t.createCommentVNode("",!0),e.showIndex?(t.openBlock(),t.createBlock(n,{key:1,index:e.customIndex,fixed:!t.unref(o)&&"left",type:"index",label:"序号",width:"60",align:"center"},null,8,["index","fixed"])):t.createCommentVNode("",!0),t.renderSlot(i.$slots,"default",{},void 0,!0)]),_:3},16,["size","row-key","showSummary","summary-method","tree-props","data","header-cell-class-name"])]),e.showPagination?(t.openBlock(),t.createElementBlock(t.Fragment,{key:0},[t.unref(o)?(t.openBlock(),t.createBlock(u,{key:1,class:"pagination mobile-pagination",background:"",onSizeChange:h,onCurrentChange:h,layout:"total, prev, pager, next",total:N.value,"page-size":l.pageSize,"onUpdate:page-size":r[2]||(r[2]=e=>l.pageSize=e),"current-page":l.pageNum,"onUpdate:current-page":r[3]||(r[3]=e=>l.pageNum=e),"pager-count":5,small:""},null,8,["total","page-size","current-page"])):(t.openBlock(),t.createBlock(u,{key:0,class:"pagination",background:"",onSizeChange:h,onCurrentChange:h,layout:"sizes, total, prev, pager, next, jumper",total:N.value,"page-size":l.pageSize,"onUpdate:page-size":r[0]||(r[0]=e=>l.pageSize=e),"page-sizes":[10,20,30,40,50],"current-page":l.pageNum,"onUpdate:current-page":r[1]||(r[1]=e=>l.pageNum=e)},null,8,["total","page-size","current-page"]))],64)):t.createCommentVNode("",!0)],4)),[[c,M.value]])}}},ce=C(ue,[["__scopeId","data-v-8906f38f"]]),le={class:"table-container"};const Ne=C({},[["render",function(e,i){return t.openBlock(),t.createElementBlock("div",le,[t.renderSlot(e.$slots,"default",{},void 0,!0)])}],["__scopeId","data-v-45fb95db"]]),ge=C({__name:"index",props:{showSearch:{type:Boolean,default:!0},columns:{type:Array},search:{type:Boolean,default:!0},showRefresh:{type:Boolean,default:!0},gutter:{type:Number,default:10}},emits:["update:showSearch","queryTable"],setup(e,{emit:i}){const r=e,n=t.ref([]),o=t.ref("显示/隐藏"),a=t.ref(!1),s=t.computed(()=>{const e={};return r.gutter&&(e.marginRight=r.gutter/2+"px"),e});function M(e){for(let t in r.columns){const i=r.columns[t].key;r.columns[t].visible=!e.includes(i)}}for(let t in r.columns)!1===r.columns[t].visible&&n.value.push(parseInt(t));return(u,c)=>{const l=t.resolveComponent("el-button"),N=t.resolveComponent("el-tooltip"),g=t.resolveComponent("el-row"),d=t.resolveComponent("el-transfer"),T=t.resolveComponent("el-dialog");return t.openBlock(),t.createElementBlock("div",{class:"top-right-btn",style:t.normalizeStyle(t.unref(s))},[t.createVNode(g,null,{default:t.withCtx(()=>[e.search?(t.openBlock(),t.createBlock(N,{key:0,class:"item",effect:"dark",content:e.showSearch?"隐藏搜索":"打开搜索",placement:"top"},{default:t.withCtx(()=>[t.createVNode(l,{circle:"",icon:"Search",onClick:c[0]||(c[0]=e=>{i("update:showSearch",!r.showSearch)})})]),_:1},8,["content"])):t.createCommentVNode("",!0),e.showRefresh?(t.openBlock(),t.createBlock(N,{key:1,class:"item",effect:"dark",content:"刷新",placement:"top"},{default:t.withCtx(()=>[t.createVNode(l,{circle:"",icon:"Refresh",onClick:c[1]||(c[1]=e=>{i("queryTable")})})]),_:1})):t.createCommentVNode("",!0),e.columns?(t.openBlock(),t.createBlock(N,{key:2,class:"item",effect:"dark",content:"显隐列",placement:"top"},{default:t.withCtx(()=>[t.createVNode(l,{circle:"",icon:"Menu",onClick:c[2]||(c[2]=e=>{a.value=!0})})]),_:1})):t.createCommentVNode("",!0)]),_:1}),t.createVNode(T,{title:o.value,modelValue:a.value,"onUpdate:modelValue":c[4]||(c[4]=e=>a.value=e),"append-to-body":""},{default:t.withCtx(()=>[t.createVNode(d,{titles:["显示","隐藏"],modelValue:n.value,"onUpdate:modelValue":c[3]||(c[3]=e=>n.value=e),data:e.columns,onChange:M},null,8,["modelValue","data"])]),_:1},8,["title","modelValue"])],4)}}},[["__scopeId","data-v-0e82f8bf"]]),de={class:"table-top-action-container"},Te=C({__name:"index",props:{showSearch:{type:Boolean,default:!0},showRefresh:{type:Boolean,default:!0}},emits:["update:showSearch","refresh"],setup(e,{emit:i}){const r=e,n=t.computed({get:()=>r.showSearch,set(e){i("update:showSearch",e)}}),o=()=>{i("refresh")};return(i,r)=>(t.openBlock(),t.createElementBlock("div",de,[t.renderSlot(i.$slots,"left",{},void 0,!0),t.renderSlot(i.$slots,"right",{},()=>[t.createVNode(ge,{showSearch:t.unref(n),"onUpdate:showSearch":r[0]||(r[0]=e=>t.isRef(n)?n.value=e:null),showRefresh:e.showRefresh,onQueryTable:o},null,8,["showSearch","showRefresh"])],!0)]))}},[["__scopeId","data-v-056cfdde"]]),je={class:"table-page-container"},ye={style:{flex:"1",height:"0"}},De=C({__name:"index",props:{showSearch:{type:Boolean,default:!0}},emits:["refresh","update:showSearch"],setup(e,{emit:i}){const r=e,{isMobile:n}=re(),o=()=>{i("refresh")},a=t.computed({get:()=>r.showSearch,set(e){i("update:showSearch",e)}});return t.watch(n,e=>{i("update:showSearch",!e)},{immediate:!0}),(e,i)=>(t.openBlock(),t.createElementBlock("div",je,[t.renderSlot(e.$slots,"search",{},void 0,!0),t.createVNode(Te,{showSearch:t.unref(a),"onUpdate:showSearch":i[0]||(i[0]=e=>t.isRef(a)?a.value=e:null),onRefresh:o},{left:t.withCtx(()=>[t.renderSlot(e.$slots,"btn",{},void 0,!0)]),_:3},8,["showSearch"]),t.createElementVNode("div",ye,[t.renderSlot(e.$slots,"table",{},void 0,!0)]),t.renderSlot(e.$slots,"default",{},void 0,!0)]))}},[["__scopeId","data-v-cd968be9"]]),Ie={__name:"index",setup(e){const{isMobile:i}=re(),r=t.computed(()=>t.useSlots().default());return(e,n)=>{const o=t.resolveComponent("arrow-down"),a=t.resolveComponent("el-icon"),s=t.resolveComponent("el-dropdown-item"),M=t.resolveComponent("el-dropdown-menu"),u=t.resolveComponent("el-dropdown");return t.openBlock(),t.createElementBlock("div",null,[t.unref(i)?(t.openBlock(),t.createBlock(u,{key:0},{dropdown:t.withCtx(()=>[t.createVNode(M,null,{default:t.withCtx(()=>[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(t.unref(r),e=>(t.openBlock(),t.createBlock(s,null,{default:t.withCtx(()=>[(t.openBlock(),t.createBlock(t.resolveDynamicComponent(e)))]),_:2},1024))),256))]),_:1})]),default:t.withCtx(()=>[t.createElementVNode("span",null,[t.createTextVNode(" 操作 "),t.createVNode(a,{class:"el-icon--right"},{default:t.withCtx(()=>[t.createVNode(o)]),_:1})])]),_:1})):t.renderSlot(e.$slots,"default",{key:1})])}}},pe={__name:"BaseChart",props:{option:{type:Object,required:!0},width:{type:String,default:"100%"},height:{type:String,default:"100%"}},emits:["chartClick","legendselectchanged"],setup(e,{expose:i,emit:r}){const n=e,o=t.ref(null),a=t.ref(null),s=e=>{r("chartClick",e)},u=e=>{r("legendselectchanged",e)},c=M.throttle(()=>{var e;try{null==(e=a.value)||e.resize()}catch(t){}},300,{leading:!0,trailing:!0});return t.watch(()=>n.option,e=>{if(a.value&&e)try{a.value.clear(),a.value.setOption(e)}catch(t){}},{deep:!0}),t.onMounted(async()=>{await(async()=>{try{if(await t.nextTick(),!o.value)return;a.value||(a.value=t.markRaw(I.init(o.value))),n.option&&a.value.setOption(n.option),a.value.on("click",s),a.value.on("legendselectchanged",u)}catch(e){}})(),c()}),t.onBeforeUnmount(()=>{if(a.value)try{a.value.off("click",s),a.value.off("legendselectchanged",u),a.value.dispose(),a.value=null}catch(e){}}),i({resize:c,setOption:e=>{if(a.value)try{a.value.setOption(e)}catch(t){}}}),(i,r)=>(t.openBlock(),t.createElementBlock("div",{ref_key:"echartsRef",ref:o,style:t.normalizeStyle({width:e.width,height:e.height})},null,4))}},Le=["element-loading-background"],ze={key:1,class:"empty-wrapper"},he=["src"],Ae=(e=>(t.pushScopeId("data-v-ec2e25d8"),e=e(),t.popScopeId(),e))(()=>t.createElementVNode("div",{class:"empty-text"},"暂无数据",-1)),Ce=C({__name:"CommonChart",props:{height:{type:String,default:"300px"},loading:{type:Boolean,default:!1},title:{type:String,default:"chart图表"},unit:{type:[Array,String],default:()=>[]},showCardHeader:{type:Boolean,default:!0},data:{type:Array,default:()=>[],required:!0},categoryName:{type:String,default:"name"},seriesConfig:{type:Array,default:()=>[],required:!0},flipAxis:{type:Boolean,default:!1},backgroundColor:{type:[String,null],default:null},boundaryGap:{type:Boolean,default:!0},toolTipFormatter:{type:[Function,null],default:null},mode:{type:String,default:"light"},reservedDigits:{type:Number,default:0},legendSelected:{type:Object,default:()=>({})},showLegendCheckAll:{type:Boolean,default:!0}},emits:["chartClick","legendSelectChanged"],setup(e,{emit:i}){const r=e,{isMobile:n}=re(),o=t.ref(null),a=t.ref(null),s=t.ref(0),M=t.ref(0),u=t.ref(null),c=e=>{i("chartClick",e)},l=e=>{N(e),i("legendSelectChanged",e)},N=e=>{"全选"===e.name&&a.value.setOption({legend:{selected:Object.keys(e.selected).reduce((t,i)=>(t[i]=e.selected[e.name],t),{})}})},g=t.computed(()=>r.showLegendCheckAll?{"全选":!1,...r.legendSelected}:r.legendSelected),d=t.computed(()=>{let e=r.seriesConfig;return r.showLegendCheckAll&&e.unshift({name:"全选",isCheckAll:!0,icon:"circle"}),e}),T=t.computed(()=>{if(r.backgroundColor){return r.backgroundColor.includes("gradient")||r.backgroundColor.includes("linear-gradient")?{background:r.backgroundColor,borderColor:""}:{backgroundColor:r.backgroundColor,borderColor:r.backgroundColor}}return"dark"===r.mode?{backgroundColor:"rgba(8 ,40 ,93, 0.9)",borderColor:"rgba(8 ,40 ,93, 0.9)"}:{}}),j=t.computed(()=>{if(r.backgroundColor){return r.backgroundColor.includes("gradient")||r.backgroundColor.includes("linear-gradient")?{background:"transparent",borderColor:"transparent"}:{backgroundColor:r.backgroundColor,borderColor:r.backgroundColor}}return"dark"===r.mode?{backgroundColor:"transparent",borderColor:"rgba(8 ,40 ,93, 0.9)"}:{}}),y=t.computed(()=>"dark"===r.mode?{color:"#fff"}:{color:"#000"}),D=t.computed(()=>r.backgroundColor?r.backgroundColor:"dark"===r.mode?"rgba(51 ,78 ,122 ,0.6)":"rgba(255, 255, 255, .9)"),I=t.computed(()=>!r.data||!Array.isArray(r.data)||0===r.data.length),p=t.computed(()=>Array.isArray(r.unit)?r.unit:[r.unit]),L=t.computed(()=>{const e={};r.seriesConfig.filter(e=>"bar"===e.type).forEach(t=>{var i,r,n,o;t.stack?e[t.stack]?e[t.stack].push(null!=(i=t.barMaxWidth)?i:30):e[t.stack]=[null!=(r=t.barMaxWidth)?r:30]:e.other?e.other.push(null!=(n=t.barMaxWidth)?n:30):e.other=[null!=(o=t.barMaxWidth)?o:30]});return Object.keys(e).reduce((t,i)=>"other"!==i?t+e[i][0]:t+e[i].reduce((e,t)=>e+t,0),0)}),z=t.computed(()=>{const e=10*r.data.reduce((e,t)=>{const i=(e=>{let t=0;for(let i=0;i<e.length;i++){const r=e[i];/[\u4e00-\u9fa5\u3000-\u303f\uff00-\uffef]/.test(r)?t+=2:t+=1}return t})(String(t[r.categoryName]||""));return i>e?i:e},0),t=Math.max(L.value,e);return r.flipAxis?Math.floor((M.value-80)/t):Math.floor((s.value-90)/t)}),h=t.computed(()=>{if(!r.data||r.data.length<=z.value||0===s.value)return{show:!1,start:0,end:100};const e=Math.ceil((r.data.length-z.value)/r.data.length*100);return{show:!0,start:100===e?95:e,end:100}}),A=t.computed(()=>{if(!(r.data&&Array.isArray(r.data)&&r.seriesConfig&&Array.isArray(r.seriesConfig)))return{tooltip:{trigger:"axis"},xAxis:{type:"category",data:[]},yAxis:{type:"value"},series:[]};const e=r.seriesConfig.filter(e=>e.axisIndex).length,t=e?((e,t="max")=>{if(!e.length)return 0;const i=r.seriesConfig.filter(e=>!e.axisIndex),n=e.reduce((e,t)=>(i.forEach(i=>{e.push(Number(t[i.prop]))}),e),[]);return"max"===t?Math.max(...n):"min"===t?Math.min(...n):void 0})(r.data,"max"):null,i=e?((e,t="max")=>{if(!e.length)return 0;const i=r.seriesConfig.filter(e=>e.axisIndex);if(!i.length)return 1;const n=e.reduce((e,t)=>(i.forEach(i=>{e.push(Number(t[i.prop]))}),e),[]);return"max"===t?Math.max(...n):"min"===t?Math.min(...n):void 0})(r.data,"max"):null,[o,a]=e?((e,t)=>{let i=Math.min(e,t),r=Math.max(e,t);if(0===i&&(i=1),0===r)return[];const n=String(Math.round(i)).length,o=Math.ceil(r/i);let a;a=n<=3?Math.ceil(i/Math.pow(10,n-1))*Math.pow(10,n-1):Math.ceil(i/Math.pow(10,n-2))*Math.pow(10,n-2);let s=a*o;return e>t?[s,a]:[a,s]})(t,i):[null,null],[s,M]=e?(c=a,(u=o)&&c?[Math.ceil(u/5),Math.ceil(c/5)]:[]):[null,null];var u,c;return{tooltip:{appendToBody:!n.value,formatter:r.toolTipFormatter,trigger:"axis",position:n.value?function(e,t,i,r,n){const o=i.offsetWidth,a=i.offsetHeight;return[(n.contentSize[0]-o)/2,(n.contentSize[1]-a)/2]}:"top",axisPointer:{type:"cross",crossStyle:{color:"#999"}},textStyle:{fontSize:n.value?12:14,..."dark"===r.mode?{color:"#fff"}:{}},..."dark"===r.mode?{backgroundColor:"#194690",borderWidth:0}:{},...n.value?{padding:[8,12],extraCssText:"max-width: 80%; word-wrap: break-word;"}:{}},dataZoom:[{type:"slider",show:h.value.show,start:h.value.start,end:h.value.end,height:r.flipAxis?"auto":6,width:r.flipAxis?6:"auto",bottom:r.flipAxis?"35px":"2px",right:r.flipAxis?"2px":"40px",left:r.flipAxis?"auto":"40px",showDataShadow:!1,showDetail:!1,handleSize:"100%",handleStyle:{color:"dark"===r.mode?"#19437a":"#DEDEDE",borderRadius:4,opacity:1,borderColor:"transparent",borderWidth:0},backgroundColor:"transparent",fillerColor:"dark"===r.mode?"#19437a":"#DEDEDE",borderColor:"transparent",moveHandleStyle:{color:"#DEDEDE"},selectedDataBackground:{lineStyle:{opacity:0},areaStyle:{opacity:0}},emphasis:{handleStyle:{color:"#606266",borderColor:"transparent",borderWidth:0,opacity:1}},yAxisIndex:r.flipAxis?[0]:null,xAxisIndex:r.flipAxis?null:[0],filterMode:"filter",textStyle:{color:"transparent"},labelPrecision:0,brushSelect:!1,zoomLock:!0,throttle:100}],legend:{type:"scroll",selected:{...g.value},data:d.value,x:"right",y:"top",..."dark"===r.mode?{textStyle:{color:"#fff"}}:{}},grid:{containLabel:!0,top:50,left:40,right:r.flipAxis?80:40,bottom:r.flipAxis?30:40},[r.flipAxis?"yAxis":"xAxis"]:[{type:"category",boundaryGap:r.boundaryGap,data:r.data.map(e=>e[r.categoryName]||""),axisPointer:{type:"shadow"},axisLabel:{internal:0,rotate:r.flipAxis?90:0,..."dark"===r.mode?{color:"#fff"}:{}}}],[r.flipAxis?"xAxis":"yAxis"]:[{type:"value",name:p.value[0]?`单位:${p.value[0]}`:null,nameTextStyle:{..."dark"===r.mode?{color:"#fff"}:{}},...e?{min:0,max:null!=o?o:1500,interval:s}:{},axisLabel:{formatter:"{value}",..."dark"===r.mode?{color:"#fff"}:{}}},{type:"value",name:p.value[1]?`单位:${p.value[1]}`:null,nameTextStyle:{..."dark"===r.mode?{color:"#fff"}:{}},...e?{min:0,max:null!=a?a:150,interval:M}:{},axisLabel:{formatter:"{value}",..."dark"===r.mode?{color:"#fff"}:{}}}],series:d.value.map(e=>{var t;return{type:e.type||"line",barMaxWidth:null!=(t=e.barMaxWidth)?t:30,data:e.isCheckAll?[]:r.data.map(t=>Number(t[e.prop]||0).toFixed(r.reservedDigits)),...e,...r.flipAxis?{xAxisIndex:e.axisIndex||0}:{yAxisIndex:e.axisIndex||0}}})}});return t.onMounted(()=>{u.value=new ResizeObserver(e=>{var t;null==(t=a.value)||t.resize();for(const i of e)s.value=i.target.getBoundingClientRect().width,M.value=i.target.getBoundingClientRect().height}),o.value&&u.value.observe(o.value)}),t.onBeforeUnmount(()=>{u.value&&u.value.disconnect()}),(i,r)=>{const n=t.resolveComponent("el-card"),s=t.resolveDirective("loading");return t.openBlock(),t.createBlock(n,{class:"card-container",style:t.normalizeStyle(t.unref(T))},t.createSlots({default:t.withCtx(()=>[t.withDirectives((t.openBlock(),t.createElementBlock("div",{ref_key:"chartContainer",ref:o,"element-loading-background":t.unref(D),style:t.normalizeStyle({height:e.height}),class:"card-body"},[t.unref(I)?(t.openBlock(),t.createElementBlock("div",ze,[t.createElementVNode("img",{src:t.unref("data:image/png;base64,"),alt:"empty",class:"empty-image"},null,8,he),Ae])):(t.openBlock(),t.createBlock(pe,{key:0,onChartClick:c,onLegendselectchanged:l,ref_key:"baseChartRef",ref:a,option:t.unref(A)},null,8,["option"]))],12,Le)),[[s,e.loading]])]),_:2},[e.showCardHeader?{name:"header",fn:t.withCtx(()=>[t.renderSlot(i.$slots,"header",{},()=>[t.createElementVNode("div",{class:"card-header",style:t.normalizeStyle(t.unref(j))},[t.createElementVNode("span",{class:"card-title",style:t.normalizeStyle(t.unref(y))},t.toDisplayString(e.title),5)],4)],!0)]),key:"0"}:void 0]),1032,["style"])}}},[["__scopeId","data-v-ec2e25d8"]]),Se=["element-loading-background"],fe=C({__name:"PieChart",props:{title:{type:String,required:!0},loading:{type:Boolean,default:!1},height:{type:String,default:"300px"},mode:{type:String,default:"light"},data:{type:Array,required:!0},center:{type:Array,default:()=>["50%","50%"]},radius:{type:Array,default:()=>["0%","70%"]},type:{type:String,default:"pie",validator:function(e){return-1!==["pie","doughnut","rose"].indexOf(e)}},showCenterText:{type:Boolean,default:!1},centerText:{type:String,default:""},labelPosition:{type:String,default:"inside",validator:function(e){return-1!==["inside","outside"].indexOf(e)}},roseType:{type:String,default:"radius",validator:function(e){return-1!==["radius","area"].indexOf(e)}},colors:{type:Array,default:()=>[]}},setup(e){const i=e,r=t.ref(null),n=t.ref(null),o=["#5470c6","#91cc75","#fac858","#ee6666","#73c0de","#3ba272","#fc8452","#9a60b4","#ea7ccc"],a=t.computed(()=>i.backgroundColor?{backgroundColor:i.backgroundColor,borderColor:i.backgroundColor}:"dark"===i.mode?{backgroundColor:"rgba(8 ,40 ,93, 0.9)",borderColor:"rgba(8 ,40 ,93, 0.9)"}:{}),s=t.computed(()=>i.backgroundColor?{backgroundColor:i.backgroundColor,borderColor:i.backgroundColor}:"dark"===i.mode?{backgroundColor:"transparent",borderColor:"rgba(8 ,40 ,93, 0.9)"}:{}),M=t.computed(()=>"dark"===i.mode?{color:"#fff"}:{color:"#000"}),u=t.computed(()=>"dark"===i.mode?"rgba(25, 70, 144, .9)":"rgba(255, 255, 255, .9)"),c=t.computed(()=>"doughnut"===i.type?2===i.radius.length&&"0%"!==i.radius[0]?i.radius:["50%","70%"]:i.radius),l=t.computed(()=>({color:i.colors.length>0?i.colors:o,tooltip:{trigger:"item",formatter:"{b}: {c} ({d}%)",..."dark"===i.mode?{backgroundColor:"#194690",textStyle:{color:"#fff"},borderWidth:0}:{}},legend:{orient:"horizontal",bottom:"0",..."dark"===i.mode?{textStyle:{color:"#fff"}}:{}},graphic:i.showCenterText?[{type:"text",left:"center",top:"middle",style:{text:i.centerText,fontSize:20,fontWeight:"bold",fill:"dark"===i.mode?"#fff":"#000"}}]:[],series:[{type:"pie",radius:c.value,center:i.center,data:i.data,..."rose"===i.type?{roseType:i.roseType}:{},emphasis:{itemStyle:{shadowBlur:10,shadowOffsetX:0,shadowColor:"rgba(0, 0, 0, 0.5)"}},label:{show:!0,position:i.labelPosition,formatter:"{b}: {d}%",..."dark"===i.mode?{color:"#fff"}:{}}}]}));return t.onMounted(()=>{(()=>{n.value=new ResizeObserver(e=>{var t;null==(t=r.value)||t.resize()});const e=document.querySelector(".card-body");e&&n.value.observe(e)})()}),t.onBeforeUnmount(()=>{n.value&&n.value.disconnect()}),(i,n)=>{const o=t.resolveComponent("el-card"),c=t.resolveDirective("loading");return t.openBlock(),t.createBlock(o,{class:"card-container",style:t.normalizeStyle(t.unref(a))},{header:t.withCtx(()=>[t.createElementVNode("div",{class:"card-header",style:t.normalizeStyle(t.unref(s))},[t.createElementVNode("span",{class:"card-title",style:t.normalizeStyle(t.unref(M))},t.toDisplayString(e.title),5)],4)]),default:t.withCtx(()=>[t.withDirectives((t.openBlock(),t.createElementBlock("div",{"element-loading-background":t.unref(u),style:t.normalizeStyle({height:e.height}),class:"card-body"},[t.createVNode(pe,{ref_key:"baseChart",ref:r,option:t.unref(l),height:"100%"},null,8,["option"])],12,Se)),[[c,e.loading]])]),_:1},8,["style"])}}},[["__scopeId","data-v-747db0fa"]]),me=()=>Math.random().toString(36).substring(2,8),ve=e=>{try{return JSON.parse(e),!0}catch(Tn){return!1}},Ee=e=>Array.isArray(e)?Math.max(...e.map(Ee))+1:0,Oe=(e,t)=>!!/^[+-]?(180(\.0+)?|((1[0-7]\d)|([1-9]?\d))(\.\d{1,15})?)$/.test(e)&&!!/^[+-]?(90(\.0+)?|([1-8]?\d)(\.\d{1,15})?)$/.test(t),xe=e=>(t.pushScopeId("data-v-c613bad1"),e=e(),t.popScopeId(),e),we=["id"],ke={key:0,class:"error-content"},be=xe(()=>t.createElementVNode("div",{class:"error-icon"},"!",-1)),Ye={key:1,class:"loading-overlay"},Ue=xe(()=>t.createElementVNode("p",null,"正在加载播放器...",-1)),Qe=C({__name:"index",props:{playerId:{type:String,default:()=>`flv-player-${Date.now()}-${me()}`},src:{type:String,required:!0},autoplay:{type:Boolean,default:!0},muted:{type:Boolean,default:!1},loop:{type:Boolean,default:!1},controls:{type:Boolean,default:!0},isLive:{type:Boolean,default:!0},timeout:{type:Number,default:3e4},maxRetries:{type:Number,default:3},flvOptions:{type:Object,default:()=>({})}},emits:["error","can-play","play","pause","ended","time-update","player-ready","retry"],setup(e,{expose:i,emit:r}){const n=e,s=t.ref(null),M=t.ref(""),u=t.ref(0),c=t.ref(null),l=t.ref(null),N=t.ref(null),g=t.ref(null);t.onMounted(()=>{p.default.isSupported()?t.nextTick(()=>{d()}):(M.value="您的浏览器不支持FLV播放,请使用Chrome或Firefox等现代浏览器",r("error",{message:M.value}))}),t.onBeforeUnmount(()=>{y(),D()});const d=()=>{if(n.src){M.value="",y();try{const e=g.value;if(!e)throw new Error("找不到视频元素");e.autoplay=n.autoplay,e.muted=n.muted,e.loop=n.loop,e.controls=n.controls;const t={type:"flv",url:n.src,isLive:n.isLive,cors:!0,withCredentials:!1,hasAudio:!0,hasVideo:!0,enableStashBuffer:!0,stashInitialSize:3145728,enableWorker:!0,lazyLoad:!1,lazyLoadMaxDuration:180,seekType:"range",fixAudioTimestampGap:!0,accurateSeek:!0},i=Object.assign({},t,n.flvOptions);if(!p.default.isSupported())throw new Error("当前浏览器不支持FLV播放");s.value=p.default.createPlayer(i),s.value.attachMediaElement(e),s.value.load(),s.value.on(p.default.Events.ERROR,(e,t)=>{I(`播放错误: ${e} - ${t}`)}),s.value.on(p.default.Events.MEDIA_INFO,e=>{}),e.addEventListener("canplay",()=>{r("can-play")}),e.addEventListener("play",()=>{r("play")}),e.addEventListener("pause",()=>{r("pause")}),e.addEventListener("ended",()=>{r("ended")}),e.addEventListener("timeupdate",()=>{r("time-update",e.currentTime)}),e.addEventListener("error",e=>{const t=e.target.error;let i="未知错误";if(t)switch(t.code){case 1:i="视频加载中断";break;case 2:i="网络错误";break;case 3:i="视频解码错误";break;case 4:i="视频资源不可用"}I(`视频元素错误: ${i}`)}),n.autoplay&&z(),l.value=setInterval(()=>{T()},5e3),r("player-ready",s.value)}catch(e){I(`播放器初始化错误: ${e.message||"未知错误"}`)}}},T=()=>{const e=g.value;e&&s.value&&e.readyState<=2&&e.paused&&!M.value&&j()},j=()=>{y(),t.nextTick(()=>{d()})},y=()=>{if(s.value)try{s.value.pause(),s.value.unload(),s.value.detachMediaElement(),s.value.destroy(),s.value=null}catch(e){}},D=()=>{c.value&&(clearTimeout(c.value),c.value=null),l.value&&(clearInterval(l.value),l.value=null)},I=e=>{M.value=e,r("error",{message:e}),u.value<n.maxRetries&&(u.value++,c.value=setTimeout(()=>{L()},3e3))},L=()=>{d(),r("retry")},z=()=>{const e=g.value;e&&e.play().catch(t=>{"NotAllowedError"!==t.name||e.muted||(e.muted=!0,e.play().catch(e=>{}))})};return t.watch(()=>n.src,(e,i)=>{e!==i&&(u.value=0,D(),t.nextTick(()=>{d()}))}),t.watch(()=>n.muted,e=>{const t=g.value;t&&(t.muted=e)}),i({play:z,pause:()=>{const e=g.value;e&&e.pause()},toggleMute:()=>{const e=g.value;return!!e&&(e.muted=!e.muted,e.muted)},retry:L,destroyPlayer:y,refreshPlayer:j,handleError:I}),(i,r)=>(t.openBlock(),t.createElementBlock("div",{class:"flv-player-container",ref_key:"playerContainer",ref:N},[t.createElementVNode("div",{id:e.playerId,class:"player-box"},[t.createElementVNode("video",{ref_key:"videoElement",ref:g,class:"video-js",controls:""},null,512)],8,we),M.value?(t.openBlock(),t.createElementBlock("div",ke,[be,t.createElementVNode("p",null,t.toDisplayString(M.value),1),t.createVNode(t.unref(a.ElButton),{type:"primary",size:"small",onClick:L,class:"retry-button"},{default:t.withCtx(()=>[t.createTextVNode(" 重试 ")]),_:1})])):t.createCommentVNode("",!0),M.value||s.value?t.createCommentVNode("",!0):(t.openBlock(),t.createElementBlock("div",Ye,[t.createVNode(t.unref(a.ElIcon),{class:"loading-icon"},{default:t.withCtx(()=>[t.createVNode(t.unref(o.Loading))]),_:1}),Ue]))],512))}},[["__scopeId","data-v-c613bad1"]]),Re=e=>(t.pushScopeId("data-v-7d1d9d8a"),e=e(),t.popScopeId(),e),_e={class:"control-panel"},Pe={class:"form-item",style:{"flex-shrink":"0"}},Be=Re(()=>t.createElementVNode("label",null,"模式:",-1)),He={key:0,class:"form-item"},Ve={class:"time-inputs"},We={class:"video-player-container","element-loading-text":"视频加载中...","element-loading-background":"rgba(0,0,0,.5)"},Ge={class:"video-player-title"},Fe={key:0,class:"title-text-bh"},Ze={class:"title-text-bh"},Je={class:"title-text-type"},qe=["id"],Ke={key:0,class:"err-box"},$e={class:"error-message-text"},Xe=Re(()=>t.createElementVNode("a",{href:"https://sctj-zcglxt.oss-cn-chengdu.aliyuncs.com/lifingBusiness/%E6%B5%B7%E5%BA%B7%E5%A8%81%E8%A7%86%E9%94%99%E8%AF%AF%E7%A0%81%E5%A4%A7%E5%85%A8.docx",download:"",style:{color:"#1A68DB","text-decoration":"underline"},target:"_self"}," 下载查看错误码详情 ",-1)),et={key:0},tt=Re(()=>t.createElementVNode("span",null," 证书未安装、证书不安全, ",-1)),it={class:"btn-box"},rt=C({__name:"index",props:{playerId:{type:String,default:function(){return`hkPlayer-${Date.now()}-${me()}`}},preUrl:{type:String},deviceSerial:{type:String},deviceName:{type:String,default:""},cameraType:{type:String,default:"枪机"},channelName:{type:String,default:"默认通道"},channelNo:{type:String,default:"1"},whetherPanTilt:{type:[Boolean,String],default:"1"},width:{type:[Number,String],default:"100%"},height:{type:[String,null],default:null},defaultMode:{type:String,default:"live",validator:e=>["live","replay"].includes(e)},getLiveAddress:{type:Function,required:!0},getReplayAddress:{type:Function,required:!0},downloadCertificate:{type:Function,default:void 0}},setup(e,{expose:i}){const r=e,n=t.ref(""),o=t.ref(!0),a=t.ref(null),s=t.ref(r.defaultMode),M=t.ref([]),u=t.ref(""),c=t.ref(!1),l=t.computed(()=>r.height?{height:r.height}:{aspectRatio:2}),N=()=>{if(a.value){if(c.value)m(u.value);else{let e=a.value.currentWindowIndex;a.value.JS_Stop(e)}c.value=!c.value}};t.watch(()=>r.deviceSerial,e=>{e&&d()}),t.watch(()=>r.preUrl,e=>{e&&(u.value=e,m(e))});const g=t.ref(!1),d=async()=>{if(r.deviceSerial){o.value=!0;try{"live"===s.value?await T():I()}catch(e){n.value=`初始化播放失败:${e.message||e}`,o.value=!1}}},T=async()=>{try{n.value="",o.value=!0;const e=await r.getLiveAddress({deviceSerial:r.deviceSerial,channelNo:r.channelNo});if(!e||!e.data)throw new Error("获取直播地址失败");u.value=e.data,m(e.data)}catch(e){n.value=`获取直播地址失败:${e.message||e}`,o.value=!1}},j=async(e,t)=>{try{o.value=!0;const i={deviceSerial:r.deviceSerial,playbackBeginTime:e,playbackEndTime:t,channelNo:r.channelNo},n=await r.getReplayAddress(i);if(!n||!n.data)throw new Error("获取回放地址失败");u.value=n.data,m(n.data)}catch(i){n.value=`获取回放地址失败:${i.message||i}`,o.value=!1}},y=e=>{s.value=e,"live"===e&&r.deviceSerial&&T(),"replay"===e&&r.deviceSerial&&I()},D=e=>{M.value=e,I()},I=()=>{if(n.value="",!M.value||!M.value.length){const e=new Date,t=new Date(Date.now()-36e5),i=[L.default(t).format("YYYY-MM-DD HH:mm:ss"),L.default(e).format("YYYY-MM-DD HH:mm:ss")];M.value=i}const[e,t]=M.value;j(e,t)},p=()=>{g.value?z():h()},z=()=>{if(!a.value)return;let e=a.value.currentWindowIndex;a.value.JS_StopSave(e).then(()=>{g.value=!1},e=>{})},h=()=>{if(!a.value)return;let e=a.value.currentWindowIndex,t=`${(new Date).toLocaleDateString().replaceAll("/","-")}.mp4`;a.value.JS_StartSaveEx(e,t,5).then(()=>{g.value=!0},e=>{})},A=()=>{a.value&&a.value.JS_FullScreenDisplay(!1).then(()=>{},e=>{})},C=()=>{S()},S=()=>{try{a.value=new window.JSPlugin({szId:r.playerId,szBasePath:"/hkPlayerPlugin"}),a.value&&f()}catch(e){o.value=!1,n.value=`播放器初始化失败:${e}`}},f=()=>{a.value.JS_SetWindowControlCallback({windowEventSelect(e){},pluginErrorHandler(e,t,i){o.value=!1,n.value=`播放器插件发生错误:${t}`},windowEventOver(e){},windowEventOut(e){},windowFullCcreenChange(e){},firstFrameDisplay(e,t,i){},performanceLack(e){}}),r.deviceSerial?d():r.preUrl&&m()},m=e=>{if(!a.value)return;let t;if(t=null!=e?e:r.preUrl,!t)return;const i={playURL:t,mode:0};let[u,c]=M.value;"live"===s.value?(u=null,c=null):(u=new Date(u).toISOString(),c=new Date(c).toISOString()),a.value.JS_Play(t,i,0,u,c).then(()=>{o.value=!1},e=>{o.value=!1,n.value=`监控播放失败:${e}`})};return t.onMounted(()=>{t.nextTick(()=>{S()})}),t.onUnmounted(()=>{a.value.JS_StopRealPlayAll().then(()=>{},e=>{})}),i({play:m,getLiveAddress:T,getReplayAddress:j,startReplay:I}),(i,u)=>{var d;const T=t.resolveComponent("el-radio"),j=t.resolveComponent("el-radio-group"),I=t.resolveComponent("el-date-picker"),L=t.resolveComponent("WarningFilled"),z=t.resolveComponent("el-icon"),h=t.resolveComponent("el-button"),S=t.resolveDirective("loading");return t.openBlock(),t.createElementBlock("div",{class:"videoPlayer",style:t.normalizeStyle({width:e.width})},[t.createElementVNode("div",_e,[t.createElementVNode("div",Pe,[Be,t.createVNode(j,{size:"small",modelValue:s.value,"onUpdate:modelValue":u[0]||(u[0]=e=>s.value=e),onChange:y},{default:t.withCtx(()=>[t.createVNode(T,{label:"live",border:""},{default:t.withCtx(()=>[t.createTextVNode("实时")]),_:1}),t.createVNode(T,{label:"replay",border:""},{default:t.withCtx(()=>[t.createTextVNode("回放")]),_:1})]),_:1},8,["modelValue"])]),"replay"===s.value?(t.openBlock(),t.createElementBlock("div",He,[t.createElementVNode("div",Ve,[t.createVNode(I,{size:"small",clearable:!1,modelValue:M.value,"onUpdate:modelValue":u[1]||(u[1]=e=>M.value=e),type:"datetimerange","range-separator":"至","start-placeholder":"开始时间","end-placeholder":"结束时间",format:"YYYY-MM-DD HH:mm:ss","value-format":"YYYY-MM-DD HH:mm:ss",onChange:D},null,8,["modelValue"])])])):t.createCommentVNode("",!0)]),t.withDirectives((t.openBlock(),t.createElementBlock("div",We,[t.createElementVNode("div",Ge,[e.deviceName?(t.openBlock(),t.createElementBlock("div",Fe,t.toDisplayString(`${e.deviceName}(${null!=(d=e.channelName)?d:"默认通道"})`),1)):t.createCommentVNode("",!0),t.createElementVNode("div",Ze,t.toDisplayString("序列号:"+e.deviceSerial),1),t.createElementVNode("div",Je,t.toDisplayString(e.cameraType),1)]),t.createElementVNode("div",{id:e.playerId,style:t.normalizeStyle(t.unref(l))},null,12,qe),n.value?(t.openBlock(),t.createElementBlock("div",Ke,[t.createVNode(z,{size:"40",color:"red"},{default:t.withCtx(()=>[t.createVNode(L)]),_:1}),t.createElementVNode("div",$e,[t.createTextVNode(t.toDisplayString(n.value+":取流失败,")+" ",1),Xe,n.value.includes("0x12f910019")?(t.openBlock(),t.createElementBlock("div",et,[tt,t.createElementVNode("span",{onClick:u[2]||(u[2]=t=>(async e=>{if(r.downloadCertificate)try{let t=await r.downloadCertificate(e);const i=URL.createObjectURL(t),n=document.createElement("a");n.href=i,n.download=`安全证书${(new Date).getTime()}.exe`,n.click(),URL.revokeObjectURL(i)}catch(t){}})(e.deviceSerial)),class:"install-certificate"}," 安装证书后重启浏览器解决 ")])):t.createCommentVNode("",!0)]),t.createElementVNode("button",{onClick:C,class:"retry-button"},"重试")])):t.createCommentVNode("",!0),e.deviceSerial?(t.openBlock(),t.createBlock(h,{key:1,class:"fullScreen-box",icon:"FullScreen",circle:"",plain:"",onClick:A})):t.createCommentVNode("",!0)])),[[S,o.value]]),t.createElementVNode("div",it,[t.createVNode(h,{type:"primary",onClick:N},{default:t.withCtx(()=>[t.createTextVNode(t.toDisplayString(c.value?"播放":"暂停"),1)]),_:1}),t.createVNode(h,{type:"primary",onClick:u[3]||(u[3]=e=>(e=>{if(!a.value)return;let t=a.value.currentWindowIndex;a.value.JS_CapturePicture(t,"img",e).then(()=>{},e=>{})})("JPEG"))},{default:t.withCtx(()=>[t.createTextVNode("抓图")]),_:1}),t.createVNode(h,{type:"primary",onClick:p},{default:t.withCtx(()=>[t.createTextVNode(t.toDisplayString(g.value?"停止录制":"录制"),1)]),_:1}),"live"===s.value&&"1"===e.whetherPanTilt?(t.openBlock(),t.createBlock(h,{key:0,type:"primary"},{default:t.withCtx(()=>[t.createTextVNode("云台控制")]),_:1})):t.createCommentVNode("",!0)])],4)}}},[["__scopeId","data-v-7d1d9d8a"]]),nt=e=>(t.pushScopeId("data-v-91800a3c"),e=e(),t.popScopeId(),e),ot={class:"helmet-player-container"},at={class:"title-section"},st=nt(()=>t.createElementVNode("div",{class:"title-text"}," 视频监控 ",-1)),Mt={class:"voice-call-section"},ut={class:"voice-call-controls"},ct=nt(()=>t.createElementVNode("span",{class:"voice-label"},"语音通话",-1)),lt={key:0,class:"loading-indicator"},Nt={key:1,class:"status-indicator success"},gt=nt(()=>t.createElementVNode("span",null,"通话已连接",-1)),dt={class:"video-container"},Tt={__name:"index",props:{deviceId:{type:String,default:"",required:!0},callApi:{type:Function,required:!0},handleStreamingApi:{type:Function,required:!0},queryAdminSipInfoApi:{type:Function,required:!0}},emits:["retry","error"],setup(e,{expose:i,emit:r}){const n=e,s=Promise.resolve().then(()=>yn),M=t.ref("0"),u=t.ref(""),c=t.ref(!1),l=t.ref(null),N=t.ref(null),g=t.ref(null),d=t.ref(""),T=t.ref(""),j=t.ref(!1),y=t.ref(""),D=t.ref(null);t.onMounted(async()=>{await p()}),t.onBeforeUnmount(()=>{I()});const I=()=>{z(),O(),u.value="",l.value&&(l.value.unregister(),l.value=null)},p=async()=>{var e;try{c.value=!0;const{status:e,play_url:t,msg:i}=await E();if(!e)throw new Error(i);u.value=t[2]}catch(Tn){null==(e=D.value)||e.handleError(Tn)}finally{c.value=!1}},L=e=>{T.value=e,r("error",{message:e}),a.ElMessage({message:e,type:"error",duration:5e3,showClose:!0})},z=()=>{N.value&&(N.value.terminate(),N.value=null)},h=async()=>{if(!navigator.mediaDevices)throw new Error("您的浏览器不支持音频设备访问或处于不安全环境,无法使用语音通话功能");try{const e=await navigator.mediaDevices.enumerateDevices();if(!e.some(e=>"audioinput"===e.kind))throw new Error("未检测到麦克风设备,请检查设备连接");await navigator.mediaDevices.getUserMedia({video:!1,audio:!0})}catch(Tn){throw"NotAllowedError"===Tn.name?new Error("请允许访问麦克风权限"):"NotFoundError"===Tn.name?new Error("未找到可用的音频设备"):new Error("音频设备访问失败: "+Tn.message)}},A=async()=>{g.value||await S(),await f()},C=async()=>{const{status:e,sip_id:t,msg:i}=await n.callApi({deviceId:n.deviceId,v_type:0});if(!e)throw new Error(`呼叫失败:${i}`);t&&(d.value=t),await m()},S=async()=>{const{status:e,admin_info:{sip_info:t},msg:i}=await n.queryAdminSipInfoApi();if(!e)throw new Error(`获取管理员sip_info失败:${i}`);g.value=t},f=()=>new Promise((e,t)=>{const{sip_id:i,sip_host:r,sip_pwd:n,wss_url:o,stun_host:a,turn_host:M,turn_user:u,turn_pwd:c}=g.value,N={uri:`${i}@${r}`,transportOptions:{wsServers:[o],connectionTimeout:30},authorizationUser:i,password:n,sessionDescriptionHandlerFactoryOptions:{peerConnectionOptions:{rtcConfiguration:{iceServers:[{urls:`stun:${a}`},{urls:`turn:${M}`,username:u,credential:c}]}}}};l.value=new s.UA(N),l.value.on("registered",()=>{e()}),l.value.on("registrationFailed",(e,i)=>{t(new Error("SIP注册失败"))})}),m=async()=>{try{N.value=l.value.invite(`${d.value}@${g.value.sip_host}`,{sessionDescriptionHandlerOptions:{constraints:{audio:!0,video:!1}}}),v()}catch(Tn){L(Tn.message||"设备访问失败,请检查摄像头和麦克风权限")}},v=()=>{N.value.on("accepted",()=>{y.value="connected",a.ElMessage({message:"语音通话连接成功",type:"success",duration:3e3});const e=N.value.sessionDescriptionHandler.peerConnection,t=new MediaStream;e.getReceivers().forEach(e=>{t.addTrack(e.track)})}),N.value.on("failed",(e,t)=>{M.value="0";let i="通话失败";i="Request Timeout"===t?"连接超时,请检查网络连接":"Not Found"===t?"设备离线或不可用":"Busy Here"===t?"设备忙线中":`通话失败: ${t}`,L(i)}),N.value.on("terminated",()=>{y.value="","1"===M.value&&a.ElMessage({message:"通话已断开",type:"info",duration:2e3})})},E=async()=>await n.handleStreamingApi({deviceId:n.deviceId,isPush:1}),O=async()=>await n.handleStreamingApi({deviceId:n.deviceId,isPush:0}),x=()=>{switch(y.value){case"checking":return"正在检查设备权限...";case"initializing":return"正在初始化通话服务...";case"calling":return"正在建立连接...";case"connected":return"连接成功";default:return"正在处理..."}};return t.watch(M,async e=>{"0"===e?(T.value="",y.value="",z()):(async()=>{try{j.value=!0,T.value="",y.value="checking",await h(),y.value="initializing",await A(),y.value="calling",await C(),y.value="connected"}catch(Tn){M.value="0",L(Tn.message||"视频通话初始化失败")}finally{j.value=!1,y.value=""}})()}),i({retry:()=>{T.value="",y.value="",M.value="1",r("retry")},initVideoMonitor:p,cleanup:I}),(e,i)=>{const r=t.resolveDirective("loading");return t.openBlock(),t.createElementBlock("div",ot,[t.createElementVNode("div",at,[st,t.createElementVNode("div",Mt,[t.createElementVNode("div",ut,[t.createElementVNode("div",{class:"voice-call-header",onClick:i[0]||(i[0]=()=>{M.value="1"===M.value?"0":"1"})},[t.createVNode(t.unref(a.ElIcon),{class:"voice-icon"},{default:t.withCtx(()=>[t.createVNode(t.unref(o.Microphone))]),_:1}),ct]),j.value?(t.openBlock(),t.createElementBlock("div",lt,[t.createVNode(t.unref(a.ElIcon),{class:"loading-icon"},{default:t.withCtx(()=>[t.createVNode(t.unref(o.Loading))]),_:1}),t.createElementVNode("span",null,t.toDisplayString(x()),1)])):"1"!==M.value||T.value?t.createCommentVNode("",!0):(t.openBlock(),t.createElementBlock("div",Nt,[t.createVNode(t.unref(a.ElIcon),{class:"success-icon"},{default:t.withCtx(()=>[t.createVNode(t.unref(o.SuccessFilled))]),_:1}),gt]))])])]),t.createElementVNode("div",dt,[t.withDirectives(t.createVNode(Qe,{maxRetries:0,"element-loading-background":"rgba(51, 78, 122, 0.6)","element-loading-text":"正在加载视频流...",ref_key:"flvPlayer",ref:D,src:u.value,autoplay:"",controls:"",onRetry:p},null,8,["src"]),[[r,c.value]])])])}}},jt=C(Tt,[["__scopeId","data-v-91800a3c"]]),yt={playerDefaults:{videoQuality:2,videoFormat:"ezopen",template:"simple",autoplay:!0,cacheExpire:72e5,timeout:15e3,maxRetries:3},apiUrl:"https://open.ys7.com/api/lapp"},Dt=yt.apiUrl;let It={accessToken:"",expireTime:0};const pt=new Map,Lt=yt.playerDefaults&&yt.playerDefaults.cacheExpire||72e5;let zt=null;const ht={setGetTokenFunction(e){zt=e},getAccessToken:()=>new Promise((e,t)=>{const i=Date.now();return It.accessToken&&It.expireTime>i?e(It.accessToken):zt?void zt().then(i=>{var r;if(200===i.code&&i.data){const t=i.data;It.accessToken=t.accessToken,It.expireTime=Date.now()+1e3*t.expireTime-3e5,e(t.accessToken)}else t(new Error(i.msg||(null==(r=i.data)?void 0:r.msg)||"获取Token失败"))}).catch(e=>{t(e)}):t(new Error("未提供获取Token的函数,请通过 setGetTokenFunction 设置"))}),getLiveAddress(e,t,i=1,r=1,n=null){const o=`${e}_${t}_${i}_${r}`,a=Date.now(),s=pt.get(o);if(s&&s.expireTime>a)return Promise.resolve(s.url);return(n?Promise.resolve(n):this.getAccessToken()).then(n=>{const o=yt.playerDefaults&&yt.playerDefaults.timeout||15e3,a=new URLSearchParams({accessToken:n,deviceSerial:e,quality:i,channelNo:t,protocol:r});return h.default.post(`${Dt}/v2/live/address/get?${a.toString()}`,{timeout:o})}).then(e=>{if("200"===e.data.code&&e.data.data){const t=e.data.data.url;return pt.set(o,{url:t,expireTime:a+Lt}),t}throw new Error(e.data.msg||"获取视频地址失败")})},getDeviceInfo(e){return this.getAccessToken().then(t=>{const i=yt.playerDefaults&&yt.playerDefaults.timeout||15e3;return h.default.post(`${Dt}/device/info`,{accessToken:t,deviceSerial:e},{timeout:i})}).then(e=>{if("200"===e.data.code&&e.data.data)return e.data.data;throw new Error(e.data.msg||"获取设备信息失败")})},getDeviceList(e=0,t=50){return this.getAccessToken().then(i=>h.default.post(`${Dt}/devices/list`,{accessToken:i,pageStart:e,pageSize:t})).then(e=>{if("200"===e.data.code&&e.data.data)return e.data.data;throw new Error(e.data.msg||"获取设备列表失败")})},isDeviceOnline(e){return this.getDeviceInfo(e).then(e=>1===e.status)},getPlaybackAddress(e,t,i,r,n=1,o=1,a=null){const s=`${e}_${t}_${i}_${r}_${o}`,M=Date.now(),u=pt.get(s);if(u&&u.expireTime>M)return Promise.resolve(u.url);return(a?Promise.resolve(a):this.getAccessToken()).then(a=>{const s=yt.playerDefaults&&yt.playerDefaults.timeout||15e3,M=new URLSearchParams({accessToken:a,deviceSerial:e,channelNo:t,startTime:i,endTime:r,protocol:o,quality:n,type:"2"});return h.default.post(`${Dt}/v2/live/address/get?${M.toString()}`,{timeout:s})}).then(e=>{if("200"===e.data.code&&e.data.data){const t=e.data.data.url;return pt.set(s,{url:t,expireTime:M+Lt}),t}throw new Error(e.data.msg||"获取回放地址失败")})},generateEZOpenUrl:(e,t=1,i=0,r="",n="")=>0===i?`ezopen://open.ys7.com/${e}/${t}.live`:`ezopen://open.ys7.com/${e}/${t}.rec?begin=${r}&end=${n}`,controlPTZ(e,t=1,i,r=1){return this.getAccessToken().then(n=>{const o=yt.playerDefaults&&yt.playerDefaults.timeout||15e3,a=new URLSearchParams({accessToken:n,deviceSerial:e,channelNo:t,direction:i,speed:r});return h.default.post(`${Dt}/device/ptz/start?${a.toString()}`,{timeout:o})}).then(e=>{if("200"===e.data.code)return e.data;throw new Error(e.data.msg||"云台控制失败")})},stopPTZ(e,t=1,i){return this.getAccessToken().then(r=>{const n=yt.playerDefaults&&yt.playerDefaults.timeout||15e3,o=new URLSearchParams({accessToken:r,deviceSerial:e,channelNo:t,direction:i});return h.default.post(`${Dt}/device/ptz/stop?${o.toString()}`,{timeout:n})}).then(e=>{if("200"===e.data.code)return e.data;throw new Error(e.data.msg||"停止云台失败")})}};const At=new class{constructor(){this.players={},this.defaultConfig={template:"simple",autoplay:!0,width:"100%",height:"100%",videoQuality:1,videoFormat:"ezopen"}}async createPlayerConfig(e,t={}){try{const i={...this.defaultConfig,deviceSerial:e,...t};if(!i.deviceSerial)throw new Error("设备序列号(deviceSerial)不能为空");if(1===i.playType){if(!i.startTime||!i.endTime){const e=this.generateDefaultTimeRange();i.startTime=i.startTime||e.startTime,i.endTime=i.endTime||e.endTime}i.videoUrl=await ht.getPlaybackAddress(i.deviceSerial,i.channelNo||1,i.startTime,i.endTime,i.videoFormat)}else i.videoUrl=await ht.getLiveAddress(i.deviceSerial,i.channelNo||1,i.videoQuality,i.videoFormat);return i}catch(i){throw i}}async destroyPlayer(e){this.players[e]&&delete this.players[e]}registerPlayer(e,t){this.players[e]=t}getPlayer(e){return this.players[e]||null}async isDeviceAvailable(e){try{return await ht.isDeviceOnline(e)}catch(t){return!1}}generateDefaultTimeRange(){const e=new Date,t=e=>{const t=e=>String(e).padStart(2,"0");return`${e.getFullYear()}-${t(e.getMonth()+1)}-${t(e.getDate())} ${t(e.getHours())}:${t(e.getMinutes())}:${t(e.getSeconds())}`};return{startTime:t(new Date(e.getTime()-36e5)),endTime:t(e)}}destroyAllPlayers(){const e=Object.keys(this.players);for(const t of e)this.destroyPlayer(t)}},Ct=["id"],St={key:0,class:"error-message"},ft={class:"error-message-text"},mt={__name:"index",props:{playerId:{type:String,default:function(){return`player-${Date.now()}-${me()}`}},deviceSerial:{type:String,required:!0},channelNo:{type:[String,Number],default:1},accessToken:{type:String,default:""},playType:{type:Number,default:0},startTime:{type:String,default:""},endTime:{type:String,default:""},autoPlay:{type:Boolean,default:!0},template:{type:String,default:"simple"},videoQuality:{type:Number,default:2},videoProtocol:{type:[Number,String],default:2},maxRetries:{type:Number,default:0},getYsToken:{type:Function,required:!0}},emits:["play-success","play-error","play-stop","update:playType"],setup(e,{expose:i,emit:r}){const n=e,o=t.ref(null),a=t.ref(!0),s=t.ref(""),M=t.ref(0),u=t.ref(""),c=t.ref(null),l=t.ref(""),N=t.ref(""),g=t.ref(null),d=t.ref(null),T=t.ref(null),j=async()=>{if(s.value="",a.value=!0,n.deviceSerial)try{I();let t="";try{t=await ht.getAccessToken()}catch(e){return void y(`获取AccessToken失败: ${e.message||"未知错误"}`)}if(0===n.playType)u.value=await ht.getLiveAddress(n.deviceSerial,n.channelNo,n.videoQuality,n.videoProtocol,t);else{n.startTime&&n.endTime||c.value||(c.value=At.generateDefaultTimeRange());const e=n.startTime||c.value.startTime,i=n.endTime||c.value.endTime;u.value=await ht.getPlaybackAddress(n.deviceSerial,n.channelNo,e,i,n.videoQuality,n.videoProtocol,t)}const i={id:n.playerId,url:u.value,accessToken:t,template:n.template,autoplay:n.autoPlay,width:l.value,height:N.value,audio:!1,handleSuccess:()=>{a.value=!1,M.value=0,p(),At.registerPlayer(n.playerId,{player:o.value,config:i}),r("play-success")},handleError:e=>{y(`播放错误: ${JSON.stringify(e)}`)}};o.value=new z.default.EZUIKitPlayer(i)}catch(e){y(`播放器初始化错误: ${e.message||"未知错误"}`)}else y("设备序列号不能为空")},y=e=>{a.value=!1,s.value=e,r("play-error",{message:e}),M.value<n.maxRetries&&(M.value++,g.value=setTimeout(()=>{D()},3e3))},D=()=>{j()},I=()=>{if(o.value)try{o.value.stopTalk(),o.value.stop(),o.value.destroy()}catch(e){}},p=()=>{o.value&&o.value.closeSound()};return t.watch(()=>n.deviceSerial,()=>{j()}),t.watch(()=>n.channelNo,()=>{j()}),t.watch(()=>n.playType,()=>{j()}),t.watch(()=>n.startTime,()=>{1===n.playType&&j()}),t.watch(()=>n.endTime,()=>{1===n.playType&&j()}),t.watch(()=>n.videoProtocol,()=>{j()}),t.onMounted(()=>{ht.setGetTokenFunction(n.getYsToken);const e=d.value;e&&(l.value=e.clientWidth,N.value=e.clientHeight),j()}),t.onBeforeUnmount(()=>{g.value&&clearTimeout(g.value),I(),At.destroyPlayer(n.playerId),r("play-stop")}),i({initPlayer:j,play:()=>{o.value&&o.value.play()},stop:()=>{o.value&&o.value.stop()},pause:()=>{o.value&&o.value.pause()},resume:()=>{o.value&&o.value.resume()},openSound:()=>{o.value&&o.value.openSound()},closeSound:p,startTalk:()=>{o.value&&o.value.startTalk()},stopTalk:()=>{o.value&&o.value.stopTalk()},capturePicture:()=>{o.value&&o.value.capturePicture()},startSave:()=>{o.value&&o.value.startSave()},stopSave:()=>{o.value&&o.value.stopSave()},setPlaybackTimeRange:(e,t)=>{e&&t&&(c.value={startTime:e,endTime:t},1===n.playType&&j())},switchToLive:()=>{0!==n.playType&&(r("update:playType",0),j())},switchToPlayback:(e="",t="")=>{e&&t?c.value={startTime:e,endTime:t}:c.value||(c.value=At.generateDefaultTimeRange()),1!==n.playType&&(r("update:playType",1),j())},switchQuality:e=>{n.videoQuality!==e&&0===n.playType&&j()},fullScreen:()=>{o.value&&o.value.fullScreen()},controlPTZ:(e,t=1)=>{if(n.deviceSerial)try{ht.controlPTZ(n.deviceSerial,n.channelNo,e,t).catch(e=>{r("play-error",{message:e})})}catch(i){r("play-error",{message:i})}else r("play-error",{message:"设备序列号不能为空"})},stopPTZ:e=>{if(n.deviceSerial)try{ht.stopPTZ(n.deviceSerial,n.channelNo,e).catch(e=>{r("play-error",{message:e})})}catch(t){r("play-error",{message:t})}else r("play-error",{message:"设备序列号不能为空"})}}),(i,r)=>{const n=t.resolveComponent("WarningFilled"),o=t.resolveComponent("el-icon");return t.openBlock(),t.createElementBlock("div",{class:"ysy-player-container",ref_key:"playerContainer",ref:d},[t.createElementVNode("div",{ref_key:"playerBox",ref:T,id:e.playerId,class:"player-box"},null,8,Ct),s.value?(t.openBlock(),t.createElementBlock("div",St,[t.createVNode(o,{size:"40",color:"red"},{default:t.withCtx(()=>[t.createVNode(n)]),_:1}),t.createElementVNode("div",ft,t.toDisplayString(s.value),1),t.createElementVNode("button",{onClick:D,class:"retry-button"},"重试")])):t.createCommentVNode("",!0)],512)}}},vt=C(mt,[["__scopeId","data-v-3f60f3e4"]]),Et=["src"],Ot={__name:"index",props:{src:{type:String,required:!0}},setup(e){const i=e,r=ref(document.documentElement.clientHeight-94.5+"px;"),n=ref(!0),o=computed(()=>i.src);return onMounted(()=>{setTimeout(()=>{n.value=!1},300),window.onresize=function(){r.value=document.documentElement.clientHeight-94.5+"px;"}}),(e,i)=>{const a=t.resolveDirective("loading");return t.withDirectives((t.openBlock(),t.createElementBlock("div",{style:t.normalizeStyle("height:"+t.unref(r))},[t.createElementVNode("iframe",{src:t.unref(o),frameborder:"no",style:{width:"100%",height:"100%"},scrolling:"auto"},null,8,Et)],4)),[[a,t.unref(n)]])}}},xt=t.createElementVNode("div",{class:"el-upload__text"},[t.createTextVNode("将文件拖到此处,或"),t.createElementVNode("em",null,"点击上传")],-1),wt={class:"el-upload__tip text-center"},kt={key:0,class:"el-upload__tip"},bt=t.createElementVNode("span",null,"仅允许导入xls、xlsx格式文件。",-1),Yt={class:"dialog-footer"},Ut={__name:"index",props:{title:{type:String,default:""},uploadUrl:{type:String,default:""},templateTitle:{type:String,default:""},templateUrl:{type:String,default:""},dataType:{type:String,default:""},showCheckBox:{type:Boolean,default:!0},headers:{type:Object,default:()=>({})}},emits:["loadSucccess"],setup(e,{expose:i,emit:r}){const n=e,s=t.ref(null),M=t.ref(""),u=t.reactive({open:!1,title:"",isUploading:!1,updateSupport:0,headers:n.headers}),c=t.reactive({}),l=()=>{(()=>{M.value=n.uploadUrl;const e=[`updateSupport=${u.updateSupport}`];n.dataType&&e.push(`dataType=${n.dataType}`),Object.keys(c).length&&Object.keys(c).forEach(t=>{e.push(`${t}=${c[t]}`)}),e.length>0&&(M.value+="?"+e.join("&"))})(),t.nextTick(()=>{s.value.submit()})},N=async()=>{if(n.templateUrl)try{const e=((e,t={})=>{if(!e)return"";try{const i=new URL(e,window.location.origin);return Object.keys(t).forEach(e=>{void 0!==t[e]&&null!==t[e]&&i.searchParams.append(e,t[e])}),i.toString()}catch(Tn){const r=Object.keys(t).filter(e=>void 0!==t[e]&&null!==t[e]).map(e=>`${encodeURIComponent(e)}=${encodeURIComponent(t[e])}`).join("&");return r?e.includes("?")?`${e}&${r}`:`${e}?${r}`:e}})(n.templateUrl,{...c}),t=await fetch(e,{method:"POST",headers:n.headers||{}});if(!t.ok)throw new Error(`下载失败,状态码:${t.status}`);const i=await t.blob(),r=window.URL.createObjectURL(i),o=document.createElement("a");o.style.display="none",o.href=r;const a=`${n.templateTitle||""}导入模板.xlsx`;o.download=a,document.body.appendChild(o),o.click(),document.body.removeChild(o),window.URL.revokeObjectURL(r)}catch(Tn){a.ElMessage.error("模板下载失败,请稍后重试")}else a.ElMessage.error("未配置模板下载地址")},g=(e,t,i)=>{u.isUploading=!0},d=(e,t,i)=>{u.open=!1,u.isUploading=!1,s.value.handleRemove(t);let n=e.msg;500==e.code&&null==e.msg&&(n="文件导入失败,请检查导入文件是否正确"),a.ElMessageBox.alert('<div style="overflow: auto;overflow-x: hidden;max-height: 70vh;padding: 10px 20px 0;">'+n+"</div>","导入结果",{dangerouslyUseHTMLString:!0,confirmButtonText:"确定"}),r("loadSucccess")},T=(e,t,i)=>{u.isUploading=!1,s.value.handleRemove(t),a.ElMessageBox.alert('<div style="overflow: auto;overflow-x: hidden;max-height: 70vh;padding: 10px 20px 0;">文件导入失败,请重新导入</div>',"导入结果",{dangerouslyUseHTMLString:!0,confirmButtonText:"确定"})},j=()=>{u.open=!1,u.isUploading=!1,s.value.clearFiles()};return i({init:e=>{u.open=!0,e&&Object.assign(c,e)}}),(i,r)=>{const n=t.resolveComponent("el-icon"),a=t.resolveComponent("el-checkbox"),c=t.resolveComponent("el-link"),y=t.resolveComponent("el-upload"),D=t.resolveComponent("el-button"),I=t.resolveComponent("el-dialog");return t.openBlock(),t.createBlock(I,{title:e.title+"导入",modelValue:u.open,"onUpdate:modelValue":r[2]||(r[2]=e=>u.open=e),width:"400px","append-to-body":"",onClose:j},{footer:t.withCtx(()=>[t.createElementVNode("div",Yt,[t.createVNode(D,{onClick:r[1]||(r[1]=e=>u.open=!1)},{default:t.withCtx(()=>[t.createTextVNode("取 消")]),_:1}),t.createVNode(D,{type:"primary",onClick:l},{default:t.withCtx(()=>[t.createTextVNode("确 定")]),_:1})])]),default:t.withCtx(()=>[t.createVNode(y,{ref_key:"uploadRef",ref:s,limit:1,accept:".xlsx, .xls",headers:u.headers,action:M.value,disabled:u.isUploading,"on-progress":g,"on-success":d,"on-error":T,"auto-upload":!1,drag:""},{tip:t.withCtx(()=>[t.createElementVNode("div",wt,[e.showCheckBox?(t.openBlock(),t.createElementBlock("div",kt,[t.createVNode(a,{modelValue:u.updateSupport,"onUpdate:modelValue":r[0]||(r[0]=e=>u.updateSupport=e)},null,8,["modelValue"]),t.createTextVNode(" 是否更新已经存在的数据 ")])):t.createCommentVNode("",!0),bt,t.createVNode(c,{type:"primary",underline:!1,style:{"font-size":"12px","vertical-align":"baseline"},onClick:N},{default:t.withCtx(()=>[t.createTextVNode(" 下载模板 ")]),_:1})])]),default:t.withCtx(()=>[t.createVNode(n,{class:"el-icon-upload"},{default:t.withCtx(()=>[t.createVNode(t.unref(o.UploadFilled))]),_:1}),xt]),_:1},8,["headers","action","disabled"])]),_:1},8,["title","modelValue"])}}},Qt=e=>(t.pushScopeId("data-v-42a8ab57"),e=e(),t.popScopeId(),e),Rt={key:0,class:"search-container"},_t={class:"table-box"},Pt=["onClick"],Bt={slot:"header",class:"clearfix"},Ht=Qt(()=>t.createElementVNode("span",{style:{"font-weight":"bold"}},"已选列表",-1)),Vt={class:"tag-container"},Wt={class:"tag-name"},Gt={class:"dialog-footer"},Ft={__name:"index",props:{mode:{type:String,default:"ElDialog",validator:e=>["ElDialog","ElDrawer"].includes(e)},width:{type:String,default:"80vw"},height:{type:String,default:"45vh"},select:{type:[Array,Object,String],default:()=>[]},tableColumns:{type:Array,default:()=>[]},value:{type:String,default:""},names:{type:String,default:""},request:{type:Function,required:!0},selectOptions:{type:Object,default:()=>({show:!1,multiple:!0,valueKey:"id",nameKey:"name",reserveSelection:!0})},showPagination:{type:Boolean,default:!0}},emits:["change","update:names","input","update:value","action"],setup(e,{expose:i,emit:r}){const n=e,{isMobile:o}=re(),{proxy:s}=t.getCurrentInstance(),M=t.ref({open:!1,title:""}),u=t.computed(()=>n.tableColumns.filter(e=>e.query)),c=t.reactive({queryParams:{pageNum:1,pageSize:20}}),{queryParams:l}=t.toRefs(c),N=async()=>{var e;await a.ElMessage.warning("您确定要全部删除吗?"),p.value=[],null==(e=T.value)||e.clearSelection()},g=()=>{l.value.pageNum=1,A()},d=()=>{s.$refs.queryFormRef.resetFields(),l.value.pageNum=1,A()},T=t.ref(null),j=t.ref([]),y=t.ref(!1),D=t.ref(!1),I=e=>{if(0===e.columnIndex)return"disabledCheck"},p=t.ref([]),L=e=>{let t="";return n.selectOptions.multiple||(t+=" selected-radio"),t},z=e=>{var t;if(!D.value)if(n.selectOptions.multiple)p.value=e;else{if(e.length>1){let i=e.shift();null==(t=T.value)||t.toggleRowSelection(i,!1)}p.value=e}},h=t.ref(0),A=async()=>{var e,i;try{y.value=!0;let r=await n.request(l.value);if(200!==r.code)return;j.value=null!=(i=null!=(e=null==r?void 0:r.rows)?e:r.data)?i:[],h.value=(null==r?void 0:r.total)||0,await t.nextTick(),f()}catch(Tn){j.value=[],h.value=0}finally{y.value=!1}},C=()=>{n.selectOptions.multiple?(r("update:value",p.value.map(e=>e[n.selectOptions.valueKey]).join(",")),r("update:names",p.value.map(e=>e[n.selectOptions.nameKey]).join(",")),r("update:select",p.value),r("change",p.value)):(r("update:value",p.value[0]?String(p.value[0][n.selectOptions.valueKey]):""),r("update:names",p.value[0]?String(p.value[0][n.selectOptions.nameKey]):""),r("update:select",p.value[0]||""),r("change",p.value[0]||"")),S()},S=()=>{M.value.open=!1,p.value=[],s.$refs.queryFormRef.resetFields(),l.value={pageNum:1,pageSize:20}};t.watch(()=>M.value.open,e=>{e?(n.value&&(p.value=String(n.value).split(",").filter(e=>e).map((e,t)=>({[n.selectOptions.valueKey]:e,[n.selectOptions.nameKey]:n.names.split(",")[t]}))),n.select&&(p.value=Array.isArray(n.select)?n.select:[n.select])):p.value=[]});const f=()=>{var e;D.value=!0,p.value.length?j.value.forEach(e=>{var t;const i=p.value.find(t=>String(t[n.selectOptions.valueKey])==String(e[n.selectOptions.valueKey]));null==(t=T.value)||t.toggleRowSelection(e,!!i)}):null==(e=T.value)||e.clearSelection(),D.value=!1};return i({open:({title:e,open:t},i={})=>{M.value.title=e,M.value.open=t,l.value={...l.value,...i},A()}}),(i,a)=>{const s=t.resolveComponent("el-input"),c=t.resolveComponent("el-option"),D=t.resolveComponent("el-select"),m=t.resolveComponent("el-form-item"),v=t.resolveComponent("el-button"),E=t.resolveComponent("el-form"),O=t.resolveComponent("el-card"),x=t.resolveComponent("el-table-column"),w=t.resolveComponent("dict-tag"),k=t.resolveComponent("el-table"),b=t.resolveComponent("el-pagination"),Y=t.resolveComponent("el-tag"),U=t.resolveComponent("el-empty"),Q=t.resolveDirective("loading");return t.openBlock(),t.createBlock(t.resolveDynamicComponent(e.mode),t.mergeProps({onClose:S,"destroy-on-close":"",modelValue:M.value.open,"onUpdate:modelValue":a[4]||(a[4]=e=>M.value.open=e),title:M.value.title,width:e.width,size:e.width,fullscreen:t.unref(o),"close-on-click-modal":!1,"append-to-body":""},{...i.$attrs}),{footer:t.withCtx(()=>[t.createElementVNode("div",Gt,[t.createVNode(v,{size:t.unref(o)?"small":"",onClick:S},{default:t.withCtx(()=>[t.createTextVNode("关 闭")]),_:1},8,["size"]),e.selectOptions.show?(t.openBlock(),t.createBlock(v,{key:0,size:t.unref(o)?"small":"",onClick:C},{default:t.withCtx(()=>[t.createTextVNode("确 定")]),_:1},8,["size"])):t.createCommentVNode("",!0)])]),default:t.withCtx(()=>[t.unref(u).length?(t.openBlock(),t.createElementBlock("div",Rt,[t.createVNode(O,{shadow:"hover"},{default:t.withCtx(()=>[t.createVNode(E,{size:t.unref(o)?"small":"",ref:"queryFormRef",model:t.unref(l),inline:!0},{default:t.withCtx(()=>[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(t.unref(u),e=>(t.openBlock(),t.createBlock(m,{label:e.label,prop:e.query.queryKey||e.prop,key:e.query.queryKey},{default:t.withCtx(()=>["input"===e.query.type?(t.openBlock(),t.createBlock(s,{key:0,modelValue:t.unref(l)[e.query.queryKey||e.prop],"onUpdate:modelValue":i=>t.unref(l)[e.query.queryKey||e.prop]=i,placeholder:e.query.placeholder||"请输入",clearable:!1!==e.query.clearable,onChange:g,onKeyup:t.withKeys(g,["enter"])},null,8,["modelValue","onUpdate:modelValue","placeholder","clearable","onKeyup"])):"select"===e.query.type?(t.openBlock(),t.createBlock(D,{key:1,onChange:g,clearable:!1!==e.query.clearable,filterable:!1!==e.query.clearable,modelValue:t.unref(l)[e.query.queryKey||e.prop],"onUpdate:modelValue":i=>t.unref(l)[e.query.queryKey||e.prop]=i,placeholder:e.query.placeholder||"请选择"},{default:t.withCtx(()=>[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(e.query.data,i=>{var r,n,o;return t.openBlock(),t.createBlock(c,{key:i[(null==(r=e.query.optionProps)?void 0:r.value)||"value"],label:i[(null==(n=e.query.optionProps)?void 0:n.label)||"label"],value:i[(null==(o=e.query.optionProps)?void 0:o.value)||"value"]},null,8,["label","value"])}),128))]),_:2},1032,["clearable","filterable","modelValue","onUpdate:modelValue","placeholder"])):(t.openBlock(),t.createBlock(s,{key:2,modelValue:t.unref(l)[e.query.queryKey||e.prop],"onUpdate:modelValue":i=>t.unref(l)[e.query.queryKey||e.prop]=i,placeholder:e.query.placeholder||"请输入",clearable:!1!==e.query.clearable,onChange:g,onKeyup:t.withKeys(g,["enter"])},null,8,["modelValue","onUpdate:modelValue","placeholder","clearable","onKeyup"]))]),_:2},1032,["label","prop"]))),128)),t.createVNode(m,null,{default:t.withCtx(()=>[t.createVNode(v,{onClick:d},{default:t.withCtx(()=>[t.createTextVNode("重置")]),_:1}),t.createVNode(v,{type:"primary",onClick:g},{default:t.withCtx(()=>[t.createTextVNode("查询")]),_:1})]),_:1})]),_:1},8,["size","model"])]),_:1})])):t.createCommentVNode("",!0),t.createElementVNode("div",{style:t.normalizeStyle({height:t.unref(o)?"100%":e.height}),class:t.normalizeClass(["content-box",t.unref(o)&&"content-box-mobile"])},[t.createElementVNode("div",_t,[t.withDirectives((t.openBlock(),t.createBlock(k,{size:t.unref(o)?"small":"",class:"table-content",ref_key:"tableRef",ref:T,data:j.value,border:"",height:"100%","header-cell-class-name":e.selectOptions.multiple?"":I,onSelectionChange:z,"row-class-name":L,"row-key":e.selectOptions.valueKey},{default:t.withCtx(()=>[e.selectOptions.show?(t.openBlock(),t.createBlock(x,{key:0,"reserve-selection":e.selectOptions.reserveSelection,type:"selection",width:"40",align:"center",fixed:"left"},null,8,["reserve-selection"])):t.createCommentVNode("",!0),(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(e.tableColumns,e=>(t.openBlock(),t.createElementBlock(t.Fragment,{key:e.prop},[e.dict?(t.openBlock(),t.createBlock(x,t.mergeProps({key:0},{...e},{align:"center","show-overflow-tooltip":""}),{default:t.withCtx(i=>[t.createVNode(w,{options:e.dict,value:i.row[e.prop]},null,8,["options","value"])]),_:2},1040)):(t.openBlock(),t.createBlock(x,t.mergeProps({key:1},{...e},{align:"center","show-overflow-tooltip":""}),{default:t.withCtx(i=>[t.createElementVNode("span",{onClick:t=>((e,t,i)=>{e&&r("action",t,i)})(e.action,e.prop,i),class:t.normalizeClass({linkStyle:e.action||!1})},t.toDisplayString(e.format?e.format(i.row,i.$index):i.row[e.prop]),11,Pt)]),_:2},1040))],64))),128))]),_:1},8,["size","data","header-cell-class-name","row-key"])),[[Q,y.value]]),e.showPagination?(t.openBlock(),t.createElementBlock(t.Fragment,{key:0},[t.unref(o)?(t.openBlock(),t.createBlock(b,{key:1,class:"pagination mobile-pagination",background:"",onSizeChange:A,onCurrentChange:A,layout:"total, prev, pager, next",total:h.value,"page-size":t.unref(l).pageSize,"onUpdate:page-size":a[2]||(a[2]=e=>t.unref(l).pageSize=e),"current-page":t.unref(l).pageNum,"onUpdate:current-page":a[3]||(a[3]=e=>t.unref(l).pageNum=e),"pager-count":5,small:""},null,8,["total","page-size","current-page"])):(t.openBlock(),t.createBlock(b,{key:0,class:"pagination",background:"",layout:"sizes, total, prev, pager, next, jumper",total:h.value,"page-size":t.unref(l).pageSize,"onUpdate:page-size":a[0]||(a[0]=e=>t.unref(l).pageSize=e),"current-page":t.unref(l).pageNum,"onUpdate:current-page":a[1]||(a[1]=e=>t.unref(l).pageNum=e),"page-sizes":[10,20,30,40,50],onSizeChange:A,onCurrentChange:A},null,8,["total","page-size","current-page"]))],64)):t.createCommentVNode("",!0)]),e.selectOptions.show?(t.openBlock(),t.createBlock(O,{key:0,class:"tag-card",shadow:"never"},{default:t.withCtx(()=>[t.createElementVNode("div",Bt,[Ht,t.createVNode(v,{style:{float:"right",padding:"3px 0"},link:"",onClick:N},{default:t.withCtx(()=>[t.createTextVNode("全部删除")]),_:1})]),t.createElementVNode("div",Vt,[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(p.value,i=>(t.openBlock(),t.createElementBlock("div",{key:i[e.selectOptions.valueKey]},[t.createVNode(Y,{class:"tag-item",onClose:e=>{return t=i,p.value=p.value.filter(e=>e[n.selectOptions.valueKey]!==t[n.selectOptions.valueKey]),void f();var t},closable:""},{default:t.withCtx(()=>[t.createElementVNode("span",Wt,t.toDisplayString(i[e.selectOptions.nameKey]||i[e.selectOptions.valueKey]),1)]),_:2},1032,["onClose"])]))),128)),p.value.length?t.createCommentVNode("",!0):(t.openBlock(),t.createBlock(U,{key:0,description:"暂未选择"}))])]),_:1})):t.createCommentVNode("",!0)],6)]),_:1},16,["modelValue","title","width","size","fullscreen"])}}},Zt=C(Ft,[["__scopeId","data-v-42a8ab57"]]),Jt={class:"action-container"},qt={key:0,class:"layer-switch"},Kt={key:1,class:"legendContainer"},$t={__name:"index",props:{legendConfig:{type:Array,default:()=>[]},height:{type:String,default:"80vh"},width:{type:String,default:"100%"},staticMarkers:{type:Array,default:()=>[]},dynamicMarkers:{type:Array,default:()=>[]},polylines:{type:Array,default:()=>[]},polygons:{type:Array,default:()=>[]},bezierCurves:{type:Array,default:()=>[]},circles:{type:Array,default:()=>[]},center:{type:[String,Array],default:()=>[116.397428,39.90923]},mapStyle:{type:String,default:()=>"amap://styles/grey"},autoFitView:{type:Boolean,default:!0},changeMapType:{type:Boolean,default:!0},viewMode:{type:String,default:"2D"},amapKey:{type:String,default:"",required:!0}},emits:["loaded","overlay-click","overlay-mouseover","overlay-mouseout"],setup(e,{expose:i,emit:r}){const n=e;t.useCssVars(t=>({c5256a18:e.width,"1325cc8e":e.height}));const o=t.ref(null),a=t.shallowRef(null),s=t.ref([]),u=t.ref(!1),c=t.shallowRef(null);t.shallowRef(null);const l=t.shallowRef(null),N=t.shallowRef([]),g=t.shallowRef([]),d=t.shallowRef([]),T=t.shallowRef([]),j=t.shallowRef([]),y=t.shallowRef([]),D=t.shallowRef([]),I=t.shallowRef([]),p=t.shallowRef(new Map),L=t.shallowRef(new Map),z=t.reactive({currentZoom:10,baseZoom:10,minTextVisibleRadius:30,minTextVisibleArea:2e3,markerMinDistance:20,markerClusterDistance:40,circleDefaultConfig:{strokeColor:"#1890ff",strokeOpacity:1,strokeWeight:3,fillColor:"#1890ff",fillOpacity:.1,draggable:!1},markerDefaultConfig:{icon:"https://a.amap.com/jsapi_demos/static/demo-center/icons/poi-marker-default.png",size:{width:26,height:32}},polylineDefaultConfig:{isOutline:!0,outlineColor:"#ffffff",borderWeight:2,strokeColor:"#1890ff",strokeOpacity:1,strokeWeight:8,strokeStyle:"solid",lineJoin:"round",lineCap:"round",showDir:!0,dirColor:"white",dirIconSize:20},bezierCurveDefaultConfig:{isOutline:!0,outlineColor:"#ffffff",borderWeight:2,strokeColor:"#1890ff",strokeOpacity:1,strokeWeight:8,strokeStyle:"solid",lineJoin:"round",lineCap:"round",showDir:!0,dirColor:"white",dirIconSize:20},polygonDefaultConfig:{fillColor:"#1890ff",strokeColor:"#1890ff",fillOpacity:.1,strokeOpacity:1,strokeWeight:3,strokeStyle:"dashed",strokeDasharray:[10,5],draggable:!1},textLabelDefaultStyle:{"background-color":"rgba(255, 255, 255, 0.8)","border-radius":"4px","box-shadow":"0 2px 6px rgba(0, 0, 0, 0.2)",padding:"4px 8px","text-align":"center","font-size":"12px","font-weight":"bold",color:"#333",border:"1px solid #1890ff"}});t.watch(()=>n.center,e=>{a.value&&e&&E(e)},{deep:!0}),t.watch(()=>n.circles,(e,t)=>{a.value&&(M.isEqual(e,t)||(P(),e&&e.length&&U(e),n.autoFitView&&O()))},{deep:!0}),t.watch(()=>n.staticMarkers,(e,t)=>{a.value&&(M.isEqual(e,t)||(B(),e&&e.length&&b(e),n.autoFitView&&O()))},{deep:!0}),t.watch(()=>n.dynamicMarkers,(e,t)=>{a.value&&(M.isEqual(e,t)||(H(),e&&e.length&&Y(e),n.autoFitView&&O()))},{deep:!0}),t.watch(()=>n.polylines,(e,t)=>{a.value&&(M.isEqual(e,t)||(V(),e&&e.length&&Q(e),n.autoFitView&&O()))},{deep:!0}),t.watch(()=>n.polygons,(e,t)=>{a.value&&(M.isEqual(e,t)||(W(),e&&e.length&&R(e),n.autoFitView&&O()))},{deep:!0}),t.watch(()=>n.bezierCurves,(e,t)=>{a.value&&(M.isEqual(e,t)||(G(),e&&e.length&&_(e),n.autoFitView&&O()))},{deep:!0});t.onMounted(async()=>{await h(),a.value&&(a.value.on("zoomend",()=>{F()}),a.value.on("moveend",()=>{F()})),b(n.staticMarkers),Y(n.dynamicMarkers),Q(n.polylines),R(n.polygons),_(n.bezierCurves),U(n.circles),n.legendConfig&&n.legendConfig.length&&x(),O(),r("loaded",a.value)}),t.onBeforeUnmount(()=>{a.value&&(a.value.off("zoomend"),a.value.off("moveend"),l.value&&(a.value.removeControl(l.value),l.value=null),B(),H(),V(),W(),G(),P(),L.value.forEach(e=>{e.clearOverlays()}),L.value.clear(),a.value.destroy(),a.value=null),N.value=[],g.value=[],d.value=[],T.value=[],j.value=[],y.value=[],D.value=[],I.value=[],p.value.clear()});const h=async()=>{try{const e=await A.default.load({key:n.amapKey,version:"2.0",plugins:["AMap.Marker","AMap.Polyline","AMap.Polygon","AMap.BezierCurve","AMap.Circle","AMap.Text","AMap.LabelMarker","AMap.BezierCurveEditor","AMap.TileLayer.Satellite","AMap.ControlBar","AMap.OverlayGroup"]}),t={viewMode:n.viewMode,zoom:15,mapStyle:n.mapStyle,center:C(n.center)||[116.397428,39.90923]};"3D"===n.viewMode&&(t.pitch=45),a.value=new e.Map(o.value,t),c.value=new e.TileLayer.Satellite({zIndex:1}),"3D"===n.viewMode&&(l.value||(l.value=new e.ControlBar({position:{bottom:"120px",zIndex:20}}),a.value.addControl(l.value))),z.currentZoom=a.value.getZoom()}catch(e){}},C=e=>"string"==typeof e&&e.includes(",")?e.split(",").map(Number):e,S=e=>e.map(e=>"string"==typeof e?e.split(",").map(Number):e),f=e=>Object.entries(e).map(([e,t])=>`${e}: ${t}`).join("; "),m=(e,t)=>{const i=(e=>{if(!L.value.has(e)){const t=new AMap.OverlayGroup;L.value.set(e,t)}return L.value.get(e)})(t);i.addOverlay(e)},v=e=>{const t=L.value.get(e);t&&(t.clearOverlays(),L.value.delete(e))},E=e=>{a.value&&a.value.setCenter(C(e))},O=(e=null)=>{if(a.value){const t=[...N.value,...g.value,...d.value,...T.value,...j.value,...y.value];t.length>0&&(e?a.value.setFitView(t,!1,e):a.value.setFitView(t))}},x=()=>{s.value=n.legendConfig.filter(e=>void 0===e.defaultVisible||!0===e.defaultVisible).map(e=>e.value),w(s.value)},w=e=>{p.value.clear(),e.forEach(e=>{p.value.set(e,!0)}),n.legendConfig.map(e=>e.value).forEach(t=>{((e,t)=>{const i=L.value.get(e);i&&(t?i.show():i.hide())})(t,e.includes(t))})},k=e=>{e?(a.value.setMapStyle(null),c.value.setMap(a.value),a.value.setFeatures(["bg"])):(a.value.setMapStyle(n.mapStyle),c.value.setMap(null),a.value.setFeatures(["bg","building","point","road","land","poi"]))},b=e=>{e.forEach(e=>{const{position:t,icon:i,size:n,blink:o,label:s,title:M,textLabelDefaultStyle:u,type:c}=e;if(t){const l=new AMap.Marker({position:C(t),icon:new AMap.Icon({image:i||z.markerDefaultConfig.icon,imageSize:n?new AMap.Size(n.width,n.height):new AMap.Size(z.markerDefaultConfig.size.width,z.markerDefaultConfig.size.height)}),size:n?new AMap.Size(n.width,n.height):new AMap.Size(z.markerDefaultConfig.size.width,z.markerDefaultConfig.size.height),offset:n?new AMap.Pixel(-n.width/2,-n.height):new AMap.Pixel(-z.markerDefaultConfig.size.width/2,-z.markerDefaultConfig.size.height),map:a.value,title:M});o&&l.dom&&l.dom.querySelector(".amap-icon").classList.add("blinking-marker"),s&&l.setLabel({direction:"top",offset:new AMap.Pixel(0,-5),content:`<div title="${s}" style="${f({...z.textLabelDefaultStyle,...u})}" class='info'>${s}</div>`}),l.on("click",()=>{r("overlay-click",{type:"staticMarker",data:e})}),l.originalData=e,N.value.push(l),c&&m(l,c)}})},Y=e=>{e.forEach(e=>{const{position:t,icon:i,size:n,blink:o,label:s,title:M,textLabelDefaultStyle:u,type:c}=e;if(t){const l=new AMap.Marker({position:C(t),icon:new AMap.Icon({image:i||z.markerDefaultConfig.icon,imageSize:n?new AMap.Size(n.width,n.height):new AMap.Size(z.markerDefaultConfig.size.width,z.markerDefaultConfig.size.height)}),offset:n?new AMap.Pixel(-n.width/2,-n.height):new AMap.Pixel(-z.markerDefaultConfig.size.width/2,-z.markerDefaultConfig.size.height),size:n?new AMap.Size(n.width,n.height):new AMap.Size(z.markerDefaultConfig.size.width,z.markerDefaultConfig.size.height),map:a.value,title:M});o&&l.dom&&l.dom.querySelector(".amap-icon").classList.add("blinking-marker"),s&&l.setLabel({direction:"top",offset:new AMap.Pixel(0,-5),content:`<div title="${s}" style="${f({...z.textLabelDefaultStyle,...u})}" class='info'>${s}</div>`}),l.on("click",()=>{r("overlay-click",{type:"marker",data:e})}),l.originalData=e,g.value.push(l),c&&m(l,c)}})},U=e=>{e.forEach(e=>{if(e.radius&&e.center){const t=new AMap.Circle({...z.circleDefaultConfig,...e,center:C(e.center),radius:e.radius});a.value.add(t);let i=null;e.label&&(i=new AMap.Text({text:e.label,position:C(e.center),zIndex:1,style:{...z.textLabelDefaultStyle,...e.labelStyle||{}},offset:new AMap.Pixel(0,0),anchor:"center",zooms:[1,20]}),a.value.add(i),D.value.push({instance:i,circleId:`${C(e.center).join(",")}|${e.radius}`,circleInstance:t,radius:e.radius})),t.on("click",()=>{r("overlay-click",{type:"circle",data:e})}),t.on("mouseover",()=>{t.setOptions({strokeOpacity:1,strokeWeight:e.strokeWeight?2*e.strokeWeight:2*z.circleDefaultConfig.strokeWeight}),r("overlay-mouseover",{type:"circle",data:e})}),t.on("mouseout",()=>{t.setOptions({strokeOpacity:e.strokeOpacity||z.circleDefaultConfig.strokeOpacity,strokeWeight:e.strokeWeight||z.circleDefaultConfig.strokeWeight}),r("overlay-mouseout",{type:"circle",data:e})}),t.originalData=e,y.value.push(t),e.type&&(m(t,e.type),i&&m(i,e.type))}})},Q=e=>{e.forEach(e=>{if(e.path&&e.path.length){const t=new AMap.Polyline({...z.polylineDefaultConfig,...e,path:S(e.path),map:a.value});t.on("click",()=>{r("overlay-click",{type:"polyline",data:e})}),t.on("mouseover",()=>{t.setOptions({strokeOpacity:1,borderWeight:e.borderWeight?2*e.borderWeight:2*z.polylineDefaultConfig.borderWeight}),r("overlay-mouseover",{type:"polyline",data:e})}),t.on("mouseout",()=>{t.setOptions({strokeOpacity:e.strokeOpacity?e.strokeOpacity:z.polylineDefaultConfig.strokeOpacity,borderWeight:e.borderWeight?e.borderWeight:z.polylineDefaultConfig.borderWeight}),r("overlay-mouseout",{type:"polyline",data:e})}),t.originalData=e,d.value.push(t),e.type&&m(t,e.type)}})},R=e=>{e.forEach(e=>{if(e.path&&e.path.length){const t=new AMap.Polygon({...z.polygonDefaultConfig,...e,path:S(e.path),map:a.value});let i=null;if(e.label){const r=(e=>{if(!e||0===e.length)return[0,0];let t=0,i=0;for(let r=0;r<e.length;r++)t+=e[r][0],i+=e[r][1];return[t/e.length,i/e.length]})(S(e.path));i=new AMap.Text({text:e.label,position:r,zIndex:1,style:{...z.textLabelDefaultStyle,...e.labelStyle||{}},offset:new AMap.Pixel(0,0),anchor:"center",zooms:[1,20]}),a.value.add(i),I.value.push({instance:i,polygonId:S(e.path).join("|"),polygonInstance:t,path:S(e.path)})}t.on("click",()=>{r("overlay-click",{type:"polygon",data:e})}),t.on("mouseover",()=>{t.setOptions({strokeOpacity:1,strokeWeight:e.strokeWeight?2*e.strokeWeight:2*z.polygonDefaultConfig.strokeWeight}),r("overlay-mouseover",{type:"polygon",data:e})}),t.on("mouseout",()=>{t.setOptions({strokeOpacity:e.strokeOpacity?e.strokeOpacity:z.polygonDefaultConfig.strokeOpacity,strokeWeight:e.strokeWeight?e.strokeWeight:z.polygonDefaultConfig.strokeWeight}),r("overlay-mouseout",{type:"polygon",data:e})}),t.originalData=e,T.value.push(t),e.type&&(m(t,e.type),i&&m(i,e.type))}})},_=e=>{e.forEach(e=>{if(e.path&&e.path.length){const i=new AMap.BezierCurve({...z.bezierCurveDefaultConfig,...e,path:(t=e.path,t.map(e=>e.map(e=>"string"==typeof e?Number(e):e))),map:a.value}),n=i.getPath();n&&n.length>0&&setTimeout(()=>{i.setPath(n)},1e3),i.on("click",()=>{r("overlay-click",{type:"bezierCurve",data:e})}),i.on("mouseover",()=>{i.setOptions({strokeOpacity:1,borderWeight:e.borderWeight?2*e.borderWeight:2*z.bezierCurveDefaultConfig.borderWeight}),r("overlay-mouseover",{type:"bezierCurve",data:e})}),i.on("mouseout",()=>{i.setOptions({strokeOpacity:e.strokeOpacity?e.strokeOpacity:z.bezierCurveDefaultConfig.strokeOpacity,borderWeight:e.borderWeight?e.borderWeight:z.bezierCurveDefaultConfig.borderWeight}),r("overlay-mouseout",{type:"bezierCurve",data:e})}),i.originalData=e,j.value.push(i),e.type&&m(i,e.type)}var t})},P=()=>{y.value.forEach(e=>{var t;e.off("click"),e.off("mouseover"),e.off("mouseout");const i=null==(t=e.originalData)?void 0:t.type;i&&v(i),e.setMap(null)}),y.value=[],D.value.forEach(e=>{e.instance.setMap(null)}),D.value=[]},B=()=>{N.value.forEach(e=>{var t;e.off("click"),e._clusterLabel&&(e._clusterLabel.off&&e._clusterLabel.off("click"),e._clusterLabel.setMap(null),e._clusterLabel=null);const i=null==(t=e.originalData)?void 0:t.type;i&&v(i),e.setMap(null)}),N.value=[]},H=()=>{g.value.forEach(e=>{var t;e.off("click"),e._clusterLabel&&(e._clusterLabel.off&&e._clusterLabel.off("click"),e._clusterLabel.setMap(null),e._clusterLabel=null);const i=null==(t=e.originalData)?void 0:t.type;i&&v(i),e.setMap(null)}),g.value=[]},V=()=>{d.value.forEach(e=>{var t;e.off("click"),e.off("mouseover"),e.off("mouseout");const i=null==(t=e.originalData)?void 0:t.type;i&&v(i),e.setMap(null)}),d.value=[]},W=()=>{T.value.forEach(e=>{var t;e.off("click"),e.off("mouseover"),e.off("mouseout");const i=null==(t=e.originalData)?void 0:t.type;i&&v(i),e.setMap(null)}),T.value=[],I.value.forEach(e=>{e.instance.setMap(null)}),I.value=[]},G=()=>{j.value.forEach(e=>{var t;e.off("click"),e.off("mouseover"),e.off("mouseout");const i=null==(t=e.originalData)?void 0:t.type;i&&v(i),e.setMap(null)}),j.value=[]},F=()=>{a.value&&(D.value.forEach(e=>{if(!e.circleInstance||!e.instance||!e.instance.dom)return;const t=e.circleInstance.getCenter(),i=e.radius,r=Z(t,i),n=e.instance.dom.getBoundingClientRect().width;e.instance.dom.style.opacity=n>1.5*r?"0":"1"}),I.value.forEach(e=>{if(!e.polygonInstance||!e.instance||!e.instance.dom)return;const t=J(e.path),i=e.instance.dom.offsetWidth*e.instance.dom.offsetHeight;e.instance.dom.style.opacity=i>.3*t?"0":"1"}))},Z=(e,t)=>{if(!a.value)return 0;const i=new AMap.LngLat(e.lng,e.lat).offset(t,90),r=a.value.lngLatToContainer(e),n=a.value.lngLatToContainer(i),o=n.x-r.x,s=n.y-r.y;return Math.sqrt(o*o+s*s)},J=e=>{if(!a.value||!e||e.length<3)return 0;const t=e.map(e=>{const t=new AMap.LngLat(e[0],e[1]),i=a.value.lngLatToContainer(t);return[i.x,i.y]});let i=0;for(let r=0,n=t.length-1;r<t.length;n=r++)i+=(t[n][0]+t[r][0])*(t[n][1]-t[r][1]);return Math.abs(i/2)};return i({fitView:O,updateCenter:E,handleLayerChange:k}),(i,r)=>{const n=t.resolveComponent("el-switch"),a=t.resolveComponent("el-checkbox"),M=t.resolveComponent("el-checkbox-group");return t.openBlock(),t.createElementBlock("div",{class:"mapViewContainer",id:"mapContainer",ref_key:"mapContainer",ref:o},[t.createElementVNode("div",Jt,[e.changeMapType?(t.openBlock(),t.createElementBlock("div",qt,[t.createVNode(n,{modelValue:u.value,"onUpdate:modelValue":r[0]||(r[0]=e=>u.value=e),"active-text":"卫星图","inactive-text":"标准图",onChange:k},null,8,["modelValue"])])):t.createCommentVNode("",!0),e.legendConfig.length?(t.openBlock(),t.createElementBlock("div",Kt,[t.createVNode(M,{modelValue:s.value,"onUpdate:modelValue":r[1]||(r[1]=e=>s.value=e),onChange:w},{default:t.withCtx(()=>[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(e.legendConfig,e=>(t.openBlock(),t.createBlock(a,{key:e.value,label:e.value},{default:t.withCtx(()=>[t.createTextVNode(t.toDisplayString(e.label),1)]),_:2},1032,["label"]))),128))]),_:1},8,["modelValue"])])):t.createCommentVNode("",!0)])],512)}}},Xt=C($t,[["__scopeId","data-v-24729613"]]),ei=e=>(t.pushScopeId("data-v-d89fd5ba"),e=e(),t.popScopeId(),e),ti={key:0,class:"btn-container"},ii={class:"help-button-container"},ri={key:0,class:"layer-switch"},ni={class:"search-container"},oi={class:"place-suggestion-item"},ai={class:"name"},si={class:"address"},Mi={class:"search-container"},ui={class:"delete-buttons"},ci={key:0},li={key:0},Ni={class:"dialog-footer"},gi=ei(()=>t.createElementVNode("div",{class:"operation-guide"},[t.createElementVNode("div",{class:"guide-section"},[t.createElementVNode("strong",null,"开始绘制:"),t.createElementVNode("ul",null,[t.createElementVNode("li",null,"在右侧选择绘制类型(多边形/圆形/折线等)"),t.createElementVNode("li",null,"选择后在地图上进行绘制操作"),t.createElementVNode("li",null,"点位:点击地图放置标记点"),t.createElementVNode("li",null,"折线/多边形:依次点击多个点完成绘制,鼠标右键结束"),t.createElementVNode("li",null,"圆形:长按鼠标左键拖动绘制圆形")])]),t.createElementVNode("div",{class:"guide-section"},[t.createElementVNode("strong",null,"编辑、拖拽覆盖物:"),t.createElementVNode("ul",null,[t.createElementVNode("li",null,[t.createElementVNode("strong",null,"左键双击"),t.createTextVNode("覆盖物(点除外)进入编辑模式")]),t.createElementVNode("li",null,"非圆形覆盖物支持直接拖拽移动"),t.createElementVNode("li",null,"进入编辑后拖拽控制点调整形状和位置"),t.createElementVNode("li",null,"编辑完成后右键地图空白处取消编辑")])]),t.createElementVNode("div",{class:"guide-section"},[t.createElementVNode("strong",null,"删除覆盖物:"),t.createElementVNode("ul",null,[t.createElementVNode("li",null,[t.createElementVNode("strong",null,"右键点击"),t.createTextVNode("覆盖物可删除单个图形")]),t.createElementVNode("li",null,"使用右侧批量操作按钮删除指定类型的所有图形"),t.createElementVNode("li",null,"使用清除所有按钮删除地图上的所有图形")])]),t.createElementVNode("div",{class:"guide-section"},[t.createElementVNode("strong",null,"其他功能:"),t.createElementVNode("ul",null,[t.createElementVNode("li",null,"使用地点搜索快速定位到指定位置"),t.createElementVNode("li",null,"切换卫星图/标准图查看不同地图样式"),t.createElementVNode("li",null,'绘制完成后点击"确认"保存,点击"取消"放弃修改')])])],-1)),di={class:"dialog-footer"},Ti={__name:"index",props:{title:{type:String,default:"地图绘制"},allowedTypes:{type:Array,default:()=>["point","polyline","polygon","circle","bezierCurve"],validator:e=>e.every(e=>["point","polyline","polygon","circle","bezierCurve"].includes(e))},width:{type:String,default:"80vw"},height:{type:String,default:"60vh"},mapStyle:{type:String,default:()=>"amap://styles/normal"},markers:{type:[Array,String],default:()=>[]},markerConfig:{type:Object,default:()=>({})},circles:{type:[Array,String],default:()=>[]},circleConfig:{type:Object,default:()=>({})},polylines:{type:[Array,String],default:()=>[]},polylineConfig:{type:Object,default:()=>({})},polygons:{type:[Array,String],default:()=>[]},polygonConfig:{type:Object,default:()=>({})},bezierCurves:{type:[Array,String],default:()=>[]},bezierCurveConfig:{type:Object,default:()=>({})},disabled:{type:Boolean,default:!1},multiple:{type:[Boolean,Array],default:!0,validator:e=>"boolean"==typeof e||!!Array.isArray(e)&&e.every(e=>["point","polyline","polygon","circle","bezierCurve"].includes(e))},isShowDefaultTriggerBtn:{type:Boolean,default:!0},formatJson:{type:Boolean,default:!0},center:{type:[String,Array,null],default:null},mapZoom:{type:Number,default:13},changeMapType:{type:Boolean,default:!0},amapKey:{type:String,default:"",required:!0}},emits:["update:markers","update:polylines","update:polygons","update:bezierCurves","update:circles"],setup(e,{expose:i,emit:r}){const n=e,{isMobile:s}=re(),M=t.computed({get:()=>Array.isArray(n.markers)?n.markers:ve(n.markers)?JSON.parse(n.markers):"string"==typeof n.markers&&n.markers?[n.markers]:[],set(e){r("update:markers",e)}}),u=t.computed({get(){if(n.polylines){let e=ve(n.polylines)?JSON.parse(n.polylines):n.polylines;return Array.isArray(e)&&e.some(e=>ve(e))&&(e=e.map(e=>ve(e)?JSON.parse(e):e)),Array.isArray(e)&&1===Ee(e)?e.length?[e]:[]:Array.isArray(e)&&Ee(e)>1?e:[]}return[]},set(e){r("update:polylines",e)}}),c=t.computed({get(){if(n.polygons){let e=ve(n.polygons)?JSON.parse(n.polygons):n.polygons;return Array.isArray(e)&&e.some(e=>ve(e))&&(e=e.map(e=>ve(e)?JSON.parse(e):e)),Array.isArray(e)&&1===Ee(e)?e.length?[e]:[]:Array.isArray(e)&&Ee(e)>1?e:[]}return[]},set(e){r("update:polygons",e)}}),l=t.computed({get(){if(n.bezierCurves){let e=ve(n.bezierCurves)?JSON.parse(n.polbezierCurvesylines):n.bezierCurves;return Array.isArray(e)&&e.some(e=>ve(e))&&(e=e.map(e=>ve(e)?JSON.parse(e):e)),Array.isArray(e)&&1===Ee(e)?e.length?[e]:[]:Array.isArray(e)&&Ee(e)>1?e:[]}return[]},set(e){r("update:bezierCurves",e)}}),N=t.computed({get(){if(n.circles){let e=ve(n.circles)?JSON.parse(n.circles):n.circles;return Array.isArray(e)&&e.some(e=>ve(e))&&(e=e.map(e=>ve(e)?JSON.parse(e):e)),Array.isArray(e)?e:"[object Object]"===Object.prototype.toString.call(e)?[e]:[]}return[]},set(e){r("update:circles",e)}}),g=t.ref(null),d=t.ref(!1),T=t.ref(!1),j=t.ref(!1),y=t.ref(""),D=t.ref(!1),I=t.ref(!1),p=t.shallowRef(null),L=t.shallowRef(null),z=t.ref([]),h=t.ref([]),C=t.ref([]),S=t.ref([]),f=t.ref([]),m=t.ref(null),v=t.ref(null),E=t.ref(null),O=t.ref(null),x=t.ref(null),w=t.ref(null),k=t.ref(""),b=t.ref(""),Y=t.ref(null),U=t.reactive({icon:"https://a.amap.com/jsapi_demos/static/demo-center/icons/poi-marker-default.png",size:{width:26,height:32}}),Q=t.reactive({isOutline:!0,outlineColor:"#ffffff",borderWeight:2,strokeColor:"#1890ff",strokeOpacity:1,strokeWeight:5,strokeStyle:"solid",lineJoin:"round",lineCap:"round",showDir:!0,dirColor:"white",dirIconSize:20}),R=t.reactive({isOutline:!0,outlineColor:"#ffffff",borderWeight:2,strokeColor:"#1890ff",strokeOpacity:1,strokeWeight:3,strokeStyle:"solid",lineJoin:"round",lineCap:"round",showDir:!0,dirColor:"white",dirIconSize:20}),_=t.reactive({fillColor:"#1890ff",strokeColor:"#1890ff",fillOpacity:.1,strokeOpacity:1,strokeWeight:3,strokeStyle:"dashed",strokeDasharray:[10,5],draggable:!1}),P=t.reactive({strokeColor:"#1890ff",strokeOpacity:1,strokeWeight:3,fillColor:"#1890ff",fillOpacity:.1,zIndex:10,draggable:!1});t.onBeforeUnmount(()=>{p.value&&(p.value.destroy(),p.value=null)});const B=e=>"boolean"==typeof n.multiple?n.multiple:!Array.isArray(n.multiple)||n.multiple.includes(e),H=()=>{D.value=!0,t.nextTick(()=>{V()})},V=async()=>{try{T.value=!0;const t=await A.default.load({key:n.amapKey,version:"2.0",plugins:["AMap.MouseTool","AMap.PolyEditor","AMap.PolygonEditor","AMap.CircleEditor","AMap.BezierCurveEditor","AMap.Geolocation","AMap.PlaceSearch"]}),i={zoom:n.mapZoom,mapStyle:n.mapStyle};n.center&&(i.center="string"==typeof(e=n.center)?e.split(",").map(Number):e),p.value=new t.Map(Y.value,i),g.value=new t.TileLayer.Satellite({zIndex:1});const r=new t.Geolocation({enableHighAccuracy:!0,timeout:1e4,zoomToAccuracy:!0,buttonPosition:"RB"});p.value.addControl(r),n.disabled||(L.value=new t.MouseTool(p.value),L.value.on("draw",Z)),p.value.on("rightclick",$),document.addEventListener("contextmenu",e=>{e.preventDefault()}),w.value=new t.PlaceSearch({pageSize:10,pageIndex:1,city:"",citylimit:!1,autoFitView:!0}),n.center?(G(),T.value=!1):r.getCurrentPosition((e,t)=>{"complete"===e?p.value&&p.value.setCenter([t.position.lng,t.position.lat]):p.value&&p.value.setCenter([116.397428,39.90923]),G(),T.value=!1})}catch(t){T.value=!1}var e},W=(e,t)=>{"circle"!==e&&(t.setDraggable(!0),t.on("mousedown",e=>{"circle"===y.value&&t.setDraggable(!1)}),t.on("mouseup",e=>{t.setDraggable(!0)}),t.on("dragend",i=>{"marker"===e&&q(t),"polyline"===e&&se(t),"polygon"===e&&Me(t),"bezierCurve"===e&&ue(t)})),t.on("rightclick",()=>{$(t)}),"marker"!==e&&t.on("dblclick",e=>{setTimeout(()=>{L.value&&L.value.close()}),X(t)})},G=()=>{if(!p.value)return;const e=window.AMap;z.value=[],h.value=[],C.value=[],S.value=[],f.value=[],M.value.forEach(t=>{const[i,r]=t.split(",").map(Number),{size:o,icon:a}=n.markerConfig,s=new e.Marker({position:[i,r],icon:new e.Icon({image:a||U.icon,imageSize:o?new e.Size(o.width,o.height):new e.Size(U.size.width,U.size.height)}),offset:o?new e.Pixel(-o.width/2,-o.height):new e.Pixel(-U.size.width/2,-U.size.height),size:o?new e.Size(o.width,o.height):new e.Size(U.size.width,U.size.height),map:p.value});W("marker",s),z.value.push({obj:s,position:t,type:"marker"})}),u.value.forEach(t=>{const i=t.map(t=>{const[i,r]=t.split(",").map(Number);return new e.LngLat(i,r)}),r=new e.Polyline({path:i,map:p.value,...Q,...n.polylineConfig});W("polyline",r),h.value.push({obj:r,path:t,type:"polyline"})}),c.value.forEach(t=>{const i=t.map(t=>{const[i,r]=t.split(",").map(Number);return new e.LngLat(i,r)}),r=new e.Polygon({path:i,map:p.value,..._,...n.polygonConfig});W("polygon",r),C.value.push({obj:r,path:t,type:"polygon"})}),l.value.forEach(t=>{const i=t.map(e=>e.map(e=>Number(e))),r=new e.BezierCurve({path:i,map:p.value,...R,...n.bezierCurveConfig});W("bezierCurve",r),S.value.push({obj:r,path:t,type:"bezierCurve"})}),N.value.forEach(t=>{const{center:i,radius:r}=t,[o,a]=i.split(",").map(Number),s=new e.Circle({center:[o,a],radius:r,...P,...n.circleConfig});p.value.add(s),W("circle",s),f.value.push({obj:s,center:i,radius:r,type:"circle"})});const t=[...z.value.map(e=>e.obj),...h.value.map(e=>e.obj),...C.value.map(e=>e.obj),...S.value.map(e=>e.obj),...f.value.map(e=>e.obj)];t.length>0&&p.value.setFitView(t)},F=e=>{if(L.value&&!n.disabled)switch(x.value&&ae(),e){case"point":const{size:e,icon:t}=n.markerConfig;L.value.marker({icon:new AMap.Icon({image:t||U.icon,imageSize:e?new AMap.Size(e.width,e.height):new AMap.Size(U.size.width,U.size.height)}),offset:e?new AMap.Pixel(-e.width/2,-e.height):new AMap.Pixel(-U.size.width/2,-U.size.height),size:e?new AMap.Size(e.width,e.height):new AMap.Size(U.size.width,U.size.height)});break;case"polyline":case"bezierCurve":L.value.polyline({...Q,...n.polylineConfig});break;case"polygon":L.value.polygon({..._,...n.polygonConfig});break;case"circle":L.value.circle({...P,...n.circleConfig})}},Z=e=>{if(j.value=!0,n.disabled)return;const{obj:t}=e;if(t instanceof AMap.Marker&&!B("point")?Ie():t instanceof AMap.Polyline&&"bezierCurve"!==y.value&&!B("polyline")?pe():t instanceof AMap.Polygon&&!B("polygon")?Le():(t instanceof AMap.BezierCurve||t instanceof AMap.Polyline&&"bezierCurve"===y.value)&&!B("bezierCurve")?ze():t instanceof AMap.Circle&&!B("circle")&&t._opts.radius&&he(),t instanceof AMap.Marker){const e=t.getPosition(),i={obj:t,position:`${e.lng},${e.lat}`,type:"marker"};z.value.push(i),W("marker",t)}else if(t instanceof AMap.Polyline)if("bezierCurve"===y.value)J(t);else{const e=t.getPath().map(e=>`${e.lng},${e.lat}`);e.length>1?(h.value.push({obj:t,path:e,type:"polyline"}),W("polyline",t)):t.setMap(null)}else if(t instanceof AMap.Polygon){const e=t.getPath().map(e=>`${e.lng},${e.lat}`);e.length>2?(C.value.push({obj:t,path:e,type:"polygon"}),W("polygon",t)):t.setMap(null)}else if(t instanceof AMap.BezierCurve){const e=t.getPath().map(e=>`${e.lng},${e.lat}`);e.length>2?(S.value.push({obj:t,path:e,type:"bezierCurve"}),W("bezierCurve",t)):t.setMap(null)}else if(t instanceof AMap.Circle){const e=t.getCenter(),i=t.getRadius();e&&i>0?(f.value.push({obj:t,center:`${e.lng},${e.lat}`,radius:i,type:"circle"}),W("circle",t)):t.setMap(null)}setTimeout(()=>{j.value=!1},100)},J=e=>{const t=e.getPath();if(t.length<2)return void e.setMap(null);e.setMap(null);const i=[];i.push([t[0].lng,t[0].lat]);for(let n=1;n<t.length;n++){const e=t[n-1],r=t[n],o=e.lng+.3*(r.lng-e.lng),a=e.lat+.3*(r.lat-e.lat);i.push([o,a,r.lng,r.lat])}const r=new AMap.BezierCurve({path:i,...R,...n.bezierCurveConfig,map:p.value});K(r),S.value.push({obj:r,path:i}),W("bezierCurve",r)},q=e=>{if(n.disabled)return;const t=e.getPosition(),i=z.value.findIndex(t=>t.obj._amap_id===e._amap_id);-1!==i&&(z.value[i].position=`${t.lng},${t.lat}`)},K=e=>{n.disabled||(E.value&&E.value.close(),E.value=new AMap.BezierCurveEditor(p.value,e),E.value.open(),x.value=e)},$=e=>{setTimeout(()=>{n.disabled||j.value||(e instanceof AMap.Marker?ee(e):e instanceof AMap.Polyline?te(e):e instanceof AMap.Polygon?ie(e):e instanceof AMap.BezierCurve?ne(e):e instanceof AMap.Circle?oe(e):(ae(),y.value&&F(y.value)))},50)},X=e=>{var t,i,r;n.disabled||x.value!==e&&(x.value&&ae(),e instanceof AMap.Polyline?(r=e,n.disabled||(m.value&&m.value.close(),m.value=new AMap.PolyEditor(p.value,r),m.value.open(),x.value=r)):e instanceof AMap.Polygon?(i=e,n.disabled||(v.value&&v.value.close(),v.value=new AMap.PolygonEditor(p.value,i),v.value.open(),x.value=i)):e instanceof AMap.BezierCurve?K(e):e instanceof AMap.Circle&&(t=e,n.disabled||(O.value&&O.value.close(),O.value=new AMap.CircleEditor(p.value,t),O.value.open(),x.value=t)))},ee=e=>{n.disabled||je("single",{type:"marker",instance:e})},te=e=>{n.disabled||je("single",{type:"polyline",instance:e})},ie=e=>{n.disabled||je("single",{type:"polygon",instance:e})},ne=e=>{n.disabled||je("single",{type:"bezierCurve",instance:e})},oe=e=>{n.disabled||je("single",{type:"circle",instance:e})},ae=()=>{n.disabled||(m.value&&x.value instanceof AMap.Polyline&&(se(),m.value.close()),v.value&&x.value instanceof AMap.Polygon&&(Me(),v.value.close()),E.value&&x.value instanceof AMap.BezierCurve&&(ue(),E.value.close()),O.value&&x.value instanceof AMap.Circle&&(ce(),O.value.close()),x.value=null)},se=(e=null)=>{const t=null!=e?e:m.value.getTarget();let i=t.getPath();Ee(i)>1&&(i=i[0],t.setPath(i));const r=i.map(e=>`${e.lng},${e.lat}`),n=h.value.findIndex(e=>e.obj._amap_id===t._amap_id);-1!==n&&(h.value[n].path=r)},Me=(e=null)=>{const t=null!=e?e:v.value.getTarget(),i=t.getPath().map(e=>`${e.lng},${e.lat}`),r=C.value.findIndex(e=>e.obj._amap_id===t._amap_id);-1!==r&&(C.value[r].path=i)},ue=(e=null)=>{const t=null!=e?e:E.value.getTarget(),i=t.getPath(),r=[];try{if(i&&i.length>0){i[0].getLng&&i[0].getLat?r.push([i[0].getLng(),i[0].getLat()]):Array.isArray(i[0])&&(Array.isArray(i[0][0])?r.push(i[0][0]):r.push(i[0]));for(let e=1;e<i.length;e++){const t=i[e];if(Array.isArray(t)&&t.length>=2){const e=[];for(let i=0;i<t.length;i++){const r=t[i];r&&r.getLng&&r.getLat?(e.push(r.getLng()),e.push(r.getLat())):Array.isArray(r)&&r.length>=2?(e.push(r[0]),e.push(r[1])):"number"==typeof r&&e.push(r)}e.length>0&&r.push(e)}}}const e=S.value.findIndex(e=>e.obj._amap_id===t._amap_id);-1!==e&&(S.value[e].path=r)}catch(n){}},ce=(e=null)=>{const t=null!=e?e:O.value.getTarget(),i=t.getCenter(),r=t.getRadius(),n=f.value.findIndex(e=>e.obj._amap_id===t._amap_id);-1!==n&&(f.value[n].center=`${i.lng},${i.lat}`,f.value[n].radius=r)},le=()=>{var e,t,i,r,o;n.disabled||(ae(),B("point")?M.value=z.value.map(e=>({path:"string"==typeof e.position?e.position:n.formatJson?JSON.stringify(e.position):e.position,type:e.type})):M.value=null!=(e=z.value.map(e=>({path:"string"==typeof e.position?e.position:n.formatJson?JSON.stringify(e.position):e.position,type:e.type}))[0])?e:"",B("polyline")?u.value=h.value.map(e=>({path:n.formatJson?JSON.stringify(e.path):e.path,type:e.type})):u.value=null!=(t=h.value.map(e=>({path:n.formatJson?JSON.stringify(e.path):e.path,type:e.type}))[0])?t:"",B("polygon")?c.value=C.value.map(e=>({path:n.formatJson?JSON.stringify(e.path):e.path,type:e.type})):c.value=null!=(i=C.value.map(e=>({path:n.formatJson?JSON.stringify(e.path):e.path,type:e.type}))[0])?i:"",B("bezierCurve")?l.value=S.value.map(e=>({path:n.formatJson?JSON.stringify(e.path):e.path,type:e.type})):l.value=null!=(r=S.value.map(e=>({path:n.formatJson?JSON.stringify(e.path):e.path,type:e.type}))[0])?r:"",B("circle")?N.value=f.value.map(e=>({path:n.formatJson?JSON.stringify({center:e.center,radius:e.radius}):{center:e.center,radius:e.radius},type:e.type})):N.value=null!=(o=f.value.map(e=>({path:n.formatJson?JSON.stringify({center:e.center,radius:e.radius}):{center:e.center,radius:e.radius},type:e.type}))[0])?o:"",Ne())},Ne=()=>{D.value=!1,d.value=!1,k.value="",b.value="",y.value="",z.value=[],h.value=[],C.value=[],S.value=[],f.value=[],L.value&&(L.value.off("draw",Z),L.value.close()),m.value&&m.value.close(),v.value&&v.value.close(),E.value&&E.value.close(),O.value&&O.value.close(),p.value&&(p.value.off("rightclick",$),p.value.destroy(),p.value=null)},ge=e=>({point:"绘制点",polyline:"绘制折线",polygon:"绘制多边形",circle:"绘制圆",bezierCurve:"绘制曲线"}[e]||e),de=e=>{switch(e){case"point":return z.value.length;case"polyline":return h.value.length;case"polygon":return C.value.length;case"bezierCurve":return S.value.length;case"circle":return f.value.length;default:return 0}},Te=()=>z.value.length+h.value.length+C.value.length+S.value.length+f.value.length,je=async(e,t)=>{try{let i="";if("all"===e)i=`确定要删除所有图形吗?这将清除地图上的所有 ${Te()} 个图形。`;else if("type"===e){const e=ge(t).replace("绘制","");i=`确定要删除所有${e}吗?这将清除地图上的所有 ${de(t)} 个${e}。`}else if("single"===e){let e="";switch(t.type){case"marker":e="点";break;case"polyline":e="折线";break;case"polygon":e="多边形";break;case"bezierCurve":e="曲线";break;case"circle":e="圆形"}i=`确定要删除这个${e}吗?`}if(await a.ElMessageBox.confirm(i,"删除确认"),"all"===e)ye();else if("type"===e)De(t);else if("single"===e)switch(t.type){case"marker":(e=>{e.setMap(null);const t=z.value.findIndex(t=>t.obj._amap_id===e._amap_id);-1!==t&&z.value.splice(t,1)})(t.instance);break;case"polyline":(e=>{e.setMap(null);const t=h.value.findIndex(t=>t.obj._amap_id===e._amap_id);-1!==t&&h.value.splice(t,1)})(t.instance);break;case"polygon":(e=>{e.setMap(null);const t=C.value.findIndex(t=>t.obj._amap_id===e._amap_id);-1!==t&&C.value.splice(t,1)})(t.instance);break;case"bezierCurve":(e=>{e.setMap(null);const t=S.value.findIndex(t=>t.obj._amap_id===e._amap_id);-1!==t&&S.value.splice(t,1)})(t.instance);break;case"circle":(e=>{e.setMap(null);const t=f.value.findIndex(t=>t.obj._amap_id===e._amap_id);-1!==t&&f.value.splice(t,1)})(t.instance)}}catch(i){}},ye=()=>{n.disabled||(ae(),Ie(),pe(),Le(),ze(),he(),F(y.value))},De=e=>{if(!n.disabled){switch(ae(),e){case"point":Ie();break;case"polyline":pe();break;case"polygon":Le();break;case"bezierCurve":ze();break;case"circle":he()}F(y.value)}},Ie=()=>{n.disabled||(z.value.forEach(e=>{e.obj.setMap(null)}),z.value=[])},pe=()=>{n.disabled||(h.value.forEach(e=>{e.obj.setMap(null)}),h.value=[])},Le=()=>{n.disabled||(C.value.forEach(e=>{e.obj.setMap(null)}),C.value=[])},ze=()=>{n.disabled||(S.value.forEach(e=>{e.obj.setMap(null)}),S.value=[])},he=()=>{n.disabled||(f.value.forEach(e=>{e.obj.setMap(null)}),f.value=[])},Ae=(e,t)=>{0!==e.length?w.value.search(e,(e,i)=>{if("complete"===e&&"OK"===i.info){const e=i.poiList.pois.map(e=>({name:e.name,address:e.address,location:e.location}));t(e)}else t([])}):t([])},Ce=e=>{let t=(e=>{const t=e.split(",");return 2===t.length&&Oe(t[0],t[1])})(e);if(!t)return void a.ElMessage.error("经纬度格式错误,请输入如:103.98673,30.584973 格式,小数位数不超过15位");const i=e.split(",");new AMap.InfoWindow({content:`<div><p>${e}</p></div>`,offset:new AMap.Pixel(0,-30),autoMove:!1,closeWhenClickMap:!0}).open(p.value,i),p.value.setZoomAndCenter(20,i),b.value=""},Se=e=>{if(e&&e.location){new AMap.InfoWindow({content:`<div><h4>${e.name}</h4><p>${e.address||"暂无地址信息"}</p></div>`,offset:new AMap.Pixel(0,-30),autoMove:!1,closeWhenClickMap:!0}).open(p.value,[e.location.lng,e.location.lat]),p.value.setZoomAndCenter(20,[e.location.lng,e.location.lat])}},fe=e=>{e?(p.value.setMapStyle(null),g.value.setMap(p.value),p.value.setFeatures(["bg"])):(p.value.setMapStyle(n.mapStyle),g.value.setMap(null),p.value.setFeatures(["bg","building","point","road","land","poi"]))};return i({openDialog:H}),(i,r)=>{const n=t.resolveComponent("el-button"),a=t.resolveComponent("el-switch"),M=t.resolveComponent("el-divider"),u=t.resolveComponent("el-autocomplete"),c=t.resolveComponent("el-input"),l=t.resolveComponent("el-radio"),N=t.resolveComponent("el-radio-group"),g=t.resolveComponent("el-card"),j=t.resolveComponent("el-dialog"),p=t.resolveDirective("loading");return t.openBlock(),t.createElementBlock("div",null,[t.renderSlot(i.$slots,"trigger",{openDialog:H},()=>[e.isShowDefaultTriggerBtn?(t.openBlock(),t.createBlock(n,{key:0,onClick:H},{default:t.withCtx(()=>[t.createTextVNode("打开绘制弹窗")]),_:1})):t.createCommentVNode("",!0)],!0),t.createVNode(j,{title:e.title,"append-to-body":"",modelValue:D.value,"onUpdate:modelValue":r[6]||(r[6]=e=>D.value=e),width:e.width,onClose:Ne,class:"map-drawing-dialog"},{footer:t.withCtx(()=>[t.createElementVNode("span",Ni,[t.createVNode(n,{onClick:Ne},{default:t.withCtx(()=>[t.createTextVNode("取消")]),_:1}),e.disabled?t.createCommentVNode("",!0):(t.openBlock(),t.createBlock(n,{key:0,type:"primary",onClick:le},{default:t.withCtx(()=>[t.createTextVNode("确认")]),_:1}))])]),default:t.withCtx(()=>[t.withDirectives((t.openBlock(),t.createElementBlock("div",{"element-loading-text":"系统定位中,请稍后...",class:t.normalizeClass(["draw-container",t.unref(s)&&"draw-container-mobile"]),style:t.normalizeStyle({height:e.height})},[t.createElementVNode("div",{class:"map-container",ref_key:"mapContainer",ref:Y},null,512),e.disabled?t.createCommentVNode("",!0):(t.openBlock(),t.createElementBlock("div",ti,[t.createVNode(g,{shadow:"never"},{default:t.withCtx(()=>[t.createElementVNode("div",ii,[t.createVNode(n,{type:"primary",icon:t.unref(o.QuestionFilled),onClick:r[0]||(r[0]=e=>I.value=!0),class:"help-button"},{default:t.withCtx(()=>[t.createTextVNode(" 操作说明 ")]),_:1},8,["icon"])]),e.changeMapType&&!t.unref(s)?(t.openBlock(),t.createElementBlock("div",ri,[t.createVNode(a,{modelValue:d.value,"onUpdate:modelValue":r[1]||(r[1]=e=>d.value=e),"active-text":"卫星图","inactive-text":"标准图",onChange:fe},null,8,["modelValue"])])):t.createCommentVNode("",!0),t.unref(s)?t.createCommentVNode("",!0):(t.openBlock(),t.createBlock(M,{key:1,"content-position":"center"},{default:t.withCtx(()=>[t.createTextVNode("地点搜索")]),_:1})),t.createElementVNode("div",ni,[t.createVNode(u,{modelValue:k.value,"onUpdate:modelValue":r[2]||(r[2]=e=>k.value=e),"fetch-suggestions":Ae,placeholder:"搜索地点",onSelect:Se,"trigger-on-focus":!1,class:"place-search-input"},{default:t.withCtx(({item:e})=>[t.createElementVNode("div",oi,[t.createElementVNode("div",ai,t.toDisplayString(e.name),1),t.createElementVNode("div",si,t.toDisplayString(e.address),1)])]),_:1},8,["modelValue"])]),t.unref(s)?t.createCommentVNode("",!0):(t.openBlock(),t.createBlock(M,{key:2,"content-position":"center"},{default:t.withCtx(()=>[t.createTextVNode("经纬度搜索")]),_:1})),t.createElementVNode("div",Mi,[t.createVNode(c,{modelValue:b.value,"onUpdate:modelValue":r[3]||(r[3]=e=>b.value=e),onChange:Ce,style:{width:"100%"},placeholder:"请输入GCJ-02坐标系经纬度"},null,8,["modelValue"])]),t.unref(s)?t.createCommentVNode("",!0):(t.openBlock(),t.createBlock(M,{key:3,"content-position":"center"},{default:t.withCtx(()=>[t.createTextVNode("绘制按钮")]),_:1})),t.createVNode(N,{onChange:F,modelValue:y.value,"onUpdate:modelValue":r[4]||(r[4]=e=>y.value=e)},{default:t.withCtx(()=>[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(e.allowedTypes,e=>(t.openBlock(),t.createBlock(l,{key:e,onClick:t.withModifiers(t=>(e=>{e===y.value?y.value="":y.value=e,y.value?F(y.value):L.value&&L.value.close()})(e),["prevent"]),label:e,border:""},{default:t.withCtx(()=>[t.createTextVNode(t.toDisplayString(ge(e)),1)]),_:2},1032,["onClick","label"]))),128))]),_:1},8,["modelValue"]),t.createElementVNode("div",ui,[t.unref(s)?t.createCommentVNode("",!0):(t.openBlock(),t.createBlock(M,{key:0,"content-position":"center"},{default:t.withCtx(()=>[t.createTextVNode("批量操作")]),_:1})),(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(e.allowedTypes,e=>(t.openBlock(),t.createBlock(n,{key:`delete-${e}`,size:"small",type:"danger",onClick:t=>je("type",e),disabled:0===de(e)},{default:t.withCtx(()=>[t.createTextVNode(" 删除所有"+t.toDisplayString(ge(e))+" ",1),de(e)>0?(t.openBlock(),t.createElementBlock("span",ci,"("+t.toDisplayString(de(e))+")",1)):t.createCommentVNode("",!0)]),_:2},1032,["onClick","disabled"]))),128)),t.unref(s)?t.createCommentVNode("",!0):(t.openBlock(),t.createBlock(M,{key:1,"content-position":"center"},{default:t.withCtx(()=>[t.createTextVNode("全局操作")]),_:1})),t.createVNode(n,{size:"small",type:"danger",onClick:r[5]||(r[5]=e=>je("all")),disabled:0===Te()},{default:t.withCtx(()=>[t.createTextVNode(" 清除所有图形 "),Te()>0?(t.openBlock(),t.createElementBlock("span",li,"("+t.toDisplayString(Te())+")",1)):t.createCommentVNode("",!0)]),_:1},8,["disabled"])])]),_:1})]))],6)),[[p,T.value]])]),_:1},8,["title","modelValue","width"]),t.createVNode(j,{title:"操作说明",modelValue:I.value,"onUpdate:modelValue":r[8]||(r[8]=e=>I.value=e),width:"600px","append-to-body":""},{footer:t.withCtx(()=>[t.createElementVNode("span",di,[t.createVNode(n,{type:"primary",onClick:r[7]||(r[7]=e=>I.value=!1)},{default:t.withCtx(()=>[t.createTextVNode("我知道了")]),_:1})])]),default:t.withCtx(()=>[gi]),_:1},8,["modelValue"])])}}},ji=C(Ti,[["__scopeId","data-v-d89fd5ba"]]),yi={key:0,class:"btn-container"},Di={class:"help-button-container"},Ii={key:0,class:"layer-switch"},pi={class:"search-container"},Li={class:"place-suggestion-item"},zi={class:"name"},hi={class:"address"},Ai={class:"search-container"},Ci={class:"delete-buttons"},Si={key:0},fi={key:0},mi={class:"dialog-footer"},vi=(e=>(t.pushScopeId("data-v-6b8c3e46"),e=e(),t.popScopeId(),e))(()=>t.createElementVNode("div",{class:"operation-guide"},[t.createElementVNode("div",{class:"guide-section"},[t.createElementVNode("strong",null,"开始绘制:"),t.createElementVNode("ul",null,[t.createElementVNode("li",null,"先在右侧选择业务类型(如项目点位、项目工区等)"),t.createElementVNode("li",null,"根据业务提示选择可用的绘制方式"),t.createElementVNode("li",null,"点位:点击地图放置标记点"),t.createElementVNode("li",null,"折线/多边形:依次点击多个点完成绘制,鼠标右键结束"),t.createElementVNode("li",null,"圆形:长按鼠标左键拖动绘制圆形")])]),t.createElementVNode("div",{class:"guide-section"},[t.createElementVNode("strong",null,"编辑、拖拽覆盖物:"),t.createElementVNode("ul",null,[t.createElementVNode("li",null,[t.createElementVNode("strong",null,"左键双击"),t.createTextVNode("覆盖物(点除外)进入编辑模式")]),t.createElementVNode("li",null,"非圆形覆盖物支持直接拖拽移动"),t.createElementVNode("li",null,"进入编辑后拖拽控制点调整形状和位置"),t.createElementVNode("li",null,"编辑完成后右键地图空白处取消编辑")])]),t.createElementVNode("div",{class:"guide-section"},[t.createElementVNode("strong",null,"删除覆盖物:"),t.createElementVNode("ul",null,[t.createElementVNode("li",null,[t.createElementVNode("strong",null,"右键点击"),t.createTextVNode("覆盖物可删除单个图形")]),t.createElementVNode("li",null,"使用右侧批量操作按钮删除指定业务类型的所有图形"),t.createElementVNode("li",null,"使用清除所有按钮删除地图上的所有图形")])]),t.createElementVNode("div",{class:"guide-section"},[t.createElementVNode("strong",null,"其他功能:"),t.createElementVNode("ul",null,[t.createElementVNode("li",null,"使用地点搜索快速定位到指定位置"),t.createElementVNode("li",null,"切换卫星图/标准图查看不同地图样式"),t.createElementVNode("li",null,'绘制完成后点击"确认"保存,点击"取消"放弃修改')])])],-1)),Ei={class:"dialog-footer"},Oi={__name:"index",props:{title:{type:String,default:"地图绘制"},width:{type:String,default:"80vw"},height:{type:String,default:"60vh"},mapStyle:{type:String,default:()=>"amap://styles/normal"},markers:{type:[Array,String],default:()=>[]},markerConfig:{type:Object,default:()=>({})},circles:{type:[Array,String],default:()=>[]},circleConfig:{type:Object,default:()=>({})},polylines:{type:[Array,String],default:()=>[]},polylineConfig:{type:Object,default:()=>({})},polygons:{type:[Array,String],default:()=>[]},polygonConfig:{type:Object,default:()=>({})},bezierCurves:{type:[Array,String],default:()=>[]},bezierCurveConfig:{type:Object,default:()=>({})},disabled:{type:Boolean,default:!1},businessConfigs:{type:Array,default:()=>[{key:"lngLat",label:"项目中心点",multiple:!1,drawTypes:["point"]},{key:"yyxLngLat",label:"项目营业线",multiple:!0,drawTypes:["polyline"]},{key:"projectWorkArea",label:"项目工区",multiple:!0,drawTypes:["polygon","circle"]},{key:"workDeviceArea",label:"作业设备限制区域",multiple:!0,drawTypes:["polygon","circle"]},{key:"workPersonnelArea",label:"作业人员区域",multiple:!0,drawTypes:["polygon","circle"]}],validator(e){const t=["point","polyline","polygon","circle","bezierCurve"];return Array.isArray(e)&&e.every(e=>{if(!e||"object"!=typeof e)return!1;const{key:i,label:r,drawTypes:n,multiple:o}=e;return!("string"!=typeof i||!i)&&(!("string"!=typeof r||!r)&&(!(!Array.isArray(n)||0===n.length)&&(!!n.every(e=>t.includes(e))&&(void 0===o||"boolean"==typeof o))))})}},isShowDefaultTriggerBtn:{type:Boolean,default:!0},formatJson:{type:Boolean,default:!0},center:{type:[String,Array,null],default:null},mapZoom:{type:Number,default:13},changeMapType:{type:Boolean,default:!0},amapKey:{type:String,default:"",required:!0}},emits:["update:markers","update:polylines","update:polygons","update:bezierCurves","update:circles"],setup(e,{expose:i,emit:r}){const n=e,{isMobile:s}=re(),M=t.ref(""),u=e=>n.businessConfigs.find(t=>t.key===e),c=t.computed(()=>u(M.value)||null),l=t.computed(()=>{var e,t;return null!=(t=null==(e=c.value)?void 0:e.drawTypes)?t:[]}),N=t.computed({get:()=>n.markers&&Array.isArray(n.markers)?n.markers.map(e=>({businessKey:e.businessKey||"",type:"marker",path:ve(e.path)?JSON.parse(e.path):e.path})):[],set(e){r("update:markers",e)}}),g=t.computed({get:()=>n.polylines&&Array.isArray(n.polylines)?n.polylines.map(e=>({businessKey:e.businessKey||"",type:"polyline",path:ve(e.path)?JSON.parse(e.path):e.path})):[],set(e){r("update:polylines",e)}}),d=t.computed({get:()=>n.polygons&&Array.isArray(n.polygons)?n.polygons.map(e=>({businessKey:e.businessKey||"",type:"polygon",path:ve(e.path)?JSON.parse(e.path):e.path})):[],set(e){r("update:polygons",e)}}),T=t.computed({get:()=>n.bezierCurves&&Array.isArray(n.bezierCurves)?n.bezierCurves.map(e=>({businessKey:e.businessKey||"",type:"bezierCurve",path:ve(e.path)?JSON.parse(e.path):e.path})):[],set(e){r("update:bezierCurves",e)}}),j=t.computed({get:()=>n.circles&&Array.isArray(n.circles)?n.circles.map(e=>({businessKey:e.businessKey||"",type:"circle",path:ve(e.path)?JSON.parse(e.path):e.path})):[],set(e){r("update:circles",e)}}),y=t.ref(null),D=t.ref(!1),I=t.ref(!1),p=t.ref(!1),L=t.ref(""),z=t.ref(!1),h=t.ref(!1),C=t.shallowRef(null),S=t.shallowRef(null),f=t.ref([]),m=t.ref([]),v=t.ref([]),E=t.ref([]),O=t.ref([]),x=t.ref(null),w=t.ref(null),k=t.ref(null),b=t.ref(null),Y=t.ref(null),U=t.ref(null),Q=t.ref(""),R=t.ref(""),_=t.ref(null),P=t.reactive({icon:"https://a.amap.com/jsapi_demos/static/demo-center/icons/poi-marker-default.png",size:{width:26,height:32}}),B=t.reactive({isOutline:!0,outlineColor:"#ffffff",borderWeight:2,strokeColor:"#1890ff",strokeOpacity:1,strokeWeight:5,strokeStyle:"solid",lineJoin:"round",lineCap:"round",showDir:!0,dirColor:"white",dirIconSize:20}),H=t.reactive({isOutline:!0,outlineColor:"#ffffff",borderWeight:2,strokeColor:"#1890ff",strokeOpacity:1,strokeWeight:3,strokeStyle:"solid",lineJoin:"round",lineCap:"round",showDir:!0,dirColor:"white",dirIconSize:20}),V=t.reactive({fillColor:"#1890ff",strokeColor:"#1890ff",fillOpacity:.1,strokeOpacity:1,strokeWeight:3,strokeStyle:"dashed",strokeDasharray:[10,5],draggable:!1}),W=t.reactive({strokeColor:"#1890ff",strokeOpacity:1,strokeWeight:3,fillColor:"#1890ff",fillOpacity:.1,zIndex:10,draggable:!1});t.onBeforeUnmount(()=>{C.value&&(C.value.destroy(),C.value=null)});const G=()=>{z.value=!0,t.nextTick(()=>{F()})},F=async()=>{try{I.value=!0;const t=await A.default.load({key:n.amapKey,version:"2.0",plugins:["AMap.MouseTool","AMap.PolyEditor","AMap.PolygonEditor","AMap.CircleEditor","AMap.BezierCurveEditor","AMap.Geolocation","AMap.PlaceSearch"]}),i={zoom:n.mapZoom,mapStyle:n.mapStyle};n.center&&(i.center="string"==typeof(e=n.center)?e.split(",").map(Number):e),C.value=new t.Map(_.value,i),y.value=new t.TileLayer.Satellite({zIndex:1});const r=new t.Geolocation({enableHighAccuracy:!0,timeout:1e4,zoomToAccuracy:!0,buttonPosition:"RB"});C.value.addControl(r),n.disabled||(S.value=new t.MouseTool(C.value),S.value.on("draw",te)),C.value.on("rightclick",ae),document.addEventListener("contextmenu",e=>{e.preventDefault()}),U.value=new t.PlaceSearch({pageSize:10,pageIndex:1,city:"",citylimit:!1,autoFitView:!0}),n.center?($(),I.value=!1):r.getCurrentPosition((e,t)=>{"complete"===e?C.value&&C.value.setCenter([t.position.lng,t.position.lat]):C.value&&C.value.setCenter([116.397428,39.90923]),$(),I.value=!1})}catch(t){I.value=!1}var e},Z=(e,t)=>{"circle"!==e&&(t.setDraggable(!0),t.on("mousedown",e=>{"circle"===L.value&&t.setDraggable(!1)}),t.on("mouseup",e=>{t.setDraggable(!0)}),t.on("dragend",i=>{"marker"===e&&ne(t),"polyline"===e&&de(t),"polygon"===e&&Te(t),"bezierCurve"===e&&je(t)})),t.on("rightclick",()=>{ae(t)}),"marker"!==e&&t.on("dblclick",e=>{setTimeout(()=>{S.value&&S.value.close()}),se(t)})},J=e=>{if("string"==typeof e){if(ve(e))try{return JSON.parse(e)}catch(t){return e}return e}return e},q=e=>{let t="",i=e;return i&&"object"==typeof i&&!Array.isArray(i)&&(i.businessKey&&(t=i.businessKey),void 0!==i.path?i=i.path:void 0!==i.data&&(i=i.data)),i=J(i),i&&"object"==typeof i&&!Array.isArray(i)&&i.businessKey&&!t&&(t=i.businessKey),{payload:i,businessKey:t}},K=e=>{var t;const{payload:i,businessKey:r}=q(e);let n=[];if(!i)return{path:n,businessKey:r};if(Array.isArray(i))n=i;else if("string"==typeof i){const e=J(i);Array.isArray(e)?n=e:e&&"object"==typeof e&&Array.isArray(e.path)&&(n=e.path)}else i&&"object"==typeof i&&(Array.isArray(i.path)?n=i.path:Array.isArray(i)&&(n=i));return{path:n,businessKey:null!=(t=null==i?void 0:i.businessKey)?t:r}},$=()=>{if(!C.value)return;const e=window.AMap;f.value=[],m.value=[],v.value=[],E.value=[],O.value=[],N.value.forEach(t=>{const i=(e=>{var t,i,r;const{payload:n,businessKey:o}=q(e);if(!n)return null;if("string"==typeof n)return{position:n,businessKey:o};if(n&&"object"==typeof n){const e=null!=(i=null!=(t=n.position)?t:n.path)?i:"";if("string"==typeof e&&e)return{position:e,businessKey:null!=(r=n.businessKey)?r:o}}return null})(t);if(!i)return;const{position:r,businessKey:o}=i;if(!r)return;const[a,s]=r.split(",").map(Number);if(Number.isNaN(a)||Number.isNaN(s))return;const{size:M,icon:u}=n.markerConfig,c=new e.Marker({position:[a,s],icon:new e.Icon({image:u||P.icon,imageSize:M?new e.Size(M.width,M.height):new e.Size(P.size.width,P.size.height)}),offset:M?new e.Pixel(-M.width/2,-M.height):new e.Pixel(-P.size.width/2,-P.size.height),size:M?new e.Size(M.width,M.height):new e.Size(P.size.width,P.size.height),map:C.value});Z("marker",c),f.value.push({obj:c,position:r,type:"marker",businessKey:o})}),g.value.forEach(t=>{const{path:i,businessKey:r}=K(t);if(!Array.isArray(i)||!i.length)return;const o=i.map(t=>{if("string"==typeof t){const[i,r]=t.split(",").map(Number);return Number.isNaN(i)||Number.isNaN(r)?null:new e.LngLat(i,r)}if(Array.isArray(t)&&t.length>=2){const i=Number(t[0]),r=Number(t[1]);return Number.isNaN(i)||Number.isNaN(r)?null:new e.LngLat(i,r)}return null}).filter(Boolean);if(!o.length)return;const a=new e.Polyline({path:o,map:C.value,...B,...n.polylineConfig});Z("polyline",a);const s=o.map(e=>`${e.getLng()},${e.getLat()}`);m.value.push({obj:a,path:s,type:"polyline",businessKey:r})}),d.value.forEach(t=>{const{path:i,businessKey:r}=K(t);if(!Array.isArray(i)||!i.length)return;const o=i.map(t=>{if("string"==typeof t){const[i,r]=t.split(",").map(Number);return Number.isNaN(i)||Number.isNaN(r)?null:new e.LngLat(i,r)}if(Array.isArray(t)&&t.length>=2){const i=Number(t[0]),r=Number(t[1]);return Number.isNaN(i)||Number.isNaN(r)?null:new e.LngLat(i,r)}return null}).filter(Boolean);if(!o.length)return;const a=new e.Polygon({path:o,map:C.value,...V,...n.polygonConfig});Z("polygon",a);const s=o.map(e=>`${e.getLng()},${e.getLat()}`);v.value.push({obj:a,path:s,type:"polygon",businessKey:r})}),T.value.forEach(t=>{const{path:i,businessKey:r}=K(t);if(!Array.isArray(i)||!i.length)return;const o=i.map(e=>Array.isArray(e)?e.map(e=>Number(e)):Number(e)),a=new e.BezierCurve({path:o,map:C.value,...H,...n.bezierCurveConfig});Z("bezierCurve",a),E.value.push({obj:a,path:o,type:"bezierCurve",businessKey:r})}),j.value.forEach(t=>{const i=(e=>{var t,i,r,n,o,a;const{payload:s,businessKey:M}=q(e);if(!s)return null;let u="",c=0;if("string"==typeof s){const e=J(s);if(e&&"object"==typeof e)return u=null!=(t=e.center)?t:"",c=null!=(i=e.radius)?i:0,{center:u,radius:c,businessKey:null!=(r=e.businessKey)?r:M}}else if(s&&"object"==typeof s)return u=null!=(n=s.center)?n:"",c=null!=(o=s.radius)?o:0,{center:u,radius:c,businessKey:null!=(a=s.businessKey)?a:M};return null})(t);if(!i)return;const{center:r,radius:o,businessKey:a}=i;if(!r||!o)return;const[s,M]=r.split(",").map(Number);if(Number.isNaN(s)||Number.isNaN(M)||Number.isNaN(Number(o)))return;const u=new e.Circle({center:[s,M],radius:o,...W,...n.circleConfig});C.value.add(u),Z("circle",u),O.value.push({obj:u,center:r,radius:o,type:"circle",businessKey:a})});const t=[...f.value.map(e=>e.obj),...m.value.map(e=>e.obj),...v.value.map(e=>e.obj),...E.value.map(e=>e.obj),...O.value.map(e=>e.obj)];t.length>0&&C.value.setFitView(t)},X=e=>{if(S.value&&!n.disabled)if(M.value)if(l.value.includes(e))switch(Y.value&&ge(),e){case"point":const{size:e,icon:t}=n.markerConfig;S.value.marker({icon:new AMap.Icon({image:t||P.icon,imageSize:e?new AMap.Size(e.width,e.height):new AMap.Size(P.size.width,P.size.height)}),offset:e?new AMap.Pixel(-e.width/2,-e.height):new AMap.Pixel(-P.size.width/2,-P.size.height),size:e?new AMap.Size(e.width,e.height):new AMap.Size(P.size.width,P.size.height)});break;case"polyline":case"bezierCurve":S.value.polyline({...B,...n.polylineConfig});break;case"polygon":S.value.polygon({...V,...n.polygonConfig});break;case"circle":S.value.circle({...W,...n.circleConfig,bubble:!0})}else a.ElMessage.warning("当前业务不支持该绘制方式");else a.ElMessage.warning("请先选择业务类型")},ee=()=>{if(!n.disabled&&(ge(),L.value="",S.value&&S.value.close(),1===l.value.length)){const[e]=l.value;L.value=e,t.nextTick(()=>{X(e)})}},te=e=>{if(p.value=!0,n.disabled)return;const{obj:t}=e;if(!M.value)return t.setMap(null),void a.ElMessage.warning("请先选择业务类型");const i=M.value;if((e=>{if(!e)return!0;const t=u(e);return!t||!1!==t.multiple})(i)||(fe(i),me(i),xe(i),we(i),ke(i)),t instanceof AMap.Marker){const e=t.getPosition(),r={obj:t,position:`${e.lng},${e.lat}`,type:"marker",businessKey:i};f.value.push(r),Z("marker",t)}else if(t instanceof AMap.Polyline)if("bezierCurve"===L.value)ie(t,i);else{const e=t.getPath().map(e=>`${e.lng},${e.lat}`);e.length>1?(m.value.push({obj:t,path:e,type:"polyline",businessKey:i}),Z("polyline",t)):t.setMap(null)}else if(t instanceof AMap.Polygon){const e=t.getPath().map(e=>`${e.lng},${e.lat}`);e.length>2?(v.value.push({obj:t,path:e,type:"polygon",businessKey:i}),Z("polygon",t)):t.setMap(null)}else if(t instanceof AMap.BezierCurve){const e=t.getPath().map(e=>`${e.lng},${e.lat}`);e.length>2?(E.value.push({obj:t,path:e,type:"bezierCurve",businessKey:i}),Z("bezierCurve",t)):t.setMap(null)}else if(t instanceof AMap.Circle){const e=t.getCenter(),r=t.getRadius();e&&r>0?(O.value.push({obj:t,center:`${e.lng},${e.lat}`,radius:r,type:"circle",businessKey:i}),Z("circle",t)):t.setMap(null)}setTimeout(()=>{p.value=!1},100)},ie=(e,t)=>{const i=e.getPath();if(i.length<2)return void e.setMap(null);e.setMap(null);const r=[];r.push([i[0].lng,i[0].lat]);for(let n=1;n<i.length;n++){const e=i[n-1],t=i[n],o=e.lng+.3*(t.lng-e.lng),a=e.lat+.3*(t.lat-e.lat);r.push([o,a,t.lng,t.lat])}const o=new AMap.BezierCurve({path:r,...H,...n.bezierCurveConfig,map:C.value});oe(o),E.value.push({obj:o,path:r,businessKey:t,type:"bezierCurve"}),Z("bezierCurve",o)},ne=e=>{if(n.disabled)return;const t=e.getPosition(),i=f.value.findIndex(t=>t.obj._amap_id===e._amap_id);-1!==i&&(f.value[i].position=`${t.lng},${t.lat}`)},oe=e=>{n.disabled||(k.value&&k.value.close(),k.value=new AMap.BezierCurveEditor(C.value,e),k.value.open(),Y.value=e)},ae=e=>{setTimeout(()=>{n.disabled||p.value||(e instanceof AMap.Marker?Me(e):e instanceof AMap.Polyline?ue(e):e instanceof AMap.Polygon?ce(e):e instanceof AMap.BezierCurve?le(e):e instanceof AMap.Circle?Ne(e):(ge(),L.value&&X(L.value)))},50)},se=e=>{var t,i,r;n.disabled||Y.value!==e&&(Y.value&&ge(),e instanceof AMap.Polyline?(r=e,n.disabled||(x.value&&x.value.close(),x.value=new AMap.PolyEditor(C.value,r),x.value.open(),Y.value=r)):e instanceof AMap.Polygon?(i=e,n.disabled||(w.value&&w.value.close(),w.value=new AMap.PolygonEditor(C.value,i),w.value.open(),Y.value=i)):e instanceof AMap.BezierCurve?oe(e):e instanceof AMap.Circle&&(t=e,n.disabled||(b.value&&b.value.close(),b.value=new AMap.CircleEditor(C.value,t),b.value.open(),Y.value=t)))},Me=e=>{if(n.disabled)return;const t=f.value.find(t=>t.obj._amap_id===e._amap_id);Ae("single",{type:"marker",instance:e,businessKey:null==t?void 0:t.businessKey})},ue=e=>{if(n.disabled)return;const t=m.value.find(t=>t.obj._amap_id===e._amap_id);Ae("single",{type:"polyline",instance:e,businessKey:null==t?void 0:t.businessKey})},ce=e=>{if(n.disabled)return;const t=v.value.find(t=>t.obj._amap_id===e._amap_id);Ae("single",{type:"polygon",instance:e,businessKey:null==t?void 0:t.businessKey})},le=e=>{if(n.disabled)return;const t=E.value.find(t=>t.obj._amap_id===e._amap_id);Ae("single",{type:"bezierCurve",instance:e,businessKey:null==t?void 0:t.businessKey})},Ne=e=>{if(n.disabled)return;const t=O.value.find(t=>t.obj._amap_id===e._amap_id);Ae("single",{type:"circle",instance:e,businessKey:null==t?void 0:t.businessKey})},ge=()=>{n.disabled||(x.value&&Y.value instanceof AMap.Polyline&&(de(),x.value.close()),w.value&&Y.value instanceof AMap.Polygon&&(Te(),w.value.close()),k.value&&Y.value instanceof AMap.BezierCurve&&(je(),k.value.close()),b.value&&Y.value instanceof AMap.Circle&&(ye(),b.value.close()),Y.value=null)},de=(e=null)=>{const t=null!=e?e:x.value.getTarget();let i=t.getPath();Ee(i)>1&&(i=i[0],t.setPath(i));const r=i.map(e=>`${e.lng},${e.lat}`),n=m.value.findIndex(e=>e.obj._amap_id===t._amap_id);-1!==n&&(m.value[n].path=r)},Te=(e=null)=>{const t=null!=e?e:w.value.getTarget(),i=t.getPath().map(e=>`${e.lng},${e.lat}`),r=v.value.findIndex(e=>e.obj._amap_id===t._amap_id);-1!==r&&(v.value[r].path=i)},je=(e=null)=>{const t=null!=e?e:k.value.getTarget(),i=t.getPath(),r=[];try{if(i&&i.length>0){i[0].getLng&&i[0].getLat?r.push([i[0].getLng(),i[0].getLat()]):Array.isArray(i[0])&&(Array.isArray(i[0][0])?r.push(i[0][0]):r.push(i[0]));for(let e=1;e<i.length;e++){const t=i[e];if(Array.isArray(t)&&t.length>=2){const e=[];for(let i=0;i<t.length;i++){const r=t[i];r&&r.getLng&&r.getLat?(e.push(r.getLng()),e.push(r.getLat())):Array.isArray(r)&&r.length>=2?(e.push(r[0]),e.push(r[1])):"number"==typeof r&&e.push(r)}e.length>0&&r.push(e)}}}const e=E.value.findIndex(e=>e.obj._amap_id===t._amap_id);-1!==e&&(E.value[e].path=r)}catch(n){}},ye=(e=null)=>{const t=null!=e?e:b.value.getTarget(),i=t.getCenter(),r=t.getRadius(),n=O.value.findIndex(e=>e.obj._amap_id===t._amap_id);-1!==n&&(O.value[n].center=`${i.lng},${i.lat}`,O.value[n].radius=r)},De=()=>{n.disabled||(ge(),N.value=f.value.map(e=>({path:"string"==typeof e.position?e.position:n.formatJson?JSON.stringify(e.position):e.position,type:e.type,businessKey:e.businessKey})),g.value=m.value.map(e=>({path:n.formatJson?JSON.stringify(e.path):e.path,type:e.type,businessKey:e.businessKey})),d.value=v.value.map(e=>({path:n.formatJson?JSON.stringify(e.path):e.path,type:e.type,businessKey:e.businessKey})),T.value=E.value.map(e=>({path:n.formatJson?JSON.stringify(e.path):e.path,type:e.type,businessKey:e.businessKey})),j.value=O.value.map(e=>({path:n.formatJson?JSON.stringify({center:e.center,radius:e.radius}):{center:e.center,radius:e.radius},type:e.type,businessKey:e.businessKey})),Ie())},Ie=()=>{z.value=!1,D.value=!1,Q.value="",R.value="",L.value="",M.value="",f.value=[],m.value=[],v.value=[],E.value=[],O.value=[],S.value&&(S.value.off("draw",te),S.value.close()),x.value&&x.value.close(),w.value&&w.value.close(),k.value&&k.value.close(),b.value&&b.value.close(),C.value&&(C.value.off("rightclick",ae),C.value.destroy(),C.value=null)},pe=e=>({point:"绘制点",polyline:"绘制折线",polygon:"绘制多边形",circle:"绘制圆",bezierCurve:"绘制曲线"}[e]||e),Le=e=>{var t;return(null==(t=u(e))?void 0:t.label)||e},ze=e=>{if(!e)return 0;return f.value.filter(t=>t.businessKey===e).length+m.value.filter(t=>t.businessKey===e).length+v.value.filter(t=>t.businessKey===e).length+E.value.filter(t=>t.businessKey===e).length+O.value.filter(t=>t.businessKey===e).length},he=()=>f.value.length+m.value.length+v.value.length+E.value.length+O.value.length,Ae=async(e,t)=>{try{let i="";if("all"===e)i=`确定要删除所有图形吗?这将清除地图上的所有 ${he()} 个图形。`;else if("business"===e){const e=Le(t);i=`确定要删除所有${e}吗?这将清除地图上的所有 ${ze(t)} 个${e}。`}else if("single"===e){let e="";switch(t.type){case"marker":e="点";break;case"polyline":e="折线";break;case"polygon":e="多边形";break;case"bezierCurve":e="曲线";break;case"circle":e="圆形"}i=`确定要删除这个${t.businessKey?`${Le(t.businessKey)}的`:""}${e}吗?`}if(await a.ElMessageBox.confirm(i,"删除确认"),"all"===e)Ce();else if("business"===e)Se(t);else if("single"===e)switch(t.type){case"marker":(e=>{e.setMap(null);const t=f.value.findIndex(t=>t.obj._amap_id===e._amap_id);-1!==t&&f.value.splice(t,1)})(t.instance);break;case"polyline":(e=>{e.setMap(null);const t=m.value.findIndex(t=>t.obj._amap_id===e._amap_id);-1!==t&&m.value.splice(t,1)})(t.instance);break;case"polygon":(e=>{e.setMap(null);const t=v.value.findIndex(t=>t.obj._amap_id===e._amap_id);-1!==t&&v.value.splice(t,1)})(t.instance);break;case"bezierCurve":(e=>{e.setMap(null);const t=E.value.findIndex(t=>t.obj._amap_id===e._amap_id);-1!==t&&E.value.splice(t,1)})(t.instance);break;case"circle":(e=>{e.setMap(null);const t=O.value.findIndex(t=>t.obj._amap_id===e._amap_id);-1!==t&&O.value.splice(t,1)})(t.instance)}}catch(i){}},Ce=()=>{n.disabled||(ge(),fe(),me(),xe(),we(),ke(),L.value&&X(L.value))},Se=e=>{n.disabled||(ge(),fe(e),me(e),xe(e),we(e),ke(e),M.value===e&&L.value&&X(L.value))},fe=(e=null)=>{if(n.disabled)return;const t=[];f.value.forEach(i=>{e&&i.businessKey!==e?t.push(i):i.obj.setMap(null)}),f.value=t},me=(e=null)=>{if(n.disabled)return;const t=[];m.value.forEach(i=>{e&&i.businessKey!==e?t.push(i):i.obj.setMap(null)}),m.value=t},xe=(e=null)=>{if(n.disabled)return;const t=[];v.value.forEach(i=>{e&&i.businessKey!==e?t.push(i):i.obj.setMap(null)}),v.value=t},we=(e=null)=>{if(n.disabled)return;const t=[];E.value.forEach(i=>{e&&i.businessKey!==e?t.push(i):i.obj.setMap(null)}),E.value=t},ke=(e=null)=>{if(n.disabled)return;const t=[];O.value.forEach(i=>{e&&i.businessKey!==e?t.push(i):i.obj.setMap(null)}),O.value=t},be=(e,t)=>{0!==e.length?U.value.search(e,(e,i)=>{if("complete"===e&&"OK"===i.info){const e=i.poiList.pois.map(e=>({name:e.name,address:e.address,location:e.location}));t(e)}else t([])}):t([])},Ye=e=>{let t=(e=>{const t=e.split(",");return 2===t.length&&Oe(t[0],t[1])})(e);if(!t)return void a.ElMessage.error("经纬度格式错误,请输入如:103.98673,30.584973 格式,小数位数不超过15位");const i=e.split(",");new AMap.InfoWindow({content:`<div><p>${e}</p></div>`,offset:new AMap.Pixel(0,-30),autoMove:!1,closeWhenClickMap:!0}).open(C.value,i),C.value.setZoomAndCenter(20,i),R.value=""},Ue=e=>{if(e&&e.location){new AMap.InfoWindow({content:`<div><h4>${e.name}</h4><p>${e.address||"暂无地址信息"}</p></div>`,offset:new AMap.Pixel(0,-30),autoMove:!1,closeWhenClickMap:!0}).open(C.value,[e.location.lng,e.location.lat]),C.value.setZoomAndCenter(20,[e.location.lng,e.location.lat])}},Qe=e=>{e?(C.value.setMapStyle(null),y.value.setMap(C.value),C.value.setFeatures(["bg"])):(C.value.setMapStyle(n.mapStyle),y.value.setMap(null),C.value.setFeatures(["bg","building","point","road","land","poi"]))};return i({openDialog:G}),(i,r)=>{const n=t.resolveComponent("el-button"),a=t.resolveComponent("el-switch"),u=t.resolveComponent("el-divider"),c=t.resolveComponent("el-autocomplete"),N=t.resolveComponent("el-input"),g=t.resolveComponent("el-radio"),d=t.resolveComponent("el-radio-group"),T=t.resolveComponent("el-card"),j=t.resolveComponent("el-dialog"),y=t.resolveDirective("loading");return t.openBlock(),t.createElementBlock("div",null,[t.renderSlot(i.$slots,"trigger",{openDialog:G},()=>[e.isShowDefaultTriggerBtn?(t.openBlock(),t.createBlock(n,{key:0,onClick:G},{default:t.withCtx(()=>[t.createTextVNode("打开绘制弹窗")]),_:1})):t.createCommentVNode("",!0)],!0),t.createVNode(j,{title:e.title,"append-to-body":"",modelValue:z.value,"onUpdate:modelValue":r[7]||(r[7]=e=>z.value=e),width:e.width,onClose:Ie,class:"map-drawing-dialog"},{footer:t.withCtx(()=>[t.createElementVNode("span",mi,[t.createVNode(n,{onClick:Ie},{default:t.withCtx(()=>[t.createTextVNode("取消")]),_:1}),e.disabled?t.createCommentVNode("",!0):(t.openBlock(),t.createBlock(n,{key:0,type:"primary",onClick:De},{default:t.withCtx(()=>[t.createTextVNode("确认")]),_:1}))])]),default:t.withCtx(()=>[t.withDirectives((t.openBlock(),t.createElementBlock("div",{"element-loading-text":"系统定位中,请稍后...",class:t.normalizeClass(["draw-container",t.unref(s)&&"draw-container-mobile"]),style:t.normalizeStyle({height:e.height})},[t.createElementVNode("div",{class:"map-container",ref_key:"mapContainer",ref:_},null,512),e.disabled?t.createCommentVNode("",!0):(t.openBlock(),t.createElementBlock("div",yi,[t.createVNode(T,{shadow:"never"},{default:t.withCtx(()=>[t.createElementVNode("div",Di,[t.createVNode(n,{type:"primary",icon:t.unref(o.QuestionFilled),onClick:r[0]||(r[0]=e=>h.value=!0),class:"help-button"},{default:t.withCtx(()=>[t.createTextVNode(" 操作说明 ")]),_:1},8,["icon"])]),e.changeMapType&&!t.unref(s)?(t.openBlock(),t.createElementBlock("div",Ii,[t.createVNode(a,{modelValue:D.value,"onUpdate:modelValue":r[1]||(r[1]=e=>D.value=e),"active-text":"卫星图","inactive-text":"标准图",onChange:Qe},null,8,["modelValue"])])):t.createCommentVNode("",!0),t.unref(s)?t.createCommentVNode("",!0):(t.openBlock(),t.createBlock(u,{key:1,"content-position":"center"},{default:t.withCtx(()=>[t.createTextVNode("地点搜索")]),_:1})),t.createElementVNode("div",pi,[t.createVNode(c,{modelValue:Q.value,"onUpdate:modelValue":r[2]||(r[2]=e=>Q.value=e),"fetch-suggestions":be,placeholder:"搜索地点",onSelect:Ue,"trigger-on-focus":!1,class:"place-search-input"},{default:t.withCtx(({item:e})=>[t.createElementVNode("div",Li,[t.createElementVNode("div",zi,t.toDisplayString(e.name),1),t.createElementVNode("div",hi,t.toDisplayString(e.address),1)])]),_:1},8,["modelValue"])]),t.unref(s)?t.createCommentVNode("",!0):(t.openBlock(),t.createBlock(u,{key:2,"content-position":"center"},{default:t.withCtx(()=>[t.createTextVNode("经纬度搜索")]),_:1})),t.createElementVNode("div",Ai,[t.createVNode(N,{modelValue:R.value,"onUpdate:modelValue":r[3]||(r[3]=e=>R.value=e),onChange:Ye,style:{width:"100%"},placeholder:"请输入GCJ-02坐标系经纬度"},null,8,["modelValue"])]),t.unref(s)?t.createCommentVNode("",!0):(t.openBlock(),t.createBlock(u,{key:3,"content-position":"center"},{default:t.withCtx(()=>[t.createTextVNode("业务类型")]),_:1})),t.createVNode(d,{modelValue:M.value,"onUpdate:modelValue":r[4]||(r[4]=e=>M.value=e),onChange:ee},{default:t.withCtx(()=>[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(e.businessConfigs,e=>(t.openBlock(),t.createBlock(g,{key:e.key,label:e.key,border:""},{default:t.withCtx(()=>[t.createTextVNode(t.toDisplayString(e.label),1)]),_:2},1032,["label"]))),128))]),_:1},8,["modelValue"]),!t.unref(s)&&t.unref(l).length?(t.openBlock(),t.createBlock(u,{key:4,"content-position":"center"},{default:t.withCtx(()=>[t.createTextVNode("绘制方式")]),_:1})):t.createCommentVNode("",!0),t.unref(l).length?(t.openBlock(),t.createBlock(d,{key:5,onChange:X,modelValue:L.value,"onUpdate:modelValue":r[5]||(r[5]=e=>L.value=e)},{default:t.withCtx(()=>[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(t.unref(l),e=>(t.openBlock(),t.createBlock(g,{key:e,onClick:t.withModifiers(t=>(e=>{e===L.value?L.value="":L.value=e,L.value?X(L.value):S.value&&S.value.close()})(e),["prevent"]),label:e,border:""},{default:t.withCtx(()=>[t.createTextVNode(t.toDisplayString(pe(e)),1)]),_:2},1032,["onClick","label"]))),128))]),_:1},8,["modelValue"])):t.createCommentVNode("",!0),t.createElementVNode("div",Ci,[t.unref(s)?t.createCommentVNode("",!0):(t.openBlock(),t.createBlock(u,{key:0,"content-position":"center"},{default:t.withCtx(()=>[t.createTextVNode("批量操作")]),_:1})),(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(e.businessConfigs,e=>(t.openBlock(),t.createBlock(n,{key:`delete-${e.key}`,size:"small",type:"danger",onClick:t=>Ae("business",e.key),disabled:0===ze(e.key)},{default:t.withCtx(()=>[t.createTextVNode(" 删除所有"+t.toDisplayString(e.label)+" ",1),ze(e.key)>0?(t.openBlock(),t.createElementBlock("span",Si,"("+t.toDisplayString(ze(e.key))+")",1)):t.createCommentVNode("",!0)]),_:2},1032,["onClick","disabled"]))),128)),t.unref(s)?t.createCommentVNode("",!0):(t.openBlock(),t.createBlock(u,{key:1,"content-position":"center"},{default:t.withCtx(()=>[t.createTextVNode("全局操作")]),_:1})),t.createVNode(n,{size:"small",type:"danger",onClick:r[6]||(r[6]=e=>Ae("all")),disabled:0===he()},{default:t.withCtx(()=>[t.createTextVNode(" 清除所有图形 "),he()>0?(t.openBlock(),t.createElementBlock("span",fi,"("+t.toDisplayString(he())+")",1)):t.createCommentVNode("",!0)]),_:1},8,["disabled"])])]),_:1})]))],6)),[[y,I.value]])]),_:1},8,["title","modelValue","width"]),t.createVNode(j,{title:"操作说明",modelValue:h.value,"onUpdate:modelValue":r[9]||(r[9]=e=>h.value=e),width:"600px","append-to-body":""},{footer:t.withCtx(()=>[t.createElementVNode("span",Ei,[t.createVNode(n,{type:"primary",onClick:r[8]||(r[8]=e=>h.value=!1)},{default:t.withCtx(()=>[t.createTextVNode("我知道了")]),_:1})])]),default:t.withCtx(()=>[vi]),_:1},8,["modelValue"])])}}},xi=C(Oi,[["__scopeId","data-v-6b8c3e46"]]),wi=C({__name:"BimViewer",props:{viewToken:{type:String,default:"121d1db2a4cd444983d0871aa47786eb"},extraContextMenu:{type:Array,default:()=>[{label:"其他",key:"extraOther",children:[{label:"添加养护",key:"addMaintain"},{label:"养护记录",key:"maintainRecord"}]}]}},emits:["contextMenuClick"],setup(e,{emit:i}){const r=e,n=t.ref(null),o=t.ref(null),a=t.ref(null),s=t.ref(null),M=()=>{o.value&&o.value.resize(document.documentElement.clientWidth,document.documentElement.clientHeight-40)},u=e=>{if(e.children&&e.children.length>0){const t=document.createElement("div");t.className="bf-sub-menu";const i=document.createElement("div");i.className="bf-menu-item user-item",i.textContent=e.label,t.appendChild(i);const r=document.createElement("div");return r.className="bf-menu",r.style.width="max-content",e.children.forEach(e=>{const t=u(e);r.appendChild(t)}),t.appendChild(r),t}{const t=document.createElement("div");return t.className="bf-menu-item user-item",t.id=`menu-${e.key}`,t.textContent=e.label,t.dataset.key=e.key,t}},c=(e,t,r)=>{if(t.children&&t.children.length>0)t.children.forEach(t=>{c(e,t,r)});else{const n=e.querySelector(`#menu-${t.key}`);if(!n)return;const o=()=>{i("contextMenuClick",{...t,selectedComponents:r}),N(),n.removeEventListener("click",o)};n.addEventListener("click",o)}},l=e=>{const i=e.getViewer().getModel().getSelectedComponents();if(!i.length)return;const n=document.querySelector(".bf-menu.bf-menu-right"),o=document.querySelector(".bf-menu.bf-menu-left"),s=n||o;if(!s)return;const M=document.getElementById("bim-construction-menu");M&&M.remove();const l=(()=>{const e=document.createElement("div");return e.id="bim-construction-menu",r.extraContextMenu.forEach(t=>{const i=u(t);e.appendChild(i)}),e})();s.appendChild(l),t.nextTick(()=>{((e,t)=>{t.length&&a.value&&r.extraContextMenu.forEach(i=>{c(e,i,t)})})(l,i)})},N=()=>{const e=document.getElementById("bim-construction-menu");e&&e.remove();const t=document.querySelector(".bf-menu.bf-menu-right");t&&(t.style.display="none")},g=()=>{o.value&&(s.value=M,window.addEventListener("resize",s.value),o.value.render())},d=()=>{a.value&&r.extraContextMenu.length&&setTimeout(()=>{l(a.value)},0)},T=e=>{if("3DView"===e.viewType&&n.value)try{const e=new Glodon.Bimface.Application.WebApplication3DConfig;e.domElement=n.value,e.globalUnit=Glodon.Bimface.Common.Units.LengthUnits.Millimeter,a.value=new Glodon.Bimface.Application.WebApplication3D(e),a.value.addView(r.viewToken),o.value=a.value.getViewer(),o.value.addEventListener(Glodon.Bimface.Viewer.Viewer3DEvent.ViewAdded,g),o.value.addEventListener(Glodon.Bimface.Viewer.Viewer3DEvent.ContextMenu,d)}catch(t){}},j=e=>{},y=()=>{t.nextTick(()=>{(()=>{if(!n.value)return;const e=new BimfaceSDKLoaderConfig;e.viewToken=r.viewToken,BimfaceSDKLoader.load(e,T,j)})()})};return t.onMounted(()=>{y()}),t.onBeforeUnmount(()=>{(()=>{var e,t,i,r,n,M;if(s.value&&(window.removeEventListener("resize",s.value),s.value=null),N(),o.value)try{null==(t=(e=o.value).removeEventListener)||t.call(e,Glodon.Bimface.Viewer.Viewer3DEvent.ViewAdded,g),null==(r=(i=o.value).removeEventListener)||r.call(i,Glodon.Bimface.Viewer.Viewer3DEvent.ContextMenu,d)}catch(u){}if(a.value)try{null==(M=(n=a.value).destroy)||M.call(n)}catch(u){}o.value=null,a.value=null})()}),(e,i)=>(t.openBlock(),t.createElementBlock("div",{class:"model-container",ref_key:"bimContainer",ref:n},null,512))}},[["__scopeId","data-v-b60f1ba4"]]),ki=C({__name:"DwgViewer",props:{viewToken:{type:String,default:"5a6e6e0b33434ba795a107136fd2bc63"},extraContextMenu:{type:Array,default:()=>[{label:"其他",key:"extraOther",children:[{label:"添加养护",key:"addMaintain"},{label:"养护记录",key:"maintainRecord"}]}]}},emits:["contextMenuClick"],setup(e,{emit:i}){const r=e,n=t.ref(null),o=t.ref(null),a=t.ref(null),s=t.ref(null),M=e=>{if(e.children&&e.children.length>0){const t=document.createElement("div");t.className="bf-sub-menu";const i=document.createElement("div");i.className="bf-menu-item user-item",i.textContent=e.label,t.appendChild(i);const r=document.createElement("div");return r.className="bf-menu",r.style.width="max-content",e.children.forEach(e=>{const t=M(e);r.appendChild(t)}),t.appendChild(r),t}{const t=document.createElement("div");return t.className="bf-menu-item user-item",t.id=`menu-${e.key}`,t.textContent=e.label,t.dataset.key=e.key,t}},u=(e,t,r)=>{if(t.children&&t.children.length>0)t.children.forEach(t=>{u(e,t,r)});else{const n=e.querySelector(`#menu-${t.key}`);if(!n)return;const o=()=>{i("contextMenuClick",{...t,selectedComponents:r}),l(),n.removeEventListener("click",o)};n.addEventListener("click",o)}},c=e=>{const i=e.getViewer().getDrawing().getSelectedObjects();if(!i.length)return;const n=document.querySelector(".bf-menu.bf-menu-right"),o=document.querySelector(".bf-menu.bf-menu-left"),s=n||o;if(!s)return;const c=document.getElementById("bim-construction-menu");c&&c.remove();const l=(()=>{const e=document.createElement("div");return e.id="bim-construction-menu",r.extraContextMenu.forEach(t=>{const i=M(t);e.appendChild(i)}),e})();s.appendChild(l),t.nextTick(()=>{((e,t)=>{t.length&&a.value&&r.extraContextMenu.forEach(i=>{u(e,i,t)})})(l,i)})},l=()=>{const e=document.getElementById("bim-construction-menu");e&&e.remove();const t=document.querySelector(".bf-menu.bf-menu-right");t&&(t.style.display="none")},N=()=>{o.value&&window.requestAnimationFrame(()=>{o.value.home()})},g=()=>{a.value&&r.extraContextMenu.length&&setTimeout(()=>{c(a.value)},0)},d=e=>{if("drawingView"===e.viewType&&n.value)try{const e=new Glodon.Bimface.Application.WebApplicationDrawingConfig;e.domElement=n.value,a.value=new Glodon.Bimface.Application.WebApplicationDrawing(e),o.value=a.value.getViewer(),o.value.loadDrawing({viewToken:r.viewToken}),o.value.addEventListener(Glodon.Bimface.Viewer.ViewerDrawingEvent.Loaded,N),o.value.addEventListener(Glodon.Bimface.Viewer.ViewerDrawingEvent.ContextMenu,g)}catch(t){}},T=e=>{},j=()=>{t.nextTick(()=>{(()=>{if(!n.value)return;const e=new BimfaceSDKLoaderConfig;e.viewToken=r.viewToken,BimfaceSDKLoader.load(e,d,T)})()})};return t.onMounted(()=>{j()}),t.onBeforeUnmount(()=>{(()=>{var e,t,i,r,n,M;if(s.value&&(window.removeEventListener("resize",s.value),s.value=null),l(),o.value)try{null==(t=(e=o.value).removeEventListener)||t.call(e,Glodon.Bimface.Viewer.ViewerDrawingEvent.Loaded,N),null==(r=(i=o.value).removeEventListener)||r.call(i,Glodon.Bimface.Viewer.ViewerDrawingEvent.ContextMenu,g)}catch(u){}if(a.value)try{null==(M=(n=a.value).destroy)||M.call(n)}catch(u){}o.value=null,a.value=null})()}),(e,i)=>(t.openBlock(),t.createElementBlock("div",{class:"dwg-container",ref_key:"dwgContainer",ref:n},null,512))}},[["__scopeId","data-v-ab9c8ebd"]]),bi=[{component:m,name:"SCTJDictTag"},{component:E,name:"SCTJTreeSelect"},{component:w,name:"SCTJSvgIcon"},{component:P,name:"SCTJFileUpload"},{component:F,name:"SCTJImageUpload"},{component:J,name:"SCTJImagePreview"},{component:ie,name:"SCTJIconSelect"},{component:ae,name:"SCTJSearch"},{component:se,name:"SCTJDateRangePicker"},{component:ce,name:"SCTJTable"},{component:Ne,name:"SCTJTableContainer"},{component:De,name:"SCTJTablePageContainer"},{component:Te,name:"SCTJTableTopActionContainer"},{component:ge,name:"SCTJRightToolbar"},{component:Ie,name:"SCTJBtnContainer"},{component:pe,name:"SCTJBaseChart"},{component:Ce,name:"SCTJCommonChart"},{component:fe,name:"SCTJPieChart"},{component:Qe,name:"SCTJFlvPlayer"},{component:rt,name:"SCTJH5hkPlayer"},{component:jt,name:"SCTJHelmetPlayer"},{component:vt,name:"SCTJYsyPlayer"},{component:Ot,name:"SCTJIframe"},{component:Ut,name:"SCTJImportDialog"},{component:Zt,name:"SCTJDialogTable"},{component:Xt,name:"SCTJMapViewer"},{component:ji,name:"SCTJMapDrawingDialog"},{component:xi,name:"SCTJBusinessMapDrawingDialog"},{component:wi,name:"SCTJBimViewer"},{component:ki,name:"SCTJDwgViewer"}],Yi={install:e=>{bi.forEach(({component:t,name:i})=>{e.component(i,t)})},SCTJDictTag:m,SCTJTreeSelect:E,SCTJSvgIcon:w,SCTJFileUpload:P,SCTJImageUpload:F,SCTJImagePreview:J,SCTJIconSelect:ie,SCTJSearch:ae,SCTJDateRangePicker:se,SCTJTable:ce,SCTJTableContainer:Ne,SCTJTablePageContainer:De,SCTJTableTopActionContainer:Te,SCTJRightToolbar:ge,SCTJBtnContainer:Ie,SCTJBaseChart:pe,SCTJCommonChart:Ce,SCTJPieChart:fe,SCTJFlvPlayer:Qe,SCTJH5hkPlayer:rt,SCTJHelmetPlayer:jt,SCTJYsyPlayer:vt,SCTJIframe:Ot,SCTJImportDialog:Ut,SCTJDialogTable:Zt,SCTJMapViewer:Xt,SCTJMapDrawingDialog:ji,SCTJBusinessMapDrawingDialog:xi,SCTJBimViewer:wi,SCTJDwgViewer:ki},Ui=Object.freeze(Object.defineProperty({__proto__:null,default:"data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMTI4IiBoZWlnaHQ9IjEyOCIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIj48cGF0aCBkPSJNMTIxLjcxOCA3My4yNzJ2OS45NTNjMy45NTctNy41ODQgNi4xOTktMTYuMDUgNi4xOTktMjQuOTk1QzEyNy45MTcgMjYuMDc5IDk5LjI3MyAwIDYzLjk1OCAwIDI4LjY0NCAwIDAgMjYuMDc5IDAgNTguMjNjMCAuNDAzLjAyOC44MDYuMDI4IDEuMjFsMjIuOTctMjUuOTUzaDEzLjM0bC0xOS43NiAyNy4xODdoNi40MlY1My43N2wxMy43MjgtMTkuNDc3djQ5LjM2MUgyMi45OThWNzMuMjcySDIuMTU4YzUuO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A0LTMuMjEuOTA3LTQuOTgyLjkwN0g1NS4xODVjLTEuNzcgMC0zLjQzMS0uMzAzLTQuOTgxLS45MDctMS41NS0uNjA1LTIuOTA2LTEuNDM3LTQuMDQxLTIuNDdhMTIuNDkgMTIuNDkgMCAwIDEtMS4zODQtMS41MTJsMTMuNzI3LTE4LjIxN3Y2LjM3NWMwIC42MDUuMjIyIDEuMTA5LjY2NSAxLjUxMi40NDIuNDAzLjk5Ni42MDQgMS42Ni42MDQuNjY0IDAgMS4yMTgtLjIwMSAxLjY2LS42MDRhMS45NiAxLjk2IDAgMCAwIC42NjUtMS41MTJWNTMuODdMNzUuOTcgMzYuODM4Yy45MTMuOTMyIDEuNjYgMS45OSAyLjIxNCAzLjE3NS42NjQgMS40MS45OTYgMi45MjIuOTk2IDQuNTM1djI3LjAxMWguMDI4eiIvPjwvc3ZnPg=="},Symbol.toStringTag,{value:"Module"})),Qi=Object.freeze(Object.defineProperty({__proto__:null,default:"data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMTI4IiBoZWlnaHQ9IjEyOCIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIj48cGF0aCBkPSJNMTI3Ljg4IDczLjE0M2MwIDEuNDEyLS41MDYgMi42MzUtMS41MTggMy42NjktMS4wMTEgMS4wMzMtMi4yMDkgMS41NS0zLjU5MiAxLjU1aC0xNy44ODdjMCA5LjI5Ni0xLjc4MyAxNy4xNzgtNS4zNSAyMy42NDVsMTYuNjA5IDE3LjA0NGMxLjAxMSAxLjAzNCAxLjUxNyAyLjI1NyAxLjUxNyAzLjY3IDAgMS40MTItLjUwNiAyLjYzNS0xLjUxNyAzLjY2OC0uOTU4IDEuMDMzLTIuMTU1IDEuNTUtMy41OTMgMS41NS0xLjQzOCAwLTIuNjM1LS41MTctMy41OTMtMS41NWwtMTUuODExLTE2LjA2M2ExNS40OSAxNS40OSAwIDAgMS0xLjE5NiAxLjA2Yy0uNTMyLjQzNC0xLjY1IDEuM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aCBkPSJNOTYwIDU5MS40MjRWMzY4Ljk2YzAtMC4yODggMC4xNi0wLjUxMiAwLjE2LTAuNzY4Uzk2MCAzNjcuNjggOTYwIDM2Ny40MjRWMTkyYTMyIDMyIDAgMCAwLTMyLTMySDk2YTMyIDMyIDAgMCAwLTMyIDMydjE3NS40MjRjMCAwLjI4OC0wLjE2IDAuNTEyLTAuMTYgMC43NjhzMC4xNiAwLjQ4IDAuMTYgMC43Njh2MjIyLjQ2NGMwIDAuMjg4LTAuMTYgMC41MTItMC4xNiAwLjc2OHMwLjE2IDAuNDggMC4xNiAwLjc2OFY4NjRhMzIgMzIgMCAwIDAgMzIgMzJoODMyYTMyIDMyIDAgMCAwIDMyLTMydi0yNzEuMDRjMC0wLjI4OCAwLjE2LTAuNTEyIDAuMTYtMC43NjhTOTYwIDU5MS42OCA5NjAgNTkxLjQyNHogbS01NjAtMzEuMjMydi0xNjBINjA4djE2MGgtMjA4eiBtMjA4IDY0VjgzMmgtMjA4di0yMDcuODA4SDYwOHogbS00ODAtMjI0aDIwOHYxNjBIMTI4di0xNjB6IG01NDQgMGgyMjR2MTYwaC0yMjR2LTE2MHpNODk2IDIyNHYxMTIuMTkySDEyOFYyMjRoNzY4ek0xMjggNjI0LjE5MmgyMDhWODMySDEyOHYtMjA3LjgwOHpNNjcyIDgzMnYtMjA3LjgwOGgyMjRWODMyaC0yMjR6IiBwLWlkPSIyMDU1Ij48L3BhdGg+PC9zdmc+"},Symbol.toStringTag,{value:"Module"})),_i=Object.freeze(Object.defineProperty({__proto__:null,default:"data:image/svg+xml;base64,PD94bWwgdmVyc2lvbj0iMS4wIiBzdGFuZGFsb25lPSJubyI/PjwhRE9DVFlQRSBzdmcgUFVCTElDICItLy9XM0MvL0RURCBTVkcgMS4xLy9FTiIgImh0dHA6Ly93d3cudzMub3JnL0dyYXBoaWNzL1NWRy8xLjEvRFREL3N2ZzExLmR0ZCI+PHN2ZyB0PSIxNTg4NjcwNDYwMTk1IiBjbGFzcz0iaW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bol.toStringTag,{value:"Module"})),Wi=Object.freeze(Object.defineProperty({__proto__:null,default:"data:image/svg+xml;base64,PD94bWwgdmVyc2lvbj0iMS4wIiBzdGFuZGFsb25lPSJubyI/PjwhRE9DVFlQRSBzdmcgUFVCTElDICItLy9XM0MvL0RURCBTVkcgMS4xLy9FTiIgImh0dHA6Ly93d3cudzMub3JnL0dyYXBoaWNzL1NWRy8xLjEvRFREL3N2ZzExLmR0ZCI+PHN2ZyB0PSIxNTQ2NTY3ODYxOTA4IiBjbGFzcz0iaWNvbiIgc3R5bGU9IiIgdmlld0JveD0iMCAwIDEwMjQgMTAyNCIgdmVyc2lvbj0iMS4xIiB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHAtaWQ9IjI0MjIiIHhtbG5zOnhsaW5rPSJodHRwOi8vd3d3LnczLm9yZy8xOTk5L3hsaW5rIiB3aWR0aD0iMjAwIiBoZWlnaHQ9IjIwMCI+PGRlZnM+PHN0eWxlIHR5cGU9InRleHQvY3NzIj48L3N0eWxlPjwvZGVmcz48cGF0aCBkPSJNMzE4LjU3Nzc3OCA4MTkuMkwxNy4wNjY2NjcgNTEybDMwMS41MTExMTEtMzA3LjIgNDUuNTExMTExIDQ1LjUxMTExMUw5Ni43MTExMTEgNTEybDI2Ny4zNzc3NzggMjYxLjY4ODg4OXpNNzA1LjQyMjIyMiA4MTkuMmwtNDUuNTExMTExLTQ1LjUxMTExMUw5MjcuMjg4ODg5IDUxMmwtMjY3LjM3Nzc3OC0yNjEuNjg4ODg5IDQ1LjUxMTExMS00NS41MTExMTFMMTAwNi45MzMzMzMgNTEyek01NDAuNzg1Nzc4IDIyMS44NjY2NjdsNTUuNzUxMTExIDExLjE1MDIyMkw0ODMuMTU3MzMzIDgwMi4xMzMzMzNsLTU1Ljc1MTExMS0xMS4wOTMzMzN6IiBwLWlkPSIyNDIzIj48L3BhdGg+PC9zdmc+"},Symbol.toStringTag,{value:"Module"})),Gi=Object.freeze(Object.defineProperty({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jMwOTUwNTcgMjYuNTcwNjg1MzMgMjcuNTQwNzI1OTNhMjcuMDc2NzkzNjEgMjcuMDc2NzkzNjEgMCAwIDEtMjYuNTcwNjg1MzMgMjcuNTQwNzI2NzR6IiBwLWlkPSIyNTEwIj48L3BhdGg+PC9zdmc+"},Symbol.toStringTag,{value:"Module"})),Fi=Object.freeze(Object.defineProperty({__proto__:null,default:"data:image/svg+xml;base64,PD94bWwgdmVyc2lvbj0iMS4wIiBzdGFuZGFsb25lPSJubyI/PjwhRE9DVFlQRSBzdmcgUFVCTElDICItLy9XM0MvL0RURCBTVkcgMS4xLy9FTiIgImh0dHA6Ly93d3cudzMub3JnL0dyYXBoaWNzL1NWRy8xLjEvRFREL3N2ZzExLmR0ZCI+PHN2ZyB0PSIxNTc1ODA0MjA2ODkyIiBjbGFzcz0iaWNvbiIgdmlld0JveD0iMCAwIDEwMjQgMTAyNCIgdmVyc2lvbj0iMS4xIiB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHAtaWQ9IjMxNDUiIHhtbG5zOnhsaW5rPSJodHRwOi8vd3d3LnczLm9yZy8xOTk5L3hsaW5rIiB3aWR0aD0iMjAwIiBoZWlnaHQ9IjIwMCI+PGRlZnM+PHN0eWxlIHR5cGU9InRleHQvY3NzIj48L3N0eWxlPjwvZGVmcz48cGF0aCBkPSJNODI2LjU2IDQ3MC4wMTZjLTMyLjg5NiAwLTY0LjM4NCAxMi4yODgtODkuOTg0IDM1LjUybDAtMTA0Ljk2YzAtNjIuMjA4LTUwLjQ5Ni0xMTIuODMyLTExMi42NC0xMTMuMDg4TDYyMy45MzYgMjg3LjA0IDUxOS41NTIgMjg3LjEwNEM1NDEuODI0IDI2Mi43MiA1NTQuNTYgMjMwLjcyIDU1NC41NiAxOTcuMTJjMC03My41MzYtNTkuOTA0LTEzMy40NC0xMzMuNTA0LTEzMy40NC03My40NzIgMC0xMzMuMzc2IDU5LjkwNC0xMzMuMzc2IDEzMy40NCAwIDMyL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0aDQ0NS41MzZ2NzcuNDR6IG0wLTEzNy4yNDhIMjA2LjA4NDh2LTc3LjQ0aDQ0NS41MzZ2NzcuNDR6IiBwLWlkPSIzNjAzIj48L3BhdGg+PC9zdmc+"},Symbol.toStringTag,{value:"Module"})),$i=Object.freeze(Object.defineProperty({__proto__:null,default:"data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMTI4IiBoZWlnaHQ9IjEyOCIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIj48cGF0aCBkPSJNNzEuOTg0IDQ0LjgxNUgxMTUuOUw3MS45ODQgOS42NDJ2MzUuMTczek0xNi4wOTQuMDVoNjMuODc1bDQ3LjkwNiAzOC4zN3Y3Ni43NGMwIDMuMzkyLTEuNjgyIDYuNjQ1LTQuNjc3IDkuMDQ0LTIuOTk1IDIuMzk5LTcuMDU2IDMuNzQ2LTExLjI5MiAzLjc0NkgxNi4wOTRjLTQuMjM2IDAtOC4yOTctMS4zNDctMTEuMjkyLTMuNzQ2LTIuOTk1LTIuMzk5LTQuNjc3LTUuNjUyLTQuNjc3LTkuMDQ0VjEyLjg0Qy4xMjUgNS43NDIgNy4yMy4wNSAxNi4wOTQuMDV6bTcxLjg2IDEwMi4zMlY4OS41OGgtNzEuODZ2MTIuNzloNzEuODZ6bTIzLjk1Mi0yNS41OFY2NEgxNi4wOTR2MTIuNzloOTUuODEyeiIvPjwvc3ZnPg=="},Symbol.toStringTag,{value:"Module"})),Xi=Object.freeze(Object.defineProperty({__proto__:null,default:"data:image/svg+xml;base64,PD94bWwgdmVyc2lvbj0iMS4wIiBzdGFuZGFsb25lPSJubyI/PjwhRE9DVFlQRSBzdmcgUFVCTElDICItLy9XM0MvL0RURCBTVkcgMS4xLy9FTiIgImh0dHA6Ly93d3cudzMub3JnL0dyYXBoaWNzL1NWRy8xLjEvRFREL3N2ZzExLmR0ZCI+PHN2ZyB0PSIxNTY5OTE1NzQ4Mjg5IiBjbGFzcz0iaWNvbiIgd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IDAgMC00NS4wNTYtMC4xOTJsLTM2LjA5NiAzNi4wOTZ6IiBmaWxsPSIjMzMzMzMzIiBwLWlkPSIzMDY0Ij48L3BhdGg+PC9zdmc+"},Symbol.toStringTag,{value:"Module"})),er=Object.freeze(Object.defineProperty({__proto__:null,default:"data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMTI4IiBoZWlnaHQ9IjEyOCIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIj48cGF0aCBkPSJNNzMuMTM3IDI5LjA4aC05LjIwOSAyOS43TDYzLjg4Ni4wOTMgMzQuMzczIDI5LjA4aDIwLjQ5djI3LjAzNUgyNy4yMzh2MTcuOTQ4aDI3LjYyNXYyNy4xMzNoMTguMjc0Vjc0LjA2M2gyNy40MVY1Ni4xMTVoLTI3LjQxVjI5LjA4em0tOS4yNDUgOTguODI3bDI3LjUxOC0yNi43MTFIMzYuNTlsMjcuMzAyIDI2Ljcxek0uMDQyIDY0Ljk4MmwyNy4xOTYgMjcuMDI5VjM4LjE2N0wuMDQyIDY0Ljk4MnptMTAwLjUwNS0yNi44MTVWOTIuMDFsMjcuNDEtMjcuMDI5LTI3LjQxLTI2LjgxNXoiLz48L3N2Zz4="},Symbol.toStringTag,{value:"Module"})),tr=Object.freeze(Object.defineProperty({__proto__:null,default:"data:image/svg+xml;base64,PD94bWwgdmVyc2lvbj0iMS4wIiBzdGFuZGFsb25lPSJubyI/PjwhRE9DVFlQRSBzdmcgUFVCTElDICItLy9XM0MvL0RURCBTVkcgMS4xLy9FTiIgImh0dHA6Ly93d3cudzMub3JnL0dyYXBoaWNzL1NWRy8xLjEvRFREL3N2ZzExLmR0ZCI+PHN2ZyB0PSIxNTY2MDM2MzQ3MDUxIiBjbGFzcz0iaWNvbiIgdmlld0JveD0iMCAwIDEwMjQgMTAyNCIgdmVyc2lvbj0iMS4xIiB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHAtaWQ9IjU4NTMiI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LjQ3IDAgMCAwLTEuNzM3LTYuMzVMNjQuMTI1IDY4LjI4N3oiLz48L3N2Zz4="},Symbol.toStringTag,{value:"Module"})),or=Object.freeze(Object.defineProperty({__proto__:null,default:"data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMTI4IiBoZWlnaHQ9IjEyOCIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIj48cGF0aCBkPSJNOTYuMjU4IDU3LjQ2MmgzMS40MjFDMTI0Ljc5NCAyNy4zMjMgMTAwLjQyNiAyLjk1NiA3MC4yODcuMDd2MzEuNDIyYTMyLjg1NiAzMi44NTYgMCAwIDEgMjUuOTcxIDI1Ljk3em0tMzguNzk2LTI1Ljk3Vi4wN0MyNy4zMjMgMi45NTYgMi45NTYgMjcuMzIzLjA3IDU3LjQ2MmgzMS40MjJhMzIuODU2IDMyLjg1NiAwIDAgMSAyNS45Ny0yNS45N3ptMTIuODI1IDY0Ljc2NnYzMS40MjFjMzAuNDYtMi44ODUgNTQuNTA3LTI3LjI1MyA1Ny43MTMtNTcuNzEySDk2LjU3OWMtMi44ODYgMTMuNDY2LTEzLjE0NiAyMy43MjYtMjYuMjkyIDI2LjI5MXpNMzEuNDkyIDcwLjI4N0guMDdjMi44ODYgMzAuNDYgMjcuMjUzIDU0LjUwNyA1Ny43MTMgNTcuNzEzVjk2LjU3OWMtMTMuNDY2LTIuODg2LTIzLjcyNi0xMy4xNDYtMjYuMjkxLTI2LjI5MnoiLz48L3N2Zz4="},Symbol.toStringTag,{value:"Module"})),ar=Object.freeze(Object.defineProperty({__proto__:null,default:"data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMTI4IiBoZWlnaHQ9IjEyOCIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIj48cGF0aCBkPSJNNzguMjA4IDE2LjU3NnY4LjM4NGgzOC43MnY1LjM3NmgtMzguNzJ2OC43MDRoMzguNzJ2NS4zNzZoLTM4LjcydjguNTc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MgNC44MDEgNS4wMjVoMy42NWMyLjcyLS4wNjkgNC45NjItMS42ODUgNS4wMjItNC40MDZsLjE0MS0zNC45NTZjMC0uMDUtLjE4Mi0uMDgyLS4xODItLjEzNmwuMjYyLTIuNDZjLjAzLTEuMzY2LS4yODYtMi41OTItMS4xNjYtMy40NmgtLjAwMXpNODAuMDggNDcuMzk3YTQuNjIgNC42MiAwIDAgMCAzLjQ0MyAxLjM3NGwyLjQ1LS4wNTRjLjA1NSAwIC4wODgtLjAyLjE0My0uMDI4bDM1LjA4LjIxYzIuNzEyLS4wNjIgNC45NTMtMi4zMTIgNS4wMjEtNS4wMzNsLjAwOS0zLjQ2M2MtLjQxNy0zLjIxMS0yLjkzNy01LjA4NC01LjY0LTUuMDI1bC0xOC42MTUtLjA3MyAyMy45MTctMjMuNzE1YzIuNjMtMi42MjMgMi42My02Ljg3OS4wMDgtOS41MTNhNi42OTEgNi42OTEgMCAwIDAtOS40OTQgMEw5Mi4yNTEgMjYuMDE2bC4xNTUtMTkuMzEyYy4wNjUtMi43MTMtMi4wOTctNS4wODUtNC44MDItNS4wMjVoLTMuNDVjLTIuNzEzLjA2OS00Ljk1NCAxLjY5My01LjAyMiA0LjQwNmwtLjEzOSAzNS4yNDdjMCAuMDU0LjE4LjA4OC4xOC4xMzZsLS4yNjcgMi40NjVjLS4wMjggMS4zNjYuMjg4IDIuNTg4IDEuMTc0IDMuNDYzdi4wMDF6Ii8+PC9zdmc+"},Symbol.toStringTag,{value:"Module"})),Mr=Object.freeze(Object.defineProperty({__proto__:null,default:"data:image/svg+xml;base64,PHN2ZyBjbGFzcz0iaWNvbiIgdmlld0JveD0iMCAwIDEwMjQgMTAyNCIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIiB3aWR0aD0iMTI4IiBoZWlnaHQ9IjEyOCI+PGRlZnM+PHN0eWxlLz48L2RlZnM+PHBhdGggZD0iTTUxMiAxMjhxNjkuNjc1IDAgMTM1LjUxIDIxLjE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QtLjQ5IDMuMTk4LTEuNDcybDEyLjU2NC0xMy45ODNjNS45NCA0LjQxNiAxMy4wMjEgOC41ODcgMjAuNzg4IDExLjUzbC00Ljc5NyAxNy40MThjLS42ODUgMi42OTkuNjg2IDUuMzk3IDMuMTk4IDYuMTMzaDEuMzdjMi4wNTcgMCAzLjg4NC0xLjQ3MiA0LjM0MS0zLjY4TDUyLjYgNDIuODNjMy42NTUuNzM2IDcuNTM4IDEuMjI3IDExLjQyMiAxLjIyNyAzLjg4MyAwIDcuNzY3LS40OSAxMS40MjItMS4yMjdsNC43OTcgMTcuMTczYy40NTcgMi4yMDggMi41MTMgMy42OCA0LjM0IDMuNjguNDU3IDAgLjkxNCAwIDEuMTQzLS4yNDYgMi41MTMtLjczNiAzLjg4My0zLjQzNCAzLjE5OC02LjEzM2wtNC43OTctMTcuMTcyYzcuNzY3LTIuOTQ0IDE0Ljg0OC03LjExNCAyMC43ODgtMTEuNTNsMTIuMzM2IDEzLjczOGMuOTEzLjk4MSAyLjA1NiAxLjQ3MiAzLjE5OCAxLjQ3MnMyLjI4NC0uNDkgMy4xOTgtMS40NzJjMS44MjgtMS45NjMgMS44MjgtNC45MDYuMjI4LTYuODdsLTExLjY1LTEzLjAwMWM5LjM2Ni03LjM2IDE0Ljg0OS0xNC40NzQgMTQuODQ5LTE0LjQ3NHoiLz48L3N2Zz4="},Symbol.toStringTag,{value:"Module"})),cr=Object.freeze(Object.defineProperty({__proto__:null,default:"data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMTI4IiBoZWlnaHQ9IjEyOCIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIj48cGF0aCBkPSJNODQuMDY4IDIzLjc4NGMtMS4wMiAwLTEuODc3LS4zMi0yLjU3Mi0uOTZhOC41ODggOC41ODggMCAwIDEtMS43MzgtMi4yMzcgMTEuNTI0IDExLjUyNCAwIDAgMS0xLjA0Mi0yLjYyMWMtLjIzMi0uODk1LS4zNDgtMS42NDE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bnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIj48cGF0aCBkPSJNMzguNDcgNTJMNTIgMzguNDYybC0yMy42NDgtMjMuNjdMNDMuMjA5IDBILjAzNUwwIDQzLjEzN2wxNC43NTctMTQuODY1TDM4LjQ3IDUyem03NC43NzMgNDcuNzI2TDg5LjUyNiA3NiA3NiA4OS41MzZsMjMuNjQ4IDIzLjY3Mkw4NC43OTUgMTI4aDQzLjE3NEwxMjggODQuODYzbC0xNC43NTcgMTQuODYzek04OS41MzggNTJsMjMuNjY4LTIzLjY0OEwxMjggNDMuMjA3Vi4wMzhMODQuODY2IDAgOTkuNzMgMTQuNzYgNzYgMzguNDcyIDg5LjUzOCA1MnpNMzguNDYgNzZMMTQuNzkyIDk5LjY1MSAwIDg0Ljc5NHY0My4xNzNsNDMuMTM3LjAzMy0xNC44NjUtMTQuNzU3TDUyIDg5LjUzIDM4LjQ2IDc2eiIvPjwvc3ZnPg=="},Symbol.toStringTag,{value:"Module"})),Nr=Object.freeze(Object.defineProperty({__proto__:null,default:"data:image/svg+xml;base64,PD94bWwgdmVyc2lvbj0iMS4wIiBzdGFuZGFsb25lPSJubyI/PjwhRE9DVFlQRSBzdmcgUFVCTElDICItLy9XM0MvL0RURCBTVkcgMS4xLy9FTiIgImh0dHA6Ly93d3cudzMub3JnL0dyYXBoaWNzL1NWRy8xLjEvRFREL3N2ZzExLmR0ZCI+PHN2ZyB0PSIxNTgxMjM4OTk4ODg1IiBjbGFzcz0iaWNvbiIgdmlld0JveD0iMCAwIDEwMjQgMTAyNCIgdmVyc2lvbj0iMS4xIiB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHAtaWQ9IjQxODciIHhtbG5zOnhsaW5rPSJodHRwOi8vd3d3LnczLm9yZy8xOTk5L3hsaW5rIiB3aWR0aD0iMjAwIiBoZWlnaHQ9IjIwMCI+PGRlZnM+PHN0eWxlIHR5cGU9InRleHQvY3NzIj48L3N0eWxlPjwvZ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TUxLjMyLjUxMS43Mi45MzcgMS4yIDEuMTA3em00NC42NzYgNTcuODIxTDY0LjIyIDEwNy4yNmwtMTguMDYyLTcuODM0djI4LjUyN3oiLz48L3N2Zz4="},Symbol.toStringTag,{value:"Module"})),dr=Object.freeze(Object.defineProperty({__proto__:null,default:"data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMTI4IiBoZWlnaHQ9IjEyOCIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIj48cGF0aCBkPSJNMTE1LjE0Ny4wNjJhMTMgMTMgMCAwIDEgNC45NC45NDVjMS41NS42MyAyLjkwNyAxLjUyNiA0LjA2OSAyLjY4OGExMy4xNDggMTMuMTQ4IDAgMCAxIDIuNzYxIDQuMDY5Yy42NzggMS41NSAxLjAxNyAzLjI0NSAxLjAxNyA1LjA4NnYxMDIuM2MwIDMuNjgxLTEuMTg3IDYuNzMzLTMuNTYgOS4xNTUtMi4zNzMgMi40MjItNS4zNTIgMy42MzMtOC45MzcgMy42MzNIMTIuOTkyYy0zLjg3NSAwLTctMS4yNi05LjM3My0zLjc3OS0yLjM3My0yLjUxOC0zLjU2LTUuNjY3LTMuNTYtOS40NDVWMTIuNzA0YzAtMy4zOSAxLjE2My02LjM0NSAzLjQ4OC04Ljg2M0M1Ljg3MiAxLjMyIDguOTcyLjA2MiAxMi44NDcuMDYyaDEwMi4zek04MS40MzQgMTA5LjA0N2MxLjc0NCAwIDMuMDAzLS40MTIgMy43NzgtMS4yMzUuNzc1LS44MjQgMS4xNjMtMS45MTQgMS4xNjMtMy4yNyAwLTEuMjYtLjM4OC0yLjMyNS0xLjE2My0zLjE5Ny0uNzc1LS44NzItMi4wMzQtMS4zMDctMy43NzgtMS4zMDdINzIuNTdjLjA5Ny0uMTk0LjE0NS0uNDg1LjE0NS0uODcyVjI3LjA5aDkuMDFjMS43NDMgMCAyLjk1NC0uNDM2IDMuNjMzLTEuMzA4LjY3OC0uODcyIDEuMDE3LTEuOTM4ID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4IDUuNi0zLjE5NyA3LjItLjggMS42LTIuMzk4IDEuNi00Ljc5NSAxLjYtMS41OTkgMC0zLjE5Ny0uOC00Ljc5Ni0xLjYtMS41OTgtMS42LTIuMzk3LTIuNC0yLjM5Ny00IDAtLjggMC0xLjYuNzk5LTMuMi44LTEuNi44LTIuNCAxLjU5OC00bDE3LjU4My00NC44Yy44LTEuNi44LTMuMiAxLjU5OS00LjguNzk5LTEuNiAxLjU5OC0zLjIgMi4zOTctNCAuOC0uOCAxLjU5OS0yLjQgMy4xOTctMy4yIDEuNTk5LS44IDMuMTk3LS44IDQuNzk2LS44IDEuNTk4IDAgMy4xOTYgMCA0Ljc5NS44IDEuNTk4LjggMi4zOTggMS42IDMuMTk3IDMuMi43OTkuOCAxLjU5OCAyLjQgMi4zOTcgNCAuOCAxLjYgMS41OTkgMy4yIDIuMzk4IDUuNmwxNy41ODMgNDRjMS41OTggMy4yIDIuMzk4IDUuNiAyLjM5OCA3LjItLjguOC0xLjU5OSAyLjQtMi4zOTggNHpNMTE2LjcxMSA3MmMtOC43OTEtMy4yLTE1LjE4NS03LjItMjAuNzgtMTItNS41OTQgNS42LTEyLjc4NyA5LjYtMjEuNTc5IDEybC0yLjM5Ny00YzguNzkxLTIuNCAxNS45ODQtNS42IDIxLjU3OS0xMS4yQzg3LjkzOSA1MS4yIDgzLjE0NCA0NCA4MS41NDUgMzZoLTcuOTkydi0zLjJoMjEuNThjLTEuNi0yLjQtMy4xOTgtNS42LTQuNzk2LThsMi4zOTctLjhjMS41OTkgMi40IDMuOTk3IDUuNiA1LjU5NSA4LjhoMTkuOTh2NGgtNy45OTJjLTIuMzk3IDgtNi4zOTMgMTUuMi0xMS4xODkgMjAgNS41OTUgNC44IDExLjk4OCA4LjggMjAuNzggMTEuMmwtMy4xOTcgNHoiLz48L3N2Zz4="},Symbol.toStringTag,{value:"Module"})),Ir=Object.freeze(Object.defineProperty({__proto__:null,default:"data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMTI4I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uNjE2LTMuOTc0LTExLjk4LTguODc3LTExLjk4LTQuOTAyIDAtOC44NzYgNS4zNjQtOC44NzYgMTEuOTh6TTEyNC4xNyA1MC44OEgzMy45MjFjLTEuMjY4IDAtMi4xMTQgMS40MjUtMi4xMTQgMi44NTF2MTguMjU2YzAgMS43MTEgMS4wNTcgMi44NTIgMi4xMTQgMi44NTJoOTAuMjQ3YzEuMjY4IDAgMi4xMTQtMS40MjYgMi4xMTQtMi44NTJWNTMuNzNjMC0xLjQyNi0uODQ2LTIuODUyLTIuMTE0LTIuODUyek0uMTA2IDExNS45MTNjMCA2LjYxNiAzLjk3NCAxMS45OCA4Ljg3NiAxMS45OCA0LjkwMyAwIDguODc3LTUuMzY0IDguODc3LTExLjk4IDAtNi42MTYtMy45NzQtMTEuOTgtOC44NzctMTEuOTgtNC45MDIgMC04Ljg3NiA1LjM2NC04Ljg3NiAxMS45OHptMTI0LjA2NC0xMS45OEgzMy45MjFjLTEuMjY4IDAtMi4xMTQgMS40MjYtMi4xMTQgMi44NTN2MTguMjU1YzAgMS43MTEgMS4wNTcgMi44NTIgMi4xMTQgMi44NTJoOTAuMjQ3YzEuMjY4IDAgMi4xMTQtMS40MjYgMi4xMTQtMi44NTJ2LTE4LjI1NWMwLTEuNDI3LS44NDYtMi44NTMtMi4xMTQtMi44NTN6Ii8+PC9zdmc+"},Symbol.toStringTag,{value:"Module"})),Lr=Object.freeze(Object.defineProperty({__proto__:null,default:"data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMTI4IiBoZWlnaHQ9IjEyOCIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIj48cGF0aCBkPSJNMTE5Ljg4IDQ5LjY3NGgtNy45ODdWMzkuNTJDMTExLjg5MyAxNy43MzggOTAuNDUuMDggNjMuOTk2LjA4IDM3LjU0My4wOCAxNi4xIDE3LjczOCAxNi4xIDM5LjUydjEwLjE1NEg4LjExM2MtNC40MDggMC03Ljk4NyAyLjk0LTcuOT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ek00MjYuMDg4ODQgNjI1LjY1NjU3M2M5LjExOTcwNS0zOC41NDI4MjggNDQuMjU0OTIzLTY3LjMzNzY0MSA4Ni4wODU2MzQtNjcuMzM3NjQxczc2Ljk2Njk1MiAyOC43OTQ4MTMgODYuMDg1NjM0IDY3LjMzNzY0MUw0MjYuMDg4ODQgNjI1LjY1NjU3M3oiIHAtaWQ9IjUzNiI+PC9wYXRoPjwvc3ZnPg=="},Symbol.toStringTag,{value:"Module"})),Er=Object.freeze(Object.defineProperty({__proto__:null,default:"data:image/svg+xml;base64,PD94bWwgdmVyc2lvbj0iMS4wIiBzdGFuZGFsb25lPSJubyI/PjwhRE9DVFlQRSBzdmcgUFVCTElDICItLy9XM0MvL0RURCBTVkcgMS4xLy9FTiIgImh0dHA6Ly93d3cudzMub3JnL0dyYXBoaWNzL1NWRy8xLjEvRFREL3N2ZzExLmR0ZCI+PHN2ZyB0PSIxNTc1ODAyODQ2MDQ1IiBjbGFzcz0iaWNvbiIgdmlld0JveD0iMCAwIDEwMjQgMTAyNCIgdmVyc2lvbj0iMS4xIiB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHAtaWQ9IjI3NTAiIHhtbG5zOnhsaW5rPSJodHRwOi8vd3d3LnczLm9yZy8xOTk5L3hsaW5rIiB3aWR0aD0iMjAwIiBoZWlnaHQ9IjIwMCI+PGRlZnM+PHN0eWxlIHR5cGU9InRleHQvY3NzIj48L3N0eWxlPjwvZGVmcz48cGF0aCBkPSJNODY4LjU5MzA0NiA0MDMuODMyNDQyYy0zMC4wODExMDktMjguODQ0OTU1LTcwLjAzNzEyMy00NC43NTMyNzMtMTEyLjYyNDA1Ny00NC43NTMyNzNMMjY1Ljk0OTYwNiAzNTkuMDc5MTY4Yy00Mi41NTQxODggMC04Mi41MTAyMDIgMTUuOTA4MzE4LTExMi40Njk1MzggNDQuNjkwODUyLTMwLjIzNjY1MiAyOC43ODI1MzMtNDYuODU3MTkxIDY3LjIyMjAwNy00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MyAyMi44NzktNDAuNDIzIDMwLjIxMy0xNi4xNDYgNy4zNDMtMzUuMTU1IDExLjAwNy01Ny4wMyAxMS4wMDdoLTEyMy4yNlY2MDcuNTE4aDEyMy4yNmMxOC40MSAwIDM1LjU1MiAyLjk0MSA1MS40MjggOC44MDggMTUuODczIDUuODY5IDI5LjYxOCAxNC42NzEgNDEuMjIgMjYuNDEyIDExLjYwOCAxMS43NDQgMjAuNjc0IDI2LjQxMSAyNy4yMTcgNDQuMDIgNi41MzUgMTcuNjEgOS44MDMgMzguMjg4IDkuODAzIDYyLjAzNSAwIDIwLjgxLTIuNjcgNDAuMDItOC4wMDMgNTcuNjI0em0yNDUuMzYyLTE0Ni4wN2gtMTM4LjA3djY2LjAzaDExOS42NnY0OC44MjloLTExOS42NnYxMTguMDU4aC02Mi44M1Y2MDcuNTE4aDIwMC45djUyLjgyOWgtLjAwMXptLTMxOC4yIDI1LjYxMWMtNi40MDItOC4yNjYtMTQuODc3LTE0LjYwNC0yNS40MTItMTkuMDEtMTAuNTQ0LTQuNDAyLTIzLjU1MS02LjYwMi0zOS4wMTktNi42MDJoLTQ0LjgyNXYxODAuMDg4aDU2LjAyOWM5LjA3IDAgMTcuODcyLTEuNDYzIDI2LjQxNS00LjQwMSA4LjUzNS0yLjkzMiAxNi4xNC03LjgwMiAyMi44MTItMTQuNjA5IDYuNjY1LTYuOCAxMi4wMDctMTUuNjY3IDE2LjAwNy0yNi42MSA0LjAwMy0xMC45NCA2LjAwMy0yNC4yNzUgNi4wMDMtNDAuMDIxIDAtMTQuNDA4LTEuNC0yNy40MTYtNC4yMDItMzkuMDE5LTIuOC0xMS42MDctNy40MDYtMjEuNTQyLTEzLjgwOC0yOS44MTZ6bTAgMCIvPjwvc3ZnPg=="},Symbol.toStringTag,{value:"Module"})),xr=Object.freeze(Object.defineProperty({__proto__:null,default:"data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMTI4IiBoZWlnaHQ9IjEyOCIgeG1sbnM9Imh0dHA6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jNC42IDcuOSA0LjIgMjAuNi0xIDI4LjF6IiBwLWlkPSI0MDAwIj48L3BhdGg+PC9zdmc+"},Symbol.toStringTag,{value:"Module"})),Yr=Object.freeze(Object.defineProperty({__proto__:null,default:"data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMTI4IiBoZWlnaHQ9IjEyOCIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIj48cGF0aCBkPSJNMTguNDQ4IDU3LjU0NWwtLjI0NC0uNzQ0LS4xOTgtLjk2OC0uMTMyLS41M3YtMi4xODFsLjIzNi0uODU5LjI0LS45MDguMzE3LS45NTMuNDI4LTEuMDYuNTYxLTEuMTAzLjc5NC0xLjEwNHYtLjc3M2wuMDc3LS43MjQuMTIzLS45ODQuMzQtMS4xMDYuMzEzLTEuMTk0LjI1LS41NDguMjg5LS41MTEuMzcxLS41NjkuNDA1LS40MjN2LTIuNzNsLjIzNC0xLjQwNy4yMzYtMS42MzMuNDItMS45NTUuNTc3LTIuMDM1LjQzLTEuMTE4LjQyNi0xLjIxNy40NjgtMS4xMzUuNTU5LTEuMjE2LjU3LTEuMzMyLjY1NS0xLjI0Ny43MzctMS4zMzEuOTI5LTEuMzMuNDMtLjc2Mi40NTctLjYyNC45OTUtMS40MDYgMS4wMjUtMS40MDMgMS4xNjMtMS40NDQgMS4yNDYtMS40MDUgMS4zNTItMS4zODQgMS40MS0xLjQyMyAxLjcwOC0xLjUzNiAxLjA4My0uOTM0IDEuMzIyLTEuMDA4IDEuMzQtLjg5IDEuNDQ4LS44NTUgMS4zOTItLjc2IDEuNTctLjYzIDEuNjY3LS43NzUgMS42NTctLjUzMiAxLjY1My0uNTUyIDEuNzg3LS41NDggMS43ODUtLjQxNyAxLjg3Ni0uMzQ3TDU5LjEyOC42OGwxLjg3OS0uMjQ1IDEuODc2LS4yNTIgMi4wMDItLjEwNmg1LjkxMmwxLjk3LjI0MyAxLjk4MS4yMzEgMi4wMTkuMjA3IDEuODc0LjQ0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1OS0xLjE5NC0uNTQ3LTEuMTkyLS41NDYtMS4zMy0uMzk3LTEuMjczLS4zNzgtMS41NzUtLjExMi0uMDU3aC0uMTE1bC0uMDU5LS4xMTNoLS4xNGwtLjIzLjExMy0uMTE0LjA1Ny0uMTU4LjI2NC0uMDU3LjMyMS0uMTE5LjI4Ni0uMjA2LjQ3Ny0uNjY0IDEuMTU3LS4zNDUuNzAxLS41NDYuNjEyLS41OC43MzYtLjY0MS44MTYtLjY3Ny43MjQtLjc5NS43MDEtLjczNC42NTgtLjgxNC41MjQtLjg5LjU0Ni0uODU1LjMyNS0xLjAwOC4yNDctLjk5LjA5NWgtLjIzM2wtLjIyOC0uMDk1LS4xOC0uMzg0LS4yOS0uMTg4LS4zOC0uOTEyLS4yMzctLjQ5My0uMjU1LS43MDctLjIxLS43MzQtLjExMy0uNzI0LS4zMTMtMS42NDgtLjEyLS45NzJ2LTMuMTg1bC4xMi0yLjM3OS4xOTYtMS4yMTQuMjMtMS4yNTIuMjEtMS4zNDcuMzc0LTEuMjU0LjQyLTEuNDQzLjQzMS0xLjQwNy41NzgtMS40NDguNTQ1LTEuMzguNzU0LTEuNC42OTktMS41Mi44NTUtMS40MjUgMS4wMDYtMS41MzggMS4wMjMtMS4zODIgMS4wNjktMS41MzguODkxLTEuMDcxIDEuMTQyLTEuMjI3IDEuMjAyLTEuMjM3LjU2LS41OS42NzgtLjY2Mi45ODUtLjgzNiAxLjAxMi0uODUzIDEuNjQ3LTEuNDQ2IDEuMjQyLS44ODl6Ii8+PC9zdmc+"},Symbol.toStringTag,{value:"Module"})),Ur=Object.freeze(Object.defineProperty({__proto__:null,default:"data:image/svg+xml;base64,PD94bWwgdmVyc2lvbj0iMS4wIiBzdGFuZGFsb25lPSJubyI/PjwhRE9DVFlQRSBzdmcgUFVCTElDICItLy9XM0MvL0RURCBTVkcgMS4xLy9FTiIgImh0dHA6Ly93d3cudzMub3JnL0dyYXBoaWNzL1NWRy8xLjEvRFREL3N2ZzExLmR0ZC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uMTk5LjE3MyAxLjM3NC4zNDUgMi43NzIuNTE4IDQuMTkzLjI2IDEuNzA2LjUxOSAzLjUwNy43NzggNS40MDNoODguNjc4eiIvPjwvc3ZnPg=="},Symbol.toStringTag,{value:"Module"})),Fr=Object.freeze(Object.defineProperty({__proto__:null,default:"data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMTI4IiBoZWlnaHQ9IjEyOCIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIj48cGF0aCBkPSJNMCA1NC44NTdoNTQuNzk2djE4LjI4NkgzNi41MzFWMTI4SDE4LjI2NVY3My4xNDNIMFY1NC44NTd6bTEyNy44NTctMzYuNTcxSDkxLjkzNVYxMjhINzIuNDU2VjE4LjI4NkgzNi41MzRWMGg5MS4zMjZsLS4wMDMgMTguMjg2eiIvPjwvc3ZnPg=="},Symbol.toStringTag,{value:"Module"})),Zr=Object.freeze(Object.defineProperty({__proto__:null,default:"data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMTI4IiBoZWlnaHQ9IjEyOCIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIj48cGF0aCBkPSJNMzEuNjUyIDkzLjIwNmgzMy40MDFjMS40NCAyLjQxOCAzLjA3NyA0LjY2MyA0LjkzIDYuNjkyaC0zOC4zM3YtNi42OTJ6bTAtMTAuNTg2aDI4LjkxNGE0NC44IDQ0LjggMCAwIDEtMS4yNjQtNi42ODhoLTI3LjY1djYuNjg4em0wLTE3LjI3SDU5LjM5Yy4yODgtMi4yODYuNzE0LTQuNTMyIDEuMzQtNi42ODdIMzEuNjV2Ni42ODdoLjAwM3ptNTMuOTEzIDQ0Ljg0djUuODVjMCAyLjc5OC0yLjA5NSA1LjA3NS00LjY2NyA1LjA3NWgtNzAuMDdjLTIuNTc2IDAtNC42NjMtMi4yNzctNC42NjMtNS4wNzVWMzEuMjZsMjMuMjItMjAuOTZ2MjIuMjVIMTcuMTZ2Ni42ODhoMTguM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Symbol.toStringTag,{value:"Module"})),Jr=Object.freeze(Object.defineProperty({__proto__:null,default:"data:image/svg+xml;base64,PD94bWwgdmVyc2lvbj0iMS4wIiBzdGFuZGFsb25lPSJubyI/PjwhRE9DVFlQRSBzdmcgUFVCTElDICItLy9XM0MvL0RURCBTVkcgMS4xLy9FTiIgImh0dHA6Ly93d3cudzMub3JnL0dyYXBoaWNzL1NWRy8xLjEvRFREL3N2ZzExLmR0ZCI+PHN2ZyB0PSIxNTc3MTg1MzEwMzY4IiBjbGFzcz0iaWNvbiIgdmlld0JveD0iMCAwIDEwMjQgMTAyNCIgdmVyc2lvbj0iMS4xIiB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHAtaWQ9IjEyMzgiIHhtbG5zOnhsaW5rPSJodHRwOi8vd3d3LnczLm9yZy8xOTk5L3hsaW5rIiB3aWR0aD0iODEiIGhlaWdodD0iODEiPjxkZWZzPjxzdHlsZSB0eXBlPSJ0ZXh0L2NzcyI+PC9zdHlsZT48L2RlZnM+PHBhdGggZD0iTTk1MS40NTMxMjUgNDc2Ljg0Mzc1SDUyMy42NzE4NzVhMTMxLjgzNTkzNzUgMTMxLjgzNTkzNzUgMCAwIDAtMjU0LjE3OTY4NzUgMEg3Mi41NDY4NzV2NzAuMzEyNWgxOTYuOTQ1MzEyNWExMzEuODM1OTM3NSAxMzEuODM1OTM3NSAwIDAgMCAyNTQuMTc5Njg3NSAwSDk1MS40NTMxMjV6IiBwLWlkPSIxMjM5Ij48L3BhdGg+PC9zdmc+"},Symbol.toStringTag,{value:"Module"})),qr=Object.freeze(Object.defineProperty({__proto__:null,default:"data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMTI4IiBoZWlnaHQ9IjEyOCIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIj48cGF0aCBkPSJNNzAuNjYgNC4zMjhsMTQuMDEgMjkuNjkzYzEuMDg4IDIuMjkgMy4xNzcgMy44ODIgNS42MDMgNC4yNWwzMS4zNDcgNC43NmM2LjA4Ny45MjYgOC41MjggOC43NTYgNC4xMTcgMTMuMjQ3TDEwMy4wNSA3OS4zOTVjLTEuNzUgMS43OC0yLjU0NCA0LjM1Mi0yLjEzMiA2Ljg2N2w1LjM1MiAzMi42NDFjMS4wNDMgNi4zMzctNS4zMyAxMS4xODItMTAuNzc4IDguMTlsLTI4LjAzOS0xNS40MDlhNy4xMyA3LjEzIDAgMCAwLTYuOTEgMGwtMjguMDM5IDE1LjQxYy01LjQ0OCAyLjk5LTExLjgyMS0xLjg1NC0xMC43NzctOC4xOWw1LjM1Mi0zMi42NDJjLjQxNS0yLjUxNS0uMzg3LTUuMDg4LTIuMTM2LTYuODY3TDIuMjY0IDU2LjI3OEMtMi4xNDYgNTEuNzg3LjI4NiA0My45NTcgNi4zOCA0My4wMzFsMzEuMzQzLTQuNzZjMi40MTktLjM2OCA0LjUxLTEuOTYgNS41OTUtNC4yNUw1Ny4zMzQgNC4zMjhjMi43MjgtNS43NyAxMC42MDUtNS43NyAxMy4zMjUgMHoiLz48L3N2Zz4="},Symbol.toStringTag,{value:"Module"})),Kr=Object.freeze(Object.defineProperty({__proto__:null,default:"data:image/svg+xml;base64,PD94bWwgdmVyc2lvbj0iMS4wIiBzdGFuZGFsb25lPSJubyI/PjwhRE9DVFlQRSBzdmcgUFVCTElDICItLy9XM0MvL0RURCBTVkcgMS4xLy9FTiIgImh0dHA6Ly93d3cudzMub3JnL0dyYXBoaWNzL1NWRy8xLjEvRFREL3N2ZzExLmR0ZCI+PHN2ZyB0PSIxNTY2MDM2Nzc2OTQ0IiBjbGFzcz0iaWNvbiIgdmlld0JveD0iMCAwIDEwMjQgMTAyNCIgdmVyc2lvbj0iMS4xIiB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHAtaWQ9IjY0NjMiIHhtbG5zOnhsaW5rPSJodHRwOi8vd3d3LnczLm9yZy8xOTk5L3hsaW5rIiB3aWR0aD0iMjAwIiB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defineProperty({__proto__:null,default:"data:image/svg+xml;base64,PD94bWwgdmVyc2lvbj0iMS4wIiBzdGFuZGFsb25lPSJubyI/PjwhRE9DVFlQRSBzdmcgUFVCTElDICItLy9XM0MvL0RURCBTVkcgMS4xLy9FTiIgImh0dHA6Ly93d3cudzMub3JnL0dyYXBoaWNzL1NWRy8xLjEvRFREL3N2ZzExLmR0ZCI+PHN2ZyB0PSIxNTc2MDQyNjczOTU4IiBjbGFzcz0iaWNvbiIgdmlld0JveD0iMCAwIDEwMjQgMTAyNCIgdmVyc2lvbj0iMS4xIiB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHAtaWQ9IjExMTAiIHhtbG5zOnhsaW5rPSJodHRwOi8vd3d3LnczLm9yZy8xOTk5L3hsaW5rIiB3aWR0aD0iODEiIGhlaWdodD0iODEiPjxkZWZzPjxzdHlsZSB0eXBlPSJ0ZXh0L2NzcyI+PC9zdHlsZT48L2RlZnM+PHBhdGggZD0iTTY5MiA3OTJIMzMyYy0xNTAgMC0yNzAtMTIwLTI3MC0yNzBzMTIwLTI3MCAyNzAtMjcwaDM2MGMxNTAgMCAyNzAgMTIwIDI3MCAyNzAgMCAxNDctMTIwIDI3MC0yNzAgMjcwek0zMzIgMzEyYy0xMTcgMC0yMTAgOTMtMjEwIDIxMHM5MyAyMTAgMjEwIDIxMGgzNjBjMTE3IDAgMjEwLTkzIDIxMC0yMTBzLTkzLTIxMC0yMTAtMjEwSDMzMnoiIHAtaWQ9IjExMTEiPjwvcGF0aD48cGF0aCBkPSJNMzQxIDUyMm0tMTUwIDBhMTUwIDE1MCAwIDEgMCAzMDAgMCAxNTAgMTUwIDAgMSAwLTMwMCAwWiIgcC1pZD0iMTExMiI+PC9wYXRoPjwvc3ZnPg=="},Symbol.toStringTag,{value:"Module"})),Xr=Object.freeze(Object.defineProperty({__proto__:null,default:"data:image/svg+xml;base64,PD94bWwgdmVyc2lvbj0iMS4wIiBzdGFuZGFsb25lPSJubyI/Pjw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k2djQxLjQ3Mkg0NC44MDJWODYuNDY0ek04OS41OTggMzguMDhoMzguMzk2djQxLjQ3Mkg4OS41OTh6bTAgNDguMzg0aDM4LjM5NnY0MS40NzJIODkuNTk4eiIvPjxwYXRoIGQ9Ik0uMDA2LjA2NGgxMjcuOTg4djMxLjEwNEguMDA2Vi4wNjR6bTAgMzguMDE2aDM4LjM5NnY0MS40NzJILjAwNlYzOC4wOHptMCA0OC4zODRoMzguMzk2djQxLjQ3MkguMDA2Vjg2LjQ2NHpNNDQuODAyIDM4LjA4aDM4LjM5NnY0MS40NzJINDQuODAyVjM4LjA4em0wIDQ4LjM4NGgzOC4zOTZ2NDEuNDcySDQ0LjgwMlY4Ni40NjR6TTg5LjU5OCAzOC4wOGgzOC4zOTZ2NDEuNDcySDg5LjU5OHptMCA0OC4zODRoMzguMzk2djQxLjQ3Mkg4OS41OTh6Ii8+PC9zdmc+"},Symbol.toStringTag,{value:"Module"})),rn=Object.freeze(Object.defineProperty({__proto__:null,default:"data:image/svg+xml;base64,PD94bWwgdmVyc2lvbj0iMS4wIiBzdGFuZGFsb25lPSJubyI/PjwhRE9DVFlQRSBzdmcgUFVCTElDICItLy9XM0MvL0RURCBTVkcgMS4xLy9FTiIgImh0dHA6Ly93d3cudzMub3JnL0dyYXBoaWNzL1NWRy8xLjEvRFREL3N2ZzExLmR0ZCI+PHN2ZyB0PSIxNTc1ODAyODU1MDk4IiBjbGFzcz0iaWNvbiIgdmlld0JveD0iMCAwIDEwMjQgMTAyNCIgdmVyc2lvbj0iMS4xIiB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHAtaWQ9IjI5ODQiIHhtbG5zOnhsaW5rPSJodHRwOi8vd3d3LnczLm9yZy8xOTk5L3hsaW5rIiB3aWR0aD0iMjAwIiBoZWlnaHQ9IjIwMCI+PGRlZnM+PHN0eWxlIHR5cGU9InRleHQvY3NzIj48L3N0eWxlPjwvZGVmcz48cGF0aCBkPSJNODk2IDE2MEgxMj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OTYgMCA0MS4yNTQgMCA0My44MTVjMCAyLjU2Mi44OTkgNS4wMiAyLjUgNi44MzFMMTQuNTY1IDY0LjMxYzIuMTc4IDIuNDY4IDUuMzY3IDMuNDAzIDguMzMgMi40NDQgMS4zNS0uNDM1IDIuNzA5LjU5MiAyLjcwOSAyLjE4djQ5LjQwN2MwIDUuMzEzIDMuODQgOS42NiA4LjUzMiA5LjY2aDU5LjcyNmM0LjY5MyAwIDguNTMyLTQuMzQ3IDguNTMyLTkuNjZWNjguOTM0YzAtMS41OSAxLjM2LTIuNjE2IDIuNzEtMi4xODEgMi45NjIuOTYgNi4xNS4wMjQgOC4zMjktMi40NDRMMTI1LjUgNTAuNjQ2YzEuNi0xLjgxMSAyLjQ5OS00LjI2OSAyLjQ5OS02LjgzIDAtMi41NjMtLjg5OS01LjAyLTIuNS02LjgzMnoiLz48L3N2Zz4="},Symbol.toStringTag,{value:"Module"})),on=Object.freeze(Object.defineProperty({__proto__:null,default:"data:image/svg+xml;base64,PD94bWwgdmVyc2lvbj0iMS4wIiBzdGFuZGFsb25lPSJubyI/PjwhRE9DVFlQRSBzdmcgUFVCTElDICItLy9XM0MvL0RURCBTVkcgMS4xLy9FTiIgImh0dHA6Ly93d3cudzMub3JnL0dyYXBoaWNzL1NWRy8xLjEvRFREL3N2ZzExLmR0ZCI+PHN2ZyB0PSIxNTc5Nzc0ODI1NjI0IiBjbGFzcz0iaWNvbiIgdmlld0JveD0iMCAwIDEwMjQgMTAyNCIgdmVyc2lvbj0iMS4xIiB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHAtaWQ9IjEyNDgiIHhtbG5zOnhsaW5rPSJodHRwOi8vd3d3LnczLm9yZy8xOTk5L3hsaW5rIiB3aWR0aD0iMjAwIiBoZWlnaHQ9IjIwMCI+PGRlZnM+PHN0eWxlIHR5cGU9InRleHQvY3NzIj48L3N0eWxlPjwvZGVmcz48cGF0aCBkPSJNNDk4LjU5NTcxMiA0ODIuMjkwM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kyLTkuMjhjMC0xMDYuODggNzYuMzUyLTE5Ny4xODQgMTc5Ljk2OC0yMTkuOTA0QzIzOS40ODggMjI2LjExMiAzNTcuNzYgMTI4IDQ5Ny44NTYgMTI4eiIgcC1pZD0iNzkyMyI+PC9wYXRoPjwvc3ZnPg=="},Symbol.toStringTag,{value:"Module"})),ln=Object.freeze(Object.defineProperty({__proto__:null,default:"data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMTMwIiBoZWlnaHQ9IjEzMCIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIj48cGF0aCBkPSJNNjMuNDQ0IDY0Ljk5NmMyMC42MzMgMCAzNy4zNTktMTQuMzA4IDM3LjM1OS0zMS45NTMgMC0xNy42NDktMTYuNzI2LTMxLjk1Mi0zNy4zNTktMzEuOTUyLTIwLjYzMSAwLTM3LjM2IDE0LjMwMy0zNy4zNTggMzEuOTUyIDAgMTcuNjQ1IDE2LjcyNyAzMS45NTMgMzcuMzU5IDMxLjk1M3pNODAuNTcgNzUuNjVINDkuNDM0Yy0yNi42NTIgMC00OC4yNiAxOC40NzctNDguMjYgNDEuMjd2Mi42NjRjMCA5LjMxNiAyMS42MDggOS4zMjUgNDguMjYgOS4zMjVIODAuNTdjMjYuNjQ5IDAgNDguMjU2LS4zNDQgNDguMjU2LTkuMzI1di0yLjY2M2MwLTIyLjc5NC0yMS42MDUtNDEuMjcxLTQ4LjI1Ni00MS4yNzF6IiBzdHJva2U9IiM5Nzk3OTciLz48L3N2Zz4="},Symbol.toStringTag,{value:"Module"})),Nn=Object.freeze(Object.defineProperty({__proto__:null,default:"data:image/svg+xml;base64,PD94bWwgdmVyc2lvbj0iMS4wIiBzdGFuZGFsb25lPSJubyI/PjwhRE9DVFlQRSBzdmcgUFVCTElDICItLy9XM0MvL0RURCBTVkcgMS4xLy9FTiIgImh0dHA6Ly93d3cudzMub3JnL0dyYXBoaWNzL1NWRy8xLjEvRFREL3N2ZzExLmR0ZCI+PHN2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tNDkuNi03LjctOTguNi0xOS0xNDYuNS0zMy43LTQ2LjMtMTkuNS04OS43LTQ1LjMtMTI5LTc2LjctNS44LTMuOC0xMi43LTUuNS0xOS41LTQuOWwxLjMtMC4xeiIgZmlsbD0iI0M2Q0NEQSIgcC1pZD0iMTk0MCI+PC9wYXRoPjxwYXRoIGQ9Ik03NTAuMSA0MjhMNDkwLjcgNjczLjJjLTExLjcgMTEuMS0yOS41IDEyLjktNDMuMSA0LjJsLTYuOC01LjgtMTQxLjItMTQ5LjRjLTkuMy05LjMtMTIuNy0yMi45LTktMzUuNSAzLjgtMTIuNiAxNC4xLTIyLjEgMjctMjQuOCAxMi45LTIuNyAyNi4xIDEuOSAzNC42IDExLjlMNDY5IDU5Ny41bDIzMy43LTIyMWMxNC42LTEyLjggMzYuOC0xMS42IDQ5LjkgMi43IDEzLjIgMTQuMiAxMS41IDM1LjMtMi41IDQ4LjgiIGZpbGw9IiNDNkNDREEiIHAtaWQ9IjE5NDEiPjwvcGF0aD48L3N2Zz4="},Symbol.toStringTag,{value:"Module"})),gn=Object.freeze(Object.defineProperty({__proto__:null,default:"data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMTI4IiBoZWlnaHQ9IjExMCIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIj48cGF0aCBkPSJNODYuNjM1IDMzLjMzNGMxLjQ2NyAwIDIuOTE3LjExMyA0LjM1OC4yODNDODcuMDc4IDE0LjM5MiA2Ny41OC4xMTEgNDUuMzIxLjExMSAyMC40NC4xMTEuMDU1IDE3Ljk4Ny4wNTUgNDAuNjg3YzAgMTMuMTA0IDYuNzgxIDIzLjg2MyAxOC4xMTUgMzIuMjA5bC00LjUyNyAxNC4zNTIgMTUuODItOC4zNjRjNS42NjYgMS4xODIgMTAuMjA3IDIuMzk1IDE1Ljg1OCAyLjM5NSAxLjQyIDAgMi44MjktLjA3MyA0LjIyNy0uMTg5LS44ODYtMy4xOS0xLjM5OC02LjUzLTE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(e){var t={};function i(r){if(t[r])return t[r].exports;var n=t[r]={i:r,l:!1,exports:{}};return e[r].call(n.exports,n,n.exports,i),n.l=!0,n.exports}return i.m=e,i.c=t,i.d=function(e,t,r){i.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:r})},i.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},i.t=function(e,t){if(1&t&&(e=i(e)),8&t)return e;if(4&t&&"object"==typeof e&&e&&e.__esModule)return e;var r=Object.create(null);if(i.r(r),Object.defineProperty(r,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var n in e)i.d(r,n,function(t){return e[t]}.bind(null,n));return r},i.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return i.d(t,"a",t),t},i.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},i.p="",i(i.s=30)}([function(e,t,i){var r;Object.defineProperty(t,"__esModule",{value:!0}),(r=t.DialogStatus||(t.DialogStatus={}))[r.STATUS_EARLY=1]="STATUS_EARLY",r[r.STATUS_CONFIRMED=2]="STATUS_CONFIRMED",function(e){e[e.STATUS_NULL=0]="STATUS_NULL",e[e.STATUS_INVITE_SENT=1]="STATUS_INVITE_SENT",e[e.STATUS_1XX_RECEIVED=2]="STATUS_1XX_RECEIVED",e[e.STATUS_INVITE_RECEIVED=3]="STATUS_INVITE_RECEIVED",e[e.STATUS_WAITING_FOR_ANSWER=4]="STATUS_WAITING_FOR_ANSWER",e[e.STATUS_ANSWERED=5]="STATUS_ANSWERED",e[e.STATUS_WAITING_FOR_PRACK=6]="STATUS_WAITING_FOR_PRACK",e[e.STATUS_WAITING_FOR_ACK=7]="STATUS_WAITING_FOR_ACK",e[e.STATUS_CANCELED=8]="STATUS_CANCELED",e[e.STATUS_TERMINATED=9]="STATUS_TERMINATED",e[e.STATUS_ANSWERED_WAITING_FOR_PRACK=10]="STATUS_ANSWERED_WAITING_FOR_PRACK",e[e.STATUS_EARLY_MEDIA=11]="STATUS_EARLY_MEDIA",e[e.STATUS_CONFIRMED=12]="STATUS_CONFIRMED"}(t.SessionStatus||(t.SessionStatus={})),function(e){e[e.STATUS_TRYING=1]="STATUS_TRYING",e[e.STATUS_PROCEEDING=2]="STATUS_PROCEEDING",e[e.STATUS_CALLING=3]="STATUS_CALLING",e[e.STATUS_ACCEPTED=4]="STATUS_ACCEPTED",e[e.STATUS_COMPLETED=5]="STATUS_COMPLETED",e[e.STATUS_TERMINATED=6]="STATUS_TERMINATED",e[e.STATUS_CONFIRMED=7]="STATUS_CONFIRMED"}(t.TransactionStatus||(t.TransactionStatus={})),function(e){e[e.AckClientTransaction=0]="AckClientTransaction",e[e.ClientContext=1]="ClientContext",e[e.ConfigurationError=2]="ConfigurationError",e[e.Dialog=3]="Dialog",e[e.DigestAuthentication=4]="DigestAuthentication",e[e.DTMF=5]="DTMF",e[e.IncomingMessage=6]="IncomingMessage",e[e.IncomingRequest=7]="IncomingRequest",e[e.IncomingResponse=8]="IncomingResponse",e[e.InvalidStateError=9]="InvalidStateError",e[e.InviteClientContext=10]="InviteClientContext",e[e.InviteClientTransaction=11]="InviteClientTransaction",e[e.InviteServerContext=12]="InviteServerContext",e[e.InviteServerTransaction=13]="InviteServerTransaction",e[e.Logger=14]="Logger",e[e.LoggerFactory=15]="LoggerFactory",e[e.MethodParameterError=16]="MethodParameterError",e[e.NameAddrHeader=17]="NameAddrHeader",e[e.NonInviteClientTransaction=18]="NonInviteClientTransaction",e[e.NonInviteServerTransaction=19]="NonInviteServerTransaction",e[e.NotSupportedError=20]="NotSupportedError",e[e.OutgoingRequest=21]="OutgoingRequest",e[e.Parameters=22]="Parameters",e[e.PublishContext=23]="PublishContext",e[e.ReferClientContext=24]="ReferClientContext",e[e.ReferServerContext=25]="ReferServerContext",e[e.RegisterContext=26]="RegisterContext",e[e.RenegotiationError=27]="RenegotiationError",e[e.RequestSender=28]="RequestSender",e[e.ServerContext=29]="ServerContext",e[e.Session=30]="Session",e[e.SessionDescriptionHandler=31]="SessionDescriptionHandler",e[e.SessionDescriptionHandlerError=32]="SessionDescriptionHandlerError",e[e.SessionDescriptionHandlerObserver=33]="SessionDescriptionHandlerObserver",e[e.Subscription=34]="Subscription",e[e.Transport=35]="Transport",e[e.TransportError=36]="TransportError",e[e.UA=37]="UA",e[e.URI=38]="URI"}(t.TypeStrings||(t.TypeStrings={})),function(e){e[e.STATUS_INIT=0]="STATUS_INIT",e[e.STATUS_STARTING=1]="STATUS_STARTING",e[e.STATUS_READY=2]="STATUS_READY",e[e.STATUS_USER_CLOSED=3]="STATUS_USER_CLOSED",e[e.STATUS_NOT_READY=4]="STATUS_NOT_READY"}(t.UAStatus||(t.UAStatus={}))},function(e,t,i){Object.defineProperty(t,"__esModule",{value:!0});var r,n,o=i(16);(r=t.C||(t.C={})).USER_AGENT=o.title+"/"+o.version,r.SIP="sip",r.SIPS="sips",(n=r.causes||(r.causes={})).CONNECTION_ERROR="Connection Error",n.INTERNAL_ERROR="Internal Error",n.REQUEST_TIMEOUT="Request Timeout",n.SIP_FAILURE_CODE="SIP Failure Code",n.ADDRESS_INCOMPLETE="Address Incomplete",n.AUTHENTICATION_ERROR="Authentication Error",n.BUSY="Busy",n.DIALOG_ERROR="Dialog Error",n.INCOMPATIBLE_SDP="Incompatible SDP",n.NOT_FOUND="Not Found",n.REDIRECTED="Redirected",n.REJECTED="Rejected",n.UNAVAILABLE="Unavailable",n.BAD_MEDIA_DESCRIPTION="Bad Media Description",n.CANCELED="Canceled",n.EXPIRES="Expires",n.NO_ACK="No ACK",n.NO_ANSWER="No Answer",n.NO_PRACK="No PRACK",n.RTP_TIMEOUT="RTP Timeout",n.USER_DENIED_MEDIA_ACCESS="User Denied Media Access",n.WEBRTC_ERROR="WebRTC Error",n.WEBRTC_NOT_SUPPORTED="WebRTC Not Supported",function(e){e.REQUIRED="required",e.SUPPORTED="supported",e.UNSUPPORTED="none"}(r.supported||(r.supported={})),r.SIP_ERROR_CAUSES={ADDRESS_INCOMPLETE:[484],AUTHENTICATION_ERROR:[401,407],BUSY:[486,600],INCOMPATIBLE_SDP:[488,606],NOT_FOUND:[404,604],REDIRECTED:[300,301,302,305,380],REJECTED:[403,603],UNAVAILABLE:[480,410,408,430]},r.ACK="ACK",r.BYE="BYE",r.CANCEL="CANCEL",r.INFO="INFO",r.INVITE="INVITE",r.MESSAGE="MESSAGE",r.NOTIFY="NOTIFY",r.OPTIONS="OPTIONS",r.REGISTER="REGISTER",r.UPDATE="UPDATE",r.SUBSCRIBE="SUBSCRIBE",r.PUBLISH="PUBLISH",r.REFER="REFER",r.PRACK="PRACK",r.REASON_PHRASE={100:"Trying",180:"Ringing",181:"Call Is Being Forwarded",182:"Queued",183:"Session Progress",199:"Early Dialog Terminated",200:"OK",202:"Accepted",204:"No Notification",300:"Multiple Choices",301:"Moved Permanently",302:"Moved Temporarily",305:"Use Proxy",380:"Alternative Service",400:"Bad Request",401:"Unauthorized",402:"Payment Required",403:"Forbidden",404:"Not Found",405:"Method Not Allowed",406:"Not Acceptable",407:"Proxy Authentication Required",408:"Request Timeout",410:"Gone",412:"Conditional Request Failed",413:"Request Entity Too Large",414:"Request-URI Too Long",415:"Unsupported Media Type",416:"Unsupported URI Scheme",417:"Unknown Resource-Priority",420:"Bad Extension",421:"Extension Required",422:"Session Interval Too Small",423:"Interval Too Brief",428:"Use Identity Header",429:"Provide Referrer Identity",430:"Flow Failed",433:"Anonymity Disallowed",436:"Bad Identity-Info",437:"Unsupported Certificate",438:"Invalid Identity Header",439:"First Hop Lacks Outbound Support",440:"Max-Breadth Exceeded",469:"Bad Info Package",470:"Consent Needed",478:"Unresolvable Destination",480:"Temporarily Unavailable",481:"Call/Transaction Does Not Exist",482:"Loop Detected",483:"Too Many Hops",484:"Address Incomplete",485:"Ambiguous",486:"Busy Here",487:"Request Terminated",488:"Not Acceptable Here",489:"Bad Event",491:"Request Pending",493:"Undecipherable",494:"Security Agreement Required",500:"Internal Server Error",501:"Not Implemented",502:"Bad Gateway",503:"Service Unavailable",504:"Server Time-out",505:"Version Not Supported",513:"Message Too Large",580:"Precondition Failure",600:"Busy Everywhere",603:"Decline",604:"Does Not Exist Anywhere",606:"Not Acceptable"},r.OPTION_TAGS={"100rel":!0,199:!0,answermode:!0,"early-session":!0,eventlist:!0,explicitsub:!0,"from-change":!0,"geolocation-http":!0,"geolocation-sip":!0,gin:!0,gruu:!0,histinfo:!0,ice:!0,join:!0,"multiple-refer":!0,norefersub:!0,nosub:!0,outbound:!0,path:!0,policy:!0,precondition:!0,pref:!0,privacy:!0,"recipient-list-invite":!0,"recipient-list-message":!0,"recipient-list-subscribe":!0,replaces:!0,"resource-priority":!0,"sdp-anat":!0,"sec-agree":!0,tdialog:!0,timer:!0,uui:!0},function(e){e.INFO="info",e.RTP="rtp"}(r.dtmfType||(r.dtmfType={}))},function(e,t,i){Object.defineProperty(t,"__esModule",{value:!0});var r,n=i(1),o=i(0),a=i(4);(r=t.Utils||(t.Utils={})).defer=function(){var e={};return e.promise=new Promise(function(t,i){e.resolve=t,e.reject=i}),e},r.reducePromises=function(e,t){return e.reduce(function(e,t){return e.then(t)},Promise.resolve(t))},r.str_utf8_length=function(e){return encodeURIComponent(e).replace(/%[A-F\d]{2}/g,"U").length},r.generateFakeSDP=function(e){if(e){var t=e.indexOf("o="),i=e.indexOf("\r\n",t);return"v=0\r\n"+e.slice(t,i)+"\r\ns=-\r\nt=0 0\r\nc=IN IP4 0.0.0.0"}},r.isDecimal=function(e){var t=parseInt(e,10);return!isNaN(t)&&parseFloat(e)===t},r.createRandomToken=function(e,t){void 0===t&&(t=32);for(var i="",r=0;r<e;r++)i+=Math.floor(Math.random()*t).toString(t);return i},r.newTag=function(){return r.createRandomToken(10)},r.newUUID=function(){return"xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx".replace(/[xy]/g,function(e){var t=Math.floor(16*Math.random());return("x"===e?t:t%4+8).toString(16)})},r.normalizeTarget=function(e,t){if(e){if(e.type===o.TypeStrings.URI)return e;if("string"==typeof e){var i=e.split("@"),s=void 0,M=void 0;switch(i.length){case 1:if(!t)return;s=e,M=t;break;case 2:s=i[0],M=i[1];break;default:s=i.slice(0,i.length-1).join("@"),M=i[i.length-1]}return s=s.replace(/^(sips?|tel):/i,""),/^[\-\.\(\)]*\+?[0-9\-\.\(\)]+$/.test(s)&&(s=s.replace(/[\-\.\(\)]/g,"")),e=n.C.SIP+":"+r.escapeUser(s)+"@"+M,a.Grammar.URIParse(e)}}},r.escapeUser=function(e){return encodeURIComponent(decodeURIComponent(e)).replace(/%3A/gi,":").replace(/%2B/gi,"+").replace(/%3F/gi,"?").replace(/%2F/gi,"/")},r.headerize=function(e){for(var t={"Call-Id":"Call-ID",Cseq:"CSeq","Min-Se":"Min-SE",Rack:"RAck",Rseq:"RSeq","Www-Authenticate":"WWW-Authenticate"},i=e.toLowerCase().replace(/_/g,"-").split("-"),r=i.length,n="",o=0;o<r;o++)0!==o&&(n+="-"),n+=i[o].charAt(0).toUpperCase()+i[o].substring(1);return t[n]&&(n=t[n]),n},r.sipErrorCause=function(e){for(var t in n.C.SIP_ERROR_CAUSES)if(-1!==n.C.SIP_ERROR_CAUSES[t].indexOf(e))return n.C.causes[t];return n.C.causes.SIP_FAILURE_CODE},r.getReasonPhrase=function(e,t){return t||n.C.REASON_PHRASE[e]||""},r.getReasonHeaderValue=function(e,t){return"SIP;cause="+e+';text="'+(t=r.getReasonPhrase(e,t))+'"'},r.getCancelReason=function(e,t){if(e&&e<200||e>699)throw new TypeError("Invalid statusCode: "+e);if(e)return r.getReasonHeaderValue(e,t)},r.buildStatusLine=function(e,t){if(!e||e<100||e>699)throw new TypeError("Invalid statusCode: "+e);if(t&&"string"!=typeof t&&!(t instanceof String))throw new TypeError("Invalid reason: "+t);return"SIP/2.0 "+e+" "+(t=r.getReasonPhrase(e,t))+"\r\n"}},function(e,t,i){var r,n="object"==typeof Reflect?Reflect:null,o=n&&"function"==typeof n.apply?n.apply:function(e,t,i){return Function.prototype.apply.call(e,t,i)};r=n&&"function"==typeof n.ownKeys?n.ownKeys:Object.getOwnPropertySymbols?function(e){return Object.getOwnPropertyNames(e).concat(Object.getOwnPropertySymbols(e))}:function(e){return Object.getOwnPropertyNames(e)};var a=Number.isNaN||function(e){return e!=e};function s(){s.init.call(this)}e.exports=s,s.EventEmitter=s,s.prototype._events=void 0,s.prototype._eventsCount=0,s.prototype._maxListeners=void 0;var M=10;function u(e){return void 0===e._maxListeners?s.defaultMaxListeners:e._maxListeners}function c(e,t,i,r){var n,o,a;if("function"!=typeof i)throw new TypeError('The "listener" argument must be of type Function. Received type '+typeof i);if(void 0===(o=e._events)?(o=e._events=Object.create(null),e._eventsCount=0):(void 0!==o.newListener&&(e.emit("newListener",t,i.listener?i.listener:i),o=e._events),a=o[t]),void 0===a)a=o[t]=i,++e._eventsCount;else if("function"==typeof a?a=o[t]=r?[i,a]:[a,i]:r?a.unshift(i):a.push(i),(n=u(e))>0&&a.length>n&&!a.warned){a.warned=!0;var s=new Error("Possible EventEmitter memory leak detected. "+a.length+" "+String(t)+" listeners added. Use emitter.setMaxListeners() to increase limit");s.name="MaxListenersExceededWarning",s.emitter=e,s.type=t,s.count=a.length,console&&console.warn}return e}function l(e,t,i){var r={fired:!1,wrapFn:void 0,target:e,type:t,listener:i},n=function(){for(var e=[],t=0;t<arguments.length;t++)e.push(arguments[t]);this.fired||(this.target.removeListener(this.type,this.wrapFn),this.fired=!0,o(this.listener,this.target,e))}.bind(r);return n.listener=i,r.wrapFn=n,n}function N(e,t,i){var r=e._events;if(void 0===r)return[];var n=r[t];return void 0===n?[]:"function"==typeof n?i?[n.listener||n]:[n]:i?function(e){for(var t=new Array(e.length),i=0;i<t.length;++i)t[i]=e[i].listener||e[i];return t}(n):d(n,n.length)}function g(e){var t=this._events;if(void 0!==t){var i=t[e];if("function"==typeof i)return 1;if(void 0!==i)return i.length}return 0}function d(e,t){for(var i=new Array(t),r=0;r<t;++r)i[r]=e[r];return i}Object.defineProperty(s,"defaultMaxListeners",{enumerable:!0,get:function(){return M},set:function(e){if("number"!=typeof e||e<0||a(e))throw new RangeError('The value of "defaultMaxListeners" is out of range. It must be a non-negative number. Received '+e+".");M=e}}),s.init=function(){void 0!==this._events&&this._events!==Object.getPrototypeOf(this)._events||(this._events=Object.create(null),this._eventsCount=0),this._maxListeners=this._maxListeners||void 0},s.prototype.setMaxListeners=function(e){if("number"!=typeof e||e<0||a(e))throw new RangeError('The value of "n" is out of range. It must be a non-negative number. Received '+e+".");return this._maxListeners=e,this},s.prototype.getMaxListeners=function(){return u(this)},s.prototype.emit=function(e){for(var t=[],i=1;i<arguments.length;i++)t.push(arguments[i]);var r="error"===e,n=this._events;if(void 0!==n)r=r&&void 0===n.error;else if(!r)return!1;if(r){var a;if(t.length>0&&(a=t[0]),a instanceof Error)throw a;var s=new Error("Unhandled error."+(a?" ("+a.message+")":""));throw s.context=a,s}var M=n[e];if(void 0===M)return!1;if("function"==typeof M)o(M,this,t);else{var u=M.length,c=d(M,u);for(i=0;i<u;++i)o(c[i],this,t)}return!0},s.prototype.addListener=function(e,t){return c(this,e,t,!1)},s.prototype.on=s.prototype.addListener,s.prototype.prependListener=function(e,t){return c(this,e,t,!0)},s.prototype.once=function(e,t){if("function"!=typeof t)throw new TypeError('The "listener" argument must be of type Function. Received type '+typeof t);return this.on(e,l(this,e,t)),this},s.prototype.prependOnceListener=function(e,t){if("function"!=typeof t)throw new TypeError('The "listener" argument must be of type Function. Received type '+typeof t);return this.prependListener(e,l(this,e,t)),this},s.prototype.removeListener=function(e,t){var i,r,n,o,a;if("function"!=typeof t)throw new TypeError('The "listener" argument must be of type Function. Received type '+typeof t);if(void 0===(r=this._events))return this;if(void 0===(i=r[e]))return this;if(i===t||i.listener===t)0==--this._eventsCount?this._events=Object.create(null):(delete r[e],r.removeListener&&this.emit("removeListener",e,i.listener||t));else if("function"!=typeof i){for(n=-1,o=i.length-1;o>=0;o--)if(i[o]===t||i[o].listener===t){a=i[o].listener,n=o;break}if(n<0)return this;0===n?i.shift():function(e,t){for(;t+1<e.length;t++)e[t]=e[t+1];e.pop()}(i,n),1===i.length&&(r[e]=i[0]),void 0!==r.removeListener&&this.emit("removeListener",e,a||t)}return this},s.prototype.off=s.prototype.removeListener,s.prototype.removeAllListeners=function(e){var t,i,r;if(void 0===(i=this._events))return this;if(void 0===i.removeListener)return 0===arguments.length?(this._events=Object.create(null),this._eventsCount=0):void 0!==i[e]&&(0==--this._eventsCount?this._events=Object.create(null):delete i[e]),this;if(0===arguments.length){var n,o=Object.keys(i);for(r=0;r<o.length;++r)"removeListener"!==(n=o[r])&&this.removeAllListeners(n);return this.removeAllListeners("removeListener"),this._events=Object.create(null),this._eventsCount=0,this}if("function"==typeof(t=i[e]))this.removeListener(e,t);else if(void 0!==t)for(r=t.length-1;r>=0;r--)this.removeListener(e,t[r]);return this},s.prototype.listeners=function(e){return N(this,e,!0)},s.prototype.rawListeners=function(e){return N(this,e,!1)},s.listenerCount=function(e,t){return"function"==typeof e.listenerCount?e.listenerCount(t):g.call(e,t)},s.prototype.listenerCount=g,s.prototype.eventNames=function(){return this._eventsCount>0?r(this._events):[]}},function(e,t,i){Object.defineProperty(t,"__esModule",{value:!0});var r,n=i(31);(r=t.Grammar||(t.Grammar={})).parse=function(e,t){var i={startRule:t};try{n.parse(e,i)}catch(r){i.data=-1}return i.data},r.nameAddrHeaderParse=function(e){var t=r.parse(e,"Name_Addr_Header");return-1!==t?t:void 0},r.URIParse=function(e){var t=r.parse(e,"SIP_URI");return-1!==t?t:void 0}},function(e,t,i){var r,n=this&&this.__extends||(r=function(e,t){return(r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var i in t)t.hasOwnProperty(i)&&(e[i]=t[i])})(e,t)},function(e,t){function i(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(i.prototype=t.prototype,new i)});Object.defineProperty(t,"__esModule",{value:!0});var o=i(0),a=function(e){function t(t,i,r){var n=e.call(this,r)||this;return n.code=t,n.name=i,n.message=r,n}return n(t,e),t}(Error);!function(e){var t=function(e){function t(t,i){var r=e.call(this,1,"CONFIGURATION_ERROR",i?"Invalid value "+JSON.stringify(i)+" for parameter '"+t+"'":"Missing parameter: "+t)||this;return r.type=o.TypeStrings.ConfigurationError,r.parameter=t,r.value=i,r}return n(t,e),t}(a);e.ConfigurationError=t;var i=function(e){function t(t){var i=e.call(this,2,"INVALID_STATE_ERROR","Invalid status: "+t)||this;return i.type=o.TypeStrings.InvalidStateError,i.status=t,i}return n(t,e),t}(a);e.InvalidStateError=i;var r=function(e){function t(t){var i=e.call(this,3,"NOT_SUPPORTED_ERROR",t)||this;return i.type=o.TypeStrings.NotSupportedError,i}return n(t,e),t}(a);e.NotSupportedError=r;var s=function(e){function t(t){var i=e.call(this,5,"RENEGOTIATION_ERROR",t)||this;return i.type=o.TypeStrings.RenegotiationError,i}return n(t,e),t}(a);e.RenegotiationError=s;var M=function(e){function t(t,i,r){var n=e.call(this,6,"METHOD_PARAMETER_ERROR",r?"Invalid value "+JSON.stringify(r)+" for parameter '"+i+"'":"Missing parameter: "+i)||this;return n.type=o.TypeStrings.MethodParameterError,n.method=t,n.parameter=i,n.value=r,n}return n(t,e),t}(a);e.MethodParameterError=M;var u=function(e){function t(t){var i=e.call(this,7,"TRANSPORT_ERROR",t)||this;return i.type=o.TypeStrings.TransportError,i}return n(t,e),t}(a);e.TransportError=u;var c=function(e){function t(t,i,r){var n=e.call(this,8,"SESSION_DESCRIPTION_HANDLER_ERROR",r||"Error with Session Description Handler")||this;return n.type=o.TypeStrings.SessionDescriptionHandlerError,n.method=t,n.error=i,n}return n(t,e),t}(a);e.SessionDescriptionHandlerError=c}(t.Exceptions||(t.Exceptions={}))},function(e,t,i){var r,n=this&&this.__extends||(r=function(e,t){return(r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var i in t)t.hasOwnProperty(i)&&(e[i]=t[i])})(e,t)},function(e,t){function i(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(i.prototype=t.prototype,new i)});Object.defineProperty(t,"__esModule",{value:!0});var o=i(1),a=i(0),s=i(4),M=i(2),u=function(e){var t=[];e.method===o.C.REGISTER?t.push("path","gruu"):e.method===o.C.INVITE&&(e.ua.contact.pubGruu||e.ua.contact.tempGruu)&&t.push("gruu"),e.ua.configuration.rel100===o.C.supported.SUPPORTED&&t.push("100rel"),e.ua.configuration.replaces===o.C.supported.SUPPORTED&&t.push("replaces"),t.push("outbound"),t=t.concat(e.ua.configuration.extraSupported||[]);var i=e.ua.configuration.hackAllowUnregisteredOptionTags||!1,r={};return"Supported: "+(t=t.filter(function(e){var t=o.C.OPTION_TAGS[e],n=!r[e];return r[e]=!0,(t||i)&&n})).join(", ")+"\r\n"},c=function(){function e(e,t,i,r,n,o){void 0===r&&(r={}),this.type=a.TypeStrings.OutgoingRequest,this.logger=i.getLogger("sip.sipmessage"),this.ua=i,this.headers={},this.method=e,this.ruri=t,this.body=o,this.extraHeaders=(n||[]).slice(),this.statusCode=r.statusCode,this.reasonPhrase=r.reasonPhrase,r.routeSet?this.setHeader("route",r.routeSet):i.configuration.usePreloadedRoute&&i.transport&&this.setHeader("route",i.transport.server.sipUri),this.setHeader("via",""),this.setHeader("max-forwards","70");var u=r.toUri||t,c=r.toDisplayName||0===r.toDisplayName?'"'+r.toDisplayName+'" ':"";c+="<"+(u.type===a.TypeStrings.URI?u.toRaw():u)+">",c+=r.toTag?";tag="+r.toTag:"",this.to=s.Grammar.nameAddrHeaderParse(c),this.setHeader("to",c);var l,N=r.fromUri||i.configuration.uri||"";l=r.fromDisplayName||0===r.fromDisplayName?'"'+r.fromDisplayName+'" ':i.configuration.displayName?'"'+i.configuration.displayName+'" ':"",l+="<"+(N.type===a.TypeStrings.URI?N.toRaw():N)+">;tag=",l+=r.fromTag||M.Utils.newTag(),this.from=s.Grammar.nameAddrHeaderParse(l),this.setHeader("from",l),this.callId=r.callId||i.configuration.sipjsId+M.Utils.createRandomToken(15),this.setHeader("call-id",this.callId),this.cseq=r.cseq||Math.floor(1e4*Math.random()),this.setHeader("cseq",this.cseq+" "+e)}return e.prototype.setHeader=function(e,t){this.headers[M.Utils.headerize(e)]=t instanceof Array?t:[t]},e.prototype.getHeader=function(e){var t=this.headers[M.Utils.headerize(e)];if(t){if(t[0])return t[0]}else for(var i=new RegExp("^\\s*"+e+"\\s*:","i"),r=0,n=this.extraHeaders;r<n.length;r++){var o=n[r];if(i.test(o))return o.substring(o.indexOf(":")+1).trim()}},e.prototype.cancel=function(e,t){},e.prototype.getHeaders=function(e){var t=[],i=this.headers[M.Utils.headerize(e)];if(i)for(var r=0,n=i;r<n.length;r++){var o=n[r];t.push(o)}else for(var a=new RegExp("^\\s*"+e+"\\s*:","i"),s=0,u=this.extraHeaders;s<u.length;s++){var c=u[s];a.test(c)&&t.push(c.substring(c.indexOf(":")+1).trim())}return t},e.prototype.hasHeader=function(e){if(this.headers[M.Utils.headerize(e)])return!0;for(var t=new RegExp("^\\s*"+e+"\\s*:","i"),i=0,r=this.extraHeaders;i<r.length;i++){var n=r[i];if(t.test(n))return!0}return!1},e.prototype.toString=function(){var e="";for(var t in e+=this.method+" "+(this.ruri.type===a.TypeStrings.URI?this.ruri.toRaw():this.ruri)+" SIP/2.0\r\n",this.headers)if(this.headers[t])for(var i=0,r=this.headers[t];i<r.length;i++)e+=t+": "+r[i]+"\r\n";for(var n=0,o=this.extraHeaders;n<o.length;n++)e+=(t=o[n]).trim()+"\r\n";return e+=u(this),e+="User-Agent: "+this.ua.configuration.userAgentString+"\r\n",this.body?"string"==typeof this.body?(e+="Content-Length: "+M.Utils.str_utf8_length(this.body)+"\r\n\r\n",e+=this.body):this.body.body&&this.body.contentType?(e+="Content-Type: "+this.body.contentType+"\r\n",e+="Content-Length: "+M.Utils.str_utf8_length(this.body.body)+"\r\n\r\n",e+=this.body.body):e+="Content-Length: 0\r\n\r\n":e+="Content-Length: 0\r\n\r\n",e},e}();t.OutgoingRequest=c;var l=function(){function e(){this.type=a.TypeStrings.IncomingMessage,this.headers={}}return e.prototype.addHeader=function(e,t){var i={raw:t};e=M.Utils.headerize(e),this.headers[e]?this.headers[e].push(i):this.headers[e]=[i]},e.prototype.getHeader=function(e){var t=this.headers[M.Utils.headerize(e)];if(t)return t[0]?t[0].raw:void 0},e.prototype.getHeaders=function(e){var t=this.headers[M.Utils.headerize(e)],i=[];if(!t)return[];for(var r=0,n=t;r<n.length;r++){var o=n[r];i.push(o.raw)}return i},e.prototype.hasHeader=function(e){return!!this.headers[M.Utils.headerize(e)]},e.prototype.parseHeader=function(e,t){if(void 0===t&&(t=0),e=M.Utils.headerize(e),this.headers[e]&&!(t>=this.headers[e].length)){var i=this.headers[e][t],r=i.raw;if(i.parsed)return i.parsed;var n=s.Grammar.parse(r,e.replace(/-/g,"_"));return-1===n?void this.headers[e].splice(t,1):(i.parsed=n,n)}},e.prototype.s=function(e,t){return void 0===t&&(t=0),this.parseHeader(e,t)},e.prototype.setHeader=function(e,t){this.headers[M.Utils.headerize(e)]=[{raw:t}]},e.prototype.toString=function(){return this.data},e}(),N=function(e){function t(t){var i=e.call(this)||this;return i.type=a.TypeStrings.IncomingRequest,i.logger=t.getLogger("sip.sipmessage"),i.ua=t,i}return n(t,e),t.prototype.reply=function(e,t,i,r,n,a){var s=M.Utils.buildStatusLine(e,t);if(i=(i||[]).slice(),this.method===o.C.INVITE&&e>100&&e<=200)for(var c=0,l=this.getHeaders("record-route");c<l.length;c++)s+="Record-Route: "+l[c]+"\r\n";for(var N=0,g=this.getHeaders("via");N<g.length;N++)s+="Via: "+g[N]+"\r\n";var d=this.getHeader("to")||"";!this.toTag&&e>100?d+=";tag="+M.Utils.newTag():this.toTag&&!this.s("to").hasParam("tag")&&(d+=";tag="+this.toTag),s+="To: "+d+"\r\n",s+="From: "+this.getHeader("From")+"\r\n",s+="Call-ID: "+this.callId+"\r\n",s+="CSeq: "+this.cseq+" "+this.method+"\r\n";for(var T=0,j=i;T<j.length;T++)s+=j[T].trim()+"\r\n";return s+=u(this),s+="User-Agent: "+this.ua.configuration.userAgentString+"\r\n",r?"string"==typeof r?(s+="Content-Type: application/sdp\r\n",s+="Content-Length: "+M.Utils.str_utf8_length(r)+"\r\n\r\n",s+=r):r.body&&r.contentType?(s+="Content-Type: "+r.contentType+"\r\n",s+="Content-Length: "+M.Utils.str_utf8_length(r.body)+"\r\n\r\n",s+=r.body):s+="Content-Length: 0\r\n\r\n":s+="Content-Length: 0\r\n\r\n",this.serverTransaction&&this.serverTransaction.receiveResponse(e,s).then(n,a),s},t.prototype.reply_sl=function(e,t){for(var i=M.Utils.buildStatusLine(e,t),r=0,n=this.getHeaders("via");r<n.length;r++)i+="Via: "+n[r]+"\r\n";var o=this.getHeader("To")||"";!this.toTag&&e>100?o+=";tag="+M.Utils.newTag():this.toTag&&!this.s("to").hasParam("tag")&&(o+=";tag="+this.toTag),i+="To: "+o+"\r\n",i+="From: "+this.getHeader("From")+"\r\n",i+="Call-ID: "+this.callId+"\r\n",i+="CSeq: "+this.cseq+" "+this.method+"\r\n",i+="User-Agent: "+this.ua.configuration.userAgentString+"\r\n",i+="Content-Length: 0\r\n\r\n",this.transport&&this.transport.send(i)},t}(l);t.IncomingRequest=N;var g=function(e){function t(t){var i=e.call(this)||this;return i.type=a.TypeStrings.IncomingResponse,i.logger=t.getLogger("sip.sipmessage"),i.headers={},i}return n(t,e),t}(l);t.IncomingResponse=g},function(e,t,i){var r,n=this&&this.__extends||(r=function(e,t){return(r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var i in t)t.hasOwnProperty(i)&&(e[i]=t[i])})(e,t)},function(e,t){function i(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(i.prototype=t.prototype,new i)});Object.defineProperty(t,"__esModule",{value:!0});var o=i(3),a=i(1),s=i(0),M=i(8),u=i(6),c=i(2),l=function(e){function t(i,r,n,o){var a=e.call(this)||this;return a.data={},t.initializer(a,i,r,n,o),a}return n(t,e),t.initializer=function(e,t,i,r,n){if(e.type=s.TypeStrings.ClientContext,void 0===r)throw new TypeError("Not enough arguments");e.ua=t,e.logger=t.getLogger("sip.clientcontext"),e.method=i;var o=t.normalizeTarget(r);if(!o)throw new TypeError("Invalid target: "+r);(n=Object.create(n||Object.prototype)).extraHeaders=(n.extraHeaders||[]).slice(),e.request=new u.OutgoingRequest(e.method,o,e.ua,n.params,n.extraHeaders),n.body&&(e.body={},e.body.body=n.body,n.contentType&&(e.body.contentType=n.contentType),e.request.body=e.body),e.request.from&&(e.localIdentity=e.request.from),e.request.to&&(e.remoteIdentity=e.request.to)},t.prototype.send=function(){return new M.RequestSender(this,this.ua).send(),this},t.prototype.receiveResponse=function(e){var t=e.statusCode||0,i=c.Utils.getReasonPhrase(t);switch(!0){case/^1[0-9]{2}$/.test(t.toString()):this.emit("progress",e,i);break;case/^2[0-9]{2}$/.test(t.toString()):this.ua.applicants[this.toString()]&&delete this.ua.applicants[this.toString()],this.emit("accepted",e,i);break;default:this.ua.applicants[this.toString()]&&delete this.ua.applicants[this.toString()],this.emit("rejected",e,i),this.emit("failed",e,i)}},t.prototype.onRequestTimeout=function(){this.emit("failed",void 0,a.C.causes.REQUEST_TIMEOUT)},t.prototype.onTransportError=function(){this.emit("failed",void 0,a.C.causes.CONNECTION_ERROR)},t}(o.EventEmitter);t.ClientContext=l},function(e,t,i){Object.defineProperty(t,"__esModule",{value:!0});var r=i(1),n=i(0),o=i(9),a=function(){function e(e,t){this.type=n.TypeStrings.RequestSender,this.logger=t.getLogger("sip.requestsender"),this.ua=t,this.applicant=e,this.method=e.request.method,this.request=e.request,this.credentials=void 0,this.challenged=!1,this.staled=!1,t.status===n.UAStatus.STATUS_USER_CLOSED&&this.method!==r.C.BYE&&this.method!==r.C.ACK&&this.onTransportError()}return e.prototype.send=function(){if(!this.ua.transport)throw new Error("No transport to make transaction");switch(this.method){case"INVITE":this.clientTransaction=new o.InviteClientTransaction(this,this.request,this.ua.transport);break;case"ACK":this.clientTransaction=new o.AckClientTransaction(this,this.request,this.ua.transport);break;default:this.clientTransaction=new o.NonInviteClientTransaction(this,this.request,this.ua.transport)}return this.clientTransaction.send(),this.clientTransaction},e.prototype.onRequestTimeout=function(){this.applicant.onRequestTimeout()},e.prototype.onTransportError=function(){this.applicant.onTransportError()},e.prototype.receiveResponse=function(e){var t=e&&e.statusCode?e.statusCode:0;if(401===t||407===t){var i=void 0,n=void 0;if(401===t?(i=e.parseHeader("www-authenticate"),n="authorization"):(i=e.parseHeader("proxy-authenticate"),n="proxy-authorization"),!i)return this.logger.warn(t+" with wrong or missing challenge, cannot authenticate"),void this.applicant.receiveResponse(e);if(!this.challenged||!this.staled&&!0===i.stale){if(!this.credentials&&this.ua.configuration.authenticationFactory&&(this.credentials=this.ua.configuration.authenticationFactory(this.ua)),!this.credentials.authenticate(this.request,i))return void this.applicant.receiveResponse(e);this.challenged=!0,i.stale&&(this.staled=!0);var o=void 0;e.method===r.C.REGISTER?o=this.applicant.cseq+=1:this.request.dialog?o=this.request.dialog.localSeqnum+=1:(o=(this.request.cseq||0)+1,this.request.cseq=o),this.request.setHeader("cseq",o+" "+this.method),this.request.setHeader(n,this.credentials.toString()),this.send()}else this.applicant.receiveResponse(e)}else this.applicant.receiveResponse(e)},e}();t.RequestSender=a},function(e,t,i){var r,n=this&&this.__extends||(r=function(e,t){return(r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var i in t)t.hasOwnProperty(i)&&(e[i]=t[i])})(e,t)},function(e,t){function i(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(i.prototype=t.prototype,new i)});Object.defineProperty(t,"__esModule",{value:!0});var o=i(3),a=i(1),s=i(0),M=i(6),u=i(11),c=2,l=4,N=5,g=6,d="nict",T="nist",j="ict",y="ist",D=function(e,t,i){var r="SIP/2.0/"+(e.configuration.hackViaTcp?"TCP":t.server.scheme);return r+=" "+e.configuration.viaHost+";branch="+i,e.configuration.forceRport&&(r+=";rport"),r},I=function(e){function t(t,i,r){var n=e.call(this)||this;n.kind=d,n.type=s.TypeStrings.NonInviteClientTransaction,n.transport=r,n.id="z9hG4bK"+Math.floor(1e7*Math.random()),n.requestSender=t,n.request=i,n.logger=t.ua.getLogger("sip.transaction.nict",n.id);var o=D(t.ua,r,n.id);return n.request.setHeader("via",o),n.requestSender.ua.newTransaction(n),n}return n(t,e),t.prototype.stateChanged=function(e){this.state=e,this.emit("stateChanged")},t.prototype.send=function(){var e=this;this.stateChanged(s.TransactionStatus.STATUS_TRYING),this.F=setTimeout(function(){return e.timer_F()},u.Timers.TIMER_F),this.transport.send(this.request).catch(function(){return e.onTransportError()})},t.prototype.receiveResponse=function(e){var t=this,i=e.statusCode||0;if(i<200)switch(this.state){case s.TransactionStatus.STATUS_TRYING:case s.TransactionStatus.STATUS_PROCEEDING:this.stateChanged(s.TransactionStatus.STATUS_PROCEEDING),this.requestSender.receiveResponse(e)}else switch(this.state){case s.TransactionStatus.STATUS_TRYING:case s.TransactionStatus.STATUS_PROCEEDING:this.stateChanged(s.TransactionStatus.STATUS_COMPLETED),this.F&&clearTimeout(this.F),408===i?this.requestSender.onRequestTimeout():this.requestSender.receiveResponse(e),this.K=setTimeout(function(){return t.timer_K()},u.Timers.TIMER_K);case s.TransactionStatus.STATUS_COMPLETED:}},t.prototype.onTransportError=function(){this.logger.log("transport error occurred, deleting non-INVITE client transaction "+this.id),this.F&&(clearTimeout(this.F),this.F=void 0),this.K&&(clearTimeout(this.K),this.K=void 0),this.stateChanged(s.TransactionStatus.STATUS_TERMINATED),this.requestSender.ua.destroyTransaction(this),this.requestSender.onTransportError()},t.prototype.timer_F=function(){this.logger.debug("Timer F expired for non-INVITE client transaction "+this.id),this.stateChanged(s.TransactionStatus.STATUS_TERMINATED),this.requestSender.ua.destroyTransaction(this),this.requestSender.onRequestTimeout()},t.prototype.timer_K=function(){this.stateChanged(s.TransactionStatus.STATUS_TERMINATED),this.requestSender.ua.destroyTransaction(this)},t}(o.EventEmitter);t.NonInviteClientTransaction=I;var p=function(e){function t(t,i,r){var n=e.call(this)||this;n.kind=j,n.type=s.TypeStrings.InviteClientTransaction,n.transport=r,n.id="z9hG4bK"+Math.floor(1e7*Math.random()),n.requestSender=t,n.request=i,n.logger=t.ua.getLogger("sip.transaction.ict",n.id);var o=D(t.ua,r,n.id);return n.request.setHeader("via",o),n.requestSender.ua.newTransaction(n),n.request.cancel=function(e,t){for(var i="",r=0,o=t=(t||[]).slice();r<o.length;r++)i+=o[r].trim()+"\r\n";n.cancelRequest(n,e,i)},n}return n(t,e),t.prototype.stateChanged=function(e){this.state=e,this.emit("stateChanged")},t.prototype.send=function(){var e=this;this.stateChanged(s.TransactionStatus.STATUS_CALLING),this.B=setTimeout(function(){return e.timer_B()},u.Timers.TIMER_B),this.transport.send(this.request).catch(function(){return e.onTransportError()})},t.prototype.receiveResponse=function(e){var t=this,i=e.statusCode||0;if(e.transaction=this,this.response&&this.response.statusCode===e.statusCode&&this.response.cseq===e.cseq)return this.logger.debug("ICT Received a retransmission for cseq: "+e.cseq),void(this.ackSender&&this.ackSender.send());if(this.response=e,i>=100&&i<=199)switch(this.state){case s.TransactionStatus.STATUS_CALLING:this.stateChanged(s.TransactionStatus.STATUS_PROCEEDING),this.requestSender.receiveResponse(e),this.cancel&&this.transport.send(this.cancel);break;case s.TransactionStatus.STATUS_PROCEEDING:this.requestSender.receiveResponse(e)}else if(i>=200&&i<=299)switch(this.state){case s.TransactionStatus.STATUS_CALLING:case s.TransactionStatus.STATUS_PROCEEDING:this.stateChanged(s.TransactionStatus.STATUS_ACCEPTED),this.M=setTimeout(function(){return t.timer_M()},u.Timers.TIMER_M),this.requestSender.receiveResponse(e);break;case l:this.requestSender.receiveResponse(e)}else if(i>=300&&i<=699)switch(this.state){case s.TransactionStatus.STATUS_CALLING:case s.TransactionStatus.STATUS_PROCEEDING:this.stateChanged(s.TransactionStatus.STATUS_COMPLETED),this.sendACK(),this.requestSender.receiveResponse(e);break;case s.TransactionStatus.STATUS_COMPLETED:this.sendACK()}},t.prototype.sendACK=function(e){var t,i=this;if(void 0===e&&(e={}),t=this.response&&this.response.getHeader("contact")?this.response.parseHeader("contact").uri:this.request.ruri,this.response){var r=new M.OutgoingRequest("ACK",t.toString(),this.request.ua,{cseq:this.response.cseq,callId:this.response.callId,fromUri:this.response.from.uri,fromTag:this.response.fromTag,toUri:this.response.to.uri,toTag:this.response.toTag,routeSet:this.response.getHeaders("record-route").reverse()},e.extraHeaders||[],e.body);if(!r.ua.transport)throw new Error("No transport to make transaction");return this.ackSender=new L({onTransportError:this.requestSender.applicant?this.requestSender.applicant.onTransportError.bind(this.requestSender.applicant):function(){i.logger.warn("ACK Request had a transport error")},ua:r.ua},r,r.ua.transport),this.ackSender.send(),r}},t.prototype.onTransportError=function(){this.logger.log("transport error occurred, deleting INVITE client transaction "+this.id),this.B&&(clearTimeout(this.B),this.B=void 0),this.D&&(clearTimeout(this.D),this.D=void 0),this.M&&(clearTimeout(this.M),this.M=void 0),this.stateChanged(s.TransactionStatus.STATUS_TERMINATED),this.requestSender.ua.destroyTransaction(this),this.state!==s.TransactionStatus.STATUS_ACCEPTED&&this.requestSender.onTransportError()},t.prototype.timer_M=function(){this.logger.debug("Timer M expired for INVITE client transaction "+this.id),this.state===s.TransactionStatus.STATUS_ACCEPTED&&(this.B&&(clearTimeout(this.B),this.B=void 0),this.stateChanged(s.TransactionStatus.STATUS_TERMINATED),this.requestSender.ua.destroyTransaction(this))},t.prototype.timer_B=function(){this.logger.debug("Timer B expired for INVITE client transaction "+this.id),this.state===s.TransactionStatus.STATUS_CALLING&&(this.stateChanged(s.TransactionStatus.STATUS_TERMINATED),this.requestSender.ua.destroyTransaction(this),this.requestSender.onRequestTimeout())},t.prototype.timer_D=function(){this.logger.debug("Timer D expired for INVITE client transaction "+this.id),this.B&&(clearTimeout(this.B),this.B=void 0),this.stateChanged(s.TransactionStatus.STATUS_TERMINATED),this.requestSender.ua.destroyTransaction(this)},t.prototype.cancelRequest=function(e,t,i){var r=e.request;this.cancel=a.C.CANCEL+" "+r.ruri+" SIP/2.0\r\n",this.cancel+="Via: "+r.headers.Via.toString()+"\r\n",this.request.headers.Route&&(this.cancel+="Route: "+r.headers.Route.toString()+"\r\n"),this.cancel+="To: "+r.headers.To.toString()+"\r\n",this.cancel+="From: "+r.headers.From.toString()+"\r\n",this.cancel+="Call-ID: "+r.headers["Call-ID"].toString()+"\r\n",this.cancel+="Max-Forwards: 70\r\n",this.cancel+="CSeq: "+r.headers.CSeq.toString().split(" ")[0]+" CANCEL\r\n",t&&(this.cancel+="Reason: "+t+"\r\n"),i&&(this.cancel+=i),this.cancel+="Content-Length: 0\r\n\r\n",this.state===s.TransactionStatus.STATUS_PROCEEDING&&this.transport.send(this.cancel)},t}(o.EventEmitter);t.InviteClientTransaction=p;var L=function(e){function t(t,i,r){var n=e.call(this)||this;n.type=s.TypeStrings.AckClientTransaction,n.transport=r,n.id="z9hG4bK"+Math.floor(1e7*Math.random()),n.requestSender=t,n.request=i,n.logger=t.ua.getLogger("sip.transaction.nict",n.id);var o=D(t.ua,r,n.id);return n.request.setHeader("via",o),n}return n(t,e),t.prototype.send=function(){var e=this;this.transport.send(this.request).catch(function(){e.logger.log("transport error occurred, for an ACK client transaction "+e.id),e.requestSender.onTransportError()})},t}(o.EventEmitter);t.AckClientTransaction=L;var z=function(e){function t(t,i){var r=e.call(this)||this;return r.kind=T,r.type=s.TypeStrings.NonInviteServerTransaction,r.id=t.viaBranch,r.request=t,r.transport=i.transport,r.ua=i,r.lastResponse="",r.transportError=!1,t.serverTransaction=r,r.logger=i.getLogger("sip.transaction.nist",r.id),r.state=s.TransactionStatus.STATUS_TRYING,i.newTransaction(r),r}return n(t,e),t.prototype.stateChanged=function(e){this.state=e,this.emit("stateChanged")},t.prototype.receiveResponse=function(e,t){var i=this;return new Promise(function(r,n){if(100===e)switch(i.state){case s.TransactionStatus.STATUS_TRYING:i.stateChanged(c),i.transport&&i.transport.send(t).catch(function(){return i.onTransportError()});break;case s.TransactionStatus.STATUS_PROCEEDING:i.lastResponse=t,i.transport&&i.transport.send(t).then(r).catch(function(){i.onTransportError(),n()})}else if(e>=200&&e<=699)switch(i.state){case s.TransactionStatus.STATUS_TRYING:case s.TransactionStatus.STATUS_PROCEEDING:i.stateChanged(N),i.lastResponse=t,i.J=setTimeout(function(){i.logger.debug("Timer J expired for non-INVITE server transaction "+i.id),i.stateChanged(g),i.ua.destroyTransaction(i)},u.Timers.TIMER_J),i.transport&&i.transport.send(t).then(r).catch(function(){i.onTransportError(),n()});case s.TransactionStatus.STATUS_COMPLETED:}})},t.prototype.onTransportError=function(){this.transportError||(this.transportError=!0,this.logger.log("transport error occurred, deleting non-INVITE server transaction "+this.id),this.J&&(clearTimeout(this.J),this.J=void 0),this.stateChanged(g),this.ua.destroyTransaction(this))},t}(o.EventEmitter);t.NonInviteServerTransaction=z;var h=function(e){function t(t,i){var r=e.call(this)||this;return r.kind=y,r.type=s.TypeStrings.InviteServerTransaction,r.id=t.viaBranch,r.request=t,r.transport=i.transport,r.ua=i,r.lastResponse="",r.transportError=!1,t.serverTransaction=r,r.logger=i.getLogger("sip.transaction.ist",r.id),r.state=s.TransactionStatus.STATUS_PROCEEDING,i.newTransaction(r),t.reply(100),r}return n(t,e),t.prototype.stateChanged=function(e){this.state=e,this.emit("stateChanged")},t.prototype.timer_I=function(){this.stateChanged(s.TransactionStatus.STATUS_TERMINATED),this.ua.destroyTransaction(this)},t.prototype.receiveResponse=function(e,t){var i=this;return new Promise(function(r,n){if(e>=100&&e<=199&&i.state===s.TransactionStatus.STATUS_PROCEEDING)i.transport&&i.transport.send(t).catch(function(){return i.onTransportError()}),i.lastResponse=t,e>100&&void 0===i.resendProvisionalTimer&&(i.resendProvisionalTimer=setInterval(function(){i.transport&&i.transport.send(t).catch(function(){return i.onTransportError()})},u.Timers.PROVISIONAL_RESPONSE_INTERVAL));else if(e>=200&&e<=299)switch(i.state){case s.TransactionStatus.STATUS_PROCEEDING:i.stateChanged(l),i.lastResponse=t,i.L=setTimeout(function(){return i.timer_L()},u.Timers.TIMER_L),void 0!==i.resendProvisionalTimer&&(clearInterval(i.resendProvisionalTimer),i.resendProvisionalTimer=void 0);case s.TransactionStatus.STATUS_ACCEPTED:i.transport&&i.transport.send(t).then(r).catch(function(e){i.logger.error(e),i.onTransportError(),n()})}else e>=300&&e<=699&&i.state===s.TransactionStatus.STATUS_PROCEEDING&&(void 0!==i.resendProvisionalTimer&&(clearInterval(i.resendProvisionalTimer),i.resendProvisionalTimer=void 0),i.transport&&i.transport.send(t).then(function(){i.stateChanged(s.TransactionStatus.STATUS_COMPLETED),i.H=setTimeout(function(){return i.timer_H()},u.Timers.TIMER_H),r()}).catch(function(e){i.logger.error(e),i.onTransportError(),n()}))})},t.prototype.timer_H=function(){this.logger.debug("Timer H expired for INVITE server transaction "+this.id),this.state===s.TransactionStatus.STATUS_COMPLETED&&this.logger.warn("transactions: ACK for INVITE server transaction was never received, call will be terminated"),this.stateChanged(s.TransactionStatus.STATUS_TERMINATED),this.ua.destroyTransaction(this)},t.prototype.timer_L=function(){this.logger.debug("Timer L expired for INVITE server transaction "+this.id),this.state===s.TransactionStatus.STATUS_ACCEPTED&&(this.stateChanged(s.TransactionStatus.STATUS_TERMINATED),this.ua.destroyTransaction(this))},t.prototype.onTransportError=function(){this.transportError||(this.transportError=!0,this.logger.log("transport error occurred, deleting INVITE server transaction "+this.id),void 0!==this.resendProvisionalTimer&&(clearInterval(this.resendProvisionalTimer),this.resendProvisionalTimer=void 0),this.L&&(clearTimeout(this.L),this.L=void 0),this.H&&(clearTimeout(this.H),this.H=void 0),this.I&&(clearTimeout(this.I),this.I=void 0),this.stateChanged(s.TransactionStatus.STATUS_TERMINATED),this.ua.destroyTransaction(this))},t}(o.EventEmitter);t.InviteServerTransaction=h,t.checkTransaction=function(e,t){var i=e.transactions.ist[t.viaBranch];switch(t.method){case a.C.INVITE:if(i){switch(i.state){case s.TransactionStatus.STATUS_PROCEEDING:i.transport&&i.transport.send(i.lastResponse);case s.TransactionStatus.STATUS_ACCEPTED:}return!0}break;case a.C.ACK:if(!i)return!1;if(i.state===s.TransactionStatus.STATUS_ACCEPTED)return!1;if(i.state===s.TransactionStatus.STATUS_COMPLETED)return i.stateChanged(s.TransactionStatus.STATUS_CONFIRMED),i.I=setTimeout(i.timer_I.bind(i),u.Timers.TIMER_I),!0;break;case a.C.CANCEL:return i?(t.reply_sl(200),i.state!==s.TransactionStatus.STATUS_PROCEEDING):(t.reply_sl(481),!0);default:var r=e.transactions.nist[t.viaBranch];if(r){switch(r.state){case s.TransactionStatus.STATUS_TRYING:break;case s.TransactionStatus.STATUS_PROCEEDING:case s.TransactionStatus.STATUS_COMPLETED:r.transport&&r.transport.send(r.lastResponse)}return!0}}return!1}},function(e,t,i){var r,n=this&&this.__extends||(r=function(e,t){return(r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var i in t)t.hasOwnProperty(i)&&(e[i]=t[i])})(e,t)},function(e,t){function i(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(i.prototype=t.prototype,new i)});Object.defineProperty(t,"__esModule",{value:!0});var o=i(1),a=i(0),s=function(){function e(e){for(var t in this.parameters={},this.type=a.TypeStrings.Parameters,e)e.hasOwnProperty(t)&&this.setParam(t,e[t])}return e.prototype.setParam=function(e,t){e&&(this.parameters[e.toLowerCase()]=null==t?null:t.toString())},e.prototype.getParam=function(e){if(e)return this.parameters[e.toLowerCase()]},e.prototype.hasParam=function(e){return!!e&&!!this.parameters.hasOwnProperty(e.toLowerCase())},e.prototype.deleteParam=function(e){if(e=e.toLowerCase(),this.parameters.hasOwnProperty(e)){var t=this.parameters[e];return delete this.parameters[e],t}},e.prototype.clearParams=function(){this.parameters={}},e}();t.Parameters=s;var M=function(e){function t(t,i,r,n,s,M){var u=e.call(this,s)||this;if(u.headers={},u.type=a.TypeStrings.URI,!r)throw new TypeError('missing or invalid "host" parameter');for(var c in t=t||o.C.SIP,M)M.hasOwnProperty(c)&&u.setHeader(c,M[c]);return u.raw={scheme:t,user:i,host:r,port:n},u.normal={scheme:t.toLowerCase(),user:i,host:r.toLowerCase(),port:n},u}return n(t,e),Object.defineProperty(t.prototype,"_normal",{get:function(){return this.normal},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"_raw",{get:function(){return this.raw},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"scheme",{get:function(){return this.normal.scheme},set:function(e){this.raw.scheme=e,this.normal.scheme=e.toLowerCase()},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"user",{get:function(){return this.normal.user},set:function(e){this.normal.user=this.raw.user=e},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"host",{get:function(){return this.normal.host},set:function(e){this.raw.host=e,this.normal.host=e.toLowerCase()},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"aor",{get:function(){return this.normal.user+"@"+this.normal.host},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"port",{get:function(){return this.normal.port},set:function(e){this.normal.port=this.raw.port=e},enumerable:!0,configurable:!0}),t.prototype.setHeader=function(e,t){this.headers[this.headerize(e)]=t instanceof Array?t:[t]},t.prototype.getHeader=function(e){if(e)return this.headers[this.headerize(e)]},t.prototype.hasHeader=function(e){return!!e&&!!this.headers.hasOwnProperty(this.headerize(e))},t.prototype.deleteHeader=function(e){if(e=this.headerize(e),this.headers.hasOwnProperty(e)){var t=this.headers[e];return delete this.headers[e],t}},t.prototype.clearHeaders=function(){this.headers={}},t.prototype.clone=function(){return new t(this._raw.scheme,this._raw.user||"",this._raw.host,this._raw.port,JSON.parse(JSON.stringify(this.parameters)),JSON.parse(JSON.stringify(this.headers)))},t.prototype.toRaw=function(){return this._toString(this._raw)},t.prototype.toString=function(){return this._toString(this._normal)},t.prototype._toString=function(e){var t=e.scheme+":";for(var i in e.scheme.toLowerCase().match("^sips?$")||(t+="//"),e.user&&(t+=this.escapeUser(e.user)+"@"),t+=e.host,(e.port||0===e.port)&&(t+=":"+e.port),this.parameters)this.parameters.hasOwnProperty(i)&&(t+=";"+i,null!==this.parameters[i]&&(t+="="+this.parameters[i]));var r=[];for(var n in this.headers)if(this.headers.hasOwnProperty(n))for(var o in this.headers[n])this.headers[n].hasOwnProperty(o)&&r.push(n+"="+this.headers[n][o]);return r.length>0&&(t+="?"+r.join("&")),t},t.prototype.escapeUser=function(e){return encodeURIComponent(decodeURIComponent(e)).replace(/%3A/gi,":").replace(/%2B/gi,"+").replace(/%3F/gi,"?").replace(/%2F/gi,"/")},t.prototype.headerize=function(e){for(var t={"Call-Id":"Call-ID",Cseq:"CSeq","Min-Se":"Min-SE",Rack:"RAck",Rseq:"RSeq","Www-Authenticate":"WWW-Authenticate"},i=e.toLowerCase().replace(/_/g,"-").split("-"),r=i.length,n="",o=0;o<r;o++)0!==o&&(n+="-"),n+=i[o].charAt(0).toUpperCase()+i[o].substring(1);return t[n]&&(n=t[n]),n},t}(s);t.URI=M},function(e,t,i){Object.defineProperty(t,"__esModule",{value:!0}),t.Timers={T1:500,T2:4e3,T4:5e3,TIMER_B:32e3,TIMER_D:0,TIMER_F:32e3,TIMER_H:32e3,TIMER_I:0,TIMER_J:0,TIMER_K:0,TIMER_L:32e3,TIMER_M:32e3,TIMER_N:32e3,PROVISIONAL_RESPONSE_INTERVAL:6e4}},function(e,t){var i;i=function(){return this}();try{i=i||new Function("return this")()}catch(r){"object"==typeof window&&(i=window)}e.exports=i},function(e,t,i){Object.defineProperty(t,"__esModule",{value:!0});var r=i(1),n=i(0),o=i(8),a=i(6),s=function(){function e(e,t,i,r){if(this.pracked=[],this.uacPendingReply=!1,this.uasPendingReply=!1,this.type=n.TypeStrings.Dialog,!t.hasHeader("contact"))throw new Error("unable to create a Dialog without Contact header field");if(t.type===n.TypeStrings.IncomingResponse){var o=t.statusCode;r=o&&o<200?n.DialogStatus.STATUS_EARLY:n.DialogStatus.STATUS_CONFIRMED}else r=r||n.DialogStatus.STATUS_CONFIRMED;var a=t.parseHeader("contact");"UAS"===i&&t.type===n.TypeStrings.IncomingRequest?(this.id={callId:t.callId,localTag:t.toTag,remoteTag:t.fromTag,toString:function(){return t.callId+t.toTag+t.fromTag}},this.state=r,this.remoteSeqnum=t.cseq,this.localUri=(t.parseHeader("to")||{}).uri,this.remoteUri=(t.parseHeader("from")||{}).uri,this.remoteTarget=a.uri,this.routeSet=t.getHeaders("record-route"),this.inviteSeqnum=t.cseq,this.localSeqnum=t.cseq):(this.id={callId:t.callId,localTag:t.fromTag,remoteTag:t.toTag,toString:function(){return t.callId+t.fromTag+t.toTag}},this.state=r,this.inviteSeqnum=t.cseq,this.localSeqnum=t.cseq,this.localUri=t.parseHeader("from").uri,this.pracked=[],this.remoteUri=t.parseHeader("to").uri,this.remoteTarget=a.uri,this.routeSet=t.getHeaders("record-route").reverse()),this.logger=e.ua.getLogger("sip.dialog",this.id.toString()),this.owner=e,e.ua.dialogs[this.id.toString()]=this,this.logger.log("new "+i+" dialog created with status "+(this.state===n.DialogStatus.STATUS_EARLY?"EARLY":"CONFIRMED")),e.emit("dialog",this)}return e.prototype.update=function(e,t){this.state=n.DialogStatus.STATUS_CONFIRMED,this.logger.log("dialog "+this.id.toString()+" changed to CONFIRMED state"),"UAC"===t&&(this.routeSet=e.getHeaders("record-route").reverse())},e.prototype.terminate=function(){this.logger.log("dialog "+this.id.toString()+" deleted"),this.sessionDescriptionHandler&&this.state!==n.DialogStatus.STATUS_CONFIRMED&&this.sessionDescriptionHandler.close(),delete this.owner.ua.dialogs[this.id.toString()]},e.prototype.createRequest=function(e,t,i){void 0===t&&(t=[]),t=t.slice(),this.localSeqnum||(this.localSeqnum=Math.floor(1e4*Math.random()));var n=e===r.C.CANCEL||e===r.C.ACK?this.inviteSeqnum:this.localSeqnum+=1,o=new a.OutgoingRequest(e,this.remoteTarget,this.owner.ua,{cseq:n,callId:this.id.callId,fromUri:this.localUri,fromTag:this.id.localTag,toIri:this.remoteUri,toTag:this.id.remoteTag,routeSet:this.routeSet},t,i);return o.dialog=this,o},e.prototype.checkInDialogRequest=function(e){var t=this;if(this.remoteSeqnum){if(e.cseq<this.remoteSeqnum)return e.method!==r.C.ACK&&e.reply(500),e.cseq===this.inviteSeqnum}else this.remoteSeqnum=e.cseq;switch(e.method){case r.C.INVITE:if(!0===this.uacPendingReply)e.reply(491);else{if(!0===this.uasPendingReply&&e.cseq>this.remoteSeqnum){var i=Math.floor(10*Math.random())+1;return e.reply(500,void 0,["Retry-After:"+i]),this.remoteSeqnum=e.cseq,!1}this.uasPendingReply=!0;var o=function(){!e.serverTransaction||e.serverTransaction.state!==n.TransactionStatus.STATUS_ACCEPTED&&e.serverTransaction.state!==n.TransactionStatus.STATUS_COMPLETED&&e.serverTransaction.state!==n.TransactionStatus.STATUS_TERMINATED||(e.serverTransaction.removeListener("stateChanged",o),t.uasPendingReply=!1)};e.serverTransaction&&e.serverTransaction.on("stateChanged",o)}e.hasHeader("contact")&&e.serverTransaction&&e.serverTransaction.on("stateChanged",function(){e.serverTransaction&&e.serverTransaction.state===n.TransactionStatus.STATUS_ACCEPTED&&(t.remoteTarget=e.parseHeader("contact").uri)});break;case r.C.NOTIFY:e.hasHeader("contact")&&e.serverTransaction&&e.serverTransaction.on("stateChanged",function(){e.serverTransaction&&e.serverTransaction.state===n.TransactionStatus.STATUS_COMPLETED&&(t.remoteTarget=e.parseHeader("contact").uri)})}return e.cseq>this.remoteSeqnum&&(this.remoteSeqnum=e.cseq),!0},e.prototype.sendRequest=function(e,t,i){var a=this;void 0===i&&(i={});var s,M=(i.extraHeaders||[]).slice();i.body&&(i.body.body?s=i.body:((s={}).body=i.body,i.contentType&&(s.contentType=i.contentType)));var u=this.createRequest(t,M,s),c=function(t){var i=new o.RequestSender({request:u,onRequestTimeout:e.onRequestTimeout.bind(e),onTransportError:e.onTransportError.bind(e),receiveResponse:function(i){408===i.statusCode||481===i.statusCode?e.onDialogError(i):i.method===r.C.INVITE&&491===i.statusCode?t?e.receiveResponse(i):(u.cseq=a.localSeqnum+=1,setTimeout(function(){void 0!==a.owner.status&&a.owner.status!==n.SessionStatus.STATUS_TERMINATED&&c(!0)},1e3)):e.receiveResponse(i)}},a.owner.ua);if(i.send(),i.clientTransaction&&i.clientTransaction.type!==n.TypeStrings.AckClientTransaction&&u.method===r.C.INVITE&&i.clientTransaction&&i.clientTransaction.state!==n.TransactionStatus.STATUS_TERMINATED){a.uacPendingReply=!0;var s=function(){var e=i.clientTransaction.state;i.clientTransaction&&i.clientTransaction.type!==n.TypeStrings.AckClientTransaction&&(!i.clientTransaction||e!==n.TransactionStatus.STATUS_ACCEPTED&&e!==n.TransactionStatus.STATUS_COMPLETED&&e!==n.TransactionStatus.STATUS_TERMINATED||(i.clientTransaction.removeListener("stateChanged",s),a.uacPendingReply=!1))};i.clientTransaction.on("stateChanged",s)}};return c(!1),u},e.prototype.receiveRequest=function(e){this.checkInDialogRequest(e)&&this.owner.receiveRequest(e)},e.C=n.DialogStatus,e}();t.Dialog=s},function(e,t,i){var r,n=this&&this.__extends||(r=function(e,t){return(r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var i in t)t.hasOwnProperty(i)&&(e[i]=t[i])})(e,t)},function(e,t){function i(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(i.prototype=t.prototype,new i)});Object.defineProperty(t,"__esModule",{value:!0});var o=i(3),a=i(1),s=i(0),M=i(4),u=i(9),c=i(2),l=function(e){function t(i,r){var n=e.call(this)||this;return n.data={},t.initializer(n,i,r),n}return n(t,e),t.initializer=function(e,t,i){if(e.type=s.TypeStrings.ServerContext,e.ua=t,e.logger=t.getLogger("sip.servercontext"),e.request=i,i.method===a.C.INVITE?e.transaction=new u.InviteServerTransaction(i,t):e.transaction=new u.NonInviteServerTransaction(i,t),i.body&&(e.body=i.body),i.hasHeader("Content-Type")&&(e.contentType=i.getHeader("Content-Type")),e.method=i.method,e.localIdentity=i.to,e.remoteIdentity=i.from,i.hasHeader("P-Asserted-Identity")){var r=i.getHeader("P-Asserted-Identity");r&&(e.assertedIdentity=M.Grammar.nameAddrHeaderParse(r))}},t.prototype.progress=function(e){return void 0===e&&(e={}),e.statusCode=e.statusCode||180,e.minCode=100,e.maxCode=199,e.events=["progress"],this.reply(e)},t.prototype.accept=function(e){return void 0===e&&(e={}),e.statusCode=e.statusCode||200,e.minCode=200,e.maxCode=299,e.events=["accepted"],this.reply(e)},t.prototype.reject=function(e){return void 0===e&&(e={}),e.statusCode=e.statusCode||480,e.minCode=300,e.maxCode=699,e.events=["rejected","failed"],this.reply(e)},t.prototype.reply=function(e){var t=this;void 0===e&&(e={});var i=e.statusCode||100,r=e.minCode||100,n=e.maxCode||699,o=c.Utils.getReasonPhrase(i,e.reasonPhrase),a=e.extraHeaders||[],s=e.body,M=e.events||[];if(i<r||i>n)throw new TypeError("Invalid statusCode: "+i);var u=this.request.reply(i,o,a,s);return M.forEach(function(e){t.emit(e,u,o)}),this},t.prototype.onRequestTimeout=function(){this.emit("failed",void 0,a.C.causes.REQUEST_TIMEOUT)},t.prototype.onTransportError=function(){this.emit("failed",void 0,a.C.causes.CONNECTION_ERROR)},t}(o.EventEmitter);t.ServerContext=l},function(e,t,i){Object.defineProperty(t,"__esModule",{value:!0});var r=function(e,t){for(var i,r=[],n=e.split(/\r\n/),o=0;o<n.length;){var a=n[o];if(/^m=(?:audio|video)/.test(a))i={index:o,stripped:[]},r.push(i);else if(i){var s=/^a=rtpmap:(\d+) ([^\/]+)\//.exec(a);if(s&&t===s[2]){n.splice(o,1),i.stripped.push(s[1]);continue}}o++}for(var M=0,u=r;M<u.length;M++){for(var c=u[M],l=n[c.index].split(" "),N=3;N<l.length;)-1===c.stripped.indexOf(l[N])?N++:l.splice(N,1);n[c.index]=l.join(" ")}return n.join("\r\n")};t.stripTcpCandidates=function(e){return e.sdp=(e.sdp||"").replace(/^a=candidate:\d+ \d+ tcp .*?\r\n/gim,""),Promise.resolve(e)},t.stripTelephoneEvent=function(e){return e.sdp=r(e.sdp||"","telephone-event"),Promise.resolve(e)},t.cleanJitsiSdpImageattr=function(e){return e.sdp=(e.sdp||"").replace(/^(a=imageattr:.*?)(x|y)=\[0-/gm,"$1$2=[1:"),Promise.resolve(e)},t.stripG722=function(e){return e.sdp=r(e.sdp||"","G722"),Promise.resolve(e)},t.stripRtpPayload=function(e){return function(t){return t.sdp=r(t.sdp||"",e),Promise.resolve(t)}},t.stripVideo=function(e){return e.sdp=function(e,t){var i=new RegExp("m="+t+".*$","gm"),r=new RegExp("^a=group:.*$","gm");if(i.test(e)){var n,o=(e=e.split(/^m=/gm).filter(function(e){if(e.substr(0,t.length)===t){if(n=e.match(/^a=mid:.*$/gm)){var i=n[0].match(/:.+$/g);i&&(n=i[0].substr(1))}return!1}return!0}).join("m=")).match(r);if(o&&1===o.length){var a=o[0],s=new RegExp(" *"+n+"[^ ]*","g");a=a.replace(s,""),e=e.split(r).join(a)}}return e}(e.sdp||"","video"),Promise.resolve(e)},t.addMidLines=function(e){var t=e.sdp||"";if(-1===t.search(/^a=mid.*$/gm)){var i=t.match(/^m=.*$/gm),r=t.split(/^m=.*$/gm);i&&i.forEach(function(e,t){i[t]=e+"\na=mid:"+t}),r.forEach(function(e,t){i&&i[t]&&(r[t]=e+i[t])}),t=r.join(""),e.sdp=t}return Promise.resolve(e)}},function(e){e.exports={name:"sip.js",title:"SIP.js",description:"A simple, intuitive, and powerful JavaScript signaling library",version:"0.13.6",license:"MIT",main:"lib/index.js",homepage:"https://sipjs.com",author:"OnSIP <developer@onsip.com> (https://sipjs.com/aboutus/)",contributors:[{url:"https://github.com/onsip/SIP.js/blob/master/THANKS.md"}],repository:{type:"git",url:"https://github.com/onsip/SIP.js.git"},keywords:["sip","websocket","webrtc","library","javascript"],dependencies:{"crypto-js":"^3.1.9-1"},devDependencies:{"@types/node":"^11.9.6","circular-dependency-plugin":"^5.0.2","jasmine-core":"^3.3.0",karma:"^4.0.1","karma-chrome-launcher":"^2.2.0","karma-cli":"^2.0.0","karma-jasmine":"^2.0.1","karma-jasmine-html-reporter":"^1.4.0","karma-mocha-reporter":"^2.2.5","karma-webpack":"^3.0.5",pegjs:"^0.10.0","ts-loader":"^5.3.3","ts-pegjs":"0.2.2",tslint:"^5.13.1",typescript:"^3.3.3333",webpack:"^4.29.6","webpack-cli":"^3.2.3"},engines:{node:">=8.0"},scripts:{prebuild:"tslint -p tsconfig.json -c tslint.json","generate-grammar":"node build/grammarGenerator.js","build-reg-bundle":"webpack --progress --config build/webpack.config.js --env.buildType reg","build-min-bundle":"webpack --progress --config build/webpack.config.js --env.buildType min","build-bundles":"npm run build-reg-bundle && npm run build-min-bundle","build-lib":"tsc","copy-dist-files":"cp dist/sip.js dist/sip-$npm_package_version.js && cp dist/sip.min.js dist/sip-$npm_package_version.min.js",build:"npm run generate-grammar && npm run build-lib && npm run build-reg-bundle && npm run build-min-bundle && npm run copy-dist-files",browserTest:"sleep 2 && open http://0.0.0.0:9876/debug.html & karma start --reporters kjhtml --no-single-run",commandLineTest:"karma start --reporters mocha --browsers ChromeHeadless --single-run",buildAndTest:"npm run build && npm run commandLineTest",buildAndBrowserTest:"npm run build && npm run browserTest"},types:"./types"}},function(e,t,i){var r,n=this&&this.__extends||(r=function(e,t){return(r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var i in t)t.hasOwnProperty(i)&&(e[i]=t[i])})(e,t)},function(e,t){function i(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(i.prototype=t.prototype,new i)});Object.defineProperty(t,"__esModule",{value:!0});var o=i(0),a=function(e){function t(t,i,r){var n=e.call(this,r)||this;if(n.type=o.TypeStrings.NameAddrHeader,!t||t.type!==o.TypeStrings.URI)throw new TypeError('missing or invalid "uri" parameter');return n.uri=t,n._displayName=i,n}return n(t,e),Object.defineProperty(t.prototype,"friendlyName",{get:function(){return this.displayName||this.uri.aor},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"displayName",{get:function(){return this._displayName},set:function(e){this._displayName=e},enumerable:!0,configurable:!0}),t.prototype.clone=function(){return new t(this.uri.clone(),this._displayName,JSON.parse(JSON.stringify(this.parameters)))},t.prototype.toString=function(){var e=this.displayName||"0"===this.displayName?'"'+this.displayName+'" ':"";for(var t in e+="<"+this.uri.toString()+">",this.parameters)this.parameters.hasOwnProperty(t)&&(e+=";"+t,null!==this.parameters[t]&&(e+="="+this.parameters[t]));return e},t}(i(10).Parameters);t.NameAddrHeader=a},function(e,t,i){Object.defineProperty(t,"__esModule",{value:!0});var r=i(32),n=i(0),o=i(2),a=function(){function e(e){this.type=n.TypeStrings.DigestAuthentication,this.logger=e.getLogger("sipjs.digestauthentication"),this.username=e.configuration.authorizationUser,this.password=e.configuration.password,this.nc=0,this.ncHex="00000000"}return e.prototype.authenticate=function(e,t,i){if(this.algorithm=t.algorithm,this.realm=t.realm,this.nonce=t.nonce,this.opaque=t.opaque,this.stale=t.stale,this.algorithm){if("MD5"!==this.algorithm)return this.logger.warn("challenge with Digest algorithm different than 'MD5', authentication aborted"),!1}else this.algorithm="MD5";if(!this.realm)return this.logger.warn("challenge without Digest realm, authentication aborted"),!1;if(!this.nonce)return this.logger.warn("challenge without Digest nonce, authentication aborted"),!1;if(t.qop)if(t.qop.indexOf("auth")>-1)this.qop="auth";else{if(!(t.qop.indexOf("auth-int")>-1))return this.logger.warn("challenge without Digest qop different than 'auth' or 'auth-int', authentication aborted"),!1;this.qop="auth-int"}else this.qop=void 0;return this.method=e.method,this.uri=e.ruri,this.cnonce=o.Utils.createRandomToken(12),this.nc+=1,this.updateNcHex(),4294967296===this.nc&&(this.nc=1,this.ncHex="00000001"),this.calculateResponse(i),!0},e.prototype.toString=function(){var e=[];if(!this.response)throw new Error("response field does not exist, cannot generate Authorization header");return e.push("algorithm="+this.algorithm),e.push('username="'+this.username+'"'),e.push('realm="'+this.realm+'"'),e.push('nonce="'+this.nonce+'"'),e.push('uri="'+this.uri+'"'),e.push('response="'+this.response+'"'),this.opaque&&e.push('opaque="'+this.opaque+'"'),this.qop&&(e.push("qop="+this.qop),e.push('cnonce="'+this.cnonce+'"'),e.push("nc="+this.ncHex)),"Digest "+e.join(", ")},e.prototype.updateNcHex=function(){var e=Number(this.nc).toString(16);this.ncHex="00000000".substr(0,8-e.length)+e},e.prototype.calculateResponse=function(e){var t,i=r(this.username+":"+this.realm+":"+this.password);"auth"===this.qop?(t=r(this.method+":"+this.uri),this.response=r(i+":"+this.nonce+":"+this.ncHex+":"+this.cnonce+":auth:"+t)):"auth-int"===this.qop?(t=r(this.method+":"+this.uri+":"+r(e||"")),this.response=r(i+":"+this.nonce+":"+this.ncHex+":"+this.cnonce+":auth-int:"+t)):void 0===this.qop&&(t=r(this.method+":"+this.uri),this.response=r(i+":"+this.nonce+":"+t))},e}();t.DigestAuthentication=a},function(e,t,i){Object.defineProperty(t,"__esModule",{value:!0});var r,n,o=i(0);(n=r=t.Levels||(t.Levels={}))[n.error=0]="error",n[n.warn=1]="warn",n[n.log=2]="log",n[n.debug=3]="debug";var a=function(){function e(){this.builtinEnabled=!0,this._level=r.log,this.loggers={},this.type=o.TypeStrings.LoggerFactory,this.logger=this.getLogger("sip:loggerfactory")}return Object.defineProperty(e.prototype,"level",{get:function(){return this._level},set:function(e){e>=0&&e<=3?this._level=e:e>3?this._level=3:r.hasOwnProperty(e)?this._level=e:this.logger.error("invalid 'level' parameter value: "+JSON.stringify(e))},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"connector",{get:function(){return this._connector},set:function(e){e?"function"==typeof e?this._connector=e:this.logger.error("invalid 'connector' parameter value: "+JSON.stringify(e)):this._connector=void 0},enumerable:!0,configurable:!0}),e.prototype.getLogger=function(e,t){if(t&&3===this.level)return new s(this,e,t);if(this.loggers[e])return this.loggers[e];var i=new s(this,e);return this.loggers[e]=i,i},e.prototype.genericLog=function(e,t,i,n){this.level>=e&&(this.builtinEnabled&&this.print(console[r[e]],t,i,n),this.connector&&this.connector(r[e],t,i,n))},e.prototype.print=function(e,t,i,r){if("string"==typeof r){var n=[new Date,t];i&&n.push(i),r=n.concat(r).join(" | ")}e.call(console,r)},e}();t.LoggerFactory=a;var s=function(){function e(e,t,i){this.type=o.TypeStrings.Logger,this.logger=e,this.category=t,this.label=i}return e.prototype.error=function(e){this.genericLog(r.error,e)},e.prototype.warn=function(e){this.genericLog(r.warn,e)},e.prototype.log=function(e){this.genericLog(r.log,e)},e.prototype.debug=function(e){this.genericLog(r.debug,e)},e.prototype.genericLog=function(e,t){this.logger.genericLog(e,this.category,this.label,t)},e}();t.Logger=s},function(e,t,i){Object.defineProperty(t,"__esModule",{value:!0});var r=i(0),n=i(4),o=i(6);!function(e){function t(e,t){var i=t,r=0,n=0;if(e.substring(i,i+2).match(/(^\r\n)/))return-2;for(;0===r;){if(-1===(n=e.indexOf("\r\n",i)))return n;!e.substring(n+2,n+4).match(/(^\r\n)/)&&e.charAt(n+2).match(/(^\s+)/)?i=n+2:r=n}return r}function i(e,t,i,o){var a,s=t.indexOf(":",i),M=t.substring(i,s).trim(),u=t.substring(s+1,o).trim();switch(M.toLowerCase()){case"via":case"v":e.addHeader("via",u),1===e.getHeaders("via").length?(a=e.parseHeader("Via"))&&(e.via=a,e.viaBranch=a.branch):a=0;break;case"from":case"f":e.setHeader("from",u),(a=e.parseHeader("from"))&&(e.from=a,e.fromTag=a.getParam("tag"));break;case"to":case"t":e.setHeader("to",u),(a=e.parseHeader("to"))&&(e.to=a,e.toTag=a.getParam("tag"));break;case"record-route":if(-1===(a=n.Grammar.parse(u,"Record_Route"))){a=void 0;break}for(var c in a)a[c]&&(e.addHeader("record-route",u.substring(a[c].position,a[c].offset)),e.headers["Record-Route"][e.getHeaders("record-route").length-1].parsed=a[c].parsed);break;case"call-id":case"i":e.setHeader("call-id",u),(a=e.parseHeader("call-id"))&&(e.callId=u);break;case"contact":case"m":if(-1===(a=n.Grammar.parse(u,"Contact"))){a=void 0;break}for(var c in a)a[c]&&(e.addHeader("contact",u.substring(a[c].position,a[c].offset)),e.headers.Contact[e.getHeaders("contact").length-1].parsed=a[c].parsed);break;case"content-length":case"l":e.setHeader("content-length",u),a=e.parseHeader("content-length");break;case"content-type":case"c":e.setHeader("content-type",u),a=e.parseHeader("content-type");break;case"cseq":e.setHeader("cseq",u),(a=e.parseHeader("cseq"))&&(e.cseq=a.value),e.type===r.TypeStrings.IncomingResponse&&(e.method=a.method);break;case"max-forwards":e.setHeader("max-forwards",u),a=e.parseHeader("max-forwards");break;case"www-authenticate":e.setHeader("www-authenticate",u),a=e.parseHeader("www-authenticate");break;case"proxy-authenticate":e.setHeader("proxy-authenticate",u),a=e.parseHeader("proxy-authenticate");break;case"refer-to":case"r":e.setHeader("refer-to",u),(a=e.parseHeader("refer-to"))&&(e.referTo=a);break;default:e.setHeader(M,u),a=0}return void 0!==a||{error:"error parsing header '"+M+"'"}}e.getHeader=t,e.parseHeader=i,e.parseMessage=function(e,r){var a=0,s=e.indexOf("\r\n"),M=r.getLogger("sip.parser");if(-1!==s){var u,c=e.substring(0,s),l=n.Grammar.parse(c,"Request_Response");if(-1!==l){var N;for(l.status_code?((u=new o.IncomingResponse(r)).statusCode=l.status_code,u.reasonPhrase=l.reason_phrase):((u=new o.IncomingRequest(r)).method=l.method,u.ruri=l.uri),u.data=e,a=s+2;;){if(-2===(s=t(e,a))){N=a+2;break}if(-1===s)return void M.error("malformed message");if(!0!==i(u,e,a,s))return void M.error(l.error);a=s+2}return u.hasHeader("content-length")?u.body=e.substr(N,Number(u.getHeader("content-length"))):u.body=e.substring(N),u}M.warn('error parsing first line of SIP message: "'+c+'"')}else M.warn("no CRLF found, not a SIP message, discarded")}}(t.Parser||(t.Parser={}))},function(e,t,i){var r,n=this&&this.__extends||(r=function(e,t){return(r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var i in t)t.hasOwnProperty(i)&&(e[i]=t[i])})(e,t)},function(e,t){function i(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(i.prototype=t.prototype,new i)});Object.defineProperty(t,"__esModule",{value:!0});var o=i(7),a=i(1),s=i(0),M=i(5),u=i(6),c=i(2),l=function(e){function t(t,i,r,n){void 0===n&&(n={});var o=this;if(n.extraHeaders=(n.extraHeaders||[]).slice(),n.contentType=n.contentType||"text/plain","number"!=typeof n.expires||n.expires%1!=0?n.expires=3600:n.expires=Number(n.expires),"boolean"!=typeof n.unpublishOnClose&&(n.unpublishOnClose=!0),null==i||""===i)throw new M.Exceptions.MethodParameterError("Publish","Target",i);if(void 0===(i=t.normalizeTarget(i)))throw new M.Exceptions.MethodParameterError("Publish","Target",i);if((o=e.call(this,t,a.C.PUBLISH,i,n)||this).type=s.TypeStrings.PublishContext,o.options=n,o.target=i,null==r||""===r)throw new M.Exceptions.MethodParameterError("Publish","Event",r);return o.event=r,o.logger=t.getLogger("sip.publish"),o.pubRequestExpires=o.options.expires,t.on("transportCreated",function(e){e.on("transportError",function(){return o.onTransportError()})}),o}return n(t,e),t.prototype.publish=function(e){this.publishRefreshTimer&&(clearTimeout(this.publishRefreshTimer),this.publishRefreshTimer=void 0),this.options.body=e,this.pubRequestBody=this.options.body,0===this.pubRequestExpires&&(this.pubRequestExpires=this.options.expires,this.pubRequestEtag=void 0),this.ua.publishers[this.target.toString()+":"+this.event]||(this.ua.publishers[this.target.toString()+":"+this.event]=this),this.sendPublishRequest()},t.prototype.unpublish=function(){this.publishRefreshTimer&&(clearTimeout(this.publishRefreshTimer),this.publishRefreshTimer=void 0),this.pubRequestBody=void 0,this.pubRequestExpires=0,void 0!==this.pubRequestEtag&&this.sendPublishRequest()},t.prototype.close=function(){this.options.unpublishOnClose?this.unpublish():(this.publishRefreshTimer&&(clearTimeout(this.publishRefreshTimer),this.publishRefreshTimer=void 0),this.pubRequestBody=void 0,this.pubRequestExpires=0,this.pubRequestEtag=void 0),this.ua.publishers[this.target.toString()+":"+this.event]&&delete this.ua.publishers[this.target.toString()+":"+this.event]},t.prototype.onRequestTimeout=function(){e.prototype.onRequestTimeout.call(this),this.emit("unpublished",void 0,a.C.causes.REQUEST_TIMEOUT)},t.prototype.onTransportError=function(){e.prototype.onTransportError.call(this),this.emit("unpublished",void 0,a.C.causes.CONNECTION_ERROR)},t.prototype.receiveResponse=function(e){var t=this,i=e.statusCode||0,r=c.Utils.getReasonPhrase(i);switch(!0){case/^1[0-9]{2}$/.test(i.toString()):this.emit("progress",e,r);break;case/^2[0-9]{2}$/.test(i.toString()):if(e.hasHeader("SIP-ETag")?this.pubRequestEtag=e.getHeader("SIP-ETag"):this.logger.warn("SIP-ETag header missing in a 200-class response to PUBLISH"),e.hasHeader("Expires")){var n=Number(e.getHeader("Expires"));"number"==typeof n&&n>=0&&n<=this.pubRequestExpires?this.pubRequestExpires=n:this.logger.warn("Bad Expires header in a 200-class response to PUBLISH")}else this.logger.warn("Expires header missing in a 200-class response to PUBLISH");0!==this.pubRequestExpires?(this.publishRefreshTimer=setTimeout(function(){return t.refreshRequest()},900*this.pubRequestExpires),this.emit("published",e,r)):this.emit("unpublished",e,r);break;case/^412$/.test(i.toString()):void 0!==this.pubRequestEtag&&0!==this.pubRequestExpires?(this.logger.warn("412 response to PUBLISH, recovering"),this.pubRequestEtag=void 0,this.emit("progress",e,r),this.publish(this.options.body)):(this.logger.warn("412 response to PUBLISH, recovery failed"),this.pubRequestExpires=0,this.emit("failed",e,r),this.emit("unpublished",e,r));break;case/^423$/.test(i.toString()):if(0!==this.pubRequestExpires&&e.hasHeader("Min-Expires")){var o=Number(e.getHeader("Min-Expires"));"number"==typeof o||o>this.pubRequestExpires?(this.logger.warn("423 code in response to PUBLISH, adjusting the Expires value and trying to recover"),this.pubRequestExpires=o,this.emit("progress",e,r),this.publish(this.options.body)):(this.logger.warn("Bad 423 response Min-Expires header received for PUBLISH"),this.pubRequestExpires=0,this.emit("failed",e,r),this.emit("unpublished",e,r))}else this.logger.warn("423 response to PUBLISH, recovery failed"),this.pubRequestExpires=0,this.emit("failed",e,r),this.emit("unpublished",e,r);break;default:this.pubRequestExpires=0,this.emit("failed",e,r),this.emit("unpublished",e,r)}0===this.pubRequestExpires&&(this.publishRefreshTimer&&(clearTimeout(this.publishRefreshTimer),this.publishRefreshTimer=void 0),this.pubRequestBody=void 0,this.pubRequestEtag=void 0)},t.prototype.refreshRequest=function(){if(this.publishRefreshTimer&&(clearTimeout(this.publishRefreshTimer),this.publishRefreshTimer=void 0),this.pubRequestBody=void 0,void 0===this.pubRequestEtag)throw new M.Exceptions.MethodParameterError("Publish","Body",void 0);if(0===this.pubRequestExpires)throw new M.Exceptions.MethodParameterError("Publish","Expire",this.pubRequestExpires);this.sendPublishRequest()},t.prototype.sendPublishRequest=function(){var e=Object.create(this.options||Object.prototype);e.extraHeaders=(this.options.extraHeaders||[]).slice(),e.extraHeaders.push("Event: "+this.event),e.extraHeaders.push("Expires: "+this.pubRequestExpires),void 0!==this.pubRequestEtag&&e.extraHeaders.push("SIP-If-Match: "+this.pubRequestEtag),this.request=new u.OutgoingRequest(a.C.PUBLISH,this.target,this.ua,this.options.params,e.extraHeaders),void 0!==this.pubRequestBody&&(this.request.body={},this.request.body.body=this.pubRequestBody,this.request.body.contentType=this.options.contentType),this.send()},t}(o.ClientContext);t.PublishContext=l},function(e,t,i){var r,n=this&&this.__extends||(r=function(e,t){return(r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var i in t)t.hasOwnProperty(i)&&(e[i]=t[i])})(e,t)},function(e,t){function i(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(i.prototype=t.prototype,new i)}),o=this&&this.__assign||function(){return(o=Object.assign||function(e){for(var t,i=1,r=arguments.length;i<r;i++)for(var n in t=arguments[i])Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n]);return e}).apply(this,arguments)};Object.defineProperty(t,"__esModule",{value:!0});var a=i(7),s=i(1),M=i(0),u=i(5),c=i(4),l=i(2),N=function(e){function t(t,i){void 0===i&&(i={});var r=this,n=function(e){var t={expires:600,extraContactHeaderParams:[],instanceId:void 0,params:{},regId:void 0,registrar:void 0},i={mandatory:{},optional:{expires:function(e){if(l.Utils.isDecimal(e)){var t=Number(e);if(t>=0)return t}},extraContactHeaderParams:function(e){if(e instanceof Array)return e.filter(function(e){return"string"==typeof e})},instanceId:function(e){if("string"==typeof e)return/^uuid:/i.test(e)&&(e=e.substr(5)),-1===c.Grammar.parse(e,"uuid")?void 0:e},params:function(e){if("object"==typeof e)return e},regId:function(e){if(l.Utils.isDecimal(e)){var t=Number(e);if(t>=0)return t}},registrar:function(e){if("string"==typeof e){/^sip:/i.test(e)||(e=s.C.SIP+":"+e);var t=c.Grammar.URIParse(e);return t?t.user?void 0:t:void 0}}}};for(var r in i.mandatory){if(!e.hasOwnProperty(r))throw new u.Exceptions.ConfigurationError(r);var n=e[r];if(void 0===(o=i.mandatory[r](n)))throw new u.Exceptions.ConfigurationError(r,n);t[r]=o}for(var r in i.optional)if(e.hasOwnProperty(r)){var o;if((n=e[r])instanceof Array&&0===n.length)continue;if(null===n||""===n||void 0===n||"number"==typeof n&&isNaN(n))continue;if(void 0===(o=i.optional[r](n)))throw new u.Exceptions.ConfigurationError(r,n);t[r]=o}return t}(i);if(n.regId&&!n.instanceId?n.instanceId=l.Utils.newUUID():!n.regId&&n.instanceId&&(n.regId=1),n.params.toUri=n.params.toUri||t.configuration.uri,n.params.toDisplayName=n.params.toDisplayName||t.configuration.displayName,n.params.callId=n.params.callId||l.Utils.createRandomToken(22),n.params.cseq=n.params.cseq||Math.floor(1e4*Math.random()),!n.registrar){var o={};"object"==typeof t.configuration.uri?(o=t.configuration.uri.clone()).user=void 0:o=t.configuration.uri,n.registrar=o}for(var a in(r=e.call(this,t,s.C.REGISTER,n.registrar,n)||this).type=M.TypeStrings.RegisterContext,r.options=n,r.logger=t.getLogger("sip.registercontext"),r.logger.log("configuration parameters for RegisterContext after validation:"),n)n.hasOwnProperty(a)&&r.logger.log("· "+a+": "+JSON.stringify(n[a]));return r.expires=n.expires,r.cseq=n.params.cseq,r.contact=t.contact.toString(),r.registered=!1,t.on("transportCreated",function(e){e.on("disconnected",function(){return r.onTransportDisconnected()})}),r}return n(t,e),t.prototype.register=function(e){var t=this;void 0===e&&(e={}),this.options=o({},this.options,e);var i=(this.options.extraHeaders||[]).slice();i.push("Contact: "+this.generateContactHeader(this.expires)),i.push("Allow: "+["ACK","CANCEL","INVITE","MESSAGE","BYE","OPTIONS","INFO","NOTIFY","REFER"].toString()),this.closeHeaders=this.options.closeWithHeaders?(this.options.extraHeaders||[]).slice():[],this.receiveResponse=function(e){if(e.cseq===t.cseq){void 0!==t.registrationTimer&&(clearTimeout(t.registrationTimer),t.registrationTimer=void 0);var i=(e.statusCode||0).toString();switch(!0){case/^1[0-9]{2}$/.test(i):t.emit("progress",e);break;case/^2[0-9]{2}$/.test(i):t.emit("accepted",e);var r=void 0;e.hasHeader("expires")&&(r=Number(e.getHeader("expires"))),void 0!==t.registrationExpiredTimer&&(clearTimeout(t.registrationExpiredTimer),t.registrationExpiredTimer=void 0);var n=e.getHeaders("contact").length;if(!n){t.logger.warn("no Contact header in response to REGISTER, response ignored");break}for(var o=void 0;n--;){if((o=e.parseHeader("contact",n)).uri.user===t.ua.contact.uri.user){r=o.getParam("expires");break}o=void 0}if(!o){t.logger.warn("no Contact header pointing to us, response ignored");break}void 0===r&&(r=t.expires),t.registrationTimer=setTimeout(function(){t.registrationTimer=void 0,t.register(t.options)},1e3*r-3e3),t.registrationExpiredTimer=setTimeout(function(){t.logger.warn("registration expired"),t.registered&&t.unregistered(void 0,s.C.causes.EXPIRES)},1e3*r),o.hasParam("temp-gruu")&&(t.ua.contact.temp_gruu=c.Grammar.URIParse(o.getParam("temp-gruu").replace(/"/g,""))),o.hasParam("pub-gruu")&&(t.ua.contact.pub_gruu=c.Grammar.URIParse(o.getParam("pub-gruu").replace(/"/g,""))),t.registered=!0,t.emit("registered",e||void 0);break;case/^423$/.test(i):e.hasHeader("min-expires")?(t.expires=Number(e.getHeader("min-expires")),t.register(t.options)):(t.logger.warn("423 response received for REGISTER without Min-Expires"),t.registrationFailure(e,s.C.causes.SIP_FAILURE_CODE));break;default:t.registrationFailure(e,l.Utils.sipErrorCause(e.statusCode||0))}}},this.onRequestTimeout=function(){t.registrationFailure(void 0,s.C.causes.REQUEST_TIMEOUT)},this.onTransportError=function(){t.registrationFailure(void 0,s.C.causes.CONNECTION_ERROR)},this.cseq++,this.request&&(this.request.cseq=this.cseq,this.request.setHeader("cseq",this.cseq+" REGISTER"),this.request.extraHeaders=i),this.send()},t.prototype.close=function(){var e={all:!1,extraHeaders:this.closeHeaders};this.registeredBefore=this.registered,this.registered&&this.unregister(e)},t.prototype.unregister=function(e){var t=this;void 0===e&&(e={}),this.registered||e.all||this.logger.warn("Already unregistered, but sending an unregister anyways.");var i=(e.extraHeaders||[]).slice();this.registered=!1,void 0!==this.registrationTimer&&(clearTimeout(this.registrationTimer),this.registrationTimer=void 0),e.all?(i.push("Contact: *"),i.push("Expires: 0")):i.push("Contact: "+this.generateContactHeader(0)),this.receiveResponse=function(e){var i=e&&e.statusCode?e.statusCode.toString():"";switch(!0){case/^1[0-9]{2}$/.test(i):t.emit("progress",e);break;case/^2[0-9]{2}$/.test(i):t.emit("accepted",e),void 0!==t.registrationExpiredTimer&&(clearTimeout(t.registrationExpiredTimer),t.registrationExpiredTimer=void 0),t.unregistered(e);break;default:t.unregistered(e,l.Utils.sipErrorCause(e.statusCode||0))}},this.onRequestTimeout=function(){},this.cseq++,this.request&&(this.request.cseq=this.cseq,this.request.setHeader("cseq",this.cseq+" REGISTER"),this.request.extraHeaders=i),this.send()},t.prototype.unregistered=function(e,t){this.registered=!1,this.emit("unregistered",e||void 0,t||void 0)},t.prototype.registrationFailure=function(e,t){this.emit("failed",e||void 0,t||void 0)},t.prototype.onTransportDisconnected=function(){this.registeredBefore=this.registered,void 0!==this.registrationTimer&&(clearTimeout(this.registrationTimer),this.registrationTimer=void 0),void 0!==this.registrationExpiredTimer&&(clearTimeout(this.registrationExpiredTimer),this.registrationExpiredTimer=void 0),this.registered&&this.unregistered(void 0,s.C.causes.CONNECTION_ERROR)},t.prototype.generateContactHeader=function(e){void 0===e&&(e=0);var t=this.contact;return this.options.regId&&this.options.instanceId&&(t+=";reg-id="+this.options.regId,t+=';+sip.instance="<urn:uuid:'+this.options.instanceId+'>"'),this.options.extraContactHeaderParams&&this.options.extraContactHeaderParams.forEach(function(e){t+=";"+e}),t+=";expires="+e},t}(a.ClientContext);t.RegisterContext=N},function(e,t,i){Object.defineProperty(t,"__esModule",{value:!0});var r=i(1),n=i(0),o=i(2);!function(e){function t(e,t,i){for(var r=o.Utils.buildStatusLine(e),n=0,a=t.getHeaders("via");n<a.length;n++)r+="Via: "+a[n]+"\r\n";var s=t.getHeader("To")||"";t.toTag||(s+=";tag="+o.Utils.newTag()),r+="To: "+s+"\r\n",r+="From: "+t.getHeader("From")+"\r\n",r+="Call-ID: "+t.callId+"\r\n",r+="CSeq: "+t.cseq+" "+t.method+"\r\n",r+="\r\n",i.send(r)}function i(e,i,r){return!(!e.ruri||"sip"!==e.ruri.scheme)||(t(416,e,r),!1)}function a(e,i,r){return!(!e.toTag&&e.callId.substr(0,5)===i.configuration.sipjsId&&(t(482,e,r),1))}function s(e,i,r){var n=o.Utils.str_utf8_length(e.body),a=e.getHeader("content-length");return!(a&&n<Number(a)&&(t(400,e,r),1))}function M(e,i,n){var o=e.fromTag,a=e.callId,s=e.cseq;if(!e.toTag)if(e.method===r.C.INVITE){if(i.transactions.ist[e.viaBranch])return!0;for(var M in i.transactions.ist)if(i.transactions.ist.hasOwnProperty(M)&&(u=i.transactions.ist[M]).request.fromTag===o&&u.request.callId===a&&u.request.cseq===s)return t(482,e,n),!1}else{if(i.transactions.nist[e.viaBranch])return!0;for(var M in i.transactions.nist){var u;if(i.transactions.nist.hasOwnProperty(M)&&(u=i.transactions.nist[M]).request.fromTag===o&&u.request.callId===a&&u.request.cseq===s)return t(482,e,n),!1}}return!0}function u(e,t){return!(e.getHeaders("via").length>1&&(t.getLogger("sip.sanitycheck").warn("More than one Via header field present in the response. Dropping the response"),1))}function c(e,t){return e.via.host===t.configuration.viaHost&&void 0===e.via.port||(t.getLogger("sip.sanitycheck").warn("Via sent-by in the response does not match UA Via host value. Dropping the response"),!1)}function l(e,t){var i=o.Utils.str_utf8_length(e.body),r=e.getHeader("content-length");return!(r&&i<Number(r)&&(t.getLogger("sip.sanitycheck").warn("Message body length is lower than the value in Content-Length header field. Dropping the response"),1))}function N(e,t){for(var i=0,r=["from","to","call_id","cseq","via"];i<r.length;i++){var n=r[i];if(!e.hasHeader(n))return t.getLogger("sip.sanitycheck").warn("Missing mandatory header field : "+n+". Dropping the response"),!1}return!0}e.reply=t,e.rfc3261_8_2_2_1=i,e.rfc3261_16_3_4=a,e.rfc3261_18_3_request=s,e.rfc3261_8_2_2_2=M,e.rfc3261_8_1_3_3=u,e.rfc3261_18_1_2=c,e.rfc3261_18_3_response=l,e.minimumHeaders=N,e.sanityCheck=function(e,t,r){for(var o=[i,a,s,M],g=[u,c,l],d=0,T=[N];d<T.length;d++)if(!(0,T[d])(e,t,r))return!1;if(e.type===n.TypeStrings.IncomingRequest){for(var j=0,y=o;j<y.length;j++)if(!(0,y[j])(e,t,r))return!1}else if(e.type===n.TypeStrings.IncomingResponse)for(var D=0,I=g;D<I.length;D++)if(!(0,I[D])(e,t,r))return!1;return!0}}(t.SanityCheck||(t.SanityCheck={}))},function(e,t,i){var r,n=this&&this.__extends||(r=function(e,t){return(r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var i in t)t.hasOwnProperty(i)&&(e[i]=t[i])})(e,t)},function(e,t){function i(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(i.prototype=t.prototype,new i)});Object.defineProperty(t,"__esModule",{value:!0});var o=i(3),a=i(7),s=i(1),M=i(13),u=i(0),c=i(5),l=i(4),N=i(8),g=i(14),d=i(34),T=i(6),j=i(11),y=i(2),D=function(e){function t(i){var r=e.call(this)||this;if(r.data={},r.type=u.TypeStrings.Session,!i)throw new c.Exceptions.SessionDescriptionHandlerError("A session description handler is required for the session to function");return r.status=t.C.STATUS_NULL,r.dialog=void 0,r.pendingReinvite=!1,r.earlyDialogs={},r.sessionDescriptionHandlerFactory=i,r.hasOffer=!1,r.hasAnswer=!1,r.timers={ackTimer:void 0,expiresTimer:void 0,invite2xxTimer:void 0,userNoAnswerTimer:void 0,rel1xxTimer:void 0,prackTimer:void 0},r.startTime=void 0,r.endTime=void 0,r.tones=void 0,r.localHold=!1,r.earlySdp=void 0,r.rel100=s.C.supported.UNSUPPORTED,r.originalReceiveRequest=r.receiveRequest,r}return n(t,e),t.prototype.dtmf=function(e,t){var i=this;if(void 0===t&&(t={}),this.status!==u.SessionStatus.STATUS_CONFIRMED&&this.status!==u.SessionStatus.STATUS_WAITING_FOR_ACK)throw new c.Exceptions.InvalidStateError(this.status);if(!e||!e.toString().match(/^[0-9A-D#*,]+$/i))throw new TypeError("Invalid tones: "+e);var r=function(){if(i.status!==u.SessionStatus.STATUS_TERMINATED&&i.tones&&0!==i.tones.length){var e,n=i.tones.shift();","===n.tone?e=2e3:(n.on("failed",function(){i.tones=void 0}),n.send(t),e=n.duration+n.interToneGap),setTimeout(r,e)}else i.tones=void 0};e=e.toString();var n=this.ua.configuration.dtmfType;if(this.sessionDescriptionHandler&&n===s.C.dtmfType.RTP&&(this.sessionDescriptionHandler.sendDtmf(e,t)||(this.logger.warn("Attempt to use dtmfType 'RTP' has failed, falling back to INFO packet method"),n=s.C.dtmfType.INFO)),n===s.C.dtmfType.INFO){for(var o=[],a=e.split("");a.length>0;)o.push(new d.DTMF(this,a.shift(),t));if(this.tones)return this.tones=this.tones.concat(o),this;this.tones=o,r()}return this},t.prototype.bye=function(e){if(void 0===e&&(e={}),this.status===u.SessionStatus.STATUS_TERMINATED)return this.logger.error("Error: Attempted to send BYE in a terminated session."),this;this.logger.log("terminating Session");var t=e.statusCode;if(t&&(t<200||t>=700))throw new TypeError("Invalid statusCode: "+t);return e.receiveResponse=function(){},this.sendRequest(s.C.BYE,e).terminated()},t.prototype.refer=function(e,t){if(void 0===t&&(t={}),this.status!==u.SessionStatus.STATUS_CONFIRMED)throw new c.Exceptions.InvalidStateError(this.status);return this.referContext=new L(this.ua,this,e,t),this.emit("referRequested",this.referContext),this.referContext.refer(t),this.referContext},t.prototype.sendRequest=function(e,t){var i=this;if(void 0===t&&(t={}),t=t||{},!this.dialog)throw new Error("sending request without a dialog");var r=new T.OutgoingRequest(e,this.dialog.remoteTarget,this.ua,{cseq:t.cseq||(this.dialog.localSeqnum+=1),callId:this.dialog.id.callId,fromUri:this.dialog.localUri,fromTag:this.dialog.id.localTag,ToUri:this.dialog.remoteUri,toTag:this.dialog.id.remoteTag,routeSet:this.dialog.routeSet,statusCode:t.statusCode,reasonPhrase:t.reasonPhrase},t.extraHeaders||[],t.body);return new N.RequestSender({request:r,onRequestTimeout:function(){return i.onRequestTimeout()},onTransportError:function(){return i.onTransportError()},receiveResponse:function(e){return(t.receiveResponse||i.receiveNonInviteResponse.bind(i))(e)}},this.ua).send(),this.emit(e.toLowerCase(),r),this},t.prototype.close=function(){if(this.status===u.SessionStatus.STATUS_TERMINATED)return this;for(var e in this.logger.log("closing INVITE session "+this.id),this.sessionDescriptionHandler&&this.sessionDescriptionHandler.close(),this.timers)this.timers[e]&&clearTimeout(this.timers[e]);for(var t in this.dialog&&(this.dialog.terminate(),delete this.dialog),this.earlyDialogs)this.earlyDialogs.hasOwnProperty(t)&&(this.earlyDialogs[t].terminate(),delete this.earlyDialogs[t]);return this.status=u.SessionStatus.STATUS_TERMINATED,this.ua.transport&&this.ua.transport.removeListener("transportError",this.errorListener),delete this.ua.sessions[this.id],this},t.prototype.createDialog=function(e,t,i){void 0===i&&(i=!1);var r,n=e["UAS"===t?"toTag":"fromTag"],o=e["UAS"===t?"fromTag":"toTag"],a=e.callId+n+o;if(i)return!!this.earlyDialogs[a]||((r=new M.Dialog(this,e,t,M.Dialog.C.STATUS_EARLY)).error?(this.logger.error(r.error),this.failed(e,s.C.causes.INTERNAL_ERROR),!1):(this.earlyDialogs[a]=r,!0));if(r=this.earlyDialogs[a]){for(var u in r.update(e,t),this.dialog=r,delete this.earlyDialogs[a],this.earlyDialogs)this.earlyDialogs.hasOwnProperty(u)&&(this.earlyDialogs[u].terminate(),delete this.earlyDialogs[u]);return!0}var c=new M.Dialog(this,e,t);return c.error?(this.logger.error(c.error),this.failed(e,s.C.causes.INTERNAL_ERROR),!1):(this.toTag=e.toTag,this.dialog=c,!0)},t.prototype.hold=function(e,t){if(void 0===e&&(e={}),void 0===t&&(t=[]),this.status!==u.SessionStatus.STATUS_WAITING_FOR_ACK&&this.status!==u.SessionStatus.STATUS_CONFIRMED)throw new c.Exceptions.InvalidStateError(this.status);this.localHold?this.logger.log("Session is already on hold, cannot put it on hold again"):(e.modifiers=t,this.sessionDescriptionHandler&&e.modifiers.push(this.sessionDescriptionHandler.holdModifier),this.localHold=!0,this.sendReinvite(e))},t.prototype.unhold=function(e,t){if(void 0===e&&(e={}),void 0===t&&(t=[]),this.status!==u.SessionStatus.STATUS_WAITING_FOR_ACK&&this.status!==u.SessionStatus.STATUS_CONFIRMED)throw new c.Exceptions.InvalidStateError(this.status);this.localHold?(e.modifiers=t,this.localHold=!1,this.sendReinvite(e)):this.logger.log("Session is not on hold, cannot unhold it")},t.prototype.reinvite=function(e,t){return void 0===e&&(e={}),void 0===t&&(t=[]),e.modifiers=t,this.sendReinvite(e)},t.prototype.receiveRequest=function(e){switch(e.method){case s.C.BYE:e.reply(200),this.status===u.SessionStatus.STATUS_CONFIRMED&&(this.emit("bye",e),this.terminated(e,s.C.BYE));break;case s.C.INVITE:this.status===u.SessionStatus.STATUS_CONFIRMED&&(this.logger.log("re-INVITE received"),this.receiveReinvite(e));break;case s.C.INFO:if(this.status===u.SessionStatus.STATUS_CONFIRMED||this.status===u.SessionStatus.STATUS_WAITING_FOR_ACK){if(this.onInfo)return this.onInfo(e);var t=e.getHeader("content-type");if(t)if(t.match(/^application\/dtmf-relay/i)){if(e.body){var i=e.body.split("\r\n",2);if(2===i.length){var r=void 0,n=void 0,o=/^(Signal\s*?=\s*?)([0-9A-D#*]{1})(\s)?.*/;o.test(i[0])&&(r=i[0].replace(o,"$2"));var a=/^(Duration\s?=\s?)([0-9]{1,4})(\s)?.*/;a.test(i[1])&&(n=parseInt(i[1].replace(a,"$2"),10)),r&&n&&new d.DTMF(this,r,{duration:n}).init_incoming(e)}}}else e.reply(415,void 0,["Accept: application/dtmf-relay"])}break;case s.C.REFER:if(this.status===u.SessionStatus.STATUS_CONFIRMED)if(this.logger.log("REFER received"),this.referContext=new z(this.ua,e),this.listeners("referRequested").length)this.emit("referRequested",this.referContext);else{this.logger.log("No referRequested listeners, automatically accepting and following the refer");var M={followRefer:!0};this.passedOptions&&(M.inviteOptions=this.passedOptions),this.referContext.accept(M,this.modifiers)}break;case s.C.NOTIFY:if(this.referContext&&this.referContext.type===u.TypeStrings.ReferClientContext&&e.hasHeader("event")&&/^refer(;.*)?$/.test(e.getHeader("event")))return void this.referContext.receiveNotify(e);e.reply(200,"OK"),this.emit("notify",e)}},t.prototype.terminate=function(e){return this},t.prototype.onTransportError=function(){this.status!==u.SessionStatus.STATUS_CONFIRMED&&this.status!==u.SessionStatus.STATUS_TERMINATED&&this.failed(void 0,s.C.causes.CONNECTION_ERROR)},t.prototype.onRequestTimeout=function(){this.status===u.SessionStatus.STATUS_CONFIRMED?this.terminated(void 0,s.C.causes.REQUEST_TIMEOUT):this.status!==u.SessionStatus.STATUS_TERMINATED&&(this.failed(void 0,s.C.causes.REQUEST_TIMEOUT),this.terminated(void 0,s.C.causes.REQUEST_TIMEOUT))},t.prototype.onDialogError=function(e){this.status===u.SessionStatus.STATUS_CONFIRMED?this.terminated(e,s.C.causes.DIALOG_ERROR):this.status!==u.SessionStatus.STATUS_TERMINATED&&(this.failed(e,s.C.causes.DIALOG_ERROR),this.terminated(e,s.C.causes.DIALOG_ERROR))},t.prototype.receiveReinvite=function(e){var t,i=this;if(this.emit("reinvite",this,e),e.hasHeader("P-Asserted-Identity")&&(this.assertedIdentity=l.Grammar.nameAddrHeaderParse(e.getHeader("P-Asserted-Identity"))),this.sessionDescriptionHandler){if("0"!==e.getHeader("Content-Length")||e.getHeader("Content-Type")){if(!this.sessionDescriptionHandler.hasDescription(e.getHeader("Content-Type")||""))return e.reply(415),void this.emit("reinviteFailed",this);t=this.sessionDescriptionHandler.setDescription(e.body,this.sessionDescriptionHandlerOptions,this.modifiers).then(this.sessionDescriptionHandler.getDescription.bind(this.sessionDescriptionHandler,this.sessionDescriptionHandlerOptions,this.modifiers))}else t=this.sessionDescriptionHandler.getDescription(this.sessionDescriptionHandlerOptions,this.modifiers);this.receiveRequest=function(e){e.method===s.C.ACK&&i.status===u.SessionStatus.STATUS_WAITING_FOR_ACK?i.sessionDescriptionHandler&&i.sessionDescriptionHandler.hasDescription(e.getHeader("Content-Type")||"")?(i.hasAnswer=!0,i.sessionDescriptionHandler.setDescription(e.body,i.sessionDescriptionHandlerOptions,i.modifiers).then(function(){clearTimeout(i.timers.ackTimer),clearTimeout(i.timers.invite2xxTimer),i.status=u.SessionStatus.STATUS_CONFIRMED,i.emit("confirmed",e)})):(clearTimeout(i.timers.ackTimer),clearTimeout(i.timers.invite2xxTimer),i.status=u.SessionStatus.STATUS_CONFIRMED,i.emit("confirmed",e)):i.originalReceiveRequest(e)},t.catch(function(t){var r;throw t.type===u.TypeStrings.SessionDescriptionHandlerError?r=500:t.type===u.TypeStrings.RenegotiationError?(i.emit("renegotiationError",t),i.logger.warn(t.toString()),r=488):(i.logger.error(t),r=488),e.reply(r),i.emit("reinviteFailed",i),t}).then(function(t){var r=["Contact: "+i.contact];e.reply(200,void 0,r,t,function(){i.status=u.SessionStatus.STATUS_WAITING_FOR_ACK,i.setACKTimer(),i.emit("reinviteAccepted",i)})})}else this.logger.warn("No SessionDescriptionHandler to reinvite")},t.prototype.sendReinvite=function(e){var t=this;if(void 0===e&&(e={}),this.pendingReinvite)this.logger.warn("Reinvite in progress. Please wait until complete, then try again.");else if(this.sessionDescriptionHandler){this.pendingReinvite=!0,e.modifiers=e.modifiers||[];var i=(e.extraHeaders||[]).slice();i.push("Contact: "+this.contact),i.push("Allow: "+["ACK","CANCEL","INVITE","MESSAGE","BYE","OPTIONS","INFO","NOTIFY","REFER"].toString()),this.sessionDescriptionHandler.getDescription(e.sessionDescriptionHandlerOptions,e.modifiers).then(function(e){t.sendRequest(s.C.INVITE,{extraHeaders:i,body:e,receiveResponse:function(e){return t.receiveReinviteResponse(e)}})}).catch(function(e){if(e.type===u.TypeStrings.RenegotiationError)throw t.pendingReinvite=!1,t.emit("renegotiationError",e),t.logger.warn("Renegotiation Error"),t.logger.warn(e.toString()),e;throw t.logger.error("sessionDescriptionHandler error"),t.logger.error(e),e})}else this.logger.warn("No SessionDescriptionHandler, can't reinvite..")},t.prototype.receiveReinviteResponse=function(e){var t=this;if(this.status!==u.SessionStatus.STATUS_TERMINATED)if(this.pendingReinvite){var i=e&&e.statusCode?e.statusCode.toString():"";switch(!0){case/^1[0-9]{2}$/.test(i):break;case/^2[0-9]{2}$/.test(i):if(this.status=u.SessionStatus.STATUS_CONFIRMED,this.emit("ack",e.transaction.sendACK()),this.pendingReinvite=!1,clearTimeout(this.timers.invite2xxTimer),!this.sessionDescriptionHandler||!this.sessionDescriptionHandler.hasDescription(e.getHeader("Content-Type")||"")){this.logger.error("2XX response received to re-invite but did not have a description"),this.emit("reinviteFailed",this),this.emit("renegotiationError",new c.Exceptions.RenegotiationError("2XX response received to re-invite but did not have a description"));break}this.sessionDescriptionHandler.setDescription(e.body,this.sessionDescriptionHandlerOptions,this.modifiers).catch(function(e){throw t.logger.error("Could not set the description in 2XX response"),t.logger.error(e),t.emit("reinviteFailed",t),t.emit("renegotiationError",e),t.sendRequest(s.C.BYE,{extraHeaders:["Reason: "+y.Utils.getReasonHeaderValue(488,"Not Acceptable Here")]}),t.terminated(void 0,s.C.causes.INCOMPATIBLE_SDP),e}).then(function(){t.emit("reinviteAccepted",t)});break;default:this.pendingReinvite=!1,this.logger.log("Received a non 1XX or 2XX response to a re-invite"),this.emit("reinviteFailed",this),this.emit("renegotiationError",new c.Exceptions.RenegotiationError("Invalid response to a re-invite"))}}else this.logger.error("Received reinvite response, but have no pending reinvite");else this.logger.error("Received reinvite response, but in STATUS_TERMINATED")},t.prototype.acceptAndTerminate=function(e,t,i){var r=[];return t&&r.push("Reason: "+y.Utils.getReasonHeaderValue(t,i)),(this.dialog||this.createDialog(e,"UAC"))&&(this.emit("ack",e.transaction.sendACK()),this.sendRequest(s.C.BYE,{extraHeaders:r})),this},t.prototype.setInvite2xxTimer=function(e,t){var i=this,r=j.Timers.T1,n=function(){if(i.status===u.SessionStatus.STATUS_WAITING_FOR_ACK){i.logger.log("no ACK received, attempting to retransmit OK");var o=["Contact: "+i.contact];e.reply(200,void 0,o,t),r=Math.min(2*r,j.Timers.T2),i.timers.invite2xxTimer=setTimeout(n,r)}};this.timers.invite2xxTimer=setTimeout(n,r)},t.prototype.setACKTimer=function(){var e=this;this.timers.ackTimer=setTimeout(function(){e.status===u.SessionStatus.STATUS_WAITING_FOR_ACK&&(e.logger.log("no ACK received for an extended period of time, terminating the call"),clearTimeout(e.timers.invite2xxTimer),e.sendRequest(s.C.BYE),e.terminated(void 0,s.C.causes.NO_ACK))},j.Timers.TIMER_H)},t.prototype.failed=function(e,t){return this.status===u.SessionStatus.STATUS_TERMINATED||this.emit("failed",e,t),this},t.prototype.rejected=function(e,t){return this.emit("rejected",e,t),this},t.prototype.canceled=function(){return this.sessionDescriptionHandler&&this.sessionDescriptionHandler.close(),this.emit("cancel"),this},t.prototype.accepted=function(e,t){return e instanceof String||(t=y.Utils.getReasonPhrase(e&&e.statusCode||0,t)),this.startTime=new Date,this.replacee&&(this.replacee.emit("replaced",this),this.replacee.terminate()),this.emit("accepted",e,t),this},t.prototype.terminated=function(e,t){return this.status===u.SessionStatus.STATUS_TERMINATED||(this.endTime=new Date,this.close(),this.emit("terminated",e,t)),this},t.prototype.connecting=function(e){return this.emit("connecting",{request:e}),this},t.prototype.receiveNonInviteResponse=function(e){},t.C=u.SessionStatus,t}(o.EventEmitter);t.Session=D;var I=function(e){function t(t,i){var r=this;if(!t.configuration.sessionDescriptionHandlerFactory)throw t.logger.warn("Can't build ISC without SDH Factory"),new Error("ISC Constructor Failed");r=e.call(this,t.configuration.sessionDescriptionHandlerFactory)||this,g.ServerContext.initializer(r,t,i),r.type=u.TypeStrings.InviteServerContext;var n=i.parseHeader("Content-Disposition");n&&"render"===n.type&&(r.renderbody=i.body,r.rendertype=i.getHeader("Content-Type")),r.status=u.SessionStatus.STATUS_INVITE_RECEIVED,r.fromTag=i.fromTag,r.id=i.callId+r.fromTag,r.request=i,r.contact=r.ua.contact.toString(),r.receiveNonInviteResponse=function(){},r.logger=t.getLogger("sip.inviteservercontext",r.id),r.ua.sessions[r.id]=r;var o=function(e,t){i.hasHeader(e)&&i.getHeader(e).toLowerCase().indexOf("100rel")>=0&&(r.rel100=t)};if(o("require",s.C.supported.REQUIRED),o("supported",s.C.supported.SUPPORTED),i.toTag=y.Utils.newTag(),r.createDialog(i,"UAS",!0)){var a={extraHeaders:["Contact: "+r.contact]};if(r.rel100!==s.C.supported.REQUIRED&&r.progress(a),r.status=u.SessionStatus.STATUS_WAITING_FOR_ANSWER,r.timers.userNoAnswerTimer=setTimeout(function(){i.reply(408),r.failed(i,s.C.causes.NO_ANSWER),r.terminated(i,s.C.causes.NO_ANSWER)},r.ua.configuration.noAnswerTimeout||60),i.hasHeader("expires")){var M=1e3*Number(i.getHeader("expires")||0);r.timers.expiresTimer=setTimeout(function(){r.status===u.SessionStatus.STATUS_WAITING_FOR_ANSWER&&(i.reply(487),r.failed(i,s.C.causes.EXPIRES),r.terminated(i,s.C.causes.EXPIRES))},M)}return r.errorListener=r.onTransportError.bind(r),t.transport&&t.transport.on("transportError",r.errorListener),r}i.reply(500,"Missing Contact header field")}return n(t,e),t.prototype.reject=function(e){var t=this;if(void 0===e&&(e={}),this.status===u.SessionStatus.STATUS_TERMINATED)throw new c.Exceptions.InvalidStateError(this.status);this.logger.log("rejecting RTCSession");var i=e.statusCode||480,r=y.Utils.getReasonPhrase(i,e.reasonPhrase),n=e.extraHeaders||[];if(i<300||i>699)throw new TypeError("Invalid statusCode: "+i);var o=this.request.reply(i,r,n,e.body);return["rejected","failed"].forEach(function(e){t.emit(e,o,r)}),this.terminated()},t.prototype.reply=function(e){return this},t.prototype.terminate=function(e){var t=this;void 0===e&&(e={});var i=(e.extraHeaders||[]).slice();if(this.status===u.SessionStatus.STATUS_WAITING_FOR_ACK&&this.request.serverTransaction&&this.request.serverTransaction.state!==u.TransactionStatus.STATUS_TERMINATED){var r=this.dialog;this.receiveRequest=function(e){e.method===s.C.ACK&&(t.sendRequest(s.C.BYE,{extraHeaders:i}),t.dialog&&t.dialog.terminate())},this.request.serverTransaction.on("stateChanged",function(){t.request.serverTransaction&&t.request.serverTransaction.state===u.TransactionStatus.STATUS_TERMINATED&&t.dialog&&(t.bye(),t.dialog.terminate())}),this.emit("bye",this.request),this.terminated(),this.dialog=r,this.dialog&&(this.ua.dialogs[this.dialog.id.toString()]=this.dialog)}else this.status===u.SessionStatus.STATUS_CONFIRMED?this.bye(e):this.reject(e);return this},t.prototype.progress=function(e){var t=this;void 0===e&&(e={});var i=e.statusCode||180,r=(e.extraHeaders||[]).slice();if(i<100||i>199)throw new TypeError("Invalid statusCode: "+i);if(this.status===u.SessionStatus.STATUS_TERMINATED)return this;var n,o=function(){var i=e.statusCode||183;t.status=u.SessionStatus.STATUS_WAITING_FOR_PRACK,r.push("Contact: "+t.contact),r.push("Require: 100rel"),r.push("RSeq: "+Math.floor(1e4*Math.random())),t.sessionDescriptionHandler?t.sessionDescriptionHandler.getDescription(e.sessionDescriptionHandlerOptions,e.modifiers).then(function(n){if(t.status!==u.SessionStatus.STATUS_TERMINATED){t.earlySdp=n.body,t[t.hasOffer?"hasAnswer":"hasOffer"]=!0;var o=j.Timers.T1,a=function(){t.request.reply(i,void 0,r,n),o*=2,t.timers.rel1xxTimer=setTimeout(a,o)};t.timers.rel1xxTimer=setTimeout(a,o),t.timers.prackTimer=setTimeout(function(){t.status===u.SessionStatus.STATUS_WAITING_FOR_PRACK&&(t.logger.log("no PRACK received, rejecting the call"),clearTimeout(t.timers.rel1xxTimer),t.request.reply(504),t.terminated(void 0,s.C.causes.NO_PRACK))},64*j.Timers.T1);var M=t.request.reply(i,e.reasonPhrase,r,n);t.emit("progress",M,e.reasonPhrase)}},function(){t.request.reply(480),t.failed(void 0,s.C.causes.WEBRTC_ERROR),t.terminated(void 0,s.C.causes.WEBRTC_ERROR)}):t.logger.warn("No SessionDescriptionHandler, can't do 100rel")};return 100!==e.statusCode&&(this.rel100===s.C.supported.REQUIRED||this.rel100===s.C.supported.SUPPORTED&&e.rel100||this.rel100===s.C.supported.SUPPORTED&&this.ua.configuration.rel100===s.C.supported.REQUIRED)?(this.sessionDescriptionHandler=this.setupSessionDescriptionHandler(),this.emit("SessionDescriptionHandler-created",this.sessionDescriptionHandler),this.sessionDescriptionHandler.hasDescription(this.request.getHeader("Content-Type")||"")?(this.hasOffer=!0,this.sessionDescriptionHandler.setDescription(this.request.body,e.sessionDescriptionHandlerOptions,e.modifiers).then(o).catch(function(e){throw t.logger.warn("invalid description"),t.logger.warn(e),t.failed(void 0,s.C.causes.WEBRTC_ERROR),t.terminated(void 0,s.C.causes.WEBRTC_ERROR),e})):o()):(n=t.request.reply(i,e.reasonPhrase,r,e.body),t.emit("progress",n,e.reasonPhrase)),this},t.prototype.accept=function(e){var t=this;void 0===e&&(e={}),this.onInfo=e.onInfo;var i=(e.extraHeaders||[]).slice(),r=function(e){i.push("Contact: "+t.contact),i.push("Allow: "+["ACK","CANCEL","INVITE","MESSAGE","BYE","OPTIONS","INFO","NOTIFY","REFER"].toString()),t.hasOffer?t.hasAnswer=!0:t.hasOffer=!0;var r=t.request.reply(200,void 0,i,e,function(){t.status=u.SessionStatus.STATUS_WAITING_FOR_ACK,t.setInvite2xxTimer(t.request,e),t.setACKTimer()},function(){t.failed(void 0,s.C.causes.CONNECTION_ERROR),t.terminated(void 0,s.C.causes.CONNECTION_ERROR)});t.status!==u.SessionStatus.STATUS_TERMINATED&&t.accepted(r,y.Utils.getReasonPhrase(200))},n=function(e){throw e.type===u.TypeStrings.SessionDescriptionHandlerError&&(t.logger.log(e.message),e.error&&t.logger.log(e.error)),t.request.reply(480),t.failed(void 0,s.C.causes.WEBRTC_ERROR),t.terminated(void 0,s.C.causes.WEBRTC_ERROR),e};if(this.status===u.SessionStatus.STATUS_WAITING_FOR_PRACK)return this.status=u.SessionStatus.STATUS_ANSWERED_WAITING_FOR_PRACK,this;if(this.status===u.SessionStatus.STATUS_WAITING_FOR_ANSWER)this.status=u.SessionStatus.STATUS_ANSWERED;else if(this.status!==u.SessionStatus.STATUS_EARLY_MEDIA)throw new c.Exceptions.InvalidStateError(this.status);if(!this.createDialog(this.request,"UAS"))return this.request.reply(500,"Missing Contact header field"),this;if(clearTimeout(this.timers.userNoAnswerTimer),this.status===u.SessionStatus.STATUS_EARLY_MEDIA)r({});else if(this.sessionDescriptionHandler=this.setupSessionDescriptionHandler(),this.emit("SessionDescriptionHandler-created",this.sessionDescriptionHandler),"0"!==this.request.getHeader("Content-Length")||this.request.getHeader("Content-Type")){if(!this.sessionDescriptionHandler.hasDescription(this.request.getHeader("Content-Type")||""))return this.request.reply(415),this;this.hasOffer=!0,this.sessionDescriptionHandler.setDescription(this.request.body,e.sessionDescriptionHandlerOptions,e.modifiers).then(function(){if(!t.sessionDescriptionHandler)throw new Error("No SDH");return t.sessionDescriptionHandler.getDescription(e.sessionDescriptionHandlerOptions,e.modifiers)}).catch(n).then(r)}else this.sessionDescriptionHandler.getDescription(e.sessionDescriptionHandlerOptions,e.modifiers).catch(n).then(r);return this},t.prototype.receiveRequest=function(e){var t=this,i=function(){clearTimeout(t.timers.ackTimer),clearTimeout(t.timers.invite2xxTimer),t.status=u.SessionStatus.STATUS_CONFIRMED;var i=e.getHeader("Content-Disposition");i&&"render"===i.type&&(t.renderbody=e.body,t.rendertype=e.getHeader("Content-Type")),t.emit("confirmed",e)};switch(e.method){case s.C.CANCEL:this.status!==u.SessionStatus.STATUS_WAITING_FOR_ANSWER&&this.status!==u.SessionStatus.STATUS_WAITING_FOR_PRACK&&this.status!==u.SessionStatus.STATUS_ANSWERED_WAITING_FOR_PRACK&&this.status!==u.SessionStatus.STATUS_EARLY_MEDIA&&this.status!==u.SessionStatus.STATUS_ANSWERED||(this.status=u.SessionStatus.STATUS_CANCELED,this.request.reply(487),this.canceled(),this.rejected(e,s.C.causes.CANCELED),this.failed(e,s.C.causes.CANCELED),this.terminated(e,s.C.causes.CANCELED));break;case s.C.ACK:this.status===u.SessionStatus.STATUS_WAITING_FOR_ACK&&(this.status=u.SessionStatus.STATUS_CONFIRMED,this.sessionDescriptionHandler&&this.sessionDescriptionHandler.hasDescription(e.getHeader("Content-Type")||"")?(this.hasAnswer=!0,this.sessionDescriptionHandler.setDescription(e.body,this.sessionDescriptionHandlerOptions,this.modifiers).catch(function(i){throw t.logger.warn(i),t.terminate({statusCode:"488",reasonPhrase:"Bad Media Description"}),t.failed(e,s.C.causes.BAD_MEDIA_DESCRIPTION),t.terminated(e,s.C.causes.BAD_MEDIA_DESCRIPTION),i}).then(function(){return i()})):i());break;case s.C.PRACK:this.status===u.SessionStatus.STATUS_WAITING_FOR_PRACK||this.status===u.SessionStatus.STATUS_ANSWERED_WAITING_FOR_PRACK?this.hasAnswer?(clearTimeout(this.timers.rel1xxTimer),clearTimeout(this.timers.prackTimer),e.reply(200),this.status===u.SessionStatus.STATUS_ANSWERED_WAITING_FOR_PRACK&&(this.status=u.SessionStatus.STATUS_EARLY_MEDIA,this.accept()),this.status=u.SessionStatus.STATUS_EARLY_MEDIA):(this.sessionDescriptionHandler=this.setupSessionDescriptionHandler(),this.emit("SessionDescriptionHandler-created",this.sessionDescriptionHandler),this.sessionDescriptionHandler.hasDescription(e.getHeader("Content-Type")||"")?(this.hasAnswer=!0,this.sessionDescriptionHandler.setDescription(e.body,this.sessionDescriptionHandlerOptions,this.modifiers).then(function(){clearTimeout(t.timers.rel1xxTimer),clearTimeout(t.timers.prackTimer),e.reply(200),t.status===u.SessionStatus.STATUS_ANSWERED_WAITING_FOR_PRACK&&(t.status=u.SessionStatus.STATUS_EARLY_MEDIA,t.accept()),t.status=u.SessionStatus.STATUS_EARLY_MEDIA},function(i){t.logger.warn(i),t.terminate({statusCode:"488",reasonPhrase:"Bad Media Description"}),t.failed(e,s.C.causes.BAD_MEDIA_DESCRIPTION),t.terminated(e,s.C.causes.BAD_MEDIA_DESCRIPTION)})):(this.terminate({statusCode:"488",reasonPhrase:"Bad Media Description"}),this.failed(e,s.C.causes.BAD_MEDIA_DESCRIPTION),this.terminated(e,s.C.causes.BAD_MEDIA_DESCRIPTION))):this.status===u.SessionStatus.STATUS_EARLY_MEDIA&&e.reply(200);break;default:D.prototype.receiveRequest.apply(this,[e])}},t.prototype.setupSessionDescriptionHandler=function(){return this.sessionDescriptionHandler?this.sessionDescriptionHandler:this.sessionDescriptionHandlerFactory(this,this.ua.configuration.sessionDescriptionHandlerFactoryOptions)},t}(D);t.InviteServerContext=I;var p=function(e){function t(t,i,r,n){void 0===r&&(r={}),void 0===n&&(n=[]);var o=this;if(!t.configuration.sessionDescriptionHandlerFactory)throw t.logger.warn("Can't build ISC without SDH Factory"),new Error("ICC Constructor Failed");r.params=r.params||{};var M=r.anonymous||!1,l=y.Utils.newTag();r.params.fromTag=l;var N=t.contact.toString({anonymous:M,outbound:M?!t.contact.temp_gruu:!t.contact.pub_gruu}),g=(r.extraHeaders||[]).slice();if(M&&t.configuration.uri&&(r.params.from_displayName="Anonymous",r.params.from_uri="sip:anonymous@anonymous.invalid",g.push("P-Preferred-Identity: "+t.configuration.uri.toString()),g.push("Privacy: id")),g.push("Contact: "+N),g.push("Allow: "+["ACK","CANCEL","INVITE","MESSAGE","BYE","OPTIONS","INFO","NOTIFY","REFER"].toString()),t.configuration.rel100===s.C.supported.REQUIRED&&g.push("Require: 100rel"),t.configuration.replaces===s.C.supported.REQUIRED&&g.push("Require: replaces"),r.extraHeaders=g,o=e.call(this,t.configuration.sessionDescriptionHandlerFactory)||this,a.ClientContext.initializer(o,t,s.C.INVITE,i,r),o.type=u.TypeStrings.InviteClientContext,o.passedOptions=r,o.sessionDescriptionHandlerOptions=r.sessionDescriptionHandlerOptions||{},o.modifiers=n,o.inviteWithoutSdp=r.inviteWithoutSdp||!1,o.anonymous=r.anonymous||!1,o.renderbody=r.renderbody||void 0,o.rendertype=r.rendertype||"text/plain",o.fromTag=l,o.contact=N,o.status!==u.SessionStatus.STATUS_NULL)throw new c.Exceptions.InvalidStateError(o.status);return o.isCanceled=!1,o.received100=!1,o.method=s.C.INVITE,o.logger=t.getLogger("sip.inviteclientcontext"),t.applicants[o.toString()]=o,o.id=o.request.callId+o.fromTag,o.onInfo=r.onInfo,o.errorListener=o.onTransportError.bind(o),t.transport&&t.transport.on("transportError",o.errorListener),o}return n(t,e),t.prototype.receiveNonInviteResponse=function(e){this.receiveInviteResponse(e)},t.prototype.receiveResponse=function(e){this.receiveInviteResponse(e)},t.prototype.send=function(){return new N.RequestSender(this,this.ua).send(),this},t.prototype.invite=function(){var e=this;return this.ua.sessions[this.id]=this,Promise.resolve().then(function(){e.inviteWithoutSdp?(e.request.body=e.renderbody,e.status=u.SessionStatus.STATUS_INVITE_SENT,e.send()):(e.sessionDescriptionHandler=e.sessionDescriptionHandlerFactory(e,e.ua.configuration.sessionDescriptionHandlerFactoryOptions||{}),e.emit("SessionDescriptionHandler-created",e.sessionDescriptionHandler),e.sessionDescriptionHandler.getDescription(e.sessionDescriptionHandlerOptions,e.modifiers).then(function(t){e.isCanceled||e.status===u.SessionStatus.STATUS_TERMINATED||(e.hasOffer=!0,e.request.body=t,e.status=u.SessionStatus.STATUS_INVITE_SENT,e.send())},function(t){t.type===u.TypeStrings.SessionDescriptionHandlerError&&(e.logger.log(t.message),t.error&&e.logger.log(t.error)),e.status!==u.SessionStatus.STATUS_TERMINATED&&(e.failed(void 0,s.C.causes.WEBRTC_ERROR),e.terminated(void 0,s.C.causes.WEBRTC_ERROR))}))}),this},t.prototype.receiveInviteResponse=function(e){var t=this;if(this.status!==u.SessionStatus.STATUS_TERMINATED&&e.method===s.C.INVITE){var i=e.callId+e.fromTag+e.toTag,r=[];if(this.dialog&&e.statusCode&&e.statusCode>=200&&e.statusCode<=299){if(i!==this.dialog.id.toString()){if(!this.createDialog(e,"UAC",!0))return;return this.emit("ack",e.transaction.sendACK({body:y.Utils.generateFakeSDP(e.body)})),this.earlyDialogs[i].sendRequest(this,s.C.BYE),void(this.status!==u.SessionStatus.STATUS_CONFIRMED&&(this.failed(e,s.C.causes.WEBRTC_ERROR),this.terminated(e,s.C.causes.WEBRTC_ERROR)))}if(this.status===u.SessionStatus.STATUS_CONFIRMED)return void this.emit("ack",e.transaction.sendACK());if(!this.hasAnswer)return}var n=e&&e.statusCode;if(this.dialog&&n&&n<200){var o=e.getHeader("rseq");if(o&&(-1!==this.dialog.pracked.indexOf(o)||Number(this.dialog.pracked[this.dialog.pracked.length-1])>=Number(o)&&this.dialog.pracked.length>0))return;if(!this.earlyDialogs[i]&&!this.createDialog(e,"UAC",!0))return;if(-1!==this.earlyDialogs[i].pracked.indexOf(e.getHeader("rseq"))||this.earlyDialogs[i].pracked[this.earlyDialogs[i].pracked.length-1]>=Number(o)&&this.earlyDialogs[i].pracked.length>0)return;return r.push("RAck: "+e.getHeader("rseq")+" "+e.getHeader("cseq")),this.earlyDialogs[i].pracked.push(e.getHeader("rseq")),void this.earlyDialogs[i].sendRequest(this,s.C.PRACK,{extraHeaders:r,body:y.Utils.generateFakeSDP(e.body)})}if(this.isCanceled){if(n&&n>=100&&n<200)this.request.cancel(this.cancelReason,r),this.canceled();else if(n&&n>=200&&n<299)this.acceptAndTerminate(e),this.emit("bye",this.request);else if(n&&n>=300){var a=s.C.REASON_PHRASE[e.statusCode||0]||s.C.causes.CANCELED;this.rejected(e,a),this.failed(e,a),this.terminated(e,a)}}else{var M=n?n.toString():"";switch(!0){case/^100$/.test(M):this.received100=!0,this.emit("progress",e);break;case/^1[0-9]{2}$/.test(M):if(!e.toTag){this.logger.warn("1xx response received without to tag");break}if(e.hasHeader("contact")&&!this.createDialog(e,"UAC",!0))break;if(this.status=u.SessionStatus.STATUS_1XX_RECEIVED,e.hasHeader("P-Asserted-Identity")&&(this.assertedIdentity=l.Grammar.nameAddrHeaderParse(e.getHeader("P-Asserted-Identity"))),e.hasHeader("require")&&-1!==e.getHeader("require").indexOf("100rel")){if(this.dialog||!this.earlyDialogs[i])break;var c=e.getHeader("rseq");if(-1!==this.earlyDialogs[i].pracked.indexOf(c)||this.earlyDialogs[i].pracked[this.earlyDialogs[i].pracked.length-1]>=Number(c)&&this.earlyDialogs[i].pracked.length>0)return;if(this.sessionDescriptionHandler=this.sessionDescriptionHandlerFactory(this,this.ua.configuration.sessionDescriptionHandlerFactoryOptions||{}),this.emit("SessionDescriptionHandler-created",this.sessionDescriptionHandler),this.sessionDescriptionHandler.hasDescription(e.getHeader("Content-Type")||""))if(this.hasOffer){if(!this.createDialog(e,"UAC"))break;this.hasAnswer=!0,void 0!==this.dialog&&c&&this.dialog.pracked.push(c),this.sessionDescriptionHandler.setDescription(e.body,this.sessionDescriptionHandlerOptions,this.modifiers).then(function(){r.push("RAck: "+e.getHeader("rseq")+" "+e.getHeader("cseq")),t.sendRequest(s.C.PRACK,{extraHeaders:r,receiveResponse:function(){}}),t.status=u.SessionStatus.STATUS_EARLY_MEDIA,t.emit("progress",e)},function(i){t.logger.warn(i),t.acceptAndTerminate(e,488,"Not Acceptable Here"),t.failed(e,s.C.causes.BAD_MEDIA_DESCRIPTION)})}else{var N=this.earlyDialogs[i];N.sessionDescriptionHandler=this.sessionDescriptionHandlerFactory(this,this.ua.configuration.sessionDescriptionHandlerFactoryOptions||{}),this.emit("SessionDescriptionHandler-created",N.sessionDescriptionHandler),c&&N.pracked.push(c),N.sessionDescriptionHandler&&N.sessionDescriptionHandler.setDescription(e.body,this.sessionDescriptionHandlerOptions,this.modifiers).then(function(){return N.sessionDescriptionHandler.getDescription(t.sessionDescriptionHandlerOptions,t.modifiers)}).then(function(i){r.push("RAck: "+c+" "+e.getHeader("cseq")),N.sendRequest(t,s.C.PRACK,{extraHeaders:r,body:i}),t.status=u.SessionStatus.STATUS_EARLY_MEDIA,t.emit("progress",e)}).catch(function(e){if(c&&e.type===u.TypeStrings.SessionDescriptionHandlerError){if(N.pracked.push(c),t.status===u.SessionStatus.STATUS_TERMINATED)return;t.failed(void 0,s.C.causes.WEBRTC_ERROR),t.terminated(void 0,s.C.causes.WEBRTC_ERROR)}else c&&N.pracked.splice(N.pracked.indexOf(c),1),t.logger.warn("invalid description"),t.logger.warn(e)})}else r.push("RAck: "+e.getHeader("rseq")+" "+e.getHeader("cseq")),this.earlyDialogs[i].pracked.push(e.getHeader("rseq")),this.earlyDialogs[i].sendRequest(this,s.C.PRACK,{extraHeaders:r}),this.emit("progress",e)}else this.emit("progress",e);break;case/^2[0-9]{2}$/.test(M):if(this.request.cseq+" "+this.request.method!==e.getHeader("cseq"))break;if(e.hasHeader("P-Asserted-Identity")&&(this.assertedIdentity=l.Grammar.nameAddrHeaderParse(e.getHeader("P-Asserted-Identity"))),this.status===u.SessionStatus.STATUS_EARLY_MEDIA&&this.dialog){this.status=u.SessionStatus.STATUS_CONFIRMED;var g={};this.renderbody&&(r.push("Content-Type: "+this.rendertype),g.extraHeaders=r,g.body=this.renderbody),this.emit("ack",e.transaction.sendACK(g)),this.accepted(e);break}if(this.dialog)break;if(this.hasOffer)if(this.hasAnswer)g={},this.renderbody&&(r.push("Content-Type: "+this.rendertype),g.extraHeaders=r,g.body=this.renderbody),this.emit("ack",e.transaction.sendACK(g));else{if(!this.sessionDescriptionHandler||!this.sessionDescriptionHandler.hasDescription(e.getHeader("Content-Type")||"")){this.acceptAndTerminate(e,400,"Missing session description"),this.failed(e,s.C.causes.BAD_MEDIA_DESCRIPTION);break}if(!this.createDialog(e,"UAC"))break;this.hasAnswer=!0,this.sessionDescriptionHandler.setDescription(e.body,this.sessionDescriptionHandlerOptions,this.modifiers).then(function(){var i={};t.status=u.SessionStatus.STATUS_CONFIRMED,t.renderbody&&(r.push("Content-Type: "+t.rendertype),i.extraHeaders=r,i.body=t.renderbody),t.emit("ack",e.transaction.sendACK(i)),t.accepted(e)},function(i){t.logger.warn(i),t.acceptAndTerminate(e,488,"Not Acceptable Here"),t.failed(e,s.C.causes.BAD_MEDIA_DESCRIPTION)})}else if(this.earlyDialogs[i]&&this.earlyDialogs[i].sessionDescriptionHandler){if(this.hasOffer=!0,this.hasAnswer=!0,this.sessionDescriptionHandler=this.earlyDialogs[i].sessionDescriptionHandler,!this.createDialog(e,"UAC"))break;this.status=u.SessionStatus.STATUS_CONFIRMED,this.emit("ack",e.transaction.sendACK()),this.accepted(e)}else{if(this.sessionDescriptionHandler=this.sessionDescriptionHandlerFactory(this,this.ua.configuration.sessionDescriptionHandlerFactoryOptions||{}),this.emit("SessionDescriptionHandler-created",this.sessionDescriptionHandler),!this.sessionDescriptionHandler.hasDescription(e.getHeader("Content-Type")||"")){this.acceptAndTerminate(e,400,"Missing session description"),this.failed(e,s.C.causes.BAD_MEDIA_DESCRIPTION);break}if(!this.createDialog(e,"UAC"))break;this.hasOffer=!0,this.sessionDescriptionHandler.setDescription(e.body,this.sessionDescriptionHandlerOptions,this.modifiers).then(function(){return t.sessionDescriptionHandler.getDescription(t.sessionDescriptionHandlerOptions,t.modifiers)}).then(function(i){t.isCanceled||t.status===u.SessionStatus.STATUS_TERMINATED||(t.status=u.SessionStatus.STATUS_CONFIRMED,t.hasAnswer=!0,t.emit("ack",e.transaction.sendACK({body:i})),t.accepted(e))}).catch(function(i){i.type===u.TypeStrings.SessionDescriptionHandlerError&&(t.logger.warn("invalid description"),t.logger.warn(i.toString()),t.acceptAndTerminate(e,488,"Invalid session description"),t.failed(e,s.C.causes.BAD_MEDIA_DESCRIPTION))})}break;default:a=y.Utils.sipErrorCause(n||0),this.rejected(e,a),this.failed(e,a),this.terminated(e,a)}}}},t.prototype.cancel=function(e){if(void 0===e&&(e={}),e.extraHeaders=(e.extraHeaders||[]).slice(),this.isCanceled)throw new c.Exceptions.InvalidStateError(u.SessionStatus.STATUS_CANCELED);if(this.status===u.SessionStatus.STATUS_TERMINATED||this.status===u.SessionStatus.STATUS_CONFIRMED)throw new c.Exceptions.InvalidStateError(this.status);this.logger.log("canceling RTCSession"),this.isCanceled=!0;var t=y.Utils.getCancelReason(e.statusCode,e.reasonPhrase);return this.status===u.SessionStatus.STATUS_NULL||this.status===u.SessionStatus.STATUS_INVITE_SENT&&!this.received100?this.cancelReason=t:this.status!==u.SessionStatus.STATUS_INVITE_SENT&&this.status!==u.SessionStatus.STATUS_1XX_RECEIVED&&this.status!==u.SessionStatus.STATUS_EARLY_MEDIA||this.request.cancel(t,e.extraHeaders),this.canceled()},t.prototype.terminate=function(e){return this.status===u.SessionStatus.STATUS_TERMINATED||(this.status===u.SessionStatus.STATUS_WAITING_FOR_ACK||this.status===u.SessionStatus.STATUS_CONFIRMED?this.bye(e):this.cancel(e)),this},t.prototype.receiveRequest=function(t){return t.method,s.C.CANCEL,t.method===s.C.ACK&&this.status===u.SessionStatus.STATUS_WAITING_FOR_ACK&&(clearTimeout(this.timers.ackTimer),clearTimeout(this.timers.invite2xxTimer),this.status=u.SessionStatus.STATUS_CONFIRMED,this.accepted()),e.prototype.receiveRequest.call(this,t)},t}(D);t.InviteClientContext=p;var L=function(e){function t(t,i,r,n){void 0===n&&(n={});var o=this;if(void 0===t||void 0===i||void 0===r)throw new TypeError("Not enough arguments");if((o=e.call(this,t,s.C.REFER,i.remoteIdentity.uri.toString(),n)||this).type=u.TypeStrings.ReferClientContext,o.options=n,o.extraHeaders=(o.options.extraHeaders||[]).slice(),o.applicant=i,"string"==typeof r||r.type!==u.TypeStrings.InviteServerContext&&r.type!==u.TypeStrings.InviteClientContext){var a=l.Grammar.parse(r,"Refer_To");o.target=a&&a.uri?a.uri:r;var M=o.ua.normalizeTarget(o.target);if(!M)throw new TypeError("Invalid target: "+r);o.target=M}else{var c=r.dialog;if(!c)throw new TypeError("Invalid target due to no dialog: "+r);o.target='"'+r.remoteIdentity.friendlyName+'" <'+c.remoteTarget.toString()+"?Replaces="+c.id.callId+"%3Bto-tag%3D"+c.id.remoteTag+"%3Bfrom-tag%3D"+c.id.localTag+">"}return o.ua&&o.extraHeaders.push("Referred-By: <"+o.ua.configuration.uri+">"),o.extraHeaders.push("Contact: "+i.contact),o.extraHeaders.push("Allow: "+["ACK","CANCEL","INVITE","MESSAGE","BYE","OPTIONS","INFO","NOTIFY","REFER"].toString()),o.extraHeaders.push("Refer-To: "+o.target),o.errorListener=o.onTransportError.bind(o),t.transport&&t.transport.on("transportError",o.errorListener),o}return n(t,e),t.prototype.refer=function(e){var t=this;void 0===e&&(e={});var i=(this.extraHeaders||[]).slice();return e.extraHeaders&&i.concat(e.extraHeaders),this.applicant.sendRequest(s.C.REFER,{extraHeaders:this.extraHeaders,receiveResponse:function(i){var r=i&&i.statusCode?i.statusCode.toString():"";/^1[0-9]{2}$/.test(r)?t.emit("referRequestProgress",t):/^2[0-9]{2}$/.test(r)?t.emit("referRequestAccepted",t):/^[4-6][0-9]{2}$/.test(r)&&t.emit("referRequestRejected",t),e.receiveResponse&&e.receiveResponse(i)}}),this},t.prototype.receiveNotify=function(e){var t=e.hasHeader("Content-Type")?e.getHeader("Content-Type"):void 0;if(t&&-1!==t.search(/^message\/sipfrag/)){var i=l.Grammar.parse(e.body,"sipfrag");if(-1===i)return void e.reply(489,"Bad Event");switch(!0){case/^1[0-9]{2}$/.test(i.statusCode):this.emit("referProgress",this);break;case/^2[0-9]{2}$/.test(i.statusCode):this.emit("referAccepted",this),!this.options.activeAfterTransfer&&this.applicant.terminate&&this.applicant.terminate();break;default:this.emit("referRejected",this)}return e.reply(200),void this.emit("notify",e)}e.reply(489,"Bad Event")},t}(a.ClientContext);t.ReferClientContext=L;var z=function(e){function t(t,i){var r=e.call(this,t,i)||this;return r.type=u.TypeStrings.ReferServerContext,r.ua=t,r.status=u.SessionStatus.STATUS_INVITE_RECEIVED,r.fromTag=i.fromTag,r.id=i.callId+r.fromTag,r.request=i,r.contact=r.ua.contact.toString(),r.logger=t.getLogger("sip.referservercontext",r.id),r.cseq=Math.floor(1e4*Math.random()),r.callId=r.request.callId,r.fromUri=r.request.to.uri,r.fromTag=r.request.to.parameters.tag,r.remoteTarget=r.request.headers.Contact[0].parsed.uri,r.toUri=r.request.from.uri,r.toTag=r.request.fromTag,r.routeSet=r.request.getHeaders("record-route"),r.request.hasHeader("refer-to")?(r.referTo=r.request.parseHeader("refer-to"),r.referredSession=r.ua.findSession(i),r.request.hasHeader("referred-by")&&(r.referredBy=r.request.getHeader("referred-by")),r.referTo.uri.hasHeader("replaces")&&(r.replaces=r.referTo.uri.getHeader("replaces")),r.errorListener=r.onTransportError.bind(r),t.transport&&t.transport.on("transportError",r.errorListener),r.status=u.SessionStatus.STATUS_WAITING_FOR_ANSWER,r):(r.logger.warn("Invalid REFER packet. A refer-to header is required. Rejecting refer."),r.reject(),r)}return n(t,e),t.prototype.receiveNonInviteResponse=function(e){},t.prototype.progress=function(){if(this.status!==u.SessionStatus.STATUS_WAITING_FOR_ANSWER)throw new c.Exceptions.InvalidStateError(this.status);this.request.reply(100)},t.prototype.reject=function(t){if(void 0===t&&(t={}),this.status===u.SessionStatus.STATUS_TERMINATED)throw new c.Exceptions.InvalidStateError(this.status);this.logger.log("Rejecting refer"),this.status=u.SessionStatus.STATUS_TERMINATED,e.prototype.reject.call(this,t),this.emit("referRequestRejected",this)},t.prototype.accept=function(e,t){var i=this;if(void 0===e&&(e={}),this.status!==u.SessionStatus.STATUS_WAITING_FOR_ANSWER)throw new c.Exceptions.InvalidStateError(this.status);if(this.status=u.SessionStatus.STATUS_ANSWERED,this.request.reply(202,"Accepted"),this.emit("referRequestAccepted",this),e.followRefer){this.logger.log("Accepted refer, attempting to automatically follow it");var r=this.referTo.uri;if(!r.scheme||!r.scheme.match("^sips?$"))return this.logger.error("SIP.js can only automatically follow SIP refer target"),void this.reject();var n=e.inviteOptions||{},o=(n.extraHeaders||[]).slice();if(this.replaces&&o.push("Replaces: "+decodeURIComponent(this.replaces)),this.referredBy&&o.push("Referred-By: "+this.referredBy),n.extraHeaders=o,r.clearHeaders(),this.targetSession=this.ua.invite(r.toString(),n,t),this.emit("referInviteSent",this),this.targetSession){this.targetSession.once("progress",function(e){var t=e.statusCode||100,r=e.reasonPhrase;i.sendNotify(("SIP/2.0 "+t+" "+r).trim()),i.emit("referProgress",i),i.referredSession&&i.referredSession.emit("referProgress",i)}),this.targetSession.once("accepted",function(){i.logger.log("Successfully followed the refer"),i.sendNotify("SIP/2.0 200 OK"),i.emit("referAccepted",i),i.referredSession&&i.referredSession.emit("referAccepted",i)});var a=function(e){if(i.status!==u.SessionStatus.STATUS_TERMINATED){if(i.logger.log("Refer was not successful. Resuming session"),e&&429===e.statusCode)return i.logger.log("Alerting referrer that identity is required."),void i.sendNotify("SIP/2.0 429 Provide Referrer Identity");i.sendNotify("SIP/2.0 603 Declined"),i.status=u.SessionStatus.STATUS_TERMINATED,i.emit("referRejected",i),i.referredSession&&i.referredSession.emit("referRejected")}};this.targetSession.once("rejected",a),this.targetSession.once("failed",a)}}else this.logger.log("Accepted refer, but did not automatically follow it"),this.sendNotify("SIP/2.0 200 OK"),this.emit("referAccepted",this),this.referredSession&&this.referredSession.emit("referAccepted",this)},t.prototype.sendNotify=function(e){if(this.status!==u.SessionStatus.STATUS_ANSWERED)throw new c.Exceptions.InvalidStateError(this.status);if(-1===l.Grammar.parse(e,"sipfrag"))throw new Error("sipfrag body is required to send notify for refer");var t=new T.OutgoingRequest(s.C.NOTIFY,this.remoteTarget,this.ua,{cseq:this.cseq+=1,callId:this.callId,fromUri:this.fromUri,fromTag:this.fromTag,toUri:this.toUri,toTag:this.toTag,routeSet:this.routeSet},["Event: refer","Subscription-State: terminated","Content-Type: message/sipfrag"],e);new N.RequestSender({request:t,onRequestTimeout:function(){},onTransportError:function(){},receiveResponse:function(){}},this.ua).send()},t}(g.ServerContext);t.ReferServerContext=z},function(e,t,i){var r,n=this&&this.__extends||(r=function(e,t){return(r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var i in t)t.hasOwnProperty(i)&&(e[i]=t[i])})(e,t)},function(e,t){function i(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(i.prototype=t.prototype,new i)});Object.defineProperty(t,"__esModule",{value:!0});var o=i(7),a=i(1),s=i(13),M=i(0),u=i(11),c=i(2),l=function(e){function t(t,i,r,n){void 0===n&&(n={});var o,s=this;if(!r)throw new TypeError("Event necessary to create a subscription.");return n.extraHeaders=(n.extraHeaders||[]).slice(),"number"!=typeof n.expires?(t.logger.warn("expires must be a number. Using default of 3600."),o=3600):o=n.expires,n.extraHeaders.push("Event: "+r),n.extraHeaders.push("Expires: "+o),n.extraHeaders.push("Contact: "+t.contact.toString()),n.extraHeaders.push("Allow: "+["ACK","CANCEL","INVITE","MESSAGE","BYE","OPTIONS","INFO","NOTIFY","REFER"].toString()),(s=e.call(this,t,a.C.SUBSCRIBE,i,n)||this).type=M.TypeStrings.Subscription,s.event=r,s.requestedExpires=o,s.state="init",s.contact=t.contact.toString(),s.extraHeaders=n.extraHeaders,s.logger=t.getLogger("sip.subscription"),s.expires=o,s.timers={N:void 0,subDuration:void 0},s.errorCodes=[404,405,410,416,480,481,482,483,484,485,489,501,604],s}return n(t,e),t.prototype.subscribe=function(){var e=this;return"active"===this.state?(this.refresh(),this):("notify_wait"===this.state||(clearTimeout(this.timers.subDuration),clearTimeout(this.timers.N),this.timers.N=setTimeout(function(){return e.timer_fire()},u.Timers.TIMER_N),this.request&&this.request.from&&(this.ua.earlySubscriptions[this.request.callId+this.request.from.parameters.tag+this.event]=this),this.send(),this.state="notify_wait"),this)},t.prototype.refresh=function(){"terminated"!==this.state&&"pending"!==this.state&&"notify_wait"!==this.state&&this.dialog&&this.dialog.sendRequest(this,a.C.SUBSCRIBE,{extraHeaders:this.extraHeaders,body:this.body})},t.prototype.receiveResponse=function(e){var t=this,i=e.statusCode?e.statusCode:0,r=c.Utils.getReasonPhrase(i);if("notify_wait"===this.state&&i>=300||"notify_wait"!==this.state&&-1!==this.errorCodes.indexOf(i))this.failed(e,void 0);else if(/^2[0-9]{2}$/.test(i.toString())){this.emit("accepted",e,r);var n=e.getHeader("Expires");n&&Number(n)<=this.requestedExpires?(this.expires=Number(n),this.timers.subDuration=setTimeout(function(){return t.refresh()},900*Number(n))):n?(this.logger.warn("Expires header in a 200-class response to SUBSCRIBE with a higher value than the one in the request"),this.failed(e,"Invalid Expires Header")):(this.logger.warn("Expires header missing in a 200-class response to SUBSCRIBE"),this.failed(e,"Expires Header Missing"))}else i>300&&(this.emit("failed",e,r),this.emit("rejected",e,r))},t.prototype.unsubscribe=function(){var e=this,t=[];this.state="terminated",t.push("Event: "+this.event),t.push("Expires: 0"),t.push("Contact: "+this.contact),t.push("Allow: "+["ACK","CANCEL","INVITE","MESSAGE","BYE","OPTIONS","INFO","NOTIFY","REFER"].toString()),this.receiveResponse=function(){},this.dialog&&this.dialog.sendRequest(this,a.C.SUBSCRIBE,{extraHeaders:t,body:this.body}),clearTimeout(this.timers.subDuration),clearTimeout(this.timers.N),this.timers.N=setTimeout(function(){return e.timer_fire()},u.Timers.TIMER_N),this.emit("terminated")},t.prototype.receiveRequest=function(e){var t,i=this,r=function(){t.expires&&(clearTimeout(i.timers.subDuration),t.expires=Math.min(i.expires,Math.max(t.expires,0)),i.timers.subDuration=setTimeout(function(){return i.refresh()},900*t.expires))};if(this.matchEvent(e))if(this.dialog||this.createConfirmedDialog(e,"UAS")&&this.dialog&&(this.id=this.dialog.id.toString(),this.request&&this.request.from&&(delete this.ua.earlySubscriptions[this.request.callId+this.request.from.parameters.tag+this.event],this.ua.subscriptions[this.id||""]=this)),t=e.parseHeader("Subscription-State"),e.reply(200),clearTimeout(this.timers.N),this.emit("notify",{request:e}),"terminated"!==this.state)switch(t.state){case"active":this.state="active",r();break;case"pending":"notify_wait"===this.state&&r(),this.state="pending";break;case"terminated":if(clearTimeout(this.timers.subDuration),t.reason)switch(this.logger.log("terminating subscription with reason "+t.reason),t.reason){case"deactivated":case"timeout":return void this.subscribe();case"probation":case"giveup":return void(t.params&&t.params["retry-after"]?this.timers.subDuration=setTimeout(function(){return i.subscribe()},t.params["retry-after"]):this.subscribe())}this.close()}else"terminated"===t.state&&(this.terminateDialog(),clearTimeout(this.timers.N),clearTimeout(this.timers.subDuration),delete this.ua.subscriptions[this.id||""]);else e.reply(489)},t.prototype.close=function(){"notify_wait"===this.state?(this.state="terminated",clearTimeout(this.timers.N),clearTimeout(this.timers.subDuration),this.receiveResponse=function(){},this.request&&this.request.from&&delete this.ua.earlySubscriptions[this.request.callId+this.request.from.parameters.tag+this.event],this.emit("terminated")):"terminated"!==this.state&&this.unsubscribe()},t.prototype.onDialogError=function(e){this.failed(e,a.C.causes.DIALOG_ERROR)},t.prototype.timer_fire=function(){"terminated"===this.state?(this.terminateDialog(),clearTimeout(this.timers.N),clearTimeout(this.timers.subDuration),delete this.ua.subscriptions[this.id||""]):"notify_wait"===this.state||"pending"===this.state?this.close():this.refresh()},t.prototype.createConfirmedDialog=function(e,t){this.terminateDialog();var i=new s.Dialog(this,e,t);return this.request&&(i.inviteSeqnum=this.request.cseq,i.localSeqnum=this.request.cseq),!i.error&&(this.dialog=i,!0)},t.prototype.terminateDialog=function(){this.dialog&&(delete this.ua.subscriptions[this.id||""],this.dialog.terminate(),delete this.dialog)},t.prototype.failed=function(e,t){return this.close(),this.emit("failed",e,t),this.emit("rejected",e,t),this},t.prototype.matchEvent=function(e){if(!e.hasHeader("Event"))return this.logger.warn("missing Event header"),!1;if(!e.hasHeader("Subscription-State"))return this.logger.warn("missing Subscription-State header"),!1;var t=e.parseHeader("event").event;return this.event===t||(this.logger.warn("event match failed"),e.reply(481,"Event Match Failed"),!1)},t}(o.ClientContext);t.Subscription=l},function(e,t,i){var r,n=this&&this.__extends||(r=function(e,t){return(r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var i in t)t.hasOwnProperty(i)&&(e[i]=t[i])})(e,t)},function(e,t){function i(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(i.prototype=t.prototype,new i)});Object.defineProperty(t,"__esModule",{value:!0});var o=i(3),a=i(0),s=function(e){function t(t,i){var r=e.call(this)||this;return r.type=a.TypeStrings.Transport,r.logger=t,r}return n(t,e),t.prototype.connect=function(e){var t=this;return void 0===e&&(e={}),this.connectPromise(e).then(function(e){e.overrideEvent||t.emit("connected")})},t.prototype.send=function(e,t){var i=this;return this.sendPromise(e).then(function(e){e.overrideEvent||i.emit("messageSent",e.msg)})},t.prototype.disconnect=function(e){var t=this;return void 0===e&&(e={}),this.disconnectPromise(e).then(function(e){e.overrideEvent||t.emit("disconnected")})},t.prototype.afterConnected=function(e){this.isConnected()?e():this.once("connected",e)},t.prototype.waitForConnected=function(){var e=this;return new Promise(function(t){e.afterConnected(t)})},t}(o.EventEmitter);t.Transport=s},function(e,t,i){(function(e){var r,n=this&&this.__extends||(r=function(e,t){return(r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var i in t)t.hasOwnProperty(i)&&(e[i]=t[i])})(e,t)},function(e,t){function i(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(i.prototype=t.prototype,new i)});Object.defineProperty(t,"__esModule",{value:!0});var o=i(3),a=i(7),s=i(1),M=i(18),u=i(0),c=i(5),l=i(4),N=i(19),g=i(20),d=i(21),T=i(22),j=i(23),y=i(14),D=i(24),I=i(25),p=i(9),L=i(10),z=i(2),h=i(28),A=i(29),C=e.window||e,S=function(t){function i(e){var r=t.call(this)||this;r.type=u.TypeStrings.UA,r.log=new N.LoggerFactory,r.logger=r.getLogger("sip.ua"),r.cache={credentials:{}},r.configuration={},r.dialogs={},r.applicants={},r.data={},r.sessions={},r.subscriptions={},r.earlySubscriptions={},r.publishers={},r.status=u.UAStatus.STATUS_INIT,r.transactions={nist:{},nict:{},ist:{},ict:{}},void 0===e?e={}:("string"==typeof e||e instanceof String)&&(e={uri:e}),e.log&&(e.log.hasOwnProperty("builtinEnabled")&&(r.log.builtinEnabled=e.log.builtinEnabled),e.log.hasOwnProperty("level")&&(r.log.level=e.log.level),e.log.hasOwnProperty("connector")&&(r.log.connector=e.log.connector));try{r.loadConfig(e)}catch(n){throw r.status=u.UAStatus.STATUS_NOT_READY,r.error=i.C.CONFIGURATION_ERROR,n}return r.registerContext=new T.RegisterContext(r,e.registerOptions),r.registerContext.on("failed",r.emit.bind(r,"registrationFailed")),r.registerContext.on("registered",r.emit.bind(r,"registered")),r.registerContext.on("unregistered",r.emit.bind(r,"unregistered")),r.configuration.autostart&&r.start(),r}return n(i,t),Object.defineProperty(i.prototype,"transactionsCount",{get:function(){for(var e=0,t=0,i=["nist","nict","ist","ict"];t<i.length;t++){var r=i[t];e+=Object.keys(this.transactions[r]).length}return e},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"nictTransactionsCount",{get:function(){return Object.keys(this.transactions.nict).length},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"nistTransactionsCount",{get:function(){return Object.keys(this.transactions.nist).length},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"ictTransactionsCount",{get:function(){return Object.keys(this.transactions.ict).length},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"istTransactionsCount",{get:function(){return Object.keys(this.transactions.ist).length},enumerable:!0,configurable:!0}),i.prototype.register=function(e){return void 0===e&&(e={}),e.register&&(this.configuration.register=!0),this.registerContext.register(e),this},i.prototype.unregister=function(e){var t=this;return this.configuration.register=!1,this.transport&&this.transport.afterConnected(function(){t.registerContext.unregister(e)}),this},i.prototype.isRegistered=function(){return this.registerContext.registered},i.prototype.invite=function(e,t,i){var r=this,n=new D.InviteClientContext(this,e,t,i);return this.transport&&this.transport.afterConnected(function(){n.invite(),r.emit("inviteSent",n)}),n},i.prototype.subscribe=function(e,t,i){var r=new I.Subscription(this,e,t,i);return this.transport&&this.transport.afterConnected(function(){return r.subscribe()}),r},i.prototype.publish=function(e,t,i,r){var n=new d.PublishContext(this,e,t,r);return this.transport&&this.transport.afterConnected(function(){n.publish(i)}),n},i.prototype.message=function(e,t,i){if(void 0===i&&(i={}),void 0===t)throw new TypeError("Not enough arguments");return i.contentType=i.contentType||"text/plain",i.body=t,this.request(s.C.MESSAGE,e,i)},i.prototype.request=function(e,t,i){var r=new a.ClientContext(this,e,t,i);return this.transport&&this.transport.afterConnected(function(){return r.send()}),r},i.prototype.stop=function(){var t=this;if(this.logger.log("user requested closure..."),this.status===u.UAStatus.STATUS_USER_CLOSED)return this.logger.warn("UA already closed"),this;for(var i in this.logger.log("closing registerContext"),this.registerContext.close(),this.sessions)this.sessions[i]&&(this.logger.log("closing session "+i),this.sessions[i].terminate());for(var r in this.subscriptions)this.subscriptions[r]&&(this.logger.log("unsubscribing from subscription "+r),this.subscriptions[r].close());for(var n in this.earlySubscriptions)this.earlySubscriptions[n]&&(this.logger.log("unsubscribing from early subscription "+n),this.earlySubscriptions[n].close());for(var o in this.publishers)this.publishers[o]&&(this.logger.log("unpublish "+o),this.publishers[o].close());for(var a in this.applicants)this.applicants[a]&&this.applicants[a].close();if(this.status=u.UAStatus.STATUS_USER_CLOSED,0===this.nistTransactionsCount&&0===this.nictTransactionsCount&&this.transport)this.transport.disconnect();else{var s=function(){0===t.nistTransactionsCount&&0===t.nictTransactionsCount&&(t.removeListener("transactionDestroyed",s),t.transport&&t.transport.disconnect())};this.on("transactionDestroyed",s)}return"function"==typeof C.removeEventListener&&(e.chrome&&e.chrome.app&&e.chrome.app.runtime||C.removeEventListener("unload",this.environListener)),this},i.prototype.start=function(){var t=this;if(this.logger.log("user requested startup..."),this.status===u.UAStatus.STATUS_INIT){if(this.status=u.UAStatus.STATUS_STARTING,!this.configuration.transportConstructor)throw new c.Exceptions.TransportError("Transport constructor not set");this.transport=new this.configuration.transportConstructor(this.getLogger("sip.transport"),this.configuration.transportOptions),this.setTransportListeners(),this.emit("transportCreated",this.transport),this.transport.connect()}else this.status===u.UAStatus.STATUS_USER_CLOSED?(this.logger.log("resuming"),this.status=u.UAStatus.STATUS_READY,this.transport&&this.transport.connect()):this.status===u.UAStatus.STATUS_STARTING?this.logger.log("UA is in STARTING status, not opening new connection"):this.status===u.UAStatus.STATUS_READY?this.logger.log("UA is in READY status, not resuming"):this.logger.error("Connection is down. Auto-Recovery system is trying to connect");return this.configuration.autostop&&"function"==typeof C.addEventListener&&(e.chrome&&e.chrome.app&&e.chrome.app.runtime||(this.environListener=this.stop,C.addEventListener("unload",function(){return t.environListener()}))),this},i.prototype.normalizeTarget=function(e){return z.Utils.normalizeTarget(e,this.configuration.hostportParams)},i.prototype.getLogger=function(e,t){return this.log.getLogger(e,t)},i.prototype.newTransaction=function(e){this.transactions[e.kind][e.id]=e,this.emit("newTransaction",{transaction:e})},i.prototype.destroyTransaction=function(e){delete this.transactions[e.kind][e.id],this.emit("transactionDestroyed",{transaction:e})},i.prototype.findSession=function(e){return this.sessions[e.callId+e.fromTag]||this.sessions[e.callId+e.toTag]||void 0},i.prototype.saveCredentials=function(e){return this.cache.credentials[e.realm]=this.cache.credentials[e.realm]||{},this.cache.credentials[e.realm][e.uri]=e,this},i.prototype.getCredentials=function(e){var t=e.ruri.type===u.TypeStrings.URI?e.ruri.host:"";if(t&&this.cache.credentials[t]&&this.cache.credentials[t][e.ruri.toString()]){var i=this.cache.credentials[t][e.ruri.toString()];return i.method=e.method,i}},i.prototype.onTransportError=function(){this.status!==u.UAStatus.STATUS_USER_CLOSED&&(this.error&&this.error===i.C.NETWORK_ERROR||(this.status=u.UAStatus.STATUS_NOT_READY,this.error=i.C.NETWORK_ERROR))},i.prototype.setTransportListeners=function(){var e=this;this.transport&&(this.transport.on("connected",function(){return e.onTransportConnected()}),this.transport.on("message",function(t){return e.onTransportReceiveMsg(t)}),this.transport.on("transportError",function(){return e.onTransportError()}))},i.prototype.onTransportConnected=function(){var e=this;this.configuration.register&&Promise.resolve().then(function(){return e.registerContext.register()})},i.prototype.onTransportReceiveMsg=function(e){var t=g.Parser.parseMessage(e,this);if(this.status===u.UAStatus.STATUS_USER_CLOSED&&t&&t.type===u.TypeStrings.IncomingRequest)this.logger.warn("UA received message when status = USER_CLOSED - aborting");else if(t&&this.transport&&j.SanityCheck.sanityCheck(t,this,this.transport))if(t.type===u.TypeStrings.IncomingRequest)t.transport=this.transport,this.receiveRequest(t);else if(t.type===u.TypeStrings.IncomingResponse)switch(t.method){case s.C.INVITE:var i=this.transactions.ict[t.viaBranch];i&&i.receiveResponse(t);break;case s.C.ACK:break;default:var r=this.transactions.nict[t.viaBranch];r&&r.receiveResponse(t)}},i.prototype.receiveRequest=function(e){var t=function(t){return!!t&&!!e.ruri&&t.user===e.ruri.user};if(this.configuration.uri.type===u.TypeStrings.URI&&!(t(this.configuration.uri)||this.contact&&(t(this.contact.uri)||t(this.contact.pubGruu)||t(this.contact.tempGruu))))return this.logger.warn("Request-URI does not point to us"),void(e.method!==s.C.ACK&&e.reply_sl(404));if(e.ruri&&e.ruri.scheme===s.C.SIPS)e.reply_sl(416);else if(!this.checkTransaction(e)){var r,n=e.method;if(n===s.C.OPTIONS?(new p.NonInviteServerTransaction(e,this),e.reply(200,void 0,["Allow: "+i.C.ALLOWED_METHODS.toString(),"Accept: "+i.C.ACCEPTED_BODY_TYPES.toString()])):n===s.C.MESSAGE?((r=new y.ServerContext(this,e)).body=e.body,r.contentType=e.getHeader("Content-Type")||"text/plain",e.reply(200,void 0),this.emit("message",r)):n!==s.C.INVITE&&n!==s.C.ACK&&(r=new y.ServerContext(this,e)),e.toTag){var o=this.findDialog(e);if(o)n===s.C.INVITE&&new p.InviteServerTransaction(e,this),o.receiveRequest(e);else if(n===s.C.NOTIFY){N=this.findSession(e);var a=this.findEarlySubscription(e);N?N.receiveRequest(e):a?a.receiveRequest(e):(this.logger.warn("received NOTIFY request for a non existent session or subscription"),e.reply(481,"Subscription does not exist"))}else n!==s.C.ACK&&e.reply(481)}else switch(n){case s.C.INVITE:var M=this.configuration.replaces!==s.C.supported.UNSUPPORTED&&e.parseHeader("replaces"),c=void 0;if(M){if(!(c=this.dialogs[M.call_id+M.replaces_to_tag+M.replaces_from_tag]))return void e.reply_sl(481,void 0);if(c.owner.type!==u.TypeStrings.Subscription&&c.owner.status===u.SessionStatus.STATUS_TERMINATED)return void e.reply_sl(603,void 0);if(c.state===u.DialogStatus.STATUS_CONFIRMED&&M.earlyOnly)return void e.reply_sl(486,void 0)}var l=new D.InviteServerContext(this,e);c&&c.owner.type!==u.TypeStrings.Subscription&&(l.replacee=c&&c.owner),this.emit("invite",l);break;case s.C.BYE:e.reply(481);break;case s.C.CANCEL:var N;(N=this.findSession(e))?N.receiveRequest(e):this.logger.warn("received CANCEL request for a non existent session");break;case s.C.ACK:break;case s.C.NOTIFY:this.configuration.allowLegacyNotifications&&this.listeners("notify").length>0?(e.reply(200,void 0),this.emit("notify",{request:e})):e.reply(481,"Subscription does not exist");break;case s.C.REFER:if(this.logger.log("Received an out of dialog refer"),this.configuration.allowOutOfDialogRefers){this.logger.log("Allow out of dialog refers is enabled on the UA");var g=new D.ReferServerContext(this,e);this.listeners("outOfDialogReferRequested").length?this.emit("outOfDialogReferRequested",g):(this.logger.log("No outOfDialogReferRequest listeners, automatically accepting and following the out of dialog refer"),g.accept({followRefer:!0}));break}e.reply(405);break;default:e.reply(405)}}},i.prototype.checkTransaction=function(e){return p.checkTransaction(this,e)},i.prototype.findDialog=function(e){return this.dialogs[e.callId+e.fromTag+e.toTag]||this.dialogs[e.callId+e.toTag+e.fromTag]||void 0},i.prototype.findEarlySubscription=function(e){return this.earlySubscriptions[e.callId+e.toTag+e.getHeader("event")]||void 0},i.prototype.checkAuthenticationFactory=function(e){if(e instanceof Function)return e.initialize||(e.initialize=function(){return Promise.resolve()}),e},i.prototype.loadConfig=function(e){var t=this,i={viaHost:z.Utils.createRandomToken(12)+".invalid",uri:new L.URI("sip","anonymous."+z.Utils.createRandomToken(6),"anonymous.invalid",void 0,void 0),custom:{},displayName:"",password:void 0,register:!0,registerOptions:{},transportConstructor:A.Transport,transportOptions:{},userAgentString:s.C.USER_AGENT,noAnswerTimeout:60,hackViaTcp:!1,hackIpInContact:!1,hackWssInTransport:!1,hackAllowUnregisteredOptionTags:!1,sessionDescriptionHandlerFactoryOptions:{constraints:{},peerConnectionOptions:{}},extraSupported:[],contactName:z.Utils.createRandomToken(8),contactTransport:"ws",forceRport:!1,autostart:!0,autostop:!0,rel100:s.C.supported.UNSUPPORTED,dtmfType:s.C.dtmfType.INFO,replaces:s.C.supported.UNSUPPORTED,sessionDescriptionHandlerFactory:h.SessionDescriptionHandler.defaultFactory,authenticationFactory:this.checkAuthenticationFactory(function(e){return new M.DigestAuthentication(e)}),allowLegacyNotifications:!1,allowOutOfDialogRefers:!1},r=this.getConfigurationCheck();for(var n in r.mandatory){if(!e.hasOwnProperty(n))throw new c.Exceptions.ConfigurationError(n);var o=e[n];if(void 0===(a=r.mandatory[n](o)))throw new c.Exceptions.ConfigurationError(n,o);i[n]=a}for(var n in r.optional)if(e.hasOwnProperty(n)){var a;if((o=e[n])instanceof Array&&0===o.length||null===o||""===o||void 0===o||"number"==typeof o&&isNaN(o))continue;if(void 0===(a=r.optional[n](o)))throw new c.Exceptions.ConfigurationError(n,o);i[n]=a}0===i.displayName&&(i.displayName="0"),i.sipjsId=z.Utils.createRandomToken(5);var u=i.uri.clone();if(u.user=void 0,i.hostportParams=u.toRaw().replace(/^sip:/i,""),i.authorizationUser||(i.authorizationUser=i.uri.user),i.noAnswerTimeout=1e3*i.noAnswerTimeout,i.hackIpInContact)if("boolean"==typeof i.hackIpInContact){var l=Math.floor(254*Math.random()+1);i.viaHost="192.0.2."+l}else"string"==typeof i.hackIpInContact&&(i.viaHost=i.hackIpInContact);i.hackWssInTransport&&(i.contactTransport="wss"),this.contact={pubGruu:void 0,tempGruu:void 0,uri:new L.URI("sip",i.contactName,i.viaHost,void 0,{transport:i.contactTransport}),toString:function(e){void 0===e&&(e={});var r=e.anonymous||!1,n=e.outbound||!1,o="<";return o+=r?(t.contact.tempGruu||"sip:anonymous@anonymous.invalid;transport="+i.contactTransport).toString():(t.contact.pubGruu||t.contact.uri).toString(),n&&(o+=";ob"),o+">"}};var N={};for(var n in i)i.hasOwnProperty(n)&&(N[n]=i[n]);for(var n in Object.assign(this.configuration,N),this.logger.log("configuration parameters after validation:"),i)if(i.hasOwnProperty(n))switch(n){case"uri":case"sessionDescriptionHandlerFactory":this.logger.log("· "+n+": "+i[n]);break;case"password":this.logger.log("· "+n+": NOT SHOWN");break;case"transportConstructor":this.logger.log("· "+n+": "+i[n].name);break;default:this.logger.log("· "+n+": "+JSON.stringify(i[n]))}},i.prototype.getConfigurationCheck=function(){return{mandatory:{},optional:{uri:function(e){/^sip:/i.test(e)||(e=s.C.SIP+":"+e);var t=l.Grammar.URIParse(e);return t&&t.user?t:void 0},transportConstructor:function(e){if(e instanceof Function)return e},transportOptions:function(e){if("object"==typeof e)return e},authorizationUser:function(e){return-1===l.Grammar.parse('"'+e+'"',"quoted_string")?void 0:e},displayName:function(e){return-1===l.Grammar.parse('"'+e+'"',"displayName")?void 0:e},dtmfType:function(e){switch(e){case s.C.dtmfType.RTP:return s.C.dtmfType.RTP;case s.C.dtmfType.INFO:default:return s.C.dtmfType.INFO}},hackViaTcp:function(e){if("boolean"==typeof e)return e},hackIpInContact:function(e){return"boolean"==typeof e||"string"==typeof e&&-1!==l.Grammar.parse(e,"host")?e:void 0},hackWssInTransport:function(e){if("boolean"==typeof e)return e},hackAllowUnregisteredOptionTags:function(e){if("boolean"==typeof e)return e},contactTransport:function(e){if("string"==typeof e)return e},extraSupported:function(e){if(e instanceof Array){for(var t=0,i=e;t<i.length;t++)if("string"!=typeof i[t])return;return e}},forceRport:function(e){if("boolean"==typeof e)return e},noAnswerTimeout:function(e){if(z.Utils.isDecimal(e)){var t=Number(e);if(t>0)return t}},password:function(e){return String(e)},rel100:function(e){return e===s.C.supported.REQUIRED?s.C.supported.REQUIRED:e===s.C.supported.SUPPORTED?s.C.supported.SUPPORTED:s.C.supported.UNSUPPORTED},replaces:function(e){return e===s.C.supported.REQUIRED?s.C.supported.REQUIRED:e===s.C.supported.SUPPORTED?s.C.supported.SUPPORTED:s.C.supported.UNSUPPORTED},register:function(e){if("boolean"==typeof e)return e},registerOptions:function(e){if("object"==typeof e)return e},userAgentString:function(e){if("string"==typeof e)return e},autostart:function(e){if("boolean"==typeof e)return e},autostop:function(e){if("boolean"==typeof e)return e},sessionDescriptionHandlerFactory:function(e){if(e instanceof Function)return e},sessionDescriptionHandlerFactoryOptions:function(e){if("object"==typeof e)return e},authenticationFactory:this.checkAuthenticationFactory,allowLegacyNotifications:function(e){if("boolean"==typeof e)return e},custom:function(e){if("object"==typeof e)return e},contactName:function(e){if("string"==typeof e)return e}}}},i.C={STATUS_INIT:0,STATUS_STARTING:1,STATUS_READY:2,STATUS_USER_CLOSED:3,STATUS_NOT_READY:4,CONFIGURATION_ERROR:1,NETWORK_ERROR:2,ALLOWED_METHODS:["ACK","CANCEL","INVITE","MESSAGE","BYE","OPTIONS","INFO","NOTIFY","REFER"],ACCEPTED_BODY_TYPES:["application/sdp","application/dtmf-relay"],MAX_FORWARDS:70,TAG_LENGTH:10},i}(o.EventEmitter);t.UA=S}).call(this,i(12))},function(e,t,i){(function(e){var r,n=this&&this.__extends||(r=function(e,t){return(r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var i in t)t.hasOwnProperty(i)&&(e[i]=t[i])})(e,t)},function(e,t){function i(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(i.prototype=t.prototype,new i)});Object.defineProperty(t,"__esModule",{value:!0});var o=i(3),a=i(0),s=i(5),M=i(2),u=i(15),c=i(35),l=function(t){function i(i,r,n){var o=t.call(this)||this;o.type=a.TypeStrings.SessionDescriptionHandler,o.options=n||{},o.logger=i,o.observer=r,o.dtmfSender=void 0,o.shouldAcquireMedia=!0,o.CONTENT_TYPE="application/sdp",o.C={DIRECTION:{NULL:null,SENDRECV:"sendrecv",SENDONLY:"sendonly",RECVONLY:"recvonly",INACTIVE:"inactive"}},o.logger.log("SessionDescriptionHandlerOptions: "+JSON.stringify(o.options)),o.direction=o.C.DIRECTION.NULL,o.modifiers=o.options.modifiers||[],Array.isArray(o.modifiers)||(o.modifiers=[o.modifiers]);var s=e.window||e;return o.WebRTC={MediaStream:s.MediaStream,getUserMedia:s.navigator.mediaDevices.getUserMedia.bind(s.navigator.mediaDevices),RTCPeerConnection:s.RTCPeerConnection},o.iceGatheringTimeout=!1,o.initPeerConnection(o.options.peerConnectionOptions),o.constraints=o.checkAndDefaultConstraints(o.options.constraints),o}return n(i,t),i.defaultFactory=function(e,t){return new i(e.ua.getLogger("sip.invitecontext.sessionDescriptionHandler",e.id),new c.SessionDescriptionHandlerObserver(e,t),t)},i.prototype.close=function(){this.logger.log("closing PeerConnection"),this.peerConnection&&"closed"!==this.peerConnection.signalingState&&(this.peerConnection.getSenders?this.peerConnection.getSenders().forEach(function(e){e.track&&e.track.stop()}):(this.logger.warn("Using getLocalStreams which is deprecated"),this.peerConnection.getLocalStreams().forEach(function(e){e.getTracks().forEach(function(e){e.stop()})})),this.peerConnection.getReceivers?this.peerConnection.getReceivers().forEach(function(e){e.track&&e.track.stop()}):(this.logger.warn("Using getRemoteStreams which is deprecated"),this.peerConnection.getRemoteStreams().forEach(function(e){e.getTracks().forEach(function(e){e.stop()})})),this.resetIceGatheringComplete(),this.peerConnection.close())},i.prototype.getDescription=function(e,t){var i=this;void 0===e&&(e={}),void 0===t&&(t=[]),e.peerConnectionOptions&&this.initPeerConnection(e.peerConnectionOptions);var r=Object.assign({},this.constraints,e.constraints);return r=this.checkAndDefaultConstraints(r),JSON.stringify(r)!==JSON.stringify(this.constraints)&&(this.constraints=r,this.shouldAcquireMedia=!0),Array.isArray(t)||(t=[t]),t=t.concat(this.modifiers),Promise.resolve().then(function(){if(i.shouldAcquireMedia)return i.acquire(i.constraints).then(function(){i.shouldAcquireMedia=!1})}).then(function(){return i.createOfferOrAnswer(e.RTCOfferOptions,t)}).then(function(e){return i.emit("getDescription",e),{body:e.sdp,contentType:i.CONTENT_TYPE}})},i.prototype.hasDescription=function(e){return e===this.CONTENT_TYPE},i.prototype.holdModifier=function(e){return e.sdp?(/a=(sendrecv|sendonly|recvonly|inactive)/.test(e.sdp)?(e.sdp=e.sdp.replace(/a=sendrecv\r\n/g,"a=sendonly\r\n"),e.sdp=e.sdp.replace(/a=recvonly\r\n/g,"a=inactive\r\n")):e.sdp=e.sdp.replace(/(m=[^\r]*\r\n)/g,"$1a=sendonly\r\n"),Promise.resolve(e)):Promise.resolve(e)},i.prototype.setDescription=function(e,t,i){var r=this;void 0===t&&(t={}),void 0===i&&(i=[]),t.peerConnectionOptions&&this.initPeerConnection(t.peerConnectionOptions),Array.isArray(i)||(i=[i]),i=i.concat(this.modifiers);var n={type:this.hasOffer("local")?"answer":"offer",sdp:e};return Promise.resolve().then(function(){if(r.shouldAcquireMedia&&r.options.alwaysAcquireMediaFirst)return r.acquire(r.constraints).then(function(){r.shouldAcquireMedia=!1})}).then(function(){return M.Utils.reducePromises(i,n)}).catch(function(e){if(e.type===a.TypeStrings.SessionDescriptionHandlerError)throw e;var t=new s.Exceptions.SessionDescriptionHandlerError("setDescription",e,"The modifiers did not resolve successfully");throw r.logger.error(t.message),r.emit("peerConnection-setRemoteDescriptionFailed",t),t}).then(function(e){return r.emit("setDescription",e),r.peerConnection.setRemoteDescription(e)}).catch(function(n){if(n.type===a.TypeStrings.SessionDescriptionHandlerError)throw n;if(/^m=video.+$/gm.test(e)&&!t.disableAudioFallback)return t.disableAudioFallback=!0,r.setDescription(e,t,[u.stripVideo].concat(i));var o=new s.Exceptions.SessionDescriptionHandlerError("setDescription",n);throw o.error&&r.logger.error(o.error),r.emit("peerConnection-setRemoteDescriptionFailed",o),o}).then(function(){r.peerConnection.getReceivers?r.emit("setRemoteDescription",r.peerConnection.getReceivers()):r.emit("setRemoteDescription",r.peerConnection.getRemoteStreams()),r.emit("confirmed",r)})},i.prototype.sendDtmf=function(e,t){if(void 0===t&&(t={}),!this.dtmfSender&&this.hasBrowserGetSenderSupport()){var i=this.peerConnection.getSenders();i.length>0&&(this.dtmfSender=i[0].dtmf)}if(!this.dtmfSender&&this.hasBrowserTrackSupport()){var r=this.peerConnection.getLocalStreams();if(r.length>0){var n=r[0].getAudioTracks();n.length>0&&(this.dtmfSender=this.peerConnection.createDTMFSender(n[0]))}}if(!this.dtmfSender)return!1;try{this.dtmfSender.insertDTMF(e,t.duration,t.interToneGap)}catch(o){if("InvalidStateError"===o.type||"InvalidCharacterError"===o.type)return this.logger.error(o),!1;throw o}return this.logger.log("DTMF sent via RTP: "+e.toString()),!0},i.prototype.getDirection=function(){return this.direction},i.prototype.createOfferOrAnswer=function(e,t){var i=this;void 0===e&&(e={}),void 0===t&&(t=[]);var r=this.hasOffer("remote")?"createAnswer":"createOffer",n=this.peerConnection;return this.logger.log(r),n[r](e).catch(function(e){if(e.type===a.TypeStrings.SessionDescriptionHandlerError)throw e;var t=new s.Exceptions.SessionDescriptionHandlerError("createOfferOrAnswer",e,"peerConnection-"+r+"Failed");throw i.emit("peerConnection-"+r+"Failed",t),t}).then(function(e){return M.Utils.reducePromises(t,i.createRTCSessionDescriptionInit(e))}).then(function(e){return i.resetIceGatheringComplete(),i.logger.log("Setting local sdp."),i.logger.log("sdp is "+e.sdp||!1),n.setLocalDescription(e)}).catch(function(e){if(e.type===a.TypeStrings.SessionDescriptionHandlerError)throw e;var t=new s.Exceptions.SessionDescriptionHandlerError("createOfferOrAnswer",e,"peerConnection-SetLocalDescriptionFailed");throw i.emit("peerConnection-SetLocalDescriptionFailed",t),t}).then(function(){return i.waitForIceGatheringComplete()}).then(function(){var e=i.createRTCSessionDescriptionInit(i.peerConnection.localDescription);return M.Utils.reducePromises(t,e)}).then(function(e){return i.setDirection(e.sdp||""),e}).catch(function(e){if(e.type===a.TypeStrings.SessionDescriptionHandlerError)throw e;var t=new s.Exceptions.SessionDescriptionHandlerError("createOfferOrAnswer",e);throw i.logger.error(t.toString()),t})},i.prototype.createRTCSessionDescriptionInit=function(e){return{type:e.type,sdp:e.sdp}},i.prototype.addDefaultIceCheckingTimeout=function(e){return void 0===e.iceCheckingTimeout&&(e.iceCheckingTimeout=5e3),e},i.prototype.addDefaultIceServers=function(e){return e.iceServers||(e.iceServers=[{urls:"stun:stun.l.google.com:19302"}]),e},i.prototype.checkAndDefaultConstraints=function(e){var t={audio:!0,video:!this.options.alwaysAcquireMediaFirst};return e=e||t,0===Object.keys(e).length&&e.constructor===Object?t:e},i.prototype.hasBrowserTrackSupport=function(){return Boolean(this.peerConnection.addTrack)},i.prototype.hasBrowserGetSenderSupport=function(){return Boolean(this.peerConnection.getSenders)},i.prototype.initPeerConnection=function(e){var t=this;void 0===e&&(e={}),(e=this.addDefaultIceCheckingTimeout(e)).rtcConfiguration=e.rtcConfiguration||{},e.rtcConfiguration=this.addDefaultIceServers(e.rtcConfiguration),this.logger.log("initPeerConnection"),this.peerConnection&&(this.logger.log("Already have a peer connection for this session. Tearing down."),this.resetIceGatheringComplete(),this.peerConnection.close()),this.peerConnection=new this.WebRTC.RTCPeerConnection(e.rtcConfiguration),this.logger.log("New peer connection created"),"ontrack"in this.peerConnection?this.peerConnection.addEventListener("track",function(e){t.logger.log("track added"),t.observer.trackAdded(),t.emit("addTrack",e)}):(this.logger.warn("Using onaddstream which is deprecated"),this.peerConnection.onaddstream=function(e){t.logger.log("stream added"),t.emit("addStream",e)}),this.peerConnection.onicecandidate=function(e){t.emit("iceCandidate",e),e.candidate?t.logger.log("ICE candidate received: "+(null===e.candidate.candidate?null:e.candidate.candidate.trim())):null===e.candidate&&(t.logger.log("ICE candidate gathering complete"),t.triggerIceGatheringComplete())},this.peerConnection.onicegatheringstatechange=function(){switch(t.logger.log("RTCIceGatheringState changed: "+t.peerConnection.iceGatheringState),t.peerConnection.iceGatheringState){case"gathering":t.emit("iceGathering",t),!t.iceGatheringTimer&&e.iceCheckingTimeout&&(t.iceGatheringTimeout=!1,t.iceGatheringTimer=setTimeout(function(){t.logger.log("RTCIceChecking Timeout Triggered after "+e.iceCheckingTimeout+" milliseconds"),t.iceGatheringTimeout=!0,t.triggerIceGatheringComplete()},e.iceCheckingTimeout));break;case"complete":t.triggerIceGatheringComplete()}},this.peerConnection.oniceconnectionstatechange=function(){var e;switch(t.peerConnection.iceConnectionState){case"new":e="iceConnection";break;case"checking":e="iceConnectionChecking";break;case"connected":e="iceConnectionConnected";break;case"completed":e="iceConnectionCompleted";break;case"failed":e="iceConnectionFailed";break;case"disconnected":e="iceConnectionDisconnected";break;case"closed":e="iceConnectionClosed";break;default:return void t.logger.warn("Unknown iceConnection state: "+t.peerConnection.iceConnectionState)}t.logger.log("ICE Connection State changed to "+e),t.emit(e,t)}},i.prototype.acquire=function(e){var t=this;return e=this.checkAndDefaultConstraints(e),new Promise(function(i,r){t.logger.log("acquiring local media"),t.emit("userMediaRequest",e),e.audio||e.video?t.WebRTC.getUserMedia(e).then(function(e){t.observer.trackAdded(),t.emit("userMedia",e),i(e)}).catch(function(e){t.emit("userMediaFailed",e),r(e)}):i([])}).catch(function(e){if(e.type===a.TypeStrings.SessionDescriptionHandlerError)throw e;var i=new s.Exceptions.SessionDescriptionHandlerError("acquire",e,"unable to acquire streams");throw t.logger.error(i.message),i.error&&t.logger.error(i.error),i}).then(function(e){t.logger.log("acquired local media streams");try{return t.peerConnection.removeTrack&&t.peerConnection.getSenders().forEach(function(e){t.peerConnection.removeTrack(e)}),e}catch(i){return Promise.reject(i)}}).catch(function(e){if(e.type===a.TypeStrings.SessionDescriptionHandlerError)throw e;var i=new s.Exceptions.SessionDescriptionHandlerError("acquire",e,"error removing streams");throw t.logger.error(i.message),i.error&&t.logger.error(i.error),i}).then(function(e){try{(e=[].concat(e)).forEach(function(e){t.peerConnection.addTrack?e.getTracks().forEach(function(i){t.peerConnection.addTrack(i,e)}):t.peerConnection.addStream(e)})}catch(i){return Promise.reject(i)}return Promise.resolve()}).catch(function(e){if(e.type===a.TypeStrings.SessionDescriptionHandlerError)throw e;var i=new s.Exceptions.SessionDescriptionHandlerError("acquire",e,"error adding stream");throw t.logger.error(i.message),i.error&&t.logger.error(i.error),i})},i.prototype.hasOffer=function(e){var t="have-"+e+"-offer";return this.peerConnection.signalingState===t},i.prototype.isIceGatheringComplete=function(){return"complete"===this.peerConnection.iceGatheringState||this.iceGatheringTimeout},i.prototype.resetIceGatheringComplete=function(){this.iceGatheringTimeout=!1,this.logger.log("resetIceGatheringComplete"),this.iceGatheringTimer&&(clearTimeout(this.iceGatheringTimer),this.iceGatheringTimer=void 0),this.iceGatheringDeferred&&(this.iceGatheringDeferred.reject(),this.iceGatheringDeferred=void 0)},i.prototype.setDirection=function(e){var t=e.match(/a=(sendrecv|sendonly|recvonly|inactive)/);if(null===t)return this.direction=this.C.DIRECTION.NULL,void this.observer.directionChanged();var i=t[1];switch(i){case this.C.DIRECTION.SENDRECV:case this.C.DIRECTION.SENDONLY:case this.C.DIRECTION.RECVONLY:case this.C.DIRECTION.INACTIVE:this.direction=i;break;default:this.direction=this.C.DIRECTION.NULL}this.observer.directionChanged()},i.prototype.triggerIceGatheringComplete=function(){this.isIceGatheringComplete()&&(this.emit("iceGatheringComplete",this),this.iceGatheringTimer&&(clearTimeout(this.iceGatheringTimer),this.iceGatheringTimer=void 0),this.iceGatheringDeferred&&(this.iceGatheringDeferred.resolve(),this.iceGatheringDeferred=void 0))},i.prototype.waitForIceGatheringComplete=function(){return this.logger.log("waitForIceGatheringComplete"),this.isIceGatheringComplete()?(this.logger.log("ICE is already complete. Return resolved."),Promise.resolve()):(this.iceGatheringDeferred||(this.iceGatheringDeferred=M.Utils.defer()),this.logger.log("ICE is not complete. Returning promise"),this.iceGatheringDeferred?this.iceGatheringDeferred.promise:Promise.resolve())},i}(o.EventEmitter);t.SessionDescriptionHandler=l}).call(this,i(12))},function(e,t,i){(function(e){var r,n=this&&this.__extends||(r=function(e,t){return(r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var i in t)t.hasOwnProperty(i)&&(e[i]=t[i])})(e,t)},function(e,t){function i(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(i.prototype=t.prototype,new i)});Object.defineProperty(t,"__esModule",{value:!0});var o,a,s=i(0),M=i(5),u=i(4),c=i(26),l=i(2);(a=o=t.TransportStatus||(t.TransportStatus={}))[a.STATUS_CONNECTING=0]="STATUS_CONNECTING",a[a.STATUS_OPEN=1]="STATUS_OPEN",a[a.STATUS_CLOSING=2]="STATUS_CLOSING",a[a.STATUS_CLOSED=3]="STATUS_CLOSED";var N=function(t){function i(i,r){void 0===r&&(r={});var n=t.call(this,i,r)||this;return n.WebSocket=(e.window||e).WebSocket,n.type=s.TypeStrings.Transport,n.reconnectionAttempts=0,n.status=o.STATUS_CONNECTING,n.configuration={},n.loadConfig(r),n}return n(i,t),i.prototype.isConnected=function(){return this.status===o.STATUS_OPEN},i.prototype.sendPromise=function(e,t){if(void 0===t&&(t={}),!this.statusAssert(o.STATUS_OPEN,t.force))return this.onError("unable to send message - WebSocket not open"),Promise.reject();var i=e.toString();return this.ws?(!0===this.configuration.traceSip&&this.logger.log("sending WebSocket message:\n\n"+i+"\n"),this.ws.send(i),Promise.resolve({msg:i})):(this.onError("unable to send message - WebSocket does not exist"),Promise.reject())},i.prototype.disconnectPromise=function(e){var t=this;return void 0===e&&(e={}),this.disconnectionPromise?this.disconnectionPromise:(e.code=e.code||1e3,this.statusTransition(o.STATUS_CLOSING,e.force)?(this.emit("disconnecting"),this.disconnectionPromise=new Promise(function(i,r){t.disconnectDeferredResolve=i,t.reconnectTimer&&(clearTimeout(t.reconnectTimer),t.reconnectTimer=void 0),t.ws?(t.stopSendingKeepAlives(),t.logger.log("closing WebSocket "+t.server.wsUri),t.ws.close(e.code,e.reason)):r("Attempted to disconnect but the websocket doesn't exist")}),this.disconnectionPromise):this.status===o.STATUS_CLOSED?Promise.resolve({overrideEvent:!0}):this.connectionPromise?this.connectionPromise.then(function(){return Promise.reject("The websocket did not disconnect")}).catch(function(){return Promise.resolve({overrideEvent:!0})}):Promise.reject("The websocket did not disconnect"))},i.prototype.connectPromise=function(e){var t=this;return void 0===e&&(e={}),this.status!==o.STATUS_CLOSING||e.force?(this.connectionPromise||(this.server=this.server||this.getNextWsServer(e.force),this.connectionPromise=new Promise(function(i,r){if((t.status===o.STATUS_OPEN||t.status===o.STATUS_CLOSING)&&!e.force)return t.logger.warn("WebSocket "+t.server.wsUri+" is already connected"),void r("Failed status check - attempted to open a connection but already open/closing");t.connectDeferredResolve=i,t.status=o.STATUS_CONNECTING,t.emit("connecting"),t.logger.log("connecting to WebSocket "+t.server.wsUri),t.disposeWs();try{t.ws=new WebSocket(t.server.wsUri,"sip")}catch(n){return t.ws=null,t.status=o.STATUS_CLOSED,t.onError("error connecting to WebSocket "+t.server.wsUri+":"+n),void r("Failed to create a websocket")}t.ws?(t.connectionTimeout=setTimeout(function(){t.statusTransition(o.STATUS_CLOSED),t.logger.warn("took too long to connect - exceeded time set in configuration.connectionTimeout: "+t.configuration.connectionTimeout+"s"),t.emit("disconnected",{code:1e3}),t.connectionPromise=void 0,r("Connection timeout")},1e3*t.configuration.connectionTimeout),t.boundOnOpen=t.onOpen.bind(t),t.boundOnMessage=t.onMessage.bind(t),t.boundOnClose=t.onClose.bind(t),t.boundOnError=t.onWebsocketError.bind(t),t.ws.addEventListener("open",t.boundOnOpen),t.ws.addEventListener("message",t.boundOnMessage),t.ws.addEventListener("close",t.boundOnClose),t.ws.addEventListener("error",t.boundOnError)):r("Unexpected instance websocket not set")})),this.connectionPromise):Promise.reject("WebSocket "+this.server.wsUri+" is closing")},i.prototype.onMessage=function(e){var t,i=e.data;if(/^(\r\n)+$/.test(i))return this.clearKeepAliveTimeout(),void(!0===this.configuration.traceSip&&this.logger.log("received WebSocket message with CRLF Keep Alive response"));if(i){if("string"!=typeof i){try{t=String.fromCharCode.apply(null,new Uint8Array(i))}catch(r){return void this.logger.warn("received WebSocket binary message failed to be converted into string, message discarded")}!0===this.configuration.traceSip&&this.logger.log("received WebSocket binary message:\n\n"+i+"\n")}else!0===this.configuration.traceSip&&this.logger.log("received WebSocket text message:\n\n"+i+"\n"),t=i;this.emit("message",t)}else this.logger.warn("received empty message, message discarded")},i.prototype.onOpen=function(){if(this.status===o.STATUS_CLOSED){var e=this.ws;return this.disposeWs(),void e.close(1e3)}this.status=o.STATUS_OPEN,this.emit("connected"),this.connectionTimeout&&(clearTimeout(this.connectionTimeout),this.connectionTimeout=void 0),this.logger.log("WebSocket "+this.server.wsUri+" connected"),void 0!==this.reconnectTimer&&(clearTimeout(this.reconnectTimer),this.reconnectTimer=void 0),this.reconnectionAttempts=0,this.disconnectionPromise=void 0,this.disconnectDeferredResolve=void 0,this.startSendingKeepAlives(),this.connectDeferredResolve?this.connectDeferredResolve({overrideEvent:!0}):this.logger.warn("Unexpected websocket.onOpen with no connectDeferredResolve")},i.prototype.onClose=function(e){if(this.logger.log("WebSocket disconnected (code: "+e.code+(e.reason?"| reason: "+e.reason:"")+")"),this.status!==o.STATUS_CLOSING&&(this.logger.warn("WebSocket closed without SIP.js requesting it"),this.emit("transportError")),this.stopSendingKeepAlives(),this.connectionTimeout&&clearTimeout(this.connectionTimeout),this.connectionTimeout=void 0,this.connectionPromise=void 0,this.connectDeferredResolve=void 0,this.disconnectDeferredResolve)return this.disconnectDeferredResolve({overrideEvent:!0}),this.statusTransition(o.STATUS_CLOSED),void(this.disconnectDeferredResolve=void 0);this.status=o.STATUS_CLOSED,this.emit("disconnected",{code:e.code,reason:e.reason}),this.reconnect()},i.prototype.disposeWs=function(){this.ws&&(this.ws.removeEventListener("open",this.boundOnOpen),this.ws.removeEventListener("message",this.boundOnMessage),this.ws.removeEventListener("close",this.boundOnClose),this.ws.removeEventListener("error",this.boundOnError),this.ws=void 0)},i.prototype.onError=function(e){this.logger.warn("Transport error: "+e),this.emit("transportError")},i.prototype.onWebsocketError=function(){this.onError("The Websocket had an error")},i.prototype.reconnect=function(){var e=this;if(this.reconnectionAttempts>0&&this.logger.log("Reconnection attempt "+this.reconnectionAttempts+" failed"),this.noAvailableServers())return this.logger.warn("no available ws servers left - going to closed state"),this.status=o.STATUS_CLOSED,this.emit("closed"),void this.resetServerErrorStatus();this.isConnected()&&(this.logger.warn("attempted to reconnect while connected - forcing disconnect"),this.disconnect({force:!0})),this.reconnectionAttempts+=1,this.reconnectionAttempts>this.configuration.maxReconnectionAttempts?(this.logger.warn("maximum reconnection attempts for WebSocket "+this.server.wsUri),this.logger.log("transport "+this.server.wsUri+" failed | connection state set to 'error'"),this.server.isError=!0,this.emit("transportError"),this.server=this.getNextWsServer(),this.reconnectionAttempts=0,this.reconnect()):(this.logger.log("trying to reconnect to WebSocket "+this.server.wsUri+" (reconnection attempt "+this.reconnectionAttempts+")"),this.reconnectTimer=setTimeout(function(){e.connect(),e.reconnectTimer=void 0},1===this.reconnectionAttempts?0:1e3*this.configuration.reconnectionTimeout))},i.prototype.resetServerErrorStatus=function(){for(var e=0,t=this.configuration.wsServers;e<t.length;e++)t[e].isError=!1},i.prototype.getNextWsServer=function(e){if(void 0===e&&(e=!1),!this.noAvailableServers()){for(var t=[],i=0,r=this.configuration.wsServers;i<r.length;i++){var n=r[i];n.isError&&!e||(0===t.length?t.push(n):n.weight>t[0].weight?t=[n]:n.weight===t[0].weight&&t.push(n))}return t[Math.floor(Math.random()*t.length)]}this.logger.warn("attempted to get next ws server but there are no available ws servers left")},i.prototype.noAvailableServers=function(){for(var e=0,t=this.configuration.wsServers;e<t.length;e++)if(!t[e].isError)return!1;return!0},i.prototype.sendKeepAlive=function(){var e=this;if(!this.keepAliveDebounceTimeout)return this.keepAliveDebounceTimeout=setTimeout(function(){e.emit("keepAliveDebounceTimeout"),e.clearKeepAliveTimeout()},1e3*this.configuration.keepAliveDebounce),this.send("\r\n\r\n")},i.prototype.clearKeepAliveTimeout=function(){this.keepAliveDebounceTimeout&&clearTimeout(this.keepAliveDebounceTimeout),this.keepAliveDebounceTimeout=void 0},i.prototype.startSendingKeepAlives=function(){var e,t,i=this;this.configuration.keepAliveInterval&&!this.keepAliveInterval&&(this.keepAliveInterval=setInterval(function(){i.sendKeepAlive(),i.startSendingKeepAlives()},(t=.8*(e=this.configuration.keepAliveInterval),1e3*(Math.random()*(e-t)+t))))},i.prototype.stopSendingKeepAlives=function(){this.keepAliveInterval&&clearInterval(this.keepAliveInterval),this.keepAliveDebounceTimeout&&clearTimeout(this.keepAliveDebounceTimeout),this.keepAliveInterval=void 0,this.keepAliveDebounceTimeout=void 0},i.prototype.statusAssert=function(e,t){return e===this.status||(t?(this.logger.warn("Attempted to assert "+Object.keys(o)[this.status]+" as "+Object.keys(o)[e]+"- continuing with option: 'force'"),!0):(this.logger.warn("Tried to assert "+Object.keys(o)[e]+" but is currently "+Object.keys(o)[this.status]),!1))},i.prototype.statusTransition=function(e,t){return void 0===t&&(t=!1),this.logger.log("Attempting to transition status from "+Object.keys(o)[this.status]+" to "+Object.keys(o)[e]),e===o.STATUS_CONNECTING&&this.statusAssert(o.STATUS_CLOSED,t)||e===o.STATUS_OPEN&&this.statusAssert(o.STATUS_CONNECTING,t)||e===o.STATUS_CLOSING&&this.statusAssert(o.STATUS_OPEN,t)||e===o.STATUS_CLOSED?(this.status=e,!0):(this.logger.warn("Status transition failed - result: no-op - reason: either gave an nonexistent status or attempted illegal transition"),!1)},i.prototype.loadConfig=function(e){var t={wsServers:[{scheme:"WSS",sipUri:"<sip:edge.sip.onsip.com;transport=ws;lr>",weight:0,wsUri:"wss://edge.sip.onsip.com",isError:!1}],connectionTimeout:5,maxReconnectionAttempts:3,reconnectionTimeout:4,keepAliveInterval:0,keepAliveDebounce:10,traceSip:!1},i=this.getConfigurationCheck();for(var r in i.mandatory){if(!e.hasOwnProperty(r))throw new M.Exceptions.ConfigurationError(r);var n=e[r];if(void 0===(o=i.mandatory[r](n)))throw new M.Exceptions.ConfigurationError(r,n);t[r]=o}for(var r in i.optional)if(e.hasOwnProperty(r)){var o;if((n=e[r])instanceof Array&&0===n.length||null===n||""===n||void 0===n||"number"==typeof n&&isNaN(n))continue;if(void 0===(o=i.optional[r](n)))throw new M.Exceptions.ConfigurationError(r,n);t[r]=o}var a={};for(var r in t)t.hasOwnProperty(r)&&(a[r]={value:t[r]});for(var r in Object.defineProperties(this.configuration,a),this.logger.log("configuration parameters after validation:"),t)t.hasOwnProperty(r)&&this.logger.log("· "+r+": "+JSON.stringify(t[r]))},i.prototype.getConfigurationCheck=function(){return{mandatory:{},optional:{wsServers:function(e){if("string"==typeof e)e=[{wsUri:e}];else{if(!(e instanceof Array))return;for(var t=0;t<e.length;t++)"string"==typeof e[t]&&(e[t]={wsUri:e[t]})}if(0===e.length)return!1;for(var i=0,r=e;i<r.length;i++){var n=r[i];if(!n.wsUri)return;if(n.weight&&!Number(n.weight))return;var o=u.Grammar.parse(n.wsUri,"absoluteURI");if(-1===o)return;if(["wss","ws","udp"].indexOf(o.scheme)<0)return;n.sipUri="<sip:"+o.host+(o.port?":"+o.port:"")+";transport="+o.scheme.replace(/^wss$/i,"ws")+";lr>",n.weight||(n.weight=0),n.isError=!1,n.scheme=o.scheme.toUpperCase()}return e},keepAliveInterval:function(e){if(l.Utils.isDecimal(e)){var t=Number(e);if(t>0)return t}},keepAliveDebounce:function(e){if(l.Utils.isDecimal(e)){var t=Number(e);if(t>0)return t}},traceSip:function(e){if("boolean"==typeof e)return e},connectionTimeout:function(e){if(l.Utils.isDecimal(e)){var t=Number(e);if(t>0)return t}},maxReconnectionAttempts:function(e){if(l.Utils.isDecimal(e)){var t=Number(e);if(t>=0)return t}},reconnectionTimeout:function(e){if(l.Utils.isDecimal(e)){var t=Number(e);if(t>0)return t}}}}},i.C=o,i}(c.Transport);t.Transport=N}).call(this,i(12))},function(e,t,i){Object.defineProperty(t,"__esModule",{value:!0});var r=i(7);t.ClientContext=r.ClientContext;var n=i(1);t.C=n.C;var o=i(13);t.Dialog=o.Dialog;var a=i(18);t.DigestAuthentication=a.DigestAuthentication;var s=i(0);t.DialogStatus=s.DialogStatus,t.SessionStatus=s.SessionStatus,t.TransactionStatus=s.TransactionStatus,t.TypeStrings=s.TypeStrings,t.UAStatus=s.UAStatus;var M=i(5);t.Exceptions=M.Exceptions;var u=i(4);t.Grammar=u.Grammar;var c=i(19);t.LoggerFactory=c.LoggerFactory;var l=i(17);t.NameAddrHeader=l.NameAddrHeader;var N=i(20);t.Parser=N.Parser;var g=i(21);t.PublishContext=g.PublishContext;var d=i(22);t.RegisterContext=d.RegisterContext;var T=i(8);t.RequestSender=T.RequestSender;var j=i(23).SanityCheck.sanityCheck;t.sanityCheck=j;var y=i(14);t.ServerContext=y.ServerContext;var D=i(24);t.InviteClientContext=D.InviteClientContext,t.InviteServerContext=D.InviteServerContext,t.ReferClientContext=D.ReferClientContext,t.ReferServerContext=D.ReferServerContext,t.Session=D.Session;var I=i(6);t.IncomingRequest=I.IncomingRequest,t.IncomingResponse=I.IncomingResponse,t.OutgoingRequest=I.OutgoingRequest;var p=i(25);t.Subscription=p.Subscription;var L=i(11);t.Timers=L.Timers;var z=i(9),h={AckClientTransaction:z.AckClientTransaction,checkTransaction:z.checkTransaction,InviteClientTransaction:z.InviteClientTransaction,InviteServerTransaction:z.InviteServerTransaction,NonInviteClientTransaction:z.NonInviteClientTransaction,NonInviteServerTransaction:z.NonInviteServerTransaction};t.Transactions=h;var A=i(26);t.Transport=A.Transport;var C=i(27);t.UA=C.UA;var S=i(10);t.URI=S.URI;var f=i(2);t.Utils=f.Utils;var m=i(36);t.Web=m;var v=i(16),E=v.title;t.name=E;var O=v.version;t.version=O},function(e,t,i){var r,n=this&&this.__extends||(r=function(e,t){return(r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var i in t)t.hasOwnProperty(i)&&(e[i]=t[i])})(e,t)},function(e,t){function i(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(i.prototype=t.prototype,new i)});Object.defineProperty(t,"__esModule",{value:!0});var o=i(17),a=i(10),s=function(e){function t(i,r,n,o){var a=e.call(this)||this;return a.message=i,a.expected=r,a.found=n,a.location=o,a.name="SyntaxError","function"==typeof Error.captureStackTrace&&Error.captureStackTrace(a,t),a}return n(t,e),t.buildMessage=function(e,t){function i(e){return e.charCodeAt(0).toString(16).toUpperCase()}function r(e){return e.replace(/\\/g,"\\\\").replace(/"/g,'\\"').replace(/\0/g,"\\0").replace(/\t/g,"\\t").replace(/\n/g,"\\n").replace(/\r/g,"\\r").replace(/[\x00-\x0F]/g,function(e){return"\\x0"+i(e)}).replace(/[\x10-\x1F\x7F-\x9F]/g,function(e){return"\\x"+i(e)})}function n(e){return e.replace(/\\/g,"\\\\").replace(/\]/g,"\\]").replace(/\^/g,"\\^").replace(/-/g,"\\-").replace(/\0/g,"\\0").replace(/\t/g,"\\t").replace(/\n/g,"\\n").replace(/\r/g,"\\r").replace(/[\x00-\x0F]/g,function(e){return"\\x0"+i(e)}).replace(/[\x10-\x1F\x7F-\x9F]/g,function(e){return"\\x"+i(e)})}function o(e){switch(e.type){case"literal":return'"'+r(e.text)+'"';case"class":var t=e.parts.map(function(e){return Array.isArray(e)?n(e[0])+"-"+n(e[1]):n(e)});return"["+(e.inverted?"^":"")+t+"]";case"any":return"any character";case"end":return"end of input";case"other":return e.description}}return"Expected "+function(e){var t,i,r=e.map(o);if(r.sort(),r.length>0){for(t=1,i=1;t<r.length;t++)r[t-1]!==r[t]&&(r[i]=r[t],i++);r.length=i}switch(r.length){case 1:return r[0];case 2:return r[0]+" or "+r[1];default:return r.slice(0,-1).join(", ")+", or "+r[r.length-1]}}(e)+" but "+((a=t)?'"'+r(a)+'"':"end of input")+" found.";var a},t}(Error);t.SyntaxError=s,t.parse=function(e,t){t=void 0!==t?t:{};var i,r,n,M,u={},c={Contact:Bs,Name_Addr_Header:function(){var e,t,i,r,n,o,a;for(e=pa,t=[],i=Ws();i!==u;)t.push(i),i=Ws();if(t!==u)if((i=is())!==u)if(Ns()!==u)if(ts()!==u){for(r=[],n=pa,(o=ns())!==u&&(a=Zs())!==u?n=o=[o,a]:(pa=n,n=u);n!==u;)r.push(n),n=pa,(o=ns())!==u&&(a=Zs())!==u?n=o=[o,a]:(pa=n,n=u);r!==u?(La=e,e=t=Wr()):(pa=e,e=u)}else pa=e,e=u;else pa=e,e=u;else pa=e,e=u;else pa=e,e=u;return e},Record_Route:function(){var e,t,i,r,n;if(e=pa,oM()!==u){for(t=[],i=pa,(r=rs())!==u&&(n=oM())!==u?i=r=[r,n]:(pa=i,i=u);i!==u;)t.push(i),i=pa,(r=rs())!==u&&(n=oM())!==u?i=r=[r,n]:(pa=i,i=u);t!==u?(La=e,e=mn()):(pa=e,e=u)}else pa=e,e=u;return e},Request_Response:Os,SIP_URI:Ns,Subscription_State:function(){var t,i,r,n,o,a,s,M;if(t=pa,s=pa,e.substr(pa,6).toLowerCase()===Wn?(M=e.substr(pa,6),pa+=6):(M=u,Oa(Gn)),M===u&&(e.substr(pa,7).toLowerCase()===Fn?(M=e.substr(pa,7),pa+=7):(M=u,Oa(Zn)),M===u&&(e.substr(pa,10).toLowerCase()===Jn?(M=e.substr(pa,10),pa+=10):(M=u,Oa(qn)),M===u&&(M=qa()))),M!==u&&(La=s,M=Kn()),(i=M)!==u){for(r=[],n=pa,(o=ns())!==u&&(a=sM())!==u?n=o=[o,a]:(pa=n,n=u);n!==u;)r.push(n),n=pa,(o=ns())!==u&&(a=sM())!==u?n=o=[o,a]:(pa=n,n=u);r!==u?t=i=[i,r]:(pa=t,t=u)}else pa=t,t=u;return t},Supported:function(){var e,t,i,r,n,o;if(e=pa,t=pa,(i=qa())!==u){for(r=[],n=pa,rs()!==u&&(o=qa())!==u?(La=n,n=Bn(i,o)):(pa=n,n=u);n!==u;)r.push(n),n=pa,rs()!==u&&(o=qa())!==u?(La=n,n=Bn(i,o)):(pa=n,n=u);r!==u?(La=t,t=i=Hn(i,r)):(pa=t,t=u)}else pa=t,t=u;return t===u&&(t=null),t!==u&&(La=e,t=po(t)),t},Require:function(){var e,t,i,r,n,o;if(e=pa,t=pa,(i=qa())!==u){for(r=[],n=pa,rs()!==u&&(o=qa())!==u?(La=n,n=Bn(i,o)):(pa=n,n=u);n!==u;)r.push(n),n=pa,rs()!==u&&(o=qa())!==u?(La=n,n=Bn(i,o)):(pa=n,n=u);r!==u?(La=t,t=i=Hn(i,r)):(pa=t,t=u)}else pa=t,t=u;return t===u&&(t=null),t!==u&&(La=e,t=Vn(t)),t},Via:function(){var e,t,i,r,n,o;if(e=pa,(t=uM())!==u){for(i=[],r=pa,(n=rs())!==u&&(o=uM())!==u?r=n=[n,o]:(pa=r,r=u);r!==u;)i.push(r),r=pa,(n=rs())!==u&&(o=uM())!==u?r=n=[n,o]:(pa=r,r=u);i!==u?e=t=[t,i]:(pa=e,e=u)}else pa=e,e=u;return e},absoluteURI:xs,Call_ID:Ps,Content_Disposition:function(){var t,i,r,n,o,a,s,M;if(t=pa,s=pa,e.substr(pa,6).toLowerCase()===or?(M=e.substr(pa,6),pa+=6):(M=u,Oa(ar)),M===u&&(e.substr(pa,7).toLowerCase()===sr?(M=e.substr(pa,7),pa+=7):(M=u,Oa(Mr)),M===u&&(e.substr(pa,4).toLowerCase()===ur?(M=e.substr(pa,4),pa+=4):(M=u,Oa(cr)),M===u&&(e.substr(pa,5).toLowerCase()===lr?(M=e.substr(pa,5),pa+=5):(M=u,Oa(Nr)),M===u&&(M=qa())))),M!==u&&(La=s,M=gr()),(i=M)!==u){for(r=[],n=pa,(o=ns())!==u&&(a=Js())!==u?n=o=[o,a]:(pa=n,n=u);n!==u;)r.push(n),n=pa,(o=ns())!==u&&(a=Js())!==u?n=o=[o,a]:(pa=n,n=u);r!==u?t=i=[i,r]:(pa=t,t=u)}else pa=t,t=u;return t},Content_Length:function(){var e,t,i;if(e=pa,t=[],(i=wa())!==u)for(;i!==u;)t.push(i),i=wa();else t=u;return t!==u&&(La=e,t=pr(t)),t},Content_Type:function(){var t,i;return t=pa,(i=function(){var t,i,r,n,o,a,s,M,c,l,N;if(t=pa,e.substr(pa,4).toLowerCase()===zr?(N=e.substr(pa,4),pa+=4):(N=u,Oa(hr)),N===u&&(e.substr(pa,5).toLowerCase()===Ar?(N=e.substr(pa,5),pa+=5):(N=u,Oa(Cr)),N===u&&(e.substr(pa,5).toLowerCase()===Sr?(N=e.substr(pa,5),pa+=5):(N=u,Oa(fr)),N===u&&(e.substr(pa,5).toLowerCase()===mr?(N=e.substr(pa,5),pa+=5):(N=u,Oa(vr)),N===u&&(e.substr(pa,11).toLowerCase()===Er?(N=e.substr(pa,11),pa+=11):(N=u,Oa(Or)),N===u&&(N=qs()))))),(l=N)===u&&(l=function(){var t;return e.substr(pa,7).toLowerCase()===xr?(t=e.substr(pa,7),pa+=7):(t=u,Oa(wr)),t===u&&(e.substr(pa,9).toLowerCase()===kr?(t=e.substr(pa,9),pa+=9):(t=u,Oa(br)),t===u&&(t=qs())),t}()),(i=l)!==u)if((r=Xa())!==u)if((c=qs())===u&&(c=qa()),(n=c)!==u){for(o=[],a=pa,(s=ns())!==u&&(M=Ks())!==u?a=s=[s,M]:(pa=a,a=u);a!==u;)o.push(a),a=pa,(s=ns())!==u&&(M=Ks())!==u?a=s=[s,M]:(pa=a,a=u);o!==u?t=i=[i,r,n,o]:(pa=t,t=u)}else pa=t,t=u;else pa=t,t=u;else pa=t,t=u;return t}())!==u&&(La=t,i=Lr()),i},CSeq:function(){var e,t,i,r;return e=pa,(t=function(){var e,t,i;if(e=pa,t=[],(i=wa())!==u)for(;i!==u;)t.push(i),i=wa();else t=u;return t!==u&&(La=e,t=Qr(t)),t}())!==u&&(i=Ga())!==u&&(r=_s())!==u?e=t=[t,i,r]:(pa=e,e=u),e},displayName:Ws,Event:function(){var t,i,r,n,o,a;if(t=pa,(i=function(){var t,i,r,n,o,a,s;if(t=pa,i=pa,(r=Ka())!==u){for(n=[],o=pa,46===e.charCodeAt(pa)?(a=ee,pa++):(a=u,Oa(te)),a!==u&&(s=Ka())!==u?o=a=[a,s]:(pa=o,o=u);o!==u;)n.push(o),o=pa,46===e.charCodeAt(pa)?(a=ee,pa++):(a=u,Oa(te)),a!==u&&(s=Ka())!==u?o=a=[a,s]:(pa=o,o=u);n!==u?i=r=[r,n]:(pa=i,i=u)}else pa=i,i=u;return i!==u?e.substring(t,pa):i}())!==u){for(r=[],n=pa,(o=ns())!==u&&(a=Zs())!==u?n=o=[o,a]:(pa=n,n=u);n!==u;)r.push(n),n=pa,(o=ns())!==u&&(a=Zs())!==u?n=o=[o,a]:(pa=n,n=u);r!==u?(La=t,t=i=Rr(i)):(pa=t,t=u)}else pa=t,t=u;return t},From:function(){var e,t,i,r,n,o;if(e=pa,(t=ls())===u&&(t=Vs()),t!==u){for(i=[],r=pa,(n=ns())!==u&&(o=$s())!==u?r=n=[n,o]:(pa=r,r=u);r!==u;)i.push(r),r=pa,(n=ns())!==u&&(o=$s())!==u?r=n=[n,o]:(pa=r,r=u);i!==u?(La=e,e=t=_r()):(pa=e,e=u)}else pa=e,e=u;return e},host:ys,Max_Forwards:function(){var e,t,i;if(e=pa,t=[],(i=wa())!==u)for(;i!==u;)t.push(i),i=wa();else t=u;return t!==u&&(La=e,t=Vr(t)),t},Min_SE:function(){var e,t,i,r,n,o;if(e=pa,(t=Fs())!==u){for(i=[],r=pa,(n=ns())!==u&&(o=Zs())!==u?r=n=[n,o]:(pa=r,r=u);r!==u;)i.push(r),r=pa,(n=ns())!==u&&(o=Zs())!==u?r=n=[n,o]:(pa=r,r=u);i!==u?(La=e,e=t=ea(t)):(pa=e,e=u)}else pa=e,e=u;return e},Proxy_Authenticate:function(){return eM()},quoted_string:ss,Refer_To:function(){var e,t,i,r,n,o;if(e=pa,(t=ls())===u&&(t=Vs())===u&&(t=pa,(i=is())===u&&(i=null),i!==u&&(r=xs())!==u?((n=ts())===u&&(n=null),n!==u?t=i=[i,r,n]:(pa=t,t=u)):(pa=t,t=u)),t!==u){for(i=[],r=pa,(n=ns())!==u&&(o=Zs())!==u?r=n=[n,o]:(pa=r,r=u);r!==u;)i.push(r),r=pa,(n=ns())!==u&&(o=Zs())!==u?r=n=[n,o]:(pa=r,r=u);i!==u?(La=e,e=t=En()):(pa=e,e=u)}else pa=e,e=u;return e},Replaces:function(){var e,t,i,r,n,o,a;if(e=pa,o=pa,(a=Ps())!==u&&(La=o,a=xn()),a!==u){for(t=[],i=pa,(r=ns())!==u&&(n=aM())!==u?i=r=[r,n]:(pa=i,i=u);i!==u;)t.push(i),i=pa,(r=ns())!==u&&(n=aM())!==u?i=r=[r,n]:(pa=i,i=u);t!==u?(La=e,e=On()):(pa=e,e=u)}else pa=e,e=u;return e},Session_Expires:function(){var e,t,i,r,n,o;if(e=pa,(t=Fs())!==u){for(i=[],r=pa,(n=ns())!==u&&(o=gM())!==u?r=n=[n,o]:(pa=r,r=u);r!==u;)i.push(r),r=pa,(n=ns())!==u&&(o=gM())!==u?r=n=[n,o]:(pa=r,r=u);i!==u?(La=e,e=t=Go(t)):(pa=e,e=u)}else pa=e,e=u;return e},stun_URI:function(){var t,i,r,n,o,a;return t=pa,o=pa,e.substr(pa,5).toLowerCase()===ta?(a=e.substr(pa,5),pa+=5):(a=u,Oa(ia)),a===u&&(e.substr(pa,4).toLowerCase()===ra?(a=e.substr(pa,4),pa+=4):(a=u,Oa(na))),a!==u&&(La=o,a=oa(a)),(i=a)!==u?(58===e.charCodeAt(pa)?(r=Y,pa++):(r=u,Oa(U)),r!==u&&(n=dM())!==u?t=i=[i,r,n]:(pa=t,t=u)):(pa=t,t=u),t},To:function(){var e,t,i,r,n,o;if(e=pa,(t=ls())===u&&(t=Vs()),t!==u){for(i=[],r=pa,(n=ns())!==u&&(o=MM())!==u?r=n=[n,o]:(pa=r,r=u);r!==u;)i.push(r),r=pa,(n=ns())!==u&&(o=MM())!==u?r=n=[n,o]:(pa=r,r=u);i!==u?(La=e,e=t=Lo()):(pa=e,e=u)}else pa=e,e=u;return e},turn_URI:function(){var t,i,r,n,o,a,s,M,c;return t=pa,M=pa,e.substr(pa,5).toLowerCase()===ua?(c=e.substr(pa,5),pa+=5):(c=u,Oa(ca)),c===u&&(e.substr(pa,4).toLowerCase()===la?(c=e.substr(pa,4),pa+=4):(c=u,Oa(Na))),c!==u&&(La=M,c=oa(c)),(i=c)!==u?(58===e.charCodeAt(pa)?(r=Y,pa++):(r=u,Oa(U)),r!==u&&(n=dM())!==u?(o=pa,e.substr(pa,11)===sa?(a=sa,pa+=11):(a=u,Oa(Ma)),a!==u&&(s=lM())!==u?o=a=[a,s]:(pa=o,o=u),o===u&&(o=null),o!==u?t=i=[i,r,n,o]:(pa=t,t=u)):(pa=t,t=u)):(pa=t,t=u),t},uuid:function(){var t,i,r,n,o,a,s,M;return t=pa,a=pa,(s=TM())!==u&&(M=TM())!==u?a=s=[s,M]:(pa=a,a=u),a!==u?(45===e.charCodeAt(pa)?(i=q,pa++):(i=u,Oa(K)),i!==u&&TM()!==u?(45===e.charCodeAt(pa)?(r=q,pa++):(r=u,Oa(K)),r!==u&&TM()!==u?(45===e.charCodeAt(pa)?(n=q,pa++):(n=u,Oa(K)),n!==u&&TM()!==u?(45===e.charCodeAt(pa)?(o=q,pa++):(o=u,Oa(K)),o!==u&&function(){var e,t,i,r;return e=pa,(t=TM())!==u&&(i=TM())!==u&&(r=TM())!==u?e=t=[t,i,r]:(pa=e,e=u),e}()!==u?(La=t,t=ga()):(pa=t,t=u)):(pa=t,t=u)):(pa=t,t=u)):(pa=t,t=u)):(pa=t,t=u),t},WWW_Authenticate:function(){return eM()},challenge:eM,sipfrag:function(){var e,t,i,r,n,o;if(e=pa,(t=Os())!==u){for(i=[],r=vs();r!==u;)i.push(r),r=vs();i!==u?(r=pa,(n=xa())!==u&&(o=function(){var e,t;for(e=[],t=Ua();t!==u;)e.push(t),t=Ua();return e}())!==u?r=n=[n,o]:(pa=r,r=u),r===u&&(r=null),r!==u?e=t=[t,i,r]:(pa=e,e=u)):(pa=e,e=u)}else pa=e,e=u;return e},Referred_By:function(){var t,i,r,n,o,a,s,M,c;if(t=pa,e.substr(pa,11)===da?(i=da,pa+=11):(i=u,Oa(Ta)),i===u&&(98===e.charCodeAt(pa)?(i=ja,pa++):(i=u,Oa(ya))),i!==u)if((r=function(){var t,i,r;for(t=pa,i=[],(r=Ra())===u&&(r=_a());r!==u;)i.push(r),(r=Ra())===u&&(r=_a());return i!==u?(58===e.charCodeAt(pa)?(r=Y,pa++):(r=u,Oa(U)),r!==u&&Fa()!==u?(La=t,t=i=ye()):(pa=t,t=u)):(pa=t,t=u),t}())!==u)if((c=Vs())===u&&(c=ls()),(n=c)!==u){for(o=[],a=pa,(s=ns())!==u?((M=jM())===u&&(M=Zs()),M!==u?a=s=[s,M]:(pa=a,a=u)):(pa=a,a=u);a!==u;)o.push(a),a=pa,(s=ns())!==u?((M=jM())===u&&(M=Zs()),M!==u?a=s=[s,M]:(pa=a,a=u)):(pa=a,a=u);o!==u?t=i=[i,r,n,o]:(pa=t,t=u)}else pa=t,t=u;else pa=t,t=u;else pa=t,t=u;return t}},l=Bs,N="\r\n",g=fa("\r\n",!1),d=/^[0-9]/,T=ma([["0","9"]],!1,!1),j=/^[a-zA-Z]/,y=ma([["a","z"],["A","Z"]],!1,!1),D=/^[0-9a-fA-F]/,I=ma([["0","9"],["a","f"],["A","F"]],!1,!1),p=/^[\0-\xFF]/,L=ma([["\0","ÿ"]],!1,!1),z=/^["]/,h=ma(['"'],!1,!1),A=" ",C=fa(" ",!1),S="\t",f=fa("\t",!1),m=/^[a-zA-Z0-9]/,v=ma([["a","z"],["A","Z"],["0","9"]],!1,!1),E=";",O=fa(";",!1),x="/",w=fa("/",!1),k="?",b=fa("?",!1),Y=":",U=fa(":",!1),Q="@",R=fa("@",!1),_="&",P=fa("&",!1),B="=",H=fa("=",!1),V="+",W=fa("+",!1),G="$",F=fa("$",!1),Z=",",J=fa(",",!1),q="-",K=fa("-",!1),$="_",X=fa("_",!1),ee=".",te=fa(".",!1),ie="!",re=fa("!",!1),ne="~",oe=fa("~",!1),ae="*",se=fa("*",!1),Me="'",ue=fa("'",!1),ce="(",le=fa("(",!1),Ne=")",ge=fa(")",!1),de="%",Te=fa("%",!1),je=function(){return" "},ye=function(){return":"},De=/^[\x80-\uFFFF]/,Ie=ma([["",""]],!1,!1),pe=/^[\x80-\xBF]/,Le=ma([["","¿"]],!1,!1),ze="`",he=fa("`",!1),Ae="<",Ce=fa("<",!1),Se=">",fe=fa(">",!1),me="\\",ve=fa("\\",!1),Ee="[",Oe=fa("[",!1),xe="]",we=fa("]",!1),ke="{",be=fa("{",!1),Ye="}",Ue=fa("}",!1),Qe=function(){return"*"},Re=function(){return"/"},_e=function(){return"="},Pe=function(){return">"},Be=function(){return"<"},He=function(){return","},Ve=function(){return";"},We=function(){return":"},Ge=function(){return'"'},Fe=/^[\]-~]/,Ze=ma([["]","~"]],!1,!1),Je=function(e){return e},qe=/^[#-[]/,Ke=ma([["#","["]],!1,!1),$e=/^[\0-\t]/,Xe=ma([["\0","\t"]],!1,!1),et=/^[\x0B-\f]/,tt=ma([["\v","\f"]],!1,!1),it=/^[\x0E-\x7F]/,rt=ma([["",""]],!1,!1),nt=function(){(t=t||{data:{}}).data.uri=new a.URI(t.data.scheme,t.data.user,t.data.host,t.data.port),delete t.data.scheme,delete t.data.user,delete t.data.host,delete t.data.host_type,delete t.data.port},ot=function(){(t=t||{data:{}}).data.uri=new a.URI(t.data.scheme,t.data.user,t.data.host,t.data.port,t.data.uri_params,t.data.uri_headers),delete t.data.scheme,delete t.data.user,delete t.data.host,delete t.data.host_type,delete t.data.port,delete t.data.uri_params,"SIP_URI"===t.startRule&&(t.data=t.data.uri)},at="sips",st=fa("sips",!0),Mt="sip",ut=fa("sip",!0),ct=function(e){(t=t||{data:{}}).data.scheme=e},lt=function(){(t=t||{data:{}}).data.user=decodeURIComponent(Ca().slice(0,-1))},Nt=function(){(t=t||{data:{}}).data.password=Ca()},gt=function(){return(t=t||{data:{}}).data.host=Ca(),t.data.host},dt=function(){return(t=t||{data:{}}).data.host_type="domain",Ca()},Tt=/^[a-zA-Z0-9_\-]/,jt=ma([["a","z"],["A","Z"],["0","9"],"_","-"],!1,!1),yt=/^[a-zA-Z0-9\-]/,Dt=ma([["a","z"],["A","Z"],["0","9"],"-"],!1,!1),It=function(){return(t=t||{data:{}}).data.host_type="IPv6",Ca()},pt="::",Lt=fa("::",!1),zt=function(){return(t=t||{data:{}}).data.host_type="IPv6",Ca()},ht=function(){return(t=t||{data:{}}).data.host_type="IPv4",Ca()},At="25",Ct=fa("25",!1),St=/^[0-5]/,ft=ma([["0","5"]],!1,!1),mt="2",vt=fa("2",!1),Et=/^[0-4]/,Ot=ma([["0","4"]],!1,!1),xt="1",wt=fa("1",!1),kt=/^[1-9]/,bt=ma([["1","9"]],!1,!1),Yt=function(e){return t=t||{data:{}},e=parseInt(e.join("")),t.data.port=e,e},Ut="transport=",Qt=fa("transport=",!0),Rt="udp",_t=fa("udp",!0),Pt="tcp",Bt=fa("tcp",!0),Ht="sctp",Vt=fa("sctp",!0),Wt="tls",Gt=fa("tls",!0),Ft=function(e){(t=t||{data:{}}).data.uri_params||(t.data.uri_params={}),t.data.uri_params.transport=e.toLowerCase()},Zt="user=",Jt=fa("user=",!0),qt="phone",Kt=fa("phone",!0),$t="ip",Xt=fa("ip",!0),ei=function(e){(t=t||{data:{}}).data.uri_params||(t.data.uri_params={}),t.data.uri_params.user=e.toLowerCase()},ti="method=",ii=fa("method=",!0),ri=function(e){(t=t||{data:{}}).data.uri_params||(t.data.uri_params={}),t.data.uri_params.method=e},ni="ttl=",oi=fa("ttl=",!0),ai=function(e){(t=t||{data:{}}).data.params||(t.data.params={}),t.data.params.ttl=e},si="maddr=",Mi=fa("maddr=",!0),ui=function(e){(t=t||{data:{}}).data.uri_params||(t.data.uri_params={}),t.data.uri_params.maddr=e},ci="lr",li=fa("lr",!0),Ni=function(){(t=t||{data:{}}).data.uri_params||(t.data.uri_params={}),t.data.uri_params.lr=void 0},gi=function(e,i){(t=t||{data:{}}).data.uri_params||(t.data.uri_params={}),i=null===i?void 0:i[1],t.data.uri_params[e.toLowerCase()]=i},di=function(e,i){e=e.join("").toLowerCase(),i=i.join(""),(t=t||{data:{}}).data.uri_headers||(t.data.uri_headers={}),t.data.uri_headers[e]?t.data.uri_headers[e].push(i):t.data.uri_headers[e]=[i]},Ti=function(){"Refer_To"===(t=t||{data:{}}).startRule&&(t.data.uri=new a.URI(t.data.scheme,t.data.user,t.data.host,t.data.port,t.data.uri_params,t.data.uri_headers),delete t.data.scheme,delete t.data.user,delete t.data.host,delete t.data.host_type,delete t.data.port,delete t.data.uri_params)},ji="//",yi=fa("//",!1),Di=function(){(t=t||{data:{}}).data.scheme=Ca()},Ii=fa("SIP",!0),pi=function(){(t=t||{data:{}}).data.sip_version=Ca()},Li="INVITE",zi=fa("INVITE",!1),hi="ACK",Ai=fa("ACK",!1),Ci="OPTIONS",Si=fa("OPTIONS",!1),fi="BYE",mi=fa("BYE",!1),vi="CANCEL",Ei=fa("CANCEL",!1),Oi="REGISTER",xi=fa("REGISTER",!1),wi="SUBSCRIBE",ki=fa("SUBSCRIBE",!1),bi="NOTIFY",Yi=fa("NOTIFY",!1),Ui="REFER",Qi=fa("REFER",!1),Ri="PUBLISH",_i=fa("PUBLISH",!1),Pi=function(){return(t=t||{data:{}}).data.method=Ca(),t.data.method},Bi=function(e){(t=t||{data:{}}).data.status_code=parseInt(e.join(""))},Hi=function(){(t=t||{data:{}}).data.reason_phrase=Ca()},Vi=function(){(t=t||{data:{}}).data=Ca()},Wi=function(){var e,i;for(i=(t=t||{data:{}}).data.multi_header.length,e=0;e<i;e++)if(null===t.data.multi_header[e].parsed){t.data=null;break}null!==t.data?t.data=t.data.multi_header:t.data=-1},Gi=function(){var e;(t=t||{data:{}}).data.multi_header||(t.data.multi_header=[]);try{e=new o.NameAddrHeader(t.data.uri,t.data.displayName,t.data.params),delete t.data.uri,delete t.data.displayName,delete t.data.params}catch(n){e=null}t.data.multi_header.push({position:pa,offset:Sa().start.offset,parsed:e})},Fi=function(e){'"'===(e=Ca().trim())[0]&&(e=e.substring(1,e.length-1)),(t=t||{data:{}}).data.displayName=e},Zi="q",Ji=fa("q",!0),qi=function(e){(t=t||{data:{}}).data.params||(t.data.params={}),t.data.params.q=e},Ki="expires",$i=fa("expires",!0),Xi=function(e){(t=t||{data:{}}).data.params||(t.data.params={}),t.data.params.expires=e},er=function(e){return parseInt(e.join(""))},tr="0",ir=fa("0",!1),rr=function(){return parseFloat(Ca())},nr=function(e,i){(t=t||{data:{}}).data.params||(t.data.params={}),i=null===i?void 0:i[1],t.data.params[e.toLowerCase()]=i},or="render",ar=fa("render",!0),sr="session",Mr=fa("session",!0),ur="icon",cr=fa("icon",!0),lr="alert",Nr=fa("alert",!0),gr=function(){"Content_Disposition"===(t=t||{data:{}}).startRule&&(t.data.type=Ca().toLowerCase())},dr="handling",Tr=fa("handling",!0),jr="optional",yr=fa("optional",!0),Dr="required",Ir=fa("required",!0),pr=function(e){(t=t||{data:{}}).data=parseInt(e.join(""))},Lr=function(){(t=t||{data:{}}).data=Ca()},zr="text",hr=fa("text",!0),Ar="image",Cr=fa("image",!0),Sr="audio",fr=fa("audio",!0),mr="video",vr=fa("video",!0),Er="application",Or=fa("application",!0),xr="message",wr=fa("message",!0),kr="multipart",br=fa("multipart",!0),Yr="x-",Ur=fa("x-",!0),Qr=function(e){(t=t||{data:{}}).data.value=parseInt(e.join(""))},Rr=function(e){(t=t||{data:{}}).data.event=e.toLowerCase()},_r=function(){var e=(t=t||{data:{}}).data.tag;t.data=new o.NameAddrHeader(t.data.uri,t.data.displayName,t.data.params),e&&t.data.setParam("tag",e)},Pr="tag",Br=fa("tag",!0),Hr=function(e){(t=t||{data:{}}).data.tag=e},Vr=function(e){(t=t||{data:{}}).data=parseInt(e.join(""))},Wr=function(){(t=t||{data:{}}).data=new o.NameAddrHeader(t.data.uri,t.data.displayName,t.data.params)},Gr="digest",Fr=fa("Digest",!0),Zr="realm",Jr=fa("realm",!0),qr=function(e){(t=t||{data:{}}).data.realm=e},Kr="domain",$r=fa("domain",!0),Xr="nonce",en=fa("nonce",!0),tn=function(e){(t=t||{data:{}}).data.nonce=e},rn="opaque",nn=fa("opaque",!0),on=function(e){(t=t||{data:{}}).data.opaque=e},an="stale",sn=fa("stale",!0),Mn="true",un=fa("true",!0),cn=function(){(t=t||{data:{}}).data.stale=!0},ln="false",Nn=fa("false",!0),gn=function(){(t=t||{data:{}}).data.stale=!1},dn="algorithm",Tn=fa("algorithm",!0),jn="md5",yn=fa("MD5",!0),Dn="md5-sess",In=fa("MD5-sess",!0),pn=function(e){(t=t||{data:{}}).data.algorithm=e.toUpperCase()},Ln="qop",zn=fa("qop",!0),hn="auth-int",An=fa("auth-int",!0),Cn="auth",Sn=fa("auth",!0),fn=function(e){(t=t||{data:{}}).data.qop||(t.data.qop=[]),t.data.qop.push(e.toLowerCase())},mn=function(){var e,i;for(i=(t=t||{data:{}}).data.multi_header.length,e=0;e<i;e++)if(null===t.data.multi_header[e].parsed){t.data=null;break}null!==t.data?t.data=t.data.multi_header:t.data=-1},vn=function(){var e;(t=t||{data:{}}).data.multi_header||(t.data.multi_header=[]);try{e=new o.NameAddrHeader(t.data.uri,t.data.displayName,t.data.params),delete t.data.uri,delete t.data.displayName,delete t.data.params}catch(n){e=null}t.data.multi_header.push({position:pa,offset:Sa().start.offset,parsed:e})},En=function(){(t=t||{data:{}}).data=new o.NameAddrHeader(t.data.uri,t.data.displayName,t.data.params)},On=function(){(t=t||{data:{}}).data.replaces_from_tag&&t.data.replaces_to_tag||(t.data=-1)},xn=function(){(t=t||{data:{}}).data={call_id:t.data}},wn="from-tag",kn=fa("from-tag",!0),bn=function(e){(t=t||{data:{}}).data.replaces_from_tag=e},Yn="to-tag",Un=fa("to-tag",!0),Qn=function(e){(t=t||{data:{}}).data.replaces_to_tag=e},Rn="early-only",_n=fa("early-only",!0),Pn=function(){(t=t||{data:{}}).data.early_only=!0},Bn=function(e,t){return t},Hn=function(e,t){return[e].concat(t)},Vn=function(e){"Require"===(t=t||{data:{}}).startRule&&(t.data=e||[])},Wn="active",Gn=fa("active",!0),Fn="pending",Zn=fa("pending",!0),Jn="terminated",qn=fa("terminated",!0),Kn=function(){(t=t||{data:{}}).data.state=Ca()},$n="reason",Xn=fa("reason",!0),eo=function(e){t=t||{data:{}},void 0!==e&&(t.data.reason=e)},to=function(e){t=t||{data:{}},void 0!==e&&(t.data.expires=e)},io="retry_after",ro=fa("retry_after",!0),no=function(e){t=t||{data:{}},void 0!==e&&(t.data.retry_after=e)},oo="deactivated",ao=fa("deactivated",!0),so="probation",Mo=fa("probation",!0),uo="rejected",co=fa("rejected",!0),lo="timeout",No=fa("timeout",!0),go="giveup",To=fa("giveup",!0),jo="noresource",yo=fa("noresource",!0),Do="invariant",Io=fa("invariant",!0),po=function(e){"Supported"===(t=t||{data:{}}).startRule&&(t.data=e||[])},Lo=function(){var e=(t=t||{data:{}}).data.tag;t.data=new o.NameAddrHeader(t.data.uri,t.data.displayName,t.data.params),e&&t.data.setParam("tag",e)},zo="ttl",ho=fa("ttl",!0),Ao=function(e){(t=t||{data:{}}).data.ttl=e},Co="maddr",So=fa("maddr",!0),fo=function(e){(t=t||{data:{}}).data.maddr=e},mo="received",vo=fa("received",!0),Eo=function(e){(t=t||{data:{}}).data.received=e},Oo="branch",xo=fa("branch",!0),wo=function(e){(t=t||{data:{}}).data.branch=e},ko="rport",bo=fa("rport",!0),Yo=function(e){t=t||{data:{}},void 0!==e&&(t.data.rport=e.join(""))},Uo=function(e){(t=t||{data:{}}).data.protocol=e},Qo=fa("UDP",!0),Ro=fa("TCP",!0),_o=fa("TLS",!0),Po=fa("SCTP",!0),Bo=function(e){(t=t||{data:{}}).data.transport=e},Ho=function(){(t=t||{data:{}}).data.host=Ca()},Vo=function(e){(t=t||{data:{}}).data.port=parseInt(e.join(""))},Wo=function(e){return parseInt(e.join(""))},Go=function(e){"Session_Expires"===(t=t||{data:{}}).startRule&&(t.data.deltaSeconds=e)},Fo="refresher",Zo=fa("refresher",!1),Jo="uas",qo=fa("uas",!1),Ko="uac",$o=fa("uac",!1),Xo=function(e){"Session_Expires"===(t=t||{data:{}}).startRule&&(t.data.refresher=e)},ea=function(e){"Min_SE"===(t=t||{data:{}}).startRule&&(t.data=e)},ta="stuns",ia=fa("stuns",!0),ra="stun",na=fa("stun",!0),oa=function(e){(t=t||{data:{}}).data.scheme=e},aa=function(e){(t=t||{data:{}}).data.host=e},sa="?transport=",Ma=fa("?transport=",!1),ua="turns",ca=fa("turns",!0),la="turn",Na=fa("turn",!0),ga=function(){(t=t||{data:{}}).data=Ca()},da="Referred-By",Ta=fa("Referred-By",!1),ja="b",ya=fa("b",!1),Da="cid",Ia=fa("cid",!1),pa=0,La=0,za=[{line:1,column:1}],ha=0,Aa=[];if(void 0!==t.startRule){if(!(t.startRule in c))throw new Error("Can't start parsing from rule \""+t.startRule+'".');l=c[t.startRule]}function Ca(){return e.substring(La,pa)}function Sa(){return Ea(La,pa)}function fa(e,t){return{type:"literal",text:e,ignoreCase:t}}function ma(e,t,i){return{type:"class",parts:e,inverted:t,ignoreCase:i}}function va(t){var i,r=za[t];if(r)return r;for(i=t-1;!za[i];)i--;for(r={line:(r=za[i]).line,column:r.column};i<t;)10===e.charCodeAt(i)?(r.line++,r.column=1):r.column++,i++;return za[t]=r,r}function Ea(e,t){var i=va(e),r=va(t);return{start:{offset:e,line:i.line,column:i.column},end:{offset:t,line:r.line,column:r.column}}}function Oa(e){pa<ha||(pa>ha&&(ha=pa,Aa=[]),Aa.push(e))}function xa(){var t;return e.substr(pa,2)===N?(t=N,pa+=2):(t=u,Oa(g)),t}function wa(){var t;return d.test(e.charAt(pa))?(t=e.charAt(pa),pa++):(t=u,Oa(T)),t}function ka(){var t;return j.test(e.charAt(pa))?(t=e.charAt(pa),pa++):(t=u,Oa(y)),t}function ba(){var t;return D.test(e.charAt(pa))?(t=e.charAt(pa),pa++):(t=u,Oa(I)),t}function Ya(){var e;return(e=Ra())===u&&(e=_a()),e}function Ua(){var t;return p.test(e.charAt(pa))?(t=e.charAt(pa),pa++):(t=u,Oa(L)),t}function Qa(){var t;return z.test(e.charAt(pa))?(t=e.charAt(pa),pa++):(t=u,Oa(h)),t}function Ra(){var t;return 32===e.charCodeAt(pa)?(t=A,pa++):(t=u,Oa(C)),t}function _a(){var t;return 9===e.charCodeAt(pa)?(t=S,pa++):(t=u,Oa(f)),t}function Pa(){var t;return m.test(e.charAt(pa))?(t=e.charAt(pa),pa++):(t=u,Oa(v)),t}function Ba(){var t;return 59===e.charCodeAt(pa)?(t=E,pa++):(t=u,Oa(O)),t===u&&(47===e.charCodeAt(pa)?(t=x,pa++):(t=u,Oa(w)),t===u&&(63===e.charCodeAt(pa)?(t=k,pa++):(t=u,Oa(b)),t===u&&(58===e.charCodeAt(pa)?(t=Y,pa++):(t=u,Oa(U)),t===u&&(64===e.charCodeAt(pa)?(t=Q,pa++):(t=u,Oa(R)),t===u&&(38===e.charCodeAt(pa)?(t=_,pa++):(t=u,Oa(P)),t===u&&(61===e.charCodeAt(pa)?(t=B,pa++):(t=u,Oa(H)),t===u&&(43===e.charCodeAt(pa)?(t=V,pa++):(t=u,Oa(W)),t===u&&(36===e.charCodeAt(pa)?(t=G,pa++):(t=u,Oa(F)),t===u&&(44===e.charCodeAt(pa)?(t=Z,pa++):(t=u,Oa(J))))))))))),t}function Ha(){var e;return(e=Pa())===u&&(e=Va()),e}function Va(){var t;return 45===e.charCodeAt(pa)?(t=q,pa++):(t=u,Oa(K)),t===u&&(95===e.charCodeAt(pa)?(t=$,pa++):(t=u,Oa(X)),t===u&&(46===e.charCodeAt(pa)?(t=ee,pa++):(t=u,Oa(te)),t===u&&(33===e.charCodeAt(pa)?(t=ie,pa++):(t=u,Oa(re)),t===u&&(126===e.charCodeAt(pa)?(t=ne,pa++):(t=u,Oa(oe)),t===u&&(42===e.charCodeAt(pa)?(t=ae,pa++):(t=u,Oa(se)),t===u&&(39===e.charCodeAt(pa)?(t=Me,pa++):(t=u,Oa(ue)),t===u&&(40===e.charCodeAt(pa)?(t=ce,pa++):(t=u,Oa(le)),t===u&&(41===e.charCodeAt(pa)?(t=Ne,pa++):(t=u,Oa(ge)))))))))),t}function Wa(){var t,i,r,n,o;return t=pa,i=pa,37===e.charCodeAt(pa)?(r=de,pa++):(r=u,Oa(Te)),r!==u&&(n=ba())!==u&&(o=ba())!==u?i=r=[r,n,o]:(pa=i,i=u),i!==u?e.substring(t,pa):i}function Ga(){var e,t,i,r;for(e=pa,t=pa,i=[],r=Ya();r!==u;)i.push(r),r=Ya();if(i!==u&&(r=xa())!==u?t=i=[i,r]:(pa=t,t=u),t===u&&(t=null),t!==u){if(i=[],(r=Ya())!==u)for(;r!==u;)i.push(r),r=Ya();else i=u;i!==u?(La=e,e=t=je()):(pa=e,e=u)}else pa=e,e=u;return e}function Fa(){var e;return(e=Ga())===u&&(e=null),e}function Za(){var t;return De.test(e.charAt(pa))?(t=e.charAt(pa),pa++):(t=u,Oa(Ie)),t}function Ja(){var t;return pe.test(e.charAt(pa))?(t=e.charAt(pa),pa++):(t=u,Oa(Le)),t}function qa(){var t,i,r;if(t=pa,i=[],(r=Pa())===u&&(45===e.charCodeAt(pa)?(r=q,pa++):(r=u,Oa(K)),r===u&&(46===e.charCodeAt(pa)?(r=ee,pa++):(r=u,Oa(te)),r===u&&(33===e.charCodeAt(pa)?(r=ie,pa++):(r=u,Oa(re)),r===u&&(37===e.charCodeAt(pa)?(r=de,pa++):(r=u,Oa(Te)),r===u&&(42===e.charCodeAt(pa)?(r=ae,pa++):(r=u,Oa(se)),r===u&&(95===e.charCodeAt(pa)?(r=$,pa++):(r=u,Oa(X)),r===u&&(43===e.charCodeAt(pa)?(r=V,pa++):(r=u,Oa(W)),r===u&&(96===e.charCodeAt(pa)?(r=ze,pa++):(r=u,Oa(he)),r===u&&(39===e.charCodeAt(pa)?(r=Me,pa++):(r=u,Oa(ue)),r===u&&(126===e.charCodeAt(pa)?(r=ne,pa++):(r=u,Oa(oe)))))))))))),r!==u)for(;r!==u;)i.push(r),(r=Pa())===u&&(45===e.charCodeAt(pa)?(r=q,pa++):(r=u,Oa(K)),r===u&&(46===e.charCodeAt(pa)?(r=ee,pa++):(r=u,Oa(te)),r===u&&(33===e.charCodeAt(pa)?(r=ie,pa++):(r=u,Oa(re)),r===u&&(37===e.charCodeAt(pa)?(r=de,pa++):(r=u,Oa(Te)),r===u&&(42===e.charCodeAt(pa)?(r=ae,pa++):(r=u,Oa(se)),r===u&&(95===e.charCodeAt(pa)?(r=$,pa++):(r=u,Oa(X)),r===u&&(43===e.charCodeAt(pa)?(r=V,pa++):(r=u,Oa(W)),r===u&&(96===e.charCodeAt(pa)?(r=ze,pa++):(r=u,Oa(he)),r===u&&(39===e.charCodeAt(pa)?(r=Me,pa++):(r=u,Oa(ue)),r===u&&(126===e.charCodeAt(pa)?(r=ne,pa++):(r=u,Oa(oe))))))))))));else i=u;return i!==u?e.substring(t,pa):i}function Ka(){var t,i,r;if(t=pa,i=[],(r=Pa())===u&&(45===e.charCodeAt(pa)?(r=q,pa++):(r=u,Oa(K)),r===u&&(33===e.charCodeAt(pa)?(r=ie,pa++):(r=u,Oa(re)),r===u&&(37===e.charCodeAt(pa)?(r=de,pa++):(r=u,Oa(Te)),r===u&&(42===e.charCodeAt(pa)?(r=ae,pa++):(r=u,Oa(se)),r===u&&(95===e.charCodeAt(pa)?(r=$,pa++):(r=u,Oa(X)),r===u&&(43===e.charCodeAt(pa)?(r=V,pa++):(r=u,Oa(W)),r===u&&(96===e.charCodeAt(pa)?(r=ze,pa++):(r=u,Oa(he)),r===u&&(39===e.charCodeAt(pa)?(r=Me,pa++):(r=u,Oa(ue)),r===u&&(126===e.charCodeAt(pa)?(r=ne,pa++):(r=u,Oa(oe))))))))))),r!==u)for(;r!==u;)i.push(r),(r=Pa())===u&&(45===e.charCodeAt(pa)?(r=q,pa++):(r=u,Oa(K)),r===u&&(33===e.charCodeAt(pa)?(r=ie,pa++):(r=u,Oa(re)),r===u&&(37===e.charCodeAt(pa)?(r=de,pa++):(r=u,Oa(Te)),r===u&&(42===e.charCodeAt(pa)?(r=ae,pa++):(r=u,Oa(se)),r===u&&(95===e.charCodeAt(pa)?(r=$,pa++):(r=u,Oa(X)),r===u&&(43===e.charCodeAt(pa)?(r=V,pa++):(r=u,Oa(W)),r===u&&(96===e.charCodeAt(pa)?(r=ze,pa++):(r=u,Oa(he)),r===u&&(39===e.charCodeAt(pa)?(r=Me,pa++):(r=u,Oa(ue)),r===u&&(126===e.charCodeAt(pa)?(r=ne,pa++):(r=u,Oa(oe)))))))))));else i=u;return i!==u?e.substring(t,pa):i}function $a(){var t,i,r;if(t=pa,i=[],(r=Pa())===u&&(45===e.charCodeAt(pa)?(r=q,pa++):(r=u,Oa(K)),r===u&&(46===e.charCodeAt(pa)?(r=ee,pa++):(r=u,Oa(te)),r===u&&(33===e.charCodeAt(pa)?(r=ie,pa++):(r=u,Oa(re)),r===u&&(37===e.charCodeAt(pa)?(r=de,pa++):(r=u,Oa(Te)),r===u&&(42===e.charCodeAt(pa)?(r=ae,pa++):(r=u,Oa(se)),r===u&&(95===e.charCodeAt(pa)?(r=$,pa++):(r=u,Oa(X)),r===u&&(43===e.charCodeAt(pa)?(r=V,pa++):(r=u,Oa(W)),r===u&&(96===e.charCodeAt(pa)?(r=ze,pa++):(r=u,Oa(he)),r===u&&(39===e.charCodeAt(pa)?(r=Me,pa++):(r=u,Oa(ue)),r===u&&(126===e.charCodeAt(pa)?(r=ne,pa++):(r=u,Oa(oe)),r===u&&(40===e.charCodeAt(pa)?(r=ce,pa++):(r=u,Oa(le)),r===u&&(41===e.charCodeAt(pa)?(r=Ne,pa++):(r=u,Oa(ge)),r===u&&(60===e.charCodeAt(pa)?(r=Ae,pa++):(r=u,Oa(Ce)),r===u&&(62===e.charCodeAt(pa)?(r=Se,pa++):(r=u,Oa(fe)),r===u&&(58===e.charCodeAt(pa)?(r=Y,pa++):(r=u,Oa(U)),r===u&&(92===e.charCodeAt(pa)?(r=me,pa++):(r=u,Oa(ve)),r===u&&(r=Qa())===u&&(47===e.charCodeAt(pa)?(r=x,pa++):(r=u,Oa(w)),r===u&&(91===e.charCodeAt(pa)?(r=Ee,pa++):(r=u,Oa(Oe)),r===u&&(93===e.charCodeAt(pa)?(r=xe,pa++):(r=u,Oa(we)),r===u&&(63===e.charCodeAt(pa)?(r=k,pa++):(r=u,Oa(b)),r===u&&(123===e.charCodeAt(pa)?(r=ke,pa++):(r=u,Oa(be)),r===u&&(125===e.charCodeAt(pa)?(r=Ye,pa++):(r=u,Oa(Ue)))))))))))))))))))))))),r!==u)for(;r!==u;)i.push(r),(r=Pa())===u&&(45===e.charCodeAt(pa)?(r=q,pa++):(r=u,Oa(K)),r===u&&(46===e.charCodeAt(pa)?(r=ee,pa++):(r=u,Oa(te)),r===u&&(33===e.charCodeAt(pa)?(r=ie,pa++):(r=u,Oa(re)),r===u&&(37===e.charCodeAt(pa)?(r=de,pa++):(r=u,Oa(Te)),r===u&&(42===e.charCodeAt(pa)?(r=ae,pa++):(r=u,Oa(se)),r===u&&(95===e.charCodeAt(pa)?(r=$,pa++):(r=u,Oa(X)),r===u&&(43===e.charCodeAt(pa)?(r=V,pa++):(r=u,Oa(W)),r===u&&(96===e.charCodeAt(pa)?(r=ze,pa++):(r=u,Oa(he)),r===u&&(39===e.charCodeAt(pa)?(r=Me,pa++):(r=u,Oa(ue)),r===u&&(126===e.charCodeAt(pa)?(r=ne,pa++):(r=u,Oa(oe)),r===u&&(40===e.charCodeAt(pa)?(r=ce,pa++):(r=u,Oa(le)),r===u&&(41===e.charCodeAt(pa)?(r=Ne,pa++):(r=u,Oa(ge)),r===u&&(60===e.charCodeAt(pa)?(r=Ae,pa++):(r=u,Oa(Ce)),r===u&&(62===e.charCodeAt(pa)?(r=Se,pa++):(r=u,Oa(fe)),r===u&&(58===e.charCodeAt(pa)?(r=Y,pa++):(r=u,Oa(U)),r===u&&(92===e.charCodeAt(pa)?(r=me,pa++):(r=u,Oa(ve)),r===u&&(r=Qa())===u&&(47===e.charCodeAt(pa)?(r=x,pa++):(r=u,Oa(w)),r===u&&(91===e.charCodeAt(pa)?(r=Ee,pa++):(r=u,Oa(Oe)),r===u&&(93===e.charCodeAt(pa)?(r=xe,pa++):(r=u,Oa(we)),r===u&&(63===e.charCodeAt(pa)?(r=k,pa++):(r=u,Oa(b)),r===u&&(123===e.charCodeAt(pa)?(r=ke,pa++):(r=u,Oa(be)),r===u&&(125===e.charCodeAt(pa)?(r=Ye,pa++):(r=u,Oa(Ue))))))))))))))))))))))));else i=u;return i!==u?e.substring(t,pa):i}function Xa(){var t,i;return t=pa,Fa()!==u?(47===e.charCodeAt(pa)?(i=x,pa++):(i=u,Oa(w)),i!==u&&Fa()!==u?(La=t,t=Re()):(pa=t,t=u)):(pa=t,t=u),t}function es(){var t,i;return t=pa,Fa()!==u?(61===e.charCodeAt(pa)?(i=B,pa++):(i=u,Oa(H)),i!==u&&Fa()!==u?(La=t,t=_e()):(pa=t,t=u)):(pa=t,t=u),t}function ts(){var t,i;return t=pa,62===e.charCodeAt(pa)?(i=Se,pa++):(i=u,Oa(fe)),i!==u&&Fa()!==u?(La=t,t=i=Pe()):(pa=t,t=u),t}function is(){var t,i;return t=pa,Fa()!==u?(60===e.charCodeAt(pa)?(i=Ae,pa++):(i=u,Oa(Ce)),i!==u?(La=t,t=Be()):(pa=t,t=u)):(pa=t,t=u),t}function rs(){var t,i;return t=pa,Fa()!==u?(44===e.charCodeAt(pa)?(i=Z,pa++):(i=u,Oa(J)),i!==u&&Fa()!==u?(La=t,t=He()):(pa=t,t=u)):(pa=t,t=u),t}function ns(){var t,i;return t=pa,Fa()!==u?(59===e.charCodeAt(pa)?(i=E,pa++):(i=u,Oa(O)),i!==u&&Fa()!==u?(La=t,t=Ve()):(pa=t,t=u)):(pa=t,t=u),t}function os(){var e;return e=pa,Fa()!==u&&Qa()!==u?(La=e,e=Ge()):(pa=e,e=u),e}function as(){var e;return e=pa,Qa()!==u&&Fa()!==u?(La=e,e=Ge()):(pa=e,e=u),e}function ss(){var t,i,r,n,o,a;if(t=pa,i=pa,(r=Fa())!==u)if((n=Qa())!==u){for(o=[],(a=us())===u&&(a=cs());a!==u;)o.push(a),(a=us())===u&&(a=cs());o!==u&&(a=Qa())!==u?i=r=[r,n,o,a]:(pa=i,i=u)}else pa=i,i=u;else pa=i,i=u;return i!==u?e.substring(t,pa):i}function Ms(){var t,i,r,n;if(t=pa,Fa()!==u)if(Qa()!==u){for(i=pa,r=[],(n=us())===u&&(n=cs());n!==u;)r.push(n),(n=us())===u&&(n=cs());(i=r!==u?e.substring(i,pa):r)!==u&&(r=Qa())!==u?(La=t,t=Je(i)):(pa=t,t=u)}else pa=t,t=u;else pa=t,t=u;return t}function us(){var t;return(t=Ga())===u&&(33===e.charCodeAt(pa)?(t=ie,pa++):(t=u,Oa(re)),t===u&&(qe.test(e.charAt(pa))?(t=e.charAt(pa),pa++):(t=u,Oa(Ke)),t===u&&(Fe.test(e.charAt(pa))?(t=e.charAt(pa),pa++):(t=u,Oa(Ze)),t===u&&(t=Za())))),t}function cs(){var t,i,r;return t=pa,92===e.charCodeAt(pa)?(i=me,pa++):(i=u,Oa(ve)),i!==u?($e.test(e.charAt(pa))?(r=e.charAt(pa),pa++):(r=u,Oa(Xe)),r===u&&(et.test(e.charAt(pa))?(r=e.charAt(pa),pa++):(r=u,Oa(tt)),r===u&&(it.test(e.charAt(pa))?(r=e.charAt(pa),pa++):(r=u,Oa(rt)))),r!==u?t=i=[i,r]:(pa=t,t=u)):(pa=t,t=u),t}function ls(){var t,i,r;return t=pa,gs()!==u?(58===e.charCodeAt(pa)?(i=Y,pa++):(i=u,Oa(U)),i!==u?((r=ds())===u&&(r=null),r!==u&&js()!==u?(La=t,t=nt()):(pa=t,t=u)):(pa=t,t=u)):(pa=t,t=u),t}function Ns(){var t,i,r,n;return t=pa,gs()!==u?(58===e.charCodeAt(pa)?(i=Y,pa++):(i=u,Oa(U)),i!==u?((r=ds())===u&&(r=null),r!==u&&js()!==u&&function(){var t,i,r,n;for(t=[],i=pa,59===e.charCodeAt(pa)?(r=E,pa++):(r=u,Oa(O)),r!==u&&(n=fs())!==u?i=r=[r,n]:(pa=i,i=u);i!==u;)t.push(i),i=pa,59===e.charCodeAt(pa)?(r=E,pa++):(r=u,Oa(O)),r!==u&&(n=fs())!==u?i=r=[r,n]:(pa=i,i=u);return t}()!==u?((n=function(){var t,i,r,n,o,a,s;if(t=pa,63===e.charCodeAt(pa)?(i=k,pa++):(i=u,Oa(b)),i!==u)if((r=vs())!==u){for(n=[],o=pa,38===e.charCodeAt(pa)?(a=_,pa++):(a=u,Oa(P)),a!==u&&(s=vs())!==u?o=a=[a,s]:(pa=o,o=u);o!==u;)n.push(o),o=pa,38===e.charCodeAt(pa)?(a=_,pa++):(a=u,Oa(P)),a!==u&&(s=vs())!==u?o=a=[a,s]:(pa=o,o=u);n!==u?t=i=[i,r,n]:(pa=t,t=u)}else pa=t,t=u;else pa=t,t=u;return t}())===u&&(n=null),n!==u?(La=t,t=ot()):(pa=t,t=u)):(pa=t,t=u)):(pa=t,t=u)):(pa=t,t=u),t}function gs(){var t,i;return t=pa,e.substr(pa,4).toLowerCase()===at?(i=e.substr(pa,4),pa+=4):(i=u,Oa(st)),i===u&&(e.substr(pa,3).toLowerCase()===Mt?(i=e.substr(pa,3),pa+=3):(i=u,Oa(ut))),i!==u&&(La=t,i=ct(i)),i}function ds(){var t,i,r,n;return t=pa,function(){var e,t;if(e=[],(t=Ha())===u&&(t=Wa())===u&&(t=Ts()),t!==u)for(;t!==u;)e.push(t),(t=Ha())===u&&(t=Wa())===u&&(t=Ts());else e=u;return e}()!==u?(i=pa,58===e.charCodeAt(pa)?(r=Y,pa++):(r=u,Oa(U)),r!==u&&(n=function(){var t,i,r;for(t=pa,i=[],(r=Ha())===u&&(r=Wa())===u&&(38===e.charCodeAt(pa)?(r=_,pa++):(r=u,Oa(P)),r===u&&(61===e.charCodeAt(pa)?(r=B,pa++):(r=u,Oa(H)),r===u&&(43===e.charCodeAt(pa)?(r=V,pa++):(r=u,Oa(W)),r===u&&(36===e.charCodeAt(pa)?(r=G,pa++):(r=u,Oa(F)),r===u&&(44===e.charCodeAt(pa)?(r=Z,pa++):(r=u,Oa(J)))))));r!==u;)i.push(r),(r=Ha())===u&&(r=Wa())===u&&(38===e.charCodeAt(pa)?(r=_,pa++):(r=u,Oa(P)),r===u&&(61===e.charCodeAt(pa)?(r=B,pa++):(r=u,Oa(H)),r===u&&(43===e.charCodeAt(pa)?(r=V,pa++):(r=u,Oa(W)),r===u&&(36===e.charCodeAt(pa)?(r=G,pa++):(r=u,Oa(F)),r===u&&(44===e.charCodeAt(pa)?(r=Z,pa++):(r=u,Oa(J)))))));return i!==u&&(La=t,i=Nt()),i}())!==u?i=r=[r,n]:(pa=i,i=u),i===u&&(i=null),i!==u?(64===e.charCodeAt(pa)?(r=Q,pa++):(r=u,Oa(R)),r!==u?(La=t,t=lt()):(pa=t,t=u)):(pa=t,t=u)):(pa=t,t=u),t}function Ts(){var t;return 38===e.charCodeAt(pa)?(t=_,pa++):(t=u,Oa(P)),t===u&&(61===e.charCodeAt(pa)?(t=B,pa++):(t=u,Oa(H)),t===u&&(43===e.charCodeAt(pa)?(t=V,pa++):(t=u,Oa(W)),t===u&&(36===e.charCodeAt(pa)?(t=G,pa++):(t=u,Oa(F)),t===u&&(44===e.charCodeAt(pa)?(t=Z,pa++):(t=u,Oa(J)),t===u&&(59===e.charCodeAt(pa)?(t=E,pa++):(t=u,Oa(O)),t===u&&(63===e.charCodeAt(pa)?(t=k,pa++):(t=u,Oa(b)),t===u&&(47===e.charCodeAt(pa)?(t=x,pa++):(t=u,Oa(w))))))))),t}function js(){var t,i,r,n,o;return t=pa,(i=ys())!==u?(r=pa,58===e.charCodeAt(pa)?(n=Y,pa++):(n=u,Oa(U)),n!==u&&(o=Ss())!==u?r=n=[n,o]:(pa=r,r=u),r===u&&(r=null),r!==u?t=i=[i,r]:(pa=t,t=u)):(pa=t,t=u),t}function ys(){var e,t;return e=pa,(t=Ds())===u&&(t=As())===u&&(t=ps()),t!==u&&(La=e,t=gt()),t}function Ds(){var t,i,r,n,o;for(t=pa,i=[],r=pa,(n=Is())!==u?(46===e.charCodeAt(pa)?(o=ee,pa++):(o=u,Oa(te)),o!==u?r=n=[n,o]:(pa=r,r=u)):(pa=r,r=u);r!==u;)i.push(r),r=pa,(n=Is())!==u?(46===e.charCodeAt(pa)?(o=ee,pa++):(o=u,Oa(te)),o!==u?r=n=[n,o]:(pa=r,r=u)):(pa=r,r=u);return i!==u&&(r=function(){var t,i,r,n;if(t=pa,j.test(e.charAt(pa))?(i=e.charAt(pa),pa++):(i=u,Oa(y)),i!==u){for(r=[],yt.test(e.charAt(pa))?(n=e.charAt(pa),pa++):(n=u,Oa(Dt));n!==u;)r.push(n),yt.test(e.charAt(pa))?(n=e.charAt(pa),pa++):(n=u,Oa(Dt));r!==u?t=i=[i,r]:(pa=t,t=u)}else pa=t,t=u;return t}())!==u?(46===e.charCodeAt(pa)?(n=ee,pa++):(n=u,Oa(te)),n===u&&(n=null),n!==u?(La=t,t=i=dt()):(pa=t,t=u)):(pa=t,t=u),t}function Is(){var t,i;if(t=[],Tt.test(e.charAt(pa))?(i=e.charAt(pa),pa++):(i=u,Oa(jt)),i!==u)for(;i!==u;)t.push(i),Tt.test(e.charAt(pa))?(i=e.charAt(pa),pa++):(i=u,Oa(jt));else t=u;return t}function ps(){var t,i,r;return t=pa,91===e.charCodeAt(pa)?(i=Ee,pa++):(i=u,Oa(Oe)),i!==u&&Ls()!==u?(93===e.charCodeAt(pa)?(r=xe,pa++):(r=u,Oa(we)),r!==u?(La=t,t=i=It()):(pa=t,t=u)):(pa=t,t=u),t}function Ls(){var t,i,r,n,o,a,s,M,c,l,N,g,d,T,j;return t=pa,i=pa,(r=zs())!==u?(58===e.charCodeAt(pa)?(n=Y,pa++):(n=u,Oa(U)),n!==u&&(o=zs())!==u?(58===e.charCodeAt(pa)?(a=Y,pa++):(a=u,Oa(U)),a!==u&&(s=zs())!==u?(58===e.charCodeAt(pa)?(M=Y,pa++):(M=u,Oa(U)),M!==u&&(c=zs())!==u?(58===e.charCodeAt(pa)?(l=Y,pa++):(l=u,Oa(U)),l!==u&&(N=zs())!==u?(58===e.charCodeAt(pa)?(g=Y,pa++):(g=u,Oa(U)),g!==u&&(d=zs())!==u?(58===e.charCodeAt(pa)?(T=Y,pa++):(T=u,Oa(U)),T!==u&&(j=hs())!==u?i=r=[r,n,o,a,s,M,c,l,N,g,d,T,j]:(pa=i,i=u)):(pa=i,i=u)):(pa=i,i=u)):(pa=i,i=u)):(pa=i,i=u)):(pa=i,i=u)):(pa=i,i=u),i===u&&(i=pa,e.substr(pa,2)===pt?(r=pt,pa+=2):(r=u,Oa(Lt)),r!==u&&(n=zs())!==u?(58===e.charCodeAt(pa)?(o=Y,pa++):(o=u,Oa(U)),o!==u&&(a=zs())!==u?(58===e.charCodeAt(pa)?(s=Y,pa++):(s=u,Oa(U)),s!==u&&(M=zs())!==u?(58===e.charCodeAt(pa)?(c=Y,pa++):(c=u,Oa(U)),c!==u&&(l=zs())!==u?(58===e.charCodeAt(pa)?(N=Y,pa++):(N=u,Oa(U)),N!==u&&(g=zs())!==u?(58===e.charCodeAt(pa)?(d=Y,pa++):(d=u,Oa(U)),d!==u&&(T=hs())!==u?i=r=[r,n,o,a,s,M,c,l,N,g,d,T]:(pa=i,i=u)):(pa=i,i=u)):(pa=i,i=u)):(pa=i,i=u)):(pa=i,i=u)):(pa=i,i=u),i===u&&(i=pa,e.substr(pa,2)===pt?(r=pt,pa+=2):(r=u,Oa(Lt)),r!==u&&(n=zs())!==u?(58===e.charCodeAt(pa)?(o=Y,pa++):(o=u,Oa(U)),o!==u&&(a=zs())!==u?(58===e.charCodeAt(pa)?(s=Y,pa++):(s=u,Oa(U)),s!==u&&(M=zs())!==u?(58===e.charCodeAt(pa)?(c=Y,pa++):(c=u,Oa(U)),c!==u&&(l=zs())!==u?(58===e.charCodeAt(pa)?(N=Y,pa++):(N=u,Oa(U)),N!==u&&(g=hs())!==u?i=r=[r,n,o,a,s,M,c,l,N,g]:(pa=i,i=u)):(pa=i,i=u)):(pa=i,i=u)):(pa=i,i=u)):(pa=i,i=u),i===u&&(i=pa,e.substr(pa,2)===pt?(r=pt,pa+=2):(r=u,Oa(Lt)),r!==u&&(n=zs())!==u?(58===e.charCodeAt(pa)?(o=Y,pa++):(o=u,Oa(U)),o!==u&&(a=zs())!==u?(58===e.charCodeAt(pa)?(s=Y,pa++):(s=u,Oa(U)),s!==u&&(M=zs())!==u?(58===e.charCodeAt(pa)?(c=Y,pa++):(c=u,Oa(U)),c!==u&&(l=hs())!==u?i=r=[r,n,o,a,s,M,c,l]:(pa=i,i=u)):(pa=i,i=u)):(pa=i,i=u)):(pa=i,i=u),i===u&&(i=pa,e.substr(pa,2)===pt?(r=pt,pa+=2):(r=u,Oa(Lt)),r!==u&&(n=zs())!==u?(58===e.charCodeAt(pa)?(o=Y,pa++):(o=u,Oa(U)),o!==u&&(a=zs())!==u?(58===e.charCodeAt(pa)?(s=Y,pa++):(s=u,Oa(U)),s!==u&&(M=hs())!==u?i=r=[r,n,o,a,s,M]:(pa=i,i=u)):(pa=i,i=u)):(pa=i,i=u),i===u&&(i=pa,e.substr(pa,2)===pt?(r=pt,pa+=2):(r=u,Oa(Lt)),r!==u&&(n=zs())!==u?(58===e.charCodeAt(pa)?(o=Y,pa++):(o=u,Oa(U)),o!==u&&(a=hs())!==u?i=r=[r,n,o,a]:(pa=i,i=u)):(pa=i,i=u),i===u&&(i=pa,e.substr(pa,2)===pt?(r=pt,pa+=2):(r=u,Oa(Lt)),r!==u&&(n=hs())!==u?i=r=[r,n]:(pa=i,i=u),i===u&&(i=pa,e.substr(pa,2)===pt?(r=pt,pa+=2):(r=u,Oa(Lt)),r!==u&&(n=zs())!==u?i=r=[r,n]:(pa=i,i=u),i===u&&(i=pa,(r=zs())!==u?(e.substr(pa,2)===pt?(n=pt,pa+=2):(n=u,Oa(Lt)),n!==u&&(o=zs())!==u?(58===e.charCodeAt(pa)?(a=Y,pa++):(a=u,Oa(U)),a!==u&&(s=zs())!==u?(58===e.charCodeAt(pa)?(M=Y,pa++):(M=u,Oa(U)),M!==u&&(c=zs())!==u?(58===e.charCodeAt(pa)?(l=Y,pa++):(l=u,Oa(U)),l!==u&&(N=zs())!==u?(58===e.charCodeAt(pa)?(g=Y,pa++):(g=u,Oa(U)),g!==u&&(d=hs())!==u?i=r=[r,n,o,a,s,M,c,l,N,g,d]:(pa=i,i=u)):(pa=i,i=u)):(pa=i,i=u)):(pa=i,i=u)):(pa=i,i=u)):(pa=i,i=u),i===u&&(i=pa,(r=zs())!==u?(n=pa,58===e.charCodeAt(pa)?(o=Y,pa++):(o=u,Oa(U)),o!==u&&(a=zs())!==u?n=o=[o,a]:(pa=n,n=u),n===u&&(n=null),n!==u?(e.substr(pa,2)===pt?(o=pt,pa+=2):(o=u,Oa(Lt)),o!==u&&(a=zs())!==u?(58===e.charCodeAt(pa)?(s=Y,pa++):(s=u,Oa(U)),s!==u&&(M=zs())!==u?(58===e.charCodeAt(pa)?(c=Y,pa++):(c=u,Oa(U)),c!==u&&(l=zs())!==u?(58===e.charCodeAt(pa)?(N=Y,pa++):(N=u,Oa(U)),N!==u&&(g=hs())!==u?i=r=[r,n,o,a,s,M,c,l,N,g]:(pa=i,i=u)):(pa=i,i=u)):(pa=i,i=u)):(pa=i,i=u)):(pa=i,i=u)):(pa=i,i=u),i===u&&(i=pa,(r=zs())!==u?(n=pa,58===e.charCodeAt(pa)?(o=Y,pa++):(o=u,Oa(U)),o!==u&&(a=zs())!==u?n=o=[o,a]:(pa=n,n=u),n===u&&(n=null),n!==u?(o=pa,58===e.charCodeAt(pa)?(a=Y,pa++):(a=u,Oa(U)),a!==u&&(s=zs())!==u?o=a=[a,s]:(pa=o,o=u),o===u&&(o=null),o!==u?(e.substr(pa,2)===pt?(a=pt,pa+=2):(a=u,Oa(Lt)),a!==u&&(s=zs())!==u?(58===e.charCodeAt(pa)?(M=Y,pa++):(M=u,Oa(U)),M!==u&&(c=zs())!==u?(58===e.charCodeAt(pa)?(l=Y,pa++):(l=u,Oa(U)),l!==u&&(N=hs())!==u?i=r=[r,n,o,a,s,M,c,l,N]:(pa=i,i=u)):(pa=i,i=u)):(pa=i,i=u)):(pa=i,i=u)):(pa=i,i=u)):(pa=i,i=u),i===u&&(i=pa,(r=zs())!==u?(n=pa,58===e.charCodeAt(pa)?(o=Y,pa++):(o=u,Oa(U)),o!==u&&(a=zs())!==u?n=o=[o,a]:(pa=n,n=u),n===u&&(n=null),n!==u?(o=pa,58===e.charCodeAt(pa)?(a=Y,pa++):(a=u,Oa(U)),a!==u&&(s=zs())!==u?o=a=[a,s]:(pa=o,o=u),o===u&&(o=null),o!==u?(a=pa,58===e.charCodeAt(pa)?(s=Y,pa++):(s=u,Oa(U)),s!==u&&(M=zs())!==u?a=s=[s,M]:(pa=a,a=u),a===u&&(a=null),a!==u?(e.substr(pa,2)===pt?(s=pt,pa+=2):(s=u,Oa(Lt)),s!==u&&(M=zs())!==u?(58===e.charCodeAt(pa)?(c=Y,pa++):(c=u,Oa(U)),c!==u&&(l=hs())!==u?i=r=[r,n,o,a,s,M,c,l]:(pa=i,i=u)):(pa=i,i=u)):(pa=i,i=u)):(pa=i,i=u)):(pa=i,i=u)):(pa=i,i=u),i===u&&(i=pa,(r=zs())!==u?(n=pa,58===e.charCodeAt(pa)?(o=Y,pa++):(o=u,Oa(U)),o!==u&&(a=zs())!==u?n=o=[o,a]:(pa=n,n=u),n===u&&(n=null),n!==u?(o=pa,58===e.charCodeAt(pa)?(a=Y,pa++):(a=u,Oa(U)),a!==u&&(s=zs())!==u?o=a=[a,s]:(pa=o,o=u),o===u&&(o=null),o!==u?(a=pa,58===e.charCodeAt(pa)?(s=Y,pa++):(s=u,Oa(U)),s!==u&&(M=zs())!==u?a=s=[s,M]:(pa=a,a=u),a===u&&(a=null),a!==u?(s=pa,58===e.charCodeAt(pa)?(M=Y,pa++):(M=u,Oa(U)),M!==u&&(c=zs())!==u?s=M=[M,c]:(pa=s,s=u),s===u&&(s=null),s!==u?(e.substr(pa,2)===pt?(M=pt,pa+=2):(M=u,Oa(Lt)),M!==u&&(c=hs())!==u?i=r=[r,n,o,a,s,M,c]:(pa=i,i=u)):(pa=i,i=u)):(pa=i,i=u)):(pa=i,i=u)):(pa=i,i=u)):(pa=i,i=u),i===u&&(i=pa,(r=zs())!==u?(n=pa,58===e.charCodeAt(pa)?(o=Y,pa++):(o=u,Oa(U)),o!==u&&(a=zs())!==u?n=o=[o,a]:(pa=n,n=u),n===u&&(n=null),n!==u?(o=pa,58===e.charCodeAt(pa)?(a=Y,pa++):(a=u,Oa(U)),a!==u&&(s=zs())!==u?o=a=[a,s]:(pa=o,o=u),o===u&&(o=null),o!==u?(a=pa,58===e.charCodeAt(pa)?(s=Y,pa++):(s=u,Oa(U)),s!==u&&(M=zs())!==u?a=s=[s,M]:(pa=a,a=u),a===u&&(a=null),a!==u?(s=pa,58===e.charCodeAt(pa)?(M=Y,pa++):(M=u,Oa(U)),M!==u&&(c=zs())!==u?s=M=[M,c]:(pa=s,s=u),s===u&&(s=null),s!==u?(M=pa,58===e.charCodeAt(pa)?(c=Y,pa++):(c=u,Oa(U)),c!==u&&(l=zs())!==u?M=c=[c,l]:(pa=M,M=u),M===u&&(M=null),M!==u?(e.substr(pa,2)===pt?(c=pt,pa+=2):(c=u,Oa(Lt)),c!==u&&(l=zs())!==u?i=r=[r,n,o,a,s,M,c,l]:(pa=i,i=u)):(pa=i,i=u)):(pa=i,i=u)):(pa=i,i=u)):(pa=i,i=u)):(pa=i,i=u)):(pa=i,i=u),i===u&&(i=pa,(r=zs())!==u?(n=pa,58===e.charCodeAt(pa)?(o=Y,pa++):(o=u,Oa(U)),o!==u&&(a=zs())!==u?n=o=[o,a]:(pa=n,n=u),n===u&&(n=null),n!==u?(o=pa,58===e.charCodeAt(pa)?(a=Y,pa++):(a=u,Oa(U)),a!==u&&(s=zs())!==u?o=a=[a,s]:(pa=o,o=u),o===u&&(o=null),o!==u?(a=pa,58===e.charCodeAt(pa)?(s=Y,pa++):(s=u,Oa(U)),s!==u&&(M=zs())!==u?a=s=[s,M]:(pa=a,a=u),a===u&&(a=null),a!==u?(s=pa,58===e.charCodeAt(pa)?(M=Y,pa++):(M=u,Oa(U)),M!==u&&(c=zs())!==u?s=M=[M,c]:(pa=s,s=u),s===u&&(s=null),s!==u?(M=pa,58===e.charCodeAt(pa)?(c=Y,pa++):(c=u,Oa(U)),c!==u&&(l=zs())!==u?M=c=[c,l]:(pa=M,M=u),M===u&&(M=null),M!==u?(c=pa,58===e.charCodeAt(pa)?(l=Y,pa++):(l=u,Oa(U)),l!==u&&(N=zs())!==u?c=l=[l,N]:(pa=c,c=u),c===u&&(c=null),c!==u?(e.substr(pa,2)===pt?(l=pt,pa+=2):(l=u,Oa(Lt)),l!==u?i=r=[r,n,o,a,s,M,c,l]:(pa=i,i=u)):(pa=i,i=u)):(pa=i,i=u)):(pa=i,i=u)):(pa=i,i=u)):(pa=i,i=u)):(pa=i,i=u)):(pa=i,i=u))))))))))))))),i!==u&&(La=t,i=zt()),i}function zs(){var e,t,i,r,n;return e=pa,(t=ba())!==u?((i=ba())===u&&(i=null),i!==u?((r=ba())===u&&(r=null),r!==u?((n=ba())===u&&(n=null),n!==u?e=t=[t,i,r,n]:(pa=e,e=u)):(pa=e,e=u)):(pa=e,e=u)):(pa=e,e=u),e}function hs(){var t,i,r,n;return t=pa,(i=zs())!==u?(58===e.charCodeAt(pa)?(r=Y,pa++):(r=u,Oa(U)),r!==u&&(n=zs())!==u?t=i=[i,r,n]:(pa=t,t=u)):(pa=t,t=u),t===u&&(t=As()),t}function As(){var t,i,r,n;return t=pa,Cs()!==u?(46===e.charCodeAt(pa)?(i=ee,pa++):(i=u,Oa(te)),i!==u&&Cs()!==u?(46===e.charCodeAt(pa)?(r=ee,pa++):(r=u,Oa(te)),r!==u&&Cs()!==u?(46===e.charCodeAt(pa)?(n=ee,pa++):(n=u,Oa(te)),n!==u&&Cs()!==u?(La=t,t=ht()):(pa=t,t=u)):(pa=t,t=u)):(pa=t,t=u)):(pa=t,t=u),t}function Cs(){var t,i,r,n;return t=pa,e.substr(pa,2)===At?(i=At,pa+=2):(i=u,Oa(Ct)),i!==u?(St.test(e.charAt(pa))?(r=e.charAt(pa),pa++):(r=u,Oa(ft)),r!==u?t=i=[i,r]:(pa=t,t=u)):(pa=t,t=u),t===u&&(t=pa,50===e.charCodeAt(pa)?(i=mt,pa++):(i=u,Oa(vt)),i!==u?(Et.test(e.charAt(pa))?(r=e.charAt(pa),pa++):(r=u,Oa(Ot)),r!==u&&(n=wa())!==u?t=i=[i,r,n]:(pa=t,t=u)):(pa=t,t=u),t===u&&(t=pa,49===e.charCodeAt(pa)?(i=xt,pa++):(i=u,Oa(wt)),i!==u&&(r=wa())!==u&&(n=wa())!==u?t=i=[i,r,n]:(pa=t,t=u),t===u&&(t=pa,kt.test(e.charAt(pa))?(i=e.charAt(pa),pa++):(i=u,Oa(bt)),i!==u&&(r=wa())!==u?t=i=[i,r]:(pa=t,t=u),t===u&&(t=wa())))),t}function Ss(){var e,t,i,r,n,o,a;return e=pa,t=pa,(i=wa())===u&&(i=null),i!==u?((r=wa())===u&&(r=null),r!==u?((n=wa())===u&&(n=null),n!==u?((o=wa())===u&&(o=null),o!==u?((a=wa())===u&&(a=null),a!==u?t=i=[i,r,n,o,a]:(pa=t,t=u)):(pa=t,t=u)):(pa=t,t=u)):(pa=t,t=u)):(pa=t,t=u),t!==u&&(La=e,t=Yt(t)),t}function fs(){var t,i,r,n;return i=pa,e.substr(pa,10).toLowerCase()===Ut?(r=e.substr(pa,10),pa+=10):(r=u,Oa(Qt)),r!==u?(e.substr(pa,3).toLowerCase()===Rt?(n=e.substr(pa,3),pa+=3):(n=u,Oa(_t)),n===u&&(e.substr(pa,3).toLowerCase()===Pt?(n=e.substr(pa,3),pa+=3):(n=u,Oa(Bt)),n===u&&(e.substr(pa,4).toLowerCase()===Ht?(n=e.substr(pa,4),pa+=4):(n=u,Oa(Vt)),n===u&&(e.substr(pa,3).toLowerCase()===Wt?(n=e.substr(pa,3),pa+=3):(n=u,Oa(Gt)),n===u&&(n=qa())))),n!==u?(La=i,i=r=Ft(n)):(pa=i,i=u)):(pa=i,i=u),(t=i)===u&&(t=function(){var t,i,r;return t=pa,e.substr(pa,5).toLowerCase()===Zt?(i=e.substr(pa,5),pa+=5):(i=u,Oa(Jt)),i!==u?(e.substr(pa,5).toLowerCase()===qt?(r=e.substr(pa,5),pa+=5):(r=u,Oa(Kt)),r===u&&(e.substr(pa,2).toLowerCase()===$t?(r=e.substr(pa,2),pa+=2):(r=u,Oa(Xt)),r===u&&(r=qa())),r!==u?(La=t,t=i=ei(r)):(pa=t,t=u)):(pa=t,t=u),t}())===u&&(t=function(){var t,i,r;return t=pa,e.substr(pa,7).toLowerCase()===ti?(i=e.substr(pa,7),pa+=7):(i=u,Oa(ii)),i!==u&&(r=_s())!==u?(La=t,t=i=ri(r)):(pa=t,t=u),t}())===u&&(t=function(){var t,i,r;return t=pa,e.substr(pa,4).toLowerCase()===ni?(i=e.substr(pa,4),pa+=4):(i=u,Oa(oi)),i!==u&&(r=NM())!==u?(La=t,t=i=ai(r)):(pa=t,t=u),t}())===u&&(t=function(){var t,i,r;return t=pa,e.substr(pa,6).toLowerCase()===si?(i=e.substr(pa,6),pa+=6):(i=u,Oa(Mi)),i!==u&&(r=ys())!==u?(La=t,t=i=ui(r)):(pa=t,t=u),t}())===u&&(t=function(){var t,i,r,n,o;return t=pa,e.substr(pa,2).toLowerCase()===ci?(i=e.substr(pa,2),pa+=2):(i=u,Oa(li)),i!==u?(r=pa,61===e.charCodeAt(pa)?(n=B,pa++):(n=u,Oa(H)),n!==u&&(o=qa())!==u?r=n=[n,o]:(pa=r,r=u),r===u&&(r=null),r!==u?(La=t,t=i=Ni()):(pa=t,t=u)):(pa=t,t=u),t}())===u&&(t=function(){var t,i,r,n,o;return t=pa,(i=function(){var t,i,r;if(t=pa,i=[],(r=ms())!==u)for(;r!==u;)i.push(r),r=ms();else i=u;return i!==u?e.substring(t,pa):i}())!==u?(r=pa,61===e.charCodeAt(pa)?(n=B,pa++):(n=u,Oa(H)),n!==u&&(o=function(){var t,i,r;if(t=pa,i=[],(r=ms())!==u)for(;r!==u;)i.push(r),r=ms();else i=u;return i!==u?e.substring(t,pa):i}())!==u?r=n=[n,o]:(pa=r,r=u),r===u&&(r=null),r!==u?(La=t,t=i=gi(i,r)):(pa=t,t=u)):(pa=t,t=u),t}()),t}function ms(){var t,i;return 91===e.charCodeAt(pa)?(i=Ee,pa++):(i=u,Oa(Oe)),i===u&&(93===e.charCodeAt(pa)?(i=xe,pa++):(i=u,Oa(we)),i===u&&(47===e.charCodeAt(pa)?(i=x,pa++):(i=u,Oa(w)),i===u&&(58===e.charCodeAt(pa)?(i=Y,pa++):(i=u,Oa(U)),i===u&&(38===e.charCodeAt(pa)?(i=_,pa++):(i=u,Oa(P)),i===u&&(43===e.charCodeAt(pa)?(i=V,pa++):(i=u,Oa(W)),i===u&&(36===e.charCodeAt(pa)?(i=G,pa++):(i=u,Oa(F)))))))),(t=i)===u&&(t=Ha())===u&&(t=Wa()),t}function vs(){var t,i,r,n;return t=pa,(i=function(){var e,t;if(e=[],(t=Es())===u&&(t=Ha())===u&&(t=Wa()),t!==u)for(;t!==u;)e.push(t),(t=Es())===u&&(t=Ha())===u&&(t=Wa());else e=u;return e}())!==u?(61===e.charCodeAt(pa)?(r=B,pa++):(r=u,Oa(H)),r!==u&&(n=function(){var e,t;for(e=[],(t=Es())===u&&(t=Ha())===u&&(t=Wa());t!==u;)e.push(t),(t=Es())===u&&(t=Ha())===u&&(t=Wa());return e}())!==u?(La=t,t=i=di(i,n)):(pa=t,t=u)):(pa=t,t=u),t}function Es(){var t;return 91===e.charCodeAt(pa)?(t=Ee,pa++):(t=u,Oa(Oe)),t===u&&(93===e.charCodeAt(pa)?(t=xe,pa++):(t=u,Oa(we)),t===u&&(47===e.charCodeAt(pa)?(t=x,pa++):(t=u,Oa(w)),t===u&&(63===e.charCodeAt(pa)?(t=k,pa++):(t=u,Oa(b)),t===u&&(58===e.charCodeAt(pa)?(t=Y,pa++):(t=u,Oa(U)),t===u&&(43===e.charCodeAt(pa)?(t=V,pa++):(t=u,Oa(W)),t===u&&(36===e.charCodeAt(pa)?(t=G,pa++):(t=u,Oa(F)))))))),t}function Os(){var e,t,i,r,n,o,a,s,M,c,l,N,g;return t=pa,(i=Rs())!==u&&(r=Ra())!==u&&(s=pa,c=pa,(l=wa())!==u&&(N=wa())!==u&&(g=wa())!==u?c=l=[l,N,g]:(pa=c,c=u),(M=c)!==u&&(La=s,M=Bi(M)),(n=M)!==u)&&(o=Ra())!==u&&(a=function(){var e,t,i;for(e=pa,t=[],(i=Ba())===u&&(i=Ha())===u&&(i=Wa())===u&&(i=Za())===u&&(i=Ja())===u&&(i=Ra())===u&&(i=_a());i!==u;)t.push(i),(i=Ba())===u&&(i=Ha())===u&&(i=Wa())===u&&(i=Za())===u&&(i=Ja())===u&&(i=Ra())===u&&(i=_a());return t!==u&&(La=e,t=Hi()),t}())!==u?t=i=[i,r,n,o,a]:(pa=t,t=u),(e=t)===u&&(e=function(){var e,t,i,r,n,o;return e=pa,(t=_s())!==u&&(i=Ra())!==u&&(r=function(){var e;return(e=Ns())===u&&(e=xs()),e}())!==u&&(n=Ra())!==u&&(o=Rs())!==u?e=t=[t,i,r,n,o]:(pa=e,e=u),e}()),e}function xs(){var t,i,r,n,o,a,s,M,c,l,N,g,d,T,j,y,D;return t=pa,function(){var t,i,r,n,o;if(t=pa,i=pa,(r=ka())!==u){for(n=[],(o=ka())===u&&(o=wa())===u&&(43===e.charCodeAt(pa)?(o=V,pa++):(o=u,Oa(W)),o===u&&(45===e.charCodeAt(pa)?(o=q,pa++):(o=u,Oa(K)),o===u&&(46===e.charCodeAt(pa)?(o=ee,pa++):(o=u,Oa(te)))));o!==u;)n.push(o),(o=ka())===u&&(o=wa())===u&&(43===e.charCodeAt(pa)?(o=V,pa++):(o=u,Oa(W)),o===u&&(45===e.charCodeAt(pa)?(o=q,pa++):(o=u,Oa(K)),o===u&&(46===e.charCodeAt(pa)?(o=ee,pa++):(o=u,Oa(te)))));n!==u?i=r=[r,n]:(pa=i,i=u)}else pa=i,i=u;return i!==u&&(La=t,i=Di()),i}()!==u?(58===e.charCodeAt(pa)?(i=Y,pa++):(i=u,Oa(U)),i!==u?(n=pa,c=pa,e.substr(pa,2)===ji?(l=ji,pa+=2):(l=u,Oa(yi)),l!==u&&(T=pa,j=pa,(y=ds())!==u?(64===e.charCodeAt(pa)?(D=Q,pa++):(D=u,Oa(R)),D!==u?j=y=[y,D]:(pa=j,j=u)):(pa=j,j=u),j===u&&(j=null),j!==u&&(y=js())!==u?T=j=[j,y]:(pa=T,T=u),T===u&&(T=null),(d=T)===u&&(d=Qs()),(N=d)!==u)?((g=ws())===u&&(g=null),g!==u?c=l=[l,N,g]:(pa=c,c=u)):(pa=c,c=u),(o=c)===u&&(o=ws()),o!==u?(a=pa,63===e.charCodeAt(pa)?(s=k,pa++):(s=u,Oa(b)),s!==u&&(M=function(){var e,t;for(e=[],t=ks();t!==u;)e.push(t),t=ks();return e}())!==u?a=s=[s,M]:(pa=a,a=u),a===u&&(a=null),a!==u?n=o=[o,a]:(pa=n,n=u)):(pa=n,n=u),(r=n)===u&&(r=function(){var t,i,r,n;if(t=pa,(i=function(){var t;return(t=Ha())===u&&(t=Wa())===u&&(59===e.charCodeAt(pa)?(t=E,pa++):(t=u,Oa(O)),t===u&&(63===e.charCodeAt(pa)?(t=k,pa++):(t=u,Oa(b)),t===u&&(58===e.charCodeAt(pa)?(t=Y,pa++):(t=u,Oa(U)),t===u&&(64===e.charCodeAt(pa)?(t=Q,pa++):(t=u,Oa(R)),t===u&&(38===e.charCodeAt(pa)?(t=_,pa++):(t=u,Oa(P)),t===u&&(61===e.charCodeAt(pa)?(t=B,pa++):(t=u,Oa(H)),t===u&&(43===e.charCodeAt(pa)?(t=V,pa++):(t=u,Oa(W)),t===u&&(36===e.charCodeAt(pa)?(t=G,pa++):(t=u,Oa(F)),t===u&&(44===e.charCodeAt(pa)?(t=Z,pa++):(t=u,Oa(J))))))))))),t}())!==u){for(r=[],n=ks();n!==u;)r.push(n),n=ks();r!==u?t=i=[i,r]:(pa=t,t=u)}else pa=t,t=u;return t}()),r!==u?(La=t,t=Ti()):(pa=t,t=u)):(pa=t,t=u)):(pa=t,t=u),t}function ws(){var t,i,r;return t=pa,47===e.charCodeAt(pa)?(i=x,pa++):(i=u,Oa(w)),i!==u&&(r=function(){var t,i,r,n,o,a;if(t=pa,(i=bs())!==u){for(r=[],n=pa,47===e.charCodeAt(pa)?(o=x,pa++):(o=u,Oa(w)),o!==u&&(a=bs())!==u?n=o=[o,a]:(pa=n,n=u);n!==u;)r.push(n),n=pa,47===e.charCodeAt(pa)?(o=x,pa++):(o=u,Oa(w)),o!==u&&(a=bs())!==u?n=o=[o,a]:(pa=n,n=u);r!==u?t=i=[i,r]:(pa=t,t=u)}else pa=t,t=u;return t}())!==u?t=i=[i,r]:(pa=t,t=u),t}function ks(){var e;return(e=Ba())===u&&(e=Ha())===u&&(e=Wa()),e}function bs(){var t,i,r,n,o,a;for(t=pa,i=[],r=Us();r!==u;)i.push(r),r=Us();if(i!==u){for(r=[],n=pa,59===e.charCodeAt(pa)?(o=E,pa++):(o=u,Oa(O)),o!==u&&(a=Ys())!==u?n=o=[o,a]:(pa=n,n=u);n!==u;)r.push(n),n=pa,59===e.charCodeAt(pa)?(o=E,pa++):(o=u,Oa(O)),o!==u&&(a=Ys())!==u?n=o=[o,a]:(pa=n,n=u);r!==u?t=i=[i,r]:(pa=t,t=u)}else pa=t,t=u;return t}function Ys(){var e,t;for(e=[],t=Us();t!==u;)e.push(t),t=Us();return e}function Us(){var t;return(t=Ha())===u&&(t=Wa())===u&&(58===e.charCodeAt(pa)?(t=Y,pa++):(t=u,Oa(U)),t===u&&(64===e.charCodeAt(pa)?(t=Q,pa++):(t=u,Oa(R)),t===u&&(38===e.charCodeAt(pa)?(t=_,pa++):(t=u,Oa(P)),t===u&&(61===e.charCodeAt(pa)?(t=B,pa++):(t=u,Oa(H)),t===u&&(43===e.charCodeAt(pa)?(t=V,pa++):(t=u,Oa(W)),t===u&&(36===e.charCodeAt(pa)?(t=G,pa++):(t=u,Oa(F)),t===u&&(44===e.charCodeAt(pa)?(t=Z,pa++):(t=u,Oa(J))))))))),t}function Qs(){var t,i;if(t=[],(i=Ha())===u&&(i=Wa())===u&&(36===e.charCodeAt(pa)?(i=G,pa++):(i=u,Oa(F)),i===u&&(44===e.charCodeAt(pa)?(i=Z,pa++):(i=u,Oa(J)),i===u&&(59===e.charCodeAt(pa)?(i=E,pa++):(i=u,Oa(O)),i===u&&(58===e.charCodeAt(pa)?(i=Y,pa++):(i=u,Oa(U)),i===u&&(64===e.charCodeAt(pa)?(i=Q,pa++):(i=u,Oa(R)),i===u&&(38===e.charCodeAt(pa)?(i=_,pa++):(i=u,Oa(P)),i===u&&(61===e.charCodeAt(pa)?(i=B,pa++):(i=u,Oa(H)),i===u&&(43===e.charCodeAt(pa)?(i=V,pa++):(i=u,Oa(W)))))))))),i!==u)for(;i!==u;)t.push(i),(i=Ha())===u&&(i=Wa())===u&&(36===e.charCodeAt(pa)?(i=G,pa++):(i=u,Oa(F)),i===u&&(44===e.charCodeAt(pa)?(i=Z,pa++):(i=u,Oa(J)),i===u&&(59===e.charCodeAt(pa)?(i=E,pa++):(i=u,Oa(O)),i===u&&(58===e.charCodeAt(pa)?(i=Y,pa++):(i=u,Oa(U)),i===u&&(64===e.charCodeAt(pa)?(i=Q,pa++):(i=u,Oa(R)),i===u&&(38===e.charCodeAt(pa)?(i=_,pa++):(i=u,Oa(P)),i===u&&(61===e.charCodeAt(pa)?(i=B,pa++):(i=u,Oa(H)),i===u&&(43===e.charCodeAt(pa)?(i=V,pa++):(i=u,Oa(W))))))))));else t=u;return t}function Rs(){var t,i,r,n,o,a,s;if(t=pa,e.substr(pa,3).toLowerCase()===Mt?(i=e.substr(pa,3),pa+=3):(i=u,Oa(Ii)),i!==u)if(47===e.charCodeAt(pa)?(r=x,pa++):(r=u,Oa(w)),r!==u){if(n=[],(o=wa())!==u)for(;o!==u;)n.push(o),o=wa();else n=u;if(n!==u)if(46===e.charCodeAt(pa)?(o=ee,pa++):(o=u,Oa(te)),o!==u){if(a=[],(s=wa())!==u)for(;s!==u;)a.push(s),s=wa();else a=u;a!==u?(La=t,t=i=pi()):(pa=t,t=u)}else pa=t,t=u;else pa=t,t=u}else pa=t,t=u;else pa=t,t=u;return t}function _s(){var t,i,r;return t=pa,e.substr(pa,6)===Li?(r=Li,pa+=6):(r=u,Oa(zi)),(i=r)===u&&(i=function(){var t;return e.substr(pa,3)===hi?(t=hi,pa+=3):(t=u,Oa(Ai)),t}())===u&&(i=function(){var t;return e.substr(pa,7)===Ci?(t=Ci,pa+=7):(t=u,Oa(Si)),t}())===u&&(i=function(){var t;return e.substr(pa,3)===fi?(t=fi,pa+=3):(t=u,Oa(mi)),t}())===u&&(i=function(){var t;return e.substr(pa,6)===vi?(t=vi,pa+=6):(t=u,Oa(Ei)),t}())===u&&(i=function(){var t;return e.substr(pa,8)===Oi?(t=Oi,pa+=8):(t=u,Oa(xi)),t}())===u&&(i=function(){var t;return e.substr(pa,9)===wi?(t=wi,pa+=9):(t=u,Oa(ki)),t}())===u&&(i=function(){var t;return e.substr(pa,7)===Ri?(t=Ri,pa+=7):(t=u,Oa(_i)),t}())===u&&(i=function(){var t;return e.substr(pa,6)===bi?(t=bi,pa+=6):(t=u,Oa(Yi)),t}())===u&&(i=function(){var t;return e.substr(pa,5)===Ui?(t=Ui,pa+=5):(t=u,Oa(Qi)),t}())===u&&(i=qa()),i!==u&&(La=t,i=Pi()),i}function Ps(){var t,i,r,n;return t=pa,$a()!==u?(i=pa,64===e.charCodeAt(pa)?(r=Q,pa++):(r=u,Oa(R)),r!==u&&(n=$a())!==u?i=r=[r,n]:(pa=i,i=u),i===u&&(i=null),i!==u?(La=t,t=Vi()):(pa=t,t=u)):(pa=t,t=u),t}function Bs(){var t,i,r,n,o,a,s,M,c;if(t=pa,M=pa,Fa()!==u?(42===e.charCodeAt(pa)?(c=ae,pa++):(c=u,Oa(se)),c!==u&&Fa()!==u?(La=M,M=Qe()):(pa=M,M=u)):(pa=M,M=u),(i=M)===u)if(i=pa,(r=Hs())!==u){for(n=[],o=pa,(a=rs())!==u&&(s=Hs())!==u?o=a=[a,s]:(pa=o,o=u);o!==u;)n.push(o),o=pa,(a=rs())!==u&&(s=Hs())!==u?o=a=[a,s]:(pa=o,o=u);n!==u?i=r=[r,n]:(pa=i,i=u)}else pa=i,i=u;return i!==u&&(La=t,i=Wi()),i}function Hs(){var e,t,i,r,n,o;if(e=pa,(t=ls())===u&&(t=Vs()),t!==u){for(i=[],r=pa,(n=ns())!==u&&(o=Gs())!==u?r=n=[n,o]:(pa=r,r=u);r!==u;)i.push(r),r=pa,(n=ns())!==u&&(o=Gs())!==u?r=n=[n,o]:(pa=r,r=u);i!==u?(La=e,e=t=Gi()):(pa=e,e=u)}else pa=e,e=u;return e}function Vs(){var e,t,i,r,n;return e=pa,(t=Ws())===u&&(t=null),t!==u&&(i=is())!==u&&(r=Ns())!==u&&(n=ts())!==u?e=t=[t,i,r,n]:(pa=e,e=u),e}function Ws(){var e,t,i,r,n,o,a;if(e=pa,t=pa,(i=qa())!==u){for(r=[],n=pa,(o=Ga())!==u&&(a=qa())!==u?n=o=[o,a]:(pa=n,n=u);n!==u;)r.push(n),n=pa,(o=Ga())!==u&&(a=qa())!==u?n=o=[o,a]:(pa=n,n=u);r!==u?t=i=[i,r]:(pa=t,t=u)}else pa=t,t=u;return t===u&&(t=ss()),t!==u&&(La=e,t=Fi(t)),t}function Gs(){var t,i,r,n,o,a,s,M,c,l,N;return i=pa,e.substr(pa,1).toLowerCase()===Zi?(r=e.charAt(pa),pa++):(r=u,Oa(Ji)),r!==u&&es()!==u&&(o=pa,48===e.charCodeAt(pa)?(a=tr,pa++):(a=u,Oa(ir)),a!==u?(s=pa,46===e.charCodeAt(pa)?(M=ee,pa++):(M=u,Oa(te)),M!==u?((c=wa())===u&&(c=null),c!==u?((l=wa())===u&&(l=null),l!==u?((N=wa())===u&&(N=null),N!==u?s=M=[M,c,l,N]:(pa=s,s=u)):(pa=s,s=u)):(pa=s,s=u)):(pa=s,s=u),s===u&&(s=null),s!==u?(La=o,o=a=rr()):(pa=o,o=u)):(pa=o,o=u),(n=o)!==u)?(La=i,i=r=qi(n)):(pa=i,i=u),(t=i)===u&&(t=function(){var t,i,r;return t=pa,e.substr(pa,7).toLowerCase()===Ki?(i=e.substr(pa,7),pa+=7):(i=u,Oa($i)),i!==u&&es()!==u&&(r=Fs())!==u?(La=t,t=i=Xi(r)):(pa=t,t=u),t}())===u&&(t=Zs()),t}function Fs(){var e,t,i;if(e=pa,t=[],(i=wa())!==u)for(;i!==u;)t.push(i),i=wa();else t=u;return t!==u&&(La=e,t=er(t)),t}function Zs(){var e,t,i,r,n,o;return e=pa,(t=qa())!==u?(i=pa,(r=es())!==u&&((o=qa())===u&&(o=ys())===u&&(o=ss()),(n=o)!==u)?i=r=[r,n]:(pa=i,i=u),i===u&&(i=null),i!==u?(La=e,e=t=nr(t,i)):(pa=e,e=u)):(pa=e,e=u),e}function Js(){var t,i,r,n,o;return i=pa,e.substr(pa,8).toLowerCase()===dr?(r=e.substr(pa,8),pa+=8):(r=u,Oa(Tr)),r!==u&&(n=es())!==u?(e.substr(pa,8).toLowerCase()===jr?(o=e.substr(pa,8),pa+=8):(o=u,Oa(yr)),o===u&&(e.substr(pa,8).toLowerCase()===Dr?(o=e.substr(pa,8),pa+=8):(o=u,Oa(Ir)),o===u&&(o=qa())),o!==u?i=r=[r,n,o]:(pa=i,i=u)):(pa=i,i=u),(t=i)===u&&(t=Zs()),t}function qs(){var t,i,r,n;return(t=qa())===u&&(i=pa,e.substr(pa,2).toLowerCase()===Yr?(r=e.substr(pa,2),pa+=2):(r=u,Oa(Ur)),r!==u&&(n=qa())!==u?i=r=[r,n]:(pa=i,i=u),t=i),t}function Ks(){var e,t,i,r,n;return e=pa,(t=qa())!==u&&(i=es())!==u&&((n=qa())===u&&(n=ss()),(r=n)!==u)?e=t=[t,i,r]:(pa=e,e=u),e}function $s(){var e;return(e=Xs())===u&&(e=Zs()),e}function Xs(){var t,i,r;return t=pa,e.substr(pa,3).toLowerCase()===Pr?(i=e.substr(pa,3),pa+=3):(i=u,Oa(Br)),i!==u&&es()!==u&&(r=qa())!==u?(La=t,t=i=Hr(r)):(pa=t,t=u),t}function eM(){var t,i,r,n,o,a,s,M;if(t=pa,e.substr(pa,6).toLowerCase()===Gr?(i=e.substr(pa,6),pa+=6):(i=u,Oa(Fr)),i!==u)if((r=Ga())!==u)if((n=iM())!==u){for(o=[],a=pa,(s=rs())!==u&&(M=iM())!==u?a=s=[s,M]:(pa=a,a=u);a!==u;)o.push(a),a=pa,(s=rs())!==u&&(M=iM())!==u?a=s=[s,M]:(pa=a,a=u);o!==u?t=i=[i,r,n,o]:(pa=t,t=u)}else pa=t,t=u;else pa=t,t=u;else pa=t,t=u;return t===u&&(t=function(){var e,t,i,r,n,o,a,s;if(e=pa,(t=qa())!==u)if((i=Ga())!==u)if((r=tM())!==u){for(n=[],o=pa,(a=rs())!==u&&(s=tM())!==u?o=a=[a,s]:(pa=o,o=u);o!==u;)n.push(o),o=pa,(a=rs())!==u&&(s=tM())!==u?o=a=[a,s]:(pa=o,o=u);n!==u?e=t=[t,i,r,n]:(pa=e,e=u)}else pa=e,e=u;else pa=e,e=u;else pa=e,e=u;return e}()),t}function tM(){var e,t,i,r;return e=pa,(t=qa())!==u&&(i=es())!==u?((r=qa())===u&&(r=ss()),r!==u?e=t=[t,i,r]:(pa=e,e=u)):(pa=e,e=u),e}function iM(){var t,i,r,n,o,a,s;return i=pa,e.substr(pa,5).toLowerCase()===Zr?(r=e.substr(pa,5),pa+=5):(r=u,Oa(Jr)),r!==u&&(n=es())!==u&&(a=pa,(s=Ms())!==u&&(La=a,s=qr(s)),(o=s)!==u)?i=r=[r,n,o]:(pa=i,i=u),(t=i)===u&&(t=function(){var t,i,r,n,o,a,s,M,c;if(t=pa,e.substr(pa,6).toLowerCase()===Kr?(i=e.substr(pa,6),pa+=6):(i=u,Oa($r)),i!==u)if((r=es())!==u)if((n=os())!==u)if((o=rM())!==u){if(a=[],s=pa,M=[],(c=Ra())!==u)for(;c!==u;)M.push(c),c=Ra();else M=u;for(M!==u&&(c=rM())!==u?s=M=[M,c]:(pa=s,s=u);s!==u;){if(a.push(s),s=pa,M=[],(c=Ra())!==u)for(;c!==u;)M.push(c),c=Ra();else M=u;M!==u&&(c=rM())!==u?s=M=[M,c]:(pa=s,s=u)}a!==u&&(s=as())!==u?t=i=[i,r,n,o,a,s]:(pa=t,t=u)}else pa=t,t=u;else pa=t,t=u;else pa=t,t=u;else pa=t,t=u;return t}())===u&&(t=function(){var t,i,r,n;return t=pa,e.substr(pa,5).toLowerCase()===Xr?(i=e.substr(pa,5),pa+=5):(i=u,Oa(en)),i!==u&&(r=es())!==u&&(n=function(){var e,t;return e=pa,(t=Ms())!==u&&(La=e,t=tn(t)),t}())!==u?t=i=[i,r,n]:(pa=t,t=u),t}())===u&&(t=function(){var t,i,r;return t=pa,e.substr(pa,6).toLowerCase()===rn?(i=e.substr(pa,6),pa+=6):(i=u,Oa(nn)),i!==u&&es()!==u&&(r=Ms())!==u?(La=t,t=i=on(r)):(pa=t,t=u),t}())===u&&(t=function(){var t,i,r,n,o;return t=pa,e.substr(pa,5).toLowerCase()===an?(i=e.substr(pa,5),pa+=5):(i=u,Oa(sn)),i!==u&&(r=es())!==u?(n=pa,e.substr(pa,4).toLowerCase()===Mn?(o=e.substr(pa,4),pa+=4):(o=u,Oa(un)),o!==u&&(La=n,o=cn()),(n=o)===u&&(n=pa,e.substr(pa,5).toLowerCase()===ln?(o=e.substr(pa,5),pa+=5):(o=u,Oa(Nn)),o!==u&&(La=n,o=gn()),n=o),n!==u?t=i=[i,r,n]:(pa=t,t=u)):(pa=t,t=u),t}())===u&&(t=function(){var t,i,r;return t=pa,e.substr(pa,9).toLowerCase()===dn?(i=e.substr(pa,9),pa+=9):(i=u,Oa(Tn)),i!==u&&es()!==u?(e.substr(pa,3).toLowerCase()===jn?(r=e.substr(pa,3),pa+=3):(r=u,Oa(yn)),r===u&&(e.substr(pa,8).toLowerCase()===Dn?(r=e.substr(pa,8),pa+=8):(r=u,Oa(In)),r===u&&(r=qa())),r!==u?(La=t,t=i=pn(r)):(pa=t,t=u)):(pa=t,t=u),t}())===u&&(t=function(){var t,i,r,n,o,a,s,M,c,l;if(t=pa,e.substr(pa,3).toLowerCase()===Ln?(i=e.substr(pa,3),pa+=3):(i=u,Oa(zn)),i!==u)if((r=es())!==u)if((n=os())!==u){if(o=pa,(a=nM())!==u){for(s=[],M=pa,44===e.charCodeAt(pa)?(c=Z,pa++):(c=u,Oa(J)),c!==u&&(l=nM())!==u?M=c=[c,l]:(pa=M,M=u);M!==u;)s.push(M),M=pa,44===e.charCodeAt(pa)?(c=Z,pa++):(c=u,Oa(J)),c!==u&&(l=nM())!==u?M=c=[c,l]:(pa=M,M=u);s!==u?o=a=[a,s]:(pa=o,o=u)}else pa=o,o=u;o!==u&&(a=as())!==u?t=i=[i,r,n,o,a]:(pa=t,t=u)}else pa=t,t=u;else pa=t,t=u;else pa=t,t=u;return t}())===u&&(t=tM()),t}function rM(){var e;return(e=xs())===u&&(e=ws()),e}function nM(){var t,i;return t=pa,e.substr(pa,8).toLowerCase()===hn?(i=e.substr(pa,8),pa+=8):(i=u,Oa(An)),i===u&&(e.substr(pa,4).toLowerCase()===Cn?(i=e.substr(pa,4),pa+=4):(i=u,Oa(Sn)),i===u&&(i=qa())),i!==u&&(La=t,i=fn(i)),i}function oM(){var e,t,i,r,n;if(e=pa,Vs()!==u){for(t=[],i=pa,(r=ns())!==u&&(n=Zs())!==u?i=r=[r,n]:(pa=i,i=u);i!==u;)t.push(i),i=pa,(r=ns())!==u&&(n=Zs())!==u?i=r=[r,n]:(pa=i,i=u);t!==u?(La=e,e=vn()):(pa=e,e=u)}else pa=e,e=u;return e}function aM(){var t,i,r;return t=pa,e.substr(pa,8).toLowerCase()===wn?(i=e.substr(pa,8),pa+=8):(i=u,Oa(kn)),i!==u&&es()!==u&&(r=qa())!==u?(La=t,t=i=bn(r)):(pa=t,t=u),t===u&&(t=pa,e.substr(pa,6).toLowerCase()===Yn?(i=e.substr(pa,6),pa+=6):(i=u,Oa(Un)),i!==u&&es()!==u&&(r=qa())!==u?(La=t,t=i=Qn(r)):(pa=t,t=u),t===u&&(t=pa,e.substr(pa,10).toLowerCase()===Rn?(i=e.substr(pa,10),pa+=10):(i=u,Oa(_n)),i!==u&&(La=t,i=Pn()),(t=i)===u&&(t=Zs()))),t}function sM(){var t,i,r,n;return t=pa,e.substr(pa,6).toLowerCase()===$n?(i=e.substr(pa,6),pa+=6):(i=u,Oa(Xn)),i!==u&&es()!==u&&(e.substr(pa,11).toLowerCase()===oo?(n=e.substr(pa,11),pa+=11):(n=u,Oa(ao)),n===u&&(e.substr(pa,9).toLowerCase()===so?(n=e.substr(pa,9),pa+=9):(n=u,Oa(Mo)),n===u&&(e.substr(pa,8).toLowerCase()===uo?(n=e.substr(pa,8),pa+=8):(n=u,Oa(co)),n===u&&(e.substr(pa,7).toLowerCase()===lo?(n=e.substr(pa,7),pa+=7):(n=u,Oa(No)),n===u&&(e.substr(pa,6).toLowerCase()===go?(n=e.substr(pa,6),pa+=6):(n=u,Oa(To)),n===u&&(e.substr(pa,10).toLowerCase()===jo?(n=e.substr(pa,10),pa+=10):(n=u,Oa(yo)),n===u&&(e.substr(pa,9).toLowerCase()===Do?(n=e.substr(pa,9),pa+=9):(n=u,Oa(Io)),n===u&&(n=qa()))))))),(r=n)!==u)?(La=t,t=i=eo(r)):(pa=t,t=u),t===u&&(t=pa,e.substr(pa,7).toLowerCase()===Ki?(i=e.substr(pa,7),pa+=7):(i=u,Oa($i)),i!==u&&es()!==u&&(r=Fs())!==u?(La=t,t=i=to(r)):(pa=t,t=u),t===u&&(t=pa,e.substr(pa,11).toLowerCase()===io?(i=e.substr(pa,11),pa+=11):(i=u,Oa(ro)),i!==u&&es()!==u&&(r=Fs())!==u?(La=t,t=i=no(r)):(pa=t,t=u),t===u&&(t=Zs()))),t}function MM(){var e;return(e=Xs())===u&&(e=Zs()),e}function uM(){var t,i,r,n,o,a,s,M,c,l,N,g,d,T,j,y;if(t=pa,c=pa,j=pa,e.substr(pa,3).toLowerCase()===Mt?(y=e.substr(pa,3),pa+=3):(y=u,Oa(Ii)),y===u&&(y=qa()),y!==u&&(La=j,y=Uo(y)),(l=y)!==u&&(N=Xa())!==u&&(g=qa())!==u&&(d=Xa())!==u&&(T=lM())!==u?c=l=[l,N,g,d,T]:(pa=c,c=u),(i=c)!==u)if((r=Ga())!==u)if((n=function(){var t,i,r,n,o;return t=pa,(i=function(){var e,t;return e=pa,(t=Ds())===u&&(t=As())===u&&(t=ps()),t!==u&&(La=e,t=Ho()),t}())!==u?(r=pa,(n=function(){var t,i;return t=pa,Fa()!==u?(58===e.charCodeAt(pa)?(i=Y,pa++):(i=u,Oa(U)),i!==u&&Fa()!==u?(La=t,t=We()):(pa=t,t=u)):(pa=t,t=u),t}())!==u&&(o=function(){var e,t,i,r,n,o,a;return e=pa,t=pa,(i=wa())===u&&(i=null),i!==u?((r=wa())===u&&(r=null),r!==u?((n=wa())===u&&(n=null),n!==u?((o=wa())===u&&(o=null),o!==u?((a=wa())===u&&(a=null),a!==u?t=i=[i,r,n,o,a]:(pa=t,t=u)):(pa=t,t=u)):(pa=t,t=u)):(pa=t,t=u)):(pa=t,t=u),t!==u&&(La=e,t=Vo(t)),t}())!==u?r=n=[n,o]:(pa=r,r=u),r===u&&(r=null),r!==u?t=i=[i,r]:(pa=t,t=u)):(pa=t,t=u),t}())!==u){for(o=[],a=pa,(s=ns())!==u&&(M=cM())!==u?a=s=[s,M]:(pa=a,a=u);a!==u;)o.push(a),a=pa,(s=ns())!==u&&(M=cM())!==u?a=s=[s,M]:(pa=a,a=u);o!==u?t=i=[i,r,n,o]:(pa=t,t=u)}else pa=t,t=u;else pa=t,t=u;else pa=t,t=u;return t}function cM(){var t,i,r,n;return i=pa,e.substr(pa,3).toLowerCase()===zo?(r=e.substr(pa,3),pa+=3):(r=u,Oa(ho)),r!==u&&es()!==u&&(n=NM())!==u?(La=i,i=r=Ao(n)):(pa=i,i=u),(t=i)===u&&(t=function(){var t,i,r;return t=pa,e.substr(pa,5).toLowerCase()===Co?(i=e.substr(pa,5),pa+=5):(i=u,Oa(So)),i!==u&&es()!==u&&(r=ys())!==u?(La=t,t=i=fo(r)):(pa=t,t=u),t}())===u&&(t=function(){var t,i,r;return t=pa,e.substr(pa,8).toLowerCase()===mo?(i=e.substr(pa,8),pa+=8):(i=u,Oa(vo)),i!==u&&es()!==u?((r=As())===u&&(r=Ls())===u&&(r=ps()),r!==u?(La=t,t=i=Eo(r)):(pa=t,t=u)):(pa=t,t=u),t}())===u&&(t=function(){var t,i,r;return t=pa,e.substr(pa,6).toLowerCase()===Oo?(i=e.substr(pa,6),pa+=6):(i=u,Oa(xo)),i!==u&&es()!==u&&(r=qa())!==u?(La=t,t=i=wo(r)):(pa=t,t=u),t}())===u&&(t=function(){var t,i,r,n;if(t=pa,e.substr(pa,5).toLowerCase()===ko?(i=e.substr(pa,5),pa+=5):(i=u,Oa(bo)),i!==u)if(es()!==u){for(r=[],n=wa();n!==u;)r.push(n),n=wa();r!==u?(La=t,t=i=Yo(r)):(pa=t,t=u)}else pa=t,t=u;else pa=t,t=u;return t}())===u&&(t=Zs()),t}function lM(){var t,i;return t=pa,e.substr(pa,3).toLowerCase()===Rt?(i=e.substr(pa,3),pa+=3):(i=u,Oa(Qo)),i===u&&(e.substr(pa,3).toLowerCase()===Pt?(i=e.substr(pa,3),pa+=3):(i=u,Oa(Ro)),i===u&&(e.substr(pa,3).toLowerCase()===Wt?(i=e.substr(pa,3),pa+=3):(i=u,Oa(_o)),i===u&&(e.substr(pa,4).toLowerCase()===Ht?(i=e.substr(pa,4),pa+=4):(i=u,Oa(Po)),i===u&&(i=qa())))),i!==u&&(La=t,i=Bo(i)),i}function NM(){var e,t,i,r,n;return e=pa,t=pa,(i=wa())!==u?((r=wa())===u&&(r=null),r!==u?((n=wa())===u&&(n=null),n!==u?t=i=[i,r,n]:(pa=t,t=u)):(pa=t,t=u)):(pa=t,t=u),t!==u&&(La=e,t=Wo(t)),t}function gM(){var t,i,r,n;return i=pa,e.substr(pa,9)===Fo?(r=Fo,pa+=9):(r=u,Oa(Zo)),r!==u&&es()!==u?(e.substr(pa,3)===Jo?(n=Jo,pa+=3):(n=u,Oa(qo)),n===u&&(e.substr(pa,3)===Ko?(n=Ko,pa+=3):(n=u,Oa($o))),n!==u?(La=i,i=r=Xo(n)):(pa=i,i=u)):(pa=i,i=u),(t=i)===u&&(t=Zs()),t}function dM(){var t,i,r,n,o,a,s;return t=pa,a=pa,(s=As())===u&&(s=ps())===u&&(s=Qs()),s!==u&&(La=a,s=aa(s)),(i=s)!==u?(r=pa,58===e.charCodeAt(pa)?(n=Y,pa++):(n=u,Oa(U)),n!==u&&(o=Ss())!==u?r=n=[n,o]:(pa=r,r=u),r===u&&(r=null),r!==u?t=i=[i,r]:(pa=t,t=u)):(pa=t,t=u),t}function TM(){var e,t,i,r,n;return e=pa,(t=ba())!==u&&(i=ba())!==u&&(r=ba())!==u&&(n=ba())!==u?e=t=[t,i,r,n]:(pa=e,e=u),e}function jM(){var t,i,r,n,o,a,s,M,c,l;return t=pa,e.substr(pa,3)===Da?(i=Da,pa+=3):(i=u,Oa(Ia)),i!==u&&(r=es())!==u&&(o=pa,(a=os())!==u&&(s=Va())!==u?(64===e.charCodeAt(pa)?(M=Q,pa++):(M=u,Oa(R)),M!==u?((c=Va())===u&&(c=ys()),c!==u&&(l=as())!==u?o=a=[a,s,M,c,l]:(pa=o,o=u)):(pa=o,o=u)):(pa=o,o=u),(n=o)!==u)?t=i=[i,r,n]:(pa=t,t=u),t}if(t.data={},(i=l())!==u&&pa===e.length)return i;throw i!==u&&pa<e.length&&Oa({type:"end"}),r=Aa,n=ha<e.length?e.charAt(ha):null,M=ha<e.length?Ea(ha,ha+1):Ea(ha,ha),new s(s.buildMessage(r,n),r,n,M)}},function(e,t,i){var r;e.exports=(r=i(33),function(e){var t=r,i=t.lib,n=i.WordArray,o=i.Hasher,a=t.algo,s=[];!function(){for(var t=0;t<64;t++)s[t]=4294967296*e.abs(e.sin(t+1))|0}();var M=a.MD5=o.extend({_doReset:function(){this._hash=new n.init([1732584193,4023233417,2562383102,271733878])},_doProcessBlock:function(e,t){for(var i=0;i<16;i++){var r=t+i,n=e[r];e[r]=16711935&(n<<8|n>>>24)|4278255360&(n<<24|n>>>8)}var o=this._hash.words,a=e[t+0],M=e[t+1],g=e[t+2],d=e[t+3],T=e[t+4],j=e[t+5],y=e[t+6],D=e[t+7],I=e[t+8],p=e[t+9],L=e[t+10],z=e[t+11],h=e[t+12],A=e[t+13],C=e[t+14],S=e[t+15],f=o[0],m=o[1],v=o[2],E=o[3];f=u(f,m,v,E,a,7,s[0]),E=u(E,f,m,v,M,12,s[1]),v=u(v,E,f,m,g,17,s[2]),m=u(m,v,E,f,d,22,s[3]),f=u(f,m,v,E,T,7,s[4]),E=u(E,f,m,v,j,12,s[5]),v=u(v,E,f,m,y,17,s[6]),m=u(m,v,E,f,D,22,s[7]),f=u(f,m,v,E,I,7,s[8]),E=u(E,f,m,v,p,12,s[9]),v=u(v,E,f,m,L,17,s[10]),m=u(m,v,E,f,z,22,s[11]),f=u(f,m,v,E,h,7,s[12]),E=u(E,f,m,v,A,12,s[13]),v=u(v,E,f,m,C,17,s[14]),f=c(f,m=u(m,v,E,f,S,22,s[15]),v,E,M,5,s[16]),E=c(E,f,m,v,y,9,s[17]),v=c(v,E,f,m,z,14,s[18]),m=c(m,v,E,f,a,20,s[19]),f=c(f,m,v,E,j,5,s[20]),E=c(E,f,m,v,L,9,s[21]),v=c(v,E,f,m,S,14,s[22]),m=c(m,v,E,f,T,20,s[23]),f=c(f,m,v,E,p,5,s[24]),E=c(E,f,m,v,C,9,s[25]),v=c(v,E,f,m,d,14,s[26]),m=c(m,v,E,f,I,20,s[27]),f=c(f,m,v,E,A,5,s[28]),E=c(E,f,m,v,g,9,s[29]),v=c(v,E,f,m,D,14,s[30]),f=l(f,m=c(m,v,E,f,h,20,s[31]),v,E,j,4,s[32]),E=l(E,f,m,v,I,11,s[33]),v=l(v,E,f,m,z,16,s[34]),m=l(m,v,E,f,C,23,s[35]),f=l(f,m,v,E,M,4,s[36]),E=l(E,f,m,v,T,11,s[37]),v=l(v,E,f,m,D,16,s[38]),m=l(m,v,E,f,L,23,s[39]),f=l(f,m,v,E,A,4,s[40]),E=l(E,f,m,v,a,11,s[41]),v=l(v,E,f,m,d,16,s[42]),m=l(m,v,E,f,y,23,s[43]),f=l(f,m,v,E,p,4,s[44]),E=l(E,f,m,v,h,11,s[45]),v=l(v,E,f,m,S,16,s[46]),f=N(f,m=l(m,v,E,f,g,23,s[47]),v,E,a,6,s[48]),E=N(E,f,m,v,D,10,s[49]),v=N(v,E,f,m,C,15,s[50]),m=N(m,v,E,f,j,21,s[51]),f=N(f,m,v,E,h,6,s[52]),E=N(E,f,m,v,d,10,s[53]),v=N(v,E,f,m,L,15,s[54]),m=N(m,v,E,f,M,21,s[55]),f=N(f,m,v,E,I,6,s[56]),E=N(E,f,m,v,S,10,s[57]),v=N(v,E,f,m,y,15,s[58]),m=N(m,v,E,f,A,21,s[59]),f=N(f,m,v,E,T,6,s[60]),E=N(E,f,m,v,z,10,s[61]),v=N(v,E,f,m,g,15,s[62]),m=N(m,v,E,f,p,21,s[63]),o[0]=o[0]+f|0,o[1]=o[1]+m|0,o[2]=o[2]+v|0,o[3]=o[3]+E|0},_doFinalize:function(){var t=this._data,i=t.words,r=8*this._nDataBytes,n=8*t.sigBytes;i[n>>>5]|=128<<24-n%32;var o=e.floor(r/4294967296),a=r;i[15+(n+64>>>9<<4)]=16711935&(o<<8|o>>>24)|4278255360&(o<<24|o>>>8),i[14+(n+64>>>9<<4)]=16711935&(a<<8|a>>>24)|4278255360&(a<<24|a>>>8),t.sigBytes=4*(i.length+1),this._process();for(var s=this._hash,M=s.words,u=0;u<4;u++){var c=M[u];M[u]=16711935&(c<<8|c>>>24)|4278255360&(c<<24|c>>>8)}return s},clone:function(){var e=o.clone.call(this);return e._hash=this._hash.clone(),e}});function u(e,t,i,r,n,o,a){var s=e+(t&i|~t&r)+n+a;return(s<<o|s>>>32-o)+t}function c(e,t,i,r,n,o,a){var s=e+(t&r|i&~r)+n+a;return(s<<o|s>>>32-o)+t}function l(e,t,i,r,n,o,a){var s=e+(t^i^r)+n+a;return(s<<o|s>>>32-o)+t}function N(e,t,i,r,n,o,a){var s=e+(i^(t|~r))+n+a;return(s<<o|s>>>32-o)+t}t.MD5=o._createHelper(M),t.HmacMD5=o._createHmacHelper(M)}(Math),r.MD5)},function(e,t,i){var r,n,o,a,s,M,u,c,l,N,g,d,T;e.exports=(r=r||(n=Math,o=Object.create||function(){function e(){}return function(t){var i;return e.prototype=t,i=new e,e.prototype=null,i}}(),s=(a={}).lib={},M=s.Base={extend:function(e){var t=o(this);return e&&t.mixIn(e),t.hasOwnProperty("init")&&this.init!==t.init||(t.init=function(){t.$super.init.apply(this,arguments)}),t.init.prototype=t,t.$super=this,t},create:function(){var e=this.extend();return e.init.apply(e,arguments),e},init:function(){},mixIn:function(e){for(var t in e)e.hasOwnProperty(t)&&(this[t]=e[t]);e.hasOwnProperty("toString")&&(this.toString=e.toString)},clone:function(){return this.init.prototype.extend(this)}},u=s.WordArray=M.extend({init:function(e,t){e=this.words=e||[],this.sigBytes=null!=t?t:4*e.length},toString:function(e){return(e||l).stringify(this)},concat:function(e){var t=this.words,i=e.words,r=this.sigBytes,n=e.sigBytes;if(this.clamp(),r%4)for(var o=0;o<n;o++){var a=i[o>>>2]>>>24-o%4*8&255;t[r+o>>>2]|=a<<24-(r+o)%4*8}else for(o=0;o<n;o+=4)t[r+o>>>2]=i[o>>>2];return this.sigBytes+=n,this},clamp:function(){var e=this.words,t=this.sigBytes;e[t>>>2]&=4294967295<<32-t%4*8,e.length=n.ceil(t/4)},clone:function(){var e=M.clone.call(this);return e.words=this.words.slice(0),e},random:function(e){for(var t,i=[],r=function(e){var t=987654321,i=4294967295;return function(){var r=((t=36969*(65535&t)+(t>>16)&i)<<16)+(e=18e3*(65535&e)+(e>>16)&i)&i;return r/=4294967296,(r+=.5)*(n.random()>.5?1:-1)}},o=0;o<e;o+=4){var a=r(4294967296*(t||n.random()));t=987654071*a(),i.push(4294967296*a()|0)}return new u.init(i,e)}}),c=a.enc={},l=c.Hex={stringify:function(e){for(var t=e.words,i=e.sigBytes,r=[],n=0;n<i;n++){var o=t[n>>>2]>>>24-n%4*8&255;r.push((o>>>4).toString(16)),r.push((15&o).toString(16))}return r.join("")},parse:function(e){for(var t=e.length,i=[],r=0;r<t;r+=2)i[r>>>3]|=parseInt(e.substr(r,2),16)<<24-r%8*4;return new u.init(i,t/2)}},N=c.Latin1={stringify:function(e){for(var t=e.words,i=e.sigBytes,r=[],n=0;n<i;n++){var o=t[n>>>2]>>>24-n%4*8&255;r.push(String.fromCharCode(o))}return r.join("")},parse:function(e){for(var t=e.length,i=[],r=0;r<t;r++)i[r>>>2]|=(255&e.charCodeAt(r))<<24-r%4*8;return new u.init(i,t)}},g=c.Utf8={stringify:function(e){try{return decodeURIComponent(escape(N.stringify(e)))}catch(t){throw new Error("Malformed UTF-8 data")}},parse:function(e){return N.parse(unescape(encodeURIComponent(e)))}},d=s.BufferedBlockAlgorithm=M.extend({reset:function(){this._data=new u.init,this._nDataBytes=0},_append:function(e){"string"==typeof e&&(e=g.parse(e)),this._data.concat(e),this._nDataBytes+=e.sigBytes},_process:function(e){var t=this._data,i=t.words,r=t.sigBytes,o=this.blockSize,a=r/(4*o),s=(a=e?n.ceil(a):n.max((0|a)-this._minBufferSize,0))*o,M=n.min(4*s,r);if(s){for(var c=0;c<s;c+=o)this._doProcessBlock(i,c);var l=i.splice(0,s);t.sigBytes-=M}return new u.init(l,M)},clone:function(){var e=M.clone.call(this);return e._data=this._data.clone(),e},_minBufferSize:0}),s.Hasher=d.extend({cfg:M.extend(),init:function(e){this.cfg=this.cfg.extend(e),this.reset()},reset:function(){d.reset.call(this),this._doReset()},update:function(e){return this._append(e),this._process(),this},finalize:function(e){return e&&this._append(e),this._doFinalize()},blockSize:16,_createHelper:function(e){return function(t,i){return new e.init(i).finalize(t)}},_createHmacHelper:function(e){return function(t,i){return new T.HMAC.init(e,i).finalize(t)}}}),T=a.algo={},a),r)},function(e,t,i){var r,n=this&&this.__extends||(r=function(e,t){return(r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var i in t)t.hasOwnProperty(i)&&(e[i]=t[i])})(e,t)},function(e,t){function i(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(i.prototype=t.prototype,new i)});Object.defineProperty(t,"__esModule",{value:!0});var o=i(3),a=i(1),s=i(0),M=i(5),u=i(2),c=function(e){function t(t,i,r){void 0===r&&(r={});var n=e.call(this)||this;if(n.C={MIN_DURATION:70,MAX_DURATION:6e3,DEFAULT_DURATION:100,MIN_INTER_TONE_GAP:50,DEFAULT_INTER_TONE_GAP:500},n.type=s.TypeStrings.DTMF,void 0===i)throw new TypeError("Not enough arguments");if(n.logger=t.ua.getLogger("sip.invitecontext.dtmf",t.id),n.owner=t,"string"==typeof i)i=i.toUpperCase();else{if("number"!=typeof i)throw new TypeError("Invalid tone: "+i);i=i.toString()}if(!i.match(/^[0-9A-D#*]$/))throw new TypeError("Invalid tone: "+i);n.tone=i;var o=r.duration,a=r.interToneGap;if(o&&!u.Utils.isDecimal(o))throw new TypeError("Invalid tone duration: "+o);if(o?o<n.C.MIN_DURATION?(n.logger.warn("'duration' value is lower than the minimum allowed, setting it to "+n.C.MIN_DURATION+" milliseconds"),o=n.C.MIN_DURATION):o>n.C.MAX_DURATION?(n.logger.warn("'duration' value is greater than the maximum allowed, setting it to "+n.C.MAX_DURATION+" milliseconds"),o=n.C.MAX_DURATION):o=Math.abs(o):o=n.C.DEFAULT_DURATION,n.duration=o,a&&!u.Utils.isDecimal(a))throw new TypeError("Invalid interToneGap: "+a);return a?a<n.C.MIN_INTER_TONE_GAP?(n.logger.warn("'interToneGap' value is lower than the minimum allowed, setting it to "+n.C.MIN_INTER_TONE_GAP+" milliseconds"),a=n.C.MIN_INTER_TONE_GAP):a=Math.abs(a):a=n.C.DEFAULT_INTER_TONE_GAP,n.interToneGap=a,n}return n(t,e),t.prototype.send=function(e){if(void 0===e&&(e={}),this.owner.status!==s.SessionStatus.STATUS_CONFIRMED&&this.owner.status!==s.SessionStatus.STATUS_WAITING_FOR_ACK)throw new M.Exceptions.InvalidStateError(this.owner.status);var t=e.extraHeaders?e.extraHeaders.slice():[],i={contentType:"application/dtmf-relay",body:"Signal= "+this.tone+"\r\nDuration= "+this.duration};if(this.owner.dialog){var r=this.owner.dialog.sendRequest(this,a.C.INFO,{extraHeaders:t,body:i});this.owner.emit("dtmf",r,this)}},t.prototype.init_incoming=function(e){e.reply(200),this.tone&&this.duration?this.owner.emit("dtmf",e,this):this.logger.warn("invalid INFO DTMF received, discarded")},t.prototype.receiveResponse=function(e){var t=e&&e.statusCode?e.statusCode:0;switch(!0){case/^1[0-9]{2}$/.test(t.toString()):break;case/^2[0-9]{2}$/.test(t.toString()):this.emit("succeeded",{originator:"remote",response:e});break;default:var i=u.Utils.sipErrorCause(t);this.emit("failed",e,i)}},t.prototype.onRequestTimeout=function(){this.emit("failed",void 0,a.C.causes.REQUEST_TIMEOUT),this.owner.onRequestTimeout()},t.prototype.onTransportError=function(){this.emit("failed",void 0,a.C.causes.CONNECTION_ERROR),this.owner.onTransportError()},t.prototype.onDialogError=function(e){this.emit("failed",e,a.C.causes.DIALOG_ERROR),this.owner.onDialogError(e)},t}(o.EventEmitter);t.DTMF=c},function(e,t,i){Object.defineProperty(t,"__esModule",{value:!0});var r=i(0),n=function(){function e(e,t){this.type=r.TypeStrings.SessionDescriptionHandlerObserver,this.session=e,this.options=t}return e.prototype.trackAdded=function(){this.session.emit("trackAdded")},e.prototype.directionChanged=function(){this.session.emit("directionChanged")},e}();t.SessionDescriptionHandlerObserver=n},function(e,t,i){Object.defineProperty(t,"__esModule",{value:!0});var r=i(15);t.Modifiers=r;var n=i(37);t.Simple=n.Simple;var o=i(28);t.SessionDescriptionHandler=o.SessionDescriptionHandler;var a=i(29);t.Transport=a.Transport},function(e,t,i){(function(e){var r,n=this&&this.__extends||(r=function(e,t){return(r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var i in t)t.hasOwnProperty(i)&&(e[i]=t[i])})(e,t)},function(e,t){function i(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(i.prototype=t.prototype,new i)});Object.defineProperty(t,"__esModule",{value:!0});var o,a,s=i(3),M=i(27),u=i(15);(a=o=t.SimpleStatus||(t.SimpleStatus={}))[a.STATUS_NULL=0]="STATUS_NULL",a[a.STATUS_NEW=1]="STATUS_NEW",a[a.STATUS_CONNECTING=2]="STATUS_CONNECTING",a[a.STATUS_CONNECTED=3]="STATUS_CONNECTED",a[a.STATUS_COMPLETED=4]="STATUS_COMPLETED";var c=function(t){function i(i){var r=t.call(this)||this;if(i.media.remote.video?r.video=!0:r.video=!1,i.media.remote.audio?r.audio=!0:r.audio=!1,!r.audio&&!r.video)throw new Error("At least one remote audio or video element is required for Simple.");r.options=i;var n=e.navigator.userAgent.toLowerCase(),a=!1,s=!1;n.indexOf("safari")>-1&&n.indexOf("chrome")<0?a=!0:n.indexOf("firefox")>-1&&n.indexOf("chrome")<0&&(s=!0);var c={};return a&&(c.modifiers=[u.stripG722]),s&&(c.alwaysAcquireMediaFirst=!0),r.options.ua.uri?r.anonymous=!1:r.anonymous=!0,r.ua=new M.UA({uri:r.options.ua.uri,authorizationUser:r.options.ua.authorizationUser,password:r.options.ua.password,displayName:r.options.ua.displayName,userAgentString:r.options.ua.userAgentString,register:!0,sessionDescriptionHandlerFactoryOptions:c,transportOptions:{traceSip:r.options.ua.traceSip,wsServers:r.options.ua.wsServers}}),r.state=o.STATUS_NULL,r.logger=r.ua.getLogger("sip.simple"),r.ua.on("registered",function(){r.emit("registered",r.ua)}),r.ua.on("unregistered",function(){r.emit("unregistered",r.ua)}),r.ua.on("failed",function(){r.emit("unregistered",r.ua)}),r.ua.on("invite",function(e){if(r.state!==o.STATUS_NULL&&r.state!==o.STATUS_COMPLETED)return r.logger.warn("Rejecting incoming call. Simple only supports 1 call at a time"),void e.reject();r.session=e,r.setupSession(),r.emit("ringing",r.session)}),r.ua.on("message",function(e){r.emit("message",e)}),r}return n(i,t),i.prototype.call=function(e){if(this.ua&&this.checkRegistration()){if(this.state===o.STATUS_NULL||this.state===o.STATUS_COMPLETED)return this.options.media.remote.audio&&(this.options.media.remote.audio.autoplay=!0),this.options.media.remote.video&&(this.options.media.remote.video.autoplay=!0),this.options.media.local&&this.options.media.local.video&&(this.options.media.local.video.autoplay=!0,this.options.media.local.video.volume=0),this.session=this.ua.invite(e,{sessionDescriptionHandlerOptions:{constraints:{audio:this.audio,video:this.video}}}),this.setupSession(),this.session;this.logger.warn("Cannot make more than a single call with Simple")}else this.logger.warn("A registered UA is required for calling")},i.prototype.answer=function(){if(this.state===o.STATUS_NEW||this.state===o.STATUS_CONNECTING)return this.options.media.remote.audio&&(this.options.media.remote.audio.autoplay=!0),this.options.media.remote.video&&(this.options.media.remote.video.autoplay=!0),this.session.accept({sessionDescriptionHandlerOptions:{constraints:{audio:this.audio,video:this.video}}});this.logger.warn("No call to answer")},i.prototype.reject=function(){if(this.state===o.STATUS_NEW||this.state===o.STATUS_CONNECTING)return this.session.reject();this.logger.warn("Call is already answered")},i.prototype.hangup=function(){if(this.state===o.STATUS_CONNECTED||this.state===o.STATUS_CONNECTING||this.state===o.STATUS_NEW)return this.state!==o.STATUS_CONNECTED?this.session.cancel():this.session?this.session.bye():void 0;this.logger.warn("No active call to hang up on")},i.prototype.hold=function(){if(this.state===o.STATUS_CONNECTED&&this.session&&!this.session.localHold)return this.mute(),this.logger.log("Placing session on hold"),this.session.hold();this.logger.warn("Cannot put call on hold")},i.prototype.unhold=function(){if(this.state===o.STATUS_CONNECTED&&this.session&&this.session.localHold)return this.unmute(),this.logger.log("Placing call off hold"),this.session.unhold();this.logger.warn("Cannot unhold a call that is not on hold")},i.prototype.mute=function(){this.state===o.STATUS_CONNECTED?(this.logger.log("Muting Audio"),this.toggleMute(!0),this.emit("mute",this)):this.logger.warn("An acitve call is required to mute audio")},i.prototype.unmute=function(){this.state===o.STATUS_CONNECTED?(this.logger.log("Unmuting Audio"),this.toggleMute(!1),this.emit("unmute",this)):this.logger.warn("An active call is required to unmute audio")},i.prototype.sendDTMF=function(e){this.state===o.STATUS_CONNECTED&&this.session?(this.logger.log("Sending DTMF tone: "+e),this.session.dtmf(e)):this.logger.warn("An active call is required to send a DTMF tone")},i.prototype.message=function(e,t){this.ua&&this.checkRegistration()?e&&t?this.ua.message(e,t):this.logger.warn("A destination and message are required to send a message"):this.logger.warn("A registered UA is required to send a message")},i.prototype.checkRegistration=function(){return this.anonymous||this.ua&&this.ua.isRegistered()},i.prototype.setupRemoteMedia=function(){var t=this;if(this.session){var i,r=this.session.sessionDescriptionHandler.peerConnection;r.getReceivers?(i=new e.window.MediaStream,r.getReceivers().forEach(function(e){var t=e.track;t&&i.addTrack(t)})):i=r.getRemoteStreams()[0],this.video?(this.options.media.remote.video.srcObject=i,this.options.media.remote.video.play().catch(function(){t.logger.log("play was rejected")})):this.audio&&(this.options.media.remote.audio.srcObject=i,this.options.media.remote.audio.play().catch(function(){t.logger.log("play was rejected")}))}else this.logger.warn("No session to set remote media on")},i.prototype.setupLocalMedia=function(){if(this.session){if(this.video&&this.options.media.local&&this.options.media.local.video){var t,i=this.session.sessionDescriptionHandler.peerConnection;i.getSenders?(t=new e.window.MediaStream,i.getSenders().forEach(function(e){var i=e.track;i&&"video"===i.kind&&t.addTrack(i)})):t=i.getLocalStreams()[0],this.options.media.local.video.srcObject=t,this.options.media.local.video.volume=0,this.options.media.local.video.play()}}else this.logger.warn("No session to set local media on")},i.prototype.cleanupMedia=function(){this.video&&(this.options.media.remote.video.srcObject=null,this.options.media.remote.video.pause(),this.options.media.local&&this.options.media.local.video&&(this.options.media.local.video.srcObject=null,this.options.media.local.video.pause())),this.audio&&(this.options.media.remote.audio.srcObject=null,this.options.media.remote.audio.pause())},i.prototype.setupSession=function(){var e=this;this.session?(this.state=o.STATUS_NEW,this.emit("new",this.session),this.session.on("progress",function(){return e.onProgress()}),this.session.on("accepted",function(){return e.onAccepted()}),this.session.on("rejected",function(){return e.onEnded()}),this.session.on("failed",function(){return e.onFailed()}),this.session.on("terminated",function(){return e.onEnded()})):this.logger.warn("No session to set up")},i.prototype.destroyMedia=function(){this.session&&this.session.sessionDescriptionHandler&&this.session.sessionDescriptionHandler.close()},i.prototype.toggleMute=function(e){if(this.session){var t=this.session.sessionDescriptionHandler.peerConnection;t.getSenders?t.getSenders().forEach(function(t){t.track&&(t.track.enabled=!e)}):t.getLocalStreams().forEach(function(t){t.getAudioTracks().forEach(function(t){t.enabled=!e}),t.getVideoTracks().forEach(function(t){t.enabled=!e})})}else this.logger.warn("No session to toggle mute")},i.prototype.onAccepted=function(){var e=this;this.session?(this.state=o.STATUS_CONNECTED,this.emit("connected",this.session),this.setupLocalMedia(),this.setupRemoteMedia(),this.session.sessionDescriptionHandler&&(this.session.sessionDescriptionHandler.on("addTrack",function(){e.logger.log("A track has been added, triggering new remoteMedia setup"),e.setupRemoteMedia()}),this.session.sessionDescriptionHandler.on("addStream",function(){e.logger.log("A stream has been added, trigger new remoteMedia setup"),e.setupRemoteMedia()})),this.session.on("dtmf",function(t,i){e.emit("dtmf",i.tone)}),this.session.on("bye",function(){return e.onEnded()})):this.logger.warn("No session for accepting")},i.prototype.onProgress=function(){this.state=o.STATUS_CONNECTING,this.emit("connecting",this.session)},i.prototype.onFailed=function(){this.onEnded()},i.prototype.onEnded=function(){this.state=o.STATUS_COMPLETED,this.emit("ended",this.session),this.cleanupMedia()},i.C=o,i}(s.EventEmitter);t.Simple=c}).call(this,i(12))}])},"object"==typeof e&&"object"==typeof module?module.exports=jn():"function"==typeof define&&define.amd?define([],jn):"object"==typeof e?e.SIP=jn():Tn.SIP=jn();const yn=Object.freeze(Object.defineProperty({__proto__:null},Symbol.toStringTag,{value:"Module"}));e.SCTJBaseChart=pe,e.SCTJBimViewer=wi,e.SCTJBtnContainer=Ie,e.SCTJBusinessMapDrawingDialog=xi,e.SCTJCommonChart=Ce,e.SCTJDateRangePicker=se,e.SCTJDialogTable=Zt,e.SCTJDictTag=m,e.SCTJDwgViewer=ki,e.SCTJFileUpload=P,e.SCTJFlvPlayer=Qe,e.SCTJH5hkPlayer=rt,e.SCTJHelmetPlayer=jt,e.SCTJIconSelect=ie,e.SCTJIframe=Ot,e.SCTJImagePreview=J,e.SCTJImageUpload=F,e.SCTJImportDialog=Ut,e.SCTJMapDrawingDialog=ji,e.SCTJMapViewer=Xt,e.SCTJPieChart=fe,e.SCTJRightToolbar=ge,e.SCTJSearch=ae,e.SCTJSvgIcon=w,e.SCTJTable=ce,e.SCTJTableContainer=Ne,e.SCTJTablePageContainer=De,e.SCTJTableTopActionContainer=Te,e.SCTJTreeSelect=E,e.SCTJYsyPlayer=vt,e.default=Yi,Object.defineProperties(e,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}})});
|
|
1
|
+
!function(e,t){"object"==typeof exports&&"undefined"!=typeof module?t(exports,require("vue"),require("@vue-office/pdf"),require("@vue-office/docx"),require("@vue-office/excel"),require("@element-plus/icons-vue"),require("element-plus"),require("echarts"),require("lodash"),require("flv.js"),require("dayjs"),require("ezuikit-js"),require("axios"),require("@amap/amap-jsapi-loader")):"function"==typeof define&&define.amd?define(["exports","vue","@vue-office/pdf","@vue-office/docx","@vue-office/excel","@element-plus/icons-vue","element-plus","echarts","lodash","flv.js","dayjs","ezuikit-js","axios","@amap/amap-jsapi-loader"],t):t((e="undefined"!=typeof globalThis?globalThis:e||self).SctjComponents={},e.Vue,e.VueOfficePdf,e.VueOfficeDocx,e.VueOfficeExcel,e.ElementPlusIconsVue,e.ElementPlus,e.echarts,e._,e.flvjs,e.dayjs,e.EZUIKit,e.axios,e.AMapLoader)}(this,function(e,t,r,n,o,i,a,s,l,c,u,d,p,h){"use strict";const f=e=>e&&"object"==typeof e&&"default"in e?e:{default:e};function v(e){if(e&&e.__esModule)return e;const t=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(e)for(const r in e)if("default"!==r){const n=Object.getOwnPropertyDescriptor(e,r);Object.defineProperty(t,r,n.get?n:{enumerable:!0,get:()=>e[r]})}return t.default=e,Object.freeze(t)}const m=f(r),g=f(n),y=f(o),C=v(s),S=f(c),T=f(u),b=f(d),w=f(p),E=f(h);if("undefined"!=typeof window){let e=function(){var e=document.body,t=document.getElementById("__svg__icons__dom__");t||((t=document.createElementNS("http://www.w3.org/2000/svg","svg")).style.position="absolute",t.style.width="0",t.style.height="0",t.id="__svg__icons__dom__",t.setAttribute("xmlns","http://www.w3.org/2000/svg"),t.setAttribute("xmlns:link","http://www.w3.org/1999/xlink")),t.innerHTML='<symbol viewBox="0 0 128 128" id="icon-404"><path d="M121.718 73.272v9.953c3.957-7.584 6.199-16.05 6.199-24.995C127.917 26.079 99.273 0 63.958 0 28.644 0 0 26.079 0 58.23c0 .403.028.806.028 1.21l22.97-25.953h13.34l-19.76 27.187h6.42V53.77l13.728-19.477v49.361H22.998V73.272H2.158c5.951 20.284 23.608 36.208 45.998 41.399-1.44 3.3-5.618 11.263-12.565 12.674-8.607 1.764 23.358.428 46.163-13.178 17.519-4.611 31.938-15.849 39.77-30.513h-13.506V73.272H85.02V59.464l22.998-25.977h13.008l-19.429 27.187h6.421v-7.433l13.727-19.402v39.433h-.027zm-78.24 2.822a10.516 10.516 0 0 1-.996-4.535V44.548c0-1.613.332-3.124.996-4.535a11.66 11.66 0 0 1 2.713-3.68c1.134-1.032 2.49-1.864 4.04-2.468 1.55-.605 3.21-.908 4.982-.908h11.292c1.77 0 3.431.303 4.981.908 1.522.604 2.85 1.41 3.986 2.418l-12.26 16.303v-2.898a1.96 1.96 0 0 0-.665-1.512c-.443-.403-.996-.604-1.66-.604-.665 0-1.218.201-1.661.604a1.96 1.96 0 0 0-.664 1.512v9.071L44.364 77.606a10.556 10.556 0 0 1-.886-1.512zm35.73-4.535c0 1.613-.332 3.124-.997 4.535a11.66 11.66 0 0 1-2.712 3.68c-1.134 1.032-2.49 1.864-4.04 2.469-1.55.604-3.21.907-4.982.907H55.185c-1.77 0-3.431-.303-4.981-.907-1.55-.605-2.906-1.437-4.041-2.47a12.49 12.49 0 0 1-1.384-1.512l13.727-18.217v6.375c0 .605.222 1.109.665 1.512.442.403.996.604 1.66.604.664 0 1.218-.201 1.66-.604a1.96 1.96 0 0 0 .665-1.512V53.87L75.97 36.838c.913.932 1.66 1.99 2.214 3.175.664 1.41.996 2.922.996 4.535v27.011h.028z" /></symbol><symbol viewBox="0 0 128 128" id="icon-bug"><path d="M127.88 73.143c0 1.412-.506 2.635-1.518 3.669-1.011 1.033-2.209 1.55-3.592 1.55h-17.887c0 9.296-1.783 17.178-5.35 23.645l16.609 17.044c1.011 1.034 1.517 2.257 1.517 3.67 0 1.412-.506 2.635-1.517 3.668-.958 1.033-2.155 1.55-3.593 1.55-1.438 0-2.635-.517-3.593-1.55l-15.811-16.063a15.49 15.49 0 0 1-1.196 1.06c-.532.434-1.65 1.208-3.353 2.322a50.104 50.104 0 0 1-5.192 2.974c-1.758.87-3.94 1.658-6.546 2.364-2.607.706-5.189 1.06-7.748 1.06V47.044H58.89v73.062c-2.716 0-5.417-.367-8.106-1.102-2.688-.734-5.003-1.631-6.945-2.692a66.769 66.769 0 0 1-5.268-3.179c-1.571-1.057-2.73-1.94-3.476-2.65L33.9 109.34l-14.611 16.877c-1.066 1.14-2.344 1.711-3.833 1.711-1.277 0-2.422-.434-3.434-1.304-1.012-.978-1.557-2.187-1.635-3.627-.079-1.44.333-2.705 1.236-3.794l16.129-18.51c-3.087-6.197-4.63-13.644-4.63-22.342H5.235c-1.383 0-2.58-.517-3.592-1.55S.125 74.545.125 73.132c0-1.412.506-2.635 1.518-3.668 1.012-1.034 2.21-1.55 3.592-1.55h17.887V43.939L9.308 29.833c-1.012-1.033-1.517-2.256-1.517-3.669 0-1.412.505-2.635 1.517-3.668 1.012-1.034 2.21-1.55 3.593-1.55s2.58.516 3.593 1.55l13.813 14.106h67.396l13.814-14.106c1.012-1.034 2.21-1.55 3.592-1.55 1.384 0 2.581.516 3.593 1.55 1.012 1.033 1.518 2.256 1.518 3.668 0 1.413-.506 2.636-1.518 3.67l-13.814 14.105v23.975h17.887c1.383 0 2.58.516 3.593 1.55 1.011 1.033 1.517 2.256 1.517 3.668l-.005.01zM89.552 26.175H38.448c0-7.23 2.489-13.386 7.466-18.469C50.892 2.623 56.92.082 64 .082c7.08 0 13.108 2.541 18.086 7.624 4.977 5.083 7.466 11.24 7.466 18.469z" /></symbol><symbol class="icon" viewBox="0 0 1024 1024" id="icon-build"><path d="M960 591.424V368.96c0-.288.16-.512.16-.768s-.16-.512-.16-.768V192a32 32 0 0 0-32-32H96a32 32 0 0 0-32 32v175.424c0 .288-.16.512-.16.768s.16.48.16.768v222.464c0 .288-.16.512-.16.768s.16.48.16.768V864a32 32 0 0 0 32 32h832a32 32 0 0 0 32-32V592.96c0-.288.16-.512.16-.768s-.16-.512-.16-.768zm-560-31.232v-160h208v160H400zm208 64V832H400V624.192h208zm-480-224h208v160H128v-160zm544 0h224v160H672v-160zM896 224v112.192H128V224h768zM128 624.192h208V832H128V624.192zM672 832V624.192h224V832H672z" /></symbol><symbol class="icon" viewBox="0 0 1024 1024" id="icon-button"><defs><style type="text/css"></style></defs><path d="M230.4 307.712c13.824 0 25.088-11.264 25.088-25.088 0-100.352 81.92-182.272 182.272-182.272s182.272 81.408 182.272 182.272c0 13.824 11.264 25.088 25.088 25.088s25.088-11.264 24.576-25.088c0-127.488-103.936-231.936-231.936-231.936S205.824 154.624 205.824 282.624c-0.512 14.336 10.752 25.088 24.576 25.088z m564.736 234.496c-11.264 0-21.504 2.048-31.232 6.144 0-44.544-40.448-81.92-88.064-81.92-14.848 0-28.16 3.584-39.936 10.24-13.824-28.16-44.544-48.128-78.848-48.128-12.288 0-24.576 2.56-35.328 7.68V284.16c0-45.568-37.888-81.92-84.48-81.92s-84.48 36.864-84.48 81.92v348.672l-69.12-112.64c-18.432-28.16-58.368-36.864-91.136-19.968-26.624 14.336-46.592 47.104-30.208 88.064 3.072 8.192 76.8 205.312 171.52 311.296 0 0 28.16 24.576 43.008 58.88 4.096 9.728 13.312 15.36 22.528 15.36 3.072 0 6.656-0.512 9.728-2.048 12.288-5.12 18.432-19.968 12.8-32.256-19.456-44.544-53.76-74.752-53.76-74.752C281.6 768 209.408 573.44 208.384 570.88c-5.12-12.8-2.56-20.992 7.168-26.112 9.216-4.608 21.504-4.608 26.112 2.56l113.152 184.32c4.096 8.704 12.8 14.336 22.528 14.336 13.824 0 25.088-10.752 25.088-25.088V284.16c0-17.92 15.36-32.256 34.816-32.256s34.816 14.336 34.816 32.256v284.16c0 13.824 10.24 25.088 24.576 25.088 13.824 0 25.088-11.264 25.088-25.088v-57.344c0-17.92 15.36-32.768 34.816-32.768 19.968 0 37.376 15.36 37.376 32.768v95.232c0 7.168 3.072 13.312 7.68 17.92 4.608 4.608 10.752 7.168 17.92 7.168 13.824 0 24.576-11.264 24.576-25.088V547.84c0-18.432 13.824-32.256 32.256-32.256 20.48 0 38.912 15.36 38.912 32.256v95.232c0 13.824 11.264 25.088 25.088 25.088s24.576-11.264 25.088-25.088v-18.944c0-18.944 12.8-32.256 30.72-32.256 18.432 0 22.528 18.944 22.528 31.744 0 1.024-11.776 99.84-50.688 173.056-30.72 58.368-45.056 112.128-51.2 146.944-2.56 13.312 6.656 26.112 19.968 28.672 1.536 0 3.072 0.512 4.608 0.512 11.776 0 22.016-8.192 24.064-20.48 5.632-31.232 18.432-79.36 46.08-132.608 43.52-81.92 55.808-186.88 56.32-193.536-0.512-50.688-29.696-83.968-72.704-83.968z" /></symbol><symbol class="icon" viewBox="0 0 1024 1024" id="icon-cascader"><path d="M772.87 734.061c-43.34 0-80.008 27.933-93.768 66.577H475.91c-56.607 0-102.667-46.06-102.667-102.667v-97.147h305.86c13.76 38.645 50.426 66.578 93.767 66.578 55.124 0 99.948-44.825 99.948-99.949s-44.824-99.948-99.948-99.948c-43.34 0-80.008 27.933-93.768 66.578h-305.86V401.01H695.17c55.123 0 99.948-44.825 99.948-99.949V190.073c0-55.124-44.825-99.948-99.948-99.948H251.13c-55.124 0-99.948 44.824-99.948 99.948v110.99c0 55.123 44.824 99.948 99.948 99.948h55.536v296.96c0 93.356 75.97 169.327 169.326 169.327h203.192c13.76 38.644 50.428 66.577 93.769 66.577 55.124 0 99.948-44.824 99.948-99.948s-44.907-99.866-100.03-99.866zm0-199.896c18.375 0 33.289 14.914 33.289 33.288s-14.914 33.29-33.289 33.29-33.288-14.915-33.288-33.29 14.914-33.288 33.288-33.288zM217.76 301.063v-110.99c0-18.375 14.914-33.288 33.288-33.288h444.04c18.375 0 33.289 14.913 33.289 33.288v110.99c0 18.374-14.914 33.288-33.289 33.288H251.13c-18.375 0-33.371-14.914-33.371-33.289zM772.87 867.298c-18.374 0-33.288-14.914-33.288-33.289 0-18.374 14.914-33.288 33.288-33.288s33.289 14.914 33.289 33.288c.082 18.293-14.914 33.289-33.289 33.289z" /></symbol><symbol viewBox="0 0 128 128" id="icon-chart"><path d="M0 54.857h36.571V128H0V54.857zM91.429 27.43H128V128H91.429V27.429zM45.714 0h36.572v128H45.714V0z" /></symbol><symbol class="icon" viewBox="0 0 1024 1024" id="icon-checkbox"><path d="M828.406 90.125H195.594c-58.219 0-105.469 47.25-105.469 105.469v632.812c0 58.219 47.25 105.469 105.469 105.469h632.812c58.219 0 105.469-47.25 105.469-105.469V195.594c0-58.219-47.25-105.469-105.469-105.469zm52.735 738.281c0 29.16-23.57 52.735-52.735 52.735H195.594c-29.11 0-52.735-23.575-52.735-52.735V195.594c0-29.11 23.625-52.735 52.735-52.735h632.812c29.16 0 52.735 23.625 52.735 52.735v632.812z" /><path d="M421.529 709.56a36.281 36.281 0 0 1-27.553-12.67L205.175 476.614a36.285 36.285 0 0 1 55.1-47.229L425.264 621.87l342.161-298.48a36.29 36.29 0 0 1 47.71 54.687L445.386 700.62a36.323 36.323 0 0 1-23.857 8.94z" /></symbol><symbol viewBox="0 0 128 128" id="icon-clipboard"><path d="M54.857 118.857h64V73.143H89.143c-1.902 0-3.52-.668-4.855-2.002-1.335-1.335-2.002-2.954-2.002-4.855V36.57H54.857v82.286zM73.143 16v-4.571a2.2 2.2 0 0 0-.677-1.61 2.198 2.198 0 0 0-1.609-.676H20.571c-.621 0-1.158.225-1.609.676a2.198 2.198 0 0 0-.676 1.61V16a2.2 2.2 0 0 0 .676 1.61c.451.45.988.676 1.61.676h50.285c.622 0 1.158-.226 1.61-.677.45-.45.676-.987.676-1.609zm18.286 48h21.357L91.43 42.642V64zM128 73.143v48c0 1.902-.667 3.52-2.002 4.855-1.335 1.335-2.953 2.002-4.855 2.002H52.57c-1.901 0-3.52-.667-4.854-2.002-1.335-1.335-2.003-2.953-2.003-4.855v-11.429H6.857c-1.902 0-3.52-.667-4.855-2.002C.667 106.377 0 104.759 0 102.857v-96c0-1.902.667-3.52 2.002-4.855C3.337.667 4.955 0 6.857 0h77.714c1.902 0 3.52.667 4.855 2.002 1.335 1.335 2.003 2.953 2.003 4.855V30.29c1 .622 1.856 1.29 2.569 2.003l29.147 29.147c1.335 1.335 2.478 3.145 3.429 5.43.95 2.287 1.426 4.383 1.426 6.291v-.018z" /></symbol><symbol class="icon" viewBox="0 0 1024 1024" id="icon-code"><path d="M318.578 819.2 17.067 512l301.51-307.2 45.512 45.511L96.71 512 364.09 773.689zm386.844 0-45.51-45.511L927.288 512 659.91 250.311l45.511-45.511L1006.933 512zM540.786 221.867l55.75 11.15-113.379 569.116-55.75-11.093z" /></symbol><symbol class="icon" viewBox="0 0 1024 1024" id="icon-color"><path d="M747.593 691.129c11.514.253 22.438-.211 40.742-1.519 29.354-2.109 35.85-2.362 46.478-.885 24.715 3.374 41.121 21.762 32.475 47.953-85.574 258.2-442.001 249.765-628.67 50.738-153.478-159.34-153.099-414.419.927-573.421 159.72-162.672 424.034-166.594 565.787.633 80.387 94.81 108.35 169.166 89.117 230.574-15.014 47.996-50.61 77.688-119.779 114.634-4.892 2.657-29.354 15.52-35.85 19.02-46.94 25.306-63.516 41.207-62.208 58.456 2.952 39.14 24.166 52.72 70.981 53.817zm44.411 50.104c-19.822 1.434-32.053 1.94-45.634 1.645-70.349-1.603-115.983-30.915-121.381-101.643-3.459-46.056 24.757-73.133 89.243-107.97 6.79-3.67 31.38-16.575 36.06-19.063 57.697-30.83 85.153-53.732 94.77-84.478 12.779-40.784-9.11-98.945-79.249-181.651-121.17-142.976-350.142-139.602-489.238 2.067-134.498 138.842-134.793 362.12-.421 501.637C434.692 920.775 728.15 932.964 810.73 739.968c-4.681.295-10.712.675-18.726 1.265z" /><path d="M346.039 637.186a78.826 78.826 0 0 0 78.32-79.29c0-43.694-35.006-79.29-78.32-79.29a78.826 78.826 0 0 0-78.363 79.29c0 43.694 35.006 79.29 78.363 79.29zm0-51.75a27.077 27.077 0 0 1-26.571-27.54c0-15.31 11.978-27.541 26.57-27.541 14.551 0 26.571 12.23 26.571 27.54a27.077 27.077 0 0 1-26.57 27.541zm129.69 221.676a78.826 78.826 0 0 0 78.362-79.29c0-43.695-34.963-79.29-78.32-79.29a78.826 78.826 0 0 0-78.32 79.29c0 43.693 34.963 79.29 78.32 79.29zm0-51.75a27.077 27.077 0 0 1-26.57-27.54c0-15.31 12.061-27.541 26.57-27.541 14.593 0 26.57 12.23 26.57 27.54a27.077 27.077 0 0 1-26.57 27.541zm125.515-378.147a78.826 78.826 0 0 0 78.32-79.29c0-43.694-34.964-79.29-78.32-79.29a78.826 78.826 0 0 0-78.32 79.29c0 43.694 34.963 79.29 78.32 79.29zm0-51.75a27.077 27.077 0 0 1-26.57-27.54c0-15.31 11.977-27.541 26.57-27.541 14.55 0 26.57 12.23 26.57 27.54a27.077 27.077 0 0 1-26.57 27.541zM378.809 433.857a78.826 78.826 0 0 0 78.32-79.29c0-43.694-34.963-79.29-78.32-79.29a78.826 78.826 0 0 0-78.32 79.29c0 43.694 34.964 79.29 78.32 79.29zm0-51.75a27.077 27.077 0 0 1-26.57-27.54c0-15.31 11.977-27.541 26.57-27.541 14.55 0 26.57 12.23 26.57 27.54a27.077 27.077 0 0 1-26.57 27.541z" /></symbol><symbol class="icon" viewBox="0 0 1024 1024" id="icon-component"><path d="M826.56 470.016c-32.896 0-64.384 12.288-89.984 35.52v-104.96c0-62.208-50.496-112.832-112.64-113.088v-.448l-104.384.064c22.272-24.384 35.008-56.384 35.008-89.984 0-73.536-59.904-133.44-133.504-133.44-73.472 0-133.376 59.904-133.376 133.44 0 32.896 12.224 64.256 35.52 89.984H175.232v.576C113.728 288.704 64 338.88 64 400.576h.32l.32 116.48c-3.776 27.84 5.952 60.672 36.16 71.424 12.736 4.608 37.632 7.488 60.864-25.28 12.992-18.368 34.24-29.248 56.64-29.248 38.336 0 69.504 31.104 69.504 69.312 0 38.4-31.168 69.504-69.504 69.504-22.656 0-44.032-11.264-57.344-30.4-22.272-32.256-48.384-27.008-58.496-23.232-29.824 10.752-39.104 43.776-38.144 67.392v160.384H64C64 909.248 114.752 960 177.216 960h446.272c62.4 0 113.152-50.752 113.152-113.152V701.824c24.384 22.272 56.384 35.008 89.984 35.008 73.536 0 133.44-59.904 133.44-133.504C960 529.92 900.096 470.016 826.56 470.016zm0 202.88c-22.72 0-44.032-11.264-57.344-30.4-22.272-32.384-48.448-27.136-58.56-23.36-29.824 10.752-39.04 43.776-38.08 67.392v160.384c0 27.136-22.016 49.152-49.152 49.152H177.216C150.08 896 128 873.984 128 846.848h.32V701.824c24.384 22.272 56.384 35.008 89.984 35.008 73.6 0 133.504-59.904 133.504-133.504 0-73.472-59.904-133.376-133.504-133.376-32.896 0-64.32 12.288-89.984 35.52v-104.96H128c0-27.072 22.08-49.152 49.216-49.152v-.32l157.44-.32c3.776.512 7.616.832 11.52.832 24.896 0 50.752-10.816 60.032-37.056 4.544-12.736 7.424-37.568-25.344-60.736-18.24-12.992-29.184-34.24-29.184-56.64 0-38.272 31.104-69.44 69.376-69.44 38.336 0 69.504 31.168 69.504 69.44 0 22.72-11.264 44.032-30.528 57.472-32.064 22.144-26.944 48.192-23.232 58.432 10.752 29.888 43.072 39.232 67.392 38.08h119.232v.384c27.136 0 49.152 22.08 49.152 49.152l.256 116.48c-3.776 27.84 6.016 60.736 36.224 71.488 12.736 4.608 37.632 7.488 60.8-25.28 13.056-18.368 34.24-29.248 56.704-29.248 38.272-.064 69.44 31.04 69.44 69.312 0 38.336-31.168 69.504-69.44 69.504z" /></symbol><symbol viewBox="0 0 128 100" id="icon-dashboard"><path d="M27.429 63.638c0-2.508-.893-4.65-2.679-6.424-1.786-1.775-3.94-2.662-6.464-2.662-2.524 0-4.679.887-6.465 2.662-1.785 1.774-2.678 3.916-2.678 6.424 0 2.508.893 4.65 2.678 6.424 1.786 1.775 3.94 2.662 6.465 2.662 2.524 0 4.678-.887 6.464-2.662 1.786-1.775 2.679-3.916 2.679-6.424zm13.714-31.801c0-2.508-.893-4.65-2.679-6.424-1.785-1.775-3.94-2.662-6.464-2.662-2.524 0-4.679.887-6.464 2.662-1.786 1.774-2.679 3.916-2.679 6.424 0 2.508.893 4.65 2.679 6.424 1.785 1.774 3.94 2.662 6.464 2.662 2.524 0 4.679-.888 6.464-2.662 1.786-1.775 2.679-3.916 2.679-6.424zM71.714 65.98l7.215-27.116c.285-1.23.107-2.378-.536-3.443-.643-1.064-1.56-1.762-2.75-2.094-1.19-.33-2.333-.177-3.429.462-1.095.639-1.81 1.573-2.143 2.804l-7.214 27.116c-2.857.237-5.405 1.266-7.643 3.088-2.238 1.822-3.738 4.152-4.5 6.992-.952 3.644-.476 7.098 1.429 10.364 1.905 3.265 4.69 5.37 8.357 6.317 3.667.947 7.143.474 10.429-1.42 3.285-1.892 5.404-4.66 6.357-8.305.762-2.84.619-5.607-.429-8.305-1.047-2.697-2.762-4.85-5.143-6.46zm47.143-2.342c0-2.508-.893-4.65-2.678-6.424-1.786-1.775-3.94-2.662-6.465-2.662-2.524 0-4.678.887-6.464 2.662-1.786 1.774-2.679 3.916-2.679 6.424 0 2.508.893 4.65 2.679 6.424 1.786 1.775 3.94 2.662 6.464 2.662 2.524 0 4.679-.887 6.465-2.662 1.785-1.775 2.678-3.916 2.678-6.424zm-45.714-45.43c0-2.509-.893-4.65-2.679-6.425C68.68 10.01 66.524 9.122 64 9.122c-2.524 0-4.679.887-6.464 2.661-1.786 1.775-2.679 3.916-2.679 6.425 0 2.508.893 4.65 2.679 6.424 1.785 1.774 3.94 2.662 6.464 2.662 2.524 0 4.679-.888 6.464-2.662 1.786-1.775 2.679-3.916 2.679-6.424zm32 13.629c0-2.508-.893-4.65-2.679-6.424-1.785-1.775-3.94-2.662-6.464-2.662-2.524 0-4.679.887-6.464 2.662-1.786 1.774-2.679 3.916-2.679 6.424 0 2.508.893 4.65 2.679 6.424 1.785 1.774 3.94 2.662 6.464 2.662 2.524 0 4.679-.888 6.464-2.662 1.786-1.775 2.679-3.916 2.679-6.424zM128 63.638c0 12.351-3.357 23.78-10.071 34.286-.905 1.372-2.19 2.058-3.858 2.058H13.93c-1.667 0-2.953-.686-3.858-2.058C3.357 87.465 0 76.037 0 63.638c0-8.613 1.69-16.847 5.071-24.703C8.452 31.08 13 24.312 18.714 18.634c5.715-5.68 12.524-10.199 20.429-13.559C47.048 1.715 55.333.035 64 .035c8.667 0 16.952 1.68 24.857 5.04 7.905 3.36 14.714 7.88 20.429 13.559 5.714 5.678 10.262 12.446 13.643 20.301 3.38 7.856 5.071 16.09 5.071 24.703z" /></symbol><symbol class="icon" viewBox="0 0 1024 1024" id="icon-date-range"><path d="M887.467 192.853H786.773v-73.386c0-10.24-6.826-17.067-17.066-17.067s-17.067 6.827-17.067 17.067v73.386H303.787v-73.386c0-10.24-6.827-17.067-17.067-17.067s-17.067 6.827-17.067 17.067v73.386H168.96c-46.08 0-85.333 37.547-85.333 85.334v558.08c0 46.08 37.546 85.333 85.333 85.333h718.507c46.08 0 85.333-37.547 85.333-85.333v-558.08c0-47.787-37.547-85.334-85.333-85.334zM168.96 226.987h100.693v66.56c0 10.24 6.827 17.066 17.067 17.066s17.067-6.826 17.067-17.066v-66.56h450.56v66.56c0 10.24 6.826 17.066 17.066 17.066s17.067-6.826 17.067-17.066v-66.56h98.987c27.306 0 51.2 22.186 51.2 51.2v88.746H117.76v-88.746c0-29.014 22.187-51.2 51.2-51.2zm718.507 660.48H168.96c-27.307 0-51.2-22.187-51.2-51.2v-435.2h820.907v435.2c0 27.306-22.187 51.2-51.2 51.2z" /><path d="M858.453 493.227H327.68c-10.24 0-17.067 6.826-17.067 17.066V624.64H194.56c-10.24 0-17.067 6.827-17.067 17.067v133.12c0 10.24 6.827 17.066 17.067 17.066H460.8c10.24 0 17.067-6.826 17.067-17.066V660.48h380.586c10.24 0 17.067-6.827 17.067-17.067v-133.12c0-10.24-6.827-17.066-17.067-17.066zM445.44 527.36v97.28h-98.987v-97.28h98.987zm-230.4 131.413h98.987v98.987H215.04v-98.987zm131.413 97.28v-97.28h98.987v97.28h-98.987zm133.12-228.693h97.28v98.987h-97.28V527.36zm131.414 0h98.986v98.987h-98.986V527.36zm230.4 97.28H742.4v-98.987h98.987v98.987z" /></symbol><symbol class="icon" viewBox="0 0 1024 1024" id="icon-date"><path d="M479.857 608.429h64.286c19.286 0 32.143-12.858 32.143-32.143s-12.857-32.143-32.143-32.143h-64.286c-19.286 0-32.143 12.857-32.143 32.143s12.857 32.143 32.143 32.143zm0 122.142h64.286c19.286 0 32.143-12.857 32.143-32.142s-12.857-32.143-32.143-32.143h-64.286c-19.286 0-32.143 12.857-32.143 32.143s12.857 32.142 32.143 32.142zM833.43 171.286H704.857v-32.143C704.857 119.857 692 107 672.714 107s-32.143 12.857-32.143 32.143v32.143H383.43v-32.143c0-19.286-12.858-32.143-32.143-32.143s-32.143 12.857-32.143 32.143v32.143H190.57C119.857 171.286 62 229.143 62 293.429v501.428C62 865.571 119.857 923.43 190.571 917H833.43C904.143 917 962 859.143 962 794.857V293.43c0-70.715-57.857-122.143-128.571-122.143zm64.285 623.571c0 32.143-32.143 64.286-64.285 64.286H190.57c-32.142 0-64.285-25.714-64.285-64.286V422h771.428v372.857zm0-437.143H126.286V293.43c0-32.143 32.143-64.286 64.285-64.286h128.572v32.143c0 19.285 12.857 32.143 32.143 32.143s32.143-12.858 32.143-32.143v-32.143H640.57v32.143c0 19.285 12.858 32.143 32.143 32.143s32.143-12.858 32.143-32.143v-32.143H833.43c32.142 0 64.285 25.714 64.285 64.286v64.285zM287 730.571h64.286c19.285 0 32.143-12.857 32.143-32.142s-12.858-32.143-32.143-32.143H287c-19.286 0-32.143 12.857-32.143 32.143S267.714 730.57 287 730.57zM672.714 608.43H737c19.286 0 32.143-12.858 32.143-32.143S756.286 544.143 737 544.143h-64.286c-19.285 0-32.143 12.857-32.143 32.143s12.858 32.143 32.143 32.143zm-385.714 0h64.286c19.285 0 32.143-12.858 32.143-32.143s-12.858-32.143-32.143-32.143H287c-19.286 0-32.143 12.857-32.143 32.143s12.857 32.143 32.143 32.143zM672.714 730.57H737c19.286 0 32.143-12.857 32.143-32.142S756.286 666.286 737 666.286h-64.286c-19.285 0-32.143 12.857-32.143 32.143s12.858 32.142 32.143 32.142z" /></symbol><symbol class="icon" viewBox="0 0 1024 1024" id="icon-dict"><path d="m1002.085 744.672-33.568 10.368c.96 7.264 2.144 14.304 2.144 21.76 0 7.328-1.184 14.432-2.368 21.568l33.792 10.56c7.936 2.24 14.496 7.616 18.336 14.752 3.84 7.328 4.672 15.808 1.952 23.552-5.376 16-23.168 24.672-39.936 19.68l-34.176-10.624c-7.136 12.8-15.776 24.672-26.208 35.2l20.8 27.488a28.96 28.96 0 0 1 5.824 22.816 29.696 29.696 0 0 1-12.704 19.616 32.544 32.544 0 0 1-44.416-6.752l-20.8-27.552c-13.696 6.56-28.192 11.2-43.008 13.888v33.632c0 16.736-14.112 30.432-31.648 30.432-17.6 0-31.872-13.696-31.872-30.432v-33.632a167.616 167.616 0 0 1-42.88-13.888l-20.928 27.552c-10.72 13.76-30.08 16.64-44.288 6.752a29.632 29.632 0 0 1-12.704-19.616 29.28 29.28 0 0 1 5.696-22.816l20.896-27.808a166.72 166.72 0 0 1-27.008-34.688l-33.376 10.432c-16.8 5.184-34.56-3.552-39.936-19.616a29.824 29.824 0 0 1 20.224-38.24l33.472-10.432c-.8-7.264-2.016-14.304-2.016-21.824 0-7.36 1.184-14.496 2.304-21.632L589.893 744.8c-16.672-5.376-25.632-22.496-20.224-38.432 5.376-16 23.136-24.672 39.936-19.68l34.016 10.752c7.328-12.672 15.84-24.8 26.336-35.328l-20.8-27.552a29.44 29.44 0 0 1 6.944-42.432 32.704 32.704 0 0 1 44.384 6.752l20.832 27.616c13.696-6.432 28.224-11.2 43.104-13.952v-33.568c0-16.736 14.048-30.432 31.648-30.432 17.536 0 31.808 13.568 31.808 30.432v33.504c15.072 2.688 29.344 7.808 42.848 14.016l20.992-27.616a32.48 32.48 0 0 1 44.224-6.752 29.568 29.568 0 0 1 7.136 42.432l-21.024 27.808c10.432 10.432 19.872 21.888 27.04 34.752l33.376-10.432c16.768-5.12 34.56 3.68 39.936 19.68 5.536 15.936-3.712 33.056-20.32 38.304zM796.069 670.24c-61.344 0-111.136 47.808-111.136 106.56 0 58.88 49.792 106.496 111.136 106.496 61.312 0 111.104-47.616 111.104-106.496 0-58.752-49.792-106.56-111.104-106.56z" /><path d="M802.789 57.152H726.34c0-22.08-21.024-38.24-42.848-38.24H39.397A39.68 39.68 0 0 0 .037 58.944V854.56s41.888 120.192 110.752 120.192h562.496a227.488 227.488 0 0 1-107.04-97.44H117.637s-40.608-13.696-40.608-41.248l470.304-.256 1.664 3.36a227.68 227.68 0 0 1-12.64-73.632c0-60.576 24-118.624 66.88-161.44a228.352 228.352 0 0 1 123.552-63.392l-3.2.288 2.144-424.672h38.208l.576 421.024c27.04 0 52.672 4.8 76.64 13.344V101.536c.032 0-6.304-44.384-38.368-44.384zM149.765 514.336H72.389v-77.408h77.376v77.408zm0-144.32H72.389v-77.44h77.376v77.44zm0-137.248H72.389v-77.44h77.376v77.44zM651.62 514.336H206.085v-77.408H651.62v77.408zm0-144.32H206.085v-77.44H651.62v77.44zm0-137.248H206.085v-77.44H651.62v77.44z" /></symbol><symbol viewBox="0 0 128 128" id="icon-documentation"><path d="M71.984 44.815H115.9L71.984 9.642v35.173zM16.094.05h63.875l47.906 38.37v76.74c0 3.392-1.682 6.645-4.677 9.044-2.995 2.399-7.056 3.746-11.292 3.746H16.094c-4.236 0-8.297-1.347-11.292-3.746-2.995-2.399-4.677-5.652-4.677-9.044V12.84C.125 5.742 7.23.05 16.094.05zm71.86 102.32V89.58h-71.86v12.79h71.86zm23.952-25.58V64H16.094v12.79h95.812z" /></symbol><symbol class="icon" viewBox="0 0 1024 1024" id="icon-download"><path d="M768.355 416a256 256 0 1 0-512 0 192 192 0 1 0 0 384v64a256 256 0 0 1-58.88-505.216 320.128 320.128 0 0 1 629.76 0A256.128 256.128 0 0 1 768.355 864v-64a192 192 0 0 0 0-384zm-512 384h64v64h-64v-64zm448 0h64v64h-64v-64z" fill="#333" /><path d="M539.043 845.248V512.192a32.448 32.448 0 0 0-32-32.192c-17.664 0-32 14.912-32 32.192v333.056l-36.096-36.096a32.192 32.192 0 0 0-45.056.192 31.616 31.616 0 0 0-.192 45.056l90.88 90.944a31.36 31.36 0 0 0 22.528 9.088 30.08 30.08 0 0 0 22.4-9.088l90.88-90.88a32.192 32.192 0 0 0-.192-45.12 31.616 31.616 0 0 0-45.056-.192l-36.096 36.096z" fill="#333" /></symbol><symbol viewBox="0 0 128 128" id="icon-drag"><path d="M73.137 29.08h-9.209 29.7L63.886.093 34.373 29.08h20.49v27.035H27.238v17.948h27.625v27.133h18.274V74.063h27.41V56.115h-27.41V29.08zm-9.245 98.827 27.518-26.711H36.59l27.302 26.71zM.042 64.982l27.196 27.029V38.167L.042 64.982zm100.505-26.815V92.01l27.41-27.029-27.41-26.815z" /></symbol><symbol class="icon" viewBox="0 0 1024 1024" id="icon-druid"><path d="M832 128H192a64.19 64.19 0 0 0-64 64v640a64.19 64.19 0 0 0 64 64h640a64.19 64.19 0 0 0 64-64V192a64.19 64.19 0 0 0-64-64zm0 703.89-.11.11H192.11l-.11-.11V768h640zM832 544H720L605.6 696.54 442.18 435.07 333.25 544H192v-64h114.75l147.07-147.07L610.4 583.46 688 480h144zm0-288H192v-63.89l.11-.11h639.78l.11.11z" /></symbol><symbol viewBox="0 0 128 128" id="icon-edit"><path d="M106.133 67.2a4.797 4.797 0 0 0-4.8 4.8c0 .187.014.36.027.533h-.027V118.4H9.6V26.667h50.133c2.654 0 4.8-2.147 4.8-4.8 0-2.654-2.146-4.8-4.8-4.8H9.6a9.594 9.594 0 0 0-9.6 9.6V118.4c0 5.307 4.293 9.6 9.6 9.6h91.733c5.307 0 9.6-4.293 9.6-9.6V72.533h-.026c.013-.173.026-.346.026-.533 0-2.653-2.146-4.8-4.8-4.8z" /><path d="M125.16 13.373 114.587 2.8c-3.747-3.747-9.854-3.72-13.6.027l-52.96 52.96a4.264 4.264 0 0 0-.907 1.36L33.813 88.533c-.746 1.76-.226 3.534.907 4.68 1.133 1.147 2.92 1.667 4.693.92l31.4-13.293c.507-.213.96-.52 1.36-.907l52.96-52.96c3.747-3.746 3.774-9.853.027-13.6zM66.107 72.4l-18.32 7.76 7.76-18.32L92.72 24.667l10.56 10.56L66.107 72.4zm52.226-52.227-8.266 8.267-10.56-10.56 8.266-8.267.027-.026 10.56 10.56-.027.026z" /></symbol><symbol viewBox="0 0 128 128" id="icon-education"><path d="M88.883 119.565c-7.284 0-19.434 2.495-21.333 8.25v.127c-4.232.13-5.222 0-7.108 0-1.895-5.76-14.045-8.256-21.333-8.256H0V0h42.523c9.179 0 17.109 5.47 21.47 13.551C68.352 5.475 76.295 0 85.478 0H128v119.57l-39.113-.005h-.004zM60.442 24.763c0-9.651-8.978-16.507-17.777-16.507H7.108V111.43H39.11c7.054-.14 18.177.082 21.333 6.12v-4.628c-.134-5.722-.004-13.522 0-13.832V27.413l.004-2.655-.004.005zm60.442-16.517h-35.55c-8.802 0-17.78 6.856-17.78 16.493v74.259c.004.32.138 8.115 0 13.813v4.627c3.155-6.022 14.279-6.26 21.333-6.114h32V8.25l-.003-.005z" /></symbol><symbol viewBox="0 0 128 96" id="icon-email"><path d="M64.125 56.975 120.188.912A12.476 12.476 0 0 0 115.5 0h-103c-1.588 0-3.113.3-4.513.838l56.138 56.137z" /><path d="m64.125 68.287-62.3-62.3A12.42 12.42 0 0 0 0 12.5v71C0 90.4 5.6 96 12.5 96h103c6.9 0 12.5-5.6 12.5-12.5v-71a12.47 12.47 0 0 0-1.737-6.35L64.125 68.287z" /></symbol><symbol viewBox="0 0 128 128" id="icon-example"><path d="M96.258 57.462h31.421C124.794 27.323 100.426 2.956 70.287.07v31.422a32.856 32.856 0 0 1 25.971 25.97zm-38.796-25.97V.07C27.323 2.956 2.956 27.323.07 57.462h31.422a32.856 32.856 0 0 1 25.97-25.97zm12.825 64.766v31.421c30.46-2.885 54.507-27.253 57.713-57.712H96.579c-2.886 13.466-13.146 23.726-26.292 26.291zM31.492 70.287H.07c2.886 30.46 27.253 54.507 57.713 57.713V96.579c-13.466-2.886-23.726-13.146-26.291-26.292z" /></symbol><symbol viewBox="0 0 128 128" id="icon-excel"><path d="M78.208 16.576v8.384h38.72v5.376h-38.72v8.704h38.72v5.376h-38.72v8.576h38.72v5.376h-38.72v8.576h38.72v5.376h-38.72v8.576h38.72v5.376h-38.72v8.512h38.72v5.376h-38.72v11.136H128v-94.72H78.208zM0 114.368 72.128 128V0L0 13.632v100.736z" /><path d="M28.672 82.56h-11.2l14.784-23.488-14.08-22.592h11.52l8.192 14.976 8.448-14.976h11.136l-14.08 22.208L58.368 82.56H46.656l-8.768-15.68z" /></symbol><symbol viewBox="0 0 128 128" id="icon-exit-fullscreen"><path d="m49.217 41.329-.136-35.24c-.06-2.715-2.302-4.345-5.022-4.405h-3.65c-2.712-.06-4.866 2.303-4.806 5.016l.152 19.164-24.151-23.79a6.698 6.698 0 0 0-9.499 0 6.76 6.76 0 0 0 0 9.526l23.93 23.713-18.345.074c-2.712-.069-5.228 1.813-5.64 5.02v3.462c.069 2.721 2.31 4.97 5.022 5.03l35.028-.207c.052.005.087.025.133.025l2.457.054a4.626 4.626 0 0 0 3.436-1.38c.88-.874 1.205-2.096 1.169-3.462l-.262-2.465c0-.048.182-.081.182-.136h.002zm52.523 51.212 18.32-.073c2.713.06 5.224-1.609 5.64-4.815v-3.462c-.068-2.722-2.317-4.97-5.021-5.04l-34.58.21c-.053 0-.086-.021-.138-.021l-2.451-.06a4.64 4.64 0 0 0-3.445 1.381c-.885.868-1.201 2.094-1.174 3.46l.27 2.46c.005.06-.177.095-.177.141l.141 34.697c.069 2.713 2.31 4.338 5.022 4.397l3.45.006c2.705.062 4.867-2.31 4.8-5.026l-.153-18.752 24.151 23.946a6.69 6.69 0 0 0 9.494 0 6.747 6.747 0 0 0 0-9.523L101.74 92.54v.001zM48.125 80.662a4.636 4.636 0 0 0-3.437-1.382l-2.457.06c-.05 0-.082.022-.137.022l-35.025-.21c-2.712.07-4.957 2.318-5.022 5.04v3.462c.409 3.206 2.925 4.874 5.633 4.814l18.554.06-24.132 23.928c-2.62 2.626-2.62 6.89 0 9.524a6.694 6.694 0 0 0 9.496 0l24.155-23.79-.155 18.866c-.06 2.722 2.094 5.093 4.801 5.025h3.65c2.72-.069 4.962-1.685 5.022-4.406l.141-34.956c0-.05-.182-.082-.182-.136l.262-2.46c.03-1.366-.286-2.592-1.166-3.46h-.001zM80.08 47.397a4.62 4.62 0 0 0 3.443 1.374l2.45-.054c.055 0 .088-.02.143-.028l35.08.21c2.712-.062 4.953-2.312 5.021-5.033l.009-3.463c-.417-3.211-2.937-5.084-5.64-5.025l-18.615-.073 23.917-23.715c2.63-2.623 2.63-6.879.008-9.513a6.691 6.691 0 0 0-9.494 0L92.251 26.016l.155-19.312c.065-2.713-2.097-5.085-4.802-5.025h-3.45c-2.713.069-4.954 1.693-5.022 4.406l-.139 35.247c0 .054.18.088.18.136l-.267 2.465c-.028 1.366.288 2.588 1.174 3.463v.001z" /></symbol><symbol class="icon" viewBox="0 0 1024 1024" id="icon-eye-open"><path d="M512 128q69.675 0 135.51 21.163t115.498 54.997 93.483 74.837 73.685 82.006 51.67 74.837 32.17 54.827L1024 512q-2.347 4.992-6.315 13.483T998.87 560.17t-31.658 51.669-44.331 59.99-56.832 64.34-69.504 60.16-82.347 51.5-94.848 34.687T512 896q-69.675 0-135.51-21.163t-115.498-54.826-93.483-74.326-73.685-81.493-51.67-74.496-32.17-54.997L0 513.707q2.347-4.992 6.315-13.483t18.816-34.816 31.658-51.84 44.331-60.33 56.832-64.683 69.504-60.331 82.347-51.84 94.848-34.816T512 128.085zm0 85.333q-46.677 0-91.648 12.331t-81.152 31.83-70.656 47.146-59.648 54.485-48.853 57.686-37.675 52.821-26.325 43.99q12.33 21.674 26.325 43.52t37.675 52.351 48.853 57.003 59.648 53.845T339.2 767.02t81.152 31.488T512 810.667t91.648-12.331 81.152-31.659 70.656-46.848 59.648-54.186 48.853-57.344 37.675-52.651T927.957 512q-12.33-21.675-26.325-43.648t-37.675-52.65-48.853-57.345-59.648-54.186-70.656-46.848-81.152-31.659T512 213.334zm0 128q70.656 0 120.661 50.006T682.667 512 632.66 632.661 512 682.667 391.339 632.66 341.333 512t50.006-120.661T512 341.333zm0 85.334q-35.328 0-60.33 25.002T426.666 512t25.002 60.33T512 597.334t60.33-25.002T597.334 512t-25.002-60.33T512 426.666z" /></symbol><symbol viewBox="0 0 128 64" id="icon-eye"><path d="M127.072 7.994c1.37-2.208.914-5.152-.914-6.87-2.056-1.717-4.797-1.226-6.396.982-.229.245-25.586 32.382-55.74 32.382-29.24 0-55.74-32.382-55.968-32.627-1.6-1.963-4.57-2.208-6.397-.49C-.17 3.086-.399 6.275 1.2 8.238c.457.736 5.94 7.36 14.62 14.72L4.17 35.96c-1.828 1.963-1.6 5.152.228 6.87.457.98 1.6 1.471 2.742 1.471s2.284-.49 3.198-1.472l12.564-13.983c5.94 4.416 13.021 8.587 20.788 11.53l-4.797 17.418c-.685 2.699.686 5.397 3.198 6.133h1.37c2.057 0 3.884-1.472 4.341-3.68L52.6 42.83c3.655.736 7.538 1.227 11.422 1.227 3.883 0 7.767-.49 11.422-1.227l4.797 17.173c.457 2.208 2.513 3.68 4.34 3.68.457 0 .914 0 1.143-.246 2.513-.736 3.883-3.434 3.198-6.133l-4.797-17.172c7.767-2.944 14.848-7.114 20.788-11.53l12.336 13.738c.913.981 2.056 1.472 3.198 1.472s2.284-.49 3.198-1.472c1.828-1.963 1.828-4.906.228-6.87l-11.65-13.001c9.366-7.36 14.849-14.474 14.849-14.474z" /></symbol><symbol viewBox="0 0 128 128" id="icon-form"><path d="M84.068 23.784c-1.02 0-1.877-.32-2.572-.96a8.588 8.588 0 0 1-1.738-2.237 11.524 11.524 0 0 1-1.042-2.621c-.232-.895-.348-1.641-.348-2.238V0h.278c.834 0 1.622.085 2.363.256.742.17 1.645.575 2.711 1.214 1.066.64 2.363 1.535 3.892 2.686 1.53 1.15 3.453 2.664 5.77 4.54 2.502 2.045 4.494 3.771 5.977 5.178 1.483 1.406 2.618 2.6 3.406 3.58.787.98 1.274 1.812 1.46 2.494.185.682.277 1.278.277 1.79v2.046H84.068zM127.3 84.01c.278.682.464 1.535.556 2.558.093 1.023-.37 2.003-1.39 2.94-.463.427-.88.832-1.25 1.215-.372.384-.696.704-.974.96a6.69 6.69 0 0 1-.973.767l-11.816-10.741a44.331 44.331 0 0 0 1.877-1.535 31.028 31.028 0 0 1 1.737-1.406c1.112-.938 2.317-1.343 3.615-1.215 1.297.128 2.363.405 3.197.83.927.427 1.923 1.173 2.989 2.239 1.065 1.065 1.876 2.195 2.432 3.388zM78.23 95.902c2.038 0 3.752-.511 5.143-1.534l-26.969 25.83H18.037c-1.761 0-3.684-.47-5.77-1.407a24.549 24.549 0 0 1-5.838-3.709 21.373 21.373 0 0 1-4.518-5.306c-1.204-2.003-1.807-4.07-1.807-6.202V16.495c0-1.79.44-3.665 1.32-5.626A18.41 18.41 0 0 1 5.04 5.562a21.798 21.798 0 0 1 5.213-3.964C12.198.533 14.237 0 16.37 0h53.24v15.984c0 1.62.278 3.367.834 5.242a16.704 16.704 0 0 0 2.572 5.179c1.159 1.577 2.665 2.898 4.518 3.964 1.853 1.066 4.078 1.598 6.673 1.598h20.295v42.325L85.458 92.45c1.02-1.364 1.529-2.856 1.529-4.476 0-2.216-.857-4.113-2.572-5.69-1.714-1.577-3.776-2.366-6.186-2.366H26.1c-2.409 0-4.448.789-6.116 2.366-1.668 1.577-2.502 3.474-2.502 5.69 0 2.217.834 4.092 2.502 5.626 1.668 1.535 3.707 2.302 6.117 2.302h52.13zM26.1 47.951c-2.41 0-4.449.789-6.117 2.366-1.668 1.577-2.502 3.473-2.502 5.69 0 2.216.834 4.092 2.502 5.626 1.668 1.534 3.707 2.302 6.117 2.302h52.13c2.409 0 4.47-.768 6.185-2.302 1.715-1.534 2.572-3.41 2.572-5.626 0-2.217-.857-4.113-2.572-5.69-1.714-1.577-3.776-2.366-6.186-2.366H26.1zm52.407 64.063 1.807-1.663 3.476-3.196a479.75 479.75 0 0 0 4.587-4.284 500.757 500.757 0 0 1 5.004-4.667c3.985-3.666 8.48-7.758 13.485-12.276l11.677 10.741-13.485 12.404-5.004 4.603-4.587 4.22a179.46 179.46 0 0 0-3.267 3.068c-.88.853-1.367 1.322-1.46 1.407-.463.341-.973.703-1.529 1.087-.556.383-1.112.703-1.668.959-.556.256-1.413.575-2.572.959a83.5 83.5 0 0 1-3.545 1.087 72.2 72.2 0 0 1-3.475.895c-1.112.256-1.946.426-2.502.511-1.112.17-1.854.043-2.224-.383-.371-.426-.464-1.151-.278-2.174.092-.511.278-1.279.556-2.302.278-1.023.602-2.067.973-3.132l1.042-3.005c.325-.938.58-1.577.765-1.918a10.157 10.157 0 0 1 2.224-2.941z" /></symbol><symbol viewBox="0 0 128 128" id="icon-fullscreen"><path d="M38.47 52 52 38.462l-23.648-23.67L43.209 0H.035L0 43.137l14.757-14.865L38.47 52zm74.773 47.726L89.526 76 76 89.536l23.648 23.672L84.795 128h43.174L128 84.863l-14.757 14.863zM89.538 52l23.668-23.648L128 43.207V.038L84.866 0 99.73 14.76 76 38.472 89.538 52zM38.46 76 14.792 99.651 0 84.794v43.173l43.137.033-14.865-14.757L52 89.53 38.46 76z" /></symbol><symbol class="icon" viewBox="0 0 1024 1024" id="icon-github"><path d="M511.543 14.057C228.914 13.943 0 242.743 0 525.143 0 748.457 143.2 938.286 342.629 1008c26.857 6.743 22.742-12.343 22.742-25.371v-88.572C210.286 912.23 204 809.6 193.6 792.457c-21.029-35.886-70.743-45.028-55.886-62.171 35.315-18.172 71.315 4.571 113.029 66.171 30.171 44.686 89.028 37.143 118.857 29.714 6.514-26.857 20.457-50.857 39.657-69.485C248.571 727.886 181.6 629.829 181.6 513.257c0-56.571 18.629-108.571 55.2-150.514-23.314-69.143 2.171-128.343 5.6-137.143 66.4-5.943 135.429 47.543 140.8 51.771C420.914 267.2 464 261.83 512.229 261.83c48.457 0 91.657 5.6 129.714 15.885 12.914-9.828 76.914-55.771 138.628-50.171 3.315 8.8 28.229 66.628 6.286 134.857 37.029 42.057 55.886 94.514 55.886 151.2 0 116.8-67.429 214.971-228.572 243.314a145.714 145.714 0 0 1 43.543 104v128.572c.915 10.285 0 20.457 17.143 20.457 202.4-68.229 348.114-259.429 348.114-484.686 0-282.514-229.028-511.2-511.428-511.2z" /></symbol><symbol viewBox="0 0 128 128" id="icon-guide"><path d="m1.482 70.131 36.204 16.18 69.932-65.485-61.38 70.594 46.435 18.735c1.119.425 2.397-.17 2.797-1.363v-.085L127.998.047 1.322 65.874c-1.12.597-1.519 1.959-1.04 3.151.32.511.72.937 1.2 1.107zm44.676 57.821L64.22 107.26l-18.062-7.834v28.527z" /></symbol><symbol viewBox="0 0 128 128" id="icon-icon"><path d="M115.147.062a13 13 0 0 1 4.94.945c1.55.63 2.907 1.526 4.069 2.688a13.148 13.148 0 0 1 2.761 4.069c.678 1.55 1.017 3.245 1.017 5.086v102.3c0 3.681-1.187 6.733-3.56 9.155-2.373 2.422-5.352 3.633-8.937 3.633H12.992c-3.875 0-7-1.26-9.373-3.779-2.373-2.518-3.56-5.667-3.56-9.445V12.704c0-3.39 1.163-6.345 3.488-8.863C5.872 1.32 8.972.062 12.847.062h102.3zM81.434 109.047c1.744 0 3.003-.412 3.778-1.235.775-.824 1.163-1.914 1.163-3.27 0-1.26-.388-2.325-1.163-3.197-.775-.872-2.034-1.307-3.778-1.307H72.57c.097-.194.145-.485.145-.872V27.09h9.01c1.743 0 2.954-.436 3.633-1.308.678-.872 1.017-1.938 1.017-3.197 0-1.26-.34-2.325-1.017-3.197-.679-.872-1.89-1.308-3.633-1.308H46.268c-1.743 0-2.954.436-3.632 1.308-.678.872-1.018 1.938-1.018 3.197 0 1.26.34 2.325 1.018 3.197.678.872 1.889 1.308 3.632 1.308h8.138v72.075c0 .193.024.339.073.436.048.096.072.242.072.436H46.56c-1.744 0-3.003.435-3.778 1.307-.775.872-1.163 1.938-1.163 3.197 0 1.356.388 2.446 1.163 3.27.775.823 2.034 1.235 3.778 1.235h34.875z" /></symbol><symbol class="icon" viewBox="0 0 1024 1024" id="icon-input"><path d="M896 224H128c-35.2 0-64 28.8-64 64v448c0 35.2 28.8 64 64 64h768c35.2 0 64-28.8 64-64V288c0-35.2-28.8-64-64-64zm0 480c0 19.2-12.8 32-32 32H160c-19.2 0-32-12.8-32-32V320c0-19.2 12.8-32 32-32h704c19.2 0 32 12.8 32 32v384z" /><path d="M224 352c-19.2 0-32 12.8-32 32v256c0 16 12.8 32 32 32s32-12.8 32-32V384c0-16-12.8-32-32-32z" /></symbol><symbol viewBox="0 0 128 128" id="icon-international"><path d="M83.287 103.01c-1.57-3.84-6.778-10.414-15.447-19.548-2.327-2.444-2.182-4.306-1.338-9.862v-.64c.553-3.81 1.513-6.05 14.313-8.087 6.516-1.018 8.203 1.57 10.589 5.178l.785 1.193a12.625 12.625 0 0 0 6.43 5.207c1.134.524 2.53 1.164 4.421 2.24 4.596 2.53 4.596 5.41 4.596 11.753v.727a26.91 26.91 0 0 1-5.178 17.454 59.055 59.055 0 0 1-19.025 11.026c3.49-6.546.814-14.313 0-16.553l-.146-.087zM64 5.12a58.502 58.502 0 0 1 25.484 5.818 54.313 54.313 0 0 0-12.859 10.327c-.93 1.28-1.716 2.473-2.472 3.579-2.444 3.694-3.637 5.352-5.818 5.614a25.105 25.105 0 0 1-4.219 0c-4.276-.29-10.094-.64-11.956 4.422-1.193 3.23-1.396 11.956 2.444 16.495.66 1.077.778 2.4.32 3.578a7.01 7.01 0 0 1-2.066 3.229 18.938 18.938 0 0 1-2.909-2.91 18.91 18.91 0 0 0-8.32-6.603c-1.25-.349-2.647-.64-3.985-.93-3.782-.786-8.03-1.688-9.019-3.812a14.895 14.895 0 0 1-.727-5.818 21.935 21.935 0 0 0-1.396-9.25 8.873 8.873 0 0 0-5.557-4.946A58.705 58.705 0 0 1 64 5.12zM0 64c0 35.346 28.654 64 64 64 35.346 0 64-28.654 64-64 0-35.346-28.654-64-64-64C28.654 0 0 28.654 0 64z" /></symbol><symbol class="icon" viewBox="0 0 1024 1024" id="icon-job"><path d="M934.912 1016.832H192c-14.336 0-25.6-11.264-25.6-25.6v-189.44c0-14.336 11.264-25.6 25.6-25.6s25.6 11.264 25.6 25.6v163.84h691.712V64H217.6v148.48c0 14.336-11.264 25.6-25.6 25.6s-25.6-11.264-25.6-25.6V38.4c0-14.336 11.264-25.6 25.6-25.6h742.912c14.336 0 25.6 11.264 25.6 25.6v952.832c0 14.336-11.264 25.6-25.6 25.6z" /><path d="M232.96 371.2H115.2c-14.336 0-25.6-11.264-25.6-25.6s11.264-25.6 25.6-25.6h117.76c14.336 0 25.6 11.264 25.6 25.6s-11.264 25.6-25.6 25.6zm0 168.96H115.2c-14.336 0-25.6-11.264-25.6-25.6s11.264-25.6 25.6-25.6h117.76c14.336 0 25.6 11.264 25.6 25.6s-11.264 25.6-25.6 25.6zm0 158.72H115.2c-14.336 0-25.6-11.264-25.6-25.6s11.264-25.6 25.6-25.6h117.76c14.336 0 25.6 11.264 25.6 25.6s-11.264 25.6-25.6 25.6zm341.504 64c-134.144 0-243.2-109.056-243.2-243.2s109.056-243.2 243.2-243.2 243.2 109.056 243.2 243.2-109.056 243.2-243.2 243.2zm0-435.2c-105.984 0-192 86.016-192 192s86.016 192 192 192 192-86.016 192-192-86.016-192-192-192z" /><path d="M663.04 545.28H576c-14.336 0-25.6-11.264-25.6-25.6s11.264-25.6 25.6-25.6h87.04c14.336 0 25.6 11.264 25.6 25.6s-11.264 25.6-25.6 25.6z" /><path d="M576 545.28c-14.336 0-25.6-11.264-25.6-25.6v-87.04c0-14.336 11.264-25.6 25.6-25.6s25.6 11.264 25.6 25.6v87.04c0 14.336-11.264 25.6-25.6 25.6z" /></symbol><symbol viewBox="0 0 128 128" id="icon-language"><path d="M84.742 36.8c2.398 7.2 5.595 12.8 11.19 18.4 4.795-4.8 7.992-11.2 10.39-18.4h-21.58zm-52.748 40h20.78l-10.39-28-10.39 28z" /><path d="M111.916 0H16.009C7.218 0 .025 7.2.025 16v96c0 8.8 7.193 16 15.984 16h95.907c8.791 0 15.984-7.2 15.984-16V16c0-8.8-6.394-16-15.984-16zM72.754 103.2c-1.598 1.6-3.197 1.6-4.795 1.6-.8 0-2.398 0-3.197-.8-.8-.8-1.599 0-1.599-.8s-.799-1.6-1.598-3.2c-.8-1.6-.8-2.4-1.599-4l-3.196-8.8H28.797L25.6 96c-1.598 3.2-2.398 5.6-3.197 7.2-.8 1.6-2.398 1.6-4.795 1.6-1.599 0-3.197-.8-4.796-1.6-1.598-1.6-2.397-2.4-2.397-4 0-.8 0-1.6.799-3.2.8-1.6.8-2.4 1.598-4l17.583-44.8c.8-1.6.8-3.2 1.599-4.8.799-1.6 1.598-3.2 2.397-4 .8-.8 1.599-2.4 3.197-3.2 1.599-.8 3.197-.8 4.796-.8 1.598 0 3.196 0 4.795.8 1.598.8 2.398 1.6 3.197 3.2.799.8 1.598 2.4 2.397 4 .8 1.6 1.599 3.2 2.398 5.6l17.583 44c1.598 3.2 2.398 5.6 2.398 7.2-.8.8-1.599 2.4-2.398 4zM116.711 72c-8.791-3.2-15.185-7.2-20.78-12-5.594 5.6-12.787 9.6-21.579 12l-2.397-4c8.791-2.4 15.984-5.6 21.579-11.2C87.939 51.2 83.144 44 81.545 36h-7.992v-3.2h21.58c-1.6-2.4-3.198-5.6-4.796-8l2.397-.8c1.599 2.4 3.997 5.6 5.595 8.8h19.98v4h-7.992c-2.397 8-6.393 15.2-11.189 20 5.595 4.8 11.988 8.8 20.78 11.2l-3.197 4z" /></symbol><symbol viewBox="0 0 128 128" id="icon-link"><path d="M115.625 127.937H.063V12.375h57.781v12.374H12.438v90.813h90.813V70.156h12.374z" /><path d="m116.426 2.821 8.753 8.753-56.734 56.734-8.753-8.745z" /><path d="M127.893 37.982h-12.375V12.375H88.706V0h39.187z" /></symbol><symbol viewBox="0 0 128 128" id="icon-list"><path d="M1.585 12.087c0 6.616 3.974 11.98 8.877 11.98 4.902 0 8.877-5.364 8.877-11.98 0-6.616-3.975-11.98-8.877-11.98-4.903 0-8.877 5.364-8.877 11.98zM125.86.107H35.613c-1.268 0-2.114 1.426-2.114 2.852v18.255c0 1.712 1.057 2.853 2.114 2.853h90.247c1.268 0 2.114-1.426 2.114-2.853V2.96c0-1.711-1.057-2.852-2.114-2.852zM.106 62.86c0 6.615 3.974 11.979 8.876 11.979 4.903 0 8.877-5.364 8.877-11.98 0-6.616-3.974-11.98-8.877-11.98-4.902 0-8.876 5.364-8.876 11.98zM124.17 50.88H33.921c-1.268 0-2.114 1.425-2.114 2.851v18.256c0 1.711 1.057 2.852 2.114 2.852h90.247c1.268 0 2.114-1.426 2.114-2.852V53.73c0-1.426-.846-2.852-2.114-2.852zM.106 115.913c0 6.616 3.974 11.98 8.876 11.98 4.903 0 8.877-5.364 8.877-11.98 0-6.616-3.974-11.98-8.877-11.98-4.902 0-8.876 5.364-8.876 11.98zm124.064-11.98H33.921c-1.268 0-2.114 1.426-2.114 2.853v18.255c0 1.711 1.057 2.852 2.114 2.852h90.247c1.268 0 2.114-1.426 2.114-2.852v-18.255c0-1.427-.846-2.853-2.114-2.853z" /></symbol><symbol viewBox="0 0 128 128" id="icon-lock"><path d="M119.88 49.674h-7.987V39.52C111.893 17.738 90.45.08 63.996.08 37.543.08 16.1 17.738 16.1 39.52v10.154H8.113c-4.408 0-7.987 2.94-7.987 6.577v65.13c0 3.637 3.57 6.577 7.987 6.577H119.88c4.407 0 7.987-2.94 7.987-6.577v-65.13c-.008-3.636-3.58-6.577-7.987-6.577zm-23.953 0H32.065V39.52c0-14.524 14.301-26.295 31.931-26.295 17.63 0 31.932 11.777 31.932 26.295v10.153z" /></symbol><symbol class="icon" viewBox="0 0 1024 1024" id="icon-log"><path d="M208.736 566.336H64.384v59.328h144.352v-59.328zm0-336.096H165.44V74.592c0-7.968 4.896-14.848 10.464-14.848H677.92V.448H175.936c-38.72 1.248-69.248 34.368-68.192 74.144V230.24h-43.36v59.36h144.352v-59.36zm0 168.096H64.384v59.328h144.352v-59.328zm714.656 76.576h-57.76v474.496c0 7.936-4.896 14.848-10.464 14.848H175.936c-5.568 0-10.464-6.912-10.464-14.848v-155.68h43.296v-59.296H64.384v59.296h43.328v155.68c-1.024 39.776 29.472 72.896 68.192 74.144h679.232c38.72-1.184 69.248-34.368 68.256-74.144V474.912zm14.944-290.336-83.072-85.312a71.264 71.264 0 0 0-52.544-21.728 71.52 71.52 0 0 0-51.616 23.872L386.528 507.264a30.496 30.496 0 0 0-6.176 10.72L308.16 740.512a30.016 30.016 0 0 0 6.976 30.24c7.712 7.968 19.2 10.752 29.568 7.2l216.544-74.112a28.736 28.736 0 0 0 12.128-7.936l367.072-408.448a75.552 75.552 0 0 0-2.112-102.88zm-557.12 518.272 39.104-120.64 78.336 80.416-117.44 40.224zm170.048-70.016L447.712 526.816l200.16-222.4 103.52 106.304-200.128 222.112zm346.688-385.76-.256.224L790.56 366.464 687.04 259.936l106.432-118.624a14.144 14.144 0 0 1 10.304-4.736 13.44 13.44 0 0 1 10.464 4.288l83.264 85.696c5.472 5.6 5.664 14.72.448 20.512z" /></symbol><symbol class="icon" viewBox="0 0 1024 1024" id="icon-logininfor"><path d="M896 128h-85.333a42.667 42.667 0 0 0 0 85.333h42.666v640H170.667v-640h42.666a42.667 42.667 0 0 0 0-85.333H128a42.667 42.667 0 0 0-42.667 42.667V896A42.667 42.667 0 0 0 128 938.667h768A42.667 42.667 0 0 0 938.667 896V170.667A42.667 42.667 0 0 0 896 128z" /><path d="M341.333 298.667A42.667 42.667 0 0 0 384 256V128a42.667 42.667 0 0 0-85.333 0v128a42.667 42.667 0 0 0 42.666 42.667zm170.667 0A42.667 42.667 0 0 0 554.667 256V128a42.667 42.667 0 0 0-85.334 0v128A42.667 42.667 0 0 0 512 298.667zm170.667 0A42.667 42.667 0 0 0 725.333 256V128A42.667 42.667 0 0 0 640 128v128a42.667 42.667 0 0 0 42.667 42.667zM341.333 768A42.667 42.667 0 0 0 384 725.333a128 128 0 0 1 256 0 42.667 42.667 0 0 0 85.333 0 213.333 213.333 0 0 0-107.52-184.32A128 128 0 0 0 640 469.333a128 128 0 0 0-256 0 128 128 0 0 0 22.187 71.68 213.333 213.333 0 0 0-107.52 184.32A42.667 42.667 0 0 0 341.333 768zm128-298.667A42.667 42.667 0 1 1 512 512a42.667 42.667 0 0 1-42.667-42.667z" /></symbol><symbol viewBox="0 0 128 128" id="icon-message"><path d="M0 20.967v59.59c0 11.59 8.537 20.966 19.075 20.966h28.613l1 26.477L76.8 101.523h32.125c10.538 0 19.075-9.377 19.075-20.966v-59.59C128 9.377 119.463 0 108.925 0h-89.85C8.538 0 0 9.377 0 20.967zm82.325 33.1c0-5.524 4.013-9.935 9.037-9.935 5.026 0 9.038 4.41 9.038 9.934 0 5.524-4.025 9.934-9.038 9.934-5.024 0-9.037-4.41-9.037-9.934zm-27.613 0c0-5.524 4.013-9.935 9.038-9.935s9.037 4.41 9.037 9.934c0 5.524-4.025 9.934-9.037 9.934-5.025 0-9.038-4.41-9.038-9.934zm-27.1 0c0-5.524 4.013-9.935 9.038-9.935s9.038 4.41 9.038 9.934c0 5.524-4.026 9.934-9.05 9.934-5.013 0-9.025-4.41-9.025-9.934z" /></symbol><symbol viewBox="0 0 128 128" id="icon-money"><path d="M54.122 127.892v-28.68H7.513V87.274h46.609v-12.4H7.513v-12.86h38.003L.099 0h22.6l32.556 45.07c3.617 5.144 6.44 9.611 8.487 13.385 1.788-3.05 4.89-7.779 9.301-14.186L103.93 0h24.01L82.385 62.013h38.34v12.862h-46.41v12.4h46.41v11.937h-46.41v28.68H54.123z" /></symbol><symbol class="icon" viewBox="0 0 1024 1024" id="icon-monitor"><defs><style>@font-face{font-family:rbicon;src:url(chrome-extension://dipiagiiohfljcicegpgffpbnjmgjcnf/fonts/rbicon.woff2) format("woff2");font-weight:400;font-style:normal}</style></defs><path d="M64 64v576h832V64H64zM0 0h960v704H0V0z" /><path d="M192 896h576v64H192zm256-256h64v256h-64zM479.232 561.604l309.99-348.33-47.803-42.548-259.567 291.67-177.895-222.387L163.21 438.605l52.224 37.009 91.622-129.28z" /></symbol><symbol viewBox="0 0 128 128" id="icon-nested"><path d="M.002 9.2c0 5.044 3.58 9.133 7.998 9.133 4.417 0 7.997-4.089 7.997-9.133 0-5.043-3.58-9.132-7.997-9.132S.002 4.157.002 9.2zM31.997.066h95.981V18.33H31.997V.066zm0 45.669c0 5.044 3.58 9.132 7.998 9.132 4.417 0 7.997-4.088 7.997-9.132 0-3.263-1.524-6.278-3.998-7.91-2.475-1.63-5.524-1.63-7.998 0-2.475 1.632-4 4.647-4 7.91zM63.992 36.6h63.986v18.265H63.992V36.6zm-31.995 82.2c0 5.043 3.58 9.132 7.998 9.132 4.417 0 7.997-4.089 7.997-9.132 0-5.044-3.58-9.133-7.997-9.133s-7.998 4.089-7.998 9.133zm31.995-9.131h63.986v18.265H63.992V109.67zm0-27.404c0 5.044 3.58 9.133 7.998 9.133 4.417 0 7.997-4.089 7.997-9.133 0-3.263-1.524-6.277-3.998-7.909-2.475-1.631-5.524-1.631-7.998 0-2.475 1.632-4 4.646-4 7.91zm31.995-9.13h31.991V91.4H95.987V73.135z" /></symbol><symbol class="icon" viewBox="0 0 1024 1024" id="icon-number"><path d="M279.273 791.273h512a46.545 46.545 0 0 1 0 93.09h-512a46.545 46.545 0 0 1 0-93.09zm33.838-617.984v478.347H193.722V395.171c0-37.004-.884-59.299-2.653-66.746a24.948 24.948 0 0 0-14.615-16.99c-8.006-3.863-25.786-5.771-53.341-5.771H111.29v-55.855c57.717-12.38 101.562-37.888 131.491-76.52h70.284zm303.71 396.8v81.547H354.163v-68.235c77.778-127.256 124.044-206.01 138.706-236.218 14.662-30.255 22.016-53.854 22.016-70.75 0-13.032-2.234-22.714-6.656-29.137-4.422-6.377-11.171-9.588-20.247-9.588a22.249 22.249 0 0 0-20.201 10.612c-4.469 7.121-6.656 21.178-6.656 42.263v45.522H354.164V318.65c0-26.763 1.397-47.942 4.143-63.348 2.746-15.5 9.542-30.72 20.387-45.661 10.798-14.988 24.902-26.298 42.217-33.978 17.361-7.68 38.167-11.544 62.37-11.544 47.477 0 83.317 11.776 107.707 35.328 24.296 23.552 36.445 53.341 36.445 89.368 0 27.368-6.842 56.32-20.48 86.853-13.731 30.534-54.04 95.325-121.018 194.42H616.82zm270.615-189.394c18.152 6.098 31.65 16.105 40.494 29.976 8.844 13.917 13.312 46.452 13.312 97.652 0 38.028-4.329 67.49-13.033 88.53-8.657 20.945-23.598 36.91-44.87 47.848-21.27 10.938-48.593 16.384-81.873 16.384-37.795 0-67.49-6.33-89.088-19.084-21.55-12.66-35.747-28.253-42.542-46.638-6.796-18.432-10.194-50.362-10.194-95.884v-37.841h119.39v77.73c0 20.667 1.21 33.84 3.723 39.425 2.42 5.585 7.913 8.424 16.337 8.424 9.31 0 15.36-3.537 18.34-10.612 2.932-7.121 4.421-25.6 4.421-55.575v-33.047c0-18.34-2.048-31.744-6.19-40.216a30.72 30.72 0 0 0-18.34-16.71c-8.052-2.653-23.738-4.189-46.964-4.561V357.05c28.393 0 45.894-1.07 52.597-3.258a22.947 22.947 0 0 0 14.475-14.15c2.933-7.307 4.422-18.711 4.422-34.257V278.76c0-16.757-1.722-27.741-5.12-33.048-3.49-5.352-8.844-8.005-16.151-8.005-8.285 0-13.964 2.792-16.99 8.378-3.025 5.632-4.56 17.64-4.56 35.933v39.284h-119.39V280.53c0-45.66 10.473-76.567 31.325-92.625 20.9-16.058 54.086-24.064 99.608-24.064 56.878 0 95.51 11.17 115.805 33.373 20.293 22.249 30.394 53.202 30.394 92.765 0 26.81-3.63 46.173-10.892 58.089-7.307 11.916-20.107 22.807-38.446 32.628z" /></symbol><symbol class="icon" viewBox="0 0 1024 1024" id="icon-online"><path d="M356.246 681.563C288.09 639.613 249 577.722 249 511.757c0-65.966 39.09-127.86 107.246-169.809 12.047-7.415 15.801-23.19 8.386-35.237-7.414-12.046-23.191-15.801-35.236-8.387-39.641 24.4-72.54 56.045-95.138 91.516-23.867 37.46-36.482 79.62-36.482 121.917 0 42.298 12.615 84.455 36.482 121.915 22.599 35.47 55.497 67.115 95.138 91.513a25.489 25.489 0 0 0 13.4 3.805c8.599 0 16.998-4.33 21.836-12.19 7.415-12.048 3.66-27.823-8.386-35.237zm-92.302 73.018C171.34 693.469 118.23 604.957 118.23 511.74c0-93.196 53.094-181.684 145.668-242.775 11.806-7.79 15.06-23.677 7.27-35.483-7.791-11.806-23.678-15.062-35.484-7.27C128.488 296.954 67.007 401.024 67.007 511.74c0 110.737 61.496 214.83 168.721 285.594a25.487 25.487 0 0 0 14.083 4.238c8.317 0 16.476-4.046 21.4-11.507 7.793-11.807 4.538-27.693-7.267-35.484zM788.66 226.213c-11.805-7.791-27.693-4.536-35.484 7.27-7.79 11.806-4.536 27.692 7.27 35.483 92.575 61.092 145.67 149.58 145.67 242.774 0 93.216-53.111 181.728-145.715 242.84-11.806 7.791-15.06 23.68-7.27 35.485 4.926 7.462 13.082 11.507 21.4 11.507 4.842 0 9.74-1.371 14.085-4.238C895.844 726.572 957.34 622.476 957.34 511.74c0-110.714-61.48-214.785-168.68-285.527zm1.43 407.46c23.865-37.46 36.48-79.618 36.48-121.916s-12.615-84.456-36.48-121.917c-22.6-35.471-55.498-67.116-95.14-91.516-12.048-7.413-27.822-3.659-35.237 8.387-7.415 12.046-3.66 27.822 8.386 35.237 68.156 41.95 107.247 103.842 107.247 169.81 0 65.964-39.09 127.855-107.247 169.804-12.046 7.415-15.801 23.19-8.386 35.237 4.838 7.861 13.236 12.191 21.835 12.191 4.58 0 9.216-1.228 13.4-3.805 39.642-24.398 72.541-56.042 95.141-91.513zM567.128 518.274c24.124-17.15 39.888-45.306 39.888-77.071 0-52.129-42.453-94.539-94.635-94.539-52.18 0-94.633 42.41-94.633 94.539 0 31.695 15.696 59.798 39.73 76.958-49.875 21.129-84.916 70.235-84.916 127.302 0 2.367.061 4.762.182 7.119l1.25 24.296h276.373l1.238-24.308c.12-2.36.181-4.75.181-7.107 0-56.967-34.921-105.998-84.658-127.19zm-54.748-120.386c23.937 0 43.412 19.43 43.412 43.315 0 23.883-19.475 43.313-43.412 43.313-23.936 0-43.41-19.43-43.41-43.313 0-23.883 19.474-43.315 43.41-43.315zM426.09 625.657c9.12-38.543 44.255-67.338 86.085-67.338s76.967 28.795 86.086 67.338H426.09z" /></symbol><symbol class="icon" viewBox="0 0 1024 1024" id="icon-password"><path d="M868.593 403.832c-30.081-28.845-70.037-44.753-112.624-44.753h-490.02c-42.554 0-82.51 15.908-112.469 44.691-30.237 28.783-46.857 67.222-46.857 108.198v294.08c0 40.977 16.62 79.415 46.703 108.137C183.285 943.03 223.396 959 265.95 959h490.019c42.586 0 82.696-15.97 112.624-44.815 30.082-28.845 46.58-67.222 46.58-108.137v-294.08c-.001-40.915-16.498-79.29-46.58-108.136zM841.821 806.05c0 22.098-8.882 42.772-25.1 58.307-16.154 15.662-37.819 24.203-60.752 24.203h-490.02c-22.934 0-44.566-8.542-60.877-24.264-16.187-15.475-25.068-36.149-25.068-58.247v-294.08c0-22.036 8.881-42.772 25.193-58.308 16.187-15.537 37.82-24.14 60.754-24.14H755.97c22.933 0 44.598 8.603 60.753 24.14 16.218 15.536 25.1 36.272 25.1 58.308V806.05zM510.974 135.441c114.914 0 208.319 89.752 208.319 200.055h73.35C792.643 186.383 666.277 65 510.974 65c-155.334 0-281.7 121.384-281.7 270.497h73.35c0-110.302 93.436-200.055 208.35-200.055zM474.3 747.245h73.35V629.577H474.3v117.668z" /></symbol><symbol viewBox="0 0 1024 1024" id="icon-pdf"><path d="M869.073 277.307H657.111V65.344l211.962 211.963zm-238.232 26.27V65.344l-476.498-.054v416.957h714.73v-178.67H630.841zm-335.836 360.57c-5.07-3.064-10.944-5.133-17.61-6.201-6.67-1.064-13.603-1.6-20.81-1.6h-48.821v85.641h48.822c7.206 0 14.14-.532 20.81-1.6 6.665-1.065 12.54-3.133 17.609-6.202 5.064-3.063 9.134-7.406 12.208-13.007 3.065-5.602 4.6-12.937 4.6-22.011 0-9.07-1.535-16.408-4.6-22.01-3.074-5.603-7.144-9.94-12.208-13.01zM35.82 541.805v416.904h952.358V541.805H35.821zm331.421 191.179c-3.6 11.071-9.343 20.879-17.209 29.413-7.874 8.542-18.078 15.408-30.617 20.61-12.544 5.206-27.747 7.807-45.621 7.807h-66.036v102.45h-62.831V607.517h128.867c17.874 0 33.077 2.6 45.62 7.802 12.541 5.207 22.745 12.076 30.618 20.615 7.866 8.538 13.604 18.277 17.21 29.212 3.6 10.943 5.401 22.278 5.401 34.018 0 11.477-1.8 22.752-5.402 33.819zM644.9 806.417c-5.343 17.61-13.408 32.818-24.212 45.627-10.807 12.803-24.283 22.879-40.423 30.213-16.146 7.343-35.155 11.007-57.03 11.007h-123.26V607.518h123.26c18.41 0 35.552 2.941 51.428 8.808 15.873 5.869 29.618 14.671 41.22 26.412 11.608 11.744 20.674 26.411 27.217 44.02 6.535 17.61 9.803 38.288 9.803 62.035 0 20.81-2.67 40.02-8.003 57.624zm245.362-146.07h-138.07v66.03h119.66v48.829h-119.66v118.058h-62.83V607.518h200.9v52.829h-.001zm-318.2 25.611c-6.402-8.266-14.877-14.604-25.412-19.01-10.544-4.402-23.551-6.602-39.019-6.602h-44.825v180.088h56.029c9.07 0 17.872-1.463 26.415-4.401 8.535-2.932 16.14-7.802 22.812-14.609 6.665-6.8 12.007-15.667 16.007-26.61 4.003-10.94 6.003-24.275 6.003-40.021 0-14.408-1.4-27.416-4.202-39.019-2.8-11.607-7.406-21.542-13.808-29.816zm0 0" /></symbol><symbol viewBox="0 0 128 128" id="icon-people"><path d="M104.185 95.254c8.161 7.574 13.145 17.441 13.145 28.28 0 1.508-.098 2.998-.285 4.466h-10.784c.238-1.465.403-2.948.403-4.465 0-8.983-4.36-17.115-11.419-23.216C86 104.66 75.355 107.162 64 107.162c-11.344 0-21.98-2.495-31.22-6.83-7.064 6.099-11.444 14.218-11.444 23.203 0 1.517.165 3 .403 4.465H10.955a35.444 35.444 0 0 1-.285-4.465c0-10.838 4.974-20.713 13.127-28.291C9.294 85.42.003 70.417.003 53.58.003 23.99 28.656.001 64 .001s63.997 23.988 63.997 53.58c0 16.842-9.299 31.85-23.812 41.673zM64 36.867c-29.454 0-53.33-10.077-53.33 15.342 0 25.418 23.876 46.023 53.33 46.023 29.454 0 53.33-20.605 53.33-46.023 0-25.419-23.876-15.342-53.33-15.342zm24.888 25.644c-3.927 0-7.111-2.665-7.111-5.953 0-3.288 3.184-5.954 7.11-5.954 3.928 0 7.111 2.666 7.111 5.954s-3.183 5.953-7.11 5.953zm-3.556 16.372c0 4.11-9.55 7.442-21.332 7.442-11.781 0-21.332-3.332-21.332-7.442 0-1.06.656-2.064 1.8-2.976 3.295 2.626 10.79 4.465 19.532 4.465 8.743 0 16.237-1.84 19.531-4.465 1.145.912 1.801 1.916 1.801 2.976zm-46.22-16.372c-3.927 0-7.11-2.665-7.11-5.953 0-3.288 3.183-5.954 7.11-5.954 3.927 0 7.111 2.666 7.111 5.954s-3.184 5.953-7.11 5.953z" /></symbol><symbol viewBox="0 0 128 128" id="icon-peoples"><path d="M95.648 118.762c0 5.035-3.563 9.121-7.979 9.121H7.98c-4.416 0-7.979-4.086-7.979-9.121C0 100.519 15.408 83.47 31.152 76.75c-9.099-6.43-15.216-17.863-15.216-30.987v-9.128c0-20.16 14.293-36.518 31.893-36.518s31.894 16.358 31.894 36.518v9.122c0 13.137-6.123 24.556-15.216 30.993 15.738 6.726 31.141 23.769 31.141 42.012z" /><path d="M106.032 118.252h15.867c3.376 0 6.101-3.125 6.101-6.972 0-13.957-11.787-26.984-23.819-32.123 6.955-4.919 11.638-13.66 11.638-23.704v-6.985c0-15.416-10.928-27.926-24.39-27.926-1.674 0-3.306.193-4.89.561 1.936 4.713 3.018 9.974 3.018 15.526v9.121c0 13.137-3.056 23.111-11.066 30.993 14.842 4.41 27.312 23.42 27.541 41.509z" /></symbol><symbol class="icon" viewBox="0 0 1024 1024" id="icon-phone"><path d="M761.503 2.906H242.122c-32.405 0-58.932 26.06-58.932 58.528v902.302c0 32.157 26.217 58.217 58.932 58.217h519.381c32.345 0 58.591-26.06 58.591-58.217V61.123c0-32.156-26.246-58.217-58.591-58.217M452.879 61.123h98.147c6.78 0 12.316 5.536 12.316 12.253 0 6.749-5.535 12.253-12.316 12.253H452.88c-6.78 0-12.345-5.504-12.345-12.253-.001-6.717 5.566-12.253 12.345-12.253m48.763 919.47c-29.637 0-53.988-23.946-53.988-53.677 0-29.357 24.04-53.614 53.988-53.614 29.917 0 53.987 23.884 53.987 53.614 0 29.731-24.069 53.677-53.987 53.677m264.715-177.45c0 16.234-13.187 29.108-29.234 29.108H266.504c-16.357 0-29.326-13.186-29.326-29.108V163.5c0-16.233 13.28-29.139 29.326-29.139H736.75c16.421 0 29.358 13.185 29.358 29.139v639.642h.249zm0 0" /></symbol><symbol class="icon" viewBox="0 0 1024 1024" id="icon-post"><path d="M136.4 434.3h77.7c21.5 0 38.9-17.4 38.9-38.9s-17.4-38.9-38.9-38.9h-77.7c-21.5 0-38.9 17.4-38.9 38.9s17.4 38.9 38.9 38.9zm116.5 194.3c0-21.5-17.4-38.9-38.9-38.9h-77.7c-21.5 0-38.9 17.4-38.9 38.9s17.4 38.9 38.9 38.9H214c21.5-.1 38.9-17.5 38.9-38.9z" /><path d="M874.7 97.5H227c-28.6 0-51.8 23.2-51.8 51.8v194.3h38.9c28.6 0 51.8 23.2 51.8 51.8 0 28.6-23.2 51.8-51.8 51.8h-38.9v129.5h38.9c28.6 0 51.8 23.2 51.8 51.8 0 28.6-23.2 51.8-51.8 51.8h-38.9v194.3c0 28.6 23.2 51.8 51.8 51.8h647.7c28.6 0 51.8-23.2 51.8-51.8V149.3c0-28.6-23.2-51.8-51.8-51.8zm-311.3 723c-15.6 0-146.7-71.6-146.7-91 0-19.4 102-368.6 102-368.6l-83.6-104s-12.3-23.1 24.6-23.1h208.9c36.9 0 18.4 23.1 18.4 23.1l-79 104s102 351.3 102 368.6c.1 17.3-131 91-146.6 91zm169.2-253.6-27.9 40.2-74.5-240 103.4 171.7c4.6 7.9 4.2 20.6-1 28.1z" /></symbol><symbol viewBox="0 0 128 128" id="icon-qq"><path d="m18.448 57.545-.244-.744-.198-.968-.132-.53v-2.181l.236-.859.24-.908.317-.953.428-1.06.561-1.103.794-1.104v-.773l.077-.724.123-.984.34-1.106.313-1.194.25-.548.289-.511.371-.569.405-.423v-2.73l.234-1.407.236-1.633.42-1.955.577-2.035.43-1.118.426-1.217.468-1.135.559-1.216.57-1.332.655-1.247.737-1.331.929-1.33.43-.762.457-.624.995-1.406 1.025-1.403 1.163-1.444 1.246-1.405 1.352-1.384 1.41-1.423 1.708-1.536 1.083-.934 1.322-1.008 1.34-.89 1.448-.855 1.392-.76 1.57-.63 1.667-.775 1.657-.532 1.653-.552 1.787-.548 1.785-.417 1.876-.347L59.128.68l1.879-.245 1.876-.252 2.002-.106h5.912l1.97.243 1.981.231 2.019.207 1.874.441 1.979.413 1.857.475 2.035.53 1.862.646 1.782.738 1.904.78 1.736.853 1.689.95 1.655 1.044 1.425.971.662.548.693.401 1.323 1.1 1.115 1.064 1.112 1.1 1.083 1.214.894 1.178 1.064 1.217.74 1.306.752 1.162.798 1.352.661 1.175 1.113 2.489.546 1.286.428 1.192.428 1.294.384 1.217.267 1.047.347 1.231.607 2.198.388 1.924.253 1.861.217 1.497.342 2.28.077.362.274.41.737 1.18.473.8.42.832.534.892.472 1.07.307 1.093.334 1.2.252 1.232.115.605.106.746v.648l-.106.643v.8l-.192.774-.35 1.5-.403.76-.299.852v.213l.142.264.4.623 1.746 2.53 1.377 1.9.66 1.267.889 1.389.774 1.52.893 1.627.894 1.828 1.006 2.069.567 1.268.518 1.239.447 1.307.44 1.175.336 1.235.342 1.16.432 2.261.343 2.31.235 2.05v2.891l-.158 1.025-.226 1.768-.308 1.59-.48 1.44-.18.588-.336.707-.28.493-.375.607-.33.383-.42.494-.375.4-.401.34-.48.207-.432.207-.355.114h-.543l-.346-.114-.66-.32-.302-.212-.317-.223-.347-.304-.35-.342-.579-.63-.684-.89-.539-.917-.538-.734-.526-.855-.741-1.517-.833-1.579-.098-.055h-.138l-.338.247-.196.415-.326.516-.567 1.533-.856 2.182-1.096 2.626-.824 1.308-.864 1.366-1.027 1.536-1.09 1.503-.557.68-.676.743-1.555 1.497.136.135.21.214.777.446 3.235 1.524 1.41.779 1.347.756 1.332.953 1.187.982.574.443.432.511.445.593.367.643.198.533.242.64.105.554.115.647-.115.433v.44l-.105.454-.242.415-.092.325-.22.394-.587.784-.543.627-.42.47-.35.348-.893.638-1.01.556-1.077.532-1.155.511-1.287.495-.693.207-.608.167-1.496.342-1.545.325-1.552.323-1.689.27-1.74.072-1.785.21h-5.539l-1.998-.114-1.86-.168-2.005-.27-1.99-.209-2.095-.286-2.03-.495-1.981-.374-1.968-.552-2.019-.707-1.98-.585-1.044-.342-.927-.323-.586-.223-.582-.12h-1.647l-1.904-.131-.962-.096-1.24-.135-.795.705-1.085.665-1.471.701-1.628.875-.99.475-1.033.376-2.281.914-1.24.305-1.3.343-1.803.344-1.13.086-1.193.1-1.246.135-1.45.053h-5.926l-3.346-.053-3.25-.321-1.644-.23-1.589-.23-1.546-.227-1.547-.305-1.442-.456-1.434-.325-1.294-.51-1.223-.474-1.142-.533-.99-.583-.984-.71-.336-.343-.44-.415-.334-.362-.3-.417-.278-.415-.215-.42-.311-.89-.109-.46-.138-.51v-.473l.138-.533v-.53l.109-.53v-1.069l.052-.564.259-.647.215-.646.39-.779.286-.3.236-.348.615-.738.49-.38.464-.266.428-.338.676-.21.543-.324.676-.341.77-.227.775-.231.897-.192.85-.11 1.008-.13 1.093-.081.284-.092h.063l.137-.115v-.13l-.2-.266-.58-.27-1.45-1.231-.975-.761-1.127-.967-1.136-1.082-1.181-1.382-1.36-1.558-.508-.843-.672-.87-.58-1.007-.522-1.1-.704-1.047-.459-1.194-.547-1.192-.546-1.33-.397-1.273-.378-1.575-.112-.057h-.115l-.059-.113h-.14l-.23.113-.114.057-.158.264-.057.321-.119.286-.206.477-.664 1.157-.345.701-.546.612-.58.736-.641.816-.677.724-.795.701-.734.658-.814.524-.89.546-.855.325-1.008.247-.99.095h-.233l-.228-.095-.18-.384-.29-.188-.38-.912-.237-.493-.255-.707-.21-.734-.113-.724-.313-1.648-.12-.972v-3.185l.12-2.379.196-1.214.23-1.252.21-1.347.374-1.254.42-1.443.431-1.407.578-1.448.545-1.38.754-1.4.699-1.52.855-1.425 1.006-1.538 1.023-1.382 1.069-1.538.891-1.071 1.142-1.227 1.202-1.237.56-.59.678-.662.985-.836 1.012-.853 1.647-1.446 1.242-.889z" /></symbol><symbol class="icon" viewBox="0 0 1024 1024" id="icon-question"><path d="M512 0C229.234 0 0 229.234 0 512s229.234 512 512 512 512-229.234 512-512A512 512 0 0 0 512 0zm0 938.667C276.366 938.667 85.333 747.634 85.333 512S276.366 85.333 512 85.333 938.667 276.366 938.667 512A426.667 426.667 0 0 1 512 938.667zm0-717.654A170.667 170.667 0 0 0 341.333 391.68a42.667 42.667 0 0 0 85.334 0A85.333 85.333 0 1 1 512 477.013a42.667 42.667 0 0 0-42.667 42.667v111.36a42.667 42.667 0 0 0 85.334 0V556.8A170.667 170.667 0 0 0 512 221.013zm-42.667 542.294a42.667 42.667 0 1 0 85.334 0 42.667 42.667 0 0 0-85.334 0z" /></symbol><symbol class="icon" viewBox="0 0 1024 1024" id="icon-radio"><path d="M507.393 71.849c241.536 0 437.398 195.854 437.398 437.374 0 241.538-195.862 437.39-437.398 437.39-241.5 0-437.35-195.852-437.35-437.39 0-241.52 195.849-437.374 437.35-437.374zm0 210.97c-125.006 0-226.37 101.39-226.37 226.418 0 125.013 101.364 226.397 226.37 226.397 125.043 0 226.424-101.384 226.424-226.397 0-125.029-101.38-226.418-226.424-226.418zm0-162.037c-214.466 0-388.42 173.951-388.42 388.44 0 214.512 173.955 388.461 388.42 388.461 214.524 0 388.46-173.948 388.46-388.461 0-214.489-173.936-388.44-388.46-388.44z" /></symbol><symbol class="icon" viewBox="0 0 1069 1024" id="icon-rate"><path d="m633.73 378.02 9.498 18.688 20.78 2.798 206.616 27.332a11.465 11.465 0 0 1 6.61 19.473L729.966 593.665l-14.893 14.893 3.8 20.683 37.847 204.89a11.465 11.465 0 0 1-16.481 12.296l-185.55-94.58-18.687-9.493-18.487 9.992-183.24 99.35a11.465 11.465 0 0 1-16.784-11.867l32.543-205.796 3.297-20.786-15.192-14.492-151.033-143.484a11.465 11.465 0 0 1 6.1-19.64L399 402.998l20.786-3.296 9.092-18.98 89.713-188.078a11.465 11.465 0 0 1 20.569-.263l94.568 185.635zM496.647 85.52 374.89 340.501l-279.126 44.26a34.395 34.395 0 0 0-18.303 58.908l204.873 194.663-44.169 279.115a34.395 34.395 0 0 0 50.366 35.616l248.4-134.679L788.776 946.66a34.395 34.395 0 0 0 49.437-36.894l-51.306-277.854 199.731-199.909a34.395 34.395 0 0 0-19.828-58.408l-280.118-37.032L558.33 84.713a34.395 34.395 0 0 0-61.682.802z" /></symbol><symbol class="icon" viewBox="0 0 1024 1024" id="icon-redis-list"><defs><style>@font-face{font-family:feedback-iconfont;src:url(//at.alicdn.com/t/font_1031158_u69w8yhxdu.woff2?t=1630033759944) format("woff2"),url(//at.alicdn.com/t/font_1031158_u69w8yhxdu.woff?t=1630033759944) format("woff"),url(//at.alicdn.com/t/font_1031158_u69w8yhxdu.ttf?t=1630033759944) format("truetype")}</style></defs><path d="M958.88 730.06H65.12c-18.28 0-33.12-14.82-33.12-33.12V68.91c0-18.29 14.83-33.12 33.12-33.12h893.77c18.28 0 33.12 14.82 33.12 33.12v628.03c-.01 18.3-14.84 33.12-33.13 33.12zM98.23 663.83h827.53v-561.8H98.23v561.8z" /><path d="M512 954.55c-18.28 0-33.12-14.82-33.12-33.12V733.92c0-18.29 14.83-33.12 33.12-33.12s33.12 14.82 33.12 33.12v187.51c0 18.3-14.84 33.12-33.12 33.12z" /><path d="M762.01 988.21H261.99c-18.28 0-33.12-14.82-33.12-33.12 0-18.29 14.83-33.12 33.12-33.12h500.03c18.28 0 33.12 14.82 33.12 33.12-.01 18.29-14.84 33.12-33.13 33.12zM514.74 578.55c-21.63 0-43.31-3.87-64.21-11.65-45.95-17.13-82.49-51.13-102.86-95.74-5.07-11.08-.19-24.19 10.89-29.26 11.08-5.09 24.19-.18 29.26 10.91 15.5 33.88 43.25 59.7 78.14 72.71 34.93 12.99 72.79 11.64 106.66-3.85 33.22-15.17 58.8-42.26 72.03-76.3 4.42-11.37 17.21-17.01 28.57-12.58 11.36 4.42 16.99 17.22 12.57 28.58-17.42 44.82-51.1 80.5-94.82 100.47-24.34 11.12-50.25 16.71-76.23 16.71z" /><path d="M325.27 528.78c-1.66 0-3.34-.18-5.02-.57-11.88-2.77-19.28-14.63-16.49-26.51l18.84-81c1.34-5.82 5-10.84 10.13-13.92 5.09-3.09 11.3-3.96 17.03-2.41l80.51 21.43c11.79 3.14 18.8 15.23 15.67 27.02-3.15 11.79-15.42 18.75-27.02 15.65l-58.49-15.57-13.69 58.81c-2.37 10.2-11.45 17.07-21.47 17.07zm35.53-177.77c-2.65 0-5.37-.49-8-1.51-11.36-4.41-16.99-17.21-12.59-28.57 17.4-44.79 51.06-80.47 94.8-100.48 92.15-42.06 201.25-1.39 243.31 90.68 5.07 11.08.19 24.19-10.89 29.26-11.13 5.07-24.19.17-29.26-10.91-31.97-69.91-114.9-100.82-184.79-68.86-33.22 15.19-58.8 42.28-71.99 76.29-3.41 8.74-11.75 14.1-20.59 14.1z" /><path d="M684.68 376.74c-1.47 0-2.95-.15-4.42-.44l-81.61-16.68c-11.94-2.45-19.64-14.11-17.21-26.06 2.44-11.96 14.1-19.64 26.04-17.22l59.29 12.12 10.23-59.5c2.05-12 13.52-20.19 25.48-18.01 12.03 2.06 20.09 13.48 18.02 25.5l-14.08 81.96a22.089 22.089 0 0 1-9.29 14.49c-3.7 2.51-8.03 3.84-12.45 3.84z" /></symbol><symbol class="icon" viewBox="0 0 1024 1024" id="icon-redis"><path d="M1023.787 611.84c-.427 9.77-13.355 20.693-39.894 34.56C929.28 674.859 646.144 791.296 585.9 822.699c-60.288 31.402-93.739 31.104-141.355 8.32-47.616-22.742-348.843-144.47-403.115-170.368C14.336 647.68.512 636.757.043 626.432v103.51c0 10.325 14.25 21.29 41.386 34.26 54.272 25.942 355.542 147.627 403.115 170.369 47.616 22.784 81.067 23.082 141.355-8.363 60.245-31.403 343.338-147.797 397.994-176.299 27.776-14.464 40.107-25.728 40.107-35.925V611.925l-.213-.085zm0-168.747c-.512 9.771-13.398 20.651-39.894 34.518C929.28 506.069 646.144 622.507 585.9 653.909c-60.288 31.403-93.739 31.104-141.355 8.363-47.616-22.741-348.843-144.47-403.115-170.41C14.336 478.932.512 467.967.043 457.684v103.51c0 10.325 14.25 21.248 41.386 34.218 54.272 25.942 355.499 147.627 403.115 170.368 47.616 22.784 81.067 23.083 141.355-8.32 60.245-31.402 343.338-147.84 397.994-176.298 27.776-14.507 40.107-25.771 40.107-35.968V443.136l-.256-.043zm0-175.018c.469-10.411-13.142-19.542-40.534-29.611-53.248-19.499-334.634-131.499-388.522-151.253-53.888-19.712-75.819-18.902-139.094 3.84C392.235 113.707 92.63 231.253 39.34 252.075 12.672 262.57-.341 272.256.085 282.58v103.552c0 10.326 14.251 21.248 41.387 34.219 54.272 25.941 355.499 147.67 403.115 170.41 47.616 22.742 81.066 23.04 141.354-8.362 60.246-31.403 343.339-147.84 397.995-176.299 27.776-14.506 40.107-25.77 40.107-35.968V268.075h-.342zm-657.11 98.005 237.27-36.437-71.68 105.088L366.72 366.08zm524.8-94.635-140.33 55.467-15.232 5.973-140.246-55.466 155.392-61.44 140.374 55.466zM479.488 169.771l-22.955-42.326 71.595 27.99 67.499-22.102-18.262 43.734 68.779 25.77-88.704 9.216-19.883 47.787-32.085-53.29-102.4-9.217 76.416-27.562zM302.72 229.504c70.059 0 126.805 21.973 126.805 49.11s-56.746 49.151-126.805 49.151-126.848-22.058-126.848-49.152c0-27.136 56.79-49.152 126.848-49.152z" /></symbol><symbol class="icon" viewBox="0 0 1024 1024" id="icon-row"><path d="M152 854.857h325.715V237.716H134.857v600q0 6.993 5.075 12.068T152 854.857zm737.143-17.142v-600H546.284v617.142H872q6.994 0 12.068-5.074t5.075-12.068zm68.572-651.43v651.43q0 35.383-25.167 60.55T872 923.427H152q-35.383 0-60.548-25.165t-25.168-60.548v-651.43q0-35.383 25.167-60.55T152 100.573h720q35.383 0 60.548 25.165t25.167 60.548z" /></symbol><symbol viewBox="0 0 128 128" id="icon-search"><path d="M124.884 109.812 94.256 79.166c-.357-.357-.757-.629-1.129-.914a50.366 50.366 0 0 0 8.186-27.59C101.327 22.689 78.656 0 50.67 0 22.685 0 0 22.688 0 50.663c0 27.989 22.685 50.663 50.656 50.663 10.186 0 19.643-3.03 27.6-8.201.286.385.557.771.9 1.114l30.628 30.632a10.633 10.633 0 0 0 7.543 3.129c2.728 0 5.457-1.043 7.543-3.115 4.171-4.157 4.171-10.915.014-15.073M50.671 85.338C31.557 85.338 16 69.78 16 50.663c0-19.102 15.557-34.661 34.67-34.661 19.115 0 34.657 15.559 34.657 34.675 0 19.102-15.557 34.661-34.656 34.661" /></symbol><symbol class="icon" viewBox="0 0 1024 1024" id="icon-select"><path d="M62 511.98C62 263.866 263.907 62 511.98 62s449.98 201.825 449.98 449.98c0 248.195-201.908 449.98-449.98 449.98C263.907 962 62 760.174 62 511.98m839.986 0c0-215.244-175.009-390.416-390.006-390.416-215.04 0-389.966 175.172-389.966 390.416 0 215.284 175.009 390.456 389.966 390.456 215.038.041 390.006-175.131 390.006-390.456m-637.813-81.696c0-5.768 2.127-11.516 6.647-15.873 8.714-8.754 22.89-8.754 31.725 0L511.98 622.64l209.475-208.105c8.754-8.714 22.97-8.714 31.909 0 8.713 8.755 8.713 22.889 0 31.602L511.98 685.741 270.718 446.014c-4.438-4.234-6.545-9.962-6.545-15.73" /></symbol><symbol class="icon" viewBox="0 0 1024 1024" id="icon-server"><path d="M890 120H134a70 70 0 0 0-70 70v500a70 70 0 0 0 70 70h756a70 70 0 0 0 70-70V190a70 70 0 0 0-70-70zm-10 520a40 40 0 0 1-40 40H712V448a40 40 0 0 0-80 0v232h-80V368a40 40 0 0 0-80 0v312h-80V512a40 40 0 0 0-80 0v168H184a40 40 0 0 1-40-40V240a40 40 0 0 1 40-40h656a40 40 0 0 1 40 40zM696 824H328a40 40 0 0 0 0 80h368a40 40 0 0 0 0-80z" /></symbol><symbol viewBox="0 0 128 128" id="icon-shopping"><path d="M42.913 101.36c1.642 0 3.198.332 4.667.996a12.28 12.28 0 0 1 3.89 2.772c1.123 1.184 1.987 2.582 2.592 4.193.605 1.612.908 3.318.908 5.118 0 1.8-.303 3.507-.908 5.118-.605 1.611-1.469 3.01-2.593 4.194a13.3 13.3 0 0 1-3.889 2.843 10.582 10.582 0 0 1-4.667 1.066c-1.729 0-3.306-.355-4.732-1.066a13.604 13.604 0 0 1-3.825-2.843c-1.123-1.185-1.988-2.583-2.593-4.194a14.437 14.437 0 0 1-.907-5.118c0-1.8.302-3.506.907-5.118.605-1.61 1.47-3.009 2.593-4.193a12.515 12.515 0 0 1 3.825-2.772c1.426-.664 3.003-.996 4.732-.996zm53.932.285c1.643 0 3.22.331 4.733.995a11.386 11.386 0 0 1 3.889 2.772c1.08 1.185 1.945 2.583 2.593 4.194.648 1.61.972 3.317.972 5.118 0 1.8-.324 3.506-.972 5.117-.648 1.611-1.513 3.01-2.593 4.194a12.253 12.253 0 0 1-3.89 2.843 11 11 0 0 1-4.732 1.066 10.58 10.58 0 0 1-4.667-1.066 12.478 12.478 0 0 1-3.824-2.843c-1.08-1.185-1.945-2.583-2.593-4.194a13.581 13.581 0 0 1-.973-5.117c0-1.801.325-3.507.973-5.118.648-1.611 1.512-3.01 2.593-4.194a11.559 11.559 0 0 1 3.824-2.772 11.212 11.212 0 0 1 4.667-.995zm21.781-80.747c2.42 0 4.3.355 5.64 1.066 1.34.71 2.29 1.587 2.852 2.63a6.427 6.427 0 0 1 .778 3.34c-.044 1.185-.195 2.204-.454 3.057-.26.853-.8 2.606-1.62 5.26a589.268 589.268 0 0 1-2.788 8.743 1236.373 1236.373 0 0 0-3.047 9.453c-.994 3.128-1.75 5.592-2.269 7.393-1.123 3.79-2.55 6.42-4.278 7.89-1.728 1.469-3.846 2.203-6.352 2.203H39.023l1.945 12.795h65.342c4.148 0 6.223 1.943 6.223 5.828 0 1.896-.41 3.53-1.232 4.905-.821 1.374-2.442 2.061-4.862 2.061H38.505c-1.729 0-3.176-.426-4.343-1.28-1.167-.852-2.14-1.966-2.917-3.34a21.277 21.277 0 0 1-1.88-4.478 44.128 44.128 0 0 1-1.102-4.55c-.087-.568-.324-1.942-.713-4.122-.39-2.18-.865-4.904-1.426-8.174l-1.88-10.947c-.692-4.027-1.383-8.079-2.075-12.154-1.642-9.572-3.5-20.234-5.574-31.986H6.87c-1.296 0-2.377-.356-3.24-1.067a9.024 9.024 0 0 1-2.14-2.558 10.416 10.416 0 0 1-1.167-3.2C.108 8.53 0 7.488 0 6.54c0-1.896.583-3.46 1.75-4.69C2.917.615 4.494 0 6.482 0h13.095c1.728 0 3.111.284 4.148.853 1.037.569 1.858 1.28 2.463 2.132a8.548 8.548 0 0 1 1.297 2.701c.26.948.475 1.754.648 2.417.173.758.346 1.825.519 3.199.173 1.374.345 2.772.518 4.193.26 1.706.519 3.507.778 5.403h88.678z" /></symbol><symbol viewBox="0 0 128 128" id="icon-size"><path d="M0 54.857h54.796v18.286H36.531V128H18.265V73.143H0V54.857zm127.857-36.571H91.935V128H72.456V18.286H36.534V0h91.326l-.003 18.286z" /></symbol><symbol viewBox="0 0 128 128" id="icon-skill"><path d="M31.652 93.206h33.401c1.44 2.418 3.077 4.663 4.93 6.692h-38.33v-6.692zm0-10.586h28.914a44.8 44.8 0 0 1-1.264-6.688h-27.65v6.688zm0-17.27H59.39c.288-2.286.714-4.532 1.34-6.687H31.65v6.687h.003zm53.913 44.84v5.85c0 2.798-2.095 5.075-4.667 5.075h-70.07c-2.576 0-4.663-2.277-4.663-5.075V31.26l23.22-20.96v22.25H17.16v6.688h18.39V6.688h45.348c2.576 0 4.667 2.277 4.667 5.066v20.009c1.987-.675 4.053-1.128 6.17-1.445v-18.56C91.738 5.28 86.874 0 80.902 0H31.15L0 28.118v87.917c0 6.48 4.859 11.759 10.832 11.759h70.07c5.974 0 10.837-5.27 10.837-11.759v-4.41c-2.117-.312-4.183-.765-6.17-1.435h-.004zM23.279 58.667h-7.96v6.688h7.96v-6.688zm-7.956 41.23h7.96v-6.691h-7.96v6.692zm7.956-23.96h-7.96v6.687h7.96v-6.688zm89.718-15.042-4.896-4.07-12.447 17.613-11.19-9.305-3.762 5.311 16.091 13.38 16.204-22.929zM128 70.978c0-18.632-13.97-33.782-31.147-33.782-17.168 0-31.135 15.155-31.135 33.782 0 18.628 13.97 33.783 31.135 33.783 17.172 0 31.143-15.15 31.143-33.783H128zm-6.17 0c0 14.933-11.203 27.1-24.981 27.1-13.77 0-24.987-12.158-24.987-27.1 0-14.941 11.195-27.099 24.987-27.099 13.778 0 24.982 12.158 24.982 27.1z" /></symbol><symbol class="icon" viewBox="0 0 1024 1024" id="icon-slider"><path d="M951.453 476.844H523.672a131.836 131.836 0 0 0-254.18 0H72.547v70.312h196.945a131.836 131.836 0 0 0 254.18 0h427.781z" /></symbol><symbol viewBox="0 0 128 128" id="icon-star"><path d="m70.66 4.328 14.01 29.693c1.088 2.29 3.177 3.882 5.603 4.25l31.347 4.76c6.087.926 8.528 8.756 4.117 13.247L103.05 79.395c-1.75 1.78-2.544 4.352-2.132 6.867l5.352 32.641c1.043 6.337-5.33 11.182-10.778 8.19l-28.039-15.409a7.13 7.13 0 0 0-6.91 0l-28.039 15.41c-5.448 2.99-11.821-1.854-10.777-8.19l5.352-32.642c.415-2.515-.387-5.088-2.136-6.867L2.264 56.278C-2.146 51.787.286 43.957 6.38 43.031l31.343-4.76c2.419-.368 4.51-1.96 5.595-4.25L57.334 4.328c2.728-5.77 10.605-5.77 13.325 0z" /></symbol><symbol class="icon" viewBox="0 0 1024 1024" id="icon-swagger"><path d="M64 223.995h168.001v47.998c0 26.429 18.879 47.998 41.984 47.998h140.037c23.096 0 41.984-21.57 41.984-47.998v-47.998h504.003a32.005 32.005 0 0 0 0-64.009H455.997v-47.998c0-26.428-18.88-47.997-41.984-47.997H273.985c-23.096 0-41.984 21.569-41.984 47.997v47.998H64a32.005 32.005 0 0 0 0 64.01zM288.005 128h111.997v128H288.005V128zM960 479.995H791.999v-47.997c0-26.373-18.879-47.998-41.984-47.998H609.978c-23.096 0-41.984 21.634-41.984 47.998v47.997H64a32.005 32.005 0 0 0 0 64.01h504.003v47.997c0 26.364 18.88 47.998 41.984 47.998h140.037c23.096 0 41.984-21.634 41.984-47.998v-47.997H960.01a32.005 32.005 0 1 0-.009-64.01zM735.995 576H623.998V448h111.997v128zM960 800.293v-.288H455.997v-47.998c0-26.363-18.88-47.998-41.984-47.998H274.05c-23.105 0-41.984 21.635-41.984 47.998v47.998H64v.288a32.005 32.005 0 0 0 0 64.01c.987 0 1.918-.196 2.886-.289H232v47.998c0 26.363 18.879 47.997 41.984 47.997h140.037c23.096 0 41.984-21.634 41.984-47.997v-47.998h501.108c.968.093 1.9.289 2.895.289a32.005 32.005 0 1 0-.009-64.01zM400.002 896H288.005V768h111.997v128z" /></symbol><symbol class="icon" viewBox="0 0 1024 1024" id="icon-switch"><path d="M692 792H332C182 792 62 672 62 522s120-270 270-270h360c150 0 270 120 270 270 0 147-120 270-270 270zM332 312c-117 0-210 93-210 210s93 210 210 210h360c117 0 210-93 210-210s-93-210-210-210H332z" /><path d="M191 522a150 150 0 1 0 300 0 150 150 0 1 0-300 0Z" /></symbol><symbol class="icon" viewBox="0 0 1084 1024" id="icon-system"><defs><style>@font-face{font-family:rbicon;src:url(chrome-extension://dipiagiiohfljcicegpgffpbnjmgjcnf/fonts/rbicon.woff2) format("woff2");font-weight:400;font-style:normal}</style></defs><path d="M1080.096 434.5c-4.216-23.731-26.924-47.945-50.596-53.185l-17.648-4.096a175.94 175.94 0 0 1-101.613-80.832 177.807 177.807 0 0 1-18.732-129.802l5.541-16.685c7.108-23.13-2.108-54.992-20.6-70.833 0 0-16.624-14.095-63.244-41.2-46.8-26.984-66.858-34.513-66.858-34.513-22.768-8.373-54.632-.362-71.256 17.407l-12.287 13.251a173.47 173.47 0 0 1-120.466 48.066 174.133 174.133 0 0 1-121.008-48.487l-11.745-12.83C393.14 2.992 361.096-4.899 338.268 3.354c0 0-20.359 7.529-67.1 34.513-46.8 27.346-63.244 41.44-63.244 41.44-18.431 15.661-27.647 47.223-20.54 70.593l5.06 16.866a178.048 178.048 0 0 1-18.672 129.62A174.916 174.916 0 0 1 71.496 377.46l-17.045 3.855c-23.31 5.421-46.26 29.334-50.596 53.186 0 0-3.855 21.382-3.855 75.712s3.855 75.713 3.855 75.713C8.07 609.9 30.779 633.872 54.45 639.112l16.624 3.855A174.254 174.254 0 0 1 173.47 724.28c23.31 40.838 28.911 87.338 18.732 129.802l-4.818 16.444c-7.108 23.129 2.108 54.992 20.6 70.833 0 0 16.623 14.095 63.244 41.2 46.8 27.105 66.918 34.513 66.918 34.513 22.708 8.373 54.632.362 71.256-17.407l11.625-12.589a175.097 175.097 0 0 1 242.257.12l11.624 12.65c16.384 17.708 48.428 25.599 71.256 17.347 0 0 20.359-7.53 67.16-34.514 46.74-27.105 63.124-41.2 63.124-41.2 18.491-15.6 27.707-47.463 20.6-70.833l-5.06-17.106A176.723 176.723 0 0 1 910.66 724.4a176.06 176.06 0 0 1 102.396-81.314l16.684-3.855c23.31-5.42 46.26-29.333 50.596-53.185 0 0 3.855-21.383 3.855-75.713-.241-54.33-4.096-75.833-4.096-75.833zm-537.82 293.335c-119.26 0-216.175-97.336-216.175-217.622a216.658 216.658 0 0 1 216.236-217.32c119.2 0 216.115 97.276 216.115 217.561-.24 120.045-96.974 217.32-216.175 217.32z" /></symbol><symbol viewBox="0 0 128 128" id="icon-tab"><path d="M78.921.052H49.08c-1.865 0-3.198 1.599-3.198 3.464v6.661c0 1.865 1.6 3.464 3.198 3.464h29.84c1.865 0 3.198-1.599 3.198-3.464V3.516C82.385 1.65 80.786.052 78.92.052zm45.563 0H94.642c-1.865 0-3.464 1.599-3.464 3.464v6.661c0 1.865 1.599 3.464 3.464 3.464h29.842c1.865-.266 3.464-1.599 3.464-3.464V3.516c0-1.865-1.599-3.464-3.464-3.464zm0 22.382H40.02c-1.866 0-3.464-1.599-3.464-3.464V3.516c0-1.865-1.599-3.464-3.464-3.464H3.516C1.65.052.052 1.651.052 3.516V124.75c0 1.598 1.599 3.197 3.464 3.197h120.968c1.865 0 3.464-1.599 3.464-3.464V25.898c0-1.865-1.599-3.464-3.464-3.464z" /></symbol><symbol viewBox="0 0 128 128" id="icon-table"><path d="M.006.064h127.988v31.104H.006V.064zm0 38.016h38.396v41.472H.006V38.08zm0 48.384h38.396v41.472H.006V86.464zM44.802 38.08h38.396v41.472H44.802V38.08zm0 48.384h38.396v41.472H44.802V86.464zM89.598 38.08h38.396v41.472H89.598zm0 48.384h38.396v41.472H89.598z" /><path d="M.006.064h127.988v31.104H.006V.064zm0 38.016h38.396v41.472H.006V38.08zm0 48.384h38.396v41.472H.006V86.464zM44.802 38.08h38.396v41.472H44.802V38.08zm0 48.384h38.396v41.472H44.802V86.464zM89.598 38.08h38.396v41.472H89.598zm0 48.384h38.396v41.472H89.598z" /></symbol><symbol class="icon" viewBox="0 0 1024 1024" id="icon-textarea"><path d="M896 160H128c-35.2 0-64 28.8-64 64v576c0 35.2 28.8 64 64 64h768c35.2 0 64-28.8 64-64V224c0-35.2-28.8-64-64-64zm0 608c0 16-12.8 32-32 32H160c-19.2 0-32-12.8-32-32V256c0-16 12.8-32 32-32h704c19.2 0 32 12.8 32 32v512z" /><path d="M224 288c-19.2 0-32 12.8-32 32v256c0 16 12.8 32 32 32s32-12.8 32-32V320c0-16-12.8-32-32-32zm608 480c19.2 0 32-12.8 32-32V608L704 768h128z" /></symbol><symbol viewBox="0 0 128 128" id="icon-theme"><path d="M125.5 36.984 95.336 2.83C93.735 1.018 91.565 0 89.3 0c-2.263 0-4.433 1.018-6.033 2.83l-3.786 4.286c-1.6 1.812-3.77 2.83-6.032 2.831H54.553c-2.263 0-4.434-1.018-6.033-2.83L44.734 2.83C43.134 1.018 40.964 0 38.701 0c-2.263 0-4.434 1.018-6.034 2.83L2.5 36.984C.9 38.796 0 41.254 0 43.815c0 2.562.899 5.02 2.5 6.831L14.565 64.31c2.178 2.468 5.367 3.403 8.33 2.444 1.35-.435 2.709.592 2.709 2.18v49.407c0 5.313 3.84 9.66 8.532 9.66h59.726c4.693 0 8.532-4.347 8.532-9.66V68.934c0-1.59 1.36-2.616 2.71-2.181 2.962.96 6.15.024 8.329-2.444L125.5 50.646c1.6-1.811 2.499-4.269 2.499-6.83 0-2.563-.899-5.02-2.5-6.832z" /></symbol><symbol class="icon" viewBox="0 0 1024 1024" id="icon-time-range"><path d="M498.596 482.29H345.42v57.308h210.478V274.197h-57.301V482.29zM577.685 644.985h379.88v57.302h-379.88v-57.302zM577.685 773.765h379.88v57.307h-379.88v-57.307zM577.685 902.55h379.88v57.307h-379.88V902.55zm0 0" /><path d="M102.523 382.29a28.668 28.668 0 0 0 23.367 2.56l190.81-61.886c15.053-4.883 23.298-21.04 18.415-36.09-4.882-15.052-21.04-23.297-36.093-18.415l-123.346 40c15.994-26.117 35.17-50.538 57.37-72.745 73.768-73.767 171.847-114.388 276.169-114.388 104.32 0 202.395 40.622 276.161 114.388S899.77 407.56 899.77 511.882c0 26.428-2.616 52.45-7.71 77.78h58.303c4.465-25.499 6.709-51.47 6.709-77.78 0-60.45-11.846-119.102-35.205-174.336-22.56-53.335-54.85-101.227-95.969-142.35-41.122-41.122-89.017-73.408-142.348-95.968-55.233-23.361-113.89-35.207-174.334-35.207-60.45 0-119.107 11.846-174.337 35.208-53.335 22.56-101.23 54.846-142.35 95.969-23.98 23.98-44.933 50.278-62.727 78.6l-20.738-105.654c-3.043-15.528-18.105-25.642-33.632-22.6-15.528 3.048-25.643 18.105-22.6 33.637l36.103 183.932a28.666 28.666 0 0 0 13.588 19.178zM126.02 587.942H67.768c5.76 33.679 15.368 66.544 28.79 98.278 22.56 53.334 54.85 101.225 95.972 142.348 41.123 41.123 89.014 73.409 142.349 95.969 54.112 22.888 111.518 34.711 170.668 35.182v-57.324c-102.95-.941-199.595-41.446-272.5-114.349-55.501-55.502-92.237-124.77-107.027-200.104zm0 0" /></symbol><symbol class="icon" viewBox="0 0 1024 1024" id="icon-time"><path d="M520 559h204c17.673 0 32 14.327 32 32 0 17.673-14.327 32-32 32H488c-17.673 0-32-14.327-32-32 0-.167.001-.334.004-.5a32.65 32.65 0 0 1-.004-.5V277c0-17.673 14.327-32 32-32 17.673 0 32 14.327 32 32v282zm-8 401C264.576 960 64 759.424 64 512S264.576 64 512 64s448 200.576 448 448-200.576 448-448 448zm0-64c212.077 0 384-171.923 384-384S724.077 128 512 128 128 299.923 128 512s171.923 384 384 384z" /></symbol><symbol class="icon" viewBox="0 0 1024 1024" id="icon-tool"><path d="M898.832 900.518H103.817c-36.003 0-65.364-29.286-65.364-65.314v-554.95c0-36.041 29.362-65.326 65.364-65.326h795.016c36.003 0 65.199 29.285 65.199 65.327v554.95c-.001 36.027-29.197 65.313-65.2 65.313zM103.817 255.593c-13.576 0-24.712 11.086-24.712 24.663v554.95c0 13.575 11.137 24.662 24.712 24.662h795.016c13.577 0 24.547-11.087 24.547-24.663v-554.95c0-13.576-10.971-24.662-24.547-24.662H103.817zm560.53-3.819c-11.162 0-20.333-9.08-20.333-20.332V130.164c0-13.577-11.047-24.624-24.7-24.624H383.183c-13.577 0-24.713 11.046-24.713 24.624v101.278a20.278 20.278 0 0 1-20.332 20.332c-11.201 0-20.32-9.08-20.32-20.332V130.164c0-35.99 29.324-65.276 65.365-65.276h236.133c36.067 0 65.402 29.285 65.402 65.276v101.278c0 11.252-9.08 20.332-20.37 20.332zM413.232 521.726H75.694c-11.163 0-20.333-9.118-20.333-20.357 0-11.252 9.17-20.332 20.333-20.332h337.539c11.278 0 20.32 9.08 20.32 20.332 0 11.239-9.042 20.357-20.32 20.357zm499.661 0H575.368c-11.214 0-20.332-9.118-20.332-20.357 0-11.252 9.118-20.332 20.332-20.332h337.526c11.29 0 20.332 9.08 20.332 20.332 0 11.239-9.042 20.357-20.332 20.357zm-355.33 112.492H445.084c-11.213 0-20.332-9.08-20.332-20.331V445.123c0-11.251 9.12-20.332 20.332-20.332h112.48c11.29 0 20.37 9.08 20.37 20.332v168.764c0 11.25-9.082 20.33-20.372 20.33zm-92.146-40.703h71.827v-128.06h-71.827v128.06z" /></symbol><symbol viewBox="0 0 128 128" id="icon-tree-table"><path d="M44.8 0h79.543C126.78 0 128 1.422 128 4.267v23.466c0 2.845-1.219 4.267-3.657 4.267H44.8c-2.438 0-3.657-1.422-3.657-4.267V4.267C41.143 1.422 42.362 0 44.8 0zm22.857 48h56.686c2.438 0 3.657 1.422 3.657 4.267v23.466c0 2.845-1.219 4.267-3.657 4.267H67.657C65.22 80 64 78.578 64 75.733V52.267C64 49.422 65.219 48 67.657 48zm0 48h56.686c2.438 0 3.657 1.422 3.657 4.267v23.466c0 2.845-1.219 4.267-3.657 4.267H67.657C65.22 128 64 126.578 64 123.733v-23.466C64 97.422 65.219 96 67.657 96zM50.286 68.267c2.02 0 3.657-1.91 3.657-4.267 0-2.356-1.638-4.267-3.657-4.267H17.37V32h6.4c2.02 0 3.658-1.91 3.658-4.267V4.267C27.429 1.91 25.79 0 23.77 0H3.657C1.637 0 0 1.91 0 4.267v23.466C0 30.09 1.637 32 3.657 32h6.4v80c0 2.356 1.638 4.267 3.657 4.267h36.572c2.02 0 3.657-1.91 3.657-4.267 0-2.356-1.638-4.267-3.657-4.267H17.37V68.267h32.915z" /></symbol><symbol viewBox="0 0 128 128" id="icon-tree"><path d="M126.713 90.023c.858.985 1.287 2.134 1.287 3.447v29.553c0 1.423-.429 2.6-1.287 3.53-.858.93-1.907 1.395-3.146 1.395H97.824c-1.145 0-2.146-.465-3.004-1.395-.858-.93-1.287-2.107-1.287-3.53V93.47c0-.875.19-1.696.572-2.462.382-.766.906-1.368 1.573-1.806a3.84 3.84 0 0 1 2.146-.657h9.725V69.007a3.84 3.84 0 0 0-.43-1.806 3.569 3.569 0 0 0-1.143-1.313 2.714 2.714 0 0 0-1.573-.492h-36.47v23.149h9.725c1.144 0 2.145.492 3.004 1.478.858.985 1.287 2.134 1.287 3.447v29.553c0 .876-.191 1.696-.573 2.463-.38.766-.905 1.368-1.573 1.806a3.84 3.84 0 0 1-2.145.656H51.915a3.84 3.84 0 0 1-2.145-.656c-.668-.438-1.216-1.04-1.645-1.806a4.96 4.96 0 0 1-.644-2.463V93.47c0-1.313.43-2.462 1.288-3.447.858-.986 1.907-1.478 3.146-1.478h9.582v-23.15h-37.9c-.953 0-1.74.356-2.359 1.068-.62.711-.93 1.56-.93 2.544v19.538h9.726c1.239 0 2.264.492 3.074 1.478.81.985 1.216 2.134 1.216 3.447v29.553c0 1.423-.405 2.6-1.216 3.53-.81.93-1.835 1.395-3.074 1.395H4.29c-.476 0-.93-.082-1.358-.246a4.1 4.1 0 0 1-1.144-.657 4.658 4.658 0 0 1-.93-1.067 5.186 5.186 0 0 1-.643-1.395 5.566 5.566 0 0 1-.215-1.56V93.47c0-.437.048-.875.143-1.313a3.95 3.95 0 0 1 .429-1.15c.19-.328.429-.656.715-.984.286-.329.572-.602.858-.821.286-.22.62-.383 1.001-.493.382-.11.763-.164 1.144-.164h9.726V61.619c0-.985.31-1.833.93-2.544.619-.712 1.358-1.068 2.216-1.068h44.335V39.62h-9.582c-1.24 0-2.288-.492-3.146-1.477a5.09 5.09 0 0 1-1.287-3.448V5.14c0-1.423.429-2.627 1.287-3.612.858-.985 1.907-1.477 3.146-1.477h25.743c.763 0 1.478.246 2.145.739a5.17 5.17 0 0 1 1.573 1.888c.382.766.573 1.587.573 2.462v29.553c0 1.313-.43 2.463-1.287 3.448-.859.985-1.86 1.477-3.004 1.477h-9.725v18.389h42.762c.954 0 1.74.355 2.36 1.067.62.711.93 1.56.93 2.545v26.925h9.582c1.239 0 2.288.492 3.146 1.478z" /></symbol><symbol class="icon" viewBox="0 0 1024 1024" id="icon-upload"><path d="m530.944 458.24 4.8 3.456L657.92 568.512a32 32 0 0 1-37.44 51.584l-4.672-3.392-69.248-60.544v280.704a32 32 0 0 1-26.24 31.488l-5.76.512a32 32 0 0 1-31.424-26.24l-.512-5.76-.064-280.704-69.12 60.48a32 32 0 0 1-40.96.896l-4.16-3.968a32 32 0 0 1-.96-40.96l4.032-4.16 122.176-106.816a32 32 0 0 1 37.312-3.456zM497.92 128c128.128 0 239.168 82.304 275.52 199.04 123.968 11.264 221.312 113.088 221.312 237.44 0 128.128-103.68 232.96-234.88 238.272h-5.888l-35.52.192a32 32 0 0 1-.192-64l35.264-.128 4.672-.064c96.384-3.84 172.544-80.896 172.544-174.272 0-96.128-80.512-174.464-179.584-174.464h-1.984a32 32 0 0 1-32-25.28C695.872 264.96 604.736 192 497.92 192c-116.096 0-212.48 85.76-223.104 196.48a32 32 0 0 1-28.352 28.8c-83.968 9.152-147.84 78.208-147.84 159.552l.192 7.936c3.84 85.76 77.056 154.112 166.592 154.112h45.632a32 32 0 0 1 0 64h-45.632c-123.392.064-225.088-94.848-230.528-216l-.192-9.28c0-106.88 76.352-197.184 179.968-219.904C239.488 226.112 357.76 128 497.856 128z" /></symbol><symbol viewBox="0 0 130 130" id="icon-user"><path d="M63.444 64.996c20.633 0 37.359-14.308 37.359-31.953 0-17.649-16.726-31.952-37.359-31.952-20.631 0-37.36 14.303-37.358 31.952 0 17.645 16.727 31.953 37.359 31.953zM80.57 75.65H49.434c-26.652 0-48.26 18.477-48.26 41.27v2.664c0 9.316 21.608 9.325 48.26 9.325H80.57c26.649 0 48.256-.344 48.256-9.325v-2.663c0-22.794-21.605-41.271-48.256-41.271z" stroke="currentColor" /></symbol><symbol class="icon" viewBox="0 0 1024 1024" id="icon-validCode"><path d="M513.3 958.5c-142.2 0-397.9-222.1-401.6-440.5V268c1.7-39.6 31.7-72.3 71.1-77.3 49-4.6 97.1-16.5 142.7-35.3 47.8-14 91.9-38.3 129.4-71.1 30.3-24.4 72.9-26.3 105.3-4.6 39.9 30.7 83.8 55.9 130.5 74.6 48.6 14.7 98.2 25.9 148.4 33.7 38.5 7.6 67.1 40.3 69.5 79.5 3.3 84.9 2.5 169.9-2.6 254.7-33.7 281.6-253.7 436.4-392.7 436.3zm-.1-813.7c-7.2-.2-14.3 2-20 6.4-39.7 35.2-86.8 61.1-137.7 75.7-46.8 19.2-96.2 31-146.6 35.2-11 3.2-18.8 13-19.5 24.4v230.1c3.5 180.3 223.3 361 323.9 361s287.3-120.2 317.6-360.5c7.3-142.7 0-228.6 0-229.6-1.3-13.3-11-24.3-24-27.3-49.6-7.7-98.6-19-146.5-33.7-46.3-19.5-89.7-45.3-129-76.7-5.8-3.8-12.7-5.5-19.5-4.9l1.3-.1z" fill="#C6CCDA" /><path d="M750.1 428 490.7 673.2c-11.7 11.1-29.5 12.9-43.1 4.2l-6.8-5.8-141.2-149.4c-9.3-9.3-12.7-22.9-9-35.5 3.8-12.6 14.1-22.1 27-24.8 12.9-2.7 26.1 1.9 34.6 11.9L469 597.5l233.7-221c14.6-12.8 36.8-11.6 49.9 2.7 13.2 14.2 11.5 35.3-2.5 48.8" fill="#C6CCDA" /></symbol><symbol viewBox="0 0 128 110" id="icon-wechat"><path d="M86.635 33.334c1.467 0 2.917.113 4.358.283C87.078 14.392 67.58.111 45.321.111 20.44.111.055 17.987.055 40.687c0 13.104 6.781 23.863 18.115 32.209l-4.527 14.352 15.82-8.364c5.666 1.182 10.207 2.395 15.858 2.395 1.42 0 2.829-.073 4.227-.189-.886-3.19-1.398-6.53-1.398-9.996 0-20.845 16.98-37.76 38.485-37.76zm-24.34-12.936c3.407 0 5.665 2.363 5.665 5.954 0 3.576-2.258 5.97-5.666 5.97-3.392 0-6.795-2.395-6.795-5.97 0-3.591 3.403-5.954 6.795-5.954zM30.616 32.323c-3.393 0-6.818-2.395-6.818-5.971 0-3.591 3.425-5.954 6.818-5.954 3.392 0 5.65 2.363 5.65 5.954 0 3.576-2.258 5.97-5.65 5.97z" /><path d="M127.945 70.52c0-19.075-18.108-34.623-38.448-34.623-21.537 0-38.5 15.548-38.5 34.623 0 19.108 16.963 34.622 38.5 34.622 4.508 0 9.058-1.2 13.584-2.395l12.414 7.167-3.404-11.923c9.087-7.184 15.854-16.712 15.854-27.471zm-50.928-5.97c-2.254 0-4.53-2.362-4.53-4.773 0-2.378 2.276-4.771 4.53-4.771 3.422 0 5.665 2.393 5.665 4.771 0 2.41-2.243 4.773-5.665 4.773zm24.897 0c-2.24 0-4.498-2.362-4.498-4.773 0-2.378 2.258-4.771 4.498-4.771 3.392 0 5.665 2.393 5.665 4.771 0 2.41-2.273 4.773-5.665 4.773z" /></symbol><symbol viewBox="0 0 128 128" id="icon-zip"><path d="M78.527 116.793c.178.008.348.024.527.024h40.233c4.711-.005 8.53-3.677 8.534-8.21V18.895c-.004-4.532-3.823-8.204-8.534-8.209H79.054c-.179 0-.353.016-.527.024V0L0 10.082v107.406l78.527 10.342v-11.037zm0-101.362c.174-.024.348-.052.527-.052h40.233c2.018 0 3.659 1.578 3.659 3.52v89.713c-.003 1.942-1.64 3.517-3.659 3.519H79.054c-.179 0-.353-.028-.527-.052V15.431zM30.262 75.757l-18.721-.46V72.37l11.3-16.673v-.148l-10.266.164v-4.51l17.504-.44v3.264L18.696 70.76v.144l11.566.176v4.678zm9.419.231-5.823-.144V50.671l5.823-.144v25.461zm22.255-11.632c-2.168 1.922-5.353 2.76-9.02 2.736-.702.004-1.402-.04-2.097-.131v9.303l-5.997-.148V50.743c1.852-.352 4.473-.647 8.218-.743 3.838-.096 6.608.539 8.48 1.913 1.807 1.306 3.032 3.5 3.032 6.112s-.926 4.833-2.612 6.331h-.004zM53.36 54.45c-.856-.01-1.71.083-2.541.275v7.682c.523.116 1.167.152 2.06.152 3.301-.004 5.36-1.614 5.36-4.314 0-2.425-1.772-3.843-4.875-3.791l-.004-.004zm39.847-37.066h9.564v3.795h-9.564v-3.795zm-9.568 5.68h9.564v3.8h-9.564v-3.8zm9.568 6.216h9.564v3.799h-9.564V29.28zm0 12h9.564v3.794h-9.564V41.28zm-9.568-6.096h9.564v3.795h-9.564v-3.795zm9.472 47.064c2.512 0 4.921-.96 6.697-2.67 1.776-1.708 2.773-4.026 2.772-6.442l-1.748-15.263c0-5.033-2.492-9.112-7.725-9.112-5.232 0-7.72 4.079-7.72 9.112l-1.752 15.263c-.001 2.417.996 4.735 2.773 6.444 1.777 1.71 4.187 2.669 6.7 2.668h.003zm-3.135-16.75h6.27v12.743h-6.27V65.5z" /></symbol>',e.insertBefore(t,e.lastChild)};"loading"===document.readyState?document.addEventListener("DOMContentLoaded",e):e()}const A=(e,t)=>{const r=e.__vccOpts||e;for(const[n,o]of t)r[n]=o;return r},_={class:"dict-tag-container"},N=["index"],k=A({__name:"index",props:{options:{type:Array,default:null},value:[Number,String,Array]},setup(e){const r=e,n=t.computed(()=>null!==r.value&&void 0!==r.value?Array.isArray(r.value)?r.value:[String(r.value)]:[]);return(r,o)=>{const i=t.resolveComponent("el-tag");return t.openBlock(),t.createElementBlock("div",_,[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(e.options,(e,r)=>(t.openBlock(),t.createElementBlock(t.Fragment,null,[t.unref(n).includes(e.value)?(t.openBlock(),t.createElementBlock(t.Fragment,{key:0},["default"==e.elTagType||""==e.elTagType?(t.openBlock(),t.createElementBlock("span",{key:e.value,index:r,class:t.normalizeClass(e.elTagClass)},t.toDisplayString(e.label),11,N)):(t.openBlock(),t.createBlock(i,{"disable-transitions":!0,key:e.value+"",index:r,type:"primary"===e.elTagType?"":e.elTagType,class:t.normalizeClass(e.elTagClass)},{default:t.withCtx(()=>[t.createTextVNode(t.toDisplayString(e.label),1)]),_:2},1032,["index","type","class"]))],64)):t.createCommentVNode("",!0)],64))),256))])}}},[["__scopeId","data-v-9371585e"]]),R={class:"el-tree-select"},x=A({__name:"index",props:{objMap:{type:Object,default:()=>({value:"id",label:"label",children:"children"})},accordion:{type:Boolean,default:()=>!1},value:{type:[String,Number],default:""},options:{type:Array,default:()=>[]},placeholder:{type:String,default:""}},emits:["update:value"],setup(e,{emit:r}){const n=e,{proxy:o}=getCurrentInstance(),i=computed({get:()=>n.value,set:e=>{r("update:value",e)}}),a=ref(""),s=ref([]);function l(){nextTick(()=>{const e=i.value;if(null!=e){const t=o.$refs.selectTree.getNode(e);t&&(a.value=t.data[n.objMap.label],o.$refs.selectTree.setCurrentKey(e),s.value=[e])}else p()})}function c(e){a.value=e[n.objMap.label],i.value=e[n.objMap.value],s.value=[],o.$refs.treeSelect.blur(),u("")}function u(e){o.$refs.selectTree.filter(e)}function d(e,t){return!e||-1!==t[n.objMap.label].indexOf(e)}function p(){a.value="",i.value="",s.value=[],document.querySelectorAll("#tree-option .el-tree-node").forEach(e=>e.classList.remove("is-current"))}return onMounted(()=>{l()}),watch(i,()=>{l()}),(r,n)=>{const o=t.resolveComponent("el-tree"),l=t.resolveComponent("el-option"),h=t.resolveComponent("el-select");return t.openBlock(),t.createElementBlock("div",R,[t.createVNode(h,{style:{width:"100%"},modelValue:t.unref(i),"onUpdate:modelValue":n[0]||(n[0]=e=>t.isRef(i)?i.value=e:null),ref:"treeSelect",filterable:!0,clearable:!0,onClear:p,"filter-method":u,placeholder:e.placeholder},{default:t.withCtx(()=>[t.createVNode(l,{value:t.unref(i),label:t.unref(a)},{default:t.withCtx(()=>[t.createVNode(o,{id:"tree-option",ref:"selectTree",accordion:e.accordion,data:e.options,props:e.objMap,"node-key":e.objMap.value,"expand-on-click-node":!1,"default-expanded-keys":t.unref(s),"filter-node-method":d,onNodeClick:c},null,8,["accordion","data","props","node-key","default-expanded-keys"])]),_:1},8,["value","label"])]),_:1},8,["modelValue","placeholder"])])}}},[["__scopeId","data-v-03df4f36"]]),I=["xlink:href","fill"],D={__name:"index",props:{iconClass:{type:[String,null],required:!0},className:{type:String,default:""},color:{type:String,default:""}},setup(e){const r=e,n=t.computed(()=>`#icon-${r.iconClass}`),o=t.computed(()=>r.className?`svg-icon ${r.className}`:"svg-icon");return(r,i)=>(t.openBlock(),t.createElementBlock("svg",{class:t.normalizeClass(t.unref(o)),"aria-hidden":"true"},[t.createElementVNode("use",{"xlink:href":t.unref(n),fill:e.color},null,8,I)],2))}},O={class:"upload-file"},M={class:"el-upload__tip"},U={style:{color:"#f56c6c"}},V={style:{color:"#f56c6c"}},H=["title"],P={class:"ele-upload-list__item-content-action"},z={style:{width:"100%",height:"100%",overflow:"auto"}},B=A({__name:"index",props:{modelValue:[String,Object,Array],limit:{type:Number,default:5},fileSize:{type:Number,default:10},fileType:{type:Array,default:()=>["docx","xlsx","doc","xls","ppt","txt","pdf","png","jpg","jpeg","pptx","zip"]},isShowTip:{type:Boolean,default:!0},showFiles:{type:Boolean,default:!0},disabled:{type:Boolean,default:!1},uploadFileUrl:{type:String,default:""},headers:{type:Object,default:()=>({})},httpRequest:{type:Function,default:void 0},baseUrl:{type:String,default:""},responseConfig:{type:Object,default:()=>({code:"code",fileName:"fileName",fileUrl:"url",msg:"msg"})},successCode:{type:Number,default:200}},emits:["update:modelValue","delete","success"],setup(e,{emit:r}){const n=e,o=(e,t="")=>e?/^(https?:|mailto:|tel:)/.test(e)?e:t?t+e:e:e,s=t.ref(0),l=t.ref([]),c=t.ref([]),u=t.ref(!1),d=t.ref(""),p=t.ref(""),h=t.ref(null),f=t.ref(null),v=t.computed(()=>n.isShowTip&&(n.fileType||n.fileSize));t.watch(()=>n.modelValue,e=>{if(e){let t=1;const r=Array.isArray(e)?e:n.modelValue.split(",");c.value=r.map(e=>("string"==typeof e&&(e={name:o(e,n.baseUrl),url:o(e,n.baseUrl)}),e.uid=e.uid||(new Date).getTime()+t++,e))}else c.value=[]},{deep:!0,immediate:!0});const C=async e=>{if(n.fileType&&n.fileType.length){const t=e.name.split("."),r=t[t.length-1];if(!(n.fileType.indexOf(r)>=0))return a.ElMessage.error(`文件格式不正确, 请上传${n.fileType.join("/")}格式文件!`),!1}if(n.fileSize){if(!(e.size/1024/1024<n.fileSize))return a.ElMessage.error(`上传文件大小不能超过 ${n.fileSize} MB!`),!1}return h.value=a.ElLoading.service({text:"正在上传文件,请稍候..."}),s.value++,!0},S=()=>{a.ElMessage.error(`上传文件数量不能超过 ${n.limit} 个!`)},T=e=>{a.ElMessage.error("上传文件失败,请重试"),h.value&&h.value.close()},b=(e,t)=>{e[n.responseConfig.code]===n.successCode?(r("success",e),l.value.push({name:e[n.responseConfig.fileName],url:e[n.responseConfig.fileUrl]}),w()):(s.value--,h.value&&h.value.close(),a.ElMessage.error(e[n.responseConfig.msg]),f.value.handleRemove(t),w())},w=()=>{s.value>0&&l.value.length===s.value&&(c.value=c.value.concat(l.value),l.value=[],s.value=0,r("update:modelValue",A(c.value)),h.value&&h.value.close())},E=e=>e.lastIndexOf("/")>-1?decodeURIComponent(e.slice(e.lastIndexOf("/")+1)):e,A=(e,t=",")=>e.length?e.map(e=>e.url).join(t):"",_=()=>{u.value=!1,d.value="",p.value=""};return(n,o)=>{const s=t.resolveComponent("el-button"),l=t.resolveComponent("el-upload"),h=t.resolveComponent("el-icon"),w=t.resolveComponent("el-image"),N=t.resolveComponent("el-dialog");return t.openBlock(),t.createElementBlock("div",O,[e.disabled?t.createCommentVNode("",!0):(t.openBlock(),t.createBlock(l,t.mergeProps({key:0,multiple:"",action:e.uploadFileUrl,"http-request":e.httpRequest,"before-upload":C,"file-list":c.value,limit:e.limit,"on-error":T,"on-exceed":S,"on-success":b,"show-file-list":!1,headers:e.headers,class:"upload-file-uploader",ref_key:"fileUpload",ref:f},n.$attrs),t.createSlots({default:t.withCtx(()=>[t.renderSlot(n.$slots,"button",{},()=>[t.createVNode(s,{size:"small",type:"primary"},{default:t.withCtx(()=>[t.createTextVNode("选取文件")]),_:1})],!0)]),_:2},[t.unref(v)?{name:"tip",fn:t.withCtx(()=>[t.createElementVNode("div",M,[t.createTextVNode(" 请上传 "),e.fileSize?(t.openBlock(),t.createElementBlock(t.Fragment,{key:0},[t.createTextVNode(" 大小不超过 "),t.createElementVNode("b",U,t.toDisplayString(e.fileSize)+"MB",1)],64)):t.createCommentVNode("",!0),e.fileType?(t.openBlock(),t.createElementBlock(t.Fragment,{key:1},[t.createTextVNode(" 格式为 "),t.createElementVNode("b",V,t.toDisplayString(e.fileType.join("/")),1)],64)):t.createCommentVNode("",!0),t.createTextVNode(" 的文件 ")])]),key:"0"}:void 0]),1040,["action","http-request","file-list","limit","headers"])),e.showFiles?(t.openBlock(),t.createBlock(t.TransitionGroup,{key:1,class:"upload-file-list el-upload-list el-upload-list--text",name:"el-fade-in-linear",tag:"ul"},{default:t.withCtx(()=>[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(c.value,(n,o)=>(t.openBlock(),t.createElementBlock("li",{key:n.url,class:"el-upload-list__item ele-upload-list__item-content"},[t.createElementVNode("div",{title:E(n.name),class:"ele-upload-list__item-content-name"},t.toDisplayString(E(n.name)),9,H),t.createElementVNode("div",P,[t.createVNode(h,{title:"预览",class:"el-icon-view-icon",onClick:e=>(e=>{const t=E(e.name).split(".").pop().toLowerCase();switch(t){case"pdf":p.value="pdf";break;case"docx":p.value="docx";break;case"xlsx":p.value="xlsx";break;case"jpg":case"jpeg":case"png":case"gif":p.value="image";break;default:return void a.ElMessage.error(`暂不支持${t}文件类型的在线预览,请下载后查看!`)}d.value=e.url,u.value=!0})(n)},{default:t.withCtx(()=>[t.createVNode(t.unref(i.View))]),_:2},1032,["onClick"]),t.createVNode(h,{title:"下载",class:"el-icon-download-icon",onClick:e=>(e=>{try{const t=E(e.name),r=t.split(".").pop().toLowerCase(),n=document.createElement("a");n.style.display="none",n.target="pdf"===r?"_blank":"_self",n.href=e.url,n.download=t,document.body.appendChild(n),n.click(),document.body.removeChild(n),a.ElMessage.success("文件下载成功")}catch(xr){a.ElMessage.error("文件下载失败,请重试")}})(n)},{default:t.withCtx(()=>[t.createVNode(t.unref(i.Download))]),_:2},1032,["onClick"]),e.disabled?t.createCommentVNode("",!0):(t.openBlock(),t.createBlock(h,{key:0,title:"删除",class:"el-icon-delete-icon",onClick:e=>(e=>{r("delete",c.value.find((t,r)=>r===e)),c.value.splice(e,1),r("update:modelValue",A(c.value))})(o)},{default:t.withCtx(()=>[t.createVNode(t.unref(i.Delete))]),_:2},1032,["onClick"]))])]))),128))]),_:1})):t.createCommentVNode("",!0),t.createVNode(N,{modelValue:u.value,"onUpdate:modelValue":o[0]||(o[0]=e=>u.value=e),"append-to-body":"",class:"previewDialog",title:"文件预览",fullscreen:"","before-close":_},{default:t.withCtx(()=>[t.createElementVNode("div",z,["pdf"===p.value?(t.openBlock(),t.createBlock(t.unref(m.default),{key:0,src:d.value},null,8,["src"])):t.createCommentVNode("",!0),"docx"===p.value?(t.openBlock(),t.createBlock(t.unref(g.default),{key:1,src:d.value},null,8,["src"])):t.createCommentVNode("",!0),"xlsx"===p.value?(t.openBlock(),t.createBlock(t.unref(y.default),{key:2,src:d.value},null,8,["src"])):t.createCommentVNode("",!0),"image"===p.value?(t.openBlock(),t.createBlock(w,{key:3,src:d.value,style:{width:"100%",height:"99%"},fit:"contain"},null,8,["src"])):t.createCommentVNode("",!0)])]),_:1},8,["modelValue"])])}}},[["__scopeId","data-v-f55d9716"]]),L={class:"component-upload-image"},q={key:0,class:"el-upload__tip"},j={style:{color:"#f56c6c"}},F={style:{color:"#f56c6c"}},G=["src"],K=A({__name:"index",props:{modelValue:{type:[String,Object,Array],default:()=>[]},limit:{type:Number,default:5},fileSize:{type:Number,default:5},fileType:{type:Array,default:()=>["png","jpg","jpeg"]},isShowTip:{type:Boolean,default:!0},disabled:{type:Boolean,default:!1},width:{type:[Number,String],default:100},height:{type:[Number,String],default:100},uploadImgUrl:{type:String,default:""},headers:{type:Object,default:()=>({})},httpRequest:{type:Function,default:void 0},responseConfig:{type:Object,default:()=>({code:"code",fileName:"fileName",fileUrl:"url",msg:"msg"})},baseUrl:{type:String,default:""},successCode:{type:Number,default:200}},emits:["update:modelValue","delete","success"],setup(e,{emit:r}){const n=e,o=(e,t="")=>e?/^(https?:|mailto:|tel:)/.test(e)?e:t?t+e:e:e,s=t.ref(0),l=t.ref([]),c=t.ref(""),u=t.ref(!1),d=t.ref([]),p=t.ref(null),h=t.ref(null),f=t.computed(()=>(null==n?void 0:n.isShowTip)&&((null==n?void 0:n.fileType)||(null==n?void 0:n.fileSize))),v=t.computed(()=>"number"==typeof(null==n?void 0:n.width)?`${n.width}px`:n.width),m=t.computed(()=>"number"==typeof(null==n?void 0:n.height)?`${n.height}px`:n.height),g=t.computed(()=>"number"==typeof(null==n?void 0:n.height)?`${n.height}px`:n.height);t.watch(()=>n.modelValue,e=>{if(e){const t=Array.isArray(e)?e:n.modelValue.split(",");d.value=t.map(e=>("string"==typeof e&&(e={name:o(e,n.baseUrl),url:o(e,n.baseUrl)}),e))}else d.value=[]},{deep:!0,immediate:!0});const y=()=>{t.nextTick(()=>{var e;const t=null==(e=p.value)?void 0:e.$el;if(!t)return;t.querySelectorAll(".el-upload--picture-card").forEach(e=>{e.style.width=v.value,e.style.height=m.value,e.style.lineHeight=g.value});t.querySelectorAll(".el-upload-list__item").forEach(e=>{e.style.width=v.value,e.style.height=m.value})})},C=async e=>{let t=!1;if(n.fileType&&n.fileType.length){let r="";e.name&&e.name.lastIndexOf(".")>-1&&(r=e.name.slice(e.name.lastIndexOf(".")+1)),t=n.fileType.some(t=>!!(e.type&&e.type.indexOf(t)>-1)||!!(r&&r.indexOf(t)>-1))}else t=e.type&&e.type.indexOf("image")>-1;if(!t)return a.ElMessage.error(`文件格式不正确, 请上传${n.fileType.join("/")}图片格式文件!`),!1;if(n.fileSize){if(!(e.size/1024/1024<n.fileSize))return a.ElMessage.error(`上传头像图片大小不能超过 ${n.fileSize} MB!`),!1}return h.value=a.ElLoading.service({text:"正在上传图片,请稍候..."}),s.value++,!0},S=()=>{a.ElMessage.error(`上传图片数量不能超过 ${n.limit} 个!`)},T=(e,t)=>{e[n.responseConfig.code]===n.successCode?(r("success",e),l.value.push({name:e[n.responseConfig.fileName],url:e[n.responseConfig.fileUrl]}),E()):(s.value--,h.value&&h.value.close(),a.ElMessage.error(e[n.responseConfig.msg]),fileUpload.value.handleRemove(t),E())},b=e=>{r("delete",e),r("update:modelValue",_(d.value))},w=()=>{a.ElMessage.error("上传图片失败,请重试"),h.value&&h.value.close()},E=()=>{s.value>0&&l.value.length===s.value&&(d.value=d.value.concat(l.value),l.value=[],s.value=0,r("update:modelValue",_(d.value)),h.value&&h.value.close())},A=e=>{c.value=e.url,u.value=!0},_=(e,t=",")=>e.length?e.map(e=>e.url).join(t):"";return t.onMounted(()=>{y()}),t.onUpdated(()=>{y()}),(r,o)=>{const a=t.resolveComponent("el-icon"),s=t.resolveComponent("el-upload"),l=t.resolveComponent("el-dialog");return t.openBlock(),t.createElementBlock("div",L,[t.createVNode(s,{disabled:n.disabled,multiple:"",action:e.uploadImgUrl,"list-type":"picture-card","on-success":T,"before-upload":C,limit:n.limit,"on-error":w,"on-exceed":S,ref_key:"imageUpload",ref:p,"http-request":e.httpRequest,"on-remove":b,"show-file-list":!0,headers:e.headers,"file-list":d.value,"on-preview":A,class:t.normalizeClass({hide:d.value.length>=n.limit})},{default:t.withCtx(()=>[t.createVNode(a,null,{default:t.withCtx(()=>[t.createVNode(t.unref(i.Plus))]),_:1})]),_:1},8,["disabled","action","limit","http-request","headers","file-list","class"]),t.unref(f)?(t.openBlock(),t.createElementBlock("div",q,[t.createTextVNode(" 请上传 "),n.fileSize?(t.openBlock(),t.createElementBlock(t.Fragment,{key:0},[t.createTextVNode(" 大小不超过 "),t.createElementVNode("b",j,t.toDisplayString(n.fileSize)+"MB",1)],64)):t.createCommentVNode("",!0),n.fileType?(t.openBlock(),t.createElementBlock(t.Fragment,{key:1},[t.createTextVNode(" 格式为 "),t.createElementVNode("b",F,t.toDisplayString(n.fileType.join("/")),1)],64)):t.createCommentVNode("",!0),t.createTextVNode(" 的文件 ")])):t.createCommentVNode("",!0),t.createVNode(l,{modelValue:u.value,"onUpdate:modelValue":o[0]||(o[0]=e=>u.value=e),title:"预览",width:"800","append-to-body":""},{default:t.withCtx(()=>[t.createElementVNode("img",{src:c.value,style:{display:"block","max-width":"100%",margin:"0 auto"}},null,8,G)]),_:1},8,["modelValue"])])}}},[["__scopeId","data-v-ddc0faf6"]]),$={class:"image-slot"},W=A({__name:"index",props:{enableDelete:{type:Boolean,default:!1},value:{type:String,default:""},src:{type:String,default:""},width:{type:[Number,String],default:"50px"},height:{type:[Number,String],default:"50px"},baseUrl:{type:String,default:""}},emits:["input","update:modelValue"],setup(e,{emit:r}){const n=e,o=(e,t="")=>e?/^(https?:|mailto:|tel:)/.test(e)?e:t?t+e:e:e,a=t.ref(null),s=t.computed(()=>{const e=n.value||n.src;if(!e)return;let t=e.split(",")[0];return o(t,n.baseUrl)}),l=t.computed(()=>{const e=n.value||n.src;if(!e)return[];let t=e.split(","),r=[];return t.forEach(e=>r.push(o(e,n.baseUrl))),r}),c=t.computed(()=>"string"==typeof n.width?n.width:`${n.width}px`),u=t.computed(()=>"string"==typeof n.height?n.height:`${n.height}px`),d=()=>{n.enableDelete&&t.nextTick(()=>{let e=document.getElementsByClassName("el-image-viewer__actions__inner"),t=document.createElement("i");t.setAttribute("class","el-icon-delete"),t.addEventListener("click",p),e[0].appendChild(t),e.length>0&&(a.value=e[0])})},p=()=>{const e=[...l.value];e.splice(l.value.indexOf(s.value),1),0===e.length&&document.querySelector(".el-image-viewer__close").click(),r("input",e.join(",")),r("update:modelValue",e.join(","))};return(e,r)=>{const n=t.resolveComponent("el-icon"),o=t.resolveComponent("el-image"),a=t.resolveComponent("el-badge");return t.openBlock(),t.createBlock(a,{hidden:t.unref(l).length<=1,value:t.unref(l).length,class:"item",type:"primary"},{default:t.withCtx(()=>[t.createVNode(o,{"preview-teleported":"",onClick:t.withModifiers(d,["stop","prevent"]),src:`${t.unref(s)}`,fit:"cover",style:t.normalizeStyle(`width:${t.unref(c)};height:${t.unref(u)};`),"preview-src-list":t.unref(l)},{error:t.withCtx(()=>[t.createElementVNode("div",$,[t.createVNode(n,{class:"el-icon-picture-outline"},{default:t.withCtx(()=>[t.createVNode(t.unref(i.Picture))]),_:1})])]),_:1},8,["onClick","src","style","preview-src-list"])]),_:1},8,["hidden","value"])}}},[["__scopeId","data-v-bebc33d5"]]),J=["404","bug","build","button","cascader","chart","checkbox","clipboard","code","color","component","dashboard","date","date-range","dict","documentation","download","drag","druid","edit","education","email","example","excel","exit-fullscreen","eye","eye-open","form","fullscreen","github","guide","icon","input","international","job","language","link","list","lock","log","logininfor","message","money","monitor","nested","number","online","password","pdf","people","peoples","phone","post","qq","question","radio","rate","redis","redis-list","row","search","select","server","shopping","size","skill","slider","star","swagger","switch","system","tab","table","textarea","theme","time","time-range","tool","tree","tree-table","upload","user","validCode","wechat","zip"],Y={class:"icon-body"},Q=(e=>(t.pushScopeId("data-v-7611a463"),e=e(),t.popScopeId(),e))(()=>t.createElementVNode("i",{class:"el-icon-search el-input__icon"},null,-1)),Z={class:"icon-list"},X=["onClick"],ee=A({__name:"index",emits:["selected"],setup(e,{expose:r,emit:n}){const o=t.ref(""),i=t.ref(J);function a(){i.value=J,o.value&&(i.value=J.filter(e=>-1!==e.indexOf(o.value)))}return r({reset:function(){o.value="",i.value=J}}),(e,r)=>{const s=t.resolveComponent("el-input");return t.openBlock(),t.createElementBlock("div",Y,[t.createVNode(s,{modelValue:o.value,"onUpdate:modelValue":r[0]||(r[0]=e=>o.value=e),style:{position:"relative"},clearable:"",placeholder:"请输入图标名称",onClear:a,onInput:a},{suffix:t.withCtx(()=>[Q]),_:1},8,["modelValue"]),t.createElementVNode("div",Z,[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(i.value,(e,r)=>(t.openBlock(),t.createElementBlock("div",{key:r,onClick:t=>(n("selected",e),void document.body.click())},[t.createVNode(D,{"icon-class":e,style:{height:"30px",width:"16px"}},null,8,["icon-class"]),t.createElementVNode("span",null,t.toDisplayString(e),1)],8,X))),128))])])}}},[["__scopeId","data-v-7611a463"]]);function te(){const e=t.ref(!1),r=()=>{const e=navigator.userAgent.toLowerCase(),t=/android|webos|iphone|ipad|ipod|blackberry|iemobile|opera mini/i.test(e),r=window.innerWidth<=768;return t||r},n=()=>{e.value=r()},o=()=>{n()};return t.onBeforeMount(()=>{n(),window.addEventListener("resize",o)}),t.onUnmounted(()=>{window.removeEventListener("resize",o)}),{isMobile:e,checkIsMobile:r}}const re={key:0,class:"search-container"},ne={key:1,class:"custom-drawer"},oe=A({__name:"index",props:{visible:{type:Boolean,default:!0}},emits:["update:visible"],setup(e,{emit:r}){const{isMobile:n}=te(),o=()=>{r("update:visible",!1)};return(r,i)=>{const a=t.resolveComponent("el-card"),s=t.resolveComponent("el-drawer");return t.unref(n)?(t.openBlock(),t.createElementBlock("div",ne,[t.createVNode(s,{"model-value":e.visible,title:"筛选条件",direction:"ttb",onClose:o},{default:t.withCtx(()=>[t.renderSlot(r.$slots,"default",{},void 0,!0)]),_:3},8,["model-value"])])):t.withDirectives((t.openBlock(),t.createElementBlock("div",re,[t.createVNode(a,null,{default:t.withCtx(()=>[t.renderSlot(r.$slots,"default",{},void 0,!0)]),_:3})],512)),[[t.vShow,e.visible]])}}},[["__scopeId","data-v-6e30b57f"]]),ie={__name:"index",props:{modelValue:{type:Array,default:()=>[]},disabledDate:{type:Function,default:null},valueFormat:{type:String,default:"YYYY-MM-DD"},clearable:{type:Boolean,default:!0}},emits:["update:modelValue","change"],setup(e,{emit:r}){const n=e,{isMobile:o}=te(),i=[{text:"过去7天",value:()=>{const e=new Date,t=new Date(e.getFullYear(),e.getMonth(),e.getDate(),23,59,59);return[new Date(e.getFullYear(),e.getMonth(),e.getDate()-6,0,0,0),t]}},{text:"本周",value:()=>{const e=new Date,t=new Date(e.getFullYear(),e.getMonth(),e.getDate(),23,59,59),r=e.getDay(),n=0===r?6:r-1;return[new Date(e.getFullYear(),e.getMonth(),e.getDate()-n,0,0,0),t]}},{text:"本月",value:()=>{const e=new Date,t=new Date(e.getFullYear(),e.getMonth(),e.getDate(),23,59,59);return[new Date(e.getFullYear(),e.getMonth(),1,0,0,0),t]}},{text:"本年",value:()=>{const e=new Date,t=new Date(e.getFullYear(),e.getMonth(),e.getDate(),23,59,59);return[new Date(e.getFullYear(),0,1,0,0,0),t]}},{text:"去年",value:()=>{const e=(new Date).getFullYear()-1;return[new Date(e,0,1,0,0,0),new Date(e,11,31,23,59,59)]}}],a=t.computed({get:()=>n.modelValue,set(e){r("update:modelValue",e)}}),s=e=>{r("change",e)};return(r,n)=>{const l=t.resolveComponent("el-date-picker");return t.openBlock(),t.createBlock(l,t.mergeProps({size:t.unref(o)?"small":"",clearable:e.clearable,modelValue:t.unref(a),"onUpdate:modelValue":n[0]||(n[0]=e=>t.isRef(a)?a.value=e:null),type:"daterange","value-format":e.valueFormat,"disabled-date":e.disabledDate,"range-separator":"到",shortcuts:i,"start-placeholder":"开始时间","end-placeholder":"结束时间",onChange:s},r.$attrs),null,16,["size","clearable","modelValue","value-format","disabled-date"])}}},ae={class:"table-container"},se={__name:"index",props:{request:{type:Function,default:()=>{}},rowKey:{type:String,default:""},treeProps:{type:Object,default:()=>({hasChildren:"hasChildren",children:"children"})},responseConfig:{type:Object,default:()=>({total:"total",list:"rows"})},multiple:{type:Boolean,default:!0},showSummary:{type:Boolean,default:!1},summaryMethod:{type:Function},selectable:{type:Function},showSelect:{type:Boolean,default:!0},showIndex:{type:Boolean,default:!0},reserveSelection:{type:Boolean,default:!1},requestParams:{type:Object,default:()=>{}},customIndex:{type:Function},showPagination:{type:Boolean,default:!0},spanMethod:{type:[Function,null],default:null},handleList:{type:[Function,null],default:null},selected:{type:Array,default:()=>[]},isMountedRequest:{type:Boolean,default:!0},height:{type:String,default:"100%"}},emits:["selectionChange","sortChange","requestSuccess","cellEnter","cellLeave"],setup(e,{expose:r,emit:n}){const o=e,{isMobile:i}=te(),a=t.ref([]),s=t.ref([]),l=t.ref(!1),c={total:"total",list:"rows"},u=t.computed(()=>({...c,...o.responseConfig})),d=t.reactive({pageNum:1,pageSize:20}),p=t.ref(0),h=t.ref(null),f=t.ref([]),v=()=>{var e;const t=(null==(e=h.value)?void 0:e.selection)||[];t.forEach(e=>{var t;f.value.some(t=>t[o.rowKey]==e[o.rowKey])||null==(t=h.value)||t.toggleRowSelection(e,!1)}),f.value.forEach(e=>{var r,n;if(!t.some(t=>t[o.rowKey]==e[o.rowKey])){const t=a.value.find(t=>t[o.rowKey]==e[o.rowKey]);t?null==(r=h.value)||r.toggleRowSelection(t,!0):null==(n=h.value)||n.toggleRowSelection(e,!0)}})};t.watch(()=>a.value,()=>{v()}),t.watch(()=>o.selected,(e,t)=>{var r;if(e.length&&o.showSelect){const t=[];e.forEach(e=>{const r=e[o.rowKey];t.some(e=>e[o.rowKey]==r)||t.push(e)}),f.value=t,v()}else!e.length&&o.showSelect&&(null==(r=h.value)||r.clearSelection())},{immediate:!0});const m=e=>{if(o.spanMethod)return o.spanMethod(e,s.value,a.value)},g=(e,t,r,o)=>{n("cellEnter",{row:e,column:t,cell:r,event:o})},y=(e,t,r,o)=>{n("cellLeave",{row:e,column:t,cell:r,event:o})},C=e=>{if(0===e.columnIndex)return"disabledCheck"},S=e=>{var t;let r="";return(null==(t=f.value)?void 0:t.includes(e.row))&&(r="selected-color"),o.multiple||(r+=" selected-radio"),r},T=e=>{var t;if(o.multiple)f.value=e,n("selectionChange",e);else{if(e.length>1){let r=e.shift();null==(t=h.value)||t.toggleRowSelection(r,!1)}f.value=e,n("selectionChange",e)}},b=e=>{n("sortChange",e)},w=async()=>{var e;try{l.value=!0;const t=await o.request({...d,...o.requestParams});s.value=null==t?void 0:t[u.value.list],a.value=o.handleList?o.handleList(null==t?void 0:t[u.value.list]):null==t?void 0:t[u.value.list],n("requestSuccess",a.value,s.value),p.value=null!=(e=null==t?void 0:t[u.value.total])?e:0}catch(xr){}finally{l.value=!1}};return t.onMounted(()=>{o.isMountedRequest&&w()}),r({refresh:()=>{w()},doLayout:()=>{var e;null==(e=h.value)||e.doLayout()}}),(r,n)=>{const o=t.resolveComponent("el-table-column"),s=t.resolveComponent("el-table"),c=t.resolveComponent("el-pagination"),u=t.resolveDirective("loading");return t.withDirectives((t.openBlock(),t.createElementBlock("div",{class:"TJ-table-container",style:t.normalizeStyle({height:e.height})},[t.createElementVNode("div",ae,[t.createVNode(s,t.mergeProps({ref_key:"tableRef",ref:h,size:t.unref(i)?"small":"default","row-key":e.rowKey,showSummary:e.showSummary,"summary-method":e.summaryMethod,"tree-props":e.treeProps,"span-method":m,onCellMouseEnter:g,onCellMouseLeave:y,data:a.value,border:"",height:"100%","row-class-name":S,"header-cell-class-name":e.multiple?"":C,onSortChange:b,onSelectionChange:T},r.$attrs),{default:t.withCtx(()=>[e.showSelect?(t.openBlock(),t.createBlock(o,{key:0,selectable:e.selectable,fixed:"left","reserve-selection":e.reserveSelection,type:"selection",align:"center",width:"40"},null,8,["selectable","reserve-selection"])):t.createCommentVNode("",!0),e.showIndex?(t.openBlock(),t.createBlock(o,{key:1,index:e.customIndex,fixed:!t.unref(i)&&"left",type:"index",label:"序号",width:"60",align:"center"},null,8,["index","fixed"])):t.createCommentVNode("",!0),t.renderSlot(r.$slots,"default",{},void 0,!0)]),_:3},16,["size","row-key","showSummary","summary-method","tree-props","data","header-cell-class-name"])]),e.showPagination?(t.openBlock(),t.createElementBlock(t.Fragment,{key:0},[t.unref(i)?(t.openBlock(),t.createBlock(c,{key:1,class:"pagination mobile-pagination",background:"",onSizeChange:w,onCurrentChange:w,layout:"total, prev, pager, next",total:p.value,"page-size":d.pageSize,"onUpdate:page-size":n[2]||(n[2]=e=>d.pageSize=e),"current-page":d.pageNum,"onUpdate:current-page":n[3]||(n[3]=e=>d.pageNum=e),"pager-count":5,small:""},null,8,["total","page-size","current-page"])):(t.openBlock(),t.createBlock(c,{key:0,class:"pagination",background:"",onSizeChange:w,onCurrentChange:w,layout:"sizes, total, prev, pager, next, jumper",total:p.value,"page-size":d.pageSize,"onUpdate:page-size":n[0]||(n[0]=e=>d.pageSize=e),"page-sizes":[10,20,30,40,50],"current-page":d.pageNum,"onUpdate:current-page":n[1]||(n[1]=e=>d.pageNum=e)},null,8,["total","page-size","current-page"]))],64)):t.createCommentVNode("",!0)],4)),[[u,l.value]])}}},le=A(se,[["__scopeId","data-v-8906f38f"]]),ce={class:"table-container"};const ue=A({},[["render",function(e,r){return t.openBlock(),t.createElementBlock("div",ce,[t.renderSlot(e.$slots,"default",{},void 0,!0)])}],["__scopeId","data-v-45fb95db"]]),de=A({__name:"index",props:{showSearch:{type:Boolean,default:!0},columns:{type:Array},search:{type:Boolean,default:!0},showRefresh:{type:Boolean,default:!0},gutter:{type:Number,default:10}},emits:["update:showSearch","queryTable"],setup(e,{emit:r}){const n=e,o=t.ref([]),i=t.ref("显示/隐藏"),a=t.ref(!1),s=t.computed(()=>{const e={};return n.gutter&&(e.marginRight=n.gutter/2+"px"),e});function l(e){for(let t in n.columns){const r=n.columns[t].key;n.columns[t].visible=!e.includes(r)}}for(let t in n.columns)!1===n.columns[t].visible&&o.value.push(parseInt(t));return(c,u)=>{const d=t.resolveComponent("el-button"),p=t.resolveComponent("el-tooltip"),h=t.resolveComponent("el-row"),f=t.resolveComponent("el-transfer"),v=t.resolveComponent("el-dialog");return t.openBlock(),t.createElementBlock("div",{class:"top-right-btn",style:t.normalizeStyle(t.unref(s))},[t.createVNode(h,null,{default:t.withCtx(()=>[e.search?(t.openBlock(),t.createBlock(p,{key:0,class:"item",effect:"dark",content:e.showSearch?"隐藏搜索":"打开搜索",placement:"top"},{default:t.withCtx(()=>[t.createVNode(d,{circle:"",icon:"Search",onClick:u[0]||(u[0]=e=>{r("update:showSearch",!n.showSearch)})})]),_:1},8,["content"])):t.createCommentVNode("",!0),e.showRefresh?(t.openBlock(),t.createBlock(p,{key:1,class:"item",effect:"dark",content:"刷新",placement:"top"},{default:t.withCtx(()=>[t.createVNode(d,{circle:"",icon:"Refresh",onClick:u[1]||(u[1]=e=>{r("queryTable")})})]),_:1})):t.createCommentVNode("",!0),e.columns?(t.openBlock(),t.createBlock(p,{key:2,class:"item",effect:"dark",content:"显隐列",placement:"top"},{default:t.withCtx(()=>[t.createVNode(d,{circle:"",icon:"Menu",onClick:u[2]||(u[2]=e=>{a.value=!0})})]),_:1})):t.createCommentVNode("",!0)]),_:1}),t.createVNode(v,{title:i.value,modelValue:a.value,"onUpdate:modelValue":u[4]||(u[4]=e=>a.value=e),"append-to-body":""},{default:t.withCtx(()=>[t.createVNode(f,{titles:["显示","隐藏"],modelValue:o.value,"onUpdate:modelValue":u[3]||(u[3]=e=>o.value=e),data:e.columns,onChange:l},null,8,["modelValue","data"])]),_:1},8,["title","modelValue"])],4)}}},[["__scopeId","data-v-0e82f8bf"]]),pe={class:"table-top-action-container"},he=A({__name:"index",props:{showSearch:{type:Boolean,default:!0},showRefresh:{type:Boolean,default:!0}},emits:["update:showSearch","refresh"],setup(e,{emit:r}){const n=e,o=t.computed({get:()=>n.showSearch,set(e){r("update:showSearch",e)}}),i=()=>{r("refresh")};return(r,n)=>(t.openBlock(),t.createElementBlock("div",pe,[t.renderSlot(r.$slots,"left",{},void 0,!0),t.renderSlot(r.$slots,"right",{},()=>[t.createVNode(de,{showSearch:t.unref(o),"onUpdate:showSearch":n[0]||(n[0]=e=>t.isRef(o)?o.value=e:null),showRefresh:e.showRefresh,onQueryTable:i},null,8,["showSearch","showRefresh"])],!0)]))}},[["__scopeId","data-v-056cfdde"]]),fe={class:"table-page-container"},ve={style:{flex:"1",height:"0"}},me=A({__name:"index",props:{showSearch:{type:Boolean,default:!0}},emits:["refresh","update:showSearch"],setup(e,{emit:r}){const n=e,{isMobile:o}=te(),i=()=>{r("refresh")},a=t.computed({get:()=>n.showSearch,set(e){r("update:showSearch",e)}});return t.watch(o,e=>{r("update:showSearch",!e)},{immediate:!0}),(e,r)=>(t.openBlock(),t.createElementBlock("div",fe,[t.renderSlot(e.$slots,"search",{},void 0,!0),t.createVNode(he,{showSearch:t.unref(a),"onUpdate:showSearch":r[0]||(r[0]=e=>t.isRef(a)?a.value=e:null),onRefresh:i},{left:t.withCtx(()=>[t.renderSlot(e.$slots,"btn",{},void 0,!0)]),_:3},8,["showSearch"]),t.createElementVNode("div",ve,[t.renderSlot(e.$slots,"table",{},void 0,!0)]),t.renderSlot(e.$slots,"default",{},void 0,!0)]))}},[["__scopeId","data-v-cd968be9"]]),ge={__name:"index",setup(e){const{isMobile:r}=te(),n=t.computed(()=>t.useSlots().default());return(e,o)=>{const i=t.resolveComponent("arrow-down"),a=t.resolveComponent("el-icon"),s=t.resolveComponent("el-dropdown-item"),l=t.resolveComponent("el-dropdown-menu"),c=t.resolveComponent("el-dropdown");return t.openBlock(),t.createElementBlock("div",null,[t.unref(r)?(t.openBlock(),t.createBlock(c,{key:0},{dropdown:t.withCtx(()=>[t.createVNode(l,null,{default:t.withCtx(()=>[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(t.unref(n),e=>(t.openBlock(),t.createBlock(s,null,{default:t.withCtx(()=>[(t.openBlock(),t.createBlock(t.resolveDynamicComponent(e)))]),_:2},1024))),256))]),_:1})]),default:t.withCtx(()=>[t.createElementVNode("span",null,[t.createTextVNode(" 操作 "),t.createVNode(a,{class:"el-icon--right"},{default:t.withCtx(()=>[t.createVNode(i)]),_:1})])]),_:1})):t.renderSlot(e.$slots,"default",{key:1})])}}},ye={__name:"BaseChart",props:{option:{type:Object,required:!0},width:{type:String,default:"100%"},height:{type:String,default:"100%"}},emits:["chartClick","legendselectchanged"],setup(e,{expose:r,emit:n}){const o=e,i=t.ref(null),a=t.ref(null),s=e=>{n("chartClick",e)},c=e=>{n("legendselectchanged",e)},u=l.throttle(()=>{var e;try{null==(e=a.value)||e.resize()}catch(t){}},300,{leading:!0,trailing:!0});return t.watch(()=>o.option,e=>{if(a.value&&e)try{a.value.clear(),a.value.setOption(e)}catch(t){}},{deep:!0}),t.onMounted(async()=>{await(async()=>{try{if(await t.nextTick(),!i.value)return;a.value||(a.value=t.markRaw(C.init(i.value))),o.option&&a.value.setOption(o.option),a.value.on("click",s),a.value.on("legendselectchanged",c)}catch(e){}})(),u()}),t.onBeforeUnmount(()=>{if(a.value)try{a.value.off("click",s),a.value.off("legendselectchanged",c),a.value.dispose(),a.value=null}catch(e){}}),r({resize:u,setOption:e=>{if(a.value)try{a.value.setOption(e)}catch(t){}}}),(r,n)=>(t.openBlock(),t.createElementBlock("div",{ref_key:"echartsRef",ref:i,style:t.normalizeStyle({width:e.width,height:e.height})},null,4))}},Ce=["element-loading-background"],Se={key:1,class:"empty-wrapper"},Te=["src"],be=(e=>(t.pushScopeId("data-v-ec2e25d8"),e=e(),t.popScopeId(),e))(()=>t.createElementVNode("div",{class:"empty-text"},"暂无数据",-1)),we=A({__name:"CommonChart",props:{height:{type:String,default:"300px"},loading:{type:Boolean,default:!1},title:{type:String,default:"chart图表"},unit:{type:[Array,String],default:()=>[]},showCardHeader:{type:Boolean,default:!0},data:{type:Array,default:()=>[],required:!0},categoryName:{type:String,default:"name"},seriesConfig:{type:Array,default:()=>[],required:!0},flipAxis:{type:Boolean,default:!1},backgroundColor:{type:[String,null],default:null},boundaryGap:{type:Boolean,default:!0},toolTipFormatter:{type:[Function,null],default:null},mode:{type:String,default:"light"},reservedDigits:{type:Number,default:0},legendSelected:{type:Object,default:()=>({})},showLegendCheckAll:{type:Boolean,default:!0}},emits:["chartClick","legendSelectChanged"],setup(e,{emit:r}){const n=e,{isMobile:o}=te(),i=t.ref(null),a=t.ref(null),s=t.ref(0),l=t.ref(0),c=t.ref(null),u=e=>{r("chartClick",e)},d=e=>{p(e),r("legendSelectChanged",e)},p=e=>{"全选"===e.name&&a.value.setOption({legend:{selected:Object.keys(e.selected).reduce((t,r)=>(t[r]=e.selected[e.name],t),{})}})},h=t.computed(()=>n.showLegendCheckAll?{"全选":!1,...n.legendSelected}:n.legendSelected),f=t.computed(()=>{let e=n.seriesConfig;return n.showLegendCheckAll&&e.unshift({name:"全选",isCheckAll:!0,icon:"circle"}),e}),v=t.computed(()=>{if(n.backgroundColor){return n.backgroundColor.includes("gradient")||n.backgroundColor.includes("linear-gradient")?{background:n.backgroundColor,borderColor:""}:{backgroundColor:n.backgroundColor,borderColor:n.backgroundColor}}return"dark"===n.mode?{backgroundColor:"rgba(8 ,40 ,93, 0.9)",borderColor:"rgba(8 ,40 ,93, 0.9)"}:{}}),m=t.computed(()=>{if(n.backgroundColor){return n.backgroundColor.includes("gradient")||n.backgroundColor.includes("linear-gradient")?{background:"transparent",borderColor:"transparent"}:{backgroundColor:n.backgroundColor,borderColor:n.backgroundColor}}return"dark"===n.mode?{backgroundColor:"transparent",borderColor:"rgba(8 ,40 ,93, 0.9)"}:{}}),g=t.computed(()=>"dark"===n.mode?{color:"#fff"}:{color:"#000"}),y=t.computed(()=>n.backgroundColor?n.backgroundColor:"dark"===n.mode?"rgba(51 ,78 ,122 ,0.6)":"rgba(255, 255, 255, .9)"),C=t.computed(()=>!n.data||!Array.isArray(n.data)||0===n.data.length),S=t.computed(()=>Array.isArray(n.unit)?n.unit:[n.unit]),T=t.computed(()=>{const e={};n.seriesConfig.filter(e=>"bar"===e.type).forEach(t=>{var r,n,o,i;t.stack?e[t.stack]?e[t.stack].push(null!=(r=t.barMaxWidth)?r:30):e[t.stack]=[null!=(n=t.barMaxWidth)?n:30]:e.other?e.other.push(null!=(o=t.barMaxWidth)?o:30):e.other=[null!=(i=t.barMaxWidth)?i:30]});return Object.keys(e).reduce((t,r)=>"other"!==r?t+e[r][0]:t+e[r].reduce((e,t)=>e+t,0),0)}),b=t.computed(()=>{const e=10*n.data.reduce((e,t)=>{const r=(e=>{let t=0;for(let r=0;r<e.length;r++){const n=e[r];/[\u4e00-\u9fa5\u3000-\u303f\uff00-\uffef]/.test(n)?t+=2:t+=1}return t})(String(t[n.categoryName]||""));return r>e?r:e},0),t=Math.max(T.value,e);return n.flipAxis?Math.floor((l.value-80)/t):Math.floor((s.value-90)/t)}),w=t.computed(()=>{if(!n.data||n.data.length<=b.value||0===s.value)return{show:!1,start:0,end:100};const e=Math.ceil((n.data.length-b.value)/n.data.length*100);return{show:!0,start:100===e?95:e,end:100}}),E=t.computed(()=>{if(!(n.data&&Array.isArray(n.data)&&n.seriesConfig&&Array.isArray(n.seriesConfig)))return{tooltip:{trigger:"axis"},xAxis:{type:"category",data:[]},yAxis:{type:"value"},series:[]};const e=n.seriesConfig.filter(e=>e.axisIndex).length,t=e?((e,t="max")=>{if(!e.length)return 0;const r=n.seriesConfig.filter(e=>!e.axisIndex),o=e.reduce((e,t)=>(r.forEach(r=>{e.push(Number(t[r.prop]))}),e),[]);return"max"===t?Math.max(...o):"min"===t?Math.min(...o):void 0})(n.data,"max"):null,r=e?((e,t="max")=>{if(!e.length)return 0;const r=n.seriesConfig.filter(e=>e.axisIndex);if(!r.length)return 1;const o=e.reduce((e,t)=>(r.forEach(r=>{e.push(Number(t[r.prop]))}),e),[]);return"max"===t?Math.max(...o):"min"===t?Math.min(...o):void 0})(n.data,"max"):null,[i,a]=e?((e,t)=>{let r=Math.min(e,t),n=Math.max(e,t);if(0===r&&(r=1),0===n)return[];const o=String(Math.round(r)).length,i=Math.ceil(n/r);let a;a=o<=3?Math.ceil(r/Math.pow(10,o-1))*Math.pow(10,o-1):Math.ceil(r/Math.pow(10,o-2))*Math.pow(10,o-2);let s=a*i;return e>t?[s,a]:[a,s]})(t,r):[null,null],[s,l]=e?(u=a,(c=i)&&u?[Math.ceil(c/5),Math.ceil(u/5)]:[]):[null,null];var c,u;return{tooltip:{appendToBody:!o.value,formatter:n.toolTipFormatter,trigger:"axis",position:o.value?function(e,t,r,n,o){const i=r.offsetWidth,a=r.offsetHeight;return[(o.contentSize[0]-i)/2,(o.contentSize[1]-a)/2]}:"top",axisPointer:{type:"cross",crossStyle:{color:"#999"}},textStyle:{fontSize:o.value?12:14,..."dark"===n.mode?{color:"#fff"}:{}},..."dark"===n.mode?{backgroundColor:"#194690",borderWidth:0}:{},...o.value?{padding:[8,12],extraCssText:"max-width: 80%; word-wrap: break-word;"}:{}},dataZoom:[{type:"slider",show:w.value.show,start:w.value.start,end:w.value.end,height:n.flipAxis?"auto":6,width:n.flipAxis?6:"auto",bottom:n.flipAxis?"35px":"2px",right:n.flipAxis?"2px":"40px",left:n.flipAxis?"auto":"40px",showDataShadow:!1,showDetail:!1,handleSize:"100%",handleStyle:{color:"dark"===n.mode?"#19437a":"#DEDEDE",borderRadius:4,opacity:1,borderColor:"transparent",borderWidth:0},backgroundColor:"transparent",fillerColor:"dark"===n.mode?"#19437a":"#DEDEDE",borderColor:"transparent",moveHandleStyle:{color:"#DEDEDE"},selectedDataBackground:{lineStyle:{opacity:0},areaStyle:{opacity:0}},emphasis:{handleStyle:{color:"#606266",borderColor:"transparent",borderWidth:0,opacity:1}},yAxisIndex:n.flipAxis?[0]:null,xAxisIndex:n.flipAxis?null:[0],filterMode:"filter",textStyle:{color:"transparent"},labelPrecision:0,brushSelect:!1,zoomLock:!0,throttle:100}],legend:{type:"scroll",selected:{...h.value},data:f.value,x:"right",y:"top",..."dark"===n.mode?{textStyle:{color:"#fff"}}:{}},grid:{containLabel:!0,top:50,left:40,right:n.flipAxis?80:40,bottom:n.flipAxis?30:40},[n.flipAxis?"yAxis":"xAxis"]:[{type:"category",boundaryGap:n.boundaryGap,data:n.data.map(e=>e[n.categoryName]||""),axisPointer:{type:"shadow"},axisLabel:{internal:0,rotate:n.flipAxis?90:0,..."dark"===n.mode?{color:"#fff"}:{}}}],[n.flipAxis?"xAxis":"yAxis"]:[{type:"value",name:S.value[0]?`单位:${S.value[0]}`:null,nameTextStyle:{..."dark"===n.mode?{color:"#fff"}:{}},...e?{min:0,max:null!=i?i:1500,interval:s}:{},axisLabel:{formatter:"{value}",..."dark"===n.mode?{color:"#fff"}:{}}},{type:"value",name:S.value[1]?`单位:${S.value[1]}`:null,nameTextStyle:{..."dark"===n.mode?{color:"#fff"}:{}},...e?{min:0,max:null!=a?a:150,interval:l}:{},axisLabel:{formatter:"{value}",..."dark"===n.mode?{color:"#fff"}:{}}}],series:f.value.map(e=>{var t;return{type:e.type||"line",barMaxWidth:null!=(t=e.barMaxWidth)?t:30,data:e.isCheckAll?[]:n.data.map(t=>Number(t[e.prop]||0).toFixed(n.reservedDigits)),...e,...n.flipAxis?{xAxisIndex:e.axisIndex||0}:{yAxisIndex:e.axisIndex||0}}})}});return t.onMounted(()=>{c.value=new ResizeObserver(e=>{var t;null==(t=a.value)||t.resize();for(const r of e)s.value=r.target.getBoundingClientRect().width,l.value=r.target.getBoundingClientRect().height}),i.value&&c.value.observe(i.value)}),t.onBeforeUnmount(()=>{c.value&&c.value.disconnect()}),(r,n)=>{const o=t.resolveComponent("el-card"),s=t.resolveDirective("loading");return t.openBlock(),t.createBlock(o,{class:"card-container",style:t.normalizeStyle(t.unref(v))},t.createSlots({default:t.withCtx(()=>[t.withDirectives((t.openBlock(),t.createElementBlock("div",{ref_key:"chartContainer",ref:i,"element-loading-background":t.unref(y),style:t.normalizeStyle({height:e.height}),class:"card-body"},[t.unref(C)?(t.openBlock(),t.createElementBlock("div",Se,[t.createElementVNode("img",{src:t.unref("data:image/png;base64,"),alt:"empty",class:"empty-image"},null,8,Te),be])):(t.openBlock(),t.createBlock(ye,{key:0,onChartClick:u,onLegendselectchanged:d,ref_key:"baseChartRef",ref:a,option:t.unref(E)},null,8,["option"]))],12,Ce)),[[s,e.loading]])]),_:2},[e.showCardHeader?{name:"header",fn:t.withCtx(()=>[t.renderSlot(r.$slots,"header",{},()=>[t.createElementVNode("div",{class:"card-header",style:t.normalizeStyle(t.unref(m))},[t.createElementVNode("span",{class:"card-title",style:t.normalizeStyle(t.unref(g))},t.toDisplayString(e.title),5)],4)],!0)]),key:"0"}:void 0]),1032,["style"])}}},[["__scopeId","data-v-ec2e25d8"]]),Ee=["element-loading-background"],Ae=A({__name:"PieChart",props:{title:{type:String,required:!0},loading:{type:Boolean,default:!1},height:{type:String,default:"300px"},mode:{type:String,default:"light"},data:{type:Array,required:!0},center:{type:Array,default:()=>["50%","50%"]},radius:{type:Array,default:()=>["0%","70%"]},type:{type:String,default:"pie",validator:function(e){return-1!==["pie","doughnut","rose"].indexOf(e)}},showCenterText:{type:Boolean,default:!1},centerText:{type:String,default:""},labelPosition:{type:String,default:"inside",validator:function(e){return-1!==["inside","outside"].indexOf(e)}},roseType:{type:String,default:"radius",validator:function(e){return-1!==["radius","area"].indexOf(e)}},colors:{type:Array,default:()=>[]}},setup(e){const r=e,n=t.ref(null),o=t.ref(null),i=["#5470c6","#91cc75","#fac858","#ee6666","#73c0de","#3ba272","#fc8452","#9a60b4","#ea7ccc"],a=t.computed(()=>r.backgroundColor?{backgroundColor:r.backgroundColor,borderColor:r.backgroundColor}:"dark"===r.mode?{backgroundColor:"rgba(8 ,40 ,93, 0.9)",borderColor:"rgba(8 ,40 ,93, 0.9)"}:{}),s=t.computed(()=>r.backgroundColor?{backgroundColor:r.backgroundColor,borderColor:r.backgroundColor}:"dark"===r.mode?{backgroundColor:"transparent",borderColor:"rgba(8 ,40 ,93, 0.9)"}:{}),l=t.computed(()=>"dark"===r.mode?{color:"#fff"}:{color:"#000"}),c=t.computed(()=>"dark"===r.mode?"rgba(25, 70, 144, .9)":"rgba(255, 255, 255, .9)"),u=t.computed(()=>"doughnut"===r.type?2===r.radius.length&&"0%"!==r.radius[0]?r.radius:["50%","70%"]:r.radius),d=t.computed(()=>({color:r.colors.length>0?r.colors:i,tooltip:{trigger:"item",formatter:"{b}: {c} ({d}%)",..."dark"===r.mode?{backgroundColor:"#194690",textStyle:{color:"#fff"},borderWidth:0}:{}},legend:{orient:"horizontal",bottom:"0",..."dark"===r.mode?{textStyle:{color:"#fff"}}:{}},graphic:r.showCenterText?[{type:"text",left:"center",top:"middle",style:{text:r.centerText,fontSize:20,fontWeight:"bold",fill:"dark"===r.mode?"#fff":"#000"}}]:[],series:[{type:"pie",radius:u.value,center:r.center,data:r.data,..."rose"===r.type?{roseType:r.roseType}:{},emphasis:{itemStyle:{shadowBlur:10,shadowOffsetX:0,shadowColor:"rgba(0, 0, 0, 0.5)"}},label:{show:!0,position:r.labelPosition,formatter:"{b}: {d}%",..."dark"===r.mode?{color:"#fff"}:{}}}]}));return t.onMounted(()=>{(()=>{o.value=new ResizeObserver(e=>{var t;null==(t=n.value)||t.resize()});const e=document.querySelector(".card-body");e&&o.value.observe(e)})()}),t.onBeforeUnmount(()=>{o.value&&o.value.disconnect()}),(r,o)=>{const i=t.resolveComponent("el-card"),u=t.resolveDirective("loading");return t.openBlock(),t.createBlock(i,{class:"card-container",style:t.normalizeStyle(t.unref(a))},{header:t.withCtx(()=>[t.createElementVNode("div",{class:"card-header",style:t.normalizeStyle(t.unref(s))},[t.createElementVNode("span",{class:"card-title",style:t.normalizeStyle(t.unref(l))},t.toDisplayString(e.title),5)],4)]),default:t.withCtx(()=>[t.withDirectives((t.openBlock(),t.createElementBlock("div",{"element-loading-background":t.unref(c),style:t.normalizeStyle({height:e.height}),class:"card-body"},[t.createVNode(ye,{ref_key:"baseChart",ref:n,option:t.unref(d),height:"100%"},null,8,["option"])],12,Ee)),[[u,e.loading]])]),_:1},8,["style"])}}},[["__scopeId","data-v-747db0fa"]]),_e=()=>Math.random().toString(36).substring(2,8),Ne=e=>{try{return JSON.parse(e),!0}catch(xr){return!1}},ke=e=>Array.isArray(e)?Math.max(...e.map(ke))+1:0,Re=(e,t)=>!!/^[+-]?(180(\.0+)?|((1[0-7]\d)|([1-9]?\d))(\.\d{1,15})?)$/.test(e)&&!!/^[+-]?(90(\.0+)?|([1-8]?\d)(\.\d{1,15})?)$/.test(t),xe=e=>(t.pushScopeId("data-v-c613bad1"),e=e(),t.popScopeId(),e),Ie=["id"],De={key:0,class:"error-content"},Oe=xe(()=>t.createElementVNode("div",{class:"error-icon"},"!",-1)),Me={key:1,class:"loading-overlay"},Ue=xe(()=>t.createElementVNode("p",null,"正在加载播放器...",-1)),Ve=A({__name:"index",props:{playerId:{type:String,default:()=>`flv-player-${Date.now()}-${_e()}`},src:{type:String,required:!0},autoplay:{type:Boolean,default:!0},muted:{type:Boolean,default:!1},loop:{type:Boolean,default:!1},controls:{type:Boolean,default:!0},isLive:{type:Boolean,default:!0},timeout:{type:Number,default:3e4},maxRetries:{type:Number,default:3},flvOptions:{type:Object,default:()=>({})}},emits:["error","can-play","play","pause","ended","time-update","player-ready","retry"],setup(e,{expose:r,emit:n}){const o=e,s=t.ref(null),l=t.ref(""),c=t.ref(0),u=t.ref(null),d=t.ref(null),p=t.ref(null),h=t.ref(null);t.onMounted(()=>{S.default.isSupported()?t.nextTick(()=>{f()}):(l.value="您的浏览器不支持FLV播放,请使用Chrome或Firefox等现代浏览器",n("error",{message:l.value}))}),t.onBeforeUnmount(()=>{g(),y()});const f=()=>{if(o.src){l.value="",g();try{const e=h.value;if(!e)throw new Error("找不到视频元素");e.autoplay=o.autoplay,e.muted=o.muted,e.loop=o.loop,e.controls=o.controls;const t={type:"flv",url:o.src,isLive:o.isLive,cors:!0,withCredentials:!1,hasAudio:!0,hasVideo:!0,enableStashBuffer:!0,stashInitialSize:3145728,enableWorker:!0,lazyLoad:!1,lazyLoadMaxDuration:180,seekType:"range",fixAudioTimestampGap:!0,accurateSeek:!0},r=Object.assign({},t,o.flvOptions);if(!S.default.isSupported())throw new Error("当前浏览器不支持FLV播放");s.value=S.default.createPlayer(r),s.value.attachMediaElement(e),s.value.load(),s.value.on(S.default.Events.ERROR,(e,t)=>{C(`播放错误: ${e} - ${t}`)}),s.value.on(S.default.Events.MEDIA_INFO,e=>{}),e.addEventListener("canplay",()=>{n("can-play")}),e.addEventListener("play",()=>{n("play")}),e.addEventListener("pause",()=>{n("pause")}),e.addEventListener("ended",()=>{n("ended")}),e.addEventListener("timeupdate",()=>{n("time-update",e.currentTime)}),e.addEventListener("error",e=>{const t=e.target.error;let r="未知错误";if(t)switch(t.code){case 1:r="视频加载中断";break;case 2:r="网络错误";break;case 3:r="视频解码错误";break;case 4:r="视频资源不可用"}C(`视频元素错误: ${r}`)}),o.autoplay&&b(),d.value=setInterval(()=>{v()},5e3),n("player-ready",s.value)}catch(e){C(`播放器初始化错误: ${e.message||"未知错误"}`)}}},v=()=>{const e=h.value;e&&s.value&&e.readyState<=2&&e.paused&&!l.value&&m()},m=()=>{g(),t.nextTick(()=>{f()})},g=()=>{if(s.value)try{s.value.pause(),s.value.unload(),s.value.detachMediaElement(),s.value.destroy(),s.value=null}catch(e){}},y=()=>{u.value&&(clearTimeout(u.value),u.value=null),d.value&&(clearInterval(d.value),d.value=null)},C=e=>{l.value=e,n("error",{message:e}),c.value<o.maxRetries&&(c.value++,u.value=setTimeout(()=>{T()},3e3))},T=()=>{f(),n("retry")},b=()=>{const e=h.value;e&&e.play().catch(t=>{"NotAllowedError"!==t.name||e.muted||(e.muted=!0,e.play().catch(e=>{}))})};return t.watch(()=>o.src,(e,r)=>{e!==r&&(c.value=0,y(),t.nextTick(()=>{f()}))}),t.watch(()=>o.muted,e=>{const t=h.value;t&&(t.muted=e)}),r({play:b,pause:()=>{const e=h.value;e&&e.pause()},toggleMute:()=>{const e=h.value;return!!e&&(e.muted=!e.muted,e.muted)},retry:T,destroyPlayer:g,refreshPlayer:m,handleError:C}),(r,n)=>(t.openBlock(),t.createElementBlock("div",{class:"flv-player-container",ref_key:"playerContainer",ref:p},[t.createElementVNode("div",{id:e.playerId,class:"player-box"},[t.createElementVNode("video",{ref_key:"videoElement",ref:h,class:"video-js",controls:""},null,512)],8,Ie),l.value?(t.openBlock(),t.createElementBlock("div",De,[Oe,t.createElementVNode("p",null,t.toDisplayString(l.value),1),t.createVNode(t.unref(a.ElButton),{type:"primary",size:"small",onClick:T,class:"retry-button"},{default:t.withCtx(()=>[t.createTextVNode(" 重试 ")]),_:1})])):t.createCommentVNode("",!0),l.value||s.value?t.createCommentVNode("",!0):(t.openBlock(),t.createElementBlock("div",Me,[t.createVNode(t.unref(a.ElIcon),{class:"loading-icon"},{default:t.withCtx(()=>[t.createVNode(t.unref(i.Loading))]),_:1}),Ue]))],512))}},[["__scopeId","data-v-c613bad1"]]),He=e=>(t.pushScopeId("data-v-7d1d9d8a"),e=e(),t.popScopeId(),e),Pe={class:"control-panel"},ze={class:"form-item",style:{"flex-shrink":"0"}},Be=He(()=>t.createElementVNode("label",null,"模式:",-1)),Le={key:0,class:"form-item"},qe={class:"time-inputs"},je={class:"video-player-container","element-loading-text":"视频加载中...","element-loading-background":"rgba(0,0,0,.5)"},Fe={class:"video-player-title"},Ge={key:0,class:"title-text-bh"},Ke={class:"title-text-bh"},$e={class:"title-text-type"},We=["id"],Je={key:0,class:"err-box"},Ye={class:"error-message-text"},Qe=He(()=>t.createElementVNode("a",{href:"https://sctj-zcglxt.oss-cn-chengdu.aliyuncs.com/lifingBusiness/%E6%B5%B7%E5%BA%B7%E5%A8%81%E8%A7%86%E9%94%99%E8%AF%AF%E7%A0%81%E5%A4%A7%E5%85%A8.docx",download:"",style:{color:"#1A68DB","text-decoration":"underline"},target:"_self"}," 下载查看错误码详情 ",-1)),Ze={key:0},Xe=He(()=>t.createElementVNode("span",null," 证书未安装、证书不安全, ",-1)),et={class:"btn-box"},tt=A({__name:"index",props:{playerId:{type:String,default:function(){return`hkPlayer-${Date.now()}-${_e()}`}},preUrl:{type:String},deviceSerial:{type:String},deviceName:{type:String,default:""},cameraType:{type:String,default:"枪机"},channelName:{type:String,default:"默认通道"},channelNo:{type:String,default:"1"},whetherPanTilt:{type:[Boolean,String],default:"1"},width:{type:[Number,String],default:"100%"},height:{type:[String,null],default:null},defaultMode:{type:String,default:"live",validator:e=>["live","replay"].includes(e)},getLiveAddress:{type:Function,required:!0},getReplayAddress:{type:Function,required:!0},downloadCertificate:{type:Function,default:void 0}},setup(e,{expose:r}){const n=e,o=t.ref(""),i=t.ref(!0),a=t.ref(null),s=t.ref(n.defaultMode),l=t.ref([]),c=t.ref(""),u=t.ref(!1),d=t.computed(()=>n.height?{height:n.height}:{aspectRatio:2}),p=()=>{if(a.value){if(u.value)k(c.value);else{let e=a.value.currentWindowIndex;a.value.JS_Stop(e)}u.value=!u.value}};t.watch(()=>n.deviceSerial,e=>{e&&f()}),t.watch(()=>n.preUrl,e=>{e&&(c.value=e,k(e))});const h=t.ref(!1),f=async()=>{if(n.deviceSerial){i.value=!0;try{"live"===s.value?await v():C()}catch(e){o.value=`初始化播放失败:${e.message||e}`,i.value=!1}}},v=async()=>{try{o.value="",i.value=!0;const e=await n.getLiveAddress({deviceSerial:n.deviceSerial,channelNo:n.channelNo});if(!e||!e.data)throw new Error("获取直播地址失败");c.value=e.data,k(e.data)}catch(e){o.value=`获取直播地址失败:${e.message||e}`,i.value=!1}},m=async(e,t)=>{try{i.value=!0;const r={deviceSerial:n.deviceSerial,playbackBeginTime:e,playbackEndTime:t,channelNo:n.channelNo},o=await n.getReplayAddress(r);if(!o||!o.data)throw new Error("获取回放地址失败");c.value=o.data,k(o.data)}catch(r){o.value=`获取回放地址失败:${r.message||r}`,i.value=!1}},g=e=>{s.value=e,"live"===e&&n.deviceSerial&&v(),"replay"===e&&n.deviceSerial&&C()},y=e=>{l.value=e,C()},C=()=>{if(o.value="",!l.value||!l.value.length){const e=new Date,t=new Date(Date.now()-36e5),r=[T.default(t).format("YYYY-MM-DD HH:mm:ss"),T.default(e).format("YYYY-MM-DD HH:mm:ss")];l.value=r}const[e,t]=l.value;m(e,t)},S=()=>{h.value?b():w()},b=()=>{if(!a.value)return;let e=a.value.currentWindowIndex;a.value.JS_StopSave(e).then(()=>{h.value=!1},e=>{})},w=()=>{if(!a.value)return;let e=a.value.currentWindowIndex,t=`${(new Date).toLocaleDateString().replaceAll("/","-")}.mp4`;a.value.JS_StartSaveEx(e,t,5).then(()=>{h.value=!0},e=>{})},E=()=>{a.value&&a.value.JS_FullScreenDisplay(!1).then(()=>{},e=>{})},A=()=>{_()},_=()=>{try{a.value=new window.JSPlugin({szId:n.playerId,szBasePath:"/hkPlayerPlugin"}),a.value&&N()}catch(e){i.value=!1,o.value=`播放器初始化失败:${e}`}},N=()=>{a.value.JS_SetWindowControlCallback({windowEventSelect(e){},pluginErrorHandler(e,t,r){i.value=!1,o.value=`播放器插件发生错误:${t}`},windowEventOver(e){},windowEventOut(e){},windowFullCcreenChange(e){},firstFrameDisplay(e,t,r){},performanceLack(e){}}),n.deviceSerial?f():n.preUrl&&k()},k=e=>{if(!a.value)return;let t;if(t=null!=e?e:n.preUrl,!t)return;const r={playURL:t,mode:0};let[c,u]=l.value;"live"===s.value?(c=null,u=null):(c=new Date(c).toISOString(),u=new Date(u).toISOString()),a.value.JS_Play(t,r,0,c,u).then(()=>{i.value=!1},e=>{i.value=!1,o.value=`监控播放失败:${e}`})};return t.onMounted(()=>{t.nextTick(()=>{_()})}),t.onUnmounted(()=>{a.value.JS_StopRealPlayAll().then(()=>{},e=>{})}),r({play:k,getLiveAddress:v,getReplayAddress:m,startReplay:C}),(r,c)=>{var f;const v=t.resolveComponent("el-radio"),m=t.resolveComponent("el-radio-group"),C=t.resolveComponent("el-date-picker"),T=t.resolveComponent("WarningFilled"),b=t.resolveComponent("el-icon"),w=t.resolveComponent("el-button"),_=t.resolveDirective("loading");return t.openBlock(),t.createElementBlock("div",{class:"videoPlayer",style:t.normalizeStyle({width:e.width})},[t.createElementVNode("div",Pe,[t.createElementVNode("div",ze,[Be,t.createVNode(m,{size:"small",modelValue:s.value,"onUpdate:modelValue":c[0]||(c[0]=e=>s.value=e),onChange:g},{default:t.withCtx(()=>[t.createVNode(v,{label:"live",border:""},{default:t.withCtx(()=>[t.createTextVNode("实时")]),_:1}),t.createVNode(v,{label:"replay",border:""},{default:t.withCtx(()=>[t.createTextVNode("回放")]),_:1})]),_:1},8,["modelValue"])]),"replay"===s.value?(t.openBlock(),t.createElementBlock("div",Le,[t.createElementVNode("div",qe,[t.createVNode(C,{size:"small",clearable:!1,modelValue:l.value,"onUpdate:modelValue":c[1]||(c[1]=e=>l.value=e),type:"datetimerange","range-separator":"至","start-placeholder":"开始时间","end-placeholder":"结束时间",format:"YYYY-MM-DD HH:mm:ss","value-format":"YYYY-MM-DD HH:mm:ss",onChange:y},null,8,["modelValue"])])])):t.createCommentVNode("",!0)]),t.withDirectives((t.openBlock(),t.createElementBlock("div",je,[t.createElementVNode("div",Fe,[e.deviceName?(t.openBlock(),t.createElementBlock("div",Ge,t.toDisplayString(`${e.deviceName}(${null!=(f=e.channelName)?f:"默认通道"})`),1)):t.createCommentVNode("",!0),t.createElementVNode("div",Ke,t.toDisplayString("序列号:"+e.deviceSerial),1),t.createElementVNode("div",$e,t.toDisplayString(e.cameraType),1)]),t.createElementVNode("div",{id:e.playerId,style:t.normalizeStyle(t.unref(d))},null,12,We),o.value?(t.openBlock(),t.createElementBlock("div",Je,[t.createVNode(b,{size:"40",color:"red"},{default:t.withCtx(()=>[t.createVNode(T)]),_:1}),t.createElementVNode("div",Ye,[t.createTextVNode(t.toDisplayString(o.value+":取流失败,")+" ",1),Qe,o.value.includes("0x12f910019")?(t.openBlock(),t.createElementBlock("div",Ze,[Xe,t.createElementVNode("span",{onClick:c[2]||(c[2]=t=>(async e=>{if(n.downloadCertificate)try{let t=await n.downloadCertificate(e);const r=URL.createObjectURL(t),o=document.createElement("a");o.href=r,o.download=`安全证书${(new Date).getTime()}.exe`,o.click(),URL.revokeObjectURL(r)}catch(t){}})(e.deviceSerial)),class:"install-certificate"}," 安装证书后重启浏览器解决 ")])):t.createCommentVNode("",!0)]),t.createElementVNode("button",{onClick:A,class:"retry-button"},"重试")])):t.createCommentVNode("",!0),e.deviceSerial?(t.openBlock(),t.createBlock(w,{key:1,class:"fullScreen-box",icon:"FullScreen",circle:"",plain:"",onClick:E})):t.createCommentVNode("",!0)])),[[_,i.value]]),t.createElementVNode("div",et,[t.createVNode(w,{type:"primary",onClick:p},{default:t.withCtx(()=>[t.createTextVNode(t.toDisplayString(u.value?"播放":"暂停"),1)]),_:1}),t.createVNode(w,{type:"primary",onClick:c[3]||(c[3]=e=>(e=>{if(!a.value)return;let t=a.value.currentWindowIndex;a.value.JS_CapturePicture(t,"img",e).then(()=>{},e=>{})})("JPEG"))},{default:t.withCtx(()=>[t.createTextVNode("抓图")]),_:1}),t.createVNode(w,{type:"primary",onClick:S},{default:t.withCtx(()=>[t.createTextVNode(t.toDisplayString(h.value?"停止录制":"录制"),1)]),_:1}),"live"===s.value&&"1"===e.whetherPanTilt?(t.openBlock(),t.createBlock(w,{key:0,type:"primary"},{default:t.withCtx(()=>[t.createTextVNode("云台控制")]),_:1})):t.createCommentVNode("",!0)])],4)}}},[["__scopeId","data-v-7d1d9d8a"]]),rt=e=>(t.pushScopeId("data-v-91800a3c"),e=e(),t.popScopeId(),e),nt={class:"helmet-player-container"},ot={class:"title-section"},it=rt(()=>t.createElementVNode("div",{class:"title-text"}," 视频监控 ",-1)),at={class:"voice-call-section"},st={class:"voice-call-controls"},lt=rt(()=>t.createElementVNode("span",{class:"voice-label"},"语音通话",-1)),ct={key:0,class:"loading-indicator"},ut={key:1,class:"status-indicator success"},dt=rt(()=>t.createElementVNode("span",null,"通话已连接",-1)),pt={class:"video-container"},ht={__name:"index",props:{deviceId:{type:String,default:"",required:!0},callApi:{type:Function,required:!0},handleStreamingApi:{type:Function,required:!0},queryAdminSipInfoApi:{type:Function,required:!0}},emits:["retry","error"],setup(e,{expose:r,emit:n}){const o=e,s=Promise.resolve().then(()=>Dr),l=t.ref("0"),c=t.ref(""),u=t.ref(!1),d=t.ref(null),p=t.ref(null),h=t.ref(null),f=t.ref(""),v=t.ref(""),m=t.ref(!1),g=t.ref(""),y=t.ref(null);t.onMounted(async()=>{await S()}),t.onBeforeUnmount(()=>{C()});const C=()=>{b(),I(),c.value="",d.value&&(d.value.unregister(),d.value=null)},S=async()=>{var e;try{u.value=!0;const{status:e,play_url:t,msg:r}=await x();if(!e)throw new Error(r);c.value=t[2]}catch(xr){null==(e=y.value)||e.handleError(xr)}finally{u.value=!1}},T=e=>{v.value=e,n("error",{message:e}),a.ElMessage({message:e,type:"error",duration:5e3,showClose:!0})},b=()=>{p.value&&(p.value.terminate(),p.value=null)},w=async()=>{if(!navigator.mediaDevices)throw new Error("您的浏览器不支持音频设备访问或处于不安全环境,无法使用语音通话功能");try{const e=await navigator.mediaDevices.enumerateDevices();if(!e.some(e=>"audioinput"===e.kind))throw new Error("未检测到麦克风设备,请检查设备连接");await navigator.mediaDevices.getUserMedia({video:!1,audio:!0})}catch(xr){throw"NotAllowedError"===xr.name?new Error("请允许访问麦克风权限"):"NotFoundError"===xr.name?new Error("未找到可用的音频设备"):new Error("音频设备访问失败: "+xr.message)}},E=async()=>{h.value||await _(),await N()},A=async()=>{const{status:e,sip_id:t,msg:r}=await o.callApi({deviceId:o.deviceId,v_type:0});if(!e)throw new Error(`呼叫失败:${r}`);t&&(f.value=t),await k()},_=async()=>{const{status:e,admin_info:{sip_info:t},msg:r}=await o.queryAdminSipInfoApi();if(!e)throw new Error(`获取管理员sip_info失败:${r}`);h.value=t},N=()=>new Promise((e,t)=>{const{sip_id:r,sip_host:n,sip_pwd:o,wss_url:i,stun_host:a,turn_host:l,turn_user:c,turn_pwd:u}=h.value,p={uri:`${r}@${n}`,transportOptions:{wsServers:[i],connectionTimeout:30},authorizationUser:r,password:o,sessionDescriptionHandlerFactoryOptions:{peerConnectionOptions:{rtcConfiguration:{iceServers:[{urls:`stun:${a}`},{urls:`turn:${l}`,username:c,credential:u}]}}}};d.value=new s.UA(p),d.value.on("registered",()=>{e()}),d.value.on("registrationFailed",(e,r)=>{t(new Error("SIP注册失败"))})}),k=async()=>{try{p.value=d.value.invite(`${f.value}@${h.value.sip_host}`,{sessionDescriptionHandlerOptions:{constraints:{audio:!0,video:!1}}}),R()}catch(xr){T(xr.message||"设备访问失败,请检查摄像头和麦克风权限")}},R=()=>{p.value.on("accepted",()=>{g.value="connected",a.ElMessage({message:"语音通话连接成功",type:"success",duration:3e3});const e=p.value.sessionDescriptionHandler.peerConnection,t=new MediaStream;e.getReceivers().forEach(e=>{t.addTrack(e.track)})}),p.value.on("failed",(e,t)=>{l.value="0";let r="通话失败";r="Request Timeout"===t?"连接超时,请检查网络连接":"Not Found"===t?"设备离线或不可用":"Busy Here"===t?"设备忙线中":`通话失败: ${t}`,T(r)}),p.value.on("terminated",()=>{g.value="","1"===l.value&&a.ElMessage({message:"通话已断开",type:"info",duration:2e3})})},x=async()=>await o.handleStreamingApi({deviceId:o.deviceId,isPush:1}),I=async()=>await o.handleStreamingApi({deviceId:o.deviceId,isPush:0}),D=()=>{switch(g.value){case"checking":return"正在检查设备权限...";case"initializing":return"正在初始化通话服务...";case"calling":return"正在建立连接...";case"connected":return"连接成功";default:return"正在处理..."}};return t.watch(l,async e=>{"0"===e?(v.value="",g.value="",b()):(async()=>{try{m.value=!0,v.value="",g.value="checking",await w(),g.value="initializing",await E(),g.value="calling",await A(),g.value="connected"}catch(xr){l.value="0",T(xr.message||"视频通话初始化失败")}finally{m.value=!1,g.value=""}})()}),r({retry:()=>{v.value="",g.value="",l.value="1",n("retry")},initVideoMonitor:S,cleanup:C}),(e,r)=>{const n=t.resolveDirective("loading");return t.openBlock(),t.createElementBlock("div",nt,[t.createElementVNode("div",ot,[it,t.createElementVNode("div",at,[t.createElementVNode("div",st,[t.createElementVNode("div",{class:"voice-call-header",onClick:r[0]||(r[0]=()=>{l.value="1"===l.value?"0":"1"})},[t.createVNode(t.unref(a.ElIcon),{class:"voice-icon"},{default:t.withCtx(()=>[t.createVNode(t.unref(i.Microphone))]),_:1}),lt]),m.value?(t.openBlock(),t.createElementBlock("div",ct,[t.createVNode(t.unref(a.ElIcon),{class:"loading-icon"},{default:t.withCtx(()=>[t.createVNode(t.unref(i.Loading))]),_:1}),t.createElementVNode("span",null,t.toDisplayString(D()),1)])):"1"!==l.value||v.value?t.createCommentVNode("",!0):(t.openBlock(),t.createElementBlock("div",ut,[t.createVNode(t.unref(a.ElIcon),{class:"success-icon"},{default:t.withCtx(()=>[t.createVNode(t.unref(i.SuccessFilled))]),_:1}),dt]))])])]),t.createElementVNode("div",pt,[t.withDirectives(t.createVNode(Ve,{maxRetries:0,"element-loading-background":"rgba(51, 78, 122, 0.6)","element-loading-text":"正在加载视频流...",ref_key:"flvPlayer",ref:y,src:c.value,autoplay:"",controls:"",onRetry:S},null,8,["src"]),[[n,u.value]])])])}}},ft=A(ht,[["__scopeId","data-v-91800a3c"]]),vt={playerDefaults:{videoQuality:2,videoFormat:"ezopen",template:"simple",autoplay:!0,cacheExpire:72e5,timeout:15e3,maxRetries:3},apiUrl:"https://open.ys7.com/api/lapp"},mt=vt.apiUrl;let gt={accessToken:"",expireTime:0};const yt=new Map,Ct=vt.playerDefaults&&vt.playerDefaults.cacheExpire||72e5;let St=null;const Tt={setGetTokenFunction(e){St=e},getAccessToken:()=>new Promise((e,t)=>{const r=Date.now();return gt.accessToken&>.expireTime>r?e(gt.accessToken):St?void St().then(r=>{var n;if(200===r.code&&r.data){const t=r.data;gt.accessToken=t.accessToken,gt.expireTime=Date.now()+1e3*t.expireTime-3e5,e(t.accessToken)}else t(new Error(r.msg||(null==(n=r.data)?void 0:n.msg)||"获取Token失败"))}).catch(e=>{t(e)}):t(new Error("未提供获取Token的函数,请通过 setGetTokenFunction 设置"))}),getLiveAddress(e,t,r=1,n=1,o=null){const i=`${e}_${t}_${r}_${n}`,a=Date.now(),s=yt.get(i);if(s&&s.expireTime>a)return Promise.resolve(s.url);return(o?Promise.resolve(o):this.getAccessToken()).then(o=>{const i=vt.playerDefaults&&vt.playerDefaults.timeout||15e3,a=new URLSearchParams({accessToken:o,deviceSerial:e,quality:r,channelNo:t,protocol:n});return w.default.post(`${mt}/v2/live/address/get?${a.toString()}`,{timeout:i})}).then(e=>{if("200"===e.data.code&&e.data.data){const t=e.data.data.url;return yt.set(i,{url:t,expireTime:a+Ct}),t}throw new Error(e.data.msg||"获取视频地址失败")})},getDeviceInfo(e){return this.getAccessToken().then(t=>{const r=vt.playerDefaults&&vt.playerDefaults.timeout||15e3;return w.default.post(`${mt}/device/info`,{accessToken:t,deviceSerial:e},{timeout:r})}).then(e=>{if("200"===e.data.code&&e.data.data)return e.data.data;throw new Error(e.data.msg||"获取设备信息失败")})},getDeviceList(e=0,t=50){return this.getAccessToken().then(r=>w.default.post(`${mt}/devices/list`,{accessToken:r,pageStart:e,pageSize:t})).then(e=>{if("200"===e.data.code&&e.data.data)return e.data.data;throw new Error(e.data.msg||"获取设备列表失败")})},isDeviceOnline(e){return this.getDeviceInfo(e).then(e=>1===e.status)},getPlaybackAddress(e,t,r,n,o=1,i=1,a=null){const s=`${e}_${t}_${r}_${n}_${i}`,l=Date.now(),c=yt.get(s);if(c&&c.expireTime>l)return Promise.resolve(c.url);return(a?Promise.resolve(a):this.getAccessToken()).then(a=>{const s=vt.playerDefaults&&vt.playerDefaults.timeout||15e3,l=new URLSearchParams({accessToken:a,deviceSerial:e,channelNo:t,startTime:r,endTime:n,protocol:i,quality:o,type:"2"});return w.default.post(`${mt}/v2/live/address/get?${l.toString()}`,{timeout:s})}).then(e=>{if("200"===e.data.code&&e.data.data){const t=e.data.data.url;return yt.set(s,{url:t,expireTime:l+Ct}),t}throw new Error(e.data.msg||"获取回放地址失败")})},generateEZOpenUrl:(e,t=1,r=0,n="",o="")=>0===r?`ezopen://open.ys7.com/${e}/${t}.live`:`ezopen://open.ys7.com/${e}/${t}.rec?begin=${n}&end=${o}`,controlPTZ(e,t=1,r,n=1){return this.getAccessToken().then(o=>{const i=vt.playerDefaults&&vt.playerDefaults.timeout||15e3,a=new URLSearchParams({accessToken:o,deviceSerial:e,channelNo:t,direction:r,speed:n});return w.default.post(`${mt}/device/ptz/start?${a.toString()}`,{timeout:i})}).then(e=>{if("200"===e.data.code)return e.data;throw new Error(e.data.msg||"云台控制失败")})},stopPTZ(e,t=1,r){return this.getAccessToken().then(n=>{const o=vt.playerDefaults&&vt.playerDefaults.timeout||15e3,i=new URLSearchParams({accessToken:n,deviceSerial:e,channelNo:t,direction:r});return w.default.post(`${mt}/device/ptz/stop?${i.toString()}`,{timeout:o})}).then(e=>{if("200"===e.data.code)return e.data;throw new Error(e.data.msg||"停止云台失败")})}};const bt=new class{constructor(){this.players={},this.defaultConfig={template:"simple",autoplay:!0,width:"100%",height:"100%",videoQuality:1,videoFormat:"ezopen"}}async createPlayerConfig(e,t={}){try{const r={...this.defaultConfig,deviceSerial:e,...t};if(!r.deviceSerial)throw new Error("设备序列号(deviceSerial)不能为空");if(1===r.playType){if(!r.startTime||!r.endTime){const e=this.generateDefaultTimeRange();r.startTime=r.startTime||e.startTime,r.endTime=r.endTime||e.endTime}r.videoUrl=await Tt.getPlaybackAddress(r.deviceSerial,r.channelNo||1,r.startTime,r.endTime,r.videoFormat)}else r.videoUrl=await Tt.getLiveAddress(r.deviceSerial,r.channelNo||1,r.videoQuality,r.videoFormat);return r}catch(r){throw r}}async destroyPlayer(e){this.players[e]&&delete this.players[e]}registerPlayer(e,t){this.players[e]=t}getPlayer(e){return this.players[e]||null}async isDeviceAvailable(e){try{return await Tt.isDeviceOnline(e)}catch(t){return!1}}generateDefaultTimeRange(){const e=new Date,t=e=>{const t=e=>String(e).padStart(2,"0");return`${e.getFullYear()}-${t(e.getMonth()+1)}-${t(e.getDate())} ${t(e.getHours())}:${t(e.getMinutes())}:${t(e.getSeconds())}`};return{startTime:t(new Date(e.getTime()-36e5)),endTime:t(e)}}destroyAllPlayers(){const e=Object.keys(this.players);for(const t of e)this.destroyPlayer(t)}},wt=["id"],Et={key:0,class:"error-message"},At={class:"error-message-text"},_t=A({__name:"index",props:{playerId:{type:String,default:function(){return`player-${Date.now()}-${_e()}`}},deviceSerial:{type:String,required:!0},channelNo:{type:[String,Number],default:1},accessToken:{type:String,default:""},playType:{type:Number,default:0},startTime:{type:String,default:""},endTime:{type:String,default:""},autoPlay:{type:Boolean,default:!0},template:{type:String,default:"simple"},videoQuality:{type:Number,default:2},videoProtocol:{type:[Number,String],default:2},maxRetries:{type:Number,default:0},getYsToken:{type:Function,required:!0}},emits:["play-success","play-error","play-stop","update:playType"],setup(e,{expose:r,emit:n}){const o=e,i=t.ref(null),a=t.ref(!0),s=t.ref(""),l=t.ref(0),c=t.ref(""),u=t.ref(null),d=t.ref(""),p=t.ref(""),h=t.ref(null),f=t.ref(null),v=t.ref(null),m=async()=>{if(s.value="",a.value=!0,o.deviceSerial)try{C();let t="";try{t=await Tt.getAccessToken()}catch(e){return void g(`获取AccessToken失败: ${e.message||"未知错误"}`)}if(0===o.playType)c.value=await Tt.getLiveAddress(o.deviceSerial,o.channelNo,o.videoQuality,o.videoProtocol,t);else{o.startTime&&o.endTime||u.value||(u.value=bt.generateDefaultTimeRange());const e=o.startTime||u.value.startTime,r=o.endTime||u.value.endTime;c.value=await Tt.getPlaybackAddress(o.deviceSerial,o.channelNo,e,r,o.videoQuality,o.videoProtocol,t)}const r={id:o.playerId,url:c.value,accessToken:t,template:o.template,autoplay:o.autoPlay,width:d.value,height:p.value,audio:!1,handleSuccess:()=>{a.value=!1,l.value=0,S(),bt.registerPlayer(o.playerId,{player:i.value,config:r}),n("play-success")},handleError:e=>{g(`播放错误: ${JSON.stringify(e)}`)}};i.value=new b.default.EZUIKitPlayer(r)}catch(e){g(`播放器初始化错误: ${e.message||"未知错误"}`)}else g("设备序列号不能为空")},g=e=>{a.value=!1,s.value=e,n("play-error",{message:e}),l.value<o.maxRetries&&(l.value++,h.value=setTimeout(()=>{y()},3e3))},y=()=>{m()},C=()=>{if(i.value)try{i.value.stopTalk(),i.value.stop(),i.value.destroy()}catch(e){}},S=()=>{i.value&&i.value.closeSound()};return t.watch(()=>o.deviceSerial,()=>{m()}),t.watch(()=>o.channelNo,()=>{m()}),t.watch(()=>o.playType,()=>{m()}),t.watch(()=>o.startTime,()=>{1===o.playType&&m()}),t.watch(()=>o.endTime,()=>{1===o.playType&&m()}),t.watch(()=>o.videoProtocol,()=>{m()}),t.onMounted(()=>{Tt.setGetTokenFunction(o.getYsToken);const e=f.value;e&&(d.value=e.clientWidth,p.value=e.clientHeight),m()}),t.onBeforeUnmount(()=>{h.value&&clearTimeout(h.value),C(),bt.destroyPlayer(o.playerId),n("play-stop")}),r({initPlayer:m,play:()=>{i.value&&i.value.play()},stop:()=>{i.value&&i.value.stop()},pause:()=>{i.value&&i.value.pause()},resume:()=>{i.value&&i.value.resume()},openSound:()=>{i.value&&i.value.openSound()},closeSound:S,startTalk:()=>{i.value&&i.value.startTalk()},stopTalk:()=>{i.value&&i.value.stopTalk()},capturePicture:()=>{i.value&&i.value.capturePicture()},startSave:()=>{i.value&&i.value.startSave()},stopSave:()=>{i.value&&i.value.stopSave()},setPlaybackTimeRange:(e,t)=>{e&&t&&(u.value={startTime:e,endTime:t},1===o.playType&&m())},switchToLive:()=>{0!==o.playType&&(n("update:playType",0),m())},switchToPlayback:(e="",t="")=>{e&&t?u.value={startTime:e,endTime:t}:u.value||(u.value=bt.generateDefaultTimeRange()),1!==o.playType&&(n("update:playType",1),m())},switchQuality:e=>{o.videoQuality!==e&&0===o.playType&&m()},fullScreen:()=>{i.value&&i.value.fullScreen()},controlPTZ:(e,t=1)=>{if(o.deviceSerial)try{Tt.controlPTZ(o.deviceSerial,o.channelNo,e,t).catch(e=>{n("play-error",{message:e})})}catch(r){n("play-error",{message:r})}else n("play-error",{message:"设备序列号不能为空"})},stopPTZ:e=>{if(o.deviceSerial)try{Tt.stopPTZ(o.deviceSerial,o.channelNo,e).catch(e=>{n("play-error",{message:e})})}catch(t){n("play-error",{message:t})}else n("play-error",{message:"设备序列号不能为空"})}}),(r,n)=>{const o=t.resolveComponent("WarningFilled"),i=t.resolveComponent("el-icon");return t.openBlock(),t.createElementBlock("div",{class:"ysy-player-container",ref_key:"playerContainer",ref:f},[t.createElementVNode("div",{ref_key:"playerBox",ref:v,id:e.playerId,class:"player-box"},null,8,wt),s.value?(t.openBlock(),t.createElementBlock("div",Et,[t.createVNode(i,{size:"40",color:"red"},{default:t.withCtx(()=>[t.createVNode(o)]),_:1}),t.createElementVNode("div",At,t.toDisplayString(s.value),1),t.createElementVNode("button",{onClick:y,class:"retry-button"},"重试")])):t.createCommentVNode("",!0)],512)}}},[["__scopeId","data-v-3f60f3e4"]]),Nt=["src"],kt={__name:"index",props:{src:{type:String,required:!0}},setup(e){const r=e,n=ref(document.documentElement.clientHeight-94.5+"px;"),o=ref(!0),i=computed(()=>r.src);return onMounted(()=>{setTimeout(()=>{o.value=!1},300),window.onresize=function(){n.value=document.documentElement.clientHeight-94.5+"px;"}}),(e,r)=>{const a=t.resolveDirective("loading");return t.withDirectives((t.openBlock(),t.createElementBlock("div",{style:t.normalizeStyle("height:"+t.unref(n))},[t.createElementVNode("iframe",{src:t.unref(i),frameborder:"no",style:{width:"100%",height:"100%"},scrolling:"auto"},null,8,Nt)],4)),[[a,t.unref(o)]])}}},Rt=t.createElementVNode("div",{class:"el-upload__text"},[t.createTextVNode("将文件拖到此处,或"),t.createElementVNode("em",null,"点击上传")],-1),xt={class:"el-upload__tip text-center"},It={key:0,class:"el-upload__tip"},Dt=t.createElementVNode("span",null,"仅允许导入xls、xlsx格式文件。",-1),Ot={class:"dialog-footer"},Mt={__name:"index",props:{title:{type:String,default:""},uploadUrl:{type:String,default:""},templateTitle:{type:String,default:""},templateUrl:{type:String,default:""},dataType:{type:String,default:""},showCheckBox:{type:Boolean,default:!0},headers:{type:Object,default:()=>({})}},emits:["loadSucccess"],setup(e,{expose:r,emit:n}){const o=e,s=t.ref(null),l=t.ref(""),c=t.reactive({open:!1,title:"",isUploading:!1,updateSupport:0,headers:o.headers}),u=t.reactive({}),d=()=>{(()=>{l.value=o.uploadUrl;const e=[`updateSupport=${c.updateSupport}`];o.dataType&&e.push(`dataType=${o.dataType}`),Object.keys(u).length&&Object.keys(u).forEach(t=>{e.push(`${t}=${u[t]}`)}),e.length>0&&(l.value+="?"+e.join("&"))})(),t.nextTick(()=>{s.value.submit()})},p=async()=>{if(o.templateUrl)try{const e=((e,t={})=>{if(!e)return"";try{const r=new URL(e,window.location.origin);return Object.keys(t).forEach(e=>{void 0!==t[e]&&null!==t[e]&&r.searchParams.append(e,t[e])}),r.toString()}catch(xr){const n=Object.keys(t).filter(e=>void 0!==t[e]&&null!==t[e]).map(e=>`${encodeURIComponent(e)}=${encodeURIComponent(t[e])}`).join("&");return n?e.includes("?")?`${e}&${n}`:`${e}?${n}`:e}})(o.templateUrl,{...u}),t=await fetch(e,{method:"POST",headers:o.headers||{}});if(!t.ok)throw new Error(`下载失败,状态码:${t.status}`);const r=await t.blob(),n=window.URL.createObjectURL(r),i=document.createElement("a");i.style.display="none",i.href=n;const a=`${o.templateTitle||""}导入模板.xlsx`;i.download=a,document.body.appendChild(i),i.click(),document.body.removeChild(i),window.URL.revokeObjectURL(n)}catch(xr){a.ElMessage.error("模板下载失败,请稍后重试")}else a.ElMessage.error("未配置模板下载地址")},h=(e,t,r)=>{c.isUploading=!0},f=(e,t,r)=>{c.open=!1,c.isUploading=!1,s.value.handleRemove(t);let o=e.msg;500==e.code&&null==e.msg&&(o="文件导入失败,请检查导入文件是否正确"),a.ElMessageBox.alert('<div style="overflow: auto;overflow-x: hidden;max-height: 70vh;padding: 10px 20px 0;">'+o+"</div>","导入结果",{dangerouslyUseHTMLString:!0,confirmButtonText:"确定"}),n("loadSucccess")},v=(e,t,r)=>{c.isUploading=!1,s.value.handleRemove(t),a.ElMessageBox.alert('<div style="overflow: auto;overflow-x: hidden;max-height: 70vh;padding: 10px 20px 0;">文件导入失败,请重新导入</div>',"导入结果",{dangerouslyUseHTMLString:!0,confirmButtonText:"确定"})},m=()=>{c.open=!1,c.isUploading=!1,s.value.clearFiles()};return r({init:e=>{c.open=!0,e&&Object.assign(u,e)}}),(r,n)=>{const o=t.resolveComponent("el-icon"),a=t.resolveComponent("el-checkbox"),u=t.resolveComponent("el-link"),g=t.resolveComponent("el-upload"),y=t.resolveComponent("el-button"),C=t.resolveComponent("el-dialog");return t.openBlock(),t.createBlock(C,{title:e.title+"导入",modelValue:c.open,"onUpdate:modelValue":n[2]||(n[2]=e=>c.open=e),width:"400px","append-to-body":"",onClose:m},{footer:t.withCtx(()=>[t.createElementVNode("div",Ot,[t.createVNode(y,{onClick:n[1]||(n[1]=e=>c.open=!1)},{default:t.withCtx(()=>[t.createTextVNode("取 消")]),_:1}),t.createVNode(y,{type:"primary",onClick:d},{default:t.withCtx(()=>[t.createTextVNode("确 定")]),_:1})])]),default:t.withCtx(()=>[t.createVNode(g,{ref_key:"uploadRef",ref:s,limit:1,accept:".xlsx, .xls",headers:c.headers,action:l.value,disabled:c.isUploading,"on-progress":h,"on-success":f,"on-error":v,"auto-upload":!1,drag:""},{tip:t.withCtx(()=>[t.createElementVNode("div",xt,[e.showCheckBox?(t.openBlock(),t.createElementBlock("div",It,[t.createVNode(a,{modelValue:c.updateSupport,"onUpdate:modelValue":n[0]||(n[0]=e=>c.updateSupport=e)},null,8,["modelValue"]),t.createTextVNode(" 是否更新已经存在的数据 ")])):t.createCommentVNode("",!0),Dt,t.createVNode(u,{type:"primary",underline:!1,style:{"font-size":"12px","vertical-align":"baseline"},onClick:p},{default:t.withCtx(()=>[t.createTextVNode(" 下载模板 ")]),_:1})])]),default:t.withCtx(()=>[t.createVNode(o,{class:"el-icon-upload"},{default:t.withCtx(()=>[t.createVNode(t.unref(i.UploadFilled))]),_:1}),Rt]),_:1},8,["headers","action","disabled"])]),_:1},8,["title","modelValue"])}}},Ut={key:0,class:"search-container"},Vt={class:"table-box"},Ht=["onClick"],Pt={slot:"header",class:"clearfix"},zt=(e=>(t.pushScopeId("data-v-42a8ab57"),e=e(),t.popScopeId(),e))(()=>t.createElementVNode("span",{style:{"font-weight":"bold"}},"已选列表",-1)),Bt={class:"tag-container"},Lt={class:"tag-name"},qt={class:"dialog-footer"},jt=A({__name:"index",props:{mode:{type:String,default:"ElDialog",validator:e=>["ElDialog","ElDrawer"].includes(e)},width:{type:String,default:"80vw"},height:{type:String,default:"45vh"},select:{type:[Array,Object,String],default:()=>[]},tableColumns:{type:Array,default:()=>[]},value:{type:String,default:""},names:{type:String,default:""},request:{type:Function,required:!0},selectOptions:{type:Object,default:()=>({show:!1,multiple:!0,valueKey:"id",nameKey:"name",reserveSelection:!0})},showPagination:{type:Boolean,default:!0}},emits:["change","update:names","input","update:value","action"],setup(e,{expose:r,emit:n}){const o=e,{isMobile:i}=te(),{proxy:s}=t.getCurrentInstance(),l=t.ref({open:!1,title:""}),c=t.computed(()=>o.tableColumns.filter(e=>e.query)),u=t.reactive({queryParams:{pageNum:1,pageSize:20}}),{queryParams:d}=t.toRefs(u),p=async()=>{var e;await a.ElMessage.warning("您确定要全部删除吗?"),S.value=[],null==(e=v.value)||e.clearSelection()},h=()=>{d.value.pageNum=1,E()},f=()=>{s.$refs.queryFormRef.resetFields(),d.value.pageNum=1,E()},v=t.ref(null),m=t.ref([]),g=t.ref(!1),y=t.ref(!1),C=e=>{if(0===e.columnIndex)return"disabledCheck"},S=t.ref([]),T=e=>{let t="";return o.selectOptions.multiple||(t+=" selected-radio"),t},b=e=>{var t;if(!y.value)if(o.selectOptions.multiple)S.value=e;else{if(e.length>1){let r=e.shift();null==(t=v.value)||t.toggleRowSelection(r,!1)}S.value=e}},w=t.ref(0),E=async()=>{var e,r;try{g.value=!0;let n=await o.request(d.value);if(200!==n.code)return;m.value=null!=(r=null!=(e=null==n?void 0:n.rows)?e:n.data)?r:[],w.value=(null==n?void 0:n.total)||0,await t.nextTick(),N()}catch(xr){m.value=[],w.value=0}finally{g.value=!1}},A=()=>{o.selectOptions.multiple?(n("update:value",S.value.map(e=>e[o.selectOptions.valueKey]).join(",")),n("update:names",S.value.map(e=>e[o.selectOptions.nameKey]).join(",")),n("update:select",S.value),n("change",S.value)):(n("update:value",S.value[0]?String(S.value[0][o.selectOptions.valueKey]):""),n("update:names",S.value[0]?String(S.value[0][o.selectOptions.nameKey]):""),n("update:select",S.value[0]||""),n("change",S.value[0]||"")),_()},_=()=>{l.value.open=!1,S.value=[],s.$refs.queryFormRef.resetFields(),d.value={pageNum:1,pageSize:20}};t.watch(()=>l.value.open,e=>{e?(o.value&&(S.value=String(o.value).split(",").filter(e=>e).map((e,t)=>({[o.selectOptions.valueKey]:e,[o.selectOptions.nameKey]:o.names.split(",")[t]}))),o.select&&(S.value=Array.isArray(o.select)?o.select:[o.select])):S.value=[]});const N=()=>{var e;y.value=!0,S.value.length?m.value.forEach(e=>{var t;const r=S.value.find(t=>String(t[o.selectOptions.valueKey])==String(e[o.selectOptions.valueKey]));null==(t=v.value)||t.toggleRowSelection(e,!!r)}):null==(e=v.value)||e.clearSelection(),y.value=!1};return r({open:({title:e,open:t},r={})=>{l.value.title=e,l.value.open=t,d.value={...d.value,...r},E()}}),(r,a)=>{const s=t.resolveComponent("el-input"),u=t.resolveComponent("el-option"),y=t.resolveComponent("el-select"),k=t.resolveComponent("el-form-item"),R=t.resolveComponent("el-button"),x=t.resolveComponent("el-form"),I=t.resolveComponent("el-card"),D=t.resolveComponent("el-table-column"),O=t.resolveComponent("dict-tag"),M=t.resolveComponent("el-table"),U=t.resolveComponent("el-pagination"),V=t.resolveComponent("el-tag"),H=t.resolveComponent("el-empty"),P=t.resolveDirective("loading");return t.openBlock(),t.createBlock(t.resolveDynamicComponent(e.mode),t.mergeProps({onClose:_,"destroy-on-close":"",modelValue:l.value.open,"onUpdate:modelValue":a[4]||(a[4]=e=>l.value.open=e),title:l.value.title,width:e.width,size:e.width,fullscreen:t.unref(i),"close-on-click-modal":!1,"append-to-body":""},{...r.$attrs}),{footer:t.withCtx(()=>[t.createElementVNode("div",qt,[t.createVNode(R,{size:t.unref(i)?"small":"",onClick:_},{default:t.withCtx(()=>[t.createTextVNode("关 闭")]),_:1},8,["size"]),e.selectOptions.show?(t.openBlock(),t.createBlock(R,{key:0,size:t.unref(i)?"small":"",onClick:A},{default:t.withCtx(()=>[t.createTextVNode("确 定")]),_:1},8,["size"])):t.createCommentVNode("",!0)])]),default:t.withCtx(()=>[t.unref(c).length?(t.openBlock(),t.createElementBlock("div",Ut,[t.createVNode(I,{shadow:"hover"},{default:t.withCtx(()=>[t.createVNode(x,{size:t.unref(i)?"small":"",ref:"queryFormRef",model:t.unref(d),inline:!0},{default:t.withCtx(()=>[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(t.unref(c),e=>(t.openBlock(),t.createBlock(k,{label:e.label,prop:e.query.queryKey||e.prop,key:e.query.queryKey},{default:t.withCtx(()=>["input"===e.query.type?(t.openBlock(),t.createBlock(s,{key:0,modelValue:t.unref(d)[e.query.queryKey||e.prop],"onUpdate:modelValue":r=>t.unref(d)[e.query.queryKey||e.prop]=r,placeholder:e.query.placeholder||"请输入",clearable:!1!==e.query.clearable,onChange:h,onKeyup:t.withKeys(h,["enter"])},null,8,["modelValue","onUpdate:modelValue","placeholder","clearable","onKeyup"])):"select"===e.query.type?(t.openBlock(),t.createBlock(y,{key:1,onChange:h,clearable:!1!==e.query.clearable,filterable:!1!==e.query.clearable,modelValue:t.unref(d)[e.query.queryKey||e.prop],"onUpdate:modelValue":r=>t.unref(d)[e.query.queryKey||e.prop]=r,placeholder:e.query.placeholder||"请选择"},{default:t.withCtx(()=>[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(e.query.data,r=>{var n,o,i;return t.openBlock(),t.createBlock(u,{key:r[(null==(n=e.query.optionProps)?void 0:n.value)||"value"],label:r[(null==(o=e.query.optionProps)?void 0:o.label)||"label"],value:r[(null==(i=e.query.optionProps)?void 0:i.value)||"value"]},null,8,["label","value"])}),128))]),_:2},1032,["clearable","filterable","modelValue","onUpdate:modelValue","placeholder"])):(t.openBlock(),t.createBlock(s,{key:2,modelValue:t.unref(d)[e.query.queryKey||e.prop],"onUpdate:modelValue":r=>t.unref(d)[e.query.queryKey||e.prop]=r,placeholder:e.query.placeholder||"请输入",clearable:!1!==e.query.clearable,onChange:h,onKeyup:t.withKeys(h,["enter"])},null,8,["modelValue","onUpdate:modelValue","placeholder","clearable","onKeyup"]))]),_:2},1032,["label","prop"]))),128)),t.createVNode(k,null,{default:t.withCtx(()=>[t.createVNode(R,{onClick:f},{default:t.withCtx(()=>[t.createTextVNode("重置")]),_:1}),t.createVNode(R,{type:"primary",onClick:h},{default:t.withCtx(()=>[t.createTextVNode("查询")]),_:1})]),_:1})]),_:1},8,["size","model"])]),_:1})])):t.createCommentVNode("",!0),t.createElementVNode("div",{style:t.normalizeStyle({height:t.unref(i)?"100%":e.height}),class:t.normalizeClass(["content-box",t.unref(i)&&"content-box-mobile"])},[t.createElementVNode("div",Vt,[t.withDirectives((t.openBlock(),t.createBlock(M,{size:t.unref(i)?"small":"",class:"table-content",ref_key:"tableRef",ref:v,data:m.value,border:"",height:"100%","header-cell-class-name":e.selectOptions.multiple?"":C,onSelectionChange:b,"row-class-name":T,"row-key":e.selectOptions.valueKey},{default:t.withCtx(()=>[e.selectOptions.show?(t.openBlock(),t.createBlock(D,{key:0,"reserve-selection":e.selectOptions.reserveSelection,type:"selection",width:"40",align:"center",fixed:"left"},null,8,["reserve-selection"])):t.createCommentVNode("",!0),(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(e.tableColumns,e=>(t.openBlock(),t.createElementBlock(t.Fragment,{key:e.prop},[e.dict?(t.openBlock(),t.createBlock(D,t.mergeProps({key:0},{...e},{align:"center","show-overflow-tooltip":""}),{default:t.withCtx(r=>[t.createVNode(O,{options:e.dict,value:r.row[e.prop]},null,8,["options","value"])]),_:2},1040)):(t.openBlock(),t.createBlock(D,t.mergeProps({key:1},{...e},{align:"center","show-overflow-tooltip":""}),{default:t.withCtx(r=>[t.createElementVNode("span",{onClick:t=>((e,t,r)=>{e&&n("action",t,r)})(e.action,e.prop,r),class:t.normalizeClass({linkStyle:e.action||!1})},t.toDisplayString(e.format?e.format(r.row,r.$index):r.row[e.prop]),11,Ht)]),_:2},1040))],64))),128))]),_:1},8,["size","data","header-cell-class-name","row-key"])),[[P,g.value]]),e.showPagination?(t.openBlock(),t.createElementBlock(t.Fragment,{key:0},[t.unref(i)?(t.openBlock(),t.createBlock(U,{key:1,class:"pagination mobile-pagination",background:"",onSizeChange:E,onCurrentChange:E,layout:"total, prev, pager, next",total:w.value,"page-size":t.unref(d).pageSize,"onUpdate:page-size":a[2]||(a[2]=e=>t.unref(d).pageSize=e),"current-page":t.unref(d).pageNum,"onUpdate:current-page":a[3]||(a[3]=e=>t.unref(d).pageNum=e),"pager-count":5,small:""},null,8,["total","page-size","current-page"])):(t.openBlock(),t.createBlock(U,{key:0,class:"pagination",background:"",layout:"sizes, total, prev, pager, next, jumper",total:w.value,"page-size":t.unref(d).pageSize,"onUpdate:page-size":a[0]||(a[0]=e=>t.unref(d).pageSize=e),"current-page":t.unref(d).pageNum,"onUpdate:current-page":a[1]||(a[1]=e=>t.unref(d).pageNum=e),"page-sizes":[10,20,30,40,50],onSizeChange:E,onCurrentChange:E},null,8,["total","page-size","current-page"]))],64)):t.createCommentVNode("",!0)]),e.selectOptions.show?(t.openBlock(),t.createBlock(I,{key:0,class:"tag-card",shadow:"never"},{default:t.withCtx(()=>[t.createElementVNode("div",Pt,[zt,t.createVNode(R,{style:{float:"right",padding:"3px 0"},link:"",onClick:p},{default:t.withCtx(()=>[t.createTextVNode("全部删除")]),_:1})]),t.createElementVNode("div",Bt,[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(S.value,r=>(t.openBlock(),t.createElementBlock("div",{key:r[e.selectOptions.valueKey]},[t.createVNode(V,{class:"tag-item",onClose:e=>{return t=r,S.value=S.value.filter(e=>e[o.selectOptions.valueKey]!==t[o.selectOptions.valueKey]),void N();var t},closable:""},{default:t.withCtx(()=>[t.createElementVNode("span",Lt,t.toDisplayString(r[e.selectOptions.nameKey]||r[e.selectOptions.valueKey]),1)]),_:2},1032,["onClose"])]))),128)),S.value.length?t.createCommentVNode("",!0):(t.openBlock(),t.createBlock(H,{key:0,description:"暂未选择"}))])]),_:1})):t.createCommentVNode("",!0)],6)]),_:1},16,["modelValue","title","width","size","fullscreen"])}}},[["__scopeId","data-v-42a8ab57"]]),Ft={class:"action-container"},Gt={key:0,class:"layer-switch"},Kt={key:1,class:"legendContainer"},$t=A({__name:"index",props:{legendConfig:{type:Array,default:()=>[]},height:{type:String,default:"80vh"},width:{type:String,default:"100%"},staticMarkers:{type:Array,default:()=>[]},dynamicMarkers:{type:Array,default:()=>[]},polylines:{type:Array,default:()=>[]},polygons:{type:Array,default:()=>[]},bezierCurves:{type:Array,default:()=>[]},circles:{type:Array,default:()=>[]},center:{type:[String,Array],default:()=>[116.397428,39.90923]},mapStyle:{type:String,default:()=>"amap://styles/grey"},autoFitView:{type:Boolean,default:!0},changeMapType:{type:Boolean,default:!0},viewMode:{type:String,default:"2D"},amapKey:{type:String,default:"",required:!0}},emits:["loaded","overlay-click","overlay-mouseover","overlay-mouseout"],setup(e,{expose:r,emit:n}){const o=e;t.useCssVars(t=>({c5256a18:e.width,"1325cc8e":e.height}));const i=t.ref(null),a=t.shallowRef(null),s=t.ref([]),c=t.ref(!1),u=t.shallowRef(null);t.shallowRef(null);const d=t.shallowRef(null),p=t.shallowRef([]),h=t.shallowRef([]),f=t.shallowRef([]),v=t.shallowRef([]),m=t.shallowRef([]),g=t.shallowRef([]),y=t.shallowRef([]),C=t.shallowRef([]),S=t.shallowRef(new Map),T=t.shallowRef(new Map),b=t.reactive({currentZoom:10,baseZoom:10,minTextVisibleRadius:30,minTextVisibleArea:2e3,markerMinDistance:20,markerClusterDistance:40,circleDefaultConfig:{strokeColor:"#1890ff",strokeOpacity:1,strokeWeight:3,fillColor:"#1890ff",fillOpacity:.1,draggable:!1},markerDefaultConfig:{icon:"https://a.amap.com/jsapi_demos/static/demo-center/icons/poi-marker-default.png",size:{width:26,height:32}},polylineDefaultConfig:{isOutline:!0,outlineColor:"#ffffff",borderWeight:2,strokeColor:"#1890ff",strokeOpacity:1,strokeWeight:8,strokeStyle:"solid",lineJoin:"round",lineCap:"round",showDir:!0,dirColor:"white",dirIconSize:20},bezierCurveDefaultConfig:{isOutline:!0,outlineColor:"#ffffff",borderWeight:2,strokeColor:"#1890ff",strokeOpacity:1,strokeWeight:8,strokeStyle:"solid",lineJoin:"round",lineCap:"round",showDir:!0,dirColor:"white",dirIconSize:20},polygonDefaultConfig:{fillColor:"#1890ff",strokeColor:"#1890ff",fillOpacity:.1,strokeOpacity:1,strokeWeight:3,strokeStyle:"dashed",strokeDasharray:[10,5],draggable:!1},textLabelDefaultStyle:{"background-color":"rgba(255, 255, 255, 0.8)","border-radius":"4px","box-shadow":"0 2px 6px rgba(0, 0, 0, 0.2)",padding:"4px 8px","text-align":"center","font-size":"12px","font-weight":"bold",color:"#333",border:"1px solid #1890ff"}});t.watch(()=>o.center,e=>{a.value&&e&&x(e)},{deep:!0}),t.watch(()=>o.circles,(e,t)=>{a.value&&(l.isEqual(e,t)||(L(),e&&e.length&&H(e),o.autoFitView&&I()))},{deep:!0}),t.watch(()=>o.staticMarkers,(e,t)=>{a.value&&(l.isEqual(e,t)||(q(),e&&e.length&&U(e),o.autoFitView&&I()))},{deep:!0}),t.watch(()=>o.dynamicMarkers,(e,t)=>{a.value&&(l.isEqual(e,t)||(j(),e&&e.length&&V(e),o.autoFitView&&I()))},{deep:!0}),t.watch(()=>o.polylines,(e,t)=>{a.value&&(l.isEqual(e,t)||(F(),e&&e.length&&P(e),o.autoFitView&&I()))},{deep:!0}),t.watch(()=>o.polygons,(e,t)=>{a.value&&(l.isEqual(e,t)||(G(),e&&e.length&&z(e),o.autoFitView&&I()))},{deep:!0}),t.watch(()=>o.bezierCurves,(e,t)=>{a.value&&(l.isEqual(e,t)||(K(),e&&e.length&&B(e),o.autoFitView&&I()))},{deep:!0});t.onMounted(async()=>{await w(),a.value&&(a.value.on("zoomend",()=>{$()}),a.value.on("moveend",()=>{$()})),U(o.staticMarkers),V(o.dynamicMarkers),P(o.polylines),z(o.polygons),B(o.bezierCurves),H(o.circles),o.legendConfig&&o.legendConfig.length&&D(),I(),n("loaded",a.value)}),t.onBeforeUnmount(()=>{a.value&&(a.value.off("zoomend"),a.value.off("moveend"),d.value&&(a.value.removeControl(d.value),d.value=null),q(),j(),F(),G(),K(),L(),T.value.forEach(e=>{e.clearOverlays()}),T.value.clear(),a.value.destroy(),a.value=null),p.value=[],h.value=[],f.value=[],v.value=[],m.value=[],g.value=[],y.value=[],C.value=[],S.value.clear()});const w=async()=>{try{const e=await E.default.load({key:o.amapKey,version:"2.0",plugins:["AMap.Marker","AMap.Polyline","AMap.Polygon","AMap.BezierCurve","AMap.Circle","AMap.Text","AMap.LabelMarker","AMap.BezierCurveEditor","AMap.TileLayer.Satellite","AMap.ControlBar","AMap.OverlayGroup"]}),t={viewMode:o.viewMode,zoom:15,mapStyle:o.mapStyle,center:A(o.center)||[116.397428,39.90923]};"3D"===o.viewMode&&(t.pitch=45),a.value=new e.Map(i.value,t),u.value=new e.TileLayer.Satellite({zIndex:1}),"3D"===o.viewMode&&(d.value||(d.value=new e.ControlBar({position:{bottom:"120px",zIndex:20}}),a.value.addControl(d.value))),b.currentZoom=a.value.getZoom()}catch(e){}},A=e=>"string"==typeof e&&e.includes(",")?e.split(",").map(Number):e,_=e=>e.map(e=>"string"==typeof e?e.split(",").map(Number):e),N=e=>Object.entries(e).map(([e,t])=>`${e}: ${t}`).join("; "),k=(e,t)=>{const r=(e=>{if(!T.value.has(e)){const t=new AMap.OverlayGroup;T.value.set(e,t)}return T.value.get(e)})(t);r.addOverlay(e)},R=e=>{const t=T.value.get(e);t&&(t.clearOverlays(),T.value.delete(e))},x=e=>{a.value&&a.value.setCenter(A(e))},I=(e=null)=>{if(a.value){const t=[...p.value,...h.value,...f.value,...v.value,...m.value,...g.value];t.length>0&&(e?a.value.setFitView(t,!1,e):a.value.setFitView(t))}},D=()=>{s.value=o.legendConfig.filter(e=>void 0===e.defaultVisible||!0===e.defaultVisible).map(e=>e.value),O(s.value)},O=e=>{S.value.clear(),e.forEach(e=>{S.value.set(e,!0)}),o.legendConfig.map(e=>e.value).forEach(t=>{((e,t)=>{const r=T.value.get(e);r&&(t?r.show():r.hide())})(t,e.includes(t))})},M=e=>{e?(a.value.setMapStyle(null),u.value.setMap(a.value),a.value.setFeatures(["bg"])):(a.value.setMapStyle(o.mapStyle),u.value.setMap(null),a.value.setFeatures(["bg","building","point","road","land","poi"]))},U=e=>{e.forEach(e=>{const{position:t,icon:r,size:o,blink:i,label:s,title:l,textLabelDefaultStyle:c,type:u}=e;if(t){const d=new AMap.Marker({position:A(t),icon:new AMap.Icon({image:r||b.markerDefaultConfig.icon,imageSize:o?new AMap.Size(o.width,o.height):new AMap.Size(b.markerDefaultConfig.size.width,b.markerDefaultConfig.size.height)}),size:o?new AMap.Size(o.width,o.height):new AMap.Size(b.markerDefaultConfig.size.width,b.markerDefaultConfig.size.height),offset:o?new AMap.Pixel(-o.width/2,-o.height):new AMap.Pixel(-b.markerDefaultConfig.size.width/2,-b.markerDefaultConfig.size.height),map:a.value,title:l});i&&d.dom&&d.dom.querySelector(".amap-icon").classList.add("blinking-marker"),s&&d.setLabel({direction:"top",offset:new AMap.Pixel(0,-5),content:`<div title="${s}" style="${N({...b.textLabelDefaultStyle,...c})}" class='info'>${s}</div>`}),d.on("click",()=>{n("overlay-click",{type:"staticMarker",data:e})}),d.originalData=e,p.value.push(d),u&&k(d,u)}})},V=e=>{e.forEach(e=>{const{position:t,icon:r,size:o,blink:i,label:s,title:l,textLabelDefaultStyle:c,type:u}=e;if(t){const d=new AMap.Marker({position:A(t),icon:new AMap.Icon({image:r||b.markerDefaultConfig.icon,imageSize:o?new AMap.Size(o.width,o.height):new AMap.Size(b.markerDefaultConfig.size.width,b.markerDefaultConfig.size.height)}),offset:o?new AMap.Pixel(-o.width/2,-o.height):new AMap.Pixel(-b.markerDefaultConfig.size.width/2,-b.markerDefaultConfig.size.height),size:o?new AMap.Size(o.width,o.height):new AMap.Size(b.markerDefaultConfig.size.width,b.markerDefaultConfig.size.height),map:a.value,title:l});i&&d.dom&&d.dom.querySelector(".amap-icon").classList.add("blinking-marker"),s&&d.setLabel({direction:"top",offset:new AMap.Pixel(0,-5),content:`<div title="${s}" style="${N({...b.textLabelDefaultStyle,...c})}" class='info'>${s}</div>`}),d.on("click",()=>{n("overlay-click",{type:"marker",data:e})}),d.originalData=e,h.value.push(d),u&&k(d,u)}})},H=e=>{e.forEach(e=>{if(e.radius&&e.center){const t=new AMap.Circle({...b.circleDefaultConfig,...e,center:A(e.center),radius:e.radius});a.value.add(t);let r=null;e.label&&(r=new AMap.Text({text:e.label,position:A(e.center),zIndex:1,style:{...b.textLabelDefaultStyle,...e.labelStyle||{}},offset:new AMap.Pixel(0,0),anchor:"center",zooms:[1,20]}),a.value.add(r),y.value.push({instance:r,circleId:`${A(e.center).join(",")}|${e.radius}`,circleInstance:t,radius:e.radius})),t.on("click",()=>{n("overlay-click",{type:"circle",data:e})}),t.on("mouseover",()=>{t.setOptions({strokeOpacity:1,strokeWeight:e.strokeWeight?2*e.strokeWeight:2*b.circleDefaultConfig.strokeWeight}),n("overlay-mouseover",{type:"circle",data:e})}),t.on("mouseout",()=>{t.setOptions({strokeOpacity:e.strokeOpacity||b.circleDefaultConfig.strokeOpacity,strokeWeight:e.strokeWeight||b.circleDefaultConfig.strokeWeight}),n("overlay-mouseout",{type:"circle",data:e})}),t.originalData=e,g.value.push(t),e.type&&(k(t,e.type),r&&k(r,e.type))}})},P=e=>{e.forEach(e=>{if(e.path&&e.path.length){const t=new AMap.Polyline({...b.polylineDefaultConfig,...e,path:_(e.path),map:a.value});t.on("click",()=>{n("overlay-click",{type:"polyline",data:e})}),t.on("mouseover",()=>{t.setOptions({strokeOpacity:1,borderWeight:e.borderWeight?2*e.borderWeight:2*b.polylineDefaultConfig.borderWeight}),n("overlay-mouseover",{type:"polyline",data:e})}),t.on("mouseout",()=>{t.setOptions({strokeOpacity:e.strokeOpacity?e.strokeOpacity:b.polylineDefaultConfig.strokeOpacity,borderWeight:e.borderWeight?e.borderWeight:b.polylineDefaultConfig.borderWeight}),n("overlay-mouseout",{type:"polyline",data:e})}),t.originalData=e,f.value.push(t),e.type&&k(t,e.type)}})},z=e=>{e.forEach(e=>{if(e.path&&e.path.length){const t=new AMap.Polygon({...b.polygonDefaultConfig,...e,path:_(e.path),map:a.value});let r=null;if(e.label){const n=(e=>{if(!e||0===e.length)return[0,0];let t=0,r=0;for(let n=0;n<e.length;n++)t+=e[n][0],r+=e[n][1];return[t/e.length,r/e.length]})(_(e.path));r=new AMap.Text({text:e.label,position:n,zIndex:1,style:{...b.textLabelDefaultStyle,...e.labelStyle||{}},offset:new AMap.Pixel(0,0),anchor:"center",zooms:[1,20]}),a.value.add(r),C.value.push({instance:r,polygonId:_(e.path).join("|"),polygonInstance:t,path:_(e.path)})}t.on("click",()=>{n("overlay-click",{type:"polygon",data:e})}),t.on("mouseover",()=>{t.setOptions({strokeOpacity:1,strokeWeight:e.strokeWeight?2*e.strokeWeight:2*b.polygonDefaultConfig.strokeWeight}),n("overlay-mouseover",{type:"polygon",data:e})}),t.on("mouseout",()=>{t.setOptions({strokeOpacity:e.strokeOpacity?e.strokeOpacity:b.polygonDefaultConfig.strokeOpacity,strokeWeight:e.strokeWeight?e.strokeWeight:b.polygonDefaultConfig.strokeWeight}),n("overlay-mouseout",{type:"polygon",data:e})}),t.originalData=e,v.value.push(t),e.type&&(k(t,e.type),r&&k(r,e.type))}})},B=e=>{e.forEach(e=>{if(e.path&&e.path.length){const r=new AMap.BezierCurve({...b.bezierCurveDefaultConfig,...e,path:(t=e.path,t.map(e=>e.map(e=>"string"==typeof e?Number(e):e))),map:a.value}),o=r.getPath();o&&o.length>0&&setTimeout(()=>{r.setPath(o)},1e3),r.on("click",()=>{n("overlay-click",{type:"bezierCurve",data:e})}),r.on("mouseover",()=>{r.setOptions({strokeOpacity:1,borderWeight:e.borderWeight?2*e.borderWeight:2*b.bezierCurveDefaultConfig.borderWeight}),n("overlay-mouseover",{type:"bezierCurve",data:e})}),r.on("mouseout",()=>{r.setOptions({strokeOpacity:e.strokeOpacity?e.strokeOpacity:b.bezierCurveDefaultConfig.strokeOpacity,borderWeight:e.borderWeight?e.borderWeight:b.bezierCurveDefaultConfig.borderWeight}),n("overlay-mouseout",{type:"bezierCurve",data:e})}),r.originalData=e,m.value.push(r),e.type&&k(r,e.type)}var t})},L=()=>{g.value.forEach(e=>{var t;e.off("click"),e.off("mouseover"),e.off("mouseout");const r=null==(t=e.originalData)?void 0:t.type;r&&R(r),e.setMap(null)}),g.value=[],y.value.forEach(e=>{e.instance.setMap(null)}),y.value=[]},q=()=>{p.value.forEach(e=>{var t;e.off("click"),e._clusterLabel&&(e._clusterLabel.off&&e._clusterLabel.off("click"),e._clusterLabel.setMap(null),e._clusterLabel=null);const r=null==(t=e.originalData)?void 0:t.type;r&&R(r),e.setMap(null)}),p.value=[]},j=()=>{h.value.forEach(e=>{var t;e.off("click"),e._clusterLabel&&(e._clusterLabel.off&&e._clusterLabel.off("click"),e._clusterLabel.setMap(null),e._clusterLabel=null);const r=null==(t=e.originalData)?void 0:t.type;r&&R(r),e.setMap(null)}),h.value=[]},F=()=>{f.value.forEach(e=>{var t;e.off("click"),e.off("mouseover"),e.off("mouseout");const r=null==(t=e.originalData)?void 0:t.type;r&&R(r),e.setMap(null)}),f.value=[]},G=()=>{v.value.forEach(e=>{var t;e.off("click"),e.off("mouseover"),e.off("mouseout");const r=null==(t=e.originalData)?void 0:t.type;r&&R(r),e.setMap(null)}),v.value=[],C.value.forEach(e=>{e.instance.setMap(null)}),C.value=[]},K=()=>{m.value.forEach(e=>{var t;e.off("click"),e.off("mouseover"),e.off("mouseout");const r=null==(t=e.originalData)?void 0:t.type;r&&R(r),e.setMap(null)}),m.value=[]},$=()=>{a.value&&(y.value.forEach(e=>{if(!e.circleInstance||!e.instance||!e.instance.dom)return;const t=e.circleInstance.getCenter(),r=e.radius,n=W(t,r),o=e.instance.dom.getBoundingClientRect().width;e.instance.dom.style.opacity=o>1.5*n?"0":"1"}),C.value.forEach(e=>{if(!e.polygonInstance||!e.instance||!e.instance.dom)return;const t=J(e.path),r=e.instance.dom.offsetWidth*e.instance.dom.offsetHeight;e.instance.dom.style.opacity=r>.3*t?"0":"1"}))},W=(e,t)=>{if(!a.value)return 0;const r=new AMap.LngLat(e.lng,e.lat).offset(t,90),n=a.value.lngLatToContainer(e),o=a.value.lngLatToContainer(r),i=o.x-n.x,s=o.y-n.y;return Math.sqrt(i*i+s*s)},J=e=>{if(!a.value||!e||e.length<3)return 0;const t=e.map(e=>{const t=new AMap.LngLat(e[0],e[1]),r=a.value.lngLatToContainer(t);return[r.x,r.y]});let r=0;for(let n=0,o=t.length-1;n<t.length;o=n++)r+=(t[o][0]+t[n][0])*(t[o][1]-t[n][1]);return Math.abs(r/2)};return r({fitView:I,updateCenter:x,handleLayerChange:M}),(r,n)=>{const o=t.resolveComponent("el-switch"),a=t.resolveComponent("el-checkbox"),l=t.resolveComponent("el-checkbox-group");return t.openBlock(),t.createElementBlock("div",{class:"mapViewContainer",id:"mapContainer",ref_key:"mapContainer",ref:i},[t.createElementVNode("div",Ft,[e.changeMapType?(t.openBlock(),t.createElementBlock("div",Gt,[t.createVNode(o,{modelValue:c.value,"onUpdate:modelValue":n[0]||(n[0]=e=>c.value=e),"active-text":"卫星图","inactive-text":"标准图",onChange:M},null,8,["modelValue"])])):t.createCommentVNode("",!0),e.legendConfig.length?(t.openBlock(),t.createElementBlock("div",Kt,[t.createVNode(l,{modelValue:s.value,"onUpdate:modelValue":n[1]||(n[1]=e=>s.value=e),onChange:O},{default:t.withCtx(()=>[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(e.legendConfig,e=>(t.openBlock(),t.createBlock(a,{key:e.value,label:e.value},{default:t.withCtx(()=>[t.createTextVNode(t.toDisplayString(e.label),1)]),_:2},1032,["label"]))),128))]),_:1},8,["modelValue"])])):t.createCommentVNode("",!0)])],512)}}},[["__scopeId","data-v-24729613"]]),Wt={key:0,class:"btn-container"},Jt={class:"help-button-container"},Yt={key:0,class:"layer-switch"},Qt={class:"search-container"},Zt={class:"place-suggestion-item"},Xt={class:"name"},er={class:"address"},tr={class:"search-container"},rr={class:"delete-buttons"},nr={key:0},or={key:0},ir={class:"dialog-footer"},ar=(e=>(t.pushScopeId("data-v-d89fd5ba"),e=e(),t.popScopeId(),e))(()=>t.createElementVNode("div",{class:"operation-guide"},[t.createElementVNode("div",{class:"guide-section"},[t.createElementVNode("strong",null,"开始绘制:"),t.createElementVNode("ul",null,[t.createElementVNode("li",null,"在右侧选择绘制类型(多边形/圆形/折线等)"),t.createElementVNode("li",null,"选择后在地图上进行绘制操作"),t.createElementVNode("li",null,"点位:点击地图放置标记点"),t.createElementVNode("li",null,"折线/多边形:依次点击多个点完成绘制,鼠标右键结束"),t.createElementVNode("li",null,"圆形:长按鼠标左键拖动绘制圆形")])]),t.createElementVNode("div",{class:"guide-section"},[t.createElementVNode("strong",null,"编辑、拖拽覆盖物:"),t.createElementVNode("ul",null,[t.createElementVNode("li",null,[t.createElementVNode("strong",null,"左键双击"),t.createTextVNode("覆盖物(点除外)进入编辑模式")]),t.createElementVNode("li",null,"非圆形覆盖物支持直接拖拽移动"),t.createElementVNode("li",null,"进入编辑后拖拽控制点调整形状和位置"),t.createElementVNode("li",null,"编辑完成后右键地图空白处取消编辑")])]),t.createElementVNode("div",{class:"guide-section"},[t.createElementVNode("strong",null,"删除覆盖物:"),t.createElementVNode("ul",null,[t.createElementVNode("li",null,[t.createElementVNode("strong",null,"右键点击"),t.createTextVNode("覆盖物可删除单个图形")]),t.createElementVNode("li",null,"使用右侧批量操作按钮删除指定类型的所有图形"),t.createElementVNode("li",null,"使用清除所有按钮删除地图上的所有图形")])]),t.createElementVNode("div",{class:"guide-section"},[t.createElementVNode("strong",null,"其他功能:"),t.createElementVNode("ul",null,[t.createElementVNode("li",null,"使用地点搜索快速定位到指定位置"),t.createElementVNode("li",null,"切换卫星图/标准图查看不同地图样式"),t.createElementVNode("li",null,'绘制完成后点击"确认"保存,点击"取消"放弃修改')])])],-1)),sr={class:"dialog-footer"},lr={__name:"index",props:{title:{type:String,default:"地图绘制"},allowedTypes:{type:Array,default:()=>["point","polyline","polygon","circle","bezierCurve"],validator:e=>e.every(e=>["point","polyline","polygon","circle","bezierCurve"].includes(e))},width:{type:String,default:"80vw"},height:{type:String,default:"60vh"},mapStyle:{type:String,default:()=>"amap://styles/normal"},markers:{type:[Array,String],default:()=>[]},markerConfig:{type:Object,default:()=>({})},circles:{type:[Array,String],default:()=>[]},circleConfig:{type:Object,default:()=>({})},polylines:{type:[Array,String],default:()=>[]},polylineConfig:{type:Object,default:()=>({})},polygons:{type:[Array,String],default:()=>[]},polygonConfig:{type:Object,default:()=>({})},bezierCurves:{type:[Array,String],default:()=>[]},bezierCurveConfig:{type:Object,default:()=>({})},disabled:{type:Boolean,default:!1},multiple:{type:[Boolean,Array],default:!0,validator:e=>"boolean"==typeof e||!!Array.isArray(e)&&e.every(e=>["point","polyline","polygon","circle","bezierCurve"].includes(e))},isShowDefaultTriggerBtn:{type:Boolean,default:!0},formatJson:{type:Boolean,default:!0},center:{type:[String,Array,null],default:null},mapZoom:{type:Number,default:13},changeMapType:{type:Boolean,default:!0},amapKey:{type:String,default:"",required:!0}},emits:["update:markers","update:polylines","update:polygons","update:bezierCurves","update:circles"],setup(e,{expose:r,emit:n}){const o=e,{isMobile:s}=te(),l=t.computed({get:()=>Array.isArray(o.markers)?o.markers:Ne(o.markers)?JSON.parse(o.markers):"string"==typeof o.markers&&o.markers?[o.markers]:[],set(e){n("update:markers",e)}}),c=t.computed({get(){if(o.polylines){let e=Ne(o.polylines)?JSON.parse(o.polylines):o.polylines;return Array.isArray(e)&&e.some(e=>Ne(e))&&(e=e.map(e=>Ne(e)?JSON.parse(e):e)),Array.isArray(e)&&1===ke(e)?e.length?[e]:[]:Array.isArray(e)&&ke(e)>1?e:[]}return[]},set(e){n("update:polylines",e)}}),u=t.computed({get(){if(o.polygons){let e=Ne(o.polygons)?JSON.parse(o.polygons):o.polygons;return Array.isArray(e)&&e.some(e=>Ne(e))&&(e=e.map(e=>Ne(e)?JSON.parse(e):e)),Array.isArray(e)&&1===ke(e)?e.length?[e]:[]:Array.isArray(e)&&ke(e)>1?e:[]}return[]},set(e){n("update:polygons",e)}}),d=t.computed({get(){if(o.bezierCurves){let e=Ne(o.bezierCurves)?JSON.parse(o.polbezierCurvesylines):o.bezierCurves;return Array.isArray(e)&&e.some(e=>Ne(e))&&(e=e.map(e=>Ne(e)?JSON.parse(e):e)),Array.isArray(e)&&1===ke(e)?e.length?[e]:[]:Array.isArray(e)&&ke(e)>1?e:[]}return[]},set(e){n("update:bezierCurves",e)}}),p=t.computed({get(){if(o.circles){let e=Ne(o.circles)?JSON.parse(o.circles):o.circles;return Array.isArray(e)&&e.some(e=>Ne(e))&&(e=e.map(e=>Ne(e)?JSON.parse(e):e)),Array.isArray(e)?e:"[object Object]"===Object.prototype.toString.call(e)?[e]:[]}return[]},set(e){n("update:circles",e)}}),h=t.ref(null),f=t.ref(!1),v=t.ref(!1),m=t.ref(!1),g=t.ref(""),y=t.ref(!1),C=t.ref(!1),S=t.shallowRef(null),T=t.shallowRef(null),b=t.ref([]),w=t.ref([]),A=t.ref([]),_=t.ref([]),N=t.ref([]),k=t.ref(null),R=t.ref(null),x=t.ref(null),I=t.ref(null),D=t.ref(null),O=t.ref(null),M=t.ref(""),U=t.ref(""),V=t.ref(null),H=t.reactive({icon:"https://a.amap.com/jsapi_demos/static/demo-center/icons/poi-marker-default.png",size:{width:26,height:32}}),P=t.reactive({isOutline:!0,outlineColor:"#ffffff",borderWeight:2,strokeColor:"#1890ff",strokeOpacity:1,strokeWeight:5,strokeStyle:"solid",lineJoin:"round",lineCap:"round",showDir:!0,dirColor:"white",dirIconSize:20}),z=t.reactive({isOutline:!0,outlineColor:"#ffffff",borderWeight:2,strokeColor:"#1890ff",strokeOpacity:1,strokeWeight:3,strokeStyle:"solid",lineJoin:"round",lineCap:"round",showDir:!0,dirColor:"white",dirIconSize:20}),B=t.reactive({fillColor:"#1890ff",strokeColor:"#1890ff",fillOpacity:.1,strokeOpacity:1,strokeWeight:3,strokeStyle:"dashed",strokeDasharray:[10,5],draggable:!1}),L=t.reactive({strokeColor:"#1890ff",strokeOpacity:1,strokeWeight:3,fillColor:"#1890ff",fillOpacity:.1,zIndex:10,draggable:!1});t.onBeforeUnmount(()=>{S.value&&(S.value.destroy(),S.value=null)});const q=e=>"boolean"==typeof o.multiple?o.multiple:!Array.isArray(o.multiple)||o.multiple.includes(e),j=()=>{y.value=!0,t.nextTick(()=>{F()})},F=async()=>{try{v.value=!0;const t=await E.default.load({key:o.amapKey,version:"2.0",plugins:["AMap.MouseTool","AMap.PolyEditor","AMap.PolygonEditor","AMap.CircleEditor","AMap.BezierCurveEditor","AMap.Geolocation","AMap.PlaceSearch"]}),r={zoom:o.mapZoom,mapStyle:o.mapStyle};o.center&&(r.center="string"==typeof(e=o.center)?e.split(",").map(Number):e),S.value=new t.Map(V.value,r),h.value=new t.TileLayer.Satellite({zIndex:1});const n=new t.Geolocation({enableHighAccuracy:!0,timeout:1e4,zoomToAccuracy:!0,buttonPosition:"RB"});S.value.addControl(n),o.disabled||(T.value=new t.MouseTool(S.value),T.value.on("draw",W)),S.value.on("rightclick",Z),document.addEventListener("contextmenu",e=>{e.preventDefault()}),O.value=new t.PlaceSearch({pageSize:10,pageIndex:1,city:"",citylimit:!1,autoFitView:!0}),o.center?(K(),v.value=!1):n.getCurrentPosition((e,t)=>{"complete"===e?S.value&&S.value.setCenter([t.position.lng,t.position.lat]):S.value&&S.value.setCenter([116.397428,39.90923]),K(),v.value=!1})}catch(t){v.value=!1}var e},G=(e,t)=>{"circle"!==e&&(t.setDraggable(!0),t.on("mousedown",e=>{"circle"===g.value&&t.setDraggable(!1)}),t.on("mouseup",e=>{t.setDraggable(!0)}),t.on("dragend",r=>{"marker"===e&&Y(t),"polyline"===e&&se(t),"polygon"===e&&le(t),"bezierCurve"===e&&ce(t)})),t.on("rightclick",()=>{Z(t)}),"marker"!==e&&t.on("dblclick",e=>{setTimeout(()=>{T.value&&T.value.close()}),X(t)})},K=()=>{if(!S.value)return;const e=window.AMap;b.value=[],w.value=[],A.value=[],_.value=[],N.value=[],l.value.forEach(t=>{const[r,n]=t.split(",").map(Number),{size:i,icon:a}=o.markerConfig,s=new e.Marker({position:[r,n],icon:new e.Icon({image:a||H.icon,imageSize:i?new e.Size(i.width,i.height):new e.Size(H.size.width,H.size.height)}),offset:i?new e.Pixel(-i.width/2,-i.height):new e.Pixel(-H.size.width/2,-H.size.height),size:i?new e.Size(i.width,i.height):new e.Size(H.size.width,H.size.height),map:S.value});G("marker",s),b.value.push({obj:s,position:t,type:"marker"})}),c.value.forEach(t=>{const r=t.map(t=>{const[r,n]=t.split(",").map(Number);return new e.LngLat(r,n)}),n=new e.Polyline({path:r,map:S.value,...P,...o.polylineConfig});G("polyline",n),w.value.push({obj:n,path:t,type:"polyline"})}),u.value.forEach(t=>{const r=t.map(t=>{const[r,n]=t.split(",").map(Number);return new e.LngLat(r,n)}),n=new e.Polygon({path:r,map:S.value,...B,...o.polygonConfig});G("polygon",n),A.value.push({obj:n,path:t,type:"polygon"})}),d.value.forEach(t=>{const r=t.map(e=>e.map(e=>Number(e))),n=new e.BezierCurve({path:r,map:S.value,...z,...o.bezierCurveConfig});G("bezierCurve",n),_.value.push({obj:n,path:t,type:"bezierCurve"})}),p.value.forEach(t=>{const{center:r,radius:n}=t,[i,a]=r.split(",").map(Number),s=new e.Circle({center:[i,a],radius:n,...L,...o.circleConfig});S.value.add(s),G("circle",s),N.value.push({obj:s,center:r,radius:n,type:"circle"})});const t=[...b.value.map(e=>e.obj),...w.value.map(e=>e.obj),...A.value.map(e=>e.obj),..._.value.map(e=>e.obj),...N.value.map(e=>e.obj)];t.length>0&&S.value.setFitView(t)},$=e=>{if(T.value&&!o.disabled)switch(D.value&&ae(),e){case"point":const{size:e,icon:t}=o.markerConfig;T.value.marker({icon:new AMap.Icon({image:t||H.icon,imageSize:e?new AMap.Size(e.width,e.height):new AMap.Size(H.size.width,H.size.height)}),offset:e?new AMap.Pixel(-e.width/2,-e.height):new AMap.Pixel(-H.size.width/2,-H.size.height),size:e?new AMap.Size(e.width,e.height):new AMap.Size(H.size.width,H.size.height)});break;case"polyline":case"bezierCurve":T.value.polyline({...P,...o.polylineConfig});break;case"polygon":T.value.polygon({...B,...o.polygonConfig});break;case"circle":T.value.circle({...L,...o.circleConfig})}},W=e=>{if(m.value=!0,o.disabled)return;const{obj:t}=e;if(t instanceof AMap.Marker&&!q("point")?Ce():t instanceof AMap.Polyline&&"bezierCurve"!==g.value&&!q("polyline")?Se():t instanceof AMap.Polygon&&!q("polygon")?Te():(t instanceof AMap.BezierCurve||t instanceof AMap.Polyline&&"bezierCurve"===g.value)&&!q("bezierCurve")?be():t instanceof AMap.Circle&&!q("circle")&&t._opts.radius&&we(),t instanceof AMap.Marker){const e=t.getPosition(),r={obj:t,position:`${e.lng},${e.lat}`,type:"marker"};b.value.push(r),G("marker",t)}else if(t instanceof AMap.Polyline)if("bezierCurve"===g.value)J(t);else{const e=t.getPath().map(e=>`${e.lng},${e.lat}`);e.length>1?(w.value.push({obj:t,path:e,type:"polyline"}),G("polyline",t)):t.setMap(null)}else if(t instanceof AMap.Polygon){const e=t.getPath().map(e=>`${e.lng},${e.lat}`);e.length>2?(A.value.push({obj:t,path:e,type:"polygon"}),G("polygon",t)):t.setMap(null)}else if(t instanceof AMap.BezierCurve){const e=t.getPath().map(e=>`${e.lng},${e.lat}`);e.length>2?(_.value.push({obj:t,path:e,type:"bezierCurve"}),G("bezierCurve",t)):t.setMap(null)}else if(t instanceof AMap.Circle){const e=t.getCenter(),r=t.getRadius();e&&r>0?(N.value.push({obj:t,center:`${e.lng},${e.lat}`,radius:r,type:"circle"}),G("circle",t)):t.setMap(null)}setTimeout(()=>{m.value=!1},100)},J=e=>{const t=e.getPath();if(t.length<2)return void e.setMap(null);e.setMap(null);const r=[];r.push([t[0].lng,t[0].lat]);for(let o=1;o<t.length;o++){const e=t[o-1],n=t[o],i=e.lng+.3*(n.lng-e.lng),a=e.lat+.3*(n.lat-e.lat);r.push([i,a,n.lng,n.lat])}const n=new AMap.BezierCurve({path:r,...z,...o.bezierCurveConfig,map:S.value});Q(n),_.value.push({obj:n,path:r}),G("bezierCurve",n)},Y=e=>{if(o.disabled)return;const t=e.getPosition(),r=b.value.findIndex(t=>t.obj._amap_id===e._amap_id);-1!==r&&(b.value[r].position=`${t.lng},${t.lat}`)},Q=e=>{o.disabled||(x.value&&x.value.close(),x.value=new AMap.BezierCurveEditor(S.value,e),x.value.open(),D.value=e)},Z=e=>{setTimeout(()=>{o.disabled||m.value||(e instanceof AMap.Marker?ee(e):e instanceof AMap.Polyline?re(e):e instanceof AMap.Polygon?ne(e):e instanceof AMap.BezierCurve?oe(e):e instanceof AMap.Circle?ie(e):(ae(),g.value&&$(g.value)))},50)},X=e=>{var t,r,n;o.disabled||D.value!==e&&(D.value&&ae(),e instanceof AMap.Polyline?(n=e,o.disabled||(k.value&&k.value.close(),k.value=new AMap.PolyEditor(S.value,n),k.value.open(),D.value=n)):e instanceof AMap.Polygon?(r=e,o.disabled||(R.value&&R.value.close(),R.value=new AMap.PolygonEditor(S.value,r),R.value.open(),D.value=r)):e instanceof AMap.BezierCurve?Q(e):e instanceof AMap.Circle&&(t=e,o.disabled||(I.value&&I.value.close(),I.value=new AMap.CircleEditor(S.value,t),I.value.open(),D.value=t)))},ee=e=>{o.disabled||me("single",{type:"marker",instance:e})},re=e=>{o.disabled||me("single",{type:"polyline",instance:e})},ne=e=>{o.disabled||me("single",{type:"polygon",instance:e})},oe=e=>{o.disabled||me("single",{type:"bezierCurve",instance:e})},ie=e=>{o.disabled||me("single",{type:"circle",instance:e})},ae=()=>{o.disabled||(k.value&&D.value instanceof AMap.Polyline&&(se(),k.value.close()),R.value&&D.value instanceof AMap.Polygon&&(le(),R.value.close()),x.value&&D.value instanceof AMap.BezierCurve&&(ce(),x.value.close()),I.value&&D.value instanceof AMap.Circle&&(ue(),I.value.close()),D.value=null)},se=(e=null)=>{const t=null!=e?e:k.value.getTarget();let r=t.getPath();ke(r)>1&&(r=r[0],t.setPath(r));const n=r.map(e=>`${e.lng},${e.lat}`),o=w.value.findIndex(e=>e.obj._amap_id===t._amap_id);-1!==o&&(w.value[o].path=n)},le=(e=null)=>{const t=null!=e?e:R.value.getTarget(),r=t.getPath().map(e=>`${e.lng},${e.lat}`),n=A.value.findIndex(e=>e.obj._amap_id===t._amap_id);-1!==n&&(A.value[n].path=r)},ce=(e=null)=>{const t=null!=e?e:x.value.getTarget(),r=t.getPath(),n=[];try{if(r&&r.length>0){r[0].getLng&&r[0].getLat?n.push([r[0].getLng(),r[0].getLat()]):Array.isArray(r[0])&&(Array.isArray(r[0][0])?n.push(r[0][0]):n.push(r[0]));for(let e=1;e<r.length;e++){const t=r[e];if(Array.isArray(t)&&t.length>=2){const e=[];for(let r=0;r<t.length;r++){const n=t[r];n&&n.getLng&&n.getLat?(e.push(n.getLng()),e.push(n.getLat())):Array.isArray(n)&&n.length>=2?(e.push(n[0]),e.push(n[1])):"number"==typeof n&&e.push(n)}e.length>0&&n.push(e)}}}const e=_.value.findIndex(e=>e.obj._amap_id===t._amap_id);-1!==e&&(_.value[e].path=n)}catch(o){}},ue=(e=null)=>{const t=null!=e?e:I.value.getTarget(),r=t.getCenter(),n=t.getRadius(),o=N.value.findIndex(e=>e.obj._amap_id===t._amap_id);-1!==o&&(N.value[o].center=`${r.lng},${r.lat}`,N.value[o].radius=n)},de=()=>{var e,t,r,n,i;o.disabled||(ae(),q("point")?l.value=b.value.map(e=>({path:"string"==typeof e.position?e.position:o.formatJson?JSON.stringify(e.position):e.position,type:e.type})):l.value=null!=(e=b.value.map(e=>({path:"string"==typeof e.position?e.position:o.formatJson?JSON.stringify(e.position):e.position,type:e.type}))[0])?e:"",q("polyline")?c.value=w.value.map(e=>({path:o.formatJson?JSON.stringify(e.path):e.path,type:e.type})):c.value=null!=(t=w.value.map(e=>({path:o.formatJson?JSON.stringify(e.path):e.path,type:e.type}))[0])?t:"",q("polygon")?u.value=A.value.map(e=>({path:o.formatJson?JSON.stringify(e.path):e.path,type:e.type})):u.value=null!=(r=A.value.map(e=>({path:o.formatJson?JSON.stringify(e.path):e.path,type:e.type}))[0])?r:"",q("bezierCurve")?d.value=_.value.map(e=>({path:o.formatJson?JSON.stringify(e.path):e.path,type:e.type})):d.value=null!=(n=_.value.map(e=>({path:o.formatJson?JSON.stringify(e.path):e.path,type:e.type}))[0])?n:"",q("circle")?p.value=N.value.map(e=>({path:o.formatJson?JSON.stringify({center:e.center,radius:e.radius}):{center:e.center,radius:e.radius},type:e.type})):p.value=null!=(i=N.value.map(e=>({path:o.formatJson?JSON.stringify({center:e.center,radius:e.radius}):{center:e.center,radius:e.radius},type:e.type}))[0])?i:"",pe())},pe=()=>{y.value=!1,f.value=!1,M.value="",U.value="",g.value="",b.value=[],w.value=[],A.value=[],_.value=[],N.value=[],T.value&&(T.value.off("draw",W),T.value.close()),k.value&&k.value.close(),R.value&&R.value.close(),x.value&&x.value.close(),I.value&&I.value.close(),S.value&&(S.value.off("rightclick",Z),S.value.destroy(),S.value=null)},he=e=>({point:"绘制点",polyline:"绘制折线",polygon:"绘制多边形",circle:"绘制圆",bezierCurve:"绘制曲线"}[e]||e),fe=e=>{switch(e){case"point":return b.value.length;case"polyline":return w.value.length;case"polygon":return A.value.length;case"bezierCurve":return _.value.length;case"circle":return N.value.length;default:return 0}},ve=()=>b.value.length+w.value.length+A.value.length+_.value.length+N.value.length,me=async(e,t)=>{try{let r="";if("all"===e)r=`确定要删除所有图形吗?这将清除地图上的所有 ${ve()} 个图形。`;else if("type"===e){const e=he(t).replace("绘制","");r=`确定要删除所有${e}吗?这将清除地图上的所有 ${fe(t)} 个${e}。`}else if("single"===e){let e="";switch(t.type){case"marker":e="点";break;case"polyline":e="折线";break;case"polygon":e="多边形";break;case"bezierCurve":e="曲线";break;case"circle":e="圆形"}r=`确定要删除这个${e}吗?`}if(await a.ElMessageBox.confirm(r,"删除确认"),"all"===e)ge();else if("type"===e)ye(t);else if("single"===e)switch(t.type){case"marker":(e=>{e.setMap(null);const t=b.value.findIndex(t=>t.obj._amap_id===e._amap_id);-1!==t&&b.value.splice(t,1)})(t.instance);break;case"polyline":(e=>{e.setMap(null);const t=w.value.findIndex(t=>t.obj._amap_id===e._amap_id);-1!==t&&w.value.splice(t,1)})(t.instance);break;case"polygon":(e=>{e.setMap(null);const t=A.value.findIndex(t=>t.obj._amap_id===e._amap_id);-1!==t&&A.value.splice(t,1)})(t.instance);break;case"bezierCurve":(e=>{e.setMap(null);const t=_.value.findIndex(t=>t.obj._amap_id===e._amap_id);-1!==t&&_.value.splice(t,1)})(t.instance);break;case"circle":(e=>{e.setMap(null);const t=N.value.findIndex(t=>t.obj._amap_id===e._amap_id);-1!==t&&N.value.splice(t,1)})(t.instance)}}catch(r){}},ge=()=>{o.disabled||(ae(),Ce(),Se(),Te(),be(),we(),$(g.value))},ye=e=>{if(!o.disabled){switch(ae(),e){case"point":Ce();break;case"polyline":Se();break;case"polygon":Te();break;case"bezierCurve":be();break;case"circle":we()}$(g.value)}},Ce=()=>{o.disabled||(b.value.forEach(e=>{e.obj.setMap(null)}),b.value=[])},Se=()=>{o.disabled||(w.value.forEach(e=>{e.obj.setMap(null)}),w.value=[])},Te=()=>{o.disabled||(A.value.forEach(e=>{e.obj.setMap(null)}),A.value=[])},be=()=>{o.disabled||(_.value.forEach(e=>{e.obj.setMap(null)}),_.value=[])},we=()=>{o.disabled||(N.value.forEach(e=>{e.obj.setMap(null)}),N.value=[])},Ee=(e,t)=>{0!==e.length?O.value.search(e,(e,r)=>{if("complete"===e&&"OK"===r.info){const e=r.poiList.pois.map(e=>({name:e.name,address:e.address,location:e.location}));t(e)}else t([])}):t([])},Ae=e=>{let t=(e=>{const t=e.split(",");return 2===t.length&&Re(t[0],t[1])})(e);if(!t)return void a.ElMessage.error("经纬度格式错误,请输入如:103.98673,30.584973 格式,小数位数不超过15位");const r=e.split(",");new AMap.InfoWindow({content:`<div><p>${e}</p></div>`,offset:new AMap.Pixel(0,-30),autoMove:!1,closeWhenClickMap:!0}).open(S.value,r),S.value.setZoomAndCenter(20,r),U.value=""},_e=e=>{if(e&&e.location){new AMap.InfoWindow({content:`<div><h4>${e.name}</h4><p>${e.address||"暂无地址信息"}</p></div>`,offset:new AMap.Pixel(0,-30),autoMove:!1,closeWhenClickMap:!0}).open(S.value,[e.location.lng,e.location.lat]),S.value.setZoomAndCenter(20,[e.location.lng,e.location.lat])}},xe=e=>{e?(S.value.setMapStyle(null),h.value.setMap(S.value),S.value.setFeatures(["bg"])):(S.value.setMapStyle(o.mapStyle),h.value.setMap(null),S.value.setFeatures(["bg","building","point","road","land","poi"]))};return r({openDialog:j}),(r,n)=>{const o=t.resolveComponent("el-button"),a=t.resolveComponent("el-switch"),l=t.resolveComponent("el-divider"),c=t.resolveComponent("el-autocomplete"),u=t.resolveComponent("el-input"),d=t.resolveComponent("el-radio"),p=t.resolveComponent("el-radio-group"),h=t.resolveComponent("el-card"),m=t.resolveComponent("el-dialog"),S=t.resolveDirective("loading");return t.openBlock(),t.createElementBlock("div",null,[t.renderSlot(r.$slots,"trigger",{openDialog:j},()=>[e.isShowDefaultTriggerBtn?(t.openBlock(),t.createBlock(o,{key:0,onClick:j},{default:t.withCtx(()=>[t.createTextVNode("打开绘制弹窗")]),_:1})):t.createCommentVNode("",!0)],!0),t.createVNode(m,{title:e.title,"append-to-body":"",modelValue:y.value,"onUpdate:modelValue":n[6]||(n[6]=e=>y.value=e),width:e.width,onClose:pe,class:"map-drawing-dialog"},{footer:t.withCtx(()=>[t.createElementVNode("span",ir,[t.createVNode(o,{onClick:pe},{default:t.withCtx(()=>[t.createTextVNode("取消")]),_:1}),e.disabled?t.createCommentVNode("",!0):(t.openBlock(),t.createBlock(o,{key:0,type:"primary",onClick:de},{default:t.withCtx(()=>[t.createTextVNode("确认")]),_:1}))])]),default:t.withCtx(()=>[t.withDirectives((t.openBlock(),t.createElementBlock("div",{"element-loading-text":"系统定位中,请稍后...",class:t.normalizeClass(["draw-container",t.unref(s)&&"draw-container-mobile"]),style:t.normalizeStyle({height:e.height})},[t.createElementVNode("div",{class:"map-container",ref_key:"mapContainer",ref:V},null,512),e.disabled?t.createCommentVNode("",!0):(t.openBlock(),t.createElementBlock("div",Wt,[t.createVNode(h,{shadow:"never"},{default:t.withCtx(()=>[t.createElementVNode("div",Jt,[t.createVNode(o,{type:"primary",icon:t.unref(i.QuestionFilled),onClick:n[0]||(n[0]=e=>C.value=!0),class:"help-button"},{default:t.withCtx(()=>[t.createTextVNode(" 操作说明 ")]),_:1},8,["icon"])]),e.changeMapType&&!t.unref(s)?(t.openBlock(),t.createElementBlock("div",Yt,[t.createVNode(a,{modelValue:f.value,"onUpdate:modelValue":n[1]||(n[1]=e=>f.value=e),"active-text":"卫星图","inactive-text":"标准图",onChange:xe},null,8,["modelValue"])])):t.createCommentVNode("",!0),t.unref(s)?t.createCommentVNode("",!0):(t.openBlock(),t.createBlock(l,{key:1,"content-position":"center"},{default:t.withCtx(()=>[t.createTextVNode("地点搜索")]),_:1})),t.createElementVNode("div",Qt,[t.createVNode(c,{modelValue:M.value,"onUpdate:modelValue":n[2]||(n[2]=e=>M.value=e),"fetch-suggestions":Ee,placeholder:"搜索地点",onSelect:_e,"trigger-on-focus":!1,class:"place-search-input"},{default:t.withCtx(({item:e})=>[t.createElementVNode("div",Zt,[t.createElementVNode("div",Xt,t.toDisplayString(e.name),1),t.createElementVNode("div",er,t.toDisplayString(e.address),1)])]),_:1},8,["modelValue"])]),t.unref(s)?t.createCommentVNode("",!0):(t.openBlock(),t.createBlock(l,{key:2,"content-position":"center"},{default:t.withCtx(()=>[t.createTextVNode("经纬度搜索")]),_:1})),t.createElementVNode("div",tr,[t.createVNode(u,{modelValue:U.value,"onUpdate:modelValue":n[3]||(n[3]=e=>U.value=e),onChange:Ae,style:{width:"100%"},placeholder:"请输入GCJ-02坐标系经纬度"},null,8,["modelValue"])]),t.unref(s)?t.createCommentVNode("",!0):(t.openBlock(),t.createBlock(l,{key:3,"content-position":"center"},{default:t.withCtx(()=>[t.createTextVNode("绘制按钮")]),_:1})),t.createVNode(p,{onChange:$,modelValue:g.value,"onUpdate:modelValue":n[4]||(n[4]=e=>g.value=e)},{default:t.withCtx(()=>[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(e.allowedTypes,e=>(t.openBlock(),t.createBlock(d,{key:e,onClick:t.withModifiers(t=>(e=>{e===g.value?g.value="":g.value=e,g.value?$(g.value):T.value&&T.value.close()})(e),["prevent"]),label:e,border:""},{default:t.withCtx(()=>[t.createTextVNode(t.toDisplayString(he(e)),1)]),_:2},1032,["onClick","label"]))),128))]),_:1},8,["modelValue"]),t.createElementVNode("div",rr,[t.unref(s)?t.createCommentVNode("",!0):(t.openBlock(),t.createBlock(l,{key:0,"content-position":"center"},{default:t.withCtx(()=>[t.createTextVNode("批量操作")]),_:1})),(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(e.allowedTypes,e=>(t.openBlock(),t.createBlock(o,{key:`delete-${e}`,size:"small",type:"danger",onClick:t=>me("type",e),disabled:0===fe(e)},{default:t.withCtx(()=>[t.createTextVNode(" 删除所有"+t.toDisplayString(he(e))+" ",1),fe(e)>0?(t.openBlock(),t.createElementBlock("span",nr,"("+t.toDisplayString(fe(e))+")",1)):t.createCommentVNode("",!0)]),_:2},1032,["onClick","disabled"]))),128)),t.unref(s)?t.createCommentVNode("",!0):(t.openBlock(),t.createBlock(l,{key:1,"content-position":"center"},{default:t.withCtx(()=>[t.createTextVNode("全局操作")]),_:1})),t.createVNode(o,{size:"small",type:"danger",onClick:n[5]||(n[5]=e=>me("all")),disabled:0===ve()},{default:t.withCtx(()=>[t.createTextVNode(" 清除所有图形 "),ve()>0?(t.openBlock(),t.createElementBlock("span",or,"("+t.toDisplayString(ve())+")",1)):t.createCommentVNode("",!0)]),_:1},8,["disabled"])])]),_:1})]))],6)),[[S,v.value]])]),_:1},8,["title","modelValue","width"]),t.createVNode(m,{title:"操作说明",modelValue:C.value,"onUpdate:modelValue":n[8]||(n[8]=e=>C.value=e),width:"600px","append-to-body":""},{footer:t.withCtx(()=>[t.createElementVNode("span",sr,[t.createVNode(o,{type:"primary",onClick:n[7]||(n[7]=e=>C.value=!1)},{default:t.withCtx(()=>[t.createTextVNode("我知道了")]),_:1})])]),default:t.withCtx(()=>[ar]),_:1},8,["modelValue"])])}}},cr=A(lr,[["__scopeId","data-v-d89fd5ba"]]),ur={key:0,class:"btn-container"},dr={class:"help-button-container"},pr={key:0,class:"layer-switch"},hr={class:"search-container"},fr={class:"place-suggestion-item"},vr={class:"name"},mr={class:"address"},gr={class:"search-container"},yr={class:"delete-buttons"},Cr={key:0},Sr={key:0},Tr={class:"dialog-footer"},br=(e=>(t.pushScopeId("data-v-6b8c3e46"),e=e(),t.popScopeId(),e))(()=>t.createElementVNode("div",{class:"operation-guide"},[t.createElementVNode("div",{class:"guide-section"},[t.createElementVNode("strong",null,"开始绘制:"),t.createElementVNode("ul",null,[t.createElementVNode("li",null,"先在右侧选择业务类型(如项目点位、项目工区等)"),t.createElementVNode("li",null,"根据业务提示选择可用的绘制方式"),t.createElementVNode("li",null,"点位:点击地图放置标记点"),t.createElementVNode("li",null,"折线/多边形:依次点击多个点完成绘制,鼠标右键结束"),t.createElementVNode("li",null,"圆形:长按鼠标左键拖动绘制圆形")])]),t.createElementVNode("div",{class:"guide-section"},[t.createElementVNode("strong",null,"编辑、拖拽覆盖物:"),t.createElementVNode("ul",null,[t.createElementVNode("li",null,[t.createElementVNode("strong",null,"左键双击"),t.createTextVNode("覆盖物(点除外)进入编辑模式")]),t.createElementVNode("li",null,"非圆形覆盖物支持直接拖拽移动"),t.createElementVNode("li",null,"进入编辑后拖拽控制点调整形状和位置"),t.createElementVNode("li",null,"编辑完成后右键地图空白处取消编辑")])]),t.createElementVNode("div",{class:"guide-section"},[t.createElementVNode("strong",null,"删除覆盖物:"),t.createElementVNode("ul",null,[t.createElementVNode("li",null,[t.createElementVNode("strong",null,"右键点击"),t.createTextVNode("覆盖物可删除单个图形")]),t.createElementVNode("li",null,"使用右侧批量操作按钮删除指定业务类型的所有图形"),t.createElementVNode("li",null,"使用清除所有按钮删除地图上的所有图形")])]),t.createElementVNode("div",{class:"guide-section"},[t.createElementVNode("strong",null,"其他功能:"),t.createElementVNode("ul",null,[t.createElementVNode("li",null,"使用地点搜索快速定位到指定位置"),t.createElementVNode("li",null,"切换卫星图/标准图查看不同地图样式"),t.createElementVNode("li",null,'绘制完成后点击"确认"保存,点击"取消"放弃修改')])])],-1)),wr={class:"dialog-footer"},Er={__name:"index",props:{title:{type:String,default:"地图绘制"},width:{type:String,default:"80vw"},height:{type:String,default:"60vh"},mapStyle:{type:String,default:()=>"amap://styles/normal"},markers:{type:[Array,String],default:()=>[]},markerConfig:{type:Object,default:()=>({})},circles:{type:[Array,String],default:()=>[]},circleConfig:{type:Object,default:()=>({})},polylines:{type:[Array,String],default:()=>[]},polylineConfig:{type:Object,default:()=>({})},polygons:{type:[Array,String],default:()=>[]},polygonConfig:{type:Object,default:()=>({})},bezierCurves:{type:[Array,String],default:()=>[]},bezierCurveConfig:{type:Object,default:()=>({})},disabled:{type:Boolean,default:!1},businessConfigs:{type:Array,default:()=>[{key:"lngLat",label:"项目中心点",multiple:!1,drawTypes:["point"]},{key:"yyxLngLat",label:"项目营业线",multiple:!0,drawTypes:["polyline"]},{key:"projectWorkArea",label:"项目工区",multiple:!0,drawTypes:["polygon","circle"]},{key:"workDeviceArea",label:"作业设备限制区域",multiple:!0,drawTypes:["polygon","circle"]},{key:"workPersonnelArea",label:"作业人员区域",multiple:!0,drawTypes:["polygon","circle"]}],validator(e){const t=["point","polyline","polygon","circle","bezierCurve"];return Array.isArray(e)&&e.every(e=>{if(!e||"object"!=typeof e)return!1;const{key:r,label:n,drawTypes:o,multiple:i}=e;return!("string"!=typeof r||!r)&&(!("string"!=typeof n||!n)&&(!(!Array.isArray(o)||0===o.length)&&(!!o.every(e=>t.includes(e))&&(void 0===i||"boolean"==typeof i))))})}},isShowDefaultTriggerBtn:{type:Boolean,default:!0},formatJson:{type:Boolean,default:!0},center:{type:[String,Array,null],default:null},mapZoom:{type:Number,default:13},changeMapType:{type:Boolean,default:!0},amapKey:{type:String,default:"",required:!0}},emits:["update:markers","update:polylines","update:polygons","update:bezierCurves","update:circles"],setup(e,{expose:r,emit:n}){const o=e,{isMobile:s}=te(),l=t.ref(""),c=e=>o.businessConfigs.find(t=>t.key===e),u=t.computed(()=>c(l.value)||null),d=t.computed(()=>{var e,t;return null!=(t=null==(e=u.value)?void 0:e.drawTypes)?t:[]}),p=t.computed({get:()=>o.markers&&Array.isArray(o.markers)?o.markers.map(e=>({businessKey:e.businessKey||"",type:"marker",path:Ne(e.path)?JSON.parse(e.path):e.path})):[],set(e){n("update:markers",e)}}),h=t.computed({get:()=>o.polylines&&Array.isArray(o.polylines)?o.polylines.map(e=>({businessKey:e.businessKey||"",type:"polyline",path:Ne(e.path)?JSON.parse(e.path):e.path})):[],set(e){n("update:polylines",e)}}),f=t.computed({get:()=>o.polygons&&Array.isArray(o.polygons)?o.polygons.map(e=>({businessKey:e.businessKey||"",type:"polygon",path:Ne(e.path)?JSON.parse(e.path):e.path})):[],set(e){n("update:polygons",e)}}),v=t.computed({get:()=>o.bezierCurves&&Array.isArray(o.bezierCurves)?o.bezierCurves.map(e=>({businessKey:e.businessKey||"",type:"bezierCurve",path:Ne(e.path)?JSON.parse(e.path):e.path})):[],set(e){n("update:bezierCurves",e)}}),m=t.computed({get:()=>o.circles&&Array.isArray(o.circles)?o.circles.map(e=>({businessKey:e.businessKey||"",type:"circle",path:Ne(e.path)?JSON.parse(e.path):e.path})):[],set(e){n("update:circles",e)}}),g=t.ref(null),y=t.ref(!1),C=t.ref(!1),S=t.ref(!1),T=t.ref(""),b=t.ref(!1),w=t.ref(!1),A=t.shallowRef(null),_=t.shallowRef(null),N=t.ref([]),k=t.ref([]),R=t.ref([]),x=t.ref([]),I=t.ref([]),D=t.ref(null),O=t.ref(null),M=t.ref(null),U=t.ref(null),V=t.ref(null),H=t.ref(null),P=t.ref(""),z=t.ref(""),B=t.ref(null),L=t.reactive({icon:"https://a.amap.com/jsapi_demos/static/demo-center/icons/poi-marker-default.png",size:{width:26,height:32}}),q=t.reactive({isOutline:!0,outlineColor:"#ffffff",borderWeight:2,strokeColor:"#1890ff",strokeOpacity:1,strokeWeight:5,strokeStyle:"solid",lineJoin:"round",lineCap:"round",showDir:!0,dirColor:"white",dirIconSize:20}),j=t.reactive({isOutline:!0,outlineColor:"#ffffff",borderWeight:2,strokeColor:"#1890ff",strokeOpacity:1,strokeWeight:3,strokeStyle:"solid",lineJoin:"round",lineCap:"round",showDir:!0,dirColor:"white",dirIconSize:20}),F=t.reactive({fillColor:"#1890ff",strokeColor:"#1890ff",fillOpacity:.1,strokeOpacity:1,strokeWeight:3,strokeStyle:"dashed",strokeDasharray:[10,5],draggable:!1}),G=t.reactive({strokeColor:"#1890ff",strokeOpacity:1,strokeWeight:3,fillColor:"#1890ff",fillOpacity:.1,zIndex:10,draggable:!1});t.onBeforeUnmount(()=>{A.value&&(A.value.destroy(),A.value=null)});const K=()=>{b.value=!0,t.nextTick(()=>{$()})},$=async()=>{try{C.value=!0;const t=await E.default.load({key:o.amapKey,version:"2.0",plugins:["AMap.MouseTool","AMap.PolyEditor","AMap.PolygonEditor","AMap.CircleEditor","AMap.BezierCurveEditor","AMap.Geolocation","AMap.PlaceSearch"]}),r={zoom:o.mapZoom,mapStyle:o.mapStyle};o.center&&(r.center="string"==typeof(e=o.center)?e.split(",").map(Number):e),A.value=new t.Map(B.value,r),g.value=new t.TileLayer.Satellite({zIndex:1});const n=new t.Geolocation({enableHighAccuracy:!0,timeout:1e4,zoomToAccuracy:!0,buttonPosition:"RB"});A.value.addControl(n),o.disabled||(_.value=new t.MouseTool(A.value),_.value.on("draw",re)),A.value.on("rightclick",ae),document.addEventListener("contextmenu",e=>{e.preventDefault()}),H.value=new t.PlaceSearch({pageSize:10,pageIndex:1,city:"",citylimit:!1,autoFitView:!0}),o.center?(Z(),C.value=!1):n.getCurrentPosition((e,t)=>{"complete"===e?A.value&&A.value.setCenter([t.position.lng,t.position.lat]):A.value&&A.value.setCenter([116.397428,39.90923]),Z(),C.value=!1})}catch(t){C.value=!1}var e},W=(e,t)=>{"circle"!==e&&(t.setDraggable(!0),t.on("mousedown",e=>{"circle"===T.value&&t.setDraggable(!1)}),t.on("mouseup",e=>{t.setDraggable(!0)}),t.on("dragend",r=>{"marker"===e&&oe(t),"polyline"===e&&fe(t),"polygon"===e&&ve(t),"bezierCurve"===e&&me(t)})),t.on("rightclick",()=>{ae(t)}),"marker"!==e&&t.on("dblclick",e=>{setTimeout(()=>{_.value&&_.value.close()}),se(t)})},J=e=>{if("string"==typeof e){if(Ne(e))try{return JSON.parse(e)}catch(t){return e}return e}return e},Y=e=>{let t="",r=e;return r&&"object"==typeof r&&!Array.isArray(r)&&(r.businessKey&&(t=r.businessKey),void 0!==r.path?r=r.path:void 0!==r.data&&(r=r.data)),r=J(r),r&&"object"==typeof r&&!Array.isArray(r)&&r.businessKey&&!t&&(t=r.businessKey),{payload:r,businessKey:t}},Q=e=>{var t;const{payload:r,businessKey:n}=Y(e);let o=[];if(!r)return{path:o,businessKey:n};if(Array.isArray(r))o=r;else if("string"==typeof r){const e=J(r);Array.isArray(e)?o=e:e&&"object"==typeof e&&Array.isArray(e.path)&&(o=e.path)}else r&&"object"==typeof r&&(Array.isArray(r.path)?o=r.path:Array.isArray(r)&&(o=r));return{path:o,businessKey:null!=(t=null==r?void 0:r.businessKey)?t:n}},Z=()=>{if(!A.value)return;const e=window.AMap;N.value=[],k.value=[],R.value=[],x.value=[],I.value=[],p.value.forEach(t=>{const r=(e=>{var t,r,n;const{payload:o,businessKey:i}=Y(e);if(!o)return null;if("string"==typeof o)return{position:o,businessKey:i};if(o&&"object"==typeof o){const e=null!=(r=null!=(t=o.position)?t:o.path)?r:"";if("string"==typeof e&&e)return{position:e,businessKey:null!=(n=o.businessKey)?n:i}}return null})(t);if(!r)return;const{position:n,businessKey:i}=r;if(!n)return;const[a,s]=n.split(",").map(Number);if(Number.isNaN(a)||Number.isNaN(s))return;const{size:l,icon:c}=o.markerConfig,u=new e.Marker({position:[a,s],icon:new e.Icon({image:c||L.icon,imageSize:l?new e.Size(l.width,l.height):new e.Size(L.size.width,L.size.height)}),offset:l?new e.Pixel(-l.width/2,-l.height):new e.Pixel(-L.size.width/2,-L.size.height),size:l?new e.Size(l.width,l.height):new e.Size(L.size.width,L.size.height),map:A.value});W("marker",u),N.value.push({obj:u,position:n,type:"marker",businessKey:i})}),h.value.forEach(t=>{const{path:r,businessKey:n}=Q(t);if(!Array.isArray(r)||!r.length)return;const i=r.map(t=>{if("string"==typeof t){const[r,n]=t.split(",").map(Number);return Number.isNaN(r)||Number.isNaN(n)?null:new e.LngLat(r,n)}if(Array.isArray(t)&&t.length>=2){const r=Number(t[0]),n=Number(t[1]);return Number.isNaN(r)||Number.isNaN(n)?null:new e.LngLat(r,n)}return null}).filter(Boolean);if(!i.length)return;const a=new e.Polyline({path:i,map:A.value,...q,...o.polylineConfig});W("polyline",a);const s=i.map(e=>`${e.getLng()},${e.getLat()}`);k.value.push({obj:a,path:s,type:"polyline",businessKey:n})}),f.value.forEach(t=>{const{path:r,businessKey:n}=Q(t);if(!Array.isArray(r)||!r.length)return;const i=r.map(t=>{if("string"==typeof t){const[r,n]=t.split(",").map(Number);return Number.isNaN(r)||Number.isNaN(n)?null:new e.LngLat(r,n)}if(Array.isArray(t)&&t.length>=2){const r=Number(t[0]),n=Number(t[1]);return Number.isNaN(r)||Number.isNaN(n)?null:new e.LngLat(r,n)}return null}).filter(Boolean);if(!i.length)return;const a=new e.Polygon({path:i,map:A.value,...F,...o.polygonConfig});W("polygon",a);const s=i.map(e=>`${e.getLng()},${e.getLat()}`);R.value.push({obj:a,path:s,type:"polygon",businessKey:n})}),v.value.forEach(t=>{const{path:r,businessKey:n}=Q(t);if(!Array.isArray(r)||!r.length)return;const i=r.map(e=>Array.isArray(e)?e.map(e=>Number(e)):Number(e)),a=new e.BezierCurve({path:i,map:A.value,...j,...o.bezierCurveConfig});W("bezierCurve",a),x.value.push({obj:a,path:i,type:"bezierCurve",businessKey:n})}),m.value.forEach(t=>{const r=(e=>{var t,r,n,o,i,a;const{payload:s,businessKey:l}=Y(e);if(!s)return null;let c="",u=0;if("string"==typeof s){const e=J(s);if(e&&"object"==typeof e)return c=null!=(t=e.center)?t:"",u=null!=(r=e.radius)?r:0,{center:c,radius:u,businessKey:null!=(n=e.businessKey)?n:l}}else if(s&&"object"==typeof s)return c=null!=(o=s.center)?o:"",u=null!=(i=s.radius)?i:0,{center:c,radius:u,businessKey:null!=(a=s.businessKey)?a:l};return null})(t);if(!r)return;const{center:n,radius:i,businessKey:a}=r;if(!n||!i)return;const[s,l]=n.split(",").map(Number);if(Number.isNaN(s)||Number.isNaN(l)||Number.isNaN(Number(i)))return;const c=new e.Circle({center:[s,l],radius:i,...G,...o.circleConfig});A.value.add(c),W("circle",c),I.value.push({obj:c,center:n,radius:i,type:"circle",businessKey:a})});const t=[...N.value.map(e=>e.obj),...k.value.map(e=>e.obj),...R.value.map(e=>e.obj),...x.value.map(e=>e.obj),...I.value.map(e=>e.obj)];t.length>0&&A.value.setFitView(t)},X=e=>{if(_.value&&!o.disabled)if(l.value)if(d.value.includes(e))switch(V.value&&he(),e){case"point":const{size:e,icon:t}=o.markerConfig;_.value.marker({icon:new AMap.Icon({image:t||L.icon,imageSize:e?new AMap.Size(e.width,e.height):new AMap.Size(L.size.width,L.size.height)}),offset:e?new AMap.Pixel(-e.width/2,-e.height):new AMap.Pixel(-L.size.width/2,-L.size.height),size:e?new AMap.Size(e.width,e.height):new AMap.Size(L.size.width,L.size.height)});break;case"polyline":case"bezierCurve":_.value.polyline({...q,...o.polylineConfig});break;case"polygon":_.value.polygon({...F,...o.polygonConfig});break;case"circle":_.value.circle({...G,...o.circleConfig,bubble:!0})}else a.ElMessage.warning("当前业务不支持该绘制方式");else a.ElMessage.warning("请先选择业务类型")},ee=()=>{if(!o.disabled&&(he(),T.value="",_.value&&_.value.close(),1===d.value.length)){const[e]=d.value;T.value=e,t.nextTick(()=>{X(e)})}},re=e=>{if(S.value=!0,o.disabled)return;const{obj:t}=e;if(!l.value)return t.setMap(null),void a.ElMessage.warning("请先选择业务类型");const r=l.value;if((e=>{if(!e)return!0;const t=c(e);return!t||!1!==t.multiple})(r)||(xe(r),Ie(r),De(r),Oe(r),Me(r)),t instanceof AMap.Marker){const e=t.getPosition(),n={obj:t,position:`${e.lng},${e.lat}`,type:"marker",businessKey:r};N.value.push(n),W("marker",t)}else if(t instanceof AMap.Polyline)if("bezierCurve"===T.value)ne(t,r);else{const e=t.getPath().map(e=>`${e.lng},${e.lat}`);e.length>1?(k.value.push({obj:t,path:e,type:"polyline",businessKey:r}),W("polyline",t)):t.setMap(null)}else if(t instanceof AMap.Polygon){const e=t.getPath().map(e=>`${e.lng},${e.lat}`);e.length>2?(R.value.push({obj:t,path:e,type:"polygon",businessKey:r}),W("polygon",t)):t.setMap(null)}else if(t instanceof AMap.BezierCurve){const e=t.getPath().map(e=>`${e.lng},${e.lat}`);e.length>2?(x.value.push({obj:t,path:e,type:"bezierCurve",businessKey:r}),W("bezierCurve",t)):t.setMap(null)}else if(t instanceof AMap.Circle){const e=t.getCenter(),n=t.getRadius();e&&n>0?(I.value.push({obj:t,center:`${e.lng},${e.lat}`,radius:n,type:"circle",businessKey:r}),W("circle",t)):t.setMap(null)}setTimeout(()=>{S.value=!1},100)},ne=(e,t)=>{const r=e.getPath();if(r.length<2)return void e.setMap(null);e.setMap(null);const n=[];n.push([r[0].lng,r[0].lat]);for(let o=1;o<r.length;o++){const e=r[o-1],t=r[o],i=e.lng+.3*(t.lng-e.lng),a=e.lat+.3*(t.lat-e.lat);n.push([i,a,t.lng,t.lat])}const i=new AMap.BezierCurve({path:n,...j,...o.bezierCurveConfig,map:A.value});ie(i),x.value.push({obj:i,path:n,businessKey:t,type:"bezierCurve"}),W("bezierCurve",i)},oe=e=>{if(o.disabled)return;const t=e.getPosition(),r=N.value.findIndex(t=>t.obj._amap_id===e._amap_id);-1!==r&&(N.value[r].position=`${t.lng},${t.lat}`)},ie=e=>{o.disabled||(M.value&&M.value.close(),M.value=new AMap.BezierCurveEditor(A.value,e),M.value.open(),V.value=e)},ae=e=>{setTimeout(()=>{o.disabled||S.value||(e instanceof AMap.Marker?le(e):e instanceof AMap.Polyline?ce(e):e instanceof AMap.Polygon?ue(e):e instanceof AMap.BezierCurve?de(e):e instanceof AMap.Circle?pe(e):(he(),T.value&&X(T.value)))},50)},se=e=>{var t,r,n;o.disabled||V.value!==e&&(V.value&&he(),e instanceof AMap.Polyline?(n=e,o.disabled||(D.value&&D.value.close(),D.value=new AMap.PolyEditor(A.value,n),D.value.open(),V.value=n)):e instanceof AMap.Polygon?(r=e,o.disabled||(O.value&&O.value.close(),O.value=new AMap.PolygonEditor(A.value,r),O.value.open(),V.value=r)):e instanceof AMap.BezierCurve?ie(e):e instanceof AMap.Circle&&(t=e,o.disabled||(U.value&&U.value.close(),U.value=new AMap.CircleEditor(A.value,t),U.value.open(),V.value=t)))},le=e=>{if(o.disabled)return;const t=N.value.find(t=>t.obj._amap_id===e._amap_id);Ee("single",{type:"marker",instance:e,businessKey:null==t?void 0:t.businessKey})},ce=e=>{if(o.disabled)return;const t=k.value.find(t=>t.obj._amap_id===e._amap_id);Ee("single",{type:"polyline",instance:e,businessKey:null==t?void 0:t.businessKey})},ue=e=>{if(o.disabled)return;const t=R.value.find(t=>t.obj._amap_id===e._amap_id);Ee("single",{type:"polygon",instance:e,businessKey:null==t?void 0:t.businessKey})},de=e=>{if(o.disabled)return;const t=x.value.find(t=>t.obj._amap_id===e._amap_id);Ee("single",{type:"bezierCurve",instance:e,businessKey:null==t?void 0:t.businessKey})},pe=e=>{if(o.disabled)return;const t=I.value.find(t=>t.obj._amap_id===e._amap_id);Ee("single",{type:"circle",instance:e,businessKey:null==t?void 0:t.businessKey})},he=()=>{o.disabled||(D.value&&V.value instanceof AMap.Polyline&&(fe(),D.value.close()),O.value&&V.value instanceof AMap.Polygon&&(ve(),O.value.close()),M.value&&V.value instanceof AMap.BezierCurve&&(me(),M.value.close()),U.value&&V.value instanceof AMap.Circle&&(ge(),U.value.close()),V.value=null)},fe=(e=null)=>{const t=null!=e?e:D.value.getTarget();let r=t.getPath();ke(r)>1&&(r=r[0],t.setPath(r));const n=r.map(e=>`${e.lng},${e.lat}`),o=k.value.findIndex(e=>e.obj._amap_id===t._amap_id);-1!==o&&(k.value[o].path=n)},ve=(e=null)=>{const t=null!=e?e:O.value.getTarget(),r=t.getPath().map(e=>`${e.lng},${e.lat}`),n=R.value.findIndex(e=>e.obj._amap_id===t._amap_id);-1!==n&&(R.value[n].path=r)},me=(e=null)=>{const t=null!=e?e:M.value.getTarget(),r=t.getPath(),n=[];try{if(r&&r.length>0){r[0].getLng&&r[0].getLat?n.push([r[0].getLng(),r[0].getLat()]):Array.isArray(r[0])&&(Array.isArray(r[0][0])?n.push(r[0][0]):n.push(r[0]));for(let e=1;e<r.length;e++){const t=r[e];if(Array.isArray(t)&&t.length>=2){const e=[];for(let r=0;r<t.length;r++){const n=t[r];n&&n.getLng&&n.getLat?(e.push(n.getLng()),e.push(n.getLat())):Array.isArray(n)&&n.length>=2?(e.push(n[0]),e.push(n[1])):"number"==typeof n&&e.push(n)}e.length>0&&n.push(e)}}}const e=x.value.findIndex(e=>e.obj._amap_id===t._amap_id);-1!==e&&(x.value[e].path=n)}catch(o){}},ge=(e=null)=>{const t=null!=e?e:U.value.getTarget(),r=t.getCenter(),n=t.getRadius(),o=I.value.findIndex(e=>e.obj._amap_id===t._amap_id);-1!==o&&(I.value[o].center=`${r.lng},${r.lat}`,I.value[o].radius=n)},ye=()=>{o.disabled||(he(),p.value=N.value.map(e=>({path:"string"==typeof e.position?e.position:o.formatJson?JSON.stringify(e.position):e.position,type:e.type,businessKey:e.businessKey})),h.value=k.value.map(e=>({path:o.formatJson?JSON.stringify(e.path):e.path,type:e.type,businessKey:e.businessKey})),f.value=R.value.map(e=>({path:o.formatJson?JSON.stringify(e.path):e.path,type:e.type,businessKey:e.businessKey})),v.value=x.value.map(e=>({path:o.formatJson?JSON.stringify(e.path):e.path,type:e.type,businessKey:e.businessKey})),m.value=I.value.map(e=>({path:o.formatJson?JSON.stringify({center:e.center,radius:e.radius}):{center:e.center,radius:e.radius},type:e.type,businessKey:e.businessKey})),Ce())},Ce=()=>{b.value=!1,y.value=!1,P.value="",z.value="",T.value="",l.value="",N.value=[],k.value=[],R.value=[],x.value=[],I.value=[],_.value&&(_.value.off("draw",re),_.value.close()),D.value&&D.value.close(),O.value&&O.value.close(),M.value&&M.value.close(),U.value&&U.value.close(),A.value&&(A.value.off("rightclick",ae),A.value.destroy(),A.value=null)},Se=e=>({point:"绘制点",polyline:"绘制折线",polygon:"绘制多边形",circle:"绘制圆",bezierCurve:"绘制曲线"}[e]||e),Te=e=>{var t;return(null==(t=c(e))?void 0:t.label)||e},be=e=>{if(!e)return 0;return N.value.filter(t=>t.businessKey===e).length+k.value.filter(t=>t.businessKey===e).length+R.value.filter(t=>t.businessKey===e).length+x.value.filter(t=>t.businessKey===e).length+I.value.filter(t=>t.businessKey===e).length},we=()=>N.value.length+k.value.length+R.value.length+x.value.length+I.value.length,Ee=async(e,t)=>{try{let r="";if("all"===e)r=`确定要删除所有图形吗?这将清除地图上的所有 ${we()} 个图形。`;else if("business"===e){const e=Te(t);r=`确定要删除所有${e}吗?这将清除地图上的所有 ${be(t)} 个${e}。`}else if("single"===e){let e="";switch(t.type){case"marker":e="点";break;case"polyline":e="折线";break;case"polygon":e="多边形";break;case"bezierCurve":e="曲线";break;case"circle":e="圆形"}r=`确定要删除这个${t.businessKey?`${Te(t.businessKey)}的`:""}${e}吗?`}if(await a.ElMessageBox.confirm(r,"删除确认"),"all"===e)Ae();else if("business"===e)_e(t);else if("single"===e)switch(t.type){case"marker":(e=>{e.setMap(null);const t=N.value.findIndex(t=>t.obj._amap_id===e._amap_id);-1!==t&&N.value.splice(t,1)})(t.instance);break;case"polyline":(e=>{e.setMap(null);const t=k.value.findIndex(t=>t.obj._amap_id===e._amap_id);-1!==t&&k.value.splice(t,1)})(t.instance);break;case"polygon":(e=>{e.setMap(null);const t=R.value.findIndex(t=>t.obj._amap_id===e._amap_id);-1!==t&&R.value.splice(t,1)})(t.instance);break;case"bezierCurve":(e=>{e.setMap(null);const t=x.value.findIndex(t=>t.obj._amap_id===e._amap_id);-1!==t&&x.value.splice(t,1)})(t.instance);break;case"circle":(e=>{e.setMap(null);const t=I.value.findIndex(t=>t.obj._amap_id===e._amap_id);-1!==t&&I.value.splice(t,1)})(t.instance)}}catch(r){}},Ae=()=>{o.disabled||(he(),xe(),Ie(),De(),Oe(),Me(),T.value&&X(T.value))},_e=e=>{o.disabled||(he(),xe(e),Ie(e),De(e),Oe(e),Me(e),l.value===e&&T.value&&X(T.value))},xe=(e=null)=>{if(o.disabled)return;const t=[];N.value.forEach(r=>{e&&r.businessKey!==e?t.push(r):r.obj.setMap(null)}),N.value=t},Ie=(e=null)=>{if(o.disabled)return;const t=[];k.value.forEach(r=>{e&&r.businessKey!==e?t.push(r):r.obj.setMap(null)}),k.value=t},De=(e=null)=>{if(o.disabled)return;const t=[];R.value.forEach(r=>{e&&r.businessKey!==e?t.push(r):r.obj.setMap(null)}),R.value=t},Oe=(e=null)=>{if(o.disabled)return;const t=[];x.value.forEach(r=>{e&&r.businessKey!==e?t.push(r):r.obj.setMap(null)}),x.value=t},Me=(e=null)=>{if(o.disabled)return;const t=[];I.value.forEach(r=>{e&&r.businessKey!==e?t.push(r):r.obj.setMap(null)}),I.value=t},Ue=(e,t)=>{0!==e.length?H.value.search(e,(e,r)=>{if("complete"===e&&"OK"===r.info){const e=r.poiList.pois.map(e=>({name:e.name,address:e.address,location:e.location}));t(e)}else t([])}):t([])},Ve=e=>{let t=(e=>{const t=e.split(",");return 2===t.length&&Re(t[0],t[1])})(e);if(!t)return void a.ElMessage.error("经纬度格式错误,请输入如:103.98673,30.584973 格式,小数位数不超过15位");const r=e.split(",");new AMap.InfoWindow({content:`<div><p>${e}</p></div>`,offset:new AMap.Pixel(0,-30),autoMove:!1,closeWhenClickMap:!0}).open(A.value,r),A.value.setZoomAndCenter(20,r),z.value=""},He=e=>{if(e&&e.location){new AMap.InfoWindow({content:`<div><h4>${e.name}</h4><p>${e.address||"暂无地址信息"}</p></div>`,offset:new AMap.Pixel(0,-30),autoMove:!1,closeWhenClickMap:!0}).open(A.value,[e.location.lng,e.location.lat]),A.value.setZoomAndCenter(20,[e.location.lng,e.location.lat])}},Pe=e=>{e?(A.value.setMapStyle(null),g.value.setMap(A.value),A.value.setFeatures(["bg"])):(A.value.setMapStyle(o.mapStyle),g.value.setMap(null),A.value.setFeatures(["bg","building","point","road","land","poi"]))};return r({openDialog:K}),(r,n)=>{const o=t.resolveComponent("el-button"),a=t.resolveComponent("el-switch"),c=t.resolveComponent("el-divider"),u=t.resolveComponent("el-autocomplete"),p=t.resolveComponent("el-input"),h=t.resolveComponent("el-radio"),f=t.resolveComponent("el-radio-group"),v=t.resolveComponent("el-card"),m=t.resolveComponent("el-dialog"),g=t.resolveDirective("loading");return t.openBlock(),t.createElementBlock("div",null,[t.renderSlot(r.$slots,"trigger",{openDialog:K},()=>[e.isShowDefaultTriggerBtn?(t.openBlock(),t.createBlock(o,{key:0,onClick:K},{default:t.withCtx(()=>[t.createTextVNode("打开绘制弹窗")]),_:1})):t.createCommentVNode("",!0)],!0),t.createVNode(m,{title:e.title,"append-to-body":"",modelValue:b.value,"onUpdate:modelValue":n[7]||(n[7]=e=>b.value=e),width:e.width,onClose:Ce,class:"map-drawing-dialog"},{footer:t.withCtx(()=>[t.createElementVNode("span",Tr,[t.createVNode(o,{onClick:Ce},{default:t.withCtx(()=>[t.createTextVNode("取消")]),_:1}),e.disabled?t.createCommentVNode("",!0):(t.openBlock(),t.createBlock(o,{key:0,type:"primary",onClick:ye},{default:t.withCtx(()=>[t.createTextVNode("确认")]),_:1}))])]),default:t.withCtx(()=>[t.withDirectives((t.openBlock(),t.createElementBlock("div",{"element-loading-text":"系统定位中,请稍后...",class:t.normalizeClass(["draw-container",t.unref(s)&&"draw-container-mobile"]),style:t.normalizeStyle({height:e.height})},[t.createElementVNode("div",{class:"map-container",ref_key:"mapContainer",ref:B},null,512),e.disabled?t.createCommentVNode("",!0):(t.openBlock(),t.createElementBlock("div",ur,[t.createVNode(v,{shadow:"never"},{default:t.withCtx(()=>[t.createElementVNode("div",dr,[t.createVNode(o,{type:"primary",icon:t.unref(i.QuestionFilled),onClick:n[0]||(n[0]=e=>w.value=!0),class:"help-button"},{default:t.withCtx(()=>[t.createTextVNode(" 操作说明 ")]),_:1},8,["icon"])]),e.changeMapType&&!t.unref(s)?(t.openBlock(),t.createElementBlock("div",pr,[t.createVNode(a,{modelValue:y.value,"onUpdate:modelValue":n[1]||(n[1]=e=>y.value=e),"active-text":"卫星图","inactive-text":"标准图",onChange:Pe},null,8,["modelValue"])])):t.createCommentVNode("",!0),t.unref(s)?t.createCommentVNode("",!0):(t.openBlock(),t.createBlock(c,{key:1,"content-position":"center"},{default:t.withCtx(()=>[t.createTextVNode("地点搜索")]),_:1})),t.createElementVNode("div",hr,[t.createVNode(u,{modelValue:P.value,"onUpdate:modelValue":n[2]||(n[2]=e=>P.value=e),"fetch-suggestions":Ue,placeholder:"搜索地点",onSelect:He,"trigger-on-focus":!1,class:"place-search-input"},{default:t.withCtx(({item:e})=>[t.createElementVNode("div",fr,[t.createElementVNode("div",vr,t.toDisplayString(e.name),1),t.createElementVNode("div",mr,t.toDisplayString(e.address),1)])]),_:1},8,["modelValue"])]),t.unref(s)?t.createCommentVNode("",!0):(t.openBlock(),t.createBlock(c,{key:2,"content-position":"center"},{default:t.withCtx(()=>[t.createTextVNode("经纬度搜索")]),_:1})),t.createElementVNode("div",gr,[t.createVNode(p,{modelValue:z.value,"onUpdate:modelValue":n[3]||(n[3]=e=>z.value=e),onChange:Ve,style:{width:"100%"},placeholder:"请输入GCJ-02坐标系经纬度"},null,8,["modelValue"])]),t.unref(s)?t.createCommentVNode("",!0):(t.openBlock(),t.createBlock(c,{key:3,"content-position":"center"},{default:t.withCtx(()=>[t.createTextVNode("业务类型")]),_:1})),t.createVNode(f,{modelValue:l.value,"onUpdate:modelValue":n[4]||(n[4]=e=>l.value=e),onChange:ee},{default:t.withCtx(()=>[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(e.businessConfigs,e=>(t.openBlock(),t.createBlock(h,{key:e.key,label:e.key,border:""},{default:t.withCtx(()=>[t.createTextVNode(t.toDisplayString(e.label),1)]),_:2},1032,["label"]))),128))]),_:1},8,["modelValue"]),!t.unref(s)&&t.unref(d).length?(t.openBlock(),t.createBlock(c,{key:4,"content-position":"center"},{default:t.withCtx(()=>[t.createTextVNode("绘制方式")]),_:1})):t.createCommentVNode("",!0),t.unref(d).length?(t.openBlock(),t.createBlock(f,{key:5,onChange:X,modelValue:T.value,"onUpdate:modelValue":n[5]||(n[5]=e=>T.value=e)},{default:t.withCtx(()=>[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(t.unref(d),e=>(t.openBlock(),t.createBlock(h,{key:e,onClick:t.withModifiers(t=>(e=>{e===T.value?T.value="":T.value=e,T.value?X(T.value):_.value&&_.value.close()})(e),["prevent"]),label:e,border:""},{default:t.withCtx(()=>[t.createTextVNode(t.toDisplayString(Se(e)),1)]),_:2},1032,["onClick","label"]))),128))]),_:1},8,["modelValue"])):t.createCommentVNode("",!0),t.createElementVNode("div",yr,[t.unref(s)?t.createCommentVNode("",!0):(t.openBlock(),t.createBlock(c,{key:0,"content-position":"center"},{default:t.withCtx(()=>[t.createTextVNode("批量操作")]),_:1})),(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(e.businessConfigs,e=>(t.openBlock(),t.createBlock(o,{key:`delete-${e.key}`,size:"small",type:"danger",onClick:t=>Ee("business",e.key),disabled:0===be(e.key)},{default:t.withCtx(()=>[t.createTextVNode(" 删除所有"+t.toDisplayString(e.label)+" ",1),be(e.key)>0?(t.openBlock(),t.createElementBlock("span",Cr,"("+t.toDisplayString(be(e.key))+")",1)):t.createCommentVNode("",!0)]),_:2},1032,["onClick","disabled"]))),128)),t.unref(s)?t.createCommentVNode("",!0):(t.openBlock(),t.createBlock(c,{key:1,"content-position":"center"},{default:t.withCtx(()=>[t.createTextVNode("全局操作")]),_:1})),t.createVNode(o,{size:"small",type:"danger",onClick:n[6]||(n[6]=e=>Ee("all")),disabled:0===we()},{default:t.withCtx(()=>[t.createTextVNode(" 清除所有图形 "),we()>0?(t.openBlock(),t.createElementBlock("span",Sr,"("+t.toDisplayString(we())+")",1)):t.createCommentVNode("",!0)]),_:1},8,["disabled"])])]),_:1})]))],6)),[[g,C.value]])]),_:1},8,["title","modelValue","width"]),t.createVNode(m,{title:"操作说明",modelValue:w.value,"onUpdate:modelValue":n[9]||(n[9]=e=>w.value=e),width:"600px","append-to-body":""},{footer:t.withCtx(()=>[t.createElementVNode("span",wr,[t.createVNode(o,{type:"primary",onClick:n[8]||(n[8]=e=>w.value=!1)},{default:t.withCtx(()=>[t.createTextVNode("我知道了")]),_:1})])]),default:t.withCtx(()=>[br]),_:1},8,["modelValue"])])}}},Ar=A(Er,[["__scopeId","data-v-6b8c3e46"]]),_r=A({__name:"BimViewer",props:{viewToken:{type:String,default:"121d1db2a4cd444983d0871aa47786eb"},extraContextMenu:{type:Array,default:()=>[{label:"其他",key:"extraOther",children:[{label:"添加养护",key:"addMaintain"},{label:"养护记录",key:"maintainRecord"}]}]}},emits:["contextMenuClick"],setup(e,{emit:r}){const n=e,o=t.ref(null),i=t.ref(null),a=t.ref(null),s=t.ref(null),l=()=>{i.value&&i.value.resize(document.documentElement.clientWidth,document.documentElement.clientHeight-40)},c=e=>{if(e.children&&e.children.length>0){const t=document.createElement("div");t.className="bf-sub-menu";const r=document.createElement("div");r.className="bf-menu-item user-item",r.textContent=e.label,t.appendChild(r);const n=document.createElement("div");return n.className="bf-menu",n.style.width="max-content",e.children.forEach(e=>{const t=c(e);n.appendChild(t)}),t.appendChild(n),t}{const t=document.createElement("div");return t.className="bf-menu-item user-item",t.id=`menu-${e.key}`,t.textContent=e.label,t.dataset.key=e.key,t}},u=(e,t,n)=>{if(t.children&&t.children.length>0)t.children.forEach(t=>{u(e,t,n)});else{const o=e.querySelector(`#menu-${t.key}`);if(!o)return;const i=()=>{r("contextMenuClick",{...t,selectedComponents:n}),p(),o.removeEventListener("click",i)};o.addEventListener("click",i)}},d=e=>{const r=e.getViewer().getModel().getSelectedComponents();if(!r.length)return;const o=document.querySelector(".bf-menu.bf-menu-right"),i=document.querySelector(".bf-menu.bf-menu-left"),s=o||i;if(!s)return;const l=document.getElementById("bim-construction-menu");l&&l.remove();const d=(()=>{const e=document.createElement("div");return e.id="bim-construction-menu",n.extraContextMenu.forEach(t=>{const r=c(t);e.appendChild(r)}),e})();s.appendChild(d),t.nextTick(()=>{((e,t)=>{t.length&&a.value&&n.extraContextMenu.forEach(r=>{u(e,r,t)})})(d,r)})},p=()=>{const e=document.getElementById("bim-construction-menu");e&&e.remove();const t=document.querySelector(".bf-menu.bf-menu-right");t&&(t.style.display="none")},h=()=>{i.value&&(s.value=l,window.addEventListener("resize",s.value),i.value.render())},f=()=>{a.value&&n.extraContextMenu.length&&setTimeout(()=>{d(a.value)},0)},v=e=>{if("3DView"===e.viewType&&o.value)try{const e=new Glodon.Bimface.Application.WebApplication3DConfig;e.domElement=o.value,e.globalUnit=Glodon.Bimface.Common.Units.LengthUnits.Millimeter,a.value=new Glodon.Bimface.Application.WebApplication3D(e),a.value.addView(n.viewToken),i.value=a.value.getViewer(),i.value.addEventListener(Glodon.Bimface.Viewer.Viewer3DEvent.ViewAdded,h),i.value.addEventListener(Glodon.Bimface.Viewer.Viewer3DEvent.ContextMenu,f)}catch(t){}},m=e=>{},g=()=>{t.nextTick(()=>{(()=>{if(!o.value)return;const e=new BimfaceSDKLoaderConfig;e.viewToken=n.viewToken,BimfaceSDKLoader.load(e,v,m)})()})};return t.onMounted(()=>{g()}),t.onBeforeUnmount(()=>{(()=>{var e,t,r,n,o,l;if(s.value&&(window.removeEventListener("resize",s.value),s.value=null),p(),i.value)try{null==(t=(e=i.value).removeEventListener)||t.call(e,Glodon.Bimface.Viewer.Viewer3DEvent.ViewAdded,h),null==(n=(r=i.value).removeEventListener)||n.call(r,Glodon.Bimface.Viewer.Viewer3DEvent.ContextMenu,f)}catch(c){}if(a.value)try{null==(l=(o=a.value).destroy)||l.call(o)}catch(c){}i.value=null,a.value=null})()}),(e,r)=>(t.openBlock(),t.createElementBlock("div",{class:"model-container",ref_key:"bimContainer",ref:o},null,512))}},[["__scopeId","data-v-b60f1ba4"]]),Nr=A({__name:"DwgViewer",props:{viewToken:{type:String,default:"5a6e6e0b33434ba795a107136fd2bc63"},extraContextMenu:{type:Array,default:()=>[{label:"其他",key:"extraOther",children:[{label:"添加养护",key:"addMaintain"},{label:"养护记录",key:"maintainRecord"}]}]}},emits:["contextMenuClick"],setup(e,{emit:r}){const n=e,o=t.ref(null),i=t.ref(null),a=t.ref(null),s=t.ref(null),l=e=>{if(e.children&&e.children.length>0){const t=document.createElement("div");t.className="bf-sub-menu";const r=document.createElement("div");r.className="bf-menu-item user-item",r.textContent=e.label,t.appendChild(r);const n=document.createElement("div");return n.className="bf-menu",n.style.width="max-content",e.children.forEach(e=>{const t=l(e);n.appendChild(t)}),t.appendChild(n),t}{const t=document.createElement("div");return t.className="bf-menu-item user-item",t.id=`menu-${e.key}`,t.textContent=e.label,t.dataset.key=e.key,t}},c=(e,t,n)=>{if(t.children&&t.children.length>0)t.children.forEach(t=>{c(e,t,n)});else{const o=e.querySelector(`#menu-${t.key}`);if(!o)return;const i=()=>{r("contextMenuClick",{...t,selectedComponents:n}),d(),o.removeEventListener("click",i)};o.addEventListener("click",i)}},u=e=>{const r=e.getViewer().getDrawing().getSelectedObjects();if(!r.length)return;const o=document.querySelector(".bf-menu.bf-menu-right"),i=document.querySelector(".bf-menu.bf-menu-left"),s=o||i;if(!s)return;const u=document.getElementById("bim-construction-menu");u&&u.remove();const d=(()=>{const e=document.createElement("div");return e.id="bim-construction-menu",n.extraContextMenu.forEach(t=>{const r=l(t);e.appendChild(r)}),e})();s.appendChild(d),t.nextTick(()=>{((e,t)=>{t.length&&a.value&&n.extraContextMenu.forEach(r=>{c(e,r,t)})})(d,r)})},d=()=>{const e=document.getElementById("bim-construction-menu");e&&e.remove();const t=document.querySelector(".bf-menu.bf-menu-right");t&&(t.style.display="none")},p=()=>{i.value&&window.requestAnimationFrame(()=>{i.value.home()})},h=()=>{a.value&&n.extraContextMenu.length&&setTimeout(()=>{u(a.value)},0)},f=e=>{if("drawingView"===e.viewType&&o.value)try{const e=new Glodon.Bimface.Application.WebApplicationDrawingConfig;e.domElement=o.value,a.value=new Glodon.Bimface.Application.WebApplicationDrawing(e),i.value=a.value.getViewer(),i.value.loadDrawing({viewToken:n.viewToken}),i.value.addEventListener(Glodon.Bimface.Viewer.ViewerDrawingEvent.Loaded,p),i.value.addEventListener(Glodon.Bimface.Viewer.ViewerDrawingEvent.ContextMenu,h)}catch(t){}},v=e=>{},m=()=>{t.nextTick(()=>{(()=>{if(!o.value)return;const e=new BimfaceSDKLoaderConfig;e.viewToken=n.viewToken,BimfaceSDKLoader.load(e,f,v)})()})};return t.onMounted(()=>{m()}),t.onBeforeUnmount(()=>{(()=>{var e,t,r,n,o,l;if(s.value&&(window.removeEventListener("resize",s.value),s.value=null),d(),i.value)try{null==(t=(e=i.value).removeEventListener)||t.call(e,Glodon.Bimface.Viewer.ViewerDrawingEvent.Loaded,p),null==(n=(r=i.value).removeEventListener)||n.call(r,Glodon.Bimface.Viewer.ViewerDrawingEvent.ContextMenu,h)}catch(c){}if(a.value)try{null==(l=(o=a.value).destroy)||l.call(o)}catch(c){}i.value=null,a.value=null})()}),(e,r)=>(t.openBlock(),t.createElementBlock("div",{class:"dwg-container",ref_key:"dwgContainer",ref:o},null,512))}},[["__scopeId","data-v-ab9c8ebd"]]),kr=[{component:k,name:"SCTJDictTag"},{component:x,name:"SCTJTreeSelect"},{component:D,name:"SCTJIcon"},{component:B,name:"SCTJFileUpload"},{component:K,name:"SCTJImageUpload"},{component:W,name:"SCTJImagePreview"},{component:ee,name:"SCTJIconSelect"},{component:oe,name:"SCTJSearch"},{component:ie,name:"SCTJDateRangePicker"},{component:le,name:"SCTJTable"},{component:ue,name:"SCTJTableContainer"},{component:me,name:"SCTJTablePageContainer"},{component:he,name:"SCTJTableTopActionContainer"},{component:de,name:"SCTJRightToolbar"},{component:ge,name:"SCTJBtnContainer"},{component:ye,name:"SCTJBaseChart"},{component:we,name:"SCTJCommonChart"},{component:Ae,name:"SCTJPieChart"},{component:Ve,name:"SCTJFlvPlayer"},{component:tt,name:"SCTJH5hkPlayer"},{component:ft,name:"SCTJHelmetPlayer"},{component:_t,name:"SCTJYsyPlayer"},{component:kt,name:"SCTJIframe"},{component:Mt,name:"SCTJImportDialog"},{component:jt,name:"SCTJDialogTable"},{component:$t,name:"SCTJMapViewer"},{component:cr,name:"SCTJMapDrawingDialog"},{component:Ar,name:"SCTJBusinessMapDrawingDialog"},{component:_r,name:"SCTJBimViewer"},{component:Nr,name:"SCTJDwgViewer"}],Rr={install:e=>{kr.forEach(({component:t,name:r})=>{e.component(r,t)})},SCTJDictTag:k,SCTJTreeSelect:x,SCTJIcon:D,SCTJFileUpload:B,SCTJImageUpload:K,SCTJImagePreview:W,SCTJIconSelect:ee,SCTJSearch:oe,SCTJDateRangePicker:ie,SCTJTable:le,SCTJTableContainer:ue,SCTJTablePageContainer:me,SCTJTableTopActionContainer:he,SCTJRightToolbar:de,SCTJBtnContainer:ge,SCTJBaseChart:ye,SCTJCommonChart:we,SCTJPieChart:Ae,SCTJFlvPlayer:Ve,SCTJH5hkPlayer:tt,SCTJHelmetPlayer:ft,SCTJYsyPlayer:_t,SCTJIframe:kt,SCTJImportDialog:Mt,SCTJDialogTable:jt,SCTJMapViewer:$t,SCTJMapDrawingDialog:cr,SCTJBusinessMapDrawingDialog:Ar,SCTJBimViewer:_r,SCTJDwgViewer:Nr};var xr,Ir;xr=globalThis,Ir=function(){return function(e){var t={};function r(n){if(t[n])return t[n].exports;var o=t[n]={i:n,l:!1,exports:{}};return e[n].call(o.exports,o,o.exports,r),o.l=!0,o.exports}return r.m=e,r.c=t,r.d=function(e,t,n){r.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:n})},r.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},r.t=function(e,t){if(1&t&&(e=r(e)),8&t)return e;if(4&t&&"object"==typeof e&&e&&e.__esModule)return e;var n=Object.create(null);if(r.r(n),Object.defineProperty(n,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var o in e)r.d(n,o,function(t){return e[t]}.bind(null,o));return n},r.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return r.d(t,"a",t),t},r.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},r.p="",r(r.s=30)}([function(e,t,r){var n;Object.defineProperty(t,"__esModule",{value:!0}),(n=t.DialogStatus||(t.DialogStatus={}))[n.STATUS_EARLY=1]="STATUS_EARLY",n[n.STATUS_CONFIRMED=2]="STATUS_CONFIRMED",function(e){e[e.STATUS_NULL=0]="STATUS_NULL",e[e.STATUS_INVITE_SENT=1]="STATUS_INVITE_SENT",e[e.STATUS_1XX_RECEIVED=2]="STATUS_1XX_RECEIVED",e[e.STATUS_INVITE_RECEIVED=3]="STATUS_INVITE_RECEIVED",e[e.STATUS_WAITING_FOR_ANSWER=4]="STATUS_WAITING_FOR_ANSWER",e[e.STATUS_ANSWERED=5]="STATUS_ANSWERED",e[e.STATUS_WAITING_FOR_PRACK=6]="STATUS_WAITING_FOR_PRACK",e[e.STATUS_WAITING_FOR_ACK=7]="STATUS_WAITING_FOR_ACK",e[e.STATUS_CANCELED=8]="STATUS_CANCELED",e[e.STATUS_TERMINATED=9]="STATUS_TERMINATED",e[e.STATUS_ANSWERED_WAITING_FOR_PRACK=10]="STATUS_ANSWERED_WAITING_FOR_PRACK",e[e.STATUS_EARLY_MEDIA=11]="STATUS_EARLY_MEDIA",e[e.STATUS_CONFIRMED=12]="STATUS_CONFIRMED"}(t.SessionStatus||(t.SessionStatus={})),function(e){e[e.STATUS_TRYING=1]="STATUS_TRYING",e[e.STATUS_PROCEEDING=2]="STATUS_PROCEEDING",e[e.STATUS_CALLING=3]="STATUS_CALLING",e[e.STATUS_ACCEPTED=4]="STATUS_ACCEPTED",e[e.STATUS_COMPLETED=5]="STATUS_COMPLETED",e[e.STATUS_TERMINATED=6]="STATUS_TERMINATED",e[e.STATUS_CONFIRMED=7]="STATUS_CONFIRMED"}(t.TransactionStatus||(t.TransactionStatus={})),function(e){e[e.AckClientTransaction=0]="AckClientTransaction",e[e.ClientContext=1]="ClientContext",e[e.ConfigurationError=2]="ConfigurationError",e[e.Dialog=3]="Dialog",e[e.DigestAuthentication=4]="DigestAuthentication",e[e.DTMF=5]="DTMF",e[e.IncomingMessage=6]="IncomingMessage",e[e.IncomingRequest=7]="IncomingRequest",e[e.IncomingResponse=8]="IncomingResponse",e[e.InvalidStateError=9]="InvalidStateError",e[e.InviteClientContext=10]="InviteClientContext",e[e.InviteClientTransaction=11]="InviteClientTransaction",e[e.InviteServerContext=12]="InviteServerContext",e[e.InviteServerTransaction=13]="InviteServerTransaction",e[e.Logger=14]="Logger",e[e.LoggerFactory=15]="LoggerFactory",e[e.MethodParameterError=16]="MethodParameterError",e[e.NameAddrHeader=17]="NameAddrHeader",e[e.NonInviteClientTransaction=18]="NonInviteClientTransaction",e[e.NonInviteServerTransaction=19]="NonInviteServerTransaction",e[e.NotSupportedError=20]="NotSupportedError",e[e.OutgoingRequest=21]="OutgoingRequest",e[e.Parameters=22]="Parameters",e[e.PublishContext=23]="PublishContext",e[e.ReferClientContext=24]="ReferClientContext",e[e.ReferServerContext=25]="ReferServerContext",e[e.RegisterContext=26]="RegisterContext",e[e.RenegotiationError=27]="RenegotiationError",e[e.RequestSender=28]="RequestSender",e[e.ServerContext=29]="ServerContext",e[e.Session=30]="Session",e[e.SessionDescriptionHandler=31]="SessionDescriptionHandler",e[e.SessionDescriptionHandlerError=32]="SessionDescriptionHandlerError",e[e.SessionDescriptionHandlerObserver=33]="SessionDescriptionHandlerObserver",e[e.Subscription=34]="Subscription",e[e.Transport=35]="Transport",e[e.TransportError=36]="TransportError",e[e.UA=37]="UA",e[e.URI=38]="URI"}(t.TypeStrings||(t.TypeStrings={})),function(e){e[e.STATUS_INIT=0]="STATUS_INIT",e[e.STATUS_STARTING=1]="STATUS_STARTING",e[e.STATUS_READY=2]="STATUS_READY",e[e.STATUS_USER_CLOSED=3]="STATUS_USER_CLOSED",e[e.STATUS_NOT_READY=4]="STATUS_NOT_READY"}(t.UAStatus||(t.UAStatus={}))},function(e,t,r){Object.defineProperty(t,"__esModule",{value:!0});var n,o,i=r(16);(n=t.C||(t.C={})).USER_AGENT=i.title+"/"+i.version,n.SIP="sip",n.SIPS="sips",(o=n.causes||(n.causes={})).CONNECTION_ERROR="Connection Error",o.INTERNAL_ERROR="Internal Error",o.REQUEST_TIMEOUT="Request Timeout",o.SIP_FAILURE_CODE="SIP Failure Code",o.ADDRESS_INCOMPLETE="Address Incomplete",o.AUTHENTICATION_ERROR="Authentication Error",o.BUSY="Busy",o.DIALOG_ERROR="Dialog Error",o.INCOMPATIBLE_SDP="Incompatible SDP",o.NOT_FOUND="Not Found",o.REDIRECTED="Redirected",o.REJECTED="Rejected",o.UNAVAILABLE="Unavailable",o.BAD_MEDIA_DESCRIPTION="Bad Media Description",o.CANCELED="Canceled",o.EXPIRES="Expires",o.NO_ACK="No ACK",o.NO_ANSWER="No Answer",o.NO_PRACK="No PRACK",o.RTP_TIMEOUT="RTP Timeout",o.USER_DENIED_MEDIA_ACCESS="User Denied Media Access",o.WEBRTC_ERROR="WebRTC Error",o.WEBRTC_NOT_SUPPORTED="WebRTC Not Supported",function(e){e.REQUIRED="required",e.SUPPORTED="supported",e.UNSUPPORTED="none"}(n.supported||(n.supported={})),n.SIP_ERROR_CAUSES={ADDRESS_INCOMPLETE:[484],AUTHENTICATION_ERROR:[401,407],BUSY:[486,600],INCOMPATIBLE_SDP:[488,606],NOT_FOUND:[404,604],REDIRECTED:[300,301,302,305,380],REJECTED:[403,603],UNAVAILABLE:[480,410,408,430]},n.ACK="ACK",n.BYE="BYE",n.CANCEL="CANCEL",n.INFO="INFO",n.INVITE="INVITE",n.MESSAGE="MESSAGE",n.NOTIFY="NOTIFY",n.OPTIONS="OPTIONS",n.REGISTER="REGISTER",n.UPDATE="UPDATE",n.SUBSCRIBE="SUBSCRIBE",n.PUBLISH="PUBLISH",n.REFER="REFER",n.PRACK="PRACK",n.REASON_PHRASE={100:"Trying",180:"Ringing",181:"Call Is Being Forwarded",182:"Queued",183:"Session Progress",199:"Early Dialog Terminated",200:"OK",202:"Accepted",204:"No Notification",300:"Multiple Choices",301:"Moved Permanently",302:"Moved Temporarily",305:"Use Proxy",380:"Alternative Service",400:"Bad Request",401:"Unauthorized",402:"Payment Required",403:"Forbidden",404:"Not Found",405:"Method Not Allowed",406:"Not Acceptable",407:"Proxy Authentication Required",408:"Request Timeout",410:"Gone",412:"Conditional Request Failed",413:"Request Entity Too Large",414:"Request-URI Too Long",415:"Unsupported Media Type",416:"Unsupported URI Scheme",417:"Unknown Resource-Priority",420:"Bad Extension",421:"Extension Required",422:"Session Interval Too Small",423:"Interval Too Brief",428:"Use Identity Header",429:"Provide Referrer Identity",430:"Flow Failed",433:"Anonymity Disallowed",436:"Bad Identity-Info",437:"Unsupported Certificate",438:"Invalid Identity Header",439:"First Hop Lacks Outbound Support",440:"Max-Breadth Exceeded",469:"Bad Info Package",470:"Consent Needed",478:"Unresolvable Destination",480:"Temporarily Unavailable",481:"Call/Transaction Does Not Exist",482:"Loop Detected",483:"Too Many Hops",484:"Address Incomplete",485:"Ambiguous",486:"Busy Here",487:"Request Terminated",488:"Not Acceptable Here",489:"Bad Event",491:"Request Pending",493:"Undecipherable",494:"Security Agreement Required",500:"Internal Server Error",501:"Not Implemented",502:"Bad Gateway",503:"Service Unavailable",504:"Server Time-out",505:"Version Not Supported",513:"Message Too Large",580:"Precondition Failure",600:"Busy Everywhere",603:"Decline",604:"Does Not Exist Anywhere",606:"Not Acceptable"},n.OPTION_TAGS={"100rel":!0,199:!0,answermode:!0,"early-session":!0,eventlist:!0,explicitsub:!0,"from-change":!0,"geolocation-http":!0,"geolocation-sip":!0,gin:!0,gruu:!0,histinfo:!0,ice:!0,join:!0,"multiple-refer":!0,norefersub:!0,nosub:!0,outbound:!0,path:!0,policy:!0,precondition:!0,pref:!0,privacy:!0,"recipient-list-invite":!0,"recipient-list-message":!0,"recipient-list-subscribe":!0,replaces:!0,"resource-priority":!0,"sdp-anat":!0,"sec-agree":!0,tdialog:!0,timer:!0,uui:!0},function(e){e.INFO="info",e.RTP="rtp"}(n.dtmfType||(n.dtmfType={}))},function(e,t,r){Object.defineProperty(t,"__esModule",{value:!0});var n,o=r(1),i=r(0),a=r(4);(n=t.Utils||(t.Utils={})).defer=function(){var e={};return e.promise=new Promise(function(t,r){e.resolve=t,e.reject=r}),e},n.reducePromises=function(e,t){return e.reduce(function(e,t){return e.then(t)},Promise.resolve(t))},n.str_utf8_length=function(e){return encodeURIComponent(e).replace(/%[A-F\d]{2}/g,"U").length},n.generateFakeSDP=function(e){if(e){var t=e.indexOf("o="),r=e.indexOf("\r\n",t);return"v=0\r\n"+e.slice(t,r)+"\r\ns=-\r\nt=0 0\r\nc=IN IP4 0.0.0.0"}},n.isDecimal=function(e){var t=parseInt(e,10);return!isNaN(t)&&parseFloat(e)===t},n.createRandomToken=function(e,t){void 0===t&&(t=32);for(var r="",n=0;n<e;n++)r+=Math.floor(Math.random()*t).toString(t);return r},n.newTag=function(){return n.createRandomToken(10)},n.newUUID=function(){return"xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx".replace(/[xy]/g,function(e){var t=Math.floor(16*Math.random());return("x"===e?t:t%4+8).toString(16)})},n.normalizeTarget=function(e,t){if(e){if(e.type===i.TypeStrings.URI)return e;if("string"==typeof e){var r=e.split("@"),s=void 0,l=void 0;switch(r.length){case 1:if(!t)return;s=e,l=t;break;case 2:s=r[0],l=r[1];break;default:s=r.slice(0,r.length-1).join("@"),l=r[r.length-1]}return s=s.replace(/^(sips?|tel):/i,""),/^[\-\.\(\)]*\+?[0-9\-\.\(\)]+$/.test(s)&&(s=s.replace(/[\-\.\(\)]/g,"")),e=o.C.SIP+":"+n.escapeUser(s)+"@"+l,a.Grammar.URIParse(e)}}},n.escapeUser=function(e){return encodeURIComponent(decodeURIComponent(e)).replace(/%3A/gi,":").replace(/%2B/gi,"+").replace(/%3F/gi,"?").replace(/%2F/gi,"/")},n.headerize=function(e){for(var t={"Call-Id":"Call-ID",Cseq:"CSeq","Min-Se":"Min-SE",Rack:"RAck",Rseq:"RSeq","Www-Authenticate":"WWW-Authenticate"},r=e.toLowerCase().replace(/_/g,"-").split("-"),n=r.length,o="",i=0;i<n;i++)0!==i&&(o+="-"),o+=r[i].charAt(0).toUpperCase()+r[i].substring(1);return t[o]&&(o=t[o]),o},n.sipErrorCause=function(e){for(var t in o.C.SIP_ERROR_CAUSES)if(-1!==o.C.SIP_ERROR_CAUSES[t].indexOf(e))return o.C.causes[t];return o.C.causes.SIP_FAILURE_CODE},n.getReasonPhrase=function(e,t){return t||o.C.REASON_PHRASE[e]||""},n.getReasonHeaderValue=function(e,t){return"SIP;cause="+e+';text="'+(t=n.getReasonPhrase(e,t))+'"'},n.getCancelReason=function(e,t){if(e&&e<200||e>699)throw new TypeError("Invalid statusCode: "+e);if(e)return n.getReasonHeaderValue(e,t)},n.buildStatusLine=function(e,t){if(!e||e<100||e>699)throw new TypeError("Invalid statusCode: "+e);if(t&&"string"!=typeof t&&!(t instanceof String))throw new TypeError("Invalid reason: "+t);return"SIP/2.0 "+e+" "+(t=n.getReasonPhrase(e,t))+"\r\n"}},function(e,t,r){var n,o="object"==typeof Reflect?Reflect:null,i=o&&"function"==typeof o.apply?o.apply:function(e,t,r){return Function.prototype.apply.call(e,t,r)};n=o&&"function"==typeof o.ownKeys?o.ownKeys:Object.getOwnPropertySymbols?function(e){return Object.getOwnPropertyNames(e).concat(Object.getOwnPropertySymbols(e))}:function(e){return Object.getOwnPropertyNames(e)};var a=Number.isNaN||function(e){return e!=e};function s(){s.init.call(this)}e.exports=s,s.EventEmitter=s,s.prototype._events=void 0,s.prototype._eventsCount=0,s.prototype._maxListeners=void 0;var l=10;function c(e){return void 0===e._maxListeners?s.defaultMaxListeners:e._maxListeners}function u(e,t,r,n){var o,i,a;if("function"!=typeof r)throw new TypeError('The "listener" argument must be of type Function. Received type '+typeof r);if(void 0===(i=e._events)?(i=e._events=Object.create(null),e._eventsCount=0):(void 0!==i.newListener&&(e.emit("newListener",t,r.listener?r.listener:r),i=e._events),a=i[t]),void 0===a)a=i[t]=r,++e._eventsCount;else if("function"==typeof a?a=i[t]=n?[r,a]:[a,r]:n?a.unshift(r):a.push(r),(o=c(e))>0&&a.length>o&&!a.warned){a.warned=!0;var s=new Error("Possible EventEmitter memory leak detected. "+a.length+" "+String(t)+" listeners added. Use emitter.setMaxListeners() to increase limit");s.name="MaxListenersExceededWarning",s.emitter=e,s.type=t,s.count=a.length,console&&console.warn}return e}function d(e,t,r){var n={fired:!1,wrapFn:void 0,target:e,type:t,listener:r},o=function(){for(var e=[],t=0;t<arguments.length;t++)e.push(arguments[t]);this.fired||(this.target.removeListener(this.type,this.wrapFn),this.fired=!0,i(this.listener,this.target,e))}.bind(n);return o.listener=r,n.wrapFn=o,o}function p(e,t,r){var n=e._events;if(void 0===n)return[];var o=n[t];return void 0===o?[]:"function"==typeof o?r?[o.listener||o]:[o]:r?function(e){for(var t=new Array(e.length),r=0;r<t.length;++r)t[r]=e[r].listener||e[r];return t}(o):f(o,o.length)}function h(e){var t=this._events;if(void 0!==t){var r=t[e];if("function"==typeof r)return 1;if(void 0!==r)return r.length}return 0}function f(e,t){for(var r=new Array(t),n=0;n<t;++n)r[n]=e[n];return r}Object.defineProperty(s,"defaultMaxListeners",{enumerable:!0,get:function(){return l},set:function(e){if("number"!=typeof e||e<0||a(e))throw new RangeError('The value of "defaultMaxListeners" is out of range. It must be a non-negative number. Received '+e+".");l=e}}),s.init=function(){void 0!==this._events&&this._events!==Object.getPrototypeOf(this)._events||(this._events=Object.create(null),this._eventsCount=0),this._maxListeners=this._maxListeners||void 0},s.prototype.setMaxListeners=function(e){if("number"!=typeof e||e<0||a(e))throw new RangeError('The value of "n" is out of range. It must be a non-negative number. Received '+e+".");return this._maxListeners=e,this},s.prototype.getMaxListeners=function(){return c(this)},s.prototype.emit=function(e){for(var t=[],r=1;r<arguments.length;r++)t.push(arguments[r]);var n="error"===e,o=this._events;if(void 0!==o)n=n&&void 0===o.error;else if(!n)return!1;if(n){var a;if(t.length>0&&(a=t[0]),a instanceof Error)throw a;var s=new Error("Unhandled error."+(a?" ("+a.message+")":""));throw s.context=a,s}var l=o[e];if(void 0===l)return!1;if("function"==typeof l)i(l,this,t);else{var c=l.length,u=f(l,c);for(r=0;r<c;++r)i(u[r],this,t)}return!0},s.prototype.addListener=function(e,t){return u(this,e,t,!1)},s.prototype.on=s.prototype.addListener,s.prototype.prependListener=function(e,t){return u(this,e,t,!0)},s.prototype.once=function(e,t){if("function"!=typeof t)throw new TypeError('The "listener" argument must be of type Function. Received type '+typeof t);return this.on(e,d(this,e,t)),this},s.prototype.prependOnceListener=function(e,t){if("function"!=typeof t)throw new TypeError('The "listener" argument must be of type Function. Received type '+typeof t);return this.prependListener(e,d(this,e,t)),this},s.prototype.removeListener=function(e,t){var r,n,o,i,a;if("function"!=typeof t)throw new TypeError('The "listener" argument must be of type Function. Received type '+typeof t);if(void 0===(n=this._events))return this;if(void 0===(r=n[e]))return this;if(r===t||r.listener===t)0==--this._eventsCount?this._events=Object.create(null):(delete n[e],n.removeListener&&this.emit("removeListener",e,r.listener||t));else if("function"!=typeof r){for(o=-1,i=r.length-1;i>=0;i--)if(r[i]===t||r[i].listener===t){a=r[i].listener,o=i;break}if(o<0)return this;0===o?r.shift():function(e,t){for(;t+1<e.length;t++)e[t]=e[t+1];e.pop()}(r,o),1===r.length&&(n[e]=r[0]),void 0!==n.removeListener&&this.emit("removeListener",e,a||t)}return this},s.prototype.off=s.prototype.removeListener,s.prototype.removeAllListeners=function(e){var t,r,n;if(void 0===(r=this._events))return this;if(void 0===r.removeListener)return 0===arguments.length?(this._events=Object.create(null),this._eventsCount=0):void 0!==r[e]&&(0==--this._eventsCount?this._events=Object.create(null):delete r[e]),this;if(0===arguments.length){var o,i=Object.keys(r);for(n=0;n<i.length;++n)"removeListener"!==(o=i[n])&&this.removeAllListeners(o);return this.removeAllListeners("removeListener"),this._events=Object.create(null),this._eventsCount=0,this}if("function"==typeof(t=r[e]))this.removeListener(e,t);else if(void 0!==t)for(n=t.length-1;n>=0;n--)this.removeListener(e,t[n]);return this},s.prototype.listeners=function(e){return p(this,e,!0)},s.prototype.rawListeners=function(e){return p(this,e,!1)},s.listenerCount=function(e,t){return"function"==typeof e.listenerCount?e.listenerCount(t):h.call(e,t)},s.prototype.listenerCount=h,s.prototype.eventNames=function(){return this._eventsCount>0?n(this._events):[]}},function(e,t,r){Object.defineProperty(t,"__esModule",{value:!0});var n,o=r(31);(n=t.Grammar||(t.Grammar={})).parse=function(e,t){var r={startRule:t};try{o.parse(e,r)}catch(n){r.data=-1}return r.data},n.nameAddrHeaderParse=function(e){var t=n.parse(e,"Name_Addr_Header");return-1!==t?t:void 0},n.URIParse=function(e){var t=n.parse(e,"SIP_URI");return-1!==t?t:void 0}},function(e,t,r){var n,o=this&&this.__extends||(n=function(e,t){return(n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)t.hasOwnProperty(r)&&(e[r]=t[r])})(e,t)},function(e,t){function r(){this.constructor=e}n(e,t),e.prototype=null===t?Object.create(t):(r.prototype=t.prototype,new r)});Object.defineProperty(t,"__esModule",{value:!0});var i=r(0),a=function(e){function t(t,r,n){var o=e.call(this,n)||this;return o.code=t,o.name=r,o.message=n,o}return o(t,e),t}(Error);!function(e){var t=function(e){function t(t,r){var n=e.call(this,1,"CONFIGURATION_ERROR",r?"Invalid value "+JSON.stringify(r)+" for parameter '"+t+"'":"Missing parameter: "+t)||this;return n.type=i.TypeStrings.ConfigurationError,n.parameter=t,n.value=r,n}return o(t,e),t}(a);e.ConfigurationError=t;var r=function(e){function t(t){var r=e.call(this,2,"INVALID_STATE_ERROR","Invalid status: "+t)||this;return r.type=i.TypeStrings.InvalidStateError,r.status=t,r}return o(t,e),t}(a);e.InvalidStateError=r;var n=function(e){function t(t){var r=e.call(this,3,"NOT_SUPPORTED_ERROR",t)||this;return r.type=i.TypeStrings.NotSupportedError,r}return o(t,e),t}(a);e.NotSupportedError=n;var s=function(e){function t(t){var r=e.call(this,5,"RENEGOTIATION_ERROR",t)||this;return r.type=i.TypeStrings.RenegotiationError,r}return o(t,e),t}(a);e.RenegotiationError=s;var l=function(e){function t(t,r,n){var o=e.call(this,6,"METHOD_PARAMETER_ERROR",n?"Invalid value "+JSON.stringify(n)+" for parameter '"+r+"'":"Missing parameter: "+r)||this;return o.type=i.TypeStrings.MethodParameterError,o.method=t,o.parameter=r,o.value=n,o}return o(t,e),t}(a);e.MethodParameterError=l;var c=function(e){function t(t){var r=e.call(this,7,"TRANSPORT_ERROR",t)||this;return r.type=i.TypeStrings.TransportError,r}return o(t,e),t}(a);e.TransportError=c;var u=function(e){function t(t,r,n){var o=e.call(this,8,"SESSION_DESCRIPTION_HANDLER_ERROR",n||"Error with Session Description Handler")||this;return o.type=i.TypeStrings.SessionDescriptionHandlerError,o.method=t,o.error=r,o}return o(t,e),t}(a);e.SessionDescriptionHandlerError=u}(t.Exceptions||(t.Exceptions={}))},function(e,t,r){var n,o=this&&this.__extends||(n=function(e,t){return(n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)t.hasOwnProperty(r)&&(e[r]=t[r])})(e,t)},function(e,t){function r(){this.constructor=e}n(e,t),e.prototype=null===t?Object.create(t):(r.prototype=t.prototype,new r)});Object.defineProperty(t,"__esModule",{value:!0});var i=r(1),a=r(0),s=r(4),l=r(2),c=function(e){var t=[];e.method===i.C.REGISTER?t.push("path","gruu"):e.method===i.C.INVITE&&(e.ua.contact.pubGruu||e.ua.contact.tempGruu)&&t.push("gruu"),e.ua.configuration.rel100===i.C.supported.SUPPORTED&&t.push("100rel"),e.ua.configuration.replaces===i.C.supported.SUPPORTED&&t.push("replaces"),t.push("outbound"),t=t.concat(e.ua.configuration.extraSupported||[]);var r=e.ua.configuration.hackAllowUnregisteredOptionTags||!1,n={};return"Supported: "+(t=t.filter(function(e){var t=i.C.OPTION_TAGS[e],o=!n[e];return n[e]=!0,(t||r)&&o})).join(", ")+"\r\n"},u=function(){function e(e,t,r,n,o,i){void 0===n&&(n={}),this.type=a.TypeStrings.OutgoingRequest,this.logger=r.getLogger("sip.sipmessage"),this.ua=r,this.headers={},this.method=e,this.ruri=t,this.body=i,this.extraHeaders=(o||[]).slice(),this.statusCode=n.statusCode,this.reasonPhrase=n.reasonPhrase,n.routeSet?this.setHeader("route",n.routeSet):r.configuration.usePreloadedRoute&&r.transport&&this.setHeader("route",r.transport.server.sipUri),this.setHeader("via",""),this.setHeader("max-forwards","70");var c=n.toUri||t,u=n.toDisplayName||0===n.toDisplayName?'"'+n.toDisplayName+'" ':"";u+="<"+(c.type===a.TypeStrings.URI?c.toRaw():c)+">",u+=n.toTag?";tag="+n.toTag:"",this.to=s.Grammar.nameAddrHeaderParse(u),this.setHeader("to",u);var d,p=n.fromUri||r.configuration.uri||"";d=n.fromDisplayName||0===n.fromDisplayName?'"'+n.fromDisplayName+'" ':r.configuration.displayName?'"'+r.configuration.displayName+'" ':"",d+="<"+(p.type===a.TypeStrings.URI?p.toRaw():p)+">;tag=",d+=n.fromTag||l.Utils.newTag(),this.from=s.Grammar.nameAddrHeaderParse(d),this.setHeader("from",d),this.callId=n.callId||r.configuration.sipjsId+l.Utils.createRandomToken(15),this.setHeader("call-id",this.callId),this.cseq=n.cseq||Math.floor(1e4*Math.random()),this.setHeader("cseq",this.cseq+" "+e)}return e.prototype.setHeader=function(e,t){this.headers[l.Utils.headerize(e)]=t instanceof Array?t:[t]},e.prototype.getHeader=function(e){var t=this.headers[l.Utils.headerize(e)];if(t){if(t[0])return t[0]}else for(var r=new RegExp("^\\s*"+e+"\\s*:","i"),n=0,o=this.extraHeaders;n<o.length;n++){var i=o[n];if(r.test(i))return i.substring(i.indexOf(":")+1).trim()}},e.prototype.cancel=function(e,t){},e.prototype.getHeaders=function(e){var t=[],r=this.headers[l.Utils.headerize(e)];if(r)for(var n=0,o=r;n<o.length;n++){var i=o[n];t.push(i)}else for(var a=new RegExp("^\\s*"+e+"\\s*:","i"),s=0,c=this.extraHeaders;s<c.length;s++){var u=c[s];a.test(u)&&t.push(u.substring(u.indexOf(":")+1).trim())}return t},e.prototype.hasHeader=function(e){if(this.headers[l.Utils.headerize(e)])return!0;for(var t=new RegExp("^\\s*"+e+"\\s*:","i"),r=0,n=this.extraHeaders;r<n.length;r++){var o=n[r];if(t.test(o))return!0}return!1},e.prototype.toString=function(){var e="";for(var t in e+=this.method+" "+(this.ruri.type===a.TypeStrings.URI?this.ruri.toRaw():this.ruri)+" SIP/2.0\r\n",this.headers)if(this.headers[t])for(var r=0,n=this.headers[t];r<n.length;r++)e+=t+": "+n[r]+"\r\n";for(var o=0,i=this.extraHeaders;o<i.length;o++)e+=(t=i[o]).trim()+"\r\n";return e+=c(this),e+="User-Agent: "+this.ua.configuration.userAgentString+"\r\n",this.body?"string"==typeof this.body?(e+="Content-Length: "+l.Utils.str_utf8_length(this.body)+"\r\n\r\n",e+=this.body):this.body.body&&this.body.contentType?(e+="Content-Type: "+this.body.contentType+"\r\n",e+="Content-Length: "+l.Utils.str_utf8_length(this.body.body)+"\r\n\r\n",e+=this.body.body):e+="Content-Length: 0\r\n\r\n":e+="Content-Length: 0\r\n\r\n",e},e}();t.OutgoingRequest=u;var d=function(){function e(){this.type=a.TypeStrings.IncomingMessage,this.headers={}}return e.prototype.addHeader=function(e,t){var r={raw:t};e=l.Utils.headerize(e),this.headers[e]?this.headers[e].push(r):this.headers[e]=[r]},e.prototype.getHeader=function(e){var t=this.headers[l.Utils.headerize(e)];if(t)return t[0]?t[0].raw:void 0},e.prototype.getHeaders=function(e){var t=this.headers[l.Utils.headerize(e)],r=[];if(!t)return[];for(var n=0,o=t;n<o.length;n++){var i=o[n];r.push(i.raw)}return r},e.prototype.hasHeader=function(e){return!!this.headers[l.Utils.headerize(e)]},e.prototype.parseHeader=function(e,t){if(void 0===t&&(t=0),e=l.Utils.headerize(e),this.headers[e]&&!(t>=this.headers[e].length)){var r=this.headers[e][t],n=r.raw;if(r.parsed)return r.parsed;var o=s.Grammar.parse(n,e.replace(/-/g,"_"));return-1===o?void this.headers[e].splice(t,1):(r.parsed=o,o)}},e.prototype.s=function(e,t){return void 0===t&&(t=0),this.parseHeader(e,t)},e.prototype.setHeader=function(e,t){this.headers[l.Utils.headerize(e)]=[{raw:t}]},e.prototype.toString=function(){return this.data},e}(),p=function(e){function t(t){var r=e.call(this)||this;return r.type=a.TypeStrings.IncomingRequest,r.logger=t.getLogger("sip.sipmessage"),r.ua=t,r}return o(t,e),t.prototype.reply=function(e,t,r,n,o,a){var s=l.Utils.buildStatusLine(e,t);if(r=(r||[]).slice(),this.method===i.C.INVITE&&e>100&&e<=200)for(var u=0,d=this.getHeaders("record-route");u<d.length;u++)s+="Record-Route: "+d[u]+"\r\n";for(var p=0,h=this.getHeaders("via");p<h.length;p++)s+="Via: "+h[p]+"\r\n";var f=this.getHeader("to")||"";!this.toTag&&e>100?f+=";tag="+l.Utils.newTag():this.toTag&&!this.s("to").hasParam("tag")&&(f+=";tag="+this.toTag),s+="To: "+f+"\r\n",s+="From: "+this.getHeader("From")+"\r\n",s+="Call-ID: "+this.callId+"\r\n",s+="CSeq: "+this.cseq+" "+this.method+"\r\n";for(var v=0,m=r;v<m.length;v++)s+=m[v].trim()+"\r\n";return s+=c(this),s+="User-Agent: "+this.ua.configuration.userAgentString+"\r\n",n?"string"==typeof n?(s+="Content-Type: application/sdp\r\n",s+="Content-Length: "+l.Utils.str_utf8_length(n)+"\r\n\r\n",s+=n):n.body&&n.contentType?(s+="Content-Type: "+n.contentType+"\r\n",s+="Content-Length: "+l.Utils.str_utf8_length(n.body)+"\r\n\r\n",s+=n.body):s+="Content-Length: 0\r\n\r\n":s+="Content-Length: 0\r\n\r\n",this.serverTransaction&&this.serverTransaction.receiveResponse(e,s).then(o,a),s},t.prototype.reply_sl=function(e,t){for(var r=l.Utils.buildStatusLine(e,t),n=0,o=this.getHeaders("via");n<o.length;n++)r+="Via: "+o[n]+"\r\n";var i=this.getHeader("To")||"";!this.toTag&&e>100?i+=";tag="+l.Utils.newTag():this.toTag&&!this.s("to").hasParam("tag")&&(i+=";tag="+this.toTag),r+="To: "+i+"\r\n",r+="From: "+this.getHeader("From")+"\r\n",r+="Call-ID: "+this.callId+"\r\n",r+="CSeq: "+this.cseq+" "+this.method+"\r\n",r+="User-Agent: "+this.ua.configuration.userAgentString+"\r\n",r+="Content-Length: 0\r\n\r\n",this.transport&&this.transport.send(r)},t}(d);t.IncomingRequest=p;var h=function(e){function t(t){var r=e.call(this)||this;return r.type=a.TypeStrings.IncomingResponse,r.logger=t.getLogger("sip.sipmessage"),r.headers={},r}return o(t,e),t}(d);t.IncomingResponse=h},function(e,t,r){var n,o=this&&this.__extends||(n=function(e,t){return(n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)t.hasOwnProperty(r)&&(e[r]=t[r])})(e,t)},function(e,t){function r(){this.constructor=e}n(e,t),e.prototype=null===t?Object.create(t):(r.prototype=t.prototype,new r)});Object.defineProperty(t,"__esModule",{value:!0});var i=r(3),a=r(1),s=r(0),l=r(8),c=r(6),u=r(2),d=function(e){function t(r,n,o,i){var a=e.call(this)||this;return a.data={},t.initializer(a,r,n,o,i),a}return o(t,e),t.initializer=function(e,t,r,n,o){if(e.type=s.TypeStrings.ClientContext,void 0===n)throw new TypeError("Not enough arguments");e.ua=t,e.logger=t.getLogger("sip.clientcontext"),e.method=r;var i=t.normalizeTarget(n);if(!i)throw new TypeError("Invalid target: "+n);(o=Object.create(o||Object.prototype)).extraHeaders=(o.extraHeaders||[]).slice(),e.request=new c.OutgoingRequest(e.method,i,e.ua,o.params,o.extraHeaders),o.body&&(e.body={},e.body.body=o.body,o.contentType&&(e.body.contentType=o.contentType),e.request.body=e.body),e.request.from&&(e.localIdentity=e.request.from),e.request.to&&(e.remoteIdentity=e.request.to)},t.prototype.send=function(){return new l.RequestSender(this,this.ua).send(),this},t.prototype.receiveResponse=function(e){var t=e.statusCode||0,r=u.Utils.getReasonPhrase(t);switch(!0){case/^1[0-9]{2}$/.test(t.toString()):this.emit("progress",e,r);break;case/^2[0-9]{2}$/.test(t.toString()):this.ua.applicants[this.toString()]&&delete this.ua.applicants[this.toString()],this.emit("accepted",e,r);break;default:this.ua.applicants[this.toString()]&&delete this.ua.applicants[this.toString()],this.emit("rejected",e,r),this.emit("failed",e,r)}},t.prototype.onRequestTimeout=function(){this.emit("failed",void 0,a.C.causes.REQUEST_TIMEOUT)},t.prototype.onTransportError=function(){this.emit("failed",void 0,a.C.causes.CONNECTION_ERROR)},t}(i.EventEmitter);t.ClientContext=d},function(e,t,r){Object.defineProperty(t,"__esModule",{value:!0});var n=r(1),o=r(0),i=r(9),a=function(){function e(e,t){this.type=o.TypeStrings.RequestSender,this.logger=t.getLogger("sip.requestsender"),this.ua=t,this.applicant=e,this.method=e.request.method,this.request=e.request,this.credentials=void 0,this.challenged=!1,this.staled=!1,t.status===o.UAStatus.STATUS_USER_CLOSED&&this.method!==n.C.BYE&&this.method!==n.C.ACK&&this.onTransportError()}return e.prototype.send=function(){if(!this.ua.transport)throw new Error("No transport to make transaction");switch(this.method){case"INVITE":this.clientTransaction=new i.InviteClientTransaction(this,this.request,this.ua.transport);break;case"ACK":this.clientTransaction=new i.AckClientTransaction(this,this.request,this.ua.transport);break;default:this.clientTransaction=new i.NonInviteClientTransaction(this,this.request,this.ua.transport)}return this.clientTransaction.send(),this.clientTransaction},e.prototype.onRequestTimeout=function(){this.applicant.onRequestTimeout()},e.prototype.onTransportError=function(){this.applicant.onTransportError()},e.prototype.receiveResponse=function(e){var t=e&&e.statusCode?e.statusCode:0;if(401===t||407===t){var r=void 0,o=void 0;if(401===t?(r=e.parseHeader("www-authenticate"),o="authorization"):(r=e.parseHeader("proxy-authenticate"),o="proxy-authorization"),!r)return this.logger.warn(t+" with wrong or missing challenge, cannot authenticate"),void this.applicant.receiveResponse(e);if(!this.challenged||!this.staled&&!0===r.stale){if(!this.credentials&&this.ua.configuration.authenticationFactory&&(this.credentials=this.ua.configuration.authenticationFactory(this.ua)),!this.credentials.authenticate(this.request,r))return void this.applicant.receiveResponse(e);this.challenged=!0,r.stale&&(this.staled=!0);var i=void 0;e.method===n.C.REGISTER?i=this.applicant.cseq+=1:this.request.dialog?i=this.request.dialog.localSeqnum+=1:(i=(this.request.cseq||0)+1,this.request.cseq=i),this.request.setHeader("cseq",i+" "+this.method),this.request.setHeader(o,this.credentials.toString()),this.send()}else this.applicant.receiveResponse(e)}else this.applicant.receiveResponse(e)},e}();t.RequestSender=a},function(e,t,r){var n,o=this&&this.__extends||(n=function(e,t){return(n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)t.hasOwnProperty(r)&&(e[r]=t[r])})(e,t)},function(e,t){function r(){this.constructor=e}n(e,t),e.prototype=null===t?Object.create(t):(r.prototype=t.prototype,new r)});Object.defineProperty(t,"__esModule",{value:!0});var i=r(3),a=r(1),s=r(0),l=r(6),c=r(11),u=2,d=4,p=5,h=6,f="nict",v="nist",m="ict",g="ist",y=function(e,t,r){var n="SIP/2.0/"+(e.configuration.hackViaTcp?"TCP":t.server.scheme);return n+=" "+e.configuration.viaHost+";branch="+r,e.configuration.forceRport&&(n+=";rport"),n},C=function(e){function t(t,r,n){var o=e.call(this)||this;o.kind=f,o.type=s.TypeStrings.NonInviteClientTransaction,o.transport=n,o.id="z9hG4bK"+Math.floor(1e7*Math.random()),o.requestSender=t,o.request=r,o.logger=t.ua.getLogger("sip.transaction.nict",o.id);var i=y(t.ua,n,o.id);return o.request.setHeader("via",i),o.requestSender.ua.newTransaction(o),o}return o(t,e),t.prototype.stateChanged=function(e){this.state=e,this.emit("stateChanged")},t.prototype.send=function(){var e=this;this.stateChanged(s.TransactionStatus.STATUS_TRYING),this.F=setTimeout(function(){return e.timer_F()},c.Timers.TIMER_F),this.transport.send(this.request).catch(function(){return e.onTransportError()})},t.prototype.receiveResponse=function(e){var t=this,r=e.statusCode||0;if(r<200)switch(this.state){case s.TransactionStatus.STATUS_TRYING:case s.TransactionStatus.STATUS_PROCEEDING:this.stateChanged(s.TransactionStatus.STATUS_PROCEEDING),this.requestSender.receiveResponse(e)}else switch(this.state){case s.TransactionStatus.STATUS_TRYING:case s.TransactionStatus.STATUS_PROCEEDING:this.stateChanged(s.TransactionStatus.STATUS_COMPLETED),this.F&&clearTimeout(this.F),408===r?this.requestSender.onRequestTimeout():this.requestSender.receiveResponse(e),this.K=setTimeout(function(){return t.timer_K()},c.Timers.TIMER_K);case s.TransactionStatus.STATUS_COMPLETED:}},t.prototype.onTransportError=function(){this.logger.log("transport error occurred, deleting non-INVITE client transaction "+this.id),this.F&&(clearTimeout(this.F),this.F=void 0),this.K&&(clearTimeout(this.K),this.K=void 0),this.stateChanged(s.TransactionStatus.STATUS_TERMINATED),this.requestSender.ua.destroyTransaction(this),this.requestSender.onTransportError()},t.prototype.timer_F=function(){this.logger.debug("Timer F expired for non-INVITE client transaction "+this.id),this.stateChanged(s.TransactionStatus.STATUS_TERMINATED),this.requestSender.ua.destroyTransaction(this),this.requestSender.onRequestTimeout()},t.prototype.timer_K=function(){this.stateChanged(s.TransactionStatus.STATUS_TERMINATED),this.requestSender.ua.destroyTransaction(this)},t}(i.EventEmitter);t.NonInviteClientTransaction=C;var S=function(e){function t(t,r,n){var o=e.call(this)||this;o.kind=m,o.type=s.TypeStrings.InviteClientTransaction,o.transport=n,o.id="z9hG4bK"+Math.floor(1e7*Math.random()),o.requestSender=t,o.request=r,o.logger=t.ua.getLogger("sip.transaction.ict",o.id);var i=y(t.ua,n,o.id);return o.request.setHeader("via",i),o.requestSender.ua.newTransaction(o),o.request.cancel=function(e,t){for(var r="",n=0,i=t=(t||[]).slice();n<i.length;n++)r+=i[n].trim()+"\r\n";o.cancelRequest(o,e,r)},o}return o(t,e),t.prototype.stateChanged=function(e){this.state=e,this.emit("stateChanged")},t.prototype.send=function(){var e=this;this.stateChanged(s.TransactionStatus.STATUS_CALLING),this.B=setTimeout(function(){return e.timer_B()},c.Timers.TIMER_B),this.transport.send(this.request).catch(function(){return e.onTransportError()})},t.prototype.receiveResponse=function(e){var t=this,r=e.statusCode||0;if(e.transaction=this,this.response&&this.response.statusCode===e.statusCode&&this.response.cseq===e.cseq)return this.logger.debug("ICT Received a retransmission for cseq: "+e.cseq),void(this.ackSender&&this.ackSender.send());if(this.response=e,r>=100&&r<=199)switch(this.state){case s.TransactionStatus.STATUS_CALLING:this.stateChanged(s.TransactionStatus.STATUS_PROCEEDING),this.requestSender.receiveResponse(e),this.cancel&&this.transport.send(this.cancel);break;case s.TransactionStatus.STATUS_PROCEEDING:this.requestSender.receiveResponse(e)}else if(r>=200&&r<=299)switch(this.state){case s.TransactionStatus.STATUS_CALLING:case s.TransactionStatus.STATUS_PROCEEDING:this.stateChanged(s.TransactionStatus.STATUS_ACCEPTED),this.M=setTimeout(function(){return t.timer_M()},c.Timers.TIMER_M),this.requestSender.receiveResponse(e);break;case d:this.requestSender.receiveResponse(e)}else if(r>=300&&r<=699)switch(this.state){case s.TransactionStatus.STATUS_CALLING:case s.TransactionStatus.STATUS_PROCEEDING:this.stateChanged(s.TransactionStatus.STATUS_COMPLETED),this.sendACK(),this.requestSender.receiveResponse(e);break;case s.TransactionStatus.STATUS_COMPLETED:this.sendACK()}},t.prototype.sendACK=function(e){var t,r=this;if(void 0===e&&(e={}),t=this.response&&this.response.getHeader("contact")?this.response.parseHeader("contact").uri:this.request.ruri,this.response){var n=new l.OutgoingRequest("ACK",t.toString(),this.request.ua,{cseq:this.response.cseq,callId:this.response.callId,fromUri:this.response.from.uri,fromTag:this.response.fromTag,toUri:this.response.to.uri,toTag:this.response.toTag,routeSet:this.response.getHeaders("record-route").reverse()},e.extraHeaders||[],e.body);if(!n.ua.transport)throw new Error("No transport to make transaction");return this.ackSender=new T({onTransportError:this.requestSender.applicant?this.requestSender.applicant.onTransportError.bind(this.requestSender.applicant):function(){r.logger.warn("ACK Request had a transport error")},ua:n.ua},n,n.ua.transport),this.ackSender.send(),n}},t.prototype.onTransportError=function(){this.logger.log("transport error occurred, deleting INVITE client transaction "+this.id),this.B&&(clearTimeout(this.B),this.B=void 0),this.D&&(clearTimeout(this.D),this.D=void 0),this.M&&(clearTimeout(this.M),this.M=void 0),this.stateChanged(s.TransactionStatus.STATUS_TERMINATED),this.requestSender.ua.destroyTransaction(this),this.state!==s.TransactionStatus.STATUS_ACCEPTED&&this.requestSender.onTransportError()},t.prototype.timer_M=function(){this.logger.debug("Timer M expired for INVITE client transaction "+this.id),this.state===s.TransactionStatus.STATUS_ACCEPTED&&(this.B&&(clearTimeout(this.B),this.B=void 0),this.stateChanged(s.TransactionStatus.STATUS_TERMINATED),this.requestSender.ua.destroyTransaction(this))},t.prototype.timer_B=function(){this.logger.debug("Timer B expired for INVITE client transaction "+this.id),this.state===s.TransactionStatus.STATUS_CALLING&&(this.stateChanged(s.TransactionStatus.STATUS_TERMINATED),this.requestSender.ua.destroyTransaction(this),this.requestSender.onRequestTimeout())},t.prototype.timer_D=function(){this.logger.debug("Timer D expired for INVITE client transaction "+this.id),this.B&&(clearTimeout(this.B),this.B=void 0),this.stateChanged(s.TransactionStatus.STATUS_TERMINATED),this.requestSender.ua.destroyTransaction(this)},t.prototype.cancelRequest=function(e,t,r){var n=e.request;this.cancel=a.C.CANCEL+" "+n.ruri+" SIP/2.0\r\n",this.cancel+="Via: "+n.headers.Via.toString()+"\r\n",this.request.headers.Route&&(this.cancel+="Route: "+n.headers.Route.toString()+"\r\n"),this.cancel+="To: "+n.headers.To.toString()+"\r\n",this.cancel+="From: "+n.headers.From.toString()+"\r\n",this.cancel+="Call-ID: "+n.headers["Call-ID"].toString()+"\r\n",this.cancel+="Max-Forwards: 70\r\n",this.cancel+="CSeq: "+n.headers.CSeq.toString().split(" ")[0]+" CANCEL\r\n",t&&(this.cancel+="Reason: "+t+"\r\n"),r&&(this.cancel+=r),this.cancel+="Content-Length: 0\r\n\r\n",this.state===s.TransactionStatus.STATUS_PROCEEDING&&this.transport.send(this.cancel)},t}(i.EventEmitter);t.InviteClientTransaction=S;var T=function(e){function t(t,r,n){var o=e.call(this)||this;o.type=s.TypeStrings.AckClientTransaction,o.transport=n,o.id="z9hG4bK"+Math.floor(1e7*Math.random()),o.requestSender=t,o.request=r,o.logger=t.ua.getLogger("sip.transaction.nict",o.id);var i=y(t.ua,n,o.id);return o.request.setHeader("via",i),o}return o(t,e),t.prototype.send=function(){var e=this;this.transport.send(this.request).catch(function(){e.logger.log("transport error occurred, for an ACK client transaction "+e.id),e.requestSender.onTransportError()})},t}(i.EventEmitter);t.AckClientTransaction=T;var b=function(e){function t(t,r){var n=e.call(this)||this;return n.kind=v,n.type=s.TypeStrings.NonInviteServerTransaction,n.id=t.viaBranch,n.request=t,n.transport=r.transport,n.ua=r,n.lastResponse="",n.transportError=!1,t.serverTransaction=n,n.logger=r.getLogger("sip.transaction.nist",n.id),n.state=s.TransactionStatus.STATUS_TRYING,r.newTransaction(n),n}return o(t,e),t.prototype.stateChanged=function(e){this.state=e,this.emit("stateChanged")},t.prototype.receiveResponse=function(e,t){var r=this;return new Promise(function(n,o){if(100===e)switch(r.state){case s.TransactionStatus.STATUS_TRYING:r.stateChanged(u),r.transport&&r.transport.send(t).catch(function(){return r.onTransportError()});break;case s.TransactionStatus.STATUS_PROCEEDING:r.lastResponse=t,r.transport&&r.transport.send(t).then(n).catch(function(){r.onTransportError(),o()})}else if(e>=200&&e<=699)switch(r.state){case s.TransactionStatus.STATUS_TRYING:case s.TransactionStatus.STATUS_PROCEEDING:r.stateChanged(p),r.lastResponse=t,r.J=setTimeout(function(){r.logger.debug("Timer J expired for non-INVITE server transaction "+r.id),r.stateChanged(h),r.ua.destroyTransaction(r)},c.Timers.TIMER_J),r.transport&&r.transport.send(t).then(n).catch(function(){r.onTransportError(),o()});case s.TransactionStatus.STATUS_COMPLETED:}})},t.prototype.onTransportError=function(){this.transportError||(this.transportError=!0,this.logger.log("transport error occurred, deleting non-INVITE server transaction "+this.id),this.J&&(clearTimeout(this.J),this.J=void 0),this.stateChanged(h),this.ua.destroyTransaction(this))},t}(i.EventEmitter);t.NonInviteServerTransaction=b;var w=function(e){function t(t,r){var n=e.call(this)||this;return n.kind=g,n.type=s.TypeStrings.InviteServerTransaction,n.id=t.viaBranch,n.request=t,n.transport=r.transport,n.ua=r,n.lastResponse="",n.transportError=!1,t.serverTransaction=n,n.logger=r.getLogger("sip.transaction.ist",n.id),n.state=s.TransactionStatus.STATUS_PROCEEDING,r.newTransaction(n),t.reply(100),n}return o(t,e),t.prototype.stateChanged=function(e){this.state=e,this.emit("stateChanged")},t.prototype.timer_I=function(){this.stateChanged(s.TransactionStatus.STATUS_TERMINATED),this.ua.destroyTransaction(this)},t.prototype.receiveResponse=function(e,t){var r=this;return new Promise(function(n,o){if(e>=100&&e<=199&&r.state===s.TransactionStatus.STATUS_PROCEEDING)r.transport&&r.transport.send(t).catch(function(){return r.onTransportError()}),r.lastResponse=t,e>100&&void 0===r.resendProvisionalTimer&&(r.resendProvisionalTimer=setInterval(function(){r.transport&&r.transport.send(t).catch(function(){return r.onTransportError()})},c.Timers.PROVISIONAL_RESPONSE_INTERVAL));else if(e>=200&&e<=299)switch(r.state){case s.TransactionStatus.STATUS_PROCEEDING:r.stateChanged(d),r.lastResponse=t,r.L=setTimeout(function(){return r.timer_L()},c.Timers.TIMER_L),void 0!==r.resendProvisionalTimer&&(clearInterval(r.resendProvisionalTimer),r.resendProvisionalTimer=void 0);case s.TransactionStatus.STATUS_ACCEPTED:r.transport&&r.transport.send(t).then(n).catch(function(e){r.logger.error(e),r.onTransportError(),o()})}else e>=300&&e<=699&&r.state===s.TransactionStatus.STATUS_PROCEEDING&&(void 0!==r.resendProvisionalTimer&&(clearInterval(r.resendProvisionalTimer),r.resendProvisionalTimer=void 0),r.transport&&r.transport.send(t).then(function(){r.stateChanged(s.TransactionStatus.STATUS_COMPLETED),r.H=setTimeout(function(){return r.timer_H()},c.Timers.TIMER_H),n()}).catch(function(e){r.logger.error(e),r.onTransportError(),o()}))})},t.prototype.timer_H=function(){this.logger.debug("Timer H expired for INVITE server transaction "+this.id),this.state===s.TransactionStatus.STATUS_COMPLETED&&this.logger.warn("transactions: ACK for INVITE server transaction was never received, call will be terminated"),this.stateChanged(s.TransactionStatus.STATUS_TERMINATED),this.ua.destroyTransaction(this)},t.prototype.timer_L=function(){this.logger.debug("Timer L expired for INVITE server transaction "+this.id),this.state===s.TransactionStatus.STATUS_ACCEPTED&&(this.stateChanged(s.TransactionStatus.STATUS_TERMINATED),this.ua.destroyTransaction(this))},t.prototype.onTransportError=function(){this.transportError||(this.transportError=!0,this.logger.log("transport error occurred, deleting INVITE server transaction "+this.id),void 0!==this.resendProvisionalTimer&&(clearInterval(this.resendProvisionalTimer),this.resendProvisionalTimer=void 0),this.L&&(clearTimeout(this.L),this.L=void 0),this.H&&(clearTimeout(this.H),this.H=void 0),this.I&&(clearTimeout(this.I),this.I=void 0),this.stateChanged(s.TransactionStatus.STATUS_TERMINATED),this.ua.destroyTransaction(this))},t}(i.EventEmitter);t.InviteServerTransaction=w,t.checkTransaction=function(e,t){var r=e.transactions.ist[t.viaBranch];switch(t.method){case a.C.INVITE:if(r){switch(r.state){case s.TransactionStatus.STATUS_PROCEEDING:r.transport&&r.transport.send(r.lastResponse);case s.TransactionStatus.STATUS_ACCEPTED:}return!0}break;case a.C.ACK:if(!r)return!1;if(r.state===s.TransactionStatus.STATUS_ACCEPTED)return!1;if(r.state===s.TransactionStatus.STATUS_COMPLETED)return r.stateChanged(s.TransactionStatus.STATUS_CONFIRMED),r.I=setTimeout(r.timer_I.bind(r),c.Timers.TIMER_I),!0;break;case a.C.CANCEL:return r?(t.reply_sl(200),r.state!==s.TransactionStatus.STATUS_PROCEEDING):(t.reply_sl(481),!0);default:var n=e.transactions.nist[t.viaBranch];if(n){switch(n.state){case s.TransactionStatus.STATUS_TRYING:break;case s.TransactionStatus.STATUS_PROCEEDING:case s.TransactionStatus.STATUS_COMPLETED:n.transport&&n.transport.send(n.lastResponse)}return!0}}return!1}},function(e,t,r){var n,o=this&&this.__extends||(n=function(e,t){return(n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)t.hasOwnProperty(r)&&(e[r]=t[r])})(e,t)},function(e,t){function r(){this.constructor=e}n(e,t),e.prototype=null===t?Object.create(t):(r.prototype=t.prototype,new r)});Object.defineProperty(t,"__esModule",{value:!0});var i=r(1),a=r(0),s=function(){function e(e){for(var t in this.parameters={},this.type=a.TypeStrings.Parameters,e)e.hasOwnProperty(t)&&this.setParam(t,e[t])}return e.prototype.setParam=function(e,t){e&&(this.parameters[e.toLowerCase()]=null==t?null:t.toString())},e.prototype.getParam=function(e){if(e)return this.parameters[e.toLowerCase()]},e.prototype.hasParam=function(e){return!!e&&!!this.parameters.hasOwnProperty(e.toLowerCase())},e.prototype.deleteParam=function(e){if(e=e.toLowerCase(),this.parameters.hasOwnProperty(e)){var t=this.parameters[e];return delete this.parameters[e],t}},e.prototype.clearParams=function(){this.parameters={}},e}();t.Parameters=s;var l=function(e){function t(t,r,n,o,s,l){var c=e.call(this,s)||this;if(c.headers={},c.type=a.TypeStrings.URI,!n)throw new TypeError('missing or invalid "host" parameter');for(var u in t=t||i.C.SIP,l)l.hasOwnProperty(u)&&c.setHeader(u,l[u]);return c.raw={scheme:t,user:r,host:n,port:o},c.normal={scheme:t.toLowerCase(),user:r,host:n.toLowerCase(),port:o},c}return o(t,e),Object.defineProperty(t.prototype,"_normal",{get:function(){return this.normal},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"_raw",{get:function(){return this.raw},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"scheme",{get:function(){return this.normal.scheme},set:function(e){this.raw.scheme=e,this.normal.scheme=e.toLowerCase()},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"user",{get:function(){return this.normal.user},set:function(e){this.normal.user=this.raw.user=e},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"host",{get:function(){return this.normal.host},set:function(e){this.raw.host=e,this.normal.host=e.toLowerCase()},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"aor",{get:function(){return this.normal.user+"@"+this.normal.host},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"port",{get:function(){return this.normal.port},set:function(e){this.normal.port=this.raw.port=e},enumerable:!0,configurable:!0}),t.prototype.setHeader=function(e,t){this.headers[this.headerize(e)]=t instanceof Array?t:[t]},t.prototype.getHeader=function(e){if(e)return this.headers[this.headerize(e)]},t.prototype.hasHeader=function(e){return!!e&&!!this.headers.hasOwnProperty(this.headerize(e))},t.prototype.deleteHeader=function(e){if(e=this.headerize(e),this.headers.hasOwnProperty(e)){var t=this.headers[e];return delete this.headers[e],t}},t.prototype.clearHeaders=function(){this.headers={}},t.prototype.clone=function(){return new t(this._raw.scheme,this._raw.user||"",this._raw.host,this._raw.port,JSON.parse(JSON.stringify(this.parameters)),JSON.parse(JSON.stringify(this.headers)))},t.prototype.toRaw=function(){return this._toString(this._raw)},t.prototype.toString=function(){return this._toString(this._normal)},t.prototype._toString=function(e){var t=e.scheme+":";for(var r in e.scheme.toLowerCase().match("^sips?$")||(t+="//"),e.user&&(t+=this.escapeUser(e.user)+"@"),t+=e.host,(e.port||0===e.port)&&(t+=":"+e.port),this.parameters)this.parameters.hasOwnProperty(r)&&(t+=";"+r,null!==this.parameters[r]&&(t+="="+this.parameters[r]));var n=[];for(var o in this.headers)if(this.headers.hasOwnProperty(o))for(var i in this.headers[o])this.headers[o].hasOwnProperty(i)&&n.push(o+"="+this.headers[o][i]);return n.length>0&&(t+="?"+n.join("&")),t},t.prototype.escapeUser=function(e){return encodeURIComponent(decodeURIComponent(e)).replace(/%3A/gi,":").replace(/%2B/gi,"+").replace(/%3F/gi,"?").replace(/%2F/gi,"/")},t.prototype.headerize=function(e){for(var t={"Call-Id":"Call-ID",Cseq:"CSeq","Min-Se":"Min-SE",Rack:"RAck",Rseq:"RSeq","Www-Authenticate":"WWW-Authenticate"},r=e.toLowerCase().replace(/_/g,"-").split("-"),n=r.length,o="",i=0;i<n;i++)0!==i&&(o+="-"),o+=r[i].charAt(0).toUpperCase()+r[i].substring(1);return t[o]&&(o=t[o]),o},t}(s);t.URI=l},function(e,t,r){Object.defineProperty(t,"__esModule",{value:!0}),t.Timers={T1:500,T2:4e3,T4:5e3,TIMER_B:32e3,TIMER_D:0,TIMER_F:32e3,TIMER_H:32e3,TIMER_I:0,TIMER_J:0,TIMER_K:0,TIMER_L:32e3,TIMER_M:32e3,TIMER_N:32e3,PROVISIONAL_RESPONSE_INTERVAL:6e4}},function(e,t){var r;r=function(){return this}();try{r=r||new Function("return this")()}catch(n){"object"==typeof window&&(r=window)}e.exports=r},function(e,t,r){Object.defineProperty(t,"__esModule",{value:!0});var n=r(1),o=r(0),i=r(8),a=r(6),s=function(){function e(e,t,r,n){if(this.pracked=[],this.uacPendingReply=!1,this.uasPendingReply=!1,this.type=o.TypeStrings.Dialog,!t.hasHeader("contact"))throw new Error("unable to create a Dialog without Contact header field");if(t.type===o.TypeStrings.IncomingResponse){var i=t.statusCode;n=i&&i<200?o.DialogStatus.STATUS_EARLY:o.DialogStatus.STATUS_CONFIRMED}else n=n||o.DialogStatus.STATUS_CONFIRMED;var a=t.parseHeader("contact");"UAS"===r&&t.type===o.TypeStrings.IncomingRequest?(this.id={callId:t.callId,localTag:t.toTag,remoteTag:t.fromTag,toString:function(){return t.callId+t.toTag+t.fromTag}},this.state=n,this.remoteSeqnum=t.cseq,this.localUri=(t.parseHeader("to")||{}).uri,this.remoteUri=(t.parseHeader("from")||{}).uri,this.remoteTarget=a.uri,this.routeSet=t.getHeaders("record-route"),this.inviteSeqnum=t.cseq,this.localSeqnum=t.cseq):(this.id={callId:t.callId,localTag:t.fromTag,remoteTag:t.toTag,toString:function(){return t.callId+t.fromTag+t.toTag}},this.state=n,this.inviteSeqnum=t.cseq,this.localSeqnum=t.cseq,this.localUri=t.parseHeader("from").uri,this.pracked=[],this.remoteUri=t.parseHeader("to").uri,this.remoteTarget=a.uri,this.routeSet=t.getHeaders("record-route").reverse()),this.logger=e.ua.getLogger("sip.dialog",this.id.toString()),this.owner=e,e.ua.dialogs[this.id.toString()]=this,this.logger.log("new "+r+" dialog created with status "+(this.state===o.DialogStatus.STATUS_EARLY?"EARLY":"CONFIRMED")),e.emit("dialog",this)}return e.prototype.update=function(e,t){this.state=o.DialogStatus.STATUS_CONFIRMED,this.logger.log("dialog "+this.id.toString()+" changed to CONFIRMED state"),"UAC"===t&&(this.routeSet=e.getHeaders("record-route").reverse())},e.prototype.terminate=function(){this.logger.log("dialog "+this.id.toString()+" deleted"),this.sessionDescriptionHandler&&this.state!==o.DialogStatus.STATUS_CONFIRMED&&this.sessionDescriptionHandler.close(),delete this.owner.ua.dialogs[this.id.toString()]},e.prototype.createRequest=function(e,t,r){void 0===t&&(t=[]),t=t.slice(),this.localSeqnum||(this.localSeqnum=Math.floor(1e4*Math.random()));var o=e===n.C.CANCEL||e===n.C.ACK?this.inviteSeqnum:this.localSeqnum+=1,i=new a.OutgoingRequest(e,this.remoteTarget,this.owner.ua,{cseq:o,callId:this.id.callId,fromUri:this.localUri,fromTag:this.id.localTag,toIri:this.remoteUri,toTag:this.id.remoteTag,routeSet:this.routeSet},t,r);return i.dialog=this,i},e.prototype.checkInDialogRequest=function(e){var t=this;if(this.remoteSeqnum){if(e.cseq<this.remoteSeqnum)return e.method!==n.C.ACK&&e.reply(500),e.cseq===this.inviteSeqnum}else this.remoteSeqnum=e.cseq;switch(e.method){case n.C.INVITE:if(!0===this.uacPendingReply)e.reply(491);else{if(!0===this.uasPendingReply&&e.cseq>this.remoteSeqnum){var r=Math.floor(10*Math.random())+1;return e.reply(500,void 0,["Retry-After:"+r]),this.remoteSeqnum=e.cseq,!1}this.uasPendingReply=!0;var i=function(){!e.serverTransaction||e.serverTransaction.state!==o.TransactionStatus.STATUS_ACCEPTED&&e.serverTransaction.state!==o.TransactionStatus.STATUS_COMPLETED&&e.serverTransaction.state!==o.TransactionStatus.STATUS_TERMINATED||(e.serverTransaction.removeListener("stateChanged",i),t.uasPendingReply=!1)};e.serverTransaction&&e.serverTransaction.on("stateChanged",i)}e.hasHeader("contact")&&e.serverTransaction&&e.serverTransaction.on("stateChanged",function(){e.serverTransaction&&e.serverTransaction.state===o.TransactionStatus.STATUS_ACCEPTED&&(t.remoteTarget=e.parseHeader("contact").uri)});break;case n.C.NOTIFY:e.hasHeader("contact")&&e.serverTransaction&&e.serverTransaction.on("stateChanged",function(){e.serverTransaction&&e.serverTransaction.state===o.TransactionStatus.STATUS_COMPLETED&&(t.remoteTarget=e.parseHeader("contact").uri)})}return e.cseq>this.remoteSeqnum&&(this.remoteSeqnum=e.cseq),!0},e.prototype.sendRequest=function(e,t,r){var a=this;void 0===r&&(r={});var s,l=(r.extraHeaders||[]).slice();r.body&&(r.body.body?s=r.body:((s={}).body=r.body,r.contentType&&(s.contentType=r.contentType)));var c=this.createRequest(t,l,s),u=function(t){var r=new i.RequestSender({request:c,onRequestTimeout:e.onRequestTimeout.bind(e),onTransportError:e.onTransportError.bind(e),receiveResponse:function(r){408===r.statusCode||481===r.statusCode?e.onDialogError(r):r.method===n.C.INVITE&&491===r.statusCode?t?e.receiveResponse(r):(c.cseq=a.localSeqnum+=1,setTimeout(function(){void 0!==a.owner.status&&a.owner.status!==o.SessionStatus.STATUS_TERMINATED&&u(!0)},1e3)):e.receiveResponse(r)}},a.owner.ua);if(r.send(),r.clientTransaction&&r.clientTransaction.type!==o.TypeStrings.AckClientTransaction&&c.method===n.C.INVITE&&r.clientTransaction&&r.clientTransaction.state!==o.TransactionStatus.STATUS_TERMINATED){a.uacPendingReply=!0;var s=function(){var e=r.clientTransaction.state;r.clientTransaction&&r.clientTransaction.type!==o.TypeStrings.AckClientTransaction&&(!r.clientTransaction||e!==o.TransactionStatus.STATUS_ACCEPTED&&e!==o.TransactionStatus.STATUS_COMPLETED&&e!==o.TransactionStatus.STATUS_TERMINATED||(r.clientTransaction.removeListener("stateChanged",s),a.uacPendingReply=!1))};r.clientTransaction.on("stateChanged",s)}};return u(!1),c},e.prototype.receiveRequest=function(e){this.checkInDialogRequest(e)&&this.owner.receiveRequest(e)},e.C=o.DialogStatus,e}();t.Dialog=s},function(e,t,r){var n,o=this&&this.__extends||(n=function(e,t){return(n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)t.hasOwnProperty(r)&&(e[r]=t[r])})(e,t)},function(e,t){function r(){this.constructor=e}n(e,t),e.prototype=null===t?Object.create(t):(r.prototype=t.prototype,new r)});Object.defineProperty(t,"__esModule",{value:!0});var i=r(3),a=r(1),s=r(0),l=r(4),c=r(9),u=r(2),d=function(e){function t(r,n){var o=e.call(this)||this;return o.data={},t.initializer(o,r,n),o}return o(t,e),t.initializer=function(e,t,r){if(e.type=s.TypeStrings.ServerContext,e.ua=t,e.logger=t.getLogger("sip.servercontext"),e.request=r,r.method===a.C.INVITE?e.transaction=new c.InviteServerTransaction(r,t):e.transaction=new c.NonInviteServerTransaction(r,t),r.body&&(e.body=r.body),r.hasHeader("Content-Type")&&(e.contentType=r.getHeader("Content-Type")),e.method=r.method,e.localIdentity=r.to,e.remoteIdentity=r.from,r.hasHeader("P-Asserted-Identity")){var n=r.getHeader("P-Asserted-Identity");n&&(e.assertedIdentity=l.Grammar.nameAddrHeaderParse(n))}},t.prototype.progress=function(e){return void 0===e&&(e={}),e.statusCode=e.statusCode||180,e.minCode=100,e.maxCode=199,e.events=["progress"],this.reply(e)},t.prototype.accept=function(e){return void 0===e&&(e={}),e.statusCode=e.statusCode||200,e.minCode=200,e.maxCode=299,e.events=["accepted"],this.reply(e)},t.prototype.reject=function(e){return void 0===e&&(e={}),e.statusCode=e.statusCode||480,e.minCode=300,e.maxCode=699,e.events=["rejected","failed"],this.reply(e)},t.prototype.reply=function(e){var t=this;void 0===e&&(e={});var r=e.statusCode||100,n=e.minCode||100,o=e.maxCode||699,i=u.Utils.getReasonPhrase(r,e.reasonPhrase),a=e.extraHeaders||[],s=e.body,l=e.events||[];if(r<n||r>o)throw new TypeError("Invalid statusCode: "+r);var c=this.request.reply(r,i,a,s);return l.forEach(function(e){t.emit(e,c,i)}),this},t.prototype.onRequestTimeout=function(){this.emit("failed",void 0,a.C.causes.REQUEST_TIMEOUT)},t.prototype.onTransportError=function(){this.emit("failed",void 0,a.C.causes.CONNECTION_ERROR)},t}(i.EventEmitter);t.ServerContext=d},function(e,t,r){Object.defineProperty(t,"__esModule",{value:!0});var n=function(e,t){for(var r,n=[],o=e.split(/\r\n/),i=0;i<o.length;){var a=o[i];if(/^m=(?:audio|video)/.test(a))r={index:i,stripped:[]},n.push(r);else if(r){var s=/^a=rtpmap:(\d+) ([^\/]+)\//.exec(a);if(s&&t===s[2]){o.splice(i,1),r.stripped.push(s[1]);continue}}i++}for(var l=0,c=n;l<c.length;l++){for(var u=c[l],d=o[u.index].split(" "),p=3;p<d.length;)-1===u.stripped.indexOf(d[p])?p++:d.splice(p,1);o[u.index]=d.join(" ")}return o.join("\r\n")};t.stripTcpCandidates=function(e){return e.sdp=(e.sdp||"").replace(/^a=candidate:\d+ \d+ tcp .*?\r\n/gim,""),Promise.resolve(e)},t.stripTelephoneEvent=function(e){return e.sdp=n(e.sdp||"","telephone-event"),Promise.resolve(e)},t.cleanJitsiSdpImageattr=function(e){return e.sdp=(e.sdp||"").replace(/^(a=imageattr:.*?)(x|y)=\[0-/gm,"$1$2=[1:"),Promise.resolve(e)},t.stripG722=function(e){return e.sdp=n(e.sdp||"","G722"),Promise.resolve(e)},t.stripRtpPayload=function(e){return function(t){return t.sdp=n(t.sdp||"",e),Promise.resolve(t)}},t.stripVideo=function(e){return e.sdp=function(e,t){var r=new RegExp("m="+t+".*$","gm"),n=new RegExp("^a=group:.*$","gm");if(r.test(e)){var o,i=(e=e.split(/^m=/gm).filter(function(e){if(e.substr(0,t.length)===t){if(o=e.match(/^a=mid:.*$/gm)){var r=o[0].match(/:.+$/g);r&&(o=r[0].substr(1))}return!1}return!0}).join("m=")).match(n);if(i&&1===i.length){var a=i[0],s=new RegExp(" *"+o+"[^ ]*","g");a=a.replace(s,""),e=e.split(n).join(a)}}return e}(e.sdp||"","video"),Promise.resolve(e)},t.addMidLines=function(e){var t=e.sdp||"";if(-1===t.search(/^a=mid.*$/gm)){var r=t.match(/^m=.*$/gm),n=t.split(/^m=.*$/gm);r&&r.forEach(function(e,t){r[t]=e+"\na=mid:"+t}),n.forEach(function(e,t){r&&r[t]&&(n[t]=e+r[t])}),t=n.join(""),e.sdp=t}return Promise.resolve(e)}},function(e){e.exports={name:"sip.js",title:"SIP.js",description:"A simple, intuitive, and powerful JavaScript signaling library",version:"0.13.6",license:"MIT",main:"lib/index.js",homepage:"https://sipjs.com",author:"OnSIP <developer@onsip.com> (https://sipjs.com/aboutus/)",contributors:[{url:"https://github.com/onsip/SIP.js/blob/master/THANKS.md"}],repository:{type:"git",url:"https://github.com/onsip/SIP.js.git"},keywords:["sip","websocket","webrtc","library","javascript"],dependencies:{"crypto-js":"^3.1.9-1"},devDependencies:{"@types/node":"^11.9.6","circular-dependency-plugin":"^5.0.2","jasmine-core":"^3.3.0",karma:"^4.0.1","karma-chrome-launcher":"^2.2.0","karma-cli":"^2.0.0","karma-jasmine":"^2.0.1","karma-jasmine-html-reporter":"^1.4.0","karma-mocha-reporter":"^2.2.5","karma-webpack":"^3.0.5",pegjs:"^0.10.0","ts-loader":"^5.3.3","ts-pegjs":"0.2.2",tslint:"^5.13.1",typescript:"^3.3.3333",webpack:"^4.29.6","webpack-cli":"^3.2.3"},engines:{node:">=8.0"},scripts:{prebuild:"tslint -p tsconfig.json -c tslint.json","generate-grammar":"node build/grammarGenerator.js","build-reg-bundle":"webpack --progress --config build/webpack.config.js --env.buildType reg","build-min-bundle":"webpack --progress --config build/webpack.config.js --env.buildType min","build-bundles":"npm run build-reg-bundle && npm run build-min-bundle","build-lib":"tsc","copy-dist-files":"cp dist/sip.js dist/sip-$npm_package_version.js && cp dist/sip.min.js dist/sip-$npm_package_version.min.js",build:"npm run generate-grammar && npm run build-lib && npm run build-reg-bundle && npm run build-min-bundle && npm run copy-dist-files",browserTest:"sleep 2 && open http://0.0.0.0:9876/debug.html & karma start --reporters kjhtml --no-single-run",commandLineTest:"karma start --reporters mocha --browsers ChromeHeadless --single-run",buildAndTest:"npm run build && npm run commandLineTest",buildAndBrowserTest:"npm run build && npm run browserTest"},types:"./types"}},function(e,t,r){var n,o=this&&this.__extends||(n=function(e,t){return(n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)t.hasOwnProperty(r)&&(e[r]=t[r])})(e,t)},function(e,t){function r(){this.constructor=e}n(e,t),e.prototype=null===t?Object.create(t):(r.prototype=t.prototype,new r)});Object.defineProperty(t,"__esModule",{value:!0});var i=r(0),a=function(e){function t(t,r,n){var o=e.call(this,n)||this;if(o.type=i.TypeStrings.NameAddrHeader,!t||t.type!==i.TypeStrings.URI)throw new TypeError('missing or invalid "uri" parameter');return o.uri=t,o._displayName=r,o}return o(t,e),Object.defineProperty(t.prototype,"friendlyName",{get:function(){return this.displayName||this.uri.aor},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"displayName",{get:function(){return this._displayName},set:function(e){this._displayName=e},enumerable:!0,configurable:!0}),t.prototype.clone=function(){return new t(this.uri.clone(),this._displayName,JSON.parse(JSON.stringify(this.parameters)))},t.prototype.toString=function(){var e=this.displayName||"0"===this.displayName?'"'+this.displayName+'" ':"";for(var t in e+="<"+this.uri.toString()+">",this.parameters)this.parameters.hasOwnProperty(t)&&(e+=";"+t,null!==this.parameters[t]&&(e+="="+this.parameters[t]));return e},t}(r(10).Parameters);t.NameAddrHeader=a},function(e,t,r){Object.defineProperty(t,"__esModule",{value:!0});var n=r(32),o=r(0),i=r(2),a=function(){function e(e){this.type=o.TypeStrings.DigestAuthentication,this.logger=e.getLogger("sipjs.digestauthentication"),this.username=e.configuration.authorizationUser,this.password=e.configuration.password,this.nc=0,this.ncHex="00000000"}return e.prototype.authenticate=function(e,t,r){if(this.algorithm=t.algorithm,this.realm=t.realm,this.nonce=t.nonce,this.opaque=t.opaque,this.stale=t.stale,this.algorithm){if("MD5"!==this.algorithm)return this.logger.warn("challenge with Digest algorithm different than 'MD5', authentication aborted"),!1}else this.algorithm="MD5";if(!this.realm)return this.logger.warn("challenge without Digest realm, authentication aborted"),!1;if(!this.nonce)return this.logger.warn("challenge without Digest nonce, authentication aborted"),!1;if(t.qop)if(t.qop.indexOf("auth")>-1)this.qop="auth";else{if(!(t.qop.indexOf("auth-int")>-1))return this.logger.warn("challenge without Digest qop different than 'auth' or 'auth-int', authentication aborted"),!1;this.qop="auth-int"}else this.qop=void 0;return this.method=e.method,this.uri=e.ruri,this.cnonce=i.Utils.createRandomToken(12),this.nc+=1,this.updateNcHex(),4294967296===this.nc&&(this.nc=1,this.ncHex="00000001"),this.calculateResponse(r),!0},e.prototype.toString=function(){var e=[];if(!this.response)throw new Error("response field does not exist, cannot generate Authorization header");return e.push("algorithm="+this.algorithm),e.push('username="'+this.username+'"'),e.push('realm="'+this.realm+'"'),e.push('nonce="'+this.nonce+'"'),e.push('uri="'+this.uri+'"'),e.push('response="'+this.response+'"'),this.opaque&&e.push('opaque="'+this.opaque+'"'),this.qop&&(e.push("qop="+this.qop),e.push('cnonce="'+this.cnonce+'"'),e.push("nc="+this.ncHex)),"Digest "+e.join(", ")},e.prototype.updateNcHex=function(){var e=Number(this.nc).toString(16);this.ncHex="00000000".substr(0,8-e.length)+e},e.prototype.calculateResponse=function(e){var t,r=n(this.username+":"+this.realm+":"+this.password);"auth"===this.qop?(t=n(this.method+":"+this.uri),this.response=n(r+":"+this.nonce+":"+this.ncHex+":"+this.cnonce+":auth:"+t)):"auth-int"===this.qop?(t=n(this.method+":"+this.uri+":"+n(e||"")),this.response=n(r+":"+this.nonce+":"+this.ncHex+":"+this.cnonce+":auth-int:"+t)):void 0===this.qop&&(t=n(this.method+":"+this.uri),this.response=n(r+":"+this.nonce+":"+t))},e}();t.DigestAuthentication=a},function(e,t,r){Object.defineProperty(t,"__esModule",{value:!0});var n,o,i=r(0);(o=n=t.Levels||(t.Levels={}))[o.error=0]="error",o[o.warn=1]="warn",o[o.log=2]="log",o[o.debug=3]="debug";var a=function(){function e(){this.builtinEnabled=!0,this._level=n.log,this.loggers={},this.type=i.TypeStrings.LoggerFactory,this.logger=this.getLogger("sip:loggerfactory")}return Object.defineProperty(e.prototype,"level",{get:function(){return this._level},set:function(e){e>=0&&e<=3?this._level=e:e>3?this._level=3:n.hasOwnProperty(e)?this._level=e:this.logger.error("invalid 'level' parameter value: "+JSON.stringify(e))},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"connector",{get:function(){return this._connector},set:function(e){e?"function"==typeof e?this._connector=e:this.logger.error("invalid 'connector' parameter value: "+JSON.stringify(e)):this._connector=void 0},enumerable:!0,configurable:!0}),e.prototype.getLogger=function(e,t){if(t&&3===this.level)return new s(this,e,t);if(this.loggers[e])return this.loggers[e];var r=new s(this,e);return this.loggers[e]=r,r},e.prototype.genericLog=function(e,t,r,o){this.level>=e&&(this.builtinEnabled&&this.print(console[n[e]],t,r,o),this.connector&&this.connector(n[e],t,r,o))},e.prototype.print=function(e,t,r,n){if("string"==typeof n){var o=[new Date,t];r&&o.push(r),n=o.concat(n).join(" | ")}e.call(console,n)},e}();t.LoggerFactory=a;var s=function(){function e(e,t,r){this.type=i.TypeStrings.Logger,this.logger=e,this.category=t,this.label=r}return e.prototype.error=function(e){this.genericLog(n.error,e)},e.prototype.warn=function(e){this.genericLog(n.warn,e)},e.prototype.log=function(e){this.genericLog(n.log,e)},e.prototype.debug=function(e){this.genericLog(n.debug,e)},e.prototype.genericLog=function(e,t){this.logger.genericLog(e,this.category,this.label,t)},e}();t.Logger=s},function(e,t,r){Object.defineProperty(t,"__esModule",{value:!0});var n=r(0),o=r(4),i=r(6);!function(e){function t(e,t){var r=t,n=0,o=0;if(e.substring(r,r+2).match(/(^\r\n)/))return-2;for(;0===n;){if(-1===(o=e.indexOf("\r\n",r)))return o;!e.substring(o+2,o+4).match(/(^\r\n)/)&&e.charAt(o+2).match(/(^\s+)/)?r=o+2:n=o}return n}function r(e,t,r,i){var a,s=t.indexOf(":",r),l=t.substring(r,s).trim(),c=t.substring(s+1,i).trim();switch(l.toLowerCase()){case"via":case"v":e.addHeader("via",c),1===e.getHeaders("via").length?(a=e.parseHeader("Via"))&&(e.via=a,e.viaBranch=a.branch):a=0;break;case"from":case"f":e.setHeader("from",c),(a=e.parseHeader("from"))&&(e.from=a,e.fromTag=a.getParam("tag"));break;case"to":case"t":e.setHeader("to",c),(a=e.parseHeader("to"))&&(e.to=a,e.toTag=a.getParam("tag"));break;case"record-route":if(-1===(a=o.Grammar.parse(c,"Record_Route"))){a=void 0;break}for(var u in a)a[u]&&(e.addHeader("record-route",c.substring(a[u].position,a[u].offset)),e.headers["Record-Route"][e.getHeaders("record-route").length-1].parsed=a[u].parsed);break;case"call-id":case"i":e.setHeader("call-id",c),(a=e.parseHeader("call-id"))&&(e.callId=c);break;case"contact":case"m":if(-1===(a=o.Grammar.parse(c,"Contact"))){a=void 0;break}for(var u in a)a[u]&&(e.addHeader("contact",c.substring(a[u].position,a[u].offset)),e.headers.Contact[e.getHeaders("contact").length-1].parsed=a[u].parsed);break;case"content-length":case"l":e.setHeader("content-length",c),a=e.parseHeader("content-length");break;case"content-type":case"c":e.setHeader("content-type",c),a=e.parseHeader("content-type");break;case"cseq":e.setHeader("cseq",c),(a=e.parseHeader("cseq"))&&(e.cseq=a.value),e.type===n.TypeStrings.IncomingResponse&&(e.method=a.method);break;case"max-forwards":e.setHeader("max-forwards",c),a=e.parseHeader("max-forwards");break;case"www-authenticate":e.setHeader("www-authenticate",c),a=e.parseHeader("www-authenticate");break;case"proxy-authenticate":e.setHeader("proxy-authenticate",c),a=e.parseHeader("proxy-authenticate");break;case"refer-to":case"r":e.setHeader("refer-to",c),(a=e.parseHeader("refer-to"))&&(e.referTo=a);break;default:e.setHeader(l,c),a=0}return void 0!==a||{error:"error parsing header '"+l+"'"}}e.getHeader=t,e.parseHeader=r,e.parseMessage=function(e,n){var a=0,s=e.indexOf("\r\n"),l=n.getLogger("sip.parser");if(-1!==s){var c,u=e.substring(0,s),d=o.Grammar.parse(u,"Request_Response");if(-1!==d){var p;for(d.status_code?((c=new i.IncomingResponse(n)).statusCode=d.status_code,c.reasonPhrase=d.reason_phrase):((c=new i.IncomingRequest(n)).method=d.method,c.ruri=d.uri),c.data=e,a=s+2;;){if(-2===(s=t(e,a))){p=a+2;break}if(-1===s)return void l.error("malformed message");if(!0!==r(c,e,a,s))return void l.error(d.error);a=s+2}return c.hasHeader("content-length")?c.body=e.substr(p,Number(c.getHeader("content-length"))):c.body=e.substring(p),c}l.warn('error parsing first line of SIP message: "'+u+'"')}else l.warn("no CRLF found, not a SIP message, discarded")}}(t.Parser||(t.Parser={}))},function(e,t,r){var n,o=this&&this.__extends||(n=function(e,t){return(n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)t.hasOwnProperty(r)&&(e[r]=t[r])})(e,t)},function(e,t){function r(){this.constructor=e}n(e,t),e.prototype=null===t?Object.create(t):(r.prototype=t.prototype,new r)});Object.defineProperty(t,"__esModule",{value:!0});var i=r(7),a=r(1),s=r(0),l=r(5),c=r(6),u=r(2),d=function(e){function t(t,r,n,o){void 0===o&&(o={});var i=this;if(o.extraHeaders=(o.extraHeaders||[]).slice(),o.contentType=o.contentType||"text/plain","number"!=typeof o.expires||o.expires%1!=0?o.expires=3600:o.expires=Number(o.expires),"boolean"!=typeof o.unpublishOnClose&&(o.unpublishOnClose=!0),null==r||""===r)throw new l.Exceptions.MethodParameterError("Publish","Target",r);if(void 0===(r=t.normalizeTarget(r)))throw new l.Exceptions.MethodParameterError("Publish","Target",r);if((i=e.call(this,t,a.C.PUBLISH,r,o)||this).type=s.TypeStrings.PublishContext,i.options=o,i.target=r,null==n||""===n)throw new l.Exceptions.MethodParameterError("Publish","Event",n);return i.event=n,i.logger=t.getLogger("sip.publish"),i.pubRequestExpires=i.options.expires,t.on("transportCreated",function(e){e.on("transportError",function(){return i.onTransportError()})}),i}return o(t,e),t.prototype.publish=function(e){this.publishRefreshTimer&&(clearTimeout(this.publishRefreshTimer),this.publishRefreshTimer=void 0),this.options.body=e,this.pubRequestBody=this.options.body,0===this.pubRequestExpires&&(this.pubRequestExpires=this.options.expires,this.pubRequestEtag=void 0),this.ua.publishers[this.target.toString()+":"+this.event]||(this.ua.publishers[this.target.toString()+":"+this.event]=this),this.sendPublishRequest()},t.prototype.unpublish=function(){this.publishRefreshTimer&&(clearTimeout(this.publishRefreshTimer),this.publishRefreshTimer=void 0),this.pubRequestBody=void 0,this.pubRequestExpires=0,void 0!==this.pubRequestEtag&&this.sendPublishRequest()},t.prototype.close=function(){this.options.unpublishOnClose?this.unpublish():(this.publishRefreshTimer&&(clearTimeout(this.publishRefreshTimer),this.publishRefreshTimer=void 0),this.pubRequestBody=void 0,this.pubRequestExpires=0,this.pubRequestEtag=void 0),this.ua.publishers[this.target.toString()+":"+this.event]&&delete this.ua.publishers[this.target.toString()+":"+this.event]},t.prototype.onRequestTimeout=function(){e.prototype.onRequestTimeout.call(this),this.emit("unpublished",void 0,a.C.causes.REQUEST_TIMEOUT)},t.prototype.onTransportError=function(){e.prototype.onTransportError.call(this),this.emit("unpublished",void 0,a.C.causes.CONNECTION_ERROR)},t.prototype.receiveResponse=function(e){var t=this,r=e.statusCode||0,n=u.Utils.getReasonPhrase(r);switch(!0){case/^1[0-9]{2}$/.test(r.toString()):this.emit("progress",e,n);break;case/^2[0-9]{2}$/.test(r.toString()):if(e.hasHeader("SIP-ETag")?this.pubRequestEtag=e.getHeader("SIP-ETag"):this.logger.warn("SIP-ETag header missing in a 200-class response to PUBLISH"),e.hasHeader("Expires")){var o=Number(e.getHeader("Expires"));"number"==typeof o&&o>=0&&o<=this.pubRequestExpires?this.pubRequestExpires=o:this.logger.warn("Bad Expires header in a 200-class response to PUBLISH")}else this.logger.warn("Expires header missing in a 200-class response to PUBLISH");0!==this.pubRequestExpires?(this.publishRefreshTimer=setTimeout(function(){return t.refreshRequest()},900*this.pubRequestExpires),this.emit("published",e,n)):this.emit("unpublished",e,n);break;case/^412$/.test(r.toString()):void 0!==this.pubRequestEtag&&0!==this.pubRequestExpires?(this.logger.warn("412 response to PUBLISH, recovering"),this.pubRequestEtag=void 0,this.emit("progress",e,n),this.publish(this.options.body)):(this.logger.warn("412 response to PUBLISH, recovery failed"),this.pubRequestExpires=0,this.emit("failed",e,n),this.emit("unpublished",e,n));break;case/^423$/.test(r.toString()):if(0!==this.pubRequestExpires&&e.hasHeader("Min-Expires")){var i=Number(e.getHeader("Min-Expires"));"number"==typeof i||i>this.pubRequestExpires?(this.logger.warn("423 code in response to PUBLISH, adjusting the Expires value and trying to recover"),this.pubRequestExpires=i,this.emit("progress",e,n),this.publish(this.options.body)):(this.logger.warn("Bad 423 response Min-Expires header received for PUBLISH"),this.pubRequestExpires=0,this.emit("failed",e,n),this.emit("unpublished",e,n))}else this.logger.warn("423 response to PUBLISH, recovery failed"),this.pubRequestExpires=0,this.emit("failed",e,n),this.emit("unpublished",e,n);break;default:this.pubRequestExpires=0,this.emit("failed",e,n),this.emit("unpublished",e,n)}0===this.pubRequestExpires&&(this.publishRefreshTimer&&(clearTimeout(this.publishRefreshTimer),this.publishRefreshTimer=void 0),this.pubRequestBody=void 0,this.pubRequestEtag=void 0)},t.prototype.refreshRequest=function(){if(this.publishRefreshTimer&&(clearTimeout(this.publishRefreshTimer),this.publishRefreshTimer=void 0),this.pubRequestBody=void 0,void 0===this.pubRequestEtag)throw new l.Exceptions.MethodParameterError("Publish","Body",void 0);if(0===this.pubRequestExpires)throw new l.Exceptions.MethodParameterError("Publish","Expire",this.pubRequestExpires);this.sendPublishRequest()},t.prototype.sendPublishRequest=function(){var e=Object.create(this.options||Object.prototype);e.extraHeaders=(this.options.extraHeaders||[]).slice(),e.extraHeaders.push("Event: "+this.event),e.extraHeaders.push("Expires: "+this.pubRequestExpires),void 0!==this.pubRequestEtag&&e.extraHeaders.push("SIP-If-Match: "+this.pubRequestEtag),this.request=new c.OutgoingRequest(a.C.PUBLISH,this.target,this.ua,this.options.params,e.extraHeaders),void 0!==this.pubRequestBody&&(this.request.body={},this.request.body.body=this.pubRequestBody,this.request.body.contentType=this.options.contentType),this.send()},t}(i.ClientContext);t.PublishContext=d},function(e,t,r){var n,o=this&&this.__extends||(n=function(e,t){return(n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)t.hasOwnProperty(r)&&(e[r]=t[r])})(e,t)},function(e,t){function r(){this.constructor=e}n(e,t),e.prototype=null===t?Object.create(t):(r.prototype=t.prototype,new r)}),i=this&&this.__assign||function(){return(i=Object.assign||function(e){for(var t,r=1,n=arguments.length;r<n;r++)for(var o in t=arguments[r])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e}).apply(this,arguments)};Object.defineProperty(t,"__esModule",{value:!0});var a=r(7),s=r(1),l=r(0),c=r(5),u=r(4),d=r(2),p=function(e){function t(t,r){void 0===r&&(r={});var n=this,o=function(e){var t={expires:600,extraContactHeaderParams:[],instanceId:void 0,params:{},regId:void 0,registrar:void 0},r={mandatory:{},optional:{expires:function(e){if(d.Utils.isDecimal(e)){var t=Number(e);if(t>=0)return t}},extraContactHeaderParams:function(e){if(e instanceof Array)return e.filter(function(e){return"string"==typeof e})},instanceId:function(e){if("string"==typeof e)return/^uuid:/i.test(e)&&(e=e.substr(5)),-1===u.Grammar.parse(e,"uuid")?void 0:e},params:function(e){if("object"==typeof e)return e},regId:function(e){if(d.Utils.isDecimal(e)){var t=Number(e);if(t>=0)return t}},registrar:function(e){if("string"==typeof e){/^sip:/i.test(e)||(e=s.C.SIP+":"+e);var t=u.Grammar.URIParse(e);return t?t.user?void 0:t:void 0}}}};for(var n in r.mandatory){if(!e.hasOwnProperty(n))throw new c.Exceptions.ConfigurationError(n);var o=e[n];if(void 0===(i=r.mandatory[n](o)))throw new c.Exceptions.ConfigurationError(n,o);t[n]=i}for(var n in r.optional)if(e.hasOwnProperty(n)){var i;if((o=e[n])instanceof Array&&0===o.length)continue;if(null===o||""===o||void 0===o||"number"==typeof o&&isNaN(o))continue;if(void 0===(i=r.optional[n](o)))throw new c.Exceptions.ConfigurationError(n,o);t[n]=i}return t}(r);if(o.regId&&!o.instanceId?o.instanceId=d.Utils.newUUID():!o.regId&&o.instanceId&&(o.regId=1),o.params.toUri=o.params.toUri||t.configuration.uri,o.params.toDisplayName=o.params.toDisplayName||t.configuration.displayName,o.params.callId=o.params.callId||d.Utils.createRandomToken(22),o.params.cseq=o.params.cseq||Math.floor(1e4*Math.random()),!o.registrar){var i={};"object"==typeof t.configuration.uri?(i=t.configuration.uri.clone()).user=void 0:i=t.configuration.uri,o.registrar=i}for(var a in(n=e.call(this,t,s.C.REGISTER,o.registrar,o)||this).type=l.TypeStrings.RegisterContext,n.options=o,n.logger=t.getLogger("sip.registercontext"),n.logger.log("configuration parameters for RegisterContext after validation:"),o)o.hasOwnProperty(a)&&n.logger.log("· "+a+": "+JSON.stringify(o[a]));return n.expires=o.expires,n.cseq=o.params.cseq,n.contact=t.contact.toString(),n.registered=!1,t.on("transportCreated",function(e){e.on("disconnected",function(){return n.onTransportDisconnected()})}),n}return o(t,e),t.prototype.register=function(e){var t=this;void 0===e&&(e={}),this.options=i({},this.options,e);var r=(this.options.extraHeaders||[]).slice();r.push("Contact: "+this.generateContactHeader(this.expires)),r.push("Allow: "+["ACK","CANCEL","INVITE","MESSAGE","BYE","OPTIONS","INFO","NOTIFY","REFER"].toString()),this.closeHeaders=this.options.closeWithHeaders?(this.options.extraHeaders||[]).slice():[],this.receiveResponse=function(e){if(e.cseq===t.cseq){void 0!==t.registrationTimer&&(clearTimeout(t.registrationTimer),t.registrationTimer=void 0);var r=(e.statusCode||0).toString();switch(!0){case/^1[0-9]{2}$/.test(r):t.emit("progress",e);break;case/^2[0-9]{2}$/.test(r):t.emit("accepted",e);var n=void 0;e.hasHeader("expires")&&(n=Number(e.getHeader("expires"))),void 0!==t.registrationExpiredTimer&&(clearTimeout(t.registrationExpiredTimer),t.registrationExpiredTimer=void 0);var o=e.getHeaders("contact").length;if(!o){t.logger.warn("no Contact header in response to REGISTER, response ignored");break}for(var i=void 0;o--;){if((i=e.parseHeader("contact",o)).uri.user===t.ua.contact.uri.user){n=i.getParam("expires");break}i=void 0}if(!i){t.logger.warn("no Contact header pointing to us, response ignored");break}void 0===n&&(n=t.expires),t.registrationTimer=setTimeout(function(){t.registrationTimer=void 0,t.register(t.options)},1e3*n-3e3),t.registrationExpiredTimer=setTimeout(function(){t.logger.warn("registration expired"),t.registered&&t.unregistered(void 0,s.C.causes.EXPIRES)},1e3*n),i.hasParam("temp-gruu")&&(t.ua.contact.temp_gruu=u.Grammar.URIParse(i.getParam("temp-gruu").replace(/"/g,""))),i.hasParam("pub-gruu")&&(t.ua.contact.pub_gruu=u.Grammar.URIParse(i.getParam("pub-gruu").replace(/"/g,""))),t.registered=!0,t.emit("registered",e||void 0);break;case/^423$/.test(r):e.hasHeader("min-expires")?(t.expires=Number(e.getHeader("min-expires")),t.register(t.options)):(t.logger.warn("423 response received for REGISTER without Min-Expires"),t.registrationFailure(e,s.C.causes.SIP_FAILURE_CODE));break;default:t.registrationFailure(e,d.Utils.sipErrorCause(e.statusCode||0))}}},this.onRequestTimeout=function(){t.registrationFailure(void 0,s.C.causes.REQUEST_TIMEOUT)},this.onTransportError=function(){t.registrationFailure(void 0,s.C.causes.CONNECTION_ERROR)},this.cseq++,this.request&&(this.request.cseq=this.cseq,this.request.setHeader("cseq",this.cseq+" REGISTER"),this.request.extraHeaders=r),this.send()},t.prototype.close=function(){var e={all:!1,extraHeaders:this.closeHeaders};this.registeredBefore=this.registered,this.registered&&this.unregister(e)},t.prototype.unregister=function(e){var t=this;void 0===e&&(e={}),this.registered||e.all||this.logger.warn("Already unregistered, but sending an unregister anyways.");var r=(e.extraHeaders||[]).slice();this.registered=!1,void 0!==this.registrationTimer&&(clearTimeout(this.registrationTimer),this.registrationTimer=void 0),e.all?(r.push("Contact: *"),r.push("Expires: 0")):r.push("Contact: "+this.generateContactHeader(0)),this.receiveResponse=function(e){var r=e&&e.statusCode?e.statusCode.toString():"";switch(!0){case/^1[0-9]{2}$/.test(r):t.emit("progress",e);break;case/^2[0-9]{2}$/.test(r):t.emit("accepted",e),void 0!==t.registrationExpiredTimer&&(clearTimeout(t.registrationExpiredTimer),t.registrationExpiredTimer=void 0),t.unregistered(e);break;default:t.unregistered(e,d.Utils.sipErrorCause(e.statusCode||0))}},this.onRequestTimeout=function(){},this.cseq++,this.request&&(this.request.cseq=this.cseq,this.request.setHeader("cseq",this.cseq+" REGISTER"),this.request.extraHeaders=r),this.send()},t.prototype.unregistered=function(e,t){this.registered=!1,this.emit("unregistered",e||void 0,t||void 0)},t.prototype.registrationFailure=function(e,t){this.emit("failed",e||void 0,t||void 0)},t.prototype.onTransportDisconnected=function(){this.registeredBefore=this.registered,void 0!==this.registrationTimer&&(clearTimeout(this.registrationTimer),this.registrationTimer=void 0),void 0!==this.registrationExpiredTimer&&(clearTimeout(this.registrationExpiredTimer),this.registrationExpiredTimer=void 0),this.registered&&this.unregistered(void 0,s.C.causes.CONNECTION_ERROR)},t.prototype.generateContactHeader=function(e){void 0===e&&(e=0);var t=this.contact;return this.options.regId&&this.options.instanceId&&(t+=";reg-id="+this.options.regId,t+=';+sip.instance="<urn:uuid:'+this.options.instanceId+'>"'),this.options.extraContactHeaderParams&&this.options.extraContactHeaderParams.forEach(function(e){t+=";"+e}),t+=";expires="+e},t}(a.ClientContext);t.RegisterContext=p},function(e,t,r){Object.defineProperty(t,"__esModule",{value:!0});var n=r(1),o=r(0),i=r(2);!function(e){function t(e,t,r){for(var n=i.Utils.buildStatusLine(e),o=0,a=t.getHeaders("via");o<a.length;o++)n+="Via: "+a[o]+"\r\n";var s=t.getHeader("To")||"";t.toTag||(s+=";tag="+i.Utils.newTag()),n+="To: "+s+"\r\n",n+="From: "+t.getHeader("From")+"\r\n",n+="Call-ID: "+t.callId+"\r\n",n+="CSeq: "+t.cseq+" "+t.method+"\r\n",n+="\r\n",r.send(n)}function r(e,r,n){return!(!e.ruri||"sip"!==e.ruri.scheme)||(t(416,e,n),!1)}function a(e,r,n){return!(!e.toTag&&e.callId.substr(0,5)===r.configuration.sipjsId&&(t(482,e,n),1))}function s(e,r,n){var o=i.Utils.str_utf8_length(e.body),a=e.getHeader("content-length");return!(a&&o<Number(a)&&(t(400,e,n),1))}function l(e,r,o){var i=e.fromTag,a=e.callId,s=e.cseq;if(!e.toTag)if(e.method===n.C.INVITE){if(r.transactions.ist[e.viaBranch])return!0;for(var l in r.transactions.ist)if(r.transactions.ist.hasOwnProperty(l)&&(c=r.transactions.ist[l]).request.fromTag===i&&c.request.callId===a&&c.request.cseq===s)return t(482,e,o),!1}else{if(r.transactions.nist[e.viaBranch])return!0;for(var l in r.transactions.nist){var c;if(r.transactions.nist.hasOwnProperty(l)&&(c=r.transactions.nist[l]).request.fromTag===i&&c.request.callId===a&&c.request.cseq===s)return t(482,e,o),!1}}return!0}function c(e,t){return!(e.getHeaders("via").length>1&&(t.getLogger("sip.sanitycheck").warn("More than one Via header field present in the response. Dropping the response"),1))}function u(e,t){return e.via.host===t.configuration.viaHost&&void 0===e.via.port||(t.getLogger("sip.sanitycheck").warn("Via sent-by in the response does not match UA Via host value. Dropping the response"),!1)}function d(e,t){var r=i.Utils.str_utf8_length(e.body),n=e.getHeader("content-length");return!(n&&r<Number(n)&&(t.getLogger("sip.sanitycheck").warn("Message body length is lower than the value in Content-Length header field. Dropping the response"),1))}function p(e,t){for(var r=0,n=["from","to","call_id","cseq","via"];r<n.length;r++){var o=n[r];if(!e.hasHeader(o))return t.getLogger("sip.sanitycheck").warn("Missing mandatory header field : "+o+". Dropping the response"),!1}return!0}e.reply=t,e.rfc3261_8_2_2_1=r,e.rfc3261_16_3_4=a,e.rfc3261_18_3_request=s,e.rfc3261_8_2_2_2=l,e.rfc3261_8_1_3_3=c,e.rfc3261_18_1_2=u,e.rfc3261_18_3_response=d,e.minimumHeaders=p,e.sanityCheck=function(e,t,n){for(var i=[r,a,s,l],h=[c,u,d],f=0,v=[p];f<v.length;f++)if(!(0,v[f])(e,t,n))return!1;if(e.type===o.TypeStrings.IncomingRequest){for(var m=0,g=i;m<g.length;m++)if(!(0,g[m])(e,t,n))return!1}else if(e.type===o.TypeStrings.IncomingResponse)for(var y=0,C=h;y<C.length;y++)if(!(0,C[y])(e,t,n))return!1;return!0}}(t.SanityCheck||(t.SanityCheck={}))},function(e,t,r){var n,o=this&&this.__extends||(n=function(e,t){return(n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)t.hasOwnProperty(r)&&(e[r]=t[r])})(e,t)},function(e,t){function r(){this.constructor=e}n(e,t),e.prototype=null===t?Object.create(t):(r.prototype=t.prototype,new r)});Object.defineProperty(t,"__esModule",{value:!0});var i=r(3),a=r(7),s=r(1),l=r(13),c=r(0),u=r(5),d=r(4),p=r(8),h=r(14),f=r(34),v=r(6),m=r(11),g=r(2),y=function(e){function t(r){var n=e.call(this)||this;if(n.data={},n.type=c.TypeStrings.Session,!r)throw new u.Exceptions.SessionDescriptionHandlerError("A session description handler is required for the session to function");return n.status=t.C.STATUS_NULL,n.dialog=void 0,n.pendingReinvite=!1,n.earlyDialogs={},n.sessionDescriptionHandlerFactory=r,n.hasOffer=!1,n.hasAnswer=!1,n.timers={ackTimer:void 0,expiresTimer:void 0,invite2xxTimer:void 0,userNoAnswerTimer:void 0,rel1xxTimer:void 0,prackTimer:void 0},n.startTime=void 0,n.endTime=void 0,n.tones=void 0,n.localHold=!1,n.earlySdp=void 0,n.rel100=s.C.supported.UNSUPPORTED,n.originalReceiveRequest=n.receiveRequest,n}return o(t,e),t.prototype.dtmf=function(e,t){var r=this;if(void 0===t&&(t={}),this.status!==c.SessionStatus.STATUS_CONFIRMED&&this.status!==c.SessionStatus.STATUS_WAITING_FOR_ACK)throw new u.Exceptions.InvalidStateError(this.status);if(!e||!e.toString().match(/^[0-9A-D#*,]+$/i))throw new TypeError("Invalid tones: "+e);var n=function(){if(r.status!==c.SessionStatus.STATUS_TERMINATED&&r.tones&&0!==r.tones.length){var e,o=r.tones.shift();","===o.tone?e=2e3:(o.on("failed",function(){r.tones=void 0}),o.send(t),e=o.duration+o.interToneGap),setTimeout(n,e)}else r.tones=void 0};e=e.toString();var o=this.ua.configuration.dtmfType;if(this.sessionDescriptionHandler&&o===s.C.dtmfType.RTP&&(this.sessionDescriptionHandler.sendDtmf(e,t)||(this.logger.warn("Attempt to use dtmfType 'RTP' has failed, falling back to INFO packet method"),o=s.C.dtmfType.INFO)),o===s.C.dtmfType.INFO){for(var i=[],a=e.split("");a.length>0;)i.push(new f.DTMF(this,a.shift(),t));if(this.tones)return this.tones=this.tones.concat(i),this;this.tones=i,n()}return this},t.prototype.bye=function(e){if(void 0===e&&(e={}),this.status===c.SessionStatus.STATUS_TERMINATED)return this.logger.error("Error: Attempted to send BYE in a terminated session."),this;this.logger.log("terminating Session");var t=e.statusCode;if(t&&(t<200||t>=700))throw new TypeError("Invalid statusCode: "+t);return e.receiveResponse=function(){},this.sendRequest(s.C.BYE,e).terminated()},t.prototype.refer=function(e,t){if(void 0===t&&(t={}),this.status!==c.SessionStatus.STATUS_CONFIRMED)throw new u.Exceptions.InvalidStateError(this.status);return this.referContext=new T(this.ua,this,e,t),this.emit("referRequested",this.referContext),this.referContext.refer(t),this.referContext},t.prototype.sendRequest=function(e,t){var r=this;if(void 0===t&&(t={}),t=t||{},!this.dialog)throw new Error("sending request without a dialog");var n=new v.OutgoingRequest(e,this.dialog.remoteTarget,this.ua,{cseq:t.cseq||(this.dialog.localSeqnum+=1),callId:this.dialog.id.callId,fromUri:this.dialog.localUri,fromTag:this.dialog.id.localTag,ToUri:this.dialog.remoteUri,toTag:this.dialog.id.remoteTag,routeSet:this.dialog.routeSet,statusCode:t.statusCode,reasonPhrase:t.reasonPhrase},t.extraHeaders||[],t.body);return new p.RequestSender({request:n,onRequestTimeout:function(){return r.onRequestTimeout()},onTransportError:function(){return r.onTransportError()},receiveResponse:function(e){return(t.receiveResponse||r.receiveNonInviteResponse.bind(r))(e)}},this.ua).send(),this.emit(e.toLowerCase(),n),this},t.prototype.close=function(){if(this.status===c.SessionStatus.STATUS_TERMINATED)return this;for(var e in this.logger.log("closing INVITE session "+this.id),this.sessionDescriptionHandler&&this.sessionDescriptionHandler.close(),this.timers)this.timers[e]&&clearTimeout(this.timers[e]);for(var t in this.dialog&&(this.dialog.terminate(),delete this.dialog),this.earlyDialogs)this.earlyDialogs.hasOwnProperty(t)&&(this.earlyDialogs[t].terminate(),delete this.earlyDialogs[t]);return this.status=c.SessionStatus.STATUS_TERMINATED,this.ua.transport&&this.ua.transport.removeListener("transportError",this.errorListener),delete this.ua.sessions[this.id],this},t.prototype.createDialog=function(e,t,r){void 0===r&&(r=!1);var n,o=e["UAS"===t?"toTag":"fromTag"],i=e["UAS"===t?"fromTag":"toTag"],a=e.callId+o+i;if(r)return!!this.earlyDialogs[a]||((n=new l.Dialog(this,e,t,l.Dialog.C.STATUS_EARLY)).error?(this.logger.error(n.error),this.failed(e,s.C.causes.INTERNAL_ERROR),!1):(this.earlyDialogs[a]=n,!0));if(n=this.earlyDialogs[a]){for(var c in n.update(e,t),this.dialog=n,delete this.earlyDialogs[a],this.earlyDialogs)this.earlyDialogs.hasOwnProperty(c)&&(this.earlyDialogs[c].terminate(),delete this.earlyDialogs[c]);return!0}var u=new l.Dialog(this,e,t);return u.error?(this.logger.error(u.error),this.failed(e,s.C.causes.INTERNAL_ERROR),!1):(this.toTag=e.toTag,this.dialog=u,!0)},t.prototype.hold=function(e,t){if(void 0===e&&(e={}),void 0===t&&(t=[]),this.status!==c.SessionStatus.STATUS_WAITING_FOR_ACK&&this.status!==c.SessionStatus.STATUS_CONFIRMED)throw new u.Exceptions.InvalidStateError(this.status);this.localHold?this.logger.log("Session is already on hold, cannot put it on hold again"):(e.modifiers=t,this.sessionDescriptionHandler&&e.modifiers.push(this.sessionDescriptionHandler.holdModifier),this.localHold=!0,this.sendReinvite(e))},t.prototype.unhold=function(e,t){if(void 0===e&&(e={}),void 0===t&&(t=[]),this.status!==c.SessionStatus.STATUS_WAITING_FOR_ACK&&this.status!==c.SessionStatus.STATUS_CONFIRMED)throw new u.Exceptions.InvalidStateError(this.status);this.localHold?(e.modifiers=t,this.localHold=!1,this.sendReinvite(e)):this.logger.log("Session is not on hold, cannot unhold it")},t.prototype.reinvite=function(e,t){return void 0===e&&(e={}),void 0===t&&(t=[]),e.modifiers=t,this.sendReinvite(e)},t.prototype.receiveRequest=function(e){switch(e.method){case s.C.BYE:e.reply(200),this.status===c.SessionStatus.STATUS_CONFIRMED&&(this.emit("bye",e),this.terminated(e,s.C.BYE));break;case s.C.INVITE:this.status===c.SessionStatus.STATUS_CONFIRMED&&(this.logger.log("re-INVITE received"),this.receiveReinvite(e));break;case s.C.INFO:if(this.status===c.SessionStatus.STATUS_CONFIRMED||this.status===c.SessionStatus.STATUS_WAITING_FOR_ACK){if(this.onInfo)return this.onInfo(e);var t=e.getHeader("content-type");if(t)if(t.match(/^application\/dtmf-relay/i)){if(e.body){var r=e.body.split("\r\n",2);if(2===r.length){var n=void 0,o=void 0,i=/^(Signal\s*?=\s*?)([0-9A-D#*]{1})(\s)?.*/;i.test(r[0])&&(n=r[0].replace(i,"$2"));var a=/^(Duration\s?=\s?)([0-9]{1,4})(\s)?.*/;a.test(r[1])&&(o=parseInt(r[1].replace(a,"$2"),10)),n&&o&&new f.DTMF(this,n,{duration:o}).init_incoming(e)}}}else e.reply(415,void 0,["Accept: application/dtmf-relay"])}break;case s.C.REFER:if(this.status===c.SessionStatus.STATUS_CONFIRMED)if(this.logger.log("REFER received"),this.referContext=new b(this.ua,e),this.listeners("referRequested").length)this.emit("referRequested",this.referContext);else{this.logger.log("No referRequested listeners, automatically accepting and following the refer");var l={followRefer:!0};this.passedOptions&&(l.inviteOptions=this.passedOptions),this.referContext.accept(l,this.modifiers)}break;case s.C.NOTIFY:if(this.referContext&&this.referContext.type===c.TypeStrings.ReferClientContext&&e.hasHeader("event")&&/^refer(;.*)?$/.test(e.getHeader("event")))return void this.referContext.receiveNotify(e);e.reply(200,"OK"),this.emit("notify",e)}},t.prototype.terminate=function(e){return this},t.prototype.onTransportError=function(){this.status!==c.SessionStatus.STATUS_CONFIRMED&&this.status!==c.SessionStatus.STATUS_TERMINATED&&this.failed(void 0,s.C.causes.CONNECTION_ERROR)},t.prototype.onRequestTimeout=function(){this.status===c.SessionStatus.STATUS_CONFIRMED?this.terminated(void 0,s.C.causes.REQUEST_TIMEOUT):this.status!==c.SessionStatus.STATUS_TERMINATED&&(this.failed(void 0,s.C.causes.REQUEST_TIMEOUT),this.terminated(void 0,s.C.causes.REQUEST_TIMEOUT))},t.prototype.onDialogError=function(e){this.status===c.SessionStatus.STATUS_CONFIRMED?this.terminated(e,s.C.causes.DIALOG_ERROR):this.status!==c.SessionStatus.STATUS_TERMINATED&&(this.failed(e,s.C.causes.DIALOG_ERROR),this.terminated(e,s.C.causes.DIALOG_ERROR))},t.prototype.receiveReinvite=function(e){var t,r=this;if(this.emit("reinvite",this,e),e.hasHeader("P-Asserted-Identity")&&(this.assertedIdentity=d.Grammar.nameAddrHeaderParse(e.getHeader("P-Asserted-Identity"))),this.sessionDescriptionHandler){if("0"!==e.getHeader("Content-Length")||e.getHeader("Content-Type")){if(!this.sessionDescriptionHandler.hasDescription(e.getHeader("Content-Type")||""))return e.reply(415),void this.emit("reinviteFailed",this);t=this.sessionDescriptionHandler.setDescription(e.body,this.sessionDescriptionHandlerOptions,this.modifiers).then(this.sessionDescriptionHandler.getDescription.bind(this.sessionDescriptionHandler,this.sessionDescriptionHandlerOptions,this.modifiers))}else t=this.sessionDescriptionHandler.getDescription(this.sessionDescriptionHandlerOptions,this.modifiers);this.receiveRequest=function(e){e.method===s.C.ACK&&r.status===c.SessionStatus.STATUS_WAITING_FOR_ACK?r.sessionDescriptionHandler&&r.sessionDescriptionHandler.hasDescription(e.getHeader("Content-Type")||"")?(r.hasAnswer=!0,r.sessionDescriptionHandler.setDescription(e.body,r.sessionDescriptionHandlerOptions,r.modifiers).then(function(){clearTimeout(r.timers.ackTimer),clearTimeout(r.timers.invite2xxTimer),r.status=c.SessionStatus.STATUS_CONFIRMED,r.emit("confirmed",e)})):(clearTimeout(r.timers.ackTimer),clearTimeout(r.timers.invite2xxTimer),r.status=c.SessionStatus.STATUS_CONFIRMED,r.emit("confirmed",e)):r.originalReceiveRequest(e)},t.catch(function(t){var n;throw t.type===c.TypeStrings.SessionDescriptionHandlerError?n=500:t.type===c.TypeStrings.RenegotiationError?(r.emit("renegotiationError",t),r.logger.warn(t.toString()),n=488):(r.logger.error(t),n=488),e.reply(n),r.emit("reinviteFailed",r),t}).then(function(t){var n=["Contact: "+r.contact];e.reply(200,void 0,n,t,function(){r.status=c.SessionStatus.STATUS_WAITING_FOR_ACK,r.setACKTimer(),r.emit("reinviteAccepted",r)})})}else this.logger.warn("No SessionDescriptionHandler to reinvite")},t.prototype.sendReinvite=function(e){var t=this;if(void 0===e&&(e={}),this.pendingReinvite)this.logger.warn("Reinvite in progress. Please wait until complete, then try again.");else if(this.sessionDescriptionHandler){this.pendingReinvite=!0,e.modifiers=e.modifiers||[];var r=(e.extraHeaders||[]).slice();r.push("Contact: "+this.contact),r.push("Allow: "+["ACK","CANCEL","INVITE","MESSAGE","BYE","OPTIONS","INFO","NOTIFY","REFER"].toString()),this.sessionDescriptionHandler.getDescription(e.sessionDescriptionHandlerOptions,e.modifiers).then(function(e){t.sendRequest(s.C.INVITE,{extraHeaders:r,body:e,receiveResponse:function(e){return t.receiveReinviteResponse(e)}})}).catch(function(e){if(e.type===c.TypeStrings.RenegotiationError)throw t.pendingReinvite=!1,t.emit("renegotiationError",e),t.logger.warn("Renegotiation Error"),t.logger.warn(e.toString()),e;throw t.logger.error("sessionDescriptionHandler error"),t.logger.error(e),e})}else this.logger.warn("No SessionDescriptionHandler, can't reinvite..")},t.prototype.receiveReinviteResponse=function(e){var t=this;if(this.status!==c.SessionStatus.STATUS_TERMINATED)if(this.pendingReinvite){var r=e&&e.statusCode?e.statusCode.toString():"";switch(!0){case/^1[0-9]{2}$/.test(r):break;case/^2[0-9]{2}$/.test(r):if(this.status=c.SessionStatus.STATUS_CONFIRMED,this.emit("ack",e.transaction.sendACK()),this.pendingReinvite=!1,clearTimeout(this.timers.invite2xxTimer),!this.sessionDescriptionHandler||!this.sessionDescriptionHandler.hasDescription(e.getHeader("Content-Type")||"")){this.logger.error("2XX response received to re-invite but did not have a description"),this.emit("reinviteFailed",this),this.emit("renegotiationError",new u.Exceptions.RenegotiationError("2XX response received to re-invite but did not have a description"));break}this.sessionDescriptionHandler.setDescription(e.body,this.sessionDescriptionHandlerOptions,this.modifiers).catch(function(e){throw t.logger.error("Could not set the description in 2XX response"),t.logger.error(e),t.emit("reinviteFailed",t),t.emit("renegotiationError",e),t.sendRequest(s.C.BYE,{extraHeaders:["Reason: "+g.Utils.getReasonHeaderValue(488,"Not Acceptable Here")]}),t.terminated(void 0,s.C.causes.INCOMPATIBLE_SDP),e}).then(function(){t.emit("reinviteAccepted",t)});break;default:this.pendingReinvite=!1,this.logger.log("Received a non 1XX or 2XX response to a re-invite"),this.emit("reinviteFailed",this),this.emit("renegotiationError",new u.Exceptions.RenegotiationError("Invalid response to a re-invite"))}}else this.logger.error("Received reinvite response, but have no pending reinvite");else this.logger.error("Received reinvite response, but in STATUS_TERMINATED")},t.prototype.acceptAndTerminate=function(e,t,r){var n=[];return t&&n.push("Reason: "+g.Utils.getReasonHeaderValue(t,r)),(this.dialog||this.createDialog(e,"UAC"))&&(this.emit("ack",e.transaction.sendACK()),this.sendRequest(s.C.BYE,{extraHeaders:n})),this},t.prototype.setInvite2xxTimer=function(e,t){var r=this,n=m.Timers.T1,o=function(){if(r.status===c.SessionStatus.STATUS_WAITING_FOR_ACK){r.logger.log("no ACK received, attempting to retransmit OK");var i=["Contact: "+r.contact];e.reply(200,void 0,i,t),n=Math.min(2*n,m.Timers.T2),r.timers.invite2xxTimer=setTimeout(o,n)}};this.timers.invite2xxTimer=setTimeout(o,n)},t.prototype.setACKTimer=function(){var e=this;this.timers.ackTimer=setTimeout(function(){e.status===c.SessionStatus.STATUS_WAITING_FOR_ACK&&(e.logger.log("no ACK received for an extended period of time, terminating the call"),clearTimeout(e.timers.invite2xxTimer),e.sendRequest(s.C.BYE),e.terminated(void 0,s.C.causes.NO_ACK))},m.Timers.TIMER_H)},t.prototype.failed=function(e,t){return this.status===c.SessionStatus.STATUS_TERMINATED||this.emit("failed",e,t),this},t.prototype.rejected=function(e,t){return this.emit("rejected",e,t),this},t.prototype.canceled=function(){return this.sessionDescriptionHandler&&this.sessionDescriptionHandler.close(),this.emit("cancel"),this},t.prototype.accepted=function(e,t){return e instanceof String||(t=g.Utils.getReasonPhrase(e&&e.statusCode||0,t)),this.startTime=new Date,this.replacee&&(this.replacee.emit("replaced",this),this.replacee.terminate()),this.emit("accepted",e,t),this},t.prototype.terminated=function(e,t){return this.status===c.SessionStatus.STATUS_TERMINATED||(this.endTime=new Date,this.close(),this.emit("terminated",e,t)),this},t.prototype.connecting=function(e){return this.emit("connecting",{request:e}),this},t.prototype.receiveNonInviteResponse=function(e){},t.C=c.SessionStatus,t}(i.EventEmitter);t.Session=y;var C=function(e){function t(t,r){var n=this;if(!t.configuration.sessionDescriptionHandlerFactory)throw t.logger.warn("Can't build ISC without SDH Factory"),new Error("ISC Constructor Failed");n=e.call(this,t.configuration.sessionDescriptionHandlerFactory)||this,h.ServerContext.initializer(n,t,r),n.type=c.TypeStrings.InviteServerContext;var o=r.parseHeader("Content-Disposition");o&&"render"===o.type&&(n.renderbody=r.body,n.rendertype=r.getHeader("Content-Type")),n.status=c.SessionStatus.STATUS_INVITE_RECEIVED,n.fromTag=r.fromTag,n.id=r.callId+n.fromTag,n.request=r,n.contact=n.ua.contact.toString(),n.receiveNonInviteResponse=function(){},n.logger=t.getLogger("sip.inviteservercontext",n.id),n.ua.sessions[n.id]=n;var i=function(e,t){r.hasHeader(e)&&r.getHeader(e).toLowerCase().indexOf("100rel")>=0&&(n.rel100=t)};if(i("require",s.C.supported.REQUIRED),i("supported",s.C.supported.SUPPORTED),r.toTag=g.Utils.newTag(),n.createDialog(r,"UAS",!0)){var a={extraHeaders:["Contact: "+n.contact]};if(n.rel100!==s.C.supported.REQUIRED&&n.progress(a),n.status=c.SessionStatus.STATUS_WAITING_FOR_ANSWER,n.timers.userNoAnswerTimer=setTimeout(function(){r.reply(408),n.failed(r,s.C.causes.NO_ANSWER),n.terminated(r,s.C.causes.NO_ANSWER)},n.ua.configuration.noAnswerTimeout||60),r.hasHeader("expires")){var l=1e3*Number(r.getHeader("expires")||0);n.timers.expiresTimer=setTimeout(function(){n.status===c.SessionStatus.STATUS_WAITING_FOR_ANSWER&&(r.reply(487),n.failed(r,s.C.causes.EXPIRES),n.terminated(r,s.C.causes.EXPIRES))},l)}return n.errorListener=n.onTransportError.bind(n),t.transport&&t.transport.on("transportError",n.errorListener),n}r.reply(500,"Missing Contact header field")}return o(t,e),t.prototype.reject=function(e){var t=this;if(void 0===e&&(e={}),this.status===c.SessionStatus.STATUS_TERMINATED)throw new u.Exceptions.InvalidStateError(this.status);this.logger.log("rejecting RTCSession");var r=e.statusCode||480,n=g.Utils.getReasonPhrase(r,e.reasonPhrase),o=e.extraHeaders||[];if(r<300||r>699)throw new TypeError("Invalid statusCode: "+r);var i=this.request.reply(r,n,o,e.body);return["rejected","failed"].forEach(function(e){t.emit(e,i,n)}),this.terminated()},t.prototype.reply=function(e){return this},t.prototype.terminate=function(e){var t=this;void 0===e&&(e={});var r=(e.extraHeaders||[]).slice();if(this.status===c.SessionStatus.STATUS_WAITING_FOR_ACK&&this.request.serverTransaction&&this.request.serverTransaction.state!==c.TransactionStatus.STATUS_TERMINATED){var n=this.dialog;this.receiveRequest=function(e){e.method===s.C.ACK&&(t.sendRequest(s.C.BYE,{extraHeaders:r}),t.dialog&&t.dialog.terminate())},this.request.serverTransaction.on("stateChanged",function(){t.request.serverTransaction&&t.request.serverTransaction.state===c.TransactionStatus.STATUS_TERMINATED&&t.dialog&&(t.bye(),t.dialog.terminate())}),this.emit("bye",this.request),this.terminated(),this.dialog=n,this.dialog&&(this.ua.dialogs[this.dialog.id.toString()]=this.dialog)}else this.status===c.SessionStatus.STATUS_CONFIRMED?this.bye(e):this.reject(e);return this},t.prototype.progress=function(e){var t=this;void 0===e&&(e={});var r=e.statusCode||180,n=(e.extraHeaders||[]).slice();if(r<100||r>199)throw new TypeError("Invalid statusCode: "+r);if(this.status===c.SessionStatus.STATUS_TERMINATED)return this;var o,i=function(){var r=e.statusCode||183;t.status=c.SessionStatus.STATUS_WAITING_FOR_PRACK,n.push("Contact: "+t.contact),n.push("Require: 100rel"),n.push("RSeq: "+Math.floor(1e4*Math.random())),t.sessionDescriptionHandler?t.sessionDescriptionHandler.getDescription(e.sessionDescriptionHandlerOptions,e.modifiers).then(function(o){if(t.status!==c.SessionStatus.STATUS_TERMINATED){t.earlySdp=o.body,t[t.hasOffer?"hasAnswer":"hasOffer"]=!0;var i=m.Timers.T1,a=function(){t.request.reply(r,void 0,n,o),i*=2,t.timers.rel1xxTimer=setTimeout(a,i)};t.timers.rel1xxTimer=setTimeout(a,i),t.timers.prackTimer=setTimeout(function(){t.status===c.SessionStatus.STATUS_WAITING_FOR_PRACK&&(t.logger.log("no PRACK received, rejecting the call"),clearTimeout(t.timers.rel1xxTimer),t.request.reply(504),t.terminated(void 0,s.C.causes.NO_PRACK))},64*m.Timers.T1);var l=t.request.reply(r,e.reasonPhrase,n,o);t.emit("progress",l,e.reasonPhrase)}},function(){t.request.reply(480),t.failed(void 0,s.C.causes.WEBRTC_ERROR),t.terminated(void 0,s.C.causes.WEBRTC_ERROR)}):t.logger.warn("No SessionDescriptionHandler, can't do 100rel")};return 100!==e.statusCode&&(this.rel100===s.C.supported.REQUIRED||this.rel100===s.C.supported.SUPPORTED&&e.rel100||this.rel100===s.C.supported.SUPPORTED&&this.ua.configuration.rel100===s.C.supported.REQUIRED)?(this.sessionDescriptionHandler=this.setupSessionDescriptionHandler(),this.emit("SessionDescriptionHandler-created",this.sessionDescriptionHandler),this.sessionDescriptionHandler.hasDescription(this.request.getHeader("Content-Type")||"")?(this.hasOffer=!0,this.sessionDescriptionHandler.setDescription(this.request.body,e.sessionDescriptionHandlerOptions,e.modifiers).then(i).catch(function(e){throw t.logger.warn("invalid description"),t.logger.warn(e),t.failed(void 0,s.C.causes.WEBRTC_ERROR),t.terminated(void 0,s.C.causes.WEBRTC_ERROR),e})):i()):(o=t.request.reply(r,e.reasonPhrase,n,e.body),t.emit("progress",o,e.reasonPhrase)),this},t.prototype.accept=function(e){var t=this;void 0===e&&(e={}),this.onInfo=e.onInfo;var r=(e.extraHeaders||[]).slice(),n=function(e){r.push("Contact: "+t.contact),r.push("Allow: "+["ACK","CANCEL","INVITE","MESSAGE","BYE","OPTIONS","INFO","NOTIFY","REFER"].toString()),t.hasOffer?t.hasAnswer=!0:t.hasOffer=!0;var n=t.request.reply(200,void 0,r,e,function(){t.status=c.SessionStatus.STATUS_WAITING_FOR_ACK,t.setInvite2xxTimer(t.request,e),t.setACKTimer()},function(){t.failed(void 0,s.C.causes.CONNECTION_ERROR),t.terminated(void 0,s.C.causes.CONNECTION_ERROR)});t.status!==c.SessionStatus.STATUS_TERMINATED&&t.accepted(n,g.Utils.getReasonPhrase(200))},o=function(e){throw e.type===c.TypeStrings.SessionDescriptionHandlerError&&(t.logger.log(e.message),e.error&&t.logger.log(e.error)),t.request.reply(480),t.failed(void 0,s.C.causes.WEBRTC_ERROR),t.terminated(void 0,s.C.causes.WEBRTC_ERROR),e};if(this.status===c.SessionStatus.STATUS_WAITING_FOR_PRACK)return this.status=c.SessionStatus.STATUS_ANSWERED_WAITING_FOR_PRACK,this;if(this.status===c.SessionStatus.STATUS_WAITING_FOR_ANSWER)this.status=c.SessionStatus.STATUS_ANSWERED;else if(this.status!==c.SessionStatus.STATUS_EARLY_MEDIA)throw new u.Exceptions.InvalidStateError(this.status);if(!this.createDialog(this.request,"UAS"))return this.request.reply(500,"Missing Contact header field"),this;if(clearTimeout(this.timers.userNoAnswerTimer),this.status===c.SessionStatus.STATUS_EARLY_MEDIA)n({});else if(this.sessionDescriptionHandler=this.setupSessionDescriptionHandler(),this.emit("SessionDescriptionHandler-created",this.sessionDescriptionHandler),"0"!==this.request.getHeader("Content-Length")||this.request.getHeader("Content-Type")){if(!this.sessionDescriptionHandler.hasDescription(this.request.getHeader("Content-Type")||""))return this.request.reply(415),this;this.hasOffer=!0,this.sessionDescriptionHandler.setDescription(this.request.body,e.sessionDescriptionHandlerOptions,e.modifiers).then(function(){if(!t.sessionDescriptionHandler)throw new Error("No SDH");return t.sessionDescriptionHandler.getDescription(e.sessionDescriptionHandlerOptions,e.modifiers)}).catch(o).then(n)}else this.sessionDescriptionHandler.getDescription(e.sessionDescriptionHandlerOptions,e.modifiers).catch(o).then(n);return this},t.prototype.receiveRequest=function(e){var t=this,r=function(){clearTimeout(t.timers.ackTimer),clearTimeout(t.timers.invite2xxTimer),t.status=c.SessionStatus.STATUS_CONFIRMED;var r=e.getHeader("Content-Disposition");r&&"render"===r.type&&(t.renderbody=e.body,t.rendertype=e.getHeader("Content-Type")),t.emit("confirmed",e)};switch(e.method){case s.C.CANCEL:this.status!==c.SessionStatus.STATUS_WAITING_FOR_ANSWER&&this.status!==c.SessionStatus.STATUS_WAITING_FOR_PRACK&&this.status!==c.SessionStatus.STATUS_ANSWERED_WAITING_FOR_PRACK&&this.status!==c.SessionStatus.STATUS_EARLY_MEDIA&&this.status!==c.SessionStatus.STATUS_ANSWERED||(this.status=c.SessionStatus.STATUS_CANCELED,this.request.reply(487),this.canceled(),this.rejected(e,s.C.causes.CANCELED),this.failed(e,s.C.causes.CANCELED),this.terminated(e,s.C.causes.CANCELED));break;case s.C.ACK:this.status===c.SessionStatus.STATUS_WAITING_FOR_ACK&&(this.status=c.SessionStatus.STATUS_CONFIRMED,this.sessionDescriptionHandler&&this.sessionDescriptionHandler.hasDescription(e.getHeader("Content-Type")||"")?(this.hasAnswer=!0,this.sessionDescriptionHandler.setDescription(e.body,this.sessionDescriptionHandlerOptions,this.modifiers).catch(function(r){throw t.logger.warn(r),t.terminate({statusCode:"488",reasonPhrase:"Bad Media Description"}),t.failed(e,s.C.causes.BAD_MEDIA_DESCRIPTION),t.terminated(e,s.C.causes.BAD_MEDIA_DESCRIPTION),r}).then(function(){return r()})):r());break;case s.C.PRACK:this.status===c.SessionStatus.STATUS_WAITING_FOR_PRACK||this.status===c.SessionStatus.STATUS_ANSWERED_WAITING_FOR_PRACK?this.hasAnswer?(clearTimeout(this.timers.rel1xxTimer),clearTimeout(this.timers.prackTimer),e.reply(200),this.status===c.SessionStatus.STATUS_ANSWERED_WAITING_FOR_PRACK&&(this.status=c.SessionStatus.STATUS_EARLY_MEDIA,this.accept()),this.status=c.SessionStatus.STATUS_EARLY_MEDIA):(this.sessionDescriptionHandler=this.setupSessionDescriptionHandler(),this.emit("SessionDescriptionHandler-created",this.sessionDescriptionHandler),this.sessionDescriptionHandler.hasDescription(e.getHeader("Content-Type")||"")?(this.hasAnswer=!0,this.sessionDescriptionHandler.setDescription(e.body,this.sessionDescriptionHandlerOptions,this.modifiers).then(function(){clearTimeout(t.timers.rel1xxTimer),clearTimeout(t.timers.prackTimer),e.reply(200),t.status===c.SessionStatus.STATUS_ANSWERED_WAITING_FOR_PRACK&&(t.status=c.SessionStatus.STATUS_EARLY_MEDIA,t.accept()),t.status=c.SessionStatus.STATUS_EARLY_MEDIA},function(r){t.logger.warn(r),t.terminate({statusCode:"488",reasonPhrase:"Bad Media Description"}),t.failed(e,s.C.causes.BAD_MEDIA_DESCRIPTION),t.terminated(e,s.C.causes.BAD_MEDIA_DESCRIPTION)})):(this.terminate({statusCode:"488",reasonPhrase:"Bad Media Description"}),this.failed(e,s.C.causes.BAD_MEDIA_DESCRIPTION),this.terminated(e,s.C.causes.BAD_MEDIA_DESCRIPTION))):this.status===c.SessionStatus.STATUS_EARLY_MEDIA&&e.reply(200);break;default:y.prototype.receiveRequest.apply(this,[e])}},t.prototype.setupSessionDescriptionHandler=function(){return this.sessionDescriptionHandler?this.sessionDescriptionHandler:this.sessionDescriptionHandlerFactory(this,this.ua.configuration.sessionDescriptionHandlerFactoryOptions)},t}(y);t.InviteServerContext=C;var S=function(e){function t(t,r,n,o){void 0===n&&(n={}),void 0===o&&(o=[]);var i=this;if(!t.configuration.sessionDescriptionHandlerFactory)throw t.logger.warn("Can't build ISC without SDH Factory"),new Error("ICC Constructor Failed");n.params=n.params||{};var l=n.anonymous||!1,d=g.Utils.newTag();n.params.fromTag=d;var p=t.contact.toString({anonymous:l,outbound:l?!t.contact.temp_gruu:!t.contact.pub_gruu}),h=(n.extraHeaders||[]).slice();if(l&&t.configuration.uri&&(n.params.from_displayName="Anonymous",n.params.from_uri="sip:anonymous@anonymous.invalid",h.push("P-Preferred-Identity: "+t.configuration.uri.toString()),h.push("Privacy: id")),h.push("Contact: "+p),h.push("Allow: "+["ACK","CANCEL","INVITE","MESSAGE","BYE","OPTIONS","INFO","NOTIFY","REFER"].toString()),t.configuration.rel100===s.C.supported.REQUIRED&&h.push("Require: 100rel"),t.configuration.replaces===s.C.supported.REQUIRED&&h.push("Require: replaces"),n.extraHeaders=h,i=e.call(this,t.configuration.sessionDescriptionHandlerFactory)||this,a.ClientContext.initializer(i,t,s.C.INVITE,r,n),i.type=c.TypeStrings.InviteClientContext,i.passedOptions=n,i.sessionDescriptionHandlerOptions=n.sessionDescriptionHandlerOptions||{},i.modifiers=o,i.inviteWithoutSdp=n.inviteWithoutSdp||!1,i.anonymous=n.anonymous||!1,i.renderbody=n.renderbody||void 0,i.rendertype=n.rendertype||"text/plain",i.fromTag=d,i.contact=p,i.status!==c.SessionStatus.STATUS_NULL)throw new u.Exceptions.InvalidStateError(i.status);return i.isCanceled=!1,i.received100=!1,i.method=s.C.INVITE,i.logger=t.getLogger("sip.inviteclientcontext"),t.applicants[i.toString()]=i,i.id=i.request.callId+i.fromTag,i.onInfo=n.onInfo,i.errorListener=i.onTransportError.bind(i),t.transport&&t.transport.on("transportError",i.errorListener),i}return o(t,e),t.prototype.receiveNonInviteResponse=function(e){this.receiveInviteResponse(e)},t.prototype.receiveResponse=function(e){this.receiveInviteResponse(e)},t.prototype.send=function(){return new p.RequestSender(this,this.ua).send(),this},t.prototype.invite=function(){var e=this;return this.ua.sessions[this.id]=this,Promise.resolve().then(function(){e.inviteWithoutSdp?(e.request.body=e.renderbody,e.status=c.SessionStatus.STATUS_INVITE_SENT,e.send()):(e.sessionDescriptionHandler=e.sessionDescriptionHandlerFactory(e,e.ua.configuration.sessionDescriptionHandlerFactoryOptions||{}),e.emit("SessionDescriptionHandler-created",e.sessionDescriptionHandler),e.sessionDescriptionHandler.getDescription(e.sessionDescriptionHandlerOptions,e.modifiers).then(function(t){e.isCanceled||e.status===c.SessionStatus.STATUS_TERMINATED||(e.hasOffer=!0,e.request.body=t,e.status=c.SessionStatus.STATUS_INVITE_SENT,e.send())},function(t){t.type===c.TypeStrings.SessionDescriptionHandlerError&&(e.logger.log(t.message),t.error&&e.logger.log(t.error)),e.status!==c.SessionStatus.STATUS_TERMINATED&&(e.failed(void 0,s.C.causes.WEBRTC_ERROR),e.terminated(void 0,s.C.causes.WEBRTC_ERROR))}))}),this},t.prototype.receiveInviteResponse=function(e){var t=this;if(this.status!==c.SessionStatus.STATUS_TERMINATED&&e.method===s.C.INVITE){var r=e.callId+e.fromTag+e.toTag,n=[];if(this.dialog&&e.statusCode&&e.statusCode>=200&&e.statusCode<=299){if(r!==this.dialog.id.toString()){if(!this.createDialog(e,"UAC",!0))return;return this.emit("ack",e.transaction.sendACK({body:g.Utils.generateFakeSDP(e.body)})),this.earlyDialogs[r].sendRequest(this,s.C.BYE),void(this.status!==c.SessionStatus.STATUS_CONFIRMED&&(this.failed(e,s.C.causes.WEBRTC_ERROR),this.terminated(e,s.C.causes.WEBRTC_ERROR)))}if(this.status===c.SessionStatus.STATUS_CONFIRMED)return void this.emit("ack",e.transaction.sendACK());if(!this.hasAnswer)return}var o=e&&e.statusCode;if(this.dialog&&o&&o<200){var i=e.getHeader("rseq");if(i&&(-1!==this.dialog.pracked.indexOf(i)||Number(this.dialog.pracked[this.dialog.pracked.length-1])>=Number(i)&&this.dialog.pracked.length>0))return;if(!this.earlyDialogs[r]&&!this.createDialog(e,"UAC",!0))return;if(-1!==this.earlyDialogs[r].pracked.indexOf(e.getHeader("rseq"))||this.earlyDialogs[r].pracked[this.earlyDialogs[r].pracked.length-1]>=Number(i)&&this.earlyDialogs[r].pracked.length>0)return;return n.push("RAck: "+e.getHeader("rseq")+" "+e.getHeader("cseq")),this.earlyDialogs[r].pracked.push(e.getHeader("rseq")),void this.earlyDialogs[r].sendRequest(this,s.C.PRACK,{extraHeaders:n,body:g.Utils.generateFakeSDP(e.body)})}if(this.isCanceled){if(o&&o>=100&&o<200)this.request.cancel(this.cancelReason,n),this.canceled();else if(o&&o>=200&&o<299)this.acceptAndTerminate(e),this.emit("bye",this.request);else if(o&&o>=300){var a=s.C.REASON_PHRASE[e.statusCode||0]||s.C.causes.CANCELED;this.rejected(e,a),this.failed(e,a),this.terminated(e,a)}}else{var l=o?o.toString():"";switch(!0){case/^100$/.test(l):this.received100=!0,this.emit("progress",e);break;case/^1[0-9]{2}$/.test(l):if(!e.toTag){this.logger.warn("1xx response received without to tag");break}if(e.hasHeader("contact")&&!this.createDialog(e,"UAC",!0))break;if(this.status=c.SessionStatus.STATUS_1XX_RECEIVED,e.hasHeader("P-Asserted-Identity")&&(this.assertedIdentity=d.Grammar.nameAddrHeaderParse(e.getHeader("P-Asserted-Identity"))),e.hasHeader("require")&&-1!==e.getHeader("require").indexOf("100rel")){if(this.dialog||!this.earlyDialogs[r])break;var u=e.getHeader("rseq");if(-1!==this.earlyDialogs[r].pracked.indexOf(u)||this.earlyDialogs[r].pracked[this.earlyDialogs[r].pracked.length-1]>=Number(u)&&this.earlyDialogs[r].pracked.length>0)return;if(this.sessionDescriptionHandler=this.sessionDescriptionHandlerFactory(this,this.ua.configuration.sessionDescriptionHandlerFactoryOptions||{}),this.emit("SessionDescriptionHandler-created",this.sessionDescriptionHandler),this.sessionDescriptionHandler.hasDescription(e.getHeader("Content-Type")||""))if(this.hasOffer){if(!this.createDialog(e,"UAC"))break;this.hasAnswer=!0,void 0!==this.dialog&&u&&this.dialog.pracked.push(u),this.sessionDescriptionHandler.setDescription(e.body,this.sessionDescriptionHandlerOptions,this.modifiers).then(function(){n.push("RAck: "+e.getHeader("rseq")+" "+e.getHeader("cseq")),t.sendRequest(s.C.PRACK,{extraHeaders:n,receiveResponse:function(){}}),t.status=c.SessionStatus.STATUS_EARLY_MEDIA,t.emit("progress",e)},function(r){t.logger.warn(r),t.acceptAndTerminate(e,488,"Not Acceptable Here"),t.failed(e,s.C.causes.BAD_MEDIA_DESCRIPTION)})}else{var p=this.earlyDialogs[r];p.sessionDescriptionHandler=this.sessionDescriptionHandlerFactory(this,this.ua.configuration.sessionDescriptionHandlerFactoryOptions||{}),this.emit("SessionDescriptionHandler-created",p.sessionDescriptionHandler),u&&p.pracked.push(u),p.sessionDescriptionHandler&&p.sessionDescriptionHandler.setDescription(e.body,this.sessionDescriptionHandlerOptions,this.modifiers).then(function(){return p.sessionDescriptionHandler.getDescription(t.sessionDescriptionHandlerOptions,t.modifiers)}).then(function(r){n.push("RAck: "+u+" "+e.getHeader("cseq")),p.sendRequest(t,s.C.PRACK,{extraHeaders:n,body:r}),t.status=c.SessionStatus.STATUS_EARLY_MEDIA,t.emit("progress",e)}).catch(function(e){if(u&&e.type===c.TypeStrings.SessionDescriptionHandlerError){if(p.pracked.push(u),t.status===c.SessionStatus.STATUS_TERMINATED)return;t.failed(void 0,s.C.causes.WEBRTC_ERROR),t.terminated(void 0,s.C.causes.WEBRTC_ERROR)}else u&&p.pracked.splice(p.pracked.indexOf(u),1),t.logger.warn("invalid description"),t.logger.warn(e)})}else n.push("RAck: "+e.getHeader("rseq")+" "+e.getHeader("cseq")),this.earlyDialogs[r].pracked.push(e.getHeader("rseq")),this.earlyDialogs[r].sendRequest(this,s.C.PRACK,{extraHeaders:n}),this.emit("progress",e)}else this.emit("progress",e);break;case/^2[0-9]{2}$/.test(l):if(this.request.cseq+" "+this.request.method!==e.getHeader("cseq"))break;if(e.hasHeader("P-Asserted-Identity")&&(this.assertedIdentity=d.Grammar.nameAddrHeaderParse(e.getHeader("P-Asserted-Identity"))),this.status===c.SessionStatus.STATUS_EARLY_MEDIA&&this.dialog){this.status=c.SessionStatus.STATUS_CONFIRMED;var h={};this.renderbody&&(n.push("Content-Type: "+this.rendertype),h.extraHeaders=n,h.body=this.renderbody),this.emit("ack",e.transaction.sendACK(h)),this.accepted(e);break}if(this.dialog)break;if(this.hasOffer)if(this.hasAnswer)h={},this.renderbody&&(n.push("Content-Type: "+this.rendertype),h.extraHeaders=n,h.body=this.renderbody),this.emit("ack",e.transaction.sendACK(h));else{if(!this.sessionDescriptionHandler||!this.sessionDescriptionHandler.hasDescription(e.getHeader("Content-Type")||"")){this.acceptAndTerminate(e,400,"Missing session description"),this.failed(e,s.C.causes.BAD_MEDIA_DESCRIPTION);break}if(!this.createDialog(e,"UAC"))break;this.hasAnswer=!0,this.sessionDescriptionHandler.setDescription(e.body,this.sessionDescriptionHandlerOptions,this.modifiers).then(function(){var r={};t.status=c.SessionStatus.STATUS_CONFIRMED,t.renderbody&&(n.push("Content-Type: "+t.rendertype),r.extraHeaders=n,r.body=t.renderbody),t.emit("ack",e.transaction.sendACK(r)),t.accepted(e)},function(r){t.logger.warn(r),t.acceptAndTerminate(e,488,"Not Acceptable Here"),t.failed(e,s.C.causes.BAD_MEDIA_DESCRIPTION)})}else if(this.earlyDialogs[r]&&this.earlyDialogs[r].sessionDescriptionHandler){if(this.hasOffer=!0,this.hasAnswer=!0,this.sessionDescriptionHandler=this.earlyDialogs[r].sessionDescriptionHandler,!this.createDialog(e,"UAC"))break;this.status=c.SessionStatus.STATUS_CONFIRMED,this.emit("ack",e.transaction.sendACK()),this.accepted(e)}else{if(this.sessionDescriptionHandler=this.sessionDescriptionHandlerFactory(this,this.ua.configuration.sessionDescriptionHandlerFactoryOptions||{}),this.emit("SessionDescriptionHandler-created",this.sessionDescriptionHandler),!this.sessionDescriptionHandler.hasDescription(e.getHeader("Content-Type")||"")){this.acceptAndTerminate(e,400,"Missing session description"),this.failed(e,s.C.causes.BAD_MEDIA_DESCRIPTION);break}if(!this.createDialog(e,"UAC"))break;this.hasOffer=!0,this.sessionDescriptionHandler.setDescription(e.body,this.sessionDescriptionHandlerOptions,this.modifiers).then(function(){return t.sessionDescriptionHandler.getDescription(t.sessionDescriptionHandlerOptions,t.modifiers)}).then(function(r){t.isCanceled||t.status===c.SessionStatus.STATUS_TERMINATED||(t.status=c.SessionStatus.STATUS_CONFIRMED,t.hasAnswer=!0,t.emit("ack",e.transaction.sendACK({body:r})),t.accepted(e))}).catch(function(r){r.type===c.TypeStrings.SessionDescriptionHandlerError&&(t.logger.warn("invalid description"),t.logger.warn(r.toString()),t.acceptAndTerminate(e,488,"Invalid session description"),t.failed(e,s.C.causes.BAD_MEDIA_DESCRIPTION))})}break;default:a=g.Utils.sipErrorCause(o||0),this.rejected(e,a),this.failed(e,a),this.terminated(e,a)}}}},t.prototype.cancel=function(e){if(void 0===e&&(e={}),e.extraHeaders=(e.extraHeaders||[]).slice(),this.isCanceled)throw new u.Exceptions.InvalidStateError(c.SessionStatus.STATUS_CANCELED);if(this.status===c.SessionStatus.STATUS_TERMINATED||this.status===c.SessionStatus.STATUS_CONFIRMED)throw new u.Exceptions.InvalidStateError(this.status);this.logger.log("canceling RTCSession"),this.isCanceled=!0;var t=g.Utils.getCancelReason(e.statusCode,e.reasonPhrase);return this.status===c.SessionStatus.STATUS_NULL||this.status===c.SessionStatus.STATUS_INVITE_SENT&&!this.received100?this.cancelReason=t:this.status!==c.SessionStatus.STATUS_INVITE_SENT&&this.status!==c.SessionStatus.STATUS_1XX_RECEIVED&&this.status!==c.SessionStatus.STATUS_EARLY_MEDIA||this.request.cancel(t,e.extraHeaders),this.canceled()},t.prototype.terminate=function(e){return this.status===c.SessionStatus.STATUS_TERMINATED||(this.status===c.SessionStatus.STATUS_WAITING_FOR_ACK||this.status===c.SessionStatus.STATUS_CONFIRMED?this.bye(e):this.cancel(e)),this},t.prototype.receiveRequest=function(t){return t.method,s.C.CANCEL,t.method===s.C.ACK&&this.status===c.SessionStatus.STATUS_WAITING_FOR_ACK&&(clearTimeout(this.timers.ackTimer),clearTimeout(this.timers.invite2xxTimer),this.status=c.SessionStatus.STATUS_CONFIRMED,this.accepted()),e.prototype.receiveRequest.call(this,t)},t}(y);t.InviteClientContext=S;var T=function(e){function t(t,r,n,o){void 0===o&&(o={});var i=this;if(void 0===t||void 0===r||void 0===n)throw new TypeError("Not enough arguments");if((i=e.call(this,t,s.C.REFER,r.remoteIdentity.uri.toString(),o)||this).type=c.TypeStrings.ReferClientContext,i.options=o,i.extraHeaders=(i.options.extraHeaders||[]).slice(),i.applicant=r,"string"==typeof n||n.type!==c.TypeStrings.InviteServerContext&&n.type!==c.TypeStrings.InviteClientContext){var a=d.Grammar.parse(n,"Refer_To");i.target=a&&a.uri?a.uri:n;var l=i.ua.normalizeTarget(i.target);if(!l)throw new TypeError("Invalid target: "+n);i.target=l}else{var u=n.dialog;if(!u)throw new TypeError("Invalid target due to no dialog: "+n);i.target='"'+n.remoteIdentity.friendlyName+'" <'+u.remoteTarget.toString()+"?Replaces="+u.id.callId+"%3Bto-tag%3D"+u.id.remoteTag+"%3Bfrom-tag%3D"+u.id.localTag+">"}return i.ua&&i.extraHeaders.push("Referred-By: <"+i.ua.configuration.uri+">"),i.extraHeaders.push("Contact: "+r.contact),i.extraHeaders.push("Allow: "+["ACK","CANCEL","INVITE","MESSAGE","BYE","OPTIONS","INFO","NOTIFY","REFER"].toString()),i.extraHeaders.push("Refer-To: "+i.target),i.errorListener=i.onTransportError.bind(i),t.transport&&t.transport.on("transportError",i.errorListener),i}return o(t,e),t.prototype.refer=function(e){var t=this;void 0===e&&(e={});var r=(this.extraHeaders||[]).slice();return e.extraHeaders&&r.concat(e.extraHeaders),this.applicant.sendRequest(s.C.REFER,{extraHeaders:this.extraHeaders,receiveResponse:function(r){var n=r&&r.statusCode?r.statusCode.toString():"";/^1[0-9]{2}$/.test(n)?t.emit("referRequestProgress",t):/^2[0-9]{2}$/.test(n)?t.emit("referRequestAccepted",t):/^[4-6][0-9]{2}$/.test(n)&&t.emit("referRequestRejected",t),e.receiveResponse&&e.receiveResponse(r)}}),this},t.prototype.receiveNotify=function(e){var t=e.hasHeader("Content-Type")?e.getHeader("Content-Type"):void 0;if(t&&-1!==t.search(/^message\/sipfrag/)){var r=d.Grammar.parse(e.body,"sipfrag");if(-1===r)return void e.reply(489,"Bad Event");switch(!0){case/^1[0-9]{2}$/.test(r.statusCode):this.emit("referProgress",this);break;case/^2[0-9]{2}$/.test(r.statusCode):this.emit("referAccepted",this),!this.options.activeAfterTransfer&&this.applicant.terminate&&this.applicant.terminate();break;default:this.emit("referRejected",this)}return e.reply(200),void this.emit("notify",e)}e.reply(489,"Bad Event")},t}(a.ClientContext);t.ReferClientContext=T;var b=function(e){function t(t,r){var n=e.call(this,t,r)||this;return n.type=c.TypeStrings.ReferServerContext,n.ua=t,n.status=c.SessionStatus.STATUS_INVITE_RECEIVED,n.fromTag=r.fromTag,n.id=r.callId+n.fromTag,n.request=r,n.contact=n.ua.contact.toString(),n.logger=t.getLogger("sip.referservercontext",n.id),n.cseq=Math.floor(1e4*Math.random()),n.callId=n.request.callId,n.fromUri=n.request.to.uri,n.fromTag=n.request.to.parameters.tag,n.remoteTarget=n.request.headers.Contact[0].parsed.uri,n.toUri=n.request.from.uri,n.toTag=n.request.fromTag,n.routeSet=n.request.getHeaders("record-route"),n.request.hasHeader("refer-to")?(n.referTo=n.request.parseHeader("refer-to"),n.referredSession=n.ua.findSession(r),n.request.hasHeader("referred-by")&&(n.referredBy=n.request.getHeader("referred-by")),n.referTo.uri.hasHeader("replaces")&&(n.replaces=n.referTo.uri.getHeader("replaces")),n.errorListener=n.onTransportError.bind(n),t.transport&&t.transport.on("transportError",n.errorListener),n.status=c.SessionStatus.STATUS_WAITING_FOR_ANSWER,n):(n.logger.warn("Invalid REFER packet. A refer-to header is required. Rejecting refer."),n.reject(),n)}return o(t,e),t.prototype.receiveNonInviteResponse=function(e){},t.prototype.progress=function(){if(this.status!==c.SessionStatus.STATUS_WAITING_FOR_ANSWER)throw new u.Exceptions.InvalidStateError(this.status);this.request.reply(100)},t.prototype.reject=function(t){if(void 0===t&&(t={}),this.status===c.SessionStatus.STATUS_TERMINATED)throw new u.Exceptions.InvalidStateError(this.status);this.logger.log("Rejecting refer"),this.status=c.SessionStatus.STATUS_TERMINATED,e.prototype.reject.call(this,t),this.emit("referRequestRejected",this)},t.prototype.accept=function(e,t){var r=this;if(void 0===e&&(e={}),this.status!==c.SessionStatus.STATUS_WAITING_FOR_ANSWER)throw new u.Exceptions.InvalidStateError(this.status);if(this.status=c.SessionStatus.STATUS_ANSWERED,this.request.reply(202,"Accepted"),this.emit("referRequestAccepted",this),e.followRefer){this.logger.log("Accepted refer, attempting to automatically follow it");var n=this.referTo.uri;if(!n.scheme||!n.scheme.match("^sips?$"))return this.logger.error("SIP.js can only automatically follow SIP refer target"),void this.reject();var o=e.inviteOptions||{},i=(o.extraHeaders||[]).slice();if(this.replaces&&i.push("Replaces: "+decodeURIComponent(this.replaces)),this.referredBy&&i.push("Referred-By: "+this.referredBy),o.extraHeaders=i,n.clearHeaders(),this.targetSession=this.ua.invite(n.toString(),o,t),this.emit("referInviteSent",this),this.targetSession){this.targetSession.once("progress",function(e){var t=e.statusCode||100,n=e.reasonPhrase;r.sendNotify(("SIP/2.0 "+t+" "+n).trim()),r.emit("referProgress",r),r.referredSession&&r.referredSession.emit("referProgress",r)}),this.targetSession.once("accepted",function(){r.logger.log("Successfully followed the refer"),r.sendNotify("SIP/2.0 200 OK"),r.emit("referAccepted",r),r.referredSession&&r.referredSession.emit("referAccepted",r)});var a=function(e){if(r.status!==c.SessionStatus.STATUS_TERMINATED){if(r.logger.log("Refer was not successful. Resuming session"),e&&429===e.statusCode)return r.logger.log("Alerting referrer that identity is required."),void r.sendNotify("SIP/2.0 429 Provide Referrer Identity");r.sendNotify("SIP/2.0 603 Declined"),r.status=c.SessionStatus.STATUS_TERMINATED,r.emit("referRejected",r),r.referredSession&&r.referredSession.emit("referRejected")}};this.targetSession.once("rejected",a),this.targetSession.once("failed",a)}}else this.logger.log("Accepted refer, but did not automatically follow it"),this.sendNotify("SIP/2.0 200 OK"),this.emit("referAccepted",this),this.referredSession&&this.referredSession.emit("referAccepted",this)},t.prototype.sendNotify=function(e){if(this.status!==c.SessionStatus.STATUS_ANSWERED)throw new u.Exceptions.InvalidStateError(this.status);if(-1===d.Grammar.parse(e,"sipfrag"))throw new Error("sipfrag body is required to send notify for refer");var t=new v.OutgoingRequest(s.C.NOTIFY,this.remoteTarget,this.ua,{cseq:this.cseq+=1,callId:this.callId,fromUri:this.fromUri,fromTag:this.fromTag,toUri:this.toUri,toTag:this.toTag,routeSet:this.routeSet},["Event: refer","Subscription-State: terminated","Content-Type: message/sipfrag"],e);new p.RequestSender({request:t,onRequestTimeout:function(){},onTransportError:function(){},receiveResponse:function(){}},this.ua).send()},t}(h.ServerContext);t.ReferServerContext=b},function(e,t,r){var n,o=this&&this.__extends||(n=function(e,t){return(n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)t.hasOwnProperty(r)&&(e[r]=t[r])})(e,t)},function(e,t){function r(){this.constructor=e}n(e,t),e.prototype=null===t?Object.create(t):(r.prototype=t.prototype,new r)});Object.defineProperty(t,"__esModule",{value:!0});var i=r(7),a=r(1),s=r(13),l=r(0),c=r(11),u=r(2),d=function(e){function t(t,r,n,o){void 0===o&&(o={});var i,s=this;if(!n)throw new TypeError("Event necessary to create a subscription.");return o.extraHeaders=(o.extraHeaders||[]).slice(),"number"!=typeof o.expires?(t.logger.warn("expires must be a number. Using default of 3600."),i=3600):i=o.expires,o.extraHeaders.push("Event: "+n),o.extraHeaders.push("Expires: "+i),o.extraHeaders.push("Contact: "+t.contact.toString()),o.extraHeaders.push("Allow: "+["ACK","CANCEL","INVITE","MESSAGE","BYE","OPTIONS","INFO","NOTIFY","REFER"].toString()),(s=e.call(this,t,a.C.SUBSCRIBE,r,o)||this).type=l.TypeStrings.Subscription,s.event=n,s.requestedExpires=i,s.state="init",s.contact=t.contact.toString(),s.extraHeaders=o.extraHeaders,s.logger=t.getLogger("sip.subscription"),s.expires=i,s.timers={N:void 0,subDuration:void 0},s.errorCodes=[404,405,410,416,480,481,482,483,484,485,489,501,604],s}return o(t,e),t.prototype.subscribe=function(){var e=this;return"active"===this.state?(this.refresh(),this):("notify_wait"===this.state||(clearTimeout(this.timers.subDuration),clearTimeout(this.timers.N),this.timers.N=setTimeout(function(){return e.timer_fire()},c.Timers.TIMER_N),this.request&&this.request.from&&(this.ua.earlySubscriptions[this.request.callId+this.request.from.parameters.tag+this.event]=this),this.send(),this.state="notify_wait"),this)},t.prototype.refresh=function(){"terminated"!==this.state&&"pending"!==this.state&&"notify_wait"!==this.state&&this.dialog&&this.dialog.sendRequest(this,a.C.SUBSCRIBE,{extraHeaders:this.extraHeaders,body:this.body})},t.prototype.receiveResponse=function(e){var t=this,r=e.statusCode?e.statusCode:0,n=u.Utils.getReasonPhrase(r);if("notify_wait"===this.state&&r>=300||"notify_wait"!==this.state&&-1!==this.errorCodes.indexOf(r))this.failed(e,void 0);else if(/^2[0-9]{2}$/.test(r.toString())){this.emit("accepted",e,n);var o=e.getHeader("Expires");o&&Number(o)<=this.requestedExpires?(this.expires=Number(o),this.timers.subDuration=setTimeout(function(){return t.refresh()},900*Number(o))):o?(this.logger.warn("Expires header in a 200-class response to SUBSCRIBE with a higher value than the one in the request"),this.failed(e,"Invalid Expires Header")):(this.logger.warn("Expires header missing in a 200-class response to SUBSCRIBE"),this.failed(e,"Expires Header Missing"))}else r>300&&(this.emit("failed",e,n),this.emit("rejected",e,n))},t.prototype.unsubscribe=function(){var e=this,t=[];this.state="terminated",t.push("Event: "+this.event),t.push("Expires: 0"),t.push("Contact: "+this.contact),t.push("Allow: "+["ACK","CANCEL","INVITE","MESSAGE","BYE","OPTIONS","INFO","NOTIFY","REFER"].toString()),this.receiveResponse=function(){},this.dialog&&this.dialog.sendRequest(this,a.C.SUBSCRIBE,{extraHeaders:t,body:this.body}),clearTimeout(this.timers.subDuration),clearTimeout(this.timers.N),this.timers.N=setTimeout(function(){return e.timer_fire()},c.Timers.TIMER_N),this.emit("terminated")},t.prototype.receiveRequest=function(e){var t,r=this,n=function(){t.expires&&(clearTimeout(r.timers.subDuration),t.expires=Math.min(r.expires,Math.max(t.expires,0)),r.timers.subDuration=setTimeout(function(){return r.refresh()},900*t.expires))};if(this.matchEvent(e))if(this.dialog||this.createConfirmedDialog(e,"UAS")&&this.dialog&&(this.id=this.dialog.id.toString(),this.request&&this.request.from&&(delete this.ua.earlySubscriptions[this.request.callId+this.request.from.parameters.tag+this.event],this.ua.subscriptions[this.id||""]=this)),t=e.parseHeader("Subscription-State"),e.reply(200),clearTimeout(this.timers.N),this.emit("notify",{request:e}),"terminated"!==this.state)switch(t.state){case"active":this.state="active",n();break;case"pending":"notify_wait"===this.state&&n(),this.state="pending";break;case"terminated":if(clearTimeout(this.timers.subDuration),t.reason)switch(this.logger.log("terminating subscription with reason "+t.reason),t.reason){case"deactivated":case"timeout":return void this.subscribe();case"probation":case"giveup":return void(t.params&&t.params["retry-after"]?this.timers.subDuration=setTimeout(function(){return r.subscribe()},t.params["retry-after"]):this.subscribe())}this.close()}else"terminated"===t.state&&(this.terminateDialog(),clearTimeout(this.timers.N),clearTimeout(this.timers.subDuration),delete this.ua.subscriptions[this.id||""]);else e.reply(489)},t.prototype.close=function(){"notify_wait"===this.state?(this.state="terminated",clearTimeout(this.timers.N),clearTimeout(this.timers.subDuration),this.receiveResponse=function(){},this.request&&this.request.from&&delete this.ua.earlySubscriptions[this.request.callId+this.request.from.parameters.tag+this.event],this.emit("terminated")):"terminated"!==this.state&&this.unsubscribe()},t.prototype.onDialogError=function(e){this.failed(e,a.C.causes.DIALOG_ERROR)},t.prototype.timer_fire=function(){"terminated"===this.state?(this.terminateDialog(),clearTimeout(this.timers.N),clearTimeout(this.timers.subDuration),delete this.ua.subscriptions[this.id||""]):"notify_wait"===this.state||"pending"===this.state?this.close():this.refresh()},t.prototype.createConfirmedDialog=function(e,t){this.terminateDialog();var r=new s.Dialog(this,e,t);return this.request&&(r.inviteSeqnum=this.request.cseq,r.localSeqnum=this.request.cseq),!r.error&&(this.dialog=r,!0)},t.prototype.terminateDialog=function(){this.dialog&&(delete this.ua.subscriptions[this.id||""],this.dialog.terminate(),delete this.dialog)},t.prototype.failed=function(e,t){return this.close(),this.emit("failed",e,t),this.emit("rejected",e,t),this},t.prototype.matchEvent=function(e){if(!e.hasHeader("Event"))return this.logger.warn("missing Event header"),!1;if(!e.hasHeader("Subscription-State"))return this.logger.warn("missing Subscription-State header"),!1;var t=e.parseHeader("event").event;return this.event===t||(this.logger.warn("event match failed"),e.reply(481,"Event Match Failed"),!1)},t}(i.ClientContext);t.Subscription=d},function(e,t,r){var n,o=this&&this.__extends||(n=function(e,t){return(n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)t.hasOwnProperty(r)&&(e[r]=t[r])})(e,t)},function(e,t){function r(){this.constructor=e}n(e,t),e.prototype=null===t?Object.create(t):(r.prototype=t.prototype,new r)});Object.defineProperty(t,"__esModule",{value:!0});var i=r(3),a=r(0),s=function(e){function t(t,r){var n=e.call(this)||this;return n.type=a.TypeStrings.Transport,n.logger=t,n}return o(t,e),t.prototype.connect=function(e){var t=this;return void 0===e&&(e={}),this.connectPromise(e).then(function(e){e.overrideEvent||t.emit("connected")})},t.prototype.send=function(e,t){var r=this;return this.sendPromise(e).then(function(e){e.overrideEvent||r.emit("messageSent",e.msg)})},t.prototype.disconnect=function(e){var t=this;return void 0===e&&(e={}),this.disconnectPromise(e).then(function(e){e.overrideEvent||t.emit("disconnected")})},t.prototype.afterConnected=function(e){this.isConnected()?e():this.once("connected",e)},t.prototype.waitForConnected=function(){var e=this;return new Promise(function(t){e.afterConnected(t)})},t}(i.EventEmitter);t.Transport=s},function(e,t,r){(function(e){var n,o=this&&this.__extends||(n=function(e,t){return(n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)t.hasOwnProperty(r)&&(e[r]=t[r])})(e,t)},function(e,t){function r(){this.constructor=e}n(e,t),e.prototype=null===t?Object.create(t):(r.prototype=t.prototype,new r)});Object.defineProperty(t,"__esModule",{value:!0});var i=r(3),a=r(7),s=r(1),l=r(18),c=r(0),u=r(5),d=r(4),p=r(19),h=r(20),f=r(21),v=r(22),m=r(23),g=r(14),y=r(24),C=r(25),S=r(9),T=r(10),b=r(2),w=r(28),E=r(29),A=e.window||e,_=function(t){function r(e){var n=t.call(this)||this;n.type=c.TypeStrings.UA,n.log=new p.LoggerFactory,n.logger=n.getLogger("sip.ua"),n.cache={credentials:{}},n.configuration={},n.dialogs={},n.applicants={},n.data={},n.sessions={},n.subscriptions={},n.earlySubscriptions={},n.publishers={},n.status=c.UAStatus.STATUS_INIT,n.transactions={nist:{},nict:{},ist:{},ict:{}},void 0===e?e={}:("string"==typeof e||e instanceof String)&&(e={uri:e}),e.log&&(e.log.hasOwnProperty("builtinEnabled")&&(n.log.builtinEnabled=e.log.builtinEnabled),e.log.hasOwnProperty("level")&&(n.log.level=e.log.level),e.log.hasOwnProperty("connector")&&(n.log.connector=e.log.connector));try{n.loadConfig(e)}catch(o){throw n.status=c.UAStatus.STATUS_NOT_READY,n.error=r.C.CONFIGURATION_ERROR,o}return n.registerContext=new v.RegisterContext(n,e.registerOptions),n.registerContext.on("failed",n.emit.bind(n,"registrationFailed")),n.registerContext.on("registered",n.emit.bind(n,"registered")),n.registerContext.on("unregistered",n.emit.bind(n,"unregistered")),n.configuration.autostart&&n.start(),n}return o(r,t),Object.defineProperty(r.prototype,"transactionsCount",{get:function(){for(var e=0,t=0,r=["nist","nict","ist","ict"];t<r.length;t++){var n=r[t];e+=Object.keys(this.transactions[n]).length}return e},enumerable:!0,configurable:!0}),Object.defineProperty(r.prototype,"nictTransactionsCount",{get:function(){return Object.keys(this.transactions.nict).length},enumerable:!0,configurable:!0}),Object.defineProperty(r.prototype,"nistTransactionsCount",{get:function(){return Object.keys(this.transactions.nist).length},enumerable:!0,configurable:!0}),Object.defineProperty(r.prototype,"ictTransactionsCount",{get:function(){return Object.keys(this.transactions.ict).length},enumerable:!0,configurable:!0}),Object.defineProperty(r.prototype,"istTransactionsCount",{get:function(){return Object.keys(this.transactions.ist).length},enumerable:!0,configurable:!0}),r.prototype.register=function(e){return void 0===e&&(e={}),e.register&&(this.configuration.register=!0),this.registerContext.register(e),this},r.prototype.unregister=function(e){var t=this;return this.configuration.register=!1,this.transport&&this.transport.afterConnected(function(){t.registerContext.unregister(e)}),this},r.prototype.isRegistered=function(){return this.registerContext.registered},r.prototype.invite=function(e,t,r){var n=this,o=new y.InviteClientContext(this,e,t,r);return this.transport&&this.transport.afterConnected(function(){o.invite(),n.emit("inviteSent",o)}),o},r.prototype.subscribe=function(e,t,r){var n=new C.Subscription(this,e,t,r);return this.transport&&this.transport.afterConnected(function(){return n.subscribe()}),n},r.prototype.publish=function(e,t,r,n){var o=new f.PublishContext(this,e,t,n);return this.transport&&this.transport.afterConnected(function(){o.publish(r)}),o},r.prototype.message=function(e,t,r){if(void 0===r&&(r={}),void 0===t)throw new TypeError("Not enough arguments");return r.contentType=r.contentType||"text/plain",r.body=t,this.request(s.C.MESSAGE,e,r)},r.prototype.request=function(e,t,r){var n=new a.ClientContext(this,e,t,r);return this.transport&&this.transport.afterConnected(function(){return n.send()}),n},r.prototype.stop=function(){var t=this;if(this.logger.log("user requested closure..."),this.status===c.UAStatus.STATUS_USER_CLOSED)return this.logger.warn("UA already closed"),this;for(var r in this.logger.log("closing registerContext"),this.registerContext.close(),this.sessions)this.sessions[r]&&(this.logger.log("closing session "+r),this.sessions[r].terminate());for(var n in this.subscriptions)this.subscriptions[n]&&(this.logger.log("unsubscribing from subscription "+n),this.subscriptions[n].close());for(var o in this.earlySubscriptions)this.earlySubscriptions[o]&&(this.logger.log("unsubscribing from early subscription "+o),this.earlySubscriptions[o].close());for(var i in this.publishers)this.publishers[i]&&(this.logger.log("unpublish "+i),this.publishers[i].close());for(var a in this.applicants)this.applicants[a]&&this.applicants[a].close();if(this.status=c.UAStatus.STATUS_USER_CLOSED,0===this.nistTransactionsCount&&0===this.nictTransactionsCount&&this.transport)this.transport.disconnect();else{var s=function(){0===t.nistTransactionsCount&&0===t.nictTransactionsCount&&(t.removeListener("transactionDestroyed",s),t.transport&&t.transport.disconnect())};this.on("transactionDestroyed",s)}return"function"==typeof A.removeEventListener&&(e.chrome&&e.chrome.app&&e.chrome.app.runtime||A.removeEventListener("unload",this.environListener)),this},r.prototype.start=function(){var t=this;if(this.logger.log("user requested startup..."),this.status===c.UAStatus.STATUS_INIT){if(this.status=c.UAStatus.STATUS_STARTING,!this.configuration.transportConstructor)throw new u.Exceptions.TransportError("Transport constructor not set");this.transport=new this.configuration.transportConstructor(this.getLogger("sip.transport"),this.configuration.transportOptions),this.setTransportListeners(),this.emit("transportCreated",this.transport),this.transport.connect()}else this.status===c.UAStatus.STATUS_USER_CLOSED?(this.logger.log("resuming"),this.status=c.UAStatus.STATUS_READY,this.transport&&this.transport.connect()):this.status===c.UAStatus.STATUS_STARTING?this.logger.log("UA is in STARTING status, not opening new connection"):this.status===c.UAStatus.STATUS_READY?this.logger.log("UA is in READY status, not resuming"):this.logger.error("Connection is down. Auto-Recovery system is trying to connect");return this.configuration.autostop&&"function"==typeof A.addEventListener&&(e.chrome&&e.chrome.app&&e.chrome.app.runtime||(this.environListener=this.stop,A.addEventListener("unload",function(){return t.environListener()}))),this},r.prototype.normalizeTarget=function(e){return b.Utils.normalizeTarget(e,this.configuration.hostportParams)},r.prototype.getLogger=function(e,t){return this.log.getLogger(e,t)},r.prototype.newTransaction=function(e){this.transactions[e.kind][e.id]=e,this.emit("newTransaction",{transaction:e})},r.prototype.destroyTransaction=function(e){delete this.transactions[e.kind][e.id],this.emit("transactionDestroyed",{transaction:e})},r.prototype.findSession=function(e){return this.sessions[e.callId+e.fromTag]||this.sessions[e.callId+e.toTag]||void 0},r.prototype.saveCredentials=function(e){return this.cache.credentials[e.realm]=this.cache.credentials[e.realm]||{},this.cache.credentials[e.realm][e.uri]=e,this},r.prototype.getCredentials=function(e){var t=e.ruri.type===c.TypeStrings.URI?e.ruri.host:"";if(t&&this.cache.credentials[t]&&this.cache.credentials[t][e.ruri.toString()]){var r=this.cache.credentials[t][e.ruri.toString()];return r.method=e.method,r}},r.prototype.onTransportError=function(){this.status!==c.UAStatus.STATUS_USER_CLOSED&&(this.error&&this.error===r.C.NETWORK_ERROR||(this.status=c.UAStatus.STATUS_NOT_READY,this.error=r.C.NETWORK_ERROR))},r.prototype.setTransportListeners=function(){var e=this;this.transport&&(this.transport.on("connected",function(){return e.onTransportConnected()}),this.transport.on("message",function(t){return e.onTransportReceiveMsg(t)}),this.transport.on("transportError",function(){return e.onTransportError()}))},r.prototype.onTransportConnected=function(){var e=this;this.configuration.register&&Promise.resolve().then(function(){return e.registerContext.register()})},r.prototype.onTransportReceiveMsg=function(e){var t=h.Parser.parseMessage(e,this);if(this.status===c.UAStatus.STATUS_USER_CLOSED&&t&&t.type===c.TypeStrings.IncomingRequest)this.logger.warn("UA received message when status = USER_CLOSED - aborting");else if(t&&this.transport&&m.SanityCheck.sanityCheck(t,this,this.transport))if(t.type===c.TypeStrings.IncomingRequest)t.transport=this.transport,this.receiveRequest(t);else if(t.type===c.TypeStrings.IncomingResponse)switch(t.method){case s.C.INVITE:var r=this.transactions.ict[t.viaBranch];r&&r.receiveResponse(t);break;case s.C.ACK:break;default:var n=this.transactions.nict[t.viaBranch];n&&n.receiveResponse(t)}},r.prototype.receiveRequest=function(e){var t=function(t){return!!t&&!!e.ruri&&t.user===e.ruri.user};if(this.configuration.uri.type===c.TypeStrings.URI&&!(t(this.configuration.uri)||this.contact&&(t(this.contact.uri)||t(this.contact.pubGruu)||t(this.contact.tempGruu))))return this.logger.warn("Request-URI does not point to us"),void(e.method!==s.C.ACK&&e.reply_sl(404));if(e.ruri&&e.ruri.scheme===s.C.SIPS)e.reply_sl(416);else if(!this.checkTransaction(e)){var n,o=e.method;if(o===s.C.OPTIONS?(new S.NonInviteServerTransaction(e,this),e.reply(200,void 0,["Allow: "+r.C.ALLOWED_METHODS.toString(),"Accept: "+r.C.ACCEPTED_BODY_TYPES.toString()])):o===s.C.MESSAGE?((n=new g.ServerContext(this,e)).body=e.body,n.contentType=e.getHeader("Content-Type")||"text/plain",e.reply(200,void 0),this.emit("message",n)):o!==s.C.INVITE&&o!==s.C.ACK&&(n=new g.ServerContext(this,e)),e.toTag){var i=this.findDialog(e);if(i)o===s.C.INVITE&&new S.InviteServerTransaction(e,this),i.receiveRequest(e);else if(o===s.C.NOTIFY){p=this.findSession(e);var a=this.findEarlySubscription(e);p?p.receiveRequest(e):a?a.receiveRequest(e):(this.logger.warn("received NOTIFY request for a non existent session or subscription"),e.reply(481,"Subscription does not exist"))}else o!==s.C.ACK&&e.reply(481)}else switch(o){case s.C.INVITE:var l=this.configuration.replaces!==s.C.supported.UNSUPPORTED&&e.parseHeader("replaces"),u=void 0;if(l){if(!(u=this.dialogs[l.call_id+l.replaces_to_tag+l.replaces_from_tag]))return void e.reply_sl(481,void 0);if(u.owner.type!==c.TypeStrings.Subscription&&u.owner.status===c.SessionStatus.STATUS_TERMINATED)return void e.reply_sl(603,void 0);if(u.state===c.DialogStatus.STATUS_CONFIRMED&&l.earlyOnly)return void e.reply_sl(486,void 0)}var d=new y.InviteServerContext(this,e);u&&u.owner.type!==c.TypeStrings.Subscription&&(d.replacee=u&&u.owner),this.emit("invite",d);break;case s.C.BYE:e.reply(481);break;case s.C.CANCEL:var p;(p=this.findSession(e))?p.receiveRequest(e):this.logger.warn("received CANCEL request for a non existent session");break;case s.C.ACK:break;case s.C.NOTIFY:this.configuration.allowLegacyNotifications&&this.listeners("notify").length>0?(e.reply(200,void 0),this.emit("notify",{request:e})):e.reply(481,"Subscription does not exist");break;case s.C.REFER:if(this.logger.log("Received an out of dialog refer"),this.configuration.allowOutOfDialogRefers){this.logger.log("Allow out of dialog refers is enabled on the UA");var h=new y.ReferServerContext(this,e);this.listeners("outOfDialogReferRequested").length?this.emit("outOfDialogReferRequested",h):(this.logger.log("No outOfDialogReferRequest listeners, automatically accepting and following the out of dialog refer"),h.accept({followRefer:!0}));break}e.reply(405);break;default:e.reply(405)}}},r.prototype.checkTransaction=function(e){return S.checkTransaction(this,e)},r.prototype.findDialog=function(e){return this.dialogs[e.callId+e.fromTag+e.toTag]||this.dialogs[e.callId+e.toTag+e.fromTag]||void 0},r.prototype.findEarlySubscription=function(e){return this.earlySubscriptions[e.callId+e.toTag+e.getHeader("event")]||void 0},r.prototype.checkAuthenticationFactory=function(e){if(e instanceof Function)return e.initialize||(e.initialize=function(){return Promise.resolve()}),e},r.prototype.loadConfig=function(e){var t=this,r={viaHost:b.Utils.createRandomToken(12)+".invalid",uri:new T.URI("sip","anonymous."+b.Utils.createRandomToken(6),"anonymous.invalid",void 0,void 0),custom:{},displayName:"",password:void 0,register:!0,registerOptions:{},transportConstructor:E.Transport,transportOptions:{},userAgentString:s.C.USER_AGENT,noAnswerTimeout:60,hackViaTcp:!1,hackIpInContact:!1,hackWssInTransport:!1,hackAllowUnregisteredOptionTags:!1,sessionDescriptionHandlerFactoryOptions:{constraints:{},peerConnectionOptions:{}},extraSupported:[],contactName:b.Utils.createRandomToken(8),contactTransport:"ws",forceRport:!1,autostart:!0,autostop:!0,rel100:s.C.supported.UNSUPPORTED,dtmfType:s.C.dtmfType.INFO,replaces:s.C.supported.UNSUPPORTED,sessionDescriptionHandlerFactory:w.SessionDescriptionHandler.defaultFactory,authenticationFactory:this.checkAuthenticationFactory(function(e){return new l.DigestAuthentication(e)}),allowLegacyNotifications:!1,allowOutOfDialogRefers:!1},n=this.getConfigurationCheck();for(var o in n.mandatory){if(!e.hasOwnProperty(o))throw new u.Exceptions.ConfigurationError(o);var i=e[o];if(void 0===(a=n.mandatory[o](i)))throw new u.Exceptions.ConfigurationError(o,i);r[o]=a}for(var o in n.optional)if(e.hasOwnProperty(o)){var a;if((i=e[o])instanceof Array&&0===i.length||null===i||""===i||void 0===i||"number"==typeof i&&isNaN(i))continue;if(void 0===(a=n.optional[o](i)))throw new u.Exceptions.ConfigurationError(o,i);r[o]=a}0===r.displayName&&(r.displayName="0"),r.sipjsId=b.Utils.createRandomToken(5);var c=r.uri.clone();if(c.user=void 0,r.hostportParams=c.toRaw().replace(/^sip:/i,""),r.authorizationUser||(r.authorizationUser=r.uri.user),r.noAnswerTimeout=1e3*r.noAnswerTimeout,r.hackIpInContact)if("boolean"==typeof r.hackIpInContact){var d=Math.floor(254*Math.random()+1);r.viaHost="192.0.2."+d}else"string"==typeof r.hackIpInContact&&(r.viaHost=r.hackIpInContact);r.hackWssInTransport&&(r.contactTransport="wss"),this.contact={pubGruu:void 0,tempGruu:void 0,uri:new T.URI("sip",r.contactName,r.viaHost,void 0,{transport:r.contactTransport}),toString:function(e){void 0===e&&(e={});var n=e.anonymous||!1,o=e.outbound||!1,i="<";return i+=n?(t.contact.tempGruu||"sip:anonymous@anonymous.invalid;transport="+r.contactTransport).toString():(t.contact.pubGruu||t.contact.uri).toString(),o&&(i+=";ob"),i+">"}};var p={};for(var o in r)r.hasOwnProperty(o)&&(p[o]=r[o]);for(var o in Object.assign(this.configuration,p),this.logger.log("configuration parameters after validation:"),r)if(r.hasOwnProperty(o))switch(o){case"uri":case"sessionDescriptionHandlerFactory":this.logger.log("· "+o+": "+r[o]);break;case"password":this.logger.log("· "+o+": NOT SHOWN");break;case"transportConstructor":this.logger.log("· "+o+": "+r[o].name);break;default:this.logger.log("· "+o+": "+JSON.stringify(r[o]))}},r.prototype.getConfigurationCheck=function(){return{mandatory:{},optional:{uri:function(e){/^sip:/i.test(e)||(e=s.C.SIP+":"+e);var t=d.Grammar.URIParse(e);return t&&t.user?t:void 0},transportConstructor:function(e){if(e instanceof Function)return e},transportOptions:function(e){if("object"==typeof e)return e},authorizationUser:function(e){return-1===d.Grammar.parse('"'+e+'"',"quoted_string")?void 0:e},displayName:function(e){return-1===d.Grammar.parse('"'+e+'"',"displayName")?void 0:e},dtmfType:function(e){switch(e){case s.C.dtmfType.RTP:return s.C.dtmfType.RTP;case s.C.dtmfType.INFO:default:return s.C.dtmfType.INFO}},hackViaTcp:function(e){if("boolean"==typeof e)return e},hackIpInContact:function(e){return"boolean"==typeof e||"string"==typeof e&&-1!==d.Grammar.parse(e,"host")?e:void 0},hackWssInTransport:function(e){if("boolean"==typeof e)return e},hackAllowUnregisteredOptionTags:function(e){if("boolean"==typeof e)return e},contactTransport:function(e){if("string"==typeof e)return e},extraSupported:function(e){if(e instanceof Array){for(var t=0,r=e;t<r.length;t++)if("string"!=typeof r[t])return;return e}},forceRport:function(e){if("boolean"==typeof e)return e},noAnswerTimeout:function(e){if(b.Utils.isDecimal(e)){var t=Number(e);if(t>0)return t}},password:function(e){return String(e)},rel100:function(e){return e===s.C.supported.REQUIRED?s.C.supported.REQUIRED:e===s.C.supported.SUPPORTED?s.C.supported.SUPPORTED:s.C.supported.UNSUPPORTED},replaces:function(e){return e===s.C.supported.REQUIRED?s.C.supported.REQUIRED:e===s.C.supported.SUPPORTED?s.C.supported.SUPPORTED:s.C.supported.UNSUPPORTED},register:function(e){if("boolean"==typeof e)return e},registerOptions:function(e){if("object"==typeof e)return e},userAgentString:function(e){if("string"==typeof e)return e},autostart:function(e){if("boolean"==typeof e)return e},autostop:function(e){if("boolean"==typeof e)return e},sessionDescriptionHandlerFactory:function(e){if(e instanceof Function)return e},sessionDescriptionHandlerFactoryOptions:function(e){if("object"==typeof e)return e},authenticationFactory:this.checkAuthenticationFactory,allowLegacyNotifications:function(e){if("boolean"==typeof e)return e},custom:function(e){if("object"==typeof e)return e},contactName:function(e){if("string"==typeof e)return e}}}},r.C={STATUS_INIT:0,STATUS_STARTING:1,STATUS_READY:2,STATUS_USER_CLOSED:3,STATUS_NOT_READY:4,CONFIGURATION_ERROR:1,NETWORK_ERROR:2,ALLOWED_METHODS:["ACK","CANCEL","INVITE","MESSAGE","BYE","OPTIONS","INFO","NOTIFY","REFER"],ACCEPTED_BODY_TYPES:["application/sdp","application/dtmf-relay"],MAX_FORWARDS:70,TAG_LENGTH:10},r}(i.EventEmitter);t.UA=_}).call(this,r(12))},function(e,t,r){(function(e){var n,o=this&&this.__extends||(n=function(e,t){return(n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)t.hasOwnProperty(r)&&(e[r]=t[r])})(e,t)},function(e,t){function r(){this.constructor=e}n(e,t),e.prototype=null===t?Object.create(t):(r.prototype=t.prototype,new r)});Object.defineProperty(t,"__esModule",{value:!0});var i=r(3),a=r(0),s=r(5),l=r(2),c=r(15),u=r(35),d=function(t){function r(r,n,o){var i=t.call(this)||this;i.type=a.TypeStrings.SessionDescriptionHandler,i.options=o||{},i.logger=r,i.observer=n,i.dtmfSender=void 0,i.shouldAcquireMedia=!0,i.CONTENT_TYPE="application/sdp",i.C={DIRECTION:{NULL:null,SENDRECV:"sendrecv",SENDONLY:"sendonly",RECVONLY:"recvonly",INACTIVE:"inactive"}},i.logger.log("SessionDescriptionHandlerOptions: "+JSON.stringify(i.options)),i.direction=i.C.DIRECTION.NULL,i.modifiers=i.options.modifiers||[],Array.isArray(i.modifiers)||(i.modifiers=[i.modifiers]);var s=e.window||e;return i.WebRTC={MediaStream:s.MediaStream,getUserMedia:s.navigator.mediaDevices.getUserMedia.bind(s.navigator.mediaDevices),RTCPeerConnection:s.RTCPeerConnection},i.iceGatheringTimeout=!1,i.initPeerConnection(i.options.peerConnectionOptions),i.constraints=i.checkAndDefaultConstraints(i.options.constraints),i}return o(r,t),r.defaultFactory=function(e,t){return new r(e.ua.getLogger("sip.invitecontext.sessionDescriptionHandler",e.id),new u.SessionDescriptionHandlerObserver(e,t),t)},r.prototype.close=function(){this.logger.log("closing PeerConnection"),this.peerConnection&&"closed"!==this.peerConnection.signalingState&&(this.peerConnection.getSenders?this.peerConnection.getSenders().forEach(function(e){e.track&&e.track.stop()}):(this.logger.warn("Using getLocalStreams which is deprecated"),this.peerConnection.getLocalStreams().forEach(function(e){e.getTracks().forEach(function(e){e.stop()})})),this.peerConnection.getReceivers?this.peerConnection.getReceivers().forEach(function(e){e.track&&e.track.stop()}):(this.logger.warn("Using getRemoteStreams which is deprecated"),this.peerConnection.getRemoteStreams().forEach(function(e){e.getTracks().forEach(function(e){e.stop()})})),this.resetIceGatheringComplete(),this.peerConnection.close())},r.prototype.getDescription=function(e,t){var r=this;void 0===e&&(e={}),void 0===t&&(t=[]),e.peerConnectionOptions&&this.initPeerConnection(e.peerConnectionOptions);var n=Object.assign({},this.constraints,e.constraints);return n=this.checkAndDefaultConstraints(n),JSON.stringify(n)!==JSON.stringify(this.constraints)&&(this.constraints=n,this.shouldAcquireMedia=!0),Array.isArray(t)||(t=[t]),t=t.concat(this.modifiers),Promise.resolve().then(function(){if(r.shouldAcquireMedia)return r.acquire(r.constraints).then(function(){r.shouldAcquireMedia=!1})}).then(function(){return r.createOfferOrAnswer(e.RTCOfferOptions,t)}).then(function(e){return r.emit("getDescription",e),{body:e.sdp,contentType:r.CONTENT_TYPE}})},r.prototype.hasDescription=function(e){return e===this.CONTENT_TYPE},r.prototype.holdModifier=function(e){return e.sdp?(/a=(sendrecv|sendonly|recvonly|inactive)/.test(e.sdp)?(e.sdp=e.sdp.replace(/a=sendrecv\r\n/g,"a=sendonly\r\n"),e.sdp=e.sdp.replace(/a=recvonly\r\n/g,"a=inactive\r\n")):e.sdp=e.sdp.replace(/(m=[^\r]*\r\n)/g,"$1a=sendonly\r\n"),Promise.resolve(e)):Promise.resolve(e)},r.prototype.setDescription=function(e,t,r){var n=this;void 0===t&&(t={}),void 0===r&&(r=[]),t.peerConnectionOptions&&this.initPeerConnection(t.peerConnectionOptions),Array.isArray(r)||(r=[r]),r=r.concat(this.modifiers);var o={type:this.hasOffer("local")?"answer":"offer",sdp:e};return Promise.resolve().then(function(){if(n.shouldAcquireMedia&&n.options.alwaysAcquireMediaFirst)return n.acquire(n.constraints).then(function(){n.shouldAcquireMedia=!1})}).then(function(){return l.Utils.reducePromises(r,o)}).catch(function(e){if(e.type===a.TypeStrings.SessionDescriptionHandlerError)throw e;var t=new s.Exceptions.SessionDescriptionHandlerError("setDescription",e,"The modifiers did not resolve successfully");throw n.logger.error(t.message),n.emit("peerConnection-setRemoteDescriptionFailed",t),t}).then(function(e){return n.emit("setDescription",e),n.peerConnection.setRemoteDescription(e)}).catch(function(o){if(o.type===a.TypeStrings.SessionDescriptionHandlerError)throw o;if(/^m=video.+$/gm.test(e)&&!t.disableAudioFallback)return t.disableAudioFallback=!0,n.setDescription(e,t,[c.stripVideo].concat(r));var i=new s.Exceptions.SessionDescriptionHandlerError("setDescription",o);throw i.error&&n.logger.error(i.error),n.emit("peerConnection-setRemoteDescriptionFailed",i),i}).then(function(){n.peerConnection.getReceivers?n.emit("setRemoteDescription",n.peerConnection.getReceivers()):n.emit("setRemoteDescription",n.peerConnection.getRemoteStreams()),n.emit("confirmed",n)})},r.prototype.sendDtmf=function(e,t){if(void 0===t&&(t={}),!this.dtmfSender&&this.hasBrowserGetSenderSupport()){var r=this.peerConnection.getSenders();r.length>0&&(this.dtmfSender=r[0].dtmf)}if(!this.dtmfSender&&this.hasBrowserTrackSupport()){var n=this.peerConnection.getLocalStreams();if(n.length>0){var o=n[0].getAudioTracks();o.length>0&&(this.dtmfSender=this.peerConnection.createDTMFSender(o[0]))}}if(!this.dtmfSender)return!1;try{this.dtmfSender.insertDTMF(e,t.duration,t.interToneGap)}catch(i){if("InvalidStateError"===i.type||"InvalidCharacterError"===i.type)return this.logger.error(i),!1;throw i}return this.logger.log("DTMF sent via RTP: "+e.toString()),!0},r.prototype.getDirection=function(){return this.direction},r.prototype.createOfferOrAnswer=function(e,t){var r=this;void 0===e&&(e={}),void 0===t&&(t=[]);var n=this.hasOffer("remote")?"createAnswer":"createOffer",o=this.peerConnection;return this.logger.log(n),o[n](e).catch(function(e){if(e.type===a.TypeStrings.SessionDescriptionHandlerError)throw e;var t=new s.Exceptions.SessionDescriptionHandlerError("createOfferOrAnswer",e,"peerConnection-"+n+"Failed");throw r.emit("peerConnection-"+n+"Failed",t),t}).then(function(e){return l.Utils.reducePromises(t,r.createRTCSessionDescriptionInit(e))}).then(function(e){return r.resetIceGatheringComplete(),r.logger.log("Setting local sdp."),r.logger.log("sdp is "+e.sdp||!1),o.setLocalDescription(e)}).catch(function(e){if(e.type===a.TypeStrings.SessionDescriptionHandlerError)throw e;var t=new s.Exceptions.SessionDescriptionHandlerError("createOfferOrAnswer",e,"peerConnection-SetLocalDescriptionFailed");throw r.emit("peerConnection-SetLocalDescriptionFailed",t),t}).then(function(){return r.waitForIceGatheringComplete()}).then(function(){var e=r.createRTCSessionDescriptionInit(r.peerConnection.localDescription);return l.Utils.reducePromises(t,e)}).then(function(e){return r.setDirection(e.sdp||""),e}).catch(function(e){if(e.type===a.TypeStrings.SessionDescriptionHandlerError)throw e;var t=new s.Exceptions.SessionDescriptionHandlerError("createOfferOrAnswer",e);throw r.logger.error(t.toString()),t})},r.prototype.createRTCSessionDescriptionInit=function(e){return{type:e.type,sdp:e.sdp}},r.prototype.addDefaultIceCheckingTimeout=function(e){return void 0===e.iceCheckingTimeout&&(e.iceCheckingTimeout=5e3),e},r.prototype.addDefaultIceServers=function(e){return e.iceServers||(e.iceServers=[{urls:"stun:stun.l.google.com:19302"}]),e},r.prototype.checkAndDefaultConstraints=function(e){var t={audio:!0,video:!this.options.alwaysAcquireMediaFirst};return e=e||t,0===Object.keys(e).length&&e.constructor===Object?t:e},r.prototype.hasBrowserTrackSupport=function(){return Boolean(this.peerConnection.addTrack)},r.prototype.hasBrowserGetSenderSupport=function(){return Boolean(this.peerConnection.getSenders)},r.prototype.initPeerConnection=function(e){var t=this;void 0===e&&(e={}),(e=this.addDefaultIceCheckingTimeout(e)).rtcConfiguration=e.rtcConfiguration||{},e.rtcConfiguration=this.addDefaultIceServers(e.rtcConfiguration),this.logger.log("initPeerConnection"),this.peerConnection&&(this.logger.log("Already have a peer connection for this session. Tearing down."),this.resetIceGatheringComplete(),this.peerConnection.close()),this.peerConnection=new this.WebRTC.RTCPeerConnection(e.rtcConfiguration),this.logger.log("New peer connection created"),"ontrack"in this.peerConnection?this.peerConnection.addEventListener("track",function(e){t.logger.log("track added"),t.observer.trackAdded(),t.emit("addTrack",e)}):(this.logger.warn("Using onaddstream which is deprecated"),this.peerConnection.onaddstream=function(e){t.logger.log("stream added"),t.emit("addStream",e)}),this.peerConnection.onicecandidate=function(e){t.emit("iceCandidate",e),e.candidate?t.logger.log("ICE candidate received: "+(null===e.candidate.candidate?null:e.candidate.candidate.trim())):null===e.candidate&&(t.logger.log("ICE candidate gathering complete"),t.triggerIceGatheringComplete())},this.peerConnection.onicegatheringstatechange=function(){switch(t.logger.log("RTCIceGatheringState changed: "+t.peerConnection.iceGatheringState),t.peerConnection.iceGatheringState){case"gathering":t.emit("iceGathering",t),!t.iceGatheringTimer&&e.iceCheckingTimeout&&(t.iceGatheringTimeout=!1,t.iceGatheringTimer=setTimeout(function(){t.logger.log("RTCIceChecking Timeout Triggered after "+e.iceCheckingTimeout+" milliseconds"),t.iceGatheringTimeout=!0,t.triggerIceGatheringComplete()},e.iceCheckingTimeout));break;case"complete":t.triggerIceGatheringComplete()}},this.peerConnection.oniceconnectionstatechange=function(){var e;switch(t.peerConnection.iceConnectionState){case"new":e="iceConnection";break;case"checking":e="iceConnectionChecking";break;case"connected":e="iceConnectionConnected";break;case"completed":e="iceConnectionCompleted";break;case"failed":e="iceConnectionFailed";break;case"disconnected":e="iceConnectionDisconnected";break;case"closed":e="iceConnectionClosed";break;default:return void t.logger.warn("Unknown iceConnection state: "+t.peerConnection.iceConnectionState)}t.logger.log("ICE Connection State changed to "+e),t.emit(e,t)}},r.prototype.acquire=function(e){var t=this;return e=this.checkAndDefaultConstraints(e),new Promise(function(r,n){t.logger.log("acquiring local media"),t.emit("userMediaRequest",e),e.audio||e.video?t.WebRTC.getUserMedia(e).then(function(e){t.observer.trackAdded(),t.emit("userMedia",e),r(e)}).catch(function(e){t.emit("userMediaFailed",e),n(e)}):r([])}).catch(function(e){if(e.type===a.TypeStrings.SessionDescriptionHandlerError)throw e;var r=new s.Exceptions.SessionDescriptionHandlerError("acquire",e,"unable to acquire streams");throw t.logger.error(r.message),r.error&&t.logger.error(r.error),r}).then(function(e){t.logger.log("acquired local media streams");try{return t.peerConnection.removeTrack&&t.peerConnection.getSenders().forEach(function(e){t.peerConnection.removeTrack(e)}),e}catch(r){return Promise.reject(r)}}).catch(function(e){if(e.type===a.TypeStrings.SessionDescriptionHandlerError)throw e;var r=new s.Exceptions.SessionDescriptionHandlerError("acquire",e,"error removing streams");throw t.logger.error(r.message),r.error&&t.logger.error(r.error),r}).then(function(e){try{(e=[].concat(e)).forEach(function(e){t.peerConnection.addTrack?e.getTracks().forEach(function(r){t.peerConnection.addTrack(r,e)}):t.peerConnection.addStream(e)})}catch(r){return Promise.reject(r)}return Promise.resolve()}).catch(function(e){if(e.type===a.TypeStrings.SessionDescriptionHandlerError)throw e;var r=new s.Exceptions.SessionDescriptionHandlerError("acquire",e,"error adding stream");throw t.logger.error(r.message),r.error&&t.logger.error(r.error),r})},r.prototype.hasOffer=function(e){var t="have-"+e+"-offer";return this.peerConnection.signalingState===t},r.prototype.isIceGatheringComplete=function(){return"complete"===this.peerConnection.iceGatheringState||this.iceGatheringTimeout},r.prototype.resetIceGatheringComplete=function(){this.iceGatheringTimeout=!1,this.logger.log("resetIceGatheringComplete"),this.iceGatheringTimer&&(clearTimeout(this.iceGatheringTimer),this.iceGatheringTimer=void 0),this.iceGatheringDeferred&&(this.iceGatheringDeferred.reject(),this.iceGatheringDeferred=void 0)},r.prototype.setDirection=function(e){var t=e.match(/a=(sendrecv|sendonly|recvonly|inactive)/);if(null===t)return this.direction=this.C.DIRECTION.NULL,void this.observer.directionChanged();var r=t[1];switch(r){case this.C.DIRECTION.SENDRECV:case this.C.DIRECTION.SENDONLY:case this.C.DIRECTION.RECVONLY:case this.C.DIRECTION.INACTIVE:this.direction=r;break;default:this.direction=this.C.DIRECTION.NULL}this.observer.directionChanged()},r.prototype.triggerIceGatheringComplete=function(){this.isIceGatheringComplete()&&(this.emit("iceGatheringComplete",this),this.iceGatheringTimer&&(clearTimeout(this.iceGatheringTimer),this.iceGatheringTimer=void 0),this.iceGatheringDeferred&&(this.iceGatheringDeferred.resolve(),this.iceGatheringDeferred=void 0))},r.prototype.waitForIceGatheringComplete=function(){return this.logger.log("waitForIceGatheringComplete"),this.isIceGatheringComplete()?(this.logger.log("ICE is already complete. Return resolved."),Promise.resolve()):(this.iceGatheringDeferred||(this.iceGatheringDeferred=l.Utils.defer()),this.logger.log("ICE is not complete. Returning promise"),this.iceGatheringDeferred?this.iceGatheringDeferred.promise:Promise.resolve())},r}(i.EventEmitter);t.SessionDescriptionHandler=d}).call(this,r(12))},function(e,t,r){(function(e){var n,o=this&&this.__extends||(n=function(e,t){return(n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)t.hasOwnProperty(r)&&(e[r]=t[r])})(e,t)},function(e,t){function r(){this.constructor=e}n(e,t),e.prototype=null===t?Object.create(t):(r.prototype=t.prototype,new r)});Object.defineProperty(t,"__esModule",{value:!0});var i,a,s=r(0),l=r(5),c=r(4),u=r(26),d=r(2);(a=i=t.TransportStatus||(t.TransportStatus={}))[a.STATUS_CONNECTING=0]="STATUS_CONNECTING",a[a.STATUS_OPEN=1]="STATUS_OPEN",a[a.STATUS_CLOSING=2]="STATUS_CLOSING",a[a.STATUS_CLOSED=3]="STATUS_CLOSED";var p=function(t){function r(r,n){void 0===n&&(n={});var o=t.call(this,r,n)||this;return o.WebSocket=(e.window||e).WebSocket,o.type=s.TypeStrings.Transport,o.reconnectionAttempts=0,o.status=i.STATUS_CONNECTING,o.configuration={},o.loadConfig(n),o}return o(r,t),r.prototype.isConnected=function(){return this.status===i.STATUS_OPEN},r.prototype.sendPromise=function(e,t){if(void 0===t&&(t={}),!this.statusAssert(i.STATUS_OPEN,t.force))return this.onError("unable to send message - WebSocket not open"),Promise.reject();var r=e.toString();return this.ws?(!0===this.configuration.traceSip&&this.logger.log("sending WebSocket message:\n\n"+r+"\n"),this.ws.send(r),Promise.resolve({msg:r})):(this.onError("unable to send message - WebSocket does not exist"),Promise.reject())},r.prototype.disconnectPromise=function(e){var t=this;return void 0===e&&(e={}),this.disconnectionPromise?this.disconnectionPromise:(e.code=e.code||1e3,this.statusTransition(i.STATUS_CLOSING,e.force)?(this.emit("disconnecting"),this.disconnectionPromise=new Promise(function(r,n){t.disconnectDeferredResolve=r,t.reconnectTimer&&(clearTimeout(t.reconnectTimer),t.reconnectTimer=void 0),t.ws?(t.stopSendingKeepAlives(),t.logger.log("closing WebSocket "+t.server.wsUri),t.ws.close(e.code,e.reason)):n("Attempted to disconnect but the websocket doesn't exist")}),this.disconnectionPromise):this.status===i.STATUS_CLOSED?Promise.resolve({overrideEvent:!0}):this.connectionPromise?this.connectionPromise.then(function(){return Promise.reject("The websocket did not disconnect")}).catch(function(){return Promise.resolve({overrideEvent:!0})}):Promise.reject("The websocket did not disconnect"))},r.prototype.connectPromise=function(e){var t=this;return void 0===e&&(e={}),this.status!==i.STATUS_CLOSING||e.force?(this.connectionPromise||(this.server=this.server||this.getNextWsServer(e.force),this.connectionPromise=new Promise(function(r,n){if((t.status===i.STATUS_OPEN||t.status===i.STATUS_CLOSING)&&!e.force)return t.logger.warn("WebSocket "+t.server.wsUri+" is already connected"),void n("Failed status check - attempted to open a connection but already open/closing");t.connectDeferredResolve=r,t.status=i.STATUS_CONNECTING,t.emit("connecting"),t.logger.log("connecting to WebSocket "+t.server.wsUri),t.disposeWs();try{t.ws=new WebSocket(t.server.wsUri,"sip")}catch(o){return t.ws=null,t.status=i.STATUS_CLOSED,t.onError("error connecting to WebSocket "+t.server.wsUri+":"+o),void n("Failed to create a websocket")}t.ws?(t.connectionTimeout=setTimeout(function(){t.statusTransition(i.STATUS_CLOSED),t.logger.warn("took too long to connect - exceeded time set in configuration.connectionTimeout: "+t.configuration.connectionTimeout+"s"),t.emit("disconnected",{code:1e3}),t.connectionPromise=void 0,n("Connection timeout")},1e3*t.configuration.connectionTimeout),t.boundOnOpen=t.onOpen.bind(t),t.boundOnMessage=t.onMessage.bind(t),t.boundOnClose=t.onClose.bind(t),t.boundOnError=t.onWebsocketError.bind(t),t.ws.addEventListener("open",t.boundOnOpen),t.ws.addEventListener("message",t.boundOnMessage),t.ws.addEventListener("close",t.boundOnClose),t.ws.addEventListener("error",t.boundOnError)):n("Unexpected instance websocket not set")})),this.connectionPromise):Promise.reject("WebSocket "+this.server.wsUri+" is closing")},r.prototype.onMessage=function(e){var t,r=e.data;if(/^(\r\n)+$/.test(r))return this.clearKeepAliveTimeout(),void(!0===this.configuration.traceSip&&this.logger.log("received WebSocket message with CRLF Keep Alive response"));if(r){if("string"!=typeof r){try{t=String.fromCharCode.apply(null,new Uint8Array(r))}catch(n){return void this.logger.warn("received WebSocket binary message failed to be converted into string, message discarded")}!0===this.configuration.traceSip&&this.logger.log("received WebSocket binary message:\n\n"+r+"\n")}else!0===this.configuration.traceSip&&this.logger.log("received WebSocket text message:\n\n"+r+"\n"),t=r;this.emit("message",t)}else this.logger.warn("received empty message, message discarded")},r.prototype.onOpen=function(){if(this.status===i.STATUS_CLOSED){var e=this.ws;return this.disposeWs(),void e.close(1e3)}this.status=i.STATUS_OPEN,this.emit("connected"),this.connectionTimeout&&(clearTimeout(this.connectionTimeout),this.connectionTimeout=void 0),this.logger.log("WebSocket "+this.server.wsUri+" connected"),void 0!==this.reconnectTimer&&(clearTimeout(this.reconnectTimer),this.reconnectTimer=void 0),this.reconnectionAttempts=0,this.disconnectionPromise=void 0,this.disconnectDeferredResolve=void 0,this.startSendingKeepAlives(),this.connectDeferredResolve?this.connectDeferredResolve({overrideEvent:!0}):this.logger.warn("Unexpected websocket.onOpen with no connectDeferredResolve")},r.prototype.onClose=function(e){if(this.logger.log("WebSocket disconnected (code: "+e.code+(e.reason?"| reason: "+e.reason:"")+")"),this.status!==i.STATUS_CLOSING&&(this.logger.warn("WebSocket closed without SIP.js requesting it"),this.emit("transportError")),this.stopSendingKeepAlives(),this.connectionTimeout&&clearTimeout(this.connectionTimeout),this.connectionTimeout=void 0,this.connectionPromise=void 0,this.connectDeferredResolve=void 0,this.disconnectDeferredResolve)return this.disconnectDeferredResolve({overrideEvent:!0}),this.statusTransition(i.STATUS_CLOSED),void(this.disconnectDeferredResolve=void 0);this.status=i.STATUS_CLOSED,this.emit("disconnected",{code:e.code,reason:e.reason}),this.reconnect()},r.prototype.disposeWs=function(){this.ws&&(this.ws.removeEventListener("open",this.boundOnOpen),this.ws.removeEventListener("message",this.boundOnMessage),this.ws.removeEventListener("close",this.boundOnClose),this.ws.removeEventListener("error",this.boundOnError),this.ws=void 0)},r.prototype.onError=function(e){this.logger.warn("Transport error: "+e),this.emit("transportError")},r.prototype.onWebsocketError=function(){this.onError("The Websocket had an error")},r.prototype.reconnect=function(){var e=this;if(this.reconnectionAttempts>0&&this.logger.log("Reconnection attempt "+this.reconnectionAttempts+" failed"),this.noAvailableServers())return this.logger.warn("no available ws servers left - going to closed state"),this.status=i.STATUS_CLOSED,this.emit("closed"),void this.resetServerErrorStatus();this.isConnected()&&(this.logger.warn("attempted to reconnect while connected - forcing disconnect"),this.disconnect({force:!0})),this.reconnectionAttempts+=1,this.reconnectionAttempts>this.configuration.maxReconnectionAttempts?(this.logger.warn("maximum reconnection attempts for WebSocket "+this.server.wsUri),this.logger.log("transport "+this.server.wsUri+" failed | connection state set to 'error'"),this.server.isError=!0,this.emit("transportError"),this.server=this.getNextWsServer(),this.reconnectionAttempts=0,this.reconnect()):(this.logger.log("trying to reconnect to WebSocket "+this.server.wsUri+" (reconnection attempt "+this.reconnectionAttempts+")"),this.reconnectTimer=setTimeout(function(){e.connect(),e.reconnectTimer=void 0},1===this.reconnectionAttempts?0:1e3*this.configuration.reconnectionTimeout))},r.prototype.resetServerErrorStatus=function(){for(var e=0,t=this.configuration.wsServers;e<t.length;e++)t[e].isError=!1},r.prototype.getNextWsServer=function(e){if(void 0===e&&(e=!1),!this.noAvailableServers()){for(var t=[],r=0,n=this.configuration.wsServers;r<n.length;r++){var o=n[r];o.isError&&!e||(0===t.length?t.push(o):o.weight>t[0].weight?t=[o]:o.weight===t[0].weight&&t.push(o))}return t[Math.floor(Math.random()*t.length)]}this.logger.warn("attempted to get next ws server but there are no available ws servers left")},r.prototype.noAvailableServers=function(){for(var e=0,t=this.configuration.wsServers;e<t.length;e++)if(!t[e].isError)return!1;return!0},r.prototype.sendKeepAlive=function(){var e=this;if(!this.keepAliveDebounceTimeout)return this.keepAliveDebounceTimeout=setTimeout(function(){e.emit("keepAliveDebounceTimeout"),e.clearKeepAliveTimeout()},1e3*this.configuration.keepAliveDebounce),this.send("\r\n\r\n")},r.prototype.clearKeepAliveTimeout=function(){this.keepAliveDebounceTimeout&&clearTimeout(this.keepAliveDebounceTimeout),this.keepAliveDebounceTimeout=void 0},r.prototype.startSendingKeepAlives=function(){var e,t,r=this;this.configuration.keepAliveInterval&&!this.keepAliveInterval&&(this.keepAliveInterval=setInterval(function(){r.sendKeepAlive(),r.startSendingKeepAlives()},(t=.8*(e=this.configuration.keepAliveInterval),1e3*(Math.random()*(e-t)+t))))},r.prototype.stopSendingKeepAlives=function(){this.keepAliveInterval&&clearInterval(this.keepAliveInterval),this.keepAliveDebounceTimeout&&clearTimeout(this.keepAliveDebounceTimeout),this.keepAliveInterval=void 0,this.keepAliveDebounceTimeout=void 0},r.prototype.statusAssert=function(e,t){return e===this.status||(t?(this.logger.warn("Attempted to assert "+Object.keys(i)[this.status]+" as "+Object.keys(i)[e]+"- continuing with option: 'force'"),!0):(this.logger.warn("Tried to assert "+Object.keys(i)[e]+" but is currently "+Object.keys(i)[this.status]),!1))},r.prototype.statusTransition=function(e,t){return void 0===t&&(t=!1),this.logger.log("Attempting to transition status from "+Object.keys(i)[this.status]+" to "+Object.keys(i)[e]),e===i.STATUS_CONNECTING&&this.statusAssert(i.STATUS_CLOSED,t)||e===i.STATUS_OPEN&&this.statusAssert(i.STATUS_CONNECTING,t)||e===i.STATUS_CLOSING&&this.statusAssert(i.STATUS_OPEN,t)||e===i.STATUS_CLOSED?(this.status=e,!0):(this.logger.warn("Status transition failed - result: no-op - reason: either gave an nonexistent status or attempted illegal transition"),!1)},r.prototype.loadConfig=function(e){var t={wsServers:[{scheme:"WSS",sipUri:"<sip:edge.sip.onsip.com;transport=ws;lr>",weight:0,wsUri:"wss://edge.sip.onsip.com",isError:!1}],connectionTimeout:5,maxReconnectionAttempts:3,reconnectionTimeout:4,keepAliveInterval:0,keepAliveDebounce:10,traceSip:!1},r=this.getConfigurationCheck();for(var n in r.mandatory){if(!e.hasOwnProperty(n))throw new l.Exceptions.ConfigurationError(n);var o=e[n];if(void 0===(i=r.mandatory[n](o)))throw new l.Exceptions.ConfigurationError(n,o);t[n]=i}for(var n in r.optional)if(e.hasOwnProperty(n)){var i;if((o=e[n])instanceof Array&&0===o.length||null===o||""===o||void 0===o||"number"==typeof o&&isNaN(o))continue;if(void 0===(i=r.optional[n](o)))throw new l.Exceptions.ConfigurationError(n,o);t[n]=i}var a={};for(var n in t)t.hasOwnProperty(n)&&(a[n]={value:t[n]});for(var n in Object.defineProperties(this.configuration,a),this.logger.log("configuration parameters after validation:"),t)t.hasOwnProperty(n)&&this.logger.log("· "+n+": "+JSON.stringify(t[n]))},r.prototype.getConfigurationCheck=function(){return{mandatory:{},optional:{wsServers:function(e){if("string"==typeof e)e=[{wsUri:e}];else{if(!(e instanceof Array))return;for(var t=0;t<e.length;t++)"string"==typeof e[t]&&(e[t]={wsUri:e[t]})}if(0===e.length)return!1;for(var r=0,n=e;r<n.length;r++){var o=n[r];if(!o.wsUri)return;if(o.weight&&!Number(o.weight))return;var i=c.Grammar.parse(o.wsUri,"absoluteURI");if(-1===i)return;if(["wss","ws","udp"].indexOf(i.scheme)<0)return;o.sipUri="<sip:"+i.host+(i.port?":"+i.port:"")+";transport="+i.scheme.replace(/^wss$/i,"ws")+";lr>",o.weight||(o.weight=0),o.isError=!1,o.scheme=i.scheme.toUpperCase()}return e},keepAliveInterval:function(e){if(d.Utils.isDecimal(e)){var t=Number(e);if(t>0)return t}},keepAliveDebounce:function(e){if(d.Utils.isDecimal(e)){var t=Number(e);if(t>0)return t}},traceSip:function(e){if("boolean"==typeof e)return e},connectionTimeout:function(e){if(d.Utils.isDecimal(e)){var t=Number(e);if(t>0)return t}},maxReconnectionAttempts:function(e){if(d.Utils.isDecimal(e)){var t=Number(e);if(t>=0)return t}},reconnectionTimeout:function(e){if(d.Utils.isDecimal(e)){var t=Number(e);if(t>0)return t}}}}},r.C=i,r}(u.Transport);t.Transport=p}).call(this,r(12))},function(e,t,r){Object.defineProperty(t,"__esModule",{value:!0});var n=r(7);t.ClientContext=n.ClientContext;var o=r(1);t.C=o.C;var i=r(13);t.Dialog=i.Dialog;var a=r(18);t.DigestAuthentication=a.DigestAuthentication;var s=r(0);t.DialogStatus=s.DialogStatus,t.SessionStatus=s.SessionStatus,t.TransactionStatus=s.TransactionStatus,t.TypeStrings=s.TypeStrings,t.UAStatus=s.UAStatus;var l=r(5);t.Exceptions=l.Exceptions;var c=r(4);t.Grammar=c.Grammar;var u=r(19);t.LoggerFactory=u.LoggerFactory;var d=r(17);t.NameAddrHeader=d.NameAddrHeader;var p=r(20);t.Parser=p.Parser;var h=r(21);t.PublishContext=h.PublishContext;var f=r(22);t.RegisterContext=f.RegisterContext;var v=r(8);t.RequestSender=v.RequestSender;var m=r(23).SanityCheck.sanityCheck;t.sanityCheck=m;var g=r(14);t.ServerContext=g.ServerContext;var y=r(24);t.InviteClientContext=y.InviteClientContext,t.InviteServerContext=y.InviteServerContext,t.ReferClientContext=y.ReferClientContext,t.ReferServerContext=y.ReferServerContext,t.Session=y.Session;var C=r(6);t.IncomingRequest=C.IncomingRequest,t.IncomingResponse=C.IncomingResponse,t.OutgoingRequest=C.OutgoingRequest;var S=r(25);t.Subscription=S.Subscription;var T=r(11);t.Timers=T.Timers;var b=r(9),w={AckClientTransaction:b.AckClientTransaction,checkTransaction:b.checkTransaction,InviteClientTransaction:b.InviteClientTransaction,InviteServerTransaction:b.InviteServerTransaction,NonInviteClientTransaction:b.NonInviteClientTransaction,NonInviteServerTransaction:b.NonInviteServerTransaction};t.Transactions=w;var E=r(26);t.Transport=E.Transport;var A=r(27);t.UA=A.UA;var _=r(10);t.URI=_.URI;var N=r(2);t.Utils=N.Utils;var k=r(36);t.Web=k;var R=r(16),x=R.title;t.name=x;var I=R.version;t.version=I},function(e,t,r){var n,o=this&&this.__extends||(n=function(e,t){return(n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)t.hasOwnProperty(r)&&(e[r]=t[r])})(e,t)},function(e,t){function r(){this.constructor=e}n(e,t),e.prototype=null===t?Object.create(t):(r.prototype=t.prototype,new r)});Object.defineProperty(t,"__esModule",{value:!0});var i=r(17),a=r(10),s=function(e){function t(r,n,o,i){var a=e.call(this)||this;return a.message=r,a.expected=n,a.found=o,a.location=i,a.name="SyntaxError","function"==typeof Error.captureStackTrace&&Error.captureStackTrace(a,t),a}return o(t,e),t.buildMessage=function(e,t){function r(e){return e.charCodeAt(0).toString(16).toUpperCase()}function n(e){return e.replace(/\\/g,"\\\\").replace(/"/g,'\\"').replace(/\0/g,"\\0").replace(/\t/g,"\\t").replace(/\n/g,"\\n").replace(/\r/g,"\\r").replace(/[\x00-\x0F]/g,function(e){return"\\x0"+r(e)}).replace(/[\x10-\x1F\x7F-\x9F]/g,function(e){return"\\x"+r(e)})}function o(e){return e.replace(/\\/g,"\\\\").replace(/\]/g,"\\]").replace(/\^/g,"\\^").replace(/-/g,"\\-").replace(/\0/g,"\\0").replace(/\t/g,"\\t").replace(/\n/g,"\\n").replace(/\r/g,"\\r").replace(/[\x00-\x0F]/g,function(e){return"\\x0"+r(e)}).replace(/[\x10-\x1F\x7F-\x9F]/g,function(e){return"\\x"+r(e)})}function i(e){switch(e.type){case"literal":return'"'+n(e.text)+'"';case"class":var t=e.parts.map(function(e){return Array.isArray(e)?o(e[0])+"-"+o(e[1]):o(e)});return"["+(e.inverted?"^":"")+t+"]";case"any":return"any character";case"end":return"end of input";case"other":return e.description}}return"Expected "+function(e){var t,r,n=e.map(i);if(n.sort(),n.length>0){for(t=1,r=1;t<n.length;t++)n[t-1]!==n[t]&&(n[r]=n[t],r++);n.length=r}switch(n.length){case 1:return n[0];case 2:return n[0]+" or "+n[1];default:return n.slice(0,-1).join(", ")+", or "+n[n.length-1]}}(e)+" but "+((a=t)?'"'+n(a)+'"':"end of input")+" found.";var a},t}(Error);t.SyntaxError=s,t.parse=function(e,t){t=void 0!==t?t:{};var r,n,o,l,c={},u={Contact:qs,Name_Addr_Header:function(){var e,t,r,n,o,i,a;for(e=Sa,t=[],r=Gs();r!==c;)t.push(r),r=Gs();if(t!==c)if((r=rs())!==c)if(ps()!==c)if(ts()!==c){for(n=[],o=Sa,(i=os())!==c&&(a=Ws())!==c?o=i=[i,a]:(Sa=o,o=c);o!==c;)n.push(o),o=Sa,(i=os())!==c&&(a=Ws())!==c?o=i=[i,a]:(Sa=o,o=c);n!==c?(Ta=e,e=t=Kn()):(Sa=e,e=c)}else Sa=e,e=c;else Sa=e,e=c;else Sa=e,e=c;else Sa=e,e=c;return e},Record_Route:function(){var e,t,r,n,o;if(e=Sa,il()!==c){for(t=[],r=Sa,(n=ns())!==c&&(o=il())!==c?r=n=[n,o]:(Sa=r,r=c);r!==c;)t.push(r),r=Sa,(n=ns())!==c&&(o=il())!==c?r=n=[n,o]:(Sa=r,r=c);t!==c?(Ta=e,e=Ro()):(Sa=e,e=c)}else Sa=e,e=c;return e},Request_Response:Is,SIP_URI:ps,Subscription_State:function(){var t,r,n,o,i,a,s,l;if(t=Sa,s=Sa,e.substr(Sa,6).toLowerCase()===Ko?(l=e.substr(Sa,6),Sa+=6):(l=c,Ia($o)),l===c&&(e.substr(Sa,7).toLowerCase()===Wo?(l=e.substr(Sa,7),Sa+=7):(l=c,Ia(Jo)),l===c&&(e.substr(Sa,10).toLowerCase()===Yo?(l=e.substr(Sa,10),Sa+=10):(l=c,Ia(Qo)),l===c&&(l=Ya()))),l!==c&&(Ta=s,l=Zo()),(r=l)!==c){for(n=[],o=Sa,(i=os())!==c&&(a=sl())!==c?o=i=[i,a]:(Sa=o,o=c);o!==c;)n.push(o),o=Sa,(i=os())!==c&&(a=sl())!==c?o=i=[i,a]:(Sa=o,o=c);n!==c?t=r=[r,n]:(Sa=t,t=c)}else Sa=t,t=c;return t},Supported:function(){var e,t,r,n,o,i;if(e=Sa,t=Sa,(r=Ya())!==c){for(n=[],o=Sa,ns()!==c&&(i=Ya())!==c?(Ta=o,o=jo(r,i)):(Sa=o,o=c);o!==c;)n.push(o),o=Sa,ns()!==c&&(i=Ya())!==c?(Ta=o,o=jo(r,i)):(Sa=o,o=c);n!==c?(Ta=t,t=r=Fo(r,n)):(Sa=t,t=c)}else Sa=t,t=c;return t===c&&(t=null),t!==c&&(Ta=e,t=Si(t)),t},Require:function(){var e,t,r,n,o,i;if(e=Sa,t=Sa,(r=Ya())!==c){for(n=[],o=Sa,ns()!==c&&(i=Ya())!==c?(Ta=o,o=jo(r,i)):(Sa=o,o=c);o!==c;)n.push(o),o=Sa,ns()!==c&&(i=Ya())!==c?(Ta=o,o=jo(r,i)):(Sa=o,o=c);n!==c?(Ta=t,t=r=Fo(r,n)):(Sa=t,t=c)}else Sa=t,t=c;return t===c&&(t=null),t!==c&&(Ta=e,t=Go(t)),t},Via:function(){var e,t,r,n,o,i;if(e=Sa,(t=cl())!==c){for(r=[],n=Sa,(o=ns())!==c&&(i=cl())!==c?n=o=[o,i]:(Sa=n,n=c);n!==c;)r.push(n),n=Sa,(o=ns())!==c&&(i=cl())!==c?n=o=[o,i]:(Sa=n,n=c);r!==c?e=t=[t,r]:(Sa=e,e=c)}else Sa=e,e=c;return e},absoluteURI:Ds,Call_ID:Ls,Content_Disposition:function(){var t,r,n,o,i,a,s,l;if(t=Sa,s=Sa,e.substr(Sa,6).toLowerCase()===an?(l=e.substr(Sa,6),Sa+=6):(l=c,Ia(sn)),l===c&&(e.substr(Sa,7).toLowerCase()===ln?(l=e.substr(Sa,7),Sa+=7):(l=c,Ia(cn)),l===c&&(e.substr(Sa,4).toLowerCase()===un?(l=e.substr(Sa,4),Sa+=4):(l=c,Ia(dn)),l===c&&(e.substr(Sa,5).toLowerCase()===pn?(l=e.substr(Sa,5),Sa+=5):(l=c,Ia(hn)),l===c&&(l=Ya())))),l!==c&&(Ta=s,l=fn()),(r=l)!==c){for(n=[],o=Sa,(i=os())!==c&&(a=Js())!==c?o=i=[i,a]:(Sa=o,o=c);o!==c;)n.push(o),o=Sa,(i=os())!==c&&(a=Js())!==c?o=i=[i,a]:(Sa=o,o=c);n!==c?t=r=[r,n]:(Sa=t,t=c)}else Sa=t,t=c;return t},Content_Length:function(){var e,t,r;if(e=Sa,t=[],(r=Oa())!==c)for(;r!==c;)t.push(r),r=Oa();else t=c;return t!==c&&(Ta=e,t=Tn(t)),t},Content_Type:function(){var t,r;return t=Sa,(r=function(){var t,r,n,o,i,a,s,l,u,d,p;if(t=Sa,e.substr(Sa,4).toLowerCase()===wn?(p=e.substr(Sa,4),Sa+=4):(p=c,Ia(En)),p===c&&(e.substr(Sa,5).toLowerCase()===An?(p=e.substr(Sa,5),Sa+=5):(p=c,Ia(_n)),p===c&&(e.substr(Sa,5).toLowerCase()===Nn?(p=e.substr(Sa,5),Sa+=5):(p=c,Ia(kn)),p===c&&(e.substr(Sa,5).toLowerCase()===Rn?(p=e.substr(Sa,5),Sa+=5):(p=c,Ia(xn)),p===c&&(e.substr(Sa,11).toLowerCase()===In?(p=e.substr(Sa,11),Sa+=11):(p=c,Ia(Dn)),p===c&&(p=Ys()))))),(d=p)===c&&(d=function(){var t;return e.substr(Sa,7).toLowerCase()===On?(t=e.substr(Sa,7),Sa+=7):(t=c,Ia(Mn)),t===c&&(e.substr(Sa,9).toLowerCase()===Un?(t=e.substr(Sa,9),Sa+=9):(t=c,Ia(Vn)),t===c&&(t=Ys())),t}()),(r=d)!==c)if((n=Xa())!==c)if((u=Ys())===c&&(u=Ya()),(o=u)!==c){for(i=[],a=Sa,(s=os())!==c&&(l=Qs())!==c?a=s=[s,l]:(Sa=a,a=c);a!==c;)i.push(a),a=Sa,(s=os())!==c&&(l=Qs())!==c?a=s=[s,l]:(Sa=a,a=c);i!==c?t=r=[r,n,o,i]:(Sa=t,t=c)}else Sa=t,t=c;else Sa=t,t=c;else Sa=t,t=c;return t}())!==c&&(Ta=t,r=bn()),r},CSeq:function(){var e,t,r,n;return e=Sa,(t=function(){var e,t,r;if(e=Sa,t=[],(r=Oa())!==c)for(;r!==c;)t.push(r),r=Oa();else t=c;return t!==c&&(Ta=e,t=zn(t)),t}())!==c&&(r=Ka())!==c&&(n=Bs())!==c?e=t=[t,r,n]:(Sa=e,e=c),e},displayName:Gs,Event:function(){var t,r,n,o,i,a;if(t=Sa,(r=function(){var t,r,n,o,i,a,s;if(t=Sa,r=Sa,(n=Qa())!==c){for(o=[],i=Sa,46===e.charCodeAt(Sa)?(a=ee,Sa++):(a=c,Ia(te)),a!==c&&(s=Qa())!==c?i=a=[a,s]:(Sa=i,i=c);i!==c;)o.push(i),i=Sa,46===e.charCodeAt(Sa)?(a=ee,Sa++):(a=c,Ia(te)),a!==c&&(s=Qa())!==c?i=a=[a,s]:(Sa=i,i=c);o!==c?r=n=[n,o]:(Sa=r,r=c)}else Sa=r,r=c;return r!==c?e.substring(t,Sa):r}())!==c){for(n=[],o=Sa,(i=os())!==c&&(a=Ws())!==c?o=i=[i,a]:(Sa=o,o=c);o!==c;)n.push(o),o=Sa,(i=os())!==c&&(a=Ws())!==c?o=i=[i,a]:(Sa=o,o=c);n!==c?(Ta=t,t=r=Bn(r)):(Sa=t,t=c)}else Sa=t,t=c;return t},From:function(){var e,t,r,n,o,i;if(e=Sa,(t=ds())===c&&(t=Fs()),t!==c){for(r=[],n=Sa,(o=os())!==c&&(i=Zs())!==c?n=o=[o,i]:(Sa=n,n=c);n!==c;)r.push(n),n=Sa,(o=os())!==c&&(i=Zs())!==c?n=o=[o,i]:(Sa=n,n=c);r!==c?(Ta=e,e=t=Ln()):(Sa=e,e=c)}else Sa=e,e=c;return e},host:gs,Max_Forwards:function(){var e,t,r;if(e=Sa,t=[],(r=Oa())!==c)for(;r!==c;)t.push(r),r=Oa();else t=c;return t!==c&&(Ta=e,t=Gn(t)),t},Min_SE:function(){var e,t,r,n,o,i;if(e=Sa,(t=$s())!==c){for(r=[],n=Sa,(o=os())!==c&&(i=Ws())!==c?n=o=[o,i]:(Sa=n,n=c);n!==c;)r.push(n),n=Sa,(o=os())!==c&&(i=Ws())!==c?n=o=[o,i]:(Sa=n,n=c);r!==c?(Ta=e,e=t=ea(t)):(Sa=e,e=c)}else Sa=e,e=c;return e},Proxy_Authenticate:function(){return el()},quoted_string:ss,Refer_To:function(){var e,t,r,n,o,i;if(e=Sa,(t=ds())===c&&(t=Fs())===c&&(t=Sa,(r=rs())===c&&(r=null),r!==c&&(n=Ds())!==c?((o=ts())===c&&(o=null),o!==c?t=r=[r,n,o]:(Sa=t,t=c)):(Sa=t,t=c)),t!==c){for(r=[],n=Sa,(o=os())!==c&&(i=Ws())!==c?n=o=[o,i]:(Sa=n,n=c);n!==c;)r.push(n),n=Sa,(o=os())!==c&&(i=Ws())!==c?n=o=[o,i]:(Sa=n,n=c);r!==c?(Ta=e,e=t=Io()):(Sa=e,e=c)}else Sa=e,e=c;return e},Replaces:function(){var e,t,r,n,o,i,a;if(e=Sa,i=Sa,(a=Ls())!==c&&(Ta=i,a=Oo()),a!==c){for(t=[],r=Sa,(n=os())!==c&&(o=al())!==c?r=n=[n,o]:(Sa=r,r=c);r!==c;)t.push(r),r=Sa,(n=os())!==c&&(o=al())!==c?r=n=[n,o]:(Sa=r,r=c);t!==c?(Ta=e,e=Do()):(Sa=e,e=c)}else Sa=e,e=c;return e},Session_Expires:function(){var e,t,r,n,o,i;if(e=Sa,(t=$s())!==c){for(r=[],n=Sa,(o=os())!==c&&(i=hl())!==c?n=o=[o,i]:(Sa=n,n=c);n!==c;)r.push(n),n=Sa,(o=os())!==c&&(i=hl())!==c?n=o=[o,i]:(Sa=n,n=c);r!==c?(Ta=e,e=t=Ki(t)):(Sa=e,e=c)}else Sa=e,e=c;return e},stun_URI:function(){var t,r,n,o,i,a;return t=Sa,i=Sa,e.substr(Sa,5).toLowerCase()===ta?(a=e.substr(Sa,5),Sa+=5):(a=c,Ia(ra)),a===c&&(e.substr(Sa,4).toLowerCase()===na?(a=e.substr(Sa,4),Sa+=4):(a=c,Ia(oa))),a!==c&&(Ta=i,a=ia(a)),(r=a)!==c?(58===e.charCodeAt(Sa)?(n=V,Sa++):(n=c,Ia(H)),n!==c&&(o=fl())!==c?t=r=[r,n,o]:(Sa=t,t=c)):(Sa=t,t=c),t},To:function(){var e,t,r,n,o,i;if(e=Sa,(t=ds())===c&&(t=Fs()),t!==c){for(r=[],n=Sa,(o=os())!==c&&(i=ll())!==c?n=o=[o,i]:(Sa=n,n=c);n!==c;)r.push(n),n=Sa,(o=os())!==c&&(i=ll())!==c?n=o=[o,i]:(Sa=n,n=c);r!==c?(Ta=e,e=t=Ti()):(Sa=e,e=c)}else Sa=e,e=c;return e},turn_URI:function(){var t,r,n,o,i,a,s,l,u;return t=Sa,l=Sa,e.substr(Sa,5).toLowerCase()===ca?(u=e.substr(Sa,5),Sa+=5):(u=c,Ia(ua)),u===c&&(e.substr(Sa,4).toLowerCase()===da?(u=e.substr(Sa,4),Sa+=4):(u=c,Ia(pa))),u!==c&&(Ta=l,u=ia(u)),(r=u)!==c?(58===e.charCodeAt(Sa)?(n=V,Sa++):(n=c,Ia(H)),n!==c&&(o=fl())!==c?(i=Sa,e.substr(Sa,11)===sa?(a=sa,Sa+=11):(a=c,Ia(la)),a!==c&&(s=dl())!==c?i=a=[a,s]:(Sa=i,i=c),i===c&&(i=null),i!==c?t=r=[r,n,o,i]:(Sa=t,t=c)):(Sa=t,t=c)):(Sa=t,t=c),t},uuid:function(){var t,r,n,o,i,a,s,l;return t=Sa,a=Sa,(s=vl())!==c&&(l=vl())!==c?a=s=[s,l]:(Sa=a,a=c),a!==c?(45===e.charCodeAt(Sa)?(r=Y,Sa++):(r=c,Ia(Q)),r!==c&&vl()!==c?(45===e.charCodeAt(Sa)?(n=Y,Sa++):(n=c,Ia(Q)),n!==c&&vl()!==c?(45===e.charCodeAt(Sa)?(o=Y,Sa++):(o=c,Ia(Q)),o!==c&&vl()!==c?(45===e.charCodeAt(Sa)?(i=Y,Sa++):(i=c,Ia(Q)),i!==c&&function(){var e,t,r,n;return e=Sa,(t=vl())!==c&&(r=vl())!==c&&(n=vl())!==c?e=t=[t,r,n]:(Sa=e,e=c),e}()!==c?(Ta=t,t=ha()):(Sa=t,t=c)):(Sa=t,t=c)):(Sa=t,t=c)):(Sa=t,t=c)):(Sa=t,t=c),t},WWW_Authenticate:function(){return el()},challenge:el,sipfrag:function(){var e,t,r,n,o,i;if(e=Sa,(t=Is())!==c){for(r=[],n=Rs();n!==c;)r.push(n),n=Rs();r!==c?(n=Sa,(o=Da())!==c&&(i=function(){var e,t;for(e=[],t=Ha();t!==c;)e.push(t),t=Ha();return e}())!==c?n=o=[o,i]:(Sa=n,n=c),n===c&&(n=null),n!==c?e=t=[t,r,n]:(Sa=e,e=c)):(Sa=e,e=c)}else Sa=e,e=c;return e},Referred_By:function(){var t,r,n,o,i,a,s,l,u;if(t=Sa,e.substr(Sa,11)===fa?(r=fa,Sa+=11):(r=c,Ia(va)),r===c&&(98===e.charCodeAt(Sa)?(r=ma,Sa++):(r=c,Ia(ga))),r!==c)if((n=function(){var t,r,n;for(t=Sa,r=[],(n=za())===c&&(n=Ba());n!==c;)r.push(n),(n=za())===c&&(n=Ba());return r!==c?(58===e.charCodeAt(Sa)?(n=V,Sa++):(n=c,Ia(H)),n!==c&&$a()!==c?(Ta=t,t=r=ge()):(Sa=t,t=c)):(Sa=t,t=c),t}())!==c)if((u=Fs())===c&&(u=ds()),(o=u)!==c){for(i=[],a=Sa,(s=os())!==c?((l=ml())===c&&(l=Ws()),l!==c?a=s=[s,l]:(Sa=a,a=c)):(Sa=a,a=c);a!==c;)i.push(a),a=Sa,(s=os())!==c?((l=ml())===c&&(l=Ws()),l!==c?a=s=[s,l]:(Sa=a,a=c)):(Sa=a,a=c);i!==c?t=r=[r,n,o,i]:(Sa=t,t=c)}else Sa=t,t=c;else Sa=t,t=c;else Sa=t,t=c;return t}},d=qs,p="\r\n",h=Na("\r\n",!1),f=/^[0-9]/,v=ka([["0","9"]],!1,!1),m=/^[a-zA-Z]/,g=ka([["a","z"],["A","Z"]],!1,!1),y=/^[0-9a-fA-F]/,C=ka([["0","9"],["a","f"],["A","F"]],!1,!1),S=/^[\0-\xFF]/,T=ka([["\0","ÿ"]],!1,!1),b=/^["]/,w=ka(['"'],!1,!1),E=" ",A=Na(" ",!1),_="\t",N=Na("\t",!1),k=/^[a-zA-Z0-9]/,R=ka([["a","z"],["A","Z"],["0","9"]],!1,!1),x=";",I=Na(";",!1),D="/",O=Na("/",!1),M="?",U=Na("?",!1),V=":",H=Na(":",!1),P="@",z=Na("@",!1),B="&",L=Na("&",!1),q="=",j=Na("=",!1),F="+",G=Na("+",!1),K="$",$=Na("$",!1),W=",",J=Na(",",!1),Y="-",Q=Na("-",!1),Z="_",X=Na("_",!1),ee=".",te=Na(".",!1),re="!",ne=Na("!",!1),oe="~",ie=Na("~",!1),ae="*",se=Na("*",!1),le="'",ce=Na("'",!1),ue="(",de=Na("(",!1),pe=")",he=Na(")",!1),fe="%",ve=Na("%",!1),me=function(){return" "},ge=function(){return":"},ye=/^[\x80-\uFFFF]/,Ce=ka([["",""]],!1,!1),Se=/^[\x80-\xBF]/,Te=ka([["","¿"]],!1,!1),be="`",we=Na("`",!1),Ee="<",Ae=Na("<",!1),_e=">",Ne=Na(">",!1),ke="\\",Re=Na("\\",!1),xe="[",Ie=Na("[",!1),De="]",Oe=Na("]",!1),Me="{",Ue=Na("{",!1),Ve="}",He=Na("}",!1),Pe=function(){return"*"},ze=function(){return"/"},Be=function(){return"="},Le=function(){return">"},qe=function(){return"<"},je=function(){return","},Fe=function(){return";"},Ge=function(){return":"},Ke=function(){return'"'},$e=/^[\]-~]/,We=ka([["]","~"]],!1,!1),Je=function(e){return e},Ye=/^[#-[]/,Qe=ka([["#","["]],!1,!1),Ze=/^[\0-\t]/,Xe=ka([["\0","\t"]],!1,!1),et=/^[\x0B-\f]/,tt=ka([["\v","\f"]],!1,!1),rt=/^[\x0E-\x7F]/,nt=ka([["",""]],!1,!1),ot=function(){(t=t||{data:{}}).data.uri=new a.URI(t.data.scheme,t.data.user,t.data.host,t.data.port),delete t.data.scheme,delete t.data.user,delete t.data.host,delete t.data.host_type,delete t.data.port},it=function(){(t=t||{data:{}}).data.uri=new a.URI(t.data.scheme,t.data.user,t.data.host,t.data.port,t.data.uri_params,t.data.uri_headers),delete t.data.scheme,delete t.data.user,delete t.data.host,delete t.data.host_type,delete t.data.port,delete t.data.uri_params,"SIP_URI"===t.startRule&&(t.data=t.data.uri)},at="sips",st=Na("sips",!0),lt="sip",ct=Na("sip",!0),ut=function(e){(t=t||{data:{}}).data.scheme=e},dt=function(){(t=t||{data:{}}).data.user=decodeURIComponent(Aa().slice(0,-1))},pt=function(){(t=t||{data:{}}).data.password=Aa()},ht=function(){return(t=t||{data:{}}).data.host=Aa(),t.data.host},ft=function(){return(t=t||{data:{}}).data.host_type="domain",Aa()},vt=/^[a-zA-Z0-9_\-]/,mt=ka([["a","z"],["A","Z"],["0","9"],"_","-"],!1,!1),gt=/^[a-zA-Z0-9\-]/,yt=ka([["a","z"],["A","Z"],["0","9"],"-"],!1,!1),Ct=function(){return(t=t||{data:{}}).data.host_type="IPv6",Aa()},St="::",Tt=Na("::",!1),bt=function(){return(t=t||{data:{}}).data.host_type="IPv6",Aa()},wt=function(){return(t=t||{data:{}}).data.host_type="IPv4",Aa()},Et="25",At=Na("25",!1),_t=/^[0-5]/,Nt=ka([["0","5"]],!1,!1),kt="2",Rt=Na("2",!1),xt=/^[0-4]/,It=ka([["0","4"]],!1,!1),Dt="1",Ot=Na("1",!1),Mt=/^[1-9]/,Ut=ka([["1","9"]],!1,!1),Vt=function(e){return t=t||{data:{}},e=parseInt(e.join("")),t.data.port=e,e},Ht="transport=",Pt=Na("transport=",!0),zt="udp",Bt=Na("udp",!0),Lt="tcp",qt=Na("tcp",!0),jt="sctp",Ft=Na("sctp",!0),Gt="tls",Kt=Na("tls",!0),$t=function(e){(t=t||{data:{}}).data.uri_params||(t.data.uri_params={}),t.data.uri_params.transport=e.toLowerCase()},Wt="user=",Jt=Na("user=",!0),Yt="phone",Qt=Na("phone",!0),Zt="ip",Xt=Na("ip",!0),er=function(e){(t=t||{data:{}}).data.uri_params||(t.data.uri_params={}),t.data.uri_params.user=e.toLowerCase()},tr="method=",rr=Na("method=",!0),nr=function(e){(t=t||{data:{}}).data.uri_params||(t.data.uri_params={}),t.data.uri_params.method=e},or="ttl=",ir=Na("ttl=",!0),ar=function(e){(t=t||{data:{}}).data.params||(t.data.params={}),t.data.params.ttl=e},sr="maddr=",lr=Na("maddr=",!0),cr=function(e){(t=t||{data:{}}).data.uri_params||(t.data.uri_params={}),t.data.uri_params.maddr=e},ur="lr",dr=Na("lr",!0),pr=function(){(t=t||{data:{}}).data.uri_params||(t.data.uri_params={}),t.data.uri_params.lr=void 0},hr=function(e,r){(t=t||{data:{}}).data.uri_params||(t.data.uri_params={}),r=null===r?void 0:r[1],t.data.uri_params[e.toLowerCase()]=r},fr=function(e,r){e=e.join("").toLowerCase(),r=r.join(""),(t=t||{data:{}}).data.uri_headers||(t.data.uri_headers={}),t.data.uri_headers[e]?t.data.uri_headers[e].push(r):t.data.uri_headers[e]=[r]},vr=function(){"Refer_To"===(t=t||{data:{}}).startRule&&(t.data.uri=new a.URI(t.data.scheme,t.data.user,t.data.host,t.data.port,t.data.uri_params,t.data.uri_headers),delete t.data.scheme,delete t.data.user,delete t.data.host,delete t.data.host_type,delete t.data.port,delete t.data.uri_params)},mr="//",gr=Na("//",!1),yr=function(){(t=t||{data:{}}).data.scheme=Aa()},Cr=Na("SIP",!0),Sr=function(){(t=t||{data:{}}).data.sip_version=Aa()},Tr="INVITE",br=Na("INVITE",!1),wr="ACK",Er=Na("ACK",!1),Ar="OPTIONS",_r=Na("OPTIONS",!1),Nr="BYE",kr=Na("BYE",!1),Rr="CANCEL",xr=Na("CANCEL",!1),Ir="REGISTER",Dr=Na("REGISTER",!1),Or="SUBSCRIBE",Mr=Na("SUBSCRIBE",!1),Ur="NOTIFY",Vr=Na("NOTIFY",!1),Hr="REFER",Pr=Na("REFER",!1),zr="PUBLISH",Br=Na("PUBLISH",!1),Lr=function(){return(t=t||{data:{}}).data.method=Aa(),t.data.method},qr=function(e){(t=t||{data:{}}).data.status_code=parseInt(e.join(""))},jr=function(){(t=t||{data:{}}).data.reason_phrase=Aa()},Fr=function(){(t=t||{data:{}}).data=Aa()},Gr=function(){var e,r;for(r=(t=t||{data:{}}).data.multi_header.length,e=0;e<r;e++)if(null===t.data.multi_header[e].parsed){t.data=null;break}null!==t.data?t.data=t.data.multi_header:t.data=-1},Kr=function(){var e;(t=t||{data:{}}).data.multi_header||(t.data.multi_header=[]);try{e=new i.NameAddrHeader(t.data.uri,t.data.displayName,t.data.params),delete t.data.uri,delete t.data.displayName,delete t.data.params}catch(o){e=null}t.data.multi_header.push({position:Sa,offset:_a().start.offset,parsed:e})},$r=function(e){'"'===(e=Aa().trim())[0]&&(e=e.substring(1,e.length-1)),(t=t||{data:{}}).data.displayName=e},Wr="q",Jr=Na("q",!0),Yr=function(e){(t=t||{data:{}}).data.params||(t.data.params={}),t.data.params.q=e},Qr="expires",Zr=Na("expires",!0),Xr=function(e){(t=t||{data:{}}).data.params||(t.data.params={}),t.data.params.expires=e},en=function(e){return parseInt(e.join(""))},tn="0",rn=Na("0",!1),nn=function(){return parseFloat(Aa())},on=function(e,r){(t=t||{data:{}}).data.params||(t.data.params={}),r=null===r?void 0:r[1],t.data.params[e.toLowerCase()]=r},an="render",sn=Na("render",!0),ln="session",cn=Na("session",!0),un="icon",dn=Na("icon",!0),pn="alert",hn=Na("alert",!0),fn=function(){"Content_Disposition"===(t=t||{data:{}}).startRule&&(t.data.type=Aa().toLowerCase())},vn="handling",mn=Na("handling",!0),gn="optional",yn=Na("optional",!0),Cn="required",Sn=Na("required",!0),Tn=function(e){(t=t||{data:{}}).data=parseInt(e.join(""))},bn=function(){(t=t||{data:{}}).data=Aa()},wn="text",En=Na("text",!0),An="image",_n=Na("image",!0),Nn="audio",kn=Na("audio",!0),Rn="video",xn=Na("video",!0),In="application",Dn=Na("application",!0),On="message",Mn=Na("message",!0),Un="multipart",Vn=Na("multipart",!0),Hn="x-",Pn=Na("x-",!0),zn=function(e){(t=t||{data:{}}).data.value=parseInt(e.join(""))},Bn=function(e){(t=t||{data:{}}).data.event=e.toLowerCase()},Ln=function(){var e=(t=t||{data:{}}).data.tag;t.data=new i.NameAddrHeader(t.data.uri,t.data.displayName,t.data.params),e&&t.data.setParam("tag",e)},qn="tag",jn=Na("tag",!0),Fn=function(e){(t=t||{data:{}}).data.tag=e},Gn=function(e){(t=t||{data:{}}).data=parseInt(e.join(""))},Kn=function(){(t=t||{data:{}}).data=new i.NameAddrHeader(t.data.uri,t.data.displayName,t.data.params)},$n="digest",Wn=Na("Digest",!0),Jn="realm",Yn=Na("realm",!0),Qn=function(e){(t=t||{data:{}}).data.realm=e},Zn="domain",Xn=Na("domain",!0),eo="nonce",to=Na("nonce",!0),ro=function(e){(t=t||{data:{}}).data.nonce=e},no="opaque",oo=Na("opaque",!0),io=function(e){(t=t||{data:{}}).data.opaque=e},ao="stale",so=Na("stale",!0),lo="true",co=Na("true",!0),uo=function(){(t=t||{data:{}}).data.stale=!0},po="false",ho=Na("false",!0),fo=function(){(t=t||{data:{}}).data.stale=!1},vo="algorithm",mo=Na("algorithm",!0),go="md5",yo=Na("MD5",!0),Co="md5-sess",So=Na("MD5-sess",!0),To=function(e){(t=t||{data:{}}).data.algorithm=e.toUpperCase()},bo="qop",wo=Na("qop",!0),Eo="auth-int",Ao=Na("auth-int",!0),_o="auth",No=Na("auth",!0),ko=function(e){(t=t||{data:{}}).data.qop||(t.data.qop=[]),t.data.qop.push(e.toLowerCase())},Ro=function(){var e,r;for(r=(t=t||{data:{}}).data.multi_header.length,e=0;e<r;e++)if(null===t.data.multi_header[e].parsed){t.data=null;break}null!==t.data?t.data=t.data.multi_header:t.data=-1},xo=function(){var e;(t=t||{data:{}}).data.multi_header||(t.data.multi_header=[]);try{e=new i.NameAddrHeader(t.data.uri,t.data.displayName,t.data.params),delete t.data.uri,delete t.data.displayName,delete t.data.params}catch(o){e=null}t.data.multi_header.push({position:Sa,offset:_a().start.offset,parsed:e})},Io=function(){(t=t||{data:{}}).data=new i.NameAddrHeader(t.data.uri,t.data.displayName,t.data.params)},Do=function(){(t=t||{data:{}}).data.replaces_from_tag&&t.data.replaces_to_tag||(t.data=-1)},Oo=function(){(t=t||{data:{}}).data={call_id:t.data}},Mo="from-tag",Uo=Na("from-tag",!0),Vo=function(e){(t=t||{data:{}}).data.replaces_from_tag=e},Ho="to-tag",Po=Na("to-tag",!0),zo=function(e){(t=t||{data:{}}).data.replaces_to_tag=e},Bo="early-only",Lo=Na("early-only",!0),qo=function(){(t=t||{data:{}}).data.early_only=!0},jo=function(e,t){return t},Fo=function(e,t){return[e].concat(t)},Go=function(e){"Require"===(t=t||{data:{}}).startRule&&(t.data=e||[])},Ko="active",$o=Na("active",!0),Wo="pending",Jo=Na("pending",!0),Yo="terminated",Qo=Na("terminated",!0),Zo=function(){(t=t||{data:{}}).data.state=Aa()},Xo="reason",ei=Na("reason",!0),ti=function(e){t=t||{data:{}},void 0!==e&&(t.data.reason=e)},ri=function(e){t=t||{data:{}},void 0!==e&&(t.data.expires=e)},ni="retry_after",oi=Na("retry_after",!0),ii=function(e){t=t||{data:{}},void 0!==e&&(t.data.retry_after=e)},ai="deactivated",si=Na("deactivated",!0),li="probation",ci=Na("probation",!0),ui="rejected",di=Na("rejected",!0),pi="timeout",hi=Na("timeout",!0),fi="giveup",vi=Na("giveup",!0),mi="noresource",gi=Na("noresource",!0),yi="invariant",Ci=Na("invariant",!0),Si=function(e){"Supported"===(t=t||{data:{}}).startRule&&(t.data=e||[])},Ti=function(){var e=(t=t||{data:{}}).data.tag;t.data=new i.NameAddrHeader(t.data.uri,t.data.displayName,t.data.params),e&&t.data.setParam("tag",e)},bi="ttl",wi=Na("ttl",!0),Ei=function(e){(t=t||{data:{}}).data.ttl=e},Ai="maddr",_i=Na("maddr",!0),Ni=function(e){(t=t||{data:{}}).data.maddr=e},ki="received",Ri=Na("received",!0),xi=function(e){(t=t||{data:{}}).data.received=e},Ii="branch",Di=Na("branch",!0),Oi=function(e){(t=t||{data:{}}).data.branch=e},Mi="rport",Ui=Na("rport",!0),Vi=function(e){t=t||{data:{}},void 0!==e&&(t.data.rport=e.join(""))},Hi=function(e){(t=t||{data:{}}).data.protocol=e},Pi=Na("UDP",!0),zi=Na("TCP",!0),Bi=Na("TLS",!0),Li=Na("SCTP",!0),qi=function(e){(t=t||{data:{}}).data.transport=e},ji=function(){(t=t||{data:{}}).data.host=Aa()},Fi=function(e){(t=t||{data:{}}).data.port=parseInt(e.join(""))},Gi=function(e){return parseInt(e.join(""))},Ki=function(e){"Session_Expires"===(t=t||{data:{}}).startRule&&(t.data.deltaSeconds=e)},$i="refresher",Wi=Na("refresher",!1),Ji="uas",Yi=Na("uas",!1),Qi="uac",Zi=Na("uac",!1),Xi=function(e){"Session_Expires"===(t=t||{data:{}}).startRule&&(t.data.refresher=e)},ea=function(e){"Min_SE"===(t=t||{data:{}}).startRule&&(t.data=e)},ta="stuns",ra=Na("stuns",!0),na="stun",oa=Na("stun",!0),ia=function(e){(t=t||{data:{}}).data.scheme=e},aa=function(e){(t=t||{data:{}}).data.host=e},sa="?transport=",la=Na("?transport=",!1),ca="turns",ua=Na("turns",!0),da="turn",pa=Na("turn",!0),ha=function(){(t=t||{data:{}}).data=Aa()},fa="Referred-By",va=Na("Referred-By",!1),ma="b",ga=Na("b",!1),ya="cid",Ca=Na("cid",!1),Sa=0,Ta=0,ba=[{line:1,column:1}],wa=0,Ea=[];if(void 0!==t.startRule){if(!(t.startRule in u))throw new Error("Can't start parsing from rule \""+t.startRule+'".');d=u[t.startRule]}function Aa(){return e.substring(Ta,Sa)}function _a(){return xa(Ta,Sa)}function Na(e,t){return{type:"literal",text:e,ignoreCase:t}}function ka(e,t,r){return{type:"class",parts:e,inverted:t,ignoreCase:r}}function Ra(t){var r,n=ba[t];if(n)return n;for(r=t-1;!ba[r];)r--;for(n={line:(n=ba[r]).line,column:n.column};r<t;)10===e.charCodeAt(r)?(n.line++,n.column=1):n.column++,r++;return ba[t]=n,n}function xa(e,t){var r=Ra(e),n=Ra(t);return{start:{offset:e,line:r.line,column:r.column},end:{offset:t,line:n.line,column:n.column}}}function Ia(e){Sa<wa||(Sa>wa&&(wa=Sa,Ea=[]),Ea.push(e))}function Da(){var t;return e.substr(Sa,2)===p?(t=p,Sa+=2):(t=c,Ia(h)),t}function Oa(){var t;return f.test(e.charAt(Sa))?(t=e.charAt(Sa),Sa++):(t=c,Ia(v)),t}function Ma(){var t;return m.test(e.charAt(Sa))?(t=e.charAt(Sa),Sa++):(t=c,Ia(g)),t}function Ua(){var t;return y.test(e.charAt(Sa))?(t=e.charAt(Sa),Sa++):(t=c,Ia(C)),t}function Va(){var e;return(e=za())===c&&(e=Ba()),e}function Ha(){var t;return S.test(e.charAt(Sa))?(t=e.charAt(Sa),Sa++):(t=c,Ia(T)),t}function Pa(){var t;return b.test(e.charAt(Sa))?(t=e.charAt(Sa),Sa++):(t=c,Ia(w)),t}function za(){var t;return 32===e.charCodeAt(Sa)?(t=E,Sa++):(t=c,Ia(A)),t}function Ba(){var t;return 9===e.charCodeAt(Sa)?(t=_,Sa++):(t=c,Ia(N)),t}function La(){var t;return k.test(e.charAt(Sa))?(t=e.charAt(Sa),Sa++):(t=c,Ia(R)),t}function qa(){var t;return 59===e.charCodeAt(Sa)?(t=x,Sa++):(t=c,Ia(I)),t===c&&(47===e.charCodeAt(Sa)?(t=D,Sa++):(t=c,Ia(O)),t===c&&(63===e.charCodeAt(Sa)?(t=M,Sa++):(t=c,Ia(U)),t===c&&(58===e.charCodeAt(Sa)?(t=V,Sa++):(t=c,Ia(H)),t===c&&(64===e.charCodeAt(Sa)?(t=P,Sa++):(t=c,Ia(z)),t===c&&(38===e.charCodeAt(Sa)?(t=B,Sa++):(t=c,Ia(L)),t===c&&(61===e.charCodeAt(Sa)?(t=q,Sa++):(t=c,Ia(j)),t===c&&(43===e.charCodeAt(Sa)?(t=F,Sa++):(t=c,Ia(G)),t===c&&(36===e.charCodeAt(Sa)?(t=K,Sa++):(t=c,Ia($)),t===c&&(44===e.charCodeAt(Sa)?(t=W,Sa++):(t=c,Ia(J))))))))))),t}function ja(){var e;return(e=La())===c&&(e=Fa()),e}function Fa(){var t;return 45===e.charCodeAt(Sa)?(t=Y,Sa++):(t=c,Ia(Q)),t===c&&(95===e.charCodeAt(Sa)?(t=Z,Sa++):(t=c,Ia(X)),t===c&&(46===e.charCodeAt(Sa)?(t=ee,Sa++):(t=c,Ia(te)),t===c&&(33===e.charCodeAt(Sa)?(t=re,Sa++):(t=c,Ia(ne)),t===c&&(126===e.charCodeAt(Sa)?(t=oe,Sa++):(t=c,Ia(ie)),t===c&&(42===e.charCodeAt(Sa)?(t=ae,Sa++):(t=c,Ia(se)),t===c&&(39===e.charCodeAt(Sa)?(t=le,Sa++):(t=c,Ia(ce)),t===c&&(40===e.charCodeAt(Sa)?(t=ue,Sa++):(t=c,Ia(de)),t===c&&(41===e.charCodeAt(Sa)?(t=pe,Sa++):(t=c,Ia(he)))))))))),t}function Ga(){var t,r,n,o,i;return t=Sa,r=Sa,37===e.charCodeAt(Sa)?(n=fe,Sa++):(n=c,Ia(ve)),n!==c&&(o=Ua())!==c&&(i=Ua())!==c?r=n=[n,o,i]:(Sa=r,r=c),r!==c?e.substring(t,Sa):r}function Ka(){var e,t,r,n;for(e=Sa,t=Sa,r=[],n=Va();n!==c;)r.push(n),n=Va();if(r!==c&&(n=Da())!==c?t=r=[r,n]:(Sa=t,t=c),t===c&&(t=null),t!==c){if(r=[],(n=Va())!==c)for(;n!==c;)r.push(n),n=Va();else r=c;r!==c?(Ta=e,e=t=me()):(Sa=e,e=c)}else Sa=e,e=c;return e}function $a(){var e;return(e=Ka())===c&&(e=null),e}function Wa(){var t;return ye.test(e.charAt(Sa))?(t=e.charAt(Sa),Sa++):(t=c,Ia(Ce)),t}function Ja(){var t;return Se.test(e.charAt(Sa))?(t=e.charAt(Sa),Sa++):(t=c,Ia(Te)),t}function Ya(){var t,r,n;if(t=Sa,r=[],(n=La())===c&&(45===e.charCodeAt(Sa)?(n=Y,Sa++):(n=c,Ia(Q)),n===c&&(46===e.charCodeAt(Sa)?(n=ee,Sa++):(n=c,Ia(te)),n===c&&(33===e.charCodeAt(Sa)?(n=re,Sa++):(n=c,Ia(ne)),n===c&&(37===e.charCodeAt(Sa)?(n=fe,Sa++):(n=c,Ia(ve)),n===c&&(42===e.charCodeAt(Sa)?(n=ae,Sa++):(n=c,Ia(se)),n===c&&(95===e.charCodeAt(Sa)?(n=Z,Sa++):(n=c,Ia(X)),n===c&&(43===e.charCodeAt(Sa)?(n=F,Sa++):(n=c,Ia(G)),n===c&&(96===e.charCodeAt(Sa)?(n=be,Sa++):(n=c,Ia(we)),n===c&&(39===e.charCodeAt(Sa)?(n=le,Sa++):(n=c,Ia(ce)),n===c&&(126===e.charCodeAt(Sa)?(n=oe,Sa++):(n=c,Ia(ie)))))))))))),n!==c)for(;n!==c;)r.push(n),(n=La())===c&&(45===e.charCodeAt(Sa)?(n=Y,Sa++):(n=c,Ia(Q)),n===c&&(46===e.charCodeAt(Sa)?(n=ee,Sa++):(n=c,Ia(te)),n===c&&(33===e.charCodeAt(Sa)?(n=re,Sa++):(n=c,Ia(ne)),n===c&&(37===e.charCodeAt(Sa)?(n=fe,Sa++):(n=c,Ia(ve)),n===c&&(42===e.charCodeAt(Sa)?(n=ae,Sa++):(n=c,Ia(se)),n===c&&(95===e.charCodeAt(Sa)?(n=Z,Sa++):(n=c,Ia(X)),n===c&&(43===e.charCodeAt(Sa)?(n=F,Sa++):(n=c,Ia(G)),n===c&&(96===e.charCodeAt(Sa)?(n=be,Sa++):(n=c,Ia(we)),n===c&&(39===e.charCodeAt(Sa)?(n=le,Sa++):(n=c,Ia(ce)),n===c&&(126===e.charCodeAt(Sa)?(n=oe,Sa++):(n=c,Ia(ie))))))))))));else r=c;return r!==c?e.substring(t,Sa):r}function Qa(){var t,r,n;if(t=Sa,r=[],(n=La())===c&&(45===e.charCodeAt(Sa)?(n=Y,Sa++):(n=c,Ia(Q)),n===c&&(33===e.charCodeAt(Sa)?(n=re,Sa++):(n=c,Ia(ne)),n===c&&(37===e.charCodeAt(Sa)?(n=fe,Sa++):(n=c,Ia(ve)),n===c&&(42===e.charCodeAt(Sa)?(n=ae,Sa++):(n=c,Ia(se)),n===c&&(95===e.charCodeAt(Sa)?(n=Z,Sa++):(n=c,Ia(X)),n===c&&(43===e.charCodeAt(Sa)?(n=F,Sa++):(n=c,Ia(G)),n===c&&(96===e.charCodeAt(Sa)?(n=be,Sa++):(n=c,Ia(we)),n===c&&(39===e.charCodeAt(Sa)?(n=le,Sa++):(n=c,Ia(ce)),n===c&&(126===e.charCodeAt(Sa)?(n=oe,Sa++):(n=c,Ia(ie))))))))))),n!==c)for(;n!==c;)r.push(n),(n=La())===c&&(45===e.charCodeAt(Sa)?(n=Y,Sa++):(n=c,Ia(Q)),n===c&&(33===e.charCodeAt(Sa)?(n=re,Sa++):(n=c,Ia(ne)),n===c&&(37===e.charCodeAt(Sa)?(n=fe,Sa++):(n=c,Ia(ve)),n===c&&(42===e.charCodeAt(Sa)?(n=ae,Sa++):(n=c,Ia(se)),n===c&&(95===e.charCodeAt(Sa)?(n=Z,Sa++):(n=c,Ia(X)),n===c&&(43===e.charCodeAt(Sa)?(n=F,Sa++):(n=c,Ia(G)),n===c&&(96===e.charCodeAt(Sa)?(n=be,Sa++):(n=c,Ia(we)),n===c&&(39===e.charCodeAt(Sa)?(n=le,Sa++):(n=c,Ia(ce)),n===c&&(126===e.charCodeAt(Sa)?(n=oe,Sa++):(n=c,Ia(ie)))))))))));else r=c;return r!==c?e.substring(t,Sa):r}function Za(){var t,r,n;if(t=Sa,r=[],(n=La())===c&&(45===e.charCodeAt(Sa)?(n=Y,Sa++):(n=c,Ia(Q)),n===c&&(46===e.charCodeAt(Sa)?(n=ee,Sa++):(n=c,Ia(te)),n===c&&(33===e.charCodeAt(Sa)?(n=re,Sa++):(n=c,Ia(ne)),n===c&&(37===e.charCodeAt(Sa)?(n=fe,Sa++):(n=c,Ia(ve)),n===c&&(42===e.charCodeAt(Sa)?(n=ae,Sa++):(n=c,Ia(se)),n===c&&(95===e.charCodeAt(Sa)?(n=Z,Sa++):(n=c,Ia(X)),n===c&&(43===e.charCodeAt(Sa)?(n=F,Sa++):(n=c,Ia(G)),n===c&&(96===e.charCodeAt(Sa)?(n=be,Sa++):(n=c,Ia(we)),n===c&&(39===e.charCodeAt(Sa)?(n=le,Sa++):(n=c,Ia(ce)),n===c&&(126===e.charCodeAt(Sa)?(n=oe,Sa++):(n=c,Ia(ie)),n===c&&(40===e.charCodeAt(Sa)?(n=ue,Sa++):(n=c,Ia(de)),n===c&&(41===e.charCodeAt(Sa)?(n=pe,Sa++):(n=c,Ia(he)),n===c&&(60===e.charCodeAt(Sa)?(n=Ee,Sa++):(n=c,Ia(Ae)),n===c&&(62===e.charCodeAt(Sa)?(n=_e,Sa++):(n=c,Ia(Ne)),n===c&&(58===e.charCodeAt(Sa)?(n=V,Sa++):(n=c,Ia(H)),n===c&&(92===e.charCodeAt(Sa)?(n=ke,Sa++):(n=c,Ia(Re)),n===c&&(n=Pa())===c&&(47===e.charCodeAt(Sa)?(n=D,Sa++):(n=c,Ia(O)),n===c&&(91===e.charCodeAt(Sa)?(n=xe,Sa++):(n=c,Ia(Ie)),n===c&&(93===e.charCodeAt(Sa)?(n=De,Sa++):(n=c,Ia(Oe)),n===c&&(63===e.charCodeAt(Sa)?(n=M,Sa++):(n=c,Ia(U)),n===c&&(123===e.charCodeAt(Sa)?(n=Me,Sa++):(n=c,Ia(Ue)),n===c&&(125===e.charCodeAt(Sa)?(n=Ve,Sa++):(n=c,Ia(He)))))))))))))))))))))))),n!==c)for(;n!==c;)r.push(n),(n=La())===c&&(45===e.charCodeAt(Sa)?(n=Y,Sa++):(n=c,Ia(Q)),n===c&&(46===e.charCodeAt(Sa)?(n=ee,Sa++):(n=c,Ia(te)),n===c&&(33===e.charCodeAt(Sa)?(n=re,Sa++):(n=c,Ia(ne)),n===c&&(37===e.charCodeAt(Sa)?(n=fe,Sa++):(n=c,Ia(ve)),n===c&&(42===e.charCodeAt(Sa)?(n=ae,Sa++):(n=c,Ia(se)),n===c&&(95===e.charCodeAt(Sa)?(n=Z,Sa++):(n=c,Ia(X)),n===c&&(43===e.charCodeAt(Sa)?(n=F,Sa++):(n=c,Ia(G)),n===c&&(96===e.charCodeAt(Sa)?(n=be,Sa++):(n=c,Ia(we)),n===c&&(39===e.charCodeAt(Sa)?(n=le,Sa++):(n=c,Ia(ce)),n===c&&(126===e.charCodeAt(Sa)?(n=oe,Sa++):(n=c,Ia(ie)),n===c&&(40===e.charCodeAt(Sa)?(n=ue,Sa++):(n=c,Ia(de)),n===c&&(41===e.charCodeAt(Sa)?(n=pe,Sa++):(n=c,Ia(he)),n===c&&(60===e.charCodeAt(Sa)?(n=Ee,Sa++):(n=c,Ia(Ae)),n===c&&(62===e.charCodeAt(Sa)?(n=_e,Sa++):(n=c,Ia(Ne)),n===c&&(58===e.charCodeAt(Sa)?(n=V,Sa++):(n=c,Ia(H)),n===c&&(92===e.charCodeAt(Sa)?(n=ke,Sa++):(n=c,Ia(Re)),n===c&&(n=Pa())===c&&(47===e.charCodeAt(Sa)?(n=D,Sa++):(n=c,Ia(O)),n===c&&(91===e.charCodeAt(Sa)?(n=xe,Sa++):(n=c,Ia(Ie)),n===c&&(93===e.charCodeAt(Sa)?(n=De,Sa++):(n=c,Ia(Oe)),n===c&&(63===e.charCodeAt(Sa)?(n=M,Sa++):(n=c,Ia(U)),n===c&&(123===e.charCodeAt(Sa)?(n=Me,Sa++):(n=c,Ia(Ue)),n===c&&(125===e.charCodeAt(Sa)?(n=Ve,Sa++):(n=c,Ia(He))))))))))))))))))))))));else r=c;return r!==c?e.substring(t,Sa):r}function Xa(){var t,r;return t=Sa,$a()!==c?(47===e.charCodeAt(Sa)?(r=D,Sa++):(r=c,Ia(O)),r!==c&&$a()!==c?(Ta=t,t=ze()):(Sa=t,t=c)):(Sa=t,t=c),t}function es(){var t,r;return t=Sa,$a()!==c?(61===e.charCodeAt(Sa)?(r=q,Sa++):(r=c,Ia(j)),r!==c&&$a()!==c?(Ta=t,t=Be()):(Sa=t,t=c)):(Sa=t,t=c),t}function ts(){var t,r;return t=Sa,62===e.charCodeAt(Sa)?(r=_e,Sa++):(r=c,Ia(Ne)),r!==c&&$a()!==c?(Ta=t,t=r=Le()):(Sa=t,t=c),t}function rs(){var t,r;return t=Sa,$a()!==c?(60===e.charCodeAt(Sa)?(r=Ee,Sa++):(r=c,Ia(Ae)),r!==c?(Ta=t,t=qe()):(Sa=t,t=c)):(Sa=t,t=c),t}function ns(){var t,r;return t=Sa,$a()!==c?(44===e.charCodeAt(Sa)?(r=W,Sa++):(r=c,Ia(J)),r!==c&&$a()!==c?(Ta=t,t=je()):(Sa=t,t=c)):(Sa=t,t=c),t}function os(){var t,r;return t=Sa,$a()!==c?(59===e.charCodeAt(Sa)?(r=x,Sa++):(r=c,Ia(I)),r!==c&&$a()!==c?(Ta=t,t=Fe()):(Sa=t,t=c)):(Sa=t,t=c),t}function is(){var e;return e=Sa,$a()!==c&&Pa()!==c?(Ta=e,e=Ke()):(Sa=e,e=c),e}function as(){var e;return e=Sa,Pa()!==c&&$a()!==c?(Ta=e,e=Ke()):(Sa=e,e=c),e}function ss(){var t,r,n,o,i,a;if(t=Sa,r=Sa,(n=$a())!==c)if((o=Pa())!==c){for(i=[],(a=cs())===c&&(a=us());a!==c;)i.push(a),(a=cs())===c&&(a=us());i!==c&&(a=Pa())!==c?r=n=[n,o,i,a]:(Sa=r,r=c)}else Sa=r,r=c;else Sa=r,r=c;return r!==c?e.substring(t,Sa):r}function ls(){var t,r,n,o;if(t=Sa,$a()!==c)if(Pa()!==c){for(r=Sa,n=[],(o=cs())===c&&(o=us());o!==c;)n.push(o),(o=cs())===c&&(o=us());(r=n!==c?e.substring(r,Sa):n)!==c&&(n=Pa())!==c?(Ta=t,t=Je(r)):(Sa=t,t=c)}else Sa=t,t=c;else Sa=t,t=c;return t}function cs(){var t;return(t=Ka())===c&&(33===e.charCodeAt(Sa)?(t=re,Sa++):(t=c,Ia(ne)),t===c&&(Ye.test(e.charAt(Sa))?(t=e.charAt(Sa),Sa++):(t=c,Ia(Qe)),t===c&&($e.test(e.charAt(Sa))?(t=e.charAt(Sa),Sa++):(t=c,Ia(We)),t===c&&(t=Wa())))),t}function us(){var t,r,n;return t=Sa,92===e.charCodeAt(Sa)?(r=ke,Sa++):(r=c,Ia(Re)),r!==c?(Ze.test(e.charAt(Sa))?(n=e.charAt(Sa),Sa++):(n=c,Ia(Xe)),n===c&&(et.test(e.charAt(Sa))?(n=e.charAt(Sa),Sa++):(n=c,Ia(tt)),n===c&&(rt.test(e.charAt(Sa))?(n=e.charAt(Sa),Sa++):(n=c,Ia(nt)))),n!==c?t=r=[r,n]:(Sa=t,t=c)):(Sa=t,t=c),t}function ds(){var t,r,n;return t=Sa,hs()!==c?(58===e.charCodeAt(Sa)?(r=V,Sa++):(r=c,Ia(H)),r!==c?((n=fs())===c&&(n=null),n!==c&&ms()!==c?(Ta=t,t=ot()):(Sa=t,t=c)):(Sa=t,t=c)):(Sa=t,t=c),t}function ps(){var t,r,n,o;return t=Sa,hs()!==c?(58===e.charCodeAt(Sa)?(r=V,Sa++):(r=c,Ia(H)),r!==c?((n=fs())===c&&(n=null),n!==c&&ms()!==c&&function(){var t,r,n,o;for(t=[],r=Sa,59===e.charCodeAt(Sa)?(n=x,Sa++):(n=c,Ia(I)),n!==c&&(o=Ns())!==c?r=n=[n,o]:(Sa=r,r=c);r!==c;)t.push(r),r=Sa,59===e.charCodeAt(Sa)?(n=x,Sa++):(n=c,Ia(I)),n!==c&&(o=Ns())!==c?r=n=[n,o]:(Sa=r,r=c);return t}()!==c?((o=function(){var t,r,n,o,i,a,s;if(t=Sa,63===e.charCodeAt(Sa)?(r=M,Sa++):(r=c,Ia(U)),r!==c)if((n=Rs())!==c){for(o=[],i=Sa,38===e.charCodeAt(Sa)?(a=B,Sa++):(a=c,Ia(L)),a!==c&&(s=Rs())!==c?i=a=[a,s]:(Sa=i,i=c);i!==c;)o.push(i),i=Sa,38===e.charCodeAt(Sa)?(a=B,Sa++):(a=c,Ia(L)),a!==c&&(s=Rs())!==c?i=a=[a,s]:(Sa=i,i=c);o!==c?t=r=[r,n,o]:(Sa=t,t=c)}else Sa=t,t=c;else Sa=t,t=c;return t}())===c&&(o=null),o!==c?(Ta=t,t=it()):(Sa=t,t=c)):(Sa=t,t=c)):(Sa=t,t=c)):(Sa=t,t=c),t}function hs(){var t,r;return t=Sa,e.substr(Sa,4).toLowerCase()===at?(r=e.substr(Sa,4),Sa+=4):(r=c,Ia(st)),r===c&&(e.substr(Sa,3).toLowerCase()===lt?(r=e.substr(Sa,3),Sa+=3):(r=c,Ia(ct))),r!==c&&(Ta=t,r=ut(r)),r}function fs(){var t,r,n,o;return t=Sa,function(){var e,t;if(e=[],(t=ja())===c&&(t=Ga())===c&&(t=vs()),t!==c)for(;t!==c;)e.push(t),(t=ja())===c&&(t=Ga())===c&&(t=vs());else e=c;return e}()!==c?(r=Sa,58===e.charCodeAt(Sa)?(n=V,Sa++):(n=c,Ia(H)),n!==c&&(o=function(){var t,r,n;for(t=Sa,r=[],(n=ja())===c&&(n=Ga())===c&&(38===e.charCodeAt(Sa)?(n=B,Sa++):(n=c,Ia(L)),n===c&&(61===e.charCodeAt(Sa)?(n=q,Sa++):(n=c,Ia(j)),n===c&&(43===e.charCodeAt(Sa)?(n=F,Sa++):(n=c,Ia(G)),n===c&&(36===e.charCodeAt(Sa)?(n=K,Sa++):(n=c,Ia($)),n===c&&(44===e.charCodeAt(Sa)?(n=W,Sa++):(n=c,Ia(J)))))));n!==c;)r.push(n),(n=ja())===c&&(n=Ga())===c&&(38===e.charCodeAt(Sa)?(n=B,Sa++):(n=c,Ia(L)),n===c&&(61===e.charCodeAt(Sa)?(n=q,Sa++):(n=c,Ia(j)),n===c&&(43===e.charCodeAt(Sa)?(n=F,Sa++):(n=c,Ia(G)),n===c&&(36===e.charCodeAt(Sa)?(n=K,Sa++):(n=c,Ia($)),n===c&&(44===e.charCodeAt(Sa)?(n=W,Sa++):(n=c,Ia(J)))))));return r!==c&&(Ta=t,r=pt()),r}())!==c?r=n=[n,o]:(Sa=r,r=c),r===c&&(r=null),r!==c?(64===e.charCodeAt(Sa)?(n=P,Sa++):(n=c,Ia(z)),n!==c?(Ta=t,t=dt()):(Sa=t,t=c)):(Sa=t,t=c)):(Sa=t,t=c),t}function vs(){var t;return 38===e.charCodeAt(Sa)?(t=B,Sa++):(t=c,Ia(L)),t===c&&(61===e.charCodeAt(Sa)?(t=q,Sa++):(t=c,Ia(j)),t===c&&(43===e.charCodeAt(Sa)?(t=F,Sa++):(t=c,Ia(G)),t===c&&(36===e.charCodeAt(Sa)?(t=K,Sa++):(t=c,Ia($)),t===c&&(44===e.charCodeAt(Sa)?(t=W,Sa++):(t=c,Ia(J)),t===c&&(59===e.charCodeAt(Sa)?(t=x,Sa++):(t=c,Ia(I)),t===c&&(63===e.charCodeAt(Sa)?(t=M,Sa++):(t=c,Ia(U)),t===c&&(47===e.charCodeAt(Sa)?(t=D,Sa++):(t=c,Ia(O))))))))),t}function ms(){var t,r,n,o,i;return t=Sa,(r=gs())!==c?(n=Sa,58===e.charCodeAt(Sa)?(o=V,Sa++):(o=c,Ia(H)),o!==c&&(i=_s())!==c?n=o=[o,i]:(Sa=n,n=c),n===c&&(n=null),n!==c?t=r=[r,n]:(Sa=t,t=c)):(Sa=t,t=c),t}function gs(){var e,t;return e=Sa,(t=ys())===c&&(t=Es())===c&&(t=Ss()),t!==c&&(Ta=e,t=ht()),t}function ys(){var t,r,n,o,i;for(t=Sa,r=[],n=Sa,(o=Cs())!==c?(46===e.charCodeAt(Sa)?(i=ee,Sa++):(i=c,Ia(te)),i!==c?n=o=[o,i]:(Sa=n,n=c)):(Sa=n,n=c);n!==c;)r.push(n),n=Sa,(o=Cs())!==c?(46===e.charCodeAt(Sa)?(i=ee,Sa++):(i=c,Ia(te)),i!==c?n=o=[o,i]:(Sa=n,n=c)):(Sa=n,n=c);return r!==c&&(n=function(){var t,r,n,o;if(t=Sa,m.test(e.charAt(Sa))?(r=e.charAt(Sa),Sa++):(r=c,Ia(g)),r!==c){for(n=[],gt.test(e.charAt(Sa))?(o=e.charAt(Sa),Sa++):(o=c,Ia(yt));o!==c;)n.push(o),gt.test(e.charAt(Sa))?(o=e.charAt(Sa),Sa++):(o=c,Ia(yt));n!==c?t=r=[r,n]:(Sa=t,t=c)}else Sa=t,t=c;return t}())!==c?(46===e.charCodeAt(Sa)?(o=ee,Sa++):(o=c,Ia(te)),o===c&&(o=null),o!==c?(Ta=t,t=r=ft()):(Sa=t,t=c)):(Sa=t,t=c),t}function Cs(){var t,r;if(t=[],vt.test(e.charAt(Sa))?(r=e.charAt(Sa),Sa++):(r=c,Ia(mt)),r!==c)for(;r!==c;)t.push(r),vt.test(e.charAt(Sa))?(r=e.charAt(Sa),Sa++):(r=c,Ia(mt));else t=c;return t}function Ss(){var t,r,n;return t=Sa,91===e.charCodeAt(Sa)?(r=xe,Sa++):(r=c,Ia(Ie)),r!==c&&Ts()!==c?(93===e.charCodeAt(Sa)?(n=De,Sa++):(n=c,Ia(Oe)),n!==c?(Ta=t,t=r=Ct()):(Sa=t,t=c)):(Sa=t,t=c),t}function Ts(){var t,r,n,o,i,a,s,l,u,d,p,h,f,v,m;return t=Sa,r=Sa,(n=bs())!==c?(58===e.charCodeAt(Sa)?(o=V,Sa++):(o=c,Ia(H)),o!==c&&(i=bs())!==c?(58===e.charCodeAt(Sa)?(a=V,Sa++):(a=c,Ia(H)),a!==c&&(s=bs())!==c?(58===e.charCodeAt(Sa)?(l=V,Sa++):(l=c,Ia(H)),l!==c&&(u=bs())!==c?(58===e.charCodeAt(Sa)?(d=V,Sa++):(d=c,Ia(H)),d!==c&&(p=bs())!==c?(58===e.charCodeAt(Sa)?(h=V,Sa++):(h=c,Ia(H)),h!==c&&(f=bs())!==c?(58===e.charCodeAt(Sa)?(v=V,Sa++):(v=c,Ia(H)),v!==c&&(m=ws())!==c?r=n=[n,o,i,a,s,l,u,d,p,h,f,v,m]:(Sa=r,r=c)):(Sa=r,r=c)):(Sa=r,r=c)):(Sa=r,r=c)):(Sa=r,r=c)):(Sa=r,r=c)):(Sa=r,r=c),r===c&&(r=Sa,e.substr(Sa,2)===St?(n=St,Sa+=2):(n=c,Ia(Tt)),n!==c&&(o=bs())!==c?(58===e.charCodeAt(Sa)?(i=V,Sa++):(i=c,Ia(H)),i!==c&&(a=bs())!==c?(58===e.charCodeAt(Sa)?(s=V,Sa++):(s=c,Ia(H)),s!==c&&(l=bs())!==c?(58===e.charCodeAt(Sa)?(u=V,Sa++):(u=c,Ia(H)),u!==c&&(d=bs())!==c?(58===e.charCodeAt(Sa)?(p=V,Sa++):(p=c,Ia(H)),p!==c&&(h=bs())!==c?(58===e.charCodeAt(Sa)?(f=V,Sa++):(f=c,Ia(H)),f!==c&&(v=ws())!==c?r=n=[n,o,i,a,s,l,u,d,p,h,f,v]:(Sa=r,r=c)):(Sa=r,r=c)):(Sa=r,r=c)):(Sa=r,r=c)):(Sa=r,r=c)):(Sa=r,r=c),r===c&&(r=Sa,e.substr(Sa,2)===St?(n=St,Sa+=2):(n=c,Ia(Tt)),n!==c&&(o=bs())!==c?(58===e.charCodeAt(Sa)?(i=V,Sa++):(i=c,Ia(H)),i!==c&&(a=bs())!==c?(58===e.charCodeAt(Sa)?(s=V,Sa++):(s=c,Ia(H)),s!==c&&(l=bs())!==c?(58===e.charCodeAt(Sa)?(u=V,Sa++):(u=c,Ia(H)),u!==c&&(d=bs())!==c?(58===e.charCodeAt(Sa)?(p=V,Sa++):(p=c,Ia(H)),p!==c&&(h=ws())!==c?r=n=[n,o,i,a,s,l,u,d,p,h]:(Sa=r,r=c)):(Sa=r,r=c)):(Sa=r,r=c)):(Sa=r,r=c)):(Sa=r,r=c),r===c&&(r=Sa,e.substr(Sa,2)===St?(n=St,Sa+=2):(n=c,Ia(Tt)),n!==c&&(o=bs())!==c?(58===e.charCodeAt(Sa)?(i=V,Sa++):(i=c,Ia(H)),i!==c&&(a=bs())!==c?(58===e.charCodeAt(Sa)?(s=V,Sa++):(s=c,Ia(H)),s!==c&&(l=bs())!==c?(58===e.charCodeAt(Sa)?(u=V,Sa++):(u=c,Ia(H)),u!==c&&(d=ws())!==c?r=n=[n,o,i,a,s,l,u,d]:(Sa=r,r=c)):(Sa=r,r=c)):(Sa=r,r=c)):(Sa=r,r=c),r===c&&(r=Sa,e.substr(Sa,2)===St?(n=St,Sa+=2):(n=c,Ia(Tt)),n!==c&&(o=bs())!==c?(58===e.charCodeAt(Sa)?(i=V,Sa++):(i=c,Ia(H)),i!==c&&(a=bs())!==c?(58===e.charCodeAt(Sa)?(s=V,Sa++):(s=c,Ia(H)),s!==c&&(l=ws())!==c?r=n=[n,o,i,a,s,l]:(Sa=r,r=c)):(Sa=r,r=c)):(Sa=r,r=c),r===c&&(r=Sa,e.substr(Sa,2)===St?(n=St,Sa+=2):(n=c,Ia(Tt)),n!==c&&(o=bs())!==c?(58===e.charCodeAt(Sa)?(i=V,Sa++):(i=c,Ia(H)),i!==c&&(a=ws())!==c?r=n=[n,o,i,a]:(Sa=r,r=c)):(Sa=r,r=c),r===c&&(r=Sa,e.substr(Sa,2)===St?(n=St,Sa+=2):(n=c,Ia(Tt)),n!==c&&(o=ws())!==c?r=n=[n,o]:(Sa=r,r=c),r===c&&(r=Sa,e.substr(Sa,2)===St?(n=St,Sa+=2):(n=c,Ia(Tt)),n!==c&&(o=bs())!==c?r=n=[n,o]:(Sa=r,r=c),r===c&&(r=Sa,(n=bs())!==c?(e.substr(Sa,2)===St?(o=St,Sa+=2):(o=c,Ia(Tt)),o!==c&&(i=bs())!==c?(58===e.charCodeAt(Sa)?(a=V,Sa++):(a=c,Ia(H)),a!==c&&(s=bs())!==c?(58===e.charCodeAt(Sa)?(l=V,Sa++):(l=c,Ia(H)),l!==c&&(u=bs())!==c?(58===e.charCodeAt(Sa)?(d=V,Sa++):(d=c,Ia(H)),d!==c&&(p=bs())!==c?(58===e.charCodeAt(Sa)?(h=V,Sa++):(h=c,Ia(H)),h!==c&&(f=ws())!==c?r=n=[n,o,i,a,s,l,u,d,p,h,f]:(Sa=r,r=c)):(Sa=r,r=c)):(Sa=r,r=c)):(Sa=r,r=c)):(Sa=r,r=c)):(Sa=r,r=c),r===c&&(r=Sa,(n=bs())!==c?(o=Sa,58===e.charCodeAt(Sa)?(i=V,Sa++):(i=c,Ia(H)),i!==c&&(a=bs())!==c?o=i=[i,a]:(Sa=o,o=c),o===c&&(o=null),o!==c?(e.substr(Sa,2)===St?(i=St,Sa+=2):(i=c,Ia(Tt)),i!==c&&(a=bs())!==c?(58===e.charCodeAt(Sa)?(s=V,Sa++):(s=c,Ia(H)),s!==c&&(l=bs())!==c?(58===e.charCodeAt(Sa)?(u=V,Sa++):(u=c,Ia(H)),u!==c&&(d=bs())!==c?(58===e.charCodeAt(Sa)?(p=V,Sa++):(p=c,Ia(H)),p!==c&&(h=ws())!==c?r=n=[n,o,i,a,s,l,u,d,p,h]:(Sa=r,r=c)):(Sa=r,r=c)):(Sa=r,r=c)):(Sa=r,r=c)):(Sa=r,r=c)):(Sa=r,r=c),r===c&&(r=Sa,(n=bs())!==c?(o=Sa,58===e.charCodeAt(Sa)?(i=V,Sa++):(i=c,Ia(H)),i!==c&&(a=bs())!==c?o=i=[i,a]:(Sa=o,o=c),o===c&&(o=null),o!==c?(i=Sa,58===e.charCodeAt(Sa)?(a=V,Sa++):(a=c,Ia(H)),a!==c&&(s=bs())!==c?i=a=[a,s]:(Sa=i,i=c),i===c&&(i=null),i!==c?(e.substr(Sa,2)===St?(a=St,Sa+=2):(a=c,Ia(Tt)),a!==c&&(s=bs())!==c?(58===e.charCodeAt(Sa)?(l=V,Sa++):(l=c,Ia(H)),l!==c&&(u=bs())!==c?(58===e.charCodeAt(Sa)?(d=V,Sa++):(d=c,Ia(H)),d!==c&&(p=ws())!==c?r=n=[n,o,i,a,s,l,u,d,p]:(Sa=r,r=c)):(Sa=r,r=c)):(Sa=r,r=c)):(Sa=r,r=c)):(Sa=r,r=c)):(Sa=r,r=c),r===c&&(r=Sa,(n=bs())!==c?(o=Sa,58===e.charCodeAt(Sa)?(i=V,Sa++):(i=c,Ia(H)),i!==c&&(a=bs())!==c?o=i=[i,a]:(Sa=o,o=c),o===c&&(o=null),o!==c?(i=Sa,58===e.charCodeAt(Sa)?(a=V,Sa++):(a=c,Ia(H)),a!==c&&(s=bs())!==c?i=a=[a,s]:(Sa=i,i=c),i===c&&(i=null),i!==c?(a=Sa,58===e.charCodeAt(Sa)?(s=V,Sa++):(s=c,Ia(H)),s!==c&&(l=bs())!==c?a=s=[s,l]:(Sa=a,a=c),a===c&&(a=null),a!==c?(e.substr(Sa,2)===St?(s=St,Sa+=2):(s=c,Ia(Tt)),s!==c&&(l=bs())!==c?(58===e.charCodeAt(Sa)?(u=V,Sa++):(u=c,Ia(H)),u!==c&&(d=ws())!==c?r=n=[n,o,i,a,s,l,u,d]:(Sa=r,r=c)):(Sa=r,r=c)):(Sa=r,r=c)):(Sa=r,r=c)):(Sa=r,r=c)):(Sa=r,r=c),r===c&&(r=Sa,(n=bs())!==c?(o=Sa,58===e.charCodeAt(Sa)?(i=V,Sa++):(i=c,Ia(H)),i!==c&&(a=bs())!==c?o=i=[i,a]:(Sa=o,o=c),o===c&&(o=null),o!==c?(i=Sa,58===e.charCodeAt(Sa)?(a=V,Sa++):(a=c,Ia(H)),a!==c&&(s=bs())!==c?i=a=[a,s]:(Sa=i,i=c),i===c&&(i=null),i!==c?(a=Sa,58===e.charCodeAt(Sa)?(s=V,Sa++):(s=c,Ia(H)),s!==c&&(l=bs())!==c?a=s=[s,l]:(Sa=a,a=c),a===c&&(a=null),a!==c?(s=Sa,58===e.charCodeAt(Sa)?(l=V,Sa++):(l=c,Ia(H)),l!==c&&(u=bs())!==c?s=l=[l,u]:(Sa=s,s=c),s===c&&(s=null),s!==c?(e.substr(Sa,2)===St?(l=St,Sa+=2):(l=c,Ia(Tt)),l!==c&&(u=ws())!==c?r=n=[n,o,i,a,s,l,u]:(Sa=r,r=c)):(Sa=r,r=c)):(Sa=r,r=c)):(Sa=r,r=c)):(Sa=r,r=c)):(Sa=r,r=c),r===c&&(r=Sa,(n=bs())!==c?(o=Sa,58===e.charCodeAt(Sa)?(i=V,Sa++):(i=c,Ia(H)),i!==c&&(a=bs())!==c?o=i=[i,a]:(Sa=o,o=c),o===c&&(o=null),o!==c?(i=Sa,58===e.charCodeAt(Sa)?(a=V,Sa++):(a=c,Ia(H)),a!==c&&(s=bs())!==c?i=a=[a,s]:(Sa=i,i=c),i===c&&(i=null),i!==c?(a=Sa,58===e.charCodeAt(Sa)?(s=V,Sa++):(s=c,Ia(H)),s!==c&&(l=bs())!==c?a=s=[s,l]:(Sa=a,a=c),a===c&&(a=null),a!==c?(s=Sa,58===e.charCodeAt(Sa)?(l=V,Sa++):(l=c,Ia(H)),l!==c&&(u=bs())!==c?s=l=[l,u]:(Sa=s,s=c),s===c&&(s=null),s!==c?(l=Sa,58===e.charCodeAt(Sa)?(u=V,Sa++):(u=c,Ia(H)),u!==c&&(d=bs())!==c?l=u=[u,d]:(Sa=l,l=c),l===c&&(l=null),l!==c?(e.substr(Sa,2)===St?(u=St,Sa+=2):(u=c,Ia(Tt)),u!==c&&(d=bs())!==c?r=n=[n,o,i,a,s,l,u,d]:(Sa=r,r=c)):(Sa=r,r=c)):(Sa=r,r=c)):(Sa=r,r=c)):(Sa=r,r=c)):(Sa=r,r=c)):(Sa=r,r=c),r===c&&(r=Sa,(n=bs())!==c?(o=Sa,58===e.charCodeAt(Sa)?(i=V,Sa++):(i=c,Ia(H)),i!==c&&(a=bs())!==c?o=i=[i,a]:(Sa=o,o=c),o===c&&(o=null),o!==c?(i=Sa,58===e.charCodeAt(Sa)?(a=V,Sa++):(a=c,Ia(H)),a!==c&&(s=bs())!==c?i=a=[a,s]:(Sa=i,i=c),i===c&&(i=null),i!==c?(a=Sa,58===e.charCodeAt(Sa)?(s=V,Sa++):(s=c,Ia(H)),s!==c&&(l=bs())!==c?a=s=[s,l]:(Sa=a,a=c),a===c&&(a=null),a!==c?(s=Sa,58===e.charCodeAt(Sa)?(l=V,Sa++):(l=c,Ia(H)),l!==c&&(u=bs())!==c?s=l=[l,u]:(Sa=s,s=c),s===c&&(s=null),s!==c?(l=Sa,58===e.charCodeAt(Sa)?(u=V,Sa++):(u=c,Ia(H)),u!==c&&(d=bs())!==c?l=u=[u,d]:(Sa=l,l=c),l===c&&(l=null),l!==c?(u=Sa,58===e.charCodeAt(Sa)?(d=V,Sa++):(d=c,Ia(H)),d!==c&&(p=bs())!==c?u=d=[d,p]:(Sa=u,u=c),u===c&&(u=null),u!==c?(e.substr(Sa,2)===St?(d=St,Sa+=2):(d=c,Ia(Tt)),d!==c?r=n=[n,o,i,a,s,l,u,d]:(Sa=r,r=c)):(Sa=r,r=c)):(Sa=r,r=c)):(Sa=r,r=c)):(Sa=r,r=c)):(Sa=r,r=c)):(Sa=r,r=c)):(Sa=r,r=c))))))))))))))),r!==c&&(Ta=t,r=bt()),r}function bs(){var e,t,r,n,o;return e=Sa,(t=Ua())!==c?((r=Ua())===c&&(r=null),r!==c?((n=Ua())===c&&(n=null),n!==c?((o=Ua())===c&&(o=null),o!==c?e=t=[t,r,n,o]:(Sa=e,e=c)):(Sa=e,e=c)):(Sa=e,e=c)):(Sa=e,e=c),e}function ws(){var t,r,n,o;return t=Sa,(r=bs())!==c?(58===e.charCodeAt(Sa)?(n=V,Sa++):(n=c,Ia(H)),n!==c&&(o=bs())!==c?t=r=[r,n,o]:(Sa=t,t=c)):(Sa=t,t=c),t===c&&(t=Es()),t}function Es(){var t,r,n,o;return t=Sa,As()!==c?(46===e.charCodeAt(Sa)?(r=ee,Sa++):(r=c,Ia(te)),r!==c&&As()!==c?(46===e.charCodeAt(Sa)?(n=ee,Sa++):(n=c,Ia(te)),n!==c&&As()!==c?(46===e.charCodeAt(Sa)?(o=ee,Sa++):(o=c,Ia(te)),o!==c&&As()!==c?(Ta=t,t=wt()):(Sa=t,t=c)):(Sa=t,t=c)):(Sa=t,t=c)):(Sa=t,t=c),t}function As(){var t,r,n,o;return t=Sa,e.substr(Sa,2)===Et?(r=Et,Sa+=2):(r=c,Ia(At)),r!==c?(_t.test(e.charAt(Sa))?(n=e.charAt(Sa),Sa++):(n=c,Ia(Nt)),n!==c?t=r=[r,n]:(Sa=t,t=c)):(Sa=t,t=c),t===c&&(t=Sa,50===e.charCodeAt(Sa)?(r=kt,Sa++):(r=c,Ia(Rt)),r!==c?(xt.test(e.charAt(Sa))?(n=e.charAt(Sa),Sa++):(n=c,Ia(It)),n!==c&&(o=Oa())!==c?t=r=[r,n,o]:(Sa=t,t=c)):(Sa=t,t=c),t===c&&(t=Sa,49===e.charCodeAt(Sa)?(r=Dt,Sa++):(r=c,Ia(Ot)),r!==c&&(n=Oa())!==c&&(o=Oa())!==c?t=r=[r,n,o]:(Sa=t,t=c),t===c&&(t=Sa,Mt.test(e.charAt(Sa))?(r=e.charAt(Sa),Sa++):(r=c,Ia(Ut)),r!==c&&(n=Oa())!==c?t=r=[r,n]:(Sa=t,t=c),t===c&&(t=Oa())))),t}function _s(){var e,t,r,n,o,i,a;return e=Sa,t=Sa,(r=Oa())===c&&(r=null),r!==c?((n=Oa())===c&&(n=null),n!==c?((o=Oa())===c&&(o=null),o!==c?((i=Oa())===c&&(i=null),i!==c?((a=Oa())===c&&(a=null),a!==c?t=r=[r,n,o,i,a]:(Sa=t,t=c)):(Sa=t,t=c)):(Sa=t,t=c)):(Sa=t,t=c)):(Sa=t,t=c),t!==c&&(Ta=e,t=Vt(t)),t}function Ns(){var t,r,n,o;return r=Sa,e.substr(Sa,10).toLowerCase()===Ht?(n=e.substr(Sa,10),Sa+=10):(n=c,Ia(Pt)),n!==c?(e.substr(Sa,3).toLowerCase()===zt?(o=e.substr(Sa,3),Sa+=3):(o=c,Ia(Bt)),o===c&&(e.substr(Sa,3).toLowerCase()===Lt?(o=e.substr(Sa,3),Sa+=3):(o=c,Ia(qt)),o===c&&(e.substr(Sa,4).toLowerCase()===jt?(o=e.substr(Sa,4),Sa+=4):(o=c,Ia(Ft)),o===c&&(e.substr(Sa,3).toLowerCase()===Gt?(o=e.substr(Sa,3),Sa+=3):(o=c,Ia(Kt)),o===c&&(o=Ya())))),o!==c?(Ta=r,r=n=$t(o)):(Sa=r,r=c)):(Sa=r,r=c),(t=r)===c&&(t=function(){var t,r,n;return t=Sa,e.substr(Sa,5).toLowerCase()===Wt?(r=e.substr(Sa,5),Sa+=5):(r=c,Ia(Jt)),r!==c?(e.substr(Sa,5).toLowerCase()===Yt?(n=e.substr(Sa,5),Sa+=5):(n=c,Ia(Qt)),n===c&&(e.substr(Sa,2).toLowerCase()===Zt?(n=e.substr(Sa,2),Sa+=2):(n=c,Ia(Xt)),n===c&&(n=Ya())),n!==c?(Ta=t,t=r=er(n)):(Sa=t,t=c)):(Sa=t,t=c),t}())===c&&(t=function(){var t,r,n;return t=Sa,e.substr(Sa,7).toLowerCase()===tr?(r=e.substr(Sa,7),Sa+=7):(r=c,Ia(rr)),r!==c&&(n=Bs())!==c?(Ta=t,t=r=nr(n)):(Sa=t,t=c),t}())===c&&(t=function(){var t,r,n;return t=Sa,e.substr(Sa,4).toLowerCase()===or?(r=e.substr(Sa,4),Sa+=4):(r=c,Ia(ir)),r!==c&&(n=pl())!==c?(Ta=t,t=r=ar(n)):(Sa=t,t=c),t}())===c&&(t=function(){var t,r,n;return t=Sa,e.substr(Sa,6).toLowerCase()===sr?(r=e.substr(Sa,6),Sa+=6):(r=c,Ia(lr)),r!==c&&(n=gs())!==c?(Ta=t,t=r=cr(n)):(Sa=t,t=c),t}())===c&&(t=function(){var t,r,n,o,i;return t=Sa,e.substr(Sa,2).toLowerCase()===ur?(r=e.substr(Sa,2),Sa+=2):(r=c,Ia(dr)),r!==c?(n=Sa,61===e.charCodeAt(Sa)?(o=q,Sa++):(o=c,Ia(j)),o!==c&&(i=Ya())!==c?n=o=[o,i]:(Sa=n,n=c),n===c&&(n=null),n!==c?(Ta=t,t=r=pr()):(Sa=t,t=c)):(Sa=t,t=c),t}())===c&&(t=function(){var t,r,n,o,i;return t=Sa,(r=function(){var t,r,n;if(t=Sa,r=[],(n=ks())!==c)for(;n!==c;)r.push(n),n=ks();else r=c;return r!==c?e.substring(t,Sa):r}())!==c?(n=Sa,61===e.charCodeAt(Sa)?(o=q,Sa++):(o=c,Ia(j)),o!==c&&(i=function(){var t,r,n;if(t=Sa,r=[],(n=ks())!==c)for(;n!==c;)r.push(n),n=ks();else r=c;return r!==c?e.substring(t,Sa):r}())!==c?n=o=[o,i]:(Sa=n,n=c),n===c&&(n=null),n!==c?(Ta=t,t=r=hr(r,n)):(Sa=t,t=c)):(Sa=t,t=c),t}()),t}function ks(){var t,r;return 91===e.charCodeAt(Sa)?(r=xe,Sa++):(r=c,Ia(Ie)),r===c&&(93===e.charCodeAt(Sa)?(r=De,Sa++):(r=c,Ia(Oe)),r===c&&(47===e.charCodeAt(Sa)?(r=D,Sa++):(r=c,Ia(O)),r===c&&(58===e.charCodeAt(Sa)?(r=V,Sa++):(r=c,Ia(H)),r===c&&(38===e.charCodeAt(Sa)?(r=B,Sa++):(r=c,Ia(L)),r===c&&(43===e.charCodeAt(Sa)?(r=F,Sa++):(r=c,Ia(G)),r===c&&(36===e.charCodeAt(Sa)?(r=K,Sa++):(r=c,Ia($)))))))),(t=r)===c&&(t=ja())===c&&(t=Ga()),t}function Rs(){var t,r,n,o;return t=Sa,(r=function(){var e,t;if(e=[],(t=xs())===c&&(t=ja())===c&&(t=Ga()),t!==c)for(;t!==c;)e.push(t),(t=xs())===c&&(t=ja())===c&&(t=Ga());else e=c;return e}())!==c?(61===e.charCodeAt(Sa)?(n=q,Sa++):(n=c,Ia(j)),n!==c&&(o=function(){var e,t;for(e=[],(t=xs())===c&&(t=ja())===c&&(t=Ga());t!==c;)e.push(t),(t=xs())===c&&(t=ja())===c&&(t=Ga());return e}())!==c?(Ta=t,t=r=fr(r,o)):(Sa=t,t=c)):(Sa=t,t=c),t}function xs(){var t;return 91===e.charCodeAt(Sa)?(t=xe,Sa++):(t=c,Ia(Ie)),t===c&&(93===e.charCodeAt(Sa)?(t=De,Sa++):(t=c,Ia(Oe)),t===c&&(47===e.charCodeAt(Sa)?(t=D,Sa++):(t=c,Ia(O)),t===c&&(63===e.charCodeAt(Sa)?(t=M,Sa++):(t=c,Ia(U)),t===c&&(58===e.charCodeAt(Sa)?(t=V,Sa++):(t=c,Ia(H)),t===c&&(43===e.charCodeAt(Sa)?(t=F,Sa++):(t=c,Ia(G)),t===c&&(36===e.charCodeAt(Sa)?(t=K,Sa++):(t=c,Ia($)))))))),t}function Is(){var e,t,r,n,o,i,a,s,l,u,d,p,h;return t=Sa,(r=zs())!==c&&(n=za())!==c&&(s=Sa,u=Sa,(d=Oa())!==c&&(p=Oa())!==c&&(h=Oa())!==c?u=d=[d,p,h]:(Sa=u,u=c),(l=u)!==c&&(Ta=s,l=qr(l)),(o=l)!==c)&&(i=za())!==c&&(a=function(){var e,t,r;for(e=Sa,t=[],(r=qa())===c&&(r=ja())===c&&(r=Ga())===c&&(r=Wa())===c&&(r=Ja())===c&&(r=za())===c&&(r=Ba());r!==c;)t.push(r),(r=qa())===c&&(r=ja())===c&&(r=Ga())===c&&(r=Wa())===c&&(r=Ja())===c&&(r=za())===c&&(r=Ba());return t!==c&&(Ta=e,t=jr()),t}())!==c?t=r=[r,n,o,i,a]:(Sa=t,t=c),(e=t)===c&&(e=function(){var e,t,r,n,o,i;return e=Sa,(t=Bs())!==c&&(r=za())!==c&&(n=function(){var e;return(e=ps())===c&&(e=Ds()),e}())!==c&&(o=za())!==c&&(i=zs())!==c?e=t=[t,r,n,o,i]:(Sa=e,e=c),e}()),e}function Ds(){var t,r,n,o,i,a,s,l,u,d,p,h,f,v,m,g,y;return t=Sa,function(){var t,r,n,o,i;if(t=Sa,r=Sa,(n=Ma())!==c){for(o=[],(i=Ma())===c&&(i=Oa())===c&&(43===e.charCodeAt(Sa)?(i=F,Sa++):(i=c,Ia(G)),i===c&&(45===e.charCodeAt(Sa)?(i=Y,Sa++):(i=c,Ia(Q)),i===c&&(46===e.charCodeAt(Sa)?(i=ee,Sa++):(i=c,Ia(te)))));i!==c;)o.push(i),(i=Ma())===c&&(i=Oa())===c&&(43===e.charCodeAt(Sa)?(i=F,Sa++):(i=c,Ia(G)),i===c&&(45===e.charCodeAt(Sa)?(i=Y,Sa++):(i=c,Ia(Q)),i===c&&(46===e.charCodeAt(Sa)?(i=ee,Sa++):(i=c,Ia(te)))));o!==c?r=n=[n,o]:(Sa=r,r=c)}else Sa=r,r=c;return r!==c&&(Ta=t,r=yr()),r}()!==c?(58===e.charCodeAt(Sa)?(r=V,Sa++):(r=c,Ia(H)),r!==c?(o=Sa,u=Sa,e.substr(Sa,2)===mr?(d=mr,Sa+=2):(d=c,Ia(gr)),d!==c&&(v=Sa,m=Sa,(g=fs())!==c?(64===e.charCodeAt(Sa)?(y=P,Sa++):(y=c,Ia(z)),y!==c?m=g=[g,y]:(Sa=m,m=c)):(Sa=m,m=c),m===c&&(m=null),m!==c&&(g=ms())!==c?v=m=[m,g]:(Sa=v,v=c),v===c&&(v=null),(f=v)===c&&(f=Ps()),(p=f)!==c)?((h=Os())===c&&(h=null),h!==c?u=d=[d,p,h]:(Sa=u,u=c)):(Sa=u,u=c),(i=u)===c&&(i=Os()),i!==c?(a=Sa,63===e.charCodeAt(Sa)?(s=M,Sa++):(s=c,Ia(U)),s!==c&&(l=function(){var e,t;for(e=[],t=Ms();t!==c;)e.push(t),t=Ms();return e}())!==c?a=s=[s,l]:(Sa=a,a=c),a===c&&(a=null),a!==c?o=i=[i,a]:(Sa=o,o=c)):(Sa=o,o=c),(n=o)===c&&(n=function(){var t,r,n,o;if(t=Sa,(r=function(){var t;return(t=ja())===c&&(t=Ga())===c&&(59===e.charCodeAt(Sa)?(t=x,Sa++):(t=c,Ia(I)),t===c&&(63===e.charCodeAt(Sa)?(t=M,Sa++):(t=c,Ia(U)),t===c&&(58===e.charCodeAt(Sa)?(t=V,Sa++):(t=c,Ia(H)),t===c&&(64===e.charCodeAt(Sa)?(t=P,Sa++):(t=c,Ia(z)),t===c&&(38===e.charCodeAt(Sa)?(t=B,Sa++):(t=c,Ia(L)),t===c&&(61===e.charCodeAt(Sa)?(t=q,Sa++):(t=c,Ia(j)),t===c&&(43===e.charCodeAt(Sa)?(t=F,Sa++):(t=c,Ia(G)),t===c&&(36===e.charCodeAt(Sa)?(t=K,Sa++):(t=c,Ia($)),t===c&&(44===e.charCodeAt(Sa)?(t=W,Sa++):(t=c,Ia(J))))))))))),t}())!==c){for(n=[],o=Ms();o!==c;)n.push(o),o=Ms();n!==c?t=r=[r,n]:(Sa=t,t=c)}else Sa=t,t=c;return t}()),n!==c?(Ta=t,t=vr()):(Sa=t,t=c)):(Sa=t,t=c)):(Sa=t,t=c),t}function Os(){var t,r,n;return t=Sa,47===e.charCodeAt(Sa)?(r=D,Sa++):(r=c,Ia(O)),r!==c&&(n=function(){var t,r,n,o,i,a;if(t=Sa,(r=Us())!==c){for(n=[],o=Sa,47===e.charCodeAt(Sa)?(i=D,Sa++):(i=c,Ia(O)),i!==c&&(a=Us())!==c?o=i=[i,a]:(Sa=o,o=c);o!==c;)n.push(o),o=Sa,47===e.charCodeAt(Sa)?(i=D,Sa++):(i=c,Ia(O)),i!==c&&(a=Us())!==c?o=i=[i,a]:(Sa=o,o=c);n!==c?t=r=[r,n]:(Sa=t,t=c)}else Sa=t,t=c;return t}())!==c?t=r=[r,n]:(Sa=t,t=c),t}function Ms(){var e;return(e=qa())===c&&(e=ja())===c&&(e=Ga()),e}function Us(){var t,r,n,o,i,a;for(t=Sa,r=[],n=Hs();n!==c;)r.push(n),n=Hs();if(r!==c){for(n=[],o=Sa,59===e.charCodeAt(Sa)?(i=x,Sa++):(i=c,Ia(I)),i!==c&&(a=Vs())!==c?o=i=[i,a]:(Sa=o,o=c);o!==c;)n.push(o),o=Sa,59===e.charCodeAt(Sa)?(i=x,Sa++):(i=c,Ia(I)),i!==c&&(a=Vs())!==c?o=i=[i,a]:(Sa=o,o=c);n!==c?t=r=[r,n]:(Sa=t,t=c)}else Sa=t,t=c;return t}function Vs(){var e,t;for(e=[],t=Hs();t!==c;)e.push(t),t=Hs();return e}function Hs(){var t;return(t=ja())===c&&(t=Ga())===c&&(58===e.charCodeAt(Sa)?(t=V,Sa++):(t=c,Ia(H)),t===c&&(64===e.charCodeAt(Sa)?(t=P,Sa++):(t=c,Ia(z)),t===c&&(38===e.charCodeAt(Sa)?(t=B,Sa++):(t=c,Ia(L)),t===c&&(61===e.charCodeAt(Sa)?(t=q,Sa++):(t=c,Ia(j)),t===c&&(43===e.charCodeAt(Sa)?(t=F,Sa++):(t=c,Ia(G)),t===c&&(36===e.charCodeAt(Sa)?(t=K,Sa++):(t=c,Ia($)),t===c&&(44===e.charCodeAt(Sa)?(t=W,Sa++):(t=c,Ia(J))))))))),t}function Ps(){var t,r;if(t=[],(r=ja())===c&&(r=Ga())===c&&(36===e.charCodeAt(Sa)?(r=K,Sa++):(r=c,Ia($)),r===c&&(44===e.charCodeAt(Sa)?(r=W,Sa++):(r=c,Ia(J)),r===c&&(59===e.charCodeAt(Sa)?(r=x,Sa++):(r=c,Ia(I)),r===c&&(58===e.charCodeAt(Sa)?(r=V,Sa++):(r=c,Ia(H)),r===c&&(64===e.charCodeAt(Sa)?(r=P,Sa++):(r=c,Ia(z)),r===c&&(38===e.charCodeAt(Sa)?(r=B,Sa++):(r=c,Ia(L)),r===c&&(61===e.charCodeAt(Sa)?(r=q,Sa++):(r=c,Ia(j)),r===c&&(43===e.charCodeAt(Sa)?(r=F,Sa++):(r=c,Ia(G)))))))))),r!==c)for(;r!==c;)t.push(r),(r=ja())===c&&(r=Ga())===c&&(36===e.charCodeAt(Sa)?(r=K,Sa++):(r=c,Ia($)),r===c&&(44===e.charCodeAt(Sa)?(r=W,Sa++):(r=c,Ia(J)),r===c&&(59===e.charCodeAt(Sa)?(r=x,Sa++):(r=c,Ia(I)),r===c&&(58===e.charCodeAt(Sa)?(r=V,Sa++):(r=c,Ia(H)),r===c&&(64===e.charCodeAt(Sa)?(r=P,Sa++):(r=c,Ia(z)),r===c&&(38===e.charCodeAt(Sa)?(r=B,Sa++):(r=c,Ia(L)),r===c&&(61===e.charCodeAt(Sa)?(r=q,Sa++):(r=c,Ia(j)),r===c&&(43===e.charCodeAt(Sa)?(r=F,Sa++):(r=c,Ia(G))))))))));else t=c;return t}function zs(){var t,r,n,o,i,a,s;if(t=Sa,e.substr(Sa,3).toLowerCase()===lt?(r=e.substr(Sa,3),Sa+=3):(r=c,Ia(Cr)),r!==c)if(47===e.charCodeAt(Sa)?(n=D,Sa++):(n=c,Ia(O)),n!==c){if(o=[],(i=Oa())!==c)for(;i!==c;)o.push(i),i=Oa();else o=c;if(o!==c)if(46===e.charCodeAt(Sa)?(i=ee,Sa++):(i=c,Ia(te)),i!==c){if(a=[],(s=Oa())!==c)for(;s!==c;)a.push(s),s=Oa();else a=c;a!==c?(Ta=t,t=r=Sr()):(Sa=t,t=c)}else Sa=t,t=c;else Sa=t,t=c}else Sa=t,t=c;else Sa=t,t=c;return t}function Bs(){var t,r,n;return t=Sa,e.substr(Sa,6)===Tr?(n=Tr,Sa+=6):(n=c,Ia(br)),(r=n)===c&&(r=function(){var t;return e.substr(Sa,3)===wr?(t=wr,Sa+=3):(t=c,Ia(Er)),t}())===c&&(r=function(){var t;return e.substr(Sa,7)===Ar?(t=Ar,Sa+=7):(t=c,Ia(_r)),t}())===c&&(r=function(){var t;return e.substr(Sa,3)===Nr?(t=Nr,Sa+=3):(t=c,Ia(kr)),t}())===c&&(r=function(){var t;return e.substr(Sa,6)===Rr?(t=Rr,Sa+=6):(t=c,Ia(xr)),t}())===c&&(r=function(){var t;return e.substr(Sa,8)===Ir?(t=Ir,Sa+=8):(t=c,Ia(Dr)),t}())===c&&(r=function(){var t;return e.substr(Sa,9)===Or?(t=Or,Sa+=9):(t=c,Ia(Mr)),t}())===c&&(r=function(){var t;return e.substr(Sa,7)===zr?(t=zr,Sa+=7):(t=c,Ia(Br)),t}())===c&&(r=function(){var t;return e.substr(Sa,6)===Ur?(t=Ur,Sa+=6):(t=c,Ia(Vr)),t}())===c&&(r=function(){var t;return e.substr(Sa,5)===Hr?(t=Hr,Sa+=5):(t=c,Ia(Pr)),t}())===c&&(r=Ya()),r!==c&&(Ta=t,r=Lr()),r}function Ls(){var t,r,n,o;return t=Sa,Za()!==c?(r=Sa,64===e.charCodeAt(Sa)?(n=P,Sa++):(n=c,Ia(z)),n!==c&&(o=Za())!==c?r=n=[n,o]:(Sa=r,r=c),r===c&&(r=null),r!==c?(Ta=t,t=Fr()):(Sa=t,t=c)):(Sa=t,t=c),t}function qs(){var t,r,n,o,i,a,s,l,u;if(t=Sa,l=Sa,$a()!==c?(42===e.charCodeAt(Sa)?(u=ae,Sa++):(u=c,Ia(se)),u!==c&&$a()!==c?(Ta=l,l=Pe()):(Sa=l,l=c)):(Sa=l,l=c),(r=l)===c)if(r=Sa,(n=js())!==c){for(o=[],i=Sa,(a=ns())!==c&&(s=js())!==c?i=a=[a,s]:(Sa=i,i=c);i!==c;)o.push(i),i=Sa,(a=ns())!==c&&(s=js())!==c?i=a=[a,s]:(Sa=i,i=c);o!==c?r=n=[n,o]:(Sa=r,r=c)}else Sa=r,r=c;return r!==c&&(Ta=t,r=Gr()),r}function js(){var e,t,r,n,o,i;if(e=Sa,(t=ds())===c&&(t=Fs()),t!==c){for(r=[],n=Sa,(o=os())!==c&&(i=Ks())!==c?n=o=[o,i]:(Sa=n,n=c);n!==c;)r.push(n),n=Sa,(o=os())!==c&&(i=Ks())!==c?n=o=[o,i]:(Sa=n,n=c);r!==c?(Ta=e,e=t=Kr()):(Sa=e,e=c)}else Sa=e,e=c;return e}function Fs(){var e,t,r,n,o;return e=Sa,(t=Gs())===c&&(t=null),t!==c&&(r=rs())!==c&&(n=ps())!==c&&(o=ts())!==c?e=t=[t,r,n,o]:(Sa=e,e=c),e}function Gs(){var e,t,r,n,o,i,a;if(e=Sa,t=Sa,(r=Ya())!==c){for(n=[],o=Sa,(i=Ka())!==c&&(a=Ya())!==c?o=i=[i,a]:(Sa=o,o=c);o!==c;)n.push(o),o=Sa,(i=Ka())!==c&&(a=Ya())!==c?o=i=[i,a]:(Sa=o,o=c);n!==c?t=r=[r,n]:(Sa=t,t=c)}else Sa=t,t=c;return t===c&&(t=ss()),t!==c&&(Ta=e,t=$r(t)),t}function Ks(){var t,r,n,o,i,a,s,l,u,d,p;return r=Sa,e.substr(Sa,1).toLowerCase()===Wr?(n=e.charAt(Sa),Sa++):(n=c,Ia(Jr)),n!==c&&es()!==c&&(i=Sa,48===e.charCodeAt(Sa)?(a=tn,Sa++):(a=c,Ia(rn)),a!==c?(s=Sa,46===e.charCodeAt(Sa)?(l=ee,Sa++):(l=c,Ia(te)),l!==c?((u=Oa())===c&&(u=null),u!==c?((d=Oa())===c&&(d=null),d!==c?((p=Oa())===c&&(p=null),p!==c?s=l=[l,u,d,p]:(Sa=s,s=c)):(Sa=s,s=c)):(Sa=s,s=c)):(Sa=s,s=c),s===c&&(s=null),s!==c?(Ta=i,i=a=nn()):(Sa=i,i=c)):(Sa=i,i=c),(o=i)!==c)?(Ta=r,r=n=Yr(o)):(Sa=r,r=c),(t=r)===c&&(t=function(){var t,r,n;return t=Sa,e.substr(Sa,7).toLowerCase()===Qr?(r=e.substr(Sa,7),Sa+=7):(r=c,Ia(Zr)),r!==c&&es()!==c&&(n=$s())!==c?(Ta=t,t=r=Xr(n)):(Sa=t,t=c),t}())===c&&(t=Ws()),t}function $s(){var e,t,r;if(e=Sa,t=[],(r=Oa())!==c)for(;r!==c;)t.push(r),r=Oa();else t=c;return t!==c&&(Ta=e,t=en(t)),t}function Ws(){var e,t,r,n,o,i;return e=Sa,(t=Ya())!==c?(r=Sa,(n=es())!==c&&((i=Ya())===c&&(i=gs())===c&&(i=ss()),(o=i)!==c)?r=n=[n,o]:(Sa=r,r=c),r===c&&(r=null),r!==c?(Ta=e,e=t=on(t,r)):(Sa=e,e=c)):(Sa=e,e=c),e}function Js(){var t,r,n,o,i;return r=Sa,e.substr(Sa,8).toLowerCase()===vn?(n=e.substr(Sa,8),Sa+=8):(n=c,Ia(mn)),n!==c&&(o=es())!==c?(e.substr(Sa,8).toLowerCase()===gn?(i=e.substr(Sa,8),Sa+=8):(i=c,Ia(yn)),i===c&&(e.substr(Sa,8).toLowerCase()===Cn?(i=e.substr(Sa,8),Sa+=8):(i=c,Ia(Sn)),i===c&&(i=Ya())),i!==c?r=n=[n,o,i]:(Sa=r,r=c)):(Sa=r,r=c),(t=r)===c&&(t=Ws()),t}function Ys(){var t,r,n,o;return(t=Ya())===c&&(r=Sa,e.substr(Sa,2).toLowerCase()===Hn?(n=e.substr(Sa,2),Sa+=2):(n=c,Ia(Pn)),n!==c&&(o=Ya())!==c?r=n=[n,o]:(Sa=r,r=c),t=r),t}function Qs(){var e,t,r,n,o;return e=Sa,(t=Ya())!==c&&(r=es())!==c&&((o=Ya())===c&&(o=ss()),(n=o)!==c)?e=t=[t,r,n]:(Sa=e,e=c),e}function Zs(){var e;return(e=Xs())===c&&(e=Ws()),e}function Xs(){var t,r,n;return t=Sa,e.substr(Sa,3).toLowerCase()===qn?(r=e.substr(Sa,3),Sa+=3):(r=c,Ia(jn)),r!==c&&es()!==c&&(n=Ya())!==c?(Ta=t,t=r=Fn(n)):(Sa=t,t=c),t}function el(){var t,r,n,o,i,a,s,l;if(t=Sa,e.substr(Sa,6).toLowerCase()===$n?(r=e.substr(Sa,6),Sa+=6):(r=c,Ia(Wn)),r!==c)if((n=Ka())!==c)if((o=rl())!==c){for(i=[],a=Sa,(s=ns())!==c&&(l=rl())!==c?a=s=[s,l]:(Sa=a,a=c);a!==c;)i.push(a),a=Sa,(s=ns())!==c&&(l=rl())!==c?a=s=[s,l]:(Sa=a,a=c);i!==c?t=r=[r,n,o,i]:(Sa=t,t=c)}else Sa=t,t=c;else Sa=t,t=c;else Sa=t,t=c;return t===c&&(t=function(){var e,t,r,n,o,i,a,s;if(e=Sa,(t=Ya())!==c)if((r=Ka())!==c)if((n=tl())!==c){for(o=[],i=Sa,(a=ns())!==c&&(s=tl())!==c?i=a=[a,s]:(Sa=i,i=c);i!==c;)o.push(i),i=Sa,(a=ns())!==c&&(s=tl())!==c?i=a=[a,s]:(Sa=i,i=c);o!==c?e=t=[t,r,n,o]:(Sa=e,e=c)}else Sa=e,e=c;else Sa=e,e=c;else Sa=e,e=c;return e}()),t}function tl(){var e,t,r,n;return e=Sa,(t=Ya())!==c&&(r=es())!==c?((n=Ya())===c&&(n=ss()),n!==c?e=t=[t,r,n]:(Sa=e,e=c)):(Sa=e,e=c),e}function rl(){var t,r,n,o,i,a,s;return r=Sa,e.substr(Sa,5).toLowerCase()===Jn?(n=e.substr(Sa,5),Sa+=5):(n=c,Ia(Yn)),n!==c&&(o=es())!==c&&(a=Sa,(s=ls())!==c&&(Ta=a,s=Qn(s)),(i=s)!==c)?r=n=[n,o,i]:(Sa=r,r=c),(t=r)===c&&(t=function(){var t,r,n,o,i,a,s,l,u;if(t=Sa,e.substr(Sa,6).toLowerCase()===Zn?(r=e.substr(Sa,6),Sa+=6):(r=c,Ia(Xn)),r!==c)if((n=es())!==c)if((o=is())!==c)if((i=nl())!==c){if(a=[],s=Sa,l=[],(u=za())!==c)for(;u!==c;)l.push(u),u=za();else l=c;for(l!==c&&(u=nl())!==c?s=l=[l,u]:(Sa=s,s=c);s!==c;){if(a.push(s),s=Sa,l=[],(u=za())!==c)for(;u!==c;)l.push(u),u=za();else l=c;l!==c&&(u=nl())!==c?s=l=[l,u]:(Sa=s,s=c)}a!==c&&(s=as())!==c?t=r=[r,n,o,i,a,s]:(Sa=t,t=c)}else Sa=t,t=c;else Sa=t,t=c;else Sa=t,t=c;else Sa=t,t=c;return t}())===c&&(t=function(){var t,r,n,o;return t=Sa,e.substr(Sa,5).toLowerCase()===eo?(r=e.substr(Sa,5),Sa+=5):(r=c,Ia(to)),r!==c&&(n=es())!==c&&(o=function(){var e,t;return e=Sa,(t=ls())!==c&&(Ta=e,t=ro(t)),t}())!==c?t=r=[r,n,o]:(Sa=t,t=c),t}())===c&&(t=function(){var t,r,n;return t=Sa,e.substr(Sa,6).toLowerCase()===no?(r=e.substr(Sa,6),Sa+=6):(r=c,Ia(oo)),r!==c&&es()!==c&&(n=ls())!==c?(Ta=t,t=r=io(n)):(Sa=t,t=c),t}())===c&&(t=function(){var t,r,n,o,i;return t=Sa,e.substr(Sa,5).toLowerCase()===ao?(r=e.substr(Sa,5),Sa+=5):(r=c,Ia(so)),r!==c&&(n=es())!==c?(o=Sa,e.substr(Sa,4).toLowerCase()===lo?(i=e.substr(Sa,4),Sa+=4):(i=c,Ia(co)),i!==c&&(Ta=o,i=uo()),(o=i)===c&&(o=Sa,e.substr(Sa,5).toLowerCase()===po?(i=e.substr(Sa,5),Sa+=5):(i=c,Ia(ho)),i!==c&&(Ta=o,i=fo()),o=i),o!==c?t=r=[r,n,o]:(Sa=t,t=c)):(Sa=t,t=c),t}())===c&&(t=function(){var t,r,n;return t=Sa,e.substr(Sa,9).toLowerCase()===vo?(r=e.substr(Sa,9),Sa+=9):(r=c,Ia(mo)),r!==c&&es()!==c?(e.substr(Sa,3).toLowerCase()===go?(n=e.substr(Sa,3),Sa+=3):(n=c,Ia(yo)),n===c&&(e.substr(Sa,8).toLowerCase()===Co?(n=e.substr(Sa,8),Sa+=8):(n=c,Ia(So)),n===c&&(n=Ya())),n!==c?(Ta=t,t=r=To(n)):(Sa=t,t=c)):(Sa=t,t=c),t}())===c&&(t=function(){var t,r,n,o,i,a,s,l,u,d;if(t=Sa,e.substr(Sa,3).toLowerCase()===bo?(r=e.substr(Sa,3),Sa+=3):(r=c,Ia(wo)),r!==c)if((n=es())!==c)if((o=is())!==c){if(i=Sa,(a=ol())!==c){for(s=[],l=Sa,44===e.charCodeAt(Sa)?(u=W,Sa++):(u=c,Ia(J)),u!==c&&(d=ol())!==c?l=u=[u,d]:(Sa=l,l=c);l!==c;)s.push(l),l=Sa,44===e.charCodeAt(Sa)?(u=W,Sa++):(u=c,Ia(J)),u!==c&&(d=ol())!==c?l=u=[u,d]:(Sa=l,l=c);s!==c?i=a=[a,s]:(Sa=i,i=c)}else Sa=i,i=c;i!==c&&(a=as())!==c?t=r=[r,n,o,i,a]:(Sa=t,t=c)}else Sa=t,t=c;else Sa=t,t=c;else Sa=t,t=c;return t}())===c&&(t=tl()),t}function nl(){var e;return(e=Ds())===c&&(e=Os()),e}function ol(){var t,r;return t=Sa,e.substr(Sa,8).toLowerCase()===Eo?(r=e.substr(Sa,8),Sa+=8):(r=c,Ia(Ao)),r===c&&(e.substr(Sa,4).toLowerCase()===_o?(r=e.substr(Sa,4),Sa+=4):(r=c,Ia(No)),r===c&&(r=Ya())),r!==c&&(Ta=t,r=ko(r)),r}function il(){var e,t,r,n,o;if(e=Sa,Fs()!==c){for(t=[],r=Sa,(n=os())!==c&&(o=Ws())!==c?r=n=[n,o]:(Sa=r,r=c);r!==c;)t.push(r),r=Sa,(n=os())!==c&&(o=Ws())!==c?r=n=[n,o]:(Sa=r,r=c);t!==c?(Ta=e,e=xo()):(Sa=e,e=c)}else Sa=e,e=c;return e}function al(){var t,r,n;return t=Sa,e.substr(Sa,8).toLowerCase()===Mo?(r=e.substr(Sa,8),Sa+=8):(r=c,Ia(Uo)),r!==c&&es()!==c&&(n=Ya())!==c?(Ta=t,t=r=Vo(n)):(Sa=t,t=c),t===c&&(t=Sa,e.substr(Sa,6).toLowerCase()===Ho?(r=e.substr(Sa,6),Sa+=6):(r=c,Ia(Po)),r!==c&&es()!==c&&(n=Ya())!==c?(Ta=t,t=r=zo(n)):(Sa=t,t=c),t===c&&(t=Sa,e.substr(Sa,10).toLowerCase()===Bo?(r=e.substr(Sa,10),Sa+=10):(r=c,Ia(Lo)),r!==c&&(Ta=t,r=qo()),(t=r)===c&&(t=Ws()))),t}function sl(){var t,r,n,o;return t=Sa,e.substr(Sa,6).toLowerCase()===Xo?(r=e.substr(Sa,6),Sa+=6):(r=c,Ia(ei)),r!==c&&es()!==c&&(e.substr(Sa,11).toLowerCase()===ai?(o=e.substr(Sa,11),Sa+=11):(o=c,Ia(si)),o===c&&(e.substr(Sa,9).toLowerCase()===li?(o=e.substr(Sa,9),Sa+=9):(o=c,Ia(ci)),o===c&&(e.substr(Sa,8).toLowerCase()===ui?(o=e.substr(Sa,8),Sa+=8):(o=c,Ia(di)),o===c&&(e.substr(Sa,7).toLowerCase()===pi?(o=e.substr(Sa,7),Sa+=7):(o=c,Ia(hi)),o===c&&(e.substr(Sa,6).toLowerCase()===fi?(o=e.substr(Sa,6),Sa+=6):(o=c,Ia(vi)),o===c&&(e.substr(Sa,10).toLowerCase()===mi?(o=e.substr(Sa,10),Sa+=10):(o=c,Ia(gi)),o===c&&(e.substr(Sa,9).toLowerCase()===yi?(o=e.substr(Sa,9),Sa+=9):(o=c,Ia(Ci)),o===c&&(o=Ya()))))))),(n=o)!==c)?(Ta=t,t=r=ti(n)):(Sa=t,t=c),t===c&&(t=Sa,e.substr(Sa,7).toLowerCase()===Qr?(r=e.substr(Sa,7),Sa+=7):(r=c,Ia(Zr)),r!==c&&es()!==c&&(n=$s())!==c?(Ta=t,t=r=ri(n)):(Sa=t,t=c),t===c&&(t=Sa,e.substr(Sa,11).toLowerCase()===ni?(r=e.substr(Sa,11),Sa+=11):(r=c,Ia(oi)),r!==c&&es()!==c&&(n=$s())!==c?(Ta=t,t=r=ii(n)):(Sa=t,t=c),t===c&&(t=Ws()))),t}function ll(){var e;return(e=Xs())===c&&(e=Ws()),e}function cl(){var t,r,n,o,i,a,s,l,u,d,p,h,f,v,m,g;if(t=Sa,u=Sa,m=Sa,e.substr(Sa,3).toLowerCase()===lt?(g=e.substr(Sa,3),Sa+=3):(g=c,Ia(Cr)),g===c&&(g=Ya()),g!==c&&(Ta=m,g=Hi(g)),(d=g)!==c&&(p=Xa())!==c&&(h=Ya())!==c&&(f=Xa())!==c&&(v=dl())!==c?u=d=[d,p,h,f,v]:(Sa=u,u=c),(r=u)!==c)if((n=Ka())!==c)if((o=function(){var t,r,n,o,i;return t=Sa,(r=function(){var e,t;return e=Sa,(t=ys())===c&&(t=Es())===c&&(t=Ss()),t!==c&&(Ta=e,t=ji()),t}())!==c?(n=Sa,(o=function(){var t,r;return t=Sa,$a()!==c?(58===e.charCodeAt(Sa)?(r=V,Sa++):(r=c,Ia(H)),r!==c&&$a()!==c?(Ta=t,t=Ge()):(Sa=t,t=c)):(Sa=t,t=c),t}())!==c&&(i=function(){var e,t,r,n,o,i,a;return e=Sa,t=Sa,(r=Oa())===c&&(r=null),r!==c?((n=Oa())===c&&(n=null),n!==c?((o=Oa())===c&&(o=null),o!==c?((i=Oa())===c&&(i=null),i!==c?((a=Oa())===c&&(a=null),a!==c?t=r=[r,n,o,i,a]:(Sa=t,t=c)):(Sa=t,t=c)):(Sa=t,t=c)):(Sa=t,t=c)):(Sa=t,t=c),t!==c&&(Ta=e,t=Fi(t)),t}())!==c?n=o=[o,i]:(Sa=n,n=c),n===c&&(n=null),n!==c?t=r=[r,n]:(Sa=t,t=c)):(Sa=t,t=c),t}())!==c){for(i=[],a=Sa,(s=os())!==c&&(l=ul())!==c?a=s=[s,l]:(Sa=a,a=c);a!==c;)i.push(a),a=Sa,(s=os())!==c&&(l=ul())!==c?a=s=[s,l]:(Sa=a,a=c);i!==c?t=r=[r,n,o,i]:(Sa=t,t=c)}else Sa=t,t=c;else Sa=t,t=c;else Sa=t,t=c;return t}function ul(){var t,r,n,o;return r=Sa,e.substr(Sa,3).toLowerCase()===bi?(n=e.substr(Sa,3),Sa+=3):(n=c,Ia(wi)),n!==c&&es()!==c&&(o=pl())!==c?(Ta=r,r=n=Ei(o)):(Sa=r,r=c),(t=r)===c&&(t=function(){var t,r,n;return t=Sa,e.substr(Sa,5).toLowerCase()===Ai?(r=e.substr(Sa,5),Sa+=5):(r=c,Ia(_i)),r!==c&&es()!==c&&(n=gs())!==c?(Ta=t,t=r=Ni(n)):(Sa=t,t=c),t}())===c&&(t=function(){var t,r,n;return t=Sa,e.substr(Sa,8).toLowerCase()===ki?(r=e.substr(Sa,8),Sa+=8):(r=c,Ia(Ri)),r!==c&&es()!==c?((n=Es())===c&&(n=Ts())===c&&(n=Ss()),n!==c?(Ta=t,t=r=xi(n)):(Sa=t,t=c)):(Sa=t,t=c),t}())===c&&(t=function(){var t,r,n;return t=Sa,e.substr(Sa,6).toLowerCase()===Ii?(r=e.substr(Sa,6),Sa+=6):(r=c,Ia(Di)),r!==c&&es()!==c&&(n=Ya())!==c?(Ta=t,t=r=Oi(n)):(Sa=t,t=c),t}())===c&&(t=function(){var t,r,n,o;if(t=Sa,e.substr(Sa,5).toLowerCase()===Mi?(r=e.substr(Sa,5),Sa+=5):(r=c,Ia(Ui)),r!==c)if(es()!==c){for(n=[],o=Oa();o!==c;)n.push(o),o=Oa();n!==c?(Ta=t,t=r=Vi(n)):(Sa=t,t=c)}else Sa=t,t=c;else Sa=t,t=c;return t}())===c&&(t=Ws()),t}function dl(){var t,r;return t=Sa,e.substr(Sa,3).toLowerCase()===zt?(r=e.substr(Sa,3),Sa+=3):(r=c,Ia(Pi)),r===c&&(e.substr(Sa,3).toLowerCase()===Lt?(r=e.substr(Sa,3),Sa+=3):(r=c,Ia(zi)),r===c&&(e.substr(Sa,3).toLowerCase()===Gt?(r=e.substr(Sa,3),Sa+=3):(r=c,Ia(Bi)),r===c&&(e.substr(Sa,4).toLowerCase()===jt?(r=e.substr(Sa,4),Sa+=4):(r=c,Ia(Li)),r===c&&(r=Ya())))),r!==c&&(Ta=t,r=qi(r)),r}function pl(){var e,t,r,n,o;return e=Sa,t=Sa,(r=Oa())!==c?((n=Oa())===c&&(n=null),n!==c?((o=Oa())===c&&(o=null),o!==c?t=r=[r,n,o]:(Sa=t,t=c)):(Sa=t,t=c)):(Sa=t,t=c),t!==c&&(Ta=e,t=Gi(t)),t}function hl(){var t,r,n,o;return r=Sa,e.substr(Sa,9)===$i?(n=$i,Sa+=9):(n=c,Ia(Wi)),n!==c&&es()!==c?(e.substr(Sa,3)===Ji?(o=Ji,Sa+=3):(o=c,Ia(Yi)),o===c&&(e.substr(Sa,3)===Qi?(o=Qi,Sa+=3):(o=c,Ia(Zi))),o!==c?(Ta=r,r=n=Xi(o)):(Sa=r,r=c)):(Sa=r,r=c),(t=r)===c&&(t=Ws()),t}function fl(){var t,r,n,o,i,a,s;return t=Sa,a=Sa,(s=Es())===c&&(s=Ss())===c&&(s=Ps()),s!==c&&(Ta=a,s=aa(s)),(r=s)!==c?(n=Sa,58===e.charCodeAt(Sa)?(o=V,Sa++):(o=c,Ia(H)),o!==c&&(i=_s())!==c?n=o=[o,i]:(Sa=n,n=c),n===c&&(n=null),n!==c?t=r=[r,n]:(Sa=t,t=c)):(Sa=t,t=c),t}function vl(){var e,t,r,n,o;return e=Sa,(t=Ua())!==c&&(r=Ua())!==c&&(n=Ua())!==c&&(o=Ua())!==c?e=t=[t,r,n,o]:(Sa=e,e=c),e}function ml(){var t,r,n,o,i,a,s,l,u,d;return t=Sa,e.substr(Sa,3)===ya?(r=ya,Sa+=3):(r=c,Ia(Ca)),r!==c&&(n=es())!==c&&(i=Sa,(a=is())!==c&&(s=Fa())!==c?(64===e.charCodeAt(Sa)?(l=P,Sa++):(l=c,Ia(z)),l!==c?((u=Fa())===c&&(u=gs()),u!==c&&(d=as())!==c?i=a=[a,s,l,u,d]:(Sa=i,i=c)):(Sa=i,i=c)):(Sa=i,i=c),(o=i)!==c)?t=r=[r,n,o]:(Sa=t,t=c),t}if(t.data={},(r=d())!==c&&Sa===e.length)return r;throw r!==c&&Sa<e.length&&Ia({type:"end"}),n=Ea,o=wa<e.length?e.charAt(wa):null,l=wa<e.length?xa(wa,wa+1):xa(wa,wa),new s(s.buildMessage(n,o),n,o,l)}},function(e,t,r){var n;e.exports=(n=r(33),function(e){var t=n,r=t.lib,o=r.WordArray,i=r.Hasher,a=t.algo,s=[];!function(){for(var t=0;t<64;t++)s[t]=4294967296*e.abs(e.sin(t+1))|0}();var l=a.MD5=i.extend({_doReset:function(){this._hash=new o.init([1732584193,4023233417,2562383102,271733878])},_doProcessBlock:function(e,t){for(var r=0;r<16;r++){var n=t+r,o=e[n];e[n]=16711935&(o<<8|o>>>24)|4278255360&(o<<24|o>>>8)}var i=this._hash.words,a=e[t+0],l=e[t+1],h=e[t+2],f=e[t+3],v=e[t+4],m=e[t+5],g=e[t+6],y=e[t+7],C=e[t+8],S=e[t+9],T=e[t+10],b=e[t+11],w=e[t+12],E=e[t+13],A=e[t+14],_=e[t+15],N=i[0],k=i[1],R=i[2],x=i[3];N=c(N,k,R,x,a,7,s[0]),x=c(x,N,k,R,l,12,s[1]),R=c(R,x,N,k,h,17,s[2]),k=c(k,R,x,N,f,22,s[3]),N=c(N,k,R,x,v,7,s[4]),x=c(x,N,k,R,m,12,s[5]),R=c(R,x,N,k,g,17,s[6]),k=c(k,R,x,N,y,22,s[7]),N=c(N,k,R,x,C,7,s[8]),x=c(x,N,k,R,S,12,s[9]),R=c(R,x,N,k,T,17,s[10]),k=c(k,R,x,N,b,22,s[11]),N=c(N,k,R,x,w,7,s[12]),x=c(x,N,k,R,E,12,s[13]),R=c(R,x,N,k,A,17,s[14]),N=u(N,k=c(k,R,x,N,_,22,s[15]),R,x,l,5,s[16]),x=u(x,N,k,R,g,9,s[17]),R=u(R,x,N,k,b,14,s[18]),k=u(k,R,x,N,a,20,s[19]),N=u(N,k,R,x,m,5,s[20]),x=u(x,N,k,R,T,9,s[21]),R=u(R,x,N,k,_,14,s[22]),k=u(k,R,x,N,v,20,s[23]),N=u(N,k,R,x,S,5,s[24]),x=u(x,N,k,R,A,9,s[25]),R=u(R,x,N,k,f,14,s[26]),k=u(k,R,x,N,C,20,s[27]),N=u(N,k,R,x,E,5,s[28]),x=u(x,N,k,R,h,9,s[29]),R=u(R,x,N,k,y,14,s[30]),N=d(N,k=u(k,R,x,N,w,20,s[31]),R,x,m,4,s[32]),x=d(x,N,k,R,C,11,s[33]),R=d(R,x,N,k,b,16,s[34]),k=d(k,R,x,N,A,23,s[35]),N=d(N,k,R,x,l,4,s[36]),x=d(x,N,k,R,v,11,s[37]),R=d(R,x,N,k,y,16,s[38]),k=d(k,R,x,N,T,23,s[39]),N=d(N,k,R,x,E,4,s[40]),x=d(x,N,k,R,a,11,s[41]),R=d(R,x,N,k,f,16,s[42]),k=d(k,R,x,N,g,23,s[43]),N=d(N,k,R,x,S,4,s[44]),x=d(x,N,k,R,w,11,s[45]),R=d(R,x,N,k,_,16,s[46]),N=p(N,k=d(k,R,x,N,h,23,s[47]),R,x,a,6,s[48]),x=p(x,N,k,R,y,10,s[49]),R=p(R,x,N,k,A,15,s[50]),k=p(k,R,x,N,m,21,s[51]),N=p(N,k,R,x,w,6,s[52]),x=p(x,N,k,R,f,10,s[53]),R=p(R,x,N,k,T,15,s[54]),k=p(k,R,x,N,l,21,s[55]),N=p(N,k,R,x,C,6,s[56]),x=p(x,N,k,R,_,10,s[57]),R=p(R,x,N,k,g,15,s[58]),k=p(k,R,x,N,E,21,s[59]),N=p(N,k,R,x,v,6,s[60]),x=p(x,N,k,R,b,10,s[61]),R=p(R,x,N,k,h,15,s[62]),k=p(k,R,x,N,S,21,s[63]),i[0]=i[0]+N|0,i[1]=i[1]+k|0,i[2]=i[2]+R|0,i[3]=i[3]+x|0},_doFinalize:function(){var t=this._data,r=t.words,n=8*this._nDataBytes,o=8*t.sigBytes;r[o>>>5]|=128<<24-o%32;var i=e.floor(n/4294967296),a=n;r[15+(o+64>>>9<<4)]=16711935&(i<<8|i>>>24)|4278255360&(i<<24|i>>>8),r[14+(o+64>>>9<<4)]=16711935&(a<<8|a>>>24)|4278255360&(a<<24|a>>>8),t.sigBytes=4*(r.length+1),this._process();for(var s=this._hash,l=s.words,c=0;c<4;c++){var u=l[c];l[c]=16711935&(u<<8|u>>>24)|4278255360&(u<<24|u>>>8)}return s},clone:function(){var e=i.clone.call(this);return e._hash=this._hash.clone(),e}});function c(e,t,r,n,o,i,a){var s=e+(t&r|~t&n)+o+a;return(s<<i|s>>>32-i)+t}function u(e,t,r,n,o,i,a){var s=e+(t&n|r&~n)+o+a;return(s<<i|s>>>32-i)+t}function d(e,t,r,n,o,i,a){var s=e+(t^r^n)+o+a;return(s<<i|s>>>32-i)+t}function p(e,t,r,n,o,i,a){var s=e+(r^(t|~n))+o+a;return(s<<i|s>>>32-i)+t}t.MD5=i._createHelper(l),t.HmacMD5=i._createHmacHelper(l)}(Math),n.MD5)},function(e,t,r){var n,o,i,a,s,l,c,u,d,p,h,f,v;e.exports=(n=n||(o=Math,i=Object.create||function(){function e(){}return function(t){var r;return e.prototype=t,r=new e,e.prototype=null,r}}(),s=(a={}).lib={},l=s.Base={extend:function(e){var t=i(this);return e&&t.mixIn(e),t.hasOwnProperty("init")&&this.init!==t.init||(t.init=function(){t.$super.init.apply(this,arguments)}),t.init.prototype=t,t.$super=this,t},create:function(){var e=this.extend();return e.init.apply(e,arguments),e},init:function(){},mixIn:function(e){for(var t in e)e.hasOwnProperty(t)&&(this[t]=e[t]);e.hasOwnProperty("toString")&&(this.toString=e.toString)},clone:function(){return this.init.prototype.extend(this)}},c=s.WordArray=l.extend({init:function(e,t){e=this.words=e||[],this.sigBytes=null!=t?t:4*e.length},toString:function(e){return(e||d).stringify(this)},concat:function(e){var t=this.words,r=e.words,n=this.sigBytes,o=e.sigBytes;if(this.clamp(),n%4)for(var i=0;i<o;i++){var a=r[i>>>2]>>>24-i%4*8&255;t[n+i>>>2]|=a<<24-(n+i)%4*8}else for(i=0;i<o;i+=4)t[n+i>>>2]=r[i>>>2];return this.sigBytes+=o,this},clamp:function(){var e=this.words,t=this.sigBytes;e[t>>>2]&=4294967295<<32-t%4*8,e.length=o.ceil(t/4)},clone:function(){var e=l.clone.call(this);return e.words=this.words.slice(0),e},random:function(e){for(var t,r=[],n=function(e){var t=987654321,r=4294967295;return function(){var n=((t=36969*(65535&t)+(t>>16)&r)<<16)+(e=18e3*(65535&e)+(e>>16)&r)&r;return n/=4294967296,(n+=.5)*(o.random()>.5?1:-1)}},i=0;i<e;i+=4){var a=n(4294967296*(t||o.random()));t=987654071*a(),r.push(4294967296*a()|0)}return new c.init(r,e)}}),u=a.enc={},d=u.Hex={stringify:function(e){for(var t=e.words,r=e.sigBytes,n=[],o=0;o<r;o++){var i=t[o>>>2]>>>24-o%4*8&255;n.push((i>>>4).toString(16)),n.push((15&i).toString(16))}return n.join("")},parse:function(e){for(var t=e.length,r=[],n=0;n<t;n+=2)r[n>>>3]|=parseInt(e.substr(n,2),16)<<24-n%8*4;return new c.init(r,t/2)}},p=u.Latin1={stringify:function(e){for(var t=e.words,r=e.sigBytes,n=[],o=0;o<r;o++){var i=t[o>>>2]>>>24-o%4*8&255;n.push(String.fromCharCode(i))}return n.join("")},parse:function(e){for(var t=e.length,r=[],n=0;n<t;n++)r[n>>>2]|=(255&e.charCodeAt(n))<<24-n%4*8;return new c.init(r,t)}},h=u.Utf8={stringify:function(e){try{return decodeURIComponent(escape(p.stringify(e)))}catch(t){throw new Error("Malformed UTF-8 data")}},parse:function(e){return p.parse(unescape(encodeURIComponent(e)))}},f=s.BufferedBlockAlgorithm=l.extend({reset:function(){this._data=new c.init,this._nDataBytes=0},_append:function(e){"string"==typeof e&&(e=h.parse(e)),this._data.concat(e),this._nDataBytes+=e.sigBytes},_process:function(e){var t=this._data,r=t.words,n=t.sigBytes,i=this.blockSize,a=n/(4*i),s=(a=e?o.ceil(a):o.max((0|a)-this._minBufferSize,0))*i,l=o.min(4*s,n);if(s){for(var u=0;u<s;u+=i)this._doProcessBlock(r,u);var d=r.splice(0,s);t.sigBytes-=l}return new c.init(d,l)},clone:function(){var e=l.clone.call(this);return e._data=this._data.clone(),e},_minBufferSize:0}),s.Hasher=f.extend({cfg:l.extend(),init:function(e){this.cfg=this.cfg.extend(e),this.reset()},reset:function(){f.reset.call(this),this._doReset()},update:function(e){return this._append(e),this._process(),this},finalize:function(e){return e&&this._append(e),this._doFinalize()},blockSize:16,_createHelper:function(e){return function(t,r){return new e.init(r).finalize(t)}},_createHmacHelper:function(e){return function(t,r){return new v.HMAC.init(e,r).finalize(t)}}}),v=a.algo={},a),n)},function(e,t,r){var n,o=this&&this.__extends||(n=function(e,t){return(n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)t.hasOwnProperty(r)&&(e[r]=t[r])})(e,t)},function(e,t){function r(){this.constructor=e}n(e,t),e.prototype=null===t?Object.create(t):(r.prototype=t.prototype,new r)});Object.defineProperty(t,"__esModule",{value:!0});var i=r(3),a=r(1),s=r(0),l=r(5),c=r(2),u=function(e){function t(t,r,n){void 0===n&&(n={});var o=e.call(this)||this;if(o.C={MIN_DURATION:70,MAX_DURATION:6e3,DEFAULT_DURATION:100,MIN_INTER_TONE_GAP:50,DEFAULT_INTER_TONE_GAP:500},o.type=s.TypeStrings.DTMF,void 0===r)throw new TypeError("Not enough arguments");if(o.logger=t.ua.getLogger("sip.invitecontext.dtmf",t.id),o.owner=t,"string"==typeof r)r=r.toUpperCase();else{if("number"!=typeof r)throw new TypeError("Invalid tone: "+r);r=r.toString()}if(!r.match(/^[0-9A-D#*]$/))throw new TypeError("Invalid tone: "+r);o.tone=r;var i=n.duration,a=n.interToneGap;if(i&&!c.Utils.isDecimal(i))throw new TypeError("Invalid tone duration: "+i);if(i?i<o.C.MIN_DURATION?(o.logger.warn("'duration' value is lower than the minimum allowed, setting it to "+o.C.MIN_DURATION+" milliseconds"),i=o.C.MIN_DURATION):i>o.C.MAX_DURATION?(o.logger.warn("'duration' value is greater than the maximum allowed, setting it to "+o.C.MAX_DURATION+" milliseconds"),i=o.C.MAX_DURATION):i=Math.abs(i):i=o.C.DEFAULT_DURATION,o.duration=i,a&&!c.Utils.isDecimal(a))throw new TypeError("Invalid interToneGap: "+a);return a?a<o.C.MIN_INTER_TONE_GAP?(o.logger.warn("'interToneGap' value is lower than the minimum allowed, setting it to "+o.C.MIN_INTER_TONE_GAP+" milliseconds"),a=o.C.MIN_INTER_TONE_GAP):a=Math.abs(a):a=o.C.DEFAULT_INTER_TONE_GAP,o.interToneGap=a,o}return o(t,e),t.prototype.send=function(e){if(void 0===e&&(e={}),this.owner.status!==s.SessionStatus.STATUS_CONFIRMED&&this.owner.status!==s.SessionStatus.STATUS_WAITING_FOR_ACK)throw new l.Exceptions.InvalidStateError(this.owner.status);var t=e.extraHeaders?e.extraHeaders.slice():[],r={contentType:"application/dtmf-relay",body:"Signal= "+this.tone+"\r\nDuration= "+this.duration};if(this.owner.dialog){var n=this.owner.dialog.sendRequest(this,a.C.INFO,{extraHeaders:t,body:r});this.owner.emit("dtmf",n,this)}},t.prototype.init_incoming=function(e){e.reply(200),this.tone&&this.duration?this.owner.emit("dtmf",e,this):this.logger.warn("invalid INFO DTMF received, discarded")},t.prototype.receiveResponse=function(e){var t=e&&e.statusCode?e.statusCode:0;switch(!0){case/^1[0-9]{2}$/.test(t.toString()):break;case/^2[0-9]{2}$/.test(t.toString()):this.emit("succeeded",{originator:"remote",response:e});break;default:var r=c.Utils.sipErrorCause(t);this.emit("failed",e,r)}},t.prototype.onRequestTimeout=function(){this.emit("failed",void 0,a.C.causes.REQUEST_TIMEOUT),this.owner.onRequestTimeout()},t.prototype.onTransportError=function(){this.emit("failed",void 0,a.C.causes.CONNECTION_ERROR),this.owner.onTransportError()},t.prototype.onDialogError=function(e){this.emit("failed",e,a.C.causes.DIALOG_ERROR),this.owner.onDialogError(e)},t}(i.EventEmitter);t.DTMF=u},function(e,t,r){Object.defineProperty(t,"__esModule",{value:!0});var n=r(0),o=function(){function e(e,t){this.type=n.TypeStrings.SessionDescriptionHandlerObserver,this.session=e,this.options=t}return e.prototype.trackAdded=function(){this.session.emit("trackAdded")},e.prototype.directionChanged=function(){this.session.emit("directionChanged")},e}();t.SessionDescriptionHandlerObserver=o},function(e,t,r){Object.defineProperty(t,"__esModule",{value:!0});var n=r(15);t.Modifiers=n;var o=r(37);t.Simple=o.Simple;var i=r(28);t.SessionDescriptionHandler=i.SessionDescriptionHandler;var a=r(29);t.Transport=a.Transport},function(e,t,r){(function(e){var n,o=this&&this.__extends||(n=function(e,t){return(n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)t.hasOwnProperty(r)&&(e[r]=t[r])})(e,t)},function(e,t){function r(){this.constructor=e}n(e,t),e.prototype=null===t?Object.create(t):(r.prototype=t.prototype,new r)});Object.defineProperty(t,"__esModule",{value:!0});var i,a,s=r(3),l=r(27),c=r(15);(a=i=t.SimpleStatus||(t.SimpleStatus={}))[a.STATUS_NULL=0]="STATUS_NULL",a[a.STATUS_NEW=1]="STATUS_NEW",a[a.STATUS_CONNECTING=2]="STATUS_CONNECTING",a[a.STATUS_CONNECTED=3]="STATUS_CONNECTED",a[a.STATUS_COMPLETED=4]="STATUS_COMPLETED";var u=function(t){function r(r){var n=t.call(this)||this;if(r.media.remote.video?n.video=!0:n.video=!1,r.media.remote.audio?n.audio=!0:n.audio=!1,!n.audio&&!n.video)throw new Error("At least one remote audio or video element is required for Simple.");n.options=r;var o=e.navigator.userAgent.toLowerCase(),a=!1,s=!1;o.indexOf("safari")>-1&&o.indexOf("chrome")<0?a=!0:o.indexOf("firefox")>-1&&o.indexOf("chrome")<0&&(s=!0);var u={};return a&&(u.modifiers=[c.stripG722]),s&&(u.alwaysAcquireMediaFirst=!0),n.options.ua.uri?n.anonymous=!1:n.anonymous=!0,n.ua=new l.UA({uri:n.options.ua.uri,authorizationUser:n.options.ua.authorizationUser,password:n.options.ua.password,displayName:n.options.ua.displayName,userAgentString:n.options.ua.userAgentString,register:!0,sessionDescriptionHandlerFactoryOptions:u,transportOptions:{traceSip:n.options.ua.traceSip,wsServers:n.options.ua.wsServers}}),n.state=i.STATUS_NULL,n.logger=n.ua.getLogger("sip.simple"),n.ua.on("registered",function(){n.emit("registered",n.ua)}),n.ua.on("unregistered",function(){n.emit("unregistered",n.ua)}),n.ua.on("failed",function(){n.emit("unregistered",n.ua)}),n.ua.on("invite",function(e){if(n.state!==i.STATUS_NULL&&n.state!==i.STATUS_COMPLETED)return n.logger.warn("Rejecting incoming call. Simple only supports 1 call at a time"),void e.reject();n.session=e,n.setupSession(),n.emit("ringing",n.session)}),n.ua.on("message",function(e){n.emit("message",e)}),n}return o(r,t),r.prototype.call=function(e){if(this.ua&&this.checkRegistration()){if(this.state===i.STATUS_NULL||this.state===i.STATUS_COMPLETED)return this.options.media.remote.audio&&(this.options.media.remote.audio.autoplay=!0),this.options.media.remote.video&&(this.options.media.remote.video.autoplay=!0),this.options.media.local&&this.options.media.local.video&&(this.options.media.local.video.autoplay=!0,this.options.media.local.video.volume=0),this.session=this.ua.invite(e,{sessionDescriptionHandlerOptions:{constraints:{audio:this.audio,video:this.video}}}),this.setupSession(),this.session;this.logger.warn("Cannot make more than a single call with Simple")}else this.logger.warn("A registered UA is required for calling")},r.prototype.answer=function(){if(this.state===i.STATUS_NEW||this.state===i.STATUS_CONNECTING)return this.options.media.remote.audio&&(this.options.media.remote.audio.autoplay=!0),this.options.media.remote.video&&(this.options.media.remote.video.autoplay=!0),this.session.accept({sessionDescriptionHandlerOptions:{constraints:{audio:this.audio,video:this.video}}});this.logger.warn("No call to answer")},r.prototype.reject=function(){if(this.state===i.STATUS_NEW||this.state===i.STATUS_CONNECTING)return this.session.reject();this.logger.warn("Call is already answered")},r.prototype.hangup=function(){if(this.state===i.STATUS_CONNECTED||this.state===i.STATUS_CONNECTING||this.state===i.STATUS_NEW)return this.state!==i.STATUS_CONNECTED?this.session.cancel():this.session?this.session.bye():void 0;this.logger.warn("No active call to hang up on")},r.prototype.hold=function(){if(this.state===i.STATUS_CONNECTED&&this.session&&!this.session.localHold)return this.mute(),this.logger.log("Placing session on hold"),this.session.hold();this.logger.warn("Cannot put call on hold")},r.prototype.unhold=function(){if(this.state===i.STATUS_CONNECTED&&this.session&&this.session.localHold)return this.unmute(),this.logger.log("Placing call off hold"),this.session.unhold();this.logger.warn("Cannot unhold a call that is not on hold")},r.prototype.mute=function(){this.state===i.STATUS_CONNECTED?(this.logger.log("Muting Audio"),this.toggleMute(!0),this.emit("mute",this)):this.logger.warn("An acitve call is required to mute audio")},r.prototype.unmute=function(){this.state===i.STATUS_CONNECTED?(this.logger.log("Unmuting Audio"),this.toggleMute(!1),this.emit("unmute",this)):this.logger.warn("An active call is required to unmute audio")},r.prototype.sendDTMF=function(e){this.state===i.STATUS_CONNECTED&&this.session?(this.logger.log("Sending DTMF tone: "+e),this.session.dtmf(e)):this.logger.warn("An active call is required to send a DTMF tone")},r.prototype.message=function(e,t){this.ua&&this.checkRegistration()?e&&t?this.ua.message(e,t):this.logger.warn("A destination and message are required to send a message"):this.logger.warn("A registered UA is required to send a message")},r.prototype.checkRegistration=function(){return this.anonymous||this.ua&&this.ua.isRegistered()},r.prototype.setupRemoteMedia=function(){var t=this;if(this.session){var r,n=this.session.sessionDescriptionHandler.peerConnection;n.getReceivers?(r=new e.window.MediaStream,n.getReceivers().forEach(function(e){var t=e.track;t&&r.addTrack(t)})):r=n.getRemoteStreams()[0],this.video?(this.options.media.remote.video.srcObject=r,this.options.media.remote.video.play().catch(function(){t.logger.log("play was rejected")})):this.audio&&(this.options.media.remote.audio.srcObject=r,this.options.media.remote.audio.play().catch(function(){t.logger.log("play was rejected")}))}else this.logger.warn("No session to set remote media on")},r.prototype.setupLocalMedia=function(){if(this.session){if(this.video&&this.options.media.local&&this.options.media.local.video){var t,r=this.session.sessionDescriptionHandler.peerConnection;r.getSenders?(t=new e.window.MediaStream,r.getSenders().forEach(function(e){var r=e.track;r&&"video"===r.kind&&t.addTrack(r)})):t=r.getLocalStreams()[0],this.options.media.local.video.srcObject=t,this.options.media.local.video.volume=0,this.options.media.local.video.play()}}else this.logger.warn("No session to set local media on")},r.prototype.cleanupMedia=function(){this.video&&(this.options.media.remote.video.srcObject=null,this.options.media.remote.video.pause(),this.options.media.local&&this.options.media.local.video&&(this.options.media.local.video.srcObject=null,this.options.media.local.video.pause())),this.audio&&(this.options.media.remote.audio.srcObject=null,this.options.media.remote.audio.pause())},r.prototype.setupSession=function(){var e=this;this.session?(this.state=i.STATUS_NEW,this.emit("new",this.session),this.session.on("progress",function(){return e.onProgress()}),this.session.on("accepted",function(){return e.onAccepted()}),this.session.on("rejected",function(){return e.onEnded()}),this.session.on("failed",function(){return e.onFailed()}),this.session.on("terminated",function(){return e.onEnded()})):this.logger.warn("No session to set up")},r.prototype.destroyMedia=function(){this.session&&this.session.sessionDescriptionHandler&&this.session.sessionDescriptionHandler.close()},r.prototype.toggleMute=function(e){if(this.session){var t=this.session.sessionDescriptionHandler.peerConnection;t.getSenders?t.getSenders().forEach(function(t){t.track&&(t.track.enabled=!e)}):t.getLocalStreams().forEach(function(t){t.getAudioTracks().forEach(function(t){t.enabled=!e}),t.getVideoTracks().forEach(function(t){t.enabled=!e})})}else this.logger.warn("No session to toggle mute")},r.prototype.onAccepted=function(){var e=this;this.session?(this.state=i.STATUS_CONNECTED,this.emit("connected",this.session),this.setupLocalMedia(),this.setupRemoteMedia(),this.session.sessionDescriptionHandler&&(this.session.sessionDescriptionHandler.on("addTrack",function(){e.logger.log("A track has been added, triggering new remoteMedia setup"),e.setupRemoteMedia()}),this.session.sessionDescriptionHandler.on("addStream",function(){e.logger.log("A stream has been added, trigger new remoteMedia setup"),e.setupRemoteMedia()})),this.session.on("dtmf",function(t,r){e.emit("dtmf",r.tone)}),this.session.on("bye",function(){return e.onEnded()})):this.logger.warn("No session for accepting")},r.prototype.onProgress=function(){this.state=i.STATUS_CONNECTING,this.emit("connecting",this.session)},r.prototype.onFailed=function(){this.onEnded()},r.prototype.onEnded=function(){this.state=i.STATUS_COMPLETED,this.emit("ended",this.session),this.cleanupMedia()},r.C=i,r}(s.EventEmitter);t.Simple=u}).call(this,r(12))}])},"object"==typeof e&&"object"==typeof module?module.exports=Ir():"function"==typeof define&&define.amd?define([],Ir):"object"==typeof e?e.SIP=Ir():xr.SIP=Ir();const Dr=Object.freeze(Object.defineProperty({__proto__:null},Symbol.toStringTag,{value:"Module"}));e.SCTJBaseChart=ye,e.SCTJBimViewer=_r,e.SCTJBtnContainer=ge,e.SCTJBusinessMapDrawingDialog=Ar,e.SCTJCommonChart=we,e.SCTJDateRangePicker=ie,e.SCTJDialogTable=jt,e.SCTJDictTag=k,e.SCTJDwgViewer=Nr,e.SCTJFileUpload=B,e.SCTJFlvPlayer=Ve,e.SCTJH5hkPlayer=tt,e.SCTJHelmetPlayer=ft,e.SCTJIcon=D,e.SCTJIconSelect=ee,e.SCTJIframe=kt,e.SCTJImagePreview=W,e.SCTJImageUpload=K,e.SCTJImportDialog=Mt,e.SCTJMapDrawingDialog=cr,e.SCTJMapViewer=$t,e.SCTJPieChart=Ae,e.SCTJRightToolbar=de,e.SCTJSearch=oe,e.SCTJTable=le,e.SCTJTableContainer=ue,e.SCTJTablePageContainer=me,e.SCTJTableTopActionContainer=he,e.SCTJTreeSelect=x,e.SCTJYsyPlayer=_t,e.default=Rr,Object.defineProperties(e,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}})});
|