71ab6ffe33d18b5d590f5d86c35e01ead64f5490
[motion2.git] / snippet / 3.0.0 / scripts / chat-d717b98e.js
1 (self.webpackChunkmotion_chat=self.webpackChunkmotion_chat||[]).push([["chat-d717b98e"],{"./node_modules/@uirouter/angularjs/lib-esm/directives/viewDirective.js":(e,t,r)=>{"use strict";var n,o=r("./node_modules/@uirouter/core/lib-esm/index.js"),i=r("./node_modules/@uirouter/angularjs/lib-esm/angular.js"),u=r("./node_modules/@uirouter/angularjs/lib-esm/services.js"),a=r("./node_modules/@uirouter/angularjs/lib-esm/statebuilders/views.js");function c(e,t,r,n,a){var c=(0,o.Qc)("viewDecl.controllerAs"),s=(0,o.Qc)("viewDecl.resolveAs");return{restrict:"ECA",priority:-400,compile:function(n){var l=n.html();return n.empty(),function(n,v){var d=v.data("$uiView");if(!d)return v.html(l),void e(v.contents())(n);var m=d.$cfg||{viewDecl:{},getTemplate:o.ZT},p=m.path&&new o.ResolveContext(m.path);v.html(m.getTemplate(v,p)||l),o.g4.traceUIViewFill(d.$uiView,v.html());var $=e(v.contents()),h=m.controller,g=c(m),w=s(m),y=p&&(0,u.D)(p);if(n[w]=y,h){var b=t(h,(0,o.l7)({},y,{$scope:n,$element:v}));g&&(n[g]=b,n[g][w]=y),v.data("$ngControllerController",b),v.children().data("$ngControllerController",b),f(a,r,b,n,m)}if((0,o.HD)(m.component))var j=(0,o.L$)(m.component),R=new RegExp("^(x-|data-)?"+j+"$","i"),C=n.$watch((function(){var e=[].slice.call(v[0].children).filter((function(e){return e&&e.tagName&&R.exec(e.tagName)}));return e&&i.ng.element(e).data("$"+m.component+"Controller")}),(function(e){e&&(f(a,r,e,n,m),C())}));$(n)}}}}n=["$view","$animate","$uiViewScroll","$interpolate","$q",function(e,t,r,n,u){var c={$cfg:{viewDecl:{$context:e._pluginapi._rootViewContext()}},$uiView:{}},s={count:0,restrict:"ECA",terminal:!0,priority:400,transclude:"element",compile:function(l,f,v){return function(l,f,d){var m,p,$,h,g=d.onload||"",w=d.autoscroll,y=function(e,r,n){i.ng.version.minor>2?t.enter(e,null,r).then(n):t.enter(e,null,r,n)},b=function(e,r){i.ng.version.minor>2?t.leave(e).then(r):t.leave(e,r)},j=f.inheritedData("$uiView")||c,R=n(d.uiView||d.name||"")(l)||"$default",C={$type:"ng1",id:s.count++,name:R,fqn:j.$uiView.fqn?j.$uiView.fqn+"."+R:R,config:null,configUpdated:function(e){(!e||e instanceof a.qO)&&(h!==e&&(o.g4.traceUIViewConfigUpdated(C,e&&e.viewDecl&&e.viewDecl.$context),h=e,x(e)))},get creationContext(){var e=(0,o.Qc)("$cfg.viewDecl.$context")(j),t=(0,o.Qc)("$uiView.creationContext")(j);return e||t}};o.g4.traceUIViewEvent("Linking",C),f.data("$uiView",{$uiView:C}),x();var P=e.registerUIView(C);function x(e){var t=l.$new(),n=u.defer(),i=u.defer(),a={$cfg:e,$uiView:C},c={$animEnter:n.promise,$animLeave:i.promise,$$animLeave:i};t.$emit("$viewContentLoading",R);var s=v(t,(function(e){e.data("$uiViewAnim",c),e.data("$uiView",a),y(e,f,(function(){n.resolve(),$&&$.$emit("$viewContentAnimationEnded"),((0,o.$K)(w)&&!w||l.$eval(w))&&r(e)})),function(){if(m&&(o.g4.traceUIViewEvent("Removing (previous) el",m.data("$uiView")),m.remove(),m=null),$&&(o.g4.traceUIViewEvent("Destroying scope",C),$.$destroy(),$=null),p){var e=p.data("$uiViewAnim");o.g4.traceUIViewEvent("Animate out",e),b(p,(function(){e.$$animLeave.resolve(),m=null})),m=p,p=null}}()}));p=s,($=t).$emit("$viewContentLoaded",e||h),$.$eval(g)}l.$on("$destroy",(function(){o.g4.traceUIViewEvent("Destroying/Unregistering",C),P()}))}}};return s}],c.$inject=["$compile","$controller","$transitions","$view","$q"];var s="function"==typeof i.ng.module("ui.router").component,l=0;function f(e,t,r,n,i){!(0,o.mf)(r.$onInit)||(i.viewDecl.component||i.viewDecl.componentProvider)&&s||r.$onInit();var u=(0,o.Gb)(i.path).state.self,a={bind:r};if((0,o.mf)(r.uiOnParamsChanged)){var c=new o.ResolveContext(i.path).getResolvable("$transition$").data;n.$on("$destroy",t.onSuccess({},(function(e){if(e!==c&&-1===e.exiting().indexOf(u)){var t=e.params("to"),n=e.params("from"),i=function(e){return e.paramSchema},a=e.treeChanges("to").map(i).reduce(o.M7,[]),s=e.treeChanges("from").map(i).reduce(o.M7,[]),l=a.filter((function(e){var r=s.indexOf(e);return-1===r||!s[r].type.equals(t[e.id],n[e.id])}));if(l.length){var f=l.map((function(e){return e.id})),v=(0,o.hX)(t,(function(e,t){return-1!==f.indexOf(t)}));r.uiOnParamsChanged(v,e)}}}),a))}if((0,o.mf)(r.uiCanExit)){var f=l++,v="_uiCanExitIds",d=function(e){return!!e&&(e[v]&&!0===e[v][f]||d(e.redirectedFrom()))},m={exiting:u.name};n.$on("$destroy",t.onBefore(m,(function(t){var n,o=t[v]=t[v]||{};return d(t)||(n=e.when(r.uiCanExit(t))).then((function(e){return o[f]=!1!==e})),n}),a))}}i.ng.module("ui.router.state").directive("uiView",n),i.ng.module("ui.router.state").directive("uiView",c)},"./node_modules/@uirouter/angularjs/lib-esm/services.js":(e,t,r)=>{"use strict";r.d(t,{D:()=>R});var n=r("./node_modules/@uirouter/angularjs/lib-esm/angular.js"),o=r("./node_modules/@uirouter/core/lib-esm/index.js"),i=r("./node_modules/@uirouter/angularjs/lib-esm/statebuilders/views.js"),u=function(){function e(){var e=this;this._useHttp=n.ng.version.minor<3,this.$get=["$http","$templateCache","$injector",function(t,r,n){return e.$templateRequest=n.has&&n.has("$templateRequest")&&n.get("$templateRequest"),e.$http=t,e.$templateCache=r,e}]}return e.prototype.useHttpService=function(e){this._useHttp=e},e.prototype.fromConfig=function(e,t,r){var n=function(e){return o.uZ.$q.when(e).then((function(e){return{template:e}}))},i=function(e){return o.uZ.$q.when(e).then((function(e){return{component:e}}))};return(0,o.$K)(e.template)?n(this.fromString(e.template,t)):(0,o.$K)(e.templateUrl)?n(this.fromUrl(e.templateUrl,t)):(0,o.$K)(e.templateProvider)?n(this.fromProvider(e.templateProvider,t,r)):(0,o.$K)(e.component)?i(e.component):(0,o.$K)(e.componentProvider)?i(this.fromComponentProvider(e.componentProvider,t,r)):n("<ui-view></ui-view>")},e.prototype.fromString=function(e,t){return(0,o.mf)(e)?e(t):e},e.prototype.fromUrl=function(e,t){return(0,o.mf)(e)&&(e=e(t)),null==e?null:this._useHttp?this.$http.get(e,{cache:this.$templateCache,headers:{Accept:"text/html"}}).then((function(e){return e.data})):this.$templateRequest(e)},e.prototype.fromProvider=function(e,t,r){var n=o.uZ.$injector.annotate(e),i=(0,o.kJ)(e)?(0,o.Gb)(e):e;return new o.Resolvable("",i,n).get(r)},e.prototype.fromComponentProvider=function(e,t,r){var n=o.uZ.$injector.annotate(e),i=(0,o.kJ)(e)?(0,o.Gb)(e):e;return new o.Resolvable("",i,n).get(r)},e.prototype.makeComponentTemplate=function(e,t,r,i){i=i||{};var u=n.ng.version.minor>=3?"::":"",c=function(e){var t=(0,o.L$)(e);return/^(x|data)-/.exec(t)?"x-"+t:t},s=function(e){var t=o.uZ.$injector.get(e+"Directive");if(!t||!t.length)throw new Error("Unable to find component named '"+e+"'");return t.map(a).reduce(o.M7,[])}(r).map((function(r){var n=r.name,a=r.type,s=c(n);if(e.attr(s)&&!i[n])return s+"='"+e.attr(s)+"'";var l=i[n]||n;if("@"===a)return s+"='{{"+u+"$resolve."+l+"}}'";if("&"===a){var f=t.getResolvable(l),v=f&&f.data,d=v&&o.uZ.$injector.annotate(v)||[];return s+"='$resolve."+l+((0,o.kJ)(v)?"["+(v.length-1)+"]":"")+"("+d.join(",")+")'"}return s+"='"+u+"$resolve."+l+"'"})).join(" "),l=c(r);return"<"+l+" "+s+"></"+l+">"},e}(),a=function(e){return(0,o.Kn)(e.bindToController)?c(e.bindToController):c(e.scope)},c=function(e){return Object.keys(e||{}).map((function(t){return[t,/^([=<@&])[?]?(.*)/.exec(e[t])]})).filter((function(e){return(0,o.$K)(e)&&(0,o.kJ)(e[1])})).map((function(e){return{name:e[1][2]||e[0],type:e[1][1]}}))},s=r("./node_modules/@uirouter/angularjs/lib-esm/stateProvider.js"),l=function(e){return function(t){var r=t[e],n="onExit"===e?"from":"to";return r?function(e,t){var i=new o.ResolveContext(e.treeChanges(n)).subContext(t.$$state()),u=(0,o.l7)(R(i),{$state$:t,$transition$:e});return o.uZ.$injector.invoke(r,this,u)}:void 0}},f=function(){function e(e){this._urlListeners=[],this.$locationProvider=e;var t=(0,o.P0)(e);(0,o.WR)(t,this,t,["hashPrefix"])}return e.monkeyPatchPathParameterType=function(e){var t=e.urlMatcherFactory.type("path");t.encode=function(e){return null!=e?e.toString().replace(/(~|\/)/g,(function(e){return{"~":"~~","/":"~2F"}[e]})):e},t.decode=function(e){return null!=e?e.toString().replace(/(~~|~2F)/g,(function(e){return{"~~":"~","~2F":"/"}[e]})):e}},e.prototype.dispose=function(){},e.prototype.onChange=function(e){var t=this;return this._urlListeners.push(e),function(){return(0,o.nA)(t._urlListeners)(e)}},e.prototype.html5Mode=function(){var e=this.$locationProvider.html5Mode();return(e=(0,o.Kn)(e)?e.enabled:e)&&this.$sniffer.history},e.prototype.baseHref=function(){return this._baseHref||(this._baseHref=this.$browser.baseHref()||this.$window.location.pathname)},e.prototype.url=function(e,t,r){return void 0===t&&(t=!1),(0,o.$K)(e)&&this.$location.url(e),t&&this.$location.replace(),r&&this.$location.state(r),this.$location.url()},e.prototype._runtimeServices=function(e,t,r,n,i){var u=this;this.$location=t,this.$sniffer=r,this.$browser=n,this.$window=i,e.$on("$locationChangeSuccess",(function(e){return u._urlListeners.forEach((function(t){return t(e)}))}));var a=(0,o.P0)(t);(0,o.WR)(a,this,a,["replace","path","search","hash"]),(0,o.WR)(a,this,a,["port","protocol","host"])},e}(),v=r("./node_modules/@uirouter/angularjs/lib-esm/urlRouterProvider.js");n.ng.module("ui.router.angular1",[]);var d=n.ng.module("ui.router.init",["ng"]),m=n.ng.module("ui.router.util",["ui.router.init"]),p=n.ng.module("ui.router.router",["ui.router.util"]),$=n.ng.module("ui.router.state",["ui.router.router","ui.router.util","ui.router.angular1"]),h=n.ng.module("ui.router",["ui.router.init","ui.router.state","ui.router.angular1"]),g=(n.ng.module("ui.router.compat",["ui.router"]),null);function w(e){(g=this.router=new o.UIRouter).stateProvider=new s.X(g.stateRegistry,g.stateService),g.stateRegistry.decorator("views",i.LB),g.stateRegistry.decorator("onExit",l("onExit")),g.stateRegistry.decorator("onRetain",l("onRetain")),g.stateRegistry.decorator("onEnter",l("onEnter")),g.viewService._pluginapi._viewConfigFactory("ng1",(0,i.OB)()),g.urlService.config._decodeParams=!1;var t=g.locationService=g.locationConfig=new f(e);function r(e,r,n,o,i,u,a){return t._runtimeServices(i,e,o,r,n),delete g.router,delete g.$get,g}return f.monkeyPatchPathParameterType(g),g.router=g,g.$get=r,r.$inject=["$location","$browser","$window","$sniffer","$rootScope","$http","$templateCache"],g}w.$inject=["$locationProvider"];var y=function(e){return["$uiRouterProvider",function(t){var r=t.router[e];return r.$get=function(){return r},r}]};function b(e,t,r){if(o.uZ.$injector=e,o.uZ.$q=t,!Object.prototype.hasOwnProperty.call(e,"strictDi"))try{e.invoke((function(e){}))}catch(t){e.strictDi=!!/strict mode/.exec(t&&t.toString())}r.stateRegistry.get().map((function(e){return e.$$state().resolvables})).reduce(o.M7,[]).filter((function(e){return"deferred"===e.deps})).forEach((function(t){return t.deps=e.annotate(t.resolveFn,e.strictDi)}))}function j(e){e.$watch((function(){o.g4.approximateDigests++}))}b.$inject=["$injector","$q","$uiRouter"],j.$inject=["$rootScope"],d.provider("$uiRouter",w),p.provider("$urlRouter",["$uiRouterProvider",function(e){return e.urlRouterProvider=new v.L(e)}]),m.provider("$urlService",y("urlService")),m.provider("$urlMatcherFactory",["$uiRouterProvider",function(){return g.urlMatcherFactory}]),m.provider("$templateFactory",(function(){return new u})),$.provider("$stateRegistry",y("stateRegistry")),$.provider("$uiRouterGlobals",y("globals")),$.provider("$transitions",y("transitionService")),$.provider("$state",["$uiRouterProvider",function(){return(0,o.l7)(g.stateProvider,{$get:function(){return g.stateService}})}]),$.factory("$stateParams",["$uiRouter",function(e){return e.globals.params}]),h.factory("$view",(function(){return g.viewService})),h.service("$trace",(function(){return o.g4})),h.run(j),m.run(["$urlMatcherFactory",function(e){}]),$.run(["$state",function(e){}]),p.run(["$urlRouter",function(e){}]),d.run(b);var R=function(e){return e.getTokens().filter(o.HD).map((function(t){var r=e.getResolvable(t);return[t,"NOWAIT"===e.getPolicy(r).async?r.promise:r.data]})).reduce(o.bb,{})}},"./node_modules/@uirouter/angularjs/lib-esm/stateFilters.js":(e,t,r)=>{"use strict";var n=r("./node_modules/@uirouter/angularjs/lib-esm/angular.js");function o(e){var t=function(t,r,n){return e.is(t,r,n)};return t.$stateful=!0,t}function i(e){var t=function(t,r,n){return e.includes(t,r,n)};return t.$stateful=!0,t}o.$inject=["$state"],i.$inject=["$state"],n.ng.module("ui.router.state").filter("isState",o).filter("includedByState",i)},"./node_modules/@uirouter/angularjs/lib-esm/stateProvider.js":(e,t,r)=>{"use strict";r.d(t,{X:()=>o});var n=r("./node_modules/@uirouter/core/lib-esm/index.js"),o=function(){function e(t,r){this.stateRegistry=t,this.stateService=r,(0,n.WR)((0,n.P0)(e.prototype),this,(0,n.P0)(this))}return e.prototype.decorator=function(e,t){return this.stateRegistry.decorator(e,t)||this},e.prototype.state=function(e,t){return(0,n.Kn)(e)?t=e:t.name=e,this.stateRegistry.register(t),this},e.prototype.onInvalid=function(e){return this.stateService.onInvalid(e)},e}()},"./node_modules/@uirouter/angularjs/lib-esm/statebuilders/views.js":(e,t,r)=>{"use strict";r.d(t,{OB:()=>o,LB:()=>u,qO:()=>c});var n=r("./node_modules/@uirouter/core/lib-esm/index.js");function o(){var e=null;return function(t,r){return e=e||n.uZ.$injector.get("$templateFactory"),[new c(t,r,e)]}}var i=function(e,t){return e.reduce((function(e,r){return e||(0,n.$K)(t[r])}),!1)};function u(e){if(!e.parent)return{};var t=["component","bindings","componentProvider"],r=["templateProvider","templateUrl","template","notify","async"].concat(["controller","controllerProvider","controllerAs","resolveAs"]),o=t.concat(r);if((0,n.$K)(e.views)&&i(o,e))throw new Error("State '"+e.name+"' has a 'views' object. It cannot also have \"view properties\" at the state level.  Move the following properties into a view (in the 'views' object):  "+o.filter((function(t){return(0,n.$K)(e[t])})).join(", "));var u={},a=e.views||{$default:(0,n.ei)(e,o)};return(0,n.Ed)(a,(function(o,a){if(a=a||"$default",(0,n.HD)(o)&&(o={component:o}),o=(0,n.l7)({},o),i(t,o)&&i(r,o))throw new Error("Cannot combine: "+t.join("|")+" with: "+r.join("|")+" in stateview: '"+a+"@"+e.name+"'");o.resolveAs=o.resolveAs||"$resolve",o.$type="ng1",o.$context=e,o.$name=a;var c=n.ViewService.normalizeUIViewTarget(o.$context,o.$name);o.$uiViewName=c.uiViewName,o.$uiViewContextAnchor=c.uiViewContextAnchor,u[a]=o})),u}var a=0,c=function(){function e(e,t,r){var n=this;this.path=e,this.viewDecl=t,this.factory=r,this.$id=a++,this.loaded=!1,this.getTemplate=function(e,t){return n.component?n.factory.makeComponentTemplate(e,t,n.component,n.viewDecl.bindings):n.template}}return e.prototype.load=function(){var e=this,t=n.uZ.$q,r=new n.ResolveContext(this.path),o=this.path.reduce((function(e,t){return(0,n.l7)(e,t.paramValues)}),{}),i={template:t.when(this.factory.fromConfig(this.viewDecl,o,r)),controller:t.when(this.getController(r))};return t.all(i).then((function(t){return n.g4.traceViewServiceEvent("Loaded",e),e.controller=t.controller,(0,n.l7)(e,t.template),e}))},e.prototype.getController=function(e){var t=this.viewDecl.controllerProvider;if(!(0,n.Qh)(t))return this.viewDecl.controller;var r=n.uZ.$injector.annotate(t),o=(0,n.kJ)(t)?(0,n.Gb)(t):t;return new n.Resolvable("",o,r).get(e)},e}()},"./node_modules/@uirouter/angularjs/lib-esm/urlRouterProvider.js":(e,t,r)=>{"use strict";r.d(t,{L:()=>o});var n=r("./node_modules/@uirouter/core/lib-esm/index.js"),o=function(){function e(e){this.router=e}return e.injectableHandler=function(e,t){return function(r){return n.uZ.$injector.invoke(t,null,{$match:r,$stateParams:e.globals.params})}},e.prototype.$get=function(){var e=this.router.urlService;return this.router.urlRouter.update(!0),e.interceptDeferred||e.listen(),this.router.urlRouter},e.prototype.rule=function(e){var t=this;if(!(0,n.mf)(e))throw new Error("'rule' must be a function");var r=new n.BaseUrlRule((function(){return e(n.uZ.$injector,t.router.locationService)}),n.yR);return this.router.urlService.rules.rule(r),this},e.prototype.otherwise=function(e){var t=this,r=this.router.urlService.rules;if((0,n.HD)(e))r.otherwise(e);else{if(!(0,n.mf)(e))throw new Error("'rule' must be a string or function");r.otherwise((function(){return e(n.uZ.$injector,t.router.locationService)}))}return this},e.prototype.when=function(t,r){return((0,n.kJ)(r)||(0,n.mf)(r))&&(r=e.injectableHandler(this.router,r)),this.router.urlService.rules.when(t,r),this},e.prototype.deferIntercept=function(e){this.router.urlService.deferIntercept(e)},e}()},"./node_modules/@uirouter/angularjs/lib-esm/viewScroll.js":(e,t,r)=>{"use strict";r("./node_modules/@uirouter/angularjs/lib-esm/angular.js").ng.module("ui.router.state").provider("$uiViewScroll",(function(){var e=!1;this.useAnchorScroll=function(){e=!0},this.$get=["$anchorScroll","$timeout",function(t,r){return e?t:function(e){return r((function(){e[0].scrollIntoView()}),0,!1)}}]}))}}]);
2 //# sourceMappingURL=chat-d717b98e.js.map