var Et=Object.defineProperty,Dt=Object.defineProperties;var St=Object.getOwnPropertyDescriptors;var vt=Object.getOwnPropertySymbols;var bt=Object.prototype.hasOwnProperty,Tt=Object.prototype.propertyIsEnumerable;var mt=(i,t,e)=>t in i?Et(i,t,{enumerable:!0,configurable:!0,writable:!0,value:e}):i[t]=e,yt=(i,t)=>{for(var e in t||(t={}))bt.call(t,e)&&mt(i,e,t[e]);if(vt)for(var e of vt(t))Tt.call(t,e)&&mt(i,e,t[e]);return i},Ct=(i,t)=>Dt(i,St(t));import{r as request}from"./index.6fc5f983.js";import{ap as commonjsGlobal,aq as getDefaultExportFromCjs,d as defineComponent,f as ElMessage,c as createVNode,W as ElDialog,G as ElRow,H as ElCol,a as createTextVNode,l as ElButton,ar as ElUpload,J as ElImage}from"./vendor.63aa8b19.js";const uploadSection="_uploadSection_ncqve_1",uploadClass="_uploadClass_ncqve_11",iconDelete="_iconDelete_ncqve_19",previewImg="_previewImg_ncqve_45",operation="_operation_ncqve_55",myImages="_myImages_ncqve_1";var styles={uploadSection,uploadClass,iconDelete,"avatar-upload-preview_range":"_avatar-upload-preview_range_ncqve_30","avatar-upload-preview":"_avatar-upload-preview_ncqve_30",previewImg,operation,"icon-rate":"_icon-rate_ncqve_65","vue-cropper":"_vue-cropper_ncqve_72","el-dialog":"_el-dialog_ncqve_76","el-dialog__header":"_el-dialog__header_ncqve_79","el-dialog__title":"_el-dialog__title_ncqve_83","el-dialog__headerbtn":"_el-dialog__headerbtn_ncqve_86","el-dialog__close":"_el-dialog__close_ncqve_86","el-dialog__body":"_el-dialog__body_ncqve_89",myImages},iconUpload="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAEAAAAA4CAMAAAB6xg5AAAAAAXNSR0IArs4c6QAAAsRQTFRFAAAAAP8AAP//AICAAP+AAP//AKqqVaqqVf+qAL+/QL+/M8yZKqqqKtWqJNu2IN+/HMaqM8yZM8yzLtGiLtG5Kr+qJMikML+fMM+vM8ymLMixKcKjKcKtKcytJ8SnJ86xMcSnL8aqLsitLMqwKsOqKcWtMMenMMevLsmqLcOtLcutLMWoK8aqKcilKcisMMisL8moLsSqLcysLMeuK8iqL8qsLcaqLMisK8moK8muMMqqL8usLMmsL8yqLsmrLcqpLcqtLcaqK8ipLcepK8apK8msLcerLMmqLMaoLMmrLsepLcWoLcapLMaqLsipLsisLsWqLMepLMeqLsirLcerLsarLsmrLceqLcqqLMisLsmqLserLcesLciqLcmrLcipLcisLcaqLMepLMesLMaqLsiqLsirLMirLMipLcerLcmrLciqLMepLseqLsmqLcipLcirLMepLcapLcepLMeqLMiqLsiqLsipLceqLcerLcipLsiqLsepLcepLceqLcirLMirLMeqLcerLcirLcepLcisLserLsiqLcerLceqLcirLMepLcerLciqLMeqLceqLciqLcirLceqLMepLseqLserLcaqLciqLceqLceqLceqLMiqLsiqLcirLceqLcepLceqLcaqLciqLsaqLMepLsiqLceqLcerLceqLciqLseqLcerLceqLceqLciqLceqLceqLciqLceqLcaqLcirLMeqLceqLceqLcerLciqLcepLceqLciqLMeqLMeqLceqLceqLcirLceqLciqLceqLMeqLMerLMaqLceqLcirLceqLceqLceqLceqLceqLMiqLMeqLceqLcepLceqLceqLMeqLMeqLcaqLceqLceqLceqLceqLMepLMeqLceqLcaqLceqLciqLcepLceqLcerLceqLMeqLMiqLciqLceqLcirLceqkeY/1AAAAOt0Uk5TAAEBAgICAwMDBAQFBgYHCAkKCgsLDA4QEBQXGRkZGhoaGxwdHh8gICEiIiMkJSUlJicoKSorLS4vLzAxNDw9Pj4/QURHR0lLTExNT1BRU1NUVldYW15eYGBiY2RlZmdra2xubm9vcHN0dnZ4ent7fX2AgoOEioqMjY6PkJGSk5SVlpqdnp+goqSlpqepqqyur7CxsrOztLS1tre4uLm6u7y9vb2+vr+/wMLExcrMzM3O0NLU1NXV1tfY2dnZ2tvb3N3e3t/g4OHj4+Tl5+jq6+zt7u7w8fLz8/T19vf39/j5+fr6+/z9/f3+/ne0wvQAAAMbSURBVEjHnZb5W0xRGMdfyVjSqMiSfUsGCZUoS4WyZkkiS6Hs+55s2RIp+74rW5aIsmUP2WWUBoWS6fwT7n3vzG3uzD1z79z3p3M+53w/zzxz3nOeC2BrheUVHfME5RVYSQh55krf0Hz2xkTL2jS3nWF9J2FrODU/vYSI14853IZ0nEXT8lFVhFozcEeGVYHTJ3qeFDeWFowk1ipcWrCVltUu9XWpZScpUH2g5O958HusCgZQ8jqmcTRRMVgPkaTgOHp0Iz5bz5WptRRBAkBEqejK066YDk5+W2nt3wsCN1p7nGDiTfcTidJAKG2pFKDJHak88Qc/2lIeQJpknsQB7BBfqQyDgdJ58kQNqtiDGelsFSJ5wA4z0ncFAmyWISDbVfQ+eEyPVRSXG4fnfKmCn+Lh16uHtGZWWw5akY/zqpzDqWlp86oF9vUNAtF4waTq32w/Pp/nqdWCOi5WBBucBB2uXlVlKahNF/yeanFJjI3MC2KsCSaKXLNxelw6AnAUBxPAmSqIN75OwxasWTjCuG05d60BZmIDdwFvmuCRA+IGi7XcO7asIfdU3MJpb1AxPVkSAbCEJhiLtEUmD7LaIxnK9QNzOn6hbgAeWorgdg0WutwwQdn4mMJVrifVOPG8TyiC+QhXCk8VWazhXsT5a4ISdIQmCGBZs+/Cc23Lwl5mO8UF5Y4sizTbO42Fdjo5glfI1psJtiC9K0eQiyzFTHAI6XU5gufIEs0ESUiz5Qh0NVk2y0ywCHd+liMg3VjWXS+EfVjYRtYpkCkIUwXsOLJweYLTCDt9NEFfeiDbJ0+gx06CfoU8+RqMxKdCnoCc5bDXBcP8sg8HDhCZAu4zgqn+8Weyzq8Lon56UAW6AJEXybdIvoC86WuR935JbBCQb6PM8iFaYpOA6Hd7mcQ7J/8jNgoI+ZMUwn29OA/eVia+xbqAdeSe2nMy5xd1XVIgVUZBmcK83sEgeKFQ8N74HycrFOzlz1ihYAx/zBcV5TPteEGrAgX5d+4mndbhms35mxrhR3rkpQob0n+vTK5rcd0cO/aUW+5qQfI/vbBmnVf4WssAAAAASUVORK5CYII=",index="";/*! * Cropper.js v1.5.12 * https://fengyuanchen.github.io/cropperjs * * Copyright 2015-present Chen Fengyuan * Released under the MIT license * * Date: 2021-06-12T08:00:17.411Z */function ownKeys(i,t){var e=Object.keys(i);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(i);t&&(r=r.filter(function(l){return Object.getOwnPropertyDescriptor(i,l).enumerable})),e.push.apply(e,r)}return e}function _objectSpread2(i){for(var t=1;ti.length)&&(t=i.length);for(var e=0,r=new Array(t);e
',isNaN=Number.isNaN||WINDOW.isNaN;function isNumber(i){return typeof i=="number"&&!isNaN(i)}var isPositiveNumber=function(t){return t>0&&t<1/0};function isUndefined(i){return typeof i=="undefined"}function isObject(i){return _typeof(i)==="object"&&i!==null}var hasOwnProperty=Object.prototype.hasOwnProperty;function isPlainObject(i){if(!isObject(i))return!1;try{var t=i.constructor,e=t.prototype;return t&&e&&hasOwnProperty.call(e,"isPrototypeOf")}catch{return!1}}function isFunction(i){return typeof i=="function"}var slice=Array.prototype.slice;function toArray(i){return Array.from?Array.from(i):slice.call(i)}function forEach(i,t){return i&&isFunction(t)&&(Array.isArray(i)||isNumber(i.length)?toArray(i).forEach(function(e,r){t.call(i,e,r,i)}):isObject(i)&&Object.keys(i).forEach(function(e){t.call(i,i[e],e,i)})),i}var assign=Object.assign||function(t){for(var e=arguments.length,r=new Array(e>1?e-1:0),l=1;l0&&r.forEach(function(o){isObject(o)&&Object.keys(o).forEach(function(a){t[a]=o[a]})}),t},REGEXP_DECIMALS=/\.\d*(?:0|9){12}\d*$/;function normalizeDecimalNumber(i){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:1e11;return REGEXP_DECIMALS.test(i)?Math.round(i*t)/t:i}var REGEXP_SUFFIX=/^width|height|left|top|marginLeft|marginTop$/;function setStyle(i,t){var e=i.style;forEach(t,function(r,l){REGEXP_SUFFIX.test(l)&&isNumber(r)&&(r="".concat(r,"px")),e[l]=r})}function hasClass(i,t){return i.classList?i.classList.contains(t):i.className.indexOf(t)>-1}function addClass(i,t){if(!!t){if(isNumber(i.length)){forEach(i,function(r){addClass(r,t)});return}if(i.classList){i.classList.add(t);return}var e=i.className.trim();e?e.indexOf(t)<0&&(i.className="".concat(e," ").concat(t)):i.className=t}}function removeClass(i,t){if(!!t){if(isNumber(i.length)){forEach(i,function(e){removeClass(e,t)});return}if(i.classList){i.classList.remove(t);return}i.className.indexOf(t)>=0&&(i.className=i.className.replace(t,""))}}function toggleClass(i,t,e){if(!!t){if(isNumber(i.length)){forEach(i,function(r){toggleClass(r,t,e)});return}e?addClass(i,t):removeClass(i,t)}}var REGEXP_CAMEL_CASE=/([a-z\d])([A-Z])/g;function toParamCase(i){return i.replace(REGEXP_CAMEL_CASE,"$1-$2").toLowerCase()}function getData(i,t){return isObject(i[t])?i[t]:i.dataset?i.dataset[t]:i.getAttribute("data-".concat(toParamCase(t)))}function setData(i,t,e){isObject(e)?i[t]=e:i.dataset?i.dataset[t]=e:i.setAttribute("data-".concat(toParamCase(t)),e)}function removeData(i,t){if(isObject(i[t]))try{delete i[t]}catch{i[t]=void 0}else if(i.dataset)try{delete i.dataset[t]}catch{i.dataset[t]=void 0}else i.removeAttribute("data-".concat(toParamCase(t)))}var REGEXP_SPACES=/\s\s*/,onceSupported=function(){var i=!1;if(IS_BROWSER){var t=!1,e=function(){},r=Object.defineProperty({},"once",{get:function(){return i=!0,t},set:function(o){t=o}});WINDOW.addEventListener("test",e,r),WINDOW.removeEventListener("test",e,r)}return i}();function removeListener(i,t,e){var r=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{},l=e;t.trim().split(REGEXP_SPACES).forEach(function(o){if(!onceSupported){var a=i.listeners;a&&a[o]&&a[o][e]&&(l=a[o][e],delete a[o][e],Object.keys(a[o]).length===0&&delete a[o],Object.keys(a).length===0&&delete i.listeners)}i.removeEventListener(o,l,r)})}function addListener(i,t,e){var r=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{},l=e;t.trim().split(REGEXP_SPACES).forEach(function(o){if(r.once&&!onceSupported){var a=i.listeners,E=a===void 0?{}:a;l=function(){delete E[o][e],i.removeEventListener(o,l,r);for(var D=arguments.length,C=new Array(D),x=0;xMath.abs(e)&&(e=O)})}),e}function getPointer(i,t){var e=i.pageX,r=i.pageY,l={endX:e,endY:r};return t?l:_objectSpread2({startX:e,startY:r},l)}function getPointersCenter(i){var t=0,e=0,r=0;return forEach(i,function(l){var o=l.startX,a=l.startY;t+=o,e+=a,r+=1}),t/=r,e/=r,{pageX:t,pageY:e}}function getAdjustedSizes(i){var t=i.aspectRatio,e=i.height,r=i.width,l=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"contain",o=isPositiveNumber(r),a=isPositiveNumber(e);if(o&&a){var E=e*t;l==="contain"&&E>r||l==="cover"&&E90?{width:w,height:E}:{width:E,height:w}}function getSourceCanvas(i,t,e,r){var l=t.aspectRatio,o=t.naturalWidth,a=t.naturalHeight,E=t.rotate,w=E===void 0?0:E,D=t.scaleX,C=D===void 0?1:D,x=t.scaleY,O=x===void 0?1:x,H=e.aspectRatio,L=e.naturalWidth,M=e.naturalHeight,Y=r.fillColor,G=Y===void 0?"transparent":Y,re=r.imageSmoothingEnabled,I=re===void 0?!0:re,T=r.imageSmoothingQuality,A=T===void 0?"low":T,N=r.maxWidth,v=N===void 0?1/0:N,q=r.maxHeight,V=q===void 0?1/0:q,U=r.minWidth,K=U===void 0?0:U,B=r.minHeight,j=B===void 0?0:B,X=document.createElement("canvas"),W=X.getContext("2d"),J=getAdjustedSizes({aspectRatio:H,width:v,height:V}),se=getAdjustedSizes({aspectRatio:H,width:K,height:j},"cover"),ae=Math.min(J.width,Math.max(se.width,L)),oe=Math.min(J.height,Math.max(se.height,M)),ie=getAdjustedSizes({aspectRatio:l,width:v,height:V}),ce=getAdjustedSizes({aspectRatio:l,width:K,height:j},"cover"),le=Math.min(ie.width,Math.max(ce.width,o)),pe=Math.min(ie.height,Math.max(ce.height,a)),Z=[-le/2,-pe/2,le,pe];return X.width=normalizeDecimalNumber(ae),X.height=normalizeDecimalNumber(oe),W.fillStyle=G,W.fillRect(0,0,ae,oe),W.save(),W.translate(ae/2,oe/2),W.rotate(w*Math.PI/180),W.scale(C,O),W.imageSmoothingEnabled=I,W.imageSmoothingQuality=A,W.drawImage.apply(W,[i].concat(_toConsumableArray(Z.map(function(te){return Math.floor(normalizeDecimalNumber(te))})))),W.restore(),X}var fromCharCode=String.fromCharCode;function getStringFromCharCode(i,t,e){var r="";e+=t;for(var l=t;l0;)e.push(fromCharCode.apply(null,toArray(l.subarray(0,r)))),l=l.subarray(r);return"data:".concat(t,";base64,").concat(btoa(e.join("")))}function resetAndGetOrientation(i){var t=new DataView(i),e;try{var r,l,o;if(t.getUint8(0)===255&&t.getUint8(1)===216)for(var a=t.byteLength,E=2;E+1=8&&(o=D+x)}}}if(o){var O=t.getUint16(o,r),H,L;for(L=0;L=0?o:MIN_CONTAINER_WIDTH),height:Math.max(r.offsetHeight,a>=0?a:MIN_CONTAINER_HEIGHT)};this.containerData=E,setStyle(l,{width:E.width,height:E.height}),addClass(t,CLASS_HIDDEN),removeClass(l,CLASS_HIDDEN)},initCanvas:function(){var t=this.containerData,e=this.imageData,r=this.options.viewMode,l=Math.abs(e.rotate)%180==90,o=l?e.naturalHeight:e.naturalWidth,a=l?e.naturalWidth:e.naturalHeight,E=o/a,w=t.width,D=t.height;t.height*E>t.width?r===3?w=t.height*E:D=t.width/E:r===3?D=t.width/E:w=t.height*E;var C={aspectRatio:E,naturalWidth:o,naturalHeight:a,width:w,height:D};this.canvasData=C,this.limited=r===1||r===2,this.limitCanvas(!0,!0),C.width=Math.min(Math.max(C.width,C.minWidth),C.maxWidth),C.height=Math.min(Math.max(C.height,C.minHeight),C.maxHeight),C.left=(t.width-C.width)/2,C.top=(t.height-C.height)/2,C.oldLeft=C.left,C.oldTop=C.top,this.initialCanvasData=assign({},C)},limitCanvas:function(t,e){var r=this.options,l=this.containerData,o=this.canvasData,a=this.cropBoxData,E=r.viewMode,w=o.aspectRatio,D=this.cropped&&a;if(t){var C=Number(r.minCanvasWidth)||0,x=Number(r.minCanvasHeight)||0;E>1?(C=Math.max(C,l.width),x=Math.max(x,l.height),E===3&&(x*w>C?C=x*w:x=C/w)):E>0&&(C?C=Math.max(C,D?a.width:0):x?x=Math.max(x,D?a.height:0):D&&(C=a.width,x=a.height,x*w>C?C=x*w:x=C/w));var O=getAdjustedSizes({aspectRatio:w,width:C,height:x});C=O.width,x=O.height,o.minWidth=C,o.minHeight=x,o.maxWidth=1/0,o.maxHeight=1/0}if(e)if(E>(D?0:1)){var H=l.width-o.width,L=l.height-o.height;o.minLeft=Math.min(0,H),o.minTop=Math.min(0,L),o.maxLeft=Math.max(0,H),o.maxTop=Math.max(0,L),D&&this.limited&&(o.minLeft=Math.min(a.left,a.left+(a.width-o.width)),o.minTop=Math.min(a.top,a.top+(a.height-o.height)),o.maxLeft=a.left,o.maxTop=a.top,E===2&&(o.width>=l.width&&(o.minLeft=Math.min(0,H),o.maxLeft=Math.max(0,H)),o.height>=l.height&&(o.minTop=Math.min(0,L),o.maxTop=Math.max(0,L))))}else o.minLeft=-o.width,o.minTop=-o.height,o.maxLeft=l.width,o.maxTop=l.height},renderCanvas:function(t,e){var r=this.canvasData,l=this.imageData;if(e){var o=getRotatedSizes({width:l.naturalWidth*Math.abs(l.scaleX||1),height:l.naturalHeight*Math.abs(l.scaleY||1),degree:l.rotate||0}),a=o.width,E=o.height,w=r.width*(a/r.naturalWidth),D=r.height*(E/r.naturalHeight);r.left-=(w-r.width)/2,r.top-=(D-r.height)/2,r.width=w,r.height=D,r.aspectRatio=a/E,r.naturalWidth=a,r.naturalHeight=E,this.limitCanvas(!0,!1)}(r.width>r.maxWidth||r.widthr.maxHeight||r.heighte.width?o.height=o.width/r:o.width=o.height*r),this.cropBoxData=o,this.limitCropBox(!0,!0),o.width=Math.min(Math.max(o.width,o.minWidth),o.maxWidth),o.height=Math.min(Math.max(o.height,o.minHeight),o.maxHeight),o.width=Math.max(o.minWidth,o.width*l),o.height=Math.max(o.minHeight,o.height*l),o.left=e.left+(e.width-o.width)/2,o.top=e.top+(e.height-o.height)/2,o.oldLeft=o.left,o.oldTop=o.top,this.initialCropBoxData=assign({},o)},limitCropBox:function(t,e){var r=this.options,l=this.containerData,o=this.canvasData,a=this.cropBoxData,E=this.limited,w=r.aspectRatio;if(t){var D=Number(r.minCropBoxWidth)||0,C=Number(r.minCropBoxHeight)||0,x=E?Math.min(l.width,o.width,o.width+o.left,l.width-o.left):l.width,O=E?Math.min(l.height,o.height,o.height+o.top,l.height-o.top):l.height;D=Math.min(D,l.width),C=Math.min(C,l.height),w&&(D&&C?C*w>D?C=D/w:D=C*w:D?C=D/w:C&&(D=C*w),O*w>x?O=x/w:x=O*w),a.minWidth=Math.min(D,x),a.minHeight=Math.min(C,O),a.maxWidth=x,a.maxHeight=O}e&&(E?(a.minLeft=Math.max(0,o.left),a.minTop=Math.max(0,o.top),a.maxLeft=Math.min(l.width,o.left+o.width)-a.width,a.maxTop=Math.min(l.height,o.top+o.height)-a.height):(a.minLeft=0,a.minTop=0,a.maxLeft=l.width-a.width,a.maxTop=l.height-a.height))},renderCropBox:function(){var t=this.options,e=this.containerData,r=this.cropBoxData;(r.width>r.maxWidth||r.widthr.maxHeight||r.height=e.width&&r.height>=e.height?ACTION_MOVE:ACTION_ALL),setStyle(this.cropBox,assign({width:r.width,height:r.height},getTransforms({translateX:r.left,translateY:r.top}))),this.cropped&&this.limited&&this.limitCanvas(!0,!0),this.disabled||this.output()},output:function(){this.preview(),dispatchEvent(this.element,EVENT_CROP,this.getData())}},preview={initPreview:function(){var t=this.element,e=this.crossOrigin,r=this.options.preview,l=e?this.crossOriginUrl:this.url,o=t.alt||"The image to preview",a=document.createElement("img");if(e&&(a.crossOrigin=e),a.src=l,a.alt=o,this.viewBox.appendChild(a),this.viewBoxImage=a,!!r){var E=r;typeof r=="string"?E=t.ownerDocument.querySelectorAll(r):r.querySelector&&(E=[r]),this.previews=E,forEach(E,function(w){var D=document.createElement("img");setData(w,DATA_PREVIEW,{width:w.offsetWidth,height:w.offsetHeight,html:w.innerHTML}),e&&(D.crossOrigin=e),D.src=l,D.alt=o,D.style.cssText='display:block;width:100%;height:auto;min-width:0!important;min-height:0!important;max-width:none!important;max-height:none!important;image-orientation:0deg!important;"',w.innerHTML="",w.appendChild(D)})}},resetPreview:function(){forEach(this.previews,function(t){var e=getData(t,DATA_PREVIEW);setStyle(t,{width:e.width,height:e.height}),t.innerHTML=e.html,removeData(t,DATA_PREVIEW)})},preview:function(){var t=this.imageData,e=this.canvasData,r=this.cropBoxData,l=r.width,o=r.height,a=t.width,E=t.height,w=r.left-e.left-t.left,D=r.top-e.top-t.top;!this.cropped||this.disabled||(setStyle(this.viewBoxImage,assign({width:a,height:E},getTransforms(assign({translateX:-w,translateY:-D},t)))),forEach(this.previews,function(C){var x=getData(C,DATA_PREVIEW),O=x.width,H=x.height,L=O,M=H,Y=1;l&&(Y=O/l,M=o*Y),o&&M>H&&(Y=H/o,L=l*Y,M=H),setStyle(C,{width:L,height:M}),setStyle(C.getElementsByTagName("img")[0],assign({width:a*Y,height:E*Y},getTransforms(assign({translateX:-w*Y,translateY:-D*Y},t))))}))}},events={bind:function(){var t=this.element,e=this.options,r=this.cropper;isFunction(e.cropstart)&&addListener(t,EVENT_CROP_START,e.cropstart),isFunction(e.cropmove)&&addListener(t,EVENT_CROP_MOVE,e.cropmove),isFunction(e.cropend)&&addListener(t,EVENT_CROP_END,e.cropend),isFunction(e.crop)&&addListener(t,EVENT_CROP,e.crop),isFunction(e.zoom)&&addListener(t,EVENT_ZOOM,e.zoom),addListener(r,EVENT_POINTER_DOWN,this.onCropStart=this.cropStart.bind(this)),e.zoomable&&e.zoomOnWheel&&addListener(r,EVENT_WHEEL,this.onWheel=this.wheel.bind(this),{passive:!1,capture:!0}),e.toggleDragModeOnDblclick&&addListener(r,EVENT_DBLCLICK,this.onDblclick=this.dblclick.bind(this)),addListener(t.ownerDocument,EVENT_POINTER_MOVE,this.onCropMove=this.cropMove.bind(this)),addListener(t.ownerDocument,EVENT_POINTER_UP,this.onCropEnd=this.cropEnd.bind(this)),e.responsive&&addListener(window,EVENT_RESIZE,this.onResize=this.resize.bind(this))},unbind:function(){var t=this.element,e=this.options,r=this.cropper;isFunction(e.cropstart)&&removeListener(t,EVENT_CROP_START,e.cropstart),isFunction(e.cropmove)&&removeListener(t,EVENT_CROP_MOVE,e.cropmove),isFunction(e.cropend)&&removeListener(t,EVENT_CROP_END,e.cropend),isFunction(e.crop)&&removeListener(t,EVENT_CROP,e.crop),isFunction(e.zoom)&&removeListener(t,EVENT_ZOOM,e.zoom),removeListener(r,EVENT_POINTER_DOWN,this.onCropStart),e.zoomable&&e.zoomOnWheel&&removeListener(r,EVENT_WHEEL,this.onWheel,{passive:!1,capture:!0}),e.toggleDragModeOnDblclick&&removeListener(r,EVENT_DBLCLICK,this.onDblclick),removeListener(t.ownerDocument,EVENT_POINTER_MOVE,this.onCropMove),removeListener(t.ownerDocument,EVENT_POINTER_UP,this.onCropEnd),e.responsive&&removeListener(window,EVENT_RESIZE,this.onResize)}},handlers={resize:function(){if(!this.disabled){var t=this.options,e=this.container,r=this.containerData,l=e.offsetWidth/r.width,o=e.offsetHeight/r.height,a=Math.abs(l-1)>Math.abs(o-1)?l:o;if(a!==1){var E,w;t.restore&&(E=this.getCanvasData(),w=this.getCropBoxData()),this.render(),t.restore&&(this.setCanvasData(forEach(E,function(D,C){E[C]=D*a})),this.setCropBoxData(forEach(w,function(D,C){w[C]=D*a})))}}},dblclick:function(){this.disabled||this.options.dragMode===DRAG_MODE_NONE||this.setDragMode(hasClass(this.dragBox,CLASS_CROP)?DRAG_MODE_MOVE:DRAG_MODE_CROP)},wheel:function(t){var e=this,r=Number(this.options.wheelZoomRatio)||.1,l=1;this.disabled||(t.preventDefault(),!this.wheeling&&(this.wheeling=!0,setTimeout(function(){e.wheeling=!1},50),t.deltaY?l=t.deltaY>0?1:-1:t.wheelDelta?l=-t.wheelDelta/120:t.detail&&(l=t.detail>0?1:-1),this.zoom(-l*r,t)))},cropStart:function(t){var e=t.buttons,r=t.button;if(!(this.disabled||(t.type==="mousedown"||t.type==="pointerdown"&&t.pointerType==="mouse")&&(isNumber(e)&&e!==1||isNumber(r)&&r!==0||t.ctrlKey))){var l=this.options,o=this.pointers,a;t.changedTouches?forEach(t.changedTouches,function(E){o[E.identifier]=getPointer(E)}):o[t.pointerId||0]=getPointer(t),Object.keys(o).length>1&&l.zoomable&&l.zoomOnTouch?a=ACTION_ZOOM:a=getData(t.target,DATA_ACTION),!!REGEXP_ACTIONS.test(a)&&dispatchEvent(this.element,EVENT_CROP_START,{originalEvent:t,action:a})!==!1&&(t.preventDefault(),this.action=a,this.cropping=!1,a===ACTION_CROP&&(this.cropping=!0,addClass(this.dragBox,CLASS_MODAL)))}},cropMove:function(t){var e=this.action;if(!(this.disabled||!e)){var r=this.pointers;t.preventDefault(),dispatchEvent(this.element,EVENT_CROP_MOVE,{originalEvent:t,action:e})!==!1&&(t.changedTouches?forEach(t.changedTouches,function(l){assign(r[l.identifier]||{},getPointer(l,!0))}):assign(r[t.pointerId||0]||{},getPointer(t,!0)),this.change(t))}},cropEnd:function(t){if(!this.disabled){var e=this.action,r=this.pointers;t.changedTouches?forEach(t.changedTouches,function(l){delete r[l.identifier]}):delete r[t.pointerId||0],!!e&&(t.preventDefault(),Object.keys(r).length||(this.action=""),this.cropping&&(this.cropping=!1,toggleClass(this.dragBox,CLASS_MODAL,this.cropped&&this.options.modal)),dispatchEvent(this.element,EVENT_CROP_END,{originalEvent:t,action:e}))}}},change={change:function(t){var e=this.options,r=this.canvasData,l=this.containerData,o=this.cropBoxData,a=this.pointers,E=this.action,w=e.aspectRatio,D=o.left,C=o.top,x=o.width,O=o.height,H=D+x,L=C+O,M=0,Y=0,G=l.width,re=l.height,I=!0,T;!w&&t.shiftKey&&(w=x&&O?x/O:1),this.limited&&(M=o.minLeft,Y=o.minTop,G=M+Math.min(l.width,r.width,r.left+r.width),re=Y+Math.min(l.height,r.height,r.top+r.height));var A=a[Object.keys(a)[0]],N={x:A.endX-A.startX,y:A.endY-A.startY},v=function(V){switch(V){case ACTION_EAST:H+N.x>G&&(N.x=G-H);break;case ACTION_WEST:D+N.xre&&(N.y=re-L);break}};switch(E){case ACTION_ALL:D+=N.x,C+=N.y;break;case ACTION_EAST:if(N.x>=0&&(H>=G||w&&(C<=Y||L>=re))){I=!1;break}v(ACTION_EAST),x+=N.x,x<0&&(E=ACTION_WEST,x=-x,D-=x),w&&(O=x/w,C+=(o.height-O)/2);break;case ACTION_NORTH:if(N.y<=0&&(C<=Y||w&&(D<=M||H>=G))){I=!1;break}v(ACTION_NORTH),O-=N.y,C+=N.y,O<0&&(E=ACTION_SOUTH,O=-O,C-=O),w&&(x=O*w,D+=(o.width-x)/2);break;case ACTION_WEST:if(N.x<=0&&(D<=M||w&&(C<=Y||L>=re))){I=!1;break}v(ACTION_WEST),x-=N.x,D+=N.x,x<0&&(E=ACTION_EAST,x=-x,D-=x),w&&(O=x/w,C+=(o.height-O)/2);break;case ACTION_SOUTH:if(N.y>=0&&(L>=re||w&&(D<=M||H>=G))){I=!1;break}v(ACTION_SOUTH),O+=N.y,O<0&&(E=ACTION_NORTH,O=-O,C-=O),w&&(x=O*w,D+=(o.width-x)/2);break;case ACTION_NORTH_EAST:if(w){if(N.y<=0&&(C<=Y||H>=G)){I=!1;break}v(ACTION_NORTH),O-=N.y,C+=N.y,x=O*w}else v(ACTION_NORTH),v(ACTION_EAST),N.x>=0?HY&&(O-=N.y,C+=N.y):(O-=N.y,C+=N.y);x<0&&O<0?(E=ACTION_SOUTH_WEST,O=-O,x=-x,C-=O,D-=x):x<0?(E=ACTION_NORTH_WEST,x=-x,D-=x):O<0&&(E=ACTION_SOUTH_EAST,O=-O,C-=O);break;case ACTION_NORTH_WEST:if(w){if(N.y<=0&&(C<=Y||D<=M)){I=!1;break}v(ACTION_NORTH),O-=N.y,C+=N.y,x=O*w,D+=o.width-x}else v(ACTION_NORTH),v(ACTION_WEST),N.x<=0?D>M?(x-=N.x,D+=N.x):N.y<=0&&C<=Y&&(I=!1):(x-=N.x,D+=N.x),N.y<=0?C>Y&&(O-=N.y,C+=N.y):(O-=N.y,C+=N.y);x<0&&O<0?(E=ACTION_SOUTH_EAST,O=-O,x=-x,C-=O,D-=x):x<0?(E=ACTION_NORTH_EAST,x=-x,D-=x):O<0&&(E=ACTION_SOUTH_WEST,O=-O,C-=O);break;case ACTION_SOUTH_WEST:if(w){if(N.x<=0&&(D<=M||L>=re)){I=!1;break}v(ACTION_WEST),x-=N.x,D+=N.x,O=x/w}else v(ACTION_SOUTH),v(ACTION_WEST),N.x<=0?D>M?(x-=N.x,D+=N.x):N.y>=0&&L>=re&&(I=!1):(x-=N.x,D+=N.x),N.y>=0?L=0&&(H>=G||L>=re)){I=!1;break}v(ACTION_EAST),x+=N.x,O=x/w}else v(ACTION_SOUTH),v(ACTION_EAST),N.x>=0?H=0&&L>=re&&(I=!1):x+=N.x,N.y>=0?L0?E=N.y>0?ACTION_SOUTH_EAST:ACTION_NORTH_EAST:N.x<0&&(D-=x,E=N.y>0?ACTION_SOUTH_WEST:ACTION_NORTH_WEST),N.y<0&&(C-=O),this.cropped||(removeClass(this.cropBox,CLASS_HIDDEN),this.cropped=!0,this.limited&&this.limitCropBox(!0,!0));break}I&&(o.width=x,o.height=O,o.left=D,o.top=C,this.action=E,this.renderCropBox()),forEach(a,function(q){q.startX=q.endX,q.startY=q.endY})}},methods={crop:function(){return this.ready&&!this.cropped&&!this.disabled&&(this.cropped=!0,this.limitCropBox(!0,!0),this.options.modal&&addClass(this.dragBox,CLASS_MODAL),removeClass(this.cropBox,CLASS_HIDDEN),this.setCropBoxData(this.initialCropBoxData)),this},reset:function(){return this.ready&&!this.disabled&&(this.imageData=assign({},this.initialImageData),this.canvasData=assign({},this.initialCanvasData),this.cropBoxData=assign({},this.initialCropBoxData),this.renderCanvas(),this.cropped&&this.renderCropBox()),this},clear:function(){return this.cropped&&!this.disabled&&(assign(this.cropBoxData,{left:0,top:0,width:0,height:0}),this.cropped=!1,this.renderCropBox(),this.limitCanvas(!0,!0),this.renderCanvas(),removeClass(this.dragBox,CLASS_MODAL),addClass(this.cropBox,CLASS_HIDDEN)),this},replace:function(t){var e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;return!this.disabled&&t&&(this.isImg&&(this.element.src=t),e?(this.url=t,this.image.src=t,this.ready&&(this.viewBoxImage.src=t,forEach(this.previews,function(r){r.getElementsByTagName("img")[0].src=t}))):(this.isImg&&(this.replaced=!0),this.options.data=null,this.uncreate(),this.load(t))),this},enable:function(){return this.ready&&this.disabled&&(this.disabled=!1,removeClass(this.cropper,CLASS_DISABLED)),this},disable:function(){return this.ready&&!this.disabled&&(this.disabled=!0,addClass(this.cropper,CLASS_DISABLED)),this},destroy:function(){var t=this.element;return t[NAMESPACE]?(t[NAMESPACE]=void 0,this.isImg&&this.replaced&&(t.src=this.originalUrl),this.uncreate(),this):this},move:function(t){var e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:t,r=this.canvasData,l=r.left,o=r.top;return this.moveTo(isUndefined(t)?t:l+Number(t),isUndefined(e)?e:o+Number(e))},moveTo:function(t){var e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:t,r=this.canvasData,l=!1;return t=Number(t),e=Number(e),this.ready&&!this.disabled&&this.options.movable&&(isNumber(t)&&(r.left=t,l=!0),isNumber(e)&&(r.top=e,l=!0),l&&this.renderCanvas(!0)),this},zoom:function(t,e){var r=this.canvasData;return t=Number(t),t<0?t=1/(1-t):t=1+t,this.zoomTo(r.width*t/r.naturalWidth,null,e)},zoomTo:function(t,e,r){var l=this.options,o=this.canvasData,a=o.width,E=o.height,w=o.naturalWidth,D=o.naturalHeight;if(t=Number(t),t>=0&&this.ready&&!this.disabled&&l.zoomable){var C=w*t,x=D*t;if(dispatchEvent(this.element,EVENT_ZOOM,{ratio:t,oldRatio:a/w,originalEvent:r})===!1)return this;if(r){var O=this.pointers,H=getOffset(this.cropper),L=O&&Object.keys(O).length?getPointersCenter(O):{pageX:r.pageX,pageY:r.pageY};o.left-=(C-a)*((L.pageX-H.left-o.left)/a),o.top-=(x-E)*((L.pageY-H.top-o.top)/E)}else isPlainObject(e)&&isNumber(e.x)&&isNumber(e.y)?(o.left-=(C-a)*((e.x-o.left)/a),o.top-=(x-E)*((e.y-o.top)/E)):(o.left-=(C-a)/2,o.top-=(x-E)/2);o.width=C,o.height=x,this.renderCanvas(!0)}return this},rotate:function(t){return this.rotateTo((this.imageData.rotate||0)+Number(t))},rotateTo:function(t){return t=Number(t),isNumber(t)&&this.ready&&!this.disabled&&this.options.rotatable&&(this.imageData.rotate=t%360,this.renderCanvas(!0,!0)),this},scaleX:function(t){var e=this.imageData.scaleY;return this.scale(t,isNumber(e)?e:1)},scaleY:function(t){var e=this.imageData.scaleX;return this.scale(isNumber(e)?e:1,t)},scale:function(t){var e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:t,r=this.imageData,l=!1;return t=Number(t),e=Number(e),this.ready&&!this.disabled&&this.options.scalable&&(isNumber(t)&&(r.scaleX=t,l=!0),isNumber(e)&&(r.scaleY=e,l=!0),l&&this.renderCanvas(!0,!0)),this},getData:function(){var t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!1,e=this.options,r=this.imageData,l=this.canvasData,o=this.cropBoxData,a;if(this.ready&&this.cropped){a={x:o.left-l.left,y:o.top-l.top,width:o.width,height:o.height};var E=r.width/r.naturalWidth;if(forEach(a,function(C,x){a[x]=C/E}),t){var w=Math.round(a.y+a.height),D=Math.round(a.x+a.width);a.x=Math.round(a.x),a.y=Math.round(a.y),a.width=D-a.x,a.height=w-a.y}}else a={x:0,y:0,width:0,height:0};return e.rotatable&&(a.rotate=r.rotate||0),e.scalable&&(a.scaleX=r.scaleX||1,a.scaleY=r.scaleY||1),a},setData:function(t){var e=this.options,r=this.imageData,l=this.canvasData,o={};if(this.ready&&!this.disabled&&isPlainObject(t)){var a=!1;e.rotatable&&isNumber(t.rotate)&&t.rotate!==r.rotate&&(r.rotate=t.rotate,a=!0),e.scalable&&(isNumber(t.scaleX)&&t.scaleX!==r.scaleX&&(r.scaleX=t.scaleX,a=!0),isNumber(t.scaleY)&&t.scaleY!==r.scaleY&&(r.scaleY=t.scaleY,a=!0)),a&&this.renderCanvas(!0,!0);var E=r.width/r.naturalWidth;isNumber(t.x)&&(o.left=t.x*E+l.left),isNumber(t.y)&&(o.top=t.y*E+l.top),isNumber(t.width)&&(o.width=t.width*E),isNumber(t.height)&&(o.height=t.height*E),this.setCropBoxData(o)}return this},getContainerData:function(){return this.ready?assign({},this.containerData):{}},getImageData:function(){return this.sized?assign({},this.imageData):{}},getCanvasData:function(){var t=this.canvasData,e={};return this.ready&&forEach(["left","top","width","height","naturalWidth","naturalHeight"],function(r){e[r]=t[r]}),e},setCanvasData:function(t){var e=this.canvasData,r=e.aspectRatio;return this.ready&&!this.disabled&&isPlainObject(t)&&(isNumber(t.left)&&(e.left=t.left),isNumber(t.top)&&(e.top=t.top),isNumber(t.width)?(e.width=t.width,e.height=t.width/r):isNumber(t.height)&&(e.height=t.height,e.width=t.height*r),this.renderCanvas(!0)),this},getCropBoxData:function(){var t=this.cropBoxData,e;return this.ready&&this.cropped&&(e={left:t.left,top:t.top,width:t.width,height:t.height}),e||{}},setCropBoxData:function(t){var e=this.cropBoxData,r=this.options.aspectRatio,l,o;return this.ready&&this.cropped&&!this.disabled&&isPlainObject(t)&&(isNumber(t.left)&&(e.left=t.left),isNumber(t.top)&&(e.top=t.top),isNumber(t.width)&&t.width!==e.width&&(l=!0,e.width=t.width),isNumber(t.height)&&t.height!==e.height&&(o=!0,e.height=t.height),r&&(l?e.height=e.width/r:o&&(e.width=e.height*r)),this.renderCropBox()),this},getCroppedCanvas:function(){var t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};if(!this.ready||!window.HTMLCanvasElement)return null;var e=this.canvasData,r=getSourceCanvas(this.image,this.imageData,e,t);if(!this.cropped)return r;var l=this.getData(),o=l.x,a=l.y,E=l.width,w=l.height,D=r.width/Math.floor(e.naturalWidth);D!==1&&(o*=D,a*=D,E*=D,w*=D);var C=E/w,x=getAdjustedSizes({aspectRatio:C,width:t.maxWidth||1/0,height:t.maxHeight||1/0}),O=getAdjustedSizes({aspectRatio:C,width:t.minWidth||0,height:t.minHeight||0},"cover"),H=getAdjustedSizes({aspectRatio:C,width:t.width||(D!==1?r.width:E),height:t.height||(D!==1?r.height:w)}),L=H.width,M=H.height;L=Math.min(x.width,Math.max(O.width,L)),M=Math.min(x.height,Math.max(O.height,M));var Y=document.createElement("canvas"),G=Y.getContext("2d");Y.width=normalizeDecimalNumber(L),Y.height=normalizeDecimalNumber(M),G.fillStyle=t.fillColor||"transparent",G.fillRect(0,0,L,M);var re=t.imageSmoothingEnabled,I=re===void 0?!0:re,T=t.imageSmoothingQuality;G.imageSmoothingEnabled=I,T&&(G.imageSmoothingQuality=T);var A=r.width,N=r.height,v=o,q=a,V,U,K,B,j,X;v<=-E||v>A?(v=0,V=0,K=0,j=0):v<=0?(K=-v,v=0,V=Math.min(A,E+v),j=V):v<=A&&(K=0,V=Math.min(E,A-v),j=V),V<=0||q<=-w||q>N?(q=0,U=0,B=0,X=0):q<=0?(B=-q,q=0,U=Math.min(N,w+q),X=U):q<=N&&(B=0,U=Math.min(w,N-q),X=U);var W=[v,q,V,U];if(j>0&&X>0){var J=L/E;W.push(K*J,B*J,j*J,X*J)}return G.drawImage.apply(G,[r].concat(_toConsumableArray(W.map(function(se){return Math.floor(normalizeDecimalNumber(se))})))),Y},setAspectRatio:function(t){var e=this.options;return!this.disabled&&!isUndefined(t)&&(e.aspectRatio=Math.max(0,t)||NaN,this.ready&&(this.initCropBox(),this.cropped&&this.renderCropBox())),this},setDragMode:function(t){var e=this.options,r=this.dragBox,l=this.face;if(this.ready&&!this.disabled){var o=t===DRAG_MODE_CROP,a=e.movable&&t===DRAG_MODE_MOVE;t=o||a?t:DRAG_MODE_NONE,e.dragMode=t,setData(r,DATA_ACTION,t),toggleClass(r,CLASS_CROP,o),toggleClass(r,CLASS_MOVE,a),e.cropBoxMovable||(setData(l,DATA_ACTION,t),toggleClass(l,CLASS_CROP,o),toggleClass(l,CLASS_MOVE,a))}return this}},AnotherCropper=WINDOW.Cropper,Cropper$1=function(){function i(t){var e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};if(_classCallCheck(this,i),!t||!REGEXP_TAG_NAME.test(t.tagName))throw new Error("The first argument is required and must be an or element.");this.element=t,this.options=assign({},DEFAULTS,isPlainObject(e)&&e),this.cropped=!1,this.disabled=!1,this.pointers={},this.ready=!1,this.reloading=!1,this.replaced=!1,this.sized=!1,this.sizing=!1,this.init()}return _createClass(i,[{key:"init",value:function(){var e=this.element,r=e.tagName.toLowerCase(),l;if(!e[NAMESPACE]){if(e[NAMESPACE]=this,r==="img"){if(this.isImg=!0,l=e.getAttribute("src")||"",this.originalUrl=l,!l)return;l=e.src}else r==="canvas"&&window.HTMLCanvasElement&&(l=e.toDataURL());this.load(l)}}},{key:"load",value:function(e){var r=this;if(!!e){this.url=e,this.imageData={};var l=this.element,o=this.options;if(!o.rotatable&&!o.scalable&&(o.checkOrientation=!1),!o.checkOrientation||!window.ArrayBuffer){this.clone();return}if(REGEXP_DATA_URL.test(e)){REGEXP_DATA_URL_JPEG.test(e)?this.read(dataURLToArrayBuffer(e)):this.clone();return}var a=new XMLHttpRequest,E=this.clone.bind(this);this.reloading=!0,this.xhr=a,a.onabort=E,a.onerror=E,a.ontimeout=E,a.onprogress=function(){a.getResponseHeader("content-type")!==MIME_TYPE_JPEG&&a.abort()},a.onload=function(){r.read(a.response)},a.onloadend=function(){r.reloading=!1,r.xhr=null},o.checkCrossOrigin&&isCrossOriginURL(e)&&l.crossOrigin&&(e=addTimestamp(e)),a.open("GET",e,!0),a.responseType="arraybuffer",a.withCredentials=l.crossOrigin==="use-credentials",a.send()}}},{key:"read",value:function(e){var r=this.options,l=this.imageData,o=resetAndGetOrientation(e),a=0,E=1,w=1;if(o>1){this.url=arrayBufferToDataURL(e,MIME_TYPE_JPEG);var D=parseOrientation(o);a=D.rotate,E=D.scaleX,w=D.scaleY}r.rotatable&&(l.rotate=a),r.scalable&&(l.scaleX=E,l.scaleY=w),this.clone()}},{key:"clone",value:function(){var e=this.element,r=this.url,l=e.crossOrigin,o=r;this.options.checkCrossOrigin&&isCrossOriginURL(r)&&(l||(l="anonymous"),o=addTimestamp(r)),this.crossOrigin=l,this.crossOriginUrl=o;var a=document.createElement("img");l&&(a.crossOrigin=l),a.src=o||r,a.alt=e.alt||"The image to crop",this.image=a,a.onload=this.start.bind(this),a.onerror=this.stop.bind(this),addClass(a,CLASS_HIDE),e.parentNode.insertBefore(a,e.nextSibling)}},{key:"start",value:function(){var e=this,r=this.image;r.onload=null,r.onerror=null,this.sizing=!0;var l=WINDOW.navigator&&/(?:iPad|iPhone|iPod).*?AppleWebKit/i.test(WINDOW.navigator.userAgent),o=function(D,C){assign(e.imageData,{naturalWidth:D,naturalHeight:C,aspectRatio:D/C}),e.initialImageData=assign({},e.imageData),e.sizing=!1,e.sized=!0,e.build()};if(r.naturalWidth&&!l){o(r.naturalWidth,r.naturalHeight);return}var a=document.createElement("img"),E=document.body||document.documentElement;this.sizingImage=a,a.onload=function(){o(a.width,a.height),l||E.removeChild(a)},a.src=r.src,l||(a.style.cssText="left:0;max-height:none!important;max-width:none!important;min-height:0!important;min-width:0!important;opacity:0;position:absolute;top:0;z-index:-1;",E.appendChild(a))}},{key:"stop",value:function(){var e=this.image;e.onload=null,e.onerror=null,e.parentNode.removeChild(e),this.image=null}},{key:"build",value:function(){if(!(!this.sized||this.ready)){var e=this.element,r=this.options,l=this.image,o=e.parentNode,a=document.createElement("div");a.innerHTML=TEMPLATE;var E=a.querySelector(".".concat(NAMESPACE,"-container")),w=E.querySelector(".".concat(NAMESPACE,"-canvas")),D=E.querySelector(".".concat(NAMESPACE,"-drag-box")),C=E.querySelector(".".concat(NAMESPACE,"-crop-box")),x=C.querySelector(".".concat(NAMESPACE,"-face"));this.container=o,this.cropper=E,this.canvas=w,this.dragBox=D,this.cropBox=C,this.viewBox=E.querySelector(".".concat(NAMESPACE,"-view-box")),this.face=x,w.appendChild(l),addClass(e,CLASS_HIDDEN),o.insertBefore(E,e.nextSibling),this.isImg||removeClass(l,CLASS_HIDE),this.initPreview(),this.bind(),r.initialAspectRatio=Math.max(0,r.initialAspectRatio)||NaN,r.aspectRatio=Math.max(0,r.aspectRatio)||NaN,r.viewMode=Math.max(0,Math.min(3,Math.round(r.viewMode)))||0,addClass(C,CLASS_HIDDEN),r.guides||addClass(C.getElementsByClassName("".concat(NAMESPACE,"-dashed")),CLASS_HIDDEN),r.center||addClass(C.getElementsByClassName("".concat(NAMESPACE,"-center")),CLASS_HIDDEN),r.background&&addClass(E,"".concat(NAMESPACE,"-bg")),r.highlight||addClass(x,CLASS_INVISIBLE),r.cropBoxMovable&&(addClass(x,CLASS_MOVE),setData(x,DATA_ACTION,ACTION_ALL)),r.cropBoxResizable||(addClass(C.getElementsByClassName("".concat(NAMESPACE,"-line")),CLASS_HIDDEN),addClass(C.getElementsByClassName("".concat(NAMESPACE,"-point")),CLASS_HIDDEN)),this.render(),this.ready=!0,this.setDragMode(r.dragMode),r.autoCrop&&this.crop(),this.setData(r.data),isFunction(r.ready)&&addListener(e,EVENT_READY,r.ready,{once:!0}),dispatchEvent(e,EVENT_READY)}}},{key:"unbuild",value:function(){!this.ready||(this.ready=!1,this.unbind(),this.resetPreview(),this.cropper.parentNode.removeChild(this.cropper),removeClass(this.element,CLASS_HIDDEN))}},{key:"uncreate",value:function(){this.ready?(this.unbuild(),this.ready=!1,this.cropped=!1):this.sizing?(this.sizingImage.onload=null,this.sizing=!1,this.sized=!1):this.reloading?(this.xhr.onabort=null,this.xhr.abort()):this.image&&this.stop()}}],[{key:"noConflict",value:function(){return window.Cropper=AnotherCropper,i}},{key:"setDefaults",value:function(e){assign(DEFAULTS,isPlainObject(e)&&e)}}]),i}();assign(Cropper$1.prototype,render,preview,events,handlers,change,methods);var cropper="",cosJsSdkV5={exports:{}};(function(module,exports){(function(t,e){module.exports=e()})(commonjsGlobal,function(){return function(i){var t={};function e(r){if(t[r])return t[r].exports;var l=t[r]={i:r,l:!1,exports:{}};return i[r].call(l.exports,l,l.exports,e),l.l=!0,l.exports}return e.m=i,e.c=t,e.d=function(r,l,o){e.o(r,l)||Object.defineProperty(r,l,{enumerable:!0,get:o})},e.r=function(r){typeof Symbol!="undefined"&&Symbol.toStringTag&&Object.defineProperty(r,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(r,"__esModule",{value:!0})},e.t=function(r,l){if(l&1&&(r=e(r)),l&8||l&4&&typeof r=="object"&&r&&r.__esModule)return r;var o=Object.create(null);if(e.r(o),Object.defineProperty(o,"default",{enumerable:!0,value:r}),l&2&&typeof r!="string")for(var a in r)e.d(o,a,function(E){return r[E]}.bind(null,a));return o},e.n=function(r){var l=r&&r.__esModule?function(){return r.default}:function(){return r};return e.d(l,"a",l),l},e.o=function(r,l){return Object.prototype.hasOwnProperty.call(r,l)},e.p="/dist/",e(e.s="./index.js")}({"./index.js":function(i,t,e){var r=e("./src/cos.js");i.exports=r},"./lib/base64.js":function(i,t){var e=function(r){r=r||{};var l=r.Base64,o="2.1.9",a="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",E=function(U){for(var K={},B=0,j=U.length;B>>6)+w(128|B&63):w(224|B>>>12&15)+w(128|B>>>6&63)+w(128|B&63)}else{var B=65536+(K.charCodeAt(0)-55296)*1024+(K.charCodeAt(1)-56320);return w(240|B>>>18&7)+w(128|B>>>12&63)+w(128|B>>>6&63)+w(128|B&63)}},C=/[\uD800-\uDBFF][\uDC00-\uDFFFF]|[^\x00-\x7F]/g,x=function(K){return K.replace(C,D)},O=function(K){var B=[0,2,1][K.length%3],j=K.charCodeAt(0)<<16|(K.length>1?K.charCodeAt(1):0)<<8|(K.length>2?K.charCodeAt(2):0),X=[a.charAt(j>>>18),a.charAt(j>>>12&63),B>=2?"=":a.charAt(j>>>6&63),B>=1?"=":a.charAt(j&63)];return X.join("")},H=r.btoa?function(U){return r.btoa(U)}:function(U){return U.replace(/[\s\S]{1,3}/g,O)},L=function(U){return H(x(U))},M=function(K,B){return B?L(String(K)).replace(/[+\/]/g,function(j){return j=="+"?"-":"_"}).replace(/=/g,""):L(String(K))},Y=function(K){return M(K,!0)},G=new RegExp(["[\xC0-\xDF][\x80-\xBF]","[\xE0-\xEF][\x80-\xBF]{2}","[\xF0-\xF7][\x80-\xBF]{3}"].join("|"),"g"),re=function(K){switch(K.length){case 4:var B=(7&K.charCodeAt(0))<<18|(63&K.charCodeAt(1))<<12|(63&K.charCodeAt(2))<<6|63&K.charCodeAt(3),j=B-65536;return w((j>>>10)+55296)+w((j&1023)+56320);case 3:return w((15&K.charCodeAt(0))<<12|(63&K.charCodeAt(1))<<6|63&K.charCodeAt(2));default:return w((31&K.charCodeAt(0))<<6|63&K.charCodeAt(1))}},I=function(K){return K.replace(G,re)},T=function(K){var B=K.length,j=B%4,X=(B>0?E[K.charAt(0)]<<18:0)|(B>1?E[K.charAt(1)]<<12:0)|(B>2?E[K.charAt(2)]<<6:0)|(B>3?E[K.charAt(3)]:0),W=[w(X>>>16),w(X>>>8&255),w(X&255)];return W.length-=[0,0,2,1][j],W.join("")},A=r.atob?function(U){return r.atob(U)}:function(U){return U.replace(/[\s\S]{1,4}/g,T)},N=function(U){return I(A(U))},v=function(K){return N(String(K).replace(/[-_]/g,function(B){return B=="-"?"+":"/"}).replace(/[^A-Za-z0-9\+\/]/g,""))},q=function(){var K=r.Base64;return r.Base64=l,K},V={VERSION:o,atob:A,btoa:H,fromBase64:v,toBase64:M,utob:x,encode:M,encodeURI:Y,btou:I,decode:v,noConflict:q};return V}();i.exports=e},"./lib/beacon.min.js":function(i,t,e){var r,l,o=e("./node_modules/@babel/runtime/helpers/typeof.js");(function(a,E){o(t)=="object"&&typeof i!="undefined"?i.exports=E():(r=E,l=typeof r=="function"?r.call(t,e,t,i):r,l!==void 0&&(i.exports=l))})(this,function(){var a=function(c,s){return a=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(d,y){d.__proto__=y}||function(d,y){for(var k in y)Object.prototype.hasOwnProperty.call(y,k)&&(d[k]=y[k])},a(c,s)},E=function(){return E=Object.assign||function(c){for(var s,d=1,y=arguments.length;d0&&y[y.length-1])||$[0]!==6&&$[0]!==2)){P=0;continue}if($[0]===3&&(!y||$[1]>y[0]&&$[1]60*this.strategy.requestInterval*1e3},p.prototype.getUploadUrl=function(){return this.strategy.httpsUploadUrl+"?appkey="+this.appkey},p.prototype.isBlackEvent=function(c){return this.strategy.blacklist.indexOf(c)!=-1},p.prototype.isEventUpOnOff=function(){return this.strategy.isEventUpOnOff},p.prototype.isSampleEvent=function(c){return!!Object.prototype.hasOwnProperty.call(this.realSample,c)&&this.realSample[c]this.duration)return this.createSession();s=y.sessionId,d=y.sessionStart,this.getSessionStackDepth=0}catch{}return{sessionId:s,sessionStart:d}},p.prototype.createSession=function(){var c=Date.now(),s={sessionId:this.appkey+"_"+c.toString(),sessionStart:c};this.storage.setItem(q,JSON.stringify(s)),this.storage.setItem(O,c.toString());var d="is_new_user",y=this.storage.getItem(d);return this.getSessionStackDepth<=1&&this.beacon.onDirectUserAction("rqd_applaunched",{A21:y?"N":"Y"}),this.storage.setItem(d,JSON.stringify(!1)),s},p}();function U(){var p=navigator.userAgent,c=p.indexOf("compatible")>-1&&p.indexOf("MSIE")>-1,s=p.indexOf("Edge")>-1&&!c,d=p.indexOf("Trident")>-1&&p.indexOf("rv:11.0")>-1;if(c){new RegExp("MSIE (\\d+\\.\\d+);").test(p);var y=parseFloat(RegExp.$1);return y==7?7:y==8?8:y==9?9:y==10?10:6}return s?-2:d?11:-1}function K(p,c){var s,d;return(s="https://tun-cos-1258344701.file.myqcloud.com/fp.js",d===void 0&&(d=Date.now()+"-"+Math.random()),new Promise(function(y,k){if(document.getElementById(d))y(void 0);else{var P=document.getElementsByTagName("head")[0],Q=document.createElement("script");Q.onload=function(){return function(){Q.onload=null,y(void 0)}},Q.onerror=function(de){Q.onerror=null,P.removeChild(Q),k(de)},Q.src=s,Q.id=d,P.appendChild(Q)}})).then(function(){new Fingerprint().getQimei36(p,c)}).catch(function(y){}),""}var B=function(){return(B=Object.assign||function(c){for(var s,d=1,y=arguments.length;d0||!window.indexedDB||/X5Lite/.test(navigator.userAgent)?(this.store=new ae(s),this.dbEventCount=this.store.getCount()):(this.store=new se(c),this.getCount().then(function(y){d.dbEventCount=y}).catch(function(y){}))}return p.prototype.getCount=function(){return w(this,void 0,void 0,function(){return D(this,function(c){switch(c.label){case 0:return c.trys.push([0,2,,3]),[4,this.store.getCount()];case 1:return[2,c.sent()];case 2:return c.sent(),[2,Promise.reject()];case 3:return[2]}})})},p.prototype.insertEvent=function(c,s){return w(this,void 0,void 0,function(){var d,y;return D(this,function(k){switch(k.label){case 0:if(this.dbEventCount>=1e4)return[2,Promise.reject()];d=I(c.mapValue),k.label=1;case 1:return k.trys.push([1,3,,4]),this.dbEventCount++,[4,this.store.setItem(d,c)];case 2:return[2,k.sent()];case 3:return y=k.sent(),s&&s(y,c),this.dbEventCount--,[2,Promise.reject()];case 4:return[2]}})})},p.prototype.getEvents=function(){return w(this,void 0,void 0,function(){var c;return D(this,function(s){switch(s.label){case 0:c=[],s.label=1;case 1:return s.trys.push([1,3,,4]),[4,this.store.iterate(function(d){c.push(d)})];case 2:return s.sent(),[2,Promise.all(c)];case 3:return s.sent(),[2,Promise.all(c)];case 4:return[2]}})})},p.prototype.removeEvent=function(c){return w(this,void 0,void 0,function(){var s;return D(this,function(d){switch(d.label){case 0:s=I(c.mapValue),d.label=1;case 1:return d.trys.push([1,3,,4]),this.dbEventCount--,[4,this.store.removeItem(s)];case 2:return[2,d.sent()];case 3:return d.sent(),this.dbEventCount++,[2,Promise.reject()];case 4:return[2]}})})},p}(),ie=function(){return(ie=Object.assign||function(c){for(var s,d=1,y=arguments.length;d0&&y[y.length-1])||$[0]!==6&&$[0]!==2)){P=0;continue}if($[0]===3&&(!y||$[1]>y[0]&&$[1]0&&P<8,d.isUnderIE8||(d.isUnderIE=P>0,s.needInitQimei&&K(s.appkey,function(Q){d.qimei36=Q.q36}),d.network=new _e(s),d.storage=new qe(s.appkey),d.initCommonInfo(s),d.store=new oe(s.appkey,d.storage),d.errorReport=new N(d.config,d.commonInfo,"web",d.network),d.strategy=new v(s.needQueryConfig==null||s.needQueryConfig,d.config,d.commonInfo,d.storage,d.network),d.logidStartTime=d.storage.getItem(Me),d.logidStartTime||(d.logidStartTime=Date.now().toString(),d.storage.setItem(Me,d.logidStartTime)),y=d.logidStartTime,k=Date.now()-Number.parseFloat(y),Math.floor(k/864e5)>=365&&d.storage.clear(),d.initSession(s),d.onDirectUserAction("rqd_js_init",{}),setTimeout(function(){return d.lifeCycle.emit("init")},0),d.initDelayTime=s.delay?s.delay:1e3,d.cycleTask(d.initDelayTime)),d}return function(s,d){if(typeof d!="function"&&d!==null)throw new TypeError("Class extends value "+String(d)+" is not a constructor or null");function y(){this.constructor=s}a(s,d),s.prototype=d===null?Object.create(d):(y.prototype=d.prototype,new y)}(c,p),c.prototype.initSession=function(s){var d=18e5;s.sessionDuration&&s.sessionDuration>3e4&&(d=s.sessionDuration),this.beaconSession=new V(this.storage,d,this)},c.prototype.initCommonInfo=function(s){var d=Number(this.storage.getItem(O));try{var y=JSON.parse(this.storage.getItem(H));(Date.now()-d>3e4||!y)&&this.storage.setItem(H,JSON.stringify([]))}catch{}s.uploadUrl&&(this.uploadUrl=s.uploadUrl+"?appkey="+s.appkey);var k=[window.screen.width,window.screen.height];window.devicePixelRatio&&k.push(window.devicePixelRatio),this.commonInfo={deviceId:this.storage.createDeviceId(),language:navigator&&navigator.language||"zh_CN",query:window.location.search,userAgent:navigator.userAgent,pixel:k.join("*"),channelID:s.channelID?String(s.channelID):"",openid:s.openid?String(s.openid):"",unid:s.unionid?String(s.unionid):"",sdkVersion:ne},this.config.appVersion=s.versionCode?String(s.versionCode):"",this.config.strictMode=s.strictMode},c.prototype.cycleTask=function(s){var d=this;this.intervalID=window.setInterval(function(){d.pauseSearching||d.store.getEvents().then(function(y){y.length==0&&(d.pauseSearching=!0);var k=[],P=JSON.parse(d.storage.getItem(H));P||(P=[]),y&&y.forEach(function(Q){var de=I(Q.mapValue);P.indexOf(de)==-1&&(k.push(Q),P.push(de))}),k.length!=0&&(d.storage.setItem(H,JSON.stringify(P)),d._normalLogPipeline(d.assembleData(k)))}).catch(function(y){})},s)},c.prototype.onReport=function(s,d,y){var k=this;if(this.isUnderIE8)this.errorReport.reportError("601","UnderIE8");else{this.pauseSearching=!1;var P=this.generateData(s,d,y);if(y&&this.delayTime==0&&!this.underWeakNet)this._normalLogPipeline(this.assembleData(P));else{var Q=P.shift();Q&&this.store.insertEvent(Q,function(de){de&&k.errorReport.reportError("604","insertEvent fail!")}).catch(function(de){k._normalLogPipeline(k.assembleData(P))})}}},c.prototype.onSendBeacon=function(s,d){if(this.isUnderIE)this.errorReport.reportError("605","UnderIE");else{this.pauseSearching=!1;var y=this.assembleData(this.generateData(s,d,!0));typeof navigator.sendBeacon=="function"&&navigator.sendBeacon(this.uploadUrl||this.strategy.getUploadUrl(),JSON.stringify(y))}},c.prototype.generateData=function(s,d,y){var k=[],P="4.5.14-web_"+(y?"direct_log_id":"normal_log_id"),Q=Number(this.storage.getItem(P));return Q=Q||1,d=E(E({},d),{A99:y?"Y":"N",A100:Q.toString(),A72:ne,A88:this.logidStartTime}),Q++,this.storage.setItem(P,Q.toString()),k.push({eventCode:s,eventTime:Date.now().toString(),mapValue:G(d,this.config.strictMode)}),k},c.prototype.assembleData=function(s){var d=this.beaconSession.getSession();return{appVersion:this.config.appVersion?re(this.config.appVersion):"",sdkId:"js",sdkVersion:ne,mainAppKey:this.config.appkey,platformId:3,common:G(E(E({},this.additionalParams),{A2:this.commonInfo.deviceId,A8:this.commonInfo.openid,A12:this.commonInfo.language,A17:this.commonInfo.pixel,A23:this.commonInfo.channelID,A50:this.commonInfo.unid,A76:d.sessionId,A101:this.commonInfo.userAgent,A102:window.location.href,A104:document.referrer,A119:this.commonInfo.query,A153:this.qimei36}),!1),events:s}},c.prototype.monitorUploadFailed=function(){this.uselessCycleTaskNum++,this.uselessCycleTaskNum>=5&&(window.clearInterval(this.intervalID),this.cycleTask(6e4),this.underWeakNet=!0)},c.prototype.doCustomCycleTask=function(){this.uselessCycleTaskNum>=5&&(window.clearInterval(this.intervalID),this.cycleTask(this.initDelayTime)),this.uselessCycleTaskNum=0,this.underWeakNet=!1},c}(A)})},"./lib/crypto.js":function(i,t,e){(function(r){var l=e("./node_modules/@babel/runtime/helpers/typeof.js"),o=o||function(a,E){var w={},D=w.lib={},C=function(){},x=D.Base={extend:function(T){C.prototype=this;var A=new C;return T&&A.mixIn(T),A.hasOwnProperty("init")||(A.init=function(){A.$super.init.apply(this,arguments)}),A.init.prototype=A,A.$super=this,A},create:function(){var T=this.extend();return T.init.apply(T,arguments),T},init:function(){},mixIn:function(T){for(var A in T)T.hasOwnProperty(A)&&(this[A]=T[A]);T.hasOwnProperty("toString")&&(this.toString=T.toString)},clone:function(){return this.init.prototype.extend(this)}},O=D.WordArray=x.extend({init:function(T,A){T=this.words=T||[],this.sigBytes=A!=E?A:4*T.length},toString:function(T){return(T||L).stringify(this)},concat:function(T){var A=this.words,N=T.words,v=this.sigBytes;if(T=T.sigBytes,this.clamp(),v%4)for(var q=0;q>>2]|=(N[q>>>2]>>>24-8*(q%4)&255)<<24-8*((v+q)%4);else if(65535>>2]=N[q>>>2];else A.push.apply(A,N);return this.sigBytes+=T,this},clamp:function(){var T=this.words,A=this.sigBytes;T[A>>>2]&=4294967295<<32-8*(A%4),T.length=a.ceil(A/4)},clone:function(){var T=x.clone.call(this);return T.words=this.words.slice(0),T},random:function(T){for(var A=[],N=0;N>>2]>>>24-8*(v%4)&255;N.push((q>>>4).toString(16)),N.push((q&15).toString(16))}return N.join("")},parse:function(T){for(var A=T.length,N=[],v=0;v>>3]|=parseInt(T.substr(v,2),16)<<24-4*(v%8);return new O.init(N,A/2)}},M=H.Latin1={stringify:function(T){var A=T.words;T=T.sigBytes;for(var N=[],v=0;v>>2]>>>24-8*(v%4)&255));return N.join("")},parse:function(T){for(var A=T.length,N=[],v=0;v>>2]|=(T.charCodeAt(v)&255)<<24-8*(v%4);return new O.init(N,A)}},Y=H.Utf8={stringify:function(T){try{return decodeURIComponent(escape(M.stringify(T)))}catch{throw Error("Malformed UTF-8 data")}},parse:function(T){return M.parse(unescape(encodeURIComponent(T)))}},G=D.BufferedBlockAlgorithm=x.extend({reset:function(){this._data=new O.init,this._nDataBytes=0},_append:function(T){typeof T=="string"&&(T=Y.parse(T)),this._data.concat(T),this._nDataBytes+=T.sigBytes},_process:function(T){var A=this._data,N=A.words,v=A.sigBytes,q=this.blockSize,V=v/(4*q),V=T?a.ceil(V):a.max((V|0)-this._minBufferSize,0);if(T=V*q,v=a.min(4*T,v),T){for(var U=0;UT;T++){if(16>T)C[T]=O[H+T]|0;else{var A=C[T-3]^C[T-8]^C[T-14]^C[T-16];C[T]=A<<1|A>>>31}A=(M<<5|M>>>27)+I+C[T],A=20>T?A+((Y&G|~Y&re)+1518500249):40>T?A+((Y^G^re)+1859775393):60>T?A+((Y&G|Y&re|G&re)-1894007588):A+((Y^G^re)-899497514),I=re,re=G,G=Y<<30|Y>>>2,Y=M,M=A}L[0]=L[0]+M|0,L[1]=L[1]+Y|0,L[2]=L[2]+G|0,L[3]=L[3]+re|0,L[4]=L[4]+I|0},_doFinalize:function(){var O=this._data,H=O.words,L=8*this._nDataBytes,M=8*O.sigBytes;return H[M>>>5]|=128<<24-M%32,H[(M+64>>>9<<4)+14]=Math.floor(L/4294967296),H[(M+64>>>9<<4)+15]=L,O.sigBytes=4*H.length,this._process(),this._hash},clone:function(){var O=D.clone.call(this);return O._hash=this._hash.clone(),O}});a.SHA1=D._createHelper(E),a.HmacSHA1=D._createHmacHelper(E)})(),function(){var a=o,E=a.enc.Utf8;a.algo.HMAC=a.lib.Base.extend({init:function(D,C){D=this._hasher=new D.init,typeof C=="string"&&(C=E.parse(C));var x=D.blockSize,O=4*x;C.sigBytes>O&&(C=D.finalize(C)),C.clamp();for(var H=this._oKey=C.clone(),L=this._iKey=C.clone(),M=H.words,Y=L.words,G=0;G>>2]>>>24-Y%4*8&255,re=O[Y+1>>>2]>>>24-(Y+1)%4*8&255,I=O[Y+2>>>2]>>>24-(Y+2)%4*8&255,T=G<<16|re<<8|I,A=0;A<4&&Y+A*.75>>6*(3-A)&63));var N=L.charAt(64);if(N)for(;M.length%4;)M.push(N);return M.join("")},parse:function(x){var O=x.length,H=this._map,L=H.charAt(64);if(L){var M=x.indexOf(L);M!=-1&&(O=M)}for(var Y=[],G=0,re=0;re>>6-re%4*2;Y[G>>>2]|=(I|T)<<24-G%4*8,G++}return w.create(Y,G)},_map:"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/="}}(),l(r)==="object"?r.exports=o:window.CryptoJS=o}).call(this,e("./node_modules/webpack/buildin/module.js")(i))},"./lib/json2xml.js":function(i,t,e){var r=e("./node_modules/@babel/runtime/helpers/typeof.js"),l="a-zA-Z_\xC0-\xD6\xD8-\xF6\xF8-\xFF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FFF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD",o="-.0-9\xB7\u0300-\u036F\u203F\u2040",a=new RegExp("^([^"+l+"])|^((x|X)(m|M)(l|L))|([^"+l+o+"])","g"),E=/[^\x09\x0A\x0D\x20-\xFF\x85\xA0-\uD7FF\uE000-\uFDCF\uFDE0-\uFFFD]/gm,w=function(H){var L=[];if(H instanceof Object)for(var M in H)H.hasOwnProperty(M)&&L.push(M);return L},D=function(H,L){var M=function(G,re,I,T,A){var N=L.indent!==void 0?L.indent:" ",v=L.prettyPrint?` `+new Array(T).join(N):"";L.removeIllegalNameCharacters&&(G=G.replace(a,"_"));var q=[v,"<",G,I||""];return re&&re.length>0?(q.push(">"),q.push(re),A&&q.push(v),q.push("")):q.push("/>"),q.join("")};return function Y(G,re,I){var T=r(G);switch((Array.isArray?Array.isArray(G):G instanceof Array)?T="array":G instanceof Date&&(T="date"),T){case"array":var A=[];return G.map(function(V){A.push(Y(V,1,I+1))}),L.prettyPrint&&A.push(` `),A.join("");case"date":return G.toJSON?G.toJSON():G+"";case"object":var N=[];for(var v in G)if(G.hasOwnProperty(v))if(G[v]instanceof Array)for(var q=0;q0&&N.push(` `),N.join("");case"function":return G();default:return L.escape?x(G):""+G}}(H,0,0)},C=function(H){var L=['"),L.join("")};function x(O){return(""+O).replace(/&/g,"&").replace(//g,">").replace(/'/g,"'").replace(/"/g,""").replace(E,"")}i.exports=function(O,H){if(H||(H={xmlHeader:{standalone:!0},prettyPrint:!0,indent:" ",escape:!0}),typeof O=="string")try{O=JSON.parse(O.toString())}catch{return!1}var L="",M="";H&&(r(H)=="object"?(H.xmlHeader&&(L=C(!!H.xmlHeader.standalone)),typeof H.docType!="undefined"&&(M="")):L=C()),H=H||{};var Y=[L,H.prettyPrint&&M?` `:"",M,D(O,H)];return Y.join("").replace(/\n{2,}/g,` `).replace(/\s+$/g,"")}},"./lib/md5.js":function(module,exports,__webpack_require__){(function(process,global,module){var __WEBPACK_AMD_DEFINE_RESULT__,_typeof=__webpack_require__("./node_modules/@babel/runtime/helpers/typeof.js");(function(){var ERROR="input is invalid type",WINDOW=(typeof window=="undefined"?"undefined":_typeof(window))==="object",root=WINDOW?window:{};root.JS_MD5_NO_WINDOW&&(WINDOW=!1);var WEB_WORKER=!WINDOW&&(typeof self=="undefined"?"undefined":_typeof(self))==="object",NODE_JS=!root.JS_MD5_NO_NODE_JS&&(typeof process=="undefined"?"undefined":_typeof(process))==="object"&&process.versions&&process.versions.node;NODE_JS?root=global:WEB_WORKER&&(root=self);var COMMON_JS=!root.JS_MD5_NO_COMMON_JS&&_typeof(module)==="object"&&module.exports,AMD=__webpack_require__("./node_modules/webpack/buildin/amd-options.js"),ARRAY_BUFFER=!root.JS_MD5_NO_ARRAY_BUFFER&&typeof ArrayBuffer!="undefined",HEX_CHARS="0123456789abcdef".split(""),EXTRA=[128,32768,8388608,-2147483648],SHIFT=[0,8,16,24],OUTPUT_TYPES=["hex","array","digest","buffer","arrayBuffer","base64"],BASE64_ENCODE_CHAR="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/".split(""),blocks=[],buffer8;if(ARRAY_BUFFER){var buffer=new ArrayBuffer(68);buffer8=new Uint8Array(buffer),blocks=new Uint32Array(buffer)}(root.JS_MD5_NO_NODE_JS||!Array.isArray)&&(Array.isArray=function(i){return Object.prototype.toString.call(i)==="[object Array]"}),ARRAY_BUFFER&&(root.JS_MD5_NO_ARRAY_BUFFER_IS_VIEW||!ArrayBuffer.isView)&&(ArrayBuffer.isView=function(i){return _typeof(i)==="object"&&i.buffer&&i.buffer.constructor===ArrayBuffer});var createOutputMethod=function(t){return function(e,r){return new Md5(!0).update(e,r)[t]()}},createMethod=function(){var t=createOutputMethod("hex");NODE_JS&&(t=nodeWrap(t)),t.getCtx=t.create=function(){return new Md5},t.update=function(l){return t.create().update(l)};for(var e=0;e>6,E[l++]=128|e&63):e<55296||e>=57344?(E[l++]=224|e>>12,E[l++]=128|e>>6&63,E[l++]=128|e&63):(e=65536+((e&1023)<<10|i.charCodeAt(++r)&1023),E[l++]=240|e>>18,E[l++]=128|e>>12&63,E[l++]=128|e>>6&63,E[l++]=128|e&63);else for(l=this.start;r>2]|=e<>2]|=(192|e>>6)<>2]|=(128|e&63)<=57344?(a[l>>2]|=(224|e>>12)<>2]|=(128|e>>6&63)<>2]|=(128|e&63)<>2]|=(240|e>>18)<>2]|=(128|e>>12&63)<>2]|=(128|e>>6&63)<>2]|=(128|e&63)<=64?(this.start=l-64,this.hash(),this.hashed=!0):this.start=l}return this.bytes>4294967295&&(this.hBytes+=this.bytes/4294967296<<0,this.bytes=this.bytes%4294967296),this}},Md5.prototype.finalize=function(){if(!this.finalized){this.finalized=!0;var i=this.blocks,t=this.lastByteIndex;i[t>>2]|=EXTRA[t&3],t>=56&&(this.hashed||this.hash(),i[0]=i[16],i[16]=i[1]=i[2]=i[3]=i[4]=i[5]=i[6]=i[7]=i[8]=i[9]=i[10]=i[11]=i[12]=i[13]=i[14]=i[15]=0),i[14]=this.bytes<<3,i[15]=this.hBytes<<3|this.bytes>>>29,this.hash()}},Md5.prototype.hash=function(){var i,t,e,r,l,o,a=this.blocks;this.first?(i=a[0]-680876937,i=(i<<7|i>>>25)-271733879<<0,r=(-1732584194^i&2004318071)+a[1]-117830708,r=(r<<12|r>>>20)+i<<0,e=(-271733879^r&(i^-271733879))+a[2]-1126478375,e=(e<<17|e>>>15)+r<<0,t=(i^e&(r^i))+a[3]-1316259209,t=(t<<22|t>>>10)+e<<0):(i=this.h0,t=this.h1,e=this.h2,r=this.h3,i+=(r^t&(e^r))+a[0]-680876936,i=(i<<7|i>>>25)+t<<0,r+=(e^i&(t^e))+a[1]-389564586,r=(r<<12|r>>>20)+i<<0,e+=(t^r&(i^t))+a[2]+606105819,e=(e<<17|e>>>15)+r<<0,t+=(i^e&(r^i))+a[3]-1044525330,t=(t<<22|t>>>10)+e<<0),i+=(r^t&(e^r))+a[4]-176418897,i=(i<<7|i>>>25)+t<<0,r+=(e^i&(t^e))+a[5]+1200080426,r=(r<<12|r>>>20)+i<<0,e+=(t^r&(i^t))+a[6]-1473231341,e=(e<<17|e>>>15)+r<<0,t+=(i^e&(r^i))+a[7]-45705983,t=(t<<22|t>>>10)+e<<0,i+=(r^t&(e^r))+a[8]+1770035416,i=(i<<7|i>>>25)+t<<0,r+=(e^i&(t^e))+a[9]-1958414417,r=(r<<12|r>>>20)+i<<0,e+=(t^r&(i^t))+a[10]-42063,e=(e<<17|e>>>15)+r<<0,t+=(i^e&(r^i))+a[11]-1990404162,t=(t<<22|t>>>10)+e<<0,i+=(r^t&(e^r))+a[12]+1804603682,i=(i<<7|i>>>25)+t<<0,r+=(e^i&(t^e))+a[13]-40341101,r=(r<<12|r>>>20)+i<<0,e+=(t^r&(i^t))+a[14]-1502002290,e=(e<<17|e>>>15)+r<<0,t+=(i^e&(r^i))+a[15]+1236535329,t=(t<<22|t>>>10)+e<<0,i+=(e^r&(t^e))+a[1]-165796510,i=(i<<5|i>>>27)+t<<0,r+=(t^e&(i^t))+a[6]-1069501632,r=(r<<9|r>>>23)+i<<0,e+=(i^t&(r^i))+a[11]+643717713,e=(e<<14|e>>>18)+r<<0,t+=(r^i&(e^r))+a[0]-373897302,t=(t<<20|t>>>12)+e<<0,i+=(e^r&(t^e))+a[5]-701558691,i=(i<<5|i>>>27)+t<<0,r+=(t^e&(i^t))+a[10]+38016083,r=(r<<9|r>>>23)+i<<0,e+=(i^t&(r^i))+a[15]-660478335,e=(e<<14|e>>>18)+r<<0,t+=(r^i&(e^r))+a[4]-405537848,t=(t<<20|t>>>12)+e<<0,i+=(e^r&(t^e))+a[9]+568446438,i=(i<<5|i>>>27)+t<<0,r+=(t^e&(i^t))+a[14]-1019803690,r=(r<<9|r>>>23)+i<<0,e+=(i^t&(r^i))+a[3]-187363961,e=(e<<14|e>>>18)+r<<0,t+=(r^i&(e^r))+a[8]+1163531501,t=(t<<20|t>>>12)+e<<0,i+=(e^r&(t^e))+a[13]-1444681467,i=(i<<5|i>>>27)+t<<0,r+=(t^e&(i^t))+a[2]-51403784,r=(r<<9|r>>>23)+i<<0,e+=(i^t&(r^i))+a[7]+1735328473,e=(e<<14|e>>>18)+r<<0,t+=(r^i&(e^r))+a[12]-1926607734,t=(t<<20|t>>>12)+e<<0,l=t^e,i+=(l^r)+a[5]-378558,i=(i<<4|i>>>28)+t<<0,r+=(l^i)+a[8]-2022574463,r=(r<<11|r>>>21)+i<<0,o=r^i,e+=(o^t)+a[11]+1839030562,e=(e<<16|e>>>16)+r<<0,t+=(o^e)+a[14]-35309556,t=(t<<23|t>>>9)+e<<0,l=t^e,i+=(l^r)+a[1]-1530992060,i=(i<<4|i>>>28)+t<<0,r+=(l^i)+a[4]+1272893353,r=(r<<11|r>>>21)+i<<0,o=r^i,e+=(o^t)+a[7]-155497632,e=(e<<16|e>>>16)+r<<0,t+=(o^e)+a[10]-1094730640,t=(t<<23|t>>>9)+e<<0,l=t^e,i+=(l^r)+a[13]+681279174,i=(i<<4|i>>>28)+t<<0,r+=(l^i)+a[0]-358537222,r=(r<<11|r>>>21)+i<<0,o=r^i,e+=(o^t)+a[3]-722521979,e=(e<<16|e>>>16)+r<<0,t+=(o^e)+a[6]+76029189,t=(t<<23|t>>>9)+e<<0,l=t^e,i+=(l^r)+a[9]-640364487,i=(i<<4|i>>>28)+t<<0,r+=(l^i)+a[12]-421815835,r=(r<<11|r>>>21)+i<<0,o=r^i,e+=(o^t)+a[15]+530742520,e=(e<<16|e>>>16)+r<<0,t+=(o^e)+a[2]-995338651,t=(t<<23|t>>>9)+e<<0,i+=(e^(t|~r))+a[0]-198630844,i=(i<<6|i>>>26)+t<<0,r+=(t^(i|~e))+a[7]+1126891415,r=(r<<10|r>>>22)+i<<0,e+=(i^(r|~t))+a[14]-1416354905,e=(e<<15|e>>>17)+r<<0,t+=(r^(e|~i))+a[5]-57434055,t=(t<<21|t>>>11)+e<<0,i+=(e^(t|~r))+a[12]+1700485571,i=(i<<6|i>>>26)+t<<0,r+=(t^(i|~e))+a[3]-1894986606,r=(r<<10|r>>>22)+i<<0,e+=(i^(r|~t))+a[10]-1051523,e=(e<<15|e>>>17)+r<<0,t+=(r^(e|~i))+a[1]-2054922799,t=(t<<21|t>>>11)+e<<0,i+=(e^(t|~r))+a[8]+1873313359,i=(i<<6|i>>>26)+t<<0,r+=(t^(i|~e))+a[15]-30611744,r=(r<<10|r>>>22)+i<<0,e+=(i^(r|~t))+a[6]-1560198380,e=(e<<15|e>>>17)+r<<0,t+=(r^(e|~i))+a[13]+1309151649,t=(t<<21|t>>>11)+e<<0,i+=(e^(t|~r))+a[4]-145523070,i=(i<<6|i>>>26)+t<<0,r+=(t^(i|~e))+a[11]-1120210379,r=(r<<10|r>>>22)+i<<0,e+=(i^(r|~t))+a[2]+718787259,e=(e<<15|e>>>17)+r<<0,t+=(r^(e|~i))+a[9]-343485551,t=(t<<21|t>>>11)+e<<0,this.first?(this.h0=i+1732584193<<0,this.h1=t-271733879<<0,this.h2=e-1732584194<<0,this.h3=r+271733878<<0,this.first=!1):(this.h0=this.h0+i<<0,this.h1=this.h1+t<<0,this.h2=this.h2+e<<0,this.h3=this.h3+r<<0)},Md5.prototype.hex=function(){this.finalize();var i=this.h0,t=this.h1,e=this.h2,r=this.h3;return HEX_CHARS[i>>4&15]+HEX_CHARS[i&15]+HEX_CHARS[i>>12&15]+HEX_CHARS[i>>8&15]+HEX_CHARS[i>>20&15]+HEX_CHARS[i>>16&15]+HEX_CHARS[i>>28&15]+HEX_CHARS[i>>24&15]+HEX_CHARS[t>>4&15]+HEX_CHARS[t&15]+HEX_CHARS[t>>12&15]+HEX_CHARS[t>>8&15]+HEX_CHARS[t>>20&15]+HEX_CHARS[t>>16&15]+HEX_CHARS[t>>28&15]+HEX_CHARS[t>>24&15]+HEX_CHARS[e>>4&15]+HEX_CHARS[e&15]+HEX_CHARS[e>>12&15]+HEX_CHARS[e>>8&15]+HEX_CHARS[e>>20&15]+HEX_CHARS[e>>16&15]+HEX_CHARS[e>>28&15]+HEX_CHARS[e>>24&15]+HEX_CHARS[r>>4&15]+HEX_CHARS[r&15]+HEX_CHARS[r>>12&15]+HEX_CHARS[r>>8&15]+HEX_CHARS[r>>20&15]+HEX_CHARS[r>>16&15]+HEX_CHARS[r>>28&15]+HEX_CHARS[r>>24&15]},Md5.prototype.toString=Md5.prototype.hex,Md5.prototype.digest=function(i){if(i==="hex")return this.hex();this.finalize();var t=this.h0,e=this.h1,r=this.h2,l=this.h3,o=[t&255,t>>8&255,t>>16&255,t>>24&255,e&255,e>>8&255,e>>16&255,e>>24&255,r&255,r>>8&255,r>>16&255,r>>24&255,l&255,l>>8&255,l>>16&255,l>>24&255];return o},Md5.prototype.array=Md5.prototype.digest,Md5.prototype.arrayBuffer=function(){this.finalize();var i=new ArrayBuffer(16),t=new Uint32Array(i);return t[0]=this.h0,t[1]=this.h1,t[2]=this.h2,t[3]=this.h3,i},Md5.prototype.buffer=Md5.prototype.arrayBuffer,Md5.prototype.base64=function(){for(var i,t,e,r="",l=this.array(),o=0;o<15;)i=l[o++],t=l[o++],e=l[o++],r+=BASE64_ENCODE_CHAR[i>>>2]+BASE64_ENCODE_CHAR[(i<<4|t>>>4)&63]+BASE64_ENCODE_CHAR[(t<<2|e>>>6)&63]+BASE64_ENCODE_CHAR[e&63];return i=l[o],r+=BASE64_ENCODE_CHAR[i>>>2]+BASE64_ENCODE_CHAR[i<<4&63]+"==",r};var exports=createMethod();COMMON_JS?module.exports=exports:(root.md5=exports,AMD&&(__WEBPACK_AMD_DEFINE_RESULT__=function(){return exports}.call(exports,__webpack_require__,exports,module),__WEBPACK_AMD_DEFINE_RESULT__!==void 0&&(module.exports=__WEBPACK_AMD_DEFINE_RESULT__)))})()}).call(this,__webpack_require__("./node_modules/process/browser.js"),__webpack_require__("./node_modules/webpack/buildin/global.js"),__webpack_require__("./node_modules/webpack/buildin/module.js")(module))},"./lib/request.js":function(i,t,e){var r=e("./node_modules/@babel/runtime/helpers/typeof.js"),l=function(C){switch(r(C)){case"string":return C;case"boolean":return C?"true":"false";case"number":return isFinite(C)?C:"";default:return""}},o=function(C,x,O,H){return x=x||"&",O=O||"=",C===null&&(C=void 0),r(C)==="object"?Object.keys(C).map(function(L){var M=encodeURIComponent(l(L))+O;return Array.isArray(C[L])?C[L].map(function(Y){return M+encodeURIComponent(l(Y))}).join(x):M+encodeURIComponent(l(C[L]))}).filter(Boolean).join(x):H?encodeURIComponent(l(H))+O+encodeURIComponent(l(C)):""},a=function(C,x,O){var H={};return x.getAllResponseHeaders().trim().split(` `).forEach(function(L){if(L){var M=L.indexOf(":"),Y=L.substr(0,M).trim().toLowerCase(),G=L.substr(M+1).trim();H[Y]=G}}),{error:C,statusCode:x.status,statusMessage:x.statusText,headers:H,body:O}},E=function(C,x){return!x&&x==="text"?C.responseText:C.response},w=function(C,x){var O=(C.method||"GET").toUpperCase(),H=C.url;if(C.qs){var L=o(C.qs);L&&(H+=(H.indexOf("?")===-1?"?":"&")+L)}var M=new XMLHttpRequest;if(M.open(O,H,!0),M.responseType=C.dataType||"text",C.xhrFields)for(var Y in C.xhrFields)M[Y]=C.xhrFields[Y];var G=C.headers;if(G)for(var re in G)G.hasOwnProperty(re)&&re.toLowerCase()!=="content-length"&&re.toLowerCase()!=="user-agent"&&re.toLowerCase()!=="origin"&&re.toLowerCase()!=="host"&&M.setRequestHeader(re,G[re]);return C.onProgress&&M.upload&&(M.upload.onprogress=C.onProgress),C.onDownloadProgress&&(M.onprogress=C.onDownloadProgress),C.timeout&&(M.timeout=C.timeout),M.ontimeout=function(I){var T=new Error("timeout");x(a(T,M))},M.onload=function(){x(a(null,M,E(M,C.dataType)))},M.onerror=function(I){var T=E(M,C.dataType);if(T)x(a(null,M,T));else{var A=M.statusText;!A&&M.status===0&&(A=new Error("CORS blocked or network error")),x(a(A,M,T))}},M.send(C.body||""),M};i.exports=w},"./lib/xml2json.js":function(i,t,e){var r=e("./node_modules/@xmldom/xmldom/lib/index.js").DOMParser,l=function(){this.version="1.3.5";var a={mergeCDATA:!0,normalize:!0,stripElemPrefix:!0},E=new RegExp(/(?!xmlns)^.*:/);return this.grokType=function(w){return/^\s*$/.test(w)?null:/^(?:true|false)$/i.test(w)?w.toLowerCase()==="true":isFinite(w)?parseFloat(w):w},this.parseString=function(w,D){if(w){var C=this.stringToXML(w);return C.getElementsByTagName("parsererror").length?null:this.parseXML(C,D)}else return null},this.parseXML=function(w,D){for(var C in D)a[C]=D[C];var x={},O=0,H="",L=w.childNodes.length;if(L)for(var M,Y,G,re=0;re=T+A||T?new java.lang.String(I,T,A)+"":I}"endDTD,startEntity,endEntity,attributeDecl,elementDecl,externalEntityDecl,internalEntityDecl,resolveEntity,getExternalSubset,notationDecl,unparsedEntityDecl".replace(/\w+/g,function(I){L.prototype[I]=function(){return null}});function re(I,T){I.currentElement?I.currentElement.appendChild(T):I.doc.appendChild(T)}t.__DOMHandler=L,t.normalizeLineEndings=x,t.DOMParser=O},"./node_modules/@xmldom/xmldom/lib/dom.js":function(i,t,e){var r=e("./node_modules/@xmldom/xmldom/lib/conventions.js"),l=r.find,o=r.NAMESPACE;function a(f){return f!==""}function E(f){return f?f.split(/[\t\n\f\r ]+/).filter(a):[]}function w(f,g){return f.hasOwnProperty(g)||(f[g]=!0),f}function D(f){if(!f)return[];var g=E(f);return Object.keys(g.reduce(w,{}))}function C(f){return function(g){return f&&f.indexOf(g)!==-1}}function x(f,g){for(var R in f)Object.prototype.hasOwnProperty.call(f,R)&&(g[R]=f[R])}function O(f,g){var R=f.prototype;if(!(R instanceof g)){let z=function(){};z.prototype=g.prototype,z=new z,x(R,z),f.prototype=R=z}R.constructor!=f&&(typeof f!="function"&&console.error("unknown Class:"+f),R.constructor=f)}var H={},L=H.ELEMENT_NODE=1,M=H.ATTRIBUTE_NODE=2,Y=H.TEXT_NODE=3,G=H.CDATA_SECTION_NODE=4,re=H.ENTITY_REFERENCE_NODE=5,I=H.ENTITY_NODE=6,T=H.PROCESSING_INSTRUCTION_NODE=7,A=H.COMMENT_NODE=8,N=H.DOCUMENT_NODE=9,v=H.DOCUMENT_TYPE_NODE=10,q=H.DOCUMENT_FRAGMENT_NODE=11,V=H.NOTATION_NODE=12,U={},K={};U.INDEX_SIZE_ERR=(K[1]="Index size error",1),U.DOMSTRING_SIZE_ERR=(K[2]="DOMString size error",2);var B=U.HIERARCHY_REQUEST_ERR=(K[3]="Hierarchy request error",3);U.WRONG_DOCUMENT_ERR=(K[4]="Wrong document",4),U.INVALID_CHARACTER_ERR=(K[5]="Invalid character",5),U.NO_DATA_ALLOWED_ERR=(K[6]="No data allowed",6),U.NO_MODIFICATION_ALLOWED_ERR=(K[7]="No modification allowed",7);var j=U.NOT_FOUND_ERR=(K[8]="Not found",8);U.NOT_SUPPORTED_ERR=(K[9]="Not supported",9);var X=U.INUSE_ATTRIBUTE_ERR=(K[10]="Attribute in use",10);U.INVALID_STATE_ERR=(K[11]="Invalid state",11),U.SYNTAX_ERR=(K[12]="Syntax error",12),U.INVALID_MODIFICATION_ERR=(K[13]="Invalid modification",13),U.NAMESPACE_ERR=(K[14]="Invalid namespace",14),U.INVALID_ACCESS_ERR=(K[15]="Invalid access",15);function W(f,g){if(g instanceof Error)var R=g;else R=this,Error.call(this,K[f]),this.message=K[f],Error.captureStackTrace&&Error.captureStackTrace(this,W);return R.code=f,g&&(this.message=this.message+": "+g),R}W.prototype=Error.prototype,x(U,W);function J(){}J.prototype={length:0,item:function(f){return f>=0&&f=0){for(var fe=g.length-1;z0},lookupPrefix:function(f){for(var g=this;g;){var R=g._nsMap;if(R){for(var z in R)if(Object.prototype.hasOwnProperty.call(R,z)&&R[z]===f)return z}g=g.nodeType==M?g.ownerDocument:g.parentNode}return null},lookupNamespaceURI:function(f){for(var g=this;g;){var R=g._nsMap;if(R&&Object.prototype.hasOwnProperty.call(R,f))return R[f];g=g.nodeType==M?g.ownerDocument:g.parentNode}return null},isDefaultNamespace:function(f){var g=this.lookupPrefix(f);return g==null}};function te(f){return f=="<"&&"<"||f==">"&&">"||f=="&"&&"&"||f=='"'&&"""||"&#"+f.charCodeAt()+";"}x(H,Z),x(H,Z.prototype);function ge(f,g){if(g(f))return!0;if(f=f.firstChild)do if(ge(f,g))return!0;while(f=f.nextSibling)}function ye(){this.ownerDocument=this}function ve(f,g,R){f&&f._inc++;var z=R.namespaceURI;z===o.XMLNS&&(g._nsMap[R.prefix?R.localName:""]=R.value)}function me(f,g,R,z){f&&f._inc++;var fe=R.namespaceURI;fe===o.XMLNS&&delete g._nsMap[R.prefix?R.localName:""]}function Ce(f,g,R){if(f&&f._inc){f._inc++;var z=g.childNodes;if(R)z[z.length++]=R;else{for(var fe=g.firstChild,Be=0;fe;)z[Be++]=fe,fe=fe.nextSibling;z.length=Be,delete z[z.length]}}}function Ae(f,g){var R=g.previousSibling,z=g.nextSibling;return R?R.nextSibling=z:f.firstChild=z,z?z.previousSibling=R:f.lastChild=R,g.parentNode=null,g.previousSibling=null,g.nextSibling=null,Ce(f.ownerDocument,f),g}function De(f){return f&&(f.nodeType===Z.DOCUMENT_NODE||f.nodeType===Z.DOCUMENT_FRAGMENT_NODE||f.nodeType===Z.ELEMENT_NODE)}function be(f){return f&&(_e(f)||qe(f)||we(f)||f.nodeType===Z.DOCUMENT_FRAGMENT_NODE||f.nodeType===Z.COMMENT_NODE||f.nodeType===Z.PROCESSING_INSTRUCTION_NODE)}function we(f){return f&&f.nodeType===Z.DOCUMENT_TYPE_NODE}function _e(f){return f&&f.nodeType===Z.ELEMENT_NODE}function qe(f){return f&&f.nodeType===Z.TEXT_NODE}function Me(f,g){var R=f.childNodes||[];if(l(R,_e)||we(g))return!1;var z=l(R,we);return!(g&&z&&R.indexOf(z)>R.indexOf(g))}function ne(f,g){var R=f.childNodes||[];function z(Be){return _e(Be)&&Be!==g}if(l(R,z))return!1;var fe=l(R,we);return!(g&&fe&&R.indexOf(fe)>R.indexOf(g))}function p(f,g,R){if(!De(f))throw new W(B,"Unexpected parent node type "+f.nodeType);if(R&&R.parentNode!==f)throw new W(j,"child not in parent");if(!be(g)||we(g)&&f.nodeType!==Z.DOCUMENT_NODE)throw new W(B,"Unexpected node type "+g.nodeType+" for parent node type "+f.nodeType)}function c(f,g,R){var z=f.childNodes||[],fe=g.childNodes||[];if(g.nodeType===Z.DOCUMENT_FRAGMENT_NODE){var Be=fe.filter(_e);if(Be.length>1||l(fe,qe))throw new W(B,"More than one element or text in fragment");if(Be.length===1&&!Me(f,R))throw new W(B,"Element in fragment can not be inserted before doctype")}if(_e(g)&&!Me(f,R))throw new W(B,"Only one element can be added and only after doctype");if(we(g)){if(l(z,we))throw new W(B,"Only one doctype is allowed");var Le=l(z,_e);if(R&&z.indexOf(Le)1||l(fe,qe))throw new W(B,"More than one element or text in fragment");if(Be.length===1&&!ne(f,R))throw new W(B,"Element in fragment can not be inserted before doctype")}if(_e(g)&&!ne(f,R))throw new W(B,"Only one element can be added and only after doctype");if(we(g)){if(l(z,function(Ye){return we(Ye)&&Ye!==R}))throw new W(B,"Only one doctype is allowed");var Le=l(z,_e);if(R&&z.indexOf(Le)0&&ge(R.documentElement,function(fe){if(fe!==R&&fe.nodeType===L){var Be=fe.getAttribute("class");if(Be){var Le=f===Be;if(!Le){var ue=D(Be);Le=g.every(C(ue))}Le&&z.push(fe)}}}),z})},createElement:function(f){var g=new k;g.ownerDocument=this,g.nodeName=f,g.tagName=f,g.localName=f,g.childNodes=new J;var R=g.attributes=new oe;return R._ownerElement=g,g},createDocumentFragment:function(){var f=new Fe;return f.ownerDocument=this,f.childNodes=new J,f},createTextNode:function(f){var g=new de;return g.ownerDocument=this,g.appendData(f),g},createComment:function(f){var g=new he;return g.ownerDocument=this,g.appendData(f),g},createCDATASection:function(f){var g=new $;return g.ownerDocument=this,g.appendData(f),g},createProcessingInstruction:function(f,g){var R=new Ve;return R.ownerDocument=this,R.tagName=R.nodeName=R.target=f,R.nodeValue=R.data=g,R},createAttribute:function(f){var g=new P;return g.ownerDocument=this,g.name=f,g.nodeName=f,g.localName=f,g.specified=!0,g},createEntityReference:function(f){var g=new ke;return g.ownerDocument=this,g.nodeName=f,g},createElementNS:function(f,g){var R=new k,z=g.split(":"),fe=R.attributes=new oe;return R.childNodes=new J,R.ownerDocument=this,R.nodeName=g,R.tagName=g,R.namespaceURI=f,z.length==2?(R.prefix=z[0],R.localName=z[1]):R.localName=g,fe._ownerElement=R,R},createAttributeNS:function(f,g){var R=new P,z=g.split(":");return R.ownerDocument=this,R.nodeName=g,R.name=g,R.namespaceURI=f,R.specified=!0,z.length==2?(R.prefix=z[0],R.localName=z[1]):R.localName=g,R}},O(ye,Z);function k(){this._nsMap={}}k.prototype={nodeType:L,hasAttribute:function(f){return this.getAttributeNode(f)!=null},getAttribute:function(f){var g=this.getAttributeNode(f);return g&&g.value||""},getAttributeNode:function(f){return this.attributes.getNamedItem(f)},setAttribute:function(f,g){var R=this.ownerDocument.createAttribute(f);R.value=R.nodeValue=""+g,this.setAttributeNode(R)},removeAttribute:function(f){var g=this.getAttributeNode(f);g&&this.removeAttributeNode(g)},appendChild:function(f){return f.nodeType===q?this.insertBefore(f,null):y(this,f)},setAttributeNode:function(f){return this.attributes.setNamedItem(f)},setAttributeNodeNS:function(f){return this.attributes.setNamedItemNS(f)},removeAttributeNode:function(f){return this.attributes.removeNamedItem(f.nodeName)},removeAttributeNS:function(f,g){var R=this.getAttributeNodeNS(f,g);R&&this.removeAttributeNode(R)},hasAttributeNS:function(f,g){return this.getAttributeNodeNS(f,g)!=null},getAttributeNS:function(f,g){var R=this.getAttributeNodeNS(f,g);return R&&R.value||""},setAttributeNS:function(f,g,R){var z=this.ownerDocument.createAttributeNS(f,g);z.value=z.nodeValue=""+R,this.setAttributeNode(z)},getAttributeNodeNS:function(f,g){return this.attributes.getNamedItemNS(f,g)},getElementsByTagName:function(f){return new se(this,function(g){var R=[];return ge(g,function(z){z!==g&&z.nodeType==L&&(f==="*"||z.tagName==f)&&R.push(z)}),R})},getElementsByTagNameNS:function(f,g){return new se(this,function(R){var z=[];return ge(R,function(fe){fe!==R&&fe.nodeType===L&&(f==="*"||fe.namespaceURI===f)&&(g==="*"||fe.localName==g)&&z.push(fe)}),z})}},ye.prototype.getElementsByTagName=k.prototype.getElementsByTagName,ye.prototype.getElementsByTagNameNS=k.prototype.getElementsByTagNameNS,O(k,Z);function P(){}P.prototype.nodeType=M,O(P,Z);function Q(){}Q.prototype={data:"",substringData:function(f,g){return this.data.substring(f,f+g)},appendData:function(f){f=this.data+f,this.nodeValue=this.data=f,this.length=f.length},insertData:function(f,g){this.replaceData(f,0,g)},appendChild:function(f){throw new Error(K[B])},deleteData:function(f,g){this.replaceData(f,g,"")},replaceData:function(f,g,R){var z=this.data.substring(0,f),fe=this.data.substring(f+g);R=z+R+fe,this.nodeValue=this.data=R,this.length=R.length}},O(Q,Z);function de(){}de.prototype={nodeName:"#text",nodeType:Y,splitText:function(f){var g=this.data,R=g.substring(f);g=g.substring(0,f),this.data=this.nodeValue=g,this.length=g.length;var z=this.ownerDocument.createTextNode(R);return this.parentNode&&this.parentNode.insertBefore(z,this.nextSibling),z}},O(de,Q);function he(){}he.prototype={nodeName:"#comment",nodeType:A},O(he,Q);function $(){}$.prototype={nodeName:"#cdata-section",nodeType:G},O($,Q);function Te(){}Te.prototype.nodeType=v,O(Te,Z);function Ie(){}Ie.prototype.nodeType=V,O(Ie,Z);function Pe(){}Pe.prototype.nodeType=I,O(Pe,Z);function ke(){}ke.prototype.nodeType=re,O(ke,Z);function Fe(){}Fe.prototype.nodeName="#document-fragment",Fe.prototype.nodeType=q,O(Fe,Z);function Ve(){}Ve.prototype.nodeType=T,O(Ve,Z);function Ke(){}Ke.prototype.serializeToString=function(f,g,R){return Ge.call(f,g,R)},Z.prototype.toString=Ge;function Ge(f,g){var R=[],z=this.nodeType==9&&this.documentElement||this,fe=z.prefix,Be=z.namespaceURI;if(Be&&fe==null){var fe=z.lookupPrefix(Be);if(fe==null)var Le=[{namespace:Be,prefix:null}]}return Xe(this,R,f,g,Le),R.join("")}function ze(f,g,R){var z=f.prefix||"",fe=f.namespaceURI;if(!fe||z==="xml"&&fe===o.XML||fe===o.XMLNS)return!1;for(var Be=R.length;Be--;){var Le=R[Be];if(Le.prefix===z)return Le.namespace!==fe}return!0}function We(f,g,R){f.push(" ",g,'="',R.replace(/[<>&"\t\n\r]/g,te),'"')}function Xe(f,g,R,z,fe){if(fe||(fe=[]),z)if(f=z(f),f){if(typeof f=="string"){g.push(f);return}}else return;switch(f.nodeType){case L:var Be=f.attributes,Le=Be.length,ue=f.firstChild,Ye=f.tagName;R=o.isHTML(f.namespaceURI)||R;var Qe=Ye;if(!R&&!f.prefix&&f.namespaceURI){for(var Je,n=0;n=0;m--){var u=fe[m];if(u.prefix===""&&u.namespace===f.namespaceURI){Je=u.namespace;break}}if(Je!==f.namespaceURI)for(var m=fe.length-1;m>=0;m--){var u=fe[m];if(u.namespace===f.namespaceURI){u.prefix&&(Qe=u.prefix+":"+Ye);break}}}g.push("<",Qe);for(var h=0;h"),R&&/^script$/i.test(Ye))for(;ue;)ue.data?g.push(ue.data):Xe(ue,g,R,z,fe.slice()),ue=ue.nextSibling;else for(;ue;)Xe(ue,g,R,z,fe.slice()),ue=ue.nextSibling;g.push("")}else g.push("/>");return;case N:case q:for(var ue=f.firstChild;ue;)Xe(ue,g,R,z,fe.slice()),ue=ue.nextSibling;return;case M:return We(g,f.name,f.value);case Y:return g.push(f.data.replace(/[<&>]/g,te));case G:return g.push("");case A:return g.push("");case v:var F=f.publicId,ee=f.systemId;if(g.push("");else if(ee&&ee!=".")g.push(" SYSTEM ",ee,">");else{var Re=f.internalSubset;Re&&g.push(" [",Re,"]"),g.push(">")}return;case T:return g.push("");case re:return g.push("&",f.nodeName,";");default:g.push("??",f.nodeName)}}function rt(f,g,R){var z;switch(g.nodeType){case L:z=g.cloneNode(!1),z.ownerDocument=f;case q:break;case M:R=!0;break}if(z||(z=g.cloneNode(!1)),z.ownerDocument=f,z.parentNode=null,R)for(var fe=g.firstChild;fe;)z.appendChild(rt(f,fe,R)),fe=fe.nextSibling;return z}function et(f,g,R){var z=new g.constructor;for(var fe in g)if(Object.prototype.hasOwnProperty.call(g,fe)){var Be=g[fe];typeof Be!="object"&&Be!=z[fe]&&(z[fe]=Be)}switch(g.childNodes&&(z.childNodes=new J),z.ownerDocument=f,z.nodeType){case L:var Le=g.attributes,ue=z.attributes=new oe,Ye=Le.length;ue._ownerElement=z;for(var Qe=0;Qe",lt:"<",quot:'"'}),t.HTML_ENTITIES=r({Aacute:"\xC1",aacute:"\xE1",Abreve:"\u0102",abreve:"\u0103",ac:"\u223E",acd:"\u223F",acE:"\u223E\u0333",Acirc:"\xC2",acirc:"\xE2",acute:"\xB4",Acy:"\u0410",acy:"\u0430",AElig:"\xC6",aelig:"\xE6",af:"\u2061",Afr:"\u{1D504}",afr:"\u{1D51E}",Agrave:"\xC0",agrave:"\xE0",alefsym:"\u2135",aleph:"\u2135",Alpha:"\u0391",alpha:"\u03B1",Amacr:"\u0100",amacr:"\u0101",amalg:"\u2A3F",AMP:"&",amp:"&",And:"\u2A53",and:"\u2227",andand:"\u2A55",andd:"\u2A5C",andslope:"\u2A58",andv:"\u2A5A",ang:"\u2220",ange:"\u29A4",angle:"\u2220",angmsd:"\u2221",angmsdaa:"\u29A8",angmsdab:"\u29A9",angmsdac:"\u29AA",angmsdad:"\u29AB",angmsdae:"\u29AC",angmsdaf:"\u29AD",angmsdag:"\u29AE",angmsdah:"\u29AF",angrt:"\u221F",angrtvb:"\u22BE",angrtvbd:"\u299D",angsph:"\u2222",angst:"\xC5",angzarr:"\u237C",Aogon:"\u0104",aogon:"\u0105",Aopf:"\u{1D538}",aopf:"\u{1D552}",ap:"\u2248",apacir:"\u2A6F",apE:"\u2A70",ape:"\u224A",apid:"\u224B",apos:"'",ApplyFunction:"\u2061",approx:"\u2248",approxeq:"\u224A",Aring:"\xC5",aring:"\xE5",Ascr:"\u{1D49C}",ascr:"\u{1D4B6}",Assign:"\u2254",ast:"*",asymp:"\u2248",asympeq:"\u224D",Atilde:"\xC3",atilde:"\xE3",Auml:"\xC4",auml:"\xE4",awconint:"\u2233",awint:"\u2A11",backcong:"\u224C",backepsilon:"\u03F6",backprime:"\u2035",backsim:"\u223D",backsimeq:"\u22CD",Backslash:"\u2216",Barv:"\u2AE7",barvee:"\u22BD",Barwed:"\u2306",barwed:"\u2305",barwedge:"\u2305",bbrk:"\u23B5",bbrktbrk:"\u23B6",bcong:"\u224C",Bcy:"\u0411",bcy:"\u0431",bdquo:"\u201E",becaus:"\u2235",Because:"\u2235",because:"\u2235",bemptyv:"\u29B0",bepsi:"\u03F6",bernou:"\u212C",Bernoullis:"\u212C",Beta:"\u0392",beta:"\u03B2",beth:"\u2136",between:"\u226C",Bfr:"\u{1D505}",bfr:"\u{1D51F}",bigcap:"\u22C2",bigcirc:"\u25EF",bigcup:"\u22C3",bigodot:"\u2A00",bigoplus:"\u2A01",bigotimes:"\u2A02",bigsqcup:"\u2A06",bigstar:"\u2605",bigtriangledown:"\u25BD",bigtriangleup:"\u25B3",biguplus:"\u2A04",bigvee:"\u22C1",bigwedge:"\u22C0",bkarow:"\u290D",blacklozenge:"\u29EB",blacksquare:"\u25AA",blacktriangle:"\u25B4",blacktriangledown:"\u25BE",blacktriangleleft:"\u25C2",blacktriangleright:"\u25B8",blank:"\u2423",blk12:"\u2592",blk14:"\u2591",blk34:"\u2593",block:"\u2588",bne:"=\u20E5",bnequiv:"\u2261\u20E5",bNot:"\u2AED",bnot:"\u2310",Bopf:"\u{1D539}",bopf:"\u{1D553}",bot:"\u22A5",bottom:"\u22A5",bowtie:"\u22C8",boxbox:"\u29C9",boxDL:"\u2557",boxDl:"\u2556",boxdL:"\u2555",boxdl:"\u2510",boxDR:"\u2554",boxDr:"\u2553",boxdR:"\u2552",boxdr:"\u250C",boxH:"\u2550",boxh:"\u2500",boxHD:"\u2566",boxHd:"\u2564",boxhD:"\u2565",boxhd:"\u252C",boxHU:"\u2569",boxHu:"\u2567",boxhU:"\u2568",boxhu:"\u2534",boxminus:"\u229F",boxplus:"\u229E",boxtimes:"\u22A0",boxUL:"\u255D",boxUl:"\u255C",boxuL:"\u255B",boxul:"\u2518",boxUR:"\u255A",boxUr:"\u2559",boxuR:"\u2558",boxur:"\u2514",boxV:"\u2551",boxv:"\u2502",boxVH:"\u256C",boxVh:"\u256B",boxvH:"\u256A",boxvh:"\u253C",boxVL:"\u2563",boxVl:"\u2562",boxvL:"\u2561",boxvl:"\u2524",boxVR:"\u2560",boxVr:"\u255F",boxvR:"\u255E",boxvr:"\u251C",bprime:"\u2035",Breve:"\u02D8",breve:"\u02D8",brvbar:"\xA6",Bscr:"\u212C",bscr:"\u{1D4B7}",bsemi:"\u204F",bsim:"\u223D",bsime:"\u22CD",bsol:"\\",bsolb:"\u29C5",bsolhsub:"\u27C8",bull:"\u2022",bullet:"\u2022",bump:"\u224E",bumpE:"\u2AAE",bumpe:"\u224F",Bumpeq:"\u224E",bumpeq:"\u224F",Cacute:"\u0106",cacute:"\u0107",Cap:"\u22D2",cap:"\u2229",capand:"\u2A44",capbrcup:"\u2A49",capcap:"\u2A4B",capcup:"\u2A47",capdot:"\u2A40",CapitalDifferentialD:"\u2145",caps:"\u2229\uFE00",caret:"\u2041",caron:"\u02C7",Cayleys:"\u212D",ccaps:"\u2A4D",Ccaron:"\u010C",ccaron:"\u010D",Ccedil:"\xC7",ccedil:"\xE7",Ccirc:"\u0108",ccirc:"\u0109",Cconint:"\u2230",ccups:"\u2A4C",ccupssm:"\u2A50",Cdot:"\u010A",cdot:"\u010B",cedil:"\xB8",Cedilla:"\xB8",cemptyv:"\u29B2",cent:"\xA2",CenterDot:"\xB7",centerdot:"\xB7",Cfr:"\u212D",cfr:"\u{1D520}",CHcy:"\u0427",chcy:"\u0447",check:"\u2713",checkmark:"\u2713",Chi:"\u03A7",chi:"\u03C7",cir:"\u25CB",circ:"\u02C6",circeq:"\u2257",circlearrowleft:"\u21BA",circlearrowright:"\u21BB",circledast:"\u229B",circledcirc:"\u229A",circleddash:"\u229D",CircleDot:"\u2299",circledR:"\xAE",circledS:"\u24C8",CircleMinus:"\u2296",CirclePlus:"\u2295",CircleTimes:"\u2297",cirE:"\u29C3",cire:"\u2257",cirfnint:"\u2A10",cirmid:"\u2AEF",cirscir:"\u29C2",ClockwiseContourIntegral:"\u2232",CloseCurlyDoubleQuote:"\u201D",CloseCurlyQuote:"\u2019",clubs:"\u2663",clubsuit:"\u2663",Colon:"\u2237",colon:":",Colone:"\u2A74",colone:"\u2254",coloneq:"\u2254",comma:",",commat:"@",comp:"\u2201",compfn:"\u2218",complement:"\u2201",complexes:"\u2102",cong:"\u2245",congdot:"\u2A6D",Congruent:"\u2261",Conint:"\u222F",conint:"\u222E",ContourIntegral:"\u222E",Copf:"\u2102",copf:"\u{1D554}",coprod:"\u2210",Coproduct:"\u2210",COPY:"\xA9",copy:"\xA9",copysr:"\u2117",CounterClockwiseContourIntegral:"\u2233",crarr:"\u21B5",Cross:"\u2A2F",cross:"\u2717",Cscr:"\u{1D49E}",cscr:"\u{1D4B8}",csub:"\u2ACF",csube:"\u2AD1",csup:"\u2AD0",csupe:"\u2AD2",ctdot:"\u22EF",cudarrl:"\u2938",cudarrr:"\u2935",cuepr:"\u22DE",cuesc:"\u22DF",cularr:"\u21B6",cularrp:"\u293D",Cup:"\u22D3",cup:"\u222A",cupbrcap:"\u2A48",CupCap:"\u224D",cupcap:"\u2A46",cupcup:"\u2A4A",cupdot:"\u228D",cupor:"\u2A45",cups:"\u222A\uFE00",curarr:"\u21B7",curarrm:"\u293C",curlyeqprec:"\u22DE",curlyeqsucc:"\u22DF",curlyvee:"\u22CE",curlywedge:"\u22CF",curren:"\xA4",curvearrowleft:"\u21B6",curvearrowright:"\u21B7",cuvee:"\u22CE",cuwed:"\u22CF",cwconint:"\u2232",cwint:"\u2231",cylcty:"\u232D",Dagger:"\u2021",dagger:"\u2020",daleth:"\u2138",Darr:"\u21A1",dArr:"\u21D3",darr:"\u2193",dash:"\u2010",Dashv:"\u2AE4",dashv:"\u22A3",dbkarow:"\u290F",dblac:"\u02DD",Dcaron:"\u010E",dcaron:"\u010F",Dcy:"\u0414",dcy:"\u0434",DD:"\u2145",dd:"\u2146",ddagger:"\u2021",ddarr:"\u21CA",DDotrahd:"\u2911",ddotseq:"\u2A77",deg:"\xB0",Del:"\u2207",Delta:"\u0394",delta:"\u03B4",demptyv:"\u29B1",dfisht:"\u297F",Dfr:"\u{1D507}",dfr:"\u{1D521}",dHar:"\u2965",dharl:"\u21C3",dharr:"\u21C2",DiacriticalAcute:"\xB4",DiacriticalDot:"\u02D9",DiacriticalDoubleAcute:"\u02DD",DiacriticalGrave:"`",DiacriticalTilde:"\u02DC",diam:"\u22C4",Diamond:"\u22C4",diamond:"\u22C4",diamondsuit:"\u2666",diams:"\u2666",die:"\xA8",DifferentialD:"\u2146",digamma:"\u03DD",disin:"\u22F2",div:"\xF7",divide:"\xF7",divideontimes:"\u22C7",divonx:"\u22C7",DJcy:"\u0402",djcy:"\u0452",dlcorn:"\u231E",dlcrop:"\u230D",dollar:"$",Dopf:"\u{1D53B}",dopf:"\u{1D555}",Dot:"\xA8",dot:"\u02D9",DotDot:"\u20DC",doteq:"\u2250",doteqdot:"\u2251",DotEqual:"\u2250",dotminus:"\u2238",dotplus:"\u2214",dotsquare:"\u22A1",doublebarwedge:"\u2306",DoubleContourIntegral:"\u222F",DoubleDot:"\xA8",DoubleDownArrow:"\u21D3",DoubleLeftArrow:"\u21D0",DoubleLeftRightArrow:"\u21D4",DoubleLeftTee:"\u2AE4",DoubleLongLeftArrow:"\u27F8",DoubleLongLeftRightArrow:"\u27FA",DoubleLongRightArrow:"\u27F9",DoubleRightArrow:"\u21D2",DoubleRightTee:"\u22A8",DoubleUpArrow:"\u21D1",DoubleUpDownArrow:"\u21D5",DoubleVerticalBar:"\u2225",DownArrow:"\u2193",Downarrow:"\u21D3",downarrow:"\u2193",DownArrowBar:"\u2913",DownArrowUpArrow:"\u21F5",DownBreve:"\u0311",downdownarrows:"\u21CA",downharpoonleft:"\u21C3",downharpoonright:"\u21C2",DownLeftRightVector:"\u2950",DownLeftTeeVector:"\u295E",DownLeftVector:"\u21BD",DownLeftVectorBar:"\u2956",DownRightTeeVector:"\u295F",DownRightVector:"\u21C1",DownRightVectorBar:"\u2957",DownTee:"\u22A4",DownTeeArrow:"\u21A7",drbkarow:"\u2910",drcorn:"\u231F",drcrop:"\u230C",Dscr:"\u{1D49F}",dscr:"\u{1D4B9}",DScy:"\u0405",dscy:"\u0455",dsol:"\u29F6",Dstrok:"\u0110",dstrok:"\u0111",dtdot:"\u22F1",dtri:"\u25BF",dtrif:"\u25BE",duarr:"\u21F5",duhar:"\u296F",dwangle:"\u29A6",DZcy:"\u040F",dzcy:"\u045F",dzigrarr:"\u27FF",Eacute:"\xC9",eacute:"\xE9",easter:"\u2A6E",Ecaron:"\u011A",ecaron:"\u011B",ecir:"\u2256",Ecirc:"\xCA",ecirc:"\xEA",ecolon:"\u2255",Ecy:"\u042D",ecy:"\u044D",eDDot:"\u2A77",Edot:"\u0116",eDot:"\u2251",edot:"\u0117",ee:"\u2147",efDot:"\u2252",Efr:"\u{1D508}",efr:"\u{1D522}",eg:"\u2A9A",Egrave:"\xC8",egrave:"\xE8",egs:"\u2A96",egsdot:"\u2A98",el:"\u2A99",Element:"\u2208",elinters:"\u23E7",ell:"\u2113",els:"\u2A95",elsdot:"\u2A97",Emacr:"\u0112",emacr:"\u0113",empty:"\u2205",emptyset:"\u2205",EmptySmallSquare:"\u25FB",emptyv:"\u2205",EmptyVerySmallSquare:"\u25AB",emsp:"\u2003",emsp13:"\u2004",emsp14:"\u2005",ENG:"\u014A",eng:"\u014B",ensp:"\u2002",Eogon:"\u0118",eogon:"\u0119",Eopf:"\u{1D53C}",eopf:"\u{1D556}",epar:"\u22D5",eparsl:"\u29E3",eplus:"\u2A71",epsi:"\u03B5",Epsilon:"\u0395",epsilon:"\u03B5",epsiv:"\u03F5",eqcirc:"\u2256",eqcolon:"\u2255",eqsim:"\u2242",eqslantgtr:"\u2A96",eqslantless:"\u2A95",Equal:"\u2A75",equals:"=",EqualTilde:"\u2242",equest:"\u225F",Equilibrium:"\u21CC",equiv:"\u2261",equivDD:"\u2A78",eqvparsl:"\u29E5",erarr:"\u2971",erDot:"\u2253",Escr:"\u2130",escr:"\u212F",esdot:"\u2250",Esim:"\u2A73",esim:"\u2242",Eta:"\u0397",eta:"\u03B7",ETH:"\xD0",eth:"\xF0",Euml:"\xCB",euml:"\xEB",euro:"\u20AC",excl:"!",exist:"\u2203",Exists:"\u2203",expectation:"\u2130",ExponentialE:"\u2147",exponentiale:"\u2147",fallingdotseq:"\u2252",Fcy:"\u0424",fcy:"\u0444",female:"\u2640",ffilig:"\uFB03",fflig:"\uFB00",ffllig:"\uFB04",Ffr:"\u{1D509}",ffr:"\u{1D523}",filig:"\uFB01",FilledSmallSquare:"\u25FC",FilledVerySmallSquare:"\u25AA",fjlig:"fj",flat:"\u266D",fllig:"\uFB02",fltns:"\u25B1",fnof:"\u0192",Fopf:"\u{1D53D}",fopf:"\u{1D557}",ForAll:"\u2200",forall:"\u2200",fork:"\u22D4",forkv:"\u2AD9",Fouriertrf:"\u2131",fpartint:"\u2A0D",frac12:"\xBD",frac13:"\u2153",frac14:"\xBC",frac15:"\u2155",frac16:"\u2159",frac18:"\u215B",frac23:"\u2154",frac25:"\u2156",frac34:"\xBE",frac35:"\u2157",frac38:"\u215C",frac45:"\u2158",frac56:"\u215A",frac58:"\u215D",frac78:"\u215E",frasl:"\u2044",frown:"\u2322",Fscr:"\u2131",fscr:"\u{1D4BB}",gacute:"\u01F5",Gamma:"\u0393",gamma:"\u03B3",Gammad:"\u03DC",gammad:"\u03DD",gap:"\u2A86",Gbreve:"\u011E",gbreve:"\u011F",Gcedil:"\u0122",Gcirc:"\u011C",gcirc:"\u011D",Gcy:"\u0413",gcy:"\u0433",Gdot:"\u0120",gdot:"\u0121",gE:"\u2267",ge:"\u2265",gEl:"\u2A8C",gel:"\u22DB",geq:"\u2265",geqq:"\u2267",geqslant:"\u2A7E",ges:"\u2A7E",gescc:"\u2AA9",gesdot:"\u2A80",gesdoto:"\u2A82",gesdotol:"\u2A84",gesl:"\u22DB\uFE00",gesles:"\u2A94",Gfr:"\u{1D50A}",gfr:"\u{1D524}",Gg:"\u22D9",gg:"\u226B",ggg:"\u22D9",gimel:"\u2137",GJcy:"\u0403",gjcy:"\u0453",gl:"\u2277",gla:"\u2AA5",glE:"\u2A92",glj:"\u2AA4",gnap:"\u2A8A",gnapprox:"\u2A8A",gnE:"\u2269",gne:"\u2A88",gneq:"\u2A88",gneqq:"\u2269",gnsim:"\u22E7",Gopf:"\u{1D53E}",gopf:"\u{1D558}",grave:"`",GreaterEqual:"\u2265",GreaterEqualLess:"\u22DB",GreaterFullEqual:"\u2267",GreaterGreater:"\u2AA2",GreaterLess:"\u2277",GreaterSlantEqual:"\u2A7E",GreaterTilde:"\u2273",Gscr:"\u{1D4A2}",gscr:"\u210A",gsim:"\u2273",gsime:"\u2A8E",gsiml:"\u2A90",Gt:"\u226B",GT:">",gt:">",gtcc:"\u2AA7",gtcir:"\u2A7A",gtdot:"\u22D7",gtlPar:"\u2995",gtquest:"\u2A7C",gtrapprox:"\u2A86",gtrarr:"\u2978",gtrdot:"\u22D7",gtreqless:"\u22DB",gtreqqless:"\u2A8C",gtrless:"\u2277",gtrsim:"\u2273",gvertneqq:"\u2269\uFE00",gvnE:"\u2269\uFE00",Hacek:"\u02C7",hairsp:"\u200A",half:"\xBD",hamilt:"\u210B",HARDcy:"\u042A",hardcy:"\u044A",hArr:"\u21D4",harr:"\u2194",harrcir:"\u2948",harrw:"\u21AD",Hat:"^",hbar:"\u210F",Hcirc:"\u0124",hcirc:"\u0125",hearts:"\u2665",heartsuit:"\u2665",hellip:"\u2026",hercon:"\u22B9",Hfr:"\u210C",hfr:"\u{1D525}",HilbertSpace:"\u210B",hksearow:"\u2925",hkswarow:"\u2926",hoarr:"\u21FF",homtht:"\u223B",hookleftarrow:"\u21A9",hookrightarrow:"\u21AA",Hopf:"\u210D",hopf:"\u{1D559}",horbar:"\u2015",HorizontalLine:"\u2500",Hscr:"\u210B",hscr:"\u{1D4BD}",hslash:"\u210F",Hstrok:"\u0126",hstrok:"\u0127",HumpDownHump:"\u224E",HumpEqual:"\u224F",hybull:"\u2043",hyphen:"\u2010",Iacute:"\xCD",iacute:"\xED",ic:"\u2063",Icirc:"\xCE",icirc:"\xEE",Icy:"\u0418",icy:"\u0438",Idot:"\u0130",IEcy:"\u0415",iecy:"\u0435",iexcl:"\xA1",iff:"\u21D4",Ifr:"\u2111",ifr:"\u{1D526}",Igrave:"\xCC",igrave:"\xEC",ii:"\u2148",iiiint:"\u2A0C",iiint:"\u222D",iinfin:"\u29DC",iiota:"\u2129",IJlig:"\u0132",ijlig:"\u0133",Im:"\u2111",Imacr:"\u012A",imacr:"\u012B",image:"\u2111",ImaginaryI:"\u2148",imagline:"\u2110",imagpart:"\u2111",imath:"\u0131",imof:"\u22B7",imped:"\u01B5",Implies:"\u21D2",in:"\u2208",incare:"\u2105",infin:"\u221E",infintie:"\u29DD",inodot:"\u0131",Int:"\u222C",int:"\u222B",intcal:"\u22BA",integers:"\u2124",Integral:"\u222B",intercal:"\u22BA",Intersection:"\u22C2",intlarhk:"\u2A17",intprod:"\u2A3C",InvisibleComma:"\u2063",InvisibleTimes:"\u2062",IOcy:"\u0401",iocy:"\u0451",Iogon:"\u012E",iogon:"\u012F",Iopf:"\u{1D540}",iopf:"\u{1D55A}",Iota:"\u0399",iota:"\u03B9",iprod:"\u2A3C",iquest:"\xBF",Iscr:"\u2110",iscr:"\u{1D4BE}",isin:"\u2208",isindot:"\u22F5",isinE:"\u22F9",isins:"\u22F4",isinsv:"\u22F3",isinv:"\u2208",it:"\u2062",Itilde:"\u0128",itilde:"\u0129",Iukcy:"\u0406",iukcy:"\u0456",Iuml:"\xCF",iuml:"\xEF",Jcirc:"\u0134",jcirc:"\u0135",Jcy:"\u0419",jcy:"\u0439",Jfr:"\u{1D50D}",jfr:"\u{1D527}",jmath:"\u0237",Jopf:"\u{1D541}",jopf:"\u{1D55B}",Jscr:"\u{1D4A5}",jscr:"\u{1D4BF}",Jsercy:"\u0408",jsercy:"\u0458",Jukcy:"\u0404",jukcy:"\u0454",Kappa:"\u039A",kappa:"\u03BA",kappav:"\u03F0",Kcedil:"\u0136",kcedil:"\u0137",Kcy:"\u041A",kcy:"\u043A",Kfr:"\u{1D50E}",kfr:"\u{1D528}",kgreen:"\u0138",KHcy:"\u0425",khcy:"\u0445",KJcy:"\u040C",kjcy:"\u045C",Kopf:"\u{1D542}",kopf:"\u{1D55C}",Kscr:"\u{1D4A6}",kscr:"\u{1D4C0}",lAarr:"\u21DA",Lacute:"\u0139",lacute:"\u013A",laemptyv:"\u29B4",lagran:"\u2112",Lambda:"\u039B",lambda:"\u03BB",Lang:"\u27EA",lang:"\u27E8",langd:"\u2991",langle:"\u27E8",lap:"\u2A85",Laplacetrf:"\u2112",laquo:"\xAB",Larr:"\u219E",lArr:"\u21D0",larr:"\u2190",larrb:"\u21E4",larrbfs:"\u291F",larrfs:"\u291D",larrhk:"\u21A9",larrlp:"\u21AB",larrpl:"\u2939",larrsim:"\u2973",larrtl:"\u21A2",lat:"\u2AAB",lAtail:"\u291B",latail:"\u2919",late:"\u2AAD",lates:"\u2AAD\uFE00",lBarr:"\u290E",lbarr:"\u290C",lbbrk:"\u2772",lbrace:"{",lbrack:"[",lbrke:"\u298B",lbrksld:"\u298F",lbrkslu:"\u298D",Lcaron:"\u013D",lcaron:"\u013E",Lcedil:"\u013B",lcedil:"\u013C",lceil:"\u2308",lcub:"{",Lcy:"\u041B",lcy:"\u043B",ldca:"\u2936",ldquo:"\u201C",ldquor:"\u201E",ldrdhar:"\u2967",ldrushar:"\u294B",ldsh:"\u21B2",lE:"\u2266",le:"\u2264",LeftAngleBracket:"\u27E8",LeftArrow:"\u2190",Leftarrow:"\u21D0",leftarrow:"\u2190",LeftArrowBar:"\u21E4",LeftArrowRightArrow:"\u21C6",leftarrowtail:"\u21A2",LeftCeiling:"\u2308",LeftDoubleBracket:"\u27E6",LeftDownTeeVector:"\u2961",LeftDownVector:"\u21C3",LeftDownVectorBar:"\u2959",LeftFloor:"\u230A",leftharpoondown:"\u21BD",leftharpoonup:"\u21BC",leftleftarrows:"\u21C7",LeftRightArrow:"\u2194",Leftrightarrow:"\u21D4",leftrightarrow:"\u2194",leftrightarrows:"\u21C6",leftrightharpoons:"\u21CB",leftrightsquigarrow:"\u21AD",LeftRightVector:"\u294E",LeftTee:"\u22A3",LeftTeeArrow:"\u21A4",LeftTeeVector:"\u295A",leftthreetimes:"\u22CB",LeftTriangle:"\u22B2",LeftTriangleBar:"\u29CF",LeftTriangleEqual:"\u22B4",LeftUpDownVector:"\u2951",LeftUpTeeVector:"\u2960",LeftUpVector:"\u21BF",LeftUpVectorBar:"\u2958",LeftVector:"\u21BC",LeftVectorBar:"\u2952",lEg:"\u2A8B",leg:"\u22DA",leq:"\u2264",leqq:"\u2266",leqslant:"\u2A7D",les:"\u2A7D",lescc:"\u2AA8",lesdot:"\u2A7F",lesdoto:"\u2A81",lesdotor:"\u2A83",lesg:"\u22DA\uFE00",lesges:"\u2A93",lessapprox:"\u2A85",lessdot:"\u22D6",lesseqgtr:"\u22DA",lesseqqgtr:"\u2A8B",LessEqualGreater:"\u22DA",LessFullEqual:"\u2266",LessGreater:"\u2276",lessgtr:"\u2276",LessLess:"\u2AA1",lesssim:"\u2272",LessSlantEqual:"\u2A7D",LessTilde:"\u2272",lfisht:"\u297C",lfloor:"\u230A",Lfr:"\u{1D50F}",lfr:"\u{1D529}",lg:"\u2276",lgE:"\u2A91",lHar:"\u2962",lhard:"\u21BD",lharu:"\u21BC",lharul:"\u296A",lhblk:"\u2584",LJcy:"\u0409",ljcy:"\u0459",Ll:"\u22D8",ll:"\u226A",llarr:"\u21C7",llcorner:"\u231E",Lleftarrow:"\u21DA",llhard:"\u296B",lltri:"\u25FA",Lmidot:"\u013F",lmidot:"\u0140",lmoust:"\u23B0",lmoustache:"\u23B0",lnap:"\u2A89",lnapprox:"\u2A89",lnE:"\u2268",lne:"\u2A87",lneq:"\u2A87",lneqq:"\u2268",lnsim:"\u22E6",loang:"\u27EC",loarr:"\u21FD",lobrk:"\u27E6",LongLeftArrow:"\u27F5",Longleftarrow:"\u27F8",longleftarrow:"\u27F5",LongLeftRightArrow:"\u27F7",Longleftrightarrow:"\u27FA",longleftrightarrow:"\u27F7",longmapsto:"\u27FC",LongRightArrow:"\u27F6",Longrightarrow:"\u27F9",longrightarrow:"\u27F6",looparrowleft:"\u21AB",looparrowright:"\u21AC",lopar:"\u2985",Lopf:"\u{1D543}",lopf:"\u{1D55D}",loplus:"\u2A2D",lotimes:"\u2A34",lowast:"\u2217",lowbar:"_",LowerLeftArrow:"\u2199",LowerRightArrow:"\u2198",loz:"\u25CA",lozenge:"\u25CA",lozf:"\u29EB",lpar:"(",lparlt:"\u2993",lrarr:"\u21C6",lrcorner:"\u231F",lrhar:"\u21CB",lrhard:"\u296D",lrm:"\u200E",lrtri:"\u22BF",lsaquo:"\u2039",Lscr:"\u2112",lscr:"\u{1D4C1}",Lsh:"\u21B0",lsh:"\u21B0",lsim:"\u2272",lsime:"\u2A8D",lsimg:"\u2A8F",lsqb:"[",lsquo:"\u2018",lsquor:"\u201A",Lstrok:"\u0141",lstrok:"\u0142",Lt:"\u226A",LT:"<",lt:"<",ltcc:"\u2AA6",ltcir:"\u2A79",ltdot:"\u22D6",lthree:"\u22CB",ltimes:"\u22C9",ltlarr:"\u2976",ltquest:"\u2A7B",ltri:"\u25C3",ltrie:"\u22B4",ltrif:"\u25C2",ltrPar:"\u2996",lurdshar:"\u294A",luruhar:"\u2966",lvertneqq:"\u2268\uFE00",lvnE:"\u2268\uFE00",macr:"\xAF",male:"\u2642",malt:"\u2720",maltese:"\u2720",Map:"\u2905",map:"\u21A6",mapsto:"\u21A6",mapstodown:"\u21A7",mapstoleft:"\u21A4",mapstoup:"\u21A5",marker:"\u25AE",mcomma:"\u2A29",Mcy:"\u041C",mcy:"\u043C",mdash:"\u2014",mDDot:"\u223A",measuredangle:"\u2221",MediumSpace:"\u205F",Mellintrf:"\u2133",Mfr:"\u{1D510}",mfr:"\u{1D52A}",mho:"\u2127",micro:"\xB5",mid:"\u2223",midast:"*",midcir:"\u2AF0",middot:"\xB7",minus:"\u2212",minusb:"\u229F",minusd:"\u2238",minusdu:"\u2A2A",MinusPlus:"\u2213",mlcp:"\u2ADB",mldr:"\u2026",mnplus:"\u2213",models:"\u22A7",Mopf:"\u{1D544}",mopf:"\u{1D55E}",mp:"\u2213",Mscr:"\u2133",mscr:"\u{1D4C2}",mstpos:"\u223E",Mu:"\u039C",mu:"\u03BC",multimap:"\u22B8",mumap:"\u22B8",nabla:"\u2207",Nacute:"\u0143",nacute:"\u0144",nang:"\u2220\u20D2",nap:"\u2249",napE:"\u2A70\u0338",napid:"\u224B\u0338",napos:"\u0149",napprox:"\u2249",natur:"\u266E",natural:"\u266E",naturals:"\u2115",nbsp:"\xA0",nbump:"\u224E\u0338",nbumpe:"\u224F\u0338",ncap:"\u2A43",Ncaron:"\u0147",ncaron:"\u0148",Ncedil:"\u0145",ncedil:"\u0146",ncong:"\u2247",ncongdot:"\u2A6D\u0338",ncup:"\u2A42",Ncy:"\u041D",ncy:"\u043D",ndash:"\u2013",ne:"\u2260",nearhk:"\u2924",neArr:"\u21D7",nearr:"\u2197",nearrow:"\u2197",nedot:"\u2250\u0338",NegativeMediumSpace:"\u200B",NegativeThickSpace:"\u200B",NegativeThinSpace:"\u200B",NegativeVeryThinSpace:"\u200B",nequiv:"\u2262",nesear:"\u2928",nesim:"\u2242\u0338",NestedGreaterGreater:"\u226B",NestedLessLess:"\u226A",NewLine:` `,nexist:"\u2204",nexists:"\u2204",Nfr:"\u{1D511}",nfr:"\u{1D52B}",ngE:"\u2267\u0338",nge:"\u2271",ngeq:"\u2271",ngeqq:"\u2267\u0338",ngeqslant:"\u2A7E\u0338",nges:"\u2A7E\u0338",nGg:"\u22D9\u0338",ngsim:"\u2275",nGt:"\u226B\u20D2",ngt:"\u226F",ngtr:"\u226F",nGtv:"\u226B\u0338",nhArr:"\u21CE",nharr:"\u21AE",nhpar:"\u2AF2",ni:"\u220B",nis:"\u22FC",nisd:"\u22FA",niv:"\u220B",NJcy:"\u040A",njcy:"\u045A",nlArr:"\u21CD",nlarr:"\u219A",nldr:"\u2025",nlE:"\u2266\u0338",nle:"\u2270",nLeftarrow:"\u21CD",nleftarrow:"\u219A",nLeftrightarrow:"\u21CE",nleftrightarrow:"\u21AE",nleq:"\u2270",nleqq:"\u2266\u0338",nleqslant:"\u2A7D\u0338",nles:"\u2A7D\u0338",nless:"\u226E",nLl:"\u22D8\u0338",nlsim:"\u2274",nLt:"\u226A\u20D2",nlt:"\u226E",nltri:"\u22EA",nltrie:"\u22EC",nLtv:"\u226A\u0338",nmid:"\u2224",NoBreak:"\u2060",NonBreakingSpace:"\xA0",Nopf:"\u2115",nopf:"\u{1D55F}",Not:"\u2AEC",not:"\xAC",NotCongruent:"\u2262",NotCupCap:"\u226D",NotDoubleVerticalBar:"\u2226",NotElement:"\u2209",NotEqual:"\u2260",NotEqualTilde:"\u2242\u0338",NotExists:"\u2204",NotGreater:"\u226F",NotGreaterEqual:"\u2271",NotGreaterFullEqual:"\u2267\u0338",NotGreaterGreater:"\u226B\u0338",NotGreaterLess:"\u2279",NotGreaterSlantEqual:"\u2A7E\u0338",NotGreaterTilde:"\u2275",NotHumpDownHump:"\u224E\u0338",NotHumpEqual:"\u224F\u0338",notin:"\u2209",notindot:"\u22F5\u0338",notinE:"\u22F9\u0338",notinva:"\u2209",notinvb:"\u22F7",notinvc:"\u22F6",NotLeftTriangle:"\u22EA",NotLeftTriangleBar:"\u29CF\u0338",NotLeftTriangleEqual:"\u22EC",NotLess:"\u226E",NotLessEqual:"\u2270",NotLessGreater:"\u2278",NotLessLess:"\u226A\u0338",NotLessSlantEqual:"\u2A7D\u0338",NotLessTilde:"\u2274",NotNestedGreaterGreater:"\u2AA2\u0338",NotNestedLessLess:"\u2AA1\u0338",notni:"\u220C",notniva:"\u220C",notnivb:"\u22FE",notnivc:"\u22FD",NotPrecedes:"\u2280",NotPrecedesEqual:"\u2AAF\u0338",NotPrecedesSlantEqual:"\u22E0",NotReverseElement:"\u220C",NotRightTriangle:"\u22EB",NotRightTriangleBar:"\u29D0\u0338",NotRightTriangleEqual:"\u22ED",NotSquareSubset:"\u228F\u0338",NotSquareSubsetEqual:"\u22E2",NotSquareSuperset:"\u2290\u0338",NotSquareSupersetEqual:"\u22E3",NotSubset:"\u2282\u20D2",NotSubsetEqual:"\u2288",NotSucceeds:"\u2281",NotSucceedsEqual:"\u2AB0\u0338",NotSucceedsSlantEqual:"\u22E1",NotSucceedsTilde:"\u227F\u0338",NotSuperset:"\u2283\u20D2",NotSupersetEqual:"\u2289",NotTilde:"\u2241",NotTildeEqual:"\u2244",NotTildeFullEqual:"\u2247",NotTildeTilde:"\u2249",NotVerticalBar:"\u2224",npar:"\u2226",nparallel:"\u2226",nparsl:"\u2AFD\u20E5",npart:"\u2202\u0338",npolint:"\u2A14",npr:"\u2280",nprcue:"\u22E0",npre:"\u2AAF\u0338",nprec:"\u2280",npreceq:"\u2AAF\u0338",nrArr:"\u21CF",nrarr:"\u219B",nrarrc:"\u2933\u0338",nrarrw:"\u219D\u0338",nRightarrow:"\u21CF",nrightarrow:"\u219B",nrtri:"\u22EB",nrtrie:"\u22ED",nsc:"\u2281",nsccue:"\u22E1",nsce:"\u2AB0\u0338",Nscr:"\u{1D4A9}",nscr:"\u{1D4C3}",nshortmid:"\u2224",nshortparallel:"\u2226",nsim:"\u2241",nsime:"\u2244",nsimeq:"\u2244",nsmid:"\u2224",nspar:"\u2226",nsqsube:"\u22E2",nsqsupe:"\u22E3",nsub:"\u2284",nsubE:"\u2AC5\u0338",nsube:"\u2288",nsubset:"\u2282\u20D2",nsubseteq:"\u2288",nsubseteqq:"\u2AC5\u0338",nsucc:"\u2281",nsucceq:"\u2AB0\u0338",nsup:"\u2285",nsupE:"\u2AC6\u0338",nsupe:"\u2289",nsupset:"\u2283\u20D2",nsupseteq:"\u2289",nsupseteqq:"\u2AC6\u0338",ntgl:"\u2279",Ntilde:"\xD1",ntilde:"\xF1",ntlg:"\u2278",ntriangleleft:"\u22EA",ntrianglelefteq:"\u22EC",ntriangleright:"\u22EB",ntrianglerighteq:"\u22ED",Nu:"\u039D",nu:"\u03BD",num:"#",numero:"\u2116",numsp:"\u2007",nvap:"\u224D\u20D2",nVDash:"\u22AF",nVdash:"\u22AE",nvDash:"\u22AD",nvdash:"\u22AC",nvge:"\u2265\u20D2",nvgt:">\u20D2",nvHarr:"\u2904",nvinfin:"\u29DE",nvlArr:"\u2902",nvle:"\u2264\u20D2",nvlt:"<\u20D2",nvltrie:"\u22B4\u20D2",nvrArr:"\u2903",nvrtrie:"\u22B5\u20D2",nvsim:"\u223C\u20D2",nwarhk:"\u2923",nwArr:"\u21D6",nwarr:"\u2196",nwarrow:"\u2196",nwnear:"\u2927",Oacute:"\xD3",oacute:"\xF3",oast:"\u229B",ocir:"\u229A",Ocirc:"\xD4",ocirc:"\xF4",Ocy:"\u041E",ocy:"\u043E",odash:"\u229D",Odblac:"\u0150",odblac:"\u0151",odiv:"\u2A38",odot:"\u2299",odsold:"\u29BC",OElig:"\u0152",oelig:"\u0153",ofcir:"\u29BF",Ofr:"\u{1D512}",ofr:"\u{1D52C}",ogon:"\u02DB",Ograve:"\xD2",ograve:"\xF2",ogt:"\u29C1",ohbar:"\u29B5",ohm:"\u03A9",oint:"\u222E",olarr:"\u21BA",olcir:"\u29BE",olcross:"\u29BB",oline:"\u203E",olt:"\u29C0",Omacr:"\u014C",omacr:"\u014D",Omega:"\u03A9",omega:"\u03C9",Omicron:"\u039F",omicron:"\u03BF",omid:"\u29B6",ominus:"\u2296",Oopf:"\u{1D546}",oopf:"\u{1D560}",opar:"\u29B7",OpenCurlyDoubleQuote:"\u201C",OpenCurlyQuote:"\u2018",operp:"\u29B9",oplus:"\u2295",Or:"\u2A54",or:"\u2228",orarr:"\u21BB",ord:"\u2A5D",order:"\u2134",orderof:"\u2134",ordf:"\xAA",ordm:"\xBA",origof:"\u22B6",oror:"\u2A56",orslope:"\u2A57",orv:"\u2A5B",oS:"\u24C8",Oscr:"\u{1D4AA}",oscr:"\u2134",Oslash:"\xD8",oslash:"\xF8",osol:"\u2298",Otilde:"\xD5",otilde:"\xF5",Otimes:"\u2A37",otimes:"\u2297",otimesas:"\u2A36",Ouml:"\xD6",ouml:"\xF6",ovbar:"\u233D",OverBar:"\u203E",OverBrace:"\u23DE",OverBracket:"\u23B4",OverParenthesis:"\u23DC",par:"\u2225",para:"\xB6",parallel:"\u2225",parsim:"\u2AF3",parsl:"\u2AFD",part:"\u2202",PartialD:"\u2202",Pcy:"\u041F",pcy:"\u043F",percnt:"%",period:".",permil:"\u2030",perp:"\u22A5",pertenk:"\u2031",Pfr:"\u{1D513}",pfr:"\u{1D52D}",Phi:"\u03A6",phi:"\u03C6",phiv:"\u03D5",phmmat:"\u2133",phone:"\u260E",Pi:"\u03A0",pi:"\u03C0",pitchfork:"\u22D4",piv:"\u03D6",planck:"\u210F",planckh:"\u210E",plankv:"\u210F",plus:"+",plusacir:"\u2A23",plusb:"\u229E",pluscir:"\u2A22",plusdo:"\u2214",plusdu:"\u2A25",pluse:"\u2A72",PlusMinus:"\xB1",plusmn:"\xB1",plussim:"\u2A26",plustwo:"\u2A27",pm:"\xB1",Poincareplane:"\u210C",pointint:"\u2A15",Popf:"\u2119",popf:"\u{1D561}",pound:"\xA3",Pr:"\u2ABB",pr:"\u227A",prap:"\u2AB7",prcue:"\u227C",prE:"\u2AB3",pre:"\u2AAF",prec:"\u227A",precapprox:"\u2AB7",preccurlyeq:"\u227C",Precedes:"\u227A",PrecedesEqual:"\u2AAF",PrecedesSlantEqual:"\u227C",PrecedesTilde:"\u227E",preceq:"\u2AAF",precnapprox:"\u2AB9",precneqq:"\u2AB5",precnsim:"\u22E8",precsim:"\u227E",Prime:"\u2033",prime:"\u2032",primes:"\u2119",prnap:"\u2AB9",prnE:"\u2AB5",prnsim:"\u22E8",prod:"\u220F",Product:"\u220F",profalar:"\u232E",profline:"\u2312",profsurf:"\u2313",prop:"\u221D",Proportion:"\u2237",Proportional:"\u221D",propto:"\u221D",prsim:"\u227E",prurel:"\u22B0",Pscr:"\u{1D4AB}",pscr:"\u{1D4C5}",Psi:"\u03A8",psi:"\u03C8",puncsp:"\u2008",Qfr:"\u{1D514}",qfr:"\u{1D52E}",qint:"\u2A0C",Qopf:"\u211A",qopf:"\u{1D562}",qprime:"\u2057",Qscr:"\u{1D4AC}",qscr:"\u{1D4C6}",quaternions:"\u210D",quatint:"\u2A16",quest:"?",questeq:"\u225F",QUOT:'"',quot:'"',rAarr:"\u21DB",race:"\u223D\u0331",Racute:"\u0154",racute:"\u0155",radic:"\u221A",raemptyv:"\u29B3",Rang:"\u27EB",rang:"\u27E9",rangd:"\u2992",range:"\u29A5",rangle:"\u27E9",raquo:"\xBB",Rarr:"\u21A0",rArr:"\u21D2",rarr:"\u2192",rarrap:"\u2975",rarrb:"\u21E5",rarrbfs:"\u2920",rarrc:"\u2933",rarrfs:"\u291E",rarrhk:"\u21AA",rarrlp:"\u21AC",rarrpl:"\u2945",rarrsim:"\u2974",Rarrtl:"\u2916",rarrtl:"\u21A3",rarrw:"\u219D",rAtail:"\u291C",ratail:"\u291A",ratio:"\u2236",rationals:"\u211A",RBarr:"\u2910",rBarr:"\u290F",rbarr:"\u290D",rbbrk:"\u2773",rbrace:"}",rbrack:"]",rbrke:"\u298C",rbrksld:"\u298E",rbrkslu:"\u2990",Rcaron:"\u0158",rcaron:"\u0159",Rcedil:"\u0156",rcedil:"\u0157",rceil:"\u2309",rcub:"}",Rcy:"\u0420",rcy:"\u0440",rdca:"\u2937",rdldhar:"\u2969",rdquo:"\u201D",rdquor:"\u201D",rdsh:"\u21B3",Re:"\u211C",real:"\u211C",realine:"\u211B",realpart:"\u211C",reals:"\u211D",rect:"\u25AD",REG:"\xAE",reg:"\xAE",ReverseElement:"\u220B",ReverseEquilibrium:"\u21CB",ReverseUpEquilibrium:"\u296F",rfisht:"\u297D",rfloor:"\u230B",Rfr:"\u211C",rfr:"\u{1D52F}",rHar:"\u2964",rhard:"\u21C1",rharu:"\u21C0",rharul:"\u296C",Rho:"\u03A1",rho:"\u03C1",rhov:"\u03F1",RightAngleBracket:"\u27E9",RightArrow:"\u2192",Rightarrow:"\u21D2",rightarrow:"\u2192",RightArrowBar:"\u21E5",RightArrowLeftArrow:"\u21C4",rightarrowtail:"\u21A3",RightCeiling:"\u2309",RightDoubleBracket:"\u27E7",RightDownTeeVector:"\u295D",RightDownVector:"\u21C2",RightDownVectorBar:"\u2955",RightFloor:"\u230B",rightharpoondown:"\u21C1",rightharpoonup:"\u21C0",rightleftarrows:"\u21C4",rightleftharpoons:"\u21CC",rightrightarrows:"\u21C9",rightsquigarrow:"\u219D",RightTee:"\u22A2",RightTeeArrow:"\u21A6",RightTeeVector:"\u295B",rightthreetimes:"\u22CC",RightTriangle:"\u22B3",RightTriangleBar:"\u29D0",RightTriangleEqual:"\u22B5",RightUpDownVector:"\u294F",RightUpTeeVector:"\u295C",RightUpVector:"\u21BE",RightUpVectorBar:"\u2954",RightVector:"\u21C0",RightVectorBar:"\u2953",ring:"\u02DA",risingdotseq:"\u2253",rlarr:"\u21C4",rlhar:"\u21CC",rlm:"\u200F",rmoust:"\u23B1",rmoustache:"\u23B1",rnmid:"\u2AEE",roang:"\u27ED",roarr:"\u21FE",robrk:"\u27E7",ropar:"\u2986",Ropf:"\u211D",ropf:"\u{1D563}",roplus:"\u2A2E",rotimes:"\u2A35",RoundImplies:"\u2970",rpar:")",rpargt:"\u2994",rppolint:"\u2A12",rrarr:"\u21C9",Rrightarrow:"\u21DB",rsaquo:"\u203A",Rscr:"\u211B",rscr:"\u{1D4C7}",Rsh:"\u21B1",rsh:"\u21B1",rsqb:"]",rsquo:"\u2019",rsquor:"\u2019",rthree:"\u22CC",rtimes:"\u22CA",rtri:"\u25B9",rtrie:"\u22B5",rtrif:"\u25B8",rtriltri:"\u29CE",RuleDelayed:"\u29F4",ruluhar:"\u2968",rx:"\u211E",Sacute:"\u015A",sacute:"\u015B",sbquo:"\u201A",Sc:"\u2ABC",sc:"\u227B",scap:"\u2AB8",Scaron:"\u0160",scaron:"\u0161",sccue:"\u227D",scE:"\u2AB4",sce:"\u2AB0",Scedil:"\u015E",scedil:"\u015F",Scirc:"\u015C",scirc:"\u015D",scnap:"\u2ABA",scnE:"\u2AB6",scnsim:"\u22E9",scpolint:"\u2A13",scsim:"\u227F",Scy:"\u0421",scy:"\u0441",sdot:"\u22C5",sdotb:"\u22A1",sdote:"\u2A66",searhk:"\u2925",seArr:"\u21D8",searr:"\u2198",searrow:"\u2198",sect:"\xA7",semi:";",seswar:"\u2929",setminus:"\u2216",setmn:"\u2216",sext:"\u2736",Sfr:"\u{1D516}",sfr:"\u{1D530}",sfrown:"\u2322",sharp:"\u266F",SHCHcy:"\u0429",shchcy:"\u0449",SHcy:"\u0428",shcy:"\u0448",ShortDownArrow:"\u2193",ShortLeftArrow:"\u2190",shortmid:"\u2223",shortparallel:"\u2225",ShortRightArrow:"\u2192",ShortUpArrow:"\u2191",shy:"\xAD",Sigma:"\u03A3",sigma:"\u03C3",sigmaf:"\u03C2",sigmav:"\u03C2",sim:"\u223C",simdot:"\u2A6A",sime:"\u2243",simeq:"\u2243",simg:"\u2A9E",simgE:"\u2AA0",siml:"\u2A9D",simlE:"\u2A9F",simne:"\u2246",simplus:"\u2A24",simrarr:"\u2972",slarr:"\u2190",SmallCircle:"\u2218",smallsetminus:"\u2216",smashp:"\u2A33",smeparsl:"\u29E4",smid:"\u2223",smile:"\u2323",smt:"\u2AAA",smte:"\u2AAC",smtes:"\u2AAC\uFE00",SOFTcy:"\u042C",softcy:"\u044C",sol:"/",solb:"\u29C4",solbar:"\u233F",Sopf:"\u{1D54A}",sopf:"\u{1D564}",spades:"\u2660",spadesuit:"\u2660",spar:"\u2225",sqcap:"\u2293",sqcaps:"\u2293\uFE00",sqcup:"\u2294",sqcups:"\u2294\uFE00",Sqrt:"\u221A",sqsub:"\u228F",sqsube:"\u2291",sqsubset:"\u228F",sqsubseteq:"\u2291",sqsup:"\u2290",sqsupe:"\u2292",sqsupset:"\u2290",sqsupseteq:"\u2292",squ:"\u25A1",Square:"\u25A1",square:"\u25A1",SquareIntersection:"\u2293",SquareSubset:"\u228F",SquareSubsetEqual:"\u2291",SquareSuperset:"\u2290",SquareSupersetEqual:"\u2292",SquareUnion:"\u2294",squarf:"\u25AA",squf:"\u25AA",srarr:"\u2192",Sscr:"\u{1D4AE}",sscr:"\u{1D4C8}",ssetmn:"\u2216",ssmile:"\u2323",sstarf:"\u22C6",Star:"\u22C6",star:"\u2606",starf:"\u2605",straightepsilon:"\u03F5",straightphi:"\u03D5",strns:"\xAF",Sub:"\u22D0",sub:"\u2282",subdot:"\u2ABD",subE:"\u2AC5",sube:"\u2286",subedot:"\u2AC3",submult:"\u2AC1",subnE:"\u2ACB",subne:"\u228A",subplus:"\u2ABF",subrarr:"\u2979",Subset:"\u22D0",subset:"\u2282",subseteq:"\u2286",subseteqq:"\u2AC5",SubsetEqual:"\u2286",subsetneq:"\u228A",subsetneqq:"\u2ACB",subsim:"\u2AC7",subsub:"\u2AD5",subsup:"\u2AD3",succ:"\u227B",succapprox:"\u2AB8",succcurlyeq:"\u227D",Succeeds:"\u227B",SucceedsEqual:"\u2AB0",SucceedsSlantEqual:"\u227D",SucceedsTilde:"\u227F",succeq:"\u2AB0",succnapprox:"\u2ABA",succneqq:"\u2AB6",succnsim:"\u22E9",succsim:"\u227F",SuchThat:"\u220B",Sum:"\u2211",sum:"\u2211",sung:"\u266A",Sup:"\u22D1",sup:"\u2283",sup1:"\xB9",sup2:"\xB2",sup3:"\xB3",supdot:"\u2ABE",supdsub:"\u2AD8",supE:"\u2AC6",supe:"\u2287",supedot:"\u2AC4",Superset:"\u2283",SupersetEqual:"\u2287",suphsol:"\u27C9",suphsub:"\u2AD7",suplarr:"\u297B",supmult:"\u2AC2",supnE:"\u2ACC",supne:"\u228B",supplus:"\u2AC0",Supset:"\u22D1",supset:"\u2283",supseteq:"\u2287",supseteqq:"\u2AC6",supsetneq:"\u228B",supsetneqq:"\u2ACC",supsim:"\u2AC8",supsub:"\u2AD4",supsup:"\u2AD6",swarhk:"\u2926",swArr:"\u21D9",swarr:"\u2199",swarrow:"\u2199",swnwar:"\u292A",szlig:"\xDF",Tab:" ",target:"\u2316",Tau:"\u03A4",tau:"\u03C4",tbrk:"\u23B4",Tcaron:"\u0164",tcaron:"\u0165",Tcedil:"\u0162",tcedil:"\u0163",Tcy:"\u0422",tcy:"\u0442",tdot:"\u20DB",telrec:"\u2315",Tfr:"\u{1D517}",tfr:"\u{1D531}",there4:"\u2234",Therefore:"\u2234",therefore:"\u2234",Theta:"\u0398",theta:"\u03B8",thetasym:"\u03D1",thetav:"\u03D1",thickapprox:"\u2248",thicksim:"\u223C",ThickSpace:"\u205F\u200A",thinsp:"\u2009",ThinSpace:"\u2009",thkap:"\u2248",thksim:"\u223C",THORN:"\xDE",thorn:"\xFE",Tilde:"\u223C",tilde:"\u02DC",TildeEqual:"\u2243",TildeFullEqual:"\u2245",TildeTilde:"\u2248",times:"\xD7",timesb:"\u22A0",timesbar:"\u2A31",timesd:"\u2A30",tint:"\u222D",toea:"\u2928",top:"\u22A4",topbot:"\u2336",topcir:"\u2AF1",Topf:"\u{1D54B}",topf:"\u{1D565}",topfork:"\u2ADA",tosa:"\u2929",tprime:"\u2034",TRADE:"\u2122",trade:"\u2122",triangle:"\u25B5",triangledown:"\u25BF",triangleleft:"\u25C3",trianglelefteq:"\u22B4",triangleq:"\u225C",triangleright:"\u25B9",trianglerighteq:"\u22B5",tridot:"\u25EC",trie:"\u225C",triminus:"\u2A3A",TripleDot:"\u20DB",triplus:"\u2A39",trisb:"\u29CD",tritime:"\u2A3B",trpezium:"\u23E2",Tscr:"\u{1D4AF}",tscr:"\u{1D4C9}",TScy:"\u0426",tscy:"\u0446",TSHcy:"\u040B",tshcy:"\u045B",Tstrok:"\u0166",tstrok:"\u0167",twixt:"\u226C",twoheadleftarrow:"\u219E",twoheadrightarrow:"\u21A0",Uacute:"\xDA",uacute:"\xFA",Uarr:"\u219F",uArr:"\u21D1",uarr:"\u2191",Uarrocir:"\u2949",Ubrcy:"\u040E",ubrcy:"\u045E",Ubreve:"\u016C",ubreve:"\u016D",Ucirc:"\xDB",ucirc:"\xFB",Ucy:"\u0423",ucy:"\u0443",udarr:"\u21C5",Udblac:"\u0170",udblac:"\u0171",udhar:"\u296E",ufisht:"\u297E",Ufr:"\u{1D518}",ufr:"\u{1D532}",Ugrave:"\xD9",ugrave:"\xF9",uHar:"\u2963",uharl:"\u21BF",uharr:"\u21BE",uhblk:"\u2580",ulcorn:"\u231C",ulcorner:"\u231C",ulcrop:"\u230F",ultri:"\u25F8",Umacr:"\u016A",umacr:"\u016B",uml:"\xA8",UnderBar:"_",UnderBrace:"\u23DF",UnderBracket:"\u23B5",UnderParenthesis:"\u23DD",Union:"\u22C3",UnionPlus:"\u228E",Uogon:"\u0172",uogon:"\u0173",Uopf:"\u{1D54C}",uopf:"\u{1D566}",UpArrow:"\u2191",Uparrow:"\u21D1",uparrow:"\u2191",UpArrowBar:"\u2912",UpArrowDownArrow:"\u21C5",UpDownArrow:"\u2195",Updownarrow:"\u21D5",updownarrow:"\u2195",UpEquilibrium:"\u296E",upharpoonleft:"\u21BF",upharpoonright:"\u21BE",uplus:"\u228E",UpperLeftArrow:"\u2196",UpperRightArrow:"\u2197",Upsi:"\u03D2",upsi:"\u03C5",upsih:"\u03D2",Upsilon:"\u03A5",upsilon:"\u03C5",UpTee:"\u22A5",UpTeeArrow:"\u21A5",upuparrows:"\u21C8",urcorn:"\u231D",urcorner:"\u231D",urcrop:"\u230E",Uring:"\u016E",uring:"\u016F",urtri:"\u25F9",Uscr:"\u{1D4B0}",uscr:"\u{1D4CA}",utdot:"\u22F0",Utilde:"\u0168",utilde:"\u0169",utri:"\u25B5",utrif:"\u25B4",uuarr:"\u21C8",Uuml:"\xDC",uuml:"\xFC",uwangle:"\u29A7",vangrt:"\u299C",varepsilon:"\u03F5",varkappa:"\u03F0",varnothing:"\u2205",varphi:"\u03D5",varpi:"\u03D6",varpropto:"\u221D",vArr:"\u21D5",varr:"\u2195",varrho:"\u03F1",varsigma:"\u03C2",varsubsetneq:"\u228A\uFE00",varsubsetneqq:"\u2ACB\uFE00",varsupsetneq:"\u228B\uFE00",varsupsetneqq:"\u2ACC\uFE00",vartheta:"\u03D1",vartriangleleft:"\u22B2",vartriangleright:"\u22B3",Vbar:"\u2AEB",vBar:"\u2AE8",vBarv:"\u2AE9",Vcy:"\u0412",vcy:"\u0432",VDash:"\u22AB",Vdash:"\u22A9",vDash:"\u22A8",vdash:"\u22A2",Vdashl:"\u2AE6",Vee:"\u22C1",vee:"\u2228",veebar:"\u22BB",veeeq:"\u225A",vellip:"\u22EE",Verbar:"\u2016",verbar:"|",Vert:"\u2016",vert:"|",VerticalBar:"\u2223",VerticalLine:"|",VerticalSeparator:"\u2758",VerticalTilde:"\u2240",VeryThinSpace:"\u200A",Vfr:"\u{1D519}",vfr:"\u{1D533}",vltri:"\u22B2",vnsub:"\u2282\u20D2",vnsup:"\u2283\u20D2",Vopf:"\u{1D54D}",vopf:"\u{1D567}",vprop:"\u221D",vrtri:"\u22B3",Vscr:"\u{1D4B1}",vscr:"\u{1D4CB}",vsubnE:"\u2ACB\uFE00",vsubne:"\u228A\uFE00",vsupnE:"\u2ACC\uFE00",vsupne:"\u228B\uFE00",Vvdash:"\u22AA",vzigzag:"\u299A",Wcirc:"\u0174",wcirc:"\u0175",wedbar:"\u2A5F",Wedge:"\u22C0",wedge:"\u2227",wedgeq:"\u2259",weierp:"\u2118",Wfr:"\u{1D51A}",wfr:"\u{1D534}",Wopf:"\u{1D54E}",wopf:"\u{1D568}",wp:"\u2118",wr:"\u2240",wreath:"\u2240",Wscr:"\u{1D4B2}",wscr:"\u{1D4CC}",xcap:"\u22C2",xcirc:"\u25EF",xcup:"\u22C3",xdtri:"\u25BD",Xfr:"\u{1D51B}",xfr:"\u{1D535}",xhArr:"\u27FA",xharr:"\u27F7",Xi:"\u039E",xi:"\u03BE",xlArr:"\u27F8",xlarr:"\u27F5",xmap:"\u27FC",xnis:"\u22FB",xodot:"\u2A00",Xopf:"\u{1D54F}",xopf:"\u{1D569}",xoplus:"\u2A01",xotime:"\u2A02",xrArr:"\u27F9",xrarr:"\u27F6",Xscr:"\u{1D4B3}",xscr:"\u{1D4CD}",xsqcup:"\u2A06",xuplus:"\u2A04",xutri:"\u25B3",xvee:"\u22C1",xwedge:"\u22C0",Yacute:"\xDD",yacute:"\xFD",YAcy:"\u042F",yacy:"\u044F",Ycirc:"\u0176",ycirc:"\u0177",Ycy:"\u042B",ycy:"\u044B",yen:"\xA5",Yfr:"\u{1D51C}",yfr:"\u{1D536}",YIcy:"\u0407",yicy:"\u0457",Yopf:"\u{1D550}",yopf:"\u{1D56A}",Yscr:"\u{1D4B4}",yscr:"\u{1D4CE}",YUcy:"\u042E",yucy:"\u044E",Yuml:"\u0178",yuml:"\xFF",Zacute:"\u0179",zacute:"\u017A",Zcaron:"\u017D",zcaron:"\u017E",Zcy:"\u0417",zcy:"\u0437",Zdot:"\u017B",zdot:"\u017C",zeetrf:"\u2128",ZeroWidthSpace:"\u200B",Zeta:"\u0396",zeta:"\u03B6",Zfr:"\u2128",zfr:"\u{1D537}",ZHcy:"\u0416",zhcy:"\u0436",zigrarr:"\u21DD",Zopf:"\u2124",zopf:"\u{1D56B}",Zscr:"\u{1D4B5}",zscr:"\u{1D4CF}",zwj:"\u200D",zwnj:"\u200C"}),t.entityMap=t.HTML_ENTITIES},"./node_modules/@xmldom/xmldom/lib/index.js":function(i,t,e){var r=e("./node_modules/@xmldom/xmldom/lib/dom.js");t.DOMImplementation=r.DOMImplementation,t.XMLSerializer=r.XMLSerializer,t.DOMParser=e("./node_modules/@xmldom/xmldom/lib/dom-parser.js").DOMParser},"./node_modules/@xmldom/xmldom/lib/sax.js":function(i,t,e){var r=e("./node_modules/@xmldom/xmldom/lib/conventions.js").NAMESPACE,l=/[A-Z_a-z\xC0-\xD6\xD8-\xF6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD]/,o=new RegExp("[\\-\\.0-9"+l.source.slice(1,-1)+"\\u00B7\\u0300-\\u036F\\u203F-\\u2040]"),a=new RegExp("^"+l.source+o.source+"*(?::"+l.source+o.source+"*)?$"),E=0,w=1,D=2,C=3,x=4,O=5,H=6,L=7;function M(B,j){this.message=B,this.locator=j,Error.captureStackTrace&&Error.captureStackTrace(this,M)}M.prototype=new Error,M.prototype.name=M.name;function Y(){}Y.prototype={parse:function(B,j,X){var W=this.domBuilder;W.startDocument(),v(j,j={}),G(B,j,X,W,this.errorHandler),W.endDocument()}};function G(B,j,X,W,J){function se(k){if(k>65535){k-=65536;var P=55296+(k>>10),Q=56320+(k&1023);return String.fromCharCode(P,Q)}else return String.fromCharCode(k)}function ae(k){var P=k.slice(1,-1);return Object.hasOwnProperty.call(X,P)?X[P]:P.charAt(0)==="#"?se(parseInt(P.substr(1).replace("x","0x"))):(J.error("entity not found:"+k),k)}function oe(k){if(k>ye){var P=B.substring(ye,k).replace(/&#?\w+;/g,ae);Z&&ie(ye),W.characters(P,0,k-ye),ye=k}}function ie(k,P){for(;k>=le&&(P=pe.exec(B));)ce=P.index,le=ce+P[0].length,Z.lineNumber++;Z.columnNumber=k-ce+1}for(var ce=0,le=0,pe=/.*(?:\r\n?|\n)|.*$/g,Z=W.locator,te=[{currentNSMap:j}],ge={},ye=0;;){try{var ve=B.indexOf("<",ye);if(ve<0){if(!B.substr(ye).match(/^\s*$/)){var me=W.doc,Ce=me.createTextNode(B.substr(ye));me.appendChild(Ce),W.currentElement=Ce}return}switch(ve>ye&&oe(ve),B.charAt(ve+1)){case"/":var Ae=B.indexOf(">",ve+3),De=B.substring(ve+2,Ae).replace(/[ \t\n\r]+$/g,""),be=te.pop();Ae<0?(De=B.substring(ve+2).replace(/[\s<].*/,""),J.error("end tag name: "+De+" is not complete:"+be.tagName),Ae=ve+1+De.length):De.match(/\sye?ye=Ae:oe(Math.max(ve,ye)+1)}}function re(B,j){return j.lineNumber=B.lineNumber,j.columnNumber=B.columnNumber,j}function I(B,j,X,W,J,se){function ae(Z,te,ge){X.attributeNames.hasOwnProperty(Z)&&se.fatalError("Attribute "+Z+" redefined"),X.addValue(Z,te.replace(/[\t\n\r]/g," ").replace(/&#?\w+;/g,J),ge)}for(var oe,ie,ce=++j,le=E;;){var pe=B.charAt(ce);switch(pe){case"=":if(le===w)oe=B.slice(j,ce),le=C;else if(le===D)le=C;else throw new Error("attribute equal must after attrName");break;case"'":case'"':if(le===C||le===w)if(le===w&&(se.warning('attribute value must after "="'),oe=B.slice(j,ce)),j=ce+1,ce=B.indexOf(pe,j),ce>0)ie=B.slice(j,ce),ae(oe,ie,j-1),le=O;else throw new Error("attribute value no end '"+pe+"' match");else if(le==x)ie=B.slice(j,ce),ae(oe,ie,j),se.warning('attribute "'+oe+'" missed start quot('+pe+")!!"),j=ce+1,le=O;else throw new Error('attribute value must after "="');break;case"/":switch(le){case E:X.setTagName(B.slice(j,ce));case O:case H:case L:le=L,X.closed=!0;case x:case w:break;case D:X.closed=!0;break;default:throw new Error("attribute invalid close char('/')")}break;case"":return se.error("unexpected end of input"),le==E&&X.setTagName(B.slice(j,ce)),ce;case">":switch(le){case E:X.setTagName(B.slice(j,ce));case O:case H:case L:break;case x:case w:ie=B.slice(j,ce),ie.slice(-1)==="/"&&(X.closed=!0,ie=ie.slice(0,-1));case D:le===D&&(ie=oe),le==x?(se.warning('attribute "'+ie+'" missed quot(")!'),ae(oe,ie,j)):((!r.isHTML(W[""])||!ie.match(/^(?:disabled|checked|selected)$/i))&&se.warning('attribute "'+ie+'" missed value!! "'+ie+'" instead!!'),ae(ie,ie,j));break;case C:throw new Error("attribute value missed!!")}return ce;case"\x80":pe=" ";default:if(pe<=" ")switch(le){case E:X.setTagName(B.slice(j,ce)),le=H;break;case w:oe=B.slice(j,ce),le=D;break;case x:var ie=B.slice(j,ce);se.warning('attribute "'+ie+'" missed quot(")!!'),ae(oe,ie,j);case O:le=H;break}else switch(le){case D:X.tagName,(!r.isHTML(W[""])||!oe.match(/^(?:disabled|checked|selected)$/i))&&se.warning('attribute "'+oe+'" missed value!! "'+oe+'" instead2!!'),ae(oe,oe,j),j=ce,le=w;break;case O:se.warning('attribute space is required"'+oe+'"!!');case H:le=w,j=ce;break;case C:le=x,j=ce;break;case L:throw new Error("elements closed character '/' and '>' must be connected to")}}ce++}}function T(B,j,X){for(var W=B.tagName,J=null,se=B.length;se--;){var ae=B[se],oe=ae.qName,ie=ae.value,Z=oe.indexOf(":");if(Z>0)var ce=ae.prefix=oe.slice(0,Z),le=oe.slice(Z+1),pe=ce==="xmlns"&≤else le=oe,ce=null,pe=oe==="xmlns"&&"";ae.localName=le,pe!==!1&&(J==null&&(J={},v(X,X={})),X[pe]=J[pe]=ie,ae.uri=r.XMLNS,j.startPrefixMapping(pe,ie))}for(var se=B.length;se--;){ae=B[se];var ce=ae.prefix;ce&&(ce==="xml"&&(ae.uri=r.XML),ce!=="xmlns"&&(ae.uri=X[ce||""]))}var Z=W.indexOf(":");Z>0?(ce=B.prefix=W.slice(0,Z),le=B.localName=W.slice(Z+1)):(ce=null,le=B.localName=W);var te=B.uri=X[ce||""];if(j.startElement(te,le,W,B),B.closed){if(j.endElement(te,le,W),J)for(ce in J)Object.prototype.hasOwnProperty.call(J,ce)&&j.endPrefixMapping(ce)}else return B.currentNSMap=X,B.localNSMap=J,!0}function A(B,j,X,W,J){if(/^(?:script|textarea)$/i.test(X)){var se=B.indexOf("",j),ae=B.substring(j+1,se);if(/[&<]/.test(ae))return/^script$/i.test(X)?(J.characters(ae,0,ae.length),se):(ae=ae.replace(/&#?\w+;/g,W),J.characters(ae,0,ae.length),se)}return j+1}function N(B,j,X,W){var J=W[X];return J==null&&(J=B.lastIndexOf(""),J",j+4);return se>j?(X.comment(B,j+4,se-j-4),se+3):(W.error("Unclosed comment"),-1)}else return-1;default:if(B.substr(j+3,6)=="CDATA["){var se=B.indexOf("]]>",j+9);return X.startCDATA(),X.characters(B,j+9,se-j-9),X.endCDATA(),se+3}var ae=K(B,j),oe=ae.length;if(oe>1&&/!doctype/i.test(ae[0][0])){var ie=ae[1][0],ce=!1,le=!1;oe>3&&(/^public$/i.test(ae[2][0])?(ce=ae[3][0],le=oe>4&&ae[4][0]):/^system$/i.test(ae[2][0])&&(le=ae[3][0]));var pe=ae[oe-1];return X.startDTD(ie,ce,le),X.endDTD(),pe.index+pe[0].length}}return-1}function V(B,j,X){var W=B.indexOf("?>",j);if(W){var J=B.substring(j,W).match(/^<\?(\S*)\s*([\s\S]*?)\s*$/);return J?(J[0].length,X.processingInstruction(J[1],J[2]),W+2):-1}return-1}function U(){this.attributeNames={}}U.prototype={setTagName:function(B){if(!a.test(B))throw new Error("invalid tagName:"+B);this.tagName=B},addValue:function(B,j,X){if(!a.test(B))throw new Error("invalid attribute:"+B);this.attributeNames[B]=this.length,this[this.length++]={qName:B,value:j,offset:X}},length:0,getLocalName:function(B){return this[B].localName},getLocator:function(B){return this[B].locator},getQName:function(B){return this[B].qName},getURI:function(B){return this[B].uri},getValue:function(B){return this[B].value}};function K(B,j){var X,W=[],J=/'[^']+'|"[^"]+"|[^\s<>\/=]+=?|(\/?\s*>|<)/g;for(J.lastIndex=j,J.exec(B);X=J.exec(B);)if(W.push(X),X[1])return W}t.XMLReader=Y,t.ParseError=M},"./node_modules/process/browser.js":function(i,t){var e=i.exports={},r,l;function o(){throw new Error("setTimeout has not been defined")}function a(){throw new Error("clearTimeout has not been defined")}(function(){try{typeof setTimeout=="function"?r=setTimeout:r=o}catch{r=o}try{typeof clearTimeout=="function"?l=clearTimeout:l=a}catch{l=a}})();function E(G){if(r===setTimeout)return setTimeout(G,0);if((r===o||!r)&&setTimeout)return r=setTimeout,setTimeout(G,0);try{return r(G,0)}catch{try{return r.call(null,G,0)}catch{return r.call(this,G,0)}}}function w(G){if(l===clearTimeout)return clearTimeout(G);if((l===a||!l)&&clearTimeout)return l=clearTimeout,clearTimeout(G);try{return l(G)}catch{try{return l.call(null,G)}catch{return l.call(this,G)}}}var D=[],C=!1,x,O=-1;function H(){!C||!x||(C=!1,x.length?D=x.concat(D):O=-1,D.length&&L())}function L(){if(!C){var G=E(H);C=!0;for(var re=D.length;re;){for(x=D,D=[];++O1)for(var I=1;Iae)return ge(null,!1);if(ye>1){var ve=Math.max(te[0].Size,te[1].Size);if(ve!==se)return ge(null,!1)}var me=function Ce(Ae){if(Ae=ge.length){pe.emit("has_and_check_upload_id",Z);return}var Ce=ge[me];if(!E.isInArray(Z,Ce)){l.removeUploadId.call(X,Ce),ve(me+1);return}if(l.using[Ce]){ve(me+1);return}O.call(X,{Bucket:U,Region:K,Key:B,UploadId:Ce,tracker:v.tracker},function(Ae,De){!X._isRunningTask(V)||(Ae?(l.removeUploadId.call(X,Ce),ve(me+1)):pe.emit("upload_id_available",{UploadId:Ce,PartList:De.PartList}))})};ye(0)}),pe.on("get_remote_upload_id_list",function(){x.call(X,{Bucket:U,Region:K,Key:B,tracker:v.tracker},function(Z,te){if(!!X._isRunningTask(V)){if(Z)return pe.emit("error",Z);var ge=E.filter(te.UploadList,function(me){return me.Key===B&&(!j||me.StorageClass.toUpperCase()===j.toUpperCase())}).reverse().map(function(me){return me.UploadId||me.UploadID});if(ge.length)pe.emit("seek_local_avail_upload_id",ge);else{var ye=l.getFileId(v.Body,v.ChunkSize,U,B),ve;ye&&(ve=l.getUploadIdList.call(X,ye))&&E.each(ve,function(me){l.removeUploadId.call(X,me)}),pe.emit("no_available_upload_id")}}})}),pe.emit("get_remote_upload_id_list")}function x(v,q){var V=this,U=[],K={Bucket:v.Bucket,Region:v.Region,Prefix:v.Key,calledBySdk:v.calledBySdk||"sliceUploadFile",tracker:v.tracker},B=function j(){V.multipartList(K,function(X,W){if(X)return q(X);U.push.apply(U,W.Upload||[]),W.IsTruncated==="true"?(K.KeyMarker=W.NextKeyMarker,K.UploadIdMarker=W.NextUploadIdMarker,j()):q(null,{UploadList:U})})};B()}function O(v,q){var V=this,U=[],K={Bucket:v.Bucket,Region:v.Region,Key:v.Key,UploadId:v.UploadId,calledBySdk:"sliceUploadFile",tracker:v.tracker},B=function j(){V.multipartListPart(K,function(X,W){if(X)return q(X);U.push.apply(U,W.Part||[]),W.IsTruncated==="true"?(K.PartNumberMarker=W.NextPartNumberMarker,j()):q(null,{PartList:U})})};B()}function H(v,q){var V=this,U=v.TaskId,K=v.Bucket,B=v.Region,j=v.Key,X=v.UploadData,W=v.FileSize,J=v.SliceSize,se=Math.min(v.AsyncLimit||V.options.ChunkParallelLimit||1,256),ae=v.Body,oe=Math.ceil(W/J),ie=0,ce=v.ServerSideEncryption,le=v.Headers,pe=E.filter(X.PartList,function(te){return te.Uploaded&&(ie+=te.PartNumber>=oe&&W%J||J),!te.Uploaded}),Z=v.onProgress;o.eachLimit(pe,se,function(te,ge){if(!!V._isRunningTask(U)){var ye=te.PartNumber,ve=Math.min(W,te.PartNumber*J)-(te.PartNumber-1)*J,me=0;L.call(V,{TaskId:U,Bucket:K,Region:B,Key:j,SliceSize:J,FileSize:W,PartNumber:ye,ServerSideEncryption:ce,Body:ae,UploadData:X,Headers:le,onProgress:function(Ae){ie+=Ae.loaded-me,me=Ae.loaded,Z({loaded:ie,total:W})},tracker:v.tracker},function(Ce,Ae){!V._isRunningTask(U)||(!Ce&&!Ae.ETag&&(Ce='get ETag error, please add "ETag" to CORS ExposeHeader setting.( \u83B7\u53D6ETag\u5931\u8D25\uFF0C\u8BF7\u5728CORS ExposeHeader\u8BBE\u7F6E\u4E2D\u6DFB\u52A0ETag\uFF0C\u8BF7\u53C2\u8003\u6587\u6863\uFF1Ahttps://cloud.tencent.com/document/product/436/13318 )'),Ce?ie-=me:(ie+=ve-me,te.ETag=Ae.ETag),Z({loaded:ie,total:W}),ge(Ce||null,Ae))})}},function(te){if(!!V._isRunningTask(U)){if(te)return q(te);q(null,{UploadId:X.UploadId,SliceList:X.PartList})}})}function L(v,q){var V=this,U=v.TaskId,K=v.Bucket,B=v.Region,j=v.Key,X=v.FileSize,W=v.Body,J=v.PartNumber*1,se=v.SliceSize,ae=v.ServerSideEncryption,oe=v.UploadData,ie=v.Headers||{},ce=V.options.ChunkRetryTimes+1,le=se*(J-1),pe=se,Z=le+se;Z>X&&(Z=X,pe=Z-le);var te=["x-cos-traffic-limit","x-cos-mime-limit"],ge={};E.each(ie,function(ve,me){te.indexOf(me)>-1&&(ge[me]=ve)});var ye=oe.PartList[J-1];o.retry(ce,function(ve){!V._isRunningTask(U)||E.fileSlice(W,le,Z,!0,function(me){V.multipartUpload({TaskId:U,Bucket:K,Region:B,Key:j,ContentLength:pe,PartNumber:J,UploadId:oe.UploadId,ServerSideEncryption:ae,Body:me,Headers:ge,onProgress:v.onProgress,calledBySdk:"sliceUploadFile",tracker:v.tracker},function(Ce,Ae){if(!!V._isRunningTask(U))return Ce?ve(Ce):(ye.Uploaded=!0,ve(null,Ae))})})},function(ve,me){if(!!V._isRunningTask(U))return q(ve,me)})}function M(v,q){var V=v.Bucket,U=v.Region,K=v.Key,B=v.UploadId,j=v.SliceList,X=this,W=this.options.ChunkRetryTimes+1,J=v.Headers,se=j.map(function(ae){return{PartNumber:ae.PartNumber,ETag:ae.ETag}});o.retry(W,function(ae){X.multipartComplete({Bucket:V,Region:U,Key:K,UploadId:B,Parts:se,Headers:J,calledBySdk:"sliceUploadFile",tracker:v.tracker},ae)},function(ae,oe){q(ae,oe)})}function Y(v,q){var V=v.Bucket,U=v.Region,K=v.Key,B=v.UploadId,j=v.Level||"task",X=v.AsyncLimit,W=this,J=new a;if(J.on("error",function(se){return q(se)}),J.on("get_abort_array",function(se){G.call(W,{Bucket:V,Region:U,Key:K,Headers:v.Headers,AsyncLimit:X,AbortArray:se},q)}),j==="bucket")x.call(W,{Bucket:V,Region:U,calledBySdk:"abortUploadTask"},function(se,ae){if(se)return q(se);J.emit("get_abort_array",ae.UploadList||[])});else if(j==="file"){if(!K)return q(E.error(new Error("abort_upload_task_no_key")));x.call(W,{Bucket:V,Region:U,Key:K,calledBySdk:"abortUploadTask"},function(se,ae){if(se)return q(se);J.emit("get_abort_array",ae.UploadList||[])})}else if(j==="task"){if(!B)return q(E.error(new Error("abort_upload_task_no_id")));if(!K)return q(E.error(new Error("abort_upload_task_no_key")));J.emit("get_abort_array",[{Key:K,UploadId:B}])}else return q(E.error(new Error("abort_unknown_level")))}function G(v,q){var V=v.Bucket,U=v.Region,K=v.Key,B=v.AbortArray,j=v.AsyncLimit||1,X=this,W=0,J=new Array(B.length);o.eachLimit(B,j,function(se,ae){var oe=W;if(K&&K!==se.Key){J[oe]={error:{KeyNotMatch:!0}},ae(null);return}var ie=se.UploadId||se.UploadID;X.multipartAbort({Bucket:V,Region:U,Key:se.Key,Headers:v.Headers,UploadId:ie},function(ce){var le={Bucket:V,Region:U,Key:se.Key,UploadId:ie};J[oe]={error:ce,task:le},ae(null)}),W++},function(se){if(se)return q(se);for(var ae=[],oe=[],ie=0,ce=J.length;ieU?"sliceUploadFile":"putObject",oe=v.onFileFinish,ie=function(le,pe){v.tracker&&v.tracker.formatResult(le,pe),oe&&oe(le,pe,X),q&&q(le,pe)};K.push({api:ae,params:v,callback:ie}),V._addTasks(K)}function I(v,q){var V=this,U=v.SliceSize===void 0?V.options.SliceSize:v.SliceSize,K=0,B=0,j=E.throttleOnProgress.call(V,B,v.onProgress),X=v.files.length,W=v.onFileFinish,J=Array(X),se=function(ie,ce,le){j(null,!0),W&&W(ie,ce,le),J[le.Index]={options:le,error:ie,data:ce},--X<=0&&q&&q(null,{files:J})},ae=[];E.each(v.files,function(oe,ie){(function(){var ce=oe.Body,le=ce.size||ce.length||0,pe={Index:ie,TaskId:""};if(!V.options.UseRawKey&&oe.Key&&oe.Key.substr(0,1)==="/"&&(oe.Key=oe.Key.substr(1)),K+=le,V.options.EnableTracker){var Z=V.options.UseAccelerate||typeof V.options.Domain=="string"&&V.options.Domain.includes("accelerate.");oe.tracker=new w({bucket:oe.Bucket,region:oe.Region,apiName:"uploadFiles",fileKey:oe.Key,fileSize:le,accelerate:Z,deepTracker:V.options.DeepTracker,customId:V.options.CustomId,delay:V.options.TrackerDelay})}E.each(oe,function(be,we){r(be)!=="object"&&typeof be!="function"&&(pe[we]=be)});var te=oe.onTaskReady,ge=function(we){pe.TaskId=we,te&&te(we)};oe.onTaskReady=ge;var ye=0,ve=oe.onProgress,me=function(we){B=B-ye+we.loaded,ye=we.loaded,ve&&ve(we),j({loaded:B,total:K})};oe.onProgress=me;var Ce=le>U?"sliceUploadFile":"putObject",Ae=oe.onFileFinish,De=function(we,_e){oe.tracker&&oe.tracker.formatResult(we,_e),Ae&&Ae(we,_e),se&&se(we,_e,pe)};ae.push({api:Ce,params:oe,callback:De})})()}),V._addTasks(ae)}function T(v,q){var V=new a,U=this,K=v.Bucket,B=v.Region,j=v.Key,X=v.CopySource,W=E.getSourceParams.call(this,X);if(!W){q(E.error(new Error("CopySource format error")));return}var J=W.Bucket,se=W.Region,ae=decodeURIComponent(W.Key),oe=v.CopySliceSize===void 0?U.options.CopySliceSize:v.CopySliceSize;oe=Math.max(0,oe);var ie=v.CopyChunkSize||this.options.CopyChunkSize,ce=this.options.CopyChunkParallelLimit,le=this.options.ChunkRetryTimes+1,pe=0,Z=0,te,ge,ye={},ve={},me={};V.on("copy_slice_complete",function(Ce){E.each(v.Headers,function(De,be){be.toLowerCase().indexOf("x-cos-meta-")===0});var Ae=E.map(Ce.PartList,function(De){return{PartNumber:De.PartNumber,ETag:De.ETag}});o.retry(le,function(De){U.multipartComplete({Bucket:K,Region:B,Key:j,UploadId:Ce.UploadId,Parts:Ae,calledBySdk:"sliceCopyFile"},De)},function(De,be){if(l.removeUsing(Ce.UploadId),De)return ge(null,!0),q(De);l.removeUploadId(Ce.UploadId),ge({loaded:te,total:te},!0),q(null,be)})}),V.on("get_copy_data_finish",function(Ce){var Ae=l.getCopyFileId(X,ye,ie,K,j);Ae&&l.saveUploadId(Ae,Ce.UploadId,U.options.UploadIdCacheLimit),l.setUsing(Ce.UploadId);var De=E.filter(Ce.PartList,function(be){return be.Uploaded&&(Z+=be.PartNumber>=pe&&te%ie||ie),!be.Uploaded});o.eachLimit(De,ce,function(be,we){var _e=be.PartNumber,qe=be.CopySourceRange,Me=be.end-be.start;o.retry(le,function(ne){A.call(U,{Bucket:K,Region:B,Key:j,CopySource:X,UploadId:Ce.UploadId,PartNumber:_e,CopySourceRange:qe},ne)},function(ne,p){if(ne)return we(ne);Z+=Me,ge({loaded:Z,total:te}),be.ETag=p.ETag,we(ne||null,p)})},function(be){if(be)return l.removeUsing(Ce.UploadId),ge(null,!0),q(be);V.emit("copy_slice_complete",Ce)})}),V.on("get_chunk_size_finish",function(){var Ce=function(){U.multipartInit({Bucket:K,Region:B,Key:j,Headers:me},function(_e,qe){if(_e)return q(_e);v.UploadId=qe.UploadId,V.emit("get_copy_data_finish",{UploadId:v.UploadId,PartList:v.PartList})})},Ae=l.getCopyFileId(X,ye,ie,K,j),De=l.getUploadIdList(Ae);if(!Ae||!De)return Ce();var be=function we(_e){if(_e>=De.length)return Ce();var qe=De[_e];if(l.using[qe])return we(_e+1);O.call(U,{Bucket:K,Region:B,Key:j,UploadId:qe},function(Me,ne){if(Me)l.removeUploadId(qe),we(_e+1);else{if(l.using[qe])return we(_e+1);var p={},c=0;E.each(ne.PartList,function(s){var d=parseInt(s.Size),y=c+d-1;p[s.PartNumber+"|"+c+"|"+y]=s.ETag,c+=d}),E.each(v.PartList,function(s){var d=p[s.PartNumber+"|"+s.start+"|"+s.end];d&&(s.ETag=d,s.Uploaded=!0)}),V.emit("get_copy_data_finish",{UploadId:qe,PartList:v.PartList})}})};be(0)}),V.on("get_file_size_finish",function(){if(function(){for(var Ae=[1,2,4,8,16,32,64,128,256,512,1024,1024*2,1024*4,1024*5],De=1024*1024,be=0;be_e.length&&(ve[we]=be)}),V.emit("get_file_size_finish")}})}function A(v,q){var V=v.TaskId,U=v.Bucket,K=v.Region,B=v.Key,j=v.CopySource,X=v.UploadId,W=v.PartNumber*1,J=v.CopySourceRange,se=this.options.ChunkRetryTimes+1,ae=this;o.retry(se,function(oe){ae.uploadPartCopy({TaskId:V,Bucket:U,Region:K,Key:B,CopySource:j,UploadId:X,PartNumber:W,CopySourceRange:J},function(ie,ce){oe(ie||null,ce)})},function(oe,ie){return q(oe,ie)})}var N={sliceUploadFile:D,abortUploadTask:Y,uploadFile:re,uploadFiles:I,sliceCopyFile:T};i.exports.init=function(v,q){q.transferToTaskMethod(N,"sliceUploadFile"),E.each(N,function(V,U){v.prototype[U]=E.apiWrapper(U,V)})}},"./src/async.js":function(i,t){var e=function(a,E,w,D){if(D=D||function(){},!a.length||E<=0)return D();var C=0,x=0,O=0;(function H(){if(C>=a.length)return D();for(;O=a.length?D():H())})})()},r=function(a,E,w){var D=function C(x){E(function(O,H){O&&x/gi,"<$1Rule>"),h=h.replace(/<(\/?)Tags>/gi,"<$1Tag>");var b=n.Headers;b["Content-Type"]="application/xml",b["Content-MD5"]=o.b64(o.md5(h)),ue.call(this,{Action:"name/cos:PutBucketReplication",method:"PUT",Bucket:n.Bucket,Region:n.Region,body:h,action:"replication",headers:b},function(S,_){if(S&&S.statusCode===204)return m(null,{statusCode:S.statusCode});if(S)return m(S);m(null,{statusCode:_.statusCode,headers:_.headers})})}function j(n,m){ue.call(this,{Action:"name/cos:GetBucketReplication",method:"GET",Bucket:n.Bucket,Region:n.Region,headers:n.Headers,action:"replication"},function(u,h){if(u){if(u.statusCode===404&&u.error&&(u.error==="Not Found"||u.error.Code==="ReplicationConfigurationnotFoundError")){var b={ReplicationConfiguration:{Rules:[]},statusCode:u.statusCode};u.headers&&(b.headers=u.headers),m(null,b)}else m(u);return}!h.ReplicationConfiguration&&(h.ReplicationConfiguration={}),h.ReplicationConfiguration.Rule&&(h.ReplicationConfiguration.Rules=o.makeArray(h.ReplicationConfiguration.Rule),delete h.ReplicationConfiguration.Rule),m(u,h)})}function X(n,m){ue.call(this,{Action:"name/cos:DeleteBucketReplication",method:"DELETE",Bucket:n.Bucket,Region:n.Region,headers:n.Headers,action:"replication"},function(u,h){if(u&&u.statusCode===204)return m(null,{statusCode:u.statusCode});if(u)return m(u);m(null,{statusCode:h.statusCode,headers:h.headers})})}function W(n,m){if(!n.WebsiteConfiguration){m(o.error(new Error("missing param WebsiteConfiguration")));return}var u=o.clone(n.WebsiteConfiguration||{}),h=u.RoutingRules||u.RoutingRule||[];h=o.isArray(h)?h:[h],delete u.RoutingRule,delete u.RoutingRules,h.length&&(u.RoutingRules={RoutingRule:h});var b=o.json2xml({WebsiteConfiguration:u}),S=n.Headers;S["Content-Type"]="application/xml",S["Content-MD5"]=o.b64(o.md5(b)),ue.call(this,{Action:"name/cos:PutBucketWebsite",method:"PUT",Bucket:n.Bucket,Region:n.Region,body:b,action:"website",headers:S},function(_,F){if(_&&_.statusCode===204)return m(null,{statusCode:_.statusCode});if(_)return m(_);m(null,{statusCode:F.statusCode,headers:F.headers})})}function J(n,m){ue.call(this,{Action:"name/cos:GetBucketWebsite",method:"GET",Bucket:n.Bucket,Region:n.Region,Key:n.Key,headers:n.Headers,action:"website"},function(u,h){if(u){if(u.statusCode===404&&u.error.Code==="NoSuchWebsiteConfiguration"){var b={WebsiteConfiguration:{},statusCode:u.statusCode};u.headers&&(b.headers=u.headers),m(null,b)}else m(u);return}var S=h.WebsiteConfiguration||{};if(S.RoutingRules){var _=o.clone(S.RoutingRules.RoutingRule||[]);_=o.makeArray(_),S.RoutingRules=_}m(null,{WebsiteConfiguration:S,statusCode:h.statusCode,headers:h.headers})})}function se(n,m){ue.call(this,{Action:"name/cos:DeleteBucketWebsite",method:"DELETE",Bucket:n.Bucket,Region:n.Region,headers:n.Headers,action:"website"},function(u,h){if(u&&u.statusCode===204)return m(null,{statusCode:u.statusCode});if(u)return m(u);m(null,{statusCode:h.statusCode,headers:h.headers})})}function ae(n,m){if(!n.RefererConfiguration){m(o.error(new Error("missing param RefererConfiguration")));return}var u=o.clone(n.RefererConfiguration||{}),h=u.DomainList||{},b=h.Domains||h.Domain||[];b=o.isArray(b)?b:[b],b.length&&(u.DomainList={Domain:b});var S=o.json2xml({RefererConfiguration:u}),_=n.Headers;_["Content-Type"]="application/xml",_["Content-MD5"]=o.b64(o.md5(S)),ue.call(this,{Action:"name/cos:PutBucketReferer",method:"PUT",Bucket:n.Bucket,Region:n.Region,body:S,action:"referer",headers:_},function(F,ee){if(F&&F.statusCode===204)return m(null,{statusCode:F.statusCode});if(F)return m(F);m(null,{statusCode:ee.statusCode,headers:ee.headers})})}function oe(n,m){ue.call(this,{Action:"name/cos:GetBucketReferer",method:"GET",Bucket:n.Bucket,Region:n.Region,Key:n.Key,headers:n.Headers,action:"referer"},function(u,h){if(u){if(u.statusCode===404&&u.error.Code==="NoSuchRefererConfiguration"){var b={WebsiteConfiguration:{},statusCode:u.statusCode};u.headers&&(b.headers=u.headers),m(null,b)}else m(u);return}var S=h.RefererConfiguration||{};if(S.DomainList){var _=o.makeArray(S.DomainList.Domain||[]);S.DomainList={Domains:_}}m(null,{RefererConfiguration:S,statusCode:h.statusCode,headers:h.headers})})}function ie(n,m){var u=n.DomainConfiguration||{},h=u.DomainRule||n.DomainRule||[];h=o.clone(h);var b=o.json2xml({DomainConfiguration:{DomainRule:h}}),S=n.Headers;S["Content-Type"]="application/xml",S["Content-MD5"]=o.b64(o.md5(b)),ue.call(this,{Action:"name/cos:PutBucketDomain",method:"PUT",Bucket:n.Bucket,Region:n.Region,body:b,action:"domain",headers:S},function(_,F){if(_&&_.statusCode===204)return m(null,{statusCode:_.statusCode});if(_)return m(_);m(null,{statusCode:F.statusCode,headers:F.headers})})}function ce(n,m){ue.call(this,{Action:"name/cos:GetBucketDomain",method:"GET",Bucket:n.Bucket,Region:n.Region,headers:n.Headers,action:"domain"},function(u,h){if(u)return m(u);var b=[];try{b=h.DomainConfiguration.DomainRule||[]}catch{}b=o.clone(o.isArray(b)?b:[b]),m(null,{DomainRule:b,statusCode:h.statusCode,headers:h.headers})})}function le(n,m){ue.call(this,{Action:"name/cos:DeleteBucketDomain",method:"DELETE",Bucket:n.Bucket,Region:n.Region,headers:n.Headers,action:"domain"},function(u,h){if(u&&u.statusCode===204)return m(null,{statusCode:u.statusCode});if(u)return m(u);m(null,{statusCode:h.statusCode,headers:h.headers})})}function pe(n,m){var u=n.OriginConfiguration||{},h=u.OriginRule||n.OriginRule||[];h=o.clone(h);var b=o.json2xml({OriginConfiguration:{OriginRule:h}}),S=n.Headers;S["Content-Type"]="application/xml",S["Content-MD5"]=o.b64(o.md5(b)),ue.call(this,{Action:"name/cos:PutBucketOrigin",method:"PUT",Bucket:n.Bucket,Region:n.Region,body:b,action:"origin",headers:S},function(_,F){if(_&&_.statusCode===204)return m(null,{statusCode:_.statusCode});if(_)return m(_);m(null,{statusCode:F.statusCode,headers:F.headers})})}function Z(n,m){ue.call(this,{Action:"name/cos:GetBucketOrigin",method:"GET",Bucket:n.Bucket,Region:n.Region,headers:n.Headers,action:"origin"},function(u,h){if(u)return m(u);var b=[];try{b=h.OriginConfiguration.OriginRule||[]}catch{}b=o.clone(o.isArray(b)?b:[b]),m(null,{OriginRule:b,statusCode:h.statusCode,headers:h.headers})})}function te(n,m){ue.call(this,{Action:"name/cos:DeleteBucketOrigin",method:"DELETE",Bucket:n.Bucket,Region:n.Region,headers:n.Headers,action:"origin"},function(u,h){if(u&&u.statusCode===204)return m(null,{statusCode:u.statusCode});if(u)return m(u);m(null,{statusCode:h.statusCode,headers:h.headers})})}function ge(n,m){var u=o.json2xml({BucketLoggingStatus:n.BucketLoggingStatus||""}),h=n.Headers;h["Content-Type"]="application/xml",h["Content-MD5"]=o.b64(o.md5(u)),ue.call(this,{Action:"name/cos:PutBucketLogging",method:"PUT",Bucket:n.Bucket,Region:n.Region,body:u,action:"logging",headers:h},function(b,S){if(b&&b.statusCode===204)return m(null,{statusCode:b.statusCode});if(b)return m(b);m(null,{statusCode:S.statusCode,headers:S.headers})})}function ye(n,m){ue.call(this,{Action:"name/cos:GetBucketLogging",method:"GET",Bucket:n.Bucket,Region:n.Region,headers:n.Headers,action:"logging"},function(u,h){if(u)return m(u);m(null,{BucketLoggingStatus:h.BucketLoggingStatus,statusCode:h.statusCode,headers:h.headers})})}function ve(n,m,u){var h=o.clone(m.InventoryConfiguration);if(h.OptionalFields){var b=h.OptionalFields||[];h.OptionalFields={Field:b}}if(h.Destination&&h.Destination.COSBucketDestination&&h.Destination.COSBucketDestination.Encryption){var S=h.Destination.COSBucketDestination.Encryption;Object.keys(S).indexOf("SSECOS")>-1&&(S["SSE-COS"]=S.SSECOS,delete S.SSECOS)}var _=o.json2xml({InventoryConfiguration:h}),F=m.Headers;F["Content-Type"]="application/xml",F["Content-MD5"]=o.b64(o.md5(_));var ee=n==="PUT"?"name/cos:PutBucketInventory":"name/cos:PostBucketInventory";ue.call(this,{Action:ee,method:n,Bucket:m.Bucket,Region:m.Region,body:_,action:"inventory",qs:{id:m.Id},headers:F},function(Re,Se){if(Re&&Re.statusCode===204)return u(null,{statusCode:Re.statusCode});if(Re)return u(Re);u(null,{statusCode:Se.statusCode,headers:Se.headers})})}function me(n,m){return ve.call(this,"PUT",n,m)}function Ce(n,m){return ve.call(this,"POST",n,m)}function Ae(n,m){ue.call(this,{Action:"name/cos:GetBucketInventory",method:"GET",Bucket:n.Bucket,Region:n.Region,headers:n.Headers,action:"inventory",qs:{id:n.Id}},function(u,h){if(u)return m(u);var b=h.InventoryConfiguration;if(b&&b.OptionalFields&&b.OptionalFields.Field){var S=b.OptionalFields.Field;o.isArray(S)||(S=[S]),b.OptionalFields=S}if(b.Destination&&b.Destination.COSBucketDestination&&b.Destination.COSBucketDestination.Encryption){var _=b.Destination.COSBucketDestination.Encryption;Object.keys(_).indexOf("SSE-COS")>-1&&(_.SSECOS=_["SSE-COS"],delete _["SSE-COS"])}m(null,{InventoryConfiguration:b,statusCode:h.statusCode,headers:h.headers})})}function De(n,m){ue.call(this,{Action:"name/cos:ListBucketInventory",method:"GET",Bucket:n.Bucket,Region:n.Region,headers:n.Headers,action:"inventory",qs:{"continuation-token":n.ContinuationToken}},function(u,h){if(u)return m(u);var b=h.ListInventoryConfigurationResult,S=b.InventoryConfiguration||[];S=o.isArray(S)?S:[S],delete b.InventoryConfiguration,o.each(S,function(_){if(_&&_.OptionalFields&&_.OptionalFields.Field){var F=_.OptionalFields.Field;o.isArray(F)||(F=[F]),_.OptionalFields=F}if(_.Destination&&_.Destination.COSBucketDestination&&_.Destination.COSBucketDestination.Encryption){var ee=_.Destination.COSBucketDestination.Encryption;Object.keys(ee).indexOf("SSE-COS")>-1&&(ee.SSECOS=ee["SSE-COS"],delete ee["SSE-COS"])}}),b.InventoryConfigurations=S,o.extend(b,{statusCode:h.statusCode,headers:h.headers}),m(null,b)})}function be(n,m){ue.call(this,{Action:"name/cos:DeleteBucketInventory",method:"DELETE",Bucket:n.Bucket,Region:n.Region,headers:n.Headers,action:"inventory",qs:{id:n.Id}},function(u,h){if(u&&u.statusCode===204)return m(null,{statusCode:u.statusCode});if(u)return m(u);m(null,{statusCode:h.statusCode,headers:h.headers})})}function we(n,m){if(!n.AccelerateConfiguration){m(o.error(new Error("missing param AccelerateConfiguration")));return}var u={AccelerateConfiguration:n.AccelerateConfiguration||{}},h=o.json2xml(u),b={};b["Content-Type"]="application/xml",b["Content-MD5"]=o.b64(o.md5(h)),ue.call(this,{Action:"name/cos:PutBucketAccelerate",method:"PUT",Bucket:n.Bucket,Region:n.Region,body:h,action:"accelerate",headers:b},function(S,_){if(S)return m(S);m(null,{statusCode:_.statusCode,headers:_.headers})})}function _e(n,m){ue.call(this,{Action:"name/cos:GetBucketAccelerate",method:"GET",Bucket:n.Bucket,Region:n.Region,action:"accelerate"},function(u,h){u||!h.AccelerateConfiguration&&(h.AccelerateConfiguration={}),m(u,h)})}function qe(n,m){var u=n.ServerSideEncryptionConfiguration||{},h=u.Rule||u.Rules||[],b=o.json2xml({ServerSideEncryptionConfiguration:{Rule:h}}),S=n.Headers;S["Content-Type"]="application/xml",S["Content-MD5"]=o.b64(o.md5(b)),ue.call(this,{Action:"name/cos:PutBucketEncryption",method:"PUT",Bucket:n.Bucket,Region:n.Region,body:b,action:"encryption",headers:S},function(_,F){if(_&&_.statusCode===204)return m(null,{statusCode:_.statusCode});if(_)return m(_);m(null,{statusCode:F.statusCode,headers:F.headers})})}function Me(n,m){ue.call(this,{Action:"name/cos:GetBucketEncryption",method:"GET",Bucket:n.Bucket,Region:n.Region,headers:n.Headers,action:"encryption"},function(u,h){if(u){if(u.statusCode===404&&u.code==="NoSuchEncryptionConfiguration"){var b={EncryptionConfiguration:{Rules:[]},statusCode:u.statusCode};u.headers&&(b.headers=u.headers),m(null,b)}else m(u);return}var S=o.makeArray(h.EncryptionConfiguration&&h.EncryptionConfiguration.Rule||[]);h.EncryptionConfiguration={Rules:S},m(u,h)})}function ne(n,m){ue.call(this,{Action:"name/cos:DeleteBucketReplication",method:"DELETE",Bucket:n.Bucket,Region:n.Region,headers:n.Headers,action:"encryption"},function(u,h){if(u&&u.statusCode===204)return m(null,{statusCode:u.statusCode});if(u)return m(u);m(null,{statusCode:h.statusCode,headers:h.headers})})}function p(n,m){ue.call(this,{Action:"name/cos:HeadObject",method:"HEAD",Bucket:n.Bucket,Region:n.Region,Key:n.Key,VersionId:n.VersionId,headers:n.Headers},function(u,h){if(u){var b=u.statusCode;return n.Headers["If-Modified-Since"]&&b&&b===304?m(null,{NotModified:!0,statusCode:b}):m(u)}h.ETag=o.attr(h.headers,"etag",""),m(null,h)})}function c(n,m){var u={};u.prefix=n.Prefix||"",u.delimiter=n.Delimiter,u["key-marker"]=n.KeyMarker,u["version-id-marker"]=n.VersionIdMarker,u["max-keys"]=n.MaxKeys,u["encoding-type"]=n.EncodingType,ue.call(this,{Action:"name/cos:GetBucketObjectVersions",ResourceKey:u.prefix,method:"GET",Bucket:n.Bucket,Region:n.Region,headers:n.Headers,qs:u,action:"versions"},function(h,b){if(h)return m(h);var S=b.ListVersionsResult||{},_=S.DeleteMarker||[];_=o.isArray(_)?_:[_];var F=S.Version||[];F=o.isArray(F)?F:[F];var ee=o.clone(S);delete ee.DeleteMarker,delete ee.Version,o.extend(ee,{DeleteMarkers:_,Versions:F,statusCode:b.statusCode,headers:b.headers}),m(null,ee)})}function s(n,m){var u=n.Query||{},h=n.QueryString||"",b=o.throttleOnProgress.call(this,0,n.onProgress),S=n.tracker;S&&S.setParams({signStartTime:new Date().getTime()}),u["response-content-type"]=n.ResponseContentType,u["response-content-language"]=n.ResponseContentLanguage,u["response-expires"]=n.ResponseExpires,u["response-cache-control"]=n.ResponseCacheControl,u["response-content-disposition"]=n.ResponseContentDisposition,u["response-content-encoding"]=n.ResponseContentEncoding,ue.call(this,{Action:"name/cos:GetObject",method:"GET",Bucket:n.Bucket,Region:n.Region,Key:n.Key,VersionId:n.VersionId,DataType:n.DataType,headers:n.Headers,qs:u,qsStr:h,rawBody:!0,onDownloadProgress:b,tracker:S},function(_,F){if(b(null,!0),_){var ee=_.statusCode;return n.Headers["If-Modified-Since"]&&ee&&ee===304?m(null,{NotModified:!0}):m(_)}m(null,{Body:F.body,ETag:o.attr(F.headers,"etag",""),statusCode:F.statusCode,headers:F.headers})})}function d(n,m){var u=this,h=n.ContentLength,b=o.throttleOnProgress.call(u,h,n.onProgress),S=n.Headers;!S["Cache-Control"]&&!S["cache-control"]&&(S["Cache-Control"]=""),!S["Content-Type"]&&!S["content-type"]&&(S["Content-Type"]=n.Body&&n.Body.type||"");var _=n.UploadAddMetaMd5||u.options.UploadAddMetaMd5||u.options.UploadCheckContentMd5,F=n.tracker;_&&F&&F.setParams({md5StartTime:new Date().getTime()}),o.getBodyMd5(_,n.Body,function(ee){ee&&(F&&F.setParams({md5EndTime:new Date().getTime()}),u.options.UploadCheckContentMd5&&(S["Content-MD5"]=o.b64(ee)),(n.UploadAddMetaMd5||u.options.UploadAddMetaMd5)&&(S["x-cos-meta-md5"]=ee)),n.ContentLength!==void 0&&(S["Content-Length"]=n.ContentLength),b(null,!0),ue.call(u,{Action:"name/cos:PutObject",TaskId:n.TaskId,method:"PUT",Bucket:n.Bucket,Region:n.Region,Key:n.Key,headers:n.Headers,qs:n.Query,body:n.Body,onProgress:b,tracker:F},function(Re,Se){if(Re)return b(null,!0),m(Re);b({loaded:h,total:h},!0);var Ee=z({ForcePathStyle:u.options.ForcePathStyle,protocol:u.options.Protocol,domain:u.options.Domain,bucket:n.Bucket,region:u.options.UseAccelerate?"accelerate":n.Region,object:n.Key});Ee=Ee.substr(Ee.indexOf("://")+3),Se.Location=Ee,Se.ETag=o.attr(Se.headers,"etag",""),m(null,Se)})},n.onHashProgress)}function y(n,m){ue.call(this,{Action:"name/cos:DeleteObject",method:"DELETE",Bucket:n.Bucket,Region:n.Region,Key:n.Key,headers:n.Headers,VersionId:n.VersionId,action:n.Recursive?"recursive":""},function(u,h){if(u){var b=u.statusCode;return b&&b===404?m(null,{BucketNotFound:!0,statusCode:b}):m(u)}m(null,{statusCode:h.statusCode,headers:h.headers})})}function k(n,m){var u={};n.VersionId&&(u.versionId=n.VersionId),ue.call(this,{Action:"name/cos:GetObjectACL",method:"GET",Bucket:n.Bucket,Region:n.Region,Key:n.Key,headers:n.Headers,qs:u,action:"acl"},function(h,b){if(h)return m(h);var S=b.AccessControlPolicy||{},_=S.Owner||{},F=S.AccessControlList&&S.AccessControlList.Grant||[];F=o.isArray(F)?F:[F];var ee=g(S);delete ee.GrantWrite,b.headers&&b.headers["x-cos-acl"]&&(ee.ACL=b.headers["x-cos-acl"]),ee=o.extend(ee,{Owner:_,Grants:F,statusCode:b.statusCode,headers:b.headers}),m(null,ee)})}function P(n,m){var u=n.Headers,h="";if(n.AccessControlPolicy){var b=o.clone(n.AccessControlPolicy||{}),S=b.Grants||b.Grant;S=o.isArray(S)?S:[S],delete b.Grant,delete b.Grants,b.AccessControlList={Grant:S},h=o.json2xml({AccessControlPolicy:b}),u["Content-Type"]="application/xml",u["Content-MD5"]=o.b64(o.md5(h))}o.each(u,function(_,F){F.indexOf("x-cos-grant-")===0&&(u[F]=R(u[F]))}),ue.call(this,{Action:"name/cos:PutObjectACL",method:"PUT",Bucket:n.Bucket,Region:n.Region,Key:n.Key,action:"acl",headers:u,body:h},function(_,F){if(_)return m(_);m(null,{statusCode:F.statusCode,headers:F.headers})})}function Q(n,m){var u=n.Headers;u.Origin=n.Origin,u["Access-Control-Request-Method"]=n.AccessControlRequestMethod,u["Access-Control-Request-Headers"]=n.AccessControlRequestHeaders,ue.call(this,{Action:"name/cos:OptionsObject",method:"OPTIONS",Bucket:n.Bucket,Region:n.Region,Key:n.Key,headers:u},function(h,b){if(h)return h.statusCode&&h.statusCode===403?m(null,{OptionsForbidden:!0,statusCode:h.statusCode}):m(h);var S=b.headers||{};m(null,{AccessControlAllowOrigin:S["access-control-allow-origin"],AccessControlAllowMethods:S["access-control-allow-methods"],AccessControlAllowHeaders:S["access-control-allow-headers"],AccessControlExposeHeaders:S["access-control-expose-headers"],AccessControlMaxAge:S["access-control-max-age"],statusCode:b.statusCode,headers:b.headers})})}function de(n,m){var u=this,h=n.Headers;!h["Cache-Control"]&&!h["cache-control"]&&(h["Cache-Control"]="");var b=n.CopySource||"",S=o.getSourceParams.call(this,b);if(!S){m(o.error(new Error("CopySource format error")));return}var _=S.Bucket,F=S.Region,ee=decodeURIComponent(S.Key);ue.call(this,{Scope:[{action:"name/cos:GetObject",bucket:_,region:F,prefix:ee},{action:"name/cos:PutObject",bucket:n.Bucket,region:n.Region,prefix:n.Key}],method:"PUT",Bucket:n.Bucket,Region:n.Region,Key:n.Key,VersionId:n.VersionId,headers:n.Headers},function(Re,Se){if(Re)return m(Re);var Ee=o.clone(Se.CopyObjectResult||{}),xe=z({ForcePathStyle:u.options.ForcePathStyle,protocol:u.options.Protocol,domain:u.options.Domain,bucket:n.Bucket,region:n.Region,object:n.Key,isLocation:!0});o.extend(Ee,{Location:xe,statusCode:Se.statusCode,headers:Se.headers}),m(null,Ee)})}function he(n,m){var u=n.CopySource||"",h=o.getSourceParams.call(this,u);if(!h){m(o.error(new Error("CopySource format error")));return}var b=h.Bucket,S=h.Region,_=decodeURIComponent(h.Key);ue.call(this,{Scope:[{action:"name/cos:GetObject",bucket:b,region:S,prefix:_},{action:"name/cos:PutObject",bucket:n.Bucket,region:n.Region,prefix:n.Key}],method:"PUT",Bucket:n.Bucket,Region:n.Region,Key:n.Key,VersionId:n.VersionId,qs:{partNumber:n.PartNumber,uploadId:n.UploadId},headers:n.Headers},function(F,ee){if(F)return m(F);var Re=o.clone(ee.CopyPartResult||{});o.extend(Re,{statusCode:ee.statusCode,headers:ee.headers}),m(null,Re)})}function $(n,m){var u=n.Objects||[],h=n.Quiet;u=o.isArray(u)?u:[u];var b=o.json2xml({Delete:{Object:u,Quiet:h||!1}}),S=n.Headers;S["Content-Type"]="application/xml",S["Content-MD5"]=o.b64(o.md5(b));var _=o.map(u,function(F){return{action:"name/cos:DeleteObject",bucket:n.Bucket,region:n.Region,prefix:F.Key}});ue.call(this,{Scope:_,method:"POST",Bucket:n.Bucket,Region:n.Region,body:b,action:"delete",headers:S},function(F,ee){if(F)return m(F);var Re=ee.DeleteResult||{},Se=Re.Deleted||[],Ee=Re.Error||[];Se=o.isArray(Se)?Se:[Se],Ee=o.isArray(Ee)?Ee:[Ee];var xe=o.clone(Re);o.extend(xe,{Error:Ee,Deleted:Se,statusCode:ee.statusCode,headers:ee.headers}),m(null,xe)})}function Te(n,m){var u=n.Headers;if(!n.RestoreRequest){m(o.error(new Error("missing param RestoreRequest")));return}var h=n.RestoreRequest||{},b=o.json2xml({RestoreRequest:h});u["Content-Type"]="application/xml",u["Content-MD5"]=o.b64(o.md5(b)),ue.call(this,{Action:"name/cos:RestoreObject",method:"POST",Bucket:n.Bucket,Region:n.Region,Key:n.Key,VersionId:n.VersionId,body:b,action:"restore",headers:u},m)}function Ie(n,m){var u=n.Tagging||{},h=u.TagSet||u.Tags||n.Tags||[];h=o.clone(o.isArray(h)?h:[h]);var b=o.json2xml({Tagging:{TagSet:{Tag:h}}}),S=n.Headers;S["Content-Type"]="application/xml",S["Content-MD5"]=o.b64(o.md5(b)),ue.call(this,{Action:"name/cos:PutObjectTagging",method:"PUT",Bucket:n.Bucket,Key:n.Key,Region:n.Region,body:b,action:"tagging",headers:S,VersionId:n.VersionId},function(_,F){if(_&&_.statusCode===204)return m(null,{statusCode:_.statusCode});if(_)return m(_);m(null,{statusCode:F.statusCode,headers:F.headers})})}function Pe(n,m){ue.call(this,{Action:"name/cos:GetObjectTagging",method:"GET",Key:n.Key,Bucket:n.Bucket,Region:n.Region,headers:n.Headers,action:"tagging",VersionId:n.VersionId},function(u,h){if(u){if(u.statusCode===404&&u.error&&(u.error==="Not Found"||u.error.Code==="NoSuchTagSet")){var b={Tags:[],statusCode:u.statusCode};u.headers&&(b.headers=u.headers),m(null,b)}else m(u);return}var S=[];try{S=h.Tagging.TagSet.Tag||[]}catch{}S=o.clone(o.isArray(S)?S:[S]),m(null,{Tags:S,statusCode:h.statusCode,headers:h.headers})})}function ke(n,m){ue.call(this,{Action:"name/cos:DeleteObjectTagging",method:"DELETE",Bucket:n.Bucket,Region:n.Region,Key:n.Key,headers:n.Headers,action:"tagging",VersionId:n.VersionId},function(u,h){if(u&&u.statusCode===204)return m(null,{statusCode:u.statusCode});if(u)return m(u);m(null,{statusCode:h.statusCode,headers:h.headers})})}function Fe(n,m){var u=n.SelectType;if(!u)return m(o.error(new Error("missing param SelectType")));var h=n.SelectRequest||{},b=o.json2xml({SelectRequest:h}),S=n.Headers;S["Content-Type"]="application/xml",S["Content-MD5"]=o.b64(o.md5(b)),ue.call(this,{Action:"name/cos:GetObject",method:"POST",Bucket:n.Bucket,Region:n.Region,Key:n.Key,headers:n.Headers,action:"select",qs:{"select-type":n.SelectType},VersionId:n.VersionId,body:b,DataType:"arraybuffer",rawBody:!0},function(_,F){if(_&&_.statusCode===204)return m(null,{statusCode:_.statusCode});if(_)return m(_);var ee=o.parseSelectPayload(F.body);m(null,{statusCode:F.statusCode,headers:F.headers,Body:ee.body,Payload:ee.payload})})}function Ve(n,m){var u=this,h=n.Headers,b=n.tracker;!h["Cache-Control"]&&!h["cache-control"]&&(h["Cache-Control"]=""),!h["Content-Type"]&&!h["content-type"]&&(h["Content-Type"]=n.Body&&n.Body.type||"");var S=n.Body&&(n.UploadAddMetaMd5||u.options.UploadAddMetaMd5);S&&b&&b.setParams({md5StartTime:new Date().getTime()}),o.getBodyMd5(S,n.Body,function(_){_&&(n.Headers["x-cos-meta-md5"]=_),S&&b&&b.setParams({md5EndTime:new Date().getTime()}),ue.call(u,{Action:"name/cos:InitiateMultipartUpload",method:"POST",Bucket:n.Bucket,Region:n.Region,Key:n.Key,action:"uploads",headers:n.Headers,qs:n.Query,tracker:b},function(F,ee){if(F)return b&&b.parent&&b.parent.setParams({errorNode:"multipartInit"}),m(F);if(ee=o.clone(ee||{}),ee&&ee.InitiateMultipartUploadResult)return m(null,o.extend(ee.InitiateMultipartUploadResult,{statusCode:ee.statusCode,headers:ee.headers}));m(null,ee)})},n.onHashProgress)}function Ke(n,m){var u=this;o.getFileSize("multipartUpload",n,function(){var h=n.tracker,b=u.options.UploadCheckContentMd5;b&&h&&h.setParams({md5StartTime:new Date().getTime()}),o.getBodyMd5(b,n.Body,function(S){S&&(n.Headers["Content-MD5"]=o.b64(S)),b&&h&&h.setParams({md5EndTime:new Date().getTime()}),h&&h.setParams({partNumber:n.PartNumber}),ue.call(u,{Action:"name/cos:UploadPart",TaskId:n.TaskId,method:"PUT",Bucket:n.Bucket,Region:n.Region,Key:n.Key,qs:{partNumber:n.PartNumber,uploadId:n.UploadId},headers:n.Headers,onProgress:n.onProgress,body:n.Body||null,tracker:h},function(_,F){if(_)return h&&h.parent&&h.parent.setParams({errorNode:"multipartUpload"}),m(_);m(null,{ETag:o.attr(F.headers,"etag",""),statusCode:F.statusCode,headers:F.headers})})})})}function Ge(n,m){for(var u=this,h=n.UploadId,b=n.Parts,S=n.tracker,_=0,F=b.length;_-1?Ee(Se.Authorization):"sign="+encodeURIComponent(Se.Authorization)),Se.SecurityToken&&(xe+="&x-cos-security-token="+Se.SecurityToken),Se.ClientIP&&(xe+="&clientIP="+Se.ClientIP),Se.ClientUA&&(xe+="&clientUA="+Se.ClientUA),Se.Token&&(xe+="&token="+Se.Token),S&&(xe+="&"+S),setTimeout(function(){m(null,{Url:xe})})}});return ee?(_+="?"+ee.Authorization+(ee.SecurityToken?"&x-cos-security-token="+ee.SecurityToken:""),S&&(_+="&"+S)):S&&(_+="?"+S),_}function g(n){var m={GrantFullControl:[],GrantWrite:[],GrantRead:[],GrantReadAcp:[],GrantWriteAcp:[],ACL:""},u={FULL_CONTROL:"GrantFullControl",WRITE:"GrantWrite",READ:"GrantRead",READ_ACP:"GrantReadAcp",WRITE_ACP:"GrantWriteAcp"},h=n&&n.AccessControlList||{},b=h.Grant;b&&(b=o.isArray(b)?b:[b]);var S={READ:0,WRITE:0,FULL_CONTROL:0};return b&&b.length&&o.each(b,function(_){_.Grantee.ID==="qcs::cam::anyone:anyone"||_.Grantee.URI==="http://cam.qcloud.com/groups/global/AllUsers"?S[_.Permission]=1:_.Grantee.ID!==n.Owner.ID&&m[u[_.Permission]].push('id="'+_.Grantee.ID+'"')}),S.FULL_CONTROL||S.WRITE&&S.READ?m.ACL="public-read-write":S.READ?m.ACL="public-read":m.ACL="private",o.each(u,function(_){m[_]=R(m[_].join(","))}),m}function R(n){var m=n.split(","),u={},h,b;for(h=0;h-1?S="{Region}.myqcloud.com":S="cos.{Region}.myqcloud.com",n.ForcePathStyle||(S="{Bucket}."+S)),S=S.replace(/\{\{AppId\}\}/gi,b).replace(/\{\{Bucket\}\}/gi,h).replace(/\{\{Region\}\}/gi,m).replace(/\{\{.*?\}\}/gi,""),S=S.replace(/\{AppId\}/gi,b).replace(/\{BucketName\}/gi,h).replace(/\{Bucket\}/gi,u).replace(/\{Region\}/gi,m).replace(/\{.*?\}/gi,""),/^[a-zA-Z]+:\/\//.test(S)||(S=F+"//"+S),S.slice(-1)==="/"&&(S=S.slice(0,-1));var ee=S;return n.ForcePathStyle&&(ee+="/"+u),ee+="/",_&&(ee+=o.camSafeUrlEncode(_).replace(/%2F/g,"/")),n.isLocation&&(ee=ee.replace(/^https?:\/\//,"")),ee}var fe=function(m){if(!m.Bucket||!m.Region)return"";var u=m.UseAccelerate===void 0?this.options.UseAccelerate:m.UseAccelerate,h=m.Url||z({ForcePathStyle:this.options.ForcePathStyle,protocol:this.options.Protocol,domain:this.options.Domain,bucket:m.Bucket,region:u?"accelerate":m.Region}),b=h.replace(/^https?:\/\/([^/]+)(\/.*)?$/,"$1"),S=new RegExp("^([a-z\\d-]+-\\d+\\.)?(cos|cosv6|ci|pic)\\.([a-z\\d-]+)\\.myqcloud\\.com$");return S.test(b)?b:""};function Be(n,m){var u=o.clone(n.Headers),h="";o.each(u,function(Ne,Oe){(Ne===""||["content-type","cache-control","expires"].indexOf(Oe.toLowerCase())>-1)&&delete u[Oe],Oe.toLowerCase()==="host"&&(h=Ne)});var b=n.ForceSignHost!==!1;!h&&n.SignHost&&b&&(u.Host=n.SignHost);var S=!1,_=function(Oe,He){S||(S=!0,He&&He.XCosSecurityToken&&!He.SecurityToken&&(He=o.clone(He),He.SecurityToken=He.XCosSecurityToken,delete He.XCosSecurityToken),m&&m(Oe,He))},F=this,ee=n.Bucket||"",Re=n.Region||"",Se=n.Key||"";F.options.ForcePathStyle&&ee&&(Se=ee+"/"+Se);var Ee="/"+Se,xe={},Ue=n.Scope;if(!Ue){var $e=n.Action||"",ot=n.ResourceKey||n.Key||"";Ue=n.Scope||[{action:$e,bucket:ee,region:Re,prefix:ot}]}var it=o.md5(JSON.stringify(Ue));F._StsCache=F._StsCache||[],function(){var Ne,Oe;for(Ne=F._StsCache.length-1;Ne>=0;Ne--){Oe=F._StsCache[Ne];var He=Math.round(o.getSkewTime(F.options.SystemClockOffset)/1e3)+30;if(Oe.StartTime&&He=Oe.ExpiredTime){F._StsCache.splice(Ne,1);continue}if(!Oe.ScopeLimit||Oe.ScopeLimit&&Oe.ScopeKey===it){xe=Oe;break}}}();var Ze=function(){var Oe="";xe.StartTime&&n.Expires?Oe=xe.StartTime+";"+(xe.StartTime+n.Expires*1):xe.StartTime&&xe.ExpiredTime&&(Oe=xe.StartTime+";"+xe.ExpiredTime);var He=o.getAuth({SecretId:xe.TmpSecretId,SecretKey:xe.TmpSecretKey,Method:n.Method,Pathname:Ee,Query:n.Query,Headers:u,Expires:n.Expires,UseRawKey:F.options.UseRawKey,SystemClockOffset:F.options.SystemClockOffset,KeyTime:Oe,ForceSignHost:b}),je={Authorization:He,SecurityToken:xe.SecurityToken||xe.XCosSecurityToken||"",Token:xe.Token||"",ClientIP:xe.ClientIP||"",ClientUA:xe.ClientUA||""};_(null,je)},ut=function(Oe){if(Oe.Authorization){var He=!1,je=Oe.Authorization;if(je)if(je.indexOf(" ")>-1)He=!1;else if(je.indexOf("q-sign-algorithm=")>-1&&je.indexOf("q-ak=")>-1&&je.indexOf("q-sign-time=")>-1&&je.indexOf("q-key-time=")>-1&&je.indexOf("q-url-param-list=")>-1)He=!0;else try{je=atob(je),je.indexOf("a=")>-1&&je.indexOf("k=")>-1&&je.indexOf("t=")>-1&&je.indexOf("r=")>-1&&je.indexOf("b=")>-1&&(He=!0)}catch{}if(!He)return o.error(new Error("getAuthorization callback params format error"))}else{if(!Oe.TmpSecretId)return o.error(new Error('getAuthorization callback params missing "TmpSecretId"'));if(!Oe.TmpSecretKey)return o.error(new Error('getAuthorization callback params missing "TmpSecretKey"'));if(!Oe.SecurityToken&&!Oe.XCosSecurityToken)return o.error(new Error('getAuthorization callback params missing "SecurityToken"'));if(!Oe.ExpiredTime)return o.error(new Error('getAuthorization callback params missing "ExpiredTime"'));if(Oe.ExpiredTime&&Oe.ExpiredTime.toString().length!==10)return o.error(new Error('getAuthorization callback params "ExpiredTime" should be 10 digits'));if(Oe.StartTime&&Oe.StartTime.toString().length!==10)return o.error(new Error('getAuthorization callback params "StartTime" should be 10 StartTime'))}return!1};if(xe.ExpiredTime&&xe.ExpiredTime-o.getSkewTime(F.options.SystemClockOffset)/1e3>60)Ze();else if(F.options.getAuthorization)F.options.getAuthorization.call(F,{Bucket:ee,Region:Re,Method:n.Method,Key:Se,Pathname:Ee,Query:n.Query,Headers:u,Scope:Ue,SystemClockOffset:F.options.SystemClockOffset,ForceSignHost:b},function(Ne){typeof Ne=="string"&&(Ne={Authorization:Ne});var Oe=ut(Ne);if(Oe)return _(Oe);Ne.Authorization?_(null,Ne):(xe=Ne||{},xe.Scope=Ue,xe.ScopeKey=it,F._StsCache.push(xe),Ze())});else if(F.options.getSTS)F.options.getSTS.call(F,{Bucket:ee,Region:Re},function(Ne){xe=Ne||{},xe.Scope=Ue,xe.ScopeKey=it,xe.TmpSecretId||(xe.TmpSecretId=xe.SecretId),xe.TmpSecretKey||(xe.TmpSecretKey=xe.SecretKey);var Oe=ut(xe);if(Oe)return _(Oe);F._StsCache.push(xe),Ze()});else return function(){var Ne=o.getAuth({SecretId:n.SecretId||F.options.SecretId,SecretKey:n.SecretKey||F.options.SecretKey,Method:n.Method,Pathname:Ee,Query:n.Query,Headers:u,Expires:n.Expires,UseRawKey:F.options.UseRawKey,SystemClockOffset:F.options.SystemClockOffset,ForceSignHost:b}),Oe={Authorization:Ne,SecurityToken:F.options.SecurityToken||F.options.XCosSecurityToken};return _(null,Oe),Oe}();return""}function Le(n){var m=!1,u=!1,h=n.headers&&(n.headers.date||n.headers.Date)||n.error&&n.error.ServerTime;try{var b=n.error.Code,S=n.error.Message;(b==="RequestTimeTooSkewed"||b==="AccessDenied"&&S==="Request has expired")&&(u=!0)}catch{}if(n)if(u&&h){var _=Date.parse(h);this.options.CorrectClockSkew&&Math.abs(o.getSkewTime(this.options.SystemClockOffset)-_)>=3e4&&(console.error("error: Local time is too skewed."),this.options.SystemClockOffset=_-Date.now(),m=!0)}else Math.floor(n.statusCode/100)===5&&(m=!0);return m}function ue(n,m){var u=this;!n.headers&&(n.headers={}),!n.qs&&(n.qs={}),n.VersionId&&(n.qs.versionId=n.VersionId),n.qs=o.clearKey(n.qs),n.headers&&(n.headers=o.clearKey(n.headers)),n.qs&&(n.qs=o.clearKey(n.qs));var h=o.clone(n.qs);n.action&&(h[n.action]="");var b=n.url||n.Url,S=n.SignHost||fe.call(this,{Bucket:n.Bucket,Region:n.Region,Url:b}),_=n.tracker,F=function ee(Re){var Se=u.options.SystemClockOffset;_&&_.setParams({signStartTime:new Date().getTime(),retryTimes:Re-1}),Be.call(u,{Bucket:n.Bucket||"",Region:n.Region||"",Method:n.method,Key:n.Key,Query:h,Headers:n.headers,SignHost:S,Action:n.Action,ResourceKey:n.ResourceKey,Scope:n.Scope,ForceSignHost:u.options.ForceSignHost},function(Ee,xe){if(Ee){m(Ee);return}_&&_.setParams({signEndTime:new Date().getTime(),httpStartTime:new Date().getTime()}),n.AuthData=xe,Ye.call(u,n,function(Ue,$e){_&&_.setParams({httpEndTime:new Date().getTime()}),Ue&&Re<2&&(Se!==u.options.SystemClockOffset||Le.call(u,Ue))?(n.headers&&(delete n.headers.Authorization,delete n.headers.token,delete n.headers.clientIP,delete n.headers.clientUA,n.headers["x-cos-security-token"]&&delete n.headers["x-cos-security-token"],n.headers["x-ci-security-token"]&&delete n.headers["x-ci-security-token"]),ee(Re+1)):m(Ue,$e)})})};F(1)}function Ye(n,m){var u=this,h=n.TaskId;if(!(h&&!u._isRunningTask(h))){var b=n.Bucket,S=n.Region,_=n.Key,F=n.method||"GET",ee=n.Url||n.url,Re=n.body,Se=n.rawBody;u.options.UseAccelerate&&(S="accelerate"),ee=ee||z({ForcePathStyle:u.options.ForcePathStyle,protocol:u.options.Protocol,domain:u.options.Domain,bucket:b,region:S,object:_}),n.action&&(ee=ee+"?"+(o.isIOS_QQ?"".concat(n.action,"="):n.action)),n.qsStr&&(ee.indexOf("?")>-1?ee=ee+"&"+n.qsStr:ee=ee+"?"+n.qsStr);var Ee={method:F,url:ee,headers:n.headers,qs:n.qs,body:Re},xe="x-cos-security-token";if(o.isCIHost(ee)&&(xe="x-ci-security-token"),Ee.headers.Authorization=n.AuthData.Authorization,n.AuthData.Token&&(Ee.headers.token=n.AuthData.Token),n.AuthData.ClientIP&&(Ee.headers.clientIP=n.AuthData.ClientIP),n.AuthData.ClientUA&&(Ee.headers.clientUA=n.AuthData.ClientUA),n.AuthData.SecurityToken&&(Ee.headers[xe]=n.AuthData.SecurityToken),Ee.headers&&(Ee.headers=o.clearKey(Ee.headers)),Ee=o.clearKey(Ee),n.onProgress&&typeof n.onProgress=="function"){var Ue=Re&&(Re.size||Re.length)||0;Ee.onProgress=function(Ne){if(!(h&&!u._isRunningTask(h))){var Oe=Ne?Ne.loaded:0;n.onProgress({loaded:Oe,total:Ue})}}}n.onDownloadProgress&&(Ee.onDownloadProgress=n.onDownloadProgress),n.DataType&&(Ee.dataType=n.DataType),this.options.Timeout&&(Ee.timeout=this.options.Timeout),u.options.ForcePathStyle&&(Ee.pathStyle=u.options.ForcePathStyle),u.emit("before-send",Ee);var $e=Ee.url.includes("accelerate."),ot=Ee.qs?Object.keys(Ee.qs).map(function(Ne){return"".concat(Ne,"=").concat(Ee.qs[Ne])}).join("&"):"",it=ot?Ee.url+"?"+ot:Ee.url;n.tracker&&n.tracker.setParams({reqUrl:it,accelerate:$e?"Y":"N"}),n.tracker&&n.tracker.parent&&n.tracker.parent.setParams({reqUrl:it,accelerate:$e?"Y":"N"});var Ze=(u.options.Request||l)(Ee,function(Ne){if(!(Ne&&Ne.error==="abort")){var Oe={options:Ee,error:Ne&&Ne.error,statusCode:Ne&&Ne.statusCode||0,statusMessage:Ne&&Ne.statusMessage||"",headers:Ne&&Ne.headers||{},body:Ne&&Ne.body};u.emit("after-receive",Oe);var He=Oe.error,je=Oe.body,tt={statusCode:Oe.statusCode,statusMessage:Oe.statusMessage,headers:Oe.headers},pt,st=function(dt,ht){if(h&&u.off("inner-kill-task",ut),!pt){pt=!0;var ft={};tt&&tt.statusCode&&(ft.statusCode=tt.statusCode),tt&&tt.headers&&(ft.headers=tt.headers),dt?(dt=o.extend(dt||{},ft),m(dt,null)):(ht=o.extend(ht||{},ft),m(null,ht)),Ze=null}};if(He)return st(o.error(He));var ct=tt.statusCode,gt=Math.floor(ct/100)===2;if(Se&>)return st(null,{body:je});var at;try{at=je&&je.indexOf("<")>-1&&je.indexOf(">")>-1&&o.xml2json(je)||{}}catch{at={}}var lt=at&&at.Error;gt?st(null,at):lt?st(o.error(new Error(lt.Message),{code:lt.Code,error:lt})):ct?st(o.error(new Error(tt.statusMessage),{code:""+ct})):ct&&st(o.error(new Error("statusCode error")))}}),ut=function Ne(Oe){Oe.TaskId===h&&(Ze&&Ze.abort&&Ze.abort(),u.off("inner-kill-task",Ne))};h&&u.on("inner-kill-task",ut)}}var Qe={getService:a,putBucket:E,headBucket:w,getBucket:D,deleteBucket:C,putBucketAcl:x,getBucketAcl:O,putBucketCors:H,getBucketCors:L,deleteBucketCors:M,getBucketLocation:Y,getBucketPolicy:re,putBucketPolicy:G,deleteBucketPolicy:I,putBucketTagging:T,getBucketTagging:A,deleteBucketTagging:N,putBucketLifecycle:v,getBucketLifecycle:q,deleteBucketLifecycle:V,putBucketVersioning:U,getBucketVersioning:K,putBucketReplication:B,getBucketReplication:j,deleteBucketReplication:X,putBucketWebsite:W,getBucketWebsite:J,deleteBucketWebsite:se,putBucketReferer:ae,getBucketReferer:oe,putBucketDomain:ie,getBucketDomain:ce,deleteBucketDomain:le,putBucketOrigin:pe,getBucketOrigin:Z,deleteBucketOrigin:te,putBucketLogging:ge,getBucketLogging:ye,putBucketInventory:me,postBucketInventory:Ce,getBucketInventory:Ae,listBucketInventory:De,deleteBucketInventory:be,putBucketAccelerate:we,getBucketAccelerate:_e,putBucketEncryption:qe,getBucketEncryption:Me,deleteBucketEncryption:ne,getObject:s,headObject:p,listObjectVersions:c,putObject:d,deleteObject:y,getObjectAcl:k,putObjectAcl:P,optionsObject:Q,putObjectCopy:de,deleteMultipleObject:$,restoreObject:Te,putObjectTagging:Ie,getObjectTagging:Pe,deleteObjectTagging:ke,selectObjectContent:Fe,appendObject:et,uploadPartCopy:he,multipartInit:Ve,multipartUpload:Ke,multipartComplete:Ge,multipartList:ze,multipartListPart:We,multipartAbort:Xe,request:rt,getObjectUrl:f,getAuth:nt};function Je(n,m,u){o.each(["Cors","Acl"],function(h){if(n.slice(-h.length)===h){var b=n.slice(0,-h.length)+h.toUpperCase(),S=o.apiWrapper(n,m),_=!1;u[b]=function(){!_&&console.warn("warning: cos."+b+" has been deprecated. Please Use cos."+n+" instead."),_=!0,S.apply(this,arguments)}}})}i.exports.init=function(n,m){m.transferToTaskMethod(Qe,"putObject"),o.each(Qe,function(u,h){n.prototype[h]=o.apiWrapper(h,u),Je(h,u,n.prototype)})}},"./src/cos.js":function(i,t,e){var r=e("./src/util.js"),l=e("./src/event.js"),o=e("./src/task.js"),a=e("./src/base.js"),E=e("./src/advance.js"),w=e("./package.json"),D={AppId:"",SecretId:"",SecretKey:"",SecurityToken:"",ChunkRetryTimes:2,FileParallelLimit:3,ChunkParallelLimit:3,ChunkSize:1024*1024,SliceSize:1024*1024,CopyChunkParallelLimit:20,CopyChunkSize:1024*1024*10,CopySliceSize:1024*1024*10,MaxPartNumber:1e4,ProgressInterval:1e3,Domain:"",ServiceDomain:"",Protocol:"",CompatibilityMode:!1,ForcePathStyle:!1,UseRawKey:!1,Timeout:0,CorrectClockSkew:!0,SystemClockOffset:0,UploadCheckContentMd5:!1,UploadQueueSize:1e4,UploadAddMetaMd5:!1,UploadIdCacheLimit:50,UseAccelerate:!1,ForceSignHost:!0,EnableTracker:!1,DeepTracker:!1,TrackerDelay:5e3,CustomId:""},C=function(O){this.options=r.extend(r.clone(D),O||{}),this.options.FileParallelLimit=Math.max(1,this.options.FileParallelLimit),this.options.ChunkParallelLimit=Math.max(1,this.options.ChunkParallelLimit),this.options.ChunkRetryTimes=Math.max(0,this.options.ChunkRetryTimes),this.options.ChunkSize=Math.max(1024*1024,this.options.ChunkSize),this.options.CopyChunkParallelLimit=Math.max(1,this.options.CopyChunkParallelLimit),this.options.CopyChunkSize=Math.max(1024*1024,this.options.CopyChunkSize),this.options.CopySliceSize=Math.max(0,this.options.CopySliceSize),this.options.MaxPartNumber=Math.max(1024,Math.min(1e4,this.options.MaxPartNumber)),this.options.Timeout=Math.max(0,this.options.Timeout),this.options.AppId&&console.warn('warning: AppId has been deprecated, Please put it at the end of parameter Bucket(E.g: "test-1250000000").'),this.options.SecretId&&this.options.SecretId.indexOf(" ")>-1&&(console.error("error: SecretId\u683C\u5F0F\u9519\u8BEF\uFF0C\u8BF7\u68C0\u67E5"),console.error("error: SecretId format is incorrect. Please check")),this.options.SecretKey&&this.options.SecretKey.indexOf(" ")>-1&&(console.error("error: SecretKey\u683C\u5F0F\u9519\u8BEF\uFF0C\u8BF7\u68C0\u67E5"),console.error("error: SecretKey format is incorrect. Please check")),r.isNode()&&(console.warn("warning: cos-js-sdk-v5 \u4E0D\u652F\u6301 nodejs \u73AF\u5883\u4F7F\u7528\uFF0C\u8BF7\u6539\u7528 cos-nodejs-sdk-v5\uFF0C\u53C2\u8003\u6587\u6863\uFF1A https://cloud.tencent.com/document/product/436/8629"),console.warn("warning: cos-js-sdk-v5 does not support nodejs environment. Please use cos-nodejs-sdk-v5 instead. See: https://cloud.tencent.com/document/product/436/8629")),l.init(this),o.init(this)};a.init(C,o),E.init(C,o),C.util={md5:r.md5,xml2json:r.xml2json,json2xml:r.json2xml,encodeBase64:r.encodeBase64},C.getAuthorization=r.getAuth,C.version=w.version,i.exports=C},"./src/event.js":function(i,t){var e=function(o){var a={},E=function(D){return!a[D]&&(a[D]=[]),a[D]};o.on=function(w,D){w==="task-list-update"&&console.warn('warning: Event "'+w+'" has been deprecated. Please use "list-update" instead.'),E(w).push(D)},o.off=function(w,D){for(var C=E(w),x=C.length-1;x>=0;x--)D===C[x]&&C.splice(x,1)},o.emit=function(w,D){for(var C=E(w).map(function(O){return O}),x=0;x=0;Y--){var G=a[Y][2];(!G||G+o=0;G--){var re=a[G];re[0]===L&&re[1]===M&&a.splice(G,1)}a.unshift([L,M,Math.round(Date.now()/1e3)]),a.length>Y&&a.splice(Y),x()}},removeUploadId:function(L){C.call(this),delete O.using[L];for(var M=a.length-1;M>=0;M--)a[M][1]===L&&a.splice(M,1);x()}};i.exports=O},"./src/task.js":function(i,t,e){var r=e("./src/session.js"),l=e("./src/util.js"),o={},a=function(D,C){o[C]=D[C],D[C]=function(x,O){x.SkipTask?o[C].call(this,x,O):this._addTask(C,x,O)}},E=function(D){var C=[],x={},O=0,H=0,L=function(A){var N={id:A.id,Bucket:A.Bucket,Region:A.Region,Key:A.Key,FilePath:A.FilePath,state:A.state,loaded:A.loaded,size:A.size,speed:A.speed,percent:A.percent,hashPercent:A.hashPercent,error:A.error};return A.FilePath&&(N.FilePath=A.FilePath),A._custom&&(N._custom=A._custom),N},M=function(){var T,A=function(){T=0,D.emit("task-list-update",{list:l.map(C,L)}),D.emit("list-update",{list:l.map(C,L)})};return function(){T||(T=setTimeout(A))}}(),Y=function(){if(!(C.length<=D.options.UploadQueueSize)){for(var A=0;AD.options.UploadQueueSize;){var N=C[A].state==="waiting"||C[A].state==="checking"||C[A].state==="uploading";!C[A]||!N?(x[C[A].id]&&delete x[C[A].id],C.splice(A,1),H--):A++}M()}},G=function T(){if(!(O>=D.options.FileParallelLimit)){for(;C[H]&&C[H].state!=="waiting";)H++;if(!(H>=C.length)){var A=C[H];H++,O++,A.state="checking",A.params.onTaskStart&&A.params.onTaskStart(L(A)),!A.params.UploadData&&(A.params.UploadData={});var N=l.formatParams(A.api,A.params);o[A.api].call(D,N,function(v,q){!D._isRunningTask(A.id)||((A.state==="checking"||A.state==="uploading")&&(A.state=v?"error":"success",v&&(A.error=v),O--,M(),T(),A.callback&&A.callback(v,q),A.state==="success"&&(A.params&&(delete A.params.UploadData,delete A.params.Body,delete A.params),delete A.callback)),Y())}),M(),setTimeout(T)}}},re=function(A,N){var v=x[A];if(!!v){var q=v&&v.state==="waiting",V=v&&(v.state==="checking"||v.state==="uploading");if(N==="canceled"&&v.state!=="canceled"||N==="paused"&&q||N==="paused"&&V){if(N==="paused"&&v.params.Body&&typeof v.params.Body.pipe=="function"){console.error("stream not support pause");return}v.state=N,D.emit("inner-kill-task",{TaskId:A,toState:N});try{var U=v&&v.params&&v.params.UploadData.UploadId}catch{}N==="canceled"&&U&&r.removeUsing(U),M(),V&&(O--,G()),N==="canceled"&&(v.params&&(delete v.params.UploadData,delete v.params.Body,delete v.params),delete v.callback)}Y()}};D._addTasks=function(T){l.each(T,function(A){D._addTask(A.api,A.params,A.callback,!0)}),M()};var I=!0;D._addTask=function(T,A,N,v){A=l.formatParams(T,A);var q=l.uuid();A.TaskId=q,A.onTaskReady&&A.onTaskReady(q),A.TaskReady&&(A.TaskReady(q),I&&console.warn('warning: Param "TaskReady" has been deprecated. Please use "onTaskReady" instead.'),I=!1);var V={params:A,callback:N,api:T,index:C.length,id:q,Bucket:A.Bucket,Region:A.Region,Key:A.Key,FilePath:A.FilePath||"",state:"waiting",loaded:0,size:0,speed:0,percent:0,hashPercent:0,error:null,_custom:A._custom},U=A.onHashProgress;A.onHashProgress=function(B){!D._isRunningTask(V.id)||(V.hashPercent=B.percent,U&&U(B),M())};var K=A.onProgress;return A.onProgress=function(B){!D._isRunningTask(V.id)||(V.state==="checking"&&(V.state="uploading"),V.loaded=B.loaded,V.speed=B.speed,V.percent=B.percent,K&&K(B),M())},l.getFileSize(T,A,function(B,j){if(B)return N(l.error(B));x[q]=V,C.push(V),V.size=j,!v&&M(),G(),Y()}),q},D._isRunningTask=function(T){var A=x[T];return!!(A&&(A.state==="checking"||A.state==="uploading"))},D.getTaskList=function(){return l.map(C,L)},D.cancelTask=function(T){re(T,"canceled")},D.pauseTask=function(T){re(T,"paused")},D.restartTask=function(T){var A=x[T];A&&(A.state==="paused"||A.state==="error")&&(A.state="waiting",M(),H=Math.min(H,A.index),G())},D.isUploadRunning=function(){return O||H=0||T.indexOf("wow32")>=0?"win32":T.indexOf("win64")>=0||T.indexOf("wow64")>=0?"win64":A?"mac":"unknown os"},isMobile:function(){var T=/(phone|pad|pod|iPhone|iPod|ios|iPad|Android|Mobile|BlackBerry|IEMobile|MQQBrowser|JUC|Fennec|wOSBrowser|BrowserNG|WebOS|Symbian|Windows Phone)/i;return!!((typeof navigator=="undefined"?"undefined":o(navigator))==="object"&&navigator.userAgent.match(T))},isAndroid:function(){var T=/(Android|Adr|Linux)/i;return!!((typeof navigator=="undefined"?"undefined":o(navigator))==="object"&&navigator.userAgent.match(T))},isIOS:function(){var T=/(iPhone|iPod|iPad|iOS)/i;return!!((typeof navigator=="undefined"?"undefined":o(navigator))==="object"&&navigator.userAgent.match(T))},isOtherMobile:function(){return isMobile&&!isAndroid&&!isIOS},getDeviceName:function(){if((typeof navigator=="undefined"?"undefined":o(navigator))!=="object")return"unknown device";var T=navigator.userAgent.toLowerCase();if(T.includes("app/tencent_wemeet"))return"tencent_wemeet";if(T.indexOf("maxthon")>=0){var A=T.match(/maxthon\/([\d.]+)/),N=A&&A[1]||"";return"\u50B2\u6E38\u6D4F\u89C8\u5668 ".concat(N).trim()}if(T.indexOf("qqbrowser")>=0){var v=T.match(/qqbrowser\/([\d.]+)/),q=v&&v[1]||"";return"QQ\u6D4F\u89C8\u5668 ".concat(q).trim()}if(T.indexOf("se 2.x")>=0)return"\u641C\u72D7\u6D4F\u89C8\u5668";if(T.indexOf("wxwork")>=0)return"\u5FAE\u4FE1\u5185\u7F6E\u6D4F\u89C8\u5668";if(T.indexOf("msie")>=0){var V=T.match(/msie ([\d.]+)/),U=V&&V[1]||"";return"IE ".concat(U).trim()}if(T.indexOf("firefox")>=0){var K=T.match(/firefox\/([\d.]+)/),B=K&&K[1]||"";return"Firefox ".concat(B).trim()}if(T.indexOf("chrome")>=0){var j=T.match(/chrome\/([\d.]+)/),X=j&&j[1]||"";return"Chrome ".concat(X).trim()}if(T.indexOf("opera")>=0){var W=T.match(/opera.([\d.]+)/),J=W&&W[1]||"";return"Opera ".concat(J).trim()}if(T.indexOf("safari")>=0){var se=T.match(/version\/([\d.]+)/),ae=se&&se[1]||"";return"Safari ".concat(ae).trim()}if(T.indexOf("edge")>=0){var oe=T.match(/edge\/([\d.]+)/),ie=oe&&oe[1]||"";return"edge ".concat(ie).trim()}return T.substr(0,200)}},C={isMobile:D.isMobile(),isBrowser:!D.isMobile(),mobileOsType:D.isAndroid()?"android":D.isIOS?"ios":"other_mobile",pcOsType:D.getOsType()},x={deviceType:C.isMobile?"mobile":C.isBrowser?"browser":"unknown",devicePlatform:C.isMobile?C.mobileOsType:C.pcOsType,deviceName:D.getDeviceName()},O=["multipartInit","multipartUpload","multipartComplete","multipartList","multipartListPart","multipartAbort"],H=["putObject","postObject","appendObject","sliceUploadFile","uploadFile","uploadFiles"].concat(O),L=["getObject"];function M(I){return H.includes(I)?"cos_upload":L.includes(I)?"cos_download":"base_service"}function Y(I){return I.replace(/([A-Z])/g,"_$1").toLowerCase()}function G(I){var T={},A=["tracePlatform","cossdkVersion","region","networkType","host","accelerate","requestPath","size","httpMd5","httpSign","httpFull","name","result","tookTime","errorNode","errorCode","errorMessage","errorRequestId","errorStatusCode","errorServiceName","errorType","traceId","bucket","appid","partNumber","retryTimes","reqUrl","customId","fullError","deviceType","devicePlatform","deviceName"],N=["tracePlatform","cossdkVersion","region","bucket","appid","networkType","host","accelerate","requestPath","partNumber","size","name","result","tookTime","errorRequestId","retryTimes","reqUrl","customId","deviceType","devicePlatform","deviceName"],v=I.result==="Success"?N:A;for(var q in I)if(!!v.includes(q)){var V=Y(q);T[V]=I[q]}return T}var re=function(){function I(T){r(this,I);var A=T.parent,N=T.traceId,v=T.bucket,q=T.region,V=T.apiName,U=T.fileKey,K=T.fileSize,B=T.accelerate,j=T.customId,X=T.delay,W=T.deepTracker,J=v&&v.substr(v.lastIndexOf("-")+1)||"";this.parent=A,this.deepTracker=W,this.delay=X,this.params={cossdkVersion:a.version,region:q,networkType:"",host:"",accelerate:B?"Y":"N",requestPath:U||"",size:K||-1,httpMd5:0,httpSign:0,httpFull:0,name:V||"",result:"",tookTime:0,errorNode:"",errorCode:"",errorMessage:"",errorRequestId:"",errorStatusCode:0,errorServiceName:"",tracePlatform:"cos-js-sdk-v5",traceId:N||D.getUid(),bucket:v,appid:J,partNumber:0,retryTimes:0,reqUrl:"",customId:j||"",deviceType:x.deviceType,devicePlatform:x.devicePlatform,deviceName:x.deviceName,md5StartTime:0,md5EndTime:0,signStartTime:0,signEndTime:0,httpStartTime:0,httpEndTime:0,startTime:new Date().getTime(),endTime:0},this.beacon=w(X)}return l(I,[{key:"formatResult",value:function(A,N){var v,q,V,U,K,B,j=new Date().getTime(),X=j-this.params.startTime,W=D.getNetType(),J=A?(A==null?void 0:A.code)||(A==null||(v=A.error)===null||v===void 0?void 0:v.code)||(A==null||(q=A.error)===null||q===void 0?void 0:q.Code):"",se=A?(A==null?void 0:A.message)||(A==null||(V=A.error)===null||V===void 0?void 0:V.message)||(A==null||(U=A.error)===null||U===void 0?void 0:U.Message):"",ae=A?(A==null?void 0:A.resource)||(A==null||(K=A.error)===null||K===void 0?void 0:K.resource)||(A==null||(B=A.error)===null||B===void 0?void 0:B.Resource):"",oe=A?A==null?void 0:A.statusCode:N.statusCode,ie=A?(A==null?void 0:A.headers)&&(A==null?void 0:A.headers["x-cos-request-id"]):(N==null?void 0:N.headers)&&(N==null?void 0:N.headers["x-cos-request-id"]),ce=A?ie?"Server":"Client":"";if(Object.assign(this.params,{tookTime:X,networkType:W,httpMd5:this.params.md5EndTime-this.params.md5StartTime,httpSign:this.params.signEndTime-this.params.signStartTime,httpFull:this.params.httpEndTime-this.params.httpStartTime,result:A?"Fail":"Success",errorType:ce,errorCode:J,errorStatusCode:oe,errorMessage:se,errorServiceName:ae,errorRequestId:ie}),A&&(!J||!se)&&(this.params.fullError=A?JSON.stringify(A):""),this.params.name==="getObject"&&(this.params.size=N?N.headers&&N.headers["content-length"]:-1),this.params.reqUrl)try{var le=/^http(s)?:\/\/(.*?)\//.exec(this.params.reqUrl);this.params.host=le[2]}catch{this.params.host=this.params.reqUrl}this.sendEvents()}},{key:"setParams",value:function(A){Object.assign(this.params,A)}},{key:"sendEvents",value:function(){if(!(O.includes(this.params.name)&&!this.deepTracker)){var A=M(this.params.name),N=G(this.params);this.beacon||(this.beacon=w(this.delay||5e3)),this.delay===0?this.beacon&&this.beacon.onDirectUserAction(A,N):this.beacon&&this.beacon.onUserAction(A,N)}}},{key:"generateSubTracker",value:function(A){return Object.assign(A,{parent:this,deepTracker:this.deepTracker,traceId:this.params.traceId,bucket:this.params.bucket,region:this.params.region,fileKey:this.params.requestPath,customId:this.params.customId,delay:this.delay}),new I(A)}}]),I}();i.exports=re},"./src/util.js":function(i,t,e){(function(r){var l=e("./node_modules/@babel/runtime/helpers/typeof.js"),o=e("./lib/md5.js"),a=e("./lib/crypto.js"),E=e("./lib/xml2json.js"),w=e("./lib/json2xml.js"),D=e("./lib/base64.js"),C=e("./src/tracker.js");function x(ne){return encodeURIComponent(ne).replace(/!/g,"%21").replace(/'/g,"%27").replace(/\(/g,"%28").replace(/\)/g,"%29").replace(/\*/g,"%2A")}function O(ne,p){var c=[];for(var s in ne)ne.hasOwnProperty(s)&&c.push(p?x(s).toLowerCase():s);return c.sort(function(d,y){return d=d.toLowerCase(),y=y.toLowerCase(),d===y?0:d>y?1:-1})}var H=function(p,c){var s,d,y,k=[],P=O(p);for(s=0;s-1||L.indexOf(d)>-1)&&(c[s]=p[s])}return c},Y=function(p){p=p||{};var c=p.SecretId,s=p.SecretKey,d=p.KeyTime,y=(p.method||p.Method||"get").toLowerCase(),k=j(p.Query||p.params||{}),P=M(j(p.Headers||p.headers||{})),Q=p.Key||"",de;p.UseRawKey?de=p.Pathname||p.pathname||"/"+Q:(de=p.Pathname||p.pathname||Q,de.indexOf("/")!==0&&(de="/"+de));var he=p.ForceSignHost!==!1;if(!P.Host&&!P.host&&p.Bucket&&p.Region&&he&&(P.Host=p.Bucket+".cos."+p.Region+".myqcloud.com"),!c)throw new Error("missing param SecretId");if(!s)throw new Error("missing param SecretKey");var $=Math.round(me(p.SystemClockOffset)/1e3)-1,Te=$,Ie=p.Expires||p.expires;Ie===void 0?Te+=900:Te+=Ie*1||0;var Pe="sha1",ke=c,Fe=d||$+";"+Te,Ve=d||$+";"+Te,Ke=O(P,!0).join(";").toLowerCase(),Ge=O(k,!0).join(";").toLowerCase(),ze=a.HmacSHA1(Ve,s).toString(),We=[y,de,Me.obj2str(k,!0),Me.obj2str(P,!0),""].join(` `),Xe=["sha1",Fe,a.SHA1(We).toString(),""].join(` `),rt=a.HmacSHA1(Xe,ze).toString(),et=["q-sign-algorithm="+Pe,"q-ak="+ke,"q-sign-time="+Fe,"q-key-time="+Ve,"q-header-list="+Ke,"q-url-param-list="+Ge,"q-signature="+rt].join("&");return et},G=function(p,c,s){var d=c/8,y=p.slice(s,s+d);return new Uint8Array(y).reverse(),new{8:Uint8Array,16:Uint16Array,32:Uint32Array}[c](y)[0]},re=function(p,c,s,d){var y=p.slice(c,s),k="";return new Uint8Array(y).forEach(function(P){k+=String.fromCharCode(P)}),d&&(k=decodeURIComponent(escape(k))),k},I=function(p){for(var c={},s=re(p),d={records:[]};p.byteLength;){var y=G(p,32,0),k=G(p,32,4),P=y-k-16,Q=0,de;for(p=p.slice(12);QparseInt(d[y])?1:-1;return 0},p=function(s){if(!s)return!1;var d=(s.match(/Chrome\/([.\d]+)/)||[])[1],y=(s.match(/QBCore\/([.\d]+)/)||[])[1],k=(s.match(/QQBrowser\/([.\d]+)/)||[])[1],P=d&&ne(d,"53.0.2785.116")<0&&y&&ne(y,"3.53.991.400")<0&&k&&ne(k,"9.0.2524.400")<=0||!1;return P};return p(typeof navigator!="undefined"&&navigator.userAgent)}(),V=function(p,c,s,d,y){var k;if(p.slice?k=p.slice(c,s):p.mozSlice?k=p.mozSlice(c,s):p.webkitSlice&&(k=p.webkitSlice(c,s)),d&&q){var P=new FileReader;P.onload=function(Q){k=null,y(new Blob([P.result]))},P.readAsArrayBuffer(k)}else y(k)},U=function(p,c,s,d){s=s||A,p?typeof c=="string"?s(Me.md5(c,!0)):Blob&&c instanceof Blob?Me.getFileMd5(c,function(y,k){s(k)},d):s():s()},K=1024*1024,B=function(p,c,s){var d=p.size,y=0,k=o.getCtx(),P=function Q(de){if(de>=d){var he=k.digest("hex");c(null,he);return}var $=Math.min(d,de+K);Me.fileSlice(p,de,$,!1,function(Te){v(Te,function(Ie){Te=null,k=k.update(Ie,!0),y+=Ie.length,Ie=null,s&&s({loaded:y,total:d,percent:Math.round(y/d*1e4)/1e4}),Q(de+K)})})};P(0)};function j(ne){return ie(ne,function(p){return l(p)==="object"&&p!==null?j(p):p})}function X(ne,p,c){return ne&&p in ne?ne[p]:c}function W(ne,p){return oe(p,function(c,s){ne[s]=p[s]}),ne}function J(ne){return ne instanceof Array}function se(ne,p){for(var c=!1,s=0;s-1,Q=!k||typeof k=="string"&&k.indexOf("{Region}")>-1;if(p.indexOf("Bucket")>-1||p==="deleteMultipleObject"||p==="multipartList"||p==="listObjectVersions"){if(P&&!s)return"Bucket";if(Q&&!d)return"Region"}else if(p.indexOf("Object")>-1||p.indexOf("multipart")>-1||p==="sliceUploadFile"||p==="abortUploadTask"){if(P&&!s)return"Bucket";if(Q&&!d)return"Region";if(!y)return"Key"}return!1},te=function(p,c){if(c=W({},c),p!=="getAuth"&&p!=="getV4Auth"&&p!=="getObjectUrl"){var s=c.Headers||{};if(c&&l(c)==="object"){(function(){for(var y in c)c.hasOwnProperty(y)&&y.indexOf("x-cos-")>-1&&(s[y]=c[y])})();var d={"x-cos-mfa":"MFA","Content-MD5":"ContentMD5","Content-Length":"ContentLength","Content-Type":"ContentType",Expect:"Expect",Expires:"Expires","Cache-Control":"CacheControl","Content-Disposition":"ContentDisposition","Content-Encoding":"ContentEncoding",Range:"Range","If-Modified-Since":"IfModifiedSince","If-Unmodified-Since":"IfUnmodifiedSince","If-Match":"IfMatch","If-None-Match":"IfNoneMatch","x-cos-copy-source":"CopySource","x-cos-copy-source-Range":"CopySourceRange","x-cos-metadata-directive":"MetadataDirective","x-cos-copy-source-If-Modified-Since":"CopySourceIfModifiedSince","x-cos-copy-source-If-Unmodified-Since":"CopySourceIfUnmodifiedSince","x-cos-copy-source-If-Match":"CopySourceIfMatch","x-cos-copy-source-If-None-Match":"CopySourceIfNoneMatch","x-cos-acl":"ACL","x-cos-grant-read":"GrantRead","x-cos-grant-write":"GrantWrite","x-cos-grant-full-control":"GrantFullControl","x-cos-grant-read-acp":"GrantReadAcp","x-cos-grant-write-acp":"GrantWriteAcp","x-cos-storage-class":"StorageClass","x-cos-traffic-limit":"TrafficLimit","x-cos-mime-limit":"MimeLimit","x-cos-server-side-encryption-customer-algorithm":"SSECustomerAlgorithm","x-cos-server-side-encryption-customer-key":"SSECustomerKey","x-cos-server-side-encryption-customer-key-MD5":"SSECustomerKeyMD5","x-cos-server-side-encryption":"ServerSideEncryption","x-cos-server-side-encryption-cos-kms-key-id":"SSEKMSKeyId","x-cos-server-side-encryption-context":"SSEContext","Pic-Operations":"PicOperations"};Me.each(d,function(y,k){c[y]!==void 0&&(s[k]=c[y])}),c.Headers=N(s)}}return c},ge=function(p,c){return function(s,d){var y=this;typeof s=="function"&&(d=s,s={}),s=te(p,s);var k;if(y.options.EnableTracker)if(s.calledBySdk==="sliceUploadFile")k=s.tracker&&s.tracker.generateSubTracker({apiName:p});else if(["uploadFile","uploadFiles"].includes(p))k=null;else{var P=-1;s.Body&&(P=typeof s.Body=="string"?s.Body.length:s.Body.size||s.Body.byteLength||-1),k=new C({bucket:s.Bucket,region:s.Region,apiName:p,fileKey:s.Key,fileSize:P,deepTracker:y.options.DeepTracker,customId:y.options.CustomId,delay:y.options.TrackerDelay})}s.tracker=k;var Q=function(ke){return ke&&ke.headers&&(ke.headers["x-cos-request-id"]&&(ke.RequestId=ke.headers["x-cos-request-id"]),ke.headers["x-ci-request-id"]&&(ke.RequestId=ke.headers["x-ci-request-id"]),ke.headers["x-cos-version-id"]&&(ke.VersionId=ke.headers["x-cos-version-id"]),ke.headers["x-cos-delete-marker"]&&(ke.DeleteMarker=ke.headers["x-cos-delete-marker"])),ke},de=function(ke,Fe){k&&k.formatResult(ke,Fe),d&&d(Q(ke),Q(Fe))},he=function(){if(p!=="getService"&&p!=="abortUploadTask"){var ke=Z.call(y,p,s);if(ke)return"missing param "+ke;if(s.Region){if(y.options.CompatibilityMode){if(!/^([a-z\d-.]+)$/.test(s.Region))return"Region format error."}else{if(s.Region.indexOf("cos.")>-1)return'param Region should not be start with "cos."';if(!/^([a-z\d-]+)$/.test(s.Region))return"Region format error."}!y.options.CompatibilityMode&&s.Region.indexOf("-")===-1&&s.Region!=="yfb"&&s.Region!=="default"&&s.Region!=="accelerate"&&console.warn("warning: param Region format error, find help here: https://cloud.tencent.com/document/product/436/6224")}if(s.Bucket){if(!/^([a-z\d-]+)-(\d+)$/.test(s.Bucket))if(s.AppId)s.Bucket=s.Bucket+"-"+s.AppId;else if(y.options.AppId)s.Bucket=s.Bucket+"-"+y.options.AppId;else return'Bucket should format as "test-1250000000".';s.AppId&&(console.warn('warning: AppId has been deprecated, Please put it at the end of parameter Bucket(E.g Bucket:"test-1250000000" ).'),delete s.AppId)}!y.options.UseRawKey&&s.Key&&s.Key.substr(0,1)==="/"&&(s.Key=s.Key.substr(1))}},$=he(),Te=["getAuth","getObjectUrl"].includes(p);if(typeof Promise=="function"&&!Te&&!d)return new Promise(function(Pe,ke){if(d=function(Ve,Ke){Ve?ke(Ve):Pe(Ke)},$)return de(Me.error(new Error($)));c.call(y,s,de)});if($)return de(Me.error(new Error($)));var Ie=c.call(y,s,de);if(Te)return Ie}},ye=function(p,c){var s=this,d=0,y=0,k=Date.now(),P,Q;function de(){if(Q=0,c&&typeof c=="function"){P=Date.now();var he=Math.max(0,Math.round((y-d)/((P-k)/1e3)*100)/100)||0,$;y===0&&p===0?$=1:$=Math.floor(y/p*100)/100||0,k=P,d=y;try{c({loaded:y,total:p,speed:he,percent:$})}catch{}}}return function(he,$){if(he&&(y=he.loaded,p=he.total),$)clearTimeout(Q),de();else{if(Q)return;Q=setTimeout(de,s.options.ProgressInterval)}}},ve=function(p,c,s){var d;if(typeof c.Body=="string"?c.Body=new Blob([c.Body],{type:"text/plain"}):c.Body instanceof ArrayBuffer&&(c.Body=new Blob([c.Body])),c.Body&&(c.Body instanceof Blob||c.Body.toString()==="[object File]"||c.Body.toString()==="[object Blob]"))d=c.Body.size;else{s(Me.error(new Error("params body format error, Only allow File|Blob|String.")));return}c.ContentLength=d,s(null,d)},me=function(p){return Date.now()+(p||0)},Ce=function(p,c){var s=p;return p.message=p.message||null,typeof c=="string"?(p.error=c,p.message=c):l(c)==="object"&&c!==null&&(W(p,c),(c.code||c.name)&&(p.code=c.code||c.name),c.message&&(p.message=c.message),c.stack&&(p.stack=c.stack)),typeof Object.defineProperty=="function"&&(Object.defineProperty(p,"name",{writable:!0,enumerable:!1}),Object.defineProperty(p,"message",{enumerable:!0})),p.name=c&&c.name||p.name||p.code||"Error",p.code||(p.code=p.name),p.error||(p.error=j(s)),p},Ae=function(){return(typeof globalThis=="undefined"?"undefined":l(globalThis))==="object"&&(globalThis.constructor.name==="DedicatedWorkerGlobalScope"||globalThis.FileReaderSync)},De=function(){return(typeof window=="undefined"?"undefined":l(window))!=="object"&&(typeof r=="undefined"?"undefined":l(r))==="object"&&!0&&!Ae()},be=function(p){return/^https?:\/\/([^/]+\.)?ci\.[^/]+/.test(p)},we=function(){if((typeof navigator=="undefined"?"undefined":l(navigator))!=="object")return!1;var ne=navigator.userAgent,p=!!ne.match(/\(i[^;]+;( U;)? CPU.+Mac OS X/);return p}(),_e=function(){return(typeof navigator=="undefined"?"undefined":l(navigator))!=="object"?!1:/\sQQ/i.test(navigator.userAgent)}(),qe=function(p,c){var s=D.encode(p);return c&&(s=s.replaceAll("+","-").replaceAll("/","_").replaceAll("=","")),s},Me={noop:A,formatParams:te,apiWrapper:ge,xml2json:E,json2xml:w,md5:o,clearKey:N,fileSlice:V,getBodyMd5:U,getFileMd5:B,b64:le,extend:W,isArray:J,isInArray:se,makeArray:ae,each:oe,map:ie,filter:ce,clone:j,attr:X,uuid:pe,camSafeUrlEncode:x,throttleOnProgress:ye,getFileSize:ve,getSkewTime:me,error:Ce,obj2str:H,getAuth:Y,parseSelectPayload:I,getSourceParams:T,isBrowser:!0,isNode:De,isCIHost:be,isIOS_QQ:we&&_e,encodeBase64:qe};i.exports=Me}).call(this,e("./node_modules/process/browser.js"))}})})})(cosJsSdkV5);var COS=getDefaultExportFromCjs(cosJsSdkV5.exports);const ossSwitch="tencent",tencentBucket="daya-online-1303457149",getUploadSign=async i=>{const{bucketName:t,filename:e,postData:r}=i,l=ossSwitch;let o=t,a=e,E={};return o=tencentBucket,a="klx/"+e,E={key:"klx/"+r.key},request.post("/api-website/open/getUploadSign",{data:{postData:E,pluginName:l,bucketName:o,filename:a},params:{pluginName:l}})},onOnlyFileUpload=async(i,t)=>{{let e="",r=null;if(console.log(t,"params"),await new COS({Domain:"https://oss.dayaedu.com",getAuthorization:async(o,a)=>{a({Authorization:t.signature})}}).uploadFile({Bucket:tencentBucket,Region:"ap-nanjing",Key:`klx/${t.name}`,Body:t.file,SliceSize:1024*1024*500}).then(o=>{var a;((a=o.Location)==null?void 0:a.indexOf("http"))>=0?e=o.Location:e="https://"+o.Location}).catch(o=>{r=o}),e)return e;throw new Error(r)}};var Cropper=defineComponent({name:"cropper",props:{cropperNo:{type:Function,default:i=>{}},cropperOk:{type:Function,default:i=>{}},bucket:{type:String,default:"daya"}},data(){return{ossUploadUrl:`https://${this.bucket}.ks3-cn-beijing.ksyuncs.com/`,dataObj:{policy:"",signature:"",key:"",KSSAccessKeyId:"",acl:"public-read",name:""},visible:!1,img:null,options:{img:"",autoCrop:!0,autoCropWidth:180,autoCropHeight:180,fixedBox:!0,full:!1,enlarge:1,previewsCircle:!0,centerBox:!0,outputType:"png",title:"\u4FEE\u6539\u5934\u50CF",name:null},previews:{},url:{upload:"/sys/common/saveToImgByStr"},submitLoading:!1,myCropper:null}},methods:{edit(i){const{options:t}=this;this.visible=!0,this.options=Object.assign({},t,i),console.log(this.options)},cancelHandel(){this.visible=!1,this.cropperNo()},okHandel(){this.myCropper.getCroppedCanvas({imageSmoothingQuality:"high"}).toBlob(async i=>{this.submitLoading=!0;const t=this.options,e=(t.name?t.name.split(".")[0]:+new Date)+".png";try{const r=new Date().getTime()+e,l={filename:r,bucketName:this.bucket,postData:{filename:r,acl:"public-read",key:r}},o=await getUploadSign(l);this.dataObj={policy:o.data.policy,signature:o.data.signature,key:r,KSSAccessKeyId:o.data.kssAccessKeyId,acl:"public-read",name:r};const a=await onOnlyFileUpload(this.ossUploadUrl,Ct(yt({},this.dataObj),{file:i}));this.cropperOk(a)}catch(r){ElMessage.error(r)}finally{this.submitLoading=!1,this.cancelHandel()}})},blobToFile(i,t){return i.lastModifiedDate=new Date,i.name=t,i},base64ToFile(i,t){const e=i.split(","),r=e[0].match(/:(.*?);/)[1],l=atob(e[1]);let o=l.length;const a=new Uint8Array(o);for(;o--;)a[o]=l.charCodeAt(o);return new File([a],t,{type:r})},realTime(i){this.previews=i},changeScale(i){i=i||1,this.$refs.cropperRef.changeScale(i)},rotateLeft(){this.$refs.cropperRef.rotateLeft()},rotateRight(){this.$refs.cropperRef.rotateRight()},initImgCropper(){this.myCropper=new Cropper$1(this.$refs.imgCropper,{viewMode:1,dragMode:"move",aspectRatio:this.options.autoCropWidth/this.options.autoCropHeight,initialAspectRatio:1,autoCropArea:1,cropBoxMovable:!0,cropBoxResizable:!1,background:!1,movable:!0,modal:!0,preview:".before"})}},render(){return createVNode(ElDialog,{modelValue:this.visible,"onUpdate:modelValue":i=>this.visible=i,appendToBody:!0,title:this.options.title,closeOnClickModal:!1,width:"900px",destroyOnClose:!0,onOpened:()=>{this.initImgCropper()}},{default:()=>[createVNode(ElRow,null,{default:()=>[createVNode(ElCol,{xs:24,md:12,style:{width:"350px"}},{default:()=>[createVNode("div",{class:styles.imgwarp},[createVNode("img",{ref:"imgCropper",id:"myImages",src:this.options.img,alt:"",style:{height:"350px"}},null)])]}),createVNode(ElCol,{xs:24,md:12,style:{height:"350px"}},{default:()=>[createVNode("div",{class:styles.previewImg},[createVNode("span",null,[createTextVNode("\u9884\u89C8\u56FE\u7247")]),createVNode("div",{class:[this.options.previewsCircle?styles["avatar-upload-preview"]:styles["avatar-upload-preview_range"],"before"],style:{width:this.options.autoCropWidth+"px",height:this.options.autoCropHeight+"px"}},null)])]})]})],footer:()=>createVNode("span",{class:"dialog-footer !text-center block"},[createVNode(ElButton,{onClick:this.cancelHandel,disabled:this.submitLoading},{default:()=>[createTextVNode("\u53D6\u6D88")]}),createVNode(ElButton,{type:"primary",onClick:this.okHandel,loading:this.submitLoading},{default:()=>[createTextVNode("\u4FDD \u5B58")]})])})}}),ColCropper=defineComponent({name:"col-cropper",props:{modelValue:{type:String,default:""},options:{type:Object,default:{autoCrop:!0,enlarge:1,autoCropWidth:200,autoCropHeight:200,fixedBox:!0,previewsCircle:!0,title:"\u4E0A\u4F20\u56FE\u7247"}},showSize:{type:Boolean,default:!1},disabled:{type:Boolean,default:!1},delete:{type:Boolean,default:!1},bucket:{type:String,default:"daya"},size:{type:Number,default:5},accept:{type:String,default:".png,.jpg,.jpeg"},tips:{type:String,default:"\u8BF7\u4E0A\u4F20\u56FE\u7247"},extraTips:{type:String,default:"\u56FE\u7247\u6700\u5927\u4E0D\u80FD\u8D85\u8FC75MB"},cropUploadSuccess:{type:Function,default:i=>({})},onRemove:{type:Function,default:i=>({})},domSize:{type:Object,default:{width:"150px",height:"85px"}}},data(){return{isStopRun:!1,loading:!1}},methods:{onDelete(){this.$emit("update:modelValue","")},async handleChange(i){if(this.isStopRun)return;this.loading=!0;const t=this.options;this.getBase64(i.file,e=>{const r=Object.assign({},t,{img:e,name:i.file.name});this.$refs.CropperModal.edit(r)})},beforeUpload(i){if(this.isStopRun=!1,i.type.indexOf("image")<0)return ElMessage.warning("\u8BF7\u4E0A\u4F20\u56FE\u7247"),this.isStopRun=!0,!1;const e=this.size||0,r=i.sizet(e.result)),e.readAsDataURL(i)}},render(){return createVNode("div",{class:[styles.colUpload,"w-full"],style:{lineHeight:0}},[createVNode(ElUpload,{disabled:this.disabled,showFileList:!1,accept:this.accept,beforeUpload:this.beforeUpload,httpRequest:this.handleChange,ref:"uploadRef"},{default:()=>[createVNode("div",{ref:"uploadDom",class:[styles.uploadClass,"w-full"],style:{height:this.domSize.height,width:this.domSize.width}},[this.modelValue?createVNode("div",{class:"relative"},[createVNode(ElImage,{src:this.modelValue,fit:"cover",style:{height:this.domSize.height,width:this.domSize.width},class:styles.uploadSection},null),this.delete&&createVNode("i",{class:styles.iconDelete,onClick:i=>{i.stopPropagation(),this.onRemove()}},null)]):createVNode("div",{class:[styles.uploadSection,"flex items-center flex-col justify-center"],style:{height:this.domSize.height,width:this.domSize.width}},[createVNode("img",{src:iconUpload,class:"w-8 h-7 mb-3"},null),createVNode("p",null,[this.tips])])])]}),createVNode("p",{class:"text-3 text-[#999999] leading-6 pt-1"},[this.extraTips]),createVNode(Cropper,{ref:"CropperModal",bucket:this.bucket,cropperNo:this.handleCropperClose,cropperOk:this.handleCropperSuccess},null)])}});export{ColCropper as C,getUploadSign as g,iconUpload as i,onOnlyFileUpload as o};