diff --git a/app/Http/Controllers/Admin/OrdersController.php b/app/Http/Controllers/Admin/OrdersController.php index ebb0a43..8a27e6a 100755 --- a/app/Http/Controllers/Admin/OrdersController.php +++ b/app/Http/Controllers/Admin/OrdersController.php @@ -139,7 +139,6 @@ class OrdersController extends CommonController '20' => '进行中', '100' => '已完成' ]; - dd($data->toArray()); return view($this->bladePath . ".index", compact('area_id', 'building_id', 'buildings', 'areas', "status", "data", "project_id", "month", "project", "hushizhang", "yuanfang", "order_status_list")); } diff --git a/public/h5/index.html b/public/h5/index.html index 4848dc5..0d80701 100644 --- a/public/h5/index.html +++ b/public/h5/index.html @@ -1,2 +1,2 @@ 护工管理
\ No newline at end of file + document.write('')
\ No newline at end of file diff --git a/public/h5/static/js/index.173d8d01.js b/public/h5/static/js/index.abbcb17b.js similarity index 99% rename from public/h5/static/js/index.173d8d01.js rename to public/h5/static/js/index.abbcb17b.js index 41d3254..2c2719a 100644 --- a/public/h5/static/js/index.173d8d01.js +++ b/public/h5/static/js/index.abbcb17b.js @@ -1 +1 @@ -(function(e){function a(a){for(var r,i,c=a[0],s=a[1],g=a[2],p=0,u=[];p>16)+(a>>16)+(n>>16)<<16|65535&n}function i(e,a,n,r,o,i){return t(function(e,a){return e<>>32-a}(t(t(a,e),t(r,i)),o),n)}function c(e,a,n,r,o,t,c){return i(a&n|~a&r,e,a,o,t,c)}function s(e,a,n,r,o,t,c){return i(a&r|n&~r,e,a,o,t,c)}function g(e,a,n,r,o,t,c){return i(a^n^r,e,a,o,t,c)}function d(e,a,n,r,o,t,c){return i(n^(a|~r),e,a,o,t,c)}function p(e,a){e[a>>5]|=128<>>9<<4)]=a;var n,r,o,i,p,u=1732584193,f=-271733879,l=-1732584194,m=271733878;for(n=0;n>5]>>>a%32&255);return n}function f(e){var a,n=[];for(n[(e.length>>2)-1]=void 0,a=0;a>5]|=(255&e.charCodeAt(a/8))<>>4&15)+"0123456789abcdef".charAt(15&a);return r}function m(e){return unescape(encodeURIComponent(e))}function b(e){return function(e){return u(p(f(e),8*e.length))}(m(e))}function y(e,a){return function(e,a){var n,r,o=f(e),t=[],i=[];for(t[15]=i[15]=void 0,o.length>16&&(o=p(o,8*e.length)),n=0;n<16;n+=1)t[n]=909522486^o[n],i[n]=1549556828^o[n];return r=p(t.concat(f(a)),512+8*a.length),u(p(i.concat(r),640))}(m(e),m(a))}function h(e,a,n){return a?n?y(a,e):function(e,a){return l(y(e,a))}(a,e):n?b(e):function(e){return l(b(e))}(e)}r=function(){return h}.call(a,n,a,e),void 0===r||(e.exports=r)}()},"8f30":function(e,a,n){"use strict";var r=n("f5bd").default,o=r(n("9b1b"));n("fd3c"),n("c9b5"),n("bf0f"),n("ab80"),n("5c47"),n("a1c1"),n("5ef2"),n("0506"),n("aa9c");r(n("8757"));var t="http://tiantian2.langye.net/",i=function(e){return e=e.toString(),e[1]?e:"0"+e},c=function(e){uni.showModal({title:"",content:e,showCancel:!1})},s=function(e){e.customLoading?e.bindThis&&e.bindThis.setData({}):uni.showLoading({title:"正在加载"}),e.url=t+e.api,e.header=(0,o.default)({},e.header);var a=uni.getStorageSync("userInfo").access_token;g()&&(e.data=(0,o.default)((0,o.default)({},e.data),{},{token:a})),"POST"!=e.method||d(a)||(e.data.ts=(new Date).getTime()),uni.request((0,o.default)((0,o.default)({},e),{},{success:function(a){200!=a.statusCode?void 0!=e.utilFail&&(401==a.statusCode?(uni.clearStorageSync(),uni.navigateTo({url:"/pages/login/login"})):e.utilFail("TODO: 特殊处理非200错误("+a.statusCode+")")):d(a.data.errorcode)&&0!=a.data.errorcode?void 0!=e.utilSuccess&&e.utilSuccess(a.data):void 0!=e.utilFail?e.utilFail(a.data.errormsg||"接口发生未知错误"):e.utilFail(a.data.errormsg)},fail:e.utilFail,complete:function(a){e.customLoading?e.bindThis&&e.bindThis.setData({loadingCount:e.bindThis.data.loadingCount-1}):(uni.hideNavigationBarLoading(),uni.hideLoading())}}))},g=function(){var e=uni.getStorageSync("userInfo");return!d(e.access_token)},d=function(e){return""==e||void 0==e||null==e||"undefined"==e||"null"==e},p=/^\d{17}([0-9]|X)$/,u={table:["A","B","C","D","E","F","G","H","I","J","K","L","M","N","O","P","Q","R","S","T","U","V","W","X","Y","Z","a","b","c","d","e","f","g","h","i","j","k","l","m","n","o","p","q","r","s","t","u","v","w","x","y","z","0","1","2","3","4","5","6","7","8","9","+","/"],UTF16ToUTF8:function(e){for(var a=[],n=e.length,r=0;r0&&o<=127)a.push(e.charAt(r));else if(o>=128&&o<=2047){var t=192|o>>6&31,i=128|63&o;a.push(String.fromCharCode(t),String.fromCharCode(i))}else if(o>=2048&&o<=65535){t=224|o>>12&15,i=128|o>>6&63;var c=128|63&o;a.push(String.fromCharCode(t),String.fromCharCode(i),String.fromCharCode(c))}}return a.join("")},UTF8ToUTF16:function(e){var a=[],n=e.length,r=0;for(r=0;r>7&255))a.push(e.charAt(r));else if(6==(o>>5&255)){var t=e.charCodeAt(++r),i=(31&o)<<6,c=63&t,s=i|c;a.push(Sting.fromCharCode(s))}else if(14==(o>>4&255)){t=e.charCodeAt(++r);var g=e.charCodeAt(++r);i=o<<4|t>>2&15,c=(3&t)<<6|63&g;s=(255&i)<<8|c,a.push(String.fromCharCode(s))}}return a.join("")},encode:function(e){if(!e)return"";var a=this.UTF16ToUTF8(e),n=0,r=a.length,o=[];while(n>2]),n==r){o.push(this.table[(3&t)<<4]),o.push("==");break}var i=a.charCodeAt(n++);if(n==r){o.push(this.table[(3&t)<<4|i>>4&15]),o.push(this.table[(15&i)<<2]),o.push("=");break}var c=a.charCodeAt(n++);o.push(this.table[(3&t)<<4|i>>4&15]),o.push(this.table[(15&i)<<2|(192&c)>>6]),o.push(this.table[63&c])}return o.join("")},decode:function(e){if(!e)return"";var a=e.length,n=0,r=[];while(n>4,g=(15&t)<<4|i>>2,d=(3&i)<<6|c;r.push(String.fromCharCode(s)),64!=i&&r.push(String.fromCharCode(g)),64!=c&&r.push(String.fromCharCode(d))}return this.UTF8ToUTF16(r.join(""))}};e.exports={HOST:t,formatTime:function(e){var a=e.getFullYear(),n=e.getMonth()+1,r=e.getDate();return[a,n,r].map(i).join("-")},formatTimeAll:function(e){var a=e.getFullYear(),n=e.getMonth()+1,r=e.getDate(),o=e.getHours(),t=e.getMinutes(),c=e.getSeconds();return[a,n,r].map(i).join("-")+" "+[o,t,c].map(i).join(":")},formatNumber:i,alert:c,getfile:function(e,a,n){var r=uni.getStorageSync("userInfo").access_token,o=t+"manager/get-attachment/"+e+"?token="+r;a(o)},request:s,uploadFormID:function(e){Math.floor((new Date).getTime()/1e3);s({api:"WeChat/SaveFormID",method:"POST",data:{FormIDs:e},utilSuccess:function(e){console.log("上传formID成功")},utilFail:function(e){console.log("上传formID失败")}})},payOrder:function(e,a,n,r){uni.request({url:t+"WxPay/ToPay?openId="+uni.getStorageSync("userInfo").WeChatOpenID+"&orderId="+e+"&OrderType="+a,method:"GET",header:{"content-type":"application/json"},success:function(o){if(""!=o.data){var t=o.data.replace(/\\/g,"");o.data=JSON.parse(t);var i=o.data.package.indexOf("=")+1,c=o.data.package.substring(i);uni.requestPayment({timeStamp:o.data.timeStamp,nonceStr:o.data.nonceStr,package:o.data.package,signType:o.data.signType,paySign:o.data.paySign,success:function(r){n(r),s({api:"WxPay/PayTemplateMsg",data:{prepay_id:c,orderId:e,isSuccess:1,failMsg:"",xType:a}})},fail:function(n){r(n);var o="requestPayment:fail cancel"==n?"用户取消支付":n;s({api:"WxPay/PayTemplateMsg",data:{prepay_id:c,orderId:e,isSuccess:0,failMsg:o,xType:a}})}})}else r("当前网络状况不好")},fail:function(e){r("当前网络状况不好")}})},scanPay:function(e,a,n,r,o,i){var s=uni.getStorageSync("userInfo").access_token;console.log("1.支付进入");var g={token:s,order_id:e,money:a,auth_code:n,type:r};console.log("2.参数"),console.log(g),uni.showLoading({title:"正在加载"}),uni.request({url:t+"manager/scan-pay/"+e,method:"POST",data:{token:s,order_id:e,money:a,auth_code:n,type:r},header:{"content-type":"application/json"},success:function(e){uni.hideLoading(),d(e.data.errorcode)?(o(e),console.log("3.支付成功"),console.log(e)):(c("支付失败:"+e.data.errormsg),console.log("4.支付失败"),console.log(e))},fail:function(e){i("当前网络状况不好"),console.log("4.支付失败"),console.log(res)}})},isLogin:g,isNull:d,phoneRegex:/^1\d{10}$/,idCardRegex:p,filterSpecialChars:function(e){return e.replace(/[^\u4e00-\u9fa5a-zA-Z0-9\w]/g,"")},randomStr:function(e){for(var a="",n=["0","1","2","3","4","5","6","7","8","9","a","b","c","d","e","f","g","h","i","j","k","l","m","n","o","p","q","r","s","t","u","v","w","x","y","z","A","B","C","D","E","F","G","H","I","J","K","L","M","N","O","P","Q","R","S","T","U","V","W","X","Y","Z"],r=0;r>16)+(a>>16)+(n>>16)<<16|65535&n}function i(e,a,n,r,o,i){return t(function(e,a){return e<>>32-a}(t(t(a,e),t(r,i)),o),n)}function c(e,a,n,r,o,t,c){return i(a&n|~a&r,e,a,o,t,c)}function s(e,a,n,r,o,t,c){return i(a&r|n&~r,e,a,o,t,c)}function g(e,a,n,r,o,t,c){return i(a^n^r,e,a,o,t,c)}function d(e,a,n,r,o,t,c){return i(n^(a|~r),e,a,o,t,c)}function p(e,a){e[a>>5]|=128<>>9<<4)]=a;var n,r,o,i,p,u=1732584193,f=-271733879,l=-1732584194,m=271733878;for(n=0;n>5]>>>a%32&255);return n}function f(e){var a,n=[];for(n[(e.length>>2)-1]=void 0,a=0;a>5]|=(255&e.charCodeAt(a/8))<>>4&15)+"0123456789abcdef".charAt(15&a);return r}function m(e){return unescape(encodeURIComponent(e))}function b(e){return function(e){return u(p(f(e),8*e.length))}(m(e))}function y(e,a){return function(e,a){var n,r,o=f(e),t=[],i=[];for(t[15]=i[15]=void 0,o.length>16&&(o=p(o,8*e.length)),n=0;n<16;n+=1)t[n]=909522486^o[n],i[n]=1549556828^o[n];return r=p(t.concat(f(a)),512+8*a.length),u(p(i.concat(r),640))}(m(e),m(a))}function h(e,a,n){return a?n?y(a,e):function(e,a){return l(y(e,a))}(a,e):n?b(e):function(e){return l(b(e))}(e)}r=function(){return h}.call(a,n,a,e),void 0===r||(e.exports=r)}()},"8f30":function(e,a,n){"use strict";var r=n("f5bd").default,o=r(n("9b1b"));n("fd3c"),n("c9b5"),n("bf0f"),n("ab80"),n("5c47"),n("a1c1"),n("5ef2"),n("0506"),n("aa9c");r(n("8757"));var t="http://tiantian2.langye.net/",i=function(e){return e=e.toString(),e[1]?e:"0"+e},c=function(e){uni.showModal({title:"",content:e,showCancel:!1})},s=function(e){e.customLoading?e.bindThis&&e.bindThis.setData({}):uni.showLoading({title:"正在加载"}),e.url=t+e.api,e.header=(0,o.default)({},e.header);var a=uni.getStorageSync("userInfo").access_token;g()&&(e.data=(0,o.default)((0,o.default)({},e.data),{},{token:a})),"POST"!=e.method||d(a)||(e.data.ts=(new Date).getTime()),uni.request((0,o.default)((0,o.default)({},e),{},{success:function(a){200!=a.statusCode?void 0!=e.utilFail&&(401==a.statusCode?(uni.clearStorageSync(),uni.navigateTo({url:"/pages/login/login"})):e.utilFail("TODO: 特殊处理非200错误("+a.statusCode+")")):d(a.data.errorcode)&&0!=a.data.errorcode?void 0!=e.utilSuccess&&e.utilSuccess(a.data):void 0!=e.utilFail?e.utilFail(a.data.errormsg||"接口发生未知错误"):e.utilFail(a.data.errormsg)},fail:e.utilFail,complete:function(a){e.customLoading?e.bindThis&&e.bindThis.setData({loadingCount:e.bindThis.data.loadingCount-1}):(uni.hideNavigationBarLoading(),uni.hideLoading())}}))},g=function(){var e=uni.getStorageSync("userInfo");return!d(e.access_token)},d=function(e){return""==e||void 0==e||null==e||"undefined"==e||"null"==e},p=/^\d{17}([0-9]|X)$/,u={table:["A","B","C","D","E","F","G","H","I","J","K","L","M","N","O","P","Q","R","S","T","U","V","W","X","Y","Z","a","b","c","d","e","f","g","h","i","j","k","l","m","n","o","p","q","r","s","t","u","v","w","x","y","z","0","1","2","3","4","5","6","7","8","9","+","/"],UTF16ToUTF8:function(e){for(var a=[],n=e.length,r=0;r0&&o<=127)a.push(e.charAt(r));else if(o>=128&&o<=2047){var t=192|o>>6&31,i=128|63&o;a.push(String.fromCharCode(t),String.fromCharCode(i))}else if(o>=2048&&o<=65535){t=224|o>>12&15,i=128|o>>6&63;var c=128|63&o;a.push(String.fromCharCode(t),String.fromCharCode(i),String.fromCharCode(c))}}return a.join("")},UTF8ToUTF16:function(e){var a=[],n=e.length,r=0;for(r=0;r>7&255))a.push(e.charAt(r));else if(6==(o>>5&255)){var t=e.charCodeAt(++r),i=(31&o)<<6,c=63&t,s=i|c;a.push(Sting.fromCharCode(s))}else if(14==(o>>4&255)){t=e.charCodeAt(++r);var g=e.charCodeAt(++r);i=o<<4|t>>2&15,c=(3&t)<<6|63&g;s=(255&i)<<8|c,a.push(String.fromCharCode(s))}}return a.join("")},encode:function(e){if(!e)return"";var a=this.UTF16ToUTF8(e),n=0,r=a.length,o=[];while(n>2]),n==r){o.push(this.table[(3&t)<<4]),o.push("==");break}var i=a.charCodeAt(n++);if(n==r){o.push(this.table[(3&t)<<4|i>>4&15]),o.push(this.table[(15&i)<<2]),o.push("=");break}var c=a.charCodeAt(n++);o.push(this.table[(3&t)<<4|i>>4&15]),o.push(this.table[(15&i)<<2|(192&c)>>6]),o.push(this.table[63&c])}return o.join("")},decode:function(e){if(!e)return"";var a=e.length,n=0,r=[];while(n>4,g=(15&t)<<4|i>>2,d=(3&i)<<6|c;r.push(String.fromCharCode(s)),64!=i&&r.push(String.fromCharCode(g)),64!=c&&r.push(String.fromCharCode(d))}return this.UTF8ToUTF16(r.join(""))}};e.exports={HOST:t,formatTime:function(e){var a=e.getFullYear(),n=e.getMonth()+1,r=e.getDate();return[a,n,r].map(i).join("-")},formatTimeAll:function(e){var a=e.getFullYear(),n=e.getMonth()+1,r=e.getDate(),o=e.getHours(),t=e.getMinutes(),c=e.getSeconds();return[a,n,r].map(i).join("-")+" "+[o,t,c].map(i).join(":")},formatNumber:i,alert:c,getfile:function(e,a,n){var r=uni.getStorageSync("userInfo").access_token,o=t+"manager/get-attachment/"+e+"?token="+r;a(o)},request:s,uploadFormID:function(e){Math.floor((new Date).getTime()/1e3);s({api:"WeChat/SaveFormID",method:"POST",data:{FormIDs:e},utilSuccess:function(e){console.log("上传formID成功")},utilFail:function(e){console.log("上传formID失败")}})},payOrder:function(e,a,n,r){uni.request({url:t+"WxPay/ToPay?openId="+uni.getStorageSync("userInfo").WeChatOpenID+"&orderId="+e+"&OrderType="+a,method:"GET",header:{"content-type":"application/json"},success:function(o){if(""!=o.data){var t=o.data.replace(/\\/g,"");o.data=JSON.parse(t);var i=o.data.package.indexOf("=")+1,c=o.data.package.substring(i);uni.requestPayment({timeStamp:o.data.timeStamp,nonceStr:o.data.nonceStr,package:o.data.package,signType:o.data.signType,paySign:o.data.paySign,success:function(r){n(r),s({api:"WxPay/PayTemplateMsg",data:{prepay_id:c,orderId:e,isSuccess:1,failMsg:"",xType:a}})},fail:function(n){r(n);var o="requestPayment:fail cancel"==n?"用户取消支付":n;s({api:"WxPay/PayTemplateMsg",data:{prepay_id:c,orderId:e,isSuccess:0,failMsg:o,xType:a}})}})}else r("当前网络状况不好")},fail:function(e){r("当前网络状况不好")}})},scanPay:function(e,a,n,r,o,i){var s=uni.getStorageSync("userInfo").access_token;console.log("1.支付进入");var g={token:s,order_id:e,money:a,auth_code:n,type:r};console.log("2.参数"),console.log(g),uni.showLoading({title:"正在加载"}),uni.request({url:t+"manager/scan-pay/"+e,method:"POST",data:{token:s,order_id:e,money:a,auth_code:n,type:r},header:{"content-type":"application/json"},success:function(e){uni.hideLoading(),d(e.data.errorcode)?(o(e),console.log("3.支付成功"),console.log(e)):(c("支付失败:"+e.data.errormsg),console.log("4.支付失败"),console.log(e))},fail:function(e){i("当前网络状况不好"),console.log("4.支付失败"),console.log(res)}})},isLogin:g,isNull:d,phoneRegex:/^1\d{10}$/,idCardRegex:p,filterSpecialChars:function(e){return e.replace(/[^\u4e00-\u9fa5a-zA-Z0-9\w]/g,"")},randomStr:function(e){for(var a="",n=["0","1","2","3","4","5","6","7","8","9","a","b","c","d","e","f","g","h","i","j","k","l","m","n","o","p","q","r","s","t","u","v","w","x","y","z","A","B","C","D","E","F","G","H","I","J","K","L","M","N","O","P","Q","R","S","T","U","V","W","X","Y","Z"],r=0;r0&&void 0!==A[0]?A[0]:{},r=e.isEmpty(),e.showOffscreen=!0,i=e.signature.canvas.get("width"),s=e.signature.canvas.get("height"),B=uni.getSystemInfoSync(),u=B.pixelRatio,e.useCanvas2d?(e.offscreenWidth=i*u,e.offscreenHeight=s*u):(e.offscreenWidth=i,e.offscreenHeight=s),t.next=9,(0,a.sleep)(100);case 9:l=uni.createCanvasContext("offscreen",e),g=Math.max(e.offscreenWidth,e.offscreenHeight),w=function(A){return n.success&&n.success(A)},d=function(A){return n.fail&&n.fail(A)},e.signature.pen.getMaskedImageData((function(A){(function(A,e){uni.canvasPutImageData?uni.canvasPutImageData(A,e):l.putImageData&&l.putImageData(A)})({canvasId:"offscreen",x:0,y:0,width:i,height:s,data:A,fail:function(A){d(A)},success:function(A){(0,c.toDataURL)("offscreen",e,n).then((function(A){l.restore(),l.clearRect(0,0,g,g),e.offscreenWidth=i,e.offscreenHeight=s,e.showOffscreen=!1,w({tempFilePath:A,isEmpty:r})}))}},e)}));case 14:case"end":return t.stop()}}),t)})))()},canvasToTempFilePath:function(){var A=this,e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=this.isEmpty(),n=this.useCanvas2d,r=function(A){return e.success&&e.success(A)},B=function(A){return e.fail&&e.fail(A)},u=this.signature.canvas.get("el"),l=u.canvas,g=this.backgroundColor,w=this.landscape,d=this.boundingBox,h=this.signature.canvas.get("width"),Q=this.signature.canvas.get("height"),f=0,C=0,U="devtools"==uni.getSystemInfoSync().platform,p=this.preferToDataURL,F=1,v=function(){var B=(0,s.default)((0,o.default)().mark((function s(B){var u,f,C,v,m,y;return(0,o.default)().wrap((function(o){while(1)switch(o.prev=o.next){case 0:if(u=function(){var e=n&&!!uni.createOffscreenCanvas&&p;if(e&&!U){var t=uni.createOffscreenCanvas({type:"2d"});t.width=A.offscreenSize[0]*F,t.height=A.offscreenSize[1]*F;var r=t.getContext("2d");return[r,t]}var i=uni.createCanvasContext("offscreen",A);return[i]},!(d&&!A.isPC||w||g&&!(0,a.isTransparent)(g))){o.next=13;break}return A.showOffscreen=!0,o.next=5,(0,a.sleep)(100);case 5:f=u(),C=(0,i.default)(f,2),v=C[0],m=C[1],v.save(),v.setTransform(1,0,0,1,0,0),w&&(v.translate(0,h*F),v.rotate(-Math.PI/2)),g&&!(0,a.isTransparent)(g)&&(v.fillStyle=g,v.fillRect(0,0,h,Q)),m?(y=l.createImage(),y.src=B,y.onload=function(){v.drawImage(y,0,0,h*F,Q*F);var e=m.toDataURL();A.showOffscreen=!1,r({tempFilePath:e,isEmpty:t})}):(v.drawImage(B,0,0,h*F,Q*F),v.draw(!1,(function(){(0,c.toDataURL)("offscreen",A,e).then((function(e){var n=Math.max(h,Q);v.restore(),v.clearRect(0,0,n,n),A.showOffscreen=!1,r({tempFilePath:e,isEmpty:t})}))}))),o.next=14;break;case 13:r({tempFilePath:B,isEmpty:t});case 14:case"end":return o.stop()}}),s)})));return function(A){return B.apply(this,arguments)}}(),m=function(){var e=(0,s.default)((0,o.default)().mark((function e(){var t;return(0,o.default)().wrap((function(e){while(1)switch(e.prev=e.next){case 0:if(A.offscreenWidth==h&&A.offscreenHeight==Q){e.next=5;break}return A.offscreenWidth=h,A.offscreenHeight=Q,e.next=5,(0,a.sleep)(100);case 5:t={x:f,y:C,width:h,height:Q,canvas:l,preferToDataURL:p},(0,c.toDataURL)(A.canvasId,A,t).then(v).catch(B);case 7:case"end":return e.stop()}}),e)})));return function(){return e.apply(this,arguments)}}();d&&!this.isPC?this.signature.getContentBoundingBox(function(){var e=(0,s.default)((0,o.default)().mark((function e(t){return(0,o.default)().wrap((function(e){while(1)switch(e.prev=e.next){case 0:A.offscreenWidth=h=t.width,A.offscreenHeight=Q=t.height,f=t.startX,C=t.startY,m();case 5:case"end":return e.stop()}}),e)})));return function(A){return e.apply(this,arguments)}}()):m()},getContext:function(){var A=this;return(0,a.getRect)("#".concat(this.canvasId),{context:this,type:this.useCanvas2d?"fields":"boundingClientRect"}).then((function(e){if(e){var t,n=e.width,r=e.height,i=e.node,o=e.left,s=e.top,B=e.right,u=uni.getSystemInfoSync(),l=u.pixelRatio;return i?(t=i.getContext("2d"),i.width=n*l,i.height=r*l):(l=1,t=(0,c.uniContext)(A.canvasId,A),i={getContext:function(A){return"2d"==A?t:null},createImage:c.createImage,toDataURL:function(){return(0,c.toDataURL)(A.canvasId,A)},requestAnimationFrame:a.requestAnimationFrame}),t.clearRect(0,0,n,r),{left:o,top:s,right:B,width:n,height:r,context:t,canvas:i,pixelRatio:l}}}))},getTouch:function(A){var e=this;return this.isPC&&this.canvasRect&&(A.touches=A.touches.map((function(A){return(0,r.default)((0,r.default)({},A),{},{x:A.clientX-e.canvasRect.left,y:A.clientY-e.canvasRect.top})}))),A},touchStart:function(A){var e=this;this.canvasEl&&(this.isStart=!0,this.isPC?(0,a.getRect)("#".concat(this.canvasId),{context:this}).then((function(t){e.canvasRect=t,e.canvasEl.dispatchEvent("touchstart",(0,a.wrapEvent)(e.getTouch(A)))})):this.canvasEl.dispatchEvent("touchstart",(0,a.wrapEvent)(A)))},touchMove:function(A){!this.canvasEl||!this.isStart&&this.canvasEl||this.canvasEl.dispatchEvent("touchmove",(0,a.wrapEvent)(this.getTouch(A)))},touchEnd:function(A){this.canvasEl&&(this.isStart=!1,this.canvasEl.dispatchEvent("touchend",(0,a.wrapEvent)(A)),this.checkAndEmitEmptyStatus())}}});e.default=l},"0a8b":function(A,e,t){"use strict";var n=t("7992"),r=TypeError,i=function(A){var e,t;this.promise=new A((function(A,n){if(void 0!==e||void 0!==t)throw new r("Bad Promise constructor");e=A,t=n})),this.resolve=n(e),this.reject=n(t)};A.exports.f=function(A){return new i(A)}},"0d62":function(A,e,t){"use strict";t("6a54"),Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0,t("64aa");var n={styles:String,disableScroll:{type:Boolean,default:!0},type:{type:String,default:"2d"},penColor:{type:String,default:"black"},penSize:{type:Number,default:2},backgroundColor:String,backgroundImage:String,openSmooth:Boolean,minLineWidth:{type:Number,default:2},maxLineWidth:{type:Number,default:6},minSpeed:{type:Number,default:1.5},maxWidthDiffRate:{type:Number,default:20},maxHistoryLength:{type:Number,default:20},beforeDelay:{type:Number,default:0},landscape:{type:Boolean},boundingBox:{type:Boolean},disabled:{type:Boolean},preferToDataURL:Boolean};e.default=n},1052:function(A,e,t){"use strict";var n=t("85c1"),r=t("69e4"),i=t("474f"),o=t("8466"),s=t("ca99"),a=t("8c08"),B=t("897c"),c=t("6b21"),u=t("a734"),l=t("0173"),g=r&&r.prototype,w=a("species"),d=!1,h=i(n.PromiseRejectionEvent),Q=o("Promise",(function(){var A=s(r),e=A!==String(r);if(!e&&66===l)return!0;if(u&&(!g["catch"]||!g["finally"]))return!0;if(!l||l<51||!/native code/.test(A)){var t=new r((function(A){A(1)})),n=function(A){A((function(){}),(function(){}))},i=t.constructor={};if(i[w]=n,d=t.then((function(){}))instanceof n,!d)return!0}return!e&&(B||c)&&!h}));A.exports={CONSTRUCTOR:Q,REJECTION_EVENT:h,SUBCLASSING:d}},1851:function(A,e,t){"use strict";var n=t("8bdb"),r=t("84d6"),i=t("1cb5");n({target:"Array",proto:!0},{fill:r}),i("fill")},"247d":function(A,e,t){"use strict";var n=t("6a50");n("Uint16",(function(A){return function(e,t,n){return A(this,e,t,n)}}))},2634:function(A,e,t){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default=function(){ +(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["package-packageorder-pages-signOrder-signOrder"],{"0584":function(A,e,t){"use strict";t("6a54");var n=t("f5bd").default;Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var r=n(t("9b1b")),i=n(t("5de6")),o=n(t("2634")),s=n(t("2fdc"));t("d4b5"),t("5c47"),t("0506"),t("fd3c");var a=t("5c4c"),B=t("d823"),c=t("3169"),u=n(t("0d62")),l=(t("9b8e"),{props:u.default,data:function(){return{canvasWidth:null,canvasHeight:null,offscreenWidth:null,offscreenHeight:null,useCanvas2d:!0,show:!0,offscreenStyles:"",showMask:!1,showOffscreen:!1,isPC:!1,isCanvasEmpty:!0}},computed:{canvasId:function(){return"lime-signature".concat(this._uid)},offscreenId:function(){return this.canvasId+"offscreen"},offscreenSize:function(){var A=this.offscreenWidth,e=this.offscreenHeight;return this.landscape?[e,A]:[A,e]},canvasStyle:function(){var A=this.canvasWidth,e=this.canvasHeight,t=this.backgroundColor;return{width:A&&A+"px",height:e&&e+"px",background:t}},param:function(){var A=this.penColor,e=this.penSize,t=this.backgroundColor,n=this.backgroundImage,r=this.landscape,i=this.boundingBox,o=this.openSmooth,s=this.minLineWidth,a=this.maxLineWidth,B=this.minSpeed,c=this.maxWidthDiffRate,u=this.maxHistoryLength,l=this.disableScroll,g=this.disabled;return JSON.parse(JSON.stringify({penColor:A,penSize:e,backgroundColor:t,backgroundImage:n,landscape:r,boundingBox:i,openSmooth:o,minLineWidth:s,maxLineWidth:a,minSpeed:B,maxWidthDiffRate:c,maxHistoryLength:u,disableScroll:l,disabled:g}))}},created:function(){var A=uni.getSystemInfoSync(),e=A.platform;this.isPC=/windows|mac/.test(e),this.useCanvas2d="2d"==this.type&&(0,a.canIUseCanvas2d)()&&!this.isPC},mounted:function(){var A=this;return(0,s.default)((0,o.default)().mark((function e(){var t;return(0,o.default)().wrap((function(e){while(1)switch(e.prev=e.next){case 0:if(!A.beforeDelay){e.next=3;break}return e.next=3,(0,a.sleep)(A.beforeDelay);case 3:return e.next=5,A.getContext();case 5:t=e.sent,A.signature=new B.Signature(t),A.canvasEl=A.signature.canvas.get("el"),A.offscreenWidth=A.canvasWidth=A.signature.canvas.get("width"),A.offscreenHeight=A.canvasHeight=A.signature.canvas.get("height"),A.stopWatch=A.$watch("param",(function(e){A.signature.pen.setOption(e)}),{immediate:!0});case 11:case"end":return e.stop()}}),e)})))()},beforeDestroy:function(){this.stopWatch&&this.stopWatch(),this.signature.destroy(),this.show=!1,this.signature=null},methods:{checkAndEmitEmptyStatus:function(){var A=this;setTimeout((function(){var e,t,n=null===(e=null===(t=A.signature)||void 0===t?void 0:t.isEmpty())||void 0===e||e;n!=A.isCanvasEmpty&&(A.isCanvasEmpty=n,A.$emit("change",n))}),0)},redo:function(){this.signature&&this.signature.redo(),this.checkAndEmitEmptyStatus()},restore:function(){this.redo()},undo:function(){this.signature&&this.signature.undo(),this.checkAndEmitEmptyStatus()},clear:function(){this.signature&&this.signature.clear(),this.checkAndEmitEmptyStatus()},isEmpty:function(){return this.signature.isEmpty()},canvasToMaskPath:function(){var A=arguments,e=this;return(0,s.default)((0,o.default)().mark((function t(){var n,r,i,s,B,u,l,g,d,w;return(0,o.default)().wrap((function(t){while(1)switch(t.prev=t.next){case 0:return n=A.length>0&&void 0!==A[0]?A[0]:{},r=e.isEmpty(),e.showOffscreen=!0,i=e.signature.canvas.get("width"),s=e.signature.canvas.get("height"),B=uni.getSystemInfoSync(),u=B.pixelRatio,e.useCanvas2d?(e.offscreenWidth=i*u,e.offscreenHeight=s*u):(e.offscreenWidth=i,e.offscreenHeight=s),t.next=9,(0,a.sleep)(100);case 9:l=uni.createCanvasContext("offscreen",e),g=Math.max(e.offscreenWidth,e.offscreenHeight),d=function(A){return n.success&&n.success(A)},w=function(A){return n.fail&&n.fail(A)},e.signature.pen.getMaskedImageData((function(A){(function(A,e){uni.canvasPutImageData?uni.canvasPutImageData(A,e):l.putImageData&&l.putImageData(A)})({canvasId:"offscreen",x:0,y:0,width:i,height:s,data:A,fail:function(A){w(A)},success:function(A){(0,c.toDataURL)("offscreen",e,n).then((function(A){l.restore(),l.clearRect(0,0,g,g),e.offscreenWidth=i,e.offscreenHeight=s,e.showOffscreen=!1,d({tempFilePath:A,isEmpty:r})}))}},e)}));case 14:case"end":return t.stop()}}),t)})))()},canvasToTempFilePath:function(){var A=this,e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=this.isEmpty(),n=this.useCanvas2d,r=function(A){return e.success&&e.success(A)},B=function(A){return e.fail&&e.fail(A)},u=this.signature.canvas.get("el"),l=u.canvas,g=this.backgroundColor,d=this.landscape,w=this.boundingBox,h=this.signature.canvas.get("width"),Q=this.signature.canvas.get("height"),f=0,C=0,p="devtools"==uni.getSystemInfoSync().platform,U=this.preferToDataURL,F=1,v=function(){var B=(0,s.default)((0,o.default)().mark((function s(B){var u,f,C,v,m,y;return(0,o.default)().wrap((function(o){while(1)switch(o.prev=o.next){case 0:if(u=function(){var e=n&&!!uni.createOffscreenCanvas&&U;if(e&&!p){var t=uni.createOffscreenCanvas({type:"2d"});t.width=A.offscreenSize[0]*F,t.height=A.offscreenSize[1]*F;var r=t.getContext("2d");return[r,t]}var i=uni.createCanvasContext("offscreen",A);return[i]},!(w&&!A.isPC||d||g&&!(0,a.isTransparent)(g))){o.next=13;break}return A.showOffscreen=!0,o.next=5,(0,a.sleep)(100);case 5:f=u(),C=(0,i.default)(f,2),v=C[0],m=C[1],v.save(),v.setTransform(1,0,0,1,0,0),d&&(v.translate(0,h*F),v.rotate(-Math.PI/2)),g&&!(0,a.isTransparent)(g)&&(v.fillStyle=g,v.fillRect(0,0,h,Q)),m?(y=l.createImage(),y.src=B,y.onload=function(){v.drawImage(y,0,0,h*F,Q*F);var e=m.toDataURL();A.showOffscreen=!1,r({tempFilePath:e,isEmpty:t})}):(v.drawImage(B,0,0,h*F,Q*F),v.draw(!1,(function(){(0,c.toDataURL)("offscreen",A,e).then((function(e){var n=Math.max(h,Q);v.restore(),v.clearRect(0,0,n,n),A.showOffscreen=!1,r({tempFilePath:e,isEmpty:t})}))}))),o.next=14;break;case 13:r({tempFilePath:B,isEmpty:t});case 14:case"end":return o.stop()}}),s)})));return function(A){return B.apply(this,arguments)}}(),m=function(){var e=(0,s.default)((0,o.default)().mark((function e(){var t;return(0,o.default)().wrap((function(e){while(1)switch(e.prev=e.next){case 0:if(A.offscreenWidth==h&&A.offscreenHeight==Q){e.next=5;break}return A.offscreenWidth=h,A.offscreenHeight=Q,e.next=5,(0,a.sleep)(100);case 5:t={x:f,y:C,width:h,height:Q,canvas:l,preferToDataURL:U},(0,c.toDataURL)(A.canvasId,A,t).then(v).catch(B);case 7:case"end":return e.stop()}}),e)})));return function(){return e.apply(this,arguments)}}();w&&!this.isPC?this.signature.getContentBoundingBox(function(){var e=(0,s.default)((0,o.default)().mark((function e(t){return(0,o.default)().wrap((function(e){while(1)switch(e.prev=e.next){case 0:A.offscreenWidth=h=t.width,A.offscreenHeight=Q=t.height,f=t.startX,C=t.startY,m();case 5:case"end":return e.stop()}}),e)})));return function(A){return e.apply(this,arguments)}}()):m()},getContext:function(){var A=this;return(0,a.getRect)("#".concat(this.canvasId),{context:this,type:this.useCanvas2d?"fields":"boundingClientRect"}).then((function(e){if(e){var t,n=e.width,r=e.height,i=e.node,o=e.left,s=e.top,B=e.right,u=uni.getSystemInfoSync(),l=u.pixelRatio;return i?(t=i.getContext("2d"),i.width=n*l,i.height=r*l):(l=1,t=(0,c.uniContext)(A.canvasId,A),i={getContext:function(A){return"2d"==A?t:null},createImage:c.createImage,toDataURL:function(){return(0,c.toDataURL)(A.canvasId,A)},requestAnimationFrame:a.requestAnimationFrame}),t.clearRect(0,0,n,r),{left:o,top:s,right:B,width:n,height:r,context:t,canvas:i,pixelRatio:l}}}))},getTouch:function(A){var e=this;return this.isPC&&this.canvasRect&&(A.touches=A.touches.map((function(A){return(0,r.default)((0,r.default)({},A),{},{x:A.clientX-e.canvasRect.left,y:A.clientY-e.canvasRect.top})}))),A},touchStart:function(A){var e=this;this.canvasEl&&(this.isStart=!0,this.isPC?(0,a.getRect)("#".concat(this.canvasId),{context:this}).then((function(t){e.canvasRect=t,e.canvasEl.dispatchEvent("touchstart",(0,a.wrapEvent)(e.getTouch(A)))})):this.canvasEl.dispatchEvent("touchstart",(0,a.wrapEvent)(A)))},touchMove:function(A){!this.canvasEl||!this.isStart&&this.canvasEl||this.canvasEl.dispatchEvent("touchmove",(0,a.wrapEvent)(this.getTouch(A)))},touchEnd:function(A){this.canvasEl&&(this.isStart=!1,this.canvasEl.dispatchEvent("touchend",(0,a.wrapEvent)(A)),this.checkAndEmitEmptyStatus())}}});e.default=l},"0a8b":function(A,e,t){"use strict";var n=t("7992"),r=TypeError,i=function(A){var e,t;this.promise=new A((function(A,n){if(void 0!==e||void 0!==t)throw new r("Bad Promise constructor");e=A,t=n})),this.resolve=n(e),this.reject=n(t)};A.exports.f=function(A){return new i(A)}},"0d62":function(A,e,t){"use strict";t("6a54"),Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0,t("64aa");var n={styles:String,disableScroll:{type:Boolean,default:!0},type:{type:String,default:"2d"},penColor:{type:String,default:"black"},penSize:{type:Number,default:2},backgroundColor:String,backgroundImage:String,openSmooth:Boolean,minLineWidth:{type:Number,default:2},maxLineWidth:{type:Number,default:6},minSpeed:{type:Number,default:1.5},maxWidthDiffRate:{type:Number,default:20},maxHistoryLength:{type:Number,default:20},beforeDelay:{type:Number,default:0},landscape:{type:Boolean},boundingBox:{type:Boolean},disabled:{type:Boolean},preferToDataURL:Boolean};e.default=n},1052:function(A,e,t){"use strict";var n=t("85c1"),r=t("69e4"),i=t("474f"),o=t("8466"),s=t("ca99"),a=t("8c08"),B=t("897c"),c=t("6b21"),u=t("a734"),l=t("0173"),g=r&&r.prototype,d=a("species"),w=!1,h=i(n.PromiseRejectionEvent),Q=o("Promise",(function(){var A=s(r),e=A!==String(r);if(!e&&66===l)return!0;if(u&&(!g["catch"]||!g["finally"]))return!0;if(!l||l<51||!/native code/.test(A)){var t=new r((function(A){A(1)})),n=function(A){A((function(){}),(function(){}))},i=t.constructor={};if(i[d]=n,w=t.then((function(){}))instanceof n,!w)return!0}return!e&&(B||c)&&!h}));A.exports={CONSTRUCTOR:Q,REJECTION_EVENT:h,SUBCLASSING:w}},"14ee":function(A,e,t){"use strict";var n=t("f6ac"),r=t.n(n);r.a},1851:function(A,e,t){"use strict";var n=t("8bdb"),r=t("84d6"),i=t("1cb5");n({target:"Array",proto:!0},{fill:r}),i("fill")},"247d":function(A,e,t){"use strict";var n=t("6a50");n("Uint16",(function(A){return function(e,t,n){return A(this,e,t,n)}}))},2634:function(A,e,t){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default=function(){ /*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/facebook/regenerator/blob/main/LICENSE */ -e.default=function(){return A};var A={},t=Object.prototype,r=t.hasOwnProperty,i=Object.defineProperty||function(A,e,t){A[e]=t.value},o="function"==typeof Symbol?Symbol:{},s=o.iterator||"@@iterator",a=o.asyncIterator||"@@asyncIterator",B=o.toStringTag||"@@toStringTag";function c(A,e,t){return Object.defineProperty(A,e,{value:t,enumerable:!0,configurable:!0,writable:!0}),A[e]}try{c({},"")}catch(K){c=function(A,e,t){return A[e]=t}}function u(A,e,t,n){var r=e&&e.prototype instanceof w?e:w,o=Object.create(r.prototype),s=new E(n||[]);return i(o,"_invoke",{value:v(A,t,s)}),o}function l(A,e,t){try{return{type:"normal",arg:A.call(e,t)}}catch(K){return{type:"throw",arg:K}}}A.wrap=u;var g={};function w(){}function d(){}function h(){}var Q={};c(Q,s,(function(){return this}));var f=Object.getPrototypeOf,C=f&&f(f(I([])));C&&C!==t&&r.call(C,s)&&(Q=C);var U=h.prototype=w.prototype=Object.create(Q);function p(A){["next","throw","return"].forEach((function(e){c(A,e,(function(A){return this._invoke(e,A)}))}))}function F(A,e){var t;i(this,"_invoke",{value:function(i,o){function s(){return new e((function(t,s){(function t(i,o,s,a){var B=l(A[i],A,o);if("throw"!==B.type){var c=B.arg,u=c.value;return u&&"object"==(0,n.default)(u)&&r.call(u,"__await")?e.resolve(u.__await).then((function(A){t("next",A,s,a)}),(function(A){t("throw",A,s,a)})):e.resolve(u).then((function(A){c.value=A,s(c)}),(function(A){return t("throw",A,s,a)}))}a(B.arg)})(i,o,t,s)}))}return t=t?t.then(s,s):s()}})}function v(A,e,t){var n="suspendedStart";return function(r,i){if("executing"===n)throw new Error("Generator is already running");if("completed"===n){if("throw"===r)throw i;return b()}for(t.method=r,t.arg=i;;){var o=t.delegate;if(o){var s=m(o,t);if(s){if(s===g)continue;return s}}if("next"===t.method)t.sent=t._sent=t.arg;else if("throw"===t.method){if("suspendedStart"===n)throw n="completed",t.arg;t.dispatchException(t.arg)}else"return"===t.method&&t.abrupt("return",t.arg);n="executing";var a=l(A,e,t);if("normal"===a.type){if(n=t.done?"completed":"suspendedYield",a.arg===g)continue;return{value:a.arg,done:t.done}}"throw"===a.type&&(n="completed",t.method="throw",t.arg=a.arg)}}}function m(A,e){var t=e.method,n=A.iterator[t];if(void 0===n)return e.delegate=null,"throw"===t&&A.iterator["return"]&&(e.method="return",e.arg=void 0,m(A,e),"throw"===e.method)||"return"!==t&&(e.method="throw",e.arg=new TypeError("The iterator does not provide a '"+t+"' method")),g;var r=l(n,A.iterator,e.arg);if("throw"===r.type)return e.method="throw",e.arg=r.arg,e.delegate=null,g;var i=r.arg;return i?i.done?(e[A.resultName]=i.value,e.next=A.nextLoc,"return"!==e.method&&(e.method="next",e.arg=void 0),e.delegate=null,g):i:(e.method="throw",e.arg=new TypeError("iterator result is not an object"),e.delegate=null,g)}function y(A){var e={tryLoc:A[0]};1 in A&&(e.catchLoc=A[1]),2 in A&&(e.finallyLoc=A[2],e.afterLoc=A[3]),this.tryEntries.push(e)}function H(A){var e=A.completion||{};e.type="normal",delete e.arg,A.completion=e}function E(A){this.tryEntries=[{tryLoc:"root"}],A.forEach(y,this),this.reset(!0)}function I(A){if(A){var e=A[s];if(e)return e.call(A);if("function"==typeof A.next)return A;if(!isNaN(A.length)){var t=-1,n=function e(){for(;++t=0;--n){var i=this.tryEntries[n],o=i.completion;if("root"===i.tryLoc)return t("end");if(i.tryLoc<=this.prev){var s=r.call(i,"catchLoc"),a=r.call(i,"finallyLoc");if(s&&a){if(this.prev=0;--t){var n=this.tryEntries[t];if(n.tryLoc<=this.prev&&r.call(n,"finallyLoc")&&this.prev=0;--e){var t=this.tryEntries[e];if(t.finallyLoc===A)return this.complete(t.completion,t.afterLoc),H(t),g}},catch:function(A){for(var e=this.tryEntries.length-1;e>=0;--e){var t=this.tryEntries[e];if(t.tryLoc===A){var n=t.completion;if("throw"===n.type){var r=n.arg;H(t)}return r}}throw new Error("illegal catch attempt")},delegateYield:function(A,e,t){return this.delegate={iterator:I(A),resultName:e,nextLoc:t},"next"===this.method&&(this.arg=void 0),g}},A},t("6a54"),t("01a2"),t("e39c"),t("bf0f"),t("844d"),t("18f7"),t("de6c"),t("3872e"),t("4e9b"),t("114e"),t("c240"),t("926e"),t("7a76"),t("c9b5"),t("aa9c"),t("2797"),t("8a8d"),t("dc69"),t("f7a5");var n=function(A){return A&&A.__esModule?A:{default:A}}(t("fcf3"))},2748:function(A,e,t){"use strict";var n=t("7607"),r=t.n(n);r.a},"295e":function(A,e,t){"use strict";var n=t("6a50");n("Uint32",(function(A){return function(e,t,n){return A(this,e,t,n)}}))},"2cf9":function(A,e,t){var n,r,i=t("bdbb").default;t("4085"),t("8a8d"),t("7a76"),t("c9b5"),t("bf0f"),t("01a2"),t("e39c"),t("844d"),t("18f7"),t("de6c"),t("aa9c"),t("f7a5"),t("c223"),t("aa77"),t("08eb"),t("562d"),t("4db2"),t("c976"),t("4d8f"),t("7b97"),t("668a"),t("c5b7"),t("8ff5"),t("2378"),t("641a"),t("64e0"),t("cce3"),t("efba"),t("d009"),t("bd7d"),t("7edd"),t("d798"),t("f547"),t("5e54"),t("b60a"),t("8c18"),t("12973"),t("f991"),t("198e"),t("8557"),t("63b1"),t("1954"),t("1cf1"),t("80e3"),t("247d"),t("295e"),t("2797"),t("5ef2"),t("fd3c"),t("e966"),t("3efd"),t("dd2b"),t("8f71"),t("473f"),t("f555"),t("ab80"),t("a578"),t("6a54"),t("0c26"),t("5c47"),t("a1c1"),t("0506"),t("2c10"),t("dc8a"),t("dc69"),t("1851"), +e.default=function(){return A};var A={},t=Object.prototype,r=t.hasOwnProperty,i=Object.defineProperty||function(A,e,t){A[e]=t.value},o="function"==typeof Symbol?Symbol:{},s=o.iterator||"@@iterator",a=o.asyncIterator||"@@asyncIterator",B=o.toStringTag||"@@toStringTag";function c(A,e,t){return Object.defineProperty(A,e,{value:t,enumerable:!0,configurable:!0,writable:!0}),A[e]}try{c({},"")}catch(x){c=function(A,e,t){return A[e]=t}}function u(A,e,t,n){var r=e&&e.prototype instanceof d?e:d,o=Object.create(r.prototype),s=new E(n||[]);return i(o,"_invoke",{value:v(A,t,s)}),o}function l(A,e,t){try{return{type:"normal",arg:A.call(e,t)}}catch(x){return{type:"throw",arg:x}}}A.wrap=u;var g={};function d(){}function w(){}function h(){}var Q={};c(Q,s,(function(){return this}));var f=Object.getPrototypeOf,C=f&&f(f(I([])));C&&C!==t&&r.call(C,s)&&(Q=C);var p=h.prototype=d.prototype=Object.create(Q);function U(A){["next","throw","return"].forEach((function(e){c(A,e,(function(A){return this._invoke(e,A)}))}))}function F(A,e){var t;i(this,"_invoke",{value:function(i,o){function s(){return new e((function(t,s){(function t(i,o,s,a){var B=l(A[i],A,o);if("throw"!==B.type){var c=B.arg,u=c.value;return u&&"object"==(0,n.default)(u)&&r.call(u,"__await")?e.resolve(u.__await).then((function(A){t("next",A,s,a)}),(function(A){t("throw",A,s,a)})):e.resolve(u).then((function(A){c.value=A,s(c)}),(function(A){return t("throw",A,s,a)}))}a(B.arg)})(i,o,t,s)}))}return t=t?t.then(s,s):s()}})}function v(A,e,t){var n="suspendedStart";return function(r,i){if("executing"===n)throw new Error("Generator is already running");if("completed"===n){if("throw"===r)throw i;return b()}for(t.method=r,t.arg=i;;){var o=t.delegate;if(o){var s=m(o,t);if(s){if(s===g)continue;return s}}if("next"===t.method)t.sent=t._sent=t.arg;else if("throw"===t.method){if("suspendedStart"===n)throw n="completed",t.arg;t.dispatchException(t.arg)}else"return"===t.method&&t.abrupt("return",t.arg);n="executing";var a=l(A,e,t);if("normal"===a.type){if(n=t.done?"completed":"suspendedYield",a.arg===g)continue;return{value:a.arg,done:t.done}}"throw"===a.type&&(n="completed",t.method="throw",t.arg=a.arg)}}}function m(A,e){var t=e.method,n=A.iterator[t];if(void 0===n)return e.delegate=null,"throw"===t&&A.iterator["return"]&&(e.method="return",e.arg=void 0,m(A,e),"throw"===e.method)||"return"!==t&&(e.method="throw",e.arg=new TypeError("The iterator does not provide a '"+t+"' method")),g;var r=l(n,A.iterator,e.arg);if("throw"===r.type)return e.method="throw",e.arg=r.arg,e.delegate=null,g;var i=r.arg;return i?i.done?(e[A.resultName]=i.value,e.next=A.nextLoc,"return"!==e.method&&(e.method="next",e.arg=void 0),e.delegate=null,g):i:(e.method="throw",e.arg=new TypeError("iterator result is not an object"),e.delegate=null,g)}function y(A){var e={tryLoc:A[0]};1 in A&&(e.catchLoc=A[1]),2 in A&&(e.finallyLoc=A[2],e.afterLoc=A[3]),this.tryEntries.push(e)}function H(A){var e=A.completion||{};e.type="normal",delete e.arg,A.completion=e}function E(A){this.tryEntries=[{tryLoc:"root"}],A.forEach(y,this),this.reset(!0)}function I(A){if(A){var e=A[s];if(e)return e.call(A);if("function"==typeof A.next)return A;if(!isNaN(A.length)){var t=-1,n=function e(){for(;++t=0;--n){var i=this.tryEntries[n],o=i.completion;if("root"===i.tryLoc)return t("end");if(i.tryLoc<=this.prev){var s=r.call(i,"catchLoc"),a=r.call(i,"finallyLoc");if(s&&a){if(this.prev=0;--t){var n=this.tryEntries[t];if(n.tryLoc<=this.prev&&r.call(n,"finallyLoc")&&this.prev=0;--e){var t=this.tryEntries[e];if(t.finallyLoc===A)return this.complete(t.completion,t.afterLoc),H(t),g}},catch:function(A){for(var e=this.tryEntries.length-1;e>=0;--e){var t=this.tryEntries[e];if(t.tryLoc===A){var n=t.completion;if("throw"===n.type){var r=n.arg;H(t)}return r}}throw new Error("illegal catch attempt")},delegateYield:function(A,e,t){return this.delegate={iterator:I(A),resultName:e,nextLoc:t},"next"===this.method&&(this.arg=void 0),g}},A},t("6a54"),t("01a2"),t("e39c"),t("bf0f"),t("844d"),t("18f7"),t("de6c"),t("3872e"),t("4e9b"),t("114e"),t("c240"),t("926e"),t("7a76"),t("c9b5"),t("aa9c"),t("2797"),t("8a8d"),t("dc69"),t("f7a5");var n=function(A){return A&&A.__esModule?A:{default:A}}(t("fcf3"))},2748:function(A,e,t){"use strict";var n=t("7607"),r=t.n(n);r.a},"295e":function(A,e,t){"use strict";var n=t("6a50");n("Uint32",(function(A){return function(e,t,n){return A(this,e,t,n)}}))},"2cf9":function(A,e,t){var n,r,i=t("bdbb").default;t("4085"),t("8a8d"),t("7a76"),t("c9b5"),t("bf0f"),t("01a2"),t("e39c"),t("844d"),t("18f7"),t("de6c"),t("aa9c"),t("f7a5"),t("c223"),t("aa77"),t("08eb"),t("562d"),t("4db2"),t("c976"),t("4d8f"),t("7b97"),t("668a"),t("c5b7"),t("8ff5"),t("2378"),t("641a"),t("64e0"),t("cce3"),t("efba"),t("d009"),t("bd7d"),t("7edd"),t("d798"),t("f547"),t("5e54"),t("b60a"),t("8c18"),t("12973"),t("f991"),t("198e"),t("8557"),t("63b1"),t("1954"),t("1cf1"),t("80e3"),t("247d"),t("295e"),t("2797"),t("5ef2"),t("fd3c"),t("e966"),t("3efd"),t("dd2b"),t("8f71"),t("473f"),t("f555"),t("ab80"),t("a578"),t("6a54"),t("0c26"),t("5c47"),t("a1c1"),t("0506"),t("2c10"),t("dc8a"),t("dc69"),t("1851"), /*! * html2canvas 1.4.1 * Copyright (c) 2022 Niklas von Hertzen @@ -18,4 +18,4 @@ function(o,s){"object"===i(e)&&"undefined"!==typeof A?A.exports=s():(n=s,r="func LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. - ***************************************************************************** */var A=function(e,t){return A=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(A,e){A.__proto__=e}||function(A,e){for(var t in e)Object.prototype.hasOwnProperty.call(e,t)&&(A[t]=e[t])},A(e,t)};function e(e,t){if("function"!==typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}A(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}var t=function(){return t=Object.assign||function(A){for(var e,t=1,n=arguments.length;t0&&r[r.length-1])&&(6===i[0]||2===i[0])){o=0;continue}if(3===i[0]&&(!r||i[1]>r[0]&&i[1]=55296&&r<=56319&&t>10),o%1024+56320)),(r+1===t||n.length>16384)&&(i+=String.fromCharCode.apply(String,n),n.length=0)}return i},u="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",l="undefined"===typeof Uint8Array?[]:new Uint8Array(256),g=0;g=0){if(A<55296||A>56319&&A<=65535)return e=this.index[A>>5],e=(e<<2)+(31&A),this.data[e];if(A<=65535)return e=this.index[2048+(A-55296>>5)],e=(e<<2)+(31&A),this.data[e];if(A>11),e=this.index[e],e+=A>>5&63,e=this.index[e],e=(e<<2)+(31&A),this.data[e];if(A<=1114111)return this.data[this.highValueIndex]}return this.errorValue},A}(),C="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",U="undefined"===typeof Uint8Array?[]:new Uint8Array(256),p=0;p>4,c[a++]=(15&n)<<4|r>>2,c[a++]=(3&r)<<6|63&i;return B}(A),n=Array.isArray(t)?function(A){for(var e=A.length,t=[],n=0;n0){i--;var s=n[i];if(Array.isArray(A)?-1!==A.indexOf(s):A===s){var a=t;while(a<=n.length){a++;o=n[a];if(o===e)return!0;if(o!==F)break}}if(s!==F)break}}return!1},tA=function(A,e){var t=A;while(t>=0){var n=e[t];if(n!==F)return n;t--}return 0},nA=function(A,e,t,n,r){if(0===t[n])return"×";var i=n-1;if(Array.isArray(r)&&!0===r[i])return"×";var o=i-1,s=i+1,a=e[i],B=o>=0?e[o]:0,c=e[s];if(2===a&&3===c)return"×";if(-1!==Z.indexOf(a))return"!";if(-1!==Z.indexOf(c))return"×";if(-1!==j.indexOf(c))return"×";if(8===tA(i,e))return"÷";if(11===W.get(A[i]))return"×";if((a===O||a===k)&&11===W.get(A[s]))return"×";if(7===a||7===c)return"×";if(9===a)return"×";if(-1===[F,v,m].indexOf(a)&&9===c)return"×";if(-1!==[y,H,E,x,T].indexOf(c))return"×";if(tA(i,e)===K)return"×";if(eA(23,K,i,e))return"×";if(eA([y,H],b,i,e))return"×";if(eA(12,12,i,e))return"×";if(a===F)return"÷";if(23===a||23===c)return"×";if(16===c||16===a)return"÷";if(-1!==[v,m,b].indexOf(c)||14===a)return"×";if(36===B&&-1!==AA.indexOf(a))return"×";if(a===T&&36===c)return"×";if(c===I)return"×";if(-1!==Y.indexOf(c)&&a===L||-1!==Y.indexOf(a)&&c===L)return"×";if(a===D&&-1!==[V,O,k].indexOf(c)||-1!==[V,O,k].indexOf(a)&&c===S)return"×";if(-1!==Y.indexOf(a)&&-1!==z.indexOf(c)||-1!==z.indexOf(a)&&-1!==Y.indexOf(c))return"×";if(-1!==[D,S].indexOf(a)&&(c===L||-1!==[K,m].indexOf(c)&&e[s+1]===L)||-1!==[K,m].indexOf(a)&&c===L||a===L&&-1!==[L,T,x].indexOf(c))return"×";if(-1!==[L,T,x,y,H].indexOf(c)){var u=i;while(u>=0){var l=e[u];if(l===L)return"×";if(-1===[T,x].indexOf(l))break;u--}}if(-1!==[D,S].indexOf(c)){u=-1!==[y,H].indexOf(a)?o:i;while(u>=0){l=e[u];if(l===L)return"×";if(-1===[T,x].indexOf(l))break;u--}}if(R===a&&-1!==[R,N,G,P].indexOf(c)||-1!==[N,G].indexOf(a)&&-1!==[N,_].indexOf(c)||-1!==[_,P].indexOf(a)&&c===_)return"×";if(-1!==$.indexOf(a)&&-1!==[I,S].indexOf(c)||-1!==$.indexOf(c)&&a===D)return"×";if(-1!==Y.indexOf(a)&&-1!==Y.indexOf(c))return"×";if(a===x&&-1!==Y.indexOf(c))return"×";if(-1!==Y.concat(L).indexOf(a)&&c===K&&-1===J.indexOf(A[s])||-1!==Y.concat(L).indexOf(c)&&a===H)return"×";if(41===a&&41===c){var g=t[i],w=1;while(g>0){if(g--,41!==e[g])break;w++}if(w%2!==0)return"×"}return a===O&&c===k?"×":"÷"},rA=function(A,e){e||(e={lineBreak:"normal",wordBreak:"normal"});var t=function(A,e){void 0===e&&(e="strict");var t=[],n=[],r=[];return A.forEach((function(A,i){var o=W.get(A);if(o>50?(r.push(!0),o-=50):r.push(!1),-1!==["normal","auto","loose"].indexOf(e)&&-1!==[8208,8211,12316,12448].indexOf(A))return n.push(i),t.push(16);if(4===o||11===o){if(0===i)return n.push(i),t.push(M);var s=t[i-1];return-1===q.indexOf(s)?(n.push(n[i-1]),t.push(s)):(n.push(i),t.push(M))}return n.push(i),31===o?t.push("strict"===e?b:V):o===X||29===o?t.push(M):43===o?A>=131072&&A<=196605||A>=196608&&A<=262141?t.push(V):t.push(M):void t.push(o)})),[n,t,r]}(A,e.lineBreak),n=t[0],r=t[1],i=t[2];"break-all"!==e.wordBreak&&"break-word"!==e.wordBreak||(r=r.map((function(A){return-1!==[L,M,X].indexOf(A)?V:A})));var o="keep-all"===e.wordBreak?i.map((function(e,t){return e&&A[t]>=19968&&A[t]<=40959})):void 0;return[n,r,o]},iA=function(){function A(A,e,t,n){this.codePoints=A,this.required="!"===e,this.start=t,this.end=n}return A.prototype.slice=function(){return c.apply(void 0,this.codePoints.slice(this.start,this.end))},A}(),oA=function(A){return A>=48&&A<=57},sA=function(A){return oA(A)||A>=65&&A<=70||A>=97&&A<=102},aA=function(A){return 10===A||9===A||32===A},BA=function(A){return function(A){return function(A){return A>=97&&A<=122}(A)||function(A){return A>=65&&A<=90}(A)}(A)||function(A){return A>=128}(A)||95===A},cA=function(A){return BA(A)||oA(A)||45===A},uA=function(A){return A>=0&&A<=8||11===A||A>=14&&A<=31||127===A},lA=function(A,e){return 92===A&&10!==e},gA=function(A,e,t){return 45===A?BA(e)||lA(e,t):!!BA(A)||!(92!==A||!lA(A,e))},wA=function(A,e,t){return 43===A||45===A?!!oA(e)||46===e&&oA(t):oA(46===A?e:A)},dA=function(A){var e=0,t=1;43!==A[e]&&45!==A[e]||(45===A[e]&&(t=-1),e++);var n=[];while(oA(A[e]))n.push(A[e++]);var r=n.length?parseInt(c.apply(void 0,n),10):0;46===A[e]&&e++;var i=[];while(oA(A[e]))i.push(A[e++]);var o=i.length,s=o?parseInt(c.apply(void 0,i),10):0;69!==A[e]&&101!==A[e]||e++;var a=1;43!==A[e]&&45!==A[e]||(45===A[e]&&(a=-1),e++);var B=[];while(oA(A[e]))B.push(A[e++]);var u=B.length?parseInt(c.apply(void 0,B),10):0;return t*(r+s*Math.pow(10,-o))*Math.pow(10,a*u)},hA={type:2},QA={type:3},fA={type:4},CA={type:13},UA={type:8},pA={type:21},FA={type:9},vA={type:10},mA={type:11},yA={type:12},HA={type:14},EA={type:23},IA={type:1},bA={type:25},KA={type:24},xA={type:26},LA={type:27},SA={type:28},DA={type:29},TA={type:31},MA={type:32},OA=function(){function A(){this._value=[]}return A.prototype.write=function(A){this._value=this._value.concat(B(A))},A.prototype.read=function(){var A=[],e=this.consumeToken();while(e!==MA)A.push(e),e=this.consumeToken();return A},A.prototype.consumeToken=function(){var A=this.consumeCodePoint();switch(A){case 34:return this.consumeStringToken(34);case 35:var e=this.peekCodePoint(0),t=this.peekCodePoint(1),n=this.peekCodePoint(2);if(cA(e)||lA(t,n)){var r=gA(e,t,n)?2:1,i=this.consumeName();return{type:5,value:i,flags:r}}break;case 36:if(61===this.peekCodePoint(0))return this.consumeCodePoint(),CA;break;case 39:return this.consumeStringToken(39);case 40:return hA;case 41:return QA;case 42:if(61===this.peekCodePoint(0))return this.consumeCodePoint(),HA;break;case 43:if(wA(A,this.peekCodePoint(0),this.peekCodePoint(1)))return this.reconsumeCodePoint(A),this.consumeNumericToken();break;case 44:return fA;case 45:var o=A,s=this.peekCodePoint(0),a=this.peekCodePoint(1);if(wA(o,s,a))return this.reconsumeCodePoint(A),this.consumeNumericToken();if(gA(o,s,a))return this.reconsumeCodePoint(A),this.consumeIdentLikeToken();if(45===s&&62===a)return this.consumeCodePoint(),this.consumeCodePoint(),KA;break;case 46:if(wA(A,this.peekCodePoint(0),this.peekCodePoint(1)))return this.reconsumeCodePoint(A),this.consumeNumericToken();break;case 47:if(42===this.peekCodePoint(0)){this.consumeCodePoint();while(1){var B=this.consumeCodePoint();if(42===B&&(B=this.consumeCodePoint(),47===B))return this.consumeToken();if(-1===B)return this.consumeToken()}}break;case 58:return xA;case 59:return LA;case 60:if(33===this.peekCodePoint(0)&&45===this.peekCodePoint(1)&&45===this.peekCodePoint(2))return this.consumeCodePoint(),this.consumeCodePoint(),bA;break;case 64:var u=this.peekCodePoint(0),l=this.peekCodePoint(1),g=this.peekCodePoint(2);if(gA(u,l,g)){i=this.consumeName();return{type:7,value:i}}break;case 91:return SA;case 92:if(lA(A,this.peekCodePoint(0)))return this.reconsumeCodePoint(A),this.consumeIdentLikeToken();break;case 93:return DA;case 61:if(61===this.peekCodePoint(0))return this.consumeCodePoint(),UA;break;case 123:return mA;case 125:return yA;case 117:case 85:var w=this.peekCodePoint(0),d=this.peekCodePoint(1);return 43!==w||!sA(d)&&63!==d||(this.consumeCodePoint(),this.consumeUnicodeRangeToken()),this.reconsumeCodePoint(A),this.consumeIdentLikeToken();case 124:if(61===this.peekCodePoint(0))return this.consumeCodePoint(),FA;if(124===this.peekCodePoint(0))return this.consumeCodePoint(),pA;break;case 126:if(61===this.peekCodePoint(0))return this.consumeCodePoint(),vA;break;case-1:return MA}return aA(A)?(this.consumeWhiteSpace(),TA):oA(A)?(this.reconsumeCodePoint(A),this.consumeNumericToken()):BA(A)?(this.reconsumeCodePoint(A),this.consumeIdentLikeToken()):{type:6,value:c(A)}},A.prototype.consumeCodePoint=function(){var A=this._value.shift();return"undefined"===typeof A?-1:A},A.prototype.reconsumeCodePoint=function(A){this._value.unshift(A)},A.prototype.peekCodePoint=function(A){return A>=this._value.length?-1:this._value[A]},A.prototype.consumeUnicodeRangeToken=function(){var A=[],e=this.consumeCodePoint();while(sA(e)&&A.length<6)A.push(e),e=this.consumeCodePoint();var t=!1;while(63===e&&A.length<6)A.push(e),e=this.consumeCodePoint(),t=!0;if(t){var n=parseInt(c.apply(void 0,A.map((function(A){return 63===A?48:A}))),16),r=parseInt(c.apply(void 0,A.map((function(A){return 63===A?70:A}))),16);return{type:30,start:n,end:r}}var i=parseInt(c.apply(void 0,A),16);if(45===this.peekCodePoint(0)&&sA(this.peekCodePoint(1))){this.consumeCodePoint(),e=this.consumeCodePoint();var o=[];while(sA(e)&&o.length<6)o.push(e),e=this.consumeCodePoint();r=parseInt(c.apply(void 0,o),16);return{type:30,start:i,end:r}}return{type:30,start:i,end:i}},A.prototype.consumeIdentLikeToken=function(){var A=this.consumeName();return"url"===A.toLowerCase()&&40===this.peekCodePoint(0)?(this.consumeCodePoint(),this.consumeUrlToken()):40===this.peekCodePoint(0)?(this.consumeCodePoint(),{type:19,value:A}):{type:20,value:A}},A.prototype.consumeUrlToken=function(){var A=[];if(this.consumeWhiteSpace(),-1===this.peekCodePoint(0))return{type:22,value:""};var e=this.peekCodePoint(0);if(39===e||34===e){var t=this.consumeStringToken(this.consumeCodePoint());return 0===t.type&&(this.consumeWhiteSpace(),-1===this.peekCodePoint(0)||41===this.peekCodePoint(0))?(this.consumeCodePoint(),{type:22,value:t.value}):(this.consumeBadUrlRemnants(),EA)}while(1){var n=this.consumeCodePoint();if(-1===n||41===n)return{type:22,value:c.apply(void 0,A)};if(aA(n))return this.consumeWhiteSpace(),-1===this.peekCodePoint(0)||41===this.peekCodePoint(0)?(this.consumeCodePoint(),{type:22,value:c.apply(void 0,A)}):(this.consumeBadUrlRemnants(),EA);if(34===n||39===n||40===n||uA(n))return this.consumeBadUrlRemnants(),EA;if(92===n){if(!lA(n,this.peekCodePoint(0)))return this.consumeBadUrlRemnants(),EA;A.push(this.consumeEscapedCodePoint())}else A.push(n)}},A.prototype.consumeWhiteSpace=function(){while(aA(this.peekCodePoint(0)))this.consumeCodePoint()},A.prototype.consumeBadUrlRemnants=function(){while(1){var A=this.consumeCodePoint();if(41===A||-1===A)return;lA(A,this.peekCodePoint(0))&&this.consumeEscapedCodePoint()}},A.prototype.consumeStringSlice=function(A){var e="";while(A>0){var t=Math.min(5e4,A);e+=c.apply(void 0,this._value.splice(0,t)),A-=t}return this._value.shift(),e},A.prototype.consumeStringToken=function(A){var e="",t=0;do{var n=this._value[t];if(-1===n||void 0===n||n===A)return e+=this.consumeStringSlice(t),{type:0,value:e};if(10===n)return this._value.splice(0,t),IA;if(92===n){var r=this._value[t+1];-1!==r&&void 0!==r&&(10===r?(e+=this.consumeStringSlice(t),t=-1,this._value.shift()):lA(n,r)&&(e+=this.consumeStringSlice(t),e+=c(this.consumeEscapedCodePoint()),t=-1))}t++}while(1)},A.prototype.consumeNumber=function(){var A=[],e=4,t=this.peekCodePoint(0);43!==t&&45!==t||A.push(this.consumeCodePoint());while(oA(this.peekCodePoint(0)))A.push(this.consumeCodePoint());t=this.peekCodePoint(0);var n=this.peekCodePoint(1);if(46===t&&oA(n)){A.push(this.consumeCodePoint(),this.consumeCodePoint()),e=8;while(oA(this.peekCodePoint(0)))A.push(this.consumeCodePoint())}t=this.peekCodePoint(0),n=this.peekCodePoint(1);var r=this.peekCodePoint(2);if((69===t||101===t)&&((43===n||45===n)&&oA(r)||oA(n))){A.push(this.consumeCodePoint(),this.consumeCodePoint()),e=8;while(oA(this.peekCodePoint(0)))A.push(this.consumeCodePoint())}return[dA(A),e]},A.prototype.consumeNumericToken=function(){var A=this.consumeNumber(),e=A[0],t=A[1],n=this.peekCodePoint(0),r=this.peekCodePoint(1),i=this.peekCodePoint(2);if(gA(n,r,i)){var o=this.consumeName();return{type:15,number:e,flags:t,unit:o}}return 37===n?(this.consumeCodePoint(),{type:16,number:e,flags:t}):{type:17,number:e,flags:t}},A.prototype.consumeEscapedCodePoint=function(){var A=this.consumeCodePoint();if(sA(A)){var e=c(A);while(sA(this.peekCodePoint(0))&&e.length<6)e+=c(this.consumeCodePoint());aA(this.peekCodePoint(0))&&this.consumeCodePoint();var t=parseInt(e,16);return 0===t||function(A){return A>=55296&&A<=57343}(t)||t>1114111?65533:t}return-1===A?65533:A},A.prototype.consumeName=function(){var A="";while(1){var e=this.consumeCodePoint();if(cA(e))A+=c(e);else{if(!lA(e,this.peekCodePoint(0)))return this.reconsumeCodePoint(e),A;A+=c(this.consumeEscapedCodePoint())}}},A}(),kA=function(){function A(A){this._tokens=A}return A.create=function(e){var t=new OA;return t.write(e),new A(t.read())},A.parseValue=function(e){return A.create(e).parseComponentValue()},A.parseValues=function(e){return A.create(e).parseComponentValues()},A.prototype.parseComponentValue=function(){var A=this.consumeToken();while(31===A.type)A=this.consumeToken();if(32===A.type)throw new SyntaxError("Error parsing CSS component value, unexpected EOF");this.reconsumeToken(A);var e=this.consumeComponentValue();do{A=this.consumeToken()}while(31===A.type);if(32===A.type)return e;throw new SyntaxError("Error parsing CSS component value, multiple values found when expecting only one")},A.prototype.parseComponentValues=function(){var A=[];while(1){var e=this.consumeComponentValue();if(32===e.type)return A;A.push(e),A.push()}},A.prototype.consumeComponentValue=function(){var A=this.consumeToken();switch(A.type){case 11:case 28:case 2:return this.consumeSimpleBlock(A.type);case 19:return this.consumeFunction(A)}return A},A.prototype.consumeSimpleBlock=function(A){var e={type:A,values:[]},t=this.consumeToken();while(1){if(32===t.type||WA(t,A))return e;this.reconsumeToken(t),e.values.push(this.consumeComponentValue()),t=this.consumeToken()}},A.prototype.consumeFunction=function(A){var e={name:A.value,values:[],type:18};while(1){var t=this.consumeToken();if(32===t.type||3===t.type)return e;this.reconsumeToken(t),e.values.push(this.consumeComponentValue())}},A.prototype.consumeToken=function(){var A=this._tokens.shift();return"undefined"===typeof A?MA:A},A.prototype.reconsumeToken=function(A){this._tokens.unshift(A)},A}(),GA=function(A){return 15===A.type},PA=function(A){return 17===A.type},VA=function(A){return 20===A.type},RA=function(A){return 0===A.type},NA=function(A,e){return VA(A)&&A.value===e},_A=function(A){return 31!==A.type},XA=function(A){return 31!==A.type&&4!==A.type},JA=function(A){var e=[],t=[];return A.forEach((function(A){if(4===A.type){if(0===t.length)throw new Error("Error parsing function args, zero tokens for arg");return e.push(t),void(t=[])}31!==A.type&&t.push(A)})),t.length&&e.push(t),e},WA=function(A,e){return 11===e&&12===A.type||(28===e&&29===A.type||2===e&&3===A.type)},YA=function(A){return 17===A.type||15===A.type},ZA=function(A){return 16===A.type||YA(A)},jA=function(A){return A.length>1?[A[0],A[1]]:[A[0]]},zA={type:17,number:0,flags:4},qA={type:16,number:50,flags:4},$A={type:16,number:100,flags:4},Ae=function(A,e,t){var n=A[0],r=A[1];return[ee(n,e),ee("undefined"!==typeof r?r:n,t)]},ee=function(A,e){if(16===A.type)return A.number/100*e;if(GA(A))switch(A.unit){case"rem":case"em":return 16*A.number;case"px":default:return A.number}return A.number},te={name:"angle",parse:function(A,e){if(15===e.type)switch(e.unit){case"deg":return Math.PI*e.number/180;case"grad":return Math.PI/200*e.number;case"rad":return e.number;case"turn":return 2*Math.PI*e.number}throw new Error("Unsupported angle type")}},ne=function(A){return 15===A.type&&("deg"===A.unit||"grad"===A.unit||"rad"===A.unit||"turn"===A.unit)},re=function(A){var e=A.filter(VA).map((function(A){return A.value})).join(" ");switch(e){case"to bottom right":case"to right bottom":case"left top":case"top left":return[zA,zA];case"to top":case"bottom":return ie(0);case"to bottom left":case"to left bottom":case"right top":case"top right":return[zA,$A];case"to right":case"left":return ie(90);case"to top left":case"to left top":case"right bottom":case"bottom right":return[$A,$A];case"to bottom":case"top":return ie(180);case"to top right":case"to right top":case"left bottom":case"bottom left":return[$A,zA];case"to left":case"right":return ie(270)}return 0},ie=function(A){return Math.PI*A/180},oe={name:"color",parse:function(A,e){if(18===e.type){var t=we[e.name];if("undefined"===typeof t)throw new Error('Attempting to parse an unsupported color function "'+e.name+'"');return t(A,e.values)}if(5===e.type){if(3===e.value.length){var n=e.value.substring(0,1),r=e.value.substring(1,2),i=e.value.substring(2,3);return Be(parseInt(n+n,16),parseInt(r+r,16),parseInt(i+i,16),1)}if(4===e.value.length){n=e.value.substring(0,1),r=e.value.substring(1,2),i=e.value.substring(2,3);var o=e.value.substring(3,4);return Be(parseInt(n+n,16),parseInt(r+r,16),parseInt(i+i,16),parseInt(o+o,16)/255)}if(6===e.value.length){n=e.value.substring(0,2),r=e.value.substring(2,4),i=e.value.substring(4,6);return Be(parseInt(n,16),parseInt(r,16),parseInt(i,16),1)}if(8===e.value.length){n=e.value.substring(0,2),r=e.value.substring(2,4),i=e.value.substring(4,6),o=e.value.substring(6,8);return Be(parseInt(n,16),parseInt(r,16),parseInt(i,16),parseInt(o,16)/255)}}if(20===e.type){var s=he[e.value.toUpperCase()];if("undefined"!==typeof s)return s}return he.TRANSPARENT}},se=function(A){return 0===(255&A)},ae=function(A){var e=255&A,t=255&A>>8,n=255&A>>16,r=255&A>>24;return e<255?"rgba("+r+","+n+","+t+","+e/255+")":"rgb("+r+","+n+","+t+")"},Be=function(A,e,t,n){return(A<<24|e<<16|t<<8|Math.round(255*n)<<0)>>>0},ce=function(A,e){if(17===A.type)return A.number;if(16===A.type){var t=3===e?1:255;return 3===e?A.number/100*t:Math.round(A.number/100*t)}return 0},ue=function(A,e){var t=e.filter(XA);if(3===t.length){var n=t.map(ce),r=n[0],i=n[1],o=n[2];return Be(r,i,o,1)}if(4===t.length){var s=t.map(ce),a=(r=s[0],i=s[1],o=s[2],s[3]);return Be(r,i,o,a)}return 0};function le(A,e,t){return t<0&&(t+=1),t>=1&&(t-=1),t<1/6?(e-A)*t*6+A:t<.5?e:t<2/3?6*(e-A)*(2/3-t)+A:A}var ge=function(A,e){var t=e.filter(XA),n=t[0],r=t[1],i=t[2],o=t[3],s=(17===n.type?ie(n.number):te.parse(A,n))/(2*Math.PI),a=ZA(r)?r.number/100:0,B=ZA(i)?i.number/100:0,c="undefined"!==typeof o&&ZA(o)?ee(o,1):1;if(0===a)return Be(255*B,255*B,255*B,1);var u=B<=.5?B*(a+1):B+a-B*a,l=2*B-u,g=le(l,u,s+1/3),w=le(l,u,s),d=le(l,u,s-1/3);return Be(255*g,255*w,255*d,c)},we={hsl:ge,hsla:ge,rgb:ue,rgba:ue},de=function(A,e){return oe.parse(A,kA.create(e).parseComponentValue())},he={ALICEBLUE:4042850303,ANTIQUEWHITE:4209760255,AQUA:16777215,AQUAMARINE:2147472639,AZURE:4043309055,BEIGE:4126530815,BISQUE:4293182719,BLACK:255,BLANCHEDALMOND:4293643775,BLUE:65535,BLUEVIOLET:2318131967,BROWN:2771004159,BURLYWOOD:3736635391,CADETBLUE:1604231423,CHARTREUSE:2147418367,CHOCOLATE:3530104575,CORAL:4286533887,CORNFLOWERBLUE:1687547391,CORNSILK:4294499583,CRIMSON:3692313855,CYAN:16777215,DARKBLUE:35839,DARKCYAN:9145343,DARKGOLDENROD:3095837695,DARKGRAY:2846468607,DARKGREEN:6553855,DARKGREY:2846468607,DARKKHAKI:3182914559,DARKMAGENTA:2332068863,DARKOLIVEGREEN:1433087999,DARKORANGE:4287365375,DARKORCHID:2570243327,DARKRED:2332033279,DARKSALMON:3918953215,DARKSEAGREEN:2411499519,DARKSLATEBLUE:1211993087,DARKSLATEGRAY:793726975,DARKSLATEGREY:793726975,DARKTURQUOISE:13554175,DARKVIOLET:2483082239,DEEPPINK:4279538687,DEEPSKYBLUE:12582911,DIMGRAY:1768516095,DIMGREY:1768516095,DODGERBLUE:512819199,FIREBRICK:2988581631,FLORALWHITE:4294635775,FORESTGREEN:579543807,FUCHSIA:4278255615,GAINSBORO:3705462015,GHOSTWHITE:4177068031,GOLD:4292280575,GOLDENROD:3668254975,GRAY:2155905279,GREEN:8388863,GREENYELLOW:2919182335,GREY:2155905279,HONEYDEW:4043305215,HOTPINK:4285117695,INDIANRED:3445382399,INDIGO:1258324735,IVORY:4294963455,KHAKI:4041641215,LAVENDER:3873897215,LAVENDERBLUSH:4293981695,LAWNGREEN:2096890111,LEMONCHIFFON:4294626815,LIGHTBLUE:2916673279,LIGHTCORAL:4034953471,LIGHTCYAN:3774873599,LIGHTGOLDENRODYELLOW:4210742015,LIGHTGRAY:3553874943,LIGHTGREEN:2431553791,LIGHTGREY:3553874943,LIGHTPINK:4290167295,LIGHTSALMON:4288707327,LIGHTSEAGREEN:548580095,LIGHTSKYBLUE:2278488831,LIGHTSLATEGRAY:2005441023,LIGHTSLATEGREY:2005441023,LIGHTSTEELBLUE:2965692159,LIGHTYELLOW:4294959359,LIME:16711935,LIMEGREEN:852308735,LINEN:4210091775,MAGENTA:4278255615,MAROON:2147483903,MEDIUMAQUAMARINE:1724754687,MEDIUMBLUE:52735,MEDIUMORCHID:3126187007,MEDIUMPURPLE:2473647103,MEDIUMSEAGREEN:1018393087,MEDIUMSLATEBLUE:2070474495,MEDIUMSPRINGGREEN:16423679,MEDIUMTURQUOISE:1221709055,MEDIUMVIOLETRED:3340076543,MIDNIGHTBLUE:421097727,MINTCREAM:4127193855,MISTYROSE:4293190143,MOCCASIN:4293178879,NAVAJOWHITE:4292783615,NAVY:33023,OLDLACE:4260751103,OLIVE:2155872511,OLIVEDRAB:1804477439,ORANGE:4289003775,ORANGERED:4282712319,ORCHID:3664828159,PALEGOLDENROD:4008225535,PALEGREEN:2566625535,PALETURQUOISE:2951671551,PALEVIOLETRED:3681588223,PAPAYAWHIP:4293907967,PEACHPUFF:4292524543,PERU:3448061951,PINK:4290825215,PLUM:3718307327,POWDERBLUE:2967529215,PURPLE:2147516671,REBECCAPURPLE:1714657791,RED:4278190335,ROSYBROWN:3163525119,ROYALBLUE:1097458175,SADDLEBROWN:2336560127,SALMON:4202722047,SANDYBROWN:4104413439,SEAGREEN:780883967,SEASHELL:4294307583,SIENNA:2689740287,SILVER:3233857791,SKYBLUE:2278484991,SLATEBLUE:1784335871,SLATEGRAY:1887473919,SLATEGREY:1887473919,SNOW:4294638335,SPRINGGREEN:16744447,STEELBLUE:1182971135,TAN:3535047935,TEAL:8421631,THISTLE:3636451583,TOMATO:4284696575,TRANSPARENT:0,TURQUOISE:1088475391,VIOLET:4001558271,WHEAT:4125012991,WHITE:4294967295,WHITESMOKE:4126537215,YELLOW:4294902015,YELLOWGREEN:2597139199},Qe={name:"background-clip",initialValue:"border-box",prefix:!1,type:1,parse:function(A,e){return e.map((function(A){if(VA(A))switch(A.value){case"padding-box":return 1;case"content-box":return 2}return 0}))}},fe={name:"background-color",initialValue:"transparent",prefix:!1,type:3,format:"color"},Ce=function(A,e){var t=oe.parse(A,e[0]),n=e[1];return n&&ZA(n)?{color:t,stop:n}:{color:t,stop:null}},Ue=function(A,e){var t=A[0],n=A[A.length-1];null===t.stop&&(t.stop=zA),null===n.stop&&(n.stop=$A);for(var r=[],i=0,o=0;oi?r.push(a):r.push(i),i=a}else r.push(null)}var B=null;for(o=0;oA.optimumDistance)?{optimumCorner:e,optimumDistance:s}:A}),{optimumDistance:r?1/0:-1/0,optimumCorner:null}).optimumCorner},me=function(A,e){var t=ie(180),n=[];return JA(e).forEach((function(e,r){if(0===r){var i=e[0];if(20===i.type&&-1!==["top","left","right","bottom"].indexOf(i.value))return void(t=re(e));if(ne(i))return void(t=(te.parse(A,i)+ie(270))%ie(360))}var o=Ce(A,e);n.push(o)})),{angle:t,stops:n,type:1}},ye=function(A,e){var t=0,n=3,r=[],i=[];return JA(e).forEach((function(e,o){var s=!0;if(0===o?s=e.reduce((function(A,e){if(VA(e))switch(e.value){case"center":return i.push(qA),!1;case"top":case"left":return i.push(zA),!1;case"right":case"bottom":return i.push($A),!1}else if(ZA(e)||YA(e))return i.push(e),!1;return A}),s):1===o&&(s=e.reduce((function(A,e){if(VA(e))switch(e.value){case"circle":return t=0,!1;case"ellipse":return t=1,!1;case"contain":case"closest-side":return n=0,!1;case"farthest-side":return n=1,!1;case"closest-corner":return n=2,!1;case"cover":case"farthest-corner":return n=3,!1}else if(YA(e)||ZA(e))return Array.isArray(n)||(n=[]),n.push(e),!1;return A}),s)),s){var a=Ce(A,e);r.push(a)}})),{size:n,shape:t,stops:r,position:i,type:2}},He={name:"image",parse:function(A,e){if(22===e.type){var t={url:e.value,type:0};return A.cache.addImage(e.value),t}if(18===e.type){var n=Ie[e.name];if("undefined"===typeof n)throw new Error('Attempting to parse an unsupported image function "'+e.name+'"');return n(A,e.values)}throw new Error("Unsupported image type "+e.type)}};var Ee,Ie={"linear-gradient":function(A,e){var t=ie(180),n=[];return JA(e).forEach((function(e,r){if(0===r){var i=e[0];if(20===i.type&&"to"===i.value)return void(t=re(e));if(ne(i))return void(t=te.parse(A,i))}var o=Ce(A,e);n.push(o)})),{angle:t,stops:n,type:1}},"-moz-linear-gradient":me,"-ms-linear-gradient":me,"-o-linear-gradient":me,"-webkit-linear-gradient":me,"radial-gradient":function(A,e){var t=0,n=3,r=[],i=[];return JA(e).forEach((function(e,o){var s=!0;if(0===o){var a=!1;s=e.reduce((function(A,e){if(a)if(VA(e))switch(e.value){case"center":return i.push(qA),A;case"top":case"left":return i.push(zA),A;case"right":case"bottom":return i.push($A),A}else(ZA(e)||YA(e))&&i.push(e);else if(VA(e))switch(e.value){case"circle":return t=0,!1;case"ellipse":return t=1,!1;case"at":return a=!0,!1;case"closest-side":return n=0,!1;case"cover":case"farthest-side":return n=1,!1;case"contain":case"closest-corner":return n=2,!1;case"farthest-corner":return n=3,!1}else if(YA(e)||ZA(e))return Array.isArray(n)||(n=[]),n.push(e),!1;return A}),s)}if(s){var B=Ce(A,e);r.push(B)}})),{size:n,shape:t,stops:r,position:i,type:2}},"-moz-radial-gradient":ye,"-ms-radial-gradient":ye,"-o-radial-gradient":ye,"-webkit-radial-gradient":ye,"-webkit-gradient":function(A,e){var t=ie(180),n=[],r=1;return JA(e).forEach((function(e,t){var i=e[0];if(0===t){if(VA(i)&&"linear"===i.value)return void(r=1);if(VA(i)&&"radial"===i.value)return void(r=2)}if(18===i.type)if("from"===i.name){var o=oe.parse(A,i.values[0]);n.push({stop:zA,color:o})}else if("to"===i.name){o=oe.parse(A,i.values[0]);n.push({stop:$A,color:o})}else if("color-stop"===i.name){var s=i.values.filter(XA);if(2===s.length){o=oe.parse(A,s[1]);var a=s[0];PA(a)&&n.push({stop:{type:16,number:100*a.number,flags:a.flags},color:o})}}})),1===r?{angle:(t+ie(180))%ie(360),stops:n,type:r}:{size:3,shape:0,stops:n,position:[],type:r}}},be={name:"background-image",initialValue:"none",type:1,prefix:!1,parse:function(A,e){if(0===e.length)return[];var t=e[0];return 20===t.type&&"none"===t.value?[]:e.filter((function(A){return XA(A)&&function(A){return!(20===A.type&&"none"===A.value)&&(18!==A.type||!!Ie[A.name])}(A)})).map((function(e){return He.parse(A,e)}))}},Ke={name:"background-origin",initialValue:"border-box",prefix:!1,type:1,parse:function(A,e){return e.map((function(A){if(VA(A))switch(A.value){case"padding-box":return 1;case"content-box":return 2}return 0}))}},xe={name:"background-position",initialValue:"0% 0%",type:1,prefix:!1,parse:function(A,e){return JA(e).map((function(A){return A.filter(ZA)})).map(jA)}},Le={name:"background-repeat",initialValue:"repeat",prefix:!1,type:1,parse:function(A,e){return JA(e).map((function(A){return A.filter(VA).map((function(A){return A.value})).join(" ")})).map(Se)}},Se=function(A){switch(A){case"no-repeat":return 1;case"repeat-x":case"repeat no-repeat":return 2;case"repeat-y":case"no-repeat repeat":return 3;case"repeat":default:return 0}};(function(A){A["AUTO"]="auto",A["CONTAIN"]="contain",A["COVER"]="cover"})(Ee||(Ee={}));var De,Te={name:"background-size",initialValue:"0",prefix:!1,type:1,parse:function(A,e){return JA(e).map((function(A){return A.filter(Me)}))}},Me=function(A){return VA(A)||ZA(A)},Oe=function(A){return{name:"border-"+A+"-color",initialValue:"transparent",prefix:!1,type:3,format:"color"}},ke=Oe("top"),Ge=Oe("right"),Pe=Oe("bottom"),Ve=Oe("left"),Re=function(A){return{name:"border-radius-"+A,initialValue:"0 0",prefix:!1,type:1,parse:function(A,e){return jA(e.filter(ZA))}}},Ne=Re("top-left"),_e=Re("top-right"),Xe=Re("bottom-right"),Je=Re("bottom-left"),We=function(A){return{name:"border-"+A+"-style",initialValue:"solid",prefix:!1,type:2,parse:function(A,e){switch(e){case"none":return 0;case"dashed":return 2;case"dotted":return 3;case"double":return 4}return 1}}},Ye=We("top"),Ze=We("right"),je=We("bottom"),ze=We("left"),qe=function(A){return{name:"border-"+A+"-width",initialValue:"0",type:0,prefix:!1,parse:function(A,e){return GA(e)?e.number:0}}},$e=qe("top"),At=qe("right"),et=qe("bottom"),tt=qe("left"),nt={name:"color",initialValue:"transparent",prefix:!1,type:3,format:"color"},rt={name:"direction",initialValue:"ltr",prefix:!1,type:2,parse:function(A,e){switch(e){case"rtl":return 1;case"ltr":default:return 0}}},it={name:"display",initialValue:"inline-block",prefix:!1,type:1,parse:function(A,e){return e.filter(VA).reduce((function(A,e){return A|ot(e.value)}),0)}},ot=function(A){switch(A){case"block":case"-webkit-box":return 2;case"inline":return 4;case"run-in":return 8;case"flow":return 16;case"flow-root":return 32;case"table":return 64;case"flex":case"-webkit-flex":return 128;case"grid":case"-ms-grid":return 256;case"ruby":return 512;case"subgrid":return 1024;case"list-item":return 2048;case"table-row-group":return 4096;case"table-header-group":return 8192;case"table-footer-group":return 16384;case"table-row":return 32768;case"table-cell":return 65536;case"table-column-group":return 131072;case"table-column":return 262144;case"table-caption":return 524288;case"ruby-base":return 1048576;case"ruby-text":return 2097152;case"ruby-base-container":return 4194304;case"ruby-text-container":return 8388608;case"contents":return 16777216;case"inline-block":return 33554432;case"inline-list-item":return 67108864;case"inline-table":return 134217728;case"inline-flex":return 268435456;case"inline-grid":return 536870912}return 0},st={name:"float",initialValue:"none",prefix:!1,type:2,parse:function(A,e){switch(e){case"left":return 1;case"right":return 2;case"inline-start":return 3;case"inline-end":return 4}return 0}},at={name:"letter-spacing",initialValue:"0",prefix:!1,type:0,parse:function(A,e){return 20===e.type&&"normal"===e.value?0:17===e.type||15===e.type?e.number:0}};(function(A){A["NORMAL"]="normal",A["STRICT"]="strict"})(De||(De={}));var Bt,ct={name:"line-break",initialValue:"normal",prefix:!1,type:2,parse:function(A,e){switch(e){case"strict":return De.STRICT;case"normal":default:return De.NORMAL}}},ut={name:"line-height",initialValue:"normal",prefix:!1,type:4},lt=function(A,e){return VA(A)&&"normal"===A.value?1.2*e:17===A.type?e*A.number:ZA(A)?ee(A,e):e},gt={name:"list-style-image",initialValue:"none",type:0,prefix:!1,parse:function(A,e){return 20===e.type&&"none"===e.value?null:He.parse(A,e)}},wt={name:"list-style-position",initialValue:"outside",prefix:!1,type:2,parse:function(A,e){switch(e){case"inside":return 0;case"outside":default:return 1}}},dt={name:"list-style-type",initialValue:"none",prefix:!1,type:2,parse:function(A,e){switch(e){case"disc":return 0;case"circle":return 1;case"square":return 2;case"decimal":return 3;case"cjk-decimal":return 4;case"decimal-leading-zero":return 5;case"lower-roman":return 6;case"upper-roman":return 7;case"lower-greek":return 8;case"lower-alpha":return 9;case"upper-alpha":return 10;case"arabic-indic":return 11;case"armenian":return 12;case"bengali":return 13;case"cambodian":return 14;case"cjk-earthly-branch":return 15;case"cjk-heavenly-stem":return 16;case"cjk-ideographic":return 17;case"devanagari":return 18;case"ethiopic-numeric":return 19;case"georgian":return 20;case"gujarati":return 21;case"gurmukhi":return 22;case"hebrew":return 22;case"hiragana":return 23;case"hiragana-iroha":return 24;case"japanese-formal":return 25;case"japanese-informal":return 26;case"kannada":return 27;case"katakana":return 28;case"katakana-iroha":return 29;case"khmer":return 30;case"korean-hangul-formal":return 31;case"korean-hanja-formal":return 32;case"korean-hanja-informal":return 33;case"lao":return 34;case"lower-armenian":return 35;case"malayalam":return 36;case"mongolian":return 37;case"myanmar":return 38;case"oriya":return 39;case"persian":return 40;case"simp-chinese-formal":return 41;case"simp-chinese-informal":return 42;case"tamil":return 43;case"telugu":return 44;case"thai":return 45;case"tibetan":return 46;case"trad-chinese-formal":return 47;case"trad-chinese-informal":return 48;case"upper-armenian":return 49;case"disclosure-open":return 50;case"disclosure-closed":return 51;case"none":default:return-1}}},ht=function(A){return{name:"margin-"+A,initialValue:"0",prefix:!1,type:4}},Qt=ht("top"),ft=ht("right"),Ct=ht("bottom"),Ut=ht("left"),pt={name:"overflow",initialValue:"visible",prefix:!1,type:1,parse:function(A,e){return e.filter(VA).map((function(A){switch(A.value){case"hidden":return 1;case"scroll":return 2;case"clip":return 3;case"auto":return 4;case"visible":default:return 0}}))}},Ft={name:"overflow-wrap",initialValue:"normal",prefix:!1,type:2,parse:function(A,e){switch(e){case"break-word":return"break-word";case"normal":default:return"normal"}}},vt=function(A){return{name:"padding-"+A,initialValue:"0",prefix:!1,type:3,format:"length-percentage"}},mt=vt("top"),yt=vt("right"),Ht=vt("bottom"),Et=vt("left"),It={name:"text-align",initialValue:"left",prefix:!1,type:2,parse:function(A,e){switch(e){case"right":return 2;case"center":case"justify":return 1;case"left":default:return 0}}},bt={name:"position",initialValue:"static",prefix:!1,type:2,parse:function(A,e){switch(e){case"relative":return 1;case"absolute":return 2;case"fixed":return 3;case"sticky":return 4}return 0}},Kt={name:"text-shadow",initialValue:"none",type:1,prefix:!1,parse:function(A,e){return 1===e.length&&NA(e[0],"none")?[]:JA(e).map((function(e){for(var t={color:he.TRANSPARENT,offsetX:zA,offsetY:zA,blur:zA},n=0,r=0;r1?1:0],this.overflowWrap=cn(A,Ft,e.overflowWrap),this.paddingTop=cn(A,mt,e.paddingTop),this.paddingRight=cn(A,yt,e.paddingRight),this.paddingBottom=cn(A,Ht,e.paddingBottom),this.paddingLeft=cn(A,Et,e.paddingLeft),this.paintOrder=cn(A,nn,e.paintOrder),this.position=cn(A,bt,e.position),this.textAlign=cn(A,It,e.textAlign),this.textDecorationColor=cn(A,Rt,null!==(t=e.textDecorationColor)&&void 0!==t?t:e.color),this.textDecorationLine=cn(A,Nt,null!==(n=e.textDecorationLine)&&void 0!==n?n:e.textDecoration),this.textShadow=cn(A,Kt,e.textShadow),this.textTransform=cn(A,xt,e.textTransform),this.transform=cn(A,Lt,e.transform),this.transformOrigin=cn(A,Mt,e.transformOrigin),this.visibility=cn(A,Ot,e.visibility),this.webkitTextStrokeColor=cn(A,rn,e.webkitTextStrokeColor),this.webkitTextStrokeWidth=cn(A,on,e.webkitTextStrokeWidth),this.wordBreak=cn(A,kt,e.wordBreak),this.zIndex=cn(A,Gt,e.zIndex)}return A.prototype.isVisible=function(){return this.display>0&&this.opacity>0&&0===this.visibility},A.prototype.isTransparent=function(){return se(this.backgroundColor)},A.prototype.isTransformed=function(){return null!==this.transform},A.prototype.isPositioned=function(){return 0!==this.position},A.prototype.isPositionedWithZIndex=function(){return this.isPositioned()&&!this.zIndex.auto},A.prototype.isFloating=function(){return 0!==this.float},A.prototype.isInlineLevel=function(){return Zt(this.display,4)||Zt(this.display,33554432)||Zt(this.display,268435456)||Zt(this.display,536870912)||Zt(this.display,67108864)||Zt(this.display,134217728)},A}(),an=function(){return function(A,e){this.content=cn(A,jt,e.content),this.quotes=cn(A,An,e.quotes)}}(),Bn=function(){return function(A,e){this.counterIncrement=cn(A,zt,e.counterIncrement),this.counterReset=cn(A,qt,e.counterReset)}}(),cn=function(A,e,t){var n=new OA,r=null!==t&&"undefined"!==typeof t?t.toString():e.initialValue;n.write(r);var i=new kA(n.read());switch(e.type){case 2:var o=i.parseComponentValue();return e.parse(A,VA(o)?o.value:e.initialValue);case 0:return e.parse(A,i.parseComponentValue());case 1:return e.parse(A,i.parseComponentValues());case 4:return i.parseComponentValue();case 3:switch(e.format){case"angle":return te.parse(A,i.parseComponentValue());case"color":return oe.parse(A,i.parseComponentValue());case"image":return He.parse(A,i.parseComponentValue());case"length":var s=i.parseComponentValue();return YA(s)?s:zA;case"length-percentage":var a=i.parseComponentValue();return ZA(a)?a:zA;case"time":return Pt.parse(A,i.parseComponentValue())}break}},un=function(A,e){var t=function(A){var e=A.getAttribute("data-html2canvas-debug");switch(e){case"all":return 1;case"clone":return 2;case"parse":return 3;case"render":return 4;default:return 0}}(A);return 1===t||e===t},ln=function(){return function(A,e){this.context=A,this.textNodes=[],this.elements=[],this.flags=0,un(e,3),this.styles=new sn(A,window.getComputedStyle(e,null)),ur(e)&&(this.styles.animationDuration.some((function(A){return A>0}))&&(e.style.animationDuration="0s"),null!==this.styles.transform&&(e.style.transform="none")),this.bounds=a(this.context,e),un(e,4)&&(this.flags|=16)}}(),gn="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",wn="undefined"===typeof Uint8Array?[]:new Uint8Array(256),dn=0;dn=0){if(A<55296||A>56319&&A<=65535)return e=this.index[A>>5],e=(e<<2)+(31&A),this.data[e];if(A<=65535)return e=this.index[2048+(A-55296>>5)],e=(e<<2)+(31&A),this.data[e];if(A>11),e=this.index[e],e+=A>>5&63,e=this.index[e],e=(e<<2)+(31&A),this.data[e];if(A<=1114111)return this.data[this.highValueIndex]}return this.errorValue},A}(),fn="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",Cn="undefined"===typeof Uint8Array?[]:new Uint8Array(256),Un=0;Un>10),o%1024+56320)),(r+1===t||n.length>16384)&&(i+=String.fromCharCode.apply(String,n),n.length=0)}return i},En=function(A,e){var t=function(A){var e,t,n,r,i,o=.75*A.length,s=A.length,a=0;"="===A[A.length-1]&&(o--,"="===A[A.length-2]&&o--);var B="undefined"!==typeof ArrayBuffer&&"undefined"!==typeof Uint8Array&&"undefined"!==typeof Uint8Array.prototype.slice?new ArrayBuffer(o):new Array(o),c=Array.isArray(B)?B:new Uint8Array(B);for(e=0;e>4,c[a++]=(15&n)<<4|r>>2,c[a++]=(3&r)<<6|63&i;return B}(A),n=Array.isArray(t)?function(A){for(var e=A.length,t=[],n=0;n=55296&&r<=56319&&t=t)return{done:!0,value:null};var A="×";while(no.x||r.y>o.y;return o=r,0===e||s}));return A.body.removeChild(e),s}(document);return Object.defineProperty(Dn,"SUPPORT_WORD_BREAKING",{value:A}),A},get SUPPORT_SVG_DRAWING(){var A=function(A){var e=new Image,t=A.createElement("canvas"),n=t.getContext("2d");if(!n)return!1;e.src="data:image/svg+xml,";try{n.drawImage(e,0,0),t.toDataURL()}catch(r){return!1}return!0}(document);return Object.defineProperty(Dn,"SUPPORT_SVG_DRAWING",{value:A}),A},get SUPPORT_FOREIGNOBJECT_DRAWING(){var A="function"===typeof Array.from&&"function"===typeof window.fetch?function(A){var e=A.createElement("canvas");e.width=100,e.height=100;var t=e.getContext("2d");if(!t)return Promise.reject(!1);t.fillStyle="rgb(0, 255, 0)",t.fillRect(0,0,100,100);var n=new Image,r=e.toDataURL();n.src=r;var i=Ln(100,100,0,0,n);return t.fillStyle="red",t.fillRect(0,0,100,100),Sn(i).then((function(e){t.drawImage(e,0,0);var n=t.getImageData(0,0,100,100).data;t.fillStyle="red",t.fillRect(0,0,100,100);var i=A.createElement("div");return i.style.backgroundImage="url("+r+")",i.style.height="100px",xn(n)?Sn(Ln(100,100,0,0,i)):Promise.reject(!1)})).then((function(A){return t.drawImage(A,0,0),xn(t.getImageData(0,0,100,100).data)})).catch((function(){return!1}))}(document):Promise.resolve(!1);return Object.defineProperty(Dn,"SUPPORT_FOREIGNOBJECT_DRAWING",{value:A}),A},get SUPPORT_CORS_IMAGES(){var A=function(){return"undefined"!==typeof(new Image).crossOrigin}();return Object.defineProperty(Dn,"SUPPORT_CORS_IMAGES",{value:A}),A},get SUPPORT_RESPONSE_TYPE(){var A=function(){return"string"===typeof(new XMLHttpRequest).responseType}();return Object.defineProperty(Dn,"SUPPORT_RESPONSE_TYPE",{value:A}),A},get SUPPORT_CORS_XHR(){var A="withCredentials"in new XMLHttpRequest;return Object.defineProperty(Dn,"SUPPORT_CORS_XHR",{value:A}),A},get SUPPORT_NATIVE_TEXT_SEGMENTATION(){var A=!("undefined"===typeof Intl||!Intl.Segmenter);return Object.defineProperty(Dn,"SUPPORT_NATIVE_TEXT_SEGMENTATION",{value:A}),A}},Tn=function(){return function(A,e){this.text=A,this.bounds=e}}(),Mn=function(A,e){var t=e.ownerDocument;if(t){var n=t.createElement("html2canvaswrapper");n.appendChild(e.cloneNode(!0));var r=e.parentNode;if(r){r.replaceChild(n,e);var i=a(A,n);return n.firstChild&&r.replaceChild(n.firstChild,n),i}}return s.EMPTY},On=function(A,e,t){var n=A.ownerDocument;if(!n)throw new Error("Node has no owner document");var r=n.createRange();return r.setStart(A,e),r.setEnd(A,e+t),r},kn=function(A){if(Dn.SUPPORT_NATIVE_TEXT_SEGMENTATION){var e=new Intl.Segmenter(void 0,{granularity:"grapheme"});return Array.from(e.segment(A)).map((function(A){return A.segment}))}return function(A){var e,t=Kn(A),n=[];while(!(e=t.next()).done)e.value&&n.push(e.value.slice());return n}(A)},Gn=function(A,e){return 0!==e.letterSpacing?kn(A):function(A,e){if(Dn.SUPPORT_NATIVE_TEXT_SEGMENTATION){var t=new Intl.Segmenter(void 0,{granularity:"word"});return Array.from(t.segment(A)).map((function(A){return A.segment}))}return Vn(A,e)}(A,e)},Pn=[32,160,4961,65792,65793,4153,4241],Vn=function(A,e){var t,n=function(A,e){var t=B(A),n=rA(t,e),r=n[0],i=n[1],o=n[2],s=t.length,a=0,c=0;return{next:function(){if(c>=s)return{done:!0,value:null};var A="×";while(c0)if(Dn.SUPPORT_RANGE_BOUNDS){var r=On(n,o,e.length).getClientRects();if(r.length>1){var a=kn(e),B=0;a.forEach((function(e){i.push(new Tn(e,s.fromDOMRectList(A,On(n,B+o,e.length).getClientRects()))),B+=e.length}))}else i.push(new Tn(e,s.fromDOMRectList(A,r)))}else{var c=n.splitText(e.length);i.push(new Tn(e,Mn(A,n))),n=c}else Dn.SUPPORT_RANGE_BOUNDS||(n=n.splitText(e.length));o+=e.length})),i}(A,this.text,t,e)}}(),Nn=function(A,e){switch(e){case 1:return A.toLowerCase();case 3:return A.replace(_n,Xn);case 2:return A.toUpperCase();default:return A}},_n=/(^|\s|:|-|\(|\))([a-z])/g,Xn=function(A,e,t){return A.length>0?e+t.toUpperCase():A},Jn=function(A){function t(e,t){var n=A.call(this,e,t)||this;return n.src=t.currentSrc||t.src,n.intrinsicWidth=t.naturalWidth,n.intrinsicHeight=t.naturalHeight,n.context.cache.addImage(n.src),n}return e(t,A),t}(ln),Wn=function(A){function t(e,t){var n=A.call(this,e,t)||this;return n.canvas=t,n.intrinsicWidth=t.width,n.intrinsicHeight=t.height,n}return e(t,A),t}(ln),Yn=function(A){function t(e,t){var n=A.call(this,e,t)||this,r=new XMLSerializer,i=a(e,t);return t.setAttribute("width",i.width+"px"),t.setAttribute("height",i.height+"px"),n.svg="data:image/svg+xml,"+encodeURIComponent(r.serializeToString(t)),n.intrinsicWidth=t.width.baseVal.value,n.intrinsicHeight=t.height.baseVal.value,n.context.cache.addImage(n.svg),n}return e(t,A),t}(ln),Zn=function(A){function t(e,t){var n=A.call(this,e,t)||this;return n.value=t.value,n}return e(t,A),t}(ln),jn=function(A){function t(e,t){var n=A.call(this,e,t)||this;return n.start=t.start,n.reversed="boolean"===typeof t.reversed&&!0===t.reversed,n}return e(t,A),t}(ln),zn=[{type:15,flags:0,unit:"px",number:3}],qn=[{type:16,flags:0,number:50}],$n="password",Ar=function(A){function t(e,t){var n=A.call(this,e,t)||this;switch(n.type=t.type.toLowerCase(),n.checked=t.checked,n.value=function(A){var e=A.type===$n?new Array(A.value.length+1).join("•"):A.value;return 0===e.length?A.placeholder||"":e}(t),"checkbox"!==n.type&&"radio"!==n.type||(n.styles.backgroundColor=3739148031,n.styles.borderTopColor=n.styles.borderRightColor=n.styles.borderBottomColor=n.styles.borderLeftColor=2779096575,n.styles.borderTopWidth=n.styles.borderRightWidth=n.styles.borderBottomWidth=n.styles.borderLeftWidth=1,n.styles.borderTopStyle=n.styles.borderRightStyle=n.styles.borderBottomStyle=n.styles.borderLeftStyle=1,n.styles.backgroundClip=[0],n.styles.backgroundOrigin=[0],n.bounds=function(A){return A.width>A.height?new s(A.left+(A.width-A.height)/2,A.top,A.height,A.height):A.width0)n.textNodes.push(new Rn(e,i,n.styles));else if(cr(i))if(yr(i)&&i.assignedNodes)i.assignedNodes().forEach((function(t){return A(e,t,n,r)}));else{var s=ir(e,i);s.styles.isVisible()&&(sr(i,s,r)?s.flags|=4:ar(s.styles)&&(s.flags|=2),-1!==rr.indexOf(i.tagName)&&(s.flags|=8),n.elements.push(s),i.slot,i.shadowRoot?A(e,i.shadowRoot,s,r):vr(i)||hr(i)||mr(i)||A(e,i,s,r))}}(A,e,t,t),t},sr=function(A,e,t){return e.styles.isPositionedWithZIndex()||e.styles.opacity<1||e.styles.isTransformed()||Qr(A)&&t.styles.isTransparent()},ar=function(A){return A.isPositioned()||A.isFloating()},Br=function(A){return A.nodeType===Node.TEXT_NODE},cr=function(A){return A.nodeType===Node.ELEMENT_NODE},ur=function(A){return cr(A)&&"undefined"!==typeof A.style&&!lr(A)},lr=function(A){return"object"===i(A.className)},gr=function(A){return"LI"===A.tagName},wr=function(A){return"OL"===A.tagName},dr=function(A){return"INPUT"===A.tagName},hr=function(A){return"svg"===A.tagName},Qr=function(A){return"BODY"===A.tagName},fr=function(A){return"CANVAS"===A.tagName},Cr=function(A){return"VIDEO"===A.tagName},Ur=function(A){return"IMG"===A.tagName},pr=function(A){return"IFRAME"===A.tagName},Fr=function(A){return"STYLE"===A.tagName},vr=function(A){return"TEXTAREA"===A.tagName},mr=function(A){return"SELECT"===A.tagName},yr=function(A){return"SLOT"===A.tagName},Hr=function(A){return A.tagName.indexOf("-")>0},Er=function(){function A(){this.counters={}}return A.prototype.getCounterValue=function(A){var e=this.counters[A];return e&&e.length?e[e.length-1]:1},A.prototype.getCounterValues=function(A){var e=this.counters[A];return e||[]},A.prototype.pop=function(A){var e=this;A.forEach((function(A){return e.counters[A].pop()}))},A.prototype.parse=function(A){var e=this,t=A.counterIncrement,n=A.counterReset,r=!0;null!==t&&t.forEach((function(A){var t=e.counters[A.counter];t&&0!==A.increment&&(r=!1,t.length||t.push(1),t[Math.max(0,t.length-1)]+=A.increment)}));var i=[];return r&&n.forEach((function(A){var t=e.counters[A.counter];i.push(A.counter),t||(t=e.counters[A.counter]=[]),t.push(A.reset)})),i},A}(),Ir={integers:[1e3,900,500,400,100,90,50,40,10,9,5,4,1],values:["M","CM","D","CD","C","XC","L","XL","X","IX","V","IV","I"]},br={integers:[9e3,8e3,7e3,6e3,5e3,4e3,3e3,2e3,1e3,900,800,700,600,500,400,300,200,100,90,80,70,60,50,40,30,20,10,9,8,7,6,5,4,3,2,1],values:["Ք","Փ","Ւ","Ց","Ր","Տ","Վ","Ս","Ռ","Ջ","Պ","Չ","Ո","Շ","Ն","Յ","Մ","Ճ","Ղ","Ձ","Հ","Կ","Ծ","Խ","Լ","Ի","Ժ","Թ","Ը","Է","Զ","Ե","Դ","Գ","Բ","Ա"]},Kr={integers:[1e4,9e3,8e3,7e3,6e3,5e3,4e3,3e3,2e3,1e3,400,300,200,100,90,80,70,60,50,40,30,20,19,18,17,16,15,10,9,8,7,6,5,4,3,2,1],values:["י׳","ט׳","ח׳","ז׳","ו׳","ה׳","ד׳","ג׳","ב׳","א׳","ת","ש","ר","ק","צ","פ","ע","ס","נ","מ","ל","כ","יט","יח","יז","טז","טו","י","ט","ח","ז","ו","ה","ד","ג","ב","א"]},xr={integers:[1e4,9e3,8e3,7e3,6e3,5e3,4e3,3e3,2e3,1e3,900,800,700,600,500,400,300,200,100,90,80,70,60,50,40,30,20,10,9,8,7,6,5,4,3,2,1],values:["ჵ","ჰ","ჯ","ჴ","ხ","ჭ","წ","ძ","ც","ჩ","შ","ყ","ღ","ქ","ფ","ჳ","ტ","ს","რ","ჟ","პ","ო","ჲ","ნ","მ","ლ","კ","ი","თ","ჱ","ზ","ვ","ე","დ","გ","ბ","ა"]},Lr=function(A,e,t,n,r,i){return At?Or(A,r,i.length>0):n.integers.reduce((function(e,t,r){while(A>=t)A-=t,e+=n.values[r];return e}),"")+i},Sr=function(A,e,t,n){var r="";do{t||A--,r=n(A)+r,A/=e}while(A*e>=e);return r},Dr=function(A,e,t,n,r){var i=t-e+1;return(A<0?"-":"")+(Sr(Math.abs(A),i,n,(function(A){return c(Math.floor(A%i)+e)}))+r)},Tr=function(A,e,t){void 0===t&&(t=". ");var n=e.length;return Sr(Math.abs(A),n,!1,(function(A){return e[Math.floor(A%n)]}))+t},Mr=function(A,e,t,n,r,i){if(A<-9999||A>9999)return Or(A,4,r.length>0);var o=Math.abs(A),s=r;if(0===o)return e[0]+s;for(var a=0;o>0&&a<=4;a++){var B=o%10;0===B&&Zt(i,1)&&""!==s?s=e[B]+s:B>1||1===B&&0===a||1===B&&1===a&&Zt(i,2)||1===B&&1===a&&Zt(i,4)&&A>100||1===B&&a>1&&Zt(i,8)?s=e[B]+(a>0?t[a-1]:"")+s:1===B&&a>0&&(s=t[a-1]+s),o=Math.floor(o/10)}return(A<0?n:"")+s},Or=function(A,e,t){var n=t?". ":"",r=t?"、":"",i=t?", ":"",o=t?" ":"";switch(e){case 0:return"•"+o;case 1:return"◦"+o;case 2:return"◾"+o;case 5:var s=Dr(A,48,57,!0,n);return s.length<4?"0"+s:s;case 4:return Tr(A,"〇一二三四五六七八九",r);case 6:return Lr(A,1,3999,Ir,3,n).toLowerCase();case 7:return Lr(A,1,3999,Ir,3,n);case 8:return Dr(A,945,969,!1,n);case 9:return Dr(A,97,122,!1,n);case 10:return Dr(A,65,90,!1,n);case 11:return Dr(A,1632,1641,!0,n);case 12:case 49:return Lr(A,1,9999,br,3,n);case 35:return Lr(A,1,9999,br,3,n).toLowerCase();case 13:return Dr(A,2534,2543,!0,n);case 14:case 30:return Dr(A,6112,6121,!0,n);case 15:return Tr(A,"子丑寅卯辰巳午未申酉戌亥",r);case 16:return Tr(A,"甲乙丙丁戊己庚辛壬癸",r);case 17:case 48:return Mr(A,"零一二三四五六七八九","十百千萬","負",r,14);case 47:return Mr(A,"零壹貳參肆伍陸柒捌玖","拾佰仟萬","負",r,15);case 42:return Mr(A,"零一二三四五六七八九","十百千萬","负",r,14);case 41:return Mr(A,"零壹贰叁肆伍陆柒捌玖","拾佰仟萬","负",r,15);case 26:return Mr(A,"〇一二三四五六七八九","十百千万","マイナス",r,0);case 25:return Mr(A,"零壱弐参四伍六七八九","拾百千万","マイナス",r,7);case 31:return Mr(A,"영일이삼사오육칠팔구","십백천만","마이너스",i,7);case 33:return Mr(A,"零一二三四五六七八九","十百千萬","마이너스",i,0);case 32:return Mr(A,"零壹貳參四五六七八九","拾百千","마이너스",i,7);case 18:return Dr(A,2406,2415,!0,n);case 20:return Lr(A,1,19999,xr,3,n);case 21:return Dr(A,2790,2799,!0,n);case 22:return Dr(A,2662,2671,!0,n);case 22:return Lr(A,1,10999,Kr,3,n);case 23:return Tr(A,"あいうえおかきくけこさしすせそたちつてとなにぬねのはひふへほまみむめもやゆよらりるれろわゐゑをん");case 24:return Tr(A,"いろはにほへとちりぬるをわかよたれそつねならむうゐのおくやまけふこえてあさきゆめみしゑひもせす");case 27:return Dr(A,3302,3311,!0,n);case 28:return Tr(A,"アイウエオカキクケコサシスセソタチツテトナニヌネノハヒフヘホマミムメモヤユヨラリルレロワヰヱヲン",r);case 29:return Tr(A,"イロハニホヘトチリヌルヲワカヨタレソツネナラムウヰノオクヤマケフコエテアサキユメミシヱヒモセス",r);case 34:return Dr(A,3792,3801,!0,n);case 37:return Dr(A,6160,6169,!0,n);case 38:return Dr(A,4160,4169,!0,n);case 39:return Dr(A,2918,2927,!0,n);case 40:return Dr(A,1776,1785,!0,n);case 43:return Dr(A,3046,3055,!0,n);case 44:return Dr(A,3174,3183,!0,n);case 45:return Dr(A,3664,3673,!0,n);case 46:return Dr(A,3872,3881,!0,n);case 3:default:return Dr(A,48,57,!0,n)}},kr=function(){function A(A,e,t){if(this.context=A,this.options=t,this.scrolledElements=[],this.referenceElement=e,this.counters=new Er,this.quoteDepth=0,!e.ownerDocument)throw new Error("Cloned element does not have an owner document");this.documentElement=this.cloneNode(e.ownerDocument.documentElement,!1)}return A.prototype.toIFrame=function(A,e){var t=this,i=Pr(A,e);if(!i.contentWindow)return Promise.reject("Unable to find iframe window");var o=A.defaultView.pageXOffset,s=A.defaultView.pageYOffset,a=i.contentWindow,B=a.document,c=Nr(i).then((function(){return n(t,void 0,void 0,(function(){var A,t;return r(this,(function(n){switch(n.label){case 0:return this.scrolledElements.forEach(Yr),a&&(a.scrollTo(e.left,e.top),!/(iPad|iPhone|iPod)/g.test(navigator.userAgent)||a.scrollY===e.top&&a.scrollX===e.left||(this.context.logger.warn("Unable to restore scroll position for cloned document"),this.context.windowBounds=this.context.windowBounds.add(a.scrollX-e.left,a.scrollY-e.top,0,0))),A=this.options.onclone,t=this.clonedReferenceElement,"undefined"===typeof t?[2,Promise.reject("Error finding the "+this.referenceElement.nodeName+" in the cloned document")]:B.fonts&&B.fonts.ready?[4,B.fonts.ready]:[3,2];case 1:n.sent(),n.label=2;case 2:return/(AppleWebKit)/g.test(navigator.userAgent)?[4,Rr(B)]:[3,4];case 3:n.sent(),n.label=4;case 4:return"function"===typeof A?[2,Promise.resolve().then((function(){return A(B,t)})).then((function(){return i}))]:[2,i]}}))}))}));return B.open(),B.write(Jr(document.doctype)+""),Wr(this.referenceElement.ownerDocument,o,s),B.replaceChild(B.adoptNode(this.documentElement),B.documentElement),B.close(),c},A.prototype.createElementClone=function(A){if(un(A,2),fr(A))return this.createCanvasClone(A);if(Cr(A))return this.createVideoClone(A);if(Fr(A))return this.createStyleClone(A);var e=A.cloneNode(!1);return Ur(e)&&(Ur(A)&&A.currentSrc&&A.currentSrc!==A.src&&(e.src=A.currentSrc,e.srcset=""),"lazy"===e.loading&&(e.loading="eager")),Hr(e)?this.createCustomElementClone(e):e},A.prototype.createCustomElementClone=function(A){var e=document.createElement("html2canvascustomelement");return Xr(A.style,e),e},A.prototype.createStyleClone=function(A){try{var e=A.sheet;if(e&&e.cssRules){var t=[].slice.call(e.cssRules,0).reduce((function(A,e){return e&&"string"===typeof e.cssText?A+e.cssText:A}),""),n=A.cloneNode(!1);return n.textContent=t,n}}catch(r){if(this.context.logger.error("Unable to access cssRules property",r),"SecurityError"!==r.name)throw r}return A.cloneNode(!1)},A.prototype.createCanvasClone=function(A){var e;if(this.options.inlineImages&&A.ownerDocument){var t=A.ownerDocument.createElement("img");try{return t.src=A.toDataURL(),t}catch(a){this.context.logger.info("Unable to inline canvas contents, canvas is tainted",A)}}var n=A.cloneNode(!1);try{n.width=A.width,n.height=A.height;var r=A.getContext("2d"),i=n.getContext("2d");if(i)if(!this.options.allowTaint&&r)i.putImageData(r.getImageData(0,0,A.width,A.height),0,0);else{var o=null!==(e=A.getContext("webgl2"))&&void 0!==e?e:A.getContext("webgl");if(o){var s=o.getContextAttributes();!1===(null===s||void 0===s?void 0:s.preserveDrawingBuffer)&&this.context.logger.warn("Unable to clone WebGL context as it has preserveDrawingBuffer=false",A)}i.drawImage(A,0,0)}return n}catch(a){this.context.logger.info("Unable to clone canvas as it is tainted",A)}return n},A.prototype.createVideoClone=function(A){var e=A.ownerDocument.createElement("canvas");e.width=A.offsetWidth,e.height=A.offsetHeight;var t=e.getContext("2d");try{return t&&(t.drawImage(A,0,0,e.width,e.height),this.options.allowTaint||t.getImageData(0,0,e.width,e.height)),e}catch(r){this.context.logger.info("Unable to clone video as it is tainted",A)}var n=A.ownerDocument.createElement("canvas");return n.width=A.offsetWidth,n.height=A.offsetHeight,n},A.prototype.appendChildNode=function(A,e,t){cr(e)&&(function(A){return"SCRIPT"===A.tagName}(e)||e.hasAttribute("data-html2canvas-ignore")||"function"===typeof this.options.ignoreElements&&this.options.ignoreElements(e))||this.options.copyStyles&&cr(e)&&Fr(e)||A.appendChild(this.cloneNode(e,t))},A.prototype.cloneChildNodes=function(A,e,t){for(var n=this,r=A.shadowRoot?A.shadowRoot.firstChild:A.firstChild;r;r=r.nextSibling)if(cr(r)&&yr(r)&&"function"===typeof r.assignedNodes){var i=r.assignedNodes();i.length&&i.forEach((function(A){return n.appendChildNode(e,A,t)}))}else this.appendChildNode(e,r,t)},A.prototype.cloneNode=function(A,e){if(Br(A))return document.createTextNode(A.data);if(!A.ownerDocument)return A.cloneNode(!1);var t=A.ownerDocument.defaultView;if(t&&cr(A)&&(ur(A)||lr(A))){var n=this.createElementClone(A);n.style.transitionProperty="none";var r=t.getComputedStyle(A),i=t.getComputedStyle(A,":before"),o=t.getComputedStyle(A,":after");this.referenceElement===A&&ur(n)&&(this.clonedReferenceElement=n),Qr(n)&&zr(n);var s=this.counters.parse(new Bn(this.context,r)),a=this.resolvePseudoContent(A,n,i,pn.BEFORE);Hr(A)&&(e=!0),Cr(A)||this.cloneChildNodes(A,n,e),a&&n.insertBefore(a,n.firstChild);var B=this.resolvePseudoContent(A,n,o,pn.AFTER);return B&&n.appendChild(B),this.counters.pop(s),(r&&(this.options.copyStyles||lr(A))&&!pr(A)||e)&&Xr(r,n),0===A.scrollTop&&0===A.scrollLeft||this.scrolledElements.push([n,A.scrollLeft,A.scrollTop]),(vr(A)||mr(A))&&(vr(n)||mr(n))&&(n.value=A.value),n}return A.cloneNode(!1)},A.prototype.resolvePseudoContent=function(A,e,t,n){var r=this;if(t){var i=t.content,o=e.ownerDocument;if(o&&i&&"none"!==i&&"-moz-alt-content"!==i&&"none"!==t.display){this.counters.parse(new Bn(this.context,t));var s=new an(this.context,t),a=o.createElement("html2canvaspseudoelement");Xr(t,a),s.content.forEach((function(e){if(0===e.type)a.appendChild(o.createTextNode(e.value));else if(22===e.type){var t=o.createElement("img");t.src=e.value,t.style.opacity="1",a.appendChild(t)}else if(18===e.type){if("attr"===e.name){var n=e.values.filter(VA);n.length&&a.appendChild(o.createTextNode(A.getAttribute(n[0].value)||""))}else if("counter"===e.name){var i=e.values.filter(XA),B=i[0],c=i[1];if(B&&VA(B)){var u=r.counters.getCounterValue(B.value),l=c&&VA(c)?dt.parse(r.context,c.value):3;a.appendChild(o.createTextNode(Or(u,l,!1)))}}else if("counters"===e.name){var g=e.values.filter(XA),w=(B=g[0],g[1]);c=g[2];if(B&&VA(B)){var d=r.counters.getCounterValues(B.value),h=c&&VA(c)?dt.parse(r.context,c.value):3,Q=w&&0===w.type?w.value:"",f=d.map((function(A){return Or(A,h,!1)})).join(Q);a.appendChild(o.createTextNode(f))}}}else if(20===e.type)switch(e.value){case"open-quote":a.appendChild(o.createTextNode(en(s.quotes,r.quoteDepth++,!0)));break;case"close-quote":a.appendChild(o.createTextNode(en(s.quotes,--r.quoteDepth,!1)));break;default:a.appendChild(o.createTextNode(e.value))}})),a.className=Zr+" "+jr;var B=n===pn.BEFORE?" "+Zr:" "+jr;return lr(e)?e.className.baseValue+=B:e.className+=B,a}}},A.destroy=function(A){return!!A.parentNode&&(A.parentNode.removeChild(A),!0)},A}();(function(A){A[A["BEFORE"]=0]="BEFORE",A[A["AFTER"]=1]="AFTER"})(pn||(pn={}));var Gr,Pr=function(A,e){var t=A.createElement("iframe");return t.className="html2canvas-container",t.style.visibility="hidden",t.style.position="fixed",t.style.left="-10000px",t.style.top="0px",t.style.border="0",t.width=e.width.toString(),t.height=e.height.toString(),t.scrolling="no",t.setAttribute("data-html2canvas-ignore","true"),A.body.appendChild(t),t},Vr=function(A){return new Promise((function(e){A.complete?e():A.src?(A.onload=e,A.onerror=e):e()}))},Rr=function(A){return Promise.all([].slice.call(A.images,0).map(Vr))},Nr=function(A){return new Promise((function(e,t){var n=A.contentWindow;if(!n)return t("No window assigned for iframe");var r=n.document;n.onload=A.onload=function(){n.onload=A.onload=null;var t=setInterval((function(){r.body.childNodes.length>0&&"complete"===r.readyState&&(clearInterval(t),e(A))}),50)}}))},_r=["all","d","content"],Xr=function(A,e){for(var t=A.length-1;t>=0;t--){var n=A.item(t);-1===_r.indexOf(n)&&e.style.setProperty(n,A.getPropertyValue(n))}return e},Jr=function(A){var e="";return A&&(e+=""),e},Wr=function(A,e,t){A&&A.defaultView&&(e!==A.defaultView.pageXOffset||t!==A.defaultView.pageYOffset)&&A.defaultView.scrollTo(e,t)},Yr=function(A){var e=A[0],t=A[1],n=A[2];e.scrollLeft=t,e.scrollTop=n},Zr="___html2canvas___pseudoelement_before",jr="___html2canvas___pseudoelement_after",zr=function(A){qr(A,"."+Zr+':before{\n content: "" !important;\n display: none !important;\n}\n .'+jr+':after{\n content: "" !important;\n display: none !important;\n}')},qr=function(A,e){var t=A.ownerDocument;if(t){var n=t.createElement("style");n.textContent=e,A.appendChild(n)}},$r=function(){function A(){}return A.getOrigin=function(e){var t=A._link;return t?(t.href=e,t.href=t.href,t.protocol+t.hostname+t.port):"about:blank"},A.isSameOrigin=function(e){return A.getOrigin(e)===A._origin},A.setContext=function(e){A._link=e.document.createElement("a"),A._origin=A.getOrigin(e.location.href)},A._origin="about:blank",A}(),Ai=function(){function A(A,e){this.context=A,this._options=e,this._cache={}}return A.prototype.addImage=function(A){var e=Promise.resolve();return this.has(A)?e:si(A)||ri(A)?((this._cache[A]=this.loadImage(A)).catch((function(){})),e):e},A.prototype.match=function(A){return this._cache[A]},A.prototype.loadImage=function(A){return n(this,void 0,void 0,(function(){var e,t,n,i,o=this;return r(this,(function(r){switch(r.label){case 0:return e=$r.isSameOrigin(A),t=!ii(A)&&!0===this._options.useCORS&&Dn.SUPPORT_CORS_IMAGES&&!e,n=!ii(A)&&!e&&!si(A)&&"string"===typeof this._options.proxy&&Dn.SUPPORT_CORS_XHR&&!t,e||!1!==this._options.allowTaint||ii(A)||si(A)||n||t?(i=A,n?[4,this.proxy(i)]:[3,2]):[2];case 1:i=r.sent(),r.label=2;case 2:return this.context.logger.debug("Added image "+A.substring(0,256)),[4,new Promise((function(A,e){var n=new Image;n.onload=function(){return A(n)},n.onerror=e,(oi(i)||t)&&(n.crossOrigin="anonymous"),n.src=i,!0===n.complete&&setTimeout((function(){return A(n)}),500),o._options.imageTimeout>0&&setTimeout((function(){return e("Timed out ("+o._options.imageTimeout+"ms) loading image")}),o._options.imageTimeout)}))];case 3:return[2,r.sent()]}}))}))},A.prototype.has=function(A){return"undefined"!==typeof this._cache[A]},A.prototype.keys=function(){return Promise.resolve(Object.keys(this._cache))},A.prototype.proxy=function(A){var e=this,t=this._options.proxy;if(!t)throw new Error("No proxy defined");var n=A.substring(0,256);return new Promise((function(r,i){var o=Dn.SUPPORT_RESPONSE_TYPE?"blob":"text",s=new XMLHttpRequest;s.onload=function(){if(200===s.status)if("text"===o)r(s.response);else{var A=new FileReader;A.addEventListener("load",(function(){return r(A.result)}),!1),A.addEventListener("error",(function(A){return i(A)}),!1),A.readAsDataURL(s.response)}else i("Failed to proxy resource "+n+" with status code "+s.status)},s.onerror=i;var a=t.indexOf("?")>-1?"&":"?";if(s.open("GET",""+t+a+"url="+encodeURIComponent(A)+"&responseType="+o),"text"!==o&&s instanceof XMLHttpRequest&&(s.responseType=o),e._options.imageTimeout){var B=e._options.imageTimeout;s.timeout=B,s.ontimeout=function(){return i("Timed out ("+B+"ms) proxying "+n)}}s.send()}))},A}(),ei=/^data:image\/svg\+xml/i,ti=/^data:image\/.*;base64,/i,ni=/^data:image\/.*/i,ri=function(A){return Dn.SUPPORT_SVG_DRAWING||!ai(A)},ii=function(A){return ni.test(A)},oi=function(A){return ti.test(A)},si=function(A){return"blob"===A.substr(0,4)},ai=function(A){return"svg"===A.substr(-3).toLowerCase()||ei.test(A)},Bi=function(){function A(A,e){this.type=0,this.x=A,this.y=e}return A.prototype.add=function(e,t){return new A(this.x+e,this.y+t)},A}(),ci=function(A,e,t){return new Bi(A.x+(e.x-A.x)*t,A.y+(e.y-A.y)*t)},ui=function(){function A(A,e,t,n){this.type=1,this.start=A,this.startControl=e,this.endControl=t,this.end=n}return A.prototype.subdivide=function(e,t){var n=ci(this.start,this.startControl,e),r=ci(this.startControl,this.endControl,e),i=ci(this.endControl,this.end,e),o=ci(n,r,e),s=ci(r,i,e),a=ci(o,s,e);return t?new A(this.start,n,o,a):new A(a,s,i,this.end)},A.prototype.add=function(e,t){return new A(this.start.add(e,t),this.startControl.add(e,t),this.endControl.add(e,t),this.end.add(e,t))},A.prototype.reverse=function(){return new A(this.end,this.endControl,this.startControl,this.start)},A}(),li=function(A){return 1===A.type},gi=function(){return function(A){var e=A.styles,t=A.bounds,n=Ae(e.borderTopLeftRadius,t.width,t.height),r=n[0],i=n[1],o=Ae(e.borderTopRightRadius,t.width,t.height),s=o[0],a=o[1],B=Ae(e.borderBottomRightRadius,t.width,t.height),c=B[0],u=B[1],l=Ae(e.borderBottomLeftRadius,t.width,t.height),g=l[0],w=l[1],d=[];d.push((r+s)/t.width),d.push((g+c)/t.width),d.push((i+w)/t.height),d.push((a+u)/t.height);var h=Math.max.apply(Math,d);h>1&&(r/=h,i/=h,s/=h,a/=h,c/=h,u/=h,g/=h,w/=h);var Q=t.width-s,f=t.height-u,C=t.width-c,U=t.height-w,p=e.borderTopWidth,F=e.borderRightWidth,v=e.borderBottomWidth,m=e.borderLeftWidth,y=ee(e.paddingTop,A.bounds.width),H=ee(e.paddingRight,A.bounds.width),E=ee(e.paddingBottom,A.bounds.width),I=ee(e.paddingLeft,A.bounds.width);this.topLeftBorderDoubleOuterBox=r>0||i>0?wi(t.left+m/3,t.top+p/3,r-m/3,i-p/3,Gr.TOP_LEFT):new Bi(t.left+m/3,t.top+p/3),this.topRightBorderDoubleOuterBox=r>0||i>0?wi(t.left+Q,t.top+p/3,s-F/3,a-p/3,Gr.TOP_RIGHT):new Bi(t.left+t.width-F/3,t.top+p/3),this.bottomRightBorderDoubleOuterBox=c>0||u>0?wi(t.left+C,t.top+f,c-F/3,u-v/3,Gr.BOTTOM_RIGHT):new Bi(t.left+t.width-F/3,t.top+t.height-v/3),this.bottomLeftBorderDoubleOuterBox=g>0||w>0?wi(t.left+m/3,t.top+U,g-m/3,w-v/3,Gr.BOTTOM_LEFT):new Bi(t.left+m/3,t.top+t.height-v/3),this.topLeftBorderDoubleInnerBox=r>0||i>0?wi(t.left+2*m/3,t.top+2*p/3,r-2*m/3,i-2*p/3,Gr.TOP_LEFT):new Bi(t.left+2*m/3,t.top+2*p/3),this.topRightBorderDoubleInnerBox=r>0||i>0?wi(t.left+Q,t.top+2*p/3,s-2*F/3,a-2*p/3,Gr.TOP_RIGHT):new Bi(t.left+t.width-2*F/3,t.top+2*p/3),this.bottomRightBorderDoubleInnerBox=c>0||u>0?wi(t.left+C,t.top+f,c-2*F/3,u-2*v/3,Gr.BOTTOM_RIGHT):new Bi(t.left+t.width-2*F/3,t.top+t.height-2*v/3),this.bottomLeftBorderDoubleInnerBox=g>0||w>0?wi(t.left+2*m/3,t.top+U,g-2*m/3,w-2*v/3,Gr.BOTTOM_LEFT):new Bi(t.left+2*m/3,t.top+t.height-2*v/3),this.topLeftBorderStroke=r>0||i>0?wi(t.left+m/2,t.top+p/2,r-m/2,i-p/2,Gr.TOP_LEFT):new Bi(t.left+m/2,t.top+p/2),this.topRightBorderStroke=r>0||i>0?wi(t.left+Q,t.top+p/2,s-F/2,a-p/2,Gr.TOP_RIGHT):new Bi(t.left+t.width-F/2,t.top+p/2),this.bottomRightBorderStroke=c>0||u>0?wi(t.left+C,t.top+f,c-F/2,u-v/2,Gr.BOTTOM_RIGHT):new Bi(t.left+t.width-F/2,t.top+t.height-v/2),this.bottomLeftBorderStroke=g>0||w>0?wi(t.left+m/2,t.top+U,g-m/2,w-v/2,Gr.BOTTOM_LEFT):new Bi(t.left+m/2,t.top+t.height-v/2),this.topLeftBorderBox=r>0||i>0?wi(t.left,t.top,r,i,Gr.TOP_LEFT):new Bi(t.left,t.top),this.topRightBorderBox=s>0||a>0?wi(t.left+Q,t.top,s,a,Gr.TOP_RIGHT):new Bi(t.left+t.width,t.top),this.bottomRightBorderBox=c>0||u>0?wi(t.left+C,t.top+f,c,u,Gr.BOTTOM_RIGHT):new Bi(t.left+t.width,t.top+t.height),this.bottomLeftBorderBox=g>0||w>0?wi(t.left,t.top+U,g,w,Gr.BOTTOM_LEFT):new Bi(t.left,t.top+t.height),this.topLeftPaddingBox=r>0||i>0?wi(t.left+m,t.top+p,Math.max(0,r-m),Math.max(0,i-p),Gr.TOP_LEFT):new Bi(t.left+m,t.top+p),this.topRightPaddingBox=s>0||a>0?wi(t.left+Math.min(Q,t.width-F),t.top+p,Q>t.width+F?0:Math.max(0,s-F),Math.max(0,a-p),Gr.TOP_RIGHT):new Bi(t.left+t.width-F,t.top+p),this.bottomRightPaddingBox=c>0||u>0?wi(t.left+Math.min(C,t.width-m),t.top+Math.min(f,t.height-v),Math.max(0,c-F),Math.max(0,u-v),Gr.BOTTOM_RIGHT):new Bi(t.left+t.width-F,t.top+t.height-v),this.bottomLeftPaddingBox=g>0||w>0?wi(t.left+m,t.top+Math.min(U,t.height-v),Math.max(0,g-m),Math.max(0,w-v),Gr.BOTTOM_LEFT):new Bi(t.left+m,t.top+t.height-v),this.topLeftContentBox=r>0||i>0?wi(t.left+m+I,t.top+p+y,Math.max(0,r-(m+I)),Math.max(0,i-(p+y)),Gr.TOP_LEFT):new Bi(t.left+m+I,t.top+p+y),this.topRightContentBox=s>0||a>0?wi(t.left+Math.min(Q,t.width+m+I),t.top+p+y,Q>t.width+m+I?0:s-m+I,a-(p+y),Gr.TOP_RIGHT):new Bi(t.left+t.width-(F+H),t.top+p+y),this.bottomRightContentBox=c>0||u>0?wi(t.left+Math.min(C,t.width-(m+I)),t.top+Math.min(f,t.height+p+y),Math.max(0,c-(F+H)),u-(v+E),Gr.BOTTOM_RIGHT):new Bi(t.left+t.width-(F+H),t.top+t.height-(v+E)),this.bottomLeftContentBox=g>0||w>0?wi(t.left+m+I,t.top+U,Math.max(0,g-(m+I)),w-(v+E),Gr.BOTTOM_LEFT):new Bi(t.left+m+I,t.top+t.height-(v+E))}}();(function(A){A[A["TOP_LEFT"]=0]="TOP_LEFT",A[A["TOP_RIGHT"]=1]="TOP_RIGHT",A[A["BOTTOM_RIGHT"]=2]="BOTTOM_RIGHT",A[A["BOTTOM_LEFT"]=3]="BOTTOM_LEFT"})(Gr||(Gr={}));var wi=function(A,e,t,n,r){var i=(Math.sqrt(2)-1)/3*4,o=t*i,s=n*i,a=A+t,B=e+n;switch(r){case Gr.TOP_LEFT:return new ui(new Bi(A,B),new Bi(A,B-s),new Bi(a-o,e),new Bi(a,e));case Gr.TOP_RIGHT:return new ui(new Bi(A,e),new Bi(A+o,e),new Bi(a,B-s),new Bi(a,B));case Gr.BOTTOM_RIGHT:return new ui(new Bi(a,e),new Bi(a,e+s),new Bi(A+o,B),new Bi(A,B));case Gr.BOTTOM_LEFT:default:return new ui(new Bi(a,B),new Bi(a-o,B),new Bi(A,e+s),new Bi(A,e))}},di=function(A){return[A.topLeftBorderBox,A.topRightBorderBox,A.bottomRightBorderBox,A.bottomLeftBorderBox]},hi=function(A){return[A.topLeftPaddingBox,A.topRightPaddingBox,A.bottomRightPaddingBox,A.bottomLeftPaddingBox]},Qi=function(){return function(A,e,t){this.offsetX=A,this.offsetY=e,this.matrix=t,this.type=0,this.target=6}}(),fi=function(){return function(A,e){this.path=A,this.target=e,this.type=1}}(),Ci=function(){return function(A){this.opacity=A,this.type=2,this.target=6}}(),Ui=function(A){return 1===A.type},pi=function(A,e){return A.length===e.length&&A.some((function(A,t){return A===e[t]}))},Fi=function(){return function(A){this.element=A,this.inlineLevel=[],this.nonInlineLevel=[],this.negativeZIndex=[],this.zeroOrAutoZIndexOrTransformedOrOpacity=[],this.positiveZIndex=[],this.nonPositionedFloats=[],this.nonPositionedInlineLevel=[]}}(),vi=function(){function A(A,e){if(this.container=A,this.parent=e,this.effects=[],this.curves=new gi(this.container),this.container.styles.opacity<1&&this.effects.push(new Ci(this.container.styles.opacity)),null!==this.container.styles.transform){var t=this.container.bounds.left+this.container.styles.transformOrigin[0].number,n=this.container.bounds.top+this.container.styles.transformOrigin[1].number,r=this.container.styles.transform;this.effects.push(new Qi(t,n,r))}if(0!==this.container.styles.overflowX){var i=di(this.curves),o=hi(this.curves);pi(i,o)?this.effects.push(new fi(i,6)):(this.effects.push(new fi(i,2)),this.effects.push(new fi(o,4)))}}return A.prototype.getEffects=function(A){var e=-1===[2,3].indexOf(this.container.styles.position),t=this.parent,n=this.effects.slice(0);while(t){var r=t.effects.filter((function(A){return!Ui(A)}));if(e||0!==t.container.styles.position||!t.parent){if(n.unshift.apply(n,r),e=-1===[2,3].indexOf(t.container.styles.position),0!==t.container.styles.overflowX){var i=di(t.curves),o=hi(t.curves);pi(i,o)||n.unshift(new fi(o,6))}}else n.unshift.apply(n,r);t=t.parent}return n.filter((function(e){return Zt(e.target,A)}))},A}(),mi=function(A,e){for(var t=A instanceof jn?A.start:1,n=A instanceof jn&&A.reversed,r=0;rA.element.container.styles.zIndex.order?(g=e,!1):g>0})),c.negativeZIndex.splice(g,0,u)}else if(l>0){var w=0;c.positiveZIndex.some((function(A,e){return l>=A.element.container.styles.zIndex.order?(w=e+1,!1):w>0})),c.positiveZIndex.splice(w,0,u)}else c.zeroOrAutoZIndexOrTransformedOrOpacity.push(u)}else i.styles.isFloating()?c.nonPositionedFloats.push(u):c.nonPositionedInlineLevel.push(u);A(a,u,o?u:n,B)}else i.styles.isInlineLevel()?t.inlineLevel.push(a):t.nonInlineLevel.push(a),A(a,t,n,B);Zt(i.flags,8)&&mi(i,B)}))}(e,t,t,n),mi(e.container,n),t},Hi=function(A,e){switch(e){case 0:return Ii(A.topLeftBorderBox,A.topLeftPaddingBox,A.topRightBorderBox,A.topRightPaddingBox);case 1:return Ii(A.topRightBorderBox,A.topRightPaddingBox,A.bottomRightBorderBox,A.bottomRightPaddingBox);case 2:return Ii(A.bottomRightBorderBox,A.bottomRightPaddingBox,A.bottomLeftBorderBox,A.bottomLeftPaddingBox);case 3:default:return Ii(A.bottomLeftBorderBox,A.bottomLeftPaddingBox,A.topLeftBorderBox,A.topLeftPaddingBox)}},Ei=function(A,e){var t=[];return li(A)?t.push(A.subdivide(.5,!1)):t.push(A),li(e)?t.push(e.subdivide(.5,!0)):t.push(e),t},Ii=function(A,e,t,n){var r=[];return li(A)?r.push(A.subdivide(.5,!1)):r.push(A),li(t)?r.push(t.subdivide(.5,!0)):r.push(t),li(n)?r.push(n.subdivide(.5,!0).reverse()):r.push(n),li(e)?r.push(e.subdivide(.5,!1).reverse()):r.push(e),r},bi=function(A){var e=A.bounds,t=A.styles;return e.add(t.borderLeftWidth,t.borderTopWidth,-(t.borderRightWidth+t.borderLeftWidth),-(t.borderTopWidth+t.borderBottomWidth))},Ki=function(A){var e=A.styles,t=A.bounds,n=ee(e.paddingLeft,t.width),r=ee(e.paddingRight,t.width),i=ee(e.paddingTop,t.width),o=ee(e.paddingBottom,t.width);return t.add(n+e.borderLeftWidth,i+e.borderTopWidth,-(e.borderRightWidth+e.borderLeftWidth+n+r),-(e.borderTopWidth+e.borderBottomWidth+i+o))},xi=function(A,e,t){var n=function(A,e){return 0===A?e.bounds:2===A?Ki(e):bi(e)}(Ti(A.styles.backgroundOrigin,e),A),r=function(A,e){return 0===A?e.bounds:2===A?Ki(e):bi(e)}(Ti(A.styles.backgroundClip,e),A),i=Di(Ti(A.styles.backgroundSize,e),t,n),o=i[0],s=i[1],a=Ae(Ti(A.styles.backgroundPosition,e),n.width-o,n.height-s),B=Mi(Ti(A.styles.backgroundRepeat,e),a,i,n,r),c=Math.round(n.left+a[0]),u=Math.round(n.top+a[1]);return[B,c,u,o,s]},Li=function(A){return VA(A)&&A.value===Ee.AUTO},Si=function(A){return"number"===typeof A},Di=function(A,e,t){var n=e[0],r=e[1],i=e[2],o=A[0],s=A[1];if(!o)return[0,0];if(ZA(o)&&s&&ZA(s))return[ee(o,t.width),ee(s,t.height)];var a=Si(i);if(VA(o)&&(o.value===Ee.CONTAIN||o.value===Ee.COVER)){if(Si(i)){var B=t.width/t.height;return B0&&A.intrinsicHeight>0){var n=Ki(A),r=hi(e);this.path(r),this.ctx.save(),this.ctx.clip(),this.ctx.drawImage(t,0,0,A.intrinsicWidth,A.intrinsicHeight,n.left,n.top,n.width,n.height),this.ctx.restore()}},t.prototype.renderNodeContent=function(A){return n(this,void 0,void 0,(function(){var e,n,i,o,a,B,c,u,l,g,w,d,h,Q,f,C,U,p,F;return r(this,(function(r){switch(r.label){case 0:this.applyEffects(A.getEffects(4)),e=A.container,n=A.curves,i=e.styles,o=0,a=e.textNodes,r.label=1;case 1:return o0&&K>0&&(x=n.ctx.createRadialGradient(p+H,F+E,0,p+H,F+E,b),Ue(t.stops,2*b).forEach((function(A){return x.addColorStop(A.stop,ae(A.color))})),n.path(U),n.ctx.fillStyle=x,b!==K?(L=A.bounds.left+.5*A.bounds.width,S=A.bounds.top+.5*A.bounds.height,D=K/b,T=1/D,n.ctx.save(),n.ctx.translate(L,S),n.ctx.transform(1,0,0,D,0,0),n.ctx.translate(-L,-S),n.ctx.fillRect(p,T*(F-S)+S,v,m*T),n.ctx.restore()):n.ctx.fill())):(a=xi(A,e,[null,null,null]),U=a[0],H=a[1],E=a[2],v=a[3],m=a[4],B=pe(t.angle,v,m),c=B[0],u=B[1],l=B[2],g=B[3],w=B[4],d=document.createElement("canvas"),d.width=v,d.height=m,h=d.getContext("2d"),Q=h.createLinearGradient(u,g,l,w),Ue(t.stops,c).forEach((function(A){return Q.addColorStop(A.stop,ae(A.color))})),h.fillStyle=Q,h.fillRect(0,0,v,m),v>0&&m>0&&(f=n.ctx.createPattern(d,"repeat"),n.renderRepeat(U,f,H,E))),r.label=6;case 6:return e--,[2]}}))},n=this,i=0,o=A.styles.backgroundImage.slice(0).reverse(),a.label=1;case 1:return i0?2!==B.style?[3,5]:[4,this.renderDashedDottedBorder(B.color,B.width,o,A.curves,2)]:[3,11]):[3,13];case 4:return r.sent(),[3,11];case 5:return 3!==B.style?[3,7]:[4,this.renderDashedDottedBorder(B.color,B.width,o,A.curves,3)];case 6:return r.sent(),[3,11];case 7:return 4!==B.style?[3,9]:[4,this.renderDoubleBorder(B.color,B.width,o,A.curves)];case 8:return r.sent(),[3,11];case 9:return[4,this.renderSolidBorder(B.color,o,A.curves)];case 10:r.sent(),r.label=11;case 11:o++,r.label=12;case 12:return s++,[3,3];case 13:return[2]}}))}))},t.prototype.renderDashedDottedBorder=function(A,e,t,i,o){return n(this,void 0,void 0,(function(){var n,s,a,B,c,u,l,g,w,d,h,Q,f,C,U,p;return r(this,(function(r){return this.ctx.save(),n=function(A,e){switch(e){case 0:return Ei(A.topLeftBorderStroke,A.topRightBorderStroke);case 1:return Ei(A.topRightBorderStroke,A.bottomRightBorderStroke);case 2:return Ei(A.bottomRightBorderStroke,A.bottomLeftBorderStroke);case 3:default:return Ei(A.bottomLeftBorderStroke,A.topLeftBorderStroke)}}(i,t),s=Hi(i,t),2===o&&(this.path(s),this.ctx.clip()),li(s[0])?(a=s[0].start.x,B=s[0].start.y):(a=s[0].x,B=s[0].y),li(s[1])?(c=s[1].end.x,u=s[1].end.y):(c=s[1].x,u=s[1].y),l=0===t||2===t?Math.abs(a-c):Math.abs(B-u),this.ctx.beginPath(),3===o?this.formatPath(n):this.formatPath(s.slice(0,2)),g=e<3?3*e:2*e,w=e<3?2*e:e,3===o&&(g=e,w=e),d=!0,l<=2*g?d=!1:l<=2*g+w?(h=l/(2*g+w),g*=h,w*=h):(Q=Math.floor((l+w)/(g+w)),f=(l-Q*g)/(Q-1),C=(l-(Q+1)*g)/Q,w=C<=0||Math.abs(w-f)1?e-1:0),r=1;r2&&void 0!==arguments[2]?arguments[2]:{};return new Promise((function(n,i){var o=t.canvas,s=t.width,a=t.height,B=(t.destWidth,t.destHeight,t.x),c=void 0===B?0:B,u=t.y,l=void 0===u?0:u,g=t.preferToDataURL,w=uni.getSystemInfoSync(),d=w.pixelRatio,h=(0,r.default)((0,r.default)({},t),{},{canvasId:A,id:A,canvas:o,success:function(A){n(A.tempFilePath||A.filePath)},fail:function(A){i(A)}});if(o&&o.toDataURL&&g){uni.getSystemInfoSync().platform;if(c||l){var Q=uni.createOffscreenCanvas({type:"2d"}),f=Q.getContext("2d"),C=Math.floor(s*d),U=Math.floor(a*d);Q.width=C,Q.height=U;var p=o.createImage();p.onload=function(){f.drawImage(p,Math.floor(c*d),Math.floor(l*d),C,U,0,0,C,U);var A=Q.toDataURL();n(A),h.success&&h.success({tempFilePath:A})},p.src=o.toDataURL()}else{var F=o.toDataURL();n(F),h.success&&h.success({tempFilePath:F})}}else o&&o.toTempFilePath?o.toTempFilePath(h):uni.canvasToTempFilePath(h,e)}))}},"3da4":function(A,e,t){"use strict";t.r(e);var n=t("3e8b"),r=t("89fc");for(var i in r)["default"].indexOf(i)<0&&function(A){t.d(e,A,(function(){return r[A]}))}(i);t("f680");var o=t("828b"),s=Object(o["a"])(r["default"],n["b"],n["c"],!1,null,"262f2513",null,!1,n["a"],void 0);e["default"]=s.exports},"3e37":function(A,e,t){"use strict";var n=t("8bdb"),r=t("71e9"),i=t("7992"),o=t("0a8b"),s=t("4135"),a=t("5075"),B=t("a537");n({target:"Promise",stat:!0,forced:B},{allSettled:function(A){var e=this,t=o.f(e),n=t.resolve,B=t.reject,c=s((function(){var t=i(e.resolve),o=[],s=0,B=1;a(A,(function(A){var i=s++,a=!1;B++,r(t,e,A).then((function(A){a||(a=!0,o[i]={status:"fulfilled",value:A},--B||n(o))}),(function(A){a||(a=!0,o[i]={status:"rejected",reason:A},--B||n(o))}))})),--B||n(o)}));return c.error&&B(c.value),t.promise}})},"3e8b":function(A,e,t){"use strict";t.d(e,"b",(function(){return r})),t.d(e,"c",(function(){return i})),t.d(e,"a",(function(){return n}));var n={topnav:t("bd9e").default,orderinfo:t("9c45").default,lSignature:t("7d9d").default,uniPopup:t("785a").default},r=function(){var A=this,e=A.$createElement,t=A._self._c||e;return t("v-uni-view",[t("topnav",{attrs:{title:A.pageTitle},on:{tohome:function(e){arguments[0]=e=A.$handleEvent(e),A.tohome.apply(void 0,arguments)}}}),t("v-uni-view",{staticClass:"content"},[t("v-uni-view",{staticClass:"orderBox"},[t("orderinfo",{attrs:{info:A.order}})],1),t("v-uni-view",{staticClass:"pageTitle"},[A._v("协议签名")]),t("v-uni-view",{staticClass:"signatureBox"},[t("v-uni-view",{staticClass:"signatureItem"},[t("v-uni-view",{staticClass:"signatureTitle"},[A._v("护工签名")]),t("v-uni-view",{staticClass:"signatureArea"},[A.paramedicSignImage?A._e():t("l-signature",{ref:"paramedicSignatureRef",attrs:{penColor:A.penColor,penSize:A.penSize,openSmooth:A.openSmooth,boundingBox:A.boundingBox,disableScroll:!0,"data-type":"paramedic"},on:{save:function(e){arguments[0]=e=A.$handleEvent(e),A.onSignatureSave.apply(void 0,arguments)}}}),A.paramedicSignImage?t("v-uni-image",{staticClass:"signatureImage",attrs:{src:A.paramedicSignImage,mode:"aspectFit"}}):A._e()],1),t("v-uni-view",{staticClass:"signatureActions"},[A.paramedicSignImage?A._e():t("v-uni-text",{staticClass:"btnClear",on:{click:function(e){arguments[0]=e=A.$handleEvent(e),A.clearSignature("paramedic")}}},[A._v("清除")]),A.paramedicSignImage?A._e():t("v-uni-text",{staticClass:"btnSave",on:{click:function(e){arguments[0]=e=A.$handleEvent(e),A.saveSignature("paramedic")}}},[A._v("保存")]),A.paramedicSignImage?t("v-uni-text",{staticClass:"btnResign",on:{click:function(e){arguments[0]=e=A.$handleEvent(e),A.resignSignature("paramedic")}}},[A._v("重新签名")]):A._e()],1)],1),t("v-uni-view",{staticClass:"signatureItem"},[t("v-uni-view",{staticClass:"signatureTitle"},[A._v("客户签名")]),t("v-uni-view",{staticClass:"signatureArea"},[A.customerSignImage?A._e():t("l-signature",{ref:"customerSignatureRef",attrs:{penColor:A.penColor,penSize:A.penSize,openSmooth:A.openSmooth,boundingBox:A.boundingBox,disableScroll:!0,"data-type":"customer"},on:{save:function(e){arguments[0]=e=A.$handleEvent(e),A.onSignatureSave.apply(void 0,arguments)}}}),A.customerSignImage?t("v-uni-image",{staticClass:"signatureImage",attrs:{src:A.customerSignImage,mode:"aspectFit"}}):A._e()],1),t("v-uni-view",{staticClass:"signatureActions"},[A.customerSignImage?A._e():t("v-uni-text",{staticClass:"btnClear",on:{click:function(e){arguments[0]=e=A.$handleEvent(e),A.clearSignature("customer")}}},[A._v("清除")]),A.customerSignImage?A._e():t("v-uni-text",{staticClass:"btnSave",on:{click:function(e){arguments[0]=e=A.$handleEvent(e),A.saveSignature("customer")}}},[A._v("保存")]),A.customerSignImage?t("v-uni-text",{staticClass:"btnResign",on:{click:function(e){arguments[0]=e=A.$handleEvent(e),A.resignSignature("customer")}}},[A._v("重新签名")]):A._e()],1)],1),t("v-uni-view",{staticClass:"signatureItem"},[t("v-uni-view",{staticClass:"signatureTitle"},[A._v("公司签名")]),t("v-uni-view",{staticClass:"signatureArea"},[A.companySignImage?A._e():t("l-signature",{ref:"companySignatureRef",attrs:{penColor:A.penColor,penSize:A.penSize,openSmooth:A.openSmooth,boundingBox:A.boundingBox,disableScroll:!0,"data-type":"company"},on:{save:function(e){arguments[0]=e=A.$handleEvent(e),A.onSignatureSave.apply(void 0,arguments)}}}),A.companySignImage?t("v-uni-image",{staticClass:"signatureImage",attrs:{src:A.companySignImage,mode:"aspectFit"}}):A._e()],1),t("v-uni-view",{staticClass:"signatureActions"},[A.companySignImage?A._e():t("v-uni-text",{staticClass:"btnClear",on:{click:function(e){arguments[0]=e=A.$handleEvent(e),A.clearSignature("company")}}},[A._v("清除")]),A.companySignImage?A._e():t("v-uni-text",{staticClass:"btnSave",on:{click:function(e){arguments[0]=e=A.$handleEvent(e),A.saveSignature("company")}}},[A._v("保存")]),A.companySignImage?t("v-uni-text",{staticClass:"btnResign",on:{click:function(e){arguments[0]=e=A.$handleEvent(e),A.resignSignature("company")}}},[A._v("重新签名")]):A._e()],1)],1)],1),t("v-uni-view",{staticClass:"previewSection"},[t("v-uni-view",{staticClass:"previewBtn",on:{click:function(e){arguments[0]=e=A.$handleEvent(e),A.previewAgreement.apply(void 0,arguments)}}},[A._v("预览协议")])],1),A.agreementImage?t("v-uni-view",{staticClass:"agreementPreviewSection"},[t("v-uni-view",{staticClass:"sectionTitle"},[A._v("协议预览")]),t("v-uni-view",{staticClass:"agreementImageContainer"},[t("v-uni-image",{staticClass:"agreementImage",attrs:{src:A.agreementImage,mode:"aspectFit"},on:{click:function(e){arguments[0]=e=A.$handleEvent(e),A.viewAgreementFullscreen.apply(void 0,arguments)}}})],1),t("v-uni-view",{staticClass:"agreementActions"},[t("v-uni-text",{staticClass:"btnRegenerate",on:{click:function(e){arguments[0]=e=A.$handleEvent(e),A.regenerateAgreement.apply(void 0,arguments)}}},[A._v("重新生成协议")])],1)],1):A._e()],1),t("v-uni-view",{staticClass:"bottom"},[t("v-uni-view",{staticClass:"bottomLeft"}),t("v-uni-view",{staticClass:"bottomRight"},[t("v-uni-view",{staticClass:"btnCancel btn",on:{click:function(e){arguments[0]=e=A.$handleEvent(e),A.bindCancel.apply(void 0,arguments)}}},[A._v("取消")]),t("v-uni-view",{staticClass:"btnSubmit btn",on:{click:function(e){arguments[0]=e=A.$handleEvent(e),A.bindsubmitFun.apply(void 0,arguments)}}},[A._v("提交")])],1)],1),t("uni-popup",{ref:"agreementPopup",staticClass:"fullscreen-popup",attrs:{type:"center","mask-click":!0,"safe-area":!1}},[t("v-uni-view",{staticClass:"agreementPopup"},[t("v-uni-view",{staticClass:"popupHeader"},[t("v-uni-text",{staticClass:"popupTitle"},[A._v("协议预览")]),t("v-uni-text",{staticClass:"popupClose",on:{click:function(e){arguments[0]=e=A.$handleEvent(e),A.closeAgreementPopup.apply(void 0,arguments)}}},[A._v("×")])],1),t("v-uni-view",{staticClass:"popupContent"},[A.agreementHtml?t("div",{staticClass:"agreementContent",domProps:{innerHTML:A._s(A.agreementHtml)}}):t("v-uni-view",{staticClass:"noAgreement"},[t("v-uni-text",[A._v("还未上传协议,请联系管理员补充协议")])],1)],1),A.agreementHtml?t("v-uni-view",{staticClass:"popupFooter"},[t("v-uni-view",{staticClass:"btnGenerate",on:{click:function(e){arguments[0]=e=A.$handleEvent(e),A.generateAgreementImage.apply(void 0,arguments)}}},[A._v("生成协议")])],1):A._e()],1)],1)],1)},i=[]},4085:function(A,e,t){"use strict";var n=t("8bdb"),r=t("85c1");n({global:!0,forced:r.globalThis!==r},{globalThis:r})},4135:function(A,e,t){"use strict";A.exports=function(A){try{return{error:!1,value:A()}}catch(e){return{error:!0,value:e}}}},"41da":function(A,e,t){"use strict";t("6a54");var n=t("f5bd").default;Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0,t("bf0f"),t("2797"),t("dc8a"),t("23f4"),t("7d2f"),t("5c47"),t("9c4e"),t("ab80"),t("2c10"),t("a1c1"),t("9db6"),t("fd3c"),t("08eb"),t("18f7"),t("3e37"),t("de6c"),t("8f71"),t("4626"),t("5ac7"),t("0c26"),t("c223"),t("795c");var r=n(t("2cf9")),i=t("8f30"),o={data:function(){return{pageTitle:"签订协议",order:{},id:"",paramedicSignPath:"",customerSignPath:"",companySignPath:"",paramedicSignId:"",customerSignId:"",companySignId:"",paramedicSignImage:"",customerSignImage:"",companySignImage:"",agreementImage:"",agreementId:"",canPreview:!1,agreementHtml:"",file_id:"",penColor:"#000",penSize:3,openSmooth:!0,boundingBox:!0}},onLoad:function(A){var e=this;e.id=A.id,i.getOrderInfo(A.id,(function(A){e.order=A.data,e.checkCanPreview()}),(function(A){}))},methods:{tohome:function(){uni.navigateTo({url:"../../../../pages/index/index"})},bindCancel:function(A){uni.navigateBack({})},bindsubmitFun:function(A){var e=this;return e.paramedicSignId&&e.customerSignId&&e.companySignId?e.file_id?void uni.showModal({title:"提示",content:"确认签订协议?",confirmText:"确认",confirmColor:"#000",cancelColor:"#eee",success:function(A){A.confirm&&e.submitAgreement()}}):(i.alert("请先生成协议文件"),!1):(i.alert("请完成所有签名"),!1)},clearSignature:function(A){var e=A+"SignatureRef";this.$refs[e]&&(this.$refs[e].clear(),this.setSignPath(A,""))},saveSignature:function(A){var e=this,t=A+"SignatureRef";this.$refs[t]?(console.log("开始保存签名:",A),this.$refs[t].canvasToTempFilePath({quality:.8,success:function(t){console.log("签名保存成功:",A,t),e.setSignPath(A,t.tempFilePath),console.log("开始上传签名到接口:",A,t.tempFilePath),e.uploadSignature(t.tempFilePath,A,(function(t){console.log("签名上传完成:",A,t),e.setSignPath(A,"");var n={paramedic:"护工",customer:"客户",company:"公司"}[A]||A;i.alert(n+"签名上传成功")}))},fail:function(e){console.log("签名保存失败:",A,e),i.alert(A+"签名保存失败")}})):console.log("签名组件引用不存在:",t)},resignSignature:function(A){switch(console.log("重新签名:",A),A){case"paramedic":this.paramedicSignId="",this.paramedicSignImage="";break;case"customer":this.customerSignId="",this.customerSignImage="";break;case"company":this.companySignId="",this.companySignImage="";break}this.setSignPath(A,"");var e={paramedic:"护工",customer:"客户",company:"公司"}[A]||A;i.alert(e+"签名已清除,请重新签名")},onSignatureSave:function(A){var e=A.currentTarget.dataset.type;console.log("签名保存事件:",e)},setSignPath:function(A,e){switch(A){case"paramedic":this.paramedicSignPath=e;break;case"customer":this.customerSignPath=e;break;case"company":this.companySignPath=e;break}},uploadSignature:function(A,e,t){var n=this,r=uni.getStorageSync("userInfo");r&&r.access_token?(console.log("开始上传签名:",e,A),uni.uploadFile({url:i.HOST+"manager/upload-image",filePath:A,name:"file",formData:{token:r.access_token,folder:"public"},success:function(A){if(console.log("签名上传响应:",A),"200"==A.statusCode)try{var r=JSON.parse(A.data);switch(console.log("签名上传成功:",r),e){case"paramedic":n.paramedicSignId=r.id,n.paramedicSignImage=i.HOST+r.public_path;break;case"customer":n.customerSignId=r.id,n.customerSignImage=i.HOST+r.public_path;break;case"company":n.companySignId=r.id,n.companySignImage=i.HOST+r.public_path;break}t(r.id)}catch(o){console.log("解析上传响应失败:",o),i.alert("签名上传失败:响应格式错误")}else console.log("签名上传失败,状态码:",A.statusCode),i.alert("签名上传失败:"+A.statusCode)},fail:function(A){console.log("签名上传失败:",A),i.alert("签名上传失败:网络错误")}})):i.alert("用户未登录或token无效")},submitAgreement:function(){this.paramedicSignId&&this.customerSignId&&this.companySignId&&this.file_id?i.request({api:"manager/create-order-agreements",method:"POST",data:{order_id:this.id,paramedic_id:this.order.paramedic_id,paramedic_sign_id:this.paramedicSignId,customer_id:this.order.customer_id,customer_sign_id:this.customerSignId,company_sign_id:this.companySignId,file_id:this.file_id},utilSuccess:function(A){i.alert("协议签订成功"),uni.navigateTo({url:"/pages/order/order"})},utilFail:function(A){i.alert(A)}}):i.alert("请完成所有签名并生成协议文件")},previewAgreement:function(){this.paramedicSignId&&this.customerSignId&&this.companySignId?this.order.project&&this.order.project.content?(this.processAgreementContent(),this.$refs.agreementPopup.open()):i.alert("还未上传协议,请联系管理员补充协议"):i.alert("请先完成所有签名")},regenerateAgreement:function(){var A=this;uni.showModal({title:"提示",content:"确定要重新生成协议吗?",confirmText:"确定",confirmColor:"#000",cancelColor:"#eee",success:function(e){e.confirm&&(A.agreementImage="",A.file_id="",A.agreementId="",A.previewAgreement())}})},viewAgreementFullscreen:function(){this.agreementImage&&uni.previewImage({current:this.agreementImage,urls:[this.agreementImage],zIndex:9999})},checkCanPreview:function(){this.order.file_id?(this.canPreview=!0,this.agreementImage=i.HOST+this.order.file_path,this.agreementId=this.order.file_id):(this.canPreview=!1,this.agreementImage="",this.agreementId="")},closeAgreementPopup:function(){this.$refs.agreementPopup.close()},generateAgreement:function(){var A=this;uni.showModal({title:"提示",content:"确定要重新生成协议吗?",confirmText:"确定",confirmColor:"#000",cancelColor:"#eee",success:function(e){e.confirm&&(A.submitAgreement(),i.alert("协议已重新生成,请刷新页面查看"),A.closeAgreementPopup())}})},processAgreementContent:function(){var A=this.order.project.content,e={paramedic_sign:this.paramedicSignImage?'护工签名'):"",customer_sign:this.customerSignImage?'客户签名'):"",company_sign:this.companySignImage?'公司签名'):"",manage_sign:this.companySignImage?'公司签名'):"",paramedic_sign2:this.paramedicSignImage?'护工签名'):"",customer_sign2:this.customerSignImage?'客户签名'):"",manage_sign2:this.companySignImage?'公司签名'):"",paramedic_sign_id:this.paramedicSignId||"",customer_sign_id:this.customerSignId||"",company_sign_id:this.companySignId||"",days:this.order.days||"",price:this.order.price||"",total:this.order.total||"",range_mobile:this.order.project&&this.order.project.range_mobile||"",complaint_mobile:this.order.project&&this.order.project.complaint_mobile||"",today_date:function(){var A=new Date;return A.getFullYear()+"年"+(A.getMonth()+1)+"月"+A.getDate()+"日"}()};Object.keys(e).forEach((function(t){var n=new RegExp("\\{([^}]*".concat(t,"[^}]*)\\}"),"g"),r=A.match(n);r&&r.length>0&&(A=A.replace(n,e[t]))})),A=A.replace(/text-wrap-mode:\s*nowrap;?/gi,""),A=A.replace(/text-wrap-mode:\s*nowrap/gi,""),this.agreementHtml=A},generateAgreementImage:function(){var A=this;console.log("开始生成协议图片,协议HTML内容:",A.agreementHtml),console.log("协议HTML内容长度:",A.agreementHtml?A.agreementHtml.length:0);var e=document.createElement("div");function t(){var t=e.scrollWidth,n=e.scrollHeight;console.log("准备生成Canvas,容器尺寸:",t,"x",n),console.log("容器内容:",e.innerHTML),console.log("容器可见性:",e.style.visibility),console.log("容器位置:",e.style.left,e.style.top),(0,r.default)(e,{backgroundColor:"#ffffff",scale:1,useCORS:!1,allowTaint:!1,logging:!1,removeContainer:!1,foreignObjectRendering:!1,imageTimeout:15e3,width:Math.max(1e3,t),height:Math.max(1500,n),scrollX:0,scrollY:0}).then((function(t){t.toBlob((function(t){var n=new File([t],"agreement.png",{type:"image/png"});e.parentNode&&document.body.removeChild(e),A.uploadAgreementImage(n)}),"image/png",.9)})).catch((function(t){var n="协议生成失败";n=t.message.includes("Tainted")?"由于图片跨域问题,html2canvas无法生成协议,将使用备用方法":t.message.includes("SecurityError")?"由于安全限制,html2canvas无法生成协议,将使用备用方法":"html2canvas生成失败,将使用备用方法生成协议图片",i.alert(n),e.parentNode&&document.body.removeChild(e),A.generateAgreementImageFallback()}))}e.innerHTML=A.agreementHtml,console.log("临时容器内容:",e.innerHTML),console.log("临时容器文本内容:",e.textContent),e.style.position="absolute",e.style.left="-9999px",e.style.top="-9999px",e.style.zIndex="-1",e.style.width="1000px",e.style.minHeight="1500px",e.style.overflow="visible",e.style.padding="50px",e.style.fontSize="16px",e.style.lineHeight="1.8",e.style.backgroundColor="#ffffff",e.style.border="1px solid #ddd",e.style.color="#000000",e.style.fontFamily="Arial, sans-serif",e.style.wordWrap="break-word",e.style.wordBreak="break-all",e.style.overflowWrap="break-word",document.body.appendChild(e),setTimeout((function(){var A=e.scrollWidth,n=e.scrollHeight;(A>1e3||n>1500)&&(e.style.width=Math.max(1e3,A)+"px",e.style.minHeight=Math.max(1500,n)+"px");var r=e.querySelectorAll("img");r.forEach((function(A,e){A.src&&(A.src=A.src.replace("//storage/","/storage/"),A.src.startsWith("http")||(A.src=i.HOST+A.src.replace(i.HOST,""))),A.style.display="inline-block",A.style.width="50px",A.style.height="20px",A.style.margin="0 5px",A.style.verticalAlign="middle",A.style.border="1px solid #ddd",A.style.backgroundColor="#f9f9f9",A.loading="eager",A.onerror=function(){var e=document.createElement("div");e.style.display="inline-block",e.style.width="50px",e.style.height="20px",e.style.margin="0 5px",e.style.border="1px solid #ddd",e.style.backgroundColor="#f9f9f9",e.style.textAlign="center",e.style.lineHeight="20px",e.style.fontSize="12px",e.style.color="#999",e.textContent="签名",A.parentNode.replaceChild(e,A)},A.onload=function(){}}));(function(){var A=Array.from(r).map((function(A){return new Promise((function(e,t){if(A.complete&&A.naturalWidth>0&&A.naturalHeight>0)e(A);else{A.onload=function(){e(A)},A.onerror=function(){t(A)};var n=A.src;A.src="",setTimeout((function(){A.src=n}),50)}}))}));Promise.allSettled(A).then((function(A){A.filter((function(A){return"fulfilled"===A.status})).length;setTimeout(t,800)}))})()}),100)},generateAgreementImageFallback:function(){var A=this,e=document.createElement("div");e.innerHTML=A.agreementHtml,e.style.position="absolute",e.style.left="-9999px",e.style.width="1000px",e.style.visibility="hidden",document.body.appendChild(e);var t=Math.max(1e3,e.scrollWidth),n=Math.max(1500,e.scrollHeight);document.body.removeChild(e);var r=document.createElement("canvas"),i=r.getContext("2d");r.width=t,r.height=n,i.fillStyle="#ffffff",i.fillRect(0,0,r.width,r.height),i.fillStyle="#000000",i.font="18px Arial",i.textAlign="left";var o=document.createElement("div");o.innerHTML=A.agreementHtml;var s=o.textContent||o.innerText||"",a=s.split("\n"),B=60,c=r.width-100;a.forEach((function(A,e){if(A.trim())if(i.measureText(A).width>c){for(var t="",n=0;nc?(t.trim()&&(i.fillText(t.trim(),50,B),B+=30),t=A[n]):t+=A[n]}t.trim()&&(i.fillText(t.trim(),50,B),B+=30)}else i.fillText(A,50,B),B+=30;else B+=15})),B+=50,i.font="16px Arial",i.fillStyle="#666",A.paramedicSignId&&(i.fillText("护工签名ID: ".concat(A.paramedicSignId),50,B),B+=30),A.customerSignId&&(i.fillText("客户签名ID: ".concat(A.customerSignId),50,B),B+=30),A.companySignId&&(i.fillText("公司签名ID: ".concat(A.companySignId),50,B),B+=30),B+=20;var u=new Date,l="生成时间: ".concat(u.getFullYear(),"-").concat(String(u.getMonth()+1).padStart(2,"0"),"-").concat(String(u.getDate()).padStart(2,"0")," ").concat(String(u.getHours()).padStart(2,"0"),":").concat(String(u.getMinutes()).padStart(2,"0"));i.fillText(l,50,B),r.toBlob((function(e){var t=new File([e],"agreement.png",{type:"image/png"});A.uploadAgreementImage(t)}),"image/png",.9),document.body.removeChild(o)},uploadAgreementImage:function(A){var e=this,t=uni.getStorageSync("userInfo");if(t&&t.access_token){var n=new FileReader;n.onload=function(A){var n=A.target.result;uni.uploadFile({url:i.HOST+"manager/upload-image",filePath:n,name:"file",formData:{token:t.access_token,folder:"public"},success:function(A){if("200"==A.statusCode)try{var t=JSON.parse(A.data);console.log("协议图片上传成功:",t),e.agreementImage=i.HOST+t.public_path,e.file_id=t.id,e.closeAgreementPopup(),i.alert("协议生成成功")}catch(n){console.log("解析上传响应失败:",n),i.alert("协议生成失败:响应格式错误")}else i.alert("协议生成失败:"+A.statusCode)},fail:function(A){console.log("协议图片上传失败:",A),i.alert("协议生成失败:网络错误")}})},n.readAsDataURL(A)}else i.alert("用户未登录或token无效")}}};e.default=o},"4c29":function(A,e){},5075:function(A,e,t){"use strict";var n=t("ae5c"),r=t("71e9"),i=t("e7e3"),o=t("52df"),s=t("81a7"),a=t("1fc1"),B=t("1297"),c=t("d67c"),u=t("5112"),l=t("7e91"),g=TypeError,w=function(A,e){this.stopped=A,this.result=e},d=w.prototype;A.exports=function(A,e,t){var h,Q,f,C,U,p,F,v=t&&t.that,m=!(!t||!t.AS_ENTRIES),y=!(!t||!t.IS_RECORD),H=!(!t||!t.IS_ITERATOR),E=!(!t||!t.INTERRUPTED),I=n(e,v),b=function(A){return h&&l(h,"normal",A),new w(!0,A)},K=function(A){return m?(i(A),E?I(A[0],A[1],b):I(A[0],A[1])):E?I(A,b):I(A)};if(y)h=A.iterator;else if(H)h=A;else{if(Q=u(A),!Q)throw new g(o(A)+" is not iterable");if(s(Q)){for(f=0,C=a(A);C>f;f++)if(U=K(A[f]),U&&B(d,U))return U;return new w(!1)}h=c(A,Q)}p=y?A.next:h.next;while(!(F=r(p,h)).done){try{U=K(F.value)}catch(x){l(h,"throw",x)}if("object"==typeof U&&U&&B(d,U))return U}return new w(!1)}},"51f5":function(A,e,t){"use strict";t.r(e);var n=t("cde5"),r=t.n(n);for(var i in n)["default"].indexOf(i)<0&&function(A){t.d(e,A,(function(){return n[A]}))}(i);e["default"]=r.a},5213:function(A,e,t){var n=t("c86c");e=n(!1),e.push([A.i,'@charset "UTF-8";\n/**\n * 这里是uni-app内置的常用样式变量\n *\n * uni-app 官方扩展插件及插件市场(https://ext.dcloud.net.cn)上很多三方插件均使用了这些样式变量\n * 如果你是插件开发者,建议你使用scss预处理,并在插件代码中直接使用这些变量(无需 import 这个文件),方便用户通过搭积木的方式开发整体风格一致的App\n *\n */\n/**\n * 如果你是App开发者(插件使用者),你可以通过修改这些变量来定制自己的插件主题,实现自定义主题功能\n *\n * 如果你的项目同样使用了scss预处理,你也可以直接在你的 scss 代码中使用如下变量,同时无需 import 这个文件\n */\n/* 颜色变量 */\n/* 行为相关颜色 */\n/* 文字基本颜色 */\n/* 背景颜色 */\n/* 边框颜色 */\n/* 尺寸变量 */\n/* 文字尺寸 */\n/* 图片尺寸 */\n/* Border Radius */\n/* 水平间距 */\n/* 垂直间距 */\n/* 透明度 */\n/* 文章场景相关 */.lime-signature[data-v-f4eb2412],\n.lime-signature__canvas[data-v-f4eb2412]{position:relative;width:100%;height:100%}.mask[data-v-f4eb2412]{position:absolute;left:0;right:0;bottom:0;top:0}.offscreen[data-v-f4eb2412]{position:fixed;top:0;pointer-events:none;left:9999px}',""]),A.exports=e},"55dd":function(A,e,t){"use strict";t.d(e,"b",(function(){return n})),t.d(e,"c",(function(){return r})),t.d(e,"a",(function(){}));var n=function(){var A=this,e=A.$createElement,t=A._self._c||e;return A.show?t("v-uni-view",{ref:"limeSignature",staticClass:"lime-signature",style:[A.canvasStyle,A.styles]},[A.useCanvas2d?t("v-uni-canvas",{staticClass:"lime-signature__canvas",attrs:{id:A.canvasId,type:"2d",disableScroll:A.disableScroll},on:{touchstart:function(e){arguments[0]=e=A.$handleEvent(e),A.touchStart.apply(void 0,arguments)},touchmove:function(e){arguments[0]=e=A.$handleEvent(e),A.touchMove.apply(void 0,arguments)},touchend:function(e){arguments[0]=e=A.$handleEvent(e),A.touchEnd.apply(void 0,arguments)}}}):t("v-uni-canvas",{staticClass:"lime-signature__canvas",attrs:{disableScroll:A.disableScroll,"canvas-id":A.canvasId,id:A.canvasId,width:A.canvasWidth,height:A.canvasHeight},on:{touchstart:function(e){arguments[0]=e=A.$handleEvent(e),A.touchStart.apply(void 0,arguments)},touchmove:function(e){arguments[0]=e=A.$handleEvent(e),A.touchMove.apply(void 0,arguments)},touchend:function(e){arguments[0]=e=A.$handleEvent(e),A.touchEnd.apply(void 0,arguments)},mousedown:function(e){arguments[0]=e=A.$handleEvent(e),A.touchStart.apply(void 0,arguments)},mousemove:function(e){arguments[0]=e=A.$handleEvent(e),A.touchMove.apply(void 0,arguments)},mouseup:function(e){arguments[0]=e=A.$handleEvent(e),A.touchEnd.apply(void 0,arguments)}}}),A.showOffscreen?t("v-uni-canvas",{staticClass:"offscreen",style:"width:"+A.offscreenSize[0]+"px;height:"+A.offscreenSize[1]+"px",attrs:{"canvas-id":"offscreen",id:"offscreen",width:A.offscreenSize[0],height:A.offscreenSize[1]}}):A._e(),A.showMask?t("v-uni-view",{staticClass:"mask",on:{touchstart:function(e){arguments[0]=e=A.$handleEvent(e),A.touchStart.apply(void 0,arguments)},touchmove:function(e){e.stopPropagation(),e.preventDefault(),arguments[0]=e=A.$handleEvent(e),A.touchMove.apply(void 0,arguments)},touchend:function(e){arguments[0]=e=A.$handleEvent(e),A.touchEnd.apply(void 0,arguments)}}}):A._e()],1):A._e()},r=[]},"562d":function(A,e,t){"use strict";var n=t("8bdb"),r=t("bb80"),i=t("e34c"),o=RangeError,s=String.fromCharCode,a=String.fromCodePoint,B=r([].join),c=!!a&&1!==a.length;n({target:"String",stat:!0,arity:1,forced:c},{fromCodePoint:function(A){var e,t=[],n=arguments.length,r=0;while(n>r){if(e=+arguments[r++],i(e,1114111)!==e)throw new o(e+" is not a valid code point");t[r]=e<65536?s(e):s(55296+((e-=65536)>>10),e%1024+56320)}return B(t,"")}})},"59be":function(A,e,t){"use strict";t("6a54"),Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var n={name:"orderinfo",props:{info:{type:Object}},data:function(){return{}}};e.default=n},"5c4c":function(A,e,t){"use strict";t("6a54");var n=t("f5bd").default;Object.defineProperty(e,"__esModule",{value:!0}),e.base64ToPath=function(A){var e=/data:image\/(\w+);base64,(.*)/.exec(A)||[],t=(0,r.default)(e,3);t[1],t[2];return new Promise((function(A,e){}))},e.canIUseCanvas2d=function(){return!1},e.compareVersion=i,e.getRect=function(A){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},t="boundingClientRect",n=e.context,r=e.type,i=void 0===r?t:r;return new Promise((function(e,r){var o=uni.createSelectorQuery().in(n).select(A),s=function(A){A?e(A):r()};i==t?o[i](s).exec():o[i]({node:!0,size:!0,rect:!0},s).exec()}))},e.isTransparent=function(A){if("transparent"===A)return!0;if(A.startsWith("rgba")){var e=A.match(/\d+(\.\d+)?/g);if(null!==e){var t=parseFloat(e[3]);if(0===t)return!0}}return!1},e.requestAnimationFrame=void 0,e.sleep=function(A){return new Promise((function(e){return setTimeout(e,A)}))},e.wrapEvent=void 0;var r=n(t("5de6"));function i(A,e){A=A.split("."),e=e.split(".");var t=Math.max(A.length,e.length);while(A.lengthi)return 1;if(r1?arguments[1]:void 0)}})},"7a88":function(A,e,t){"use strict";var n=t("f1ad"),r=t.n(n);r.a},"7d9d":function(A,e,t){"use strict";t.r(e);var n=t("55dd"),r=t("51f5");for(var i in r)["default"].indexOf(i)<0&&function(A){t.d(e,A,(function(){return r[A]}))}(i);var o=t("5e21");for(var i in o)["default"].indexOf(i)<0&&function(A){t.d(e,A,(function(){return o[A]}))}(i);t("7a88");var s=t("828b");r["default"].__module="sign";var a=Object(s["a"])(o["default"],n["b"],n["c"],!1,null,"f4eb2412",null,!1,n["a"],r["default"]);e["default"]=a.exports},"85aa":function(A,e,t){var n=t("c86c");e=n(!1),e.push([A.i,"uni-view[data-v-56df567b]{display:flex;flex-direction:column}.orderLine[data-v-56df567b]{flex-direction:row;margin-top:%?16?%;align-items:center}.orderTxt[data-v-56df567b]{font-family:SourceHanSansCN-Normal;font-size:%?28?%;color:#333;line-height:%?36?%}.iconback[data-v-56df567b]{width:%?40?%;height:%?40?%}.navTab[data-v-56df567b]{background:#fafafa;box-shadow:0 1px 0 0 #e6e6e6;flex-direction:row;justify-content:space-around;top:%?140?%;left:0;position:fixed;z-index:999;width:%?750?%}.tabItem[data-v-56df567b]{align-items:center;position:relative}.orderGe[data-v-56df567b]{color:#d8d8d8;margin-left:%?16?%;margin-right:%?16?%;font-size:%?28?%}.tabTxt[data-v-56df567b]{font-size:%?28?%;color:#666;text-align:left;height:%?70?%;line-height:%?70?%}.tabItemOn[data-v-56df567b]{color:#0dc99e}.tabItemOnLine[data-v-56df567b]{background:#0dc99e;height:%?4?%;width:%?100?%;position:absolute;bottom:%?-2?%;left:0}.orderBox[data-v-56df567b]{padding-top:%?16?%;padding-bottom:%?16?%;padding-left:%?30?%;padding-right:%?30?%;background:#fff;margin-top:%?20?%}.orderHeader[data-v-56df567b]{flex-direction:row;justify-content:space-between;padding-bottom:%?16?%;border-bottom:%?1?% solid #e4e4e4;align-items:center}.orderBody[data-v-56df567b]{border-bottom:%?1?% solid #e4e4e4;padding-bottom:%?16?%}.orderStatus[data-v-56df567b]{font-family:PingFangSC-Regular;font-size:%?28?%;color:#fd8c30;text-align:left;line-height:%?40?%}.orderNo[data-v-56df567b]{font-family:SourceHanSansCN-Normal;font-size:%?24?%;color:#999;line-height:%?24?%}.orderTag[data-v-56df567b]{background:rgba(13,201,158,.1);border-radius:2px;width:%?100?%;padding:%?4?% %?10?%;margin-right:%?10?%}.orderTagTxt[data-v-56df567b]{font-family:SourceHanSansCN-Normal;font-size:%?20?%;text-align:center}.tag1[data-v-56df567b]{color:#0dc99e}.tag2[data-v-56df567b]{color:#4a90e2}.tag3[data-v-56df567b]{color:#fd8c30}.tagBox2[data-v-56df567b]{background:rgba(60,145,245,.1)}.tagBox3[data-v-56df567b]{background:rgba(253,140,48,.1)}.orderPrice[data-v-56df567b]{flex-direction:row;margin-top:%?16?%;border-bottom:%?1?% solid #e4e4e4;padding-bottom:%?16?%}.priceBox[data-v-56df567b]{margin-right:%?30?%;flex-direction:row;align-items:center}.priceTitle[data-v-56df567b]{font-family:SourceHanSansCN-Normal;font-size:%?24?%;color:#999;line-height:%?28?%}.priceInfo[data-v-56df567b]{font-family:Roboto-Medium;font-size:%?24?%;color:#333;text-align:left;line-height:%?40?%}.orderFooter[data-v-56df567b]{margin-top:%?16?%;padding-bottom:%?16?%;flex-direction:row;justify-content:flex-end}.btn[data-v-56df567b]{border-radius:%?27?%;width:%?108?%;margin-left:%?20?%}.btnCancel[data-v-56df567b]{background:#fff;border:%?1?% solid #0dc99e;align-items:center}.btnTxt[data-v-56df567b]{font-family:SourceHanSansCN-Normal;font-size:%?24?%;text-align:center;height:%?54?%;line-height:%?54?%}.btnCancelTxt[data-v-56df567b]{color:#0dc99e}.btnConfirm[data-v-56df567b]{background:#0dc99e;border:%?1?% solid #0dc99e;align-items:center}.btnConfirmTxt[data-v-56df567b]{color:#fff}.icon[data-v-56df567b]{color:#52d5a6;margin-right:%?12?%;font-size:%?28?%}.navRight[data-v-56df567b]{flex-direction:row}",""]),A.exports=e},"897c":function(A,e,t){"use strict";var n=t("6b21"),r=t("db06");A.exports=!n&&!r&&"object"==typeof window&&"object"==typeof document},"89fc":function(A,e,t){"use strict";t.r(e);var n=t("41da"),r=t.n(n);for(var i in n)["default"].indexOf(i)<0&&function(A){t.d(e,A,(function(){return n[A]}))}(i);e["default"]=r.a},"9c45":function(A,e,t){"use strict";t.r(e);var n=t("ecd4"),r=t("e00a");for(var i in r)["default"].indexOf(i)<0&&function(A){t.d(e,A,(function(){return r[A]}))}(i);t("2748");var o=t("828b"),s=Object(o["a"])(r["default"],n["b"],n["c"],!1,null,"56df567b",null,!1,n["a"],void 0);e["default"]=s.exports},a537:function(A,e,t){"use strict";var n=t("69e4"),r=t("29ba"),i=t("1052").CONSTRUCTOR;A.exports=i||!r((function(A){n.all(A).then(void 0,(function(){}))}))},a578:function(A,e,t){"use strict";var n=t("8bdb"),r=t("f298");n({target:"String",proto:!0},{repeat:r})},aa35:function(A,e,t){var n=t("c86c");e=n(!1),e.push([A.i,'@charset "UTF-8";\n/**\n * 这里是uni-app内置的常用样式变量\n *\n * uni-app 官方扩展插件及插件市场(https://ext.dcloud.net.cn)上很多三方插件均使用了这些样式变量\n * 如果你是插件开发者,建议你使用scss预处理,并在插件代码中直接使用这些变量(无需 import 这个文件),方便用户通过搭积木的方式开发整体风格一致的App\n *\n */\n/**\n * 如果你是App开发者(插件使用者),你可以通过修改这些变量来定制自己的插件主题,实现自定义主题功能\n *\n * 如果你的项目同样使用了scss预处理,你也可以直接在你的 scss 代码中使用如下变量,同时无需 import 这个文件\n */\n/* 颜色变量 */\n/* 行为相关颜色 */\n/* 文字基本颜色 */\n/* 背景颜色 */\n/* 边框颜色 */\n/* 尺寸变量 */\n/* 文字尺寸 */\n/* 图片尺寸 */\n/* Border Radius */\n/* 水平间距 */\n/* 垂直间距 */\n/* 透明度 */\n/* 文章场景相关 */[data-v-262f2513] .nav{z-index:998!important}.content[data-v-262f2513]{padding:%?20?%;padding-bottom:%?120?%}.pageTitle[data-v-262f2513]{font-size:%?32?%;font-weight:700;margin:%?30?% 0 %?20?% 0;color:#333}.signatureBox[data-v-262f2513]{background:#fff;border-radius:%?12?%;padding:%?20?%}.signatureItem[data-v-262f2513]{margin-bottom:%?30?%}.signatureTitle[data-v-262f2513]{font-size:%?28?%;color:#333;margin-bottom:%?15?%}.signatureImage[data-v-262f2513]{width:100%;height:%?200?%;border:1px solid #ddd;border-radius:%?8?%;background-color:#f9f9f9}.signatureArea[data-v-262f2513]{height:%?200?%;border:1px solid #ddd;border-radius:%?8?%;background-color:#fff;position:relative}.signatureActions[data-v-262f2513]{margin-top:%?15?%;display:flex;justify-content:space-between}.btnClear[data-v-262f2513], .btnSave[data-v-262f2513], .btnResign[data-v-262f2513]{padding:%?10?% %?20?%;border-radius:%?6?%;font-size:%?24?%}.btnClear[data-v-262f2513]{color:#666;background:#f0f0f0}.btnSave[data-v-262f2513]{color:#fff;background:#0dc99e}.btnResign[data-v-262f2513]{color:#fff;background:#ff9500}.previewSection[data-v-262f2513]{margin-top:%?30?%;padding:%?20?%;background:#fff;border-radius:%?12?%;display:flex;justify-content:center}.previewBtn[data-v-262f2513]{background-color:#0dc99e;color:#fff;padding:10px 20px;border-radius:6px;border:none;font-size:16px;cursor:pointer;margin-right:10px}.previewBtn[data-v-262f2513]:hover{background-color:#0bb08a}.agreementPreviewSection[data-v-262f2513]{margin-top:20px;padding:20px;background-color:#f8f9fa;border-radius:8px;z-index:9999}.sectionTitle[data-v-262f2513]{font-size:%?28?%;font-weight:700;color:#333;margin-bottom:%?15?%}.agreementImageContainer[data-v-262f2513]{height:%?300?%;display:flex;justify-content:center;align-items:center;background-color:#f9f9f9;border:1px solid #ddd;border-radius:%?8?%}.agreementImage[data-v-262f2513]{width:100%;height:100%;border-radius:%?8?%}.agreementActions[data-v-262f2513]{margin-top:%?15?%;display:flex;justify-content:flex-end}.btnRegenerate[data-v-262f2513]{padding:%?10?% %?20?%;border-radius:%?6?%;font-size:%?24?%;color:#fff;background:#ff9500}\n/* 弹窗样式 */.fullscreen-popup[data-v-262f2513]{width:100vw!important;height:100vh!important;max-width:none!important;left:0!important;top:0!important;-webkit-transform:none!important;transform:none!important}\n/* 预览协议弹窗样式 */.fullscreen-popup[data-v-262f2513]{position:fixed;top:0;left:0;width:100%;height:100%;background-color:rgba(0,0,0,.8);z-index:9999;display:flex;flex-direction:column;justify-content:center;align-items:center}.agreementPopup[data-v-262f2513]{width:100vw;height:100vh;background:#fff;display:flex;flex-direction:column;position:relative;z-index:9999}.popupHeader[data-v-262f2513]{display:flex;justify-content:space-between;align-items:center;padding:%?20?%;border-bottom:1px solid #eee;background:#f8f8f8;flex-shrink:0}.popupTitle[data-v-262f2513]{font-size:%?32?%;font-weight:700;color:#333}.popupClose[data-v-262f2513]{font-size:%?40?%;color:#999;cursor:pointer;padding:%?10?% %?15?%;background:#f0f0f0;border-radius:50%;width:%?60?%;height:%?60?%;display:flex;align-items:center;justify-content:center;transition:all .3s ease}.popupClose[data-v-262f2513]:hover{background:#e0e0e0;color:#666}.popupContent[data-v-262f2513]{flex:1;overflow-y:auto;padding:%?20?%}.agreementContent[data-v-262f2513]{font-size:%?28?%;line-height:1.6;color:#333;word-wrap:break-word;word-break:break-all;overflow-wrap:break-word}.agreementContent *[data-v-262f2513]{max-width:100%!important;box-sizing:border-box!important}.agreementContent img[data-v-262f2513]{max-width:50px!important;height:20px!important;display:inline-block!important;margin:0 5px!important;vertical-align:middle!important}.agreementContent p[data-v-262f2513], .agreementContent div[data-v-262f2513]{margin:%?10?% 0!important;padding:0!important}.agreementContent span[data-v-262f2513]{word-break:break-all!important}.noAgreement[data-v-262f2513]{text-align:center;padding:%?40?%;color:#999;font-size:%?28?%}.popupFooter[data-v-262f2513]{padding:%?20?%;border-top:1px solid #eee;display:flex;justify-content:center;flex-shrink:0}.btnGenerate[data-v-262f2513]{padding:%?15?% %?30?%;border-radius:%?8?%;font-size:%?28?%;color:#fff;background:#0dc99e}.bottom[data-v-262f2513]{background:#fff;box-shadow:0 %?-2?% %?12?% 0 rgba(0,0,0,.16),inset 0 %?1?% 0 0 #e4e4e4;width:100%;height:%?100?%;position:fixed;bottom:0;left:0;display:flex;justify-content:space-between}.bottom .bottomLeft[data-v-262f2513]{display:flex;align-items:center}.bottom .bottomRight[data-v-262f2513]{display:flex;flex:1}.btn[data-v-262f2513]{width:50%;line-height:%?100?%;text-align:center;line-height:%?100?%;font-family:SourceHanSansCN-Medium;font-size:%?32?%;letter-spacing:0}.btnCancel[data-v-262f2513]{color:#666;background:#f0f0f0}.btnSubmit[data-v-262f2513]{color:#fff;background:#0dc99e}',""]),A.exports=e},c3c6:function(A,e,t){var n=t("aa35");n.__esModule&&(n=n.default),"string"===typeof n&&(n=[[A.i,n,""]]),n.locals&&(A.exports=n.locals);var r=t("967d").default;r("37b24796",n,!0,{sourceMap:!1,shadowMode:!1})},cde5:function(A,e,t){"use strict";t("6a54");var n=t("f5bd").default;Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var r=n(t("4c29")),i=r.default;e.default=i},d823:function(A,e,t){"use strict";var n=t("f5bd").default;Object.defineProperty(e,"__esModule",{value:!0}),e.default=e.Signature=void 0;var r=n(t("fcf3"));function i(A,e){var t=Object.keys(A);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(A);e&&(n=n.filter((function(e){return Object.getOwnPropertyDescriptor(A,e).enumerable}))),t.push.apply(t,n)}return t}function o(A){for(var e=1;arguments.length>e;e++){var t=null!=arguments[e]?arguments[e]:{};e%2?i(Object(t),!0).forEach((function(e){u(A,e,t[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(A,Object.getOwnPropertyDescriptors(t)):i(Object(t)).forEach((function(e){Object.defineProperty(A,e,Object.getOwnPropertyDescriptor(t,e))}))}return A}function s(A){return s="function"==typeof Symbol&&"symbol"==(0,r.default)(Symbol.iterator)?function(A){return(0,r.default)(A)}:function(A){return A&&"function"==typeof Symbol&&A.constructor===Symbol&&A!==Symbol.prototype?"symbol":(0,r.default)(A)},s(A)}function a(A,e){if(!(A instanceof e))throw new TypeError("Cannot call a class as a function")}function B(A,e){for(var t=0;e.length>t;t++){var n=e[t];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(A,n.key,n)}}function c(A,e,t){return e&&B(A.prototype,e),t&&B(A,t),Object.defineProperty(A,"prototype",{writable:!1}),A}function u(A,e,t){return e in A?Object.defineProperty(A,e,{value:t,enumerable:!0,configurable:!0,writable:!0}):A[e]=t,A}function l(A,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");A.prototype=Object.create(e&&e.prototype,{constructor:{value:A,writable:!0,configurable:!0}}),Object.defineProperty(A,"prototype",{writable:!1}),e&&w(A,e)}function g(A){return g=Object.setPrototypeOf?Object.getPrototypeOf:function(A){return A.__proto__||Object.getPrototypeOf(A)},g(A)}function w(A,e){return w=Object.setPrototypeOf||function(A,e){return A.__proto__=e,A},w(A,e)}function d(A,e){if(e&&("object"==(0,r.default)(e)||"function"==typeof e))return e;if(void 0!==e)throw new TypeError("Derived constructors may only return object or undefined");return function(A){if(void 0===A)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return A}(A)}function h(A){var e=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(A){return!1}}();return function(){var t,n=g(A);if(e){var r=g(this).constructor;t=Reflect.construct(n,arguments,r)}else t=n.apply(this,arguments);return d(this,t)}}t("dc8a"),t("01a2"),t("8f71"),t("bf0f"),t("9a2c"),t("aa9c"),t("2797"),t("a644"),t("a03a"),t("6a54"),t("e39c"),t("844d"),t("18f7"),t("de6c"),t("7a76"),t("c9b5"),t("8a8d"),t("926e"),t("7996"),t("6a88"),t("dd2b"),t("e838"),t("64aa"),t("1851"),t("f7a5");var Q=function(A){var e=s(A);return null!==A&&"object"===e||"function"===e},f={}.toString,C=function(A,e){return f.call(A)==="[object "+e+"]"},U=function(A){return C(A,"String")},p=function(A){return C(A,"Number")},F=function(A){return C(A,"Function")},v=function(){function A(){a(this,A),this.__events=void 0,this.__events={}}return c(A,[{key:"on",value:function(A,e){if(A&&e){var t=this.__events[A]||[];t.push(e),this.__events[A]=t}}},{key:"emit",value:function(A,e){var t=this;if(Q(A)&&(A=(e=A)&&e.type),A){var n=this.__events[A];n&&n.length&&n.forEach((function(A){A.call(t,e)}))}}},{key:"off",value:function(A,e){var t=this.__events,n=t[A];if(n&&n.length)if(e)for(var r=0,i=n.length;i>r;r++)n[r]===e&&(n.splice(r,1),r--);else delete t[A]}},{key:"getEvents",value:function(){return this.__events}}]),A}(),m=function(A){l(t,v);var e=h(t);function t(A,n){var r;return a(this,t),(r=e.call(this)).context=void 0,r.canvas=void 0,r.attrs=void 0,r.isCanvasElement=void 0,r.context=A,r.canvas=n.canvas||A.canvas||{width:n.width||0,height:n.height||0},r.attrs=n||{},r.isCanvasElement=!0,r}return c(t,[{key:"width",get:function(){return this.canvas.width},set:function(A){this.canvas.width=A}},{key:"height",get:function(){return this.canvas.height},set:function(A){this.canvas.height=A}},{key:"getContext",value:function(){return this.context}},{key:"getBoundingClientRect",value:function(){var A=this.attrs||{},e=A.top,t=A.right,n=A.width,r=A.height,i=A.left,o=A.bottom;return{top:void 0===e?0:e,width:void 0===n?0:n,right:void 0===t?0:t,height:void 0===r?0:r,bottom:void 0===o?0:o,left:void 0===i?0:i}}},{key:"setAttribute",value:function(A,e){this.attrs[A]=e}},{key:"addEventListener",value:function(A,e){this.on(A,e)}},{key:"removeEventListener",value:function(A,e){this.off(A,e)}},{key:"dispatchEvent",value:function(A,e){this.emit(A,e)}}]),t}();function y(A,e){try{return A.currentStyle?A.currentStyle[e]:document.defaultView&&document.defaultView.getComputedStyle(A,null).getPropertyValue(e)}catch(A){return{width:300,height:150}[e]}}function H(A,e){var t=e.get("el");if(!t)return A;var n=t.getBoundingClientRect(),r=n.top,i=void 0===r?0:r,o=n.left,s=void 0===o?0:o,a=parseFloat(y(t,"padding-left"))||0,B=parseFloat(y(t,"padding-top"))||0;return{x:A.x-s-a,y:A.y-i-B}}function E(A,e){var t=e.get("landscape");if(!t)return A;if(F(t))return t(A,e);var n=e.get("height");return{x:A.y,y:n-A.x}}var I=function(A,e){var t=A.touches;if(!t||!t.length)return[E(H({x:A.clientX,y:A.clientY},e),e)];t.length||(t=A.changedTouches||[]);for(var n=[],r=0,i=t.length;i>r;r++){var o,s=t[r],a=s.x,B=s.y,c=s.clientX,u=s.clientY;o=p(a)||p(B)?{x:a,y:B}:H({x:c,y:u},e),n.push(E(o,e))}return n},b=function(A,e){var t=e.x-A.x,n=e.y-A.y;return Math.abs(t)>Math.abs(n)?t>0?"right":"left":n>0?"down":"up"},K=function(A,e){var t=Math.abs(e.x-A.x),n=Math.abs(e.y-A.y);return Math.sqrt(t*t+n*n)},x=function(){function A(e){var t=this,n=e.canvas,r=e.el;a(this,A),this.processEvent=void 0,this.canvas=void 0,this.startTime=0,this.endTime=0,this.startPoints=null,this.startDistance=0,this.center=null,this.pressTimeout=void 0,this.eventType=null,this.direction=null,this.lastMoveTime=0,this.prevMovePoints=null,this.prevMoveTime=0,this.lastMovePoints=null,this.pinch=!1,this._click=function(A){var e=I(A,t.canvas);A.points=e,t.emitEvent("click",A)},this._start=function(A){var e,n,r=I(A,t.canvas);r&&(A.points=r,t.emitEvent("touchstart",A),t.reset(),t.startTime=Date.now(),t.startPoints=r,r.length>1?(t.startDistance=K(r[0],r[1]),t.center={x:(e=r[0]).x+((n=r[1]).x-e.x)/2,y:e.y+(n.y-e.y)/2}):t.pressTimeout=setTimeout((function(){var e="press",n="none";A.direction=n,t.emitStart(e,A),t.emitEvent(e,A),t.eventType=e,t.direction=n}),250))},this._move=function(A){var e=I(A,t.canvas);if(e){A.points=e,t.emitEvent("touchmove",A);var n=t.startPoints;if(n)if(e.length>1){var r=t.startDistance,i=K(e[0],e[1]);A.zoom=i/r,A.center=t.center,t.emitStart("pinch",A),t.emitEvent("pinch",A)}else{var o=e[0].x-n[0].x,s=e[0].y-n[0].y,a=t.direction||b(n[0],e[0]);t.direction=a;var B=t.getEventType(e);A.direction=a,A.deltaX=o,A.deltaY=s,t.emitStart(B,A),t.emitEvent(B,A);var c=t.lastMoveTime,u=Date.now();u-c>0&&(t.prevMoveTime=c,t.prevMovePoints=t.lastMovePoints,t.lastMoveTime=u,t.lastMovePoints=e)}}},this._end=function(A){var e=I(A,t.canvas);A.points=e,t.emitEnd(A),t.emitEvent("touchend",A);var n=t.lastMoveTime;if(100>Date.now()-n){var r=n-(t.prevMoveTime||t.startTime);if(r>0){var i=t.prevMovePoints||t.startPoints,o=t.lastMovePoints;if(!i||!o)return;var s=K(i[0],o[0])/r;s>.3&&(A.velocity=s,A.direction=b(i[0],o[0]),t.emitEvent("swipe",A))}}t.reset();var a=A.touches;a&&a.length>0&&t._start(A)},this._cancel=function(A){t.emitEvent("touchcancel",A),t.reset()},this.canvas=n,this.delegateEvent(r),this.processEvent={}}return c(A,[{key:"delegateEvent",value:function(A){A.addEventListener("click",this._click),A.addEventListener("touchstart",this._start),A.addEventListener("touchmove",this._move),A.addEventListener("touchend",this._end),A.addEventListener("touchcancel",this._cancel)}},{key:"emitEvent",value:function(A,e){this.canvas.emit(A,e)}},{key:"getEventType",value:function(A){var e,t=this.eventType,n=this.startTime,r=this.startPoints;if(t)return t;var i=this.canvas.__events.pan;if(i&&i.length){var o=Date.now();if(!r)return;e=o-n>250&&10>K(r[0],A[0])?"press":"pan"}else e="press";return this.eventType=e,e}},{key:"enable",value:function(A){this.processEvent[A]=!0}},{key:"isProcess",value:function(A){return this.processEvent[A]}},{key:"emitStart",value:function(A,e){this.isProcess(A)||(this.enable(A),this.emitEvent("".concat(A,"start"),e))}},{key:"emitEnd",value:function(A){}},{key:"clearPressTimeout",value:function(){this.pressTimeout&&(clearTimeout(this.pressTimeout),this.pressTimeout=null)}},{key:"reset",value:function(){this.clearPressTimeout(),this.startTime=0,this.startPoints=null,this.startDistance=0,this.direction=null,this.eventType=null,this.pinch=!1,this.prevMoveTime=0,this.prevMovePoints=null,this.lastMoveTime=0,this.lastMovePoints=null}}]),A}(),L=function(A){l(t,v);var e=h(t);function t(A){var n;return a(this,t),(n=e.call(this))._attrs={},n._isWindow=void 0,n._attrs=Object.assign({},A),n._isWindow="undefined"!=typeof window,n._initPixelRatio(),n._initCanvas(),["createImage","toDataURL","requestAnimationFrame"].forEach((function(e){n._initAttrs(e,A.canvas||n.get("el"))})),n}return c(t,[{key:"get",value:function(A){return this._attrs[A]}},{key:"set",value:function(A,e){this._attrs[A]=e}},{key:"_initAttrs",value:function(A,e){var t=this;this.get(A)||this.set(A,(function(){return e[A]?e[A].apply(e,arguments):t._isWindow?window[A]?(n=window)[A].apply(n,arguments):"createImage"==A?new Image:null:void 0;var n}))}},{key:"_initCanvas",value:function(){var A,e,t=this.get("el"),n=this.get("context");if(!t&&!n)throw Error("请指定 id、el 或 context!");A=t?U(t)?(e=t)?document.getElementById(e):null:t:function(A,e){return A?function(A){if(!A)return!1;if(1!==A.nodeType||!A.nodeName||"canvas"!==A.nodeName.toLowerCase())return!1;var e=!1;try{A.addEventListener("eventTest",(function(){e=!0})),A.dispatchEvent(new Event("eventTest"))}catch(A){e=!1}return e}(A.canvas)?A.canvas:new m(A,e):null}(n,this._attrs),n&&A&&!A.getContext&&(A.getContext=function(){return n});var r=this.get("width")||function(A){var e=y(A,"width");return"auto"===e&&(e=A.offsetWidth),parseFloat(e)}(A)||A.width,i=this.get("height")||function(A){var e=y(A,"height");return"auto"===e&&(e=A.offsetHeight),parseFloat(e)}(A)||A.height;this.set("canvas",this),this.set("el",A),this.set("context",n||A.getContext("2d")),this.changeSize(r,i);var o=new x({canvas:this,el:A,parent:this.get("parent")});this.set("eventController",o)}},{key:"_initPixelRatio",value:function(){this.get("pixelRatio")||this.set("pixelRatio",window&&window.devicePixelRatio||1)}},{key:"changeSize",value:function(A,e){var t,n=this.get("pixelRatio"),r=this.get("el");r.style&&(r.style.width=A+"px",r.style.height=e+"px"),(t=r)&&"object"===s(t)&&(1===t.nodeType&&t.nodeName||t.isCanvasElement)&&(r.width=A*n,r.height=e*n,1!==n&&this.get("context").scale(n,n)),this.set("width",A),this.set("height",e)}},{key:"destroy",value:function(){if(!this.get("destroyed")){var A=this.get("el");A.width=0,A.height=0,this.clear(),this._attrs={},this.set("destroyed",!0)}}},{key:"clear",value:function(){}},{key:"isDestroyed",value:function(){return this.get("destroyed")}}]),t}(),S={penColor:"black",backgroundColor:"",openSmooth:!0,penSize:2,minLineWidth:2,maxLineWidth:6,minSpeed:1.5,maxWidthDiffRate:20,maxHistoryLength:20},D=null,T=function(){function A(e){var t=this;a(this,A),this.canAddHistory=!0,this.points=[],this.historyList=[],this.undoneList=[],this.canvas=void 0,this._isEmpty=!0,this.active=!1,this.getLineWidth=function(A){var e=t.get("options"),n=e.minSpeed,r=e.minLineWidth,i=t.getMaxLineWidth();return Math.min(Math.max(i-(i-r)*A/Math.max(Math.min(n,10),1),r),i)},this.drawTrapezoid=function(A,e,n,r){var i=t.get("context");i.beginPath(),i.moveTo(Number(A.x.toFixed(1)),Number(A.y.toFixed(1))),i.lineTo(Number(e.x.toFixed(1)),Number(e.y.toFixed(1))),i.lineTo(Number(n.x.toFixed(1)),Number(n.y.toFixed(1))),i.lineTo(Number(r.x.toFixed(1)),Number(r.y.toFixed(1))),i.fillStyle=t.get("options").penColor,i.fill(),i.draw&&i.draw(!0)},this.drawNoSmoothLine=function(A,e){e.lastX=A.x+.5*(e.x-A.x),e.lastY=A.y+.5*(e.y-A.y),"number"==typeof A.lastX&&t.drawCurveLine(A.lastX,A.lastY,A.x,A.y,e.lastX,e.lastY,t.getMaxLineWidth())},this.drawCurveLine=function(A,e,n,r,i,o,s){s=Number(s.toFixed(1));var a=t.get("context");a.lineWidth=s,a.beginPath(),a.moveTo(Number(A.toFixed(1)),Number(e.toFixed(1))),a.quadraticCurveTo(Number(n.toFixed(1)),Number(r.toFixed(1)),Number(i.toFixed(1)),Number(o.toFixed(1))),a.stroke(),a.draw&&a.draw(!0)},this.getRadianData=function(A,e,t,n){var r=t-A,i=n-e;if(0===r)return{val:0,pos:-1};if(0===i)return{val:0,pos:1};var o=Math.abs(Math.atan(i/r));return t>A&&e>n||A>t&&n>e?{val:o,pos:1}:{val:o,pos:-1}},this.getRadianPoints=function(A,e,t,n){if(0===A.val)return 1===A.pos?[{x:e,y:t+n},{x:e,y:t-n}]:[{y:t,x:e+n},{y:t,x:e-n}];var r=Math.sin(A.val)*n,i=Math.cos(A.val)*n;return 1===A.pos?[{x:e+r,y:t+i},{x:e-r,y:t-i}]:[{x:e+r,y:t-i},{x:e-r,y:t+i}]},this.drawSmoothLine=function(A,e){var n=e.x-A.x,r=e.y-A.y;if(Math.abs(n)+Math.abs(r)>2?(e.lastX1=A.x+.3*n,e.lastY1=A.y+.3*r,e.lastX2=A.x+.7*n,e.lastY2=A.y+.7*r):(e.lastX1=e.lastX2=A.x+.5*n,e.lastY1=e.lastY2=A.y+.5*r),e.perLineWidth=(A.lineWidth+e.lineWidth)/2,"number"==typeof A.lastX1){if(t.drawCurveLine(A.lastX2,A.lastY2,A.x,A.y,e.lastX1,e.lastY1,e.perLineWidth),A.isFirstPoint)return;if(A.lastX1===A.lastX2&&A.lastY1===A.lastY2)return;var i=t.getRadianData(A.lastX1,A.lastY1,A.lastX2,A.lastY2),o=t.getRadianPoints(i,A.lastX1,A.lastY1,A.perLineWidth/2),s=t.getRadianPoints(i,A.lastX2,A.lastY2,e.perLineWidth/2);t.drawTrapezoid(o[0],s[0],s[1],o[1])}else e.isFirstPoint=!0},this.addHistory=function(){var A=t.get("options").maxHistoryLength;if(A&&t.canAddHistory)if(t.canAddHistory=!1,t.get("createImage")){var e=null;e=t.get("createImage")();var n=t.get("toDataURL")&&t.get("toDataURL")();U(n)?e.src=n:n.then((function(A){e.src=A})),e.onload=function(){var n=D;D=e,t.historyList.push(n),t.historyList=t.historyList.slice(-A)}}else t.historyList.length++},this.drawByImage=function(A){var e=t.get("context"),n=t.get("width"),r=t.get("height");e.clearRect(0,0,n,r);try{A&&e.drawImage(A,0,0,n,r),e.draw&&e.draw(!0)}catch(A){t.historyList.length=0}},this.isEmpty=function(){return t.get("options").maxHistoryLength>0?0===t.historyList.length:t._isEmpty},this.clear=function(){if(!t.get("options").disabled){var A=t.get("context");A.clearRect(0,0,t.get("width"),t.get("height")),A.draw&&A.draw(),t._isEmpty=!0,D=null,t.historyList.length=0}},this.undo=function(){if(!t.get("options").disabled&&(0===t.get("options").maxHistoryLength&&t.clear(),t.get("createImage")&&t.historyList.length)){var A=t.historyList.pop();t.drawByImage(A),t.undoneList.push(D),D=A,t.historyList.length||t.undoneList.length||t.clear()}},this.redo=function(){if(t.undoneList.length&&!t.get("options").disabled){var A=t.undoneList.pop();t.historyList.push(D),t.drawByImage(A),D=A,t._isEmpty=!1}},this.canvas=e,this.canvas.set("pen",S),this.init()}return c(A,[{key:"getOption",value:function(){}},{key:"setOption",value:function(){var A=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},e=o({},A),t=e.maxLineWidth;if(t&&A.penSize&&t==S.maxLineWidth){var n=Math.max(t,A.penSize);e.maxLineWidth=n}this.canvas.set("pen",Object.assign({},S,e))}},{key:"get",value:function(A){return this.canvas.get("options"==A?"pen":A)}},{key:"init",value:function(){var A=this;this.get("context").lineCap="round",this.canvas.on("touchstart",(function(e){return A.onDrawStart(e)})),this.canvas.on("touchmove",(function(e){return A.onDrawMove(e)})),this.canvas.on("touchend",(function(e){return A.onDrawEnd(e)}))}},{key:"drawBackground",value:function(){var A=this.get("context"),e=this.get("width"),t=this.get("height"),n=this.get("options"),r=n.backgroundColor,i=n.backgroundImage;r&&(A.fillStyle=r,A.fillRect(0,0,e,t),A.draw&&A.draw(!0)),i&&this.drawByImage(i)}},{key:"getImageData",value:function(A){if(A){var e=this.get("width"),t=this.get("height"),n=this.get("el"),r="CANVAS"===n.nodeName,i=r?e:n.width,o=r?t:n.height;if(r){var s=document.createElement("canvas");s.width=e,s.height=t;var a=s.getContext("2d");a.drawImage(n,0,0,e,t);var B=a.getImageData(0,0,e,t).data;return A(B)}var c,u=this.get("context").getImageData(0,0,i,o);return Q(c=u)&&F(c.then)&&F(c.catch)?(u.then((function(e){return A(e.data)})),null):A(u.data)}}},{key:"getMaskedImageData",value:function(A){if(A)return this.getImageData((function(e){for(var t=0;e.length>t;t+=4)0===e[t+3]?(e[t]=0,e[t+1]=0,e[t+2]=0):(e[t]=255,e[t+1]=255,e[t+2]=255);return A(e)}))}},{key:"getContentBoundingBox",value:function(A){var e=this.get("pixelRatio"),t=this.get("width"),n=this.get("height"),r=this.get("el"),i="CANVAS"===r.nodeName,o=i?t:r.width,s=i?n:r.height;return e=i?1:e,this.getImageData((function(t){for(var n=Math.floor(o),r=n,i=Math.floor(s),a=0,B=0,c=0;t.length>c;c+=4)if(t[c+3]>0){var u=c/4%n,l=Math.floor(c/4/n);r=Math.min(r,u),i=Math.min(i,l),a=Math.max(a,u),B=Math.max(B,l)}var g={width:(a-r+1)/e,height:(B-i+1)/e,startX:r/e,startY:i/e};return A&&A(g),g}))}},{key:"remove",value:function(){var A=this;this.canvas.off("touchstart",(function(e){return A.onDrawStart(e)})),this.canvas.off("touchmove",(function(e){return A.onDrawMove(e)})),this.canvas.off("touchend",(function(e){return A.onDrawEnd(e)}))}},{key:"disableScroll",value:function(A){A.preventDefault&&this.get("options").disableScroll&&A.preventDefault()}},{key:"onDrawStart",value:function(A){if(!this.get("options").disabled){this.disableScroll(A),this.undoneList.length=0;var e=A.points;if(this.active){this.canAddHistory=!0,this.get("context").strokeStyle=this.get("options").penColor;var t=e[0];this.initPoint(t.x,t.y)}}}},{key:"onDrawMove",value:function(A){if(!this.get("options").disabled&&(this.disableScroll(A),this.active)){var e=A.points[0];this.initPoint(e.x,e.y),this.onDraw()}}},{key:"onDrawEnd",value:function(A){this.active&&!this.get("options").disabled&&(this.addHistory(),this.canAddHistory=!0,this.points=[])}},{key:"onDraw",value:function(){var A=this,e=this.get("context");if(this.points.length>=2){e.lineWidth=this.get("options").penSize||2;var t=this.points.slice(-1)[0],n=this.points.slice(-2,-1)[0];(function(){A._isEmpty=!1,A.get("options").openSmooth?A.drawSmoothLine(n,t):A.drawNoSmoothLine(n,t)})()}}},{key:"getMaxLineWidth",value:function(){var A=this.get("options");return Math.min(A.penSize,A.maxLineWidth)}},{key:"initPoint",value:function(A,e){var t={x:A,y:e,t:Date.now()},n=this.points.slice(-1)[0];if(!n||n.t!==t.t&&(n.x!==A||n.y!==e)){if(this.get("options").openSmooth&&n){var r=this.points.slice(-2,-1)[0];if(t.distance=Math.sqrt(Math.pow(t.x-n.x,2)+Math.pow(t.y-n.y,2)),t.speed=t.distance/(t.t-n.t||.1),t.lineWidth=this.getLineWidth(t.speed),r&&r.lineWidth&&n.lineWidth){var i=(t.lineWidth-n.lineWidth)/n.lineWidth,o=this.get("options").maxWidthDiffRate/100;o=o>1?1:.01>o?.01:o,Math.abs(i)>o&&(t.lineWidth=n.lineWidth*(1+(i>0?o:-o)))}}this.points.push(t),this.points=this.points.slice(-3)}}}]),A}(),M=function(){function A(e){a(this,A),this.canvas=void 0,this._ee=void 0,this.pen=void 0;var t=new L(e);t.set("parent",this),this.canvas=t,this._ee=new v,this.pen=new T(t),this.init()}return c(A,[{key:"init",value:function(){this.pen.active=!0}},{key:"destroy",value:function(){this.canvas.destroy()}},{key:"clear",value:function(){this.pen.clear()}},{key:"undo",value:function(){this.pen.undo()}},{key:"redo",value:function(){this.pen.redo()}},{key:"save",value:function(){}},{key:"getContentBoundingBox",value:function(A){return this.pen.getContentBoundingBox(A)}},{key:"getMaskedImageData",value:function(A){return this.pen.getMaskedImageData(A)}},{key:"isEmpty",value:function(){return this.pen.isEmpty()}},{key:"on",value:function(A,e){this._ee.on(A,e)}},{key:"emit",value:function(A,e){this._ee.emit(A,e)}},{key:"off",value:function(A,e){this._ee.off(A,e)}}]),A}();e.Signature=M;var O=M;e.default=O},db04:function(A,e,t){"use strict";var n=t("bb80"),r=t("c435"),i=t("9e70"),o=t("f298"),s=t("862c"),a=n(o),B=n("".slice),c=Math.ceil,u=function(A){return function(e,t,n){var o,u,l=i(s(e)),g=r(t),w=l.length,d=void 0===n?" ":i(n);return g<=w||""===d?l:(o=g-w,u=a(d,c(o/d.length)),u.length>o&&(u=B(u,0,o)),A?l+u:u+l)}};A.exports={start:u(!1),end:u(!0)}},e00a:function(A,e,t){"use strict";t.r(e);var n=t("59be"),r=t.n(n);for(var i in n)["default"].indexOf(i)<0&&function(A){t.d(e,A,(function(){return n[A]}))}(i);e["default"]=r.a},ecd4:function(A,e,t){"use strict";t.d(e,"b",(function(){return n})),t.d(e,"c",(function(){return r})),t.d(e,"a",(function(){}));var n=function(){var A=this,e=A.$createElement,t=A._self._c||e;return t("v-uni-view",[t("v-uni-view",{staticClass:"orderBox"},[t("v-uni-view",{staticClass:"orderHeader"},[t("v-uni-text",{staticClass:"orderNo"},[A._v("订单编号:"+A._s(A.info.serial))]),t("v-uni-text",{staticClass:"orderStatus"},[A._v(A._s(A.info.status_name))])],1),t("v-uni-view",{staticClass:"orderBody"},[t("v-uni-view",{staticClass:"orderLine"},[t("v-uni-text",{staticClass:"iconfont iconLocation icon"},[A._v("")]),t("v-uni-text",{staticClass:"orderTxt"},[A._v(A._s(A.info.project.name))]),t("v-uni-text",{staticClass:"orderGe"},[A._v("|")]),t("v-uni-text",{staticClass:"orderTxt"},[A._v(A._s(A.info.bed.building_name)+"-"+A._s(A.info.bed.area_name)+"-"+A._s(A.info.bed.room_name)+"-"+A._s(A.info.bed.name+"床"))])],1),t("v-uni-view",{staticClass:"orderLine"},[t("v-uni-text",{staticClass:"iconfont iconLocation icon"},[A._v("")]),t("v-uni-text",{staticClass:"orderTxt"},[A._v(A._s(A.info.patient.name))]),t("v-uni-text",{staticClass:"orderGe"},[A._v("|")]),t("v-uni-text",{staticClass:"orderTxt"},[A._v(A._s(null==A.info.patient.sex?"男":A.info.patient.sex))]),t("v-uni-text",{staticClass:"orderGe"},[A._v("|")]),t("v-uni-text",{staticClass:"orderTxt"},[A._v(A._s(A.info.mobile))])],1),t("v-uni-view",{staticClass:"orderLine"},[t("v-uni-text",{staticClass:"iconfont iconLocation icon"},[A._v("")]),t("v-uni-text",{staticClass:"orderTxt"},[A._v(A._s(A.info.from_date)+" ~ "+A._s(A.info.to_date)+" 共预约"+A._s(A.info.days)+"天")])],1),t("v-uni-view",{staticClass:"orderLine",staticStyle:{"padding-left":"43rpx"}},[A._l(A.info.factorjson,(function(e,n){return[t("v-uni-view",{staticClass:"orderTag tagBox1"},[t("v-uni-text",{staticClass:"orderTagTxt tag1"},[A._v(A._s(e.factor_item_name))])],1)]})),null!=A.info.product_item?t("v-uni-view",{staticClass:"orderTag tagBox2"},[t("v-uni-text",{staticClass:"orderTagTxt tag2"},[A._v(A._s(A.info.product_item.name))])],1):A._e(),null!=A.info.paramedic_level?t("v-uni-view",{staticClass:"orderTag tagBox3"},[t("v-uni-text",{staticClass:"orderTagTxt tag3"},[A._v(A._s(A.info.paramedic_level.name))])],1):A._e()],2)],1),t("v-uni-view",{staticClass:"orderPrice"},[t("v-uni-view",{staticClass:"priceBox"},[t("v-uni-text",{staticClass:"priceTitle"},[A._v("合计:")]),t("v-uni-text",{staticClass:"priceInfo"},[A._v("¥"+A._s(A.info.total))])],1),t("v-uni-view",{staticClass:"priceBox"},[t("v-uni-text",{staticClass:"priceTitle"},[A._v("已扣:")]),t("v-uni-text",{staticClass:"priceInfo"},[A._v("¥"+A._s(A.info.paid_total))])],1),t("v-uni-view",{staticClass:"priceBox"},[t("v-uni-text",{staticClass:"priceTitle"},[A._v("余额:")]),t("v-uni-text",{staticClass:"priceInfo"},[A._v("¥"+A._s(A.info.customer.balance))])],1),A.info.paramedic?t("v-uni-view",{staticClass:"priceBox"},[t("v-uni-text",{staticClass:"priceTitle"},[A._v("护工:")]),t("v-uni-text",{staticClass:"priceInfo"},[A._v(A._s(A.info.paramedic?A.info.paramedic.name:""))])],1):A._e()],1)],1)],1)},r=[]},f1ad:function(A,e,t){var n=t("5213");n.__esModule&&(n=n.default),"string"===typeof n&&(n=[[A.i,n,""]]),n.locals&&(A.exports=n.locals);var r=t("967d").default;r("644f41f7",n,!0,{sourceMap:!1,shadowMode:!1})},f298:function(A,e,t){"use strict";var n=t("497b"),r=t("9e70"),i=t("862c"),o=RangeError;A.exports=function(A){var e=r(i(this)),t="",s=n(A);if(s<0||s===1/0)throw new o("Wrong number of repetitions");for(;s>0;(s>>>=1)&&(e+=e))1&s&&(t+=e);return t}},f555:function(A,e,t){"use strict";var n=t("85c1"),r=t("ab4a"),i=t("e4ca"),o=t("471d"),s=t("af9e"),a=n.RegExp,B=a.prototype,c=r&&s((function(){var A=!0;try{a(".","d")}catch(c){A=!1}var e={},t="",n=A?"dgimsy":"gimsy",r=function(A,n){Object.defineProperty(e,A,{get:function(){return t+=n,!0}})},i={dotAll:"s",global:"g",ignoreCase:"i",multiline:"m",sticky:"y"};for(var o in A&&(i.hasIndices="d"),i)r(o,i[o]);var s=Object.getOwnPropertyDescriptor(B,"flags").get.call(e);return s!==n||t!==n}));c&&i(B,"flags",{configurable:!0,get:o})},f680:function(A,e,t){"use strict";var n=t("c3c6"),r=t.n(n);r.a}}]); \ No newline at end of file + ***************************************************************************** */var A=function(e,t){return A=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(A,e){A.__proto__=e}||function(A,e){for(var t in e)Object.prototype.hasOwnProperty.call(e,t)&&(A[t]=e[t])},A(e,t)};function e(e,t){if("function"!==typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}A(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}var t=function(){return t=Object.assign||function(A){for(var e,t=1,n=arguments.length;t0&&r[r.length-1])&&(6===i[0]||2===i[0])){o=0;continue}if(3===i[0]&&(!r||i[1]>r[0]&&i[1]=55296&&r<=56319&&t>10),o%1024+56320)),(r+1===t||n.length>16384)&&(i+=String.fromCharCode.apply(String,n),n.length=0)}return i},u="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",l="undefined"===typeof Uint8Array?[]:new Uint8Array(256),g=0;g=0){if(A<55296||A>56319&&A<=65535)return e=this.index[A>>5],e=(e<<2)+(31&A),this.data[e];if(A<=65535)return e=this.index[2048+(A-55296>>5)],e=(e<<2)+(31&A),this.data[e];if(A>11),e=this.index[e],e+=A>>5&63,e=this.index[e],e=(e<<2)+(31&A),this.data[e];if(A<=1114111)return this.data[this.highValueIndex]}return this.errorValue},A}(),C="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",p="undefined"===typeof Uint8Array?[]:new Uint8Array(256),U=0;U>4,c[a++]=(15&n)<<4|r>>2,c[a++]=(3&r)<<6|63&i;return B}(A),n=Array.isArray(t)?function(A){for(var e=A.length,t=[],n=0;n0){i--;var s=n[i];if(Array.isArray(A)?-1!==A.indexOf(s):A===s){var a=t;while(a<=n.length){a++;o=n[a];if(o===e)return!0;if(o!==F)break}}if(s!==F)break}}return!1},tA=function(A,e){var t=A;while(t>=0){var n=e[t];if(n!==F)return n;t--}return 0},nA=function(A,e,t,n,r){if(0===t[n])return"×";var i=n-1;if(Array.isArray(r)&&!0===r[i])return"×";var o=i-1,s=i+1,a=e[i],B=o>=0?e[o]:0,c=e[s];if(2===a&&3===c)return"×";if(-1!==Z.indexOf(a))return"!";if(-1!==Z.indexOf(c))return"×";if(-1!==j.indexOf(c))return"×";if(8===tA(i,e))return"÷";if(11===W.get(A[i]))return"×";if((a===k||a===O)&&11===W.get(A[s]))return"×";if(7===a||7===c)return"×";if(9===a)return"×";if(-1===[F,v,m].indexOf(a)&&9===c)return"×";if(-1!==[y,H,E,K,T].indexOf(c))return"×";if(tA(i,e)===x)return"×";if(eA(23,x,i,e))return"×";if(eA([y,H],b,i,e))return"×";if(eA(12,12,i,e))return"×";if(a===F)return"÷";if(23===a||23===c)return"×";if(16===c||16===a)return"÷";if(-1!==[v,m,b].indexOf(c)||14===a)return"×";if(36===B&&-1!==AA.indexOf(a))return"×";if(a===T&&36===c)return"×";if(c===I)return"×";if(-1!==Y.indexOf(c)&&a===L||-1!==Y.indexOf(a)&&c===L)return"×";if(a===D&&-1!==[V,k,O].indexOf(c)||-1!==[V,k,O].indexOf(a)&&c===S)return"×";if(-1!==Y.indexOf(a)&&-1!==z.indexOf(c)||-1!==z.indexOf(a)&&-1!==Y.indexOf(c))return"×";if(-1!==[D,S].indexOf(a)&&(c===L||-1!==[x,m].indexOf(c)&&e[s+1]===L)||-1!==[x,m].indexOf(a)&&c===L||a===L&&-1!==[L,T,K].indexOf(c))return"×";if(-1!==[L,T,K,y,H].indexOf(c)){var u=i;while(u>=0){var l=e[u];if(l===L)return"×";if(-1===[T,K].indexOf(l))break;u--}}if(-1!==[D,S].indexOf(c)){u=-1!==[y,H].indexOf(a)?o:i;while(u>=0){l=e[u];if(l===L)return"×";if(-1===[T,K].indexOf(l))break;u--}}if(R===a&&-1!==[R,N,G,P].indexOf(c)||-1!==[N,G].indexOf(a)&&-1!==[N,_].indexOf(c)||-1!==[_,P].indexOf(a)&&c===_)return"×";if(-1!==$.indexOf(a)&&-1!==[I,S].indexOf(c)||-1!==$.indexOf(c)&&a===D)return"×";if(-1!==Y.indexOf(a)&&-1!==Y.indexOf(c))return"×";if(a===K&&-1!==Y.indexOf(c))return"×";if(-1!==Y.concat(L).indexOf(a)&&c===x&&-1===J.indexOf(A[s])||-1!==Y.concat(L).indexOf(c)&&a===H)return"×";if(41===a&&41===c){var g=t[i],d=1;while(g>0){if(g--,41!==e[g])break;d++}if(d%2!==0)return"×"}return a===k&&c===O?"×":"÷"},rA=function(A,e){e||(e={lineBreak:"normal",wordBreak:"normal"});var t=function(A,e){void 0===e&&(e="strict");var t=[],n=[],r=[];return A.forEach((function(A,i){var o=W.get(A);if(o>50?(r.push(!0),o-=50):r.push(!1),-1!==["normal","auto","loose"].indexOf(e)&&-1!==[8208,8211,12316,12448].indexOf(A))return n.push(i),t.push(16);if(4===o||11===o){if(0===i)return n.push(i),t.push(M);var s=t[i-1];return-1===q.indexOf(s)?(n.push(n[i-1]),t.push(s)):(n.push(i),t.push(M))}return n.push(i),31===o?t.push("strict"===e?b:V):o===X||29===o?t.push(M):43===o?A>=131072&&A<=196605||A>=196608&&A<=262141?t.push(V):t.push(M):void t.push(o)})),[n,t,r]}(A,e.lineBreak),n=t[0],r=t[1],i=t[2];"break-all"!==e.wordBreak&&"break-word"!==e.wordBreak||(r=r.map((function(A){return-1!==[L,M,X].indexOf(A)?V:A})));var o="keep-all"===e.wordBreak?i.map((function(e,t){return e&&A[t]>=19968&&A[t]<=40959})):void 0;return[n,r,o]},iA=function(){function A(A,e,t,n){this.codePoints=A,this.required="!"===e,this.start=t,this.end=n}return A.prototype.slice=function(){return c.apply(void 0,this.codePoints.slice(this.start,this.end))},A}(),oA=function(A){return A>=48&&A<=57},sA=function(A){return oA(A)||A>=65&&A<=70||A>=97&&A<=102},aA=function(A){return 10===A||9===A||32===A},BA=function(A){return function(A){return function(A){return A>=97&&A<=122}(A)||function(A){return A>=65&&A<=90}(A)}(A)||function(A){return A>=128}(A)||95===A},cA=function(A){return BA(A)||oA(A)||45===A},uA=function(A){return A>=0&&A<=8||11===A||A>=14&&A<=31||127===A},lA=function(A,e){return 92===A&&10!==e},gA=function(A,e,t){return 45===A?BA(e)||lA(e,t):!!BA(A)||!(92!==A||!lA(A,e))},dA=function(A,e,t){return 43===A||45===A?!!oA(e)||46===e&&oA(t):oA(46===A?e:A)},wA=function(A){var e=0,t=1;43!==A[e]&&45!==A[e]||(45===A[e]&&(t=-1),e++);var n=[];while(oA(A[e]))n.push(A[e++]);var r=n.length?parseInt(c.apply(void 0,n),10):0;46===A[e]&&e++;var i=[];while(oA(A[e]))i.push(A[e++]);var o=i.length,s=o?parseInt(c.apply(void 0,i),10):0;69!==A[e]&&101!==A[e]||e++;var a=1;43!==A[e]&&45!==A[e]||(45===A[e]&&(a=-1),e++);var B=[];while(oA(A[e]))B.push(A[e++]);var u=B.length?parseInt(c.apply(void 0,B),10):0;return t*(r+s*Math.pow(10,-o))*Math.pow(10,a*u)},hA={type:2},QA={type:3},fA={type:4},CA={type:13},pA={type:8},UA={type:21},FA={type:9},vA={type:10},mA={type:11},yA={type:12},HA={type:14},EA={type:23},IA={type:1},bA={type:25},xA={type:24},KA={type:26},LA={type:27},SA={type:28},DA={type:29},TA={type:31},MA={type:32},kA=function(){function A(){this._value=[]}return A.prototype.write=function(A){this._value=this._value.concat(B(A))},A.prototype.read=function(){var A=[],e=this.consumeToken();while(e!==MA)A.push(e),e=this.consumeToken();return A},A.prototype.consumeToken=function(){var A=this.consumeCodePoint();switch(A){case 34:return this.consumeStringToken(34);case 35:var e=this.peekCodePoint(0),t=this.peekCodePoint(1),n=this.peekCodePoint(2);if(cA(e)||lA(t,n)){var r=gA(e,t,n)?2:1,i=this.consumeName();return{type:5,value:i,flags:r}}break;case 36:if(61===this.peekCodePoint(0))return this.consumeCodePoint(),CA;break;case 39:return this.consumeStringToken(39);case 40:return hA;case 41:return QA;case 42:if(61===this.peekCodePoint(0))return this.consumeCodePoint(),HA;break;case 43:if(dA(A,this.peekCodePoint(0),this.peekCodePoint(1)))return this.reconsumeCodePoint(A),this.consumeNumericToken();break;case 44:return fA;case 45:var o=A,s=this.peekCodePoint(0),a=this.peekCodePoint(1);if(dA(o,s,a))return this.reconsumeCodePoint(A),this.consumeNumericToken();if(gA(o,s,a))return this.reconsumeCodePoint(A),this.consumeIdentLikeToken();if(45===s&&62===a)return this.consumeCodePoint(),this.consumeCodePoint(),xA;break;case 46:if(dA(A,this.peekCodePoint(0),this.peekCodePoint(1)))return this.reconsumeCodePoint(A),this.consumeNumericToken();break;case 47:if(42===this.peekCodePoint(0)){this.consumeCodePoint();while(1){var B=this.consumeCodePoint();if(42===B&&(B=this.consumeCodePoint(),47===B))return this.consumeToken();if(-1===B)return this.consumeToken()}}break;case 58:return KA;case 59:return LA;case 60:if(33===this.peekCodePoint(0)&&45===this.peekCodePoint(1)&&45===this.peekCodePoint(2))return this.consumeCodePoint(),this.consumeCodePoint(),bA;break;case 64:var u=this.peekCodePoint(0),l=this.peekCodePoint(1),g=this.peekCodePoint(2);if(gA(u,l,g)){i=this.consumeName();return{type:7,value:i}}break;case 91:return SA;case 92:if(lA(A,this.peekCodePoint(0)))return this.reconsumeCodePoint(A),this.consumeIdentLikeToken();break;case 93:return DA;case 61:if(61===this.peekCodePoint(0))return this.consumeCodePoint(),pA;break;case 123:return mA;case 125:return yA;case 117:case 85:var d=this.peekCodePoint(0),w=this.peekCodePoint(1);return 43!==d||!sA(w)&&63!==w||(this.consumeCodePoint(),this.consumeUnicodeRangeToken()),this.reconsumeCodePoint(A),this.consumeIdentLikeToken();case 124:if(61===this.peekCodePoint(0))return this.consumeCodePoint(),FA;if(124===this.peekCodePoint(0))return this.consumeCodePoint(),UA;break;case 126:if(61===this.peekCodePoint(0))return this.consumeCodePoint(),vA;break;case-1:return MA}return aA(A)?(this.consumeWhiteSpace(),TA):oA(A)?(this.reconsumeCodePoint(A),this.consumeNumericToken()):BA(A)?(this.reconsumeCodePoint(A),this.consumeIdentLikeToken()):{type:6,value:c(A)}},A.prototype.consumeCodePoint=function(){var A=this._value.shift();return"undefined"===typeof A?-1:A},A.prototype.reconsumeCodePoint=function(A){this._value.unshift(A)},A.prototype.peekCodePoint=function(A){return A>=this._value.length?-1:this._value[A]},A.prototype.consumeUnicodeRangeToken=function(){var A=[],e=this.consumeCodePoint();while(sA(e)&&A.length<6)A.push(e),e=this.consumeCodePoint();var t=!1;while(63===e&&A.length<6)A.push(e),e=this.consumeCodePoint(),t=!0;if(t){var n=parseInt(c.apply(void 0,A.map((function(A){return 63===A?48:A}))),16),r=parseInt(c.apply(void 0,A.map((function(A){return 63===A?70:A}))),16);return{type:30,start:n,end:r}}var i=parseInt(c.apply(void 0,A),16);if(45===this.peekCodePoint(0)&&sA(this.peekCodePoint(1))){this.consumeCodePoint(),e=this.consumeCodePoint();var o=[];while(sA(e)&&o.length<6)o.push(e),e=this.consumeCodePoint();r=parseInt(c.apply(void 0,o),16);return{type:30,start:i,end:r}}return{type:30,start:i,end:i}},A.prototype.consumeIdentLikeToken=function(){var A=this.consumeName();return"url"===A.toLowerCase()&&40===this.peekCodePoint(0)?(this.consumeCodePoint(),this.consumeUrlToken()):40===this.peekCodePoint(0)?(this.consumeCodePoint(),{type:19,value:A}):{type:20,value:A}},A.prototype.consumeUrlToken=function(){var A=[];if(this.consumeWhiteSpace(),-1===this.peekCodePoint(0))return{type:22,value:""};var e=this.peekCodePoint(0);if(39===e||34===e){var t=this.consumeStringToken(this.consumeCodePoint());return 0===t.type&&(this.consumeWhiteSpace(),-1===this.peekCodePoint(0)||41===this.peekCodePoint(0))?(this.consumeCodePoint(),{type:22,value:t.value}):(this.consumeBadUrlRemnants(),EA)}while(1){var n=this.consumeCodePoint();if(-1===n||41===n)return{type:22,value:c.apply(void 0,A)};if(aA(n))return this.consumeWhiteSpace(),-1===this.peekCodePoint(0)||41===this.peekCodePoint(0)?(this.consumeCodePoint(),{type:22,value:c.apply(void 0,A)}):(this.consumeBadUrlRemnants(),EA);if(34===n||39===n||40===n||uA(n))return this.consumeBadUrlRemnants(),EA;if(92===n){if(!lA(n,this.peekCodePoint(0)))return this.consumeBadUrlRemnants(),EA;A.push(this.consumeEscapedCodePoint())}else A.push(n)}},A.prototype.consumeWhiteSpace=function(){while(aA(this.peekCodePoint(0)))this.consumeCodePoint()},A.prototype.consumeBadUrlRemnants=function(){while(1){var A=this.consumeCodePoint();if(41===A||-1===A)return;lA(A,this.peekCodePoint(0))&&this.consumeEscapedCodePoint()}},A.prototype.consumeStringSlice=function(A){var e="";while(A>0){var t=Math.min(5e4,A);e+=c.apply(void 0,this._value.splice(0,t)),A-=t}return this._value.shift(),e},A.prototype.consumeStringToken=function(A){var e="",t=0;do{var n=this._value[t];if(-1===n||void 0===n||n===A)return e+=this.consumeStringSlice(t),{type:0,value:e};if(10===n)return this._value.splice(0,t),IA;if(92===n){var r=this._value[t+1];-1!==r&&void 0!==r&&(10===r?(e+=this.consumeStringSlice(t),t=-1,this._value.shift()):lA(n,r)&&(e+=this.consumeStringSlice(t),e+=c(this.consumeEscapedCodePoint()),t=-1))}t++}while(1)},A.prototype.consumeNumber=function(){var A=[],e=4,t=this.peekCodePoint(0);43!==t&&45!==t||A.push(this.consumeCodePoint());while(oA(this.peekCodePoint(0)))A.push(this.consumeCodePoint());t=this.peekCodePoint(0);var n=this.peekCodePoint(1);if(46===t&&oA(n)){A.push(this.consumeCodePoint(),this.consumeCodePoint()),e=8;while(oA(this.peekCodePoint(0)))A.push(this.consumeCodePoint())}t=this.peekCodePoint(0),n=this.peekCodePoint(1);var r=this.peekCodePoint(2);if((69===t||101===t)&&((43===n||45===n)&&oA(r)||oA(n))){A.push(this.consumeCodePoint(),this.consumeCodePoint()),e=8;while(oA(this.peekCodePoint(0)))A.push(this.consumeCodePoint())}return[wA(A),e]},A.prototype.consumeNumericToken=function(){var A=this.consumeNumber(),e=A[0],t=A[1],n=this.peekCodePoint(0),r=this.peekCodePoint(1),i=this.peekCodePoint(2);if(gA(n,r,i)){var o=this.consumeName();return{type:15,number:e,flags:t,unit:o}}return 37===n?(this.consumeCodePoint(),{type:16,number:e,flags:t}):{type:17,number:e,flags:t}},A.prototype.consumeEscapedCodePoint=function(){var A=this.consumeCodePoint();if(sA(A)){var e=c(A);while(sA(this.peekCodePoint(0))&&e.length<6)e+=c(this.consumeCodePoint());aA(this.peekCodePoint(0))&&this.consumeCodePoint();var t=parseInt(e,16);return 0===t||function(A){return A>=55296&&A<=57343}(t)||t>1114111?65533:t}return-1===A?65533:A},A.prototype.consumeName=function(){var A="";while(1){var e=this.consumeCodePoint();if(cA(e))A+=c(e);else{if(!lA(e,this.peekCodePoint(0)))return this.reconsumeCodePoint(e),A;A+=c(this.consumeEscapedCodePoint())}}},A}(),OA=function(){function A(A){this._tokens=A}return A.create=function(e){var t=new kA;return t.write(e),new A(t.read())},A.parseValue=function(e){return A.create(e).parseComponentValue()},A.parseValues=function(e){return A.create(e).parseComponentValues()},A.prototype.parseComponentValue=function(){var A=this.consumeToken();while(31===A.type)A=this.consumeToken();if(32===A.type)throw new SyntaxError("Error parsing CSS component value, unexpected EOF");this.reconsumeToken(A);var e=this.consumeComponentValue();do{A=this.consumeToken()}while(31===A.type);if(32===A.type)return e;throw new SyntaxError("Error parsing CSS component value, multiple values found when expecting only one")},A.prototype.parseComponentValues=function(){var A=[];while(1){var e=this.consumeComponentValue();if(32===e.type)return A;A.push(e),A.push()}},A.prototype.consumeComponentValue=function(){var A=this.consumeToken();switch(A.type){case 11:case 28:case 2:return this.consumeSimpleBlock(A.type);case 19:return this.consumeFunction(A)}return A},A.prototype.consumeSimpleBlock=function(A){var e={type:A,values:[]},t=this.consumeToken();while(1){if(32===t.type||WA(t,A))return e;this.reconsumeToken(t),e.values.push(this.consumeComponentValue()),t=this.consumeToken()}},A.prototype.consumeFunction=function(A){var e={name:A.value,values:[],type:18};while(1){var t=this.consumeToken();if(32===t.type||3===t.type)return e;this.reconsumeToken(t),e.values.push(this.consumeComponentValue())}},A.prototype.consumeToken=function(){var A=this._tokens.shift();return"undefined"===typeof A?MA:A},A.prototype.reconsumeToken=function(A){this._tokens.unshift(A)},A}(),GA=function(A){return 15===A.type},PA=function(A){return 17===A.type},VA=function(A){return 20===A.type},RA=function(A){return 0===A.type},NA=function(A,e){return VA(A)&&A.value===e},_A=function(A){return 31!==A.type},XA=function(A){return 31!==A.type&&4!==A.type},JA=function(A){var e=[],t=[];return A.forEach((function(A){if(4===A.type){if(0===t.length)throw new Error("Error parsing function args, zero tokens for arg");return e.push(t),void(t=[])}31!==A.type&&t.push(A)})),t.length&&e.push(t),e},WA=function(A,e){return 11===e&&12===A.type||(28===e&&29===A.type||2===e&&3===A.type)},YA=function(A){return 17===A.type||15===A.type},ZA=function(A){return 16===A.type||YA(A)},jA=function(A){return A.length>1?[A[0],A[1]]:[A[0]]},zA={type:17,number:0,flags:4},qA={type:16,number:50,flags:4},$A={type:16,number:100,flags:4},Ae=function(A,e,t){var n=A[0],r=A[1];return[ee(n,e),ee("undefined"!==typeof r?r:n,t)]},ee=function(A,e){if(16===A.type)return A.number/100*e;if(GA(A))switch(A.unit){case"rem":case"em":return 16*A.number;case"px":default:return A.number}return A.number},te={name:"angle",parse:function(A,e){if(15===e.type)switch(e.unit){case"deg":return Math.PI*e.number/180;case"grad":return Math.PI/200*e.number;case"rad":return e.number;case"turn":return 2*Math.PI*e.number}throw new Error("Unsupported angle type")}},ne=function(A){return 15===A.type&&("deg"===A.unit||"grad"===A.unit||"rad"===A.unit||"turn"===A.unit)},re=function(A){var e=A.filter(VA).map((function(A){return A.value})).join(" ");switch(e){case"to bottom right":case"to right bottom":case"left top":case"top left":return[zA,zA];case"to top":case"bottom":return ie(0);case"to bottom left":case"to left bottom":case"right top":case"top right":return[zA,$A];case"to right":case"left":return ie(90);case"to top left":case"to left top":case"right bottom":case"bottom right":return[$A,$A];case"to bottom":case"top":return ie(180);case"to top right":case"to right top":case"left bottom":case"bottom left":return[$A,zA];case"to left":case"right":return ie(270)}return 0},ie=function(A){return Math.PI*A/180},oe={name:"color",parse:function(A,e){if(18===e.type){var t=de[e.name];if("undefined"===typeof t)throw new Error('Attempting to parse an unsupported color function "'+e.name+'"');return t(A,e.values)}if(5===e.type){if(3===e.value.length){var n=e.value.substring(0,1),r=e.value.substring(1,2),i=e.value.substring(2,3);return Be(parseInt(n+n,16),parseInt(r+r,16),parseInt(i+i,16),1)}if(4===e.value.length){n=e.value.substring(0,1),r=e.value.substring(1,2),i=e.value.substring(2,3);var o=e.value.substring(3,4);return Be(parseInt(n+n,16),parseInt(r+r,16),parseInt(i+i,16),parseInt(o+o,16)/255)}if(6===e.value.length){n=e.value.substring(0,2),r=e.value.substring(2,4),i=e.value.substring(4,6);return Be(parseInt(n,16),parseInt(r,16),parseInt(i,16),1)}if(8===e.value.length){n=e.value.substring(0,2),r=e.value.substring(2,4),i=e.value.substring(4,6),o=e.value.substring(6,8);return Be(parseInt(n,16),parseInt(r,16),parseInt(i,16),parseInt(o,16)/255)}}if(20===e.type){var s=he[e.value.toUpperCase()];if("undefined"!==typeof s)return s}return he.TRANSPARENT}},se=function(A){return 0===(255&A)},ae=function(A){var e=255&A,t=255&A>>8,n=255&A>>16,r=255&A>>24;return e<255?"rgba("+r+","+n+","+t+","+e/255+")":"rgb("+r+","+n+","+t+")"},Be=function(A,e,t,n){return(A<<24|e<<16|t<<8|Math.round(255*n)<<0)>>>0},ce=function(A,e){if(17===A.type)return A.number;if(16===A.type){var t=3===e?1:255;return 3===e?A.number/100*t:Math.round(A.number/100*t)}return 0},ue=function(A,e){var t=e.filter(XA);if(3===t.length){var n=t.map(ce),r=n[0],i=n[1],o=n[2];return Be(r,i,o,1)}if(4===t.length){var s=t.map(ce),a=(r=s[0],i=s[1],o=s[2],s[3]);return Be(r,i,o,a)}return 0};function le(A,e,t){return t<0&&(t+=1),t>=1&&(t-=1),t<1/6?(e-A)*t*6+A:t<.5?e:t<2/3?6*(e-A)*(2/3-t)+A:A}var ge=function(A,e){var t=e.filter(XA),n=t[0],r=t[1],i=t[2],o=t[3],s=(17===n.type?ie(n.number):te.parse(A,n))/(2*Math.PI),a=ZA(r)?r.number/100:0,B=ZA(i)?i.number/100:0,c="undefined"!==typeof o&&ZA(o)?ee(o,1):1;if(0===a)return Be(255*B,255*B,255*B,1);var u=B<=.5?B*(a+1):B+a-B*a,l=2*B-u,g=le(l,u,s+1/3),d=le(l,u,s),w=le(l,u,s-1/3);return Be(255*g,255*d,255*w,c)},de={hsl:ge,hsla:ge,rgb:ue,rgba:ue},we=function(A,e){return oe.parse(A,OA.create(e).parseComponentValue())},he={ALICEBLUE:4042850303,ANTIQUEWHITE:4209760255,AQUA:16777215,AQUAMARINE:2147472639,AZURE:4043309055,BEIGE:4126530815,BISQUE:4293182719,BLACK:255,BLANCHEDALMOND:4293643775,BLUE:65535,BLUEVIOLET:2318131967,BROWN:2771004159,BURLYWOOD:3736635391,CADETBLUE:1604231423,CHARTREUSE:2147418367,CHOCOLATE:3530104575,CORAL:4286533887,CORNFLOWERBLUE:1687547391,CORNSILK:4294499583,CRIMSON:3692313855,CYAN:16777215,DARKBLUE:35839,DARKCYAN:9145343,DARKGOLDENROD:3095837695,DARKGRAY:2846468607,DARKGREEN:6553855,DARKGREY:2846468607,DARKKHAKI:3182914559,DARKMAGENTA:2332068863,DARKOLIVEGREEN:1433087999,DARKORANGE:4287365375,DARKORCHID:2570243327,DARKRED:2332033279,DARKSALMON:3918953215,DARKSEAGREEN:2411499519,DARKSLATEBLUE:1211993087,DARKSLATEGRAY:793726975,DARKSLATEGREY:793726975,DARKTURQUOISE:13554175,DARKVIOLET:2483082239,DEEPPINK:4279538687,DEEPSKYBLUE:12582911,DIMGRAY:1768516095,DIMGREY:1768516095,DODGERBLUE:512819199,FIREBRICK:2988581631,FLORALWHITE:4294635775,FORESTGREEN:579543807,FUCHSIA:4278255615,GAINSBORO:3705462015,GHOSTWHITE:4177068031,GOLD:4292280575,GOLDENROD:3668254975,GRAY:2155905279,GREEN:8388863,GREENYELLOW:2919182335,GREY:2155905279,HONEYDEW:4043305215,HOTPINK:4285117695,INDIANRED:3445382399,INDIGO:1258324735,IVORY:4294963455,KHAKI:4041641215,LAVENDER:3873897215,LAVENDERBLUSH:4293981695,LAWNGREEN:2096890111,LEMONCHIFFON:4294626815,LIGHTBLUE:2916673279,LIGHTCORAL:4034953471,LIGHTCYAN:3774873599,LIGHTGOLDENRODYELLOW:4210742015,LIGHTGRAY:3553874943,LIGHTGREEN:2431553791,LIGHTGREY:3553874943,LIGHTPINK:4290167295,LIGHTSALMON:4288707327,LIGHTSEAGREEN:548580095,LIGHTSKYBLUE:2278488831,LIGHTSLATEGRAY:2005441023,LIGHTSLATEGREY:2005441023,LIGHTSTEELBLUE:2965692159,LIGHTYELLOW:4294959359,LIME:16711935,LIMEGREEN:852308735,LINEN:4210091775,MAGENTA:4278255615,MAROON:2147483903,MEDIUMAQUAMARINE:1724754687,MEDIUMBLUE:52735,MEDIUMORCHID:3126187007,MEDIUMPURPLE:2473647103,MEDIUMSEAGREEN:1018393087,MEDIUMSLATEBLUE:2070474495,MEDIUMSPRINGGREEN:16423679,MEDIUMTURQUOISE:1221709055,MEDIUMVIOLETRED:3340076543,MIDNIGHTBLUE:421097727,MINTCREAM:4127193855,MISTYROSE:4293190143,MOCCASIN:4293178879,NAVAJOWHITE:4292783615,NAVY:33023,OLDLACE:4260751103,OLIVE:2155872511,OLIVEDRAB:1804477439,ORANGE:4289003775,ORANGERED:4282712319,ORCHID:3664828159,PALEGOLDENROD:4008225535,PALEGREEN:2566625535,PALETURQUOISE:2951671551,PALEVIOLETRED:3681588223,PAPAYAWHIP:4293907967,PEACHPUFF:4292524543,PERU:3448061951,PINK:4290825215,PLUM:3718307327,POWDERBLUE:2967529215,PURPLE:2147516671,REBECCAPURPLE:1714657791,RED:4278190335,ROSYBROWN:3163525119,ROYALBLUE:1097458175,SADDLEBROWN:2336560127,SALMON:4202722047,SANDYBROWN:4104413439,SEAGREEN:780883967,SEASHELL:4294307583,SIENNA:2689740287,SILVER:3233857791,SKYBLUE:2278484991,SLATEBLUE:1784335871,SLATEGRAY:1887473919,SLATEGREY:1887473919,SNOW:4294638335,SPRINGGREEN:16744447,STEELBLUE:1182971135,TAN:3535047935,TEAL:8421631,THISTLE:3636451583,TOMATO:4284696575,TRANSPARENT:0,TURQUOISE:1088475391,VIOLET:4001558271,WHEAT:4125012991,WHITE:4294967295,WHITESMOKE:4126537215,YELLOW:4294902015,YELLOWGREEN:2597139199},Qe={name:"background-clip",initialValue:"border-box",prefix:!1,type:1,parse:function(A,e){return e.map((function(A){if(VA(A))switch(A.value){case"padding-box":return 1;case"content-box":return 2}return 0}))}},fe={name:"background-color",initialValue:"transparent",prefix:!1,type:3,format:"color"},Ce=function(A,e){var t=oe.parse(A,e[0]),n=e[1];return n&&ZA(n)?{color:t,stop:n}:{color:t,stop:null}},pe=function(A,e){var t=A[0],n=A[A.length-1];null===t.stop&&(t.stop=zA),null===n.stop&&(n.stop=$A);for(var r=[],i=0,o=0;oi?r.push(a):r.push(i),i=a}else r.push(null)}var B=null;for(o=0;oA.optimumDistance)?{optimumCorner:e,optimumDistance:s}:A}),{optimumDistance:r?1/0:-1/0,optimumCorner:null}).optimumCorner},me=function(A,e){var t=ie(180),n=[];return JA(e).forEach((function(e,r){if(0===r){var i=e[0];if(20===i.type&&-1!==["top","left","right","bottom"].indexOf(i.value))return void(t=re(e));if(ne(i))return void(t=(te.parse(A,i)+ie(270))%ie(360))}var o=Ce(A,e);n.push(o)})),{angle:t,stops:n,type:1}},ye=function(A,e){var t=0,n=3,r=[],i=[];return JA(e).forEach((function(e,o){var s=!0;if(0===o?s=e.reduce((function(A,e){if(VA(e))switch(e.value){case"center":return i.push(qA),!1;case"top":case"left":return i.push(zA),!1;case"right":case"bottom":return i.push($A),!1}else if(ZA(e)||YA(e))return i.push(e),!1;return A}),s):1===o&&(s=e.reduce((function(A,e){if(VA(e))switch(e.value){case"circle":return t=0,!1;case"ellipse":return t=1,!1;case"contain":case"closest-side":return n=0,!1;case"farthest-side":return n=1,!1;case"closest-corner":return n=2,!1;case"cover":case"farthest-corner":return n=3,!1}else if(YA(e)||ZA(e))return Array.isArray(n)||(n=[]),n.push(e),!1;return A}),s)),s){var a=Ce(A,e);r.push(a)}})),{size:n,shape:t,stops:r,position:i,type:2}},He={name:"image",parse:function(A,e){if(22===e.type){var t={url:e.value,type:0};return A.cache.addImage(e.value),t}if(18===e.type){var n=Ie[e.name];if("undefined"===typeof n)throw new Error('Attempting to parse an unsupported image function "'+e.name+'"');return n(A,e.values)}throw new Error("Unsupported image type "+e.type)}};var Ee,Ie={"linear-gradient":function(A,e){var t=ie(180),n=[];return JA(e).forEach((function(e,r){if(0===r){var i=e[0];if(20===i.type&&"to"===i.value)return void(t=re(e));if(ne(i))return void(t=te.parse(A,i))}var o=Ce(A,e);n.push(o)})),{angle:t,stops:n,type:1}},"-moz-linear-gradient":me,"-ms-linear-gradient":me,"-o-linear-gradient":me,"-webkit-linear-gradient":me,"radial-gradient":function(A,e){var t=0,n=3,r=[],i=[];return JA(e).forEach((function(e,o){var s=!0;if(0===o){var a=!1;s=e.reduce((function(A,e){if(a)if(VA(e))switch(e.value){case"center":return i.push(qA),A;case"top":case"left":return i.push(zA),A;case"right":case"bottom":return i.push($A),A}else(ZA(e)||YA(e))&&i.push(e);else if(VA(e))switch(e.value){case"circle":return t=0,!1;case"ellipse":return t=1,!1;case"at":return a=!0,!1;case"closest-side":return n=0,!1;case"cover":case"farthest-side":return n=1,!1;case"contain":case"closest-corner":return n=2,!1;case"farthest-corner":return n=3,!1}else if(YA(e)||ZA(e))return Array.isArray(n)||(n=[]),n.push(e),!1;return A}),s)}if(s){var B=Ce(A,e);r.push(B)}})),{size:n,shape:t,stops:r,position:i,type:2}},"-moz-radial-gradient":ye,"-ms-radial-gradient":ye,"-o-radial-gradient":ye,"-webkit-radial-gradient":ye,"-webkit-gradient":function(A,e){var t=ie(180),n=[],r=1;return JA(e).forEach((function(e,t){var i=e[0];if(0===t){if(VA(i)&&"linear"===i.value)return void(r=1);if(VA(i)&&"radial"===i.value)return void(r=2)}if(18===i.type)if("from"===i.name){var o=oe.parse(A,i.values[0]);n.push({stop:zA,color:o})}else if("to"===i.name){o=oe.parse(A,i.values[0]);n.push({stop:$A,color:o})}else if("color-stop"===i.name){var s=i.values.filter(XA);if(2===s.length){o=oe.parse(A,s[1]);var a=s[0];PA(a)&&n.push({stop:{type:16,number:100*a.number,flags:a.flags},color:o})}}})),1===r?{angle:(t+ie(180))%ie(360),stops:n,type:r}:{size:3,shape:0,stops:n,position:[],type:r}}},be={name:"background-image",initialValue:"none",type:1,prefix:!1,parse:function(A,e){if(0===e.length)return[];var t=e[0];return 20===t.type&&"none"===t.value?[]:e.filter((function(A){return XA(A)&&function(A){return!(20===A.type&&"none"===A.value)&&(18!==A.type||!!Ie[A.name])}(A)})).map((function(e){return He.parse(A,e)}))}},xe={name:"background-origin",initialValue:"border-box",prefix:!1,type:1,parse:function(A,e){return e.map((function(A){if(VA(A))switch(A.value){case"padding-box":return 1;case"content-box":return 2}return 0}))}},Ke={name:"background-position",initialValue:"0% 0%",type:1,prefix:!1,parse:function(A,e){return JA(e).map((function(A){return A.filter(ZA)})).map(jA)}},Le={name:"background-repeat",initialValue:"repeat",prefix:!1,type:1,parse:function(A,e){return JA(e).map((function(A){return A.filter(VA).map((function(A){return A.value})).join(" ")})).map(Se)}},Se=function(A){switch(A){case"no-repeat":return 1;case"repeat-x":case"repeat no-repeat":return 2;case"repeat-y":case"no-repeat repeat":return 3;case"repeat":default:return 0}};(function(A){A["AUTO"]="auto",A["CONTAIN"]="contain",A["COVER"]="cover"})(Ee||(Ee={}));var De,Te={name:"background-size",initialValue:"0",prefix:!1,type:1,parse:function(A,e){return JA(e).map((function(A){return A.filter(Me)}))}},Me=function(A){return VA(A)||ZA(A)},ke=function(A){return{name:"border-"+A+"-color",initialValue:"transparent",prefix:!1,type:3,format:"color"}},Oe=ke("top"),Ge=ke("right"),Pe=ke("bottom"),Ve=ke("left"),Re=function(A){return{name:"border-radius-"+A,initialValue:"0 0",prefix:!1,type:1,parse:function(A,e){return jA(e.filter(ZA))}}},Ne=Re("top-left"),_e=Re("top-right"),Xe=Re("bottom-right"),Je=Re("bottom-left"),We=function(A){return{name:"border-"+A+"-style",initialValue:"solid",prefix:!1,type:2,parse:function(A,e){switch(e){case"none":return 0;case"dashed":return 2;case"dotted":return 3;case"double":return 4}return 1}}},Ye=We("top"),Ze=We("right"),je=We("bottom"),ze=We("left"),qe=function(A){return{name:"border-"+A+"-width",initialValue:"0",type:0,prefix:!1,parse:function(A,e){return GA(e)?e.number:0}}},$e=qe("top"),At=qe("right"),et=qe("bottom"),tt=qe("left"),nt={name:"color",initialValue:"transparent",prefix:!1,type:3,format:"color"},rt={name:"direction",initialValue:"ltr",prefix:!1,type:2,parse:function(A,e){switch(e){case"rtl":return 1;case"ltr":default:return 0}}},it={name:"display",initialValue:"inline-block",prefix:!1,type:1,parse:function(A,e){return e.filter(VA).reduce((function(A,e){return A|ot(e.value)}),0)}},ot=function(A){switch(A){case"block":case"-webkit-box":return 2;case"inline":return 4;case"run-in":return 8;case"flow":return 16;case"flow-root":return 32;case"table":return 64;case"flex":case"-webkit-flex":return 128;case"grid":case"-ms-grid":return 256;case"ruby":return 512;case"subgrid":return 1024;case"list-item":return 2048;case"table-row-group":return 4096;case"table-header-group":return 8192;case"table-footer-group":return 16384;case"table-row":return 32768;case"table-cell":return 65536;case"table-column-group":return 131072;case"table-column":return 262144;case"table-caption":return 524288;case"ruby-base":return 1048576;case"ruby-text":return 2097152;case"ruby-base-container":return 4194304;case"ruby-text-container":return 8388608;case"contents":return 16777216;case"inline-block":return 33554432;case"inline-list-item":return 67108864;case"inline-table":return 134217728;case"inline-flex":return 268435456;case"inline-grid":return 536870912}return 0},st={name:"float",initialValue:"none",prefix:!1,type:2,parse:function(A,e){switch(e){case"left":return 1;case"right":return 2;case"inline-start":return 3;case"inline-end":return 4}return 0}},at={name:"letter-spacing",initialValue:"0",prefix:!1,type:0,parse:function(A,e){return 20===e.type&&"normal"===e.value?0:17===e.type||15===e.type?e.number:0}};(function(A){A["NORMAL"]="normal",A["STRICT"]="strict"})(De||(De={}));var Bt,ct={name:"line-break",initialValue:"normal",prefix:!1,type:2,parse:function(A,e){switch(e){case"strict":return De.STRICT;case"normal":default:return De.NORMAL}}},ut={name:"line-height",initialValue:"normal",prefix:!1,type:4},lt=function(A,e){return VA(A)&&"normal"===A.value?1.2*e:17===A.type?e*A.number:ZA(A)?ee(A,e):e},gt={name:"list-style-image",initialValue:"none",type:0,prefix:!1,parse:function(A,e){return 20===e.type&&"none"===e.value?null:He.parse(A,e)}},dt={name:"list-style-position",initialValue:"outside",prefix:!1,type:2,parse:function(A,e){switch(e){case"inside":return 0;case"outside":default:return 1}}},wt={name:"list-style-type",initialValue:"none",prefix:!1,type:2,parse:function(A,e){switch(e){case"disc":return 0;case"circle":return 1;case"square":return 2;case"decimal":return 3;case"cjk-decimal":return 4;case"decimal-leading-zero":return 5;case"lower-roman":return 6;case"upper-roman":return 7;case"lower-greek":return 8;case"lower-alpha":return 9;case"upper-alpha":return 10;case"arabic-indic":return 11;case"armenian":return 12;case"bengali":return 13;case"cambodian":return 14;case"cjk-earthly-branch":return 15;case"cjk-heavenly-stem":return 16;case"cjk-ideographic":return 17;case"devanagari":return 18;case"ethiopic-numeric":return 19;case"georgian":return 20;case"gujarati":return 21;case"gurmukhi":return 22;case"hebrew":return 22;case"hiragana":return 23;case"hiragana-iroha":return 24;case"japanese-formal":return 25;case"japanese-informal":return 26;case"kannada":return 27;case"katakana":return 28;case"katakana-iroha":return 29;case"khmer":return 30;case"korean-hangul-formal":return 31;case"korean-hanja-formal":return 32;case"korean-hanja-informal":return 33;case"lao":return 34;case"lower-armenian":return 35;case"malayalam":return 36;case"mongolian":return 37;case"myanmar":return 38;case"oriya":return 39;case"persian":return 40;case"simp-chinese-formal":return 41;case"simp-chinese-informal":return 42;case"tamil":return 43;case"telugu":return 44;case"thai":return 45;case"tibetan":return 46;case"trad-chinese-formal":return 47;case"trad-chinese-informal":return 48;case"upper-armenian":return 49;case"disclosure-open":return 50;case"disclosure-closed":return 51;case"none":default:return-1}}},ht=function(A){return{name:"margin-"+A,initialValue:"0",prefix:!1,type:4}},Qt=ht("top"),ft=ht("right"),Ct=ht("bottom"),pt=ht("left"),Ut={name:"overflow",initialValue:"visible",prefix:!1,type:1,parse:function(A,e){return e.filter(VA).map((function(A){switch(A.value){case"hidden":return 1;case"scroll":return 2;case"clip":return 3;case"auto":return 4;case"visible":default:return 0}}))}},Ft={name:"overflow-wrap",initialValue:"normal",prefix:!1,type:2,parse:function(A,e){switch(e){case"break-word":return"break-word";case"normal":default:return"normal"}}},vt=function(A){return{name:"padding-"+A,initialValue:"0",prefix:!1,type:3,format:"length-percentage"}},mt=vt("top"),yt=vt("right"),Ht=vt("bottom"),Et=vt("left"),It={name:"text-align",initialValue:"left",prefix:!1,type:2,parse:function(A,e){switch(e){case"right":return 2;case"center":case"justify":return 1;case"left":default:return 0}}},bt={name:"position",initialValue:"static",prefix:!1,type:2,parse:function(A,e){switch(e){case"relative":return 1;case"absolute":return 2;case"fixed":return 3;case"sticky":return 4}return 0}},xt={name:"text-shadow",initialValue:"none",type:1,prefix:!1,parse:function(A,e){return 1===e.length&&NA(e[0],"none")?[]:JA(e).map((function(e){for(var t={color:he.TRANSPARENT,offsetX:zA,offsetY:zA,blur:zA},n=0,r=0;r1?1:0],this.overflowWrap=cn(A,Ft,e.overflowWrap),this.paddingTop=cn(A,mt,e.paddingTop),this.paddingRight=cn(A,yt,e.paddingRight),this.paddingBottom=cn(A,Ht,e.paddingBottom),this.paddingLeft=cn(A,Et,e.paddingLeft),this.paintOrder=cn(A,nn,e.paintOrder),this.position=cn(A,bt,e.position),this.textAlign=cn(A,It,e.textAlign),this.textDecorationColor=cn(A,Rt,null!==(t=e.textDecorationColor)&&void 0!==t?t:e.color),this.textDecorationLine=cn(A,Nt,null!==(n=e.textDecorationLine)&&void 0!==n?n:e.textDecoration),this.textShadow=cn(A,xt,e.textShadow),this.textTransform=cn(A,Kt,e.textTransform),this.transform=cn(A,Lt,e.transform),this.transformOrigin=cn(A,Mt,e.transformOrigin),this.visibility=cn(A,kt,e.visibility),this.webkitTextStrokeColor=cn(A,rn,e.webkitTextStrokeColor),this.webkitTextStrokeWidth=cn(A,on,e.webkitTextStrokeWidth),this.wordBreak=cn(A,Ot,e.wordBreak),this.zIndex=cn(A,Gt,e.zIndex)}return A.prototype.isVisible=function(){return this.display>0&&this.opacity>0&&0===this.visibility},A.prototype.isTransparent=function(){return se(this.backgroundColor)},A.prototype.isTransformed=function(){return null!==this.transform},A.prototype.isPositioned=function(){return 0!==this.position},A.prototype.isPositionedWithZIndex=function(){return this.isPositioned()&&!this.zIndex.auto},A.prototype.isFloating=function(){return 0!==this.float},A.prototype.isInlineLevel=function(){return Zt(this.display,4)||Zt(this.display,33554432)||Zt(this.display,268435456)||Zt(this.display,536870912)||Zt(this.display,67108864)||Zt(this.display,134217728)},A}(),an=function(){return function(A,e){this.content=cn(A,jt,e.content),this.quotes=cn(A,An,e.quotes)}}(),Bn=function(){return function(A,e){this.counterIncrement=cn(A,zt,e.counterIncrement),this.counterReset=cn(A,qt,e.counterReset)}}(),cn=function(A,e,t){var n=new kA,r=null!==t&&"undefined"!==typeof t?t.toString():e.initialValue;n.write(r);var i=new OA(n.read());switch(e.type){case 2:var o=i.parseComponentValue();return e.parse(A,VA(o)?o.value:e.initialValue);case 0:return e.parse(A,i.parseComponentValue());case 1:return e.parse(A,i.parseComponentValues());case 4:return i.parseComponentValue();case 3:switch(e.format){case"angle":return te.parse(A,i.parseComponentValue());case"color":return oe.parse(A,i.parseComponentValue());case"image":return He.parse(A,i.parseComponentValue());case"length":var s=i.parseComponentValue();return YA(s)?s:zA;case"length-percentage":var a=i.parseComponentValue();return ZA(a)?a:zA;case"time":return Pt.parse(A,i.parseComponentValue())}break}},un=function(A,e){var t=function(A){var e=A.getAttribute("data-html2canvas-debug");switch(e){case"all":return 1;case"clone":return 2;case"parse":return 3;case"render":return 4;default:return 0}}(A);return 1===t||e===t},ln=function(){return function(A,e){this.context=A,this.textNodes=[],this.elements=[],this.flags=0,un(e,3),this.styles=new sn(A,window.getComputedStyle(e,null)),ur(e)&&(this.styles.animationDuration.some((function(A){return A>0}))&&(e.style.animationDuration="0s"),null!==this.styles.transform&&(e.style.transform="none")),this.bounds=a(this.context,e),un(e,4)&&(this.flags|=16)}}(),gn="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",dn="undefined"===typeof Uint8Array?[]:new Uint8Array(256),wn=0;wn=0){if(A<55296||A>56319&&A<=65535)return e=this.index[A>>5],e=(e<<2)+(31&A),this.data[e];if(A<=65535)return e=this.index[2048+(A-55296>>5)],e=(e<<2)+(31&A),this.data[e];if(A>11),e=this.index[e],e+=A>>5&63,e=this.index[e],e=(e<<2)+(31&A),this.data[e];if(A<=1114111)return this.data[this.highValueIndex]}return this.errorValue},A}(),fn="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",Cn="undefined"===typeof Uint8Array?[]:new Uint8Array(256),pn=0;pn>10),o%1024+56320)),(r+1===t||n.length>16384)&&(i+=String.fromCharCode.apply(String,n),n.length=0)}return i},En=function(A,e){var t=function(A){var e,t,n,r,i,o=.75*A.length,s=A.length,a=0;"="===A[A.length-1]&&(o--,"="===A[A.length-2]&&o--);var B="undefined"!==typeof ArrayBuffer&&"undefined"!==typeof Uint8Array&&"undefined"!==typeof Uint8Array.prototype.slice?new ArrayBuffer(o):new Array(o),c=Array.isArray(B)?B:new Uint8Array(B);for(e=0;e>4,c[a++]=(15&n)<<4|r>>2,c[a++]=(3&r)<<6|63&i;return B}(A),n=Array.isArray(t)?function(A){for(var e=A.length,t=[],n=0;n=55296&&r<=56319&&t=t)return{done:!0,value:null};var A="×";while(no.x||r.y>o.y;return o=r,0===e||s}));return A.body.removeChild(e),s}(document);return Object.defineProperty(Dn,"SUPPORT_WORD_BREAKING",{value:A}),A},get SUPPORT_SVG_DRAWING(){var A=function(A){var e=new Image,t=A.createElement("canvas"),n=t.getContext("2d");if(!n)return!1;e.src="data:image/svg+xml,";try{n.drawImage(e,0,0),t.toDataURL()}catch(r){return!1}return!0}(document);return Object.defineProperty(Dn,"SUPPORT_SVG_DRAWING",{value:A}),A},get SUPPORT_FOREIGNOBJECT_DRAWING(){var A="function"===typeof Array.from&&"function"===typeof window.fetch?function(A){var e=A.createElement("canvas");e.width=100,e.height=100;var t=e.getContext("2d");if(!t)return Promise.reject(!1);t.fillStyle="rgb(0, 255, 0)",t.fillRect(0,0,100,100);var n=new Image,r=e.toDataURL();n.src=r;var i=Ln(100,100,0,0,n);return t.fillStyle="red",t.fillRect(0,0,100,100),Sn(i).then((function(e){t.drawImage(e,0,0);var n=t.getImageData(0,0,100,100).data;t.fillStyle="red",t.fillRect(0,0,100,100);var i=A.createElement("div");return i.style.backgroundImage="url("+r+")",i.style.height="100px",Kn(n)?Sn(Ln(100,100,0,0,i)):Promise.reject(!1)})).then((function(A){return t.drawImage(A,0,0),Kn(t.getImageData(0,0,100,100).data)})).catch((function(){return!1}))}(document):Promise.resolve(!1);return Object.defineProperty(Dn,"SUPPORT_FOREIGNOBJECT_DRAWING",{value:A}),A},get SUPPORT_CORS_IMAGES(){var A=function(){return"undefined"!==typeof(new Image).crossOrigin}();return Object.defineProperty(Dn,"SUPPORT_CORS_IMAGES",{value:A}),A},get SUPPORT_RESPONSE_TYPE(){var A=function(){return"string"===typeof(new XMLHttpRequest).responseType}();return Object.defineProperty(Dn,"SUPPORT_RESPONSE_TYPE",{value:A}),A},get SUPPORT_CORS_XHR(){var A="withCredentials"in new XMLHttpRequest;return Object.defineProperty(Dn,"SUPPORT_CORS_XHR",{value:A}),A},get SUPPORT_NATIVE_TEXT_SEGMENTATION(){var A=!("undefined"===typeof Intl||!Intl.Segmenter);return Object.defineProperty(Dn,"SUPPORT_NATIVE_TEXT_SEGMENTATION",{value:A}),A}},Tn=function(){return function(A,e){this.text=A,this.bounds=e}}(),Mn=function(A,e){var t=e.ownerDocument;if(t){var n=t.createElement("html2canvaswrapper");n.appendChild(e.cloneNode(!0));var r=e.parentNode;if(r){r.replaceChild(n,e);var i=a(A,n);return n.firstChild&&r.replaceChild(n.firstChild,n),i}}return s.EMPTY},kn=function(A,e,t){var n=A.ownerDocument;if(!n)throw new Error("Node has no owner document");var r=n.createRange();return r.setStart(A,e),r.setEnd(A,e+t),r},On=function(A){if(Dn.SUPPORT_NATIVE_TEXT_SEGMENTATION){var e=new Intl.Segmenter(void 0,{granularity:"grapheme"});return Array.from(e.segment(A)).map((function(A){return A.segment}))}return function(A){var e,t=xn(A),n=[];while(!(e=t.next()).done)e.value&&n.push(e.value.slice());return n}(A)},Gn=function(A,e){return 0!==e.letterSpacing?On(A):function(A,e){if(Dn.SUPPORT_NATIVE_TEXT_SEGMENTATION){var t=new Intl.Segmenter(void 0,{granularity:"word"});return Array.from(t.segment(A)).map((function(A){return A.segment}))}return Vn(A,e)}(A,e)},Pn=[32,160,4961,65792,65793,4153,4241],Vn=function(A,e){var t,n=function(A,e){var t=B(A),n=rA(t,e),r=n[0],i=n[1],o=n[2],s=t.length,a=0,c=0;return{next:function(){if(c>=s)return{done:!0,value:null};var A="×";while(c0)if(Dn.SUPPORT_RANGE_BOUNDS){var r=kn(n,o,e.length).getClientRects();if(r.length>1){var a=On(e),B=0;a.forEach((function(e){i.push(new Tn(e,s.fromDOMRectList(A,kn(n,B+o,e.length).getClientRects()))),B+=e.length}))}else i.push(new Tn(e,s.fromDOMRectList(A,r)))}else{var c=n.splitText(e.length);i.push(new Tn(e,Mn(A,n))),n=c}else Dn.SUPPORT_RANGE_BOUNDS||(n=n.splitText(e.length));o+=e.length})),i}(A,this.text,t,e)}}(),Nn=function(A,e){switch(e){case 1:return A.toLowerCase();case 3:return A.replace(_n,Xn);case 2:return A.toUpperCase();default:return A}},_n=/(^|\s|:|-|\(|\))([a-z])/g,Xn=function(A,e,t){return A.length>0?e+t.toUpperCase():A},Jn=function(A){function t(e,t){var n=A.call(this,e,t)||this;return n.src=t.currentSrc||t.src,n.intrinsicWidth=t.naturalWidth,n.intrinsicHeight=t.naturalHeight,n.context.cache.addImage(n.src),n}return e(t,A),t}(ln),Wn=function(A){function t(e,t){var n=A.call(this,e,t)||this;return n.canvas=t,n.intrinsicWidth=t.width,n.intrinsicHeight=t.height,n}return e(t,A),t}(ln),Yn=function(A){function t(e,t){var n=A.call(this,e,t)||this,r=new XMLSerializer,i=a(e,t);return t.setAttribute("width",i.width+"px"),t.setAttribute("height",i.height+"px"),n.svg="data:image/svg+xml,"+encodeURIComponent(r.serializeToString(t)),n.intrinsicWidth=t.width.baseVal.value,n.intrinsicHeight=t.height.baseVal.value,n.context.cache.addImage(n.svg),n}return e(t,A),t}(ln),Zn=function(A){function t(e,t){var n=A.call(this,e,t)||this;return n.value=t.value,n}return e(t,A),t}(ln),jn=function(A){function t(e,t){var n=A.call(this,e,t)||this;return n.start=t.start,n.reversed="boolean"===typeof t.reversed&&!0===t.reversed,n}return e(t,A),t}(ln),zn=[{type:15,flags:0,unit:"px",number:3}],qn=[{type:16,flags:0,number:50}],$n="password",Ar=function(A){function t(e,t){var n=A.call(this,e,t)||this;switch(n.type=t.type.toLowerCase(),n.checked=t.checked,n.value=function(A){var e=A.type===$n?new Array(A.value.length+1).join("•"):A.value;return 0===e.length?A.placeholder||"":e}(t),"checkbox"!==n.type&&"radio"!==n.type||(n.styles.backgroundColor=3739148031,n.styles.borderTopColor=n.styles.borderRightColor=n.styles.borderBottomColor=n.styles.borderLeftColor=2779096575,n.styles.borderTopWidth=n.styles.borderRightWidth=n.styles.borderBottomWidth=n.styles.borderLeftWidth=1,n.styles.borderTopStyle=n.styles.borderRightStyle=n.styles.borderBottomStyle=n.styles.borderLeftStyle=1,n.styles.backgroundClip=[0],n.styles.backgroundOrigin=[0],n.bounds=function(A){return A.width>A.height?new s(A.left+(A.width-A.height)/2,A.top,A.height,A.height):A.width0)n.textNodes.push(new Rn(e,i,n.styles));else if(cr(i))if(yr(i)&&i.assignedNodes)i.assignedNodes().forEach((function(t){return A(e,t,n,r)}));else{var s=ir(e,i);s.styles.isVisible()&&(sr(i,s,r)?s.flags|=4:ar(s.styles)&&(s.flags|=2),-1!==rr.indexOf(i.tagName)&&(s.flags|=8),n.elements.push(s),i.slot,i.shadowRoot?A(e,i.shadowRoot,s,r):vr(i)||hr(i)||mr(i)||A(e,i,s,r))}}(A,e,t,t),t},sr=function(A,e,t){return e.styles.isPositionedWithZIndex()||e.styles.opacity<1||e.styles.isTransformed()||Qr(A)&&t.styles.isTransparent()},ar=function(A){return A.isPositioned()||A.isFloating()},Br=function(A){return A.nodeType===Node.TEXT_NODE},cr=function(A){return A.nodeType===Node.ELEMENT_NODE},ur=function(A){return cr(A)&&"undefined"!==typeof A.style&&!lr(A)},lr=function(A){return"object"===i(A.className)},gr=function(A){return"LI"===A.tagName},dr=function(A){return"OL"===A.tagName},wr=function(A){return"INPUT"===A.tagName},hr=function(A){return"svg"===A.tagName},Qr=function(A){return"BODY"===A.tagName},fr=function(A){return"CANVAS"===A.tagName},Cr=function(A){return"VIDEO"===A.tagName},pr=function(A){return"IMG"===A.tagName},Ur=function(A){return"IFRAME"===A.tagName},Fr=function(A){return"STYLE"===A.tagName},vr=function(A){return"TEXTAREA"===A.tagName},mr=function(A){return"SELECT"===A.tagName},yr=function(A){return"SLOT"===A.tagName},Hr=function(A){return A.tagName.indexOf("-")>0},Er=function(){function A(){this.counters={}}return A.prototype.getCounterValue=function(A){var e=this.counters[A];return e&&e.length?e[e.length-1]:1},A.prototype.getCounterValues=function(A){var e=this.counters[A];return e||[]},A.prototype.pop=function(A){var e=this;A.forEach((function(A){return e.counters[A].pop()}))},A.prototype.parse=function(A){var e=this,t=A.counterIncrement,n=A.counterReset,r=!0;null!==t&&t.forEach((function(A){var t=e.counters[A.counter];t&&0!==A.increment&&(r=!1,t.length||t.push(1),t[Math.max(0,t.length-1)]+=A.increment)}));var i=[];return r&&n.forEach((function(A){var t=e.counters[A.counter];i.push(A.counter),t||(t=e.counters[A.counter]=[]),t.push(A.reset)})),i},A}(),Ir={integers:[1e3,900,500,400,100,90,50,40,10,9,5,4,1],values:["M","CM","D","CD","C","XC","L","XL","X","IX","V","IV","I"]},br={integers:[9e3,8e3,7e3,6e3,5e3,4e3,3e3,2e3,1e3,900,800,700,600,500,400,300,200,100,90,80,70,60,50,40,30,20,10,9,8,7,6,5,4,3,2,1],values:["Ք","Փ","Ւ","Ց","Ր","Տ","Վ","Ս","Ռ","Ջ","Պ","Չ","Ո","Շ","Ն","Յ","Մ","Ճ","Ղ","Ձ","Հ","Կ","Ծ","Խ","Լ","Ի","Ժ","Թ","Ը","Է","Զ","Ե","Դ","Գ","Բ","Ա"]},xr={integers:[1e4,9e3,8e3,7e3,6e3,5e3,4e3,3e3,2e3,1e3,400,300,200,100,90,80,70,60,50,40,30,20,19,18,17,16,15,10,9,8,7,6,5,4,3,2,1],values:["י׳","ט׳","ח׳","ז׳","ו׳","ה׳","ד׳","ג׳","ב׳","א׳","ת","ש","ר","ק","צ","פ","ע","ס","נ","מ","ל","כ","יט","יח","יז","טז","טו","י","ט","ח","ז","ו","ה","ד","ג","ב","א"]},Kr={integers:[1e4,9e3,8e3,7e3,6e3,5e3,4e3,3e3,2e3,1e3,900,800,700,600,500,400,300,200,100,90,80,70,60,50,40,30,20,10,9,8,7,6,5,4,3,2,1],values:["ჵ","ჰ","ჯ","ჴ","ხ","ჭ","წ","ძ","ც","ჩ","შ","ყ","ღ","ქ","ფ","ჳ","ტ","ს","რ","ჟ","პ","ო","ჲ","ნ","მ","ლ","კ","ი","თ","ჱ","ზ","ვ","ე","დ","გ","ბ","ა"]},Lr=function(A,e,t,n,r,i){return At?kr(A,r,i.length>0):n.integers.reduce((function(e,t,r){while(A>=t)A-=t,e+=n.values[r];return e}),"")+i},Sr=function(A,e,t,n){var r="";do{t||A--,r=n(A)+r,A/=e}while(A*e>=e);return r},Dr=function(A,e,t,n,r){var i=t-e+1;return(A<0?"-":"")+(Sr(Math.abs(A),i,n,(function(A){return c(Math.floor(A%i)+e)}))+r)},Tr=function(A,e,t){void 0===t&&(t=". ");var n=e.length;return Sr(Math.abs(A),n,!1,(function(A){return e[Math.floor(A%n)]}))+t},Mr=function(A,e,t,n,r,i){if(A<-9999||A>9999)return kr(A,4,r.length>0);var o=Math.abs(A),s=r;if(0===o)return e[0]+s;for(var a=0;o>0&&a<=4;a++){var B=o%10;0===B&&Zt(i,1)&&""!==s?s=e[B]+s:B>1||1===B&&0===a||1===B&&1===a&&Zt(i,2)||1===B&&1===a&&Zt(i,4)&&A>100||1===B&&a>1&&Zt(i,8)?s=e[B]+(a>0?t[a-1]:"")+s:1===B&&a>0&&(s=t[a-1]+s),o=Math.floor(o/10)}return(A<0?n:"")+s},kr=function(A,e,t){var n=t?". ":"",r=t?"、":"",i=t?", ":"",o=t?" ":"";switch(e){case 0:return"•"+o;case 1:return"◦"+o;case 2:return"◾"+o;case 5:var s=Dr(A,48,57,!0,n);return s.length<4?"0"+s:s;case 4:return Tr(A,"〇一二三四五六七八九",r);case 6:return Lr(A,1,3999,Ir,3,n).toLowerCase();case 7:return Lr(A,1,3999,Ir,3,n);case 8:return Dr(A,945,969,!1,n);case 9:return Dr(A,97,122,!1,n);case 10:return Dr(A,65,90,!1,n);case 11:return Dr(A,1632,1641,!0,n);case 12:case 49:return Lr(A,1,9999,br,3,n);case 35:return Lr(A,1,9999,br,3,n).toLowerCase();case 13:return Dr(A,2534,2543,!0,n);case 14:case 30:return Dr(A,6112,6121,!0,n);case 15:return Tr(A,"子丑寅卯辰巳午未申酉戌亥",r);case 16:return Tr(A,"甲乙丙丁戊己庚辛壬癸",r);case 17:case 48:return Mr(A,"零一二三四五六七八九","十百千萬","負",r,14);case 47:return Mr(A,"零壹貳參肆伍陸柒捌玖","拾佰仟萬","負",r,15);case 42:return Mr(A,"零一二三四五六七八九","十百千萬","负",r,14);case 41:return Mr(A,"零壹贰叁肆伍陆柒捌玖","拾佰仟萬","负",r,15);case 26:return Mr(A,"〇一二三四五六七八九","十百千万","マイナス",r,0);case 25:return Mr(A,"零壱弐参四伍六七八九","拾百千万","マイナス",r,7);case 31:return Mr(A,"영일이삼사오육칠팔구","십백천만","마이너스",i,7);case 33:return Mr(A,"零一二三四五六七八九","十百千萬","마이너스",i,0);case 32:return Mr(A,"零壹貳參四五六七八九","拾百千","마이너스",i,7);case 18:return Dr(A,2406,2415,!0,n);case 20:return Lr(A,1,19999,Kr,3,n);case 21:return Dr(A,2790,2799,!0,n);case 22:return Dr(A,2662,2671,!0,n);case 22:return Lr(A,1,10999,xr,3,n);case 23:return Tr(A,"あいうえおかきくけこさしすせそたちつてとなにぬねのはひふへほまみむめもやゆよらりるれろわゐゑをん");case 24:return Tr(A,"いろはにほへとちりぬるをわかよたれそつねならむうゐのおくやまけふこえてあさきゆめみしゑひもせす");case 27:return Dr(A,3302,3311,!0,n);case 28:return Tr(A,"アイウエオカキクケコサシスセソタチツテトナニヌネノハヒフヘホマミムメモヤユヨラリルレロワヰヱヲン",r);case 29:return Tr(A,"イロハニホヘトチリヌルヲワカヨタレソツネナラムウヰノオクヤマケフコエテアサキユメミシヱヒモセス",r);case 34:return Dr(A,3792,3801,!0,n);case 37:return Dr(A,6160,6169,!0,n);case 38:return Dr(A,4160,4169,!0,n);case 39:return Dr(A,2918,2927,!0,n);case 40:return Dr(A,1776,1785,!0,n);case 43:return Dr(A,3046,3055,!0,n);case 44:return Dr(A,3174,3183,!0,n);case 45:return Dr(A,3664,3673,!0,n);case 46:return Dr(A,3872,3881,!0,n);case 3:default:return Dr(A,48,57,!0,n)}},Or=function(){function A(A,e,t){if(this.context=A,this.options=t,this.scrolledElements=[],this.referenceElement=e,this.counters=new Er,this.quoteDepth=0,!e.ownerDocument)throw new Error("Cloned element does not have an owner document");this.documentElement=this.cloneNode(e.ownerDocument.documentElement,!1)}return A.prototype.toIFrame=function(A,e){var t=this,i=Pr(A,e);if(!i.contentWindow)return Promise.reject("Unable to find iframe window");var o=A.defaultView.pageXOffset,s=A.defaultView.pageYOffset,a=i.contentWindow,B=a.document,c=Nr(i).then((function(){return n(t,void 0,void 0,(function(){var A,t;return r(this,(function(n){switch(n.label){case 0:return this.scrolledElements.forEach(Yr),a&&(a.scrollTo(e.left,e.top),!/(iPad|iPhone|iPod)/g.test(navigator.userAgent)||a.scrollY===e.top&&a.scrollX===e.left||(this.context.logger.warn("Unable to restore scroll position for cloned document"),this.context.windowBounds=this.context.windowBounds.add(a.scrollX-e.left,a.scrollY-e.top,0,0))),A=this.options.onclone,t=this.clonedReferenceElement,"undefined"===typeof t?[2,Promise.reject("Error finding the "+this.referenceElement.nodeName+" in the cloned document")]:B.fonts&&B.fonts.ready?[4,B.fonts.ready]:[3,2];case 1:n.sent(),n.label=2;case 2:return/(AppleWebKit)/g.test(navigator.userAgent)?[4,Rr(B)]:[3,4];case 3:n.sent(),n.label=4;case 4:return"function"===typeof A?[2,Promise.resolve().then((function(){return A(B,t)})).then((function(){return i}))]:[2,i]}}))}))}));return B.open(),B.write(Jr(document.doctype)+""),Wr(this.referenceElement.ownerDocument,o,s),B.replaceChild(B.adoptNode(this.documentElement),B.documentElement),B.close(),c},A.prototype.createElementClone=function(A){if(un(A,2),fr(A))return this.createCanvasClone(A);if(Cr(A))return this.createVideoClone(A);if(Fr(A))return this.createStyleClone(A);var e=A.cloneNode(!1);return pr(e)&&(pr(A)&&A.currentSrc&&A.currentSrc!==A.src&&(e.src=A.currentSrc,e.srcset=""),"lazy"===e.loading&&(e.loading="eager")),Hr(e)?this.createCustomElementClone(e):e},A.prototype.createCustomElementClone=function(A){var e=document.createElement("html2canvascustomelement");return Xr(A.style,e),e},A.prototype.createStyleClone=function(A){try{var e=A.sheet;if(e&&e.cssRules){var t=[].slice.call(e.cssRules,0).reduce((function(A,e){return e&&"string"===typeof e.cssText?A+e.cssText:A}),""),n=A.cloneNode(!1);return n.textContent=t,n}}catch(r){if(this.context.logger.error("Unable to access cssRules property",r),"SecurityError"!==r.name)throw r}return A.cloneNode(!1)},A.prototype.createCanvasClone=function(A){var e;if(this.options.inlineImages&&A.ownerDocument){var t=A.ownerDocument.createElement("img");try{return t.src=A.toDataURL(),t}catch(a){this.context.logger.info("Unable to inline canvas contents, canvas is tainted",A)}}var n=A.cloneNode(!1);try{n.width=A.width,n.height=A.height;var r=A.getContext("2d"),i=n.getContext("2d");if(i)if(!this.options.allowTaint&&r)i.putImageData(r.getImageData(0,0,A.width,A.height),0,0);else{var o=null!==(e=A.getContext("webgl2"))&&void 0!==e?e:A.getContext("webgl");if(o){var s=o.getContextAttributes();!1===(null===s||void 0===s?void 0:s.preserveDrawingBuffer)&&this.context.logger.warn("Unable to clone WebGL context as it has preserveDrawingBuffer=false",A)}i.drawImage(A,0,0)}return n}catch(a){this.context.logger.info("Unable to clone canvas as it is tainted",A)}return n},A.prototype.createVideoClone=function(A){var e=A.ownerDocument.createElement("canvas");e.width=A.offsetWidth,e.height=A.offsetHeight;var t=e.getContext("2d");try{return t&&(t.drawImage(A,0,0,e.width,e.height),this.options.allowTaint||t.getImageData(0,0,e.width,e.height)),e}catch(r){this.context.logger.info("Unable to clone video as it is tainted",A)}var n=A.ownerDocument.createElement("canvas");return n.width=A.offsetWidth,n.height=A.offsetHeight,n},A.prototype.appendChildNode=function(A,e,t){cr(e)&&(function(A){return"SCRIPT"===A.tagName}(e)||e.hasAttribute("data-html2canvas-ignore")||"function"===typeof this.options.ignoreElements&&this.options.ignoreElements(e))||this.options.copyStyles&&cr(e)&&Fr(e)||A.appendChild(this.cloneNode(e,t))},A.prototype.cloneChildNodes=function(A,e,t){for(var n=this,r=A.shadowRoot?A.shadowRoot.firstChild:A.firstChild;r;r=r.nextSibling)if(cr(r)&&yr(r)&&"function"===typeof r.assignedNodes){var i=r.assignedNodes();i.length&&i.forEach((function(A){return n.appendChildNode(e,A,t)}))}else this.appendChildNode(e,r,t)},A.prototype.cloneNode=function(A,e){if(Br(A))return document.createTextNode(A.data);if(!A.ownerDocument)return A.cloneNode(!1);var t=A.ownerDocument.defaultView;if(t&&cr(A)&&(ur(A)||lr(A))){var n=this.createElementClone(A);n.style.transitionProperty="none";var r=t.getComputedStyle(A),i=t.getComputedStyle(A,":before"),o=t.getComputedStyle(A,":after");this.referenceElement===A&&ur(n)&&(this.clonedReferenceElement=n),Qr(n)&&zr(n);var s=this.counters.parse(new Bn(this.context,r)),a=this.resolvePseudoContent(A,n,i,Un.BEFORE);Hr(A)&&(e=!0),Cr(A)||this.cloneChildNodes(A,n,e),a&&n.insertBefore(a,n.firstChild);var B=this.resolvePseudoContent(A,n,o,Un.AFTER);return B&&n.appendChild(B),this.counters.pop(s),(r&&(this.options.copyStyles||lr(A))&&!Ur(A)||e)&&Xr(r,n),0===A.scrollTop&&0===A.scrollLeft||this.scrolledElements.push([n,A.scrollLeft,A.scrollTop]),(vr(A)||mr(A))&&(vr(n)||mr(n))&&(n.value=A.value),n}return A.cloneNode(!1)},A.prototype.resolvePseudoContent=function(A,e,t,n){var r=this;if(t){var i=t.content,o=e.ownerDocument;if(o&&i&&"none"!==i&&"-moz-alt-content"!==i&&"none"!==t.display){this.counters.parse(new Bn(this.context,t));var s=new an(this.context,t),a=o.createElement("html2canvaspseudoelement");Xr(t,a),s.content.forEach((function(e){if(0===e.type)a.appendChild(o.createTextNode(e.value));else if(22===e.type){var t=o.createElement("img");t.src=e.value,t.style.opacity="1",a.appendChild(t)}else if(18===e.type){if("attr"===e.name){var n=e.values.filter(VA);n.length&&a.appendChild(o.createTextNode(A.getAttribute(n[0].value)||""))}else if("counter"===e.name){var i=e.values.filter(XA),B=i[0],c=i[1];if(B&&VA(B)){var u=r.counters.getCounterValue(B.value),l=c&&VA(c)?wt.parse(r.context,c.value):3;a.appendChild(o.createTextNode(kr(u,l,!1)))}}else if("counters"===e.name){var g=e.values.filter(XA),d=(B=g[0],g[1]);c=g[2];if(B&&VA(B)){var w=r.counters.getCounterValues(B.value),h=c&&VA(c)?wt.parse(r.context,c.value):3,Q=d&&0===d.type?d.value:"",f=w.map((function(A){return kr(A,h,!1)})).join(Q);a.appendChild(o.createTextNode(f))}}}else if(20===e.type)switch(e.value){case"open-quote":a.appendChild(o.createTextNode(en(s.quotes,r.quoteDepth++,!0)));break;case"close-quote":a.appendChild(o.createTextNode(en(s.quotes,--r.quoteDepth,!1)));break;default:a.appendChild(o.createTextNode(e.value))}})),a.className=Zr+" "+jr;var B=n===Un.BEFORE?" "+Zr:" "+jr;return lr(e)?e.className.baseValue+=B:e.className+=B,a}}},A.destroy=function(A){return!!A.parentNode&&(A.parentNode.removeChild(A),!0)},A}();(function(A){A[A["BEFORE"]=0]="BEFORE",A[A["AFTER"]=1]="AFTER"})(Un||(Un={}));var Gr,Pr=function(A,e){var t=A.createElement("iframe");return t.className="html2canvas-container",t.style.visibility="hidden",t.style.position="fixed",t.style.left="-10000px",t.style.top="0px",t.style.border="0",t.width=e.width.toString(),t.height=e.height.toString(),t.scrolling="no",t.setAttribute("data-html2canvas-ignore","true"),A.body.appendChild(t),t},Vr=function(A){return new Promise((function(e){A.complete?e():A.src?(A.onload=e,A.onerror=e):e()}))},Rr=function(A){return Promise.all([].slice.call(A.images,0).map(Vr))},Nr=function(A){return new Promise((function(e,t){var n=A.contentWindow;if(!n)return t("No window assigned for iframe");var r=n.document;n.onload=A.onload=function(){n.onload=A.onload=null;var t=setInterval((function(){r.body.childNodes.length>0&&"complete"===r.readyState&&(clearInterval(t),e(A))}),50)}}))},_r=["all","d","content"],Xr=function(A,e){for(var t=A.length-1;t>=0;t--){var n=A.item(t);-1===_r.indexOf(n)&&e.style.setProperty(n,A.getPropertyValue(n))}return e},Jr=function(A){var e="";return A&&(e+=""),e},Wr=function(A,e,t){A&&A.defaultView&&(e!==A.defaultView.pageXOffset||t!==A.defaultView.pageYOffset)&&A.defaultView.scrollTo(e,t)},Yr=function(A){var e=A[0],t=A[1],n=A[2];e.scrollLeft=t,e.scrollTop=n},Zr="___html2canvas___pseudoelement_before",jr="___html2canvas___pseudoelement_after",zr=function(A){qr(A,"."+Zr+':before{\n content: "" !important;\n display: none !important;\n}\n .'+jr+':after{\n content: "" !important;\n display: none !important;\n}')},qr=function(A,e){var t=A.ownerDocument;if(t){var n=t.createElement("style");n.textContent=e,A.appendChild(n)}},$r=function(){function A(){}return A.getOrigin=function(e){var t=A._link;return t?(t.href=e,t.href=t.href,t.protocol+t.hostname+t.port):"about:blank"},A.isSameOrigin=function(e){return A.getOrigin(e)===A._origin},A.setContext=function(e){A._link=e.document.createElement("a"),A._origin=A.getOrigin(e.location.href)},A._origin="about:blank",A}(),Ai=function(){function A(A,e){this.context=A,this._options=e,this._cache={}}return A.prototype.addImage=function(A){var e=Promise.resolve();return this.has(A)?e:si(A)||ri(A)?((this._cache[A]=this.loadImage(A)).catch((function(){})),e):e},A.prototype.match=function(A){return this._cache[A]},A.prototype.loadImage=function(A){return n(this,void 0,void 0,(function(){var e,t,n,i,o=this;return r(this,(function(r){switch(r.label){case 0:return e=$r.isSameOrigin(A),t=!ii(A)&&!0===this._options.useCORS&&Dn.SUPPORT_CORS_IMAGES&&!e,n=!ii(A)&&!e&&!si(A)&&"string"===typeof this._options.proxy&&Dn.SUPPORT_CORS_XHR&&!t,e||!1!==this._options.allowTaint||ii(A)||si(A)||n||t?(i=A,n?[4,this.proxy(i)]:[3,2]):[2];case 1:i=r.sent(),r.label=2;case 2:return this.context.logger.debug("Added image "+A.substring(0,256)),[4,new Promise((function(A,e){var n=new Image;n.onload=function(){return A(n)},n.onerror=e,(oi(i)||t)&&(n.crossOrigin="anonymous"),n.src=i,!0===n.complete&&setTimeout((function(){return A(n)}),500),o._options.imageTimeout>0&&setTimeout((function(){return e("Timed out ("+o._options.imageTimeout+"ms) loading image")}),o._options.imageTimeout)}))];case 3:return[2,r.sent()]}}))}))},A.prototype.has=function(A){return"undefined"!==typeof this._cache[A]},A.prototype.keys=function(){return Promise.resolve(Object.keys(this._cache))},A.prototype.proxy=function(A){var e=this,t=this._options.proxy;if(!t)throw new Error("No proxy defined");var n=A.substring(0,256);return new Promise((function(r,i){var o=Dn.SUPPORT_RESPONSE_TYPE?"blob":"text",s=new XMLHttpRequest;s.onload=function(){if(200===s.status)if("text"===o)r(s.response);else{var A=new FileReader;A.addEventListener("load",(function(){return r(A.result)}),!1),A.addEventListener("error",(function(A){return i(A)}),!1),A.readAsDataURL(s.response)}else i("Failed to proxy resource "+n+" with status code "+s.status)},s.onerror=i;var a=t.indexOf("?")>-1?"&":"?";if(s.open("GET",""+t+a+"url="+encodeURIComponent(A)+"&responseType="+o),"text"!==o&&s instanceof XMLHttpRequest&&(s.responseType=o),e._options.imageTimeout){var B=e._options.imageTimeout;s.timeout=B,s.ontimeout=function(){return i("Timed out ("+B+"ms) proxying "+n)}}s.send()}))},A}(),ei=/^data:image\/svg\+xml/i,ti=/^data:image\/.*;base64,/i,ni=/^data:image\/.*/i,ri=function(A){return Dn.SUPPORT_SVG_DRAWING||!ai(A)},ii=function(A){return ni.test(A)},oi=function(A){return ti.test(A)},si=function(A){return"blob"===A.substr(0,4)},ai=function(A){return"svg"===A.substr(-3).toLowerCase()||ei.test(A)},Bi=function(){function A(A,e){this.type=0,this.x=A,this.y=e}return A.prototype.add=function(e,t){return new A(this.x+e,this.y+t)},A}(),ci=function(A,e,t){return new Bi(A.x+(e.x-A.x)*t,A.y+(e.y-A.y)*t)},ui=function(){function A(A,e,t,n){this.type=1,this.start=A,this.startControl=e,this.endControl=t,this.end=n}return A.prototype.subdivide=function(e,t){var n=ci(this.start,this.startControl,e),r=ci(this.startControl,this.endControl,e),i=ci(this.endControl,this.end,e),o=ci(n,r,e),s=ci(r,i,e),a=ci(o,s,e);return t?new A(this.start,n,o,a):new A(a,s,i,this.end)},A.prototype.add=function(e,t){return new A(this.start.add(e,t),this.startControl.add(e,t),this.endControl.add(e,t),this.end.add(e,t))},A.prototype.reverse=function(){return new A(this.end,this.endControl,this.startControl,this.start)},A}(),li=function(A){return 1===A.type},gi=function(){return function(A){var e=A.styles,t=A.bounds,n=Ae(e.borderTopLeftRadius,t.width,t.height),r=n[0],i=n[1],o=Ae(e.borderTopRightRadius,t.width,t.height),s=o[0],a=o[1],B=Ae(e.borderBottomRightRadius,t.width,t.height),c=B[0],u=B[1],l=Ae(e.borderBottomLeftRadius,t.width,t.height),g=l[0],d=l[1],w=[];w.push((r+s)/t.width),w.push((g+c)/t.width),w.push((i+d)/t.height),w.push((a+u)/t.height);var h=Math.max.apply(Math,w);h>1&&(r/=h,i/=h,s/=h,a/=h,c/=h,u/=h,g/=h,d/=h);var Q=t.width-s,f=t.height-u,C=t.width-c,p=t.height-d,U=e.borderTopWidth,F=e.borderRightWidth,v=e.borderBottomWidth,m=e.borderLeftWidth,y=ee(e.paddingTop,A.bounds.width),H=ee(e.paddingRight,A.bounds.width),E=ee(e.paddingBottom,A.bounds.width),I=ee(e.paddingLeft,A.bounds.width);this.topLeftBorderDoubleOuterBox=r>0||i>0?di(t.left+m/3,t.top+U/3,r-m/3,i-U/3,Gr.TOP_LEFT):new Bi(t.left+m/3,t.top+U/3),this.topRightBorderDoubleOuterBox=r>0||i>0?di(t.left+Q,t.top+U/3,s-F/3,a-U/3,Gr.TOP_RIGHT):new Bi(t.left+t.width-F/3,t.top+U/3),this.bottomRightBorderDoubleOuterBox=c>0||u>0?di(t.left+C,t.top+f,c-F/3,u-v/3,Gr.BOTTOM_RIGHT):new Bi(t.left+t.width-F/3,t.top+t.height-v/3),this.bottomLeftBorderDoubleOuterBox=g>0||d>0?di(t.left+m/3,t.top+p,g-m/3,d-v/3,Gr.BOTTOM_LEFT):new Bi(t.left+m/3,t.top+t.height-v/3),this.topLeftBorderDoubleInnerBox=r>0||i>0?di(t.left+2*m/3,t.top+2*U/3,r-2*m/3,i-2*U/3,Gr.TOP_LEFT):new Bi(t.left+2*m/3,t.top+2*U/3),this.topRightBorderDoubleInnerBox=r>0||i>0?di(t.left+Q,t.top+2*U/3,s-2*F/3,a-2*U/3,Gr.TOP_RIGHT):new Bi(t.left+t.width-2*F/3,t.top+2*U/3),this.bottomRightBorderDoubleInnerBox=c>0||u>0?di(t.left+C,t.top+f,c-2*F/3,u-2*v/3,Gr.BOTTOM_RIGHT):new Bi(t.left+t.width-2*F/3,t.top+t.height-2*v/3),this.bottomLeftBorderDoubleInnerBox=g>0||d>0?di(t.left+2*m/3,t.top+p,g-2*m/3,d-2*v/3,Gr.BOTTOM_LEFT):new Bi(t.left+2*m/3,t.top+t.height-2*v/3),this.topLeftBorderStroke=r>0||i>0?di(t.left+m/2,t.top+U/2,r-m/2,i-U/2,Gr.TOP_LEFT):new Bi(t.left+m/2,t.top+U/2),this.topRightBorderStroke=r>0||i>0?di(t.left+Q,t.top+U/2,s-F/2,a-U/2,Gr.TOP_RIGHT):new Bi(t.left+t.width-F/2,t.top+U/2),this.bottomRightBorderStroke=c>0||u>0?di(t.left+C,t.top+f,c-F/2,u-v/2,Gr.BOTTOM_RIGHT):new Bi(t.left+t.width-F/2,t.top+t.height-v/2),this.bottomLeftBorderStroke=g>0||d>0?di(t.left+m/2,t.top+p,g-m/2,d-v/2,Gr.BOTTOM_LEFT):new Bi(t.left+m/2,t.top+t.height-v/2),this.topLeftBorderBox=r>0||i>0?di(t.left,t.top,r,i,Gr.TOP_LEFT):new Bi(t.left,t.top),this.topRightBorderBox=s>0||a>0?di(t.left+Q,t.top,s,a,Gr.TOP_RIGHT):new Bi(t.left+t.width,t.top),this.bottomRightBorderBox=c>0||u>0?di(t.left+C,t.top+f,c,u,Gr.BOTTOM_RIGHT):new Bi(t.left+t.width,t.top+t.height),this.bottomLeftBorderBox=g>0||d>0?di(t.left,t.top+p,g,d,Gr.BOTTOM_LEFT):new Bi(t.left,t.top+t.height),this.topLeftPaddingBox=r>0||i>0?di(t.left+m,t.top+U,Math.max(0,r-m),Math.max(0,i-U),Gr.TOP_LEFT):new Bi(t.left+m,t.top+U),this.topRightPaddingBox=s>0||a>0?di(t.left+Math.min(Q,t.width-F),t.top+U,Q>t.width+F?0:Math.max(0,s-F),Math.max(0,a-U),Gr.TOP_RIGHT):new Bi(t.left+t.width-F,t.top+U),this.bottomRightPaddingBox=c>0||u>0?di(t.left+Math.min(C,t.width-m),t.top+Math.min(f,t.height-v),Math.max(0,c-F),Math.max(0,u-v),Gr.BOTTOM_RIGHT):new Bi(t.left+t.width-F,t.top+t.height-v),this.bottomLeftPaddingBox=g>0||d>0?di(t.left+m,t.top+Math.min(p,t.height-v),Math.max(0,g-m),Math.max(0,d-v),Gr.BOTTOM_LEFT):new Bi(t.left+m,t.top+t.height-v),this.topLeftContentBox=r>0||i>0?di(t.left+m+I,t.top+U+y,Math.max(0,r-(m+I)),Math.max(0,i-(U+y)),Gr.TOP_LEFT):new Bi(t.left+m+I,t.top+U+y),this.topRightContentBox=s>0||a>0?di(t.left+Math.min(Q,t.width+m+I),t.top+U+y,Q>t.width+m+I?0:s-m+I,a-(U+y),Gr.TOP_RIGHT):new Bi(t.left+t.width-(F+H),t.top+U+y),this.bottomRightContentBox=c>0||u>0?di(t.left+Math.min(C,t.width-(m+I)),t.top+Math.min(f,t.height+U+y),Math.max(0,c-(F+H)),u-(v+E),Gr.BOTTOM_RIGHT):new Bi(t.left+t.width-(F+H),t.top+t.height-(v+E)),this.bottomLeftContentBox=g>0||d>0?di(t.left+m+I,t.top+p,Math.max(0,g-(m+I)),d-(v+E),Gr.BOTTOM_LEFT):new Bi(t.left+m+I,t.top+t.height-(v+E))}}();(function(A){A[A["TOP_LEFT"]=0]="TOP_LEFT",A[A["TOP_RIGHT"]=1]="TOP_RIGHT",A[A["BOTTOM_RIGHT"]=2]="BOTTOM_RIGHT",A[A["BOTTOM_LEFT"]=3]="BOTTOM_LEFT"})(Gr||(Gr={}));var di=function(A,e,t,n,r){var i=(Math.sqrt(2)-1)/3*4,o=t*i,s=n*i,a=A+t,B=e+n;switch(r){case Gr.TOP_LEFT:return new ui(new Bi(A,B),new Bi(A,B-s),new Bi(a-o,e),new Bi(a,e));case Gr.TOP_RIGHT:return new ui(new Bi(A,e),new Bi(A+o,e),new Bi(a,B-s),new Bi(a,B));case Gr.BOTTOM_RIGHT:return new ui(new Bi(a,e),new Bi(a,e+s),new Bi(A+o,B),new Bi(A,B));case Gr.BOTTOM_LEFT:default:return new ui(new Bi(a,B),new Bi(a-o,B),new Bi(A,e+s),new Bi(A,e))}},wi=function(A){return[A.topLeftBorderBox,A.topRightBorderBox,A.bottomRightBorderBox,A.bottomLeftBorderBox]},hi=function(A){return[A.topLeftPaddingBox,A.topRightPaddingBox,A.bottomRightPaddingBox,A.bottomLeftPaddingBox]},Qi=function(){return function(A,e,t){this.offsetX=A,this.offsetY=e,this.matrix=t,this.type=0,this.target=6}}(),fi=function(){return function(A,e){this.path=A,this.target=e,this.type=1}}(),Ci=function(){return function(A){this.opacity=A,this.type=2,this.target=6}}(),pi=function(A){return 1===A.type},Ui=function(A,e){return A.length===e.length&&A.some((function(A,t){return A===e[t]}))},Fi=function(){return function(A){this.element=A,this.inlineLevel=[],this.nonInlineLevel=[],this.negativeZIndex=[],this.zeroOrAutoZIndexOrTransformedOrOpacity=[],this.positiveZIndex=[],this.nonPositionedFloats=[],this.nonPositionedInlineLevel=[]}}(),vi=function(){function A(A,e){if(this.container=A,this.parent=e,this.effects=[],this.curves=new gi(this.container),this.container.styles.opacity<1&&this.effects.push(new Ci(this.container.styles.opacity)),null!==this.container.styles.transform){var t=this.container.bounds.left+this.container.styles.transformOrigin[0].number,n=this.container.bounds.top+this.container.styles.transformOrigin[1].number,r=this.container.styles.transform;this.effects.push(new Qi(t,n,r))}if(0!==this.container.styles.overflowX){var i=wi(this.curves),o=hi(this.curves);Ui(i,o)?this.effects.push(new fi(i,6)):(this.effects.push(new fi(i,2)),this.effects.push(new fi(o,4)))}}return A.prototype.getEffects=function(A){var e=-1===[2,3].indexOf(this.container.styles.position),t=this.parent,n=this.effects.slice(0);while(t){var r=t.effects.filter((function(A){return!pi(A)}));if(e||0!==t.container.styles.position||!t.parent){if(n.unshift.apply(n,r),e=-1===[2,3].indexOf(t.container.styles.position),0!==t.container.styles.overflowX){var i=wi(t.curves),o=hi(t.curves);Ui(i,o)||n.unshift(new fi(o,6))}}else n.unshift.apply(n,r);t=t.parent}return n.filter((function(e){return Zt(e.target,A)}))},A}(),mi=function(A,e){for(var t=A instanceof jn?A.start:1,n=A instanceof jn&&A.reversed,r=0;rA.element.container.styles.zIndex.order?(g=e,!1):g>0})),c.negativeZIndex.splice(g,0,u)}else if(l>0){var d=0;c.positiveZIndex.some((function(A,e){return l>=A.element.container.styles.zIndex.order?(d=e+1,!1):d>0})),c.positiveZIndex.splice(d,0,u)}else c.zeroOrAutoZIndexOrTransformedOrOpacity.push(u)}else i.styles.isFloating()?c.nonPositionedFloats.push(u):c.nonPositionedInlineLevel.push(u);A(a,u,o?u:n,B)}else i.styles.isInlineLevel()?t.inlineLevel.push(a):t.nonInlineLevel.push(a),A(a,t,n,B);Zt(i.flags,8)&&mi(i,B)}))}(e,t,t,n),mi(e.container,n),t},Hi=function(A,e){switch(e){case 0:return Ii(A.topLeftBorderBox,A.topLeftPaddingBox,A.topRightBorderBox,A.topRightPaddingBox);case 1:return Ii(A.topRightBorderBox,A.topRightPaddingBox,A.bottomRightBorderBox,A.bottomRightPaddingBox);case 2:return Ii(A.bottomRightBorderBox,A.bottomRightPaddingBox,A.bottomLeftBorderBox,A.bottomLeftPaddingBox);case 3:default:return Ii(A.bottomLeftBorderBox,A.bottomLeftPaddingBox,A.topLeftBorderBox,A.topLeftPaddingBox)}},Ei=function(A,e){var t=[];return li(A)?t.push(A.subdivide(.5,!1)):t.push(A),li(e)?t.push(e.subdivide(.5,!0)):t.push(e),t},Ii=function(A,e,t,n){var r=[];return li(A)?r.push(A.subdivide(.5,!1)):r.push(A),li(t)?r.push(t.subdivide(.5,!0)):r.push(t),li(n)?r.push(n.subdivide(.5,!0).reverse()):r.push(n),li(e)?r.push(e.subdivide(.5,!1).reverse()):r.push(e),r},bi=function(A){var e=A.bounds,t=A.styles;return e.add(t.borderLeftWidth,t.borderTopWidth,-(t.borderRightWidth+t.borderLeftWidth),-(t.borderTopWidth+t.borderBottomWidth))},xi=function(A){var e=A.styles,t=A.bounds,n=ee(e.paddingLeft,t.width),r=ee(e.paddingRight,t.width),i=ee(e.paddingTop,t.width),o=ee(e.paddingBottom,t.width);return t.add(n+e.borderLeftWidth,i+e.borderTopWidth,-(e.borderRightWidth+e.borderLeftWidth+n+r),-(e.borderTopWidth+e.borderBottomWidth+i+o))},Ki=function(A,e,t){var n=function(A,e){return 0===A?e.bounds:2===A?xi(e):bi(e)}(Ti(A.styles.backgroundOrigin,e),A),r=function(A,e){return 0===A?e.bounds:2===A?xi(e):bi(e)}(Ti(A.styles.backgroundClip,e),A),i=Di(Ti(A.styles.backgroundSize,e),t,n),o=i[0],s=i[1],a=Ae(Ti(A.styles.backgroundPosition,e),n.width-o,n.height-s),B=Mi(Ti(A.styles.backgroundRepeat,e),a,i,n,r),c=Math.round(n.left+a[0]),u=Math.round(n.top+a[1]);return[B,c,u,o,s]},Li=function(A){return VA(A)&&A.value===Ee.AUTO},Si=function(A){return"number"===typeof A},Di=function(A,e,t){var n=e[0],r=e[1],i=e[2],o=A[0],s=A[1];if(!o)return[0,0];if(ZA(o)&&s&&ZA(s))return[ee(o,t.width),ee(s,t.height)];var a=Si(i);if(VA(o)&&(o.value===Ee.CONTAIN||o.value===Ee.COVER)){if(Si(i)){var B=t.width/t.height;return B0&&A.intrinsicHeight>0){var n=xi(A),r=hi(e);this.path(r),this.ctx.save(),this.ctx.clip(),this.ctx.drawImage(t,0,0,A.intrinsicWidth,A.intrinsicHeight,n.left,n.top,n.width,n.height),this.ctx.restore()}},t.prototype.renderNodeContent=function(A){return n(this,void 0,void 0,(function(){var e,n,i,o,a,B,c,u,l,g,d,w,h,Q,f,C,p,U,F;return r(this,(function(r){switch(r.label){case 0:this.applyEffects(A.getEffects(4)),e=A.container,n=A.curves,i=e.styles,o=0,a=e.textNodes,r.label=1;case 1:return o0&&x>0&&(K=n.ctx.createRadialGradient(U+H,F+E,0,U+H,F+E,b),pe(t.stops,2*b).forEach((function(A){return K.addColorStop(A.stop,ae(A.color))})),n.path(p),n.ctx.fillStyle=K,b!==x?(L=A.bounds.left+.5*A.bounds.width,S=A.bounds.top+.5*A.bounds.height,D=x/b,T=1/D,n.ctx.save(),n.ctx.translate(L,S),n.ctx.transform(1,0,0,D,0,0),n.ctx.translate(-L,-S),n.ctx.fillRect(U,T*(F-S)+S,v,m*T),n.ctx.restore()):n.ctx.fill())):(a=Ki(A,e,[null,null,null]),p=a[0],H=a[1],E=a[2],v=a[3],m=a[4],B=Ue(t.angle,v,m),c=B[0],u=B[1],l=B[2],g=B[3],d=B[4],w=document.createElement("canvas"),w.width=v,w.height=m,h=w.getContext("2d"),Q=h.createLinearGradient(u,g,l,d),pe(t.stops,c).forEach((function(A){return Q.addColorStop(A.stop,ae(A.color))})),h.fillStyle=Q,h.fillRect(0,0,v,m),v>0&&m>0&&(f=n.ctx.createPattern(w,"repeat"),n.renderRepeat(p,f,H,E))),r.label=6;case 6:return e--,[2]}}))},n=this,i=0,o=A.styles.backgroundImage.slice(0).reverse(),a.label=1;case 1:return i0?2!==B.style?[3,5]:[4,this.renderDashedDottedBorder(B.color,B.width,o,A.curves,2)]:[3,11]):[3,13];case 4:return r.sent(),[3,11];case 5:return 3!==B.style?[3,7]:[4,this.renderDashedDottedBorder(B.color,B.width,o,A.curves,3)];case 6:return r.sent(),[3,11];case 7:return 4!==B.style?[3,9]:[4,this.renderDoubleBorder(B.color,B.width,o,A.curves)];case 8:return r.sent(),[3,11];case 9:return[4,this.renderSolidBorder(B.color,o,A.curves)];case 10:r.sent(),r.label=11;case 11:o++,r.label=12;case 12:return s++,[3,3];case 13:return[2]}}))}))},t.prototype.renderDashedDottedBorder=function(A,e,t,i,o){return n(this,void 0,void 0,(function(){var n,s,a,B,c,u,l,g,d,w,h,Q,f,C,p,U;return r(this,(function(r){return this.ctx.save(),n=function(A,e){switch(e){case 0:return Ei(A.topLeftBorderStroke,A.topRightBorderStroke);case 1:return Ei(A.topRightBorderStroke,A.bottomRightBorderStroke);case 2:return Ei(A.bottomRightBorderStroke,A.bottomLeftBorderStroke);case 3:default:return Ei(A.bottomLeftBorderStroke,A.topLeftBorderStroke)}}(i,t),s=Hi(i,t),2===o&&(this.path(s),this.ctx.clip()),li(s[0])?(a=s[0].start.x,B=s[0].start.y):(a=s[0].x,B=s[0].y),li(s[1])?(c=s[1].end.x,u=s[1].end.y):(c=s[1].x,u=s[1].y),l=0===t||2===t?Math.abs(a-c):Math.abs(B-u),this.ctx.beginPath(),3===o?this.formatPath(n):this.formatPath(s.slice(0,2)),g=e<3?3*e:2*e,d=e<3?2*e:e,3===o&&(g=e,d=e),w=!0,l<=2*g?w=!1:l<=2*g+d?(h=l/(2*g+d),g*=h,d*=h):(Q=Math.floor((l+d)/(g+d)),f=(l-Q*g)/(Q-1),C=(l-(Q+1)*g)/Q,d=C<=0||Math.abs(d-f)1?e-1:0),r=1;r2&&void 0!==arguments[2]?arguments[2]:{};return new Promise((function(n,i){var o=t.canvas,s=t.width,a=t.height,B=(t.destWidth,t.destHeight,t.x),c=void 0===B?0:B,u=t.y,l=void 0===u?0:u,g=t.preferToDataURL,d=uni.getSystemInfoSync(),w=d.pixelRatio,h=(0,r.default)((0,r.default)({},t),{},{canvasId:A,id:A,canvas:o,success:function(A){n(A.tempFilePath||A.filePath)},fail:function(A){i(A)}});if(o&&o.toDataURL&&g){uni.getSystemInfoSync().platform;if(c||l){var Q=uni.createOffscreenCanvas({type:"2d"}),f=Q.getContext("2d"),C=Math.floor(s*w),p=Math.floor(a*w);Q.width=C,Q.height=p;var U=o.createImage();U.onload=function(){f.drawImage(U,Math.floor(c*w),Math.floor(l*w),C,p,0,0,C,p);var A=Q.toDataURL();n(A),h.success&&h.success({tempFilePath:A})},U.src=o.toDataURL()}else{var F=o.toDataURL();n(F),h.success&&h.success({tempFilePath:F})}}else o&&o.toTempFilePath?o.toTempFilePath(h):uni.canvasToTempFilePath(h,e)}))}},"3da4":function(A,e,t){"use strict";t.r(e);var n=t("7c0e"),r=t("89fc");for(var i in r)["default"].indexOf(i)<0&&function(A){t.d(e,A,(function(){return r[A]}))}(i);t("14ee");var o=t("828b"),s=Object(o["a"])(r["default"],n["b"],n["c"],!1,null,"d75ea66c",null,!1,n["a"],void 0);e["default"]=s.exports},"3e37":function(A,e,t){"use strict";var n=t("8bdb"),r=t("71e9"),i=t("7992"),o=t("0a8b"),s=t("4135"),a=t("5075"),B=t("a537");n({target:"Promise",stat:!0,forced:B},{allSettled:function(A){var e=this,t=o.f(e),n=t.resolve,B=t.reject,c=s((function(){var t=i(e.resolve),o=[],s=0,B=1;a(A,(function(A){var i=s++,a=!1;B++,r(t,e,A).then((function(A){a||(a=!0,o[i]={status:"fulfilled",value:A},--B||n(o))}),(function(A){a||(a=!0,o[i]={status:"rejected",reason:A},--B||n(o))}))})),--B||n(o)}));return c.error&&B(c.value),t.promise}})},4085:function(A,e,t){"use strict";var n=t("8bdb"),r=t("85c1");n({global:!0,forced:r.globalThis!==r},{globalThis:r})},4135:function(A,e,t){"use strict";A.exports=function(A){try{return{error:!1,value:A()}}catch(e){return{error:!0,value:e}}}},"41da":function(A,e,t){"use strict";t("6a54");var n=t("f5bd").default;Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0,t("bf0f"),t("2797"),t("dc8a"),t("23f4"),t("7d2f"),t("5c47"),t("9c4e"),t("ab80"),t("2c10"),t("a1c1"),t("9db6"),t("fd3c"),t("08eb"),t("18f7"),t("3e37"),t("de6c"),t("8f71"),t("4626"),t("5ac7"),t("0c26"),t("c223"),t("795c");var r=n(t("2cf9")),i=t("8f30"),o={data:function(){return{pageTitle:"签订协议",order:{},id:"",paramedicSignPath:"",customerSignPath:"",companySignPath:"",paramedicSignId:"",customerSignId:"",companySignId:"",paramedicSignImage:"",customerSignImage:"",companySignImage:"",agreementImage:"",agreementId:"",canPreview:!1,agreementHtml:"",file_id:"",penColor:"#000",penSize:3,openSmooth:!0,boundingBox:!0,isGenerating:!1,generateButtonText:"生成协议"}},onLoad:function(A){var e=this;e.id=A.id,i.getOrderInfo(A.id,(function(A){e.order=A.data,e.checkCanPreview(),e.checkAgreementConsistency()}),(function(A){}))},methods:{tohome:function(){uni.navigateTo({url:"../../../../pages/index/index"})},bindCancel:function(A){uni.navigateBack({})},bindsubmitFun:function(A){var e=this;return e.paramedicSignId&&e.customerSignId&&e.companySignId?e.file_id?void uni.showModal({title:"提示",content:"确认签订协议?",confirmText:"确认",confirmColor:"#000",cancelColor:"#eee",success:function(A){A.confirm&&e.submitAgreement()}}):(i.alert("请先生成协议文件"),!1):(i.alert("请完成所有签名"),!1)},clearSignature:function(A){var e=A+"SignatureRef";this.$refs[e]&&(this.$refs[e].clear(),this.setSignPath(A,""))},saveSignature:function(A){var e=this,t=A+"SignatureRef";this.$refs[t]?(console.log("开始保存签名:",A),this.$refs[t].canvasToTempFilePath({quality:.8,success:function(t){console.log("签名保存成功:",A,t),e.setSignPath(A,t.tempFilePath),console.log("开始上传签名到接口:",A,t.tempFilePath),e.uploadSignature(t.tempFilePath,A,(function(t){console.log("签名上传完成:",A,t),e.setSignPath(A,"");var n={paramedic:"护工",customer:"客户",company:"公司"}[A]||A;i.alert(n+"签名上传成功"),e.checkAndClearAgreement(A)}))},fail:function(e){console.log("签名保存失败:",A,e),i.alert(A+"签名保存失败")}})):console.log("签名组件引用不存在:",t)},resignSignature:function(A){switch(console.log("重新签名:",A),A){case"paramedic":this.paramedicSignId="",this.paramedicSignImage="";break;case"customer":this.customerSignId="",this.customerSignImage="";break;case"company":this.companySignId="",this.companySignImage="";break}this.setSignPath(A,"");var e={paramedic:"护工",customer:"客户",company:"公司"}[A]||A;i.alert(e+"签名已清除,请重新签名"),this.autoClearAgreement()},onSignatureSave:function(A){var e=A.currentTarget.dataset.type;console.log("签名保存事件:",e)},setSignPath:function(A,e){switch(A){case"paramedic":this.paramedicSignPath=e;break;case"customer":this.customerSignPath=e;break;case"company":this.companySignPath=e;break}},uploadSignature:function(A,e,t){var n=this,r=uni.getStorageSync("userInfo");r&&r.access_token?(console.log("开始上传签名:",e,A),uni.uploadFile({url:i.HOST+"manager/upload-image",filePath:A,name:"file",formData:{token:r.access_token,folder:"public"},success:function(A){if(console.log("签名上传响应:",A),"200"==A.statusCode)try{var r=JSON.parse(A.data);switch(console.log("签名上传成功:",r),e){case"paramedic":n.paramedicSignId=r.id,n.paramedicSignImage=i.HOST+r.public_path;break;case"customer":n.customerSignId=r.id,n.customerSignImage=i.HOST+r.public_path;break;case"company":n.companySignId=r.id,n.companySignImage=i.HOST+r.public_path;break}t(r.id)}catch(o){console.log("解析上传响应失败:",o),i.alert("签名上传失败:响应格式错误")}else console.log("签名上传失败,状态码:",A.statusCode),i.alert("签名上传失败:"+A.statusCode)},fail:function(A){console.log("签名上传失败:",A),i.alert("签名上传失败:网络错误")}})):i.alert("用户未登录或token无效")},submitAgreement:function(){this.paramedicSignId&&this.customerSignId&&this.companySignId&&this.file_id?i.request({api:"manager/create-order-agreements",method:"POST",data:{order_id:this.id,paramedic_id:this.order.paramedic_id,paramedic_sign_id:this.paramedicSignId,customer_id:this.order.customer_id,customer_sign_id:this.customerSignId,company_sign_id:this.companySignId,file_id:this.file_id},utilSuccess:function(A){i.alert("协议签订成功"),uni.navigateTo({url:"/pages/order/order"})},utilFail:function(A){i.alert(A)}}):i.alert("请完成所有签名并生成协议文件")},previewAgreement:function(){this.paramedicSignId&&this.customerSignId&&this.companySignId?this.order.project&&this.order.project.content?(this.processAgreementContent(),this.$refs.agreementPopup.open()):i.alert("还未上传协议,请联系管理员补充协议"):i.alert("请先完成所有签名")},regenerateAgreement:function(){var A=this;uni.showModal({title:"提示",content:"确定要重新生成协议吗?",confirmText:"确定",confirmColor:"#000",cancelColor:"#eee",success:function(e){e.confirm&&(A.agreementImage="",A.file_id="",A.agreementId="",A.previewAgreement())}})},viewAgreementFullscreen:function(){this.agreementImage&&uni.previewImage({current:this.agreementImage,urls:[this.agreementImage],zIndex:9999})},checkCanPreview:function(){this.order.file_id?(this.canPreview=!0,this.agreementImage=i.HOST+this.order.file_path,this.agreementId=this.order.file_id):(this.canPreview=!1,this.agreementImage="",this.agreementId="")},closeAgreementPopup:function(){this.$refs.agreementPopup.close()},generateAgreement:function(){var A=this;uni.showModal({title:"提示",content:"确定要重新生成协议吗?",confirmText:"确定",confirmColor:"#000",cancelColor:"#eee",success:function(e){e.confirm&&(A.submitAgreement(),i.alert("协议已重新生成,请刷新页面查看"),A.closeAgreementPopup())}})},processAgreementContent:function(){var A=this.order.project.content,e={paramedic_sign:this.paramedicSignImage?'护工签名'):"",customer_sign:this.customerSignImage?'客户签名'):"",company_sign:this.companySignImage?'公司签名'):"",manage_sign:this.companySignImage?'公司签名'):"",paramedic_sign2:this.paramedicSignImage?'护工签名'):"",customer_sign2:this.customerSignImage?'客户签名'):"",manage_sign2:this.companySignImage?'公司签名'):"",paramedic_sign_id:this.paramedicSignId||"",customer_sign_id:this.customerSignId||"",company_sign_id:this.companySignId||"",days:this.order.days||"",price:this.order.price||"",total:this.order.total||"",range_mobile:this.order.project&&this.order.project.range_mobile||"",complaint_mobile:this.order.project&&this.order.project.complaint_mobile||"",today_date:function(){var A=new Date;return A.getFullYear()+"年"+(A.getMonth()+1)+"月"+A.getDate()+"日"}()};Object.keys(e).forEach((function(t){var n=new RegExp("\\{([^}]*".concat(t,"[^}]*)\\}"),"g"),r=A.match(n);r&&r.length>0&&(A=A.replace(n,e[t]))})),A=A.replace(/text-wrap-mode:\s*nowrap;?/gi,""),A=A.replace(/text-wrap-mode:\s*nowrap/gi,""),this.agreementHtml=A},generateAgreementImage:function(){var A=this;A.isGenerating?i.alert("正在生成协议,请稍候..."):(A.isGenerating=!0,A.generateButtonText="生成中...",setTimeout((function(){A.startGenerateAgreement()}),500))},startGenerateAgreement:function(){var A=this;console.log("开始生成协议图片,协议HTML内容:",A.agreementHtml),console.log("协议HTML内容长度:",A.agreementHtml?A.agreementHtml.length:0);var e=document.createElement("div");function t(){var t=e.scrollWidth,n=e.scrollHeight;console.log("准备生成Canvas,容器尺寸:",t,"x",n),console.log("容器内容:",e.innerHTML),console.log("容器可见性:",e.style.visibility),console.log("容器位置:",e.style.left,e.style.top),(0,r.default)(e,{backgroundColor:"#ffffff",scale:1,useCORS:!1,allowTaint:!1,logging:!1,removeContainer:!1,foreignObjectRendering:!1,imageTimeout:15e3,width:Math.max(1e3,t),height:Math.max(1500,n),scrollX:0,scrollY:0}).then((function(t){t.toBlob((function(t){var n=new File([t],"agreement.png",{type:"image/png"});e.parentNode&&document.body.removeChild(e),A.isGenerating=!1,A.generateButtonText="生成协议",A.uploadAgreementImage(n)}),"image/png",.9)})).catch((function(t){var n="协议生成失败";n=t.message.includes("Tainted")?"由于图片跨域问题,html2canvas无法生成协议,将使用备用方法":t.message.includes("SecurityError")?"由于安全限制,html2canvas无法生成协议,将使用备用方法":"html2canvas生成失败,将使用备用方法生成协议图片",i.alert(n),e.parentNode&&document.body.removeChild(e),A.isGenerating=!1,A.generateButtonText="生成协议",A.generateAgreementImageFallback()}))}e.innerHTML=A.agreementHtml,console.log("临时容器内容:",e.innerHTML),console.log("临时容器文本内容:",e.textContent),e.style.position="absolute",e.style.left="-9999px",e.style.top="-9999px",e.style.zIndex="-1",e.style.width="1000px",e.style.minHeight="1500px",e.style.overflow="visible",e.style.padding="50px",e.style.fontSize="16px",e.style.lineHeight="1.8",e.style.backgroundColor="#ffffff",e.style.border="1px solid #ddd",e.style.color="#000000",e.style.fontFamily="Arial, sans-serif",e.style.wordWrap="break-word",e.style.wordBreak="break-all",e.style.overflowWrap="break-word",document.body.appendChild(e),setTimeout((function(){var A=e.scrollWidth,n=e.scrollHeight;(A>1e3||n>1500)&&(e.style.width=Math.max(1e3,A)+"px",e.style.minHeight=Math.max(1500,n)+"px");var r=e.querySelectorAll("img");r.forEach((function(A,e){A.src&&(A.src=A.src.replace("//storage/","/storage/"),A.src.startsWith("http")||(A.src=i.HOST+A.src.replace(i.HOST,""))),A.style.display="inline-block",A.style.width="50px",A.style.height="20px",A.style.margin="0 5px",A.style.verticalAlign="middle",A.style.border="1px solid #ddd",A.style.backgroundColor="#f9f9f9",A.loading="eager",A.onerror=function(){var e=document.createElement("div");e.style.display="inline-block",e.style.width="50px",e.style.height="20px",e.style.margin="0 5px",e.style.border="1px solid #ddd",e.style.backgroundColor="#f9f9f9",e.style.textAlign="center",e.style.lineHeight="20px",e.style.fontSize="12px",e.style.color="#999",e.textContent="签名",A.parentNode.replaceChild(e,A)},A.onload=function(){}}));(function(){var A=Array.from(r).map((function(A){return new Promise((function(e,t){if(A.complete&&A.naturalWidth>0&&A.naturalHeight>0)e(A);else{A.onload=function(){e(A)},A.onerror=function(){t(A)};var n=A.src;A.src="",setTimeout((function(){A.src=n}),50)}}))}));Promise.allSettled(A).then((function(A){A.filter((function(A){return"fulfilled"===A.status})).length;setTimeout(t,800)}))})()}),100)},generateAgreementImageFallback:function(){var A=this,e=document.createElement("div");e.innerHTML=A.agreementHtml,e.style.position="absolute",e.style.left="-9999px",e.style.width="1000px",e.style.visibility="hidden",document.body.appendChild(e);var t=Math.max(1e3,e.scrollWidth),n=Math.max(1500,e.scrollHeight);document.body.removeChild(e);var r=document.createElement("canvas"),i=r.getContext("2d");r.width=t,r.height=n,i.fillStyle="#ffffff",i.fillRect(0,0,r.width,r.height),i.fillStyle="#000000",i.font="18px Arial",i.textAlign="left";var o=document.createElement("div");o.innerHTML=A.agreementHtml;var s=o.textContent||o.innerText||"",a=s.split("\n"),B=60,c=r.width-100;a.forEach((function(A,e){if(A.trim())if(i.measureText(A).width>c){for(var t="",n=0;nc?(t.trim()&&(i.fillText(t.trim(),50,B),B+=30),t=A[n]):t+=A[n]}t.trim()&&(i.fillText(t.trim(),50,B),B+=30)}else i.fillText(A,50,B),B+=30;else B+=15})),B+=50,i.font="16px Arial",i.fillStyle="#666",A.paramedicSignId&&(i.fillText("护工签名ID: ".concat(A.paramedicSignId),50,B),B+=30),A.customerSignId&&(i.fillText("客户签名ID: ".concat(A.customerSignId),50,B),B+=30),A.companySignId&&(i.fillText("公司签名ID: ".concat(A.companySignId),50,B),B+=30),B+=20;var u=new Date,l="生成时间: ".concat(u.getFullYear(),"-").concat(String(u.getMonth()+1).padStart(2,"0"),"-").concat(String(u.getDate()).padStart(2,"0")," ").concat(String(u.getHours()).padStart(2,"0"),":").concat(String(u.getMinutes()).padStart(2,"0"));i.fillText(l,50,B),r.toBlob((function(e){var t=new File([e],"agreement.png",{type:"image/png"});A.isGenerating=!1,A.generateButtonText="生成协议",A.uploadAgreementImage(t)}),"image/png",.9),document.body.removeChild(o)},uploadAgreementImage:function(A){var e=this,t=uni.getStorageSync("userInfo");if(t&&t.access_token){var n=new FileReader;n.onload=function(A){var n=A.target.result;uni.uploadFile({url:i.HOST+"manager/upload-image",filePath:n,name:"file",formData:{token:t.access_token,folder:"public"},success:function(A){if("200"==A.statusCode)try{var t=JSON.parse(A.data);console.log("协议图片上传成功:",t),e.agreementImage=i.HOST+t.public_path,e.file_id=t.id,e.closeAgreementPopup(),i.alert("协议生成成功")}catch(n){console.log("解析上传响应失败:",n),i.alert("协议生成失败:响应格式错误"),e.isGenerating=!1,e.generateButtonText="生成协议"}else i.alert("协议生成失败:"+A.statusCode),e.isGenerating=!1,e.generateButtonText="生成协议"},fail:function(A){console.log("协议图片上传失败:",A),i.alert("协议生成失败:网络错误"),e.isGenerating=!1,e.generateButtonText="生成协议"}})},n.readAsDataURL(A)}else i.alert("用户未登录或token无效")},checkAgreementConsistency:function(){this.paramedicSignId&&this.customerSignId&&this.companySignId&&this.file_id&&this.agreementImage&&this.file_id&&(this.agreementImage="",this.file_id="",this.agreementId="",console.log("检测到签名更改,已自动清除协议"))},checkAndClearAgreement:function(A){if(this.agreementImage&&this.file_id){this.agreementImage="",this.file_id="",this.agreementId="";var e={paramedic:"护工",customer:"客户",company:"公司"}[A]||A;i.alert(e+"签名已更改,已自动清除已生成的协议,请重新生成协议")}},autoClearAgreement:function(){this.agreementImage&&this.file_id&&(this.agreementImage="",this.file_id="",this.agreementId="",i.alert("已自动清除已生成的协议,请签名后重新生成协议"))}}};e.default=o},"4c29":function(A,e){},5075:function(A,e,t){"use strict";var n=t("ae5c"),r=t("71e9"),i=t("e7e3"),o=t("52df"),s=t("81a7"),a=t("1fc1"),B=t("1297"),c=t("d67c"),u=t("5112"),l=t("7e91"),g=TypeError,d=function(A,e){this.stopped=A,this.result=e},w=d.prototype;A.exports=function(A,e,t){var h,Q,f,C,p,U,F,v=t&&t.that,m=!(!t||!t.AS_ENTRIES),y=!(!t||!t.IS_RECORD),H=!(!t||!t.IS_ITERATOR),E=!(!t||!t.INTERRUPTED),I=n(e,v),b=function(A){return h&&l(h,"normal",A),new d(!0,A)},x=function(A){return m?(i(A),E?I(A[0],A[1],b):I(A[0],A[1])):E?I(A,b):I(A)};if(y)h=A.iterator;else if(H)h=A;else{if(Q=u(A),!Q)throw new g(o(A)+" is not iterable");if(s(Q)){for(f=0,C=a(A);C>f;f++)if(p=x(A[f]),p&&B(w,p))return p;return new d(!1)}h=c(A,Q)}U=y?A.next:h.next;while(!(F=r(U,h)).done){try{p=x(F.value)}catch(K){l(h,"throw",K)}if("object"==typeof p&&p&&B(w,p))return p}return new d(!1)}},"51f5":function(A,e,t){"use strict";t.r(e);var n=t("cde5"),r=t.n(n);for(var i in n)["default"].indexOf(i)<0&&function(A){t.d(e,A,(function(){return n[A]}))}(i);e["default"]=r.a},5213:function(A,e,t){var n=t("c86c");e=n(!1),e.push([A.i,'@charset "UTF-8";\n/**\n * 这里是uni-app内置的常用样式变量\n *\n * uni-app 官方扩展插件及插件市场(https://ext.dcloud.net.cn)上很多三方插件均使用了这些样式变量\n * 如果你是插件开发者,建议你使用scss预处理,并在插件代码中直接使用这些变量(无需 import 这个文件),方便用户通过搭积木的方式开发整体风格一致的App\n *\n */\n/**\n * 如果你是App开发者(插件使用者),你可以通过修改这些变量来定制自己的插件主题,实现自定义主题功能\n *\n * 如果你的项目同样使用了scss预处理,你也可以直接在你的 scss 代码中使用如下变量,同时无需 import 这个文件\n */\n/* 颜色变量 */\n/* 行为相关颜色 */\n/* 文字基本颜色 */\n/* 背景颜色 */\n/* 边框颜色 */\n/* 尺寸变量 */\n/* 文字尺寸 */\n/* 图片尺寸 */\n/* Border Radius */\n/* 水平间距 */\n/* 垂直间距 */\n/* 透明度 */\n/* 文章场景相关 */.lime-signature[data-v-f4eb2412],\n.lime-signature__canvas[data-v-f4eb2412]{position:relative;width:100%;height:100%}.mask[data-v-f4eb2412]{position:absolute;left:0;right:0;bottom:0;top:0}.offscreen[data-v-f4eb2412]{position:fixed;top:0;pointer-events:none;left:9999px}',""]),A.exports=e},"55dd":function(A,e,t){"use strict";t.d(e,"b",(function(){return n})),t.d(e,"c",(function(){return r})),t.d(e,"a",(function(){}));var n=function(){var A=this,e=A.$createElement,t=A._self._c||e;return A.show?t("v-uni-view",{ref:"limeSignature",staticClass:"lime-signature",style:[A.canvasStyle,A.styles]},[A.useCanvas2d?t("v-uni-canvas",{staticClass:"lime-signature__canvas",attrs:{id:A.canvasId,type:"2d",disableScroll:A.disableScroll},on:{touchstart:function(e){arguments[0]=e=A.$handleEvent(e),A.touchStart.apply(void 0,arguments)},touchmove:function(e){arguments[0]=e=A.$handleEvent(e),A.touchMove.apply(void 0,arguments)},touchend:function(e){arguments[0]=e=A.$handleEvent(e),A.touchEnd.apply(void 0,arguments)}}}):t("v-uni-canvas",{staticClass:"lime-signature__canvas",attrs:{disableScroll:A.disableScroll,"canvas-id":A.canvasId,id:A.canvasId,width:A.canvasWidth,height:A.canvasHeight},on:{touchstart:function(e){arguments[0]=e=A.$handleEvent(e),A.touchStart.apply(void 0,arguments)},touchmove:function(e){arguments[0]=e=A.$handleEvent(e),A.touchMove.apply(void 0,arguments)},touchend:function(e){arguments[0]=e=A.$handleEvent(e),A.touchEnd.apply(void 0,arguments)},mousedown:function(e){arguments[0]=e=A.$handleEvent(e),A.touchStart.apply(void 0,arguments)},mousemove:function(e){arguments[0]=e=A.$handleEvent(e),A.touchMove.apply(void 0,arguments)},mouseup:function(e){arguments[0]=e=A.$handleEvent(e),A.touchEnd.apply(void 0,arguments)}}}),A.showOffscreen?t("v-uni-canvas",{staticClass:"offscreen",style:"width:"+A.offscreenSize[0]+"px;height:"+A.offscreenSize[1]+"px",attrs:{"canvas-id":"offscreen",id:"offscreen",width:A.offscreenSize[0],height:A.offscreenSize[1]}}):A._e(),A.showMask?t("v-uni-view",{staticClass:"mask",on:{touchstart:function(e){arguments[0]=e=A.$handleEvent(e),A.touchStart.apply(void 0,arguments)},touchmove:function(e){e.stopPropagation(),e.preventDefault(),arguments[0]=e=A.$handleEvent(e),A.touchMove.apply(void 0,arguments)},touchend:function(e){arguments[0]=e=A.$handleEvent(e),A.touchEnd.apply(void 0,arguments)}}}):A._e()],1):A._e()},r=[]},"562d":function(A,e,t){"use strict";var n=t("8bdb"),r=t("bb80"),i=t("e34c"),o=RangeError,s=String.fromCharCode,a=String.fromCodePoint,B=r([].join),c=!!a&&1!==a.length;n({target:"String",stat:!0,arity:1,forced:c},{fromCodePoint:function(A){var e,t=[],n=arguments.length,r=0;while(n>r){if(e=+arguments[r++],i(e,1114111)!==e)throw new o(e+" is not a valid code point");t[r]=e<65536?s(e):s(55296+((e-=65536)>>10),e%1024+56320)}return B(t,"")}})},"59be":function(A,e,t){"use strict";t("6a54"),Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var n={name:"orderinfo",props:{info:{type:Object}},data:function(){return{}}};e.default=n},"5c4c":function(A,e,t){"use strict";t("6a54");var n=t("f5bd").default;Object.defineProperty(e,"__esModule",{value:!0}),e.base64ToPath=function(A){var e=/data:image\/(\w+);base64,(.*)/.exec(A)||[],t=(0,r.default)(e,3);t[1],t[2];return new Promise((function(A,e){}))},e.canIUseCanvas2d=function(){return!1},e.compareVersion=i,e.getRect=function(A){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},t="boundingClientRect",n=e.context,r=e.type,i=void 0===r?t:r;return new Promise((function(e,r){var o=uni.createSelectorQuery().in(n).select(A),s=function(A){A?e(A):r()};i==t?o[i](s).exec():o[i]({node:!0,size:!0,rect:!0},s).exec()}))},e.isTransparent=function(A){if("transparent"===A)return!0;if(A.startsWith("rgba")){var e=A.match(/\d+(\.\d+)?/g);if(null!==e){var t=parseFloat(e[3]);if(0===t)return!0}}return!1},e.requestAnimationFrame=void 0,e.sleep=function(A){return new Promise((function(e){return setTimeout(e,A)}))},e.wrapEvent=void 0;var r=n(t("5de6"));function i(A,e){A=A.split("."),e=e.split(".");var t=Math.max(A.length,e.length);while(A.lengthi)return 1;if(r1?arguments[1]:void 0)}})},"7a88":function(A,e,t){"use strict";var n=t("f1ad"),r=t.n(n);r.a},"7c0e":function(A,e,t){"use strict";t.d(e,"b",(function(){return r})),t.d(e,"c",(function(){return i})),t.d(e,"a",(function(){return n}));var n={topnav:t("bd9e").default,orderinfo:t("9c45").default,lSignature:t("7d9d").default,uniPopup:t("785a").default},r=function(){var A=this,e=A.$createElement,t=A._self._c||e;return t("v-uni-view",[t("topnav",{attrs:{title:A.pageTitle},on:{tohome:function(e){arguments[0]=e=A.$handleEvent(e),A.tohome.apply(void 0,arguments)}}}),t("v-uni-view",{staticClass:"content"},[t("v-uni-view",{staticClass:"orderBox"},[t("orderinfo",{attrs:{info:A.order}})],1),t("v-uni-view",{staticClass:"pageTitle"},[A._v("协议签名")]),t("v-uni-view",{staticClass:"signatureBox"},[t("v-uni-view",{staticClass:"signatureItem"},[t("v-uni-view",{staticClass:"signatureTitle"},[A._v("护工签名")]),t("v-uni-view",{staticClass:"signatureArea"},[A.paramedicSignImage?A._e():t("l-signature",{ref:"paramedicSignatureRef",attrs:{penColor:A.penColor,penSize:A.penSize,openSmooth:A.openSmooth,boundingBox:A.boundingBox,disableScroll:!0,"data-type":"paramedic"},on:{save:function(e){arguments[0]=e=A.$handleEvent(e),A.onSignatureSave.apply(void 0,arguments)}}}),A.paramedicSignImage?t("v-uni-image",{staticClass:"signatureImage",attrs:{src:A.paramedicSignImage,mode:"aspectFit"}}):A._e()],1),t("v-uni-view",{staticClass:"signatureActions"},[A.paramedicSignImage?A._e():t("v-uni-text",{staticClass:"btnClear",on:{click:function(e){arguments[0]=e=A.$handleEvent(e),A.clearSignature("paramedic")}}},[A._v("清除")]),A.paramedicSignImage?A._e():t("v-uni-text",{staticClass:"btnSave",on:{click:function(e){arguments[0]=e=A.$handleEvent(e),A.saveSignature("paramedic")}}},[A._v("保存")]),A.paramedicSignImage?t("v-uni-text",{staticClass:"btnResign",on:{click:function(e){arguments[0]=e=A.$handleEvent(e),A.resignSignature("paramedic")}}},[A._v("重新签名")]):A._e()],1)],1),t("v-uni-view",{staticClass:"signatureItem"},[t("v-uni-view",{staticClass:"signatureTitle"},[A._v("客户签名")]),t("v-uni-view",{staticClass:"signatureArea"},[A.customerSignImage?A._e():t("l-signature",{ref:"customerSignatureRef",attrs:{penColor:A.penColor,penSize:A.penSize,openSmooth:A.openSmooth,boundingBox:A.boundingBox,disableScroll:!0,"data-type":"customer"},on:{save:function(e){arguments[0]=e=A.$handleEvent(e),A.onSignatureSave.apply(void 0,arguments)}}}),A.customerSignImage?t("v-uni-image",{staticClass:"signatureImage",attrs:{src:A.customerSignImage,mode:"aspectFit"}}):A._e()],1),t("v-uni-view",{staticClass:"signatureActions"},[A.customerSignImage?A._e():t("v-uni-text",{staticClass:"btnClear",on:{click:function(e){arguments[0]=e=A.$handleEvent(e),A.clearSignature("customer")}}},[A._v("清除")]),A.customerSignImage?A._e():t("v-uni-text",{staticClass:"btnSave",on:{click:function(e){arguments[0]=e=A.$handleEvent(e),A.saveSignature("customer")}}},[A._v("保存")]),A.customerSignImage?t("v-uni-text",{staticClass:"btnResign",on:{click:function(e){arguments[0]=e=A.$handleEvent(e),A.resignSignature("customer")}}},[A._v("重新签名")]):A._e()],1)],1),t("v-uni-view",{staticClass:"signatureItem"},[t("v-uni-view",{staticClass:"signatureTitle"},[A._v("公司签名")]),t("v-uni-view",{staticClass:"signatureArea"},[A.companySignImage?A._e():t("l-signature",{ref:"companySignatureRef",attrs:{penColor:A.penColor,penSize:A.penSize,openSmooth:A.openSmooth,boundingBox:A.boundingBox,disableScroll:!0,"data-type":"company"},on:{save:function(e){arguments[0]=e=A.$handleEvent(e),A.onSignatureSave.apply(void 0,arguments)}}}),A.companySignImage?t("v-uni-image",{staticClass:"signatureImage",attrs:{src:A.companySignImage,mode:"aspectFit"}}):A._e()],1),t("v-uni-view",{staticClass:"signatureActions"},[A.companySignImage?A._e():t("v-uni-text",{staticClass:"btnClear",on:{click:function(e){arguments[0]=e=A.$handleEvent(e),A.clearSignature("company")}}},[A._v("清除")]),A.companySignImage?A._e():t("v-uni-text",{staticClass:"btnSave",on:{click:function(e){arguments[0]=e=A.$handleEvent(e),A.saveSignature("company")}}},[A._v("保存")]),A.companySignImage?t("v-uni-text",{staticClass:"btnResign",on:{click:function(e){arguments[0]=e=A.$handleEvent(e),A.resignSignature("company")}}},[A._v("重新签名")]):A._e()],1)],1)],1),t("v-uni-view",{staticClass:"previewSection"},[t("v-uni-view",{staticClass:"previewBtn",on:{click:function(e){arguments[0]=e=A.$handleEvent(e),A.previewAgreement.apply(void 0,arguments)}}},[A._v("预览协议")])],1),A.agreementImage?t("v-uni-view",{staticClass:"agreementPreviewSection"},[t("v-uni-view",{staticClass:"sectionTitle"},[A._v("协议预览")]),t("v-uni-view",{staticClass:"agreementImageContainer"},[t("v-uni-image",{staticClass:"agreementImage",attrs:{src:A.agreementImage,mode:"aspectFit"},on:{click:function(e){arguments[0]=e=A.$handleEvent(e),A.viewAgreementFullscreen.apply(void 0,arguments)}}})],1),t("v-uni-view",{staticClass:"agreementActions"},[t("v-uni-text",{staticClass:"btnRegenerate",on:{click:function(e){arguments[0]=e=A.$handleEvent(e),A.regenerateAgreement.apply(void 0,arguments)}}},[A._v("重新生成协议")])],1)],1):A._e()],1),t("v-uni-view",{staticClass:"bottom"},[t("v-uni-view",{staticClass:"bottomLeft"}),t("v-uni-view",{staticClass:"bottomRight"},[t("v-uni-view",{staticClass:"btnCancel btn",on:{click:function(e){arguments[0]=e=A.$handleEvent(e),A.bindCancel.apply(void 0,arguments)}}},[A._v("取消")]),t("v-uni-view",{staticClass:"btnSubmit btn",on:{click:function(e){arguments[0]=e=A.$handleEvent(e),A.bindsubmitFun.apply(void 0,arguments)}}},[A._v("提交")])],1)],1),t("uni-popup",{ref:"agreementPopup",staticClass:"fullscreen-popup",attrs:{type:"center","mask-click":!0,"safe-area":!1}},[t("v-uni-view",{staticClass:"agreementPopup"},[t("v-uni-view",{staticClass:"popupHeader"},[t("v-uni-text",{staticClass:"popupTitle"},[A._v("协议预览")]),t("v-uni-text",{staticClass:"popupClose",on:{click:function(e){arguments[0]=e=A.$handleEvent(e),A.closeAgreementPopup.apply(void 0,arguments)}}},[A._v("×")])],1),t("v-uni-view",{staticClass:"popupContent"},[A.agreementHtml?t("div",{staticClass:"agreementContent",domProps:{innerHTML:A._s(A.agreementHtml)}}):t("v-uni-view",{staticClass:"noAgreement"},[t("v-uni-text",[A._v("还未上传协议,请联系管理员补充协议")])],1)],1),A.agreementHtml?t("v-uni-view",{staticClass:"popupFooter"},[t("v-uni-view",{staticClass:"btnGenerate",class:{disabled:A.isGenerating},attrs:{disabled:A.isGenerating},on:{click:function(e){arguments[0]=e=A.$handleEvent(e),A.generateAgreementImage.apply(void 0,arguments)}}},[A._v(A._s(A.generateButtonText))])],1):A._e()],1)],1)],1)},i=[]},"7ca2":function(A,e,t){var n=t("c86c");e=n(!1),e.push([A.i,'@charset "UTF-8";\n/**\n * 这里是uni-app内置的常用样式变量\n *\n * uni-app 官方扩展插件及插件市场(https://ext.dcloud.net.cn)上很多三方插件均使用了这些样式变量\n * 如果你是插件开发者,建议你使用scss预处理,并在插件代码中直接使用这些变量(无需 import 这个文件),方便用户通过搭积木的方式开发整体风格一致的App\n *\n */\n/**\n * 如果你是App开发者(插件使用者),你可以通过修改这些变量来定制自己的插件主题,实现自定义主题功能\n *\n * 如果你的项目同样使用了scss预处理,你也可以直接在你的 scss 代码中使用如下变量,同时无需 import 这个文件\n */\n/* 颜色变量 */\n/* 行为相关颜色 */\n/* 文字基本颜色 */\n/* 背景颜色 */\n/* 边框颜色 */\n/* 尺寸变量 */\n/* 文字尺寸 */\n/* 图片尺寸 */\n/* Border Radius */\n/* 水平间距 */\n/* 垂直间距 */\n/* 透明度 */\n/* 文章场景相关 */[data-v-d75ea66c] .nav{z-index:998!important}.content[data-v-d75ea66c]{padding:%?20?%;padding-bottom:%?120?%}.pageTitle[data-v-d75ea66c]{font-size:%?32?%;font-weight:700;margin:%?30?% 0 %?20?% 0;color:#333}.signatureBox[data-v-d75ea66c]{background:#fff;border-radius:%?12?%;padding:%?20?%}.signatureItem[data-v-d75ea66c]{margin-bottom:%?30?%}.signatureTitle[data-v-d75ea66c]{font-size:%?28?%;color:#333;margin-bottom:%?15?%}.signatureImage[data-v-d75ea66c]{width:100%;height:%?200?%;border:1px solid #ddd;border-radius:%?8?%;background-color:#f9f9f9}.signatureArea[data-v-d75ea66c]{height:%?200?%;border:1px solid #ddd;border-radius:%?8?%;background-color:#fff;position:relative}.signatureActions[data-v-d75ea66c]{margin-top:%?15?%;display:flex;justify-content:space-between}.btnClear[data-v-d75ea66c], .btnSave[data-v-d75ea66c], .btnResign[data-v-d75ea66c]{padding:%?10?% %?20?%;border-radius:%?6?%;font-size:%?24?%}.btnClear[data-v-d75ea66c]{color:#666;background:#f0f0f0}.btnSave[data-v-d75ea66c]{color:#fff;background:#0dc99e}.btnResign[data-v-d75ea66c]{color:#fff;background:#ff9500}.previewSection[data-v-d75ea66c]{margin-top:%?30?%;padding:%?20?%;background:#fff;border-radius:%?12?%;display:flex;justify-content:center}.previewBtn[data-v-d75ea66c]{background-color:#0dc99e;color:#fff;padding:10px 20px;border-radius:6px;border:none;font-size:16px;cursor:pointer;margin-right:10px}.previewBtn[data-v-d75ea66c]:hover{background-color:#0bb08a}.agreementPreviewSection[data-v-d75ea66c]{margin-top:20px;padding:20px;background-color:#f8f9fa;border-radius:8px;z-index:9999}.sectionTitle[data-v-d75ea66c]{font-size:%?28?%;font-weight:700;color:#333;margin-bottom:%?15?%}.agreementImageContainer[data-v-d75ea66c]{height:%?300?%;display:flex;justify-content:center;align-items:center;background-color:#f9f9f9;border:1px solid #ddd;border-radius:%?8?%}.agreementImage[data-v-d75ea66c]{width:100%;height:100%;border-radius:%?8?%}.agreementActions[data-v-d75ea66c]{margin-top:%?15?%;display:flex;justify-content:flex-end}.btnRegenerate[data-v-d75ea66c]{padding:%?10?% %?20?%;border-radius:%?6?%;font-size:%?24?%;color:#fff;background:#ff9500}\n/* 弹窗样式 */.fullscreen-popup[data-v-d75ea66c]{width:100vw!important;height:100vh!important;max-width:none!important;left:0!important;top:0!important;-webkit-transform:none!important;transform:none!important}\n/* 预览协议弹窗样式 */.fullscreen-popup[data-v-d75ea66c]{position:fixed;top:0;left:0;width:100%;height:100%;background-color:rgba(0,0,0,.8);z-index:9999;display:flex;flex-direction:column;justify-content:center;align-items:center;\n /* 确保在移动设备上可以滚动 */-webkit-overflow-scrolling:touch;overflow:hidden}.agreementPopup[data-v-d75ea66c]{width:100vw;height:100vh;background:#fff;display:flex;flex-direction:column;position:relative;z-index:9999;\n /* 确保在移动设备上可以滚动 */-webkit-overflow-scrolling:touch;overflow:hidden}.popupHeader[data-v-d75ea66c]{display:flex;justify-content:space-between;align-items:center;padding:%?20?%;border-bottom:1px solid #eee;background:#f8f8f8;flex-shrink:0;\n /* 确保头部固定 */position:-webkit-sticky;position:sticky;top:0;z-index:10}.popupTitle[data-v-d75ea66c]{font-size:%?32?%;font-weight:700;color:#333}.popupClose[data-v-d75ea66c]{font-size:%?40?%;color:#999;cursor:pointer;padding:%?10?% %?15?%;background:#f0f0f0;border-radius:50%;width:%?60?%;height:%?60?%;display:flex;align-items:center;justify-content:center;transition:all .3s ease}.popupClose[data-v-d75ea66c]:hover{background:#e0e0e0;color:#666}.popupContent[data-v-d75ea66c]{flex:1;overflow-y:auto;overflow-x:hidden;padding:%?20?%;\n /* 确保在移动设备上可以滚动 */-webkit-overflow-scrolling:touch;\n /* 允许触摸滚动 */touch-action:pan-y;\n /* 设置滚动条样式 */scrollbar-width:thin;scrollbar-color:#ccc transparent}\n/* Webkit浏览器的滚动条样式 */.popupContent[data-v-d75ea66c]::-webkit-scrollbar{width:6px}.popupContent[data-v-d75ea66c]::-webkit-scrollbar-track{background:transparent}.popupContent[data-v-d75ea66c]::-webkit-scrollbar-thumb{background:#ccc;border-radius:3px}.popupContent[data-v-d75ea66c]::-webkit-scrollbar-thumb:hover{background:#999}.agreementContent[data-v-d75ea66c]{font-size:%?28?%;line-height:1.6;color:#333;word-wrap:break-word;word-break:break-all;overflow-wrap:break-word;\n /* 确保在移动设备上内容可以正常显示和滚动 */-webkit-text-size-adjust:100%;-ms-text-size-adjust:100%;text-size-adjust:100%}.agreementContent *[data-v-d75ea66c]{max-width:100%!important;box-sizing:border-box!important;\n /* 确保所有元素都能正常显示 */word-wrap:break-word!important;overflow-wrap:break-word!important}.agreementContent img[data-v-d75ea66c]{max-width:50px!important;height:20px!important;display:inline-block!important;margin:0 5px!important;vertical-align:middle!important}.agreementContent p[data-v-d75ea66c], .agreementContent div[data-v-d75ea66c]{margin:%?10?% 0!important;padding:0!important}.agreementContent span[data-v-d75ea66c]{word-break:break-all!important}.noAgreement[data-v-d75ea66c]{text-align:center;padding:%?40?%;color:#999;font-size:%?28?%}.popupFooter[data-v-d75ea66c]{padding:%?20?%;border-top:1px solid #eee;display:flex;justify-content:center;flex-shrink:0;\n /* 确保底部固定 */position:-webkit-sticky;position:sticky;bottom:0;background:#fff;z-index:10}.btnGenerate[data-v-d75ea66c]{padding:%?15?% %?30?%;border-radius:%?8?%;font-size:%?28?%;color:#fff;background:#0dc99e}.btnGenerate.disabled[data-v-d75ea66c]{background-color:#ccc;color:#666;cursor:not-allowed}.bottom[data-v-d75ea66c]{background:#fff;box-shadow:0 %?-2?% %?12?% 0 rgba(0,0,0,.16),inset 0 %?1?% 0 0 #e4e4e4;width:100%;height:%?100?%;position:fixed;bottom:0;left:0;display:flex;justify-content:space-between}.bottom .bottomLeft[data-v-d75ea66c]{display:flex;align-items:center}.bottom .bottomRight[data-v-d75ea66c]{display:flex;flex:1}.btn[data-v-d75ea66c]{width:50%;line-height:%?100?%;text-align:center;line-height:%?100?%;font-family:SourceHanSansCN-Medium;font-size:%?32?%;letter-spacing:0}.btnCancel[data-v-d75ea66c]{color:#666;background:#f0f0f0}.btnSubmit[data-v-d75ea66c]{color:#fff;background:#0dc99e}\n/* 移动设备优化 */@media screen and (max-width:768px){.agreementPopup[data-v-d75ea66c]{width:100vw;height:100vh;max-height:100vh}.popupContent[data-v-d75ea66c]{padding:%?15?%;\n /* 移动设备上的滚动优化 */-webkit-overflow-scrolling:touch;overscroll-behavior:contain}.agreementContent[data-v-d75ea66c]{font-size:%?26?%;line-height:1.5}.popupHeader[data-v-d75ea66c]{padding:%?15?%}.popupFooter[data-v-d75ea66c]{padding:%?15?%}}\n/* 小屏幕设备优化 */@media screen and (max-width:480px){.agreementContent[data-v-d75ea66c]{font-size:%?24?%;line-height:1.4}.popupContent[data-v-d75ea66c]{padding:%?10?%}.popupHeader[data-v-d75ea66c]{padding:%?10?%}.popupFooter[data-v-d75ea66c]{padding:%?10?%}}',""]),A.exports=e},"7d9d":function(A,e,t){"use strict";t.r(e);var n=t("55dd"),r=t("51f5");for(var i in r)["default"].indexOf(i)<0&&function(A){t.d(e,A,(function(){return r[A]}))}(i);var o=t("5e21");for(var i in o)["default"].indexOf(i)<0&&function(A){t.d(e,A,(function(){return o[A]}))}(i);t("7a88");var s=t("828b");r["default"].__module="sign";var a=Object(s["a"])(o["default"],n["b"],n["c"],!1,null,"f4eb2412",null,!1,n["a"],r["default"]);e["default"]=a.exports},"85aa":function(A,e,t){var n=t("c86c");e=n(!1),e.push([A.i,"uni-view[data-v-56df567b]{display:flex;flex-direction:column}.orderLine[data-v-56df567b]{flex-direction:row;margin-top:%?16?%;align-items:center}.orderTxt[data-v-56df567b]{font-family:SourceHanSansCN-Normal;font-size:%?28?%;color:#333;line-height:%?36?%}.iconback[data-v-56df567b]{width:%?40?%;height:%?40?%}.navTab[data-v-56df567b]{background:#fafafa;box-shadow:0 1px 0 0 #e6e6e6;flex-direction:row;justify-content:space-around;top:%?140?%;left:0;position:fixed;z-index:999;width:%?750?%}.tabItem[data-v-56df567b]{align-items:center;position:relative}.orderGe[data-v-56df567b]{color:#d8d8d8;margin-left:%?16?%;margin-right:%?16?%;font-size:%?28?%}.tabTxt[data-v-56df567b]{font-size:%?28?%;color:#666;text-align:left;height:%?70?%;line-height:%?70?%}.tabItemOn[data-v-56df567b]{color:#0dc99e}.tabItemOnLine[data-v-56df567b]{background:#0dc99e;height:%?4?%;width:%?100?%;position:absolute;bottom:%?-2?%;left:0}.orderBox[data-v-56df567b]{padding-top:%?16?%;padding-bottom:%?16?%;padding-left:%?30?%;padding-right:%?30?%;background:#fff;margin-top:%?20?%}.orderHeader[data-v-56df567b]{flex-direction:row;justify-content:space-between;padding-bottom:%?16?%;border-bottom:%?1?% solid #e4e4e4;align-items:center}.orderBody[data-v-56df567b]{border-bottom:%?1?% solid #e4e4e4;padding-bottom:%?16?%}.orderStatus[data-v-56df567b]{font-family:PingFangSC-Regular;font-size:%?28?%;color:#fd8c30;text-align:left;line-height:%?40?%}.orderNo[data-v-56df567b]{font-family:SourceHanSansCN-Normal;font-size:%?24?%;color:#999;line-height:%?24?%}.orderTag[data-v-56df567b]{background:rgba(13,201,158,.1);border-radius:2px;width:%?100?%;padding:%?4?% %?10?%;margin-right:%?10?%}.orderTagTxt[data-v-56df567b]{font-family:SourceHanSansCN-Normal;font-size:%?20?%;text-align:center}.tag1[data-v-56df567b]{color:#0dc99e}.tag2[data-v-56df567b]{color:#4a90e2}.tag3[data-v-56df567b]{color:#fd8c30}.tagBox2[data-v-56df567b]{background:rgba(60,145,245,.1)}.tagBox3[data-v-56df567b]{background:rgba(253,140,48,.1)}.orderPrice[data-v-56df567b]{flex-direction:row;margin-top:%?16?%;border-bottom:%?1?% solid #e4e4e4;padding-bottom:%?16?%}.priceBox[data-v-56df567b]{margin-right:%?30?%;flex-direction:row;align-items:center}.priceTitle[data-v-56df567b]{font-family:SourceHanSansCN-Normal;font-size:%?24?%;color:#999;line-height:%?28?%}.priceInfo[data-v-56df567b]{font-family:Roboto-Medium;font-size:%?24?%;color:#333;text-align:left;line-height:%?40?%}.orderFooter[data-v-56df567b]{margin-top:%?16?%;padding-bottom:%?16?%;flex-direction:row;justify-content:flex-end}.btn[data-v-56df567b]{border-radius:%?27?%;width:%?108?%;margin-left:%?20?%}.btnCancel[data-v-56df567b]{background:#fff;border:%?1?% solid #0dc99e;align-items:center}.btnTxt[data-v-56df567b]{font-family:SourceHanSansCN-Normal;font-size:%?24?%;text-align:center;height:%?54?%;line-height:%?54?%}.btnCancelTxt[data-v-56df567b]{color:#0dc99e}.btnConfirm[data-v-56df567b]{background:#0dc99e;border:%?1?% solid #0dc99e;align-items:center}.btnConfirmTxt[data-v-56df567b]{color:#fff}.icon[data-v-56df567b]{color:#52d5a6;margin-right:%?12?%;font-size:%?28?%}.navRight[data-v-56df567b]{flex-direction:row}",""]),A.exports=e},"897c":function(A,e,t){"use strict";var n=t("6b21"),r=t("db06");A.exports=!n&&!r&&"object"==typeof window&&"object"==typeof document},"89fc":function(A,e,t){"use strict";t.r(e);var n=t("41da"),r=t.n(n);for(var i in n)["default"].indexOf(i)<0&&function(A){t.d(e,A,(function(){return n[A]}))}(i);e["default"]=r.a},"9c45":function(A,e,t){"use strict";t.r(e);var n=t("ecd4"),r=t("e00a");for(var i in r)["default"].indexOf(i)<0&&function(A){t.d(e,A,(function(){return r[A]}))}(i);t("2748");var o=t("828b"),s=Object(o["a"])(r["default"],n["b"],n["c"],!1,null,"56df567b",null,!1,n["a"],void 0);e["default"]=s.exports},a537:function(A,e,t){"use strict";var n=t("69e4"),r=t("29ba"),i=t("1052").CONSTRUCTOR;A.exports=i||!r((function(A){n.all(A).then(void 0,(function(){}))}))},a578:function(A,e,t){"use strict";var n=t("8bdb"),r=t("f298");n({target:"String",proto:!0},{repeat:r})},cde5:function(A,e,t){"use strict";t("6a54");var n=t("f5bd").default;Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var r=n(t("4c29")),i=r.default;e.default=i},d823:function(A,e,t){"use strict";var n=t("f5bd").default;Object.defineProperty(e,"__esModule",{value:!0}),e.default=e.Signature=void 0;var r=n(t("fcf3"));function i(A,e){var t=Object.keys(A);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(A);e&&(n=n.filter((function(e){return Object.getOwnPropertyDescriptor(A,e).enumerable}))),t.push.apply(t,n)}return t}function o(A){for(var e=1;arguments.length>e;e++){var t=null!=arguments[e]?arguments[e]:{};e%2?i(Object(t),!0).forEach((function(e){u(A,e,t[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(A,Object.getOwnPropertyDescriptors(t)):i(Object(t)).forEach((function(e){Object.defineProperty(A,e,Object.getOwnPropertyDescriptor(t,e))}))}return A}function s(A){return s="function"==typeof Symbol&&"symbol"==(0,r.default)(Symbol.iterator)?function(A){return(0,r.default)(A)}:function(A){return A&&"function"==typeof Symbol&&A.constructor===Symbol&&A!==Symbol.prototype?"symbol":(0,r.default)(A)},s(A)}function a(A,e){if(!(A instanceof e))throw new TypeError("Cannot call a class as a function")}function B(A,e){for(var t=0;e.length>t;t++){var n=e[t];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(A,n.key,n)}}function c(A,e,t){return e&&B(A.prototype,e),t&&B(A,t),Object.defineProperty(A,"prototype",{writable:!1}),A}function u(A,e,t){return e in A?Object.defineProperty(A,e,{value:t,enumerable:!0,configurable:!0,writable:!0}):A[e]=t,A}function l(A,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");A.prototype=Object.create(e&&e.prototype,{constructor:{value:A,writable:!0,configurable:!0}}),Object.defineProperty(A,"prototype",{writable:!1}),e&&d(A,e)}function g(A){return g=Object.setPrototypeOf?Object.getPrototypeOf:function(A){return A.__proto__||Object.getPrototypeOf(A)},g(A)}function d(A,e){return d=Object.setPrototypeOf||function(A,e){return A.__proto__=e,A},d(A,e)}function w(A,e){if(e&&("object"==(0,r.default)(e)||"function"==typeof e))return e;if(void 0!==e)throw new TypeError("Derived constructors may only return object or undefined");return function(A){if(void 0===A)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return A}(A)}function h(A){var e=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(A){return!1}}();return function(){var t,n=g(A);if(e){var r=g(this).constructor;t=Reflect.construct(n,arguments,r)}else t=n.apply(this,arguments);return w(this,t)}}t("dc8a"),t("01a2"),t("8f71"),t("bf0f"),t("9a2c"),t("aa9c"),t("2797"),t("a644"),t("a03a"),t("6a54"),t("e39c"),t("844d"),t("18f7"),t("de6c"),t("7a76"),t("c9b5"),t("8a8d"),t("926e"),t("7996"),t("6a88"),t("dd2b"),t("e838"),t("64aa"),t("1851"),t("f7a5");var Q=function(A){var e=s(A);return null!==A&&"object"===e||"function"===e},f={}.toString,C=function(A,e){return f.call(A)==="[object "+e+"]"},p=function(A){return C(A,"String")},U=function(A){return C(A,"Number")},F=function(A){return C(A,"Function")},v=function(){function A(){a(this,A),this.__events=void 0,this.__events={}}return c(A,[{key:"on",value:function(A,e){if(A&&e){var t=this.__events[A]||[];t.push(e),this.__events[A]=t}}},{key:"emit",value:function(A,e){var t=this;if(Q(A)&&(A=(e=A)&&e.type),A){var n=this.__events[A];n&&n.length&&n.forEach((function(A){A.call(t,e)}))}}},{key:"off",value:function(A,e){var t=this.__events,n=t[A];if(n&&n.length)if(e)for(var r=0,i=n.length;i>r;r++)n[r]===e&&(n.splice(r,1),r--);else delete t[A]}},{key:"getEvents",value:function(){return this.__events}}]),A}(),m=function(A){l(t,v);var e=h(t);function t(A,n){var r;return a(this,t),(r=e.call(this)).context=void 0,r.canvas=void 0,r.attrs=void 0,r.isCanvasElement=void 0,r.context=A,r.canvas=n.canvas||A.canvas||{width:n.width||0,height:n.height||0},r.attrs=n||{},r.isCanvasElement=!0,r}return c(t,[{key:"width",get:function(){return this.canvas.width},set:function(A){this.canvas.width=A}},{key:"height",get:function(){return this.canvas.height},set:function(A){this.canvas.height=A}},{key:"getContext",value:function(){return this.context}},{key:"getBoundingClientRect",value:function(){var A=this.attrs||{},e=A.top,t=A.right,n=A.width,r=A.height,i=A.left,o=A.bottom;return{top:void 0===e?0:e,width:void 0===n?0:n,right:void 0===t?0:t,height:void 0===r?0:r,bottom:void 0===o?0:o,left:void 0===i?0:i}}},{key:"setAttribute",value:function(A,e){this.attrs[A]=e}},{key:"addEventListener",value:function(A,e){this.on(A,e)}},{key:"removeEventListener",value:function(A,e){this.off(A,e)}},{key:"dispatchEvent",value:function(A,e){this.emit(A,e)}}]),t}();function y(A,e){try{return A.currentStyle?A.currentStyle[e]:document.defaultView&&document.defaultView.getComputedStyle(A,null).getPropertyValue(e)}catch(A){return{width:300,height:150}[e]}}function H(A,e){var t=e.get("el");if(!t)return A;var n=t.getBoundingClientRect(),r=n.top,i=void 0===r?0:r,o=n.left,s=void 0===o?0:o,a=parseFloat(y(t,"padding-left"))||0,B=parseFloat(y(t,"padding-top"))||0;return{x:A.x-s-a,y:A.y-i-B}}function E(A,e){var t=e.get("landscape");if(!t)return A;if(F(t))return t(A,e);var n=e.get("height");return{x:A.y,y:n-A.x}}var I=function(A,e){var t=A.touches;if(!t||!t.length)return[E(H({x:A.clientX,y:A.clientY},e),e)];t.length||(t=A.changedTouches||[]);for(var n=[],r=0,i=t.length;i>r;r++){var o,s=t[r],a=s.x,B=s.y,c=s.clientX,u=s.clientY;o=U(a)||U(B)?{x:a,y:B}:H({x:c,y:u},e),n.push(E(o,e))}return n},b=function(A,e){var t=e.x-A.x,n=e.y-A.y;return Math.abs(t)>Math.abs(n)?t>0?"right":"left":n>0?"down":"up"},x=function(A,e){var t=Math.abs(e.x-A.x),n=Math.abs(e.y-A.y);return Math.sqrt(t*t+n*n)},K=function(){function A(e){var t=this,n=e.canvas,r=e.el;a(this,A),this.processEvent=void 0,this.canvas=void 0,this.startTime=0,this.endTime=0,this.startPoints=null,this.startDistance=0,this.center=null,this.pressTimeout=void 0,this.eventType=null,this.direction=null,this.lastMoveTime=0,this.prevMovePoints=null,this.prevMoveTime=0,this.lastMovePoints=null,this.pinch=!1,this._click=function(A){var e=I(A,t.canvas);A.points=e,t.emitEvent("click",A)},this._start=function(A){var e,n,r=I(A,t.canvas);r&&(A.points=r,t.emitEvent("touchstart",A),t.reset(),t.startTime=Date.now(),t.startPoints=r,r.length>1?(t.startDistance=x(r[0],r[1]),t.center={x:(e=r[0]).x+((n=r[1]).x-e.x)/2,y:e.y+(n.y-e.y)/2}):t.pressTimeout=setTimeout((function(){var e="press",n="none";A.direction=n,t.emitStart(e,A),t.emitEvent(e,A),t.eventType=e,t.direction=n}),250))},this._move=function(A){var e=I(A,t.canvas);if(e){A.points=e,t.emitEvent("touchmove",A);var n=t.startPoints;if(n)if(e.length>1){var r=t.startDistance,i=x(e[0],e[1]);A.zoom=i/r,A.center=t.center,t.emitStart("pinch",A),t.emitEvent("pinch",A)}else{var o=e[0].x-n[0].x,s=e[0].y-n[0].y,a=t.direction||b(n[0],e[0]);t.direction=a;var B=t.getEventType(e);A.direction=a,A.deltaX=o,A.deltaY=s,t.emitStart(B,A),t.emitEvent(B,A);var c=t.lastMoveTime,u=Date.now();u-c>0&&(t.prevMoveTime=c,t.prevMovePoints=t.lastMovePoints,t.lastMoveTime=u,t.lastMovePoints=e)}}},this._end=function(A){var e=I(A,t.canvas);A.points=e,t.emitEnd(A),t.emitEvent("touchend",A);var n=t.lastMoveTime;if(100>Date.now()-n){var r=n-(t.prevMoveTime||t.startTime);if(r>0){var i=t.prevMovePoints||t.startPoints,o=t.lastMovePoints;if(!i||!o)return;var s=x(i[0],o[0])/r;s>.3&&(A.velocity=s,A.direction=b(i[0],o[0]),t.emitEvent("swipe",A))}}t.reset();var a=A.touches;a&&a.length>0&&t._start(A)},this._cancel=function(A){t.emitEvent("touchcancel",A),t.reset()},this.canvas=n,this.delegateEvent(r),this.processEvent={}}return c(A,[{key:"delegateEvent",value:function(A){A.addEventListener("click",this._click),A.addEventListener("touchstart",this._start),A.addEventListener("touchmove",this._move),A.addEventListener("touchend",this._end),A.addEventListener("touchcancel",this._cancel)}},{key:"emitEvent",value:function(A,e){this.canvas.emit(A,e)}},{key:"getEventType",value:function(A){var e,t=this.eventType,n=this.startTime,r=this.startPoints;if(t)return t;var i=this.canvas.__events.pan;if(i&&i.length){var o=Date.now();if(!r)return;e=o-n>250&&10>x(r[0],A[0])?"press":"pan"}else e="press";return this.eventType=e,e}},{key:"enable",value:function(A){this.processEvent[A]=!0}},{key:"isProcess",value:function(A){return this.processEvent[A]}},{key:"emitStart",value:function(A,e){this.isProcess(A)||(this.enable(A),this.emitEvent("".concat(A,"start"),e))}},{key:"emitEnd",value:function(A){}},{key:"clearPressTimeout",value:function(){this.pressTimeout&&(clearTimeout(this.pressTimeout),this.pressTimeout=null)}},{key:"reset",value:function(){this.clearPressTimeout(),this.startTime=0,this.startPoints=null,this.startDistance=0,this.direction=null,this.eventType=null,this.pinch=!1,this.prevMoveTime=0,this.prevMovePoints=null,this.lastMoveTime=0,this.lastMovePoints=null}}]),A}(),L=function(A){l(t,v);var e=h(t);function t(A){var n;return a(this,t),(n=e.call(this))._attrs={},n._isWindow=void 0,n._attrs=Object.assign({},A),n._isWindow="undefined"!=typeof window,n._initPixelRatio(),n._initCanvas(),["createImage","toDataURL","requestAnimationFrame"].forEach((function(e){n._initAttrs(e,A.canvas||n.get("el"))})),n}return c(t,[{key:"get",value:function(A){return this._attrs[A]}},{key:"set",value:function(A,e){this._attrs[A]=e}},{key:"_initAttrs",value:function(A,e){var t=this;this.get(A)||this.set(A,(function(){return e[A]?e[A].apply(e,arguments):t._isWindow?window[A]?(n=window)[A].apply(n,arguments):"createImage"==A?new Image:null:void 0;var n}))}},{key:"_initCanvas",value:function(){var A,e,t=this.get("el"),n=this.get("context");if(!t&&!n)throw Error("请指定 id、el 或 context!");A=t?p(t)?(e=t)?document.getElementById(e):null:t:function(A,e){return A?function(A){if(!A)return!1;if(1!==A.nodeType||!A.nodeName||"canvas"!==A.nodeName.toLowerCase())return!1;var e=!1;try{A.addEventListener("eventTest",(function(){e=!0})),A.dispatchEvent(new Event("eventTest"))}catch(A){e=!1}return e}(A.canvas)?A.canvas:new m(A,e):null}(n,this._attrs),n&&A&&!A.getContext&&(A.getContext=function(){return n});var r=this.get("width")||function(A){var e=y(A,"width");return"auto"===e&&(e=A.offsetWidth),parseFloat(e)}(A)||A.width,i=this.get("height")||function(A){var e=y(A,"height");return"auto"===e&&(e=A.offsetHeight),parseFloat(e)}(A)||A.height;this.set("canvas",this),this.set("el",A),this.set("context",n||A.getContext("2d")),this.changeSize(r,i);var o=new K({canvas:this,el:A,parent:this.get("parent")});this.set("eventController",o)}},{key:"_initPixelRatio",value:function(){this.get("pixelRatio")||this.set("pixelRatio",window&&window.devicePixelRatio||1)}},{key:"changeSize",value:function(A,e){var t,n=this.get("pixelRatio"),r=this.get("el");r.style&&(r.style.width=A+"px",r.style.height=e+"px"),(t=r)&&"object"===s(t)&&(1===t.nodeType&&t.nodeName||t.isCanvasElement)&&(r.width=A*n,r.height=e*n,1!==n&&this.get("context").scale(n,n)),this.set("width",A),this.set("height",e)}},{key:"destroy",value:function(){if(!this.get("destroyed")){var A=this.get("el");A.width=0,A.height=0,this.clear(),this._attrs={},this.set("destroyed",!0)}}},{key:"clear",value:function(){}},{key:"isDestroyed",value:function(){return this.get("destroyed")}}]),t}(),S={penColor:"black",backgroundColor:"",openSmooth:!0,penSize:2,minLineWidth:2,maxLineWidth:6,minSpeed:1.5,maxWidthDiffRate:20,maxHistoryLength:20},D=null,T=function(){function A(e){var t=this;a(this,A),this.canAddHistory=!0,this.points=[],this.historyList=[],this.undoneList=[],this.canvas=void 0,this._isEmpty=!0,this.active=!1,this.getLineWidth=function(A){var e=t.get("options"),n=e.minSpeed,r=e.minLineWidth,i=t.getMaxLineWidth();return Math.min(Math.max(i-(i-r)*A/Math.max(Math.min(n,10),1),r),i)},this.drawTrapezoid=function(A,e,n,r){var i=t.get("context");i.beginPath(),i.moveTo(Number(A.x.toFixed(1)),Number(A.y.toFixed(1))),i.lineTo(Number(e.x.toFixed(1)),Number(e.y.toFixed(1))),i.lineTo(Number(n.x.toFixed(1)),Number(n.y.toFixed(1))),i.lineTo(Number(r.x.toFixed(1)),Number(r.y.toFixed(1))),i.fillStyle=t.get("options").penColor,i.fill(),i.draw&&i.draw(!0)},this.drawNoSmoothLine=function(A,e){e.lastX=A.x+.5*(e.x-A.x),e.lastY=A.y+.5*(e.y-A.y),"number"==typeof A.lastX&&t.drawCurveLine(A.lastX,A.lastY,A.x,A.y,e.lastX,e.lastY,t.getMaxLineWidth())},this.drawCurveLine=function(A,e,n,r,i,o,s){s=Number(s.toFixed(1));var a=t.get("context");a.lineWidth=s,a.beginPath(),a.moveTo(Number(A.toFixed(1)),Number(e.toFixed(1))),a.quadraticCurveTo(Number(n.toFixed(1)),Number(r.toFixed(1)),Number(i.toFixed(1)),Number(o.toFixed(1))),a.stroke(),a.draw&&a.draw(!0)},this.getRadianData=function(A,e,t,n){var r=t-A,i=n-e;if(0===r)return{val:0,pos:-1};if(0===i)return{val:0,pos:1};var o=Math.abs(Math.atan(i/r));return t>A&&e>n||A>t&&n>e?{val:o,pos:1}:{val:o,pos:-1}},this.getRadianPoints=function(A,e,t,n){if(0===A.val)return 1===A.pos?[{x:e,y:t+n},{x:e,y:t-n}]:[{y:t,x:e+n},{y:t,x:e-n}];var r=Math.sin(A.val)*n,i=Math.cos(A.val)*n;return 1===A.pos?[{x:e+r,y:t+i},{x:e-r,y:t-i}]:[{x:e+r,y:t-i},{x:e-r,y:t+i}]},this.drawSmoothLine=function(A,e){var n=e.x-A.x,r=e.y-A.y;if(Math.abs(n)+Math.abs(r)>2?(e.lastX1=A.x+.3*n,e.lastY1=A.y+.3*r,e.lastX2=A.x+.7*n,e.lastY2=A.y+.7*r):(e.lastX1=e.lastX2=A.x+.5*n,e.lastY1=e.lastY2=A.y+.5*r),e.perLineWidth=(A.lineWidth+e.lineWidth)/2,"number"==typeof A.lastX1){if(t.drawCurveLine(A.lastX2,A.lastY2,A.x,A.y,e.lastX1,e.lastY1,e.perLineWidth),A.isFirstPoint)return;if(A.lastX1===A.lastX2&&A.lastY1===A.lastY2)return;var i=t.getRadianData(A.lastX1,A.lastY1,A.lastX2,A.lastY2),o=t.getRadianPoints(i,A.lastX1,A.lastY1,A.perLineWidth/2),s=t.getRadianPoints(i,A.lastX2,A.lastY2,e.perLineWidth/2);t.drawTrapezoid(o[0],s[0],s[1],o[1])}else e.isFirstPoint=!0},this.addHistory=function(){var A=t.get("options").maxHistoryLength;if(A&&t.canAddHistory)if(t.canAddHistory=!1,t.get("createImage")){var e=null;e=t.get("createImage")();var n=t.get("toDataURL")&&t.get("toDataURL")();p(n)?e.src=n:n.then((function(A){e.src=A})),e.onload=function(){var n=D;D=e,t.historyList.push(n),t.historyList=t.historyList.slice(-A)}}else t.historyList.length++},this.drawByImage=function(A){var e=t.get("context"),n=t.get("width"),r=t.get("height");e.clearRect(0,0,n,r);try{A&&e.drawImage(A,0,0,n,r),e.draw&&e.draw(!0)}catch(A){t.historyList.length=0}},this.isEmpty=function(){return t.get("options").maxHistoryLength>0?0===t.historyList.length:t._isEmpty},this.clear=function(){if(!t.get("options").disabled){var A=t.get("context");A.clearRect(0,0,t.get("width"),t.get("height")),A.draw&&A.draw(),t._isEmpty=!0,D=null,t.historyList.length=0}},this.undo=function(){if(!t.get("options").disabled&&(0===t.get("options").maxHistoryLength&&t.clear(),t.get("createImage")&&t.historyList.length)){var A=t.historyList.pop();t.drawByImage(A),t.undoneList.push(D),D=A,t.historyList.length||t.undoneList.length||t.clear()}},this.redo=function(){if(t.undoneList.length&&!t.get("options").disabled){var A=t.undoneList.pop();t.historyList.push(D),t.drawByImage(A),D=A,t._isEmpty=!1}},this.canvas=e,this.canvas.set("pen",S),this.init()}return c(A,[{key:"getOption",value:function(){}},{key:"setOption",value:function(){var A=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},e=o({},A),t=e.maxLineWidth;if(t&&A.penSize&&t==S.maxLineWidth){var n=Math.max(t,A.penSize);e.maxLineWidth=n}this.canvas.set("pen",Object.assign({},S,e))}},{key:"get",value:function(A){return this.canvas.get("options"==A?"pen":A)}},{key:"init",value:function(){var A=this;this.get("context").lineCap="round",this.canvas.on("touchstart",(function(e){return A.onDrawStart(e)})),this.canvas.on("touchmove",(function(e){return A.onDrawMove(e)})),this.canvas.on("touchend",(function(e){return A.onDrawEnd(e)}))}},{key:"drawBackground",value:function(){var A=this.get("context"),e=this.get("width"),t=this.get("height"),n=this.get("options"),r=n.backgroundColor,i=n.backgroundImage;r&&(A.fillStyle=r,A.fillRect(0,0,e,t),A.draw&&A.draw(!0)),i&&this.drawByImage(i)}},{key:"getImageData",value:function(A){if(A){var e=this.get("width"),t=this.get("height"),n=this.get("el"),r="CANVAS"===n.nodeName,i=r?e:n.width,o=r?t:n.height;if(r){var s=document.createElement("canvas");s.width=e,s.height=t;var a=s.getContext("2d");a.drawImage(n,0,0,e,t);var B=a.getImageData(0,0,e,t).data;return A(B)}var c,u=this.get("context").getImageData(0,0,i,o);return Q(c=u)&&F(c.then)&&F(c.catch)?(u.then((function(e){return A(e.data)})),null):A(u.data)}}},{key:"getMaskedImageData",value:function(A){if(A)return this.getImageData((function(e){for(var t=0;e.length>t;t+=4)0===e[t+3]?(e[t]=0,e[t+1]=0,e[t+2]=0):(e[t]=255,e[t+1]=255,e[t+2]=255);return A(e)}))}},{key:"getContentBoundingBox",value:function(A){var e=this.get("pixelRatio"),t=this.get("width"),n=this.get("height"),r=this.get("el"),i="CANVAS"===r.nodeName,o=i?t:r.width,s=i?n:r.height;return e=i?1:e,this.getImageData((function(t){for(var n=Math.floor(o),r=n,i=Math.floor(s),a=0,B=0,c=0;t.length>c;c+=4)if(t[c+3]>0){var u=c/4%n,l=Math.floor(c/4/n);r=Math.min(r,u),i=Math.min(i,l),a=Math.max(a,u),B=Math.max(B,l)}var g={width:(a-r+1)/e,height:(B-i+1)/e,startX:r/e,startY:i/e};return A&&A(g),g}))}},{key:"remove",value:function(){var A=this;this.canvas.off("touchstart",(function(e){return A.onDrawStart(e)})),this.canvas.off("touchmove",(function(e){return A.onDrawMove(e)})),this.canvas.off("touchend",(function(e){return A.onDrawEnd(e)}))}},{key:"disableScroll",value:function(A){A.preventDefault&&this.get("options").disableScroll&&A.preventDefault()}},{key:"onDrawStart",value:function(A){if(!this.get("options").disabled){this.disableScroll(A),this.undoneList.length=0;var e=A.points;if(this.active){this.canAddHistory=!0,this.get("context").strokeStyle=this.get("options").penColor;var t=e[0];this.initPoint(t.x,t.y)}}}},{key:"onDrawMove",value:function(A){if(!this.get("options").disabled&&(this.disableScroll(A),this.active)){var e=A.points[0];this.initPoint(e.x,e.y),this.onDraw()}}},{key:"onDrawEnd",value:function(A){this.active&&!this.get("options").disabled&&(this.addHistory(),this.canAddHistory=!0,this.points=[])}},{key:"onDraw",value:function(){var A=this,e=this.get("context");if(this.points.length>=2){e.lineWidth=this.get("options").penSize||2;var t=this.points.slice(-1)[0],n=this.points.slice(-2,-1)[0];(function(){A._isEmpty=!1,A.get("options").openSmooth?A.drawSmoothLine(n,t):A.drawNoSmoothLine(n,t)})()}}},{key:"getMaxLineWidth",value:function(){var A=this.get("options");return Math.min(A.penSize,A.maxLineWidth)}},{key:"initPoint",value:function(A,e){var t={x:A,y:e,t:Date.now()},n=this.points.slice(-1)[0];if(!n||n.t!==t.t&&(n.x!==A||n.y!==e)){if(this.get("options").openSmooth&&n){var r=this.points.slice(-2,-1)[0];if(t.distance=Math.sqrt(Math.pow(t.x-n.x,2)+Math.pow(t.y-n.y,2)),t.speed=t.distance/(t.t-n.t||.1),t.lineWidth=this.getLineWidth(t.speed),r&&r.lineWidth&&n.lineWidth){var i=(t.lineWidth-n.lineWidth)/n.lineWidth,o=this.get("options").maxWidthDiffRate/100;o=o>1?1:.01>o?.01:o,Math.abs(i)>o&&(t.lineWidth=n.lineWidth*(1+(i>0?o:-o)))}}this.points.push(t),this.points=this.points.slice(-3)}}}]),A}(),M=function(){function A(e){a(this,A),this.canvas=void 0,this._ee=void 0,this.pen=void 0;var t=new L(e);t.set("parent",this),this.canvas=t,this._ee=new v,this.pen=new T(t),this.init()}return c(A,[{key:"init",value:function(){this.pen.active=!0}},{key:"destroy",value:function(){this.canvas.destroy()}},{key:"clear",value:function(){this.pen.clear()}},{key:"undo",value:function(){this.pen.undo()}},{key:"redo",value:function(){this.pen.redo()}},{key:"save",value:function(){}},{key:"getContentBoundingBox",value:function(A){return this.pen.getContentBoundingBox(A)}},{key:"getMaskedImageData",value:function(A){return this.pen.getMaskedImageData(A)}},{key:"isEmpty",value:function(){return this.pen.isEmpty()}},{key:"on",value:function(A,e){this._ee.on(A,e)}},{key:"emit",value:function(A,e){this._ee.emit(A,e)}},{key:"off",value:function(A,e){this._ee.off(A,e)}}]),A}();e.Signature=M;var k=M;e.default=k},db04:function(A,e,t){"use strict";var n=t("bb80"),r=t("c435"),i=t("9e70"),o=t("f298"),s=t("862c"),a=n(o),B=n("".slice),c=Math.ceil,u=function(A){return function(e,t,n){var o,u,l=i(s(e)),g=r(t),d=l.length,w=void 0===n?" ":i(n);return g<=d||""===w?l:(o=g-d,u=a(w,c(o/w.length)),u.length>o&&(u=B(u,0,o)),A?l+u:u+l)}};A.exports={start:u(!1),end:u(!0)}},e00a:function(A,e,t){"use strict";t.r(e);var n=t("59be"),r=t.n(n);for(var i in n)["default"].indexOf(i)<0&&function(A){t.d(e,A,(function(){return n[A]}))}(i);e["default"]=r.a},ecd4:function(A,e,t){"use strict";t.d(e,"b",(function(){return n})),t.d(e,"c",(function(){return r})),t.d(e,"a",(function(){}));var n=function(){var A=this,e=A.$createElement,t=A._self._c||e;return t("v-uni-view",[t("v-uni-view",{staticClass:"orderBox"},[t("v-uni-view",{staticClass:"orderHeader"},[t("v-uni-text",{staticClass:"orderNo"},[A._v("订单编号:"+A._s(A.info.serial))]),t("v-uni-text",{staticClass:"orderStatus"},[A._v(A._s(A.info.status_name))])],1),t("v-uni-view",{staticClass:"orderBody"},[t("v-uni-view",{staticClass:"orderLine"},[t("v-uni-text",{staticClass:"iconfont iconLocation icon"},[A._v("")]),t("v-uni-text",{staticClass:"orderTxt"},[A._v(A._s(A.info.project.name))]),t("v-uni-text",{staticClass:"orderGe"},[A._v("|")]),t("v-uni-text",{staticClass:"orderTxt"},[A._v(A._s(A.info.bed.building_name)+"-"+A._s(A.info.bed.area_name)+"-"+A._s(A.info.bed.room_name)+"-"+A._s(A.info.bed.name+"床"))])],1),t("v-uni-view",{staticClass:"orderLine"},[t("v-uni-text",{staticClass:"iconfont iconLocation icon"},[A._v("")]),t("v-uni-text",{staticClass:"orderTxt"},[A._v(A._s(A.info.patient.name))]),t("v-uni-text",{staticClass:"orderGe"},[A._v("|")]),t("v-uni-text",{staticClass:"orderTxt"},[A._v(A._s(null==A.info.patient.sex?"男":A.info.patient.sex))]),t("v-uni-text",{staticClass:"orderGe"},[A._v("|")]),t("v-uni-text",{staticClass:"orderTxt"},[A._v(A._s(A.info.mobile))])],1),t("v-uni-view",{staticClass:"orderLine"},[t("v-uni-text",{staticClass:"iconfont iconLocation icon"},[A._v("")]),t("v-uni-text",{staticClass:"orderTxt"},[A._v(A._s(A.info.from_date)+" ~ "+A._s(A.info.to_date)+" 共预约"+A._s(A.info.days)+"天")])],1),t("v-uni-view",{staticClass:"orderLine",staticStyle:{"padding-left":"43rpx"}},[A._l(A.info.factorjson,(function(e,n){return[t("v-uni-view",{staticClass:"orderTag tagBox1"},[t("v-uni-text",{staticClass:"orderTagTxt tag1"},[A._v(A._s(e.factor_item_name))])],1)]})),null!=A.info.product_item?t("v-uni-view",{staticClass:"orderTag tagBox2"},[t("v-uni-text",{staticClass:"orderTagTxt tag2"},[A._v(A._s(A.info.product_item.name))])],1):A._e(),null!=A.info.paramedic_level?t("v-uni-view",{staticClass:"orderTag tagBox3"},[t("v-uni-text",{staticClass:"orderTagTxt tag3"},[A._v(A._s(A.info.paramedic_level.name))])],1):A._e()],2)],1),t("v-uni-view",{staticClass:"orderPrice"},[t("v-uni-view",{staticClass:"priceBox"},[t("v-uni-text",{staticClass:"priceTitle"},[A._v("合计:")]),t("v-uni-text",{staticClass:"priceInfo"},[A._v("¥"+A._s(A.info.total))])],1),t("v-uni-view",{staticClass:"priceBox"},[t("v-uni-text",{staticClass:"priceTitle"},[A._v("已扣:")]),t("v-uni-text",{staticClass:"priceInfo"},[A._v("¥"+A._s(A.info.paid_total))])],1),t("v-uni-view",{staticClass:"priceBox"},[t("v-uni-text",{staticClass:"priceTitle"},[A._v("余额:")]),t("v-uni-text",{staticClass:"priceInfo"},[A._v("¥"+A._s(A.info.customer.balance))])],1),A.info.paramedic?t("v-uni-view",{staticClass:"priceBox"},[t("v-uni-text",{staticClass:"priceTitle"},[A._v("护工:")]),t("v-uni-text",{staticClass:"priceInfo"},[A._v(A._s(A.info.paramedic?A.info.paramedic.name:""))])],1):A._e()],1)],1)],1)},r=[]},f1ad:function(A,e,t){var n=t("5213");n.__esModule&&(n=n.default),"string"===typeof n&&(n=[[A.i,n,""]]),n.locals&&(A.exports=n.locals);var r=t("967d").default;r("644f41f7",n,!0,{sourceMap:!1,shadowMode:!1})},f298:function(A,e,t){"use strict";var n=t("497b"),r=t("9e70"),i=t("862c"),o=RangeError;A.exports=function(A){var e=r(i(this)),t="",s=n(A);if(s<0||s===1/0)throw new o("Wrong number of repetitions");for(;s>0;(s>>>=1)&&(e+=e))1&s&&(t+=e);return t}},f555:function(A,e,t){"use strict";var n=t("85c1"),r=t("ab4a"),i=t("e4ca"),o=t("471d"),s=t("af9e"),a=n.RegExp,B=a.prototype,c=r&&s((function(){var A=!0;try{a(".","d")}catch(c){A=!1}var e={},t="",n=A?"dgimsy":"gimsy",r=function(A,n){Object.defineProperty(e,A,{get:function(){return t+=n,!0}})},i={dotAll:"s",global:"g",ignoreCase:"i",multiline:"m",sticky:"y"};for(var o in A&&(i.hasIndices="d"),i)r(o,i[o]);var s=Object.getOwnPropertyDescriptor(B,"flags").get.call(e);return s!==n||t!==n}));c&&i(B,"flags",{configurable:!0,get:o})},f6ac:function(A,e,t){var n=t("7ca2");n.__esModule&&(n=n.default),"string"===typeof n&&(n=[[A.i,n,""]]),n.locals&&(A.exports=n.locals);var r=t("967d").default;r("34ce4cbe",n,!0,{sourceMap:!1,shadowMode:!1})}}]); \ No newline at end of file diff --git a/resources/views/admin/orders/index.blade.php b/resources/views/admin/orders/index.blade.php index 2e77329..2a535e5 100755 --- a/resources/views/admin/orders/index.blade.php +++ b/resources/views/admin/orders/index.blade.php @@ -88,7 +88,7 @@ {{ $row->serial }} - {{isset($row->orderAgreements)?"/storage/" .$row->orderAgreements[0]->file->name:""}} + {{isset($row->orderAgreements)?"/storage/" .$row->orderAgreements:""}} {{ $row->project->name }} {{ $row->bed->building->name }}