(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["PeriodExchange"],{3767:function(t,e,r){"use strict";var n=r("a146"),o=r.n(n);o.a},"3cde":function(t,e,r){},4127:function(t,e,r){"use strict";var n=r("d2334"),o=r("b313"),a=Object.prototype.hasOwnProperty,i={brackets:function(t){return t+"[]"},comma:"comma",indices:function(t,e){return t+"["+e+"]"},repeat:function(t){return t}},s=Array.isArray,c=Array.prototype.push,l=function(t,e){c.apply(t,s(e)?e:[e])},u=Date.prototype.toISOString,p=o["default"],f={addQueryPrefix:!1,allowDots:!1,charset:"utf-8",charsetSentinel:!1,delimiter:"&",encode:!0,encoder:n.encode,encodeValuesOnly:!1,format:p,formatter:o.formatters[p],indices:!1,serializeDate:function(t){return u.call(t)},skipNulls:!1,strictNullHandling:!1},d=function(t){return"string"===typeof t||"number"===typeof t||"boolean"===typeof t||"symbol"===typeof t||"bigint"===typeof t},h=function t(e,r,o,a,i,c,u,p,h,y,m,v,g){var A=e;if("function"===typeof u?A=u(r,A):A instanceof Date?A=y(A):"comma"===o&&s(A)&&(A=A.join(",")),null===A){if(a)return c&&!v?c(r,f.encoder,g):r;A=""}if(d(A)||n.isBuffer(A)){if(c){var b=v?r:c(r,f.encoder,g);return[m(b)+"="+m(c(A,f.encoder,g))]}return[m(r)+"="+m(String(A))]}var w,C=[];if("undefined"===typeof A)return C;if(s(u))w=u;else{var S=Object.keys(A);w=p?S.sort(p):S}for(var x=0;x0?v+m:""}},4328:function(t,e,r){"use strict";var n=r("4127"),o=r("9e6a"),a=r("b313");t.exports={formats:a,parse:o,stringify:n}},"6e6e":function(t,e,r){"use strict";var n=function(){var t=this,e=t.$createElement,r=t._self._c||e;return r("div",{staticClass:"mheader"},[r("header",{staticClass:"m-nav-header",class:[t.isFixed?"fixed":""]},[r("div",{directives:[{name:"show",rawName:"v-show",value:t.isBack,expression:"isBack"}],staticClass:"m-nav-bar__left",on:{click:t.goBack}},[r("van-icon",{staticClass:"arrow-left",attrs:{name:"arrow-left"}})],1),r("div",{staticClass:"m-nav-bar__title"},[t._t("default",[t._v(t._s(t.name?t.name:this.$route.meta.descrition))])],2),r("div",{staticClass:"m-nav-bar__right"},[t._t("right")],2)])])},o=[],a={name:"mheader",props:{name:String,isBack:{type:Boolean,default:!0},isFixed:{type:Boolean,default:!0},backUrl:{type:Object,default:function(){return{callBack:null,path:"",params:{}}}}},methods:{goBack:function(){var t=this.backUrl;"function"==typeof t.callBack?t.callBack():t.path?this.$router.push({path:t.path,query:t.params}):history.go(-1)}}},i=a,s=(r("d133"),r("2877")),c=Object(s["a"])(i,n,o,!1,null,"0e835508",null);e["a"]=c.exports},"8f37":function(t,e){t.exports="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACwAAAAsCAMAAAApWqozAAAApVBMVEUAAAAAyAAAwwAAyQAAxgAAyQAAyQAAyAAAyAAAyAAAyQAAyQAAyQAAzAAAygAAyAAAyAAAyAAAyAAAyQAAyAAAyQAAyAAAyAAAyQAAyQAAygAAywAAywAAyQAAyQAAygAAygAAyQAAyAAAyAAAyAAAyAAAyQAAyAAAyAAAygAAygAAyAAAyAAAyQAAyQAAyQAAygAAyQAAygAAyAAAywAAyQAAyACxriw2AAAANnRSTlMA7QT9DNpv9vP7v7GaFgjo3867uLWlhoBaS0UrG6qdUDsi+OTUkWVjMi8oxKB4cmhWxZCMU0HyawkQAAABiUlEQVQ4y9WUyXKCQBRFr8isRBSZFOfZOGV6//9pAdJCQ2hglaqcVS9OdT3ufQ3+jOmhP1I6mjZQnN1hVWee3m0qoHgif/JKFTjLCvVskoBeVHbVNQnR9wX1ZUa19KXclU1qwHkBQxpTIy4YH42qrcrPyLoNqrlIRk4HkZRac+0eE8u6mIjZ16kdL0rTuupEEwBbsarcf0ZdKGk5wDG/paSOQrZbDqUYFvzMlR6crs1PrIOdQYwAecZLRCN2HPgWq+DOXbCDnS8MgJsWH7aHZ19fw8Jc0LNz95wM6LoTMFazYgNDGNy6gEf2tXI44D/K4txgQ2WGhZi9TD1WvZoxXL4vti7WvHJdPKjEoaZx3XSqJETEX2JLQChaLC0O1CGO2ULwEFhYS2qHMUVMr14qthB12rgDVkJotBgiWwK12+R298hQm1wVHJ96nas/UOBUYw/PKPEmfOCqVHZlwV90c5Xxi0X6HeZsUMh2HkqooJ/MtkzeVeBdxuaoN/eDFQTYtAnQlp4v47/wDWJr5wNR5I/fAAAAAElFTkSuQmCC"},9084:function(t,e,r){"use strict";r.r(e);var n=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{staticClass:"periodExchange"},[t.headerStatus?n("m-header"):t._e(),n("van-cell-group",[n("van-cell",{attrs:{center:!0}},[n("template",{slot:"icon"},[t.userInfo.avatar?n("img",{staticClass:"logo",attrs:{src:t.userInfo.avatar,alt:""}}):n("img",{staticClass:"logo",attrs:{src:r("f9b5"),alt:""}})]),n("template",{slot:"title"},[n("p",{staticClass:"exchangeText"},[t._v(t._s(t.userInfo.realName))])]),n("template",{slot:"label"},[n("p",{staticClass:"info"},[t._v("剩余时长:"+t._s(t.availableMinutes))])])],2)],1),t.dataShow?n("div",{staticClass:"activeList"},[n("h2",[t._v("优惠活动:")]),t._l(t.dataList,function(e,r){return n("div",{key:r,staticClass:"active",on:{click:function(r){return t.onPayOrder(e)}}},[t.imageStatus?n("van-icon",{staticClass:"icon_question",attrs:{name:"question-o"},on:{click:function(r){return r.stopPropagation(),t.onMore(e)}}}):t._e(),n("van-image",{attrs:{src:e.coverImg},on:{load:t.onImageLoad},scopedSlots:t._u([{key:"loading",fn:function(){return[n("van-loading",{attrs:{type:"spinner",size:"20"}})]},proxy:!0}],null,!0)})],1)})],2):n("div",{staticClass:"activeList"},[n("h2",[t._v("优惠活动:")]),n("m-empty",{key:"data",staticClass:"empty",attrs:{msg:"暂无优惠活动"}})],1),n("van-popup",{style:{minHeight:"30%",maxHeight:"60%"},attrs:{closeable:"",position:"bottom"},model:{value:t.popupShow,callback:function(e){t.popupShow=e},expression:"popupShow"}},[n("div",{staticClass:"popupContent",domProps:{innerHTML:t._s(t.popupContent)}})]),n("m-payment",{attrs:{closeStatus:t.isStatus,amount:t.payMoney,payment:t.payment},on:{onChangeStatus:t.onChangeStatus}})],1)},o=[],a=r("a34a"),i=r.n(a),s=r("6e6e"),c=r("d678"),l=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{staticClass:"mpayment"},[n("van-popup",{style:{minHeight:"30%"},attrs:{"close-on-click-overlay":!1,"close-icon-position":"top-left",position:"bottom",round:"",closeOnPopstate:!0,"safe-area-inset-bottom":!0},model:{value:t.isShow,callback:function(e){t.isShow=e},expression:"isShow"}},[n("i",{staticClass:"van-icon van-icon-cross van-popup__close-icon van-popup__close-icon--top-left",on:{click:t.onClose}}),n("div",{staticClass:"title van-hairline--bottom"},[t._v("选择支付方式")]),n("div",{staticClass:"payAmount"},[n("p",[t._v("应付金额")]),n("div",{staticClass:"amount"},[t._v(t._s(t.payAmount)),n("span",[t._v("元")])])]),n("van-radio-group",{model:{value:t.payType,callback:function(e){t.payType=e},expression:"payType"}},[n("div",{staticClass:"payment-item van-hairline--bottom",on:{click:function(e){t.payType="zfb"}}},[n("div",{staticClass:"logo-section"},[n("img",{staticClass:"logo",attrs:{src:r("9c08"),alt:""}})]),n("div",{staticClass:"title-section"},[t._v("支付宝支付")]),n("div",{staticClass:"value-section"},[n("van-radio",{attrs:{name:"zfb"}})],1)]),n("div",{staticClass:"payment-item",on:{click:function(e){t.payType="wx"}}},[n("div",{staticClass:"logo-section"},[n("img",{staticClass:"logo",attrs:{src:r("8f37"),alt:""}})]),n("div",{staticClass:"title-section"},[t._v("微信支付")]),n("div",{staticClass:"value-section"},[n("van-radio",{attrs:{name:"wx"}})],1)])]),n("div",{staticClass:"blank"}),n("van-button",{attrs:{type:"primary",block:""},on:{click:t.onSubmit}},[t._v("确认支付")])],1)],1)},u=[],p=r("ff51"),f={name:"mheader",props:{closeStatus:{type:Boolean,default:!1},amount:{type:Number,default:0},payment:{type:Object}},data:function(){return{isShow:this.closeStatus,payAmount:this.amount,paymentObject:this.payment,payType:"zfb"}},methods:{onClose:function(){var t=this;this.$dialog.confirm({message:"是否放弃本次付款",confirmButtonText:"继续付款",cancelButtonText:"放弃"}).then(function(){}).catch(function(){t.isShow=!1,t.$emit("onChangeStatus",t.isShow)})},onSubmit:function(){var t=this.payType,e=window.navigator.userAgent.toLowerCase();"micromessenger"==e.match(/MicroMessenger/i)?"zfb"==t?(this.pay_channel="alipay_qr",this.getCodePay("qrCode")):"wx"==t&&(this.pay_channel="wx_pub",this.getCodePay("pay")):"alipayclient"==e.match(/AlipayClient/i)?"zfb"==t?(this.pay_channel="alipay_wap",this.getCodePay("pay")):"wx"==t&&(this.pay_channel="wx_pub",this.getCodePay("qrCode")):("zfb"==t?this.pay_channel="alipay_qr":"wx"==t&&(this.pay_channel="wx_pub"),this.getCodePay("qrCode"))},getCodePay:function(t){var e=Object(p["f"])();e+="qrCode"==t?"/#/payQRCode":"/#/payResult",e+="?payType=".concat(this.pay_channel,"&payment=").concat(JSON.stringify(this.paymentObject),"&platform=teacher"),this.$emit("onChangeStatus",!1),window.location.href=e}},watch:{closeStatus:function(t){this.isShow=t},amount:function(t){this.payAmount=Object(p["d"])(t)},payment:function(t){this.paymentObject=t}}},d=f,h=(r("a58c"),r("2877")),y=Object(h["a"])(d,l,u,!1,null,"f371c6a0",null),m=y.exports,v=r("b562");function g(t,e,r,n,o,a,i){try{var s=t[a](i),c=s.value}catch(l){return void r(l)}s.done?e(c):Promise.resolve(c).then(n,o)}function A(t){return function(){var e=this,r=arguments;return new Promise(function(n,o){var a=t.apply(e,r);function i(t){g(a,n,o,i,s,"next",t)}function s(t){g(a,n,o,i,s,"throw",t)}i(void 0)})}}var b={name:"courseApply",components:{MHeader:s["a"],MEmpty:c["a"],MPayment:m},data:function(){return{userInfo:{},availableMinutes:0,headerStatus:!0,result:{},dataList:[],isClick:!1,popupShow:!1,popupContent:null,dataShow:!0,imageStatus:!1,isStatus:!1,payment:{},payMoney:0}},mounted:function(){var t=this.$route.query;t.Authorization&&(localStorage.setItem("Authorization",decodeURI(t.Authorization)),localStorage.setItem("userInfo",decodeURI(t.Authorization))),document.title="课时兑换",(Object(p["b"])().android||Object(p["b"])().iPhone)&&(this.headerStatus=!1),this.__init()},methods:{__init:function(){var t=A(i.a.mark(function t(){var e,r=this;return i.a.wrap(function(t){while(1)switch(t.prev=t.next){case 0:return e=!0,this.$toast.loading({duration:0,message:"加载中...",forbidClick:!0,loadingType:"spinner"}),t.next=4,Object(v["l"])().then(function(t){var e=t.data;e&&(r.userInfo=e)});case 4:return t.next=6,Object(v["o"])().then(function(t){var n=t.data;if(200==n.code){var o=n.data;o&&(r.availableMinutes=Object(p["c"])(o.availableMinutes?o.availableMinutes:0))}else e=!1,r.$toast(n.msg)});case 6:return t.next=8,Object(v["q"])().then(function(t){var n=t.data;200==n.code?r.dataList=n.data.rows?n.data.rows:[]:(e=!1,r.$toast(n.msg)),r.dataList.length<=0&&(r.dataShow=!1)});case 8:e&&this.$toast.clear();case 9:case"end":return t.stop()}},t,this)}));function e(){return t.apply(this,arguments)}return e}(),onImageLoad:function(){this.imageStatus=!0},onPayOrder:function(t){var e=this;this.isClick||(this.$toast.loading({duration:0,message:"加载中...",forbidClick:!0,loadingType:"spinner"}),this.isClick=!0,Object(v["d"])({activitiesId:t.id}).then(function(r){var n=r.data;e.$toast.clear(),e.isClick=!1,200==n.code?(e.result=n.data,e.onSubmit()):100==n.code?e.$dialog.confirm({message:n.data,confirmButtonColor:"#269a93",cancelButtonText:"取消",confirmButtonText:"继续付款"}).then(function(){e.$toast.loading({duration:0,message:"加载中...",forbidClick:!0,loadingType:"spinner"}),Object(v["d"])({activitiesId:t.id,isContinuePay:!0}).then(function(t){var r=t.data;e.$toast.clear(),200==r.code?(e.result=r.data,e.onSubmit()):e.$toast(r.msg)})}):e.$toast(n.msg)}))},onChangeStatus:function(t){this.isStatus=t},onSubmit:function(){var t=this.result,e=t.payMap;this.payMoney=Number(e.amount),"YQPAY"==t.type?(document.querySelector("#onSubmit").action=e.host,document.querySelector("#apiContent").value=e.apiContent,document.querySelector("#merNo").value=e.merNo,document.querySelector("#notifyUrl").value=e.notifyUrl,document.querySelector("#sign").value=e.sign,document.querySelector("#signType").value=e.signType,document.querySelector("#timestamp").value=e.timestamp,document.querySelector("#version").value=e.version,document.querySelector("#onSubmit").submit()):"ADAPAY"==t.type&&(this.payment=t,this.isStatus=!0)},onMore:function(t){this.popupContent=t.detail,this.popupShow=!0}}},w=b,C=(r("d1de"),Object(h["a"])(w,n,o,!1,null,"02da0770",null));e["default"]=C.exports},"96cf":function(t,e,r){var n=function(t){"use strict";var e,r=Object.prototype,n=r.hasOwnProperty,o="function"===typeof Symbol?Symbol:{},a=o.iterator||"@@iterator",i=o.asyncIterator||"@@asyncIterator",s=o.toStringTag||"@@toStringTag";function c(t,e,r,n){var o=e&&e.prototype instanceof y?e:y,a=Object.create(o.prototype),i=new _(n||[]);return a._invoke=x(t,r,i),a}function l(t,e,r){try{return{type:"normal",arg:t.call(e,r)}}catch(n){return{type:"throw",arg:n}}}t.wrap=c;var u="suspendedStart",p="suspendedYield",f="executing",d="completed",h={};function y(){}function m(){}function v(){}var g={};g[a]=function(){return this};var A=Object.getPrototypeOf,b=A&&A(A(N([])));b&&b!==r&&n.call(b,a)&&(g=b);var w=v.prototype=y.prototype=Object.create(g);function C(t){["next","throw","return"].forEach(function(e){t[e]=function(t){return this._invoke(e,t)}})}function S(t){function e(r,o,a,i){var s=l(t[r],t,o);if("throw"!==s.type){var c=s.arg,u=c.value;return u&&"object"===typeof u&&n.call(u,"__await")?Promise.resolve(u.__await).then(function(t){e("next",t,a,i)},function(t){e("throw",t,a,i)}):Promise.resolve(u).then(function(t){c.value=t,a(c)},function(t){return e("throw",t,a,i)})}i(s.arg)}var r;function o(t,n){function o(){return new Promise(function(r,o){e(t,n,r,o)})}return r=r?r.then(o,o):o()}this._invoke=o}function x(t,e,r){var n=u;return function(o,a){if(n===f)throw new Error("Generator is already running");if(n===d){if("throw"===o)throw a;return L()}r.method=o,r.arg=a;while(1){var i=r.delegate;if(i){var s=O(i,r);if(s){if(s===h)continue;return s}}if("next"===r.method)r.sent=r._sent=r.arg;else if("throw"===r.method){if(n===u)throw n=d,r.arg;r.dispatchException(r.arg)}else"return"===r.method&&r.abrupt("return",r.arg);n=f;var c=l(t,e,r);if("normal"===c.type){if(n=r.done?d:p,c.arg===h)continue;return{value:c.arg,done:r.done}}"throw"===c.type&&(n=d,r.method="throw",r.arg=c.arg)}}}function O(t,r){var n=t.iterator[r.method];if(n===e){if(r.delegate=null,"throw"===r.method){if(t.iterator["return"]&&(r.method="return",r.arg=e,O(t,r),"throw"===r.method))return h;r.method="throw",r.arg=new TypeError("The iterator does not provide a 'throw' method")}return h}var o=l(n,t.iterator,r.arg);if("throw"===o.type)return r.method="throw",r.arg=o.arg,r.delegate=null,h;var a=o.arg;return a?a.done?(r[t.resultName]=a.value,r.next=t.nextLoc,"return"!==r.method&&(r.method="next",r.arg=e),r.delegate=null,h):a:(r.method="throw",r.arg=new TypeError("iterator result is not an object"),r.delegate=null,h)}function j(t){var e={tryLoc:t[0]};1 in t&&(e.catchLoc=t[1]),2 in t&&(e.finallyLoc=t[2],e.afterLoc=t[3]),this.tryEntries.push(e)}function k(t){var e=t.completion||{};e.type="normal",delete e.arg,t.completion=e}function _(t){this.tryEntries=[{tryLoc:"root"}],t.forEach(j,this),this.reset(!0)}function N(t){if(t){var r=t[a];if(r)return r.call(t);if("function"===typeof t.next)return t;if(!isNaN(t.length)){var o=-1,i=function r(){while(++o=0;--a){var i=this.tryEntries[a],s=i.completion;if("root"===i.tryLoc)return o("end");if(i.tryLoc<=this.prev){var c=n.call(i,"catchLoc"),l=n.call(i,"finallyLoc");if(c&&l){if(this.prev=0;--r){var o=this.tryEntries[r];if(o.tryLoc<=this.prev&&n.call(o,"finallyLoc")&&this.prev=0;--e){var r=this.tryEntries[e];if(r.finallyLoc===t)return this.complete(r.completion,r.afterLoc),k(r),h}},catch:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var r=this.tryEntries[e];if(r.tryLoc===t){var n=r.completion;if("throw"===n.type){var o=n.arg;k(r)}return o}}throw new Error("illegal catch attempt")},delegateYield:function(t,r,n){return this.delegate={iterator:N(t),resultName:r,nextLoc:n},"next"===this.method&&(this.arg=e),h}},t}(t.exports);try{regeneratorRuntime=n}catch(o){Function("r","regeneratorRuntime = r")(n)}},"9c08":function(t,e){t.exports="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABgAAAAYCAYAAADgdz34AAADBklEQVRIS72W/0uVVxzHX+ec57ne1KXFNNOlpTRbKpX0k2gUMUf7oVnQYBUMGrSfBquNbeF+2C+S/RNNBkIQmH0xSGs2JvtlUlMIiSKs0L4typx6733uc844j6b3yiP3Ymuf355zPp/P+/P+fDmfRwC4p6fqpVQnDTQKyLVnyxWDmBaYAa3lCe9I5IZwTyfqhTS/C8wbOV4ckAVyXLFD5HTErgDNy404g12viHTEp7KJvqVc0rpVBf5++NPn2iOdMSYD05aByagJfF2jaN/uBKoHr3t03c8MYHX/f4DmMsmZnbORpoojISJFcORp0CG8K8/GeR5Pt1sWg71XPXrH3iBFRVHYtVamhbLnPclnlbNFPjWcZPhFOoXu+xo/hFUog40rRVDUTHKoShJVgtsThi3diVD1rFO02HpTgeCvlkhw3D6c5KebfnYAa6JgC73hndmCPp4xjLw03Hxu+Ce54KOtXvFNnRMUu/ZcgnuT4d0+z8C6+3Gr4ttaRY4SGANiFiOQpDYM/m3oeai5/lhz6UOXgojgwgOfT/tTkBfxmAdo3aI4XKVoG0rSN6Z5GoN8F2pXCT4qkxysVJTnpyDOOTrwq8fFh0t3VACQ58BQS4SGS4nAcZjYEdhXIbGBbC5c6DCboj+eaDrv+XSNaia8kDnY/q7gWI3i0G9LU7VmxVHo3xOhaqUg5pugg1Il7hv6xg1doz5945pnsbmnorpA8HOjQ0PPIvgU64p86N7t8kGhDArf1JOgbpXkeI2isSR9ZqyZZXbrpYkHKbJxDO51Of9A0zbkpw2MI+DzjZK2eofCHMHopOGTa17Q+6/FZuCrzYr9FRJ37jmZu5uZL/K21YLLzS6THvQ/0rxIQGku7CyRFK8Q+MbQeVfz/WAyuAsTq3+0WvHF+4qiaJC+BQD7tS4Pvqtz+HidpHSFwOZ0ZMJwdVzzy13NnVdZvezkKDiwXvJltTMjIh2xqbA9bFOTzM5fOB3g9cJ5uyvzbS59o5NNQSUsiJT6P/ptYVrAgNb+Ce9I3o1/AXUqQlA5Ce8vAAAAAElFTkSuQmCC"},"9e6a":function(t,e,r){"use strict";var n=r("d2334"),o=Object.prototype.hasOwnProperty,a={allowDots:!1,allowPrototypes:!1,arrayLimit:20,charset:"utf-8",charsetSentinel:!1,comma:!1,decoder:n.decode,delimiter:"&",depth:5,ignoreQueryPrefix:!1,interpretNumericEntities:!1,parameterLimit:1e3,parseArrays:!0,plainObjects:!1,strictNullHandling:!1},i=function(t){return t.replace(/&#(\d+);/g,function(t,e){return String.fromCharCode(parseInt(e,10))})},s="utf8=%26%2310003%3B",c="utf8=%E2%9C%93",l=function(t,e){var r,l={},u=e.ignoreQueryPrefix?t.replace(/^\?/,""):t,p=e.parameterLimit===1/0?void 0:e.parameterLimit,f=u.split(e.delimiter,p),d=-1,h=e.charset;if(e.charsetSentinel)for(r=0;r-1&&(m=m.split(",")),o.call(l,y)?l[y]=n.combine(l[y],m):l[y]=m}return l},u=function(t,e,r){for(var n=e,o=t.length-1;o>=0;--o){var a,i=t[o];if("[]"===i&&r.parseArrays)a=[].concat(n);else{a=r.plainObjects?Object.create(null):{};var s="["===i.charAt(0)&&"]"===i.charAt(i.length-1)?i.slice(1,-1):i,c=parseInt(s,10);r.parseArrays||""!==s?!isNaN(c)&&i!==s&&String(c)===s&&c>=0&&r.parseArrays&&c<=r.arrayLimit?(a=[],a[c]=n):a[s]=n:a={0:n}}n=a}return n},p=function(t,e,r){if(t){var n=r.allowDots?t.replace(/\.([^.[]+)/g,"[$1]"):t,a=/(\[[^[\]]*])/,i=/(\[[^[\]]*])/g,s=r.depth>0&&a.exec(n),c=s?n.slice(0,s.index):n,l=[];if(c){if(!r.plainObjects&&o.call(Object.prototype,c)&&!r.allowPrototypes)return;l.push(c)}var p=0;while(r.depth>0&&null!==(s=i.exec(n))&&p1){var e=t.pop(),r=e.obj[e.prop];if(o(r)){for(var n=[],a=0;a=48&&s<=57||s>=65&&s<=90||s>=97&&s<=122?o+=n.charAt(i):s<128?o+=a[s]:s<2048?o+=a[192|s>>6]+a[128|63&s]:s<55296||s>=57344?o+=a[224|s>>12]+a[128|s>>6&63]+a[128|63&s]:(i+=1,s=65536+((1023&s)<<10|1023&n.charCodeAt(i)),o+=a[240|s>>18]+a[128|s>>12&63]+a[128|s>>6&63]+a[128|63&s])}return o},f=function(t){for(var e=[{obj:{o:t},prop:"o"}],r=[],n=0;n